@lumx/react 3.20.1-alpha.8 → 3.21.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 (231) hide show
  1. package/_internal/index.js +20 -13
  2. package/_internal/index.js.map +1 -1
  3. package/index.d.ts +60 -33
  4. package/index.js +2937 -3090
  5. package/index.js.map +1 -1
  6. package/package.json +5 -9
  7. package/src/components/alert-dialog/AlertDialog.stories.tsx +1 -1
  8. package/src/components/alert-dialog/AlertDialog.test.tsx +2 -0
  9. package/src/components/autocomplete/Autocomplete.stories.tsx +1 -1
  10. package/src/components/autocomplete/Autocomplete.test.tsx +2 -0
  11. package/src/components/autocomplete/Autocomplete.tsx +1 -1
  12. package/src/components/autocomplete/AutocompleteMultiple.stories.tsx +1 -1
  13. package/src/components/autocomplete/AutocompleteMultiple.test.tsx +2 -0
  14. package/src/components/autocomplete/AutocompleteMultiple.tsx +1 -1
  15. package/src/components/avatar/Avatar.stories.tsx +2 -0
  16. package/src/components/avatar/Avatar.test.tsx +2 -0
  17. package/src/components/avatar/Avatar.tsx +1 -1
  18. package/src/components/badge/Badge.stories.tsx +1 -0
  19. package/src/components/badge/Badge.test.tsx +2 -0
  20. package/src/components/badge/Badge.tsx +1 -1
  21. package/src/components/badge/BadgeWrapper.stories.tsx +1 -0
  22. package/src/components/badge/BadgeWrapper.test.tsx +2 -0
  23. package/src/components/badge/BadgeWrapper.tsx +1 -1
  24. package/src/components/button/Button.stories.tsx +1 -0
  25. package/src/components/button/Button.test.tsx +2 -0
  26. package/src/components/button/Button.tsx +2 -0
  27. package/src/components/button/ButtonGroup.stories.tsx +2 -0
  28. package/src/components/button/ButtonGroup.test.tsx +2 -0
  29. package/src/components/button/ButtonGroup.tsx +2 -0
  30. package/src/components/button/ButtonRoot.tsx +1 -1
  31. package/src/components/button/IconButton.test.tsx +2 -0
  32. package/src/components/button/IconButton.tsx +2 -0
  33. package/src/components/checkbox/Checkbox.test.tsx +2 -0
  34. package/src/components/chip/Chip.stories.tsx +2 -0
  35. package/src/components/chip/Chip.test.tsx +2 -0
  36. package/src/components/chip/Chip.tsx +1 -1
  37. package/src/components/chip/ChipGroup.stories.tsx +2 -0
  38. package/src/components/chip/ChipGroup.test.tsx +2 -0
  39. package/src/components/chip/ChipGroup.tsx +1 -1
  40. package/src/components/comment-block/CommentBlock.stories.tsx +1 -0
  41. package/src/components/comment-block/CommentBlock.test.tsx +1 -0
  42. package/src/components/comment-block/CommentBlock.tsx +1 -1
  43. package/src/components/date-picker/DatePicker.test.tsx +2 -0
  44. package/src/components/date-picker/DatePicker.tsx +1 -1
  45. package/src/components/date-picker/DatePickerControlled.test.tsx +2 -0
  46. package/src/components/date-picker/DatePickerField.test.tsx +2 -0
  47. package/src/components/dialog/Dialog.test.tsx +2 -0
  48. package/src/components/divider/Divider.test.tsx +2 -0
  49. package/src/components/divider/Divider.tsx +2 -0
  50. package/src/components/drag-handle/DragHandle.test.tsx +2 -0
  51. package/src/components/drag-handle/DragHandle.tsx +2 -0
  52. package/src/components/dropdown/Dropdown.stories.tsx +1 -1
  53. package/src/components/dropdown/Dropdown.tsx +1 -1
  54. package/src/components/expansion-panel/ExpansionPanel.test.tsx +2 -0
  55. package/src/components/flag/Flag.test.tsx +2 -0
  56. package/src/components/flag/Flag.tsx +2 -0
  57. package/src/components/flex-box/FlexBox.stories.tsx +2 -0
  58. package/src/components/flex-box/FlexBox.test.tsx +1 -0
  59. package/src/components/flex-box/FlexBox.tsx +1 -1
  60. package/src/components/generic-block/GenericBlock.test.tsx +1 -1
  61. package/src/components/grid/Grid.tsx +2 -0
  62. package/src/components/grid/GridItem.tsx +2 -0
  63. package/src/components/grid-column/GridColumn.stories.tsx +1 -0
  64. package/src/components/grid-column/GridColumn.test.jsx +2 -0
  65. package/src/components/grid-column/GridColumn.tsx +1 -1
  66. package/src/components/heading/Heading.stories.tsx +1 -0
  67. package/src/components/heading/Heading.test.tsx +2 -0
  68. package/src/components/heading/Heading.tsx +2 -0
  69. package/src/components/heading/HeadingLevelProvider.tsx +1 -1
  70. package/src/components/icon/Icon.test.tsx +2 -0
  71. package/src/components/icon/Icon.tsx +120 -7
  72. package/src/components/image-block/ImageBlock.stories.tsx +2 -0
  73. package/src/components/image-block/ImageBlock.test.tsx +1 -0
  74. package/src/components/image-block/ImageBlock.tsx +1 -1
  75. package/src/components/image-block/ImageCaption.tsx +1 -1
  76. package/src/components/image-lightbox/ImageLightbox.stories.tsx +1 -0
  77. package/src/components/image-lightbox/ImageLightbox.test.tsx +2 -0
  78. package/src/components/image-lightbox/types.ts +2 -0
  79. package/src/components/inline-list/InlineList.stories.tsx +1 -0
  80. package/src/components/inline-list/InlineList.test.tsx +2 -0
  81. package/src/components/inline-list/InlineList.tsx +1 -1
  82. package/src/components/input-helper/InputHelper.test.tsx +2 -0
  83. package/src/components/input-helper/InputHelper.tsx +1 -1
  84. package/src/components/input-label/InputLabel.stories.tsx +2 -0
  85. package/src/components/input-label/InputLabel.test.tsx +2 -0
  86. package/src/components/input-label/InputLabel.tsx +1 -1
  87. package/src/components/lightbox/Lightbox.test.tsx +2 -0
  88. package/src/components/lightbox/Lightbox.tsx +1 -1
  89. package/src/components/link/Link.stories.tsx +1 -0
  90. package/src/components/link/Link.test.tsx +2 -0
  91. package/src/components/link/Link.tsx +2 -0
  92. package/src/components/link-preview/LinkPreview.test.tsx +2 -0
  93. package/src/components/link-preview/LinkPreview.tsx +2 -0
  94. package/src/components/list/List.stories.tsx +1 -1
  95. package/src/components/list/List.test.tsx +2 -0
  96. package/src/components/list/List.tsx +1 -1
  97. package/src/components/list/ListDivider.test.tsx +2 -0
  98. package/src/components/list/ListDivider.tsx +2 -0
  99. package/src/components/list/ListItem.test.tsx +2 -0
  100. package/src/components/list/ListItem.tsx +1 -1
  101. package/src/components/list/ListSubheader.test.tsx +2 -0
  102. package/src/components/list/ListSubheader.tsx +1 -1
  103. package/src/components/message/Message.test.tsx +1 -0
  104. package/src/components/message/Message.tsx +1 -1
  105. package/src/components/mosaic/Mosaic.test.tsx +2 -0
  106. package/src/components/mosaic/Mosaic.tsx +1 -1
  107. package/src/components/navigation/Navigation.stories.tsx +2 -0
  108. package/src/components/navigation/Navigation.test.tsx +2 -0
  109. package/src/components/navigation/Navigation.tsx +2 -0
  110. package/src/components/navigation/NavigationItem.test.tsx +2 -0
  111. package/src/components/navigation/NavigationItem.tsx +1 -1
  112. package/src/components/navigation/NavigationSection.test.tsx +2 -0
  113. package/src/components/navigation/NavigationSection.tsx +1 -1
  114. package/src/components/notification/Notification.test.tsx +2 -0
  115. package/src/components/notification/Notification.tsx +1 -1
  116. package/src/components/popover/Popover.test.tsx +2 -0
  117. package/src/components/popover/Popover.tsx +1 -1
  118. package/src/components/popover/usePopoverStyle.tsx +1 -1
  119. package/src/components/popover-dialog/PopoverDialog.test.tsx +1 -0
  120. package/src/components/popover-dialog/PopoverDialog.tsx +2 -0
  121. package/src/components/post-block/PostBlock.test.tsx +2 -0
  122. package/src/components/post-block/PostBlock.tsx +1 -1
  123. package/src/components/progress/Progress.tsx +2 -0
  124. package/src/components/progress/ProgressCircular.stories.tsx +1 -0
  125. package/src/components/progress/ProgressCircular.test.tsx +2 -0
  126. package/src/components/progress/ProgressCircular.tsx +2 -0
  127. package/src/components/progress/ProgressLinear.test.tsx +2 -0
  128. package/src/components/progress/ProgressLinear.tsx +2 -0
  129. package/src/components/progress-tracker/ProgressTracker.stories.tsx +1 -1
  130. package/src/components/progress-tracker/ProgressTracker.test.tsx +2 -0
  131. package/src/components/progress-tracker/ProgressTrackerProvider.test.tsx +2 -0
  132. package/src/components/progress-tracker/ProgressTrackerProvider.tsx +1 -1
  133. package/src/components/progress-tracker/ProgressTrackerStep.test.tsx +2 -0
  134. package/src/components/progress-tracker/ProgressTrackerStep.tsx +1 -1
  135. package/src/components/progress-tracker/ProgressTrackerStepPanel.test.tsx +2 -0
  136. package/src/components/progress-tracker/ProgressTrackerStepPanel.tsx +2 -0
  137. package/src/components/radio-button/RadioButton.test.tsx +2 -0
  138. package/src/components/radio-button/RadioButton.tsx +1 -1
  139. package/src/components/radio-button/RadioGroup.stories.tsx +1 -1
  140. package/src/components/radio-button/RadioGroup.test.tsx +2 -0
  141. package/src/components/radio-button/RadioGroup.tsx +1 -1
  142. package/src/components/select/Select.stories.tsx +1 -1
  143. package/src/components/select/Select.test.tsx +2 -0
  144. package/src/components/select/Select.tsx +1 -1
  145. package/src/components/select/SelectMultiple.stories.tsx +1 -1
  146. package/src/components/select/SelectMultiple.test.tsx +2 -0
  147. package/src/components/select/SelectMultiple.tsx +1 -1
  148. package/src/components/select/WithSelectContext.tsx +1 -1
  149. package/src/components/select/constants.ts +1 -1
  150. package/src/components/side-navigation/SideNavigation.test.tsx +2 -0
  151. package/src/components/side-navigation/SideNavigation.tsx +1 -1
  152. package/src/components/side-navigation/SideNavigationItem.test.tsx +2 -0
  153. package/src/components/side-navigation/SideNavigationItem.tsx +1 -1
  154. package/src/components/skeleton/SkeletonCircle.test.tsx +2 -0
  155. package/src/components/skeleton/SkeletonCircle.tsx +2 -0
  156. package/src/components/skeleton/SkeletonRectangle.test.tsx +2 -0
  157. package/src/components/skeleton/SkeletonRectangle.tsx +2 -0
  158. package/src/components/skeleton/SkeletonTypography.stories.tsx +2 -0
  159. package/src/components/skeleton/SkeletonTypography.test.tsx +2 -0
  160. package/src/components/skeleton/SkeletonTypography.tsx +1 -1
  161. package/src/components/slider/Slider.test.tsx +2 -0
  162. package/src/components/slider/Slider.tsx +1 -1
  163. package/src/components/slideshow/Slideshow.stories.tsx +1 -0
  164. package/src/components/slideshow/Slideshow.test.tsx +2 -0
  165. package/src/components/slideshow/SlideshowControls.stories.tsx +2 -0
  166. package/src/components/slideshow/SlideshowItem.tsx +2 -0
  167. package/src/components/slideshow/useSlideFocusManagement.tsx +1 -1
  168. package/src/components/switch/Switch.test.tsx +2 -0
  169. package/src/components/switch/Switch.tsx +1 -1
  170. package/src/components/table/Table.test.tsx +2 -0
  171. package/src/components/table/Table.tsx +2 -0
  172. package/src/components/table/TableBody.test.tsx +2 -0
  173. package/src/components/table/TableBody.tsx +2 -0
  174. package/src/components/table/TableCell.test.tsx +2 -0
  175. package/src/components/table/TableCell.tsx +2 -0
  176. package/src/components/table/TableHeader.test.tsx +2 -0
  177. package/src/components/table/TableHeader.tsx +2 -0
  178. package/src/components/table/TableRow.test.tsx +2 -0
  179. package/src/components/table/TableRow.tsx +2 -0
  180. package/src/components/tabs/Tab.test.tsx +2 -0
  181. package/src/components/tabs/Tab.tsx +1 -1
  182. package/src/components/tabs/TabList.test.tsx +2 -0
  183. package/src/components/tabs/TabPanel.test.tsx +2 -0
  184. package/src/components/tabs/TabPanel.tsx +2 -0
  185. package/src/components/tabs/TabProvider.test.tsx +2 -0
  186. package/src/components/tabs/TabProvider.tsx +1 -1
  187. package/src/components/tabs/Tabs.stories.tsx +1 -1
  188. package/src/components/text/Text.stories.tsx +1 -1
  189. package/src/components/text/Text.test.tsx +2 -0
  190. package/src/components/text/Text.tsx +2 -0
  191. package/src/components/text-field/RawInputText.stories.tsx +18 -0
  192. package/src/components/text-field/RawInputText.test.tsx +58 -0
  193. package/src/components/text-field/RawInputText.tsx +56 -0
  194. package/src/components/text-field/RawInputTextarea.stories.tsx +22 -0
  195. package/src/components/text-field/RawInputTextarea.test.tsx +63 -0
  196. package/src/components/text-field/RawInputTextarea.tsx +68 -0
  197. package/src/components/text-field/TextField.test.tsx +11 -2
  198. package/src/components/text-field/TextField.tsx +40 -210
  199. package/src/components/text-field/constants.ts +16 -0
  200. package/src/components/text-field/index.ts +3 -1
  201. package/src/components/text-field/useFitRowsToContent.ts +42 -0
  202. package/src/components/thumbnail/Thumbnail.test.tsx +2 -0
  203. package/src/components/toolbar/Toolbar.tsx +1 -1
  204. package/src/components/tooltip/Tooltip.stories.tsx +1 -2
  205. package/src/components/tooltip/Tooltip.test.tsx +1 -1
  206. package/src/components/uploader/Uploader.test.tsx +2 -0
  207. package/src/components/user-block/UserBlock.stories.tsx +2 -0
  208. package/src/components/user-block/UserBlock.test.tsx +2 -0
  209. package/src/hooks/useId.test.tsx +1 -0
  210. package/src/hooks/useInfiniteScroll.tsx +1 -1
  211. package/src/hooks/usePreviousValue.ts +1 -0
  212. package/src/stories/decorators/withChromaticForceScreenSize.tsx +1 -0
  213. package/src/stories/decorators/withNestedProps.tsx +1 -0
  214. package/src/stories/decorators/withThemedBackground.tsx +2 -0
  215. package/src/stories/decorators/withWrapper.tsx +2 -0
  216. package/src/stories/utils/CustomLink.tsx +1 -0
  217. package/src/testing/utils/ThemeSentinel.tsx +1 -0
  218. package/src/utils/ClickAwayProvider/ClickAwayProvider.stories.jsx +1 -1
  219. package/src/utils/ClickAwayProvider/ClickAwayProvider.tsx +1 -1
  220. package/src/utils/MaterialThemeSwitcher/MaterialThemeSwitcher.tsx +1 -1
  221. package/src/utils/Portal/Portal.test.tsx +1 -0
  222. package/src/utils/Portal/PortalProvider.stories.jsx +1 -0
  223. package/src/utils/Portal/PortalProvider.test.tsx +1 -0
  224. package/src/utils/disabled/DisabledStateProvider.stories.tsx +2 -0
  225. package/src/utils/react/OnBeforeUnmount.tsx +1 -1
  226. package/src/utils/react/RawClickable.tsx +1 -1
  227. package/src/utils/react/skipRender.tsx +2 -2
  228. package/src/utils/react/wrapChildrenIconWithSpaces.test.tsx +1 -1
  229. package/src/utils/type/HasPolymorphicAs.ts +2 -0
  230. package/utils/index.d.ts +7 -7
  231. package/utils/index.js +1 -1
