@kuina-ui/vue 0.3.0 → 0.5.0

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 (39) hide show
  1. package/README.md +143 -143
  2. package/dist/components/date-picker/DateCalendar.vue.d.ts +2 -3
  3. package/dist/components/date-picker/DateCalendarPopover.vue.d.ts +61 -0
  4. package/dist/components/date-picker/DatePicker.vue.d.ts +3 -9
  5. package/dist/components/date-picker/DatePickerField.vue.d.ts +38 -0
  6. package/dist/components/date-picker/DateRangePicker.vue.d.ts +4 -18
  7. package/dist/components/date-picker/DateRangePickerField.vue.d.ts +40 -0
  8. package/dist/components/date-picker/datePickerProps.d.ts +42 -6
  9. package/dist/components/date-picker/index.d.ts +8 -2
  10. package/dist/components/date-picker/useDatePickerControl.d.ts +63 -0
  11. package/dist/components/date-picker/useDatePickerPopover.d.ts +2 -2
  12. package/dist/components/date-picker/useDateRangeSelection.d.ts +30 -0
  13. package/dist/components/date-picker/useDateRangeTyping.d.ts +45 -0
  14. package/dist/components/date-picker/useDateTypingFocus.d.ts +28 -0
  15. package/dist/components/date-picker/useSingleDateSelection.d.ts +15 -0
  16. package/dist/components/date-picker/useSingleDateTyping.d.ts +43 -0
  17. package/dist/components/date-picker/useTypedDateInput.d.ts +32 -0
  18. package/dist/components/select/SelectField.vue.d.ts +5 -5
  19. package/dist/components/text-field/TextField.vue.d.ts +7 -1
  20. package/dist/elements/segmented-control/SegmentedControl.vue.d.ts +35 -0
  21. package/dist/elements/segmented-control/index.d.ts +2 -0
  22. package/dist/elements/segmented-control/segmented-control.theme.d.ts +62 -0
  23. package/dist/elements/select-field-control/SelectFieldControl.vue.d.ts +61 -0
  24. package/dist/elements/select-field-control/index.d.ts +3 -0
  25. package/dist/elements/select-field-control/select-field-control.theme.d.ts +101 -0
  26. package/dist/elements/text-link/TextLink.vue.d.ts +1 -1
  27. package/dist/index.d.ts +7 -2
  28. package/dist/index.js +1 -1
  29. package/dist/nuxt.js +1 -1
  30. package/dist/shared/composables/useMask.d.ts +10 -0
  31. package/dist/shared/composables/useSlidingThumb.d.ts +12 -0
  32. package/dist/shared/types/mask.d.ts +17 -0
  33. package/dist/shared/utils/createDateInputMask.d.ts +19 -0
  34. package/dist/shared/utils/createMask.d.ts +10 -0
  35. package/dist/shared/utils/isoDate.d.ts +8 -0
  36. package/dist/shared/utils/resolvePressScale.d.ts +2 -0
  37. package/dist/{src-Cl5gtlze.js → src-Bnn36nLV.js} +3952 -2465
  38. package/package.json +75 -75
  39. package/dist/components/select/select-field.theme.d.ts +0 -250
