@lumx/core 4.17.1-alpha.1 → 4.17.1-alpha.3

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 (594) hide show
  1. package/README.md +19 -0
  2. package/_internal/_virtual/_rolldown/runtime.js +13 -0
  3. package/{js → _internal/js}/constants/browser/index.d.ts +6 -3
  4. package/_internal/js/constants/browser/index.js +15 -0
  5. package/_internal/js/constants/className/index.d.ts +7 -0
  6. package/_internal/js/constants/className/index.js +7 -0
  7. package/{js/constants/components/index.js → _internal/js/constants/components/index.d.ts} +13 -12
  8. package/_internal/js/constants/components/index.js +27 -0
  9. package/_internal/js/constants/enums/index.d.ts +207 -0
  10. package/_internal/js/constants/enums/index.js +165 -0
  11. package/{js/constants/keycodes/index.js → _internal/js/constants/keycodes/index.d.ts} +12 -11
  12. package/_internal/js/constants/keycodes/index.js +39 -0
  13. package/_internal/js/types/AriaAttributes.d.ts +32 -0
  14. package/_internal/js/types/Booleanish.d.ts +4 -0
  15. package/_internal/js/types/Callback.d.ts +7 -0
  16. package/_internal/js/types/CommonRef.d.ts +4 -0
  17. package/_internal/js/types/Direction.d.ts +4 -0
  18. package/_internal/js/types/Falsy.d.ts +8 -0
  19. package/_internal/js/types/GenericProps.d.ts +14 -0
  20. package/_internal/js/types/HasAriaDisabled.d.ts +9 -0
  21. package/_internal/js/types/HasAriaLabelOrLabelledBy.d.ts +19 -0
  22. package/_internal/js/types/HasChecked.d.ts +9 -0
  23. package/_internal/js/types/HasClassName.d.ts +9 -0
  24. package/_internal/js/types/HasCloseMode.d.ts +10 -0
  25. package/_internal/js/types/HasDisabled.d.ts +9 -0
  26. package/_internal/js/types/HasPolymorphicAs.d.ts +12 -0
  27. package/_internal/js/types/HasRequiredLinkHref.d.ts +6 -0
  28. package/_internal/js/types/HasTheme.d.ts +11 -0
  29. package/_internal/js/types/HeadingElement.d.ts +5 -0
  30. package/_internal/js/types/JSXElement.d.ts +13 -0
  31. package/_internal/js/types/KebabCase.d.ts +5 -0
  32. package/_internal/js/types/LumxClassName.d.ts +7 -0
  33. package/{js → _internal/js}/types/NamedProps.d.ts +4 -3
  34. package/{js → _internal/js}/types/NestedComponents.d.ts +5 -2
  35. package/_internal/js/types/ObjectValues.d.ts +8 -0
  36. package/{js → _internal/js}/types/PartialBy.d.ts +5 -2
  37. package/_internal/js/types/Point.d.ts +10 -0
  38. package/_internal/js/types/Predicate.d.ts +5 -0
  39. package/_internal/js/types/RectSize.d.ts +10 -0
  40. package/_internal/js/types/Selector.d.ts +11 -0
  41. package/_internal/js/types/Spacing.d.ts +4 -0
  42. package/_internal/js/types/TextElement.d.ts +7 -0
  43. package/_internal/js/types/ValueOf.d.ts +5 -0
  44. package/_internal/js/types/jsx/PropsToOverride.d.ts +5 -0
  45. package/_internal/js/utils/_internal/color/resolveColorWithVariants.js +9 -0
  46. package/{js → _internal/js}/utils/classNames/action-area/index.d.ts +5 -4
  47. package/_internal/js/utils/classNames/action-area/index.js +22 -0
  48. package/_internal/js/utils/classNames/bem/block.d.ts +1 -0
  49. package/_internal/js/utils/classNames/bem/block.js +16 -0
  50. package/_internal/js/utils/classNames/bem/element.d.ts +1 -0
  51. package/_internal/js/utils/classNames/bem/element.js +7 -0
  52. package/_internal/js/utils/classNames/bem/index.d.ts +18 -0
  53. package/_internal/js/utils/classNames/bem/index.js +22 -0
  54. package/_internal/js/utils/classNames/bem/modifier.js +19 -0
  55. package/_internal/js/utils/classNames/bem/types.d.ts +15 -0
  56. package/{js → _internal/js}/utils/classNames/color/index.d.ts +8 -4
  57. package/_internal/js/utils/classNames/color/index.js +50 -0
  58. package/{js → _internal/js}/utils/classNames/spacing/index.d.ts +23 -18
  59. package/_internal/js/utils/classNames/spacing/index.js +75 -0
  60. package/_internal/js/utils/classNames/typography/index.d.ts +10 -0
  61. package/_internal/js/utils/classNames/typography/index.js +10 -0
  62. package/_internal/js/utils/classNames/visually-hidden/index.d.ts +8 -0
  63. package/_internal/js/utils/classNames/visually-hidden/index.js +9 -0
  64. package/{js → _internal/js}/utils/events/keyboard.d.ts +7 -5
  65. package/_internal/js/utils/events/keyboard.js +39 -0
  66. package/{js → _internal/js}/utils/events/swipe.d.ts +4 -1
  67. package/_internal/js/utils/events/swipe.js +58 -0
  68. package/_internal/js/utils/selectors/getWithSelector.d.ts +7 -0
  69. package/_internal/js/utils/selectors/getWithSelector.js +9 -0
  70. package/_internal/js/utils/selectors/groupBySelector.d.ts +10 -0
  71. package/_internal/js/utils/selectors/groupBySelector.js +21 -0
  72. package/js/constants/index.d.ts +6 -5
  73. package/js/constants/index.js +6 -5
  74. package/js/types/index.d.ts +31 -30
  75. package/js/types/index.js +0 -1
  76. package/js/utils/classNames/index.d.ts +14 -7
  77. package/js/utils/classNames/index.js +27 -7
  78. package/js/utils/disabledState/index.d.ts +17 -14
  79. package/js/utils/disabledState/index.js +9 -8
  80. package/js/utils/index.d.ts +6 -3
  81. package/js/utils/index.js +6 -6
  82. package/js/utils/selectors/index.d.ts +3 -2
  83. package/js/utils/selectors/index.js +3 -2
  84. package/package.json +6 -12
  85. package/_internal/DPnPEC08.js +0 -9
  86. package/js/components/AlertDialog/Stories.d.ts +0 -115
  87. package/js/components/AlertDialog/Tests.d.ts +0 -11
  88. package/js/components/AlertDialog/index.d.ts +0 -91
  89. package/js/components/Avatar/Stories.d.ts +0 -52
  90. package/js/components/Avatar/Tests.d.ts +0 -11
  91. package/js/components/Avatar/index.d.ts +0 -50
  92. package/js/components/Badge/BadgeWrapper.d.ts +0 -13
  93. package/js/components/Badge/BadgeWrapperStories.d.ts +0 -29
  94. package/js/components/Badge/BadgeWrapperTests.d.ts +0 -9
  95. package/js/components/Badge/Stories.d.ts +0 -46
  96. package/js/components/Badge/Tests.d.ts +0 -12
  97. package/js/components/Badge/index.d.ts +0 -37
  98. package/js/components/Button/Button.d.ts +0 -48
  99. package/js/components/Button/ButtonGroup.d.ts +0 -36
  100. package/js/components/Button/ButtonGroupStories.d.ts +0 -33
  101. package/js/components/Button/ButtonRoot.d.ts +0 -55
  102. package/js/components/Button/ButtonRootTests.d.ts +0 -12
  103. package/js/components/Button/IconButton.d.ts +0 -45
  104. package/js/components/Button/IconButtonStories.d.ts +0 -210
  105. package/js/components/Button/IconButtonTests.d.ts +0 -15
  106. package/js/components/Button/Stories.d.ts +0 -302
  107. package/js/components/Button/Tests.d.ts +0 -15
  108. package/js/components/Checkbox/Stories.d.ts +0 -89
  109. package/js/components/Checkbox/Tests.d.ts +0 -15
  110. package/js/components/Checkbox/index.d.ts +0 -49
  111. package/js/components/Chip/ChipGroup.d.ts +0 -35
  112. package/js/components/Chip/ChipGroupStories.d.ts +0 -17
  113. package/js/components/Chip/ChipGroupTests.d.ts +0 -11
  114. package/js/components/Chip/SelectionChipGroup.d.ts +0 -56
  115. package/js/components/Chip/SelectionChipGroupStories.d.ts +0 -54
  116. package/js/components/Chip/SelectionChipGroupTests.d.ts +0 -23
  117. package/js/components/Chip/Stories.d.ts +0 -127
  118. package/js/components/Chip/Tests.d.ts +0 -11
  119. package/js/components/Chip/index.d.ts +0 -81
  120. package/js/components/Chip/setupSelectionChipGroupEvents.d.ts +0 -28
  121. package/js/components/Combobox/ComboboxButton.d.ts +0 -57
  122. package/js/components/Combobox/ComboboxInput.d.ts +0 -57
  123. package/js/components/Combobox/ComboboxList.d.ts +0 -47
  124. package/js/components/Combobox/ComboboxOption.d.ts +0 -74
  125. package/js/components/Combobox/ComboboxOptionAction.d.ts +0 -35
  126. package/js/components/Combobox/ComboboxOptionMoreInfo.d.ts +0 -54
  127. package/js/components/Combobox/ComboboxOptionSkeleton.d.ts +0 -47
  128. package/js/components/Combobox/ComboboxOptionTests.d.ts +0 -24
  129. package/js/components/Combobox/ComboboxPopover.d.ts +0 -41
  130. package/js/components/Combobox/ComboboxSection.d.ts +0 -58
  131. package/js/components/Combobox/ComboboxState.d.ts +0 -99
  132. package/js/components/Combobox/Stories.d.ts +0 -167
  133. package/js/components/Combobox/TestStories.d.ts +0 -186
  134. package/js/components/Combobox/Tests.d.ts +0 -169
  135. package/js/components/Combobox/constants.d.ts +0 -2
  136. package/js/components/Combobox/index.d.ts +0 -25
  137. package/js/components/Combobox/setupCombobox.d.ts +0 -24
  138. package/js/components/Combobox/setupComboboxButton.d.ts +0 -16
  139. package/js/components/Combobox/setupComboboxInput.d.ts +0 -24
  140. package/js/components/Combobox/setupListbox.d.ts +0 -23
  141. package/js/components/Combobox/subscribeComboboxState.d.ts +0 -23
  142. package/js/components/Combobox/types.d.ts +0 -166
  143. package/js/components/Combobox/utils.d.ts +0 -30
  144. package/js/components/Dialog/Stories.d.ts +0 -97
  145. package/js/components/Dialog/Tests.d.ts +0 -12
  146. package/js/components/Dialog/index.d.ts +0 -99
  147. package/js/components/Divider/Stories.d.ts +0 -21
  148. package/js/components/Divider/Tests.d.ts +0 -12
  149. package/js/components/Divider/index.d.ts +0 -27
  150. package/js/components/DragHandle/Stories.d.ts +0 -18
  151. package/js/components/DragHandle/Tests.d.ts +0 -12
  152. package/js/components/DragHandle/index.d.ts +0 -27
  153. package/js/components/ExpansionPanel/Stories.d.ts +0 -67
  154. package/js/components/ExpansionPanel/Tests.d.ts +0 -12
  155. package/js/components/ExpansionPanel/index.d.ts +0 -70
  156. package/js/components/Flag/Stories.d.ts +0 -120
  157. package/js/components/Flag/Tests.d.ts +0 -14
  158. package/js/components/Flag/index.d.ts +0 -34
  159. package/js/components/FlexBox/Stories.d.ts +0 -116
  160. package/js/components/FlexBox/Tests.d.ts +0 -13
  161. package/js/components/FlexBox/constants.d.ts +0 -4
  162. package/js/components/FlexBox/index.d.ts +0 -54
  163. package/js/components/FlexBox/types.d.ts +0 -7
  164. package/js/components/GenericBlock/Stories.d.ts +0 -74
  165. package/js/components/GenericBlock/Tests.d.ts +0 -13
  166. package/js/components/GenericBlock/constants.d.ts +0 -19
  167. package/js/components/GenericBlock/index.d.ts +0 -85
  168. package/js/components/GridColumn/GridColumn.d.ts +0 -48
  169. package/js/components/GridColumn/GridColumnStories.d.ts +0 -45
  170. package/js/components/GridColumn/GridColumnTests.d.ts +0 -12
  171. package/js/components/GridColumn/index.d.ts +0 -2
  172. package/js/components/Heading/Stories.d.ts +0 -90
  173. package/js/components/Heading/Tests.d.ts +0 -11
  174. package/js/components/Heading/constants.d.ts +0 -21
  175. package/js/components/Heading/index.d.ts +0 -44
  176. package/js/components/Heading/utils.d.ts +0 -8
  177. package/js/components/Icon/Stories.d.ts +0 -156
  178. package/js/components/Icon/Tests.d.ts +0 -14
  179. package/js/components/Icon/constants.d.ts +0 -1
  180. package/js/components/Icon/index.d.ts +0 -41
  181. package/js/components/ImageBlock/ImageCaption.d.ts +0 -36
  182. package/js/components/ImageBlock/Stories.d.ts +0 -187
  183. package/js/components/ImageBlock/Tests.d.ts +0 -11
  184. package/js/components/ImageBlock/index.d.ts +0 -63
  185. package/js/components/InlineList/Stories.d.ts +0 -64
  186. package/js/components/InlineList/Tests.d.ts +0 -12
  187. package/js/components/InlineList/index.d.ts +0 -53
  188. package/js/components/InputHelper/Stories.d.ts +0 -35
  189. package/js/components/InputHelper/Tests.d.ts +0 -12
  190. package/js/components/InputHelper/constants.d.ts +0 -3
  191. package/js/components/InputHelper/index.d.ts +0 -26
  192. package/js/components/InputLabel/Stories.d.ts +0 -40
  193. package/js/components/InputLabel/Tests.d.ts +0 -12
  194. package/js/components/InputLabel/index.d.ts +0 -29
  195. package/js/components/Lightbox/Stories.d.ts +0 -40
  196. package/js/components/Lightbox/Tests.d.ts +0 -11
  197. package/js/components/Lightbox/index.d.ts +0 -68
  198. package/js/components/Link/Stories.d.ts +0 -282
  199. package/js/components/Link/Tests.d.ts +0 -8
  200. package/js/components/Link/index.d.ts +0 -47
  201. package/js/components/LinkPreview/Stories.d.ts +0 -61
  202. package/js/components/LinkPreview/Tests.d.ts +0 -15
  203. package/js/components/LinkPreview/index.d.ts +0 -53
  204. package/js/components/List/ListDivider.d.ts +0 -33
  205. package/js/components/List/ListDividerStories.d.ts +0 -17
  206. package/js/components/List/ListDividerTests.d.ts +0 -11
  207. package/js/components/List/ListItem.d.ts +0 -58
  208. package/js/components/List/ListItemAction.d.ts +0 -24
  209. package/js/components/List/ListItemActionTests.d.ts +0 -11
  210. package/js/components/List/ListItemStories.d.ts +0 -53
  211. package/js/components/List/ListItemTests.d.ts +0 -12
  212. package/js/components/List/ListSection.d.ts +0 -45
  213. package/js/components/List/ListSectionStories.d.ts +0 -125
  214. package/js/components/List/ListSectionTests.d.ts +0 -13
  215. package/js/components/List/ListStories.d.ts +0 -34
  216. package/js/components/List/ListTests.d.ts +0 -11
  217. package/js/components/List/index.d.ts +0 -39
  218. package/js/components/Menu/MenuButton.d.ts +0 -41
  219. package/js/components/Menu/MenuButtonStories.d.ts +0 -50
  220. package/js/components/Menu/MenuButtonTestStories.d.ts +0 -31
  221. package/js/components/Menu/MenuButtonTests.d.ts +0 -34
  222. package/js/components/Menu/MenuItem.d.ts +0 -26
  223. package/js/components/Menu/MenuItemTests.d.ts +0 -11
  224. package/js/components/Menu/MenuList.d.ts +0 -16
  225. package/js/components/Menu/MenuPopover.d.ts +0 -18
  226. package/js/components/Menu/MenuTrigger.d.ts +0 -23
  227. package/js/components/Menu/setupMenu.d.ts +0 -18
  228. package/js/components/Menu/types.d.ts +0 -40
  229. package/js/components/Menu/utils.d.ts +0 -9
  230. package/js/components/Message/Stories.d.ts +0 -119
  231. package/js/components/Message/Tests.d.ts +0 -14
  232. package/js/components/Message/index.d.ts +0 -75
  233. package/js/components/Mosaic/Stories.d.ts +0 -102
  234. package/js/components/Mosaic/Tests.d.ts +0 -13
  235. package/js/components/Mosaic/index.d.ts +0 -40
  236. package/js/components/Popover/Stories.d.ts +0 -156
  237. package/js/components/Popover/Tests.d.ts +0 -11
  238. package/js/components/Popover/constants.d.ts +0 -43
  239. package/js/components/Popover/index.d.ts +0 -120
  240. package/js/components/Popover/types.d.ts +0 -35
  241. package/js/components/Popover/utils/buildPopoverMiddleware.d.ts +0 -25
  242. package/js/components/Popover/utils/computeArrowStyles.d.ts +0 -5
  243. package/js/components/Popover/utils/getFloatingPlacement.d.ts +0 -7
  244. package/js/components/Popover/utils/index.d.ts +0 -5
  245. package/js/components/Popover/utils/parseAutoPlacement.d.ts +0 -22
  246. package/js/components/Popover/utils/parseFitWidth.d.ts +0 -4
  247. package/js/components/PopoverDialog/Stories.d.ts +0 -44
  248. package/js/components/PopoverDialog/Tests.d.ts +0 -11
  249. package/js/components/PopoverDialog/index.d.ts +0 -22
  250. package/js/components/ProgressCircular/Stories.d.ts +0 -30
  251. package/js/components/ProgressCircular/Tests.d.ts +0 -11
  252. package/js/components/ProgressCircular/index.d.ts +0 -52
  253. package/js/components/ProgressLinear/Stories.d.ts +0 -11
  254. package/js/components/ProgressLinear/Tests.d.ts +0 -11
  255. package/js/components/ProgressLinear/index.d.ts +0 -27
  256. package/js/components/RadioButton/Stories.d.ts +0 -78
  257. package/js/components/RadioButton/Tests.d.ts +0 -15
  258. package/js/components/RadioButton/index.d.ts +0 -45
  259. package/js/components/RadioGroup/index.d.ts +0 -34
  260. package/js/components/RawClickable/Tests.d.ts +0 -14
  261. package/js/components/RawClickable/index.d.ts +0 -14
  262. package/js/components/SelectButton/Stories.d.ts +0 -135
  263. package/js/components/SelectButton/TestStories.d.ts +0 -45
  264. package/js/components/SelectButton/Tests.d.ts +0 -34
  265. package/js/components/SelectButton/index.d.ts +0 -88
  266. package/js/components/SelectTextField/Stories.d.ts +0 -192
  267. package/js/components/SelectTextField/TestStories.d.ts +0 -39
  268. package/js/components/SelectTextField/Tests.d.ts +0 -38
  269. package/js/components/SelectTextField/index.d.ts +0 -87
  270. package/js/components/Skeleton/SkeletonCircle.d.ts +0 -32
  271. package/js/components/Skeleton/SkeletonCircleStories.d.ts +0 -43
  272. package/js/components/Skeleton/SkeletonCircleTests.d.ts +0 -12
  273. package/js/components/Skeleton/SkeletonRectangle.d.ts +0 -47
  274. package/js/components/Skeleton/SkeletonRectangleStories.d.ts +0 -83
  275. package/js/components/Skeleton/SkeletonRectangleTests.d.ts +0 -13
  276. package/js/components/Skeleton/SkeletonTypography.d.ts +0 -37
  277. package/js/components/Skeleton/SkeletonTypographyStories.d.ts +0 -53
  278. package/js/components/Skeleton/SkeletonTypographyTests.d.ts +0 -13
  279. package/js/components/Skeleton/index.d.ts +0 -3
  280. package/js/components/Switch/Stories.d.ts +0 -94
  281. package/js/components/Switch/Tests.d.ts +0 -15
  282. package/js/components/Switch/index.d.ts +0 -47
  283. package/js/components/Table/Stories.d.ts +0 -30
  284. package/js/components/Table/TableBody.d.ts +0 -25
  285. package/js/components/Table/TableCell.d.ts +0 -55
  286. package/js/components/Table/TableCellStories.d.ts +0 -47
  287. package/js/components/Table/TableCellTests.d.ts +0 -11
  288. package/js/components/Table/TableHeader.d.ts +0 -29
  289. package/js/components/Table/TableRow.d.ts +0 -35
  290. package/js/components/Table/TableRowStories.d.ts +0 -23
  291. package/js/components/Table/Tests.d.ts +0 -11
  292. package/js/components/Table/constants.d.ts +0 -9
  293. package/js/components/Table/index.d.ts +0 -27
  294. package/js/components/Tabs/Tab.d.ts +0 -70
  295. package/js/components/Tabs/TabList.d.ts +0 -39
  296. package/js/components/Tabs/TabListTests.d.ts +0 -12
  297. package/js/components/Tabs/TabPanel.d.ts +0 -43
  298. package/js/components/Tabs/TabPanelTests.d.ts +0 -11
  299. package/js/components/Tabs/TabProviderTestUtils.d.ts +0 -17
  300. package/js/components/Tabs/Tests.d.ts +0 -11
  301. package/js/components/Tabs/constants.d.ts +0 -4
  302. package/js/components/Tabs/state.d.ts +0 -34
  303. package/js/components/Text/Stories.d.ts +0 -164
  304. package/js/components/Text/Tests.d.ts +0 -10
  305. package/js/components/Text/index.d.ts +0 -935
  306. package/js/components/TextField/RawInputText.d.ts +0 -24
  307. package/js/components/TextField/RawInputTextStories.d.ts +0 -16
  308. package/js/components/TextField/RawInputTextTests.d.ts +0 -11
  309. package/js/components/TextField/RawInputTextarea.d.ts +0 -23
  310. package/js/components/TextField/RawInputTextareaStories.d.ts +0 -21
  311. package/js/components/TextField/RawInputTextareaTests.d.ts +0 -11
  312. package/js/components/TextField/Stories.d.ts +0 -101
  313. package/js/components/TextField/Tests.d.ts +0 -14
  314. package/js/components/TextField/TextField.d.ts +0 -84
  315. package/js/components/TextField/constants.d.ts +0 -13
  316. package/js/components/Thumbnail/Stories.d.ts +0 -178
  317. package/js/components/Thumbnail/Tests.d.ts +0 -11
  318. package/js/components/Thumbnail/index.d.ts +0 -84
  319. package/js/components/Thumbnail/types.d.ts +0 -45
  320. package/js/components/Thumbnail/utils.d.ts +0 -79
  321. package/js/components/TimePickerField/Stories.d.ts +0 -64
  322. package/js/components/TimePickerField/Tests.d.ts +0 -29
  323. package/js/components/TimePickerField/index.d.ts +0 -119
  324. package/js/components/Toolbar/Stories.d.ts +0 -29
  325. package/js/components/Toolbar/Tests.d.ts +0 -12
  326. package/js/components/Toolbar/index.d.ts +0 -33
  327. package/js/components/Tooltip/Stories.d.ts +0 -61
  328. package/js/components/Tooltip/TestStories.d.ts +0 -72
  329. package/js/components/Tooltip/Tests.d.ts +0 -11
  330. package/js/components/Tooltip/constants.d.ts +0 -10
  331. package/js/components/Tooltip/index.d.ts +0 -65
  332. package/js/components/Tooltip/tooltipOpenManager.d.ts +0 -21
  333. package/js/components/Uploader/Stories.d.ts +0 -116
  334. package/js/components/Uploader/Tests.d.ts +0 -14
  335. package/js/components/Uploader/index.d.ts +0 -79
  336. package/js/components/UserBlock/Stories.d.ts +0 -153
  337. package/js/components/UserBlock/Tests.d.ts +0 -13
  338. package/js/components/UserBlock/index.d.ts +0 -145
  339. package/js/constants/_internal/design-tokens.d.ts +0 -5421
  340. package/js/constants/browser/index.js +0 -14
  341. package/js/constants/className/index.d.ts +0 -4
  342. package/js/constants/className/index.js +0 -6
  343. package/js/constants/components/index.d.ts +0 -24
  344. package/js/constants/enums/index.d.ts +0 -210
  345. package/js/constants/enums/index.js +0 -164
  346. package/js/constants/keycodes/index.d.ts +0 -36
  347. package/js/types/AriaAttributes.d.ts +0 -29
  348. package/js/types/Booleanish.d.ts +0 -1
  349. package/js/types/Callback.d.ts +0 -4
  350. package/js/types/CommonRef.d.ts +0 -1
  351. package/js/types/Direction.d.ts +0 -1
  352. package/js/types/Falsy.d.ts +0 -5
  353. package/js/types/GenericProps.d.ts +0 -10
  354. package/js/types/HasAriaDisabled.d.ts +0 -5
  355. package/js/types/HasAriaLabelOrLabelledBy.d.ts +0 -17
  356. package/js/types/HasChecked.d.ts +0 -6
  357. package/js/types/HasClassName.d.ts +0 -6
  358. package/js/types/HasCloseMode.d.ts +0 -7
  359. package/js/types/HasDisabled.d.ts +0 -6
  360. package/js/types/HasPolymorphicAs.d.ts +0 -8
  361. package/js/types/HasRequiredLinkHref.d.ts +0 -3
  362. package/js/types/HasTheme.d.ts +0 -7
  363. package/js/types/HeadingElement.d.ts +0 -2
  364. package/js/types/JSXElement.d.ts +0 -9
  365. package/js/types/KebabCase.d.ts +0 -2
  366. package/js/types/LumxClassName.d.ts +0 -3
  367. package/js/types/ObjectValues.d.ts +0 -5
  368. package/js/types/Point.d.ts +0 -7
  369. package/js/types/Predicate.d.ts +0 -2
  370. package/js/types/RectSize.d.ts +0 -7
  371. package/js/types/Selector.d.ts +0 -11
  372. package/js/types/Spacing.d.ts +0 -1
  373. package/js/types/TextElement.d.ts +0 -3
  374. package/js/types/ValueOf.d.ts +0 -2
  375. package/js/types/jsx/PropsToOverride.d.ts +0 -2
  376. package/js/utils/ClickAway/TestStories.d.ts +0 -36
  377. package/js/utils/ClickAway/index.d.ts +0 -34
  378. package/js/utils/InfiniteScroll/TestStories.d.ts +0 -50
  379. package/js/utils/InfiniteScroll/index.d.ts +0 -21
  380. package/js/utils/InfiniteScroll/setupInfiniteScrollObserver.d.ts +0 -8
  381. package/js/utils/Portal/Stories.d.ts +0 -29
  382. package/js/utils/Portal/Tests.d.ts +0 -25
  383. package/js/utils/Portal/index.d.ts +0 -25
  384. package/js/utils/_internal/color/index.d.ts +0 -1
  385. package/js/utils/_internal/color/resolveColorWithVariants.d.ts +0 -3
  386. package/js/utils/action-area/Stories.d.ts +0 -38
  387. package/js/utils/browser/createSelectorTreeWalker.d.ts +0 -13
  388. package/js/utils/browser/css/combineSize.d.ts +0 -4
  389. package/js/utils/browser/css/resolveCssSize.d.ts +0 -4
  390. package/js/utils/browser/css/types.d.ts +0 -7
  391. package/js/utils/browser/isFocusVisible.d.ts +0 -2
  392. package/js/utils/browser/isHoverNotSupported.d.ts +0 -2
  393. package/js/utils/browser/isPrintableKey.d.ts +0 -7
  394. package/js/utils/browser/lastDescendant.d.ts +0 -2
  395. package/js/utils/browser/querySelectorInclusive.d.ts +0 -11
  396. package/js/utils/browser/trackContainerFocus.d.ts +0 -11
  397. package/js/utils/classNames/action-area/index.js +0 -21
  398. package/js/utils/classNames/bem/block.d.ts +0 -15
  399. package/js/utils/classNames/bem/block.js +0 -26
  400. package/js/utils/classNames/bem/element.d.ts +0 -16
  401. package/js/utils/classNames/bem/element.js +0 -7
  402. package/js/utils/classNames/bem/index.d.ts +0 -18
  403. package/js/utils/classNames/bem/index.js +0 -22
  404. package/js/utils/classNames/bem/modifier.d.ts +0 -13
  405. package/js/utils/classNames/bem/modifier.js +0 -21
  406. package/js/utils/classNames/bem/types.d.ts +0 -11
  407. package/js/utils/classNames/color/index.js +0 -51
  408. package/js/utils/classNames/spacing/index.js +0 -73
  409. package/js/utils/classNames/typography/index.d.ts +0 -6
  410. package/js/utils/classNames/typography/index.js +0 -9
  411. package/js/utils/classNames/visually-hidden/index.d.ts +0 -5
  412. package/js/utils/classNames/visually-hidden/index.js +0 -11
  413. package/js/utils/events/index.d.ts +0 -2
  414. package/js/utils/events/keyboard.js +0 -44
  415. package/js/utils/events/swipe.js +0 -79
  416. package/js/utils/focus/constants.d.ts +0 -10
  417. package/js/utils/focus/getFirstAndLastFocusable.d.ts +0 -13
  418. package/js/utils/focus/getFocusableElements.d.ts +0 -1
  419. package/js/utils/focus/index.d.ts +0 -4
  420. package/js/utils/focus/setupFocusTrap.d.ts +0 -28
  421. package/js/utils/focusNavigation/createActiveItemState.d.ts +0 -26
  422. package/js/utils/focusNavigation/createGridFocusNavigation.d.ts +0 -16
  423. package/js/utils/focusNavigation/createListFocusNavigation.d.ts +0 -15
  424. package/js/utils/focusNavigation/createPendingNavigation.d.ts +0 -7
  425. package/js/utils/focusNavigation/index.d.ts +0 -5
  426. package/js/utils/focusNavigation/setupRovingTabIndex.d.ts +0 -37
  427. package/js/utils/focusNavigation/types.d.ts +0 -68
  428. package/js/utils/function/listenerTower.d.ts +0 -13
  429. package/js/utils/iterable/first.d.ts +0 -2
  430. package/js/utils/locale/getCurrentLocale.d.ts +0 -7
  431. package/js/utils/locale/index.d.ts +0 -1
  432. package/js/utils/select/findOptionById.d.ts +0 -13
  433. package/js/utils/select/getOptionDisplayName.d.ts +0 -8
  434. package/js/utils/select/renderSelectOptions.d.ts +0 -7
  435. package/js/utils/select/toggleSelection.d.ts +0 -23
  436. package/js/utils/select/types.d.ts +0 -243
  437. package/js/utils/selectors/getWithSelector.d.ts +0 -3
  438. package/js/utils/selectors/getWithSelector.js +0 -14
  439. package/js/utils/selectors/groupBySelector.d.ts +0 -6
  440. package/js/utils/selectors/groupBySelector.js +0 -21
  441. package/js/utils/theme/invertTheme.d.ts +0 -3
  442. package/js/utils/time/buildTimeList.d.ts +0 -34
  443. package/js/utils/time/formatTime.d.ts +0 -6
  444. package/js/utils/time/getDateAtTime.d.ts +0 -8
  445. package/js/utils/time/index.d.ts +0 -8
  446. package/js/utils/time/isDateOnTime.d.ts +0 -8
  447. package/js/utils/time/parseTimeInput.d.ts +0 -16
  448. package/js/utils/time/snapTimeToBounds.d.ts +0 -7
  449. package/js/utils/time/timeOfDayMinutes.d.ts +0 -4
  450. package/js/utils/typeahead/index.d.ts +0 -37
  451. package/stories/controls/color.d.ts +0 -15
  452. package/stories/controls/element.d.ts +0 -16
  453. package/stories/controls/focusPoint.d.ts +0 -8
  454. package/stories/controls/icons.d.ts +0 -66
  455. package/stories/controls/image.d.ts +0 -96
  456. package/stories/controls/selectArgType.d.ts +0 -7
  457. package/stories/controls/theme.d.ts +0 -7
  458. package/stories/controls/typography.d.ts +0 -8
  459. package/stories/controls/withUndefined.d.ts +0 -1
  460. package/stories/types.d.ts +0 -67
  461. package/stories/utils/CombinationsTable.d.ts +0 -26
  462. package/stories/utils/ThemingVariablesTable.d.ts +0 -29
  463. package/stories/utils/combinations.d.ts +0 -100
  464. package/stories/utils/concatPath.d.ts +0 -10
  465. package/stories/utils/disableArgTypes.d.ts +0 -7
  466. package/stories/utils/initDemoShadowDOMPortal.d.ts +0 -5
  467. package/stories/utils/lorem.d.ts +0 -7
  468. package/stories/utils/themeVariables.d.ts +0 -39
  469. package/stories/utils/toFlattenProps.d.ts +0 -12
  470. package/stories/utils/withCategory.d.ts +0 -4
  471. package/testing/commonTestsSuiteTL.d.ts +0 -87
  472. package/testing/index.d.ts +0 -1
  473. package/testing/queries.d.ts +0 -4
  474. /package/{css → src/css}/_retro-compat-v2.css +0 -0
  475. /package/{css → src/css}/design-tokens.css +0 -0
  476. /package/{css → src/css}/material.css +0 -0
  477. /package/{scss → src/scss}/_components.scss +0 -0
  478. /package/{scss → src/scss}/_components_classes.scss +0 -0
  479. /package/{scss → src/scss}/_core.scss +0 -0
  480. /package/{scss → src/scss}/_core_classes.scss +0 -0
  481. /package/{scss → src/scss}/_design-tokens.scss +0 -0
  482. /package/{scss → src/scss}/_retro-compat-v2.scss +0 -0
  483. /package/{scss → src/scss}/components/avatar/_index.scss +0 -0
  484. /package/{scss → src/scss}/components/badge/_index.scss +0 -0
  485. /package/{scss → src/scss}/components/button/_index.scss +0 -0
  486. /package/{scss → src/scss}/components/button/_mixins.scss +0 -0
  487. /package/{scss → src/scss}/components/button/_variables.scss +0 -0
  488. /package/{scss → src/scss}/components/checkbox/_index.scss +0 -0
  489. /package/{scss → src/scss}/components/checkbox/_mixins.scss +0 -0
  490. /package/{scss → src/scss}/components/chip/_index.scss +0 -0
  491. /package/{scss → src/scss}/components/chip/_mixins.scss +0 -0
  492. /package/{scss → src/scss}/components/chip/_variables.scss +0 -0
  493. /package/{scss → src/scss}/components/combobox/_index.scss +0 -0
  494. /package/{scss → src/scss}/components/comment-block/_index.scss +0 -0
  495. /package/{scss → src/scss}/components/date-picker/_index.scss +0 -0
  496. /package/{scss → src/scss}/components/dialog/_index.scss +0 -0
  497. /package/{scss → src/scss}/components/dialog/_variables.scss +0 -0
  498. /package/{scss → src/scss}/components/divider/_index.scss +0 -0
  499. /package/{scss → src/scss}/components/divider/_mixins.scss +0 -0
  500. /package/{scss → src/scss}/components/divider/_variables.scss +0 -0
  501. /package/{scss → src/scss}/components/drag-handle/_index.scss +0 -0
  502. /package/{scss → src/scss}/components/dropdown/_index.scss +0 -0
  503. /package/{scss → src/scss}/components/expansion-panel/_index.scss +0 -0
  504. /package/{scss → src/scss}/components/expansion-panel/_variables.scss +0 -0
  505. /package/{scss → src/scss}/components/flag/_index.scss +0 -0
  506. /package/{scss → src/scss}/components/flex-box/_index.scss +0 -0
  507. /package/{scss → src/scss}/components/generic-block/_index.scss +0 -0
  508. /package/{scss → src/scss}/components/grid/_index.scss +0 -0
  509. /package/{scss → src/scss}/components/grid-column/_index.scss +0 -0
  510. /package/{scss → src/scss}/components/icon/_index.scss +0 -0
  511. /package/{scss → src/scss}/components/icon/_mixins.scss +0 -0
  512. /package/{scss → src/scss}/components/icon/_variables.scss +0 -0
  513. /package/{scss → src/scss}/components/image-block/_index.scss +0 -0
  514. /package/{scss → src/scss}/components/image-lightbox/_index.scss +0 -0
  515. /package/{scss → src/scss}/components/inline-list/_index.scss +0 -0
  516. /package/{scss → src/scss}/components/input-helper/_index.scss +0 -0
  517. /package/{scss → src/scss}/components/input-helper/_mixins.scss +0 -0
  518. /package/{scss → src/scss}/components/input-helper/_variables.scss +0 -0
  519. /package/{scss → src/scss}/components/input-label/_index.scss +0 -0
  520. /package/{scss → src/scss}/components/input-label/_mixins.scss +0 -0
  521. /package/{scss → src/scss}/components/lightbox/_index.scss +0 -0
  522. /package/{scss → src/scss}/components/lightbox/_variables.scss +0 -0
  523. /package/{scss → src/scss}/components/link/_index.scss +0 -0
  524. /package/{scss → src/scss}/components/link/_mixins.scss +0 -0
  525. /package/{scss → src/scss}/components/link-preview/_index.scss +0 -0
  526. /package/{scss → src/scss}/components/list/_index.scss +0 -0
  527. /package/{scss → src/scss}/components/list/_mixins.scss +0 -0
  528. /package/{scss → src/scss}/components/list/_variables.scss +0 -0
  529. /package/{scss → src/scss}/components/menu/_index.scss +0 -0
  530. /package/{scss → src/scss}/components/message/_index.scss +0 -0
  531. /package/{scss → src/scss}/components/mosaic/_index.scss +0 -0
  532. /package/{scss → src/scss}/components/navigation/_index.scss +0 -0
  533. /package/{scss → src/scss}/components/navigation/_mixins.scss +0 -0
  534. /package/{scss → src/scss}/components/notification/_index.scss +0 -0
  535. /package/{scss → src/scss}/components/notification/_variables.scss +0 -0
  536. /package/{scss → src/scss}/components/notification-block/_index.scss +0 -0
  537. /package/{scss → src/scss}/components/popover/_index.scss +0 -0
  538. /package/{scss → src/scss}/components/popover/_variables.scss +0 -0
  539. /package/{scss → src/scss}/components/post-block/_index.scss +0 -0
  540. /package/{scss → src/scss}/components/progress/_index.scss +0 -0
  541. /package/{scss → src/scss}/components/progress/_variables.scss +0 -0
  542. /package/{scss → src/scss}/components/progress-tracker/_index.scss +0 -0
  543. /package/{scss → src/scss}/components/progress-tracker/_variables.scss +0 -0
  544. /package/{scss → src/scss}/components/radio-button/_index.scss +0 -0
  545. /package/{scss → src/scss}/components/radio-button/_mixins.scss +0 -0
  546. /package/{scss → src/scss}/components/select/_index.scss +0 -0
  547. /package/{scss → src/scss}/components/select/_mixins.scss +0 -0
  548. /package/{scss → src/scss}/components/side-navigation/_index.scss +0 -0
  549. /package/{scss → src/scss}/components/side-navigation/_mixins.scss +0 -0
  550. /package/{scss → src/scss}/components/skeleton/_index.scss +0 -0
  551. /package/{scss → src/scss}/components/skeleton/_mixins.scss +0 -0
  552. /package/{scss → src/scss}/components/slider/_index.scss +0 -0
  553. /package/{scss → src/scss}/components/slideshow/_index.scss +0 -0
  554. /package/{scss → src/scss}/components/slideshow/_variables.scss +0 -0
  555. /package/{scss → src/scss}/components/switch/_index.scss +0 -0
  556. /package/{scss → src/scss}/components/switch/_mixins.scss +0 -0
  557. /package/{scss → src/scss}/components/table/_index.scss +0 -0
  558. /package/{scss → src/scss}/components/table/_mixins.scss +0 -0
  559. /package/{scss → src/scss}/components/tabs/_index.scss +0 -0
  560. /package/{scss → src/scss}/components/tabs/_mixins.scss +0 -0
  561. /package/{scss → src/scss}/components/text/_index.scss +0 -0
  562. /package/{scss → src/scss}/components/text-field/_index.scss +0 -0
  563. /package/{scss → src/scss}/components/text-field/_mixins.scss +0 -0
  564. /package/{scss → src/scss}/components/text-field/_variables.scss +0 -0
  565. /package/{scss → src/scss}/components/thumbnail/_index.scss +0 -0
  566. /package/{scss → src/scss}/components/thumbnail/_variables.scss +0 -0
  567. /package/{scss → src/scss}/components/toolbar/_index.scss +0 -0
  568. /package/{scss → src/scss}/components/toolbar/_variables.scss +0 -0
  569. /package/{scss → src/scss}/components/tooltip/_index.scss +0 -0
  570. /package/{scss → src/scss}/components/tooltip/_variables.scss +0 -0
  571. /package/{scss → src/scss}/components/uploader/_index.scss +0 -0
  572. /package/{scss → src/scss}/components/user-block/_index.scss +0 -0
  573. /package/{scss → src/scss}/components-and-utils.scss +0 -0
  574. /package/{scss → src/scss}/core/_normalize.scss +0 -0
  575. /package/{scss → src/scss}/core/action-area/_index.scss +0 -0
  576. /package/{scss → src/scss}/core/base/_functions.scss +0 -0
  577. /package/{scss → src/scss}/core/base/_helpers.scss +0 -0
  578. /package/{scss → src/scss}/core/base/_index.scss +0 -0
  579. /package/{scss → src/scss}/core/base/_normalize.scss +0 -0
  580. /package/{scss → src/scss}/core/base/_variables.scss +0 -0
  581. /package/{scss → src/scss}/core/color/_functions.scss +0 -0
  582. /package/{scss → src/scss}/core/color/_index.scss +0 -0
  583. /package/{scss → src/scss}/core/color/_variables.scss +0 -0
  584. /package/{scss → src/scss}/core/elevation/_mixins.scss +0 -0
  585. /package/{scss → src/scss}/core/elevation/_variables.scss +0 -0
  586. /package/{scss → src/scss}/core/size/_variables.scss +0 -0
  587. /package/{scss → src/scss}/core/spacing/_index.scss +0 -0
  588. /package/{scss → src/scss}/core/spacing/_variables.scss +0 -0
  589. /package/{scss → src/scss}/core/state/_mixins.scss +0 -0
  590. /package/{scss → src/scss}/core/state/_variables.scss +0 -0
  591. /package/{scss → src/scss}/core/typography/_index.scss +0 -0
  592. /package/{scss → src/scss}/core/typography/_mixins.scss +0 -0
  593. /package/{scss → src/scss}/core/typography/_variables.scss +0 -0
  594. /package/{scss → src/scss}/lumx.scss +0 -0