@@ -1,6 +1,5 @@
1
1
  import React__default, { useContext, useEffect, useMemo, useRef, createContext } from 'react';
2
2
  import isEmpty from 'lodash/isEmpty';
3
- import { jsx, Fragment } from 'react/jsx-runtime';
4
3
  import { createPortal } from 'react-dom';
5
4
 
6
5
  function _defineProperty(e, r, t) {
@@ -11,6 +10,15 @@ function _defineProperty(e, r, t) {
11
10
  writable: !0
12
11
  }) : e[r] = t, e;
13
12
  }
13
+ function _extends() {
14
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
15
+ for (var e = 1; e < arguments.length; e++) {
16
+ var t = arguments[e];
17
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
18
+ }
19
+ return n;
20
+ }, _extends.apply(null, arguments);
21
+ }
14
22
  function ownKeys(e, r) {
15
23
  var t = Object.keys(e);
16
24
  if (Object.getOwnPropertySymbols) {
@@ -68,6 +76,9 @@ function _toPropertyKey(t) {
68
76
  }
69
77
 
70
78
  const _excluded = ["children"];
79
+
80
+ /** Disable state */
81
+
71
82
  const DisabledStateContext = /*#__PURE__*/React__default.createContext({
72
83
  state: null
73
84
  });
@@ -80,10 +91,9 @@ function DisabledStateProvider(_ref) {
80
91
  children
81
92
  } = _ref,
82
93
  value = _objectWithoutProperties(_ref, _excluded);
83
- return /*#__PURE__*/jsx(DisabledStateContext.Provider, {
84
- value: value,
85
- children: children
86
- });
94
+ return /*#__PURE__*/React__default.createElement(DisabledStateContext.Provider, {
95
+ value: value
96
+ }, children);
87
97
  }
88
98
 
89
99
  /**
@@ -179,10 +189,9 @@ const ClickAwayProvider = ({
179
189
  callback,
180
190
  childrenRefs: useRef(currentContext.childrenRefs)
181
191
  });
182
- return /*#__PURE__*/jsx(ClickAwayAncestorContext.Provider, {
183
- value: currentContext,
184
- children: children
185
- });
192
+ return /*#__PURE__*/React__default.createElement(ClickAwayAncestorContext.Provider, {
193
+ value: currentContext
194
+ }, children);
186
195
  };
