@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.
- package/dist/components/Accordion/accordion.tokens.d.ts +39 -20
- package/dist/components/Alert/alert.tokens.d.ts +63 -4
- package/dist/components/Avatar/avatar.tokens.d.ts +64 -53
- package/dist/components/Avatar/types.d.ts +1 -0
- package/dist/components/AvatarGroup/avatarGroup.tokens.d.ts +41 -67
- package/dist/components/Breadcrumb/breadcrumb.tokens.d.ts +26 -16
- package/dist/components/Button/Button.d.ts +2 -3
- package/dist/components/Button/button.tokens.d.ts +38 -13
- package/dist/components/Button/types.d.ts +8 -3
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/dist/components/ButtonGroup/types.d.ts +2 -2
- package/dist/components/Card/card.tokens.d.ts +80 -56
- package/dist/components/Card/types.d.ts +3 -3
- package/dist/components/Card/utils.d.ts +21 -24
- package/dist/components/Charts/chart.tokens.d.ts +24 -82
- package/dist/components/Charts/types.d.ts +7 -2
- package/dist/components/Checkbox/checkbox.token.d.ts +41 -68
- package/dist/components/CodeBlock/CodeBlock.d.ts +3 -0
- package/dist/components/CodeBlock/codeBlock.token.d.ts +90 -0
- package/dist/components/CodeBlock/index.d.ts +2 -0
- package/dist/components/CodeBlock/types.d.ts +25 -0
- package/dist/components/CodeBlock/utils.d.ts +38 -0
- package/dist/components/DataTable/DataTableHeader/types.d.ts +1 -0
- package/dist/components/DataTable/TableCell/types.d.ts +1 -0
- package/dist/components/DataTable/types.d.ts +1 -0
- package/dist/components/DateRangePicker/QuickRangeSelector.d.ts +2 -0
- package/dist/components/DateRangePicker/TimeSelector.d.ts +2 -0
- package/dist/components/DateRangePicker/components/mobile.tokens.d.ts +77 -0
- package/dist/components/DateRangePicker/dateRangePicker.tokens.d.ts +132 -249
- package/dist/components/DateRangePicker/utils.d.ts +9 -1
- package/dist/components/Directory/types.d.ts +1 -0
- package/dist/components/Drawer/drawer.tokens.d.ts +43 -44
- package/dist/components/Drawer/types.d.ts +3 -3
- package/dist/components/Inputs/DropdownInput/DropdownInput.d.ts +1 -1
- package/dist/components/Inputs/DropdownInput/dropdownInput.tokens.d.ts +55 -16
- package/dist/components/Inputs/DropdownInput/types.d.ts +3 -1
- package/dist/components/Inputs/MultiValueInput/multiValueInput.tokens.d.ts +55 -12
- package/dist/components/Inputs/NumberInput/numberInput.tokens.d.ts +74 -21
- package/dist/components/Inputs/OTPInput/OTPInput.d.ts +1 -1
- package/dist/components/Inputs/OTPInput/otpInput.tokens.d.ts +48 -12
- package/dist/components/Inputs/OTPInput/types.d.ts +1 -0
- package/dist/components/Inputs/SearchInput/searchInput.tokens.d.ts +52 -27
- package/dist/components/Inputs/TextArea/textarea.token.d.ts +58 -17
- package/dist/components/Inputs/TextInput/textInput.tokens.d.ts +54 -14
- package/dist/components/Inputs/UnitInput/unitInput.tokens.d.ts +72 -16
- package/dist/components/Inputs/utils/InputFooter/InputFooter.d.ts +17 -1
- package/dist/components/Inputs/utils/InputLabels/InputLabels.d.ts +31 -2
- package/dist/components/Menu/Menu.d.ts +2 -2
- package/dist/components/Menu/MenuItem.d.ts +2 -2
- package/dist/components/Menu/SubMenu.d.ts +2 -2
- package/dist/components/Menu/menu.tokens.d.ts +46 -26
- package/dist/components/Menu/types.d.ts +11 -11
- package/dist/components/Menu/utils.d.ts +3 -3
- package/dist/components/Modal/modal.tokens.d.ts +59 -33
- package/dist/components/Modal/types.d.ts +2 -2
- package/dist/components/MultiSelect/MultiSelectMenu.d.ts +1 -1
- package/dist/components/MultiSelect/multiSelect.tokens.d.ts +72 -28
- package/dist/components/Popover/PopoverFooter.d.ts +1 -1
- package/dist/components/Popover/popover.tokens.d.ts +49 -13
- package/dist/components/Popover/types.d.ts +2 -2
- package/dist/components/ProgressBar/index.d.ts +0 -1
- package/dist/components/ProgressBar/progressbar.tokens.d.ts +54 -41
- package/dist/components/Radio/radio.token.d.ts +21 -24
- package/dist/components/Sidebar/sidebar.tokens.d.ts +77 -0
- package/dist/components/Sidebar/utils.d.ts +3 -2
- package/dist/components/SingleSelect/SingleSelect.d.ts +1 -1
- package/dist/components/SingleSelect/SingleSelectMenu.d.ts +4 -2
- package/dist/components/SingleSelect/singleSelect.tokens.d.ts +67 -23
- package/dist/components/SingleSelect/types.d.ts +0 -1
- package/dist/components/Snackbar/snackbar.tokens.d.ts +51 -26
- package/dist/components/StatCard/StatCard.d.ts +1 -1
- package/dist/components/StatCard/statcard.tokens.d.ts +51 -66
- package/dist/components/StatCard/types.d.ts +5 -0
- package/dist/components/Switch/switch.token.d.ts +57 -74
- package/dist/components/Tabs/tabs.token.d.ts +62 -40
- package/dist/components/Tags/tag.tokens.d.ts +35 -36
- package/dist/components/Tooltip/tooltip.tokens.d.ts +24 -10
- package/dist/components/VirtualList/VirtualList.d.ts +10 -1
- package/dist/components/VirtualList/index.d.ts +1 -2
- package/dist/components/VirtualList/types.d.ts +10 -62
- package/dist/components/VirtualList/utils.d.ts +31 -22
- package/dist/context/ThemeContext.d.ts +20 -12
- package/dist/context/useComponentToken.d.ts +12 -8
- package/dist/main.js +31374 -28273
- package/dist/tokens/unit.tokens.d.ts +3 -0
- package/package.json +1 -1
- package/dist/components/Menu/MenuPlayground.d.ts +0 -3
- package/dist/components/Menu/MenuPlaygroundComprehensive.d.ts +0 -3
- 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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
13
|
-
|
|
13
|
+
};
|
|
14
|
+
subLabel: {
|
|
15
|
+
fontSize: CSSObject['fontSize'];
|
|
16
|
+
fontWeight: CSSObject['fontWeight'];
|
|
17
|
+
color: {
|
|
18
|
+
[key in DropdownInputState]: CSSObject['color'];
|
|
14
19
|
};
|
|
15
|
-
|
|
16
|
-
|
|
20
|
+
};
|
|
21
|
+
hintText: {
|
|
22
|
+
fontSize: CSSObject['fontSize'];
|
|
23
|
+
fontWeight: CSSObject['fontWeight'];
|
|
24
|
+
color: {
|
|
25
|
+
[key in DropdownInputState]: CSSObject['color'];
|
|
17
26
|
};
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
25
|
-
[key in
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
24
|
-
|
|
23
|
+
};
|
|
24
|
+
subLabel: {
|
|
25
|
+
fontSize: CSSObject['fontSize'];
|
|
26
|
+
fontWeight: CSSObject['fontWeight'];
|
|
27
|
+
color: {
|
|
28
|
+
[key in NumberInputState]: CSSObject['color'];
|
|
25
29
|
};
|
|
26
|
-
|
|
27
|
-
|
|
30
|
+
};
|
|
31
|
+
hintText: {
|
|
32
|
+
fontSize: CSSObject['fontSize'];
|
|
33
|
+
fontWeight: CSSObject['fontWeight'];
|
|
34
|
+
color: {
|
|
35
|
+
[key in NumberInputState]: CSSObject['color'];
|
|
28
36
|
};
|
|
29
|
-
|
|
30
|
-
|
|
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
|
|
60
|
+
[key in NumberInputState]: CSSObject['color'];
|
|
34
61
|
};
|
|
35
|
-
|
|
36
|
-
[key in
|
|
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
|
-
|
|
40
|
-
|
|
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
|
|
48
|
-
export
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
};
|
|
20
|
+
subLabel: {
|
|
21
|
+
fontSize: CSSObject['fontSize'];
|
|
22
|
+
fontWeight: CSSObject['fontWeight'];
|
|
23
|
+
color: {
|
|
24
|
+
[key in OTPInputState]: CSSObject['color'];
|
|
21
25
|
};
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
29
|
-
|
|
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
|
};
|
|
@@ -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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
27
|
+
hintText: {
|
|
28
|
+
fontSize: CSSObject['fontSize'];
|
|
29
|
+
fontWeight: CSSObject['fontWeight'];
|
|
30
|
+
color: {
|
|
31
|
+
[key in SearchInputState]: CSSObject['color'];
|
|
32
|
+
};
|
|
20
33
|
};
|
|
21
|
-
|
|
22
|
-
|
|
34
|
+
errorMessage: {
|
|
35
|
+
fontSize: CSSObject['fontSize'];
|
|
36
|
+
fontWeight: CSSObject['fontWeight'];
|
|
37
|
+
color: CSSObject['color'];
|
|
23
38
|
};
|
|
24
|
-
|
|
25
|
-
|
|
39
|
+
required: {
|
|
40
|
+
color: CSSObject['color'];
|
|
26
41
|
};
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
31
|
-
radius: CSSObject['borderRadius'];
|
|
59
|
+
icon: {
|
|
32
60
|
color: {
|
|
33
|
-
[key in SearchInputState]: CSSObject['
|
|
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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
14
|
-
|
|
20
|
+
subLabel: {
|
|
21
|
+
fontSize: CSSObject['fontSize'];
|
|
22
|
+
fontWeight: CSSObject['fontWeight'];
|
|
23
|
+
color: {
|
|
24
|
+
[key in TextAreaState]: CSSObject['color'];
|
|
25
|
+
};
|
|
15
26
|
};
|
|
16
|
-
|
|
17
|
-
|
|
27
|
+
helpIcon: {
|
|
28
|
+
width: CSSObject['width'];
|
|
29
|
+
color: {
|
|
30
|
+
[key in TextAreaState]: CSSObject['color'];
|
|
31
|
+
};
|
|
18
32
|
};
|
|
19
|
-
|
|
20
|
-
|
|
33
|
+
hintText: {
|
|
34
|
+
fontSize: CSSObject['fontSize'];
|
|
35
|
+
fontWeight: CSSObject['fontWeight'];
|
|
36
|
+
color: {
|
|
37
|
+
[key in TextAreaState]: CSSObject['color'];
|
|
38
|
+
};
|
|
21
39
|
};
|
|
22
|
-
|
|
23
|
-
|
|
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
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
13
|
-
|
|
13
|
+
};
|
|
14
|
+
subLabel: {
|
|
15
|
+
fontSize: CSSObject['fontSize'];
|
|
16
|
+
fontWeight: CSSObject['fontWeight'];
|
|
17
|
+
color: {
|
|
18
|
+
[key in TextInputState]: CSSObject['color'];
|
|
14
19
|
};
|
|
15
|
-
|
|
16
|
-
|
|
20
|
+
};
|
|
21
|
+
hintText: {
|
|
22
|
+
fontSize: CSSObject['fontSize'];
|
|
23
|
+
fontWeight: CSSObject['fontWeight'];
|
|
24
|
+
color: {
|
|
25
|
+
[key in TextInputState]: CSSObject['color'];
|
|
17
26
|
};
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
25
|
-
[key in
|
|
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: (
|
|
75
|
+
export declare const getTextInputTokens: (foundationTokens: FoundationTokenType) => ResponsiveTextInputTokens;
|