Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Components renaming #225

Merged
merged 75 commits into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
9aaefcb
refactor: eslint config adjusted for better diff's
Sqrcz Sep 20, 2023
674a3f9
refactor: stricter linting
Sqrcz Sep 20, 2023
1038fe5
refactoring: paragraph component
Sqrcz Sep 20, 2023
5b6e987
refactoring: heading component
Sqrcz Sep 21, 2023
8e3d6cb
Update docs/components/heading.md
Sqrcz Sep 21, 2023
51984f6
refactoring: link component
Sqrcz Sep 21, 2023
d4c18a2
refactoring: image component
Sqrcz Sep 21, 2023
47e6834
refactoring: alert component
Sqrcz Sep 21, 2023
acb9069
refactoring: avatar component
Sqrcz Sep 23, 2023
ef7da28
refactoring: removed unnecessary code
Sqrcz Sep 23, 2023
e9e2acd
refactoring: breadcrumb component
Sqrcz Sep 23, 2023
1d858ac
refactoring: accordion component
Sqrcz Sep 23, 2023
1453aca
refactoring: buttom component
Sqrcz Sep 23, 2023
bfbb134
refactoring: badge component
Sqrcz Sep 23, 2023
2916772
refactoring: card component
Sqrcz Sep 24, 2023
6801fda
refactoring: order of components in docs updated
Sqrcz Sep 24, 2023
4b653af
refactoring: unnecessary semicolons removed
Sqrcz Sep 24, 2023
3b98f5c
refactoring: button group component
Sqrcz Sep 24, 2023
313ea81
refactoring: carousel component
Sqrcz Sep 24, 2023
e0d0e73
refactoring: dropdown component
Sqrcz Sep 24, 2023
2654652
refactoring: footer component
Sqrcz Sep 24, 2023
46f0566
refactoring:list-group component
Sqrcz Sep 24, 2023
bf1c4d9
refactoring: modal component
Sqrcz Sep 25, 2023
35c9302
refactoring: navbar component
Sqrcz Sep 25, 2023
5a2a1bc
refactoring: pagination component
Sqrcz Sep 26, 2023
3d13bdb
refactoring: progress component
Sqrcz Sep 26, 2023
6341aae
refactoring: rating component
Sqrcz Oct 1, 2023
aa839f5
refactoring: spinner component
Sqrcz Oct 2, 2023
682f57d
refactoring: table component
Sqrcz Oct 2, 2023
4c826c6
refactoring: tabs component
Sqrcz Oct 3, 2023
8403868
Merge branch 'refactor-make-linting-more-strict' into fwb-rename
cogor Oct 9, 2023
8188cd3
feat: Updated pagination examples
cogor Oct 9, 2023
1f65f0c
lint: Lister fixes
cogor Oct 9, 2023
1d06241
feat: Sidebar component and some fixes
cogor Oct 9, 2023
8a41049
feat: Input component
cogor Oct 9, 2023
33cebca
feat: Some fixes
cogor Oct 9, 2023
18eeb65
feat: Some fixes
cogor Oct 10, 2023
0584112
Merge branch 'main' into fwb-rename
cogor Oct 10, 2023
2218b7d
chore: update deps
cogor Oct 10, 2023
d47de41
refactor: removed old Modal component
cogor Oct 10, 2023
8325a10
refactor: radio component and some fixes
cogor Oct 11, 2023
878db00
Merge branch 'main' into fwb-rename
cogor Oct 11, 2023
e527d5b
fix: fixed path error
cogor Oct 11, 2023
fbd4f07
refactor: Range component
cogor Oct 11, 2023
0ae57b9
refactoring: timeline component
Sqrcz Oct 11, 2023
db8b9f9
refactor: Select component
cogor Oct 12, 2023
fd6f3cc
refactoring: toast component
Sqrcz Oct 13, 2023
13c0561
refactoring: tooltip component
Sqrcz Oct 13, 2023
fb8b1ca
refactoring: sidebar component
Sqrcz Oct 13, 2023
e26e120
refactoring: input component
Sqrcz Oct 15, 2023
8dc202c
refactoring: fileInput component
Sqrcz Oct 15, 2023
2a3c1ae
refactoring: select component
Sqrcz Oct 16, 2023
37a0e0a
refactoring: textarea component
Sqrcz Oct 16, 2023
433a71b
refactoring: checkbox component
Sqrcz Oct 16, 2023
2a8d5ad
refactoring: radio component
Sqrcz Oct 16, 2023
570cf5c
refactoring: toggle component
Sqrcz Oct 16, 2023
9b014a9
refactoring: range component
Sqrcz Oct 16, 2023
6cfeab5
local configs linted
Sqrcz Oct 16, 2023
5256d37
documentation quick start updated
Sqrcz Oct 16, 2023
a316df1
flowbite-themable refactored to fit new linters and style guide
Sqrcz Oct 16, 2023
2d047e6
random linter fixes
Sqrcz Oct 16, 2023
4301a0d
refactoring: toast-provider component
Sqrcz Oct 16, 2023
4deae45
final linter fixes
Sqrcz Oct 17, 2023
7e1b9e6
Merge branch 'refactor-make-linting-more-strict' into fwb-rename
cogor Oct 18, 2023
6196417
lint: Linter fixes
cogor Oct 18, 2023
5158f13
Merge branch 'main' into fwb-rename
cogor Oct 18, 2023
d795e33
fix: Fixed types
cogor Oct 18, 2023
e8fb339
Merge branch 'main' into fwb-rename
cogor Oct 19, 2023
c66e02c
fix: Fixed card component
cogor Oct 19, 2023
6ff29dc
Merge branch 'main' into fwb-rename
cogor Oct 19, 2023
a90d9ec
docs: Updated card examples
cogor Oct 19, 2023
b217688
fix: Fixed tabs
cogor Oct 19, 2023
c726aaf
refactor: Heading component refactoring
cogor Oct 19, 2023
d255901
Fwb rename - few fixes after component review (#237)
Sqrcz Oct 23, 2023
e70a02d
chore: Toast marked as WIP
cogor Oct 23, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 13 additions & 9 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -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'],
},
}
12 changes: 6 additions & 6 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand All @@ -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' },
]
}