187
196
  ClickAwayProvider.displayName = 'ClickAwayProvider';
188
197
 
@@ -218,12 +227,10 @@ const Portal = ({
218
227
  return context === null || context === void 0 ? void 0 : context.teardown;
219
228
  }, [context === null || context === void 0 ? void 0 : context.teardown, enabled]);
220
229
  if (!(context !== null && context !== void 0 && context.container)) {
221
- return /*#__PURE__*/jsx(Fragment, {
222
- children: children
223
- });
230
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children);
224
231
  }
225
232
  return /*#__PURE__*/createPortal(children, context.container);
226
233
  };
227
234
 
228
- export { ClickAwayProvider as C, DisabledStateProvider as D, Portal as P, _objectSpread2 as _, _objectWithoutProperties as a, PortalProvider as b, useDisabledStateContext as u };
235
+ export { ClickAwayProvider as C, DisabledStateProvider as D, Portal as P, _objectSpread2 as _, _objectWithoutProperties as a, _extends as b, PortalProvider as c, useDisabledStateContext as u };
229
236
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/utils/disabled/DisabledStateContext.tsx","../../src/hooks/useClickAway.tsx","../../src/utils/ClickAwayProvider/ClickAwayProvider.tsx","../../src/utils/Portal/PortalProvider.tsx","../../src/utils/Portal/Portal.tsx"],"sourcesContent":["import React, { useContext } from 'react';\n\n/** Disable state */\ntype DisabledStateContextValue =\n | {\n state: 'disabled';\n }\n | { state: undefined | null };\n\nexport const DisabledStateContext = React.createContext<DisabledStateContextValue>({ state: null });\n\nexport type DisabledStateProviderProps = DisabledStateContextValue & {\n children: React.ReactNode;\n};\n\n/**\n * Disabled state provider.\n * All nested LumX Design System components inherit this disabled state.\n */\nexport function DisabledStateProvider({ children, ...value }: DisabledStateProviderProps) {\n return <DisabledStateContext.Provider value={value}>{children}</DisabledStateContext.Provider>;\n}\n\n/**\n * Get DisabledState context value\n */\nexport function useDisabledStateContext(): DisabledStateContextValue {\n return useContext(DisabledStateContext);\n}\n","import { RefObject, useEffect } from 'react';\n\nimport { Falsy } from '@lumx/react/utils/type';\n\nimport isEmpty from 'lodash/isEmpty';\n\nconst EVENT_TYPES = ['mousedown', 'touchstart'];\n\nfunction isClickAway(targets: HTMLElement[], refs: Array<RefObject<HTMLElement>>): boolean {\n // The targets elements are not contained in any of the listed element references.\n return !refs.some((ref) => targets.some((target) => ref?.current?.contains(target)));\n}\n\nexport interface ClickAwayParameters {\n /**\n * A callback function to call when the user clicks away from the elements.\n */\n callback: EventListener | Falsy;\n /**\n * Elements considered within the click away context (clicking outside them will trigger the click away callback).\n */\n childrenRefs: RefObject<Array<RefObject<HTMLElement>>>;\n}\n\n/**\n * Listen to clicks away from the given elements and callback the passed in function.\n *\n * Warning: If you need to detect click away on nested React portals, please use the `ClickAwayProvider` component.\n */\nexport function useClickAway({ callback, childrenRefs }: ClickAwayParameters): void {\n useEffect(() => {\n const { current: currentRefs } = childrenRefs;\n if (!callback || !currentRefs || isEmpty(currentRefs)) {\n return undefined;\n }\n const listener: EventListener = (evt) => {\n const targets = [evt.composedPath?.()[0], evt.target] as HTMLElement[];\n if (isClickAway(targets, currentRefs)) {\n callback(evt);\n }\n };\n\n EVENT_TYPES.forEach((evtType) => document.addEventListener(evtType, listener));\n return () => {\n EVENT_TYPES.forEach((evtType) => document.removeEventListener(evtType, listener));\n };\n }, [callback, childrenRefs]);\n}\n","import { createContext, RefObject, useContext, useEffect, useMemo, useRef } from 'react';\nimport { ClickAwayParameters, useClickAway } from '@lumx/react/hooks/useClickAway';\n\ninterface ContextValue {\n childrenRefs: Array<RefObject<HTMLElement>>;\n addRefs(...newChildrenRefs: Array<RefObject<HTMLElement>>): void;\n}\n\nconst ClickAwayAncestorContext = createContext<ContextValue | null>(null);\n\ninterface ClickAwayProviderProps extends ClickAwayParameters {\n /**\n * (Optional) Element that should be considered as part of the parent\n */\n parentRef?: RefObject<HTMLElement>;\n /**\n * Children\n */\n children?: React.ReactNode;\n}\n\n/**\n * Component combining the `useClickAway` hook with a React context to hook into the React component tree and make sure\n * we take into account both the DOM tree and the React tree to detect click away.\n *\n * @return the react component.\n */\nexport const ClickAwayProvider: React.FC<ClickAwayProviderProps> = ({\n children,\n callback,\n childrenRefs,\n parentRef,\n}) => {\n const parentContext = useContext(ClickAwayAncestorContext);\n const currentContext = useMemo(() => {\n const context: ContextValue = {\n childrenRefs: [],\n /**\n * Add element refs to the current context and propagate to the parent context.\n */\n addRefs(...newChildrenRefs) {\n // Add element refs that should be considered as inside the click away context.\n context.childrenRefs.push(...newChildrenRefs);\n\n if (parentContext) {\n // Also add then to the parent context\n parentContext.addRefs(...newChildrenRefs);\n if (parentRef) {\n // The parent element is also considered as inside the parent click away context but not inside the current context\n parentContext.addRefs(parentRef);\n }\n }\n },\n };\n return context;\n }, [parentContext, parentRef]);\n\n useEffect(() => {\n const { current: currentRefs } = childrenRefs;\n if (!currentRefs) {\n return;\n }\n currentContext.addRefs(...currentRefs);\n }, [currentContext, childrenRefs]);\n\n useClickAway({ callback, childrenRefs: useRef(currentContext.childrenRefs) });\n return <ClickAwayAncestorContext.Provider value={currentContext}>{children}</ClickAwayAncestorContext.Provider>;\n};\nClickAwayProvider.displayName = 'ClickAwayProvider';\n","import React from 'react';\n\ntype Container = DocumentFragment | Element;\n\n/**\n * Portal initializing function.\n * If it does not provide a container, the Portal children will render in classic React tree and not in a portal.\n */\nexport type PortalInit = () => {\n container?: Container;\n teardown?: () => void;\n};\n\nexport const PortalContext = React.createContext<PortalInit>(() => ({ container: document.body }));\n\nexport interface PortalProviderProps {\n children?: React.ReactNode;\n value: PortalInit;\n}\n\n/**\n * Customize where <Portal> wrapped elements render (tooltip, popover, dialog, etc.)\n */\nexport const PortalProvider: React.FC<PortalProviderProps> = PortalContext.Provider;\n","import React from 'react';\nimport { createPortal } from 'react-dom';\nimport { PortalContext } from './PortalProvider';\n\nexport interface PortalProps {\n enabled?: boolean;\n children: React.ReactNode;\n}\n\n/**\n * Render children in a portal outside the current DOM position\n * (defaults to `document.body` but can be customized with the PortalContextProvider)\n */\nexport const Portal: React.FC<PortalProps> = ({ children, enabled = true }) => {\n const init = React.useContext(PortalContext);\n const context = React.useMemo(\n () => {\n return enabled ? init() : null;\n },\n // Only update on 'enabled'\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [enabled],\n );\n\n React.useLayoutEffect(() => {\n return context?.teardown;\n }, [context?.teardown, enabled]);\n\n if (!context?.container) {\n return <>{children}</>;\n }\n return createPortal(children, context.container);\n};\n"],"names":["DisabledStateContext","React","createContext","state","DisabledStateProvider","_ref","children","value","_objectWithoutProperties","_excluded","_jsx","Provider","useDisabledStateContext","useContext","EVENT_TYPES","isClickAway","targets","refs","some","ref","target","_ref$current","current","contains","useClickAway","callback","childrenRefs","useEffect","currentRefs","isEmpty","undefined","listener","evt","_evt$composedPath","composedPath","call","forEach","evtType","document","addEventListener","removeEventListener","ClickAwayAncestorContext","ClickAwayProvider","parentRef","parentContext","currentContext","useMemo","context","addRefs","newChildrenRefs","push","useRef","displayName","PortalContext","container","body","PortalProvider","Portal","enabled","init","useLayoutEffect","teardown","_Fragment","createPortal"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASO,MAAMA,oBAAoB,gBAAGC,cAAK,CAACC,aAAa,CAA4B;AAAEC,EAAAA,KAAK,EAAE,IAAA;AAAK,CAAC,CAAC,CAAA;AAMnG;AACA;AACA;AACA;AACO,SAASC,qBAAqBA,CAAAC,IAAA,EAAqD;EAAA,IAApD;AAAEC,MAAAA,QAAAA;AAA+C,KAAC,GAAAD,IAAA;AAAnCE,IAAAA,KAAK,GAAAC,wBAAA,CAAAH,IAAA,EAAAI,SAAA,CAAA,CAAA;AACtD,EAAA,oBAAOC,GAAA,CAACV,oBAAoB,CAACW,QAAQ,EAAA;AAACJ,IAAAA,KAAK,EAAEA,KAAM;AAAAD,IAAAA,QAAA,EAAEA,QAAAA;AAAQ,GAAgC,CAAC,CAAA;AAClG,CAAA;;AAEA;AACA;AACA;AACO,SAASM,uBAAuBA,GAA8B;EACjE,OAAOC,UAAU,CAACb,oBAAoB,CAAC,CAAA;AAC3C;;ACtBA,MAAMc,WAAW,GAAG,CAAC,WAAW,EAAE,YAAY,CAAC,CAAA;AAE/C,SAASC,WAAWA,CAACC,OAAsB,EAAEC,IAAmC,EAAW;AACvF;EACA,OAAO,CAACA,IAAI,CAACC,IAAI,CAAEC,GAAG,IAAKH,OAAO,CAACE,IAAI,CAAEE,MAAM,IAAA;AAAA,IAAA,IAAAC,YAAA,CAAA;AAAA,IAAA,OAAKF,GAAG,KAAHA,IAAAA,IAAAA,GAAG,KAAAE,KAAAA,CAAAA,GAAAA,KAAAA,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KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAPA,OAAO,CAAEc,QAAQ,EAAEH,OAAO,CAAC,CAAC,CAAA;EAEhC,IAAI,EAACX,OAAO,KAAPA,IAAAA,IAAAA,OAAO,eAAPA,OAAO,CAAEO,SAAS,CAAE,EAAA;IACrB,oBAAO5C,GAAA,CAAAoD,QAAA,EAAA;AAAAxD,MAAAA,QAAA,EAAGA,QAAAA;AAAQ,KAAG,CAAC,CAAA;AAC1B,GAAA;AACA,EAAA,oBAAOyD,YAAY,CAACzD,QAAQ,EAAEyC,OAAO,CAACO,SAAS,CAAC,CAAA;AACpD;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../src/utils/disabled/DisabledStateContext.tsx","../../src/hooks/useClickAway.tsx","../../src/utils/ClickAwayProvider/ClickAwayProvider.tsx","../../src/utils/Portal/PortalProvider.tsx","../../src/utils/Portal/Portal.tsx"],"sourcesContent":["import React, { useContext } from 'react';\n\n/** Disable state */\ntype DisabledStateContextValue =\n | {\n state: 'disabled';\n }\n | { state: undefined | null };\n\nexport const DisabledStateContext = React.createContext<DisabledStateContextValue>({ state: null });\n\nexport type DisabledStateProviderProps = DisabledStateContextValue & {\n children: React.ReactNode;\n};\n\n/**\n * Disabled state provider.\n * All nested LumX Design System components inherit this disabled state.\n */\nexport function DisabledStateProvider({ children, ...value }: DisabledStateProviderProps) {\n return <DisabledStateContext.Provider value={value}>{children}</DisabledStateContext.Provider>;\n}\n\n/**\n * Get DisabledState context value\n */\nexport function useDisabledStateContext(): DisabledStateContextValue {\n return useContext(DisabledStateContext);\n}\n","import { RefObject, useEffect } from 'react';\n\nimport { Falsy } from '@lumx/react/utils/type';\n\nimport isEmpty from 'lodash/isEmpty';\n\nconst EVENT_TYPES = ['mousedown', 'touchstart'];\n\nfunction isClickAway(targets: HTMLElement[], refs: Array<RefObject<HTMLElement>>): boolean {\n // The targets elements are not contained in any of the listed element references.\n return !refs.some((ref) => targets.some((target) => ref?.current?.contains(target)));\n}\n\nexport interface ClickAwayParameters {\n /**\n * A callback function to call when the user clicks away from the elements.\n */\n callback: EventListener | Falsy;\n /**\n * Elements considered within the click away context (clicking outside them will trigger the click away callback).\n */\n childrenRefs: RefObject<Array<RefObject<HTMLElement>>>;\n}\n\n/**\n * Listen to clicks away from the given elements and callback the passed in function.\n *\n * Warning: If you need to detect click away on nested React portals, please use the `ClickAwayProvider` component.\n */\nexport function useClickAway({ callback, childrenRefs }: ClickAwayParameters): void {\n useEffect(() => {\n const { current: currentRefs } = childrenRefs;\n if (!callback || !currentRefs || isEmpty(currentRefs)) {\n return undefined;\n }\n const listener: EventListener = (evt) => {\n const targets = [evt.composedPath?.()[0], evt.target] as HTMLElement[];\n if (isClickAway(targets, currentRefs)) {\n callback(evt);\n }\n };\n\n EVENT_TYPES.forEach((evtType) => document.addEventListener(evtType, listener));\n return () => {\n EVENT_TYPES.forEach((evtType) => document.removeEventListener(evtType, listener));\n };\n }, [callback, childrenRefs]);\n}\n","import React, { createContext, RefObject, useContext, useEffect, useMemo, useRef } from 'react';\nimport { ClickAwayParameters, useClickAway } from '@lumx/react/hooks/useClickAway';\n\ninterface ContextValue {\n childrenRefs: Array<RefObject<HTMLElement>>;\n addRefs(...newChildrenRefs: Array<RefObject<HTMLElement>>): void;\n}\n\nconst ClickAwayAncestorContext = createContext<ContextValue | null>(null);\n\ninterface ClickAwayProviderProps extends ClickAwayParameters {\n /**\n * (Optional) Element that should be considered as part of the parent\n */\n parentRef?: RefObject<HTMLElement>;\n /**\n * Children\n */\n children?: React.ReactNode;\n}\n\n/**\n * Component combining the `useClickAway` hook with a React context to hook into the React component tree and make sure\n * we take into account both the DOM tree and the React tree to detect click away.\n *\n * @return the react component.\n */\nexport const ClickAwayProvider: React.FC<ClickAwayProviderProps> = ({\n children,\n callback,\n childrenRefs,\n parentRef,\n}) => {\n const parentContext = useContext(ClickAwayAncestorContext);\n const currentContext = useMemo(() => {\n const context: ContextValue = {\n childrenRefs: [],\n /**\n * Add element refs to the current context and propagate to the parent context.\n */\n addRefs(...newChildrenRefs) {\n // Add element refs that should be considered as inside the click away context.\n context.childrenRefs.push(...newChildrenRefs);\n\n if (parentContext) {\n // Also add then to the parent context\n parentContext.addRefs(...newChildrenRefs);\n if (parentRef) {\n // The parent element is also considered as inside the parent click away context but not inside the current context\n parentContext.addRefs(parentRef);\n }\n }\n },\n };\n return context;\n }, [parentContext, parentRef]);\n\n useEffect(() => {\n const { current: currentRefs } = childrenRefs;\n if (!currentRefs) {\n return;\n }\n currentContext.addRefs(...currentRefs);\n }, [currentContext, childrenRefs]);\n\n useClickAway({ callback, childrenRefs: useRef(currentContext.childrenRefs) });\n return <ClickAwayAncestorContext.Provider value={currentContext}>{children}</ClickAwayAncestorContext.Provider>;\n};\nClickAwayProvider.displayName = 'ClickAwayProvider';\n","import React from 'react';\n\ntype Container = DocumentFragment | Element;\n\n/**\n * Portal initializing function.\n * If it does not provide a container, the Portal children will render in classic React tree and not in a portal.\n */\nexport type PortalInit = () => {\n container?: Container;\n teardown?: () => void;\n};\n\nexport const PortalContext = React.createContext<PortalInit>(() => ({ container: document.body }));\n\nexport interface PortalProviderProps {\n children?: React.ReactNode;\n value: PortalInit;\n}\n\n/**\n * Customize where <Portal> wrapped elements render (tooltip, popover, dialog, etc.)\n */\nexport const PortalProvider: React.FC<PortalProviderProps> = PortalContext.Provider;\n","import React from 'react';\nimport { createPortal } from 'react-dom';\nimport { PortalContext } from './PortalProvider';\n\nexport interface PortalProps {\n enabled?: boolean;\n children: React.ReactNode;\n}\n\n/**\n * Render children in a portal outside the current DOM position\n * (defaults to `document.body` but can be customized with the PortalContextProvider)\n */\nexport const Portal: React.FC<PortalProps> = ({ children, enabled = true }) => {\n const init = React.useContext(PortalContext);\n const context = React.useMemo(\n () => {\n return enabled ? init() : null;\n },\n // Only update on 'enabled'\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [enabled],\n );\n\n React.useLayoutEffect(() => {\n return context?.teardown;\n }, [context?.teardown, enabled]);\n\n if (!context?.container) {\n return <>{children}</>;\n }\n return createPortal(children, context.container);\n};\n"],"names":["DisabledStateContext","React","createContext","state","DisabledStateProvider","_ref","children","value","_objectWithoutProperties","_excluded","createElement","Provider","useDisabledStateContext","useContext","EVENT_TYPES","isClickAway","targets","refs","some","ref","target","_ref$current","current","contains","useClickAway","callback","childrenRefs","useEffect","currentRefs","isEmpty","undefined","listener","evt","_evt$composedPath","composedPath","call","forEach","evtType","document","addEventListener","removeEventListener","ClickAwayAncestorContext","ClickAwayProvider","parentRef","parentContext","currentContext","useMemo","context","addRefs","newChildrenRefs","push","useRef","displayName","PortalContext","container","body","PortalProvider","Portal","enabled","init","useLayoutEffect","teardown","Fragment","createPortal"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;;AAOO,MAAMA,oBAAoB,gBAAGC,cAAK,CAACC,aAAa,CAA4B;AAAEC,EAAAA,KAAK,EAAE,IAAA;AAAK,CAAC,CAAC,CAAA;AAMnG;AACA;AACA;AACA;AACO,SAASC,qBAAqBA,CAAAC,IAAA,EAAqD;EAAA,IAApD;AAAEC,MAAAA,QAAAA;AAA+C,KAAC,GAAAD,IAAA;AAAnCE,IAAAA,KAAK,GAAAC,wBAAA,CAAAH,IAAA,EAAAI,SAAA,CAAA,CAAA;AACtD,EAAA,oBAAOR,cAAA,CAAAS,aAAA,CAACV,oBAAoB,CAACW,QAAQ,EAAA;AAACJ,IAAAA,KAAK,EAAEA,KAAAA;AAAM,GAAA,EAAED,QAAwC,CAAC,CAAA;AAClG,CAAA;;AAEA;AACA;AACA;AACO,SAASM,uBAAuBA,GAA8B;EACjE,OAAOC,UAAU,CAACb,oBAAoB,CAAC,CAAA;AAC3C;;ACtBA,MAAMc,WAAW,GAAG,CAAC,WAAW,EAAE,YAAY,CAAC,CAAA;AAE/C,SAASC,WAAWA,CAACC,OAAsB,EAAEC,IAAmC,EAAW;AACvF;E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AAe,CAAC,MAAM;AACxB,IAAA,OAAOb,OAAO,KAAPA,IAAAA,IAAAA,OAAO,KAAPA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,OAAO,CAAEc,QAAQ,CAAA;AAC5B,GAAC,EAAE,CAACd,OAAO,KAAA,IAAA,IAAPA,OAAO,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAPA,OAAO,CAAEc,QAAQ,EAAEH,OAAO,CAAC,CAAC,CAAA;EAEhC,IAAI,EAACX,OAAO,KAAPA,IAAAA,IAAAA,OAAO,eAAPA,OAAO,CAAEO,SAAS,CAAE,EAAA;IACrB,oBAAOrD,cAAA,CAAAS,aAAA,CAAAT,cAAA,CAAA6D,QAAA,EAAGxD,IAAAA,EAAAA,QAAW,CAAC,CAAA;AAC1B,GAAA;AACA,EAAA,oBAAOyD,YAAY,CAACzD,QAAQ,EAAEyC,OAAO,CAACO,SAAS,CAAC,CAAA;AACpD;;;;"}
package/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { F as Falsy } from './_internal/Falsy.js';
2
- import * as React$1 from 'react';
3
- import React__default, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, AriaAttributes, DetailedHTMLProps, ButtonHTMLAttributes, InputHTMLAttributes, RefObject, ImgHTMLAttributes, CSSProperties, SetStateAction, Key, ElementType } from 'react';
2
+ import React, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, AriaAttributes, DetailedHTMLProps, ButtonHTMLAttributes, InputHTMLAttributes, RefObject, ImgHTMLAttributes, CSSProperties, SetStateAction, Key, ComponentProps } from 'react';
4
3
 
