@byyuurin/ui 0.0.5 → 0.0.7

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 (160) hide show
  1. package/README.md +15 -11
  2. package/dist/module.cjs +5 -0
  3. package/dist/module.json +12 -0
  4. package/dist/{nuxt.mjs → module.mjs} +7 -6
  5. package/dist/module.mjs.map +1 -0
  6. package/dist/runtime/components/Accordion.vue +20 -31
  7. package/dist/runtime/components/Alert.vue +1 -1
  8. package/dist/runtime/components/App.vue +1 -1
  9. package/dist/runtime/components/Badge.vue +0 -1
  10. package/dist/runtime/components/Button.vue +14 -12
  11. package/dist/runtime/components/ButtonGroup.vue +47 -0
  12. package/dist/runtime/components/Card.vue +9 -6
  13. package/dist/runtime/components/Carousel.vue +310 -0
  14. package/dist/runtime/components/Checkbox.vue +3 -4
  15. package/dist/runtime/components/Chip.vue +9 -4
  16. package/dist/runtime/components/Collapsible.vue +56 -0
  17. package/dist/runtime/components/Drawer.vue +4 -2
  18. package/dist/runtime/components/Input.vue +12 -8
  19. package/dist/runtime/components/InputNumber.vue +167 -0
  20. package/dist/runtime/components/Link.vue +301 -72
  21. package/dist/runtime/components/LinkBase.vue +88 -0
  22. package/dist/runtime/components/Modal.vue +2 -4
  23. package/dist/runtime/components/Pagination.vue +167 -0
  24. package/dist/runtime/components/PinInput.vue +0 -1
  25. package/dist/runtime/components/RadioGroup.vue +0 -1
  26. package/dist/runtime/components/ScrollArea.vue +1 -1
  27. package/dist/runtime/components/Select.vue +9 -5
  28. package/dist/runtime/components/Separator.vue +63 -0
  29. package/dist/runtime/components/Slider.vue +0 -1
  30. package/dist/runtime/components/Switch.vue +4 -6
  31. package/dist/runtime/components/Table.vue +292 -0
  32. package/dist/runtime/components/Tabs.vue +17 -18
  33. package/dist/runtime/components/Textarea.vue +0 -1
  34. package/dist/runtime/components/Toast.vue +21 -10
  35. package/dist/runtime/components/Toaster.vue +4 -39
  36. package/dist/runtime/composables/useButtonGroup.d.ts +13 -0
  37. package/dist/runtime/composables/useButtonGroup.js +14 -0
  38. package/dist/runtime/composables/{useComponentIcons.mjs → useComponentIcons.js} +1 -1
  39. package/dist/runtime/composables/useModal.d.ts +1 -1
  40. package/dist/runtime/composables/{useModal.mjs → useModal.js} +1 -1
  41. package/dist/runtime/composables/useTheme.d.ts +4 -4
  42. package/dist/runtime/composables/{useTheme.mjs → useTheme.js} +4 -4
  43. package/dist/runtime/composables/useToast.d.ts +4 -4
  44. package/dist/runtime/composables/{useToast.mjs → useToast.js} +19 -6
  45. package/dist/runtime/index.d.ts +34 -0
  46. package/dist/runtime/index.js +34 -0
  47. package/dist/runtime/theme/accordion.d.ts +22 -5
  48. package/dist/runtime/theme/{accordion.mjs → accordion.js} +2 -2
  49. package/dist/runtime/theme/alert.d.ts +41 -1
  50. package/dist/runtime/theme/{alert.mjs → alert.js} +4 -4
  51. package/dist/runtime/theme/app.d.ts +8 -0
  52. package/dist/runtime/theme/app.js +18 -0
  53. package/dist/runtime/theme/badge.d.ts +48 -21
  54. package/dist/runtime/theme/{badge.mjs → badge.js} +5 -2
  55. package/dist/runtime/theme/button-group.d.ts +66 -0
  56. package/dist/runtime/theme/button-group.js +42 -0
  57. package/dist/runtime/theme/button.d.ts +68 -111
  58. package/dist/runtime/theme/button.js +164 -0
  59. package/dist/runtime/theme/card.d.ts +38 -19
  60. package/dist/runtime/theme/card.js +37 -0
  61. package/dist/runtime/theme/carousel.d.ts +113 -0
  62. package/dist/runtime/theme/carousel.js +43 -0
  63. package/dist/runtime/theme/checkbox.d.ts +4 -1
  64. package/dist/runtime/theme/{checkbox.mjs → checkbox.js} +7 -4
  65. package/dist/runtime/theme/chip.d.ts +56 -12
  66. package/dist/runtime/theme/{chip.mjs → chip.js} +10 -7
  67. package/dist/runtime/theme/collapsible.d.ts +38 -0
  68. package/dist/runtime/theme/collapsible.js +10 -0
  69. package/dist/runtime/theme/drawer.d.ts +71 -33
  70. package/dist/runtime/theme/{drawer.mjs → drawer.js} +33 -22
  71. package/dist/runtime/theme/index.d.ts +31 -24
  72. package/dist/runtime/theme/index.js +31 -0
  73. package/dist/runtime/theme/input-number.d.ts +135 -0
  74. package/dist/runtime/theme/input-number.js +92 -0
  75. package/dist/runtime/theme/input.d.ts +94 -111
  76. package/dist/runtime/theme/input.js +151 -0
  77. package/dist/runtime/theme/link.d.ts +14 -1
  78. package/dist/runtime/theme/{link.mjs → link.js} +1 -1
  79. package/dist/runtime/theme/modal.d.ts +33 -7
  80. package/dist/runtime/theme/{modal.mjs → modal.js} +8 -10
  81. package/dist/runtime/theme/pagination.d.ts +56 -0
  82. package/dist/runtime/theme/pagination.js +13 -0
  83. package/dist/runtime/theme/pinInput.d.ts +45 -42
  84. package/dist/runtime/theme/{pinInput.mjs → pinInput.js} +14 -11
  85. package/dist/runtime/theme/popover.d.ts +16 -5
  86. package/dist/runtime/theme/{radioGroup.d.ts → radio-group.d.ts} +4 -1
  87. package/dist/runtime/theme/{radioGroup.mjs → radio-group.js} +3 -0
  88. package/dist/runtime/theme/scroll-area.d.ts +73 -0
  89. package/dist/runtime/theme/{scrollArea.mjs → scroll-area.js} +2 -2
  90. package/dist/runtime/theme/select.d.ts +95 -99
  91. package/dist/runtime/theme/{select.mjs → select.js} +22 -17
  92. package/dist/runtime/theme/separator.d.ts +95 -0
  93. package/dist/runtime/theme/separator.js +53 -0
  94. package/dist/runtime/theme/slider.d.ts +4 -1
  95. package/dist/runtime/theme/{slider.mjs → slider.js} +6 -3
  96. package/dist/runtime/theme/switch.d.ts +4 -1
  97. package/dist/runtime/theme/{switch.mjs → switch.js} +5 -2
  98. package/dist/runtime/theme/table.d.ts +89 -0
  99. package/dist/runtime/theme/table.js +35 -0
  100. package/dist/runtime/theme/tabs.d.ts +72 -52
  101. package/dist/runtime/theme/{tabs.mjs → tabs.js} +15 -12
  102. package/dist/runtime/theme/textarea.d.ts +46 -37
  103. package/dist/runtime/theme/{textarea.mjs → textarea.js} +14 -11
  104. package/dist/runtime/theme/toast.d.ts +45 -7
  105. package/dist/runtime/theme/{toast.mjs → toast.js} +12 -7
  106. package/dist/runtime/theme/toaster.d.ts +89 -25
  107. package/dist/runtime/theme/{toaster.mjs → toaster.js} +5 -0
  108. package/dist/runtime/theme/tooltip.d.ts +20 -7
  109. package/dist/runtime/theme/{tooltip.mjs → tooltip.js} +2 -2
  110. package/dist/runtime/types/components.d.ts +7 -1
  111. package/dist/runtime/types/index.d.ts +4 -4
  112. package/dist/runtime/types/index.js +2 -0
  113. package/dist/runtime/types/utils.d.ts +1 -1
  114. package/dist/runtime/utils/index.d.ts +3 -3
  115. package/dist/runtime/utils/{index.mjs → index.js} +3 -3
  116. package/dist/runtime/utils/link.d.ts +22 -7
  117. package/dist/runtime/utils/link.js +30 -0
  118. package/dist/runtime/utils/styler.d.ts +2 -2
  119. package/dist/runtime/vue/stubs.d.ts +9 -0
  120. package/dist/runtime/vue/stubs.js +16 -0
  121. package/dist/shared/ui.d1728164.mjs +4 -0
  122. package/dist/shared/ui.d1728164.mjs.map +1 -0
  123. package/dist/types.d.mts +1 -0
  124. package/dist/types.d.ts +1 -0
  125. package/dist/{unocss-preset.d.ts → unocss.d.mts} +10 -15
  126. package/dist/{unocss-preset.d.mts → unocss.d.ts} +10 -15
  127. package/dist/{unocss-preset.mjs → unocss.mjs} +53 -21
  128. package/dist/unocss.mjs.map +1 -0
  129. package/dist/unplugin.d.mts +4 -3
  130. package/dist/unplugin.d.ts +4 -3
  131. package/dist/unplugin.mjs +49 -5
  132. package/dist/unplugin.mjs.map +1 -1
  133. package/dist/vite.d.mts +1 -1
  134. package/dist/vite.d.ts +1 -1
  135. package/dist/vite.mjs +7 -5
  136. package/dist/vite.mjs.map +1 -1
  137. package/package.json +59 -45
  138. package/dist/index.d.ts +0 -26
  139. package/dist/index.mjs +0 -26
  140. package/dist/nuxt.mjs.map +0 -1
  141. package/dist/runtime/theme/app.mjs +0 -10
  142. package/dist/runtime/theme/button.mjs +0 -143
  143. package/dist/runtime/theme/card.mjs +0 -14
  144. package/dist/runtime/theme/index.mjs +0 -24
  145. package/dist/runtime/theme/input.mjs +0 -146
  146. package/dist/runtime/theme/scrollArea.d.ts +0 -51
  147. package/dist/runtime/types/index.mjs +0 -2
  148. package/dist/runtime/utils/link.mjs +0 -4
  149. package/dist/shared/ui.CzDyI29e.mjs +0 -8
  150. package/dist/shared/ui.CzDyI29e.mjs.map +0 -1
  151. package/dist/unocss-preset.mjs.map +0 -1
  152. /package/{LICENSE.md → LICENSE} +0 -0
  153. /package/dist/{nuxt.d.mts → module.d.mts} +0 -0
  154. /package/dist/{nuxt.d.ts → module.d.ts} +0 -0
  155. /package/dist/runtime/composables/{defineInjection.mjs → defineInjection.js} +0 -0
  156. /package/dist/runtime/theme/{popover.mjs → popover.js} +0 -0
  157. /package/dist/runtime/types/{components.mjs → components.js} +0 -0
  158. /package/dist/runtime/types/{utils.mjs → utils.js} +0 -0
  159. /package/dist/runtime/utils/{extend-theme.mjs → extend-theme.js} +0 -0
  160. /package/dist/runtime/utils/{styler.mjs → styler.js} +0 -0
