@rocketui/vue 0.2.0 → 0.2.2-2.alpha.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.
@@ -683,7 +683,34 @@ declare interface BadgeProps {
683
683
  * <Badge animation />
684
684
  */
685
685
  animation?: boolean;
686
+ /**
687
+ * Class of the Badge
688
+ * @type { string | string[] }
689
+ * @example
690
+ * <Badge class="text-red-500" />
691
+ */
686
692
  class?: string | string[];
693
+ /**
694
+ * Content of the Badge
695
+ * @type { string }
696
+ * @example
697
+ * <Badge content="99+" />
698
+ */
699
+ content?: string;
700
+ /**
701
+ * Class of the content of the Badge
702
+ * @type { string | string[] }
703
+ * @example
704
+ * <Badge contentClass="text-red-500" />
705
+ */
706
+ contentClass?: string | string[];
707
+ /**
708
+ * Wrapper class of the Badge
709
+ * @type { string | string[] }
710
+ * @example
711
+ * <Badge wrapperClass="text-red-500" />
712
+ */
713
+ wrapperClass?: string | string[];
687
714
  }
688
715
 
689
716
  declare interface BreadcrumbItem {
@@ -1262,14 +1289,6 @@ declare interface ItemProps {
1262
1289
  * <RItem :value="1" />
1263
1290
  */
1264
1291
  value: any;
1265
- /**
1266
- * Whether the item is disabled
1267
- * @default false
1268
- * @type boolean
1269
- * @example
1270
- * <RItem :disabled="true" />
1271
- */
1272
- disabled?: boolean;
1273
1292
  /**
1274
1293
  * The class to apply to the selected item
1275
1294
  * @default ''
@@ -1417,6 +1436,7 @@ declare function onMouseLeave(): void;
1417
1436
  declare function onMouseMove(): void;
1418
1437
 
1419
1438
  declare interface Option_2 {
1439
+ [key: string]: any;
1420
1440
  value: string | number;
1421
1441
  label: string;
1422
1442
  prependIcon?: string;
@@ -1429,7 +1449,8 @@ declare interface PaginationProps {
1429
1449
  totalItems: number;
1430
1450
  perPageOptions?: number[];
1431
1451
  itemsPerPageText?: string;
1432
- position?: 'left' | 'center' | 'right';
1452
+ position?: 'left' | 'center' | 'right' | string;
1453
+ infoText?: string;
1433
1454
  }
1434
1455
 
1435
1456
  declare enum Placement {
@@ -1710,13 +1731,21 @@ declare interface Props_4 {
1710
1731
  */
1711
1732
  ghost?: boolean;
1712
1733
  /**
1713
- * Closable state of the Chip
1734
+ * Clearable state of the Chip
1714
1735
  * @type boolean
1715
1736
  * @default false
1716
1737
  * @example
1717
- * <Chip closable />
1738
+ * <Chip clearable />
1718
1739
  */
1719
- closable?: boolean;
1740
+ clearable?: boolean;
1741
+ /**
1742
+ * No wrap state of the Chip
1743
+ * @type boolean
1744
+ * @default false
1745
+ * @example
1746
+ * <Chip noWrap />
1747
+ */
1748
+ noWrap?: boolean;
1720
1749
  }
1721
1750
 
1722
1751
  declare interface Props_5 {
@@ -2015,6 +2044,8 @@ export declare const RBadge: __VLS_WithTemplateSlots_3<DefineComponent<__VLS_Wit
2015
2044
  outside: boolean;
2016
2045
  animation: boolean;
2017
2046
  class: string;
2047
+ contentClass: string;
2048
+ wrapperClass: string;
2018
2049
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2019
2050
  click: (...args: any[]) => void;
2020
2051
  }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_4<BadgeProps>, {
@@ -2026,6 +2057,8 @@ export declare const RBadge: __VLS_WithTemplateSlots_3<DefineComponent<__VLS_Wit
2026
2057
  outside: boolean;
2027
2058
  animation: boolean;
2028
2059
  class: string;
2060
+ contentClass: string;
2061
+ wrapperClass: string;
2029
2062
  }>>> & {
2030
2063
  onClick?: ((...args: any[]) => any) | undefined;
2031
2064
  }, {
@@ -2033,9 +2066,12 @@ export declare const RBadge: __VLS_WithTemplateSlots_3<DefineComponent<__VLS_Wit
2033
2066
  variant: "primary" | "success" | "warning" | "error" | "neutral";
2034
2067
  hover: boolean;
2035
2068
  placement: "bottom" | "left" | "right";
2069
+ content: string;
2036
2070
  overlap: boolean;
2037
2071
  outside: boolean;
2038
2072
  animation: boolean;
2073
+ contentClass: string | string[];
2074
+ wrapperClass: string | string[];
2039
2075
  }, {}>, {
2040
2076
  default?(_: {}): any;
2041
2077
  }>;
@@ -2137,7 +2173,8 @@ export declare const RChip: __VLS_WithTemplateSlots_5<DefineComponent<__VLS_With
2137
2173
  prependIcon: string;
2138
2174
  appendIcon: string;
2139
2175
  ghost: boolean;
2140
- closable: boolean;
2176
+ clearable: boolean;
2177
+ noWrap: boolean;
2141
2178
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2142
2179
  "click:chip": (...args: any[]) => void;
2143
2180
  "click:close": (...args: any[]) => void;
@@ -2148,7 +2185,8 @@ export declare const RChip: __VLS_WithTemplateSlots_5<DefineComponent<__VLS_With
2148
2185
  prependIcon: string;
2149
2186
  appendIcon: string;
2150
2187
  ghost: boolean;
2151
- closable: boolean;
2188
+ clearable: boolean;
2189
+ noWrap: boolean;
2152
2190
  }>>> & {
2153
2191
  "onClick:chip"?: ((...args: any[]) => any) | undefined;
2154
2192
  "onClick:close"?: ((...args: any[]) => any) | undefined;
@@ -2159,7 +2197,8 @@ export declare const RChip: __VLS_WithTemplateSlots_5<DefineComponent<__VLS_With
2159
2197
  prependIcon: string;
2160
2198
  appendIcon: string;
2161
2199
  ghost: boolean;
2162
- closable: boolean;
2200
+ clearable: boolean;
2201
+ noWrap: boolean;
2163
2202
  }, {}>, {
2164
2203
  prepend?(_: {}): any;
2165
2204
  append?(_: {}): any;
@@ -2167,9 +2206,9 @@ export declare const RChip: __VLS_WithTemplateSlots_5<DefineComponent<__VLS_With
2167
2206
 
2168
2207
  export declare const RDropdown: __VLS_WithTemplateSlots_6<DefineComponent<__VLS_WithDefaults_7<__VLS_TypePropsToRuntimeProps_8<SelectProps>, {
2169
2208
  options: () => never[];
2170
- modelValue: string;
2209
+ modelValue: any;
2171
2210
  placeholder: string;
2172
- taggable: boolean;
2211
+ chips: boolean;
2173
2212
  multiple: boolean;
2174
2213
  disabled: boolean;
2175
2214
  loading: boolean;
@@ -2187,13 +2226,14 @@ export declare const RDropdown: __VLS_WithTemplateSlots_6<DefineComponent<__VLS_
2187
2226
  autocomplete: string;
2188
2227
  noOptionsText: string;
2189
2228
  hideOptionCheckIcon: boolean;
2229
+ hideChipClear: boolean;
2190
2230
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2191
2231
  "update:modelValue": (...args: any[]) => void;
2192
2232
  }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_7<__VLS_TypePropsToRuntimeProps_8<SelectProps>, {
2193
2233
  options: () => never[];
2194
- modelValue: string;
2234
+ modelValue: any;
2195
2235
  placeholder: string;
2196
- taggable: boolean;
2236
+ chips: boolean;
2197
2237
  multiple: boolean;
2198
2238
  disabled: boolean;
2199
2239
  loading: boolean;
@@ -2211,6 +2251,7 @@ export declare const RDropdown: __VLS_WithTemplateSlots_6<DefineComponent<__VLS_
2211
2251
  autocomplete: string;
2212
2252
  noOptionsText: string;
2213
2253
  hideOptionCheckIcon: boolean;
2254
+ hideChipClear: boolean;
2214
2255
  }>>> & {
2215
2256
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2216
2257
  }, {
@@ -2221,11 +2262,11 @@ export declare const RDropdown: __VLS_WithTemplateSlots_6<DefineComponent<__VLS_
2221
2262
  options: any;
2222
2263
  id: string;
2223
2264
  modelValue: any;
2265
+ clearable: boolean;
2224
2266
  placeholder: string;
2225
- taggable: boolean;
2267
+ chips: boolean;
2226
2268
  multiple: boolean;
2227
2269
  searchable: boolean;
2228
- clearable: boolean;
2229
2270
  closeOnSelect: boolean;
2230
2271
  dropdownClass: string;
2231
2272
  optionsClass: string;
@@ -2234,21 +2275,25 @@ export declare const RDropdown: __VLS_WithTemplateSlots_6<DefineComponent<__VLS_
2234
2275
  autocomplete: "on" | "off";
2235
2276
  noOptionsText: string;
2236
2277
  hideOptionCheckIcon: boolean;
2278
+ hideChipClear: boolean;
2237
2279
  }, {}>, {
2238
2280
  prepend?(_: {}): any;
2239
- tags?(_: {
2240
- options: {
2281
+ selection?(_: {
2282
+ key: number;
2283
+ index: number;
2284
+ option: {
2285
+ [x: string]: any;
2241
2286
  value: string | number;
2242
2287
  label: string;
2243
2288
  prependIcon?: string | undefined;
2244
2289
  disabled?: boolean | undefined;
2245
- }[];
2290
+ };
2246
2291
  removeOption: typeof removeOption;
2247
- updatePosition: () => void;
2248
2292
  }): any;
2249
2293
  append?(_: {}): any;
2250
2294
  option?(_: {
2251
2295
  isSelected: boolean | {
2296
+ [x: string]: any;
2252
2297
  value: string | number;
2253
2298
  label: string;
2254
2299
  prependIcon?: string | undefined;
@@ -2289,7 +2334,6 @@ export declare const RItem: __VLS_WithTemplateSlots_18<DefineComponent<__VLS_Wit
2289
2334
  selectedClass: string;
2290
2335
  value: null;
2291
2336
  }>>>, {
2292
- disabled: boolean;
2293
2337
  value: any;
2294
2338
  selectedClass: string | string[];
2295
2339
  }, {}>, {
@@ -2299,7 +2343,6 @@ export declare const RItem: __VLS_WithTemplateSlots_18<DefineComponent<__VLS_Wit
2299
2343
  select: typeof handleSelect;
2300
2344
  selectedClass: (string | string[]) & (false | (string | string[])[]);
2301
2345
  toggle: typeof handleToggle;
2302
- value: any;
2303
2346
  }): any;
2304
2347
  }>;
2305
2348
 
@@ -2408,9 +2451,11 @@ export declare const RPagination: __VLS_WithTemplateSlots_16<DefineComponent<__V
2408
2451
  perPageOptions: () => number[];
2409
2452
  itemsPerPageText: string;
2410
2453
  position: string;
2454
+ infoText: string;
2411
2455
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2412
2456
  "update:page": (...args: any[]) => void;
2413
2457
  "update:perPage": (...args: any[]) => void;
2458
+ "update:info": (...args: any[]) => void;
2414
2459
  }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_20<__VLS_TypePropsToRuntimeProps_21<PaginationProps>, {
2415
2460
  page: number;
2416
2461
  perPage: number;
@@ -2418,16 +2463,19 @@ export declare const RPagination: __VLS_WithTemplateSlots_16<DefineComponent<__V
2418
2463
  perPageOptions: () => number[];
2419
2464
  itemsPerPageText: string;
2420
2465
  position: string;
2466
+ infoText: string;
2421
2467
  }>>> & {
2422
2468
  "onUpdate:page"?: ((...args: any[]) => any) | undefined;
2423
2469
  "onUpdate:perPage"?: ((...args: any[]) => any) | undefined;
2470
+ "onUpdate:info"?: ((...args: any[]) => any) | undefined;
2424
2471
  }, {
2425
2472
  page: number;
2426
2473
  perPage: number;
2427
2474
  totalItems: number;
2428
2475
  perPageOptions: number[];
2429
2476
  itemsPerPageText: string;
2430
- position: "left" | "right" | "center";
2477
+ position: string;
2478
+ infoText: string;
2431
2479
  }, {}>, {
2432
2480
  first?(_: {}): any;
2433
2481
  prev?(_: {}): any;
@@ -2689,8 +2737,8 @@ export declare const RTextfield: __VLS_WithTemplateSlots_13<DefineComponent<__VL
2689
2737
  id: string | undefined;
2690
2738
  role: string;
2691
2739
  modelValue: any;
2692
- placeholder: string;
2693
2740
  clearable: boolean;
2741
+ placeholder: string;
2694
2742
  errorMsg: string;
2695
2743
  hint: string;
2696
2744
  hideDetails: boolean;
@@ -2819,13 +2867,13 @@ declare interface SelectProps {
2819
2867
  */
2820
2868
  placeholder?: string;
2821
2869
  /**
2822
- * Allow to create new options
2870
+ * Allow to select multiple options as chips
2823
2871
  * @type {boolean}
2824
2872
  * @default false
2825
2873
  * @example
2826
- * <Dropdown taggable />
2874
+ * <Dropdown chips />
2827
2875
  */
2828
- taggable?: boolean;
2876
+ chips?: boolean;
2829
2877
  /**
2830
2878
  * Allow to select multiple options
2831
2879
  * @type {boolean}
@@ -2962,6 +3010,14 @@ declare interface SelectProps {
2962
3010
  * <Dropdown hideOptionCheckIcon />
2963
3011
  */
2964
3012
  hideOptionCheckIcon?: boolean;
3013
+ /**
3014
+ * Clearable state of the chips
3015
+ * @type {boolean}
3016
+ * @default false
3017
+ * @example
3018
+ * <Dropdown hideChipClear />
3019
+ */
3020
+ hideChipClear?: boolean;
2965
3021
  }
2966
3022
 
2967
3023
  declare interface Tab {