@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,68 @@
1
+ import { ct } from "@byyuurin/ui-kit";
2
+ import { buttonGroupVariant } from "./button-group.mjs";
3
+ export default ct(
4
+ /* @unocss-include */
5
+ {
6
+ slots: {
7
+ base: "inline-flex items-center rounded-ui-base leading-normal transition-colors",
8
+ label: "",
9
+ prefixIcon: "shrink-0 size-1.5em not-only-child:ml-1.5",
10
+ suffixIcon: "shrink-0 size-1.5em not-only-child:mr-1.5"
11
+ },
12
+ variants: {
13
+ ...buttonGroupVariant,
14
+ variant: {
15
+ "solid": {
16
+ base: [
17
+ "color-ui-c1 bg-solid-ui-fill/90"
18
+ ]
19
+ },
20
+ "outline": {
21
+ base: "color-ui-fill bg-solid-ui-c1 ring ring-inset ring-ui-fill"
22
+ },
23
+ "soft": {
24
+ base: "color-ui-content/80 bg-solid-ui-fill/10"
25
+ },
26
+ "soft-outline": {
27
+ base: "color-ui-content/80 bg-solid-ui-fill/10 ring ring-inset ring-ui-fill/40"
28
+ }
29
+ },
30
+ size: {
31
+ xs: {
32
+ base: "text-xs"
33
+ },
34
+ sm: {
35
+ base: "text-sm"
36
+ },
37
+ md: {
38
+ base: "text-base"
39
+ },
40
+ lg: {
41
+ base: "text-lg"
42
+ },
43
+ xl: {
44
+ base: "text-xl"
45
+ }
46
+ }
47
+ },
48
+ compoundVariants: [
49
+ {
50
+ size: ["xs", "sm", "md"],
51
+ class: {
52
+ base: "p-0.5",
53
+ label: "px-1"
54
+ }
55
+ },
56
+ {
57
+ size: ["lg", "xl"],
58
+ class: {
59
+ base: "p-1",
60
+ label: "px-2"
61
+ }
62
+ }
63
+ ],
64
+ defaultVariants: {
65
+ size: "md"
66
+ }
67
+ }
68
+ );
@@ -68,5 +68,43 @@ declare const _default: {
68
68
  handle?: undefined;
69
69
  };
70
70
  })[];
71
+ defaultVariants: import("@byyuurin/ui-kit/index").CVDefaultVariants<{
72
+ direction: {
73
+ top: {
74
+ content: string;
75
+ handle: string;
76
+ };
77
+ right: {
78
+ content: string;
79
+ handle: string;
80
+ };
81
+ bottom: {
82
+ content: string;
83
+ handle: string;
84
+ };
85
+ left: {
86
+ content: string;
87
+ handle: string;
88
+ };
89
+ };
90
+ blur: {
91
+ true: {
92
+ overlay: string;
93
+ };
94
+ };
95
+ full: {
96
+ true: "";
97
+ };
98
+ }, {
99
+ overlay: string;
100
+ content: string;
101
+ handle: string;
102
+ container: string;
103
+ header: string;
104
+ title: string;
105
+ description: string;
106
+ body: string;
107
+ footer: string;
108
+ }>;
71
109
  };
72
110
  export default _default;