@@ -1,29 +1,30 @@
1
1
  import { ct } from "@byyuurin/ui-kit";
2
+ import { buttonGroupVariant } from "./button-group.js";
2
3
  export default ct(
3
4
  /* @unocss-include */
4
5
  {
5
6
  slots: {
6
7
  base: [
7
- "bg-ui-c1 relative group rounded-ui-base inline-flex items-center gap-x-2 focus:outline-none transition-colors",
8
+ "relative group rounded-ui-base inline-flex items-center gap-x-2 focus:outline-none transition-colors",
8
9
  "disabled:cursor-not-allowed disabled:opacity-50"
9
10
  ],
10
11
  value: "me-auto truncate pointer-events-none",
11
12
  placeholder: "me-auto truncate color-ui-cb/50",
12
- arrow: "fill-ui-c1 stroke-ui-cb/10",
13
+ arrow: "fill-ui-cx stroke-ui-cb/20",
13
14
  content: [
14
- "max-h-60 w-[var(--reka-popper-anchor-width)] bg-ui-c1 shadow-lg rounded-[calc(var(--ui-radius-tabs)*0.66)] ring ring-ui-cb/10 overflow-hidden pointer-events-auto",
15
+ "max-h-60 w-[var(--reka-popper-anchor-width)] bg-ui-cx shadow-lg rounded-[calc(var(--ui-radius-tabs)*0.66)] ring ring-ui-cb/20 overflow-hidden pointer-events-auto",
15
16
  "data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]"
16
17
  ],
17
18
  viewport: "divide-y divide-ui-cb/10 scroll-py-1",
18
19
  group: "p-1 isolate",
19
20
  empty: "py-2 text-center text-sm color-ui-cb/50",
20
21
  label: "font-semibold color-ui-cb cursor-pointer",
21
- separator: "-mx-1 my-1 h-px bg-ui-cb/10",
22
+ separator: "-mx-1 my-1 h-px bg-soft-ui-cb/10",
22
23
  item: [
23
24
  "group relative w-full flex gap-2 items-center select-none outline-none color-ui-cb/50 transition-colors cursor-pointer",
24
25
  "aria-disabled:cursor-not-allowed aria-disabled:opacity-50",
25
26
  "before:content-empty before:absolute before:z-[-1] before:inset-px before:rounded-ui-base before:transition-colors",
26
- "data-[highlighted]:color-ui-cb data-[highlighted]:before:bg-ui-cb/3",
27
+ "data-[highlighted]:color-ui-cb data-[highlighted]:before:bg-soft-ui-cb/3",
27
28
  "data-[state=checked]:color-ui-base"
28
29
  ],
29
30
  itemPrefixIcon: "shrink-0 color-ui-cb/80 group-data-[highlighted]:color-ui-cb/80 transition-colors",
@@ -36,32 +37,33 @@ export default ct(
36
37
  suffixIcon: "shrink-0 size-1.25em"
37
38
  },
38
39
  variants: {
40
+ ...buttonGroupVariant,
39
41
  variant: {
40
42
  "outline": {
41
43
  base: [
42
- "color-ui-cb/80 bg-ui-c1 ring ring-inset ring-ui-cb/50",
44
+ "color-ui-cb/80 bg-ui-cx ring ring-inset ring-ui-cb/30 data-[state=open]:ring-2 data-[state=open]:ring-ui-cb/50",
43
45
  "focus-within:ring-2 focus-within:ring-ui-cb/50",
44
46
  "disabled:ring-ui-cb/80 hover:disabled:ring-ui-cb/80"
45
47
  ]
46
48
  },
47
49
  "soft": {
48
50
  base: [
49
- "color-ui-cb/80 bg-ui-cb/4",
50
- "hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85",
51
- "disabled:color-ui-content/80 disabled:bg-ui-fill/5 hover:disabled:color-ui-content/80 hover:disabled:bg-ui-fill/5"
51
+ "color-ui-cb/80 bg-soft-ui-cb/5 data-[state=open]:bg-soft-ui-cb/5",
52
+ "hover:bg-soft-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-soft-ui-cb/8 focus-within:color-ui-cb/85",
53
+ "disabled:color-ui-content/80 disabled:bg-soft-ui-fill/5 hover:disabled:color-ui-content/80 hover:disabled:bg-soft-ui-fill/5"
52
54
  ]
53
55
  },
54
56
  "soft-outline": {
55
57
  base: [
56
- "color-ui-cb/80 bg-ui-cb/4 ring ring-inset ring-ui-cb/10",
57
- "hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85",
58
- "disabled:color-ui-content/80 disabled:bg-ui-fill/5 hover:disabled:color-ui-content/80 hover:disabled:bg-ui-fill/5"
58
+ "color-ui-cb/80 bg-soft-ui-cb/5 ring ring-inset ring-ui-cb/10 data-[state=open]:bg-soft-ui-cb/5 data-[state=open]:ring-ui-cb/25",
59
+ "hover:bg-soft-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-soft-ui-cb/8 focus-within:color-ui-cb/85",
60
+ "disabled:color-ui-content/80 disabled:bg-soft-ui-fill/5 hover:disabled:color-ui-content/80 hover:disabled:bg-soft-ui-fill/5"
59
61
  ]
60
62
  },
61
63
  "ghost": {
62
64
  base: [
63
- "color-ui-cb/80 bg-transparent",
64
- "hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85",
65
+ "color-ui-cb/80 bg-transparent data-[state=open]:bg-soft-ui-cb/8",
66
+ "hover:bg-soft-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-soft-ui-cb/8 focus-within:color-ui-cb/85",
65
67
  "disabled:color-ui-fill/80 disabled:bg-transparent hover:disabled:color-ui-fill/80 hover:disabled:bg-transparent"
66
68
  ]
67
69
  },
@@ -114,8 +116,8 @@ export default ct(
114
116
  underline: true,
115
117
  class: {
116
118
  base: [
117
- "relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-ui-cb/40",
118
- "data-[state=open]:after:h-2px data-[state=open]:after:bg-ui-fill/60"
119
+ "relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-soft-ui-cb/40",
120
+ "data-[state=open]:after:h-2px data-[state=open]:after:bg-soft-ui-fill/60"
119
121
  ]
120
122
  }
121
123
  },
@@ -162,6 +164,9 @@ export default ct(
162
164
  suffixIcon: "animate-spin"
163
165
  }
164
166
  }
165
- ]
167
+ ],
168
+ defaultVariants: {
169
+ size: "md"
170
+ }
166
171
  }
167
172
  );
