@rocketui/vue 0.0.99 → 0.0.100

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.
@@ -612,12 +612,12 @@ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
612
612
  };
613
613
  };
614
614
 
615
- declare type Accordion = {
615
+ declare interface Accordion {
616
616
  title: string;
617
617
  content: string;
618
618
  open?: boolean;
619
619
  disabled?: boolean;
620
- };
620
+ }
621
621
 
622
622
  declare interface AccordionProps {
623
623
  /**
@@ -1409,8 +1409,8 @@ declare function onMouseLeave(): void;
1409
1409
  declare function onMouseMove(): void;
1410
1410
 
1411
1411
  declare interface Option_2 {
1412
- value: string | number;
1413
- label: string;
1412
+ id?: string | number;
1413
+ [key: string]: any;
1414
1414
  prependIcon?: string;
1415
1415
  disabled?: boolean;
1416
1416
  }
@@ -2097,8 +2097,8 @@ export declare const RCheckbox: DefineComponent<__VLS_WithDefaults_5<__VLS_TypeP
2097
2097
  }, {
2098
2098
  label: string;
2099
2099
  disabled: boolean | "true" | "false";
2100
- modelValue: any[] | Set<any> | (boolean | "true" | "false");
2101
2100
  id: string | undefined;
2101
+ modelValue: any[] | Set<any> | (boolean | "true" | "false");
2102
2102
  errorMsg: string;
2103
2103
  indeterminate: boolean;
2104
2104
  hint: string;
@@ -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
- modelValue: string | number | Option_2 | Option_2[];
2190
- options: Option_2[];
2189
+ options: string[] | Option_2[] | number[];
2191
2190
  id: string;
2191
+ modelValue: string | number | Option_2 | (string | number | 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
- value: string | number;
2207
- label: string;
2206
+ [x: string]: any;
2207
+ id?: string | number | undefined;
2208
2208
  prependIcon?: string | undefined;
2209
2209
  disabled?: boolean | undefined;
2210
2210
  }[];
@@ -2216,11 +2216,6 @@ 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
- */
2224
2219
  declare function removeOption(e: MouseEvent | KeyboardEvent, option: Option_2, updatePosition: any): void;
2225
2220
 
2226
2221
  export declare const RIcon: DefineComponent<__VLS_WithDefaults_8<__VLS_TypePropsToRuntimeProps_9<IProps_2>, {
@@ -2421,8 +2416,8 @@ export declare const RSnackbar: __VLS_WithTemplateSlots_10<DefineComponent<__VLS
2421
2416
  onAction?: ((...args: any[]) => any) | undefined;
2422
2417
  }, {
2423
2418
  text: string;
2424
- modelValue: boolean;
2425
2419
  left: boolean;
2420
+ modelValue: boolean;
2426
2421
  closable: boolean;
2427
2422
  timeout: number;
2428
2423
  }, {}>, {
@@ -2455,8 +2450,8 @@ export declare const RSwitch: DefineComponent<__VLS_WithDefaults_13<__VLS_TypePr
2455
2450
  size: "small" | "medium" | "large";
2456
2451
  label: string;
2457
2452
  disabled: boolean | "true" | "false";
2458
- modelValue: any[] | Set<any> | (boolean | "true" | "false");
2459
2453
  id: string | undefined;
2454
+ modelValue: any[] | Set<any> | (boolean | "true" | "false");
2460
2455
  errorMsg: string;
2461
2456
  hint: string;
2462
2457
  }, {}>;
@@ -2553,8 +2548,8 @@ export declare const RTextArea: DefineComponent<__VLS_WithDefaults_16<__VLS_Type
2553
2548
  }, {
2554
2549
  label: string;
2555
2550
  disabled: boolean | "true" | "false";
2556
- modelValue: any;
2557
2551
  id: string | undefined;
2552
+ modelValue: any;
2558
2553
  placeholder: string;
2559
2554
  errorMsg: string;
2560
2555
  hint: string;
@@ -2611,8 +2606,8 @@ export declare const RTextfield: __VLS_WithTemplateSlots_13<DefineComponent<__VL
2611
2606
  disabled: boolean;
2612
2607
  prependIcon: string;
2613
2608
  appendIcon: string;
2614
- modelValue: any;
2615
2609
  id: string | undefined;
2610
+ modelValue: any;
2616
2611
  placeholder: string;
2617
2612
  errorMsg: string;
2618
2613
  hideDetails: boolean;
@@ -2671,7 +2666,6 @@ export declare const RTooltip: __VLS_WithTemplateSlots_14<DefineComponent<__VLS_
2671
2666
  type: string;
2672
2667
  text: string;
2673
2668
  disabled: boolean;
2674
- triggerClass: string;
2675
2669
  placement: Placements;
2676
2670
  padding: number;
2677
2671
  dark: boolean;
@@ -2685,6 +2679,7 @@ export declare const RTooltip: __VLS_WithTemplateSlots_14<DefineComponent<__VLS_
2685
2679
  outsideClick: boolean;
2686
2680
  triggerContent: string;
2687
2681
  resizable: boolean;
2682
+ triggerClass: string;
2688
2683
  tooltipClass: string;
2689
2684
  }, {}>, {
2690
2685
  default?(_: {
@@ -2707,31 +2702,33 @@ declare function select(id: never, value: boolean): void;
2707
2702
  declare interface SelectProps {
2708
2703
  /**
2709
2704
  * Options of the Dropdown
2710
- * @type {Option[]}
2705
+ * @type {Option[] | string[] | number[]}
2711
2706
  * @default []
2712
2707
  * @example
2713
2708
  * <Dropdown
2714
2709
  * :options="[
2715
2710
  * {
2711
+ * id: '1',
2716
2712
  * value: '1',
2717
2713
  * label: 'Option 1',
2718
2714
  * },
2719
2715
  * {
2716
+ * id: '1',
2720
2717
  * value: '2',
2721
2718
  * label: '2',
2722
2719
  * },
2723
2720
  * ]"
2724
2721
  * />
2725
2722
  */
2726
- options: Option_2[];
2723
+ options: Option_2[] | string[] | number[];
2727
2724
  /**
2728
2725
  * Value of the Dropdown
2729
- * @type {string | number | Option | Option[]}
2726
+ * @type {string | number | Option}
2730
2727
  * @default ''
2731
2728
  * @example
2732
2729
  * <Dropdown v-model="model" />
2733
2730
  */
2734
- modelValue: string | number | Option_2 | Option_2[];
2731
+ modelValue: string | number | Option_2 | (string | number | Option_2)[];
2735
2732
  /**
2736
2733
  * Placeholder Dropdown
2737
2734
  * @type {InputHTMLAttributes['placeholder']}
@@ -2853,9 +2850,34 @@ declare interface SelectProps {
2853
2850
  * <Dropdown autocomplete="on" />
2854
2851
  */
2855
2852
  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;
2856
2878
  }
2857
2879
 
2858
- declare type Tab = {
2880
+ declare interface Tab {
2859
2881
  id: string | number;
2860
2882
  variant?: TabItemVariant;
2861
2883
  label?: string;
@@ -2863,7 +2885,7 @@ declare type Tab = {
2863
2885
  appendIcon?: string;
2864
2886
  disabled?: boolean;
2865
2887
  active?: boolean;
2866
- };
2888
+ }
2867
2889
 
2868
2890
  declare type TabItemVariant = 'default' | 'text' | 'icon';
2869
2891