@vibe/core 4.5.11 → 4.5.13

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 (490) hide show
  1. package/dist/base/dist/BaseInput/BaseInput.module.scss.js +1 -1
  2. package/dist/components/Menu/MenuGridItem/useMenuGridItemNavContext.d.ts +2 -2
  3. package/dist/components/a11y/dist/GridKeyboardNavigationContext/GridKeyboardNavigationContext.js +2 -0
  4. package/dist/components/a11y/dist/GridKeyboardNavigationContext/GridKeyboardNavigationContext.js.map +1 -0
  5. package/dist/components/a11y/dist/GridKeyboardNavigationContext/helper.js +2 -0
  6. package/dist/components/a11y/dist/GridKeyboardNavigationContext/helper.js.map +1 -0
  7. package/dist/components/a11y/dist/HiddenText/HiddenText.js +2 -0
  8. package/dist/components/a11y/dist/HiddenText/HiddenText.js.map +1 -0
  9. package/dist/components/a11y/dist/HiddenText/HiddenText.module.scss.js +2 -0
  10. package/dist/components/a11y/dist/useGridKeyboardNavigation/gridKeyboardNavigationHelper.js +2 -0
  11. package/dist/components/a11y/dist/useGridKeyboardNavigation/gridKeyboardNavigationHelper.js.map +1 -0
  12. package/dist/components/a11y/dist/useGridKeyboardNavigation/useGridKeyboardNavigation.js +2 -0
  13. package/dist/components/a11y/dist/useGridKeyboardNavigation/useGridKeyboardNavigation.js.map +1 -0
  14. package/dist/components/avatar/dist/Avatar/Avatar.module.scss.js +1 -1
  15. package/dist/components/avatar/dist/Avatar/AvatarBadge.module.scss.js +1 -1
  16. package/dist/components/avatar/dist/Avatar/AvatarContent.module.scss.js +1 -1
  17. package/dist/components/button/dist/Button/Button.module.scss.js +1 -1
  18. package/dist/components/button-group/dist/ButtonGroup/ButtonGroup.module.scss.js +1 -1
  19. package/dist/components/checkbox/dist/Checkbox/Checkbox.module.scss.js +1 -1
  20. package/dist/components/clickable/dist/Clickable/Clickable.module.scss.js +1 -1
  21. package/dist/components/color-picker/dist/ColorPicker/ColorPicker.js +2 -0
  22. package/dist/components/color-picker/dist/ColorPicker/ColorPicker.js.map +1 -0
  23. package/dist/components/color-picker/dist/ColorPicker/ColorPicker.module.scss.js +2 -0
  24. package/dist/components/color-picker/dist/ColorPicker/ColorPickerConstants.js +2 -0
  25. package/dist/components/color-picker/dist/ColorPicker/ColorPickerConstants.js.map +1 -0
  26. package/dist/components/color-picker/dist/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.js +2 -0
  27. package/dist/components/color-picker/dist/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.js.map +1 -0
  28. package/dist/components/color-picker/dist/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.module.scss.js +2 -0
  29. package/dist/components/color-picker/dist/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.js +2 -0
  30. package/dist/components/color-picker/dist/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.js.map +1 -0
  31. package/dist/components/color-picker/dist/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.module.scss.js +2 -0
  32. package/dist/components/color-picker/dist/ColorPicker/components/ColorPickerContent/ColorPickerContent.js +2 -0
  33. package/dist/components/color-picker/dist/ColorPicker/components/ColorPickerContent/ColorPickerContent.js.map +1 -0
  34. package/dist/components/color-picker/dist/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.js +2 -0
  35. package/dist/components/color-picker/dist/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.js.map +1 -0
  36. package/dist/components/color-picker/dist/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.module.scss.js +2 -0
  37. package/dist/components/color-picker/dist/ColorPicker/services/ColorPickerStyleService.js +2 -0
  38. package/dist/components/color-picker/dist/ColorPicker/services/ColorPickerStyleService.js.map +1 -0
  39. package/dist/components/counter/dist/Counter/Counter.module.scss.js +1 -1
  40. package/dist/components/dialog/dist/Dialog/Dialog.module.scss.js +1 -1
  41. package/dist/components/dialog/dist/Dialog/components/DialogContent/DialogContent.js +1 -1
  42. package/dist/components/dialog/dist/Dialog/components/DialogContent/DialogContent.module.scss.js +1 -1
  43. package/dist/components/dialog/dist/DialogContentContainer/DialogContentContainer.module.scss.js +1 -1
  44. package/dist/components/divider/dist/Divider/Divider.module.scss.js +1 -1
  45. package/dist/components/editable/dist/EditableHeading/EditableHeading.module.scss.js +1 -1
  46. package/dist/components/editable/dist/EditableText/EditableText.module.scss.js +1 -1
  47. package/dist/components/editable/dist/EditableTypography/EditableTypography.module.scss.js +1 -1
  48. package/dist/components/expand-collapse/dist/ExpandCollapse/ExpandCollapse.module.scss.js +1 -1
  49. package/dist/components/formatted-number/dist/FormattedNumber/FormattedNumber.module.scss.js +1 -1
  50. package/dist/components/icon/dist/Icon/Icon.module.scss.js +1 -1
  51. package/dist/components/icon-button/dist/IconButton/IconButton.module.scss.js +1 -1
  52. package/dist/components/index.d.ts +2 -3
  53. package/dist/components/label/dist/Label/Label.module.scss.js +1 -1
  54. package/dist/components/label/dist/Label/LabelCelebrationAnimation.module.scss.js +1 -1
  55. package/dist/components/layout/dist/Box/Box.module.scss.js +1 -1
  56. package/dist/components/layout/dist/Flex/Flex.module.scss.js +1 -1
  57. package/dist/components/link/dist/Link/Link.module.scss.js +1 -1
  58. package/dist/components/loader/dist/Loader/Loader.module.scss.js +1 -1
  59. package/dist/components/progress-bars/dist/ProgressBars/PercentageLabel/PercentageLabel.module.scss.js +1 -1
  60. package/dist/components/progress-bars/dist/ProgressBars/ProgressBar/Bar/Bar.module.scss.js +1 -1
  61. package/dist/components/progress-bars/dist/ProgressBars/ProgressBar/ProgressBar.module.scss.js +1 -1
  62. package/dist/components/radio-button/dist/RadioButton/RadioButton.module.scss.js +1 -1
  63. package/dist/components/tooltip/dist/Tooltip/Tooltip.module.scss.js +1 -1
  64. package/dist/components/typography/dist/Heading/Heading.module.scss.js +1 -1
  65. package/dist/components/typography/dist/Text/Text.module.scss.js +1 -1
  66. package/dist/components/typography/dist/Typography/Typography.module.scss.js +1 -1
  67. package/dist/hooks/index.d.ts +1 -1
  68. package/dist/metadata/components.json +182 -58
  69. package/dist/metadata.json +182 -58
  70. package/dist/mocked_classnames/components/Menu/MenuGridItem/useMenuGridItemNavContext.d.ts +2 -2
  71. package/dist/mocked_classnames/components/index.d.ts +2 -3
  72. package/dist/mocked_classnames/hooks/index.d.ts +1 -1
  73. package/dist/mocked_classnames/src/components/Accordion/Accordion/Accordion.module.scss.js +1 -1
  74. package/dist/mocked_classnames/src/components/AlertBanner/AlertBanner.module.scss.js +1 -1
  75. package/dist/mocked_classnames/src/components/AlertBanner/AlertBannerButton/AlertBannerButton.module.scss.js +1 -1
  76. package/dist/mocked_classnames/src/components/AlertBanner/AlertBannerLink/AlertBannerLink.module.scss.js +1 -1
  77. package/dist/mocked_classnames/src/components/AlertBanner/AlertBannerText/AlertBannerText.module.scss.js +1 -1
  78. package/dist/mocked_classnames/src/components/AttentionBox/AttentionBox.module.scss.js +1 -1
  79. package/dist/mocked_classnames/src/components/AttentionBox/components/AttentionBoxCloseButton/AttentionBoxCloseButton.module.scss.js +1 -1
  80. package/dist/mocked_classnames/src/components/AttentionBox/components/AttentionBoxLeadingIcon/AttentionBoxLeadingIcon.module.scss.js +1 -1
  81. package/dist/mocked_classnames/src/components/AttentionBox/components/AttentionBoxLink/AttentionBoxLink.module.scss.js +1 -1
  82. package/dist/mocked_classnames/src/components/AttentionBox/layouts/AttentionBoxCompact/AttentionBoxCompact.module.scss.js +1 -1
  83. package/dist/mocked_classnames/src/components/AttentionBox/layouts/AttentionBoxDefault/AttentionBoxDefault.module.scss.js +1 -1
  84. package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroup.module.scss.js +1 -1
  85. package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupCounter.module.scss.js +1 -1
  86. package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupCounterTooltipContent.module.scss.js +1 -1
  87. package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupCounterTooltipContentVirtualizedList.module.scss.js +1 -1
  88. package/dist/mocked_classnames/src/components/Badge/Badge.module.scss.js +1 -1
  89. package/dist/mocked_classnames/src/components/Badge/Indicator/Indicator.module.scss.js +1 -1
  90. package/dist/mocked_classnames/src/components/BaseItem/BaseItem.module.scss.js +1 -1
  91. package/dist/mocked_classnames/src/components/BaseList/BaseList.module.scss.js +1 -1
  92. package/dist/mocked_classnames/src/components/BreadcrumbsBar/BreadcrumbItem/BreadcrumbContent/BreadcrumbContent.module.scss.js +1 -1
  93. package/dist/mocked_classnames/src/components/BreadcrumbsBar/BreadcrumbItem/BreadcrumbItem.module.scss.js +1 -1
  94. package/dist/mocked_classnames/src/components/BreadcrumbsBar/BreadcrumbMenu/BreadcrumbsMenu.module.scss.js +1 -1
  95. package/dist/mocked_classnames/src/components/BreadcrumbsBar/BreadcrumbsBar.module.scss.js +1 -1
  96. package/dist/mocked_classnames/src/components/Chips/Chips.module.scss.js +1 -1
  97. package/dist/mocked_classnames/src/components/Combobox/Combobox.module.scss.js +1 -1
  98. package/dist/mocked_classnames/src/components/Combobox/ComboboxHelpers/ComboboxHelpers.module.scss.js +1 -1
  99. package/dist/mocked_classnames/src/components/Combobox/components/ComboboxCategory/ComboboxCategory.module.scss.js +1 -1
  100. package/dist/mocked_classnames/src/components/Combobox/components/ComboboxItems/ComboboxItems.module.scss.js +1 -1
  101. package/dist/mocked_classnames/src/components/Combobox/components/ComboboxOption/ComboboxOption.module.scss.js +1 -1
  102. package/dist/mocked_classnames/src/components/Combobox/components/StickyCategoryHeader/StickyCategoryHeader.module.scss.js +1 -1
  103. package/dist/mocked_classnames/src/components/DatePicker/DatePicker.module.scss.js +1 -1
  104. package/dist/mocked_classnames/src/components/DatePicker/DatePickerHeader.module.scss.js +1 -1
  105. package/dist/mocked_classnames/src/components/Dropdown/components/DropdownBase/DropdownBase.module.scss.js +1 -1
  106. package/dist/mocked_classnames/src/components/Dropdown/components/DropdownBaseList/DropdownBaseList.module.scss.js +1 -1
  107. package/dist/mocked_classnames/src/components/Dropdown/components/DropdownBoxMode/DropdownBoxMode.module.scss.js +1 -1
  108. package/dist/mocked_classnames/src/components/Dropdown/components/Menu/Menu.module.scss.js +1 -1
  109. package/dist/mocked_classnames/src/components/Dropdown/components/MultiSelectedValues/MultiSelectedValues.module.scss.js +1 -1
  110. package/dist/mocked_classnames/src/components/Dropdown/components/Trigger/Trigger.module.scss.js +1 -1
  111. package/dist/mocked_classnames/src/components/EmptyState/EmptyState.module.scss.js +1 -1
  112. package/dist/mocked_classnames/src/components/FieldLabel/FieldLabel.module.scss.js +1 -1
  113. package/dist/mocked_classnames/src/components/Info/components/InfoDialogContent/InfoDialogContent.module.scss.js +1 -1
  114. package/dist/mocked_classnames/src/components/Info/components/InfoLink/InfoLink.module.scss.js +1 -1
  115. package/dist/mocked_classnames/src/components/InfoText/InfoText.module.scss.js +1 -1
  116. package/dist/mocked_classnames/src/components/List/List.module.scss.js +1 -1
  117. package/dist/mocked_classnames/src/components/List/VirtualizedListItems/VirtualizedListItems.module.scss.js +1 -1
  118. package/dist/mocked_classnames/src/components/ListItem/ListItem.js +1 -1
  119. package/dist/mocked_classnames/src/components/ListItem/ListItem.js.map +1 -1
  120. package/dist/mocked_classnames/src/components/ListItem/ListItem.module.scss.js +1 -1
  121. package/dist/mocked_classnames/src/components/ListItemAvatar/ListItemAvatar.module.scss.js +1 -1
  122. package/dist/mocked_classnames/src/components/ListItemIcon/ListItemIcon.module.scss.js +1 -1
  123. package/dist/mocked_classnames/src/components/ListTitle/ListTitle.module.scss.js +1 -1
  124. package/dist/mocked_classnames/src/components/Menu/Menu/Menu.module.scss.js +1 -1
  125. package/dist/mocked_classnames/src/components/Menu/Menu/hooks/useMenuKeyboardNavigation.js +1 -1
  126. package/dist/mocked_classnames/src/components/Menu/Menu/hooks/useMenuKeyboardNavigation.js.map +1 -1
  127. package/dist/mocked_classnames/src/components/Menu/MenuDivider/MenuDivider.module.scss.js +1 -1
  128. package/dist/mocked_classnames/src/components/Menu/MenuGridItem/MenuGridItem.js +1 -1
  129. package/dist/mocked_classnames/src/components/Menu/MenuGridItem/MenuGridItem.js.map +1 -1
  130. package/dist/mocked_classnames/src/components/Menu/MenuGridItem/useFocusGridItemByActiveStatus.js +1 -1
  131. package/dist/mocked_classnames/src/components/Menu/MenuGridItem/useFocusGridItemByActiveStatus.js.map +1 -1
  132. package/dist/mocked_classnames/src/components/Menu/MenuGridItem/useMenuGridItemNavContext.js +1 -1
  133. package/dist/mocked_classnames/src/components/Menu/MenuGridItem/useMenuGridItemNavContext.js.map +1 -1
  134. package/dist/mocked_classnames/src/components/Menu/MenuItem/MenuItem.module.scss.js +1 -1
  135. package/dist/mocked_classnames/src/components/Menu/MenuItem/components/BaseMenuItem/BaseMenuItem.module.scss.js +1 -1
  136. package/dist/mocked_classnames/src/components/Menu/MenuItem/components/MenuItemIcon/MenuItemIcon.module.scss.js +1 -1
  137. package/dist/mocked_classnames/src/components/Menu/MenuItem/components/MenuItemSubMenuIcon/MenuItemSubMenuIcon.module.scss.js +1 -1
  138. package/dist/mocked_classnames/src/components/Menu/MenuItemButton/MenuItemButton.module.scss.js +1 -1
  139. package/dist/mocked_classnames/src/components/Menu/MenuTitle/MenuTitle.module.scss.js +1 -1
  140. package/dist/mocked_classnames/src/components/MenuButton/MenuButton.module.scss.js +1 -1
  141. package/dist/mocked_classnames/src/components/Modal/Modal/Modal.module.scss.js +1 -1
  142. package/dist/mocked_classnames/src/components/Modal/ModalHeader/ModalHeader.module.scss.js +1 -1
  143. package/dist/mocked_classnames/src/components/Modal/ModalMedia/ModalMedia.module.scss.js +1 -1
  144. package/dist/mocked_classnames/src/components/Modal/ModalTopActions/ModalTopActions.module.scss.js +1 -1
  145. package/dist/mocked_classnames/src/components/Modal/footers/ModalFooter/ModalFooter.module.scss.js +1 -1
  146. package/dist/mocked_classnames/src/components/Modal/footers/ModalFooterBase/ModalFooterBase.module.scss.js +1 -1
  147. package/dist/mocked_classnames/src/components/Modal/footers/ModalFooterWizard/ModalFooterWizard.module.scss.js +1 -1
  148. package/dist/mocked_classnames/src/components/Modal/layouts/ModalBasicLayout/ModalBasicLayout.module.scss.js +1 -1
  149. package/dist/mocked_classnames/src/components/Modal/layouts/ModalFooterShadow.module.scss.js +1 -1
  150. package/dist/mocked_classnames/src/components/Modal/layouts/ModalLayoutScrollableContent.module.scss.js +1 -1
  151. package/dist/mocked_classnames/src/components/Modal/layouts/ModalMediaLayout/ModalMediaLayout.module.scss.js +1 -1
  152. package/dist/mocked_classnames/src/components/Modal/layouts/ModalSideBySideLayout/ModalSideBySideLayout.module.scss.js +1 -1
  153. package/dist/mocked_classnames/src/components/MultiStepIndicator/MultiStepIndicator.module.scss.js +1 -1
  154. package/dist/mocked_classnames/src/components/MultiStepIndicator/components/StepIndicator/StepIndicator.js +1 -1
  155. package/dist/mocked_classnames/src/components/MultiStepIndicator/components/StepIndicator/StepIndicator.js.map +1 -1
  156. package/dist/mocked_classnames/src/components/MultiStepIndicator/components/StepIndicator/StepIndicator.module.scss.js +1 -1
  157. package/dist/mocked_classnames/src/components/NumberField/NumberField.module.scss.js +1 -1
  158. package/dist/mocked_classnames/src/components/NumberField/components/NumberFieldSpinButton/NumberFieldSpinButton.module.scss.js +1 -1
  159. package/dist/mocked_classnames/src/components/Search/Search.module.scss.js +1 -1
  160. package/dist/mocked_classnames/src/components/Skeleton/Skeleton.module.scss.js +1 -1
  161. package/dist/mocked_classnames/src/components/SlideTransition/SlideTransition.module.scss.js +1 -1
  162. package/dist/mocked_classnames/src/components/Slider/SelectionIndicator.module.scss.js +1 -1
  163. package/dist/mocked_classnames/src/components/Slider/Slider.module.scss.js +1 -1
  164. package/dist/mocked_classnames/src/components/Slider/SliderBase/SliderBase.module.scss.js +1 -1
  165. package/dist/mocked_classnames/src/components/Slider/SliderBase/SliderFilledTrack.module.scss.js +1 -1
  166. package/dist/mocked_classnames/src/components/Slider/SliderBase/SliderRail.module.scss.js +1 -1
  167. package/dist/mocked_classnames/src/components/Slider/SliderBase/SliderThumb.module.scss.js +1 -1
  168. package/dist/mocked_classnames/src/components/Slider/SliderBase/SliderTrack.module.scss.js +1 -1
  169. package/dist/mocked_classnames/src/components/Slider/SliderInfix.module.scss.js +1 -1
  170. package/dist/mocked_classnames/src/components/SplitButton/SplitButton.module.scss.js +1 -1
  171. package/dist/mocked_classnames/src/components/Steps/Steps.module.scss.js +1 -1
  172. package/dist/mocked_classnames/src/components/Steps/StepsCommand.module.scss.js +1 -1
  173. package/dist/mocked_classnames/src/components/Steps/StepsDot.module.scss.js +1 -1
  174. package/dist/mocked_classnames/src/components/Steps/StepsGalleryHeader.module.scss.js +1 -1
  175. package/dist/mocked_classnames/src/components/Steps/StepsHeader.module.scss.js +1 -1
  176. package/dist/mocked_classnames/src/components/Steps/StepsNumbersHeader.module.scss.js +1 -1
  177. package/dist/mocked_classnames/src/components/Switch/Switch.module.scss.js +1 -1
  178. package/dist/mocked_classnames/src/components/Table/Table/Table.module.scss.js +1 -1
  179. package/dist/mocked_classnames/src/components/Table/TableBody/TableBody.module.scss.js +1 -1
  180. package/dist/mocked_classnames/src/components/Table/TableCell/TableCell.module.scss.js +1 -1
  181. package/dist/mocked_classnames/src/components/Table/TableCellSkeleton/TableCellSkeleton.module.scss.js +1 -1
  182. package/dist/mocked_classnames/src/components/Table/TableContainer/TableContainer.module.scss.js +1 -1
  183. package/dist/mocked_classnames/src/components/Table/TableHeader/TableHeader.module.scss.js +1 -1
  184. package/dist/mocked_classnames/src/components/Table/TableHeaderCell/TableHeaderCell.module.scss.js +1 -1
  185. package/dist/mocked_classnames/src/components/Table/TableRow/TableRow.module.scss.js +1 -1
  186. package/dist/mocked_classnames/src/components/Table/TableRowMenu/TableRowMenu.module.scss.js +1 -1
  187. package/dist/mocked_classnames/src/components/Table/TableVirtualizedBody/TableVirtualizedBody.module.scss.js +1 -1
  188. package/dist/mocked_classnames/src/components/Tabs/Tab/Tab.module.scss.js +1 -1
  189. package/dist/mocked_classnames/src/components/Tabs/TabList/TabList.js +1 -1
  190. package/dist/mocked_classnames/src/components/Tabs/TabList/TabList.js.map +1 -1
  191. package/dist/mocked_classnames/src/components/Tabs/TabList/TabList.module.scss.js +1 -1
  192. package/dist/mocked_classnames/src/components/Tabs/TabPanel/TabPanel.module.scss.js +1 -1
  193. package/dist/mocked_classnames/src/components/Tabs/TabPanels/TabPanels.module.scss.js +1 -1
  194. package/dist/mocked_classnames/src/components/TextArea/TextArea.js +1 -1
  195. package/dist/mocked_classnames/src/components/TextArea/TextArea.js.map +1 -1
  196. package/dist/mocked_classnames/src/components/TextArea/TextArea.module.scss.js +1 -1
  197. package/dist/mocked_classnames/src/components/TextField/TextField.js +1 -1
  198. package/dist/mocked_classnames/src/components/TextField/TextField.js.map +1 -1
  199. package/dist/mocked_classnames/src/components/TextField/TextField.module.scss.js +1 -1
  200. package/dist/mocked_classnames/src/components/TextWithHighlight/TextWithHighlight.module.scss.js +1 -1
  201. package/dist/mocked_classnames/src/components/Tipseen/Tipseen.module.scss.js +1 -1
  202. package/dist/mocked_classnames/src/components/Tipseen/TipseenBasicContent.module.scss.js +1 -1
  203. package/dist/mocked_classnames/src/components/Tipseen/TipseenContent.module.scss.js +1 -1
  204. package/dist/mocked_classnames/src/components/Tipseen/TipseenMedia/TipseenMedia.module.scss.js +1 -1
  205. package/dist/mocked_classnames/src/components/Tipseen/TipseenTitle.module.scss.js +1 -1
  206. package/dist/mocked_classnames/src/components/Tipseen/TipseenWizard.module.scss.js +1 -1
  207. package/dist/mocked_classnames/src/components/Toast/Toast.module.scss.js +1 -1
  208. package/dist/mocked_classnames/src/components/Toast/ToastLink/ToastLink.module.scss.js +1 -1
  209. package/dist/mocked_classnames/src/components/Toggle/MockToggle.module.scss.js +1 -1
  210. package/dist/mocked_classnames/src/components/Toggle/Toggle.module.scss.js +1 -1
  211. package/dist/mocked_classnames/src/components/Toggle/ToggleText.module.scss.js +1 -1
  212. package/dist/mocked_classnames/src/components/TransitionView/TransitionView.module.scss.js +1 -1
  213. package/dist/mocked_classnames/src/components/VirtualizedGrid/VirtualizedGrid.module.scss.js +1 -1
  214. package/dist/mocked_classnames/src/components/VirtualizedList/VirtualizedList.module.scss.js +1 -1
  215. package/dist/mocked_classnames/src/components/next/List/List.module.scss.js +1 -1
  216. package/dist/mocked_classnames/src/components/next/List/ListTitle/ListTitle.module.scss.js +1 -1
  217. package/dist/mocked_classnames/src/index.js +1 -1
  218. package/dist/mocked_classnames/src/utils/colors-utils.js.map +1 -1
  219. package/dist/shared/dist/constants/keyCodes.js +1 -1
  220. package/dist/shared/dist/constants/keyCodes.js.map +1 -1
  221. package/dist/shared/dist/constants/navDirections.js +2 -0
  222. package/dist/shared/dist/constants/navDirections.js.map +1 -0
  223. package/dist/shared/dist/hooks/useFullKeyboardListeners.js +2 -0
  224. package/dist/shared/dist/hooks/useFullKeyboardListeners.js.map +1 -0
  225. package/dist/shared/dist/hooks/useLastNavigationDirection.js +2 -0
  226. package/dist/shared/dist/hooks/useLastNavigationDirection.js.map +1 -0
  227. package/dist/shared/dist/utils/colors-utils.js +2 -0
  228. package/dist/shared/dist/utils/colors-utils.js.map +1 -0
  229. package/dist/src/components/Accordion/Accordion/Accordion.module.scss.js +1 -1
  230. package/dist/src/components/AlertBanner/AlertBanner.module.scss.js +1 -1
  231. package/dist/src/components/AlertBanner/AlertBannerButton/AlertBannerButton.module.scss.js +1 -1
  232. package/dist/src/components/AlertBanner/AlertBannerLink/AlertBannerLink.module.scss.js +1 -1
  233. package/dist/src/components/AlertBanner/AlertBannerText/AlertBannerText.module.scss.js +1 -1
  234. package/dist/src/components/AttentionBox/AttentionBox.module.scss.js +1 -1
  235. package/dist/src/components/AttentionBox/components/AttentionBoxCloseButton/AttentionBoxCloseButton.module.scss.js +1 -1
  236. package/dist/src/components/AttentionBox/components/AttentionBoxLeadingIcon/AttentionBoxLeadingIcon.module.scss.js +1 -1
  237. package/dist/src/components/AttentionBox/components/AttentionBoxLink/AttentionBoxLink.module.scss.js +1 -1
  238. package/dist/src/components/AttentionBox/layouts/AttentionBoxCompact/AttentionBoxCompact.module.scss.js +1 -1
  239. package/dist/src/components/AttentionBox/layouts/AttentionBoxDefault/AttentionBoxDefault.module.scss.js +1 -1
  240. package/dist/src/components/AvatarGroup/AvatarGroup.module.scss.js +1 -1
  241. package/dist/src/components/AvatarGroup/AvatarGroupCounter.module.scss.js +1 -1
  242. package/dist/src/components/AvatarGroup/AvatarGroupCounterTooltipContent.module.scss.js +1 -1
  243. package/dist/src/components/AvatarGroup/AvatarGroupCounterTooltipContentVirtualizedList.module.scss.js +1 -1
  244. package/dist/src/components/Badge/Badge.module.scss.js +1 -1
  245. package/dist/src/components/Badge/Indicator/Indicator.module.scss.js +1 -1
  246. package/dist/src/components/BaseItem/BaseItem.module.scss.js +1 -1
  247. package/dist/src/components/BaseList/BaseList.module.scss.js +1 -1
  248. package/dist/src/components/BreadcrumbsBar/BreadcrumbItem/BreadcrumbContent/BreadcrumbContent.module.scss.js +1 -1
  249. package/dist/src/components/BreadcrumbsBar/BreadcrumbItem/BreadcrumbItem.module.scss.js +1 -1
  250. package/dist/src/components/BreadcrumbsBar/BreadcrumbMenu/BreadcrumbsMenu.module.scss.js +1 -1
  251. package/dist/src/components/BreadcrumbsBar/BreadcrumbsBar.module.scss.js +1 -1
  252. package/dist/src/components/Chips/Chips.module.scss.js +1 -1
  253. package/dist/src/components/Combobox/Combobox.module.scss.js +1 -1
  254. package/dist/src/components/Combobox/ComboboxHelpers/ComboboxHelpers.module.scss.js +1 -1
  255. package/dist/src/components/Combobox/components/ComboboxCategory/ComboboxCategory.module.scss.js +1 -1
  256. package/dist/src/components/Combobox/components/ComboboxItems/ComboboxItems.module.scss.js +1 -1
  257. package/dist/src/components/Combobox/components/ComboboxOption/ComboboxOption.module.scss.js +1 -1
  258. package/dist/src/components/Combobox/components/StickyCategoryHeader/StickyCategoryHeader.module.scss.js +1 -1
  259. package/dist/src/components/DatePicker/DatePicker.module.scss.js +1 -1
  260. package/dist/src/components/DatePicker/DatePickerHeader.module.scss.js +1 -1
  261. package/dist/src/components/Dropdown/components/DropdownBase/DropdownBase.module.scss.js +1 -1
  262. package/dist/src/components/Dropdown/components/DropdownBaseList/DropdownBaseList.module.scss.js +1 -1
  263. package/dist/src/components/Dropdown/components/DropdownBoxMode/DropdownBoxMode.module.scss.js +1 -1
  264. package/dist/src/components/Dropdown/components/Menu/Menu.module.scss.js +1 -1
  265. package/dist/src/components/Dropdown/components/MultiSelectedValues/MultiSelectedValues.module.scss.js +1 -1
  266. package/dist/src/components/Dropdown/components/Trigger/Trigger.module.scss.js +1 -1
  267. package/dist/src/components/EmptyState/EmptyState.module.scss.js +1 -1
  268. package/dist/src/components/FieldLabel/FieldLabel.module.scss.js +1 -1
  269. package/dist/src/components/Info/components/InfoDialogContent/InfoDialogContent.module.scss.js +1 -1
  270. package/dist/src/components/Info/components/InfoLink/InfoLink.module.scss.js +1 -1
  271. package/dist/src/components/InfoText/InfoText.module.scss.js +1 -1
  272. package/dist/src/components/List/List.module.scss.js +1 -1
  273. package/dist/src/components/List/VirtualizedListItems/VirtualizedListItems.module.scss.js +1 -1
  274. package/dist/src/components/ListItem/ListItem.js +1 -1
  275. package/dist/src/components/ListItem/ListItem.js.map +1 -1
  276. package/dist/src/components/ListItem/ListItem.module.scss.js +1 -1
  277. package/dist/src/components/ListItemAvatar/ListItemAvatar.module.scss.js +1 -1
  278. package/dist/src/components/ListItemIcon/ListItemIcon.module.scss.js +1 -1
  279. package/dist/src/components/ListTitle/ListTitle.module.scss.js +1 -1
  280. package/dist/src/components/Menu/Menu/Menu.module.scss.js +1 -1
  281. package/dist/src/components/Menu/Menu/hooks/useMenuKeyboardNavigation.js +1 -1
  282. package/dist/src/components/Menu/Menu/hooks/useMenuKeyboardNavigation.js.map +1 -1
  283. package/dist/src/components/Menu/MenuDivider/MenuDivider.module.scss.js +1 -1
  284. package/dist/src/components/Menu/MenuGridItem/MenuGridItem.js +1 -1
  285. package/dist/src/components/Menu/MenuGridItem/MenuGridItem.js.map +1 -1
  286. package/dist/src/components/Menu/MenuGridItem/useFocusGridItemByActiveStatus.js +1 -1
  287. package/dist/src/components/Menu/MenuGridItem/useFocusGridItemByActiveStatus.js.map +1 -1
  288. package/dist/src/components/Menu/MenuGridItem/useMenuGridItemNavContext.js +1 -1
  289. package/dist/src/components/Menu/MenuGridItem/useMenuGridItemNavContext.js.map +1 -1
  290. package/dist/src/components/Menu/MenuItem/MenuItem.module.scss.js +1 -1
  291. package/dist/src/components/Menu/MenuItem/components/BaseMenuItem/BaseMenuItem.module.scss.js +1 -1
  292. package/dist/src/components/Menu/MenuItem/components/MenuItemIcon/MenuItemIcon.module.scss.js +1 -1
  293. package/dist/src/components/Menu/MenuItem/components/MenuItemSubMenuIcon/MenuItemSubMenuIcon.module.scss.js +1 -1
  294. package/dist/src/components/Menu/MenuItemButton/MenuItemButton.module.scss.js +1 -1
  295. package/dist/src/components/Menu/MenuTitle/MenuTitle.module.scss.js +1 -1
  296. package/dist/src/components/MenuButton/MenuButton.module.scss.js +1 -1
  297. package/dist/src/components/Modal/Modal/Modal.module.scss.js +1 -1
  298. package/dist/src/components/Modal/ModalHeader/ModalHeader.module.scss.js +1 -1
  299. package/dist/src/components/Modal/ModalMedia/ModalMedia.module.scss.js +1 -1
  300. package/dist/src/components/Modal/ModalTopActions/ModalTopActions.module.scss.js +1 -1
  301. package/dist/src/components/Modal/footers/ModalFooter/ModalFooter.module.scss.js +1 -1
  302. package/dist/src/components/Modal/footers/ModalFooterBase/ModalFooterBase.module.scss.js +1 -1
  303. package/dist/src/components/Modal/footers/ModalFooterWizard/ModalFooterWizard.module.scss.js +1 -1
  304. package/dist/src/components/Modal/layouts/ModalBasicLayout/ModalBasicLayout.module.scss.js +1 -1
  305. package/dist/src/components/Modal/layouts/ModalFooterShadow.module.scss.js +1 -1
  306. package/dist/src/components/Modal/layouts/ModalLayoutScrollableContent.module.scss.js +1 -1
  307. package/dist/src/components/Modal/layouts/ModalMediaLayout/ModalMediaLayout.module.scss.js +1 -1
  308. package/dist/src/components/Modal/layouts/ModalSideBySideLayout/ModalSideBySideLayout.module.scss.js +1 -1
  309. package/dist/src/components/MultiStepIndicator/MultiStepIndicator.module.scss.js +1 -1
  310. package/dist/src/components/MultiStepIndicator/components/StepIndicator/StepIndicator.js +1 -1
  311. package/dist/src/components/MultiStepIndicator/components/StepIndicator/StepIndicator.js.map +1 -1
  312. package/dist/src/components/MultiStepIndicator/components/StepIndicator/StepIndicator.module.scss.js +1 -1
  313. package/dist/src/components/NumberField/NumberField.module.scss.js +1 -1
  314. package/dist/src/components/NumberField/components/NumberFieldSpinButton/NumberFieldSpinButton.module.scss.js +1 -1
  315. package/dist/src/components/Search/Search.module.scss.js +1 -1
  316. package/dist/src/components/Skeleton/Skeleton.module.scss.js +1 -1
  317. package/dist/src/components/SlideTransition/SlideTransition.module.scss.js +1 -1
  318. package/dist/src/components/Slider/SelectionIndicator.module.scss.js +1 -1
  319. package/dist/src/components/Slider/Slider.module.scss.js +1 -1
  320. package/dist/src/components/Slider/SliderBase/SliderBase.module.scss.js +1 -1
  321. package/dist/src/components/Slider/SliderBase/SliderFilledTrack.module.scss.js +1 -1
  322. package/dist/src/components/Slider/SliderBase/SliderRail.module.scss.js +1 -1
  323. package/dist/src/components/Slider/SliderBase/SliderThumb.module.scss.js +1 -1
  324. package/dist/src/components/Slider/SliderBase/SliderTrack.module.scss.js +1 -1
  325. package/dist/src/components/Slider/SliderInfix.module.scss.js +1 -1
  326. package/dist/src/components/SplitButton/SplitButton.module.scss.js +1 -1
  327. package/dist/src/components/Steps/Steps.module.scss.js +1 -1
  328. package/dist/src/components/Steps/StepsCommand.module.scss.js +1 -1
  329. package/dist/src/components/Steps/StepsDot.module.scss.js +1 -1
  330. package/dist/src/components/Steps/StepsGalleryHeader.module.scss.js +1 -1
  331. package/dist/src/components/Steps/StepsHeader.module.scss.js +1 -1
  332. package/dist/src/components/Steps/StepsNumbersHeader.module.scss.js +1 -1
  333. package/dist/src/components/Switch/Switch.module.scss.js +1 -1
  334. package/dist/src/components/Table/Table/Table.module.scss.js +1 -1
  335. package/dist/src/components/Table/TableBody/TableBody.module.scss.js +1 -1
  336. package/dist/src/components/Table/TableCell/TableCell.module.scss.js +1 -1
  337. package/dist/src/components/Table/TableCellSkeleton/TableCellSkeleton.module.scss.js +1 -1
  338. package/dist/src/components/Table/TableContainer/TableContainer.module.scss.js +1 -1
  339. package/dist/src/components/Table/TableHeader/TableHeader.module.scss.js +1 -1
  340. package/dist/src/components/Table/TableHeaderCell/TableHeaderCell.module.scss.js +1 -1
  341. package/dist/src/components/Table/TableRow/TableRow.module.scss.js +1 -1
  342. package/dist/src/components/Table/TableRowMenu/TableRowMenu.module.scss.js +1 -1
  343. package/dist/src/components/Table/TableVirtualizedBody/TableVirtualizedBody.module.scss.js +1 -1
  344. package/dist/src/components/Tabs/Tab/Tab.module.scss.js +1 -1
  345. package/dist/src/components/Tabs/TabList/TabList.js +1 -1
  346. package/dist/src/components/Tabs/TabList/TabList.js.map +1 -1
  347. package/dist/src/components/Tabs/TabList/TabList.module.scss.js +1 -1
  348. package/dist/src/components/Tabs/TabPanel/TabPanel.module.scss.js +1 -1
  349. package/dist/src/components/Tabs/TabPanels/TabPanels.module.scss.js +1 -1
  350. package/dist/src/components/TextArea/TextArea.js +1 -1
  351. package/dist/src/components/TextArea/TextArea.js.map +1 -1
  352. package/dist/src/components/TextArea/TextArea.module.scss.js +1 -1
  353. package/dist/src/components/TextField/TextField.js +1 -1
  354. package/dist/src/components/TextField/TextField.js.map +1 -1
  355. package/dist/src/components/TextField/TextField.module.scss.js +1 -1
  356. package/dist/src/components/TextWithHighlight/TextWithHighlight.module.scss.js +1 -1
  357. package/dist/src/components/Tipseen/Tipseen.module.scss.js +1 -1
  358. package/dist/src/components/Tipseen/TipseenBasicContent.module.scss.js +1 -1
  359. package/dist/src/components/Tipseen/TipseenContent.module.scss.js +1 -1
  360. package/dist/src/components/Tipseen/TipseenMedia/TipseenMedia.module.scss.js +1 -1
  361. package/dist/src/components/Tipseen/TipseenTitle.module.scss.js +1 -1
  362. package/dist/src/components/Tipseen/TipseenWizard.module.scss.js +1 -1
  363. package/dist/src/components/Toast/Toast.module.scss.js +1 -1
  364. package/dist/src/components/Toast/ToastLink/ToastLink.module.scss.js +1 -1
  365. package/dist/src/components/Toggle/MockToggle.module.scss.js +1 -1
  366. package/dist/src/components/Toggle/Toggle.module.scss.js +1 -1
  367. package/dist/src/components/Toggle/ToggleText.module.scss.js +1 -1
  368. package/dist/src/components/TransitionView/TransitionView.module.scss.js +1 -1
  369. package/dist/src/components/VirtualizedGrid/VirtualizedGrid.module.scss.js +1 -1
  370. package/dist/src/components/VirtualizedList/VirtualizedList.module.scss.js +1 -1
  371. package/dist/src/components/next/List/List.module.scss.js +1 -1
  372. package/dist/src/components/next/List/ListTitle/ListTitle.module.scss.js +1 -1
  373. package/dist/src/index.js +1 -1
  374. package/dist/src/utils/colors-utils.js.map +1 -1
  375. package/dist/style/dist/index.min.css.js +1 -1
  376. package/package.json +29 -27
  377. package/dist/components/ColorPicker/ColorPicker.d.ts +0 -80
  378. package/dist/components/ColorPicker/ColorPicker.types.d.ts +0 -6
  379. package/dist/components/ColorPicker/ColorPickerConstants.d.ts +0 -5
  380. package/dist/components/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.d.ts +0 -19
  381. package/dist/components/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.d.ts +0 -63
  382. package/dist/components/ColorPicker/components/ColorPickerContent/ColorPickerContent.d.ts +0 -84
  383. package/dist/components/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.d.ts +0 -57
  384. package/dist/components/ColorPicker/index.d.ts +0 -3
  385. package/dist/components/ColorPicker/services/ColorPickerStyleService.d.ts +0 -3
  386. package/dist/components/GridKeyboardNavigationContext/GridKeyboardNavigationContext.d.ts +0 -15
  387. package/dist/components/GridKeyboardNavigationContext/GridKeyboardNavigationContextConstants.d.ts +0 -25
  388. package/dist/components/GridKeyboardNavigationContext/helper.d.ts +0 -6
  389. package/dist/components/GridKeyboardNavigationContext/index.d.ts +0 -1
  390. package/dist/components/HiddenText/HiddenText.d.ts +0 -10
  391. package/dist/components/HiddenText/index.d.ts +0 -1
  392. package/dist/components/Menu/Menu/hooks/useLastNavigationDirection.d.ts +0 -4
  393. package/dist/hooks/useFullKeyboardListeners.d.ts +0 -28
  394. package/dist/hooks/useGridKeyboardNavigation/gridKeyboardNavigationHelper.d.ts +0 -20
  395. package/dist/hooks/useGridKeyboardNavigation/useGridKeyboardNavigation.d.ts +0 -42
  396. package/dist/mocked_classnames/components/ColorPicker/ColorPicker.d.ts +0 -80
  397. package/dist/mocked_classnames/components/ColorPicker/ColorPicker.types.d.ts +0 -6
  398. package/dist/mocked_classnames/components/ColorPicker/ColorPickerConstants.d.ts +0 -5
  399. package/dist/mocked_classnames/components/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.d.ts +0 -19
  400. package/dist/mocked_classnames/components/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.d.ts +0 -63
  401. package/dist/mocked_classnames/components/ColorPicker/components/ColorPickerContent/ColorPickerContent.d.ts +0 -84
  402. package/dist/mocked_classnames/components/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.d.ts +0 -57
  403. package/dist/mocked_classnames/components/ColorPicker/index.d.ts +0 -3
  404. package/dist/mocked_classnames/components/ColorPicker/services/ColorPickerStyleService.d.ts +0 -3
  405. package/dist/mocked_classnames/components/GridKeyboardNavigationContext/GridKeyboardNavigationContext.d.ts +0 -15
  406. package/dist/mocked_classnames/components/GridKeyboardNavigationContext/GridKeyboardNavigationContextConstants.d.ts +0 -25
  407. package/dist/mocked_classnames/components/GridKeyboardNavigationContext/helper.d.ts +0 -6
  408. package/dist/mocked_classnames/components/GridKeyboardNavigationContext/index.d.ts +0 -1
  409. package/dist/mocked_classnames/components/HiddenText/HiddenText.d.ts +0 -10
  410. package/dist/mocked_classnames/components/HiddenText/index.d.ts +0 -1
  411. package/dist/mocked_classnames/components/Menu/Menu/hooks/useLastNavigationDirection.d.ts +0 -4
  412. package/dist/mocked_classnames/hooks/useFullKeyboardListeners.d.ts +0 -28
  413. package/dist/mocked_classnames/hooks/useGridKeyboardNavigation/gridKeyboardNavigationHelper.d.ts +0 -20
  414. package/dist/mocked_classnames/hooks/useGridKeyboardNavigation/useGridKeyboardNavigation.d.ts +0 -42
  415. package/dist/mocked_classnames/src/components/ColorPicker/ColorPicker.js +0 -2
  416. package/dist/mocked_classnames/src/components/ColorPicker/ColorPicker.js.map +0 -1
  417. package/dist/mocked_classnames/src/components/ColorPicker/ColorPicker.module.scss.js +0 -2
  418. package/dist/mocked_classnames/src/components/ColorPicker/ColorPickerConstants.js +0 -2
  419. package/dist/mocked_classnames/src/components/ColorPicker/ColorPickerConstants.js.map +0 -1
  420. package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.js +0 -2
  421. package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.js.map +0 -1
  422. package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.module.scss.js +0 -2
  423. package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.js +0 -2
  424. package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.js.map +0 -1
  425. package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.module.scss.js +0 -2
  426. package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerContent/ColorPickerContent.js +0 -2
  427. package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerContent/ColorPickerContent.js.map +0 -1
  428. package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.js +0 -2
  429. package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.js.map +0 -1
  430. package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.module.scss.js +0 -2
  431. package/dist/mocked_classnames/src/components/ColorPicker/services/ColorPickerStyleService.js +0 -2
  432. package/dist/mocked_classnames/src/components/ColorPicker/services/ColorPickerStyleService.js.map +0 -1
  433. package/dist/mocked_classnames/src/components/GridKeyboardNavigationContext/GridKeyboardNavigationContext.js +0 -2
  434. package/dist/mocked_classnames/src/components/GridKeyboardNavigationContext/GridKeyboardNavigationContext.js.map +0 -1
  435. package/dist/mocked_classnames/src/components/GridKeyboardNavigationContext/helper.js +0 -2
  436. package/dist/mocked_classnames/src/components/GridKeyboardNavigationContext/helper.js.map +0 -1
  437. package/dist/mocked_classnames/src/components/HiddenText/HiddenText.js +0 -2
  438. package/dist/mocked_classnames/src/components/HiddenText/HiddenText.js.map +0 -1
  439. package/dist/mocked_classnames/src/components/HiddenText/HiddenText.module.scss.js +0 -2
  440. package/dist/mocked_classnames/src/components/Menu/Menu/hooks/useLastNavigationDirection.js +0 -2
  441. package/dist/mocked_classnames/src/components/Menu/Menu/hooks/useLastNavigationDirection.js.map +0 -1
  442. package/dist/mocked_classnames/src/hooks/useFullKeyboardListeners.js +0 -2
  443. package/dist/mocked_classnames/src/hooks/useFullKeyboardListeners.js.map +0 -1
  444. package/dist/mocked_classnames/src/hooks/useGridKeyboardNavigation/gridKeyboardNavigationHelper.js +0 -2
  445. package/dist/mocked_classnames/src/hooks/useGridKeyboardNavigation/gridKeyboardNavigationHelper.js.map +0 -1
  446. package/dist/mocked_classnames/src/hooks/useGridKeyboardNavigation/useGridKeyboardNavigation.js +0 -2
  447. package/dist/mocked_classnames/src/hooks/useGridKeyboardNavigation/useGridKeyboardNavigation.js.map +0 -1
  448. package/dist/src/components/ColorPicker/ColorPicker.js +0 -2
  449. package/dist/src/components/ColorPicker/ColorPicker.js.map +0 -1
  450. package/dist/src/components/ColorPicker/ColorPicker.module.scss.js +0 -2
  451. package/dist/src/components/ColorPicker/ColorPicker.module.scss.js.map +0 -1
  452. package/dist/src/components/ColorPicker/ColorPickerConstants.js +0 -2
  453. package/dist/src/components/ColorPicker/ColorPickerConstants.js.map +0 -1
  454. package/dist/src/components/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.js +0 -2
  455. package/dist/src/components/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.js.map +0 -1
  456. package/dist/src/components/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.module.scss.js +0 -2
  457. package/dist/src/components/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.module.scss.js.map +0 -1
  458. package/dist/src/components/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.js +0 -2
  459. package/dist/src/components/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.js.map +0 -1
  460. package/dist/src/components/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.module.scss.js +0 -2
  461. package/dist/src/components/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.module.scss.js.map +0 -1
  462. package/dist/src/components/ColorPicker/components/ColorPickerContent/ColorPickerContent.js +0 -2
  463. package/dist/src/components/ColorPicker/components/ColorPickerContent/ColorPickerContent.js.map +0 -1
  464. package/dist/src/components/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.js +0 -2
  465. package/dist/src/components/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.js.map +0 -1
  466. package/dist/src/components/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.module.scss.js +0 -2
  467. package/dist/src/components/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.module.scss.js.map +0 -1
  468. package/dist/src/components/ColorPicker/services/ColorPickerStyleService.js +0 -2
  469. package/dist/src/components/ColorPicker/services/ColorPickerStyleService.js.map +0 -1
  470. package/dist/src/components/GridKeyboardNavigationContext/GridKeyboardNavigationContext.js +0 -2
  471. package/dist/src/components/GridKeyboardNavigationContext/GridKeyboardNavigationContext.js.map +0 -1
  472. package/dist/src/components/GridKeyboardNavigationContext/helper.js +0 -2
  473. package/dist/src/components/GridKeyboardNavigationContext/helper.js.map +0 -1
  474. package/dist/src/components/HiddenText/HiddenText.js +0 -2
  475. package/dist/src/components/HiddenText/HiddenText.js.map +0 -1
  476. package/dist/src/components/HiddenText/HiddenText.module.scss.js +0 -2
  477. package/dist/src/components/HiddenText/HiddenText.module.scss.js.map +0 -1
  478. package/dist/src/components/Menu/Menu/hooks/useLastNavigationDirection.js +0 -2
  479. package/dist/src/components/Menu/Menu/hooks/useLastNavigationDirection.js.map +0 -1
  480. package/dist/src/hooks/useFullKeyboardListeners.js +0 -2
  481. package/dist/src/hooks/useFullKeyboardListeners.js.map +0 -1
  482. package/dist/src/hooks/useGridKeyboardNavigation/gridKeyboardNavigationHelper.js +0 -2
  483. package/dist/src/hooks/useGridKeyboardNavigation/gridKeyboardNavigationHelper.js.map +0 -1
  484. package/dist/src/hooks/useGridKeyboardNavigation/useGridKeyboardNavigation.js +0 -2
  485. package/dist/src/hooks/useGridKeyboardNavigation/useGridKeyboardNavigation.js.map +0 -1
  486. /package/dist/{mocked_classnames/src/components → components/a11y/dist}/HiddenText/HiddenText.module.scss.js.map +0 -0
  487. /package/dist/{mocked_classnames/src/components → components/color-picker/dist}/ColorPicker/ColorPicker.module.scss.js.map +0 -0
  488. /package/dist/{mocked_classnames/src/components → components/color-picker/dist}/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.module.scss.js.map +0 -0
  489. /package/dist/{mocked_classnames/src/components → components/color-picker/dist}/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.module.scss.js.map +0 -0
  490. /package/dist/{mocked_classnames/src/components → components/color-picker/dist}/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.module.scss.js.map +0 -0
