@app-studio/components 0.10.22 → 0.10.23

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.
Files changed (99) hide show
  1. package/dist/index.d.ts +229 -73
  2. package/dist/native/components/Background/Background/Background.view.js +7 -2
  3. package/dist/native/components/Background/Background/Background.view.js.map +1 -1
  4. package/dist/native/components/Button/Button/Button.style.d.ts +14 -0
  5. package/dist/native/components/Button/Button/Button.style.js +19 -5
  6. package/dist/native/components/Button/Button/Button.style.js.map +1 -1
  7. package/dist/native/components/Button/Button/Button.type.d.ts +9 -0
  8. package/dist/native/components/Button/Button/Button.type.js +3 -0
  9. package/dist/native/components/Button/Button/Button.type.js.map +1 -0
  10. package/dist/native/components/Button/Button/Button.view.js +4 -4
  11. package/dist/native/components/Button/Button/Button.view.js.map +1 -1
  12. package/dist/native/components/Drawer/Drawer/Drawer.type.d.ts +3 -0
  13. package/dist/native/components/Drawer/Drawer/Drawer.type.js +2 -0
  14. package/dist/native/components/Drawer/Drawer/Drawer.type.js.map +1 -0
  15. package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.type.d.ts +8 -0
  16. package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.type.js +2 -0
  17. package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.type.js.map +1 -0
  18. package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.type.d.ts +2 -1
  19. package/dist/native/components/Form/CountryPicker/CountryPicker/CountryPicker.type.d.ts +19 -0
  20. package/dist/native/components/Form/CountryPicker/CountryPicker/CountryPicker.type.js +2 -0
  21. package/dist/native/components/Form/CountryPicker/CountryPicker/CountryPicker.type.js.map +1 -0
  22. package/dist/native/components/Form/CountryPicker/CountryPicker/CountryPicker.view.js +3 -2
  23. package/dist/native/components/Form/CountryPicker/CountryPicker/CountryPicker.view.js.map +1 -1
  24. package/dist/native/components/Form/CountryPicker/CountryPicker/CountryPicker.view.native.js +2 -2
  25. package/dist/native/components/Form/DatePicker/DatePicker/DatePicker.type.d.ts +12 -0
  26. package/dist/native/components/Form/DatePicker/DatePicker/DatePicker.type.js +2 -0
  27. package/dist/native/components/Form/DatePicker/DatePicker/DatePicker.type.js.map +1 -0
  28. package/dist/native/components/Form/DatePicker/DatePicker/DatePicker.view.js +5 -2
  29. package/dist/native/components/Form/DatePicker/DatePicker/DatePicker.view.js.map +1 -1
  30. package/dist/native/components/Form/Label/Label/Label.props.d.ts +1 -1
  31. package/dist/native/components/Form/Password/Password/Password.type.d.ts +10 -0
  32. package/dist/native/components/Form/Password/Password/Password.type.js +2 -0
  33. package/dist/native/components/Form/Password/Password/Password.type.js.map +1 -0
  34. package/dist/native/components/Form/Password/Password.js +22 -3
  35. package/dist/native/components/Form/Password/Password.js.map +1 -1
  36. package/dist/native/components/Form/Radio/Radio/Radio.type.d.ts +8 -0
  37. package/dist/native/components/Form/Radio/Radio/Radio.type.js +2 -0
  38. package/dist/native/components/Form/Radio/Radio/Radio.type.js.map +1 -0
  39. package/dist/native/components/Form/Radio/RadioGroup/RadioGroup.type.d.ts +7 -0
  40. package/dist/native/components/Form/Radio/RadioGroup/RadioGroup.type.js +2 -0
  41. package/dist/native/components/Form/Radio/RadioGroup/RadioGroup.type.js.map +1 -0
  42. package/dist/native/components/Form/Select/Select/Select.props.d.ts +2 -2
  43. package/dist/native/components/Form/Select/Select/Select.type.d.ts +19 -0
  44. package/dist/native/components/Form/Select/Select/Select.type.js +2 -0
  45. package/dist/native/components/Form/Select/Select/Select.type.js.map +1 -0
  46. package/dist/native/components/Form/Select/Select/Select.view.js +15 -30
  47. package/dist/native/components/Form/Select/Select/Select.view.js.map +1 -1
  48. package/dist/native/components/Form/Selector/Selector/Selector.type.d.ts +19 -0
  49. package/dist/native/components/Form/Selector/Selector/Selector.type.js +2 -0
  50. package/dist/native/components/Form/Selector/Selector/Selector.type.js.map +1 -0
  51. package/dist/native/components/Form/Switch/Switch/Switch.type.d.ts +7 -0
  52. package/dist/native/components/Form/Switch/Switch/Switch.type.js +2 -0
  53. package/dist/native/components/Form/Switch/Switch/Switch.type.js.map +1 -0
  54. package/dist/native/components/Form/TagInput/TagInput/TagInput.view.js +6 -1
  55. package/dist/native/components/Form/TagInput/TagInput/TagInput.view.js.map +1 -1
  56. package/dist/native/components/Form/TextField/TextField/TextField.type.d.ts +12 -0
  57. package/dist/native/components/Form/TextField/TextField/TextField.type.js +2 -0
  58. package/dist/native/components/Form/TextField/TextField/TextField.type.js.map +1 -0
  59. package/dist/native/components/Form/TextField/TextField/TextField.view.js +4 -1
  60. package/dist/native/components/Form/TextField/TextField/TextField.view.js.map +1 -1
  61. package/dist/native/components/Input/FieldContainer/FieldContainer.js +1 -1
  62. package/dist/native/components/Input/FieldContainer/FieldContainer.js.map +1 -1
  63. package/dist/native/components/Input/FieldContent/FieldContent.js +13 -1
  64. package/dist/native/components/Input/FieldContent/FieldContent.js.map +1 -1
  65. package/dist/native/components/Input/FieldWrapper/FieldWrapper.js +1 -1
  66. package/dist/native/components/Input/FieldWrapper/FieldWrapper.js.map +1 -1
  67. package/dist/native/components/Input/fieldSizes.d.ts +33 -0
  68. package/dist/native/components/Input/fieldSizes.js +37 -0
  69. package/dist/native/components/Input/fieldSizes.js.map +1 -0
  70. package/dist/native/components/Link/Link/Link.props.d.ts +5 -3
  71. package/dist/native/components/Link/Link/Link.type.d.ts +7 -0
  72. package/dist/native/components/Link/Link/Link.type.js +2 -0
  73. package/dist/native/components/Link/Link/Link.type.js.map +1 -0
  74. package/dist/native/components/Link/Link/Link.view.js +40 -25
  75. package/dist/native/components/Link/Link/Link.view.js.map +1 -1
  76. package/dist/native/components/Link/Link/Link.view.native.js +4 -3
  77. package/dist/native/components/Link/Link/Link.view.native.js.map +1 -1
  78. package/dist/native/components/Link/Link.js +1 -5
  79. package/dist/native/components/Link/Link.js.map +1 -1
  80. package/dist/native/components/Loader/Loader/Loader.type.d.ts +4 -0
  81. package/dist/native/components/Loader/Loader/Loader.type.js +2 -0
  82. package/dist/native/components/Loader/Loader/Loader.type.js.map +1 -0
  83. package/dist/native/components/Modal/Modal/Modal.type.d.ts +4 -0
  84. package/dist/native/components/Modal/Modal/Modal.type.js +2 -0
  85. package/dist/native/components/Modal/Modal/Modal.type.js.map +1 -0
  86. package/dist/native/components/Router/Router.match.js +1 -1
  87. package/dist/native/components/Router/Router.match.js.map +1 -1
  88. package/dist/native/components/Router/index.d.ts +1 -1
  89. package/dist/native/components/Tabs/Tabs/Tabs.type.d.ts +53 -0
  90. package/dist/native/components/Tabs/Tabs/Tabs.type.js +2 -0
  91. package/dist/native/components/Tabs/Tabs/Tabs.type.js.map +1 -0
  92. package/dist/web.cjs.js +7 -7
  93. package/dist/web.cjs.js.map +1 -1
  94. package/dist/web.esm.js +4479 -4479
  95. package/dist/web.esm.js.map +1 -1
  96. package/dist/web.umd.js +6 -6
  97. package/dist/web.umd.js.map +1 -1
  98. package/docs/getting-started/introduction.md +74 -4
  99. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,71 +1,17 @@
