@rocketui/vue 0.2.68 → 0.2.70

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 (57) hide show
  1. package/dist/rocket-ui-vue.js +912 -896
  2. package/dist/rocket-ui-vue.umd.cjs +1 -1
  3. package/dist/style.css +1 -1
  4. package/dist/types/components/Accordion/RAccordion.vue.d.ts +70 -0
  5. package/dist/types/components/Accordion/RAccordion.vue.d.ts.map +1 -0
  6. package/dist/types/components/Alert/RAlert.vue.d.ts +109 -0
  7. package/dist/types/components/Alert/RAlert.vue.d.ts.map +1 -0
  8. package/dist/types/components/Avatar/RAvatar.vue.d.ts +92 -0
  9. package/dist/types/components/Avatar/RAvatar.vue.d.ts.map +1 -0
  10. package/dist/types/components/Badge/RBadge.vue.d.ts +143 -0
  11. package/dist/types/components/Badge/RBadge.vue.d.ts.map +1 -0
  12. package/dist/types/components/Breadcrumb/RBreadcrumb.vue.d.ts +50 -0
  13. package/dist/types/components/Breadcrumb/RBreadcrumb.vue.d.ts.map +1 -0
  14. package/dist/types/components/Button/RButton.vue.d.ts +155 -0
  15. package/dist/types/components/Button/RButton.vue.d.ts.map +1 -0
  16. package/dist/types/components/Checkbox/RCheckbox.vue.d.ts +120 -0
  17. package/dist/types/components/Checkbox/RCheckbox.vue.d.ts.map +1 -0
  18. package/dist/types/components/Chips/RChip.vue.d.ts +132 -0
  19. package/dist/types/components/Chips/RChip.vue.d.ts.map +1 -0
  20. package/dist/types/components/Dropdown/RDropdown.vue.d.ts +415 -0
  21. package/dist/types/components/Dropdown/RDropdown.vue.d.ts.map +1 -0
  22. package/dist/types/components/Icon/RIcon.vue.d.ts +59 -0
  23. package/dist/types/components/Icon/RIcon.vue.d.ts.map +1 -0
  24. package/dist/types/components/ItemGroup/RItem.vue.d.ts +65 -0
  25. package/dist/types/components/ItemGroup/RItem.vue.d.ts.map +1 -0
  26. package/dist/types/components/ItemGroup/RItemGroup.vue.d.ts +123 -0
  27. package/dist/types/components/ItemGroup/RItemGroup.vue.d.ts.map +1 -0
  28. package/dist/types/components/Label/RLabel.vue.d.ts +68 -0
  29. package/dist/types/components/Label/RLabel.vue.d.ts.map +1 -0
  30. package/dist/types/components/Modal/RModal.vue.d.ts +183 -0
  31. package/dist/types/components/Modal/RModal.vue.d.ts.map +1 -0
  32. package/dist/types/components/Pagination/RPagination.vue.d.ts +110 -0
  33. package/dist/types/components/Pagination/RPagination.vue.d.ts.map +1 -0
  34. package/dist/types/components/ProgressBar/RProgressbar.vue.d.ts +34 -0
  35. package/dist/types/components/ProgressBar/RProgressbar.vue.d.ts.map +1 -0
  36. package/dist/types/components/Radio/RRadio.vue.d.ts +66 -0
  37. package/dist/types/components/Radio/RRadio.vue.d.ts.map +1 -0
  38. package/dist/types/components/Sidebar/RSidebar.vue.d.ts +53 -0
  39. package/dist/types/components/Sidebar/RSidebar.vue.d.ts.map +1 -0
  40. package/dist/types/components/Snackbar/RSnackbar.vue.d.ts +113 -0
  41. package/dist/types/components/Snackbar/RSnackbar.vue.d.ts.map +1 -0
  42. package/dist/types/components/Switch/RSwitch.vue.d.ts +135 -0
  43. package/dist/types/components/Switch/RSwitch.vue.d.ts.map +1 -0
  44. package/dist/types/components/TabItem/RTabItem.vue.d.ts +155 -0
  45. package/dist/types/components/TabItem/RTabItem.vue.d.ts.map +1 -0
  46. package/dist/types/components/Tabs/RTabs.vue.d.ts +95 -0
  47. package/dist/types/components/Tabs/RTabs.vue.d.ts.map +1 -0
  48. package/dist/types/components/TextArea/RTextArea.vue.d.ts +120 -0
  49. package/dist/types/components/TextArea/RTextArea.vue.d.ts.map +1 -0
  50. package/dist/types/components/Textfield/RTextfield.vue.d.ts +249 -0
  51. package/dist/types/components/Textfield/RTextfield.vue.d.ts.map +1 -0
  52. package/dist/types/components/Tooltip/RTooltip.vue.d.ts +253 -0
  53. package/dist/types/components/Tooltip/RTooltip.vue.d.ts.map +1 -0
  54. package/dist/types/lib/main.d.ts +26 -0
  55. package/dist/types/lib/main.d.ts.map +1 -0
  56. package/package.json +1 -1
  57. package/dist/rocket-ui-vue.d.ts +0 -3306
