@byyuurin/ui 0.0.3 → 0.0.5

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 (142) hide show
  1. package/README.md +15 -24
  2. package/dist/index.d.ts +25 -2
  3. package/dist/index.mjs +25 -2
  4. package/dist/nuxt.d.mts +1 -1
  5. package/dist/nuxt.d.ts +1 -1
  6. package/dist/nuxt.mjs +14 -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 +5 -1
  11. package/dist/runtime/components/Badge.vue +71 -0
  12. package/dist/runtime/components/Button.vue +3 -3
  13. package/dist/runtime/components/Card.vue +4 -4
  14. package/dist/runtime/components/Checkbox.vue +3 -6
  15. package/dist/runtime/components/Chip.vue +59 -0
  16. package/dist/runtime/components/Drawer.vue +2 -2
  17. package/dist/runtime/components/Input.vue +7 -2
  18. package/dist/runtime/components/Link.vue +1 -1
  19. package/dist/runtime/components/Modal.vue +2 -2
  20. package/dist/runtime/components/ModalProvider.vue +1 -1
  21. package/dist/runtime/components/PinInput.vue +86 -0
  22. package/dist/runtime/components/Popover.vue +1 -1
  23. package/dist/runtime/components/RadioGroup.vue +2 -8
  24. package/dist/runtime/components/ScrollArea.vue +72 -0
  25. package/dist/runtime/components/Select.vue +2 -1
  26. package/dist/runtime/components/Slider.vue +97 -0
  27. package/dist/runtime/components/Switch.vue +1 -2
  28. package/dist/runtime/components/Tabs.vue +6 -6
  29. package/dist/runtime/components/Textarea.vue +172 -0
  30. package/dist/runtime/components/Toast.vue +2 -2
  31. package/dist/runtime/components/Toaster.vue +2 -1
  32. package/dist/runtime/components/Tooltip.vue +1 -1
  33. package/dist/runtime/composables/defineInjection.d.ts +11 -0
  34. package/dist/runtime/composables/defineInjection.mjs +9 -0
  35. package/dist/runtime/composables/useModal.d.ts +1 -1
  36. package/dist/runtime/composables/useModal.mjs +3 -2
  37. package/dist/runtime/composables/useTheme.d.ts +3 -1
  38. package/dist/runtime/composables/useTheme.mjs +14 -6
  39. package/dist/runtime/theme/accordion.mjs +24 -21
  40. package/dist/runtime/theme/alert.d.ts +85 -0
  41. package/dist/runtime/theme/alert.mjs +47 -0
  42. package/dist/runtime/theme/app.mjs +1 -0
  43. package/dist/runtime/theme/badge.d.ts +79 -0
  44. package/dist/runtime/theme/badge.mjs +89 -0
  45. package/dist/runtime/theme/button.d.ts +4 -9
  46. package/dist/runtime/theme/button.mjs +130 -127
  47. package/dist/runtime/theme/card.d.ts +2 -2
  48. package/dist/runtime/theme/card.mjs +12 -9
  49. package/dist/runtime/theme/checkbox.d.ts +0 -12
  50. package/dist/runtime/theme/checkbox.mjs +45 -47
  51. package/dist/runtime/theme/chip.d.ts +56 -0
  52. package/dist/runtime/theme/chip.mjs +63 -0
  53. package/dist/runtime/theme/drawer.mjs +69 -66
  54. package/dist/runtime/theme/index.d.ts +7 -0
  55. package/dist/runtime/theme/index.mjs +7 -0
  56. package/dist/runtime/theme/input.d.ts +13 -5
  57. package/dist/runtime/theme/input.mjs +135 -122
  58. package/dist/runtime/theme/link.d.ts +1 -1
  59. package/dist/runtime/theme/link.mjs +23 -20
  60. package/dist/runtime/theme/modal.mjs +51 -48
  61. package/dist/runtime/theme/pinInput.d.ts +97 -0
  62. package/dist/runtime/theme/pinInput.mjs +108 -0
  63. package/dist/runtime/theme/popover.mjs +11 -8
  64. package/dist/runtime/theme/radioGroup.d.ts +0 -24
  65. package/dist/runtime/theme/radioGroup.mjs +50 -59
  66. package/dist/runtime/theme/scrollArea.d.ts +51 -0
  67. package/dist/runtime/theme/scrollArea.mjs +33 -0
  68. package/dist/runtime/theme/select.d.ts +5 -2
  69. package/dist/runtime/theme/select.mjs +156 -143
  70. package/dist/runtime/theme/slider.d.ts +73 -0
  71. package/dist/runtime/theme/slider.mjs +49 -0
  72. package/dist/runtime/theme/switch.d.ts +0 -12
  73. package/dist/runtime/theme/switch.mjs +66 -69
  74. package/dist/runtime/theme/tabs.d.ts +44 -13
  75. package/dist/runtime/theme/tabs.mjs +132 -106
  76. package/dist/runtime/theme/textarea.d.ts +93 -0
  77. package/dist/runtime/theme/textarea.mjs +113 -0
  78. package/dist/runtime/theme/toast.mjs +26 -23
  79. package/dist/runtime/theme/toaster.d.ts +2 -2
  80. package/dist/runtime/theme/toaster.mjs +84 -81
  81. package/dist/runtime/theme/tooltip.mjs +9 -6
  82. package/dist/runtime/types/components.d.ts +7 -0
  83. package/dist/runtime/types/index.d.ts +1 -3
  84. package/dist/runtime/utils/extend-theme.mjs +1 -1
  85. package/dist/runtime/utils/index.d.ts +0 -11
  86. package/dist/runtime/utils/index.mjs +0 -11
  87. package/dist/runtime/utils/link.d.ts +1 -1
  88. package/dist/shared/ui.CzDyI29e.mjs +8 -0
  89. package/dist/shared/ui.CzDyI29e.mjs.map +1 -0
  90. package/dist/unocss-preset.d.mts +15 -7
  91. package/dist/unocss-preset.d.ts +15 -7
  92. package/dist/unocss-preset.mjs +97 -384
  93. package/dist/unocss-preset.mjs.map +1 -0
  94. package/dist/unplugin.d.mts +25 -0
  95. package/dist/unplugin.d.ts +25 -0
  96. package/dist/unplugin.mjs +64 -0
  97. package/dist/unplugin.mjs.map +1 -0
  98. package/dist/vite.d.mts +9 -0
  99. package/dist/vite.d.ts +9 -0
  100. package/dist/vite.mjs +14 -0
  101. package/dist/vite.mjs.map +1 -0
  102. package/package.json +22 -14
  103. package/dist/index.cjs +0 -38
  104. package/dist/resolver.d.mts +0 -13
  105. package/dist/resolver.d.ts +0 -13
  106. package/dist/resolver.mjs +0 -21
  107. package/dist/runtime/components/index.cjs +0 -132
  108. package/dist/runtime/components/index.d.ts +0 -18
  109. package/dist/runtime/components/index.mjs +0 -18
  110. package/dist/runtime/composables/index.cjs +0 -33
  111. package/dist/runtime/composables/index.d.ts +0 -4
  112. package/dist/runtime/composables/index.mjs +0 -4
  113. package/dist/runtime/composables/useComponentIcons.cjs +0 -30
  114. package/dist/runtime/composables/useModal.cjs +0 -55
  115. package/dist/runtime/composables/useTheme.cjs +0 -30
  116. package/dist/runtime/composables/useToast.cjs +0 -51
  117. package/dist/runtime/theme/accordion.cjs +0 -27
  118. package/dist/runtime/theme/app.cjs +0 -15
  119. package/dist/runtime/theme/button.cjs +0 -127
  120. package/dist/runtime/theme/card.cjs +0 -17
  121. package/dist/runtime/theme/checkbox.cjs +0 -56
  122. package/dist/runtime/theme/drawer.cjs +0 -73
  123. package/dist/runtime/theme/index.cjs +0 -125
  124. package/dist/runtime/theme/input.cjs +0 -115
  125. package/dist/runtime/theme/link.cjs +0 -23
  126. package/dist/runtime/theme/modal.cjs +0 -55
  127. package/dist/runtime/theme/popover.cjs +0 -13
  128. package/dist/runtime/theme/radioGroup.cjs +0 -73
  129. package/dist/runtime/theme/select.cjs +0 -128
  130. package/dist/runtime/theme/switch.cjs +0 -73
  131. package/dist/runtime/theme/tabs.cjs +0 -105
  132. package/dist/runtime/theme/toast.cjs +0 -33
  133. package/dist/runtime/theme/toaster.cjs +0 -72
  134. package/dist/runtime/theme/tooltip.cjs +0 -14
  135. package/dist/runtime/types/components.cjs +0 -1
  136. package/dist/runtime/types/index.cjs +0 -27
  137. package/dist/runtime/types/utils.cjs +0 -1
  138. package/dist/runtime/utils/extend-theme.cjs +0 -24
  139. package/dist/runtime/utils/index.cjs +0 -119
  140. package/dist/runtime/utils/link.cjs +0 -10
  141. package/dist/runtime/utils/styler.cjs +0 -18
  142. package/dist/shared/ui.CPXA9QoM.mjs +0 -23