1
- import { Animation as Animation_2 } from './Button.type';
2
1
  import { AnimationProps } from 'app-studio';
3
2
  import { ButtonProps as ButtonProps_2 } from 'app-studio';
4
- import { CheckboxStyles } from './Checkbox.type';
5
- import { CloseButtonPosition } from './Modal.type';
6
- import { CloseButtonPosition as CloseButtonPosition_2 } from './Drawer.type';
7
- import { Country } from './CountryPicker.type';
8
- import { CountryPickerStyles } from './CountryPicker.type';
9
- import { DatePickerStyles } from './DatePicker.type';
10
3
  import { default as default_2 } from 'react';
11
4
  import { default as default_3 } from 'lucide-react/dynamicIconImports';
12
5
  import { Dispatch } from 'react';
13
- import { Elevation } from '../../../utils/elevation';
14
- import { Elevation as Elevation_2 } from '../../../../utils/elevation';
15
6
  import { FormikConfig } from 'formik';
16
- import { IconPosition } from './Button.type';
17
7
  import { ImageProps } from 'app-studio';
18
8
  import { InputProps } from 'app-studio';
19
- import { LoaderPosition } from './Button.type';
20
- import { LoaderType } from './Loader.type';
21
- import { Option as Option_2 } from './Select.type';
22
- import { Option as Option_3 } from './Selector.type';
23
- import { Placement } from './Drawer.type';
24
- import { Position as Position_4 } from './Modal.type';
25
- import { RadioStyles } from './Radio.type';
26
9
  import { ReactNode } from 'react';
27
- import { SelectorStyles } from './Selector.type';
28
- import { SelectStyles } from './Select.type';
29
10
  import { SetStateAction } from 'react';
30
11
  import { Shadow } from 'app-studio';
