@oracle/oraclejet-preact 20.1.1 → 20.1.2

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 (655) hide show
  1. package/amd/AccordionItemMultiple-7cfecf03.js +1 -1
  2. package/amd/AccordionItemSingle-6c70951e.js +1 -1
  3. package/amd/BarChart-379e0e10.js +1 -1
  4. package/amd/{BaseButton-9bf908ec.js → BaseButton-5a0ad529.js} +2 -2
  5. package/amd/{BaseButton-9bf908ec.js.map → BaseButton-5a0ad529.js.map} +1 -1
  6. package/amd/BaseCardView-825b1327.js +1 -1
  7. package/amd/{BaseCardViewSelectionTest-ac780d4f.js → BaseCardViewSelectionTest-66f166ce.js} +2 -2
  8. package/amd/{BaseCardViewSelectionTest-ac780d4f.js.map → BaseCardViewSelectionTest-66f166ce.js.map} +1 -1
  9. package/amd/BaseDiagram-7757c344.js +1 -1
  10. package/amd/BaseRichSelection-57e02c2d.js +1 -1
  11. package/amd/BaseSelector-3c7b8b87.js +1 -1
  12. package/amd/BaseSwatchView-2c401b4d.js +1 -1
  13. package/amd/BaseTabBarItem-6e22fcbc.js +1 -1
  14. package/amd/Button-e5d7c0e3.js +2 -0
  15. package/amd/{Button-d541cd67.js.map → Button-e5d7c0e3.js.map} +1 -1
  16. package/amd/ButtonSet-9f26cc51.js +1 -1
  17. package/amd/ButtonSetButton-ded680bb.js +1 -1
  18. package/amd/ButtonSetIconButton-b64b0830.js +1 -1
  19. package/amd/{Center-27a71002.js → Center-17925696.js} +2 -2
  20. package/amd/{Center-27a71002.js.map → Center-17925696.js.map} +1 -1
  21. package/amd/Chart-57d1c518.js +1 -1
  22. package/amd/Checkbox-3e80f017.js +1 -1
  23. package/amd/CheckboxControl-0746682f.js +1 -1
  24. package/amd/CheckboxRadioField-03179844.js +1 -1
  25. package/amd/CheckboxRadioLabelValueLayout-b728e6ec.js +1 -1
  26. package/amd/CheckboxSetContext-2e486ea8.js +2 -0
  27. package/{es/CheckboxSetContext-1be56556.js.map → amd/CheckboxSetContext-2e486ea8.js.map} +1 -1
  28. package/amd/Chip-8280de2e.js +1 -1
  29. package/amd/ClearIcon-a066df59.js +1 -1
  30. package/amd/CollapseIcon-a62fd41c.js +1 -1
  31. package/amd/Collapsible-0bf0c371.js +1 -1
  32. package/amd/CollapsibleNavigationList-91858994.js +1 -1
  33. package/amd/ColorPalette-43ffde6d.js +2 -0
  34. package/amd/{ColorPalette-f05a9dad.js.map → ColorPalette-43ffde6d.js.map} +1 -1
  35. package/amd/ColorPicker-3b4180e9.js +2 -0
  36. package/amd/{ColorPicker-236d84f0.js.map → ColorPicker-3b4180e9.js.map} +1 -1
  37. package/amd/ColorSwatch-52a06d25.js +1 -1
  38. package/amd/ComboChart-9cc157af.js +1 -1
  39. package/amd/CompactHelpSource-09ac9fe1.js +1 -1
  40. package/amd/CompactLabelAssistance-65c63769.js +2 -0
  41. package/amd/{CompactLabelAssistance-7bb76228.js.map → CompactLabelAssistance-65c63769.js.map} +1 -1
  42. package/amd/CompactUserAssistance-2fc90192.js +1 -1
  43. package/amd/ComponentMessageContainer-d5d70f71.js +1 -1
  44. package/amd/ConveyorBelt-e54ce1f7.js +1 -1
  45. package/amd/{DatePicker-89255880.js → DatePicker-ed971798.js} +2 -2
  46. package/amd/{DatePicker-89255880.js.map → DatePicker-ed971798.js.map} +1 -1
  47. package/amd/DatePickerHeader-b75e4c72.js +1 -1
  48. package/amd/{Dialog-ed9c4105.js → Dialog-9a4dbe57.js} +2 -2
  49. package/amd/{Dialog-ed9c4105.js.map → Dialog-9a4dbe57.js.map} +1 -1
  50. package/amd/DirectionalCollapseArrowIcon-ddc18f4b.js +1 -1
  51. package/amd/DirectionalExpandArrowIcon-9c710193.js +1 -1
  52. package/amd/DragHandle-29eba15d.js +2 -0
  53. package/amd/{DragHandle-652ffa0f.js.map → DragHandle-29eba15d.js.map} +1 -1
  54. package/amd/{DrawerPopup-ff31d785.js → DrawerPopup-c9e6374e.js} +2 -2
  55. package/amd/{DrawerPopup-ff31d785.js.map → DrawerPopup-c9e6374e.js.map} +1 -1
  56. package/amd/{Dropdown-d1438b58.js → Dropdown-9eed614a.js} +2 -2
  57. package/amd/{Dropdown-d1438b58.js.map → Dropdown-9eed614a.js.map} +1 -1
  58. package/amd/EmbeddedIconButton-d1472ac1.js +2 -0
  59. package/amd/{EmbeddedIconButton-c3cb14c0.js.map → EmbeddedIconButton-d1472ac1.js.map} +1 -1
  60. package/amd/{EnvironmentProvider-75ba928e.js → EnvironmentProvider-403bf554.js} +2 -2
  61. package/amd/{EnvironmentProvider-75ba928e.js.map → EnvironmentProvider-403bf554.js.map} +1 -1
  62. package/amd/ExpandableList-d7b3d65c.js +1 -1
  63. package/amd/Expander-683df228.js +1 -1
  64. package/amd/FilePicker-9e24c421.js +1 -1
  65. package/amd/FlatTreeView-5de96ffd.js +1 -1
  66. package/amd/Flex-4b81b412.js +2 -0
  67. package/amd/{Flex-71f83c12.js.map → Flex-4b81b412.js.map} +1 -1
  68. package/amd/{Floating-08c98ebd.js → Floating-9d6ab071.js} +2 -2
  69. package/amd/{Floating-08c98ebd.js.map → Floating-9d6ab071.js.map} +1 -1
  70. package/amd/FormLayout-023ab8de.js +1 -1
  71. package/amd/Gantt-cdd9d3cb.js +1 -1
  72. package/amd/{Grid-5324e17b.js → Grid-caac1c86.js} +2 -2
  73. package/amd/{Grid-5324e17b.js.map → Grid-caac1c86.js.map} +1 -1
  74. package/amd/GroupLoadingIndicator-4daed099.js +1 -1
  75. package/amd/HighlightText-ee76c447.js +2 -0
  76. package/amd/{HighlightText-365ba020.js.map → HighlightText-ee76c447.js.map} +1 -1
  77. package/amd/Icon-b9a01da9.js +1 -1
  78. package/amd/IconButton-d78fe636.js +1 -1
  79. package/amd/IconMenuButton-74b41e62.js +1 -1
  80. package/amd/IconProgressButton-28f72faa.js +1 -1
  81. package/amd/IconSwitchButton-22893e1f.js +1 -1
  82. package/amd/IconToggleButton-9f1c8265.js +1 -1
  83. package/amd/{IconUserAssistance-e80bf779.js → IconUserAssistance-682b85a2.js} +2 -2
  84. package/amd/{IconUserAssistance-e80bf779.js.map → IconUserAssistance-682b85a2.js.map} +1 -1
  85. package/amd/Indexer-27340b0e.js +1 -1
  86. package/amd/InlineHelpSource-8d8b6a8b.js +1 -1
  87. package/amd/InlineSelectSingle-4e6a631c.js +1 -1
  88. package/amd/InlineUserAssistance-91f9ace1.js +1 -1
  89. package/amd/InputColor-3eca248b.js +2 -0
  90. package/amd/{InputColor-a1fcd3b3.js.map → InputColor-3eca248b.js.map} +1 -1
  91. package/amd/InputDateMask-acdfc589.js +1 -1
  92. package/amd/InputDatePicker-22518a24.js +2 -0
  93. package/amd/{InputDatePicker-b16a1592.js.map → InputDatePicker-22518a24.js.map} +1 -1
  94. package/amd/InputPassword-9a1d268d.js +1 -1
  95. package/amd/InputSensitiveText-e6519508.js +1 -1
  96. package/amd/InputText-8712623e.js +1 -1
  97. package/amd/Label-286bacb8.js +1 -1
  98. package/amd/LabelValueLayout-36bc12e2.js +1 -1
  99. package/amd/{Layer-64bf71ad.js → Layer-1971eddb.js} +2 -2
  100. package/amd/{Layer-64bf71ad.js.map → Layer-1971eddb.js.map} +1 -1
  101. package/amd/{LayerHost-1a734852.js → LayerHost-0b288129.js} +2 -2
  102. package/amd/{LayerHost-1a734852.js.map → LayerHost-0b288129.js.map} +1 -1
  103. package/amd/LayerManager-426c669d.js +2 -0
  104. package/amd/{LayerManager-5ba8e6ed.js.map → LayerManager-426c669d.js.map} +1 -1
  105. package/amd/Legend-e09a1733.js +1 -1
  106. package/amd/LineAreaChart-08247f99.js +1 -1
  107. package/amd/Link-20f7e72d.js +1 -1
  108. package/amd/List-8d95a024.js +1 -1
  109. package/amd/{ListItemLayout-23390b90.js → ListItemLayout-2dbba38a.js} +2 -2
  110. package/amd/{ListItemLayout-23390b90.js.map → ListItemLayout-2dbba38a.js.map} +1 -1
  111. package/amd/ListView-fe5d340a.js +1 -1
  112. package/amd/LiveRegion-dbefb95b.js +2 -0
  113. package/amd/{LiveRegion-1553833d.js.map → LiveRegion-dbefb95b.js.map} +1 -1
  114. package/amd/{MaxLengthLiveRegion-5172c87a.js → MaxLengthLiveRegion-8f9f7247.js} +2 -2
  115. package/amd/{MaxLengthLiveRegion-5172c87a.js.map → MaxLengthLiveRegion-8f9f7247.js.map} +1 -1
  116. package/amd/Menu-4b445ba5.js +1 -1
  117. package/amd/MenuButton-8428a792.js +1 -1
  118. package/amd/MenuItem-f3de5e35.js +1 -1
  119. package/amd/Message-bbea21c4.js +1 -1
  120. package/amd/MessageBanner-5c18f23c.js +1 -1
  121. package/amd/MessageLayer-cb7cbb34.js +2 -0
  122. package/amd/{MessageLayer-24870def.js.map → MessageLayer-cb7cbb34.js.map} +1 -1
  123. package/amd/MessageToast-9e27adaa.js +1 -1
  124. package/amd/MessagesManager-4d5f6217.js +1 -1
  125. package/amd/MeterBar-e8e95881.js +1 -1
  126. package/amd/MeterCircle-46d479de.js +1 -1
  127. package/amd/Modal-95bf034f.js +1 -1
  128. package/amd/{MonthView-15e7e2cc.js → MonthView-93a866a6.js} +2 -2
  129. package/amd/{MonthView-15e7e2cc.js.map → MonthView-93a866a6.js.map} +1 -1
  130. package/amd/NavigationListItem-dea4c9e9.js +1 -1
  131. package/amd/NavigationListLinkItem-e376a039.js +1 -1
  132. package/amd/NumberInputText-4a58ed41.js +1 -1
  133. package/amd/OverflowTabBarItem-f23d35fd.js +1 -1
  134. package/amd/PRIVATE_BaseCardView.js +1 -1
  135. package/amd/PRIVATE_BaseDiagram.js +1 -1
  136. package/amd/PRIVATE_BaseSelector.js +1 -1
  137. package/amd/PRIVATE_BaseSwatchView.js +1 -1
  138. package/amd/PRIVATE_Chart.js +1 -1
  139. package/amd/PRIVATE_CheckboxControl.js +1 -1
  140. package/amd/PRIVATE_CheckboxRadioField.js +1 -1
  141. package/amd/PRIVATE_ClearIcon.js +1 -1
  142. package/amd/PRIVATE_CollapsibleNavigationList.js +1 -1
  143. package/amd/PRIVATE_DatePickerHeader.js +1 -1
  144. package/amd/PRIVATE_DatePickerLayout.js +1 -1
  145. package/amd/PRIVATE_EmbeddedIconButton.js +1 -1
  146. package/amd/PRIVATE_Expander.js +1 -1
  147. package/amd/PRIVATE_FormControls.js +1 -1
  148. package/amd/PRIVATE_IconSwitchButton.js +1 -1
  149. package/amd/PRIVATE_Icons/CheckboxCrossed.js +1 -1
  150. package/amd/PRIVATE_Icons/CheckboxMixed.js +1 -1
  151. package/amd/PRIVATE_Icons/CheckboxOff.js +1 -1
  152. package/amd/PRIVATE_Icons/CheckboxOn.js +1 -1
  153. package/amd/PRIVATE_Icons/DragV.js +1 -1
  154. package/amd/PRIVATE_Icons/None.js +1 -1
  155. package/amd/PRIVATE_List.js +1 -1
  156. package/amd/PRIVATE_Message.js +1 -1
  157. package/amd/PRIVATE_MessageLayer.js +1 -1
  158. package/amd/PRIVATE_MonthView.js +1 -1
  159. package/amd/PRIVATE_MonthYearGridView.js +1 -1
  160. package/amd/PRIVATE_PlotArea.js +1 -1
  161. package/amd/PRIVATE_RevealToggleIcon.js +1 -1
  162. package/amd/PRIVATE_RichSelectionCommon.js +1 -1
  163. package/amd/PRIVATE_SelectCommon.js +1 -1
  164. package/amd/PRIVATE_StyledCard.js +1 -1
  165. package/amd/PRIVATE_StyledCheckbox.js +1 -1
  166. package/amd/PRIVATE_StyledSwitch.js +1 -1
  167. package/amd/PRIVATE_SwatchFlexView.js +1 -1
  168. package/amd/PRIVATE_Table.js +1 -1
  169. package/amd/PRIVATE_TableDisplay.js +1 -1
  170. package/amd/PRIVATE_TableList.js +1 -1
  171. package/amd/PRIVATE_ThemedIcons/CalendarIcon.js +1 -1
  172. package/amd/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +1 -1
  173. package/amd/PRIVATE_ThemedIcons/ChartPanIcon.js +1 -1
  174. package/amd/PRIVATE_ThemedIcons/ChartZoomIcon.js +1 -1
  175. package/amd/PRIVATE_ThemedIcons/CheckIcon.js +1 -1
  176. package/amd/PRIVATE_ThemedIcons/CheckboxCrossedIcon.js +1 -1
  177. package/amd/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +1 -1
  178. package/amd/PRIVATE_ThemedIcons/CheckboxOffIcon.js +1 -1
  179. package/amd/PRIVATE_ThemedIcons/CheckboxOnIcon.js +1 -1
  180. package/amd/PRIVATE_ThemedIcons/CloseIcon.js +1 -1
  181. package/amd/PRIVATE_ThemedIcons/CollapseIcon.js +1 -1
  182. package/amd/PRIVATE_ThemedIcons/CollapseUpIcon.js +1 -1
  183. package/amd/PRIVATE_ThemedIcons/DecrementIcon.js +1 -1
  184. package/amd/PRIVATE_ThemedIcons/DeleteIcon.js +1 -1
  185. package/amd/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +1 -1
  186. package/amd/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +1 -1
  187. package/amd/PRIVATE_ThemedIcons/DragHandleIcon.js +1 -1
  188. package/amd/PRIVATE_ThemedIcons/DropdownArrowIcon.js +1 -1
  189. package/amd/PRIVATE_ThemedIcons/ExpandIcon.js +1 -1
  190. package/amd/PRIVATE_ThemedIcons/HelpIcon.js +1 -1
  191. package/amd/PRIVATE_ThemedIcons/IncrementIcon.js +1 -1
  192. package/amd/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +1 -1
  193. package/amd/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +1 -1
  194. package/amd/PRIVATE_ThemedIcons/MessageErrorIcon.js +1 -1
  195. package/amd/PRIVATE_ThemedIcons/MessageInfoIcon.js +1 -1
  196. package/amd/PRIVATE_ThemedIcons/MessageWarningIcon.js +1 -1
  197. package/amd/PRIVATE_ThemedIcons/MinusIcon.js +1 -1
  198. package/amd/PRIVATE_ThemedIcons/NavDownIcon.js +1 -1
  199. package/amd/PRIVATE_ThemedIcons/None.js +1 -1
  200. package/amd/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +1 -1
  201. package/amd/PRIVATE_ThemedIcons/PlusIcon.js +1 -1
  202. package/amd/PRIVATE_ThemedIcons/RadioOffIcon.js +1 -1
  203. package/amd/PRIVATE_ThemedIcons/RadioOnIcon.js +1 -1
  204. package/amd/PRIVATE_ThemedIcons/SortAscendingIcon.js +1 -1
  205. package/amd/PRIVATE_ThemedIcons/SortDescendingIcon.js +1 -1
  206. package/amd/PRIVATE_ThemedIcons/ViewHideIcon.js +1 -1
  207. package/amd/PRIVATE_ThemedIcons/ViewIcon.js +1 -1
  208. package/amd/PRIVATE_TimeComponent.js +1 -1
  209. package/amd/PRIVATE_TruncatingLink.js +1 -1
  210. package/amd/PRIVATE_VisOverview.js +1 -1
  211. package/amd/PRIVATE_VisStatusMessage.js +1 -1
  212. package/amd/PRIVATE_VisTabularDatatip.js +1 -1
  213. package/amd/PictoChart-1262b65e.js +1 -1
  214. package/amd/PieChart-0e4eacd7.js +1 -1
  215. package/amd/{Popup-575d49f7.js → Popup-feb5bf60.js} +2 -2
  216. package/amd/{Popup-575d49f7.js.map → Popup-feb5bf60.js.map} +1 -1
  217. package/amd/{ProgressBar-4074bb67.js → ProgressBar-d7aa356a.js} +2 -2
  218. package/amd/{ProgressBar-4074bb67.js.map → ProgressBar-d7aa356a.js.map} +1 -1
  219. package/amd/ProgressButton-71c1dda9.js +1 -1
  220. package/amd/ProgressButtonLabelLayout-4f7aa87d.js +1 -1
  221. package/amd/{ProgressCircle-df7641ef.js → ProgressCircle-8a94e670.js} +2 -2
  222. package/amd/{ProgressCircle-df7641ef.js.map → ProgressCircle-8a94e670.js.map} +1 -1
  223. package/amd/RadioItem-c5f0676c.js +1 -1
  224. package/amd/RadioSet-c3ad77d7.js +1 -1
  225. package/amd/RatingGauge-d0e95f46.js +1 -1
  226. package/amd/ReadonlyTextFieldInput-41384d7e.js +1 -1
  227. package/amd/{ReferenceLineArea-27698a8f.js → ReferenceLineArea-450530dd.js} +2 -2
  228. package/amd/{ReferenceLineArea-27698a8f.js.map → ReferenceLineArea-450530dd.js.map} +1 -1
  229. package/amd/RemovableNavigationListItem-5e5a9068.js +1 -1
  230. package/amd/RemovableTabBarItem-ce314e8b.js +1 -1
  231. package/amd/ReorderableTabBar-3ff37ba7.js +1 -1
  232. package/amd/RevealToggleIcon-bd35b257.js +1 -1
  233. package/amd/ScatterChart-af0d8118.js +1 -1
  234. package/amd/SectionalLegend-aa7254ff.js +1 -1
  235. package/amd/{SectionedContent-32ec078e.js → SectionedContent-a89bafc6.js} +2 -2
  236. package/amd/{SectionedContent-32ec078e.js.map → SectionedContent-a89bafc6.js.map} +1 -1
  237. package/amd/SegmentStyles.styles.css +12 -9
  238. package/amd/SegmentStyles.styles2.css +9 -12
  239. package/amd/SelectMobileFieldInput-b1524b1e.js +1 -1
  240. package/amd/SelectMultiple-f70618cf.js +1 -1
  241. package/amd/SelectSingle-971886ab.js +1 -1
  242. package/amd/{SelectorAll-e9acae58.js → SelectorAll-6652fd3f.js} +2 -2
  243. package/amd/{SelectorAll-e9acae58.js.map → SelectorAll-6652fd3f.js.map} +1 -1
  244. package/amd/Sheet-1d02491d.js +1 -1
  245. package/amd/SortControl-ec2db600.js +1 -1
  246. package/amd/SplitMenuButton-bf59897c.js +1 -1
  247. package/amd/StyledCard-4baafee3.js +1 -1
  248. package/amd/{StyledLabelValueLayout-16ac9a5e.js → StyledLabelValueLayout-907bc2d3.js} +2 -2
  249. package/amd/{StyledLabelValueLayout-16ac9a5e.js.map → StyledLabelValueLayout-907bc2d3.js.map} +1 -1
  250. package/amd/StyledSwitch-0881e505.js +1 -1
  251. package/amd/StyledTextField-f533c9e9.js +1 -1
  252. package/amd/Submenu-99c05da1.js +1 -1
  253. package/amd/TabBar-8ab0fd0d.js +1 -1
  254. package/amd/TabBarContextMenu-06f7beb2.js +1 -1
  255. package/amd/TabBarLayout-4eb6c732.js +1 -1
  256. package/amd/TabBarMixed-41258b80.js +1 -1
  257. package/amd/{TabBarMixedSeparator-c77d8e96.js → TabBarMixedSeparator-019d266b.js} +2 -2
  258. package/amd/{TabBarMixedSeparator-c77d8e96.js.map → TabBarMixedSeparator-019d266b.js.map} +1 -1
  259. package/amd/Table-2d35f829.js +1 -1
  260. package/amd/TableColGroup-30abc1ce.js +1 -1
  261. package/amd/TableDisplay-e3a86f26.js +1 -1
  262. package/amd/TagCloud-4970d243.js +1 -1
  263. package/amd/TextArea-6b324b42.js +1 -1
  264. package/amd/TextAreaAutosize-5d9bf2b2.js +1 -1
  265. package/amd/TextField-1da09ebc.js +1 -1
  266. package/amd/TextFieldInput-f8635c62.js +1 -1
  267. package/amd/Theme-redwood/theme.css +147 -147
  268. package/amd/Theme-stable/theme.css +255 -255
  269. package/amd/TimeComponentCanvas2D-a17f51f1.js +1 -1
  270. package/amd/ToggleButton-c9e433d4.js +1 -1
  271. package/amd/Toolbar-663b9254.js +1 -1
  272. package/amd/TruncatingBadge-80a8c903.js +1 -1
  273. package/amd/TruncatingLink-aa577ffc.js +1 -1
  274. package/amd/TruncatingText-bdbdd4d4.js +1 -1
  275. package/amd/UNSAFE_AccordionItemMultiple.js +1 -1
  276. package/amd/UNSAFE_AccordionItemSingle.js +1 -1
  277. package/amd/UNSAFE_ActionCard.js +1 -1
  278. package/amd/UNSAFE_BarChart/__test__/BarChart.spec.js +1 -1
  279. package/amd/UNSAFE_BarChart.js +1 -1
  280. package/amd/UNSAFE_BareButton.js +1 -1
  281. package/amd/UNSAFE_BaseButton.js +1 -1
  282. package/amd/UNSAFE_Button.js +1 -1
  283. package/amd/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +1 -1
  284. package/amd/UNSAFE_ButtonSet.js +1 -1
  285. package/amd/UNSAFE_ButtonSetButton.js +1 -1
  286. package/amd/UNSAFE_ButtonSetIconButton.js +1 -1
  287. package/amd/UNSAFE_ButtonSetItem.js +1 -1
  288. package/amd/UNSAFE_ButtonSetMultiple.js +1 -1
  289. package/amd/UNSAFE_ButtonSetSingle.js +1 -1
  290. package/amd/UNSAFE_Card.js +1 -1
  291. package/amd/UNSAFE_CardFlexView.js +1 -1
  292. package/amd/UNSAFE_CardGridView.js +1 -1
  293. package/amd/UNSAFE_Center.js +1 -1
  294. package/amd/UNSAFE_Checkbox.js +1 -1
  295. package/amd/UNSAFE_CheckboxItem.js +1 -1
  296. package/amd/UNSAFE_CheckboxItem.js.map +1 -1
  297. package/amd/UNSAFE_CheckboxRadioField.js +1 -1
  298. package/amd/UNSAFE_CheckboxSet.js +1 -1
  299. package/amd/UNSAFE_CheckboxSet.js.map +1 -1
  300. package/amd/UNSAFE_Chip.js +1 -1
  301. package/amd/UNSAFE_Collapsible.js +1 -1
  302. package/amd/UNSAFE_ColorPalette.js +1 -1
  303. package/amd/UNSAFE_ColorPicker.js +1 -1
  304. package/amd/UNSAFE_ColorSwatch.js +1 -1
  305. package/amd/UNSAFE_ComboChart.js +1 -1
  306. package/amd/UNSAFE_ComponentMessage.js +1 -1
  307. package/amd/UNSAFE_ContainerDiagram.js +1 -1
  308. package/amd/UNSAFE_ConveyorBelt.js +1 -1
  309. package/amd/UNSAFE_DatePicker.js +1 -1
  310. package/amd/UNSAFE_Diagram.js +1 -1
  311. package/amd/UNSAFE_Dialog.js +1 -1
  312. package/amd/UNSAFE_DragHandle.js +1 -1
  313. package/amd/UNSAFE_DrawerLayout.js +1 -1
  314. package/amd/UNSAFE_DrawerPopup.js +1 -1
  315. package/amd/UNSAFE_Dropdown.js +1 -1
  316. package/amd/UNSAFE_Environment.js +1 -1
  317. package/amd/UNSAFE_ExpandableList.js +1 -1
  318. package/amd/UNSAFE_FilePicker.js +1 -1
  319. package/amd/UNSAFE_FlatTreeView.js +1 -1
  320. package/amd/UNSAFE_Flex.js +1 -1
  321. package/amd/UNSAFE_Floating.js +1 -1
  322. package/amd/UNSAFE_FormLayout.js +1 -1
  323. package/amd/UNSAFE_Gantt.js +1 -1
  324. package/amd/UNSAFE_Grid.js +1 -1
  325. package/amd/UNSAFE_HighlightText.js +1 -1
  326. package/amd/UNSAFE_Icon.js +1 -1
  327. package/amd/UNSAFE_IconButton.js +1 -1
  328. package/amd/UNSAFE_IconMenuButton.js +1 -1
  329. package/amd/UNSAFE_IconProgressButton.js +1 -1
  330. package/amd/UNSAFE_IconToggleButton.js +1 -1
  331. package/amd/UNSAFE_Indexer.js +1 -1
  332. package/amd/UNSAFE_InlineSelectSingle.js +1 -1
  333. package/amd/UNSAFE_InputColor.js +1 -1
  334. package/amd/UNSAFE_InputDateMask/themes/SegmentStyles.css.js +1 -1
  335. package/amd/UNSAFE_InputDateMask.js +1 -1
  336. package/amd/UNSAFE_InputDatePicker.js +1 -1
  337. package/amd/UNSAFE_InputPassword.js +1 -1
  338. package/amd/UNSAFE_InputSensitiveText.js +1 -1
  339. package/amd/UNSAFE_InputText.js +1 -1
  340. package/amd/UNSAFE_InputTimeMask/themes/SegmentStyles.css.js +1 -1
  341. package/amd/UNSAFE_InputTimeMask.js +1 -1
  342. package/amd/UNSAFE_InputTimeMask.js.map +1 -1
  343. package/amd/UNSAFE_Label.js +1 -1
  344. package/amd/UNSAFE_LabelValueLayout.js +1 -1
  345. package/amd/UNSAFE_LabelledLink.js +1 -1
  346. package/amd/UNSAFE_Layer.js +1 -1
  347. package/amd/UNSAFE_Legend.js +1 -1
  348. package/amd/UNSAFE_LineAreaChart.js +1 -1
  349. package/amd/UNSAFE_Link.js +1 -1
  350. package/amd/UNSAFE_ListItemLayout.js +1 -1
  351. package/amd/UNSAFE_ListView.js +1 -1
  352. package/amd/UNSAFE_LiveRegion.js +1 -1
  353. package/amd/UNSAFE_Menu.js +1 -1
  354. package/amd/UNSAFE_MenuButton.js +1 -1
  355. package/amd/UNSAFE_MessageBanner.js +1 -1
  356. package/amd/UNSAFE_MessageToast.js +1 -1
  357. package/amd/UNSAFE_MeterBar.js +1 -1
  358. package/amd/UNSAFE_MeterCircle.js +1 -1
  359. package/amd/UNSAFE_Modal.js +1 -1
  360. package/amd/UNSAFE_NavigationList.js +1 -1
  361. package/amd/UNSAFE_NavigationListCommon.js +1 -1
  362. package/amd/UNSAFE_NumberInputText.js +1 -1
  363. package/amd/UNSAFE_OverflowTabBar.js +1 -1
  364. package/amd/UNSAFE_PictoChart.js +1 -1
  365. package/amd/UNSAFE_PieChart/__test__/PieChart.spec.js +1 -1
  366. package/amd/UNSAFE_PieChart.js +1 -1
  367. package/amd/UNSAFE_Popup.js +1 -1
  368. package/amd/UNSAFE_ProgressBar.js +1 -1
  369. package/amd/UNSAFE_ProgressButton.js +1 -1
  370. package/amd/UNSAFE_ProgressButtonLabelLayout.js +1 -1
  371. package/amd/UNSAFE_ProgressCircle.js +1 -1
  372. package/amd/UNSAFE_RadioItem.js +1 -1
  373. package/amd/UNSAFE_RadioSet.js +1 -1
  374. package/amd/UNSAFE_RatingGauge.js +1 -1
  375. package/amd/UNSAFE_ReorderableTabBar.js +1 -1
  376. package/amd/UNSAFE_RichCheckboxSet.js +1 -1
  377. package/amd/UNSAFE_RichCheckboxSet.js.map +1 -1
  378. package/amd/UNSAFE_RichRadioSet.js +1 -1
  379. package/amd/UNSAFE_RichSelectionItem.js +1 -1
  380. package/amd/UNSAFE_RichSelectionItem.js.map +1 -1
  381. package/amd/UNSAFE_ScatterChart.js +1 -1
  382. package/amd/UNSAFE_SectionalLegend.js +1 -1
  383. package/amd/UNSAFE_SelectMultiple.js +1 -1
  384. package/amd/UNSAFE_SelectSingle.js +1 -1
  385. package/amd/UNSAFE_SelectionCard.js +1 -1
  386. package/amd/UNSAFE_Selector.js +1 -1
  387. package/amd/UNSAFE_SelectorAll.js +1 -1
  388. package/amd/UNSAFE_Sheet/__test__/Sheet.spec.js +1 -1
  389. package/amd/UNSAFE_Sheet.js +1 -1
  390. package/amd/UNSAFE_SortControl.js +1 -1
  391. package/amd/UNSAFE_SplitMenuButton.js +1 -1
  392. package/amd/UNSAFE_Switch.js +1 -1
  393. package/amd/UNSAFE_TabBar.js +1 -1
  394. package/amd/UNSAFE_TabBarCommon.js +1 -1
  395. package/amd/UNSAFE_TabBarMixed.js +1 -1
  396. package/amd/UNSAFE_TableView.js +1 -1
  397. package/amd/UNSAFE_TagCloud.js +1 -1
  398. package/amd/UNSAFE_TextArea.js +1 -1
  399. package/amd/UNSAFE_TextAreaAutosize.js +1 -1
  400. package/amd/UNSAFE_TextField.js +1 -1
  401. package/amd/UNSAFE_ToggleButton.js +1 -1
  402. package/amd/UNSAFE_Toolbar/tests/Toolbar.spec.js +1 -1
  403. package/amd/UNSAFE_Toolbar.js +1 -1
  404. package/amd/UNSAFE_Train.js +1 -1
  405. package/amd/UNSAFE_TruncatingBadge.js +1 -1
  406. package/amd/UNSAFE_TruncatingText.js +1 -1
  407. package/amd/UNSAFE_UserAssistance.js +1 -1
  408. package/amd/UNSAFE_View.js +1 -1
  409. package/amd/UNSAFE_VirtualizedListView.js +1 -1
  410. package/amd/UNSAFE_VisInvalidDataMessage.js +1 -1
  411. package/amd/UNSAFE_VisNoDataMessage.js +1 -1
  412. package/amd/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +1 -1
  413. package/amd/UNSAFE_VisProgressiveLoader.js +1 -1
  414. package/amd/UNSAFE_WindowOverlay.js +1 -1
  415. package/amd/{View-215ec211.js → View-35699bb2.js} +2 -2
  416. package/amd/{View-215ec211.js.map → View-35699bb2.js.map} +1 -1
  417. package/amd/{VisInvalidDataMessage-139a0bf8.js → VisInvalidDataMessage-8e7534a7.js} +2 -2
  418. package/amd/{VisInvalidDataMessage-139a0bf8.js.map → VisInvalidDataMessage-8e7534a7.js.map} +1 -1
  419. package/amd/VisNoDataMessage-fc41dae3.js +2 -0
  420. package/amd/{VisNoDataMessage-e4eb08f6.js.map → VisNoDataMessage-fc41dae3.js.map} +1 -1
  421. package/amd/{VisPlaceholder-a7cac338.js → VisPlaceholder-1bbfb2f0.js} +2 -2
  422. package/amd/{VisPlaceholder-a7cac338.js.map → VisPlaceholder-1bbfb2f0.js.map} +1 -1
  423. package/amd/{VisProgressiveLoader-10192b41.js → VisProgressiveLoader-eeac2e00.js} +2 -2
  424. package/amd/{VisProgressiveLoader-10192b41.js.map → VisProgressiveLoader-eeac2e00.js.map} +1 -1
  425. package/amd/{VisStatusMessage-307f20e9.js → VisStatusMessage-ac3a90aa.js} +2 -2
  426. package/amd/{VisStatusMessage-307f20e9.js.map → VisStatusMessage-ac3a90aa.js.map} +1 -1
  427. package/amd/{VisTabularDatatip-d6b9f28f.js → VisTabularDatatip-93d56ae8.js} +2 -2
  428. package/amd/{VisTabularDatatip-d6b9f28f.js.map → VisTabularDatatip-93d56ae8.js.map} +1 -1
  429. package/amd/{WindowOverlay-55232139.js → WindowOverlay-11d88211.js} +2 -2
  430. package/amd/{WindowOverlay-55232139.js.map → WindowOverlay-11d88211.js.map} +1 -1
  431. package/amd/{YearsGridView-ef191926.js → YearsGridView-09b45b4e.js} +2 -2
  432. package/amd/{YearsGridView-ef191926.js.map → YearsGridView-09b45b4e.js.map} +1 -1
  433. package/amd/hoc/PRIVATE_withDirectionIcon.js +1 -1
  434. package/amd/hoc/PRIVATE_withThemeIcon.js +1 -1
  435. package/amd/hoc/UNSAFE_withThemeProps.js +1 -1
  436. package/amd/hooks/PRIVATE_useChartContextMenu.js +1 -1
  437. package/amd/hooks/PRIVATE_useChartDatatip.js +1 -1
  438. package/amd/hooks/PRIVATE_useChartEvents.js +1 -1
  439. package/amd/hooks/PRIVATE_useChartMarquee.js +1 -1
  440. package/amd/hooks/PRIVATE_useCollectionFocusRing.js +1 -1
  441. package/amd/hooks/PRIVATE_useCssVars.js +1 -1
  442. package/amd/hooks/PRIVATE_useCurrentKey.js +1 -1
  443. package/amd/hooks/PRIVATE_useDatatip.js +1 -1
  444. package/amd/hooks/PRIVATE_useDetectHorizontalOverflow.js +1 -1
  445. package/amd/hooks/PRIVATE_useFloating.js +1 -1
  446. package/amd/hooks/PRIVATE_useItemAction.js +1 -1
  447. package/amd/hooks/PRIVATE_useListCommon.js +1 -1
  448. package/amd/hooks/PRIVATE_useOutsideMousedown.js +1 -1
  449. package/amd/hooks/PRIVATE_useRadioFocusManager.js +1 -1
  450. package/amd/hooks/PRIVATE_useReorderable.js +1 -1
  451. package/amd/hooks/PRIVATE_useRovingTabIndexContainer.js +1 -1
  452. package/amd/hooks/PRIVATE_useSelection.js +1 -1
  453. package/amd/hooks/PRIVATE_useTabBar.js +1 -1
  454. package/amd/hooks/PRIVATE_useTabbableModeSet.js +1 -1
  455. package/amd/hooks/PRIVATE_useTooltipOnTruncation.js +1 -1
  456. package/amd/hooks/PRIVATE_useVisContextMenu.js +1 -1
  457. package/amd/hooks/PRIVATE_useVisDragModeControls.js +1 -1
  458. package/amd/hooks/PRIVATE_useVisEvents.js +1 -1
  459. package/amd/hooks/PRIVATE_useVisMeterEvents.js +1 -1
  460. package/amd/hooks/PRIVATE_useVisSelection.js +1 -1
  461. package/amd/hooks/UNSAFE_useBareButton.js +1 -1
  462. package/amd/hooks/UNSAFE_useColorScheme.js +1 -1
  463. package/amd/hooks/UNSAFE_useCurrentBgColor.js +1 -1
  464. package/amd/hooks/UNSAFE_useDensity.js +1 -1
  465. package/amd/hooks/UNSAFE_useHiddenTestMethod.js +1 -1
  466. package/amd/hooks/UNSAFE_useOutsideClick.js +1 -1
  467. package/amd/hooks/UNSAFE_usePrefixSuffix.js +1 -1
  468. package/amd/hooks/UNSAFE_useScale.js +1 -1
  469. package/amd/hooks/UNSAFE_useTestId.js +1 -1
  470. package/amd/hooks/UNSAFE_useTheme.js +1 -1
  471. package/amd/hooks/UNSAFE_useThemeInterpolations.js +1 -1
  472. package/amd/hooks/UNSAFE_useTooltip.js +1 -1
  473. package/amd/hooks/UNSAFE_useTranslationBundle.js +1 -1
  474. package/amd/hooks/UNSAFE_useUser.js +1 -1
  475. package/amd/{index-4f562976.js → index-5899fd61.js} +2 -2
  476. package/amd/index-5899fd61.js.map +1 -0
  477. package/amd/listViewSelectionTests-c5492828.js +1 -1
  478. package/amd/popupUtils-d42db8bf.js +2 -0
  479. package/amd/{popupUtils-71ea5dd1.js.map → popupUtils-d42db8bf.js.map} +1 -1
  480. package/amd/render-0e124b25.js +2 -0
  481. package/amd/{render-40923005.js.map → render-0e124b25.js.map} +1 -1
  482. package/amd/{tabbableUtils-7fa099af.js → tabbableUtils-0f5a148a.js} +2 -2
  483. package/amd/{tabbableUtils-7fa099af.js.map → tabbableUtils-0f5a148a.js.map} +1 -1
  484. package/amd/{testData-db08ddc1.js → testData-0ee09770.js} +2 -2
  485. package/amd/{testData-db08ddc1.js.map → testData-0ee09770.js.map} +1 -1
  486. package/amd/{testData-d92d6bdb.js → testData-c84b4335.js} +2 -2
  487. package/amd/{testData-d92d6bdb.js.map → testData-c84b4335.js.map} +1 -1
  488. package/amd/{tooltipUtils-0761844d.js → tooltipUtils-66f3844a.js} +2 -2
  489. package/amd/{tooltipUtils-0761844d.js.map → tooltipUtils-66f3844a.js.map} +1 -1
  490. package/amd/useBareButton-0afa84c2.js +1 -1
  491. package/amd/useCellNavigation-fe5a7be7.js +1 -1
  492. package/amd/useChartContextMenu-1490ade6.js +1 -1
  493. package/amd/{useChartDatatip-1255260f.js → useChartDatatip-1dc977ae.js} +2 -2
  494. package/amd/{useChartDatatip-1255260f.js.map → useChartDatatip-1dc977ae.js.map} +1 -1
  495. package/amd/{useColorScheme-6cb3a3b7.js → useColorScheme-097c31ff.js} +2 -2
  496. package/amd/{useColorScheme-6cb3a3b7.js.map → useColorScheme-097c31ff.js.map} +1 -1
  497. package/amd/useContextMenu-c4fc924d.js +1 -1
  498. package/amd/{useCssVars-d0c0bfa2.js → useCssVars-3194b2f6.js} +2 -2
  499. package/amd/{useCssVars-d0c0bfa2.js.map → useCssVars-3194b2f6.js.map} +1 -1
  500. package/amd/{useCurrentBgColor-3044b50a.js → useCurrentBgColor-6f440613.js} +2 -2
  501. package/amd/{useCurrentBgColor-3044b50a.js.map → useCurrentBgColor-6f440613.js.map} +1 -1
  502. package/amd/useCurrentKey-5749e7fb.js +2 -0
  503. package/amd/{useCurrentKey-05038cac.js.map → useCurrentKey-5749e7fb.js.map} +1 -1
  504. package/amd/{useDatatip-656c8df6.js → useDatatip-df022581.js} +2 -2
  505. package/amd/{useDatatip-656c8df6.js.map → useDatatip-df022581.js.map} +1 -1
  506. package/amd/{useDensity-622a2d34.js → useDensity-8a10fc70.js} +2 -2
  507. package/amd/{useDensity-622a2d34.js.map → useDensity-8a10fc70.js.map} +1 -1
  508. package/amd/useDisplayValue-a15b1a34.js +1 -1
  509. package/amd/{useExpandCollapse-d8799966.js → useExpandCollapse-41860b2a.js} +2 -2
  510. package/amd/{useExpandCollapse-d8799966.js.map → useExpandCollapse-41860b2a.js.map} +1 -1
  511. package/amd/{useFloating-0bdf9133.js → useFloating-5cb85d2b.js} +2 -2
  512. package/amd/{useFloating-0bdf9133.js.map → useFloating-5cb85d2b.js.map} +1 -1
  513. package/amd/{useHiddenTestMethod-6bbe8a43.js → useHiddenTestMethod-8321d341.js} +2 -2
  514. package/amd/{useHiddenTestMethod-6bbe8a43.js.map → useHiddenTestMethod-8321d341.js.map} +1 -1
  515. package/amd/useKeyboardEvents-f0419128.js +2 -0
  516. package/amd/{useKeyboardEvents-191a444a.js.map → useKeyboardEvents-f0419128.js.map} +1 -1
  517. package/amd/useLegendContextMenu-9b6f6083.js +1 -1
  518. package/amd/useMeterDatatip-5598534c.js +2 -0
  519. package/amd/{useMeterDatatip-d6977d41.js.map → useMeterDatatip-5598534c.js.map} +1 -1
  520. package/amd/useNavigation-8d7dae30.js +1 -1
  521. package/amd/{useOutsideClick-ace4f686.js → useOutsideClick-b9b661a4.js} +2 -2
  522. package/amd/{useOutsideClick-ace4f686.js.map → useOutsideClick-b9b661a4.js.map} +1 -1
  523. package/amd/{useOutsideMousedown-62fa309c.js → useOutsideMousedown-cb88da60.js} +2 -2
  524. package/amd/{useOutsideMousedown-62fa309c.js.map → useOutsideMousedown-cb88da60.js.map} +1 -1
  525. package/amd/usePopupAnimation-dc282b02.js +2 -0
  526. package/amd/{usePopupAnimation-389749fc.js.map → usePopupAnimation-dc282b02.js.map} +1 -1
  527. package/amd/usePrefixSuffix-dd2cae55.js +2 -0
  528. package/amd/{usePrefixSuffix-7371ec52.js.map → usePrefixSuffix-dd2cae55.js.map} +1 -1
  529. package/amd/useRadioFocusManager-462e28eb.js +2 -0
  530. package/amd/{useRadioFocusManager-c613d2fc.js.map → useRadioFocusManager-462e28eb.js.map} +1 -1
  531. package/amd/{useReorderableItem-6ab59e42.js → useReorderableItem-0f9d7742.js} +2 -2
  532. package/amd/{useReorderableItem-6ab59e42.js.map → useReorderableItem-0f9d7742.js.map} +1 -1
  533. package/amd/{useRovingTabIndexContainer-a8b8ab8f.js → useRovingTabIndexContainer-9aa2fbcf.js} +2 -2
  534. package/amd/{useRovingTabIndexContainer-a8b8ab8f.js.map → useRovingTabIndexContainer-9aa2fbcf.js.map} +1 -1
  535. package/amd/{useScale-404175fb.js → useScale-04a448c3.js} +2 -2
  536. package/amd/{useScale-404175fb.js.map → useScale-04a448c3.js.map} +1 -1
  537. package/amd/useSelectCommon-be138f8d.js +1 -1
  538. package/amd/{useSelectDrill-a749b7f8.js → useSelectDrill-2a3c2b81.js} +2 -2
  539. package/amd/{useSelectDrill-a749b7f8.js.map → useSelectDrill-2a3c2b81.js.map} +1 -1
  540. package/amd/{useSelection-8f66e2ab.js → useSelection-00add7e4.js} +2 -2
  541. package/amd/{useSelection-8f66e2ab.js.map → useSelection-00add7e4.js.map} +1 -1
  542. package/amd/{useSelection-48cb7bdf.js → useSelection-aecb6b23.js} +2 -2
  543. package/amd/{useSelection-48cb7bdf.js.map → useSelection-aecb6b23.js.map} +1 -1
  544. package/amd/useTabBar-50c4da2d.js +1 -1
  545. package/amd/{useTabBarItemTooltip-0c13e9b4.js → useTabBarItemTooltip-fac844e2.js} +2 -2
  546. package/amd/{useTabBarItemTooltip-0c13e9b4.js.map → useTabBarItemTooltip-fac844e2.js.map} +1 -1
  547. package/amd/{useTestId-6160e7a2.js → useTestId-f4240cbd.js} +2 -2
  548. package/amd/{useTestId-6160e7a2.js.map → useTestId-f4240cbd.js.map} +1 -1
  549. package/amd/{useTheme-59bafcbb.js → useTheme-da27e1d1.js} +2 -2
  550. package/amd/{useTheme-59bafcbb.js.map → useTheme-da27e1d1.js.map} +1 -1
  551. package/amd/useThemeInterpolations-cc05b0f0.js +2 -0
  552. package/amd/{useThemeInterpolations-53e9343f.js.map → useThemeInterpolations-cc05b0f0.js.map} +1 -1
  553. package/amd/useTooltip-c8aaf38a.js +2 -0
  554. package/amd/{useTooltip-5615359f.js.map → useTooltip-c8aaf38a.js.map} +1 -1
  555. package/amd/{useTooltipControlled-0e181f1a.js → useTooltipControlled-af5409d4.js} +2 -2
  556. package/amd/{useTooltipControlled-0e181f1a.js.map → useTooltipControlled-af5409d4.js.map} +1 -1
  557. package/amd/useTooltipOnTruncation-129d7663.js +2 -0
  558. package/amd/{useTooltipOnTruncation-5c26fe42.js.map → useTooltipOnTruncation-129d7663.js.map} +1 -1
  559. package/amd/{useTranslationBundle-db326955.js → useTranslationBundle-e4dd341e.js} +2 -2
  560. package/amd/{useTranslationBundle-db326955.js.map → useTranslationBundle-e4dd341e.js.map} +1 -1
  561. package/amd/{useUser-e0677e8d.js → useUser-08901aba.js} +2 -2
  562. package/amd/{useUser-e0677e8d.js.map → useUser-08901aba.js.map} +1 -1
  563. package/amd/useVisDragModeControls-47a4f754.js +1 -1
  564. package/amd/{useVisEvents-4860cd24.js → useVisEvents-5f18ab46.js} +2 -2
  565. package/amd/{useVisEvents-4860cd24.js.map → useVisEvents-5f18ab46.js.map} +1 -1
  566. package/amd/utils/PRIVATE_collectionUtils.js +1 -1
  567. package/amd/utils/PRIVATE_tabBarUtils.js +1 -1
  568. package/amd/utils/PRIVATE_tooltipUtils.js +1 -1
  569. package/amd/utils/PRIVATE_visTestUtils.js +1 -1
  570. package/amd/utils/UNSAFE_popupUtils.js +1 -1
  571. package/amd/{withDirectionIcon-07d1a4ee.js → withDirectionIcon-cea07c6e.js} +2 -2
  572. package/amd/{withDirectionIcon-07d1a4ee.js.map → withDirectionIcon-cea07c6e.js.map} +1 -1
  573. package/amd/withThemeProps-88ad9dea.js +1 -1
  574. package/cjs/{BaseCardView-b34fe51b.js → BaseCardView-5690e60a.js} +1 -4
  575. package/cjs/{BaseCardView-b34fe51b.js.map → BaseCardView-5690e60a.js.map} +1 -1
  576. package/cjs/{ColorPicker-24ef1a81.js → ColorPicker-3e500453.js} +2 -2
  577. package/cjs/{ColorPicker-24ef1a81.js.map → ColorPicker-3e500453.js.map} +1 -1
  578. package/cjs/PRIVATE_BaseCardView.js +1 -1
  579. package/cjs/PRIVATE_TableList.js +4 -4
  580. package/cjs/{TabBar-ab270d09.js → TabBar-a6629ef8.js} +1 -3
  581. package/cjs/{TabBar-ab270d09.js.map → TabBar-a6629ef8.js.map} +1 -1
  582. package/cjs/Theme-redwood/theme.css +152 -152
  583. package/cjs/Theme-stable/theme.css +164 -164
  584. package/cjs/UNSAFE_CardFlexView.js +1 -1
  585. package/cjs/UNSAFE_CardGridView.js +1 -1
  586. package/cjs/UNSAFE_ColorPicker.js +25 -25
  587. package/cjs/UNSAFE_InputColor.js +2 -2
  588. package/cjs/UNSAFE_ListView.js +53 -53
  589. package/cjs/UNSAFE_OverflowTabBar.js +10 -10
  590. package/cjs/UNSAFE_ReorderableTabBar.js +12 -12
  591. package/cjs/UNSAFE_TabBar.js +10 -10
  592. package/cjs/UNSAFE_TabBarMixed.js +8 -8
  593. package/es/{Chart-c9ad6478.js → Chart-ec6a48d2.js} +2 -2
  594. package/es/{Chart-c9ad6478.js.map → Chart-ec6a48d2.js.map} +1 -1
  595. package/es/CheckboxSet-ac2fc1ca.js +51 -0
  596. package/{amd/CheckboxSet-2242fd14.js.map → es/CheckboxSet-ac2fc1ca.js.map} +1 -1
  597. package/es/FormLayoutVariants.styles.css +14 -14
  598. package/es/FormLayoutVariants.styles2.css +14 -14
  599. package/es/PRIVATE_Chart.js +4 -4
  600. package/es/Theme-redwood/theme.css +435 -435
  601. package/es/Theme-stable/theme.css +552 -552
  602. package/es/UNSAFE_BarChart.js +4 -4
  603. package/es/UNSAFE_CheckboxItem.js +122 -61
  604. package/es/UNSAFE_CheckboxItem.js.map +1 -1
  605. package/es/UNSAFE_CheckboxSet.js +15 -49
  606. package/es/UNSAFE_CheckboxSet.js.map +1 -1
  607. package/es/UNSAFE_ComboChart.js +4 -4
  608. package/es/UNSAFE_FormLayout/themes/redwood/FormLayoutTheme.js +1 -1
  609. package/es/UNSAFE_FormLayout/themes/redwood/FormLayoutVariants.css.js +1 -1
  610. package/es/UNSAFE_FormLayout/themes/stable/FormLayoutTheme.js +1 -1
  611. package/es/UNSAFE_FormLayout/themes/stable/FormLayoutVariants.css.js +1 -1
  612. package/es/UNSAFE_FormLayout.js +1 -1
  613. package/es/UNSAFE_InputDatePicker.js +92 -92
  614. package/es/UNSAFE_LineAreaChart.js +4 -4
  615. package/es/UNSAFE_RichCheckboxSet.js +46 -42
  616. package/es/UNSAFE_RichCheckboxSet.js.map +1 -1
  617. package/es/UNSAFE_RichSelectionItem.js +152 -89
  618. package/es/UNSAFE_RichSelectionItem.js.map +1 -1
  619. package/es/UNSAFE_ScatterChart.js +4 -4
  620. package/es/UNSAFE_TextArea.js +226 -106
  621. package/es/UNSAFE_TextArea.js.map +1 -1
  622. package/es/UNSAFE_TextAreaAutosize.js +1 -1
  623. package/es/useTextAreaAltEnter-ac460f4c.js +61 -0
  624. package/es/useTextAreaAltEnter-ac460f4c.js.map +1 -0
  625. package/package.json +2 -2
  626. package/amd/Button-d541cd67.js +0 -2
  627. package/amd/CheckboxSet-2242fd14.js +0 -2
  628. package/amd/ColorPalette-f05a9dad.js +0 -2
  629. package/amd/ColorPicker-236d84f0.js +0 -2
  630. package/amd/CompactLabelAssistance-7bb76228.js +0 -2
  631. package/amd/DragHandle-652ffa0f.js +0 -2
  632. package/amd/EmbeddedIconButton-c3cb14c0.js +0 -2
  633. package/amd/Flex-71f83c12.js +0 -2
  634. package/amd/HighlightText-365ba020.js +0 -2
  635. package/amd/InputColor-a1fcd3b3.js +0 -2
  636. package/amd/InputDatePicker-b16a1592.js +0 -2
  637. package/amd/LayerManager-5ba8e6ed.js +0 -2
  638. package/amd/LiveRegion-1553833d.js +0 -2
  639. package/amd/MessageLayer-24870def.js +0 -2
  640. package/amd/VisNoDataMessage-e4eb08f6.js +0 -2
  641. package/amd/index-4f562976.js.map +0 -1
  642. package/amd/popupUtils-71ea5dd1.js +0 -2
  643. package/amd/render-40923005.js +0 -2
  644. package/amd/useCurrentKey-05038cac.js +0 -2
  645. package/amd/useKeyboardEvents-191a444a.js +0 -2
  646. package/amd/useMeterDatatip-d6977d41.js +0 -2
  647. package/amd/usePopupAnimation-389749fc.js +0 -2
  648. package/amd/usePrefixSuffix-7371ec52.js +0 -2
  649. package/amd/useRadioFocusManager-c613d2fc.js +0 -2
  650. package/amd/useThemeInterpolations-53e9343f.js +0 -2
  651. package/amd/useTooltip-5615359f.js +0 -2
  652. package/amd/useTooltipOnTruncation-5c26fe42.js +0 -2
  653. package/es/CheckboxSetContext-1be56556.js +0 -9
  654. package/es/TextArea-72682112.js +0 -225
  655. package/es/TextArea-72682112.js.map +0 -1
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact', './size-114c63df', './useTooltip-5615359f', 'preact/hooks', './logger-0f873e29', './LayerHost-1a734852', 'preact/compat', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-0761844d', './UNSAFE_Icon/themes/IconStyle.css', './clientHints-6d361eaa'], (function(e,s,t,o,l,i,c,n,r,a,h,p,d,m,b){"use strict";const x=({accessibleLabel:e,...t})=>e?s.jsx(y,{accessibleLabel:e,...t}):s.jsx(u,{...t}),u=e=>s.jsx("svg",{...e}),y=({accessibleLabel:e,children:o,...i})=>{const{tooltipContent:c,tooltipProps:{onFocus:n,onBlur:r,...a}}=l.useTooltip({text:e,anchor:{x:"element",y:"element"}});return s.jsxs(t.Fragment,{children:[s.jsx("svg",{role:"img",...i,...a,"aria-label":e,children:o}),c]})};e.Icon=({size:e="1em",color:t="currentColor",accessibleLabel:l="",viewBox:i="none",children:c})=>{if("safari"===b.getClientHints().browser){const n="1em"===e?e:`${o.sizeToCSS(e)}`;return s.jsx(x,{viewBox:i,accessibleLabel:l,class:m.styles[t],style:{width:n,height:n},children:c})}return s.jsx(x,{height:"1em",width:"1em",viewBox:i,accessibleLabel:l,class:m.styles[t],style:{fontSize:"1em"===e?e:`${o.sizeToCSS(e)}`},children:c})}}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact', './size-114c63df', './useTooltip-c8aaf38a', 'preact/hooks', './logger-0f873e29', './LayerHost-0b288129', 'preact/compat', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-66f3844a', './UNSAFE_Icon/themes/IconStyle.css', './clientHints-6d361eaa'], (function(e,s,t,o,l,i,c,n,r,a,h,p,b,d,m){"use strict";const x=({accessibleLabel:e,...t})=>e?s.jsx(y,{accessibleLabel:e,...t}):s.jsx(u,{...t}),u=e=>s.jsx("svg",{...e}),y=({accessibleLabel:e,children:o,...i})=>{const{tooltipContent:c,tooltipProps:{onFocus:n,onBlur:r,...a}}=l.useTooltip({text:e,anchor:{x:"element",y:"element"}});return s.jsxs(t.Fragment,{children:[s.jsx("svg",{role:"img",...i,...a,"aria-label":e,children:o}),c]})};e.Icon=({size:e="1em",color:t="currentColor",accessibleLabel:l="",viewBox:i="none",children:c})=>{if("safari"===m.getClientHints().browser){const n="1em"===e?e:`${o.sizeToCSS(e)}`;return s.jsx(x,{viewBox:i,accessibleLabel:l,class:d.styles[t],style:{width:n,height:n},children:c})}return s.jsx(x,{height:"1em",width:"1em",viewBox:i,accessibleLabel:l,class:d.styles[t],style:{fontSize:"1em"===e?e:`${o.sizeToCSS(e)}`},children:c})}}));
2
2
  //# sourceMappingURL=Icon-b9a01da9.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact', './BaseButton-9bf908ec', './ButtonLabelLayout-6464870c', 'preact/compat', './useTooltip-5615359f', 'preact/hooks', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-1a734852', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-0761844d', './buttonUtils-cbbb0130'], (function(t,o,e,s,i,a,n,l,r,p,c,u,d,b,m,y){"use strict";const f=a.forwardRef((({variant:t="outlined",isDisabled:a=!1,isRepeat:l=!1,size:p="md",type:c="button",autofocus:u,onAction:d,width:b,tooltip:m,testId:f,...h},B)=>{const{globalEventProps:T,ariaProps:{"aria-label":g,...x}}=y.processGlobals(h),{tooltipContent:w,tooltipProps:I}=n.useTooltip({text:m||g,isDisabled:a}),L={type:"button",buttonType:c};return o.jsxs(e.Fragment,{children:[o.jsx(s.BaseButton,{...r.mergeProps(I,T,x),ref:B,elementDetails:L,isDisabled:a,isRepeat:l,size:p,autofocus:u,variant:t,width:b,styling:["min","noUserSelect"],onAction:d,"aria-label":g??m,testId:f,children:o.jsx(i.ButtonLabelLayout,{display:"icons",startIcon:h.children,size:p})}),w]})}));f.displayName="IconButton",t.IconButton=f}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact', './BaseButton-5a0ad529', './ButtonLabelLayout-6464870c', 'preact/compat', './useTooltip-c8aaf38a', 'preact/hooks', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-0b288129', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-66f3844a', './buttonUtils-cbbb0130'], (function(t,o,e,s,a,i,n,l,r,p,c,u,d,b,m,y){"use strict";const f=i.forwardRef((({variant:t="outlined",isDisabled:i=!1,isRepeat:l=!1,size:p="md",type:c="button",autofocus:u,onAction:d,width:b,tooltip:m,testId:f,...h},B)=>{const{globalEventProps:T,ariaProps:{"aria-label":g,...x}}=y.processGlobals(h),{tooltipContent:w,tooltipProps:I}=n.useTooltip({text:m||g,isDisabled:i}),L={type:"button",buttonType:c};return o.jsxs(e.Fragment,{children:[o.jsx(s.BaseButton,{...r.mergeProps(I,T,x),ref:B,elementDetails:L,isDisabled:i,isRepeat:l,size:p,autofocus:u,variant:t,width:b,styling:["min","noUserSelect"],onAction:d,"aria-label":g??m,testId:f,children:o.jsx(a.ButtonLabelLayout,{display:"icons",startIcon:h.children,size:p})}),w]})}));f.displayName="IconButton",t.IconButton=f}));
