@cloudoperators/juno-ui-components 2.36.0 → 2.38.0

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 (215) hide show
  1. package/build/index.js +1607 -1595
  2. package/build/src/components/AppShell/AppShell.component.d.ts +6 -6
  3. package/build/src/components/AppShell/AppShell.component.d.ts.map +1 -1
  4. package/build/src/components/BreadcrumbItem/BreadcrumbItem.component.d.ts +1 -1
  5. package/build/src/components/BreadcrumbItem/BreadcrumbItem.component.d.ts.map +1 -1
  6. package/build/src/components/Button/Button.component.d.ts +1 -1
  7. package/build/src/components/Button/Button.component.d.ts.map +1 -1
  8. package/build/src/components/Button/Button.stories.d.ts +8 -0
  9. package/build/src/components/Button/Button.stories.d.ts.map +1 -1
  10. package/build/src/components/ButtonRow/ButtonRow.stories.d.ts +0 -1
  11. package/build/src/components/ButtonRow/ButtonRow.stories.d.ts.map +1 -1
  12. package/build/src/components/Checkbox/Checkbox.component.d.ts +5 -5
  13. package/build/src/components/Checkbox/Checkbox.component.d.ts.map +1 -1
  14. package/build/src/components/CheckboxGroup/CheckboxGroup.component.d.ts +7 -8
  15. package/build/src/components/CheckboxGroup/CheckboxGroup.component.d.ts.map +1 -1
  16. package/build/src/components/CheckboxGroup/CheckboxGroup.stories.d.ts +7 -0
  17. package/build/src/components/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  18. package/build/src/components/CodeBlock/CodeBlock.component.d.ts +4 -4
  19. package/build/src/components/CodeBlock/CodeBlock.component.d.ts.map +1 -1
  20. package/build/src/components/CodeBlock/CodeBlock.stories.d.ts +5 -0
  21. package/build/src/components/CodeBlock/CodeBlock.stories.d.ts.map +1 -1
  22. package/build/src/components/ComboBox/ComboBox.component.d.ts +7 -8
  23. package/build/src/components/ComboBox/ComboBox.component.d.ts.map +1 -1
  24. package/build/src/components/Container/Container.stories.d.ts +5 -0
  25. package/build/src/components/Container/Container.stories.d.ts.map +1 -1
  26. package/build/src/components/ContentContainer/ContentContainer.component.d.ts +3 -3
  27. package/build/src/components/ContentContainer/ContentContainer.component.d.ts.map +1 -1
  28. package/build/src/components/ContentHeading/ContentHeading.component.d.ts +3 -3
  29. package/build/src/components/ContentHeading/ContentHeading.component.d.ts.map +1 -1
  30. package/build/src/components/DataGrid/DataGrid.component.d.ts +1 -1
  31. package/build/src/components/DataGrid/DataGrid.component.d.ts.map +1 -1
  32. package/build/src/components/DataGrid/DataGrid.stories.d.ts +5 -0
  33. package/build/src/components/DataGrid/DataGrid.stories.d.ts.map +1 -1
  34. package/build/src/components/DataGridCell/DataGridCell.component.d.ts +1 -1
  35. package/build/src/components/DataGridCell/DataGridCell.component.d.ts.map +1 -1
  36. package/build/src/components/DataGridCell/DataGridCell.stories.d.ts +5 -0
  37. package/build/src/components/DataGridCell/DataGridCell.stories.d.ts.map +1 -1
  38. package/build/src/components/DataGridCheckboxCell/DataGridCheckboxCell.stories.d.ts +0 -5
  39. package/build/src/components/DataGridCheckboxCell/DataGridCheckboxCell.stories.d.ts.map +1 -1
  40. package/build/src/components/DataGridFoot/DataGridFoot.component.d.ts +1 -1
  41. package/build/src/components/DataGridFoot/DataGridFoot.component.d.ts.map +1 -1
  42. package/build/src/components/DataGridFoot/DataGridFoot.stories.d.ts +5 -0
  43. package/build/src/components/DataGridFoot/DataGridFoot.stories.d.ts.map +1 -1
  44. package/build/src/components/DataGridHeadCell/DataGridHeadCell.component.d.ts +1 -1
  45. package/build/src/components/DataGridHeadCell/DataGridHeadCell.component.d.ts.map +1 -1
  46. package/build/src/components/DataGridHeadCell/DataGridHeadCell.stories.d.ts +5 -0
  47. package/build/src/components/DataGridHeadCell/DataGridHeadCell.stories.d.ts.map +1 -1
  48. package/build/src/components/DataGridRow/DataGridRow.component.d.ts +1 -1
  49. package/build/src/components/DataGridRow/DataGridRow.component.d.ts.map +1 -1
  50. package/build/src/components/DataGridRow/DataGridRow.stories.d.ts +5 -0
  51. package/build/src/components/DataGridRow/DataGridRow.stories.d.ts.map +1 -1
  52. package/build/src/components/DataGridToolbar/DataGridToolbar.component.d.ts +2 -2
  53. package/build/src/components/DataGridToolbar/DataGridToolbar.component.d.ts.map +1 -1
  54. package/build/src/components/DataGridToolbar/DataGridToolbar.stories.d.ts +10 -4
  55. package/build/src/components/DataGridToolbar/DataGridToolbar.stories.d.ts.map +1 -1
  56. package/build/src/components/DateTimePicker/DateTimePicker.component.d.ts +21 -40
  57. package/build/src/components/DateTimePicker/DateTimePicker.component.d.ts.map +1 -1
  58. package/build/src/components/FormHint/FormHint.component.d.ts +1 -1
  59. package/build/src/components/FormHint/FormHint.component.d.ts.map +1 -1
  60. package/build/src/components/FormattedText/FormattedText.stories.d.ts +5 -0
  61. package/build/src/components/FormattedText/FormattedText.stories.d.ts.map +1 -1
  62. package/build/src/components/Icon/Icon.component.d.ts +1 -1
  63. package/build/src/components/Icon/Icon.component.d.ts.map +1 -1
  64. package/build/src/components/IntroBox/IntroBox.component.d.ts +4 -6
  65. package/build/src/components/IntroBox/IntroBox.component.d.ts.map +1 -1
  66. package/build/src/components/JsonViewer/JsonViewer.component.d.ts +3 -1
  67. package/build/src/components/JsonViewer/JsonViewer.component.d.ts.map +1 -1
  68. package/build/src/components/MainContainer/MainContainer.stories.d.ts +5 -0
  69. package/build/src/components/MainContainer/MainContainer.stories.d.ts.map +1 -1
  70. package/build/src/components/MainTabs/MainTabs.component.d.ts +2 -6
  71. package/build/src/components/MainTabs/MainTabs.component.d.ts.map +1 -1
  72. package/build/src/components/MainTabs/MainTabs.stories.d.ts +5 -0
  73. package/build/src/components/MainTabs/MainTabs.stories.d.ts.map +1 -1
  74. package/build/src/components/Modal/Modal.component.d.ts +5 -6
  75. package/build/src/components/Modal/Modal.component.d.ts.map +1 -1
  76. package/build/src/components/Modal/Modal.stories.d.ts +5 -0
  77. package/build/src/components/Modal/Modal.stories.d.ts.map +1 -1
  78. package/build/src/components/ModalFooter/ModalFooter.component.d.ts +5 -5
  79. package/build/src/components/ModalFooter/ModalFooter.component.d.ts.map +1 -1
  80. package/build/src/components/NativeSelect/NativeSelect.component.d.ts +3 -3
  81. package/build/src/components/NativeSelect/NativeSelect.component.d.ts.map +1 -1
  82. package/build/src/components/Navigation/Navigation.component.d.ts +7 -10
  83. package/build/src/components/Navigation/Navigation.component.d.ts.map +1 -1
  84. package/build/src/components/Navigation/Navigation.stories.d.ts +11 -4
  85. package/build/src/components/Navigation/Navigation.stories.d.ts.map +1 -1
  86. package/build/src/components/NavigationItem/NavigationItem.component.d.ts +3 -5
  87. package/build/src/components/NavigationItem/NavigationItem.component.d.ts.map +1 -1
  88. package/build/src/components/PageFooter/PageFooter.stories.d.ts +5 -0
  89. package/build/src/components/PageFooter/PageFooter.stories.d.ts.map +1 -1
  90. package/build/src/components/PageHeader/PageHeader.component.d.ts +5 -5
  91. package/build/src/components/PageHeader/PageHeader.component.d.ts.map +1 -1
  92. package/build/src/components/PageHeader/PageHeader.stories.d.ts.map +1 -1
  93. package/build/src/components/Pagination/Pagination.stories.d.ts.map +1 -1
  94. package/build/src/components/Panel/Panel.component.d.ts +2 -2
  95. package/build/src/components/Panel/Panel.component.d.ts.map +1 -1
  96. package/build/src/components/PanelBody/PanelBody.component.d.ts +2 -2
  97. package/build/src/components/PanelBody/PanelBody.component.d.ts.map +1 -1
  98. package/build/src/components/Pill/Pill.component.d.ts +2 -2
  99. package/build/src/components/Pill/Pill.component.d.ts.map +1 -1
  100. package/build/src/components/Pill/Pill.stories.d.ts +16 -1
  101. package/build/src/components/Pill/Pill.stories.d.ts.map +1 -1
  102. package/build/src/components/PopupMenu/PopupMenu.component.d.ts +8 -8
  103. package/build/src/components/PopupMenu/PopupMenu.component.d.ts.map +1 -1
  104. package/build/src/components/PopupMenu/PopupMenu.stories.d.ts.map +1 -1
  105. package/build/src/components/Radio/Radio.component.d.ts +5 -7
  106. package/build/src/components/Radio/Radio.component.d.ts.map +1 -1
  107. package/build/src/components/RadioGroup/RadioGroup.component.d.ts +6 -6
  108. package/build/src/components/RadioGroup/RadioGroup.component.d.ts.map +1 -1
  109. package/build/src/components/RadioGroup/RadioGroup.stories.d.ts +7 -0
  110. package/build/src/components/RadioGroup/RadioGroup.stories.d.ts.map +1 -1
  111. package/build/src/components/SearchInput/SearchInput.component.d.ts +6 -6
  112. package/build/src/components/SearchInput/SearchInput.component.d.ts.map +1 -1
  113. package/build/src/components/SecretText/SecretText.component.d.ts +6 -8
  114. package/build/src/components/SecretText/SecretText.component.d.ts.map +1 -1
  115. package/build/src/components/Select/Select.component.d.ts +8 -8
  116. package/build/src/components/Select/Select.component.d.ts.map +1 -1
  117. package/build/src/components/SelectOption/SelectOption.stories.d.ts +8 -1
  118. package/build/src/components/SelectOption/SelectOption.stories.d.ts.map +1 -1
  119. package/build/src/components/SideNavigation/SideNavigation.component.d.ts +4 -7
  120. package/build/src/components/SideNavigation/SideNavigation.component.d.ts.map +1 -1
  121. package/build/src/components/SideNavigationItem/SideNavigationItem.component.d.ts +2 -2
  122. package/build/src/components/SideNavigationItem/SideNavigationItem.component.d.ts.map +1 -1
  123. package/build/src/components/Spinner/Spinner.component.d.ts +1 -1
  124. package/build/src/components/Spinner/Spinner.component.d.ts.map +1 -1
  125. package/build/src/components/Stack/Stack.component.d.ts +1 -1
  126. package/build/src/components/Stack/Stack.component.d.ts.map +1 -1
  127. package/build/src/components/Stack/Stack.stories.d.ts +5 -0
  128. package/build/src/components/Stack/Stack.stories.d.ts.map +1 -1
  129. package/build/src/components/StyleProvider/StyleProvider.component.d.ts +3 -3
  130. package/build/src/components/StyleProvider/StyleProvider.component.d.ts.map +1 -1
  131. package/build/src/components/Switch/Switch.component.d.ts +4 -4
  132. package/build/src/components/Switch/Switch.component.d.ts.map +1 -1
  133. package/build/src/components/Tab/Tab.component.d.ts +1 -1
  134. package/build/src/components/Tab/Tab.component.d.ts.map +1 -1
  135. package/build/src/components/Tab/Tab.stories.d.ts +5 -0
  136. package/build/src/components/Tab/Tab.stories.d.ts.map +1 -1
  137. package/build/src/components/TabList/TabList.component.d.ts +1 -2
  138. package/build/src/components/TabList/TabList.component.d.ts.map +1 -1
  139. package/build/src/components/TabList/TabList.stories.d.ts +6 -1
  140. package/build/src/components/TabList/TabList.stories.d.ts.map +1 -1
  141. package/build/src/components/TabNavigation/TabNavigation.component.d.ts +4 -7
  142. package/build/src/components/TabNavigation/TabNavigation.component.d.ts.map +1 -1
  143. package/build/src/components/TabNavigationItem/TabNavigationItem.component.d.ts +1 -1
  144. package/build/src/components/TabPanel/TabPanel.component.d.ts +1 -1
  145. package/build/src/components/TabPanel/TabPanel.component.d.ts.map +1 -1
  146. package/build/src/components/TabPanel/TabPanel.stories.d.ts +5 -0
  147. package/build/src/components/TabPanel/TabPanel.stories.d.ts.map +1 -1
  148. package/build/src/components/Tabs/Tabs.component.d.ts +2 -6
  149. package/build/src/components/Tabs/Tabs.component.d.ts.map +1 -1
  150. package/build/src/components/Tabs/Tabs.stories.d.ts +5 -0
  151. package/build/src/components/Tabs/Tabs.stories.d.ts.map +1 -1
  152. package/build/src/components/TextInput/TextInput.component.d.ts +6 -6
  153. package/build/src/components/TextInput/TextInput.component.d.ts.map +1 -1
  154. package/build/src/components/Textarea/Textarea.component.d.ts +6 -6
  155. package/build/src/components/Textarea/Textarea.component.d.ts.map +1 -1
  156. package/build/src/components/ThemeToggle/ThemeToggle.component.d.ts +1 -1
  157. package/build/src/components/ThemeToggle/ThemeToggle.component.d.ts.map +1 -1
  158. package/build/src/components/Toast/Toast.component.d.ts +1 -1
  159. package/build/src/components/Toast/Toast.component.d.ts.map +1 -1
  160. package/build/src/components/TopNavigation/TopNavigation.component.d.ts +4 -7
  161. package/build/src/components/TopNavigation/TopNavigation.component.d.ts.map +1 -1
  162. package/build/src/components/TopNavigationItem/TopNavigationItem.component.d.ts +2 -2
  163. package/build/src/components/TopNavigationItem/TopNavigationItem.component.d.ts.map +1 -1
  164. package/build/src/{components → deprecated_js}/ContextMenu/ContextMenu.component.d.ts +1 -1
  165. package/build/src/deprecated_js/ContextMenu/ContextMenu.component.d.ts.map +1 -0
  166. package/build/src/{components → deprecated_js}/ContextMenu/ContextMenu.stories.d.ts +1 -1
  167. package/build/src/deprecated_js/ContextMenu/ContextMenu.stories.d.ts.map +1 -0
  168. package/build/src/deprecated_js/ContextMenu/ContextMenu.test.d.ts.map +1 -0
  169. package/build/src/deprecated_js/ContextMenu/index.d.ts.map +1 -0
  170. package/build/src/deprecated_js/Menu/Menu.component.d.ts.map +1 -0
  171. package/build/src/{components → deprecated_js}/Menu/Menu.stories.d.ts +1 -1
  172. package/build/src/deprecated_js/Menu/Menu.stories.d.ts.map +1 -0
  173. package/build/src/deprecated_js/Menu/Menu.test.d.ts.map +1 -0
  174. package/build/src/deprecated_js/Menu/index.d.ts.map +1 -0
  175. package/build/src/{components → deprecated_js}/MenuItem/MenuItem.component.d.ts +1 -1
  176. package/build/src/deprecated_js/MenuItem/MenuItem.component.d.ts.map +1 -0
  177. package/build/src/deprecated_js/MenuItem/MenuItem.stories.d.ts.map +1 -0
  178. package/build/src/deprecated_js/MenuItem/MenuItem.test.d.ts.map +1 -0
  179. package/build/src/deprecated_js/MenuItem/index.d.ts.map +1 -0
  180. package/build/src/deprecated_js/MenuSection/MenuSection.component.d.ts.map +1 -0
  181. package/build/src/deprecated_js/MenuSection/MenuSection.stories.d.ts.map +1 -0
  182. package/build/src/deprecated_js/MenuSection/MenuSection.test.d.ts.map +1 -0
  183. package/build/src/deprecated_js/MenuSection/index.d.ts.map +1 -0
  184. package/build/src/index.d.ts +5 -4
  185. package/build/src/index.d.ts.map +1 -1
  186. package/build/style.css +1 -1
  187. package/package.json +1 -1
  188. package/build/src/components/ContextMenu/ContextMenu.component.d.ts.map +0 -1
  189. package/build/src/components/ContextMenu/ContextMenu.stories.d.ts.map +0 -1
  190. package/build/src/components/ContextMenu/ContextMenu.test.d.ts.map +0 -1
  191. package/build/src/components/ContextMenu/index.d.ts.map +0 -1
  192. package/build/src/components/Menu/Menu.component.d.ts.map +0 -1
  193. package/build/src/components/Menu/Menu.stories.d.ts.map +0 -1
  194. package/build/src/components/Menu/Menu.test.d.ts.map +0 -1
  195. package/build/src/components/Menu/index.d.ts.map +0 -1
  196. package/build/src/components/MenuItem/MenuItem.component.d.ts.map +0 -1
  197. package/build/src/components/MenuItem/MenuItem.stories.d.ts.map +0 -1
  198. package/build/src/components/MenuItem/MenuItem.test.d.ts.map +0 -1
  199. package/build/src/components/MenuItem/index.d.ts.map +0 -1
  200. package/build/src/components/MenuSection/MenuSection.component.d.ts.map +0 -1
  201. package/build/src/components/MenuSection/MenuSection.stories.d.ts.map +0 -1
  202. package/build/src/components/MenuSection/MenuSection.test.d.ts.map +0 -1
  203. package/build/src/components/MenuSection/index.d.ts.map +0 -1
  204. /package/build/src/{components → deprecated_js}/ContextMenu/ContextMenu.test.d.ts +0 -0
  205. /package/build/src/{components → deprecated_js}/ContextMenu/index.d.ts +0 -0
  206. /package/build/src/{components → deprecated_js}/Menu/Menu.component.d.ts +0 -0
  207. /package/build/src/{components → deprecated_js}/Menu/Menu.test.d.ts +0 -0
  208. /package/build/src/{components → deprecated_js}/Menu/index.d.ts +0 -0
  209. /package/build/src/{components → deprecated_js}/MenuItem/MenuItem.stories.d.ts +0 -0
  210. /package/build/src/{components → deprecated_js}/MenuItem/MenuItem.test.d.ts +0 -0
  211. /package/build/src/{components → deprecated_js}/MenuItem/index.d.ts +0 -0
  212. /package/build/src/{components → deprecated_js}/MenuSection/MenuSection.component.d.ts +0 -0
  213. /package/build/src/{components → deprecated_js}/MenuSection/MenuSection.stories.d.ts +0 -0
  214. /package/build/src/{components → deprecated_js}/MenuSection/MenuSection.test.d.ts +0 -0
  215. /package/build/src/{components → deprecated_js}/MenuSection/index.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React, ReactNode } from 'react';