@@ -0,0 +1,95 @@
1
+ declare const _default: {
2
+ base: undefined;
3
+ slots: {
4
+ root: string;
5
+ line: string;
6
+ container: string;
7
+ icon: string;
8
+ label: string;
9
+ };
10
+ variants: {
11
+ orientation: {
12
+ horizontal: {
13
+ root: string;
14
+ line: string;
15
+ container: string;
16
+ };
17
+ vertical: {
18
+ root: string;
19
+ line: string;
20
+ container: string;
21
+ };
22
+ };
23
+ start: {
24
+ true: {
25
+ line: string;
26
+ };
27
+ };
28
+ end: {
29
+ true: {
30
+ line: string;
31
+ };
32
+ };
33
+ };
34
+ compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
35
+ orientation: {
36
+ horizontal: {
37
+ root: string;
38
+ line: string;
39
+ container: string;
40
+ };
41
+ vertical: {
42
+ root: string;
43
+ line: string;
44
+ container: string;
45
+ };
46
+ };
47
+ start: {
48
+ true: {
49
+ line: string;
50
+ };
51
+ };
52
+ end: {
53
+ true: {
54
+ line: string;
55
+ };
56
+ };
57
+ }, {
58
+ root: string;
59
+ line: string;
60
+ container: string;
61
+ icon: string;
62
+ label: string;
63
+ }, undefined>;
64
+ defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
65
+ orientation: {
66
+ horizontal: {
67
+ root: string;
68
+ line: string;
69
+ container: string;
70
+ };
71
+ vertical: {
72
+ root: string;
73
+ line: string;
74
+ container: string;
75
+ };
76
+ };
77
+ start: {
78
+ true: {
79
+ line: string;
80
+ };
81
+ };
82
+ end: {
83
+ true: {
84
+ line: string;
85
+ };
86
+ };
87
+ }, {
88
+ root: string;
89
+ line: string;
90
+ container: string;
91
+ icon: string;
92
+ label: string;
93
+ }>;
94
+ };
95
+ export default _default;
@@ -0,0 +1,53 @@
1
+ import { ct } from "@byyuurin/ui-kit";
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ slots: {
6
+ root: "flex items-center justify-center text-center",
7
+ line: "border-solid border-ui-fill/20",
8
+ container: "color-ui-cb/80 flex",
9
+ icon: "shrink-0 size-5",
10
+ label: ""
11
+ },
12
+ variants: {
13
+ orientation: {
14
+ horizontal: {
15
+ root: "w-full flex-row",
16
+ line: "min-w-3 w-full border-t",
17
+ container: "px-3 whitespace-nowrap"
18
+ },
19
+ vertical: {
20
+ root: "h-full flex-col",
21
+ line: "min-h-3 h-full border-s",
22
+ container: "py-2"
23
+ }
24
+ },
25
+ start: {
26
+ true: {
27
+ line: "w-auto flex-grow"
28
+ }
29
+ },
30
+ end: {
31
+ true: {
32
+ line: "w-auto flex-grow"
33
+ }
34
+ }
35
+ },
36
+ compoundVariants: [
37
+ {
38
+ orientation: "vertical",
39
+ start: true,
40
+ class: {
41
+ line: "h-auto"
42
+ }
43
+ },
44
+ {
45
+ orientation: "vertical",
46
+ end: true,
47
+ class: {
48
+ line: "h-auto"
49
+ }
50
+ }
51
+ ]
52
+ }
53
+ );
@@ -35,7 +35,7 @@ declare const _default: {
35
35
  };
