carbon-react 106.1.2 → 106.1.5

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 (246) hide show
  1. package/esm/__internal__/checkable-input/checkable-input.d.ts +2 -2
  2. package/esm/__internal__/fieldset/fieldset.component.d.ts +45 -15
  3. package/esm/__internal__/form-field/form-field.component.d.ts +14 -0
  4. package/esm/__internal__/form-field/form-field.d.ts +2 -4
  5. package/esm/__internal__/input/input-presentation.style.d.ts +1 -1
  6. package/esm/__internal__/label/label.d.ts +2 -2
  7. package/esm/__internal__/validations/validation-icon.component.d.ts +2 -5
  8. package/esm/__spec_helper__/test-utils.d.ts +1 -1
  9. package/esm/components/accordion/accordion-group/accordion-group.component.d.ts +17 -3
  10. package/esm/components/accordion/accordion.component.js +1 -1
  11. package/esm/components/action-popover/action-popover.component.d.ts +35 -18
  12. package/esm/components/advanced-color-picker/advanced-color-picker.component.d.ts +14 -0
  13. package/esm/components/box/box.component.d.ts +1 -6
  14. package/esm/components/button-toggle-group/button-toggle-group.component.d.ts +14 -0
  15. package/esm/components/button-toggle-group/button-toggle-group.d.ts +2 -4
  16. package/esm/components/carbon-provider/carbon-provider.component.d.ts +1 -1
  17. package/esm/components/carbon-provider/carbon-provider.component.js +40 -38
  18. package/esm/components/card/card-row/card-row.component.d.ts +19 -4
  19. package/esm/components/card/card.component.d.ts +28 -10
  20. package/esm/components/checkbox/checkbox-group.component.d.ts +48 -15
  21. package/esm/components/checkbox/checkbox-group.d.ts +2 -2
  22. package/esm/components/checkbox/checkbox.component.d.ts +14 -0
  23. package/esm/components/content/content.component.d.ts +31 -9
  24. package/esm/components/date-range/date-range.component.d.ts +68 -20
  25. package/esm/components/decimal/decimal.component.d.ts +14 -0
  26. package/esm/components/detail/detail.component.d.ts +34 -6
  27. package/esm/components/draggable/draggable-container.component.d.ts +24 -4
  28. package/esm/components/draggable/draggable-item.component.d.ts +34 -6
  29. package/esm/components/duelling-picklist/duelling-picklist.component.d.ts +27 -8
  30. package/esm/components/fieldset/fieldset.component.d.ts +23 -7
  31. package/esm/components/flat-table/flat-table-cell/flat-table-cell.component.d.ts +66 -17
  32. package/esm/components/flat-table/flat-table-header/flat-table-header.component.d.ts +48 -14
  33. package/esm/components/flat-table/flat-table-row-header/flat-table-row-header.component.d.ts +44 -12
  34. package/esm/components/flat-table/flat-table.component.d.ts +46 -20
  35. package/esm/components/grid/grid-item/grid-item.component.d.ts +29 -22
  36. package/esm/components/grouped-character/grouped-character.component.d.ts +32 -10
  37. package/esm/components/heading/heading.component.d.ts +66 -18
  38. package/esm/components/help/help.component.d.ts +51 -22
  39. package/esm/components/link/link.style.js +4 -0
  40. package/esm/components/loader/loader.component.d.ts +14 -0
  41. package/esm/components/loader-bar/loader-bar.component.d.ts +18 -3
  42. package/esm/components/message/message.component.d.ts +36 -12
  43. package/esm/components/multi-action-button/multi-action-button.component.d.ts +14 -0
  44. package/esm/components/note/note.component.d.ts +34 -11
  45. package/esm/components/numeral-date/numeral-date.component.d.ts +14 -0
  46. package/esm/components/numeral-date/numeral-date.d.ts +2 -2
  47. package/esm/components/pill/pill.component.d.ts +37 -22
  48. package/esm/components/pill/pill.style.js +1 -1
  49. package/esm/components/popover-container/popover-container.component.d.ts +54 -23
  50. package/esm/components/portrait/portrait.component.d.ts +55 -29
  51. package/esm/components/preview/preview.component.d.ts +26 -9
  52. package/esm/components/profile/profile.component.d.ts +28 -8
  53. package/esm/components/progress-tracker/progress-tracker.component.d.ts +14 -0
  54. package/esm/components/radio-button/radio-button-group.component.d.ts +60 -21
  55. package/esm/components/radio-button/radio-button-group.d.ts +2 -4
  56. package/esm/components/search/search.component.d.ts +14 -0
  57. package/esm/components/select/select-textbox/select-textbox.d.ts +2 -2
  58. package/esm/components/settings-row/settings-row.component.d.ts +26 -7
  59. package/esm/components/show-edit-pod/show-edit-pod.component.d.ts +58 -23
  60. package/esm/components/simple-color-picker/simple-color-picker.component.d.ts +52 -17
  61. package/esm/components/simple-color-picker/simple-color-picker.d.ts +2 -4
  62. package/esm/components/split-button/split-button.component.d.ts +14 -0
  63. package/esm/components/step-sequence/step-sequence.component.d.ts +21 -6
  64. package/esm/components/switch/switch.component.d.ts +14 -0
  65. package/esm/components/tabs/tab/tab.component.d.ts +51 -20
  66. package/esm/components/tabs/tabs.component.d.ts +46 -15
  67. package/esm/components/textarea/textarea.component.d.ts +14 -0
  68. package/esm/components/textarea/textarea.d.ts +2 -2
  69. package/esm/components/textbox/textbox.component.d.ts +14 -0
  70. package/esm/components/textbox/textbox.d.ts +2 -2
  71. package/esm/components/tile/tile-footer/tile-footer.component.d.ts +19 -4
  72. package/esm/components/tile-select/tile-select-group.component.d.ts +35 -12
  73. package/esm/components/tile-select/tile-select.component.d.ts +63 -26
  74. package/esm/components/typography/list.component.d.ts +1 -2
  75. package/esm/components/typography/typography.component.d.ts +1 -6
  76. package/esm/global.d.ts +1 -0
  77. package/esm/style/color-config/index.d.ts +2 -3
  78. package/esm/style/color-config/index.js +3 -2
  79. package/esm/style/design-tokens/carbon-scoped-tokens-provider/carbon-scoped-tokens-provider.component.d.ts +3 -2
  80. package/esm/style/design-tokens/debug-theme.util.d.ts +449 -1
  81. package/esm/style/design-tokens/debug-theme.util.js +1 -1
  82. package/esm/style/design-tokens/generate-css-variables.util.d.ts +10 -1
  83. package/esm/style/global-style.d.ts +1 -8
  84. package/esm/style/palette/index.d.ts +19 -7
  85. package/esm/style/themes/aegean/aegean-theme.config.d.ts +3 -25
  86. package/esm/style/themes/aegean/aegean-theme.config.js +16 -14
  87. package/esm/style/themes/aegean/index.d.ts +2 -5
  88. package/esm/style/themes/base/base-theme.config.d.ts +31 -468
  89. package/esm/style/themes/base/base-theme.config.js +3 -1
  90. package/esm/style/themes/base/index.d.ts +3 -62
  91. package/esm/style/themes/base/index.js +2 -2
  92. package/esm/style/themes/index.d.ts +1 -5
  93. package/esm/style/themes/medium/index.d.ts +1 -1
  94. package/esm/style/themes/mint/index.d.ts +2 -5
  95. package/esm/style/themes/mint/mint-theme.config.d.ts +3 -25
  96. package/esm/style/themes/mint/mint-theme.config.js +16 -14
  97. package/esm/style/themes/none/index.d.ts +2 -5
  98. package/esm/style/themes/none/none-theme.config.d.ts +2 -3
  99. package/esm/style/themes/sage/index.d.ts +8 -11
  100. package/esm/style/themes/small/index.d.ts +1 -1
  101. package/esm/style/themes/test-utils.d.ts +1 -1
  102. package/esm/style/utils/add-hex-symbols.d.ts +1 -1
  103. package/esm/style/utils/at-opacity.d.ts +6 -1
  104. package/esm/style/utils/at-opacity.js +4 -2
  105. package/esm/style/utils/color.d.ts +3 -7
  106. package/esm/style/utils/color.js +10 -10
  107. package/esm/style/utils/filter-out-styled-system-spacing-props.d.ts +1 -3
  108. package/esm/style/utils/filter-styled-system-margin-props.d.ts +3 -1
  109. package/esm/style/utils/filter-styled-system-margin-props.js +1 -1
  110. package/esm/style/utils/filter-styled-system-padding-props.d.ts +3 -1
  111. package/esm/style/utils/filter-styled-system-padding-props.js +1 -1
  112. package/esm/style/utils/get-rgb-values.d.ts +2 -2
  113. package/esm/style/utils/get-rgb-values.js +1 -1
  114. package/esm/style/utils/index.d.ts +1 -1
  115. package/esm/style/utils/merge-deep.d.ts +2 -6
  116. package/esm/style/utils/merge-deep.js +19 -22
  117. package/esm/style/utils/mix.d.ts +4 -1
  118. package/esm/style/utils/mix.js +10 -5
  119. package/esm/style/utils/shade.d.ts +1 -1
  120. package/esm/style/utils/tint.d.ts +1 -1
  121. package/esm/style/utils/width.d.ts +2 -3
  122. package/lib/__internal__/checkable-input/checkable-input.d.ts +2 -2
  123. package/lib/__internal__/fieldset/fieldset.component.d.ts +45 -15
  124. package/lib/__internal__/form-field/form-field.component.d.ts +14 -0
  125. package/lib/__internal__/form-field/form-field.d.ts +2 -4
  126. package/lib/__internal__/input/input-presentation.style.d.ts +1 -1
  127. package/lib/__internal__/label/label.d.ts +2 -2
  128. package/lib/__internal__/validations/validation-icon.component.d.ts +2 -5
  129. package/lib/__spec_helper__/test-utils.d.ts +1 -1
  130. package/lib/components/accordion/accordion-group/accordion-group.component.d.ts +17 -3
  131. package/lib/components/accordion/accordion.component.js +1 -1
  132. package/lib/components/action-popover/action-popover.component.d.ts +35 -18
  133. package/lib/components/advanced-color-picker/advanced-color-picker.component.d.ts +14 -0
  134. package/lib/components/box/box.component.d.ts +1 -6
  135. package/lib/components/button-toggle-group/button-toggle-group.component.d.ts +14 -0
  136. package/lib/components/button-toggle-group/button-toggle-group.d.ts +2 -4
  137. package/lib/components/carbon-provider/carbon-provider.component.d.ts +1 -1
  138. package/lib/components/carbon-provider/carbon-provider.component.js +20 -19
  139. package/lib/components/card/card-row/card-row.component.d.ts +19 -4
  140. package/lib/components/card/card.component.d.ts +28 -10
  141. package/lib/components/checkbox/checkbox-group.component.d.ts +48 -15
  142. package/lib/components/checkbox/checkbox-group.d.ts +2 -2
  143. package/lib/components/checkbox/checkbox.component.d.ts +14 -0
  144. package/lib/components/content/content.component.d.ts +31 -9
  145. package/lib/components/date-range/date-range.component.d.ts +68 -20
  146. package/lib/components/decimal/decimal.component.d.ts +14 -0
  147. package/lib/components/detail/detail.component.d.ts +34 -6
  148. package/lib/components/draggable/draggable-container.component.d.ts +24 -4
  149. package/lib/components/draggable/draggable-item.component.d.ts +34 -6
  150. package/lib/components/duelling-picklist/duelling-picklist.component.d.ts +27 -8
  151. package/lib/components/fieldset/fieldset.component.d.ts +23 -7
  152. package/lib/components/flat-table/flat-table-cell/flat-table-cell.component.d.ts +66 -17
  153. package/lib/components/flat-table/flat-table-header/flat-table-header.component.d.ts +48 -14
  154. package/lib/components/flat-table/flat-table-row-header/flat-table-row-header.component.d.ts +44 -12
  155. package/lib/components/flat-table/flat-table.component.d.ts +46 -20
  156. package/lib/components/grid/grid-item/grid-item.component.d.ts +29 -22
  157. package/lib/components/grouped-character/grouped-character.component.d.ts +32 -10
  158. package/lib/components/heading/heading.component.d.ts +66 -18
  159. package/lib/components/help/help.component.d.ts +51 -22
  160. package/lib/components/link/link.style.js +4 -0
  161. package/lib/components/loader/loader.component.d.ts +14 -0
  162. package/lib/components/loader-bar/loader-bar.component.d.ts +18 -3
  163. package/lib/components/message/message.component.d.ts +36 -12
  164. package/lib/components/multi-action-button/multi-action-button.component.d.ts +14 -0
  165. package/lib/components/note/note.component.d.ts +34 -11
  166. package/lib/components/numeral-date/numeral-date.component.d.ts +14 -0
  167. package/lib/components/numeral-date/numeral-date.d.ts +2 -2
  168. package/lib/components/pill/pill.component.d.ts +37 -22
  169. package/lib/components/pill/pill.style.js +1 -1
  170. package/lib/components/popover-container/popover-container.component.d.ts +54 -23
  171. package/lib/components/portrait/portrait.component.d.ts +55 -29
  172. package/lib/components/preview/preview.component.d.ts +26 -9
  173. package/lib/components/profile/profile.component.d.ts +28 -8
  174. package/lib/components/progress-tracker/progress-tracker.component.d.ts +14 -0
  175. package/lib/components/radio-button/radio-button-group.component.d.ts +60 -21
  176. package/lib/components/radio-button/radio-button-group.d.ts +2 -4
  177. package/lib/components/search/search.component.d.ts +14 -0
  178. package/lib/components/select/select-textbox/select-textbox.d.ts +2 -2
  179. package/lib/components/settings-row/settings-row.component.d.ts +26 -7
  180. package/lib/components/show-edit-pod/show-edit-pod.component.d.ts +58 -23
  181. package/lib/components/simple-color-picker/simple-color-picker.component.d.ts +52 -17
  182. package/lib/components/simple-color-picker/simple-color-picker.d.ts +2 -4
  183. package/lib/components/split-button/split-button.component.d.ts +14 -0
  184. package/lib/components/step-sequence/step-sequence.component.d.ts +21 -6
  185. package/lib/components/switch/switch.component.d.ts +14 -0
  186. package/lib/components/tabs/tab/tab.component.d.ts +51 -20
  187. package/lib/components/tabs/tabs.component.d.ts +46 -15
  188. package/lib/components/textarea/textarea.component.d.ts +14 -0
  189. package/lib/components/textarea/textarea.d.ts +2 -2
  190. package/lib/components/textbox/textbox.component.d.ts +14 -0
  191. package/lib/components/textbox/textbox.d.ts +2 -2
  192. package/lib/components/tile/tile-footer/tile-footer.component.d.ts +19 -4
  193. package/lib/components/tile-select/tile-select-group.component.d.ts +35 -12
  194. package/lib/components/tile-select/tile-select.component.d.ts +63 -26
  195. package/lib/components/typography/list.component.d.ts +1 -2
  196. package/lib/components/typography/typography.component.d.ts +1 -6
  197. package/lib/global.d.ts +1 -0
  198. package/lib/style/color-config/index.d.ts +2 -3
  199. package/lib/style/color-config/index.js +2 -1
  200. package/lib/style/design-tokens/carbon-scoped-tokens-provider/carbon-scoped-tokens-provider.component.d.ts +3 -2
  201. package/lib/style/design-tokens/debug-theme.util.d.ts +449 -1
  202. package/lib/style/design-tokens/generate-css-variables.util.d.ts +10 -1
  203. package/lib/style/global-style.d.ts +1 -8
  204. package/lib/style/palette/index.d.ts +19 -7
  205. package/lib/style/themes/aegean/aegean-theme.config.d.ts +3 -25
  206. package/lib/style/themes/aegean/aegean-theme.config.js +16 -14
  207. package/lib/style/themes/aegean/index.d.ts +2 -5
  208. package/lib/style/themes/base/base-theme.config.d.ts +31 -468
  209. package/lib/style/themes/base/base-theme.config.js +3 -1
  210. package/lib/style/themes/base/index.d.ts +3 -62
  211. package/lib/style/themes/base/index.js +2 -2
  212. package/lib/style/themes/index.d.ts +1 -5
  213. package/lib/style/themes/medium/index.d.ts +1 -1
  214. package/lib/style/themes/mint/index.d.ts +2 -5
  215. package/lib/style/themes/mint/mint-theme.config.d.ts +3 -25
  216. package/lib/style/themes/mint/mint-theme.config.js +16 -14
  217. package/lib/style/themes/none/index.d.ts +2 -5
  218. package/lib/style/themes/none/none-theme.config.d.ts +2 -3
  219. package/lib/style/themes/sage/index.d.ts +8 -11
  220. package/lib/style/themes/small/index.d.ts +1 -1
  221. package/lib/style/themes/test-utils.d.ts +1 -1
  222. package/lib/style/utils/add-hex-symbols.d.ts +1 -1
  223. package/lib/style/utils/at-opacity.d.ts +6 -1
  224. package/lib/style/utils/at-opacity.js +4 -2
  225. package/lib/style/utils/color.d.ts +3 -7
  226. package/lib/style/utils/color.js +9 -9
  227. package/lib/style/utils/filter-out-styled-system-spacing-props.d.ts +1 -3
  228. package/lib/style/utils/filter-styled-system-margin-props.d.ts +3 -1
  229. package/lib/style/utils/filter-styled-system-margin-props.js +2 -0
  230. package/lib/style/utils/filter-styled-system-padding-props.d.ts +3 -1
  231. package/lib/style/utils/filter-styled-system-padding-props.js +2 -0
  232. package/lib/style/utils/get-rgb-values.d.ts +2 -2
  233. package/lib/style/utils/get-rgb-values.js +1 -1
  234. package/lib/style/utils/index.d.ts +1 -1
  235. package/lib/style/utils/merge-deep.d.ts +2 -6
  236. package/lib/style/utils/merge-deep.js +20 -24
  237. package/lib/style/utils/mix.d.ts +4 -1
  238. package/lib/style/utils/mix.js +10 -5
  239. package/lib/style/utils/shade.d.ts +1 -1
  240. package/lib/style/utils/tint.d.ts +1 -1
  241. package/lib/style/utils/width.d.ts +2 -3
  242. package/package.json +1 -1
  243. package/esm/style/__spec__.d.ts +0 -1
  244. package/esm/style/__spec__.js +0 -76
  245. package/lib/style/__spec__.d.ts +0 -1
  246. package/lib/style/__spec__.js +0 -82