@@ -1,57 +0,0 @@
1
- import React from "react";
2
- import { type ColorPickerValueOnly } from "../../ColorPicker.types";
3
- import { type ColorShapes, type ColorPickerSizes } from "../../ColorPicker.types";
4
- import { type VibeComponentProps, type ElementContent, type ColorStyle } from "../../../../types";
5
- import { type SubIcon } from "@vibe/icon";
6
- export interface ColorPickerItemComponentProps extends VibeComponentProps {
7
- /**
8
- * The color value of the item.
9
- */
10
- color: ColorPickerValueOnly;
11
- /**
12
- * Callback fired when the color is clicked.
13
- */
14
- onColorClicked: (color: ColorPickerValueOnly) => void;
15
- /**
16
- * The style applied to the color.
17
- */
18
- colorStyle: ColorStyle;
19
- /**
20
- * If true, renders the color indicator without a background.
21
- */
22
- shouldRenderIndicatorWithoutBackground: boolean;
23
- /**
24
- * Icon displayed inside the color item.
25
- */
26
- ColorIndicatorIcon: SubIcon;
27
- /**
28
- * Icon displayed when the color is selected.
29
- */
30
- SelectedIndicatorIcon: SubIcon;
31
- /**
32
- * If true, the color is marked as selected.
33
- */
34
- isSelected: boolean;
35
- /**
36
- * The size of the color item.
37
- */
38
- colorSize: ColorPickerSizes;
39
- /**
40
- * Tooltip content for the color item.
41
- */
42
- tooltipContent: ElementContent;
43
- /**
44
- * If true, the color item is currently active.
45
- */
46
- isActive: boolean;
47
- /**
48
- * The shape of the color item.
49
- */
50
- colorShape: ColorShapes;
51
- /**
52
- * Human-readable label for the color, used for screen reader announcements.
53
- */
54
- colorAriaLabel: string;
55
- }
56
- declare const ColorPickerItemComponent: React.ForwardRefExoticComponent<ColorPickerItemComponentProps & React.RefAttributes<HTMLElement>>;
57
- export default ColorPickerItemComponent;
@@ -1,3 +0,0 @@
1
- export { default as ColorPicker, type ColorPickerProps } from "./ColorPicker";
2
- export { default as ColorPickerContent, type ColorPickerContentProps } from "./components/ColorPickerContent/ColorPickerContent";
3
- export * from "./ColorPicker.types";
@@ -1,3 +0,0 @@
1
- import { type BaseSizes } from "../../../constants/sizes";
2
- export declare const calculateColorPickerWidth: (colorSize: BaseSizes, numberOfColorsInLine: number) => number;
3
- export declare const calculateColorPickerDialogWidth: (colorSize: BaseSizes, numberOfColorsInLine: number) => number;
@@ -1,15 +0,0 @@
1
- import React from "react";
2
- import { type NavDirections } from "../../hooks/useFullKeyboardListeners";
3
- import { type GridElementRef, type GridKeyboardNavigationContextType, type Position } from "./GridKeyboardNavigationContextConstants";
4
- export declare const GridKeyboardNavigationContext: React.Context<GridKeyboardNavigationContextType>;
5
- /**
6
- * @param {({topElement: MutableRefObject, bottomElement: MutableRefObject}|
7
- * {leftElement: MutableRefObject, rightElement: MutableRefObject})[]} positions - the positions of the navigable items
8
- * @param {*} wrapperRef - a reference for a wrapper element which contains all the referenced elements
9
- * @param options - { disabled: boolean }
10
- */
11
- export declare const useGridKeyboardNavigationContext: (positions: Position[], wrapperRef: GridElementRef, options?: {
12
- disabled: boolean;
13
- }) => {
14
- onOutboundNavigation: (elementRef: GridElementRef, direction: NavDirections) => void;
15
- };
@@ -1,25 +0,0 @@
1
- import { type MutableRefObject } from "react";
2
- import { type NavDirections } from "../../hooks/useFullKeyboardListeners";
3
- export type GridElementRef = MutableRefObject<HTMLElement> & {
4
- current?: HTMLElement & {
5
- disabled?: boolean;
6
- };
7
- };
8
- export type DirectionMap = Map<GridElementRef, GridElementRef>;
9
- export type DirectionMaps = Record<NavDirections, DirectionMap>;
10
- export type Position = VerticalPosition & HorizontalPosition;
11
- type VerticalPosition = {
12
- topElement?: GridElementRef;
13
- bottomElement?: GridElementRef;
14
- };
15
- type HorizontalPosition = {
16
- leftElement?: GridElementRef;
17
- rightElement?: GridElementRef;
18
- };
19
- export interface GridKeyboardNavigationContextType {
20
- /**
21
- * Callback fired when navigation moves beyond the bounds of the grid.
22
- */
23
- onOutboundNavigation?: (ref: GridElementRef, direction: NavDirections) => void;
24
- }
25
- export {};
@@ -1,6 +0,0 @@
1
- import { NavDirections } from "../../hooks/useFullKeyboardListeners";
2
- import { type DirectionMap, type DirectionMaps, type GridElementRef, type Position } from "./GridKeyboardNavigationContextConstants";
3
- export declare const getDirectionMaps: (positions: Position[]) => DirectionMaps;
4
- export declare const getOppositeDirection: (direction: NavDirections) => NavDirections;
5
- export declare const getOutmostElementInDirection: (directionMaps: DirectionMaps, direction: NavDirections) => GridElementRef;
6
- export declare const getNextElementToFocusInDirection: (directionMap: DirectionMap, elementRef: GridElementRef) => null | GridElementRef;
@@ -1 +0,0 @@
1
- export { useGridKeyboardNavigationContext, GridKeyboardNavigationContext } from "./GridKeyboardNavigationContext";
@@ -1,10 +0,0 @@
1
- import React from "react";
2
- import type VibeComponentProps from "../../types/VibeComponentProps";
3
- export interface HiddenTextProps extends VibeComponentProps {
4
- /**
5
- * The text content that is hidden but available for assistive technologies.
6
- */
7
- text: string;
8
- }
9
- declare const HiddenText: React.ForwardRefExoticComponent<HiddenTextProps & React.RefAttributes<HTMLSpanElement>>;
10
- export default HiddenText;
@@ -1 +0,0 @@
1
- export { default as HiddenText, type HiddenTextProps } from "./HiddenText";
@@ -1,4 +0,0 @@
1
- import { NavDirections } from "../../../../hooks/useFullKeyboardListeners";
2
- export declare const useLastNavigationDirection: () => {
3
- lastNavigationDirectionRef: import("react").MutableRefObject<NavDirections>;
4
- };
@@ -1,28 +0,0 @@
1
- import { type MutableRefObject } from "react";
2
- import { type KeyboardEventCallback } from "../types/events";
3
- export declare enum NavDirections {
4
- UP = "up",
5
- DOWN = "down",
6
- LEFT = "left",
7
- RIGHT = "right"
8
- }
9
- export declare const ARROW_DOWN_KEYS: string[];
10
- export declare const ARROW_UP_KEYS: string[];
11
- export declare const ARROW_RIGHT_KEYS: string[];
12
- export declare const ARROW_LEFT_KEYS: string[];
13
- export declare const SELECTION_KEYS: string[];
14
- export declare const ENTER_KEYS: string[];
15
- export declare const ESCAPE_KEYS: string[];
16
- export declare const END_KEYS: string[];
17
- export declare const HOME_KEYS: string[];
18
- export default function useFullKeyboardListeners({ ref, // the reference for the component that listens to keyboard
19
- onSelectionKey, onArrowNavigation, onEscape, onHome, onEnd, useDocumentEventListeners, focusOnMount }: {
20
- ref: MutableRefObject<HTMLElement>;
21
- onSelectionKey: KeyboardEventCallback;
22
- onArrowNavigation: (type: NavDirections) => void;
23
- onEscape: KeyboardEventCallback;
24
- onHome?: KeyboardEventCallback;
25
- onEnd?: KeyboardEventCallback;
26
- useDocumentEventListeners?: boolean;
27
- focusOnMount: boolean;
28
- }): void;
@@ -1,20 +0,0 @@
1
- import { NavDirections } from "../useFullKeyboardListeners";
2
- export declare function getActiveIndexFromInboundNavigation({ direction, numberOfItemsInLine, itemsCount }: {
3
- direction: NavDirections;
4
- numberOfItemsInLine: number;
5
- itemsCount: number;
6
- }): number;
7
- export declare function calcActiveIndexAfterArrowNavigation({ activeIndex, itemsCount, numberOfItemsInLine, direction, disabledIndexes, circularNavigation }: {
8
- activeIndex: number;
9
- itemsCount: number;
10
- numberOfItemsInLine: number;
11
- direction: NavDirections;
12
- disabledIndexes?: number[];
13
- circularNavigation?: boolean;
14
- }): {
15
- isOutbound: boolean;
16
- nextIndex?: undefined;
17
- } | {
18
- isOutbound: boolean;
19
- nextIndex: number;
20
- };
@@ -1,42 +0,0 @@
1
- import { type MutableRefObject, type ReactElement } from "react";
2
- /**
3
- * A hook which is used for accessible keyboard navigation. Useful for components rendering a list of items that can be navigated and selected with a keyboard.
4
- * @param {Object} options
5
- * @param {React.MutableRefObject} options.ref - the reference for the component that listens to keyboard
6
- * @param {number} options.itemsCount - the number of items
7
- * @param {number} options.numberOfItemsInLine - the number of items on each line of the grid
8
- * @param {function} options.onItemClicked - the callback for selecting an item. It will be called when an active item is selected, for example with "Enter".
9
- * @param {function} options.getItemByIndex - a function which gets an index as a param, and returns the item on that index
10
- * @param {"directional" | "first"} options.entryFocusStrategy - Determines how the first item is focused when entering the grid via keyboard.
11
- * - "directional": Tries to focus based on the entry direction (Tab vs Shift+Tab). This is the default.
12
- * - "first": Always focuses the first item.
13
- * @param {boolean=} options.focusOnMount - if true, the referenced element will be focused when mounted
14
- * @param {number=} options.focusItemIndexOnMount - optional item index to focus when mounted. Only works with "options.focusOnMount".
15
- * @param {number[]=} options.disabledIndexes - optional array of disabled indices, which will be skipped while navigating.
16
- * @param {boolean=} options.circularNavigation - if true, the navigation will wrap around the grid
17
- * @returns {useGridKeyboardNavigationResult}
18
- *
19
- * @typedef useGridKeyboardNavigationResult
20
- * @property {number} activeIndex - the currently active index
21
- * @property {boolean} isInitialActiveState - if true, the currently active element was due to an initial mounting index option. See "options.focusItemIndexOnMount".
22
- * @property {(index: number, isKeyboardAction?: boolean) => void} onSelectionAction - the callback which should be used to select an item.
23
- * It should be called with the selected item's index. Use this callback for onClick handlers, for example.
24
- * The "isKeyboardAction" can be used to indicate a keyboard selection, which will affect the currently active index.
25
- */
26
- export default function useGridKeyboardNavigation({ ref, itemsCount, numberOfItemsInLine, onItemClicked, // the callback to call when an item is selected
27
- entryFocusStrategy, getItemByIndex, focusOnMount, focusItemIndexOnMount, disabledIndexes, circularNavigation }: {
28
- ref: MutableRefObject<HTMLElement>;
29
- itemsCount: number;
30
- numberOfItemsInLine: number;
31
- onItemClicked: (element: HTMLElement | ReactElement | void | string, index: number) => void;
32
- entryFocusStrategy?: "directional" | "first";
33
- getItemByIndex: (index: number | void) => HTMLElement | ReactElement | void | string;
34
- focusOnMount?: boolean;
35
- focusItemIndexOnMount?: number;
36
- disabledIndexes?: number[];
37
- circularNavigation?: boolean;
38
- }): {
39
- activeIndex: number;
40
- onSelectionAction: (index: number, isKeyboardAction?: boolean) => void;
41
- isInitialActiveState: boolean;
42
- };
@@ -1,2 +0,0 @@
1
- import o from"classnames";import e,{forwardRef as r,useRef as t,useCallback as i}from"react";import{useMergeRef as l,NOOP as s}from"@vibe/shared";import{DialogContentContainer as c}from"@vibe/dialog/mockedClassNames";import{NoColor as a}from"@vibe/icons";import n from"./components/ColorPickerContent/ColorPickerContent.js";import{DEFAULT_NUMBER_OF_COLORS_IN_LINE as d}from"./ColorPickerConstants.js";import{calculateColorPickerDialogWidth as m}from"./services/ColorPickerStyleService.js";import{getTestId as C,ComponentDefaultTestId as u}from"../../tests/testIds.js";import f from"./ColorPicker.module.scss.js";import{ComponentVibeId as v}from"../../tests/constants.js";var p=r((function(r,p){var I=r.className,k=r.onSave,h=void 0===k?s:k,P=r.value,S=void 0===P?"":P,b=r.noColorText,L=r.colorStyle,O=void 0===L?"regular":L,R=r.ColorIndicatorIcon,g=r.SelectedIndicatorIcon,N=r.shouldRenderIndicatorWithoutBackground,j=r.NoColorIcon,y=void 0===j?a:j,M=r.isBlackListMode,w=void 0===M||M,B=r.colorsList,E=void 0===B?[]:B,T=r.isMultiselect,x=r.colorSize,z=void 0===x?"medium":x,D=r.numberOfColorsInLine,K=void 0===D?d:D,U=r.focusOnMount,W=r.colorShape,_=void 0===W?"square":W,q=r.forceUseRawColorList,V=r.showColorNameTooltip,A=r.id,F=r["data-testid"],G=t(null),H=l(p,G),J=i(h,[h]),Q=m(z,K);return e.createElement(c,{ref:H,className:o(f.colorPicker,f.colorPickerDialogContent,I),"aria-labelledby":"Color Picker Dialog","aria-describedby":"Pick color",style:{width:Q},"data-vibe":v.COLOR_PICKER},e.createElement(n,{onValueChange:J,value:S,noColorText:b,shouldRenderIndicatorWithoutBackground:R&&N,colorStyle:O,ColorIndicatorIcon:R,SelectedIndicatorIcon:g,NoColorIcon:y,colorsList:E,isBlackListMode:w,isMultiselect:T,colorSize:z,numberOfColorsInLine:K,focusOnMount:U,colorShape:_,forceUseRawColorList:q,showColorNameTooltip:V,id:A,"data-testid":F||C(u.COLOR_PICKER,A)}))}));export{p as default};
2
- //# sourceMappingURL=ColorPicker.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ColorPicker.js","sources":["../../../../../src/components/ColorPicker/ColorPicker.tsx"],"sourcesContent":["import cx from \"classnames\";\nimport React, { forwardRef, useCallback, useRef } from \"react\";\nimport { type BaseSizes } from \"../../constants\";\nimport { useMergeRef, NOOP } from \"@vibe/shared\";\nimport { DialogContentContainer } from \"@vibe/dialog\";\nimport { NoColor } from \"@vibe/icons\";\nimport ColorPickerContent from \"./components/ColorPickerContent/ColorPickerContent\";\nimport { DEFAULT_NUMBER_OF_COLORS_IN_LINE } from \"./ColorPickerConstants\";\nimport {\n type ColorShapes,\n type ColorPickerSizes,\n type ColorPickerValue,\n type ColorPickerArrayValueOnly\n} from \"./ColorPicker.types\";\nimport { calculateColorPickerDialogWidth } from \"./services/ColorPickerStyleService\";\nimport { type VibeComponentProps } from \"../../types\";\nimport { type SubIcon } from \"@vibe/icon\";\n\nimport { ComponentDefaultTestId, getTestId } from \"../../tests/test-ids-utils\";\nimport styles from \"./ColorPicker.module.scss\";\nimport { type ColorStyle } from \"../../types/Colors\";\nimport { ComponentVibeId } from \"../../tests/constants\";\n\nexport interface ColorPickerProps extends VibeComponentProps {\n /**\n * The selected color(s).\n */\n value?: ColorPickerValue;\n /**\n * Callback fired when the selected color(s) change.\n */\n onSave?: (value: ColorPickerArrayValueOnly) => void;\n /**\n * Icon displayed as an indicator inside the color.\n */\n ColorIndicatorIcon?: SubIcon;\n /**\n * Icon displayed when a color is selected.\n */\n SelectedIndicatorIcon?: SubIcon;\n /**\n * Icon used for clearing the color selection.\n */\n NoColorIcon?: SubIcon;\n /**\n * The style applied to the colors.\n */\n colorStyle?: ColorStyle;\n /**\n * Text displayed for the \"no color\" option.\n */\n noColorText?: string;\n /**\n * If true, renders the color indicator without a background.\n */\n shouldRenderIndicatorWithoutBackground?: boolean;\n /**\n * If true, treats the color list as a blacklist rather than a whitelist.\n */\n isBlackListMode?: boolean;\n /**\n * The list of colors available for selection.\n */\n colorsList?: ColorPickerArrayValueOnly;\n /**\n * If true, allows selecting multiple colors.\n */\n isMultiselect?: boolean;\n /**\n * The size of the color items.\n */\n colorSize?: ColorPickerSizes;\n /**\n * The number of colors displayed per row.\n */\n numberOfColorsInLine?: number;\n /**\n * If true, the first color is focused when the component mounts.\n */\n focusOnMount?: boolean;\n /**\n * The shape of the color items.\n */\n colorShape?: ColorShapes;\n /**\n * Used to force the component render the colorList prop as is. Usually, this flag should not be used. It's intended only for edge cases.\n * Usually, only \"monday colors\" will be rendered (unless blacklist mode is used). This flag will override this behavior.\n */\n forceUseRawColorList?: boolean;\n /**\n * Used to enable color name tooltip on each color in the component.\n * When \"tooltipContentByColor\" is supplied, it will override the color name tooltip.\n *\n */\n showColorNameTooltip?: boolean;\n}\n\nconst ColorPicker = forwardRef(\n (\n {\n className,\n onSave = NOOP,\n value = \"\",\n noColorText,\n colorStyle = \"regular\",\n ColorIndicatorIcon,\n SelectedIndicatorIcon,\n shouldRenderIndicatorWithoutBackground,\n NoColorIcon = NoColor,\n isBlackListMode = true,\n colorsList = [],\n isMultiselect,\n colorSize = \"medium\",\n numberOfColorsInLine = DEFAULT_NUMBER_OF_COLORS_IN_LINE,\n focusOnMount,\n colorShape = \"square\",\n forceUseRawColorList,\n showColorNameTooltip,\n id,\n \"data-testid\": dataTestId\n }: ColorPickerProps,\n ref: React.ForwardedRef<HTMLElement>\n ) => {\n const componentRef = useRef(null);\n const mergedRef = useMergeRef(ref, componentRef);\n\n const onChange = useCallback(onSave, [onSave]);\n\n const width = calculateColorPickerDialogWidth(colorSize as BaseSizes, numberOfColorsInLine);\n\n return (\n <DialogContentContainer\n ref={mergedRef}\n className={cx(styles.colorPicker, styles.colorPickerDialogContent, className)}\n aria-labelledby=\"Color Picker Dialog\"\n aria-describedby=\"Pick color\"\n style={{ width }}\n data-vibe={ComponentVibeId.COLOR_PICKER}\n >\n <ColorPickerContent\n onValueChange={onChange}\n value={value}\n noColorText={noColorText}\n shouldRenderIndicatorWithoutBackground={ColorIndicatorIcon && shouldRenderIndicatorWithoutBackground}\n colorStyle={colorStyle}\n ColorIndicatorIcon={ColorIndicatorIcon}\n SelectedIndicatorIcon={SelectedIndicatorIcon}\n NoColorIcon={NoColorIcon}\n colorsList={colorsList}\n isBlackListMode={isBlackListMode}\n isMultiselect={isMultiselect}\n colorSize={colorSize}\n numberOfColorsInLine={numberOfColorsInLine}\n focusOnMount={focusOnMount}\n colorShape={colorShape}\n forceUseRawColorList={forceUseRawColorList}\n showColorNameTooltip={showColorNameTooltip}\n id={id}\n data-testid={dataTestId || getTestId(ComponentDefaultTestId.COLOR_PICKER, id)}\n />\n </DialogContentContainer>\n );\n }\n);\n\nexport default ColorPicker;\n"],"names":["ColorPicker","forwardRef","_ref","ref","className","_ref$onSave","onSave","NOOP","_ref$value","value","noColorText","_ref$colorStyle","colorStyle","ColorIndicatorIcon","SelectedIndicatorIcon","shouldRenderIndicatorWithoutBackground","_ref$NoColorIcon","NoColorIcon","NoColor","_ref$isBlackListMode","isBlackListMode","_ref$colorsList","colorsList","isMultiselect","_ref$colorSize","colorSize","_ref$numberOfColorsIn","numberOfColorsInLine","DEFAULT_NUMBER_OF_COLORS_IN_LINE","focusOnMount","_ref$colorShape","colorShape","forceUseRawColorList","showColorNameTooltip","id","dataTestId","componentRef","useRef","mergedRef","useMergeRef","onChange","useCallback","width","calculateColorPickerDialogWidth","React","createElement","DialogContentContainer","cx","styles","colorPicker","colorPickerDialogContent","style","ComponentVibeId","COLOR_PICKER","ColorPickerContent","onValueChange","getTestId","ComponentDefaultTestId"],"mappings":"+pBAiGMA,IAAAA,EAAcC,GAClB,SAAAC,EAuBEC,GACE,IAtBAC,EAASF,EAATE,UAASC,EAAAH,EACTI,OAAAA,OAASC,IAAHF,EAAGE,EAAIF,EAAAG,EAAAN,EACbO,MAAAA,OAAQ,IAAHD,EAAG,GAAEA,EACVE,EAAWR,EAAXQ,YAAWC,EAAAT,EACXU,WAAAA,OAAa,IAAHD,EAAG,UAASA,EACtBE,EAAkBX,EAAlBW,mBACAC,EAAqBZ,EAArBY,sBACAC,EAAsCb,EAAtCa,uCAAsCC,EAAAd,EACtCe,YAAAA,OAAcC,IAAHF,EAAGE,EAAOF,EAAAG,EAAAjB,EACrBkB,gBAAAA,OAAkB,IAAHD,GAAOA,EAAAE,EAAAnB,EACtBoB,WAAAA,OAAa,IAAHD,EAAG,GAAEA,EACfE,EAAarB,EAAbqB,cAAaC,EAAAtB,EACbuB,UAAAA,OAAY,IAAHD,EAAG,SAAQA,EAAAE,EAAAxB,EACpByB,qBAAAA,OAAuBC,IAAHF,EAAGE,EAAgCF,EACvDG,EAAY3B,EAAZ2B,aAAYC,EAAA5B,EACZ6B,WAAAA,OAAa,IAAHD,EAAG,SAAQA,EACrBE,EAAoB9B,EAApB8B,qBACAC,EAAoB/B,EAApB+B,qBACAC,EAAEhC,EAAFgC,GACeC,EAAUjC,EAAzB,eAIIkC,EAAeC,EAAO,MACtBC,EAAYC,EAAYpC,EAAKiC,GAE7BI,EAAWC,EAAYnC,EAAQ,CAACA,IAEhCoC,EAAQC,EAAgClB,EAAwBE,GAEtE,OACEiB,EAAAC,cAACC,EAAsB,CACrB3C,IAAKmC,EACLlC,UAAW2C,EAAGC,EAAOC,YAAaD,EAAOE,yBAA0B9C,GACnD,kBAAA,yCACC,aACjB+C,MAAO,CAAET,MAAAA,GACE,YAAAU,EAAgBC,cAE3BT,EAAAC,cAACS,EACC,CAAAC,cAAef,EACf/B,MAAOA,EACPC,YAAaA,EACbK,uCAAwCF,GAAsBE,EAC9DH,WAAYA,EACZC,mBAAoBA,EACpBC,sBAAuBA,EACvBG,YAAaA,EACbK,WAAYA,EACZF,gBAAiBA,EACjBG,cAAeA,EACfE,UAAWA,EACXE,qBAAsBA,EACtBE,aAAcA,EACdE,WAAYA,EACZC,qBAAsBA,EACtBC,qBAAsBA,EACtBC,GAAIA,EAAE,cACOC,GAAcqB,EAAUC,EAAuBJ,aAAcnB,KAIlF"}
@@ -1,2 +0,0 @@
1
- var e={colorPicker:"colorPicker",colorPickerDialogContent:"colorPickerDialogContent"};!function(e){const t="s_id-ffacbf9b6446_4_5_10";if("undefined"!=typeof document){const n=document.head||document.getElementsByTagName("head")[0];if(n.querySelector("#"+t))return;const o=document.createElement("style");o.id=t,n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.appendChild(document.createTextNode(e))}else globalThis.injectedStyles&&(globalThis.injectedStyles[t]=e)}(".colorPicker.colorPickerDialogContent {\n z-index: 1;\n padding: 12px;\n display: flex;\n justify-content: center;\n align-items: center;\n}");export{e as default};
2
- //# sourceMappingURL=ColorPicker.module.scss.js.map
@@ -1,2 +0,0 @@
1
- import{defineProperty as r}from"../../../_virtual/_rollupPluginBabelHelpers.js";import{SIZES as e}from"../../constants/sizes.js";var o=5,s=r(r(r({},e.SMALL,24),e.MEDIUM,32),e.LARGE,40),t=8,i=24;export{t as COLOR_PADDING,s as COLOR_SIZES,o as DEFAULT_NUMBER_OF_COLORS_IN_LINE,i as DIALOG_WIDTH_PADDING};
2
- //# sourceMappingURL=ColorPickerConstants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ColorPickerConstants.js","sources":["../../../../../src/components/ColorPicker/ColorPickerConstants.ts"],"sourcesContent":["import { type BaseSizes, SIZES } from \"../../constants/sizes\";\n\nexport const DEFAULT_NUMBER_OF_COLORS_IN_LINE = 5;\n\nexport const COLOR_SIZES: Record<BaseSizes, number> = {\n [SIZES.SMALL]: 24,\n [SIZES.MEDIUM]: 32,\n [SIZES.LARGE]: 40\n};\n\nexport const COLOR_PADDING = 8;\nexport const DIALOG_WIDTH_PADDING = 24;\n"],"names":["DEFAULT_NUMBER_OF_COLORS_IN_LINE","COLOR_SIZES","_defineProperty","SIZES","SMALL","MEDIUM","LARGE","COLOR_PADDING","DIALOG_WIDTH_PADDING"],"mappings":"iIAEO,IAAMA,EAAmC,EAEnCC,EAAWC,EAAAA,EAAAA,EAAA,CAAA,EACrBC,EAAMC,MAAQ,IACdD,EAAME,OAAS,IACfF,EAAMG,MAAQ,IAGJC,EAAgB,EAChBC,EAAuB"}
@@ -1,2 +0,0 @@
1
- import e,{forwardRef as o}from"react";import r from"../../../../hooks/useGridKeyboardNavigation/useGridKeyboardNavigation.js";import{Button as t}from"@vibe/button/mockedClassNames";import{NOOP as n}from"@vibe/shared";import i from"./ColorPickerClearButton.module.scss.js";var a=o((function(o,a){var m=o.text,s=o.Icon,l=r({ref:a,itemsCount:1,numberOfItemsInLine:1,onItemClicked:o.onClick,getItemByIndex:n}).onSelectionAction;return e.createElement(t,{ref:a,size:"small",kind:"tertiary",onClick:function(){return l(-1)},blurOnMouseUp:!1,className:i.clearColorButton},e.createElement(s,{size:"16",className:i.clearColorIcon}),m||"Clear")}));export{a as default};
2
- //# sourceMappingURL=ColorPickerClearButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ColorPickerClearButton.js","sources":["../../../../../../../src/components/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.tsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\nimport useGridKeyboardNavigation from \"../../../../hooks/useGridKeyboardNavigation/useGridKeyboardNavigation\";\nimport { Button } from \"@vibe/button\";\nimport { type VibeComponentProps } from \"../../../../types\";\nimport { type SubIcon } from \"@vibe/icon\";\nimport { NOOP } from \"@vibe/shared\";\nimport styles from \"./ColorPickerClearButton.module.scss\";\n\nexport interface ColorPickerClearButtonProps extends VibeComponentProps {\n /**\n * Callback fired when the clear button is clicked.\n */\n onClick: () => void;\n /**\n * The text displayed inside the button.\n */\n text?: string;\n /**\n * The icon displayed inside the button.\n */\n Icon: SubIcon;\n}\n\nconst ColorPickerClearButton = forwardRef(\n ({ onClick, text, Icon }: ColorPickerClearButtonProps, ref: React.ForwardedRef<HTMLButtonElement>) => {\n const { onSelectionAction } = useGridKeyboardNavigation({\n ref: ref as React.MutableRefObject<HTMLElement>,\n itemsCount: 1,\n numberOfItemsInLine: 1,\n onItemClicked: onClick,\n getItemByIndex: NOOP //hack - we don't really have a grid, it's just for keyboard navigation outside the clear button\n });\n\n return (\n <Button\n ref={ref}\n size=\"small\"\n kind=\"tertiary\"\n onClick={() => onSelectionAction(-1)} //hack - we don't really have a grid, it's just for keyboard navigation outside the clear button\n blurOnMouseUp={false}\n className={styles.clearColorButton}\n >\n <Icon size=\"16\" className={styles.clearColorIcon} />\n {text || \"Clear\"}\n </Button>\n );\n }\n);\n\nexport default ColorPickerClearButton;\n"],"names":["ColorPickerClearButton","forwardRef","_ref","ref","text","Icon","onSelectionAction","useGridKeyboardNavigation","itemsCount","numberOfItemsInLine","onItemClicked","onClick","getItemByIndex","NOOP","React","createElement","Button","size","kind","blurOnMouseUp","className","styles","clearColorButton","clearColorIcon"],"mappings":"gRAuBMA,IAAAA,EAAyBC,GAC7B,SAAAC,EAAuDC,GAA8C,IAAzFC,EAAIF,EAAJE,KAAMC,EAAIH,EAAJG,KACRC,EAAsBC,EAA0B,CACtDJ,IAAKA,EACLK,WAAY,EACZC,oBAAqB,EACrBC,cALMR,EAAPS,QAMCC,eAAgBC,IALVP,kBAQR,OACEQ,EAAAC,cAACC,EAAM,CACLb,IAAKA,EACLc,KAAK,QACLC,KAAK,WACLP,QAAS,WAAA,OAAML,GAAmB,EAAE,EACpCa,eAAe,EACfC,UAAWC,EAAOC,kBAElBR,EAACC,cAAAV,EAAK,CAAAY,KAAK,KAAKG,UAAWC,EAAOE,iBACjCnB,GAAQ,QAGf"}
@@ -1,2 +0,0 @@
1
- var e={clearColorIcon:"clearColorIcon",clearColorButton:"clearColorButton"};!function(e){const n="s_id-745441469971_4_5_10";if("undefined"!=typeof document){const o=document.head||document.getElementsByTagName("head")[0];if(o.querySelector("#"+n))return;const t=document.createElement("style");t.id=n,o.firstChild?o.insertBefore(t,o.firstChild):o.appendChild(t),t.appendChild(document.createTextNode(e))}else globalThis.injectedStyles&&(globalThis.injectedStyles[n]=e)}(".clearColorIcon {\n margin-inline-end: var(--space-8);\n}\n\n.clearColorButton {\n margin-top: var(--space-8);\n}");export{e as default};
2
- //# sourceMappingURL=ColorPickerClearButton.module.scss.js.map
@@ -1,2 +0,0 @@
1
- import{slicedToArray as o}from"../../../../../_virtual/_rollupPluginBabelHelpers.js";import e,{forwardRef as r,useCallback as t,useState as n}from"react";import{useIsomorphicLayoutEffect as i}from"@vibe/shared";import c from"../../../../hooks/useGridKeyboardNavigation/useGridKeyboardNavigation.js";import l from"../ColorPickerItemComponent/ColorPickerItemComponent.js";import a from"./ColorPickerColorsGrid.module.scss.js";var d=0,u=function(e){var r=n(),t=o(r,2),c=t[0],l=t[1];return i((function(){l(e||"color-picker-grid-".concat(d++))}),[e]),c},s=function(o,e){return e&&e[o]?e[o]:function(o){return o.replace(/-|_/g," ").replace(/(?:^|\s)\S/g,(function(o){return o.toUpperCase()}))}(o)},m=r((function(o,r){var n=o.onColorClicked,i=o.colorsToRender,d=o.numberOfColorsInLine,m=o.focusOnMount,f=o.value,p=o.colorStyle,C=o.ColorIndicatorIcon,I=o.shouldRenderIndicatorWithoutBackground,v=o.SelectedIndicatorIcon,y=o.colorSize,S=o.tooltipContentByColor,g=o.colorShape,k=o.showColorNameTooltip,h=o.id,b=o["data-testid"],A=t((function(o){return i[o]}),[i]),x=c({focusOnMount:m,ref:r,onItemClicked:n,itemsCount:i.length,numberOfItemsInLine:d,entryFocusStrategy:"first",getItemByIndex:A}),B=x.activeIndex,j=x.onSelectionAction,G=u(h),N=function(o){return G?"".concat(G,"-item-").concat(o):void 0},O=0>B?void 0:N(B);return e.createElement("ul",{className:a.colorsGrid,ref:r,tabIndex:0,id:h,"data-testid":b,role:"listbox","aria-activedescendant":O},i.map((function(o,r){return e.createElement(l,{key:o,id:N(r),color:o,colorAriaLabel:s(o,S),onColorClicked:function(){return j(r)},shouldRenderIndicatorWithoutBackground:C&&I,colorStyle:p,ColorIndicatorIcon:C,SelectedIndicatorIcon:v,isSelected:Array.isArray(f)?f.includes(o):f===o,isActive:r===B,colorSize:y,tooltipContent:k?s(o,S):void 0,colorShape:g})})))}));export{m as default};
2
- //# sourceMappingURL=ColorPickerColorsGrid.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ColorPickerColorsGrid.js","sources":["../../../../../../../src/components/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.tsx"],"sourcesContent":["import React, { forwardRef, useCallback, useState } from \"react\";\nimport { useIsomorphicLayoutEffect } from \"@vibe/shared\";\nimport useGridKeyboardNavigation from \"../../../../hooks/useGridKeyboardNavigation/useGridKeyboardNavigation\";\nimport ColorPickerItemComponent from \"../ColorPickerItemComponent/ColorPickerItemComponent\";\nimport { type CONTENT_COLORS_VALUES } from \"../../../../utils/colors-vars-map\";\nimport { type ColorPickerArrayValueOnly, type ColorPickerValueOnly } from \"../../ColorPicker.types\";\nimport { type ColorShapes, type ColorPickerSizes } from \"../../ColorPicker.types\";\nimport { type VibeComponentProps } from \"../../../../types\";\nimport { type SubIcon } from \"@vibe/icon\";\nimport styles from \"./ColorPickerColorsGrid.module.scss\";\nimport { type ColorStyle } from \"../../../../types\";\n\nlet colorPickerGridIdCounter = 0;\nconst generateColorPickerGridId = () => `color-picker-grid-${colorPickerGridIdCounter++}`;\n\nconst useColorPickerGridId = (id: string) => {\n const [gridId, setGridId] = useState<string>();\n useIsomorphicLayoutEffect(() => {\n setGridId(id || generateColorPickerGridId());\n }, [id]);\n return gridId;\n};\n\nconst formatColorNameForTooltip = (color: ColorPickerValueOnly) => {\n return color.replace(/-|_/g, \" \").replace(/(?:^|\\s)\\S/g, function (a) {\n return a.toUpperCase();\n });\n};\n\nconst calculateColorTooltip = (\n color: ColorPickerValueOnly,\n tooltipContentByColor?: Partial<Record<CONTENT_COLORS_VALUES, string> & Record<string, string>>\n) => {\n if (tooltipContentByColor && tooltipContentByColor[color]) {\n return tooltipContentByColor[color];\n } else {\n return formatColorNameForTooltip(color);\n }\n};\n\nexport interface ColorPickerColorsGridProps extends VibeComponentProps {\n /**\n * Callback fired when a color is clicked.\n */\n onColorClicked?: (color: ColorPickerValueOnly) => void;\n /**\n * The list of colors to be displayed.\n */\n colorsToRender?: ColorPickerArrayValueOnly;\n /**\n * Icon displayed as an indicator inside the color.\n */\n ColorIndicatorIcon?: SubIcon;\n /**\n * Icon displayed when a color is selected.\n */\n SelectedIndicatorIcon?: SubIcon;\n /**\n * The style applied to the colors.\n */\n colorStyle?: ColorStyle;\n /**\n * The currently selected color or colors.\n */\n value?: string | string[];\n /**\n * If true, renders the color indicator without a background.\n */\n shouldRenderIndicatorWithoutBackground?: boolean;\n /**\n * The size of the color items.\n */\n colorSize?: ColorPickerSizes;\n /**\n * The number of colors per row.\n */\n numberOfColorsInLine?: number;\n /**\n * Custom tooltip content for specific colors.\n */\n tooltipContentByColor?: Partial<Record<CONTENT_COLORS_VALUES, string> & Record<string, string>>;\n /**\n * If true, the first color is focused when the component mounts.\n */\n focusOnMount?: boolean;\n /**\n * The shape of the color items.\n */\n colorShape?: ColorShapes;\n /**\n * If true, displays a tooltip with the color name.\n */\n showColorNameTooltip?: boolean;\n}\n\nconst ColorPickerColorsGrid = forwardRef(\n (\n {\n onColorClicked,\n colorsToRender,\n numberOfColorsInLine,\n focusOnMount,\n value,\n colorStyle,\n ColorIndicatorIcon,\n shouldRenderIndicatorWithoutBackground,\n SelectedIndicatorIcon,\n colorSize,\n tooltipContentByColor,\n colorShape,\n showColorNameTooltip: showColorNameTooltip,\n id,\n \"data-testid\": dataTestId\n }: ColorPickerColorsGridProps,\n ref: React.ForwardedRef<HTMLUListElement>\n ) => {\n const getItemByIndex = useCallback((index: number) => colorsToRender[index], [colorsToRender]);\n\n const { activeIndex, onSelectionAction } = useGridKeyboardNavigation({\n focusOnMount,\n ref: ref as React.MutableRefObject<HTMLUListElement>,\n onItemClicked: onColorClicked,\n itemsCount: colorsToRender.length,\n numberOfItemsInLine: numberOfColorsInLine,\n entryFocusStrategy: \"first\",\n getItemByIndex\n });\n\n const gridId = useColorPickerGridId(id);\n const getColorItemId = (index: number) => (gridId ? `${gridId}-item-${index}` : undefined);\n const activeDescendantId = activeIndex >= 0 ? getColorItemId(activeIndex) : undefined;\n\n return (\n <ul\n className={styles.colorsGrid}\n ref={ref}\n tabIndex={0}\n id={id}\n data-testid={dataTestId}\n role=\"listbox\"\n aria-activedescendant={activeDescendantId}\n >\n {colorsToRender.map((color, index) => {\n return (\n <ColorPickerItemComponent\n key={color}\n id={getColorItemId(index)}\n color={color}\n colorAriaLabel={calculateColorTooltip(color, tooltipContentByColor)}\n onColorClicked={() => onSelectionAction(index)}\n shouldRenderIndicatorWithoutBackground={ColorIndicatorIcon && shouldRenderIndicatorWithoutBackground}\n colorStyle={colorStyle}\n ColorIndicatorIcon={ColorIndicatorIcon}\n SelectedIndicatorIcon={SelectedIndicatorIcon}\n isSelected={Array.isArray(value) ? value.includes(color) : value === color}\n isActive={index === activeIndex}\n colorSize={colorSize}\n tooltipContent={showColorNameTooltip ? calculateColorTooltip(color, tooltipContentByColor) : undefined}\n colorShape={colorShape}\n />\n );\n })}\n </ul>\n );\n }\n);\n\nexport default ColorPickerColorsGrid;\n"],"names":["colorPickerGridIdCounter","useColorPickerGridId","id","_useState","useState","_useState2","_slicedToArray","gridId","setGridId","useIsomorphicLayoutEffect","concat","calculateColorTooltip","color","tooltipContentByColor","replace","a","toUpperCase","formatColorNameForTooltip","ColorPickerColorsGrid","forwardRef","_ref","ref","onColorClicked","colorsToRender","numberOfColorsInLine","focusOnMount","value","colorStyle","ColorIndicatorIcon","shouldRenderIndicatorWithoutBackground","SelectedIndicatorIcon","colorSize","colorShape","showColorNameTooltip","dataTestId","getItemByIndex","useCallback","index","_useGridKeyboardNavig","useGridKeyboardNavigation","onItemClicked","itemsCount","length","numberOfItemsInLine","entryFocusStrategy","activeIndex","onSelectionAction","getColorItemId","undefined","activeDescendantId","React","createElement","className","styles","colorsGrid","tabIndex","role","map","ColorPickerItemComponent","key","colorAriaLabel","isSelected","Array","isArray","includes","isActive","tooltipContent"],"mappings":"waAYA,IAAIA,EAA2B,EAGzBC,EAAuB,SAACC,GAC5B,IAAAC,EAA4BC,IAAkBC,EAAAC,EAAAH,EAAA,GAAvCI,EAAMF,EAAA,GAAEG,EAASH,EAAA,GAIxB,OAHAI,GAA0B,WACxBD,EAAUN,GALiBQ,qBAAAA,OAA8BV,KAM3D,GAAG,CAACE,IACGK,CACT,EAQMI,EAAwB,SAC5BC,EACAC,GAEA,OAAIA,GAAyBA,EAAsBD,GAC1CC,EAAsBD,GAXC,SAACA,GACjC,OAAOA,EAAME,QAAQ,OAAQ,KAAKA,QAAQ,eAAe,SAAUC,GACjE,OAAOA,EAAEC,aACX,GACF,CASWC,CAA0BL,EAErC,EAyDMM,EAAwBC,GAC5B,SAAAC,EAkBEC,GACE,IAjBAC,EAAcF,EAAdE,eACAC,EAAcH,EAAdG,eACAC,EAAoBJ,EAApBI,qBACAC,EAAYL,EAAZK,aACAC,EAAKN,EAALM,MACAC,EAAUP,EAAVO,WACAC,EAAkBR,EAAlBQ,mBACAC,EAAsCT,EAAtCS,uCACAC,EAAqBV,EAArBU,sBACAC,EAASX,EAATW,UACAlB,EAAqBO,EAArBP,sBACAmB,EAAUZ,EAAVY,WACsBC,EAAoBb,EAA1Ca,qBACA/B,EAAEkB,EAAFlB,GACegC,EAAUd,EAAzB,eAIIe,EAAiBC,GAAY,SAACC,GAAa,OAAKd,EAAec,KAAQ,CAACd,IAE9Ee,EAA2CC,EAA0B,CACnEd,aAAAA,EACAJ,IAAKA,EACLmB,cAAelB,EACfmB,WAAYlB,EAAemB,OAC3BC,oBAAqBnB,EACrBoB,mBAAoB,QACpBT,eAAAA,IAPMU,EAAWP,EAAXO,YAAaC,EAAiBR,EAAjBQ,kBAUfvC,EAASN,EAAqBC,GAC9B6C,EAAiB,SAACV,GAAa,OAAM9B,EAAMG,GAAAA,OAAMH,YAAMG,OAAS2B,QAAUW,GAC1EC,EAAoC,EAAfJ,OAAiDG,EAA9BD,EAAeF,GAE7D,OACEK,EACEC,cAAA,KAAA,CAAAC,UAAWC,EAAOC,WAClBjC,IAAKA,EACLkC,SAAU,EACVrD,GAAIA,EAAE,cACOgC,EACbsB,KAAK,kCACkBP,GAEtB1B,EAAekC,KAAI,SAAC7C,EAAOyB,GAC1B,OACEa,EAACC,cAAAO,EACC,CAAAC,IAAK/C,EACLV,GAAI6C,EAAeV,GACnBzB,MAAOA,EACPgD,eAAgBjD,EAAsBC,EAAOC,GAC7CS,eAAgB,WAAA,OAAMwB,EAAkBT,EAAM,EAC9CR,uCAAwCD,GAAsBC,EAC9DF,WAAYA,EACZC,mBAAoBA,EACpBE,sBAAuBA,EACvB+B,WAAYC,MAAMC,QAAQrC,GAASA,EAAMsC,SAASpD,GAASc,IAAUd,EACrEqD,SAAU5B,IAAUQ,EACpBd,UAAWA,EACXmC,eAAgBjC,EAAuBtB,EAAsBC,EAAOC,QAAyBmC,EAC7FhB,WAAYA,GAGjB,IAGP"}
@@ -1,2 +0,0 @@
1
- var e={colorsGrid:"colorsGrid"};!function(e){const n="s_id-0a5f0eb78ee4_4_5_10";if("undefined"!=typeof document){const t=document.head||document.getElementsByTagName("head")[0];if(t.querySelector("#"+n))return;const d=document.createElement("style");d.id=n,t.firstChild?t.insertBefore(d,t.firstChild):t.appendChild(d),d.appendChild(document.createTextNode(e))}else globalThis.injectedStyles&&(globalThis.injectedStyles[n]=e)}(".colorsGrid {\n padding: 0;\n outline: none;\n display: flex;\n flex-wrap: wrap;\n}");export{e as default};
2
- //# sourceMappingURL=ColorPickerColorsGrid.module.scss.js.map
@@ -1,2 +0,0 @@
1
- import{toConsumableArray as o}from"../../../../../_virtual/_rollupPluginBabelHelpers.js";import{difference as e,intersection as r}from"es-toolkit";import t,{forwardRef as i,useRef as l,useCallback as n,useMemo as a}from"react";import{BaseSizes as s}from"../../../../constants/sizes.js";import{contentColors as c}from"../../../../utils/colors-vars-map.js";import{NoColor as d}from"@vibe/icons";import{DEFAULT_NUMBER_OF_COLORS_IN_LINE as u}from"../../ColorPickerConstants.js";import{calculateColorPickerWidth as m}from"../../services/ColorPickerStyleService.js";import{useGridKeyboardNavigationContext as f,GridKeyboardNavigationContext as C}from"../../../GridKeyboardNavigationContext/GridKeyboardNavigationContext.js";import p from"./ColorPickerClearButton.js";import v from"./ColorPickerColorsGrid.js";import{useMergeRef as I}from"@vibe/shared";var h=i((function(i,h){var b=i.className,k=i.onValueChange,S=i.value,y=i.noColorText,j=i.colorStyle,g=void 0===j?"regular":j,x=i.ColorIndicatorIcon,B=i.SelectedIndicatorIcon,E=i.shouldRenderIndicatorWithoutBackground,N=i.NoColorIcon,M=void 0===N?d:N,P=i.isBlackListMode,L=void 0===P||P,O=i.colorsList,w=i.isMultiselect,R=i.colorSize,T=void 0===R?s.MEDIUM:R,z=i.numberOfColorsInLine,G=void 0===z?u:z,K=i.tooltipContentByColor,U=void 0===K?{}:K,W=i.focusOnMount,_=i.colorShape,q=void 0===_?"square":_,A=i.forceUseRawColorList,D=i.showColorNameTooltip,H=i.id,V=i["data-testid"],F=l(null),J=I(h,F),Q=l(null),X=l(null),Y=n((function(){k(null)}),[k]),Z=a((function(){return A?O:L?e(c,O):r(c,O)}),[A,L,O]),$=n((function(e){if(w){var r=o(S);if(r.includes(e)){var t=r.indexOf(e);t>-1&&r.splice(t,1)}else r.push(e);k(r)}else k([e])}),[w,k,S]),oo=a((function(){return[{topElement:Q,bottomElement:X}]}),[]),eo=f(oo,F),ro=m(T,G);return t.createElement("div",{className:b,style:{width:ro},ref:J,tabIndex:-1},t.createElement(C.Provider,{value:eo},t.createElement(v,{ref:Q,onColorClicked:$,colorsToRender:Z,numberOfColorsInLine:G,focusOnMount:W,value:S,colorStyle:g,ColorIndicatorIcon:x,shouldRenderIndicatorWithoutBackground:E,SelectedIndicatorIcon:B,colorSize:T,tooltipContentByColor:U,colorShape:q,showColorNameTooltip:D,id:H,"data-testid":V}),y&&t.createElement(p,{Icon:M,onClick:Y,text:y,ref:X})))}));export{h as default};
2
- //# sourceMappingURL=ColorPickerContent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ColorPickerContent.js","sources":["../../../../../../../src/components/ColorPicker/components/ColorPickerContent/ColorPickerContent.tsx"],"sourcesContent":["import { difference as _difference, intersection as _intersection } from \"es-toolkit\";\nimport React, { forwardRef, useCallback, useMemo, useRef } from \"react\";\nimport { BaseSizes } from \"../../../../constants\";\nimport { type CONTENT_COLORS_VALUES, contentColors } from \"../../../../utils/colors-vars-map\";\nimport { NoColor } from \"@vibe/icons\";\nimport { DEFAULT_NUMBER_OF_COLORS_IN_LINE } from \"../../ColorPickerConstants\";\nimport {\n type ColorShapes,\n type ColorPickerSizes,\n type ColorPickerValue,\n type ColorPickerArrayValueOnly\n} from \"../../ColorPicker.types\";\nimport { calculateColorPickerWidth } from \"../../services/ColorPickerStyleService\";\nimport {\n GridKeyboardNavigationContext,\n useGridKeyboardNavigationContext\n} from \"../../../GridKeyboardNavigationContext\";\nimport ColorPickerClearButton from \"./ColorPickerClearButton\";\nimport ColorPickerColorsGrid from \"./ColorPickerColorsGrid\";\nimport { type VibeComponentProps } from \"../../../../types\";\nimport { type SubIcon } from \"@vibe/icon\";\nimport { useMergeRef } from \"@vibe/shared\";\nimport { type ColorStyle } from \"../../../../types\";\n\nexport interface ColorPickerContentProps extends VibeComponentProps {\n /**\n * The selected color(s).\n */\n value: ColorPickerValue;\n /**\n * Callback fired when the selected color(s) change.\n */\n onValueChange: (value: ColorPickerArrayValueOnly) => void;\n /**\n * The list of colors available for selection.\n */\n colorsList: ColorPickerArrayValueOnly;\n /**\n * Icon displayed as an indicator inside the color.\n */\n ColorIndicatorIcon?: SubIcon;\n /**\n * Icon displayed when a color is selected.\n */\n SelectedIndicatorIcon?: SubIcon;\n /**\n * Icon used for clearing the color selection.\n */\n NoColorIcon?: SubIcon;\n /**\n * The style applied to the colors.\n */\n colorStyle?: ColorStyle;\n /**\n * The size of the color items.\n */\n colorSize?: ColorPickerSizes;\n /**\n * The shape of the color items.\n */\n colorShape?: ColorShapes;\n /**\n * Custom tooltip content for specific colors.\n */\n tooltipContentByColor?: Partial<Record<CONTENT_COLORS_VALUES, string>>;\n /**\n * Text displayed for the \"no color\" option.\n */\n noColorText?: string;\n /**\n * If true, renders the color indicator without a background.\n */\n shouldRenderIndicatorWithoutBackground?: boolean;\n /**\n * If true, treats the color list as a blacklist rather than a whitelist.\n */\n isBlackListMode?: boolean;\n /**\n * The number of colors displayed per row.\n */\n numberOfColorsInLine?: number;\n /**\n * If true, the first color is focused when the component mounts.\n */\n focusOnMount?: boolean;\n /**\n * If true, allows selecting multiple colors.\n */\n isMultiselect?: boolean;\n /**\n * Used to force the component render the colorList prop as is. Usually, this flag should not be used. It's intended only for edge cases.\n * Usually, only \"monday colors\" will be rendered (unless blacklist mode is used). This flag will override this behavior.\n */\n forceUseRawColorList?: boolean;\n /**\n * Used to enable color name tooltip on each color in the component.\n * When \"tooltipContentByColor\" is supplied, it will override the color name tooltip.\n */\n showColorNameTooltip?: boolean;\n}\n\nconst ColorPickerContent = forwardRef(\n (\n {\n className,\n onValueChange,\n value,\n noColorText,\n colorStyle = \"regular\",\n ColorIndicatorIcon,\n SelectedIndicatorIcon,\n shouldRenderIndicatorWithoutBackground,\n NoColorIcon = NoColor,\n isBlackListMode = true,\n colorsList,\n isMultiselect,\n colorSize = BaseSizes.MEDIUM,\n numberOfColorsInLine = DEFAULT_NUMBER_OF_COLORS_IN_LINE,\n tooltipContentByColor = {},\n focusOnMount,\n colorShape = \"square\",\n forceUseRawColorList,\n showColorNameTooltip,\n id,\n \"data-testid\": dataTestId\n }: ColorPickerContentProps,\n ref: React.ForwardedRef<HTMLDivElement>\n ) => {\n const gridRef = useRef(null);\n const mergedRef = useMergeRef(ref, gridRef);\n const colorsRef = useRef(null);\n const buttonRef = useRef(null);\n\n const onClearButton = useCallback(() => {\n onValueChange(null);\n }, [onValueChange]);\n\n const colorsToRender = useMemo(() => {\n if (forceUseRawColorList) {\n return colorsList;\n }\n return isBlackListMode ? _difference(contentColors, colorsList) : _intersection(contentColors, colorsList);\n }, [forceUseRawColorList, isBlackListMode, colorsList]);\n\n const onColorClicked = useCallback(\n (color: CONTENT_COLORS_VALUES) => {\n if (!isMultiselect) {\n onValueChange([color]);\n return;\n }\n const colors = [...value];\n if (colors.includes(color)) {\n const indexInSelected = colors.indexOf(color);\n if (indexInSelected > -1) {\n colors.splice(indexInSelected, 1);\n }\n } else {\n colors.push(color);\n }\n onValueChange(colors);\n },\n [isMultiselect, onValueChange, value]\n );\n\n const positions = useMemo(() => [{ topElement: colorsRef, bottomElement: buttonRef }], []);\n const keyboardContext = useGridKeyboardNavigationContext(positions, gridRef);\n const width = calculateColorPickerWidth(colorSize as BaseSizes, numberOfColorsInLine);\n\n return (\n <div className={className} style={{ width }} ref={mergedRef} tabIndex={-1}>\n <GridKeyboardNavigationContext.Provider value={keyboardContext}>\n <ColorPickerColorsGrid\n ref={colorsRef}\n onColorClicked={onColorClicked}\n colorsToRender={colorsToRender}\n numberOfColorsInLine={numberOfColorsInLine}\n focusOnMount={focusOnMount}\n value={value}\n colorStyle={colorStyle}\n ColorIndicatorIcon={ColorIndicatorIcon}\n shouldRenderIndicatorWithoutBackground={shouldRenderIndicatorWithoutBackground}\n SelectedIndicatorIcon={SelectedIndicatorIcon}\n colorSize={colorSize}\n tooltipContentByColor={tooltipContentByColor}\n colorShape={colorShape}\n showColorNameTooltip={showColorNameTooltip}\n id={id}\n data-testid={dataTestId}\n />\n {noColorText && (\n <ColorPickerClearButton Icon={NoColorIcon} onClick={onClearButton} text={noColorText} ref={buttonRef} />\n )}\n </GridKeyboardNavigationContext.Provider>\n </div>\n );\n }\n);\n\nexport default ColorPickerContent;\n"],"names":["ColorPickerContent","forwardRef","_ref","ref","className","onValueChange","value","noColorText","_ref$colorStyle","colorStyle","ColorIndicatorIcon","SelectedIndicatorIcon","shouldRenderIndicatorWithoutBackground","_ref$NoColorIcon","NoColorIcon","NoColor","_ref$isBlackListMode","isBlackListMode","colorsList","isMultiselect","_ref$colorSize","colorSize","BaseSizes","MEDIUM","_ref$numberOfColorsIn","numberOfColorsInLine","DEFAULT_NUMBER_OF_COLORS_IN_LINE","_ref$tooltipContentBy","tooltipContentByColor","focusOnMount","_ref$colorShape","colorShape","forceUseRawColorList","showColorNameTooltip","id","dataTestId","gridRef","useRef","mergedRef","useMergeRef","colorsRef","buttonRef","onClearButton","useCallback","colorsToRender","useMemo","_difference","contentColors","_intersection","onColorClicked","color","colors","_toConsumableArray","includes","indexInSelected","indexOf","splice","push","positions","topElement","bottomElement","keyboardContext","useGridKeyboardNavigationContext","width","calculateColorPickerWidth","React","createElement","style","tabIndex","GridKeyboardNavigationContext","Provider","ColorPickerColorsGrid","ColorPickerClearButton","Icon","onClick","text"],"mappings":"80BAqGMA,IAAAA,EAAqBC,GACzB,SAAAC,EAwBEC,GACE,IAvBAC,EAASF,EAATE,UACAC,EAAaH,EAAbG,cACAC,EAAKJ,EAALI,MACAC,EAAWL,EAAXK,YAAWC,EAAAN,EACXO,WAAAA,OAAa,IAAHD,EAAG,UAASA,EACtBE,EAAkBR,EAAlBQ,mBACAC,EAAqBT,EAArBS,sBACAC,EAAsCV,EAAtCU,uCAAsCC,EAAAX,EACtCY,YAAAA,OAAcC,IAAHF,EAAGE,EAAOF,EAAAG,EAAAd,EACrBe,gBAAAA,OAAkB,IAAHD,GAAOA,EACtBE,EAAUhB,EAAVgB,WACAC,EAAajB,EAAbiB,cAAaC,EAAAlB,EACbmB,UAAAA,OAAS,IAAAD,EAAGE,EAAUC,OAAMH,EAAAI,EAAAtB,EAC5BuB,qBAAAA,OAAuBC,IAAHF,EAAGE,EAAgCF,EAAAG,EAAAzB,EACvD0B,sBAAAA,OAAqB,IAAAD,EAAG,CAAE,EAAAA,EAC1BE,EAAY3B,EAAZ2B,aAAYC,EAAA5B,EACZ6B,WAAAA,OAAa,IAAHD,EAAG,SAAQA,EACrBE,EAAoB9B,EAApB8B,qBACAC,EAAoB/B,EAApB+B,qBACAC,EAAEhC,EAAFgC,GACeC,EAAUjC,EAAzB,eAIIkC,EAAUC,EAAO,MACjBC,EAAYC,EAAYpC,EAAKiC,GAC7BI,EAAYH,EAAO,MACnBI,EAAYJ,EAAO,MAEnBK,EAAgBC,GAAY,WAChCtC,EAAc,KAChB,GAAG,CAACA,IAEEuC,EAAiBC,GAAQ,WAC7B,OAAIb,EACKd,EAEFD,EAAkB6B,EAAYC,EAAe7B,GAAc8B,EAAcD,EAAe7B,EAChG,GAAE,CAACc,EAAsBf,EAAiBC,IAErC+B,EAAiBN,GACrB,SAACO,GACC,GAAK/B,EAAL,CAIA,IAAMgC,EAAMC,EAAO9C,GACnB,GAAI6C,EAAOE,SAASH,GAAQ,CAC1B,IAAMI,EAAkBH,EAAOI,QAAQL,GACnCI,GAAmB,GACrBH,EAAOK,OAAOF,EAAiB,EAEnC,MACEH,EAAOM,KAAKP,GAEd7C,EAAc8C,EAVd,MAFE9C,EAAc,CAAC6C,GAalB,GACD,CAAC/B,EAAed,EAAeC,IAG3BoD,GAAYb,GAAQ,WAAA,MAAM,CAAC,CAAEc,WAAYnB,EAAWoB,cAAenB,GAAY,GAAE,IACjFoB,GAAkBC,EAAiCJ,GAAWtB,GAC9D2B,GAAQC,EAA0B3C,EAAwBI,GAEhE,OACEwC,EAAKC,cAAA,MAAA,CAAA9D,UAAWA,EAAW+D,MAAO,CAAEJ,MAAAA,IAAS5D,IAAKmC,EAAW8B,UAAW,GACtEH,EAAAC,cAACG,EAA8BC,SAAS,CAAAhE,MAAOuD,IAC7CI,EAAAC,cAACK,EAAqB,CACpBpE,IAAKqC,EACLS,eAAgBA,EAChBL,eAAgBA,EAChBnB,qBAAsBA,EACtBI,aAAcA,EACdvB,MAAOA,EACPG,WAAYA,EACZC,mBAAoBA,EACpBE,uCAAwCA,EACxCD,sBAAuBA,EACvBU,UAAWA,EACXO,sBAAuBA,EACvBG,WAAYA,EACZE,qBAAsBA,EACtBC,GAAIA,EAAE,cACOC,IAEd5B,GACC0D,EAAAC,cAACM,EAAsB,CAACC,KAAM3D,EAAa4D,QAAShC,EAAeiC,KAAMpE,EAAaJ,IAAKsC,KAKrG"}
@@ -1,2 +0,0 @@
1
- import{defineProperty as e}from"../../../../../_virtual/_rollupPluginBabelHelpers.js";import{camelCase as o}from"es-toolkit";import{getStyle as t}from"@vibe/shared";import r from"classnames";import l,{forwardRef as n,useMemo as a,useRef as i,useCallback as s,useEffect as c}from"react";import{contentColors as m}from"../../../../utils/colors-vars-map.js";import d from"../../../../utils/colors-utils.js";import{Icon as u}from"@vibe/icon/mockedClassNames";import{Tooltip as p}from"@vibe/tooltip/mockedClassNames";import{Clickable as f}from"@vibe/clickable/mockedClassNames";import{getTestId as v}from"../../../../tests/testIds.js";import{ComponentDefaultTestId as C}from"../../../../tests/constants.js";import I from"./ColorPickerItemComponent.module.scss.js";var b=n((function(n,b){var k=n.color,g=n.onColorClicked,E=n.colorStyle,y=void 0===E?"regular":E,N=n.shouldRenderIndicatorWithoutBackground,S=n.ColorIndicatorIcon,h=n.SelectedIndicatorIcon,j=void 0===h?S:h,L=n.isSelected,M=n.colorSize,A=n.tooltipContent,P=n.isActive,W=n.colorShape,_=n.colorAriaLabel,x=n.id,R=n["data-testid"],z=a((function(){return m.includes(k)}),[k]),B=z?d.getMondayColorAsStyle(k,y):k,D=i(null),O=s((function(){return g(k)}),[g,k]);c((function(){if((null==D?void 0:D.current)&&!N&&z){var e=D.current,o=function(e){e.target.style.background=d.getMondayColorAsStyle(k,"selected"===y?"regular":"hover")},t=function(e){e.target.style.background=B};return e.addEventListener("mouseenter",o,!1),e.addEventListener("mouseleave",t,!1),function(){e.removeEventListener("mouseenter",o,!1),e.removeEventListener("mouseleave",t,!1)}}}),[k,B,y,z,D,N]);var T=L||S,w=N?{color:B}:{};return l.createElement(p,{content:A},l.createElement("li",{id:x,role:"option","aria-selected":L,className:r(I.itemWrapper,e(e(e({},I.selectedColor,L),I.active,P),I.circle,"circle"===W)),"data-testid":R||v(C.COLOR_PICKER_ITEM,k)},l.createElement("div",{className:r(I.feedbackIndicator)}),l.createElement(f,{ref:D,role:"presentation","aria-label":_,className:r(I.colorItem,t(I,o("color-item-size-"+M)),e({},I.colorItemTextMode,N)),style:{background:N?"transparent":B},onClick:O,tabIndex:-1,onMouseDown:function(e){return e.preventDefault()}},l.createElement("div",{className:r(I.colorIndicatorWrapper),style:w},T&&l.createElement(u,{icon:L?j:S,className:r(e({},I.colorIconWhite,!N)),ignoreFocusStyle:!0})))))}));export{b as default};
2
- //# sourceMappingURL=ColorPickerItemComponent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ColorPickerItemComponent.js","sources":["../../../../../../../src/components/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.tsx"],"sourcesContent":["import { camelCase } from \"es-toolkit\";\nimport { getStyle } from \"@vibe/shared\";\nimport cx from \"classnames\";\nimport React, { useRef, useCallback, useMemo, forwardRef, useEffect } from \"react\";\nimport { contentColors } from \"../../../../utils/colors-vars-map\";\nimport ColorUtils from \"../../../../utils/colors-utils\";\nimport { Icon } from \"@vibe/icon\";\nimport { Tooltip } from \"@vibe/tooltip\";\nimport { Clickable } from \"@vibe/clickable\";\nimport { type ColorPickerValueOnly } from \"../../ColorPicker.types\";\nimport { type ColorShapes, type ColorPickerSizes } from \"../../ColorPicker.types\";\nimport { getTestId } from \"../../../../tests/test-ids-utils\";\nimport { ComponentDefaultTestId } from \"../../../../tests/constants\";\nimport { type VibeComponentProps, type ElementContent, type ColorStyle } from \"../../../../types\";\nimport { type SubIcon } from \"@vibe/icon\";\nimport styles from \"./ColorPickerItemComponent.module.scss\";\n\nexport interface ColorPickerItemComponentProps extends VibeComponentProps {\n /**\n * The color value of the item.\n */\n color: ColorPickerValueOnly;\n /**\n * Callback fired when the color is clicked.\n */\n onColorClicked: (color: ColorPickerValueOnly) => void;\n /**\n * The style applied to the color.\n */\n colorStyle: ColorStyle;\n /**\n * If true, renders the color indicator without a background.\n */\n shouldRenderIndicatorWithoutBackground: boolean;\n /**\n * Icon displayed inside the color item.\n */\n ColorIndicatorIcon: SubIcon;\n /**\n * Icon displayed when the color is selected.\n */\n SelectedIndicatorIcon: SubIcon;\n /**\n * If true, the color is marked as selected.\n */\n isSelected: boolean;\n /**\n * The size of the color item.\n */\n colorSize: ColorPickerSizes;\n /**\n * Tooltip content for the color item.\n */\n tooltipContent: ElementContent;\n /**\n * If true, the color item is currently active.\n */\n isActive: boolean;\n /**\n * The shape of the color item.\n */\n colorShape: ColorShapes;\n /**\n * Human-readable label for the color, used for screen reader announcements.\n */\n colorAriaLabel: string;\n}\n\nconst ColorPickerItemComponent = forwardRef(\n (\n {\n color,\n onColorClicked,\n colorStyle = \"regular\",\n shouldRenderIndicatorWithoutBackground,\n ColorIndicatorIcon,\n SelectedIndicatorIcon = ColorIndicatorIcon,\n isSelected,\n colorSize,\n tooltipContent,\n isActive,\n colorShape,\n colorAriaLabel,\n id,\n \"data-testid\": dataTestId\n }: ColorPickerItemComponentProps,\n _ref: React.ForwardedRef<HTMLElement>\n ) => {\n const isMondayColor = useMemo(() => (contentColors as readonly string[]).includes(color), [color]); // casting to any since color can be one of the system content colors but can also be a custom one\n const colorAsStyle = isMondayColor ? ColorUtils.getMondayColorAsStyle(color, colorStyle) : color;\n const itemRef = useRef<HTMLDivElement>(null);\n\n const onClick = useCallback(() => onColorClicked(color), [onColorClicked, color]);\n\n useEffect(() => {\n if (!itemRef?.current || shouldRenderIndicatorWithoutBackground || !isMondayColor) return;\n const item = itemRef.current;\n const setHoverColor = (e: MouseEvent) => {\n if (colorStyle === \"selected\") {\n (e.target as HTMLDivElement).style.background = ColorUtils.getMondayColorAsStyle(color, \"regular\");\n } else {\n (e.target as HTMLDivElement).style.background = ColorUtils.getMondayColorAsStyle(color, \"hover\");\n }\n };\n const restoreToOriginalColor = (e: MouseEvent) => {\n (e.target as HTMLDivElement).style.background = colorAsStyle;\n };\n item.addEventListener(\"mouseenter\", setHoverColor, false);\n item.addEventListener(\"mouseleave\", restoreToOriginalColor, false);\n\n return () => {\n item.removeEventListener(\"mouseenter\", setHoverColor, false);\n item.removeEventListener(\"mouseleave\", restoreToOriginalColor, false);\n };\n }, [color, colorAsStyle, colorStyle, isMondayColor, itemRef, shouldRenderIndicatorWithoutBackground]);\n\n const shouldRenderIcon = isSelected || ColorIndicatorIcon;\n const colorIndicatorWrapperStyle = shouldRenderIndicatorWithoutBackground ? { color: colorAsStyle } : {};\n return (\n <Tooltip content={tooltipContent}>\n <li\n id={id}\n role=\"option\"\n aria-selected={isSelected}\n className={cx(styles.itemWrapper, {\n [styles.selectedColor]: isSelected,\n [styles.active]: isActive,\n [styles.circle]: colorShape === \"circle\"\n })}\n data-testid={dataTestId || getTestId(ComponentDefaultTestId.COLOR_PICKER_ITEM, color)}\n >\n <div className={cx(styles.feedbackIndicator)} />\n <Clickable\n ref={itemRef}\n role=\"presentation\"\n aria-label={colorAriaLabel}\n className={cx(styles.colorItem, getStyle(styles, camelCase(\"color-item-size-\" + colorSize)), {\n [styles.colorItemTextMode]: shouldRenderIndicatorWithoutBackground\n })}\n style={{ background: shouldRenderIndicatorWithoutBackground ? \"transparent\" : colorAsStyle }}\n onClick={onClick}\n tabIndex={-1}\n onMouseDown={e => e.preventDefault()} // this is for quill to not lose the selection\n >\n <div className={cx(styles.colorIndicatorWrapper)} style={colorIndicatorWrapperStyle}>\n {shouldRenderIcon && (\n <Icon\n icon={isSelected ? SelectedIndicatorIcon : ColorIndicatorIcon}\n className={cx({\n [styles.colorIconWhite]: !shouldRenderIndicatorWithoutBackground\n })}\n ignoreFocusStyle\n />\n )}\n </div>\n </Clickable>\n </li>\n </Tooltip>\n );\n }\n);\n\nexport default ColorPickerItemComponent;\n"],"names":["ColorPickerItemComponent","forwardRef","_ref2","_ref","color","onColorClicked","_ref2$colorStyle","colorStyle","shouldRenderIndicatorWithoutBackground","ColorIndicatorIcon","_ref2$SelectedIndicat","SelectedIndicatorIcon","isSelected","colorSize","tooltipContent","isActive","colorShape","colorAriaLabel","id","dataTestId","isMondayColor","useMemo","contentColors","includes","colorAsStyle","ColorUtils","getMondayColorAsStyle","itemRef","useRef","onClick","useCallback","useEffect","current","item","setHoverColor","e","target","style","background","restoreToOriginalColor","addEventListener","removeEventListener","shouldRenderIcon","colorIndicatorWrapperStyle","React","createElement","Tooltip","content","role","className","cx","styles","itemWrapper","_defineProperty","selectedColor","active","circle","getTestId","ComponentDefaultTestId","COLOR_PICKER_ITEM","feedbackIndicator","Clickable","ref","colorItem","getStyle","camelCase","colorItemTextMode","tabIndex","onMouseDown","preventDefault","colorIndicatorWrapper","Icon","icon","colorIconWhite","ignoreFocusStyle"],"mappings":"uvBAoEMA,IAAAA,EAA2BC,GAC/B,SAAAC,EAiBEC,GACE,IAhBAC,EAAKF,EAALE,MACAC,EAAcH,EAAdG,eAAcC,EAAAJ,EACdK,WAAAA,OAAa,IAAHD,EAAG,UAASA,EACtBE,EAAsCN,EAAtCM,uCACAC,EAAkBP,EAAlBO,mBAAkBC,EAAAR,EAClBS,sBAAAA,OAAwBF,IAAHC,EAAGD,EAAkBC,EAC1CE,EAAUV,EAAVU,WACAC,EAASX,EAATW,UACAC,EAAcZ,EAAdY,eACAC,EAAQb,EAARa,SACAC,EAAUd,EAAVc,WACAC,EAAcf,EAAde,eACAC,EAAEhB,EAAFgB,GACeC,EAAUjB,EAAzB,eAIIkB,EAAgBC,GAAQ,WAAA,OAAOC,EAAoCC,SAASnB,EAAM,GAAE,CAACA,IACrFoB,EAAeJ,EAAgBK,EAAWC,sBAAsBtB,EAAOG,GAAcH,EACrFuB,EAAUC,EAAuB,MAEjCC,EAAUC,GAAY,WAAA,OAAMzB,EAAeD,EAAM,GAAE,CAACC,EAAgBD,IAE1E2B,GAAU,WACR,IAAKJ,aAAA,EAAAA,EAASK,WAAWxB,GAA2CY,EAApE,CACA,IAAMa,EAAON,EAAQK,QACfE,EAAgB,SAACC,GAElBA,EAAEC,OAA0BC,MAAMC,WAAab,EAAWC,sBAAsBtB,EADhE,aAAfG,EACsF,UAEA,UAGtFgC,EAAyB,SAACJ,GAC7BA,EAAEC,OAA0BC,MAAMC,WAAad,GAKlD,OAHAS,EAAKO,iBAAiB,aAAcN,GAAe,GACnDD,EAAKO,iBAAiB,aAAcD,GAAwB,GAErD,WACLN,EAAKQ,oBAAoB,aAAcP,GAAe,GACtDD,EAAKQ,oBAAoB,aAAcF,GAAwB,GAjBkB,CAmBrF,GAAG,CAACnC,EAAOoB,EAAcjB,EAAYa,EAAeO,EAASnB,IAE7D,IAAMkC,EAAmB9B,GAAcH,EACjCkC,EAA6BnC,EAAyC,CAAEJ,MAAOoB,GAAiB,GACtG,OACEoB,EAACC,cAAAC,EAAQ,CAAAC,QAASjC,GAChB8B,EAAAC,cAAA,KAAA,CACE3B,GAAIA,EACJ8B,KAAK,SAAQ,gBACEpC,EACfqC,UAAWC,EAAGC,EAAOC,YAAWC,EAAAA,EAAAA,EAAA,CAAA,EAC7BF,EAAOG,cAAgB1C,GACvBuC,EAAOI,OAASxC,GAChBoC,EAAOK,OAAwB,WAAfxC,IACjB,cACWG,GAAcsC,EAAUC,EAAuBC,kBAAmBvD,IAE/EwC,EAAKC,cAAA,MAAA,CAAAI,UAAWC,EAAGC,EAAOS,qBAC1BhB,EAAAC,cAACgB,EAAS,CACRC,IAAKnC,EACLqB,KAAK,eAAc,aACP/B,EACZgC,UAAWC,EAAGC,EAAOY,UAAWC,EAASb,EAAQc,EAAU,mBAAqBpD,IAAWwC,EAAA,CAAA,EACxFF,EAAOe,kBAAoB1D,IAE9B6B,MAAO,CAAEC,WAAY9B,EAAyC,cAAgBgB,GAC9EK,QAASA,EACTsC,UAAW,EACXC,YAAa,SAAAjC,GAAC,OAAIA,EAAEkC,gBAAgB,GAEpCzB,EAAAC,cAAA,MAAA,CAAKI,UAAWC,EAAGC,EAAOmB,uBAAwBjC,MAAOM,GACtDD,GACCE,EAAAC,cAAC0B,EAAI,CACHC,KAAM5D,EAAaD,EAAwBF,EAC3CwC,UAAWC,EAAEG,EACVF,CAAAA,EAAAA,EAAOsB,gBAAkBjE,IAE5BkE,kBACA,OAOhB"}
@@ -1,2 +0,0 @@
1
- var e={itemWrapper:"itemWrapper",circle:"circle",feedbackIndicator:"feedbackIndicator",active:"active",selectedColor:"selectedColor",colorItem:"colorItem",colorIndicatorWrapper:"colorIndicatorWrapper",colorItemSizeSmall:"colorItemSizeSmall",colorItemSizeMedium:"colorItemSizeMedium",colorItemSizeLarge:"colorItemSizeLarge",colorItemTextMode:"colorItemTextMode",colorIconWhite:"colorIconWhite"};!function(e){const r="s_id-4f41e3ef6859_4_5_10";if("undefined"!=typeof document){const n=document.head||document.getElementsByTagName("head")[0];if(n.querySelector("#"+r))return;const o=document.createElement("style");o.id=r,n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.appendChild(document.createTextNode(e))}else globalThis.injectedStyles&&(globalThis.injectedStyles[r]=e)}('.itemWrapper.circle {\n --border-radius-multiplier: 99999;\n}\n\n/* stylelint-disable scss/operator-no-unspaced */\n\n.itemWrapper {\n --border-radius-multiplier: 1;\n margin: 4px;\n display: flex;\n list-style-type: none;\n position: relative;\n}\n\n.itemWrapper .feedbackIndicator {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}\n\n.itemWrapper:focus,\n.itemWrapper:focus-visible,\n.itemWrapper.active {\n outline: none;\n}\n\n.itemWrapper:focus .feedbackIndicator:before,\n.itemWrapper:focus-visible .feedbackIndicator:before,\n.itemWrapper.active .feedbackIndicator:before {\n content: " ";\n position: absolute;\n border-radius: calc(7px * var(--border-radius-multiplier, 1));\n inset: -4px;\n border: 4px solid;\n border-color: var(--primary-selected-color);\n pointer-events: none;\n}\n\n.itemWrapper:focus .feedbackIndicator:after,\n.itemWrapper:focus-visible .feedbackIndicator:after,\n.itemWrapper.active .feedbackIndicator:after {\n content: " ";\n position: absolute;\n border-radius: calc(7px * var(--border-radius-multiplier, 1));\n inset: -1px;\n border: 1px solid;\n border-color: var(--primary-color);\n pointer-events: none;\n}\n\n/* active elements have no "hover feedback" */\n\n.itemWrapper:hover:not(.active):not(.selectedColor) .feedbackIndicator {\n content: " ";\n position: absolute;\n border-radius: calc(8px * var(--border-radius-multiplier, 1));\n inset: -4px;\n border: 4px solid;\n border-color: var(--primary-background-hover-color);\n pointer-events: none;\n}\n\n.itemWrapper .colorItem {\n display: flex;\n justify-content: center;\n align-items: center;\n border: 2px solid transparent;\n border-radius: calc(4px * var(--border-radius-multiplier, 1));\n cursor: pointer;\n}\n\n.itemWrapper .colorItem .colorIndicatorWrapper {\n display: flex;\n}\n\n.itemWrapper .colorItem.colorItemSizeSmall {\n width: 24px;\n height: 24px;\n}\n\n.itemWrapper .colorItem.colorItemSizeMedium {\n width: 32px;\n height: 32px;\n}\n\n.itemWrapper .colorItem.colorItemSizeLarge {\n width: 40px;\n height: 40px;\n}\n\n.itemWrapper.selectedColor {\n position: relative;\n}\n\n.itemWrapper.selectedColor:before {\n content: " ";\n position: absolute;\n border-radius: calc(7px * var(--border-radius-multiplier, 1));\n inset: -4px;\n border: 2px solid;\n border-color: var(--primary-color);\n pointer-events: none;\n}\n\n.itemWrapper.selectedColor .feedbackIndicator:before {\n /* hide the outer border from the "active" feedback indicator */\n display: none;\n}\n\n.itemWrapper .colorItemTextMode:hover {\n background-color: var(--primary-background-hover-color) !important;\n}\n\n.itemWrapper .colorIconWhite {\n color: var(--color-snow_white);\n}');export{e as default};
2
- //# sourceMappingURL=ColorPickerItemComponent.module.scss.js.map
@@ -1,2 +0,0 @@
1
- import{COLOR_SIZES as r,COLOR_PADDING as n,DIALOG_WIDTH_PADDING as o}from"../ColorPickerConstants.js";var t=function(o,t){return t*(r[o]+n)},e=function(r,n){return t(r,n)+o};export{e as calculateColorPickerDialogWidth,t as calculateColorPickerWidth};
2
- //# sourceMappingURL=ColorPickerStyleService.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ColorPickerStyleService.js","sources":["../../../../../../src/components/ColorPicker/services/ColorPickerStyleService.ts"],"sourcesContent":["import { DIALOG_WIDTH_PADDING, COLOR_SIZES, COLOR_PADDING } from \"../ColorPickerConstants\";\nimport { type BaseSizes } from \"../../../constants/sizes\";\n\nexport const calculateColorPickerWidth = (colorSize: BaseSizes, numberOfColorsInLine: number) => {\n return numberOfColorsInLine * (COLOR_SIZES[colorSize] + COLOR_PADDING);\n};\n\nexport const calculateColorPickerDialogWidth = (colorSize: BaseSizes, numberOfColorsInLine: number) => {\n return calculateColorPickerWidth(colorSize, numberOfColorsInLine) + DIALOG_WIDTH_PADDING;\n};\n"],"names":["calculateColorPickerWidth","colorSize","numberOfColorsInLine","COLOR_SIZES","COLOR_PADDING","calculateColorPickerDialogWidth","DIALOG_WIDTH_PADDING"],"mappings":"sGAGO,IAAMA,EAA4B,SAACC,EAAsBC,GAC9D,OAAOA,GAAwBC,EAAYF,GAAaG,EAC1D,EAEaC,EAAkC,SAACJ,EAAsBC,GACpE,OAAOF,EAA0BC,EAAWC,GAAwBI,CACtE"}
@@ -1,2 +0,0 @@
1
- import r,{useMemo as n,useContext as i,useCallback as o}from"react";import{useEventListener as e}from"@vibe/shared";import{useLastNavigationDirection as t}from"../Menu/Menu/hooks/useLastNavigationDirection.js";import{getDirectionMaps as u,getOppositeDirection as a,getOutmostElementInDirection as l,getNextElementToFocusInDirection as d}from"./helper.js";var v=r.createContext(null),c=function(r,c){var f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{disabled:!1},s=n((function(){return u(r)}),[r]),b=i(v),m=t().lastNavigationDirectionRef,p=o((function(){var r,n=m.current;if(n&&!f.disabled){var i=a(n),o=l(s,i);null===(r=null==o?void 0:o.current)||void 0===r||r.focus()}}),[s,f.disabled,m]);return e({eventName:"focus",callback:p,ref:c}),{onOutboundNavigation:o((function(r,n){var i,o;if(!f.disabled){var e=d(s[n],r);if(e)return null===(i=r.current)||void 0===i||i.blur(),void(null===(o=e.current)||void 0===o||o.focus());null==b||b.onOutboundNavigation(c,n)}}),[s,b,c,f.disabled])}};export{v as GridKeyboardNavigationContext,c as useGridKeyboardNavigationContext};
2
- //# sourceMappingURL=GridKeyboardNavigationContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GridKeyboardNavigationContext.js","sources":["../../../../../src/components/GridKeyboardNavigationContext/GridKeyboardNavigationContext.ts"],"sourcesContent":["import React, { useContext, useCallback, useMemo } from \"react\";\nimport useEventListener from \"../../hooks/useEventListener\";\nimport { useLastNavigationDirection } from \"../Menu/Menu/hooks/useLastNavigationDirection\";\nimport {\n getDirectionMaps,\n getNextElementToFocusInDirection,\n getOppositeDirection,\n getOutmostElementInDirection\n} from \"./helper\";\nimport { type NavDirections } from \"../../hooks/useFullKeyboardListeners\";\nimport {\n type GridElementRef,\n type GridKeyboardNavigationContextType,\n type Position\n} from \"./GridKeyboardNavigationContextConstants\";\n\nexport const GridKeyboardNavigationContext = React.createContext<GridKeyboardNavigationContextType>(null);\n\n/**\n * @param {({topElement: MutableRefObject, bottomElement: MutableRefObject}|\n * {leftElement: MutableRefObject, rightElement: MutableRefObject})[]} positions - the positions of the navigable items\n * @param {*} wrapperRef - a reference for a wrapper element which contains all the referenced elements\n * @param options - { disabled: boolean }\n */\nexport const useGridKeyboardNavigationContext = (\n positions: Position[],\n wrapperRef: GridElementRef,\n options: { disabled: boolean } = { disabled: false }\n) => {\n const directionMaps = useMemo(() => getDirectionMaps(positions), [positions]);\n const upperContext = useContext(GridKeyboardNavigationContext);\n const { lastNavigationDirectionRef } = useLastNavigationDirection();\n\n const onWrapperFocus = useCallback(() => {\n const keyboardDirection = lastNavigationDirectionRef.current;\n if (!keyboardDirection || options.disabled) {\n return;\n }\n const oppositeDirection = getOppositeDirection(keyboardDirection);\n const refToFocus = getOutmostElementInDirection(directionMaps, oppositeDirection);\n refToFocus?.current?.focus();\n }, [directionMaps, options.disabled, lastNavigationDirectionRef]);\n useEventListener({ eventName: \"focus\", callback: onWrapperFocus, ref: wrapperRef });\n\n const onOutboundNavigation = useCallback(\n (elementRef: GridElementRef, direction: NavDirections) => {\n if (options.disabled) return;\n const maybeNextElement = getNextElementToFocusInDirection(directionMaps[direction], elementRef);\n if (maybeNextElement) {\n elementRef.current?.blur();\n maybeNextElement.current?.focus();\n return;\n }\n // nothing on that direction - try updating the upper context\n upperContext?.onOutboundNavigation(wrapperRef, direction);\n },\n [directionMaps, upperContext, wrapperRef, options.disabled]\n );\n return { onOutboundNavigation };\n};\n"],"names":["GridKeyboardNavigationContext","React","createContext","useGridKeyboardNavigationContext","positions","wrapperRef","options","arguments","length","undefined","disabled","directionMaps","useMemo","getDirectionMaps","upperContext","useContext","lastNavigationDirectionRef","useLastNavigationDirection","onWrapperFocus","useCallback","keyboardDirection","current","oppositeDirection","getOppositeDirection","refToFocus","getOutmostElementInDirection","_a","focus","useEventListener","eventName","callback","ref","onOutboundNavigation","elementRef","direction","maybeNextElement","getNextElementToFocusInDirection","blur","_b"],"mappings":"mWAgBO,IAAMA,EAAgCC,EAAMC,cAAiD,MAQvFC,EAAmC,SAC9CC,EACAC,GAEE,IADFC,EAAAC,UAAAC,OAAAD,QAAAE,IAAAF,UAAAE,GAAAF,UAAiC,GAAA,CAAEG,UAAU,GAEvCC,EAAgBC,GAAQ,WAAA,OAAMC,EAAiBT,KAAY,CAACA,IAC5DU,EAAeC,EAAWf,GACxBgB,EAA+BC,IAA/BD,2BAEFE,EAAiBC,GAAY,iBAC3BC,EAAoBJ,EAA2BK,QACrD,GAAKD,IAAqBd,EAAQI,SAAlC,CAGA,IAAMY,EAAoBC,EAAqBH,GACzCI,EAAaC,EAA6Bd,EAAeW,GAC5C,QAAnBI,EAAAF,aAAA,EAAAA,EAAYH,eAAO,IAAAK,GAAAA,EAAEC,OAHrB,CAID,GAAE,CAAChB,EAAeL,EAAQI,SAAUM,IAiBrC,OAhBAY,EAAiB,CAAEC,UAAW,QAASC,SAAUZ,EAAgBa,IAAK1B,IAgB/D,CAAE2B,qBAdoBb,GAC3B,SAACc,EAA4BC,WAC3B,IAAI5B,EAAQI,SAAZ,CACA,IAAMyB,EAAmBC,EAAiCzB,EAAcuB,GAAYD,GACpF,GAAIE,EAGF,OAFoB,QAApBT,EAAAO,EAAWZ,eAAS,IAAAK,GAAAA,EAAAW,YACM,QAA1BC,EAAAH,EAAiBd,eAAS,IAAAiB,GAAAA,EAAAX,SAI5Bb,SAAAA,EAAckB,qBAAqB3B,EAAY6B,EARzB,CASxB,GACA,CAACvB,EAAeG,EAAcT,EAAYC,EAAQI,WAGtD"}
@@ -1,2 +0,0 @@
1
- import{defineProperty as e,toConsumableArray as t}from"../../../_virtual/_rollupPluginBabelHelpers.js";import{NavDirections as r}from"../../hooks/useFullKeyboardListeners.js";var n=function(t){var n=e(e(e(e({},r.RIGHT,new Map),r.LEFT,new Map),r.UP,new Map),r.DOWN,new Map);return t.forEach((function(e){!function(e,t){var n=t.topElement,o=t.bottomElement,a=t.leftElement,l=t.rightElement;function i(e,t){throw Error("Circular positioning detected: the ".concat(e," element is already positioned to the ").concat(t," of the ").concat(t," element. This probably means the layout isn't ordered correctly."))}n&&o&&(e[r.UP].get(n)===o&&i("BOTTOM","TOP"),e[r.DOWN].get(o)===n&&i("TOP","BOTTOM")),a&&l&&(e[r.LEFT].get(a)===l&&i("RIGHT","LEFT"),e[r.RIGHT].get(l)===a&&i("LEFT","RIGHT"))}(n,e);var t=e.topElement,o=e.bottomElement,a=e.leftElement,l=e.rightElement;t&&o&&(n[r.UP].set(o,t),n[r.DOWN].set(t,o)),a&&l&&(n[r.LEFT].set(l,a),n[r.RIGHT].set(a,l))})),n},o=function(e){switch(e){case r.LEFT:return r.RIGHT;case r.RIGHT:return r.LEFT;case r.UP:return r.DOWN;case r.DOWN:return r.UP;default:throw Error("Unexpected direction: ".concat(e))}},a=function e(n,o){var a=n[o],i=t(a)[0];return i?function(e,t){var r=!1,n=t;for(;!r;){var o=l(e,n);o?n=o:r=!0}return n}(a,i[0]):e(n,[r.LEFT,r.RIGHT].includes(o)?r.UP:r.LEFT)},l=function e(t,r){var n,o=t.get(r);return o?!o.current||o.current.disabled||"true"===(null===(n=o.current.dataset)||void 0===n?void 0:n.disabled)?e(t,o):o:null};export{n as getDirectionMaps,l as getNextElementToFocusInDirection,o as getOppositeDirection,a as getOutmostElementInDirection};
2
- //# sourceMappingURL=helper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helper.js","sources":["../../../../../src/components/GridKeyboardNavigationContext/helper.ts"],"sourcesContent":["import { NavDirections } from \"../../hooks/useFullKeyboardListeners\";\nimport {\n type DirectionMap,\n type DirectionMaps,\n type GridElementRef,\n type Position\n} from \"./GridKeyboardNavigationContextConstants\";\n\nfunction throwIfCausingCircularDependency(directionMaps: DirectionMaps, newPosition: Position) {\n const { topElement, bottomElement, leftElement, rightElement } = newPosition;\n if (topElement && bottomElement) {\n if (directionMaps[NavDirections.UP].get(topElement) === bottomElement) {\n throwMessage(\"BOTTOM\", \"TOP\");\n }\n if (directionMaps[NavDirections.DOWN].get(bottomElement) === topElement) {\n throwMessage(\"TOP\", \"BOTTOM\");\n }\n }\n if (leftElement && rightElement) {\n if (directionMaps[NavDirections.LEFT].get(leftElement) === rightElement) {\n throwMessage(\"RIGHT\", \"LEFT\");\n }\n if (directionMaps[NavDirections.RIGHT].get(rightElement) === leftElement) {\n throwMessage(\"LEFT\", \"RIGHT\");\n }\n }\n\n function throwMessage(directionFrom: string, directionTo: string) {\n throw new Error(\n `Circular positioning detected: the ${directionFrom} element is already positioned to the ${directionTo} of the ${directionTo} element. This probably means the layout isn't ordered correctly.`\n );\n }\n}\n\nexport const getDirectionMaps = (positions: Position[]) => {\n const directionMaps: DirectionMaps = {\n [NavDirections.RIGHT]: new Map(),\n [NavDirections.LEFT]: new Map(),\n [NavDirections.UP]: new Map(),\n [NavDirections.DOWN]: new Map()\n };\n positions.forEach(position => {\n throwIfCausingCircularDependency(directionMaps, position);\n\n const { topElement, bottomElement, leftElement, rightElement } = position;\n if (topElement && bottomElement) {\n directionMaps[NavDirections.UP].set(bottomElement, topElement);\n directionMaps[NavDirections.DOWN].set(topElement, bottomElement);\n }\n if (leftElement && rightElement) {\n directionMaps[NavDirections.LEFT].set(rightElement, leftElement);\n directionMaps[NavDirections.RIGHT].set(leftElement, rightElement);\n }\n });\n return directionMaps;\n};\n\nexport const getOppositeDirection = (direction: NavDirections) => {\n switch (direction) {\n case NavDirections.LEFT:\n return NavDirections.RIGHT;\n case NavDirections.RIGHT:\n return NavDirections.LEFT;\n case NavDirections.UP:\n return NavDirections.DOWN;\n case NavDirections.DOWN:\n return NavDirections.UP;\n default:\n throw new Error(`Unexpected direction: ${direction}`);\n }\n};\n\nexport const getOutmostElementInDirection = (\n directionMaps: DirectionMaps,\n direction: NavDirections\n): GridElementRef => {\n const directionMap = directionMaps[direction];\n const firstEntry = [...directionMap][0]; // start with any element\n if (!firstEntry) {\n // no relations were registered for this direction - fallback to a different direction\n if ([NavDirections.LEFT, NavDirections.RIGHT].includes(direction)) {\n // there are no registered horizontal relations registered, try vertical relations. Get the top-most element.\n return getOutmostElementInDirection(directionMaps, NavDirections.UP);\n }\n // there are no registered vertical relations registered, try horizontal relations. Get the left-most element.\n return getOutmostElementInDirection(directionMaps, NavDirections.LEFT);\n }\n const firstRef = firstEntry[0];\n return getLastFocusableElementFromElementInDirection(directionMap, firstRef);\n};\n\nexport const getNextElementToFocusInDirection = (\n directionMap: DirectionMap,\n elementRef: GridElementRef\n): null | GridElementRef => {\n const next = directionMap.get(elementRef);\n if (!next) {\n // this is the last element on the direction map - there' nothing next\n return null;\n }\n if (!next.current || next.current.disabled || next.current.dataset?.disabled === \"true\") {\n // the next element is not mounted or disabled - try the next one\n return getNextElementToFocusInDirection(directionMap, next);\n }\n return next;\n};\n\nfunction getLastFocusableElementFromElementInDirection(directionMap: DirectionMap, initialRef: GridElementRef) {\n let done = false;\n let currentRef = initialRef;\n\n while (!done) {\n // as long as there's a mounted element which in that direction, take it.\n const nextEligible = getNextElementToFocusInDirection(directionMap, currentRef);\n if (!nextEligible) {\n done = true;\n } else {\n currentRef = nextEligible;\n }\n }\n\n return currentRef;\n}\n"],"names":["getDirectionMaps","positions","directionMaps","_defineProperty","NavDirections","RIGHT","Map","LEFT","UP","DOWN","forEach","position","newPosition","topElement","bottomElement","leftElement","rightElement","throwMessage","directionFrom","directionTo","Error","concat","get","throwIfCausingCircularDependency","set","getOppositeDirection","direction","getOutmostElementInDirection","directionMap","firstEntry","_toConsumableArray","initialRef","done","currentRef","nextEligible","getNextElementToFocusInDirection","getLastFocusableElementFromElementInDirection","includes","elementRef","next","current","disabled","_a","dataset"],"mappings":"mLAkCaA,EAAmB,SAACC,GAC/B,IAAMC,EAAaC,EAAAA,EAAAA,EAAAA,EAAA,GAChBC,EAAcC,MAAQ,IAAIC,KAC1BF,EAAcG,KAAO,IAAID,KACzBF,EAAcI,GAAK,IAAIF,KACvBF,EAAcK,KAAO,IAAIH,KAe5B,OAbAL,EAAUS,SAAQ,SAAAC,IAjCpB,SAA0CT,EAA8BU,GACtE,IAAQC,EAAyDD,EAAzDC,WAAYC,EAA6CF,EAA7CE,cAAeC,EAA8BH,EAA9BG,YAAaC,EAAiBJ,EAAjBI,aAkBhD,SAASC,EAAaC,EAAuBC,GAC3C,MAAUC,MAAKC,sCAAAA,OACyBH,EAAa,0CAAAG,OAAyCF,EAAWE,YAAAA,OAAWF,uEAEtH,CArBIN,GAAcC,IACZZ,EAAcE,EAAcI,IAAIc,IAAIT,KAAgBC,GACtDG,EAAa,SAAU,OAErBf,EAAcE,EAAcK,MAAMa,IAAIR,KAAmBD,GAC3DI,EAAa,MAAO,WAGpBF,GAAeC,IACbd,EAAcE,EAAcG,MAAMe,IAAIP,KAAiBC,GACzDC,EAAa,QAAS,QAEpBf,EAAcE,EAAcC,OAAOiB,IAAIN,KAAkBD,GAC3DE,EAAa,OAAQ,SAS3B,CAUIM,CAAiCrB,EAAeS,GAEhD,IAAQE,EAAyDF,EAAzDE,WAAYC,EAA6CH,EAA7CG,cAAeC,EAA8BJ,EAA9BI,YAAaC,EAAiBL,EAAjBK,aAC5CH,GAAcC,IAChBZ,EAAcE,EAAcI,IAAIgB,IAAIV,EAAeD,GACnDX,EAAcE,EAAcK,MAAMe,IAAIX,EAAYC,IAEhDC,GAAeC,IACjBd,EAAcE,EAAcG,MAAMiB,IAAIR,EAAcD,GACpDb,EAAcE,EAAcC,OAAOmB,IAAIT,EAAaC,GAExD,IACOd,CACT,EAEauB,EAAuB,SAACC,GACnC,OAAQA,GACN,KAAKtB,EAAcG,KACjB,OAAOH,EAAcC,MACvB,KAAKD,EAAcC,MACjB,OAAOD,EAAcG,KACvB,KAAKH,EAAcI,GACjB,OAAOJ,EAAcK,KACvB,KAAKL,EAAcK,KACjB,OAAOL,EAAcI,GACvB,QACE,MAAUY,MAAK,yBAAAC,OAA0BK,IAE/C,EAEaC,EAA+B,SAA/BA,EACXzB,EACAwB,GAEA,IAAME,EAAe1B,EAAcwB,GAC7BG,EAAaC,EAAIF,GAAc,GACrC,OAAKC,EA6BP,SAAuDD,EAA4BG,GACjF,IAAIC,GAAO,EACPC,EAAaF,EAEjB,MAAQC,GAAM,CAEZ,IAAME,EAAeC,EAAiCP,EAAcK,GAC/DC,EAGHD,EAAaC,EAFbF,GAAO,CAIX,CAEA,OAAOC,CACT,CAlCSG,CAA8CR,EADpCC,EAAW,IALjBF,EAA6BzB,EAFlC,CAACE,EAAcG,KAAMH,EAAcC,OAAOgC,SAASX,GAEFtB,EAAcI,GAGhBJ,EAAcG,KAIrE,EAEa4B,EAAmC,SAAnCA,EACXP,EACAU,SAEMC,EAAOX,EAAaN,IAAIgB,GAC9B,OAAKC,GAIAA,EAAKC,SAAWD,EAAKC,QAAQC,UAA+C,kBAAnCC,EAAAH,EAAKC,QAAQG,8BAASF,UAE3DN,EAAiCP,EAAcW,GAEjDA,EANE,IAOX"}
@@ -1,2 +0,0 @@
1
- import e from"classnames";import t,{forwardRef as r,useRef as s}from"react";import{useMergeRef as a}from"@vibe/shared";import{getTestId as d,ComponentDefaultTestId as i}from"../../tests/testIds.js";import m from"./HiddenText.module.scss.js";var o=r((function(r,o){var n=r.text,p=r.className,f=void 0===p?"":p,l=r.id,c=void 0===l?"hiddenText":l,u=r["data-testid"],v=s(null),x=a(o,v);return t.createElement("span",{ref:x,id:c,"data-testid":u||d(i.HIDDEN_TEXT,c),className:e(m.hiddenTextWrapper,f)},n)}));export{o as default};
2
- //# sourceMappingURL=HiddenText.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HiddenText.js","sources":["../../../../../src/components/HiddenText/HiddenText.tsx"],"sourcesContent":["import cx from \"classnames\";\nimport React, { useRef, forwardRef } from \"react\";\nimport { useMergeRef } from \"@vibe/shared\";\nimport type VibeComponentProps from \"../../types/VibeComponentProps\";\nimport { ComponentDefaultTestId, getTestId } from \"../../tests/test-ids-utils\";\nimport styles from \"./HiddenText.module.scss\";\n\nexport interface HiddenTextProps extends VibeComponentProps {\n /**\n * The text content that is hidden but available for assistive technologies.\n */\n text: string;\n}\n\nconst HiddenText = forwardRef<HTMLSpanElement, HiddenTextProps>(\n ({ text, className = \"\", id = \"hiddenText\", \"data-testid\": dataTestId }, ref) => {\n const componentRef = useRef(null);\n const mergedRef = useMergeRef(ref, componentRef);\n\n return (\n <span\n ref={mergedRef}\n id={id}\n data-testid={dataTestId || getTestId(ComponentDefaultTestId.HIDDEN_TEXT, id)}\n className={cx(styles.hiddenTextWrapper, className)}\n >\n {text}\n </span>\n );\n }\n);\n\nexport default HiddenText;\n"],"names":["HiddenText","forwardRef","_ref","ref","text","_ref$className","className","_ref$id","id","dataTestId","componentRef","useRef","mergedRef","useMergeRef","React","createElement","getTestId","ComponentDefaultTestId","HIDDEN_TEXT","cx","styles","hiddenTextWrapper"],"mappings":"iPAcMA,IAAAA,EAAaC,GACjB,SAAAC,EAAyEC,GAAO,IAA7EC,EAAIF,EAAJE,KAAIC,EAAAH,EAAEI,UAAAA,OAAY,IAAHD,EAAG,GAAEA,EAAAE,EAAAL,EAAEM,GAAAA,OAAK,IAAHD,EAAG,aAAYA,EAAiBE,EAAUP,EAAzB,eACpCQ,EAAeC,EAAO,MACtBC,EAAYC,EAAYV,EAAKO,GAEnC,OACEI,EAAAC,cAAA,OAAA,CACEZ,IAAKS,EACLJ,GAAIA,gBACSC,GAAcO,EAAUC,EAAuBC,YAAaV,GACzEF,UAAWa,EAAGC,EAAOC,kBAAmBf,IAEvCF,EAGP"}
@@ -1,2 +0,0 @@
1
- var e={hiddenTextWrapper:"hiddenTextWrapper"};!function(e){const t="s_id-5ac012179a41_4_5_10";if("undefined"!=typeof document){const n=document.head||document.getElementsByTagName("head")[0];if(n.querySelector("#"+t))return;const i=document.createElement("style");i.id=t,n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.appendChild(document.createTextNode(e))}else globalThis.injectedStyles&&(globalThis.injectedStyles[t]=e)}("/* stylelint-disable */\n/* stylelint-enable */\n.hiddenTextWrapper {\n /* clip pattern taken from https://www.a11yproject.com/posts/2013-01-11-how-to-hide-content/. */\n clip: rect(0, 0, 0, 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}");export{e as default};
2
- //# sourceMappingURL=HiddenText.module.scss.js.map
@@ -1,2 +0,0 @@
1
- import{toConsumableArray as e}from"../../../../../_virtual/_rollupPluginBabelHelpers.js";import{useRef as r,useCallback as o}from"react";import{useKeyEvent as n,useEventListener as t}from"@vibe/shared";import{ARROW_UP_KEYS as a,NavDirections as c,ARROW_RIGHT_KEYS as i,ARROW_DOWN_KEYS as u,ARROW_LEFT_KEYS as l}from"../../../../hooks/useFullKeyboardListeners.js";var s=[].concat(e(a),e(i),e(u),e(l)),m=function(){var e=r(document),m=r(),f=o((function(e){m.current=e}),[]),d=o((function(e){var r=e.key;a.includes(r)?f(c.UP):i.includes(r)?f(c.RIGHT):u.includes(r)?f(c.DOWN):l.includes(r)&&f(c.LEFT)}),[f]),p=o((function(){m.current=void 0}),[m]);return n({ref:e,capture:!0,keys:s,callback:d}),t({eventName:"mousedown",ref:e,capture:!0,callback:p}),{lastNavigationDirectionRef:m}};export{m as useLastNavigationDirection};
2
- //# sourceMappingURL=useLastNavigationDirection.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useLastNavigationDirection.js","sources":["../../../../../../../src/components/Menu/Menu/hooks/useLastNavigationDirection.tsx"],"sourcesContent":["import { useCallback, useRef } from \"react\";\nimport useEventListener from \"../../../../hooks/useEventListener\";\nimport {\n ARROW_DOWN_KEYS,\n ARROW_LEFT_KEYS,\n ARROW_RIGHT_KEYS,\n ARROW_UP_KEYS,\n NavDirections\n} from \"../../../../hooks/useFullKeyboardListeners\";\nimport useKeyEvent from \"../../../../hooks/useKeyEvent\";\n\nconst NAVIGATION_KEYS = [...ARROW_UP_KEYS, ...ARROW_RIGHT_KEYS, ...ARROW_DOWN_KEYS, ...ARROW_LEFT_KEYS];\n\nexport const useLastNavigationDirection = () => {\n const documentRef = useRef(document);\n\n const lastNavigationDirectionRef = useRef<NavDirections>();\n\n const setLastNavigationDirection = useCallback((dir: NavDirections) => {\n lastNavigationDirectionRef.current = dir;\n }, []);\n\n const onKeyEvent = useCallback(\n ({ key }: KeyboardEvent) => {\n if (ARROW_UP_KEYS.includes(key)) {\n setLastNavigationDirection(NavDirections.UP);\n } else if (ARROW_RIGHT_KEYS.includes(key)) {\n setLastNavigationDirection(NavDirections.RIGHT);\n } else if (ARROW_DOWN_KEYS.includes(key)) {\n setLastNavigationDirection(NavDirections.DOWN);\n } else if (ARROW_LEFT_KEYS.includes(key)) {\n setLastNavigationDirection(NavDirections.LEFT);\n }\n },\n [setLastNavigationDirection]\n );\n\n const onMousedownAnywhere = useCallback(() => {\n lastNavigationDirectionRef.current = undefined;\n }, [lastNavigationDirectionRef]);\n\n useKeyEvent({ ref: documentRef, capture: true, keys: NAVIGATION_KEYS, callback: onKeyEvent });\n useEventListener({ eventName: \"mousedown\", ref: documentRef, capture: true, callback: onMousedownAnywhere });\n\n return { lastNavigationDirectionRef };\n};\n"],"names":["NAVIGATION_KEYS","concat","_toConsumableArray","ARROW_UP_KEYS","ARROW_RIGHT_KEYS","ARROW_DOWN_KEYS","ARROW_LEFT_KEYS","useLastNavigationDirection","documentRef","useRef","document","lastNavigationDirectionRef","setLastNavigationDirection","useCallback","dir","current","onKeyEvent","_ref","key","includes","NavDirections","UP","RIGHT","DOWN","LEFT","onMousedownAnywhere","undefined","useKeyEvent","ref","capture","keys","callback","useEventListener","eventName"],"mappings":"2WAWA,IAAMA,EAAeC,GAAAA,OAAAC,EAAOC,GAAaD,EAAKE,GAAgBF,EAAKG,GAAeH,EAAKI,IAE1EC,EAA6B,WACxC,IAAMC,EAAcC,EAAOC,UAErBC,EAA6BF,IAE7BG,EAA6BC,GAAY,SAACC,GAC9CH,EAA2BI,QAAUD,CACtC,GAAE,IAEGE,EAAaH,GACjB,SAAAI,GAA2B,IAAxBC,EAAGD,EAAHC,IACGf,EAAcgB,SAASD,GACzBN,EAA2BQ,EAAcC,IAChCjB,EAAiBe,SAASD,GACnCN,EAA2BQ,EAAcE,OAChCjB,EAAgBc,SAASD,GAClCN,EAA2BQ,EAAcG,MAChCjB,EAAgBa,SAASD,IAClCN,EAA2BQ,EAAcI,KAE7C,GACA,CAACZ,IAGGa,EAAsBZ,GAAY,WACtCF,EAA2BI,aAAUW,CACvC,GAAG,CAACf,IAKJ,OAHAgB,EAAY,CAAEC,IAAKpB,EAAaqB,SAAS,EAAMC,KAAM9B,EAAiB+B,SAAUf,IAChFgB,EAAiB,CAAEC,UAAW,YAAaL,IAAKpB,EAAaqB,SAAS,EAAME,SAAUN,IAE/E,CAAEd,2BAAAA,EACX"}
@@ -1,2 +0,0 @@
1
- import{useMemo as n,useCallback as e,useEffect as o}from"react";import{noop as t}from"es-toolkit";import{useKeyEvent as r}from"@vibe/shared";var c;!function(n){n.UP="up",n.DOWN="down",n.LEFT="left",n.RIGHT="right"}(c||(c={}));var a=["ArrowDown"],i=["ArrowUp"],s=["ArrowRight"],l=["ArrowLeft"],u=["Enter"," "],f=["Enter"],b=["Escape"],k=["End"],v=["Home"];function d(f){var d=f.ref,g=f.onSelectionKey,p=void 0===g?t:g,O=f.onArrowNavigation,m=void 0===O?t:O,y=f.onEscape,E=void 0===y?t:y,j=f.onHome,w=void 0===j?t:j,A=f.onEnd,D=void 0===A?t:A,H=f.useDocumentEventListeners,L=void 0!==H&&H,T=f.focusOnMount,h=void 0!==T&&T,N=n((function(){if(!L)return{ref:d,preventDefault:!0,stopPropagation:!0}}),[L,d]),P=e((function(){return m(c.DOWN)}),[m]),R=e((function(){return m(c.UP)}),[m]),U=e((function(){return m(c.RIGHT)}),[m]),F=e((function(){return m(c.LEFT)}),[m]);r(Object.assign({keys:a,callback:P},N)),r(Object.assign({keys:i,callback:R},N)),r(Object.assign({keys:s,callback:U},N)),r(Object.assign({keys:l,callback:F},N)),r(Object.assign({keys:u,callback:p},N)),r(Object.assign({keys:b,callback:E},N)),r(Object.assign({keys:v,callback:w},N)),r(Object.assign({keys:k,callback:D},N)),o((function(){var n;h&&!L&&(null===(n=null==d?void 0:d.current)||void 0===n||n.focus())}),[h,d,L])}export{a as ARROW_DOWN_KEYS,l as ARROW_LEFT_KEYS,s as ARROW_RIGHT_KEYS,i as ARROW_UP_KEYS,k as END_KEYS,f as ENTER_KEYS,b as ESCAPE_KEYS,v as HOME_KEYS,c as NavDirections,u as SELECTION_KEYS,d as default};
2
- //# sourceMappingURL=useFullKeyboardListeners.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useFullKeyboardListeners.js","sources":["../../../../src/hooks/useFullKeyboardListeners.ts"],"sourcesContent":["import { type MutableRefObject, useCallback, useEffect, useMemo } from \"react\";\nimport { noop } from \"es-toolkit\";\nimport useKeyEvent from \"./useKeyEvent\";\nimport { type KeyboardEventCallback } from \"../types/events\";\n\nexport enum NavDirections {\n UP = \"up\",\n DOWN = \"down\",\n LEFT = \"left\",\n RIGHT = \"right\"\n}\n\nexport const ARROW_DOWN_KEYS = [\"ArrowDown\"];\nexport const ARROW_UP_KEYS = [\"ArrowUp\"];\nexport const ARROW_RIGHT_KEYS = [\"ArrowRight\"];\nexport const ARROW_LEFT_KEYS = [\"ArrowLeft\"];\nexport const SELECTION_KEYS = [\"Enter\", \" \"];\nexport const ENTER_KEYS = [\"Enter\"];\nexport const ESCAPE_KEYS = [\"Escape\"];\nexport const END_KEYS = [\"End\"];\nexport const HOME_KEYS = [\"Home\"];\n\nexport default function useFullKeyboardListeners({\n ref, // the reference for the component that listens to keyboard\n onSelectionKey = noop,\n onArrowNavigation = noop,\n onEscape = noop,\n onHome = noop,\n onEnd = noop,\n useDocumentEventListeners = false,\n focusOnMount = false\n}: {\n ref: MutableRefObject<HTMLElement>;\n onSelectionKey: KeyboardEventCallback;\n onArrowNavigation: (type: NavDirections) => void;\n onEscape: KeyboardEventCallback;\n onHome?: KeyboardEventCallback;\n onEnd?: KeyboardEventCallback;\n useDocumentEventListeners?: boolean;\n focusOnMount: boolean;\n}) {\n const listenerOptions = useMemo(() => {\n if (useDocumentEventListeners) return undefined;\n\n return {\n ref,\n preventDefault: true,\n stopPropagation: true\n };\n }, [useDocumentEventListeners, ref]);\n\n const onArrowDown = useCallback(() => onArrowNavigation(NavDirections.DOWN), [onArrowNavigation]);\n const onArrowUp = useCallback(() => onArrowNavigation(NavDirections.UP), [onArrowNavigation]);\n const onArrowRight = useCallback(() => onArrowNavigation(NavDirections.RIGHT), [onArrowNavigation]);\n const onArrowLeft = useCallback(() => onArrowNavigation(NavDirections.LEFT), [onArrowNavigation]);\n\n useKeyEvent({\n keys: ARROW_DOWN_KEYS,\n callback: onArrowDown,\n ...listenerOptions\n });\n\n useKeyEvent({\n keys: ARROW_UP_KEYS,\n callback: onArrowUp,\n ...listenerOptions\n });\n\n useKeyEvent({\n keys: ARROW_RIGHT_KEYS,\n callback: onArrowRight,\n ...listenerOptions\n });\n\n useKeyEvent({\n keys: ARROW_LEFT_KEYS,\n callback: onArrowLeft,\n ...listenerOptions\n });\n\n useKeyEvent({\n keys: SELECTION_KEYS,\n callback: onSelectionKey,\n ...listenerOptions\n });\n\n useKeyEvent({\n keys: ESCAPE_KEYS,\n callback: onEscape,\n ...listenerOptions\n });\n\n useKeyEvent({\n keys: HOME_KEYS,\n callback: onHome,\n ...listenerOptions\n });\n\n useKeyEvent({\n keys: END_KEYS,\n callback: onEnd,\n ...listenerOptions\n });\n\n useEffect(() => {\n if (!focusOnMount || useDocumentEventListeners) return;\n ref?.current?.focus();\n }, [focusOnMount, ref, useDocumentEventListeners]);\n}\n"],"names":["NavDirections","ARROW_DOWN_KEYS","ARROW_UP_KEYS","ARROW_RIGHT_KEYS","ARROW_LEFT_KEYS","SELECTION_KEYS","ENTER_KEYS","ESCAPE_KEYS","END_KEYS","HOME_KEYS","useFullKeyboardListeners","_ref","ref","_ref$onSelectionKey","onSelectionKey","noop","_ref$onArrowNavigatio","onArrowNavigation","_ref$onEscape","onEscape","_ref$onHome","onHome","_ref$onEnd","onEnd","_ref$useDocumentEvent","useDocumentEventListeners","_ref$focusOnMount","focusOnMount","listenerOptions","useMemo","preventDefault","stopPropagation","onArrowDown","useCallback","DOWN","onArrowUp","UP","onArrowRight","RIGHT","onArrowLeft","LEFT","useKeyEvent","Object","assign","keys","callback","useEffect","_a","current","focus"],"mappings":"iJAKYA,GAAZ,SAAYA,GACVA,EAAA,GAAA,KACAA,EAAA,KAAA,OACAA,EAAA,KAAA,OACAA,EAAA,MAAA,OACD,CALD,CAAYA,IAAAA,EAKX,CAAA,IAEYC,IAAAA,EAAkB,CAAC,aACnBC,EAAgB,CAAC,WACjBC,EAAmB,CAAC,cACpBC,EAAkB,CAAC,aACnBC,EAAiB,CAAC,QAAS,KAC3BC,EAAa,CAAC,SACdC,EAAc,CAAC,UACfC,EAAW,CAAC,OACZC,EAAY,CAAC,QAEF,SAAAC,EAAwBC,GAkB/C,IAjBCC,EAAGD,EAAHC,IAAGC,EAAAF,EACHG,eAAAA,OAAiBC,IAAHF,EAAGE,EAAIF,EAAAG,EAAAL,EACrBM,kBAAAA,OAAoBF,IAAHC,EAAGD,EAAIC,EAAAE,EAAAP,EACxBQ,SAAAA,OAAWJ,IAAHG,EAAGH,EAAIG,EAAAE,EAAAT,EACfU,OAAAA,OAASN,IAAHK,EAAGL,EAAIK,EAAAE,EAAAX,EACbY,MAAAA,OAAQR,IAAHO,EAAGP,EAAIO,EAAAE,EAAAb,EACZc,0BAAAA,OAA4B,IAAHD,GAAQA,EAAAE,EAAAf,EACjCgB,aAAAA,OAAe,IAAHD,GAAQA,EAWdE,EAAkBC,GAAQ,WAC9B,IAAIJ,EAEJ,MAAO,CACLb,IAAAA,EACAkB,gBAAgB,EAChBC,iBAAiB,EAErB,GAAG,CAACN,EAA2Bb,IAEzBoB,EAAcC,GAAY,WAAA,OAAMhB,EAAkBjB,EAAckC,QAAO,CAACjB,IACxEkB,EAAYF,GAAY,WAAA,OAAMhB,EAAkBjB,EAAcoC,MAAK,CAACnB,IACpEoB,EAAeJ,GAAY,WAAA,OAAMhB,EAAkBjB,EAAcsC,SAAQ,CAACrB,IAC1EsB,EAAcN,GAAY,WAAA,OAAMhB,EAAkBjB,EAAcwC,QAAO,CAACvB,IAE9EwB,EAAWC,OAAAC,OAAA,CACTC,KAAM3C,EACN4C,SAAUb,GACPJ,IAGLa,EAAWC,OAAAC,OAAA,CACTC,KAAM1C,EACN2C,SAAUV,GACPP,IAGLa,EAAWC,OAAAC,OAAA,CACTC,KAAMzC,EACN0C,SAAUR,GACPT,IAGLa,EAAWC,OAAAC,OAAA,CACTC,KAAMxC,EACNyC,SAAUN,GACPX,IAGLa,EAAWC,OAAAC,OAAA,CACTC,KAAMvC,EACNwC,SAAU/B,GACPc,IAGLa,EAAWC,OAAAC,OAAA,CACTC,KAAMrC,EACNsC,SAAU1B,GACPS,IAGLa,EAAWC,OAAAC,OAAA,CACTC,KAAMnC,EACNoC,SAAUxB,GACPO,IAGLa,EAAWC,OAAAC,OAAA,CACTC,KAAMpC,EACNqC,SAAUtB,GACPK,IAGLkB,GAAU,iBACHnB,IAAgBF,IACT,QAAZsB,EAAAnC,aAAA,EAAAA,EAAKoC,eAAO,IAAAD,GAAAA,EAAEE,QACf,GAAE,CAACtB,EAAcf,EAAKa,GACzB"}
@@ -1,2 +0,0 @@
1
- import{NavDirections as n}from"../useFullKeyboardListeners.js";function e(e){var t=e.direction,i=e.numberOfItemsInLine,r=e.itemsCount,u=function(){var e=Math.floor(i/2);if(t===n.UP)return(Math.ceil(r/i)-1)*i+e;if(t===n.DOWN)return e;if(t===n.LEFT){for(var u=i-1,o=Math.floor((r-1)/2);o>u;)u+=i;return u}if(t===n.RIGHT){for(var a=0,c=Math.floor((r-1)/2);c>a+i;)a+=i;return a}}();return Math.max(0,Math.min(u,r-1))}function t(e){var t=e.activeIndex,i=e.itemsCount,r=e.numberOfItemsInLine,u=e.circularNavigation,o=void 0!==u&&u,a=function(n){return Math.ceil((n+1)/r)},c=function(n){var e=t+(n?1:-1);if(0>e||e>=i){if(!o)return{isOutbound:!0};0>e?e=i-1:i>e||(e=0)}return a(t)!==a(e)?{isOutbound:!0}:{isOutbound:!1,nextIndex:e}},s=function(n){var e=t+r*(n?1:-1);return 0>e||e>=i?{isOutbound:!0}:{isOutbound:!1,nextIndex:e}};switch(e.direction){case n.RIGHT:return c(!0);case n.LEFT:return c(!1);case n.DOWN:return s(!0);case n.UP:return s(!1)}}function i(n){for(var e=n.itemsCount,i=n.numberOfItemsInLine,r=n.direction,u=n.disabledIndexes,o=void 0===u?[]:u,a=n.circularNavigation,c=void 0!==a&&a,s=t({activeIndex:n.activeIndex,itemsCount:e,numberOfItemsInLine:i,direction:r,circularNavigation:c});!s.isOutbound&&o.includes(s.nextIndex);)s=t({activeIndex:s.nextIndex,itemsCount:e,numberOfItemsInLine:i,direction:r,circularNavigation:c});return s}export{i as calcActiveIndexAfterArrowNavigation,e as getActiveIndexFromInboundNavigation};
2
- //# sourceMappingURL=gridKeyboardNavigationHelper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gridKeyboardNavigationHelper.js","sources":["../../../../../src/hooks/useGridKeyboardNavigation/gridKeyboardNavigationHelper.ts"],"sourcesContent":["import { NavDirections } from \"../useFullKeyboardListeners\";\n\nexport function getActiveIndexFromInboundNavigation({\n direction,\n numberOfItemsInLine,\n itemsCount\n}: {\n direction: NavDirections;\n numberOfItemsInLine: number;\n itemsCount: number;\n}) {\n const getRawIndex = () => {\n const firstLineMiddleIndex = Math.floor(numberOfItemsInLine / 2);\n if (direction === NavDirections.UP) {\n // last line, middle\n const rowCount = Math.ceil(itemsCount / numberOfItemsInLine);\n return (rowCount - 1) * numberOfItemsInLine + firstLineMiddleIndex;\n }\n if (direction === NavDirections.DOWN) {\n // first line, middle\n return firstLineMiddleIndex;\n }\n if (direction === NavDirections.LEFT) {\n // middle line, last item\n let result = numberOfItemsInLine - 1;\n const midIndex = Math.floor((itemsCount - 1) / 2);\n while (result < midIndex) {\n result += numberOfItemsInLine;\n }\n return result;\n }\n if (direction === NavDirections.RIGHT) {\n // middle line, first item\n let result = 0;\n const midIndex = Math.floor((itemsCount - 1) / 2);\n while (result + numberOfItemsInLine < midIndex) {\n result += numberOfItemsInLine;\n }\n return result;\n }\n };\n\n const rawIndex = getRawIndex();\n return Math.max(0, Math.min(rawIndex, itemsCount - 1));\n}\n\nfunction calcRawNewIndexAfterArrowNavigation({\n activeIndex,\n itemsCount,\n numberOfItemsInLine,\n direction,\n circularNavigation = false\n}: {\n activeIndex: number;\n itemsCount: number;\n numberOfItemsInLine: number;\n direction: NavDirections;\n circularNavigation?: boolean;\n}) {\n const getIndexLine = (index: number) => Math.ceil((index + 1) / numberOfItemsInLine);\n\n const horizontalChange = (isIndexIncrease: boolean) => {\n let nextIndex = activeIndex + (isIndexIncrease ? 1 : -1);\n\n if (nextIndex < 0 || nextIndex >= itemsCount) {\n if (circularNavigation) {\n if (nextIndex < 0) {\n nextIndex = itemsCount - 1;\n } else if (nextIndex >= itemsCount) {\n nextIndex = 0;\n }\n } else {\n return { isOutbound: true };\n }\n }\n\n const currentLine = getIndexLine(activeIndex);\n const nextIndexLine = getIndexLine(nextIndex);\n if (currentLine !== nextIndexLine) {\n return { isOutbound: true };\n }\n\n return { isOutbound: false, nextIndex };\n };\n\n const verticalChange = (isIndexIncrease: boolean) => {\n const nextIndex = activeIndex + numberOfItemsInLine * (isIndexIncrease ? 1 : -1);\n if (nextIndex < 0 || itemsCount <= nextIndex) {\n return { isOutbound: true };\n }\n return { isOutbound: false, nextIndex };\n };\n\n switch (direction) {\n case NavDirections.RIGHT:\n return horizontalChange(true);\n case NavDirections.LEFT:\n return horizontalChange(false);\n case NavDirections.DOWN:\n return verticalChange(true);\n case NavDirections.UP:\n return verticalChange(false);\n }\n}\n\nexport function calcActiveIndexAfterArrowNavigation({\n activeIndex,\n itemsCount,\n numberOfItemsInLine,\n direction,\n disabledIndexes = [],\n circularNavigation = false\n}: {\n activeIndex: number;\n itemsCount: number;\n numberOfItemsInLine: number;\n direction: NavDirections;\n disabledIndexes?: number[];\n circularNavigation?: boolean;\n}) {\n let result = calcRawNewIndexAfterArrowNavigation({\n activeIndex,\n itemsCount,\n numberOfItemsInLine,\n direction,\n circularNavigation\n });\n while (!result.isOutbound && disabledIndexes.includes(result.nextIndex)) {\n result = calcRawNewIndexAfterArrowNavigation({\n activeIndex: result.nextIndex,\n itemsCount,\n numberOfItemsInLine,\n direction,\n circularNavigation\n });\n }\n\n return result;\n}\n"],"names":["getActiveIndexFromInboundNavigation","_ref","direction","numberOfItemsInLine","itemsCount","rawIndex","firstLineMiddleIndex","Math","floor","NavDirections","UP","ceil","DOWN","LEFT","result","midIndex","RIGHT","getRawIndex","max","min","calcRawNewIndexAfterArrowNavigation","_ref2","activeIndex","_ref2$circularNavigat","circularNavigation","getIndexLine","index","horizontalChange","isIndexIncrease","nextIndex","isOutbound","verticalChange","calcActiveIndexAfterArrowNavigation","_ref3","_ref3$disabledIndexes","disabledIndexes","_ref3$circularNavigat","includes"],"mappings":"+DAEM,SAAUA,EAAmCC,GAQlD,IAPCC,EAASD,EAATC,UACAC,EAAmBF,EAAnBE,oBACAC,EAAUH,EAAVG,WAqCMC,EA/Bc,WAClB,IAAMC,EAAuBC,KAAKC,MAAML,EAAsB,GAC9D,GAAID,IAAcO,EAAcC,GAG9B,OADiBH,KAAKI,KAAKP,EAAaD,GACrB,GAAKA,EAAsBG,EAEhD,GAAIJ,IAAcO,EAAcG,KAE9B,OAAON,EAET,GAAIJ,IAAcO,EAAcI,KAAM,CAIpC,IAFA,IAAIC,EAASX,EAAsB,EAC7BY,EAAWR,KAAKC,OAAOJ,EAAa,GAAK,GAC/BW,EAATD,GACLA,GAAUX,EAEZ,OAAOW,CACT,CACA,GAAIZ,IAAcO,EAAcO,MAAO,CAIrC,IAFA,IAAIF,EAAS,EACPC,EAAWR,KAAKC,OAAOJ,EAAa,GAAK,GACTW,EAA/BD,EAASX,GACdW,GAAUX,EAEZ,OAAOW,CACT,EAGeG,GACjB,OAAOV,KAAKW,IAAI,EAAGX,KAAKY,IAAId,EAAUD,EAAa,GACrD,CAEA,SAASgB,EAAmCC,GAY3C,IAXCC,EAAWD,EAAXC,YACAlB,EAAUiB,EAAVjB,WACAD,EAAmBkB,EAAnBlB,oBACSoB,EAAAF,EACTG,mBAAAA,OAAqB,IAAHD,GAAQA,EAQpBE,EAAe,SAACC,GAAa,OAAKnB,KAAKI,MAAMe,EAAQ,GAAKvB,EAAoB,EAE9EwB,EAAmB,SAACC,GACxB,IAAIC,EAAYP,GAAeM,EAAkB,GAAK,GAEtD,GAAgB,EAAZC,GAAiBA,GAAazB,EAAY,CAC5C,IAAIoB,EAOF,MAAO,CAAEM,YAAY,GANL,EAAZD,EACFA,EAAYzB,EAAa,EACHA,EAAbyB,IACTA,EAAY,EAKlB,CAIA,OAFoBJ,EAAaH,KACXG,EAAaI,GAE1B,CAAEC,YAAY,GAGhB,CAAEA,YAAY,EAAOD,UAAAA,IAGxBE,EAAiB,SAACH,GACtB,IAAMC,EAAYP,EAAcnB,GAAuByB,EAAkB,GAAK,GAC9E,OAAgB,EAAZC,GAA+BA,GAAdzB,EACZ,CAAE0B,YAAY,GAEhB,CAAEA,YAAY,EAAOD,UAAAA,IAG9B,OA3CSR,EAATnB,WA4CE,KAAKO,EAAcO,MACjB,OAAOW,GAAiB,GAC1B,KAAKlB,EAAcI,KACjB,OAAOc,GAAiB,GAC1B,KAAKlB,EAAcG,KACjB,OAAOmB,GAAe,GACxB,KAAKtB,EAAcC,GACjB,OAAOqB,GAAe,GAE5B,UAEgBC,EAAmCC,GAsBjD,IARD,IAZC7B,EAAU6B,EAAV7B,WACAD,EAAmB8B,EAAnB9B,oBACAD,EAAS+B,EAAT/B,UAASgC,EAAAD,EACTE,gBAAAA,OAAkB,IAAHD,EAAG,GAAEA,EAAAE,EAAAH,EACpBT,mBAAAA,OAAqB,IAAHY,GAAQA,EAStBtB,EAASM,EAAoC,CAC/CE,YAfSW,EAAXX,YAgBElB,WAAAA,EACAD,oBAAAA,EACAD,UAAAA,EACAsB,mBAAAA,KAEMV,EAAOgB,YAAcK,EAAgBE,SAASvB,EAAOe,YAC3Df,EAASM,EAAoC,CAC3CE,YAAaR,EAAOe,UACpBzB,WAAAA,EACAD,oBAAAA,EACAD,UAAAA,EACAsB,mBAAAA,IAIJ,OAAOV,CACT"}