widenarrow-ui 1.0.37 → 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/lib/index.d.ts CHANGED
@@ -13,13 +13,13 @@ interface MarginInterface {
13
13
  marginLeft?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '025' | '05' | '15' | '25' | 'auto';
14
14
  }
15
15
  interface PaddingInterface {
16
- padding?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '025' | '05' | '15' | '25' | 'auto';
17
- paddingX?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8';
18
- paddingY?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8';
19
- paddingTop?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '025' | '05' | '15' | '25' | 'auto';
20
- paddingBottom?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '025' | '05' | '15' | '25' | 'auto';
21
- paddingRight?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '025' | '05' | '15' | '25' | 'auto';
22
- paddingLeft?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '025' | '05' | '15' | '25' | 'auto';
16
+ padding?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '025' | '05' | '15' | '25';
17
+ paddingX?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '025' | '05' | '15' | '25';
18
+ paddingY?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '025' | '05' | '15' | '25';
19
+ paddingTop?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '025' | '05' | '15' | '25';
20
+ paddingBottom?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '025' | '05' | '15' | '25';
21
+ paddingRight?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '025' | '05' | '15' | '25';
22
+ paddingLeft?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '025' | '05' | '15' | '25';
23
23
  }
24
24
  interface FlexStylingInterface {
25
25
  alignItems?: 'center' | 'flexStart' | 'flexEnd' | 'spaceAround' | 'spaceBetween';
@@ -340,10 +340,10 @@ declare const Box: react.ForwardRefExoticComponent<BoxProps & react.RefAttribute
340
340
  interface ButtonProps {
341
341
  text?: string;
342
342
  onClickCallback?: (e: MouseEvent<HTMLButtonElement>) => void;
343
- type?: Partial<HierarchyTypes>;
344
- size?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
345
- icon?: Partial<IconTypes>;
346
- iconSize?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE | SizeTypes.AUTO;
343
+ type?: Partial<HierarchyTypes$1>;
344
+ size?: SizeTypes$1.SMALL | SizeTypes$1.MEDIUM | SizeTypes$1.LARGE;
345
+ icon?: Partial<IconTypes$1>;
346
+ iconSize?: SizeTypes$1.SMALL | SizeTypes$1.MEDIUM | SizeTypes$1.LARGE | SizeTypes$1.AUTO;
347
347
  withIconLeft?: boolean;
348
348
  disabled?: boolean;
349
349
  className?: string;
@@ -430,7 +430,6 @@ interface DropDownProps {
430
430
  loading?: boolean;
431
431
  childrenIsList?: boolean;
432
432
  withVisibleOverflow?: boolean;
433
- closeDropDownOnClick?: boolean;
434
433
  placement?: Placement;
435
434
  strategy?: PositioningStrategy;
436
435
  offset?: {
@@ -445,22 +444,22 @@ interface DropDownProps {
445
444
  declare const DropDown: FC<DropDownProps>;
446
445
 
447
446
  interface DropDownItemProps {
448
- text: string;
447
+ text?: string;
449
448
  onClickCallback?: (e: MouseEvent<HTMLButtonElement>) => void;
450
- size?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
449
+ size?: SizeTypes$1.SMALL | SizeTypes$1.MEDIUM | SizeTypes$1.LARGE;
451
450
  active?: boolean;
452
- withChevronRight?: boolean;
453
451
  withEllipsis?: boolean;
454
452
  disabled?: boolean;
455
453
  wrapperElement?: 'div' | 'li';
456
454
  className?: string;
457
- type?: HierarchyTypes.PRIMARY | HierarchyTypes.SECONDARY;
458
- leftIcon?: Partial<IconTypes>;
459
- rightIcon?: Partial<IconTypes>;
455
+ type?: HierarchyTypes$1.PRIMARY | HierarchyTypes$1.SECONDARY;
456
+ leftIcon?: Partial<IconTypes$1>;
457
+ rightIcon?: Partial<IconTypes$1>;
460
458
  rightComponent?: ReactNode;
461
- iconSize?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
462
- iconColor?: Partial<ColorTypes>;
463
- textColor?: Partial<ColorTypes>;
459
+ children?: ReactNode | ReactNode[];
460
+ iconSize?: SizeTypes$1.SMALL | SizeTypes$1.MEDIUM | SizeTypes$1.LARGE;
461
+ iconColor?: Partial<ColorTypes$1>;
462
+ textColor?: Partial<ColorTypes$1>;
464
463
  fontSize?: string;
465
464
  textAlign?: string;
466
465
  fontWeight?: string;
@@ -585,7 +584,7 @@ interface IconInterface {
585
584
  }
586
585
  interface InputProps {
587
586
  name: string;
588
- value: string;
587
+ value: string | number;
589
588
  autoComplete?: string;
590
589
  autoFocus?: boolean;
591
590
  className?: string;