@dxc-technology/halstack-react 0.0.0-9bd9511 → 0.0.0-9c20370

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 (213) hide show
  1. package/BackgroundColorContext.d.ts +3 -3
  2. package/BackgroundColorContext.js +12 -2
  3. package/HalstackContext.d.ts +1330 -7
  4. package/HalstackContext.js +84 -67
  5. package/accordion/Accordion.d.ts +1 -1
  6. package/accordion/Accordion.js +74 -55
  7. package/accordion/Accordion.stories.tsx +3 -101
  8. package/accordion/Accordion.test.js +34 -19
  9. package/accordion/types.d.ts +4 -16
  10. package/accordion-group/AccordionGroup.d.ts +4 -3
  11. package/accordion-group/AccordionGroup.js +49 -42
  12. package/accordion-group/AccordionGroup.stories.tsx +77 -76
  13. package/accordion-group/AccordionGroup.test.js +62 -54
  14. package/accordion-group/AccordionGroupAccordion.d.ts +4 -0
  15. package/accordion-group/AccordionGroupAccordion.js +43 -0
  16. package/accordion-group/types.d.ts +6 -18
  17. package/alert/Alert.js +47 -20
  18. package/alert/Alert.test.js +46 -29
  19. package/alert/types.d.ts +3 -3
  20. package/badge/Badge.js +14 -2
  21. package/badge/types.d.ts +1 -1
  22. package/bleed/Bleed.js +21 -13
  23. package/bleed/Bleed.stories.tsx +1 -0
  24. package/bleed/types.d.ts +2 -2
  25. package/box/Box.d.ts +1 -1
  26. package/box/Box.js +33 -33
  27. package/box/Box.stories.tsx +25 -53
  28. package/box/Box.test.js +7 -2
  29. package/box/types.d.ts +3 -15
  30. package/bulleted-list/BulletedList.js +36 -9
  31. package/bulleted-list/BulletedList.stories.tsx +7 -1
  32. package/bulleted-list/types.d.ts +32 -5
  33. package/button/Button.d.ts +1 -1
  34. package/button/Button.js +83 -71
  35. package/button/Button.stories.tsx +4 -4
  36. package/button/Button.test.js +28 -8
  37. package/button/types.d.ts +8 -4
  38. package/card/Card.d.ts +1 -1
  39. package/card/Card.js +67 -62
  40. package/card/Card.stories.tsx +12 -42
  41. package/card/Card.test.js +22 -11
  42. package/card/types.d.ts +4 -10
  43. package/checkbox/Checkbox.js +71 -27
  44. package/checkbox/Checkbox.test.js +60 -33
  45. package/checkbox/types.d.ts +4 -4
  46. package/chip/Chip.js +51 -48
  47. package/chip/Chip.stories.tsx +25 -17
  48. package/chip/Chip.test.js +29 -17
  49. package/chip/types.d.ts +4 -4
  50. package/common/OpenSans.css +68 -80
  51. package/common/coreTokens.d.ts +146 -0
  52. package/common/coreTokens.js +167 -0
  53. package/common/utils.d.ts +1 -0
  54. package/common/utils.js +8 -3
  55. package/common/variables.d.ts +226 -175
  56. package/common/variables.js +956 -1133
  57. package/date-input/Calendar.js +55 -12
  58. package/date-input/DateInput.js +82 -35
  59. package/date-input/DateInput.test.js +351 -164
  60. package/date-input/DatePicker.js +38 -8
  61. package/date-input/Icons.js +12 -0
  62. package/date-input/YearPicker.js +30 -5
  63. package/date-input/types.d.ts +7 -7
  64. package/dialog/Dialog.d.ts +1 -1
  65. package/dialog/Dialog.js +83 -86
  66. package/dialog/Dialog.stories.tsx +127 -221
  67. package/dialog/Dialog.test.js +331 -18
  68. package/dialog/types.d.ts +1 -14
  69. package/dropdown/Dropdown.js +86 -32
  70. package/dropdown/Dropdown.test.js +211 -104
  71. package/dropdown/DropdownMenu.js +22 -8
  72. package/dropdown/DropdownMenuItem.js +15 -6
  73. package/dropdown/types.d.ts +8 -8
  74. package/file-input/FileInput.js +218 -134
  75. package/file-input/FileInput.test.js +343 -331
  76. package/file-input/FileItem.js +39 -12
  77. package/file-input/types.d.ts +10 -10
  78. package/flex/Flex.js +39 -25
  79. package/flex/Flex.stories.tsx +35 -26
  80. package/flex/types.d.ts +74 -9
  81. package/footer/Footer.d.ts +1 -1
  82. package/footer/Footer.js +80 -68
  83. package/footer/Footer.stories.tsx +12 -89
  84. package/footer/Footer.test.js +47 -40
  85. package/footer/Icons.js +4 -0
  86. package/footer/types.d.ts +15 -17
  87. package/grid/Grid.d.ts +7 -0
  88. package/grid/Grid.js +91 -0
  89. package/grid/Grid.stories.tsx +219 -0
  90. package/grid/types.d.ts +115 -0
  91. package/header/Header.d.ts +4 -3
  92. package/header/Header.js +72 -55
  93. package/header/Header.stories.tsx +7 -71
  94. package/header/Header.test.js +26 -13
  95. package/header/Icons.js +4 -0
  96. package/header/types.d.ts +2 -16
  97. package/heading/Heading.js +28 -7
  98. package/heading/Heading.test.js +88 -71
  99. package/heading/types.d.ts +3 -3
  100. package/inset/Inset.js +21 -13
  101. package/inset/Inset.stories.tsx +2 -1
  102. package/inset/types.d.ts +2 -2
  103. package/layout/ApplicationLayout.d.ts +5 -5
  104. package/layout/ApplicationLayout.js +57 -15
  105. package/layout/Icons.js +10 -0
  106. package/layout/SidenavContext.d.ts +1 -1
  107. package/layout/SidenavContext.js +4 -0
  108. package/layout/types.d.ts +5 -6
  109. package/link/Link.js +41 -21
  110. package/link/Link.test.js +42 -26
  111. package/link/types.d.ts +4 -4
  112. package/main.d.ts +2 -1
  113. package/main.js +55 -0
  114. package/nav-tabs/NavTabs.d.ts +2 -2
  115. package/nav-tabs/NavTabs.js +43 -16
  116. package/nav-tabs/NavTabs.stories.tsx +14 -0
  117. package/nav-tabs/NavTabs.test.js +44 -37
  118. package/nav-tabs/Tab.js +71 -45
  119. package/nav-tabs/types.d.ts +10 -11
  120. package/number-input/NumberInput.js +30 -20
  121. package/number-input/NumberInput.test.js +249 -113
  122. package/number-input/NumberInputContext.js +5 -0
  123. package/number-input/numberInputContextTypes.d.ts +1 -1
  124. package/number-input/types.d.ts +4 -4
  125. package/package.json +7 -7
  126. package/paginator/Icons.js +10 -0
  127. package/paginator/Paginator.js +39 -17
  128. package/paginator/Paginator.test.js +156 -104
  129. package/paginator/types.d.ts +1 -1
  130. package/paragraph/Paragraph.d.ts +3 -4
  131. package/paragraph/Paragraph.js +18 -8
  132. package/password-input/PasswordInput.js +51 -22
  133. package/password-input/PasswordInput.test.js +94 -51
  134. package/password-input/types.d.ts +4 -4
  135. package/progress-bar/ProgressBar.d.ts +2 -2
  136. package/progress-bar/ProgressBar.js +39 -14
  137. package/progress-bar/ProgressBar.test.js +53 -36
  138. package/progress-bar/types.d.ts +4 -3
  139. package/quick-nav/QuickNav.js +24 -2
  140. package/quick-nav/types.d.ts +2 -2
  141. package/radio-group/Radio.js +53 -22
  142. package/radio-group/RadioGroup.js +84 -41
  143. package/radio-group/RadioGroup.test.js +288 -186
  144. package/radio-group/types.d.ts +4 -4
  145. package/resultsetTable/Icons.js +3 -0
  146. package/resultsetTable/ResultsetTable.js +56 -21
  147. package/resultsetTable/ResultsetTable.test.js +75 -42
  148. package/resultsetTable/types.d.ts +5 -5
  149. package/select/Icons.js +3 -0
  150. package/select/Listbox.js +35 -10
  151. package/select/Option.js +24 -8
  152. package/select/Select.js +143 -56
  153. package/select/Select.test.js +839 -456
  154. package/select/types.d.ts +12 -12
  155. package/sidenav/Icons.d.ts +7 -0
  156. package/sidenav/Icons.js +51 -0
  157. package/sidenav/Sidenav.d.ts +2 -2
  158. package/sidenav/Sidenav.js +116 -104
  159. package/sidenav/Sidenav.stories.tsx +60 -60
  160. package/sidenav/Sidenav.test.js +10 -3
  161. package/sidenav/types.d.ts +26 -23
  162. package/slider/Slider.js +84 -38
  163. package/slider/Slider.test.js +104 -76
  164. package/slider/types.d.ts +4 -4
  165. package/spinner/Spinner.js +51 -28
  166. package/spinner/Spinner.stories.jsx +28 -28
  167. package/spinner/Spinner.test.js +35 -26
  168. package/spinner/types.d.ts +3 -3
  169. package/switch/Switch.js +66 -24
  170. package/switch/Switch.test.js +97 -52
  171. package/switch/types.d.ts +4 -4
  172. package/table/Table.js +22 -4
  173. package/table/Table.test.js +7 -2
  174. package/table/types.d.ts +3 -3
  175. package/tabs/Tab.js +39 -22
  176. package/tabs/Tabs.js +131 -62
  177. package/tabs/Tabs.test.js +122 -67
  178. package/tabs/types.d.ts +8 -8
  179. package/tag/Tag.js +54 -27
  180. package/tag/Tag.test.js +31 -20
  181. package/tag/types.d.ts +7 -7
  182. package/text-input/Icons.js +3 -0
  183. package/text-input/Suggestion.js +24 -8
  184. package/text-input/Suggestions.js +36 -11
  185. package/text-input/TextInput.js +144 -59
  186. package/text-input/TextInput.stories.tsx +1 -1
  187. package/text-input/TextInput.test.js +858 -539
  188. package/text-input/types.d.ts +9 -9
  189. package/textarea/Textarea.js +73 -38
  190. package/textarea/Textarea.test.js +173 -98
  191. package/textarea/types.d.ts +4 -4
  192. package/toggle-group/ToggleGroup.d.ts +2 -2
  193. package/toggle-group/ToggleGroup.js +59 -21
  194. package/toggle-group/ToggleGroup.test.js +72 -40
  195. package/toggle-group/types.d.ts +11 -11
  196. package/typography/Typography.d.ts +2 -2
  197. package/typography/Typography.js +23 -110
  198. package/typography/Typography.stories.tsx +1 -1
  199. package/typography/types.d.ts +1 -1
  200. package/useTheme.d.ts +1234 -1
  201. package/useTheme.js +6 -0
  202. package/useTranslatedLabels.d.ts +84 -2
  203. package/useTranslatedLabels.js +5 -0
  204. package/utils/BaseTypography.d.ts +21 -0
  205. package/utils/BaseTypography.js +108 -0
  206. package/utils/FocusLock.d.ts +13 -0
  207. package/utils/FocusLock.js +138 -0
  208. package/wizard/Wizard.js +47 -13
  209. package/wizard/Wizard.test.js +81 -54
  210. package/wizard/types.d.ts +7 -8
  211. package/card/ice-cream.jpg +0 -0
  212. package/translatedLabelsType.d.ts +0 -82
  213. /package/{translatedLabelsType.js → grid/types.js} +0 -0
