@byyuurin/ui 0.0.9 → 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 (91) hide show
  1. package/README.md +0 -3
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +1 -1
  4. package/dist/runtime/app/injections.d.ts +9299 -3
  5. package/dist/runtime/app/injections.js +35 -0
  6. package/dist/runtime/components/Accordion.vue +16 -20
  7. package/dist/runtime/components/Alert.vue +1 -1
  8. package/dist/runtime/components/Badge.vue +1 -1
  9. package/dist/runtime/components/Breadcrumb.vue +17 -21
  10. package/dist/runtime/components/Calendar.vue +15 -6
  11. package/dist/runtime/components/Carousel.vue +5 -3
  12. package/dist/runtime/components/Checkbox.vue +12 -7
  13. package/dist/runtime/components/Drawer.vue +12 -12
  14. package/dist/runtime/components/DropdownMenu.vue +143 -0
  15. package/dist/runtime/components/DropdownMenuContent.vue +188 -0
  16. package/dist/runtime/components/Form.vue +311 -0
  17. package/dist/runtime/components/FormItem.vue +129 -0
  18. package/dist/runtime/components/Input.vue +27 -13
  19. package/dist/runtime/components/InputNumber.vue +22 -14
  20. package/dist/runtime/components/Link.vue +17 -2
  21. package/dist/runtime/components/Modal.vue +11 -11
  22. package/dist/runtime/components/PinInput.vue +22 -13
  23. package/dist/runtime/components/Popover.vue +3 -3
  24. package/dist/runtime/components/RadioGroup.vue +50 -46
  25. package/dist/runtime/components/Select.vue +90 -80
  26. package/dist/runtime/components/Slider.vue +12 -7
  27. package/dist/runtime/components/Switch.vue +12 -6
  28. package/dist/runtime/components/Table.vue +21 -8
  29. package/dist/runtime/components/Tabs.vue +12 -11
  30. package/dist/runtime/components/Textarea.vue +19 -13
  31. package/dist/runtime/components/Toast.vue +6 -3
  32. package/dist/runtime/components/Tooltip.vue +3 -3
  33. package/dist/runtime/composables/useFormItem.d.ts +27 -0
  34. package/dist/runtime/composables/useFormItem.js +64 -0
  35. package/dist/runtime/composables/useTheme.js +2 -1
  36. package/dist/runtime/index.d.ts +3 -0
  37. package/dist/runtime/index.js +3 -0
  38. package/dist/runtime/theme/app.d.ts +1 -0
  39. package/dist/runtime/theme/app.js +2 -1
  40. package/dist/runtime/theme/badge.d.ts +21 -45
  41. package/dist/runtime/theme/breadcrumb.d.ts +3 -3
  42. package/dist/runtime/theme/button.d.ts +111 -57
  43. package/dist/runtime/theme/calendar.d.ts +2 -2
  44. package/dist/runtime/theme/chip.d.ts +11 -44
  45. package/dist/runtime/theme/drawer.d.ts +68 -33
  46. package/dist/runtime/theme/dropdown-menu.d.ts +71 -0
  47. package/dist/runtime/theme/dropdown-menu.js +83 -0
  48. package/dist/runtime/theme/form-item.d.ts +76 -0
  49. package/dist/runtime/theme/form-item.js +34 -0
  50. package/dist/runtime/theme/form.d.ts +8 -0
  51. package/dist/runtime/theme/form.js +7 -0
  52. package/dist/runtime/theme/index.d.ts +3 -0
  53. package/dist/runtime/theme/index.js +3 -0
  54. package/dist/runtime/theme/input-number.d.ts +41 -61
  55. package/dist/runtime/theme/input.d.ts +99 -71
  56. package/dist/runtime/theme/input.js +2 -2
  57. package/dist/runtime/theme/modal.d.ts +5 -33
  58. package/dist/runtime/theme/pinInput.d.ts +42 -42
  59. package/dist/runtime/theme/pinInput.js +1 -1
  60. package/dist/runtime/theme/progress.d.ts +117 -53
  61. package/dist/runtime/theme/select.d.ts +100 -84
  62. package/dist/runtime/theme/select.js +2 -1
  63. package/dist/runtime/theme/separator.d.ts +13 -28
  64. package/dist/runtime/theme/table.d.ts +3 -0
  65. package/dist/runtime/theme/table.js +2 -1
  66. package/dist/runtime/theme/tabs.d.ts +51 -68
  67. package/dist/runtime/theme/textarea.d.ts +37 -43
  68. package/dist/runtime/theme/textarea.js +1 -1
  69. package/dist/runtime/theme/toast-provider.d.ts +26 -41
  70. package/dist/runtime/types/components.d.ts +3 -0
  71. package/dist/runtime/types/form.d.ts +45 -0
  72. package/dist/runtime/types/form.js +0 -0
  73. package/dist/runtime/types/index.d.ts +5 -2
  74. package/dist/runtime/types/index.js +1 -0
  75. package/dist/runtime/types/utils.d.ts +32 -11
  76. package/dist/runtime/utils/extend-theme.js +15 -4
  77. package/dist/runtime/utils/form.d.ts +5 -0
  78. package/dist/runtime/utils/form.js +24 -0
  79. package/dist/runtime/utils/index.d.ts +2 -0
  80. package/dist/runtime/utils/index.js +4 -0
  81. package/dist/runtime/utils/link.d.ts +4 -26
  82. package/dist/runtime/utils/link.js +10 -3
  83. package/dist/shared/ui.3e7fad19.mjs +5 -0
  84. package/dist/shared/ui.3e7fad19.mjs.map +1 -0
  85. package/dist/unocss.mjs +2 -2
  86. package/dist/unocss.mjs.map +1 -1
  87. package/dist/unplugin.mjs +1 -1
  88. package/dist/vite.mjs +1 -1
  89. package/package.json +16 -14
  90. package/dist/shared/ui.1a1f119c.mjs +0 -5
  91. package/dist/shared/ui.1a1f119c.mjs.map +0 -1