2
2
  //# sourceMappingURL=IconButton-d78fe636.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './ButtonLabelLayout-6464870c', './ChevronDown-1db436e3', './Menu-4b445ba5', './MenuItem-f3de5e35', 'preact/hooks', 'preact', './useTooltip-5615359f', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-1a734852', 'preact/compat', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-0761844d', 'css!./IconStyle.styles.css', './SelectMenuGroupContext-67f24a8f', './UNSAFE_Menu/themes/MenuItemStyles.css', './UNSAFE_Separator/themes/SeparatorStyles.css', 'css!./MenuSeparatorStyles.styles.css', 'module', './UNSAFE_Menu/themes/redwood/MenuSeparatorVariants.css', 'css!./MenuStyles.styles.css', './useMenuAction-26df747b', './BaseButton-9bf908ec'], (function(e,t,s,o,n,a,i,r,l,u,c,d,p,y,b,m,h,M,S,f,g,T,I,x,B,w,A){"use strict";const F=p.forwardRef((({children:e,tooltip:a,accessibleLabel:c,variant:d="outlined",isDisabled:p=!1,isMenuOpen:y=!1,isIconOnly:b=!1,onToggleMenu:m,size:h="md",type:M="button",testId:S,width:f,icon:g,"aria-describedby":T},I)=>{const x=i.useRef(null);i.useImperativeHandle(I,(()=>x.current),[x]);const{triggerProps:B,menuProps:F}=w.useMenuAction({isDisabled:p,onToggleMenu:m,isMenuOpen:y,anchorRef:x}),{tooltipContent:j,tooltipProps:v}=l.useTooltip({text:a||c,isDisabled:y||p}),C={type:"button",buttonType:M},D={"aria-describedby":T},N=t.jsx(r.Fragment,{children:t.jsxs(A.BaseButton,{...u.mergeProps(v,B,D),styling:y?["min","active"]:["min"],elementDetails:C,isDisabled:p,variant:d,width:f,size:h,ref:x,"aria-label":c??a,testId:S,children:[t.jsx(s.ButtonLabelLayout,{display:"icons",startIcon:g,endIcon:b?null:t.jsx(o.SvgChevronDown,{}),size:h}),j]})});return p?N:t.jsxs(r.Fragment,{children:[N,t.jsx(n.Menu,{...F,offsetValue:4,"aria-label":c??a,children:e})]})}));F.displayName="IconMenuButton",e.IconMenuButton=F}));