@@ -0,0 +1,167 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var CORE_TOKENS = {
8
+ inherit: "inherit",
9
+ // Color
10
+ // Absolutes
11
+ color_black: "#000000",
12
+ color_white: "#ffffff",
13
+ color_transparent: "transparent",
14
+ // Greyscale
15
+ // Solid variants
16
+ color_grey_50: "#fafafa",
17
+ color_grey_100: "#f2f2f2",
18
+ color_grey_200: "#e6e6e6",
19
+ color_grey_300: "#cccccc",
20
+ color_grey_400: "#bfbfbf",
21
+ color_grey_500: "#999999",
22
+ color_grey_600: "#808080",
23
+ color_grey_700: "#666666",
24
+ color_grey_800: "#4d4d4d",
25
+ color_grey_900: "#333333",
26
+ // Transparent variants
27
+ color_grey_50_a: "#00000005",
28
+ color_grey_100_a: "#0000000d",
29
+ color_grey_200_a: "#0000001a",
30
+ color_grey_300_a: "#00000033",
31
+ color_grey_400_a: "#0000004d",
32
+ color_grey_500_a: "#00000066",
33
+ color_grey_600_a: "#00000080",
34
+ color_grey_700_a: "#00000099",
35
+ color_grey_800_a: "#000000b3",
36
+ color_grey_900_a: "#000000cc",
37
+ // Purple
38
+ color_purple_50: "#faf7fd",
39
+ color_purple_100: "#f2eafa",
40
+ color_purple_200: "#e5d5f6",
41
+ color_purple_300: "#cbacec",
42
+ color_purple_400: "#b182e3",
43
+ color_purple_500: "#a46ede",
44
+ color_purple_600: "#7d2fd0",
45
+ color_purple_700: "#5f249f",
46
+ color_purple_800: "#4b1c7d",
47
+ color_purple_900: "#321353",
48
+ // Blue
49
+ color_blue_50: "#f5fbff",
50
+ color_blue_100: "#e6f4ff",
51
+ color_blue_200: "#cceaff",
52
+ color_blue_300: "#99d5ff",
53
+ color_blue_400: "#66bfff",
54
+ color_blue_500: "#33aaff",
55
+ color_blue_600: "#0095ff",
56
+ color_blue_700: "#0086e6",
57
+ color_blue_800: "#0067b3",
58
+ color_blue_900: "#003c66",
59
+ // Red
60
+ color_red_50: "#fff5f6",
61
+ color_red_100: "#ffe6e9",
62
+ color_red_200: "#ffccd3",
63
+ color_red_300: "#fe9aa7",
64
+ color_red_400: "#fe677b",
65
+ color_red_500: "#fe344f",
66
+ color_red_600: "#fe0123",
67
+ color_red_700: "#d0011b",
68
+ color_red_800: "#980115",
69
+ color_red_900: "#65010e",
70
+ // Green
71
+ color_green_50: "#f7fdf9",
72
+ color_green_100: "#eafaef",
73
+ color_green_200: "#d5f6df",
74
+ color_green_300: "#acecbe",
75
+ color_green_400: "#82e39e",
76
+ color_green_500: "#59d97d",
77
+ color_green_600: "#2fd05d",
78
+ color_green_700: "#24a148",
79
+ color_green_800: "#1c7d38",
80
+ color_green_900: "#135325",
81
+ // Yellow
82
+ color_yellow_50: "#fffdf5",
83
+ color_yellow_100: "#fef9e6",
84
+ color_yellow_200: "#fdf4ce",
85
+ color_yellow_300: "#fbe89d",
86
+ color_yellow_400: "#fadd6b",
87
+ color_yellow_500: "#f7cf2b",
88
+ color_yellow_600: "#f6c709",
89
+ color_yellow_700: "#c59f07",
90
+ color_yellow_800: "#947705",
91
+ color_yellow_900: "#624f04",
92
+ // Orange
93
+ color_orange_50: "#fefaf5",
94
+ color_orange_100: "#fef3e7",
95
+ color_orange_200: "#fce7cf",
96
+ color_orange_300: "#facf9e",
97
+ color_orange_400: "#f7b76e",
98
+ color_orange_500: "#f59f3d",
99
+ color_orange_600: "#f38f20",
100
+ color_orange_700: "#c26c0a",
101
+ color_orange_800: "#915108",
102
+ color_orange_900: "#613605",
103
+ // Typography
104
+ type_sans: "Open Sans, sans-serif",
105
+ type_scale_root: "16px",
106
+ type_scale_08: "3.75rem",
107
+ type_scale_07: "2.5rem",
108
+ type_scale_06: "2rem",
109
+ type_scale_05: "1.5rem",
110
+ type_scale_04: "1.25rem",
111
+ type_scale_03: "1rem",
112
+ type_scale_02: "0.875rem",
113
+ type_scale_01: "0.75rem",
114
+ type_light: "300",
115
+ type_regular: "400",
116
+ type_semibold: "600",
117
+ type_bold: "bold",
118
+ type_italic: "italic",
119
+ type_normal: "normal",
120
+ type_spacing_tight_02: "-0.05em",
121
+ type_spacing_tight_01: "-0.025em",
122
+ type_spacing_normal: "0em",
123
+ type_spacing_wide_01: "0.025em",
124
+ type_spacing_wide_02: "0.05em",
125
+ type_spacing_wide_03: "0.1em",
126
+ type_initial: "initial",
127
+ type_uppercase: "uppercase",
128
+ type_no_line: "none",
129
+ type_underline: "underline",
130
+ type_line_through: "line-through",
131
+ type_leading_compact_03: "1em",
132
+ type_leading_compact_02: "1.25em",
133
+ type_leading_compact_01: "1.365em",
134
+ type_leading_normal: "1.5em",
135
+ type_leading_loose_01: "1.715em",
136
+ type_leading_loose_02: "2em",
137
+ // Spacing
138
+ spacing_0: "0rem",
139
+ spacing_2: "0.125rem",
140
+ spacing_4: "0.25rem",
141
+ spacing_8: "0.5rem",
142
+ spacing_12: "0.75rem",
143
+ spacing_16: "1rem",
144
+ spacing_24: "1.5rem",
145
+ spacing_32: "2rem",
146
+ spacing_40: "2.5rem",
147
+ spacing_48: "3rem",
148
+ spacing_56: "3.5rem",
149
+ spacing_64: "4rem",
150
+ spacing_80: "5rem",
151
+ spacing_96: "6rem",
152
+ spacing_112: "7rem",
153
+ // Border
154
+ border_width_0: "0px",
155
+ border_width_1: "1px",
156
+ border_width_2: "2px",
157
+ border_width_4: "4px",
158
+ border_radius_none: "0rem",
159
+ border_radius_small: "0.125rem",
160
+ border_radius_medium: "0.25rem",
161
+ border_radius_large: "0.375rem",
162
+ border_solid: "solid",
163
+ border_dashed: "dashed",
164
+ border_none: "none"
165
+ };
166
+ var _default = CORE_TOKENS;
167
+ exports["default"] = _default;
@@ -0,0 +1 @@
1
+ export declare const getMargin: (marginProp: string | object, side: string) => any;
package/common/utils.js CHANGED
@@ -1,17 +1,22 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
8
  exports.getMargin = void 0;
