@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.
Files changed (161) hide show
  1. package/build/cjs/components/Accordion/Accordion.d.ts +50 -0
  2. package/build/cjs/components/Accordion/Accordion.js +52 -0
  3. package/build/cjs/components/Accordion/AccordionItem.d.ts +30 -0
  4. package/build/cjs/components/Accordion/AccordionItem.js +77 -0
  5. package/build/cjs/components/AmountSelector/AmountSelector.js +5 -6
  6. package/build/cjs/components/Buttons/ButtonBasicStyles.d.ts +37 -30
  7. package/build/cjs/components/Buttons/ButtonBasicStyles.js +10 -14
  8. package/build/cjs/components/Buttons/ButtonDefault.js +6 -2
  9. package/build/cjs/components/Buttons/ButtonIconPrimaryStyles.d.ts +37 -30
  10. package/build/cjs/components/Buttons/ButtonIconStyles.d.ts +37 -30
  11. package/build/cjs/components/Buttons/ButtonPrimary.js +6 -2
  12. package/build/cjs/components/Buttons/ButtonPrimaryStyles.d.ts +37 -30
  13. package/build/cjs/components/Buttons/ButtonSecondary.js +7 -3
  14. package/build/cjs/components/Buttons/ButtonSecondaryStyles.d.ts +37 -30
  15. package/build/cjs/components/Buttons/ButtonTertiary.js +7 -3
  16. package/build/cjs/components/Buttons/ButtonTertiaryStyles.d.ts +37 -30
  17. package/build/cjs/components/Buttons/CloseButton.d.ts +37 -30
  18. package/build/cjs/components/Card/Card.js +4 -2
  19. package/build/cjs/components/Card/CardRow.js +3 -3
  20. package/build/cjs/components/Checkbox/Checkbox.d.ts +38 -12
  21. package/build/cjs/components/Checkbox/Checkbox.js +37 -70
  22. package/build/cjs/components/DnaLogo/DnaLogo.d.ts +37 -40
  23. package/build/cjs/components/Footer/Components/FooterComponents.js +3 -2
  24. package/build/cjs/components/Helper/Helper.js +2 -1
  25. package/build/cjs/components/Icon/Icon.d.ts +39 -30
  26. package/build/cjs/components/Icon/Icons.d.ts +1 -4
  27. package/build/cjs/components/Icon/Icons.js +3 -7
  28. package/build/cjs/components/Input/Input.d.ts +102 -13
  29. package/build/cjs/components/Input/Input.js +57 -58
  30. package/build/cjs/components/Label/Label.js +2 -3
  31. package/build/cjs/components/LabelText/LabelText.d.ts +38 -30
  32. package/build/cjs/components/LabelText/LabelText.js +1 -1
  33. package/build/cjs/components/MainNavigation/ChildComponents/BusinessMenu.js +4 -10
  34. package/build/cjs/components/MainNavigation/ChildComponents/DesktopMenu.js +18 -12
  35. package/build/cjs/components/MainNavigation/ChildComponents/HeaderNavigationElements.d.ts +37 -30
  36. package/build/cjs/components/MainNavigation/ChildComponents/LanguageSelector.js +2 -2
  37. package/build/cjs/components/MainNavigation/ChildComponents/LinkModifier.js +2 -2
  38. package/build/cjs/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.d.ts +37 -30
  39. package/build/cjs/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.js +1 -4
  40. package/build/cjs/components/MainNavigation/ChildComponents/MobileMenu.js +1 -1
  41. package/build/cjs/components/MainNavigation/ChildComponents/Ribbon.js +1 -1
  42. package/build/cjs/components/MainNavigation/MainNavigation.js +1 -17
  43. package/build/cjs/components/MainNavigation/globalNavStyles.d.ts +148 -120
  44. package/build/cjs/components/Notification/Notification.d.ts +36 -17
  45. package/build/cjs/components/Notification/Notification.js +25 -48
  46. package/build/cjs/components/NotificationBadge/NotificationBadge.d.ts +37 -30
  47. package/build/cjs/components/NotificationBadge/NotificationBadge.js +1 -1
  48. package/build/cjs/components/PixelLoader/PixelLoaderStyles.d.ts +74 -60
  49. package/build/cjs/components/ProgressIndicator/ProgressIndicator.js +3 -3
  50. package/build/cjs/components/RadioButton/RadioButton.d.ts +33 -17
  51. package/build/cjs/components/RadioButton/RadioButton.js +12 -57
  52. package/build/cjs/components/ReadMore/ReadMore.js +2 -7
  53. package/build/cjs/components/Ribbon/Ribbon.d.ts +57 -0
  54. package/build/cjs/components/Ribbon/Ribbon.js +80 -0
  55. package/build/cjs/components/Search/Search.js +2 -1
  56. package/build/cjs/components/SecondaryNavigation/SecondaryNavigation.js +2 -2
  57. package/build/cjs/components/Selectbox/Selectbox.d.ts +102 -13
  58. package/build/cjs/components/Selectbox/Selectbox.js +40 -49
  59. package/build/cjs/components/Tabs/Tab.d.ts +37 -30
  60. package/build/cjs/components/Tabs/Tab.js +3 -2
  61. package/build/cjs/components/Tabs/Tabs.d.ts +40 -30
  62. package/build/cjs/components/Textarea/Textarea.js +4 -3
  63. package/build/cjs/components/Tooltip/Tooltip.d.ts +37 -30
  64. package/build/cjs/components/TooltipMenu/ChildComponents/TooltipMenuExportedStyles.d.ts +74 -60
  65. package/build/cjs/components/index.d.ts +4 -1
  66. package/build/cjs/hooks/useElementDimensions.d.ts +5 -0
  67. package/build/cjs/hooks/useElementDimensions.js +37 -0
  68. package/build/cjs/index.js +6 -0
  69. package/build/cjs/themes/globalStyles.d.ts +174 -60
  70. package/build/cjs/themes/globalStyles.js +132 -142
  71. package/build/cjs/themes/styled.d.ts +259 -210
  72. package/build/cjs/themes/theme.d.ts +37 -30
  73. package/build/cjs/themes/themeComponents/buttons.d.ts +1 -6
  74. package/build/cjs/themes/themeComponents/buttons.js +1 -6
  75. package/build/cjs/themes/themeComponents/fontFamily.d.ts +3 -1
  76. package/build/cjs/themes/themeComponents/fontFamily.js +3 -1
  77. package/build/cjs/themes/themeComponents/fontSize.d.ts +18 -15
  78. package/build/cjs/themes/themeComponents/fontSize.js +20 -14
  79. package/build/cjs/themes/themeComponents/lineHeight.d.ts +19 -12
  80. package/build/cjs/themes/themeComponents/lineHeight.js +21 -11
  81. package/build/es/components/Accordion/Accordion.d.ts +50 -0
  82. package/build/es/components/Accordion/Accordion.js +44 -0
  83. package/build/es/components/Accordion/AccordionItem.d.ts +30 -0
  84. package/build/es/components/Accordion/AccordionItem.js +68 -0
  85. package/build/es/components/AmountSelector/AmountSelector.js +5 -6
  86. package/build/es/components/Buttons/ButtonBasicStyles.d.ts +37 -30
  87. package/build/es/components/Buttons/ButtonBasicStyles.js +10 -14
  88. package/build/es/components/Buttons/ButtonDefault.js +6 -2
  89. package/build/es/components/Buttons/ButtonIconPrimaryStyles.d.ts +37 -30
  90. package/build/es/components/Buttons/ButtonIconStyles.d.ts +37 -30
  91. package/build/es/components/Buttons/ButtonPrimary.js +6 -2
  92. package/build/es/components/Buttons/ButtonPrimaryStyles.d.ts +37 -30
  93. package/build/es/components/Buttons/ButtonSecondary.js +7 -3
  94. package/build/es/components/Buttons/ButtonSecondaryStyles.d.ts +37 -30
  95. package/build/es/components/Buttons/ButtonTertiary.js +7 -3
  96. package/build/es/components/Buttons/ButtonTertiaryStyles.d.ts +37 -30
  97. package/build/es/components/Buttons/CloseButton.d.ts +37 -30
  98. package/build/es/components/Card/Card.js +4 -2
  99. package/build/es/components/Card/CardRow.js +3 -3
  100. package/build/es/components/Checkbox/Checkbox.d.ts +38 -12
  101. package/build/es/components/Checkbox/Checkbox.js +39 -72
  102. package/build/es/components/DnaLogo/DnaLogo.d.ts +37 -40
  103. package/build/es/components/Footer/Components/FooterComponents.js +3 -2
  104. package/build/es/components/Helper/Helper.js +2 -1
  105. package/build/es/components/Icon/Icon.d.ts +39 -30
  106. package/build/es/components/Icon/Icons.d.ts +1 -4
  107. package/build/es/components/Icon/Icons.js +3 -7
  108. package/build/es/components/Input/Input.d.ts +102 -13
  109. package/build/es/components/Input/Input.js +57 -58
  110. package/build/es/components/Label/Label.js +2 -3
  111. package/build/es/components/LabelText/LabelText.d.ts +38 -30
  112. package/build/es/components/LabelText/LabelText.js +1 -1
  113. package/build/es/components/MainNavigation/ChildComponents/BusinessMenu.js +4 -10
  114. package/build/es/components/MainNavigation/ChildComponents/DesktopMenu.js +18 -12
  115. package/build/es/components/MainNavigation/ChildComponents/HeaderNavigationElements.d.ts +37 -30
  116. package/build/es/components/MainNavigation/ChildComponents/LanguageSelector.js +2 -2
  117. package/build/es/components/MainNavigation/ChildComponents/LinkModifier.js +2 -2
  118. package/build/es/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.d.ts +37 -30
  119. package/build/es/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.js +2 -5
  120. package/build/es/components/MainNavigation/ChildComponents/MobileMenu.js +1 -1
  121. package/build/es/components/MainNavigation/ChildComponents/Ribbon.js +1 -1
  122. package/build/es/components/MainNavigation/MainNavigation.js +2 -17
  123. package/build/es/components/MainNavigation/globalNavStyles.d.ts +148 -120
  124. package/build/es/components/Notification/Notification.d.ts +36 -17
  125. package/build/es/components/Notification/Notification.js +25 -48
  126. package/build/es/components/NotificationBadge/NotificationBadge.d.ts +37 -30
  127. package/build/es/components/NotificationBadge/NotificationBadge.js +1 -1
  128. package/build/es/components/PixelLoader/PixelLoaderStyles.d.ts +74 -60
  129. package/build/es/components/ProgressIndicator/ProgressIndicator.js +3 -3
  130. package/build/es/components/RadioButton/RadioButton.d.ts +33 -17
  131. package/build/es/components/RadioButton/RadioButton.js +12 -57
  132. package/build/es/components/ReadMore/ReadMore.js +2 -7
  133. package/build/es/components/Ribbon/Ribbon.d.ts +57 -0
  134. package/build/es/components/Ribbon/Ribbon.js +71 -0
  135. package/build/es/components/Search/Search.js +2 -1
  136. package/build/es/components/SecondaryNavigation/SecondaryNavigation.js +2 -2
  137. package/build/es/components/Selectbox/Selectbox.d.ts +102 -13
  138. package/build/es/components/Selectbox/Selectbox.js +40 -49
  139. package/build/es/components/Tabs/Tab.d.ts +37 -30
  140. package/build/es/components/Tabs/Tab.js +3 -2
  141. package/build/es/components/Tabs/Tabs.d.ts +40 -30
  142. package/build/es/components/Textarea/Textarea.js +4 -3
  143. package/build/es/components/Tooltip/Tooltip.d.ts +37 -30
  144. package/build/es/components/TooltipMenu/ChildComponents/TooltipMenuExportedStyles.d.ts +74 -60
  145. package/build/es/components/index.d.ts +4 -1
  146. package/build/es/hooks/useElementDimensions.d.ts +5 -0
  147. package/build/es/hooks/useElementDimensions.js +33 -0
  148. package/build/es/index.js +3 -0
  149. package/build/es/themes/globalStyles.d.ts +174 -60
  150. package/build/es/themes/globalStyles.js +134 -145
  151. package/build/es/themes/styled.d.ts +259 -210
  152. package/build/es/themes/theme.d.ts +37 -30
  153. package/build/es/themes/themeComponents/buttons.d.ts +1 -6
  154. package/build/es/themes/themeComponents/buttons.js +1 -6
  155. package/build/es/themes/themeComponents/fontFamily.d.ts +3 -1
  156. package/build/es/themes/themeComponents/fontFamily.js +3 -1
  157. package/build/es/themes/themeComponents/fontSize.d.ts +18 -15
  158. package/build/es/themes/themeComponents/fontSize.js +20 -14
  159. package/build/es/themes/themeComponents/lineHeight.d.ts +19 -12
  160. package/build/es/themes/themeComponents/lineHeight.js +21 -11
  161. 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