Expand Down
13 changes: 9 additions & 4 deletions docs/components/PLAYGROUND/examples/SlotListenerExample.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
<template>
<slot-listener @click="onClick" @mouseleave="onMouseleave" @mouseenter="onMouseenter">
<Button>HELLO</Button>
</slot-listener>
<fwb-slot-listener
@click="onClick"
@mouseleave="onMouseleave"
@mouseenter="onMouseenter"
>
<fwb-button>HELLO</fwb-button>
</fwb-slot-listener>
</template>

<script lang="ts" setup>
import { SlotListener, Button } from '../../../../src/index'
import { FwbButton, FwbSlotListener } from '../../../../src/index'
const onClick = () => {
console.log('onClick from slot-listener')
}
Expand Down
397 changes: 239 additions & 158 deletions docs/components/accordion.md

Large diffs are not rendered by default.

35 changes: 0 additions & 35 deletions docs/components/accordion/examples/AccordionAlwaysOpenExample.vue

This file was deleted.

52 changes: 0 additions & 52 deletions docs/components/accordion/examples/AccordionExample.vue

This file was deleted.

35 changes: 0 additions & 35 deletions docs/components/accordion/examples/AccordionFlushExample.vue

This file was deleted.

This file was deleted.

This file was deleted.

61 changes: 61 additions & 0 deletions docs/components/accordion/examples/FwbAccordionExample.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<template>
<div class="vp-raw">
<fwb-accordion>
<fwb-accordion-panel>
<fwb-accordion-header>header</fwb-accordion-header>
<fwb-accordion-content>
<div>
<p class="mb-2 text-gray-500 dark:text-gray-400">
Flowbite is an open-source library of interactive components built on top of Tailwind CSS including buttons, dropdowns, modals, navbars, and more.
</p>
<p class="text-gray-500 dark:text-gray-400">
Check out this guide to learn how to <a
class="text-blue-600 dark:text-blue-500 hover:underline"
href="/docs/getting-started/introduction/"
>get started</a> and start developing websites
even faster with components on top of Tailwind CSS.
</p>
</div>
</fwb-accordion-content>
</fwb-accordion-panel>
<fwb-accordion-panel>
<fwb-accordion-header>another header</fwb-accordion-header>
<fwb-accordion-content>
<div>
<p class="mb-2 text-gray-500 dark:text-gray-400">
Flowbite is first conceptualized and designed using the Figma software so everything you see in the library has a design equivalent in our Figma file.
</p>
<p class="text-gray-500 dark:text-gray-400">
Check out the <a
class="text-blue-600 dark:text-blue-500 hover:underline"
href="https://flowbite.com/figma/"
>Figma design system</a> based on the utility classes from Tailwind CSS and
components from Flowbite.
</p>
</div>
</fwb-accordion-content>
</fwb-accordion-panel>
<fwb-accordion-panel>
<fwb-accordion-header>and one more header</fwb-accordion-header>
<fwb-accordion-content>
<div>
<p class="mb-2 text-gray-500 dark:text-gray-400">
Flowbite is first conceptualized and designed using the Figma software so everything you see in the library has a design equivalent in our Figma file.
</p>
<p class="text-gray-500 dark:text-gray-400">
Check out the <a
class="text-blue-600 dark:text-blue-500 hover:underline"
href="https://flowbite.com/figma/"
>Figma design system</a> based on the utility classes from Tailwind CSS and
components from Flowbite.
</p>
</div>
</fwb-accordion-content>
</fwb-accordion-panel>
</fwb-accordion>
</div>
</template>

<script setup>
import { FwbAccordion, FwbAccordionContent, FwbAccordionHeader, FwbAccordionPanel } from '../../../../src/index'
</script>
Loading