@byyuurin/ui 0.0.8 → 0.0.10

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 (151) hide show
  1. package/README.md +0 -3
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +4 -3
  4. package/dist/module.mjs.map +1 -1
  5. package/dist/runtime/app/injections.d.ts +9299 -8
  6. package/dist/runtime/app/injections.js +35 -5
  7. package/dist/runtime/components/Accordion.vue +17 -19
  8. package/dist/runtime/components/Alert.vue +6 -9
  9. package/dist/runtime/components/App.vue +14 -19
  10. package/dist/runtime/components/Avatar.vue +5 -8
  11. package/dist/runtime/components/AvatarGroup.vue +2 -5
  12. package/dist/runtime/components/Badge.vue +3 -6
  13. package/dist/runtime/components/Breadcrumb.vue +22 -23
  14. package/dist/runtime/components/Button.vue +2 -3
  15. package/dist/runtime/components/ButtonGroup.vue +2 -5
  16. package/dist/runtime/components/Calendar.vue +185 -0
  17. package/dist/runtime/components/Card.vue +2 -5
  18. package/dist/runtime/components/Carousel.vue +11 -16
  19. package/dist/runtime/components/Checkbox.vue +13 -11
  20. package/dist/runtime/components/Chip.vue +6 -9
  21. package/dist/runtime/components/Collapsible.vue +2 -5
  22. package/dist/runtime/components/Drawer.vue +88 -45
  23. package/dist/runtime/components/DropdownMenu.vue +143 -0
  24. package/dist/runtime/components/DropdownMenuContent.vue +188 -0
  25. package/dist/runtime/components/Form.vue +311 -0
  26. package/dist/runtime/components/FormItem.vue +129 -0
  27. package/dist/runtime/components/Input.vue +34 -23
  28. package/dist/runtime/components/InputNumber.vue +23 -18
  29. package/dist/runtime/components/Kbd.vue +2 -6
  30. package/dist/runtime/components/Link.vue +25 -7
  31. package/dist/runtime/components/Modal.vue +31 -22
  32. package/dist/runtime/components/OverlayProvider.vue +29 -0
  33. package/dist/runtime/components/Pagination.vue +34 -27
  34. package/dist/runtime/components/PinInput.vue +23 -17
  35. package/dist/runtime/components/Popover.vue +5 -8
  36. package/dist/runtime/components/Progress.vue +2 -5
  37. package/dist/runtime/components/RadioGroup.vue +52 -49
  38. package/dist/runtime/components/ScrollArea.vue +2 -6
  39. package/dist/runtime/components/Select.vue +96 -89
  40. package/dist/runtime/components/Separator.vue +2 -6
  41. package/dist/runtime/components/Skeleton.vue +2 -5
  42. package/dist/runtime/components/Slider.vue +13 -11
  43. package/dist/runtime/components/Switch.vue +18 -11
  44. package/dist/runtime/components/Table.vue +23 -13
  45. package/dist/runtime/components/Tabs.vue +14 -16
  46. package/dist/runtime/components/Textarea.vue +20 -17
  47. package/dist/runtime/components/Toast.vue +12 -13
  48. package/dist/runtime/components/{Toaster.vue → ToastProvider.vue} +18 -16
  49. package/dist/runtime/components/Tooltip.vue +5 -8
  50. package/dist/runtime/composables/useFormItem.d.ts +27 -0
  51. package/dist/runtime/composables/useFormItem.js +64 -0
  52. package/dist/runtime/composables/useKbd.d.ts +1 -1
  53. package/dist/runtime/composables/useOverlay.d.ts +29 -0
  54. package/dist/runtime/composables/useOverlay.js +69 -0
  55. package/dist/runtime/composables/useTheme.d.ts +6 -2
  56. package/dist/runtime/composables/useTheme.js +10 -3
  57. package/dist/runtime/composables/useToast.d.ts +4 -20
  58. package/dist/runtime/composables/useToast.js +6 -5
  59. package/dist/runtime/index.d.ts +6 -2
  60. package/dist/runtime/index.js +6 -2
  61. package/dist/runtime/locale/en.js +6 -0
  62. package/dist/runtime/locale/zh-tw.js +6 -0
  63. package/dist/runtime/theme/accordion.js +3 -3
  64. package/dist/runtime/theme/alert.js +3 -3
  65. package/dist/runtime/theme/app.d.ts +1 -0
  66. package/dist/runtime/theme/app.js +2 -1
  67. package/dist/runtime/theme/avatar.js +2 -2
  68. package/dist/runtime/theme/badge.d.ts +21 -45
  69. package/dist/runtime/theme/breadcrumb.d.ts +3 -3
  70. package/dist/runtime/theme/breadcrumb.js +5 -5
  71. package/dist/runtime/theme/button.d.ts +111 -57
  72. package/dist/runtime/theme/button.js +13 -13
  73. package/dist/runtime/theme/calendar.d.ts +56 -0
  74. package/dist/runtime/theme/calendar.js +69 -0
  75. package/dist/runtime/theme/card.js +6 -6
  76. package/dist/runtime/theme/carousel.js +1 -1
  77. package/dist/runtime/theme/checkbox.js +5 -5
  78. package/dist/runtime/theme/chip.d.ts +11 -44
  79. package/dist/runtime/theme/chip.js +3 -3
  80. package/dist/runtime/theme/drawer.d.ts +85 -47
  81. package/dist/runtime/theme/drawer.js +46 -19
  82. package/dist/runtime/theme/dropdown-menu.d.ts +71 -0
  83. package/dist/runtime/theme/dropdown-menu.js +83 -0
  84. package/dist/runtime/theme/form-item.d.ts +76 -0
  85. package/dist/runtime/theme/form-item.js +34 -0
  86. package/dist/runtime/theme/form.d.ts +8 -0
  87. package/dist/runtime/theme/form.js +7 -0
  88. package/dist/runtime/theme/index.d.ts +5 -1
  89. package/dist/runtime/theme/index.js +5 -1
  90. package/dist/runtime/theme/input-number.d.ts +41 -61
  91. package/dist/runtime/theme/input-number.js +1 -1
  92. package/dist/runtime/theme/input.d.ts +99 -71
  93. package/dist/runtime/theme/input.js +15 -15
  94. package/dist/runtime/theme/kbd.d.ts +2 -2
  95. package/dist/runtime/theme/kbd.js +1 -1
  96. package/dist/runtime/theme/link.d.ts +1 -1
  97. package/dist/runtime/theme/link.js +3 -3
  98. package/dist/runtime/theme/modal.d.ts +5 -33
  99. package/dist/runtime/theme/modal.js +4 -4
  100. package/dist/runtime/theme/pagination.d.ts +27 -3
  101. package/dist/runtime/theme/pagination.js +6 -2
  102. package/dist/runtime/theme/pinInput.d.ts +42 -42
  103. package/dist/runtime/theme/pinInput.js +13 -13
  104. package/dist/runtime/theme/progress.d.ts +117 -53
  105. package/dist/runtime/theme/progress.js +4 -4
  106. package/dist/runtime/theme/radio-group.d.ts +2 -2
  107. package/dist/runtime/theme/radio-group.js +7 -7
  108. package/dist/runtime/theme/select.d.ts +100 -84
  109. package/dist/runtime/theme/select.js +21 -20
  110. package/dist/runtime/theme/separator.d.ts +13 -28
  111. package/dist/runtime/theme/separator.js +1 -1
  112. package/dist/runtime/theme/skeleton.d.ts +1 -1
  113. package/dist/runtime/theme/skeleton.js +1 -1
  114. package/dist/runtime/theme/slider.js +1 -1
  115. package/dist/runtime/theme/switch.js +5 -5
  116. package/dist/runtime/theme/table.d.ts +3 -0
  117. package/dist/runtime/theme/table.js +8 -7
  118. package/dist/runtime/theme/tabs.d.ts +51 -68
  119. package/dist/runtime/theme/tabs.js +10 -10
  120. package/dist/runtime/theme/textarea.d.ts +37 -43
  121. package/dist/runtime/theme/textarea.js +13 -13
  122. package/dist/runtime/theme/{toaster.d.ts → toast-provider.d.ts} +26 -41
  123. package/dist/runtime/theme/toast.js +5 -5
  124. package/dist/runtime/theme/tooltip.js +1 -1
  125. package/dist/runtime/types/components.d.ts +6 -1
  126. package/dist/runtime/types/form.d.ts +45 -0
  127. package/dist/runtime/types/form.js +0 -0
  128. package/dist/runtime/types/index.d.ts +5 -2
  129. package/dist/runtime/types/index.js +1 -0
  130. package/dist/runtime/types/locale.d.ts +6 -0
  131. package/dist/runtime/types/utils.d.ts +35 -12
  132. package/dist/runtime/utils/extend-theme.js +15 -4
  133. package/dist/runtime/utils/form.d.ts +5 -0
  134. package/dist/runtime/utils/form.js +24 -0
  135. package/dist/runtime/utils/index.d.ts +2 -0
  136. package/dist/runtime/utils/index.js +4 -0
  137. package/dist/runtime/utils/link.d.ts +4 -26
  138. package/dist/runtime/utils/link.js +10 -3
  139. package/dist/shared/ui.3e7fad19.mjs +5 -0
  140. package/dist/shared/ui.3e7fad19.mjs.map +1 -0
  141. package/dist/unocss.mjs +21 -16
  142. package/dist/unocss.mjs.map +1 -1
  143. package/dist/unplugin.mjs +1 -1
  144. package/dist/vite.mjs +1 -1
  145. package/package.json +20 -18
  146. package/dist/runtime/components/ModalProvider.vue +0 -11
  147. package/dist/runtime/composables/useModal.d.ts +0 -10
  148. package/dist/runtime/composables/useModal.js +0 -47
  149. package/dist/shared/ui.ba24b380.mjs +0 -4
  150. package/dist/shared/ui.ba24b380.mjs.map +0 -1
  151. /package/dist/runtime/theme/{toaster.js → toast-provider.js} +0 -0