- onChange: (selectedItem: SelectboxItem) => void;
14
- /** Allows to pass a custom className */
15
- className?: string;
16
- 'data-testid'?: string;
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
- inputId?: ReactSelectProps['inputId'];
26
+ /**
27
+ * Text of placeholder for the select value
28
+ */
19
29
  placeholder?: ReactSelectProps['placeholder'];
20
- onInputChange?: ReactSelectProps['onInputChange'];
21
- value?: ReactSelectProps['value'];
22
- dropDownIndicator?: DropDownIndicator;
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
- isLoading?: boolean;
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 && props.disabled ? props.theme.color.gray40 : props.theme.color.text};
26
- margin-bottom: ${props => styledUtils.getMultipliedSize(props.theme.base.baseWidth, 1)};
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
- line-height: 1.125rem;
37
- font-size: ${props => props.theme.fontSize.smallFontSize};
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
- const customControlStyles = {
47
- ...borderStyles,
48
- height: styledUtils.getMultipliedSize(theme['default'].base.baseHeight, 4),
49
- borderBottomColor: state.menuIsOpen ? theme['default'].color.white : 'inherit',
50
- '&:hover': {
51
- borderColor: theme['default'].color.gray25,
52
- },
53
- };
54
- return {
55
- ...styles,
56
- ...customControlStyles,
57
- };
58
- },
59
- menu: styles => {
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
- const customOptionStyles = {
75
- display: 'flex',
76
- justifyContent: 'space-between',
77
- color: theme['default'].color.text,
78
- fontWeight: theme['default'].fontWeight.book,
79
- fontSize: theme['default'].fontSize.defaultFontSize,
80
- backgroundColor: theme['default'].color.white,
81
- textOverflow: 'ellipsis',
82
- whiteSpace: 'pre-wrap',
83
- overflow: 'hidden',
84
- '&:hover': {
85
- backgroundColor: theme['default'].color.hotPink,
86
- color: theme['default'].color.white,
87
- },
88
- };
89
- return { ...styles, ...customOptionStyles };
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, { disabled: isDisabled, error: error },
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
- buttonBorderWidth: string;
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
- baseFontFamily: string;
57
+ default: string;
58
+ heading: string;
59
+ numerals: string;
63
60
  };
