@una-ui/preset 1.0.0-alpha.1 → 1.0.0-alpha.11

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/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { fonts } from '@unocss/preset-mini/rules';
2
2
  import { handler, parseColor } from '@unocss/preset-mini/utils';
3
3
  import { colors } from '@unocss/preset-wind4/colors';
4
- import { s as shortcuts } from './shared/preset.CWR84hRp.mjs';
4
+ import { s as shortcuts } from './shared/preset.Dtw8JAKG.mjs';
5
5
  import '@unocss/preset-mini';
6
6
 
7
7
  function presetUna(options = {
package/dist/prefixes.mjs CHANGED
@@ -1,5 +1,9 @@
1
1
  const prefixes = [
2
2
  "accordion",
3
+ "accordion-content",
4
+ "accordion-header",
5
+ "accordion-item",
6
+ "accordion-trigger",
3
7
  "alert",
4
8
  "alert-close",
5
9
  "alert-description",
@@ -127,6 +131,10 @@ const prefixes = [
127
131
  "pagination-list-item",
128
132
  "pagination-next",
129
133
  "pagination-prev",
134
+ "pin-input",
135
+ "pin-input-group",
136
+ "pin-input-separator",
137
+ "pin-input-slot",
130
138
  "popover",
131
139
  "popover-content",
132
140
  "progress",
@@ -189,6 +197,16 @@ const prefixes = [
189
197
  "skeleton",
190
198
  "slider",
191
199
  "square",
200
+ "stepper",
201
+ "stepper-container",
202
+ "stepper-description",
203
+ "stepper-header",
204
+ "stepper-indicator",
205
+ "stepper-item",
206
+ "stepper-separator",
207
+ "stepper-title",
208
+ "stepper-trigger",
209
+ "stepper-wrapper",
192
210
  "switch",
193
211
  "switch-checked",
194
212
  "switch-unchecked",
@@ -221,6 +239,8 @@ const prefixes = [
221
239
  "toggle",
222
240
  "toggle-off",
223
241
  "toggle-on",
242
+ "toggle-group",
243
+ "toggle-group-item",
224
244
  "tooltip",
225
245
  "tooltip-content",
226
246
  "tooltip-provider",
@@ -3,25 +3,20 @@ import { parseColor as parseColor$1 } from '@unocss/preset-mini';
3
3
 
4
4
  const staticAccordion = {
5
5
  // config
6
- "accordion-trailing-icon": "i-lucide-chevron-up",
7
- "accordion-button-padding": "p-(x-3 y-4)",
8
- "accordion-button-default-variant": "btn-text",
9
- "accordion-divider": "divide-(y border)",
10
- "accordion-border": "border-(~ border) rounded-md",
6
+ "accordion-trailing-icon": "i-lucide-chevron-up group-data-[state=open]/accordion-trigger:-rotate-180 group-data-[state=closed]/accordion-trigger:rotate-0 transition-transform duration-300",
7
+ "accordion-divider": "divide-y",
8
+ "accordion-border": "border rounded-md",
11
9
  // base
12
- "accordion": "flex-(~ col) relative w-full",
13
- "accordion-item": "w-full",
14
- "accordion-button": "justify-start",
15
- "accordion-panel": "text-(muted-foreground 0.875em) border-(t border) accordion-button-padding",
10
+ "accordion": "flex flex-col relative w-full",
11
+ "accordion-content": "flex overflow-hidden",
12
+ "accordion-item": "w-full overflow-hidden focus-within:(relative z-10 shadow)",
13
+ "accordion-header": "flex",
14
+ "accordion-trigger": "w-full flex justify-between items-center accordion-trigger-padding",
15
+ "accordion-trigger-padding": "px-4 py-4 is-[.btn]:h-auto",
16
+ "accordion-trigger-label": "flex-1 text-left",
17
+ "accordion-panel": "w-full text-muted-foreground text-0.875em border-t accordion-trigger-padding",
16
18
  "accordion-leading": "text-1.2em",
17
- "accordion-trailing": "flex transition items-center text-1em duration-300",
18
- "accordion-label": "flex w-full text-1em",
19
- // trailing transition
20
- "accordion-trailing-open": "-rotate-180",
21
- "accordion-trailing-close": "rotate-0",
22
- // panel transition
23
- "accordion-enter-active": "overflow-hidden transition-height duration-300",
24
- "accordion-leave-active": "overflow-hidden transition-height duration-300"
19
+ "accordion-trailing": "flex transition items-center text-1em duration-300"
25
20
  };
26
21
  const dynamicAccordion = [];
27
22
  const accordion = [
@@ -232,7 +227,7 @@ const staticBtn = {
232
227
  "btn-text": "btn-text-primary",
233
228
  "btn-text-gray": "hover:text-secondary-foreground text-secondary-foreground/90 btn-focus",
234
229
  "btn-text-black": "hover:text-foreground text-foreground/90 btn-focus",
235
- "btn-text-muted": "hover:text-foreground text-foreground/90 btn-focus",
230
+ "btn-text-muted": "hover:text-muted-foreground text-muted-foreground/90 btn-focus",
236
231
  "btn-text-accent": "hover:text-accent-foreground text-accent-foreground/90 btn-focus",
237
232
  "btn-soft-primary": "bg-primary/10 text-primary shadow-xs hover:bg-primary/15 btn-focus",
238
233
  "btn-soft": "btn-soft-primary",
@@ -323,7 +318,7 @@ const checkbox = [
323
318
  ];
324
319
 
325
320
  const staticCollapsible = {
326
- "collapsible-content": "overflow-hidden transition-all data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down"
321
+ "collapsible-content": "overflow-hidden transition-all"
327
322
  };
328
323
  const dynamicCollapsible = [
329
324
  // dynamic preset
@@ -353,7 +348,7 @@ const staticCombobox = {
353
348
  "combobox-empty": "py-1.7142857142857142em text-center text-1em leading-1.4285714285714286em",
354
349
  "combobox-group": "overflow-hidden p-0.2857142857142857em text-foreground",
355
350
  "combobox-label": "px-0.6666666666666666em py-0.5em text-0.8571428571428571em leading-1.1428571428571428em text-muted-foreground font-medium",
356
- "combobox-list": "z-50 w-[--reka-popper-anchor-width] rounded-md border bg-popover text-popover-foreground overflow-hidden shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
351
+ "combobox-list": "z-50 w-[--reka-popper-anchor-width] rounded-md border bg-popover text-popover-foreground overflow-hidden shadow-md outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
357
352
  "combobox-separator": "bg-border -mx-1 h-px",
358
353
  "combobox-viewport": "max-h-300px scroll-py-1 overflow-x-hidden overflow-y-auto"
359
354
  };
@@ -369,7 +364,7 @@ const staticDialog = {
369
364
  // base
370
365
  "dialog": "",
371
366
  // sub-components
372
- "dialog-overlay": "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",
367
+ "dialog-overlay": "fixed inset-0 z-50 bg-black/80",
373
368
  "dialog-content": "bg-background fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
374
369
  "dialog-scroll-overlay": "fixed inset-0 z-50 grid place-items-center overflow-y-auto bg-black/80",
375
370
  "dialog-scroll-content": "relative z-50 grid w-full max-w-lg my-8 gap-4 border border-border bg-background p-6 shadow-lg duration-200 sm:rounded-lg md:w-full",
@@ -390,7 +385,7 @@ const dialog = [
390
385
  const staticDrawer = {
391
386
  // base
392
387
  "drawer": "",
393
- "drawer-overlay": "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",
388
+ "drawer-overlay": "fixed inset-0 z-50 bg-black/80",
394
389
  "drawer-content": "bg-background fixed z-50 flex h-auto flex-col",
395
390
  "drawer-content-top": "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg",
396
391
  "drawer-content-bottom": "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg",
@@ -501,13 +496,13 @@ const formGroup = [
501
496
  ];
502
497
 
503
498
  const staticIcons = {
504
- "i-loading": "i-tabler-loader-2",
505
- "i-warning": "i-tabler-alert-triangle-filled",
506
- "i-error": "i-tabler-exclamation-circle-filled",
507
- "i-success": "i-tabler-circle-check-filled",
508
- "i-info": "i-tabler-info-circle-filled",
509
- "i-close": "i-tabler-x",
510
- "i-check": "i-tabler-check",
499
+ "i-warning": "i-lucide-triangle-alert",
500
+ "i-error": "i-lucide-circle-alert",
501
+ "i-success": "i-lucide-circle-check-big",
502
+ "i-info": "i-lucide-info",
503
+ "i-loading": "i-lucide-loader",
504
+ "i-close": "i-lucide-x",
505
+ "i-check": "i-lucide-check",
511
506
  "i-dot": "i-tabler-circle-filled"
512
507
  };
513
508
 
@@ -544,7 +539,7 @@ const staticHoverCard = {
544
539
  "hover-card-default-variant": "outline-gray",
545
540
  // components
546
541
  "hover-card-trigger": "",
547
- "hover-card-content": "bg-background text-popover-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 rounded-md border p-4 shadow-md outline-none",
542
+ "hover-card-content": "bg-background text-popover-foreground animate-in fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 rounded-md border p-4 shadow-md outline-none",
548
543
  "hover-card-arrow": "!bg-transparent !border-none -mt-1px fill-background stroke-border",
549
544
  // static variants
550
545
  "hover-card-soft-gray": "bg-muted border border-border",
@@ -607,7 +602,7 @@ const staticInput = {
607
602
  "input-leading-padding": "pl-2.5714285714285716em",
608
603
  "input-trailing-padding": "pr-2.5714285714285716em",
609
604
  // base
610
- "input": "text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground text-0.875em leading-1.4285714285714286em px-0.8571428571428571em bg-transparent w-full focus-visible:outline-none input-disabled placeholder:text-muted-foreground block rounded-md transition-colors file:border-0 file:bg-transparent file:text-0.875em file:font-medium",
605
+ "input": "text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground text-0.875em leading-1.4285714285714286em px-0.8571428571428571em bg-transparent w-full focus-visible:outline-none input-disabled block rounded-md transition-colors file:text-foreground file:border-0 file:bg-transparent file:text-0.875em file:font-medium",
611
606
  "input-input": "h-2.5714285714285716em py-0.2857142857142857em",
612
607
  // role='input'
613
608
  "input-textarea": "min-h-4.285714285714286em py-0.5714285714em",
@@ -632,7 +627,7 @@ const staticInput = {
632
627
  };
633
628
  const dynamicInput = [
634
629
  // config
635
- [/^input-focus(-(\S+))?$/, ([, , c = "primary"]) => `focus-visible:ring-3px focus-visible:border-${c}-400 dark:focus-visible:border-${c}-800 focus-visible:ring-${c}-400/50 dark:focus-visible:ring-${c}-800/50`],
630
+ [/^input-focus(-(\S+))?$/, ([, , c = "primary"]) => `focus-visible:ring-3px focus-visible:border-${c}-400 dark:focus-visible:border-${c}-500 focus-visible:ring-${c}-400/50 dark:focus-visible:ring-${c}-500/50`],
636
631
  [/^input-status(-(\S+))?$/, ([, , c = "info"]) => `text-${c}-700 dark:text-${c}-200 placeholder:text-${c}-500 dark:placeholder:text-${c}-400`],
637
632
  // variants
638
633
  [/^input-outline(-(\S+))?$/, ([, , c = "primary"]) => `shadow-xs border bg-transparent dark:bg-input/30 border-input input-focus-${c}`],
@@ -690,7 +685,7 @@ const staticNavigationMenu = {
690
685
  "navigation-menu": "relative z-10 flex max-w-max flex-1 items-center justify-center",
691
686
  "navigation-menu-disabled": "n-disabled",
692
687
  // components
693
- "navigation-menu-indicator": "absolute data-[state=hidden]:opacity-0 duration-200 top-full data-[state=visible]:animate-fadeIn data-[state=hidden]:animate-fadeOut w-[--reka-navigation-menu-indicator-size] translate-x-[--reka-navigation-menu-indicator-position] mt--3px z-100 flex h-10px items-end justify-center overflow-hidden transition-all",
688
+ "navigation-menu-indicator": "absolute duration-200 top-full w-[--reka-navigation-menu-indicator-size] translate-x-[--reka-navigation-menu-indicator-position] mt--3px z-100 flex h-10px items-end justify-center overflow-hidden transition-all",
694
689
  "navigation-menu-indicator-arrow": "relative top-70% h-12px w-12px rotate-45deg border bg-background",
695
690
  "navigation-menu-content": "left-0 top-0 w-full md:absolute md:w-auto",
696
691
  "navigation-menu-viewport": "origin-top-center relative mt-1.5 h-[--reka-navigation-menu-viewport-height] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow md:w-[--reka-navigation-menu-viewport-width]",
@@ -773,8 +768,32 @@ const pagination = [
773
768
  staticPagination
774
769
  ];
775
770
 
771
+ const staticPinInput = {
772
+ // configurations
773
+ "pin-input": "flex items-center gap-2 has-disabled:opacity-50 disabled:cursor-not-allowed",
774
+ "pin-input-separator-icon": "i-lucide-minus",
775
+ // components
776
+ "pin-input-slot": "relative flex square-2.5714285714285716em items-center justify-center shadow-xs border-y border-r first:rounded-l-md first:border-l last:rounded-r-md text-0.875em leading-1.4285714285714286em transition-all outline-none text-center",
777
+ "pin-input-group": "flex items-center",
778
+ "pin-input-separator": "grid",
779
+ "pin-input-solid-primary": "shadow-xs bg-transparent dark:bg-input/30 border border-ring pin-input-focus",
780
+ "pin-input-solid": "pin-input-solid-primary",
781
+ "pin-input-focus-primary": "focus:ring-3px focus:border focus:border-ring focus:ring-ring/50",
782
+ "pin-input-focus": "pin-input-focus-primary"
783
+ };
784
+ const dynamicPinInput = [
785
+ [/^pin-input-focus(-(\S+))?$/, ([, , c = "primary"]) => `focus:ring-3px focus:border focus:border-${c}-400 dark:focus:border-${c}-500 focus:ring-${c}-400/50 dark:focus:ring-${c}-500/50 focus:z-10`],
786
+ // dynamic preset
787
+ [/^pin-input-outline(-(\S+))?$/, ([, , c = "primary"]) => `bg-transparent dark:bg-input/30 border-input pin-input-focus-${c}`],
788
+ [/^pin-input-solid(-(\S+))?$/, ([, , c = "primary"]) => `bg-transparent dark:bg-input/30 border-${c}-500 dark:border-${c}-400 pin-input-focus-${c}`]
789
+ ];
790
+ const pinInput = [
791
+ ...dynamicPinInput,
792
+ staticPinInput
793
+ ];
794
+
776
795
  const staticPopover = {
777
- "popover-content": "z-50 w-72 rounded-md border border-border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2"
796
+ "popover-content": "z-50 w-72 rounded-md border border-border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2"
778
797
  };
779
798
  const dynamicPopover = [
780
799
  // dynamic preset
@@ -909,7 +928,7 @@ const staticSelect = {
909
928
  "select-trigger-trailing": "size-1.1428571428571428em data-[status=error]:text-error data-[status=success]:text-success data-[status=warning]:text-warning data-[status=info]:text-info data-[status=default]:(n-disabled) rtl:mr-auto ltr:ml-auto",
910
929
  "select-trigger-leading": "size-1.1428571428571428em",
911
930
  "select-value": "text-1em data-[status=error]:text-error-active data-[status=success]:text-success-active data-[status=warning]:text-warning-active data-[status=info]:text-info-active data-[placeholder]:n-disabled",
912
- "select-content": "relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border border-border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
931
+ "select-content": "relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border border-border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
913
932
  "select-content-popper": "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
914
933
  "select-group": "w-full",
915
934
  "select-separator": "-mx-1 my-1 h-px bg-muted",
@@ -980,9 +999,9 @@ const staticSheet = {
980
999
  // base
981
1000
  "sheet": "",
982
1001
  // sub components
983
- "sheet-content": "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
1002
+ "sheet-content": "bg-background fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out",
984
1003
  "sheet-portal": "",
985
- "sheet-overlay": "fixed inset-0 z-50 data-[state=closed]:animate-out data-[state=open]:animate-in bg-black/80 data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
1004
+ "sheet-overlay": "fixed inset-0 z-50 bg-black/80",
986
1005
  "sheet-close": "absolute right-4 top-4",
987
1006
  "sheet-description": "text-sm text-muted-foreground",
988
1007
  "sheet-footer": "mt-auto flex flex-col gap-2 p-4",
@@ -1097,6 +1116,38 @@ const slider = [
1097
1116
  staticSlider
1098
1117
  ];
1099
1118
 
1119
+ const staticStepper = {
1120
+ // configurations
1121
+ "stepper": "flex gap-4",
1122
+ "stepper-horizontal": "flex-col",
1123
+ // components
1124
+ "stepper-wrapper": "flex",
1125
+ "stepper-wrapper-vertical": "flex-col gap-6",
1126
+ "stepper-item": "text-center relative w-full data-[disabled]:pointer-events-none",
1127
+ "stepper-item-vertical": "flex text-start gap-2.5",
1128
+ "stepper-trigger": "rounded-full font-medium text-center align-middle flex items-center justify-center font-semibold text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-background",
1129
+ "stepper-header": "flex flex-col",
1130
+ "stepper-header-horizontal": "mt-2.5",
1131
+ "stepper-indicator": "inline-flex items-center justify-center rounded-full square-2.25em text-foreground/50 bg-muted group-data-[state=active]:text-foreground group-data-[state=completed]:text-foreground",
1132
+ "stepper-separator": "bg-muted group-data-[disabled]:bg-muted group-data-[state=active]:!bg-muted group-data-[disabled]:opacity-50 absolute rounded-full group-data-[disabled]:opacity-75",
1133
+ "stepper-separator-horizontal": "top-[calc(50%-2px)] h-0.5 start-[calc(50%+1.5em)] end-[calc(-50%+1.5em)]",
1134
+ "stepper-separator-vertical": "start-[calc(50%-1px)] bottom-[calc(50%-2.8em)] w-0.5 top-[calc(50%+1em)]",
1135
+ "stepper-title": "text-md font-semibold whitespace-nowrap",
1136
+ "stepper-description": "text-muted-foreground text-wrap text-sm",
1137
+ "stepper-container": "relative",
1138
+ "stepper-container-horizontal": "flex justify-center",
1139
+ // static variants
1140
+ "stepper-solid-black": "group-data-[state=active]:bg-foreground group-data-[state=completed]:bg-foreground focus-visible:ring-foreground"
1141
+ };
1142
+ const dynamicStepper = [
1143
+ // dynamic presets
1144
+ [/^stepper-solid(-(\S+))?$/, ([, , c = "primary"]) => `group-data-[state=completed]:bg-${c}-600 group-data-[state=active]:bg-${c}-600 focus-visible:ring-${c}-600 dark:(group-data-[state=completed]:bg-${c}-500 group-data-[state=active]:bg-${c}-500 focus-visible:ring-${c}-500)`]
1145
+ ];
1146
+ const stepper = [
1147
+ ...dynamicStepper,
1148
+ staticStepper
1149
+ ];
1150
+
1100
1151
  const staticSwitch = {
1101
1152
  // base
1102
1153
  "switch": "h-1.25em w-2.25em switch-disabled inline-flex shrink-0 cursor-pointer items-center border-2 border-transparent rounded-full shadow-xs transition-colors",
@@ -1154,7 +1205,9 @@ const staticTable = {
1154
1205
  // table-empty
1155
1206
  "table-empty-row": "",
1156
1207
  "table-empty-cell": "p-4 whitespace-nowrap align-middle text-sm text-muted-foreground bg-background",
1157
- "table-empty": "flex items-center justify-center py-10",
1208
+ "table-empty": "flex items-center flex-col justify-center py-10 gap-4",
1209
+ "table-empty-text": "text-center text-wrap",
1210
+ "table-empty-icon-name": "i-tabler-database-x size-2xl",
1158
1211
  // table-loading
1159
1212
  "table-loading-icon": "animate-spin text-lg",
1160
1213
  // TODO: to add
@@ -1236,8 +1289,22 @@ const toggle = [
1236
1289
  staticToggle
1237
1290
  ];
1238
1291
 
1292
+ const staticToggleGroup = {
1293
+ // configurations
1294
+ "toggle-group": "flex gap-1 flex-wrap w-fit rounded-md",
1295
+ "toggle-group-horizontal": "flex-row items-center",
1296
+ "toggle-group-vertical": "flex-col items-start",
1297
+ // components
1298
+ "toggle-group-item": ""
1299
+ };
1300
+ const dynamicToggleGroup = [];
1301
+ const toggleGroup = [
1302
+ staticToggleGroup,
1303
+ ...dynamicToggleGroup
1304
+ ];
1305
+
1239
1306
  const staticTooltip = {
1240
- "tooltip-content": "z-50 overflow-hidden rounded-md px-0.75em py-0.375em text-xs shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1307
+ "tooltip-content": "z-50 overflow-hidden rounded-md px-0.75em py-0.375em text-xs shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1241
1308
  "tooltip-white": "border border-border bg-popover text-popover-foreground",
1242
1309
  "tooltip-black": "border border-foreground bg-popover-foreground text-popover"
1243
1310
  };
@@ -1284,6 +1351,7 @@ const shortcuts = [
1284
1351
  ...popover,
1285
1352
  ...tooltip,
1286
1353
  ...pagination,
1354
+ ...pinInput,
1287
1355
  ...toast,
1288
1356
  ...toggle,
1289
1357
  ...collapsible,
@@ -1299,7 +1367,9 @@ const shortcuts = [
1299
1367
  ...alertDialog,
1300
1368
  ...combobox,
1301
1369
  ...drawer,
1302
- ...hoverCard
1370
+ ...hoverCard,
1371
+ ...stepper,
1372
+ ...toggleGroup
1303
1373
  ];
1304
1374
 
1305
1375
  export { shortcuts as s };
@@ -1,3 +1,3 @@
1
- export { s as shortcuts } from './shared/preset.CWR84hRp.mjs';
1
+ export { s as shortcuts } from './shared/preset.Dtw8JAKG.mjs';
2
2
  import '@unocss/preset-mini/utils';
3
3
  import '@unocss/preset-mini';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@una-ui/preset",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.11",
4
4
  "description": "The default preset for @una-ui",
5
5
  "author": "Phojie Rengel <phojrengel@gmail.com>",
6
6
  "license": "MIT",
@@ -45,10 +45,11 @@
45
45
  "access": "public"
46
46
  },
47
47
  "dependencies": {
48
- "@unocss/core": "^66.2.0",
49
- "@unocss/preset-mini": "^66.2.0",
50
- "@unocss/preset-wind4": "^66.2.0",
51
- "unocss": "^66.2.0"
48
+ "@unocss/core": "^66.5.4",
49
+ "@unocss/preset-mini": "^66.5.4",
50
+ "@unocss/preset-uno": "^66.5.4",
51
+ "@unocss/preset-wind4": "^66.5.4",
52
+ "unocss": "^66.5.4"
52
53
  },
53
54
  "scripts": {
54
55
  "build": "unbuild",
package/una.css CHANGED
@@ -1,7 +1,6 @@
1
- @import url(@unocss/reset/tailwind.css);
2
1
  html {
3
2
  font-size: var(--una-font-size, 16px);
4
- @apply font-sans antialiased text-foreground bg-background;
3
+ --at-apply: font-sans antialiased text-foreground bg-background;
5
4
  }
6
5
 
7
6
  * {