@juspay/blend-design-system 0.0.20-beta → 0.0.21-beta

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 (89) hide show
  1. package/dist/components/Accordion/accordion.tokens.d.ts +39 -20
  2. package/dist/components/Alert/alert.tokens.d.ts +63 -4
  3. package/dist/components/Avatar/avatar.tokens.d.ts +64 -53
  4. package/dist/components/Avatar/types.d.ts +1 -0
  5. package/dist/components/AvatarGroup/avatarGroup.tokens.d.ts +41 -67
  6. package/dist/components/Breadcrumb/breadcrumb.tokens.d.ts +26 -16
  7. package/dist/components/Button/Button.d.ts +2 -3
  8. package/dist/components/Button/button.tokens.d.ts +38 -13
  9. package/dist/components/Button/types.d.ts +8 -3
  10. package/dist/components/ButtonGroup/ButtonGroup.d.ts +2 -2
  11. package/dist/components/ButtonGroup/types.d.ts +2 -2
  12. package/dist/components/Card/card.tokens.d.ts +80 -56
  13. package/dist/components/Card/types.d.ts +3 -3
  14. package/dist/components/Card/utils.d.ts +21 -24
  15. package/dist/components/Charts/chart.tokens.d.ts +24 -82
  16. package/dist/components/Charts/types.d.ts +7 -2
  17. package/dist/components/Checkbox/checkbox.token.d.ts +41 -68
  18. package/dist/components/CodeBlock/CodeBlock.d.ts +3 -0
  19. package/dist/components/CodeBlock/codeBlock.token.d.ts +90 -0
  20. package/dist/components/CodeBlock/index.d.ts +2 -0
  21. package/dist/components/CodeBlock/types.d.ts +25 -0
  22. package/dist/components/CodeBlock/utils.d.ts +38 -0
  23. package/dist/components/DataTable/DataTableHeader/types.d.ts +1 -0
  24. package/dist/components/DataTable/TableCell/types.d.ts +1 -0
  25. package/dist/components/DataTable/types.d.ts +1 -0
  26. package/dist/components/DateRangePicker/QuickRangeSelector.d.ts +2 -0
  27. package/dist/components/DateRangePicker/TimeSelector.d.ts +2 -0
  28. package/dist/components/DateRangePicker/components/mobile.tokens.d.ts +77 -0
  29. package/dist/components/DateRangePicker/dateRangePicker.tokens.d.ts +132 -249
  30. package/dist/components/DateRangePicker/utils.d.ts +9 -1
  31. package/dist/components/Directory/types.d.ts +1 -0
  32. package/dist/components/Drawer/drawer.tokens.d.ts +43 -44
  33. package/dist/components/Drawer/types.d.ts +3 -3
  34. package/dist/components/Inputs/DropdownInput/DropdownInput.d.ts +1 -1
  35. package/dist/components/Inputs/DropdownInput/dropdownInput.tokens.d.ts +55 -16
  36. package/dist/components/Inputs/DropdownInput/types.d.ts +3 -1
  37. package/dist/components/Inputs/MultiValueInput/multiValueInput.tokens.d.ts +55 -12
  38. package/dist/components/Inputs/NumberInput/numberInput.tokens.d.ts +74 -21
  39. package/dist/components/Inputs/OTPInput/OTPInput.d.ts +1 -1
  40. package/dist/components/Inputs/OTPInput/otpInput.tokens.d.ts +48 -12
  41. package/dist/components/Inputs/OTPInput/types.d.ts +1 -0
  42. package/dist/components/Inputs/SearchInput/searchInput.tokens.d.ts +52 -27
  43. package/dist/components/Inputs/TextArea/textarea.token.d.ts +58 -17
  44. package/dist/components/Inputs/TextInput/textInput.tokens.d.ts +54 -14
  45. package/dist/components/Inputs/UnitInput/unitInput.tokens.d.ts +72 -16
  46. package/dist/components/Inputs/utils/InputFooter/InputFooter.d.ts +17 -1
  47. package/dist/components/Inputs/utils/InputLabels/InputLabels.d.ts +31 -2
  48. package/dist/components/Menu/Menu.d.ts +2 -2
  49. package/dist/components/Menu/MenuItem.d.ts +2 -2
  50. package/dist/components/Menu/SubMenu.d.ts +2 -2
  51. package/dist/components/Menu/menu.tokens.d.ts +46 -26
  52. package/dist/components/Menu/types.d.ts +11 -11
  53. package/dist/components/Menu/utils.d.ts +3 -3
  54. package/dist/components/Modal/modal.tokens.d.ts +59 -33
  55. package/dist/components/Modal/types.d.ts +2 -2
  56. package/dist/components/MultiSelect/MultiSelectMenu.d.ts +1 -1
  57. package/dist/components/MultiSelect/multiSelect.tokens.d.ts +72 -28
  58. package/dist/components/Popover/PopoverFooter.d.ts +1 -1
  59. package/dist/components/Popover/popover.tokens.d.ts +49 -13
  60. package/dist/components/Popover/types.d.ts +2 -2
  61. package/dist/components/ProgressBar/index.d.ts +0 -1
  62. package/dist/components/ProgressBar/progressbar.tokens.d.ts +54 -41
  63. package/dist/components/Radio/radio.token.d.ts +21 -24
  64. package/dist/components/Sidebar/sidebar.tokens.d.ts +77 -0
  65. package/dist/components/Sidebar/utils.d.ts +3 -2
  66. package/dist/components/SingleSelect/SingleSelect.d.ts +1 -1
  67. package/dist/components/SingleSelect/SingleSelectMenu.d.ts +4 -2
  68. package/dist/components/SingleSelect/singleSelect.tokens.d.ts +67 -23
  69. package/dist/components/SingleSelect/types.d.ts +0 -1
  70. package/dist/components/Snackbar/snackbar.tokens.d.ts +51 -26
  71. package/dist/components/StatCard/StatCard.d.ts +1 -1
  72. package/dist/components/StatCard/statcard.tokens.d.ts +51 -66
  73. package/dist/components/StatCard/types.d.ts +5 -0
  74. package/dist/components/Switch/switch.token.d.ts +57 -74
  75. package/dist/components/Tabs/tabs.token.d.ts +62 -40
  76. package/dist/components/Tags/tag.tokens.d.ts +35 -36
  77. package/dist/components/Tooltip/tooltip.tokens.d.ts +24 -10
  78. package/dist/components/VirtualList/VirtualList.d.ts +10 -1
  79. package/dist/components/VirtualList/index.d.ts +1 -2
  80. package/dist/components/VirtualList/types.d.ts +10 -62
  81. package/dist/components/VirtualList/utils.d.ts +31 -22
  82. package/dist/context/ThemeContext.d.ts +20 -12
  83. package/dist/context/useComponentToken.d.ts +12 -8
  84. package/dist/main.js +31374 -28273
  85. package/dist/tokens/unit.tokens.d.ts +3 -0
  86. package/package.json +1 -1
  87. package/dist/components/Menu/MenuPlayground.d.ts +0 -3
  88. package/dist/components/Menu/MenuPlaygroundComprehensive.d.ts +0 -3
  89. package/dist/components/ProgressBar/utils.d.ts +0 -7
