@dnanpm/styleguide 1.8.1 → 2.0.1
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/build/cjs/components/Accordion/Accordion.d.ts +50 -0
- package/build/cjs/components/Accordion/Accordion.js +52 -0
- package/build/cjs/components/Accordion/AccordionItem.d.ts +30 -0
- package/build/cjs/components/Accordion/AccordionItem.js +77 -0
- package/build/cjs/components/AmountSelector/AmountSelector.js +5 -6
- package/build/cjs/components/Buttons/ButtonBasicStyles.d.ts +37 -30
- package/build/cjs/components/Buttons/ButtonBasicStyles.js +10 -14
- package/build/cjs/components/Buttons/ButtonDefault.js +6 -2
- package/build/cjs/components/Buttons/ButtonIconPrimaryStyles.d.ts +37 -30
- package/build/cjs/components/Buttons/ButtonIconStyles.d.ts +37 -30
- package/build/cjs/components/Buttons/ButtonPrimary.js +6 -2
- package/build/cjs/components/Buttons/ButtonPrimaryStyles.d.ts +37 -30
- package/build/cjs/components/Buttons/ButtonSecondary.js +7 -3
- package/build/cjs/components/Buttons/ButtonSecondaryStyles.d.ts +37 -30
- package/build/cjs/components/Buttons/ButtonTertiary.js +7 -3
- package/build/cjs/components/Buttons/ButtonTertiaryStyles.d.ts +37 -30
- package/build/cjs/components/Buttons/CloseButton.d.ts +37 -30
- package/build/cjs/components/Card/Card.js +4 -2
- package/build/cjs/components/Card/CardRow.js +3 -3
- package/build/cjs/components/Checkbox/Checkbox.d.ts +38 -12
- package/build/cjs/components/Checkbox/Checkbox.js +37 -70
- package/build/cjs/components/DnaLogo/DnaLogo.d.ts +37 -40
- package/build/cjs/components/Footer/Components/FooterComponents.js +3 -2
- package/build/cjs/components/Helper/Helper.js +2 -1
- package/build/cjs/components/Icon/Icon.d.ts +39 -30
- package/build/cjs/components/Icon/Icons.d.ts +1 -4
- package/build/cjs/components/Icon/Icons.js +3 -7
- package/build/cjs/components/Input/Input.d.ts +102 -13
- package/build/cjs/components/Input/Input.js +57 -58
- package/build/cjs/components/Label/Label.js +2 -3
- package/build/cjs/components/LabelText/LabelText.d.ts +38 -30
- package/build/cjs/components/LabelText/LabelText.js +1 -1
- package/build/cjs/components/MainNavigation/ChildComponents/BusinessMenu.js +4 -10
- package/build/cjs/components/MainNavigation/ChildComponents/DesktopMenu.js +18 -12
- package/build/cjs/components/MainNavigation/ChildComponents/HeaderNavigationElements.d.ts +37 -30
- package/build/cjs/components/MainNavigation/ChildComponents/LanguageSelector.js +2 -2
- package/build/cjs/components/MainNavigation/ChildComponents/LinkModifier.js +2 -2
- package/build/cjs/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.d.ts +37 -30
- package/build/cjs/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.js +1 -4
- package/build/cjs/components/MainNavigation/ChildComponents/MobileMenu.js +1 -1
- package/build/cjs/components/MainNavigation/ChildComponents/Ribbon.js +1 -1
- package/build/cjs/components/MainNavigation/MainNavigation.js +1 -17
- package/build/cjs/components/MainNavigation/globalNavStyles.d.ts +148 -120
- package/build/cjs/components/Notification/Notification.d.ts +36 -17
- package/build/cjs/components/Notification/Notification.js +25 -48
- package/build/cjs/components/NotificationBadge/NotificationBadge.d.ts +37 -30
- package/build/cjs/components/NotificationBadge/NotificationBadge.js +1 -1
- package/build/cjs/components/PixelLoader/PixelLoaderStyles.d.ts +74 -60
- package/build/cjs/components/ProgressIndicator/ProgressIndicator.js +3 -3
- package/build/cjs/components/RadioButton/RadioButton.d.ts +33 -17
- package/build/cjs/components/RadioButton/RadioButton.js +12 -57
- package/build/cjs/components/ReadMore/ReadMore.js +2 -7
- package/build/cjs/components/Ribbon/Ribbon.d.ts +57 -0
- package/build/cjs/components/Ribbon/Ribbon.js +80 -0
- package/build/cjs/components/Search/Search.js +2 -1
- package/build/cjs/components/SecondaryNavigation/SecondaryNavigation.js +2 -2
- package/build/cjs/components/Selectbox/Selectbox.d.ts +102 -13
- package/build/cjs/components/Selectbox/Selectbox.js +40 -49
- package/build/cjs/components/Tabs/Tab.d.ts +37 -30
- package/build/cjs/components/Tabs/Tab.js +3 -2
- package/build/cjs/components/Tabs/Tabs.d.ts +40 -30
- package/build/cjs/components/Textarea/Textarea.js +4 -3
- package/build/cjs/components/Tooltip/Tooltip.d.ts +37 -30
- package/build/cjs/components/TooltipMenu/ChildComponents/TooltipMenuExportedStyles.d.ts +74 -60
- package/build/cjs/components/index.d.ts +4 -1
- package/build/cjs/hooks/useElementDimensions.d.ts +5 -0
- package/build/cjs/hooks/useElementDimensions.js +37 -0
- package/build/cjs/index.js +6 -0
- package/build/cjs/themes/globalStyles.d.ts +174 -60
- package/build/cjs/themes/globalStyles.js +132 -142
- package/build/cjs/themes/styled.d.ts +259 -210
- package/build/cjs/themes/theme.d.ts +37 -30
- package/build/cjs/themes/themeComponents/buttons.d.ts +1 -6
- package/build/cjs/themes/themeComponents/buttons.js +1 -6
- package/build/cjs/themes/themeComponents/fontFamily.d.ts +3 -1
- package/build/cjs/themes/themeComponents/fontFamily.js +3 -1
- package/build/cjs/themes/themeComponents/fontSize.d.ts +18 -15
- package/build/cjs/themes/themeComponents/fontSize.js +20 -14
- package/build/cjs/themes/themeComponents/lineHeight.d.ts +19 -12
- package/build/cjs/themes/themeComponents/lineHeight.js +21 -11
- package/build/es/components/Accordion/Accordion.d.ts +50 -0
- package/build/es/components/Accordion/Accordion.js +44 -0
- package/build/es/components/Accordion/AccordionItem.d.ts +30 -0
- package/build/es/components/Accordion/AccordionItem.js +68 -0
- package/build/es/components/AmountSelector/AmountSelector.js +5 -6
- package/build/es/components/Buttons/ButtonBasicStyles.d.ts +37 -30
- package/build/es/components/Buttons/ButtonBasicStyles.js +10 -14
- package/build/es/components/Buttons/ButtonDefault.js +6 -2
- package/build/es/components/Buttons/ButtonIconPrimaryStyles.d.ts +37 -30
- package/build/es/components/Buttons/ButtonIconStyles.d.ts +37 -30
- package/build/es/components/Buttons/ButtonPrimary.js +6 -2
- package/build/es/components/Buttons/ButtonPrimaryStyles.d.ts +37 -30
- package/build/es/components/Buttons/ButtonSecondary.js +7 -3
- package/build/es/components/Buttons/ButtonSecondaryStyles.d.ts +37 -30
- package/build/es/components/Buttons/ButtonTertiary.js +7 -3
- package/build/es/components/Buttons/ButtonTertiaryStyles.d.ts +37 -30
- package/build/es/components/Buttons/CloseButton.d.ts +37 -30
- package/build/es/components/Card/Card.js +4 -2
- package/build/es/components/Card/CardRow.js +3 -3
- package/build/es/components/Checkbox/Checkbox.d.ts +38 -12
- package/build/es/components/Checkbox/Checkbox.js +39 -72
- package/build/es/components/DnaLogo/DnaLogo.d.ts +37 -40
- package/build/es/components/Footer/Components/FooterComponents.js +3 -2
- package/build/es/components/Helper/Helper.js +2 -1
- package/build/es/components/Icon/Icon.d.ts +39 -30
- package/build/es/components/Icon/Icons.d.ts +1 -4
- package/build/es/components/Icon/Icons.js +3 -7
- package/build/es/components/Input/Input.d.ts +102 -13
- package/build/es/components/Input/Input.js +57 -58
- package/build/es/components/Label/Label.js +2 -3
- package/build/es/components/LabelText/LabelText.d.ts +38 -30
- package/build/es/components/LabelText/LabelText.js +1 -1
- package/build/es/components/MainNavigation/ChildComponents/BusinessMenu.js +4 -10
- package/build/es/components/MainNavigation/ChildComponents/DesktopMenu.js +18 -12
- package/build/es/components/MainNavigation/ChildComponents/HeaderNavigationElements.d.ts +37 -30
- package/build/es/components/MainNavigation/ChildComponents/LanguageSelector.js +2 -2
- package/build/es/components/MainNavigation/ChildComponents/LinkModifier.js +2 -2
- package/build/es/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.d.ts +37 -30
- package/build/es/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.js +2 -5
- package/build/es/components/MainNavigation/ChildComponents/MobileMenu.js +1 -1
- package/build/es/components/MainNavigation/ChildComponents/Ribbon.js +1 -1
- package/build/es/components/MainNavigation/MainNavigation.js +2 -17
- package/build/es/components/MainNavigation/globalNavStyles.d.ts +148 -120
- package/build/es/components/Notification/Notification.d.ts +36 -17
- package/build/es/components/Notification/Notification.js +25 -48
- package/build/es/components/NotificationBadge/NotificationBadge.d.ts +37 -30
- package/build/es/components/NotificationBadge/NotificationBadge.js +1 -1
- package/build/es/components/PixelLoader/PixelLoaderStyles.d.ts +74 -60
- package/build/es/components/ProgressIndicator/ProgressIndicator.js +3 -3
- package/build/es/components/RadioButton/RadioButton.d.ts +33 -17
- package/build/es/components/RadioButton/RadioButton.js +12 -57
- package/build/es/components/ReadMore/ReadMore.js +2 -7
- package/build/es/components/Ribbon/Ribbon.d.ts +57 -0
- package/build/es/components/Ribbon/Ribbon.js +71 -0
- package/build/es/components/Search/Search.js +2 -1
- package/build/es/components/SecondaryNavigation/SecondaryNavigation.js +2 -2
- package/build/es/components/Selectbox/Selectbox.d.ts +102 -13
- package/build/es/components/Selectbox/Selectbox.js +40 -49
- package/build/es/components/Tabs/Tab.d.ts +37 -30
- package/build/es/components/Tabs/Tab.js +3 -2
- package/build/es/components/Tabs/Tabs.d.ts +40 -30
- package/build/es/components/Textarea/Textarea.js +4 -3
- package/build/es/components/Tooltip/Tooltip.d.ts +37 -30
- package/build/es/components/TooltipMenu/ChildComponents/TooltipMenuExportedStyles.d.ts +74 -60
- package/build/es/components/index.d.ts +4 -1
- package/build/es/hooks/useElementDimensions.d.ts +5 -0
- package/build/es/hooks/useElementDimensions.js +33 -0
- package/build/es/index.js +3 -0
- package/build/es/themes/globalStyles.d.ts +174 -60
- package/build/es/themes/globalStyles.js +134 -145
- package/build/es/themes/styled.d.ts +259 -210
- package/build/es/themes/theme.d.ts +37 -30
- package/build/es/themes/themeComponents/buttons.d.ts +1 -6
- package/build/es/themes/themeComponents/buttons.js +1 -6
- package/build/es/themes/themeComponents/fontFamily.d.ts +3 -1
- package/build/es/themes/themeComponents/fontFamily.js +3 -1
- package/build/es/themes/themeComponents/fontSize.d.ts +18 -15
- package/build/es/themes/themeComponents/fontSize.js +20 -14
- package/build/es/themes/themeComponents/lineHeight.d.ts +19 -12
- package/build/es/themes/themeComponents/lineHeight.js +21 -11
- package/package.json +3 -4
|
@@ -4,31 +4,120 @@ export interface SelectboxItem {
|
|
|
4
4
|
label: string;
|
|
5
5
|
value: any;
|
|
6
6
|
}
|
|
7
|
-
interface DropDownIndicator {
|
|
8
|
-
color?: string;
|
|
9
|
-
iconSize?: string;
|
|
10
|
-
}
|
|
11
7
|
interface Props {
|
|
8
|
+
/**
|
|
9
|
+
* Unique ID for the select element
|
|
10
|
+
*/
|
|
11
|
+
inputId: ReactSelectProps['inputId'];
|
|
12
|
+
/**
|
|
13
|
+
* Array of options that populate the select menu
|
|
14
|
+
*/
|
|
12
15
|
options: ReactSelectProps['options'];
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Default value of select menu
|
|
18
|
+
*
|
|
19
|
+
* @default undefined
|
|
20
|
+
*/
|
|
21
|
+
value?: ReactSelectProps['value'];
|
|
22
|
+
/**
|
|
23
|
+
* Text of the select element label
|
|
24
|
+
*/
|
|
17
25
|
label?: string;
|
|
18
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Text of placeholder for the select value
|
|
28
|
+
*/
|
|
19
29
|
placeholder?: ReactSelectProps['placeholder'];
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Text to display when there are no options
|
|
32
|
+
*/
|
|
23
33
|
noOptionsText?: string;
|
|
34
|
+
/**
|
|
35
|
+
* On select change callback
|
|
36
|
+
*/
|
|
37
|
+
onChange: (selectedItem: SelectboxItem) => void;
|
|
38
|
+
/**
|
|
39
|
+
* On input change callback
|
|
40
|
+
*/
|
|
41
|
+
onInputChange?: ReactSelectProps['onInputChange'];
|
|
42
|
+
/**
|
|
43
|
+
* Allows to attach selectbox options menu to specific HTML element
|
|
44
|
+
* Useful when used in modals
|
|
45
|
+
*
|
|
46
|
+
* @default selectbox-container
|
|
47
|
+
*/
|
|
48
|
+
menuPortalTarget?: ReactSelectProps['menuPortalTarget'];
|
|
49
|
+
/**
|
|
50
|
+
* Allows to place selectbox options menu above or below the selectbox control
|
|
51
|
+
*
|
|
52
|
+
* @default 'auto'
|
|
53
|
+
* @param {MenuPlacement} top Opens options menu above the control
|
|
54
|
+
* @param {MenuPlacement} bottom Opens options menu below the control
|
|
55
|
+
*/
|
|
56
|
+
menuPlacement?: ReactSelectProps['menuPlacement'];
|
|
57
|
+
/**
|
|
58
|
+
* Allows to define icon color and icon size of dropdown indicator
|
|
59
|
+
*
|
|
60
|
+
* @default color '#000000'
|
|
61
|
+
* @default iconSize '1rem'
|
|
62
|
+
*/
|
|
63
|
+
dropDownIndicator?: {
|
|
64
|
+
color?: string;
|
|
65
|
+
iconSize?: string;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Displayes loading indicator (PixelLoader) instead of selectbox
|
|
69
|
+
*
|
|
70
|
+
* @default false
|
|
71
|
+
*/
|
|
72
|
+
isLoading?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Allows to enable search functionality
|
|
75
|
+
*
|
|
76
|
+
* @default false
|
|
77
|
+
*/
|
|
24
78
|
isSearchable?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Allows to clear selected value
|
|
81
|
+
*
|
|
82
|
+
* @default false
|
|
83
|
+
*/
|
|
25
84
|
isClearable?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Allows to select multiple options
|
|
87
|
+
*
|
|
88
|
+
* @default false
|
|
89
|
+
*/
|
|
26
90
|
isMulti?: boolean;
|
|
27
|
-
|
|
91
|
+
/**
|
|
92
|
+
* Allows to disable the component functionality
|
|
93
|
+
*
|
|
94
|
+
* @default false
|
|
95
|
+
*/
|
|
28
96
|
isDisabled?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Allows to set selectbox as mandatory
|
|
99
|
+
*
|
|
100
|
+
* @default false
|
|
101
|
+
*/
|
|
29
102
|
isRequired?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Allows to set selectbox to error state
|
|
105
|
+
*
|
|
106
|
+
* @default false
|
|
107
|
+
*/
|
|
30
108
|
error?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Text of the error message when selectbox is in error state
|
|
111
|
+
*/
|
|
31
112
|
errorMessage?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Allows to pass a custom className
|
|
115
|
+
*/
|
|
116
|
+
className?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Allows to pass testid string for testing purposes
|
|
119
|
+
*/
|
|
120
|
+
'data-testid'?: string;
|
|
32
121
|
}
|
|
33
122
|
declare const SelectBox: ({ dropDownIndicator, "data-testid": dataTestId, isSearchable, isClearable, isMulti, noOptionsText, isLoading, isDisabled, isRequired, error, ...props }: Props) => JSX.Element;
|
|
34
123
|
export default SelectBox;
|
|
@@ -22,8 +22,8 @@ const borderStyles = {
|
|
|
22
22
|
boxShadow: 'none',
|
|
23
23
|
};
|
|
24
24
|
const FieldContainer = styled['default'].div `
|
|
25
|
-
color: ${props => props
|
|
26
|
-
|
|
25
|
+
color: ${props => (props.isDisabled ? props.theme.color.gray40 : props.theme.color.text)};
|
|
26
|
+
margin-bottom: ${props => styledUtils.getMultipliedSize(props.theme.base.baseWidth, 1)};
|
|
27
27
|
|
|
28
28
|
${LabelText.LabelText} {
|
|
29
29
|
color: ${props => {
|
|
@@ -33,8 +33,8 @@ const FieldContainer = styled['default'].div `
|
|
|
33
33
|
}}
|
|
34
34
|
`;
|
|
35
35
|
const ErrorMessage = styled['default'].div `
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
font-size: ${props => props.theme.fontSize.s};
|
|
37
|
+
line-height: ${props => props.theme.lineHeight.s};
|
|
38
38
|
color: ${props => props.theme.color.error};
|
|
39
39
|
margin-top: ${props => styledUtils.getMultipliedSize(props.theme.base.baseHeight, 0.5)};
|
|
40
40
|
`;
|
|
@@ -42,52 +42,43 @@ const Mandatory = styled['default'].span `
|
|
|
42
42
|
color: ${props => props.theme.color.hotPink};
|
|
43
43
|
`;
|
|
44
44
|
const selectBoxStyles = {
|
|
45
|
-
control: (styles, state) => {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
const customMenuStyles = {
|
|
61
|
-
...borderStyles,
|
|
62
|
-
marginTop: '-2px',
|
|
63
|
-
borderTop: 'none',
|
|
64
|
-
};
|
|
65
|
-
return {
|
|
66
|
-
...styles,
|
|
67
|
-
...customMenuStyles,
|
|
68
|
-
};
|
|
69
|
-
},
|
|
45
|
+
control: (styles, state) => ({
|
|
46
|
+
...styles,
|
|
47
|
+
...borderStyles,
|
|
48
|
+
height: styledUtils.getMultipliedSize(theme['default'].base.baseHeight, 4),
|
|
49
|
+
borderBottomColor: state.menuIsOpen ? theme['default'].color.white : theme['default'].color.gray25,
|
|
50
|
+
':hover': {
|
|
51
|
+
borderColor: theme['default'].color.gray25,
|
|
52
|
+
},
|
|
53
|
+
}),
|
|
54
|
+
menu: styles => ({
|
|
55
|
+
...styles,
|
|
56
|
+
...borderStyles,
|
|
57
|
+
marginTop: '-2px',
|
|
58
|
+
borderTop: 'none',
|
|
59
|
+
}),
|
|
70
60
|
indicatorSeparator: () => ({
|
|
71
61
|
border: 'none',
|
|
72
62
|
}),
|
|
73
|
-
option: styles => {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
63
|
+
option: (styles, { isDisabled, isSelected }) => ({
|
|
64
|
+
...styles,
|
|
65
|
+
display: 'flex',
|
|
66
|
+
justifyContent: 'space-between',
|
|
67
|
+
color: isDisabled ? theme['default'].color.gray40 : theme['default'].color.text,
|
|
68
|
+
backgroundColor: isDisabled || isSelected ? theme['default'].color.gray5 : theme['default'].color.white,
|
|
69
|
+
fontWeight: theme['default'].fontWeight.book,
|
|
70
|
+
fontSize: theme['default'].fontSize.default,
|
|
71
|
+
textOverflow: 'ellipsis',
|
|
72
|
+
whiteSpace: 'pre-wrap',
|
|
73
|
+
overflow: 'hidden',
|
|
74
|
+
cursor: isDisabled ? 'not-allowed' : 'default',
|
|
75
|
+
':active': {
|
|
76
|
+
backgroundColor: theme['default'].color.gray10,
|
|
77
|
+
},
|
|
78
|
+
':hover': {
|
|
79
|
+
backgroundColor: isDisabled ? theme['default'].color.gray5 : theme['default'].color.grayBg,
|
|
80
|
+
},
|
|
81
|
+
}),
|
|
91
82
|
};
|
|
92
83
|
const SelectBox = ({ dropDownIndicator, 'data-testid': dataTestId, isSearchable = false, isClearable = false, isMulti = false, noOptionsText = '', isLoading = false, isDisabled = false, isRequired = false, error = false, ...props }) => {
|
|
93
84
|
const getNoOptionsText = () => noOptionsText;
|
|
@@ -106,12 +97,12 @@ const SelectBox = ({ dropDownIndicator, 'data-testid': dataTestId, isSearchable
|
|
|
106
97
|
return (Select.components.DropdownIndicator && (React__default['default'].createElement(Select.components.DropdownIndicator, Object.assign({}, dropdownIndicatorProps),
|
|
107
98
|
React__default['default'].createElement(Icon['default'], { color: color, name: getIconName(), size: iconSize }))));
|
|
108
99
|
};
|
|
109
|
-
return (React__default['default'].createElement("div", { className: props.className, "data-testid": dataTestId }, !isLoading ? (React__default['default'].createElement(FieldContainer, {
|
|
100
|
+
return (React__default['default'].createElement("div", { className: props.className, "data-testid": dataTestId }, !isLoading ? (React__default['default'].createElement(FieldContainer, { isDisabled: isDisabled, error: error },
|
|
110
101
|
props.label && (React__default['default'].createElement(LabelText.LabelText, { htmlFor: props.inputId },
|
|
111
102
|
props.label,
|
|
112
103
|
" ",
|
|
113
104
|
isRequired && React__default['default'].createElement(Mandatory, null, "*"))),
|
|
114
|
-
React__default['default'].createElement(Select__default['default'], { inputId: props.inputId, styles: selectBoxStyles, components: { DropdownIndicator }, options: props.options, classNamePrefix: "react_select", onChange: props.onChange, onInputChange: props.onInputChange, value: props.value, placeholder: props.placeholder, noOptionsMessage: getNoOptionsText, isSearchable: isSearchable, isClearable: isClearable, isMulti: isMulti, isDisabled: isDisabled }),
|
|
105
|
+
React__default['default'].createElement(Select__default['default'], { inputId: props.inputId, styles: selectBoxStyles, components: { DropdownIndicator }, options: props.options, classNamePrefix: "react_select", onChange: props.onChange, onInputChange: props.onInputChange, value: props.value, placeholder: props.placeholder, noOptionsMessage: getNoOptionsText, menuPortalTarget: props.menuPortalTarget, menuPlacement: props.menuPlacement, isSearchable: isSearchable, isClearable: isClearable, isMulti: isMulti, isDisabled: isDisabled }),
|
|
115
106
|
error && props.errorMessage && (React__default['default'].createElement(ErrorMessage, null, props.errorMessage)))) : (React__default['default'].createElement(PixelLoader.PixelLoader, null))));
|
|
116
107
|
};
|
|
117
108
|
|
|
@@ -23,12 +23,7 @@ export declare const TabStyle: import("styled-components").StyledComponent<"li",
|
|
|
23
23
|
};
|
|
24
24
|
breakpoints: import("../../themes/themeComponents/breakpoints").ViewBreakpoints;
|
|
25
25
|
button: {
|
|
26
|
-
|
|
27
|
-
buttonPadding: string;
|
|
28
|
-
smallButtonPadding: string;
|
|
29
|
-
buttonLineHeight: string;
|
|
30
|
-
buttonWidth: string;
|
|
31
|
-
buttonSmallWidth: string;
|
|
26
|
+
border: string;
|
|
32
27
|
};
|
|
33
28
|
color: {
|
|
34
29
|
black: string;
|
|
@@ -59,22 +54,27 @@ export declare const TabStyle: import("styled-components").StyledComponent<"li",
|
|
|
59
54
|
gray5: string;
|
|
60
55
|
};
|
|
61
56
|
fontFamily: {
|
|
62
|
-
|
|
57
|
+
default: string;
|
|
58
|
+
heading: string;
|
|
59
|
+
numerals: string;
|
|
63
60
|
};
|
|
64
61
|
fontSize: {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
62
|
+
default: string;
|
|
63
|
+
xl: string;
|
|
64
|
+
l: string;
|
|
65
|
+
s: string;
|
|
66
|
+
xs: string;
|
|
67
|
+
h1XL: string;
|
|
68
|
+
h1L: string;
|
|
69
|
+
h1M: string;
|
|
70
|
+
h1S: string;
|
|
71
|
+
h2M: string;
|
|
72
|
+
h2S: string;
|
|
73
|
+
h3: string;
|
|
74
|
+
h4: string;
|
|
75
|
+
h5: string;
|
|
76
|
+
h1: string;
|
|
77
|
+
h2: string;
|
|
78
78
|
};
|
|
79
79
|
fontWeight: {
|
|
80
80
|
book: number;
|
|
@@ -90,16 +90,23 @@ export declare const TabStyle: import("styled-components").StyledComponent<"li",
|
|
|
90
90
|
gutter: string;
|
|
91
91
|
};
|
|
92
92
|
lineHeight: {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
93
|
+
default: string;
|
|
94
|
+
xl: string;
|
|
95
|
+
s: string;
|
|
96
|
+
xs: string;
|
|
97
|
+
xxs: string;
|
|
98
|
+
auto: string;
|
|
99
|
+
h1XL: string;
|
|
100
|
+
h1L: string;
|
|
101
|
+
h1M: string;
|
|
102
|
+
h1S: string;
|
|
103
|
+
h2M: string;
|
|
104
|
+
h2S: string;
|
|
105
|
+
h3: string;
|
|
106
|
+
h4: string;
|
|
107
|
+
h5: string;
|
|
108
|
+
h1: string;
|
|
109
|
+
h2: string;
|
|
103
110
|
};
|
|
104
111
|
media: Record<string | number, (l: TemplateStringsArray, ...p: any[]) => string>;
|
|
105
112
|
}, TabStyleProps, never>;
|
|
@@ -15,7 +15,8 @@ const TabStyle = styled['default'].li `
|
|
|
15
15
|
list-style: none;
|
|
16
16
|
cursor: pointer;
|
|
17
17
|
padding: ${props => `${styledUtils.getMultipliedSize(props.theme.base.baseHeight, 0.8)} ${styledUtils.getMultipliedSize(props.theme.base.baseHeight, 1.6)}`};
|
|
18
|
-
font-size: ${props => props.theme.fontSize.
|
|
18
|
+
font-size: ${props => props.theme.fontSize.default};
|
|
19
|
+
line-height: ${props => props.theme.lineHeight.default};
|
|
19
20
|
font-weight: ${props => props.theme.fontWeight.book};
|
|
20
21
|
margin-right: ${props => styledUtils.getMultipliedSize(props.theme.base.baseHeight, 2)};
|
|
21
22
|
|
|
@@ -34,7 +35,7 @@ const TabStyle = styled['default'].li `
|
|
|
34
35
|
styled.css `
|
|
35
36
|
padding: ${styledUtils.getMultipliedSize(props.theme.base.baseHeight, 1)} 0;
|
|
36
37
|
margin-right: ${styledUtils.getMultipliedSize(props.theme.base.baseHeight, 5)};
|
|
37
|
-
font-size: ${props.theme.fontSize.
|
|
38
|
+
font-size: ${props.theme.fontSize.l};
|
|
38
39
|
font-weight: ${props.theme.fontWeight.bold};
|
|
39
40
|
`}
|
|
40
41
|
|
|
@@ -42,12 +42,7 @@ export declare const Tablist: import("styled-components").StyledComponent<"ul",
|
|
|
42
42
|
};
|
|
43
43
|
breakpoints: import("../../themes/themeComponents/breakpoints").ViewBreakpoints;
|
|
44
44
|
button: {
|
|
45
|
-
|
|
46
|
-
buttonPadding: string;
|
|
47
|
-
smallButtonPadding: string;
|
|
48
|
-
buttonLineHeight: string;
|
|
49
|
-
buttonWidth: string;
|
|
50
|
-
buttonSmallWidth: string;
|
|
45
|
+
border: string;
|
|
51
46
|
};
|
|
52
47
|
color: {
|
|
53
48
|
black: string;
|
|
@@ -78,22 +73,29 @@ export declare const Tablist: import("styled-components").StyledComponent<"ul",
|
|
|
78
73
|
gray5: string;
|
|
79
74
|
};
|
|
80
75
|
fontFamily: {
|
|
81
|
-
|
|
76
|
+
default: string;
|
|
77
|
+
heading: string;
|
|
78
|
+
numerals: string;
|
|
82
79
|
};
|
|
83
80
|
fontSize: {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
81
|
+
default: string;
|
|
82
|
+
xl: string;
|
|
83
|
+
l: string;
|
|
84
|
+
s: string;
|
|
85
|
+
xs: string;
|
|
86
|
+
h1XL: string; /**
|
|
87
|
+
* Allows to pass a custom className
|
|
88
|
+
*/
|
|
89
|
+
h1L: string;
|
|
90
|
+
h1M: string;
|
|
91
|
+
h1S: string;
|
|
92
|
+
h2M: string;
|
|
93
|
+
h2S: string;
|
|
94
|
+
h3: string;
|
|
95
|
+
h4: string;
|
|
96
|
+
h5: string;
|
|
97
|
+
h1: string;
|
|
98
|
+
h2: string;
|
|
97
99
|
};
|
|
98
100
|
fontWeight: {
|
|
99
101
|
book: number;
|
|
@@ -109,12 +111,16 @@ export declare const Tablist: import("styled-components").StyledComponent<"ul",
|
|
|
109
111
|
gutter: string;
|
|
110
112
|
};
|
|
111
113
|
lineHeight: {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
114
|
+
default: string;
|
|
115
|
+
xl: string;
|
|
116
|
+
s: string;
|
|
117
|
+
xs: string;
|
|
118
|
+
xxs: string;
|
|
119
|
+
auto: string;
|
|
120
|
+
h1XL: string;
|
|
121
|
+
h1L: string;
|
|
122
|
+
h1M: string;
|
|
123
|
+
/**
|
|
118
124
|
* Style of the tabs
|
|
119
125
|
*
|
|
120
126
|
* @deprecated Underlined is provided only as legacy style
|
|
@@ -122,10 +128,14 @@ export declare const Tablist: import("styled-components").StyledComponent<"ul",
|
|
|
122
128
|
* @param {Type} gray Default
|
|
123
129
|
* @param {Type} underlined Legacy style (should not be used in new projects)
|
|
124
130
|
*/
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
131
|
+
h1S: string;
|
|
132
|
+
h2M: string;
|
|
133
|
+
h2S: string;
|
|
134
|
+
h3: string;
|
|
135
|
+
h4: string;
|
|
136
|
+
h5: string;
|
|
137
|
+
h1: string;
|
|
138
|
+
h2: string;
|
|
129
139
|
};
|
|
130
140
|
media: Record<React.ReactText, (l: TemplateStringsArray, ...p: any[]) => string>;
|
|
131
141
|
}, {
|
|
@@ -14,8 +14,9 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
14
14
|
const Tag = styled['default'].textarea `
|
|
15
15
|
display: block;
|
|
16
16
|
padding: ${props => styledUtils.getMultipliedSize(props.theme.base.baseWidth, 1)};
|
|
17
|
-
font-family: ${props => props.theme.fontFamily.
|
|
18
|
-
font-size: ${props => props.theme.fontSize.
|
|
17
|
+
font-family: ${props => props.theme.fontFamily.default};
|
|
18
|
+
font-size: ${props => props.theme.fontSize.default};
|
|
19
|
+
line-height: ${props => props.theme.lineHeight.default};
|
|
19
20
|
width: 100%;
|
|
20
21
|
border: 1px solid ${props => props.theme.color.gray15};
|
|
21
22
|
&::-ms-clear,
|
|
@@ -47,7 +48,7 @@ const FieldContainer = styled['default'].div `
|
|
|
47
48
|
`;
|
|
48
49
|
const CommentMessage = styled['default'].div `
|
|
49
50
|
line-height: 1.125rem;
|
|
50
|
-
font-size: ${props => props.theme.fontSize.
|
|
51
|
+
font-size: ${props => props.theme.fontSize.s};
|
|
51
52
|
color: ${props => props.theme.color.gray40};
|
|
52
53
|
margin-top: ${props => styledUtils.getMultipliedSize(props.theme.base.baseHeight, 0.5)};
|
|
53
54
|
`;
|
|
@@ -18,12 +18,7 @@ declare const Tooltip: import("styled-components").StyledComponent<typeof ReactT
|
|
|
18
18
|
};
|
|
19
19
|
breakpoints: import("../../themes/themeComponents/breakpoints").ViewBreakpoints;
|
|
20
20
|
button: {
|
|
21
|
-
|
|
22
|
-
buttonPadding: string;
|
|
23
|
-
smallButtonPadding: string;
|
|
24
|
-
buttonLineHeight: string;
|
|
25
|
-
buttonWidth: string;
|
|
26
|
-
buttonSmallWidth: string;
|
|
21
|
+
border: string;
|
|
27
22
|
};
|
|
28
23
|
color: {
|
|
29
24
|
black: string;
|
|
@@ -54,22 +49,27 @@ declare const Tooltip: import("styled-components").StyledComponent<typeof ReactT
|
|
|
54
49
|
gray5: string;
|
|
55
50
|
};
|
|
56
51
|
fontFamily: {
|
|
57
|
-
|
|
52
|
+
default: string;
|
|
53
|
+
heading: string; /** Allows to pass a custom className */
|
|
54
|
+
numerals: string;
|
|
58
55
|
};
|
|
59
56
|
fontSize: {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
57
|
+
default: string;
|
|
58
|
+
xl: string;
|
|
59
|
+
l: string;
|
|
60
|
+
s: string;
|
|
61
|
+
xs: string;
|
|
62
|
+
h1XL: string;
|
|
63
|
+
h1L: string;
|
|
64
|
+
h1M: string;
|
|
65
|
+
h1S: string;
|
|
66
|
+
h2M: string;
|
|
67
|
+
h2S: string;
|
|
68
|
+
h3: string;
|
|
69
|
+
h4: string;
|
|
70
|
+
h5: string;
|
|
71
|
+
h1: string;
|
|
72
|
+
h2: string;
|
|
73
73
|
};
|
|
74
74
|
fontWeight: {
|
|
75
75
|
book: number;
|
|
@@ -85,16 +85,23 @@ declare const Tooltip: import("styled-components").StyledComponent<typeof ReactT
|
|
|
85
85
|
gutter: string;
|
|
86
86
|
};
|
|
87
87
|
lineHeight: {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
88
|
+
default: string;
|
|
89
|
+
xl: string;
|
|
90
|
+
s: string;
|
|
91
|
+
xs: string;
|
|
92
|
+
xxs: string;
|
|
93
|
+
auto: string;
|
|
94
|
+
h1XL: string;
|
|
95
|
+
h1L: string;
|
|
96
|
+
h1M: string;
|
|
97
|
+
h1S: string;
|
|
98
|
+
h2M: string;
|
|
99
|
+
h2S: string;
|
|
100
|
+
h3: string;
|
|
101
|
+
h4: string;
|
|
102
|
+
h5: string;
|
|
103
|
+
h1: string;
|
|
104
|
+
h2: string;
|
|
98
105
|
};
|
|
99
106
|
media: Record<string | number, (l: TemplateStringsArray, ...p: any[]) => string>;
|
|
100
107
|
}, {
|