@oracle/oraclejet-preact 19.0.2 → 19.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (613) hide show
  1. package/amd/ActionCard-eb924a00.js +1 -1
  2. package/amd/{BarChart-8521c53a.js → BarChart-d94f9c56.js} +2 -2
  3. package/amd/{BarChart-8521c53a.js.map → BarChart-d94f9c56.js.map} +1 -1
  4. package/amd/{BaseButton-d69319ea.js → BaseButton-2c9850cb.js} +2 -2
  5. package/amd/{BaseButton-d69319ea.js.map → BaseButton-2c9850cb.js.map} +1 -1
  6. package/amd/BaseCardView-bc694015.js +1 -1
  7. package/amd/{BaseCardViewSelectionTest-4fae7370.js → BaseCardViewSelectionTest-edac2bbb.js} +2 -2
  8. package/amd/{BaseCardViewSelectionTest-4fae7370.js.map → BaseCardViewSelectionTest-edac2bbb.js.map} +1 -1
  9. package/amd/BaseNavigationListItem-cb5c260b.js +1 -1
  10. package/amd/BaseRichSelection-7f20b3af.js +1 -1
  11. package/amd/BaseSwatchView-4d204ce0.js +1 -1
  12. package/amd/BaseTabBarItem-cdec0e90.js +1 -1
  13. package/amd/Button-bd886c04.js +2 -0
  14. package/amd/{Button-d6bbc57f.js.map → Button-bd886c04.js.map} +1 -1
  15. package/amd/ButtonSet-ce95318d.js +1 -1
  16. package/amd/ButtonSetButton-af5f14b6.js +1 -1
  17. package/amd/ButtonSetIconButton-f3c6a05e.js +1 -1
  18. package/amd/Card-b62c2442.js +2 -0
  19. package/amd/{Card-6e7189a3.js.map → Card-b62c2442.js.map} +1 -1
  20. package/amd/{Center-50b6397c.js → Center-45b0c778.js} +2 -2
  21. package/amd/{Center-50b6397c.js.map → Center-45b0c778.js.map} +1 -1
  22. package/amd/{Chart-061335fe.js → Chart-3108fa88.js} +2 -2
  23. package/amd/{Chart-061335fe.js.map → Chart-3108fa88.js.map} +1 -1
  24. package/amd/Checkbox-8160d2e6.js +1 -1
  25. package/amd/CheckboxControl-c5240f9a.js +1 -1
  26. package/amd/CheckboxRadioField-18bf3cc2.js +1 -1
  27. package/amd/CheckboxRadioLabelValueLayout-edb44215.js +1 -1
  28. package/amd/Chip-b62a8126.js +1 -1
  29. package/amd/ClearIcon-13bd61d3.js +1 -1
  30. package/amd/CollapseIcon-8d26ba2a.js +1 -1
  31. package/amd/Collapsible-bf6945f6.js +1 -1
  32. package/amd/ColorPalette-b26f3861.js +1 -1
  33. package/amd/ColorPicker-8ef0b6e0.js +2 -0
  34. package/amd/{ColorPicker-d578df9c.js.map → ColorPicker-8ef0b6e0.js.map} +1 -1
  35. package/amd/ColorSwatch-57d78771.js +1 -1
  36. package/amd/{ComboChart-f3876b51.js → ComboChart-e61b5581.js} +2 -2
  37. package/amd/{ComboChart-f3876b51.js.map → ComboChart-e61b5581.js.map} +1 -1
  38. package/amd/CompactHelpSource-103a8263.js +1 -1
  39. package/amd/{CompactLabelAssistance-deb90940.js → CompactLabelAssistance-7ec99e08.js} +2 -2
  40. package/amd/{CompactLabelAssistance-deb90940.js.map → CompactLabelAssistance-7ec99e08.js.map} +1 -1
  41. package/amd/CompactUserAssistance-5ef03b0a.js +1 -1
  42. package/amd/ComponentMessageContainer-7d775a43.js +1 -1
  43. package/amd/ConveyorBelt-b9ab13cc.js +1 -1
  44. package/amd/{DatePicker-a07542a8.js → DatePicker-266c4b4e.js} +2 -2
  45. package/amd/{DatePicker-a07542a8.js.map → DatePicker-266c4b4e.js.map} +1 -1
  46. package/amd/DatePickerHeader-25b87f04.js +1 -1
  47. package/amd/Diagram-461719eb.js +1 -1
  48. package/amd/{Dialog-304ce274.js → Dialog-2e5ca26a.js} +2 -2
  49. package/amd/{Dialog-304ce274.js.map → Dialog-2e5ca26a.js.map} +1 -1
  50. package/amd/DirectionalCollapseArrowIcon-6777ae07.js +1 -1
  51. package/amd/DirectionalExpandArrowIcon-21d0b1d5.js +1 -1
  52. package/amd/{DragHandle-9d141cf3.js → DragHandle-68918f40.js} +2 -2
  53. package/amd/{DragHandle-9d141cf3.js.map → DragHandle-68918f40.js.map} +1 -1
  54. package/amd/{DrawerPopup-2b59d7f3.js → DrawerPopup-8d62ed90.js} +2 -2
  55. package/amd/{DrawerPopup-2b59d7f3.js.map → DrawerPopup-8d62ed90.js.map} +1 -1
  56. package/amd/{Dropdown-c119d072.js → Dropdown-9d52501e.js} +2 -2
  57. package/amd/{Dropdown-c119d072.js.map → Dropdown-9d52501e.js.map} +1 -1
  58. package/amd/{EmbeddedIconButton-23c53268.js → EmbeddedIconButton-7a2a1a8c.js} +2 -2
  59. package/amd/{EmbeddedIconButton-23c53268.js.map → EmbeddedIconButton-7a2a1a8c.js.map} +1 -1
  60. package/amd/{EnvironmentProvider-d538fcb2.js → EnvironmentProvider-fb09fcfb.js} +2 -2
  61. package/amd/{EnvironmentProvider-d538fcb2.js.map → EnvironmentProvider-fb09fcfb.js.map} +1 -1
  62. package/amd/ExpandableList-08269646.js +1 -1
  63. package/amd/Expander-9efeb845.js +1 -1
  64. package/amd/FilePicker-e5a20eaa.js +1 -1
  65. package/amd/FlatTreeView-6545afce.js +1 -1
  66. package/amd/{Flex-07d2aa5b.js → Flex-4bc3a394.js} +2 -2
  67. package/amd/{Flex-07d2aa5b.js.map → Flex-4bc3a394.js.map} +1 -1
  68. package/amd/{Floating-8192acb2.js → Floating-366a30f8.js} +2 -2
  69. package/amd/{Floating-8192acb2.js.map → Floating-366a30f8.js.map} +1 -1
  70. package/amd/FormLayout-ce4e956c.js +1 -1
  71. package/amd/Gantt-ad770490.js +1 -1
  72. package/amd/{Grid-d415ba8d.js → Grid-2ddec30a.js} +2 -2
  73. package/amd/{Grid-d415ba8d.js.map → Grid-2ddec30a.js.map} +1 -1
  74. package/amd/{Gridlines-c6c1fbb5.js → Gridlines-545ae30a.js} +2 -2
  75. package/amd/{Gridlines-c6c1fbb5.js.map → Gridlines-545ae30a.js.map} +1 -1
  76. package/amd/GroupLoadingIndicator-87f32efc.js +1 -1
  77. package/amd/{HighlightText-ecd2e5ce.js → HighlightText-ace1b6c4.js} +2 -2
  78. package/amd/{HighlightText-ecd2e5ce.js.map → HighlightText-ace1b6c4.js.map} +1 -1
  79. package/amd/Icon-865b3c78.js +1 -1
  80. package/amd/IconButton-232d63fc.js +1 -1
  81. package/amd/IconMenuButton-eef4b2da.js +1 -1
  82. package/amd/IconProgressButton-f9cdb23a.js +1 -1
  83. package/amd/IconSwitchButton-5be99684.js +1 -1
  84. package/amd/IconToggleButton-b783604a.js +1 -1
  85. package/amd/{IconUserAssistance-0c55d53f.js → IconUserAssistance-af9839fb.js} +2 -2
  86. package/amd/{IconUserAssistance-0c55d53f.js.map → IconUserAssistance-af9839fb.js.map} +1 -1
  87. package/amd/Indexer-bbb763a7.js +1 -1
  88. package/amd/InlineHelpSource-34ec0779.js +1 -1
  89. package/amd/InlineSelectSingle-bebf92d3.js +1 -1
  90. package/amd/InlineUserAssistance-e406e352.js +1 -1
  91. package/amd/{InputColor-192a309b.js → InputColor-5315b76a.js} +2 -2
  92. package/amd/{InputColor-192a309b.js.map → InputColor-5315b76a.js.map} +1 -1
  93. package/amd/InputDateMask-2fdb6f26.js +1 -1
  94. package/amd/InputDatePicker-a1eea599.js +1 -1
  95. package/amd/InputPassword-72147893.js +1 -1
  96. package/amd/InputSensitiveText-28cebe14.js +1 -1
  97. package/amd/InputText-83b55089.js +1 -1
  98. package/amd/Label-3c17bcc9.js +1 -1
  99. package/amd/LabelValueLayout-39dc1be3.js +1 -1
  100. package/amd/Layer-dc3c1ac9.js +2 -0
  101. package/amd/{Layer-c91c7141.js.map → Layer-dc3c1ac9.js.map} +1 -1
  102. package/amd/{LayerHost-daf96749.js → LayerHost-7d4aa6d3.js} +2 -2
  103. package/amd/{LayerHost-daf96749.js.map → LayerHost-7d4aa6d3.js.map} +1 -1
  104. package/amd/{LayerManager-8bad71b0.js → LayerManager-4983f21c.js} +2 -2
  105. package/amd/{LayerManager-8bad71b0.js.map → LayerManager-4983f21c.js.map} +1 -1
  106. package/amd/Legend-a8e9f523.js +1 -1
  107. package/amd/{LineAreaChart-07848f77.js → LineAreaChart-f8aefe07.js} +2 -2
  108. package/amd/{LineAreaChart-07848f77.js.map → LineAreaChart-f8aefe07.js.map} +1 -1
  109. package/amd/Link-c772dbef.js +1 -1
  110. package/amd/List-5b5b3bd7.js +1 -1
  111. package/amd/{ListItemLayout-50d0c8fa.js → ListItemLayout-83b78862.js} +2 -2
  112. package/amd/{ListItemLayout-50d0c8fa.js.map → ListItemLayout-83b78862.js.map} +1 -1
  113. package/amd/ListView-02b5ba6d.js +1 -1
  114. package/amd/LiveRegion-4b9317e5.js +2 -0
  115. package/amd/{LiveRegion-ef77cf92.js.map → LiveRegion-4b9317e5.js.map} +1 -1
  116. package/amd/{MaxLengthLiveRegion-04832e9d.js → MaxLengthLiveRegion-1f30f975.js} +2 -2
  117. package/amd/{MaxLengthLiveRegion-04832e9d.js.map → MaxLengthLiveRegion-1f30f975.js.map} +1 -1
  118. package/amd/Menu-45a26116.js +1 -1
  119. package/amd/MenuButton-0a9c6e8e.js +1 -1
  120. package/amd/MenuItem-ff1cd14d.js +1 -1
  121. package/amd/Message-d715942d.js +1 -1
  122. package/amd/{MessageLayer-5a8ba5af.js → MessageLayer-8df59ea9.js} +2 -2
  123. package/amd/{MessageLayer-5a8ba5af.js.map → MessageLayer-8df59ea9.js.map} +1 -1
  124. package/amd/MessageToast-44f7b49d.js +1 -1
  125. package/amd/MessagesManager-1a6283c1.js +1 -1
  126. package/amd/MeterBar-e417440c.js +1 -1
  127. package/amd/MeterCircle-d2ac0a67.js +1 -1
  128. package/amd/{Modal-1b3cd230.js → Modal-8d647f76.js} +2 -2
  129. package/amd/{Modal-1b3cd230.js.map → Modal-8d647f76.js.map} +1 -1
  130. package/amd/{MonthView-e2744696.js → MonthView-48d59de4.js} +2 -2
  131. package/amd/{MonthView-e2744696.js.map → MonthView-48d59de4.js.map} +1 -1
  132. package/amd/NavigationListItem-73686e95.js +1 -1
  133. package/amd/NavigationListLinkItem-87d5ca3d.js +1 -1
  134. package/amd/NumberInputText-01c1859f.js +1 -1
  135. package/amd/OverflowTabBarItem-b75ebe9b.js +1 -1
  136. package/amd/PRIVATE_BaseCardView.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_ContainerDiagram.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_SwatchFlexView.js +1 -1
  167. package/amd/PRIVATE_Table.js +1 -1
  168. package/amd/PRIVATE_ThemedIcons/CalendarIcon.js +1 -1
  169. package/amd/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +1 -1
  170. package/amd/PRIVATE_ThemedIcons/ChartPanIcon.js +1 -1
  171. package/amd/PRIVATE_ThemedIcons/ChartZoomIcon.js +1 -1
  172. package/amd/PRIVATE_ThemedIcons/CheckIcon.js +1 -1
  173. package/amd/PRIVATE_ThemedIcons/CheckboxCrossedIcon.js +1 -1
  174. package/amd/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +1 -1
  175. package/amd/PRIVATE_ThemedIcons/CheckboxOffIcon.js +1 -1
  176. package/amd/PRIVATE_ThemedIcons/CheckboxOnIcon.js +1 -1
  177. package/amd/PRIVATE_ThemedIcons/CloseIcon.js +1 -1
  178. package/amd/PRIVATE_ThemedIcons/CollapseIcon.js +1 -1
  179. package/amd/PRIVATE_ThemedIcons/CollapseUpIcon.js +1 -1
  180. package/amd/PRIVATE_ThemedIcons/DecrementIcon.js +1 -1
  181. package/amd/PRIVATE_ThemedIcons/DeleteIcon.js +1 -1
  182. package/amd/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +1 -1
  183. package/amd/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +1 -1
  184. package/amd/PRIVATE_ThemedIcons/DragHandleIcon.js +1 -1
  185. package/amd/PRIVATE_ThemedIcons/DropdownArrowIcon.js +1 -1
  186. package/amd/PRIVATE_ThemedIcons/ExpandIcon.js +1 -1
  187. package/amd/PRIVATE_ThemedIcons/HelpIcon.js +1 -1
  188. package/amd/PRIVATE_ThemedIcons/IncrementIcon.js +1 -1
  189. package/amd/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +1 -1
  190. package/amd/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +1 -1
  191. package/amd/PRIVATE_ThemedIcons/MessageErrorIcon.js +1 -1
  192. package/amd/PRIVATE_ThemedIcons/MessageInfoIcon.js +1 -1
  193. package/amd/PRIVATE_ThemedIcons/MessageWarningIcon.js +1 -1
  194. package/amd/PRIVATE_ThemedIcons/MinusIcon.js +1 -1
  195. package/amd/PRIVATE_ThemedIcons/NavDownIcon.js +1 -1
  196. package/amd/PRIVATE_ThemedIcons/None.js +1 -1
  197. package/amd/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +1 -1
  198. package/amd/PRIVATE_ThemedIcons/PlusIcon.js +1 -1
  199. package/amd/PRIVATE_ThemedIcons/RadioOffIcon.js +1 -1
  200. package/amd/PRIVATE_ThemedIcons/RadioOnIcon.js +1 -1
  201. package/amd/PRIVATE_ThemedIcons/SortAscendingIcon.js +1 -1
  202. package/amd/PRIVATE_ThemedIcons/SortDescendingIcon.js +1 -1
  203. package/amd/PRIVATE_ThemedIcons/ViewHideIcon.js +1 -1
  204. package/amd/PRIVATE_ThemedIcons/ViewIcon.js +1 -1
  205. package/amd/PRIVATE_TimeComponent.js +1 -1
  206. package/amd/PRIVATE_VisOverview.js +1 -1
  207. package/amd/PRIVATE_VisTabularDatatip.js +1 -1
  208. package/amd/PictoChart-34f56e1c.js +1 -1
  209. package/amd/PieChart-c934e8f0.js +1 -1
  210. package/amd/{Popup-695781d6.js → Popup-062b66ff.js} +2 -2
  211. package/amd/{Popup-695781d6.js.map → Popup-062b66ff.js.map} +1 -1
  212. package/amd/{ProgressBar-70983add.js → ProgressBar-9aed0a47.js} +2 -2
  213. package/amd/{ProgressBar-70983add.js.map → ProgressBar-9aed0a47.js.map} +1 -1
  214. package/amd/ProgressButton-e6a1d457.js +1 -1
  215. package/amd/ProgressButtonLabelLayout-0931b1d5.js +1 -1
  216. package/amd/{ProgressCircle-551b98ed.js → ProgressCircle-0001dec1.js} +2 -2
  217. package/amd/{ProgressCircle-551b98ed.js.map → ProgressCircle-0001dec1.js.map} +1 -1
  218. package/amd/RadioItem-49626d64.js +1 -1
  219. package/amd/RatingGauge-e7a36731.js +1 -1
  220. package/amd/ReadonlyTextFieldInput-e5723c48.js +1 -1
  221. package/amd/RemovableTabBarItem-c7dd457b.js +1 -1
  222. package/amd/ReorderableTabBar-5d664f67.js +1 -1
  223. package/amd/RevealToggleIcon-28c5efc5.js +1 -1
  224. package/amd/{ScatterChart-292935ff.js → ScatterChart-1999acf0.js} +2 -2
  225. package/amd/{ScatterChart-292935ff.js.map → ScatterChart-1999acf0.js.map} +1 -1
  226. package/amd/SectionalLegend-a37ee0ec.js +1 -1
  227. package/amd/SectionedContent-bae8af88.js +2 -0
  228. package/amd/{SectionedContent-054e2fc2.js.map → SectionedContent-bae8af88.js.map} +1 -1
  229. package/amd/SelectMobileFieldInput-3650e1fe.js +1 -1
  230. package/amd/SelectMultiple-8dce10da.js +1 -1
  231. package/amd/SelectSingle-6d1f640f.js +1 -1
  232. package/amd/SelectionCard-e5665725.js +2 -0
  233. package/amd/{SelectionCard-601660df.js.map → SelectionCard-e5665725.js.map} +1 -1
  234. package/amd/Selector-470f114d.js +1 -1
  235. package/amd/{SelectorAll-82589ce2.js → SelectorAll-ac6005c5.js} +2 -2
  236. package/amd/{SelectorAll-82589ce2.js.map → SelectorAll-ac6005c5.js.map} +1 -1
  237. package/amd/{Sheet-c7f3fe2d.js → Sheet-fdd314ac.js} +2 -2
  238. package/amd/{Sheet-c7f3fe2d.js.map → Sheet-fdd314ac.js.map} +1 -1
  239. package/amd/SortControl-6d8e62c0.js +1 -1
  240. package/amd/SplitMenuButton-ba7fc113.js +1 -1
  241. package/amd/{StyledCard-8dbd5d58.js → StyledCard-f72bdcc4.js} +2 -2
  242. package/amd/{StyledCard-8dbd5d58.js.map → StyledCard-f72bdcc4.js.map} +1 -1
  243. package/amd/{StyledLabelValueLayout-5737d116.js → StyledLabelValueLayout-5a476d38.js} +2 -2
  244. package/amd/{StyledLabelValueLayout-5737d116.js.map → StyledLabelValueLayout-5a476d38.js.map} +1 -1
  245. package/amd/StyledTextField-5e554e5b.js +1 -1
  246. package/amd/Submenu-d0c548f0.js +1 -1
  247. package/amd/TabBar-fa06f492.js +1 -1
  248. package/amd/TabBarContextMenu-cad0a362.js +1 -1
  249. package/amd/TabBarLayout-9f802535.js +1 -1
  250. package/amd/TabBarMixed-2d5bc172.js +1 -1
  251. package/amd/TabBarMixedSeparator-4c6ad368.js +2 -0
  252. package/amd/{TabBarMixedSeparator-07022bdc.js.map → TabBarMixedSeparator-4c6ad368.js.map} +1 -1
  253. package/amd/Table-d0cc2468.js +1 -1
  254. package/amd/TagCloud-ccd75f37.js +1 -1
  255. package/amd/TextArea-ddd1d6b9.js +1 -1
  256. package/amd/TextAreaAutosize-3cf8e06c.js +1 -1
  257. package/amd/TextField-51b63f5f.js +1 -1
  258. package/amd/TextFieldInput-eb40adaa.js +1 -1
  259. package/amd/Theme-redwood/theme.css +194 -194
  260. package/amd/Theme-stable/theme.css +238 -238
  261. package/amd/TimeComponentCanvas2D-02d13a18.js +1 -1
  262. package/amd/ToggleButton-9201e07b.js +1 -1
  263. package/amd/Toolbar-4b2c5d5e.js +1 -1
  264. package/amd/TruncatingBadge-2d00ef48.js +1 -1
  265. package/amd/TruncatingText-459021db.js +1 -1
  266. package/amd/UNSAFE_ActionCard.js +1 -1
  267. package/amd/UNSAFE_BarChart/__test__/BarChart.spec.js +1 -1
  268. package/amd/UNSAFE_BarChart.js +1 -1
  269. package/amd/UNSAFE_BareButton.js +1 -1
  270. package/amd/UNSAFE_BaseButton.js +1 -1
  271. package/amd/UNSAFE_Button.js +1 -1
  272. package/amd/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +1 -1
  273. package/amd/UNSAFE_ButtonSet.js +1 -1
  274. package/amd/UNSAFE_ButtonSetButton.js +1 -1
  275. package/amd/UNSAFE_ButtonSetIconButton.js +1 -1
  276. package/amd/UNSAFE_ButtonSetItem.js +1 -1
  277. package/amd/UNSAFE_ButtonSetMultiple.js +1 -1
  278. package/amd/UNSAFE_ButtonSetSingle.js +1 -1
  279. package/amd/UNSAFE_Card.js +1 -1
  280. package/amd/UNSAFE_CardFlexView.js +1 -1
  281. package/amd/UNSAFE_CardGridView.js +1 -1
  282. package/amd/UNSAFE_Center.js +1 -1
  283. package/amd/UNSAFE_Checkbox.js +1 -1
  284. package/amd/UNSAFE_CheckboxItem.js +1 -1
  285. package/amd/UNSAFE_CheckboxRadioField.js +1 -1
  286. package/amd/UNSAFE_CheckboxSet.js +1 -1
  287. package/amd/UNSAFE_Chip.js +1 -1
  288. package/amd/UNSAFE_Collapsible.js +1 -1
  289. package/amd/UNSAFE_ColorPalette.js +1 -1
  290. package/amd/UNSAFE_ColorPicker.js +1 -1
  291. package/amd/UNSAFE_ColorSwatch.js +1 -1
  292. package/amd/UNSAFE_ComboChart.js +1 -1
  293. package/amd/UNSAFE_ComponentMessage.js +1 -1
  294. package/amd/UNSAFE_ConveyorBelt.js +1 -1
  295. package/amd/UNSAFE_DatePicker.js +1 -1
  296. package/amd/UNSAFE_Diagram.js +1 -1
  297. package/amd/UNSAFE_Dialog.js +1 -1
  298. package/amd/UNSAFE_DragHandle.js +1 -1
  299. package/amd/UNSAFE_DrawerLayout.js +1 -1
  300. package/amd/UNSAFE_DrawerPopup.js +1 -1
  301. package/amd/UNSAFE_Dropdown.js +1 -1
  302. package/amd/UNSAFE_Environment.js +1 -1
  303. package/amd/UNSAFE_ExpandableList.js +1 -1
  304. package/amd/UNSAFE_FilePicker.js +1 -1
  305. package/amd/UNSAFE_FlatTreeView.js +1 -1
  306. package/amd/UNSAFE_Flex.js +1 -1
  307. package/amd/UNSAFE_Floating.js +1 -1
  308. package/amd/UNSAFE_FormLayout.js +1 -1
  309. package/amd/UNSAFE_Gantt.js +1 -1
  310. package/amd/UNSAFE_Grid.js +1 -1
  311. package/amd/UNSAFE_HighlightText.js +1 -1
  312. package/amd/UNSAFE_Icon.js +1 -1
  313. package/amd/UNSAFE_IconButton.js +1 -1
  314. package/amd/UNSAFE_IconMenuButton.js +1 -1
  315. package/amd/UNSAFE_IconProgressButton.js +1 -1
  316. package/amd/UNSAFE_IconToggleButton.js +1 -1
  317. package/amd/UNSAFE_Indexer.js +1 -1
  318. package/amd/UNSAFE_InlineSelectSingle.js +1 -1
  319. package/amd/UNSAFE_InputColor.js +1 -1
  320. package/amd/UNSAFE_InputDateMask.js +1 -1
  321. package/amd/UNSAFE_InputDatePicker.js +1 -1
  322. package/amd/UNSAFE_InputPassword.js +1 -1
  323. package/amd/UNSAFE_InputSensitiveText.js +1 -1
  324. package/amd/UNSAFE_InputText.js +1 -1
  325. package/amd/UNSAFE_InputTimeMask.js +1 -1
  326. package/amd/UNSAFE_Label.js +1 -1
  327. package/amd/UNSAFE_LabelValueLayout.js +1 -1
  328. package/amd/UNSAFE_LabelledLink.js +1 -1
  329. package/amd/UNSAFE_Layer.js +1 -1
  330. package/amd/UNSAFE_Legend.js +1 -1
  331. package/amd/UNSAFE_LineAreaChart.js +1 -1
  332. package/amd/UNSAFE_Link.js +1 -1
  333. package/amd/UNSAFE_ListItemLayout.js +1 -1
  334. package/amd/UNSAFE_ListView.js +1 -1
  335. package/amd/UNSAFE_LiveRegion.js +1 -1
  336. package/amd/UNSAFE_Menu.js +1 -1
  337. package/amd/UNSAFE_MenuButton.js +1 -1
  338. package/amd/UNSAFE_MessageBanner.js +1 -1
  339. package/amd/UNSAFE_MessageToast.js +1 -1
  340. package/amd/UNSAFE_MeterBar.js +1 -1
  341. package/amd/UNSAFE_MeterCircle.js +1 -1
  342. package/amd/UNSAFE_Modal.js +1 -1
  343. package/amd/UNSAFE_NavigationList.js +1 -1
  344. package/amd/UNSAFE_NavigationListCommon.js +1 -1
  345. package/amd/UNSAFE_NumberInputText.js +1 -1
  346. package/amd/UNSAFE_OverflowTabBar.js +1 -1
  347. package/amd/UNSAFE_PictoChart.js +1 -1
  348. package/amd/UNSAFE_PieChart/__test__/PieChart.spec.js +1 -1
  349. package/amd/UNSAFE_PieChart.js +1 -1
  350. package/amd/UNSAFE_Popup.js +1 -1
  351. package/amd/UNSAFE_ProgressBar.js +1 -1
  352. package/amd/UNSAFE_ProgressButton.js +1 -1
  353. package/amd/UNSAFE_ProgressButtonLabelLayout.js +1 -1
  354. package/amd/UNSAFE_ProgressCircle.js +1 -1
  355. package/amd/UNSAFE_RadioItem.js +1 -1
  356. package/amd/UNSAFE_RadioSet.js +1 -1
  357. package/amd/UNSAFE_RatingGauge.js +1 -1
  358. package/amd/UNSAFE_ReorderableTabBar.js +1 -1
  359. package/amd/UNSAFE_RichCheckboxSet.js +1 -1
  360. package/amd/UNSAFE_RichRadioSet.js +1 -1
  361. package/amd/UNSAFE_RichSelectionItem.js +1 -1
  362. package/amd/UNSAFE_ScatterChart.js +1 -1
  363. package/amd/UNSAFE_SectionalLegend.js +1 -1
  364. package/amd/UNSAFE_SelectMultiple.js +1 -1
  365. package/amd/UNSAFE_SelectSingle.js +1 -1
  366. package/amd/UNSAFE_SelectionCard.js +1 -1
  367. package/amd/UNSAFE_Selector.js +1 -1
  368. package/amd/UNSAFE_SelectorAll.js +1 -1
  369. package/amd/UNSAFE_Sheet/__test__/Sheet.spec.js +1 -1
  370. package/amd/UNSAFE_Sheet.js +1 -1
  371. package/amd/UNSAFE_SortControl.js +1 -1
  372. package/amd/UNSAFE_SplitMenuButton.js +1 -1
  373. package/amd/UNSAFE_TabBar.js +1 -1
  374. package/amd/UNSAFE_TabBarCommon.js +1 -1
  375. package/amd/UNSAFE_TabBarMixed.js +1 -1
  376. package/amd/UNSAFE_TableView.js +1 -1
  377. package/amd/UNSAFE_TagCloud.js +1 -1
  378. package/amd/UNSAFE_TextArea.js +1 -1
  379. package/amd/UNSAFE_TextAreaAutosize.js +1 -1
  380. package/amd/UNSAFE_TextField.js +1 -1
  381. package/amd/UNSAFE_ToggleButton.js +1 -1
  382. package/amd/UNSAFE_Toolbar/tests/Toolbar.spec.js +1 -1
  383. package/amd/UNSAFE_Toolbar.js +1 -1
  384. package/amd/UNSAFE_Train.js +1 -1
  385. package/amd/UNSAFE_TruncatingBadge.js +1 -1
  386. package/amd/UNSAFE_TruncatingText.js +1 -1
  387. package/amd/UNSAFE_UserAssistance.js +1 -1
  388. package/amd/UNSAFE_View.js +1 -1
  389. package/amd/UNSAFE_VirtualizedListView.js +1 -1
  390. package/amd/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +1 -1
  391. package/amd/UNSAFE_VisProgressiveLoader.js +1 -1
  392. package/amd/UNSAFE_VisStatusMessage.js +1 -1
  393. package/amd/UNSAFE_WindowOverlay.js +1 -1
  394. package/amd/{View-ab4d3a33.js → View-5520bcf5.js} +2 -2
  395. package/amd/{View-ab4d3a33.js.map → View-5520bcf5.js.map} +1 -1
  396. package/amd/{VisNoData-adbb8750.js → VisNoData-d70d0d82.js} +2 -2
  397. package/amd/{VisNoData-adbb8750.js.map → VisNoData-d70d0d82.js.map} +1 -1
  398. package/amd/{VisProgressiveLoader-e5f7abe1.js → VisProgressiveLoader-07978120.js} +2 -2
  399. package/amd/{VisProgressiveLoader-e5f7abe1.js.map → VisProgressiveLoader-07978120.js.map} +1 -1
  400. package/amd/{VisTabularDatatip-e95bbf79.js → VisTabularDatatip-ab3b0b91.js} +2 -2
  401. package/amd/{VisTabularDatatip-e95bbf79.js.map → VisTabularDatatip-ab3b0b91.js.map} +1 -1
  402. package/amd/{WindowOverlay-69da5337.js → WindowOverlay-bd810e3b.js} +2 -2
  403. package/amd/{WindowOverlay-69da5337.js.map → WindowOverlay-bd810e3b.js.map} +1 -1
  404. package/amd/{YearsGridView-855ba9af.js → YearsGridView-eae67964.js} +2 -2
  405. package/amd/{YearsGridView-855ba9af.js.map → YearsGridView-eae67964.js.map} +1 -1
  406. package/amd/hoc/PRIVATE_withDirectionIcon.js +1 -1
  407. package/amd/hoc/PRIVATE_withThemeIcon.js +1 -1
  408. package/amd/hoc/UNSAFE_withThemeProps.js +1 -1
  409. package/amd/hooks/PRIVATE_useChartContextMenu.js +1 -1
  410. package/amd/hooks/PRIVATE_useChartDatatip.js +1 -1
  411. package/amd/hooks/PRIVATE_useChartEvents.js +1 -1
  412. package/amd/hooks/PRIVATE_useChartMarquee.js +1 -1
  413. package/amd/hooks/PRIVATE_useCssVars.js +1 -1
  414. package/amd/hooks/PRIVATE_useCurrentKey.js +1 -1
  415. package/amd/hooks/PRIVATE_useDatatip.js +1 -1
  416. package/amd/hooks/PRIVATE_useFloating.js +1 -1
  417. package/amd/hooks/PRIVATE_useListCommon.js +1 -1
  418. package/amd/hooks/PRIVATE_useOutsideMousedown.js +1 -1
  419. package/amd/hooks/PRIVATE_useReorderable.js +1 -1
  420. package/amd/hooks/PRIVATE_useRovingTabIndexContainer.js +1 -1
  421. package/amd/hooks/PRIVATE_useSelection.js +1 -1
  422. package/amd/hooks/PRIVATE_useTabBar.js +1 -1
  423. package/amd/hooks/PRIVATE_useTooltipOnTruncation.js +1 -1
  424. package/amd/hooks/PRIVATE_useVisContextMenu.js +1 -1
  425. package/amd/hooks/PRIVATE_useVisDragModeControls.js +1 -1
  426. package/amd/hooks/PRIVATE_useVisEvents.js +1 -1
  427. package/amd/hooks/PRIVATE_useVisMeterEvents.js +1 -1
  428. package/amd/hooks/PRIVATE_useVisSelection.js +1 -1
  429. package/amd/hooks/UNSAFE_useBareButton.js +1 -1
  430. package/amd/hooks/UNSAFE_useColorScheme.js +1 -1
  431. package/amd/hooks/UNSAFE_useCurrentBgColor.js +1 -1
  432. package/amd/hooks/UNSAFE_useDensity.js +1 -1
  433. package/amd/hooks/UNSAFE_useHiddenTestMethod.js +1 -1
  434. package/amd/hooks/UNSAFE_useOutsideClick.js +1 -1
  435. package/amd/hooks/UNSAFE_usePrefixSuffix.js +1 -1
  436. package/amd/hooks/UNSAFE_useScale.js +1 -1
  437. package/amd/hooks/UNSAFE_useTestId.js +1 -1
  438. package/amd/hooks/UNSAFE_useTheme.js +1 -1
  439. package/amd/hooks/UNSAFE_useThemeInterpolations.js +1 -1
  440. package/amd/hooks/UNSAFE_useTooltip.js +1 -1
  441. package/amd/hooks/UNSAFE_useTranslationBundle.js +1 -1
  442. package/amd/hooks/UNSAFE_useUser.js +1 -1
  443. package/amd/{index-c11efa38.js → index-89934afc.js} +2 -2
  444. package/amd/index-89934afc.js.map +1 -0
  445. package/amd/listViewSelectionTests-a58ee4c0.js +1 -1
  446. package/amd/popupUtils-e19b93b5.js +2 -0
  447. package/amd/{popupUtils-019ff48f.js.map → popupUtils-e19b93b5.js.map} +1 -1
  448. package/amd/{render-7cdd2fd1.js → render-88108768.js} +2 -2
  449. package/amd/{render-7cdd2fd1.js.map → render-88108768.js.map} +1 -1
  450. package/amd/{tabbableUtils-b1a61a1b.js → tabbableUtils-147c1073.js} +2 -2
  451. package/amd/{tabbableUtils-b1a61a1b.js.map → tabbableUtils-147c1073.js.map} +1 -1
  452. package/amd/{testData-c9985c4d.js → testData-845e2489.js} +2 -2
  453. package/amd/{testData-c9985c4d.js.map → testData-845e2489.js.map} +1 -1
  454. package/amd/{tooltipUtils-ae57629b.js → tooltipUtils-3c8a0253.js} +2 -2
  455. package/amd/{tooltipUtils-ae57629b.js.map → tooltipUtils-3c8a0253.js.map} +1 -1
  456. package/amd/useBareButton-3f7e0c0c.js +1 -1
  457. package/amd/useCellNavigation-43a992b6.js +1 -1
  458. package/amd/useChartContextMenu-59688a67.js +1 -1
  459. package/amd/{useChartDatatip-7beb4b24.js → useChartDatatip-cdfc4089.js} +2 -2
  460. package/amd/{useChartDatatip-7beb4b24.js.map → useChartDatatip-cdfc4089.js.map} +1 -1
  461. package/amd/{useColorScheme-3022ec9a.js → useColorScheme-f2a81610.js} +2 -2
  462. package/amd/{useColorScheme-3022ec9a.js.map → useColorScheme-f2a81610.js.map} +1 -1
  463. package/amd/useContextMenu-4bd1c23a.js +1 -1
  464. package/amd/useCssVars-d782da3d.js +2 -0
  465. package/amd/{useCssVars-5b3bc31e.js.map → useCssVars-d782da3d.js.map} +1 -1
  466. package/amd/{useCurrentBgColor-11b82a49.js → useCurrentBgColor-4326d3d6.js} +2 -2
  467. package/amd/{useCurrentBgColor-11b82a49.js.map → useCurrentBgColor-4326d3d6.js.map} +1 -1
  468. package/amd/useCurrentKey-2f1ca19e.js +2 -0
  469. package/amd/{useCurrentKey-8e979c7a.js.map → useCurrentKey-2f1ca19e.js.map} +1 -1
  470. package/amd/{useDatatip-be0adcf0.js → useDatatip-36aa820b.js} +2 -2
  471. package/amd/{useDatatip-be0adcf0.js.map → useDatatip-36aa820b.js.map} +1 -1
  472. package/amd/{useDensity-cb21e58e.js → useDensity-bee3cef4.js} +2 -2
  473. package/amd/{useDensity-cb21e58e.js.map → useDensity-bee3cef4.js.map} +1 -1
  474. package/amd/useDisplayValue-fa0fbc23.js +1 -1
  475. package/amd/{useExpandCollapse-99ff9bec.js → useExpandCollapse-4478c2eb.js} +2 -2
  476. package/amd/{useExpandCollapse-99ff9bec.js.map → useExpandCollapse-4478c2eb.js.map} +1 -1
  477. package/amd/{useFloating-25daefd7.js → useFloating-0df4b3d3.js} +2 -2
  478. package/amd/{useFloating-25daefd7.js.map → useFloating-0df4b3d3.js.map} +1 -1
  479. package/amd/{useHiddenTestMethod-90b5bff5.js → useHiddenTestMethod-2f1d2e7e.js} +2 -2
  480. package/amd/{useHiddenTestMethod-90b5bff5.js.map → useHiddenTestMethod-2f1d2e7e.js.map} +1 -1
  481. package/amd/useKeyboardEvents-a684ba76.js +2 -0
  482. package/amd/{useKeyboardEvents-e4599671.js.map → useKeyboardEvents-a684ba76.js.map} +1 -1
  483. package/amd/useLegendContextMenu-acabb503.js +1 -1
  484. package/amd/useMeterDatatip-b7dc96a3.js +2 -0
  485. package/amd/{useMeterDatatip-934d034d.js.map → useMeterDatatip-b7dc96a3.js.map} +1 -1
  486. package/amd/useNavigation-a6a2218f.js +1 -1
  487. package/amd/{useOutsideClick-1b59c507.js → useOutsideClick-9c4ceb18.js} +2 -2
  488. package/amd/{useOutsideClick-1b59c507.js.map → useOutsideClick-9c4ceb18.js.map} +1 -1
  489. package/amd/{useOutsideMousedown-ce3f7207.js → useOutsideMousedown-b0021878.js} +2 -2
  490. package/amd/{useOutsideMousedown-ce3f7207.js.map → useOutsideMousedown-b0021878.js.map} +1 -1
  491. package/amd/{usePopupAnimation-f8e212f7.js → usePopupAnimation-9f80595b.js} +2 -2
  492. package/amd/{usePopupAnimation-f8e212f7.js.map → usePopupAnimation-9f80595b.js.map} +1 -1
  493. package/amd/usePrefixSuffix-66563417.js +2 -0
  494. package/amd/{usePrefixSuffix-b26030fe.js.map → usePrefixSuffix-66563417.js.map} +1 -1
  495. package/amd/{useReorderableItem-13c24764.js → useReorderableItem-013ac2e8.js} +2 -2
  496. package/amd/{useReorderableItem-13c24764.js.map → useReorderableItem-013ac2e8.js.map} +1 -1
  497. package/amd/{useRovingTabIndexContainer-be2d51cf.js → useRovingTabIndexContainer-b11a404b.js} +2 -2
  498. package/amd/{useRovingTabIndexContainer-be2d51cf.js.map → useRovingTabIndexContainer-b11a404b.js.map} +1 -1
  499. package/amd/{useScale-fa445112.js → useScale-5d246769.js} +2 -2
  500. package/amd/{useScale-fa445112.js.map → useScale-5d246769.js.map} +1 -1
  501. package/amd/useSelectCommon-f04454d2.js +1 -1
  502. package/amd/{useSelectDrill-3b31318e.js → useSelectDrill-05d4e28f.js} +2 -2
  503. package/amd/{useSelectDrill-3b31318e.js.map → useSelectDrill-05d4e28f.js.map} +1 -1
  504. package/amd/{useSelection-d2a32b37.js → useSelection-87a6bea9.js} +2 -2
  505. package/amd/{useSelection-d2a32b37.js.map → useSelection-87a6bea9.js.map} +1 -1
  506. package/amd/useSelection-bb7d04ee.js +2 -0
  507. package/amd/{useSelection-7638353f.js.map → useSelection-bb7d04ee.js.map} +1 -1
  508. package/amd/useTabBar-ce36c510.js +1 -1
  509. package/amd/{useTestId-9afc201a.js → useTestId-a2e433c2.js} +2 -2
  510. package/amd/{useTestId-9afc201a.js.map → useTestId-a2e433c2.js.map} +1 -1
  511. package/amd/{useTheme-0ee6fb01.js → useTheme-af7bfac1.js} +2 -2
  512. package/amd/{useTheme-0ee6fb01.js.map → useTheme-af7bfac1.js.map} +1 -1
  513. package/amd/useThemeInterpolations-1dff2f9d.js +2 -0
  514. package/amd/{useThemeInterpolations-14ffb628.js.map → useThemeInterpolations-1dff2f9d.js.map} +1 -1
  515. package/amd/useTooltip-e14d62f1.js +2 -0
  516. package/amd/{useTooltip-75a63697.js.map → useTooltip-e14d62f1.js.map} +1 -1
  517. package/amd/{useTooltipControlled-558b2a13.js → useTooltipControlled-f7e07ed4.js} +2 -2
  518. package/amd/{useTooltipControlled-558b2a13.js.map → useTooltipControlled-f7e07ed4.js.map} +1 -1
  519. package/amd/{useTooltipOnTruncation-7c9b6e6b.js → useTooltipOnTruncation-e6d20cc0.js} +2 -2
  520. package/amd/{useTooltipOnTruncation-7c9b6e6b.js.map → useTooltipOnTruncation-e6d20cc0.js.map} +1 -1
  521. package/amd/{useTranslationBundle-8e42d505.js → useTranslationBundle-27bf6340.js} +2 -2
  522. package/amd/{useTranslationBundle-8e42d505.js.map → useTranslationBundle-27bf6340.js.map} +1 -1
  523. package/amd/{useUser-12ec03f1.js → useUser-988f7da2.js} +2 -2
  524. package/amd/{useUser-12ec03f1.js.map → useUser-988f7da2.js.map} +1 -1
  525. package/amd/useVisDragModeControls-4fcf2261.js +1 -1
  526. package/amd/{useVisEvents-e7b8669b.js → useVisEvents-3839d74f.js} +2 -2
  527. package/amd/{useVisEvents-e7b8669b.js.map → useVisEvents-3839d74f.js.map} +1 -1
  528. package/amd/utils/PRIVATE_tooltipUtils.js +1 -1
  529. package/amd/utils/PRIVATE_visTestUtils.js +1 -1
  530. package/amd/utils/UNSAFE_popupUtils.js +1 -1
  531. package/amd/{withDirectionIcon-170ce869.js → withDirectionIcon-2bb38763.js} +2 -2
  532. package/amd/{withDirectionIcon-170ce869.js.map → withDirectionIcon-2bb38763.js.map} +1 -1
  533. package/amd/withThemeProps-0ef51fd1.js +1 -1
  534. package/cjs/TextArea-8608dba1.js +187 -0
  535. package/cjs/TextArea-8608dba1.js.map +1 -0
  536. package/cjs/Theme-redwood/theme.css +222 -222
  537. package/cjs/Theme-stable/theme.css +174 -174
  538. package/cjs/UNSAFE_TextArea.js +106 -216
  539. package/cjs/UNSAFE_TextArea.js.map +1 -1
  540. package/cjs/UNSAFE_TextAreaAutosize.js +2 -2
  541. package/cjs/UNSAFE_TextAreaAutosize.js.map +1 -1
  542. package/es/CheckboxSet-751d4298.js +49 -0
  543. package/es/CheckboxSet-751d4298.js.map +1 -0
  544. package/es/{ColorPicker-94212b50.js → ColorPicker-c603ebc6.js} +2 -2
  545. package/es/{ColorPicker-94212b50.js.map → ColorPicker-c603ebc6.js.map} +1 -1
  546. package/es/FormLayoutVariants.styles.css +14 -14
  547. package/es/FormLayoutVariants.styles2.css +14 -14
  548. package/es/ProgressBarVariants.styles.css +1 -1
  549. package/es/ProgressBarVariants.styles2.css +1 -1
  550. package/es/SegmentStyles.styles.css +8 -11
  551. package/es/SegmentStyles.styles2.css +11 -8
  552. package/es/SplitMenuButtonTheme.styles.css +4 -4
  553. package/es/SplitMenuButtonTheme.styles2.css +4 -4
  554. package/es/TextArea-273e8ce4.js +184 -0
  555. package/es/TextArea-273e8ce4.js.map +1 -0
  556. package/es/Theme-redwood/theme.css +373 -373
  557. package/es/Theme-stable/theme.css +467 -467
  558. package/es/UNSAFE_CheckboxItem.js +101 -47
  559. package/es/UNSAFE_CheckboxItem.js.map +1 -1
  560. package/es/UNSAFE_CheckboxSet.js +10 -44
  561. package/es/UNSAFE_CheckboxSet.js.map +1 -1
  562. package/es/UNSAFE_ColorPicker.js +25 -25
  563. package/es/UNSAFE_FormLayout/themes/redwood/FormLayoutTheme.js +1 -1
  564. package/es/UNSAFE_FormLayout/themes/redwood/FormLayoutVariants.css.js +1 -1
  565. package/es/UNSAFE_FormLayout/themes/stable/FormLayoutTheme.js +1 -1
  566. package/es/UNSAFE_FormLayout/themes/stable/FormLayoutVariants.css.js +1 -1
  567. package/es/UNSAFE_FormLayout.js +1 -1
  568. package/es/UNSAFE_InputColor.js +2 -2
  569. package/es/UNSAFE_InputDateMask/themes/SegmentStyles.css.js +1 -1
  570. package/es/UNSAFE_InputDateMask.js +1 -1
  571. package/es/UNSAFE_InputDatePicker.js +92 -92
  572. package/es/UNSAFE_InputTimeMask/themes/SegmentStyles.css.js +1 -1
  573. package/es/UNSAFE_InputTimeMask.js +1 -1
  574. package/es/UNSAFE_ProgressBar/themes/redwood/ProgressBarTheme.js +1 -1
  575. package/es/UNSAFE_ProgressBar/themes/redwood/ProgressBarVariants.css.js +1 -1
  576. package/es/UNSAFE_ProgressBar/themes/stable/ProgressBarTheme.js +1 -1
  577. package/es/UNSAFE_ProgressBar/themes/stable/ProgressBarVariants.css.js +1 -1
  578. package/es/UNSAFE_ProgressBar.js +1 -1
  579. package/es/UNSAFE_RichCheckboxSet.js +29 -25
  580. package/es/UNSAFE_RichCheckboxSet.js.map +1 -1
  581. package/es/UNSAFE_RichSelectionItem.js +172 -29
  582. package/es/UNSAFE_RichSelectionItem.js.map +1 -1
  583. package/es/UNSAFE_SplitMenuButton/themes/redwood/SplitMenuButtonTheme.css.js +1 -1
  584. package/es/UNSAFE_SplitMenuButton/themes/stable/SplitMenuButtonTheme.css.js +1 -1
  585. package/es/UNSAFE_SplitMenuButton.js +1 -1
  586. package/es/UNSAFE_TextArea.js +104 -219
  587. package/es/UNSAFE_TextArea.js.map +1 -1
  588. package/es/UNSAFE_TextAreaAutosize.js +1 -1
  589. package/package.json +2 -2
  590. package/amd/Button-d6bbc57f.js +0 -2
  591. package/amd/Card-6e7189a3.js +0 -2
  592. package/amd/ColorPicker-d578df9c.js +0 -2
  593. package/amd/Layer-c91c7141.js +0 -2
  594. package/amd/LiveRegion-ef77cf92.js +0 -2
  595. package/amd/SectionedContent-054e2fc2.js +0 -2
  596. package/amd/SelectionCard-601660df.js +0 -2
  597. package/amd/TabBarMixedSeparator-07022bdc.js +0 -2
  598. package/amd/index-c11efa38.js.map +0 -1
  599. package/amd/popupUtils-019ff48f.js +0 -2
  600. package/amd/useCssVars-5b3bc31e.js +0 -2
  601. package/amd/useCurrentKey-8e979c7a.js +0 -2
  602. package/amd/useKeyboardEvents-e4599671.js +0 -2
  603. package/amd/useMeterDatatip-934d034d.js +0 -2
  604. package/amd/usePrefixSuffix-b26030fe.js +0 -2
  605. package/amd/useSelection-7638353f.js +0 -2
  606. package/amd/useThemeInterpolations-14ffb628.js +0 -2
  607. package/amd/useTooltip-75a63697.js +0 -2
  608. package/cjs/MaxLengthCounter-39055ba1.js +0 -27
  609. package/cjs/MaxLengthCounter-39055ba1.js.map +0 -1
  610. package/es/CheckboxSetContext-1be56556.js +0 -9
  611. package/es/CheckboxSetContext-1be56556.js.map +0 -1
  612. package/es/MaxLengthCounter-d622f964.js +0 -25
  613. package/es/MaxLengthCounter-d622f964.js.map +0 -1
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact', './BaseButton-d69319ea', './ProgressButtonLabelLayout-0931b1d5', 'preact/compat', './useTooltip-75a63697', 'preact/hooks', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-daf96749', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-ae57629b', './buttonUtils-cbbb0130', './resources/nls/en/bundle'], (function(t,e,o,s,a,i,n,l,r,c,d,b,p,u,g,m,y){"use strict";const L=i.forwardRef((({variant:t="outlined",isLoading:i=!1,isDisabled:l=!1,size:c="md",type:d="button",onAction:b,width:p,tooltip:u,testId:g,...L},h)=>{const{globalEventProps:B}=m.processGlobals(L),f=!l&&i,P=y.default.accButtonProgressStatus({label:u}),T=y.default.accButtonProgressComplete({label:u}),x={type:"button",buttonType:d},A=u,{tooltipContent:C,tooltipProps:v}=n.useTooltip({text:A,isDisabled:l}),{"aria-describedby":w,...I}=v;return e.jsxs(o.Fragment,{children:[e.jsx(s.BaseButton,{...r.mergeProps(I,B),ref:h,elementDetails:x,isReadOnly:f,isDisabled:l,size:c,variant:t,width:p,styling:f?["min","hiddenLabel","noHoverActive"]:["min"],onAction:b,"aria-label":u,testId:g,children:e.jsx(a.ProgressButtonLabelLayout,{display:"icons",isLoading:f,accessibleLoadedLabel:T,accessibleLoadingLabel:P,isLoadingContrast:"callToAction"===t,startIcon:L.children,size:c})}),C]})}));L.displayName="IconProgressButton",t.IconProgressButton=L}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact', './BaseButton-2c9850cb', './ProgressButtonLabelLayout-0931b1d5', 'preact/compat', './useTooltip-e14d62f1', 'preact/hooks', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-7d4aa6d3', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-3c8a0253', './buttonUtils-cbbb0130', './resources/nls/en/bundle'], (function(t,e,o,s,a,i,n,l,r,c,d,b,p,u,g,m,y){"use strict";const L=i.forwardRef((({variant:t="outlined",isLoading:i=!1,isDisabled:l=!1,size:c="md",type:d="button",onAction:b,width:p,tooltip:u,testId:g,...L},h)=>{const{globalEventProps:B}=m.processGlobals(L),f=!l&&i,P=y.default.accButtonProgressStatus({label:u}),T=y.default.accButtonProgressComplete({label:u}),x={type:"button",buttonType:d},A=u,{tooltipContent:C,tooltipProps:v}=n.useTooltip({text:A,isDisabled:l}),{"aria-describedby":w,...I}=v;return e.jsxs(o.Fragment,{children:[e.jsx(s.BaseButton,{...r.mergeProps(I,B),ref:h,elementDetails:x,isReadOnly:f,isDisabled:l,size:c,variant:t,width:p,styling:f?["min","hiddenLabel","noHoverActive"]:["min"],onAction:b,"aria-label":u,testId:g,children:e.jsx(a.ProgressButtonLabelLayout,{display:"icons",isLoading:f,accessibleLoadedLabel:T,accessibleLoadingLabel:P,isLoadingContrast:"callToAction"===t,startIcon:L.children,size:c})}),C]})}));L.displayName="IconProgressButton",t.IconProgressButton=L}));
2
2
  //# sourceMappingURL=IconProgressButton-f9cdb23a.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact', 'preact/compat', './BaseButton-d69319ea', './useToggleAction-59741954', './useTooltip-75a63697', 'preact/hooks', './useId-c9578d26', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-daf96749', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-ae57629b', './toggleButtonUtils-0ebe4c56', './ToggleButtonLabel-03111248'], (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:w}=l.useToggleAction({isDisabled:d,onToggle:u}),{tooltipContent:S,tooltipProps:f}=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(f,w,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})}),S]})}));y.displayName="IconSwitchButton",e.IconSwitchButton=y}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact', 'preact/compat', './BaseButton-2c9850cb', './useToggleAction-59741954', './useTooltip-e14d62f1', 'preact/hooks', './useId-c9578d26', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-7d4aa6d3', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-3c8a0253', './toggleButtonUtils-0ebe4c56', './ToggleButtonLabel-03111248'], (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:w}=l.useToggleAction({isDisabled:d,onToggle:u}),{tooltipContent:S,tooltipProps:f}=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(f,w,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})}),S]})}));y.displayName="IconSwitchButton",e.IconSwitchButton=y}));