1
+ define(['exports', 'preact/jsx-runtime', './ButtonLabelLayout-6464870c', './ChevronDown-1db436e3', './Menu-4b445ba5', './MenuItem-f3de5e35', 'preact/hooks', 'preact', './useTooltip-c8aaf38a', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-0b288129', 'preact/compat', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-66f3844a', 'css!./IconStyle.styles.css', './SelectMenuGroupContext-67f24a8f', './UNSAFE_Menu/themes/MenuItemStyles.css', './UNSAFE_Separator/themes/SeparatorStyles.css', 'css!./MenuSeparatorStyles.styles.css', 'module', './UNSAFE_Menu/themes/redwood/MenuSeparatorVariants.css', 'css!./MenuStyles.styles.css', './useMenuAction-26df747b', './BaseButton-5a0ad529'], (function(e,t,s,o,n,a,i,r,l,u,c,d,p,y,b,m,h,M,S,f,g,T,I,x,B,w,A){"use strict";const F=p.forwardRef((({children:e,tooltip:a,accessibleLabel:c,variant:d="outlined",isDisabled:p=!1,isMenuOpen:y=!1,isIconOnly:b=!1,onToggleMenu:m,size:h="md",type:M="button",testId:S,width:f,icon:g,"aria-describedby":T},I)=>{const x=i.useRef(null);i.useImperativeHandle(I,(()=>x.current),[x]);const{triggerProps:B,menuProps:F}=w.useMenuAction({isDisabled:p,onToggleMenu:m,isMenuOpen:y,anchorRef:x}),{tooltipContent:j,tooltipProps:v}=l.useTooltip({text:a||c,isDisabled:y||p}),C={type:"button",buttonType:M},D={"aria-describedby":T},N=t.jsx(r.Fragment,{children:t.jsxs(A.BaseButton,{...u.mergeProps(v,B,D),styling:y?["min","active"]:["min"],elementDetails:C,isDisabled:p,variant:d,width:f,size:h,ref:x,"aria-label":c??a,testId:S,children:[t.jsx(s.ButtonLabelLayout,{display:"icons",startIcon:g,endIcon:b?null:t.jsx(o.SvgChevronDown,{}),size:h}),j]})});return p?N:t.jsxs(r.Fragment,{children:[N,t.jsx(n.Menu,{...F,offsetValue:4,"aria-label":c??a,children:e})]})}));F.displayName="IconMenuButton",e.IconMenuButton=F}));
2
2
  //# sourceMappingURL=IconMenuButton-74b41e62.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact', './BaseButton-9bf908ec', './ProgressButtonLabelLayout-4f7aa87d', 'preact/compat', './useTooltip-5615359f', 'preact/hooks', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-1a734852', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-0761844d', './buttonUtils-cbbb0130', './resources/nls/en/bundle', './LiveRegion-1553833d', './useProgressLoadingState-4449db01'], (function(t,e,o,s,i,n,a,r,l,d,c,u,p,b,g,y,m,h,L){"use strict";const f=n.forwardRef((({variant:t="outlined",isLoading:n=!1,isDisabled:r=!1,size:d="md",type:c="button",onAction:u,width:p,tooltip:b,testId:g,...f},P)=>{const{globalEventProps:B}=y.processGlobals(f),T=!r&&n,v=m.default.accButtonProgressStatus({label:b}),x=m.default.accButtonProgressComplete({label:b}),A={type:"button",buttonType:c},C=b,{tooltipContent:S,tooltipProps:j}=a.useTooltip({text:C,isDisabled:r}),{loaded:w}=L.useProgressLoadingState(T),{"aria-describedby":I,...D}=j;return e.jsxs(o.Fragment,{children:[e.jsx(s.BaseButton,{...l.mergeProps(D,B),ref:P,elementDetails:A,isReadOnly:T,isDisabled:r,size:d,variant:t,width:p,styling:T?["min","hiddenLabel","noHoverActive"]:["min"],onAction:u,"aria-label":b,testId:g,children:e.jsx(i.ProgressButtonLabelLayout,{display:"icons",isLoading:T,isLoadingContrast:"callToAction"===t,startIcon:f.children,size:d})}),S,e.jsx(h.LiveRegion,{type:"assertive",children:w?x:n?v:""})]})}));f.displayName="IconProgressButton",t.IconProgressButton=f}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact', './BaseButton-5a0ad529', './ProgressButtonLabelLayout-4f7aa87d', 'preact/compat', './useTooltip-c8aaf38a', 'preact/hooks', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-0b288129', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-66f3844a', './buttonUtils-cbbb0130', './resources/nls/en/bundle', './LiveRegion-dbefb95b', './useProgressLoadingState-4449db01'], (function(t,e,o,s,a,i,n,r,l,d,c,u,p,b,g,y,m,f,h){"use strict";const L=i.forwardRef((({variant:t="outlined",isLoading:i=!1,isDisabled:r=!1,size:d="md",type:c="button",onAction:u,width:p,tooltip:b,testId:g,...L},P)=>{const{globalEventProps:B}=y.processGlobals(L),T=!r&&i,v=m.default.accButtonProgressStatus({label:b}),x=m.default.accButtonProgressComplete({label:b}),A={type:"button",buttonType:c},C=b,{tooltipContent:S,tooltipProps:j}=n.useTooltip({text:C,isDisabled:r}),{loaded:w}=h.useProgressLoadingState(T),{"aria-describedby":I,...D}=j;return e.jsxs(o.Fragment,{children:[e.jsx(s.BaseButton,{...l.mergeProps(D,B),ref:P,elementDetails:A,isReadOnly:T,isDisabled:r,size:d,variant:t,width:p,styling:T?["min","hiddenLabel","noHoverActive"]:["min"],onAction:u,"aria-label":b,testId:g,children:e.jsx(a.ProgressButtonLabelLayout,{display:"icons",isLoading:T,isLoadingContrast:"callToAction"===t,startIcon:L.children,size:d})}),S,e.jsx(f.LiveRegion,{type:"assertive",children:w?x:i?v:""})]})}));L.displayName="IconProgressButton",t.IconProgressButton=L}));
2
2
  //# sourceMappingURL=IconProgressButton-28f72faa.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact', 'preact/compat', './BaseButton-9bf908ec', './useToggleAction-59741954', './useTooltip-5615359f', 'preact/hooks', './useId-c9578d26', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-1a734852', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-0761844d', './toggleButtonUtils-0ebe4c56', './ToggleButtonLabel-367494b8'], (function(e,t,o,s,i,l,a,n,c,r,d,g,p,u,b,h,T,m){"use strict";const y=s.forwardRef((({children:e,tooltip:s,size:n="md",isDisabled:d=!1,accessibleLabel:g,isSelected:p=!1,onToggle:u,testId:b,width:h,"aria-describedby":y},B)=>{const{triggerProps:f}=l.useToggleAction({isDisabled:d,onToggle:u}),{tooltipContent:w,tooltipProps:S}=a.useTooltip({text:s??g,isDisabled:d}),I=T.toggleStyling("auto",p,!0,!1,!1,void 0,void 0,!0),x={"aria-describedby":y};return t.jsxs(o.Fragment,{children:[t.jsx(i.BaseButton,{...r.mergeProps(S,f,x),elementDetails:{type:"button",isSwitch:!0},"aria-checked":p,variant:"ghost",size:n,isDisabled:d,styling:I,width:h,ref:B,"aria-label":g??s,testId:b,children:t.jsx(m.ToggleButtonLabel,{isDisabled:d,label:g??s,isToggle:!0,inputName:c.useId(),inputType:"switch",onAction:()=>u?.({value:p}),isSelected:p,display:"icons",startIcon:e,size:n})}),w]})}));y.displayName="IconSwitchButton",e.IconSwitchButton=y}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact', 'preact/compat', './BaseButton-5a0ad529', './useToggleAction-59741954', './useTooltip-c8aaf38a', 'preact/hooks', './useId-c9578d26', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-0b288129', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-66f3844a', './toggleButtonUtils-0ebe4c56', './ToggleButtonLabel-367494b8'], (function(e,t,o,s,i,l,a,n,c,r,d,g,p,u,b,h,T,m){"use strict";const y=s.forwardRef((({children:e,tooltip:s,size:n="md",isDisabled:d=!1,accessibleLabel:g,isSelected:p=!1,onToggle:u,testId:b,width:h,"aria-describedby":y},B)=>{const{triggerProps:f}=l.useToggleAction({isDisabled:d,onToggle:u}),{tooltipContent:w,tooltipProps:S}=a.useTooltip({text:s??g,isDisabled:d}),I=T.toggleStyling("auto",p,!0,!1,!1,void 0,void 0,!0),x={"aria-describedby":y};return t.jsxs(o.Fragment,{children:[t.jsx(i.BaseButton,{...r.mergeProps(S,f,x),elementDetails:{type:"button",isSwitch:!0},"aria-checked":p,variant:"ghost",size:n,isDisabled:d,styling:I,width:h,ref:B,"aria-label":g??s,testId:b,children:t.jsx(m.ToggleButtonLabel,{isDisabled:d,label:g??s,isToggle:!0,inputName:c.useId(),inputType:"switch",onAction:()=>u?.({value:p}),isSelected:p,display:"icons",startIcon:e,size:n})}),w]})}));y.displayName="IconSwitchButton",e.IconSwitchButton=y}));
2
2
  //# sourceMappingURL=IconSwitchButton-22893e1f.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact', 'preact/compat', './BaseButton-9bf908ec', './useToggleAction-59741954', './useTooltip-5615359f', 'preact/hooks', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-1a734852', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-0761844d', './toggleButtonUtils-0ebe4c56', './buttonUtils-cbbb0130', './ToggleButtonLabel-367494b8'], (function(e,t,o,s,i,l,a,n,r,c,d,g,p,b,u,T,h,m){"use strict";const y=s.forwardRef((({children:e,variant:s="outlined",size:n="md",isDisabled:c=!1,tooltip:d,accessibleLabel:g,isSelected:p=!1,onToggle:b,testId:u,"aria-describedby":y,width:B,...f},v)=>{const{globalEventProps:x}=h.processGlobals(f),{triggerProps:w}=l.useToggleAction({isDisabled:c,onToggle:b}),{tooltipContent:A,tooltipProps:D}=a.useTooltip({text:d??g,isDisabled:c}),I=T.toggleStyling("auto",p,!1,!1,"outlined"===s,void 0,void 0,!0,!0),P={"aria-describedby":y};return t.jsxs(o.Fragment,{children:[t.jsx(i.BaseButton,{...r.mergeProps(D,w,x,P),variant:s,isDisabled:c,size:n,width:B,"aria-pressed":p,styling:I,ref:v,"aria-label":g??d,testId:u,children:t.jsx(m.ToggleButtonLabel,{onAction:()=>b?.({value:p}),size:n,isDisabled:c,display:"icons",startIcon:e})}),A]})}));y.displayName="IconToggleButton",e.IconToggleButton=y}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact', 'preact/compat', './BaseButton-5a0ad529', './useToggleAction-59741954', './useTooltip-c8aaf38a', 'preact/hooks', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-0b288129', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-66f3844a', './toggleButtonUtils-0ebe4c56', './buttonUtils-cbbb0130', './ToggleButtonLabel-367494b8'], (function(e,t,o,s,i,l,a,n,r,c,d,g,p,b,u,T,h,m){"use strict";const y=s.forwardRef((({children:e,variant:s="outlined",size:n="md",isDisabled:c=!1,tooltip:d,accessibleLabel:g,isSelected:p=!1,onToggle:b,testId:u,"aria-describedby":y,width:B,...f},v)=>{const{globalEventProps:x}=h.processGlobals(f),{triggerProps:w}=l.useToggleAction({isDisabled:c,onToggle:b}),{tooltipContent:A,tooltipProps:D}=a.useTooltip({text:d??g,isDisabled:c}),I=T.toggleStyling("auto",p,!1,!1,"outlined"===s,void 0,void 0,!0,!0),P={"aria-describedby":y};return t.jsxs(o.Fragment,{children:[t.jsx(i.BaseButton,{...r.mergeProps(D,w,x,P),variant:s,isDisabled:c,size:n,width:B,"aria-pressed":p,styling:I,ref:v,"aria-label":g??d,testId:u,children:t.jsx(m.ToggleButtonLabel,{onAction:()=>b?.({value:p}),size:n,isDisabled:c,display:"icons",startIcon:e})}),A]})}));y.displayName="IconToggleButton",e.IconToggleButton=y}));
2
2
  //# sourceMappingURL=IconToggleButton-9f1c8265.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact/hooks', './useTranslationBundle-db326955', './Help-b67ab14c', './Popup-575d49f7', './HiddenAccessible-037ef42d', './UNSAFE_UserAssistance/themes/UserAssistanceStyles.css', './useComponentTheme-5aa41a8f', './classNames-08d99695', './UNSAFE_Popup/themes/redwood/PopupTheme', './useToggle-a29f97af', './InlineHelp-e872c36b'], (function(e,s,n,o,a,c,t,i,l,r,u,p,d){"use strict";e.IconUserAssistance=({assistiveText:e,helpSourceLink:h,helpSourceText:b,isTabbable:x=!0,id:m,variant:f="checkbox"})=>{const{bool:T,setFalse:k,toggle:g}=p.useToggle(!1),A=o.useTranslationBundle("@oracle/oraclejet-preact"),C=A.userAssistance_learnMore(),j=h&&(b||C),U=A.radio_helpForRadio(),v=A.checkbox_helpForCheckbox(),H=`${m}-help-string`,S=n.useRef(null),E=n.useCallback((e=>{const s=e?.target;(s instanceof Element||s instanceof Document)&&!S.current?.contains(s)&&T&&k()}),[T,k]),F=n.useCallback((e=>{const{key:s}=e;if(s&&"Enter"!==s)return;const{tagName:n}=e.target;"a"===n?.toLowerCase()&&(k(),setTimeout((()=>S.current?.focus())))}),[k]),I=n.useCallback((e=>{["Tab","Escape"].includes(e.code)&&T&&k(),["Space","Enter"].includes(e.code)&&(e.preventDefault(),g())}),[T,k,g]),P=n.useCallback((e=>{e.preventDefault(),g()}),[g]),{baseTheme:w}=l.useComponentTheme(u.PopupRedwoodTheme),y=r.classNames([w,i.iconUserAssistancePopup]);return h||e?s.jsxs(s.Fragment,{children:[s.jsx("span",{onKeyDown:I,onClick:P,role:"button","aria-labelledby":H,"aria-haspopup":"dialog",ref:S,tabIndex:x?0:-1,class:i.iconUserAssistanceIcon,id:`${m}-help-icon`,children:s.jsx(a.SvgHelp,{})}),s.jsx(t.HiddenAccessible,{id:H,isHidden:!0,children:"checkbox"===f?v:U}),s.jsx(c.Popup,{placement:"top",isOpen:T,anchorRef:S,onClose:k,onClickOutside:E,shiftOptions:{mainAxis:!0,crossAxis:!1},maxWidth:"296px",children:s.jsx("div",{id:m,tabIndex:0,class:y,onMouseUp:F,onKeyDown:F,children:s.jsx(d.InlineHelp,{assistiveText:e,sourceLink:h,sourceText:j})})})]}):null}}));