@@ -29,32 +29,69 @@ declare namespace TileSelect {
29
29
  const checked: boolean;
30
30
  const type: string;
31
31
  }
32
- namespace propTypes {
33
- export const title: PropTypes.Requireable<PropTypes.ReactNodeLike>;
34
- export const titleAdornment: PropTypes.Requireable<PropTypes.ReactNodeLike>;
35
- export const subtitle: PropTypes.Requireable<PropTypes.ReactNodeLike>;
36
- export const description: PropTypes.Requireable<PropTypes.ReactNodeLike>;
37
- export const disabled: PropTypes.Requireable<boolean>;
38
- export const value: PropTypes.Requireable<string>;
39
- export const id: PropTypes.Requireable<string>;
40
- export const name: PropTypes.Requireable<string>;
41
- export const onChange: PropTypes.Requireable<(...args: any[]) => any>;
42
- export const onBlur: PropTypes.Requireable<(...args: any[]) => any>;
43
- export const onFocus: PropTypes.Requireable<(...args: any[]) => any>;
44
- const checked_1: PropTypes.Requireable<boolean>;
45
- export { checked_1 as checked };
46
- export const className: PropTypes.Requireable<string>;
47
- const type_1: PropTypes.Requireable<string>;
48
- export { type_1 as type };
49
- export const customActionButton: PropTypes.Requireable<(...args: any[]) => any>;
50
- export const actionButtonAdornment: PropTypes.Requireable<PropTypes.ReactNodeLike>;
51
- export const footer: PropTypes.Requireable<PropTypes.ReactNodeLike>;
52
- export const prefixAdornment: PropTypes.Requireable<PropTypes.ReactNodeLike>;
53
- export const additionalInformation: PropTypes.Requireable<PropTypes.ReactNodeLike>;
54
- export const accordionContent: PropTypes.Requireable<PropTypes.ReactNodeLike>;
55
- export const accordionControl: PropTypes.Requireable<(...args: any[]) => any>;
56
- export const accordionExpanded: PropTypes.Requireable<boolean>;
57
- }
32
+ const propTypes: {
33
+ /** title of the TileSelect */
34
+ title: PropTypes.Requireable<PropTypes.ReactNodeLike>;
35
+ /** adornment to be rendered next to the title */
36
+ titleAdornment: PropTypes.Requireable<PropTypes.ReactNodeLike>;
37
+ /** subtitle of the TileSelect */
38
+ subtitle: PropTypes.Requireable<PropTypes.ReactNodeLike>;
39
+ /** description of the TileSelect */
40
+ description: PropTypes.Requireable<PropTypes.ReactNodeLike>;
41
+ /** disables the TileSelect input */
42
+ disabled: PropTypes.Requireable<boolean>;
43
+ /** the value that is represented by this TileSelect */
44
+ value: PropTypes.Requireable<string>;
45
+ /** input id */
46
+ id: PropTypes.Requireable<string>;
47
+ /** input name */
48
+ name: PropTypes.Requireable<string>;
49
+ /** Callback triggered when user selects or deselects this tile */
50
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
51
+ /** Callback triggered when the user blurs this tile */
52
+ onBlur: PropTypes.Requireable<(...args: any[]) => any>;
53
+ /** Callback triggered when the user focuses this tile */
54
+ onFocus: PropTypes.Requireable<(...args: any[]) => any>;
55
+ /** determines if this tile is selected or unselected */
56
+ checked: PropTypes.Requireable<boolean>;
57
+ /** Custom class name passed to the root element of TileSelect */
58
+ className: PropTypes.Requireable<string>;
59
+ /** Type of the TileSelect input */
60
+ type: PropTypes.Requireable<string>;
61
+ /** Render prop that allows overriding the default action button. `(onClick) => <Button onClick={onClick}>...</Button>` */
62
+ customActionButton: PropTypes.Requireable<(...args: any[]) => any>;
63
+ /** An additional help info icon rendered next to the action button */
64
+ actionButtonAdornment: PropTypes.Requireable<PropTypes.ReactNodeLike>;
65
+ /** footer of the TileSelect */
66
+ footer: PropTypes.Requireable<PropTypes.ReactNodeLike>;
67
+ /** Component to render in the top left corner of TileSelect */
68
+ prefixAdornment: PropTypes.Requireable<PropTypes.ReactNodeLike>;
69
+ /** Component to render additional information row between title and description */
70
+ additionalInformation: PropTypes.Requireable<PropTypes.ReactNodeLike>;
71
+ /** Components to render in the TileSelect Accordion */
72
+ accordionContent: PropTypes.Requireable<PropTypes.ReactNodeLike>;
73
+ /**
74
+ * Render prop to support rendering the control to handle the expanded state of the TileSelect Accordion.
75
+ * `(controlId, contentId) => <Button id={controlId} aria-controls={contentId}>...</Button>`
76
+ */
77
+ accordionControl: PropTypes.Requireable<(...args: any[]) => any>;
78
+ /** Flag to control the open state of TileSelect Accordion */
79
+ accordionExpanded: PropTypes.Requireable<boolean>;
80
+ marginBottom?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
81
+ margin?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
82
+ m?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
83
+ marginLeft?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
84
+ ml?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
85
+ marginRight?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
86
+ mr?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
87
+ marginTop?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
88
+ mt?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
89
+ mb?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
90
+ marginX?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
91
+ mx?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
92
+ marginY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
93
+ my?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
94
+ };
58
95
  const displayName: string;