2
2
  //# sourceMappingURL=IconSwitchButton-5be99684.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact', 'preact/compat', './BaseButton-d69319ea', './useToggleAction-59741954', './useTooltip-75a63697', 'preact/hooks', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-daf96749', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-ae57629b', './toggleButtonUtils-0ebe4c56', './buttonUtils-cbbb0130', './ToggleButtonLabel-03111248'], (function(e,t,o,s,i,l,a,n,r,d,c,g,p,b,u,T,h,m){"use strict";const y=s.forwardRef((({children:e,variant:s="outlined",size:n="md",isDisabled:d=!1,tooltip:c,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:d,onToggle:b}),{tooltipContent:A,tooltipProps:D}=a.useTooltip({text:c??g,isDisabled:d}),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:d,size:n,width:B,"aria-pressed":p,styling:I,ref:v,"aria-label":g??c,testId:u,children:t.jsx(m.ToggleButtonLabel,{onAction:()=>b?.({value:p}),isDisabled:d,display:"icons",startIcon:e})}),A]})}));y.displayName="IconToggleButton",e.IconToggleButton=y}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact', 'preact/compat', './BaseButton-2c9850cb', './useToggleAction-59741954', './useTooltip-e14d62f1', 'preact/hooks', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-7d4aa6d3', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-3c8a0253', './toggleButtonUtils-0ebe4c56', './buttonUtils-cbbb0130', './ToggleButtonLabel-03111248'], (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}),isDisabled:c,display:"icons",startIcon:e})}),A]})}));y.displayName="IconToggleButton",e.IconToggleButton=y}));
