@nimbus-ds/components 5.3.0 → 5.3.1-rc.1

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.
package/dist/index.d.ts CHANGED
@@ -2460,6 +2460,48 @@ export interface ListProperties {
2460
2460
  }
2461
2461
  export type ListProps = ListProperties & HTMLAttributes<HTMLUListElement | HTMLOListElement>;
2462
2462
  export declare const List: React.FC<ListProps> & ListComponents;
2463
+ export type MultiSelectSkeletonSkeletonProperties = Partial<Pick<SkeletonProps, "width" | "data-testid">>;
2464
+ export type MultiSelectSkeletonSkeletonProps = MultiSelectSkeletonSkeletonProperties & HTMLAttributes<HTMLDivElement>;
2465
+ declare const MultiSelectSkeleton: React.FC<MultiSelectSkeletonSkeletonProps>;
2466
+ export interface MultiSelectComponents {
2467
+ Skeleton: typeof MultiSelectSkeleton;
2468
+ }
2469
+ export interface MultiSelectOption {
2470
+ /**
2471
+ * Label for the option.
2472
+ */
2473
+ label: string;
2474
+ /**
2475
+ * Value of the option
2476
+ */
2477
+ value: string;
2478
+ }
2479
+ export interface MultiSelectProperties {
2480
+ /**
2481
+ * The name of the wrapper element or the select element when native.
2482
+ */
2483
+ name: string;
2484
+ /**
2485
+ * The id of the wrapper element or the select element when native.
2486
+ */
2487
+ id: string;
2488
+ /**
2489
+ * Change the visual style of the select.
2490
+ * @default neutral
2491
+ */
2492
+ appearance?: "success" | "warning" | "danger" | "neutral";
2493
+ /**
2494
+ * Options of the MultiSelect
2495
+ */
2496
+ options: MultiSelectOption[];
2497
+ /**
2498
+ * Options of the MultiSelect
2499
+ */
2500
+ onChange?: (values: string[]) => void;
2501
+ }
2502
+ export type MultiSelectBaseProps = MultiSelectProperties & Omit<InputHTMLAttributes<HTMLInputElement>, "children">;
2503
+ export declare const MultiSelect: React.FC<MultiSelectBaseProps> & MultiSelectComponents;
2504
+ export type MultiSelectProps = ComponentPropsWithRef<typeof MultiSelect>;
2463
2505
  export type PopoverPlacement = "top" | "right" | "bottom" | "left" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end" | "top-start" | "top-end";
2464
2506
  export interface PopoverProperties extends PopoverSprinkle {
2465
2507
  /**