@byyuurin/ui 0.0.4 → 0.0.6

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.
Files changed (129) hide show
  1. package/README.md +23 -29
  2. package/dist/index.d.ts +28 -2
  3. package/dist/index.mjs +28 -2
  4. package/dist/nuxt.d.mts +1 -1
  5. package/dist/nuxt.d.ts +1 -1
  6. package/dist/nuxt.mjs +15 -10
  7. package/dist/nuxt.mjs.map +1 -0
  8. package/dist/runtime/components/Accordion.vue +1 -1
  9. package/dist/runtime/components/Alert.vue +120 -0
  10. package/dist/runtime/components/App.vue +1 -1
  11. package/dist/runtime/components/Badge.vue +70 -0
  12. package/dist/runtime/components/Button.vue +7 -3
  13. package/dist/runtime/components/ButtonGroup.vue +47 -0
  14. package/dist/runtime/components/Card.vue +4 -4
  15. package/dist/runtime/components/Carousel.vue +310 -0
  16. package/dist/runtime/components/Checkbox.vue +1 -2
  17. package/dist/runtime/components/Chip.vue +64 -0
  18. package/dist/runtime/components/Drawer.vue +2 -2
  19. package/dist/runtime/components/Input.vue +10 -5
  20. package/dist/runtime/components/Link.vue +1 -1
  21. package/dist/runtime/components/Modal.vue +4 -5
  22. package/dist/runtime/components/Pagination.vue +167 -0
  23. package/dist/runtime/components/PinInput.vue +85 -0
  24. package/dist/runtime/components/Popover.vue +1 -1
  25. package/dist/runtime/components/RadioGroup.vue +1 -2
  26. package/dist/runtime/components/ScrollArea.vue +2 -2
  27. package/dist/runtime/components/Select.vue +7 -2
  28. package/dist/runtime/components/Slider.vue +96 -0
  29. package/dist/runtime/components/Switch.vue +2 -4
  30. package/dist/runtime/components/Tabs.vue +1 -2
  31. package/dist/runtime/components/Textarea.vue +2 -4
  32. package/dist/runtime/components/Toast.vue +21 -10
  33. package/dist/runtime/components/Toaster.vue +5 -5
  34. package/dist/runtime/components/Tooltip.vue +1 -1
  35. package/dist/runtime/composables/useButtonGroup.d.ts +13 -0
  36. package/dist/runtime/composables/useButtonGroup.mjs +14 -0
  37. package/dist/runtime/composables/useTheme.d.ts +2 -2
  38. package/dist/runtime/composables/useTheme.mjs +1 -1
  39. package/dist/runtime/composables/useToast.d.ts +4 -4
  40. package/dist/runtime/composables/useToast.mjs +19 -6
  41. package/dist/runtime/theme/accordion.d.ts +17 -0
  42. package/dist/runtime/theme/accordion.mjs +24 -21
  43. package/dist/runtime/theme/alert.d.ts +125 -0
  44. package/dist/runtime/theme/alert.mjs +47 -0
  45. package/dist/runtime/theme/app.d.ts +5 -0
  46. package/dist/runtime/theme/app.mjs +7 -1
  47. package/dist/runtime/theme/badge.d.ts +82 -0
  48. package/dist/runtime/theme/badge.mjs +92 -0
  49. package/dist/runtime/theme/button-group.d.ts +66 -0
  50. package/dist/runtime/theme/button-group.mjs +42 -0
  51. package/dist/runtime/theme/button.d.ts +15 -1
  52. package/dist/runtime/theme/button.mjs +135 -119
  53. package/dist/runtime/theme/card.d.ts +21 -2
  54. package/dist/runtime/theme/card.mjs +12 -9
  55. package/dist/runtime/theme/carousel.d.ts +113 -0
  56. package/dist/runtime/theme/carousel.mjs +43 -0
  57. package/dist/runtime/theme/checkbox.d.ts +3 -0
  58. package/dist/runtime/theme/checkbox.mjs +47 -41
  59. package/dist/runtime/theme/chip.d.ts +67 -0
  60. package/dist/runtime/theme/chip.mjs +68 -0
  61. package/dist/runtime/theme/drawer.d.ts +38 -0
  62. package/dist/runtime/theme/drawer.mjs +69 -66
  63. package/dist/runtime/theme/index.d.ts +10 -2
  64. package/dist/runtime/theme/index.mjs +10 -2
  65. package/dist/runtime/theme/input.d.ts +41 -22
  66. package/dist/runtime/theme/input.mjs +139 -121
  67. package/dist/runtime/theme/link.d.ts +14 -1
  68. package/dist/runtime/theme/link.mjs +23 -20
  69. package/dist/runtime/theme/modal.d.ts +3 -0
  70. package/dist/runtime/theme/modal.mjs +53 -47
  71. package/dist/runtime/theme/pagination.d.ts +56 -0
  72. package/dist/runtime/theme/pagination.mjs +13 -0
  73. package/dist/runtime/theme/pinInput.d.ts +100 -0
  74. package/dist/runtime/theme/pinInput.mjs +111 -0
  75. package/dist/runtime/theme/popover.d.ts +11 -0
  76. package/dist/runtime/theme/popover.mjs +11 -8
  77. package/dist/runtime/theme/{radioGroup.d.ts → radio-group.d.ts} +3 -0
  78. package/dist/runtime/theme/radio-group.mjs +61 -0
  79. package/dist/runtime/theme/{scrollArea.d.ts → scroll-area.d.ts} +22 -0
  80. package/dist/runtime/theme/scroll-area.mjs +33 -0
  81. package/dist/runtime/theme/select.d.ts +16 -2
  82. package/dist/runtime/theme/select.mjs +160 -142
  83. package/dist/runtime/theme/slider.d.ts +76 -0
  84. package/dist/runtime/theme/slider.mjs +52 -0
  85. package/dist/runtime/theme/switch.d.ts +3 -0
  86. package/dist/runtime/theme/switch.mjs +69 -63
  87. package/dist/runtime/theme/tabs.d.ts +15 -2
  88. package/dist/runtime/theme/tabs.mjs +134 -112
  89. package/dist/runtime/theme/textarea.d.ts +8 -2
  90. package/dist/runtime/theme/textarea.mjs +105 -89
  91. package/dist/runtime/theme/toast.d.ts +44 -6
  92. package/dist/runtime/theme/toast.mjs +30 -22
  93. package/dist/runtime/theme/toaster.d.ts +51 -2
  94. package/dist/runtime/theme/toaster.mjs +88 -80
  95. package/dist/runtime/theme/tooltip.d.ts +13 -0
  96. package/dist/runtime/theme/tooltip.mjs +9 -6
  97. package/dist/runtime/types/components.d.ts +27 -20
  98. package/dist/runtime/types/components.mjs +27 -0
  99. package/dist/runtime/types/index.d.ts +1 -3
  100. package/dist/runtime/types/utils.d.ts +1 -1
  101. package/dist/runtime/utils/extend-theme.mjs +1 -1
  102. package/dist/runtime/utils/link.d.ts +1 -1
  103. package/dist/runtime/utils/styler.d.ts +2 -2
  104. package/dist/shared/ui.D4zm1r0C.mjs +4 -0
  105. package/dist/shared/ui.D4zm1r0C.mjs.map +1 -0
  106. package/dist/{unocss-preset.d.mts → unocss.d.mts} +4 -4
  107. package/dist/{unocss-preset.d.ts → unocss.d.ts} +4 -4
  108. package/dist/{unocss-preset.mjs → unocss.mjs} +58 -36
  109. package/dist/unocss.mjs.map +1 -0
  110. package/dist/unplugin.d.mts +26 -0
  111. package/dist/unplugin.d.ts +26 -0
  112. package/dist/unplugin.mjs +72 -0
  113. package/dist/unplugin.mjs.map +1 -0
  114. package/dist/vite.d.mts +10 -0
  115. package/dist/vite.d.ts +10 -0
  116. package/dist/vite.mjs +14 -0
  117. package/dist/vite.mjs.map +1 -0
  118. package/package.json +46 -26
  119. package/dist/resolver.d.mts +0 -13
  120. package/dist/resolver.d.ts +0 -13
  121. package/dist/resolver.mjs +0 -21
  122. package/dist/runtime/components/index.d.ts +0 -20
  123. package/dist/runtime/components/index.mjs +0 -20
  124. package/dist/runtime/composables/index.d.ts +0 -5
  125. package/dist/runtime/composables/index.mjs +0 -5
  126. package/dist/runtime/theme/radioGroup.mjs +0 -55
  127. package/dist/runtime/theme/scrollArea.mjs +0 -30
  128. package/dist/shared/ui.Cmq14xN9.mjs +0 -25
  129. /package/{LICENSE.md → LICENSE} +0 -0