@@ -1,54 +1,57 @@
1
1
  import { ct } from "@byyuurin/ui-kit";
2
- export default ct({
3
- slots: {
4
- overlay: "fixed inset-0 bg-ui-c3/75",
5
- content: "fixed bg-ui-c1 divide-y divide-ui-cb/10 flex flex-col focus:outline-none",
6
- header: "flex flex-wrap items-center gap-1 px-4 py-5 sm:px-6",
7
- body: "flex-1 overflow-y-auto p-4 sm:p-6 empty:hidden",
8
- footer: "flex items-center gap-1.5 p-4 sm:px-6",
9
- title: "flex-grow color-ui-cb text-xl font-semibold",
10
- description: "w-full color-ui-cb/80",
11
- close: "ms-auto"
12
- },
13
- variants: {
14
- transition: {
15
- true: {
16
- overlay: "data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]",
17
- content: "data-[state=open]:animate-[scale-in_200ms_ease-out] data-[state=closed]:animate-[scale-out_200ms_ease-in]"
18
- }
19
- },
20
- blur: {
21
- true: {
22
- overlay: "backdrop-blur-sm"
23
- }
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ slots: {
6
+ overlay: "fixed inset-0 bg-ui-c3/75",
7
+ content: "fixed bg-ui-c1 divide-y divide-ui-cb/10 flex flex-col focus:outline-none",
8
+ header: "flex flex-wrap items-center gap-1 px-4 py-5 sm:px-6",
9
+ body: "flex-1 overflow-y-auto p-4 sm:p-6 empty:hidden",
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",
13
+ close: "ms-auto"
24
14
  },
25
- size: {
26
- fullscreen: {
27
- content: "inset-0"
15
+ variants: {
16
+ transition: {
17
+ true: {
18
+ overlay: "data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]",
19
+ content: "data-[state=open]:animate-[scale-in_200ms_ease-out] data-[state=closed]:animate-[scale-out_200ms_ease-in]"
20
+ }
28
21
  },
29
- sm: {
30
- content: "w-screen-sm"
22
+ blur: {
23
+ true: {
24
+ overlay: "backdrop-blur-sm"
25
+ }
31
26
  },
32
- md: {
33
- content: "w-screen-md"
34
- },
35
- lg: {
36
- content: "w-screen-lg"
37
- },
38
- xl: {
39
- content: "w-screen-xl"
27
+ size: {
28
+ fullscreen: {
29
+ content: "inset-0"
30
+ },
31
+ sm: {
32
+ content: "w-screen-sm"
33
+ },
34
+ md: {
35
+ content: "w-screen-md"
36
+ },
37
+ lg: {
38
+ content: "w-screen-lg"
39
+ },
40
+ xl: {
41
+ content: "w-screen-xl"
42
+ }
40
43
  }
41
- }
42
- },
43
- compoundVariants: [
44
- {
45
- size: ["sm", "md", "lg", "xl"],
46
- class: {
47
- content: [
48
- "bottom-4 left-[50%] translate-x-[-50%] h-auto max-w-[calc(100%-2rem)] max-h-[calc(100%-2rem)] ring ring-ui-c2",
49
- "sm:bottom-auto sm:top-[50%] sm:translate-y-[-50%] sm:rounded-ui-box sm:shadow-lg"
50
- ]
44
+ },
45
+ compoundVariants: [
46
+ {
47
+ size: ["sm", "md", "lg", "xl"],
48
+ class: {
49
+ content: [
50
+ "bottom-4 left-[50%] translate-x-[-50%] h-auto max-w-[calc(100%-2rem)] max-h-[calc(100%-2rem)] ring ring-ui-c2",
51
+ "sm:bottom-auto sm:top-[50%] sm:translate-y-[-50%] sm:rounded-ui-box sm:shadow-lg"
52
+ ]
53
+ }
51
54
  }
52
- }
53
- ]
54
- });
55
+ ]
56
+ }
57
+ );
@@ -0,0 +1,97 @@
1
+ declare const _default: {
2
+ base: undefined;
3
+ slots: {
4
+ root: string;
5
+ container: string;
6
+ base: string;
7
+ };
8
+ variants: {
9
+ size: {
10
+ xs: {
11
+ container: string;
12
+ };
13
+ sm: {
14
+ container: string;
15
+ };
16
+ md: {
17
+ container: string;
18
+ };
19
+ lg: {
20
+ container: string;
21
+ };
22
+ xl: {
23
+ container: string;
24
+ };
25
+ };
26
+ variant: {
27
+ outline: {
28
+ container: string[];
29
+ };
30
+ soft: {
31
+ container: string[];
32
+ };
33
+ 'soft-outline': {
34
+ container: string[];
35
+ };
36
+ ghost: {
37
+ container: string[];
38
+ };
39
+ none: {
40
+ container: string;
41
+ };
42
+ };
43
+ underline: {
44
+ true: "";
45
+ };
46
+ highlight: {
47
+ true: "";
48
+ };
49
+ };
50
+ compoundVariants: ({
51
+ variant: ("soft" | "ghost" | "none")[];
52
+ highlight: false;
53
+ underline: true;
54
+ class: {
55
+ container: string[];
56
+ base?: undefined;
57
+ };
58
+ size?: undefined;
59
+ } | {
60
+ size: ("xs" | "sm" | "md")[];
61
+ class: {
62
+ base: string;
63
+ container?: undefined;
64
+ };
65
+ variant?: undefined;
66
+ highlight?: undefined;
67
+ underline?: undefined;
68
+ } | {
69
+ size: ("lg" | "xl")[];
70
+ class: {
71
+ base: string;
72
+ container?: undefined;
73
+ };
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;
83
+ };
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
+ };
97
+ export default _default;
@@ -0,0 +1,108 @@
1
+ import { ct } from "@byyuurin/ui-kit";
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ slots: {
6
+ root: "inline-flex items-center gap-x-2",
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"
9
+ },
10
+ variants: {
11
+ size: {
12
+ xs: {
13
+ container: "text-xs size-7"
14
+ },
15
+ sm: {
16
+ container: "text-sm size-8"
17
+ },
18
+ md: {
19
+ container: "text-base size-9"
20
+ },
21
+ lg: {
22
+ container: "text-lg size-12.5"
23
+ },
24
+ xl: {
25
+ container: "text-xl size-12.5"
26
+ }
27
+ },
28
+ variant: {
29
+ "outline": {
30
+ container: [
31
+ "color-ui-cb/80 bg-ui-c1 ring ring-inset ring-ui-cb/50",
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"
34
+ ]
35
+ },
36
+ "soft": {
37
+ container: [
38
+ "color-ui-cb/80 bg-ui-cb/4",
39
+ "hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85",
40
+ "aria-disabled:color-ui-content/80 aria-disabled:bg-ui-fill/5 hover:aria-disabled:color-ui-content/80 hover:aria-disabled:bg-ui-fill/5"
41
+ ]
42
+ },
43
+ "soft-outline": {
44
+ container: [
45
+ "color-ui-cb/80 bg-ui-cb/4 ring ring-inset ring-ui-cb/10",
46
+ "hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85",
47
+ "aria-disabled:color-ui-content/80 aria-disabled:bg-ui-fill/5 hover:aria-disabled:color-ui-content/80 hover:aria-disabled:bg-ui-fill/5"
48
+ ]
49
+ },
50
+ "ghost": {
51
+ container: [
52
+ "color-ui-cb/80 bg-transparent",
53
+ "hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85",
54
+ "aria-disabled:color-ui-fill/80 aria-disabled:bg-transparent hover:aria-disabled:color-ui-fill/80 hover:aria-disabled:bg-transparent"
55
+ ]
56
+ },
57
+ "none": {
58
+ container: "color-ui-cb bg-transparent"
59
+ }
60
+ },
61
+ underline: {
62
+ true: ""
63
+ },
64
+ highlight: {
65
+ true: ""
66
+ }
67
+ },
68
+ compoundVariants: [
69
+ {
70
+ variant: ["soft", "ghost", "none"],
71
+ highlight: false,
72
+ underline: true,
73
+ class: {
74
+ container: [
75
+ "relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-ui-cb/40",
76
+ "focus-within:after:h-2px focus-within:after:bg-ui-fill/60"
77
+ ]
78
+ }
79
+ },
80
+ {
81
+ size: ["xs", "sm", "md"],
82
+ class: {
83
+ base: "p-1.5"
84
+ }
85
+ },
86
+ {
87
+ size: ["lg", "xl"],
88
+ class: {
89
+ base: "p-2.5"
90
+ }
91
+ },
92
+ {
93
+ variant: ["soft", "soft-outline", "ghost", "none"],
94
+ highlight: true,
95
+ class: {
96
+ container: "ring ring-inset ring-ui-fill/80"
97
+ }
98
+ },
99
+ {
100
+ variant: ["outline"],
101
+ highlight: true,
102
+ class: {
103
+ container: "ring-2 ring-ui-fill/80 focus-within:ring-ui-fill/80"
104
+ }
105
+ }
106
+ ]
107
+ }
108
+ );
@@ -1,10 +1,13 @@
1
1
  import { ct } from "@byyuurin/ui-kit";
2
- export default ct({
3
- slots: {
4
- content: [
5
- "color-ui-base bg-ui-base shadow-lg rounded-ui-box ring ring-ui-base/10",
6
- "data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] focus:outline-none pointer-events-auto"
7
- ],
8
- arrow: "fill-ui-base stroke-ui-cb/10"
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ slots: {
6
+ content: [
7
+ "color-ui-base bg-ui-base shadow-lg rounded-ui-box ring ring-ui-base/10",
8
+ "data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] focus:outline-none pointer-events-auto"
9
+ ],
10
+ arrow: "fill-ui-base stroke-ui-cb/10"
11
+ }
9
12
  }
10
- });
13
+ );
@@ -16,7 +16,6 @@ declare const _default: {
16
16
  orientation: {
17
17
  horizontal: {
18
18
  fieldset: string;
19
- wrapper: string;
20
19
  };
21
20
  vertical: {
22
21
  fieldset: string;
@@ -39,17 +38,6 @@ declare const _default: {
39
38
  root: string;
40
39
  };
41
40
  };
42
- dot: {
43
- true: {
44
- indicator: string;
45
- };
46
- };
47
- round: {
48
- true: {
49
- base: string;
50
- indicator: string;
51
- };
52
- };
53
41
  disabled: {
54
42
  true: {
55
43
  root: string;
@@ -68,7 +56,6 @@ declare const _default: {
68
56
  orientation: {
69
57
  horizontal: {
70
58
  fieldset: string;
71
- wrapper: string;
72
59
  };
73
60
  vertical: {
74
61
  fieldset: string;
@@ -91,17 +78,6 @@ declare const _default: {
91
78
  root: string;
92
79
  };
93
80
  };
94
- dot: {
95
- true: {
96
- indicator: string;
97
- };
98
- };
99
- round: {
100
- true: {
101
- base: string;
102
- indicator: string;
103
- };
104
- };
105
81
  disabled: {
106
82
  true: {
107
83
  root: string;
@@ -1,67 +1,58 @@
1
1
  import { ct } from "@byyuurin/ui-kit";
2
- export default ct({
3
- slots: {
4
- root: "relative",
5
- fieldset: "flex flex-wrap gap-0.5em",
6
- legend: "mb-1 block font-medium color-ui-cb",
7
- item: "flex items-start",
8
- base: "size-1.25em rounded-ui-base ring ring-inset ring-ui-cb focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-cb",
9
- indicator: "flex items-center justify-center size-full rounded-ui-base bg-ui-fill",
10
- container: "h-1.5em flex items-center",
11
- wrapper: "ms-2",
12
- label: "block font-medium color-ui-cb",
13
- description: "color-ui-cb/60"
14
- },
15
- variants: {
16
- orientation: {
17
- horizontal: {
18
- fieldset: "flex-row",
19
- wrapper: "me-2"
20
- },
21
- vertical: {
22
- fieldset: "flex-col"
23
- }
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ slots: {
6
+ root: "relative",
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",
11
+ indicator: "absolute inset-0 scale-0 rounded-ui-radio bg-ui-fill transition data-[state=checked]:scale-66",
12
+ container: "h-1.5em flex items-center",
13
+ wrapper: "",
14
+ label: "block ps-2 color-ui-cb",
15
+ description: "ps-2 color-ui-cb/60"
24
16
  },
25
- size: {
26
- xs: {
27
- root: "text-xs"
28
- },
29
- sm: {
30
- root: "text-sm"
17
+ variants: {
18
+ orientation: {
19
+ horizontal: {
20
+ fieldset: "flex-row"
21
+ },
22
+ vertical: {
23
+ fieldset: "flex-col"
24
+ }
31
25
  },
32
- md: {
33
- root: "text-base"
26
+ size: {
27
+ xs: {
28
+ root: "text-xs"
29
+ },
30
+ sm: {
31
+ root: "text-sm"
32
+ },
33
+ md: {
34
+ root: "text-base"
35
+ },
36
+ lg: {
37
+ root: "text-lg"
38
+ },
39
+ xl: {
40
+ root: "text-xl"
41
+ }
34
42
  },
35
- lg: {
36
- root: "text-lg"
37
- },
38
- xl: {
39
- root: "text-xl"
40
- }
41
- },
42
- dot: {
43
- true: {
44
- indicator: "after:content-empty after:size-0.75em after:bg-ui-c1 after:rounded-ui-base"
45
- }
46
- },
47
- round: {
48
- true: {
49
- base: "rounded-full",
50
- indicator: "rounded-full after:rounded-full"
51
- }
52
- },
53
- disabled: {
54
- true: {
55
- root: "opacity-50 after:content-empty after:absolute after:inset-0 after:cursor-not-allowed"
43
+ disabled: {
44
+ true: {
45
+ root: "opacity-50 after:content-empty after:absolute after:inset-0 after:cursor-not-allowed"
46
+ },
47
+ false: {
48
+ label: "cursor-pointer"
49
+ }
56
50
  },
57
- false: {
58
- label: "cursor-pointer"
59
- }
60
- },
61
- required: {
62
- true: {
63
- legend: "after:content-['*'] after:ms-0.5"
51
+ required: {
52
+ true: {
53
+ legend: "after:content-['*'] after:ms-0.5"
54
+ }
64
55
  }
65
56
  }
66
57
  }
67
- });
58
+ );
@@ -0,0 +1,51 @@
1
+ import type { TransitionGroupProps } from 'vue';
2
+ export declare const transitionProps: TransitionGroupProps;
3
+ declare const _default: {
4
+ base: undefined;
5
+ slots: {
6
+ /** Contains all the parts of a scroll area. */
7
+ root: string;
8
+ /** The viewport area of the scroll area. */
9
+ viewport: string;
10
+ /** The vertical and horizontal scrollbar. */
11
+ scrollbar: string[];
12
+ /** The thumb to be used in `ScrollAreaScrollbar`. */
13
+ thumb: string[];
14
+ /** The corner where both vertical and horizontal scrollbars meet. */
15
+ corner: string;
16
+ };
17
+ variants: {
18
+ [key: string]: {
19
+ [key: string]: "" | {
20
+ root?: import("@byyuurin/ui-kit/index").ClassValue;
21
+ viewport?: import("@byyuurin/ui-kit/index").ClassValue;
22
+ corner?: import("@byyuurin/ui-kit/index").ClassValue;
23
+ scrollbar?: import("@byyuurin/ui-kit/index").ClassValue;
24
+ thumb?: import("@byyuurin/ui-kit/index").ClassValue;
25
+ } | null;
26
+ };
27
+ };
28
+ compoundVariants: import("@byyuurin/ui-kit/index").CVCompoundVariants<{
29
+ [key: string]: {
30
+ [key: string]: "" | {
31
+ root?: import("@byyuurin/ui-kit/index").ClassValue;
32
+ viewport?: import("@byyuurin/ui-kit/index").ClassValue;
33
+ corner?: import("@byyuurin/ui-kit/index").ClassValue;
34
+ scrollbar?: import("@byyuurin/ui-kit/index").ClassValue;
35
+ thumb?: import("@byyuurin/ui-kit/index").ClassValue;
36
+ } | null;
37
+ };
38
+ }, {
39
+ /** Contains all the parts of a scroll area. */
40
+ root: string;
41
+ /** The viewport area of the scroll area. */
42
+ viewport: string;
43
+ /** The vertical and horizontal scrollbar. */
44
+ scrollbar: string[];
45
+ /** The thumb to be used in `ScrollAreaScrollbar`. */
46
+ thumb: string[];
47
+ /** The corner where both vertical and horizontal scrollbars meet. */
48
+ corner: string;
49
+ }, undefined>;
50
+ };
51
+ export default _default;
@@ -0,0 +1,33 @@
1
+ import { ct } from "@byyuurin/ui-kit";
2
+ export const transitionProps = {
3
+ enterFromClass: "opacity-0",
4
+ enterActiveClass: "transition",
5
+ leaveToClass: "opacity-0",
6
+ leaveActiveClass: "transition",
7
+ moveClass: "transition"
8
+ };
9
+ export default ct(
10
+ /* @unocss-include */
11
+ {
12
+ slots: {
13
+ /** Contains all the parts of a scroll area. */
14
+ root: "relative overflow-hidden",
15
+ /** The viewport area of the scroll area. */
16
+ viewport: "size-full rounded-ui-base outline-none",
17
+ /** The vertical and horizontal scrollbar. */
18
+ scrollbar: [
19
+ "flex select-none touch-none p-0.5 duration-160 ease-out",
20
+ "data-[orientation=vertical]:w-2.5 data-[orientation=vertical]:my-[calc(var(--ui-radius-box)+0.25rem)]",
21
+ "data-[orientation=horizontal]:flex-col data-[orientation=horizontal]:h-2.5 data-[orientation=horizontal]:mx-[calc(var(--ui-radius-box)+0.25rem)]"
22
+ ],
23
+ /** The thumb to be used in `ScrollAreaScrollbar`. */
24
+ thumb: [
25
+ "relative flex-1 bg-ui-cb/20 rounded-ui-base cursor-pointer transition-colors",
26
+ "hover:bg-ui-cb/30 active:bg-ui-cb/40",
27
+ "before:content-empty before:absolute before:top-1/2 before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:w-full before:h-full before:min-w-10 before:min-h-10 "
28
+ ],
29
+ /** The corner where both vertical and horizontal scrollbars meet. */
30
+ corner: ""
31
+ }
32
+ }
33
+ );
@@ -29,6 +29,9 @@ declare const _default: {
29
29
  soft: {
30
30
  base: string[];
31
31
  };
32
+ 'soft-outline': {
33
+ base: string[];
34
+ };
32
35
  ghost: {
33
36
  base: string[];
34
37
  };
@@ -79,7 +82,7 @@ declare const _default: {
79
82
  highlight: false;
80
83
  underline: true;
81
84
  class: {
82
- base: string;
85
+ base: string[];
83
86
  item?: undefined;
84
87
  prefixIcon?: undefined;
85
88
  suffixIcon?: undefined;
@@ -117,7 +120,7 @@ declare const _default: {
117
120
  prefix?: undefined;
118
121
  suffix?: undefined;
119
122
  } | {
120
- variant: ("soft" | "ghost" | "none")[];
123
+ variant: ("soft" | "soft-outline" | "ghost" | "none")[];
121
124
  highlight: true;
122
125
  class: {
123
126
  base: string;