@lumx/react 2.2.3-alpha-export-hook1 → 2.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (208) hide show
  1. package/esm/_internal/AlertDialog.js +2 -3
  2. package/esm/_internal/AlertDialog.js.map +1 -1
  3. package/esm/_internal/AutocompleteMultiple.js +1 -2
  4. package/esm/_internal/AutocompleteMultiple.js.map +1 -1
  5. package/esm/_internal/Button2.js +1 -1
  6. package/esm/_internal/ButtonGroup.js +4 -0
  7. package/esm/_internal/ButtonGroup.js.map +1 -1
  8. package/esm/_internal/Checkbox2.js +2 -3
  9. package/esm/_internal/Checkbox2.js.map +1 -1
  10. package/esm/_internal/Chip2.js +1 -2
  11. package/esm/_internal/Chip2.js.map +1 -1
  12. package/esm/_internal/ChipGroup.js.map +1 -1
  13. package/esm/_internal/ClickAwayProvider.js +1 -1
  14. package/esm/_internal/ClickAwayProvider.js.map +1 -1
  15. package/esm/_internal/DatePickerField.js +5 -1
  16. package/esm/_internal/DatePickerField.js.map +1 -1
  17. package/esm/_internal/Dialog2.js.map +1 -1
  18. package/esm/_internal/DragHandle.js +1 -2
  19. package/esm/_internal/DragHandle.js.map +1 -1
  20. package/esm/_internal/Dropdown2.js +1 -1
  21. package/esm/_internal/Dropdown2.js.map +1 -1
  22. package/esm/_internal/ExpansionPanel.js +1 -1
  23. package/esm/_internal/Icon2.js +23 -3
  24. package/esm/_internal/Icon2.js.map +1 -1
  25. package/esm/_internal/IconButton.js +5 -1
  26. package/esm/_internal/IconButton.js.map +1 -1
  27. package/esm/_internal/Lightbox2.js +1 -1
  28. package/esm/_internal/Lightbox2.js.map +1 -1
  29. package/esm/_internal/Link2.js +1 -1
  30. package/esm/_internal/LinkPreview.js +1 -1
  31. package/esm/_internal/LinkPreview.js.map +1 -1
  32. package/esm/_internal/List2.js +4 -20
  33. package/esm/_internal/List2.js.map +1 -1
  34. package/esm/_internal/Message2.js +3 -3
  35. package/esm/_internal/Message2.js.map +1 -1
  36. package/esm/_internal/Notification2.js +1 -2
  37. package/esm/_internal/Notification2.js.map +1 -1
  38. package/esm/_internal/Popover2.js.map +1 -1
  39. package/esm/_internal/ProgressTrackerStepPanel.js +1 -2
  40. package/esm/_internal/ProgressTrackerStepPanel.js.map +1 -1
  41. package/esm/_internal/RadioGroup.js +1 -1
  42. package/esm/_internal/SelectMultiple.js +2 -3
  43. package/esm/_internal/SelectMultiple.js.map +1 -1
  44. package/esm/_internal/SideNavigationItem.js +2 -4
  45. package/esm/_internal/SideNavigationItem.js.map +1 -1
  46. package/esm/_internal/Slider2.js +1 -1
  47. package/esm/_internal/Slider2.js.map +1 -1
  48. package/esm/_internal/SlideshowControls.js +3 -101
  49. package/esm/_internal/SlideshowControls.js.map +1 -1
  50. package/esm/_internal/Switch2.js +1 -1
  51. package/esm/_internal/TabPanel.js +1 -1
  52. package/esm/_internal/TabPanel.js.map +1 -1
  53. package/esm/_internal/TableRow.js +2 -4
  54. package/esm/_internal/TableRow.js.map +1 -1
  55. package/esm/_internal/TextField.js +2 -3
  56. package/esm/_internal/TextField.js.map +1 -1
  57. package/esm/_internal/Thumbnail2.js +6 -3
  58. package/esm/_internal/Thumbnail2.js.map +1 -1
  59. package/esm/_internal/Tooltip2.js +145 -12
  60. package/esm/_internal/Tooltip2.js.map +1 -1
  61. package/esm/_internal/alert-dialog.js +4 -5
  62. package/esm/_internal/alert-dialog.js.map +1 -1
  63. package/esm/_internal/autocomplete.js +6 -8
  64. package/esm/_internal/autocomplete.js.map +1 -1
  65. package/esm/_internal/avatar.js +3 -3
  66. package/esm/_internal/badge.js +2 -1
  67. package/esm/_internal/badge.js.map +1 -1
  68. package/esm/_internal/button.js +5 -5
  69. package/esm/_internal/checkbox.js +4 -4
  70. package/esm/_internal/chip.js +2 -2
  71. package/esm/_internal/comment-block.js +3 -3
  72. package/esm/_internal/constants.js.map +1 -1
  73. package/esm/_internal/date-picker.js +5 -6
  74. package/esm/_internal/date-picker.js.map +1 -1
  75. package/esm/_internal/dialog.js +2 -2
  76. package/esm/_internal/divider.js +2 -1
  77. package/esm/_internal/divider.js.map +1 -1
  78. package/esm/_internal/drag-handle.js +3 -3
  79. package/esm/_internal/dropdown.js +3 -4
  80. package/esm/_internal/dropdown.js.map +1 -1
  81. package/esm/_internal/expansion-panel.js +5 -6
  82. package/esm/_internal/expansion-panel.js.map +1 -1
  83. package/esm/_internal/flag.js +3 -2
  84. package/esm/_internal/flag.js.map +1 -1
  85. package/esm/_internal/flex-box.js +2 -1
  86. package/esm/_internal/flex-box.js.map +1 -1
  87. package/esm/_internal/getRootClassName.js +166 -40
  88. package/esm/_internal/getRootClassName.js.map +1 -1
  89. package/esm/_internal/grid.js +2 -1
  90. package/esm/_internal/grid.js.map +1 -1
  91. package/esm/_internal/icon.js +3 -2
  92. package/esm/_internal/icon.js.map +1 -1
  93. package/esm/_internal/image-block.js +3 -3
  94. package/esm/_internal/input-helper.js +2 -1
  95. package/esm/_internal/input-helper.js.map +1 -1
  96. package/esm/_internal/input-label.js +2 -1
  97. package/esm/_internal/input-label.js.map +1 -1
  98. package/esm/_internal/lightbox.js +5 -6
  99. package/esm/_internal/lightbox.js.map +1 -1
  100. package/esm/_internal/link-preview.js +3 -3
  101. package/esm/_internal/link.js +3 -2
  102. package/esm/_internal/link.js.map +1 -1
  103. package/esm/_internal/list.js +3 -3
  104. package/esm/_internal/message.js +3 -3
  105. package/esm/_internal/mosaic.js +3 -3
  106. package/esm/_internal/notification.js +3 -3
  107. package/esm/_internal/popover.js +2 -2
  108. package/esm/_internal/post-block.js +3 -3
  109. package/esm/_internal/progress-tracker.js +4 -4
  110. package/esm/_internal/progress.js +2 -1
  111. package/esm/_internal/progress.js.map +1 -1
  112. package/esm/_internal/radio-button.js +3 -2
  113. package/esm/_internal/radio-button.js.map +1 -1
  114. package/esm/_internal/select.js +6 -8
  115. package/esm/_internal/select.js.map +1 -1
  116. package/esm/_internal/side-navigation.js +5 -7
  117. package/esm/_internal/side-navigation.js.map +1 -1
  118. package/esm/_internal/skeleton.js +2 -1
  119. package/esm/_internal/skeleton.js.map +1 -1
  120. package/esm/_internal/slider.js +3 -2
  121. package/esm/_internal/slider.js.map +1 -1
  122. package/esm/_internal/slideshow.js +6 -8
  123. package/esm/_internal/slideshow.js.map +1 -1
  124. package/esm/_internal/switch.js +3 -2
  125. package/esm/_internal/switch.js.map +1 -1
  126. package/esm/_internal/table.js +3 -4
  127. package/esm/_internal/table.js.map +1 -1
  128. package/esm/_internal/tabs.js +4 -3
  129. package/esm/_internal/tabs.js.map +1 -1
  130. package/esm/_internal/text-field.js +5 -6
  131. package/esm/_internal/text-field.js.map +1 -1
  132. package/esm/_internal/thumbnail.js +3 -3
  133. package/esm/_internal/toolbar.js +2 -1
  134. package/esm/_internal/toolbar.js.map +1 -1
  135. package/esm/_internal/tooltip.js +4 -4
  136. package/esm/_internal/uploader.js +3 -2
  137. package/esm/_internal/uploader.js.map +1 -1
  138. package/esm/_internal/useDelayedVisibility.js.map +1 -1
  139. package/esm/_internal/useDisableBodyScroll.js.map +1 -1
  140. package/esm/_internal/useFocusTrap.js.map +1 -1
  141. package/esm/_internal/useRovingTabIndex.js +1 -1
  142. package/esm/_internal/useRovingTabIndex.js.map +1 -1
  143. package/esm/_internal/user-block.js +3 -3
  144. package/esm/index.js +7 -10
  145. package/esm/index.js.map +1 -1
  146. package/esm/{_internal/index.js → index2.js} +1 -1
  147. package/esm/index2.js.map +1 -0
  148. package/package.json +4 -4
  149. package/src/components/autocomplete/Autocomplete.tsx +1 -1
  150. package/src/components/button/__snapshots__/IconButton.test.tsx.snap +5 -0
  151. package/src/components/chip/Chip.tsx +1 -1
  152. package/src/components/chip/ChipGroup.tsx +1 -1
  153. package/src/components/date-picker/DatePickerField.tsx +2 -2
  154. package/src/components/dialog/Dialog.test.tsx +1 -1
  155. package/src/components/dialog/Dialog.tsx +5 -5
  156. package/src/components/dropdown/Dropdown.tsx +1 -1
  157. package/src/components/icon/Icon.tsx +5 -0
  158. package/src/components/lightbox/Lightbox.tsx +4 -4
  159. package/src/components/link-preview/LinkPreview.tsx +1 -1
  160. package/src/components/link-preview/__snapshots__/LinkPreview.test.tsx.snap +2 -2
  161. package/src/components/list/List.tsx +1 -1
  162. package/src/components/message/Message.tsx +3 -1
  163. package/src/components/mosaic/Mosaic.test.tsx +1 -1
  164. package/src/components/notification/Notification.tsx +1 -1
  165. package/src/components/popover/Popover.tsx +2 -2
  166. package/src/components/progress-tracker/ProgressTracker.tsx +1 -1
  167. package/src/components/select/Select.stories.tsx +1 -1
  168. package/src/components/select/SelectMultiple.stories.tsx +1 -1
  169. package/src/components/select/WithSelectContext.tsx +1 -1
  170. package/src/components/slider/Slider.tsx +1 -1
  171. package/src/components/slideshow/Slideshow.tsx +1 -1
  172. package/src/components/slideshow/useSwipeNavigate.ts +1 -1
  173. package/src/components/tabs/TabList.tsx +4 -4
  174. package/src/components/thumbnail/Thumbnail.tsx +7 -1
  175. package/src/components/tooltip/Tooltip.tsx +4 -7
  176. package/src/components/tooltip/useTooltipOpen.tsx +112 -0
  177. package/src/constants.ts +1 -7
  178. package/src/{_internal/hooks → hooks}/useBooleanState.tsx +0 -0
  179. package/src/{_internal/hooks → hooks}/useCallbackOnEscape.ts +0 -0
  180. package/src/{_internal/hooks → hooks}/useChipGroupNavigation.tsx +0 -0
  181. package/src/{_internal/hooks → hooks}/useClickAway.tsx +0 -0
  182. package/src/{_internal/hooks → hooks}/useDelayedVisibility.tsx +0 -0
  183. package/src/{_internal/hooks → hooks}/useDisableBodyScroll.ts +0 -0
  184. package/src/{_internal/hooks → hooks}/useEventCallback.tsx +0 -0
  185. package/src/{_internal/hooks → hooks}/useFocus.tsx +0 -0
  186. package/src/{_internal/hooks → hooks}/useFocusTrap.ts +0 -0
  187. package/src/{_internal/hooks → hooks}/useInfiniteScroll.tsx +0 -0
  188. package/src/{_internal/hooks → hooks}/useIntersectionObserver.tsx +0 -0
  189. package/src/{_internal/hooks → hooks}/useInterval.tsx +1 -1
  190. package/src/{_internal/hooks → hooks}/useKeyboardListNavigation.tsx +0 -0
  191. package/src/{_internal/hooks → hooks}/useListenFocus.tsx +0 -0
  192. package/src/{_internal/hooks → hooks}/useOnResize.ts +0 -0
  193. package/src/{_internal/hooks → hooks}/useRovingTabIndex.tsx +0 -0
  194. package/src/{_internal/hooks → hooks}/useStopPropagation.ts +0 -0
  195. package/src/utils/ClickAwayProvider/ClickAwayProvider.tsx +1 -1
  196. package/types.d.ts +2 -2
  197. package/esm/_internal/index.js.map +0 -1
  198. package/esm/_internal/mdi.js +0 -22
  199. package/esm/_internal/mdi.js.map +0 -1
  200. package/esm/_internal/onEnterPressed.js +0 -20
  201. package/esm/_internal/onEnterPressed.js.map +0 -1
  202. package/esm/_internal/onEscapePressed.js +0 -20
  203. package/esm/_internal/onEscapePressed.js.map +0 -1
  204. package/esm/hooks/useOpenHoverOrLongPress.js +0 -172
  205. package/esm/hooks/useOpenHoverOrLongPress.js.map +0 -1
  206. package/src/hooks/useOpenHoverOrLongPress.ts +0 -140
  207. package/src/utils/browserDoesNotSupportHover.test.js +0 -24
  208. package/src/utils/browserDoesNotSupportHover.ts +0 -2
