carbon-react 106.1.4 → 106.1.7

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 (250) 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/action-popover/action-popover.component.d.ts +35 -18
  11. package/esm/components/advanced-color-picker/advanced-color-picker.component.d.ts +14 -0
  12. package/esm/components/box/box.component.d.ts +1 -6
  13. package/esm/components/button-toggle-group/button-toggle-group.component.d.ts +14 -0
  14. package/esm/components/button-toggle-group/button-toggle-group.d.ts +2 -4
  15. package/esm/components/carbon-provider/carbon-provider.component.d.ts +1 -1
  16. package/esm/components/carbon-provider/carbon-provider.component.js +40 -38
  17. package/esm/components/card/card-row/card-row.component.d.ts +19 -4
  18. package/esm/components/card/card.component.d.ts +28 -10
  19. package/esm/components/checkbox/checkbox-group.component.d.ts +48 -15
  20. package/esm/components/checkbox/checkbox-group.d.ts +2 -2
  21. package/esm/components/checkbox/checkbox.component.d.ts +14 -0
  22. package/esm/components/content/content.component.d.ts +31 -9
  23. package/esm/components/date/__internal__/date-formats/index.js +88 -20
  24. package/esm/components/date/__internal__/utils.js +13 -3
  25. package/esm/components/date/date.component.js +13 -5
  26. package/esm/components/date-range/date-range.component.d.ts +68 -20
  27. package/esm/components/decimal/decimal.component.d.ts +14 -0
  28. package/esm/components/detail/detail.component.d.ts +34 -6
  29. package/esm/components/draggable/draggable-container.component.d.ts +24 -4
  30. package/esm/components/draggable/draggable-item.component.d.ts +34 -6
  31. package/esm/components/duelling-picklist/duelling-picklist.component.d.ts +27 -8
  32. package/esm/components/fieldset/fieldset.component.d.ts +23 -7
  33. package/esm/components/flat-table/flat-table-cell/flat-table-cell.component.d.ts +66 -17
  34. package/esm/components/flat-table/flat-table-header/flat-table-header.component.d.ts +48 -14
  35. package/esm/components/flat-table/flat-table-row-header/flat-table-row-header.component.d.ts +44 -12
  36. package/esm/components/flat-table/flat-table.component.d.ts +46 -20
  37. package/esm/components/flat-table/flat-table.style.js +2 -1
  38. package/esm/components/grid/grid-item/grid-item.component.d.ts +29 -22
  39. package/esm/components/grouped-character/grouped-character.component.d.ts +32 -10
  40. package/esm/components/heading/heading.component.d.ts +66 -18
  41. package/esm/components/help/help.component.d.ts +51 -22
  42. package/esm/components/loader/loader.component.d.ts +14 -0
  43. package/esm/components/loader-bar/loader-bar.component.d.ts +18 -3
  44. package/esm/components/message/message.component.d.ts +36 -12
  45. package/esm/components/multi-action-button/multi-action-button.component.d.ts +14 -0
  46. package/esm/components/note/note.component.d.ts +34 -11
  47. package/esm/components/numeral-date/numeral-date.component.d.ts +14 -0
  48. package/esm/components/numeral-date/numeral-date.d.ts +2 -2
  49. package/esm/components/pill/pill.component.d.ts +37 -22
  50. package/esm/components/pill/pill.style.js +1 -1
  51. package/esm/components/popover-container/popover-container.component.d.ts +54 -23
  52. package/esm/components/portrait/portrait.component.d.ts +55 -29
  53. package/esm/components/preview/preview.component.d.ts +26 -9
  54. package/esm/components/profile/profile.component.d.ts +28 -8
  55. package/esm/components/progress-tracker/progress-tracker.component.d.ts +14 -0
  56. package/esm/components/radio-button/radio-button-group.component.d.ts +60 -21
  57. package/esm/components/radio-button/radio-button-group.d.ts +2 -4
  58. package/esm/components/search/search.component.d.ts +14 -0
  59. package/esm/components/select/select-textbox/select-textbox.d.ts +2 -2
  60. package/esm/components/settings-row/settings-row.component.d.ts +26 -7
  61. package/esm/components/show-edit-pod/show-edit-pod.component.d.ts +58 -23
  62. package/esm/components/simple-color-picker/simple-color-picker.component.d.ts +52 -17
  63. package/esm/components/simple-color-picker/simple-color-picker.d.ts +2 -4
  64. package/esm/components/split-button/split-button.component.d.ts +14 -0
  65. package/esm/components/step-sequence/step-sequence.component.d.ts +21 -6
  66. package/esm/components/switch/switch.component.d.ts +14 -0
  67. package/esm/components/tabs/tab/tab.component.d.ts +51 -20
  68. package/esm/components/tabs/tabs.component.d.ts +46 -15
  69. package/esm/components/textarea/textarea.component.d.ts +14 -0
  70. package/esm/components/textarea/textarea.d.ts +2 -2
  71. package/esm/components/textbox/textbox.component.d.ts +14 -0
  72. package/esm/components/textbox/textbox.d.ts +2 -2
  73. package/esm/components/tile/tile-footer/tile-footer.component.d.ts +19 -4
  74. package/esm/components/tile-select/tile-select-group.component.d.ts +35 -12
  75. package/esm/components/tile-select/tile-select.component.d.ts +63 -26
  76. package/esm/components/typography/list.component.d.ts +1 -2
  77. package/esm/components/typography/typography.component.d.ts +1 -6
  78. package/esm/global.d.ts +1 -0
  79. package/esm/style/color-config/index.d.ts +2 -3
  80. package/esm/style/color-config/index.js +3 -2
  81. package/esm/style/design-tokens/carbon-scoped-tokens-provider/carbon-scoped-tokens-provider.component.d.ts +3 -2
  82. package/esm/style/design-tokens/debug-theme.util.d.ts +449 -1
  83. package/esm/style/design-tokens/debug-theme.util.js +1 -1
  84. package/esm/style/design-tokens/generate-css-variables.util.d.ts +10 -1
  85. package/esm/style/global-style.d.ts +1 -8
  86. package/esm/style/palette/index.d.ts +19 -7
  87. package/esm/style/themes/aegean/aegean-theme.config.d.ts +3 -25
  88. package/esm/style/themes/aegean/aegean-theme.config.js +16 -14
  89. package/esm/style/themes/aegean/index.d.ts +2 -5
  90. package/esm/style/themes/base/base-theme.config.d.ts +31 -468
  91. package/esm/style/themes/base/base-theme.config.js +3 -1
  92. package/esm/style/themes/base/index.d.ts +3 -62
  93. package/esm/style/themes/base/index.js +2 -2
  94. package/esm/style/themes/index.d.ts +1 -5
  95. package/esm/style/themes/medium/index.d.ts +1 -1
  96. package/esm/style/themes/mint/index.d.ts +2 -5
  97. package/esm/style/themes/mint/mint-theme.config.d.ts +3 -25
  98. package/esm/style/themes/mint/mint-theme.config.js +16 -14
  99. package/esm/style/themes/none/index.d.ts +2 -5
  100. package/esm/style/themes/none/none-theme.config.d.ts +2 -3
  101. package/esm/style/themes/sage/index.d.ts +8 -11
  102. package/esm/style/themes/small/index.d.ts +1 -1
  103. package/esm/style/themes/test-utils.d.ts +1 -1
  104. package/esm/style/utils/add-hex-symbols.d.ts +1 -1
  105. package/esm/style/utils/at-opacity.d.ts +6 -1
  106. package/esm/style/utils/at-opacity.js +4 -2
  107. package/esm/style/utils/color.d.ts +3 -7
  108. package/esm/style/utils/color.js +10 -10
  109. package/esm/style/utils/filter-out-styled-system-spacing-props.d.ts +1 -3
  110. package/esm/style/utils/filter-styled-system-margin-props.d.ts +3 -1
  111. package/esm/style/utils/filter-styled-system-margin-props.js +1 -1
  112. package/esm/style/utils/filter-styled-system-padding-props.d.ts +3 -1
  113. package/esm/style/utils/filter-styled-system-padding-props.js +1 -1
  114. package/esm/style/utils/get-rgb-values.d.ts +2 -2
  115. package/esm/style/utils/get-rgb-values.js +1 -1
  116. package/esm/style/utils/index.d.ts +1 -1
  117. package/esm/style/utils/merge-deep.d.ts +2 -6
  118. package/esm/style/utils/merge-deep.js +19 -22
  119. package/esm/style/utils/mix.d.ts +4 -1
  120. package/esm/style/utils/mix.js +10 -5
  121. package/esm/style/utils/shade.d.ts +1 -1
  122. package/esm/style/utils/tint.d.ts +1 -1
  123. package/esm/style/utils/width.d.ts +2 -3
  124. package/lib/__internal__/checkable-input/checkable-input.d.ts +2 -2
  125. package/lib/__internal__/fieldset/fieldset.component.d.ts +45 -15
  126. package/lib/__internal__/form-field/form-field.component.d.ts +14 -0
  127. package/lib/__internal__/form-field/form-field.d.ts +2 -4
  128. package/lib/__internal__/input/input-presentation.style.d.ts +1 -1
  129. package/lib/__internal__/label/label.d.ts +2 -2
  130. package/lib/__internal__/validations/validation-icon.component.d.ts +2 -5
  131. package/lib/__spec_helper__/test-utils.d.ts +1 -1
  132. package/lib/components/accordion/accordion-group/accordion-group.component.d.ts +17 -3
  133. package/lib/components/action-popover/action-popover.component.d.ts +35 -18
  134. package/lib/components/advanced-color-picker/advanced-color-picker.component.d.ts +14 -0
  135. package/lib/components/box/box.component.d.ts +1 -6
  136. package/lib/components/button-toggle-group/button-toggle-group.component.d.ts +14 -0
  137. package/lib/components/button-toggle-group/button-toggle-group.d.ts +2 -4
  138. package/lib/components/carbon-provider/carbon-provider.component.d.ts +1 -1
  139. package/lib/components/carbon-provider/carbon-provider.component.js +20 -19
  140. package/lib/components/card/card-row/card-row.component.d.ts +19 -4
  141. package/lib/components/card/card.component.d.ts +28 -10
  142. package/lib/components/checkbox/checkbox-group.component.d.ts +48 -15
  143. package/lib/components/checkbox/checkbox-group.d.ts +2 -2
  144. package/lib/components/checkbox/checkbox.component.d.ts +14 -0
  145. package/lib/components/content/content.component.d.ts +31 -9
  146. package/lib/components/date/__internal__/date-formats/index.js +88 -20
  147. package/lib/components/date/__internal__/utils.js +14 -3
  148. package/lib/components/date/date.component.js +13 -5
  149. package/lib/components/date-range/date-range.component.d.ts +68 -20
  150. package/lib/components/decimal/decimal.component.d.ts +14 -0
  151. package/lib/components/detail/detail.component.d.ts +34 -6
  152. package/lib/components/draggable/draggable-container.component.d.ts +24 -4
  153. package/lib/components/draggable/draggable-item.component.d.ts +34 -6
  154. package/lib/components/duelling-picklist/duelling-picklist.component.d.ts +27 -8
  155. package/lib/components/fieldset/fieldset.component.d.ts +23 -7
  156. package/lib/components/flat-table/flat-table-cell/flat-table-cell.component.d.ts +66 -17
  157. package/lib/components/flat-table/flat-table-header/flat-table-header.component.d.ts +48 -14
  158. package/lib/components/flat-table/flat-table-row-header/flat-table-row-header.component.d.ts +44 -12
  159. package/lib/components/flat-table/flat-table.component.d.ts +46 -20
  160. package/lib/components/flat-table/flat-table.style.js +2 -1
  161. package/lib/components/grid/grid-item/grid-item.component.d.ts +29 -22
  162. package/lib/components/grouped-character/grouped-character.component.d.ts +32 -10
  163. package/lib/components/heading/heading.component.d.ts +66 -18
  164. package/lib/components/help/help.component.d.ts +51 -22
  165. package/lib/components/loader/loader.component.d.ts +14 -0
  166. package/lib/components/loader-bar/loader-bar.component.d.ts +18 -3
  167. package/lib/components/message/message.component.d.ts +36 -12
  168. package/lib/components/multi-action-button/multi-action-button.component.d.ts +14 -0
  169. package/lib/components/note/note.component.d.ts +34 -11
  170. package/lib/components/numeral-date/numeral-date.component.d.ts +14 -0
  171. package/lib/components/numeral-date/numeral-date.d.ts +2 -2
  172. package/lib/components/pill/pill.component.d.ts +37 -22
  173. package/lib/components/pill/pill.style.js +1 -1
  174. package/lib/components/popover-container/popover-container.component.d.ts +54 -23
  175. package/lib/components/portrait/portrait.component.d.ts +55 -29
  176. package/lib/components/preview/preview.component.d.ts +26 -9
  177. package/lib/components/profile/profile.component.d.ts +28 -8
  178. package/lib/components/progress-tracker/progress-tracker.component.d.ts +14 -0
  179. package/lib/components/radio-button/radio-button-group.component.d.ts +60 -21
  180. package/lib/components/radio-button/radio-button-group.d.ts +2 -4
  181. package/lib/components/search/search.component.d.ts +14 -0
  182. package/lib/components/select/select-textbox/select-textbox.d.ts +2 -2
  183. package/lib/components/settings-row/settings-row.component.d.ts +26 -7
  184. package/lib/components/show-edit-pod/show-edit-pod.component.d.ts +58 -23
  185. package/lib/components/simple-color-picker/simple-color-picker.component.d.ts +52 -17
  186. package/lib/components/simple-color-picker/simple-color-picker.d.ts +2 -4
  187. package/lib/components/split-button/split-button.component.d.ts +14 -0
  188. package/lib/components/step-sequence/step-sequence.component.d.ts +21 -6
  189. package/lib/components/switch/switch.component.d.ts +14 -0
  190. package/lib/components/tabs/tab/tab.component.d.ts +51 -20
  191. package/lib/components/tabs/tabs.component.d.ts +46 -15
  192. package/lib/components/textarea/textarea.component.d.ts +14 -0
  193. package/lib/components/textarea/textarea.d.ts +2 -2
  194. package/lib/components/textbox/textbox.component.d.ts +14 -0
  195. package/lib/components/textbox/textbox.d.ts +2 -2
  196. package/lib/components/tile/tile-footer/tile-footer.component.d.ts +19 -4
  197. package/lib/components/tile-select/tile-select-group.component.d.ts +35 -12
  198. package/lib/components/tile-select/tile-select.component.d.ts +63 -26
  199. package/lib/components/typography/list.component.d.ts +1 -2
  200. package/lib/components/typography/typography.component.d.ts +1 -6
  201. package/lib/global.d.ts +1 -0
  202. package/lib/style/color-config/index.d.ts +2 -3
  203. package/lib/style/color-config/index.js +2 -1
  204. package/lib/style/design-tokens/carbon-scoped-tokens-provider/carbon-scoped-tokens-provider.component.d.ts +3 -2
  205. package/lib/style/design-tokens/debug-theme.util.d.ts +449 -1
  206. package/lib/style/design-tokens/generate-css-variables.util.d.ts +10 -1
  207. package/lib/style/global-style.d.ts +1 -8
  208. package/lib/style/palette/index.d.ts +19 -7
  209. package/lib/style/themes/aegean/aegean-theme.config.d.ts +3 -25
  210. package/lib/style/themes/aegean/aegean-theme.config.js +16 -14
  211. package/lib/style/themes/aegean/index.d.ts +2 -5
  212. package/lib/style/themes/base/base-theme.config.d.ts +31 -468
  213. package/lib/style/themes/base/base-theme.config.js +3 -1
  214. package/lib/style/themes/base/index.d.ts +3 -62
  215. package/lib/style/themes/base/index.js +2 -2
  216. package/lib/style/themes/index.d.ts +1 -5
  217. package/lib/style/themes/medium/index.d.ts +1 -1
  218. package/lib/style/themes/mint/index.d.ts +2 -5
  219. package/lib/style/themes/mint/mint-theme.config.d.ts +3 -25
  220. package/lib/style/themes/mint/mint-theme.config.js +16 -14
  221. package/lib/style/themes/none/index.d.ts +2 -5
  222. package/lib/style/themes/none/none-theme.config.d.ts +2 -3
  223. package/lib/style/themes/sage/index.d.ts +8 -11
  224. package/lib/style/themes/small/index.d.ts +1 -1
  225. package/lib/style/themes/test-utils.d.ts +1 -1
  226. package/lib/style/utils/add-hex-symbols.d.ts +1 -1
  227. package/lib/style/utils/at-opacity.d.ts +6 -1
  228. package/lib/style/utils/at-opacity.js +4 -2
  229. package/lib/style/utils/color.d.ts +3 -7
  230. package/lib/style/utils/color.js +9 -9
  231. package/lib/style/utils/filter-out-styled-system-spacing-props.d.ts +1 -3
  232. package/lib/style/utils/filter-styled-system-margin-props.d.ts +3 -1
  233. package/lib/style/utils/filter-styled-system-margin-props.js +2 -0
  234. package/lib/style/utils/filter-styled-system-padding-props.d.ts +3 -1
  235. package/lib/style/utils/filter-styled-system-padding-props.js +2 -0
  236. package/lib/style/utils/get-rgb-values.d.ts +2 -2
  237. package/lib/style/utils/get-rgb-values.js +1 -1
  238. package/lib/style/utils/index.d.ts +1 -1
  239. package/lib/style/utils/merge-deep.d.ts +2 -6
  240. package/lib/style/utils/merge-deep.js +20 -24
  241. package/lib/style/utils/mix.d.ts +4 -1
  242. package/lib/style/utils/mix.js +10 -5
  243. package/lib/style/utils/shade.d.ts +1 -1
  244. package/lib/style/utils/tint.d.ts +1 -1
  245. package/lib/style/utils/width.d.ts +2 -3
  246. package/package.json +1 -1
  247. package/esm/style/__spec__.d.ts +0 -1
  248. package/esm/style/__spec__.js +0 -76
  249. package/lib/style/__spec__.d.ts +0 -1
  250. package/lib/style/__spec__.js +0 -82