2
2
  export type SelectContextProps = {
3
3
  truncateOptions: boolean;
4
4
  addOptionValueAndLabel: (value: unknown, label: unknown, children: unknown) => void;
@@ -8,19 +8,19 @@ export interface SelectProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonE
8
8
  /** Pass an aria-label to the Select toggle button */
9
9
  ariaLabel?: string;
10
10
  /** The children to render as options. Use the SelectOption component, and SelectDivider if needed. */
11
- children?: React.ReactNode;
11
+ children?: ReactNode;
12
12
  /** Pass a custom className to the internal Select toggle button */
13
13
  className?: string;
14
14
  /** Pass a defaultValue to use as an uncontrolled component that handles its state internally. When setting `multiple` on the Select pass an Array instead of a string. */
15
- defaultValue?: string;
15
+ defaultValue?: string | string[];
16
16
  /** Whether the Select is disabled */
17
17
  disabled?: boolean;
18
18
  /** Whether the Select has an error, e.g. when loading options. When validated negatively, use `invalid` instead. */
19
19
  error?: boolean;
20
20
  /** A small message rendered in red text below the Select toggle. */
21
- errortext?: React.ReactNode;
21
+ errortext?: ReactNode;
22
22
  /** A small, neutral text rendered below the Select toggle to explain meaning and significance of the Select element */
23
- helptext?: React.ReactNode;
23
+ helptext?: ReactNode;
24
24
  /** Pass an id to the Select toggle */
25
25
  id?: string;
26
26
  /** Whether the Select has been validated unsuccessfully / negatively */
@@ -38,19 +38,19 @@ export interface SelectProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonE
38
38
  /** Handle for openning of select */
39
39
  open?: boolean;
40
40
  /** LEGACY: Handler to be executed when the Select value changes. Here for backwards compatibility with apps based on older versions of Select. Use onChange instead. */
41
- onValueChange?: (...args: unknown[]) => unknown;
41
+ onValueChange?: (value?: string | number | string[]) => void;
42
42
  /** A placeholder to render when no value has been selected. Default is "Select…". */
43
43
  placeholder?: string;
44
44
  /** Whether a selection is required. Will show a small required marker next to the label. If no label is used, no marker will be visible. */
45
45
  required?: boolean;
46
46
  /** A note to render below the Select toggle in case the selected value has been positively validated. Will set the visible state of the Select toggle to `valid`. */
47
- successtext?: React.ReactNode;
47
+ successtext?: ReactNode;
48
48
  /** Whether long texts in options will be truncated with "…" or not. Default is false. The Select toggle label will always be truncated. */
49
49
  truncateOptions?: boolean;
50
50
  /** Whether the Select was positively validated. Will show a green checkmark icon inside the Select toggle. */
51
51
  valid?: boolean;
52
52
  /** The currently (pre-)selected value of the Select. Will trigger controlled mode. When setting `multiple` on the Select pass an Array instead of a string. */
53
- value?: unknown;
53
+ value?: string | number | string[];
54
54
  /** The label of the passed value or defaultValue. If you want to use controlled mode or pass as defaultValue in uncontrolled mode and additionally use labels for
55
55
  * human-readable SelectOptions you need to also pass the matching label for the passed value/defaultValue so that the Select component can render itself properly. */
56
56
  valueLabel?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Select.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/Select.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA6D,MAAM,OAAO,CAAA;AAUjF,OAAO,eAAe,CAAA;AAwDtB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,eAAe,EAAE,OAAO,CAAA;IAExB,sBAAsB,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAA;CACpF,CAAA;AACD,eAAO,MAAM,aAAa,+CAA2D,CAAA;AAErF,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,CAAC;IAClG,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,sGAAsG;IACtG,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2KAA2K;IAC3K,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,oHAAoH;IACpH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,oEAAoE;IACpE,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC3B,uHAAuH;IACvH,QAAQ,CAAC,EAAE,KA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CAAC,WAAW,CAuQxC,CAAA"}
1
+ {"version":3,"file":"Select.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/Select.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAsD,SAAS,EAAE,MAAM,OAAO,CAAA;AAU5F,OAAO,eAAe,CAAA;AAwDtB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,eAAe,EAAE,OAAO,CAAA;IAExB,sBAAsB,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAA;CACpF,CAAA;AACD,eAAO,MAAM,aAAa,+CAA2D,CAAA;AAErF,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,CAAC;IAClG,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,sGAAsG;IACtG,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2KAA2K;IAC3K,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAChC,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,oHAAoH;IACpH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,oEAAoE;IACpE,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,uHAAuH;IACvH,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,sCAAsC;IACtC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,wEAAwE;IACxE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,yDAAyD;IACzD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,4FAA4F;IAC5F,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,4KAA4K;IAC5K,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iFAAiF;IACjF,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,6DAA6D;IAE7D,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAA;IACvD,oCAAoC;IACpC,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,wKAAwK;IAExK,aAAa,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAA;IAC5D,qFAAqF;IACrF,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,4IAA4I;IAC5I,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,qKAAqK;IACrK,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,2IAA2I;IAC3I,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,8GAA8G;IAC9G,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,+JAA+J;IAC/J,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAAA;IAClC;2KACuK;IACvK,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,uDAAuD;IACvD,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,gBAAgB,GAAG,SAAS,CAAA;IAC9D,wMAAwM;IACxM,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,6KAA6K;IAC7K,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAED;;;EAGE;AACF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAuQxC,CAAA"}
@@ -5,7 +5,14 @@ declare const _default: {
5
5
  component: React.FC<SelectOptionProps>;
6
6
  argTypes: {
7
7
  children: {
8
- control: boolean;
8
+ control: {
9
+ type: string;
10
+ };
11
+ table: {
12
+ type: {
13
+ summary: string;
14
+ };
15
+ };
9
16
  };
10
17
  };
11
18
  decorators: ((story: () => null | undefined) => React.JSX.Element)[];
@@ -1 +1 @@
1
- {"version":3,"file":"SelectOption.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/SelectOption/SelectOption.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAgB,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;;;;;;;;;yBAWnD,MAAM,IAAI,GAAG,SAAS;;AAR7C,wBASC;AAUD,eAAO,MAAM,OAAO;mBARI,KAAK,CAAC,GAAG,CAAC,mBAAmB,GAAG,iBAAiB;;;;CAcxE,CAAA;AAED,eAAO,MAAM,QAAQ;mBAhBG,KAAK,CAAC,GAAG,CAAC,mBAAmB,GAAG,iBAAiB;;;;;CAuBxE,CAAA;AAED,eAAO,MAAM,YAAY;mBAzBD,KAAK,CAAC,GAAG,CAAC,mBAAmB,GAAG,iBAAiB;;;;CA+BxE,CAAA;AAED,eAAO,MAAM,SAAS;mBAjCE,KAAK,CAAC,GAAG,CAAC,mBAAmB,GAAG,iBAAiB;;;;;CAwCxE,CAAA"}
1
+ {"version":3,"file":"SelectOption.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/SelectOption/SelectOption.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAgB,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;;;;;;;;;;;;;;;;yBAcnD,MAAM,IAAI,GAAG,SAAS;;AAX7C,wBAYC;AAUD,eAAO,MAAM,OAAO;mBARI,KAAK,CAAC,GAAG,CAAC,mBAAmB,GAAG,iBAAiB;;;;CAcxE,CAAA;AAED,eAAO,MAAM,QAAQ;mBAhBG,KAAK,CAAC,GAAG,CAAC,mBAAmB,GAAG,iBAAiB;;;;;CAuBxE,CAAA;AAED,eAAO,MAAM,YAAY;mBAzBD,KAAK,CAAC,GAAG,CAAC,mBAAmB,GAAG,iBAAiB;;;;CA+BxE,CAAA;AAED,eAAO,MAAM,SAAS;mBAjCE,KAAK,CAAC,GAAG,CAAC,mBAAmB,GAAG,iBAAiB;;;;;CAwCxE,CAAA"}
@@ -1,24 +1,21 @@
1
- import { default as React } from 'react';
1
+ import { default as React, ReactNode } from 'react';
2
2
  /**
3
3
  A generic vertical side navigation component.
4
4
  Place SideNavigationItem components as children.
5
5
  */
6
6
  export declare const SideNavigation: React.FC<SideNavigationProps>;
7
- type ItemKeyType = string | React.ReactNode;
8
- type ActiveItemChangeHandler = (value: ItemKeyType) => void;
9
7
  export interface SideNavigationProps extends React.HTMLAttributes<HTMLElement> {
10
8
  /** The active navigation item by label */
11
- activeItem?: string;
9
+ activeItem?: ReactNode;
12
10
  /** The aria-label of the navigation. Specify when there are more than one elements with an implicit or explicit `role="navigation"` on a page/view. */
13
11
  ariaLabel?: string;
14
12
  /** The children of the Navigation. Typically these should be SideNavigationItem(s) */
15
- children?: React.ReactNode;
13
+ children?: ReactNode;
16
14
  /** Pass custom classname. */
17
15
  className?: string;
18
16
  /** Whether the navigation is disabled */
19
17
  disabled?: boolean;
20
18
  /** Handler to execute when the active item changes */
21
- onActiveItemChange?: ActiveItemChangeHandler;
19
+ onActiveItemChange?: (activeItem: ReactNode) => void;
22
20
  }
23
- export {};
24
21
  //# sourceMappingURL=SideNavigation.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SideNavigation.component.d.ts","sourceRoot":"","sources":["../../../../src/components/SideNavigation/SideNavigation.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB;;;EAGE;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAqBxD,CAAA;AAED,KAAK,WAAW,GAAG,MAAM,GAAG,KAAK,CAAC,SAAS,CAAA;AAG3C,KAAK,uBAAuB,GAAG,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAA;AAE3D,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC5E,0CAA0C;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,uJAAuJ;IACvJ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,sFAAsF;IACtF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,yCAAyC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,uBAAuB,CAAA;CAC7C"}
1
+ {"version":3,"file":"SideNavigation.component.d.ts","sourceRoot":"","sources":["../../../../src/components/SideNavigation/SideNavigation.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AASxC;;;EAGE;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAqBxD,CAAA;AAED,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC5E,0CAA0C;IAC1C,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,uJAAuJ;IACvJ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,sFAAsF;IACtF,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,yCAAyC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,sDAAsD;IAEtD,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,SAAS,KAAK,IAAI,CAAA;CACrD"}
@@ -14,7 +14,7 @@ export interface SideNavigationItemProps extends React.HTMLAttributes<HTMLElemen
14
14
  /** Whether the item is disabled */
15
15
  disabled?: boolean;
16
16
  /** pass an icon name */
17
- icon?: KnownIcons | null;
17
+ icon?: KnownIcons;
18
18
  /** The label of the item */
19
19
  label?: string;
20
20
  /** Pass a custom className */
@@ -22,7 +22,7 @@ export interface SideNavigationItemProps extends React.HTMLAttributes<HTMLElemen
22
22
  /** The link the item should point to. Will render the item as an anchor if passed */
23
23
  href?: string;
24
24
  /** A handler to execute once the item is clicked. Will render the item as a button element if passed */
25
- onClick?: React.MouseEventHandler<EventTarget>;
25
+ onClick?: React.MouseEventHandler<HTMLElement>;
26
26
  /** An optional technical identifier fort the tab. If not passed, the label will be used to identify the tab. NOTE: If value is passed, the value of the active tab MUST be used when setting the activeItem prop on the parent SideNavigation.*/
27
27
  value?: string;
28
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SideNavigationItem.component.d.ts","sourceRoot":"","sources":["../../../../src/components/SideNavigationItem/SideNavigationItem.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAsBtD;;EAEE;AACF,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA8BhE,CAAA;AAED,MAAM,WAAW,uBAAwB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAChF,oDAAoD;IACpD,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,8HAA8H;IAC9H,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,wBAAwB;IACxB,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAAA;IACxB,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qFAAqF;IACrF,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,wGAAwG;IACxG,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAA;IAC9C,iPAAiP;IACjP,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
1
+ {"version":3,"file":"SideNavigationItem.component.d.ts","sourceRoot":"","sources":["../../../../src/components/SideNavigationItem/SideNavigationItem.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAsBtD;;EAEE;AACF,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA8BhE,CAAA;AAED,MAAM,WAAW,uBAAwB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAChF,oDAAoD;IACpD,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,8HAA8H;IAC9H,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,wBAAwB;IACxB,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qFAAqF;IACrF,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,wGAAwG;IACxG,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAA;IAC9C,iPAAiP;IACjP,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
@@ -8,7 +8,7 @@ export interface SpinnerProps extends Omit<React.HTMLProps<SVGSVGElement>, "size
8
8
  /** The semantic color variant of the Spinner */
9
9
  variant?: SpinnerVariant;
10
10
  /** The size of the spinner: `small`, `large`, or any valid CSS length like `1.5rem`*/
11
- size?: string | null;
11
+ size?: string;
12
12
  /** Add custom classNames */
13
13
  className?: string;
14
14
  /** Pass a text-color class in order to apply any color to a spinner (These classes typically begin with "text-".). If passed, `color` will overwrite the semantic color as defined by `variant`. */
@@ -1 +1 @@
1
- {"version":3,"file":"Spinner.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Spinner/Spinner.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AA6BzB;;mIAEmI;AACnI,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAqD1C,CAAA;AAED,KAAK,cAAc,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAA;AAE9E,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChF,gDAAgD;IAChD,OAAO,CAAC,EAAE,cAAc,CAAA;IACxB,sFAAsF;IACtF,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,oMAAoM;IACpM,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
1
+ {"version":3,"file":"Spinner.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Spinner/Spinner.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AA6BzB;;mIAEmI;AACnI,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAqD1C,CAAA;AAED,KAAK,cAAc,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAA;AAE9E,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChF,gDAAgD;IAChD,OAAO,CAAC,EAAE,cAAc,CAAA;IACxB,sFAAsF;IACtF,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,oMAAoM;IACpM,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
@@ -20,7 +20,7 @@ export interface StackProps extends Omit<React.HTMLProps<HTMLDivElement>, "wrap"
20
20
  distribution?: StackDistribution;
21
21
  /** Specify whether the Stack children should be allowed to wrap or not */
22
22
  wrap?: boolean;
23
- /** Can be any valid tailwind spacing. See here: https://tailwindcss.com/docs/customizing-spacing#default-spacing-scale */
23
+ /** Can be any valid tailwind spacing. See here: https://tailwindcss.com/docs/customizing-spacing#default-spacing-scale */
24
24
  gap?: StackGap;
25
25
  }
26
26
  //# sourceMappingURL=Stack.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Stack.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Stack/Stack.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AA+HzB;;;GAGG;AACH,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAkBtC,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG,UAAU,CAAA;AACtD,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAA;AAChF,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAC5F,MAAM,MAAM,QAAQ,GAChB,GAAG,GACH,IAAI,GACJ,KAAK,GACL,GAAG,GACH,KAAK,GACL,GAAG,GACH,KAAK,GACL,GAAG,GACH,KAAK,GACL,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,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IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAA;AAER,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IAC/E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,cAAc,CAAA;IAC1B,uKAAuK;IACvK,SAAS,CAAC,EAAE,cAAc,CAAA;IAC1B,gLAAgL;IAChL,YAAY,CAAC,EAAE,iBAAiB,CAAA;IAChC,0EAA0E;IAC1E,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,0HAA0H;IAC1H,GAAG,CAAC,EAAE,QAAQ,CAAA;CACf"}
@@ -6,6 +6,11 @@ declare const _default: {
6
6
  argTypes: {
7
7
  children: {
8
8
  control: boolean;
9
+ table: {
10
+ type: {
11
+ summary: string;
12
+ };
13
+ };
9
14
  };
10
15
  gap: {
11
16
  options: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"Stack.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Stack/Stack.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAyB,UAAU,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;;;;;;AAErE,wBA+CC;AAwBD,eAAO,MAAM,UAAU;mBAfC,UAAU;;;;;;;;;CAyBjC,CAAA;AAED,eAAO,MAAM,QAAQ;mBA3BG,UAAU;;;;;;;;;;;CAuCjC,CAAA;AAED,eAAO,MAAM,aAAa;mBAzCF,UAAU;;;;;;;;;;;CAwDjC,CAAA;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wB;mBA/Gb,UAAU;;;;;;;;;;;CA6HjC,CAAA;AAED,eAAO,MAAM,sBAAsB;mBA/HX,UAAU;;;;;;;;;;;;CA8IjC,CAAA;AAED,eAAO,MAAM,4BAA4B;mBAhJjB,UAAU;;;;;;;;;;;CA+JjC,CAAA;AAED,eAAO,MAAM,0BAA0B;mBAjKf,UAAU;;;;;;;;;;;;CAiLjC,CAAA;AAED,eAAO,MAAM,QAAQ;mBAnLG,UAAU;;;;;;;;;;;;CAmMjC,CAAA;AAED,eAAO,MAAM,IAAI;mBA9LmB,UAAU;;;;;;;;;;;;CA8M7C,CAAA"}
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React, ReactNode } from 'react';
2
2
  import { ShadowRootMode } from '../ShadowRoot/ShadowRoot.component';
3
3
  type SetThemeClassFunc = (value: string) => void;
4
4
  type AddClassFunc = (value: string) => void;
@@ -36,11 +36,11 @@ export declare const StyleProvider: {
36
36
  type StyleProviderStylesWrapper = "head" | "inline" | "shadowRoot";
37
37
  export interface StyleProviderProps {
38
38
  /** The children to render. */
39
- children?: React.ReactNode;
39
+ children?: ReactNode;
40
40
  /** What element to render as a wrapper, respectively where to render the StyleProvider. */
41
41
  stylesWrapper?: StyleProviderStylesWrapper;
42
42
  /** The name of the theme to render. */
43
- theme?: string | null;
43
+ theme?: string;
44
44
  /** The mode of the shadowRoot. Only relevant when `stylesWrapper="shadowRoot"`. */
45
45
  shadowRootMode?: ShadowRootMode;
46
46
  }
@@ -1 +1 @@
1
- {"version":3,"file":"StyleProvider.component.d.ts","sourceRoot":"","sources":["../../../../src/components/StyleProvider/StyleProvider.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAiE,MAAM,OAAO,CAAA;AACrF,OAAO,EAAc,cAAc,EAAE,MAAM,oCAAoC,CAAA;AAO/E,KAAK,iBAAiB,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;AAEhD,KAAK,YAAY,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;AAE3C,KAAK,kBAAkB,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;AAEjD,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,iBAAiB,CAAA;IAChC,WAAW,EAAE,YAAY,CAAA;IACzB,cAAc,EAAE,kBAAkB,CAAA;CACnC;AAKD,eAAO,MAAM,kBAAkB,eAAe,CAAA;AAE9C;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,aAAa;qEAKvB,kBAAkB;;CAsFpB,CAAA;AAED,KAAK,0BAA0B,GAAG,MAAM,GAAG,QAAQ,GAAG,YAAY,CAAA;AAElE,MAAM,WAAW,kBAAkB;IACjC,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,4FAA4F;IAC5F,aAAa,CAAC,EAAE,0BAA0B,CAAA;IAC1C,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,mFAAmF;IACnF,cAAc,CAAC,EAAE,cAAc,CAAA;CAChC"}
1
+ {"version":3,"file":"StyleProvider.component.d.ts","sourceRoot":"","sources":["../../../../src/components/StyleProvider/StyleProvider.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAA0D,SAAS,EAAE,MAAM,OAAO,CAAA;AAChG,OAAO,EAAc,cAAc,EAAE,MAAM,oCAAoC,CAAA;AAO/E,KAAK,iBAAiB,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;AAEhD,KAAK,YAAY,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;AAE3C,KAAK,kBAAkB,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;AAEjD,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,iBAAiB,CAAA;IAChC,WAAW,EAAE,YAAY,CAAA;IACzB,cAAc,EAAE,kBAAkB,CAAA;CACnC;AAKD,eAAO,MAAM,kBAAkB,eAAe,CAAA;AAE9C;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,aAAa;qEAKvB,kBAAkB;;CAsFpB,CAAA;AAED,KAAK,0BAA0B,GAAG,MAAM,GAAG,QAAQ,GAAG,YAAY,CAAA;AAIlE,MAAM,WAAW,kBAAkB;IACjC,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,4FAA4F;IAC5F,aAAa,CAAC,EAAE,0BAA0B,CAAA;IAC1C,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,mFAAmF;IACnF,cAAc,CAAC,EAAE,cAAc,CAAA;CAChC"}
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React, ReactNode } from 'react';
2
2
  type SwitchSize = "small" | "default" | "large";
3
3
  export interface SwitchProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "ref"> {
4
4
  /**
@@ -40,15 +40,15 @@ export interface SwitchProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonE
40
40
  /**
41
41
  * Help text to provide additional information about the Switch
42
42
  */
43
- helptext?: React.ReactNode;
43
+ helptext?: ReactNode;
44
44
  /**
45
45
  * Text to display when the Switch has validation errors
46
46
  */
47
- errortext?: React.ReactNode;
47
+ errortext?: ReactNode;
48
48
  /**
49
49
  * Text to display when the Switch has been validated successfully
50
50
  */
51
- successtext?: React.ReactNode;
51
+ successtext?: ReactNode;
52
52
  /**
53
53
  * Custom class name to apply to the internal button element
54
54
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Switch/Switch.component.tsx"],"names":[],"mappings":"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GxC,CAAA"}
1
+ {"version":3,"file":"Switch.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Switch/Switch.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAuC,SAAS,EAAE,MAAM,OAAO,CAAA;AAmE7E,KAAK,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAA;AAE/C,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,KAAK,CAAC;IAC7F;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB;;OAEG;IACH,EAAE,CAAC,EAAE,OAAO,CAAA;IACZ;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IAEH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAA;IAChE;;OAEG;IAEH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAA;IAC9D;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAsDD;;;;GAIG;AACH,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAiGxC,CAAA"}
@@ -11,7 +11,7 @@ export declare const Tab: {
11
11
  };
12
12
  export interface TabProps extends ReactTabProps {
13
13
  /** The children to render inside the Tab (-button) */
14
- children?: any;
14
+ children?: React.ReactNode;
15
15
  /** The Tab label (only rendered when no children are supplied) */
16
16
  label?: string;
17
17
  /** Pass the name of an icon to render in the Tab. Can be any icon included with Juno. */
@@ -1 +1 @@
1
- {"version":3,"file":"Tab.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Tab/Tab.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAmB,QAAQ,IAAI,aAAa,EAAE,MAAM,YAAY,CAAA;AAEvE,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAyBnD;;;EAGE;AACF,eAAO,MAAM,GAAG;+DAAgF,QAAQ;;CAavG,CAAA;AAID,MAAM,WAAW,QAAS,SAAQ,aAAa;IAC7C,sDAAsD;IACtD,QAAQ,CAAC,EAAE,GAAG,CAAA;IACd,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,yFAAyF;IACzF,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
1
+ {"version":3,"file":"Tab.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Tab/Tab.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAmB,QAAQ,IAAI,aAAa,EAAE,MAAM,YAAY,CAAA;AAEvE,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAyBnD;;;EAGE;AACF,eAAO,MAAM,GAAG;+DAAgF,QAAQ;;CAavG,CAAA;AAID,MAAM,WAAW,QAAS,SAAQ,aAAa;IAC7C,sDAAsD;IACtD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,yFAAyF;IACzF,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
@@ -13,6 +13,11 @@ declare const _default: {
13
13
  };
14
14
  children: {
15
15
  control: boolean;
16
+ table: {
17
+ type: {
18
+ summary: string;
19
+ };
20
+ };
16
21
  };
17
22
  };
18
23
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Tab.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Tab/Tab.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAQA,wBAYC;AAED,eAAO,MAAM,OAAO;;;;;CAKnB,CAAA;AAED,eAAO,MAAM,QAAQ;;;;;CAKpB,CAAA"}
1
+ {"version":3,"file":"Tab.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Tab/Tab.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAQA,wBAeC;AAED,eAAO,MAAM,OAAO;;;;;CAKnB,CAAA;AAED,eAAO,MAAM,QAAQ;;;;;CAKpB,CAAA"}
@@ -1,7 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { TabListProps as ReactTabListProps } from 'react-tabs';
3
3
  import { TabsVariant } from '../Tabs/Tabs.component';
4
- import { TabProps } from '../Tab/Tab.component';
5
4
  /** A tabList component wraps all individual Tabs inside a parent Tabs component */
6
5
  export declare const TabList: {
7
6
  ({ variant, children, ...props }: TabListProps): React.JSX.Element;
@@ -11,6 +10,6 @@ export interface TabListProps extends ReactTabListProps {
11
10
  /** Pick the TabList style */
12
11
  variant?: TabsVariant;
13
12
  /** The individual child Tabs to render */
14
- children?: (React.ReactElement<TabProps> | React.ReactElement<TabProps>[]) | null;
13
+ children?: React.ReactNode;
15
14
  }
16
15
  //# sourceMappingURL=TabList.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TabList.component.d.ts","sourceRoot":"","sources":["../../../../src/components/TabList/TabList.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAA2B,YAAY,IAAI,iBAAiB,EAAE,MAAM,YAAY,CAAA;AACvF,OAAO,EAAE,WAAW,EAAkB,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AA0B/C,mFAAmF;AAEnF,eAAO,MAAM,OAAO;sCAAiD,YAAY;;CAYhF,CAAA;AAID,MAAM,WAAW,YAAa,SAAQ,iBAAiB;IACrD,6BAA6B;IAC7B,OAAO,CAAC,EAAE,WAAW,CAAA;IACrB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC,GAAG,IAAI,CAAA;CAClF"}
1
+ {"version":3,"file":"TabList.component.d.ts","sourceRoot":"","sources":["../../../../src/components/TabList/TabList.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAA2B,YAAY,IAAI,iBAAiB,EAAE,MAAM,YAAY,CAAA;AACvF,OAAO,EAAE,WAAW,EAAkB,MAAM,wBAAwB,CAAA;AA0BpE,mFAAmF;AAEnF,eAAO,MAAM,OAAO;sCAAiD,YAAY;;CAYhF,CAAA;AAID,MAAM,WAAW,YAAa,SAAQ,iBAAiB;IACrD,6BAA6B;IAC7B,OAAO,CAAC,EAAE,WAAW,CAAA;IACrB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B"}
@@ -9,6 +9,11 @@ declare const _default: {
9
9
  argTypes: {
10
10
  children: {
11
11
  control: boolean;
12
+ table: {
13
+ type: {
14
+ summary: string;
15
+ };
16
+ };
12
17
  };
13
18
  tabs: {
14
19
  table: {
@@ -19,7 +24,7 @@ declare const _default: {
19
24
  };
20
25
  export default _default;
21
26
  interface TemplateProps {
22
- children?: React.ReactElement<TabProps> | React.ReactElement<TabProps>[] | null;
27
+ children?: React.ReactElement<TabProps> | React.ReactElement<TabProps>[];
23
28
  }
24
29
  export declare const Default: {
25
30
  render: ({ children, ...args }: TemplateProps) => React.JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"TabList.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/TabList/TabList.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAO,QAAQ,EAAE,MAAM,sBAAsB,CAAA;;;;;;;;;;;;;;;;;;AAEpD,wBAaC;AAID,UAAU,aAAa;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,GAAG,IAAI,CAAA;CAChF;AAED,eAAO,MAAM,OAAO;oCANqB,aAAa;;;;CAiBrD,CAAA;AAED,eAAO,MAAM,WAAW;oCAnBiB,aAAa;;;;;CA+BrD,CAAA"}
1
+ {"version":3,"file":"TabList.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/TabList/TabList.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAO,QAAQ,EAAE,MAAM,sBAAsB,CAAA;;;;;;;;;;;;;;;;;;;;;;;AAEpD,wBAgBC;AAID,UAAU,aAAa;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAA;CACzE;AAED,eAAO,MAAM,OAAO;oCANqB,aAAa;;;;CAiBrD,CAAA;AAED,eAAO,MAAM,WAAW;oCAnBiB,aAAa;;;;;CA+BrD,CAAA"}
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React, ReactNode } from 'react';
2
2
  export interface TabNavigationContextType {
3
3
  tabStyle: TabStyle;
4
4
  }
@@ -6,23 +6,20 @@ export declare const TabNavigationContext: React.Context<TabNavigationContextTyp
6
6
  /** A Tab Navigation parent component. Use to wrap `<TabNavigationItem>` elements inside. For tabs with corresponding tab panels, use `<Tabs>` instead. */
7
7
  export declare const TabNavigation: React.FC<TabNavigationProps>;
8
8
  export type TabStyle = "main" | "content";
9
- type ItemKeyType = string | React.ReactNode;
10
- type ActiveItemChangeHandler = (value: ItemKeyType) => void;
11
9
  export interface TabNavigationProps extends React.HTMLAttributes<HTMLElement> {
12
10
  /** The label of the selected tab. The `activeItem` prop set on the parent will override / take precedence over any `active` prop that may be set on a child. */
13
- activeItem?: string;
11
+ activeItem?: ReactNode;
14
12
  /** The aria-label of the navigation. Specify when there are more than one elements with an implicit or explicit `role="navigation"` on a page/view. */
15
13
  ariaLabel?: string;
16
14
  /** The child `<TabNavigationItem>` elements to render. */
17
- children?: React.ReactNode;
15
+ children?: ReactNode;
18
16
  /** A custom className to be rendered on the tab navigation */
19
17
  className?: string;
20
18
  /** Whether the tab navigation is disabled. If set to `true`, all child tab navigation item elements will be disabled. */
21
19
  disabled?: boolean;
22
20
  /** A handler to execute when the active tab changes */
23
- onActiveItemChange?: ActiveItemChangeHandler;
21
+ onActiveItemChange?: (activeItem: ReactNode) => void;
24
22
  /** The stylistic variant of the Tabs: Use `main` as the first child in an `Appshell` (when manually scaffolding, as first child of `juno-content-container`). For tabs inside the page content use "content". `<TabNavigation tabStyle="main">` will have no darkened border on the bottom of inactive tabs, `tabStyle="content"` will.*/
25
23
  tabStyle?: TabStyle;
26
24
  }
27
- export {};
28
25
  //# sourceMappingURL=TabNavigation.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TabNavigation.component.d.ts","sourceRoot":"","sources":["../../../../src/components/TabNavigation/TabNavigation.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAwB,MAAM,OAAO,CAAA;AAO5C,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,QAAQ,CAAA;CACnB;AAED,eAAO,MAAM,oBAAoB,qDAAiE,CAAA;AAElG,0JAA0J;AAC1J,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAkCtD,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAA;AAEzC,KAAK,WAAW,GAAG,MAAM,GAAG,KAAK,CAAC,SAAS,CAAA;AAG3C,KAAK,uBAAuB,GAAG,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAA;AAE3D,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC3E,gKAAgK;IAChK,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,uJAAuJ;IACvJ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,yHAAyH;IACzH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,uDAAuD;IACvD,kBAAkB,CAAC,EAAE,uBAAuB,CAAA;IAC5C,0UAA0U;IAC1U,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACpB"}
1
+ {"version":3,"file":"TabNavigation.component.d.ts","sourceRoot":"","sources":["../../../../src/components/TabNavigation/TabNavigation.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAA;AAQvD,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,QAAQ,CAAA;CACnB;AAED,eAAO,MAAM,oBAAoB,qDAAiE,CAAA;AAElG,0JAA0J;AAC1J,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAkCtD,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAA;AAEzC,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC3E,gKAAgK;IAChK,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,uJAAuJ;IACvJ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,yHAAyH;IACzH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,uDAAuD;IAEvD,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,SAAS,KAAK,IAAI,CAAA;IACpD,0UAA0U;IAC1U,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACpB"}
@@ -19,7 +19,7 @@ export interface TabNavigationItemProps extends React.HTMLAttributes<HTMLElement
19
19
  /** The label of the tab navigation item. Must be unique within any given `<TabNavigation>` group. */
20
20
  label?: string;
21
21
  /** Pass a custom handler to execute when the tab is clicked */
22
- onClick?: React.MouseEventHandler<EventTarget>;
22
+ onClick?: React.MouseEventHandler<HTMLElement>;
23
23
  /** An optional technical identifier fort the tab. If not passed, the label will be used to identify the tab. NOTE: If value is passed, the value of the active tab MUST be used when setting the activeItem prop on the parent TabNavigation.*/
24
24
  value?: string;
25
25
  }
@@ -9,7 +9,7 @@ export declare const TabPanel: {
9
9
  };
10
10
  export interface TabPanelProps extends ReactTabPanelProps {
11
11
  /** The content to show/render when the associated Tab is selected */
12
- children?: any;
12
+ children?: React.ReactNode;
13
13
  /** Add a custom classList to the TabPanel */
14
14
  className?: string;
15
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TabPanel.component.d.ts","sourceRoot":"","sources":["../../../../src/components/TabPanel/TabPanel.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAA6B,aAAa,IAAI,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAE3F;;EAEE;AAEF,eAAO,MAAM,QAAQ;wCAA4C,aAAa;;CAM7E,CAAA;AAID,MAAM,WAAW,aAAc,SAAQ,kBAAkB;IACvD,qEAAqE;IACrE,QAAQ,CAAC,EAAE,GAAG,CAAA;IACd,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
1
+ {"version":3,"file":"TabPanel.component.d.ts","sourceRoot":"","sources":["../../../../src/components/TabPanel/TabPanel.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAA6B,aAAa,IAAI,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAE3F;;EAEE;AAEF,eAAO,MAAM,QAAQ;wCAA4C,aAAa;;CAM7E,CAAA;AAID,MAAM,WAAW,aAAc,SAAQ,kBAAkB;IACvD,qEAAqE;IACrE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
@@ -7,6 +7,11 @@ declare const _default: {
7
7
  argTypes: {
8
8
  children: {
9
9
  control: boolean;
10
+ table: {
11
+ type: {
12
+ summary: string;
13
+ };
14
+ };
10
15
  };
11
16
  };
12
17
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TabPanel.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/TabPanel/TabPanel.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAOA,wBAQC;AAED,eAAO,MAAM,OAAO;;;;CAInB,CAAA"}
1
+ {"version":3,"file":"TabPanel.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/TabPanel/TabPanel.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAOA,wBAWC;AAED,eAAO,MAAM,OAAO;;;;CAInB,CAAA"}
@@ -1,7 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { TabsProps as ReactTabsProps } from 'react-tabs';
3
- import { TabListProps } from '../TabList/TabList.component';
4
- import { TabPanelProps } from '../TabPanel/TabPanel.component';
5
3
  export interface TabsContextType {
6
4
  variant?: TabsVariant;
7
5
  }
@@ -17,17 +15,15 @@ export declare const Tabs: {
17
15
  tabsRole: string;
18
16
  };
19
17
  export type TabsVariant = "main" | "content" | "codeblocks";
20
- export type OnSelectHander = (value: number) => void;
21
- export type TabElement = React.ReactElement<TabListProps> | React.ReactElement<TabPanelProps> | TabElement[] | null | undefined;
22
18
  export interface TabsProps extends ReactTabsProps {
23
19
  /** All the child elements of the Tabs: Tab(s) inside a TabList and TabPanel(s) */
24
- children?: TabElement;
20
+ children?: React.ReactNode;
25
21
  /** The index of the Tab to be selected by default in "Uncontrolled Mode" (default) where Tabs handle their state internally. Do not use in "Controlled Mode".*/
26
22
  defaultIndex?: number;
27
23
  /** The index of the Tab to be selected by default. This enables "Controlled Mode" where the developer takes over control of the Tabs state and behaviour. Requires onSelect to be set.*/
28
24
  selectedIndex?: number;
29
25
  /** Handler required in "Controlled Mode" */
30
- onSelect?: OnSelectHander;
26
+ onSelect?: (value: number) => void;
31
27
  /** Switch on Main Tab styles and context if needed */
32
28
  variant?: TabsVariant;
33
29
  /** Add a custom className to the whole Tabs construct */
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/Tabs.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAClD,OAAO,EAAqB,SAAS,IAAI,cAAc,EAAE,MAAM,YAAY,CAAA;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAE9D,MAAM,WAAW,eAAe;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AAE3D,MAAM,WAAW,SAAU,SAAQ,cAAc;IAC/C,kFAAkF;IAClF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,gKAAgK;IAChK,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,yLAAyL;IACzL,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,4CAA4C;IAE5C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,sDAAsD;IACtD,OAAO,CAAC,EAAE,WAAW,CAAA;IACrB,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
@@ -16,6 +16,11 @@ declare const _default: {
16
16
  };
17
17
  children: {
18
18
  control: boolean;
19
+ table: {
20
+ type: {
21
+ summary: string;
22
+ };
23
+ };
19
24
  };
20
25
  tabs: {
21
26
  table: {
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/Tabs.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAElD,OAAO,EAAO,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAGpD,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE9D,wBAwBC;AASD,UAAU,aAAa;IACrB,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAA;IACpE,SAAS,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE,CAAA;CACpF;AAuBD,KAAK,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;AAE9C,UAAU,uBAAuB;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAA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,CAAC,QAAQ,CAAC,EAAE,CAAA;IACpE,SAAS,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE,CAAA;CACpF;AAED,eAAO,MAAM,OAAO;2CA1C4B,aAAa;;;;;CAqD5D,CAAA;AAED,eAAO,MAAM,aAAa;2CAvDsB,aAAa;;;;;CA4E5D,CAAA;AAED,eAAO,MAAM,cAAc;oEAlEwD,uBAAuB;;;;;;;;CAgFzG,CAAA"}
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React, ReactNode } from 'react';
2
2
  /**
3
3
  A controlled Text Input.
4
4
  Also covers email, telephone, password, url derivates.
@@ -34,19 +34,19 @@ export interface TextInputProps extends React.InputHTMLAttributes<HTMLInputEleme
34
34
  /** Pass a change handler */
35
35
  onChange?: React.ChangeEventHandler<HTMLInputElement>;
36
36
  /** Pass a focus handler */
37
- onFocus?: React.FocusEventHandler<EventTarget>;
37
+ onFocus?: React.FocusEventHandler<HTMLInputElement>;
38
38
  /** Pass a blur handler */
39
- onBlur?: React.FocusEventHandler<EventTarget>;
39
+ onBlur?: React.FocusEventHandler<HTMLInputElement>;
40
40
  /** Specify the type attribute. Defaults to an input with no type attribute, which in turn will be treateas as type="text" by browsers. */
41
41
  type?: TextInputType;
42
42
  /** The label of the input */
43
43
  label?: string;
44
44
  /** A helptext to render to explain meaning and significance of the TextInput */
45
- helptext?: JSX.Element | string;
45
+ helptext?: ReactNode;
46
46
  /** A text to render when the TextInput was successfully validated */
47
- successtext?: JSX.Element | string;
47
+ successtext?: ReactNode;
48
48
  /** A text to render when the TextInput has an error or could not be validated */
49
- errortext?: JSX.Element | string;
49
+ errortext?: ReactNode;
50
50
  /** The width of the text input. Either 'full' (default) or 'auto'. */
51
51
  width?: TextInputWidth;
52
52
  /** Pass a custom className to the wrapping element. This can be useful if you must add styling to the outermost wrapping element of this component, e.g. for positioning. */
@@ -1 +1 @@
1
- {"version":3,"file":"TextInput.component.d.ts","sourceRoot":"","sources":["../../../../src/components/TextInput/TextInput.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAsD,MAAM,OAAO,CAAA;AAI1E,OAAO,kBAAkB,CAAA;AAoEzB;;;EAGE;AACF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAiK9C,CAAA;AAED,KAAK,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,CAAA;AAC7E,KAAK,cAAc,GAAG,MAAM,GAAG,MAAM,CAAA;AAErC,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;IACjF,4BAA4B;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,mBAAmB;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,iBAAiB;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,yBAAyB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,mCAAmC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,iCAAiC;IACjC,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,2CAA2C;IAC3C,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,iFAAiF;IACjF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,kEAAkE;IAClE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAA;IACrD,2BAA2B;IAC3B,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAA;IAC9C,0BAA0B;IAC1B,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAA;IAC7C,0IAA0I;IAC1I,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gFAAgF;IAChF,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAA;IAC/B,qEAAqE;IACrE,WAAW,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAA;IAClC,iFAAiF;IACjF,SAAS,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAA;IAChC,sEAAsE;IACtE,KAAK,CAAC,EAAE,cAAc,CAAA;IACtB,6KAA6K;IAC7K,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B"}
1
+ {"version":3,"file":"TextInput.component.d.ts","sourceRoot":"","sources":["../../../../src/components/TextInput/TextInput.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAA+C,SAAS,EAAE,MAAM,OAAO,CAAA;AAIrF,OAAO,kBAAkB,CAAA;AAoEzB;;;EAGE;AACF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAiK9C,CAAA;AAED,KAAK,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,CAAA;AAC7E,KAAK,cAAc,GAAG,MAAM,GAAG,MAAM,CAAA;AAErC,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;IACjF,4BAA4B;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,mBAAmB;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,iBAAiB;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,yBAAyB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,mCAAmC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,iCAAiC;IACjC,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,2CAA2C;IAC3C,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,iFAAiF;IACjF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,kEAAkE;IAClE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAA;IACrD,2BAA2B;IAC3B,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAA;IACnD,0BAA0B;IAC1B,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAA;IAClD,0IAA0I;IAC1I,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gFAAgF;IAChF,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,qEAAqE;IACrE,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,iFAAiF;IACjF,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,sEAAsE;IACtE,KAAK,CAAC,EAAE,cAAc,CAAA;IACtB,6KAA6K;IAC7K,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B"}
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React, ReactNode } from 'react';
2
2
  /**
3
3
  A controlled Text Input.
4
4
  Also covers email, telephone, password, url derivates.
@@ -35,15 +35,15 @@ export interface TextareaProps extends React.HTMLProps<HTMLTextAreaElement> {
35
35
  /** Pass a change handler */
36
36
  onChange?: React.ChangeEventHandler<HTMLTextAreaElement>;
37
37
  /** Pass a focus handler */
38
- onFocus?: React.ChangeEventHandler<HTMLTextAreaElement>;
38
+ onFocus?: React.FocusEventHandler<HTMLTextAreaElement>;
39
39
  /** Pass a blur handler */
40
- onBlur?: React.ChangeEventHandler<HTMLTextAreaElement>;
40
+ onBlur?: React.FocusEventHandler<HTMLTextAreaElement>;
41
41
  /** A helptext to render to explain meaning and significance of the Textarea */
42
- helptext?: React.ReactNode | string;
42
+ helptext?: ReactNode;
43
43
  /** A text to render when the Textarea was successfully validated */
44
- successtext?: React.ReactNode | string;
44
+ successtext?: ReactNode;
45
45
  /** A text to render when the Textarea has an error or could not be validated */
46
- errortext?: React.ReactNode | string;
46
+ errortext?: ReactNode;
47
47
  /** The width of the textarea. Either 'full' (default) or 'auto'. */
48
48
  width?: WidthType;
49
49
  /** Pass a custom className to the wrapping element. This can be useful if you must add styling to the outermost wrapping element of this component, e.g. for positioning. */
@@ -1 +1 @@
1
- {"version":3,"file":"Textarea.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Textarea/Textarea.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAsD,MAAM,OAAO,CAAA;AA0E1E;;;EAGE;AACF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA+J5C,CAAA;AAED,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,CAAA;AAEhC,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,SAAS,CAAC,mBAAmB,CAAC;IACzE,4BAA4B;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,mBAAmB;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,iBAAiB;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,yBAAyB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,mCAAmC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,iCAAiC;IACjC,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,2CAA2C;IAC3C,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,oFAAoF;IACpF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,kEAAkE;IAClE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAA;IACxD,2BAA2B;IAC3B,OAAO,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAA;IACvD,0BAA0B;IAC1B,MAAM,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAA;IACtD,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAA;IACnC,oEAAoE;IACpE,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAA;IACtC,gFAAgF;IAChF,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAA;IACpC,oEAAoE;IACpE,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,6KAA6K;IAC7K,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B"}
1
+ {"version":3,"file":"Textarea.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Textarea/Textarea.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAA+C,SAAS,EAAE,MAAM,OAAO,CAAA;AA0ErF;;;EAGE;AACF,eAAO,MAAM,QAAQ,EAAE,KAAK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,SAAS,CAAA;IACrB,oEAAoE;IACpE,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,6KAA6K;IAC7K,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B"}
@@ -19,7 +19,7 @@ export interface ThemeToggleProps {
19
19
  /**
20
20
  * Callback function that is called when the theme is toggled.
21
21
  */
22
- onToggleTheme?: (...args: unknown[]) => void;
22
+ onToggleTheme?: (newTheme: string) => void;
23
23
  }
24
24
  /**
25
25
  * ThemeToggle is a button component that toggles between Light and Dark UI Themes.