@@ -3,7 +3,8 @@ import './components.js';
3
3
  import 'react';
4
4
  import './getRootClassName.js';
5
5
  import 'lodash/isBoolean';
6
- import 'lodash/kebabCase';
7
6
  import 'lodash/isEmpty';
7
+ import 'lodash/kebabCase';
8
+ import 'lodash/noop';
8
9
  export { B as Badge } from './Badge2.js';
9
10
  //# sourceMappingURL=badge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"badge.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
1
+ {"version":3,"file":"badge.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -2,11 +2,12 @@ import './_rollupPluginBabelHelpers.js';
2
2
  import './components.js';
3
3
  import 'react';
4
4
  import './getRootClassName.js';
5
- import './index.js';
5
+ import './Icon2.js';
6
+ import '../index2.js';
6
7
  import 'lodash/isBoolean';
7
- import 'lodash/kebabCase';
8
8
  import 'lodash/isEmpty';
9
- import './onEscapePressed.js';
9
+ import 'lodash/kebabCase';
10
+ import 'lodash/noop';
10
11
  import './constants.js';
11
12
  import 'lodash/get';
12
13
  import './Popover2.js';
@@ -19,7 +20,6 @@ export { B as ButtonGroup } from './ButtonGroup.js';
19
20
  import 'react-dom';
20
21
  import './ClickAwayProvider.js';
21
22
  import 'lodash/pull';
22
- import './Icon2.js';
23
- import '../hooks/useOpenHoverOrLongPress.js';
24
23
  import './Tooltip2.js';
24
+ import 'lodash/debounce';
25
25
  //# sourceMappingURL=button.js.map
@@ -2,13 +2,13 @@ import './_rollupPluginBabelHelpers.js';
2
2
  import './components.js';
3
3
  import 'react';
4
4
  import './getRootClassName.js';
5
- import './mdi.js';
6
- import './index.js';
5
+ import './Icon2.js';
6
+ import '../index2.js';
7
7
  import 'lodash/isBoolean';
8
- import 'lodash/kebabCase';
9
8
  import 'lodash/isEmpty';
9
+ import 'lodash/kebabCase';
10
+ import 'lodash/noop';
10
11
  export { C as Checkbox } from './Checkbox2.js';
11
- import './Icon2.js';
12
12
  import './InputHelper.js';
13
13
  import './InputLabel.js';
14
14
  //# sourceMappingURL=checkbox.js.map
@@ -3,9 +3,9 @@ import './components.js';
3
3
  import 'react';
4
4
  import './getRootClassName.js';
5
5
  import 'lodash/isBoolean';
6
- import 'lodash/kebabCase';
7
6
  import 'lodash/isEmpty';
8
- import './onEnterPressed.js';
7
+ import 'lodash/kebabCase';
8
+ import 'lodash/noop';
9
9
  import 'lodash/isFunction';
10
10
  export { C as Chip } from './Chip2.js';
11
11
  export { C as ChipGroup } from './ChipGroup.js';
@@ -2,14 +2,14 @@ import './_rollupPluginBabelHelpers.js';
2
2
  import './components.js';
3
3
  import 'react';
4
4
  import './getRootClassName.js';
5
- import './mdi.js';
5
+ import './Icon2.js';
6
6
  import 'lodash/isBoolean';
7
- import 'lodash/kebabCase';
8
7
  import 'lodash/isEmpty';
8
+ import 'lodash/kebabCase';
9
+ import 'lodash/noop';
9
10
  import './mergeRefs.js';
10
11
  import './Avatar2.js';
11
12
  import 'lodash/isFunction';
12
13
  export { a as CommentBlock, C as CommentBlockVariant } from './CommentBlock.js';
13
- import './Icon2.js';
14
14
  import './Thumbnail2.js';
15
15
  //# sourceMappingURL=comment-block.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sources":["../../../src/constants.ts"],"sourcesContent":["export {\n CSS_PREFIX,\n DIALOG_TRANSITION_DURATION,\n NOTIFICATION_TRANSITION_DURATION,\n TOOLTIP_HOVER_DELAY,\n TOOLTIP_LONG_PRESS_DELAY,\n} from '@lumx/core/js/constants';\n\n/**\n * Optional global `window` instance (not defined when running SSR).\n */\nexport const WINDOW = typeof window !== `undefined` ? window : undefined;\n\n/**\n * Optional global `document` instance (not defined when running SSR).\n */\nexport const DOCUMENT = typeof document !== `undefined` ? document : undefined;\n"],"names":["WINDOW","window","undefined","DOCUMENT","document"],"mappings":"AAQA;;;;IAGaA,MAAM,GAAG,OAAOC,MAAP,mBAAgCA,MAAhC,GAAyCC;AAE/D;;;;IAGaC,QAAQ,GAAG,OAAOC,QAAP,mBAAkCA,QAAlC,GAA6CF;;;;"}
1
+ {"version":3,"file":"constants.js","sources":["../../../src/constants.ts"],"sourcesContent":["export { CSS_PREFIX, DIALOG_TRANSITION_DURATION, NOTIFICATION_TRANSITION_DURATION } from '@lumx/core/js/constants';\n\n/**\n * Optional global `window` instance (not defined when running SSR).\n */\nexport const WINDOW = typeof window !== `undefined` ? window : undefined;\n\n/**\n * Optional global `document` instance (not defined when running SSR).\n */\nexport const DOCUMENT = typeof document !== `undefined` ? document : undefined;\n"],"names":["WINDOW","window","undefined","DOCUMENT","document"],"mappings":"AAEA;;;;IAGaA,MAAM,GAAG,OAAOC,MAAP,mBAAgCA,MAAhC,GAAyCC;AAE/D;;;;IAGaC,QAAQ,GAAG,OAAOC,QAAP,mBAAkCA,QAAlC,GAA6CF;;;;"}
@@ -2,12 +2,12 @@ import './_rollupPluginBabelHelpers.js';
2
2
  import './components.js';
3
3
  import 'react';
4
4
  import './getRootClassName.js';
5
- import './mdi.js';
6
- import './index.js';
5
+ import './Icon2.js';
6
+ import '../index2.js';
7
7
  import 'lodash/isBoolean';
8
- import 'lodash/kebabCase';
9
8
  import 'lodash/isEmpty';
10
- import './onEscapePressed.js';
9
+ import 'lodash/kebabCase';
10
+ import 'lodash/noop';
11
11
  import './constants.js';
12
12
  import 'lodash/get';
13
13
  import './Popover2.js';
@@ -23,11 +23,10 @@ import './useFocusTrap.js';
23
23
  import 'react-dom';
24
24
  import './ClickAwayProvider.js';
25
25
  import 'lodash/pull';
26
- import './Icon2.js';
27
26
  import './InputHelper.js';
28
27
  import './InputLabel.js';
29
28
  import './TextField.js';
30
29
  import './Toolbar2.js';
31
- import '../hooks/useOpenHoverOrLongPress.js';
32
30
  import './Tooltip2.js';
31
+ import 'lodash/debounce';
33
32
  //# sourceMappingURL=date-picker.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"date-picker.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"date-picker.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -3,9 +3,9 @@ import './components.js';
3
3
  import 'react';
4
4
  import './getRootClassName.js';
5
5
  import 'lodash/isBoolean';
6
- import 'lodash/kebabCase';
7
6
  import 'lodash/isEmpty';
8
- import './onEscapePressed.js';
7
+ import 'lodash/kebabCase';
8
+ import 'lodash/noop';
9
9
  import './constants.js';
10
10
  import 'lodash/concat';
11
11
  import 'lodash/dropRight';
@@ -3,7 +3,8 @@ import './components.js';
3
3
  import 'react';
4
4
  import './getRootClassName.js';
5
5
  import 'lodash/isBoolean';
6
- import 'lodash/kebabCase';
7
6
  import 'lodash/isEmpty';
7
+ import 'lodash/kebabCase';
8
+ import 'lodash/noop';
8
9
  export { D as DEFAULT_PROPS, a as Divider } from './Divider2.js';
9
10
  //# sourceMappingURL=divider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"divider.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
1
+ {"version":3,"file":"divider.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -2,10 +2,10 @@ import './_rollupPluginBabelHelpers.js';
2
2
  import './components.js';
3
3
  import 'react';
4
4
  import './getRootClassName.js';
5
- import './mdi.js';
5
+ import './Icon2.js';
6
6
  import 'lodash/isBoolean';
7
- import 'lodash/kebabCase';
8
7
  import 'lodash/isEmpty';
8
+ import 'lodash/kebabCase';
9
+ import 'lodash/noop';
9
10
  export { D as DragHandle } from './DragHandle.js';
10
- import './Icon2.js';
11
11
  //# sourceMappingURL=drag-handle.js.map
@@ -3,11 +3,9 @@ import './components.js';
3
3
  import 'react';
4
4
  import './getRootClassName.js';
5
5
  import 'lodash/isBoolean';
6
- import 'lodash/kebabCase';
7
6
  import 'lodash/isEmpty';
8
- import './List2.js';
9
- import './onEnterPressed.js';
10
- import './onEscapePressed.js';
7
+ import 'lodash/kebabCase';
8
+ import 'lodash/noop';
11
9
  import './constants.js';
12
10
  import 'lodash/get';
13
11
  import './type.js';
@@ -17,5 +15,6 @@ import './renderLink.js';
17
15
  import 'react-dom';
18
16
  import './ClickAwayProvider.js';
19
17
  import 'lodash/pull';
18
+ import './List2.js';
20
19
  export { D as Dropdown } from './Dropdown2.js';
21
20
  //# sourceMappingURL=dropdown.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"dropdown.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
@@ -2,12 +2,12 @@ import './_rollupPluginBabelHelpers.js';
2
2
  import './components.js';
3
3
  import 'react';
4
4
  import './getRootClassName.js';
5
- import './mdi.js';
6
- import './index.js';
5
+ import './Icon2.js';
6
+ import '../index2.js';
7
7
  import 'lodash/isBoolean';
8
- import 'lodash/kebabCase';
9
8
  import 'lodash/isEmpty';
10
- import './onEscapePressed.js';
9
+ import 'lodash/kebabCase';
10
+ import 'lodash/noop';
11
11
  import './constants.js';
12
12
  import 'lodash/concat';
13
13
  import 'lodash/dropRight';
@@ -28,7 +28,6 @@ import './ClickAwayProvider.js';
28
28
  import 'lodash/pull';
29
29
  import './DragHandle.js';
30
30
  export { E as ExpansionPanel } from './ExpansionPanel.js';
31
- import './Icon2.js';
32
- import '../hooks/useOpenHoverOrLongPress.js';
33
31
  import './Tooltip2.js';
32
+ import 'lodash/debounce';
34
33
  //# sourceMappingURL=expansion-panel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"expansion-panel.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"expansion-panel.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -2,9 +2,10 @@ import './_rollupPluginBabelHelpers.js';
2
2
  import './components.js';
3
3
  import 'react';
4
4
  import './getRootClassName.js';
5
+ import './Icon2.js';
5
6
  import 'lodash/isBoolean';
6
- import 'lodash/kebabCase';
7
7
  import 'lodash/isEmpty';
8
+ import 'lodash/kebabCase';
9
+ import 'lodash/noop';
8
10
  export { F as Flag } from './Flag2.js';
9
- import './Icon2.js';
10
11
  //# sourceMappingURL=flag.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"flag.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
1
+ {"version":3,"file":"flag.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -3,8 +3,9 @@ import './components.js';
3
3
  import 'react';
4
4
  import './getRootClassName.js';
5
5
  import 'lodash/isBoolean';
6
- import 'lodash/kebabCase';
7
6
  import 'lodash/isEmpty';
7
+ import 'lodash/kebabCase';
8
+ import 'lodash/noop';
8
9
  import 'lodash/castArray';
9
10
  export { F as FlexBox } from './FlexBox.js';
10
11
  //# sourceMappingURL=flex-box.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"flex-box.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
1
+ {"version":3,"file":"flex-box.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -1,7 +1,8 @@
1
- import { b as _objectWithoutProperties } from './_rollupPluginBabelHelpers.js';
1
+ import { b as _objectWithoutProperties, d as _slicedToArray } from './_rollupPluginBabelHelpers.js';
2
2
  import isBoolean from 'lodash/isBoolean';
3
- import kebabCase from 'lodash/kebabCase';
4
3
  import isEmpty from 'lodash/isEmpty';
4
+ import kebabCase from 'lodash/kebabCase';
5
+ import noop from 'lodash/noop';
5
6
 
6
7
  function createCommonjsModule(fn, basedir, module) {
7
8
  return module = {
@@ -66,6 +67,20 @@ var classnames = createCommonjsModule(function (module) {
66
67
  }());
67
68
  });
68
69
 
70
+ /**
71
+ * Enhance isEmpty method to also works with numbers.
72
+ *
73
+ * @param value The value to check.
74
+ * @return Whether the input value is empty or != 0.
75
+ */
76
+
77
+ var _isEmpty = function _isEmpty(value) {
78
+ if (typeof value === 'number') {
79
+ return value === 0;
80
+ }
81
+
82
+ return isEmpty(value);
83
+ };
69
84
  /**
70
85
  * Get the basic CSS class for the given type.
71
86
  *
@@ -75,6 +90,7 @@ var classnames = createCommonjsModule(function (module) {
75
90
  * @return The basic CSS class.
76
91
  */
77
92
 
93
+
78
94
  function getBasicClass(_ref) {
79
95
  var prefix = _ref.prefix,
80
96
  type = _ref.type,
@@ -99,21 +115,6 @@ function getBasicClass(_ref) {
99
115
 
100
116
  return "".concat(prefix, "--").concat(kebabCase(type), "-").concat(value);
101
117
  }
102
-
103
- /**
104
- * Enhance isEmpty method to also works with numbers.
105
- *
106
- * @param value The value to check.
107
- * @return Whether the input value is empty or != 0.
108
- */
109
-
110
- var _isEmpty = function _isEmpty(value) {
111
- if (typeof value === 'number') {
112
- return value === 0;
113
- }
114
-
115
- return isEmpty(value);
116
- };
117
118
  /**
118
119
  * Return all basic LumX CSS classes which are available for every components.
119
120
  *
@@ -126,10 +127,9 @@ var _isEmpty = function _isEmpty(value) {
126
127
  * @return All LumX basic CSS classes.
127
128
  */
128
129
 
129
-
130
- function handleBasicClasses(_ref) {
131
- var prefix = _ref.prefix,
132
- props = _objectWithoutProperties(_ref, ["prefix"]);
130
+ function handleBasicClasses(_ref2) {
131
+ var prefix = _ref2.prefix,
132
+ props = _objectWithoutProperties(_ref2, ["prefix"]);
133
133
 
134
134
  var otherClasses = {};
135
135
 
@@ -145,36 +145,162 @@ function handleBasicClasses(_ref) {
145
145
 
146
146
  return classnames(prefix, otherClasses);
147
147
  }
148
+ /**
149
+ * Checks whether or not the browser support passive events.
150
+ * @see https://github.com/Modernizr/Modernizr/blob/6d56d814b9682843313b16060adb25a58d83a317/feature-detects/dom/passiveeventlisteners.js
151
+ */
148
152
 
153
+ function isPassiveEventAvailable() {
154
+ var supportsPassiveOption = false;
155
+
156
+ try {
157
+ var opts = Object.defineProperty({}, 'passive', {
158
+ get: function get() {
159
+ supportsPassiveOption = true;
160
+ }
161
+ });
162
+ window.addEventListener('testPassiveEventSupport', noop, opts);
163
+ window.removeEventListener('testPassiveEventSupport', noop, opts);
164
+ } catch (e) {// ignored
165
+ }
166
+
167
+ return supportsPassiveOption;
168
+ }
149
169
  /**
150
- * The prefix to use for the CSS classes.
170
+ * Detects horizontal swipe direction without blocking the browser scroll using passive event.
171
+ * @see http://javascriptkit.com/javatutors/touchevents2.shtml
172
+ * @see https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md
151
173
  */
152
- var CSS_PREFIX = 'lumx';
174
+
175
+
176
+ function detectHorizontalSwipe(touchSurface, handleSwipe) {
177
+ var startX;
178
+ var startY; // Required min distance traveled to be considered swipe.
179
+
180
+ var threshold = 150; // Maximum distance allowed at the same time in perpendicular direction.
181
+
182
+ var restraint = 150; // Maximum time allowed to travel that distance.
183
+
184
+ var allowedTime = 300;
185
+ var elapsedTime;
186
+ var startTime;
187
+ var finished;
188
+
189
+ var onTouchStart = function onTouchStart(evt) {
190
+ var _Array$from5 = Array.from(evt.changedTouches),
191
+ _Array$from6 = _slicedToArray(_Array$from5, 1),
192
+ touch = _Array$from6[0];
193
+
194
+ startX = touch.pageX;
195
+ startY = touch.pageY; // Record time when finger first makes contact with surface.
196
+
197
+ startTime = new Date().getTime();
198
+ finished = false;
199
+ };
200
+
201
+ var onTouchMove = function onTouchMove(evt) {
202
+ if (finished) {
203
+ return;
204
+ }
205
+
206
+ elapsedTime = new Date().getTime() - startTime;
207
+
208
+ if (elapsedTime > allowedTime) {
209
+ // Touch swipe too long to be considered.
210
+ return;
211
+ }
212
+
213
+ var _Array$from7 = Array.from(evt.changedTouches),
214
+ _Array$from8 = _slicedToArray(_Array$from7, 1),
215
+ touch = _Array$from8[0]; // Get horizontal dist traveled by finger while in contact with surface.
216
+
217
+
218
+ var distX = touch.pageX - startX; // Get vertical dist traveled by finger while in contact with surface.
219
+
220
+ var distY = touch.pageY - startY;
221
+
222
+ if (!(Math.abs(distX) >= threshold && Math.abs(distY) <= restraint)) {
223
+ // Swipe is not horizontal.
224
+ return;
225
+ } // Swipe direction.
226
+
227
+
228
+ var direction = distX < 0 ? 'left' : 'right';
229
+ handleSwipe(direction);
230
+ finished = true;
231
+ }; // Activate passive event if possible for better scrolling performance.
232
+
233
+
234
+ var eventOptions = isPassiveEventAvailable() ? {
235
+ passive: true
236
+ } : false;
237
+ touchSurface.addEventListener('touchstart', onTouchStart, eventOptions);
238
+ touchSurface.addEventListener('touchmove', onTouchMove, eventOptions);
239
+ return function () {
240
+ touchSurface.removeEventListener('touchstart', onTouchStart, eventOptions);
241
+ touchSurface.removeEventListener('touchmove', onTouchMove, eventOptions);
242
+ };
243
+ }
244
+
153
245
  /**
154
- * Animation duration constants. Take into consideration that if you change one of these variables,
155
- * you need to update their scss counterpart as well
246
+ * Make sure the pressed key is the enter key before calling the callback.
247
+ *
248
+ * @param handler The handler to call on enter/return press.
249
+ * @return The decorated function.
156
250
  */
251
+ function onEnterPressed(handler) {
252
+ return function (evt) {
253
+ if (evt.key !== 'Enter') {
254
+ return;
255
+ }
157
256
 
158
- var DIALOG_TRANSITION_DURATION = 400;
159
- var NOTIFICATION_TRANSITION_DURATION = 200;
257
+ handler(evt);
258
+ };
259
+ }
160
260
  /**
161
- * Delay on hover after which we open or close the tooltip.
162
- * Only applies to devices supporting pointer hover.
261
+ * Make sure the pressed key is the escape key before calling the callback.
262
+ *
263
+ * @param handler The handler to call on enter/return press.
264
+ * @return The decorated function.
163
265
  */
164
266
 
165
- var TOOLTIP_HOVER_DELAY = {
166
- openDelay: 500,
167
- closeDelay: 0
168
- };
267
+ function onEscapePressed(handler) {
268
+ return function (evt) {
269
+ if (evt.key !== 'Escape') {
270
+ return;
271
+ }
272
+
273
+ handler(evt);
274
+ };
275
+ }
169
276
  /**
170
- * Delay on long press after which we open or close the tooltip.
171
- * Only applies to devices not supporting pointer hover.
277
+ * Handle button key pressed (Enter + Space).
278
+ *
279
+ * @param handler The handler to call.
280
+ * @return The decorated function.
172
281
  */
173
282
 
174
- var TOOLTIP_LONG_PRESS_DELAY = {
175
- openDelay: 250,
176
- closeDelay: 3000
177
- };
283
+ function onButtonPressed(handler) {
284
+ return function (evt) {
285
+ if (evt.key !== 'Enter' && evt.key !== ' ') {
286
+ return;
287
+ }
288
+
289
+ handler(evt);
290
+ };
291
+ }
292
+
293
+ /**
294
+ * The prefix to use for the CSS classes.
295
+ */
296
+ var CSS_PREFIX = 'lumx';
297
+ /**
298
+ * Animation duration constants. Take into consideration that if you change one of these variables,
299
+ * you need to update their scss counterpart as well
300
+ */
301
+
302
+ var DIALOG_TRANSITION_DURATION = 400;
303
+ var NOTIFICATION_TRANSITION_DURATION = 200;
178
304
 
179
305
  var LAST_PART_CLASSNAME = /^(.*)-(.+)$/gi;
180
306
  /**
@@ -198,5 +324,5 @@ function getRootClassName(componentName, subComponent) {
198
324
  return formattedClassName;
199
325
  }
200
326
 
201
- export { CSS_PREFIX as C, DIALOG_TRANSITION_DURATION as D, NOTIFICATION_TRANSITION_DURATION as N, TOOLTIP_HOVER_DELAY as T, getBasicClass as a, createCommonjsModule as b, classnames as c, TOOLTIP_LONG_PRESS_DELAY as d, getRootClassName as g, handleBasicClasses as h };
327
+ export { CSS_PREFIX as C, DIALOG_TRANSITION_DURATION as D, NOTIFICATION_TRANSITION_DURATION as N, getBasicClass as a, onButtonPressed as b, classnames as c, createCommonjsModule as d, detectHorizontalSwipe as e, onEscapePressed as f, getRootClassName as g, handleBasicClasses as h, onEnterPressed as o };
202
328
  //# sourceMappingURL=getRootClassName.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getRootClassName.js","sources":["../../../../../node_modules/classnames/index.js","../../../../lumx-core/src/js/utils/getBasicClass.ts","../../../../lumx-core/src/js/utils/handleBasicClasses.ts","../../../../lumx-core/src/js/constants/index.ts","../../../src/utils/getRootClassName.ts"],"sourcesContent":["/*!\n Copyright (c) 2017 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import isBoolean from 'lodash/isBoolean';\nimport kebabCase from 'lodash/kebabCase';\n\n/**\n * Get the basic CSS class for the given type.\n *\n * @param prefix The class name prefix for the generated CSS class.\n * @param type The type of CSS class we want to generate (e.g.: 'color', 'variant', ...).\n * @param value The value of the type of the CSS class (e.g.: 'primary', 'button', ...).\n * @return The basic CSS class.\n */\nexport function getBasicClass({\n prefix,\n type,\n value,\n}: {\n prefix: string;\n type: string;\n value: string | number | boolean | undefined;\n}): string {\n if (isBoolean(value)) {\n if (!value) {\n // False value should not return a class.\n return '';\n }\n const booleanPrefixes = ['has', 'is'];\n\n if (booleanPrefixes.some((booleanPrefix) => type.toString().startsWith(booleanPrefix))) {\n return `${prefix}--${kebabCase(type)}`;\n }\n\n return `${prefix}--is-${kebabCase(type)}`;\n }\n\n return `${prefix}--${kebabCase(type)}-${value}`;\n}\n","import isEmpty from 'lodash/isEmpty';\nimport isBoolean from 'lodash/isBoolean';\nimport classNames from 'classnames';\nimport { getBasicClass } from './getBasicClass';\n\n/**\n * Enhance isEmpty method to also works with numbers.\n *\n * @param value The value to check.\n * @return Whether the input value is empty or != 0.\n */\nconst _isEmpty = (value: any) => {\n if (typeof value === 'number') {\n return value === 0;\n }\n\n return isEmpty(value);\n};\n/**\n * Return all basic LumX CSS classes which are available for every components.\n *\n * @see {@link /src/components/index.d.ts} for the possible values of each parameter.\n *\n * @param prefix The class name prefix for the generated CSS class.\n * @param props All the other props you want to generate a class.\n * The rule of thumb: the key is the name of the prop in the class, the value a string that will\n * be used in the classname to represent the value of the given prop.\n * @return All LumX basic CSS classes.\n */\nexport function handleBasicClasses({ prefix, ...props }: { prefix: string; [prop: string]: any }): string {\n const otherClasses: any = {};\n if (!isEmpty(props)) {\n Object.keys(props).forEach((prop) => {\n otherClasses[getBasicClass({ prefix, type: prop, value: props[prop] })] = isBoolean(props[prop])\n ? props[prop]\n : !_isEmpty(props[prop]);\n });\n }\n\n return classNames(prefix, otherClasses);\n}\n","/**\n * The prefix to use for the CSS classes.\n */\nexport const CSS_PREFIX = 'lumx';\n\n/**\n * Key codes.\n */\nexport * from './keycodes';\n\n/**\n * Animation duration constants. Take into consideration that if you change one of these variables,\n * you need to update their scss counterpart as well\n */\nexport const DIALOG_TRANSITION_DURATION = 400;\nexport const NOTIFICATION_TRANSITION_DURATION = 200;\n\n/**\n * Delay on hover after which we open or close the tooltip.\n * Only applies to devices supporting pointer hover.\n */\nexport const TOOLTIP_HOVER_DELAY = {\n openDelay: 500,\n closeDelay: 0,\n};\n\n/**\n * Delay on long press after which we open or close the tooltip.\n * Only applies to devices not supporting pointer hover.\n */\nexport const TOOLTIP_LONG_PRESS_DELAY = {\n openDelay: 250,\n closeDelay: 3000,\n};\n","import { CSS_PREFIX } from '@lumx/react/constants';\n\nimport kebabCase from 'lodash/kebabCase';\n\n// See https://regex101.com/r/YjS1uI/3\nconst LAST_PART_CLASSNAME = /^(.*)-(.+)$/gi;\n\n/**\n * Get the name of the root CSS class of a component based on its name.\n *\n * @param componentName The name of the component. This name should contains the component prefix and be\n * written in PascalCase.\n * @param subComponent Whether the current component is a sub component, if true, define the class according\n * to BEM standards.\n * @return The name of the root CSS class. This classname include the CSS classname prefix and is written in\n * lower-snake-case.\n */\nexport function getRootClassName(componentName: string, subComponent?: boolean): string {\n const formattedClassName = `${CSS_PREFIX}-${kebabCase(componentName)}`;\n\n if (subComponent) {\n return formattedClassName.replace(LAST_PART_CLASSNAME, '$1__$2');\n }\n return formattedClassName;\n}\n"],"names":["getBasicClass","prefix","type","value","isBoolean","booleanPrefixes","some","booleanPrefix","toString","startsWith","kebabCase","_isEmpty","isEmpty","handleBasicClasses","props","otherClasses","Object","keys","forEach","prop","classNames","CSS_PREFIX","DIALOG_TRANSITION_DURATION","NOTIFICATION_TRANSITION_DURATION","TOOLTIP_HOVER_DELAY","openDelay","closeDelay","TOOLTIP_LONG_PRESS_DELAY","LAST_PART_CLASSNAME","getRootClassName","componentName","subComponent","formattedClassName","replace"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,YAAY;AAEb;AACA,CAAC,IAAI,MAAM,GAAG,EAAE,CAAC,cAAc,CAAC;AAChC;AACA,CAAC,SAAS,UAAU,IAAI;AACxB,EAAE,IAAI,OAAO,GAAG,EAAE,CAAC;AACnB;AACA,EAAE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC7C,GAAG,IAAI,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAC1B,GAAG,IAAI,CAAC,GAAG,EAAE,SAAS;AACtB;AACA,GAAG,IAAI,OAAO,GAAG,OAAO,GAAG,CAAC;AAC5B;AACA,GAAG,IAAI,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,QAAQ,EAAE;AACrD,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACtB,IAAI,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,EAAE;AAChD,IAAI,IAAI,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AAC5C,IAAI,IAAI,KAAK,EAAE;AACf,KAAK,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACzB,KAAK;AACL,IAAI,MAAM,IAAI,OAAO,KAAK,QAAQ,EA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DC,YAAjD,EAAiF;AACpF,MAAMC,kBAAkB,aAAMX,UAAN,cAAoBX,SAAS,CAACoB,aAAD,CAA7B,CAAxB;;AAEA,MAAIC,YAAJ,EAAkB;AACd,WAAOC,kBAAkB,CAACC,OAAnB,CAA2BL,mBAA3B,EAAgD,QAAhD,CAAP;AACH;;AACD,SAAOI,kBAAP;AACH;;;;"}
1
+ {"version":3,"file":"getRootClassName.js","sources":["../../../../../node_modules/classnames/index.js","../../../../lumx-core/src/js/utils.ts","../../../../lumx-core/src/js/constants/index.ts","../../../src/utils/getRootClassName.ts"],"sourcesContent":["/*!\n Copyright (c) 2017 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import classNames from 'classnames';\n// eslint-disable-next-line import/no-extraneous-dependencies\nimport React from 'react';\n\nimport isBoolean from 'lodash/isBoolean';\nimport isEmpty from 'lodash/isEmpty';\nimport kebabCase from 'lodash/kebabCase';\nimport noop from 'lodash/noop';\n\n/**\n * Enhance isEmpty method to also works with numbers.\n *\n * @param value The value to check.\n * @return Whether the input value is empty or != 0.\n */\nconst _isEmpty = (value: any) => {\n if (typeof value === 'number') {\n return value === 0;\n }\n\n return isEmpty(value);\n};\n\n/**\n * Get the basic CSS class for the given type.\n *\n * @param prefix The class name prefix for the generated CSS class.\n * @param type The type of CSS class we want to generate (e.g.: 'color', 'variant', ...).\n * @param value The value of the type of the CSS class (e.g.: 'primary', 'button', ...).\n * @return The basic CSS class.\n */\nexport function getBasicClass({\n prefix,\n type,\n value,\n}: {\n prefix: string;\n type: string;\n value: string | number | boolean | undefined;\n}): string {\n if (isBoolean(value)) {\n if (!value) {\n // False value should not return a class.\n return '';\n }\n const booleanPrefixes = ['has', 'is'];\n\n if (booleanPrefixes.some((booleanPrefix) => type.toString().startsWith(booleanPrefix))) {\n return `${prefix}--${kebabCase(type)}`;\n }\n\n return `${prefix}--is-${kebabCase(type)}`;\n }\n\n return `${prefix}--${kebabCase(type)}-${value}`;\n}\n\n/**\n * Return all basic LumX CSS classes which are available for every components.\n *\n * @see {@link /src/components/index.d.ts} for the possible values of each parameter.\n *\n * @param prefix The class name prefix for the generated CSS class.\n * @param props All the other props you want to generate a class.\n * The rule of thumb: the key is the name of the prop in the class, the value a string that will\n * be used in the classname to represent the value of the given prop.\n * @return All LumX basic CSS classes.\n */\nexport function handleBasicClasses({ prefix, ...props }: { prefix: string; [prop: string]: any }): string {\n const otherClasses: any = {};\n if (!isEmpty(props)) {\n Object.keys(props).forEach((prop) => {\n otherClasses[getBasicClass({ prefix, type: prop, value: props[prop] })] = isBoolean(props[prop])\n ? props[prop]\n : !_isEmpty(props[prop]);\n });\n }\n\n return classNames(prefix, otherClasses);\n}\n\ndeclare type SwipeDirection = 'none' | 'up' | 'down' | 'left' | 'right';\n\n/**\n * Detects swipe direction.\n * Credits: http://javascriptkit.com/javatutors/touchevents2.shtml.\n *\n * @deprecated use `detectHorizontalSwipe` instead if possible (better performance and does not block scroll)\n * @param touchSurface Element that will hold touch events.\n * @param handleSwipe Callback function.\n * @return Function to remove listeners.\n */\nexport function detectSwipe(touchSurface: Element, handleSwipe: (direction: SwipeDirection) => void = noop) {\n let distX: number;\n let distY: number;\n let startX: number;\n let startY: number;\n let direction: SwipeDirection;\n // Required min distance traveled to be considered swipe.\n const threshold = 150;\n // Maximum distance allowed at the same time in perpendicular direction.\n const restraint = 100;\n // Maximum time allowed to travel that distance.\n const allowedTime = 300;\n let elapsedTime: number;\n let startTime: number;\n\n const onTouchStart = (evt: Event) => {\n const [touch] = Array.from((evt as TouchEvent).changedTouches);\n direction = 'none';\n // Const dist = 0;\n startX = touch.pageX;\n startY = touch.pageY;\n // Record time when finger first makes contact with surface.\n startTime = new Date().getTime();\n evt.preventDefault();\n };\n\n const onTouchMove = (evt: Event) => {\n // Prevent scrolling when inside DIV.\n evt.preventDefault();\n };\n\n const onTouchEnd = (evt: Event) => {\n const [touch] = Array.from((evt as TouchEvent).changedTouches);\n // Get horizontal dist traveled by finger while in contact with surface.\n distX = touch.pageX - startX;\n // Get vertical dist traveled by finger while in contact with surface.\n distY = touch.pageY - startY;\n // Get time elapsed.\n elapsedTime = new Date().getTime() - startTime;\n if (elapsedTime <= allowedTime) {\n // First condition for awipe met.\n if (Math.abs(distX) >= threshold && Math.abs(distY) <= restraint) {\n // 2nd condition for horizontal swipe met.\n // If dist traveled is negative, it indicates left swipe.\n direction = distX < 0 ? 'left' : 'right';\n } else if (Math.abs(distY) >= threshold && Math.abs(distX) <= restraint) {\n // 2nd condition for vertical swipe met.\n // If dist traveled is negative, it indicates up swipe.\n direction = distY < 0 ? 'up' : 'down';\n }\n }\n handleSwipe(direction);\n evt.preventDefault();\n };\n\n touchSurface.addEventListener('touchstart', onTouchStart, false);\n touchSurface.addEventListener('touchmove', onTouchMove, false);\n touchSurface.addEventListener('touchend', onTouchEnd, false);\n\n return () => {\n touchSurface.removeEventListener('touchstart', onTouchStart, false);\n touchSurface.removeEventListener('touchmove', onTouchMove, false);\n touchSurface.removeEventListener('touchend', onTouchEnd, false);\n };\n}\n\n/**\n * Checks whether or not the browser support passive events.\n * @see https://github.com/Modernizr/Modernizr/blob/6d56d814b9682843313b16060adb25a58d83a317/feature-detects/dom/passiveeventlisteners.js\n */\nfunction isPassiveEventAvailable() {\n let supportsPassiveOption = false;\n try {\n const opts = Object.defineProperty({}, 'passive', {\n get() {\n supportsPassiveOption = true;\n },\n });\n window.addEventListener('testPassiveEventSupport', noop, opts);\n window.removeEventListener('testPassiveEventSupport', noop, opts);\n } catch (e) {\n // ignored\n }\n return supportsPassiveOption;\n}\n\n/**\n * Detects horizontal swipe direction without blocking the browser scroll using passive event.\n * @see http://javascriptkit.com/javatutors/touchevents2.shtml\n * @see https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md\n */\nexport function detectHorizontalSwipe(touchSurface: Element, handleSwipe: (direction: 'right' | 'left') => void) {\n let startX: number;\n let startY: number;\n // Required min distance traveled to be considered swipe.\n const threshold = 150;\n // Maximum distance allowed at the same time in perpendicular direction.\n const restraint = 150;\n // Maximum time allowed to travel that distance.\n const allowedTime = 300;\n let elapsedTime: number;\n let startTime: number;\n let finished: boolean;\n\n const onTouchStart = (evt: Event) => {\n const [touch] = Array.from((evt as TouchEvent).changedTouches);\n startX = touch.pageX;\n startY = touch.pageY;\n // Record time when finger first makes contact with surface.\n startTime = new Date().getTime();\n finished = false;\n };\n\n const onTouchMove = (evt: Event) => {\n if (finished) {\n return;\n }\n\n elapsedTime = new Date().getTime() - startTime;\n if (elapsedTime > allowedTime) {\n // Touch swipe too long to be considered.\n return;\n }\n\n const [touch] = Array.from((evt as TouchEvent).changedTouches);\n // Get horizontal dist traveled by finger while in contact with surface.\n const distX = touch.pageX - startX;\n // Get vertical dist traveled by finger while in contact with surface.\n const distY = touch.pageY - startY;\n\n if (!(Math.abs(distX) >= threshold && Math.abs(distY) <= restraint)) {\n // Swipe is not horizontal.\n return;\n }\n // Swipe direction.\n const direction = distX < 0 ? 'left' : 'right';\n\n handleSwipe(direction);\n finished = true;\n };\n\n // Activate passive event if possible for better scrolling performance.\n const eventOptions: any = isPassiveEventAvailable() ? { passive: true } : false;\n touchSurface.addEventListener('touchstart', onTouchStart, eventOptions);\n touchSurface.addEventListener('touchmove', onTouchMove, eventOptions);\n\n return () => {\n touchSurface.removeEventListener('touchstart', onTouchStart, eventOptions);\n touchSurface.removeEventListener('touchmove', onTouchMove, eventOptions);\n };\n}\n\ntype KeyboardEventHandler<E extends KeyboardEvent | React.KeyboardEvent> = (event: E) => void;\n\n/**\n * Make sure the pressed key is the enter key before calling the callback.\n *\n * @param handler The handler to call on enter/return press.\n * @return The decorated function.\n */\nexport function onEnterPressed<E extends KeyboardEvent | React.KeyboardEvent>(\n handler: KeyboardEventHandler<E>,\n): KeyboardEventHandler<E> {\n return (evt) => {\n if (evt.key !== 'Enter') {\n return;\n }\n handler(evt);\n };\n}\n\n/**\n * Make sure the pressed key is the escape key before calling the callback.\n *\n * @param handler The handler to call on enter/return press.\n * @return The decorated function.\n */\nexport function onEscapePressed<E extends KeyboardEvent | React.KeyboardEvent>(\n handler: KeyboardEventHandler<E>,\n): KeyboardEventHandler<E> {\n return (evt) => {\n if (evt.key !== 'Escape') {\n return;\n }\n handler(evt);\n };\n}\n\n/**\n * Handle button key pressed (Enter + Space).\n *\n * @param handler The handler to call.\n * @return The decorated function.\n */\nexport function onButtonPressed<E extends KeyboardEvent | React.KeyboardEvent>(\n handler: KeyboardEventHandler<E>,\n): KeyboardEventHandler<E> {\n return (evt) => {\n if (evt.key !== 'Enter' && evt.key !== ' ') {\n return;\n }\n handler(evt);\n };\n}\n","/**\n * The prefix to use for the CSS classes.\n */\nexport const CSS_PREFIX = 'lumx';\n\n/**\n * Key codes.\n */\nexport * from './keycodes';\n\n/**\n * Animation duration constants. Take into consideration that if you change one of these variables,\n * you need to update their scss counterpart as well\n */\nexport const DIALOG_TRANSITION_DURATION = 400;\nexport const NOTIFICATION_TRANSITION_DURATION = 200;\n","import { CSS_PREFIX } from '@lumx/react/constants';\n\nimport kebabCase from 'lodash/kebabCase';\n\n// See https://regex101.com/r/YjS1uI/3\nconst LAST_PART_CLASSNAME = /^(.*)-(.+)$/gi;\n\n/**\n * Get the name of the root CSS class of a component based on its name.\n *\n * @param componentName The name of the component. This name should contains the component prefix and be\n * written in PascalCase.\n * @param subComponent Whether the current component is a sub component, if true, define the class according\n * to BEM standards.\n * @return The name of the root CSS class. This classname include the CSS classname prefix and is written in\n * lower-snake-case.\n */\nexport function getRootClassName(componentName: string, subComponent?: boolean): string {\n const formattedClassName = `${CSS_PREFIX}-${kebabCase(componentName)}`;\n\n if (subComponent) {\n return formattedClassName.replace(LAST_PART_CLASSNAME, '$1__$2');\n }\n return formattedClassName;\n}\n"],"names":["_isEmpty","value","isEmpty","getBasicClass","prefix","type","isBoolean","booleanPrefixes","some","booleanPrefix","toString","startsWith","kebabCase","handleBasicClasses","props","otherClasses","Object","keys","forEach","prop","classNames","isPassiveEventAvailable","supportsPassiveOption","opts","defineProperty","get","window","addEventListener","noop","removeEventListener","e","detectHorizontalSwipe","touchSurface","handleSwipe","startX","startY","threshold","restraint","allowedTime","elapsedTime","startTime","finished","onTouchStart","evt","Array","from","changedTouches","touch","pageX","pageY","Date","getTime","onTouchMove","distX","distY","Math","abs","direction","eventOptions","passive","onEnterPressed","handler","key","onEscapePressed","onButtonPressed","CSS_PREFIX","DIALOG_TRANSITION_DURATION","NOTIFICATION_TRANSITION_DURATION","LAST_PART_CLASSNAME","getRootClassName","componentName","subComponent","formattedClassName","replace"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,YAAY;AAEb;AACA,CAA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BAAkB,aAAMP,UAAN,cAAoBrD,SAAS,CAAC0D,aAAD,CAA7B,CAAxB;;AAEA,MAAIC,YAAJ,EAAkB;AACd,WAAOC,kBAAkB,CAACC,OAAnB,CAA2BL,mBAA3B,EAAgD,QAAhD,CAAP;AACH;;AACD,SAAOI,kBAAP;AACH;;;;"}
@@ -3,7 +3,8 @@ import './components.js';
3
3
  import 'react';
4
4
  import './getRootClassName.js';
5
5
  import 'lodash/isBoolean';
6
- import 'lodash/kebabCase';
7
6
  import 'lodash/isEmpty';
7
+ import 'lodash/kebabCase';
8
+ import 'lodash/noop';
8
9
  export { G as Grid, a as GridItem } from './GridItem.js';
9
10
  //# sourceMappingURL=grid.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"grid.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
1
+ {"version":3,"file":"grid.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -2,8 +2,9 @@ import './_rollupPluginBabelHelpers.js';
2
2
  import './components.js';
3
3
  import 'react';
4
4
  import './getRootClassName.js';
5
+ export { I as Icon } from './Icon2.js';
5
6
  import 'lodash/isBoolean';
6
- import 'lodash/kebabCase';
7
7
  import 'lodash/isEmpty';
8
- export { I as Icon } from './Icon2.js';
8
+ import 'lodash/kebabCase';
9
+ import 'lodash/noop';
9
10
  //# sourceMappingURL=icon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
1
+ {"version":3,"file":"icon.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}