@@ -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
  };
@@ -30,7 +30,7 @@ export default ct(
30
30
  container: [
31
31
  "color-ui-base/80 bg-ui-base ring ring-inset ring-ui-base/30",
32
32
  "focus-within:ring-2 focus-within:ring-ui-base/50",
33
- "aria-disabled:ring-ui-base/80 hover:aria-disabled:ring-ui-base/80"
33
+ "aria-disabled:ring-ui-base/15 hover:aria-disabled:ring-ui-base/15"
34
34
  ]
35
35
  },
36
36
  "soft": {
@@ -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
  };
@@ -85,91 +85,107 @@ declare const _default: {
85
85
  };
86
86
  };
87
87
  };
88
- compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
89
- variant: {
90
- outline: {
91
- base: string[];
92
- };
93
- soft: {
94
- base: string[];
95
- };
96
- 'soft-outline': {
97
- base: string[];
98
- };
99
- ghost: {
100
- base: string[];
101
- };
102
- none: {
103
- base: string;
104
- };
105
- };
106
- size: {
107
- xs: {
108
- base: string;
109
- item: string;
110
- };
111
- sm: {
112
- base: string;
113
- item: string;
114
- };
115
- md: {
116
- base: string;
117
- item: string;
118
- };
119
- lg: {
120
- base: string;
121
- item: string;
122
- };
123
- xl: {
124
- base: string;
125
- item: string;
126
- };
127
- };
128
- leading: {
129
- true: "";
130
- };
131
- trailing: {
132
- true: "";
133
- };
134
- loading: {
135
- true: "";
136
- };
137
- underline: {
138
- true: "";
139
- };
140
- highlight: {
141
- true: "";
142
- };
143
- groupOrientation: {
144
- horizontal: {
145
- base: string;
146
- };
147
- vertical: {
148
- base: string;
149
- };
150
- };
151
- }, {
152
- base: string[];
153
- value: string;
154
- placeholder: string;
155
- arrow: string;
156
- content: string[];
157
- viewport: string;
158
- group: string;
159
- empty: string;
160
- label: string;
161
- separator: string;
162
- item: string[];
163
- itemLeadingIcon: string;
164
- itemTrailing: string;
165
- itemTrailingIcon: string;
166
- itemLabel: string;
167
- leading: string;
168
- leadingIcon: string;
169
- trailing: string;
170
- trailingIcon: string;
171
- }, undefined>;
88
+ compoundVariants: ({
89
+ variant: ("soft" | "ghost" | "none")[];
90
+ highlight: false;
91
+ underline: true;
92
+ class: {
93
+ base: string[];
94
+ item?: undefined;
95
+ leadingIcon?: undefined;
96
+ trailingIcon?: undefined;
97
+ };
98
+ size?: undefined;
99
+ loading?: undefined;
100
+ leading?: undefined;
101
+ trailing?: undefined;
102
+ } | {
103
+ size: ("xs" | "sm" | "md")[];
104
+ class: {
105
+ base: string;
106
+ item: string;
107
+ leadingIcon?: undefined;
108
+ trailingIcon?: undefined;
109
+ };
110
+ variant?: undefined;
111
+ highlight?: undefined;
112
+ underline?: undefined;
113
+ loading?: undefined;
114
+ leading?: undefined;
115
+ trailing?: undefined;
116
+ } | {
117
+ size: ("lg" | "xl")[];
118
+ class: {
119
+ base: string;
120
+ item: string;
121
+ leadingIcon?: undefined;
122
+ trailingIcon?: undefined;
123
+ };
124
+ variant?: undefined;
125
+ highlight?: undefined;
126
+ underline?: undefined;
127
+ loading?: undefined;
128
+ leading?: undefined;
129
+ trailing?: undefined;
130
+ } | {
131
+ variant: ("soft" | "soft-outline" | "ghost" | "none")[];
132
+ highlight: true;
133
+ class: {
134
+ base: string;
135
+ item?: undefined;
136
+ leadingIcon?: undefined;
137
+ trailingIcon?: undefined;
138
+ };
139
+ underline?: undefined;
140
+ size?: undefined;
141
+ loading?: undefined;
142
+ leading?: undefined;
143
+ trailing?: undefined;
144
+ } | {
145
+ variant: "outline"[];
146
+ highlight: true;
147
+ class: {
148
+ base: string;
149
+ item?: undefined;
150
+ leadingIcon?: undefined;
151
+ trailingIcon?: undefined;
152
+ };
153
+ underline?: undefined;
154
+ size?: undefined;
155
+ loading?: undefined;
156
+ leading?: undefined;
157
+ trailing?: undefined;
158
+ } | {
159
+ loading: true;
160
+ leading: true;
161
+ class: {
162
+ leadingIcon: string;
163
+ base?: undefined;
164
+ item?: undefined;
165
+ trailingIcon?: undefined;
166
+ };
167
+ variant?: undefined;
168
+ highlight?: undefined;
169
+ underline?: undefined;
170
+ size?: undefined;
171
+ trailing?: undefined;
172
+ } | {
173
+ loading: true;
174
+ leading: false;
175
+ trailing: true;
176
+ class: {
177
+ trailingIcon: string;
178
+ base?: undefined;
179
+ item?: undefined;
180
+ leadingIcon?: undefined;
181
+ };
182
+ variant?: undefined;
183
+ highlight?: undefined;
184
+ underline?: undefined;
185
+ size?: undefined;
186
+ })[];
172
187
  defaultVariants: {
188
+ variant: "outline";
173
189
  size: "md";
174
190
  };