package/package.json CHANGED
@@ -1,75 +1,75 @@
1
- {
2
- "name": "@kuina-ui/vue",
3
- "version": "0.3.0",
4
- "description": "Free, open-source Vue component library built with Tailwind CSS v4, in light and dark themes",
5
- "keywords": [
6
- "kuina-ui",
7
- "vue",
8
- "nuxt",
9
- "ui-kit",
10
- "components",
11
- "tailwindcss",
12
- "tailwindcss-v4",
13
- "dark-mode"
14
- ],
15
- "homepage": "https://kuina-ui.github.io/docs/",
16
- "bugs": {
17
- "url": "https://github.com/Kuina-UI/vue/issues"
18
- },
19
- "repository": {
20
- "type": "git",
21
- "url": "git+https://github.com/Kuina-UI/vue.git"
22
- },
23
- "license": "MIT",
24
- "author": "Kuina",
25
- "type": "module",
26
- "files": [
27
- "dist",
28
- "src/index.css",
29
- "src/shared/styles"
30
- ],
31
- "exports": {
32
- ".": {
33
- "types": "./dist/index.d.ts",
34
- "style": "./src/index.css",
35
- "import": "./dist/index.js"
36
- },
37
- "./nuxt": {
38
- "types": "./dist/nuxt.d.ts",
39
- "import": "./dist/nuxt.js"
40
- }
41
- },
42
- "sideEffects": [
43
- "*.css"
44
- ],
45
- "scripts": {
46
- "build": "vite build && vue-tsc -p tsconfig.build.json",
47
- "typecheck": "vue-tsc --noEmit",
48
- "test": "vitest run",
49
- "prepack": "npm run build"
50
- },
51
- "peerDependencies": {
52
- "tailwindcss": "^4.0.0",
53
- "vue": "^3.5.0"
54
- },
55
- "dependencies": {
56
- "@nuxt/kit": "^4.6.4",
57
- "@tailwindcss/vite": "^4.3.5",
58
- "lucide-vue-next": "^1.0.0",
59
- "tailwind-variants": "^4.0.2"
60
- },
61
- "devDependencies": {
62
- "@nuxt/schema": "^4.6.4",
63
- "@vitejs/plugin-vue": "^6.0.11",
64
- "@vue/tsconfig": "^0.9.1",
65
- "happy-dom": "^21.0.4",
66
- "typescript": "^6.0.3",
67
- "vite": "^8.3.8",
68
- "vitest": "^5.1.1",
69
- "vue": "^3.5.46",
70
- "vue-tsc": "^3.3.14"
71
- },
72
- "publishConfig": {
73
- "access": "public"
74
- }
75
- }
1
+ {
2
+ "name": "@kuina-ui/vue",
3
+ "version": "0.5.0",
4
+ "description": "Free, open-source Vue component library built with Tailwind CSS v4, in light and dark themes",
5
+ "keywords": [
6
+ "kuina-ui",
7
+ "vue",
8
+ "nuxt",
9
+ "ui-kit",
10
+ "components",
11
+ "tailwindcss",
12
+ "tailwindcss-v4",
13
+ "dark-mode"
14
+ ],
15
+ "homepage": "https://kuina-ui.github.io/docs/",
16
+ "bugs": {
17
+ "url": "https://github.com/Kuina-UI/vue/issues"
18
+ },
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/Kuina-UI/vue.git"
22
+ },
23
+ "license": "MIT",
24
+ "author": "Kuina",
25
+ "type": "module",
26
+ "files": [
27
+ "dist",
28
+ "src/index.css",
29
+ "src/shared/styles"
30
+ ],
31
+ "exports": {
32
+ ".": {
33
+ "types": "./dist/index.d.ts",
34
+ "style": "./src/index.css",
35
+ "import": "./dist/index.js"
36
+ },
37
+ "./nuxt": {
38
+ "types": "./dist/nuxt.d.ts",
39
+ "import": "./dist/nuxt.js"
40
+ }
41
+ },
42
+ "sideEffects": [
43
+ "*.css"
44
+ ],
45
+ "scripts": {
46
+ "build": "vite build && vue-tsc -p tsconfig.build.json",
47
+ "typecheck": "vue-tsc --noEmit",
48
+ "test": "vitest run",
49
+ "prepack": "npm run build"
50
+ },
51
+ "peerDependencies": {
52
+ "tailwindcss": "^4.0.0",
53
+ "vue": "^3.5.0"
54
+ },
55
+ "dependencies": {
56
+ "@nuxt/kit": "^4.6.4",
57
+ "@tailwindcss/vite": "^4.3.5",
58
+ "lucide-vue-next": "^1.0.0",
59
+ "tailwind-variants": "^4.0.2"
60
+ },
61
+ "devDependencies": {
62
+ "@nuxt/schema": "^4.6.4",
63
+ "@vitejs/plugin-vue": "^6.0.11",
64
+ "@vue/tsconfig": "^0.9.1",
65
+ "happy-dom": "^21.0.4",
66
+ "typescript": "^6.0.3",
67
+ "vite": "^8.3.8",
68
+ "vitest": "^5.1.1",
69
+ "vue": "^3.5.46",
70
+ "vue-tsc": "^3.3.14"
71
+ },
72
+ "publishConfig": {
73
+ "access": "public"
74
+ }
75
+ }
@@ -1,250 +0,0 @@
1
- import { type VariantProps } from '../../shared/utils/tv';
2
- declare const selectFieldSizeScales: {
3
- md: {
4
- height: string;
5
- fontSize: string;
6
- leadingIconSize: string;
7
- leadingAvatarSize: "3xs";
8
- trailingIconSize: string;
9
- loadingIndicatorSize: string;
10
- clearButtonSize: string;
11
- clearIconSize: string;
12
- floatingLabelFontSize: string;
13
- restingLabelFontSize: string;
14
- pillShape: {
15
- corners: string;
16
- gutter: string;
17
- labelOffset: string;
18
- restingLabelOffsetWithLeadingIcon: string;
19
- };
20
- roundedShape: {
21
- corners: string;
22
- gutter: string;
23
- labelOffset: string;
24
- restingLabelOffsetWithLeadingIcon: string;
25
- };
26
- };
27
- lg: {
28
- height: string;
29
- fontSize: string;
30
- leadingIconSize: string;
31
- leadingAvatarSize: "3xs";
32
- trailingIconSize: string;
33
- loadingIndicatorSize: string;
34
- clearButtonSize: string;
35
- clearIconSize: string;
36
- floatingLabelFontSize: string;
37
- restingLabelFontSize: string;
38
- pillShape: {
39
- corners: string;
40
- gutter: string;
41
- labelOffset: string;
42
- restingLabelOffsetWithLeadingIcon: string;
43
- };
44
- roundedShape: {
45
- corners: string;
46
- gutter: string;
47
- labelOffset: string;
48
- restingLabelOffsetWithLeadingIcon: string;
49
- };
50
- };
51
- xl: {
52
- height: string;
53
- fontSize: string;
54
- leadingIconSize: string;
55
- leadingAvatarSize: "2xs";
56
- trailingIconSize: string;
57
- loadingIndicatorSize: string;
58
- clearButtonSize: string;
59
- clearIconSize: string;
60
- floatingLabelFontSize: string;
61
- restingLabelFontSize: string;
62
- pillShape: {
63
- corners: string;
64
- gutter: string;
65
- labelOffset: string;
66
- restingLabelOffsetWithLeadingIcon: string;
67
- };
68
- roundedShape: {
69
- corners: string;
70
- gutter: string;
71
- labelOffset: string;
72
- restingLabelOffsetWithLeadingIcon: string;
73
- };
74
- };
75
- '2xl': {
76
- height: string;
77
- fontSize: string;
78
- leadingIconSize: string;
79
- leadingAvatarSize: "xs";
80
- trailingIconSize: string;
81
- loadingIndicatorSize: string;
82
- clearButtonSize: string;
83
- clearIconSize: string;
84
- floatingLabelFontSize: string;
85
- restingLabelFontSize: string;
86
- pillShape: {
87
- corners: string;
88
- gutter: string;
89
- labelOffset: string;
90
- restingLabelOffsetWithLeadingIcon: string;
91
- };
92
- roundedShape: {
93
- corners: string;
94
- gutter: string;
95
- labelOffset: string;
96
- restingLabelOffsetWithLeadingIcon: string;
97
- };
98
- };
99
- '3xl': {
100
- height: string;
101
- fontSize: string;
102
- leadingIconSize: string;
103
- leadingAvatarSize: "sm";
104
- trailingIconSize: string;
105
- loadingIndicatorSize: string;
106
- clearButtonSize: string;
107
- clearIconSize: string;
108
- floatingLabelFontSize: string;
109
- restingLabelFontSize: string;
110
- pillShape: {
111
- corners: string;
112
- gutter: string;
113
- labelOffset: string;
114
- restingLabelOffsetWithLeadingIcon: string;
115
- };
116
- roundedShape: {
117
- corners: string;
118
- gutter: string;
119
- labelOffset: string;
120
- restingLabelOffsetWithLeadingIcon: string;
121
- };
122
- };
123
- '4xl': {
124
- height: string;
125
- fontSize: string;
126
- leadingIconSize: string;
127
- leadingAvatarSize: "md";
128
- trailingIconSize: string;
129
- loadingIndicatorSize: string;
130
- clearButtonSize: string;
131
- clearIconSize: string;
132
- floatingLabelFontSize: string;
133
- restingLabelFontSize: string;
134
- pillShape: {
135
- corners: string;
136
- gutter: string;
137
- labelOffset: string;
138
- restingLabelOffsetWithLeadingIcon: string;
139
- };
140
- roundedShape: {
141
- corners: string;
142
- gutter: string;
143
- labelOffset: string;
144
- restingLabelOffsetWithLeadingIcon: string;
145
- };
146
- };
147
- };
148
- type SelectFieldSizeName = keyof typeof selectFieldSizeScales;
149
- export declare function findSelectFieldAvatarSize(selectFieldSize: SelectFieldSizeName): "3xs" | "2xs" | "xs" | "sm" | "md";
150
- export declare const selectFieldTheme: import("tailwind-variants").TVReturnType<{
151
- size: Record<"md" | "lg" | "xl" | "2xl" | "3xl" | "4xl", {
152
- base: string[];
153
- leadingIcon: string;
154
- trailingIcon: string;
155
- loadingIndicator: string;
156
- clearButton: string;
157
- clearIcon: string;
158
- }>;
159
- variant: {
160
- outline: string;
161
- soft: string;
162
- };
163
- pill: {
164
- true: string;
165
- false: string;
166
- };
167
- fieldState: {
168
- invalid: {
169
- base: string;
170
- label: string;
171
- };
172
- disabled: {
173
- label: string;
174
- };
175
- open: {
176
- base: string;
177
- label: string;
178
- };
179
- idle: {
180
- label: string;
181
- };
182
- };
183
- floatLabel: {
184
- auto: string;
185
- always: {
186
- placeholder: string;
187
- input: string;
188
- };
189
- };
190
- labelFloating: {
191
- true: {
192
- label: string;
193
- };
194
- false: {
195
- label: string;
196
- };
197
- };
198
- hasLeadingIcon: {
199
- true: string;
200
- false: string;
201
- };
202
- disabled: {
203
- true: {
204
- container: string;
205
- base: string;
206
- };
207
- false: {
208
- base: string;
209
- };
210
- };
211
- open: {
212
- true: {
213
- trailingIcon: string;
214
- placeholder: string;
215
- };
216
- false: {
217
- trailingIcon: string;
218
- };
219
- };
220
- hasTrailingIcon: {
221
- true: {
222
- clearButton: string;
223
- };
224
- false: {
225
- clearButton: string;
226
- };
227
- };
228
- }, {
229
- root: string;
230
- container: string;
231
- base: string;
232
- leadingIcon: string;
233
- leadingAvatar: string;
234
- value: string;
235
- input: string;
236
- placeholder: string;
237
- selectionForScreenReaders: string;
238
- trailing: string;
239
- clearButton: string;
240
- clearIcon: string;
241
- loadingIndicator: string;
242
- trailingIcon: string;
243
- label: string;
244
- hint: string;
245
- errorMessage: string;
246
- errorIcon: string;
247
- }, undefined, undefined, undefined, undefined>;
248
- export type SelectFieldThemeVariants = VariantProps<typeof selectFieldTheme>;
249
- export type SelectFieldSlotName = keyof ReturnType<typeof selectFieldTheme>;
250
- export {};