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:
@@ -1,12 +0,0 @@
|
||||
<template>
|
||||
<div class="vp-raw flex flex-col">
|
||||
<Alert type="info" icon class="mb-2 border-t-4 rounded-none">Info alert! Change a few things up and try submitting again. </Alert>
|
||||
<Alert type="warning" icon class="mb-2 border-t-4 rounded-none">Warning alert! Change a few things up and try submitting again. </Alert>
|
||||
<Alert type="danger" icon class="mb-2 border-t-4 rounded-none"> Info Danger alert! Change a few things up and try submitting again. </Alert>
|
||||
<Alert type="dark" icon class="mb-2 border-t-4 rounded-none"> Info Dark alert! Change a few things up and try submitting again. </Alert>
|
||||
<Alert type="success" icon class="border-t-4 rounded-none">Success alert! Change a few things up and try submitting again. </Alert>
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
import { Alert } from '../../../../src/index'
|
||||
</script>
|
||||
@@ -1,12 +0,0 @@
|
||||
<template>
|
||||
<div class="vp-raw flex flex-col">
|
||||
<Alert type="info" border icon class="mb-2">Info alert! Change a few things up and try submitting again. </Alert>
|
||||
<Alert type="warning" border icon class="mb-2">Warning alert! Change a few things up and try submitting again. </Alert>
|
||||
<Alert type="danger" border icon class="mb-2"> Info Danger alert! Change a few things up and try submitting again. </Alert>
|
||||
<Alert type="dark" border icon class="mb-2"> Info Dark alert! Change a few things up and try submitting again. </Alert>
|
||||
<Alert type="success" border icon>Success alert! Change a few things up and try submitting again. </Alert>
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
import { Alert } from '../../../../src/index'
|
||||
</script>
|
||||
@@ -1,12 +0,0 @@
|
||||
<template>
|
||||
<div class="vp-raw flex flex-col">
|
||||
<Alert type="info" closable icon class="mb-2">Info</Alert>
|
||||
<Alert type="warning" closable icon class="mb-2">Warning</Alert>
|
||||
<Alert type="danger" closable icon class="mb-2">Danger</Alert>
|
||||
<Alert type="dark" closable icon class="mb-2">Dark</Alert>
|
||||
<Alert type="success" closable icon>Success</Alert>
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
import { Alert } from '../../../../src/index'
|
||||
</script>
|
||||
@@ -1,12 +0,0 @@
|
||||
<template>
|
||||
<div class="vp-raw flex flex-col">
|
||||
<Alert type="info" class="mb-2" icon> Info alert! Change a few things up and try submitting again. </Alert>
|
||||
<Alert type="warning" class="mb-2" icon> Warning alert! Change a few things up and try submitting again. </Alert>
|
||||
<Alert type="danger" class="mb-2" icon> Danger alert! Change a few things up and try submitting again. </Alert>
|
||||
<Alert type="dark" class="mb-2" icon> Dark alert! Change a few things up and try submitting again. </Alert>
|
||||
<Alert type="success" icon> Success alert! Change a few things up and try submitting again. </Alert>
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
import { Alert } from '../../../../src/index'
|
||||
</script>
|
||||
@@ -1,12 +0,0 @@
|
||||
<template>
|
||||
<div class="vp-raw flex flex-col">
|
||||
<Alert type="info" class="mb-2">Info alert! Change a few things up and try submitting again. </Alert>
|
||||
<Alert type="warning" class="mb-2"> Warning alert! Change a few things up and try submitting again. </Alert>
|
||||
<Alert type="danger" class="mb-2">Danger alert! Change a few things up and try submitting again. </Alert>
|
||||
<Alert type="dark" class="mb-2"> Dark alert! Change a few things up and try submitting again. </Alert>
|
||||
<Alert type="success"> Success alert! Change a few things up and try submitting again. </Alert>
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
import { Alert } from '../../../../src/index'
|
||||
</script>
|
||||
38
docs/components/alert/examples/FwbAlertExampleBorder.vue
Normal file
38
docs/components/alert/examples/FwbAlertExampleBorder.vue
Normal file
@@ -0,0 +1,38 @@
|
||||
<template>
|
||||
<div class="vp-raw grid gap-2">
|
||||
<fwb-alert
|
||||
border
|
||||
type="info"
|
||||
>
|
||||
Info alert! Change a few things up and try submitting again.
|
||||
</fwb-alert>
|
||||
<fwb-alert
|
||||
border
|
||||
type="warning"
|
||||
>
|
||||
Warning alert! Change a few things up and try submitting again.
|
||||
</fwb-alert>
|
||||
<fwb-alert
|
||||
border
|
||||
type="danger"
|
||||
>
|
||||
Info Danger alert! Change a few things up and try submitting again.
|
||||
</fwb-alert>
|
||||
<fwb-alert
|
||||
border
|
||||
type="dark"
|
||||
>
|
||||
Info Dark alert! Change a few things up and try submitting again.
|
||||
</fwb-alert>
|
||||
<fwb-alert
|
||||
border
|
||||
type="success"
|
||||
>
|
||||
Success alert! Change a few things up and try submitting again.
|
||||
</fwb-alert>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { FwbAlert } from '../../../../src/index'
|
||||
</script>
|
||||
@@ -0,0 +1,43 @@
|
||||
<template>
|
||||
<div class="vp-raw grid gap-2">
|
||||
<fwb-alert
|
||||
class="border-t-4 rounded-none"
|
||||
icon
|
||||
type="info"
|
||||
>
|
||||
Info alert! Change a few things up and try submitting again.
|
||||
</fwb-alert>
|
||||
<fwb-alert
|
||||
class="border-t-4 rounded-none"
|
||||
icon
|
||||
type="warning"
|
||||
>
|
||||
Warning alert! Change a few things up and try submitting again.
|
||||
</fwb-alert>
|
||||
<fwb-alert
|
||||
class="border-t-4 rounded-none"
|
||||
icon
|
||||
type="danger"
|
||||
>
|
||||
Info Danger alert! Change a few things up and try submitting again.
|
||||
</fwb-alert>
|
||||
<fwb-alert
|
||||
class="border-t-4 rounded-none"
|
||||
icon
|
||||
type="dark"
|
||||
>
|
||||
Info Dark alert! Change a few things up and try submitting again.
|
||||
</fwb-alert>
|
||||
<fwb-alert
|
||||
class="border-t-4 rounded-none"
|
||||
icon
|
||||
type="success"
|
||||
>
|
||||
Success alert! Change a few things up and try submitting again.
|
||||
</fwb-alert>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { FwbAlert } from '../../../../src/index'
|
||||
</script>
|
||||
@@ -1,16 +1,24 @@
|
||||
<template>
|
||||
<div class="vp-raw flex flex-col">
|
||||
<Alert type="info">
|
||||
<div class="vp-raw">
|
||||
<fwb-alert type="info">
|
||||
<template #icon>
|
||||
<svg class="flex-shrink-0 w-4 h-4 mr-2" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
|
||||
<svg
|
||||
class="flex-shrink-0 w-4 h-4 mr-2"
|
||||
aria-hidden="true"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
fill="currentColor"
|
||||
viewBox="0 0 20 20"
|
||||
>
|
||||
<path d="M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z" />
|
||||
</svg>
|
||||
<span class="sr-only">Info</span>
|
||||
</template>
|
||||
<template #title>
|
||||
<h3 class="text-lg font-medium">This is a info alert</h3>
|
||||
<h3 class="text-lg font-medium">
|
||||
This is a info alert
|
||||
</h3>
|
||||
</template>
|
||||
<template v-slot:default="{ onCloseClick }">
|
||||
<template #default="{ onCloseClick }">
|
||||
<div class="mt-2 mb-4 text-sm">
|
||||
More info about this info alert goes here. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.
|
||||
</div>
|
||||
@@ -19,7 +27,13 @@
|
||||
type="button"
|
||||
class="text-white bg-blue-800 hover:bg-blue-900 focus:ring-4 focus:outline-none focus:ring-blue-200 font-medium rounded-lg text-xs px-3 py-1.5 mr-2 text-center inline-flex items-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
||||
>
|
||||
<svg class="-ml-0.5 mr-2 h-3 w-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 14">
|
||||
<svg
|
||||
class="-ml-0.5 mr-2 h-3 w-3"
|
||||
aria-hidden="true"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
fill="currentColor"
|
||||
viewBox="0 0 20 14"
|
||||
>
|
||||
<path d="M10 0C4.612 0 0 5.336 0 7c0 1.742 3.546 7 10 7 6.454 0 10-5.258 10-7 0-1.664-4.612-7-10-7Zm0 10a3 3 0 1 1 0-6 3 3 0 0 1 0 6Z" />
|
||||
</svg>
|
||||
View more
|
||||
@@ -35,9 +49,10 @@
|
||||
</button>
|
||||
</div>
|
||||
</template>
|
||||
</Alert>
|
||||
</fwb-alert>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { Alert } from '../../../../src/index'
|
||||
import { FwbAlert } from '../../../../src/index'
|
||||
</script>
|
||||
@@ -0,0 +1,43 @@
|
||||
<template>
|
||||
<div class="vp-raw grid gap-2">
|
||||
<fwb-alert
|
||||
closable
|
||||
icon
|
||||
type="info"
|
||||
>
|
||||
Info
|
||||
</fwb-alert>
|
||||
<fwb-alert
|
||||
closable
|
||||
icon
|
||||
type="warning"
|
||||
>
|
||||
Warning
|
||||
</fwb-alert>
|
||||
<fwb-alert
|
||||
closable
|
||||
icon
|
||||
type="danger"
|
||||
>
|
||||
Danger
|
||||
</fwb-alert>
|
||||
<fwb-alert
|
||||
closable
|
||||
icon
|
||||
type="dark"
|
||||
>
|
||||
Dark
|
||||
</fwb-alert>
|
||||
<fwb-alert
|
||||
closable
|
||||
icon
|
||||
type="success"
|
||||
>
|
||||
Success
|
||||
</fwb-alert>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { FwbAlert } from '../../../../src/index'
|
||||
</script>
|
||||
38
docs/components/alert/examples/FwbAlertExampleIcon.vue
Normal file
38
docs/components/alert/examples/FwbAlertExampleIcon.vue
Normal file
@@ -0,0 +1,38 @@
|
||||
<template>
|
||||
<div class="vp-raw grid gap-2">
|
||||
<fwb-alert
|
||||
icon
|
||||
type="info"
|
||||
>
|
||||
Info alert! Change a few things up and try submitting again.
|
||||
</fwb-alert>
|
||||
<fwb-alert
|
||||
icon
|
||||
type="warning"
|
||||
>
|
||||
Warning alert! Change a few things up and try submitting again.
|
||||
</fwb-alert>
|
||||
<fwb-alert
|
||||
icon
|
||||
type="danger"
|
||||
>
|
||||
Danger alert! Change a few things up and try submitting again.
|
||||
</fwb-alert>
|
||||
<fwb-alert
|
||||
icon
|
||||
type="dark"
|
||||
>
|
||||
Dark alert! Change a few things up and try submitting again.
|
||||
</fwb-alert>
|
||||
<fwb-alert
|
||||
icon
|
||||
type="success"
|
||||
>
|
||||
Success alert! Change a few things up and try submitting again.
|
||||
</fwb-alert>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { FwbAlert } from '../../../../src/index'
|
||||
</script>
|
||||
@@ -1,23 +1,24 @@
|
||||
<template>
|
||||
<div class="vp-raw flex flex-col">
|
||||
<Alert type="info" class="mb-2">
|
||||
<div class="vp-raw grid gap-2">
|
||||
<fwb-alert type="info">
|
||||
<span class="font-medium">Ensure that these requirements are met:</span>
|
||||
<ul class="mt-1.5 ml-4 list-disc list-inside">
|
||||
<li>At least 10 characters (and up to 100 characters)</li>
|
||||
<li>At least one lowercase character</li>
|
||||
<li>Inclusion of at least one special character, e.g., ! @ # ?</li>
|
||||
</ul>
|
||||
</Alert>
|
||||
<Alert type="danger" class="mb-2">
|
||||
</fwb-alert>
|
||||
<fwb-alert type="danger">
|
||||
<span class="font-medium">Ensure that these requirements are met:</span>
|
||||
<ul class="mt-1.5 ml-4 list-disc list-inside">
|
||||
<li>At least 10 characters (and up to 100 characters)</li>
|
||||
<li>At least one lowercase character</li>
|
||||
<li>Inclusion of at least one special character, e.g., ! @ # ?</li>
|
||||
</ul>
|
||||
</Alert>
|
||||
</fwb-alert>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { Alert } from '../../../../src/index'
|
||||
import { FwbAlert } from '../../../../src/index'
|
||||
</script>
|
||||
23
docs/components/alert/examples/FwbAlertExampleType.vue
Normal file
23
docs/components/alert/examples/FwbAlertExampleType.vue
Normal file
@@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<div class="vp-raw grid gap-2">
|
||||
<fwb-alert type="info">
|
||||
Info alert! Change a few things up and try submitting again.
|
||||
</fwb-alert>
|
||||
<fwb-alert type="warning">
|
||||
Warning alert! Change a few things up and try submitting again.
|
||||
</fwb-alert>
|
||||
<fwb-alert type="danger">
|
||||
Danger alert! Change a few things up and try submitting again.
|
||||
</fwb-alert>
|
||||
<fwb-alert type="dark">
|
||||
Dark alert! Change a few things up and try submitting again.
|
||||
</fwb-alert>
|
||||
<fwb-alert type="success">
|
||||
Success alert! Change a few things up and try submitting again.
|
||||
</fwb-alert>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { FwbAlert } from '../../../../src/index'
|
||||
</script>
|
||||
Reference in New Issue
Block a user