31
- import { Shape as Shape_10 } from './CountryPicker.type';
32
- import { Shape as Shape_11 } from './DatePicker.type';
33
- import { Shape as Shape_20 } from './Modal.type';
34
- import { Shape as Shape_3 } from './Button.type';
35
- import { Shape as Shape_5 } from './Select.type';
36
- import { Shape as Shape_6 } from './Selector.type';
37
- import { Shape as Shape_8 } from './TextField.type';
38
- import { Size as Size_11 } from './TextField.type';
39
- import { Size as Size_12 } from './Checkbox.type';
40
- import { Size as Size_14 } from './CountryPicker.type';
41
- import { Size as Size_15 } from './DatePicker.type';
42
- import { Size as Size_18 } from './Radio.type';
43
- import { Size as Size_23 } from './Link.type';
44
- import { Size as Size_24 } from './Modal.type';
45
- import { Size as Size_25 } from './Drawer.type';
46
- import { Size as Size_3 } from './Loader.type';
47
- import { Size as Size_4 } from './Button.type';
48
- import { Size as Size_7 } from './Select.type';
49
- import { Size as Size_8 } from './Switch.type';
50
- import { Size as Size_9 } from './Selector.type';
51
- import { Speed } from './Loader.type';
52
12
  import { StoreApi } from 'zustand';
53
- import { Styles } from './Link.type';
54
- import { SwitchStyles } from './Switch.type';
55
- import { Tab } from './Tabs.type';
56
- import { TabsStyles } from './Tabs.type';
57
- import { TabsVariant } from './Tabs.type';
58
- import { TextDecorationStyle } from './Link.type';
59
- import { TextFieldStyles } from './TextField.type';
60
- import { TextPosition } from './Loader.type';
61
13
  import { TextProps } from 'app-studio';
62
14
  import { UseBoundStore } from 'zustand';
63
- import { Variant as Variant_10 } from './TextField.type';
64
- import { Variant as Variant_12 } from './CountryPicker.type';
65
- import { Variant as Variant_13 } from './DatePicker.type';
66
- import { Variant as Variant_4 } from './Button.type';
67
- import { Variant as Variant_7 } from './Select.type';
68
- import { Variant as Variant_8 } from './Selector.type';
69
15
  import { ViewProps } from 'app-studio';
70
16
 
71
17
  export declare const Accordion: AccordionComponentType;
@@ -237,6 +183,8 @@ declare type Alignment_2 = 'start' | 'center' | 'end';
237
183
 
238
184
  declare type Alignment_3 = 'start' | 'center' | 'end';
239
185
 
186
+ declare type Animation_2 = 'borderMoving' | 'animatedStroke' | 'borderReveal';
187
+
240
188
  export declare const ArrowIcon: default_2.FC<Omit<IconProps, "name">>;
241
189
 
242
190
  export declare const AspectRatio: ({ ratio, children, ...props }: AspectRatioProps) => default_2.JSX.Element;
@@ -1213,10 +1161,16 @@ export declare interface CheckboxProps extends Omit<InputProps, 'size' | 'onChan
1213
1161
  onValueChange?: Function;
1214
1162
  views?: CheckboxStyles;
1215
1163
  size?: Size_12;
1216
- shadow?: Shadow | Elevation_2 | ViewProps;
1164
+ shadow?: Shadow | Elevation | ViewProps;
1217
1165
  infoText?: string;
1218
1166
  }
1219
1167
 