@@ -0,0 +1,76 @@
1
+ declare const _default: {
2
+ base: undefined;
3
+ slots: {
4
+ root: string;
5
+ track: string[];
6
+ range: string;
7
+ thumb: string[];
8
+ };
9
+ variants: {
10
+ size: {
11
+ xs: {
12
+ root: string;
13
+ };
14
+ sm: {
15
+ root: string;
16
+ };
17
+ md: {
18
+ root: string;
19
+ };
20
+ lg: {
21
+ root: string;
22
+ };
23
+ xl: {
24
+ root: string;
25
+ };
26
+ };
27
+ orientation: {
28
+ horizontal: {
29
+ root: string;
30
+ range: string;
31
+ };
32
+ vertical: {
33
+ root: string;
34
+ range: string;
35
+ };
36
+ };
37
+ };
38
+ compoundVariants: import("@byyuurin/ui-kit/index").CVCompoundVariants<{
39
+ size: {
40
+ xs: {
41
+ root: string;
42
+ };
43
+ sm: {
44
+ root: string;
45
+ };
46
+ md: {
47
+ root: string;
48
+ };
49
+ lg: {
50
+ root: string;
51
+ };
52
+ xl: {
53
+ root: string;
54
+ };
55
+ };
56
+ orientation: {
57
+ horizontal: {
58
+ root: string;
59
+ range: string;
60
+ };
61
+ vertical: {
62
+ root: string;
63
+ range: string;
64
+ };
65
+ };
66
+ }, {
67
+ root: string;
68
+ track: string[];
69
+ range: string;
70
+ thumb: string[];
71
+ }, undefined>;
72
+ defaultVariants: {
73
+ size: "md";
74
+ };
75
+ };
76
+ export default _default;
@@ -0,0 +1,52 @@
1
+ import { ct } from "@byyuurin/ui-kit";
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ slots: {
6
+ root: "relative flex items-center select-none touch-none aria-disabled:opacity-50",
7
+ track: [
8
+ "relative bg-solid-ui-cb/10 overflow-hidden rounded-full flex-grow cursor-pointer",
9
+ "data-[disabled]:cursor-not-allowed",
10
+ "data-[orientation=horizontal]:h-0.6em data-[orientation=vertical]:w-0.6em"
11
+ ],
12
+ range: "absolute rounded-full bg-solid-ui-fill",
13
+ thumb: [
14
+ "size-1em rounded-full bg-solid-ui-c1 ring-0.2em cursor-pointer focus-visible:outline-0.2em focus-visible:outline-offset-0.2em",
15
+ "data-[disabled]:cursor-not-allowed",
16
+ "ring-ui-fill outline-none focus-visible:outline-ui-fill/50"
17
+ ]
18
+ },
19
+ variants: {
20
+ size: {
21
+ xs: {
22
+ root: "text-xs"
23
+ },
24
+ sm: {
25
+ root: "text-sm"
26
+ },
27
+ md: {
28
+ root: "text-base"
29
+ },
30
+ lg: {
31
+ root: "text-lg"
32
+ },
33
+ xl: {
34
+ root: "text-xl"
35
+ }
36
+ },
37
+ orientation: {
38
+ horizontal: {
39
+ root: "w-full",
40
+ range: "h-full"
41
+ },
42
+ vertical: {
43
+ root: "flex-col h-full",
44
+ range: "w-full"
45
+ }
46
+ }
47
+ },
48
+ defaultVariants: {
49
+ size: "md"
50
+ }
51
+ }
52
+ );
@@ -115,5 +115,8 @@ declare const _default: {
115
115
  label: string;
116
116
  description: string;
117
117
  }, undefined>;