@@ -3,26 +3,67 @@ import { FoundationTokenType } from '../../../tokens/theme.token';
3
3
  import { DropdownInputSize, DropdownInputState } from './types';
4
4
  import { BreakpointType } from '../../../breakpoints/breakPoints';
5
5
  export type DropdownInputTokensType = {
6
- input: {
7
- gap: CSSObject['gap'];
8
- borderRadius?: CSSObject['borderRadius'];
9
- boxShadow: {
10
- [key in DropdownInputState]: CSSObject['boxShadow'];
6
+ gap: CSSObject['gap'];
7
+ label: {
8
+ fontSize: CSSObject['fontSize'];
9
+ fontWeight: CSSObject['fontWeight'];
10
+ color: {
11
+ [key in DropdownInputState]: CSSObject['color'];
11
12
  };
12
- paddingX: {
13
- [key in DropdownInputSize]: CSSObject['padding'];
13
+ };
14
+ subLabel: {
15
+ fontSize: CSSObject['fontSize'];
16
+ fontWeight: CSSObject['fontWeight'];
17
+ color: {
18
+ [key in DropdownInputState]: CSSObject['color'];
14
19
  };
15
- paddingY: {
16
- [key in DropdownInputSize]: CSSObject['padding'];
20
+ };
21
+ hintText: {
22
+ fontSize: CSSObject['fontSize'];
23
+ fontWeight: CSSObject['fontWeight'];
24
+ color: {
25
+ [key in DropdownInputState]: CSSObject['color'];
17
26
  };
18
- border: {
19
- [key in DropdownInputState]: CSSObject['border'];
27
+ };
28
+ errorMessage: {
29
+ fontSize: CSSObject['fontSize'];
30
+ fontWeight: CSSObject['fontWeight'];
31
+ color: CSSObject['color'];
32
+ };
33
+ required: {
34
+ color: CSSObject['color'];
35
+ };
36
+ helpIcon: {
37
+ width: CSSObject['width'];
38
+ color: {
39
+ [key in DropdownInputState]: CSSObject['color'];
40
+ };
41
+ };
42
+ inputContainer: {
43
+ gap: CSSObject['gap'];
44
+ fontSize: {
45
+ [key in DropdownInputSize]: CSSObject['fontSize'];
46
+ };
47
+ fontWeight: {
48
+ [key in DropdownInputSize]: CSSObject['fontWeight'];
20
49
  };
21
50
  color: {
22
51
  [key in DropdownInputState]: CSSObject['color'];
23
52
  };
24
- outline: {
25
- [key in DropdownInputState]: CSSObject['outline'];
53
+ borderRadius?: {
54
+ [key in DropdownInputSize]: CSSObject['borderRadius'];
55
+ };
56
+ boxShadow: CSSObject['boxShadow'];
57
+ padding: {
58
+ x: {
59
+ [key in DropdownInputSize]: CSSObject['padding'];
60
+ };
61
+ y: {
62
+ [key in DropdownInputSize]: CSSObject['padding'];
63
+ };
64
+ };
65
+ border: {
66
+ [key in DropdownInputState]: CSSObject['border'];
26
67
  };
27
68
  backgroundColor: {
28
69
  [key in DropdownInputState]: CSSObject['backgroundColor'];
@@ -32,6 +73,4 @@ export type DropdownInputTokensType = {
32
73
  export type ResponsiveDropdownInputTokens = {
33
74
  [key in keyof BreakpointType]: DropdownInputTokensType;
34
75
  };
35
- declare const dropdownInputTokens: Readonly<DropdownInputTokensType>;
36
- export declare const getDropdownInputTokens: (foundationTheme: FoundationTokenType) => ResponsiveDropdownInputTokens;
37
- export default dropdownInputTokens;
76
+ export declare const getDropdownInputTokens: (foundationTokens: FoundationTokenType) => ResponsiveDropdownInputTokens;
@@ -36,6 +36,8 @@ export type DropdownInputProps = {
36
36
  onDropdownClose?: () => void;
37
37
  onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
38
38
  onFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;
39
- maxDropdownHeight?: number;
40
39
  dropdownPosition?: DropdownPosition;
40
+ maxMenuHeight?: number;
41
+ minMenuWidth?: number;
42
+ maxMenuWidth?: number;
41
43
  } & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'style' | 'className' | 'onBlur' | 'onFocus' | 'slot'>;
@@ -1,18 +1,63 @@
1
1
  import { CSSObject } from 'styled-components';
2
2
  import { FoundationTokenType } from '../../../tokens/theme.token';
3
3
  import { MultiValueInputSize, MultiValueInputState } from './types';
4
+ import { BreakpointType } from '../../../breakpoints/breakPoints';
4
5
  export type MultiValueInputTokensType = {
5
- input: {
6
+ gap: CSSObject['gap'];
7
+ label: {
8
+ fontSize: CSSObject['fontSize'];
9
+ fontWeight: CSSObject['fontWeight'];
10
+ color: {
11
+ [key in MultiValueInputState]: CSSObject['color'];
12
+ };
13
+ };
14
+ subLabel: {
15
+ fontSize: CSSObject['fontSize'];
16
+ fontWeight: CSSObject['fontWeight'];
17
+ color: {
18
+ [key in MultiValueInputState]: CSSObject['color'];
19
+ };
20
+ };
21
+ hintText: {
22
+ fontSize: CSSObject['fontSize'];
23
+ fontWeight: CSSObject['fontWeight'];
24
+ color: {
25
+ [key in MultiValueInputState]: CSSObject['color'];
26
+ };
27
+ };
28
+ helpIcon: {
29
+ width: CSSObject['width'];
30
+ color: {
31
+ [key in MultiValueInputState]: CSSObject['color'];
32
+ };
33
+ };
34
+ errorMessage: {
35
+ fontSize: CSSObject['fontSize'];
36
+ fontWeight: CSSObject['fontWeight'];
37
+ color: CSSObject['color'];
38
+ };
39
+ required: {
40
+ color: CSSObject['color'];
41
+ };
42
+ inputContainer: {
43
+ fontSize: {
44
+ [key in MultiValueInputSize]: CSSObject['fontSize'];
45
+ };
46
+ fontWeight: {
47
+ [key in MultiValueInputSize]: CSSObject['fontWeight'];
48
+ };
6
49
  gap: CSSObject['gap'];
7
50
  borderRadius?: CSSObject['borderRadius'];
8
51
  boxShadow: {
9
52
  [key in MultiValueInputState]: CSSObject['boxShadow'];
10
53
  };
11
- paddingX: {
12
- [key in MultiValueInputSize]: CSSObject['padding'];
13
- };
14
- paddingY: {
15
- [key in MultiValueInputSize]: CSSObject['padding'];
54
+ padding: {
55
+ x: {
56
+ [key in MultiValueInputSize]: CSSObject['padding'];
57
+ };
58
+ y: {
59
+ [key in MultiValueInputSize]: CSSObject['padding'];
60
+ };
16
61
  };
17
62
  border: {
18
63
  [key in MultiValueInputState]: CSSObject['border'];
@@ -20,14 +65,12 @@ export type MultiValueInputTokensType = {
20
65
  color: {
21
66
  [key in MultiValueInputState]: CSSObject['color'];
22
67
  };
23
- outline: {
24
- [key in MultiValueInputState]: CSSObject['outline'];
25
- };
26
68
  backgroundColor: {
27
69
  [key in MultiValueInputState]: CSSObject['backgroundColor'];
28
70
  };
29
71
  };
30
72
  };
31
- declare const multiValueInputTokens: Readonly<MultiValueInputTokensType>;
32
- export declare const getMultiValueInputTokens: (foundationTheme: FoundationTokenType) => MultiValueInputTokensType;
33
- export default multiValueInputTokens;
73
+ export type ResponsiveMultiValueInputTokens = {
74
+ [key in keyof BreakpointType]: MultiValueInputTokensType;
75
+ };
76
+ export declare const getMultiValueInputTokens: (foundationTokens: FoundationTokenType) => ResponsiveMultiValueInputTokens;
@@ -2,11 +2,10 @@ import { CSSObject } from 'styled-components';
2
2
  import { FoundationTokenType } from '../../../tokens/theme.token';
3
3
  import { BreakpointType } from '../../../breakpoints/breakPoints';
4
4
  declare enum TextInputSize {
5
- SM = "sm",
6
5
  MD = "md",
7
6
  LG = "lg"
8
7
  }
9
- declare enum TextInputState {
8
+ declare enum NumberInputState {
10
9
  DEFAULT = "default",
11
10
  HOVER = "hover",
12
11
  FOCUS = "focus",
@@ -14,36 +13,90 @@ declare enum TextInputState {
14
13
  DISABLED = "disabled"
15
14
  }
16
15
  export type NumberInputTokensType = {
17
- input: {
18
- gap: CSSObject['gap'];
19
- borderRadius?: CSSObject['borderRadius'];
20
- boxShadow: {
21
- [key in TextInputState]: CSSObject['boxShadow'];
16
+ gap: CSSObject['gap'];
17
+ label: {
18
+ fontSize: CSSObject['fontSize'];
19
+ fontWeight: CSSObject['fontWeight'];
20
+ color: {
21
+ [key in NumberInputState]: CSSObject['color'];
22
22
  };
23
- paddingX: {
24
- [key in TextInputSize]: CSSObject['padding'];
23
+ };
24
+ subLabel: {
25
+ fontSize: CSSObject['fontSize'];
26
+ fontWeight: CSSObject['fontWeight'];
27
+ color: {
28
+ [key in NumberInputState]: CSSObject['color'];
25
29
  };
26
- paddingY: {
27
- [key in TextInputSize]: CSSObject['padding'];
30
+ };
31
+ hintText: {
32
+ fontSize: CSSObject['fontSize'];
33
+ fontWeight: CSSObject['fontWeight'];
34
+ color: {
35
+ [key in NumberInputState]: CSSObject['color'];
28
36
  };
29
- border: {
30
- [key in TextInputState]: CSSObject['border'];
37
+ };
38
+ helpIcon: {
39
+ width: CSSObject['width'];
40
+ color: {
41
+ [key in NumberInputState]: CSSObject['color'];
42
+ };
43
+ };
44
+ errorMessage: {
45
+ fontSize: CSSObject['fontSize'];
46
+ fontWeight: CSSObject['fontWeight'];
47
+ color: CSSObject['color'];
48
+ };
49
+ required: {
50
+ color: CSSObject['color'];
51
+ };
52
+ inputContainer: {
53
+ fontSize: {
54
+ [key in TextInputSize]: CSSObject['fontSize'];
55
+ };
56
+ fontWeight: {
57
+ [key in TextInputSize]: CSSObject['fontWeight'];
31
58
  };
32
59
  color: {
33
- [key in TextInputState]: CSSObject['color'];
60
+ [key in NumberInputState]: CSSObject['color'];
34
61
  };
35
- outline: {
36
- [key in TextInputState]: CSSObject['outline'];
62
+ borderRadius: {
63
+ [key in TextInputSize]: CSSObject['borderRadius'];
64
+ };
65
+ boxShadow: CSSObject['boxShadow'];
66
+ padding: {
67
+ x: {
68
+ [key in TextInputSize]: CSSObject['padding'];
69
+ };
70
+ y: {
71
+ [key in TextInputSize]: CSSObject['padding'];
72
+ };
73
+ };
74
+ border: {
75
+ [key in NumberInputState]: CSSObject['border'];
37
76
  };
38
77
  backgroundColor: {
39
- default: CSSObject['backgroundColor'];
40
- disabled: CSSObject['backgroundColor'];
78
+ [key in NumberInputState]: CSSObject['backgroundColor'];
79
+ };
80
+ stepperButton: {
81
+ width: {
82
+ [key in TextInputSize]: CSSObject['width'];
83
+ };
84
+ backgroundColor: {
85
+ [key in NumberInputState]: CSSObject['backgroundColor'];
86
+ };
87
+ icon: {
88
+ color: {
89
+ [key in NumberInputState]: CSSObject['color'];
90
+ };
91
+ width: {
92
+ [key in TextInputSize]: CSSObject['width'];
93
+ };
94
+ };
41
95
  };
42
96
  };
43
97
  };
44
98
  export type ResponsiveNumberInputTokens = {
45
99
  [key in keyof BreakpointType]: NumberInputTokensType;
46
100
  };
47
- declare const numberInputTokens: Readonly<NumberInputTokensType>;
48
- export declare const getNumberInputTokens: (foundationTheme: FoundationTokenType) => ResponsiveNumberInputTokens;
49
- export default numberInputTokens;
101
+ export declare const getNumberInputTokens: (foundationToken: FoundationTokenType) => ResponsiveNumberInputTokens;
102
+ export {};
@@ -1,3 +1,3 @@
1
1
  import { OTPProps } from './types';
2
- declare const OTPInput: ({ label, sublabel, disabled, helpIconHintText, name, required, error, errorMessage, hintText, value, length, autoFocus, onChange, form, ...rest }: OTPProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const OTPInput: ({ label, placeholder, sublabel, disabled, helpIconHintText, name, required, error, errorMessage, hintText, value, length, autoFocus, onChange, form, ...rest }: OTPProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default OTPInput;
@@ -9,24 +9,60 @@ declare enum OTPInputState {
9
9
  DISABLED = "disabled"
10
10
  }
11
11
  export type OTPInputTokensType = {
12
- input: {
13
- gap: CSSObject['gap'];
14
- borderRadius: CSSObject['borderRadius'];
15
- boxShadow: {
16
- [key in OTPInputState]: CSSObject['boxShadow'];
12
+ gap: CSSObject['gap'];
13
+ label: {
14
+ fontSize: CSSObject['fontSize'];
15
+ fontWeight: CSSObject['fontWeight'];
16
+ color: {
17
+ [key in OTPInputState]: CSSObject['color'];
17
18
  };
18
- padding: CSSObject['padding'];
19
- outline: {
20
- [key in OTPInputState]: CSSObject['outline'];
19
+ };
20
+ subLabel: {
21
+ fontSize: CSSObject['fontSize'];
22
+ fontWeight: CSSObject['fontWeight'];
23
+ color: {
24
+ [key in OTPInputState]: CSSObject['color'];
21
25
  };
22
- border: {
23
- [key in OTPInputState]: CSSObject['border'];
26
+ };
27
+ helpIcon: {
28
+ width: CSSObject['width'];
29
+ color: {
30
+ [key in OTPInputState]: CSSObject['color'];
24
31
  };
32
+ };
33
+ hintText: {
34
+ fontSize: CSSObject['fontSize'];
35
+ fontWeight: CSSObject['fontWeight'];
25
36
  color: {
26
37
  [key in OTPInputState]: CSSObject['color'];
27
38
  };
28
- backgroundColor: {
29
- [key in OTPInputState]: CSSObject['backgroundColor'];
39
+ };
40
+ errorMessage: {
41
+ fontSize: CSSObject['fontSize'];
42
+ fontWeight: CSSObject['fontWeight'];
43
+ color: CSSObject['color'];
44
+ };
45
+ required: {
46
+ color: CSSObject['color'];
47
+ };
48
+ inputContainer: {
49
+ gap: CSSObject['gap'];
50
+ input: {
51
+ height: CSSObject['height'];
52
+ width: CSSObject['width'];
53
+ fontSize: CSSObject['fontSize'];
54
+ fontWeight: CSSObject['fontWeight'];
55
+ color: {
56
+ [key in OTPInputState]: CSSObject['color'];
57
+ };
58
+ borderRadius: CSSObject['borderRadius'];
59
+ boxShadow: CSSObject['boxShadow'];
60
+ border: {
61
+ [key in OTPInputState]: CSSObject['border'];
62
+ };
63
+ backgroundColor: {
64
+ [key in OTPInputState]: CSSObject['backgroundColor'];
65
+ };
30
66
  };
31
67
  };
32
68
  };
@@ -10,4 +10,5 @@ export type OTPProps = {
10
10
  autoFocus?: boolean;
11
11
  onChange?: (value: string) => void;
12
12
  form?: string;
13
+ placeholder?: string;
13
14
  } & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'style' | 'className' | 'onChange'>;
@@ -1,45 +1,70 @@
1
1
  import { CSSObject } from 'styled-components';
2
2
  import { FoundationTokenType } from '../../../tokens/theme.token';
3
+ import { BreakpointType } from '../../../breakpoints/breakPoints';
3
4
  declare enum SearchInputState {
4
5
  DEFAULT = "default",
5
6
  HOVER = "hover",
6
7
  FOCUS = "focus",
7
- ERROR = "error"
8
+ ERROR = "error",
9
+ DISABLED = "disabled"
8
10
  }
9
11
  export type SearchInputTokensType = {
10
- height: CSSObject['height'];
11
- width: CSSObject['width'];
12
12
  gap: CSSObject['gap'];
13
- padding: {
14
- x: CSSObject['padding'];
15
- y: CSSObject['padding'];
13
+ label: {
14
+ fontSize: CSSObject['fontSize'];
15
+ fontWeight: CSSObject['fontWeight'];
16
+ color: {
17
+ [key in SearchInputState]: CSSObject['color'];
18
+ };
19
+ };
20
+ subLabel: {
21
+ fontSize: CSSObject['fontSize'];
22
+ fontWeight: CSSObject['fontWeight'];
23
+ color: {
24
+ [key in SearchInputState]: CSSObject['color'];
25
+ };
16
26
  };
17
- borderRadius: CSSObject['borderRadius'];
18
- borderTop: {
19
- [key in SearchInputState]: CSSObject['borderTop'];
27
+ hintText: {
28
+ fontSize: CSSObject['fontSize'];
29
+ fontWeight: CSSObject['fontWeight'];
30
+ color: {
31
+ [key in SearchInputState]: CSSObject['color'];
32
+ };
20
33
  };
21
- borderLeft: {
22
- [key in SearchInputState]: CSSObject['borderTop'];
34
+ errorMessage: {
35
+ fontSize: CSSObject['fontSize'];
36
+ fontWeight: CSSObject['fontWeight'];
37
+ color: CSSObject['color'];
23
38
  };
24
- borderRight: {
25
- [key in SearchInputState]: CSSObject['borderRight'];
39
+ required: {
40
+ color: CSSObject['color'];
26
41
  };
27
- borderBottom: {
28
- [key in SearchInputState]: CSSObject['borderBottom'];
42
+ inputContainer: {
43
+ padding: {
44
+ x: CSSObject['padding'];
45
+ y: CSSObject['padding'];
46
+ };
47
+ borderRadius: CSSObject['borderRadius'];
48
+ borderBottom: {
49
+ [key in SearchInputState]: CSSObject['borderBottom'];
50
+ };
51
+ outline: CSSObject['outline'];
52
+ boxShadow: CSSObject['boxShadow'];
53
+ color: {
54
+ [key in SearchInputState]: CSSObject['color'];
55
+ };
56
+ fontSize: CSSObject['fontSize'];
57
+ fontWeight: CSSObject['fontWeight'];
29
58
  };
30
- border?: {
31
- radius: CSSObject['borderRadius'];
59
+ icon: {
32
60
  color: {
33
- [key in SearchInputState]: CSSObject['borderColor'];
61
+ [key in SearchInputState]: CSSObject['color'];
34
62
  };
63
+ width: CSSObject['width'];
35
64
  };
36
- outline: CSSObject['outline'];
37
- boxShadow: CSSObject['boxShadow'];
38
- color: CSSObject['color'];
39
- fontSize: CSSObject['fontSize'];
40
- fontWeight: CSSObject['fontWeight'];
41
- placeholderColor: CSSObject['color'];
42
65
  };
43
- declare const searchInputTokens: Readonly<SearchInputTokensType>;
44
- export declare const getSearchInputTokens: (foundationTokens: FoundationTokenType) => SearchInputTokensType;
45
- export default searchInputTokens;
66
+ export type ResponsiveSearchInputTokens = {
67
+ [key in keyof BreakpointType]: SearchInputTokensType;
68
+ };
69
+ export declare const getSearchInputTokens: (foundationTokens: FoundationTokenType) => ResponsiveSearchInputTokens;
70
+ export default getSearchInputTokens;
@@ -1,31 +1,72 @@
1
1
  import { CSSObject } from 'styled-components';
2
2
  import { FoundationTokenType } from '../../../tokens/theme.token';
3
3
  import { BreakpointType } from '../../../breakpoints/breakPoints';
4
- type TextAreaState = 'default' | 'hover' | 'focus' | 'error' | 'disabled';
4
+ declare enum TextAreaState {
5
+ DEFAULT = "default",
6
+ HOVER = "hover",
7
+ FOCUS = "focus",
8
+ ERROR = "error",
9
+ DISABLED = "disabled"
10
+ }
5
11
  export type TextAreaTokensType = {
6
- fontFamily: CSSObject['fontFamily'];
7
- paddingX: CSSObject['padding'];
8
- paddingY: CSSObject['padding'];
9
- borderRadius: CSSObject['borderRadius'];
10
- boxShadow: {
11
- [key in TextAreaState]: CSSObject['boxShadow'];
12
+ gap: CSSObject['gap'];
13
+ label: {
14
+ fontSize: CSSObject['fontSize'];
15
+ fontWeight: CSSObject['fontWeight'];
16
+ color: {
17
+ [key in TextAreaState]: CSSObject['color'];
18
+ };
12
19
  };
13
- outline: {
14
- [key in TextAreaState]: CSSObject['outline'];
20
+ subLabel: {
21
+ fontSize: CSSObject['fontSize'];
22
+ fontWeight: CSSObject['fontWeight'];
23
+ color: {
24
+ [key in TextAreaState]: CSSObject['color'];
25
+ };
15
26
  };
16
- border: {
17
- [key in TextAreaState]: CSSObject['border'];
27
+ helpIcon: {
28
+ width: CSSObject['width'];
29
+ color: {
30
+ [key in TextAreaState]: CSSObject['color'];
31
+ };
18
32
  };
19
- color: {
20
- [key in TextAreaState]: CSSObject['color'];
33
+ hintText: {
34
+ fontSize: CSSObject['fontSize'];
35
+ fontWeight: CSSObject['fontWeight'];
36
+ color: {
37
+ [key in TextAreaState]: CSSObject['color'];
38
+ };
21
39
  };
22
- backgroundColor: {
23
- [key in TextAreaState]: CSSObject['backgroundColor'];
40
+ errorMessage: {
41
+ fontSize: CSSObject['fontSize'];
42
+ fontWeight: CSSObject['fontWeight'];
43
+ color: CSSObject['color'];
44
+ };
45
+ required: {
46
+ color: CSSObject['color'];
47
+ };
48
+ inputContainer: {
49
+ fontSize: CSSObject['fontSize'];
50
+ fontWeight: CSSObject['fontWeight'];
51
+ padding: {
52
+ x: CSSObject['padding'];
53
+ y: CSSObject['padding'];
54
+ };
55
+ borderRadius: CSSObject['borderRadius'];
56
+ boxShadow: CSSObject['boxShadow'];
57
+ border: {
58
+ [key in TextAreaState]: CSSObject['border'];
59
+ };
60
+ color: {
61
+ [key in TextAreaState]: CSSObject['color'];
62
+ };
63
+ backgroundColor: {
64
+ [key in TextAreaState]: CSSObject['backgroundColor'];
65
+ };
24
66
  };
25
67
  };
26
68
  export type ResponsiveTextAreaTokens = {
27
69
  [key in keyof BreakpointType]: TextAreaTokensType;
28
70
  };
29
- export declare const textAreaTokens: TextAreaTokensType;
30
71
  export declare const getTextAreaTokens: (foundationTokens: FoundationTokenType) => ResponsiveTextAreaTokens;
31
- export default textAreaTokens;
72
+ export default getTextAreaTokens;
@@ -3,26 +3,66 @@ import { FoundationTokenType } from '../../../tokens/theme.token';
3
3
  import { TextInputSize, TextInputState } from './types';
4
4
  import { BreakpointType } from '../../../breakpoints/breakPoints';
5
5
  export type TextInputTokensType = {
6
- input: {
7
- gap: CSSObject['gap'];
8
- borderRadius?: CSSObject['borderRadius'];
9
- boxShadow: {
10
- [key in TextInputState]: CSSObject['boxShadow'];
6
+ gap: CSSObject['gap'];
7
+ label: {
8
+ fontSize: CSSObject['fontSize'];
9
+ fontWeight: CSSObject['fontWeight'];
10
+ color: {
11
+ [key in TextInputState]: CSSObject['color'];
11
12
  };
12
- paddingX: {
13
- [key in TextInputSize]: CSSObject['padding'];
13
+ };
14
+ subLabel: {
15
+ fontSize: CSSObject['fontSize'];
16
+ fontWeight: CSSObject['fontWeight'];
17
+ color: {
18
+ [key in TextInputState]: CSSObject['color'];
14
19
  };
15
- paddingY: {
16
- [key in TextInputSize]: CSSObject['padding'];
20
+ };
21
+ hintText: {
22
+ fontSize: CSSObject['fontSize'];
23
+ fontWeight: CSSObject['fontWeight'];
24
+ color: {
25
+ [key in TextInputState]: CSSObject['color'];
17
26
  };
18
- border: {
19
- [key in TextInputState]: CSSObject['border'];
27
+ };
28
+ helpIcon: {
29
+ width: CSSObject['width'];
30
+ color: {
31
+ [key in TextInputState]: CSSObject['color'];
32
+ };
33
+ };
34
+ errorMessage: {
35
+ fontSize: CSSObject['fontSize'];
36
+ fontWeight: CSSObject['fontWeight'];
37
+ color: CSSObject['color'];
38
+ };
39
+ required: {
40
+ color: CSSObject['color'];
41
+ };
42
+ inputContainer: {
43
+ fontSize: {
44
+ [key in TextInputSize]: CSSObject['fontSize'];
45
+ };
46
+ fontWeight: {
47
+ [key in TextInputSize]: CSSObject['fontWeight'];
20
48
  };
21
49
  color: {
22
50
  [key in TextInputState]: CSSObject['color'];
23
51
  };
24
- outline: {
25
- [key in TextInputState]: CSSObject['outline'];
52
+ borderRadius: {
53
+ [key in TextInputSize]: CSSObject['borderRadius'];
54
+ };
55
+ boxShadow: CSSObject['boxShadow'];
56
+ padding: {
57
+ x: {
58
+ [key in TextInputSize]: CSSObject['padding'];
59
+ };
60
+ y: {
61
+ [key in TextInputSize]: CSSObject['padding'];
62
+ };
63
+ };
64
+ border: {
65
+ [key in TextInputState]: CSSObject['border'];
26
66
  };
27
67
  backgroundColor: {
28
68
  [key in TextInputState]: CSSObject['backgroundColor'];
@@ -32,4 +72,4 @@ export type TextInputTokensType = {
32
72
  export type ResponsiveTextInputTokens = {
33
73
  [key in keyof BreakpointType]: TextInputTokensType;
34
74
  };
35
- export declare const getTextInputTokens: (foundationTheme: FoundationTokenType) => ResponsiveTextInputTokens;
75
+ export declare const getTextInputTokens: (foundationTokens: FoundationTokenType) => ResponsiveTextInputTokens;