@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,125 @@
1
+ declare const _default: {
2
+ base: undefined;
3
+ slots: {
4
+ root: string;
5
+ wrapper: string;
6
+ title: string;
7
+ description: string;
8
+ icon: string;
9
+ actions: string;
10
+ close: string;
11
+ };
12
+ variants: {
13
+ variant: {
14
+ solid: {
15
+ root: string;
16
+ close: string;
17
+ };
18
+ outline: {
19
+ root: string;
20
+ };
21
+ soft: {
22
+ root: string;
23
+ };
24
+ 'soft-outline': {
25
+ root: string;
26
+ };
27
+ };
28
+ orientation: {
29
+ horizontal: {
30
+ root: string;
31
+ actions: string;
32
+ };
33
+ vertical: {
34
+ root: string;
35
+ actions: string;
36
+ };
37
+ };
38
+ title: {
39
+ true: {
40
+ description: string;
41
+ };
42
+ };
43
+ };
44
+ compoundVariants: import("@byyuurin/ui-kit/index").CVCompoundVariants<{
45
+ variant: {
46
+ solid: {
47
+ root: string;
48
+ close: string;
49
+ };
50
+ outline: {
51
+ root: string;
52
+ };
53
+ soft: {
54
+ root: string;
55
+ };
56
+ 'soft-outline': {
57
+ root: string;
58
+ };
59
+ };
60
+ orientation: {
61
+ horizontal: {
62
+ root: string;
63
+ actions: string;
64
+ };
65
+ vertical: {
66
+ root: string;
67
+ actions: string;
68
+ };
69
+ };
70
+ title: {
71
+ true: {
72
+ description: string;
73
+ };
74
+ };
75
+ }, {
76
+ root: string;
77
+ wrapper: string;
78
+ title: string;
79
+ description: string;
80
+ icon: string;
81
+ actions: string;
82
+ close: string;
83
+ }, undefined>;
84
+ defaultVariants: import("@byyuurin/ui-kit/index").CVDefaultVariants<{
85
+ variant: {
86
+ solid: {
87
+ root: string;
88
+ close: string;
89
+ };
90
+ outline: {
91
+ root: string;
92
+ };
93
+ soft: {
94
+ root: string;
95
+ };
96
+ 'soft-outline': {
97
+ root: string;
98
+ };
99
+ };
100
+ orientation: {
101
+ horizontal: {
102
+ root: string;
103
+ actions: string;
104
+ };
105
+ vertical: {
106
+ root: string;
107
+ actions: string;
108
+ };
109
+ };
110
+ title: {
111
+ true: {
112
+ description: string;
113
+ };
114
+ };
115
+ }, {
116
+ root: string;
117
+ wrapper: string;
118
+ title: string;
119
+ description: string;
120
+ icon: string;
121
+ actions: string;
122
+ close: string;
123
+ }>;
124
+ };
125
+ export default _default;
@@ -0,0 +1,47 @@
1
+ import { ct } from "@byyuurin/ui-kit";
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ slots: {
6
+ root: "relative overflow-hidden w-full rounded-ui-box p-4 flex gap-2.5",
7
+ wrapper: "min-w-0 flex-1 flex flex-col",
8
+ title: "text-xl font-medium",
9
+ description: "opacity-80",
10
+ icon: "shrink-0 size-1.5em",
11
+ actions: "flex flex-wrap gap-1.5 shrink-0",
12
+ close: "p-0"
13
+ },
14
+ variants: {
15
+ variant: {
16
+ "solid": {
17
+ root: "color-ui-c1 bg-solid-ui-fill",
18
+ close: "ui-base-inverted"
19
+ },
20
+ "outline": {
21
+ root: "color-ui-content bg-solid-ui-c1 ring ring-inset ring-ui-fill"
22
+ },
23
+ "soft": {
24
+ root: "color-ui-content bg-solid-ui-fill/10"
25
+ },
26
+ "soft-outline": {
27
+ root: "color-ui-content bg-solid-ui-fill/10 ring ring-inset ring-ui-fill/40"
28
+ }
29
+ },
30
+ orientation: {
31
+ horizontal: {
32
+ root: "items-center",
33
+ actions: "items-center"
34
+ },
35
+ vertical: {
36
+ root: "items-start",
37
+ actions: "items-start mt-2.5"
38
+ }
39
+ },
40
+ title: {
41
+ true: {
42
+ description: "mt-1"
43
+ }
44
+ }
45
+ }
46
+ }
47
+ );
@@ -5,6 +5,11 @@ declare const _default: {
5
5
  check: string;
6
6
  indeterminate: string;
7
7
  down: string;
8
+ arrowLeft: string;
9
+ arrowRight: string;
10
+ doubleLeft: string;
11
+ doubleRight: string;
12
+ ellipsis: string;
8
13
  };
9
14
  };
10
15
  export default _default;
