@oracle/oraclejet-preact 14.1.5 → 14.1.6
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.
- package/amd/Badge-dcce6527.js +2 -0
- package/amd/{Badge-f0d7b989.js.map → Badge-dcce6527.js.map} +1 -1
- package/amd/BaseButton-678fe506.js +2 -0
- package/amd/{BaseButton-98aa02ec.js.map → BaseButton-678fe506.js.map} +1 -1
- package/amd/Button-0729d51a.js +2 -0
- package/amd/{Button-0bc2fe21.js.map → Button-0729d51a.js.map} +1 -1
- package/amd/Chip-6b5bda1b.js +2 -0
- package/amd/{Chip-00e323cf.js.map → Chip-6b5bda1b.js.map} +1 -1
- package/amd/{ClearIcon-c1b0bc44.js → ClearIcon-761aea9c.js} +2 -2
- package/amd/{ClearIcon-c1b0bc44.js.map → ClearIcon-761aea9c.js.map} +1 -1
- package/amd/{Collection-21d577d4.js → Collection-f1ddb5d8.js} +1 -1
- package/amd/{Collection-21d577d4.js.map → Collection-f1ddb5d8.js.map} +1 -1
- package/amd/ComponentMessage-ce4b6b66.js +2 -0
- package/amd/{ComponentMessage-20eccae4.js.map → ComponentMessage-ce4b6b66.js.map} +1 -1
- package/amd/ComponentMessageContainer-54b9670b.js +2 -0
- package/amd/{ComponentMessageContainer-71ff9dd8.js.map → ComponentMessageContainer-54b9670b.js.map} +1 -1
- package/amd/Divider-45488de3.js +2 -0
- package/amd/{Divider-d5a03b7b.js.map → Divider-45488de3.js.map} +1 -1
- package/amd/{FilePicker-90cdd185.js → FilePicker-ab67f3b2.js} +2 -2
- package/amd/{FilePicker-90cdd185.js.map → FilePicker-ab67f3b2.js.map} +1 -1
- package/amd/Flex-da4d9aef.js +2 -0
- package/amd/{Flex-15d5bc35.js.map → Flex-da4d9aef.js.map} +1 -1
- package/amd/{Floating-1561e581.js → Floating-eefb778f.js} +2 -2
- package/amd/{Floating-1561e581.js.map → Floating-eefb778f.js.map} +1 -1
- package/amd/{FocusTrap-aa468a19.js → FocusTrap-95e35ab9.js} +2 -2
- package/amd/{FocusTrap-aa468a19.js.map → FocusTrap-95e35ab9.js.map} +1 -1
- package/amd/FormControlUtils-ac9e8cbd.js +2 -0
- package/amd/{FormControlUtils-cecc990c.js.map → FormControlUtils-ac9e8cbd.js.map} +1 -1
- package/amd/Heading-0abbf914.js +2 -0
- package/amd/{Heading-90509dbb.js.map → Heading-0abbf914.js.map} +1 -1
- package/amd/HiddenAccessible-ff276cd9.js +2 -0
- package/amd/{HiddenAccessible-9b5656fc.js.map → HiddenAccessible-ff276cd9.js.map} +1 -1
- package/amd/HighlightText-2d6d1c57.js +2 -0
- package/amd/{HighlightText-812122b6.js.map → HighlightText-2d6d1c57.js.map} +1 -1
- package/amd/Icon-3eb9bdeb.js +2 -0
- package/amd/{Icon-407e8e86.js.map → Icon-3eb9bdeb.js.map} +1 -1
- package/amd/Indexer-79093b65.js +2 -0
- package/amd/{Indexer-c3bbec99.js.map → Indexer-79093b65.js.map} +1 -1
- package/amd/InlineHelpSource-232e0c3c.js +2 -0
- package/amd/{InlineHelpSource-0bc009ea.js.map → InlineHelpSource-232e0c3c.js.map} +1 -1
- package/amd/Link-53d21d46.js +2 -0
- package/amd/{Link-07c2ffe9.js.map → Link-53d21d46.js.map} +1 -1
- package/amd/List-00100b50.js +2 -0
- package/amd/{List-50aa51d1.js.map → List-00100b50.js.map} +1 -1
- package/amd/ListItemTextLayout-448a117b.js +2 -0
- package/amd/{ListItemTextLayout-54eece18.js.map → ListItemTextLayout-448a117b.js.map} +1 -1
- package/amd/{ListView-a816c230.js → ListView-a834813a.js} +2 -2
- package/amd/{ListView-a816c230.js.map → ListView-a834813a.js.map} +1 -1
- package/amd/{LoadMoreCollection-2240001d.js → LoadMoreCollection-031c2ca2.js} +2 -2
- package/amd/{LoadMoreCollection-2240001d.js.map → LoadMoreCollection-031c2ca2.js.map} +1 -1
- package/amd/Menu-ec0c6d1e.js +2 -0
- package/amd/{Menu-5e27712c.js.map → Menu-ec0c6d1e.js.map} +1 -1
- package/amd/MenuDivider-a4c74c21.js +2 -0
- package/amd/{MenuDivider-0ac69c6f.js.map → MenuDivider-a4c74c21.js.map} +1 -1
- package/amd/MenuItem-c024e602.js +2 -0
- package/amd/{MenuItem-bbb70cad.js.map → MenuItem-c024e602.js.map} +1 -1
- package/amd/{Message.types-955c8b23.js → Message.types-68b4b3c2.js} +1 -1
- package/amd/{Message.types-955c8b23.js.map → Message.types-68b4b3c2.js.map} +1 -1
- package/amd/MessageCloseButton-7f96b21f.js +2 -0
- package/amd/{MessageCloseButton-7e34bf21.js.map → MessageCloseButton-7f96b21f.js.map} +1 -1
- package/amd/MessageDetail-6be4d1f0.js +2 -0
- package/amd/{MessageDetail-b39e65b3.js.map → MessageDetail-6be4d1f0.js.map} +1 -1
- package/amd/{MessageFormattingUtils-13349fd6.js → MessageFormattingUtils-4d3117dc.js} +2 -2
- package/amd/{MessageFormattingUtils-13349fd6.js.map → MessageFormattingUtils-4d3117dc.js.map} +1 -1
- package/amd/MessageLayer-45f9380d.js +2 -0
- package/amd/{MessageLayer-176e893a.js.map → MessageLayer-45f9380d.js.map} +1 -1
- package/amd/MessageStartIcon-39d799c2.js +2 -0
- package/amd/{MessageStartIcon-b3527de6.js.map → MessageStartIcon-39d799c2.js.map} +1 -1
- package/amd/MessageSummary-8be73e60.js +2 -0
- package/amd/{MessageSummary-5e61938f.js.map → MessageSummary-8be73e60.js.map} +1 -1
- package/amd/MessageTimestamp-0508a27a.js +2 -0
- package/amd/{MessageTimestamp-26b2985c.js.map → MessageTimestamp-0508a27a.js.map} +1 -1
- package/amd/MessageToast-5ae1dac4.js +2 -0
- package/amd/{MessageToast-e039c084.js.map → MessageToast-5ae1dac4.js.map} +1 -1
- package/amd/{MessageUtils-e44628f3.js → MessageUtils-e5b4c4eb.js} +2 -2
- package/amd/{MessageUtils-e44628f3.js.map → MessageUtils-e5b4c4eb.js.map} +1 -1
- package/amd/{MessagesManager-27fac00f.js → MessagesManager-a039ddb3.js} +2 -2
- package/amd/{MessagesManager-27fac00f.js.map → MessagesManager-a039ddb3.js.map} +1 -1
- package/amd/MeterCircle-335eb864.js +2 -0
- package/amd/{MeterCircle-7d276b71.js.map → MeterCircle-335eb864.js.map} +1 -1
- package/amd/Modal-eaab2932.js +2 -0
- package/amd/{Modal-32300188.js.map → Modal-eaab2932.js.map} +1 -1
- package/amd/{NumberInputText-299fec7b.js → NumberInputText-9b66ee69.js} +2 -2
- package/amd/{NumberInputText-299fec7b.js.map → NumberInputText-9b66ee69.js.map} +1 -1
- package/amd/PRIVATE_Collection/__tests__/Collection.spec.js +1 -1
- package/amd/PRIVATE_Collection.js +1 -1
- package/amd/PRIVATE_List/__tests__/List.spec.js +1 -1
- package/amd/PRIVATE_List.css +15 -15
- package/amd/PRIVATE_List.js +1 -1
- package/amd/PRIVATE_Message/__tests__/MessageCloseButton.spec.js +1 -1
- package/amd/PRIVATE_Message/__tests__/MessageDetail.spec.js +1 -1
- package/amd/PRIVATE_Message/__tests__/MessageFormattingUtils.spec.js +1 -1
- package/amd/PRIVATE_Message/__tests__/MessageStartIcon.spec.js +1 -1
- package/amd/PRIVATE_Message/__tests__/MessageSummary.spec.js +1 -1
- package/amd/PRIVATE_Message/__tests__/MessageTimestamp.spec.js +1 -1
- package/amd/PRIVATE_Message/__tests__/MessageUtils.spec.js +1 -1
- package/amd/PRIVATE_Message/__tests__/MessagesManager.spec.js +1 -1
- package/amd/PRIVATE_Message.css +27 -27
- package/amd/PRIVATE_Message.js +1 -1
- package/amd/PRIVATE_Message.js.map +1 -1
- package/amd/PRIVATE_MessageLayer/__tests__/MessageLayer.spec.js +1 -1
- package/amd/PRIVATE_MessageLayer.css +7 -7
- package/amd/PRIVATE_MessageLayer.js +1 -1
- package/amd/PRIVATE_Meter.js +1 -1
- package/amd/PRIVATE_SelectCommon.css +13 -13
- package/amd/PRIVATE_SelectCommon.js +1 -1
- package/amd/PRIVATE_SelectCommon.js.map +1 -1
- package/amd/PRIVATE_VirtualizedCollection/__tests__/VirtualizedCollection.spec.js +1 -1
- package/amd/PRIVATE_VirtualizedCollection.js +1 -1
- package/amd/ReadonlyTextFieldInput-f86c3c42.js +2 -0
- package/amd/{ReadonlyTextFieldInput-80496dc8.js.map → ReadonlyTextFieldInput-f86c3c42.js.map} +1 -1
- package/amd/{SelectMenuItem-4703851a.js → SelectMenuItem-d738b44f.js} +2 -2
- package/amd/{SelectMenuItem-4703851a.js.map → SelectMenuItem-d738b44f.js.map} +1 -1
- package/amd/SelectMultiple-f9dc64be.js +2 -0
- package/amd/{SelectMultiple-4287a982.js.map → SelectMultiple-f9dc64be.js.map} +1 -1
- package/amd/{SelectSingle-7d048667.js → SelectSingle-29854cfe.js} +2 -2
- package/amd/{SelectSingle-7d048667.js.map → SelectSingle-29854cfe.js.map} +1 -1
- package/amd/Skeleton-2b604636.js +2 -0
- package/amd/{Skeleton-bdd8dd41.js.map → Skeleton-2b604636.js.map} +1 -1
- package/amd/{Spacer-b4fa7910.js → Spacer-a2c98a01.js} +2 -2
- package/amd/{Spacer-b4fa7910.js.map → Spacer-a2c98a01.js.map} +1 -1
- package/amd/SplitMenuButton-86339815.js +2 -0
- package/amd/{SplitMenuButton-23758c0f.js.map → SplitMenuButton-86339815.js.map} +1 -1
- package/amd/Subheading-c6aeec6e.js +2 -0
- package/amd/{Subheading-5cbf8f68.js.map → Subheading-c6aeec6e.js.map} +1 -1
- package/amd/Text-f364af8c.js +2 -0
- package/amd/{Text-0ecfdb67.js.map → Text-f364af8c.js.map} +1 -1
- package/amd/TextArea-51bea9f5.js +2 -0
- package/amd/{TextArea-203d1010.js.map → TextArea-51bea9f5.js.map} +1 -1
- package/amd/{TextAreaAutosize-80aae1b6.js → TextAreaAutosize-df3cc48c.js} +2 -2
- package/amd/{TextAreaAutosize-80aae1b6.js.map → TextAreaAutosize-df3cc48c.js.map} +1 -1
- package/amd/TextFieldInput-12ff173d.js +2 -0
- package/amd/{TextFieldInput-acb394a8.js.map → TextFieldInput-12ff173d.js.map} +1 -1
- package/amd/UNSAFE_AspectRatio.css +1 -1
- package/amd/UNSAFE_AspectRatio.js +1 -1
- package/amd/UNSAFE_Avatar/__tests__/Avatar.spec.js +1 -1
- package/amd/UNSAFE_Avatar.css +8 -8
- package/amd/UNSAFE_Avatar.js +1 -1
- package/amd/UNSAFE_Avatar.js.map +1 -1
- package/amd/UNSAFE_Badge/__tests__/Badge.spec.js +1 -1
- package/amd/UNSAFE_Badge.css +13 -13
- package/amd/UNSAFE_Badge.js +1 -1
- package/amd/UNSAFE_BaseButton/__tests__/BaseButton.spec.js +1 -1
- package/amd/UNSAFE_BaseButton.css +15 -15
- package/amd/UNSAFE_BaseButton.js +1 -1
- package/amd/UNSAFE_Button/__tests__/Button.spec.js +1 -1
- package/amd/UNSAFE_Button.css +7 -7
- package/amd/UNSAFE_Button.js +1 -1
- package/amd/UNSAFE_Center.js +1 -1
- package/amd/UNSAFE_Chip/__tests__/Chip.spec.js +1 -1
- package/amd/UNSAFE_Chip.css +7 -7
- package/amd/UNSAFE_Chip.js +1 -1
- package/amd/UNSAFE_Collapsible.css +8 -8
- package/amd/UNSAFE_Collapsible.js +1 -1
- package/amd/UNSAFE_Collapsible.js.map +1 -1
- package/amd/UNSAFE_ComponentMessage/__tests__/ComponentMessage.spec.js +1 -1
- package/amd/UNSAFE_ComponentMessage/__tests__/ComponentMessageContainer.spec.js +1 -1
- package/amd/UNSAFE_ComponentMessage.css +2 -2
- package/amd/UNSAFE_ComponentMessage.js +1 -1
- package/amd/UNSAFE_Divider/__tests__/Divider.spec.js +1 -1
- package/amd/UNSAFE_Divider.css +1 -1
- package/amd/UNSAFE_Divider.js +1 -1
- package/amd/UNSAFE_FilePicker/__tests__/FilePicker.spec.js +1 -1
- package/amd/UNSAFE_FilePicker.css +6 -6
- package/amd/UNSAFE_FilePicker.js +1 -1
- package/amd/UNSAFE_Flex/__tests__/Flex.spec.js +1 -1
- package/amd/UNSAFE_Flex.css +2 -2
- package/amd/UNSAFE_Flex.js +1 -1
- package/amd/UNSAFE_Floating/__tests__/Floating.spec.js +1 -1
- package/amd/UNSAFE_Floating.js +1 -1
- package/amd/UNSAFE_FocusTrap/__tests__/FocusTrap.spec.js +1 -1
- package/amd/UNSAFE_FocusTrap.css +2 -2
- package/amd/UNSAFE_FocusTrap.js +1 -1
- package/amd/UNSAFE_Grid.css +1 -1
- package/amd/UNSAFE_Grid.js +1 -1
- package/amd/UNSAFE_Heading/__test__/Heading.spec.js +1 -1
- package/amd/UNSAFE_Heading.css +9 -9
- package/amd/UNSAFE_Heading.js +1 -1
- package/amd/UNSAFE_HiddenAccessible/__tests__/HiddenAccessible.spec.js +1 -1
- package/amd/UNSAFE_HiddenAccessible.css +1 -1
- package/amd/UNSAFE_HiddenAccessible.js +1 -1
- package/amd/UNSAFE_HighlightText/__tests__/HighlightText.spec.js +1 -1
- package/amd/UNSAFE_HighlightText.css +1 -1
- package/amd/UNSAFE_HighlightText.js +1 -1
- package/amd/UNSAFE_Icon/__tests__/Icon.spec.js +1 -1
- package/amd/UNSAFE_Icon/__tests__/Icons.spec.js +1 -1
- package/amd/UNSAFE_Icon.css +8 -8
- package/amd/UNSAFE_Icon.js +1 -1
- package/amd/UNSAFE_Icons.js +1 -1
- package/amd/UNSAFE_Indexer/__tests__/Indexer.spec.js +1 -1
- package/amd/UNSAFE_Indexer.css +7 -7
- package/amd/UNSAFE_Indexer.js +1 -1
- package/amd/UNSAFE_InputPassword/__tests__/InputPassword.spec.js +1 -1
- package/amd/UNSAFE_InputPassword.css +1 -1
- package/amd/UNSAFE_InputPassword.js +1 -1
- package/amd/UNSAFE_InputPassword.js.map +1 -1
- package/amd/UNSAFE_InputText.css +1 -1
- package/amd/UNSAFE_InputText.js +1 -1
- package/amd/UNSAFE_Label.css +13 -13
- package/amd/UNSAFE_Label.js +1 -1
- package/amd/UNSAFE_Label.js.map +1 -1
- package/amd/UNSAFE_LabelValueLayout.css +9 -9
- package/amd/UNSAFE_LabelValueLayout.js +1 -1
- package/amd/UNSAFE_LabelValueLayout.js.map +1 -1
- package/amd/UNSAFE_Link/__tests__/Link.spec.js +1 -1
- package/amd/UNSAFE_Link.css +5 -5
- package/amd/UNSAFE_Link.js +1 -1
- package/amd/UNSAFE_ListItemLayout/__tests__/ListItemLayout.spec.js +1 -1
- package/amd/UNSAFE_ListItemLayout.css +9 -9
- package/amd/UNSAFE_ListItemLayout.js +1 -1
- package/amd/UNSAFE_ListView/__tests__/ListView.spec.js +1 -1
- package/amd/UNSAFE_ListView/__tests__/ListViewTabbableMode.spec.js +1 -1
- package/amd/UNSAFE_ListView.js +1 -1
- package/amd/UNSAFE_LiveRegion.css +1 -1
- package/amd/UNSAFE_LiveRegion.js +1 -1
- package/amd/UNSAFE_LoadMoreCollection/__tests__/LoadMoreCollection.spec.js +1 -1
- package/amd/UNSAFE_LoadMoreCollection.js +1 -1
- package/amd/UNSAFE_Menu/__tests__/Menu.spec.js +1 -1
- package/amd/UNSAFE_Menu/__tests__/MenuItem.spec.js +1 -1
- package/amd/UNSAFE_Menu/__tests__/SelectMenuItem.spec.js +1 -1
- package/amd/UNSAFE_Menu/__tests__/SelectMultipleMenuGroup.spec.js +1 -1
- package/amd/UNSAFE_Menu/__tests__/SelectSingleMenuGroup.spec.js +1 -1
- package/amd/UNSAFE_Menu.css +23 -23
- package/amd/UNSAFE_Menu.js +1 -1
- package/amd/UNSAFE_MessageBanner.js +1 -1
- package/amd/UNSAFE_MessageToast/__tests__/MessageToast.spec.js +1 -1
- package/amd/UNSAFE_MessageToast.css +1 -1
- package/amd/UNSAFE_MessageToast.js +1 -1
- package/amd/UNSAFE_MeterBar/__tests__/MeterBar.spec.js +1 -1
- package/amd/UNSAFE_MeterBar.css +44 -44
- package/amd/UNSAFE_MeterBar.js +1 -1
- package/amd/UNSAFE_MeterBar.js.map +1 -1
- package/amd/UNSAFE_MeterCircle/__tests__/MeterCircle.spec.js +1 -1
- package/amd/UNSAFE_MeterCircle.css +46 -46
- package/amd/UNSAFE_MeterCircle.js +1 -1
- package/amd/UNSAFE_Modal/__tests__/Modal.spec.js +1 -1
- package/amd/UNSAFE_Modal.css +3 -3
- package/amd/UNSAFE_Modal.js +1 -1
- package/amd/UNSAFE_NumberInputText/__tests__/NumberInputText.spec.js +1 -1
- package/amd/UNSAFE_NumberInputText.js +1 -1
- package/amd/UNSAFE_PrefixSuffix.css +8 -8
- package/amd/UNSAFE_PrefixSuffix.js +1 -1
- package/amd/UNSAFE_PrefixSuffix.js.map +1 -1
- package/amd/UNSAFE_ProgressBar/__tests__/ProgressBar.spec.js +1 -1
- package/amd/UNSAFE_ProgressBar.css +6 -6
- package/amd/UNSAFE_ProgressBar.js +1 -1
- package/amd/UNSAFE_ProgressBar.js.map +1 -1
- package/amd/UNSAFE_ProgressCircle/__tests__/ProgressCircle.spec.js +1 -1
- package/amd/UNSAFE_ProgressCircle.css +6 -6
- package/amd/UNSAFE_ProgressCircle.js +1 -1
- package/amd/UNSAFE_ProgressCircle.js.map +1 -1
- package/amd/UNSAFE_RatingGauge/__tests__/RatingGauge.spec.js +1 -1
- package/amd/UNSAFE_RatingGauge.css +20 -20
- package/amd/UNSAFE_RatingGauge.js +1 -1
- package/amd/UNSAFE_RatingGauge.js.map +1 -1
- package/amd/UNSAFE_SelectMultiple/__tests__/SelectMultiple.spec.js +1 -1
- package/amd/UNSAFE_SelectMultiple.css +1 -1
- package/amd/UNSAFE_SelectMultiple.js +1 -1
- package/amd/UNSAFE_SelectSingle/__tests__/SelectSingle.spec.js +1 -1
- package/amd/UNSAFE_SelectSingle.js +1 -1
- package/amd/UNSAFE_Selector.css +5 -5
- package/amd/UNSAFE_Selector.js +1 -1
- package/amd/UNSAFE_Selector.js.map +1 -1
- package/amd/UNSAFE_Skeleton/__tests__/Skeleton.spec.js +1 -1
- package/amd/UNSAFE_Skeleton.css +1 -1
- package/amd/UNSAFE_Skeleton.js +1 -1
- package/amd/UNSAFE_Spacer/__tests__/Spacer.spec.js +1 -1
- package/amd/UNSAFE_Spacer.js +1 -1
- package/amd/UNSAFE_SplitMenuButton/__tests__/SplitMenuButton.spec.js +1 -1
- package/amd/UNSAFE_SplitMenuButton.css +5 -5
- package/amd/UNSAFE_SplitMenuButton.js +1 -1
- package/amd/UNSAFE_Subheading/__test__/Subheading.spec.js +1 -1
- package/amd/UNSAFE_Subheading.css +8 -8
- package/amd/UNSAFE_Subheading.js +1 -1
- package/amd/UNSAFE_Text/__tests__/Text.spec.js +1 -1
- package/amd/UNSAFE_Text.css +25 -25
- package/amd/UNSAFE_Text.js +1 -1
- package/amd/UNSAFE_TextArea/__tests__/TextArea.spec.js +1 -1
- package/amd/UNSAFE_TextArea.css +3 -3
- package/amd/UNSAFE_TextArea.js +1 -1
- package/amd/UNSAFE_TextAreaAutosize/__tests__/TextAreaAutosize.spec.js +1 -1
- package/amd/UNSAFE_TextAreaAutosize.js +1 -1
- package/amd/UNSAFE_TextField/__tests__/ReadonlyTextFieldInput.spec.js +1 -1
- package/amd/UNSAFE_TextField/__tests__/TextFieldInput.spec.js +1 -1
- package/amd/UNSAFE_TextField.css +58 -58
- package/amd/UNSAFE_TextField.js +1 -1
- package/amd/UNSAFE_TextField.js.map +1 -1
- package/amd/UNSAFE_ThemedIcons.js +1 -1
- package/amd/UNSAFE_UserAssistance/__tests__/InlineHelpSource.spec.js +1 -1
- package/amd/UNSAFE_UserAssistance.css +8 -8
- package/amd/UNSAFE_UserAssistance.js +1 -1
- package/amd/UNSAFE_UserAssistance.js.map +1 -1
- package/amd/UNSAFE_View/__tests__/View.spec.js +1 -1
- package/amd/UNSAFE_View.js +1 -1
- package/amd/UNSAFE_VirtualizedListView/__tests__/VirtualizedListView.spec.js +1 -1
- package/amd/UNSAFE_VirtualizedListView/__tests__/VirtualizedListViewTabbableMode.spec.js +1 -1
- package/amd/UNSAFE_VirtualizedListView.js +1 -1
- package/amd/{VirtualizedCollection-c063d758.js → VirtualizedCollection-36b73f80.js} +2 -2
- package/amd/{VirtualizedCollection-c063d758.js.map → VirtualizedCollection-36b73f80.js.map} +1 -1
- package/amd/{VirtualizedListView-c9248b32.js → VirtualizedListView-c4092be8.js} +2 -2
- package/amd/{VirtualizedListView-c9248b32.js.map → VirtualizedListView-c4092be8.js.map} +1 -1
- package/amd/__tests__/FormControls/FormControlAria.spec.js +1 -1
- package/amd/__tests__/FormControls/FormControlClearIcon.spec.js +1 -1
- package/amd/__tests__/FormControls/FormControlCommit.spec.js +1 -1
- package/amd/__tests__/FormControls/FormControlPrefixSuffix.spec.js +1 -1
- package/amd/{_curry1-bfb70780.js → _curry1-0511449d.js} +1 -1
- package/amd/{_curry1-bfb70780.js.map → _curry1-0511449d.js.map} +1 -1
- package/amd/{_curry2-7b85b54b.js → _curry2-e2b86cd0.js} +2 -2
- package/amd/{_curry2-7b85b54b.js.map → _curry2-e2b86cd0.js.map} +1 -1
- package/amd/{_curry3-f349f786.js → _curry3-2a7dcff9.js} +2 -2
- package/amd/{_curry3-f349f786.js.map → _curry3-2a7dcff9.js.map} +1 -1
- package/amd/_has-a3099a21.js +2 -0
- package/amd/{_has-58d7ca1c.js.map → _has-a3099a21.js.map} +1 -1
- package/amd/{classNames-48f791d2.js → classNames-e7b3a8a5.js} +1 -1
- package/amd/{classNames-48f791d2.js.map → classNames-e7b3a8a5.js.map} +1 -1
- package/amd/{clientHints-2720428b.js → clientHints-f0b540bd.js} +1 -1
- package/amd/{clientHints-2720428b.js.map → clientHints-f0b540bd.js.map} +1 -1
- package/amd/flexbox-9553d7e5.js +2 -0
- package/amd/{flexbox-32e806d7.js.map → flexbox-9553d7e5.js.map} +1 -1
- package/amd/flexitem-1beee224.js +2 -0
- package/amd/{flexitem-9be197e6.js.map → flexitem-1beee224.js.map} +1 -1
- package/amd/hooks/PRIVATE_useDvtMeterEvents.js +1 -1
- package/amd/hooks/PRIVATE_useSingleSelection.js +1 -1
- package/amd/hooks/UNSAFE_useAnimation/__tests__/useAnimation.spec.js +1 -1
- package/amd/hooks/UNSAFE_useAnimation.js +1 -1
- package/amd/hooks/UNSAFE_useFloating.js +1 -1
- package/amd/hooks/UNSAFE_useFocusWithin/__tests__/useFocusWithin.spec.js +1 -1
- package/amd/hooks/UNSAFE_useFocusWithin.js +1 -1
- package/amd/hooks/UNSAFE_useFocusableTextField.js +1 -1
- package/amd/hooks/UNSAFE_usePrefixSuffix.js +1 -1
- package/amd/hooks/UNSAFE_useTextFieldInputHandlers.js +1 -1
- package/amd/hooks/UNSAFE_useTooltip.css +4 -4
- package/amd/hooks/UNSAFE_useTooltip.js +1 -1
- package/amd/hooks/UNSAFE_useTooltip.js.map +1 -1
- package/amd/{index-75895152.js → index-6430a462.js} +2 -2
- package/amd/{index-75895152.js.map → index-6430a462.js.map} +1 -1
- package/amd/{index-e367851e.js → index-aca0a20d.js} +1 -1
- package/amd/{index-e367851e.js.map → index-aca0a20d.js.map} +1 -1
- package/amd/{index-da18fda5.js → index-c858cea4.js} +2 -2
- package/amd/{index-da18fda5.js.map → index-c858cea4.js.map} +1 -1
- package/amd/{keys-01c2ee96.js → keys-e12ae309.js} +2 -2
- package/amd/{keys-01c2ee96.js.map → keys-e12ae309.js.map} +1 -1
- package/amd/{listViewSelectionTests-d06e3fa0.js → listViewSelectionTests-0b3a3716.js} +2 -2
- package/amd/{listViewSelectionTests-d06e3fa0.js.map → listViewSelectionTests-0b3a3716.js.map} +1 -1
- package/amd/{listViewTabbableModeTests-eb51483d.js → listViewTabbableModeTests-c4d3faea.js} +2 -2
- package/amd/{listViewTabbableModeTests-eb51483d.js.map → listViewTabbableModeTests-c4d3faea.js.map} +1 -1
- package/amd/{listViewTestFixtures-f58b7fba.js → listViewTestFixtures-d2fbd366.js} +1 -1
- package/amd/{listViewTestFixtures-f58b7fba.js.map → listViewTestFixtures-d2fbd366.js.map} +1 -1
- package/amd/{menuTestsUtils-8353adbc.js → menuTestsUtils-0cfa5d1b.js} +1 -1
- package/amd/{menuTestsUtils-8353adbc.js.map → menuTestsUtils-0cfa5d1b.js.map} +1 -1
- package/amd/{stringUtils-b364ba2c.js → stringUtils-d0680e4b.js} +1 -1
- package/amd/{stringUtils-b364ba2c.js.map → stringUtils-d0680e4b.js.map} +1 -1
- package/amd/{testHelpers-2b412d1d.js → testHelpers-2d4f142f.js} +1 -1
- package/amd/{testHelpers-2b412d1d.js.map → testHelpers-2d4f142f.js.map} +1 -1
- package/amd/{tslib.es6-f7df635a.js → tslib.es6-db9b6ac2.js} +1 -1
- package/amd/{tslib.es6-f7df635a.js.map → tslib.es6-db9b6ac2.js.map} +1 -1
- package/amd/{useAnimation-0bb47b6d.js → useAnimation-032c3574.js} +2 -2
- package/amd/{useAnimation-0bb47b6d.js.map → useAnimation-032c3574.js.map} +1 -1
- package/amd/{useFocusWithin-8ccbb989.js → useFocusWithin-f503b34e.js} +1 -1
- package/amd/{useFocusWithin-8ccbb989.js.map → useFocusWithin-f503b34e.js.map} +1 -1
- package/amd/{useModal-664a7d66.js → useModal-57dbe5e1.js} +1 -1
- package/amd/{useModal-664a7d66.js.map → useModal-57dbe5e1.js.map} +1 -1
- package/amd/{useSingleSelection-9b7cdfbc.js → useSingleSelection-b0da8bad.js} +1 -1
- package/amd/{useSingleSelection-9b7cdfbc.js.map → useSingleSelection-b0da8bad.js.map} +1 -1
- package/amd/utils/PRIVATE_clientHints/__tests__/clientHints.spec.js +1 -1
- package/amd/utils/PRIVATE_clientHints.js +1 -1
- package/amd/utils/PRIVATE_tabbableUtils.js +1 -1
- package/amd/utils/UNSAFE_classNames/classNames.spec.js +1 -1
- package/amd/utils/UNSAFE_classNames.js +1 -1
- package/amd/utils/UNSAFE_interpolations/boxalignment.css +15 -15
- package/amd/utils/UNSAFE_interpolations/boxalignment.js +1 -1
- package/amd/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
- package/amd/utils/UNSAFE_interpolations/dimensions.js +1 -1
- package/amd/utils/UNSAFE_interpolations/flexbox/flexbox.spec.js +1 -1
- package/amd/utils/UNSAFE_interpolations/flexbox.css +7 -7
- package/amd/utils/UNSAFE_interpolations/flexbox.js +1 -1
- package/amd/utils/UNSAFE_interpolations/flexitem/flexitem.spec.js +1 -1
- package/amd/utils/UNSAFE_interpolations/flexitem.css +7 -7
- package/amd/utils/UNSAFE_interpolations/flexitem.js +1 -1
- package/amd/utils/UNSAFE_interpolations/text.css +3 -3
- package/amd/utils/UNSAFE_interpolations/text.js +1 -1
- package/amd/utils/UNSAFE_interpolations/text.js.map +1 -1
- package/amd/utils/UNSAFE_logger.js +1 -1
- package/amd/utils/UNSAFE_mergeInterpolations.js +1 -1
- package/amd/utils/UNSAFE_stringUtils/stringUtils.spec.js +1 -1
- package/amd/utils/UNSAFE_stringUtils.js +1 -1
- package/amd/utils/UNSAFE_units.js +1 -1
- package/cjs/{Badge-0fc718e1.js → Badge-bd2f07f9.js} +16 -16
- package/cjs/{Badge-0fc718e1.js.map → Badge-bd2f07f9.js.map} +1 -1
- package/cjs/{BaseButton-3f86eb92.js → BaseButton-085a1254.js} +20 -20
- package/cjs/{BaseButton-3f86eb92.js.map → BaseButton-085a1254.js.map} +1 -1
- package/cjs/{Button-afebd03c.js → Button-3c7dbdd5.js} +12 -12
- package/cjs/{Button-afebd03c.js.map → Button-3c7dbdd5.js.map} +1 -1
- package/cjs/{Chip-355b58f7.js → Chip-5197fb2f.js} +10 -10
- package/cjs/{Chip-355b58f7.js.map → Chip-5197fb2f.js.map} +1 -1
- package/cjs/{ClearIcon-6d51eb35.js → ClearIcon-a51d31ca.js} +3 -3
- package/cjs/{ClearIcon-6d51eb35.js.map → ClearIcon-a51d31ca.js.map} +1 -1
- package/cjs/{Collection-e1633293.js → Collection-4cc0f696.js} +2 -2
- package/cjs/{Collection-e1633293.js.map → Collection-4cc0f696.js.map} +1 -1
- package/cjs/{ComponentMessage-a56fde4b.js → ComponentMessage-a833adda.js} +8 -8
- package/cjs/{ComponentMessage-a56fde4b.js.map → ComponentMessage-a833adda.js.map} +1 -1
- package/cjs/{ComponentMessageContainer-d0001f84.js → ComponentMessageContainer-c4c19460.js} +5 -5
- package/cjs/{ComponentMessageContainer-d0001f84.js.map → ComponentMessageContainer-c4c19460.js.map} +1 -1
- package/cjs/{Divider-6743d49d.js → Divider-b0275810.js} +3 -3
- package/cjs/{Divider-6743d49d.js.map → Divider-b0275810.js.map} +1 -1
- package/cjs/{FilePicker-56c0fb12.js → FilePicker-a51d4cab.js} +14 -14
- package/cjs/{FilePicker-56c0fb12.js.map → FilePicker-a51d4cab.js.map} +1 -1
- package/cjs/{Flex-63a59c1e.js → Flex-f0986956.js} +8 -8
- package/cjs/{Flex-63a59c1e.js.map → Flex-f0986956.js.map} +1 -1
- package/cjs/{Floating-6e7f5043.js → Floating-84d57873.js} +3 -3
- package/cjs/{Floating-6e7f5043.js.map → Floating-84d57873.js.map} +1 -1
- package/cjs/{FocusTrap-3767a0cd.js → FocusTrap-adceb274.js} +5 -5
- package/cjs/{FocusTrap-3767a0cd.js.map → FocusTrap-adceb274.js.map} +1 -1
- package/cjs/{FormControlUtils-7f8b6b9f.js → FormControlUtils-65d5c4cd.js} +5 -5
- package/cjs/{FormControlUtils-7f8b6b9f.js.map → FormControlUtils-65d5c4cd.js.map} +1 -1
- package/cjs/{Heading-686e20ac.js → Heading-184bc813.js} +13 -13
- package/cjs/{Heading-686e20ac.js.map → Heading-184bc813.js.map} +1 -1
- package/cjs/{HiddenAccessible-8b5cfd53.js → HiddenAccessible-28722ff2.js} +3 -3
- package/cjs/{HiddenAccessible-8b5cfd53.js.map → HiddenAccessible-28722ff2.js.map} +1 -1
- package/cjs/{HighlightText-c00daf70.js → HighlightText-fdb914cf.js} +3 -3
- package/cjs/{HighlightText-c00daf70.js.map → HighlightText-fdb914cf.js.map} +1 -1
- package/cjs/{Icon-fb406179.js → Icon-00c9c8e3.js} +11 -11
- package/cjs/{Icon-fb406179.js.map → Icon-00c9c8e3.js.map} +1 -1
- package/cjs/{Indexer-47b20708.js → Indexer-43a1bc6c.js} +16 -16
- package/cjs/{Indexer-47b20708.js.map → Indexer-43a1bc6c.js.map} +1 -1
- package/cjs/{InlineHelpSource-379a0403.js → InlineHelpSource-c010cde4.js} +3 -3
- package/cjs/{InlineHelpSource-379a0403.js.map → InlineHelpSource-c010cde4.js.map} +1 -1
- package/cjs/{Link-3d65900f.js → Link-192ab9f9.js} +8 -8
- package/cjs/{Link-3d65900f.js.map → Link-192ab9f9.js.map} +1 -1
- package/cjs/{List-5f940caa.js → List-21563b1a.js} +23 -23
- package/cjs/{List-5f940caa.js.map → List-21563b1a.js.map} +1 -1
- package/cjs/{ListItemTextLayout-dba7b44a.js → ListItemTextLayout-340a7244.js} +13 -13
- package/cjs/{ListItemTextLayout-dba7b44a.js.map → ListItemTextLayout-340a7244.js.map} +1 -1
- package/cjs/{ListView-f0cd76ce.js → ListView-83a712b6.js} +3 -3
- package/cjs/{ListView-f0cd76ce.js.map → ListView-83a712b6.js.map} +1 -1
- package/cjs/{LoadMoreCollection-5bd0dc52.js → LoadMoreCollection-824287aa.js} +3 -3
- package/cjs/{LoadMoreCollection-5bd0dc52.js.map → LoadMoreCollection-824287aa.js.map} +1 -1
- package/cjs/{Menu-e21a4fff.js → Menu-e5959556.js} +16 -16
- package/cjs/{Menu-e21a4fff.js.map → Menu-e5959556.js.map} +1 -1
- package/cjs/{MenuDivider-66b5a829.js → MenuDivider-a8070117.js} +4 -4
- package/cjs/{MenuDivider-66b5a829.js.map → MenuDivider-a8070117.js.map} +1 -1
- package/cjs/{MenuItem-9c2b155e.js → MenuItem-dedb3065.js} +19 -19
- package/cjs/{MenuItem-9c2b155e.js.map → MenuItem-dedb3065.js.map} +1 -1
- package/cjs/{Message.types-8d31665a.js → Message.types-1bf43224.js} +2 -2
- package/cjs/{Message.types-8d31665a.js.map → Message.types-1bf43224.js.map} +1 -1
- package/cjs/{MessageCloseButton-c57bb752.js → MessageCloseButton-cd3d1b65.js} +9 -9
- package/cjs/{MessageCloseButton-c57bb752.js.map → MessageCloseButton-cd3d1b65.js.map} +1 -1
- package/cjs/{MessageDetail-d4776885.js → MessageDetail-c3aa3da3.js} +7 -7
- package/cjs/{MessageDetail-d4776885.js.map → MessageDetail-c3aa3da3.js.map} +1 -1
- package/cjs/{MessageFormattingUtils-c94f7a53.js → MessageFormattingUtils-19acf058.js} +4 -4
- package/cjs/{MessageFormattingUtils-c94f7a53.js.map → MessageFormattingUtils-19acf058.js.map} +1 -1
- package/cjs/{MessageLayer-282aea10.js → MessageLayer-4c743536.js} +11 -11
- package/cjs/{MessageLayer-282aea10.js.map → MessageLayer-4c743536.js.map} +1 -1
- package/cjs/{MessageStartIcon-d6efa0ad.js → MessageStartIcon-59b06e6a.js} +11 -11
- package/cjs/{MessageStartIcon-d6efa0ad.js.map → MessageStartIcon-59b06e6a.js.map} +1 -1
- package/cjs/{MessageSummary-1e52ac99.js → MessageSummary-079e4290.js} +7 -7
- package/cjs/{MessageSummary-1e52ac99.js.map → MessageSummary-079e4290.js.map} +1 -1
- package/cjs/{MessageTimestamp-a3770857.js → MessageTimestamp-27dd0d9e.js} +5 -5
- package/cjs/{MessageTimestamp-a3770857.js.map → MessageTimestamp-27dd0d9e.js.map} +1 -1
- package/cjs/{MessageToast-b1c6423e.js → MessageToast-319efe17.js} +9 -9
- package/cjs/{MessageToast-b1c6423e.js.map → MessageToast-319efe17.js.map} +1 -1
- package/cjs/{MessageUtils-a1fcfc6e.js → MessageUtils-fd46058f.js} +3 -3
- package/cjs/{MessageUtils-a1fcfc6e.js.map → MessageUtils-fd46058f.js.map} +1 -1
- package/cjs/{MessagesManager-ce7a6c8e.js → MessagesManager-c5b65212.js} +4 -4
- package/cjs/{MessagesManager-ce7a6c8e.js.map → MessagesManager-c5b65212.js.map} +1 -1
- package/cjs/{MeterCircle-24af4f8e.js → MeterCircle-c5497f4a.js} +50 -50
- package/cjs/{MeterCircle-24af4f8e.js.map → MeterCircle-c5497f4a.js.map} +1 -1
- package/cjs/{Modal-3117cffd.js → Modal-3a2bbc18.js} +7 -7
- package/cjs/{Modal-3117cffd.js.map → Modal-3a2bbc18.js.map} +1 -1
- package/cjs/{NumberInputText-cf31ba60.js → NumberInputText-2d9c2d91.js} +7 -7
- package/cjs/{NumberInputText-cf31ba60.js.map → NumberInputText-2d9c2d91.js.map} +1 -1
- package/cjs/PRIVATE_Collection/__tests__/Collection.spec.js +2 -2
- package/cjs/PRIVATE_Collection.js +2 -2
- package/cjs/PRIVATE_List/__tests__/List.spec.js +24 -24
- package/cjs/PRIVATE_List.js +23 -23
- package/cjs/PRIVATE_Message/__tests__/MessageCloseButton.spec.js +17 -17
- package/cjs/PRIVATE_Message/__tests__/MessageDetail.spec.js +6 -6
- package/cjs/PRIVATE_Message/__tests__/MessageFormattingUtils.spec.js +4 -4
- package/cjs/PRIVATE_Message/__tests__/MessageStartIcon.spec.js +19 -19
- package/cjs/PRIVATE_Message/__tests__/MessageSummary.spec.js +3 -3
- package/cjs/PRIVATE_Message/__tests__/MessageTimestamp.spec.js +6 -6
- package/cjs/PRIVATE_Message/__tests__/MessageUtils.spec.js +7 -7
- package/cjs/PRIVATE_Message/__tests__/MessagesManager.spec.js +4 -4
- package/cjs/PRIVATE_Message.js +41 -41
- package/cjs/PRIVATE_Message.js.map +1 -1
- package/cjs/PRIVATE_MessageLayer/__tests__/MessageLayer.spec.js +12 -12
- package/cjs/PRIVATE_MessageLayer.js +12 -12
- package/cjs/PRIVATE_Meter.js +2 -2
- package/cjs/PRIVATE_SelectCommon.js +54 -54
- package/cjs/PRIVATE_SelectCommon.js.map +1 -1
- package/cjs/PRIVATE_TransitionGroup.js +1 -1
- package/cjs/PRIVATE_VirtualizedCollection/__tests__/VirtualizedCollection.spec.js +3 -3
- package/cjs/PRIVATE_VirtualizedCollection.js +3 -3
- package/cjs/{ReadonlyTextFieldInput-9536ceba.js → ReadonlyTextFieldInput-6891bdbd.js} +13 -13
- package/cjs/{ReadonlyTextFieldInput-9536ceba.js.map → ReadonlyTextFieldInput-6891bdbd.js.map} +1 -1
- package/cjs/{SelectMenuItem-8615ddba.js → SelectMenuItem-73206b5c.js} +5 -5
- package/cjs/{SelectMenuItem-8615ddba.js.map → SelectMenuItem-73206b5c.js.map} +1 -1
- package/cjs/{SelectMultiple-0bef48d6.js → SelectMultiple-fe824a06.js} +8 -8
- package/cjs/{SelectMultiple-0bef48d6.js.map → SelectMultiple-fe824a06.js.map} +1 -1
- package/cjs/{SelectSingle-efb70722.js → SelectSingle-d29cde39.js} +4 -4
- package/cjs/{SelectSingle-efb70722.js.map → SelectSingle-d29cde39.js.map} +1 -1
- package/cjs/{Skeleton-d620b675.js → Skeleton-b99a09bb.js} +5 -5
- package/cjs/{Skeleton-d620b675.js.map → Skeleton-b99a09bb.js.map} +1 -1
- package/cjs/{Spacer-557cfe2b.js → Spacer-5d935b08.js} +4 -4
- package/cjs/{Spacer-557cfe2b.js.map → Spacer-5d935b08.js.map} +1 -1
- package/cjs/{SplitMenuButton-fd5b870d.js → SplitMenuButton-1f02988e.js} +14 -14
- package/cjs/{SplitMenuButton-fd5b870d.js.map → SplitMenuButton-1f02988e.js.map} +1 -1
- package/cjs/{Subheading-67f22d3d.js → Subheading-ee6e241e.js} +11 -11
- package/cjs/{Subheading-67f22d3d.js.map → Subheading-ee6e241e.js.map} +1 -1
- package/cjs/{Text-ab154a19.js → Text-0aba2bbe.js} +28 -28
- package/cjs/{Text-ab154a19.js.map → Text-0aba2bbe.js.map} +1 -1
- package/cjs/{TextArea-a859433f.js → TextArea-a6865f01.js} +8 -8
- package/cjs/{TextArea-a859433f.js.map → TextArea-a6865f01.js.map} +1 -1
- package/cjs/{TextAreaAutosize-c0be95cf.js → TextAreaAutosize-95b5aaaa.js} +5 -5
- package/cjs/{TextAreaAutosize-c0be95cf.js.map → TextAreaAutosize-95b5aaaa.js.map} +1 -1
- package/cjs/{TextFieldInput-a62fbb8f.js → TextFieldInput-a82e671e.js} +33 -33
- package/cjs/{TextFieldInput-a62fbb8f.js.map → TextFieldInput-a82e671e.js.map} +1 -1
- package/cjs/UNSAFE_AspectRatio.js +8 -8
- package/cjs/UNSAFE_Avatar/__tests__/Avatar.spec.js +3 -3
- package/cjs/UNSAFE_Avatar.js +11 -11
- package/cjs/UNSAFE_Avatar.js.map +1 -1
- package/cjs/UNSAFE_Badge/__tests__/Badge.spec.js +3 -3
- package/cjs/UNSAFE_Badge.js +3 -3
- package/cjs/UNSAFE_BaseButton/__tests__/BaseButton.spec.js +9 -9
- package/cjs/UNSAFE_BaseButton.js +9 -9
- package/cjs/UNSAFE_Button/__tests__/Button.spec.js +10 -10
- package/cjs/UNSAFE_Button.js +10 -10
- package/cjs/UNSAFE_Center.js +11 -11
- package/cjs/UNSAFE_Chip/__tests__/Chip.spec.js +3 -3
- package/cjs/UNSAFE_Chip.js +3 -3
- package/cjs/UNSAFE_Collapsible.js +26 -26
- package/cjs/UNSAFE_Collapsible.js.map +1 -1
- package/cjs/UNSAFE_Collection.js +1 -1
- package/cjs/UNSAFE_ComponentMessage/__tests__/ComponentMessage.spec.js +32 -32
- package/cjs/UNSAFE_ComponentMessage/__tests__/ComponentMessageContainer.spec.js +33 -33
- package/cjs/UNSAFE_ComponentMessage.js +33 -33
- package/cjs/UNSAFE_Divider/__tests__/Divider.spec.js +7 -7
- package/cjs/UNSAFE_Divider.js +7 -7
- package/cjs/UNSAFE_EmptyList.js +1 -1
- package/cjs/UNSAFE_Environment/__tests__/Environment.spec.js +1 -1
- package/cjs/UNSAFE_Environment.js +1 -1
- package/cjs/UNSAFE_FilePicker/__tests__/FilePicker.spec.js +14 -14
- package/cjs/UNSAFE_FilePicker.js +14 -14
- package/cjs/UNSAFE_Flex/__tests__/Flex.spec.js +11 -11
- package/cjs/UNSAFE_Flex.js +11 -11
- package/cjs/UNSAFE_Floating/__tests__/Floating.spec.js +3 -3
- package/cjs/UNSAFE_Floating.js +3 -3
- package/cjs/UNSAFE_FocusTrap/__tests__/FocusTrap.spec.js +6 -6
- package/cjs/UNSAFE_FocusTrap.js +6 -6
- package/cjs/UNSAFE_Grid.js +9 -9
- package/cjs/UNSAFE_Heading/__test__/Heading.spec.js +11 -11
- package/cjs/UNSAFE_Heading.js +9 -9
- package/cjs/UNSAFE_HiddenAccessible/__tests__/HiddenAccessible.spec.js +12 -12
- package/cjs/UNSAFE_HiddenAccessible.js +2 -2
- package/cjs/UNSAFE_HighlightText/__tests__/HighlightText.spec.js +2 -2
- package/cjs/UNSAFE_HighlightText.js +2 -2
- package/cjs/UNSAFE_Icon/__tests__/Icon.spec.js +8 -8
- package/cjs/UNSAFE_Icon/__tests__/Icons.spec.js +9 -9
- package/cjs/UNSAFE_Icon.js +7 -7
- package/cjs/UNSAFE_Icons.js +8 -8
- package/cjs/UNSAFE_Indexer/__tests__/Indexer.spec.js +16 -16
- package/cjs/UNSAFE_Indexer.js +16 -16
- package/cjs/UNSAFE_InputPassword/__tests__/InputPassword.spec.js +39 -39
- package/cjs/UNSAFE_InputPassword.js +40 -40
- package/cjs/UNSAFE_InputText.js +39 -39
- package/cjs/UNSAFE_Label.js +16 -16
- package/cjs/UNSAFE_Label.js.map +1 -1
- package/cjs/UNSAFE_LabelValueLayout.js +20 -20
- package/cjs/UNSAFE_LabelValueLayout.js.map +1 -1
- package/cjs/UNSAFE_Layer.js +1 -1
- package/cjs/UNSAFE_Link/__tests__/Link.spec.js +3 -3
- package/cjs/UNSAFE_Link.js +3 -3
- package/cjs/UNSAFE_ListItemLayout/__tests__/ListItemLayout.spec.js +10 -10
- package/cjs/UNSAFE_ListItemLayout.js +10 -10
- package/cjs/UNSAFE_ListView/__tests__/ListView.spec.js +27 -27
- package/cjs/UNSAFE_ListView/__tests__/ListViewTabbableMode.spec.js +27 -27
- package/cjs/UNSAFE_ListView.js +24 -24
- package/cjs/UNSAFE_LiveRegion.js +2 -2
- package/cjs/UNSAFE_LoadMoreCollection/__tests__/LoadMoreCollection.spec.js +3 -3
- package/cjs/UNSAFE_LoadMoreCollection.js +3 -3
- package/cjs/UNSAFE_Menu/__tests__/Menu.spec.js +19 -19
- package/cjs/UNSAFE_Menu/__tests__/MenuItem.spec.js +11 -11
- package/cjs/UNSAFE_Menu/__tests__/SelectMenuItem.spec.js +18 -18
- package/cjs/UNSAFE_Menu/__tests__/SelectMultipleMenuGroup.spec.js +22 -22
- package/cjs/UNSAFE_Menu/__tests__/SelectSingleMenuGroup.spec.js +22 -22
- package/cjs/UNSAFE_Menu.js +16 -16
- package/cjs/UNSAFE_MessageBanner.js +30 -30
- package/cjs/UNSAFE_MessageToast/__tests__/MessageToast.spec.js +33 -33
- package/cjs/UNSAFE_MessageToast.js +33 -33
- package/cjs/UNSAFE_MeterBar/__tests__/MeterBar.spec.js +7 -7
- package/cjs/UNSAFE_MeterBar.js +50 -50
- package/cjs/UNSAFE_MeterBar.js.map +1 -1
- package/cjs/UNSAFE_MeterCircle/__tests__/MeterCircle.spec.js +8 -8
- package/cjs/UNSAFE_MeterCircle.js +7 -7
- package/cjs/UNSAFE_Modal/__tests__/Modal.spec.js +8 -8
- package/cjs/UNSAFE_Modal.js +8 -8
- package/cjs/UNSAFE_NumberInputText/__tests__/NumberInputText.spec.js +39 -39
- package/cjs/UNSAFE_NumberInputText.js +39 -39
- package/cjs/UNSAFE_PrefixSuffix.js +10 -10
- package/cjs/UNSAFE_PrefixSuffix.js.map +1 -1
- package/cjs/UNSAFE_ProgressBar/__tests__/ProgressBar.spec.js +3 -3
- package/cjs/UNSAFE_ProgressBar.js +9 -9
- package/cjs/UNSAFE_ProgressBar.js.map +1 -1
- package/cjs/UNSAFE_ProgressCircle/__tests__/ProgressCircle.spec.js +3 -3
- package/cjs/UNSAFE_ProgressCircle.js +9 -9
- package/cjs/UNSAFE_ProgressCircle.js.map +1 -1
- package/cjs/UNSAFE_RatingGauge/__tests__/RatingGauge.spec.js +7 -7
- package/cjs/UNSAFE_RatingGauge.js +26 -26
- package/cjs/UNSAFE_RatingGauge.js.map +1 -1
- package/cjs/UNSAFE_SelectMultiple/__tests__/SelectMultiple.spec.js +47 -47
- package/cjs/UNSAFE_SelectMultiple.js +47 -47
- package/cjs/UNSAFE_SelectSingle/__tests__/SelectSingle.spec.js +46 -46
- package/cjs/UNSAFE_SelectSingle.js +46 -46
- package/cjs/UNSAFE_Selector.js +22 -22
- package/cjs/UNSAFE_Selector.js.map +1 -1
- package/cjs/UNSAFE_Skeleton/__tests__/Skeleton.spec.js +8 -8
- package/cjs/UNSAFE_Skeleton.js +8 -8
- package/cjs/UNSAFE_Spacer/__tests__/Spacer.spec.js +10 -10
- package/cjs/UNSAFE_Spacer.js +10 -10
- package/cjs/UNSAFE_SplitMenuButton/__tests__/SplitMenuButton.spec.js +23 -23
- package/cjs/UNSAFE_SplitMenuButton.js +23 -23
- package/cjs/UNSAFE_Subheading/__test__/Subheading.spec.js +10 -10
- package/cjs/UNSAFE_Subheading.js +8 -8
- package/cjs/UNSAFE_Text/__tests__/Text.spec.js +8 -8
- package/cjs/UNSAFE_Text.js +8 -8
- package/cjs/UNSAFE_TextArea/__tests__/TextArea.spec.js +39 -39
- package/cjs/UNSAFE_TextArea.js +39 -39
- package/cjs/UNSAFE_TextAreaAutosize/__tests__/TextAreaAutosize.spec.js +40 -40
- package/cjs/UNSAFE_TextAreaAutosize.js +40 -40
- package/cjs/UNSAFE_TextField/__tests__/ReadonlyTextFieldInput.spec.js +10 -10
- package/cjs/UNSAFE_TextField/__tests__/TextFieldInput.spec.js +11 -11
- package/cjs/UNSAFE_TextField.js +35 -35
- package/cjs/UNSAFE_TextField.js.map +1 -1
- package/cjs/UNSAFE_ThemedIcons.js +9 -9
- package/cjs/UNSAFE_UserAssistance/__tests__/InlineHelpSource.spec.js +2 -2
- package/cjs/UNSAFE_UserAssistance.js +41 -41
- package/cjs/UNSAFE_UserAssistance.js.map +1 -1
- package/cjs/UNSAFE_View/__tests__/View.spec.js +9 -9
- package/cjs/UNSAFE_View.js +9 -9
- package/cjs/UNSAFE_VirtualizedListView/__tests__/VirtualizedListView.spec.js +27 -27
- package/cjs/UNSAFE_VirtualizedListView/__tests__/VirtualizedListViewTabbableMode.spec.js +27 -27
- package/cjs/UNSAFE_VirtualizedListView.js +24 -24
- package/cjs/UNSAFE_WindowOverlay.js +1 -1
- package/cjs/{VirtualizedCollection-27605c54.js → VirtualizedCollection-d5bc0627.js} +3 -3
- package/cjs/{VirtualizedCollection-27605c54.js.map → VirtualizedCollection-d5bc0627.js.map} +1 -1
- package/cjs/{VirtualizedListView-97f2a20d.js → VirtualizedListView-f3ac2536.js} +3 -3
- package/cjs/{VirtualizedListView-97f2a20d.js.map → VirtualizedListView-f3ac2536.js.map} +1 -1
- package/cjs/__tests__/FormControls/FormControlAria.spec.js +52 -52
- package/cjs/__tests__/FormControls/FormControlClearIcon.spec.js +39 -39
- package/cjs/__tests__/FormControls/FormControlCommit.spec.js +42 -42
- package/cjs/__tests__/FormControls/FormControlPrefixSuffix.spec.js +40 -40
- package/cjs/{_curry1-a14e4710.js → _curry1-b198128d.js} +2 -2
- package/cjs/{_curry1-a14e4710.js.map → _curry1-b198128d.js.map} +1 -1
- package/cjs/{_curry2-2b493ed4.js → _curry2-29bebe59.js} +3 -3
- package/cjs/{_curry2-2b493ed4.js.map → _curry2-29bebe59.js.map} +1 -1
- package/cjs/{_curry3-139befa2.js → _curry3-61f88672.js} +4 -4
- package/cjs/{_curry3-139befa2.js.map → _curry3-61f88672.js.map} +1 -1
- package/cjs/{_has-85ac73af.js → _has-f1803a3e.js} +3 -3
- package/cjs/{_has-85ac73af.js.map → _has-f1803a3e.js.map} +1 -1
- package/cjs/{classNames-6fde8385.js → classNames-b5a9df09.js} +2 -2
- package/cjs/{classNames-6fde8385.js.map → classNames-b5a9df09.js.map} +1 -1
- package/cjs/{clientHints-bbe555e6.js → clientHints-9b5bdfee.js} +2 -2
- package/cjs/{clientHints-bbe555e6.js.map → clientHints-9b5bdfee.js.map} +1 -1
- package/cjs/{flexbox-58400f0a.js → flexbox-b9d170fe.js} +10 -10
- package/cjs/{flexbox-58400f0a.js.map → flexbox-b9d170fe.js.map} +1 -1
- package/cjs/{flexitem-79a2dbd0.js → flexitem-b82cec9d.js} +10 -10
- package/cjs/{flexitem-79a2dbd0.js.map → flexitem-b82cec9d.js.map} +1 -1
- package/cjs/hooks/PRIVATE_useCollectionFocusRing.js +1 -1
- package/cjs/hooks/PRIVATE_useCurrentKey.js +1 -1
- package/cjs/hooks/PRIVATE_useDvtMeterEvents.js +6 -6
- package/cjs/hooks/PRIVATE_useItemAction.js +1 -1
- package/cjs/hooks/PRIVATE_useMessagesFocusManager.js +1 -1
- package/cjs/hooks/PRIVATE_useSelection.js +1 -1
- package/cjs/hooks/PRIVATE_useSingleSelection.js +2 -2
- package/cjs/hooks/PRIVATE_useTabbableModeSet.js +1 -1
- package/cjs/hooks/UNSAFE_useActionable.js +1 -1
- package/cjs/hooks/UNSAFE_useActive.js +1 -1
- package/cjs/hooks/UNSAFE_useAnimation/__tests__/useAnimation.spec.js +3 -3
- package/cjs/hooks/UNSAFE_useAnimation.js +3 -3
- package/cjs/hooks/UNSAFE_useBreakpointValues.js +1 -1
- package/cjs/hooks/UNSAFE_useBreakpoints.js +1 -1
- package/cjs/hooks/UNSAFE_useClearIcon.js +1 -1
- package/cjs/hooks/UNSAFE_useColorScheme.js +1 -1
- package/cjs/hooks/UNSAFE_useContainerBreakpointValues.js +1 -1
- package/cjs/hooks/UNSAFE_useContainerBreakpoints.js +1 -1
- package/cjs/hooks/UNSAFE_useCurrentValueReducer.js +1 -1
- package/cjs/hooks/UNSAFE_useDebounce.js +1 -1
- package/cjs/hooks/UNSAFE_useFloating.js +2 -2
- package/cjs/hooks/UNSAFE_useFocus.js +1 -1
- package/cjs/hooks/UNSAFE_useFocusWithin/__tests__/useFocusWithin.spec.js +2 -2
- package/cjs/hooks/UNSAFE_useFocusWithin.js +2 -2
- package/cjs/hooks/UNSAFE_useFocusableTextField.js +3 -3
- package/cjs/hooks/UNSAFE_useFormContext.js +1 -1
- package/cjs/hooks/UNSAFE_useFormFieldContext.js +1 -1
- package/cjs/hooks/UNSAFE_useFormVariantContext.js +1 -1
- package/cjs/hooks/UNSAFE_useHover.js +1 -1
- package/cjs/hooks/UNSAFE_useId.js +1 -1
- package/cjs/hooks/UNSAFE_useLengthFilter.js +1 -1
- package/cjs/hooks/UNSAFE_useLoadingIndicatorTimer.js +1 -1
- package/cjs/hooks/UNSAFE_useLongPress.js +1 -1
- package/cjs/hooks/UNSAFE_useMessagesContext.js +1 -1
- package/cjs/hooks/UNSAFE_useOutsideClick.js +1 -1
- package/cjs/hooks/UNSAFE_usePan.js +1 -1
- package/cjs/hooks/UNSAFE_usePrefixSuffix.js +2 -2
- package/cjs/hooks/UNSAFE_usePress.js +1 -1
- package/cjs/hooks/UNSAFE_useScale.js +1 -1
- package/cjs/hooks/UNSAFE_useSwipe.js +1 -1
- package/cjs/hooks/UNSAFE_useTabbableMode.js +1 -1
- package/cjs/hooks/UNSAFE_useTap.js +1 -1
- package/cjs/hooks/UNSAFE_useTextField.js +1 -1
- package/cjs/hooks/UNSAFE_useTextFieldInputHandlers.js +2 -2
- package/cjs/hooks/UNSAFE_useTheme.js +1 -1
- package/cjs/hooks/UNSAFE_useTimer.js +1 -1
- package/cjs/hooks/UNSAFE_useToggle.js +1 -1
- package/cjs/hooks/UNSAFE_useTooltip.js +10 -10
- package/cjs/hooks/UNSAFE_useTooltip.js.map +1 -1
- package/cjs/hooks/UNSAFE_useTouch.js +1 -1
- package/cjs/hooks/UNSAFE_useTranslationBundle.js +1 -1
- package/cjs/hooks/UNSAFE_useUncontrolledState.js +1 -1
- package/cjs/hooks/UNSAFE_useUser.js +1 -1
- package/cjs/hooks/UNSAFE_useViewportIntersect.js +1 -1
- package/cjs/{index-941f2dde.js → index-0aad6ef7.js} +3 -3
- package/cjs/{index-941f2dde.js.map → index-0aad6ef7.js.map} +1 -1
- package/cjs/{index-276f57ae.js → index-8485188b.js} +3 -3
- package/cjs/{index-276f57ae.js.map → index-8485188b.js.map} +1 -1
- package/cjs/{index-2420687f.js → index-df53472d.js} +2 -2
- package/cjs/{index-2420687f.js.map → index-df53472d.js.map} +1 -1
- package/cjs/{keys-fd3d0c12.js → keys-99928221.js} +4 -4
- package/cjs/{keys-fd3d0c12.js.map → keys-99928221.js.map} +1 -1
- package/cjs/{listViewSelectionTests-6a308380.js → listViewSelectionTests-d1245fb9.js} +4 -4
- package/cjs/{listViewSelectionTests-6a308380.js.map → listViewSelectionTests-d1245fb9.js.map} +1 -1
- package/cjs/{listViewTabbableModeTests-dae6e957.js → listViewTabbableModeTests-95698db8.js} +4 -4
- package/cjs/{listViewTabbableModeTests-dae6e957.js.map → listViewTabbableModeTests-95698db8.js.map} +1 -1
- package/cjs/{listViewTestFixtures-6357a989.js → listViewTestFixtures-1a48894d.js} +2 -2
- package/cjs/{listViewTestFixtures-6357a989.js.map → listViewTestFixtures-1a48894d.js.map} +1 -1
- package/cjs/{menuTestsUtils-b1c820a2.js → menuTestsUtils-b9a2b7e2.js} +2 -2
- package/cjs/{menuTestsUtils-b1c820a2.js.map → menuTestsUtils-b9a2b7e2.js.map} +1 -1
- package/cjs/resources/nls/ar/bundle.js +1 -1
- package/cjs/resources/nls/ar-XB/bundle.js +1 -1
- package/cjs/resources/nls/bg/bundle.js +1 -1
- package/cjs/resources/nls/bs/bundle.js +1 -1
- package/cjs/resources/nls/bs-Cyrl/bundle.js +1 -1
- package/cjs/resources/nls/bundle.js +1 -1
- package/cjs/resources/nls/cs/bundle.js +1 -1
- package/cjs/resources/nls/da/bundle.js +1 -1
- package/cjs/resources/nls/de/bundle.js +1 -1
- package/cjs/resources/nls/el/bundle.js +1 -1
- package/cjs/resources/nls/en/bundle.js +1 -1
- package/cjs/resources/nls/en-XA/bundle.js +1 -1
- package/cjs/resources/nls/en-XC/bundle.js +1 -1
- package/cjs/resources/nls/es/bundle.js +1 -1
- package/cjs/resources/nls/et/bundle.js +1 -1
- package/cjs/resources/nls/fi/bundle.js +1 -1
- package/cjs/resources/nls/fr/bundle.js +1 -1
- package/cjs/resources/nls/fr-CA/bundle.js +1 -1
- package/cjs/resources/nls/he/bundle.js +1 -1
- package/cjs/resources/nls/hr/bundle.js +1 -1
- package/cjs/resources/nls/hu/bundle.js +1 -1
- package/cjs/resources/nls/is/bundle.js +1 -1
- package/cjs/resources/nls/it/bundle.js +1 -1
- package/cjs/resources/nls/ja/bundle.js +1 -1
- package/cjs/resources/nls/ko/bundle.js +1 -1
- package/cjs/resources/nls/lt/bundle.js +1 -1
- package/cjs/resources/nls/lv/bundle.js +1 -1
- package/cjs/resources/nls/ms/bundle.js +1 -1
- package/cjs/resources/nls/nl/bundle.js +1 -1
- package/cjs/resources/nls/no/bundle.js +1 -1
- package/cjs/resources/nls/pl/bundle.js +1 -1
- package/cjs/resources/nls/pt/bundle.js +1 -1
- package/cjs/resources/nls/pt-PT/bundle.js +1 -1
- package/cjs/resources/nls/ro/bundle.js +1 -1
- package/cjs/resources/nls/ru/bundle.js +1 -1
- package/cjs/resources/nls/sk/bundle.js +1 -1
- package/cjs/resources/nls/sl/bundle.js +1 -1
- package/cjs/resources/nls/sr/bundle.js +1 -1
- package/cjs/resources/nls/sr-Latn/bundle.js +1 -1
- package/cjs/resources/nls/supportedLocales.js +1 -1
- package/cjs/resources/nls/sv/bundle.js +1 -1
- package/cjs/resources/nls/th/bundle.js +1 -1
- package/cjs/resources/nls/tr/bundle.js +1 -1
- package/cjs/resources/nls/uk/bundle.js +1 -1
- package/cjs/resources/nls/vi/bundle.js +1 -1
- package/cjs/resources/nls/zh-Hans/bundle.js +1 -1
- package/cjs/resources/nls/zh-Hant/bundle.js +1 -1
- package/cjs/{stringUtils-247811c6.js → stringUtils-ceb87e47.js} +2 -2
- package/cjs/{stringUtils-247811c6.js.map → stringUtils-ceb87e47.js.map} +1 -1
- package/cjs/{testHelpers-b9ff9e69.js → testHelpers-42e935e2.js} +2 -2
- package/cjs/{testHelpers-b9ff9e69.js.map → testHelpers-42e935e2.js.map} +1 -1
- package/cjs/translationBundle/__tests__/translationBundle.spec.js +1 -1
- package/cjs/translationBundle.js +1 -1
- package/cjs/{tslib.es6-4644506a.js → tslib.es6-942e45a7.js} +2 -2
- package/cjs/{tslib.es6-4644506a.js.map → tslib.es6-942e45a7.js.map} +1 -1
- package/cjs/{useAnimation-30910011.js → useAnimation-285d5114.js} +3 -3
- package/cjs/{useAnimation-30910011.js.map → useAnimation-285d5114.js.map} +1 -1
- package/cjs/{useFocusWithin-10a57ffe.js → useFocusWithin-6e6657b7.js} +2 -2
- package/cjs/{useFocusWithin-10a57ffe.js.map → useFocusWithin-6e6657b7.js.map} +1 -1
- package/cjs/{useModal-0968d687.js → useModal-31e6b488.js} +2 -2
- package/cjs/{useModal-0968d687.js.map → useModal-31e6b488.js.map} +1 -1
- package/cjs/{useSingleSelection-f1055b54.js → useSingleSelection-413b1119.js} +2 -2
- package/cjs/{useSingleSelection-f1055b54.js.map → useSingleSelection-413b1119.js.map} +1 -1
- package/cjs/utils/PRIVATE_clientHints/__tests__/clientHints.spec.js +2 -2
- package/cjs/utils/PRIVATE_clientHints.js +2 -2
- package/cjs/utils/PRIVATE_collectionUtils.js +1 -1
- package/cjs/utils/PRIVATE_dvtTestUtils.js +1 -1
- package/cjs/utils/PRIVATE_floatingUtils.js +1 -1
- package/cjs/utils/PRIVATE_meterUtils.js +1 -1
- package/cjs/utils/PRIVATE_refUtils.js +1 -1
- package/cjs/utils/PRIVATE_tabbableUtils.js +4 -4
- package/cjs/utils/PRIVATE_timer.js +1 -1
- package/cjs/utils/UNSAFE_arrayUtils.js +1 -1
- package/cjs/utils/UNSAFE_attributeUtils.js +1 -1
- package/cjs/utils/UNSAFE_classNames/classNames.spec.js +2 -2
- package/cjs/utils/UNSAFE_classNames.js +2 -2
- package/cjs/utils/UNSAFE_componentUtils.js +1 -1
- package/cjs/utils/UNSAFE_dataProvider.js +1 -1
- package/cjs/utils/UNSAFE_dvtCommonUtils.js +1 -1
- package/cjs/utils/UNSAFE_filePickerUtils.js +1 -1
- package/cjs/utils/UNSAFE_getLocale.js +1 -1
- package/cjs/utils/UNSAFE_interpolations/aria.js +1 -1
- package/cjs/utils/UNSAFE_interpolations/borders.js +1 -1
- package/cjs/utils/UNSAFE_interpolations/boxalignment.js +19 -19
- package/cjs/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
- package/cjs/utils/UNSAFE_interpolations/colors.js +1 -1
- package/cjs/utils/UNSAFE_interpolations/dimensions.js +2 -2
- package/cjs/utils/UNSAFE_interpolations/flexbox/flexbox.spec.js +5 -5
- package/cjs/utils/UNSAFE_interpolations/flexbox.js +5 -5
- package/cjs/utils/UNSAFE_interpolations/flexitem/flexitem.spec.js +5 -5
- package/cjs/utils/UNSAFE_interpolations/flexitem.js +5 -5
- package/cjs/utils/UNSAFE_interpolations/grid.js +1 -1
- package/cjs/utils/UNSAFE_interpolations/griditem.js +1 -1
- package/cjs/utils/UNSAFE_interpolations/padding.js +1 -1
- package/cjs/utils/UNSAFE_interpolations/text.js +7 -7
- package/cjs/utils/UNSAFE_interpolations/text.js.map +1 -1
- package/cjs/utils/UNSAFE_keys.js +1 -1
- package/cjs/utils/UNSAFE_lengthFilter.js +1 -1
- package/cjs/utils/UNSAFE_logger.js +3 -3
- package/cjs/utils/UNSAFE_matchTranslationBundle.js +1 -1
- package/cjs/utils/UNSAFE_mergeInterpolations.js +6 -6
- package/cjs/utils/UNSAFE_mergeProps.js +1 -1
- package/cjs/utils/UNSAFE_meterTypes.js +1 -1
- package/cjs/utils/UNSAFE_roles.js +1 -1
- package/cjs/utils/UNSAFE_selectUtils.js +1 -1
- package/cjs/utils/UNSAFE_size.js +1 -1
- package/cjs/utils/UNSAFE_soundUtils.js +1 -1
- package/cjs/utils/UNSAFE_stringUtils/stringUtils.spec.js +2 -2
- package/cjs/utils/UNSAFE_stringUtils.js +2 -2
- package/cjs/utils/UNSAFE_typeUtils.js +1 -1
- package/cjs/utils/UNSAFE_units.js +2 -2
- package/cjs/utils/UNSAFE_valueUpdateDetail.js +1 -1
- package/es/{ClearIcon-72dcb2be.js → ClearIcon-2c15ba7c.js} +3 -3
- package/es/{ClearIcon-72dcb2be.js.map → ClearIcon-2c15ba7c.js.map} +1 -1
- package/es/{LoadMoreCollection-a6959af2.js → LoadMoreCollection-145e821b.js} +2 -2
- package/es/{LoadMoreCollection-a6959af2.js.map → LoadMoreCollection-145e821b.js.map} +1 -1
- package/es/PRIVATE_Collection.js +1 -1
- package/es/PRIVATE_List.css +15 -15
- package/es/PRIVATE_List.js +24 -24
- package/es/PRIVATE_List.js.map +1 -1
- package/es/PRIVATE_Message.css +27 -27
- package/es/PRIVATE_Message.js +35 -35
- package/es/PRIVATE_Message.js.map +1 -1
- package/es/PRIVATE_MessageLayer.css +7 -7
- package/es/PRIVATE_MessageLayer.js +14 -14
- package/es/PRIVATE_MessageLayer.js.map +1 -1
- package/es/PRIVATE_Meter.js +2 -2
- package/es/PRIVATE_SelectCommon.css +13 -13
- package/es/PRIVATE_SelectCommon.js +22 -22
- package/es/PRIVATE_SelectCommon.js.map +1 -1
- package/es/PRIVATE_TransitionGroup.js +1 -1
- package/es/PRIVATE_VirtualizedCollection.js +1 -1
- package/es/UNSAFE_AspectRatio.css +1 -1
- package/es/UNSAFE_AspectRatio.js +7 -7
- package/es/UNSAFE_Avatar.css +8 -8
- package/es/UNSAFE_Avatar.js +10 -10
- package/es/UNSAFE_Avatar.js.map +1 -1
- package/es/UNSAFE_Badge.css +13 -13
- package/es/UNSAFE_Badge.js +14 -14
- package/es/UNSAFE_Badge.js.map +1 -1
- package/es/UNSAFE_BaseButton.css +15 -15
- package/es/UNSAFE_BaseButton.js +21 -21
- package/es/UNSAFE_BaseButton.js.map +1 -1
- package/es/UNSAFE_Button.css +7 -7
- package/es/UNSAFE_Button.js +13 -13
- package/es/UNSAFE_Button.js.map +1 -1
- package/es/UNSAFE_Center.js +7 -7
- package/es/UNSAFE_Chip.css +7 -7
- package/es/UNSAFE_Chip.js +8 -8
- package/es/UNSAFE_Chip.js.map +1 -1
- package/es/UNSAFE_Collapsible.css +8 -8
- package/es/UNSAFE_Collapsible.js +16 -16
- package/es/UNSAFE_Collapsible.js.map +1 -1
- package/es/UNSAFE_Collection.js +1 -1
- package/es/UNSAFE_ComponentMessage.css +2 -2
- package/es/UNSAFE_ComponentMessage.js +10 -10
- package/es/UNSAFE_ComponentMessage.js.map +1 -1
- package/es/UNSAFE_Divider.css +1 -1
- package/es/UNSAFE_Divider.js +6 -6
- package/es/UNSAFE_EmptyList.js +1 -1
- package/es/UNSAFE_Environment.js +1 -1
- package/es/UNSAFE_FilePicker.css +6 -6
- package/es/UNSAFE_FilePicker.js +13 -13
- package/es/UNSAFE_FilePicker.js.map +1 -1
- package/es/UNSAFE_Flex.css +2 -2
- package/es/UNSAFE_Flex.js +9 -9
- package/es/UNSAFE_Flex.js.map +1 -1
- package/es/UNSAFE_Floating.js +2 -2
- package/es/UNSAFE_FocusTrap.css +2 -2
- package/es/UNSAFE_FocusTrap.js +6 -6
- package/es/UNSAFE_Grid.css +1 -1
- package/es/UNSAFE_Grid.js +8 -8
- package/es/UNSAFE_Heading.css +9 -9
- package/es/UNSAFE_Heading.js +16 -16
- package/es/UNSAFE_Heading.js.map +1 -1
- package/es/UNSAFE_HiddenAccessible.css +1 -1
- package/es/UNSAFE_HiddenAccessible.js +2 -2
- package/es/UNSAFE_HiddenAccessible.js.map +1 -1
- package/es/UNSAFE_HighlightText.css +1 -1
- package/es/UNSAFE_HighlightText.js +2 -2
- package/es/UNSAFE_HighlightText.js.map +1 -1
- package/es/UNSAFE_Icon.css +8 -8
- package/es/UNSAFE_Icon.js +11 -11
- package/es/UNSAFE_Icon.js.map +1 -1
- package/es/UNSAFE_Icons.js +3 -3
- package/es/UNSAFE_Indexer.css +7 -7
- package/es/UNSAFE_Indexer.js +15 -15
- package/es/UNSAFE_Indexer.js.map +1 -1
- package/es/UNSAFE_InputPassword.css +1 -1
- package/es/UNSAFE_InputPassword.js +10 -10
- package/es/UNSAFE_InputText.css +1 -1
- package/es/UNSAFE_InputText.js +9 -9
- package/es/UNSAFE_Label.css +13 -13
- package/es/UNSAFE_Label.js +15 -15
- package/es/UNSAFE_Label.js.map +1 -1
- package/es/UNSAFE_LabelValueLayout.css +9 -9
- package/es/UNSAFE_LabelValueLayout.js +16 -16
- package/es/UNSAFE_LabelValueLayout.js.map +1 -1
- package/es/UNSAFE_Layer.js +1 -1
- package/es/UNSAFE_Link.css +5 -5
- package/es/UNSAFE_Link.js +6 -6
- package/es/UNSAFE_Link.js.map +1 -1
- package/es/UNSAFE_ListItemLayout.css +9 -9
- package/es/UNSAFE_ListItemLayout.js +16 -16
- package/es/UNSAFE_ListItemLayout.js.map +1 -1
- package/es/UNSAFE_ListView.js +9 -9
- package/es/UNSAFE_LiveRegion.css +1 -1
- package/es/UNSAFE_LiveRegion.js +2 -2
- package/es/UNSAFE_LoadMoreCollection.js +2 -2
- package/es/UNSAFE_Menu.css +23 -23
- package/es/UNSAFE_Menu.js +31 -31
- package/es/UNSAFE_Menu.js.map +1 -1
- package/es/UNSAFE_MessageBanner.js +8 -8
- package/es/UNSAFE_MessageToast.css +1 -1
- package/es/UNSAFE_MessageToast.js +9 -9
- package/es/UNSAFE_MeterBar.css +44 -44
- package/es/UNSAFE_MeterBar.js +47 -47
- package/es/UNSAFE_MeterBar.js.map +1 -1
- package/es/UNSAFE_MeterCircle.css +46 -46
- package/es/UNSAFE_MeterCircle.js +49 -49
- package/es/UNSAFE_MeterCircle.js.map +1 -1
- package/es/UNSAFE_Modal.css +3 -3
- package/es/UNSAFE_Modal.js +8 -8
- package/es/UNSAFE_NumberInputText.js +8 -8
- package/es/UNSAFE_PrefixSuffix.css +8 -8
- package/es/UNSAFE_PrefixSuffix.js +9 -9
- package/es/UNSAFE_PrefixSuffix.js.map +1 -1
- package/es/UNSAFE_ProgressBar.css +6 -6
- package/es/UNSAFE_ProgressBar.js +8 -8
- package/es/UNSAFE_ProgressBar.js.map +1 -1
- package/es/UNSAFE_ProgressCircle.css +6 -6
- package/es/UNSAFE_ProgressCircle.js +8 -8
- package/es/UNSAFE_ProgressCircle.js.map +1 -1
- package/es/UNSAFE_RatingGauge.css +20 -20
- package/es/UNSAFE_RatingGauge.js +23 -23
- package/es/UNSAFE_RatingGauge.js.map +1 -1
- package/es/UNSAFE_SelectMultiple.css +1 -1
- package/es/UNSAFE_SelectMultiple.js +10 -10
- package/es/UNSAFE_SelectMultiple.js.map +1 -1
- package/es/UNSAFE_SelectSingle.js +9 -9
- package/es/UNSAFE_Selector.css +5 -5
- package/es/UNSAFE_Selector.js +13 -13
- package/es/UNSAFE_Selector.js.map +1 -1
- package/es/UNSAFE_Skeleton.css +1 -1
- package/es/UNSAFE_Skeleton.js +7 -7
- package/es/UNSAFE_Spacer.js +7 -7
- package/es/UNSAFE_SplitMenuButton.css +5 -5
- package/es/UNSAFE_SplitMenuButton.js +13 -13
- package/es/UNSAFE_SplitMenuButton.js.map +1 -1
- package/es/UNSAFE_Subheading.css +8 -8
- package/es/UNSAFE_Subheading.js +14 -14
- package/es/UNSAFE_Subheading.js.map +1 -1
- package/es/UNSAFE_Text.css +25 -25
- package/es/UNSAFE_Text.js +31 -31
- package/es/UNSAFE_Text.js.map +1 -1
- package/es/UNSAFE_TextArea.css +3 -3
- package/es/UNSAFE_TextArea.js +11 -11
- package/es/UNSAFE_TextArea.js.map +1 -1
- package/es/UNSAFE_TextAreaAutosize.js +8 -8
- package/es/UNSAFE_TextField.css +58 -58
- package/es/UNSAFE_TextField.js +65 -65
- package/es/UNSAFE_TextField.js.map +1 -1
- package/es/UNSAFE_ThemedIcons.js +3 -3
- package/es/UNSAFE_UserAssistance.css +8 -8
- package/es/UNSAFE_UserAssistance.js +16 -16
- package/es/UNSAFE_UserAssistance.js.map +1 -1
- package/es/UNSAFE_View.js +7 -7
- package/es/UNSAFE_VirtualizedListView.js +9 -9
- package/es/UNSAFE_WindowOverlay.js +1 -1
- package/es/{_curry1-e88bb1f4.js → _curry1-88605b19.js} +2 -2
- package/es/{_curry1-e88bb1f4.js.map → _curry1-88605b19.js.map} +1 -1
- package/es/{_curry2-0c5fdcaf.js → _curry2-677e2e20.js} +3 -3
- package/es/{_curry2-0c5fdcaf.js.map → _curry2-677e2e20.js.map} +1 -1
- package/es/{_curry3-2f55388c.js → _curry3-c3f862d0.js} +4 -4
- package/es/{_curry3-2f55388c.js.map → _curry3-c3f862d0.js.map} +1 -1
- package/es/{_has-62fb6322.js → _has-7e77579f.js} +3 -3
- package/es/{_has-62fb6322.js.map → _has-7e77579f.js.map} +1 -1
- package/es/hooks/PRIVATE_useCollectionFocusRing.js +1 -1
- package/es/hooks/PRIVATE_useCurrentKey.js +1 -1
- package/es/hooks/PRIVATE_useDvtMeterEvents.js +3 -3
- package/es/hooks/PRIVATE_useItemAction.js +1 -1
- package/es/hooks/PRIVATE_useMessagesFocusManager.js +1 -1
- package/es/hooks/PRIVATE_useSelection.js +1 -1
- package/es/hooks/PRIVATE_useSingleSelection.js +2 -2
- package/es/hooks/PRIVATE_useTabbableModeSet.js +1 -1
- package/es/hooks/UNSAFE_useActionable.js +1 -1
- package/es/hooks/UNSAFE_useActive.js +1 -1
- package/es/hooks/UNSAFE_useAnimation.js +2 -2
- package/es/hooks/UNSAFE_useBreakpointValues.js +1 -1
- package/es/hooks/UNSAFE_useBreakpoints.js +1 -1
- package/es/hooks/UNSAFE_useClearIcon.js +1 -1
- package/es/hooks/UNSAFE_useColorScheme.js +1 -1
- package/es/hooks/UNSAFE_useContainerBreakpointValues.js +1 -1
- package/es/hooks/UNSAFE_useContainerBreakpoints.js +1 -1
- package/es/hooks/UNSAFE_useCurrentValueReducer.js +1 -1
- package/es/hooks/UNSAFE_useDebounce.js +1 -1
- package/es/hooks/UNSAFE_useFloating.js +2 -2
- package/es/hooks/UNSAFE_useFocus.js +1 -1
- package/es/hooks/UNSAFE_useFocusWithin.js +1 -1
- package/es/hooks/UNSAFE_useFocusableTextField.js +2 -2
- package/es/hooks/UNSAFE_useFormContext.js +1 -1
- package/es/hooks/UNSAFE_useFormFieldContext.js +1 -1
- package/es/hooks/UNSAFE_useFormVariantContext.js +1 -1
- package/es/hooks/UNSAFE_useHover.js +1 -1
- package/es/hooks/UNSAFE_useId.js +1 -1
- package/es/hooks/UNSAFE_useLengthFilter.js +1 -1
- package/es/hooks/UNSAFE_useLoadingIndicatorTimer.js +1 -1
- package/es/hooks/UNSAFE_useLongPress.js +1 -1
- package/es/hooks/UNSAFE_useMessagesContext.js +1 -1
- package/es/hooks/UNSAFE_useOutsideClick.js +1 -1
- package/es/hooks/UNSAFE_usePan.js +1 -1
- package/es/hooks/UNSAFE_usePrefixSuffix.js +1 -1
- package/es/hooks/UNSAFE_usePress.js +1 -1
- package/es/hooks/UNSAFE_useScale.js +1 -1
- package/es/hooks/UNSAFE_useSwipe.js +1 -1
- package/es/hooks/UNSAFE_useTabbableMode.js +1 -1
- package/es/hooks/UNSAFE_useTap.js +1 -1
- package/es/hooks/UNSAFE_useTextField.js +1 -1
- package/es/hooks/UNSAFE_useTextFieldInputHandlers.js +1 -1
- package/es/hooks/UNSAFE_useTheme.js +1 -1
- package/es/hooks/UNSAFE_useTimer.js +1 -1
- package/es/hooks/UNSAFE_useToggle.js +1 -1
- package/es/hooks/UNSAFE_useTooltip.css +4 -4
- package/es/hooks/UNSAFE_useTooltip.js +7 -7
- package/es/hooks/UNSAFE_useTooltip.js.map +1 -1
- package/es/hooks/UNSAFE_useTouch.js +1 -1
- package/es/hooks/UNSAFE_useTranslationBundle.js +1 -1
- package/es/hooks/UNSAFE_useUncontrolledState.js +1 -1
- package/es/hooks/UNSAFE_useUser.js +1 -1
- package/es/hooks/UNSAFE_useViewportIntersect.js +1 -1
- package/es/{index-e2b41a4a.js → index-64ecf0b2.js} +2 -2
- package/es/{index-e2b41a4a.js.map → index-64ecf0b2.js.map} +1 -1
- package/es/{keys-c998dc53.js → keys-5f7cf8d0.js} +4 -4
- package/es/{keys-c998dc53.js.map → keys-5f7cf8d0.js.map} +1 -1
- package/es/resources/nls/ar/bundle.js +1 -1
- package/es/resources/nls/ar-XB/bundle.js +1 -1
- package/es/resources/nls/bg/bundle.js +1 -1
- package/es/resources/nls/bs/bundle.js +1 -1
- package/es/resources/nls/bs-Cyrl/bundle.js +1 -1
- package/es/resources/nls/bundle.js +1 -1
- package/es/resources/nls/cs/bundle.js +1 -1
- package/es/resources/nls/da/bundle.js +1 -1
- package/es/resources/nls/de/bundle.js +1 -1
- package/es/resources/nls/el/bundle.js +1 -1
- package/es/resources/nls/en/bundle.js +1 -1
- package/es/resources/nls/en-XA/bundle.js +1 -1
- package/es/resources/nls/en-XC/bundle.js +1 -1
- package/es/resources/nls/es/bundle.js +1 -1
- package/es/resources/nls/et/bundle.js +1 -1
- package/es/resources/nls/fi/bundle.js +1 -1
- package/es/resources/nls/fr/bundle.js +1 -1
- package/es/resources/nls/fr-CA/bundle.js +1 -1
- package/es/resources/nls/he/bundle.js +1 -1
- package/es/resources/nls/hr/bundle.js +1 -1
- package/es/resources/nls/hu/bundle.js +1 -1
- package/es/resources/nls/is/bundle.js +1 -1
- package/es/resources/nls/it/bundle.js +1 -1
- package/es/resources/nls/ja/bundle.js +1 -1
- package/es/resources/nls/ko/bundle.js +1 -1
- package/es/resources/nls/lt/bundle.js +1 -1
- package/es/resources/nls/lv/bundle.js +1 -1
- package/es/resources/nls/ms/bundle.js +1 -1
- package/es/resources/nls/nl/bundle.js +1 -1
- package/es/resources/nls/no/bundle.js +1 -1
- package/es/resources/nls/pl/bundle.js +1 -1
- package/es/resources/nls/pt/bundle.js +1 -1
- package/es/resources/nls/pt-PT/bundle.js +1 -1
- package/es/resources/nls/ro/bundle.js +1 -1
- package/es/resources/nls/ru/bundle.js +1 -1
- package/es/resources/nls/sk/bundle.js +1 -1
- package/es/resources/nls/sl/bundle.js +1 -1
- package/es/resources/nls/sr/bundle.js +1 -1
- package/es/resources/nls/sr-Latn/bundle.js +1 -1
- package/es/resources/nls/supportedLocales.js +1 -1
- package/es/resources/nls/sv/bundle.js +1 -1
- package/es/resources/nls/th/bundle.js +1 -1
- package/es/resources/nls/tr/bundle.js +1 -1
- package/es/resources/nls/uk/bundle.js +1 -1
- package/es/resources/nls/vi/bundle.js +1 -1
- package/es/resources/nls/zh-Hans/bundle.js +1 -1
- package/es/resources/nls/zh-Hant/bundle.js +1 -1
- package/es/translationBundle.js +1 -1
- package/es/{tslib.es6-a3e7ccbd.js → tslib.es6-6d6c24be.js} +2 -2
- package/es/{tslib.es6-a3e7ccbd.js.map → tslib.es6-6d6c24be.js.map} +1 -1
- package/es/{useModal-434a6cb0.js → useModal-af15a37d.js} +2 -2
- package/es/{useModal-434a6cb0.js.map → useModal-af15a37d.js.map} +1 -1
- package/es/{useSingleSelection-a2d092a0.js → useSingleSelection-4a3a1789.js} +2 -2
- package/es/{useSingleSelection-a2d092a0.js.map → useSingleSelection-4a3a1789.js.map} +1 -1
- package/es/utils/PRIVATE_clientHints.js +1 -1
- package/es/utils/PRIVATE_collectionUtils.js +1 -1
- package/es/utils/PRIVATE_dvtTestUtils.js +1 -1
- package/es/utils/PRIVATE_floatingUtils.js +1 -1
- package/es/utils/PRIVATE_meterUtils.js +1 -1
- package/es/utils/PRIVATE_refUtils.js +1 -1
- package/es/utils/PRIVATE_tabbableUtils.js +4 -4
- package/es/utils/PRIVATE_timer.js +1 -1
- package/es/utils/UNSAFE_arrayUtils.js +1 -1
- package/es/utils/UNSAFE_attributeUtils.js +1 -1
- package/es/utils/UNSAFE_classNames.js +1 -1
- package/es/utils/UNSAFE_componentUtils.js +1 -1
- package/es/utils/UNSAFE_dataProvider.js +1 -1
- package/es/utils/UNSAFE_dvtCommonUtils.js +1 -1
- package/es/utils/UNSAFE_filePickerUtils.js +1 -1
- package/es/utils/UNSAFE_getLocale.js +1 -1
- package/es/utils/UNSAFE_interpolations/aria.js +1 -1
- package/es/utils/UNSAFE_interpolations/borders.js +1 -1
- package/es/utils/UNSAFE_interpolations/boxalignment.css +15 -15
- package/es/utils/UNSAFE_interpolations/boxalignment.js +19 -19
- package/es/utils/UNSAFE_interpolations/boxalignment.js.map +1 -1
- package/es/utils/UNSAFE_interpolations/colors.js +1 -1
- package/es/utils/UNSAFE_interpolations/dimensions.js +2 -2
- package/es/utils/UNSAFE_interpolations/flexbox.css +7 -7
- package/es/utils/UNSAFE_interpolations/flexbox.js +11 -11
- package/es/utils/UNSAFE_interpolations/flexbox.js.map +1 -1
- package/es/utils/UNSAFE_interpolations/flexitem.css +7 -7
- package/es/utils/UNSAFE_interpolations/flexitem.js +11 -11
- package/es/utils/UNSAFE_interpolations/flexitem.js.map +1 -1
- package/es/utils/UNSAFE_interpolations/grid.js +1 -1
- package/es/utils/UNSAFE_interpolations/griditem.js +1 -1
- package/es/utils/UNSAFE_interpolations/padding.js +1 -1
- package/es/utils/UNSAFE_interpolations/text.css +3 -3
- package/es/utils/UNSAFE_interpolations/text.js +7 -7
- package/es/utils/UNSAFE_interpolations/text.js.map +1 -1
- package/es/utils/UNSAFE_keys.js +1 -1
- package/es/utils/UNSAFE_lengthFilter.js +1 -1
- package/es/utils/UNSAFE_logger.js +3 -3
- package/es/utils/UNSAFE_matchTranslationBundle.js +1 -1
- package/es/utils/UNSAFE_mergeInterpolations.js +5 -5
- package/es/utils/UNSAFE_mergeProps.js +1 -1
- package/es/utils/UNSAFE_meterTypes.js +1 -1
- package/es/utils/UNSAFE_roles.js +1 -1
- package/es/utils/UNSAFE_selectUtils.js +1 -1
- package/es/utils/UNSAFE_size.js +1 -1
- package/es/utils/UNSAFE_soundUtils.js +1 -1
- package/es/utils/UNSAFE_stringUtils.js +1 -1
- package/es/utils/UNSAFE_typeUtils.js +1 -1
- package/es/utils/UNSAFE_units.js +1 -1
- package/es/utils/UNSAFE_valueUpdateDetail.js +1 -1
- package/package.json +1 -1
- package/amd/Badge-f0d7b989.js +0 -2
- package/amd/BaseButton-98aa02ec.js +0 -2
- package/amd/Button-0bc2fe21.js +0 -2
- package/amd/Chip-00e323cf.js +0 -2
- package/amd/ComponentMessage-20eccae4.js +0 -2
- package/amd/ComponentMessageContainer-71ff9dd8.js +0 -2
- package/amd/Divider-d5a03b7b.js +0 -2
- package/amd/Flex-15d5bc35.js +0 -2
- package/amd/FormControlUtils-cecc990c.js +0 -2
- package/amd/Heading-90509dbb.js +0 -2
- package/amd/HiddenAccessible-9b5656fc.js +0 -2
- package/amd/HighlightText-812122b6.js +0 -2
- package/amd/Icon-407e8e86.js +0 -2
- package/amd/Indexer-c3bbec99.js +0 -2
- package/amd/InlineHelpSource-0bc009ea.js +0 -2
- package/amd/Link-07c2ffe9.js +0 -2
- package/amd/List-50aa51d1.js +0 -2
- package/amd/ListItemTextLayout-54eece18.js +0 -2
- package/amd/Menu-5e27712c.js +0 -2
- package/amd/MenuDivider-0ac69c6f.js +0 -2
- package/amd/MenuItem-bbb70cad.js +0 -2
- package/amd/MessageCloseButton-7e34bf21.js +0 -2
- package/amd/MessageDetail-b39e65b3.js +0 -2
- package/amd/MessageLayer-176e893a.js +0 -2
- package/amd/MessageStartIcon-b3527de6.js +0 -2
- package/amd/MessageSummary-5e61938f.js +0 -2
- package/amd/MessageTimestamp-26b2985c.js +0 -2
- package/amd/MessageToast-e039c084.js +0 -2
- package/amd/MeterCircle-7d276b71.js +0 -2
- package/amd/Modal-32300188.js +0 -2
- package/amd/ReadonlyTextFieldInput-80496dc8.js +0 -2
- package/amd/SelectMultiple-4287a982.js +0 -2
- package/amd/Skeleton-bdd8dd41.js +0 -2
- package/amd/SplitMenuButton-23758c0f.js +0 -2
- package/amd/Subheading-5cbf8f68.js +0 -2
- package/amd/Text-0ecfdb67.js +0 -2
- package/amd/TextArea-203d1010.js +0 -2
- package/amd/TextFieldInput-acb394a8.js +0 -2
- package/amd/_has-58d7ca1c.js +0 -2
- package/amd/flexbox-32e806d7.js +0 -2
- package/amd/flexitem-9be197e6.js +0 -2
package/amd/{ReadonlyTextFieldInput-80496dc8.js.map → ReadonlyTextFieldInput-f86c3c42.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReadonlyTextFieldInput-80496dc8.js","sources":["../../src/UNSAFE_TextField/ReadonlyTextFieldInput.tsx"],"sourcesContent":["import { ComponentChildren, Ref } from 'preact';\nimport { useFormContext } from '../hooks/UNSAFE_useFormContext';\nimport { useTabbableMode } from '../hooks/UNSAFE_useTabbableMode';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { textInterpolations } from '../utils/UNSAFE_interpolations/text';\nimport type { TextProps } from '../utils/UNSAFE_interpolations/text';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { useFormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { getLoadingAriaLabel } from './FormControlUtils';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\n\ntype AutoFocusProp = HTMLAttributesSignalExcluded<HTMLInputElement>['autofocus'];\n\ntype ReadonlyAsInputProps = {\n as: 'input';\n type: HTMLAttributesSignalExcluded<HTMLInputElement>['type'];\n elementRef?: Ref<HTMLInputElement>;\n rows?: never;\n};\n\ntype ReadonlyAsTextAreaProps = {\n as: 'textarea';\n elementRef?: Ref<HTMLTextAreaElement | HTMLDivElement>;\n type?: never;\n rows?: number;\n};\n\ntype ReadonlyAsDivProps = {\n as?: 'div';\n elementRef?: Ref<HTMLTextAreaElement | HTMLDivElement>;\n type?: never;\n rows?: never;\n};\n\ntype Props = TextProps &\n (ReadonlyAsDivProps | ReadonlyAsInputProps | ReadonlyAsTextAreaProps) & {\n ariaDescribedBy?: string;\n ariaLabel?: string;\n ariaLabelledBy?: string;\n autoFocus?: AutoFocusProp;\n hasInsideLabel?: boolean;\n inlineUserAssistance?: ComponentChildren;\n innerReadonlyField?: ComponentChildren;\n value?: string;\n variant?: 'textarea';\n };\n\n// In readonly textarea, we need some margin between the border container element\n// and the textarea, so the the textarea's focus outline doesn't get truncated.\n// The 0.25rem is an aesthetically pleasing amount of margin to make the readonly\n// focus ring visible.\nconst borderToTextAreaContentMargin = '0.25rem';\n\nconst readOnlyTextFieldStyles = {\n base: cssProps`${{\n minHeight:\n 'calc(var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-md-line-height) * var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-md-font-size))',\n // TODO: Use Text component instead of CSS\n wordBreak: 'break-word',\n whiteSpace: 'pre-wrap',\n // TODO: Cleanup the border and background CSS\n backgroundColor: 'transparent',\n borderColor: 'transparent',\n borderWidth: '0',\n color: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-text-color-primary)',\n boxSizing: 'border-box',\n // TODO: Use the Flex component instead of CSS\n display: 'flex',\n flexDirection: 'column',\n width: '100%',\n fontFamily: 'inherit',\n fontSize: '100%',\n fontWeight: 'inherit',\n lineHeight: 'inherit',\n outlineWidth: '0',\n\n '&:focus': {\n outlineStyle: 'dotted',\n outlineWidth: '1px',\n outlineColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-focus-border-color)',\n outlineOffset: '1px'\n }\n }}`,\n textareaBase: cssProps`${{\n resize: 'none',\n paddingBlockStart: '0',\n paddingInlineStart: '0'\n }}`,\n inEnabledFormBase: cssProps`${{\n whiteSpace: 'nowrap',\n overflowX: 'scroll',\n overflowY: 'hidden',\n scrollbarWidth: 'none'\n }}`,\n\n textareaInEnabledFormBase: cssProps`${{\n marginTop:\n 'calc((var(--oj-c-PRIVATE-DO-NOT-USE-text-field-height) - 1rem * var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-md-line-height))/ 2 - 1px)',\n marginBottom:\n 'calc((var(--oj-c-PRIVATE-DO-NOT-USE-text-field-height) - 1rem * var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-md-line-height))/ 2 - 1px)',\n marginLeft: borderToTextAreaContentMargin,\n marginRight: borderToTextAreaContentMargin,\n paddingLeft: `calc(var(--oj-c-PRIVATE-DO-NOT-USE-text-field-text-to-edge-padding) - ${borderToTextAreaContentMargin})`,\n paddingRight: '0',\n overflowX: 'auto',\n overflowY: 'auto',\n whiteSpace: 'pre-wrap'\n }}`,\n\n inEnabledFormLabelInside: cssProps`${{\n // TODO: Look into why we need this hacky CSS\n marginTop:\n 'calc(var(--oj-c-PRIVATE-DO-NOT-USE-text-field-inside-edge-padding-top) + 0.1875rem)',\n paddingTop: '0',\n minHeight:\n 'calc(var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-md-line-height) * var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-md-font-size))'\n }}`,\n\n textareaInEnabledFormLabelInside: cssProps`${{\n paddingTop: 0,\n paddingBottom: 0,\n // We are using a transparent border here instead of padding, due to how textarea scrolls the padding off the screen\n // and the text content will clash with the inside label.\n borderColor: 'transparent',\n borderStyle: 'solid',\n marginTop:\n 'calc(var(--oj-c-PRIVATE-DO-NOT-USE-label-inside-edge-font-size) * var(--oj-c-PRIVATE-DO-NOT-USE-label-inside-edge-line-height) + var(--oj-c-PRIVATE-DO-NOT-USE-label-inside-edge-position-top))',\n marginBottom: borderToTextAreaContentMargin\n }}`,\n\n inEnabledFormNoLabelInside: cssProps`${{\n // TODO: Remove if this is not needed.\n justifyContent: 'center'\n }}`,\n\n // don't apply this for textarea\n inEnabledFormNoStartContent: cssProps`${{\n marginLeft: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-text-to-edge-padding)',\n marginRight: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-text-to-edge-padding)',\n paddingLeft: '0',\n paddingRight: '0'\n }}`\n};\n\nexport function ReadonlyTextFieldInput({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n autoFocus,\n as = 'div',\n elementRef,\n hasInsideLabel = false,\n inlineUserAssistance,\n innerReadonlyField,\n rows,\n type,\n value = '',\n variant,\n ...props\n}: Props) {\n const { isFormLayout, isReadonly: isReadonlyForm } = useFormContext();\n const { isLoading } = useFormFieldContext();\n const ariaLabelForReadonly = isLoading ? getLoadingAriaLabel() : ariaLabel;\n\n // get classes for text align\n const interpolations = [...Object.values(textInterpolations)];\n const styleInterpolations = mergeInterpolations<Props>(interpolations);\n const { class: styleInterpolationClasses } = styleInterpolations(props);\n\n const readonlyDivClasses = classNames([\n as !== 'textarea' && 'oj-c-hide-scrollbar', // TODO: Temp workaround for using --webkit-scrollbar to hide the scrollbar\n readOnlyTextFieldStyles.base,\n as === 'textarea' && readOnlyTextFieldStyles.textareaBase,\n isFormLayout && !isReadonlyForm && readOnlyTextFieldStyles.inEnabledFormBase,\n variant === 'textarea' &&\n isFormLayout &&\n !isReadonlyForm &&\n readOnlyTextFieldStyles.textareaInEnabledFormBase,\n isFormLayout &&\n !isReadonlyForm &&\n (hasInsideLabel\n ? readOnlyTextFieldStyles.inEnabledFormLabelInside\n : readOnlyTextFieldStyles.inEnabledFormNoLabelInside),\n variant === 'textarea' &&\n isFormLayout &&\n !isReadonlyForm &&\n hasInsideLabel &&\n readOnlyTextFieldStyles.textareaInEnabledFormLabelInside,\n variant !== 'textarea' && // not for textarea\n isFormLayout &&\n !isReadonlyForm &&\n readOnlyTextFieldStyles.inEnabledFormNoStartContent,\n styleInterpolationClasses\n ]);\n\n // JET-52914 - Implement Tabbable mode API contract in InputText\n // spread tabbableModeProps on component\n const { isTabbable, tabbableModeProps } = useTabbableMode();\n\n if (as === 'input') {\n return (\n <input\n aria-describedby={ariaDescribedBy}\n aria-label={ariaLabelForReadonly}\n aria-labelledby={ariaLabelledBy}\n autofocus={autoFocus}\n class={readonlyDivClasses}\n readonly={true}\n // @ts-ignore\n ref={elementRef}\n type={type}\n value={value}\n {...(!isTabbable && tabbableModeProps)}\n />\n );\n }\n if (as === 'textarea') {\n return (\n <textarea\n aria-describedby={ariaDescribedBy}\n aria-label={ariaLabelForReadonly}\n aria-labelledby={ariaLabelledBy}\n autofocus={autoFocus}\n class={readonlyDivClasses}\n readonly={true}\n // @ts-ignore\n ref={elementRef}\n rows={rows}\n {...(!isTabbable && tabbableModeProps)}>\n {value}\n </textarea>\n );\n }\n return (\n <div\n aria-describedby={ariaDescribedBy}\n aria-label={ariaLabelForReadonly}\n aria-labelledby={ariaLabelledBy}\n aria-readonly={true}\n autofocus={autoFocus}\n class={readonlyDivClasses}\n // @ts-ignore\n ref={elementRef}\n role=\"textbox\"\n {...tabbableModeProps}>\n {value}\n </div>\n );\n}\n"],"names":["readOnlyTextFieldStyles","_a","ariaDescribedBy","ariaLabel","ariaLabelledBy","autoFocus","as","elementRef","hasInsideLabel","inlineUserAssistance","innerReadonlyField","rows","type","value","variant","props","__rest","isLoading","useFormFieldContext","ariaLabelForReadonly","getLoadingAriaLabel","styleInterpolations","mergeInterpolations","interpolations","isFormLayout","isReadonlyForm","_jsx","Object","assign","autofocus","class","readonlyDivClasses","readonly","ref","isTabbable","tabbableModeProps","children","role"],"mappings":"0XAoDA,MAEAA,EAAA,WAAAA,EAAA,WAAAA,EAAA,WAAAA,EAAA,WAAAA,EAAA,SAAAA,EAAA,WAAAA,EAAA,SAAAA,sCA2FA,SAAAC,GAAuC,IAAAC,gBAAAA,EAAAC,UAAAA,EAAAC,eAAAA,EAAAC,UAAAA,EAAAC,GAAAA,EAAA,MAAAC,WAAAA,EAAAC,eAAAA,GAAA,EAAAC,qBAAAA,EAAAC,mBAAAA,EAAAC,KAAAA,EAAAC,KAAAA,EAAAC,MAAAA,EAAA,GAAAC,QAAAA,GAAAb,EAAAc,EAAAC,EAAAA,OAAAf,EAAA,CAAA,kBAAA,YAAA,iBAAA,YAAA,KAAA,aAAA,iBAAA,uBAAA,qBAAA,OAAA,OAAA,QAAA,mEAiBrCgB,UAAAA,GAAAC,EAAAA,sBACAC,EAAAF,EAAAG,EAAAA,sBAAAjB,6CAIAkB,EAAAC,sBAAAC,wEAKEvB,EACA,aAAAM,GAAAN,EACAwB,IAAAC,GAAAzB,EACA,aAAAc,OAEEW,GACAzB,MAEAyB,IACAjB,IAEER,GACJ,aAAAc,OAEEW,MAEAzB,sBAGAyB,GACAzB,+EASF0B,MAAA,QAAAC,OAAAC,OAAA,CAAA,mBAAA1B,EAAA,aAAAiB,EAAA,kBAAAf,EAAAyB,UAAAxB,EAAAyB,MAAAC,EAAAC,UAAA,EASIC,IAAA1B,EAAAK,KAAAA,EAAAC,MAAAA,IAAAqB,GAAAC,mBAQJT,MAAA,WAAAC,OAAAC,OAAA,CAAA,mBAAA1B,EAAA,aAAAiB,EAAA,kBAAAf,EAAAyB,UAAAxB,EAAAyB,MAAAC,EAAAC,UAAA,EASIC,IAAA1B,EAAAI,KAAAA,IAAAuB,GAAAC,EAAA,CAAAC,SAAAvB,KAONa,MAAA,MAAAC,OAAAC,OAAA,CAAA,mBAAA1B,EAAA,aAAAiB,EAAA,kBAAAf,EAAA,iBAAA,EAAAyB,UAAAxB,EAAAyB,MAAAC,EASIE,IAAA1B,EAAA8B,KAAA,WAAAF,EAAA,CAAAC,SAAAvB"}
|
|
1
|
+
{"version":3,"file":"ReadonlyTextFieldInput-f86c3c42.js","sources":["../../src/UNSAFE_TextField/ReadonlyTextFieldInput.tsx"],"sourcesContent":["import { ComponentChildren, Ref } from 'preact';\nimport { useFormContext } from '../hooks/UNSAFE_useFormContext';\nimport { useTabbableMode } from '../hooks/UNSAFE_useTabbableMode';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { textInterpolations } from '../utils/UNSAFE_interpolations/text';\nimport type { TextProps } from '../utils/UNSAFE_interpolations/text';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { useFormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { getLoadingAriaLabel } from './FormControlUtils';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\n\ntype AutoFocusProp = HTMLAttributesSignalExcluded<HTMLInputElement>['autofocus'];\n\ntype ReadonlyAsInputProps = {\n as: 'input';\n type: HTMLAttributesSignalExcluded<HTMLInputElement>['type'];\n elementRef?: Ref<HTMLInputElement>;\n rows?: never;\n};\n\ntype ReadonlyAsTextAreaProps = {\n as: 'textarea';\n elementRef?: Ref<HTMLTextAreaElement | HTMLDivElement>;\n type?: never;\n rows?: number;\n};\n\ntype ReadonlyAsDivProps = {\n as?: 'div';\n elementRef?: Ref<HTMLTextAreaElement | HTMLDivElement>;\n type?: never;\n rows?: never;\n};\n\ntype Props = TextProps &\n (ReadonlyAsDivProps | ReadonlyAsInputProps | ReadonlyAsTextAreaProps) & {\n ariaDescribedBy?: string;\n ariaLabel?: string;\n ariaLabelledBy?: string;\n autoFocus?: AutoFocusProp;\n hasInsideLabel?: boolean;\n inlineUserAssistance?: ComponentChildren;\n innerReadonlyField?: ComponentChildren;\n value?: string;\n variant?: 'textarea';\n };\n\n// In readonly textarea, we need some margin between the border container element\n// and the textarea, so the the textarea's focus outline doesn't get truncated.\n// The 0.25rem is an aesthetically pleasing amount of margin to make the readonly\n// focus ring visible.\nconst borderToTextAreaContentMargin = '0.25rem';\n\nconst readOnlyTextFieldStyles = {\n base: cssProps`${{\n minHeight:\n 'calc(var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-md-line-height) * var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-md-font-size))',\n // TODO: Use Text component instead of CSS\n wordBreak: 'break-word',\n whiteSpace: 'pre-wrap',\n // TODO: Cleanup the border and background CSS\n backgroundColor: 'transparent',\n borderColor: 'transparent',\n borderWidth: '0',\n color: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-text-color-primary)',\n boxSizing: 'border-box',\n // TODO: Use the Flex component instead of CSS\n display: 'flex',\n flexDirection: 'column',\n width: '100%',\n fontFamily: 'inherit',\n fontSize: '100%',\n fontWeight: 'inherit',\n lineHeight: 'inherit',\n outlineWidth: '0',\n\n '&:focus': {\n outlineStyle: 'dotted',\n outlineWidth: '1px',\n outlineColor: 'var(--oj-c-PRIVATE-DO-NOT-USE-core-focus-border-color)',\n outlineOffset: '1px'\n }\n }}`,\n textareaBase: cssProps`${{\n resize: 'none',\n paddingBlockStart: '0',\n paddingInlineStart: '0'\n }}`,\n inEnabledFormBase: cssProps`${{\n whiteSpace: 'nowrap',\n overflowX: 'scroll',\n overflowY: 'hidden',\n scrollbarWidth: 'none'\n }}`,\n\n textareaInEnabledFormBase: cssProps`${{\n marginTop:\n 'calc((var(--oj-c-PRIVATE-DO-NOT-USE-text-field-height) - 1rem * var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-md-line-height))/ 2 - 1px)',\n marginBottom:\n 'calc((var(--oj-c-PRIVATE-DO-NOT-USE-text-field-height) - 1rem * var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-md-line-height))/ 2 - 1px)',\n marginLeft: borderToTextAreaContentMargin,\n marginRight: borderToTextAreaContentMargin,\n paddingLeft: `calc(var(--oj-c-PRIVATE-DO-NOT-USE-text-field-text-to-edge-padding) - ${borderToTextAreaContentMargin})`,\n paddingRight: '0',\n overflowX: 'auto',\n overflowY: 'auto',\n whiteSpace: 'pre-wrap'\n }}`,\n\n inEnabledFormLabelInside: cssProps`${{\n // TODO: Look into why we need this hacky CSS\n marginTop:\n 'calc(var(--oj-c-PRIVATE-DO-NOT-USE-text-field-inside-edge-padding-top) + 0.1875rem)',\n paddingTop: '0',\n minHeight:\n 'calc(var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-md-line-height) * var(--oj-c-PRIVATE-DO-NOT-USE-typography-body-md-font-size))'\n }}`,\n\n textareaInEnabledFormLabelInside: cssProps`${{\n paddingTop: 0,\n paddingBottom: 0,\n // We are using a transparent border here instead of padding, due to how textarea scrolls the padding off the screen\n // and the text content will clash with the inside label.\n borderColor: 'transparent',\n borderStyle: 'solid',\n marginTop:\n 'calc(var(--oj-c-PRIVATE-DO-NOT-USE-label-inside-edge-font-size) * var(--oj-c-PRIVATE-DO-NOT-USE-label-inside-edge-line-height) + var(--oj-c-PRIVATE-DO-NOT-USE-label-inside-edge-position-top))',\n marginBottom: borderToTextAreaContentMargin\n }}`,\n\n inEnabledFormNoLabelInside: cssProps`${{\n // TODO: Remove if this is not needed.\n justifyContent: 'center'\n }}`,\n\n // don't apply this for textarea\n inEnabledFormNoStartContent: cssProps`${{\n marginLeft: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-text-to-edge-padding)',\n marginRight: 'var(--oj-c-PRIVATE-DO-NOT-USE-text-field-text-to-edge-padding)',\n paddingLeft: '0',\n paddingRight: '0'\n }}`\n};\n\nexport function ReadonlyTextFieldInput({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n autoFocus,\n as = 'div',\n elementRef,\n hasInsideLabel = false,\n inlineUserAssistance,\n innerReadonlyField,\n rows,\n type,\n value = '',\n variant,\n ...props\n}: Props) {\n const { isFormLayout, isReadonly: isReadonlyForm } = useFormContext();\n const { isLoading } = useFormFieldContext();\n const ariaLabelForReadonly = isLoading ? getLoadingAriaLabel() : ariaLabel;\n\n // get classes for text align\n const interpolations = [...Object.values(textInterpolations)];\n const styleInterpolations = mergeInterpolations<Props>(interpolations);\n const { class: styleInterpolationClasses } = styleInterpolations(props);\n\n const readonlyDivClasses = classNames([\n as !== 'textarea' && 'oj-c-hide-scrollbar', // TODO: Temp workaround for using --webkit-scrollbar to hide the scrollbar\n readOnlyTextFieldStyles.base,\n as === 'textarea' && readOnlyTextFieldStyles.textareaBase,\n isFormLayout && !isReadonlyForm && readOnlyTextFieldStyles.inEnabledFormBase,\n variant === 'textarea' &&\n isFormLayout &&\n !isReadonlyForm &&\n readOnlyTextFieldStyles.textareaInEnabledFormBase,\n isFormLayout &&\n !isReadonlyForm &&\n (hasInsideLabel\n ? readOnlyTextFieldStyles.inEnabledFormLabelInside\n : readOnlyTextFieldStyles.inEnabledFormNoLabelInside),\n variant === 'textarea' &&\n isFormLayout &&\n !isReadonlyForm &&\n hasInsideLabel &&\n readOnlyTextFieldStyles.textareaInEnabledFormLabelInside,\n variant !== 'textarea' && // not for textarea\n isFormLayout &&\n !isReadonlyForm &&\n readOnlyTextFieldStyles.inEnabledFormNoStartContent,\n styleInterpolationClasses\n ]);\n\n // JET-52914 - Implement Tabbable mode API contract in InputText\n // spread tabbableModeProps on component\n const { isTabbable, tabbableModeProps } = useTabbableMode();\n\n if (as === 'input') {\n return (\n <input\n aria-describedby={ariaDescribedBy}\n aria-label={ariaLabelForReadonly}\n aria-labelledby={ariaLabelledBy}\n autofocus={autoFocus}\n class={readonlyDivClasses}\n readonly={true}\n // @ts-ignore\n ref={elementRef}\n type={type}\n value={value}\n {...(!isTabbable && tabbableModeProps)}\n />\n );\n }\n if (as === 'textarea') {\n return (\n <textarea\n aria-describedby={ariaDescribedBy}\n aria-label={ariaLabelForReadonly}\n aria-labelledby={ariaLabelledBy}\n autofocus={autoFocus}\n class={readonlyDivClasses}\n readonly={true}\n // @ts-ignore\n ref={elementRef}\n rows={rows}\n {...(!isTabbable && tabbableModeProps)}>\n {value}\n </textarea>\n );\n }\n return (\n <div\n aria-describedby={ariaDescribedBy}\n aria-label={ariaLabelForReadonly}\n aria-labelledby={ariaLabelledBy}\n aria-readonly={true}\n autofocus={autoFocus}\n class={readonlyDivClasses}\n // @ts-ignore\n ref={elementRef}\n role=\"textbox\"\n {...tabbableModeProps}>\n {value}\n </div>\n );\n}\n"],"names":["readOnlyTextFieldStyles","_a","ariaDescribedBy","ariaLabel","ariaLabelledBy","autoFocus","as","elementRef","hasInsideLabel","inlineUserAssistance","innerReadonlyField","rows","type","value","variant","props","__rest","isLoading","useFormFieldContext","ariaLabelForReadonly","getLoadingAriaLabel","styleInterpolations","mergeInterpolations","interpolations","isFormLayout","isReadonlyForm","_jsx","Object","assign","autofocus","class","readonlyDivClasses","readonly","ref","isTabbable","tabbableModeProps","children","role"],"mappings":"0XAoDA,MAEAA,EAAA,WAAAA,EAAA,SAAAA,EAAA,SAAAA,EAAA,UAAAA,EAAA,WAAAA,EAAA,UAAAA,EAAA,WAAAA,oCA2FA,SAAAC,GAAuC,IAAAC,gBAAAA,EAAAC,UAAAA,EAAAC,eAAAA,EAAAC,UAAAA,EAAAC,GAAAA,EAAA,MAAAC,WAAAA,EAAAC,eAAAA,GAAA,EAAAC,qBAAAA,EAAAC,mBAAAA,EAAAC,KAAAA,EAAAC,KAAAA,EAAAC,MAAAA,EAAA,GAAAC,QAAAA,GAAAb,EAAAc,EAAAC,EAAAA,OAAAf,EAAA,CAAA,kBAAA,YAAA,iBAAA,YAAA,KAAA,aAAA,iBAAA,uBAAA,qBAAA,OAAA,OAAA,QAAA,mEAiBrCgB,UAAAA,GAAAC,EAAAA,sBACAC,EAAAF,EAAAG,EAAAA,sBAAAjB,6CAIAkB,EAAAC,sBAAAC,wEAKEvB,EACA,aAAAM,GAAAN,EACAwB,IAAAC,GAAAzB,EACA,aAAAc,OAEEW,GACAzB,MAEAyB,IACAjB,IAEER,GACJ,aAAAc,OAEEW,MAEAzB,sBAGAyB,GACAzB,+EASF0B,MAAA,QAAAC,OAAAC,OAAA,CAAA,mBAAA1B,EAAA,aAAAiB,EAAA,kBAAAf,EAAAyB,UAAAxB,EAAAyB,MAAAC,EAAAC,UAAA,EASIC,IAAA1B,EAAAK,KAAAA,EAAAC,MAAAA,IAAAqB,GAAAC,mBAQJT,MAAA,WAAAC,OAAAC,OAAA,CAAA,mBAAA1B,EAAA,aAAAiB,EAAA,kBAAAf,EAAAyB,UAAAxB,EAAAyB,MAAAC,EAAAC,UAAA,EASIC,IAAA1B,EAAAI,KAAAA,IAAAuB,GAAAC,EAAA,CAAAC,SAAAvB,KAONa,MAAA,MAAAC,OAAAC,OAAA,CAAA,mBAAA1B,EAAA,aAAAiB,EAAA,kBAAAf,EAAA,iBAAA,EAAAyB,UAAAxB,EAAAyB,MAAAC,EASIE,IAAA1B,EAAA8B,KAAA,WAAAF,EAAA,CAAAC,SAAAvB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(["exports","preact/jsx-runtime","preact/hooks","./index-
|
|
2
|
-
//# sourceMappingURL=SelectMenuItem-
|
|
1
|
+
define(["exports","preact/jsx-runtime","preact/hooks","./index-c858cea4","./MenuItem-c024e602","preact","./index-6430a462"],function(e,t,n,i,o,l,s){"use strict";const u=l.createContext({isMultiple:!1});e.SelectMenuGroupContext=u,e.SelectMenuItem=function({value:e,label:i,isDisabled:l,endIcon:c}){const{isMultiple:m,value:a,onCommit:d}=n.useContext(u),{isSelected:r,memoizedOnCommit:x}=n.useMemo(()=>m?{isSelected:!!(null==a?void 0:a.includes(e)),memoizedOnCommit:()=>{const t=r?(null==a?void 0:a.filter(t=>t!==e))||[]:[...a||[],e];null==d||d({value:t,previousValue:a})}}:{isSelected:a===e,memoizedOnCommit:()=>{null==d||d({value:e,previousValue:a})}},[a,e,d,m]);return t.jsx(o.BaseMenuItem,{role:m?"menuitemcheckbox":"menuitemradio",isChecked:r,isDisabled:l,startIcon:r?t.jsx(s.SvgIcoCheck,{}):t.jsx("span",{}),label:i,onAction:x,endIcon:c})}});
|
|
2
|
+
//# sourceMappingURL=SelectMenuItem-d738b44f.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectMenuItem-
|
|
1
|
+
{"version":3,"file":"SelectMenuItem-d738b44f.js","sources":["../../src/UNSAFE_Menu/SelectMenuGroupContext.tsx","../../src/UNSAFE_Menu/SelectMenuItem.tsx","../../src/UNSAFE_Menu/useSelectMenuGroupContext.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { createContext } from 'preact';\n\nimport { MenuValueUpdateDetail } from './menuUtils';\n\ntype SelectSingleMenuGroupContextProps = {\n isMultiple: false;\n value?: string;\n onCommit?: (detail: MenuValueUpdateDetail<string>) => void;\n};\ntype SelectMultipleMenuGroupContextProps = {\n isMultiple: true;\n value?: string[];\n onCommit?: (detail: MenuValueUpdateDetail<string[]>) => void;\n};\n\ntype SelectMenuGroupContextProps =\n | SelectSingleMenuGroupContextProps\n | SelectMultipleMenuGroupContextProps;\n\nconst SelectMenuGroupContext = createContext<SelectMenuGroupContextProps>({\n isMultiple: false\n});\n\nexport { SelectMenuGroupContext, SelectMenuGroupContextProps };\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ComponentChildren } from 'preact';\nimport { useMemo } from 'preact/hooks';\n\nimport { CheckIcon } from '../UNSAFE_ThemedIcons';\n\nimport { BaseMenuItem } from './MenuItem';\nimport { useSelectMenuGroupContext } from './useSelectMenuGroupContext';\n\ntype SelectMenuItemProps = {\n value: string;\n label: string;\n isDisabled?: boolean;\n endIcon?: ComponentChildren;\n};\n\nexport function SelectMenuItem({ value, label, isDisabled, endIcon }: SelectMenuItemProps) {\n const { isMultiple, value: selectedValue, onCommit } = useSelectMenuGroupContext();\n\n const { isSelected, memoizedOnCommit } = useMemo(() => {\n if (!isMultiple) {\n return {\n isSelected: selectedValue === value,\n memoizedOnCommit: () => {\n onCommit?.({ value, previousValue: selectedValue });\n }\n };\n }\n return {\n isSelected: !!selectedValue?.includes(value),\n memoizedOnCommit: () => {\n const proposedValue = isSelected\n ? selectedValue?.filter((val) => val !== value) || []\n : [...(selectedValue || []), value];\n onCommit?.({ value: proposedValue, previousValue: selectedValue });\n }\n };\n }, [selectedValue, value, onCommit, isMultiple]);\n\n return (\n <BaseMenuItem\n role={isMultiple ? 'menuitemcheckbox' : 'menuitemradio'}\n isChecked={isSelected}\n isDisabled={isDisabled}\n startIcon={isSelected ? <CheckIcon /> : <span></span>}\n label={label}\n onAction={memoizedOnCommit}\n endIcon={endIcon}\n />\n );\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { useContext } from 'preact/hooks';\nimport { SelectMenuGroupContext } from './SelectMenuGroupContext';\n\n/**\n * Utility hook for consuming the MenuContext\n *\n * @returns The value of MenuContext provider\n */\nfunction useSelectMenuGroupContext() {\n return useContext(SelectMenuGroupContext);\n}\n\nexport { useSelectMenuGroupContext };\n"],"names":["SelectMenuGroupContext","createContext","isMultiple","value","label","isDisabled","endIcon","selectedValue","onCommit","useContext","isSelected","memoizedOnCommit","useMemo","includes","proposedValue","filter","val","previousValue","_jsx","BaseMenuItem","role","isChecked","startIcon","CheckIcon","onAction"],"mappings":"iKA2BM,MAAAA,EAAyBC,EAAAA,cAA2C,CACxEC,YAAY,gDCLR,UAAyBC,MAAEA,EAAKC,MAAEA,EAAKC,WAAEA,EAAUC,QAAEA,IACzD,MAAMJ,WAAEA,EAAYC,MAAOI,EAAaC,SAAEA,GCPnCC,EAAAA,WAAWT,IDSZU,WAAEA,EAAUC,iBAAEA,GAAqBC,EAAOA,QAAC,IAC1CV,EAQE,CACLQ,cAAcH,MAAAA,OAAA,EAAAA,EAAeM,SAASV,IACtCQ,iBAAkB,KAChB,MAAMG,EAAgBJ,GAClBH,MAAAA,OAAA,EAAAA,EAAeQ,OAAQC,GAAQA,IAAQb,KAAU,GACjD,IAAKI,GAAiB,GAAKJ,GAC/BK,MAAAA,GAAAA,EAAW,CAAEL,MAAOW,EAAeG,cAAeV,MAb7C,CACLG,WAAYH,IAAkBJ,EAC9BQ,iBAAkB,KAChBH,MAAAA,GAAAA,EAAW,CAAEL,MAAAA,EAAOc,cAAeV,MAaxC,CAACA,EAAeJ,EAAOK,EAAUN,IAEpC,OACEgB,MAACC,EAAYA,aAAA,CACXC,KAAMlB,EAAa,mBAAqB,gBACxCmB,UAAWX,EACXL,WAAYA,EACZiB,UAAWZ,EAAaQ,MAACK,EAAAA,gBAAeL,MAAA,OAAA,IACxCd,MAAOA,EACPoB,SAAUb,EACVL,QAASA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
define(["exports","preact/jsx-runtime","preact","preact/compat","./hooks/UNSAFE_useFocusableTextField","./hooks/UNSAFE_useFormContext","./hooks/UNSAFE_useFormFieldContext","./hooks/UNSAFE_useLoadingIndicatorTimer","./hooks/UNSAFE_useTextField","./UNSAFE_Flex","./UNSAFE_Label","./UNSAFE_LiveRegion","./UNSAFE_TextField","./UNSAFE_UserAssistance","./PRIVATE_SelectCommon","./tslib.es6-db9b6ac2",'module',"./UNSAFE_Chip","./hooks/UNSAFE_useTranslationBundle","./Chip-6b5bda1b","preact/hooks","./utils/UNSAFE_mergeProps","./ReadonlyTextFieldInput-f86c3c42","./TextFieldInput-12ff173d","./Flex-da4d9aef"],function(e,n,o,s,t,i,l,a,r,d,u,c,p,v,b,f,h,m,F,x,g,w,y,S,D){"use strict";function A(e){var{accessibleLabel:o,count:s=0,onKeyDown:t,onKeyUp:i,onMouseDown:l}=e,a=f.__rest(e,["accessibleLabel","count","onKeyDown","onKeyUp","onMouseDown"]);const r=F.useTranslationBundle("@oracle/oraclejet-preact"),d=r.selectMultiple_showSelectedValues(),u=o?`${o}. `:"",c=r.selectMultiple_countPlus({COUNT:"99"}),p=s>99?`${c}`:`${s}`,v=`${u}${r.selectMultiple_valuesSelected({VALUE_COUNT:`${s}`})} ${d}`;return n.jsx("div",Object.assign({class:"_1os6alm",onKeyDown:t,onKeyUp:i,onMouseDown:l},{children:n.jsx(x.Chip,Object.assign({accessibleLabel:v},a,{children:p}))}))}function E(e,n){const o=F.useTranslationBundle("@oracle/oraclejet-preact").plural_separator(),s=g.useMemo(()=>{if(void 0===n)return"";const s=function(e,n){const o=n?[...null==n?void 0:n.values()]:[],s=n=>b.renderItemText(n,e),t=o.map(s);return new Set(t)}(e,n),t=function(e,n){return Array.from(e.values()).join(n)}(s,o);return t},[n,e]);return s}function R({data:e,inputRef:n,isDisabled:o,isFocused:s,isReadonly:t,onCommit:i,onFilter:l,onLoadRange:a,valueItems:r}){const[d,u]=g.useState(!1),c=null==r?void 0:r.length,p=void 0!==c&&c>0||d,v=function({isDropdownSelectedOnlyView:e,valueItems:n}){return{data:g.useMemo(()=>{var o;return e&&n&&0!==n.length?{offset:0,totalSize:null!==(o=null==n?void 0:n.length)&&void 0!==o?o:0,sizePrecision:"exact",data:n.map(e=>{var n;return{data:e.data,metadata:null!==(n=e.metadata)&&void 0!==n?n:{key:e.key}}})}:void 0},[e]),onLoadRange:void 0}}({isDropdownSelectedOnlyView:d,valueItems:r}),f=d?v.data:e,h=d?v.onLoadRange:a,{currentRow:m,dropdownRef:F,handleDropdownArrowClick:x,handleDropdownAutoDismiss:y,handleDropdownPosition:S,handleInput:D,handleMainFieldKeyDown:A,handleMainFieldKeyUp:E,handleUpDownArrowKeys:R,isDropdownAbove:j,isDropdownOpen:C,isFocused:T,isUserFiltering:K,mainFieldRef:L,onCurrentKeyChange:U,onMouseDown:O,searchText:k,selectedKeys:P,setCurrentRow:_,setDropdownOpen:I,setSelectedKeys:M,userInput:N}=b.useSelectCommon({data:f,inputRef:n,isFocused:s,onFilter:l}),B=g.useCallback(()=>{var e,n;null===(n=null===(e=F.current)||void 0===e?void 0:e.parentElement)||void 0===n||n.removeChild(F.current)},[]),V=g.useCallback(e=>{var o,s;if(C&&"keydown"===(null==e?void 0:e.type)){const t=e;if(t.code===b.KEYS.TAB)t.shiftKey||!p?null===(o=n.current)||void 0===o||o.focus():null===(s=$.current)||void 0===s||s.focus(),B()}},[p,C]),z=g.useCallback(e=>{if(!b.isControlOrFunctionKey(e)&&e.code===b.KEYS.TAB)C&&(e.shiftKey||!p&&!e.shiftKey)&&(B(),I(!1)),p&&!e.shiftKey&&e.stopPropagation()},[p,C]);g.useEffect(()=>{const e=null==r?void 0:r.reduce((e,n)=>(e.add(n.key),e),new Set);M(e)},[r]);const $=g.useRef(null);g.useEffect(()=>{$.current=p&&L.current?L.current.querySelector('[role="switch"]'):null},[p,o,t]);const Y=g.useCallback(e=>{switch(e.code){case b.KEYS.TAB:C&&!e.shiftKey&&(B(),I(!1)),e.shiftKey&&e.stopPropagation();break;case b.KEYS.UP:case b.KEYS.DOWN:e.preventDefault();break;case b.KEYS.ESC:C&&(I(!1),e.preventDefault(),e.stopPropagation());break;case b.KEYS.ENTER:e.stopPropagation()}},[C]),H=g.useCallback(e=>{switch(e.code){case b.KEYS.UP:case b.KEYS.DOWN:R(e)}},[R]),q=g.useCallback(e=>{var o;e.preventDefault(),null===(o=n.current)||void 0===o||o.focus()},[]),W=g.useCallback(e=>{var n;C||I(!0);const o=null!==(n=e.value)&&void 0!==n&&n;o!==d&&u(o)},[C,d]);g.useEffect(()=>{!C&&d&&u(!1)},[C,d]);const Z=g.useCallback(e=>{var n;const o=new Set(null===(n=e.value.keys)||void 0===n?void 0:n.values());M(o),null==i||i({value:o,previousValue:P})},[i,P]),G=g.useMemo(()=>w.mergeProps({onAutoDismiss:y,onPosition:S},{onAutoDismiss:V}),[y,S,V]),J=g.useMemo(()=>w.mergeProps({onInput:D,onKeyDown:A,onKeyUp:E},{onKeyDown:z}),[A,D,E,z]);return g.useEffect(()=>{C&&_({rowKey:void 0})},[C]),{collectionProps:{currentKey:m.rowKey,onCurrentKeyChange:U,onSelectionChange:Z,selectedKeys:P},data:f,dropdownArrowEventHandlers:{onClick:x},dropdownEventHandlers:G,dropdownRef:F,hasSelectedValuesCount:p,inputEventHandlers:J,inputRef:n,isDropdownAbove:j,isDropdownOpen:C,isDropdownSelectedOnlyView:d,isFocused:T,isUserFiltering:K,mainFieldRef:L,mouseProps:o||t?{}:{onMouseDown:O},onLoadRange:h,searchText:k,selectedValuesCountProps:{onKeyDown:Y,onKeyUp:H,onMouseDown:q,onToggle:W},userInput:N}}const j=s.forwardRef(({ariaDescribedBy:e,assistiveText:s,data:d,helpSourceLink:f,helpSourceText:h,isDisabled:m,isLoading:x,isReadonly:g,isRequired:w,isRequiredShown:j,itemText:C,label:T,labelEdge:K,labelStartWidth:L,messages:U,onCommit:O,onFilter:k,onLoadRange:P,placeholder:_,textAlign:I,userAssistanceDensity:M,valueItems:N,variant:B="default",virtualKeyboard:V},z)=>{const{isDisabled:$,isReadonly:Y,labelEdge:H,labelStartWidth:q,textAlign:W,userAssistanceDensity:Z}=i.useFormContext(),G=null!=m?m:$,J=null!=g?g:Y,Q=null!=K?K:H,X=null!=L?L:q,ee=null!=I?I:W,ne=null!=M?M:Z,{enabledElementRef:oe,focusProps:se,isFocused:te,readonlyElementRef:ie}=t.useFocusableTextField({isDisabled:G,isReadonly:J,ref:z}),{collectionProps:le,data:ae,dropdownArrowEventHandlers:re,dropdownEventHandlers:de,dropdownRef:ue,hasSelectedValuesCount:ce,inputEventHandlers:pe,isDropdownAbove:ve,isDropdownOpen:be,isDropdownSelectedOnlyView:fe,isFocused:he,isUserFiltering:me,mainFieldRef:Fe,mouseProps:xe,onLoadRange:ge,searchText:we,selectedValuesCountProps:ye,userInput:Se}=R({data:d,inputRef:oe,isDisabled:G,isFocused:te,isReadonly:J,onCommit:O,onFilter:k,onLoadRange:P,valueItems:N}),De=a.useLoadingIndicatorTimer(null!=x&&x),{baseId:Ae,formFieldContext:Ee,inputProps:Re,labelProps:je,textFieldProps:Ce,userAssistanceProps:Te}=r.useTextField({ariaDescribedBy:e,isDisabled:G,isFocused:he,isLoading:De,isReadonly:J,labelEdge:Q,messages:U,styleVariant:B,value:void 0!==N&&N.length>0||void 0}),Ke=`${Ae}-dropdown`,Le=E(C,N),Ue="none"!==Q?n.jsx(u.Label,Object.assign({},je,{children:T})):void 0,Oe={label:"none"!==Q?Ue:void 0,labelEdge:"none"!==Q?Q:void 0,labelStartWidth:"none"!==Q?X:void 0},ke="none"===Q?T:void 0,Pe=G||J?"efficient"!==ne?void 0:n.jsx(v.InlineUserAssistance,Object.assign({userAssistanceDensity:ne},Te)):n.jsx(v.InlineUserAssistance,Object.assign({assistiveText:s,fieldLabel:T,helpSourceLink:f,helpSourceText:h,messages:U,isRequiredShown:j,userAssistanceDensity:ne},Te)),_e=F.useTranslationBundle("@oracle/oraclejet-preact");if(J)return n.jsx(l.FormFieldContext.Provider,Object.assign({value:Ee},{children:n.jsx(p.ReadonlyTextField,Object.assign({role:"presentation",inlineUserAssistance:Pe,onBlur:se.onfocusout,onFocus:se.onfocusin},Oe,{children:n.jsx(y.ReadonlyTextFieldInput,{ariaDescribedBy:e,ariaLabel:ke,ariaLabelledBy:je.id,as:"div",elementRef:ie,hasInsideLabel:void 0!==T&&"inside"===Q,textAlign:ee,value:Le})}))}));const Ie=null!=ae&&!b.isBeforeDataFetch(ae),Me=void 0!==Ue&&"inside"===Q,Ne=be&&Ie?0===(null==ae?void 0:ae.totalSize)?_e.select_noMatchesFound():1===(null==ae?void 0:ae.totalSize)?_e.select_oneMatchFound():"exact"===(null==ae?void 0:ae.sizePrecision)?_e.select_sizeMatchesFound({TOTAL_SIZE:`${null==ae?void 0:ae.totalSize}`}):_e.select_sizeOrMoreMatchesFound({TOTAL_SIZE:`${null==ae?void 0:ae.totalSize}`}):"",Be=n.jsxs(o.Fragment,{children:[n.jsx(S.TextFieldInput,Object.assign({ariaAutoComplete:"list",ariaControls:Ke,ariaExpanded:be,ariaLabel:ke,autoComplete:"off",hasInsideLabel:Me,inputRef:oe,isRequired:w},pe,{placeholder:_,role:"combobox",spellcheck:!1,textAlign:ee,type:b.isMobile()?"auto"===V?"search":V:void 0,value:me?Se:Le},Re)),n.jsx(c.LiveRegion,{children:Ne})]}),Ve=n.jsx(b.DropdownArrow,Object.assign({isDisabled:G,size:Me?"md":"sm"},re)),ze=null==N?void 0:N.length,$e=De?void 0:ce?n.jsxs(D.Flex,Object.assign({align:"center",justify:"center",gap:[0,"1x"]},{children:[n.jsx(A,Object.assign({accessibleLabel:T,count:ze,isDisabled:G,isSelected:fe},ye)),Ve]})):Ve,Ye=!be||ve||G||J||!s&&!f||"efficient"!==ne&&"reflow"!==ne?void 0:n.jsx(b.DropdownUserAssistance,{assistiveText:s,fieldLabel:T,helpSourceLink:f,helpSourceText:h,userAssistanceDensity:ne}),He=Ie&&0===(null==ae?void 0:ae.totalSize),qe=He?n.jsx(b.EmptyResults,{}):n.jsx(b.DefaultList,Object.assign({},le,{accessibleSummary:null!=T?T:"",data:ae,itemText:C,onLoadRange:ge,searchText:fe?void 0:me?we:void 0,selectionMode:"multiple"}));return n.jsxs(o.Fragment,{children:[n.jsx(l.FormFieldContext.Provider,Object.assign({value:Ee},{children:n.jsx(p.TextField,Object.assign({endContent:$e,inlineUserAssistance:Pe,mainContent:Be,mainFieldRef:Fe,onBlur:null==se?void 0:se.onfocusout,onFocus:null==se?void 0:se.onfocusin},Ce,Oe,xe))})),n.jsxs(b.Dropdown,Object.assign({dropdownRef:ue,id:Ke,isOpen:be&&void 0!==ae&&(null===ae||ae.totalSize>0||b.isBeforeDataFetch(ae)||He),anchorRef:Fe},de,{children:[n.jsx(b.DropdownList,Object.assign({hasBottomGap:void 0===Ye,isLoading:null===ae},{children:qe})),Ye]}))]})});e.SelectMultiple=j});
|
|
2
|
+
//# sourceMappingURL=SelectMultiple-f9dc64be.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectMultiple-4287a982.js","sources":["../../src/UNSAFE_SelectMultiple/SelectedValuesCount.tsx","../../src/UNSAFE_SelectMultiple/useDisplayValues.ts","../../src/UNSAFE_SelectMultiple/useSelectMultiple.ts","../../src/UNSAFE_SelectMultiple/useSelectedOnlyData.ts","../../src/UNSAFE_SelectMultiple/SelectMultiple.tsx"],"sourcesContent":["import { ComponentProps } from 'preact';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport { Chip } from '../UNSAFE_Chip';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '../resources/nls/bundle';\n\nconst rootStyles = cssProps`${{\n display: 'inline-flex'\n}}`;\n\ntype PickedPropsFromChip = Pick<\n ComponentProps<typeof Chip>,\n 'accessibleLabel' | 'isDisabled' | 'isSelected' | 'onToggle'\n>;\n\ntype Props = PickedPropsFromChip & {\n count?: number;\n onKeyDown?: (event: KeyboardEvent) => void;\n onKeyUp?: (event: KeyboardEvent) => void;\n onMouseDown?: (event: MouseEvent) => void;\n};\n\n// This component renders a badge showing the number of selected values\nexport function SelectedValuesCount({\n accessibleLabel,\n count = 0,\n onKeyDown,\n onKeyUp,\n onMouseDown,\n ...passThroughProps\n}: Props) {\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const instructions = translations.selectMultiple_showSelectedValues();\n const accLabel = accessibleLabel ? `${accessibleLabel}. ` : '';\n\n const ninetyNinePlus = translations.selectMultiple_countPlus({ COUNT: `99` });\n // The Chip shows the number of values selected or 99+ if the number is over 99.\n const chipCount = count > 99 ? `${ninetyNinePlus}` : `${count}`;\n // The screenreader will hear what the number of selected values is along with instructions\n // like Click to see the full list.\n const valuesSelectedText = translations.selectMultiple_valuesSelected({\n VALUE_COUNT: `${count}`\n });\n const label = `${accLabel}${valuesSelectedText} ${instructions}`;\n return (\n <div class={rootStyles} onKeyDown={onKeyDown} onKeyUp={onKeyUp} onMouseDown={onMouseDown}>\n <Chip accessibleLabel={label} {...passThroughProps}>\n {chipCount}\n </Chip>\n </div>\n );\n}\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 { useMemo } from 'preact/hooks';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '../resources/nls/bundle';\nimport { Item } from '../utils/UNSAFE_dataProvider';\nimport { ItemTextType } from '../utils/UNSAFE_selectUtils';\nimport { renderItemText } from '../PRIVATE_SelectCommon';\n\nexport function useDisplayValues<K, D>(\n itemText: ItemTextType<K, D>,\n valueItems?: Item<K, D>[]\n): string {\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const separator = translations.plural_separator();\n\n // create the text displayed in the field from the selected values\n const concatenatedDisplayValues = useMemo(() => {\n if (valueItems === undefined) {\n return '';\n }\n const displayValues = _createDisplayValues(itemText, valueItems);\n const concatDisplayValues = _concatDisplayValues(displayValues, separator);\n return concatDisplayValues;\n }, [valueItems, itemText]);\n\n return concatenatedDisplayValues;\n}\n\nfunction _concatDisplayValues(displayValues: Set<string>, separator: string) {\n return Array.from(displayValues.values()).join(separator);\n}\n\nfunction _createDisplayValues<K, D>(itemText: ItemTextType<K, D>, selectedItems?: Item<K, D>[]) {\n const arValues = selectedItems ? [...selectedItems?.values()] : [];\n const mapFunc = (itemContext: Item<K, D>) => renderItemText(itemContext, itemText);\n const mappedArray = arValues.map(mapFunc);\n return new Set<string>(mappedArray as string[]);\n}\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 { ComponentProps } from 'preact';\nimport { MutableRef, useCallback, useEffect, useMemo, useRef, useState } from 'preact/hooks';\nimport { DataState, SelectionDetail } from '../UNSAFE_Collection';\nimport { Item } from '../utils/UNSAFE_dataProvider';\nimport { mergeProps } from '../utils/UNSAFE_mergeProps';\nimport { ValueUpdateDetail } from '../utils/UNSAFE_valueUpdateDetail';\nimport { isControlOrFunctionKey, KEYS, useSelectCommon } from '../PRIVATE_SelectCommon';\nimport { SelectMultiple } from './SelectMultiple';\nimport { SelectedValuesCount } from './SelectedValuesCount';\nimport { useSelectedOnlyData } from './useSelectedOnlyData';\n\ntype PickedPropsFromSelectMultiple = Pick<\n ComponentProps<typeof SelectMultiple>,\n 'isDisabled' | 'isReadonly' | 'onFilter' | 'onLoadRange'\n>;\ntype UseSelectMultipleProps<K, D> = PickedPropsFromSelectMultiple & {\n data?: DataState<K, D> | null;\n inputRef: MutableRef<HTMLInputElement>;\n isFocused?: boolean;\n onCommit: (detail: ValueUpdateDetail<Set<K>>) => void;\n valueItems?: Item<K, D>[];\n};\n\ntype SelectedValuesCountToggleType = ComponentProps<typeof SelectedValuesCount>['onToggle'];\ntype SelectedValuesCountToggleDetailType = Parameters<\n Exclude<SelectedValuesCountToggleType, undefined>\n>[0];\n\n/**\n * Hook that manages SelectMultiple state and behavior. This hook creates state variables and\n * event listeners, returning properties to apply to components internally rendered by\n * SelectMultiple, as well as state information.\n *\n * @param data Specifies data for the dropdown list.\n * @param inputRef Ref to the input element.\n * @param isDisabled Specifies whether the component is disabled.\n * @param isFocused Specifies whether the component has focus.\n * @param isReadonly Specifies whether the component is readonly.\n * @param onCommit Callback invoked when the selected values are committed.\n * @param onFilter Callback function to trigger loading data for the dropdown list,\n * which may or may not be filtered by user entered text.\n * @param onLoadRange Callback function to handle when the viewport of the dropdown list has\n * changed, including the case where the user scrolls to the end of the list and there are more\n * items to load. The function should set a new DataState on the component for the specified\n * range.\n * @param valueItems Specifies the keys, data, and optional metadata for the selected values.\n *\n * @returns Properties to apply to internal components that SelectMultiple renders, and component\n * state.\n */\nexport function useSelectMultiple<K, D>({\n data: propData,\n inputRef,\n isDisabled,\n isFocused: propIsFocused,\n isReadonly,\n onCommit,\n onFilter,\n onLoadRange: propOnLoadRange,\n valueItems\n}: UseSelectMultipleProps<K, D>) {\n const [isDropdownSelectedOnlyView, setDropdownSelectedOnlyView] = useState(false);\n\n const selectedValuesCount = valueItems?.length;\n const hasSelectedValuesCount =\n (selectedValuesCount !== undefined && selectedValuesCount > 0) || isDropdownSelectedOnlyView;\n\n // show only the selected values in the dropdown if isDropdownSelectedOnlyView is true,\n // otherwise show the full data set\n // TODO: We may need to revisit this for hierarchical data because the selected valueItems\n // won't have any information about ancestor group nodes, and we should probably show selected\n // items in context within the hierarchy. Also, the order of the items in the selected-only\n // view right now follows the order in which they were selected, not the order in which they\n // would appear in the full data set. This may be more of a problem for hierarchical data\n // if items have to appear within the correct group ancestors. We may need to move\n // construction of the selected-only DataState out of the component to the consuming code,\n // and take a callback that we can call as a notification that the app should provide this\n // special DataState to us (kind of like onLoadRange). Note that we may also need an\n // enhancement on the DataProvider API to be able to specify a filterCriterion to filter by\n // the selected keys through a fetchFirst call, because a regular fetchByKeys call would\n // still return results in the order in which the keys were specified and would not return\n // data for the ancestor group nodes.\n const selectedOnlyDataProps = useSelectedOnlyData<K, D>({\n isDropdownSelectedOnlyView,\n valueItems\n });\n const data = isDropdownSelectedOnlyView ? selectedOnlyDataProps.data : propData;\n const onLoadRange = isDropdownSelectedOnlyView\n ? selectedOnlyDataProps.onLoadRange\n : propOnLoadRange;\n\n const {\n currentRow,\n dropdownRef,\n handleDropdownArrowClick,\n handleDropdownAutoDismiss: baseHandleDropdownAutoDismiss,\n handleDropdownPosition,\n handleInput,\n handleMainFieldKeyDown: baseHandleMainFieldKeyDown,\n handleMainFieldKeyUp,\n handleUpDownArrowKeys,\n isDropdownAbove,\n isDropdownOpen,\n isFocused,\n isUserFiltering,\n mainFieldRef,\n onCurrentKeyChange,\n onMouseDown,\n searchText,\n selectedKeys,\n setCurrentRow,\n setDropdownOpen,\n setSelectedKeys,\n userInput\n } = useSelectCommon<K, D>({\n data,\n inputRef,\n isFocused: propIsFocused,\n onFilter\n });\n\n const removeDropdown = useCallback(() => {\n dropdownRef.current?.parentElement?.removeChild(dropdownRef.current);\n }, []);\n\n const myHandleDropdownAutoDismiss = useCallback(\n (event?: Event) => {\n if (isDropdownOpen) {\n if (event?.type === 'keydown') {\n const keyboardEvent = event as KeyboardEvent;\n switch (keyboardEvent.code) {\n case KEYS.TAB:\n // Put focus on an element in the main field, but don't kill the event, so that\n // the browser can naturally transfer focus to the next focusable item relative\n // to the element in the main field.\n if (keyboardEvent.shiftKey || !hasSelectedValuesCount) {\n inputRef.current?.focus();\n } else {\n chipRef.current?.focus();\n }\n\n // Remove the dropdown immediately, without waiting for a rerender based on changing\n // state, so that the open dropdown cannot get focus when the browser handles the\n // Tab key.\n removeDropdown();\n break;\n default:\n break;\n }\n }\n }\n },\n [hasSelectedValuesCount, isDropdownOpen]\n );\n\n const myHandleMainFieldKeyDown = useCallback(\n (event: KeyboardEvent) => {\n // const target = event.target as HTMLElement;\n // ignore control key and function key\n if (isControlOrFunctionKey(event)) {\n return;\n }\n\n switch (event.code) {\n case KEYS.TAB:\n if (isDropdownOpen && (event.shiftKey || (!hasSelectedValuesCount && !event.shiftKey))) {\n // Remove the dropdown immediately, without waiting for a rerender based on changing\n // state, so that the open dropdown cannot get focus when the browser handles the\n // Tab key.\n removeDropdown();\n\n setDropdownOpen(false);\n }\n\n // JET-53183 - core pack compat: stop propagation of handled events\n // we don't want a parent collection component to jump focus to the next cell and skip\n // over the selected values count chip\n if (hasSelectedValuesCount && !event.shiftKey) {\n event.stopPropagation();\n }\n break;\n\n default:\n break;\n }\n },\n [hasSelectedValuesCount, isDropdownOpen]\n );\n\n // when the array of valueItems changes, pull out the new set of selectedKeys\n useEffect(() => {\n const keys = valueItems?.reduce((accumKeys, currentItem) => {\n accumKeys.add(currentItem.key);\n return accumKeys;\n }, new Set<K>());\n setSelectedKeys(keys);\n }, [valueItems]);\n\n const chipRef = useRef<HTMLElement | null>(null);\n useEffect(() => {\n chipRef.current =\n hasSelectedValuesCount && mainFieldRef.current\n ? mainFieldRef.current.querySelector('[role=\"switch\"]')\n : null;\n }, [hasSelectedValuesCount, isDisabled, isReadonly]);\n\n const handleSelectedValuesCountKeyDown = useCallback(\n (event: KeyboardEvent) => {\n switch (event.code) {\n case KEYS.TAB:\n if (isDropdownOpen && !event.shiftKey) {\n // Remove the dropdown immediately, without waiting for a rerender based on changing\n // state, so that the open dropdown cannot get focus when the browser handles the\n // Tab key.\n removeDropdown();\n\n setDropdownOpen(false);\n }\n\n // JET-53183 - core pack compat: stop propagation of handled events\n // we don't want a parent collection component to jump focus to the next cell and skip\n // over the input\n if (event.shiftKey) {\n event.stopPropagation();\n }\n break;\n\n case KEYS.UP:\n case KEYS.DOWN:\n // prevent the page from scrolling\n event.preventDefault();\n break;\n\n case KEYS.ESC:\n if (isDropdownOpen) {\n setDropdownOpen(false);\n\n event.preventDefault();\n\n // JET-53183 - core pack compat: stop propagation of handled events\n // we don't want a parent collection component to stop editing the row when we close\n // the dropdown\n event.stopPropagation();\n }\n break;\n\n case KEYS.ENTER:\n // JET-53183 - core pack compat: stop propagation of handled events\n // we don't want a parent collection component to move focus to the next row when\n // we toggle between the full and selected only list in the dropdown\n event.stopPropagation();\n break;\n\n default:\n break;\n }\n },\n [isDropdownOpen]\n );\n\n const handleSelectedValuesCountKeyUp = useCallback(\n (event: KeyboardEvent) => {\n switch (event.code) {\n case KEYS.UP:\n case KEYS.DOWN:\n handleUpDownArrowKeys(event);\n break;\n\n default:\n break;\n }\n },\n [handleUpDownArrowKeys]\n );\n\n const handleSelectedValuesCountMouseDown = useCallback((event: MouseEvent) => {\n // call preventDefault so that the dropdown doesn't open showing the full list on mousedown\n // on the chip before switching to show only the selected values on mouseup when the click\n // is handled\n event.preventDefault();\n // explicitly focus the input because it won't happen naturally due to preventDefault()\n inputRef.current?.focus();\n }, []);\n\n const handleSelectedValuesCountToggle = useCallback(\n (detail: SelectedValuesCountToggleDetailType) => {\n if (!isDropdownOpen) {\n setDropdownOpen(true);\n }\n\n const value = detail.value ?? false;\n if (value !== isDropdownSelectedOnlyView) {\n setDropdownSelectedOnlyView(value);\n }\n },\n [isDropdownOpen, isDropdownSelectedOnlyView]\n );\n\n // when the dropdown closes, automatically turn off isDropdownSelectedOnlyView\n useEffect(() => {\n if (!isDropdownOpen && isDropdownSelectedOnlyView) {\n setDropdownSelectedOnlyView(false);\n }\n }, [isDropdownOpen, isDropdownSelectedOnlyView]);\n\n const onSelectionChange = useCallback(\n (detail: SelectionDetail<K>) => {\n const newKeys = new Set(detail.value.keys?.values());\n // update the selectedKeys so that the selection visual state of the collection\n // updates immediately while waiting for new valueItems to be set\n setSelectedKeys(newKeys);\n // call the onCommit callback so that the consuming code can update the valueItems\n onCommit?.({ value: newKeys, previousValue: selectedKeys });\n },\n [onCommit, selectedKeys]\n );\n\n const dropdownEventHandlers = useMemo(() => {\n return mergeProps(\n {\n onAutoDismiss: baseHandleDropdownAutoDismiss,\n onPosition: handleDropdownPosition\n },\n { onAutoDismiss: myHandleDropdownAutoDismiss }\n );\n }, [baseHandleDropdownAutoDismiss, handleDropdownPosition, myHandleDropdownAutoDismiss]);\n\n const inputEventHandlers = useMemo(() => {\n return mergeProps(\n {\n onInput: handleInput,\n onKeyDown: baseHandleMainFieldKeyDown,\n onKeyUp: handleMainFieldKeyUp\n },\n { onKeyDown: myHandleMainFieldKeyDown }\n );\n }, [baseHandleMainFieldKeyDown, handleInput, handleMainFieldKeyUp, myHandleMainFieldKeyDown]);\n\n useEffect(() => {\n // clear the current item when the dropdown opens\n if (isDropdownOpen) {\n setCurrentRow({ rowKey: undefined });\n }\n }, [isDropdownOpen]);\n\n return {\n collectionProps: {\n currentKey: currentRow.rowKey,\n onCurrentKeyChange,\n onSelectionChange,\n selectedKeys\n },\n data,\n dropdownArrowEventHandlers: {\n onClick: handleDropdownArrowClick\n },\n dropdownEventHandlers,\n dropdownRef,\n hasSelectedValuesCount,\n inputEventHandlers,\n inputRef,\n isDropdownAbove,\n isDropdownOpen,\n isDropdownSelectedOnlyView,\n isFocused,\n isUserFiltering,\n mainFieldRef,\n mouseProps: isDisabled || isReadonly ? {} : { onMouseDown },\n onLoadRange,\n searchText,\n selectedValuesCountProps: {\n onKeyDown: handleSelectedValuesCountKeyDown,\n onKeyUp: handleSelectedValuesCountKeyUp,\n onMouseDown: handleSelectedValuesCountMouseDown,\n onToggle: handleSelectedValuesCountToggle\n },\n userInput\n };\n}\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 { useMemo } from 'preact/hooks';\nimport { DataState } from 'src/UNSAFE_Collection';\nimport { Item } from '../utils/UNSAFE_dataProvider';\n\ntype Props<K, D> = {\n isDropdownSelectedOnlyView?: boolean;\n valueItems?: Item<K, D>[];\n};\n\n/**\n * Get the data to show in the dropdown for the selected-only view.\n * @param isDropdownSelectedOnlyView Whether the component is showing only selected\n * values in the dropdown: true if so, false if not.\n * @param valueItems The keys, data, and optional metadata for the selected values.\n * @returns An object with data and onLoadRange properties that can be passed on to the\n * list in the dropdown.\n */\nexport function useSelectedOnlyData<K, D>({ isDropdownSelectedOnlyView, valueItems }: Props<K, D>) {\n // Need to specify type of useMemo here so the return statement below doesn't show a type error\n // related to the sizePrecision prop on DataState:\n // Type 'string' is not assignable to type '\"exact\" | \"atLeast\"'.\n // Note that useMemo here only depends on isDropdownSelectedOnlyView because we only want to\n // recalculate when that value changes. While the selected only view is shown, we want the\n // data set to remain static with the set of valueItems as of the time the view was changed to\n // only show selected items so that the user can deselect and reselect items.\n // If useMemo depended on the valueItems too, then the data set would change as the user\n // deselected items, which means those items would disappear from the dropdown and the user\n // could not reselect them.\n const selectedOnlyViewDataState = useMemo<DataState<K, D> | undefined>(() => {\n return !isDropdownSelectedOnlyView || !valueItems || valueItems.length === 0\n ? undefined\n : {\n offset: 0,\n totalSize: valueItems?.length ?? 0,\n sizePrecision: 'exact',\n data: valueItems.map((valueItem: Item<K, D>) => {\n return { data: valueItem.data, metadata: valueItem.metadata ?? { key: valueItem.key } };\n })\n };\n }, [isDropdownSelectedOnlyView]);\n\n return {\n data: selectedOnlyViewDataState,\n onLoadRange: undefined\n };\n}\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 { ComponentProps, Fragment, Ref } from 'preact';\nimport { forwardRef } from 'preact/compat';\nimport { MutableRef } from 'preact/hooks';\nimport { FocusableHandle, useFocusableTextField } from '../hooks/UNSAFE_useFocusableTextField';\nimport { useFormContext } from '../hooks/UNSAFE_useFormContext';\nimport { FormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { useLoadingIndicatorTimer } from '../hooks/UNSAFE_useLoadingIndicatorTimer';\nimport { useTextField } from '../hooks/UNSAFE_useTextField';\nimport { DataState } from '../UNSAFE_Collection';\nimport { Flex } from '../UNSAFE_Flex';\nimport { Label } from '../UNSAFE_Label';\nimport { ListView } from '../UNSAFE_ListView';\nimport { LiveRegion } from '../UNSAFE_LiveRegion';\nimport {\n ReadonlyTextField,\n ReadonlyTextFieldInput,\n TextField,\n TextFieldInput\n} from '../UNSAFE_TextField';\nimport { InlineUserAssistance } from '../UNSAFE_UserAssistance';\nimport { Item } from '../utils/UNSAFE_dataProvider';\nimport { Size } from '../utils/UNSAFE_size';\nimport { ValueUpdateDetail } from '../utils/UNSAFE_valueUpdateDetail';\nimport {\n DefaultList,\n Dropdown,\n DropdownArrow,\n DropdownList,\n DropdownUserAssistance,\n EmptyResults,\n isBeforeDataFetch,\n isMobile\n} from '../PRIVATE_SelectCommon';\nimport { ItemTextType } from '../utils/UNSAFE_selectUtils';\nimport { SelectedValuesCount } from './SelectedValuesCount';\nimport { useDisplayValues } from './useDisplayValues';\nimport { useSelectMultiple } from './useSelectMultiple';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '../resources/nls/bundle';\n\ntype TextFieldInputProps = ComponentProps<typeof TextFieldInput>;\ntype InlineUserAssistanceProps = ComponentProps<typeof InlineUserAssistance>;\n\ntype Props<K extends string | number, D extends Record<string, any>> = {\n /**\n * The ID of an element (or space separated IDs of multiple elements) that\n * describes the input.\n */\n ariaDescribedBy?: TextFieldInputProps['ariaDescribedBy'];\n /**\n * Text to provide guidance to help the user understand what data to enter or select.\n */\n assistiveText?: InlineUserAssistanceProps['assistiveText'];\n /**\n * Specifies data for the dropdown list.\n *\n * Note that the <code>itemText</code> property allows for customizing the rendering\n * of each data item.\n */\n data?: DataState<K, D> | null;\n /**\n * Help source URL associated with the component.\n */\n helpSourceLink?: InlineUserAssistanceProps['helpSourceLink'];\n /**\n * Custom text to be rendered for the <code>helpSourceLink</code>.\n */\n helpSourceText?: InlineUserAssistanceProps['helpSourceText'];\n /**\n * Specifies whether the component is disabled.\n */\n isDisabled?: boolean;\n /**\n * Specifies whether the component is waiting for <code>valueItems</code> to load.\n * While loading, SelectMultiple will show the progressive loading indicator in the text field.\n */\n isLoading?: boolean;\n /**\n * Specifies whether the component is readonly.\n */\n isReadonly?: boolean;\n /**\n * Specifies for accessibility purposes whether a value is required.\n *\n * Setting this property to <code>false</code> means that a value is not required to be\n * selected by the user. Setting this property to <code>true</code> means that a value\n * is required to be selected by the user.\n */\n isRequired?: TextFieldInputProps['isRequired'];\n /**\n * Specifies whether to show an indicator on screen that a value is required, for example\n * before the user has selected a value.\n */\n isRequiredShown?: InlineUserAssistanceProps['isRequiredShown'];\n /**\n * Specifies how to get the text string to render for a data item.\n * This property can be set to either:\n * <ul>\n * <li>a string that specifies the name of a top level data attribute to render as text, or</li>\n * <li>a callback function that takes a properties object and returns the text string to\n * display.</li>\n * </ul>\n *\n * This text will be rendered for the selected <code>valueItems</code> of the component.\n * It will also be rendered for each item in the dropdown. When rendered for the\n * dropdown items, default matching search term highlighting will still be applied.\n */\n itemText: ItemTextType<K, D>;\n /**\n * Specifies the label associated with the field.\n */\n label: string;\n /**\n * Specifies where the label is positioned relative to the field.\n */\n labelEdge?: 'inside' | 'start' | 'top' | 'none';\n /**\n * Specifies the width of the label when <code>labelEdge</code> is <code>\"start\"</code>\n */\n labelStartWidth?: Size;\n /**\n * Messages to show on screen that are associated with the component.\n */\n messages?: InlineUserAssistanceProps['messages'];\n /**\n * A short hint to display before the user selects or enters a value.\n */\n placeholder?: TextFieldInputProps['placeholder'];\n /**\n * Specifies how to align text within the field.\n */\n textAlign?: TextFieldInputProps['textAlign'];\n /**\n * Specifies the density of the user assistance presentation. It can be set to:\n * <ul>\n * <li><code>'efficient'</code>: Show inline and reserve space to prevent layout reflow when user\n * assistance text is displayed.</li>\n * <li><code>'reflow'</code>: Show inline. Layout will reflow when text is displayed.</li>\n * </ul>\n */\n userAssistanceDensity?: InlineUserAssistanceProps['userAssistanceDensity'];\n /**\n * Specifies the keys, data, and optional metadata for the selected values.\n */\n valueItems?: Item<K, D>[];\n /**\n * The style variant of the component.\n */\n variant?: TextFieldInputProps['variant'];\n /**\n * The type of virtual keyboard to display for entering a value on mobile browsers.\n * This property has no effect on desktop browsers.\n */\n virtualKeyboard?: 'auto' | 'email' | 'number' | 'search' | 'tel' | 'text' | 'url';\n /**\n * Callback invoked when the user commits the selected values.\n *\n * The function should set a new array as the <code>valueItems</code> property.\n */\n onCommit: (detail: ValueUpdateDetail<Set<K>>) => void;\n /**\n * Callback function to trigger loading data for the dropdown list, which may or may not be\n * filtered by user entered search text.\n *\n * The function should set a new <code>DataState</code> as the <code>data</code> property.\n */\n onFilter?: ({ searchText }: { searchText?: string }) => void;\n /**\n * Callback function to handle when the viewport of the dropdown list has changed, for example\n * by scrolling, including the case where the user scrolls to the end of the list and there are\n * more items to load.\n *\n * The function should set a new <code>DataState</code> for the specified range as the\n * <code>data</code> property.\n */\n onLoadRange?: ComponentProps<typeof ListView>['onLoadRange'];\n};\n\n/**\n * A SelectMultiple is a dropdown list that supports multiple selection and search filtering.\n */\nexport const SelectMultiple = forwardRef(\n <K extends string | number, D extends Record<string, any>>(\n {\n ariaDescribedBy,\n assistiveText,\n data: propData,\n helpSourceLink,\n helpSourceText,\n isDisabled: propIsDisabled,\n isLoading: propIsLoading,\n isReadonly: propIsReadonly,\n isRequired,\n isRequiredShown,\n itemText,\n label,\n labelEdge: propLabelEdge,\n labelStartWidth: propLabelStartWidth,\n messages,\n onCommit,\n onFilter,\n onLoadRange: propOnLoadRange,\n placeholder,\n textAlign: propTextAlign,\n userAssistanceDensity: propUserAssistanceDensity,\n valueItems,\n variant = 'default',\n virtualKeyboard\n }: Props<K, D>,\n ref?: Ref<FocusableHandle>\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 {\n enabledElementRef,\n focusProps,\n isFocused: origIsFocused,\n readonlyElementRef\n } = useFocusableTextField<HTMLInputElement, HTMLDivElement>({ isDisabled, isReadonly, ref });\n\n const {\n collectionProps,\n data,\n dropdownArrowEventHandlers,\n dropdownEventHandlers,\n dropdownRef,\n hasSelectedValuesCount,\n inputEventHandlers,\n isDropdownAbove,\n isDropdownOpen,\n isDropdownSelectedOnlyView,\n isFocused,\n isUserFiltering,\n mainFieldRef,\n mouseProps,\n onLoadRange,\n searchText,\n selectedValuesCountProps,\n userInput\n } = useSelectMultiple<K, D>({\n data: propData,\n inputRef: enabledElementRef as MutableRef<HTMLInputElement>,\n isDisabled,\n isFocused: origIsFocused,\n isReadonly,\n onCommit,\n onFilter,\n onLoadRange: propOnLoadRange,\n valueItems\n });\n\n // The incoming propIsLoading tells us that we are in a loading state, but we don't want to\n // show the loading indicator until after a delay, because showing it immediately could result\n // in unwanted flashing. The isLoading var below will be set to true by useLoadingIndicatorTimer\n // after the delay, when the timer expires, at which point we should show the loading indicator.\n // If propIsLoading is set to false before the timer expires, then the timer will be cancelled\n // and no loading indicator will be shown.\n // (ListView detects its loading state by checking data === null. While it would be nice for\n // us to be consistent and check valueItems === null, we need to use a separate isLoading prop.\n // If valueItems === null triggers our loading state, then the selections in the dropdown\n // are cleared for that period of time, which is undesirable.)\n const isLoading = useLoadingIndicatorTimer(propIsLoading ?? false);\n\n const {\n baseId,\n formFieldContext,\n inputProps,\n labelProps,\n textFieldProps,\n userAssistanceProps\n } = useTextField({\n ariaDescribedBy,\n isDisabled,\n isFocused,\n isLoading,\n isReadonly,\n labelEdge,\n messages,\n styleVariant: variant,\n value: valueItems !== undefined && valueItems.length > 0 ? true : undefined\n });\n\n const dropdownId = `${baseId}-dropdown`;\n\n const displayValue = useDisplayValues(itemText, valueItems);\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\n const inlineUserAssistance =\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\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n\n if (isReadonly) {\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <ReadonlyTextField\n role=\"presentation\"\n inlineUserAssistance={inlineUserAssistance}\n onBlur={focusProps.onfocusout}\n onFocus={focusProps.onfocusin}\n {...fieldLabelProps}>\n <ReadonlyTextFieldInput\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={labelProps.id}\n as=\"div\"\n elementRef={readonlyElementRef}\n hasInsideLabel={label !== undefined && labelEdge === 'inside'}\n textAlign={textAlign}\n value={displayValue}\n />\n </ReadonlyTextField>\n </FormFieldContext.Provider>\n );\n }\n\n const isDataFetched = data !== undefined && data !== null && !isBeforeDataFetch<K, D>(data);\n const hasInsideLabel = labelComp !== undefined && labelEdge === 'inside';\n const liveRegionText =\n isDropdownOpen && isDataFetched\n ? data?.totalSize === 0\n ? translations.select_noMatchesFound()\n : data?.totalSize === 1\n ? translations.select_oneMatchFound()\n : data?.sizePrecision === 'exact'\n ? translations.select_sizeMatchesFound({ TOTAL_SIZE: `${data?.totalSize}` })\n : translations.select_sizeOrMoreMatchesFound({ TOTAL_SIZE: `${data?.totalSize}` })\n : '';\n\n const mainContent = (\n <Fragment>\n <TextFieldInput\n ariaAutoComplete=\"list\"\n ariaControls={dropdownId}\n ariaExpanded={isDropdownOpen}\n ariaLabel={ariaLabel}\n autoComplete=\"off\"\n hasInsideLabel={hasInsideLabel}\n inputRef={enabledElementRef}\n isRequired={isRequired}\n // onCommit={handleCommit}\n {...inputEventHandlers}\n placeholder={placeholder}\n role=\"combobox\"\n spellcheck={false}\n textAlign={textAlign}\n type={isMobile() ? (virtualKeyboard === 'auto' ? 'search' : virtualKeyboard) : undefined}\n value={isUserFiltering ? userInput : displayValue}\n {...inputProps}\n />\n <LiveRegion>{liveRegionText}</LiveRegion>\n </Fragment>\n );\n\n const dropdownArrow = (\n <DropdownArrow\n isDisabled={isDisabled}\n size={hasInsideLabel ? 'md' : 'sm'}\n {...dropdownArrowEventHandlers}\n />\n );\n const selectedValuesCount = valueItems?.length;\n const endContent = isLoading ? undefined : !hasSelectedValuesCount ? (\n dropdownArrow\n ) : (\n <Flex align=\"center\" justify=\"center\" gap={[0, '1x']}>\n <SelectedValuesCount\n accessibleLabel={label}\n count={selectedValuesCount}\n isDisabled={isDisabled}\n isSelected={isDropdownSelectedOnlyView}\n {...selectedValuesCountProps}\n />\n {dropdownArrow}\n </Flex>\n );\n\n const dropdownInlineUserAssistance =\n isDropdownOpen &&\n !isDropdownAbove &&\n !isDisabled &&\n !isReadonly &&\n (assistiveText || helpSourceLink) &&\n (userAssistanceDensity === 'efficient' || userAssistanceDensity === 'reflow') ? (\n <DropdownUserAssistance\n assistiveText={assistiveText}\n fieldLabel={label}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n userAssistanceDensity={userAssistanceDensity}\n />\n ) : undefined;\n\n const isEmptyResults = isDataFetched && data?.totalSize === 0;\n const dropdownListContent = isEmptyResults ? (\n <EmptyResults />\n ) : (\n <DefaultList<K, D>\n {...collectionProps}\n accessibleSummary={label ?? ''}\n data={data}\n itemText={itemText}\n onLoadRange={onLoadRange}\n searchText={\n isDropdownSelectedOnlyView ? undefined : isUserFiltering ? searchText : undefined\n }\n selectionMode=\"multiple\"\n />\n );\n\n return (\n <Fragment>\n <FormFieldContext.Provider value={formFieldContext}>\n <TextField\n endContent={endContent}\n inlineUserAssistance={inlineUserAssistance}\n mainContent={mainContent}\n mainFieldRef={mainFieldRef}\n onBlur={focusProps?.onfocusout}\n onFocus={focusProps?.onfocusin}\n {...textFieldProps}\n {...fieldLabelProps}\n {...mouseProps}></TextField>\n </FormFieldContext.Provider>\n <Dropdown\n dropdownRef={dropdownRef}\n id={dropdownId}\n isOpen={\n isDropdownOpen &&\n data !== undefined &&\n (data === null || data.totalSize > 0 || isBeforeDataFetch<K, D>(data) || isEmptyResults)\n }\n anchorRef={mainFieldRef}\n {...dropdownEventHandlers}>\n <DropdownList\n hasBottomGap={dropdownInlineUserAssistance === undefined}\n isLoading={data === null}>\n {dropdownListContent}\n </DropdownList>\n {dropdownInlineUserAssistance}\n </Dropdown>\n </Fragment>\n );\n }\n);\n"],"names":["SelectedValuesCount","_a","accessibleLabel","count","onKeyDown","onKeyUp","onMouseDown","passThroughProps","__rest","translations","useTranslationBundle","instructions","selectMultiple_showSelectedValues","accLabel","ninetyNinePlus","selectMultiple_countPlus","COUNT","chipCount","selectMultiple_valuesSelected","_jsx","Object","assign","class","children","jsx","Chip","label","useDisplayValues","itemText","valueItems","separator","plural_separator","concatenatedDisplayValues","useMemo","undefined","displayValues","selectedItems","arValues","values","mapFunc","itemContext","renderItemText","mappedArray","map","Set","_createDisplayValues","concatDisplayValues","Array","from","join","_concatDisplayValues","useSelectMultiple","data","propData","inputRef","isDisabled","isFocused","propIsFocused","isReadonly","onCommit","onFilter","onLoadRange","propOnLoadRange","isDropdownSelectedOnlyView","setDropdownSelectedOnlyView","useState","selectedValuesCount","length","hasSelectedValuesCount","selectedOnlyDataProps","offset","totalSize","sizePrecision","valueItem","metadata","key","useSelectedOnlyData","currentRow","dropdownRef","handleDropdownArrowClick","handleDropdownAutoDismiss","baseHandleDropdownAutoDismiss","handleDropdownPosition","handleInput","handleMainFieldKeyDown","baseHandleMainFieldKeyDown","handleMainFieldKeyUp","handleUpDownArrowKeys","isDropdownAbove","isDropdownOpen","isUserFiltering","mainFieldRef","onCurrentKeyChange","searchText","selectedKeys","setCurrentRow","setDropdownOpen","setSelectedKeys","userInput","useSelectCommon","removeDropdown","useCallback","_b","current","parentElement","removeChild","myHandleDropdownAutoDismiss","event","type","keyboardEvent","code","KEYS","TAB","shiftKey","focus","chipRef","myHandleMainFieldKeyDown","isControlOrFunctionKey","stopPropagation","useEffect","keys","reduce","accumKeys","currentItem","add","useRef","querySelector","handleSelectedValuesCountKeyDown","UP","DOWN","preventDefault","ESC","ENTER","handleSelectedValuesCountKeyUp","handleSelectedValuesCountMouseDown","handleSelectedValuesCountToggle","detail","value","onSelectionChange","newKeys","previousValue","dropdownEventHandlers","mergeProps","onAutoDismiss","onPosition","inputEventHandlers","onInput","rowKey","collectionProps","currentKey","dropdownArrowEventHandlers","onClick","mouseProps","selectedValuesCountProps","onToggle","SelectMultiple","forwardRef","ariaDescribedBy","assistiveText","helpSourceLink","helpSourceText","propIsDisabled","isLoading","propIsLoading","propIsReadonly","isRequired","isRequiredShown","labelEdge","propLabelEdge","labelStartWidth","propLabelStartWidth","messages","placeholder","textAlign","propTextAlign","userAssistanceDensity","propUserAssistanceDensity","variant","virtualKeyboard","ref","isFormDisabled","isFormReadonly","formLabelEdge","formLabelStartWidth","formTextAlign","formUserAssistanceDensity","useFormContext","enabledElementRef","focusProps","origIsFocused","readonlyElementRef","useFocusableTextField","useLoadingIndicatorTimer","baseId","formFieldContext","inputProps","labelProps","textFieldProps","userAssistanceProps","useTextField","styleVariant","dropdownId","displayValue","labelComp","Label","fieldLabelProps","ariaLabel","inlineUserAssistance","InlineUserAssistance","fieldLabel","FormFieldContext","Provider","ReadonlyTextField","role","onBlur","onfocusout","onFocus","onfocusin","ReadonlyTextFieldInput","ariaLabelledBy","id","as","elementRef","hasInsideLabel","isDataFetched","isBeforeDataFetch","liveRegionText","select_noMatchesFound","select_oneMatchFound","select_sizeMatchesFound","TOTAL_SIZE","select_sizeOrMoreMatchesFound","mainContent","_jsxs","jsxs","Fragment","TextFieldInput","ariaAutoComplete","ariaControls","ariaExpanded","autoComplete","spellcheck","isMobile","LiveRegion","dropdownArrow","DropdownArrow","size","endContent","Flex","align","justify","gap","isSelected","dropdownInlineUserAssistance","DropdownUserAssistance","isEmptyResults","dropdownListContent","EmptyResults","DefaultList","accessibleSummary","selectionMode","TextField","Dropdown","isOpen","anchorRef","DropdownList","hasBottomGap"],"mappings":"mqBAuBA,SAAAA,EAAAC,GAAoC,IAAAC,gBAAAA,EAAAC,MAAAA,EAAA,EAAAC,UAAAA,EAAAC,QAAAA,EAAAC,YAAAA,GAAAL,EAAAM,EAAAC,EAAAA,OAAAP,EAAA,CAAA,kBAAA,QAAA,YAAA,UAAA,gBAQlC,MAAAQ,EAAAC,uBAAA,4BACAC,EAAAF,EAAAG,oCACAC,EAAAX,EAAA,GAAAA,MAAA,GAEAY,EAAAL,EAAAM,yBAAA,CAAAC,MAAA,OAEAC,EAAAd,EAAA,GAAA,GAAAW,IAAA,GAAAX,aAGAM,EAAAS,8BAAA,6BAIA,OAAAC,MAAA,MAAAC,OAAAC,OAAA,CAAAC,MAtCF,SAsCElB,UAAAA,EAAAC,QAAAA,EAAAC,YAAAA,GAAA,CAAAiB,SAAAJ,EAAAK,IAAAC,OAAAL,OAAAC,OAAA,CAAAnB,gBAAAwB,GAAAnB,EAAA,CAAAgB,SAAAN,QC7Bc,SAAAU,EACdC,EACAC,GAEA,MACMC,EADepB,uBAAiC,4BACvBqB,mBAGzBC,EAA4BC,EAAAA,QAAQ,KACxC,QAAmBC,IAAfL,EACF,MAAO,GAET,MAAMM,EAYV,SAAoCP,EAA8BQ,GAChE,MAAMC,EAAWD,EAAgB,IAAIA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A1BgB,IAAmE,WAA1BA,QAQtC7I,EAPFf,EAAAA,IAAC2O,EAAsBA,wBACrBhG,cAAeA,EACfmD,WAAYvL,EACZqI,eAAgBA,EAChBC,eAAgBA,EAChBe,sBAAuBA,KAIvBgF,GAAiB/B,IAAqC,KAApB5K,MAAAA,QAAI,EAAJA,GAAMmB,WACxCyL,GAAsBD,GAC1B5O,EAAAK,IAACyO,EAAYA,aAAA,IAEb9O,EAAAA,IAAC+O,EAAWA,YACN9O,OAAAC,OAAA,GAAA+H,GACJ,CAAA+G,kBAAmBzO,MAAAA,EAAAA,EAAS,GAC5B0B,KAAMA,GACNxB,SAAUA,EACViC,YAAaA,GACbgC,WACE9B,QAA6B7B,EAAYwD,GAAkBG,QAAa3D,EAE1EkO,cAAc,cAIlB,OACE3B,EAAAC,KAACC,EAAQA,SAAA,CAAApN,SAAA,CACPJ,MAAC+L,EAAgBA,iBAACC,SAAQ/L,OAAAC,OAAA,CAACoH,MAAOyD,IAChC,CAAA3K,SAAAJ,EAAAA,IAACkP,EAASA,UACRjP,OAAAC,OAAA,CAAAkO,WAAYA,GACZxC,qBAAsBA,GACtByB,YAAaA,GACb7I,aAAcA,GACd2H,OAAQ1B,MAAAA,QAAU,EAAVA,GAAY2B,WACpBC,QAAS5B,MAAAA,UAAAA,GAAY6B,WACjBpB,GACAQ,GACArD,QAERiF,EAAAA,KAAC6B,EAAAA,wBACCxL,YAAaA,GACb8I,GAAInB,GACJ8D,OACE9K,SACSvD,IAATkB,KACU,OAATA,IAAiBA,GAAKmB,UAAY,GAAK0J,EAAiBA,kBAAO7K,KAAS2M,IAE3ES,UAAW7K,IACPkD,cACJ1H,EAAAA,IAACsP,EAAYA,4BACXC,kBAA+CxO,IAAjC2N,GACd3F,UAAoB,OAAT9G,cACV4M,MAEFH"}
|
|
1
|
+
{"version":3,"file":"SelectMultiple-f9dc64be.js","sources":["../../src/UNSAFE_SelectMultiple/SelectedValuesCount.tsx","../../src/UNSAFE_SelectMultiple/useDisplayValues.ts","../../src/UNSAFE_SelectMultiple/useSelectMultiple.ts","../../src/UNSAFE_SelectMultiple/useSelectedOnlyData.ts","../../src/UNSAFE_SelectMultiple/SelectMultiple.tsx"],"sourcesContent":["import { ComponentProps } from 'preact';\nimport { cssProps } from '@oracle/oraclejet-cssprops';\nimport { Chip } from '../UNSAFE_Chip';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '../resources/nls/bundle';\n\nconst rootStyles = cssProps`${{\n display: 'inline-flex'\n}}`;\n\ntype PickedPropsFromChip = Pick<\n ComponentProps<typeof Chip>,\n 'accessibleLabel' | 'isDisabled' | 'isSelected' | 'onToggle'\n>;\n\ntype Props = PickedPropsFromChip & {\n count?: number;\n onKeyDown?: (event: KeyboardEvent) => void;\n onKeyUp?: (event: KeyboardEvent) => void;\n onMouseDown?: (event: MouseEvent) => void;\n};\n\n// This component renders a badge showing the number of selected values\nexport function SelectedValuesCount({\n accessibleLabel,\n count = 0,\n onKeyDown,\n onKeyUp,\n onMouseDown,\n ...passThroughProps\n}: Props) {\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const instructions = translations.selectMultiple_showSelectedValues();\n const accLabel = accessibleLabel ? `${accessibleLabel}. ` : '';\n\n const ninetyNinePlus = translations.selectMultiple_countPlus({ COUNT: `99` });\n // The Chip shows the number of values selected or 99+ if the number is over 99.\n const chipCount = count > 99 ? `${ninetyNinePlus}` : `${count}`;\n // The screenreader will hear what the number of selected values is along with instructions\n // like Click to see the full list.\n const valuesSelectedText = translations.selectMultiple_valuesSelected({\n VALUE_COUNT: `${count}`\n });\n const label = `${accLabel}${valuesSelectedText} ${instructions}`;\n return (\n <div class={rootStyles} onKeyDown={onKeyDown} onKeyUp={onKeyUp} onMouseDown={onMouseDown}>\n <Chip accessibleLabel={label} {...passThroughProps}>\n {chipCount}\n </Chip>\n </div>\n );\n}\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 { useMemo } from 'preact/hooks';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '../resources/nls/bundle';\nimport { Item } from '../utils/UNSAFE_dataProvider';\nimport { ItemTextType } from '../utils/UNSAFE_selectUtils';\nimport { renderItemText } from '../PRIVATE_SelectCommon';\n\nexport function useDisplayValues<K, D>(\n itemText: ItemTextType<K, D>,\n valueItems?: Item<K, D>[]\n): string {\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const separator = translations.plural_separator();\n\n // create the text displayed in the field from the selected values\n const concatenatedDisplayValues = useMemo(() => {\n if (valueItems === undefined) {\n return '';\n }\n const displayValues = _createDisplayValues(itemText, valueItems);\n const concatDisplayValues = _concatDisplayValues(displayValues, separator);\n return concatDisplayValues;\n }, [valueItems, itemText]);\n\n return concatenatedDisplayValues;\n}\n\nfunction _concatDisplayValues(displayValues: Set<string>, separator: string) {\n return Array.from(displayValues.values()).join(separator);\n}\n\nfunction _createDisplayValues<K, D>(itemText: ItemTextType<K, D>, selectedItems?: Item<K, D>[]) {\n const arValues = selectedItems ? [...selectedItems?.values()] : [];\n const mapFunc = (itemContext: Item<K, D>) => renderItemText(itemContext, itemText);\n const mappedArray = arValues.map(mapFunc);\n return new Set<string>(mappedArray as string[]);\n}\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 { ComponentProps } from 'preact';\nimport { MutableRef, useCallback, useEffect, useMemo, useRef, useState } from 'preact/hooks';\nimport { DataState, SelectionDetail } from '../UNSAFE_Collection';\nimport { Item } from '../utils/UNSAFE_dataProvider';\nimport { mergeProps } from '../utils/UNSAFE_mergeProps';\nimport { ValueUpdateDetail } from '../utils/UNSAFE_valueUpdateDetail';\nimport { isControlOrFunctionKey, KEYS, useSelectCommon } from '../PRIVATE_SelectCommon';\nimport { SelectMultiple } from './SelectMultiple';\nimport { SelectedValuesCount } from './SelectedValuesCount';\nimport { useSelectedOnlyData } from './useSelectedOnlyData';\n\ntype PickedPropsFromSelectMultiple = Pick<\n ComponentProps<typeof SelectMultiple>,\n 'isDisabled' | 'isReadonly' | 'onFilter' | 'onLoadRange'\n>;\ntype UseSelectMultipleProps<K, D> = PickedPropsFromSelectMultiple & {\n data?: DataState<K, D> | null;\n inputRef: MutableRef<HTMLInputElement>;\n isFocused?: boolean;\n onCommit: (detail: ValueUpdateDetail<Set<K>>) => void;\n valueItems?: Item<K, D>[];\n};\n\ntype SelectedValuesCountToggleType = ComponentProps<typeof SelectedValuesCount>['onToggle'];\ntype SelectedValuesCountToggleDetailType = Parameters<\n Exclude<SelectedValuesCountToggleType, undefined>\n>[0];\n\n/**\n * Hook that manages SelectMultiple state and behavior. This hook creates state variables and\n * event listeners, returning properties to apply to components internally rendered by\n * SelectMultiple, as well as state information.\n *\n * @param data Specifies data for the dropdown list.\n * @param inputRef Ref to the input element.\n * @param isDisabled Specifies whether the component is disabled.\n * @param isFocused Specifies whether the component has focus.\n * @param isReadonly Specifies whether the component is readonly.\n * @param onCommit Callback invoked when the selected values are committed.\n * @param onFilter Callback function to trigger loading data for the dropdown list,\n * which may or may not be filtered by user entered text.\n * @param onLoadRange Callback function to handle when the viewport of the dropdown list has\n * changed, including the case where the user scrolls to the end of the list and there are more\n * items to load. The function should set a new DataState on the component for the specified\n * range.\n * @param valueItems Specifies the keys, data, and optional metadata for the selected values.\n *\n * @returns Properties to apply to internal components that SelectMultiple renders, and component\n * state.\n */\nexport function useSelectMultiple<K, D>({\n data: propData,\n inputRef,\n isDisabled,\n isFocused: propIsFocused,\n isReadonly,\n onCommit,\n onFilter,\n onLoadRange: propOnLoadRange,\n valueItems\n}: UseSelectMultipleProps<K, D>) {\n const [isDropdownSelectedOnlyView, setDropdownSelectedOnlyView] = useState(false);\n\n const selectedValuesCount = valueItems?.length;\n const hasSelectedValuesCount =\n (selectedValuesCount !== undefined && selectedValuesCount > 0) || isDropdownSelectedOnlyView;\n\n // show only the selected values in the dropdown if isDropdownSelectedOnlyView is true,\n // otherwise show the full data set\n // TODO: We may need to revisit this for hierarchical data because the selected valueItems\n // won't have any information about ancestor group nodes, and we should probably show selected\n // items in context within the hierarchy. Also, the order of the items in the selected-only\n // view right now follows the order in which they were selected, not the order in which they\n // would appear in the full data set. This may be more of a problem for hierarchical data\n // if items have to appear within the correct group ancestors. We may need to move\n // construction of the selected-only DataState out of the component to the consuming code,\n // and take a callback that we can call as a notification that the app should provide this\n // special DataState to us (kind of like onLoadRange). Note that we may also need an\n // enhancement on the DataProvider API to be able to specify a filterCriterion to filter by\n // the selected keys through a fetchFirst call, because a regular fetchByKeys call would\n // still return results in the order in which the keys were specified and would not return\n // data for the ancestor group nodes.\n const selectedOnlyDataProps = useSelectedOnlyData<K, D>({\n isDropdownSelectedOnlyView,\n valueItems\n });\n const data = isDropdownSelectedOnlyView ? selectedOnlyDataProps.data : propData;\n const onLoadRange = isDropdownSelectedOnlyView\n ? selectedOnlyDataProps.onLoadRange\n : propOnLoadRange;\n\n const {\n currentRow,\n dropdownRef,\n handleDropdownArrowClick,\n handleDropdownAutoDismiss: baseHandleDropdownAutoDismiss,\n handleDropdownPosition,\n handleInput,\n handleMainFieldKeyDown: baseHandleMainFieldKeyDown,\n handleMainFieldKeyUp,\n handleUpDownArrowKeys,\n isDropdownAbove,\n isDropdownOpen,\n isFocused,\n isUserFiltering,\n mainFieldRef,\n onCurrentKeyChange,\n onMouseDown,\n searchText,\n selectedKeys,\n setCurrentRow,\n setDropdownOpen,\n setSelectedKeys,\n userInput\n } = useSelectCommon<K, D>({\n data,\n inputRef,\n isFocused: propIsFocused,\n onFilter\n });\n\n const removeDropdown = useCallback(() => {\n dropdownRef.current?.parentElement?.removeChild(dropdownRef.current);\n }, []);\n\n const myHandleDropdownAutoDismiss = useCallback(\n (event?: Event) => {\n if (isDropdownOpen) {\n if (event?.type === 'keydown') {\n const keyboardEvent = event as KeyboardEvent;\n switch (keyboardEvent.code) {\n case KEYS.TAB:\n // Put focus on an element in the main field, but don't kill the event, so that\n // the browser can naturally transfer focus to the next focusable item relative\n // to the element in the main field.\n if (keyboardEvent.shiftKey || !hasSelectedValuesCount) {\n inputRef.current?.focus();\n } else {\n chipRef.current?.focus();\n }\n\n // Remove the dropdown immediately, without waiting for a rerender based on changing\n // state, so that the open dropdown cannot get focus when the browser handles the\n // Tab key.\n removeDropdown();\n break;\n default:\n break;\n }\n }\n }\n },\n [hasSelectedValuesCount, isDropdownOpen]\n );\n\n const myHandleMainFieldKeyDown = useCallback(\n (event: KeyboardEvent) => {\n // const target = event.target as HTMLElement;\n // ignore control key and function key\n if (isControlOrFunctionKey(event)) {\n return;\n }\n\n switch (event.code) {\n case KEYS.TAB:\n if (isDropdownOpen && (event.shiftKey || (!hasSelectedValuesCount && !event.shiftKey))) {\n // Remove the dropdown immediately, without waiting for a rerender based on changing\n // state, so that the open dropdown cannot get focus when the browser handles the\n // Tab key.\n removeDropdown();\n\n setDropdownOpen(false);\n }\n\n // JET-53183 - core pack compat: stop propagation of handled events\n // we don't want a parent collection component to jump focus to the next cell and skip\n // over the selected values count chip\n if (hasSelectedValuesCount && !event.shiftKey) {\n event.stopPropagation();\n }\n break;\n\n default:\n break;\n }\n },\n [hasSelectedValuesCount, isDropdownOpen]\n );\n\n // when the array of valueItems changes, pull out the new set of selectedKeys\n useEffect(() => {\n const keys = valueItems?.reduce((accumKeys, currentItem) => {\n accumKeys.add(currentItem.key);\n return accumKeys;\n }, new Set<K>());\n setSelectedKeys(keys);\n }, [valueItems]);\n\n const chipRef = useRef<HTMLElement | null>(null);\n useEffect(() => {\n chipRef.current =\n hasSelectedValuesCount && mainFieldRef.current\n ? mainFieldRef.current.querySelector('[role=\"switch\"]')\n : null;\n }, [hasSelectedValuesCount, isDisabled, isReadonly]);\n\n const handleSelectedValuesCountKeyDown = useCallback(\n (event: KeyboardEvent) => {\n switch (event.code) {\n case KEYS.TAB:\n if (isDropdownOpen && !event.shiftKey) {\n // Remove the dropdown immediately, without waiting for a rerender based on changing\n // state, so that the open dropdown cannot get focus when the browser handles the\n // Tab key.\n removeDropdown();\n\n setDropdownOpen(false);\n }\n\n // JET-53183 - core pack compat: stop propagation of handled events\n // we don't want a parent collection component to jump focus to the next cell and skip\n // over the input\n if (event.shiftKey) {\n event.stopPropagation();\n }\n break;\n\n case KEYS.UP:\n case KEYS.DOWN:\n // prevent the page from scrolling\n event.preventDefault();\n break;\n\n case KEYS.ESC:\n if (isDropdownOpen) {\n setDropdownOpen(false);\n\n event.preventDefault();\n\n // JET-53183 - core pack compat: stop propagation of handled events\n // we don't want a parent collection component to stop editing the row when we close\n // the dropdown\n event.stopPropagation();\n }\n break;\n\n case KEYS.ENTER:\n // JET-53183 - core pack compat: stop propagation of handled events\n // we don't want a parent collection component to move focus to the next row when\n // we toggle between the full and selected only list in the dropdown\n event.stopPropagation();\n break;\n\n default:\n break;\n }\n },\n [isDropdownOpen]\n );\n\n const handleSelectedValuesCountKeyUp = useCallback(\n (event: KeyboardEvent) => {\n switch (event.code) {\n case KEYS.UP:\n case KEYS.DOWN:\n handleUpDownArrowKeys(event);\n break;\n\n default:\n break;\n }\n },\n [handleUpDownArrowKeys]\n );\n\n const handleSelectedValuesCountMouseDown = useCallback((event: MouseEvent) => {\n // call preventDefault so that the dropdown doesn't open showing the full list on mousedown\n // on the chip before switching to show only the selected values on mouseup when the click\n // is handled\n event.preventDefault();\n // explicitly focus the input because it won't happen naturally due to preventDefault()\n inputRef.current?.focus();\n }, []);\n\n const handleSelectedValuesCountToggle = useCallback(\n (detail: SelectedValuesCountToggleDetailType) => {\n if (!isDropdownOpen) {\n setDropdownOpen(true);\n }\n\n const value = detail.value ?? false;\n if (value !== isDropdownSelectedOnlyView) {\n setDropdownSelectedOnlyView(value);\n }\n },\n [isDropdownOpen, isDropdownSelectedOnlyView]\n );\n\n // when the dropdown closes, automatically turn off isDropdownSelectedOnlyView\n useEffect(() => {\n if (!isDropdownOpen && isDropdownSelectedOnlyView) {\n setDropdownSelectedOnlyView(false);\n }\n }, [isDropdownOpen, isDropdownSelectedOnlyView]);\n\n const onSelectionChange = useCallback(\n (detail: SelectionDetail<K>) => {\n const newKeys = new Set(detail.value.keys?.values());\n // update the selectedKeys so that the selection visual state of the collection\n // updates immediately while waiting for new valueItems to be set\n setSelectedKeys(newKeys);\n // call the onCommit callback so that the consuming code can update the valueItems\n onCommit?.({ value: newKeys, previousValue: selectedKeys });\n },\n [onCommit, selectedKeys]\n );\n\n const dropdownEventHandlers = useMemo(() => {\n return mergeProps(\n {\n onAutoDismiss: baseHandleDropdownAutoDismiss,\n onPosition: handleDropdownPosition\n },\n { onAutoDismiss: myHandleDropdownAutoDismiss }\n );\n }, [baseHandleDropdownAutoDismiss, handleDropdownPosition, myHandleDropdownAutoDismiss]);\n\n const inputEventHandlers = useMemo(() => {\n return mergeProps(\n {\n onInput: handleInput,\n onKeyDown: baseHandleMainFieldKeyDown,\n onKeyUp: handleMainFieldKeyUp\n },\n { onKeyDown: myHandleMainFieldKeyDown }\n );\n }, [baseHandleMainFieldKeyDown, handleInput, handleMainFieldKeyUp, myHandleMainFieldKeyDown]);\n\n useEffect(() => {\n // clear the current item when the dropdown opens\n if (isDropdownOpen) {\n setCurrentRow({ rowKey: undefined });\n }\n }, [isDropdownOpen]);\n\n return {\n collectionProps: {\n currentKey: currentRow.rowKey,\n onCurrentKeyChange,\n onSelectionChange,\n selectedKeys\n },\n data,\n dropdownArrowEventHandlers: {\n onClick: handleDropdownArrowClick\n },\n dropdownEventHandlers,\n dropdownRef,\n hasSelectedValuesCount,\n inputEventHandlers,\n inputRef,\n isDropdownAbove,\n isDropdownOpen,\n isDropdownSelectedOnlyView,\n isFocused,\n isUserFiltering,\n mainFieldRef,\n mouseProps: isDisabled || isReadonly ? {} : { onMouseDown },\n onLoadRange,\n searchText,\n selectedValuesCountProps: {\n onKeyDown: handleSelectedValuesCountKeyDown,\n onKeyUp: handleSelectedValuesCountKeyUp,\n onMouseDown: handleSelectedValuesCountMouseDown,\n onToggle: handleSelectedValuesCountToggle\n },\n userInput\n };\n}\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 { useMemo } from 'preact/hooks';\nimport { DataState } from 'src/UNSAFE_Collection';\nimport { Item } from '../utils/UNSAFE_dataProvider';\n\ntype Props<K, D> = {\n isDropdownSelectedOnlyView?: boolean;\n valueItems?: Item<K, D>[];\n};\n\n/**\n * Get the data to show in the dropdown for the selected-only view.\n * @param isDropdownSelectedOnlyView Whether the component is showing only selected\n * values in the dropdown: true if so, false if not.\n * @param valueItems The keys, data, and optional metadata for the selected values.\n * @returns An object with data and onLoadRange properties that can be passed on to the\n * list in the dropdown.\n */\nexport function useSelectedOnlyData<K, D>({ isDropdownSelectedOnlyView, valueItems }: Props<K, D>) {\n // Need to specify type of useMemo here so the return statement below doesn't show a type error\n // related to the sizePrecision prop on DataState:\n // Type 'string' is not assignable to type '\"exact\" | \"atLeast\"'.\n // Note that useMemo here only depends on isDropdownSelectedOnlyView because we only want to\n // recalculate when that value changes. While the selected only view is shown, we want the\n // data set to remain static with the set of valueItems as of the time the view was changed to\n // only show selected items so that the user can deselect and reselect items.\n // If useMemo depended on the valueItems too, then the data set would change as the user\n // deselected items, which means those items would disappear from the dropdown and the user\n // could not reselect them.\n const selectedOnlyViewDataState = useMemo<DataState<K, D> | undefined>(() => {\n return !isDropdownSelectedOnlyView || !valueItems || valueItems.length === 0\n ? undefined\n : {\n offset: 0,\n totalSize: valueItems?.length ?? 0,\n sizePrecision: 'exact',\n data: valueItems.map((valueItem: Item<K, D>) => {\n return { data: valueItem.data, metadata: valueItem.metadata ?? { key: valueItem.key } };\n })\n };\n }, [isDropdownSelectedOnlyView]);\n\n return {\n data: selectedOnlyViewDataState,\n onLoadRange: undefined\n };\n}\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 { ComponentProps, Fragment, Ref } from 'preact';\nimport { forwardRef } from 'preact/compat';\nimport { MutableRef } from 'preact/hooks';\nimport { FocusableHandle, useFocusableTextField } from '../hooks/UNSAFE_useFocusableTextField';\nimport { useFormContext } from '../hooks/UNSAFE_useFormContext';\nimport { FormFieldContext } from '../hooks/UNSAFE_useFormFieldContext';\nimport { useLoadingIndicatorTimer } from '../hooks/UNSAFE_useLoadingIndicatorTimer';\nimport { useTextField } from '../hooks/UNSAFE_useTextField';\nimport { DataState } from '../UNSAFE_Collection';\nimport { Flex } from '../UNSAFE_Flex';\nimport { Label } from '../UNSAFE_Label';\nimport { ListView } from '../UNSAFE_ListView';\nimport { LiveRegion } from '../UNSAFE_LiveRegion';\nimport {\n ReadonlyTextField,\n ReadonlyTextFieldInput,\n TextField,\n TextFieldInput\n} from '../UNSAFE_TextField';\nimport { InlineUserAssistance } from '../UNSAFE_UserAssistance';\nimport { Item } from '../utils/UNSAFE_dataProvider';\nimport { Size } from '../utils/UNSAFE_size';\nimport { ValueUpdateDetail } from '../utils/UNSAFE_valueUpdateDetail';\nimport {\n DefaultList,\n Dropdown,\n DropdownArrow,\n DropdownList,\n DropdownUserAssistance,\n EmptyResults,\n isBeforeDataFetch,\n isMobile\n} from '../PRIVATE_SelectCommon';\nimport { ItemTextType } from '../utils/UNSAFE_selectUtils';\nimport { SelectedValuesCount } from './SelectedValuesCount';\nimport { useDisplayValues } from './useDisplayValues';\nimport { useSelectMultiple } from './useSelectMultiple';\nimport { useTranslationBundle } from '../hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '../resources/nls/bundle';\n\ntype TextFieldInputProps = ComponentProps<typeof TextFieldInput>;\ntype InlineUserAssistanceProps = ComponentProps<typeof InlineUserAssistance>;\n\ntype Props<K extends string | number, D extends Record<string, any>> = {\n /**\n * The ID of an element (or space separated IDs of multiple elements) that\n * describes the input.\n */\n ariaDescribedBy?: TextFieldInputProps['ariaDescribedBy'];\n /**\n * Text to provide guidance to help the user understand what data to enter or select.\n */\n assistiveText?: InlineUserAssistanceProps['assistiveText'];\n /**\n * Specifies data for the dropdown list.\n *\n * Note that the <code>itemText</code> property allows for customizing the rendering\n * of each data item.\n */\n data?: DataState<K, D> | null;\n /**\n * Help source URL associated with the component.\n */\n helpSourceLink?: InlineUserAssistanceProps['helpSourceLink'];\n /**\n * Custom text to be rendered for the <code>helpSourceLink</code>.\n */\n helpSourceText?: InlineUserAssistanceProps['helpSourceText'];\n /**\n * Specifies whether the component is disabled.\n */\n isDisabled?: boolean;\n /**\n * Specifies whether the component is waiting for <code>valueItems</code> to load.\n * While loading, SelectMultiple will show the progressive loading indicator in the text field.\n */\n isLoading?: boolean;\n /**\n * Specifies whether the component is readonly.\n */\n isReadonly?: boolean;\n /**\n * Specifies for accessibility purposes whether a value is required.\n *\n * Setting this property to <code>false</code> means that a value is not required to be\n * selected by the user. Setting this property to <code>true</code> means that a value\n * is required to be selected by the user.\n */\n isRequired?: TextFieldInputProps['isRequired'];\n /**\n * Specifies whether to show an indicator on screen that a value is required, for example\n * before the user has selected a value.\n */\n isRequiredShown?: InlineUserAssistanceProps['isRequiredShown'];\n /**\n * Specifies how to get the text string to render for a data item.\n * This property can be set to either:\n * <ul>\n * <li>a string that specifies the name of a top level data attribute to render as text, or</li>\n * <li>a callback function that takes a properties object and returns the text string to\n * display.</li>\n * </ul>\n *\n * This text will be rendered for the selected <code>valueItems</code> of the component.\n * It will also be rendered for each item in the dropdown. When rendered for the\n * dropdown items, default matching search term highlighting will still be applied.\n */\n itemText: ItemTextType<K, D>;\n /**\n * Specifies the label associated with the field.\n */\n label: string;\n /**\n * Specifies where the label is positioned relative to the field.\n */\n labelEdge?: 'inside' | 'start' | 'top' | 'none';\n /**\n * Specifies the width of the label when <code>labelEdge</code> is <code>\"start\"</code>\n */\n labelStartWidth?: Size;\n /**\n * Messages to show on screen that are associated with the component.\n */\n messages?: InlineUserAssistanceProps['messages'];\n /**\n * A short hint to display before the user selects or enters a value.\n */\n placeholder?: TextFieldInputProps['placeholder'];\n /**\n * Specifies how to align text within the field.\n */\n textAlign?: TextFieldInputProps['textAlign'];\n /**\n * Specifies the density of the user assistance presentation. It can be set to:\n * <ul>\n * <li><code>'efficient'</code>: Show inline and reserve space to prevent layout reflow when user\n * assistance text is displayed.</li>\n * <li><code>'reflow'</code>: Show inline. Layout will reflow when text is displayed.</li>\n * </ul>\n */\n userAssistanceDensity?: InlineUserAssistanceProps['userAssistanceDensity'];\n /**\n * Specifies the keys, data, and optional metadata for the selected values.\n */\n valueItems?: Item<K, D>[];\n /**\n * The style variant of the component.\n */\n variant?: TextFieldInputProps['variant'];\n /**\n * The type of virtual keyboard to display for entering a value on mobile browsers.\n * This property has no effect on desktop browsers.\n */\n virtualKeyboard?: 'auto' | 'email' | 'number' | 'search' | 'tel' | 'text' | 'url';\n /**\n * Callback invoked when the user commits the selected values.\n *\n * The function should set a new array as the <code>valueItems</code> property.\n */\n onCommit: (detail: ValueUpdateDetail<Set<K>>) => void;\n /**\n * Callback function to trigger loading data for the dropdown list, which may or may not be\n * filtered by user entered search text.\n *\n * The function should set a new <code>DataState</code> as the <code>data</code> property.\n */\n onFilter?: ({ searchText }: { searchText?: string }) => void;\n /**\n * Callback function to handle when the viewport of the dropdown list has changed, for example\n * by scrolling, including the case where the user scrolls to the end of the list and there are\n * more items to load.\n *\n * The function should set a new <code>DataState</code> for the specified range as the\n * <code>data</code> property.\n */\n onLoadRange?: ComponentProps<typeof ListView>['onLoadRange'];\n};\n\n/**\n * A SelectMultiple is a dropdown list that supports multiple selection and search filtering.\n */\nexport const SelectMultiple = forwardRef(\n <K extends string | number, D extends Record<string, any>>(\n {\n ariaDescribedBy,\n assistiveText,\n data: propData,\n helpSourceLink,\n helpSourceText,\n isDisabled: propIsDisabled,\n isLoading: propIsLoading,\n isReadonly: propIsReadonly,\n isRequired,\n isRequiredShown,\n itemText,\n label,\n labelEdge: propLabelEdge,\n labelStartWidth: propLabelStartWidth,\n messages,\n onCommit,\n onFilter,\n onLoadRange: propOnLoadRange,\n placeholder,\n textAlign: propTextAlign,\n userAssistanceDensity: propUserAssistanceDensity,\n valueItems,\n variant = 'default',\n virtualKeyboard\n }: Props<K, D>,\n ref?: Ref<FocusableHandle>\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 {\n enabledElementRef,\n focusProps,\n isFocused: origIsFocused,\n readonlyElementRef\n } = useFocusableTextField<HTMLInputElement, HTMLDivElement>({ isDisabled, isReadonly, ref });\n\n const {\n collectionProps,\n data,\n dropdownArrowEventHandlers,\n dropdownEventHandlers,\n dropdownRef,\n hasSelectedValuesCount,\n inputEventHandlers,\n isDropdownAbove,\n isDropdownOpen,\n isDropdownSelectedOnlyView,\n isFocused,\n isUserFiltering,\n mainFieldRef,\n mouseProps,\n onLoadRange,\n searchText,\n selectedValuesCountProps,\n userInput\n } = useSelectMultiple<K, D>({\n data: propData,\n inputRef: enabledElementRef as MutableRef<HTMLInputElement>,\n isDisabled,\n isFocused: origIsFocused,\n isReadonly,\n onCommit,\n onFilter,\n onLoadRange: propOnLoadRange,\n valueItems\n });\n\n // The incoming propIsLoading tells us that we are in a loading state, but we don't want to\n // show the loading indicator until after a delay, because showing it immediately could result\n // in unwanted flashing. The isLoading var below will be set to true by useLoadingIndicatorTimer\n // after the delay, when the timer expires, at which point we should show the loading indicator.\n // If propIsLoading is set to false before the timer expires, then the timer will be cancelled\n // and no loading indicator will be shown.\n // (ListView detects its loading state by checking data === null. While it would be nice for\n // us to be consistent and check valueItems === null, we need to use a separate isLoading prop.\n // If valueItems === null triggers our loading state, then the selections in the dropdown\n // are cleared for that period of time, which is undesirable.)\n const isLoading = useLoadingIndicatorTimer(propIsLoading ?? false);\n\n const {\n baseId,\n formFieldContext,\n inputProps,\n labelProps,\n textFieldProps,\n userAssistanceProps\n } = useTextField({\n ariaDescribedBy,\n isDisabled,\n isFocused,\n isLoading,\n isReadonly,\n labelEdge,\n messages,\n styleVariant: variant,\n value: valueItems !== undefined && valueItems.length > 0 ? true : undefined\n });\n\n const dropdownId = `${baseId}-dropdown`;\n\n const displayValue = useDisplayValues(itemText, valueItems);\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\n const inlineUserAssistance =\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\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n\n if (isReadonly) {\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <ReadonlyTextField\n role=\"presentation\"\n inlineUserAssistance={inlineUserAssistance}\n onBlur={focusProps.onfocusout}\n onFocus={focusProps.onfocusin}\n {...fieldLabelProps}>\n <ReadonlyTextFieldInput\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={labelProps.id}\n as=\"div\"\n elementRef={readonlyElementRef}\n hasInsideLabel={label !== undefined && labelEdge === 'inside'}\n textAlign={textAlign}\n value={displayValue}\n />\n </ReadonlyTextField>\n </FormFieldContext.Provider>\n );\n }\n\n const isDataFetched = data !== undefined && data !== null && !isBeforeDataFetch<K, D>(data);\n const hasInsideLabel = labelComp !== undefined && labelEdge === 'inside';\n const liveRegionText =\n isDropdownOpen && isDataFetched\n ? data?.totalSize === 0\n ? translations.select_noMatchesFound()\n : data?.totalSize === 1\n ? translations.select_oneMatchFound()\n : data?.sizePrecision === 'exact'\n ? translations.select_sizeMatchesFound({ TOTAL_SIZE: `${data?.totalSize}` })\n : translations.select_sizeOrMoreMatchesFound({ TOTAL_SIZE: `${data?.totalSize}` })\n : '';\n\n const mainContent = (\n <Fragment>\n <TextFieldInput\n ariaAutoComplete=\"list\"\n ariaControls={dropdownId}\n ariaExpanded={isDropdownOpen}\n ariaLabel={ariaLabel}\n autoComplete=\"off\"\n hasInsideLabel={hasInsideLabel}\n inputRef={enabledElementRef}\n isRequired={isRequired}\n // onCommit={handleCommit}\n {...inputEventHandlers}\n placeholder={placeholder}\n role=\"combobox\"\n spellcheck={false}\n textAlign={textAlign}\n type={isMobile() ? (virtualKeyboard === 'auto' ? 'search' : virtualKeyboard) : undefined}\n value={isUserFiltering ? userInput : displayValue}\n {...inputProps}\n />\n <LiveRegion>{liveRegionText}</LiveRegion>\n </Fragment>\n );\n\n const dropdownArrow = (\n <DropdownArrow\n isDisabled={isDisabled}\n size={hasInsideLabel ? 'md' : 'sm'}\n {...dropdownArrowEventHandlers}\n />\n );\n const selectedValuesCount = valueItems?.length;\n const endContent = isLoading ? undefined : !hasSelectedValuesCount ? (\n dropdownArrow\n ) : (\n <Flex align=\"center\" justify=\"center\" gap={[0, '1x']}>\n <SelectedValuesCount\n accessibleLabel={label}\n count={selectedValuesCount}\n isDisabled={isDisabled}\n isSelected={isDropdownSelectedOnlyView}\n {...selectedValuesCountProps}\n />\n {dropdownArrow}\n </Flex>\n );\n\n const dropdownInlineUserAssistance =\n isDropdownOpen &&\n !isDropdownAbove &&\n !isDisabled &&\n !isReadonly &&\n (assistiveText || helpSourceLink) &&\n (userAssistanceDensity === 'efficient' || userAssistanceDensity === 'reflow') ? (\n <DropdownUserAssistance\n assistiveText={assistiveText}\n fieldLabel={label}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n userAssistanceDensity={userAssistanceDensity}\n />\n ) : undefined;\n\n const isEmptyResults = isDataFetched && data?.totalSize === 0;\n const dropdownListContent = isEmptyResults ? (\n <EmptyResults />\n ) : (\n <DefaultList<K, D>\n {...collectionProps}\n accessibleSummary={label ?? ''}\n data={data}\n itemText={itemText}\n onLoadRange={onLoadRange}\n searchText={\n isDropdownSelectedOnlyView ? undefined : isUserFiltering ? searchText : undefined\n }\n selectionMode=\"multiple\"\n />\n );\n\n return (\n <Fragment>\n <FormFieldContext.Provider value={formFieldContext}>\n <TextField\n endContent={endContent}\n inlineUserAssistance={inlineUserAssistance}\n mainContent={mainContent}\n mainFieldRef={mainFieldRef}\n onBlur={focusProps?.onfocusout}\n onFocus={focusProps?.onfocusin}\n {...textFieldProps}\n {...fieldLabelProps}\n {...mouseProps}></TextField>\n </FormFieldContext.Provider>\n <Dropdown\n dropdownRef={dropdownRef}\n id={dropdownId}\n isOpen={\n isDropdownOpen &&\n data !== undefined &&\n (data === null || data.totalSize > 0 || isBeforeDataFetch<K, D>(data) || isEmptyResults)\n }\n anchorRef={mainFieldRef}\n {...dropdownEventHandlers}>\n <DropdownList\n hasBottomGap={dropdownInlineUserAssistance === undefined}\n isLoading={data === null}>\n {dropdownListContent}\n </DropdownList>\n {dropdownInlineUserAssistance}\n </Dropdown>\n </Fragment>\n );\n }\n);\n"],"names":["SelectedValuesCount","_a","accessibleLabel","count","onKeyDown","onKeyUp","onMouseDown","passThroughProps","__rest","translations","useTranslationBundle","instructions","selectMultiple_showSelectedValues","accLabel","ninetyNinePlus","selectMultiple_countPlus","COUNT","chipCount","selectMultiple_valuesSelected","_jsx","Object","assign","class","children","jsx","Chip","label","useDisplayValues","itemText","valueItems","separator","plural_separator","concatenatedDisplayValues","useMemo","undefined","displayValues","selectedItems","arValues","values","mapFunc","itemContext","renderItemText","mappedArray","map","Set","_createDisplayValues","concatDisplayValues","Array","from","join","_concatDisplayValues","useSelectMultiple","data","propData","inputRef","isDisabled","isFocused","propIsFocused","isReadonly","onCommit","onFilter","onLoadRange","propOnLoadRange","isDropdownSelectedOnlyView","setDropdownSelectedOnlyView","useState","selectedValuesCount","length","hasSelectedValuesCount","selectedOnlyDataProps","offset","totalSize","sizePrecision","valueItem","metadata","key","useSelectedOnlyData","currentRow","dropdownRef","handleDropdownArrowClick","handleDropdownAutoDismiss","baseHandleDropdownAutoDismiss","handleDropdownPosition","handleInput","handleMainFieldKeyDown","baseHandleMainFieldKeyDown","handleMainFieldKeyUp","handleUpDownArrowKeys","isDropdownAbove","isDropdownOpen","isUserFiltering","mainFieldRef","onCurrentKeyChange","searchText","selectedKeys","setCurrentRow","setDropdownOpen","setSelectedKeys","userInput","useSelectCommon","removeDropdown","useCallback","_b","current","parentElement","removeChild","myHandleDropdownAutoDismiss","event","type","keyboardEvent","code","KEYS","TAB","shiftKey","focus","chipRef","myHandleMainFieldKeyDown","isControlOrFunctionKey","stopPropagation","useEffect","keys","reduce","accumKeys","currentItem","add","useRef","querySelector","handleSelectedValuesCountKeyDown","UP","DOWN","preventDefault","ESC","ENTER","handleSelectedValuesCountKeyUp","handleSelectedValuesCountMouseDown","handleSelectedValuesCountToggle","detail","value","onSelectionChange","newKeys","previousValue","dropdownEventHandlers","mergeProps","onAutoDismiss","onPosition","inputEventHandlers","onInput","rowKey","collectionProps","currentKey","dropdownArrowEventHandlers","onClick","mouseProps","selectedValuesCountProps","onToggle","SelectMultiple","forwardRef","ariaDescribedBy","assistiveText","helpSourceLink","helpSourceText","propIsDisabled","isLoading","propIsLoading","propIsReadonly","isRequired","isRequiredShown","labelEdge","propLabelEdge","labelStartWidth","propLabelStartWidth","messages","placeholder","textAlign","propTextAlign","userAssistanceDensity","propUserAssistanceDensity","variant","virtualKeyboard","ref","isFormDisabled","isFormReadonly","formLabelEdge","formLabelStartWidth","formTextAlign","formUserAssistanceDensity","useFormContext","enabledElementRef","focusProps","origIsFocused","readonlyElementRef","useFocusableTextField","useLoadingIndicatorTimer","baseId","formFieldContext","inputProps","labelProps","textFieldProps","userAssistanceProps","useTextField","styleVariant","dropdownId","displayValue","labelComp","Label","fieldLabelProps","ariaLabel","inlineUserAssistance","InlineUserAssistance","fieldLabel","FormFieldContext","Provider","ReadonlyTextField","role","onBlur","onfocusout","onFocus","onfocusin","ReadonlyTextFieldInput","ariaLabelledBy","id","as","elementRef","hasInsideLabel","isDataFetched","isBeforeDataFetch","liveRegionText","select_noMatchesFound","select_oneMatchFound","select_sizeMatchesFound","TOTAL_SIZE","select_sizeOrMoreMatchesFound","mainContent","_jsxs","jsxs","Fragment","TextFieldInput","ariaAutoComplete","ariaControls","ariaExpanded","autoComplete","spellcheck","isMobile","LiveRegion","dropdownArrow","DropdownArrow","size","endContent","Flex","align","justify","gap","isSelected","dropdownInlineUserAssistance","DropdownUserAssistance","isEmptyResults","dropdownListContent","EmptyResults","DefaultList","accessibleSummary","selectionMode","TextField","Dropdown","isOpen","anchorRef","DropdownList","hasBottomGap"],"mappings":"mqBAuBA,SAAAA,EAAAC,GAAoC,IAAAC,gBAAAA,EAAAC,MAAAA,EAAA,EAAAC,UAAAA,EAAAC,QAAAA,EAA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,EAAgBA,iBAACC,SAAQ/L,OAAAC,OAAA,CAACoH,MAAOyD,IAChC,CAAA3K,SAAAJ,EAAAA,IAACkP,EAASA,UACRjP,OAAAC,OAAA,CAAAkO,WAAYA,GACZxC,qBAAsBA,GACtByB,YAAaA,GACb7I,aAAcA,GACd2H,OAAQ1B,MAAAA,QAAU,EAAVA,GAAY2B,WACpBC,QAAS5B,MAAAA,UAAAA,GAAY6B,WACjBpB,GACAQ,GACArD,QAERiF,EAAAA,KAAC6B,EAAAA,wBACCxL,YAAaA,GACb8I,GAAInB,GACJ8D,OACE9K,SACSvD,IAATkB,KACU,OAATA,IAAiBA,GAAKmB,UAAY,GAAK0J,EAAiBA,kBAAO7K,KAAS2M,IAE3ES,UAAW7K,IACPkD,cACJ1H,EAAAA,IAACsP,EAAYA,4BACXC,kBAA+CxO,IAAjC2N,GACd3F,UAAoB,OAAT9G,cACV4M,MAEFH"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(["exports","preact/jsx-runtime","preact","preact/compat","./hooks/UNSAFE_useFocusableTextField","./hooks/UNSAFE_useFormContext","./hooks/UNSAFE_useFormFieldContext","./hooks/UNSAFE_useLoadingIndicatorTimer","./hooks/UNSAFE_useTextField","./UNSAFE_Label","./UNSAFE_LiveRegion","./UNSAFE_TextField","./UNSAFE_UserAssistance","./PRIVATE_SelectCommon","preact/hooks","./utils/UNSAFE_mergeProps","./hooks/UNSAFE_useTranslationBundle","./ReadonlyTextFieldInput-
|
|
2
|
-
//# sourceMappingURL=SelectSingle-
|
|
1
|
+
define(["exports","preact/jsx-runtime","preact","preact/compat","./hooks/UNSAFE_useFocusableTextField","./hooks/UNSAFE_useFormContext","./hooks/UNSAFE_useFormFieldContext","./hooks/UNSAFE_useLoadingIndicatorTimer","./hooks/UNSAFE_useTextField","./UNSAFE_Label","./UNSAFE_LiveRegion","./UNSAFE_TextField","./UNSAFE_UserAssistance","./PRIVATE_SelectCommon","preact/hooks","./utils/UNSAFE_mergeProps","./hooks/UNSAFE_useTranslationBundle","./ReadonlyTextFieldInput-f86c3c42","./TextFieldInput-12ff173d"],function(e,o,n,s,i,t,l,a,r,d,u,c,v,p,F,m,f,h,b){"use strict";const x=s.forwardRef(({ariaDescribedBy:e,assistiveText:s,data:x,helpSourceLink:w,helpSourceText:y,isDisabled:g,isLoading:S,isReadonly:A,isRequired:R,isRequiredShown:D,itemText:E,label:T,labelEdge:C,labelStartWidth:j,messages:k,onCommit:K,onFilter:I,onLoadRange:L,placeholder:U,textAlign:O,userAssistanceDensity:P,valueItem:_,variant:M="default",virtualKeyboard:B},N)=>{const{isDisabled:z,isReadonly:H,labelEdge:q,labelStartWidth:V,textAlign:W,userAssistanceDensity:Y}=t.useFormContext(),$=null!=g?g:z,Z=null!=A?A:H,G=null!=C?C:q,J=null!=j?j:V,Q=null!=O?O:W,X=null!=P?P:Y,{enabledElementRef:ee,focusProps:oe,isFocused:ne,readonlyElementRef:se}=i.useFocusableTextField({isDisabled:$,isReadonly:Z,ref:N}),{collectionProps:ie,dropdownArrowEventHandlers:te,dropdownEventHandlers:le,dropdownRef:ae,inputEventHandlers:re,isDropdownAbove:de,isDropdownOpen:ue,isFocused:ce,isUserFiltering:ve,mainFieldRef:pe,mouseProps:Fe,searchText:me,userInput:fe}=function({data:e,inputRef:o,isDisabled:n,isFocused:s,isReadonly:i,onCommit:t,onFilter:l,valueItem:a}){const{currentRow:r,dropdownRef:d,handleDropdownArrowClick:u,handleDropdownAutoDismiss:c,handleDropdownPosition:v,handleInput:f,handleMainFieldKeyDown:h,handleMainFieldKeyUp:b,isDropdownAbove:x,isDropdownOpen:w,isFocused:y,isUserFiltering:g,mainFieldRef:S,onCurrentKeyChange:A,onMouseDown:R,searchText:D,selectedKeys:E,setCurrentRow:T,setDropdownOpen:C,setSelectedKeys:j,stopFiltering:k,userInput:K}=p.useSelectCommon({data:e,inputRef:o,isFocused:s,onFilter:l}),I=F.useRef(e),L=F.useRef(w),U=F.useRef(D),O=F.useCallback(e=>{null==t||t({value:e,previousValue:void 0!==a?a.key:void 0})},[t,a]),P=F.useCallback(()=>{C(!1),j(new Set),O(void 0)},[O]),_=F.useCallback(()=>!(!g||""!==K||void 0===a||(P(),0)),[P,g,K,a]);F.useEffect(()=>{y||_()},[y]);const M=F.useCallback(()=>{var e;null===(e=o.current)||void 0===e||e.focus()},[]),B=F.useCallback(()=>{var e,o;null===(o=null===(e=d.current)||void 0===e?void 0:e.parentElement)||void 0===o||o.removeChild(d.current)},[]),N=F.useCallback(e=>{w&&"keydown"===(null==e?void 0:e.type)&&e.code===p.KEYS.TAB&&(void 0!==r&&void 0!==r.rowKey&&(j(new Set([r.rowKey])),O(r.rowKey)),M(),B())},[r,M,w,O]),z=F.useCallback(o=>{var n,s;if(!p.isControlOrFunctionKey(o))switch(o.code){case p.KEYS.TAB:!_()&&w&&null!=e&&e.data.length>0&&(void 0!==r&&void 0!==r.rowKey?(j(new Set([r.rowKey])),O(r.rowKey)):O(null!==(n=null==a?void 0:a.key)&&void 0!==n?n:void 0)),B(),C(!1);break;case p.KEYS.ENTER:!_()&&w&&null!=e&&e.data.length>0&&(C(!1),k(),void 0!==r&&void 0!==r.rowKey?(j(new Set([r.rowKey])),O(r.rowKey)):O(null!==(s=null==a?void 0:a.key)&&void 0!==s?s:void 0))}},[_,r,e,w,O,a]);F.useEffect(()=>{j(void 0===a?void 0:new Set([a.key]))},[a]);const H=F.useCallback(e=>{M(),C(!1),k();const o=e.context.metadata.key;j(new Set([o])),O(o)},[M,O]);F.useEffect(()=>{e!==I.current&&w&&g&&null!=e&&0===e.offset&&e.data.length>0&&T({rowKey:void 0!==D&&(null==D?void 0:D.length)>0?e.data[0].metadata.key:void 0})},[e,w,g,D]),F.useEffect(()=>{w!==L.current&&(!w||g&&void 0!==D&&0!==D.length||T({rowKey:void 0}))},[w,g,D]);const q=F.useMemo(()=>m.mergeProps({onAutoDismiss:c,onPosition:v},{onAutoDismiss:N}),[c,v,N]),V=F.useMemo(()=>m.mergeProps({onInput:f,onKeyDown:h,onKeyUp:b},{onKeyDown:z}),[h,f,b,z]);return F.useEffect(()=>{I.current=e,L.current=w,U.current=D}),{collectionProps:{currentKey:r.rowKey,onCurrentKeyChange:A,onItemAction:H,selectedKeys:E},dropdownArrowEventHandlers:{onClick:u},dropdownEventHandlers:q,dropdownRef:d,inputEventHandlers:V,inputRef:o,isDropdownAbove:x,isDropdownOpen:w,isFocused:y,isUserFiltering:g,mainFieldRef:S,mouseProps:n||i?{}:{onMouseDown:R},searchText:D,userInput:K}}({data:x,inputRef:ee,isDisabled:$,isFocused:ne,isReadonly:Z,onCommit:K,onFilter:I,valueItem:_}),he=a.useLoadingIndicatorTimer(null!=S&&S),{baseId:be,formFieldContext:xe,inputProps:we,labelProps:ye,textFieldProps:ge,userAssistanceProps:Se}=r.useTextField({ariaDescribedBy:e,isDisabled:$,isFocused:ce,isLoading:he,isReadonly:Z,labelEdge:G,messages:k,styleVariant:M,value:void 0!==_||void 0}),Ae=`${be}-dropdown`,Re=function(e,o){return F.useMemo(()=>{var n;return void 0===o?"":null!==(n=p.renderItemText(o,e))&&void 0!==n?n:""},[o,e])}(E,_),De="none"!==G?o.jsx(d.Label,Object.assign({},ye,{children:T})):void 0,Ee={label:"none"!==G?De:void 0,labelEdge:"none"!==G?G:void 0,labelStartWidth:"none"!==G?J:void 0},Te="none"===G?T:void 0,Ce=$||Z?"efficient"!==X?void 0:o.jsx(v.InlineUserAssistance,Object.assign({userAssistanceDensity:X},Se)):o.jsx(v.InlineUserAssistance,Object.assign({assistiveText:s,fieldLabel:T,helpSourceLink:w,helpSourceText:y,messages:k,isRequiredShown:D,userAssistanceDensity:X},Se)),je=f.useTranslationBundle("@oracle/oraclejet-preact");if(Z)return o.jsx(l.FormFieldContext.Provider,Object.assign({value:xe},{children:o.jsx(c.ReadonlyTextField,Object.assign({role:"presentation",inlineUserAssistance:Ce,onBlur:oe.onfocusout,onFocus:oe.onfocusin},Ee,{children:o.jsx(h.ReadonlyTextFieldInput,{ariaDescribedBy:e,ariaLabel:Te,ariaLabelledBy:ye.id,as:"div",elementRef:se,hasInsideLabel:void 0!==T&&"inside"===G,textAlign:Q,value:Re})}))}));const ke=null!=x&&!p.isBeforeDataFetch(x),Ke=void 0!==De&&"inside"===G,Ie=ue&&ke?0===(null==x?void 0:x.totalSize)?je.select_noMatchesFound():1===(null==x?void 0:x.totalSize)?je.select_oneMatchFound():"exact"===(null==x?void 0:x.sizePrecision)?je.select_sizeMatchesFound({TOTAL_SIZE:`${null==x?void 0:x.totalSize}`}):je.select_sizeOrMoreMatchesFound({TOTAL_SIZE:`${null==x?void 0:x.totalSize}`}):"",Le=o.jsxs(n.Fragment,{children:[o.jsx(b.TextFieldInput,Object.assign({ariaAutoComplete:"list",ariaControls:Ae,ariaExpanded:ue,ariaLabel:Te,autoComplete:"off",hasInsideLabel:Ke,inputRef:ee,isRequired:R},re,{placeholder:U,role:"combobox",spellcheck:!1,textAlign:Q,type:p.isMobile()?"auto"===B?"search":B:void 0,value:ve?fe:Re},we)),o.jsx(u.LiveRegion,{children:Ie})]}),Ue=o.jsx(p.DropdownArrow,Object.assign({isDisabled:$,size:Ke?"md":"sm"},te)),Oe=!ue||de||$||Z||!s&&!w||"efficient"!==X&&"reflow"!==X?void 0:o.jsx(p.DropdownUserAssistance,{assistiveText:s,fieldLabel:T,helpSourceLink:w,helpSourceText:y,userAssistanceDensity:X}),Pe=ke&&0===(null==x?void 0:x.totalSize),_e=Pe?o.jsx(p.EmptyResults,{}):o.jsx(p.DefaultList,Object.assign({},ie,{accessibleSummary:null!=T?T:"",currentItemVariant:"highlight",data:x,itemText:E,onLoadRange:L,searchText:ve?me:void 0,selectionMode:"single"}));return o.jsxs(n.Fragment,{children:[o.jsx(l.FormFieldContext.Provider,Object.assign({value:xe},{children:o.jsx(c.TextField,Object.assign({endContent:he?void 0:Ue,inlineUserAssistance:Ce,mainContent:Le,mainFieldRef:pe,onBlur:null==oe?void 0:oe.onfocusout,onFocus:null==oe?void 0:oe.onfocusin},ge,Ee,Fe))})),o.jsxs(p.Dropdown,Object.assign({dropdownRef:ae,id:Ae,isOpen:ue&&void 0!==x&&(null===x||x.totalSize>0||p.isBeforeDataFetch(x)||Pe),anchorRef:pe},le,{children:[o.jsx(p.DropdownList,Object.assign({hasBottomGap:void 0===Oe,isLoading:null===x},{children:_e})),Oe]}))]})});e.SelectSingle=x});
|
|
2
|
+
//# sourceMappingURL=SelectSingle-29854cfe.js.map
|