2
2
  //# sourceMappingURL=IconToggleButton-b783604a.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact/hooks', './useTranslationBundle-8e42d505', './Help-99314e05', './Popup-695781d6', './HiddenAccessible-037ef42d', './InlineHelp-1fc7b3a9', './UNSAFE_UserAssistance/themes/UserAssistanceStyles.css', './useComponentTheme-5aa41a8f', './classNames-08d99695', './UNSAFE_Popup/themes/redwood/PopupTheme', './useToggle-a29f97af'], (function(e,s,n,o,a,t,i,c,l,r,u,p,d){"use strict";e.IconUserAssistance=({assistiveText:e,helpSourceLink:h,helpSourceText:m,isTabbable:x=!0,id:b})=>{const{bool:f,setFalse:T,toggle:g}=d.useToggle(!1),A=o.useTranslationBundle("@oracle/oraclejet-preact"),k=A.userAssistance_learnMore(),C=h&&(m||k),j=A.radio_helpForRadio(),U=`${b}-help-string`,H=n.useRef(null),S=n.useCallback((e=>{const s=e?.target;(s instanceof Element||s instanceof Document)&&!H.current?.contains(s)&&f&&T()}),[f,T]),v=n.useCallback((e=>{const{key:s}=e;if(s&&"Enter"!==s)return;const{tagName:n}=e.target;"a"===n?.toLowerCase()&&(T(),setTimeout((()=>H.current?.focus())))}),[T]),E=n.useCallback((e=>{["Tab","Escape"].includes(e.code)&&f&&T(),["Space","Enter"].includes(e.code)&&(e.preventDefault(),g())}),[f,T,g]),F=n.useCallback((e=>{e.preventDefault(),g()}),[g]),{baseTheme:I}=r.useComponentTheme(p.PopupRedwoodTheme),P=u.classNames([I,l.iconUserAssistancePopupFocus]);return h||e?s.jsxs(s.Fragment,{children:[s.jsx("span",{onKeyDown:E,onClick:F,role:"link","aria-describedby":U,"aria-haspopup":"dialog",ref:H,tabIndex:x?0:-1,class:l.iconUserAssistanceIcon,id:`${b}-help-icon`,children:s.jsx(a.SvgHelp,{})}),s.jsx(i.HiddenAccessible,{id:U,isHidden:!0,children:j}),s.jsx(t.Popup,{placement:"top",isOpen:f,anchorRef:H,onClose:T,onClickOutside:S,shiftOptions:{mainAxis:!0,crossAxis:!1},role:"tooltip",maxWidth:"296px",children:s.jsx("div",{id:b,tabIndex:0,class:P,onMouseUp:v,onKeyDown:v,children:s.jsx(c.InlineHelp,{assistiveText:e,sourceLink:h,sourceText:C})})})]}):null}}));