36
36
  };
37
37
  };
38
- compoundVariants: import("@byyuurin/ui-kit/index").CVCompoundVariants<{
38
+ compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
39
39
  size: {
40
40
  xs: {
41
41
  root: string;
@@ -69,5 +69,8 @@ declare const _default: {
69
69
  range: string;
70
70
  thumb: string[];
71
71
  }, undefined>;
72
+ defaultVariants: {
73
+ size: "md";
74
+ };
72
75
  };
73
76
  export default _default;
@@ -5,13 +5,13 @@ export default ct(
5
5
  slots: {
6
6
  root: "relative flex items-center select-none touch-none aria-disabled:opacity-50",
7
7
  track: [
8
- "relative bg-ui-cb/10 overflow-hidden rounded-full flex-grow cursor-pointer",
8
+ "relative bg-soft-ui-cb/10 overflow-hidden rounded-full flex-grow cursor-pointer",
9
9
  "data-[disabled]:cursor-not-allowed",
10
10
  "data-[orientation=horizontal]:h-0.6em data-[orientation=vertical]:w-0.6em"
11
11
  ],
12
- range: "absolute rounded-full bg-ui-fill",
12
+ range: "absolute rounded-full bg-soft-ui-fill",
13
13
  thumb: [
14
- "size-1em rounded-full bg-ui-c1 ring-0.2em cursor-pointer focus-visible:outline-0.2em focus-visible:outline-offset-0.2em",
14
+ "size-1em rounded-full bg-ui-cx ring-0.2em cursor-pointer focus-visible:outline-0.2em focus-visible:outline-offset-0.2em",
15
15
  "data-[disabled]:cursor-not-allowed",
16
16
  "ring-ui-fill outline-none focus-visible:outline-ui-fill/50"
17
17
  ]
@@ -44,6 +44,9 @@ export default ct(
44
44
  range: "w-full"
45
45
  }
46
46
  }
47
+ },
48
+ defaultVariants: {
49
+ size: "md"
47
50
  }
48
51
  }
49
52
  );