@@ -3,20 +3,53 @@ export default CheckboxGroup;
3
3
  import React from "react";
4
4
  declare function CheckboxGroup(props: any): JSX.Element;
5
5
  declare namespace CheckboxGroup {
6
- namespace propTypes {
7
- const legend: PropTypes.Requireable<string>;
8
- const legendInline: PropTypes.Requireable<boolean>;
9
- const legendWidth: PropTypes.Requireable<number>;
10
- const legendAlign: PropTypes.Requireable<string>;
11
- const legendSpacing: PropTypes.Requireable<number>;
12
- const children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
13
- const groupName: PropTypes.Validator<string>;
14
- const error: PropTypes.Requireable<string | boolean>;
15
- const warning: PropTypes.Requireable<string | boolean>;
16
- const info: PropTypes.Requireable<string | boolean>;
17
- const labelSpacing: PropTypes.Requireable<number>;
18
- const required: PropTypes.Requireable<boolean>;
19
- const tooltipPosition: PropTypes.Requireable<string>;
20
- }
6
+ const propTypes: {
7
+ /** The content for the CheckboxGroup Legend */
8
+ legend: PropTypes.Requireable<string>;
9
+ /** When true, legend is placed in line with the checkboxes */
10
+ legendInline: PropTypes.Requireable<boolean>;
11
+ /** Percentage width of legend (only when legend is inline) */
12
+ legendWidth: PropTypes.Requireable<number>;
13
+ /** Text alignment of legend when inline */
14
+ legendAlign: PropTypes.Requireable<string>;
15
+ /** Spacing between legend and field for inline legend, number multiplied by base spacing unit (8) */
16
+ legendSpacing: PropTypes.Requireable<number>;
17
+ /** The Checkboxes to be rendered in the group */
18
+ children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
19
+ /** Specifies the name prop to be applied to each button in the group */
20
+ groupName: PropTypes.Validator<string>;
21
+ /** Indicate that error has occurred
22
+ Pass string to display icon, tooltip and red border
23
+ Pass true boolean to only display red border */
24
+ error: PropTypes.Requireable<string | boolean>;
25
+ /** Indicate that warning has occurred
26
+ Pass string to display icon, tooltip and orange border
27
+ Pass true boolean to only display orange border */
28
+ warning: PropTypes.Requireable<string | boolean>;
29
+ /** Indicate additional information
30
+ Pass string to display icon, tooltip and blue border
31
+ Pass true boolean to only display blue border */
32
+ info: PropTypes.Requireable<string | boolean>;
33
+ /** Spacing between label and a field for inline label, given number will be multiplied by base spacing unit (8) */
34
+ labelSpacing: PropTypes.Requireable<number>;
35
+ /** Flag to configure component as mandatory */
36
+ required: PropTypes.Requireable<boolean>;
37
+ /** Overrides the default tooltip position */
38
+ tooltipPosition: PropTypes.Requireable<string>;
39
+ marginBottom?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
40
+ margin?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
41
+ m?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
42
+ marginLeft?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
43
+ ml?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
44
+ marginRight?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
45
+ mr?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
46
+ marginTop?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
47
+ mt?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
48
+ mb?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
49
+ marginX?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
50
+ mx?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
51
+ marginY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
52
+ my?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
53
+ };
21
54
  }