1168
+ declare type CheckboxStyles = {
1169
+ checkbox?: ViewProps;
1170
+ label?: ViewProps;
1171
+ infoText?: ViewProps;
1172
+ };
1173
+
1220
1174
  export declare interface CheckboxViewProps extends CheckboxProps {
1221
1175
  isHovered?: boolean;
1222
1176
  setIsHovered?: (hovered: boolean) => void;
@@ -1232,6 +1186,10 @@ export declare const ChevronIcon: default_2.FC<Omit<IconProps, "name">>;
1232
1186
 
1233
1187
  export declare const ClockIcon: default_2.FC<Omit<IconProps, "name">>;
1234
1188
 
1189
+ declare type CloseButtonPosition = 'left' | 'right' | 'none';
1190
+
1191
+ declare type CloseButtonPosition_2 = 'left' | 'right' | 'none';
1192
+
1235
1193
  export declare const CloseEyeIcon: default_2.FC<Omit<IconProps, "name">>;
1236
1194
 
1237
1195
  export declare const CloseIcon: default_2.FC<Omit<IconProps, "name">>;
@@ -1259,7 +1217,7 @@ export declare interface ColorInputProps extends Omit<InputProps, 'size' | 'onCh
1259
1217
  onClick?: () => void;
1260
1218
  onFocus?: () => void;
1261
1219
  size?: Size_13;
1262
- shadow?: Shadow | Elevation_2 | ViewProps;
1220
+ shadow?: Shadow | Elevation | ViewProps;
1263
1221
  shape?: Shape_9;
1264
1222
  views?: ColorInputStyles;
1265
1223
  value?: string;
@@ -1286,7 +1244,7 @@ declare type ColorInputStyles = {
1286
1244
  dropdown?: ViewProps;
1287
1245
  colorGrid?: ViewProps;
1288
1246
  colorSwatch?: ViewProps;
1289
- customInput?: ViewProps;
1247
+ customInput?: TextFieldStyles;
1290
1248
  recentColors?: ViewProps;
1291
1249
  };
1292
1250
 
@@ -1712,6 +1670,13 @@ declare type CookieConsentVariant = 'default' | 'info' | 'primary';
1712
1670
 
1713
1671
  export declare const CopyIcon: default_2.FC<Omit<IconProps, "name">>;
1714
1672
 
1673
+ declare type Country = {
1674
+ name: string;
1675
+ dial_code: string;
1676
+ emoji: string;
1677
+ code: string;
1678
+ };
1679
+
1715
1680
  export declare const CountryPicker: default_2.FC<CountryPickerProps>;
1716
1681
 
1717
1682
  export declare interface CountryPickerDropDownProps extends Omit<InputProps, 'size'> {
@@ -1738,9 +1703,19 @@ export declare interface CountryPickerProps extends Omit<InputProps, 'size' | 's
1738
1703
  size?: Size_14;
1739
1704
  value?: string;
1740
1705
  variant?: Variant_12;
1741
- shadow?: Shadow | Elevation_2 | ViewProps;
1706
+ shadow?: Shadow | Elevation | ViewProps;
1742
1707
  }
1743
1708
 
1709
+ declare type CountryPickerStyles = {
1710
+ text?: ViewProps;
1711
+ icon?: ViewProps;
1712
+ dropDown?: ViewProps;
1713
+ container?: ViewProps;
1714
+ label?: ViewProps;
1715
+ helperText?: ViewProps;
1716
+ field?: ViewProps;
1717
+ };
1718
+
1744
1719
  export declare interface CountryPickerViewProps extends CountryPickerProps {
1745
1720
  isHovered?: boolean;
1746
1721
  setIsHovered?: (hovered: boolean) => void;
@@ -1830,9 +1805,17 @@ export declare interface DatePickerProps extends Omit<ViewProps, 'size' | 'shado
1830
1805
  /**
1831
1806
  * Adds a shadow effect to the DatePicker.
1832
1807
  */
1833
- shadow?: Shadow | Elevation_2 | ViewProps;
1808
+ shadow?: Shadow | Elevation | ViewProps;
1834
1809
  }
1835
1810
 
1811
+ declare type DatePickerStyles = {
1812
+ container?: ViewProps;
1813
+ text?: ViewProps;
1814
+ label?: ViewProps;
1815
+ helperText?: ViewProps;
1816
+ field?: ViewProps;
1817
+ };
1818
+
1836
1819
  export declare interface DatePickerViewProps extends DatePickerProps {
1837
1820
  /**
1838
1821
  * The selected date value as a string.
@@ -2252,7 +2235,11 @@ export declare const DustBinIcon: default_2.FC<Omit<IconProps, "name">>;
2252
2235
 
2253
2236
  export declare const EditIcon: default_2.FC<Omit<IconProps, "name">>;
2254
2237
 
2255
- declare type Elevation_3 = 'none' | 'low' | 'medium' | 'high';
2238
+ declare type Elevation = {
2239
+ elevation: number;
2240
+ };
2241
+
2242
+ declare type Elevation_2 = 'none' | 'low' | 'medium' | 'high';
2256
2243
 
2257
2244
  declare type Emoji = {
2258
2245
  emoji: string;
@@ -2689,6 +2676,8 @@ export declare interface IconPickerViewProps extends IconPickerProps {
2689
2676
  dropdownRef: React.RefObject<HTMLDivElement | null>;
2690
2677
  }
2691
2678
 
2679
+ declare type IconPosition = 'left' | 'right' | 'top' | 'bottom';
2680
+
2692
2681
  export declare interface IconProps extends Omit<ViewProps, 'orientation' | 'name' | 'size'> {
2693
2682
  color?: string;
2694
2683
  filled?: boolean;
@@ -2709,11 +2698,11 @@ export declare const InfoIcon: default_2.FC<Omit<IconProps, "name">>;
2709
2698
 
2710
2699
  export declare const InstagramIcon: default_2.FC<Omit<IconProps, "name">>;
2711
2700
 
2712
- export declare interface ItemProps extends Omit<InputProps, 'size'> {
2701
+ export declare interface ItemProps extends Omit<InputProps, 'size' | 'style'> {
2713
2702
  callback?: Function;
2714
2703
  option: Option_2;
2715
2704
  size?: Size_7;
2716
- style?: SelectStyles;
2705
+ style?: ViewProps;
2717
2706
  isHovered?: boolean;
2718
2707
  setIsHovered?: Function;
2719
2708
  }
@@ -2760,17 +2749,21 @@ export declare interface LinkProps extends Omit<ViewProps, 'size'> {
2760
2749
  underline?: TextDecorationStyle;
2761
2750
  isExternal?: boolean;
2762
2751
  iconSize?: Size_23;
2763
- to: string;
2752
+ to?: string;
2753
+ href?: string;
2754
+ onClick?: (event: default_2.MouseEvent) => void;
2764
2755
  views?: Styles;
2765
2756
  }
2766
2757
 
2767
2758
  export declare interface LinkViewProps extends LinkProps {
2768
- isHovered: boolean;
2769
- setIsHovered: Function;
2759
+ isHovered?: boolean;
2760
+ setIsHovered?: Function;
2770
2761
  }
2771
2762
 
2772
2763
  export declare const Loader: default_2.FC<LoaderProps>;
2773
2764
 
2765
+ declare type LoaderPosition = 'left' | 'right';
2766
+
2774
2767
  export declare interface LoaderProps extends Omit<ViewProps, 'size'> {
2775
2768
  children?: default_2.ReactNode;
2776
2769
  loaderColor?: string;
@@ -2781,6 +2774,8 @@ export declare interface LoaderProps extends Omit<ViewProps, 'size'> {
2781
2774
  speed?: Speed;
2782
2775
  }
2783
2776
 
2777
+ declare type LoaderType = 'default' | 'dotted' | 'quarter';
2778
+
2784
2779
  export declare const LoadingSpinnerIcon: default_2.FC<Omit<IconProps, "name">>;
2785
2780
 
2786
2781
  export declare const LockIcon: default_2.FC<Omit<IconProps, "name">>;
@@ -3178,6 +3173,17 @@ export declare const NotificationIcon: default_2.FC<Omit<IconProps, "name">>;
3178
3173
 
3179
3174
  export declare const OpenEyeIcon: default_2.FC<Omit<IconProps, "name">>;
3180
3175
 
3176
+ declare interface Option_2 {
3177
+ label: string;
3178
+ value: string;
3179
+ }
3180
+
3181
+ declare interface Option_3 {
3182
+ label: string;
3183
+ value: string;
3184
+ color?: string;
3185
+ }
3186
+
3181
3187
  declare type Orientation = 'horizontal' | 'vertical';
3182
3188
 
3183
3189
  declare type Orientation_2 = 'horizontal' | 'vertical';
@@ -3372,6 +3378,8 @@ export declare interface PasswordViewProps extends PasswordProps {
3372
3378
 
3373
3379
  export declare const PauseIcon: default_2.FC<Omit<IconProps, "name">>;
3374
3380
 
3381
+ declare type Placement = 'left' | 'right' | 'top' | 'bottom';
3382
+
3375
3383
  export declare const PlayIcon: default_2.FC<Omit<IconProps, "name">>;
3376
3384
 
3377
3385
  export declare const PlusIcon: default_2.FC<Omit<IconProps, "name">>;
@@ -3382,6 +3390,8 @@ declare type Position_2 = 'top' | 'right' | 'bottom' | 'left';
3382
3390
 
3383
3391
  declare type Position_3 = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
3384
3392
 
3393
+ declare type Position_4 = 'top' | 'left' | 'right' | 'bottom' | 'center';
3394
+
3385
3395
  declare type Position_5 = 'top' | 'right' | 'bottom' | 'left';
3386
3396
 
3387
3397
  declare type Position_6 = 'left' | 'right';
@@ -3467,10 +3477,16 @@ declare interface RadioProps extends Omit<InputProps, 'size' | 'onChange' | 'sha
3467
3477
  onValueChange?: Function;
3468
3478
  views?: RadioStyles;
3469
3479
  size?: Size_18;
3470
- shadow?: Shadow | Elevation_2 | ViewProps;
3480
+ shadow?: Shadow | Elevation | ViewProps;
3471
3481
  infoText?: string;
3472
3482
  }
3473
3483
 
3484
+ declare type RadioStyles = {
3485
+ radio?: ViewProps;
3486
+ label?: ViewProps;
3487
+ infoText?: ViewProps;
3488
+ };
3489
+
3474
3490
  export declare const RefreshIcon: default_2.FC<Omit<IconProps, "name">>;
3475
3491
 
3476
3492
  export declare const Resizable: ResizableType;
@@ -3618,10 +3634,21 @@ declare interface SelectorProps extends Omit<InputProps, 'size' | 'shadow' | 'va
3618
3634
  variant?: Variant_8;
3619
3635
  views?: SelectorStyles;
3620
3636
  size?: Size_9;
3621
- shadow?: Shadow | Elevation_2 | ViewProps;
3637
+ shadow?: Shadow | Elevation | ViewProps;
3622
3638
  isScrollable?: boolean;
3623
3639
  }
3624
3640
 
3641
+ declare type SelectorStyles = {
3642
+ text?: ViewProps;
3643
+ icon?: ViewProps;
3644
+ dropDown?: ViewProps;
3645
+ selectBox?: ViewProps;
3646
+ label?: ViewProps;
3647
+ helperText?: ViewProps;
3648
+ field?: ViewProps;
3649
+ item?: ViewProps;
3650
+ };
3651
+
3625
3652
  export declare interface SelectProps extends Omit<InputProps, 'size' | 'shadow' | 'value'> {
3626
3653
  id?: string;
3627
3654
  error?: boolean;
@@ -3641,11 +3668,23 @@ export declare interface SelectProps extends Omit<InputProps, 'size' | 'shadow'
3641
3668
  variant?: Variant_7;
3642
3669
  views?: SelectStyles;
3643
3670
  size?: Size_7;
3644
- shadow?: Shadow | Elevation_2 | ViewProps;
3671
+ shadow?: Shadow | Elevation | ViewProps;
3645
3672
  isScrollable?: boolean;
3646
3673
  labelProps?: any;
3647
3674
  }
3648
3675
 
3676
+ declare type SelectStyles = {
3677
+ container?: ViewProps;
3678
+ content?: ViewProps;
3679
+ text?: ViewProps;
3680
+ icon?: ViewProps;
3681
+ dropDown?: ViewProps;
3682
+ selectBox?: ViewProps;
3683
+ label?: ViewProps;
3684
+ helperText?: ViewProps;
3685
+ field?: ViewProps;
3686
+ };
3687
+
3649
3688
  export declare interface SelectViewProps extends SelectProps {
3650
3689
  value: string | Array<string>;
3651
3690
  setValue: Function;
@@ -3689,6 +3728,10 @@ export declare const SettingsIcon: default_2.FC<Omit<IconProps, "name">>;
3689
3728
 
3690
3729
  declare type Shape = 'square' | 'rounded';
3691
3730
 
3731
+ declare type Shape_10 = 'default' | 'square' | 'rounded' | 'pill';
3732
+
3733
+ declare type Shape_11 = 'default' | 'square' | 'rounded' | 'pill';
3734
+
3692
3735
  declare type Shape_12 = 'default' | 'square' | 'rounded' | 'pill';
3693
3736
 
3694
3737
  declare type Shape_13 = 'default' | 'square' | 'rounded' | 'pill';
@@ -3710,14 +3753,24 @@ declare type Shape_19 = 'default' | 'square' | 'rounded' | 'pill';
3710
3753
 
3711
3754
  declare type Shape_2 = 'square' | 'rounded' | 'pill';
3712
3755
 
3756
+ declare type Shape_20 = 'square' | 'rounded';
3757
+
3713
3758
  declare type Shape_21 = 'default' | 'square' | 'rounded' | 'pill';
3714
3759
 
3715
3760
  declare type Shape_22 = 'rounded' | 'square' | 'circular';
3716
3761
 
3762
+ declare type Shape_3 = 'square' | 'rounded' | 'pill';
3763
+
3717
3764
  declare type Shape_4 = 'square' | 'rounded' | 'pill';
3718
3765
 
3766
+ declare type Shape_5 = 'default' | 'square' | 'rounded' | 'pill';
3767
+
3768
+ declare type Shape_6 = 'default' | 'square' | 'rounded' | 'pill';
3769
+
3719
3770
  declare type Shape_7 = 'default' | 'square' | 'rounded' | 'pill';
3720
3771
 
3772
+ declare type Shape_8 = 'default' | 'square' | 'rounded' | 'pill';
3773
+
3721
3774
  declare type Shape_9 = 'default' | 'square' | 'rounded' | 'pill';
3722
3775
 
3723
3776
  export declare const ShapeIcon: default_2.FC<Omit<IconProps, "name">>;
@@ -3827,7 +3880,7 @@ export declare interface SidebarProps {
3827
3880
  collapsedWidth?: string | number;
3828
3881
  breakpoint?: number;
3829
3882
  breakpointBehavior?: BreakpointBehavior;
3830
- elevation?: Elevation_3;
3883
+ elevation?: Elevation_2;
3831
3884
  transitionPreset?: TransitionPreset;
3832
3885
  ariaLabel?: string;
3833
3886
  views?: SidebarStyles;
@@ -3861,12 +3914,22 @@ declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3861
3914
 
3862
3915
  declare type Size_10 = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3863
3916
 
3917
+ declare type Size_11 = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3918
+
3919
+ declare type Size_12 = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3920
+
3864
3921
  declare type Size_13 = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3865
3922
 
3923
+ declare type Size_14 = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3924
+
3925
+ declare type Size_15 = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3926
+
3866
3927
  declare type Size_16 = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3867
3928
 
3868
3929
  declare type Size_17 = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3869
3930
 
3931
+ declare type Size_18 = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3932
+
3870
3933
  /**
3871
3934
  * Size options for the ChatInput component
3872
3935
  */
@@ -3880,6 +3943,12 @@ declare type Size_21 = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3880
3943
 
3881
3944
  declare type Size_22 = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3882
3945
 
3946
+ declare type Size_23 = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3947
+
3948
+ declare type Size_24 = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3949
+
3950
+ declare type Size_25 = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
3951
+
3883
3952
  declare type Size_26 = 'sm' | 'md' | 'lg';
3884
3953
 
3885
3954
  declare type Size_27 = 'sm' | 'md' | 'lg';
@@ -3888,6 +3957,8 @@ declare type Size_28 = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3888
3957
 
3889
3958
  declare type Size_29 = 'sm' | 'md' | 'lg';
3890
3959
 
3960
+ declare type Size_3 = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3961
+
3891
3962
  declare type Size_30 = 'sm' | 'md' | 'lg';
3892
3963
 
3893
3964
  declare type Size_31 = 'sm' | 'md' | 'lg' | 'xl';
@@ -3898,10 +3969,18 @@ declare type Size_33 = 'sm' | 'md' | 'lg';
3898
3969
 
3899
3970
  declare type Size_34 = 'sm' | 'md' | 'lg';
3900
3971
 
3972
+ declare type Size_4 = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3973
+
3901
3974
  declare type Size_5 = 'sm' | 'md' | 'lg';
3902
3975
 
3903
3976
  declare type Size_6 = 'sm' | 'md' | 'lg';
3904
3977
 
3978
+ declare type Size_7 = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3979
+
3980
+ declare type Size_8 = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3981
+
3982
+ declare type Size_9 = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3983
+
3905
3984
  declare type SlideDirection = 'horizontal' | 'vertical';
3906
3985
 
3907
3986
  export declare const Slider: default_2.FC<SliderProps>;
@@ -3945,6 +4024,8 @@ declare interface SliderStyles {
3945
4024
  };
3946
4025
  }
3947
4026
 
4027
+ declare type Speed = 'fast' | 'normal' | 'slow';
4028
+
3948
4029
  export declare const SpinnerIcon: default_2.FC<Omit<IconProps, "name">>;
3949
4030
 
3950
4031
  export declare const SplashScreen: default_2.FC<SplashScreenProps>;
@@ -4009,6 +4090,11 @@ declare type StatusIndicatorStyles = {
4009
4090
 
4010
4091
  export declare const StopIcon: default_2.FC<Omit<IconProps, "name">>;
4011
4092
 
4093
+ declare type Styles = {
4094
+ icon?: ViewProps;
4095
+ text?: ViewProps;
4096
+ };
4097
+
4012
4098
  export declare const SuccessIcon: default_2.FC<Omit<IconProps, "name">>;
4013
4099
 
4014
4100
  declare interface Suggestion {
@@ -4029,7 +4115,7 @@ export declare interface SwitchProps extends Omit<InputProps, 'size' | 'onChange
4029
4115
  name?: string;
4030
4116
  inActiveChild?: React.ReactNode;
4031
4117
  views?: SwitchStyles;
4032
- shadow?: Shadow | Elevation_2 | ViewProps;
4118
+ shadow?: Shadow | Elevation | ViewProps;
4033
4119
  size?: Size_8;
4034
4120
  labelPosition?: 'left' | 'right';
4035
4121
  label?: React.ReactNode;
@@ -4037,6 +4123,12 @@ export declare interface SwitchProps extends Omit<InputProps, 'size' | 'onChange
4037
4123
  variant?: string;
4038
4124
  }
4039
4125
 
4126
+ declare type SwitchStyles = {
4127
+ slider?: ViewProps;
4128
+ circle?: ViewProps;
4129
+ label?: ViewProps;
4130
+ };
4131
+
4040
4132
  export declare interface SwitchViewProps extends SwitchProps {
4041
4133
  isHovered: boolean;
4042
4134
  setIsHovered: Function;
@@ -4046,6 +4138,22 @@ export declare interface SwitchViewProps extends SwitchProps {
4046
4138
  setOn?: Function;
4047
4139
  }
4048
4140
 
4141
+ /**
4142
+ * Defines the structure for a single tab.
4143
+ */
4144
+ declare type Tab = {
4145
+ /** The text displayed on the tab header/button. */
4146
+ title?: string;
4147
+ /** Optional label used as an alternative to `title` in some compositions. */
4148
+ label?: default_2.ReactNode;
4149
+ /** Unique value to identify the tab. If not provided, title will be used. */
4150
+ value?: string | number;
4151
+ /** Optional icon element to display next to the title. */
4152
+ icon?: default_2.ReactNode;
4153
+ /** The content to display when this tab is active. Can be any renderable React node. */
4154
+ content?: default_2.ReactNode;
4155
+ };
4156
+
4049
4157
  export declare const Table: {
4050
4158
  ({ children, views, onClick }: TableLayoutProps): default_2.JSX.Element;
4051
4159
  Head: default_2.FC<ViewProps>;
@@ -4164,6 +4272,27 @@ export declare interface TabsProps {
4164
4272
  children?: default_2.ReactNode;
4165
4273
  }
4166
4274
 
4275
+ /**
4276
+ * Defines the structure for applying custom styles to various parts of the Tabs component.
4277
+ * Allows using either direct CSSProperties or passing props compatible with underlying Button/Text components.
4278
+ */
4279
+ declare type TabsStyles = {
4280
+ /** Styles for the main container wrapping the tabs and content. */
4281
+ container?: ViewProps;
4282
+ /** Styles applied specifically to the active tab header. Merged with `tab` views. */
4283
+ activeTab?: ViewProps;
4284
+ /** Styles applied specifically to the text within the active tab header. Merged with `title` views. */
4285
+ activeText?: ViewProps;
4286
+ /** Styles applied to each tab header (both active and inactive). */
4287
+ tab?: ViewProps;
4288
+ /** Styles applied to the content area displaying the active tab's content. */
4289
+ content?: ViewProps;
4290
+ /** Styles applied to the text within each tab header (both active and inactive). */
4291
+ title?: ViewProps;
4292
+ /** Styles applied to the container element that wraps the tab buttons/headers. */
4293
+ headerTabs?: ViewProps;
4294
+ };
4295
+
4167
4296
  declare const TabsTrigger: default_2.FC<TabsTriggerProps>;
4168
4297
 
4169
4298
  /**
@@ -4189,6 +4318,8 @@ declare interface TabsType extends default_2.FC<TabsProps> {
4189
4318
  Content: typeof TabsContent;
4190
4319
  }
4191
4320
 
4321
+ declare type TabsVariant = 'underline' | 'segmented' | 'pill';
4322
+
4192
4323
  /**
4193
4324
  * Props specifically for the TabsView component (Internal).
4194
4325
  * These props are derived or passed down from the main Tabs component.
@@ -4236,7 +4367,7 @@ declare interface TagInputProps extends Omit<InputProps, 'size' | 'value' | 'onC
4236
4367
  size?: Size_16;
4237
4368
  shape?: Shape_12;
4238
4369
  variant?: Variant_14;
4239
- shadow?: Shadow | Elevation_2 | ViewProps;
4370
+ shadow?: Shadow | Elevation | ViewProps;
4240
4371
  views?: TagInputStyles;
4241
4372
  left?: default_2.ReactNode;
4242
4373
  right?: default_2.ReactNode;
@@ -4288,7 +4419,7 @@ export declare interface TextAreaProps extends Omit<InputProps, 'size' | 'shadow
4288
4419
  onBlur?: (value: any) => void;
4289
4420
  onFocus?: () => void;
4290
4421
  size?: Size_10;
4291
- shadow?: Shadow | Elevation_2 | ViewProps;
4422
+ shadow?: Shadow | Elevation | ViewProps;
4292
4423
  shape?: Shape_7;
4293
4424
  views?: TextAreaStyles;
4294
4425
  value?: string | number;
@@ -4326,6 +4457,8 @@ export declare interface TextAreaViewProps extends TextAreaProps {
4326
4457
  setIsFocused?: Function;
4327
4458
  }
4328
4459
 
4460
+ declare type TextDecorationStyle = 'default' | 'hover' | 'underline';
4461
+
4329
4462
  export declare const TextField: default_2.FC<TextFieldProps>;
4330
4463
 
4331
4464
  export declare interface TextFieldProps extends Omit<InputProps, 'size' | 'shadow' | 'left' | 'right'> {
@@ -4352,7 +4485,7 @@ export declare interface TextFieldProps extends Omit<InputProps, 'size' | 'shado
4352
4485
  onClick?: () => void;
4353
4486
  onFocus?: () => void;
4354
4487
  size?: Size_11;
4355
- shadow?: Shadow | Elevation_2 | ViewProps;
4488
+ shadow?: Shadow | Elevation | ViewProps;
4356
4489
  shape?: Shape_8;
4357
4490
  views?: TextFieldStyles;
4358
4491
  value?: string;
@@ -4364,6 +4497,15 @@ export declare interface TextFieldProps extends Omit<InputProps, 'size' | 'shado
4364
4497
  } | null) => void;
4365
4498
  }
4366
4499
 
4500
+ declare type TextFieldStyles = {
4501
+ container?: ViewProps;
4502
+ text?: ViewProps;
4503
+ label?: ViewProps;
4504
+ helperText?: ViewProps;
4505
+ field?: ViewProps;
4506
+ content?: ViewProps;
4507
+ };
4508
+
4367
4509
  export declare interface TextFieldViewProps extends TextFieldProps {
4368
4510
  hint?: string;
4369
4511
  setHint?: Function;
@@ -4377,6 +4519,8 @@ export declare interface TextFieldViewProps extends TextFieldProps {
4377
4519
 
4378
4520
  export declare const TextIcon: default_2.FC<Omit<IconProps, "name">>;
4379
4521
 
4522
+ declare type TextPosition = 'right' | 'left' | 'top' | 'bottom';
4523
+
4380
4524
  declare type Theme = {
4381
4525
  container: {
4382
4526
  backgroundColor?: string;
@@ -4787,8 +4931,14 @@ export declare interface UseUploadProps {
4787
4931
 
4788
4932
  declare type Variant = 'default' | 'outline' | 'filled';
4789
4933
 
4934
+ declare type Variant_10 = 'outline' | 'default' | 'none';
4935
+
4790
4936
  declare type Variant_11 = 'outline' | 'default' | 'none';
4791
4937
 
4938
+ declare type Variant_12 = 'default' | 'outline' | 'none';
4939
+
4940
+ declare type Variant_13 = 'default' | 'outline' | 'none';
4941
+
4792
4942
  declare type Variant_14 = 'outline' | 'default' | 'none';
4793
4943
 
4794
4944
  declare type Variant_15 = 'outline' | 'default' | 'none';
@@ -4832,10 +4982,16 @@ declare type Variant_30 = 'default' | 'light' | 'dark';
4832
4982
 
4833
4983
  declare type Variant_31 = 'default' | 'glassy' | 'minimal';
4834
4984
 
4985
+ declare type Variant_4 = 'filled' | 'outline' | 'empty' | 'ghost' | 'link' | 'subtle';
4986
+
4835
4987
  declare type Variant_5 = 'default' | 'outlined' | 'elevated';
4836
4988
 
4837
4989
  declare type Variant_6 = 'default' | 'filled' | 'outline';
4838
4990
 
4991
+ declare type Variant_7 = 'outline' | 'default' | 'none';
4992
+
4993
+ declare type Variant_8 = 'outline' | 'default' | 'none';
4994
+
4839
4995
  declare type Variant_9 = 'outline' | 'default' | 'none';
4840
4996
 
4841
4997
  export declare const VideoIcon: default_2.FC<Omit<IconProps, "name">>;
@@ -294,14 +294,19 @@ const stripAlphaSuffix = (value) => {
294
294
  const parts = value.split('-');
295
295
  const alpha = parseInt(parts[parts.length - 1], 10);
296
296
  const minParts = value.startsWith('theme-') ? 3 : 4;
297
- if (parts.length >= minParts && !isNaN(alpha) && alpha >= 0 && alpha <= 1000) {
297
+ if (parts.length >= minParts &&
298
+ !isNaN(alpha) &&
299
+ alpha >= 0 &&
300
+ alpha <= 1000) {
298
301
  return parts.slice(0, -1).join('-');
299
302
  }
300
303
  return value;
301
304
  };
302
305
  const BackgroundOverlay = ({ contentPosition, backgroundColor = 'color-black-900', ...props }) => {
303
306
  const isToken = OVERLAY_TOKEN_RE.test(backgroundColor);
304
- const baseColor = isToken ? stripAlphaSuffix(backgroundColor) : backgroundColor;
307
+ const baseColor = isToken
308
+ ? stripAlphaSuffix(backgroundColor)
309
+ : backgroundColor;
305
310
  const getDefaultOverlay = () => {
306
311
  let ligthBackground = `${baseColor}-100`;
307
312
  let darkBackground = `${baseColor}-900`;