5
4
  /** Get types of the values of a record. */
6
5
  type ValueOf<T extends Record<any, any>> = T[keyof T];
@@ -372,7 +371,7 @@ type Comp<P, T = HTMLElement> = {
372
371
  * @example ComponentRef<'div'> => React.Ref<HTMLDivElement>
373
372
  * @example ComponentRef<Button> => React.Ref<HTMLButtonElement
374
373
  */
375
- type ComponentRef<C> = C extends keyof JSX.IntrinsicElements ? JSX.IntrinsicElements[C]['ref'] : C extends Comp<any, infer T> ? React__default.Ref<T> : C extends React__default.JSXElementConstructor<{
374
+ type ComponentRef<C> = C extends keyof JSX.IntrinsicElements ? JSX.IntrinsicElements[C]['ref'] : C extends Comp<any, infer T> ? React.Ref<T> : C extends React.JSXElementConstructor<{
376
375
  ref?: infer R;
377
376
  }> ? R : never;
378
377
 
@@ -401,7 +400,7 @@ interface AlertDialogProps extends Omit<DialogProps, 'header' | 'footer'> {
401
400
  /**
402
401
  * Children
403
402
  */
404
- children?: React__default.ReactNode;
403
+ children?: React.ReactNode;
405
404
  }
406
405
  /**
407
406
  * AlertDialog component.
@@ -793,7 +792,7 @@ interface CheckboxProps extends GenericProps, HasTheme, HasAriaDisabled {
793
792
  /** Native input id property. */
794
793
  id?: string;
795
794
  /** Native input ref. */
796
- inputRef?: React__default.Ref<HTMLInputElement>;
795
+ inputRef?: React.Ref<HTMLInputElement>;
797
796
  /** Whether it is checked or not or intermediate. */
798
797
  isChecked?: boolean | 'intermediate';
799
798
  /** Whether the component is disabled or not. */
@@ -1071,7 +1070,7 @@ interface DialogProps extends GenericProps {
1071
1070
  /** whether to disable the scroll on the body or not */
1072
1071
  disableBodyScroll?: boolean;
1073
1072
  /** Children */
1074
- children?: React__default.ReactNode;
1073
+ children?: React.ReactNode;
1075
1074
  }
1076
1075
  type DialogSizes = Extract<Size, 'tiny' | 'regular' | 'big' | 'huge'>;
1077
1076
  /**
@@ -1310,15 +1309,15 @@ interface ExpansionPanelProps extends GenericProps, HasCloseMode, HasTheme {
1310
1309
  /** Label text (overwritten if a `<header>` is provided in the children). */
1311
1310
  label?: string;
1312
1311
  /** On open callback. */
1313
- onOpen?: (event: React__default.MouseEvent) => void;
1312
+ onOpen?: (event: React.MouseEvent) => void;
1314
1313
  /** On close callback. */
1315
- onClose?: (event: React__default.MouseEvent) => void;
1314
+ onClose?: (event: React.MouseEvent) => void;
1316
1315
  /** Props to pass to the toggle button (minus those already set by the ExpansionPanel props). */
1317
1316
  toggleButtonProps: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis' | 'color'>;
1318
1317
  /** On toggle open or close callback. */
1319
- onToggleOpen?(shouldOpen: boolean, event: React__default.MouseEvent): void;
1318
+ onToggleOpen?(shouldOpen: boolean, event: React.MouseEvent): void;
1320
1319
  /** Children */
1321
- children?: React__default.ReactNode;
1320
+ children?: React.ReactNode;
1322
1321
  }
1323
1322
  /**
1324
1323
  * ExpansionPanel component.
@@ -1675,7 +1674,6 @@ interface IconProps extends GenericProps, HasTheme {
1675
1674
  /** Sets an alternative text on the svg. Will set an `img` role to the svg. */
1676
1675
  alt?: string;
1677
1676
  }