2
- //# sourceMappingURL=IconUserAssistance-0c55d53f.js.map
1
+ define(['exports', 'preact/jsx-runtime', 'preact/hooks', './useTranslationBundle-27bf6340', './Help-99314e05', './Popup-062b66ff', './HiddenAccessible-037ef42d', './InlineHelp-1fc7b3a9', './UNSAFE_UserAssistance/themes/UserAssistanceStyles.css', './useComponentTheme-5aa41a8f', './classNames-08d99695', './UNSAFE_Popup/themes/redwood/PopupTheme', './useToggle-a29f97af'], (function(e,s,n,o,a,t,i,c,l,r,u,p,d){"use strict";e.IconUserAssistance=({assistiveText:e,helpSourceLink:h,helpSourceText:f,isTabbable:m=!0,id:b})=>{const{bool:x,setFalse:T,toggle:g}=d.useToggle(!1),A=o.useTranslationBundle("@oracle/oraclejet-preact"),k=A.userAssistance_learnMore(),C=h&&(f||k),j=A.radio_helpForRadio(),U=`${b}-help-string`,H=n.useRef(null),S=n.useCallback((e=>{const s=e?.target;(s instanceof Element||s instanceof Document)&&!H.current?.contains(s)&&x&&T()}),[x,T]),v=n.useCallback((e=>{const{key:s}=e;if(s&&"Enter"!==s)return;const{tagName:n}=e.target;"a"===n?.toLowerCase()&&(T(),setTimeout((()=>H.current?.focus())))}),[T]),E=n.useCallback((e=>{["Tab","Escape"].includes(e.code)&&x&&T(),["Space","Enter"].includes(e.code)&&(e.preventDefault(),g())}),[x,T,g]),F=n.useCallback((e=>{e.preventDefault(),g()}),[g]),{baseTheme:I}=r.useComponentTheme(p.PopupRedwoodTheme),P=u.classNames([I,l.iconUserAssistancePopupFocus]);return h||e?s.jsxs(s.Fragment,{children:[s.jsx("span",{onKeyDown:E,onClick:F,role:"link","aria-describedby":U,"aria-haspopup":"dialog",ref:H,tabIndex:m?0:-1,class:l.iconUserAssistanceIcon,id:`${b}-help-icon`,children:s.jsx(a.SvgHelp,{})}),s.jsx(i.HiddenAccessible,{id:U,isHidden:!0,children:j}),s.jsx(t.Popup,{placement:"top",isOpen:x,anchorRef:H,onClose:T,onClickOutside:S,shiftOptions:{mainAxis:!0,crossAxis:!1},role:"tooltip",maxWidth:"296px",children:s.jsx("div",{id:b,tabIndex:0,class:P,onMouseUp:v,onKeyDown:v,children:s.jsx(c.InlineHelp,{assistiveText:e,sourceLink:h,sourceText:C})})})]}):null}}));
2
+ //# sourceMappingURL=IconUserAssistance-af9839fb.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconUserAssistance-0c55d53f.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';\n\nimport { HelpIcon } from '#PRIVATE_ThemedIcons/HelpIcon';\nimport { Popup } from '#UNSAFE_Popup';\nimport { HiddenAccessible } from '#UNSAFE_HiddenAccessible';\nimport { InlineHelp } from './InlineHelp';\nimport {\n iconUserAssistanceIcon,\n iconUserAssistancePopupFocus\n} 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';\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\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}: 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 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, iconUserAssistancePopupFocus]);\n\n return helpSourceLink || assistiveText ? (\n <>\n <span\n onKeyDown={handleOnKeyDown}\n onClick={onClickHandler}\n role=\"link\"\n aria-describedby={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 {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 role=\"tooltip\"\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","bool","isOpen","setFalse","setIsOpenFalse","toggle","useToggle","translations","useTranslationBundle","userAssistance_learnMoreStr","userAssistance_learnMore","sourceText","helpForRadioString","radio_helpForRadio","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","iconUserAssistancePopupFocus","_jsxs","jsxs","_Fragment","children","_jsx","onKeyDown","onClick","role","ref","tabIndex","class","iconUserAssistanceIcon","jsx","HelpIcon","SvgHelp","HiddenAccessible","isHidden","Popup","placement","onClose","onClickOutside","shiftOptions","mainAxis","crossAxis","maxWidth","onMouseUp","InlineHelp","sourceLink"],"mappings":"8aA6C2B,EACzBA,gBACA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AA,iBAAgB,CAAC3D,GAAIc,EAAc8C,UAAU,EAAIb,SAC/CnC,IAEHoC,EAAAA,IAACa,EAAAA,OACCC,UAAU,MACV5D,OAAQA,EACRa,UAAWA,EACXgD,QAAS3D,EACT4D,eAAgB/C,EAChBgD,aAAc,CAAEC,UAAU,EAAMC,WAAW,GAC3ChB,KAAK,UACLiB,SAAU,QAAOrB,SACjBC,EACEQ,IAAA,MAAA,CAAAxD,GAAIA,EACJqD,SAAU,EACVC,MAAOb,EACP4B,UAAW5C,EACXwB,UAAWxB,EACXsB,SAAAC,EAAAQ,IAACc,EAAUA,WACT,CAAA1E,cAAeA,EACf2E,WAAY1E,EACZc,WAAYA,WAKlB,IAAI"}
1
+ {"version":3,"file":"IconUserAssistance-af9839fb.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';\n\nimport { HelpIcon } from '#PRIVATE_ThemedIcons/HelpIcon';\nimport { Popup } from '#UNSAFE_Popup';\nimport { HiddenAccessible } from '#UNSAFE_HiddenAccessible';\nimport { InlineHelp } from './InlineHelp';\nimport {\n iconUserAssistanceIcon,\n iconUserAssistancePopupFocus\n} 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';\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\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}: 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 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, iconUserAssistancePopupFocus]);\n\n return helpSourceLink || assistiveText ? (\n <>\n <span\n onKeyDown={handleOnKeyDown}\n onClick={onClickHandler}\n role=\"link\"\n aria-describedby={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 {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 role=\"tooltip\"\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","bool","isOpen","setFalse","setIsOpenFalse","toggle","useToggle","translations","useTranslationBundle","userAssistance_learnMoreStr","userAssistance_learnMore","sourceText","helpForRadioString","radio_helpForRadio","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","iconUserAssistancePopupFocus","_jsxs","jsxs","_Fragment","children","_jsx","onKeyDown","onClick","role","ref","tabIndex","class","iconUserAssistanceIcon","jsx","HelpIcon","SvgHelp","HiddenAccessible","isHidden","Popup","placement","onClose","onClickOutside","shiftOptions","mainAxis","crossAxis","maxWidth","onMouseUp","InlineHelp","sourceLink"],"mappings":"8aA6C2B,EACzBA,gBACAC,iBACAC,iBACAC,cAAa,EACbC,SAEA,MAAQC,KAAMC,EAAQC,SAAUC,EAAcC,OAAEA,GAAWC,aAAU,GAE/DC,EAAeC,uBAAiC,4BAChDC,EAA8BF,EAAaG,2BAC3CC,EAAad,IAAmBC,GAAkBW,GAClDG,EAAqBL,EAAaM,qBAClCC,EAAe,GAAGd,gBAClBe,EAAYC,SAAwB,MAEpCC,EAAqBC,eACxBC,IACC,MAAMC,EAASD,GAAOC,QAGnBA,aAAkBC,SAAWD,aAAkBE,YAC/CP,EAAUQ,SAASC,SAASJ,IAC7BlB,GAEAE,GACD,GAEH,CAACF,EAAQE,IAGLqB,EAAkBP,eACrBQ,IAEC,MAAMC,IAAEA,GAAQD,EAChB,GAAIC,GAAe,UAARA,EACT,OAIF,MAAMC,QAAEA,GAAYF,EAAEN,OAES,MAA3BQ,GAASC,gBACXzB,IAIA0B,YAAW,IAAMf,EAAUQ,SAASQ,UACrC,GAEH,CAAC3B,IAGG4B,EAAkBd,eACrBQ,IAEK,CAAC,MAAO,UAAUO,SAASP,EAAEQ,OAAShC,GACxCE,IAIE,CAAC,QAAS,SAAS6B,SAASP,EAAEQ,QAChCR,EAAES,iBACF9B,IACD,GAEH,CAACH,EAAQE,EAAgBC,IAGrB+B,EAAiBlB,eACpBQ,IACCA,EAAES,iBACF9B,GAAQ,GAEV,CAACA,KAIKgC,UAAWC,GAAmBC,EAAiBA,kBAACC,EAAiBA,mBACnEC,EAA4BC,EAAUA,WAAC,CAACJ,EAAgBK,EAAAA,+BAE9D,OAAO9C,GAAkBD,EACvBgD,EAAAC,KAAAC,WAAA,CAAAC,SAAA,CACEC,MACE,OAAA,CAAAC,UAAWjB,EACXkB,QAASd,EACTe,KAAK,0BACarC,EAAY,gBAChB,SACdsC,IAAKrC,EACLsC,SAAUtD,EAAa,GAAK,EAC5BuD,MAAOC,yBACPvD,GAAI,GAAGA,cACP+C,SAAAC,EAAAQ,IAACC,EAAQC,QAAA,CAAA,KAEXV,MAACW,EAAAA,iBAAgB,CAAC3D,GAAIc,EAAc8C,UAAU,EAAIb,SAC/CnC,IAEHoC,EAAAA,IAACa,EAAAA,OACCC,UAAU,MACV5D,OAAQA,EACRa,UAAWA,EACXgD,QAAS3D,EACT4D,eAAgB/C,EAChBgD,aAAc,CAAEC,UAAU,EAAMC,WAAW,GAC3ChB,KAAK,UACLiB,SAAU,QAAOrB,SACjBC,EACEQ,IAAA,MAAA,CAAAxD,GAAIA,EACJqD,SAAU,EACVC,MAAOb,EACP4B,UAAW5C,EACXwB,UAAWxB,EACXsB,SAAAC,EAAAQ,IAACc,EAAUA,WACT,CAAA1E,cAAeA,EACf2E,WAAY1E,EACZc,WAAYA,WAKlB,IAAI"}
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact', 'preact/hooks', './Flex-07d2aa5b', './mergeProps-bcfa6a92', './useSingleSelection-c1bd8b03', './useCurrentKey-8e979c7a', './useCollectionFocusRing-35d278f5', './collectionUtils-26e6c87c', './useId-c9578d26', './useTranslationBundle-8e42d505', './HiddenAccessible-037ef42d', './Collection-46cfa244', './classNames-08d99695', 'preact/compat', './useComponentTheme-5aa41a8f', './UNSAFE_Indexer/themes/redwood/IndexerTheme', './useTestId-9afc201a'], (function(e,t,s,n,r,a,o,c,l,i,u,d,y,f,x,k,b,h,j){"use strict";const m=Object.freeze({key:"__others__",label:"#"}),v="[data-oj-key]",T=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:l}=b.useComponentTheme(h.IndexerRedwoodTheme,{focused:c.ref&&c.isFocusRingVisible?"isFocused":"notFocused",disabled:r.data.isDisabled?"isDisabled":"notDisabled",selected:o?"isSelected":"notSelected"}),i=x.classNames([l]),u=r.data.label||r.data.key,y=r.data.isDisabled?n.indexer_disabledLabel({SECTION:`${u}`}):`${u}`;return t.jsx("li",{...c,class:i,"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 g=k.forwardRef((({lastValueNow:e,...n},r)=>{const a={...n,ref:r};return t.jsxs(s.Fragment,{children:[t.jsx(T,{...a}),t.jsx(p,{...a,ref:r,context:{index:-1,data:m},valueNow:e})]})})),p=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"}),l=x.classNames([c]),i=m.label;return t.jsx("li",{...a,class:l,"data-oj-valuetext":i,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:l,to:i}=F(e),{classes:u,styles:{dotStyle:y}}=b.useComponentTheme(h.IndexerRedwoodTheme,{focused:c.ref&&c.isFocusRingVisible?"isFocused":"notFocused"});if(!I(a.index,l,i))return null;const f=o[l].label||o[l].key,k=o[i].label||o[i].key,j=x.classNames([u]),m=n.indexer_separatorLabel({FROM_SECTION:`${f}`,TO_SECTION:`${k}`});return t.jsx("li",{...c,class:j,"data-oj-valuetext":m,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 I(e,t,s){return e===Math.floor((t+s)/2)}const S=[{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 C=(e,t,s)=>e===t.current?void 0===s?null:s:i.keyExtractor(e,v),N=(e,t,s)=>{if(e.value===m.key)t({value:m.key});else{t({value:s.find((t=>t.key===e.value)).key})}},E=(e,t,s,n,r,a,o)=>{if(0===e||0===t)return;const c=e/t,l=s-1;if(c<2)r!==l&&(a(l),o(n));else if(c>s||s-c<.01)r>1&&(a(1),o(n));else{const e=_(c,l);e!==r&&e<s&&(a(e),o(n))}},_=(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 i.isMobile()?e.indexer_touchInstructionText():e.indexer_keyboardInstructionText()}e.Indexer=function({sections:e=S,value:x,onCommit:k=()=>{},testId:m}){const R=n.useRef(null),p=n.useRef(null),_=s.createRef(),[V,O]=n.useState(e[0]?.key),[A,P]=n.useState(-1),D=n.useRef(-1),H=n.useRef(0),M=u.useId(),[B,U]=l.useCollectionFocusRing(R,["ArrowUp","ArrowDown"]),{currentKeyProps:$}=c.useCurrentKey((e=>i.keyExtractor(e,v)),!0,i.getPrevNextKey(R.current,V,!0,v),i.getPrevNextKey(R.current,V,!1,v),void 0,void 0,V,(e=>O(e.value))),{selectionProps:L}=o.useSingleSelection((e=>C(e,p,V)),void 0,(t=>N(t,k,e))),z=n.useCallback((t=>{for(const s of t)E(s.contentRect.height,H.current,e.length,e[0]?.key,A,P,O)}),[e,A]);n.useEffect((()=>{p.current&&(p.current.setAttribute("aria-valuemax",D.current+1+""),p.current.setAttribute("aria-valuetext",_.current?.dataset?.ojValuetext||""),p.current.setAttribute("aria-valuenow",_.current?.dataset?.ojValuenow||"")),D.current=-1})),n.useEffect((()=>{const t=R.current;t&&(H.current=t.querySelector("li")?.offsetHeight||0,E(t.offsetHeight,H.current,e.length,e[0]?.key,A,P,O))}),[e,A]),n.useEffect((()=>{const e=R.current;if(e){const t=new ResizeObserver((e=>{z(e)}));return t.observe(e),()=>{t.unobserve(e)}}}),[A,z]);const q=d.useTranslationBundle("@oracle/oraclejet-preact"),{styles:{baseStyle:G,innerStyle:J}}=b.useComponentTheme(h.IndexerRedwoodTheme),Q=j.useTestId(m);return t.jsxs("div",{ref:R,class:G,...Q,children:[t.jsx(r.Flex,{align:"center",width:"6x",height:"100%",children:t.jsx("ul",{...a.mergeProps($,U,L),ref:p,tabIndex:0,"aria-label":"Indexer","aria-orientation":"vertical","aria-valuemin":0,"aria-describedby":M,role:"slider",class:J,children:t.jsx(f.Collection,{items:e,children:s=>{const n=e.length-1;D.current+=1;const r={context:s,ref:_,currentKey:V,selectedKey:x,valueNow:D.current,isFocusRingVisible:!!B};if(s.index===n)return t.jsx(g,{...r,lastValueNow:D.current+1});if(A<=1||s.index%A==0)return t.jsx(T,{...r});const a={...r,sectionsPerTruncation:A,last:n,sections:e};return function(e){const{from:t,to:s}=F(e);return I(e.context.index,t,s)}(a)?t.jsx(w,{...a}):(D.current-=1,null)}})})}),t.jsx(y.HiddenAccessible,{children:t.jsx("span",{id:M,children:K(q)})})]})},e.SECTION_OTHERS=m}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact', 'preact/hooks', './Flex-4bc3a394', './mergeProps-bcfa6a92', './useSingleSelection-c1bd8b03', './useCurrentKey-2f1ca19e', './useCollectionFocusRing-35d278f5', './collectionUtils-26e6c87c', './useId-c9578d26', './useTranslationBundle-27bf6340', './HiddenAccessible-037ef42d', './Collection-46cfa244', './classNames-08d99695', 'preact/compat', './useComponentTheme-5aa41a8f', './UNSAFE_Indexer/themes/redwood/IndexerTheme', './useTestId-a2e433c2'], (function(e,t,s,n,r,o,a,c,l,i,u,d,y,f,x,k,b,h,j){"use strict";const m=Object.freeze({key:"__others__",label:"#"}),v="[data-oj-key]",T=k.forwardRef(((e,s)=>{const n=d.useTranslationBundle("@oracle/oraclejet-preact"),{context:r,selectedKey:o}=e,a=r.data.key===o,c=R(e,s),{classes:l}=b.useComponentTheme(h.IndexerRedwoodTheme,{focused:c.ref&&c.isFocusRingVisible?"isFocused":"notFocused",disabled:r.data.isDisabled?"isDisabled":"notDisabled",selected:a?"isSelected":"notSelected"}),i=x.classNames([l]),u=r.data.label||r.data.key,y=r.data.isDisabled?n.indexer_disabledLabel({SECTION:`${u}`}):`${u}`;return t.jsx("li",{...c,class:i,"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 g=k.forwardRef((({lastValueNow:e,...n},r)=>{const o={...n,ref:r};return t.jsxs(s.Fragment,{children:[t.jsx(T,{...o}),t.jsx(p,{...o,ref:r,context:{index:-1,data:m},valueNow:e})]})})),p=k.forwardRef(((e,s)=>{const{context:n,selectedKey:r}=e,o=R(e,s),a=n.data.key===r,{classes:c}=b.useComponentTheme(h.IndexerRedwoodTheme,{focused:o.ref&&o.isFocusRingVisible?"isFocused":"notFocused",selected:a?"isSelected":"notSelected"}),l=x.classNames([c]),i=m.label;return t.jsx("li",{...o,class:l,"data-oj-valuetext":i,children:n.data.label})})),w=k.forwardRef(((e,s)=>{const n=d.useTranslationBundle("@oracle/oraclejet-preact"),{context:o,sections:a}=e,c=R(e,s),{from:l,to:i}=F(e),{classes:u,styles:{dotStyle:y}}=b.useComponentTheme(h.IndexerRedwoodTheme,{focused:c.ref&&c.isFocusRingVisible?"isFocused":"notFocused"});if(!I(o.index,l,i))return null;const f=a[l].label||a[l].key,k=a[i].label||a[i].key,j=x.classNames([u]),m=n.indexer_separatorLabel({FROM_SECTION:`${f}`,TO_SECTION:`${k}`});return t.jsx("li",{...c,class:j,"data-oj-valuetext":m,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 I(e,t,s){return e===Math.floor((t+s)/2)}const S=[{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 C=(e,t,s)=>e===t.current?void 0===s?null:s:i.keyExtractor(e,v),N=(e,t,s)=>{if(e.value===m.key)t({value:m.key});else{t({value:s.find((t=>t.key===e.value)).key})}},E=(e,t,s,n,r,o,a)=>{if(0===e||0===t)return;const c=e/t,l=s-1;if(c<2)r!==l&&(o(l),a(n));else if(c>s||s-c<.01)r>1&&(o(1),a(n));else{const e=_(c,l);e!==r&&e<s&&(o(e),a(n))}},_=(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 o=t-(r-1)*s,a=s;for(;a>o;)a-=1,o=t-(r-1)*a;return a!=s&&(a+=1),a};function K(e){return i.isMobile()?e.indexer_touchInstructionText():e.indexer_keyboardInstructionText()}e.Indexer=function({sections:e=S,value:x,onCommit:k=()=>{},testId:m}){const R=n.useRef(null),p=n.useRef(null),_=s.createRef(),[V,O]=n.useState(e[0]?.key),[A,P]=n.useState(-1),D=n.useRef(-1),H=n.useRef(0),M=u.useId(),[B,U]=l.useCollectionFocusRing(R,["ArrowUp","ArrowDown"]),{currentKeyProps:$}=c.useCurrentKey((e=>i.keyExtractor(e,v)),!0,i.getPrevNextKey(R.current,V,!0,v),i.getPrevNextKey(R.current,V,!1,v),void 0,void 0,V,(e=>O(e.value))),{selectionProps:L}=a.useSingleSelection((e=>C(e,p,V)),void 0,(t=>N(t,k,e))),z=n.useCallback((t=>{for(const s of t)E(s.contentRect.height,H.current,e.length,e[0]?.key,A,P,O)}),[e,A]);n.useEffect((()=>{p.current&&(p.current.setAttribute("aria-valuemax",D.current+1+""),p.current.setAttribute("aria-valuetext",_.current?.dataset?.ojValuetext||""),p.current.setAttribute("aria-valuenow",_.current?.dataset?.ojValuenow||"")),D.current=-1})),n.useEffect((()=>{const t=R.current;t&&(H.current=t.querySelector("li")?.offsetHeight||0,E(t.offsetHeight,H.current,e.length,e[0]?.key,A,P,O))}),[e,A]),n.useEffect((()=>{const e=R.current;if(e){const t=new ResizeObserver((e=>{z(e)}));return t.observe(e),()=>{t.unobserve(e)}}}),[A,z]);const q=d.useTranslationBundle("@oracle/oraclejet-preact"),{styles:{baseStyle:G,innerStyle:J}}=b.useComponentTheme(h.IndexerRedwoodTheme),Q=j.useTestId(m);return t.jsxs("div",{ref:R,class:G,...Q,children:[t.jsx(r.Flex,{align:"center",width:"6x",height:"100%",children:t.jsx("ul",{...o.mergeProps($,U,L),ref:p,tabIndex:0,"aria-label":"Indexer","aria-orientation":"vertical","aria-valuemin":0,"aria-describedby":M,role:"slider",class:J,children:t.jsx(f.Collection,{items:e,children:s=>{const n=e.length-1;D.current+=1;const r={context:s,ref:_,currentKey:V,selectedKey:x,valueNow:D.current,isFocusRingVisible:!!B};if(s.index===n)return t.jsx(g,{...r,lastValueNow:D.current+1});if(A<=1||s.index%A==0)return t.jsx(T,{...r});const o={...r,sectionsPerTruncation:A,last:n,sections:e};return function(e){const{from:t,to:s}=F(e);return I(e.context.index,t,s)}(o)?t.jsx(w,{...o}):(D.current-=1,null)}})})}),t.jsx(y.HiddenAccessible,{children:t.jsx("span",{id:M,children:K(q)})})]})},e.SECTION_OTHERS=m}));
2
2
  //# sourceMappingURL=Indexer-bbb763a7.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './classNames-08d99695', './useComponentTheme-5aa41a8f', './TabbableModeContext-a9c97640', './useTabbableMode-df433329', './useTranslationBundle-8e42d505', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceTheme'], (function(e,s,a,n,t,o,r,l){"use strict";e.InlineHelpSource=function({children:e,source:t}){const c=r.useTranslationBundle("@oracle/oraclejet-preact").userAssistance_learnMore(),u=e||c,{isTabbable:b,tabbableModeProps:d}=o.useTabbableMode(),{classes:i,styles:m}=n.useComponentTheme(l.UserAssistanceRedwoodTheme);return s.jsx("a",{class:a.classNames([i,m.helpSourceStyles]),target:"_blank",href:t,...!b&&d,children:u})}}));
1
+ define(['exports', 'preact/jsx-runtime', './classNames-08d99695', './useComponentTheme-5aa41a8f', './TabbableModeContext-a9c97640', './useTabbableMode-df433329', './useTranslationBundle-27bf6340', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceTheme'], (function(e,s,a,n,t,o,r,l){"use strict";e.InlineHelpSource=function({children:e,source:t}){const c=r.useTranslationBundle("@oracle/oraclejet-preact").userAssistance_learnMore(),b=e||c,{isTabbable:u,tabbableModeProps:d}=o.useTabbableMode(),{classes:i,styles:m}=n.useComponentTheme(l.UserAssistanceRedwoodTheme);return s.jsx("a",{class:a.classNames([i,m.helpSourceStyles]),target:"_blank",href:t,...!u&&d,children:b})}}));
2
2
  //# sourceMappingURL=InlineHelpSource-34ec0779.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact/compat', 'preact/hooks', './Flex-07d2aa5b', './Label-3c17bcc9', './useDisplayValue-fa0fbc23', './Separator-181f7541', './logger-0f873e29', './TabbableModeContext-a9c97640', './LayerHost-daf96749', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', './InlineUserAssistance-e406e352', '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-ae57629b', 'css!./IconStyle.styles.css', './IconButton-232d63fc', '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-695781d6', 'css!./LabelStyles.styles.css', 'module', './UNSAFE_Label/themes/redwood/LabelVariants.css', './InputGroupContext-372087af', 'module', './UNSAFE_Popup/themes/redwood/PopupVariants.css', './View-ab4d3a33', './FormContext-6b0879a0', './useFormContext-b8cbbb21', './useLoadingIndicatorTimer-20a3bf5f', './useTextField-3ab0a23b', './useTranslationBundle-8e42d505', './keyboardUtils-fb6219eb', './tabbableUtils-9101c0e5', './unsafeDomAccess-602c5dde', './useSelectCommon-f04454d2'], (function(e,s,t,o,n,a,r,i,l,c,d,u,p,b,h,S,m,y,x,C,F,f,g,v,w,A,T,U,E,L,k,K,I,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:F,isUserFiltering:f,labelProps:g,listContainerProps:v,selectSingleFieldProps:w,selectFieldInputProps:A,userAssistanceProps:T}=function({"aria-describedby":e,assistiveText:s,data:t,hasBackIcon:n="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 F=o.useRef(null),{textAlign:f}=z.useFormContext(),g=m??f??"start",v=null!=t&&!Z.isBeforeDataFetch(t),w=v&&0===t?.totalSize,A=o.useRef(t),T=o.useRef(y),U=o.useRef(!0),[E,L]=o.useState(void 0===y?void 0:new Set([y.key])),k=Y.useLoadingIndicatorTimer(c??!1),K=r.useDisplayValue(d,y);o.useImperativeHandle(C,(()=>({focus:()=>F.current?.focus(),blur:()=>F.current?.blur(),[q.UNSAFE_DOM_ACCESS]:F.current})),[]);const{currentRowKeyRef:I,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 oe=G.useTranslationBundle("@oracle/oraclejet-preact"),ne=v?0===t?.totalSize?oe.select_noMatchesFound():1===t?.totalSize?oe.select_oneMatchFound():"exact"===t?.sizePrecision?oe.select_sizeMatchesFound({TOTAL_SIZE:`${t?.totalSize}`}):oe.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=o.useCallback(((e,s)=>{b?.({value:e,previousValue:void 0!==y?y.key:void 0,reason:s.reason})}),[b,y]),re=o.useCallback((e=>{L(new Set),ae(void 0,e)}),[ae]),ie=o.useCallback((()=>M&&""===O&&void 0!==y),[M,O,y]),le=o.useCallback((e=>{N();const s=e.context.key;L(new Set([s])),ae(s,{reason:"itemAction"})}),[ae,N]),ce=o.useCallback((({value:e})=>{D(e),h?.({searchText:e})}),[h,D]),de=o.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!==I.current&&null!=t&&t.data.length>0)return L(new Set([I.current])),void ae(I.current,s);ae(y?.key??void 0,s);break}}}),[re,I,t,ie,ae,N,y]),ue=o.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=o.useCallback((e=>{e.code===H.KEYS.TAB&&void 0!==I.current&&null!=t&&t.data.length>0&&(L(new Set([I.current])),ae(I.current,{reason:"tabKey"}))}),[I,t,ae]),be=o.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 o.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"===n,isClearButtonShown:"conditionally"===a&&void 0!==y,onBackButtonClick:p,onClearButtonClick:be,styleVariant:"embedded"},selectFieldInputProps:{...X,"aria-controls":te,"aria-expanded":!0,displayValue:K,hasEmptyLabel:!1,hasInsideLabel:!0,inputRef:F,isAddToListShown:!1,isAdvancedSearchShown:!1,isRequired:!1,isUserFiltering:M,liveRegionText:ne,onInput:ce,onKeyDown:de,onKeyUp:ue,placeholder:S,textAlign:g,userInput:O,variant:"embedded",virtualKeyboard:x},userAssistanceProps:{...se,assistiveText:s,fieldLabel:u,helpSourceLink:i,helpSourceText:l}}}(e,t),U=o.useCallback((({onPersistCurrentRowKey:e,onRowAction:t,selected:o,searchText:n,currentRowKeyOverride:a})=>s.jsx(Z.DefaultList,{"aria-label":p,currentItemVariant:"highlight",currentKey:a,data:l,itemRenderer:d,itemText:u,onCurrentKeyChange:e,onItemAction:t,onLoadRange:b,searchText:f?n:void 0,selectedKeys:o,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(n.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,{...g}),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}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact/compat', 'preact/hooks', './Flex-4bc3a394', './Label-3c17bcc9', './useDisplayValue-fa0fbc23', './Separator-181f7541', './logger-0f873e29', './TabbableModeContext-a9c97640', './LayerHost-7d4aa6d3', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', './InlineUserAssistance-e406e352', '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-3c8a0253', 'css!./IconStyle.styles.css', './IconButton-232d63fc', '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-062b66ff', 'css!./LabelStyles.styles.css', 'module', './UNSAFE_Label/themes/redwood/LabelVariants.css', './InputGroupContext-372087af', 'module', './UNSAFE_Popup/themes/redwood/PopupVariants.css', './View-5520bcf5', './FormContext-6b0879a0', './useFormContext-b8cbbb21', './useLoadingIndicatorTimer-20a3bf5f', './useTextField-3ab0a23b', './useTranslationBundle-27bf6340', './keyboardUtils-fb6219eb', './tabbableUtils-9101c0e5', './unsafeDomAccess-602c5dde', './useSelectCommon-f04454d2'], (function(e,s,t,o,n,a,r,i,l,c,d,u,p,b,h,S,m,y,x,f,C,F,g,v,w,A,T,U,E,L,k,K,I,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:f,isEmptyResults:C,isUserFiltering:F,labelProps:g,listContainerProps:v,selectSingleFieldProps:w,selectFieldInputProps:A,userAssistanceProps:T}=function({"aria-describedby":e,assistiveText:s,data:t,hasBackIcon:n="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},f){const C=o.useRef(null),{textAlign:F}=z.useFormContext(),g=m??F??"start",v=null!=t&&!Z.isBeforeDataFetch(t),w=v&&0===t?.totalSize,A=o.useRef(t),T=o.useRef(y),U=o.useRef(!0),[E,L]=o.useState(void 0===y?void 0:new Set([y.key])),k=Y.useLoadingIndicatorTimer(c??!1),K=r.useDisplayValue(d,y);o.useImperativeHandle(f,(()=>({focus:()=>C.current?.focus(),blur:()=>C.current?.blur(),[q.UNSAFE_DOM_ACCESS]:C.current})),[]);const{currentRowKeyRef:I,currentRowOverride:B,dropdownRef:R,isFocused:P,isUserFiltering:M,onCurrentKeyChange:_,searchText:j,setCurrentRowOverride:V,stopFiltering:N,updateFiltering:D,userInput:O}=Z.useSelectCommon({data:t,inputRef:C,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 oe=G.useTranslationBundle("@oracle/oraclejet-preact"),ne=v?0===t?.totalSize?oe.select_noMatchesFound():1===t?.totalSize?oe.select_oneMatchFound():"exact"===t?.sizePrecision?oe.select_sizeMatchesFound({TOTAL_SIZE:`${t?.totalSize}`}):oe.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=o.useCallback(((e,s)=>{b?.({value:e,previousValue:void 0!==y?y.key:void 0,reason:s.reason})}),[b,y]),re=o.useCallback((e=>{L(new Set),ae(void 0,e)}),[ae]),ie=o.useCallback((()=>M&&""===O&&void 0!==y),[M,O,y]),le=o.useCallback((e=>{N();const s=e.context.key;L(new Set([s])),ae(s,{reason:"itemAction"})}),[ae,N]),ce=o.useCallback((({value:e})=>{D(e),h?.({searchText:e})}),[h,D]),de=o.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!==I.current&&null!=t&&t.data.length>0)return L(new Set([I.current])),void ae(I.current,s);ae(y?.key??void 0,s);break}}}),[re,I,t,ie,ae,N,y]),ue=o.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=o.useCallback((e=>{e.code===H.KEYS.TAB&&void 0!==I.current&&null!=t&&t.data.length>0&&(L(new Set([I.current])),ae(I.current,{reason:"tabKey"}))}),[I,t,ae]),be=o.useCallback((()=>{N(),re({reason:"itemAction"}),C.current?.focus(),h?.({searchText:void 0})}),[re,h,N]),he=Z.useCollectionRenderer({currentKey:B.rowKey,searchText:j,selectedKeys:E,onCurrentKeyChange:_,onItemAction:le});return o.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"===n,isClearButtonShown:"conditionally"===a&&void 0!==y,onBackButtonClick:p,onClearButtonClick:be,styleVariant:"embedded"},selectFieldInputProps:{...X,"aria-controls":te,"aria-expanded":!0,displayValue:K,hasEmptyLabel:!1,hasInsideLabel:!0,inputRef:C,isAddToListShown:!1,isAdvancedSearchShown:!1,isRequired:!1,isUserFiltering:M,liveRegionText:ne,onInput:ce,onKeyDown:de,onKeyUp:ue,placeholder:S,textAlign:g,userInput:O,variant:"embedded",virtualKeyboard:x},userAssistanceProps:{...se,assistiveText:s,fieldLabel:u,helpSourceLink:i,helpSourceText:l}}}(e,t),U=o.useCallback((({onPersistCurrentRowKey:e,onRowAction:t,selected:o,searchText:n,currentRowKeyOverride:a})=>s.jsx(Z.DefaultList,{"aria-label":p,currentItemVariant:"highlight",currentKey:a,data:l,itemRenderer:d,itemText:u,onCurrentKeyChange:e,onItemAction:t,onLoadRange:b,searchText:F?n:void 0,selectedKeys:o,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(n.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,{...g}),testId:S&&`${S}_selectSingleField`,children:s.jsx(r.SelectSingleFieldInput,{...A})}),"aboveList"===m&&s.jsx(i.Separator,{}),"aboveList"===m&&f&&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:C?s.jsx(Z.EmptyResults,{}):U(y)})}),"belowList"===m&&f&&s.jsxs("div",{children:[s.jsx(i.Separator,{}),E]})]})})}));e.InlineSelectSingle=Q}));
2
2
  //# sourceMappingURL=InlineSelectSingle-bebf92d3.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './logger-0f873e29', 'preact/hooks', './Flex-07d2aa5b', 'css!./MessageBannerStyles.styles.css', 'module', './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css', 'preact', './LayerHost-daf96749', 'preact/compat', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-ae57629b', 'css!./IconStyle.styles.css', './IconButton-232d63fc', '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-7d775a43', './FormContext-6b0879a0', './useFormContext-b8cbbb21', './FormFieldContext-a024b891', './useFormFieldContext-9260f081', './InlineHelp-1fc7b3a9', './useTranslationBundle-8e42d505', './useComponentTheme-5aa41a8f', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceTheme', './classNames-08d99695', './InputGroupContext-372087af', './useInputGroupContext-e6e19f4f', './useTestId-9afc201a'], (function(e,s,t,n,o,a,i,r,l,c,d,u,m,p,h,C,g,A,T,x,y,U,f,F,S,b,M,I,w,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=[],userAssistanceDensity:c,testId:d}){const{isReadonly:u}=N.useFormContext(),m="efficient"===c&&!1===u,{isFocused:p}=E.useFormFieldContext(),h=l.length>0?s.jsx(w.ComponentMessageContainer,{fieldLabel:t,messages:l}):(e||n)&&p?s.jsx(j.InlineHelp,{assistiveText:e,sourceLink:n,sourceText:o}):i?s.jsx(V,{align:r}):null;return h||m?s.jsx(D,{id:a,variant:c,testId:d,children:h}):null},e.InlineUserAssistanceContainer=D}));
1
+ define(['exports', 'preact/jsx-runtime', './logger-0f873e29', 'preact/hooks', './Flex-4bc3a394', 'css!./MessageBannerStyles.styles.css', 'module', './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css', 'preact', './LayerHost-7d4aa6d3', 'preact/compat', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-3c8a0253', 'css!./IconStyle.styles.css', './IconButton-232d63fc', '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-7d775a43', './FormContext-6b0879a0', './useFormContext-b8cbbb21', './FormFieldContext-a024b891', './useFormFieldContext-9260f081', './InlineHelp-1fc7b3a9', './useTranslationBundle-27bf6340', './useComponentTheme-5aa41a8f', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceTheme', './classNames-08d99695', './InputGroupContext-372087af', './useInputGroupContext-e6e19f4f', './useTestId-a2e433c2'], (function(e,s,t,n,o,a,i,r,l,c,d,u,m,p,h,C,g,A,T,x,y,U,F,f,S,b,M,I,w,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=[],userAssistanceDensity:c,testId:d}){const{isReadonly:u}=N.useFormContext(),m="efficient"===c&&!1===u,{isFocused:p}=E.useFormFieldContext(),h=l.length>0?s.jsx(w.ComponentMessageContainer,{fieldLabel:t,messages:l}):(e||n)&&p?s.jsx(j.InlineHelp,{assistiveText:e,sourceLink:n,sourceText:o}):i?s.jsx(V,{align:r}):null;return h||m?s.jsx(D,{id:a,variant:c,testId:d,children:h}):null},e.InlineUserAssistanceContainer=D}));
2
2
  //# sourceMappingURL=InlineUserAssistance-e406e352.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact/compat', 'preact/hooks', './swatchData-ef8329c2', './clientHints-6d361eaa', './FormFieldContext-a024b891', './logger-0f873e29', './TabbableModeContext-a9c97640', './useTranslationBundle-8e42d505', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', './InlineUserAssistance-e406e352', './Flex-07d2aa5b', 'css!./MessageBannerStyles.styles.css', 'module', './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css', 'preact', './LayerHost-daf96749', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-ae57629b', 'css!./IconStyle.styles.css', './IconButton-232d63fc', '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-695781d6', './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-c7f3fe2d', './ColorPicker-d578df9c', './SectionedContent-054e2fc2', './ColorSwatch-57d78771', './useDownToggle-80b61b43', './useClearIcon-05225968', './useFocusableTextField-8b755b15', './FormContext-6b0879a0', './useFormContext-b8cbbb21', './useHover-8b8a1496', './useTextField-3ab0a23b', './Label-3c17bcc9', './keyboardUtils-fb6219eb', './TextFieldInput-eb40adaa', 'css!./ObfuscatedTextFieldInputStyles.styles.css', './ReadonlyTextFieldInput-e5723c48', './StyledTextField-5e554e5b', './TextField-51b63f5f', '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-5ef03b0a', './mergeProps-bcfa6a92', './ClearIcon-13bd61d3', './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(),oe?.({previousValue:P,value:void 0})}),[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-192a309b.js.map
1
+ define(['exports', 'preact/jsx-runtime', 'preact/compat', 'preact/hooks', './swatchData-ef8329c2', './clientHints-6d361eaa', './FormFieldContext-a024b891', './logger-0f873e29', './TabbableModeContext-a9c97640', './useTranslationBundle-27bf6340', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', './InlineUserAssistance-e406e352', './Flex-4bc3a394', 'css!./MessageBannerStyles.styles.css', 'module', './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css', 'preact', './LayerHost-7d4aa6d3', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-3c8a0253', 'css!./IconStyle.styles.css', './IconButton-232d63fc', '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-062b66ff', './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-fdd314ac', './ColorPicker-8ef0b6e0', './SectionedContent-bae8af88', './ColorSwatch-57d78771', './useDownToggle-80b61b43', './useClearIcon-05225968', './useFocusableTextField-8b755b15', './FormContext-6b0879a0', './useFormContext-b8cbbb21', './useHover-8b8a1496', './useTextField-3ab0a23b', './Label-3c17bcc9', './keyboardUtils-fb6219eb', './TextFieldInput-eb40adaa', 'css!./ObfuscatedTextFieldInputStyles.styles.css', './ReadonlyTextFieldInput-e5723c48', './StyledTextField-5e554e5b', './TextField-51b63f5f', '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-5ef03b0a', './mergeProps-bcfa6a92', './ClearIcon-13bd61d3', './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(),oe?.({previousValue:P,value:void 0})}),[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-5315b76a.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputColor-192a309b.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 { IconButton } from '#UNSAFE_IconButton';\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 IconButtonProps = ComponentProps<typeof IconButton>;\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<IconButtonProps['onAction']>>(() => {\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\n onInputAndDispatch?.({ previousValue: colorValue, value: undefined });\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","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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UAAfA,GAAyC,WAAfA,CACnC,CACAyC,GAAWqG,YAAc"}
1
+ {"version":3,"file":"InputColor-5315b76a.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 { IconButton } from '#UNSAFE_IconButton';\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 IconButtonProps = ComponentProps<typeof IconButton>;\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<IconButtonProps['onAction']>>(() => {\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\n onInputAndDispatch?.({ previousValue: colorValue, value: undefined });\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","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,GA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