@@ -58,7 +58,7 @@ declare const _default: {
58
58
  };
59
59
  };
60
60
  };
61
- compoundVariants: import("@byyuurin/ui-kit/index").CVCompoundVariants<{
61
+ compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
62
62
  size: {
63
63
  xs: {
64
64
  root: string;
@@ -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;
@@ -7,12 +7,12 @@ export default ct(
7
7
  base: [
8
8
  "inline-flex items-center shrink-0 rounded-ui-switch border-2 border-transparent transition-colors duration-200",
9
9
  "outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-cb/80",
10
- "data-[state=unchecked]:bg-ui-cb/10 data-[state=checked]:bg-ui-fill/80",
10
+ "data-[state=unchecked]:bg-soft-ui-cb/10 data-[state=checked]:bg-soft-ui-fill/80",
11
11
  "w-2.7em"
12
12
  ],
13
13
  container: "flex items-center h-1.5em",
14
14
  thumb: [
15
- "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",
15
+ "group pointer-events-none rounded-ui-switch size-1.25em bg-ui-cx shadow-lg ring-0 transition-transform duration-200 flex items-center justify-center",
16
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
17
  ],
18
18
  icon: [
@@ -70,6 +70,9 @@ export default ct(
70
70
  label: "cursor-pointer"
71
71
  }
72
72
  }
73
+ },
74
+ defaultVariants: {
75
+ size: "md"
73
76
  }
74
77
  }
75
78
  );
@@ -0,0 +1,89 @@
1
+ declare const _default: {
2
+ base: undefined;
3
+ slots: {
4
+ root: string;
5
+ base: string;
6
+ caption: string;
7
+ thead: string;
8
+ tbody: string;
9
+ tr: string;
10
+ th: string;
11
+ td: string;
12
+ empty: string;
13
+ };
14
+ variants: {
15
+ sticky: {
16
+ true: {
17
+ thead: string;
18
+ };
19
+ };
20
+ pinned: {
21
+ true: {
22
+ th: string;
23
+ td: string;
24
+ };
25
+ };
26
+ expanded: {
27
+ true: {
28
+ tr: string;
29
+ };
30
+ };
31
+ };
32
+ compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
33
+ sticky: {
34
+ true: {
35
+ thead: string;
36
+ };
37
+ };
38
+ pinned: {
39
+ true: {
40
+ th: string;
41
+ td: string;
42
+ };
43
+ };
44
+ expanded: {
45
+ true: {
46
+ tr: string;
47
+ };
48
+ };
49
+ }, {
50
+ root: string;
51
+ base: string;
52
+ caption: string;
53
+ thead: string;
54
+ tbody: string;
55
+ tr: string;
56
+ th: string;
57
+ td: string;
58
+ empty: string;
59
+ }, undefined>;
60
+ defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
61
+ sticky: {
62
+ true: {
63
+ thead: string;
64
+ };
65
+ };
66
+ pinned: {
67
+ true: {
68
+ th: string;
69
+ td: string;
70
+ };
71
+ };
72
+ expanded: {
73
+ true: {
74
+ tr: string;
75
+ };
76
+ };
77
+ }, {
78
+ root: string;
79
+ base: string;
80
+ caption: string;
81
+ thead: string;
82
+ tbody: string;
83
+ tr: string;
84
+ th: string;
85
+ td: string;
86
+ empty: string;
87
+ }>;
88
+ };
89
+ export default _default;
@@ -0,0 +1,35 @@
1
+ import { ct } from "@byyuurin/ui-kit";
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ slots: {
6
+ root: "relative overflow-auto",
7
+ base: "min-w-full overflow-clip",
8
+ caption: "sr-only",
9
+ thead: "relative [&>tr]:after:absolute [&>tr]:after:inset-x-0 [&>tr]:after:bottom-0 [&>tr]:after:h-px [&>tr]:after:bg-ui-cb/20",
10
+ tbody: "divide-y divide-ui-cb/10",
11
+ tr: "data-[selected=true]:bg-soft-ui-cb/50",
12
+ th: "px-4 py-3.5 text-sm color-ui-cb text-left rtl:text-right font-semibold [&:has([role=checkbox])]:pe-0",
13
+ td: "p-4 text-sm color-ui-cb/80 whitespace-nowrap [&:has([role=checkbox])]:pe-0",
14
+ empty: "py-6 text-center text-sm color-ui-cb/80"
15
+ },
16
+ variants: {
17
+ sticky: {
18
+ true: {
19
+ thead: "sticky z-1 top-0 inset-x-0 bg-ui-cx/90 backdrop-blur"
20
+ }
21
+ },
22
+ pinned: {
23
+ true: {
24
+ th: "sticky bg-ui-cx/90 data-[pinned=left]:left-0 data-[pinned=right]:right-0",
25
+ td: "sticky bg-ui-cx/90 data-[pinned=left]:left-0 data-[pinned=right]:right-0"
26
+ }
27
+ },
28
+ expanded: {
29
+ true: {
30
+ tr: "animate-[fade-in_200ms_ease-out]"
31
+ }
32
+ }
33
+ }
34
+ }
35
+ );
@@ -67,66 +67,86 @@ declare const _default: {
67
67
  root: string;
68
68
  };
