@rocketui/vue 0.0.100 → 0.0.101

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,7 @@ declare interface BadgeProps {
683
683
  * <Badge animation />
684
684
  */
685
685
  animation?: boolean;
686
- class?: string;
686
+ class?: string | string[];
687
687
  }
688
688
 
689
689
  declare interface BreadcrumbItem {
@@ -1174,7 +1174,7 @@ declare interface IProps_7 {
1174
1174
  * @example
1175
1175
  * <Tooltip triggerClass="trigger" />
1176
1176
  */
1177
- triggerClass?: string;
1177
+ triggerClass?: string | string[];
1178
1178
  /**
1179
1179
  * Tooltip class of the tooltip
1180
1180
  * @type string
@@ -1182,7 +1182,7 @@ declare interface IProps_7 {
1182
1182
  * @example
1183
1183
  * <Tooltip tooltipClass="tooltip" />
1184
1184
  */
1185
- tooltipClass?: string;
1185
+ tooltipClass?: string | string[];
1186
1186
  type?: Theme | string;
1187
1187
  }
1188
1188
 
@@ -1205,7 +1205,7 @@ declare interface ItemGroupProps {
1205
1205
  * @example
1206
1206
  * <RItemGroup selectedClass="bg-blue-500 text-white" />
1207
1207
  */
1208
- selectedClass?: string;
1208
+ selectedClass?: string | string[];
1209
1209
  /**
1210
1210
  * Whether the item group is disabled
1211
1211
  * @default false
@@ -1277,7 +1277,7 @@ declare interface ItemProps {
1277
1277
  * @example
1278
1278
  * <RItem selectedClass="bg-blue-500 text-white" />
1279
1279
  */
1280
- selectedClass?: string;
1280
+ selectedClass?: string | string[];
1281
1281
  }
1282
1282
 
1283
1283
  declare interface LabelProps {
@@ -1381,7 +1381,7 @@ declare interface ModalProps {
1381
1381
  * @example
1382
1382
  * <Modal class="my-class" />
1383
1383
  */
1384
- class?: string;
1384
+ class?: string | string[];
1385
1385
  /**
1386
1386
  * Class of the overlay
1387
1387
  * @type string
@@ -1389,7 +1389,7 @@ declare interface ModalProps {
1389
1389
  * @example
1390
1390
  * <Modal overlayClass="my-class" />
1391
1391
  */
1392
- overlayClass?: string;
1392
+ overlayClass?: string | string[];
1393
1393
  /**
1394
1394
  * Style of the Modal
1395
1395
  * @type string
@@ -1409,8 +1409,8 @@ declare function onMouseLeave(): void;
1409
1409
  declare function onMouseMove(): void;
1410
1410
 
1411
1411
  declare interface Option_2 {
1412
- id?: string | number;
1413
- [key: string]: any;
1412
+ value: string | number;
1413
+ label: string;
1414
1414
  prependIcon?: string;
1415
1415
  disabled?: boolean;
1416
1416
  }
@@ -2003,7 +2003,7 @@ export declare const RBadge: __VLS_WithTemplateSlots_3<DefineComponent<__VLS_Wit
2003
2003
  }>>> & {
2004
2004
  onClick?: ((...args: any[]) => any) | undefined;
2005
2005
  }, {
2006
- class: string;
2006
+ class: string | string[];
2007
2007
  variant: "primary" | "success" | "warning" | "error" | "neutral";
2008
2008
  hover: boolean;
2009
2009
  placement: "bottom" | "left" | "right";
@@ -2186,9 +2186,9 @@ export declare const RDropdown: __VLS_WithTemplateSlots_6<DefineComponent<__VLS_
2186
2186
  disabled: boolean;
2187
2187
  prependIcon: string;
2188
2188
  appendIcon: string;
2189
- options: string[] | Option_2[] | number[];
2189
+ options: Option_2[];
2190
2190
  id: string;
2191
- modelValue: string | number | Option_2 | (string | number | Option_2)[];
2191
+ modelValue: string | number | Option_2 | Option_2[];
2192
2192
  placeholder: string;
2193
2193
  taggable: boolean;
2194
2194
  multiple: boolean;
@@ -2203,8 +2203,8 @@ export declare const RDropdown: __VLS_WithTemplateSlots_6<DefineComponent<__VLS_
2203
2203
  prepend?(_: {}): any;
2204
2204
  tags?(_: {
2205
2205
  options: {
2206
- [x: string]: any;
2207
- id?: string | number | undefined;
2206
+ value: string | number;
2207
+ label: string;
2208
2208
  prependIcon?: string | undefined;
2209
2209
  disabled?: boolean | undefined;
2210
2210
  }[];
@@ -2216,6 +2216,11 @@ export declare const RDropdown: __VLS_WithTemplateSlots_6<DefineComponent<__VLS_
2216
2216
  "not-options"?(_: {}): any;
2217
2217
  }>;
2218
2218
 
2219
+ /**
2220
+ * @description - Removes an option from the selected options
2221
+ * @param e option Option to remove
2222
+ * @returns void
2223
+ */
2219
2224
  declare function removeOption(e: MouseEvent | KeyboardEvent, option: Option_2, updatePosition: any): void;
2220
2225
 
2221
2226
  export declare const RIcon: DefineComponent<__VLS_WithDefaults_8<__VLS_TypePropsToRuntimeProps_9<IProps_2>, {
@@ -2243,13 +2248,13 @@ export declare const RItem: __VLS_WithTemplateSlots_18<DefineComponent<__VLS_Wit
2243
2248
  }>>>, {
2244
2249
  disabled: boolean;
2245
2250
  value: any;
2246
- selectedClass: string;
2251
+ selectedClass: string | string[];
2247
2252
  }, {}>, {
2248
2253
  default?(_: {
2249
2254
  disabled: boolean;
2250
2255
  isSelected: boolean;
2251
2256
  select: typeof handleSelect;
2252
- selectedClass: string & string[];
2257
+ selectedClass: (string | string[]) & (false | (string | string[])[]);
2253
2258
  toggle: typeof handleToggle;
2254
2259
  value: any;
2255
2260
  }): any;
@@ -2277,7 +2282,7 @@ export declare const RItemGroup: __VLS_WithTemplateSlots_17<DefineComponent<__VL
2277
2282
  disabled: boolean;
2278
2283
  modelValue: string[] | number[];
2279
2284
  as: string;
2280
- selectedClass: string;
2285
+ selectedClass: string | string[];
2281
2286
  mandatory: boolean;
2282
2287
  max: number;
2283
2288
  }, {}>, {
@@ -2391,9 +2396,9 @@ export declare const RSidebar: __VLS_WithTemplateSlots_9<DefineComponent<__VLS_W
2391
2396
  declare interface RSidebarProps {
2392
2397
  modelValue: boolean;
2393
2398
  showTrigger?: boolean;
2394
- class?: string;
2395
- triggerClass?: string;
2396
- wrapperClass?: string;
2399
+ class?: string | string[];
2400
+ triggerClass?: string | string[];
2401
+ wrapperClass?: string | string[];
2397
2402
  }
2398
2403
 
2399
2404
  export declare const RSnackbar: __VLS_WithTemplateSlots_10<DefineComponent<__VLS_WithDefaults_12<__VLS_TypePropsToRuntimeProps_13<IProps_3>, {
@@ -2679,8 +2684,8 @@ export declare const RTooltip: __VLS_WithTemplateSlots_14<DefineComponent<__VLS_
2679
2684
  outsideClick: boolean;
2680
2685
  triggerContent: string;
2681
2686
  resizable: boolean;
2682
- triggerClass: string;
2683
- tooltipClass: string;
2687
+ triggerClass: string | string[];
2688
+ tooltipClass: string | string[];
2684
2689
  }, {}>, {
2685
2690
  default?(_: {
2686
2691
  activators: {
@@ -2702,33 +2707,31 @@ declare function select(id: never, value: boolean): void;
2702
2707
  declare interface SelectProps {
2703
2708
  /**
2704
2709
  * Options of the Dropdown
2705
- * @type {Option[] | string[] | number[]}
2710
+ * @type {Option[]}
2706
2711
  * @default []
2707
2712
  * @example
2708
2713
  * <Dropdown
2709
2714
  * :options="[
2710
2715
  * {
2711
- * id: '1',
2712
2716
  * value: '1',
2713
2717
  * label: 'Option 1',
2714
2718
  * },
2715
2719
  * {
2716
- * id: '1',
2717
2720
  * value: '2',
2718
2721
  * label: '2',
2719
2722
  * },
2720
2723
  * ]"
2721
2724
  * />
2722
2725
  */
2723
- options: Option_2[] | string[] | number[];
2726
+ options: Option_2[];
2724
2727
  /**
2725
2728
  * Value of the Dropdown
2726
- * @type {string | number | Option}
2729
+ * @type {string | number | Option | Option[]}
2727
2730
  * @default ''
2728
2731
  * @example
2729
2732
  * <Dropdown v-model="model" />
2730
2733
  */
2731
- modelValue: string | number | Option_2 | (string | number | Option_2)[];
2734
+ modelValue: string | number | Option_2 | Option_2[];
2732
2735
  /**
2733
2736
  * Placeholder Dropdown
2734
2737
  * @type {InputHTMLAttributes['placeholder']}
@@ -2850,31 +2853,6 @@ declare interface SelectProps {
2850
2853
  * <Dropdown autocomplete="on" />
2851
2854
  */
2852
2855
  autocomplete?: 'on' | 'off';
2853
- /**
2854
- * optionText is the key of the option to display
2855
- * @ type {string}
2856
- * @default 'label'
2857
- * @example
2858
- * <Dropdown optionText="label" />
2859
- */
2860
- optionText?: string | string[];
2861
- /**
2862
- * optionValue is the key of the option to return
2863
- * @type {string}
2864
- * @default 'value'
2865
- * @example
2866
- * <Dropdown optionValue="value" />
2867
- */
2868
- optionValue?: string;
2869
- /**
2870
- * Return the object of the selected option
2871
- * @type {boolean}
2872
- * @default false
2873
- * @example
2874
- * <Dropdown :returnObject="true" />
2875
- * <Dropdown returnObject />
2876
- */
2877
- returnObject?: boolean;
2878
2856
  }
2879
2857
 
2880
2858
  declare interface Tab {