22
55
  import PropTypes from "prop-types";
@@ -1,8 +1,8 @@
1
1
  import * as React from "react";
2
2
  import { MarginProps } from "styled-system";
3
- import { ValidationPropTypes } from "../../__internal__/validations";
3
+ import { ValidationProps } from "../../__internal__/validations";
4
4
 
5
- interface CheckboxGroupProps extends ValidationPropTypes, MarginProps {
5
+ interface CheckboxGroupProps extends ValidationProps, MarginProps {
6
6
  /** The content for the CheckboxGroup Legend */
7
7
  legend?: string;
8
8
  /** When true, legend is placed in line with the checkboxes */
@@ -100,6 +100,20 @@ declare namespace Checkbox {
100
100
  tooltipPosition: PropTypes.Requireable<string>;
101
101
  /** Aria label for rendered help component */
102
102
  helpAriaLabel: PropTypes.Requireable<string>;
103
+ marginBottom?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
104
+ margin?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
105
+ m?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
106
+ marginLeft?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
107
+ ml?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
108
+ marginRight?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
109
+ mr?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
110
+ marginTop?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
111
+ mt?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
112
+ mb?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
113
+ marginX?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
114
+ mx?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
115
+ marginY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
116
+ my?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
103
117
  };
104
118
  const defaultProps: {
105
119
  reverse: boolean;
@@ -10,14 +10,36 @@ declare function Content({ variant, children, title, inline, align, titleWidth,
10
10
  bodyFullWidth?: boolean | undefined;
11
11
  }): JSX.Element;
12
12
  declare namespace Content {
13
- namespace propTypes {
14
- const variant: PropTypes.Requireable<string>;
15
- const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
16
- const title: PropTypes.Requireable<PropTypes.ReactNodeLike>;
17
- const inline: PropTypes.Requireable<boolean>;
18
- const align: PropTypes.Requireable<string>;
19
- const titleWidth: PropTypes.Requireable<string>;
20
- const bodyFullWidth: PropTypes.Requireable<boolean>;
21
- }
13
+ const propTypes: {
14
+ /** Applies a theme to the Content Value: primary, secondary */
15
+ variant: PropTypes.Requireable<string>;
16
+ /** The body of the content component */
17
+ children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
18
+ /** The title of the content component */
19
+ title: PropTypes.Requireable<PropTypes.ReactNodeLike>;
20
+ /** Displays the content inline with the title */
21
+ inline: PropTypes.Requireable<boolean>;
22
+ /** Aligns the content (left, center or right) */
23
+ align: PropTypes.Requireable<string>;
24
+ /** Sets a custom width for the title element */
25
+ titleWidth: PropTypes.Requireable<string>;
26
+ /** Over-rides the calculation of body width based on titleWidth.
27
+ * Sometimes we need the body to be full width while keeping a title width similar to other widths */
28
+ bodyFullWidth: PropTypes.Requireable<boolean>;
29
+ marginBottom?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
30
+ margin?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
31
+ m?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
32
+ marginLeft?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
33
+ ml?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
34
+ marginRight?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
35
+ mr?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
36
+ marginTop?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
37
+ mt?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
38
+ mb?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
39
+ marginX?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
40
+ mx?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
41
+ marginY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
42
+ my?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
43
+ };
22
44
  }
23
45
  import PropTypes from "prop-types";
@@ -1,39 +1,107 @@
1
- // The order of this array is important
2
- const EU_FORMATS = ["d M yyyy", "dd M yyyy", "d MM yyyy", "dd MM yyyy", "d M yy", "dd M yy", "d MM yy", "dd MM yy", "d", "d M", "dd", "d MM", "dd M", "dd MM"]; // The order of this array is important
1
+ // The order of this array is important, when an input value matches more than one format the last one is used
2
+ const EU_FORMATS = ["d M yyyy", "dd M yyyy", "d MM yyyy", "dd MM yyyy", "d M yy", "dd M yy", "d MM yy", "dd MM yy", "d", "d M", "dd", "d MM", "dd M", "dd MM"]; // The order of this array is important, when an input value matches more than one format the last one is used
3
3
 
4
- const NA_FORMATS = ["M", "M d", "MM", "M dd", "MM d", "MM dd", "M d yy", "MM d yy", "M dd yy", "MM dd yy", "M d yyyy", "MM d yyyy", "M dd yyyy", "MM dd yyyy"];
4
+ const NA_FORMATS = ["M", "M d", "MM", "M dd", "MM d", "MM dd", "M d yy", "MM d yy", "M dd yy", "MM dd yy", "M d yyyy", "MM d yyyy", "M dd yyyy", "MM dd yyyy"]; // The order of this array is important, when an input value matches more than one format the last one is used
5
+
6
+ const CN_FORMATS = ["yyyy M", "yyyy M d", "yyyy MM d", "yyyy M dd", "yyyy MM dd", "yy M", "yy MM", "yy M d", "yy MM d", "yy M dd", "yy MM dd", "M", "M d", "MM", "M dd", "MM d", "MM dd"];
5
7
  const SEPARATORS = ["", ".", ",", "-", "/", ":"];
8
+ const STANDARD_FORMAT_LENGTH = 10;
9
+
10
+ const generateFormats = (formatArray, separator, trailingChar) => {
11
+ const separators = SEPARATORS.includes(separator) ? SEPARATORS : [...SEPARATORS, separator];
12
+ return formatArray.reduce((arr, formatString) => {
13
+ const array = [...arr, formatString];
14
+
15
+ if (formatString.includes(" ")) {
16
+ separators.forEach(char => {
17
+ if (separator === char && trailingChar) {
18
+ array.push(`${formatString.replace(/ /g, char)}${trailingChar}`);
19
+ }
20
+
21
+ array.push(formatString.replace(/ /g, char));
22
+ });
23
+ }
24
+
25
+ return array;
26
+ }, []);
27
+ };
28
+
29
+ const getOutputFormatForLocale = localeCode => {
30
+ const formatMap = {
31
+ day: "dd",
32
+ month: "MM",
33
+ year: "yyyy"
34
+ };
35
+ const formatter = new Intl.DateTimeFormat(localeCode);
36
+ let separator;
37
+ const format = formatter.formatToParts(new Date()).map(({
38
+ type,
39
+ value
40
+ }) => {
41
+ if (type !== "literal") {
42
+ return formatMap[type];
43
+ }
44
+
45
+ if (!separator) {
46
+ separator = value;
47
+ }
48
+
49
+ return value;
50
+ }).join("");
51
+
52
+ if (localeCode.startsWith("bg")) {
53
+ // this locale adds an additional char that has no effect on the output formatting
54
+ return {
55
+ format: format.substring(0, STANDARD_FORMAT_LENGTH),
56
+ separator
57
+ };
58
+ }
6
59
 
7
- const generateFormats = formatArray => formatArray.reduce((arr, formatString) => {
8
- const array = [...arr, formatString];
60
+ return {
61
+ format,
62
+ separator
63
+ };
64
+ };
9
65
 
10
- if (formatString.includes(" ")) {
11
- SEPARATORS.forEach(char => array.push(formatString.replace(/ /g, char)));
66
+ const getInputFormatsArrayForLocale = format => {
67
+ if (format.startsWith("y")) {
68
+ return CN_FORMATS;
12
69
  }
13
70
 
14
- return array;
15
- }, []);
71
+ if (format.startsWith("M")) {
72
+ return NA_FORMATS;
73
+ }
74
+
75
+ return EU_FORMATS;
76
+ }; // we need this to handle for formats that add extra chars at the end of the format
77
+
78
+
79
+ const getTrailingChar = format => {
80
+ const lastChar = format.split("").pop();
81
+ return ["y", "M", "d"].includes(lastChar) ? "" : lastChar;
82
+ };
16
83
 
17
84
  const getFormatData = ({
18
85
  code
19
86
  }) => {
20
87
  if (["en-CA", "en-US"].includes(code)) {
88
+ const format = "MM/dd/yyyy";
89
+ const formats = getInputFormatsArrayForLocale(format);
21
90
  return {
22
- format: "MM/dd/yyyy",
23
- formats: generateFormats(NA_FORMATS)
24
- };
25
- }
26
-
27
- if (code === "de") {
28
- return {
29
- format: "dd.MM.yyyy",
30
- formats: generateFormats(EU_FORMATS)
91
+ format,
92
+ formats: generateFormats(formats, "/")
31
93
  };
32
94
  }
33
95
 
96
+ const {
97
+ format,
98
+ separator
99
+ } = getOutputFormatForLocale(code);
100
+ const outputFormat = ["fr-CA", "en-ZA", "ar-EG"].includes(code) ? "dd/MM/yyyy" : format;
101
+ const formatsForLocale = getInputFormatsArrayForLocale(outputFormat);
34
102
  return {
35
- format: "dd/MM/yyyy",
36
- formats: generateFormats(EU_FORMATS)
103
+ format: outputFormat,
104
+ formats: generateFormats(formatsForLocale, separator, getTrailingChar(format))
37
105
  };
38
106
  };
39
107
 
@@ -28,21 +28,31 @@ function hasMatchedFormat(formatString, valueString, fullFormat, fullValue) {
28
28
  return formatString.length === valueString.length && isMatch(formatString, valueString);
29
29
  }
30
30
 
31
+ const THRESHOLD_FOR_ADDITIONAL_YEARS = 69;
31
32
  export function additionalYears(formatString, value) {
32
33
  if (formatString.split("y").length - 1 !== 2) {
33
34
  return [formatString, value];
34
35
  }
35
36
 
36
- let year = value.substring(value.length - 2);
37
- const dayAndMonth = value.substring(0, value.length - 2);
37
+ const formatStartWithYear = formatString.startsWith("yy");
38
+ const yearStringStartIndex = formatStartWithYear ? 0 : value.length - 2;
39
+ const yearStringEndIndex = formatStartWithYear ? 2 : value.length;
40
+ const dayAndMonthStringStartIndex = formatStartWithYear ? yearStringEndIndex : 0;
41
+ const dayAndMonthStringEndIndex = formatStartWithYear ? value.length : value.length - 2;
42
+ let year = value.substring(yearStringStartIndex, yearStringEndIndex);
43
+ const dayAndMonth = value.substring(dayAndMonthStringStartIndex, dayAndMonthStringEndIndex);
38
44
  const yearAsNumber = Number(year);
39
45
 
40
- if (yearAsNumber < 69) {
46
+ if (yearAsNumber < THRESHOLD_FOR_ADDITIONAL_YEARS) {
41
47
  year = String(2000 + yearAsNumber);
42
48
  } else {
43
49
  year = String(1900 + yearAsNumber);
44
50
  }
45
51
 
52
+ if (formatStartWithYear) {
53
+ return [`yyyy${formatString.substring(2, formatString.length)}`, `${year}${dayAndMonth}`];
54
+ }
55
+
46
56
  return [`${formatString.substring(0, formatString.length - 2)}yyyy`, `${dayAndMonth}${year}`];
47
57
  }
48
58
 
@@ -72,7 +72,7 @@ const DateInput = ({
72
72
  } = ev.target;
73
73
  const [matchedFormat, matchedValue] = findMatchedFormatAndValue(ev.target.value, formats);
74
74
  const formattedValueString = ev.type === "blur" ? formattedValue(format, selectedDays) : ev.target.value;
75
- const rawValue = isDateValid(parseDate(matchedFormat, matchedValue)) ? formatToISO(matchedFormat, matchedValue) : computeInvalidRawValue(ev.target.value);
75
+ const rawValue = isDateValid(parseDate(matchedFormat, matchedValue)) ? formatToISO(...additionalYears(matchedFormat, matchedValue)) : computeInvalidRawValue(ev.target.value);
76
76
  ev.target = { ...(name && {
77
77
  name
78
78
  }),
@@ -195,7 +195,9 @@ const DateInput = ({
195
195
  return;
196
196
  }
197
197
 
198
- isBlurBlocked.current = true;
198
+ if (setInputRefMap) {
199
+ isBlurBlocked.current = true;
200
+ }
199
201
 
200
202
  if (ev.target.type === "text" && !open) {
201
203
  setOpen(true);
@@ -205,6 +207,11 @@ const DateInput = ({
205
207
  }
206
208
  };
207
209
 
210
+ const handleIconMouseDown = e => {
211
+ isBlurBlocked.current = true;
212
+ handleMouseDown(e);
213
+ };
214
+
208
215
  const handlePickerMouseDown = () => {
209
216
  isBlurBlocked.current = true;
210
217
  };
@@ -247,7 +254,7 @@ const DateInput = ({
247
254
 
248
255
  if (matchedFormat && matchedValue && isDateValid(parseDate(matchedFormat, matchedValue))) {
249
256
  setSelectedDays(parseDate(...additionalYears(matchedFormat, matchedValue)));
250
- } else if (checkISOFormatAndLength(value)) {
257
+ } else if (checkISOFormatAndLength(value) && isInitialValue.current) {
251
258
  setSelectedDays(parseISODate(value));
252
259
  } else {
253
260
  setSelectedDays(undefined);
@@ -255,7 +262,7 @@ const DateInput = ({
255
262
  }, [value, formats]);
256
263
 
257
264
  const computedValue = () => {
258
- if (checkISOFormatAndLength(value)) {
265
+ if (checkISOFormatAndLength(value) && isInitialValue.current) {
259
266
  return formattedValue(format, parseISODate(value));
260
267
  }
261
268
 
@@ -265,6 +272,7 @@ const DateInput = ({
265
272
  const replaceSeparators = () => value.split("").map(char => char === valueSeparator ? formatSeparator : char).join("");
266
273
 
267
274
  if (isInitialValue.current && valueSeparator !== formatSeparator && isDateValid(parseDate(format, replaceSeparators()))) {
275
+ isInitialValue.current = false;
268
276
  const [matchedFormat, matchedValue] = findMatchedFormatAndValue(replaceSeparators(), formats);
269
277
  return formattedValue(format, parseDate(...additionalYears(matchedFormat, matchedValue)));
270
278
  }
@@ -289,7 +297,7 @@ const DateInput = ({
289
297
  onKeyDown: handleKeyDown,
290
298
  iconOnClick: handleClick,
291
299
  onMouseDown: handleMouseDown,
292
- iconOnMouseDown: handleMouseDown,
300
+ iconOnMouseDown: handleIconMouseDown,
293
301
  inputIcon: "calendar",
294
302
  labelInline: labelInline,
295
303
  inputRef: assignInput,
@@ -13,25 +13,73 @@ declare function DateRange({ endDateProps, id, labelsInline, name, onBlur, onCha
13
13
  value: any;
14
14
  }): JSX.Element;
15
15
  declare namespace DateRange {
16
- namespace propTypes {
17
- const endLabel: PropTypes.Requireable<string>;
18
- const onChange: PropTypes.Validator<(...args: any[]) => any>;
19
- const onBlur: PropTypes.Requireable<(...args: any[]) => any>;
20
- const value: PropTypes.Validator<(string | null | undefined)[]>;
21
- const startError: PropTypes.Requireable<string | boolean>;
22
- const startWarning: PropTypes.Requireable<string | boolean>;
23
- const startInfo: PropTypes.Requireable<string | boolean>;
24
- const endError: PropTypes.Requireable<string | boolean>;
25
- const endWarning: PropTypes.Requireable<string | boolean>;
26
- const endInfo: PropTypes.Requireable<string | boolean>;
27
- const validationOnLabel: PropTypes.Requireable<boolean>;
28
- const startLabel: PropTypes.Requireable<string>;
29
- const labelsInline: PropTypes.Requireable<boolean>;
30
- const startDateProps: PropTypes.Requireable<PropTypes.InferProps<any>>;
31
- const endDateProps: PropTypes.Requireable<PropTypes.InferProps<any>>;
32
- const name: PropTypes.Requireable<string>;
33
- const id: PropTypes.Requireable<string>;
34
- const tooltipPosition: PropTypes.Requireable<string>;
35
- }
16
+ const propTypes: {
17
+ /**
18
+ * Optional label for endDate field
19
+ */
20
+ endLabel: PropTypes.Requireable<string>;
21
+ /** Custom callback - receives array of startDate and endDate */
22
+ onChange: PropTypes.Validator<(...args: any[]) => any>;
23
+ /** Custom callback - receives array of startDate and endDate */
24
+ onBlur: PropTypes.Requireable<(...args: any[]) => any>;
25
+ /** An array containing the value of startDate and endDate */
26
+ value: PropTypes.Validator<(string | null | undefined)[]>;
27
+ /** Indicate that error has occurred on start date
28
+ Pass string to display icon, tooltip and red border
29
+ Pass true boolean to only display red border */
30
+ startError: PropTypes.Requireable<string | boolean>;
31
+ /** Indicate that warning has occurred on start date
32
+ Pass string to display icon, tooltip and orange border
33
+ Pass true boolean to only display orange border */
34
+ startWarning: PropTypes.Requireable<string | boolean>;
35
+ /** Indicate additional information for start date
36
+ Pass string to display icon, tooltip and blue border
37
+ Pass true boolean to only display blue border */
38
+ startInfo: PropTypes.Requireable<string | boolean>;
39
+ /** Indicate that error has occurred on end date
40
+ Pass string to display icon, tooltip and red border
41
+ Pass true boolean to only display red border */
42
+ endError: PropTypes.Requireable<string | boolean>;
43
+ /** Indicate that warning has occurred on end date
44
+ Pass string to display icon, tooltip and orange border
45
+ Pass true boolean to only display orange border */
46
+ endWarning: PropTypes.Requireable<string | boolean>;
47
+ /** Indicate additional information for end date
48
+ Pass string to display icon, tooltip and blue border
49
+ Pass true boolean to only display blue border */
50
+ endInfo: PropTypes.Requireable<string | boolean>;
51
+ /** When true, validation icons will be placed on labels instead of being placed on the inputs */
52
+ validationOnLabel: PropTypes.Requireable<boolean>;
53
+ /**
54
+ * Optional label for startDate field
55
+ */
56
+ startLabel: PropTypes.Requireable<string>;
57
+ /** Display labels inline */
58
+ labelsInline: PropTypes.Requireable<boolean>;
59
+ /** Props for the child start Date component. For more information see the Date component's [prop table](https://carbon.sage.com/iframe.html?id=date-input--default-story&viewMode=docs#props) */
60
+ startDateProps: PropTypes.Requireable<PropTypes.InferProps<any>>;
61
+ /** Props for the child end Date component. For more information see the Date component's [prop table](https://carbon.sage.com/iframe.html?id=date-input--default-story&viewMode=docs#props) */
62
+ endDateProps: PropTypes.Requireable<PropTypes.InferProps<any>>;
63
+ /** An optional string prop to provide a name to the component */
64
+ name: PropTypes.Requireable<string>;
65
+ /** An optional string prop to provide an id to the component */
66
+ id: PropTypes.Requireable<string>;
67
+ /** Overrides the default tooltip position */
68
+ tooltipPosition: PropTypes.Requireable<string>;
69
+ marginBottom?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
70
+ margin?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
71
+ m?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
72
+ marginLeft?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
73
+ ml?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
74
+ marginRight?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
75
+ mr?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
76
+ marginTop?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
77
+ mt?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
78
+ mb?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
79
+ marginX?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
80
+ mx?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
81
+ marginY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
82
+ my?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
83
+ };
36
84
  }
37
85
  import PropTypes from "prop-types";
@@ -76,6 +76,20 @@ declare namespace Decimal {
76
76
  locale: PropTypes.Requireable<string>;
77
77
  /** Aria label for rendered help component */
78
78
  helpAriaLabel: PropTypes.Requireable<string>;
79
+ marginBottom?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
80
+ margin?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
81
+ m?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
82
+ marginLeft?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
83
+ ml?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
84
+ marginRight?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
85
+ mr?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
86
+ marginTop?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
87
+ mt?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
88
+ mb?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
89
+ marginX?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
90
+ mx?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
91
+ marginY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
92
+ my?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
79
93
  };
80
94
  namespace defaultProps {
81
95
  const precision: number;
@@ -7,11 +7,39 @@ declare function Detail({ className, icon, footnote, children, ...rest }: {
7
7
  children: any;
8
8
  }): JSX.Element;
9
9
  declare namespace Detail {
10
- namespace propTypes {
11
- const className: PropTypes.Requireable<string>;
12
- const icon: PropTypes.Requireable<string>;
13
- const footnote: PropTypes.Requireable<string>;
14
- const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
15
- }
10
+ const propTypes: {
11
+ /**
12
+ * Custom className
13
+ */
14
+ className: PropTypes.Requireable<string>;
15
+ /**
16
+ * <a href="https://carbon.sage.com/?path=/docs/icon--list-of-icons#list-of-icons" target="_blank">List of supported icons</a>
17
+ *
18
+ * The type of icon to use.
19
+ */
20
+ icon: PropTypes.Requireable<string>;
21
+ /**
22
+ * A small detail to display under the main content.
23
+ */
24
+ footnote: PropTypes.Requireable<string>;
25
+ /**
26
+ * The rendered children of the component.
27
+ */
28
+ children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
29
+ marginBottom?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
30
+ margin?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
31
+ m?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
32
+ marginLeft?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
33
+ ml?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
34
+ marginRight?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
35
+ mr?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
36
+ marginTop?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
37
+ mt?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
38
+ mb?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
39
+ marginX?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
40
+ mx?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
41
+ marginY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
42
+ my?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
43
+ };
16
44
  }
17
45
  import PropTypes from "prop-types";
@@ -5,9 +5,29 @@ declare function DraggableContainer({ children, getOrder, ...rest }: {
5
5
  getOrder: any;
6
6
  }): JSX.Element;
7
7
  declare namespace DraggableContainer {
8
- namespace propTypes {
9
- const getOrder: PropTypes.Requireable<(...args: any[]) => any>;
10
- function children(props: any, propName: any, componentName: any): undefined;
11
- }
8
+ const propTypes: {
9
+ /** Callback fired when order is changed */
10
+ getOrder: PropTypes.Requireable<(...args: any[]) => any>;
11
+ /**
12
+ * The content of the component
13
+ *
14
+ * `<DraggableItem />` is required to make `Draggable` works
15
+ * */
16
+ children: (props: any, propName: any, componentName: any) => undefined;
17
+ marginBottom?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
18
+ margin?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
19
+ m?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
20
+ marginLeft?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
21
+ ml?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
22
+ marginRight?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
23
+ mr?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
24
+ marginTop?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
25
+ mt?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
26
+ mb?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
27
+ marginX?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
28
+ mx?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
29
+ marginY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
30
+ my?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
31
+ };
12
32
  }
13
33
  import PropTypes from "prop-types";