Components renaming (#225)

* refactor: eslint config adjusted for better diff's

* refactor: stricter linting
 + dependencies updated

* refactoring: paragraph component
 - component
 - docs

* refactoring: heading component
 - component
 - docs

* Update docs/components/heading.md

Co-authored-by: Ilya Artamonov <ilya.sosidka@gmail.com>

* refactoring: link component
 - component
 - docs

* refactoring: image component
 - component
 - docs

* refactoring: alert component
 - component
 - docs

* refactoring: avatar component
 - component
 - docs

* refactoring: removed unnecessary code
    - component names come from the file name

* refactoring: breadcrumb component
 - component
 - docs

* refactoring: accordion component
 - component
 - docs

* refactoring: buttom component
 - component
 - docs

* refactoring: badge component
 - component
 - docs

* refactoring: card component
 - component
 - docs

* refactoring: order of components in docs updated

* refactoring: unnecessary semicolons removed

* refactoring: button group component
 - component
 - docs

* refactoring: carousel component
 - component
 - docs

* refactoring: dropdown component
 - component
 - docs

* refactoring: footer component
 - component
 - docs

* refactoring:list-group component
 - component
 - docs

* refactoring: modal component
 - component
 - docs

* refactoring: navbar component
 - component
 - docs

* refactoring: pagination component
 - component
 - docs

* refactoring: progress component
 - component
 - docs

* refactoring: rating component
 - component
 - docs

* refactoring: spinner component
 - component
 - docs

* refactoring: table component
 - component
 - docs

* refactoring: tabs component
 - component
 - docs

* feat: Updated pagination examples

* lint: Lister fixes

* feat: Sidebar component and some fixes

* feat: Input component

* feat: Some fixes

* feat: Some fixes

* chore: update deps

* refactor: removed old Modal component

* refactor: radio component and some fixes

* fix: fixed path error

* refactor: Range component

* refactoring: timeline component
 - component
 - docs

* refactor: Select component

* refactoring: toast component
 - component
 - docs

* refactoring: tooltip component
 - component
 - docs

* refactoring: sidebar component
 - component
 - docs

* refactoring: input component
 - component
 - docs

* refactoring: fileInput component
 - component
 - docs

* refactoring: select component
 - component
 - docs

* refactoring: textarea component
 - component
 - docs

* refactoring: checkbox component
 - component
 - docs

* refactoring: radio component
 - component
 - docs

* refactoring: toggle component
 - component
 - docs

* refactoring: range component
 - component
 - docs

* local configs linted

* documentation quick start updated

* flowbite-themable refactored to fit new linters and style guide

* random linter fixes

* refactoring: toast-provider component
 - component
 - docs

* final linter fixes

* lint: Linter fixes

* fix: Fixed types

* fix: Fixed card component

* docs: Updated card examples

* fix: Fixed tabs

* refactor: Heading component refactoring

* Fwb rename - few fixes after component review (#237)

* fix: button documentation

* fix: model type in range examples

* chore: Toast marked as WIP

---------

Co-authored-by: Sqrcz <naorniakowski@slashlab.pl>
Co-authored-by: Sqrcz <naorniakowski@gmail.com>
This commit is contained in:
Ilya Artamonov
2023-10-23 18:23:14 +03:00
committed by GitHub
parent ea6fcf1a4c
commit d316cf3a12
600 changed files with 16349 additions and 10239 deletions

View File

@@ -0,0 +1,16 @@
<template>
<div class="vp-raw">
<fwb-input
v-model="name"
label="First name"
placeholder="enter your first name"
/>
</div>
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { FwbInput } from '../../../../src/index'
const name = ref('')
</script>

View File

@@ -0,0 +1,15 @@
<template>
<fwb-input
v-model="name"
disabled
label="First name"
placeholder="enter your first name"
/>
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { FwbInput } from '../../../../src/index'
const name = ref('')
</script>

View File

@@ -0,0 +1,26 @@
<template>
<div class="vp-raw">
<fwb-input
v-model="name"
label="First name"
placeholder="enter your first name"
>
<template #helper>
We'll never share your details. Read our
<fwb-a
href="#"
color="text-blue-600 dark:text-blue-500"
>
Privacy Policy
</fwb-a>.
</template>
</fwb-input>
</div>
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { FwbA, FwbInput } from '../../../../src/index'
const name = ref('')
</script>

View File

@@ -0,0 +1,34 @@
<template>
<div class="vp-raw">
<fwb-input
v-model="name"
label="Search"
placeholder="enter your search query"
>
<template #prefix>
<svg
aria-hidden="true"
class="w-5 h-5 text-gray-500 dark:text-gray-400"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
/>
</svg>
</template>
</fwb-input>
</div>
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { FwbInput } from '../../../../src/index'
const name = ref('')
</script>

View File

@@ -0,0 +1,17 @@
<template>
<div class="vp-raw">
<fwb-input
v-model="name"
label="First name"
placeholder="enter your first name"
required
/>
</div>
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { FwbInput } from '../../../../src/index'
const name = ref('')
</script>

View File

@@ -0,0 +1,29 @@
<template>
<div class="vp-raw grid gap-2">
<fwb-input
v-model="name"
label="Small"
placeholder="enter your name"
size="sm"
/>
<fwb-input
v-model="name"
label="Medium"
placeholder="enter your name"
size="md"
/>
<fwb-input
v-model="name"
label="Large"
placeholder="enter your name"
size="lg"
/>
</div>
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { FwbInput } from '../../../../src/index'
const name = ref('')
</script>

View File

@@ -0,0 +1,38 @@
<template>
<div class="vp-raw">
<fwb-input
v-model="name"
label="Search"
placeholder="enter your search query"
size="lg"
>
<template #prefix>
<svg
aria-hidden="true"
class="w-5 h-5 text-gray-500 dark:text-gray-400"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
/>
</svg>
</template>
<template #suffix>
<fwb-button>Search</fwb-button>
</template>
</fwb-input>
</div>
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { FwbButton, FwbInput } from '../../../../src/index'
const name = ref('')
</script>

View File

@@ -0,0 +1,30 @@
<template>
<div class="vp-raw">
<fwb-input
v-model="email"
required
placeholder="enter your email address"
label="Email"
validation-status="success"
/>
<hr class="mt-4 border-0">
<fwb-input
v-model="email"
required
placeholder="enter your email address"
label="Email"
validation-status="error"
>
<template #validationMessage>
Please enter a valid email address
</template>
</fwb-input>
</div>
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { FwbInput } from '../../../../src/index'
const email = ref('')
</script>

View File

@@ -1,6 +0,0 @@
<template>
<Input :disabled="true" placeholder="enter your first name" label="First name" />
</template>
<script lang="ts" setup>
import { Input } from '../../../../src/index'
</script>

View File

@@ -1,9 +0,0 @@
<template>
<Input v-model="name" placeholder="enter your first name" label="First name" />
</template>
<script lang="ts" setup>
import { Input } from '../../../../src/index'
import { ref } from 'vue'
const name = ref('')
</script>

View File

@@ -1,15 +0,0 @@
<template>
<div class="vp-raw">
<Input v-model='name' placeholder="enter your first name" label="First name">
<template #helper>
Well never share your details. Read our <a href="#" class="font-medium text-blue-600 hover:underline dark:text-blue-500">Privacy Policy</a>.
</template>
</Input>
</div>
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { Input } from '../../../../src/index'
const name = ref('')
</script>

View File

@@ -1,15 +0,0 @@
<template>
<div class="vp-raw">
<Input v-model='name' placeholder="enter your search query" label="Search">
<template #prefix>
<svg aria-hidden="true" class="w-5 h-5 text-gray-500 dark:text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg>
</template>
</Input>
</div>
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { Input } from '../../../../src/index'
const name = ref('')
</script>

View File

@@ -1,12 +0,0 @@
<template>
<div class="vp-raw">
<Input v-model='name' required placeholder="enter your first name" label="First name">
</Input>
</div>
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { Input } from '../../../../src/index'
const name = ref('')
</script>

View File

@@ -1,12 +0,0 @@
<template>
<div class="vp-raw flex flex-col align-center gap-2 flex-wrap">
<Input v-model='name' size="sm" placeholder="enter your first name" label="Small" />
<Input v-model='name' size="md" placeholder="enter your last name" label="Medium" />
<Input v-model='name' size="lg" placeholder="enter your second name" label="Large" />
</div>
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { Input } from '../../../../src/index'
const name = ref('')
</script>

View File

@@ -1,18 +0,0 @@
<template>
<div class="vp-raw">
<Input v-model='name' size="lg" placeholder="enter your search query" label="Search">
<template #prefix>
<svg aria-hidden="true" class="w-5 h-5 text-gray-500 dark:text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg>
</template>
<template #suffix>
<Button>Search</Button>
</template>
</Input>
</div>
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { Input, Button } from '../../../../src/index'
const name = ref('')
</script>

View File

@@ -1,17 +0,0 @@
<template>
<div class="vp-raw">
<Input v-model='email' required placeholder="enter your email address" label="Email" validation-status='success' />
<hr class='mt-4 border-0'>
<Input v-model='email' required placeholder="enter your email address" label="Email" validation-status='error'>
<template #validationMessage>
Please enter a valid email address
</template>
</Input>
</div>
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { Input } from '../../../../src/index'
const email = ref('')
</script>