@vibe/core 4.5.12 → 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 (417) hide show
  1. package/dist/base/dist/BaseInput/BaseInput.module.scss.js +1 -1
  2. package/dist/components/a11y/dist/HiddenText/HiddenText.module.scss.js +1 -1
  3. package/dist/components/a11y/dist/useGridKeyboardNavigation/gridKeyboardNavigationHelper.js +2 -0
  4. package/dist/components/a11y/dist/useGridKeyboardNavigation/gridKeyboardNavigationHelper.js.map +1 -0
  5. package/dist/components/a11y/dist/useGridKeyboardNavigation/useGridKeyboardNavigation.js +2 -0
  6. package/dist/components/a11y/dist/useGridKeyboardNavigation/useGridKeyboardNavigation.js.map +1 -0
  7. package/dist/components/avatar/dist/Avatar/Avatar.module.scss.js +1 -1
  8. package/dist/components/avatar/dist/Avatar/AvatarBadge.module.scss.js +1 -1
  9. package/dist/components/avatar/dist/Avatar/AvatarContent.module.scss.js +1 -1
  10. package/dist/components/button/dist/Button/Button.module.scss.js +1 -1
  11. package/dist/components/button-group/dist/ButtonGroup/ButtonGroup.module.scss.js +1 -1
  12. package/dist/components/checkbox/dist/Checkbox/Checkbox.module.scss.js +1 -1
  13. package/dist/components/clickable/dist/Clickable/Clickable.module.scss.js +1 -1
  14. package/dist/components/color-picker/dist/ColorPicker/ColorPicker.js +2 -0
  15. package/dist/components/color-picker/dist/ColorPicker/ColorPicker.js.map +1 -0
  16. package/dist/components/color-picker/dist/ColorPicker/ColorPicker.module.scss.js +2 -0
  17. package/dist/components/color-picker/dist/ColorPicker/ColorPickerConstants.js +2 -0
  18. package/dist/components/color-picker/dist/ColorPicker/ColorPickerConstants.js.map +1 -0
  19. package/dist/components/color-picker/dist/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.js +2 -0
  20. package/dist/components/color-picker/dist/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.js.map +1 -0
  21. package/dist/components/color-picker/dist/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.module.scss.js +2 -0
  22. package/dist/components/color-picker/dist/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.js +2 -0
  23. package/dist/components/color-picker/dist/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.js.map +1 -0
  24. package/dist/components/color-picker/dist/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.module.scss.js +2 -0
  25. package/dist/components/color-picker/dist/ColorPicker/components/ColorPickerContent/ColorPickerContent.js +2 -0
  26. package/dist/components/color-picker/dist/ColorPicker/components/ColorPickerContent/ColorPickerContent.js.map +1 -0
  27. package/dist/components/color-picker/dist/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.js +2 -0
  28. package/dist/components/color-picker/dist/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.js.map +1 -0
  29. package/dist/components/color-picker/dist/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.module.scss.js +2 -0
  30. package/dist/components/color-picker/dist/ColorPicker/services/ColorPickerStyleService.js +2 -0
  31. package/dist/components/color-picker/dist/ColorPicker/services/ColorPickerStyleService.js.map +1 -0
  32. package/dist/components/counter/dist/Counter/Counter.module.scss.js +1 -1
  33. package/dist/components/dialog/dist/Dialog/Dialog.module.scss.js +1 -1
  34. package/dist/components/dialog/dist/Dialog/components/DialogContent/DialogContent.js +1 -1
  35. package/dist/components/dialog/dist/Dialog/components/DialogContent/DialogContent.module.scss.js +1 -1
  36. package/dist/components/dialog/dist/DialogContentContainer/DialogContentContainer.module.scss.js +1 -1
  37. package/dist/components/divider/dist/Divider/Divider.module.scss.js +1 -1
  38. package/dist/components/editable/dist/EditableHeading/EditableHeading.module.scss.js +1 -1
  39. package/dist/components/editable/dist/EditableText/EditableText.module.scss.js +1 -1
  40. package/dist/components/editable/dist/EditableTypography/EditableTypography.module.scss.js +1 -1
  41. package/dist/components/expand-collapse/dist/ExpandCollapse/ExpandCollapse.module.scss.js +1 -1
  42. package/dist/components/formatted-number/dist/FormattedNumber/FormattedNumber.module.scss.js +1 -1
  43. package/dist/components/icon/dist/Icon/Icon.module.scss.js +1 -1
  44. package/dist/components/icon-button/dist/IconButton/IconButton.module.scss.js +1 -1
  45. package/dist/components/index.d.ts +1 -1
  46. package/dist/components/label/dist/Label/Label.module.scss.js +1 -1
  47. package/dist/components/label/dist/Label/LabelCelebrationAnimation.module.scss.js +1 -1
  48. package/dist/components/layout/dist/Box/Box.module.scss.js +1 -1
  49. package/dist/components/layout/dist/Flex/Flex.module.scss.js +1 -1
  50. package/dist/components/link/dist/Link/Link.module.scss.js +1 -1
  51. package/dist/components/loader/dist/Loader/Loader.module.scss.js +1 -1
  52. package/dist/components/progress-bars/dist/ProgressBars/PercentageLabel/PercentageLabel.module.scss.js +1 -1
  53. package/dist/components/progress-bars/dist/ProgressBars/ProgressBar/Bar/Bar.module.scss.js +1 -1
  54. package/dist/components/progress-bars/dist/ProgressBars/ProgressBar/ProgressBar.module.scss.js +1 -1
  55. package/dist/components/radio-button/dist/RadioButton/RadioButton.module.scss.js +1 -1
  56. package/dist/components/tooltip/dist/Tooltip/Tooltip.module.scss.js +1 -1
  57. package/dist/components/typography/dist/Heading/Heading.module.scss.js +1 -1
  58. package/dist/components/typography/dist/Text/Text.module.scss.js +1 -1
  59. package/dist/components/typography/dist/Typography/Typography.module.scss.js +1 -1
  60. package/dist/hooks/index.d.ts +1 -1
  61. package/dist/metadata/components.json +126 -2
  62. package/dist/metadata.json +126 -2
  63. package/dist/mocked_classnames/components/index.d.ts +1 -1
  64. package/dist/mocked_classnames/hooks/index.d.ts +1 -1
  65. package/dist/mocked_classnames/src/components/Accordion/Accordion/Accordion.module.scss.js +1 -1
  66. package/dist/mocked_classnames/src/components/AlertBanner/AlertBanner.module.scss.js +1 -1
  67. package/dist/mocked_classnames/src/components/AlertBanner/AlertBannerButton/AlertBannerButton.module.scss.js +1 -1
  68. package/dist/mocked_classnames/src/components/AlertBanner/AlertBannerLink/AlertBannerLink.module.scss.js +1 -1
  69. package/dist/mocked_classnames/src/components/AlertBanner/AlertBannerText/AlertBannerText.module.scss.js +1 -1
  70. package/dist/mocked_classnames/src/components/AttentionBox/AttentionBox.module.scss.js +1 -1
  71. package/dist/mocked_classnames/src/components/AttentionBox/components/AttentionBoxCloseButton/AttentionBoxCloseButton.module.scss.js +1 -1
  72. package/dist/mocked_classnames/src/components/AttentionBox/components/AttentionBoxLeadingIcon/AttentionBoxLeadingIcon.module.scss.js +1 -1
  73. package/dist/mocked_classnames/src/components/AttentionBox/components/AttentionBoxLink/AttentionBoxLink.module.scss.js +1 -1
  74. package/dist/mocked_classnames/src/components/AttentionBox/layouts/AttentionBoxCompact/AttentionBoxCompact.module.scss.js +1 -1
  75. package/dist/mocked_classnames/src/components/AttentionBox/layouts/AttentionBoxDefault/AttentionBoxDefault.module.scss.js +1 -1
  76. package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroup.module.scss.js +1 -1
  77. package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupCounter.module.scss.js +1 -1
  78. package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupCounterTooltipContent.module.scss.js +1 -1
  79. package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupCounterTooltipContentVirtualizedList.module.scss.js +1 -1
  80. package/dist/mocked_classnames/src/components/Badge/Badge.module.scss.js +1 -1
  81. package/dist/mocked_classnames/src/components/Badge/Indicator/Indicator.module.scss.js +1 -1
  82. package/dist/mocked_classnames/src/components/BaseItem/BaseItem.module.scss.js +1 -1
  83. package/dist/mocked_classnames/src/components/BaseList/BaseList.module.scss.js +1 -1
  84. package/dist/mocked_classnames/src/components/BreadcrumbsBar/BreadcrumbItem/BreadcrumbContent/BreadcrumbContent.module.scss.js +1 -1
  85. package/dist/mocked_classnames/src/components/BreadcrumbsBar/BreadcrumbItem/BreadcrumbItem.module.scss.js +1 -1
  86. package/dist/mocked_classnames/src/components/BreadcrumbsBar/BreadcrumbMenu/BreadcrumbsMenu.module.scss.js +1 -1
  87. package/dist/mocked_classnames/src/components/BreadcrumbsBar/BreadcrumbsBar.module.scss.js +1 -1
  88. package/dist/mocked_classnames/src/components/Chips/Chips.module.scss.js +1 -1
  89. package/dist/mocked_classnames/src/components/Combobox/Combobox.module.scss.js +1 -1
  90. package/dist/mocked_classnames/src/components/Combobox/ComboboxHelpers/ComboboxHelpers.module.scss.js +1 -1
  91. package/dist/mocked_classnames/src/components/Combobox/components/ComboboxCategory/ComboboxCategory.module.scss.js +1 -1
  92. package/dist/mocked_classnames/src/components/Combobox/components/ComboboxItems/ComboboxItems.module.scss.js +1 -1
  93. package/dist/mocked_classnames/src/components/Combobox/components/ComboboxOption/ComboboxOption.module.scss.js +1 -1
  94. package/dist/mocked_classnames/src/components/Combobox/components/StickyCategoryHeader/StickyCategoryHeader.module.scss.js +1 -1
  95. package/dist/mocked_classnames/src/components/DatePicker/DatePicker.module.scss.js +1 -1
  96. package/dist/mocked_classnames/src/components/DatePicker/DatePickerHeader.module.scss.js +1 -1
  97. package/dist/mocked_classnames/src/components/Dropdown/components/DropdownBase/DropdownBase.module.scss.js +1 -1
  98. package/dist/mocked_classnames/src/components/Dropdown/components/DropdownBaseList/DropdownBaseList.module.scss.js +1 -1
  99. package/dist/mocked_classnames/src/components/Dropdown/components/DropdownBoxMode/DropdownBoxMode.module.scss.js +1 -1
  100. package/dist/mocked_classnames/src/components/Dropdown/components/Menu/Menu.module.scss.js +1 -1
  101. package/dist/mocked_classnames/src/components/Dropdown/components/MultiSelectedValues/MultiSelectedValues.module.scss.js +1 -1
  102. package/dist/mocked_classnames/src/components/Dropdown/components/Trigger/Trigger.module.scss.js +1 -1
  103. package/dist/mocked_classnames/src/components/EmptyState/EmptyState.module.scss.js +1 -1
  104. package/dist/mocked_classnames/src/components/FieldLabel/FieldLabel.module.scss.js +1 -1
  105. package/dist/mocked_classnames/src/components/Info/components/InfoDialogContent/InfoDialogContent.module.scss.js +1 -1
  106. package/dist/mocked_classnames/src/components/Info/components/InfoLink/InfoLink.module.scss.js +1 -1
  107. package/dist/mocked_classnames/src/components/InfoText/InfoText.module.scss.js +1 -1
  108. package/dist/mocked_classnames/src/components/List/List.module.scss.js +1 -1
  109. package/dist/mocked_classnames/src/components/List/VirtualizedListItems/VirtualizedListItems.module.scss.js +1 -1
  110. package/dist/mocked_classnames/src/components/ListItem/ListItem.module.scss.js +1 -1
  111. package/dist/mocked_classnames/src/components/ListItemAvatar/ListItemAvatar.module.scss.js +1 -1
  112. package/dist/mocked_classnames/src/components/ListItemIcon/ListItemIcon.module.scss.js +1 -1
  113. package/dist/mocked_classnames/src/components/ListTitle/ListTitle.module.scss.js +1 -1
  114. package/dist/mocked_classnames/src/components/Menu/Menu/Menu.module.scss.js +1 -1
  115. package/dist/mocked_classnames/src/components/Menu/Menu/hooks/useMenuKeyboardNavigation.js +1 -1
  116. package/dist/mocked_classnames/src/components/Menu/Menu/hooks/useMenuKeyboardNavigation.js.map +1 -1
  117. package/dist/mocked_classnames/src/components/Menu/MenuDivider/MenuDivider.module.scss.js +1 -1
  118. package/dist/mocked_classnames/src/components/Menu/MenuItem/MenuItem.module.scss.js +1 -1
  119. package/dist/mocked_classnames/src/components/Menu/MenuItem/components/BaseMenuItem/BaseMenuItem.module.scss.js +1 -1
  120. package/dist/mocked_classnames/src/components/Menu/MenuItem/components/MenuItemIcon/MenuItemIcon.module.scss.js +1 -1
  121. package/dist/mocked_classnames/src/components/Menu/MenuItem/components/MenuItemSubMenuIcon/MenuItemSubMenuIcon.module.scss.js +1 -1
  122. package/dist/mocked_classnames/src/components/Menu/MenuItemButton/MenuItemButton.module.scss.js +1 -1
  123. package/dist/mocked_classnames/src/components/Menu/MenuTitle/MenuTitle.module.scss.js +1 -1
  124. package/dist/mocked_classnames/src/components/MenuButton/MenuButton.module.scss.js +1 -1
  125. package/dist/mocked_classnames/src/components/Modal/Modal/Modal.module.scss.js +1 -1
  126. package/dist/mocked_classnames/src/components/Modal/ModalHeader/ModalHeader.module.scss.js +1 -1
  127. package/dist/mocked_classnames/src/components/Modal/ModalMedia/ModalMedia.module.scss.js +1 -1
  128. package/dist/mocked_classnames/src/components/Modal/ModalTopActions/ModalTopActions.module.scss.js +1 -1
  129. package/dist/mocked_classnames/src/components/Modal/footers/ModalFooter/ModalFooter.module.scss.js +1 -1
  130. package/dist/mocked_classnames/src/components/Modal/footers/ModalFooterBase/ModalFooterBase.module.scss.js +1 -1
  131. package/dist/mocked_classnames/src/components/Modal/footers/ModalFooterWizard/ModalFooterWizard.module.scss.js +1 -1
  132. package/dist/mocked_classnames/src/components/Modal/layouts/ModalBasicLayout/ModalBasicLayout.module.scss.js +1 -1
  133. package/dist/mocked_classnames/src/components/Modal/layouts/ModalFooterShadow.module.scss.js +1 -1
  134. package/dist/mocked_classnames/src/components/Modal/layouts/ModalLayoutScrollableContent.module.scss.js +1 -1
  135. package/dist/mocked_classnames/src/components/Modal/layouts/ModalMediaLayout/ModalMediaLayout.module.scss.js +1 -1
  136. package/dist/mocked_classnames/src/components/Modal/layouts/ModalSideBySideLayout/ModalSideBySideLayout.module.scss.js +1 -1
  137. package/dist/mocked_classnames/src/components/MultiStepIndicator/MultiStepIndicator.module.scss.js +1 -1
  138. package/dist/mocked_classnames/src/components/MultiStepIndicator/components/StepIndicator/StepIndicator.module.scss.js +1 -1
  139. package/dist/mocked_classnames/src/components/NumberField/NumberField.module.scss.js +1 -1
  140. package/dist/mocked_classnames/src/components/NumberField/components/NumberFieldSpinButton/NumberFieldSpinButton.module.scss.js +1 -1
  141. package/dist/mocked_classnames/src/components/Search/Search.module.scss.js +1 -1
  142. package/dist/mocked_classnames/src/components/Skeleton/Skeleton.module.scss.js +1 -1
  143. package/dist/mocked_classnames/src/components/SlideTransition/SlideTransition.module.scss.js +1 -1
  144. package/dist/mocked_classnames/src/components/Slider/SelectionIndicator.module.scss.js +1 -1
  145. package/dist/mocked_classnames/src/components/Slider/Slider.module.scss.js +1 -1
  146. package/dist/mocked_classnames/src/components/Slider/SliderBase/SliderBase.module.scss.js +1 -1
  147. package/dist/mocked_classnames/src/components/Slider/SliderBase/SliderFilledTrack.module.scss.js +1 -1
  148. package/dist/mocked_classnames/src/components/Slider/SliderBase/SliderRail.module.scss.js +1 -1
  149. package/dist/mocked_classnames/src/components/Slider/SliderBase/SliderThumb.module.scss.js +1 -1
  150. package/dist/mocked_classnames/src/components/Slider/SliderBase/SliderTrack.module.scss.js +1 -1
  151. package/dist/mocked_classnames/src/components/Slider/SliderInfix.module.scss.js +1 -1
  152. package/dist/mocked_classnames/src/components/SplitButton/SplitButton.module.scss.js +1 -1
  153. package/dist/mocked_classnames/src/components/Steps/Steps.module.scss.js +1 -1
  154. package/dist/mocked_classnames/src/components/Steps/StepsCommand.module.scss.js +1 -1
  155. package/dist/mocked_classnames/src/components/Steps/StepsDot.module.scss.js +1 -1
  156. package/dist/mocked_classnames/src/components/Steps/StepsGalleryHeader.module.scss.js +1 -1
  157. package/dist/mocked_classnames/src/components/Steps/StepsHeader.module.scss.js +1 -1
  158. package/dist/mocked_classnames/src/components/Steps/StepsNumbersHeader.module.scss.js +1 -1
  159. package/dist/mocked_classnames/src/components/Switch/Switch.module.scss.js +1 -1
  160. package/dist/mocked_classnames/src/components/Table/Table/Table.module.scss.js +1 -1
  161. package/dist/mocked_classnames/src/components/Table/TableBody/TableBody.module.scss.js +1 -1
  162. package/dist/mocked_classnames/src/components/Table/TableCell/TableCell.module.scss.js +1 -1
  163. package/dist/mocked_classnames/src/components/Table/TableCellSkeleton/TableCellSkeleton.module.scss.js +1 -1
  164. package/dist/mocked_classnames/src/components/Table/TableContainer/TableContainer.module.scss.js +1 -1
  165. package/dist/mocked_classnames/src/components/Table/TableHeader/TableHeader.module.scss.js +1 -1
  166. package/dist/mocked_classnames/src/components/Table/TableHeaderCell/TableHeaderCell.module.scss.js +1 -1
  167. package/dist/mocked_classnames/src/components/Table/TableRow/TableRow.module.scss.js +1 -1
  168. package/dist/mocked_classnames/src/components/Table/TableRowMenu/TableRowMenu.module.scss.js +1 -1
  169. package/dist/mocked_classnames/src/components/Table/TableVirtualizedBody/TableVirtualizedBody.module.scss.js +1 -1
  170. package/dist/mocked_classnames/src/components/Tabs/Tab/Tab.module.scss.js +1 -1
  171. package/dist/mocked_classnames/src/components/Tabs/TabList/TabList.js +1 -1
  172. package/dist/mocked_classnames/src/components/Tabs/TabList/TabList.js.map +1 -1
  173. package/dist/mocked_classnames/src/components/Tabs/TabList/TabList.module.scss.js +1 -1
  174. package/dist/mocked_classnames/src/components/Tabs/TabPanel/TabPanel.module.scss.js +1 -1
  175. package/dist/mocked_classnames/src/components/Tabs/TabPanels/TabPanels.module.scss.js +1 -1
  176. package/dist/mocked_classnames/src/components/TextArea/TextArea.module.scss.js +1 -1
  177. package/dist/mocked_classnames/src/components/TextField/TextField.module.scss.js +1 -1
  178. package/dist/mocked_classnames/src/components/TextWithHighlight/TextWithHighlight.module.scss.js +1 -1
  179. package/dist/mocked_classnames/src/components/Tipseen/Tipseen.module.scss.js +1 -1
  180. package/dist/mocked_classnames/src/components/Tipseen/TipseenBasicContent.module.scss.js +1 -1
  181. package/dist/mocked_classnames/src/components/Tipseen/TipseenContent.module.scss.js +1 -1
  182. package/dist/mocked_classnames/src/components/Tipseen/TipseenMedia/TipseenMedia.module.scss.js +1 -1
  183. package/dist/mocked_classnames/src/components/Tipseen/TipseenTitle.module.scss.js +1 -1
  184. package/dist/mocked_classnames/src/components/Tipseen/TipseenWizard.module.scss.js +1 -1
  185. package/dist/mocked_classnames/src/components/Toast/Toast.module.scss.js +1 -1
  186. package/dist/mocked_classnames/src/components/Toast/ToastLink/ToastLink.module.scss.js +1 -1
  187. package/dist/mocked_classnames/src/components/Toggle/MockToggle.module.scss.js +1 -1
  188. package/dist/mocked_classnames/src/components/Toggle/Toggle.module.scss.js +1 -1
  189. package/dist/mocked_classnames/src/components/Toggle/ToggleText.module.scss.js +1 -1
  190. package/dist/mocked_classnames/src/components/TransitionView/TransitionView.module.scss.js +1 -1
  191. package/dist/mocked_classnames/src/components/VirtualizedGrid/VirtualizedGrid.module.scss.js +1 -1
  192. package/dist/mocked_classnames/src/components/VirtualizedList/VirtualizedList.module.scss.js +1 -1
  193. package/dist/mocked_classnames/src/components/next/List/List.module.scss.js +1 -1
  194. package/dist/mocked_classnames/src/components/next/List/ListTitle/ListTitle.module.scss.js +1 -1
  195. package/dist/mocked_classnames/src/index.js +1 -1
  196. package/dist/mocked_classnames/src/utils/colors-utils.js.map +1 -1
  197. package/dist/shared/dist/constants/keyCodes.js +1 -1
  198. package/dist/shared/dist/constants/keyCodes.js.map +1 -1
  199. package/dist/shared/dist/hooks/useFullKeyboardListeners.js +2 -0
  200. package/dist/shared/dist/hooks/useFullKeyboardListeners.js.map +1 -0
  201. package/dist/shared/dist/hooks/useLastNavigationDirection.js +1 -1
  202. package/dist/shared/dist/utils/colors-utils.js +2 -0
  203. package/dist/shared/dist/utils/colors-utils.js.map +1 -0
  204. package/dist/src/components/Accordion/Accordion/Accordion.module.scss.js +1 -1
  205. package/dist/src/components/AlertBanner/AlertBanner.module.scss.js +1 -1
  206. package/dist/src/components/AlertBanner/AlertBannerButton/AlertBannerButton.module.scss.js +1 -1
  207. package/dist/src/components/AlertBanner/AlertBannerLink/AlertBannerLink.module.scss.js +1 -1
  208. package/dist/src/components/AlertBanner/AlertBannerText/AlertBannerText.module.scss.js +1 -1
  209. package/dist/src/components/AttentionBox/AttentionBox.module.scss.js +1 -1
  210. package/dist/src/components/AttentionBox/components/AttentionBoxCloseButton/AttentionBoxCloseButton.module.scss.js +1 -1
  211. package/dist/src/components/AttentionBox/components/AttentionBoxLeadingIcon/AttentionBoxLeadingIcon.module.scss.js +1 -1
  212. package/dist/src/components/AttentionBox/components/AttentionBoxLink/AttentionBoxLink.module.scss.js +1 -1
  213. package/dist/src/components/AttentionBox/layouts/AttentionBoxCompact/AttentionBoxCompact.module.scss.js +1 -1
  214. package/dist/src/components/AttentionBox/layouts/AttentionBoxDefault/AttentionBoxDefault.module.scss.js +1 -1
  215. package/dist/src/components/AvatarGroup/AvatarGroup.module.scss.js +1 -1
  216. package/dist/src/components/AvatarGroup/AvatarGroupCounter.module.scss.js +1 -1
  217. package/dist/src/components/AvatarGroup/AvatarGroupCounterTooltipContent.module.scss.js +1 -1
  218. package/dist/src/components/AvatarGroup/AvatarGroupCounterTooltipContentVirtualizedList.module.scss.js +1 -1
  219. package/dist/src/components/Badge/Badge.module.scss.js +1 -1
  220. package/dist/src/components/Badge/Indicator/Indicator.module.scss.js +1 -1
  221. package/dist/src/components/BaseItem/BaseItem.module.scss.js +1 -1
  222. package/dist/src/components/BaseList/BaseList.module.scss.js +1 -1
  223. package/dist/src/components/BreadcrumbsBar/BreadcrumbItem/BreadcrumbContent/BreadcrumbContent.module.scss.js +1 -1
  224. package/dist/src/components/BreadcrumbsBar/BreadcrumbItem/BreadcrumbItem.module.scss.js +1 -1
  225. package/dist/src/components/BreadcrumbsBar/BreadcrumbMenu/BreadcrumbsMenu.module.scss.js +1 -1
  226. package/dist/src/components/BreadcrumbsBar/BreadcrumbsBar.module.scss.js +1 -1
  227. package/dist/src/components/Chips/Chips.module.scss.js +1 -1
  228. package/dist/src/components/Combobox/Combobox.module.scss.js +1 -1
  229. package/dist/src/components/Combobox/ComboboxHelpers/ComboboxHelpers.module.scss.js +1 -1
  230. package/dist/src/components/Combobox/components/ComboboxCategory/ComboboxCategory.module.scss.js +1 -1
  231. package/dist/src/components/Combobox/components/ComboboxItems/ComboboxItems.module.scss.js +1 -1
  232. package/dist/src/components/Combobox/components/ComboboxOption/ComboboxOption.module.scss.js +1 -1
  233. package/dist/src/components/Combobox/components/StickyCategoryHeader/StickyCategoryHeader.module.scss.js +1 -1
  234. package/dist/src/components/DatePicker/DatePicker.module.scss.js +1 -1
  235. package/dist/src/components/DatePicker/DatePickerHeader.module.scss.js +1 -1
  236. package/dist/src/components/Dropdown/components/DropdownBase/DropdownBase.module.scss.js +1 -1
  237. package/dist/src/components/Dropdown/components/DropdownBaseList/DropdownBaseList.module.scss.js +1 -1
  238. package/dist/src/components/Dropdown/components/DropdownBoxMode/DropdownBoxMode.module.scss.js +1 -1
  239. package/dist/src/components/Dropdown/components/Menu/Menu.module.scss.js +1 -1
  240. package/dist/src/components/Dropdown/components/MultiSelectedValues/MultiSelectedValues.module.scss.js +1 -1
  241. package/dist/src/components/Dropdown/components/Trigger/Trigger.module.scss.js +1 -1
  242. package/dist/src/components/EmptyState/EmptyState.module.scss.js +1 -1
  243. package/dist/src/components/FieldLabel/FieldLabel.module.scss.js +1 -1
  244. package/dist/src/components/Info/components/InfoDialogContent/InfoDialogContent.module.scss.js +1 -1
  245. package/dist/src/components/Info/components/InfoLink/InfoLink.module.scss.js +1 -1
  246. package/dist/src/components/InfoText/InfoText.module.scss.js +1 -1
  247. package/dist/src/components/List/List.module.scss.js +1 -1
  248. package/dist/src/components/List/VirtualizedListItems/VirtualizedListItems.module.scss.js +1 -1
  249. package/dist/src/components/ListItem/ListItem.module.scss.js +1 -1
  250. package/dist/src/components/ListItemAvatar/ListItemAvatar.module.scss.js +1 -1
  251. package/dist/src/components/ListItemIcon/ListItemIcon.module.scss.js +1 -1
  252. package/dist/src/components/ListTitle/ListTitle.module.scss.js +1 -1
  253. package/dist/src/components/Menu/Menu/Menu.module.scss.js +1 -1
  254. package/dist/src/components/Menu/Menu/hooks/useMenuKeyboardNavigation.js +1 -1
  255. package/dist/src/components/Menu/Menu/hooks/useMenuKeyboardNavigation.js.map +1 -1
  256. package/dist/src/components/Menu/MenuDivider/MenuDivider.module.scss.js +1 -1
  257. package/dist/src/components/Menu/MenuItem/MenuItem.module.scss.js +1 -1
  258. package/dist/src/components/Menu/MenuItem/components/BaseMenuItem/BaseMenuItem.module.scss.js +1 -1
  259. package/dist/src/components/Menu/MenuItem/components/MenuItemIcon/MenuItemIcon.module.scss.js +1 -1
  260. package/dist/src/components/Menu/MenuItem/components/MenuItemSubMenuIcon/MenuItemSubMenuIcon.module.scss.js +1 -1
  261. package/dist/src/components/Menu/MenuItemButton/MenuItemButton.module.scss.js +1 -1
  262. package/dist/src/components/Menu/MenuTitle/MenuTitle.module.scss.js +1 -1
  263. package/dist/src/components/MenuButton/MenuButton.module.scss.js +1 -1
  264. package/dist/src/components/Modal/Modal/Modal.module.scss.js +1 -1
  265. package/dist/src/components/Modal/ModalHeader/ModalHeader.module.scss.js +1 -1
  266. package/dist/src/components/Modal/ModalMedia/ModalMedia.module.scss.js +1 -1
  267. package/dist/src/components/Modal/ModalTopActions/ModalTopActions.module.scss.js +1 -1
  268. package/dist/src/components/Modal/footers/ModalFooter/ModalFooter.module.scss.js +1 -1
  269. package/dist/src/components/Modal/footers/ModalFooterBase/ModalFooterBase.module.scss.js +1 -1
  270. package/dist/src/components/Modal/footers/ModalFooterWizard/ModalFooterWizard.module.scss.js +1 -1
  271. package/dist/src/components/Modal/layouts/ModalBasicLayout/ModalBasicLayout.module.scss.js +1 -1
  272. package/dist/src/components/Modal/layouts/ModalFooterShadow.module.scss.js +1 -1
  273. package/dist/src/components/Modal/layouts/ModalLayoutScrollableContent.module.scss.js +1 -1
  274. package/dist/src/components/Modal/layouts/ModalMediaLayout/ModalMediaLayout.module.scss.js +1 -1
  275. package/dist/src/components/Modal/layouts/ModalSideBySideLayout/ModalSideBySideLayout.module.scss.js +1 -1
  276. package/dist/src/components/MultiStepIndicator/MultiStepIndicator.module.scss.js +1 -1
  277. package/dist/src/components/MultiStepIndicator/components/StepIndicator/StepIndicator.module.scss.js +1 -1
  278. package/dist/src/components/NumberField/NumberField.module.scss.js +1 -1
  279. package/dist/src/components/NumberField/components/NumberFieldSpinButton/NumberFieldSpinButton.module.scss.js +1 -1
  280. package/dist/src/components/Search/Search.module.scss.js +1 -1
  281. package/dist/src/components/Skeleton/Skeleton.module.scss.js +1 -1
  282. package/dist/src/components/SlideTransition/SlideTransition.module.scss.js +1 -1
  283. package/dist/src/components/Slider/SelectionIndicator.module.scss.js +1 -1
  284. package/dist/src/components/Slider/Slider.module.scss.js +1 -1
  285. package/dist/src/components/Slider/SliderBase/SliderBase.module.scss.js +1 -1
  286. package/dist/src/components/Slider/SliderBase/SliderFilledTrack.module.scss.js +1 -1
  287. package/dist/src/components/Slider/SliderBase/SliderRail.module.scss.js +1 -1
  288. package/dist/src/components/Slider/SliderBase/SliderThumb.module.scss.js +1 -1
  289. package/dist/src/components/Slider/SliderBase/SliderTrack.module.scss.js +1 -1
  290. package/dist/src/components/Slider/SliderInfix.module.scss.js +1 -1
  291. package/dist/src/components/SplitButton/SplitButton.module.scss.js +1 -1
  292. package/dist/src/components/Steps/Steps.module.scss.js +1 -1
  293. package/dist/src/components/Steps/StepsCommand.module.scss.js +1 -1
  294. package/dist/src/components/Steps/StepsDot.module.scss.js +1 -1
  295. package/dist/src/components/Steps/StepsGalleryHeader.module.scss.js +1 -1
  296. package/dist/src/components/Steps/StepsHeader.module.scss.js +1 -1
  297. package/dist/src/components/Steps/StepsNumbersHeader.module.scss.js +1 -1
  298. package/dist/src/components/Switch/Switch.module.scss.js +1 -1
  299. package/dist/src/components/Table/Table/Table.module.scss.js +1 -1
  300. package/dist/src/components/Table/TableBody/TableBody.module.scss.js +1 -1
  301. package/dist/src/components/Table/TableCell/TableCell.module.scss.js +1 -1
  302. package/dist/src/components/Table/TableCellSkeleton/TableCellSkeleton.module.scss.js +1 -1
  303. package/dist/src/components/Table/TableContainer/TableContainer.module.scss.js +1 -1
  304. package/dist/src/components/Table/TableHeader/TableHeader.module.scss.js +1 -1
  305. package/dist/src/components/Table/TableHeaderCell/TableHeaderCell.module.scss.js +1 -1
  306. package/dist/src/components/Table/TableRow/TableRow.module.scss.js +1 -1
  307. package/dist/src/components/Table/TableRowMenu/TableRowMenu.module.scss.js +1 -1
  308. package/dist/src/components/Table/TableVirtualizedBody/TableVirtualizedBody.module.scss.js +1 -1
  309. package/dist/src/components/Tabs/Tab/Tab.module.scss.js +1 -1
  310. package/dist/src/components/Tabs/TabList/TabList.js +1 -1
  311. package/dist/src/components/Tabs/TabList/TabList.js.map +1 -1
  312. package/dist/src/components/Tabs/TabList/TabList.module.scss.js +1 -1
  313. package/dist/src/components/Tabs/TabPanel/TabPanel.module.scss.js +1 -1
  314. package/dist/src/components/Tabs/TabPanels/TabPanels.module.scss.js +1 -1
  315. package/dist/src/components/TextArea/TextArea.module.scss.js +1 -1
  316. package/dist/src/components/TextField/TextField.module.scss.js +1 -1
  317. package/dist/src/components/TextWithHighlight/TextWithHighlight.module.scss.js +1 -1
  318. package/dist/src/components/Tipseen/Tipseen.module.scss.js +1 -1
  319. package/dist/src/components/Tipseen/TipseenBasicContent.module.scss.js +1 -1
  320. package/dist/src/components/Tipseen/TipseenContent.module.scss.js +1 -1
  321. package/dist/src/components/Tipseen/TipseenMedia/TipseenMedia.module.scss.js +1 -1
  322. package/dist/src/components/Tipseen/TipseenTitle.module.scss.js +1 -1
  323. package/dist/src/components/Tipseen/TipseenWizard.module.scss.js +1 -1
  324. package/dist/src/components/Toast/Toast.module.scss.js +1 -1
  325. package/dist/src/components/Toast/ToastLink/ToastLink.module.scss.js +1 -1
  326. package/dist/src/components/Toggle/MockToggle.module.scss.js +1 -1
  327. package/dist/src/components/Toggle/Toggle.module.scss.js +1 -1
  328. package/dist/src/components/Toggle/ToggleText.module.scss.js +1 -1
  329. package/dist/src/components/TransitionView/TransitionView.module.scss.js +1 -1
  330. package/dist/src/components/VirtualizedGrid/VirtualizedGrid.module.scss.js +1 -1
  331. package/dist/src/components/VirtualizedList/VirtualizedList.module.scss.js +1 -1
  332. package/dist/src/components/next/List/List.module.scss.js +1 -1
  333. package/dist/src/components/next/List/ListTitle/ListTitle.module.scss.js +1 -1
  334. package/dist/src/index.js +1 -1
  335. package/dist/src/utils/colors-utils.js.map +1 -1
  336. package/dist/style/dist/index.min.css.js +1 -1
  337. package/package.json +29 -28
  338. package/dist/components/ColorPicker/ColorPicker.d.ts +0 -80
  339. package/dist/components/ColorPicker/ColorPicker.types.d.ts +0 -6
  340. package/dist/components/ColorPicker/ColorPickerConstants.d.ts +0 -5
  341. package/dist/components/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.d.ts +0 -19
  342. package/dist/components/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.d.ts +0 -63
  343. package/dist/components/ColorPicker/components/ColorPickerContent/ColorPickerContent.d.ts +0 -84
  344. package/dist/components/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.d.ts +0 -57
  345. package/dist/components/ColorPicker/index.d.ts +0 -3
  346. package/dist/components/ColorPicker/services/ColorPickerStyleService.d.ts +0 -3
  347. package/dist/hooks/useFullKeyboardListeners.d.ts +0 -20
  348. package/dist/hooks/useGridKeyboardNavigation/gridKeyboardNavigationHelper.d.ts +0 -20
  349. package/dist/hooks/useGridKeyboardNavigation/useGridKeyboardNavigation.d.ts +0 -42
  350. package/dist/mocked_classnames/components/ColorPicker/ColorPicker.d.ts +0 -80
  351. package/dist/mocked_classnames/components/ColorPicker/ColorPicker.types.d.ts +0 -6
  352. package/dist/mocked_classnames/components/ColorPicker/ColorPickerConstants.d.ts +0 -5
  353. package/dist/mocked_classnames/components/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.d.ts +0 -19
  354. package/dist/mocked_classnames/components/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.d.ts +0 -63
  355. package/dist/mocked_classnames/components/ColorPicker/components/ColorPickerContent/ColorPickerContent.d.ts +0 -84
  356. package/dist/mocked_classnames/components/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.d.ts +0 -57
  357. package/dist/mocked_classnames/components/ColorPicker/index.d.ts +0 -3
  358. package/dist/mocked_classnames/components/ColorPicker/services/ColorPickerStyleService.d.ts +0 -3
  359. package/dist/mocked_classnames/hooks/useFullKeyboardListeners.d.ts +0 -20
  360. package/dist/mocked_classnames/hooks/useGridKeyboardNavigation/gridKeyboardNavigationHelper.d.ts +0 -20
  361. package/dist/mocked_classnames/hooks/useGridKeyboardNavigation/useGridKeyboardNavigation.d.ts +0 -42
  362. package/dist/mocked_classnames/src/components/ColorPicker/ColorPicker.js +0 -2
  363. package/dist/mocked_classnames/src/components/ColorPicker/ColorPicker.js.map +0 -1
  364. package/dist/mocked_classnames/src/components/ColorPicker/ColorPicker.module.scss.js +0 -2
  365. package/dist/mocked_classnames/src/components/ColorPicker/ColorPickerConstants.js +0 -2
  366. package/dist/mocked_classnames/src/components/ColorPicker/ColorPickerConstants.js.map +0 -1
  367. package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.js +0 -2
  368. package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.js.map +0 -1
  369. package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.module.scss.js +0 -2
  370. package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.js +0 -2
  371. package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.js.map +0 -1
  372. package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.module.scss.js +0 -2
  373. package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerContent/ColorPickerContent.js +0 -2
  374. package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerContent/ColorPickerContent.js.map +0 -1
  375. package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.js +0 -2
  376. package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.js.map +0 -1
  377. package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.module.scss.js +0 -2
  378. package/dist/mocked_classnames/src/components/ColorPicker/services/ColorPickerStyleService.js +0 -2
  379. package/dist/mocked_classnames/src/components/ColorPicker/services/ColorPickerStyleService.js.map +0 -1
  380. package/dist/mocked_classnames/src/hooks/useFullKeyboardListeners.js +0 -2
  381. package/dist/mocked_classnames/src/hooks/useFullKeyboardListeners.js.map +0 -1
  382. package/dist/mocked_classnames/src/hooks/useGridKeyboardNavigation/gridKeyboardNavigationHelper.js +0 -2
  383. package/dist/mocked_classnames/src/hooks/useGridKeyboardNavigation/gridKeyboardNavigationHelper.js.map +0 -1
  384. package/dist/mocked_classnames/src/hooks/useGridKeyboardNavigation/useGridKeyboardNavigation.js +0 -2
  385. package/dist/mocked_classnames/src/hooks/useGridKeyboardNavigation/useGridKeyboardNavigation.js.map +0 -1
  386. package/dist/src/components/ColorPicker/ColorPicker.js +0 -2
  387. package/dist/src/components/ColorPicker/ColorPicker.js.map +0 -1
  388. package/dist/src/components/ColorPicker/ColorPicker.module.scss.js +0 -2
  389. package/dist/src/components/ColorPicker/ColorPicker.module.scss.js.map +0 -1
  390. package/dist/src/components/ColorPicker/ColorPickerConstants.js +0 -2
  391. package/dist/src/components/ColorPicker/ColorPickerConstants.js.map +0 -1
  392. package/dist/src/components/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.js +0 -2
  393. package/dist/src/components/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.js.map +0 -1
  394. package/dist/src/components/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.module.scss.js +0 -2
  395. package/dist/src/components/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.module.scss.js.map +0 -1
  396. package/dist/src/components/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.js +0 -2
  397. package/dist/src/components/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.js.map +0 -1
  398. package/dist/src/components/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.module.scss.js +0 -2
  399. package/dist/src/components/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.module.scss.js.map +0 -1
  400. package/dist/src/components/ColorPicker/components/ColorPickerContent/ColorPickerContent.js +0 -2
  401. package/dist/src/components/ColorPicker/components/ColorPickerContent/ColorPickerContent.js.map +0 -1
  402. package/dist/src/components/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.js +0 -2
  403. package/dist/src/components/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.js.map +0 -1
  404. package/dist/src/components/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.module.scss.js +0 -2
  405. package/dist/src/components/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.module.scss.js.map +0 -1
  406. package/dist/src/components/ColorPicker/services/ColorPickerStyleService.js +0 -2
  407. package/dist/src/components/ColorPicker/services/ColorPickerStyleService.js.map +0 -1
  408. package/dist/src/hooks/useFullKeyboardListeners.js +0 -2
  409. package/dist/src/hooks/useFullKeyboardListeners.js.map +0 -1
  410. package/dist/src/hooks/useGridKeyboardNavigation/gridKeyboardNavigationHelper.js +0 -2
  411. package/dist/src/hooks/useGridKeyboardNavigation/gridKeyboardNavigationHelper.js.map +0 -1
  412. package/dist/src/hooks/useGridKeyboardNavigation/useGridKeyboardNavigation.js +0 -2
  413. package/dist/src/hooks/useGridKeyboardNavigation/useGridKeyboardNavigation.js.map +0 -1
  414. /package/dist/{mocked_classnames/src/components → components/color-picker/dist}/ColorPicker/ColorPicker.module.scss.js.map +0 -0
  415. /package/dist/{mocked_classnames/src/components → components/color-picker/dist}/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.module.scss.js.map +0 -0
  416. /package/dist/{mocked_classnames/src/components → components/color-picker/dist}/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.module.scss.js.map +0 -0
  417. /package/dist/{mocked_classnames/src/components → components/color-picker/dist}/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.module.scss.js.map +0 -0