2
- //# sourceMappingURL=IconUserAssistance-e80bf779.js.map
1
+ define(['exports', 'preact/jsx-runtime', 'preact/hooks', './useTranslationBundle-e4dd341e', './Help-b67ab14c', './Popup-feb5bf60', './HiddenAccessible-037ef42d', './UNSAFE_UserAssistance/themes/UserAssistanceStyles.css', './useComponentTheme-5aa41a8f', './classNames-08d99695', './UNSAFE_Popup/themes/redwood/PopupTheme', './useToggle-a29f97af', './InlineHelp-e872c36b'], (function(e,s,n,o,a,c,t,i,l,r,u,p,d){"use strict";e.IconUserAssistance=({assistiveText:e,helpSourceLink:h,helpSourceText:b,isTabbable:x=!0,id:m,variant:f="checkbox"})=>{const{bool:T,setFalse:k,toggle:g}=p.useToggle(!1),A=o.useTranslationBundle("@oracle/oraclejet-preact"),C=A.userAssistance_learnMore(),j=h&&(b||C),U=A.radio_helpForRadio(),v=A.checkbox_helpForCheckbox(),H=`${m}-help-string`,S=n.useRef(null),E=n.useCallback((e=>{const s=e?.target;(s instanceof Element||s instanceof Document)&&!S.current?.contains(s)&&T&&k()}),[T,k]),F=n.useCallback((e=>{const{key:s}=e;if(s&&"Enter"!==s)return;const{tagName:n}=e.target;"a"===n?.toLowerCase()&&(k(),setTimeout((()=>S.current?.focus())))}),[k]),I=n.useCallback((e=>{["Tab","Escape"].includes(e.code)&&T&&k(),["Space","Enter"].includes(e.code)&&(e.preventDefault(),g())}),[T,k,g]),P=n.useCallback((e=>{e.preventDefault(),g()}),[g]),{baseTheme:w}=l.useComponentTheme(u.PopupRedwoodTheme),y=r.classNames([w,i.iconUserAssistancePopup]);return h||e?s.jsxs(s.Fragment,{children:[s.jsx("span",{onKeyDown:I,onClick:P,role:"button","aria-labelledby":H,"aria-haspopup":"dialog",ref:S,tabIndex:x?0:-1,class:i.iconUserAssistanceIcon,id:`${m}-help-icon`,children:s.jsx(a.SvgHelp,{})}),s.jsx(t.HiddenAccessible,{id:H,isHidden:!0,children:"checkbox"===f?v:U}),s.jsx(c.Popup,{placement:"top",isOpen:T,anchorRef:S,onClose:k,onClickOutside:E,shiftOptions:{mainAxis:!0,crossAxis:!1},maxWidth:"296px",children:s.jsx("div",{id:m,tabIndex:0,class:y,onMouseUp:F,onKeyDown:F,children:s.jsx(d.InlineHelp,{assistiveText:e,sourceLink:h,sourceText:j})})})]}):null}}));
2
+ //# sourceMappingURL=IconUserAssistance-682b85a2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconUserAssistance-e80bf779.js","sources":["../../src/UNSAFE_UserAssistance/IconUserAssistance.tsx"],"sourcesContent":["import { useCallback, useRef } from 'preact/hooks';\n\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '#resources/nls/bundle';\nimport { HelpIcon } from '#PRIVATE_ThemedIcons/HelpIcon';\nimport { Popup } from '#UNSAFE_Popup';\nimport { HiddenAccessible } from '#UNSAFE_HiddenAccessible';\nimport { iconUserAssistanceIcon, iconUserAssistancePopup } from './themes/UserAssistanceStyles.css';\nimport { useComponentTheme } from '#hooks/UNSAFE_useComponentTheme';\nimport { classNames } from '#utils/UNSAFE_classNames';\nimport { PopupRedwoodTheme } from '#UNSAFE_Popup/themes/redwood/PopupTheme';\nimport { useToggle } from '#hooks/UNSAFE_useToggle';\nimport { InlineHelp } from './InlineHelp';\n\ntype Props = {\n /**\n * Text to provide guidance to help the user understand what data to enter.\n */\n assistiveText?: string;\n /**\n * Help source URL associated with the component.\n */\n helpSourceLink?: string;\n /**\n * Custom text to be rendered for the `helpSourceLink`. \"Learn more\" will be used if no custom text is provided.\n */\n helpSourceText?: string;\n /**\n * Whether the trigger element is in tab sequence\n */\n isTabbable?: boolean;\n /**\n * ID of the pop up content that can be used for aria-describedby\n */\n id?: string;\n /**\n * Variant of the component, either 'checkbox' or 'radio'. Used to determine the help text.\n */\n variant?: 'checkbox' | 'radio';\n};\n\n/**\n * Created to match icon user assistance spec for use with radio option, pending design review\n * of inline UA assistance.\n */\nconst IconUserAssistance = ({\n assistiveText,\n helpSourceLink,\n helpSourceText,\n isTabbable = true,\n id,\n variant = 'checkbox'\n}: Props) => {\n const { bool: isOpen, setFalse: setIsOpenFalse, toggle } = useToggle(false);\n\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const userAssistance_learnMoreStr = translations.userAssistance_learnMore();\n const sourceText = helpSourceLink && (helpSourceText || userAssistance_learnMoreStr);\n const helpForRadioString = translations.radio_helpForRadio();\n const helpForCheckboxString = translations.checkbox_helpForCheckbox();\n const helpStringId = `${id}-help-string`;\n const anchorRef = useRef<HTMLSpanElement>(null);\n\n const handleOutsideClick = useCallback(\n (event: MouseEvent) => {\n const target = event?.target;\n // We need to filter out anchor click events, because anchor is responsible for the toggling\n if (\n (target instanceof Element || target instanceof Document) &&\n !anchorRef.current?.contains(target) &&\n isOpen\n ) {\n setIsOpenFalse();\n }\n },\n [isOpen, setIsOpenFalse]\n );\n\n const handleLinkEvent = useCallback(\n (e: Event) => {\n // if it's a key event that is not \"enter\", return early\n const { key } = e as KeyboardEvent;\n if (key && key !== 'Enter') {\n return;\n }\n\n // We want to close the pop up if a link is triggered with mouse or keyboard\n const { tagName } = e.target as Element;\n\n if (tagName?.toLowerCase() === 'a') {\n setIsOpenFalse();\n\n // we want to refocus to the help icon after the browser has launched the link\n // prematurely doing so prevents keyboard events from firing\n setTimeout(() => anchorRef.current?.focus());\n }\n },\n [setIsOpenFalse]\n );\n\n const handleOnKeyDown = useCallback(\n (e: KeyboardEvent) => {\n // allow user to close popup without having to focus it\n if (['Tab', 'Escape'].includes(e.code) && isOpen) {\n setIsOpenFalse();\n }\n\n // toggle and prevent scroll jump\n if (['Space', 'Enter'].includes(e.code)) {\n e.preventDefault();\n toggle();\n }\n },\n [isOpen, setIsOpenFalse, toggle]\n );\n\n const onClickHandler = useCallback(\n (e: Event) => {\n e.preventDefault();\n toggle();\n },\n [toggle]\n );\n\n // We are referencing popup vars, so we need to bring in the baseTheme for popup\n const { baseTheme: popupBaseTheme } = useComponentTheme(PopupRedwoodTheme);\n const iconUserAssistanceClasses = classNames([popupBaseTheme, iconUserAssistancePopup]);\n\n return helpSourceLink || assistiveText ? (\n <>\n <span\n onKeyDown={handleOnKeyDown}\n onClick={onClickHandler}\n role=\"button\"\n aria-labelledby={helpStringId}\n aria-haspopup=\"dialog\"\n ref={anchorRef}\n tabIndex={isTabbable ? 0 : -1}\n class={iconUserAssistanceIcon}\n id={`${id}-help-icon`}>\n <HelpIcon />\n </span>\n <HiddenAccessible id={helpStringId} isHidden={true}>\n {variant === 'checkbox' ? helpForCheckboxString : helpForRadioString}\n </HiddenAccessible>\n <Popup\n placement=\"top\"\n isOpen={isOpen}\n anchorRef={anchorRef}\n onClose={setIsOpenFalse}\n onClickOutside={handleOutsideClick}\n shiftOptions={{ mainAxis: true, crossAxis: false }}\n maxWidth=\"296px\">\n <div\n id={id}\n tabIndex={0}\n class={iconUserAssistanceClasses}\n onMouseUp={handleLinkEvent}\n onKeyDown={handleLinkEvent}>\n <InlineHelp\n assistiveText={assistiveText}\n sourceLink={helpSourceLink}\n sourceText={sourceText}\n />\n </div>\n </Popup>\n </>\n ) : null;\n};\n\nexport { IconUserAssistance };\n"],"names":["assistiveText","helpSourceLink","helpSourceText","isTabbable","id","variant","bool","isOpen","setFalse","setIsOpenFalse","toggle","useToggle","translations","useTranslationBundle","userAssistance_learnMoreStr","userAssistance_learnMore","sourceText","helpForRadioString","radio_helpForRadio","helpForCheckboxString","checkbox_helpForCheckbox","helpStringId","anchorRef","useRef","handleOutsideClick","useCallback","event","target","Element","Document","current","contains","handleLinkEvent","e","key","tagName","toLowerCase","setTimeout","focus","handleOnKeyDown","includes","code","preventDefault","onClickHandler","baseTheme","popupBaseTheme","useComponentTheme","PopupRedwoodTheme","iconUserAssistanceClasses","classNames","iconUserAssistancePopup","_jsxs","jsxs","_Fragment","children","_jsx","onKeyDown","onClick","role","ref","tabIndex","class","iconUserAssistanceIcon","HelpIcon","HiddenAccessible","isHidden","Popup","placement","onClose","onClickOutside","shiftOptions","mainAxis","crossAxis","maxWidth","onMouseUp","InlineHelp","sourceLink"],"mappings":"8aA6C2B,EACzBA,gBACAC,iBACAC,iBACAC,cAAa,EACbC,KACAC,UAAU,eAEV,MAAQC,KAAMC,EAAQC,SAAUC,EAAcC,OAAEA,GAAWC,aAAU,GAE/DC,EAAeC,uBAAiC,4BAChDC,EAA8BF,EAAaG,2BAC3CC,EAAaf,IAAmBC,GAAkBY,GAClDG,EAAqBL,EAAaM,qBAClCC,EAAwBP,EAAaQ,2BACrCC,EAAe,GAAGjB,gBAClBkB,EAAYC,SAAwB,MAEpCC,EAAqBC,eACxBC,IACC,MAAMC,EAASD,GAAOC,QAGnBA,aAAkBC,SAAWD,aAAkBE,YAC/CP,EAAUQ,SAASC,SAASJ,IAC7BpB,GAEAE,GACD,GAEH,CAACF,EAAQE,IAGLuB,EAAkBP,eACrBQ,IAEC,MAAMC,IAAEA,GAAQD,EAChB,GAAIC,GAAe,UAARA,EACT,OAIF,MAAMC,QAAEA,GAAYF,EAAEN,OAES,MAA3BQ,GAASC,gBACX3B,IAIA4B,YAAW,IAAMf,EAAUQ,SAASQ,UACrC,GAEH,CAAC7B,IAGG8B,EAAkBd,eACrBQ,IAEK,CAAC,MAAO,UAAUO,SAASP,EAAEQ,OAASlC,GACxCE,IAIE,CAAC,QAAS,SAAS+B,SAASP,EAAEQ,QAChCR,EAAES,iBACFhC,IACD,GAEH,CAACH,EAAQE,EAAgBC,IAGrBiC,EAAiBlB,eACpBQ,IACCA,EAAES,iBACFhC,GAAQ,GAEV,CAACA,KAIKkC,UAAWC,GAAmBC,EAAiBA,kBAACC,EAAiBA,mBACnEC,EAA4BC,EAAUA,WAAC,CAACJ,EAAgBK,EAAAA,0BAE9D,OAAOjD,GAAkBD,EACvBmD,EAAAC,KAAAC,WAAA,CAAAC,SAAA,CACEC,MACE,OAAA,CAAAC,UAAWjB,EACXkB,QAASd,EACTe,KAAK,SAAQ,kBACIrC,EACH,gBAAA,SACdsC,IAAKrC,EACLsC,SAAUzD,EAAa,GAAK,EAC5B0D,MAAOC,EAAAA,uBACP1D,GAAI,GAAGA,cAAckD,SACrBC,MAACQ,EAAAA,QAAQ,CAAA,KAEXR,EAAAA,IAACS,EAAgBA,iBAAC,CAAA5D,GAAIiB,EAAc4C,UAAU,EAAIX,SACnC,aAAZjD,EAAyBc,EAAwBF,IAEpDsC,EAAAA,IAACW,EAAKA,MAAA,CACJC,UAAU,MACV5D,OAAQA,EACRe,UAAWA,EACX8C,QAAS3D,EACT4D,eAAgB7C,EAChB8C,aAAc,CAAEC,UAAU,EAAMC,WAAW,GAC3CC,SAAS,QACTnB,SAAAC,EAAAA,IAAA,MAAA,CACEnD,GAAIA,EACJwD,SAAU,EACVC,MAAOb,EACP0B,UAAW1C,EACXwB,UAAWxB,EACXsB,SAAAC,EAAAA,IAACoB,EAAAA,WACC,CAAA3E,cAAeA,EACf4E,WAAY3E,EACZe,WAAYA,WAKlB,IAAI"}
1
+ {"version":3,"file":"IconUserAssistance-682b85a2.js","sources":["../../src/UNSAFE_UserAssistance/IconUserAssistance.tsx"],"sourcesContent":["import { useCallback, useRef } from 'preact/hooks';\n\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '#resources/nls/bundle';\nimport { HelpIcon } from '#PRIVATE_ThemedIcons/HelpIcon';\nimport { Popup } from '#UNSAFE_Popup';\nimport { HiddenAccessible } from '#UNSAFE_HiddenAccessible';\nimport { iconUserAssistanceIcon, iconUserAssistancePopup } from './themes/UserAssistanceStyles.css';\nimport { useComponentTheme } from '#hooks/UNSAFE_useComponentTheme';\nimport { classNames } from '#utils/UNSAFE_classNames';\nimport { PopupRedwoodTheme } from '#UNSAFE_Popup/themes/redwood/PopupTheme';\nimport { useToggle } from '#hooks/UNSAFE_useToggle';\nimport { InlineHelp } from './InlineHelp';\n\ntype Props = {\n /**\n * Text to provide guidance to help the user understand what data to enter.\n */\n assistiveText?: string;\n /**\n * Help source URL associated with the component.\n */\n helpSourceLink?: string;\n /**\n * Custom text to be rendered for the `helpSourceLink`. \"Learn more\" will be used if no custom text is provided.\n */\n helpSourceText?: string;\n /**\n * Whether the trigger element is in tab sequence\n */\n isTabbable?: boolean;\n /**\n * ID of the pop up content that can be used for aria-describedby\n */\n id?: string;\n /**\n * Variant of the component, either 'checkbox' or 'radio'. Used to determine the help text.\n */\n variant?: 'checkbox' | 'radio';\n};\n\n/**\n * Created to match icon user assistance spec for use with radio option, pending design review\n * of inline UA assistance.\n */\nconst IconUserAssistance = ({\n assistiveText,\n helpSourceLink,\n helpSourceText,\n isTabbable = true,\n id,\n variant = 'checkbox'\n}: Props) => {\n const { bool: isOpen, setFalse: setIsOpenFalse, toggle } = useToggle(false);\n\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const userAssistance_learnMoreStr = translations.userAssistance_learnMore();\n const sourceText = helpSourceLink && (helpSourceText || userAssistance_learnMoreStr);\n const helpForRadioString = translations.radio_helpForRadio();\n const helpForCheckboxString = translations.checkbox_helpForCheckbox();\n const helpStringId = `${id}-help-string`;\n const anchorRef = useRef<HTMLSpanElement>(null);\n\n const handleOutsideClick = useCallback(\n (event: MouseEvent) => {\n const target = event?.target;\n // We need to filter out anchor click events, because anchor is responsible for the toggling\n if (\n (target instanceof Element || target instanceof Document) &&\n !anchorRef.current?.contains(target) &&\n isOpen\n ) {\n setIsOpenFalse();\n }\n },\n [isOpen, setIsOpenFalse]\n );\n\n const handleLinkEvent = useCallback(\n (e: Event) => {\n // if it's a key event that is not \"enter\", return early\n const { key } = e as KeyboardEvent;\n if (key && key !== 'Enter') {\n return;\n }\n\n // We want to close the pop up if a link is triggered with mouse or keyboard\n const { tagName } = e.target as Element;\n\n if (tagName?.toLowerCase() === 'a') {\n setIsOpenFalse();\n\n // we want to refocus to the help icon after the browser has launched the link\n // prematurely doing so prevents keyboard events from firing\n setTimeout(() => anchorRef.current?.focus());\n }\n },\n [setIsOpenFalse]\n );\n\n const handleOnKeyDown = useCallback(\n (e: KeyboardEvent) => {\n // allow user to close popup without having to focus it\n if (['Tab', 'Escape'].includes(e.code) && isOpen) {\n setIsOpenFalse();\n }\n\n // toggle and prevent scroll jump\n if (['Space', 'Enter'].includes(e.code)) {\n e.preventDefault();\n toggle();\n }\n },\n [isOpen, setIsOpenFalse, toggle]\n );\n\n const onClickHandler = useCallback(\n (e: Event) => {\n e.preventDefault();\n toggle();\n },\n [toggle]\n );\n\n // We are referencing popup vars, so we need to bring in the baseTheme for popup\n const { baseTheme: popupBaseTheme } = useComponentTheme(PopupRedwoodTheme);\n const iconUserAssistanceClasses = classNames([popupBaseTheme, iconUserAssistancePopup]);\n\n return helpSourceLink || assistiveText ? (\n <>\n <span\n onKeyDown={handleOnKeyDown}\n onClick={onClickHandler}\n role=\"button\"\n aria-labelledby={helpStringId}\n aria-haspopup=\"dialog\"\n ref={anchorRef}\n tabIndex={isTabbable ? 0 : -1}\n class={iconUserAssistanceIcon}\n id={`${id}-help-icon`}>\n <HelpIcon />\n </span>\n <HiddenAccessible id={helpStringId} isHidden={true}>\n {variant === 'checkbox' ? helpForCheckboxString : helpForRadioString}\n </HiddenAccessible>\n <Popup\n placement=\"top\"\n isOpen={isOpen}\n anchorRef={anchorRef}\n onClose={setIsOpenFalse}\n onClickOutside={handleOutsideClick}\n shiftOptions={{ mainAxis: true, crossAxis: false }}\n maxWidth=\"296px\">\n <div\n id={id}\n tabIndex={0}\n class={iconUserAssistanceClasses}\n onMouseUp={handleLinkEvent}\n onKeyDown={handleLinkEvent}>\n <InlineHelp\n assistiveText={assistiveText}\n sourceLink={helpSourceLink}\n sourceText={sourceText}\n />\n </div>\n </Popup>\n </>\n ) : null;\n};\n\nexport { IconUserAssistance };\n"],"names":["assistiveText","helpSourceLink","helpSourceText","isTabbable","id","variant","bool","isOpen","setFalse","setIsOpenFalse","toggle","useToggle","translations","useTranslationBundle","userAssistance_learnMoreStr","userAssistance_learnMore","sourceText","helpForRadioString","radio_helpForRadio","helpForCheckboxString","checkbox_helpForCheckbox","helpStringId","anchorRef","useRef","handleOutsideClick","useCallback","event","target","Element","Document","current","contains","handleLinkEvent","e","key","tagName","toLowerCase","setTimeout","focus","handleOnKeyDown","includes","code","preventDefault","onClickHandler","baseTheme","popupBaseTheme","useComponentTheme","PopupRedwoodTheme","iconUserAssistanceClasses","classNames","iconUserAssistancePopup","_jsxs","jsxs","_Fragment","children","_jsx","onKeyDown","onClick","role","ref","tabIndex","class","iconUserAssistanceIcon","HelpIcon","HiddenAccessible","isHidden","Popup","placement","onClose","onClickOutside","shiftOptions","mainAxis","crossAxis","maxWidth","onMouseUp","InlineHelp","sourceLink"],"mappings":"8aA6C2B,EACzBA,gBACAC,iBACAC,iBACAC,cAAa,EACbC,KACAC,UAAU,eAEV,MAAQC,KAAMC,EAAQC,SAAUC,EAAcC,OAAEA,GAAWC,aAAU,GAE/DC,EAAeC,uBAAiC,4BAChDC,EAA8BF,EAAaG,2BAC3CC,EAAaf,IAAmBC,GAAkBY,GAClDG,EAAqBL,EAAaM,qBAClCC,EAAwBP,EAAaQ,2BACrCC,EAAe,GAAGjB,gBAClBkB,EAAYC,SAAwB,MAEpCC,EAAqBC,eACxBC,IACC,MAAMC,EAASD,GAAOC,QAGnBA,aAAkBC,SAAWD,aAAkBE,YAC/CP,EAAUQ,SAASC,SAASJ,IAC7BpB,GAEAE,GACD,GAEH,CAACF,EAAQE,IAGLuB,EAAkBP,eACrBQ,IAEC,MAAMC,IAAEA,GA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ACZe,WAAYA,WAKlB,IAAI"}
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact', 'preact/hooks', './Flex-71f83c12', './mergeProps-bcfa6a92', './useSingleSelection-c1bd8b03', './useCurrentKey-05038cac', './useCollectionFocusRing-734be5a1', './collectionUtils-3951928f', './useId-c9578d26', './useTranslationBundle-db326955', './HiddenAccessible-037ef42d', './Collection-121694cb', './classNames-08d99695', 'preact/compat', './useComponentTheme-5aa41a8f', './UNSAFE_Indexer/themes/redwood/IndexerTheme', './useTestId-6160e7a2', './usePan-cf3cd3b6', './keys-4755c121'], (function(e,t,s,n,r,a,o,c,i,l,u,d,y,f,x,k,b,h,m,j,g){"use strict";const v=Object.freeze({key:"__others__",label:"#"}),T="[data-oj-indexer-item]",p=k.forwardRef(((e,s)=>{const n=d.useTranslationBundle("@oracle/oraclejet-preact"),{context:r,selectedKey:a}=e,o=r.data.key===a,c=R(e,s),{classes:i}=b.useComponentTheme(h.IndexerRedwoodTheme,{focused:c.ref&&c.isFocusRingVisible?"isFocused":"notFocused",disabled:r.data.isDisabled?"isDisabled":"notDisabled",selected:o&&!r.data.isDisabled?"isSelected":"notSelected"}),l=x.classNames([i]),u=r.data.label||r.data.key,y=r.data.isDisabled?n.indexer_disabledLabel({SECTION:`${u}`}):`${u}`;return t.jsx("li",{...c,class:l,"data-oj-indexer-item":"","data-oj-valuetext":y,"data-oj-disabled":r.data.isDisabled,children:r.data.label||r.data.key})}));function R({context:e,currentKey:t,valueNow:s,isFocusRingVisible:n},r){return{...e.data.key===t&&{ref:r},key:e.data.key,"data-oj-key":e.data.key,"data-oj-key-type":typeof e.data.key,"data-oj-valuenow":s,isFocusRingVisible:!!n}}const I=k.forwardRef((({lastValueNow:e,...n},r)=>{const a={...n,ref:r};return t.jsxs(s.Fragment,{children:[t.jsx(p,{...a}),t.jsx(S,{...a,ref:r,context:{index:-1,data:v},valueNow:e})]})})),S=k.forwardRef(((e,s)=>{const{context:n,selectedKey:r}=e,a=R(e,s),o=n.data.key===r,{classes:c}=b.useComponentTheme(h.IndexerRedwoodTheme,{focused:a.ref&&a.isFocusRingVisible?"isFocused":"notFocused",selected:o?"isSelected":"notSelected"}),i=x.classNames([c]),l=v.label;return t.jsx("li",{...a,class:i,"data-oj-indexer-item":"","data-oj-valuetext":l,children:n.data.label})})),w=k.forwardRef(((e,s)=>{const n=d.useTranslationBundle("@oracle/oraclejet-preact"),{context:a,sections:o}=e,c=R(e,s),{from:i,to:l}=F(e),{classes:u,styles:{dotStyle:y}}=b.useComponentTheme(h.IndexerRedwoodTheme,{focused:c.ref&&c.isFocusRingVisible?"isFocused":"notFocused"});if(!C(a.index,i,l))return null;const f=o[i].label||o[i].key,k=o[l].label||o[l].key,m=x.classNames([u]),j=n.indexer_separatorLabel({FROM_SECTION:`${f}`,TO_SECTION:`${k}`});return t.jsx("li",{...c,class:m,"data-oj-indexer-item":"","data-oj-valuetext":j,children:t.jsx(r.Flex,{align:"center",justify:"center",children:t.jsx("div",{class:y})})})}));function F({context:e,sectionsPerTruncation:t,last:s}){const n=e.index-e.index%t+1;let r=n+t-2;return r=r>=s?s-1:r,{from:n,to:r}}function C(e,t,s){return e===Math.floor((t+s)/2)}const N=[{key:"A"},{key:"B"},{key:"C"},{key:"D"},{key:"E"},{key:"F"},{key:"G"},{key:"H"},{key:"I"},{key:"J"},{key:"K"},{key:"L"},{key:"M"},{key:"N"},{key:"O"},{key:"P"},{key:"Q"},{key:"R"},{key:"S"},{key:"T"},{key:"U"},{key:"V"},{key:"W"},{key:"X"},{key:"Y"},{key:"Z"}];const E=(e,t,s)=>e===t.current?void 0===s?null:s:l.keyExtractor(e,T),P=(e,t,s)=>{if(e.value===v.key)t({value:v.key});else{t({value:s.find((t=>t.key===e.value)).key})}},_=(e,t,s,n,r,a,o)=>{if(0===e||0===t)return;const c=e/t,i=s-1;if(c<2)r!==i&&(a(i),o(n));else if(c>s||s-c<.01)r>1&&(a(1),o(n));else{const e=A(c,i);e!==r&&e<s&&(a(e),o(n))}},A=(e,t)=>{e-=2,e/=2;const s=Math.round(t/e)+1,n=t%s,r=Math.floor(t/s)+(n>1?1:0);let a=t-(r-1)*s,o=s;for(;o>a;)o-=1,a=t-(r-1)*o;return o!=s&&(o+=1),o};function K(e){return l.isMobile()?e.indexer_touchInstructionText():e.indexer_keyboardInstructionText()}e.Indexer=function({sections:e=N,value:x,onCommit:k=()=>{},testId:v}){const R=n.useRef(null),S=n.useRef(null),A=s.createRef(),[V,O]=n.useState(e[0]?.key),[D,B]=n.useState(-1),M=n.useRef(-1),H=n.useRef(0),U=u.useId(),[$,L]=i.useCollectionFocusRing(R,["ArrowUp","ArrowDown"]),{currentKeyProps:q}=c.useCurrentKey((e=>l.keyExtractor(e,T)),!0,!1,l.getPrevNextKey(R.current,V,!0,T),l.getPrevNextKey(R.current,V,!1,T),void 0,void 0,V,(e=>O(e.value))),{selectionProps:z}=o.useSingleSelection((e=>E(e,S,V)),void 0,(t=>P(t,k,e))),Y=n.useCallback((t=>{for(const s of t)_(s.contentRect.height,H.current,e.length,e[0]?.key,D,B,O)}),[e,D]);n.useEffect((()=>{S.current&&(S.current.setAttribute("aria-valuemax",M.current+1+""),S.current.setAttribute("aria-valuetext",A.current?.dataset?.ojValuetext||""),S.current.setAttribute("aria-valuenow",A.current?.dataset?.ojValuenow||"")),M.current=-1})),n.useEffect((()=>{const t=R.current;t&&(H.current=t.querySelector("li")?.offsetHeight||0,_(t.offsetHeight,H.current,e.length,e[0]?.key,D,B,O))}),[e,D]),n.useEffect((()=>{const e=R.current;if(e){const t=new ResizeObserver((e=>{Y(e)}));return t.observe(e),()=>{t.unobserve(e)}}}),[D,Y]);const G=d.useTranslationBundle("@oracle/oraclejet-preact"),{styles:{baseStyle:J,innerStyle:Q}}=b.useComponentTheme(h.IndexerRedwoodTheme),W=m.useTestId(v),X=n.useCallback((({y:t,status:s})=>{if("move"!==s&&"start"!==s)return;if(!S.current)return;const n=S.current.getBoundingClientRect(),r=t-n.top,a=Array.from(S.current.querySelectorAll("li"));if(0===a.length)return;let o=0,c=Number.POSITIVE_INFINITY;a.forEach(((e,t)=>{const s=e.getBoundingClientRect(),a=s.top+s.height/2-n.top,i=Math.abs(a-r);i<c&&(c=i,o=t)}));const i=a[o].getAttribute("data-oj-key");g.isKeyDefined(i)&&V!==i&&(O(i),P({value:i},k,e))}),[S,O,k,V,e]),{panProps:Z}=j.usePan(X,{threshold:2,minimumTime:0,isDisabled:!1});return t.jsxs("div",{ref:R,class:J,...W,children:[t.jsx(r.Flex,{align:"center",width:"6x",height:"100%",children:t.jsx("ul",{...a.mergeProps(q,L,z,Z),ref:S,tabIndex:0,"aria-label":"Indexer","aria-orientation":"vertical","aria-valuemin":0,"aria-describedby":U,role:"slider",class:Q,children:t.jsx(f.Collection,{items:e,children:s=>{const n=e.length-1;M.current+=1;const r={context:s,ref:A,currentKey:V,selectedKey:x,valueNow:M.current,isFocusRingVisible:!!$};if(s.index===n)return t.jsx(I,{...r,lastValueNow:M.current+1});if(D<=1||s.index%D==0)return t.jsx(p,{...r});const a={...r,sectionsPerTruncation:D,last:n,sections:e};return function(e){const{from:t,to:s}=F(e);return C(e.context.index,t,s)}(a)?t.jsx(w,{...a}):(M.current-=1,null)}})})}),t.jsx(y.HiddenAccessible,{children:t.jsx("span",{id:U,children:K(G)})})]})},e.SECTION_OTHERS=v}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact', 'preact/hooks', './Flex-4b81b412', './mergeProps-bcfa6a92', './useSingleSelection-c1bd8b03', './useCurrentKey-5749e7fb', './useCollectionFocusRing-734be5a1', './collectionUtils-3951928f', './useId-c9578d26', './useTranslationBundle-e4dd341e', './HiddenAccessible-037ef42d', './Collection-121694cb', './classNames-08d99695', 'preact/compat', './useComponentTheme-5aa41a8f', './UNSAFE_Indexer/themes/redwood/IndexerTheme', './useTestId-f4240cbd', './usePan-cf3cd3b6', './keys-4755c121'], (function(e,t,s,n,r,a,o,c,i,l,u,d,f,y,x,b,k,h,m,j,g){"use strict";const v=Object.freeze({key:"__others__",label:"#"}),T="[data-oj-indexer-item]",p=b.forwardRef(((e,s)=>{const n=d.useTranslationBundle("@oracle/oraclejet-preact"),{context:r,selectedKey:a}=e,o=r.data.key===a,c=R(e,s),{classes:i}=k.useComponentTheme(h.IndexerRedwoodTheme,{focused:c.ref&&c.isFocusRingVisible?"isFocused":"notFocused",disabled:r.data.isDisabled?"isDisabled":"notDisabled",selected:o&&!r.data.isDisabled?"isSelected":"notSelected"}),l=x.classNames([i]),u=r.data.label||r.data.key,f=r.data.isDisabled?n.indexer_disabledLabel({SECTION:`${u}`}):`${u}`;return t.jsx("li",{...c,class:l,"data-oj-indexer-item":"","data-oj-valuetext":f,"data-oj-disabled":r.data.isDisabled,children:r.data.label||r.data.key})}));function R({context:e,currentKey:t,valueNow:s,isFocusRingVisible:n},r){return{...e.data.key===t&&{ref:r},key:e.data.key,"data-oj-key":e.data.key,"data-oj-key-type":typeof e.data.key,"data-oj-valuenow":s,isFocusRingVisible:!!n}}const I=b.forwardRef((({lastValueNow:e,...n},r)=>{const a={...n,ref:r};return t.jsxs(s.Fragment,{children:[t.jsx(p,{...a}),t.jsx(S,{...a,ref:r,context:{index:-1,data:v},valueNow:e})]})})),S=b.forwardRef(((e,s)=>{const{context:n,selectedKey:r}=e,a=R(e,s),o=n.data.key===r,{classes:c}=k.useComponentTheme(h.IndexerRedwoodTheme,{focused:a.ref&&a.isFocusRingVisible?"isFocused":"notFocused",selected:o?"isSelected":"notSelected"}),i=x.classNames([c]),l=v.label;return t.jsx("li",{...a,class:i,"data-oj-indexer-item":"","data-oj-valuetext":l,children:n.data.label})})),w=b.forwardRef(((e,s)=>{const n=d.useTranslationBundle("@oracle/oraclejet-preact"),{context:a,sections:o}=e,c=R(e,s),{from:i,to:l}=F(e),{classes:u,styles:{dotStyle:f}}=k.useComponentTheme(h.IndexerRedwoodTheme,{focused:c.ref&&c.isFocusRingVisible?"isFocused":"notFocused"});if(!C(a.index,i,l))return null;const y=o[i].label||o[i].key,b=o[l].label||o[l].key,m=x.classNames([u]),j=n.indexer_separatorLabel({FROM_SECTION:`${y}`,TO_SECTION:`${b}`});return t.jsx("li",{...c,class:m,"data-oj-indexer-item":"","data-oj-valuetext":j,children:t.jsx(r.Flex,{align:"center",justify:"center",children:t.jsx("div",{class:f})})})}));function F({context:e,sectionsPerTruncation:t,last:s}){const n=e.index-e.index%t+1;let r=n+t-2;return r=r>=s?s-1:r,{from:n,to:r}}function C(e,t,s){return e===Math.floor((t+s)/2)}const N=[{key:"A"},{key:"B"},{key:"C"},{key:"D"},{key:"E"},{key:"F"},{key:"G"},{key:"H"},{key:"I"},{key:"J"},{key:"K"},{key:"L"},{key:"M"},{key:"N"},{key:"O"},{key:"P"},{key:"Q"},{key:"R"},{key:"S"},{key:"T"},{key:"U"},{key:"V"},{key:"W"},{key:"X"},{key:"Y"},{key:"Z"}];const E=(e,t,s)=>e===t.current?void 0===s?null:s:l.keyExtractor(e,T),P=(e,t,s)=>{if(e.value===v.key)t({value:v.key});else{t({value:s.find((t=>t.key===e.value)).key})}},_=(e,t,s,n,r,a,o)=>{if(0===e||0===t)return;const c=e/t,i=s-1;if(c<2)r!==i&&(a(i),o(n));else if(c>s||s-c<.01)r>1&&(a(1),o(n));else{const e=A(c,i);e!==r&&e<s&&(a(e),o(n))}},A=(e,t)=>{e-=2,e/=2;const s=Math.round(t/e)+1,n=t%s,r=Math.floor(t/s)+(n>1?1:0);let a=t-(r-1)*s,o=s;for(;o>a;)o-=1,a=t-(r-1)*o;return o!=s&&(o+=1),o};function K(e){return l.isMobile()?e.indexer_touchInstructionText():e.indexer_keyboardInstructionText()}e.Indexer=function({sections:e=N,value:x,onCommit:b=()=>{},testId:v}){const R=n.useRef(null),S=n.useRef(null),A=s.createRef(),[V,O]=n.useState(e[0]?.key),[D,B]=n.useState(-1),M=n.useRef(-1),H=n.useRef(0),U=u.useId(),[$,L]=i.useCollectionFocusRing(R,["ArrowUp","ArrowDown"]),{currentKeyProps:q}=c.useCurrentKey((e=>l.keyExtractor(e,T)),!0,!1,l.getPrevNextKey(R.current,V,!0,T),l.getPrevNextKey(R.current,V,!1,T),void 0,void 0,V,(e=>O(e.value))),{selectionProps:z}=o.useSingleSelection((e=>E(e,S,V)),void 0,(t=>P(t,b,e))),Y=n.useCallback((t=>{for(const s of t)_(s.contentRect.height,H.current,e.length,e[0]?.key,D,B,O)}),[e,D]);n.useEffect((()=>{S.current&&(S.current.setAttribute("aria-valuemax",M.current+1+""),S.current.setAttribute("aria-valuetext",A.current?.dataset?.ojValuetext||""),S.current.setAttribute("aria-valuenow",A.current?.dataset?.ojValuenow||"")),M.current=-1})),n.useEffect((()=>{const t=R.current;t&&(H.current=t.querySelector("li")?.offsetHeight||0,_(t.offsetHeight,H.current,e.length,e[0]?.key,D,B,O))}),[e,D]),n.useEffect((()=>{const e=R.current;if(e){const t=new ResizeObserver((e=>{Y(e)}));return t.observe(e),()=>{t.unobserve(e)}}}),[D,Y]);const G=d.useTranslationBundle("@oracle/oraclejet-preact"),{styles:{baseStyle:J,innerStyle:Q}}=k.useComponentTheme(h.IndexerRedwoodTheme),W=m.useTestId(v),X=n.useCallback((({y:t,status:s})=>{if("move"!==s&&"start"!==s)return;if(!S.current)return;const n=S.current.getBoundingClientRect(),r=t-n.top,a=Array.from(S.current.querySelectorAll("li"));if(0===a.length)return;let o=0,c=Number.POSITIVE_INFINITY;a.forEach(((e,t)=>{const s=e.getBoundingClientRect(),a=s.top+s.height/2-n.top,i=Math.abs(a-r);i<c&&(c=i,o=t)}));const i=a[o].getAttribute("data-oj-key");g.isKeyDefined(i)&&V!==i&&(O(i),P({value:i},b,e))}),[S,O,b,V,e]),{panProps:Z}=j.usePan(X,{threshold:2,minimumTime:0,isDisabled:!1});return t.jsxs("div",{ref:R,class:J,...W,children:[t.jsx(r.Flex,{align:"center",width:"6x",height:"100%",children:t.jsx("ul",{...a.mergeProps(q,L,z,Z),ref:S,tabIndex:0,"aria-label":"Indexer","aria-orientation":"vertical","aria-valuemin":0,"aria-describedby":U,role:"slider",class:Q,children:t.jsx(y.Collection,{items:e,children:s=>{const n=e.length-1;M.current+=1;const r={context:s,ref:A,currentKey:V,selectedKey:x,valueNow:M.current,isFocusRingVisible:!!$};if(s.index===n)return t.jsx(I,{...r,lastValueNow:M.current+1});if(D<=1||s.index%D==0)return t.jsx(p,{...r});const a={...r,sectionsPerTruncation:D,last:n,sections:e};return function(e){const{from:t,to:s}=F(e);return C(e.context.index,t,s)}(a)?t.jsx(w,{...a}):(M.current-=1,null)}})})}),t.jsx(f.HiddenAccessible,{children:t.jsx("span",{id:U,children:K(G)})})]})},e.SECTION_OTHERS=v}));
2
2
  //# sourceMappingURL=Indexer-27340b0e.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './classNames-08d99695', './useComponentTheme-5aa41a8f', './TabbableModeContext-a9c97640', './useTabbableMode-0a9ef009', './useTranslationBundle-db326955', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceTheme'], (function(e,s,a,n,r,t,o,l){"use strict";e.InlineHelpSource=({children:e,source:r})=>{const c=o.useTranslationBundle("@oracle/oraclejet-preact").userAssistance_learnMore(),b=e||c,{isTabbable:u,tabbableModeProps:d}=t.useTabbableMode(),{classes:i,styles:m}=n.useComponentTheme(l.UserAssistanceRedwoodTheme);return s.jsx("a",{class:a.classNames([i,m.helpSourceStyles]),target:"_blank",href:r,...!u&&d,children:b})}}));