@@ -1,167 +0,0 @@
1
- import type { SetupStoriesOptions } from '@lumx/core/stories/types';
2
- import type { ComboboxNamespace } from './Tests';
3
- /**
4
- * Setup Combobox demo stories for a specific framework (React or Vue).
5
- * Framework-specific components and hooks are injected via options.
6
- */
7
- export declare function setup({ components: { Combobox, IconButton, Avatar, SkeletonCircle }, decorators: { withValueOnChange }, }: SetupStoriesOptions<{
8
- components: {
9
- Combobox: ComboboxNamespace;
10
- IconButton: any;
11
- Avatar: any;
12
- SkeletonCircle: any;
13
- };
14
- decorators: 'withValueOnChange';
15
- }>): {
16
- meta: {
17
- component: any;
18
- play(): Promise<void>;
19
- };
20
- ComboboxWithSubcomponents: {
21
- args: {
22
- value: string;
23
- };
24
- decorators: ((story: any, context: any) => any)[];
25
- render: ({ value, onChange }: {
26
- value: string;
27
- onChange: (v: string) => void;
28
- }) => import("react").JSX.Element;
29
- };
30
- ComboboxWithSection: {
31
- args: {
32
- value: string;
33
- };
34
- decorators: ((story: any, context: any) => any)[];
35
- render: ({ value, onChange }: {
36
- value: string;
37
- onChange: (v: string) => void;
38
- }) => import("react").JSX.Element;
39
- };
40
- ComboboxWithFilteredSections: {
41
- args: {
42
- value: string;
43
- };
44
- decorators: ((story: any, context: any) => any)[];
45
- render: ({ value, onChange }: {
46
- value: string;
47
- onChange: (v: string) => void;
48
- }) => import("react").JSX.Element;
49
- };
50
- ComboboxWithButton: {
51
- args: {
52
- value: string;
53
- };
54
- decorators: ((story: any, context: any) => any)[];
55
- render: ({ value, onSelect }: {
56
- value: string;
57
- onSelect: (option: {
58
- value: string;
59
- }) => void;
60
- }) => import("react").JSX.Element;
61
- };
62
- ComboboxWithLinkOptions: {
63
- args: {
64
- value: string;
65
- };
66
- decorators: ((story: any, context: any) => any)[];
67
- render: ({ value, onChange }: {
68
- value: string;
69
- onChange: (v: string) => void;
70
- }) => import("react").JSX.Element;
71
- };
72
- ComboboxWithOptionMoreInfo: {
73
- args: {
74
- value: string;
75
- };
76
- decorators: ((story: any, context: any) => any)[];
77
- render: ({ value, onChange }: {
78
- value: string;
79
- onChange: (v: string) => void;
80
- }) => import("react").JSX.Element;
81
- };
82
- GridComboboxWithInput: {
83
- args: {
84
- value: string;
85
- };
86
- argTypes: {
87
- onEdit: {
88
- action: string;
89
- };
90
- onDelete: {
91
- action: string;
92
- };
93
- };
94
- decorators: ((story: any, context: any) => any)[];
95
- render: ({ value, onChange, onEdit, onDelete, }: {
96
- value: string;
97
- onChange: (v: string) => void;
98
- onEdit: (fruit: string) => void;
99
- onDelete: (fruit: string) => void;
100
- }) => import("react").JSX.Element;
101
- };
102
- GridComboboxWithButton: {
103
- args: {
104
- value: string;
105
- };
106
- argTypes: {
107
- onDelete: {
108
- action: string;
109
- };
110
- };
111
- decorators: ((story: any, context: any) => any)[];
112
- render: ({ value, onSelect, onDelete, }: {
113
- value: string;
114
- onSelect: (option: {
115
- value: string;
116
- }) => void;
117
- onDelete: (fruit: string) => void;
118
- }) => import("react").JSX.Element;
119
- };
120
- ComboboxWithEmptyState: {
121
- args: {
122
- value: string;
123
- };
124
- decorators: ((story: any, context: any) => any)[];
125
- play({ canvas }: any): Promise<void>;
126
- render: ({ value, onChange }: {
127
- value: string;
128
- onChange: (v: string) => void;
129
- }) => import("react").JSX.Element;
130
- };
131
- ComboboxWithErrorState: {
132
- render: () => import("react").JSX.Element;
133
- };
134
- ComboboxWithLoading: {
135
- render: () => import("react").JSX.Element;
136
- };
137
- ComboboxWithLoadMore: {
138
- args: {
139
- value: string;
140
- };
141
- decorators: ((story: any, context: any) => any)[];
142
- render: ({ value, onChange }: {
143
- value: string;
144
- onChange: (v: string) => void;
145
- }) => import("react").JSX.Element;
146
- };
147
- ComboboxWithSectionLoading: {
148
- args: {
149
- value: string;
150
- };
151
- decorators: ((story: any, context: any) => any)[];
152
- render: ({ value, onChange }: {
153
- value: string;
154
- onChange: (v: string) => void;
155
- }) => import("react").JSX.Element;
156
- };
157
- ComboboxWithAvatarLoading: {
158
- args: {
159
- value: string;
160
- };
161
- decorators: ((story: any, context: any) => any)[];
162
- render: ({ value, onChange }: {
163
- value: string;
164
- onChange: (v: string) => void;
165
- }) => import("react").JSX.Element;
166
- };
167
- };
@@ -1,186 +0,0 @@
1
- import type { SetupStoriesOptions } from '@lumx/core/stories/types';
2
- import { type ComboboxNamespace } from './Tests';
3
- export declare function setup({ components: { Combobox, IconButton, Button }, decorators: { withValueOnChange }, }: SetupStoriesOptions<{
4
- components: {
5
- Combobox: ComboboxNamespace;
6
- IconButton: any;
7
- Button: any;
8
- };
9
- decorators: 'withValueOnChange';
10
- }>): {
11
- meta: {
12
- component: any;
13
- tags: string[];
14
- parameters: {
15
- chromatic: {
16
- disable: boolean;
17
- };
18
- };
19
- };
20
- MouseHoverDoesNotActivateOption: {
21
- play: ({ canvasElement }: any) => Promise<void>;
22
- args: {
23
- value: string;
24
- };
25
- decorators: ((story: any, context: any) => any)[];
26
- render: ({ value, onChange, onSelect, }: {
27
- value: string;
28
- onChange: (v: string) => void;
29
- onSelect?: (option: {
30
- value: string;
31
- }) => boolean | void;
32
- }) => import("react").JSX.Element;
33
- };
34
- ClickAwayClosesPopup: {
35
- render: (args: any) => import("react").JSX.Element;
36
- play: ({ canvasElement }: any) => Promise<void>;
37
- args: {
38
- value: string;
39
- };
40
- decorators: ((story: any, context: any) => any)[];
41
- };
42
- MouseHoverThenKeyboardNav: {
43
- play: ({ canvasElement }: any) => Promise<void>;
44
- args: {
45
- value: string;
46
- };
47
- decorators: ((story: any, context: any) => any)[];
48
- render: ({ value, onChange, onSelect, }: {
49
- value: string;
50
- onChange: (v: string) => void;
51
- onSelect?: (option: {
52
- value: string;
53
- }) => boolean | void;
54
- }) => import("react").JSX.Element;
55
- };
56
- OptionMoreInfoKeyboardHighlight: {
57
- play: ({ canvasElement }: any) => Promise<void>;
58
- args: {
59
- value: string;
60
- };
61
- argTypes: {
62
- onToggle: {
63
- action: string;
64
- };
65
- };
66
- decorators: ((story: any, context: any) => any)[];
67
- render: ({ value, onChange, onToggle, }: {
68
- value: string;
69
- onChange: (v: string) => void;
70
- onToggle?: (isOpen: boolean) => void;
71
- }) => import("react").JSX.Element;
72
- };
73
- OptionMoreInfoMouseHover: {
74
- play: ({ canvasElement }: any) => Promise<void>;
75
- args: {
76
- value: string;
77
- };
78
- argTypes: {
79
- onToggle: {
80
- action: string;
81
- };
82
- };
83
- decorators: ((story: any, context: any) => any)[];
84
- render: ({ value, onChange, onToggle, }: {
85
- value: string;
86
- onChange: (v: string) => void;
87
- onToggle?: (isOpen: boolean) => void;
88
- }) => import("react").JSX.Element;
89
- };
90
- OptionMoreInfoAriaDescribedBy: {
91
- play: ({ canvasElement }: any) => Promise<void>;
92
- args: {
93
- value: string;
94
- };
95
- argTypes: {
96
- onToggle: {
97
- action: string;
98
- };
99
- };
100
- decorators: ((story: any, context: any) => any)[];
101
- render: ({ value, onChange, onToggle, }: {
102
- value: string;
103
- onChange: (v: string) => void;
104
- onToggle?: (isOpen: boolean) => void;
105
- }) => import("react").JSX.Element;
106
- };
107
- ButtonTypeaheadFromClosed: {
108
- play: ({ canvasElement }: any) => Promise<void>;
109
- args: {
110
- value: string;
111
- };
112
- decorators: ((story: any, context: any) => any)[];
113
- render: ({ value, onSelect }: {
114
- value: string;
115
- onSelect: (option: {
116
- value: string;
117
- }) => boolean | void;
118
- }) => import("react").JSX.Element;
119
- };
120
- ButtonTypeaheadWhileOpen: {
121
- play: ({ canvasElement }: any) => Promise<void>;
122
- args: {
123
- value: string;
124
- };
125
- decorators: ((story: any, context: any) => any)[];
126
- render: ({ value, onSelect }: {
127
- value: string;
128
- onSelect: (option: {
129
- value: string;
130
- }) => boolean | void;
131
- }) => import("react").JSX.Element;
132
- };
133
- ButtonEndFromClosed: {
134
- play: ({ canvasElement }: any) => Promise<void>;
135
- args: {
136
- value: string;
137
- };
138
- decorators: ((story: any, context: any) => any)[];
139
- render: ({ value, onSelect }: {
140
- value: string;
141
- onSelect: (option: {
142
- value: string;
143
- }) => boolean | void;
144
- }) => import("react").JSX.Element;
145
- };
146
- ButtonHomeFromClosed: {
147
- play: ({ canvasElement }: any) => Promise<void>;
148
- args: {
149
- value: string;
150
- };
151
- decorators: ((story: any, context: any) => any)[];
152
- render: ({ value, onSelect }: {
153
- value: string;
154
- onSelect: (option: {
155
- value: string;
156
- }) => boolean | void;
157
- }) => import("react").JSX.Element;
158
- };
159
- ButtonArrowDownFromClosed: {
160
- play: ({ canvasElement }: any) => Promise<void>;
161
- args: {
162
- value: string;
163
- };
164
- decorators: ((story: any, context: any) => any)[];
165
- render: ({ value, onSelect }: {
166
- value: string;
167
- onSelect: (option: {
168
- value: string;
169
- }) => boolean | void;
170
- }) => import("react").JSX.Element;
171
- };
172
- ClearAfterSelect: {
173
- play: ({ canvasElement }: any) => Promise<void>;
174
- args: {
175
- value: string;
176
- };
177
- decorators: ((story: any, context: any) => any)[];
178
- render: ({ value, onChange, onSelect, }: {
179
- value: string;
180
- onChange: (v: string) => void;
181
- onSelect?: (option: {
182
- value: string;
183
- }) => boolean | void;
184
- }) => import("react").JSX.Element;
185
- };
186
- };
@@ -1,169 +0,0 @@
1
- /** Combobox compound component namespace type. */
2
- export interface ComboboxNamespace {
3
- Provider: any;
4
- Input: any;
5
- Button: any;
6
- List: any;
7
- Option: any;
8
- OptionAction: any;
9
- OptionMoreInfo: any;
10
- OptionSkeleton: any;
11
- Popover: any;
12
- Section: any;
13
- State: any;
14
- }
15
- type RenderResult = {
16
- unmount: () => void;
17
- container: HTMLElement;
18
- };
19
- /**
20
- * Options to set up the combobox test suite.
21
- * Injected by the framework-specific test file (React or Vue).
22
- */
23
- export interface ComboboxTestSetup {
24
- components: {
25
- Combobox: ComboboxNamespace;
26
- IconButton: any;
27
- Button: any;
28
- };
29
- /**
30
- * Render a template with controlled state management.
31
- * Mirrors the withValueOnChange Storybook decorator.
32
- *
33
- * @param template JSX render function receiving `{ value, onChange/onSelect, ... }`.
34
- * @param initialArgs Initial props (value, spies, etc.).
35
- * @param options State wiring config (which prop manages state, how to extract value).
36
- */
37
- renderWithState: (template: (props: any) => any, initialArgs?: Record<string, any>, options?: {
38
- onChangeProp?: string;
39
- valueExtract?: (v: any) => any;
40
- }) => RenderResult;
41
- }
42
- export declare function getActiveOption(): HTMLElement | null;
43
- /**
44
- * Create framework-agnostic JSX templates for combobox test fixtures.
45
- * Exported so TestStories.tsx can reuse the same templates for browser-only tests.
46
- */
47
- export declare function createTemplates(Combobox: ComboboxNamespace, IconButton: any): {
48
- inputTemplate: ({ value, onChange, onSelect, }: {
49
- value: string;
50
- onChange: (v: string) => void;
51
- onSelect?: (option: {
52
- value: string;
53
- }) => boolean | void;
54
- }) => import("react").JSX.Element;
55
- manualFilterTemplate: ({ value, onChange, onSelect, }: {
56
- value: string;
57
- onChange: (v: string) => void;
58
- onSelect?: (option: {
59
- value: string;
60
- }) => boolean | void;
61
- }) => import("react").JSX.Element;
62
- filterOffTemplate: ({ value, onChange, onSelect, }: {
63
- value: string;
64
- onChange: (v: string) => void;
65
- onSelect?: (option: {
66
- value: string;
67
- }) => boolean | void;
68
- }) => import("react").JSX.Element;
69
- openOnFocusTemplate: ({ value, onChange, onSelect, }: {
70
- value: string;
71
- onChange: (v: string) => void;
72
- onSelect?: (option: {
73
- value: string;
74
- }) => boolean | void;
75
- }) => import("react").JSX.Element;
76
- noOpenOnFocusTemplate: ({ value, onChange, onSelect, }: {
77
- value: string;
78
- onChange: (v: string) => void;
79
- onSelect?: (option: {
80
- value: string;
81
- }) => boolean | void;
82
- }) => import("react").JSX.Element;
83
- buttonTemplate: ({ value, onSelect }: {
84
- value: string;
85
- onSelect: (option: {
86
- value: string;
87
- }) => boolean | void;
88
- }) => import("react").JSX.Element;
89
- showLabelButtonTemplate: ({ value, onSelect, }: {
90
- value: string;
91
- onSelect: (option: {
92
- value: string;
93
- }) => boolean | void;
94
- }) => import("react").JSX.Element;
95
- showTooltipButtonTemplate: ({ value, onSelect, }: {
96
- value: string;
97
- onSelect: (option: {
98
- value: string;
99
- }) => boolean | void;
100
- }) => import("react").JSX.Element;
101
- noValueButtonTemplate: ({ value, onSelect, }: {
102
- value: string;
103
- onSelect: (option: {
104
- value: string;
105
- }) => boolean | void;
106
- }) => import("react").JSX.Element;
107
- selectedButtonTemplate: ({ value, onSelect, }: {
108
- value: string;
109
- onSelect: (option: {
110
- value: string;
111
- }) => boolean | void;
112
- }) => import("react").JSX.Element;
113
- disabledInputTemplate: ({ value, onChange }: {
114
- value: string;
115
- onChange: (v: string) => void;
116
- }) => import("react").JSX.Element;
117
- disabledButtonTemplate: ({ value, onSelect, }: {
118
- value: string;
119
- onSelect: (option: {
120
- value: string;
121
- }) => boolean | void;
122
- }) => import("react").JSX.Element;
123
- gridInputTemplate: ({ value, onChange, onSelect, onDelete, onEdit, }: {
124
- value: string;
125
- onChange: (v: string) => void;
126
- onSelect?: (option: {
127
- value: string;
128
- }) => boolean | void;
129
- onDelete?: (...args: unknown[]) => void;
130
- onEdit?: (...args: unknown[]) => void;
131
- }) => import("react").JSX.Element;
132
- gridButtonTemplate: ({ value, onSelect, onDelete, }: {
133
- value: string;
134
- onSelect: (option: {
135
- value: string;
136
- }) => boolean | void;
137
- onDelete?: (...args: unknown[]) => void;
138
- }) => import("react").JSX.Element;
139
- emptyStateTemplate: ({ value, onChange }: {
140
- value: string;
141
- onChange: (v: string) => void;
142
- }) => import("react").JSX.Element;
143
- nbOptionMessageTemplate: ({ value, onChange }: {
144
- value: string;
145
- onChange: (v: string) => void;
146
- }) => import("react").JSX.Element;
147
- errorStateTemplate: ({ value, onChange }: {
148
- value: string;
149
- onChange: (v: string) => void;
150
- }) => import("react").JSX.Element;
151
- loadingTemplate: ({ value, onChange }: {
152
- value: string;
153
- onChange: (v: string) => void;
154
- }) => import("react").JSX.Element;
155
- loadMoreTemplate: ({ value, onChange }: {
156
- value: string;
157
- onChange: (v: string) => void;
158
- }) => import("react").JSX.Element;
159
- sectionLoadingTemplate: ({ value, onChange }: {
160
- value: string;
161
- onChange: (v: string) => void;
162
- }) => import("react").JSX.Element;
163
- descriptionTemplate: ({ value, onChange }: {
164
- value: string;
165
- onChange: (v: string) => void;
166
- }) => import("react").JSX.Element;
167
- };
168
- export default function comboboxTests({ components: { Combobox, IconButton }, renderWithState }: ComboboxTestSetup): void;
169
- export {};
@@ -1,2 +0,0 @@
1
- import { VHSize } from '../../utils/browser/css/types';
2
- export declare const DEFAULT_COMBOBOX_POPOVER_MAX_HEIGHT: VHSize;
@@ -1,25 +0,0 @@
1
- export { setupComboboxInput } from './setupComboboxInput';
2
- export { setupComboboxButton } from './setupComboboxButton';
3
- export type { ComboboxCallbacks, ComboboxHandle } from './types';
4
- export { ComboboxList } from './ComboboxList';
5
- export type { ComboboxListProps, ComboboxListType } from './ComboboxList';
6
- export { ComboboxPopover } from './ComboboxPopover';
7
- export type { ComboboxPopoverProps, ComboboxPopoverComponents } from './ComboboxPopover';
8
- export { ComboboxOption } from './ComboboxOption';
9
- export type { ComboboxOptionProps, ComboboxOptionPropsToOverride } from './ComboboxOption';
10
- export { ComboboxOptionAction } from './ComboboxOptionAction';
11
- export type { ComboboxOptionActionProps } from './ComboboxOptionAction';
12
- export { ComboboxOptionSkeleton } from './ComboboxOptionSkeleton';
13
- export type { ComboboxOptionSkeletonProps, ComboboxOptionSkeletonPropsToOverride } from './ComboboxOptionSkeleton';
14
- export { ComboboxOptionMoreInfo } from './ComboboxOptionMoreInfo';
15
- export type { ComboboxOptionMoreInfoProps, ComboboxOptionMoreInfoPropsToOverride, ComboboxOptionMoreInfoComponents, } from './ComboboxOptionMoreInfo';
16
- export { ComboboxButton } from './ComboboxButton';
17
- export type { ComboboxButtonProps, ComboboxButtonComponents, ComboboxButtonLabelDisplayMode } from './ComboboxButton';
18
- export { ComboboxInput } from './ComboboxInput';
19
- export type { ComboboxInputProps, ComboboxInputComponents } from './ComboboxInput';
20
- export { ComboboxSection } from './ComboboxSection';
21
- export type { ComboboxSectionProps, ComboboxSectionPropsToOverride, ComboboxSectionComponents, } from './ComboboxSection';
22
- export { ComboboxState } from './ComboboxState';
23
- export type { ComboboxStateProps } from './ComboboxState';
24
- export { subscribeComboboxState } from './subscribeComboboxState';
25
- export type { ComboboxStateSetters } from './subscribeComboboxState';
@@ -1,24 +0,0 @@
1
- import type { ComboboxCallbacks, ComboboxHandle, OnTriggerAttach } from './types';
2
- /** Options for configuring the shared combobox behavior. */
3
- interface ComboboxOptions {
4
- /** When true, ArrowDown/ArrowUp wrap around in listbox mode (input pattern). Default: false. */
5
- wrapNavigation?: boolean;
6
- }
7
- /**
8
- * Set up combobox behavior (WAI-ARIA combobox pattern) on a trigger + listbox pair.
9
- *
10
- * The trigger and listbox are registered separately via the returned handle,
11
- * allowing framework components to register them on mount. The behavior is
12
- * fully attached once both are registered.
13
- *
14
- * @see https://www.w3.org/WAI/ARIA/apg/patterns/combobox/
15
- *
16
- * @param callbacks Callbacks invoked on combobox events (e.g. option selection).
17
- * @param options Options for configuring the shared combobox behavior.
18
- * @param onTriggerAttach Optional callback invoked when the trigger is registered and the signal is ready.
19
- * Used by mode-specific wrappers (setupComboboxInput/Button) to automatically
20
- * attach the appropriate controller.
21
- * @returns A ComboboxHandle for interacting with the combobox.
22
- */
23
- export declare function setupCombobox(callbacks: ComboboxCallbacks, options?: ComboboxOptions, onTriggerAttach?: OnTriggerAttach): ComboboxHandle;
24
- export {};
@@ -1,16 +0,0 @@
1
- import type { ComboboxCallbacks, ComboboxHandle } from './types';
2
- /**
3
- * Set up a combobox with a button trigger (select-only pattern).
4
- *
5
- * Creates a full combobox handle with the button-mode controller automatically
6
- * wired in and the trigger registered. The consumer only needs to call
7
- * `handle.registerListbox(listbox)`.
8
- *
9
- * Handles: Space (select/open), Home/End (listbox navigation),
10
- * printable characters (typeahead), and click (toggle).
11
- *
12
- * @param button The button element to use as the combobox trigger.
13
- * @param callbacks Callbacks for select and open/close events.
14
- * @returns A ComboboxHandle for interacting with the combobox.
15
- */
16
- export declare function setupComboboxButton(button: HTMLButtonElement, callbacks: ComboboxCallbacks): ComboboxHandle;
@@ -1,24 +0,0 @@
1
- import type { ComboboxCallbacks, ComboboxHandle, ComboboxInputOptions } from './types';
2
- /** Options for configuring the input-mode combobox controller. */
3
- export interface SetupComboboxInputOptions extends ComboboxCallbacks, ComboboxInputOptions {
4
- /**
5
- * Called synchronously on every user input event (typing, paste, delete…)
6
- * (Use this in framework wrappers that maintain controlled input state, like React)
7
- */
8
- onInput?(value: string): void;
9
- }
10
- /**
11
- * Set up a combobox with an input trigger (autocomplete/filter pattern).
12
- *
13
- * Creates a full combobox handle with the input-mode controller automatically
14
- * wired in and the trigger registered. The consumer only needs to call
15
- * `handle.registerListbox(listbox)`.
16
- *
17
- * Handles: Home/End (text cursor), ArrowLeft/Right (clear active descendant),
18
- * filtering (on input and on open), and focus behavior.
19
- *
20
- * @param input The input element to use as the combobox trigger.
21
- * @param options Options and callbacks for configuring the input-mode controller.
22
- * @returns A ComboboxHandle for interacting with the combobox.
23
- */
24
- export declare function setupComboboxInput(input: HTMLInputElement, options: SetupComboboxInputOptions): ComboboxHandle;
@@ -1,23 +0,0 @@
1
- import { type FocusNavigationController } from '../../utils/focusNavigation';
2
- import type { ComboboxEventMap, ComboboxHandle } from './types';
3
- /**
4
- * Set up focus navigation and delegated event listeners on a listbox element.
5
- *
6
- * This merges two concerns:
7
- * 1. Creating the appropriate {@link FocusNavigationController} (grid or list mode)
8
- * with callbacks that manage `aria-activedescendant` and visual focus indicators.
9
- * 2. Attaching delegated `click` and `mousedown` listeners to the listbox for
10
- * option selection and blur prevention.
11
- *
12
- * The caller is responsible for guarding against duplicate calls (i.e., checking
13
- * that a focus navigation controller does not already exist before calling)
14
- * and ensuring `handle.trigger` and `handle.listbox` are non-null.
15
- *
16
- * @param handle The combobox handle (provides trigger, listbox, select, etc.).
17
- * @param signal Abort signal used to clean up all attached listeners.
18
- * @param notify Notify subscribers of combobox events.
19
- * @returns The created focus navigation controller.
20
- */
21
- export declare function setupListbox(handle: ComboboxHandle, signal: AbortSignal, notify: <K extends keyof ComboboxEventMap>(event: K, value: ComboboxEventMap[K]) => void, options?: {
22
- wrapNavigation?: boolean;
23
- }): FocusNavigationController;
@@ -1,23 +0,0 @@
1
- import type { ComboboxHandle } from './types';
2
- /** Setters invoked by `subscribeComboboxState` when handle events fire. */
3
- export interface ComboboxStateSetters {
4
- /** Called immediately with the current loading state, then on every `loadingChange` event. */
5
- setIsLoading: (value: boolean) => void;
6
- /** Called on every `loadingAnnouncement` event (debounced 500ms after skeletons mount). */
7
- setShouldAnnounce: (value: boolean) => void;
8
- /** Called with `true` after a short delay when the combobox opens, and `false` immediately on close. */
9
- setIsOpen: (value: boolean) => void;
10
- }
11
- /**
12
- * Subscribe to the combobox handle events needed by `ComboboxState`.
13
- *
14
- * Manages three subscriptions:
15
- * - `loadingChange` → `setIsLoading` (+ synchronous initial read of `handle.isLoading`)
16
- * - `loadingAnnouncement` → `setShouldAnnounce`
17
- * - `open` → `setIsOpen` (deferred by {@link OPEN_ANNOUNCEMENT_DELAY}ms on open, immediate on close)
18
- *
19
- * @param handle The combobox handle to subscribe to.
20
- * @param setters Framework-specific state setters.
21
- * @returns A cleanup function that unsubscribes all events and clears timers.
22
- */
23
- export declare function subscribeComboboxState(handle: ComboboxHandle, setters: ComboboxStateSetters): () => void;