diff --git a/.eslintrc.js b/.eslintrc.js index bfe268c5..f20cd733 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,25 +1,29 @@ +require('@rushstack/eslint-patch/modern-module-resolution') + module.exports = { env: { browser: true, es2021: true, node: true, }, - parser: 'vue-eslint-parser', - extends: ['eslint:recommended', 'plugin:vue/essential', 'plugin:@typescript-eslint/recommended'], + extends: [ + 'eslint:recommended', + 'standard', + 'plugin:vue/vue3-recommended', + 'plugin:vue-scoped-css/vue3-recommended', + '@vue/eslint-config-typescript/recommended', + ], parserOptions: { ecmaVersion: 12, - parser: '@typescript-eslint/parser', sourceType: 'module', }, - plugins: ['vue', '@typescript-eslint'], rules: { - 'linebreak-style': ['error', 'unix'], - quotes: ['error', 'single'], - semi: ['error', 'never'], - 'vue/multi-word-component-names': 'off', 'comma-dangle': ['error', 'always-multiline'], + 'linebreak-style': ['error', 'unix'], 'no-multiple-empty-lines': 'error', 'object-curly-spacing': ['error', 'always'], - 'vue/no-v-model-argument': 'off', + 'sort-imports': ['error', { ignoreCase: true, ignoreDeclarationSort: true }], + 'vue/block-order': ['error', { order: ['template', 'script', 'style'] }], + 'vue/component-name-in-template-casing': ['error', 'kebab-case'], }, } diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 6a2b2db6..90ac918d 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -38,20 +38,20 @@ function getComponents() { { text: 'Accordion', link: '/components/accordion' }, { text: 'Alert', link: '/components/alert' }, { text: 'Avatar', link: '/components/avatar' }, + { text: 'Badge', link: '/components/badge' }, { text: 'Breadcrumb', link: '/components/breadcrumb' }, { text: 'Button', link: '/components/button' }, - { text: 'Badge', link: '/components/badge' }, { text: 'Button Group', link: '/components/button-group' }, { text: 'Card', link: '/components/card.md' }, { text: 'Carousel', link: '/components/carousel' }, { text: 'Dropdown', link: '/components/dropdown' }, + { text: 'ListGroup', link: '/components/list-group' }, { text: 'Pagination', link: '/components/pagination' }, { text: 'Progress', link: '/components/progress' }, { text: 'Rating', link: '/components/rating' }, { text: 'Spinner', link: '/components/spinner' }, { text: 'Table', link: '/components/table' }, { text: 'Tabs', link: '/components/tabs' }, - { text: 'ListGroup', link: '/components/list-group' }, { text: 'Timeline', link: '/components/timeline' }, { text: 'Toast', link: '/components/toast' }, { text: 'Tooltip', link: '/components/tooltip' }, @@ -65,13 +65,13 @@ function getComponents() { function getFormComponents() { return [ { text: 'Input', link: '/components/input' }, - { text: 'FileInput', link: '/components/fileInput' }, - { text: 'Checkbox', link: '/components/checkbox' }, + { text: 'File Input', link: '/components/fileInput' }, { text: 'Select', link: '/components/select' }, - { text: 'Toggle', link: '/components/toggle' }, { text: 'Textarea', link: '/components/textarea' }, - { text: 'Range', link: '/components/range' }, + { text: 'Checkbox', link: '/components/checkbox' }, { text: 'Radio', link: '/components/radio' }, + { text: 'Toggle', link: '/components/toggle' }, + { text: 'Range', link: '/components/range' }, ] } diff --git a/docs/components/PLAYGROUND/examples/SlotListenerExample.vue b/docs/components/PLAYGROUND/examples/SlotListenerExample.vue index 91969bf6..ee9a2d3b 100644 --- a/docs/components/PLAYGROUND/examples/SlotListenerExample.vue +++ b/docs/components/PLAYGROUND/examples/SlotListenerExample.vue @@ -1,10 +1,15 @@ + # Vue Accordion - Flowbite @@ -16,216 +16,297 @@ Original reference: [https://flowbite.com/docs/components/accordion/](https://fl ## Default accordion Use this example to basic accordion. -```vue - + +```vue -``` + - +``` ## Always open accordion Always open prop to makes accordion able to open multiple elements. -```vue - + +```vue + ``` - - ## Flush accordion Flush prop removes side borders, and rounded corners -```vue - + +```vue + ``` - - ## Styling accordion You can style accordion content and headers by passing tailwind classes into them. -```vue - + +```vue + ``` - - - ## Closed first item -```vue - + +```vue + ``` - - - diff --git a/docs/components/accordion/examples/AccordionAlwaysOpenExample.vue b/docs/components/accordion/examples/AccordionAlwaysOpenExample.vue deleted file mode 100644 index 10f8f2e1..00000000 --- a/docs/components/accordion/examples/AccordionAlwaysOpenExample.vue +++ /dev/null @@ -1,35 +0,0 @@ - - - diff --git a/docs/components/accordion/examples/AccordionExample.vue b/docs/components/accordion/examples/AccordionExample.vue deleted file mode 100644 index 8438c126..00000000 --- a/docs/components/accordion/examples/AccordionExample.vue +++ /dev/null @@ -1,52 +0,0 @@ - - - diff --git a/docs/components/accordion/examples/AccordionFlushExample.vue b/docs/components/accordion/examples/AccordionFlushExample.vue deleted file mode 100644 index 363e44a0..00000000 --- a/docs/components/accordion/examples/AccordionFlushExample.vue +++ /dev/null @@ -1,35 +0,0 @@ - - - diff --git a/docs/components/accordion/examples/AccordionOpenFirstItemExample.vue b/docs/components/accordion/examples/AccordionOpenFirstItemExample.vue deleted file mode 100644 index 614cd979..00000000 --- a/docs/components/accordion/examples/AccordionOpenFirstItemExample.vue +++ /dev/null @@ -1,52 +0,0 @@ - - - diff --git a/docs/components/accordion/examples/AccordionStyledHeadersExample.vue b/docs/components/accordion/examples/AccordionStyledHeadersExample.vue deleted file mode 100644 index 63f34745..00000000 --- a/docs/components/accordion/examples/AccordionStyledHeadersExample.vue +++ /dev/null @@ -1,35 +0,0 @@ - - - diff --git a/docs/components/accordion/examples/FwbAccordionExample.vue b/docs/components/accordion/examples/FwbAccordionExample.vue new file mode 100644 index 00000000..27f15add --- /dev/null +++ b/docs/components/accordion/examples/FwbAccordionExample.vue @@ -0,0 +1,61 @@ + + + diff --git a/docs/components/accordion/examples/FwbAccordionExampleAlwaysOpen.vue b/docs/components/accordion/examples/FwbAccordionExampleAlwaysOpen.vue new file mode 100644 index 00000000..4a65bb7e --- /dev/null +++ b/docs/components/accordion/examples/FwbAccordionExampleAlwaysOpen.vue @@ -0,0 +1,58 @@ + + + diff --git a/docs/components/accordion/examples/FwbAccordionExampleFirstItemClosed.vue b/docs/components/accordion/examples/FwbAccordionExampleFirstItemClosed.vue new file mode 100644 index 00000000..9849e758 --- /dev/null +++ b/docs/components/accordion/examples/FwbAccordionExampleFirstItemClosed.vue @@ -0,0 +1,61 @@ + + + diff --git a/docs/components/accordion/examples/FwbAccordionExampleFlush.vue b/docs/components/accordion/examples/FwbAccordionExampleFlush.vue new file mode 100644 index 00000000..16ee2d00 --- /dev/null +++ b/docs/components/accordion/examples/FwbAccordionExampleFlush.vue @@ -0,0 +1,58 @@ + + + diff --git a/docs/components/accordion/examples/FwbAccordionExampleStyledHeaders.vue b/docs/components/accordion/examples/FwbAccordionExampleStyledHeaders.vue new file mode 100644 index 00000000..c0791ef9 --- /dev/null +++ b/docs/components/accordion/examples/FwbAccordionExampleStyledHeaders.vue @@ -0,0 +1,60 @@ + + + diff --git a/docs/components/alert.md b/docs/components/alert.md index 4bd765d3..a8c291c0 100644 --- a/docs/components/alert.md +++ b/docs/components/alert.md @@ -1,11 +1,11 @@ # Vue Alert - Flowbite @@ -15,198 +15,268 @@ The alert component can be used to provide information to your users such as suc ## Default alert Use the following examples of alert components to show messages as feedback to your users. - + ```vue - + + ``` + ## Alerts with icon You can also include a descriptive icon to complement the message inside the alert component with the following example. - - + ```vue - + + ``` ## Bordered alerts Use this example to add a border accent to the alert component instead of just a plain background. - - + ```vue - + + ``` ## Border accent Use this example to add a border accent on top of the alert component for further visual distinction. - - + ```vue - + + ``` ## Alerts with list Use this example to show a list and a description inside an alert component. - - + ```vue - + + ``` ## Dismissing Use the following alert elements that are also dismissable. - - + ```vue + + ``` ## Additional content The following alert components can be used if you wish to disclose more information inside the element. - + ```vue -