69
69
  };
70
- full: {
70
+ evenly: {
71
71
  true: {
72
72
  trigger: string;
73
73
  };
74
74
  };
75
75
  };
76
- compoundVariants: ({
77
- size: ("xs" | "sm" | "md")[];
78
- class: {
79
- trigger: string;
80
- indicator?: undefined;
81
- list?: undefined;
82
- };
83
- orientation?: undefined;
84
- variant?: undefined;
85
- } | {
86
- size: ("lg" | "xl")[];
87
- class: {
88
- trigger: string;
89
- indicator?: undefined;
90
- list?: undefined;
91
- };
92
- orientation?: undefined;
93
- variant?: undefined;
94
- } | {
95
- orientation: "horizontal";
96
- variant: ("solid" | "outline" | "soft" | "soft-outline")[];
97
- class: {
98
- indicator: string;
99
- trigger?: undefined;
100
- list?: undefined;
76
+ compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
77
+ variant: {
78
+ solid: {
79
+ list: string;
80
+ trigger: string[];
81
+ indicator: string;
82
+ };
83
+ outline: {
84
+ list: string;
85
+ trigger: string[];
86
+ indicator: string;
87
+ };
88
+ soft: {
89
+ list: string;
90
+ trigger: string[];
91
+ indicator: string;
92
+ };
93
+ 'soft-outline': {
94
+ list: string;
95
+ trigger: string[];
96
+ indicator: string;
97
+ };
98
+ link: {
99
+ list: string;
100
+ indicator: string;
101
+ trigger: string[];
102
+ };
101
103
  };
102
- size?: undefined;
103
- } | {
104
- orientation: "horizontal";
105
- variant: "link";
106
- class: {
107
- list: string;
108
- indicator: string;
109
- trigger?: undefined;
104
+ orientation: {
105
+ horizontal: {
106
+ root: string;
107
+ list: string;
108
+ indicator: string;
109
+ trigger: string;
110
+ };
111
+ vertical: {
112
+ list: string;
113
+ indicator: string;
114
+ trigger: string;
115
+ };
110
116
  };
111
- size?: undefined;
112
- } | {
113
- orientation: "vertical";
114
- variant: ("solid" | "outline" | "soft" | "soft-outline")[];
115
- class: {
116
- indicator: string;
117
- list: string;
118
- trigger?: undefined;
117
+ size: {
118
+ xs: {
119
+ root: string;
120
+ };
121
+ sm: {
122
+ root: string;
123
+ };
124
+ md: {
125
+ root: string;
126
+ };
127
+ lg: {
128
+ root: string;
129
+ };
130
+ xl: {
131
+ root: string;
132
+ };
119
133
  };
120
- size?: undefined;
121
- } | {
122
- orientation: "vertical";
123
- variant: "link";
124
- class: {
125
- list: string;
126
- indicator: string;
127
- trigger?: undefined;
134
+ evenly: {
135
+ true: {
136
+ trigger: string;
137
+ };
128
138
  };
129
- size?: undefined;
130
- })[];
139
+ }, {
140
+ root: string;
141
+ list: string;
142
+ indicator: string;
143
+ trigger: string[];
144
+ content: string;
145
+ prefixIcon: string;
146
+ label: string;
147
+ }, undefined>;
148
+ defaultVariants: {
149
+ size: "md";
150
+ };
131
151
  };
132
152
  export default _default;
@@ -18,15 +18,15 @@ export default ct(
18
18
  variants: {
19
19
  variant: {
20
20
  "solid": {
21
- list: "bg-ui-cb/5 rounded-ui-tabs",
21
+ list: "bg-soft-ui-cb/5 rounded-ui-tabs",
22
22
  trigger: [
23
- "data-[state=active]:color-ui-c1 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-cb/80",
23
+ "data-[state=active]:color-ui-cx focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-cb/80",
24
24
  "data-[state=inactive]:color-ui-cb/80 hover:data-[state=inactive]:not-disabled:color-ui-cb"
25
25
  ],
26
- indicator: "bg-ui-fill/90 rounded-ui-tabs shadow-xs"
26
+ indicator: "bg-soft-ui-fill/90 rounded-ui-tabs shadow-sm"
27
27
  },
28
28
  "outline": {
29
- list: "bg-ui-cb/5 rounded-ui-tabs",
29
+ list: "bg-soft-ui-cb/5 rounded-ui-tabs",
30
30
  trigger: [
31
31
  "data-[state=active]:color-ui-content focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-content/80",
32
32
  "data-[state=inactive]:color-ui-cb/80 hover:data-[state=inactive]:not-disabled:color-ui-cb"
@@ -34,24 +34,24 @@ export default ct(
34
34
  indicator: "rounded-ui-tabs ring ring-inset ring-ui-content"
35
35
  },
36
36
  "soft": {
37
- list: "bg-ui-cb/5 rounded-ui-tabs",
37
+ list: "bg-soft-ui-cb/5 rounded-ui-tabs",
38
38
  trigger: [
39
39
  "data-[state=active]:color-ui-fill focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-fill",
40
40
  "data-[state=inactive]:color-ui-cb/80 hover:data-[state=inactive]:not-disabled:color-ui-cb"
41
41
  ],
42
- indicator: "bg-ui-fill/10 rounded-ui-tabs shadow-xs"
42
+ indicator: "bg-soft-ui-fill/10 rounded-ui-tabs shadow-sm"
43
43
  },
44
44
  "soft-outline": {
45
- list: "bg-ui-cb/5 rounded-ui-tabs",
45
+ list: "bg-soft-ui-cb/5 rounded-ui-tabs",
46
46
  trigger: [
47
47
  "data-[state=active]:color-ui-fill focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-fill",
48
48
  "data-[state=inactive]:color-ui-cb/80 hover:data-[state=inactive]:not-disabled:color-ui-cb"
49
49
  ],
50
- indicator: "bg-ui-fill/10 rounded-ui-tabs shadow-xs ring ring-inset ring-ui-content/40"
50
+ indicator: "bg-soft-ui-fill/10 rounded-ui-tabs shadow-sm ring ring-inset ring-ui-content/30"
51
51
  },
52
52
  "link": {
53
- list: "bg-ui-cb/5 border-ui-cb/10",
54
- indicator: "bg-ui-fill rounded-full",
53
+ list: "bg-soft-ui-cb/5 border-ui-cb/10",
54
+ indicator: "bg-soft-ui-fill rounded-full",
55
55
  trigger: [
56
56
  "data-[state=active]:color-ui-base focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ui-base",
57
57
  "data-[state=inactive]:color-ui-cb/80 hover:data-[state=inactive]:not-disabled:color-ui-cb"
@@ -88,7 +88,7 @@ export default ct(
88
88
  root: "text-xl"
89
89
  }
90
90
  },
91
- full: {
91
+ evenly: {
92
92
  true: {
93
93
  trigger: "w-full flex-1"
94
94
  }
@@ -138,6 +138,9 @@ export default ct(
138
138
  indicator: "-start-px w-px"
139
139
  }
140
140
  }
141
- ]
141
+ ],
142
+ defaultVariants: {
143
+ size: "md"
144
+ }
142
145
  }
143
146
  );