@@ -1,72 +1,75 @@
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 ring ring-ui-cb/5 flex focus:outline-none",
6
- handle: "shrink-0 rounded-full bg-ui-cb/17.5",
7
- container: "w-full flex flex-col overflow-hidden overflow-y-auto",
8
- header: "p-4 sm:px-6 sibling:pt-0",
9
- title: "color-ui-cb text-xl font-semibold",
10
- description: "mt-1 color-ui-cb/80",
11
- body: "p-4 sm:px-6 flex-1 sibling:pt-0",
12
- footer: "p-4 sm:px-6 flex flex-col gap-1.5"
13
- },
14
- variants: {
15
- direction: {
16
- top: {
17
- content: "top-0 mb-24 flex-col-reverse rounded-b-ui-box",
18
- handle: "mb-4"
19
- },
20
- right: {
21
- content: "right-4 flex-row rounded-l-ui-box",
22
- handle: "ml-4"
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ slots: {
6
+ overlay: "fixed inset-0 bg-ui-c3/75",
7
+ content: "fixed bg-solid-ui-c1 ring ring-ui-cb/5 flex focus:outline-none",
8
+ handle: "shrink-0 rounded-full bg-solid-ui-cb/17.5",
9
+ container: "w-full flex flex-col overflow-hidden overflow-y-auto",
10
+ header: "p-4 sm:px-6 sibling:pt-0",
11
+ title: "color-ui-cb text-xl font-semibold",
12
+ description: "mt-1 color-ui-cb/80",
13
+ body: "p-4 sm:px-6 flex-1 sibling:pt-0",
14
+ footer: "p-4 sm:px-6 flex flex-col gap-1.5"
15
+ },
16
+ variants: {
17
+ direction: {
18
+ top: {
19
+ content: "top-0 mb-24 flex-col-reverse rounded-b-ui-box",
20
+ handle: "mb-4"
21
+ },
22
+ right: {
23
+ content: "right-4 flex-row rounded-l-ui-box",
24
+ handle: "ml-4"
25
+ },
26
+ bottom: {
27
+ content: "bottom-0 mt-24 flex-col rounded-t-ui-box",
28
+ handle: "mt-4"
29
+ },
30
+ left: {
31
+ content: "left-4 flex-row-reverse rounded-r-ui-box",
32
+ handle: "mr-4"
33
+ }
23
34
  },
24
- bottom: {
25
- content: "bottom-0 mt-24 flex-col rounded-t-ui-box",
26
- handle: "mt-4"
35
+ blur: {
36
+ true: {
37
+ overlay: "backdrop-blur-sm"
38
+ }
27
39
  },
28
- left: {
29
- content: "left-4 flex-row-reverse rounded-r-ui-box",
30
- handle: "mr-4"
31
- }
32
- },
33
- blur: {
34
- true: {
35
- overlay: "backdrop-blur-sm"
40
+ full: {
41
+ true: ""
36
42
  }
37
43
  },
38
- full: {
39
- true: ""
40
- }
41
- },
42
- compoundVariants: [
43
- {
44
- direction: ["top", "bottom"],
45
- class: {
46
- content: "inset-x-0 h-auto max-h-[96%]",
47
- handle: "w-12 h-1.5 mx-auto"
48
- }
49
- },
50
- {
51
- direction: ["top", "bottom"],
52
- full: false,
53
- class: {
54
- content: "inset-x-4 my-4 rounded-ui-box after:hidden"
55
- }
56
- },
57
- {
58
- direction: ["right", "left"],
59
- class: {
60
- content: "inset-y-0 w-auto max-w-[calc(100%-2rem)]",
61
- handle: "h-12 w-1.5 my-auto"
62
- }
63
- },
64
- {
65
- direction: ["right", "left"],
66
- full: false,
67
- class: {
68
- content: "inset-y-4 rounded-ui-box after:hidden"
44
+ compoundVariants: [
45
+ {
46
+ direction: ["top", "bottom"],
47
+ class: {
48
+ content: "inset-x-0 h-auto max-h-[96%]",
49
+ handle: "w-12 h-1.5 mx-auto"
50
+ }
51
+ },
52
+ {
53
+ direction: ["top", "bottom"],
54
+ full: false,
55
+ class: {
56
+ content: "inset-x-4 my-4 rounded-ui-box after:hidden"
57
+ }
58
+ },
59
+ {
60
+ direction: ["right", "left"],
61
+ class: {
62
+ content: "inset-y-0 w-auto max-w-[calc(100%-2rem)]",
63
+ handle: "h-12 w-1.5 my-auto"
64
+ }
65
+ },
66
+ {
67
+ direction: ["right", "left"],
68
+ full: false,
69
+ class: {
70
+ content: "inset-y-4 rounded-ui-box after:hidden"
71
+ }
69
72
  }
70
- }
71
- ]
72
- });
73
+ ]
74
+ }
75
+ );
@@ -1,16 +1,24 @@
1
1
  export { default as accordion } from './accordion';
2
+ export { default as alert } from './alert';
2
3
  export { default as app } from './app';
4
+ export { default as badge } from './badge';
3
5
  export { default as button } from './button';
6
+ export { default as buttonGroup } from './button-group';
4
7
  export { default as card } from './card';
8
+ export { default as carousel } from './carousel';
5
9
  export { default as checkbox } from './checkbox';
10
+ export { default as chip } from './chip';
6
11
  export { default as drawer } from './drawer';
7
12
  export { default as input } from './input';
8
13
  export { default as link } from './link';
9
14
  export { default as modal } from './modal';
15
+ export { default as pagination } from './pagination';
16
+ export { default as pinInput } from './pinInput';
10
17
  export { default as popover } from './popover';
11
- export { default as radioGroup } from './radioGroup';
12
- export { default as scrollArea } from './scrollArea';
18
+ export { default as radioGroup } from './radio-group';
19
+ export { default as scrollArea } from './scroll-area';
13
20
  export { default as select } from './select';
21
+ export { default as slider } from './slider';
14
22
  export { default as switch } from './switch';
15
23
  export { default as tabs } from './tabs';
16
24
  export { default as textarea } from './textarea';
@@ -1,16 +1,24 @@
1
1
  export { default as accordion } from "./accordion.mjs";
2
+ export { default as alert } from "./alert.mjs";
2
3
  export { default as app } from "./app.mjs";
4
+ export { default as badge } from "./badge.mjs";
3
5
  export { default as button } from "./button.mjs";
6
+ export { default as buttonGroup } from "./button-group.mjs";
4
7
  export { default as card } from "./card.mjs";
8
+ export { default as carousel } from "./carousel.mjs";
5
9
  export { default as checkbox } from "./checkbox.mjs";
10
+ export { default as chip } from "./chip.mjs";
6
11
  export { default as drawer } from "./drawer.mjs";
7
12
  export { default as input } from "./input.mjs";
8
13
  export { default as link } from "./link.mjs";
9
14
  export { default as modal } from "./modal.mjs";
15
+ export { default as pagination } from "./pagination.mjs";
16
+ export { default as pinInput } from "./pinInput.mjs";
10
17
  export { default as popover } from "./popover.mjs";
11
- export { default as radioGroup } from "./radioGroup.mjs";
12
- export { default as scrollArea } from "./scrollArea.mjs";
18
+ export { default as radioGroup } from "./radio-group.mjs";
19
+ export { default as scrollArea } from "./scroll-area.mjs";
13
20
  export { default as select } from "./select.mjs";
21
+ export { default as slider } from "./slider.mjs";
14
22
  export { default as switch } from "./switch.mjs";
15
23
  export { default as tabs } from "./tabs.mjs";
16
24
  export { default as textarea } from "./textarea.mjs";
@@ -1,8 +1,8 @@
1
1
  declare const _default: {
2
2
  base: undefined;
3
3
  slots: {
4
- root: string;
5
- base: string[];
4
+ base: string;
5
+ input: string[];
6
6
  prefix: string;
7
7
  prefixIcon: string;
8
8
  suffix: string;
@@ -11,33 +11,36 @@ declare const _default: {
11
11
  variants: {
12
12
  size: {
13
13
  xs: {
14
- root: string;
14
+ base: string;
15
15
  };
16
16
  sm: {
17
- root: string;
17
+ base: string;
18
18
  };
19
19
  md: {
20
- root: string;
20
+ base: string;
21
21
  };
22
22
  lg: {
23
- root: string;
23
+ base: string;
24
24
  };
25
25
  xl: {
26
- root: string;
26
+ base: string;
27
27
  };
28
28
  };
29
29
  variant: {
30
30
  outline: {
31
- root: string[];
31
+ base: string[];
32
32
  };
33
33
  soft: {
34
- root: string[];
34
+ base: string[];
35
+ };
36
+ 'soft-outline': {
37
+ base: string[];
35
38
  };
36
39
  ghost: {
37
- root: string[];
40
+ base: string[];
38
41
  };
39
42
  none: {
40
- root: string;
43
+ base: string;
41
44
  };
42
45
  };
43
46
  prefix: {
@@ -53,12 +56,18 @@ declare const _default: {
53
56
  true: "";
54
57
  };
55
58
  highlight: {
56
- true: {
57
- base: string;
58
- };
59
+ true: "";
59
60
  };
60
61
  type: {
61
62
  file: {
63
+ input: string;
64
+ };
65
+ };
66
+ groupOrientation: {
67
+ horizontal: {
68
+ base: string;
69
+ };
70
+ vertical: {
62
71
  base: string;
63
72
  };
64
73
  };
@@ -68,7 +77,8 @@ declare const _default: {
68
77
  highlight: false;
69
78
  underline: true;
70
79
  class: {
71
- root: string;
80
+ base: string[];
81
+ input?: undefined;
72
82
  prefixIcon?: undefined;
73
83
  suffixIcon?: undefined;
74
84
  };
@@ -79,7 +89,8 @@ declare const _default: {
79
89
  } | {
80
90
  size: ("xs" | "sm" | "md")[];
81
91
  class: {
82
- root: string;
92
+ base: string;
93
+ input: string;
83
94
  prefixIcon?: undefined;
84
95
  suffixIcon?: undefined;
85
96
  };
@@ -92,7 +103,8 @@ declare const _default: {
92
103
  } | {
93
104
  size: ("lg" | "xl")[];
94
105
  class: {
95
- root: string;
106
+ base: string;
107
+ input: string;
96
108
  prefixIcon?: undefined;
97
109
  suffixIcon?: undefined;
98
110
  };
@@ -103,10 +115,11 @@ declare const _default: {
103
115
  prefix?: undefined;
104
116
  suffix?: undefined;
105
117
  } | {
106
- variant: ("soft" | "ghost" | "none")[];
118
+ variant: ("soft" | "soft-outline" | "ghost" | "none")[];
107
119
  highlight: true;
108
120
  class: {
109
- root: string;
121
+ base: string;
122
+ input?: undefined;
110
123
  prefixIcon?: undefined;
111
124
  suffixIcon?: undefined;
112
125
  };
@@ -119,7 +132,8 @@ declare const _default: {
119
132
  variant: "outline"[];
120
133
  highlight: true;
121
134
  class: {
122
- root: string;
135
+ base: string;
136
+ input?: undefined;
123
137
  prefixIcon?: undefined;
124
138
  suffixIcon?: undefined;
125
139
  };
@@ -133,7 +147,8 @@ declare const _default: {
133
147
  prefix: true;
134
148
  class: {
135
149
  prefixIcon: string;
136
- root?: undefined;
150
+ base?: undefined;
151
+ input?: undefined;
137
152
  suffixIcon?: undefined;
138
153
  };
139
154
  variant?: undefined;
@@ -147,7 +162,8 @@ declare const _default: {
147
162
  suffix: true;
148
163
  class: {
149
164
  suffixIcon: string;
150
- root?: undefined;
165
+ base?: undefined;
166
+ input?: undefined;
151
167
  prefixIcon?: undefined;
152
168
  };
153
169
  variant?: undefined;
@@ -155,5 +171,8 @@ declare const _default: {
155
171
  underline?: undefined;
156
172
  size?: undefined;
157
173
  })[];
174
+ defaultVariants: {
175
+ size: "md";
176
+ };
158
177
  };
159
178
  export default _default;