9
+
8
10
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
11
+
9
12
  var _variables = require("./variables");
13
+
10
14
  var getMargin = function getMargin(marginProp, side) {
11
15
  if (marginProp && (0, _typeof2["default"])(marginProp) === "object") {
12
16
  return marginProp[side] && _variables.spaces[marginProp[side]] || "0px";
13
- } else {
14
- return marginProp && _variables.spaces[marginProp] || "0px";
15
- }
17
+ } else if (marginProp && typeof marginProp === "string") {
18
+ return _variables.spaces[marginProp];
19
+ } else return "0px";
16
20
  };
21
+
17
22
  exports.getMargin = getMargin;
@@ -1,147 +1,3 @@
1
- import TranslatedLabelsContextTypes from "../translatedLabelsType";
2
- export declare const globalTokens: {
3
- inherit: string;
4
- transparent: string;
5
- hal_white: string;
6
- hal_grey_l_95: string;
7
- hal_grey_l_90: string;
8
- hal_grey_l_80: string;
9
- hal_grey_l_75: string;
10
- hal_grey_l_60: string;
11
- hal_grey_s_40: string;
12
- hal_black: string;
13
- color_grey_800: string;
14
- color_grey_600: string;
15
- color_grey_50: string;
16
- color_grey_a_100: string;
17
- color_grey_a_200: string;
18
- color_grey_a_300: string;
19
- color_grey_a_800: string;
20
- color_grey_a_900: string;
21
- hal_purple_l_95: string;
22
- hal_purple_l_90: string;
23
- hal_purple_l_65: string;
24
- hal_purple_s_38: string;
25
- hal_purple_d_30: string;
26
- hal_purple_d_20: string;
27
- hal_purple_d_70: string;
28
- color_purple_600: string;
29
- color_purple_300: string;
30
- hal_blue_l_95: string;
31
- hal_blue_l_80: string;
32
- hal_blue_l_50: string;
33
- hal_blue_l_45: string;
34
- hal_blue_s_35: string;
35
- hal_blue_d_20: string;
36
- color_blue_200: string;
37
- color_blue_500: string;
38
- color_blue_50: string;
39
- hal_red_l_95: string;
40
- hal_red_l_80: string;
41
- hal_red_l_60: string;
42
- hal_red_s_41: string;
43
- hal_red_d_30: string;
44
- hal_red_d_20: string;
45
- color_red_700: string;
46
- color_red_50: string;
47
- color_red_600: string;
48
- hal_green_l_95: string;
49
- hal_green_l_80: string;
50
- hal_green_s_39: string;
51
- hal_green_d_30: string;
52
- hal_green_d_20: string;
53
- hal_yellow_l_95: string;
54
- hal_yellow_l_80: string;
55
- hal_yellow_s_57: string;
56
- hal_yellow_d_40: string;
57
- hal_yellow_d_30: string;
58
- hal_orange_s_54: string;
59
- lightBlack: string;
60
- yellow: string;
61
- lightGrey: string;
62
- lightRed: string;
63
- lightBlue: string;
64
- lightYellow: string;
65
- lightPink: string;
66
- lightGreen: string;
67
- blue: string;
68
- lighterGrey: string;
69
- violet: string;
70
- darkBlue: string;
71
- purple: string;
72
- mediumPurple: string;
73
- lightPurple: string;
74
- lighterPurple: string;
75
- mediumWhite: string;
76
- softBlue: string;
77
- darkWhite: string;
78
- lighterBlack: string;
79
- mediumBlack: string;
80
- mediumGreyBlack: string;
81
- softGrey: string;
82
- softBlack: string;
83
- type_sans: string;
84
- type_scale_root: string;
85
- type_scale_08: string;
86
- type_scale_07: string;
87
- type_scale_06: string;
88
- type_scale_05: string;
89
- type_scale_04: string;
90
- type_scale_03: string;
91
- type_scale_02: string;
92
- type_scale_01: string;
93
- type_light: string;
94
- type_regular: string;
95
- type_semibold: string;
96
- type_bold: string;
97
- type_italic: string;
98
- type_normal: string;
99
- type_spacing_tight_02: string;
100
- type_spacing_tight_01: string;
101
- type_spacing_normal: string;
102
- type_spacing_wide_01: string;
103
- type_spacing_wide_02: string;
104
- type_spacing_wide_03: string;
105
- type_initial: string;
106
- type_uppercase: string;
107
- type_no_line: string;
108
- type_underline: string;
109
- type_line_through: string;
110
- type_leading_compact_03: string;
111
- type_leading_compact_02: string;
112
- type_leading_compact_01: string;
113
- type_leading_normal: string;
114
- type_leading_loose_01: string;
115
- type_leading_loose_02: string;
116
- fontSize10: string;
117
- spacing_00: string;
118
- spacing_01: string;
119
- spacing_02: string;
120
- spacing_03: string;
121
- spacing_04: string;
122
- spacing_05: string;
123
- spacing_06: string;
124
- spacing_07: string;
125
- spacing_08: string;
126
- spacing_09: string;
127
- spacing_10: string;
128
- spacing_11: string;
129
- spacing_12: string;
130
- spacing_13: string;
131
- spacing_14: string;
132
- border_width_0: string;
133
- border_width_1: string;
134
- border_width_2: string;
135
- border_width_4: string;
136
- border_radius_none: string;
137
- border_radius_small: string;
138
- border_radius_medium: string;
139
- border_radius_large: string;
140
- border_radius_full: string;
141
- border_solid: string;
142
- border_dashed: string;
143
- border_none: string;
144
- };
145
1
  export declare const componentTokens: {
146
2
  accordion: {
147
3
  backgroundColor: string;
@@ -231,7 +87,6 @@ export declare const componentTokens: {
231
87
  };
232
88
  box: {
233
89
  backgroundColor: string;
234
- letterSpacing: string;
235
90
  borderRadius: string;
236
91
  borderThickness: string;
237
92
  borderStyle: string;
@@ -439,9 +294,6 @@ export declare const componentTokens: {
439
294
  boxShadowOffsetY: string;
440
295
  boxShadowBlur: string;
441
296
  boxShadowColor: string;
442
- fontFamily: string;
443
- fontSize: string;
444
- fontWeight: string;
445
297
  };
446
298
  dropdown: {
447
299
  buttonBackgroundColor: string;
@@ -647,7 +499,7 @@ export declare const componentTokens: {
647
499
  underlineSpacing: string;
648
500
  underlineStyle: string;
649
501
  underlineThickness: string;
650
- disabledColor: string;
502
+ disabledFontColor: string;
651
503
  hoverFontColor: string;
652
504
  hoverUnderlineColor: string;
653
505
  visitedFontColor: string;
@@ -1380,6 +1232,153 @@ export declare const componentTokens: {
1380
1232
  focusColor: string;
1381
1233
  };
1382
1234
  };
1235
+ export declare type AdvancedTheme = typeof componentTokens;
1236
+ export declare type OpinionatedTheme = {
1237
+ accordion: {
1238
+ accentColor: string;
1239
+ titleFontColor: string;
1240
+ assistiveTextFontColor: string;
1241
+ };
1242
+ alert: {
1243
+ baseColor: string;
1244
+ accentColor: string;
1245
+ overlayColor: string;
1246
+ };
1247
+ box: {
1248
+ baseColor: string;
1249
+ };
1250
+ button: {
1251
+ baseColor: string;
1252
+ primaryFontColor: string;
1253
+ secondaryHoverFontColor: string;
1254
+ };
1255
+ checkbox: {
1256
+ baseColor: string;
1257
+ checkColor: string;
1258
+ fontColor: string;
1259
+ };
1260
+ chip: {
1261
+ baseColor: string;
1262
+ fontColor: string;
1263
+ iconColor: string;
1264
+ };
1265
+ dateInput: {
1266
+ baseColor: string;
1267
+ selectedFontColor: string;
1268
+ };
1269
+ dialog: {
1270
+ baseColor: string;
1271
+ closeIconColor: string;
1272
+ overlayColor: string;
1273
+ };
1274
+ dropdown: {
1275
+ baseColor: string;
1276
+ fontColor: string;
1277
+ optionFontColor: string;
1278
+ };
1279
+ fileInput: {
1280
+ fontColor: string;
1281
+ };
1282
+ footer: {
1283
+ baseColor: string;
1284
+ fontColor: string;
1285
+ accentColor: string;
1286
+ logo: string;
1287
+ };
1288
+ header: {
1289
+ baseColor: string;
1290
+ accentColor: string;
1291
+ fontColor: string;
1292
+ menuBaseColor: string;
1293
+ hamburguerColor: string;
1294
+ logo: string;
1295
+ logoResponsive: string;
1296
+ contentColor: string;
1297
+ overlayColor: string;
1298
+ };
1299
+ link: {
1300
+ baseColor: string;
1301
+ };
1302
+ navTabs: {
1303
+ baseColor: string;
1304
+ accentColor: string;
1305
+ };
1306
+ paginator: {
1307
+ baseColor: string;
1308
+ fontColor: string;
1309
+ };
1310
+ progressBar: {
1311
+ accentColor: string;
1312
+ baseColor: string;
1313
+ fontColor: string;
1314
+ overlayColor: string;
1315
+ overlayFontColor: string;
1316
+ };
1317
+ quickNav: {
1318
+ fontColor: string;
1319
+ accentColor: string;
1320
+ };
1321
+ radioGroup: {
1322
+ baseColor: string;
1323
+ fontColor: string;
1324
+ };
1325
+ select: {
1326
+ selectedOptionBackgroundColor: string;
1327
+ fontColor: string;
1328
+ optionFontColor: string;
1329
+ hoverBorderColor: string;
1330
+ };
1331
+ sidenav: {
1332
+ baseColor: string;
1333
+ };
1334
+ slider: {
1335
+ baseColor: string;
1336
+ fontColor: string;
1337
+ totalLineColor: string;
1338
+ };
1339
+ spinner: {
1340
+ accentColor: string;
1341
+ baseColor: string;
1342
+ fontColor: string;
1343
+ overlayColor: string;
1344
+ overlayFontColor: string;
1345
+ };
1346
+ switch: {
1347
+ checkedBaseColor: string;
1348
+ fontColor: string;
1349
+ };
1350
+ table: {
1351
+ baseColor: string;
1352
+ headerFontColor: string;
1353
+ cellFontColor: string;
1354
+ };
1355
+ tabs: {
1356
+ baseColor: string;
1357
+ };
1358
+ tag: {
1359
+ fontColor: string;
1360
+ iconColor: string;
1361
+ };
1362
+ textarea: {
1363
+ fontColor: string;
1364
+ hoverBorderColor: string;
1365
+ };
1366
+ textInput: {
1367
+ fontColor: string;
1368
+ hoverBorderColor: string;
1369
+ };
1370
+ toggleGroup: {
1371
+ selectedBaseColor: string;
1372
+ selectedFontColor: string;
1373
+ unselectedBaseColor: string;
1374
+ unselectedFontColor: string;
1375
+ };
1376
+ wizard: {
1377
+ baseColor: string;
1378
+ fontColor: string;
1379
+ selectedStepFontColor: string;
1380
+ };
1381
+ };
1383
1382
  export declare const spaces: {
1384
1383
  xxsmall: string;
1385
1384
  xsmall: string;
@@ -1396,36 +1395,88 @@ export declare const responsiveSizes: {
1396
1395
  large: string;
1397
1396
  xlarge: string;
1398
1397
  };
1399
- export declare const typeface: {
1400
- body: {
1401
- fontSize: string;
1402
- letterSpacing: string;
1403
- textTransform: string;
1398
+ export declare const defaultTranslatedComponentLabels: {
1399
+ formFields: {
1400
+ optionalLabel: string;
1401
+ requiredSelectionErrorMessage: string;
1402
+ requiredValueErrorMessage: string;
1403
+ formatRequestedErrorMessage: string;
1404
+ lengthErrorMessage: (minLength?: number, maxLength?: number) => string;
1405
+ logoAlternativeText: string;
1404
1406
  };
1405
- altBody: {
1406
- fontSize: string;
1407
- letterSpacing: string;
1408
- textTransform: string;
1407
+ applicationLayout: {
1408
+ visibilityToggleTitle: string;
1409
1409
  };
1410
- subtitle: {
1411
- fontSize: string;
1412
- letterSpacing: string;
1413
- textTransform: string;
1410
+ alert: {
1411
+ infoTitleText: string;
1412
+ successTitleText: string;
1413
+ warningTitleText: string;
1414
+ errorTitleText: string;
1414
1415
  };
1415
- altSubtitle: {
1416
- fontSize: string;
1417
- letterSpacing: string;
1418
- textTransform: string;
1416
+ dateInput: {
1417
+ invalidDateErrorMessage: string;
1419
1418
  };
1420
- caption: {
1421
- fontSize: string;
1422
- letterSpacing: string;
1423
- textTransform: string;
1419
+ dialog: {
1420
+ closeIconAriaLabel: string;
1424
1421
  };
1425
- overline: {
1426
- fontSize: string;
1427
- letterSpacing: string;
1428
- textTransform: string;
1422
+ fileInput: {
1423
+ fileSizeGreaterThanErrorMessage: string;
1424
+ fileSizeLessThanErrorMessage: string;
1425
+ multipleButtonLabelDefault: string;
1426
+ singleButtonLabelDefault: string;
1427
+ dropAreaButtonLabelDefault: string;
1428
+ multipleDropAreaLabelDefault: string;
1429
+ singleDropAreaLabelDefault: string;
1430
+ deleteFileActionTitle: string;
1431
+ };
1432
+ footer: {
1433
+ copyrightText: (year: number) => string;
1434
+ };
1435
+ header: {
1436
+ closeIcon: string;
1437
+ hamburguerTitle: string;
1438
+ };
1439
+ numberInput: {
1440
+ valueGreaterThanOrEqualToErrorMessage: (value: number) => string;
1441
+ valueLessThanOrEqualToErrorMessage: (value: number) => string;
1442
+ decrementValueTitle: string;
1443
+ incrementValueTitle: string;
1444
+ };
1445
+ paginator: {
1446
+ itemsPerPageText: string;
1447
+ minToMaxOfText: (minNumberOfItems: number, maxNumberOfItems: number, totalItems: number) => string;
1448
+ goToPageText: string;
1449
+ pageOfText: (pageNumber: number, totalPagesNumber: number) => string;
1450
+ };
1451
+ passwordInput: {
1452
+ inputShowPasswordTitle: string;
1453
+ inputHidePasswordTitle: string;
1454
+ };
1455
+ quickNav: {
1456
+ contentTitle: string;
1457
+ };
1458
+ radioGroup: {
1459
+ optionalItemLabelDefault: string;
1460
+ };
1461
+ select: {
1462
+ noMatchesErrorMessage: string;
1463
+ actionClearSelectionTitle: string;
1464
+ actionClearSearchTitle: string;
1465
+ };
1466
+ tabs: {
1467
+ scrollLeft: string;
1468
+ scrollRight: string;
1469
+ };
1470
+ textInput: {
1471
+ clearFieldActionTitle: string;
1472
+ searchingMessage: string;
1473
+ fetchingDataErrorMessage: string;
1474
+ };
1475
+ calendar: {
1476
+ daysShort: string[];
1477
+ months: string[];
1478
+ previousMonthTitle: string;
1479
+ nextMonthTitle: string;
1429
1480
  };
1430
1481
  };
1431
- export declare const defaultTranslatedComponentLabels: TranslatedLabelsContextTypes;
1482
+ export declare type TranslatedLabels = typeof defaultTranslatedComponentLabels;