64
61
  fontSize: {
65
- defaultFontSize: string;
66
- smallFontSize: string;
67
- extraSmallFontSize: string;
68
- xsFontSize: string;
69
- xxsFontSize: string;
70
- h1FontSize: string;
71
- h2FontSize: string;
72
- h2MobileFontSize: string;
73
- h3FontSize: string;
74
- h4FontSize: string;
75
- h5FontSize: string;
76
- heroBannerTitleFontSize: string;
77
- heroBannerTitleMobileFontSize: string;
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
- defaultLineHeight: string;
94
- paragraphLineHeight: string;
95
- heroBannerLineHeight: string;
96
- heroBannerMobileLineHeight: string;
97
- h1LineHeight: string;
98
- h2LineHeight: string;
99
- h2MobileLineHeight: string;
100
- h3LineHeight: string;
101
- h4LineHeight: string;
102
- h5LineHeight: string;
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.defaultFontSize};
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.h4FontSize};
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
- buttonBorderWidth: string;
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
- baseFontFamily: string;
76
+ default: string;
77
+ heading: string;
78
+ numerals: string;
82
79
  };
83
80
  fontSize: {
84
- defaultFontSize: string;
85
- smallFontSize: string;
86
- extraSmallFontSize: string;
87
- xsFontSize: string;
88
- xxsFontSize: string;
89
- h1FontSize: string;
90
- h2FontSize: string;
91
- h2MobileFontSize: string;
92
- h3FontSize: string;
93
- h4FontSize: string;
94
- h5FontSize: string;
95
- heroBannerTitleFontSize: string;
96
- heroBannerTitleMobileFontSize: string;
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
- defaultLineHeight: string;
113
- paragraphLineHeight: string;
114
- heroBannerLineHeight: string;
115
- heroBannerMobileLineHeight: string;
116
- h1LineHeight: string;
117
- h2LineHeight: string; /**
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
- h2MobileLineHeight: string;
126
- h3LineHeight: string;
127
- h4LineHeight: string;
128
- h5LineHeight: string;
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.baseFontFamily};
18
- font-size: ${props => props.theme.fontSize.defaultFontSize};
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.smallFontSize};
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
- buttonBorderWidth: string;
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
- baseFontFamily: string;
52
+ default: string;
53
+ heading: string; /** Allows to pass a custom className */
54
+ numerals: string;
58
55
  };
59
56
  fontSize: {
60
- defaultFontSize: string;
61
- smallFontSize: string;
62
- extraSmallFontSize: string;
63
- xsFontSize: string;
64
- xxsFontSize: string;
65
- h1FontSize: string;
66
- h2FontSize: string;
67
- h2MobileFontSize: string;
68
- h3FontSize: string;
69
- h4FontSize: string;
70
- h5FontSize: string;
71
- heroBannerTitleFontSize: string;
72
- heroBannerTitleMobileFontSize: string;
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
- defaultLineHeight: string;
89
- paragraphLineHeight: string;
90
- heroBannerLineHeight: string;
91
- heroBannerMobileLineHeight: string;
92
- h1LineHeight: string;
93
- h2LineHeight: string;
94
- h2MobileLineHeight: string;
95
- h3LineHeight: string;
96
- h4LineHeight: string;
97
- h5LineHeight: string;
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
  }, {