59
96
  }
60
97
  import PropTypes from "prop-types";
@@ -15,8 +15,7 @@ export function ListItem({ children, ...props }: {
15
15
  }): JSX.Element;
16
16
  export namespace ListItem {
17
17
  const propTypes_2: {
18
- [x: string]: React.Validator<any> | undefined;
19
- [x: number]: React.Validator<any> | undefined;
18
+ [x: string]: React.Validator<unknown> | undefined;
20
19
  theme?: React.Validator<any> | undefined;
21
20
  };
22
21
  export { propTypes_2 as propTypes };
@@ -7,9 +7,4 @@ declare const Typography: import("styled-components").StyledComponent<"span", an
7
7
  textDecoration: any;
8
8
  lineHeight: any;
9
9
  defaultMargin: string;
10
- } & {
11
- [x: string]: any;
12
- color: any;
13
- bg: any;
14
- backgroundColor: any;
15
- }, "as" | "textDecoration" | "size" | "lineHeight" | "textTransform" | "weight" | "defaultMargin">;
10
+ } & Record<string, unknown>, "as" | "textDecoration" | "size" | "lineHeight" | "textTransform" | "weight" | "defaultMargin">;
@@ -0,0 +1 @@
1
+ declare module "@styled-system/prop-types";
@@ -1,3 +1,2 @@
1
- export interface ColorConfig {
2
- [key: string]: string;
3
- }
1
+ declare const colorConfig: Record<string, string>;
2
+ export default colorConfig;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  // Base colors
8
- var _default = {
8
+ const colorConfig = {
9
9
  brilliantGreen: "00DC00",
10
10
  carrotOrange: "E96400",
11
11
  errorRed: "C7384F",
@@ -19,4 +19,5 @@ var _default = {
19
19
  slate: "003349",
20
20
  black: "000000"
21
21
  };
22
+ var _default = colorConfig;
22
23
  exports.default = _default;
@@ -1,8 +1,9 @@
1
- export default CarbonScopedTokensProvider;
1
+ import { ThemeObject } from "style/themes/base";
2
2
  /**
3
3
  *
4
4
  * Converts theme properties to css variables form and set them locally for
5
5
  * given scope
6
6
  *
7
7
  */
8
- declare const CarbonScopedTokensProvider: import("styled-components").StyledComponent<"div", any, {}, never>;
8
+ declare const CarbonScopedTokensProvider: import("styled-components").StyledComponent<"div", any, ThemeObject, never>;
9
+ export default CarbonScopedTokensProvider;
@@ -1,2 +1,450 @@
1
- declare var _default: any;
1
+ declare const _default: {
2
+ compatibility: {
3
+ metaName: string;
4
+ metaPublic: string;
5
+ colorsLogo: string;
6
+ colorsTransparent: string;
7
+ colorsYin030: string;
8
+ colorsYin055: string;
9
+ colorsYin065: string;
10
+ colorsYin075: string;
11
+ colorsYin090: string;
12
+ colorsYang100: string;
13
+ colorsYang030: string;
14
+ colorsYang080: string;
15
+ colorsGray600: string;
16
+ colorsGray700: string;
17
+ colorsGray750: string;
18
+ colorsGray850: string;
19
+ colorsGray900: string;
20
+ colorsGray1000: string;
21
+ colorsGray000: string;
22
+ colorsDisabled400: string;
23
+ colorsDisabled500: string;
24
+ colorsDisabled600: string;
25
+ colorsReadOnly400: string;
26
+ colorsReadOnly500: string;
27
+ colorsReadOnly600: string;
28
+ colorsComponentsMenuSpringStandard500: string;
29
+ colorsComponentsMenuSpringStandard600: string;
30
+ colorsComponentsMenuSpringStandard700: string;
31
+ colorsComponentsMenuSpringParent500: string;
32
+ colorsComponentsMenuSpringParent600: string;
33
+ colorsComponentsMenuSpringParent700: string;
34
+ colorsComponentsMenuSpringChild400: string;
35
+ colorsComponentsMenuSpringChild500: string;
36
+ colorsComponentsMenuSpringChild600: string;
37
+ colorsComponentsMenuSpringChildAlt400: string;
38
+ colorsComponentsMenuSpringChildAlt500: string;
39
+ colorsComponentsMenuSpringChildAlt600: string;
40
+ colorsComponentsMenuSummerStandard400: string;
41
+ colorsComponentsMenuSummerStandard500: string;
42
+ colorsComponentsMenuSummerStandard600: string;
43
+ colorsComponentsMenuSummerStandard700: string;
44
+ colorsComponentsMenuSummerStandard800: string;
45
+ colorsComponentsMenuSummerParent400: string;
46
+ colorsComponentsMenuSummerParent500: string;
47
+ colorsComponentsMenuSummerParent600: string;
48
+ colorsComponentsMenuSummerParent700: string;
49
+ colorsComponentsMenuSummerParent800: string;
50
+ colorsComponentsMenuSummerChild300: string;
51
+ colorsComponentsMenuSummerChild400: string;
52
+ colorsComponentsMenuSummerChild500: string;
53
+ colorsComponentsMenuSummerChild600: string;
54
+ colorsComponentsMenuSummerChild700: string;
55
+ colorsComponentsMenuSummerChild800: string;
56
+ colorsComponentsMenuSummerChildAlt300: string;
57
+ colorsComponentsMenuSummerChildAlt400: string;
58
+ colorsComponentsMenuSummerChildAlt500: string;
59
+ colorsComponentsMenuSummerChildAlt600: string;
60
+ colorsComponentsMenuSummerChildAlt700: string;
61
+ colorsComponentsMenuSummerChildAlt800: string;
62
+ colorsComponentsMenuAutumnStandard500: string;
63
+ colorsComponentsMenuAutumnStandard600: string;
64
+ colorsComponentsMenuAutumnStandard700: string;
65
+ colorsComponentsMenuAutumnParent500: string;
66
+ colorsComponentsMenuAutumnParent600: string;
67
+ colorsComponentsMenuAutumnParent700: string;
68
+ colorsComponentsMenuAutumnChild400: string;
69
+ colorsComponentsMenuAutumnChild500: string;
70
+ colorsComponentsMenuAutumnChild600: string;
71
+ colorsComponentsMenuAutumnChildAlt400: string;
72
+ colorsComponentsMenuAutumnChildAlt500: string;
73
+ colorsComponentsMenuAutumnChildAlt600: string;
74
+ colorsComponentsMenuWinterStandard400: string;
75
+ colorsComponentsMenuWinterStandard500: string;
76
+ colorsComponentsMenuWinterStandard600: string;
77
+ colorsComponentsMenuWinterStandard700: string;
78
+ colorsComponentsMenuWinterStandard800: string;
79
+ colorsComponentsMenuWinterParent400: string;
80
+ colorsComponentsMenuWinterParent500: string;
81
+ colorsComponentsMenuWinterParent600: string;
82
+ colorsComponentsMenuWinterParent700: string;
83
+ colorsComponentsMenuWinterParent800: string;
84
+ colorsComponentsMenuWinterChild300: string;
85
+ colorsComponentsMenuWinterChild400: string;
86
+ colorsComponentsMenuWinterChild500: string;
87
+ colorsComponentsMenuWinterChild600: string;
88
+ colorsComponentsMenuWinterChild700: string;
89
+ colorsComponentsMenuWinterChild800: string;
90
+ colorsComponentsMenuWinterChildAlt300: string;
91
+ colorsComponentsMenuWinterChildAlt400: string;
92
+ colorsComponentsMenuWinterChildAlt500: string;
93
+ colorsComponentsMenuWinterChildAlt600: string;
94
+ colorsComponentsMenuWinterChildAlt700: string;
95
+ colorsComponentsMenuWinterChildAlt800: string;
96
+ colorsComponentsMenuYin100: string;
97
+ colorsComponentsMenuYin065: string;
98
+ colorsComponentsMenuYin090: string;
99
+ colorsComponentsMenuYang100: string;
100
+ colorsComponentsMenuYang080: string;
101
+ colorsComponentsMenuTransparent: string;
102
+ colorsUtilityMajor100: string;
103
+ colorsUtilityMajor150: string;
104
+ colorsUtilityMajor200: string;
105
+ colorsUtilityMajor300: string;
106
+ colorsUtilityMajor400: string;
107
+ colorsUtilityMajor500: string;
108
+ colorsUtilityMajor800: string;
109
+ colorsUtilityMajor025: string;
110
+ colorsUtilityMajor010: string;
111
+ colorsUtilityMajor040: string;
112
+ colorsUtilityMajor050: string;
113
+ colorsUtilityMajor075: string;
114
+ colorsUtilityMajorTransparent: string;
115
+ colorsUtilityYin030: string;
116
+ colorsUtilityYin055: string;
117
+ colorsUtilityYin065: string;
118
+ colorsUtilityYin090: string;
119
+ colorsUtilityYang100: string;
120
+ colorsUtilityDisabled400: string;
121
+ colorsUtilityDisabled500: string;
122
+ colorsUtilityDisabled600: string;
123
+ colorsUtilityReadOnly400: string;
124
+ colorsUtilityReadOnly500: string;
125
+ colorsUtilityReadOnly600: string;
126
+ colorsActionMajor150: string;
127
+ colorsActionMajor350: string;
128
+ colorsActionMajor450: string;
129
+ colorsActionMajor500: string;
130
+ colorsActionMajor600: string;
131
+ colorsActionMajor700: string;
132
+ colorsActionMajor025: string;
133
+ colorsActionMajorTransparent: string;
134
+ colorsActionMajorYin030: string;
135
+ colorsActionMajorYin055: string;
136
+ colorsActionMajorYin065: string;
137
+ colorsActionMajorYin090: string;
138
+ colorsActionMajorYang100: string;
139
+ colorsActionMajorYang030: string;
140
+ colorsActionMinor100: string;
141
+ colorsActionMinor150: string;
142
+ colorsActionMinor200: string;
143
+ colorsActionMinor250: string;
144
+ colorsActionMinor300: string;
145
+ colorsActionMinor400: string;
146
+ colorsActionMinor500: string;
147
+ colorsActionMinor550: string;
148
+ colorsActionMinor600: string;
149
+ colorsActionMinor850: string;
150
+ colorsActionMinor900: string;
151
+ colorsActionMinor025: string;
152
+ colorsActionMinor050: string;
153
+ colorsActionMinorTransparent: string;
154
+ colorsActionMinorYin030: string;
155
+ colorsActionMinorYin055: string;
156
+ colorsActionMinorYin065: string;
157
+ colorsActionMinorYin090: string;
158
+ colorsActionMinorYang100: string;
159
+ colorsActionDisabled400: string;
160
+ colorsActionDisabled500: string;
161
+ colorsActionDisabled600: string;
162
+ colorsActionReadOnly400: string;
163
+ colorsActionReadOnly500: string;
164
+ colorsActionReadOnly600: string;
165
+ colorsSemanticNeutral200: string;
166
+ colorsSemanticNeutral500: string;
167
+ colorsSemanticNeutral600: string;
168
+ colorsSemanticNeutralTransparent: string;
169
+ colorsSemanticNeutralYin030: string;
170
+ colorsSemanticNeutralYin055: string;
171
+ colorsSemanticNeutralYin065: string;
172
+ colorsSemanticNeutralYin090: string;
173
+ colorsSemanticNeutralYang100: string;
174
+ colorsSemanticFocus250: string;
175
+ colorsSemanticFocus500: string;
176
+ colorsSemanticFocusTransparent: string;
177
+ colorsSemanticPositive500: string;
178
+ colorsSemanticPositive600: string;
179
+ colorsSemanticPositiveTransparent: string;
180
+ colorsSemanticPositiveYin030: string;
181
+ colorsSemanticPositiveYin055: string;
182
+ colorsSemanticPositiveYin065: string;
183
+ colorsSemanticPositiveYin090: string;
184
+ colorsSemanticPositiveYang100: string;
185
+ colorsSemanticNegative500: string;
186
+ colorsSemanticNegative600: string;
187
+ colorsSemanticNegativeTransparent: string;
188
+ colorsSemanticNegativeYin030: string;
189
+ colorsSemanticNegativeYin055: string;
190
+ colorsSemanticNegativeYin065: string;
191
+ colorsSemanticNegativeYin090: string;
192
+ colorsSemanticNegativeYang100: string;
193
+ colorsSemanticCaution400: string;
194
+ colorsSemanticCaution500: string;
195
+ colorsSemanticCaution600: string;
196
+ colorsSemanticCaution650: string;
197
+ colorsSemanticCautionTransparent: string;
198
+ colorsSemanticCautionYin030: string;
199
+ colorsSemanticCautionYin055: string;
200
+ colorsSemanticCautionYin065: string;
201
+ colorsSemanticCautionYin090: string;
202
+ colorsSemanticCautionYang100: string;
203
+ colorsSemanticInfo150: string;
204
+ colorsSemanticInfo500: string;
205
+ colorsSemanticInfo600: string;
206
+ colorsSemanticInfoTransparent: string;
207
+ colorsSemanticInfoYin030: string;
208
+ colorsSemanticInfoYin055: string;
209
+ colorsSemanticInfoYin065: string;
210
+ colorsSemanticInfoYin090: string;
211
+ colorsSemanticInfoYang100: string;
212
+ sizing100: string;
213
+ sizing125: string;
214
+ sizing150: string;
215
+ sizing175: string;
216
+ sizing200: string;
217
+ sizing250: string;
218
+ sizing275: string;
219
+ sizing300: string;
220
+ sizing350: string;
221
+ sizing375: string;
222
+ sizing400: string;
223
+ sizing450: string;
224
+ sizing500: string;
225
+ sizing525: string;
226
+ sizing600: string;
227
+ sizing700: string;
228
+ sizing800: string;
229
+ sizing900: string;
230
+ sizing1000: string;
231
+ sizing1300: string;
232
+ sizing1600: string;
233
+ sizing010: string;
234
+ sizing025: string;
235
+ sizing050: string;
236
+ sizing075: string;
237
+ sizingLogowidth: string;
238
+ spacing100: string;
239
+ spacing110: string;
240
+ spacing125: string;
241
+ spacing150: string;
242
+ spacing200: string;
243
+ spacing250: string;
244
+ spacing300: string;
245
+ spacing400: string;
246
+ spacing500: string;
247
+ spacing600: string;
248
+ spacing700: string;
249
+ spacing800: string;
250
+ spacing900: string;
251
+ spacing1000: string;
252
+ spacing000: string;
253
+ spacing010: string;
254
+ spacing025: string;
255
+ spacing050: string;
256
+ spacing060: string;
257
+ spacing075: string;
258
+ borderWidth100: string;
259
+ borderWidth200: string;
260
+ borderWidth300: string;
261
+ borderWidth400: string;
262
+ borderWidth000: string;
263
+ fontSizes100: string;
264
+ fontSizes200: string;
265
+ fontSizes300: string;
266
+ fontSizes400: string;
267
+ fontSizes500: string;
268
+ fontSizes600: string;
269
+ fontSizes700: string;
270
+ fontSizes800: string;
271
+ fontSizes900: string;
272
+ fontSizes1000: string;
273
+ fontSizes010: string;
274
+ fontSizes025: string;
275
+ fontSizes050: string;
276
+ boxShadow100: string;
277
+ boxShadow150: string;
278
+ boxShadow200: string;
279
+ boxShadow300: string;
280
+ boxShadow400: string;
281
+ boxShadow010: string;
282
+ boxShadow050: string;
283
+ boxShadow075: string;
284
+ boxShadow090: string;
285
+ boxShadow091: string;
286
+ fontWeights400: string;
287
+ fontWeights500: string;
288
+ fontWeights700: string;
289
+ lineHeights300: string;
290
+ lineHeights400: string;
291
+ lineHeights500: string;
292
+ fontFamiliesDefault: string;
293
+ fontFamiliesIos: string;
294
+ fontFamiliesAndroid: string;
295
+ fontFamiliesOther: string;
296
+ borderRadiusCircle: string;
297
+ typographyAccordionTitleM: string;
298
+ typographyAccordionSubtitleM: string;
299
+ typographyAccordionParagraphM: string;
300
+ typographyActionPopoverMenuItemM: string;
301
+ typographyAnchorNavLabelM: string;
302
+ typographyBadgeLabelM: string;
303
+ typographyButtonLabelS: string;
304
+ typographyButtonLabelM: string;
305
+ typographyButtonLabelL: string;
306
+ typographyCardParagraphM: string;
307
+ typographyCardSelectTitleM: string;
308
+ typographyCardSelectSubtitleM: string;
309
+ typographyCardSelectParagraphM: string;
310
+ typographyDatePickerCalendarDateM: string;
311
+ typographyDatePickerCalendarDayM: string;
312
+ typographyDatePickerCalendarMonthM: string;
313
+ typographyDialogTitleXs: string;
314
+ typographyDialogTitleS: string;
315
+ typographyDialogTitleMs: string;
316
+ typographyDialogTitleM: string;
317
+ typographyDialogTitleMl: string;
318
+ typographyDialogTitleL: string;
319
+ typographyDialogTitleXl: string;
320
+ typographyDialogTitleXxl: string;
321
+ typographyDialogParagraphXs: string;
322
+ typographyDialogParagraphS: string;
323
+ typographyDialogParagraphMs: string;
324
+ typographyDialogParagraphM: string;
325
+ typographyDialogParagraphMl: string;
326
+ typographyDialogParagraphL: string;
327
+ typographyDialogParagraphXl: string;
328
+ typographyDialogParagraphXxl: string;
329
+ typographyDrawerTitleM: string;
330
+ typographyDrawerParagraphM: string;
331
+ typographyFlashTextM: string;
332
+ typographyFlashTextL: string;
333
+ typographyFormFieldLabelXs: string;
334
+ typographyFormFieldLabelS: string;
335
+ typographyFormFieldLabelM: string;
336
+ typographyFormFieldLabelL: string;
337
+ typographyFormFieldHintTextXs: string;
338
+ typographyFormFieldHintTextS: string;
339
+ typographyFormFieldHintTextM: string;
340
+ typographyFormFieldHintTextL: string;
341
+ typographyFormFieldErrorMessageXs: string;
342
+ typographyFormFieldErrorMessageS: string;
343
+ typographyFormFieldErrorMessageM: string;
344
+ typographyFormFieldErrorMessageL: string;
345
+ typographyFormFieldCautionMessageXs: string;
346
+ typographyFormFieldCautionMessageS: string;
347
+ typographyFormFieldCautionMessageM: string;
348
+ typographyFormFieldCautionMessageL: string;
349
+ typographyFormFieldInputTextXs: string;
350
+ typographyFormFieldInputTextS: string;
351
+ typographyFormFieldInputTextM: string;
352
+ typographyFormFieldInputTextL: string;
353
+ typographyFormFieldDropdownOptionsXs: string;
354
+ typographyFormFieldDropdownOptionsS: string;
355
+ typographyFormFieldDropdownOptionsM: string;
356
+ typographyFormFieldDropdownOptionsL: string;
357
+ typographyFormFieldSecondLabelXs: string;
358
+ typographyFormFieldSecondLabelS: string;
359
+ typographyFormFieldSecondLabelM: string;
360
+ typographyFormFieldSecondLabelL: string;
361
+ typographyFormFieldCharacterCountXs: string;
362
+ typographyFormFieldCharacterCountS: string;
363
+ typographyFormFieldCharacterCountM: string;
364
+ typographyFormFieldCharacterCountL: string;
365
+ typographyLinkTextS: string;
366
+ typographyLinkTextM: string;
367
+ typographyLinkTextL: string;
368
+ typographyMenuLabelM: string;
369
+ typographyMenuLabelL: string;
370
+ typographyMenuSegmentTitleM: string;
371
+ typographyMessageHeadingM: string;
372
+ typographyMessageHeadingL: string;
373
+ typographyMessageTextM: string;
374
+ typographyMessageTextL: string;
375
+ typographyPaginationLabelM: string;
376
+ typographyPillLabelS: string;
377
+ typographyPillLabelM: string;
378
+ typographyPillLabelL: string;
379
+ typographyPillLabelXl: string;
380
+ typographyProfileEmailTextXs: string;
381
+ typographyProfileEmailTextS: string;
382
+ typographyProfileEmailTextM: string;
383
+ typographyProfileEmailTextMl: string;
384
+ typographyProfileEmailTextL: string;
385
+ typographyProfileEmailTextXl: string;
386
+ typographyProfileEmailTextXxl: string;
387
+ typographyProfileEmailLinkXs: string;
388
+ typographyProfileEmailLinkS: string;
389
+ typographyProfileEmailLinkM: string;
390
+ typographyProfileEmailLinkMl: string;
391
+ typographyProfileEmailLinkL: string;
392
+ typographyProfileEmailLinkXl: string;
393
+ typographyProfileEmailLinkXxl: string;
394
+ typographyProfileInitialsXs: string;
395
+ typographyProfileInitialsS: string;
396
+ typographyProfileInitialsM: string;
397
+ typographyProfileInitialsMl: string;
398
+ typographyProfileInitialsL: string;
399
+ typographyProfileInitialsXl: string;
400
+ typographyProfileInitialsXxl: string;
401
+ typographyProfileNameXs: string;
402
+ typographyProfileNameS: string;
403
+ typographyProfileNameM: string;
404
+ typographyProfileNameMl: string;
405
+ typographyProfileNameL: string;
406
+ typographyProfileNameXl: string;
407
+ typographyProfileNameXxl: string;
408
+ typographyProgressTrackerValueLabelS: string;
409
+ typographyProgressTrackerValueLabelM: string;
410
+ typographyProgressTrackerValueLabelL: string;
411
+ typographySearchLabelM: string;
412
+ typographySidebarTitleXs: string;
413
+ typographySidebarTitleS: string;
414
+ typographySidebarTitleMs: string;
415
+ typographySidebarTitleM: string;
416
+ typographySidebarTitleMl: string;
417
+ typographySidebarTitleL: string;
418
+ typographySidebarTitleXl: string;
419
+ typographySidebarParagraphXs: string;
420
+ typographySidebarParagraphS: string;
421
+ typographySidebarParagraphMs: string;
422
+ typographySidebarParagraphM: string;
423
+ typographySidebarParagraphMl: string;
424
+ typographySidebarParagraphL: string;
425
+ typographySidebarParagraphXl: string;
426
+ typographyStepFlowCompleteLabelM: string;
427
+ typographyStepFlowCurrentLabelM: string;
428
+ typographyStepFlowIncompleteLabelM: string;
429
+ typographySwitchOptionLabelM: string;
430
+ typographySwitchOptionLabelL: string;
431
+ typographyTableHeaderTextXs: string;
432
+ typographyTableHeaderTextS: string;
433
+ typographyTableHeaderTextM: string;
434
+ typographyTableHeaderTextL: string;
435
+ typographyTableHeaderTextXl: string;
436
+ typographyTableCellTextXs: string;
437
+ typographyTableCellTextS: string;
438
+ typographyTableCellTextM: string;
439
+ typographyTableCellTextL: string;
440
+ typographyTableCellTextXl: string;
441
+ typographyTileParagraphM: string;
442
+ typographyTooltipTextM: string;
443
+ typographyTooltipTextL: string;
444
+ opacity300: string;
445
+ opacity600: string;
446
+ opacity800: string;
447
+ };
448
+ name: string;
449
+ };
2
450
  export default _default;
@@ -1,2 +1,11 @@
1
- declare function _default(theme: any): string;
1
+ import { ThemeObject } from "../themes/base";
2
+ declare const _default: (theme: ThemeObject | Record<string, string>) => string;
3
+ /**
4
+ *
5
+ * Converts theme properties to the string in form of css variable definitions.
6
+ * Then this string can be used as variable definitions in global or local
7
+ * scope, which allows for achieving compatibility when using design tokens in
8
+ * form of CSS variables along with styled-components ThemeProvider.
9
+ *
10
+ */
2
11
  export default _default;
@@ -1,9 +1,2 @@
1
- import { GlobalStyleComponent } from "styled-components";
2
- import { ThemeObject } from "./themes/base";
3
-
4
- declare const GlobalStyle: GlobalStyleComponent<
5
- Record<string, unknown>,
6
- ThemeObject
7
- >;
8
-
1
+ declare const GlobalStyle: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
9
2
  export default GlobalStyle;
@@ -1,7 +1,19 @@
1
- import { ColorConfig } from "../color-config";
2
-
3
- export interface Palette {
4
- [key: string]: (weight: number) => string;
5
- }
6
-
7
- declare function generatePalette(config: ColorConfig): Palette;
1
+ export declare type PaletteFunction = (weight: number | string) => string;
2
+ /**
3
+ * Takes a config object of base colors and, for each base, generates functions
4
+ * to lighten and darken it.
5
+ *
6
+ * Given a config:
7
+ *
8
+ * const palette = generatePalette({ brilliantGreen: '00DC00' });
9
+ *
10
+ * The developer will be able to call:
11
+ *
12
+ * palette.brilliantGreenTint(n);
13
+ * palette.brilliantGreenShade(n);
14
+ *
15
+ * where `n` is the degree of white (in case of `tint`) or
16
+ * black (in case of `shade`) they wish to mix into the base color.
17
+ */
18
+ declare const generatePalette: (config: Record<string, string>) => Record<string, PaletteFunction>;
19
+ export default generatePalette;