@@ -0,0 +1,415 @@
1
+ import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
2
+ export interface Option {
3
+ [key: string]: any;
4
+ value: string | number;
5
+ label: string;
6
+ prependIcon?: string;
7
+ disabled?: boolean;
8
+ }
9
+ export interface SelectProps {
10
+ /**
11
+ * Options of the Dropdown
12
+ * @type {Option[]}
13
+ * @default []
14
+ * @example
15
+ * <Dropdown
16
+ * :options="[
17
+ * {
18
+ * value: '1',
19
+ * label: 'Option 1',
20
+ * },
21
+ * {
22
+ * value: '2',
23
+ * label: '2',
24
+ * },
25
+ * ]"
26
+ * />
27
+ */
28
+ options: Option[] | any;
29
+ /**
30
+ * Value of the Dropdown
31
+ * @type {string | number | Option | Option[]}
32
+ * @default ''
33
+ * @example
34
+ * <Dropdown v-model="model" />
35
+ */
36
+ modelValue: string | number | Option | Option[] | any;
37
+ /**
38
+ * Placeholder Dropdown
39
+ * @type {InputHTMLAttributes['placeholder']}
40
+ * @default ''
41
+ * @example
42
+ * <Dropdown placeholder="Placeholder" />
43
+ * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#placeholder
44
+ */
45
+ placeholder?: string;
46
+ /**
47
+ * Allow to select multiple options as chips
48
+ * @type {boolean}
49
+ * @default false
50
+ * @example
51
+ * <Dropdown chips />
52
+ */
53
+ chips?: boolean;
54
+ /**
55
+ * Allow to select multiple options
56
+ * @type {boolean}
57
+ * @default false
58
+ * @example
59
+ * <Dropdown multiple />
60
+ */
61
+ multiple?: boolean;
62
+ /**
63
+ * Disable the Dropdown
64
+ * @type {boolean}
65
+ * @default false
66
+ * @example
67
+ * <Dropdown disabled />
68
+ */
69
+ disabled?: boolean;
70
+ /**
71
+ * Loading state of the Dropdown
72
+ * @type {boolean}
73
+ * @default false
74
+ * @example
75
+ * <Dropdown loading />
76
+ */
77
+ loading?: boolean;
78
+ /**
79
+ * Icon to prepend
80
+ * @type {string}
81
+ * @default ''
82
+ * @example
83
+ * <Dropdown prependIcon="search" />
84
+ */
85
+ prependIcon?: string;
86
+ /**
87
+ * Icon to append
88
+ * @type {string}
89
+ * @default 'expand_less'
90
+ * @example
91
+ * <Dropdown appendIcon="expand_more" />
92
+ */
93
+ appendIcon?: string;
94
+ /**
95
+ * Allow to search for options
96
+ * @type {boolean}
97
+ * @default false
98
+ * @example
99
+ * <Dropdown searchable />
100
+ */
101
+ searchable?: boolean;
102
+ /**
103
+ * Clearable status to selected and searched options
104
+ * @type {boolean}
105
+ * @default false
106
+ * @example
107
+ * <Dropdown clearable />
108
+ */
109
+ clearable?: boolean;
110
+ /**
111
+ * Id of the Dropdown
112
+ * @type {string}
113
+ * @default 'test'
114
+ * @example
115
+ * <Dropdown id="test" />
116
+ */
117
+ id?: string;
118
+ /**
119
+ * Close the Dropdown on select
120
+ * @type {boolean}
121
+ * @default true
122
+ * @example
123
+ * <Dropdown :closeOnSelect="false" />
124
+ */
125
+ closeOnSelect?: boolean;
126
+ /**
127
+ * Class of the Dropdown
128
+ * @type {string}
129
+ * @default ''
130
+ * @example
131
+ * <Dropdown dropdownClass="w-96" />
132
+ */
133
+ dropdownClass?: string;
134
+ /**
135
+ * Class of the options
136
+ * @type {string}
137
+ * @default ''
138
+ * @example
139
+ * <Dropdown optionsClass="w-96" />
140
+ */
141
+ optionsClass?: string;
142
+ /**
143
+ * Error message for error state
144
+ * @type {string}
145
+ * @default ''
146
+ * @example
147
+ * <Dropdown errorMsg="Error message" />
148
+ */
149
+ errorMsg?: string;
150
+ /**
151
+ * Hint message for the Dropdown
152
+ * @type {string}
153
+ * @default ''
154
+ * @example
155
+ * <Dropdown hint="Hint message" />
156
+ */
157
+ hint?: string;
158
+ /**
159
+ * Hide the hint and error message
160
+ * @type {boolean}
161
+ * @default false
162
+ * @example
163
+ * <Dropdown hideDetails />
164
+ */
165
+ hideDetails?: boolean;
166
+ /**
167
+ * Autocomplete of the Dropdown
168
+ * @type {'on' | 'off'}
169
+ * @default 'off'
170
+ * @example
171
+ * <Dropdown autocomplete="on" />
172
+ */
173
+ autocomplete?: 'on' | 'off';
174
+ /**
175
+ * Text to show when there is no options
176
+ * @type {string}
177
+ * @default 'No options'
178
+ * @example
179
+ * <Dropdown noOptionsText="No options" />
180
+ */
181
+ noOptionsText?: string;
182
+ /**
183
+ * Hide the check icon of the selected option
184
+ * @type {boolean}
185
+ * @default false
186
+ * @example
187
+ * <Dropdown hideOptionCheckIcon />
188
+ */
189
+ hideOptionCheckIcon?: boolean;
190
+ /**
191
+ * Clearable state of the chips
192
+ * @type {boolean}
193
+ * @default false
194
+ * @example
195
+ * <Dropdown hideChipClear />
196
+ */
197
+ hideChipClear?: boolean;
198
+ /**
199
+ * Tooltip class
200
+ * @type {string}
201
+ * @default ''
202
+ * @example
203
+ * <Dropdown tooltipClass="w-96" />
204
+ */
205
+ tooltipClass?: string;
206
+ /**
207
+ * Show select all option
208
+ * @type {boolean}
209
+ * @default false
210
+ * @example
211
+ * <Dropdown showSelectAll />
212
+ */
213
+ showSelectAll?: boolean;
214
+ /**
215
+ * Text of the select all option
216
+ * @type {string}
217
+ * @default 'Select all'
218
+ * @example
219
+ * <Dropdown selectAllText="Select all" />
220
+ */
221
+ selectAllText?: string;
222
+ /**
223
+ * Disable deselecting the selected option
224
+ * @type {boolean}
225
+ * @default false
226
+ * @example
227
+ * <Dropdown disableDeselect />
228
+ */
229
+ disableDeselect?: boolean;
230
+ /**
231
+ * Maximum number of visible chips
232
+ * @type {number}
233
+ * @default 2
234
+ * @example
235
+ * <Dropdown :maxVisibleChips="3" />
236
+ */
237
+ maxVisibleChips?: number;
238
+ }
239
+ /**
240
+ * @description - Removes an option from the selected options
241
+ * @param e option Option to remove
242
+ */
243
+ declare function removeOption(e: MouseEvent | KeyboardEvent, option: Option, updatePosition: any): void;
244
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SelectProps>, {
245
+ options: () => never[];
246
+ modelValue: any;
247
+ placeholder: string;
248
+ chips: boolean;
249
+ multiple: boolean;
250
+ disabled: boolean;
251
+ loading: boolean;
252
+ prependIcon: string;
253
+ appendIcon: string;
254
+ searchable: boolean;
255
+ clearable: boolean;
256
+ id: string;
257
+ label: string;
258
+ closeOnSelect: boolean;
259
+ dropdownClass: string;
260
+ optionsClass: string;
261
+ errorMsg: string;
262
+ hideDetails: boolean;
263
+ autocomplete: string;
264
+ noOptionsText: string;
265
+ hideOptionCheckIcon: boolean;
266
+ hideChipClear: boolean;
267
+ tooltipClass: string;
268
+ showSelectAll: boolean;
269
+ selectAllText: string;
270
+ disableDeselect: boolean;
271
+ maxVisibleChips: number;
272
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
273
+ "update:modelValue": (...args: any[]) => void;
274
+ clear: (...args: any[]) => void;
275
+ removeOption: (...args: any[]) => void;
276
+ }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SelectProps>, {
277
+ options: () => never[];
278
+ modelValue: any;
279
+ placeholder: string;
280
+ chips: boolean;
281
+ multiple: boolean;
282
+ disabled: boolean;
283
+ loading: boolean;
284
+ prependIcon: string;
285
+ appendIcon: string;
286
+ searchable: boolean;
287
+ clearable: boolean;
288
+ id: string;
289
+ label: string;
290
+ closeOnSelect: boolean;
291
+ dropdownClass: string;
292
+ optionsClass: string;
293
+ errorMsg: string;
294
+ hideDetails: boolean;
295
+ autocomplete: string;
296
+ noOptionsText: string;
297
+ hideOptionCheckIcon: boolean;
298
+ hideChipClear: boolean;
299
+ tooltipClass: string;
300
+ showSelectAll: boolean;
301
+ selectAllText: string;
302
+ disableDeselect: boolean;
303
+ maxVisibleChips: number;
304
+ }>>> & {
305
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
306
+ onClear?: ((...args: any[]) => any) | undefined;
307
+ onRemoveOption?: ((...args: any[]) => any) | undefined;
308
+ }, {
309
+ multiple: boolean;
310
+ disabled: boolean;
311
+ loading: boolean;
312
+ prependIcon: string;
313
+ appendIcon: string;
314
+ id: string;
315
+ modelValue: any;
316
+ errorMsg: string;
317
+ hideDetails: boolean;
318
+ clearable: boolean;
319
+ options: any;
320
+ tooltipClass: string;
321
+ placeholder: string;
322
+ chips: boolean;
323
+ searchable: boolean;
324
+ closeOnSelect: boolean;
325
+ dropdownClass: string;
326
+ optionsClass: string;
327
+ autocomplete: "on" | "off";
328
+ noOptionsText: string;
329
+ hideOptionCheckIcon: boolean;
330
+ hideChipClear: boolean;
331
+ showSelectAll: boolean;
332
+ selectAllText: string;
333
+ disableDeselect: boolean;
334
+ maxVisibleChips: number;
335
+ }, {}>, {
336
+ prepend?(_: {
337
+ active: boolean;
338
+ disabled: boolean;
339
+ error: number;
340
+ loading: boolean;
341
+ }): any;
342
+ selection?(_: {
343
+ removeOption: typeof removeOption;
344
+ selected: {
345
+ [x: string]: any;
346
+ value: string | number;
347
+ label: string;
348
+ prependIcon?: string | undefined;
349
+ disabled?: boolean | undefined;
350
+ }[];
351
+ }): any;
352
+ clearable?(_: {}): any;
353
+ append?(_: {
354
+ active: boolean;
355
+ disabled: boolean;
356
+ error: number;
357
+ loading: boolean;
358
+ }): any;
359
+ option?(_: {
360
+ disabled: boolean | undefined;
361
+ isSelected: boolean | {
362
+ [x: string]: any;
363
+ value: string | number;
364
+ label: string;
365
+ prependIcon?: string | undefined;
366
+ disabled?: boolean | undefined;
367
+ } | undefined;
368
+ item: Option;
369
+ }): any;
370
+ "option-prepend"?(_: {
371
+ disabled: boolean | undefined;
372
+ isSelected: boolean | {
373
+ [x: string]: any;
374
+ value: string | number;
375
+ label: string;
376
+ prependIcon?: string | undefined;
377
+ disabled?: boolean | undefined;
378
+ } | undefined;
379
+ }): any;
380
+ "option-append"?(_: {
381
+ disabled: boolean | undefined;
382
+ isSelected: boolean | {
383
+ [x: string]: any;
384
+ value: string | number;
385
+ label: string;
386
+ prependIcon?: string | undefined;
387
+ disabled?: boolean | undefined;
388
+ } | undefined;
389
+ }): any;
390
+ "not-options"?(_: {}): any;
391
+ }>;
392
+ export default _default;
393
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
394
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
395
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
396
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
397
+ } : {
398
+ type: PropType<T[K]>;
399
+ required: true;
400
+ };
401
+ };
402
+ declare type __VLS_WithDefaults<P, D> = {
403
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
404
+ default: D[K];
405
+ }> : P[K];
406
+ };
407
+ declare type __VLS_Prettify<T> = {
408
+ [K in keyof T]: T[K];
409
+ } & {};
410
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
411
+ new (): {
412
+ $slots: S;
413
+ };
414
+ };
415
+ //# sourceMappingURL=RDropdown.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dropdown/RDropdown.vue"],"names":[],"mappings":"AAKA,OAAO,gBAAgB,CAAA;AAGvB,MAAM,WAAW,MAAM;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;IAClB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AACD,MAAM,WAAW,WAAW;IAC1B;;;;;;;;;;;;;;;;;OAiBG;IACH,OAAO,EAAE,MAAM,EAAE,GAAG,GAAG,CAAA;IAEvB;;;;;;OAMG;IACH,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,G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;CACT,CAAC;AACN,aAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,aAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -0,0 +1,59 @@
1
+ import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, SVGAttributes } from 'vue';
2
+ export interface IProps {
3
+ /**
4
+ * Name of the icon
5
+ * @type SVGAttributes['name']
6
+ * @default ''
7
+ * @example
8
+ * <Icon name="icon" />
9
+ */
10
+ name: SVGAttributes['name'];
11
+ /**
12
+ * Size of the icon
13
+ * @type SVGAttributes['width'] | SVGAttributes['height']
14
+ * @default 24
15
+ * @example
16
+ * <Icon size="24" />
17
+ */
18
+ size?: SVGAttributes['width'] | SVGAttributes['height'];
19
+ /**
20
+ * Viewbox of the icon
21
+ * @type SVGAttributes['viewBox']
22
+ * @default '0 0 24 24'
23
+ * @example
24
+ * <Icon viewBox="0 0 24 24" />
25
+ */
26
+ viewBox?: SVGAttributes['viewBox'];
27
+ }
28
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
29
+ name: string;
30
+ size: number;
31
+ viewBox: string;
32
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
33
+ name: string;
34
+ size: number;
35
+ viewBox: string;
36
+ }>>>, {
37
+ name: string | undefined;
38
+ viewBox: string;
39
+ size: string | number;
40
+ }, {}>;
41
+ export default _default;
42
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
43
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
44
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
45
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
46
+ } : {
47
+ type: PropType<T[K]>;
48
+ required: true;
49
+ };
50
+ };
51
+ declare type __VLS_WithDefaults<P, D> = {
52
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
53
+ default: D[K];
54
+ }> : P[K];
55
+ };
56
+ declare type __VLS_Prettify<T> = {
57
+ [K in keyof T]: T[K];
58
+ } & {};
59
+ //# sourceMappingURL=RIcon.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RIcon.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Icon/RIcon.vue"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,KAAK,CAAA;AAKxC,MAAM,WAAW,MAAM;IACrB;;;;;;OAMG;IACH,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;IAE3B;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,GAAG,aAAa,CAAC,QAAQ,CAAC,CAAA;IAEvD;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAA;CACnC;;;;;;;;;;;;;;AAmED,wBAMG;AACH,aAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,aAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,aAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,aAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -0,0 +1,65 @@
1
+ import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
2
+ export interface ItemProps {
3
+ /**
4
+ * The value of the item
5
+ * @default null
6
+ * @type any
7
+ * @example
8
+ * <RItem :value="1" />
9
+ */
10
+ value: any;
11
+ /**
12
+ * The class to apply to the selected item
13
+ * @default ''
14
+ * @type string
15
+ * @example
16
+ * <RItem selectedClass="bg-blue-500 text-white" />
17
+ */
18
+ selectedClass?: string | string[];
19
+ }
20
+ declare function handleToggle(): void;
21
+ declare function handleSelect(): void;
22
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ItemProps>, {
23
+ disabled: boolean;
24
+ selectedClass: string;
25
+ value: null;
26
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ItemProps>, {
27
+ disabled: boolean;
28
+ selectedClass: string;
29
+ value: null;
30
+ }>>>, {
31
+ value: any;
32
+ selectedClass: string | string[];
33
+ }, {}>, {
34
+ default?(_: {
35
+ disabled: boolean;
36
+ isSelected: boolean;
37
+ select: typeof handleSelect;
38
+ selectedClass: (string | string[]) & (false | (string | string[])[]);
39
+ toggle: typeof handleToggle;
40
+ }): any;
41
+ }>;
42
+ export default _default;
43
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
44
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
45
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
46
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
47
+ } : {
48
+ type: PropType<T[K]>;
49
+ required: true;
50
+ };
51
+ };
52
+ declare type __VLS_WithDefaults<P, D> = {
53
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
54
+ default: D[K];
55
+ }> : P[K];
56
+ };
57
+ declare type __VLS_Prettify<T> = {
58
+ [K in keyof T]: T[K];
59
+ } & {};
60
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
61
+ new (): {
62
+ $slots: S;
63
+ };
64
+ };
65
+ //# sourceMappingURL=RItem.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RItem.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/ItemGroup/RItem.vue"],"names":[],"mappings":"AAIA,MAAM,WAAW,SAAS;IACxB;;;;;;OAMG;IACH,KAAK,EAAE,GAAG,CAAA;IAEV;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAClC;AA+BD,iBAAS,YAAY,SAIpB;AAED,iBAAS,YAAY,SAIpB;;;;;;;;;;;;;;;;;;;;;AAkED,wBAAwG;AACxG,aAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,aAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,aAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,aAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,aAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -0,0 +1,123 @@
1
+ import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
2
+ export interface ItemGroupProps {
3
+ /**
4
+ * The value of the selected items
5
+ * @default []
6
+ * @model
7
+ * @type {number[] | string[]}
8
+ * @example
9
+ * <RItemGroup v-model="selectedItems" />
10
+ */
11
+ modelValue: number[] | string[];
12
+ /**
13
+ * The class to apply to the selected items
14
+ * @default ''
15
+ * @type {string}
16
+ * @example
17
+ * <RItemGroup selectedClass="bg-blue-500 text-white" />
18
+ */
19
+ selectedClass?: string | string[];
20
+ /**
21
+ * Whether the item group is disabled
22
+ * @default false
23
+ * @type {boolean}
24
+ * @example
25
+ * <RItemGroup :disabled="true" />
26
+ */
27
+ disabled?: boolean;
28
+ /**
29
+ * Whether the item group is mandatory
30
+ * @default false
31
+ * @type {boolean}
32
+ * @example
33
+ * ```js
34
+ * const selected = ref<number[]>([1]);
35
+ * ```
36
+ * ```html
37
+ * <RItemGroup :mandatory="true" v-model="selected" />
38
+ * ```
39
+ */
40
+ mandatory?: boolean;
41
+ /**
42
+ * The maximum number of items that can be selected
43
+ * @default 0
44
+ * @type {number}
45
+ * @example
46
+ * <RItemGroup :max="5" />
47
+ */
48
+ max?: number;
49
+ /**
50
+ * The tag to use for the item group
51
+ * @default div
52
+ * @type {string}
53
+ * @example
54
+ * <RItemGroup as="ul" />
55
+ */
56
+ as?: string;
57
+ /**
58
+ * Whether the item group allows multiple selections
59
+ * @default false
60
+ * @type {boolean}
61
+ * @example
62
+ * <RItemGroup :multiple="true" />
63
+ */
64
+ multiple?: boolean;
65
+ }
66
+ declare function isSelected(id: never): boolean;
67
+ declare function select(id: never, value: boolean): void;
68
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ItemGroupProps>, {
69
+ disabled: boolean;
70
+ mandatory: boolean;
71
+ max: number;
72
+ as: string;
73
+ selectedClass: string;
74
+ modelValue: () => number[];
75
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
76
+ "update:modelValue": (...args: any[]) => void;
77
+ }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ItemGroupProps>, {
78
+ disabled: boolean;
79
+ mandatory: boolean;
80
+ max: number;
81
+ as: string;
82
+ selectedClass: string;
83
+ modelValue: () => number[];
84
+ }>>> & {
85
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
86
+ }, {
87
+ disabled: boolean;
88
+ as: string;
89
+ modelValue: string[] | number[];
90
+ selectedClass: string | string[];
91
+ mandatory: boolean;
92
+ max: number;
93
+ }, {}>, {
94
+ default?(_: {
95
+ isSelected: typeof isSelected;
96
+ select: typeof select;
97
+ selected: string[] | number[];
98
+ }): any;
99
+ }>;
100
+ export default _default;
101
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
102
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
103
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
104
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
105
+ } : {
106
+ type: PropType<T[K]>;
107
+ required: true;
108
+ };
109
+ };
110
+ declare type __VLS_WithDefaults<P, D> = {
111
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
112
+ default: D[K];
113
+ }> : P[K];
114
+ };
115
+ declare type __VLS_Prettify<T> = {
116
+ [K in keyof T]: T[K];
117
+ } & {};
118
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
119
+ new (): {
120
+ $slots: S;
121
+ };
122
+ };
123
+ //# sourceMappingURL=RItemGroup.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RItemGroup.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/ItemGroup/RItemGroup.vue"],"names":[],"mappings":"AAIA,MAAM,WAAW,cAAc;IAC7B;;;;;;;OAOG;IACH,UAAU,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAA;IAE/B;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAEjC;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;;;;;OAMG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;;;;;OAMG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