@zuzjs/ui 1.0.38 → 1.0.39

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.cts CHANGED
@@ -1055,6 +1055,7 @@ type IconProps = Omit<BoxProps, `name`> & {
1055
1055
  pathCount?: number;
1056
1056
  variant?: ValueOf<typeof Variant>;
1057
1057
  color?: string;
1058
+ size?: number;
1058
1059
  };
1059
1060
 
1060
1061
  declare const Icon: react.ForwardRefExoticComponent<Omit<IconProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
@@ -1350,12 +1351,12 @@ interface SelectHandler {
1350
1351
  * Programmatically sets the selected option.
1351
1352
  * @param option - The option object or value string to select.
1352
1353
  */
1353
- setSelected: (option: Option | string) => void;
1354
+ setSelected: (option: Option | string | Option[] | string[]) => void;
1354
1355
  /**
1355
1356
  * Retrieves the currently selected option object.
1356
1357
  * @returns The selected Option or null if nothing is selected.
1357
1358
  */
1358
- getValue: () => Option | null;
1359
+ getValue: () => Option | Option[] | null;
1359
1360
  }
1360
1361
  /**
1361
1362
  * Represents an individual option within the Select component.
@@ -1368,7 +1369,9 @@ type Option = {
1368
1369
  /** The display text for the option. */
1369
1370
  label: string;
1370
1371
  /** The underlying value for the option. */
1371
- value: string;
1372
+ value: string | number;
1373
+ /** Optional flag to disable this specific option. */
1374
+ disabled?: boolean;
1372
1375
  };
1373
1376
  /**
1374
1377
  * Represents an option object with a label and value.
@@ -1377,7 +1380,8 @@ type Value = FormEventHandler<HTMLDivElement> & Option;
1377
1380
  interface OptionItemProps {
1378
1381
  updateValue: (o: Option) => void;
1379
1382
  o: Option;
1380
- value: Option;
1383
+ selected?: boolean;
1384
+ checkIcon?: string | ReactNode;
1381
1385
  }
1382
1386
  /**
1383
1387
  * Props for the Select component.
@@ -1440,6 +1444,12 @@ type SelectProps = Omit<BoxProps, "onChange" | "ref"> & {
1440
1444
  maxHeight?: number;
1441
1445
  arrowDownIcon?: string | ReactNode;
1442
1446
  arrowUpIcon?: string | ReactNode;
1447
+ disabled?: boolean;
1448
+ multiple?: boolean;
1449
+ tokenizer?: boolean;
1450
+ wrapTokens?: boolean;
1451
+ checkIcon?: string | ReactNode;
1452
+ closeIcon?: string | ReactNode;
1443
1453
  };
1444
1454
 
1445
1455
  declare const Select: {
package/dist/index.d.ts CHANGED
@@ -1055,6 +1055,7 @@ type IconProps = Omit<BoxProps, `name`> & {
1055
1055
  pathCount?: number;
1056
1056
  variant?: ValueOf<typeof Variant>;
1057
1057
  color?: string;
1058
+ size?: number;
1058
1059
  };
1059
1060
 
1060
1061
  declare const Icon: react.ForwardRefExoticComponent<Omit<IconProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
@@ -1350,12 +1351,12 @@ interface SelectHandler {
1350
1351
  * Programmatically sets the selected option.
1351
1352
  * @param option - The option object or value string to select.
1352
1353
  */
1353
- setSelected: (option: Option | string) => void;
1354
+ setSelected: (option: Option | string | Option[] | string[]) => void;
1354
1355
  /**
1355
1356
  * Retrieves the currently selected option object.
1356
1357
  * @returns The selected Option or null if nothing is selected.
1357
1358
  */
1358
- getValue: () => Option | null;
1359
+ getValue: () => Option | Option[] | null;
1359
1360
  }
1360
1361
  /**
1361
1362
  * Represents an individual option within the Select component.
@@ -1368,7 +1369,9 @@ type Option = {
1368
1369
  /** The display text for the option. */
1369
1370
  label: string;
1370
1371
  /** The underlying value for the option. */
1371
- value: string;
1372
+ value: string | number;
1373
+ /** Optional flag to disable this specific option. */
1374
+ disabled?: boolean;
1372
1375
  };
1373
1376
  /**
1374
1377
  * Represents an option object with a label and value.
@@ -1377,7 +1380,8 @@ type Value = FormEventHandler<HTMLDivElement> & Option;
1377
1380
  interface OptionItemProps {
1378
1381
  updateValue: (o: Option) => void;
1379
1382
  o: Option;
1380
- value: Option;
1383
+ selected?: boolean;
1384
+ checkIcon?: string | ReactNode;
1381
1385
  }
1382
1386
  /**
1383
1387
  * Props for the Select component.
@@ -1440,6 +1444,12 @@ type SelectProps = Omit<BoxProps, "onChange" | "ref"> & {
1440
1444
  maxHeight?: number;
1441
1445
  arrowDownIcon?: string | ReactNode;
1442
1446
  arrowUpIcon?: string | ReactNode;
1447
+ disabled?: boolean;
1448
+ multiple?: boolean;
1449
+ tokenizer?: boolean;
1450
+ wrapTokens?: boolean;
1451
+ checkIcon?: string | ReactNode;
1452
+ closeIcon?: string | ReactNode;
1443
1453
  };
1444
1454
 
1445
1455
  declare const Select: {