@nuxt/ui 2.10.0 → 2.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/dist/module.d.mts +387 -104
- package/dist/module.d.ts +387 -104
- package/dist/module.json +1 -1
- package/dist/module.mjs +16 -7
- package/dist/runtime/components/data/Table.vue +3 -3
- package/dist/runtime/components/data/Table.vue.d.ts +7 -7
- package/dist/runtime/components/elements/Accordion.vue +2 -2
- package/dist/runtime/components/elements/Accordion.vue.d.ts +7 -7
- package/dist/runtime/components/elements/Alert.vue +13 -12
- package/dist/runtime/components/elements/Alert.vue.d.ts +12 -11
- package/dist/runtime/components/elements/Avatar.vue +2 -2
- package/dist/runtime/components/elements/Avatar.vue.d.ts +11 -10
- package/dist/runtime/components/elements/AvatarGroup.d.ts +11 -10
- package/dist/runtime/components/elements/AvatarGroup.mjs +2 -2
- package/dist/runtime/components/elements/Badge.vue +6 -4
- package/dist/runtime/components/elements/Badge.vue.d.ts +11 -11
- package/dist/runtime/components/elements/Button.vue +16 -12
- package/dist/runtime/components/elements/Button.vue.d.ts +13 -12
- package/dist/runtime/components/elements/ButtonGroup.d.ts +12 -11
- package/dist/runtime/components/elements/ButtonGroup.mjs +8 -34
- package/dist/runtime/components/elements/Chip.vue +85 -0
- package/dist/runtime/components/elements/Chip.vue.d.ts +90 -0
- package/dist/runtime/components/elements/Dropdown.vue +35 -21
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +13 -7
- package/dist/runtime/components/elements/Icon.vue +16 -2
- package/dist/runtime/components/elements/Icon.vue.d.ts +14 -2
- package/dist/runtime/components/elements/Kbd.vue +2 -2
- package/dist/runtime/components/elements/Kbd.vue.d.ts +12 -11
- package/dist/runtime/components/elements/Link.vue +2 -5
- package/dist/runtime/components/elements/Meter.vue +2 -2
- package/dist/runtime/components/elements/Meter.vue.d.ts +9 -9
- package/dist/runtime/components/elements/MeterGroup.d.ts +10 -10
- package/dist/runtime/components/elements/MeterGroup.mjs +8 -21
- package/dist/runtime/components/elements/Progress.vue +6 -95
- package/dist/runtime/components/elements/Progress.vue.d.ts +123 -1
- package/dist/runtime/components/forms/Checkbox.vue +8 -10
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +10 -10
- package/dist/runtime/components/forms/Form.vue +1 -1
- package/dist/runtime/components/forms/FormGroup.vue +9 -5
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +21 -11
- package/dist/runtime/components/forms/Input.vue +43 -12
- package/dist/runtime/components/forms/Input.vue.d.ts +38 -15
- package/dist/runtime/components/forms/Radio.vue +18 -12
- package/dist/runtime/components/forms/Radio.vue.d.ts +11 -10
- package/dist/runtime/components/forms/RadioGroup.vue +3 -3
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +13 -13
- package/dist/runtime/components/forms/Range.vue +5 -5
- package/dist/runtime/components/forms/Range.vue.d.ts +11 -10
- package/dist/runtime/components/forms/Select.vue +12 -9
- package/dist/runtime/components/forms/Select.vue.d.ts +15 -14
- package/dist/runtime/components/forms/SelectMenu.vue +42 -25
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +28 -19
- package/dist/runtime/components/forms/Textarea.vue +36 -6
- package/dist/runtime/components/forms/Textarea.vue.d.ts +37 -14
- package/dist/runtime/components/forms/Toggle.vue +25 -7
- package/dist/runtime/components/forms/Toggle.vue.d.ts +20 -7
- package/dist/runtime/components/layout/Card.vue +2 -2
- package/dist/runtime/components/layout/Card.vue.d.ts +7 -7
- package/dist/runtime/components/layout/Container.vue +2 -2
- package/dist/runtime/components/layout/Container.vue.d.ts +7 -7
- package/dist/runtime/components/layout/Divider.vue +3 -8
- package/dist/runtime/components/layout/Divider.vue.d.ts +9 -9
- package/dist/runtime/components/layout/Skeleton.vue +2 -2
- package/dist/runtime/components/layout/Skeleton.vue.d.ts +7 -7
- package/dist/runtime/components/navigation/Breadcrumb.vue +78 -0
- package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +50 -0
- package/dist/runtime/components/navigation/CommandPalette.vue +50 -37
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +15 -8
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue +1 -3
- package/dist/runtime/components/navigation/Pagination.vue +7 -7
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +11 -11
- package/dist/runtime/components/navigation/Tabs.vue +8 -5
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +10 -10
- package/dist/runtime/components/navigation/VerticalNavigation.vue +2 -2
- package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/ContextMenu.vue +4 -3
- package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/Modal.vue +3 -6
- package/dist/runtime/components/overlays/Modal.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/Notification.vue +30 -31
- package/dist/runtime/components/overlays/Notification.vue.d.ts +10 -9
- package/dist/runtime/components/overlays/Notifications.vue +18 -16
- package/dist/runtime/components/overlays/Notifications.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/Popover.vue +14 -4
- package/dist/runtime/components/overlays/Popover.vue.d.ts +20 -9
- package/dist/runtime/components/overlays/Slideover.vue +6 -6
- package/dist/runtime/components/overlays/Slideover.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/Tooltip.vue +6 -5
- package/dist/runtime/components/overlays/Tooltip.vue.d.ts +7 -7
- package/dist/runtime/composables/defineShortcuts.d.ts +1 -1
- package/dist/runtime/composables/defineShortcuts.mjs +8 -4
- package/dist/runtime/composables/useButtonGroup.d.ts +20 -0
- package/dist/runtime/composables/useButtonGroup.mjs +52 -0
- package/dist/runtime/composables/useFormGroup.d.ts +2 -0
- package/dist/runtime/composables/useFormGroup.mjs +3 -2
- package/dist/runtime/composables/useShortcuts.d.ts +2 -2
- package/dist/runtime/composables/useUI.d.ts +3 -3
- package/dist/runtime/types/alert.d.ts +7 -0
- package/dist/runtime/types/avatar.d.ts +3 -1
- package/dist/runtime/types/badge.d.ts +5 -4
- package/dist/runtime/types/breadcrumb.d.ts +9 -0
- package/dist/runtime/types/button.d.ts +5 -4
- package/dist/runtime/types/chip.d.ts +11 -0
- package/dist/runtime/types/dropdown.d.ts +2 -2
- package/dist/runtime/types/form-group.d.ts +5 -0
- package/dist/runtime/types/form.d.ts +3 -2
- package/dist/runtime/types/index.d.ts +10 -0
- package/dist/runtime/types/input.d.ts +8 -0
- package/dist/runtime/types/kbd.d.ts +5 -0
- package/dist/runtime/types/popper.d.ts +2 -0
- package/dist/runtime/types/range.d.ts +5 -0
- package/dist/runtime/types/select.d.ts +8 -0
- package/dist/runtime/types/textarea.d.ts +8 -0
- package/dist/runtime/types/toggle.d.ts +5 -0
- package/dist/runtime/types/utils.d.ts +24 -7
- package/dist/runtime/ui.config/data/table.d.ts +60 -0
- package/dist/runtime/ui.config/data/table.mjs +59 -0
- package/dist/runtime/ui.config/elements/accordion.d.ts +21 -0
- package/dist/runtime/ui.config/elements/accordion.mjs +20 -0
- package/dist/runtime/ui.config/elements/alert.d.ts +41 -0
- package/dist/runtime/ui.config/elements/alert.mjs +40 -0
- package/dist/runtime/ui.config/elements/avatar.d.ts +60 -0
- package/dist/runtime/ui.config/elements/avatar.mjs +59 -0
- package/dist/runtime/ui.config/elements/avatarGroup.d.ts +6 -0
- package/dist/runtime/ui.config/elements/avatarGroup.mjs +5 -0
- package/dist/runtime/ui.config/elements/badge.d.ts +34 -0
- package/dist/runtime/ui.config/elements/badge.mjs +33 -0
- package/dist/runtime/ui.config/elements/button.d.ts +81 -0
- package/dist/runtime/ui.config/elements/button.mjs +80 -0
- package/dist/runtime/ui.config/elements/buttonGroup.d.ts +101 -0
- package/dist/runtime/ui.config/elements/buttonGroup.mjs +19 -0
- package/dist/runtime/ui.config/elements/chip.d.ts +35 -0
- package/dist/runtime/ui.config/elements/chip.mjs +34 -0
- package/dist/runtime/ui.config/elements/dropdown.d.ts +55 -0
- package/dist/runtime/ui.config/elements/dropdown.mjs +53 -0
- package/dist/runtime/ui.config/elements/kbd.d.ts +17 -0
- package/dist/runtime/ui.config/elements/kbd.mjs +16 -0
- package/dist/runtime/ui.config/elements/meter.d.ts +77 -0
- package/dist/runtime/ui.config/elements/meter.mjs +76 -0
- package/dist/runtime/ui.config/elements/meterGroup.d.ts +52 -0
- package/dist/runtime/ui.config/elements/meterGroup.mjs +24 -0
- package/dist/runtime/ui.config/elements/progress.d.ts +75 -0
- package/dist/runtime/ui.config/elements/progress.mjs +74 -0
- package/dist/runtime/ui.config/forms/checkbox.d.ts +19 -0
- package/dist/runtime/ui.config/forms/checkbox.mjs +18 -0
- package/dist/runtime/ui.config/forms/formGroup.d.ts +25 -0
- package/dist/runtime/ui.config/forms/formGroup.mjs +25 -0
- package/dist/runtime/ui.config/forms/input.d.ts +107 -0
- package/dist/runtime/ui.config/forms/input.mjs +106 -0
- package/dist/runtime/ui.config/forms/radio.d.ts +18 -0
- package/dist/runtime/ui.config/forms/radio.mjs +17 -0
- package/dist/runtime/ui.config/forms/radioGroup.d.ts +8 -0
- package/dist/runtime/ui.config/forms/radioGroup.mjs +7 -0
- package/dist/runtime/ui.config/forms/range.d.ts +64 -0
- package/dist/runtime/ui.config/forms/range.mjs +63 -0
- package/dist/runtime/ui.config/forms/select.d.ts +108 -0
- package/dist/runtime/ui.config/forms/select.mjs +13 -0
- package/dist/runtime/ui.config/forms/selectMenu.d.ts +68 -0
- package/dist/runtime/ui.config/forms/selectMenu.mjs +66 -0
- package/dist/runtime/ui.config/forms/textarea.d.ts +106 -0
- package/dist/runtime/ui.config/forms/textarea.mjs +10 -0
- package/dist/runtime/ui.config/forms/toggle.d.ts +61 -0
- package/dist/runtime/ui.config/forms/toggle.mjs +60 -0
- package/dist/runtime/ui.config/index.d.ts +40 -0
- package/dist/runtime/ui.config/index.mjs +40 -0
- package/dist/runtime/ui.config/layout/card.d.ts +24 -0
- package/dist/runtime/ui.config/layout/card.mjs +23 -0
- package/dist/runtime/ui.config/layout/container.d.ts +6 -0
- package/dist/runtime/ui.config/layout/container.mjs +5 -0
- package/dist/runtime/ui.config/layout/divider.d.ts +35 -0
- package/dist/runtime/ui.config/layout/divider.mjs +34 -0
- package/dist/runtime/ui.config/layout/skeleton.d.ts +6 -0
- package/dist/runtime/ui.config/layout/skeleton.mjs +5 -0
- package/dist/runtime/ui.config/navigation/breadcrumb.d.ts +20 -0
- package/dist/runtime/ui.config/navigation/breadcrumb.mjs +19 -0
- package/dist/runtime/ui.config/navigation/commandPalette.d.ts +72 -0
- package/dist/runtime/ui.config/navigation/commandPalette.mjs +71 -0
- package/dist/runtime/ui.config/navigation/pagination.d.ts +35 -0
- package/dist/runtime/ui.config/navigation/pagination.mjs +34 -0
- package/dist/runtime/ui.config/navigation/tabs.d.ts +34 -0
- package/dist/runtime/ui.config/navigation/tabs.mjs +33 -0
- package/dist/runtime/ui.config/navigation/verticalNavigation.d.ts +28 -0
- package/dist/runtime/ui.config/navigation/verticalNavigation.mjs +27 -0
- package/dist/runtime/ui.config/overlays/contextMenu.d.ts +31 -0
- package/dist/runtime/ui.config/overlays/contextMenu.mjs +25 -0
- package/dist/runtime/ui.config/overlays/modal.d.ts +36 -0
- package/dist/runtime/ui.config/overlays/modal.mjs +37 -0
- package/dist/runtime/ui.config/overlays/notification.d.ts +50 -0
- package/dist/runtime/ui.config/overlays/notification.mjs +50 -0
- package/dist/runtime/ui.config/overlays/notifications.d.ts +7 -0
- package/dist/runtime/ui.config/overlays/notifications.mjs +6 -0
- package/dist/runtime/ui.config/overlays/popover.d.ts +43 -0
- package/dist/runtime/ui.config/overlays/popover.mjs +37 -0
- package/dist/runtime/ui.config/overlays/slideover.d.ts +32 -0
- package/dist/runtime/ui.config/overlays/slideover.mjs +33 -0
- package/dist/runtime/ui.config/overlays/tooltip.d.ts +33 -0
- package/dist/runtime/ui.config/overlays/tooltip.mjs +27 -0
- package/dist/runtime/ui.config/popper.d.ts +8 -0
- package/dist/runtime/ui.config/popper.mjs +8 -0
- package/dist/runtime/ui.css +1 -13
- package/dist/runtime/utils/index.d.ts +5 -0
- package/dist/runtime/utils/index.mjs +7 -3
- package/dist/types.d.mts +3 -2
- package/dist/types.d.ts +3 -2
- package/package.json +32 -21
- package/dist/runtime/ui.config.d.ts +0 -1470
- package/dist/runtime/ui.config.mjs +0 -1273
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { inject, ref, computed, onMounted } from "vue";
|
|
2
2
|
import { useDebounceFn } from "@vueuse/core";
|
|
3
|
+
import { uid } from "../utils/uid.mjs";
|
|
3
4
|
export const useFormGroup = (inputProps, config) => {
|
|
4
5
|
const formBus = inject("form-events", void 0);
|
|
5
6
|
const formGroup = inject("form-group", void 0);
|
|
6
7
|
const formInputs = inject("form-inputs", void 0);
|
|
7
8
|
const inputId = ref(inputProps?.id);
|
|
8
9
|
onMounted(() => {
|
|
9
|
-
inputId.value = inputProps?.id ??
|
|
10
|
+
inputId.value = inputProps?.legend === null || inputProps.legend ? void 0 : inputProps?.id ?? uid();
|
|
10
11
|
if (formGroup) {
|
|
11
12
|
formGroup.inputId.value = inputId.value;
|
|
12
13
|
if (formInputs) {
|
|
@@ -28,7 +29,7 @@ export const useFormGroup = (inputProps, config) => {
|
|
|
28
29
|
emitFormEvent("change", formGroup?.name.value);
|
|
29
30
|
}
|
|
30
31
|
const emitFormInput = useDebounceFn(() => {
|
|
31
|
-
if (blurred.value) {
|
|
32
|
+
if (blurred.value || formGroup?.eagerValidation.value) {
|
|
32
33
|
emitFormEvent("input", formGroup?.name.value);
|
|
33
34
|
}
|
|
34
35
|
}, 300);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare const _useShortcuts: () => {
|
|
2
|
-
macOS: import("vue").ComputedRef<
|
|
2
|
+
macOS: import("vue").ComputedRef<false | "" | RegExpMatchArray | null | undefined>;
|
|
3
3
|
metaSymbol: import("vue").Ref<string>;
|
|
4
4
|
activeElement: import("@vueuse/shared").ComputedRefWithControl<HTMLElement | null | undefined>;
|
|
5
5
|
usingInput: import("vue").ComputedRef<string | boolean>;
|
|
6
6
|
};
|
|
7
7
|
export declare const useShortcuts: () => {
|
|
8
|
-
macOS: import("vue").ComputedRef<
|
|
8
|
+
macOS: import("vue").ComputedRef<false | "" | RegExpMatchArray | null | undefined>;
|
|
9
9
|
metaSymbol: import("vue").Ref<string>;
|
|
10
10
|
activeElement: import("@vueuse/shared").ComputedRefWithControl<HTMLElement | null | undefined>;
|
|
11
11
|
usingInput: import("vue").ComputedRef<string | boolean>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Ref } from 'vue';
|
|
2
2
|
import type { Strategy } from '../types';
|
|
3
|
-
export declare const useUI: <T>(key: any, $ui
|
|
4
|
-
strategy
|
|
5
|
-
}> | undefined
|
|
3
|
+
export declare const useUI: <T>(key: any, $ui?: Ref<(Partial<T> & {
|
|
4
|
+
strategy?: Strategy | undefined;
|
|
5
|
+
}) | undefined> | undefined, $config?: T | Ref<T> | undefined, $wrapperClass?: Ref<string>, withAppConfig?: boolean) => {
|
|
6
6
|
ui: import("vue").ComputedRef<T>;
|
|
7
7
|
attrs: import("vue").ComputedRef<Pick<{
|
|
8
8
|
[x: string]: unknown;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { alert } from '../ui.config'
|
|
2
|
+
import type { NestedKeyOf, ExtractDeepKey, ExtractDeepObject } from '.'
|
|
3
|
+
import colors from '#ui-colors'
|
|
4
|
+
import type { AppConfig } from 'nuxt/schema'
|
|
5
|
+
|
|
6
|
+
export type AlertColor = keyof typeof alert.color | ExtractDeepKey<AppConfig, ['ui', 'alert', 'color']> | typeof colors[number]
|
|
7
|
+
export type AlertVariant = keyof typeof alert.variant | ExtractDeepKey<AppConfig, ['ui', 'alert', 'variant']> | NestedKeyOf<typeof alert.color> | NestedKeyOf<ExtractDeepObject<AppConfig, ['ui', 'alert', 'color']>>
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { avatar } from '../ui.config'
|
|
2
|
+
import type { ExtractDeepKey } from '.'
|
|
2
3
|
import colors from '#ui-colors'
|
|
4
|
+
import type { AppConfig } from 'nuxt/schema'
|
|
3
5
|
|
|
4
|
-
export type AvatarSize = keyof typeof avatar.size
|
|
6
|
+
export type AvatarSize = keyof typeof avatar.size | ExtractDeepKey<AppConfig, ['ui', 'avatar', 'size']>
|
|
5
7
|
export type AvatarChipColor = 'gray' | typeof colors[number]
|
|
6
8
|
export type AvatarChipPosition = keyof typeof avatar.chip.position
|
|
7
9
|
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { badge } from '../ui.config'
|
|
2
|
-
import type { NestedKeyOf } from '.'
|
|
2
|
+
import type { NestedKeyOf, ExtractDeepKey, ExtractDeepObject } from '.'
|
|
3
3
|
import colors from '#ui-colors'
|
|
4
|
+
import type { AppConfig } from 'nuxt/schema'
|
|
4
5
|
|
|
5
|
-
export type BadgeSize = keyof typeof badge.size
|
|
6
|
-
export type BadgeColor = keyof typeof badge.color | typeof colors[number]
|
|
7
|
-
export type BadgeVariant = keyof typeof badge.variant | NestedKeyOf<typeof badge.color>
|
|
6
|
+
export type BadgeSize = keyof typeof badge.size | ExtractDeepKey<AppConfig, ['ui', 'badge', 'size']>
|
|
7
|
+
export type BadgeColor = keyof typeof badge.color | ExtractDeepKey<AppConfig, ['ui', 'badge', 'color']> | typeof colors[number]
|
|
8
|
+
export type BadgeVariant = keyof typeof badge.variant | ExtractDeepKey<AppConfig, ['ui', 'badge', 'variant']> | NestedKeyOf<typeof badge.color> | NestedKeyOf<ExtractDeepObject<AppConfig, ['ui', 'badge', 'color']>>
|
|
8
9
|
|
|
9
10
|
export interface Badge {
|
|
10
11
|
label?: string
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Link } from './link'
|
|
2
|
+
|
|
3
|
+
export interface BreadcrumbLink extends Link {
|
|
4
|
+
label: string
|
|
5
|
+
icon?: string
|
|
6
|
+
iconClass?: string
|
|
7
|
+
// FIXME: This is a workaround for `link.to` not being resolved although it extends `NuxtLinkProps`
|
|
8
|
+
[key: string]: any
|
|
9
|
+
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { Link } from './link'
|
|
2
2
|
import { button } from '../ui.config'
|
|
3
|
-
import type { NestedKeyOf } from '.'
|
|
3
|
+
import type { NestedKeyOf, ExtractDeepKey, ExtractDeepObject } from '.'
|
|
4
4
|
import colors from '#ui-colors'
|
|
5
|
+
import type { AppConfig } from 'nuxt/schema'
|
|
5
6
|
|
|
6
|
-
export type ButtonSize = keyof typeof button.size
|
|
7
|
-
export type ButtonColor = keyof typeof button.color | typeof colors[number]
|
|
8
|
-
export type ButtonVariant = keyof typeof button.variant | NestedKeyOf<typeof button.color>
|
|
7
|
+
export type ButtonSize = keyof typeof button.size | ExtractDeepKey<AppConfig, ['ui', 'button', 'size']>
|
|
8
|
+
export type ButtonColor = keyof typeof button.color | ExtractDeepKey<AppConfig, ['ui', 'button', 'color']> | typeof colors[number]
|
|
9
|
+
export type ButtonVariant = keyof typeof button.variant | ExtractDeepKey<AppConfig, ['ui', 'button', 'variant']> | NestedKeyOf<typeof button.color> | NestedKeyOf<ExtractDeepObject<AppConfig, ['ui', 'button', 'color']>>
|
|
9
10
|
|
|
10
11
|
export interface Button extends Link {
|
|
11
12
|
type?: string
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { chip } from '../ui.config'
|
|
2
|
+
import colors from '#ui-colors'
|
|
3
|
+
|
|
4
|
+
export type ChipSize = keyof typeof chip.size
|
|
5
|
+
export type ChipColor = 'gray' | typeof colors[number]
|
|
6
|
+
export type ChipPosition = keyof typeof chip.position
|
|
7
|
+
|
|
8
|
+
export interface Chip {
|
|
9
|
+
color?: ChipColor
|
|
10
|
+
position?: ChipPosition
|
|
11
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuxtLinkProps } from '#app'
|
|
2
2
|
import type { Avatar } from './avatar'
|
|
3
3
|
|
|
4
|
-
export interface DropdownItem extends
|
|
4
|
+
export interface DropdownItem extends NuxtLinkProps {
|
|
5
5
|
label: string
|
|
6
6
|
slot?: string
|
|
7
7
|
icon?: string
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ref } from 'vue'
|
|
1
|
+
import type { Ref } from 'vue'
|
|
2
2
|
|
|
3
3
|
export interface FormError<T extends string = string> {
|
|
4
4
|
path: T
|
|
@@ -31,5 +31,6 @@ export interface InjectedFormGroupValue {
|
|
|
31
31
|
inputId: Ref<string | undefined>
|
|
32
32
|
name: Ref<string>
|
|
33
33
|
size: Ref<string | number | symbol>
|
|
34
|
-
error: Ref<string | boolean>
|
|
34
|
+
error: Ref<string | boolean | undefined>
|
|
35
|
+
eagerValidation: Ref<boolean>
|
|
35
36
|
}
|
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
export * from './accordion'
|
|
2
|
+
export * from './alert'
|
|
2
3
|
export * from './avatar'
|
|
3
4
|
export * from './badge'
|
|
5
|
+
export * from './breadcrumb'
|
|
4
6
|
export * from './button'
|
|
7
|
+
export * from './chip'
|
|
5
8
|
export * from './clipboard'
|
|
6
9
|
export * from './command-palette'
|
|
7
10
|
export * from './dropdown'
|
|
11
|
+
export * from './form-group'
|
|
8
12
|
export * from './form'
|
|
13
|
+
export * from './input'
|
|
14
|
+
export * from './kbd'
|
|
9
15
|
export * from './link'
|
|
10
16
|
export * from './meter'
|
|
11
17
|
export * from './notification'
|
|
12
18
|
export * from './popper'
|
|
13
19
|
export * from './progress'
|
|
20
|
+
export * from './range'
|
|
21
|
+
export * from './select'
|
|
14
22
|
export * from './tabs'
|
|
23
|
+
export * from './textarea'
|
|
24
|
+
export * from './toggle'
|
|
15
25
|
export * from './vertical-navigation'
|
|
16
26
|
export * from './utils'
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { input } from '../ui.config'
|
|
2
|
+
import type { NestedKeyOf, ExtractDeepKey, ExtractDeepObject } from '.'
|
|
3
|
+
import colors from '#ui-colors'
|
|
4
|
+
import type { AppConfig } from 'nuxt/schema'
|
|
5
|
+
|
|
6
|
+
export type InputSize = keyof typeof input.size | ExtractDeepKey<AppConfig, ['ui', 'input', 'size']>
|
|
7
|
+
export type InputColor = keyof typeof input.color | ExtractDeepKey<AppConfig, ['ui', 'input', 'color']> | typeof colors[number]
|
|
8
|
+
export type InputVariant = keyof typeof input.variant | ExtractDeepKey<AppConfig, ['ui', 'input', 'variant']> | NestedKeyOf<typeof input.color> | NestedKeyOf<ExtractDeepObject<AppConfig, ['ui', 'input', 'color']>>
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { Placement, PositioningStrategy } from '@popperjs/core'
|
|
2
2
|
|
|
3
3
|
export interface PopperOptions {
|
|
4
|
+
// Workaround for weak types: https://mariusschulz.com/blog/weak-type-detection-in-typescript#workarounds-for-weak-types
|
|
5
|
+
[key: string]: unknown
|
|
4
6
|
locked?: boolean
|
|
5
7
|
overflowPadding?: number
|
|
6
8
|
offsetDistance?: number
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { select } from '../ui.config'
|
|
2
|
+
import type { NestedKeyOf, ExtractDeepKey, ExtractDeepObject } from '.'
|
|
3
|
+
import colors from '#ui-colors'
|
|
4
|
+
import type { AppConfig } from 'nuxt/schema'
|
|
5
|
+
|
|
6
|
+
export type SelectSize = keyof typeof select.size | ExtractDeepKey<AppConfig, ['ui', 'select', 'size']>
|
|
7
|
+
export type SelectColor = keyof typeof select.color | ExtractDeepKey<AppConfig, ['ui', 'select', 'color']> | typeof colors[number]
|
|
8
|
+
export type SelectVariant = keyof typeof select.variant | ExtractDeepKey<AppConfig, ['ui', 'select', 'variant']> | NestedKeyOf<typeof select.color> | NestedKeyOf<ExtractDeepObject<AppConfig, ['ui', 'select', 'color']>>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { textarea } from '../ui.config'
|
|
2
|
+
import type { NestedKeyOf, ExtractDeepKey, ExtractDeepObject } from '.'
|
|
3
|
+
import colors from '#ui-colors'
|
|
4
|
+
import type { AppConfig } from 'nuxt/schema'
|
|
5
|
+
|
|
6
|
+
export type TextareaSize = keyof typeof textarea.size | ExtractDeepKey<AppConfig, ['ui', 'textarea', 'size']>
|
|
7
|
+
export type TextareaColor = keyof typeof textarea.color | ExtractDeepKey<AppConfig, ['ui', 'textarea', 'color']> | typeof colors[number]
|
|
8
|
+
export type TextareaVariant = keyof typeof textarea.variant | ExtractDeepKey<AppConfig, ['ui', 'textarea', 'variant']> | NestedKeyOf<typeof textarea.color> | NestedKeyOf<ExtractDeepObject<AppConfig, ['ui', 'textarea', 'color']>>
|
|
@@ -1,11 +1,28 @@
|
|
|
1
|
-
export type Strategy = 'merge' | 'override'
|
|
1
|
+
export type Strategy = 'merge' | 'override'
|
|
2
2
|
|
|
3
|
-
export type NestedKeyOf<ObjectType extends
|
|
4
|
-
[Key in keyof ObjectType]: ObjectType[Key] extends
|
|
3
|
+
export type NestedKeyOf<ObjectType extends Record<string, any>> = {
|
|
4
|
+
[Key in keyof ObjectType]: ObjectType[Key] extends Record<string, any>
|
|
5
5
|
? NestedKeyOf<ObjectType[Key]>
|
|
6
|
-
: Key
|
|
7
|
-
}[keyof ObjectType]
|
|
6
|
+
: Key
|
|
7
|
+
}[keyof ObjectType]
|
|
8
8
|
|
|
9
9
|
export type DeepPartial<T> = Partial<{
|
|
10
|
-
[P in keyof T]: DeepPartial<T[P]> | { [key: string]: string | object }
|
|
11
|
-
}
|
|
10
|
+
[P in keyof T]: DeepPartial<T[P]> | { [key: string]: string | object }
|
|
11
|
+
}>
|
|
12
|
+
|
|
13
|
+
type DeepKey<T, Keys extends string[]> =
|
|
14
|
+
Keys extends [infer First, ...infer Rest]
|
|
15
|
+
? First extends keyof T
|
|
16
|
+
? Rest extends string[]
|
|
17
|
+
? DeepKey<T[First], Rest>
|
|
18
|
+
: never
|
|
19
|
+
: never
|
|
20
|
+
: T
|
|
21
|
+
|
|
22
|
+
export type ExtractDeepKey<T, Path extends string[]> = DeepKey<T, Path> extends infer Result
|
|
23
|
+
? Result extends Record<string, any> ? keyof Result : never
|
|
24
|
+
: never
|
|
25
|
+
|
|
26
|
+
export type ExtractDeepObject<T, Path extends string[]> = DeepKey<T, Path> extends infer Result
|
|
27
|
+
? Result extends Record<string, any> ? Result : never
|
|
28
|
+
: never
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
wrapper: string;
|
|
3
|
+
base: string;
|
|
4
|
+
divide: string;
|
|
5
|
+
thead: string;
|
|
6
|
+
tbody: string;
|
|
7
|
+
tr: {
|
|
8
|
+
base: string;
|
|
9
|
+
selected: string;
|
|
10
|
+
active: string;
|
|
11
|
+
};
|
|
12
|
+
th: {
|
|
13
|
+
base: string;
|
|
14
|
+
padding: string;
|
|
15
|
+
color: string;
|
|
16
|
+
font: string;
|
|
17
|
+
size: string;
|
|
18
|
+
};
|
|
19
|
+
td: {
|
|
20
|
+
base: string;
|
|
21
|
+
padding: string;
|
|
22
|
+
color: string;
|
|
23
|
+
font: string;
|
|
24
|
+
size: string;
|
|
25
|
+
};
|
|
26
|
+
checkbox: {
|
|
27
|
+
padding: string;
|
|
28
|
+
};
|
|
29
|
+
loadingState: {
|
|
30
|
+
wrapper: string;
|
|
31
|
+
label: string;
|
|
32
|
+
icon: string;
|
|
33
|
+
};
|
|
34
|
+
emptyState: {
|
|
35
|
+
wrapper: string;
|
|
36
|
+
label: string;
|
|
37
|
+
icon: string;
|
|
38
|
+
};
|
|
39
|
+
default: {
|
|
40
|
+
sortAscIcon: string;
|
|
41
|
+
sortDescIcon: string;
|
|
42
|
+
sortButton: {
|
|
43
|
+
icon: string;
|
|
44
|
+
trailing: boolean;
|
|
45
|
+
square: boolean;
|
|
46
|
+
color: "gray";
|
|
47
|
+
variant: "ghost";
|
|
48
|
+
class: string;
|
|
49
|
+
};
|
|
50
|
+
loadingState: {
|
|
51
|
+
icon: string;
|
|
52
|
+
label: string;
|
|
53
|
+
};
|
|
54
|
+
emptyState: {
|
|
55
|
+
icon: string;
|
|
56
|
+
label: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export default _default;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
wrapper: "relative overflow-x-auto",
|
|
3
|
+
base: "min-w-full table-fixed",
|
|
4
|
+
divide: "divide-y divide-gray-300 dark:divide-gray-700",
|
|
5
|
+
thead: "",
|
|
6
|
+
tbody: "divide-y divide-gray-200 dark:divide-gray-800",
|
|
7
|
+
tr: {
|
|
8
|
+
base: "",
|
|
9
|
+
selected: "bg-gray-50 dark:bg-gray-800/50",
|
|
10
|
+
active: "hover:bg-gray-50 dark:hover:bg-gray-800/50 cursor-pointer"
|
|
11
|
+
},
|
|
12
|
+
th: {
|
|
13
|
+
base: "text-left rtl:text-right",
|
|
14
|
+
padding: "px-3 py-3.5",
|
|
15
|
+
color: "text-gray-900 dark:text-white",
|
|
16
|
+
font: "font-semibold",
|
|
17
|
+
size: "text-sm"
|
|
18
|
+
},
|
|
19
|
+
td: {
|
|
20
|
+
base: "whitespace-nowrap",
|
|
21
|
+
padding: "px-3 py-4",
|
|
22
|
+
color: "text-gray-500 dark:text-gray-400",
|
|
23
|
+
font: "",
|
|
24
|
+
size: "text-sm"
|
|
25
|
+
},
|
|
26
|
+
checkbox: {
|
|
27
|
+
padding: "ps-4"
|
|
28
|
+
},
|
|
29
|
+
loadingState: {
|
|
30
|
+
wrapper: "flex flex-col items-center justify-center flex-1 px-6 py-14 sm:px-14",
|
|
31
|
+
label: "text-sm text-center text-gray-900 dark:text-white",
|
|
32
|
+
icon: "w-6 h-6 mx-auto text-gray-400 dark:text-gray-500 mb-4 animate-spin"
|
|
33
|
+
},
|
|
34
|
+
emptyState: {
|
|
35
|
+
wrapper: "flex flex-col items-center justify-center flex-1 px-6 py-14 sm:px-14",
|
|
36
|
+
label: "text-sm text-center text-gray-900 dark:text-white",
|
|
37
|
+
icon: "w-6 h-6 mx-auto text-gray-400 dark:text-gray-500 mb-4"
|
|
38
|
+
},
|
|
39
|
+
default: {
|
|
40
|
+
sortAscIcon: "i-heroicons-bars-arrow-up-20-solid",
|
|
41
|
+
sortDescIcon: "i-heroicons-bars-arrow-down-20-solid",
|
|
42
|
+
sortButton: {
|
|
43
|
+
icon: "i-heroicons-arrows-up-down-20-solid",
|
|
44
|
+
trailing: true,
|
|
45
|
+
square: true,
|
|
46
|
+
color: "gray",
|
|
47
|
+
variant: "ghost",
|
|
48
|
+
class: "-m-1.5"
|
|
49
|
+
},
|
|
50
|
+
loadingState: {
|
|
51
|
+
icon: "i-heroicons-arrow-path-20-solid",
|
|
52
|
+
label: "Loading..."
|
|
53
|
+
},
|
|
54
|
+
emptyState: {
|
|
55
|
+
icon: "i-heroicons-circle-stack-20-solid",
|
|
56
|
+
label: "No items."
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
wrapper: string;
|
|
3
|
+
item: {
|
|
4
|
+
base: string;
|
|
5
|
+
size: string;
|
|
6
|
+
color: string;
|
|
7
|
+
padding: string;
|
|
8
|
+
icon: string;
|
|
9
|
+
};
|
|
10
|
+
transition: {
|
|
11
|
+
enterActiveClass: string;
|
|
12
|
+
leaveActiveClass: string;
|
|
13
|
+
};
|
|
14
|
+
default: {
|
|
15
|
+
openIcon: string;
|
|
16
|
+
closeIcon: string;
|
|
17
|
+
class: string;
|
|
18
|
+
variant: "soft";
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
wrapper: "w-full flex flex-col",
|
|
3
|
+
item: {
|
|
4
|
+
base: "",
|
|
5
|
+
size: "text-sm",
|
|
6
|
+
color: "text-gray-500 dark:text-gray-400",
|
|
7
|
+
padding: "pt-1.5 pb-3",
|
|
8
|
+
icon: "ms-auto transform transition-transform duration-200"
|
|
9
|
+
},
|
|
10
|
+
transition: {
|
|
11
|
+
enterActiveClass: "overflow-hidden transition-[height] duration-200 ease-out",
|
|
12
|
+
leaveActiveClass: "overflow-hidden transition-[height] duration-200 ease-out"
|
|
13
|
+
},
|
|
14
|
+
default: {
|
|
15
|
+
openIcon: "i-heroicons-chevron-down-20-solid",
|
|
16
|
+
closeIcon: "",
|
|
17
|
+
class: "mb-1.5 w-full",
|
|
18
|
+
variant: "soft"
|
|
19
|
+
}
|
|
20
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
wrapper: string;
|
|
3
|
+
inner: string;
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
actions: string;
|
|
7
|
+
shadow: string;
|
|
8
|
+
rounded: string;
|
|
9
|
+
padding: string;
|
|
10
|
+
gap: string;
|
|
11
|
+
icon: {
|
|
12
|
+
base: string;
|
|
13
|
+
};
|
|
14
|
+
avatar: {
|
|
15
|
+
base: string;
|
|
16
|
+
size: "md";
|
|
17
|
+
};
|
|
18
|
+
color: {
|
|
19
|
+
white: {
|
|
20
|
+
solid: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
variant: {
|
|
24
|
+
solid: string;
|
|
25
|
+
outline: string;
|
|
26
|
+
soft: string;
|
|
27
|
+
subtle: string;
|
|
28
|
+
};
|
|
29
|
+
default: {
|
|
30
|
+
color: string;
|
|
31
|
+
variant: string;
|
|
32
|
+
icon: null;
|
|
33
|
+
closeButton: null;
|
|
34
|
+
actionButton: {
|
|
35
|
+
size: "xs";
|
|
36
|
+
color: "primary";
|
|
37
|
+
variant: "link";
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export default _default;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
wrapper: "w-full relative overflow-hidden",
|
|
3
|
+
inner: "w-0 flex-1",
|
|
4
|
+
title: "text-sm font-medium",
|
|
5
|
+
description: "mt-1 text-sm leading-4 opacity-90",
|
|
6
|
+
actions: "flex items-center gap-2 mt-3 flex-shrink-0",
|
|
7
|
+
shadow: "",
|
|
8
|
+
rounded: "rounded-lg",
|
|
9
|
+
padding: "p-4",
|
|
10
|
+
gap: "gap-3",
|
|
11
|
+
icon: {
|
|
12
|
+
base: "flex-shrink-0 w-5 h-5"
|
|
13
|
+
},
|
|
14
|
+
avatar: {
|
|
15
|
+
base: "flex-shrink-0 self-center",
|
|
16
|
+
size: "md"
|
|
17
|
+
},
|
|
18
|
+
color: {
|
|
19
|
+
white: {
|
|
20
|
+
solid: "text-gray-900 dark:text-white bg-white dark:bg-gray-900 ring-1 ring-gray-200 dark:ring-gray-800"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
variant: {
|
|
24
|
+
solid: "bg-{color}-500 dark:bg-{color}-400 text-white dark:text-gray-900",
|
|
25
|
+
outline: "text-{color}-500 dark:text-{color}-400 ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400",
|
|
26
|
+
soft: "bg-{color}-50 dark:bg-{color}-400 dark:bg-opacity-10 text-{color}-500 dark:text-{color}-400",
|
|
27
|
+
subtle: "bg-{color}-50 dark:bg-{color}-400 dark:bg-opacity-10 text-{color}-500 dark:text-{color}-400 ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400 ring-opacity-25 dark:ring-opacity-25"
|
|
28
|
+
},
|
|
29
|
+
default: {
|
|
30
|
+
color: "white",
|
|
31
|
+
variant: "solid",
|
|
32
|
+
icon: null,
|
|
33
|
+
closeButton: null,
|
|
34
|
+
actionButton: {
|
|
35
|
+
size: "xs",
|
|
36
|
+
color: "primary",
|
|
37
|
+
variant: "link"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
wrapper: string;
|
|
3
|
+
background: string;
|
|
4
|
+
rounded: string;
|
|
5
|
+
text: string;
|
|
6
|
+
placeholder: string;
|
|
7
|
+
size: {
|
|
8
|
+
'3xs': string;
|
|
9
|
+
'2xs': string;
|
|
10
|
+
xs: string;
|
|
11
|
+
sm: string;
|
|
12
|
+
md: string;
|
|
13
|
+
lg: string;
|
|
14
|
+
xl: string;
|
|
15
|
+
'2xl': string;
|
|
16
|
+
'3xl': string;
|
|
17
|
+
};
|
|
18
|
+
chip: {
|
|
19
|
+
base: string;
|
|
20
|
+
background: string;
|
|
21
|
+
position: {
|
|
22
|
+
'top-right': string;
|
|
23
|
+
'bottom-right': string;
|
|
24
|
+
'top-left': string;
|
|
25
|
+
'bottom-left': string;
|
|
26
|
+
};
|
|
27
|
+
size: {
|
|
28
|
+
'3xs': string;
|
|
29
|
+
'2xs': string;
|
|
30
|
+
xs: string;
|
|
31
|
+
sm: string;
|
|
32
|
+
md: string;
|
|
33
|
+
lg: string;
|
|
34
|
+
xl: string;
|
|
35
|
+
'2xl': string;
|
|
36
|
+
'3xl': string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
icon: {
|
|
40
|
+
base: string;
|
|
41
|
+
size: {
|
|
42
|
+
'3xs': string;
|
|
43
|
+
'2xs': string;
|
|
44
|
+
xs: string;
|
|
45
|
+
sm: string;
|
|
46
|
+
md: string;
|
|
47
|
+
lg: string;
|
|
48
|
+
xl: string;
|
|
49
|
+
'2xl': string;
|
|
50
|
+
'3xl': string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
default: {
|
|
54
|
+
size: string;
|
|
55
|
+
icon: null;
|
|
56
|
+
chipColor: null;
|
|
57
|
+
chipPosition: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export default _default;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
wrapper: "relative inline-flex items-center justify-center flex-shrink-0",
|
|
3
|
+
background: "bg-gray-100 dark:bg-gray-800",
|
|
4
|
+
rounded: "rounded-full",
|
|
5
|
+
text: "font-medium leading-none text-gray-900 dark:text-white truncate",
|
|
6
|
+
placeholder: "font-medium leading-none text-gray-500 dark:text-gray-400 truncate",
|
|
7
|
+
size: {
|
|
8
|
+
"3xs": "h-4 w-4 text-[8px]",
|
|
9
|
+
"2xs": "h-5 w-5 text-[10px]",
|
|
10
|
+
xs: "h-6 w-6 text-xs",
|
|
11
|
+
sm: "h-8 w-8 text-sm",
|
|
12
|
+
md: "h-10 w-10 text-base",
|
|
13
|
+
lg: "h-12 w-12 text-lg",
|
|
14
|
+
xl: "h-14 w-14 text-xl",
|
|
15
|
+
"2xl": "h-16 w-16 text-2xl",
|
|
16
|
+
"3xl": "h-20 w-20 text-3xl"
|
|
17
|
+
},
|
|
18
|
+
chip: {
|
|
19
|
+
base: "absolute rounded-full ring-1 ring-white dark:ring-gray-900 flex items-center justify-center text-white dark:text-gray-900 font-medium",
|
|
20
|
+
background: "bg-{color}-500 dark:bg-{color}-400",
|
|
21
|
+
position: {
|
|
22
|
+
"top-right": "top-0 right-0",
|
|
23
|
+
"bottom-right": "bottom-0 right-0",
|
|
24
|
+
"top-left": "top-0 left-0",
|
|
25
|
+
"bottom-left": "bottom-0 left-0"
|
|
26
|
+
},
|
|
27
|
+
size: {
|
|
28
|
+
"3xs": "h-[4px] min-w-[4px] text-[4px] p-px",
|
|
29
|
+
"2xs": "h-[5px] min-w-[5px] text-[5px] p-px",
|
|
30
|
+
xs: "h-1.5 min-w-[0.375rem] text-[6px] p-px",
|
|
31
|
+
sm: "h-2 min-w-[0.5rem] text-[7px] p-0.5",
|
|
32
|
+
md: "h-2.5 min-w-[0.625rem] text-[8px] p-0.5",
|
|
33
|
+
lg: "h-3 min-w-[0.75rem] text-[10px] p-0.5",
|
|
34
|
+
xl: "h-3.5 min-w-[0.875rem] text-[11px] p-1",
|
|
35
|
+
"2xl": "h-4 min-w-[1rem] text-[12px] p-1",
|
|
36
|
+
"3xl": "h-5 min-w-[1.25rem] text-[14px] p-1"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
icon: {
|
|
40
|
+
base: "text-gray-500 dark:text-gray-400 flex-shrink-0",
|
|
41
|
+
size: {
|
|
42
|
+
"3xs": "h-2 w-2",
|
|
43
|
+
"2xs": "h-2.5 w-2.5",
|
|
44
|
+
xs: "h-3 w-3",
|
|
45
|
+
sm: "h-4 w-4",
|
|
46
|
+
md: "h-5 w-5",
|
|
47
|
+
lg: "h-6 w-6",
|
|
48
|
+
xl: "h-7 w-7",
|
|
49
|
+
"2xl": "h-8 w-8",
|
|
50
|
+
"3xl": "h-10 w-10"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
default: {
|
|
54
|
+
size: "sm",
|
|
55
|
+
icon: null,
|
|
56
|
+
chipColor: null,
|
|
57
|
+
chipPosition: "top-right"
|
|
58
|
+
}
|
|
59
|
+
};
|