@@ -1,20 +0,0 @@
1
- import { type MutableRefObject } from "react";
2
- import { type KeyboardEventCallback } from "../types/events";
3
- import { NavDirections, ARROW_DOWN_KEYS, ARROW_UP_KEYS, ARROW_RIGHT_KEYS, ARROW_LEFT_KEYS } from "@vibe/shared";
4
- export { NavDirections, ARROW_DOWN_KEYS, ARROW_UP_KEYS, ARROW_RIGHT_KEYS, ARROW_LEFT_KEYS };
5
- export declare const SELECTION_KEYS: string[];
6
- export declare const ENTER_KEYS: string[];
7
- export declare const ESCAPE_KEYS: string[];
8
- export declare const END_KEYS: string[];
9
- export declare const HOME_KEYS: string[];
10
- export default function useFullKeyboardListeners({ ref, // the reference for the component that listens to keyboard
11
- onSelectionKey, onArrowNavigation, onEscape, onHome, onEnd, useDocumentEventListeners, focusOnMount }: {
12
- ref: MutableRefObject<HTMLElement>;
13
- onSelectionKey: KeyboardEventCallback;
14
- onArrowNavigation: (type: NavDirections) => void;
15
- onEscape: KeyboardEventCallback;
16
- onHome?: KeyboardEventCallback;
17
- onEnd?: KeyboardEventCallback;
18
- useDocumentEventListeners?: boolean;
19
- focusOnMount: boolean;
20
- }): 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,80 +0,0 @@
1
- import React from "react";
2
- import { type ColorShapes, type ColorPickerSizes, type ColorPickerValue, type ColorPickerArrayValueOnly } from "./ColorPicker.types";
3
- import { type VibeComponentProps } from "../../types";
4
- import { type SubIcon } from "@vibe/icon";
5
- import { type ColorStyle } from "../../types/Colors";
6
- export interface ColorPickerProps extends VibeComponentProps {
7
- /**
8
- * The selected color(s).
9
- */
10
- value?: ColorPickerValue;
11
- /**
12
- * Callback fired when the selected color(s) change.
13
- */
14
- onSave?: (value: ColorPickerArrayValueOnly) => void;
15
- /**
16
- * Icon displayed as an indicator inside the color.
17
- */
18
- ColorIndicatorIcon?: SubIcon;
19
- /**
20
- * Icon displayed when a color is selected.
21
- */
22
- SelectedIndicatorIcon?: SubIcon;
23
- /**
24
- * Icon used for clearing the color selection.
25
- */
26
- NoColorIcon?: SubIcon;
27
- /**
28
- * The style applied to the colors.
29
- */
30
- colorStyle?: ColorStyle;
31
- /**
32
- * Text displayed for the "no color" option.
33
- */
34
- noColorText?: string;
35
- /**
36
- * If true, renders the color indicator without a background.
37
- */
38
- shouldRenderIndicatorWithoutBackground?: boolean;
39
- /**
40
- * If true, treats the color list as a blacklist rather than a whitelist.
41
- */
42
- isBlackListMode?: boolean;
43
- /**
44
- * The list of colors available for selection.
45
- */
46
- colorsList?: ColorPickerArrayValueOnly;
47
- /**
48
- * If true, allows selecting multiple colors.
49
- */
50
- isMultiselect?: boolean;
51
- /**
52
- * The size of the color items.
53
- */
54
- colorSize?: ColorPickerSizes;
55
- /**
56
- * The number of colors displayed per row.
57
- */
58
- numberOfColorsInLine?: number;
59
- /**
60
- * If true, the first color is focused when the component mounts.
61
- */
62
- focusOnMount?: boolean;
63
- /**
64
- * The shape of the color items.
65
- */
66
- colorShape?: ColorShapes;
67
- /**
68
- * 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.
69
- * Usually, only "monday colors" will be rendered (unless blacklist mode is used). This flag will override this behavior.
70
- */
71
- forceUseRawColorList?: boolean;
72
- /**
73
- * Used to enable color name tooltip on each color in the component.
74
- * When "tooltipContentByColor" is supplied, it will override the color name tooltip.
75
- *
76
- */
77
- showColorNameTooltip?: boolean;
78
- }
79
- declare const ColorPicker: React.ForwardRefExoticComponent<ColorPickerProps & React.RefAttributes<HTMLElement>>;
80
- export default ColorPicker;
@@ -1,6 +0,0 @@
1
- import { type CONTENT_COLORS_VALUES } from "../../utils/colors-vars-map";
2
- export type ColorShapes = "square" | "circle";
3
- export type ColorPickerSizes = "small" | "medium" | "large";
4
- export type ColorPickerValueOnly = CONTENT_COLORS_VALUES | string;
5
- export type ColorPickerArrayValueOnly = CONTENT_COLORS_VALUES[] | string[];
6
- export type ColorPickerValue = ColorPickerValueOnly | ColorPickerArrayValueOnly;
@@ -1,5 +0,0 @@
1
- import { type BaseSizes } from "../../constants/sizes";
2
- export declare const DEFAULT_NUMBER_OF_COLORS_IN_LINE = 5;
3
- export declare const COLOR_SIZES: Record<BaseSizes, number>;
4
- export declare const COLOR_PADDING = 8;
5
- export declare const DIALOG_WIDTH_PADDING = 24;
@@ -1,19 +0,0 @@
1
- import React from "react";
2
- import { type VibeComponentProps } from "../../../../types";
3
- import { type SubIcon } from "@vibe/icon";
4
- export interface ColorPickerClearButtonProps extends VibeComponentProps {
5
- /**
6
- * Callback fired when the clear button is clicked.
7
- */
8
- onClick: () => void;
9
- /**
10
- * The text displayed inside the button.
11
- */
12
- text?: string;
13
- /**
14
- * The icon displayed inside the button.
15
- */
16
- Icon: SubIcon;
17
- }
18
- declare const ColorPickerClearButton: React.ForwardRefExoticComponent<ColorPickerClearButtonProps & React.RefAttributes<HTMLButtonElement>>;
19
- export default ColorPickerClearButton;
@@ -1,63 +0,0 @@
1
- import React from "react";
2
- import { type CONTENT_COLORS_VALUES } from "../../../../utils/colors-vars-map";
3
- import { type ColorPickerArrayValueOnly, type ColorPickerValueOnly } from "../../ColorPicker.types";
4
- import { type ColorShapes, type ColorPickerSizes } from "../../ColorPicker.types";
5
- import { type VibeComponentProps } from "../../../../types";
6
- import { type SubIcon } from "@vibe/icon";
7
- import { type ColorStyle } from "../../../../types";
8
- export interface ColorPickerColorsGridProps extends VibeComponentProps {
9
- /**
10
- * Callback fired when a color is clicked.
11
- */
12
- onColorClicked?: (color: ColorPickerValueOnly) => void;
13
- /**
14
- * The list of colors to be displayed.
15
- */
16
- colorsToRender?: ColorPickerArrayValueOnly;
17
- /**
18
- * Icon displayed as an indicator inside the color.
19
- */
20
- ColorIndicatorIcon?: SubIcon;
21
- /**
22
- * Icon displayed when a color is selected.
23
- */
24
- SelectedIndicatorIcon?: SubIcon;
25
- /**
26
- * The style applied to the colors.
27
- */
28
- colorStyle?: ColorStyle;
29
- /**
30
- * The currently selected color or colors.
31
- */
32
- value?: string | string[];
33
- /**
34
- * If true, renders the color indicator without a background.
35
- */
36
- shouldRenderIndicatorWithoutBackground?: boolean;
37
- /**
38
- * The size of the color items.
39
- */
40
- colorSize?: ColorPickerSizes;
41
- /**
42
- * The number of colors per row.
43
- */
44
- numberOfColorsInLine?: number;
45
- /**
46
- * Custom tooltip content for specific colors.
47
- */
48
- tooltipContentByColor?: Partial<Record<CONTENT_COLORS_VALUES, string> & Record<string, string>>;
49
- /**
50
- * If true, the first color is focused when the component mounts.
51
- */
52
- focusOnMount?: boolean;
53
- /**
54
- * The shape of the color items.
55
- */
56
- colorShape?: ColorShapes;
57
- /**
58
- * If true, displays a tooltip with the color name.
59
- */
60
- showColorNameTooltip?: boolean;
61
- }
62
- declare const ColorPickerColorsGrid: React.ForwardRefExoticComponent<ColorPickerColorsGridProps & React.RefAttributes<HTMLUListElement>>;
63
- export default ColorPickerColorsGrid;
@@ -1,84 +0,0 @@
1
- import React from "react";
2
- import { type CONTENT_COLORS_VALUES } from "../../../../utils/colors-vars-map";
3
- import { type ColorShapes, type ColorPickerSizes, type ColorPickerValue, type ColorPickerArrayValueOnly } from "../../ColorPicker.types";
4
- import { type VibeComponentProps } from "../../../../types";
5
- import { type SubIcon } from "@vibe/icon";
6
- import { type ColorStyle } from "../../../../types";
7
- export interface ColorPickerContentProps extends VibeComponentProps {
8
- /**
9
- * The selected color(s).
10
- */
11
- value: ColorPickerValue;
12
- /**
13
- * Callback fired when the selected color(s) change.
14
- */
15
- onValueChange: (value: ColorPickerArrayValueOnly) => void;
16
- /**
17
- * The list of colors available for selection.
18
- */
19
- colorsList: ColorPickerArrayValueOnly;
20
- /**
21
- * Icon displayed as an indicator inside the color.
22
- */
23
- ColorIndicatorIcon?: SubIcon;
24
- /**
25
- * Icon displayed when a color is selected.
26
- */
27
- SelectedIndicatorIcon?: SubIcon;
28
- /**
29
- * Icon used for clearing the color selection.
30
- */
31
- NoColorIcon?: SubIcon;
32
- /**
33
- * The style applied to the colors.
34
- */
35
- colorStyle?: ColorStyle;
36
- /**
37
- * The size of the color items.
38
- */
39
- colorSize?: ColorPickerSizes;
40
- /**
41
- * The shape of the color items.
42
- */
43
- colorShape?: ColorShapes;
44
- /**
45
- * Custom tooltip content for specific colors.
46
- */
47
- tooltipContentByColor?: Partial<Record<CONTENT_COLORS_VALUES, string>>;
48
- /**
49
- * Text displayed for the "no color" option.
50
- */
51
- noColorText?: string;
52
- /**
53
- * If true, renders the color indicator without a background.
54
- */
55
- shouldRenderIndicatorWithoutBackground?: boolean;
56
- /**
57
- * If true, treats the color list as a blacklist rather than a whitelist.
58
- */
59
- isBlackListMode?: boolean;
60
- /**
61
- * The number of colors displayed per row.
62
- */
63
- numberOfColorsInLine?: number;
64
- /**
65
- * If true, the first color is focused when the component mounts.
66
- */
67
- focusOnMount?: boolean;
68
- /**
69
- * If true, allows selecting multiple colors.
70
- */
71
- isMultiselect?: boolean;
72
- /**
73
- * 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.
74
- * Usually, only "monday colors" will be rendered (unless blacklist mode is used). This flag will override this behavior.
75
- */
76
- forceUseRawColorList?: boolean;
77
- /**
78
- * Used to enable color name tooltip on each color in the component.
79
- * When "tooltipContentByColor" is supplied, it will override the color name tooltip.
80
- */
81
- showColorNameTooltip?: boolean;
82
- }
83
- declare const ColorPickerContent: React.ForwardRefExoticComponent<ColorPickerContentProps & React.RefAttributes<HTMLDivElement>>;
84
- export default ColorPickerContent;
@@ -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,20 +0,0 @@
1
- import { type MutableRefObject } from "react";
2
- import { type KeyboardEventCallback } from "../types/events";
3
- import { NavDirections, ARROW_DOWN_KEYS, ARROW_UP_KEYS, ARROW_RIGHT_KEYS, ARROW_LEFT_KEYS } from "@vibe/shared";
4
- export { NavDirections, ARROW_DOWN_KEYS, ARROW_UP_KEYS, ARROW_RIGHT_KEYS, ARROW_LEFT_KEYS };
5
- export declare const SELECTION_KEYS: string[];
6
- export declare const ENTER_KEYS: string[];
7
- export declare const ESCAPE_KEYS: string[];
8
- export declare const END_KEYS: string[];
9
- export declare const HOME_KEYS: string[];
10
- export default function useFullKeyboardListeners({ ref, // the reference for the component that listens to keyboard
11
- onSelectionKey, onArrowNavigation, onEscape, onHome, onEnd, useDocumentEventListeners, focusOnMount }: {
12
- ref: MutableRefObject<HTMLElement>;
13
- onSelectionKey: KeyboardEventCallback;
14
- onArrowNavigation: (type: NavDirections) => void;
15
- onEscape: KeyboardEventCallback;
16
- onHome?: KeyboardEventCallback;
17
- onEnd?: KeyboardEventCallback;
18
- useDocumentEventListeners?: boolean;
19
- focusOnMount: boolean;
20
- }): 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_11";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_11";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_11";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 l,useRef as i,useCallback as n,useMemo as s}from"react";import{BaseSizes as a}from"../../../../constants/sizes.js";import{contentColors as c}from"../../../../utils/colors-vars-map.js";import{NoColor as m}from"@vibe/icons";import{DEFAULT_NUMBER_OF_COLORS_IN_LINE as d}from"../../ColorPickerConstants.js";import{calculateColorPickerWidth as u}from"../../services/ColorPickerStyleService.js";import{useGridKeyboardNavigationContext as f,GridKeyboardNavigationContext as C}from"@vibe/a11y/mockedClassNames";import p from"./ColorPickerClearButton.js";import v from"./ColorPickerColorsGrid.js";import{useMergeRef as I}from"@vibe/shared";var h=l((function(l,h){var k=l.className,S=l.onValueChange,b=l.value,y=l.noColorText,j=l.colorStyle,B=void 0===j?"regular":j,E=l.ColorIndicatorIcon,M=l.SelectedIndicatorIcon,N=l.shouldRenderIndicatorWithoutBackground,P=l.NoColorIcon,g=void 0===P?m:P,x=l.isBlackListMode,L=void 0===x||x,O=l.colorsList,w=l.isMultiselect,R=l.colorSize,T=void 0===R?a.MEDIUM:R,z=l.numberOfColorsInLine,U=void 0===z?d:z,W=l.tooltipContentByColor,_=void 0===W?{}:W,q=l.focusOnMount,A=l.colorShape,D=void 0===A?"square":A,G=l.forceUseRawColorList,H=l.showColorNameTooltip,V=l.id,F=l["data-testid"],J=i(null),K=I(h,J),Q=i(null),X=i(null),Y=n((function(){S(null)}),[S]),Z=s((function(){return G?O:L?e(c,O):r(c,O)}),[G,L,O]),$=n((function(e){if(w){var r=o(b);if(r.includes(e)){var t=r.indexOf(e);t>-1&&r.splice(t,1)}else r.push(e);S(r)}else S([e])}),[w,S,b]),oo=s((function(){return[{topElement:Q,bottomElement:X}]}),[]),eo=f(oo,J),ro=u(T,U);return t.createElement("div",{className:k,style:{width:ro},ref:K,tabIndex:-1},t.createElement(C.Provider,{value:eo},t.createElement(v,{ref:Q,onColorClicked:$,colorsToRender:Z,numberOfColorsInLine:U,focusOnMount:q,value:b,colorStyle:B,ColorIndicatorIcon:E,shouldRenderIndicatorWithoutBackground:N,SelectedIndicatorIcon:M,colorSize:T,tooltipContentByColor:_,colorShape:D,showColorNameTooltip:H,id:V,"data-testid":F}),y&&t.createElement(p,{Icon:g,onClick:Y,text:y,ref:X})))}));export{h as default};
2
- //# sourceMappingURL=ColorPickerContent.js.map