@@ -26,7 +26,7 @@ declare const _default: {
26
26
  disabled: {
27
27
  true: "cursor-not-allowed opacity-50";
28
28
  };
29
- }, undefined, "border-y border-t-transparent outline-none focus-visible:outline-ui-cb/80">;
29
+ }, undefined, "border-y border-t-transparent outline-none focus-visible:outline-ui-base/80">;
30
30
  defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
31
31
  underline: {
32
32
  true: "border-current";
@@ -2,7 +2,7 @@ import { ct } from "@byyuurin/ui-kit";
2
2
  export default ct(
3
3
  /* @unocss-include */
4
4
  {
5
- base: "border-y border-t-transparent outline-none focus-visible:outline-ui-cb/80",
5
+ base: "border-y border-t-transparent outline-none focus-visible:outline-ui-base/80",
6
6
  variants: {
7
7
  underline: {
8
8
  true: "border-current",
@@ -14,8 +14,8 @@ export default ct(
14
14
  "disabled:color-ui-fill aria-disabled:color-ui-fill"
15
15
  ],
16
16
  false: [
17
- "color-ui-cb/80 hover:color-ui-cb/60 transition-colors",
18
- "disabled:hover:color-ui-cb aria-disabled:hover:color-ui-cb"
17
+ "color-ui-base/80 hover:color-ui-base/60 transition-colors",
18
+ "disabled:hover:color-ui-base aria-disabled:hover:color-ui-base"
19
19
  ]
20
20
  },
21
21
  disabled: {
@@ -35,40 +35,12 @@ declare const _default: {
35
35
  };
36
36
  };
37
37
  };
38
- compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
39
- transition: {
40
- true: {
41
- overlay: string;
42
- content: string;
43
- };
44
- };
45
- size: {
46
- fullscreen: {
47
- content: string;
48
- };
49
- sm: {
50
- content: string;
51
- };
52
- md: {
53
- content: string;
54
- };
55
- lg: {
56
- content: string;
57
- };
58
- xl: {
59
- content: string;
60
- };
38
+ compoundVariants: {
39
+ size: ("sm" | "md" | "lg" | "xl")[];
40
+ class: {
41
+ content: string[];
61
42
  };
62
- }, {
63
- overlay: string;
64
- content: string;
65
- header: string;
66
- body: string;
67
- footer: string;
68
- title: string;
69
- description: string;
70
- close: string;
71
- }, undefined>;
43
+ }[];
72
44
  defaultVariants: {
73
45
  size: "sm";
74
46
  };
@@ -4,12 +4,12 @@ export default ct(
4
4
  {
5
5
  slots: {
6
6
  overlay: "fixed z-1 inset-0 bg-black/40",
7
- content: "fixed z-1 bg-ui-cx divide-y divide-ui-cb/10 flex flex-col focus:outline-none",
7
+ content: "fixed z-1 bg-ui-base divide-y divide-ui-base/10 flex flex-col focus:outline-none",
8
8
  header: "flex flex-wrap items-center gap-1 px-4 py-5 sm:px-6",
9
9
  body: "flex-1 overflow-y-auto p-4 sm:p-6 empty:hidden",
10
10
  footer: "flex items-center gap-1.5 p-4 sm:px-6",
11
- title: "flex-grow color-ui-cb text-xl font-semibold",
12
- description: "w-full color-ui-cb/80",
11
+ title: "flex-grow color-ui-base text-xl font-semibold",
12
+ description: "w-full color-ui-base/80",
13
13
  close: "ms-auto"
14
14
  },
15
15
  variants: {
@@ -42,7 +42,7 @@ export default ct(
42
42
  size: ["sm", "md", "lg", "xl"],
43
43
  class: {
44
44
  content: [
45
- "bottom-4 left-[50%] translate-x-[-50%] h-auto max-w-[calc(100%-2rem)] max-h-[calc(100%-2rem)] rounded-ui-box shadow-sm shadow-ui-cb/10 ring ring-ui-cb/10",
45
+ "bottom-4 left-[50%] translate-x-[-50%] h-auto max-w-[calc(100%-2rem)] max-h-[calc(100%-2rem)] rounded-ui-box shadow-sm shadow-ui-base/10 ring ring-ui-base/10",
46
46
  "sm:bottom-auto sm:top-[50%] sm:translate-y-[-50%]"
47
47
  ]
48
48
  }
@@ -3,9 +3,13 @@ declare const _default: {
3
3
  slots: {
4
4
  root: string;
5
5
  list: string;
6
- item: string;
7
6
  ellipsis: string;
8
7
  label: string;
8
+ item: string;
9
+ first: string;
10
+ prev: string;
11
+ next: string;
12
+ last: string;
9
13
  };
10
14
  variants: {
11
15
  [key: string]: {
@@ -14,7 +18,11 @@ declare const _default: {
14
18
  item?: import("@byyuurin/ui-kit").ClassValue;
15
19
  label?: import("@byyuurin/ui-kit").ClassValue;
16
20
  list?: import("@byyuurin/ui-kit").ClassValue;
21
+ prev?: import("@byyuurin/ui-kit").ClassValue;
22
+ next?: import("@byyuurin/ui-kit").ClassValue;
17
23
  ellipsis?: import("@byyuurin/ui-kit").ClassValue;
24
+ first?: import("@byyuurin/ui-kit").ClassValue;
25
+ last?: import("@byyuurin/ui-kit").ClassValue;
18
26
  } | null;
19
27
  };
20
28
  };
@@ -25,15 +33,23 @@ declare const _default: {
25
33
  item?: import("@byyuurin/ui-kit").ClassValue;
26
34
  label?: import("@byyuurin/ui-kit").ClassValue;
27
35
  list?: import("@byyuurin/ui-kit").ClassValue;
36
+ prev?: import("@byyuurin/ui-kit").ClassValue;
37
+ next?: import("@byyuurin/ui-kit").ClassValue;
28
38
  ellipsis?: import("@byyuurin/ui-kit").ClassValue;
39
+ first?: import("@byyuurin/ui-kit").ClassValue;
40
+ last?: import("@byyuurin/ui-kit").ClassValue;
29
41
  } | null;
30
42
  };
31
43
  }, {
32
44
  root: string;
33
45
  list: string;
34
- item: string;
35
46
  ellipsis: string;
36
47
  label: string;
48
+ item: string;
49
+ first: string;
50
+ prev: string;
51
+ next: string;
52
+ last: string;
37
53
  }, undefined>;
38
54
  defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
39
55
  [key: string]: {
@@ -42,15 +58,23 @@ declare const _default: {
42
58
  item?: import("@byyuurin/ui-kit").ClassValue;
43
59
  label?: import("@byyuurin/ui-kit").ClassValue;
44
60
  list?: import("@byyuurin/ui-kit").ClassValue;
61
+ prev?: import("@byyuurin/ui-kit").ClassValue;
62
+ next?: import("@byyuurin/ui-kit").ClassValue;
45
63
  ellipsis?: import("@byyuurin/ui-kit").ClassValue;
64
+ first?: import("@byyuurin/ui-kit").ClassValue;
65
+ last?: import("@byyuurin/ui-kit").ClassValue;
46
66
  } | null;
47
67
  };
48
68
  }, {
49
69
  root: string;
50
70
  list: string;
51
- item: string;
52
71
  ellipsis: string;
53
72
  label: string;
73
+ item: string;
74
+ first: string;
75
+ prev: string;
76
+ next: string;
77
+ last: string;
54
78
  }>;
55
79
  };
56
80
  export default _default;
@@ -5,9 +5,13 @@ export default ct(
5
5
  slots: {
6
6
  root: "",
7
7
  list: "flex items-center gap-1",
8
- item: "",
9
8
  ellipsis: "pointer-events-none",
10
- label: "px-0 min-w-1.5em"
9
+ label: "px-0 min-w-1.5em text-center",
10
+ item: "",
11
+ first: "",
12
+ prev: "",
13
+ next: "",
14
+ last: ""
11
15
  }
12
16
  }
13
17
  );
@@ -47,52 +47,52 @@ declare const _default: {
47
47
  true: "";
48
48
  };
49
49
  };
50
- compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
51
- size: {
52
- xs: {
53
- container: string;
54
- };
55
- sm: {
56
- container: string;
57
- };
58
- md: {
59
- container: string;
60
- };
61
- lg: {
62
- container: string;
63
- };
64
- xl: {
65
- container: string;
66
- };
50
+ compoundVariants: ({
51
+ variant: ("soft" | "ghost" | "none")[];
52
+ highlight: false;
53
+ underline: true;
54
+ class: {
55
+ container: string[];
56
+ base?: undefined;
67
57
  };
68
- variant: {
69
- outline: {
70
- container: string[];
71
- };
72
- soft: {
73
- container: string[];
74
- };
75
- 'soft-outline': {
76
- container: string[];
77
- };
78
- ghost: {
79
- container: string[];
80
- };
81
- none: {
82
- container: string;
83
- };
58
+ size?: undefined;
59
+ } | {
60
+ size: ("xs" | "sm" | "md")[];
61
+ class: {
62
+ base: string;
63
+ container?: undefined;
84
64
  };
85
- underline: {
86
- true: "";
65
+ variant?: undefined;
66
+ highlight?: undefined;
67
+ underline?: undefined;
68
+ } | {
69
+ size: ("lg" | "xl")[];
70
+ class: {
71
+ base: string;
72
+ container?: undefined;
87
73
  };
88
- highlight: {
89
- true: "";
74
+ variant?: undefined;
75
+ highlight?: undefined;
76
+ underline?: undefined;
77
+ } | {
78
+ variant: ("soft" | "soft-outline" | "ghost" | "none")[];
79
+ highlight: true;
80
+ class: {
81
+ container: string;
82
+ base?: undefined;
90
83
  };
91
- }, {
92
- root: string;
93
- container: string;
94
- base: string;
95
- }, undefined>;
84
+ underline?: undefined;
85
+ size?: undefined;
86
+ } | {
87
+ variant: "outline"[];
88
+ highlight: true;
89
+ class: {
90
+ container: string;
91
+ base?: undefined;
92
+ };
93
+ underline?: undefined;
94
+ size?: undefined;
95
+ })[];
96
96
  defaultVariants: {
97
97
  size: "md";
98
98
  };
@@ -5,7 +5,7 @@ export default ct(
5
5
  slots: {
6
6
  root: "inline-flex items-center gap-x-2",
7
7
  container: "rounded-ui-base border-0 transition-colors aria-disabled:opacity-50",
8
- base: "w-full color-inherit bg-transparent text-center placeholder:color-ui-cb/50 focus:outline-none disabled:cursor-not-allowed"
8
+ base: "w-full color-inherit bg-transparent text-center placeholder:color-ui-base/50 focus:outline-none disabled:cursor-not-allowed"
9
9
  },
10
10
  variants: {
11
11
  size: {
@@ -28,34 +28,34 @@ export default ct(
28
28
  variant: {
29
29
  "outline": {
30
30
  container: [
31
- "color-ui-cb/80 bg-ui-cx ring ring-inset ring-ui-cb/30",
32
- "focus-within:ring-2 focus-within:ring-ui-cb/50",
33
- "aria-disabled:ring-ui-cb/80 hover:aria-disabled:ring-ui-cb/80"
31
+ "color-ui-base/80 bg-ui-base ring ring-inset ring-ui-base/30",
32
+ "focus-within:ring-2 focus-within:ring-ui-base/50",
33
+ "aria-disabled:ring-ui-base/15 hover:aria-disabled:ring-ui-base/15"
34
34
  ]
35
35
  },
36
36
  "soft": {
37
37
  container: [
38
- "color-ui-cb/80 bg-soft-ui-cb/4",
39
- "hover:bg-soft-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-soft-ui-cb/8 focus-within:color-ui-cb/85",
40
- "aria-disabled:color-ui-content/80 aria-disabled:bg-soft-ui-fill/5 hover:aria-disabled:color-ui-content/80 hover:aria-disabled:bg-soft-ui-fill/5"
38
+ "color-ui-base/80 bg-soft-ui-cb/4",
39
+ "hover:bg-soft-ui-cb/6 hover:color-ui-base/80 focus-within:bg-soft-ui-cb/8 focus-within:color-ui-base/85",
40
+ "aria-disabled:color-ui-fill/80 aria-disabled:bg-soft-ui-fill/5 hover:aria-disabled:color-ui-fill/80 hover:aria-disabled:bg-soft-ui-fill/5"
41
41
  ]
42
42
  },
43
43
  "soft-outline": {
44
44
  container: [
45
- "color-ui-cb/80 bg-soft-ui-cb/4 ring ring-inset ring-ui-cb/30",
46
- "hover:bg-soft-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-soft-ui-cb/8 focus-within:color-ui-cb/85",
47
- "aria-disabled:color-ui-content/80 aria-disabled:bg-soft-ui-fill/5 hover:aria-disabled:color-ui-content/80 hover:aria-disabled:bg-soft-ui-fill/5"
45
+ "color-ui-base/80 bg-soft-ui-cb/4 ring ring-inset ring-ui-base/30",
46
+ "hover:bg-soft-ui-cb/6 hover:color-ui-base/80 focus-within:bg-soft-ui-cb/8 focus-within:color-ui-base/85",
47
+ "aria-disabled:color-ui-fill/80 aria-disabled:bg-soft-ui-fill/5 hover:aria-disabled:color-ui-fill/80 hover:aria-disabled:bg-soft-ui-fill/5"
48
48
  ]
49
49
  },
50
50
  "ghost": {
51
51
  container: [
52
- "color-ui-cb/80 bg-transparent",
53
- "hover:bg-soft-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-soft-ui-cb/8 focus-within:color-ui-cb/85",
52
+ "color-ui-base/80 bg-transparent",
53
+ "hover:bg-soft-ui-cb/6 hover:color-ui-base/80 focus-within:bg-soft-ui-cb/8 focus-within:color-ui-base/85",
54
54
  "aria-disabled:color-ui-fill/80 aria-disabled:bg-transparent hover:aria-disabled:color-ui-fill/80 hover:aria-disabled:bg-transparent"
55
55
  ]
56
56
  },
57
57
  "none": {
58
- container: "color-ui-cb bg-transparent"
58
+ container: "color-ui-base bg-transparent"
59
59
  }
60
60
  },
61
61
  underline: {
@@ -58,63 +58,127 @@ declare const _default: {
58
58
  };
59
59
  };
60
60
  };
61
- compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
62
- size: {
63
- xs: {
64
- wrapper: string;
65
- };
66
- sm: {
67
- wrapper: string;
68
- };
69
- md: {
70
- wrapper: string;
71
- };
72
- lg: {
73
- wrapper: string;
74
- };
75
- xl: {
76
- wrapper: string;
77
- };
61
+ compoundVariants: ({
62
+ orientation: "horizontal";
63
+ inverted: true;
64
+ class: {
65
+ step: string;
66
+ status: string;
67
+ steps?: undefined;
68
+ root?: undefined;
78
69
  };
79
- step: {
80
- active: {
81
- step: string;
82
- };
83
- first: {
84
- step: string;
85
- };
86
- other: {
87
- step: string;
88
- };
89
- last: {
90
- step: string;
91
- };
70
+ size?: undefined;
71
+ } | {
72
+ orientation: "vertical";
73
+ inverted: true;
74
+ class: {
75
+ steps: string;
76
+ status: string;
77
+ step?: undefined;
78
+ root?: undefined;
92
79
  };
93
- orientation: {
94
- horizontal: {
95
- wrapper: string;
96
- root: string;
97
- status: string;
98
- };
99
- vertical: {
100
- wrapper: string;
101
- root: string;
102
- status: string;
103
- };
80
+ size?: undefined;
81
+ } | {
82
+ size: "xs";
83
+ orientation: "horizontal";
84
+ class: {
85
+ root: string;
86
+ step?: undefined;
87
+ status?: undefined;
88
+ steps?: undefined;
104
89
  };
105
- inverted: {
106
- true: {
107
- status: string;
108
- };
90
+ inverted?: undefined;
91
+ } | {
92
+ size: "sm";
93
+ orientation: "horizontal";
94
+ class: {
95
+ root: string;
96
+ step?: undefined;
97
+ status?: undefined;
98
+ steps?: undefined;
109
99
  };
110
- }, {
111
- wrapper: string;
112
- root: string;
113
- indicator: string;
114
- status: string;
115
- steps: string;
116
- step: string;
117
- }, undefined>;
100
+ inverted?: undefined;
101
+ } | {
102
+ size: "md";
103
+ orientation: "horizontal";
104
+ class: {
105
+ root: string;
106
+ step?: undefined;
107
+ status?: undefined;
108
+ steps?: undefined;
109
+ };
110
+ inverted?: undefined;
111
+ } | {
112
+ size: "lg";
113
+ orientation: "horizontal";
114
+ class: {
115
+ root: string;
116
+ step?: undefined;
117
+ status?: undefined;
118
+ steps?: undefined;
119
+ };
120
+ inverted?: undefined;
121
+ } | {
122
+ size: "xl";
123
+ orientation: "horizontal";
124
+ class: {
125
+ root: string;
126
+ step?: undefined;
127
+ status?: undefined;
128
+ steps?: undefined;
129
+ };
130
+ inverted?: undefined;
131
+ } | {
132
+ size: "xs";
133
+ orientation: "vertical";
134
+ class: {
135
+ root: string;
136
+ step?: undefined;
137
+ status?: undefined;
138
+ steps?: undefined;
139
+ };
140
+ inverted?: undefined;
141
+ } | {
142
+ size: "sm";
143
+ orientation: "vertical";
144
+ class: {
145
+ root: string;
146
+ step?: undefined;
147
+ status?: undefined;
148
+ steps?: undefined;
149
+ };
150
+ inverted?: undefined;
151
+ } | {
152
+ size: "md";
153
+ orientation: "vertical";
154
+ class: {
155
+ root: string;
156
+ step?: undefined;
157
+ status?: undefined;
158
+ steps?: undefined;
159
+ };
160
+ inverted?: undefined;
161
+ } | {
162
+ size: "lg";
163
+ orientation: "vertical";
164
+ class: {
165
+ root: string;
166
+ step?: undefined;
167
+ status?: undefined;
168
+ steps?: undefined;
169
+ };
170
+ inverted?: undefined;
171
+ } | {
172
+ size: "xl";
173
+ orientation: "vertical";
174
+ class: {
175
+ root: string;
176
+ step?: undefined;
177
+ status?: undefined;
178
+ steps?: undefined;
179
+ };
180
+ inverted?: undefined;
181
+ })[];
118
182
  defaultVariants: {
119
183
  size: "md";
120
184
  };
@@ -5,9 +5,9 @@ export default ct(
5
5
  slots: {
6
6
  wrapper: "gap-2",
7
7
  root: "relative overflow-hidden rounded-full bg-soft-ui-cb/30",
8
- indicator: "bg-ui-content rounded-full size-full transition-transform duration-200 ease-out",
9
- status: "flex justify-end color-ui-cb/50 transition-[width] duration-200",
10
- steps: "grid items-end color-ui-cb/80",
8
+ indicator: "bg-ui-fill rounded-full size-full transition-transform duration-200 ease-out",
9
+ status: "flex justify-end color-ui-base/50 transition-[width] duration-200",
10
+ steps: "grid items-end color-ui-base/80",
11
11
  step: "truncate text-end row-start-1 col-start-1 transition-opacity"
12
12
  },
13
13
  variants: {
@@ -33,7 +33,7 @@ export default ct(
33
33
  step: "opacity-100"
34
34
  },
35
35
  first: {
36
- step: "opacity-100 color-ui-cb/60"
36
+ step: "opacity-100 color-ui-base/60"
37
37
  },
38
38
  other: {
39
39
  step: "opacity-0"
@@ -40,7 +40,7 @@ declare const _default: {
40
40
  };
41
41
  disabled: {
42
42
  true: {
43
- root: string;
43
+ item: string;
44
44
  };
45
45
  false: {
46
46
  label: string;
@@ -80,7 +80,7 @@ declare const _default: {
80
80
  };
81
81
  disabled: {
82
82
  true: {
83
- root: string;
83
+ item: string;
84
84
  };
85
85
  false: {
86
86
  label: string;
@@ -3,16 +3,16 @@ export default ct(
3
3
  /* @unocss-include */
4
4
  {
5
5
  slots: {
6
- root: "relative",
6
+ root: "",
7
7
  fieldset: "flex flex-wrap gap-2 gap-x-4",
8
- legend: "mb-2 color-ui-cb",
9
- item: "flex items-start",
10
- base: "relative size-1.25em rounded-ui-radio ring ring-inset ring-ui-cb outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-cb/80 transition data-[state=checked]:ring-ui-base",
8
+ legend: "mb-2 color-ui-base",
9
+ item: "relative flex items-start",
10
+ base: "relative size-1.25em rounded-ui-radio ring ring-inset ring-ui-base outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-base/80 transition data-[state=checked]:ring-ui-base",
11
11
  indicator: "absolute inset-0 scale-0 rounded-ui-radio bg-ui-fill transition data-[state=checked]:scale-66",
12
12
  container: "h-1.5em flex items-center",
13
13
  wrapper: "",
14
- label: "block ps-2 color-ui-cb",
15
- description: "ps-2 color-ui-cb/60"
14
+ label: "block ps-2 color-ui-base",
15
+ description: "ps-2 color-ui-base/60"
16
16
  },
17
17
  variants: {
18
18
  orientation: {
@@ -42,7 +42,7 @@ export default ct(
42
42
  },
43
43
  disabled: {
44
44
  true: {
45
- root: "opacity-50 after:content-empty after:absolute after:inset-0 after:cursor-not-allowed"
45
+ item: "opacity-50 after:content-empty after:absolute after:inset-0 after:cursor-not-allowed"
46
46
  },
47
47
  false: {
48
48
  label: "cursor-pointer"