175
191
  };
@@ -43,7 +43,7 @@ export default ct(
43
43
  base: [
44
44
  "color-ui-base/80 bg-ui-base ring ring-inset ring-ui-base/30 data-[state=open]:ring-2 data-[state=open]:ring-ui-base/50",
45
45
  "focus-within:ring-2 focus-within:ring-ui-base/50",
46
- "disabled:ring-ui-base/80 hover:disabled:ring-ui-base/80"
46
+ "disabled:ring-ui-base/15 hover:disabled:ring-ui-base/15"
47
47
  ]
48
48
  },
49
49
  "soft": {
@@ -166,6 +166,7 @@ export default ct(
166
166
  }
167
167
  ],
168
168
  defaultVariants: {
169
+ variant: "outline",
169
170
  size: "md"
170
171
  }
171
172
  }
@@ -31,36 +31,21 @@ declare const _default: {
31
31
  };
32
32
  };
33
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
- };
34
+ compoundVariants: ({
35
+ orientation: "vertical";
36
+ start: true;
37
+ class: {
38
+ line: string;
51
39
  };
52
- end: {
53
- true: {
54
- line: string;
55
- };
40
+ end?: undefined;
41
+ } | {
42
+ orientation: "vertical";
43
+ end: true;
44
+ class: {
45
+ line: string;
56
46
  };
57
- }, {
58
- root: string;
59
- line: string;
60
- container: string;
61
- icon: string;
62
- label: string;
63
- }, undefined>;
47
+ start?: undefined;
48
+ })[];
64
49
  defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
65
50
  orientation: {
66
51
  horizontal: {
@@ -10,6 +10,7 @@ declare const _default: {
10
10
  th: string;
11
11
  td: string;
12
12
  empty: string;
13
+ loading: string;
13
14
  };
14
15
  variants: {
15
16
  sticky: {
@@ -56,6 +57,7 @@ declare const _default: {
56
57
  th: string;
57
58
  td: string;
58
59
  empty: string;
60
+ loading: string;
59
61
  }, undefined>;
60
62
  defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
61
63
  sticky: {
@@ -84,6 +86,7 @@ declare const _default: {
84
86
  th: string;
85
87
  td: string;
86
88
  empty: string;
89
+ loading: string;
87
90
  }>;
88
91
  };
89
92
  export default _default;
@@ -11,7 +11,8 @@ export default ct(
11
11
  tr: "data-[selected=true]:bg-soft-ui-cb/50",
12
12
  th: "px-4 py-3.5 text-sm color-ui-base text-left rtl:text-right font-semibold [&:has([role=checkbox])]:pe-0",
13
13
  td: "p-4 text-sm color-ui-base/80 whitespace-nowrap [&:has([role=checkbox])]:pe-0",
14
- empty: "py-6 text-center text-sm color-ui-base/80"
14
+ empty: "py-6 text-center text-sm color-ui-base/80",
15
+ loading: ""
15
16
  },
16
17
  variants: {
17
18
  sticky: {