@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,57 +0,0 @@
1
- import type { CommonRef, HasClassName, HasTheme, LumxClassName } from '../../types';
2
- import type { ComboboxCallbacks, ComboboxInputOptions } from './types';
3
- /**
4
- * Defines the props for the core ComboboxInput template.
5
- */
6
- export interface ComboboxInputProps extends HasClassName, HasTheme, ComboboxCallbacks, ComboboxInputOptions {
7
- /** The ID of the listbox element (for aria-controls). */
8
- listboxId?: string;
9
- /** Whether the combobox is open. */
10
- isOpen?: boolean;
11
- /** ref to the root element. */
12
- ref?: CommonRef;
13
- /** Reference to the input element. */
14
- inputRef?: CommonRef;
15
- /** Reference to the text field wrapper element. */
16
- textFieldRef?: CommonRef;
17
- /** Props for the toggle button (when provided, a chevron button is rendered). */
18
- toggleButtonProps?: Record<string, any>;
19
- /** Toggle callback for the chevron button. */
20
- handleToggle?(): void;
21
- }
22
- /**
23
- * Props from the core `ComboboxInputProps` that framework wrappers (React/Vue)
24
- * are expected to provide internally or re-type with framework-specific equivalents
25
- * (e.g. React refs, framework-specific button props). Wrappers should omit these
26
- * keys when exposing the core props to consumers.
27
- */
28
- export type ComboboxInputPropsToOverride = 'listboxId' | 'isOpen' | 'inputRef' | 'textFieldRef' | 'toggleButtonProps' | 'handleToggle';
29
- /**
30
- * Injected framework-specific components for ComboboxInput rendering.
31
- */
32
- export interface ComboboxInputComponents {
33
- /** TextField component (framework-specific, e.g. React TextField with controlled input). */
34
- TextField: any;
35
- /** IconButton component (framework-specific, e.g. React IconButton with theme/disabled). */
36
- IconButton: any;
37
- }
38
- /**
39
- * Component display name.
40
- */
41
- export declare const COMPONENT_NAME = "ComboboxInput";
42
- /**
43
- * Component default class name and class prefix.
44
- */
45
- export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
46
- /**
47
- * ComboboxInput core template.
48
- * Renders a TextField with combobox ARIA attributes and an optional toggle button.
49
- *
50
- * Framework-specific components (TextField, IconButton) are passed as a second argument
51
- * by the React/Vue wrappers.
52
- *
53
- * @param props Component props.
54
- * @param components Injected framework-specific components.
55
- * @return JSX element.
56
- */
57
- export declare const ComboboxInput: (props: ComboboxInputProps, { TextField, IconButton }: ComboboxInputComponents) => import("react").JSX.Element;
@@ -1,47 +0,0 @@
1
- import type { CommonRef, HasClassName, JSXElement, LumxClassName } from '../../types';
2
- /**
3
- * Popup type for the combobox listbox.
4
- * - `'listbox'`: Standard listbox with `role="listbox"` and `role="option"` items.
5
- * - `'grid'`: Grid mode with `role="grid"` and `role="gridcell"` items, enabling 2D keyboard navigation.
6
- */
7
- export type ComboboxListType = 'listbox' | 'grid';
8
- /**
9
- * Defines the props for the core ComboboxList template.
10
- */
11
- export interface ComboboxListProps extends HasClassName {
12
- /** Accessible label for the listbox (required for accessibility). */
13
- 'aria-label'?: string;
14
- /**
15
- * Indicates that the listbox content is incomplete (loading).
16
- * Set to `true` when skeleton placeholders are present and no real options have loaded yet.
17
- * Omit (or set to `undefined`) when not loading — the attribute is not rendered as `"false"`.
18
- */
19
- 'aria-busy'?: boolean;
20
- /** Content (should be ComboboxOption elements). */
21
- children?: JSXElement;
22
- /** The ID of the listbox element. */
23
- id?: string;
24
- /** ref to the root element */
25
- ref?: CommonRef;
26
- /**
27
- * The popup type. Set to "grid" when options have action buttons.
28
- * @default 'listbox'
29
- */
30
- type?: ComboboxListType;
31
- }
32
- /**
33
- * Component display name.
34
- */
35
- export declare const COMPONENT_NAME = "ComboboxList";
36
- /**
37
- * Component default class name and class prefix.
38
- */
39
- export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
40
- /**
41
- * ComboboxList core template.
42
- * Renders a List with combobox-specific ARIA attributes and styling.
43
- *
44
- * @param props Component props.
45
- * @return JSX element.
46
- */
47
- export declare const ComboboxList: (props: ComboboxListProps) => import("react").JSX.Element;
@@ -1,74 +0,0 @@
1
- import type { CommonRef, HasClassName, JSXElement, LumxClassName } from '../../types';
2
- /**
3
- * Injected framework-specific components for ComboboxOption rendering.
4
- */
5
- export interface ComboboxOptionComponents {
6
- /** Tooltip wrapper component (optional). Used when `tooltipProps` is provided. */
7
- Tooltip?: any;
8
- }
9
- /**
10
- * Defines the props for the core ComboboxOption template.
11
- */
12
- export interface ComboboxOptionProps extends HasClassName {
13
- /** A component to be rendered before the content (e.g. an icon or avatar). */
14
- before?: JSXElement;
15
- /** A component to be rendered after the content (e.g. ComboboxOptionAction elements). */
16
- after?: JSXElement;
17
- /** Content (option label). */
18
- children?: JSXElement;
19
- /** Props forwarded to a Tooltip wrapping the role="option" / role="gridcell" element. */
20
- tooltipProps?: Record<string, any>;
21
- /** Helper description. */
22
- description?: string;
23
- /** Unique ID for the option element. */
24
- id?: string;
25
- /** Unique ID for the description element (for aria-describedby). */
26
- descriptionId?: string;
27
- /** Whether the option is disabled. */
28
- isDisabled?: boolean;
29
- /** Whether the option is selected. */
30
- isSelected?: boolean;
31
- /** Whether the parent list is in grid mode. */
32
- isGrid?: boolean;
33
- /**
34
- * Whether the option is hidden (filtered out by auto-filter).
35
- * When true, renders a bare `<li hidden>` with only the children text — no ARIA roles,
36
- * no classes, no visual structure. This keeps the element in the DOM so its textContent
37
- * can be read for future filter evaluations, while naturally excluding it from
38
- * `[role="option"]` queries (focus navigation) and `.lumx-combobox-option` CSS rules
39
- * (section/popover auto-hide).
40
- */
41
- hidden?: boolean;
42
- /** On click callback. */
43
- handleClick?(): void;
44
- /** Extra props forwarded to the inner action element (e.g. link props when as="a"). */
45
- actionProps?: Record<string, any>;
46
- /** ref to the root <li> element. */
47
- ref?: CommonRef;
48
- /** The value for this option (used for selection). */
49
- value?: string;
50
- }
51
- /**
52
- * Props that React/Vue wrappers need to re-declare with framework-specific types.
53
- * Used by `ReactToJSX<ComboboxOptionProps, ComboboxOptionPropsToOverride>`.
54
- */
55
- export type ComboboxOptionPropsToOverride = 'before' | 'after' | 'children' | 'tooltipProps' | 'actionProps';
56
- /**
57
- * Component display name.
58
- */
59
- export declare const COMPONENT_NAME = "ComboboxOption";
60
- /**
61
- * Component default class name and class prefix.
62
- */
63
- export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
64
- /**
65
- * ComboboxOption core template.
66
- * Renders a ListItem with combobox-specific ARIA attributes and structure.
67
- *
68
- * In grid mode, the ListItem renders with `role="row"` and the option content
69
- * uses `role="gridcell"` instead of `role="option"`.
70
- *
71
- * @param props Component props.
72
- * @return JSX element.
73
- */
74
- export declare const ComboboxOption: (props: ComboboxOptionProps, { Tooltip }?: ComboboxOptionComponents) => import("react").JSX.Element;
@@ -1,35 +0,0 @@
1
- import type { CommonRef, HasClassName, HasPolymorphicAs, HasRequiredLinkHref, JSXElement, LumxClassName } from '../../types';
2
- import { ClickableElement } from '../RawClickable';
3
- /**
4
- * Defines the props for the core ComboboxOptionAction template.
5
- */
6
- export type ComboboxOptionActionProps<E extends ClickableElement = 'button'> = HasPolymorphicAs<E> & HasClassName & HasRequiredLinkHref<E> & {
7
- /** Content of the action (icon, label, etc.). */
8
- children?: JSXElement;
9
- /** Unique ID for the action element. */
10
- id?: string;
11
- /** Whether the action is disabled. */
12
- isDisabled?: boolean;
13
- /** On click callback. */
14
- handleClick?(evt: any): void;
15
- /** ref to the root element. */
16
- ref?: CommonRef;
17
- };
18
- /**
19
- * Component display name.
20
- */
21
- export declare const COMPONENT_NAME = "ComboboxOptionAction";
22
- /**
23
- * Component default class name and class prefix.
24
- */
25
- export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
26
- /**
27
- * ComboboxOptionAction core template.
28
- * Renders a secondary action button within a combobox option row (grid mode).
29
- * Each action renders as a `role="gridcell"` element, enabling 2D keyboard
30
- * navigation (ArrowLeft/Right to move between the option and its actions).
31
- *
32
- * @param props Component props.
33
- * @return JSX element.
34
- */
35
- export declare const ComboboxOptionAction: <E extends ClickableElement = "button">(props: ComboboxOptionActionProps<E>) => import("react").JSX.Element;
@@ -1,54 +0,0 @@
1
- import type { CommonRef, HasClassName, JSXElement, LumxClassName } from '../../types';
2
- /**
3
- * Defines the props for the core ComboboxOptionMoreInfo template.
4
- */
5
- export interface ComboboxOptionMoreInfoProps extends HasClassName {
6
- /** Popover content (additional details about the option). */
7
- children?: JSXElement;
8
- /** Whether the popover is open. */
9
- isOpen?: boolean;
10
- /** ID for the popover element (used for aria-describedby on the parent option). */
11
- popoverId: string;
12
- /** Ref for the anchor element (icon button). */
13
- ref?: CommonRef;
14
- /** Mouse enter callback. */
15
- onMouseEnter?(): void;
16
- /** Mouse leave callback. */
17
- onMouseLeave?(): void;
18
- /** Props forwarded to the IconButton. */
19
- buttonProps?: Record<string, any>;
20
- }
21
- /**
22
- * Props that React/Vue wrappers need to re-declare with framework-specific types.
23
- */
24
- export type ComboboxOptionMoreInfoPropsToOverride = 'children' | 'popoverId' | 'isOpen';
25
- /**
26
- * Injected framework-specific components for ComboboxOptionMoreInfo rendering.
27
- */
28
- export interface ComboboxOptionMoreInfoComponents {
29
- /** IconButton component (framework-specific). */
30
- IconButton: any;
31
- /** Popover component (framework-specific). */
32
- Popover: any;
33
- }
34
- /**
35
- * Component display name.
36
- */
37
- export declare const COMPONENT_NAME = "ComboboxOptionMoreInfo";
38
- /**
39
- * Component default class name and class prefix.
40
- */
41
- export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
42
- /**
43
- * ComboboxOptionMoreInfo core template.
44
- * Renders an info icon button with a popover that shows additional details about a combobox option.
45
- * The popover opens on mouse hover or when the parent option is keyboard-highlighted.
46
- *
47
- * Framework-specific components (IconButton, Popover) are passed as a second argument
48
- * by the React/Vue wrappers.
49
- *
50
- * @param props Component props.
51
- * @param components Injected framework-specific components.
52
- * @return JSX element.
53
- */
54
- export declare const ComboboxOptionMoreInfo: (props: ComboboxOptionMoreInfoProps, { IconButton, Popover }: ComboboxOptionMoreInfoComponents) => import("react").JSX.Element;
@@ -1,47 +0,0 @@
1
- import type { CommonRef, HasClassName, JSXElement, LumxClassName } from '../../types';
2
- /**
3
- * Defines the props for the core ComboboxOptionSkeleton template.
4
- */
5
- export interface ComboboxOptionSkeletonProps extends HasClassName {
6
- /** Content rendered before the skeleton text (e.g. SkeletonCircle for avatar placeholders). */
7
- before?: JSXElement;
8
- /** Content rendered after the skeleton text. */
9
- after?: JSXElement;
10
- /** Show a secondary skeleton line (mirrors ComboboxOption's `description` prop). */
11
- hasDescription?: boolean;
12
- /** Override the default SkeletonTypography content entirely. */
13
- children?: JSXElement;
14
- /** ref to the root <li> element. */
15
- ref?: CommonRef;
16
- /**
17
- * Number of skeleton `<li>` elements to render.
18
- * Each is an independent element with `:nth-child` width cycling applied by SCSS.
19
- * @default 1
20
- */
21
- count?: number;
22
- }
23
- /**
24
- * Props that React/Vue wrappers need to re-declare with framework-specific types.
25
- * Used by `ReactToJSX<ComboboxOptionSkeletonProps, ComboboxOptionSkeletonPropsToOverride>`.
26
- */
27
- export type ComboboxOptionSkeletonPropsToOverride = 'before' | 'after' | 'children';
28
- /**
29
- * Component display name.
30
- */
31
- export declare const COMPONENT_NAME = "ComboboxOptionSkeleton";
32
- /**
33
- * Component default class name and class prefix.
34
- */
35
- export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
36
- /**
37
- * ComboboxOptionSkeleton core template.
38
- * Renders a skeleton placeholder `<li>` inside a combobox list, styled to match
39
- * option dimensions. Uses `role="none"` so screen readers ignore it.
40
- *
41
- * Width variation across sibling skeletons is handled by SCSS `:nth-child` rules,
42
- * not by props — the component itself does not need a `width` prop.
43
- *
44
- * @param props Component props.
45
- * @return JSX element.
46
- */
47
- export declare const ComboboxOptionSkeleton: (props: ComboboxOptionSkeletonProps) => import("react").JSX.Element;
@@ -1,24 +0,0 @@
1
- import { ComboboxNamespace } from './Tests';
2
- type RenderResult = {
3
- unmount: () => void;
4
- container: HTMLElement;
5
- };
6
- /**
7
- * Options to set up the ComboboxOption test suite.
8
- * Injected by the framework-specific test file (React or Vue).
9
- */
10
- export interface ComboboxOptionTestSetup {
11
- /** Combobox compound component namespace */
12
- Combobox: Pick<ComboboxNamespace, 'Provider' | 'Input' | 'List' | 'Option'>;
13
- /**
14
- * Render a JSX template and return a result with a container.
15
- * The template is a zero-argument function returning a JSX element.
16
- */
17
- render: (template: () => any) => RenderResult;
18
- }
19
- /**
20
- * Shared Combobox.Option test suite — covers DOM shape and ARIA correctness.
21
- * Runs the same assertions against both React and Vue wrappers.
22
- */
23
- export default function comboboxOptionTests({ Combobox, render }: ComboboxOptionTestSetup): void;
24
- export {};
@@ -1,41 +0,0 @@
1
- import type { HasClassName, JSXElement, LumxClassName } from '../../types';
2
- import type { PopoverProps } from '../Popover';
3
- import type { PopoverSizes } from '../Popover/types';
4
- /**
5
- * Component display name.
6
- */
7
- export declare const COMPONENT_NAME = "ComboboxPopover";
8
- /**
9
- * Component default class name.
10
- */
11
- export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
12
- type InheritedPopoverProps = Pick<PopoverProps, 'closeOnClickAway' | 'closeOnEscape' | 'fitToAnchorWidth' | 'isOpen' | 'anchorRef' | 'placement' | 'handleClose'> & PopoverSizes;
13
- /**
14
- * Defines the props for the core ComboboxPopover template.
15
- */
16
- export interface ComboboxPopoverProps extends HasClassName, InheritedPopoverProps {
17
- /** Content (should contain a ComboboxList). */
18
- children?: JSXElement;
19
- }
20
- /**
21
- * Injected framework-specific components for ComboboxPopover rendering.
22
- */
23
- export interface ComboboxPopoverComponents {
24
- /** Popover component (framework-specific). */
25
- Popover: any;
26
- /** FlexBox component (framework-specific). */
27
- FlexBox: any;
28
- }
29
- /**
30
- * ComboboxPopover core template.
31
- * Renders a Popover with combobox-specific defaults (className, closeMode, closeOnClickAway, closeOnEscape).
32
- *
33
- * Framework-specific components (Popover) are passed as a second argument
34
- * by the React/Vue wrappers.
35
- *
36
- * @param props Component props.
37
- * @param components Injected framework-specific components.
38
- * @return JSX element.
39
- */
40
- export declare const ComboboxPopover: (props: ComboboxPopoverProps, { Popover, FlexBox }: ComboboxPopoverComponents) => import("react").JSX.Element;
41
- export {};
@@ -1,58 +0,0 @@
1
- import type { CommonRef, HasClassName, JSXElement, LumxClassName } from '../../types';
2
- /**
3
- * Defines the props for the core ComboboxSection template.
4
- */
5
- export interface ComboboxSectionProps extends HasClassName {
6
- /** Section label displayed as the group title. Accepts a plain string or custom JSX content. */
7
- label?: string | JSXElement;
8
- /** Section icon */
9
- icon?: string;
10
- /** Section content (should be ComboboxOption elements). */
11
- children: JSXElement;
12
- /** ref to the root element. */
13
- ref?: CommonRef;
14
- /**
15
- * When true, the section renders as a bare `<li hidden>` wrapper, keeping children
16
- * mounted (so option registrations stay alive) but invisible to the user and screen readers.
17
- * Set automatically by the React/Vue wrapper when all child options are filtered out.
18
- */
19
- hidden?: boolean;
20
- /**
21
- * When true, the section is visually rendered (label + content) but hidden from assistive
22
- * technology. Used for skeleton-only sections: the visual skeleton provides feedback to
23
- * sighted users, while the live region (`ComboboxState`) handles the loading announcement.
24
- */
25
- 'aria-hidden'?: boolean;
26
- }
27
- /**
28
- * Props that React/Vue wrappers need to re-declare with framework-specific types.
29
- * Used by `ReactToJSX<ComboboxSectionProps, ComboboxSectionPropsToOverride>`.
30
- */
31
- export type ComboboxSectionPropsToOverride = 'children';
32
- /**
33
- * Injected framework-specific components for ComboboxSection rendering.
34
- */
35
- export interface ComboboxSectionComponents {
36
- /** ListSection component (framework-specific). */
37
- ListSection: any;
38
- }
39
- /**
40
- * Component display name.
41
- */
42
- export declare const COMPONENT_NAME = "ComboboxSection";
43
- /**
44
- * Component default class name and class prefix.
45
- */
46
- export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
47
- /**
48
- * ComboboxSection core template.
49
- * Renders a ListSection with combobox-specific ARIA roles.
50
- *
51
- * Framework-specific components (ListSection) are passed as a second argument
52
- * by the React/Vue wrappers.
53
- *
54
- * @param props Component props.
55
- * @param components Injected framework-specific components.
56
- * @return JSX element.
57
- */
58
- export declare const ComboboxSection: (props: ComboboxSectionProps, { ListSection }: ComboboxSectionComponents) => import("react").JSX.Element;
@@ -1,99 +0,0 @@
1
- import type { LumxClassName } from '../../types';
2
- import type { TextProps } from '../Text';
3
- /**
4
- * Component display name.
5
- */
6
- export declare const COMPONENT_NAME = "ComboboxState";
7
- /**
8
- * Component default class name and class prefix.
9
- */
10
- export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
11
- /**
12
- * Defines the props for the core ComboboxState template.
13
- */
14
- export interface ComboboxStateProps {
15
- /**
16
- * Message to display when the list has no visible options.
17
- * Can be a plain string or a function receiving the current input value (for dynamic messages).
18
- * When omitted, the empty state is not shown.
19
- */
20
- emptyMessage?: string | ((inputValue: string) => string);
21
- /**
22
- * Message callback to display the number of available options.
23
- * Called with the current visible option count and should return a human-readable string
24
- * (e.g. `(n) => \`${n} result(s) available\``).
25
- * Displayed when the combobox is open, not empty, not loading, and not in error.
26
- * When omitted, no option count message is shown.
27
- */
28
- nbOptionMessage?: (optionsLength: number) => string;
29
- /**
30
- * Error state title message.
31
- * When provided, the error state is active (takes priority over the empty state).
32
- * When omitted, the error state is not shown.
33
- */
34
- errorMessage?: string;
35
- /**
36
- * Secondary error message (e.g. "Please try again").
37
- * Only rendered when `errorMessage` is provided.
38
- */
39
- errorTryReloadMessage?: string;
40
- /**
41
- * Message to announce when loading persists (after a 500ms debounce).
42
- * When omitted, no loading announcement is made.
43
- */
44
- loadingMessage?: string;
45
- /**
46
- * List state
47
- */
48
- state?: {
49
- /**
50
- * The number of currently visible options.
51
- * Driven by the framework wrapper via the combobox handle's `optionsChange` event.
52
- */
53
- optionsLength?: number;
54
- /**
55
- * The current value of the combobox input.
56
- * Passed to `emptyMessage` when it is a function.
57
- */
58
- inputValue?: string;
59
- /**
60
- * Whether loading is active (immediate, from `loadingChange` event).
61
- * Used to suppress false "empty" state while data is loading.
62
- */
63
- isLoading?: boolean;
64
- /**
65
- * Whether the combobox popover is open.
66
- * Used to gate live region content so screen readers announce messages
67
- * when the popover opens (content insertion triggers `aria-live` announcement).
68
- */
69
- isOpen?: boolean;
70
- };
71
- }
72
- /**
73
- * Components injected by the framework wrapper (dependency injection).
74
- */
75
- export interface ComboboxStateComponents {
76
- /**
77
- * GenericBlock component (framework-specific, e.g. React GenericBlock with FlexBox handling).
78
- */
79
- GenericBlock: any;
80
- /**
81
- * Text component (framework-specific, e.g. React Text or Vue Text).
82
- */
83
- Text: (props: TextProps) => any;
84
- }
85
- /**
86
- * ComboboxState core template.
87
- * Renders empty/error/option-count state messages inside the combobox popover.
88
- * The block itself acts as a screen reader live region (`role="status" aria-live="polite"`).
89
- *
90
- * Activation rules:
91
- * - Error state: active when `errorMessage` is provided (presence-based).
92
- * - Empty state: active when `optionsLength` is 0 and `emptyMessage` is provided, and there is no error.
93
- * - Option count: active when `nbOptionMessage` is provided, the list is not empty, not loading, and not in error.
94
- *
95
- * @param props Component props.
96
- * @param components Injected framework-specific components.
97
- * @return JSX element or null when no state is active.
98
- */
99
- export declare const ComboboxState: (props: ComboboxStateProps, { GenericBlock, Text }: ComboboxStateComponents) => import("react").JSX.Element;