1
+ define(['exports', 'preact/jsx-runtime', './classNames-08d99695', './useComponentTheme-5aa41a8f', './TabbableModeContext-a9c97640', './useTabbableMode-0a9ef009', './useTranslationBundle-e4dd341e', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceTheme'], (function(e,s,a,n,r,t,o,l){"use strict";e.InlineHelpSource=({children:e,source:r})=>{const c=o.useTranslationBundle("@oracle/oraclejet-preact").userAssistance_learnMore(),b=e||c,{isTabbable:d,tabbableModeProps:u}=t.useTabbableMode(),{classes:i,styles:m}=n.useComponentTheme(l.UserAssistanceRedwoodTheme);return s.jsx("a",{class:a.classNames([i,m.helpSourceStyles]),target:"_blank",href:r,...!d&&u,children:b})}}));
2
2
  //# sourceMappingURL=InlineHelpSource-8d8b6a8b.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact/compat', 'preact/hooks', './Flex-71f83c12', './Label-286bacb8', './useDisplayValue-a15b1a34', './Separator-181f7541', './logger-0f873e29', './TabbableModeContext-a9c97640', './LayerHost-1a734852', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', './InlineUserAssistance-91f9ace1', 'css!./MessageBannerStyles.styles.css', 'module', './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css', 'preact', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-0761844d', 'css!./IconStyle.styles.css', './IconButton-d78fe636', 'css!./MessageStyles.styles.css', './MessageFormattingUtils-ea0be23e', './TransitionGroup-3b9d81b6', './MessagesContext-602a69a2', 'css!./HiddenAccessibleStyles.styles.css', 'css!./ComponentMessageStyles.styles.css', 'module', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageVariants.css', './FormFieldContext-a024b891', './Popup-575d49f7', 'css!./LabelStyles.styles.css', 'module', './UNSAFE_Label/themes/redwood/LabelVariants.css', './InputGroupContext-372087af', 'module', './UNSAFE_Popup/themes/redwood/PopupVariants.css', './View-215ec211', './FormContext-6b0879a0', './useFormContext-b8cbbb21', './useLoadingIndicatorTimer-20a3bf5f', './useTextField-3ab0a23b', './useTranslationBundle-db326955', './keyboardUtils-fb6219eb', './tabbableUtils-f95361a6', './unsafeDomAccess-602c5dde', './useSelectCommon-be138f8d'], (function(e,s,t,n,o,a,r,i,l,c,d,u,p,b,h,S,m,y,x,C,g,F,f,v,w,A,T,U,E,L,k,I,K,B,R,P,M,_,j,V,N,D,O,z,Y,$,G,H,W,q,Z){"use strict";const J={isTabbable:!1};const Q=t.forwardRef((function(e,t){const{data:l,itemRenderer:d,itemText:u,label:p,onLoadRange:b,testId:S,userAssistancePosition:m="belowList"}=e,{collectionRendererContext:y,formFieldContext:x,hasUserAssistance:C,isEmptyResults:g,isUserFiltering:F,labelProps:f,listContainerProps:v,selectSingleFieldProps:w,selectFieldInputProps:A,userAssistanceProps:T}=function({"aria-describedby":e,assistiveText:s,data:t,hasBackIcon:o="never",hasClearIcon:a="never",helpSourceLink:i,helpSourceText:l,isLoading:c,itemText:d,label:u,onBackIconAction:p,onCommit:b,onFilter:h,placeholder:S,textAlign:m,valueItem:y,virtualKeyboard:x},C){const g=n.useRef(null),{textAlign:F}=z.useFormContext(),f=m??F??"start",v=null!=t&&!Z.isBeforeDataFetch(t),w=v&&0===t?.totalSize,A=n.useRef(t),T=n.useRef(y),U=n.useRef(!0),[E,L]=n.useState(void 0===y?void 0:new Set([y.key])),k=Y.useLoadingIndicatorTimer(c??!1),I=r.useDisplayValue(d,y,"InlineSelectSingle");n.useImperativeHandle(C,(()=>({focus:()=>g.current?.focus(),blur:()=>g.current?.blur(),[q.UNSAFE_DOM_ACCESS]:g.current})),[]);const{currentRowKeyRef:K,currentRowOverride:B,dropdownRef:R,isFocused:P,isUserFiltering:M,onCurrentKeyChange:_,searchText:j,setCurrentRowOverride:V,stopFiltering:N,updateFiltering:D,userInput:O}=Z.useSelectCommon({data:t,inputRef:g,isFocused:!0,onFilter:h}),{baseId:J,formFieldContext:Q,inputProps:X,labelProps:ee,userAssistanceProps:se}=$.useTextField({ariaDescribedBy:e,helpSourceLink:i,helpSourceText:l,isFocused:P,isLoading:k,value:void 0!==y||void 0}),te=`${J}-list`;Q.hasValue=c||Q.hasValue;const ne=G.useTranslationBundle("@oracle/oraclejet-preact"),oe=v?0===t?.totalSize?ne.select_noMatchesFound():1===t?.totalSize?ne.select_oneMatchFound():"exact"===t?.sizePrecision?ne.select_sizeMatchesFound({TOTAL_SIZE:`${t?.totalSize}`}):ne.select_sizeOrMoreMatchesFound({TOTAL_SIZE:`${t?.totalSize}`}):"";T.current!==y&&(T.current=y,L(void 0===y?void 0:new Set([y.key]))),A.current!==t&&(A.current=t,M&&null!=t&&0===t.offset&&t.data.length>0&&V({rowKey:Z.isSearchTextEmptyOrUndefined(j)?void 0:t.data[0].metadata.key})),U.current&&(U.current=!1,V({rowKey:[...E??[void 0]][0]}));const ae=n.useCallback(((e,s)=>{b?.({value:e,previousValue:void 0!==y?y.key:void 0,reason:s.reason})}),[b,y]),re=n.useCallback((e=>{L(new Set),ae(void 0,e)}),[ae]),ie=n.useCallback((()=>M&&""===O&&void 0!==y),[M,O,y]),le=n.useCallback((e=>{N();const s=e.context.key;L(new Set([s])),ae(s,{reason:"itemAction"})}),[ae,N]),ce=n.useCallback((({value:e})=>{D(e),h?.({searchText:e})}),[h,D]),de=n.useCallback((e=>{if(!H.isControlOrFunctionKey(e))switch(e.code){case H.KEYS.UP:case H.KEYS.DOWN:e.preventDefault();break;case H.KEYS.ENTER:case H.KEYS.TAB:{if(Z.isPhone())return;const s={reason:e.code===H.KEYS.TAB?"tabKey":"itemAction"};if(ie())return void re(s);if(null==t||0===t.data.length)return;if(N(),void 0!==K.current&&null!=t&&t.data.length>0)return L(new Set([K.current])),void ae(K.current,s);ae(y?.key??void 0,s);break}}}),[re,K,t,ie,ae,N,y]),ue=n.useCallback((e=>{if(!H.isControlOrFunctionKey(e))switch(e.code){case H.KEYS.UP:case H.KEYS.DOWN:if(null!=t&&R.current){const e=W.allTabbableElements(R.current,void 0,!0)[0];e?.focus(),void 0===B.rowKey&&V({rowKey:t.data[0]?.metadata?.key})}e.preventDefault()}}),[B,t,R,V]),pe=n.useCallback((e=>{e.code===H.KEYS.TAB&&void 0!==K.current&&null!=t&&t.data.length>0&&(L(new Set([K.current])),ae(K.current,{reason:"tabKey"}))}),[K,t,ae]),be=n.useCallback((()=>{N(),re({reason:"itemAction"}),g.current?.focus(),h?.({searchText:void 0})}),[re,h,N]),he=Z.useCollectionRenderer({currentKey:B.rowKey,searchText:j,selectedKeys:E,onCurrentKeyChange:_,onItemAction:le});return n.useEffect((()=>{const e=R.current?.querySelector('div[role="listbox"][tabindex="0"]');e?.setAttribute("tabindex","-1")})),{collectionRendererContext:he,formFieldContext:Q,hasUserAssistance:Boolean(s||i),isEmptyResults:w,isUserFiltering:M,labelProps:{...ee,children:u},listContainerProps:{id:te,dropdownListRef:R,onKeyDown:pe},selectSingleFieldProps:{contentVariant:"input",hasInsideLabel:!0,isBackButtonShown:"always"===o,isClearButtonShown:"conditionally"===a&&void 0!==y,onBackButtonClick:p,onClearButtonClick:be,styleVariant:"embedded"},selectFieldInputProps:{...X,"aria-controls":te,"aria-expanded":!0,displayValue:I,hasEmptyLabel:!1,hasInsideLabel:!0,inputRef:g,isAddToListShown:!1,isAdvancedSearchShown:!1,isRequired:!1,isUserFiltering:M,liveRegionText:oe,onInput:ce,onKeyDown:de,onKeyUp:ue,placeholder:S,textAlign:f,userInput:O,variant:"embedded",virtualKeyboard:x},userAssistanceProps:{...se,assistiveText:s,fieldLabel:u,helpSourceLink:i,helpSourceText:l}}}(e,t),U=n.useCallback((({onPersistCurrentRowKey:e,onRowAction:t,selected:n,searchText:o,currentRowKeyOverride:a})=>s.jsx(Z.DefaultList,{"aria-label":p,componentName:"InlineSelectSingle",currentItemVariant:"highlight",currentKey:a,data:l,itemRenderer:d,itemText:u,onCurrentKeyChange:e,onItemAction:t,onLoadRange:b,searchText:F?o:void 0,selectedKeys:n,selectionMode:"single"})),[l,F,d,u,p,b]),E=s.jsx(D.View,{minWidth:"100%",padding:"2x",children:s.jsx(h.InlineUserAssistance,{testId:S&&`${S}_userAssistance`,...T})});return s.jsx(o.Flex,{direction:"column",gap:"2x",maxHeight:"100%",width:"100%",children:s.jsxs(B.FormFieldContext.Provider,{value:x,children:[s.jsxs(D.View,{flex:0,children:[s.jsx(r.SelectSingleField,{...w,label:s.jsx(a.Label,{...f}),testId:S&&`${S}_selectSingleField`,children:s.jsx(r.SelectSingleFieldInput,{...A})}),"aboveList"===m&&s.jsx(i.Separator,{}),"aboveList"===m&&C&&s.jsxs(s.Fragment,{children:[E,s.jsx(i.Separator,{})]})]}),"aboveList"!==m&&s.jsx(i.Separator,{}),s.jsx(Z.DropdownList,{...v,hasBottomGap:"aboveList"===m,hasTopGap:!1,children:s.jsx(c.TabbableModeContext.Provider,{value:J,children:g?s.jsx(Z.EmptyResults,{}):U(y)})}),"belowList"===m&&C&&s.jsxs("div",{children:[s.jsx(i.Separator,{}),E]})]})})}));e.InlineSelectSingle=Q}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact/compat', 'preact/hooks', './Flex-4b81b412', './Label-286bacb8', './useDisplayValue-a15b1a34', './Separator-181f7541', './logger-0f873e29', './TabbableModeContext-a9c97640', './LayerHost-0b288129', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', './InlineUserAssistance-91f9ace1', 'css!./MessageBannerStyles.styles.css', 'module', './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css', 'preact', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-66f3844a', 'css!./IconStyle.styles.css', './IconButton-d78fe636', 'css!./MessageStyles.styles.css', './MessageFormattingUtils-ea0be23e', './TransitionGroup-3b9d81b6', './MessagesContext-602a69a2', 'css!./HiddenAccessibleStyles.styles.css', 'css!./ComponentMessageStyles.styles.css', 'module', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageVariants.css', './FormFieldContext-a024b891', './Popup-feb5bf60', 'css!./LabelStyles.styles.css', 'module', './UNSAFE_Label/themes/redwood/LabelVariants.css', './InputGroupContext-372087af', 'module', './UNSAFE_Popup/themes/redwood/PopupVariants.css', './View-35699bb2', './FormContext-6b0879a0', './useFormContext-b8cbbb21', './useLoadingIndicatorTimer-20a3bf5f', './useTextField-3ab0a23b', './useTranslationBundle-e4dd341e', './keyboardUtils-fb6219eb', './tabbableUtils-f95361a6', './unsafeDomAccess-602c5dde', './useSelectCommon-be138f8d'], (function(e,s,t,n,o,a,r,i,l,c,d,u,b,p,h,S,m,y,x,C,f,g,F,v,w,A,T,U,E,L,k,I,K,B,R,P,M,_,j,V,N,D,O,z,Y,$,G,H,W,q,Z){"use strict";const J={isTabbable:!1};const Q=t.forwardRef((function(e,t){const{data:l,itemRenderer:d,itemText:u,label:b,onLoadRange:p,testId:S,userAssistancePosition:m="belowList"}=e,{collectionRendererContext:y,formFieldContext:x,hasUserAssistance:C,isEmptyResults:f,isUserFiltering:g,labelProps:F,listContainerProps:v,selectSingleFieldProps:w,selectFieldInputProps:A,userAssistanceProps:T}=function({"aria-describedby":e,assistiveText:s,data:t,hasBackIcon:o="never",hasClearIcon:a="never",helpSourceLink:i,helpSourceText:l,isLoading:c,itemText:d,label:u,onBackIconAction:b,onCommit:p,onFilter:h,placeholder:S,textAlign:m,valueItem:y,virtualKeyboard:x},C){const f=n.useRef(null),{textAlign:g}=z.useFormContext(),F=m??g??"start",v=null!=t&&!Z.isBeforeDataFetch(t),w=v&&0===t?.totalSize,A=n.useRef(t),T=n.useRef(y),U=n.useRef(!0),[E,L]=n.useState(void 0===y?void 0:new Set([y.key])),k=Y.useLoadingIndicatorTimer(c??!1),I=r.useDisplayValue(d,y,"InlineSelectSingle");n.useImperativeHandle(C,(()=>({focus:()=>f.current?.focus(),blur:()=>f.current?.blur(),[q.UNSAFE_DOM_ACCESS]:f.current})),[]);const{currentRowKeyRef:K,currentRowOverride:B,dropdownRef:R,isFocused:P,isUserFiltering:M,onCurrentKeyChange:_,searchText:j,setCurrentRowOverride:V,stopFiltering:N,updateFiltering:D,userInput:O}=Z.useSelectCommon({data:t,inputRef:f,isFocused:!0,onFilter:h}),{baseId:J,formFieldContext:Q,inputProps:X,labelProps:ee,userAssistanceProps:se}=$.useTextField({ariaDescribedBy:e,helpSourceLink:i,helpSourceText:l,isFocused:P,isLoading:k,value:void 0!==y||void 0}),te=`${J}-list`;Q.hasValue=c||Q.hasValue;const ne=G.useTranslationBundle("@oracle/oraclejet-preact"),oe=v?0===t?.totalSize?ne.select_noMatchesFound():1===t?.totalSize?ne.select_oneMatchFound():"exact"===t?.sizePrecision?ne.select_sizeMatchesFound({TOTAL_SIZE:`${t?.totalSize}`}):ne.select_sizeOrMoreMatchesFound({TOTAL_SIZE:`${t?.totalSize}`}):"";T.current!==y&&(T.current=y,L(void 0===y?void 0:new Set([y.key]))),A.current!==t&&(A.current=t,M&&null!=t&&0===t.offset&&t.data.length>0&&V({rowKey:Z.isSearchTextEmptyOrUndefined(j)?void 0:t.data[0].metadata.key})),U.current&&(U.current=!1,V({rowKey:[...E??[void 0]][0]}));const ae=n.useCallback(((e,s)=>{p?.({value:e,previousValue:void 0!==y?y.key:void 0,reason:s.reason})}),[p,y]),re=n.useCallback((e=>{L(new Set),ae(void 0,e)}),[ae]),ie=n.useCallback((()=>M&&""===O&&void 0!==y),[M,O,y]),le=n.useCallback((e=>{N();const s=e.context.key;L(new Set([s])),ae(s,{reason:"itemAction"})}),[ae,N]),ce=n.useCallback((({value:e})=>{D(e),h?.({searchText:e})}),[h,D]),de=n.useCallback((e=>{if(!H.isControlOrFunctionKey(e))switch(e.code){case H.KEYS.UP:case H.KEYS.DOWN:e.preventDefault();break;case H.KEYS.ENTER:case H.KEYS.TAB:{if(Z.isPhone())return;const s={reason:e.code===H.KEYS.TAB?"tabKey":"itemAction"};if(ie())return void re(s);if(null==t||0===t.data.length)return;if(N(),void 0!==K.current&&null!=t&&t.data.length>0)return L(new Set([K.current])),void ae(K.current,s);ae(y?.key??void 0,s);break}}}),[re,K,t,ie,ae,N,y]),ue=n.useCallback((e=>{if(!H.isControlOrFunctionKey(e))switch(e.code){case H.KEYS.UP:case H.KEYS.DOWN:if(null!=t&&R.current){const e=W.allTabbableElements(R.current,void 0,!0)[0];e?.focus(),void 0===B.rowKey&&V({rowKey:t.data[0]?.metadata?.key})}e.preventDefault()}}),[B,t,R,V]),be=n.useCallback((e=>{e.code===H.KEYS.TAB&&void 0!==K.current&&null!=t&&t.data.length>0&&(L(new Set([K.current])),ae(K.current,{reason:"tabKey"}))}),[K,t,ae]),pe=n.useCallback((()=>{N(),re({reason:"itemAction"}),f.current?.focus(),h?.({searchText:void 0})}),[re,h,N]),he=Z.useCollectionRenderer({currentKey:B.rowKey,searchText:j,selectedKeys:E,onCurrentKeyChange:_,onItemAction:le});return n.useEffect((()=>{const e=R.current?.querySelector('div[role="listbox"][tabindex="0"]');e?.setAttribute("tabindex","-1")})),{collectionRendererContext:he,formFieldContext:Q,hasUserAssistance:Boolean(s||i),isEmptyResults:w,isUserFiltering:M,labelProps:{...ee,children:u},listContainerProps:{id:te,dropdownListRef:R,onKeyDown:be},selectSingleFieldProps:{contentVariant:"input",hasInsideLabel:!0,isBackButtonShown:"always"===o,isClearButtonShown:"conditionally"===a&&void 0!==y,onBackButtonClick:b,onClearButtonClick:pe,styleVariant:"embedded"},selectFieldInputProps:{...X,"aria-controls":te,"aria-expanded":!0,displayValue:I,hasEmptyLabel:!1,hasInsideLabel:!0,inputRef:f,isAddToListShown:!1,isAdvancedSearchShown:!1,isRequired:!1,isUserFiltering:M,liveRegionText:oe,onInput:ce,onKeyDown:de,onKeyUp:ue,placeholder:S,textAlign:F,userInput:O,variant:"embedded",virtualKeyboard:x},userAssistanceProps:{...se,assistiveText:s,fieldLabel:u,helpSourceLink:i,helpSourceText:l}}}(e,t),U=n.useCallback((({onPersistCurrentRowKey:e,onRowAction:t,selected:n,searchText:o,currentRowKeyOverride:a})=>s.jsx(Z.DefaultList,{"aria-label":b,componentName:"InlineSelectSingle",currentItemVariant:"highlight",currentKey:a,data:l,itemRenderer:d,itemText:u,onCurrentKeyChange:e,onItemAction:t,onLoadRange:p,searchText:g?o:void 0,selectedKeys:n,selectionMode:"single"})),[l,g,d,u,b,p]),E=s.jsx(D.View,{minWidth:"100%",padding:"2x",children:s.jsx(h.InlineUserAssistance,{testId:S&&`${S}_userAssistance`,...T})});return s.jsx(o.Flex,{direction:"column",gap:"2x",maxHeight:"100%",width:"100%",children:s.jsxs(B.FormFieldContext.Provider,{value:x,children:[s.jsxs(D.View,{flex:0,children:[s.jsx(r.SelectSingleField,{...w,label:s.jsx(a.Label,{...F}),testId:S&&`${S}_selectSingleField`,children:s.jsx(r.SelectSingleFieldInput,{...A})}),"aboveList"===m&&s.jsx(i.Separator,{}),"aboveList"===m&&C&&s.jsxs(s.Fragment,{children:[E,s.jsx(i.Separator,{})]})]}),"aboveList"!==m&&s.jsx(i.Separator,{}),s.jsx(Z.DropdownList,{...v,hasBottomGap:"aboveList"===m,hasTopGap:!1,children:s.jsx(c.TabbableModeContext.Provider,{value:J,children:f?s.jsx(Z.EmptyResults,{}):U(y)})}),"belowList"===m&&C&&s.jsxs("div",{children:[s.jsx(i.Separator,{}),E]})]})})}));e.InlineSelectSingle=Q}));
2
2
  //# sourceMappingURL=InlineSelectSingle-4e6a631c.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './logger-0f873e29', 'preact/hooks', './Flex-71f83c12', 'css!./MessageBannerStyles.styles.css', 'module', './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css', 'preact', './LayerHost-1a734852', 'preact/compat', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-0761844d', 'css!./IconStyle.styles.css', './IconButton-d78fe636', 'css!./MessageStyles.styles.css', './MessageFormattingUtils-ea0be23e', './TransitionGroup-3b9d81b6', './MessagesContext-602a69a2', 'css!./HiddenAccessibleStyles.styles.css', 'css!./ComponentMessageStyles.styles.css', 'module', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageVariants.css', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', './ComponentMessageContainer-d5d70f71', './FormContext-6b0879a0', './useFormContext-b8cbbb21', './FormFieldContext-a024b891', './useFormFieldContext-9260f081', './InlineHelp-e872c36b', './useTranslationBundle-db326955', './useComponentTheme-5aa41a8f', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceTheme', './classNames-08d99695', './InputGroupContext-372087af', './useInputGroupContext-e6e19f4f', './useTestId-6160e7a2'], (function(e,s,t,n,o,a,i,r,l,c,d,u,m,h,p,C,g,A,y,T,x,U,f,F,S,w,I,M,b,B,N,_,E,j,v,k,H,L,R,q,G){"use strict";function V({align:e="end",hasHelp:t=!1,hasMessages:n=!1}){const{classes:o}=k.useComponentTheme(H.UserAssistanceRedwoodTheme,{align:e,visible:t||n?"hide":"show"}),a=v.useTranslationBundle("@oracle/oraclejet-preact").userAssistance_required();return s.jsx("div",{class:o,children:a})}function D({variant:e="reflow",children:t,id:n,testId:o}){const{classes:a,styles:{inlineContainerBaseStyles:i}}=k.useComponentTheme(H.UserAssistanceRedwoodTheme,{container:e}),r=G.useTestId(o);if(null!==q.useInputGroupContext())return null;return s.jsx("div",{class:L.classNames([a,i]),id:n,...r,children:t})}e.InlineRequired=V,e.InlineUserAssistance=function({assistiveText:e,fieldLabel:t,helpSourceLink:n,helpSourceText:o,id:a,isRequiredShown:i,requiredAlignment:r,messages:l=[],showInlineAssistanceOn:c="focus",userAssistanceDensity:d,testId:u}){const{isReadonly:m}=N.useFormContext(),h="efficient"===d&&!1===m,{isFocused:p}=E.useFormFieldContext(),C=l.length>0?s.jsx(b.ComponentMessageContainer,{fieldLabel:t,messages:l}):!e&&!n||"always"!==c&&!p?i?s.jsx(V,{align:r}):null:s.jsx(j.InlineHelp,{assistiveText:e,sourceLink:n,sourceText:o});return C||h?s.jsx(D,{id:a,variant:d,testId:u,children:C}):null},e.InlineUserAssistanceContainer=D}));
1
+ define(['exports', 'preact/jsx-runtime', './logger-0f873e29', 'preact/hooks', './Flex-4b81b412', 'css!./MessageBannerStyles.styles.css', 'module', './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css', 'preact', './LayerHost-0b288129', 'preact/compat', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-66f3844a', 'css!./IconStyle.styles.css', './IconButton-d78fe636', 'css!./MessageStyles.styles.css', './MessageFormattingUtils-ea0be23e', './TransitionGroup-3b9d81b6', './MessagesContext-602a69a2', 'css!./HiddenAccessibleStyles.styles.css', 'css!./ComponentMessageStyles.styles.css', 'module', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageVariants.css', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', './ComponentMessageContainer-d5d70f71', './FormContext-6b0879a0', './useFormContext-b8cbbb21', './FormFieldContext-a024b891', './useFormFieldContext-9260f081', './InlineHelp-e872c36b', './useTranslationBundle-e4dd341e', './useComponentTheme-5aa41a8f', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceTheme', './classNames-08d99695', './InputGroupContext-372087af', './useInputGroupContext-e6e19f4f', './useTestId-f4240cbd'], (function(e,s,t,n,o,a,i,r,l,c,d,u,m,h,p,C,g,A,y,T,x,f,U,F,S,b,w,I,M,B,N,_,E,j,v,k,H,L,R,q,G){"use strict";function V({align:e="end",hasHelp:t=!1,hasMessages:n=!1}){const{classes:o}=k.useComponentTheme(H.UserAssistanceRedwoodTheme,{align:e,visible:t||n?"hide":"show"}),a=v.useTranslationBundle("@oracle/oraclejet-preact").userAssistance_required();return s.jsx("div",{class:o,children:a})}function D({variant:e="reflow",children:t,id:n,testId:o}){const{classes:a,styles:{inlineContainerBaseStyles:i}}=k.useComponentTheme(H.UserAssistanceRedwoodTheme,{container:e}),r=G.useTestId(o);if(null!==q.useInputGroupContext())return null;return s.jsx("div",{class:L.classNames([a,i]),id:n,...r,children:t})}e.InlineRequired=V,e.InlineUserAssistance=function({assistiveText:e,fieldLabel:t,helpSourceLink:n,helpSourceText:o,id:a,isRequiredShown:i,requiredAlignment:r,messages:l=[],showInlineAssistanceOn:c="focus",userAssistanceDensity:d,testId:u}){const{isReadonly:m}=N.useFormContext(),h="efficient"===d&&!1===m,{isFocused:p}=E.useFormFieldContext(),C=l.length>0?s.jsx(M.ComponentMessageContainer,{fieldLabel:t,messages:l}):!e&&!n||"always"!==c&&!p?i?s.jsx(V,{align:r}):null:s.jsx(j.InlineHelp,{assistiveText:e,sourceLink:n,sourceText:o});return C||h?s.jsx(D,{id:a,variant:d,testId:u,children:C}):null},e.InlineUserAssistanceContainer=D}));
2
2
  //# sourceMappingURL=InlineUserAssistance-91f9ace1.js.map
@@ -0,0 +1,2 @@
1
+ define(['exports', 'preact/jsx-runtime', 'preact/compat', 'preact/hooks', './swatchData-ef8329c2', './clientHints-6d361eaa', './FormFieldContext-a024b891', './logger-0f873e29', './TabbableModeContext-a9c97640', './useTranslationBundle-e4dd341e', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', './InlineUserAssistance-91f9ace1', './Flex-4b81b412', 'css!./MessageBannerStyles.styles.css', 'module', './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css', 'preact', './LayerHost-0b288129', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-66f3844a', 'css!./IconStyle.styles.css', './IconButton-d78fe636', 'css!./MessageStyles.styles.css', './MessageFormattingUtils-ea0be23e', './TransitionGroup-3b9d81b6', './MessagesContext-602a69a2', 'css!./HiddenAccessibleStyles.styles.css', 'css!./ComponentMessageStyles.styles.css', 'module', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageVariants.css', './Popup-feb5bf60', './UNSAFE_Separator/themes/SeparatorStyles.css', 'css!./LabelStyles.styles.css', 'module', './UNSAFE_Label/themes/redwood/LabelVariants.css', './InputGroupContext-372087af', 'module', './UNSAFE_Popup/themes/redwood/PopupVariants.css', './UNSAFE_InputColor/themes/InputColorPickerDropdownStyles.css', './Sheet-1d02491d', './ColorPicker-3b4180e9', './SectionedContent-a89bafc6', './ColorSwatch-52a06d25', './useDownToggle-80b61b43', './useClearIcon-2bedc84f', './useFocusableTextField-8b755b15', './FormContext-6b0879a0', './useFormContext-b8cbbb21', './useHover-8b8a1496', './useTextField-3ab0a23b', './Label-286bacb8', './keyboardUtils-fb6219eb', './TextFieldInput-f8635c62', 'css!./ObfuscatedTextFieldInputStyles.styles.css', './ReadonlyTextFieldInput-41384d7e', './StyledTextField-f533c9e9', './TextField-1da09ebc', 'css!./LiveRegionStyles.styles.css', './UNSAFE_TextField/themes/TextFieldStyles.css', 'css!./SkeletonStyles.styles.css', 'css!./TextFieldLoadingStyles.styles.css', 'css!./TextFieldStyles.styles.css', 'module', './UNSAFE_TextField/themes/redwood/TextFieldVariants.css', './CompactUserAssistance-2fc90192', './mergeProps-bcfa6a92', './ClearIcon-a066df59', './useCurrentValueReducer-faded381', './useSelectableTextField-900d2860'], (function(e,s,t,o,a,l,n,r,i,c,d,u,p,m,b,h,y,x,C,S,f,v,F,T,g,A,I,R,w,V,U,k,D,E,j,P,_,B,L,H,M,N,O,z,W,q,G,K,Z,$,J,Q,X,Y,ee,se,te,oe,ae,le,ne,re,ie,ce,de,ue,pe,me,be,he,ye,xe,Ce){"use strict";const Se=({anchorRef:e,assistiveText:t,swatchSize:a,palette:l,helpSourceLink:r,helpSourceText:i,isDisabled:d,isOpen:u,isReadonly:p,label:b,onClose:h,onCommit:y,messages:x,testId:C,userAssistanceDensity:S,value:f})=>{const[v,F]=o.useState(!1),[T,g]=o.useState(u),A=o.useCallback((e=>{F(e.placement.startsWith("top"))}),[]);T!==u&&(g(u),u||F(!1));const I=fe(),{colorPicker_label:R}=c.useTranslationBundle("@oracle/oraclejet-preact"),w=R(),V=s.jsx(W.ColorPicker,{height:I?void 0:"auto",onCommit:y,maxWidth:I?"100%":void 0,width:"100%",swatchSize:a,palette:l,testId:C,value:f}),U=!u||v&&!I||d||p||!(t||r||x&&x.length>0)||"efficient"!==S&&"reflow"!==S?void 0:s.jsx(n.FormFieldContext.Provider,{value:{isFocused:!0},children:s.jsx("div",{class:O.userAssistanceStyles,children:s.jsx(m.InlineUserAssistance,{assistiveText:t,fieldLabel:b,helpSourceLink:r,helpSourceText:i,messages:x,userAssistanceDensity:S})})}),k=C?C+(I?"_sheet":"_dropdown"):void 0,D=s.jsx("div",{class:O.dropdownStyles,children:s.jsx(q.SectionedContent,{paddingBlockEnd:"3.5x",paddingBlockStart:"3.5x",paddingInlineEnd:"3.5x",paddingInlineStart:"3.5x","aria-label":w,footer:U,hasFocusTrap:!0,main:V,role:"dialog",testId:k})});return I?s.jsx(z.Sheet,{isOpen:u,onClose:h,children:s.jsx(q.SectionedContent,{"aria-label":w,footer:U,hasFocusTrap:!0,main:V,role:"dialog",testId:k})}):s.jsx(q.StickyPositioningDropdown,{anchorRef:e,isOpen:u,onClose:h,onPosition:A,sizeOptions:{isMaxWidthAdjusted:!1,isMaxHeightAdjusted:!0},children:D})},fe=()=>"phone"===l.getClientHints().deviceType,ve=(e,s)=>{switch(s.type){case"colorChanged":case"colorSelected":return{...e,colorValue:s.data};case"reset":return{colorValue:s.data};default:return e}},Fe=({onCommit:e,onInput:s,value:t})=>{const[l,n]=o.useState(!1),r=o.useRef(null),i=o.useRef(null),c=o.useRef(!1),d=o.useRef(),u=o.useRef(t),p=o.useRef(t),m=o.useRef(t),b=o.useRef(!1),{state:h,dispatch:y}=(({value:e})=>{const[s,t]=o.useReducer(ve,{colorValue:e});return{state:s,dispatch:t}})({value:t});a.colorsAreDifferent(m.current,t)&&(m.current=t,a.colorsAreDifferent(t,h.colorValue)&&(y({type:"reset",data:t}),p.current=t,u.current=t)),o.useEffect((()=>{a.colorsAreDifferent(h.colorValue,p.current)&&(s({previousValue:p.current,value:h.colorValue}),p.current=h.colorValue),b.current&&a.colorsAreDifferent(h.colorValue,u.current)&&(e?.({previousValue:u.current,value:h.colorValue}),u.current=h.colorValue,b.current=!1)}),[e,s,h.colorValue]);const x=o.useCallback((e=>{y({type:"colorChanged",data:e.value})}),[y]),C=o.useCallback((()=>{a.colorsAreDifferent(u.current,h.colorValue)&&(e?.({value:h.colorValue,previousValue:u.current}),u.current=h.colorValue)}),[e,h.colorValue]),S=o.useCallback((()=>{c.current||n((e=>!e)),c.current=!1}),[]),f=o.useCallback((e=>{"outsideMousedown"===e.reason?(c.current=!0,clearTimeout(d.current),d.current=setTimeout((()=>{c.current=!1}),200)):"dismissed"!==e.reason&&"keyboardDismissed"!==e.reason||r.current?.focus(),n(!1)}),[]),v=o.useCallback((e=>{r.current?.focus(),b.current=!0,y({type:"colorSelected",data:e.value}),n(!1)}),[y]),F=o.useCallback((()=>{n(!0)}),[]),{triggerProps:T}=K.useDownToggle({isOpen:l,onToggle:F});return{colorIconActionHandler:S,colorPickerCommitHandler:v,dropdownCloseHandler:f,containerDropdownProps:T,colorValue:h.colorValue,iconRef:r,isOpen:l,colorCommitHandler:C,colorInputHandler:x,colorRef:i}},Te=t.forwardRef((({"aria-describedby":e,swatchSize:t,palette:l,value:r,isDisabled:i,isReadonly:d,labelEdge:u,labelStartWidth:p,isRequiredShown:b=!1,isRequired:h=!1,placeholder:y,hasClearIcon:x,columnSpan:C,textAlign:S,autoComplete:f,messages:v,assistiveText:F,helpSourceLink:T,helpSourceText:g,label:A,onCommit:I,onInput:R,testId:w,variant:V,userAssistanceDensity:U},k)=>{const{colorIconActionHandler:D,colorPickerCommitHandler:E,dropdownCloseHandler:j,colorValue:P,containerDropdownProps:_,iconRef:B,isOpen:L,colorCommitHandler:H,colorInputHandler:M,colorRef:N}=Fe({onCommit:I,onInput:R,value:r}),O=o.useRef(null),{inputColor_selectColor:z}=c.useTranslationBundle("@oracle/oraclejet-preact"),W=z(),{onKeyDown:q,...K}=_,{currentCommitValue:J,dispatch:se}=xe.useCurrentValueReducer({value:P}),oe=o.useCallback((e=>{se({type:"input",payload:e.value}),M?.(e)}),[M,se]),re=o.useCallback((e=>{se({type:"commit",payload:e.value}),H?.(e)}),[H,se]),{isDisabled:ie,isReadonly:ce,labelEdge:de,labelStartWidth:ue,textAlign:pe,userAssistanceDensity:me}=Q.useFormContext(),fe=i??ie,ve=d??ce,Te=u??de,Ae=p??ue,Ie=S??pe,Re=U??me,we=o.useRef(null),{focusProps:Ve,isFocused:Ue,methods:ke}=$.useFocusableTextField({isDisabled:fe,isReadonly:ve,enabledElementRef:N,readonlyElementRef:we}),{methods:De}=Ce.useSelectableTextField(N);o.useImperativeHandle(k,(()=>he.mergeProps(ke,De)),[ke,De]);const{hoverProps:Ee,isHover:je}=X.useHover({isDisabled:ve||fe||!1}),{formFieldContext:Pe,inputProps:_e,labelProps:Be,textFieldProps:Le,userAssistanceProps:He}=Y.useTextField({ariaDescribedBy:e,helpSourceLink:T,helpSourceText:g,isDisabled:fe,isFocused:Ue||L,isReadonly:ve,isRequiredShown:b,labelEdge:Te,messages:v,styleVariant:V,userAssistanceDensity:Re,value:P}),Me=o.useCallback((()=>{N.current?.focus();const e=void 0;P!==e&&oe?.({previousValue:P,value:e})}),[oe,P,N]),Ne=Z.useClearIcon({clearIcon:s.jsx(ye.ClearIcon,{onClick:Me,testId:`${w}_clearicon`}),display:x,hasValue:Pe.hasValue,isFocused:Ue,isEnabled:!ve&&!fe,isHover:je}),Oe=void 0!==A&&"inside"===Te,ze="none"!==Te?s.jsx(ee.Label,{...Be,children:A}):void 0,We={label:"none"!==Te?ze:void 0,labelEdge:"none"!==Te?Te:void 0,labelStartWidth:"none"!==Te?Ae:void 0},qe="none"===Te?A:void 0,Ge="efficient"===Re||"reflow"===Re?fe||ve?"efficient"!==Re?void 0:s.jsx(m.InlineUserAssistance,{userAssistanceDensity:Re,...He}):s.jsx(m.InlineUserAssistance,{assistiveText:F,fieldLabel:A,helpSourceLink:T,helpSourceText:g,messages:v,isRequiredShown:b,userAssistanceDensity:Re,...He}):void 0,Ke=o.useRef(null),Ze=O??Ke,$e="compact"===Re?s.jsx(be.CompactUserAssistance,{anchorRef:Ze,messages:v,assistiveText:F,...He}):void 0,Je=ve?s.jsx(ae.ReadonlyTextFieldInput,{"aria-describedby":_e["aria-describedby"],"aria-label":qe,"aria-labelledby":Be.id,as:"div",elementRef:we,textAlign:Ie,value:P,hasEmptyLabel:""===A&&"none"===Te,hasInsideLabel:Oe}):s.jsx(te.TextFieldInput,{"aria-labelledby":Be.id,"aria-label":qe,autoComplete:f,currentCommitValue:J,hasEmptyLabel:""===A&&"none"===Te,hasEndContent:!1,hasInsideLabel:void 0!==ze&&"inside"===Te,hasStartContent:!0,inputRef:N,isRequired:h,placeholder:y,textAlign:Ie,type:ge()?"text":void 0,value:P,onCommit:re,onInput:oe,onKeyDown:q,..._e});return s.jsxs(s.Fragment,{children:[s.jsx(n.FormFieldContext.Provider,{value:Pe,children:ve?s.jsx(le.ReadonlyTextField,{role:"presentation",columnSpan:C,compactUserAssistance:$e,inlineUserAssistance:Ge,onBlur:Ve.onFocusOut,onFocus:Ve.onFocusIn,ref:Ze,mainContent:Je,testId:w,...We}):s.jsx(ne.TextField,{endContent:Ne,columnSpan:C,compactUserAssistance:$e,inlineUserAssistance:Ge,mainContent:Je,onBlur:Ve.onFocusOut,onFocus:Ve.onFocusIn,startContent:s.jsx(G.ColorSwatch,{size:"xs","aria-haspopup":l?"grid":void 0,"aria-label":l?W:void 0,isDisabled:fe,isButton:!0,isTooltipDisabled:L,ref:B,testId:w?w+"_colorIcon":void 0,value:J,onToggle:fe||!l?void 0:D}),mainFieldRef:Ze,hasZeroStartMargin:!0,testId:w,...Le,...We,...Ee,...K})}),L&&!ve&&!fe&&s.jsx(Se,{anchorRef:O,assistiveText:F,helpSourceLink:T,helpSourceText:g,isDisabled:fe,isReadonly:ve,isOpen:L,label:A,onClose:j,onCommit:E,messages:v,testId:w?w+"_colorPicker":void 0,userAssistanceDensity:Re,value:P&&a.isValidColorValue(P)?P:void 0,palette:l,swatchSize:t})]})}));function ge(){const e=l.getClientHints().deviceType;return"phone"===e||"tablet"===e}Te.displayName="InputColor",e.InputColor=Te}));
2
+ //# sourceMappingURL=InputColor-3eca248b.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputColor-a1fcd3b3.js","sources":["../../src/UNSAFE_InputColor/InputColorPickerDropdown.tsx","../../src/UNSAFE_InputColor/useInputColorState.ts","../../src/UNSAFE_InputColor/useInputColor.ts","../../src/UNSAFE_InputColor/InputColor.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ComponentProps } from 'preact';\nimport { useCallback, useState } from 'preact/hooks';\nimport { BundleType } from '../resources/nls/bundle';\nimport { ColorPicker } from '#UNSAFE_ColorPicker';\nimport { type CloseDetail as DropdownCloseDetail } from '#UNSAFE_Dropdown';\nimport { getClientHints } from '#utils/PRIVATE_clientHints';\nimport { FormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { InlineUserAssistance } from '../UNSAFE_UserAssistance';\nimport { dropdownStyles, userAssistanceStyles } from './themes/InputColorPickerDropdownStyles.css';\nimport { PositionData } from '../UNSAFE_Floating';\nimport { StickyPositioningDropdown } from '#PRIVATE_FormControls';\nimport { SectionedContent } from '#PRIVATE_FormControls';\nimport { type CloseDetail as SheetCloseDetail, Sheet } from '#UNSAFE_Sheet';\nimport type { TestIdProps } from '#hooks/UNSAFE_useTestId';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { SizeOptions } from '#UNSAFE_Floating/Floating';\nimport { InputColorPublicProps as InputColorProps } from './InputColor.types';\n\ntype StickyPositioningDropdownProps = ComponentProps<typeof StickyPositioningDropdown>;\ntype ColorPickerProps = ComponentProps<typeof ColorPicker>;\ntype PickedPropsFromColorPicker = Pick<ColorPickerProps, 'value' | 'onCommit'>;\ntype PickedPropsFromDropdown = Omit<StickyPositioningDropdownProps, 'onClose'>;\ntype CloseDetail = SheetCloseDetail | DropdownCloseDetail;\ntype PickedPropsFromInputColor = Pick<\n InputColorProps,\n | 'swatchSize'\n | 'palette'\n | 'value'\n | 'aria-describedby'\n | 'assistiveText'\n | 'columnSpan'\n | 'helpSourceLink'\n | 'helpSourceText'\n | 'isDisabled'\n | 'isReadonly'\n | 'isRequired'\n | 'isRequiredShown'\n | 'label'\n | 'labelEdge'\n | 'labelStartWidth'\n | 'messages'\n | 'textAlign'\n | 'testId'\n | 'userAssistanceDensity'\n | 'variant'\n>;\n\ntype Props = PickedPropsFromColorPicker &\n PickedPropsFromInputColor &\n PickedPropsFromDropdown &\n TestIdProps & {\n /**\n * Called when the dropdown or sheet is supposed to be closed.\n */\n onClose?: (detail: CloseDetail) => void;\n };\n\n/**\n * Component that renders ColorPicker either inside a dropdown or sheet; in mobile,\n * it renders inside a sheet. Additionally, when a dropdown is being shown beneath\n * the component, we also show any user assistance text or messages below the picker\n * because otherwise that information would be obscured from view. When a sheet is being\n * shown, it will always display UA and messages at the bottom of the sheet.\n */\nconst InputColorPickerDropdown = ({\n anchorRef,\n assistiveText,\n swatchSize,\n palette,\n helpSourceLink,\n helpSourceText,\n isDisabled,\n isOpen,\n isReadonly,\n label,\n onClose,\n onCommit,\n messages,\n testId,\n userAssistanceDensity,\n value\n}: Props) => {\n // If the dropdown opens above the component, we don't want to show UA or messages.\n const [isDropdownAbove, setDropdownAbove] = useState(false);\n const [prevIsOpen, setPrevIsOpen] = useState(isOpen);\n const handleDropdownPosition = useCallback<\n NonNullable<StickyPositioningDropdownProps['onPosition']>\n >((data: PositionData) => {\n setDropdownAbove(data.placement.startsWith('top'));\n }, []);\n // Reset the flag when the dropdown is closed.\n if (prevIsOpen !== isOpen) {\n setPrevIsOpen(isOpen);\n if (!isOpen) {\n setDropdownAbove(false);\n }\n }\n\n const sizeOptions: SizeOptions = {\n isMaxWidthAdjusted: false,\n isMaxHeightAdjusted: true\n };\n\n // On mobile phones, the dropdown becomes a sheet.\n const shouldShowSheet = isPhone();\n\n const { colorPicker_label } = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const colorPickerAriaLabel = colorPicker_label();\n\n const colorPickerMainContent = (\n <ColorPicker\n height={!shouldShowSheet ? 'auto' : undefined}\n onCommit={onCommit}\n // for sheet, we want the width to grow to the width of the sheet, otherwise it will use the theme default.\n maxWidth={shouldShowSheet ? '100%' : undefined}\n width=\"100%\"\n swatchSize={swatchSize}\n palette={palette}\n testId={testId}\n value={value}\n />\n );\n\n const inlineUserAssistanceFooter =\n isOpen &&\n (!isDropdownAbove || shouldShowSheet) &&\n !isDisabled &&\n !isReadonly &&\n (assistiveText || helpSourceLink || (messages && messages.length > 0)) &&\n (userAssistanceDensity === 'efficient' || userAssistanceDensity === 'reflow') ? (\n <FormFieldContext.Provider value={{ isFocused: true }}>\n <div class={userAssistanceStyles}>\n <InlineUserAssistance\n assistiveText={assistiveText}\n fieldLabel={label}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n messages={messages}\n userAssistanceDensity={userAssistanceDensity}\n />\n </div>\n </FormFieldContext.Provider>\n ) : undefined;\n\n const contentTestId = testId ? testId + (shouldShowSheet ? '_sheet' : '_dropdown') : undefined;\n\n // The same content is displayed either in a dropdown or sheet: color picker and inline UA.\n // Add styling to the dropdown to enforce a fixed width.\n const dropdownContent = (\n <div class={dropdownStyles}>\n <SectionedContent\n paddingBlockEnd=\"3.5x\"\n paddingBlockStart=\"3.5x\"\n paddingInlineEnd=\"3.5x\"\n paddingInlineStart=\"3.5x\"\n aria-label={colorPickerAriaLabel}\n footer={inlineUserAssistanceFooter}\n hasFocusTrap={true}\n main={colorPickerMainContent}\n role=\"dialog\"\n testId={contentTestId}\n />\n </div>\n );\n\n const dropdown = shouldShowSheet ? (\n <Sheet isOpen={isOpen} onClose={onClose}>\n <SectionedContent\n aria-label={colorPickerAriaLabel}\n footer={inlineUserAssistanceFooter}\n hasFocusTrap={true}\n main={colorPickerMainContent}\n role=\"dialog\"\n testId={contentTestId}\n />\n </Sheet>\n ) : (\n <StickyPositioningDropdown\n anchorRef={anchorRef}\n isOpen={isOpen}\n onClose={onClose}\n onPosition={handleDropdownPosition}\n sizeOptions={sizeOptions}>\n {dropdownContent}\n </StickyPositioningDropdown>\n );\n\n return dropdown;\n};\n\nconst isPhone = () => {\n return getClientHints().deviceType === 'phone';\n};\n\nexport { InputColorPickerDropdown, type CloseDetail };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { useReducer } from 'preact/hooks';\nimport { type ColorValue } from '#utils/UNSAFE_color';\n\ntype InputColorState = {\n /**\n * Represents the current color value of the component. The user either selected\n * the color in the picker, or typed it into the color field.\n */\n colorValue?: ColorValue;\n};\n\ntype ColorChangedAction = { type: 'colorChanged'; data?: ColorValue };\ntype ColorResetAction = { type: 'reset'; data?: ColorValue };\ntype ColorSelectedAction = { type: 'colorSelected'; data?: ColorValue };\ntype InputColorReducerAction = ColorChangedAction | ColorResetAction | ColorSelectedAction;\n\n// Use a reducer function to manage InputColorState.\nconst inputColorReducer = (\n state: InputColorState,\n action: InputColorReducerAction\n): InputColorState => {\n switch (action.type) {\n case 'colorChanged': {\n return {\n ...state,\n colorValue: action.data\n };\n }\n case 'colorSelected': {\n return { ...state, colorValue: action.data };\n }\n case 'reset': {\n return {\n colorValue: action.data\n };\n }\n default:\n return state;\n }\n};\n\ntype Props = {\n /**\n * The value of the InputColor, or undefined.\n */\n value?: ColorValue;\n};\n\n/**\n * useInputColorState calls useReducer to determine the initial state. Any changes to that state\n * are managed by dispatching actions to the reducer function.\n */\nconst useInputColorState = ({ value }: Props) => {\n const [state, dispatch] = useReducer(inputColorReducer, {\n colorValue: value\n });\n\n return { state, dispatch };\n};\n\nexport { useInputColorState };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport type { ComponentProps, RefObject } from 'preact';\nimport { useCallback, useEffect, useRef, useState } from 'preact/hooks';\nimport { ElementRef } from 'preact/compat';\nimport { colorsAreDifferent, type ColorValue } from '#utils/UNSAFE_color';\nimport { ColorPicker } from '#UNSAFE_ColorPicker';\nimport { ColorSwatch } from '#UNSAFE_ColorSwatch';\nimport { CloseDetail, InputColorPickerDropdown } from './InputColorPickerDropdown';\nimport { useInputColorState } from './useInputColorState';\nimport type { ValueUpdateDetail } from '#utils/UNSAFE_valueUpdateDetail';\nimport { useDownToggle } from '#hooks/UNSAFE_useDownToggle';\nimport { InputColorPublicProps as InputColorProps } from './InputColor.types';\n\ntype SwatchHandle = ElementRef<typeof ColorSwatch>;\n\ntype ColorPickerProps = ComponentProps<typeof ColorPicker>;\ntype ColorSwatchProps = ComponentProps<typeof ColorSwatch>;\ntype DropdownProps = ComponentProps<typeof InputColorPickerDropdown>;\n\ntype Props = {\n onCommit: InputColorProps['onCommit'];\n onInput: InputColorProps['onInput'];\n value: InputColorProps['value'];\n};\n\n/**\n * Hook that provides handlers and other functionality for InputColor.\n */\nconst useInputColor = ({ onCommit, onInput, value: currentValue }: Props) => {\n // Whether the dropdown is open.\n const [isOpen, setIsOpen] = useState<boolean>(false);\n\n // Ref to the swatch icon button.\n const iconRef: RefObject<SwatchHandle> = useRef<SwatchHandle>(null);\n\n // Ref to the text input which holds color value\n const colorRef: RefObject<HTMLInputElement> = useRef<HTMLInputElement>(null);\n\n // Keep track of whether the dropdown was just dismissed from an outside mousedown event.\n const outsideMousedownRef = useRef<boolean>(false);\n const outsideMousedownTimerRef = useRef<ReturnType<typeof setTimeout> | undefined>();\n\n // Keep track of the last color values passed to onInput and onCommit.\n const lastCommittedColorRef = useRef<ColorValue | undefined>(currentValue);\n const lastColorRef = useRef<ColorValue | undefined>(currentValue);\n\n // Keep track of the last controlled value passed from the parent, so we can detect a programmatic change.\n const lastValueFromParentRef = useRef<ColorValue | undefined>(currentValue);\n\n // Keep track of whether a color was selected in the color picker.\n const colorSelectedRef = useRef<boolean>(false);\n\n const { state, dispatch } = useInputColorState({ value: currentValue });\n\n // If a new value is being pushed from the parent, and that value differs from\n // the current value of the reducer, then this is a programmatic update\n // and we need to call 'reset' to update the reducer state. Otherwise, the only\n // time the reducer state is updated from the value is on mount.\n if (colorsAreDifferent(lastValueFromParentRef.current, currentValue)) {\n lastValueFromParentRef.current = currentValue;\n if (colorsAreDifferent(currentValue, state.colorValue)) {\n dispatch({ type: 'reset', data: currentValue });\n lastColorRef.current = currentValue;\n lastCommittedColorRef.current = currentValue;\n }\n }\n\n // Reducer updates are async, so wait until the state updates and then call our callbacks.\n useEffect(() => {\n if (colorsAreDifferent(state.colorValue, lastColorRef.current)) {\n onInput({ previousValue: lastColorRef.current, value: state.colorValue });\n lastColorRef.current = state.colorValue;\n }\n if (\n colorSelectedRef.current &&\n colorsAreDifferent(state.colorValue, lastCommittedColorRef.current)\n ) {\n onCommit?.({ previousValue: lastCommittedColorRef.current, value: state.colorValue });\n lastCommittedColorRef.current = state.colorValue;\n colorSelectedRef.current = false;\n }\n }, [onCommit, onInput, state.colorValue]);\n\n // Handle onInput from InputColor as values are entered in the input field.\n // We wait for the state to update before calling onInput.\n const colorInputHandler = useCallback<InputColorProps['onInput']>(\n (detail: ValueUpdateDetail<ColorValue>) => {\n dispatch({ type: 'colorChanged', data: detail.value });\n },\n [dispatch]\n );\n\n // Handle onCommit from InputColor, which is called when the user presses Enter or the field is blurred.\n const colorCommitHandler = useCallback<NonNullable<InputColorProps['onCommit']>>(() => {\n // If the current color value differs from the last committed value, then call onCommit.\n if (colorsAreDifferent(lastCommittedColorRef.current, state.colorValue)) {\n onCommit?.({ value: state.colorValue, previousValue: lastCommittedColorRef.current });\n lastCommittedColorRef.current = state.colorValue;\n }\n }, [onCommit, state.colorValue]);\n\n // Respond to onAction event from the swatch icon button. Toggles the color picker dropdown.\n const colorIconActionHandler = useCallback<NonNullable<ColorSwatchProps['onToggle']>>(() => {\n // Only toggle the value of isOpen if we didn't just dismiss the dropdown.\n if (!outsideMousedownRef.current) {\n setIsOpen((prevIsOpen) => !prevIsOpen);\n }\n outsideMousedownRef.current = false;\n }, []);\n\n const dropdownCloseHandler = useCallback<NonNullable<DropdownProps['onClose']>>(\n (detail: CloseDetail) => {\n // Keep track of when the dropdown is closed via outside mousedown, including when the swatch icon\n // is clicked. We need this in order to toggle visibility of the picker and dropdown.\n if (detail.reason === 'outsideMousedown') {\n outsideMousedownRef.current = true;\n clearTimeout(outsideMousedownTimerRef.current);\n\n // Clear the flag after a short delay to ensure the dropdown can be opened again.\n outsideMousedownTimerRef.current = setTimeout(() => {\n outsideMousedownRef.current = false;\n }, 200);\n } else if (detail.reason === 'dismissed' || detail.reason === 'keyboardDismissed') {\n // Focus the swatch icon when the dropdown is closed.\n iconRef.current?.focus();\n }\n setIsOpen(false);\n },\n []\n );\n\n // Handle color selection in the picker.\n // - Updates the value in state.\n // - Closes the dropdown.\n // - Sets focus to the color field.\n const colorPickerCommitHandler = useCallback<ColorPickerProps['onCommit']>(\n (detail: ValueUpdateDetail<ColorValue>) => {\n // Set focus to the swatch when a color is selected.\n iconRef.current?.focus();\n\n // Set a ref indicating a color was selected.\n colorSelectedRef.current = true;\n dispatch({ type: 'colorSelected', data: detail.value });\n setIsOpen(false);\n },\n [dispatch]\n );\n\n // The Redwood UX design calls for the dropdown to open when the down arrow is pressed.\n // Handle opening the dropdown when the down arrow is pressed in the text edit field.\n const colorPickerDownHandler = useCallback(() => {\n setIsOpen(true);\n }, []);\n\n const { triggerProps: containerDropdownProps } = useDownToggle({\n isOpen,\n onToggle: colorPickerDownHandler\n });\n\n return {\n colorIconActionHandler,\n colorPickerCommitHandler,\n dropdownCloseHandler,\n containerDropdownProps,\n colorValue: state.colorValue,\n iconRef,\n isOpen,\n colorCommitHandler,\n colorInputHandler,\n colorRef\n };\n};\n\nexport { useInputColor };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { Ref } from 'preact';\nimport { forwardRef, ElementRef } from 'preact/compat';\nimport { useCallback, useImperativeHandle, useRef } from 'preact/hooks';\nimport { type BundleType } from '../resources/nls/bundle';\nimport { type ColorValue, isValidColorValue } from '#utils/UNSAFE_color';\nimport { InputColorPickerDropdown } from './InputColorPickerDropdown';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { ValueUpdateDetail } from '#utils/UNSAFE_valueUpdateDetail';\nimport { ColorSwatch } from '#UNSAFE_ColorSwatch';\nimport { useInputColor } from './useInputColor';\n\nimport { useClearIcon } from '../hooks/UNSAFE_useClearIcon';\nimport { FocusableHandle, useFocusableTextField } from '../hooks/UNSAFE_useFocusableTextField';\nimport { useFormContext } from '../hooks/UNSAFE_useFormContext';\nimport { FormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { useHover } from '../hooks/UNSAFE_useHover';\nimport { useTextField } from '../hooks/UNSAFE_useTextField';\nimport { Label } from '../UNSAFE_Label';\n\nimport {\n ReadonlyTextField,\n ReadonlyTextFieldInput,\n TextField,\n TextFieldInput\n} from '../UNSAFE_TextField';\nimport { CompactUserAssistance, InlineUserAssistance } from '../UNSAFE_UserAssistance';\nimport { getClientHints } from '../utils/PRIVATE_clientHints';\nimport { ClearIcon } from '../PRIVATE_ClearIcon/ClearIcon';\nimport { useCurrentValueReducer } from '../hooks/UNSAFE_useCurrentValueReducer';\nimport { SelectableHandle, useSelectableTextField } from '#hooks/UNSAFE_useSelectableTextField';\nimport { mergeProps } from '#utils/UNSAFE_mergeProps';\nimport { InputColorPublicProps as Props } from './InputColor.types';\n\ntype SwatchHandle = ElementRef<typeof ColorSwatch>;\n\ntype FocusSelectHandle = FocusableHandle & SelectableHandle;\n\n/**\n * An Input Color is a form field that allows users to select or input a color value,\n * using a color picker or by enterihg a HEX code.\n */\nexport const InputColor = forwardRef(\n (\n {\n 'aria-describedby': ariaDescribedBy,\n swatchSize,\n palette,\n value,\n isDisabled: propIsDisabled,\n isReadonly: propIsReadonly,\n labelEdge: propLabelEdge,\n labelStartWidth: propLabelStartWidth,\n isRequiredShown = false,\n isRequired = false,\n placeholder,\n hasClearIcon,\n columnSpan,\n textAlign: propTextAlign,\n autoComplete,\n messages,\n assistiveText,\n helpSourceLink,\n helpSourceText,\n label,\n onCommit,\n onInput,\n testId,\n variant,\n userAssistanceDensity: propUserAssistanceDensity\n }: Props,\n ref?: Ref<FocusSelectHandle>\n ) => {\n const {\n colorIconActionHandler,\n colorPickerCommitHandler,\n dropdownCloseHandler,\n colorValue,\n containerDropdownProps,\n iconRef,\n isOpen,\n colorCommitHandler,\n colorInputHandler,\n colorRef: enabledElementRef\n } = useInputColor({\n onCommit,\n onInput,\n value\n });\n\n const mainFieldRef = useRef<HTMLDivElement>(null);\n const { inputColor_selectColor } = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const colorIconAriaLabel = inputColor_selectColor();\n const { onKeyDown, ...inputContainerAriaProps } = containerDropdownProps;\n\n const { currentCommitValue, dispatch } = useCurrentValueReducer({ value: colorValue });\n const onInputAndDispatch = useCallback(\n (detail: ValueUpdateDetail<ColorValue>) => {\n // Should dispatch happen first? This will queue up a re-render, ordering should not cause issues (this is async)\n dispatch({ type: 'input', payload: detail.value });\n colorInputHandler?.(detail);\n },\n [colorInputHandler, dispatch]\n );\n const onCommitAndDispatch = useCallback(\n (detail: ValueUpdateDetail<ColorValue>) => {\n // Should dispatch happen first? This will queue up a re-render, ordering should not cause issues (this is async)\n dispatch({ type: 'commit', payload: detail.value });\n colorCommitHandler?.(detail);\n },\n [colorCommitHandler, dispatch]\n );\n\n const startContent = () => (\n <ColorSwatch\n size=\"xs\"\n aria-haspopup={palette ? 'grid' : undefined} // with only palette, grid is a better choice than dialog for now.\n aria-label={palette ? colorIconAriaLabel : undefined}\n isDisabled={isDisabled}\n isButton={true}\n isTooltipDisabled={isOpen}\n ref={iconRef as Ref<SwatchHandle>}\n testId={testId ? testId + '_colorIcon' : undefined}\n value={currentCommitValue as ColorValue}\n onToggle={isDisabled || !palette ? undefined : colorIconActionHandler}\n />\n );\n const {\n isDisabled: isFormDisabled,\n isReadonly: isFormReadonly,\n labelEdge: formLabelEdge,\n labelStartWidth: formLabelStartWidth,\n textAlign: formTextAlign,\n userAssistanceDensity: formUserAssistanceDensity\n } = useFormContext();\n // default to FormContext values if component properties are not specified\n const isDisabled = propIsDisabled ?? isFormDisabled;\n const isReadonly = propIsReadonly ?? isFormReadonly;\n const labelEdge = propLabelEdge ?? formLabelEdge;\n const labelStartWidth = propLabelStartWidth ?? formLabelStartWidth;\n const textAlign = propTextAlign ?? formTextAlign;\n const userAssistanceDensity = propUserAssistanceDensity ?? formUserAssistanceDensity;\n\n const readonlyElementRef = useRef<HTMLDivElement>(null);\n\n const {\n focusProps,\n isFocused,\n methods: focusMethods\n } = useFocusableTextField<HTMLInputElement, HTMLDivElement>({\n isDisabled,\n isReadonly,\n enabledElementRef,\n readonlyElementRef\n });\n\n const { methods: selectMethods } = useSelectableTextField<HTMLInputElement>(enabledElementRef);\n\n useImperativeHandle(ref!, () => mergeProps(focusMethods, selectMethods), [\n focusMethods,\n selectMethods\n ]);\n\n const { hoverProps, isHover } = useHover({ isDisabled: isReadonly || isDisabled || false });\n\n const { formFieldContext, inputProps, labelProps, textFieldProps, userAssistanceProps } =\n useTextField({\n ariaDescribedBy,\n helpSourceLink,\n helpSourceText,\n isDisabled,\n isFocused: isFocused || isOpen,\n isReadonly,\n isRequiredShown,\n labelEdge,\n messages,\n styleVariant: variant,\n userAssistanceDensity,\n value: colorValue\n });\n\n const onClickClearIcon = useCallback(() => {\n // Clicking the clear icon should put the focus on the input field\n enabledElementRef.current?.focus();\n // Send an event to clear the field's value if the value is not already cleared\n const nextValue = undefined;\n if (colorValue === nextValue) return;\n onInputAndDispatch?.({ previousValue: colorValue, value: nextValue });\n }, [onInputAndDispatch, colorValue, enabledElementRef]);\n\n const maybeClearIcon = useClearIcon({\n clearIcon: <ClearIcon onClick={onClickClearIcon} testId={`${testId}_clearicon`} />,\n display: hasClearIcon,\n hasValue: formFieldContext.hasValue,\n isFocused,\n isEnabled: !isReadonly && !isDisabled,\n isHover\n });\n\n const hasInsideLabel = label !== undefined && labelEdge === 'inside';\n\n const labelComp = labelEdge !== 'none' ? <Label {...labelProps}>{label}</Label> : undefined;\n\n const fieldLabelProps = {\n label: labelEdge !== 'none' ? labelComp : undefined,\n labelEdge: labelEdge !== 'none' ? labelEdge : undefined,\n labelStartWidth: labelEdge !== 'none' ? labelStartWidth : undefined\n };\n\n const ariaLabel = labelEdge === 'none' ? label : undefined;\n const isInlineDensity =\n userAssistanceDensity === 'efficient' || userAssistanceDensity === 'reflow';\n\n const inlineUserAssistance = isInlineDensity ? (\n isDisabled || isReadonly ? (\n // save space for user assistance if density is 'efficient', even though we don't\n // render user assistance for disabled or readonly fields\n userAssistanceDensity !== 'efficient' ? undefined : (\n <InlineUserAssistance\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n )\n ) : (\n <InlineUserAssistance\n assistiveText={assistiveText}\n fieldLabel={label}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n messages={messages}\n isRequiredShown={isRequiredShown}\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n )\n ) : undefined;\n\n const aRef = useRef<HTMLDivElement>(null);\n const anchorRef = mainFieldRef ?? aRef;\n\n const compactUserAssistance =\n userAssistanceDensity === 'compact' ? (\n <CompactUserAssistance\n anchorRef={anchorRef}\n messages={messages}\n assistiveText={assistiveText}\n {...userAssistanceProps}\n />\n ) : undefined;\n\n const mainContent = isReadonly ? (\n <ReadonlyTextFieldInput\n aria-describedby={inputProps['aria-describedby']}\n aria-label={ariaLabel}\n aria-labelledby={labelProps.id}\n as=\"div\"\n elementRef={readonlyElementRef}\n textAlign={textAlign}\n value={colorValue}\n hasEmptyLabel={label === '' && labelEdge === 'none'}\n hasInsideLabel={hasInsideLabel}\n />\n ) : (\n <TextFieldInput\n aria-labelledby={labelProps.id}\n aria-label={ariaLabel}\n autoComplete={autoComplete}\n currentCommitValue={currentCommitValue}\n hasEmptyLabel={label === '' && labelEdge === 'none'}\n hasEndContent={false}\n hasInsideLabel={labelComp !== undefined && labelEdge === 'inside'}\n hasStartContent={true}\n inputRef={enabledElementRef}\n isRequired={isRequired}\n placeholder={placeholder}\n textAlign={textAlign}\n type={isMobile() ? 'text' : undefined}\n value={colorValue}\n onCommit={\n onCommitAndDispatch as (detail: ValueUpdateDetail<string>) => {\n value: string;\n }\n }\n onInput={\n onInputAndDispatch as (detail: ValueUpdateDetail<string>) => {\n value: string;\n }\n }\n onKeyDown={onKeyDown}\n {...inputProps}\n />\n );\n\n return (\n <>\n <FormFieldContext.Provider value={formFieldContext}>\n {isReadonly ? (\n <ReadonlyTextField\n role=\"presentation\"\n columnSpan={columnSpan}\n compactUserAssistance={compactUserAssistance}\n inlineUserAssistance={inlineUserAssistance}\n onBlur={focusProps.onFocusOut}\n onFocus={focusProps.onFocusIn}\n ref={anchorRef}\n mainContent={mainContent}\n testId={testId}\n {...fieldLabelProps}></ReadonlyTextField>\n ) : (\n <TextField\n endContent={maybeClearIcon}\n columnSpan={columnSpan}\n compactUserAssistance={compactUserAssistance}\n inlineUserAssistance={inlineUserAssistance}\n mainContent={mainContent}\n onBlur={focusProps.onFocusOut}\n onFocus={focusProps.onFocusIn}\n startContent={startContent()}\n mainFieldRef={anchorRef}\n hasZeroStartMargin={true}\n testId={testId}\n {...textFieldProps}\n {...fieldLabelProps}\n {...hoverProps}\n {...inputContainerAriaProps}\n />\n )}\n </FormFieldContext.Provider>\n\n {isOpen && !isReadonly && !isDisabled && (\n <InputColorPickerDropdown\n anchorRef={mainFieldRef}\n assistiveText={assistiveText}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n isDisabled={isDisabled}\n isReadonly={isReadonly}\n isOpen={isOpen}\n label={label}\n onClose={dropdownCloseHandler}\n onCommit={colorPickerCommitHandler}\n messages={messages}\n testId={testId ? testId + '_colorPicker' : undefined}\n userAssistanceDensity={userAssistanceDensity}\n // memoize this for performance\n value={colorValue && isValidColorValue(colorValue) ? colorValue : undefined}\n palette={palette}\n swatchSize={swatchSize}\n />\n )}\n </>\n );\n }\n);\n\n/**\n * Helper function to determine whether the current device is a mobile device\n * @returns true if running on a mobile device, false otherwise\n */\nfunction isMobile() {\n const deviceType = getClientHints().deviceType;\n return deviceType === 'phone' || deviceType === 'tablet';\n}\nInputColor.displayName = 'InputColor';\n"],"names":["InputColorPickerDropdown","anchorRef","assistiveText","swatchSize","palette","helpSourceLink","helpSourceText","isDisabled","isOpen","isReadonly","label","onClose","onCommit","messages","testId","userAssistanceDensity","value","isDropdownAbove","setDropdownAbove","useState","prevIsOpen","setPrevIsOpen","handleDropdownPosition","useCallback","data","placement","startsWith","shouldShowSheet","isPhone","colorPicker_label","useTranslationBundle","colorPickerAriaLabel","colorPickerMainContent","_jsx","ColorPicker","height","undefined","maxWidth","width","inlineUserAssistanceFooter","length","FormFieldContext","Provider","isFocused","children","jsx","class","userAssistanceStyles","InlineUserAssistance","fieldLabel","contentTestId","dropdownContent","dropdownStyles","SectionedContent","paddingBlockEnd","paddingBlockStart","paddingInlineEnd","paddingInlineStart","footer","hasFocusTrap","main","role","Sheet","StickyPositioningDropdown","onPosition","sizeOptions","isMaxWidthAdjusted","isMaxHeightAdjusted","getClientHints","deviceType","inputColorReducer","state","action","type","colorValue","useInputColor","onInput","currentValue","setIsOpen","iconRef","useRef","colorRef","outsideMousedownRef","outsideMousedownTimerRef","lastCommittedColorRef","lastColorRef","lastValueFromParentRef","colorSelectedRef","dispatch","useReducer","useInputColorState","colorsAreDifferent","current","useEffect","previousValue","colorInputHandler","detail","colorCommitHandler","colorIconActionHandler","dropdownCloseHandler","reason","clearTimeout","setTimeout","focus","colorPickerCommitHandler","colorPickerDownHandler","triggerProps","containerDropdownProps","useDownToggle","onToggle","InputColor","forwardRef","ariaDescribedBy","propIsDisabled","propIsReadonly","labelEdge","propLabelEdge","labelStartWidth","propLabelStartWidth","isRequiredShown","isRequired","placeholder","hasClearIcon","columnSpan","textAlign","propTextAlign","autoComplete","variant","propUserAssistanceDensity","ref","enabledElementRef","mainFieldRef","inputColor_selectColor","colorIconAriaLabel","onKeyDown","inputContainerAriaProps","currentCommitValue","useCurrentValueReducer","onInputAndDispatch","payload","onCommitAndDispatch","isFormDisabled","isFormReadonly","formLabelEdge","formLabelStartWidth","formTextAlign","formUserAssistanceDensity","useFormContext","readonlyElementRef","focusProps","methods","focusMethods","useFocusableTextField","selectMethods","useSelectableTextField","useImperativeHandle","mergeProps","hoverProps","isHover","useHover","formFieldContext","inputProps","labelProps","textFieldProps","userAssistanceProps","useTextField","styleVariant","onClickClearIcon","nextValue","maybeClearIcon","useClearIcon","clearIcon","ClearIcon","onClick","display","hasValue","isEnabled","hasInsideLabel","labelComp","Label","fieldLabelProps","ariaLabel","inlineUserAssistance","aRef","compactUserAssistance","CompactUserAssistance","mainContent","ReadonlyTextFieldInput","id","as","elementRef","hasEmptyLabel","TextFieldInput","hasEndContent","hasStartContent","inputRef","isMobile","_jsxs","ReadonlyTextField","onBlur","onFocusOut","onFocus","onFocusIn","TextField","endContent","startContent","ColorSwatch","size","isButton","isTooltipDisabled","hasZeroStartMargin","isValidColorValue","displayName"],"mappings":"ixFAwEA,MAAMA,GAA2B,EAC/BC,YACAC,gBACAC,aACAC,UACAC,iBACAC,iBACAC,aACAC,SACAC,aACAC,QACAC,UACAC,WACAC,WACAC,SACAC,wBACAC,YAGA,MAAOC,EAAiBC,GAAoBC,EAAQA,UAAC,IAC9CC,EAAYC,GAAiBF,EAAQA,SAACX,GACvCc,EAAyBC,eAE5BC,IACDN,EAAiBM,EAAKC,UAAUC,WAAW,OAAO,GACjD,IAECN,IAAeZ,IACjBa,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yL,YAAaA,GACb5K,OAAQA,KACJsK,KAENnJ,EAAAA,IAAC0K,GAAAA,UACC,CAAAC,WAAYnC,GACZ9C,WAAYA,EACZ6D,sBAAuBA,GACvBF,qBAAsBA,GACtBI,YAAaA,GACba,OAAQlD,GAAWmD,WACnBC,QAASpD,GAAWqD,UACpBG,aA3MR5K,MAAC6K,GAAAA,YACC,CAAAC,KAAK,KAAI,gBACM3M,EAAU,YAASgC,EACtB,aAAAhC,EAAUiI,OAAqBjG,EAC3C7B,WAAYA,GACZyM,UAAU,EACVC,kBAAmBzM,EACnByH,IAAKlD,EACLjE,OAAQA,EAASA,EAAS,kBAAesB,EACzCpB,MAAOwH,EACP3B,SAAUtG,KAAeH,OAAUgC,EAAY8D,IAkMzCiC,aAAclI,GACdiN,oBAAoB,EACpBpM,OAAQA,KACJqJ,MACAiB,MACAvB,MACAtB,MAKT/H,IAAWC,KAAeF,IACzB0B,EAAAA,IAACjC,GAAwB,CACvBC,UAAWkI,EACXjI,cAAeA,EACfG,eAAgBA,EAChBC,eAAgBA,EAChBC,WAAYA,GACZE,WAAYA,GACZD,OAAQA,EACRE,MAAOA,EACPC,QAASwF,EACTvF,SAAU4F,EACV3F,SAAUA,EACVC,OAAQA,EAASA,EAAS,oBAAiBsB,EAC3CrB,sBAAuBA,GAEvBC,MAAO0D,GAAcyI,EAAAA,kBAAkBzI,GAAcA,OAAatC,EAClEhC,QAASA,EACTD,WAAYA,MAIlB,IAQN,SAASiM,KACP,MAAM/H,EAAaD,mBAAiBC,WACpC,MAAsB,UAAfA,GAAyC,WAAfA,CACnC,CACAyC,GAAWsG,YAAc"}
1
+ {"version":3,"file":"InputColor-3eca248b.js","sources":["../../src/UNSAFE_InputColor/InputColorPickerDropdown.tsx","../../src/UNSAFE_InputColor/useInputColorState.ts","../../src/UNSAFE_InputColor/useInputColor.ts","../../src/UNSAFE_InputColor/InputColor.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ComponentProps } from 'preact';\nimport { useCallback, useState } from 'preact/hooks';\nimport { BundleType } from '../resources/nls/bundle';\nimport { ColorPicker } from '#UNSAFE_ColorPicker';\nimport { type CloseDetail as DropdownCloseDetail } from '#UNSAFE_Dropdown';\nimport { getClientHints } from '#utils/PRIVATE_clientHints';\nimport { FormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { InlineUserAssistance } from '../UNSAFE_UserAssistance';\nimport { dropdownStyles, userAssistanceStyles } from './themes/InputColorPickerDropdownStyles.css';\nimport { PositionData } from '../UNSAFE_Floating';\nimport { StickyPositioningDropdown } from '#PRIVATE_FormControls';\nimport { SectionedContent } from '#PRIVATE_FormControls';\nimport { type CloseDetail as SheetCloseDetail, Sheet } from '#UNSAFE_Sheet';\nimport type { TestIdProps } from '#hooks/UNSAFE_useTestId';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { SizeOptions } from '#UNSAFE_Floating/Floating';\nimport { InputColorPublicProps as InputColorProps } from './InputColor.types';\n\ntype StickyPositioningDropdownProps = ComponentProps<typeof StickyPositioningDropdown>;\ntype ColorPickerProps = ComponentProps<typeof ColorPicker>;\ntype PickedPropsFromColorPicker = Pick<ColorPickerProps, 'value' | 'onCommit'>;\ntype PickedPropsFromDropdown = Omit<StickyPositioningDropdownProps, 'onClose'>;\ntype CloseDetail = SheetCloseDetail | DropdownCloseDetail;\ntype PickedPropsFromInputColor = Pick<\n InputColorProps,\n | 'swatchSize'\n | 'palette'\n | 'value'\n | 'aria-describedby'\n | 'assistiveText'\n | 'columnSpan'\n | 'helpSourceLink'\n | 'helpSourceText'\n | 'isDisabled'\n | 'isReadonly'\n | 'isRequired'\n | 'isRequiredShown'\n | 'label'\n | 'labelEdge'\n | 'labelStartWidth'\n | 'messages'\n | 'textAlign'\n | 'testId'\n | 'userAssistanceDensity'\n | 'variant'\n>;\n\ntype Props = PickedPropsFromColorPicker &\n PickedPropsFromInputColor &\n PickedPropsFromDropdown &\n TestIdProps & {\n /**\n * Called when the dropdown or sheet is supposed to be closed.\n */\n onClose?: (detail: CloseDetail) => void;\n };\n\n/**\n * Component that renders ColorPicker either inside a dropdown or sheet; in mobile,\n * it renders inside a sheet. Additionally, when a dropdown is being shown beneath\n * the component, we also show any user assistance text or messages below the picker\n * because otherwise that information would be obscured from view. When a sheet is being\n * shown, it will always display UA and messages at the bottom of the sheet.\n */\nconst InputColorPickerDropdown = ({\n anchorRef,\n assistiveText,\n swatchSize,\n palette,\n helpSourceLink,\n helpSourceText,\n isDisabled,\n isOpen,\n isReadonly,\n label,\n onClose,\n onCommit,\n messages,\n testId,\n userAssistanceDensity,\n value\n}: Props) => {\n // If the dropdown opens above the component, we don't want to show UA or messages.\n const [isDropdownAbove, setDropdownAbove] = useState(false);\n const [prevIsOpen, setPrevIsOpen] = useState(isOpen);\n const handleDropdownPosition = useCallback<\n NonNullable<StickyPositioningDropdownProps['onPosition']>\n >((data: PositionData) => {\n setDropdownAbove(data.placement.startsWith('top'));\n }, []);\n // Reset the flag when the dropdown is closed.\n if (prevIsOpen !== isOpen) {\n setPrevIsOpen(isOpen);\n if (!isOpen) {\n setDropdownAbove(false);\n }\n }\n\n const sizeOptions: SizeOptions = {\n isMaxWidthAdjusted: false,\n isMaxHeightAdjusted: true\n };\n\n // On mobile phones, the dropdown becomes a sheet.\n const shouldShowSheet = isPhone();\n\n const { colorPicker_label } = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const colorPickerAriaLabel = colorPicker_label();\n\n const colorPickerMainContent = (\n <ColorPicker\n height={!shouldShowSheet ? 'auto' : undefined}\n onCommit={onCommit}\n // for sheet, we want the width to grow to the width of the sheet, otherwise it will use the theme default.\n maxWidth={shouldShowSheet ? '100%' : undefined}\n width=\"100%\"\n swatchSize={swatchSize}\n palette={palette}\n testId={testId}\n value={value}\n />\n );\n\n const inlineUserAssistanceFooter =\n isOpen &&\n (!isDropdownAbove || shouldShowSheet) &&\n !isDisabled &&\n !isReadonly &&\n (assistiveText || helpSourceLink || (messages && messages.length > 0)) &&\n (userAssistanceDensity === 'efficient' || userAssistanceDensity === 'reflow') ? (\n <FormFieldContext.Provider value={{ isFocused: true }}>\n <div class={userAssistanceStyles}>\n <InlineUserAssistance\n assistiveText={assistiveText}\n fieldLabel={label}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n messages={messages}\n userAssistanceDensity={userAssistanceDensity}\n />\n </div>\n </FormFieldContext.Provider>\n ) : undefined;\n\n const contentTestId = testId ? testId + (shouldShowSheet ? '_sheet' : '_dropdown') : undefined;\n\n // The same content is displayed either in a dropdown or sheet: color picker and inline UA.\n // Add styling to the dropdown to enforce a fixed width.\n const dropdownContent = (\n <div class={dropdownStyles}>\n <SectionedContent\n paddingBlockEnd=\"3.5x\"\n paddingBlockStart=\"3.5x\"\n paddingInlineEnd=\"3.5x\"\n paddingInlineStart=\"3.5x\"\n aria-label={colorPickerAriaLabel}\n footer={inlineUserAssistanceFooter}\n hasFocusTrap={true}\n main={colorPickerMainContent}\n role=\"dialog\"\n testId={contentTestId}\n />\n </div>\n );\n\n const dropdown = shouldShowSheet ? (\n <Sheet isOpen={isOpen} onClose={onClose}>\n <SectionedContent\n aria-label={colorPickerAriaLabel}\n footer={inlineUserAssistanceFooter}\n hasFocusTrap={true}\n main={colorPickerMainContent}\n role=\"dialog\"\n testId={contentTestId}\n />\n </Sheet>\n ) : (\n <StickyPositioningDropdown\n anchorRef={anchorRef}\n isOpen={isOpen}\n onClose={onClose}\n onPosition={handleDropdownPosition}\n sizeOptions={sizeOptions}>\n {dropdownContent}\n </StickyPositioningDropdown>\n );\n\n return dropdown;\n};\n\nconst isPhone = () => {\n return getClientHints().deviceType === 'phone';\n};\n\nexport { InputColorPickerDropdown, type CloseDetail };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { useReducer } from 'preact/hooks';\nimport { type ColorValue } from '#utils/UNSAFE_color';\n\ntype InputColorState = {\n /**\n * Represents the current color value of the component. The user either selected\n * the color in the picker, or typed it into the color field.\n */\n colorValue?: ColorValue;\n};\n\ntype ColorChangedAction = { type: 'colorChanged'; data?: ColorValue };\ntype ColorResetAction = { type: 'reset'; data?: ColorValue };\ntype ColorSelectedAction = { type: 'colorSelected'; data?: ColorValue };\ntype InputColorReducerAction = ColorChangedAction | ColorResetAction | ColorSelectedAction;\n\n// Use a reducer function to manage InputColorState.\nconst inputColorReducer = (\n state: InputColorState,\n action: InputColorReducerAction\n): InputColorState => {\n switch (action.type) {\n case 'colorChanged': {\n return {\n ...state,\n colorValue: action.data\n };\n }\n case 'colorSelected': {\n return { ...state, colorValue: action.data };\n }\n case 'reset': {\n return {\n colorValue: action.data\n };\n }\n default:\n return state;\n }\n};\n\ntype Props = {\n /**\n * The value of the InputColor, or undefined.\n */\n value?: ColorValue;\n};\n\n/**\n * useInputColorState calls useReducer to determine the initial state. Any changes to that state\n * are managed by dispatching actions to the reducer function.\n */\nconst useInputColorState = ({ value }: Props) => {\n const [state, dispatch] = useReducer(inputColorReducer, {\n colorValue: value\n });\n\n return { state, dispatch };\n};\n\nexport { useInputColorState };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport type { ComponentProps, RefObject } from 'preact';\nimport { useCallback, useEffect, useRef, useState } from 'preact/hooks';\nimport { ElementRef } from 'preact/compat';\nimport { colorsAreDifferent, type ColorValue } from '#utils/UNSAFE_color';\nimport { ColorPicker } from '#UNSAFE_ColorPicker';\nimport { ColorSwatch } from '#UNSAFE_ColorSwatch';\nimport { CloseDetail, InputColorPickerDropdown } from './InputColorPickerDropdown';\nimport { useInputColorState } from './useInputColorState';\nimport type { ValueUpdateDetail } from '#utils/UNSAFE_valueUpdateDetail';\nimport { useDownToggle } from '#hooks/UNSAFE_useDownToggle';\nimport { InputColorPublicProps as InputColorProps } from './InputColor.types';\n\ntype SwatchHandle = ElementRef<typeof ColorSwatch>;\n\ntype ColorPickerProps = ComponentProps<typeof ColorPicker>;\ntype ColorSwatchProps = ComponentProps<typeof ColorSwatch>;\ntype DropdownProps = ComponentProps<typeof InputColorPickerDropdown>;\n\ntype Props = {\n onCommit: InputColorProps['onCommit'];\n onInput: InputColorProps['onInput'];\n value: InputColorProps['value'];\n};\n\n/**\n * Hook that provides handlers and other functionality for InputColor.\n */\nconst useInputColor = ({ onCommit, onInput, value: currentValue }: Props) => {\n // Whether the dropdown is open.\n const [isOpen, setIsOpen] = useState<boolean>(false);\n\n // Ref to the swatch icon button.\n const iconRef: RefObject<SwatchHandle> = useRef<SwatchHandle>(null);\n\n // Ref to the text input which holds color value\n const colorRef: RefObject<HTMLInputElement> = useRef<HTMLInputElement>(null);\n\n // Keep track of whether the dropdown was just dismissed from an outside mousedown event.\n const outsideMousedownRef = useRef<boolean>(false);\n const outsideMousedownTimerRef = useRef<ReturnType<typeof setTimeout> | undefined>();\n\n // Keep track of the last color values passed to onInput and onCommit.\n const lastCommittedColorRef = useRef<ColorValue | undefined>(currentValue);\n const lastColorRef = useRef<ColorValue | undefined>(currentValue);\n\n // Keep track of the last controlled value passed from the parent, so we can detect a programmatic change.\n const lastValueFromParentRef = useRef<ColorValue | undefined>(currentValue);\n\n // Keep track of whether a color was selected in the color picker.\n const colorSelectedRef = useRef<boolean>(false);\n\n const { state, dispatch } = useInputColorState({ value: currentValue });\n\n // If a new value is being pushed from the parent, and that value differs from\n // the current value of the reducer, then this is a programmatic update\n // and we need to call 'reset' to update the reducer state. Otherwise, the only\n // time the reducer state is updated from the value is on mount.\n if (colorsAreDifferent(lastValueFromParentRef.current, currentValue)) {\n lastValueFromParentRef.current = currentValue;\n if (colorsAreDifferent(currentValue, state.colorValue)) {\n dispatch({ type: 'reset', data: currentValue });\n lastColorRef.current = currentValue;\n lastCommittedColorRef.current = currentValue;\n }\n }\n\n // Reducer updates are async, so wait until the state updates and then call our callbacks.\n useEffect(() => {\n if (colorsAreDifferent(state.colorValue, lastColorRef.current)) {\n onInput({ previousValue: lastColorRef.current, value: state.colorValue });\n lastColorRef.current = state.colorValue;\n }\n if (\n colorSelectedRef.current &&\n colorsAreDifferent(state.colorValue, lastCommittedColorRef.current)\n ) {\n onCommit?.({ previousValue: lastCommittedColorRef.current, value: state.colorValue });\n lastCommittedColorRef.current = state.colorValue;\n colorSelectedRef.current = false;\n }\n }, [onCommit, onInput, state.colorValue]);\n\n // Handle onInput from InputColor as values are entered in the input field.\n // We wait for the state to update before calling onInput.\n const colorInputHandler = useCallback<InputColorProps['onInput']>(\n (detail: ValueUpdateDetail<ColorValue>) => {\n dispatch({ type: 'colorChanged', data: detail.value });\n },\n [dispatch]\n );\n\n // Handle onCommit from InputColor, which is called when the user presses Enter or the field is blurred.\n const colorCommitHandler = useCallback<NonNullable<InputColorProps['onCommit']>>(() => {\n // If the current color value differs from the last committed value, then call onCommit.\n if (colorsAreDifferent(lastCommittedColorRef.current, state.colorValue)) {\n onCommit?.({ value: state.colorValue, previousValue: lastCommittedColorRef.current });\n lastCommittedColorRef.current = state.colorValue;\n }\n }, [onCommit, state.colorValue]);\n\n // Respond to onAction event from the swatch icon button. Toggles the color picker dropdown.\n const colorIconActionHandler = useCallback<NonNullable<ColorSwatchProps['onToggle']>>(() => {\n // Only toggle the value of isOpen if we didn't just dismiss the dropdown.\n if (!outsideMousedownRef.current) {\n setIsOpen((prevIsOpen) => !prevIsOpen);\n }\n outsideMousedownRef.current = false;\n }, []);\n\n const dropdownCloseHandler = useCallback<NonNullable<DropdownProps['onClose']>>(\n (detail: CloseDetail) => {\n // Keep track of when the dropdown is closed via outside mousedown, including when the swatch icon\n // is clicked. We need this in order to toggle visibility of the picker and dropdown.\n if (detail.reason === 'outsideMousedown') {\n outsideMousedownRef.current = true;\n clearTimeout(outsideMousedownTimerRef.current);\n\n // Clear the flag after a short delay to ensure the dropdown can be opened again.\n outsideMousedownTimerRef.current = setTimeout(() => {\n outsideMousedownRef.current = false;\n }, 200);\n } else if (detail.reason === 'dismissed' || detail.reason === 'keyboardDismissed') {\n // Focus the swatch icon when the dropdown is closed.\n iconRef.current?.focus();\n }\n setIsOpen(false);\n },\n []\n );\n\n // Handle color selection in the picker.\n // - Updates the value in state.\n // - Closes the dropdown.\n // - Sets focus to the color field.\n const colorPickerCommitHandler = useCallback<ColorPickerProps['onCommit']>(\n (detail: ValueUpdateDetail<ColorValue>) => {\n // Set focus to the swatch when a color is selected.\n iconRef.current?.focus();\n\n // Set a ref indicating a color was selected.\n colorSelectedRef.current = true;\n dispatch({ type: 'colorSelected', data: detail.value });\n setIsOpen(false);\n },\n [dispatch]\n );\n\n // The Redwood UX design calls for the dropdown to open when the down arrow is pressed.\n // Handle opening the dropdown when the down arrow is pressed in the text edit field.\n const colorPickerDownHandler = useCallback(() => {\n setIsOpen(true);\n }, []);\n\n const { triggerProps: containerDropdownProps } = useDownToggle({\n isOpen,\n onToggle: colorPickerDownHandler\n });\n\n return {\n colorIconActionHandler,\n colorPickerCommitHandler,\n dropdownCloseHandler,\n containerDropdownProps,\n colorValue: state.colorValue,\n iconRef,\n isOpen,\n colorCommitHandler,\n colorInputHandler,\n colorRef\n };\n};\n\nexport { useInputColor };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { Ref } from 'preact';\nimport { forwardRef, ElementRef } from 'preact/compat';\nimport { useCallback, useImperativeHandle, useRef } from 'preact/hooks';\nimport { type BundleType } from '../resources/nls/bundle';\nimport { type ColorValue, isValidColorValue } from '#utils/UNSAFE_color';\nimport { InputColorPickerDropdown } from './InputColorPickerDropdown';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { ValueUpdateDetail } from '#utils/UNSAFE_valueUpdateDetail';\nimport { ColorSwatch } from '#UNSAFE_ColorSwatch';\nimport { useInputColor } from './useInputColor';\n\nimport { useClearIcon } from '../hooks/UNSAFE_useClearIcon';\nimport { FocusableHandle, useFocusableTextField } from '../hooks/UNSAFE_useFocusableTextField';\nimport { useFormContext } from '../hooks/UNSAFE_useFormContext';\nimport { FormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { useHover } from '../hooks/UNSAFE_useHover';\nimport { useTextField } from '../hooks/UNSAFE_useTextField';\nimport { Label } from '../UNSAFE_Label';\n\nimport {\n ReadonlyTextField,\n ReadonlyTextFieldInput,\n TextField,\n TextFieldInput\n} from '../UNSAFE_TextField';\nimport { CompactUserAssistance, InlineUserAssistance } from '../UNSAFE_UserAssistance';\nimport { getClientHints } from '../utils/PRIVATE_clientHints';\nimport { ClearIcon } from '../PRIVATE_ClearIcon/ClearIcon';\nimport { useCurrentValueReducer } from '../hooks/UNSAFE_useCurrentValueReducer';\nimport { SelectableHandle, useSelectableTextField } from '#hooks/UNSAFE_useSelectableTextField';\nimport { mergeProps } from '#utils/UNSAFE_mergeProps';\nimport { InputColorPublicProps as Props } from './InputColor.types';\n\ntype SwatchHandle = ElementRef<typeof ColorSwatch>;\n\ntype FocusSelectHandle = FocusableHandle & SelectableHandle;\n\n/**\n * An Input Color is a form field that allows users to select or input a color value,\n * using a color picker or by enterihg a HEX code.\n */\nexport const InputColor = forwardRef(\n (\n {\n 'aria-describedby': ariaDescribedBy,\n swatchSize,\n palette,\n value,\n isDisabled: propIsDisabled,\n isReadonly: propIsReadonly,\n labelEdge: propLabelEdge,\n labelStartWidth: propLabelStartWidth,\n isRequiredShown = false,\n isRequired = false,\n placeholder,\n hasClearIcon,\n columnSpan,\n textAlign: propTextAlign,\n autoComplete,\n messages,\n assistiveText,\n helpSourceLink,\n helpSourceText,\n label,\n onCommit,\n onInput,\n testId,\n variant,\n userAssistanceDensity: propUserAssistanceDensity\n }: Props,\n ref?: Ref<FocusSelectHandle>\n ) => {\n const {\n colorIconActionHandler,\n colorPickerCommitHandler,\n dropdownCloseHandler,\n colorValue,\n containerDropdownProps,\n iconRef,\n isOpen,\n colorCommitHandler,\n colorInputHandler,\n colorRef: enabledElementRef\n } = useInputColor({\n onCommit,\n onInput,\n value\n });\n\n const mainFieldRef = useRef<HTMLDivElement>(null);\n const { inputColor_selectColor } = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const colorIconAriaLabel = inputColor_selectColor();\n const { onKeyDown, ...inputContainerAriaProps } = containerDropdownProps;\n\n const { currentCommitValue, dispatch } = useCurrentValueReducer({ value: colorValue });\n const onInputAndDispatch = useCallback(\n (detail: ValueUpdateDetail<ColorValue>) => {\n // Should dispatch happen first? This will queue up a re-render, ordering should not cause issues (this is async)\n dispatch({ type: 'input', payload: detail.value });\n colorInputHandler?.(detail);\n },\n [colorInputHandler, dispatch]\n );\n const onCommitAndDispatch = useCallback(\n (detail: ValueUpdateDetail<ColorValue>) => {\n // Should dispatch happen first? This will queue up a re-render, ordering should not cause issues (this is async)\n dispatch({ type: 'commit', payload: detail.value });\n colorCommitHandler?.(detail);\n },\n [colorCommitHandler, dispatch]\n );\n\n const startContent = () => (\n <ColorSwatch\n size=\"xs\"\n aria-haspopup={palette ? 'grid' : undefined} // with only palette, grid is a better choice than dialog for now.\n aria-label={palette ? colorIconAriaLabel : undefined}\n isDisabled={isDisabled}\n isButton={true}\n isTooltipDisabled={isOpen}\n ref={iconRef as Ref<SwatchHandle>}\n testId={testId ? testId + '_colorIcon' : undefined}\n value={currentCommitValue as ColorValue}\n onToggle={isDisabled || !palette ? undefined : colorIconActionHandler}\n />\n );\n const {\n isDisabled: isFormDisabled,\n isReadonly: isFormReadonly,\n labelEdge: formLabelEdge,\n labelStartWidth: formLabelStartWidth,\n textAlign: formTextAlign,\n userAssistanceDensity: formUserAssistanceDensity\n } = useFormContext();\n // default to FormContext values if component properties are not specified\n const isDisabled = propIsDisabled ?? isFormDisabled;\n const isReadonly = propIsReadonly ?? isFormReadonly;\n const labelEdge = propLabelEdge ?? formLabelEdge;\n const labelStartWidth = propLabelStartWidth ?? formLabelStartWidth;\n const textAlign = propTextAlign ?? formTextAlign;\n const userAssistanceDensity = propUserAssistanceDensity ?? formUserAssistanceDensity;\n\n const readonlyElementRef = useRef<HTMLDivElement>(null);\n\n const {\n focusProps,\n isFocused,\n methods: focusMethods\n } = useFocusableTextField<HTMLInputElement, HTMLDivElement>({\n isDisabled,\n isReadonly,\n enabledElementRef,\n readonlyElementRef\n });\n\n const { methods: selectMethods } = useSelectableTextField<HTMLInputElement>(enabledElementRef);\n\n useImperativeHandle(ref!, () => mergeProps(focusMethods, selectMethods), [\n focusMethods,\n selectMethods\n ]);\n\n const { hoverProps, isHover } = useHover({ isDisabled: isReadonly || isDisabled || false });\n\n const { formFieldContext, inputProps, labelProps, textFieldProps, userAssistanceProps } =\n useTextField({\n ariaDescribedBy,\n helpSourceLink,\n helpSourceText,\n isDisabled,\n isFocused: isFocused || isOpen,\n isReadonly,\n isRequiredShown,\n labelEdge,\n messages,\n styleVariant: variant,\n userAssistanceDensity,\n value: colorValue\n });\n\n const onClickClearIcon = useCallback(() => {\n // Clicking the clear icon should put the focus on the input field\n enabledElementRef.current?.focus();\n // Send an event to clear the field's value if the value is not already cleared\n const nextValue = undefined;\n if (colorValue === nextValue) return;\n onInputAndDispatch?.({ previousValue: colorValue, value: nextValue });\n }, [onInputAndDispatch, colorValue, enabledElementRef]);\n\n const maybeClearIcon = useClearIcon({\n clearIcon: <ClearIcon onClick={onClickClearIcon} testId={`${testId}_clearicon`} />,\n display: hasClearIcon,\n hasValue: formFieldContext.hasValue,\n isFocused,\n isEnabled: !isReadonly && !isDisabled,\n isHover\n });\n\n const hasInsideLabel = label !== undefined && labelEdge === 'inside';\n\n const labelComp = labelEdge !== 'none' ? <Label {...labelProps}>{label}</Label> : undefined;\n\n const fieldLabelProps = {\n label: labelEdge !== 'none' ? labelComp : undefined,\n labelEdge: labelEdge !== 'none' ? labelEdge : undefined,\n labelStartWidth: labelEdge !== 'none' ? labelStartWidth : undefined\n };\n\n const ariaLabel = labelEdge === 'none' ? label : undefined;\n const isInlineDensity =\n userAssistanceDensity === 'efficient' || userAssistanceDensity === 'reflow';\n\n const inlineUserAssistance = isInlineDensity ? (\n isDisabled || isReadonly ? (\n // save space for user assistance if density is 'efficient', even though we don't\n // render user assistance for disabled or readonly fields\n userAssistanceDensity !== 'efficient' ? undefined : (\n <InlineUserAssistance\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n )\n ) : (\n <InlineUserAssistance\n assistiveText={assistiveText}\n fieldLabel={label}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n messages={messages}\n isRequiredShown={isRequiredShown}\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n )\n ) : undefined;\n\n const aRef = useRef<HTMLDivElement>(null);\n const anchorRef = mainFieldRef ?? aRef;\n\n const compactUserAssistance =\n userAssistanceDensity === 'compact' ? (\n <CompactUserAssistance\n anchorRef={anchorRef}\n messages={messages}\n assistiveText={assistiveText}\n {...userAssistanceProps}\n />\n ) : undefined;\n\n const mainContent = isReadonly ? (\n <ReadonlyTextFieldInput\n aria-describedby={inputProps['aria-describedby']}\n aria-label={ariaLabel}\n aria-labelledby={labelProps.id}\n as=\"div\"\n elementRef={readonlyElementRef}\n textAlign={textAlign}\n value={colorValue}\n hasEmptyLabel={label === '' && labelEdge === 'none'}\n hasInsideLabel={hasInsideLabel}\n />\n ) : (\n <TextFieldInput\n aria-labelledby={labelProps.id}\n aria-label={ariaLabel}\n autoComplete={autoComplete}\n currentCommitValue={currentCommitValue}\n hasEmptyLabel={label === '' && labelEdge === 'none'}\n hasEndContent={false}\n hasInsideLabel={labelComp !== undefined && labelEdge === 'inside'}\n hasStartContent={true}\n inputRef={enabledElementRef}\n isRequired={isRequired}\n placeholder={placeholder}\n textAlign={textAlign}\n type={isMobile() ? 'text' : undefined}\n value={colorValue}\n onCommit={\n onCommitAndDispatch as (detail: ValueUpdateDetail<string>) => {\n value: string;\n }\n }\n onInput={\n onInputAndDispatch as (detail: ValueUpdateDetail<string>) => {\n value: string;\n }\n }\n onKeyDown={onKeyDown}\n {...inputProps}\n />\n );\n\n return (\n <>\n <FormFieldContext.Provider value={formFieldContext}>\n {isReadonly ? (\n <ReadonlyTextField\n role=\"presentation\"\n columnSpan={columnSpan}\n compactUserAssistance={compactUserAssistance}\n inlineUserAssistance={inlineUserAssistance}\n onBlur={focusProps.onFocusOut}\n onFocus={focusProps.onFocusIn}\n ref={anchorRef}\n mainContent={mainContent}\n testId={testId}\n {...fieldLabelProps}></ReadonlyTextField>\n ) : (\n <TextField\n endContent={maybeClearIcon}\n columnSpan={columnSpan}\n compactUserAssistance={compactUserAssistance}\n inlineUserAssistance={inlineUserAssistance}\n mainContent={mainContent}\n onBlur={focusProps.onFocusOut}\n onFocus={focusProps.onFocusIn}\n startContent={startContent()}\n mainFieldRef={anchorRef}\n hasZeroStartMargin={true}\n testId={testId}\n {...textFieldProps}\n {...fieldLabelProps}\n {...hoverProps}\n {...inputContainerAriaProps}\n />\n )}\n </FormFieldContext.Provider>\n\n {isOpen && !isReadonly && !isDisabled && (\n <InputColorPickerDropdown\n anchorRef={mainFieldRef}\n assistiveText={assistiveText}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n isDisabled={isDisabled}\n isReadonly={isReadonly}\n isOpen={isOpen}\n label={label}\n onClose={dropdownCloseHandler}\n onCommit={colorPickerCommitHandler}\n messages={messages}\n testId={testId ? testId + '_colorPicker' : undefined}\n userAssistanceDensity={userAssistanceDensity}\n // memoize this for performance\n value={colorValue && isValidColorValue(colorValue) ? colorValue : undefined}\n palette={palette}\n swatchSize={swatchSize}\n />\n )}\n </>\n );\n }\n);\n\n/**\n * Helper function to determine whether the current device is a mobile device\n * @returns true if running on a mobile device, false otherwise\n */\nfunction isMobile() {\n const deviceType = getClientHints().deviceType;\n return deviceType === 'phone' || deviceType === 'tablet';\n}\nInputColor.displayName = 'InputColor';\n"],"names":["InputColorPickerDropdown","anchorRef","assistiveText","swatchSize","palette","helpSourceLink","helpSourceText","isDisabled","isOpen","isReadonly","label","onClose","onCommit","messages","testId","userAssistanceDensity","value","isDropdownAbove","setDropdownAbove","useState","prevIsOpen","setPrevIsOpen","handleDropdownPosition","useCallback","data","placement","startsWith","shouldShowSheet","isPhone","colorPicker_label","useTranslationBundle","colorPickerAriaLabel","colorPickerMainContent","_jsx","ColorPicker","height","undefined","maxWidth","width","inlineUserAssistanceFooter","length","FormFieldContext","Provider","isFocused","children","jsx","class","userAssistanceStyles","InlineUserAssistance","fieldLabel","contentTestId","dropdownContent","dropdownStyles","SectionedContent","paddingBlockEnd","paddingBlockStart","paddingInlineEnd","paddingInlineStart","footer","hasFocusTrap","main","role","Sheet","StickyPositioningDropdown","onPosition","sizeOptions","isMaxWidthAdjusted","isMaxHeightAdjusted","getClientHints","deviceType","inputColorReducer","state","action","type","colorValue","useInputColor","onInput","currentValue","setIsOpen","iconRef","useRef","colorRef","outsideMousedownRef","outsideMousedownTimerRef","lastCommittedColorRef","lastColorRef","lastValueFromParentRef","colorSelectedRef","dispatch","useReducer","useInputColorState","colorsAreDifferent","current","useEffect","previousValue","colorInputHandler","detail","colorCommitHandler","colorIconActionHandler","dropdownCloseHandler","reason","clearTimeout","setTimeout","focus","colorPickerCommitHandler","colorPickerDownHandler","triggerProps","containerDropdownProps","useDownToggle","onToggle","InputColor","forwardRef","ariaDescribedBy","propIsDisabled","propIsReadonly","labelEdge","propLabelEdge","labelStartWidth","propLabelStartWidth","isRequiredShown","isRequired","placeholder","hasClearIcon","columnSpan","textAlign","propTextAlign","autoComplete","variant","propUserAssistanceDensity","ref","enabledElementRef","mainFieldRef","inputColor_selectColor","colorIconAriaLabel","onKeyDown","inputContainerAriaProps","currentCommitValue","useCurrentValueReducer","onInputAndDispatch","payload","onCommitAndDispatch","isFormDisabled","isFormReadonly","formLabelEdge","formLabelStartWidth","formTextAlign","formUserAssistanceDensity","useFormContext","readonlyElementRef","focusProps","methods","focusMethods","useFocusableTextField","selectMethods","useSelectableTextField","useImperativeHandle","mergeProps","hoverProps","isHover","useHover","formFieldContext","inputProps","labelProps","textFieldProps","userAssistanceProps","useTextField","styleVariant","onClickClearIcon","nextValue","maybeClearIcon","useClearIcon","clearIcon","ClearIcon","onClick","display","hasValue","isEnabled","hasInsideLabel","labelComp","Label","fieldLabelProps","ariaLabel","inlineUserAssistance","aRef","compactUserAssistance","CompactUserAssistance","mainContent","ReadonlyTextFieldInput","id","as","elementRef","hasEmptyLabel","TextFieldInput","hasEndContent","hasStartContent","inputRef","isMobile","_jsxs","ReadonlyTextField","onBlur","onFocusOut","onFocus","onFocusIn","TextField","endContent","startContent","ColorSwatch","size","isButton","isTooltipDisabled","hasZeroStartMargin","isValidColorValue","displayName"],"mappings":"ixFAwEA,MAAMA,GAA2B,EAC/BC,YACAC,gBACAC,aACAC,UACAC,iBACAC,iBACAC,aACAC,SACAC,aACAC,QACAC,UACAC,WACAC,WACAC,SACAC,wBACAC,YAGA,MAAOC,EAAiBC,GAAoBC,EAAQA,UAAC,IAC9CC,EAAYC,GAAiBF,EAAQA,SAACX,GACvCc,EAAyBC,eAE5BC,IACDN,EAAiBM,EAAKC,UAAUC,WAAW,OAAO,GACjD,IAECN,IAAeZ,IACjBa,EAAcb,GACTA,GACHU,GAAiB,IAIrB,MAMMS,EAAkBC,MAElBC,kBAAEA,GAAsBC,EAAoBA,qBAAa,4BACzDC,EAAuBF,IAEvBG,EACJC,MAACC,EAAAA,YACC,CAAAC,OAASR,OAA2BS,EAAT,OAC3BxB,SAAUA,EAEVyB,SAAUV,EAAkB,YAASS,EACrCE,MAAM,OACNnC,WAAYA,EACZC,QAASA,EACTU,OAAQA,EACRE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