118
+ defaultVariants: {
119
+ size: "md";
120
+ };
118
121
  };
119
122
  export default _default;
@@ -1,72 +1,78 @@
1
1
  import { ct } from "@byyuurin/ui-kit";
2
- export default ct({
3
- slots: {
4
- root: "relative flex items-start",
5
- base: [
6
- "inline-flex items-center shrink-0 rounded-ui-switch border-2 border-transparent transition-colors duration-200",
7
- "focus-visible:outline-2 focus-visible:outline-offset-2",
8
- "data-[state=unchecked]:bg-ui-cb/10 data-[state=checked]:bg-ui-fill/80 focus-visible:outline-ui-base",
9
- "w-2.7em"
10
- ],
11
- container: "flex items-center h-1.5em",
12
- thumb: [
13
- "group pointer-events-none rounded-ui-switch size-1.25em bg-ui-c1 shadow-lg ring-0 transition-transform duration-200 flex items-center justify-center",
14
- "data-[state=unchecked]:translate-x-0 data-[state=unchecked]:rtl:translate-x-0 data-[state=checked]:translate-x-1.25em data-[state=checked]:rtl:-translate-x-1.25em"
15
- ],
16
- icon: [
17
- "absolute shrink-0 opacity-0 size-10/12 transition-[color,opacity] duration-200",
18
- "group-data-[state=unchecked]:color-ui-cb/50 group-data-[state=checked]:color-ui-base"
19
- ],
20
- wrapper: "ms-2",
21
- label: "flex color-ui-cb/80",
22
- description: "color-ui-cb/60"
23
- },
24
- variants: {
25
- size: {
26
- xs: {
27
- root: "text-xs"
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ slots: {
6
+ root: "relative flex items-start",
7
+ base: [
8
+ "inline-flex items-center shrink-0 rounded-ui-switch border-2 border-transparent transition-colors duration-200",
9
+ "outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-cb/80",
10
+ "data-[state=unchecked]:bg-solid-ui-cb/10 data-[state=checked]:bg-solid-ui-fill/80",
11
+ "w-2.7em"
12
+ ],
13
+ container: "flex items-center h-1.5em",
14
+ thumb: [
15
+ "group pointer-events-none rounded-ui-switch size-1.25em bg-solid-ui-c1 shadow-lg ring-0 transition-transform duration-200 flex items-center justify-center",
16
+ "data-[state=unchecked]:translate-x-0 data-[state=unchecked]:rtl:translate-x-0 data-[state=checked]:translate-x-1.25em data-[state=checked]:rtl:-translate-x-1.25em"
17
+ ],
18
+ icon: [
19
+ "absolute shrink-0 opacity-0 size-10/12 transition-[color,opacity] duration-200",
20
+ "group-data-[state=unchecked]:color-ui-cb/50 group-data-[state=checked]:color-ui-base"
21
+ ],
22
+ wrapper: "ms-2",
23
+ label: "flex color-ui-cb/80",
24
+ description: "color-ui-cb/60"
25
+ },
26
+ variants: {
27
+ size: {
28
+ xs: {
29
+ root: "text-xs"
30
+ },
31
+ sm: {
32
+ root: "text-sm"
33
+ },
34
+ md: {
35
+ root: "text-base"
36
+ },
37
+ lg: {
38
+ root: "text-lg"
39
+ },
40
+ xl: {
41
+ root: "text-xl"
42
+ }
28
43
  },
29
- sm: {
30
- root: "text-sm"
44
+ checked: {
45
+ true: {
46
+ icon: "group-data-[state=checked]:opacity-100"
47
+ }
31
48
  },
32
- md: {
33
- root: "text-base"
49
+ unchecked: {
50
+ true: {
51
+ icon: "group-data-[state=unchecked]:opacity-100"
52
+ }
34
53
  },
35
- lg: {
36
- root: "text-lg"
54
+ loading: {
55
+ true: {
56
+ root: "opacity-50 after:content-empty after:absolute after:inset-0 after:cursor-not-allowed",
57
+ icon: "animate-spin"
58
+ }
37
59
  },
38
- xl: {
39
- root: "text-xl"
40
- }
41
- },
42
- checked: {
43
- true: {
44
- icon: "group-data-[state=checked]:opacity-100"
45
- }
46
- },
47
- unchecked: {
48
- true: {
49
- icon: "group-data-[state=unchecked]:opacity-100"
50
- }
51
- },
52
- loading: {
53
- true: {
54
- root: "opacity-50 after:content-empty after:absolute after:inset-0 after:cursor-not-allowed",
55
- icon: "animate-spin"
56
- }
57
- },
58
- required: {
59
- true: {
60
- label: `after:content-['*'] after:ms-0.5`
61
- }
62
- },
63
- disabled: {
64
- true: {
65
- root: "opacity-50 after:content-empty after:absolute after:inset-0 after:cursor-not-allowed"
60
+ required: {
61
+ true: {
62
+ label: `after:content-['*'] after:ms-0.5`
63
+ }
66
64
  },
67
- false: {
68
- label: "cursor-pointer"
65
+ disabled: {
66
+ true: {
67
+ root: "opacity-50 after:content-empty after:absolute after:inset-0 after:cursor-not-allowed"
68
+ },
69
+ false: {
70
+ label: "cursor-pointer"
71
+ }
69
72
  }
73
+ },
74
+ defaultVariants: {
75
+ size: "md"
70
76
  }
71
77
  }
72
- });
78
+ );
@@ -16,11 +16,21 @@ declare const _default: {
16
16
  trigger: string[];
17
17
  indicator: string;
18
18
  };
19
+ outline: {
20
+ list: string;
21
+ trigger: string[];
22
+ indicator: string;
23
+ };
19
24
  soft: {
20
25
  list: string;
21
26
  trigger: string[];
22
27
  indicator: string;
23
28
  };
29
+ 'soft-outline': {
30
+ list: string;
31
+ trigger: string[];
32
+ indicator: string;
33
+ };
24
34
  link: {
25
35
  list: string;
26
36
  indicator: string;
@@ -83,7 +93,7 @@ declare const _default: {
83
93
  variant?: undefined;
84
94
  } | {
85
95
  orientation: "horizontal";
86
- variant: ("solid" | "soft")[];
96
+ variant: ("solid" | "outline" | "soft" | "soft-outline")[];
87
97
  class: {
88
98
  indicator: string;
89
99
  trigger?: undefined;
@@ -101,7 +111,7 @@ declare const _default: {
101
111
  size?: undefined;
102
112
  } | {
103
113
  orientation: "vertical";
104
- variant: ("solid" | "soft")[];
114
+ variant: ("solid" | "outline" | "soft" | "soft-outline")[];
105
115
  class: {
106
116
  indicator: string;
107
117
  list: string;
@@ -118,5 +128,8 @@ declare const _default: {
118
128
  };
119
129
  size?: undefined;
120
130
  })[];
131
+ defaultVariants: {
132
+ size: "md";
133
+ };
121
134
  };
122
135
  export default _default;
@@ -1,124 +1,146 @@
1
1
  import { ct } from "@byyuurin/ui-kit";
2
- export default ct({
3
- slots: {
4
- root: "flex items-center gap-2",
5
- list: "relative flex p-1 group",
6
- indicator: "absolute transition-all duration-200",
7
- trigger: [
8
- "group relative inline-flex items-center gap-0.25em shrink-0 min-w-0 font-medium rounded-ui-tabs transition-colors",
9
- "focus:outline-hidden",
10
- "disabled:cursor-not-allowed disabled:opacity-50"
11
- ],
12
- content: "w-full focus:outline-none",
13
- prefixIcon: "shrink-0 size-1.5em",
14
- label: "truncate"
15
- },
16
- variants: {
17
- variant: {
18
- solid: {
19
- list: "bg-ui-cb/5 rounded-ui-tabs",
20
- trigger: [
21
- "data-[state=active]:color-ui-c1 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-fill/80",
22
- "data-[state=inactive]:color-ui-cb/80 hover:data-[state=inactive]:not-disabled:color-ui-cb"
23
- ],
24
- indicator: "bg-ui-fill/90 rounded-ui-tabs shadow-xs"
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ slots: {
6
+ root: "flex items-center gap-2",
7
+ list: "relative flex p-1 group",
8
+ indicator: "absolute transition-all duration-200",
9
+ trigger: [
10
+ "group relative inline-flex items-center gap-0.25em shrink-0 min-w-0 font-medium rounded-ui-tabs transition-colors",
11
+ "outline-none",
12
+ "disabled:cursor-not-allowed disabled:opacity-50"
13
+ ],
14
+ content: "w-full focus:outline-none",
15
+ prefixIcon: "shrink-0 size-1.5em",
16
+ label: "truncate"
17
+ },
18
+ variants: {
19
+ variant: {
20
+ "solid": {
21
+ list: "bg-solid-ui-cb/5 rounded-ui-tabs",
22
+ trigger: [
23
+ "data-[state=active]:color-ui-c1 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-cb/80",
24
+ "data-[state=inactive]:color-ui-cb/80 hover:data-[state=inactive]:not-disabled:color-ui-cb"
25
+ ],
26
+ indicator: "bg-solid-ui-fill/90 rounded-ui-tabs shadow-xs"
27
+ },
28
+ "outline": {
29
+ list: "bg-solid-ui-cb/5 rounded-ui-tabs",
30
+ trigger: [
31
+ "data-[state=active]:color-ui-content focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-content/80",
32
+ "data-[state=inactive]:color-ui-cb/80 hover:data-[state=inactive]:not-disabled:color-ui-cb"
33
+ ],
34
+ indicator: "rounded-ui-tabs ring ring-inset ring-ui-content"
35
+ },
36
+ "soft": {
37
+ list: "bg-solid-ui-cb/5 rounded-ui-tabs",
38
+ trigger: [
39
+ "data-[state=active]:color-ui-fill focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-fill",
40
+ "data-[state=inactive]:color-ui-cb/80 hover:data-[state=inactive]:not-disabled:color-ui-cb"
41
+ ],
42
+ indicator: "bg-solid-ui-fill/10 rounded-ui-tabs shadow-xs"
43
+ },
44
+ "soft-outline": {
45
+ list: "bg-solid-ui-cb/5 rounded-ui-tabs",
46
+ trigger: [
47
+ "data-[state=active]:color-ui-fill focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-fill",
48
+ "data-[state=inactive]:color-ui-cb/80 hover:data-[state=inactive]:not-disabled:color-ui-cb"
49
+ ],
50
+ indicator: "bg-solid-ui-fill/10 rounded-ui-tabs shadow-xs ring ring-inset ring-ui-content/40"
51
+ },
52
+ "link": {
53
+ list: "bg-solid-ui-cb/5 border-ui-cb/10",
54
+ indicator: "bg-solid-ui-fill rounded-full",
55
+ trigger: [
56
+ "data-[state=active]:color-ui-base focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ui-base",
57
+ "data-[state=inactive]:color-ui-cb/80 hover:data-[state=inactive]:not-disabled:color-ui-cb"
58
+ ]
59
+ }
25
60
  },
26
- soft: {
27
- list: "bg-ui-c1 rounded-ui-tabs",
28
- trigger: [
29
- "data-[state=active]:color-ui-fill focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-fill",
30
- "data-[state=inactive]:color-ui-cb/80 hover:data-[state=inactive]:not-disabled:color-ui-cb"
31
- ],
32
- indicator: "bg-ui-fill/10 rounded-ui-tabs shadow-xs"
61
+ orientation: {
62
+ horizontal: {
63
+ root: "flex-col",
64
+ list: "w-full",
65
+ indicator: "left-0 w-[var(--reka-tabs-indicator-size)] translate-x-[var(--reka-tabs-indicator-position)]",
66
+ trigger: "justify-center"
67
+ },
68
+ vertical: {
69
+ list: "flex-col",
70
+ indicator: "top-0 h-[var(--reka-tabs-indicator-size)] translate-y-[var(--reka-tabs-indicator-position)]",
71
+ trigger: "flex-1 w-full"
72
+ }
33
73
  },
34
- link: {
35
- list: "border-ui-cb/10",
36
- indicator: "bg-ui-fill rounded-full",
37
- trigger: [
38
- "data-[state=active]:color-ui-base focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ui-base",
39
- "data-[state=inactive]:color-ui-cb/80 hover:data-[state=inactive]:not-disabled:color-ui-cb"
40
- ]
41
- }
42
- },
43
- orientation: {
44
- horizontal: {
45
- root: "flex-col",
46
- list: "w-full",
47
- indicator: "left-0 w-[var(--reka-tabs-indicator-size)] translate-x-[var(--reka-tabs-indicator-position)]",
48
- trigger: "justify-center"
74
+ size: {
75
+ xs: {
76
+ root: "text-sm"
77
+ },
78
+ sm: {
79
+ root: "tex-tsm"
80
+ },
81
+ md: {
82
+ root: "text-base"
83
+ },
84
+ lg: {
85
+ root: "text-lg"
86
+ },
87
+ xl: {
88
+ root: "text-xl"
89
+ }
49
90
  },
50
- vertical: {
51
- list: "flex-col",
52
- indicator: "top-0 h-[var(--reka-tabs-indicator-size)] translate-y-[var(--reka-tabs-indicator-position)]",
53
- trigger: "flex-1 w-full"
91
+ full: {
92
+ true: {
93
+ trigger: "w-full flex-1"
94
+ }
54
95
  }
55
96
  },
56
- size: {
57
- xs: {
58
- root: "text-sm"
97
+ compoundVariants: [
98
+ {
99
+ size: ["xs", "sm", "md"],
100
+ class: {
101
+ trigger: "p-1.5 px-2.5"
102
+ }
59
103
  },
60
- sm: {
61
- root: "tex-tsm"
104
+ {
105
+ size: ["lg", "xl"],
106
+ class: {
107
+ trigger: "p-2.5 px-4.5"
108
+ }
62
109
  },
63
- md: {
64
- root: "text-base"
110
+ {
111
+ orientation: "horizontal",
112
+ variant: ["solid", "soft", "outline", "soft-outline"],
113
+ class: {
114
+ indicator: "inset-y-1"
115
+ }
65
116
  },
66
- lg: {
67
- root: "text-lg"
117
+ {
118
+ orientation: "horizontal",
119
+ variant: "link",
120
+ class: {
121
+ list: "border-b -mb-px",
122
+ indicator: "-bottom-px h-px"
123
+ }
68
124
  },
69
- xl: {
70
- root: "text-xl"
71
- }
72
- },
73
- full: {
74
- true: {
75
- trigger: "w-full flex-1"
76
- }
77
- }
78
- },
79
- compoundVariants: [
80
- {
81
- size: ["xs", "sm", "md"],
82
- class: {
83
- trigger: "p-1.5 px-2.5"
84
- }
85
- },
86
- {
87
- size: ["lg", "xl"],
88
- class: {
89
- trigger: "p-2.5 px-4.5"
90
- }
91
- },
92
- {
93
- orientation: "horizontal",
94
- variant: ["solid", "soft"],
95
- class: {
96
- indicator: "inset-y-1"
97
- }
98
- },
99
- {
100
- orientation: "horizontal",
101
- variant: "link",
102
- class: {
103
- list: "border-b -mb-px",
104
- indicator: "-bottom-px h-px"
105
- }
106
- },
107
- {
108
- orientation: "vertical",
109
- variant: ["solid", "soft"],
110
- class: {
111
- indicator: "inset-x-1",
112
- list: "items-center rounded-[calc(var(--ui-radius-tabs)*0.66)]"
113
- }
114
- },
115
- {
116
- orientation: "vertical",
117
- variant: "link",
118
- class: {
119
- list: "border-s -ms-px",
120
- indicator: "-start-px w-px"
125
+ {
126
+ orientation: "vertical",
127
+ variant: ["solid", "soft", "outline", "soft-outline"],
128
+ class: {
129
+ indicator: "inset-x-1",
130
+ list: "items-center rounded-[calc(var(--ui-radius-tabs)*0.66)]"
131
+ }
132
+ },
133
+ {
134
+ orientation: "vertical",
135
+ variant: "link",
136
+ class: {
137
+ list: "border-s -ms-px",
138
+ indicator: "-start-px w-px"
139
+ }
121
140
  }
141
+ ],
142
+ defaultVariants: {
143
+ size: "md"
122
144
  }
123
- ]
124
- });
145
+ }
146
+ );
@@ -29,6 +29,9 @@ declare const _default: {
29
29
  soft: {
30
30
  root: string[];
31
31
  };
32
+ 'soft-outline': {
33
+ root: string[];
34
+ };
32
35
  ghost: {
33
36
  root: string[];
34
37
  };
@@ -50,7 +53,7 @@ declare const _default: {
50
53
  highlight: false;
51
54
  underline: true;
52
55
  class: {
53
- root: string;
56
+ root: string[];
54
57
  };
55
58
  size?: undefined;
56
59
  } | {
@@ -70,7 +73,7 @@ declare const _default: {
70
73
  highlight?: undefined;
71
74
  underline?: undefined;
72
75
  } | {
73
- variant: ("soft" | "ghost" | "none")[];
76
+ variant: ("soft" | "soft-outline" | "ghost" | "none")[];
74
77
  highlight: true;
75
78
  class: {
76
79
  root: string;
@@ -86,5 +89,8 @@ declare const _default: {
86
89
  underline?: undefined;
87
90
  size?: undefined;
88
91
  })[];
92
+ defaultVariants: {
93
+ size: "md";
94
+ };
89
95
  };
90
96
  export default _default;