@nuxt/ui 3.0.0-alpha.9 → 3.0.0-beta.2
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/.nuxt/ui/accordion.ts +2 -2
- package/.nuxt/ui/alert.ts +122 -95
- package/.nuxt/ui/avatar-group.ts +14 -2
- package/.nuxt/ui/avatar.ts +16 -4
- package/.nuxt/ui/badge.ts +139 -93
- package/.nuxt/ui/breadcrumb.ts +5 -5
- package/.nuxt/ui/button-group.ts +13 -0
- package/.nuxt/ui/button.ts +167 -136
- package/.nuxt/ui/calendar.ts +103 -0
- package/.nuxt/ui/card.ts +27 -1
- package/.nuxt/ui/carousel.ts +7 -5
- package/.nuxt/ui/checkbox.ts +45 -27
- package/.nuxt/ui/chip.ts +44 -15
- package/.nuxt/ui/color-picker.ts +47 -0
- package/.nuxt/ui/command-palette.ts +28 -18
- package/.nuxt/ui/container.ts +1 -1
- package/.nuxt/ui/context-menu.ts +64 -46
- package/.nuxt/ui/drawer.ts +83 -15
- package/.nuxt/ui/dropdown-menu.ts +65 -47
- package/.nuxt/ui/form-field.ts +15 -7
- package/.nuxt/ui/index.ts +5 -1
- package/.nuxt/ui/input-menu.ts +150 -116
- package/.nuxt/ui/input-number.ts +102 -71
- package/.nuxt/ui/input.ts +111 -76
- package/.nuxt/ui/kbd.ts +18 -6
- package/.nuxt/ui/link.ts +3 -3
- package/.nuxt/ui/modal.ts +8 -7
- package/.nuxt/ui/navigation-menu.ts +244 -131
- package/.nuxt/ui/pin-input.ts +77 -51
- package/.nuxt/ui/popover.ts +2 -2
- package/.nuxt/ui/progress.ts +111 -72
- package/.nuxt/ui/radio-group.ts +45 -22
- package/.nuxt/ui/select-menu.ts +122 -86
- package/.nuxt/ui/select.ts +120 -84
- package/.nuxt/ui/separator.ts +60 -31
- package/.nuxt/ui/skeleton.ts +1 -1
- package/.nuxt/ui/slideover.ts +17 -9
- package/.nuxt/ui/slider.ts +61 -38
- package/.nuxt/ui/stepper.ts +202 -0
- package/.nuxt/ui/switch.ts +40 -22
- package/.nuxt/ui/table.ts +48 -31
- package/.nuxt/ui/tabs.ts +100 -72
- package/.nuxt/ui/textarea.ts +111 -76
- package/.nuxt/ui/toast.ts +53 -33
- package/.nuxt/ui/toaster.ts +31 -15
- package/.nuxt/ui/tooltip.ts +2 -2
- package/.nuxt/ui/tree.ts +154 -0
- package/.nuxt/ui.css +92 -0
- package/README.md +19 -8
- package/cli/commands/make/component.mjs +12 -0
- package/cli/package.json +2 -2
- package/cli/templates.mjs +27 -22
- package/dist/module.cjs +9 -171
- package/dist/module.d.cts +5 -15
- package/dist/module.d.mts +5 -15
- package/dist/module.d.ts +5 -15
- package/dist/module.json +2 -2
- package/dist/module.mjs +12 -168
- package/dist/runtime/components/Accordion.vue +8 -39
- package/dist/runtime/components/Alert.vue +22 -21
- package/dist/runtime/components/App.vue +9 -15
- package/dist/runtime/components/Avatar.vue +33 -21
- package/dist/runtime/components/AvatarGroup.vue +5 -7
- package/dist/runtime/components/Badge.vue +10 -8
- package/dist/runtime/components/Breadcrumb.vue +5 -31
- package/dist/runtime/components/Button.vue +5 -8
- package/dist/runtime/components/ButtonGroup.vue +5 -7
- package/dist/runtime/components/Calendar.vue +194 -0
- package/dist/runtime/components/Card.vue +10 -9
- package/dist/runtime/components/Carousel.vue +15 -10
- package/dist/runtime/components/Checkbox.vue +32 -38
- package/dist/runtime/components/Chip.vue +6 -8
- package/dist/runtime/components/Collapsible.vue +10 -11
- package/dist/runtime/components/ColorPicker.vue +297 -0
- package/dist/runtime/components/CommandPalette.vue +111 -97
- package/dist/runtime/components/Container.vue +4 -7
- package/dist/runtime/components/ContextMenu.vue +16 -69
- package/dist/runtime/components/ContextMenuContent.vue +12 -10
- package/dist/runtime/components/Drawer.vue +23 -12
- package/dist/runtime/components/DropdownMenu.vue +18 -59
- package/dist/runtime/components/DropdownMenuContent.vue +12 -10
- package/dist/runtime/components/Form.vue +65 -34
- package/dist/runtime/components/FormField.vue +22 -13
- package/dist/runtime/components/Icon.vue +1 -1
- package/dist/runtime/components/Input.vue +15 -7
- package/dist/runtime/components/InputMenu.vue +95 -104
- package/dist/runtime/components/InputNumber.vue +14 -9
- package/dist/runtime/components/Kbd.vue +5 -6
- package/dist/runtime/components/Link.vue +5 -8
- package/dist/runtime/components/LinkBase.vue +1 -1
- package/dist/runtime/components/Modal.vue +51 -38
- package/dist/runtime/components/NavigationMenu.vue +129 -114
- package/dist/runtime/components/OverlayProvider.vue +29 -0
- package/dist/runtime/components/Pagination.vue +6 -9
- package/dist/runtime/components/PinInput.vue +10 -11
- package/dist/runtime/components/Popover.vue +16 -18
- package/dist/runtime/components/Progress.vue +28 -12
- package/dist/runtime/components/RadioGroup.vue +9 -12
- package/dist/runtime/components/Select.vue +60 -34
- package/dist/runtime/components/SelectMenu.vue +160 -165
- package/dist/runtime/components/Separator.vue +6 -5
- package/dist/runtime/components/Skeleton.vue +4 -7
- package/dist/runtime/components/Slideover.vue +51 -37
- package/dist/runtime/components/Slider.vue +8 -7
- package/dist/runtime/components/Stepper.vue +170 -0
- package/dist/runtime/components/Switch.vue +19 -23
- package/dist/runtime/components/Table.vue +146 -31
- package/dist/runtime/components/Tabs.vue +12 -31
- package/dist/runtime/components/Textarea.vue +17 -8
- package/dist/runtime/components/Toast.vue +36 -25
- package/dist/runtime/components/Toaster.vue +10 -11
- package/dist/runtime/components/Tooltip.vue +9 -12
- package/dist/runtime/components/Tree.vue +196 -0
- package/dist/runtime/composables/defineShortcuts.d.ts +1 -1
- package/dist/runtime/composables/defineShortcuts.js +2 -2
- package/dist/runtime/composables/useFormField.d.ts +7 -3
- package/dist/runtime/composables/useFormField.js +18 -8
- package/dist/runtime/composables/useLocale.js +1 -1
- package/dist/runtime/composables/useOverlay.d.ts +30 -0
- package/dist/runtime/composables/useOverlay.js +71 -0
- package/dist/runtime/composables/useToast.d.ts +4 -3
- package/dist/runtime/composables/useToast.js +20 -6
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/keyframes.css +1 -1
- package/dist/runtime/locale/ar.js +9 -1
- package/dist/runtime/locale/az.js +54 -0
- package/dist/runtime/locale/bn.js +54 -0
- package/dist/runtime/locale/cs.js +9 -1
- package/dist/runtime/locale/da.d.ts +2 -0
- package/dist/runtime/locale/da.js +54 -0
- package/dist/runtime/locale/de.js +11 -3
- package/dist/runtime/locale/el.d.ts +2 -0
- package/dist/runtime/locale/el.js +54 -0
- package/dist/runtime/locale/en.js +9 -1
- package/dist/runtime/locale/es.js +9 -1
- package/dist/runtime/locale/et.d.ts +2 -0
- package/dist/runtime/locale/et.js +54 -0
- package/dist/runtime/locale/fa_ir.js +9 -1
- package/dist/runtime/locale/fi.d.ts +2 -0
- package/dist/runtime/locale/fi.js +54 -0
- package/dist/runtime/locale/fr.js +9 -1
- package/dist/runtime/locale/he.d.ts +2 -0
- package/dist/runtime/locale/he.js +53 -0
- package/dist/runtime/locale/hi.d.ts +2 -0
- package/dist/runtime/locale/hi.js +54 -0
- package/dist/runtime/locale/hu.d.ts +2 -0
- package/dist/runtime/locale/hu.js +54 -0
- package/dist/runtime/locale/id.d.ts +2 -0
- package/dist/runtime/locale/id.js +54 -0
- package/dist/runtime/locale/index.d.ts +25 -3
- package/dist/runtime/locale/index.js +25 -3
- package/dist/runtime/locale/it.js +9 -1
- package/dist/runtime/locale/ja.d.ts +2 -0
- package/dist/runtime/locale/ja.js +54 -0
- package/dist/runtime/locale/km.d.ts +2 -0
- package/dist/runtime/locale/km.js +54 -0
- package/dist/runtime/locale/ko.d.ts +2 -0
- package/dist/runtime/locale/ko.js +54 -0
- package/dist/runtime/locale/nb_no.d.ts +2 -0
- package/dist/runtime/locale/nb_no.js +54 -0
- package/dist/runtime/locale/nl.d.ts +2 -0
- package/dist/runtime/locale/nl.js +54 -0
- package/dist/runtime/locale/pl.js +9 -1
- package/dist/runtime/locale/pt.d.ts +2 -0
- package/dist/runtime/locale/pt.js +54 -0
- package/dist/runtime/locale/pt_br.d.ts +2 -0
- package/dist/runtime/locale/pt_br.js +54 -0
- package/dist/runtime/locale/ru.js +9 -1
- package/dist/runtime/locale/sk.d.ts +2 -0
- package/dist/runtime/locale/sk.js +54 -0
- package/dist/runtime/locale/sv.d.ts +2 -0
- package/dist/runtime/locale/sv.js +54 -0
- package/dist/runtime/locale/th.d.ts +2 -0
- package/dist/runtime/locale/th.js +54 -0
- package/dist/runtime/locale/tr.d.ts +2 -0
- package/dist/runtime/locale/tr.js +54 -0
- package/dist/runtime/locale/uk.d.ts +2 -0
- package/dist/runtime/locale/uk.js +54 -0
- package/dist/runtime/locale/vi.d.ts +2 -0
- package/dist/runtime/locale/vi.js +54 -0
- package/dist/runtime/locale/zh_cn.d.ts +2 -0
- package/dist/runtime/locale/{zh_hans.js → zh_cn.js} +10 -2
- package/dist/runtime/locale/zh_tw.d.ts +2 -0
- package/dist/runtime/locale/{zh_hant.js → zh_tw.js} +16 -8
- package/dist/runtime/plugins/colors.js +8 -5
- package/dist/runtime/types/form.d.ts +24 -15
- package/dist/runtime/types/form.js +2 -2
- package/dist/runtime/types/index.d.ts +5 -0
- package/dist/runtime/types/index.js +5 -0
- package/dist/runtime/types/locale.d.ts +8 -0
- package/dist/runtime/types/utils.d.ts +7 -3
- package/dist/runtime/utils/form.d.ts +4 -4
- package/dist/runtime/utils/form.js +6 -8
- package/dist/runtime/utils/index.d.ts +1 -1
- package/dist/runtime/utils/index.js +15 -2
- package/dist/runtime/utils/tv.d.ts +1 -0
- package/dist/runtime/utils/tv.js +4 -0
- package/dist/runtime/vue/components/Icon.vue +2 -2
- package/dist/runtime/vue/components/Link.vue +87 -23
- package/dist/runtime/vue/composables/useAppConfig.d.ts +1 -0
- package/dist/runtime/vue/composables/useAppConfig.js +2 -0
- package/dist/runtime/vue/plugins/head.d.ts +1 -1
- package/dist/runtime/vue/plugins/head.js +3 -3
- package/dist/runtime/vue/stubs.d.ts +19 -0
- package/dist/runtime/vue/stubs.js +37 -0
- package/dist/shared/{ui.d52SSCwA.mjs → ui.DSPu6Y8j.mjs} +905 -401
- package/dist/shared/{ui.BPnAe4QS.cjs → ui.DfK2RX6G.cjs} +908 -401
- package/dist/unplugin.cjs +62 -26
- package/dist/unplugin.d.cts +13 -1
- package/dist/unplugin.d.mts +13 -1
- package/dist/unplugin.d.ts +13 -1
- package/dist/unplugin.mjs +61 -25
- package/dist/vite.cjs +3 -2
- package/dist/vite.d.cts +2 -0
- package/dist/vite.d.mts +2 -0
- package/dist/vite.d.ts +2 -0
- package/dist/vite.mjs +3 -2
- package/package.json +103 -67
- package/dist/chunks/component-meta.cjs +0 -77249
- package/dist/chunks/component-meta.mjs +0 -77247
- package/dist/client/devtools/200.html +0 -1
- package/dist/client/devtools/404.html +0 -1
- package/dist/client/devtools/_fonts/rP2Wp2ywxg089UriCZaSExd86J3t9jz86MvyyKK58UfivUw4aw-SK92LTmKP0.woff2 +0 -0
- package/dist/client/devtools/_fonts/rP2Wp2ywxg089UriCZaSExd86J3t9jz86MvyyKy58UfivUw-9uYm8d48E4.woff2 +0 -0
- package/dist/client/devtools/_fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K6z9mXg-VNw7NHvqnp.woff2 +0 -0
- package/dist/client/devtools/_fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6z9mXgjU0-EkYdMs3MAX.woff2 +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-7DW3w-R7n06NbhGy.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-JDG3w-leGNfkTmsj.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-JDW3w-ciElMF03ku.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8JCm3w-sB722Uoa0f.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8JDW3w-PBDI1JDjwV.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8gCm3w-0q1hqVn09O.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat9XCm3w-ByvzuLy2fa.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat9uCm3w-5TKCIs6EEw.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat_XDW3w-r2swRDGfn2.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAC5thTQ-ldB60l5U8r.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAIpthTQ-wbFKGFDrgo.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAIpxhTQ-LLUBv5jskj.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwARZthTQ-F71RdTRbNg.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwA_JxhTQ-6nh65gZkc0.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAfJthTQ-aMoWEJLmTt.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAkJxhTQ-WMBvmLOgKm.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAop1hTQ-utGC2hnWq2.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAopxhTQ-YpyTieVa5B.woff +0 -0
- package/dist/client/devtools/_nuxt/BDC8ywlR.js +0 -1
- package/dist/client/devtools/_nuxt/BT004Uxp.js +0 -53
- package/dist/client/devtools/_nuxt/C1H2Soz3.js +0 -1
- package/dist/client/devtools/_nuxt/builds/latest.json +0 -1
- package/dist/client/devtools/_nuxt/builds/meta/f98c13ea-d751-4b37-8ce3-94e99708745f.json +0 -1
- package/dist/client/devtools/_nuxt/entry.Bx6WJjrx.css +0 -1
- package/dist/client/devtools/_nuxt/error-404.Cq4qshcf.css +0 -1
- package/dist/client/devtools/_nuxt/error-500.ax1aM34m.css +0 -1
- package/dist/client/devtools/favicon.svg +0 -1
- package/dist/client/devtools/index.html +0 -1
- package/dist/devtools/runtime/DevtoolsRenderer.vue +0 -53
- package/dist/devtools/runtime/examples/AvatarGroupExample.vue +0 -7
- package/dist/devtools/runtime/examples/ButtonGroupExample.vue +0 -8
- package/dist/devtools/runtime/examples/CardExample.vue +0 -13
- package/dist/devtools/runtime/examples/CarouselExample.vue +0 -13
- package/dist/devtools/runtime/examples/ChipExample.vue +0 -5
- package/dist/devtools/runtime/examples/CollapsibleExample.vue +0 -8
- package/dist/devtools/runtime/examples/CommandPaletteExample.vue +0 -29
- package/dist/devtools/runtime/examples/ContainerExample.vue +0 -5
- package/dist/devtools/runtime/examples/ContextMenuExample.vue +0 -5
- package/dist/devtools/runtime/examples/DrawerExample.vue +0 -8
- package/dist/devtools/runtime/examples/DropdownMenuExample.vue +0 -5
- package/dist/devtools/runtime/examples/FormExample.vue +0 -30
- package/dist/devtools/runtime/examples/FormFieldExample.vue +0 -5
- package/dist/devtools/runtime/examples/LinkExample.vue +0 -5
- package/dist/devtools/runtime/examples/ModalExample.vue +0 -8
- package/dist/devtools/runtime/examples/PopoverExample.vue +0 -8
- package/dist/devtools/runtime/examples/SkeletonExample.vue +0 -3
- package/dist/devtools/runtime/examples/SlideoverExample.vue +0 -8
- package/dist/devtools/runtime/examples/ToasterExample.vue +0 -11
- package/dist/devtools/runtime/examples/TooltipExample.vue +0 -5
- package/dist/runtime/components/ModalProvider.vue +0 -12
- package/dist/runtime/components/SlideoverProvider.vue +0 -12
- package/dist/runtime/composables/extendDevtoolsMeta.d.ts +0 -7
- package/dist/runtime/composables/extendDevtoolsMeta.js +0 -2
- package/dist/runtime/composables/useModal.d.ts +0 -17
- package/dist/runtime/composables/useModal.js +0 -46
- package/dist/runtime/composables/useSlideover.d.ts +0 -17
- package/dist/runtime/composables/useSlideover.js +0 -46
- package/dist/runtime/plugins/modal.d.ts +0 -2
- package/dist/runtime/plugins/modal.js +0 -10
- package/dist/runtime/plugins/slideover.d.ts +0 -2
- package/dist/runtime/plugins/slideover.js +0 -10
- /package/dist/runtime/locale/{zh_hans.d.ts → az.d.ts} +0 -0
- /package/dist/runtime/locale/{zh_hant.d.ts → bn.d.ts} +0 -0
package/.nuxt/ui/slider.ts
CHANGED
|
@@ -1,39 +1,62 @@
|
|
|
1
|
+
const color = [
|
|
2
|
+
"primary",
|
|
3
|
+
"secondary",
|
|
4
|
+
"success",
|
|
5
|
+
"info",
|
|
6
|
+
"warning",
|
|
7
|
+
"error",
|
|
8
|
+
"neutral"
|
|
9
|
+
] as const
|
|
10
|
+
|
|
11
|
+
const size = [
|
|
12
|
+
"xs",
|
|
13
|
+
"sm",
|
|
14
|
+
"md",
|
|
15
|
+
"lg",
|
|
16
|
+
"xl"
|
|
17
|
+
] as const
|
|
18
|
+
|
|
19
|
+
const orientation = [
|
|
20
|
+
"horizontal",
|
|
21
|
+
"vertical"
|
|
22
|
+
] as const
|
|
23
|
+
|
|
1
24
|
export default {
|
|
2
25
|
"slots": {
|
|
3
26
|
"root": "relative flex items-center select-none touch-none",
|
|
4
|
-
"track": "relative bg-
|
|
27
|
+
"track": "relative bg-(--ui-bg-accented) overflow-hidden rounded-full grow",
|
|
5
28
|
"range": "absolute rounded-full",
|
|
6
|
-
"thumb": "rounded-full bg-
|
|
29
|
+
"thumb": "rounded-full bg-(--ui-bg) ring-2 focus-visible:outline-2 focus-visible:outline-offset-2"
|
|
7
30
|
},
|
|
8
31
|
"variants": {
|
|
9
32
|
"color": {
|
|
10
33
|
"primary": {
|
|
11
|
-
"range": "bg-
|
|
12
|
-
"thumb": "ring-
|
|
34
|
+
"range": "bg-(--ui-primary)",
|
|
35
|
+
"thumb": "ring-(--ui-primary) focus-visible:outline-(--ui-primary)/50"
|
|
13
36
|
},
|
|
14
37
|
"secondary": {
|
|
15
|
-
"range": "bg-
|
|
16
|
-
"thumb": "ring-
|
|
38
|
+
"range": "bg-(--ui-secondary)",
|
|
39
|
+
"thumb": "ring-(--ui-secondary) focus-visible:outline-(--ui-secondary)/50"
|
|
17
40
|
},
|
|
18
41
|
"success": {
|
|
19
|
-
"range": "bg-
|
|
20
|
-
"thumb": "ring-
|
|
42
|
+
"range": "bg-(--ui-success)",
|
|
43
|
+
"thumb": "ring-(--ui-success) focus-visible:outline-(--ui-success)/50"
|
|
21
44
|
},
|
|
22
45
|
"info": {
|
|
23
|
-
"range": "bg-
|
|
24
|
-
"thumb": "ring-
|
|
46
|
+
"range": "bg-(--ui-info)",
|
|
47
|
+
"thumb": "ring-(--ui-info) focus-visible:outline-(--ui-info)/50"
|
|
25
48
|
},
|
|
26
49
|
"warning": {
|
|
27
|
-
"range": "bg-
|
|
28
|
-
"thumb": "ring-
|
|
50
|
+
"range": "bg-(--ui-warning)",
|
|
51
|
+
"thumb": "ring-(--ui-warning) focus-visible:outline-(--ui-warning)/50"
|
|
29
52
|
},
|
|
30
53
|
"error": {
|
|
31
|
-
"range": "bg-
|
|
32
|
-
"thumb": "ring-
|
|
54
|
+
"range": "bg-(--ui-error)",
|
|
55
|
+
"thumb": "ring-(--ui-error) focus-visible:outline-(--ui-error)/50"
|
|
33
56
|
},
|
|
34
57
|
"neutral": {
|
|
35
|
-
"range": "bg-
|
|
36
|
-
"thumb": "ring-
|
|
58
|
+
"range": "bg-(--ui-bg-inverted)",
|
|
59
|
+
"thumb": "ring-(--ui-border-inverted) focus-visible:outline-(--ui-border-inverted)/50"
|
|
37
60
|
}
|
|
38
61
|
},
|
|
39
62
|
"size": {
|
|
@@ -71,78 +94,78 @@ export default {
|
|
|
71
94
|
},
|
|
72
95
|
"compoundVariants": [
|
|
73
96
|
{
|
|
74
|
-
"orientation": "horizontal" as
|
|
75
|
-
"size": "xs" as
|
|
97
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
98
|
+
"size": "xs" as typeof size[number],
|
|
76
99
|
"class": {
|
|
77
100
|
"track": "h-[6px]"
|
|
78
101
|
}
|
|
79
102
|
},
|
|
80
103
|
{
|
|
81
|
-
"orientation": "horizontal" as
|
|
82
|
-
"size": "sm" as
|
|
104
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
105
|
+
"size": "sm" as typeof size[number],
|
|
83
106
|
"class": {
|
|
84
107
|
"track": "h-[7px]"
|
|
85
108
|
}
|
|
86
109
|
},
|
|
87
110
|
{
|
|
88
|
-
"orientation": "horizontal" as
|
|
89
|
-
"size": "md" as
|
|
111
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
112
|
+
"size": "md" as typeof size[number],
|
|
90
113
|
"class": {
|
|
91
114
|
"track": "h-[8px]"
|
|
92
115
|
}
|
|
93
116
|
},
|
|
94
117
|
{
|
|
95
|
-
"orientation": "horizontal" as
|
|
96
|
-
"size": "lg" as
|
|
118
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
119
|
+
"size": "lg" as typeof size[number],
|
|
97
120
|
"class": {
|
|
98
121
|
"track": "h-[9px]"
|
|
99
122
|
}
|
|
100
123
|
},
|
|
101
124
|
{
|
|
102
|
-
"orientation": "horizontal" as
|
|
103
|
-
"size": "xl" as
|
|
125
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
126
|
+
"size": "xl" as typeof size[number],
|
|
104
127
|
"class": {
|
|
105
128
|
"track": "h-[10px]"
|
|
106
129
|
}
|
|
107
130
|
},
|
|
108
131
|
{
|
|
109
|
-
"orientation": "vertical" as
|
|
110
|
-
"size": "xs" as
|
|
132
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
133
|
+
"size": "xs" as typeof size[number],
|
|
111
134
|
"class": {
|
|
112
135
|
"track": "w-[6px]"
|
|
113
136
|
}
|
|
114
137
|
},
|
|
115
138
|
{
|
|
116
|
-
"orientation": "vertical" as
|
|
117
|
-
"size": "sm" as
|
|
139
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
140
|
+
"size": "sm" as typeof size[number],
|
|
118
141
|
"class": {
|
|
119
142
|
"track": "w-[7px]"
|
|
120
143
|
}
|
|
121
144
|
},
|
|
122
145
|
{
|
|
123
|
-
"orientation": "vertical" as
|
|
124
|
-
"size": "md" as
|
|
146
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
147
|
+
"size": "md" as typeof size[number],
|
|
125
148
|
"class": {
|
|
126
149
|
"track": "w-[8px]"
|
|
127
150
|
}
|
|
128
151
|
},
|
|
129
152
|
{
|
|
130
|
-
"orientation": "vertical" as
|
|
131
|
-
"size": "lg" as
|
|
153
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
154
|
+
"size": "lg" as typeof size[number],
|
|
132
155
|
"class": {
|
|
133
156
|
"track": "w-[9px]"
|
|
134
157
|
}
|
|
135
158
|
},
|
|
136
159
|
{
|
|
137
|
-
"orientation": "vertical" as
|
|
138
|
-
"size": "xl" as
|
|
160
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
161
|
+
"size": "xl" as typeof size[number],
|
|
139
162
|
"class": {
|
|
140
163
|
"track": "w-[10px]"
|
|
141
164
|
}
|
|
142
165
|
}
|
|
143
166
|
],
|
|
144
167
|
"defaultVariants": {
|
|
145
|
-
"size": "md" as
|
|
146
|
-
"color": "primary" as
|
|
168
|
+
"size": "md" as typeof size[number],
|
|
169
|
+
"color": "primary" as typeof color[number]
|
|
147
170
|
}
|
|
148
171
|
}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
const orientation = [
|
|
2
|
+
"horizontal",
|
|
3
|
+
"vertical"
|
|
4
|
+
] as const
|
|
5
|
+
|
|
6
|
+
const size = [
|
|
7
|
+
"xs",
|
|
8
|
+
"sm",
|
|
9
|
+
"md",
|
|
10
|
+
"lg",
|
|
11
|
+
"xl"
|
|
12
|
+
] as const
|
|
13
|
+
|
|
14
|
+
const color = [
|
|
15
|
+
"primary",
|
|
16
|
+
"secondary",
|
|
17
|
+
"success",
|
|
18
|
+
"info",
|
|
19
|
+
"warning",
|
|
20
|
+
"error",
|
|
21
|
+
"neutral"
|
|
22
|
+
] as const
|
|
23
|
+
|
|
24
|
+
export default {
|
|
25
|
+
"slots": {
|
|
26
|
+
"root": "flex gap-4",
|
|
27
|
+
"header": "flex",
|
|
28
|
+
"item": "group text-center relative w-full",
|
|
29
|
+
"container": "relative",
|
|
30
|
+
"trigger": "rounded-full font-medium text-center align-middle flex items-center justify-center font-semibold group-data-[state=completed]:text-(--ui-bg) group-data-[state=active]:text-(--ui-bg) text-(--ui-text-muted) bg-(--ui-bg-elevated) focus-visible:outline-2 focus-visible:outline-offset-2",
|
|
31
|
+
"indicator": "flex items-center justify-center size-full",
|
|
32
|
+
"icon": "shrink-0",
|
|
33
|
+
"separator": "absolute rounded-full group-data-[disabled]:opacity-75 bg-(--ui-border-accented)",
|
|
34
|
+
"wrapper": "",
|
|
35
|
+
"title": "font-medium text-(--ui-text)",
|
|
36
|
+
"description": "text-(--ui-text-muted) text-wrap",
|
|
37
|
+
"content": "size-full"
|
|
38
|
+
},
|
|
39
|
+
"variants": {
|
|
40
|
+
"orientation": {
|
|
41
|
+
"horizontal": {
|
|
42
|
+
"root": "flex-col",
|
|
43
|
+
"container": "flex justify-center",
|
|
44
|
+
"separator": "top-[calc(50%-2px)] h-0.5",
|
|
45
|
+
"wrapper": "mt-1"
|
|
46
|
+
},
|
|
47
|
+
"vertical": {
|
|
48
|
+
"header": "flex-col gap-4",
|
|
49
|
+
"item": "flex text-start",
|
|
50
|
+
"separator": "start-[calc(50%-1px)] -bottom-[10px] w-0.5"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"size": {
|
|
54
|
+
"xs": {
|
|
55
|
+
"trigger": "size-6 text-xs",
|
|
56
|
+
"icon": "size-3",
|
|
57
|
+
"title": "text-xs",
|
|
58
|
+
"description": "text-xs",
|
|
59
|
+
"wrapper": "mt-1.5"
|
|
60
|
+
},
|
|
61
|
+
"sm": {
|
|
62
|
+
"trigger": "size-8 text-sm",
|
|
63
|
+
"icon": "size-4",
|
|
64
|
+
"title": "text-xs",
|
|
65
|
+
"description": "text-xs",
|
|
66
|
+
"wrapper": "mt-2"
|
|
67
|
+
},
|
|
68
|
+
"md": {
|
|
69
|
+
"trigger": "size-10 text-base",
|
|
70
|
+
"icon": "size-5",
|
|
71
|
+
"title": "text-sm",
|
|
72
|
+
"description": "text-sm",
|
|
73
|
+
"wrapper": "mt-2.5"
|
|
74
|
+
},
|
|
75
|
+
"lg": {
|
|
76
|
+
"trigger": "size-12 text-lg",
|
|
77
|
+
"icon": "size-6",
|
|
78
|
+
"title": "text-base",
|
|
79
|
+
"description": "text-base",
|
|
80
|
+
"wrapper": "mt-3"
|
|
81
|
+
},
|
|
82
|
+
"xl": {
|
|
83
|
+
"trigger": "size-14 text-xl",
|
|
84
|
+
"icon": "size-7",
|
|
85
|
+
"title": "text-lg",
|
|
86
|
+
"description": "text-lg",
|
|
87
|
+
"wrapper": "mt-3.5"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"color": {
|
|
91
|
+
"primary": {
|
|
92
|
+
"trigger": "group-data-[state=completed]:bg-(--ui-primary) group-data-[state=active]:bg-(--ui-primary) focus-visible:outline-(--ui-primary)",
|
|
93
|
+
"separator": "group-data-[state=completed]:bg-(--ui-primary)"
|
|
94
|
+
},
|
|
95
|
+
"secondary": {
|
|
96
|
+
"trigger": "group-data-[state=completed]:bg-(--ui-secondary) group-data-[state=active]:bg-(--ui-secondary) focus-visible:outline-(--ui-secondary)",
|
|
97
|
+
"separator": "group-data-[state=completed]:bg-(--ui-secondary)"
|
|
98
|
+
},
|
|
99
|
+
"success": {
|
|
100
|
+
"trigger": "group-data-[state=completed]:bg-(--ui-success) group-data-[state=active]:bg-(--ui-success) focus-visible:outline-(--ui-success)",
|
|
101
|
+
"separator": "group-data-[state=completed]:bg-(--ui-success)"
|
|
102
|
+
},
|
|
103
|
+
"info": {
|
|
104
|
+
"trigger": "group-data-[state=completed]:bg-(--ui-info) group-data-[state=active]:bg-(--ui-info) focus-visible:outline-(--ui-info)",
|
|
105
|
+
"separator": "group-data-[state=completed]:bg-(--ui-info)"
|
|
106
|
+
},
|
|
107
|
+
"warning": {
|
|
108
|
+
"trigger": "group-data-[state=completed]:bg-(--ui-warning) group-data-[state=active]:bg-(--ui-warning) focus-visible:outline-(--ui-warning)",
|
|
109
|
+
"separator": "group-data-[state=completed]:bg-(--ui-warning)"
|
|
110
|
+
},
|
|
111
|
+
"error": {
|
|
112
|
+
"trigger": "group-data-[state=completed]:bg-(--ui-error) group-data-[state=active]:bg-(--ui-error) focus-visible:outline-(--ui-error)",
|
|
113
|
+
"separator": "group-data-[state=completed]:bg-(--ui-error)"
|
|
114
|
+
},
|
|
115
|
+
"neutral": {
|
|
116
|
+
"trigger": "group-data-[state=completed]:bg-(--ui-bg-inverted) group-data-[state=active]:bg-(--ui-bg-inverted) focus-visible:outline-(--ui-border-inverted)",
|
|
117
|
+
"separator": "group-data-[state=completed]:bg-(--ui-bg-inverted)"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"compoundVariants": [
|
|
122
|
+
{
|
|
123
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
124
|
+
"size": "xs" as typeof size[number],
|
|
125
|
+
"class": {
|
|
126
|
+
"separator": "start-[calc(50%+16px)] end-[calc(-50%+16px)]"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
131
|
+
"size": "sm" as typeof size[number],
|
|
132
|
+
"class": {
|
|
133
|
+
"separator": "start-[calc(50%+20px)] end-[calc(-50%+20px)]"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
138
|
+
"size": "md" as typeof size[number],
|
|
139
|
+
"class": {
|
|
140
|
+
"separator": "start-[calc(50%+28px)] end-[calc(-50%+28px)]"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
145
|
+
"size": "lg" as typeof size[number],
|
|
146
|
+
"class": {
|
|
147
|
+
"separator": "start-[calc(50%+32px)] end-[calc(-50%+32px)]"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
152
|
+
"size": "xl" as typeof size[number],
|
|
153
|
+
"class": {
|
|
154
|
+
"separator": "start-[calc(50%+36px)] end-[calc(-50%+36px)]"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
159
|
+
"size": "xs" as typeof size[number],
|
|
160
|
+
"class": {
|
|
161
|
+
"separator": "top-[30px]",
|
|
162
|
+
"item": "gap-1.5"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
167
|
+
"size": "sm" as typeof size[number],
|
|
168
|
+
"class": {
|
|
169
|
+
"separator": "top-[38px]",
|
|
170
|
+
"item": "gap-2"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
175
|
+
"size": "md" as typeof size[number],
|
|
176
|
+
"class": {
|
|
177
|
+
"separator": "top-[46px]",
|
|
178
|
+
"item": "gap-2.5"
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
183
|
+
"size": "lg" as typeof size[number],
|
|
184
|
+
"class": {
|
|
185
|
+
"separator": "top-[54px]",
|
|
186
|
+
"item": "gap-3"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
191
|
+
"size": "xl" as typeof size[number],
|
|
192
|
+
"class": {
|
|
193
|
+
"separator": "top-[62px]",
|
|
194
|
+
"item": "gap-3.5"
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
"defaultVariants": {
|
|
199
|
+
"size": "md" as typeof size[number],
|
|
200
|
+
"color": "primary" as typeof color[number]
|
|
201
|
+
}
|
|
202
|
+
}
|
package/.nuxt/ui/switch.ts
CHANGED
|
@@ -1,49 +1,67 @@
|
|
|
1
|
+
const color = [
|
|
2
|
+
"primary",
|
|
3
|
+
"secondary",
|
|
4
|
+
"success",
|
|
5
|
+
"info",
|
|
6
|
+
"warning",
|
|
7
|
+
"error",
|
|
8
|
+
"neutral"
|
|
9
|
+
] as const
|
|
10
|
+
|
|
11
|
+
const size = [
|
|
12
|
+
"xs",
|
|
13
|
+
"sm",
|
|
14
|
+
"md",
|
|
15
|
+
"lg",
|
|
16
|
+
"xl"
|
|
17
|
+
] as const
|
|
18
|
+
|
|
1
19
|
export default {
|
|
2
20
|
"slots": {
|
|
3
21
|
"root": "relative flex items-start",
|
|
4
22
|
"base": [
|
|
5
|
-
"inline-flex items-center shrink-0 rounded-full border-2 border-transparent focus-visible:outline-
|
|
23
|
+
"inline-flex items-center shrink-0 rounded-full border-2 border-transparent focus-visible:outline-2 focus-visible:outline-offset-2 data-[state=unchecked]:bg-(--ui-bg-accented)",
|
|
6
24
|
"transition-colors duration-200"
|
|
7
25
|
],
|
|
8
26
|
"container": "flex items-center",
|
|
9
|
-
"thumb": "group pointer-events-none
|
|
27
|
+
"thumb": "group pointer-events-none rounded-full bg-(--ui-bg) shadow-lg ring-0 transition-transform duration-200 data-[state=unchecked]:translate-x-0 data-[state=unchecked]:rtl:-translate-x-0 flex items-center justify-center",
|
|
10
28
|
"icon": [
|
|
11
|
-
"absolute shrink-0 group-data-[state=unchecked]:text-
|
|
29
|
+
"absolute shrink-0 group-data-[state=unchecked]:text-(--ui-text-dimmed) opacity-0 size-10/12",
|
|
12
30
|
"transition-[color,opacity] duration-200"
|
|
13
31
|
],
|
|
14
32
|
"wrapper": "ms-2",
|
|
15
|
-
"label": "block font-medium text-
|
|
16
|
-
"description": "text-
|
|
33
|
+
"label": "block font-medium text-(--ui-text)",
|
|
34
|
+
"description": "text-(--ui-text-muted)"
|
|
17
35
|
},
|
|
18
36
|
"variants": {
|
|
19
37
|
"color": {
|
|
20
38
|
"primary": {
|
|
21
|
-
"base": "data-[state=checked]:bg-
|
|
22
|
-
"icon": "group-data-[state=checked]:text-
|
|
39
|
+
"base": "data-[state=checked]:bg-(--ui-primary) focus-visible:outline-(--ui-primary)",
|
|
40
|
+
"icon": "group-data-[state=checked]:text-(--ui-primary)"
|
|
23
41
|
},
|
|
24
42
|
"secondary": {
|
|
25
|
-
"base": "data-[state=checked]:bg-
|
|
26
|
-
"icon": "group-data-[state=checked]:text-
|
|
43
|
+
"base": "data-[state=checked]:bg-(--ui-secondary) focus-visible:outline-(--ui-secondary)",
|
|
44
|
+
"icon": "group-data-[state=checked]:text-(--ui-secondary)"
|
|
27
45
|
},
|
|
28
46
|
"success": {
|
|
29
|
-
"base": "data-[state=checked]:bg-
|
|
30
|
-
"icon": "group-data-[state=checked]:text-
|
|
47
|
+
"base": "data-[state=checked]:bg-(--ui-success) focus-visible:outline-(--ui-success)",
|
|
48
|
+
"icon": "group-data-[state=checked]:text-(--ui-success)"
|
|
31
49
|
},
|
|
32
50
|
"info": {
|
|
33
|
-
"base": "data-[state=checked]:bg-
|
|
34
|
-
"icon": "group-data-[state=checked]:text-
|
|
51
|
+
"base": "data-[state=checked]:bg-(--ui-info) focus-visible:outline-(--ui-info)",
|
|
52
|
+
"icon": "group-data-[state=checked]:text-(--ui-info)"
|
|
35
53
|
},
|
|
36
54
|
"warning": {
|
|
37
|
-
"base": "data-[state=checked]:bg-
|
|
38
|
-
"icon": "group-data-[state=checked]:text-
|
|
55
|
+
"base": "data-[state=checked]:bg-(--ui-warning) focus-visible:outline-(--ui-warning)",
|
|
56
|
+
"icon": "group-data-[state=checked]:text-(--ui-warning)"
|
|
39
57
|
},
|
|
40
58
|
"error": {
|
|
41
|
-
"base": "data-[state=checked]:bg-
|
|
42
|
-
"icon": "group-data-[state=checked]:text-
|
|
59
|
+
"base": "data-[state=checked]:bg-(--ui-error) focus-visible:outline-(--ui-error)",
|
|
60
|
+
"icon": "group-data-[state=checked]:text-(--ui-error)"
|
|
43
61
|
},
|
|
44
62
|
"neutral": {
|
|
45
|
-
"base": "data-[state=checked]:bg-
|
|
46
|
-
"icon": "group-data-[state=checked]:text-
|
|
63
|
+
"base": "data-[state=checked]:bg-(--ui-bg-inverted) focus-visible:outline-(--ui-border-inverted)",
|
|
64
|
+
"icon": "group-data-[state=checked]:text-(--ui-text-highlighted)"
|
|
47
65
|
}
|
|
48
66
|
},
|
|
49
67
|
"size": {
|
|
@@ -95,7 +113,7 @@ export default {
|
|
|
95
113
|
},
|
|
96
114
|
"required": {
|
|
97
115
|
"true": {
|
|
98
|
-
"label": "after:content-['*'] after:ms-0.5 after:text-
|
|
116
|
+
"label": "after:content-['*'] after:ms-0.5 after:text-(--ui-error)"
|
|
99
117
|
}
|
|
100
118
|
},
|
|
101
119
|
"disabled": {
|
|
@@ -107,7 +125,7 @@ export default {
|
|
|
107
125
|
}
|
|
108
126
|
},
|
|
109
127
|
"defaultVariants": {
|
|
110
|
-
"color": "primary" as
|
|
111
|
-
"size": "md" as
|
|
128
|
+
"color": "primary" as typeof color[number],
|
|
129
|
+
"size": "md" as typeof size[number]
|
|
112
130
|
}
|
|
113
131
|
}
|
package/.nuxt/ui/table.ts
CHANGED
|
@@ -1,25 +1,42 @@
|
|
|
1
|
+
const loadingAnimation = [
|
|
2
|
+
"carousel",
|
|
3
|
+
"carousel-inverse",
|
|
4
|
+
"swing",
|
|
5
|
+
"elastic"
|
|
6
|
+
] as const
|
|
7
|
+
|
|
8
|
+
const loadingColor = [
|
|
9
|
+
"primary",
|
|
10
|
+
"secondary",
|
|
11
|
+
"success",
|
|
12
|
+
"info",
|
|
13
|
+
"warning",
|
|
14
|
+
"error",
|
|
15
|
+
"neutral"
|
|
16
|
+
] as const
|
|
17
|
+
|
|
1
18
|
export default {
|
|
2
19
|
"slots": {
|
|
3
20
|
"root": "relative overflow-auto",
|
|
4
21
|
"base": "min-w-full overflow-clip",
|
|
5
22
|
"caption": "sr-only",
|
|
6
|
-
"thead": "relative [&>tr]:after:absolute [&>tr]:after:inset-x-0 [&>tr]:after:bottom-0 [&>tr]:after:h-px [&>tr]:after:bg-
|
|
7
|
-
"tbody": "divide-y divide-
|
|
8
|
-
"tr": "data-[selected=true]:bg-
|
|
9
|
-
"th": "px-4 py-3.5 text-sm text-
|
|
10
|
-
"td": "p-4 text-sm text-
|
|
11
|
-
"empty": "py-6 text-center text-sm text-
|
|
23
|
+
"thead": "relative [&>tr]:after:absolute [&>tr]:after:inset-x-0 [&>tr]:after:bottom-0 [&>tr]:after:h-px [&>tr]:after:bg-(--ui-border-accented)",
|
|
24
|
+
"tbody": "divide-y divide-(--ui-border) [&>tr]:data-[selectable=true]:hover:bg-(--ui-bg-elevated)/50 [&>tr]:data-[selectable=true]:focus-visible:outline-(--ui-primary)",
|
|
25
|
+
"tr": "data-[selected=true]:bg-(--ui-bg-elevated)/50",
|
|
26
|
+
"th": "px-4 py-3.5 text-sm text-(--ui-text-highlighted) text-left rtl:text-right font-semibold [&:has([role=checkbox])]:pe-0",
|
|
27
|
+
"td": "p-4 text-sm text-(--ui-text-muted) whitespace-nowrap [&:has([role=checkbox])]:pe-0",
|
|
28
|
+
"empty": "py-6 text-center text-sm text-(--ui-text-muted)"
|
|
12
29
|
},
|
|
13
30
|
"variants": {
|
|
14
31
|
"pinned": {
|
|
15
32
|
"true": {
|
|
16
|
-
"th": "sticky bg-
|
|
17
|
-
"td": "sticky bg-
|
|
33
|
+
"th": "sticky bg-(--ui-bg)/75 data-[pinned=left]:left-0 data-[pinned=right]:right-0",
|
|
34
|
+
"td": "sticky bg-(--ui-bg)/75 data-[pinned=left]:left-0 data-[pinned=right]:right-0"
|
|
18
35
|
}
|
|
19
36
|
},
|
|
20
37
|
"sticky": {
|
|
21
38
|
"true": {
|
|
22
|
-
"thead": "sticky top-0 inset-x-0 bg-
|
|
39
|
+
"thead": "sticky top-0 inset-x-0 bg-(--ui-bg)/75 z-[1] backdrop-blur"
|
|
23
40
|
}
|
|
24
41
|
},
|
|
25
42
|
"loading": {
|
|
@@ -46,84 +63,84 @@ export default {
|
|
|
46
63
|
"compoundVariants": [
|
|
47
64
|
{
|
|
48
65
|
"loading": true,
|
|
49
|
-
"loadingColor": "primary" as
|
|
66
|
+
"loadingColor": "primary" as typeof loadingColor[number],
|
|
50
67
|
"class": {
|
|
51
|
-
"thead": "after:bg-
|
|
68
|
+
"thead": "after:bg-(--ui-primary)"
|
|
52
69
|
}
|
|
53
70
|
},
|
|
54
71
|
{
|
|
55
72
|
"loading": true,
|
|
56
|
-
"loadingColor": "secondary" as
|
|
73
|
+
"loadingColor": "secondary" as typeof loadingColor[number],
|
|
57
74
|
"class": {
|
|
58
|
-
"thead": "after:bg-
|
|
75
|
+
"thead": "after:bg-(--ui-secondary)"
|
|
59
76
|
}
|
|
60
77
|
},
|
|
61
78
|
{
|
|
62
79
|
"loading": true,
|
|
63
|
-
"loadingColor": "success" as
|
|
80
|
+
"loadingColor": "success" as typeof loadingColor[number],
|
|
64
81
|
"class": {
|
|
65
|
-
"thead": "after:bg-
|
|
82
|
+
"thead": "after:bg-(--ui-success)"
|
|
66
83
|
}
|
|
67
84
|
},
|
|
68
85
|
{
|
|
69
86
|
"loading": true,
|
|
70
|
-
"loadingColor": "info" as
|
|
87
|
+
"loadingColor": "info" as typeof loadingColor[number],
|
|
71
88
|
"class": {
|
|
72
|
-
"thead": "after:bg-
|
|
89
|
+
"thead": "after:bg-(--ui-info)"
|
|
73
90
|
}
|
|
74
91
|
},
|
|
75
92
|
{
|
|
76
93
|
"loading": true,
|
|
77
|
-
"loadingColor": "warning" as
|
|
94
|
+
"loadingColor": "warning" as typeof loadingColor[number],
|
|
78
95
|
"class": {
|
|
79
|
-
"thead": "after:bg-
|
|
96
|
+
"thead": "after:bg-(--ui-warning)"
|
|
80
97
|
}
|
|
81
98
|
},
|
|
82
99
|
{
|
|
83
100
|
"loading": true,
|
|
84
|
-
"loadingColor": "error" as
|
|
101
|
+
"loadingColor": "error" as typeof loadingColor[number],
|
|
85
102
|
"class": {
|
|
86
|
-
"thead": "after:bg-
|
|
103
|
+
"thead": "after:bg-(--ui-error)"
|
|
87
104
|
}
|
|
88
105
|
},
|
|
89
106
|
{
|
|
90
107
|
"loading": true,
|
|
91
|
-
"loadingColor": "neutral" as
|
|
108
|
+
"loadingColor": "neutral" as typeof loadingColor[number],
|
|
92
109
|
"class": {
|
|
93
|
-
"thead": "after:bg-
|
|
110
|
+
"thead": "after:bg-(--ui-bg-inverted)"
|
|
94
111
|
}
|
|
95
112
|
},
|
|
96
113
|
{
|
|
97
114
|
"loading": true,
|
|
98
|
-
"loadingAnimation": "carousel" as
|
|
115
|
+
"loadingAnimation": "carousel" as typeof loadingAnimation[number],
|
|
99
116
|
"class": {
|
|
100
|
-
"thead": "after:animate-[carousel_2s_ease-in-out_infinite]"
|
|
117
|
+
"thead": "after:animate-[carousel_2s_ease-in-out_infinite] rtl:after:animate-[carousel-rtl_2s_ease-in-out_infinite]"
|
|
101
118
|
}
|
|
102
119
|
},
|
|
103
120
|
{
|
|
104
121
|
"loading": true,
|
|
105
|
-
"loadingAnimation": "carousel-inverse" as
|
|
122
|
+
"loadingAnimation": "carousel-inverse" as typeof loadingAnimation[number],
|
|
106
123
|
"class": {
|
|
107
|
-
"thead": "after:animate-[carousel-inverse_2s_ease-in-out_infinite]"
|
|
124
|
+
"thead": "after:animate-[carousel-inverse_2s_ease-in-out_infinite] rtl:after:animate-[carousel-inverse-rtl_2s_ease-in-out_infinite]"
|
|
108
125
|
}
|
|
109
126
|
},
|
|
110
127
|
{
|
|
111
128
|
"loading": true,
|
|
112
|
-
"loadingAnimation": "swing" as
|
|
129
|
+
"loadingAnimation": "swing" as typeof loadingAnimation[number],
|
|
113
130
|
"class": {
|
|
114
131
|
"thead": "after:animate-[swing_2s_ease-in-out_infinite]"
|
|
115
132
|
}
|
|
116
133
|
},
|
|
117
134
|
{
|
|
118
135
|
"loading": true,
|
|
119
|
-
"loadingAnimation": "elastic" as
|
|
136
|
+
"loadingAnimation": "elastic" as typeof loadingAnimation[number],
|
|
120
137
|
"class": {
|
|
121
138
|
"thead": "after:animate-[elastic_2s_ease-in-out_infinite]"
|
|
122
139
|
}
|
|
123
140
|
}
|
|
124
141
|
],
|
|
125
142
|
"defaultVariants": {
|
|
126
|
-
"loadingColor": "primary" as
|
|
127
|
-
"loadingAnimation": "carousel" as
|
|
143
|
+
"loadingColor": "primary" as typeof loadingColor[number],
|
|
144
|
+
"loadingAnimation": "carousel" as typeof loadingAnimation[number]
|
|
128
145
|
}
|
|
129
146
|
}
|