1678
-
1679
1677
  /**
1680
1678
  * Icon component.
1681
1679
  *
@@ -1698,7 +1696,7 @@ type FocusPoint = {
1698
1696
  * https://github.com/typescript-cheatsheets/react-typescript-cheatsheet/blob/master/ADVANCED.md#adding-non-standard-attributes
1699
1697
  */
1700
1698
  declare module 'react' {
1701
- interface ImgHTMLAttributes<T> extends React__default.HTMLAttributes<T> {
1699
+ interface ImgHTMLAttributes<T> extends React.HTMLAttributes<T> {
1702
1700
  loading?: 'eager' | 'lazy';
1703
1701
  }
1704
1702
  }
@@ -1764,7 +1762,7 @@ interface ThumbnailProps extends GenericProps, HasTheme {
1764
1762
  /** Image loading mode. */
1765
1763
  loading?: ImgHTMLProps['loading'];
1766
1764
  /** Ref of an existing placeholder image to display while loading. */
1767
- loadingPlaceholderImageRef?: React__default.RefObject<HTMLImageElement>;
1765
+ loadingPlaceholderImageRef?: React.RefObject<HTMLImageElement>;
1768
1766
  /** On click callback. */
1769
1767
  onClick?: MouseEventHandler<HTMLDivElement>;
1770
1768
  /** On key press callback. */
@@ -1772,7 +1770,7 @@ interface ThumbnailProps extends GenericProps, HasTheme {
1772
1770
  /** Variant of the component. */
1773
1771
  variant?: ThumbnailVariant;
1774
1772
  /** Props to pass to the link wrapping the thumbnail. */
1775
- linkProps?: React__default.DetailedHTMLProps<React__default.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
1773
+ linkProps?: React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
1776
1774
  /** Custom react component for the link (can be used to inject react router Link). */
1777
1775
  linkAs?: 'a' | any;
1778
1776
  }
@@ -1889,8 +1887,8 @@ declare function useImageLightbox<P extends Partial<ImageLightboxProps>>(props:
1889
1887
  * @param index Provide an index to choose which image to display when the image lightbox opens.
1890
1888
  * */
1891
1889
  getTriggerProps: (options?: TriggerOptions) => {
1892
- onClick: React__default.MouseEventHandler;
1893
- ref: React__default.Ref<any>;
1890
+ onClick: React.MouseEventHandler;
1891
+ ref: React.Ref<any>;
1894
1892
  };
1895
1893
  /** Props to forward to the ImageLightbox */
1896
1894
  imageLightboxProps: ManagedProps & P;
@@ -2265,11 +2263,11 @@ type BaseNavigationItemProps = {
2265
2263
  /** Mark as the current page link */
2266
2264
  isCurrentPage?: boolean;
2267
2265
  };
2268
- declare const NavigationItem: (<E extends ElementType = "a">(props: React$1.PropsWithoutRef<React$1.ComponentProps<E>> & {
2266
+ declare const NavigationItem: (<E extends React.ElementType = "a">(props: React.PropsWithoutRef<React.ComponentProps<E>> & {
2269
2267
  as?: E | undefined;
2270
- } & HasTheme & HasClassName & BaseNavigationItemProps & HasRequiredLinkHref<E> & React$1.ComponentProps<E> & {
2268
+ } & HasTheme & HasClassName & BaseNavigationItemProps & HasRequiredLinkHref<E> & React.ComponentProps<E> & {
2271
2269
  ref?: ComponentRef<E> | undefined;
2272
- }) => React$1.JSX.Element) & {
2270
+ }) => React.JSX.Element) & {
2273
2271
  displayName: string;
2274
2272
  className: string;
2275
2273
  };
@@ -2846,7 +2844,7 @@ interface SlideshowProps extends GenericProps, Pick<SlidesProps, 'autoPlay' | 's
2846
2844
  /** Callback when slide changes */
2847
2845
  onChange?(index: number): void;
2848
2846
  /** Children */
2849
- children?: React__default.ReactNode;
2847
+ children?: React.ReactNode;
2850
2848
  }
2851
2849
  /**
2852
2850
  * Slideshow component.
@@ -2949,7 +2947,7 @@ interface SlideshowControlsProps extends GenericProps, HasTheme {
2949
2947
  /** Props to pass to the previous button (minus those already set by the SlideshowControls props). */
2950
2948
  previousButtonProps: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis' | 'color'>;
2951
2949
  /** Props to pass to the pagination wrapper */
2952
- paginationProps?: Omit<React__default.HTMLAttributes<HTMLDivElement>, 'className' | 'style' | 'role'>;
2950
+ paginationProps?: Omit<React.HTMLAttributes<HTMLDivElement>, 'className' | 'style' | 'role'>;
2953
2951
  /** Number of slides. */
2954
2952
  slidesCount: number;
2955
2953
  /** On next button click callback. */
@@ -2968,7 +2966,7 @@ interface SlideshowControlsProps extends GenericProps, HasTheme {
2968
2966
  /**
2969
2967
  * function to be executed in order to retrieve the props for a pagination item.
2970
2968
  */
2971
- paginationItemProps?: (itemIndex: number) => React__default.HTMLAttributes<HTMLButtonElement> & {
2969
+ paginationItemProps?: (itemIndex: number) => React.HTMLAttributes<HTMLButtonElement> & {
2972
2970
  label?: string;
2973
2971
  };
2974
2972
  /** Props to pass to the lay button (minus those already set by the SlideshowControls props). */
@@ -3001,7 +2999,7 @@ interface SlidesProps extends GenericProps, HasTheme {
3001
2999
  /** callback to change whether the slideshow is playing or not */
3002
3000
  toggleAutoPlay: () => void;
3003
3001
  /** component to be rendered after the slides */
3004
- afterSlides?: React__default.ReactNode;
3002
+ afterSlides?: React.ReactNode;
3005
3003
  /** Whether the slides have controls linked */
3006
3004
  hasControls?: boolean;
3007
3005
  /**
@@ -3010,7 +3008,7 @@ interface SlidesProps extends GenericProps, HasTheme {
3010
3008
  * */
3011
3009
  slideGroupLabel?: (groupPosition: number, groupTotal: number) => string;
3012
3010
  /** Children */
3013
- children?: React__default.ReactNode;
3011
+ children?: React.ReactNode;
3014
3012
  }
3015
3013
  /**
3016
3014
  * Slides component.
@@ -3340,6 +3338,35 @@ interface TextFieldProps extends GenericProps, HasTheme, HasAriaDisabled {
3340
3338
  */
3341
3339
  declare const TextField: Comp<TextFieldProps, HTMLDivElement>;
3342
3340
 
3341
+ type NativeInputProps = Omit<ComponentProps<'input'>, 'value' | 'onChange'>;
3342
+ /**
3343
+ * Defines the props of the component.
3344
+ */
3345
+ interface RawInputTextProps extends NativeInputProps, HasTheme, HasClassName {
3346
+ value?: string;
3347
+ onChange?: (value: string, name?: string, event?: SyntheticEvent) => void;
3348
+ }
3349
+ /**
3350
+ * Raw input text component
3351
+ * (input element without any decoration)
3352
+ */
3353
+ declare const RawInputText: Comp<RawInputTextProps, HTMLInputElement>;
3354
+
3355
+ type NativeTextareaProps = ComponentProps<'textarea'>;
3356
+ /**
3357
+ * Defines the props of the component.
3358
+ */
3359
+ interface RawInputTextareaProps extends Omit<NativeTextareaProps, 'value' | 'onChange'>, HasTheme, HasClassName {
3360
+ minimumRows?: number;
3361
+ value?: string;
3362
+ onChange?: (value: string, name?: string, event?: SyntheticEvent) => void;
3363
+ }
3364
+ /**
3365
+ * Raw input text area component
3366
+ * (textarea element without any decoration)
3367
+ */
3368
+ declare const RawInputTextarea: Comp<Omit<RawInputTextareaProps, "type">, HTMLTextAreaElement>;
3369
+
3343
3370
  declare const useFocusPointStyle: ({ image, aspectRatio, focusPoint, imgProps: { width, height } }: ThumbnailProps, element: HTMLImageElement | undefined, isLoaded: boolean) => CSSProperties;
3344
3371
 
3345
3372
  /**
@@ -3408,8 +3435,8 @@ type UploaderSize = Extract<Size, 'xl' | 'xxl'>;
3408
3435
  /**
3409
3436
  * Extend native HTML input props with specialized `onChange` providing the a `File` array.
3410
3437
  */
3411
- interface FileInputProps extends Omit<React__default.ComponentProps<'input'>, 'onChange'> {
3412
- onChange(files: File[], evt: React__default.ChangeEvent<HTMLInputElement>): void;
3438
+ interface FileInputProps extends Omit<React.ComponentProps<'input'>, 'onChange'> {
3439
+ onChange(files: File[], evt: React.ChangeEvent<HTMLInputElement>): void;
3413
3440
  }
3414
3441
  /**
3415
3442
  * Defines the props of the component.
@@ -3454,13 +3481,13 @@ interface UserBlockProps extends GenericProps, HasTheme {
3454
3481
  /** Additional fields used to describe the user. */
3455
3482
  fields?: string[];
3456
3483
  /** Props to pass to the link wrapping the avatar thumbnail. */
3457
- linkProps?: React__default.DetailedHTMLProps<React__default.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
3484
+ linkProps?: React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
3458
3485
  /** Custom react component for the link (can be used to inject react router Link). */
3459
3486
  linkAs?: 'a' | any;
3460
3487
  /** Multiple action toolbar content. */
3461
3488
  multipleActions?: ReactNode;
3462
3489
  /** User name. */
3463
- name?: React__default.ReactNode;
3490
+ name?: React.ReactNode;
3464
3491
  /** Props to pass to the name block. */
3465
3492
  nameProps?: GenericProps;
3466
3493
  /** Orientation. */
@@ -3476,9 +3503,9 @@ interface UserBlockProps extends GenericProps, HasTheme {
3476
3503
  /** On mouse leave callback. */
3477
3504
  onMouseLeave?(): void;
3478
3505
  /** Display additional fields below the original name and fields */
3479
- additionalFields?: React__default.ReactNode;
3506
+ additionalFields?: React.ReactNode;
3480
3507
  /** Display an additional element after the entire component. (to the right if orientation is horizontal, at the bottom if orientation is vertical) */
3481
- after?: React__default.ReactNode;
3508
+ after?: React.ReactNode;
3482
3509
  }
3483
3510
  /**
3484
3511
  * UserBlock component.
@@ -3491,11 +3518,11 @@ declare const UserBlock: Comp<UserBlockProps, HTMLDivElement>;
3491
3518
 
3492
3519
  type ThemeContextValue = Theme | undefined;
3493
3520
  /** Provide a theme context to all children. */
3494
- declare const ThemeProvider: React__default.FC<{
3521
+ declare const ThemeProvider: React.FC<{
3495
3522
  value: ThemeContextValue;
3496
- children?: React__default.ReactNode;
3523
+ children?: React.ReactNode;
3497
3524
  }>;
3498
3525
  /** Get the theme in the current context. */
3499
3526
  declare function useTheme(): ThemeContextValue;
3500
3527
 
3501
- export { AlertDialog, type AlertDialogProps, Alignment, AspectRatio, Autocomplete, AutocompleteMultiple, type AutocompleteMultipleProps, type AutocompleteProps, Avatar, type AvatarProps, type AvatarSize, BACKSPACE_KEY_CODE, Badge, type BadgeProps, BadgeWrapper, type BadgeWrapperProps, type BaseButtonProps, Button, ButtonEmphasis, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonSize, CSS_PREFIX, type Callback, Checkbox, type CheckboxProps, Chip, ChipGroup, type ChipGroupProps, type ChipProps, type Color, ColorPalette, ColorVariant, type ColorWithVariants, CommentBlock, type CommentBlockProps, CommentBlockVariant, DIALOG_TRANSITION_DURATION, DOWN_KEY_CODE, DatePicker, DatePickerControlled, type DatePickerControlledProps, DatePickerField, type DatePickerFieldProps, type DatePickerProps, Dialog, type DialogProps, type DialogSizes, Divider, type DividerProps, DragHandle, type DragHandleProps, Dropdown, type DropdownProps, ENTER_KEY_CODE, ESCAPE_KEY_CODE, EXPANSION_PANEL_TRANSITION_DURATION, type Elevation, Emphasis, ExpansionPanel, type ExpansionPanelProps, Falsy, Flag, type FlagProps, FlexBox, type FlexBoxProps, type FlexHorizontalAlignment, type FlexVerticalAlignment, type FocusPoint, type GapSize, GenericBlock, GenericBlockGapSize, type GenericBlockProps, type GenericProps, type GlobalSize, Grid, GridColumn, type GridColumnGapSize, type GridColumnProps, GridItem, type GridItemProps, type GridProps, type HasAriaLabelOrLabelledBy, type HasClassName, type HasCloseMode, type HasTheme, Heading, type HeadingElement, HeadingLevelProvider, type HeadingLevelProviderProps, type HeadingProps, type HorizontalAlignment, Icon, IconButton, type IconButtonProps, type IconProps, type IconSizes, ImageBlock, ImageBlockCaptionPosition, type ImageBlockProps, type ImageBlockSize, ImageLightbox, type ImageLightboxProps, InlineList, type InlineListProps, InputHelper, type InputHelperProps, InputLabel, type InputLabelProps, Kind, LEFT_KEY_CODE, Lightbox, type LightboxProps, Link, LinkPreview, type LinkPreviewProps, type LinkProps, List, ListDivider, type ListDividerProps, ListItem, type ListItemProps, type ListItemSize, type ListProps, ListSubheader, type ListSubheaderProps, type MarginAutoAlignment, Message, type MessageProps, Mosaic, type MosaicProps, NOTIFICATION_TRANSITION_DURATION, Navigation, type NavigationProps, Notification, type NotificationProps, type Offset, Orientation, Placement, type Point, Popover, PopoverDialog, type PopoverDialogProps, type PopoverProps, PostBlock, type PostBlockProps, type Predicate, Progress, ProgressCircular, type ProgressCircularProps, type ProgressCircularSize, ProgressLinear, type ProgressLinearProps, type ProgressProps, ProgressTracker, type ProgressTrackerProps, ProgressTrackerProvider, type ProgressTrackerProviderProps, ProgressTrackerStep, ProgressTrackerStepPanel, type ProgressTrackerStepPanelProps, type ProgressTrackerStepProps, ProgressVariant, RIGHT_KEY_CODE, RadioButton, type RadioButtonProps, RadioGroup, type RadioGroupProps, type RectSize, SLIDESHOW_TRANSITION_DURATION, SPACE_KEY_CODE, Select, SelectMultiple, SelectMultipleField, type SelectMultipleProps, type SelectProps, SelectVariant, SideNavigation, SideNavigationItem, type SideNavigationItemProps, type SideNavigationProps, Size, SkeletonCircle, type SkeletonCircleProps, SkeletonRectangle, type SkeletonRectangleProps, SkeletonRectangleVariant, SkeletonTypography, type SkeletonTypographyProps, Slider, type SliderProps, Slides, type SlidesProps, Slideshow, SlideshowControls, type SlideshowControlsProps, SlideshowItem, type SlideshowItemProps, type SlideshowProps, Switch, type SwitchProps, TAB_KEY_CODE, TOOLTIP_HOVER_DELAY, TOOLTIP_LONG_PRESS_DELAY, Tab, TabList, TabListLayout, type TabListProps, TabPanel, type TabPanelProps, type TabProps, TabProvider, type TabProviderProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableCellVariant, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Text, type TextElement, TextField, type TextFieldProps, type TextProps, ThOrder, Theme, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, type ThumbnailProps, type ThumbnailSize, ThumbnailVariant, Toolbar, type ToolbarProps, Tooltip, type TooltipPlacement, type TooltipProps, Typography, TypographyCustom, TypographyInterface, TypographyTitleCustom, UP_KEY_CODE, Uploader, type UploaderProps, type UploaderSize, UploaderVariant, UserBlock, type UserBlockProps, type UserBlockSize, type ValueOf, type VerticalAlignment, WhiteSpace, clamp, isClickable, useFocusPointStyle, useHeadingLevel, useTheme };
3528
+ export { AlertDialog, type AlertDialogProps, Alignment, AspectRatio, Autocomplete, AutocompleteMultiple, type AutocompleteMultipleProps, type AutocompleteProps, Avatar, type AvatarProps, type AvatarSize, BACKSPACE_KEY_CODE, Badge, type BadgeProps, BadgeWrapper, type BadgeWrapperProps, type BaseButtonProps, Button, ButtonEmphasis, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonSize, CSS_PREFIX, type Callback, Checkbox, type CheckboxProps, Chip, ChipGroup, type ChipGroupProps, type ChipProps, type Color, ColorPalette, ColorVariant, type ColorWithVariants, CommentBlock, type CommentBlockProps, CommentBlockVariant, DIALOG_TRANSITION_DURATION, DOWN_KEY_CODE, DatePicker, DatePickerControlled, type DatePickerControlledProps, DatePickerField, type DatePickerFieldProps, type DatePickerProps, Dialog, type DialogProps, type DialogSizes, Divider, type DividerProps, DragHandle, type DragHandleProps, Dropdown, type DropdownProps, ENTER_KEY_CODE, ESCAPE_KEY_CODE, EXPANSION_PANEL_TRANSITION_DURATION, type Elevation, Emphasis, ExpansionPanel, type ExpansionPanelProps, Falsy, Flag, type FlagProps, FlexBox, type FlexBoxProps, type FlexHorizontalAlignment, type FlexVerticalAlignment, type FocusPoint, type GapSize, GenericBlock, GenericBlockGapSize, type GenericBlockProps, type GenericProps, type GlobalSize, Grid, GridColumn, type GridColumnGapSize, type GridColumnProps, GridItem, type GridItemProps, type GridProps, type HasAriaLabelOrLabelledBy, type HasClassName, type HasCloseMode, type HasTheme, Heading, type HeadingElement, HeadingLevelProvider, type HeadingLevelProviderProps, type HeadingProps, type HorizontalAlignment, Icon, IconButton, type IconButtonProps, type IconProps, type IconSizes, ImageBlock, ImageBlockCaptionPosition, type ImageBlockProps, type ImageBlockSize, ImageLightbox, type ImageLightboxProps, InlineList, type InlineListProps, InputHelper, type InputHelperProps, InputLabel, type InputLabelProps, Kind, LEFT_KEY_CODE, Lightbox, type LightboxProps, Link, LinkPreview, type LinkPreviewProps, type LinkProps, List, ListDivider, type ListDividerProps, ListItem, type ListItemProps, type ListItemSize, type ListProps, ListSubheader, type ListSubheaderProps, type MarginAutoAlignment, Message, type MessageProps, Mosaic, type MosaicProps, NOTIFICATION_TRANSITION_DURATION, Navigation, type NavigationProps, Notification, type NotificationProps, type Offset, Orientation, Placement, type Point, Popover, PopoverDialog, type PopoverDialogProps, type PopoverProps, PostBlock, type PostBlockProps, type Predicate, Progress, ProgressCircular, type ProgressCircularProps, type ProgressCircularSize, ProgressLinear, type ProgressLinearProps, type ProgressProps, ProgressTracker, type ProgressTrackerProps, ProgressTrackerProvider, type ProgressTrackerProviderProps, ProgressTrackerStep, ProgressTrackerStepPanel, type ProgressTrackerStepPanelProps, type ProgressTrackerStepProps, ProgressVariant, RIGHT_KEY_CODE, RadioButton, type RadioButtonProps, RadioGroup, type RadioGroupProps, RawInputText, type RawInputTextProps, RawInputTextarea, type RawInputTextareaProps, type RectSize, SLIDESHOW_TRANSITION_DURATION, SPACE_KEY_CODE, Select, SelectMultiple, SelectMultipleField, type SelectMultipleProps, type SelectProps, SelectVariant, SideNavigation, SideNavigationItem, type SideNavigationItemProps, type SideNavigationProps, Size, SkeletonCircle, type SkeletonCircleProps, SkeletonRectangle, type SkeletonRectangleProps, SkeletonRectangleVariant, SkeletonTypography, type SkeletonTypographyProps, Slider, type SliderProps, Slides, type SlidesProps, Slideshow, SlideshowControls, type SlideshowControlsProps, SlideshowItem, type SlideshowItemProps, type SlideshowProps, Switch, type SwitchProps, TAB_KEY_CODE, TOOLTIP_HOVER_DELAY, TOOLTIP_LONG_PRESS_DELAY, Tab, TabList, TabListLayout, type TabListProps, TabPanel, type TabPanelProps, type TabProps, TabProvider, type TabProviderProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableCellVariant, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Text, type TextElement, TextField, type TextFieldProps, type TextProps, ThOrder, Theme, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, type ThumbnailProps, type ThumbnailSize, ThumbnailVariant, Toolbar, type ToolbarProps, Tooltip, type TooltipPlacement, type TooltipProps, Typography, TypographyCustom, TypographyInterface, TypographyTitleCustom, UP_KEY_CODE, Uploader, type UploaderProps, type UploaderSize, UploaderVariant, UserBlock, type UserBlockProps, type UserBlockSize, type ValueOf, type VerticalAlignment, WhiteSpace, clamp, isClickable, useFocusPointStyle, useHeadingLevel, useTheme };