@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
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: string;
|
|
3
|
+
rounded: string;
|
|
4
|
+
font: string;
|
|
5
|
+
size: {
|
|
6
|
+
xs: string;
|
|
7
|
+
sm: string;
|
|
8
|
+
md: string;
|
|
9
|
+
lg: string;
|
|
10
|
+
};
|
|
11
|
+
color: {
|
|
12
|
+
white: {
|
|
13
|
+
solid: string;
|
|
14
|
+
};
|
|
15
|
+
gray: {
|
|
16
|
+
solid: string;
|
|
17
|
+
};
|
|
18
|
+
black: {
|
|
19
|
+
solid: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
variant: {
|
|
23
|
+
solid: string;
|
|
24
|
+
outline: string;
|
|
25
|
+
soft: string;
|
|
26
|
+
subtle: string;
|
|
27
|
+
};
|
|
28
|
+
default: {
|
|
29
|
+
size: string;
|
|
30
|
+
variant: string;
|
|
31
|
+
color: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
base: "inline-flex items-center",
|
|
3
|
+
rounded: "rounded-md",
|
|
4
|
+
font: "font-medium",
|
|
5
|
+
size: {
|
|
6
|
+
xs: "text-xs px-1.5 py-0.5",
|
|
7
|
+
sm: "text-xs px-2 py-1",
|
|
8
|
+
md: "text-sm px-2 py-1",
|
|
9
|
+
lg: "text-sm px-2.5 py-1.5"
|
|
10
|
+
},
|
|
11
|
+
color: {
|
|
12
|
+
white: {
|
|
13
|
+
solid: "ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-900 dark:text-white bg-white dark:bg-gray-900"
|
|
14
|
+
},
|
|
15
|
+
gray: {
|
|
16
|
+
solid: "ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-700 dark:text-gray-200 bg-gray-50 dark:bg-gray-800"
|
|
17
|
+
},
|
|
18
|
+
black: {
|
|
19
|
+
solid: "text-white dark:text-gray-900 bg-gray-900 dark:bg-white"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
variant: {
|
|
23
|
+
solid: "bg-{color}-500 dark:bg-{color}-400 text-white dark:text-gray-900",
|
|
24
|
+
outline: "text-{color}-500 dark:text-{color}-400 ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400",
|
|
25
|
+
soft: "bg-{color}-50 dark:bg-{color}-400 dark:bg-opacity-10 text-{color}-500 dark:text-{color}-400",
|
|
26
|
+
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"
|
|
27
|
+
},
|
|
28
|
+
default: {
|
|
29
|
+
size: "sm",
|
|
30
|
+
variant: "solid",
|
|
31
|
+
color: "primary"
|
|
32
|
+
}
|
|
33
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: string;
|
|
3
|
+
font: string;
|
|
4
|
+
rounded: string;
|
|
5
|
+
truncate: string;
|
|
6
|
+
block: string;
|
|
7
|
+
inline: string;
|
|
8
|
+
size: {
|
|
9
|
+
'2xs': string;
|
|
10
|
+
xs: string;
|
|
11
|
+
sm: string;
|
|
12
|
+
md: string;
|
|
13
|
+
lg: string;
|
|
14
|
+
xl: string;
|
|
15
|
+
};
|
|
16
|
+
gap: {
|
|
17
|
+
'2xs': string;
|
|
18
|
+
xs: string;
|
|
19
|
+
sm: string;
|
|
20
|
+
md: string;
|
|
21
|
+
lg: string;
|
|
22
|
+
xl: string;
|
|
23
|
+
};
|
|
24
|
+
padding: {
|
|
25
|
+
'2xs': string;
|
|
26
|
+
xs: string;
|
|
27
|
+
sm: string;
|
|
28
|
+
md: string;
|
|
29
|
+
lg: string;
|
|
30
|
+
xl: string;
|
|
31
|
+
};
|
|
32
|
+
square: {
|
|
33
|
+
'2xs': string;
|
|
34
|
+
xs: string;
|
|
35
|
+
sm: string;
|
|
36
|
+
md: string;
|
|
37
|
+
lg: string;
|
|
38
|
+
xl: string;
|
|
39
|
+
};
|
|
40
|
+
color: {
|
|
41
|
+
white: {
|
|
42
|
+
solid: string;
|
|
43
|
+
ghost: string;
|
|
44
|
+
};
|
|
45
|
+
gray: {
|
|
46
|
+
solid: string;
|
|
47
|
+
ghost: string;
|
|
48
|
+
link: string;
|
|
49
|
+
};
|
|
50
|
+
black: {
|
|
51
|
+
solid: string;
|
|
52
|
+
link: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
variant: {
|
|
56
|
+
solid: string;
|
|
57
|
+
outline: string;
|
|
58
|
+
soft: string;
|
|
59
|
+
ghost: string;
|
|
60
|
+
link: string;
|
|
61
|
+
};
|
|
62
|
+
icon: {
|
|
63
|
+
base: string;
|
|
64
|
+
loading: string;
|
|
65
|
+
size: {
|
|
66
|
+
'2xs': string;
|
|
67
|
+
xs: string;
|
|
68
|
+
sm: string;
|
|
69
|
+
md: string;
|
|
70
|
+
lg: string;
|
|
71
|
+
xl: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
default: {
|
|
75
|
+
size: string;
|
|
76
|
+
variant: string;
|
|
77
|
+
color: string;
|
|
78
|
+
loadingIcon: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
export default _default;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
base: "focus:outline-none focus-visible:outline-0 disabled:cursor-not-allowed disabled:opacity-75 flex-shrink-0",
|
|
3
|
+
font: "font-medium",
|
|
4
|
+
rounded: "rounded-md",
|
|
5
|
+
truncate: "text-left break-all line-clamp-1",
|
|
6
|
+
block: "w-full flex justify-center items-center",
|
|
7
|
+
inline: "inline-flex items-center",
|
|
8
|
+
size: {
|
|
9
|
+
"2xs": "text-xs",
|
|
10
|
+
xs: "text-xs",
|
|
11
|
+
sm: "text-sm",
|
|
12
|
+
md: "text-sm",
|
|
13
|
+
lg: "text-sm",
|
|
14
|
+
xl: "text-base"
|
|
15
|
+
},
|
|
16
|
+
gap: {
|
|
17
|
+
"2xs": "gap-x-1",
|
|
18
|
+
xs: "gap-x-1.5",
|
|
19
|
+
sm: "gap-x-1.5",
|
|
20
|
+
md: "gap-x-2",
|
|
21
|
+
lg: "gap-x-2.5",
|
|
22
|
+
xl: "gap-x-2.5"
|
|
23
|
+
},
|
|
24
|
+
padding: {
|
|
25
|
+
"2xs": "px-2 py-1",
|
|
26
|
+
xs: "px-2.5 py-1.5",
|
|
27
|
+
sm: "px-2.5 py-1.5",
|
|
28
|
+
md: "px-3 py-2",
|
|
29
|
+
lg: "px-3.5 py-2.5",
|
|
30
|
+
xl: "px-3.5 py-2.5"
|
|
31
|
+
},
|
|
32
|
+
square: {
|
|
33
|
+
"2xs": "p-1",
|
|
34
|
+
xs: "p-1.5",
|
|
35
|
+
sm: "p-1.5",
|
|
36
|
+
md: "p-2",
|
|
37
|
+
lg: "p-2.5",
|
|
38
|
+
xl: "p-2.5"
|
|
39
|
+
},
|
|
40
|
+
color: {
|
|
41
|
+
white: {
|
|
42
|
+
solid: "shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-900 dark:text-white bg-white hover:bg-gray-50 disabled:bg-white dark:bg-gray-900 dark:hover:bg-gray-800/50 dark:disabled:bg-gray-900 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",
|
|
43
|
+
ghost: "text-gray-900 dark:text-white hover:bg-white dark:hover:bg-gray-900 focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"
|
|
44
|
+
},
|
|
45
|
+
gray: {
|
|
46
|
+
solid: "shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-700 dark:text-gray-200 bg-gray-50 hover:bg-gray-100 disabled:bg-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700/50 dark:disabled:bg-gray-800 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",
|
|
47
|
+
ghost: "text-gray-700 dark:text-gray-200 hover:text-gray-900 dark:hover:text-white hover:bg-gray-50 dark:hover:bg-gray-800 focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",
|
|
48
|
+
link: "text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"
|
|
49
|
+
},
|
|
50
|
+
black: {
|
|
51
|
+
solid: "shadow-sm text-white dark:text-gray-900 bg-gray-900 hover:bg-gray-800 disabled:bg-gray-900 dark:bg-white dark:hover:bg-gray-100 dark:disabled:bg-white focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",
|
|
52
|
+
link: "text-gray-900 dark:text-white underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
variant: {
|
|
56
|
+
solid: "shadow-sm text-white dark:text-gray-900 bg-{color}-500 hover:bg-{color}-600 disabled:bg-{color}-500 dark:bg-{color}-400 dark:hover:bg-{color}-500 dark:disabled:bg-{color}-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-{color}-500 dark:focus-visible:outline-{color}-400",
|
|
57
|
+
outline: "ring-1 ring-inset ring-current text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 disabled:bg-transparent dark:hover:bg-{color}-950 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",
|
|
58
|
+
soft: "text-{color}-500 dark:text-{color}-400 bg-{color}-50 hover:bg-{color}-100 disabled:bg-{color}-50 dark:bg-{color}-950 dark:hover:bg-{color}-900 dark:disabled:bg-{color}-950 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",
|
|
59
|
+
ghost: "text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 disabled:bg-transparent dark:hover:bg-{color}-950 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",
|
|
60
|
+
link: "text-{color}-500 hover:text-{color}-600 disabled:text-{color}-500 dark:text-{color}-400 dark:hover:text-{color}-500 dark:disabled:text-{color}-400 underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400"
|
|
61
|
+
},
|
|
62
|
+
icon: {
|
|
63
|
+
base: "flex-shrink-0",
|
|
64
|
+
loading: "animate-spin",
|
|
65
|
+
size: {
|
|
66
|
+
"2xs": "h-4 w-4",
|
|
67
|
+
xs: "h-4 w-4",
|
|
68
|
+
sm: "h-5 w-5",
|
|
69
|
+
md: "h-5 w-5",
|
|
70
|
+
lg: "h-5 w-5",
|
|
71
|
+
xl: "h-6 w-6"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
default: {
|
|
75
|
+
size: "sm",
|
|
76
|
+
variant: "solid",
|
|
77
|
+
color: "primary",
|
|
78
|
+
loadingIcon: "i-heroicons-arrow-path-20-solid"
|
|
79
|
+
}
|
|
80
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
wrapper: {
|
|
3
|
+
horizontal: string;
|
|
4
|
+
vertical: string;
|
|
5
|
+
};
|
|
6
|
+
rounded: string;
|
|
7
|
+
shadow: string;
|
|
8
|
+
orientation: {
|
|
9
|
+
'rounded-none': {
|
|
10
|
+
horizontal: {
|
|
11
|
+
start: string;
|
|
12
|
+
end: string;
|
|
13
|
+
};
|
|
14
|
+
vertical: {
|
|
15
|
+
start: string;
|
|
16
|
+
end: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
'rounded-sm': {
|
|
20
|
+
horizontal: {
|
|
21
|
+
start: string;
|
|
22
|
+
end: string;
|
|
23
|
+
};
|
|
24
|
+
vertical: {
|
|
25
|
+
start: string;
|
|
26
|
+
end: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
rounded: {
|
|
30
|
+
horizontal: {
|
|
31
|
+
start: string;
|
|
32
|
+
end: string;
|
|
33
|
+
};
|
|
34
|
+
vertical: {
|
|
35
|
+
start: string;
|
|
36
|
+
end: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
'rounded-md': {
|
|
40
|
+
horizontal: {
|
|
41
|
+
start: string;
|
|
42
|
+
end: string;
|
|
43
|
+
};
|
|
44
|
+
vertical: {
|
|
45
|
+
start: string;
|
|
46
|
+
end: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
'rounded-lg': {
|
|
50
|
+
horizontal: {
|
|
51
|
+
start: string;
|
|
52
|
+
end: string;
|
|
53
|
+
};
|
|
54
|
+
vertical: {
|
|
55
|
+
start: string;
|
|
56
|
+
end: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
'rounded-xl': {
|
|
60
|
+
horizontal: {
|
|
61
|
+
start: string;
|
|
62
|
+
end: string;
|
|
63
|
+
};
|
|
64
|
+
vertical: {
|
|
65
|
+
start: string;
|
|
66
|
+
end: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
'rounded-2xl': {
|
|
70
|
+
horizontal: {
|
|
71
|
+
start: string;
|
|
72
|
+
end: string;
|
|
73
|
+
};
|
|
74
|
+
vertical: {
|
|
75
|
+
start: string;
|
|
76
|
+
end: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
'rounded-3xl': {
|
|
80
|
+
horizontal: {
|
|
81
|
+
start: string;
|
|
82
|
+
end: string;
|
|
83
|
+
};
|
|
84
|
+
vertical: {
|
|
85
|
+
start: string;
|
|
86
|
+
end: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
'rounded-full': {
|
|
90
|
+
horizontal: {
|
|
91
|
+
start: string;
|
|
92
|
+
end: string;
|
|
93
|
+
};
|
|
94
|
+
vertical: {
|
|
95
|
+
start: string;
|
|
96
|
+
end: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
wrapper: {
|
|
3
|
+
horizontal: "inline-flex -space-x-px",
|
|
4
|
+
vertical: "inline-flex flex-col -space-y-px"
|
|
5
|
+
},
|
|
6
|
+
rounded: "rounded-md",
|
|
7
|
+
shadow: "shadow-sm",
|
|
8
|
+
orientation: {
|
|
9
|
+
"rounded-none": { horizontal: { start: "rounded-s-none", end: "rounded-e-none" }, vertical: { start: "rounded-t-none", end: "rounded-b-none" } },
|
|
10
|
+
"rounded-sm": { horizontal: { start: "rounded-s-sm", end: "rounded-e-sm" }, vertical: { start: "rounded-t-sm", end: "rounded-b-sm" } },
|
|
11
|
+
rounded: { horizontal: { start: "rounded-s", end: "rounded-e" }, vertical: { start: "rounded-t", end: "rounded-b" } },
|
|
12
|
+
"rounded-md": { horizontal: { start: "rounded-s-md", end: "rounded-e-md" }, vertical: { start: "rounded-t-md", end: "rounded-b-md" } },
|
|
13
|
+
"rounded-lg": { horizontal: { start: "rounded-s-lg", end: "rounded-e-lg" }, vertical: { start: "rounded-t-lg", end: "rounded-b-lg" } },
|
|
14
|
+
"rounded-xl": { horizontal: { start: "rounded-s-xl", end: "rounded-e-xl" }, vertical: { start: "rounded-t-xl", end: "rounded-b-xl" } },
|
|
15
|
+
"rounded-2xl": { horizontal: { start: "rounded-s-2xl", end: "rounded-e-2xl" }, vertical: { start: "rounded-t-2xl", end: "rounded-b-2xl" } },
|
|
16
|
+
"rounded-3xl": { horizontal: { start: "rounded-s-3xl", end: "rounded-e-3xl" }, vertical: { start: "rounded-t-3xl", end: "rounded-b-3xl" } },
|
|
17
|
+
"rounded-full": { horizontal: { start: "rounded-s-full", end: "rounded-e-full" }, vertical: { start: "rounded-t-full", end: "rounded-b-full" } }
|
|
18
|
+
}
|
|
19
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
wrapper: string;
|
|
3
|
+
base: string;
|
|
4
|
+
background: string;
|
|
5
|
+
position: {
|
|
6
|
+
'top-right': string;
|
|
7
|
+
'bottom-right': string;
|
|
8
|
+
'top-left': string;
|
|
9
|
+
'bottom-left': string;
|
|
10
|
+
};
|
|
11
|
+
translate: {
|
|
12
|
+
'top-right': string;
|
|
13
|
+
'bottom-right': string;
|
|
14
|
+
'top-left': string;
|
|
15
|
+
'bottom-left': string;
|
|
16
|
+
};
|
|
17
|
+
size: {
|
|
18
|
+
'3xs': string;
|
|
19
|
+
'2xs': string;
|
|
20
|
+
xs: string;
|
|
21
|
+
sm: string;
|
|
22
|
+
md: string;
|
|
23
|
+
lg: string;
|
|
24
|
+
xl: string;
|
|
25
|
+
'2xl': string;
|
|
26
|
+
'3xl': string;
|
|
27
|
+
};
|
|
28
|
+
default: {
|
|
29
|
+
size: string;
|
|
30
|
+
color: string;
|
|
31
|
+
position: string;
|
|
32
|
+
inset: boolean;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
wrapper: "relative inline-flex items-center justify-center flex-shrink-0",
|
|
3
|
+
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 whitespace-nowrap",
|
|
4
|
+
background: "bg-{color}-500 dark:bg-{color}-400",
|
|
5
|
+
position: {
|
|
6
|
+
"top-right": "top-0 right-0",
|
|
7
|
+
"bottom-right": "bottom-0 right-0",
|
|
8
|
+
"top-left": "top-0 left-0",
|
|
9
|
+
"bottom-left": "bottom-0 left-0"
|
|
10
|
+
},
|
|
11
|
+
translate: {
|
|
12
|
+
"top-right": "-translate-y-1/2 translate-x-1/2 transform",
|
|
13
|
+
"bottom-right": "translate-y-1/2 translate-x-1/2 transform",
|
|
14
|
+
"top-left": "-translate-y-1/2 -translate-x-1/2 transform",
|
|
15
|
+
"bottom-left": "translate-y-1/2 -translate-x-1/2 transform"
|
|
16
|
+
},
|
|
17
|
+
size: {
|
|
18
|
+
"3xs": "h-[4px] min-w-[4px] text-[4px] p-px",
|
|
19
|
+
"2xs": "h-[5px] min-w-[5px] text-[5px] p-px",
|
|
20
|
+
xs: "h-1.5 min-w-[0.375rem] text-[6px] p-px",
|
|
21
|
+
sm: "h-2 min-w-[0.5rem] text-[7px] p-0.5",
|
|
22
|
+
md: "h-2.5 min-w-[0.625rem] text-[8px] p-0.5",
|
|
23
|
+
lg: "h-3 min-w-[0.75rem] text-[10px] p-0.5",
|
|
24
|
+
xl: "h-3.5 min-w-[0.875rem] text-[11px] p-1",
|
|
25
|
+
"2xl": "h-4 min-w-[1rem] text-[12px] p-1",
|
|
26
|
+
"3xl": "h-5 min-w-[1.25rem] text-[14px] p-1"
|
|
27
|
+
},
|
|
28
|
+
default: {
|
|
29
|
+
size: "sm",
|
|
30
|
+
color: "primary",
|
|
31
|
+
position: "top-right",
|
|
32
|
+
inset: false
|
|
33
|
+
}
|
|
34
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
wrapper: string;
|
|
3
|
+
container: string;
|
|
4
|
+
trigger: string;
|
|
5
|
+
width: string;
|
|
6
|
+
height: string;
|
|
7
|
+
background: string;
|
|
8
|
+
shadow: string;
|
|
9
|
+
rounded: string;
|
|
10
|
+
ring: string;
|
|
11
|
+
base: string;
|
|
12
|
+
divide: string;
|
|
13
|
+
padding: string;
|
|
14
|
+
item: {
|
|
15
|
+
base: string;
|
|
16
|
+
rounded: string;
|
|
17
|
+
padding: string;
|
|
18
|
+
size: string;
|
|
19
|
+
active: string;
|
|
20
|
+
inactive: string;
|
|
21
|
+
disabled: string;
|
|
22
|
+
icon: {
|
|
23
|
+
base: string;
|
|
24
|
+
active: string;
|
|
25
|
+
inactive: string;
|
|
26
|
+
};
|
|
27
|
+
avatar: {
|
|
28
|
+
base: string;
|
|
29
|
+
size: "3xs";
|
|
30
|
+
};
|
|
31
|
+
label: string;
|
|
32
|
+
shortcuts: string;
|
|
33
|
+
};
|
|
34
|
+
transition: {
|
|
35
|
+
enterActiveClass: string;
|
|
36
|
+
enterFromClass: string;
|
|
37
|
+
enterToClass: string;
|
|
38
|
+
leaveActiveClass: string;
|
|
39
|
+
leaveFromClass: string;
|
|
40
|
+
leaveToClass: string;
|
|
41
|
+
};
|
|
42
|
+
popper: {
|
|
43
|
+
placement: string;
|
|
44
|
+
strategy: string;
|
|
45
|
+
};
|
|
46
|
+
arrow: {
|
|
47
|
+
ring: string;
|
|
48
|
+
background: string;
|
|
49
|
+
base: string;
|
|
50
|
+
rounded: string;
|
|
51
|
+
shadow: string;
|
|
52
|
+
placement: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export default _default;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { arrow } from "../popper.mjs";
|
|
2
|
+
export default {
|
|
3
|
+
wrapper: "relative inline-flex text-left rtl:text-right",
|
|
4
|
+
container: "z-20 group",
|
|
5
|
+
trigger: "inline-flex w-full",
|
|
6
|
+
width: "w-48",
|
|
7
|
+
height: "",
|
|
8
|
+
background: "bg-white dark:bg-gray-800",
|
|
9
|
+
shadow: "shadow-lg",
|
|
10
|
+
rounded: "rounded-md",
|
|
11
|
+
ring: "ring-1 ring-gray-200 dark:ring-gray-700",
|
|
12
|
+
base: "relative focus:outline-none overflow-y-auto scroll-py-1",
|
|
13
|
+
divide: "divide-y divide-gray-200 dark:divide-gray-700",
|
|
14
|
+
padding: "p-1",
|
|
15
|
+
item: {
|
|
16
|
+
base: "group flex items-center gap-2 w-full",
|
|
17
|
+
rounded: "rounded-md",
|
|
18
|
+
padding: "px-2 py-1.5",
|
|
19
|
+
size: "text-sm",
|
|
20
|
+
active: "bg-gray-100 dark:bg-gray-900 text-gray-900 dark:text-white",
|
|
21
|
+
inactive: "text-gray-700 dark:text-gray-200",
|
|
22
|
+
disabled: "cursor-not-allowed opacity-50",
|
|
23
|
+
icon: {
|
|
24
|
+
base: "flex-shrink-0 h-4 w-4",
|
|
25
|
+
active: "text-gray-500 dark:text-gray-400",
|
|
26
|
+
inactive: "text-gray-400 dark:text-gray-500"
|
|
27
|
+
},
|
|
28
|
+
avatar: {
|
|
29
|
+
base: "flex-shrink-0",
|
|
30
|
+
size: "3xs"
|
|
31
|
+
},
|
|
32
|
+
label: "truncate",
|
|
33
|
+
shortcuts: "hidden md:inline-flex flex-shrink-0 gap-0.5 ms-auto"
|
|
34
|
+
},
|
|
35
|
+
// Syntax for `<Transition>` component https://vuejs.org/guide/built-ins/transition.html#css-based-transitions
|
|
36
|
+
transition: {
|
|
37
|
+
enterActiveClass: "transition duration-100 ease-out",
|
|
38
|
+
enterFromClass: "transform scale-95 opacity-0",
|
|
39
|
+
enterToClass: "transform scale-100 opacity-100",
|
|
40
|
+
leaveActiveClass: "transition duration-75 ease-in",
|
|
41
|
+
leaveFromClass: "transform scale-100 opacity-100",
|
|
42
|
+
leaveToClass: "transform scale-95 opacity-0"
|
|
43
|
+
},
|
|
44
|
+
popper: {
|
|
45
|
+
placement: "bottom-end",
|
|
46
|
+
strategy: "fixed"
|
|
47
|
+
},
|
|
48
|
+
arrow: {
|
|
49
|
+
...arrow,
|
|
50
|
+
ring: "before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",
|
|
51
|
+
background: "before:bg-white dark:before:bg-gray-700"
|
|
52
|
+
}
|
|
53
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: string;
|
|
3
|
+
padding: string;
|
|
4
|
+
size: {
|
|
5
|
+
xs: string;
|
|
6
|
+
sm: string;
|
|
7
|
+
md: string;
|
|
8
|
+
};
|
|
9
|
+
rounded: string;
|
|
10
|
+
font: string;
|
|
11
|
+
background: string;
|
|
12
|
+
ring: string;
|
|
13
|
+
default: {
|
|
14
|
+
size: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
base: "inline-flex items-center justify-center text-gray-900 dark:text-white",
|
|
3
|
+
padding: "px-1",
|
|
4
|
+
size: {
|
|
5
|
+
xs: "h-4 min-w-[16px] text-[10px]",
|
|
6
|
+
sm: "h-5 min-w-[20px] text-[11px]",
|
|
7
|
+
md: "h-6 min-w-[24px] text-[12px]"
|
|
8
|
+
},
|
|
9
|
+
rounded: "rounded",
|
|
10
|
+
font: "font-medium font-sans",
|
|
11
|
+
background: "bg-gray-100 dark:bg-gray-800",
|
|
12
|
+
ring: "ring-1 ring-gray-300 dark:ring-gray-700 ring-inset",
|
|
13
|
+
default: {
|
|
14
|
+
size: "sm"
|
|
15
|
+
}
|
|
16
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
wrapper: string;
|
|
3
|
+
indicator: {
|
|
4
|
+
container: string;
|
|
5
|
+
text: string;
|
|
6
|
+
size: {
|
|
7
|
+
'2xs': string;
|
|
8
|
+
xs: string;
|
|
9
|
+
sm: string;
|
|
10
|
+
md: string;
|
|
11
|
+
lg: string;
|
|
12
|
+
xl: string;
|
|
13
|
+
'2xl': string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
meter: {
|
|
17
|
+
base: string;
|
|
18
|
+
background: string;
|
|
19
|
+
color: string;
|
|
20
|
+
ring: string;
|
|
21
|
+
rounded: string;
|
|
22
|
+
shadow: string;
|
|
23
|
+
size: {
|
|
24
|
+
'2xs': string;
|
|
25
|
+
xs: string;
|
|
26
|
+
sm: string;
|
|
27
|
+
md: string;
|
|
28
|
+
lg: string;
|
|
29
|
+
xl: string;
|
|
30
|
+
'2xl': string;
|
|
31
|
+
};
|
|
32
|
+
appearance: {
|
|
33
|
+
inner: string;
|
|
34
|
+
meter: string;
|
|
35
|
+
bar: string;
|
|
36
|
+
value: string;
|
|
37
|
+
};
|
|
38
|
+
bar: {
|
|
39
|
+
transition: string;
|
|
40
|
+
ring: string;
|
|
41
|
+
rounded: string;
|
|
42
|
+
size: {
|
|
43
|
+
'2xs': string;
|
|
44
|
+
xs: string;
|
|
45
|
+
sm: string;
|
|
46
|
+
md: string;
|
|
47
|
+
lg: string;
|
|
48
|
+
xl: string;
|
|
49
|
+
'2xl': string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
label: {
|
|
54
|
+
base: string;
|
|
55
|
+
text: string;
|
|
56
|
+
color: string;
|
|
57
|
+
size: {
|
|
58
|
+
'2xs': string;
|
|
59
|
+
xs: string;
|
|
60
|
+
sm: string;
|
|
61
|
+
md: string;
|
|
62
|
+
lg: string;
|
|
63
|
+
xl: string;
|
|
64
|
+
'2xl': string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
color: {
|
|
68
|
+
white: string;
|
|
69
|
+
black: string;
|
|
70
|
+
gray: string;
|
|
71
|
+
};
|
|
72
|
+
default: {
|
|
73
|
+
size: string;
|
|
74
|
+
color: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
export default _default;
|