@@ -1,9 +1,15 @@
1
1
  export default {
2
+ /* @unocss-include */
2
3
  icons: {
3
4
  close: "i-mdi-close-thick",
4
5
  loading: "i-mdi-loading",
5
6
  check: "i-mdi-check-bold",
6
7
  indeterminate: "i-mdi-minus-thick",
7
- down: "i-mdi-chevron-down"
8
+ down: "i-mdi-chevron-down",
9
+ arrowLeft: "i-mdi-chevron-left",
10
+ arrowRight: "i-mdi-chevron-right",
11
+ doubleLeft: "i-mdi-chevron-double-left",
12
+ doubleRight: "i-mdi-chevron-double-right",
13
+ ellipsis: "i-mdi-dots-horizontal"
8
14
  }
9
15
  };
@@ -0,0 +1,82 @@
1
+ declare const _default: {
2
+ base: undefined;
3
+ slots: {
4
+ root: string;
5
+ base: string[];
6
+ };
7
+ variants: {
8
+ size: {
9
+ xs: {
10
+ root: string;
11
+ };
12
+ sm: {
13
+ root: string;
14
+ };
15
+ md: {
16
+ root: string;
17
+ };
18
+ lg: {
19
+ root: string;
20
+ };
21
+ xl: {
22
+ root: string;
23
+ };
24
+ };
25
+ position: {
26
+ 'top-right': {
27
+ base: string;
28
+ };
29
+ 'bottom-right': {
30
+ base: string;
31
+ };
32
+ 'top-left': {
33
+ base: string;
34
+ };
35
+ 'bottom-left': {
36
+ base: string;
37
+ };
38
+ };
39
+ show: {
40
+ true: {
41
+ base: string;
42
+ };
43
+ };
44
+ inset: {
45
+ true: "";
46
+ };
47
+ standalone: {
48
+ false: {
49
+ base: string;
50
+ };
51
+ };
52
+ };
53
+ compoundVariants: ({
54
+ position: "top-right";
55
+ inset: false;
56
+ class: {
57
+ base: string;
58
+ };
59
+ } | {
60
+ position: "bottom-right";
61
+ inset: false;
62
+ class: {
63
+ base: string;
64
+ };
65
+ } | {
66
+ position: "top-left";
67
+ inset: false;
68
+ class: {
69
+ base: string;
70
+ };
71
+ } | {
72
+ position: "bottom-left";
73
+ inset: false;
74
+ class: {
75
+ base: string;
76
+ };
77
+ })[];
78
+ defaultVariants: {
79
+ size: "md";
80
+ };
81
+ };
82
+ export default _default;
@@ -0,0 +1,92 @@
1
+ import { ct } from "@byyuurin/ui-kit";
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ slots: {
6
+ root: "relative inline-flex items-center justify-center shrink-0",
7
+ base: [
8
+ "inline-block rounded-full ring ring-ui-c1 flex items-center justify-center color-ui-c1 font-medium whitespace-nowrap",
9
+ "h-1.2em min-w-1.2em p-0.2em text-0.8em bg-solid-ui-fill"
10
+ ]
11
+ },
12
+ variants: {
13
+ size: {
14
+ xs: {
15
+ root: "text-xs"
16
+ },
17
+ sm: {
18
+ root: "text-sm"
19
+ },
20
+ md: {
21
+ root: "text-base"
22
+ },
23
+ lg: {
24
+ root: "text-lg"
25
+ },
26
+ xl: {
27
+ root: "text-xl"
28
+ }
29
+ },
30
+ position: {
31
+ "top-right": {
32
+ base: "top-0 right-0"
33
+ },
34
+ "bottom-right": {
35
+ base: "bottom-0 right-0"
36
+ },
37
+ "top-left": {
38
+ base: "top-0 left-0"
39
+ },
40
+ "bottom-left": {
41
+ base: "bottom-0 left-0"
42
+ }
43
+ },
44
+ show: {
45
+ true: {
46
+ base: "animate-[scale-in_200ms_ease-out]"
47
+ }
48
+ },
49
+ inset: {
50
+ true: ""
51
+ },
52
+ standalone: {
53
+ false: {
54
+ base: "absolute"
55
+ }
56
+ }
57
+ },
58
+ compoundVariants: [
59
+ {
60
+ position: "top-right",
61
+ inset: false,
62
+ class: {
63
+ base: "-translate-y-1/2 translate-x-1/2 transform"
64
+ }
65
+ },
66
+ {
67
+ position: "bottom-right",
68
+ inset: false,
69
+ class: {
70
+ base: "translate-y-1/2 translate-x-1/2 transform"
71
+ }
72
+ },
73
+ {
74
+ position: "top-left",
75
+ inset: false,
76
+ class: {
77
+ base: "-translate-y-1/2 -translate-x-1/2 transform"
78
+ }
79
+ },
80
+ {
81
+ position: "bottom-left",
82
+ inset: false,
83
+ class: {
84
+ base: "translate-y-1/2 -translate-x-1/2 transform"
85
+ }
86
+ }
87
+ ],
88
+ defaultVariants: {
89
+ size: "md"
90
+ }
91
+ }
92
+ );
@@ -0,0 +1,66 @@
1
+ declare const _default: {
2
+ base: string;
3
+ slots: undefined;
4
+ variants: {
5
+ size: {
6
+ xs: "";
7
+ sm: "";
8
+ md: "";
9
+ lg: "";
10
+ xl: "";
11
+ };
12
+ orientation: {
13
+ horizontal: "inline-flex -space-x-px";
14
+ vertical: "flex flex-col -space-y-px";
15
+ };
16
+ };
17
+ compoundVariants: import("@byyuurin/ui-kit/index").CVCompoundVariants<{
18
+ size: {
19
+ xs: "";
20
+ sm: "";
21
+ md: "";
22
+ lg: "";
23
+ xl: "";
24
+ };
25
+ orientation: {
26
+ horizontal: "inline-flex -space-x-px";
27
+ vertical: "flex flex-col -space-y-px";
28
+ };
29
+ }, undefined, "relative">;
30
+ defaultVariants: import("@byyuurin/ui-kit/index").CVDefaultVariants<{
31
+ size: {
32
+ xs: "";
33
+ sm: "";
34
+ md: "";
35
+ lg: "";
36
+ xl: "";
37
+ };
38
+ orientation: {
39
+ horizontal: "inline-flex -space-x-px";
40
+ vertical: "flex flex-col -space-y-px";
41
+ };
42
+ }, undefined>;
43
+ };
44
+ export default _default;
45
+ export declare const buttonGroupVariant: {
46
+ groupOrientation: {
47
+ horizontal: {
48
+ base: string;
49
+ };
50
+ vertical: {
51
+ base: string;
52
+ };
53
+ };
54
+ };
55
+ export declare const buttonGroupVariantWithRoot: {
56
+ groupOrientation: {
57
+ horizontal: {
58
+ root: string;
59
+ base: string;
60
+ };
61
+ vertical: {
62
+ root: string;
63
+ base: string;
64
+ };
65
+ };
66
+ };
@@ -0,0 +1,42 @@
1
+ import { ct } from "@byyuurin/ui-kit";
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ base: "relative",
6
+ variants: {
7
+ size: {
8
+ xs: "",
9
+ sm: "",
10
+ md: "",
11
+ lg: "",
12
+ xl: ""
13
+ },
14
+ orientation: {
15
+ horizontal: "inline-flex -space-x-px",
16
+ vertical: "flex flex-col -space-y-px"
17
+ }
18
+ }
19
+ }
20
+ );
21
+ export const buttonGroupVariant = {
22
+ groupOrientation: {
23
+ horizontal: {
24
+ base: "not-only-child:first:rounded-e-none not-only-child:last:rounded-s-none not-last:not-first:rounded-none"
25
+ },
26
+ vertical: {
27
+ base: "not-only-child:first:rounded-b-none not-only-child:last:rounded-t-none not-last:not-first:rounded-none"
28
+ }
29
+ }
30
+ };
31
+ export const buttonGroupVariantWithRoot = {
32
+ groupOrientation: {
33
+ horizontal: {
34
+ root: "group",
35
+ base: "group-not-only-child:group-first:rounded-e-none group-not-only-child:group-last:rounded-s-none group-not-last:group-not-first:rounded-none"
36
+ },
37
+ vertical: {
38
+ root: "group",
39
+ base: "group-not-only-child:group-first:rounded-b-none group-not-only-child:group-last:rounded-t-none group-not-last:group-not-first:rounded-none"
40
+ }
41
+ }
42
+ };
@@ -17,6 +17,9 @@ declare const _default: {
17
17
  soft: {
18
18
  base: string[];
19
19
  };
20
+ 'soft-outline': {
21
+ base: string[];
22
+ };
20
23
  ghost: {
21
24
  base: string[];
22
25
  };
@@ -53,6 +56,14 @@ declare const _default: {
53
56
  loading: {
54
57
  true: "";
55
58
  };
59
+ groupOrientation: {
60
+ horizontal: {
61
+ base: string;
62
+ };
63
+ vertical: {
64
+ base: string;
65
+ };
66
+ };
56
67
  };
57
68
  compoundVariants: ({
58
69
  size: ("xs" | "sm" | "md")[];
@@ -108,7 +119,7 @@ declare const _default: {
108
119
  suffix?: undefined;
109
120
  } | {
110
121
  active: true;
111
- variant: "soft";
122
+ variant: ("soft" | "soft-outline")[];
112
123
  class: {
113
124
  base: string;
114
125
  label?: undefined;
@@ -172,5 +183,8 @@ declare const _default: {
172
183
  active?: undefined;
173
184
  variant?: undefined;
174
185
  })[];
186
+ defaultVariants: {
187
+ size: "md";
188
+ };
175
189
  };
176
190
  export default _default;