@oracle/oraclejet-preact 20.0.2 → 20.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/amd/BaseCardView-b8119561.js +2 -0
- package/amd/{BaseCardView-16fda4c3.js.map → BaseCardView-b8119561.js.map} +1 -1
- package/amd/CardFlexView-aa2f3de8.js +2 -0
- package/amd/{CardFlexView-d3eb7373.js.map → CardFlexView-aa2f3de8.js.map} +1 -1
- package/amd/CardGridView-85f90c75.js +2 -0
- package/amd/{CardGridView-842f70cd.js.map → CardGridView-85f90c75.js.map} +1 -1
- package/amd/CheckboxSet-f000e5c2.js +2 -0
- package/amd/CheckboxSet-f000e5c2.js.map +1 -0
- package/amd/ExpandableList-233c279e.js +2 -0
- package/amd/{ExpandableList-a9a86ad8.js.map → ExpandableList-233c279e.js.map} +1 -1
- package/amd/{InlineSelectSingle-7c1cc5b5.js → InlineSelectSingle-87bc8a45.js} +2 -2
- package/amd/{InlineSelectSingle-7c1cc5b5.js.map → InlineSelectSingle-87bc8a45.js.map} +1 -1
- package/amd/ListView-2678b2af.js +2 -0
- package/amd/{ListView-6d21e8f9.js.map → ListView-2678b2af.js.map} +1 -1
- package/amd/NavigationList-a6bb123d.js +2 -0
- package/amd/NavigationList-a6bb123d.js.map +1 -0
- package/amd/NavigationListItem-10bf6656.js +2 -0
- package/amd/NavigationListItem-10bf6656.js.map +1 -0
- package/amd/NavigationListLinkItem-df1826e6.js +2 -0
- package/amd/NavigationListLinkItem-df1826e6.js.map +1 -0
- package/amd/{OverflowTabBar-5ff68da7.js → OverflowTabBar-f8bf9356.js} +2 -2
- package/amd/{OverflowTabBar-5ff68da7.js.map → OverflowTabBar-f8bf9356.js.map} +1 -1
- package/amd/OverflowTabBarItem-0aa39512.js +2 -0
- package/amd/{OverflowTabBarItem-926b0c8a.js.map → OverflowTabBarItem-0aa39512.js.map} +1 -1
- package/amd/PRIVATE_BaseCardView.js +1 -1
- package/amd/PRIVATE_SelectCommon.js +1 -1
- package/amd/PRIVATE_TableList.js +1 -1
- package/amd/RemovableNavigationListItem-60593d4c.js +2 -0
- package/amd/{RemovableNavigationListItem-e298c5de.js.map → RemovableNavigationListItem-60593d4c.js.map} +1 -1
- package/amd/ReorderableTabBar-19a503c7.js +2 -0
- package/amd/{ReorderableTabBar-0c69bfd4.js.map → ReorderableTabBar-19a503c7.js.map} +1 -1
- package/amd/{SelectMobileFieldInput-d499ef86.js → SelectMobileFieldInput-4795a794.js} +2 -2
- package/amd/{SelectMobileFieldInput-d499ef86.js.map → SelectMobileFieldInput-4795a794.js.map} +1 -1
- package/amd/{SelectMultiple-cc9bffc6.js → SelectMultiple-e216b16c.js} +2 -2
- package/amd/{SelectMultiple-cc9bffc6.js.map → SelectMultiple-e216b16c.js.map} +1 -1
- package/amd/{SelectSingle-2bb35b67.js → SelectSingle-d53cf202.js} +2 -2
- package/amd/{SelectSingle-2bb35b67.js.map → SelectSingle-d53cf202.js.map} +1 -1
- package/amd/TabBar-92bac52f.js +2 -0
- package/amd/{TabBar-de723fbc.js.map → TabBar-92bac52f.js.map} +1 -1
- package/amd/TabBarMixed-5b5a5047.js +2 -0
- package/amd/{TabBarMixed-cfd346bf.js.map → TabBarMixed-5b5a5047.js.map} +1 -1
- package/amd/TextArea-345f89d4.js +2 -0
- package/amd/TextArea-345f89d4.js.map +1 -0
- package/amd/TextAreaAutosize-01dfd98e.js +2 -0
- package/amd/{TextAreaAutosize-3a13ebb2.js.map → TextAreaAutosize-01dfd98e.js.map} +1 -1
- package/amd/Theme-redwood/theme.css +122 -122
- package/amd/Theme-stable/theme.css +174 -174
- package/amd/UNSAFE_CardFlexView.js +1 -1
- package/amd/UNSAFE_CardGridView.js +1 -1
- package/amd/UNSAFE_CheckboxItem.js +1 -1
- package/amd/UNSAFE_CheckboxItem.js.map +1 -1
- package/amd/UNSAFE_CheckboxSet.js +1 -1
- package/amd/UNSAFE_CheckboxSet.js.map +1 -1
- package/amd/UNSAFE_ExpandableList.js +1 -1
- package/amd/UNSAFE_InlineSelectSingle.js +1 -1
- package/amd/UNSAFE_ListView.js +1 -1
- package/amd/UNSAFE_NavigationList.js +1 -1
- package/amd/UNSAFE_NavigationListCommon.js +1 -1
- package/amd/UNSAFE_OverflowTabBar.js +1 -1
- package/amd/UNSAFE_ReorderableTabBar.js +1 -1
- package/amd/UNSAFE_RichCheckboxSet.js +1 -1
- package/amd/UNSAFE_RichCheckboxSet.js.map +1 -1
- package/amd/UNSAFE_RichSelectionItem.js +1 -1
- package/amd/UNSAFE_RichSelectionItem.js.map +1 -1
- package/amd/UNSAFE_SelectMultiple.js +1 -1
- package/amd/UNSAFE_SelectSingle.js +1 -1
- package/amd/UNSAFE_TabBar.js +1 -1
- package/amd/UNSAFE_TabBarCommon.js +1 -1
- package/amd/UNSAFE_TabBarMixed.js +1 -1
- package/amd/UNSAFE_TextArea.js +1 -1
- package/amd/UNSAFE_TextAreaAutosize.js +1 -1
- package/amd/UNSAFE_VirtualizedListView.js +1 -1
- package/amd/VirtualizedListView-a0f338c2.js +2 -0
- package/amd/{VirtualizedListView-1ae7151d.js.map → VirtualizedListView-a0f338c2.js.map} +1 -1
- package/amd/{useDisplayValue-0e90bf4c.js → useDisplayValue-9b671893.js} +2 -2
- package/amd/{useDisplayValue-0e90bf4c.js.map → useDisplayValue-9b671893.js.map} +1 -1
- package/amd/useNavigationListItem-582f5564.js +2 -0
- package/amd/useNavigationListItem-582f5564.js.map +1 -0
- package/amd/useSelectCommon-f33709d2.js +2 -0
- package/amd/{useSelectCommon-a02ddf3c.js.map → useSelectCommon-f33709d2.js.map} +1 -1
- package/cjs/{BaseCardView-c0909427.js → BaseCardView-ba63723a.js} +4 -1
- package/cjs/{BaseCardView-c0909427.js.map → BaseCardView-ba63723a.js.map} +1 -1
- package/cjs/{NavigationListItem-3b9eb0fb.js → NavigationList-d0d74565.js} +21 -8
- package/cjs/NavigationList-d0d74565.js.map +1 -0
- package/cjs/NavigationListItem-b0b03089.js +12 -0
- package/cjs/NavigationListItem-b0b03089.js.map +1 -0
- package/cjs/{NavigationListLinkItem-62c3912e.js → NavigationListLinkItem-317a5200.js} +8 -99
- package/cjs/NavigationListLinkItem-317a5200.js.map +1 -0
- package/cjs/{OverflowTabBarItem-abcd2327.js → OverflowTabBarItem-19ad4971.js} +6 -4
- package/cjs/{OverflowTabBarItem-abcd2327.js.map → OverflowTabBarItem-19ad4971.js.map} +1 -1
- package/cjs/PRIVATE_BaseCardView.js +1 -1
- package/cjs/PRIVATE_TableList.js +4 -4
- package/cjs/SegmentStyles.styles.css +9 -12
- package/cjs/SegmentStyles.styles2.css +12 -9
- package/cjs/{TabBar-27ae2c21.js → TabBar-d84e222e.js} +9 -1
- package/cjs/{TabBar-27ae2c21.js.map → TabBar-d84e222e.js.map} +1 -1
- package/cjs/{TabBarLinkItem-b0c4b100.js → TabBarLinkItem-e924f83b.js} +2 -2
- package/cjs/{TabBarLinkItem-b0c4b100.js.map → TabBarLinkItem-e924f83b.js.map} +1 -1
- package/cjs/Theme-redwood/theme.css +131 -131
- package/cjs/Theme-stable/theme.css +233 -233
- package/cjs/UNSAFE_CardFlexView.js +1 -1
- package/cjs/UNSAFE_CardGridView.js +1 -1
- package/cjs/UNSAFE_ListView.js +53 -53
- package/cjs/UNSAFE_NavigationList.js +17 -15
- package/cjs/UNSAFE_NavigationList.js.map +1 -1
- package/cjs/UNSAFE_NavigationListCommon.js +14 -13
- package/cjs/UNSAFE_NavigationListCommon.js.map +1 -1
- package/cjs/UNSAFE_OverflowTabBar.js +56 -53
- package/cjs/UNSAFE_OverflowTabBar.js.map +1 -1
- package/cjs/UNSAFE_ReorderableTabBar.js +43 -30
- package/cjs/UNSAFE_ReorderableTabBar.js.map +1 -1
- package/cjs/UNSAFE_TabBar.js +57 -54
- package/cjs/UNSAFE_TabBar.js.map +1 -1
- package/cjs/UNSAFE_TabBarCommon.js +78 -75
- package/cjs/UNSAFE_TabBarCommon.js.map +1 -1
- package/cjs/UNSAFE_TabBarMixed.js +38 -35
- package/cjs/UNSAFE_TabBarMixed.js.map +1 -1
- package/cjs/useNavigationListItem-b97e76d5.js +104 -0
- package/cjs/useNavigationListItem-b97e76d5.js.map +1 -0
- package/es/{Chart-b866a74c.js → Chart-8c63da28.js} +2 -2
- package/es/{Chart-b866a74c.js.map → Chart-8c63da28.js.map} +1 -1
- package/es/PRIVATE_Chart.js +4 -4
- package/es/TextArea-93ce78a7.js +225 -0
- package/es/TextArea-93ce78a7.js.map +1 -0
- package/es/Theme-redwood/theme.css +427 -427
- package/es/Theme-stable/theme.css +583 -583
- package/es/UNSAFE_BarChart.js +4 -4
- package/es/UNSAFE_ComboChart.js +4 -4
- package/es/UNSAFE_LineAreaChart.js +4 -4
- package/es/UNSAFE_ScatterChart.js +4 -4
- package/es/UNSAFE_TextArea.js +106 -226
- package/es/UNSAFE_TextArea.js.map +1 -1
- package/es/UNSAFE_TextAreaAutosize.js +1 -1
- package/package.json +2 -2
- package/amd/BaseCardView-16fda4c3.js +0 -2
- package/amd/CardFlexView-d3eb7373.js +0 -2
- package/amd/CardGridView-842f70cd.js +0 -2
- package/amd/CheckboxSetContext-2e486ea8.js +0 -2
- package/amd/CheckboxSetContext-2e486ea8.js.map +0 -1
- package/amd/ExpandableList-a9a86ad8.js +0 -2
- package/amd/ListView-6d21e8f9.js +0 -2
- package/amd/NavigationListItem-9df5446c.js +0 -2
- package/amd/NavigationListItem-9df5446c.js.map +0 -1
- package/amd/NavigationListLinkItem-161049bb.js +0 -2
- package/amd/NavigationListLinkItem-161049bb.js.map +0 -1
- package/amd/OverflowTabBarItem-926b0c8a.js +0 -2
- package/amd/RemovableNavigationListItem-e298c5de.js +0 -2
- package/amd/ReorderableTabBar-0c69bfd4.js +0 -2
- package/amd/TabBar-de723fbc.js +0 -2
- package/amd/TabBarMixed-cfd346bf.js +0 -2
- package/amd/TextArea-4a3b8b56.js +0 -2
- package/amd/TextArea-4a3b8b56.js.map +0 -1
- package/amd/TextAreaAutosize-3a13ebb2.js +0 -2
- package/amd/VirtualizedListView-1ae7151d.js +0 -2
- package/amd/useSelectCommon-a02ddf3c.js +0 -2
- package/amd/useTextAreaAltEnter-32272da6.js +0 -2
- package/amd/useTextAreaAltEnter-32272da6.js.map +0 -1
- package/cjs/NavigationListItem-3b9eb0fb.js.map +0 -1
- package/cjs/NavigationListLinkItem-62c3912e.js.map +0 -1
- package/es/useTextAreaAltEnter-ac460f4c.js +0 -61
- package/es/useTextAreaAltEnter-ac460f4c.js.map +0 -1
|
@@ -33,6 +33,12 @@ require('./tooltipUtils-2bc15136.js');
|
|
|
33
33
|
var HiddenAccessible = require('./HiddenAccessible-087eb49a.js');
|
|
34
34
|
require('./BaseButton-d8f96bfa.js');
|
|
35
35
|
require('./ButtonLabelLayout-c876923f.js');
|
|
36
|
+
require('./NavigationList-d0d74565.js');
|
|
37
|
+
require('./useNavigationListItem-b97e76d5.js');
|
|
38
|
+
require('./UNSAFE_NavigationList/themes/NavigationListItemStyles.css.js');
|
|
39
|
+
|
|
40
|
+
require('./UNSAFE_NavigationList/themes/redwood/NavigationListItemVariants.css.js');
|
|
41
|
+
|
|
36
42
|
require('./Floating-79cbe5ad.js');
|
|
37
43
|
|
|
38
44
|
require('./keyboardUtils-b42fe7d5.js');
|
|
@@ -41,6 +47,8 @@ require('./CollectionInteractionContext-f84ff7a1.js');
|
|
|
41
47
|
|
|
42
48
|
require('./Sheet-1d6e8cf8.js');
|
|
43
49
|
|
|
50
|
+
require('./StyledCheckbox-9047ed7d.js');
|
|
51
|
+
|
|
44
52
|
var clientUtils = require('./clientUtils-ef5e20ce.js');
|
|
45
53
|
var UNSAFE_TabBarMixed_themes_TabBarMixedStyles_css = require('./UNSAFE_TabBarMixed/themes/TabBarMixedStyles.css.js');
|
|
46
54
|
var useTabBar = require('./useTabBar-35b73d10.js');
|
|
@@ -49,7 +57,7 @@ var TabBarContextMenu = require('./TabBarContextMenu-d9bf65c2.js');
|
|
|
49
57
|
var ConveyorBeltFocusContext = require('./ConveyorBeltFocusContext-0e08d043.js');
|
|
50
58
|
var View = require('./View-ed116d78.js');
|
|
51
59
|
var UNSAFE_TabBarMixed_themes_TabBarMixedSeparator_css = require('./UNSAFE_TabBarMixed/themes/TabBarMixedSeparator.css.js');
|
|
52
|
-
var OverflowTabBarItem = require('./OverflowTabBarItem-
|
|
60
|
+
var OverflowTabBarItem = require('./OverflowTabBarItem-19ad4971.js');
|
|
53
61
|
|
|
54
62
|
require('./index-0aa99b92.js');
|
|
55
63
|
require('./UNSAFE_Layer/themes/LayerHostStyles.css.js');
|
|
@@ -116,8 +124,27 @@ require('./UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutBaseTheme.cs
|
|
|
116
124
|
|
|
117
125
|
require('./UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutVariants.css.js');
|
|
118
126
|
|
|
119
|
-
require('./
|
|
127
|
+
require('./UNSAFE_NavigationList/themes/NavigationListStyles.css.js');
|
|
128
|
+
|
|
129
|
+
require('./collectionUtils-f1d3183f.js');
|
|
130
|
+
require('./keys-25710458.js');
|
|
131
|
+
require('./Selector-6550b8e0.js');
|
|
132
|
+
require('./BaseSelector-2dc69917.js');
|
|
133
|
+
require('./useFocus-1b288fb9.js');
|
|
134
|
+
require('./PRIVATE_BaseSelector/themes/SelectorStyles.css.js');
|
|
135
|
+
require('./useCollectionInteractionContext-6fc0200e.js');
|
|
136
|
+
require('./useCollectionFocusRing-bed0aa16.js');
|
|
137
|
+
require('./useCurrentKey-1b9e3382.js');
|
|
120
138
|
require('./useUser-1295b5cb.js');
|
|
139
|
+
require('./useContextMenuGesture-530ef8dd.js');
|
|
140
|
+
require('./textSelectionUtils-57082239.js');
|
|
141
|
+
require('./useTranslationBundle-12dd087d.js');
|
|
142
|
+
require('./useInteractionStyle-c203a8a0.js');
|
|
143
|
+
require('./UNSAFE_NavigationListCommon/themes/redwood/NavigationListItemTheme.js');
|
|
144
|
+
require('./UNSAFE_NavigationList/themes/redwood/NavigationListItemBaseTheme.css.js');
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
require('./useFloating-c753a7f9.js');
|
|
121
148
|
require('./positionUtils-a780137e.js');
|
|
122
149
|
require('./refUtils-a9872e75.js');
|
|
123
150
|
require('./useOutsideClick-dbf3d604.js');
|
|
@@ -152,14 +179,6 @@ require('./UNSAFE_Sheet/themes/SheetStyles.css.js');
|
|
|
152
179
|
require('./useAnimationStatus-8075dc19.js');
|
|
153
180
|
require('./useAnimation-65c0e455.js');
|
|
154
181
|
require('./animationUtils-54852d03.js');
|
|
155
|
-
require('./useTranslationBundle-12dd087d.js');
|
|
156
|
-
|
|
157
|
-
require('./collectionUtils-f1d3183f.js');
|
|
158
|
-
require('./keys-25710458.js');
|
|
159
|
-
require('./Selector-6550b8e0.js');
|
|
160
|
-
require('./BaseSelector-2dc69917.js');
|
|
161
|
-
require('./useFocus-1b288fb9.js');
|
|
162
|
-
require('./StyledCheckbox-9047ed7d.js');
|
|
163
182
|
require('./Check-1272bb86.js');
|
|
164
183
|
require('./Icon-56789beb.js');
|
|
165
184
|
require('./useTooltip-34accecc.js');
|
|
@@ -181,15 +200,9 @@ require('./UNSAFE_Checkbox/themes/redwood/CheckboxIconBaseTheme.css.js');
|
|
|
181
200
|
require('./UNSAFE_Checkbox/themes/redwood/CheckboxIconVariants.css.js');
|
|
182
201
|
|
|
183
202
|
|
|
184
|
-
require('./PRIVATE_BaseSelector/themes/SelectorStyles.css.js');
|
|
185
203
|
|
|
186
|
-
require('./useCollectionInteractionContext-6fc0200e.js');
|
|
187
|
-
require('./useCollectionFocusRing-bed0aa16.js');
|
|
188
|
-
require('./useCurrentKey-1b9e3382.js');
|
|
189
204
|
require('./useReorderableContext-92514102.js');
|
|
190
205
|
require('./ReorderableContext-16396e17.js');
|
|
191
|
-
require('./useContextMenuGesture-530ef8dd.js');
|
|
192
|
-
require('./textSelectionUtils-57082239.js');
|
|
193
206
|
|
|
194
207
|
require('./SelectMenuGroupContext-a349d259.js');
|
|
195
208
|
require('./Dropdown-1ba432a8.js');
|
|
@@ -219,7 +232,6 @@ require('./UNSAFE_Menu/themes/redwood/MenuItemBaseTheme.css.js');
|
|
|
219
232
|
|
|
220
233
|
require('./UNSAFE_Menu/themes/redwood/MenuItemVariants.css.js');
|
|
221
234
|
|
|
222
|
-
require('./useInteractionStyle-c203a8a0.js');
|
|
223
235
|
require('./Separator-85962472.js');
|
|
224
236
|
require('./UNSAFE_Separator/themes/SeparatorStyles.css.js');
|
|
225
237
|
|
|
@@ -234,36 +246,27 @@ require('./equals-098f7781.js');
|
|
|
234
246
|
|
|
235
247
|
require('./EmbeddedIconButton-cc159a01.js');
|
|
236
248
|
require('./Close-d99c20a7.js');
|
|
237
|
-
require('./
|
|
238
|
-
require('./
|
|
239
|
-
require('./UNSAFE_TabBarCommon/themes/redwood/TabBarItemBaseTheme.css.js');
|
|
249
|
+
require('./NavigationListItem-b0b03089.js');
|
|
250
|
+
require('./NavigationListLinkItem-317a5200.js');
|
|
240
251
|
require('./Badge-0e522f12.js');
|
|
241
252
|
require('./UNSAFE_Badge/themes/redwood/BadgeTheme.js');
|
|
242
253
|
require('./UNSAFE_Badge/themes/BadgeStyles.css.js');
|
|
243
254
|
require('./UNSAFE_Badge/themes/redwood/BadgeThemeBaseTheme.css.js');
|
|
255
|
+
require('./WarningS-cdb0a7ad.js');
|
|
256
|
+
require('./ErrorS-b027f7ad.js');
|
|
257
|
+
require('./InformationS-b0bb102b.js');
|
|
258
|
+
require('./SuccessS-b6757c64.js');
|
|
259
|
+
require('./UNSAFE_TabBarCommon/themes/redwood/TabBarItemTheme.js');
|
|
260
|
+
require('./UNSAFE_TabBarCommon/themes/TabBarItemStyles.css.js');
|
|
261
|
+
require('./UNSAFE_TabBarCommon/themes/redwood/TabBarItemBaseTheme.css.js');
|
|
244
262
|
require('./useConveyorBeltItem-6c1771e5.js');
|
|
245
263
|
require('./useDetectTruncation-a5b9dd16.js');
|
|
246
264
|
require('./truncationUtils-2d44b04b.js');
|
|
247
265
|
require('./useResizeObserver-a9e97180.js');
|
|
248
266
|
require('./useAddBusyState-d19ae1fa.js');
|
|
249
267
|
require('./useBusyStateContext-362eee2a.js');
|
|
250
|
-
require('./WarningS-cdb0a7ad.js');
|
|
251
|
-
require('./ErrorS-b027f7ad.js');
|
|
252
|
-
require('./InformationS-b0bb102b.js');
|
|
253
|
-
require('./SuccessS-b6757c64.js');
|
|
254
|
-
require('./NavigationListLinkItem-62c3912e.js');
|
|
255
|
-
require('./UNSAFE_NavigationListCommon/themes/redwood/NavigationListItemTheme.js');
|
|
256
|
-
require('./UNSAFE_NavigationList/themes/NavigationListItemStyles.css.js');
|
|
257
|
-
|
|
258
|
-
require('./UNSAFE_NavigationList/themes/redwood/NavigationListItemBaseTheme.css.js');
|
|
259
|
-
|
|
260
|
-
require('./UNSAFE_NavigationList/themes/redwood/NavigationListItemVariants.css.js');
|
|
261
|
-
|
|
262
268
|
require('./UNSAFE_TabBarCommon/themes/TabBarItemContract.css.js');
|
|
263
269
|
require('./UNSAFE_TabBarCommon/themes/OverflowTabBarItemStyles.css.js');
|
|
264
|
-
require('./NavigationListItem-3b9eb0fb.js');
|
|
265
|
-
require('./UNSAFE_NavigationList/themes/NavigationListStyles.css.js');
|
|
266
|
-
|
|
267
270
|
|
|
268
271
|
/**
|
|
269
272
|
* A thin wrapper around useTabBar hook
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UNSAFE_TabBarMixed.js","sources":["../../src/UNSAFE_TabBarMixed/useTabBarMixed.ts","../../src/UNSAFE_TabBarMixed/TabBarMixed.tsx","../../src/UNSAFE_TabBarMixed/TabBarMixedSeparator.tsx"],"sourcesContent":["import type { ComponentProps, ContextType, RefObject } from 'preact';\nimport type { TabBarContext, TabBarLayout } from '../UNSAFE_TabBarCommon';\nimport { TabBar } from '../UNSAFE_TabBar/TabBar';\nimport { useTabBar } from '../hooks/PRIVATE_useTabBar';\n\ntype TabBarContextValue = ContextType<typeof TabBarContext>;\n\nexport type useTabBarOptions = {\n class?: string;\n display?: TabBarContextValue['display'];\n edge?: 'bottom' | 'top';\n onRemove?: TabBarContextValue['onRemove'];\n onSelect?: TabBarContextValue['onSelect'];\n ref?: RefObject<HTMLDivElement>;\n selection?: TabBarContextValue['selection'];\n size?: TabBarContextValue['size'];\n children?: ComponentProps<typeof TabBarLayout>['children'];\n contextMenuConfig?: ComponentProps<typeof TabBar>['contextMenuConfig'];\n};\n\n/**\n * A thin wrapper around useTabBar hook\n */\nexport function useTabBarMixed(options: useTabBarOptions) {\n return useTabBar(options);\n}\n","import type { ComponentChildren } from 'preact';\nimport { useMemo, useRef, useCallback, useState } from 'preact/hooks';\nimport { Ref } from 'preact';\nimport { forwardRef, useImperativeHandle } from 'preact/compat';\nimport { TabBarContext, TabBarContextMenuConfig } from '../UNSAFE_TabBarCommon';\nimport { isMobile } from '#utils/UNSAFE_clientUtils';\nimport { styles } from './themes/TabBarMixedStyles.css';\nimport { useTabBarMixed as useTabBar } from './useTabBarMixed';\nimport { REMOVABLE_ITEM_ATTRIBUTE, getItemAttribute } from '../hooks/PRIVATE_useTabBar/useTabBar';\nimport { LiveRegion } from '../UNSAFE_LiveRegion';\nimport { HiddenAccessible } from '../UNSAFE_HiddenAccessible';\nimport { TabBarContextMenu } from '../UNSAFE_TabBar/TabBarContextMenu';\nimport { mergeProps } from '../utils/UNSAFE_mergeProps/mergeProps';\nimport { ConveyorBeltFocusContext } from '../UNSAFE_ConveyorBelt';\n\ntype UseTabBarOptions = Parameters<typeof useTabBar>[0];\n\n/**\n * Component props expected to be pased to **TabBarMixed**.\n *\n * @see {@link TabBarMixed}\n */\ntype TabBarMixedProps<K extends string | number> = {\n /**\n * Component children that will be rendered within the **TabBarMixed**\n * root element.\n *\n * It is expected that **TabBarLayout** and **ConveyorBelt** elements are\n * provided. The same **TabBarItem**, **RemovableTabBarItem**,\n * and **OverflowTabBarItem** elements should also be used.\n */\n children?: ComponentChildren;\n /**\n * Callback fired when a tab item is removed.\n */\n onRemove?: UseTabBarOptions['onRemove'];\n /**\n * Callback fired when a tab item is selected.\n */\n onSelect?: UseTabBarOptions['onSelect'];\n /**\n * The item key of the selected tab item.\n */\n selection?: K;\n /**\n * The height of the the tab bar.\n *\n * @default \"md\"\n */\n size?: UseTabBarOptions['size'];\n /**\n * An aria-label which defines a string value that labels this TabBarMixed.\n * Either aria-label or aria-labelledby should be specified in order to make TabBarMixed accessible.\n */\n 'aria-label'?: string;\n\n /**\n * An aria-labelledby which identifies the element(s) that labels this TabBarMixed.\n * Either aria-label or aria-labelledby should be specified in order to make TabBarMixed accessible.\n */\n 'aria-labelledby'?: string;\n};\n\nexport type FocusableHandle = {\n focus: () => void;\n blur: () => void;\n};\n\n/**\n * A navigation component that enables horizontal navigation between distinct content with a mixture of static and dynamic tabs.\n *\n * @param {TabBarMixedProps} props TabBarMixed component props.\n * @returns {JSX.Element} TabBarMixed component element.\n */\nexport const TabBarMixed = forwardRef(\n <K extends string | number>(\n props: TabBarMixedProps<K>,\n focusHandleRef?: Ref<FocusableHandle>\n ) => {\n const {\n children,\n onRemove,\n onSelect,\n selection,\n size,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby\n } = props;\n\n const rootRef = useRef<HTMLDivElement>(null);\n\n const isMobileDevice = isMobile();\n const defaultContextMenuConfig = useMemo<TabBarContextMenuConfig<string | number>>(() => {\n return {\n itemsRenderer: (context) => {\n //Only if context is available, it is a mobile device and it is removable item, we will return remove context menu item\n if (context) {\n const isRemovableItem =\n getItemAttribute(context.itemKey, rootRef.current!, REMOVABLE_ITEM_ATTRIBUTE) != null;\n if (isRemovableItem && isMobileDevice) {\n const defaultItems = context.defaultMenuItems;\n return <>{defaultItems}</>;\n }\n }\n return null;\n }\n };\n }, []);\n\n const {\n rootProps,\n tabBarContext,\n menuProps,\n contextMenuContext,\n contextMenuDescription,\n contextMenuDescriptionId,\n accStatusInfo\n } = useTabBar({\n class: styles.tabBarBase,\n edge: 'bottom',\n onRemove,\n onSelect,\n ref: rootRef,\n selection,\n size,\n children,\n contextMenuConfig: defaultContextMenuConfig\n });\n\n const isContextMenuAvailable = defaultContextMenuConfig != null && isMobileDevice;\n //Allows to call focus on rootRef without having to expose it\n useImperativeHandle(focusHandleRef!, () => ({\n focus: () => {\n if (rootRef.current) {\n rootRef.current.focus();\n }\n },\n blur: () => {\n if (rootRef.current) {\n rootRef.current.blur();\n }\n }\n }));\n\n const [isSuppressOverflowFocus, setIsSuppressOverflowFocus] = useState(false);\n\n const focusTabbarRoot = useCallback(() => {\n rootRef.current?.focus();\n }, []);\n\n // Begin a short window where overflow div should not be focusable.\n const beginTabPass = useCallback(() => {\n setIsSuppressOverflowFocus(true);\n }, []);\n\n // End that window after focus moves away.\n const endTabPass = useCallback(() => {\n setIsSuppressOverflowFocus(false);\n }, []);\n\n const onKeyDown = useCallback(\n (e: KeyboardEvent) => {\n // We only want to suppress overflow focus when the user is tabbing.\n if (e.key === 'Tab' && !e.shiftKey) {\n // Tell conveyor to make its overflow non-focusable (tabIndex = -1)\n beginTabPass?.();\n }\n },\n [beginTabPass]\n );\n\n const onBlur = useCallback(() => {\n // End that suppress overflow after focus moves away.\n endTabPass?.();\n }, [endTabPass]);\n\n const focusContext = useMemo(\n () => ({\n focusTabbarRoot,\n isSuppressOverflowFocus,\n beginTabPass,\n endTabPass\n }),\n [isSuppressOverflowFocus, focusTabbarRoot, beginTabPass, endTabPass]\n );\n\n const mergedRootProps = mergeProps(rootProps, { onKeyDown, onBlur });\n\n return (\n <ConveyorBeltFocusContext.Provider value={focusContext}>\n <TabBarContext.Provider value={tabBarContext}>\n <div aria-label={ariaLabel} aria-labelledby={ariaLabelledby} {...mergedRootProps}>\n {children}\n </div>\n </TabBarContext.Provider>\n {isContextMenuAvailable && contextMenuDescriptionId && contextMenuDescription && (\n <span id={contextMenuDescriptionId}>\n <HiddenAccessible>{contextMenuDescription}</HiddenAccessible>\n </span>\n )}\n {isContextMenuAvailable && accStatusInfo && <LiveRegion>{accStatusInfo}</LiveRegion>}\n {isContextMenuAvailable && (\n <TabBarContextMenu\n {...menuProps}\n contextMenuConfig={defaultContextMenuConfig}\n contextMenuContext={contextMenuContext!}\n />\n )}\n </ConveyorBeltFocusContext.Provider>\n );\n }\n);\n","import { View } from '../UNSAFE_View';\nimport { styles } from './themes/TabBarMixedSeparator.css';\n\nimport type { Size } from '../utils/UNSAFE_size';\n\ntype TabBarMixedSeparatorProps = {\n /**\n * Padding around the visual Separator line.\n */\n padding?: Size;\n};\n\n/**\n * TabBarMixedSeparator is a component that renders a visual separator (displayed\n * as a vertical line) between collections of tabs within TabBarMixed.\n *\n * @param {TabBarMixedSeparatorProps} props Component props for TabBarMixedSeparator.\n * @returns {JSX.Element} Component element for TabBarMixedSeparator.\n */\nexport function TabBarMixedSeparator(props: TabBarMixedSeparatorProps) {\n const { padding = 0 } = props;\n\n return (\n <View padding={[0, padding, 0, padding]}>\n <div class={styles.separator} role=\"presentation\" />\n </View>\n );\n}\n"],"names":["useTabBar","forwardRef","useRef","isMobile","useMemo","getItemAttribute","REMOVABLE_ITEM_ATTRIBUTE","_jsx","_Fragment","styles","useImperativeHandle","useState","useCallback","mergeProps","_jsxs","ConveyorBeltFocusContext","TabBarContext","HiddenAccessible","LiveRegion","TabBarContextMenu","View"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA;;AAEG;AACG,SAAU,cAAc,CAAC,OAAyB,EAAA;AACtD,IAAA,OAAOA,mBAAS,CAAC,OAAO,CAAC,CAAC;AAC5B;;AC2CA;;;;;AAKG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AC,EAAE,OAAO,CAAC,EAAA,QAAA,EACrCb,cAAK,CAAA,KAAA,EAAA,EAAA,KAAK,EAAEE,yDAAM,CAAC,SAAS,EAAE,IAAI,EAAC,cAAc,EAAG,CAAA,EAAA,CAC/C,EACP;AACJ;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"UNSAFE_TabBarMixed.js","sources":["../../src/UNSAFE_TabBarMixed/useTabBarMixed.ts","../../src/UNSAFE_TabBarMixed/TabBarMixed.tsx","../../src/UNSAFE_TabBarMixed/TabBarMixedSeparator.tsx"],"sourcesContent":["import type { ComponentProps, ContextType, RefObject } from 'preact';\nimport type { TabBarContext, TabBarLayout } from '../UNSAFE_TabBarCommon';\nimport { TabBar } from '../UNSAFE_TabBar/TabBar';\nimport { useTabBar } from '../hooks/PRIVATE_useTabBar';\n\ntype TabBarContextValue = ContextType<typeof TabBarContext>;\n\nexport type useTabBarOptions = {\n class?: string;\n display?: TabBarContextValue['display'];\n edge?: 'bottom' | 'top';\n onRemove?: TabBarContextValue['onRemove'];\n onSelect?: TabBarContextValue['onSelect'];\n ref?: RefObject<HTMLDivElement>;\n selection?: TabBarContextValue['selection'];\n size?: TabBarContextValue['size'];\n children?: ComponentProps<typeof TabBarLayout>['children'];\n contextMenuConfig?: ComponentProps<typeof TabBar>['contextMenuConfig'];\n};\n\n/**\n * A thin wrapper around useTabBar hook\n */\nexport function useTabBarMixed(options: useTabBarOptions) {\n return useTabBar(options);\n}\n","import type { ComponentChildren } from 'preact';\nimport { useMemo, useRef, useCallback, useState } from 'preact/hooks';\nimport { Ref } from 'preact';\nimport { forwardRef, useImperativeHandle } from 'preact/compat';\nimport { TabBarContext, TabBarContextMenuConfig } from '../UNSAFE_TabBarCommon';\nimport { isMobile } from '#utils/UNSAFE_clientUtils';\nimport { styles } from './themes/TabBarMixedStyles.css';\nimport { useTabBarMixed as useTabBar } from './useTabBarMixed';\nimport { REMOVABLE_ITEM_ATTRIBUTE, getItemAttribute } from '../hooks/PRIVATE_useTabBar/useTabBar';\nimport { LiveRegion } from '../UNSAFE_LiveRegion';\nimport { HiddenAccessible } from '../UNSAFE_HiddenAccessible';\nimport { TabBarContextMenu } from '../UNSAFE_TabBar/TabBarContextMenu';\nimport { mergeProps } from '../utils/UNSAFE_mergeProps/mergeProps';\nimport { ConveyorBeltFocusContext } from '../UNSAFE_ConveyorBelt';\n\ntype UseTabBarOptions = Parameters<typeof useTabBar>[0];\n\n/**\n * Component props expected to be pased to **TabBarMixed**.\n *\n * @see {@link TabBarMixed}\n */\ntype TabBarMixedProps<K extends string | number> = {\n /**\n * Component children that will be rendered within the **TabBarMixed**\n * root element.\n *\n * It is expected that **TabBarLayout** and **ConveyorBelt** elements are\n * provided. The same **TabBarItem**, **RemovableTabBarItem**,\n * and **OverflowTabBarItem** elements should also be used.\n */\n children?: ComponentChildren;\n /**\n * Callback fired when a tab item is removed.\n */\n onRemove?: UseTabBarOptions['onRemove'];\n /**\n * Callback fired when a tab item is selected.\n */\n onSelect?: UseTabBarOptions['onSelect'];\n /**\n * The item key of the selected tab item.\n */\n selection?: K;\n /**\n * The height of the the tab bar.\n *\n * @default \"md\"\n */\n size?: UseTabBarOptions['size'];\n /**\n * An aria-label which defines a string value that labels this TabBarMixed.\n * Either aria-label or aria-labelledby should be specified in order to make TabBarMixed accessible.\n */\n 'aria-label'?: string;\n\n /**\n * An aria-labelledby which identifies the element(s) that labels this TabBarMixed.\n * Either aria-label or aria-labelledby should be specified in order to make TabBarMixed accessible.\n */\n 'aria-labelledby'?: string;\n};\n\nexport type FocusableHandle = {\n focus: () => void;\n blur: () => void;\n};\n\n/**\n * A navigation component that enables horizontal navigation between distinct content with a mixture of static and dynamic tabs.\n *\n * @param {TabBarMixedProps} props TabBarMixed component props.\n * @returns {JSX.Element} TabBarMixed component element.\n */\nexport const TabBarMixed = forwardRef(\n <K extends string | number>(\n props: TabBarMixedProps<K>,\n focusHandleRef?: Ref<FocusableHandle>\n ) => {\n const {\n children,\n onRemove,\n onSelect,\n selection,\n size,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby\n } = props;\n\n const rootRef = useRef<HTMLDivElement>(null);\n\n const isMobileDevice = isMobile();\n const defaultContextMenuConfig = useMemo<TabBarContextMenuConfig<string | number>>(() => {\n return {\n itemsRenderer: (context) => {\n //Only if context is available, it is a mobile device and it is removable item, we will return remove context menu item\n if (context) {\n const isRemovableItem =\n getItemAttribute(context.itemKey, rootRef.current!, REMOVABLE_ITEM_ATTRIBUTE) != null;\n if (isRemovableItem && isMobileDevice) {\n const defaultItems = context.defaultMenuItems;\n return <>{defaultItems}</>;\n }\n }\n return null;\n }\n };\n }, []);\n\n const {\n rootProps,\n tabBarContext,\n menuProps,\n contextMenuContext,\n contextMenuDescription,\n contextMenuDescriptionId,\n accStatusInfo\n } = useTabBar({\n class: styles.tabBarBase,\n edge: 'bottom',\n onRemove,\n onSelect,\n ref: rootRef,\n selection,\n size,\n children,\n contextMenuConfig: defaultContextMenuConfig\n });\n\n const isContextMenuAvailable = defaultContextMenuConfig != null && isMobileDevice;\n //Allows to call focus on rootRef without having to expose it\n useImperativeHandle(focusHandleRef!, () => ({\n focus: () => {\n if (rootRef.current) {\n rootRef.current.focus();\n }\n },\n blur: () => {\n if (rootRef.current) {\n rootRef.current.blur();\n }\n }\n }));\n\n const [isSuppressOverflowFocus, setIsSuppressOverflowFocus] = useState(false);\n\n const focusTabbarRoot = useCallback(() => {\n rootRef.current?.focus();\n }, []);\n\n // Begin a short window where overflow div should not be focusable.\n const beginTabPass = useCallback(() => {\n setIsSuppressOverflowFocus(true);\n }, []);\n\n // End that window after focus moves away.\n const endTabPass = useCallback(() => {\n setIsSuppressOverflowFocus(false);\n }, []);\n\n const onKeyDown = useCallback(\n (e: KeyboardEvent) => {\n // We only want to suppress overflow focus when the user is tabbing.\n if (e.key === 'Tab' && !e.shiftKey) {\n // Tell conveyor to make its overflow non-focusable (tabIndex = -1)\n beginTabPass?.();\n }\n },\n [beginTabPass]\n );\n\n const onBlur = useCallback(() => {\n // End that suppress overflow after focus moves away.\n endTabPass?.();\n }, [endTabPass]);\n\n const focusContext = useMemo(\n () => ({\n focusTabbarRoot,\n isSuppressOverflowFocus,\n beginTabPass,\n endTabPass\n }),\n [isSuppressOverflowFocus, focusTabbarRoot, beginTabPass, endTabPass]\n );\n\n const mergedRootProps = mergeProps(rootProps, { onKeyDown, onBlur });\n\n return (\n <ConveyorBeltFocusContext.Provider value={focusContext}>\n <TabBarContext.Provider value={tabBarContext}>\n <div aria-label={ariaLabel} aria-labelledby={ariaLabelledby} {...mergedRootProps}>\n {children}\n </div>\n </TabBarContext.Provider>\n {isContextMenuAvailable && contextMenuDescriptionId && contextMenuDescription && (\n <span id={contextMenuDescriptionId}>\n <HiddenAccessible>{contextMenuDescription}</HiddenAccessible>\n </span>\n )}\n {isContextMenuAvailable && accStatusInfo && <LiveRegion>{accStatusInfo}</LiveRegion>}\n {isContextMenuAvailable && (\n <TabBarContextMenu\n {...menuProps}\n contextMenuConfig={defaultContextMenuConfig}\n contextMenuContext={contextMenuContext!}\n />\n )}\n </ConveyorBeltFocusContext.Provider>\n );\n }\n);\n","import { View } from '../UNSAFE_View';\nimport { styles } from './themes/TabBarMixedSeparator.css';\n\nimport type { Size } from '../utils/UNSAFE_size';\n\ntype TabBarMixedSeparatorProps = {\n /**\n * Padding around the visual Separator line.\n */\n padding?: Size;\n};\n\n/**\n * TabBarMixedSeparator is a component that renders a visual separator (displayed\n * as a vertical line) between collections of tabs within TabBarMixed.\n *\n * @param {TabBarMixedSeparatorProps} props Component props for TabBarMixedSeparator.\n * @returns {JSX.Element} Component element for TabBarMixedSeparator.\n */\nexport function TabBarMixedSeparator(props: TabBarMixedSeparatorProps) {\n const { padding = 0 } = props;\n\n return (\n <View padding={[0, padding, 0, padding]}>\n <div class={styles.separator} role=\"presentation\" />\n </View>\n );\n}\n"],"names":["useTabBar","forwardRef","useRef","isMobile","useMemo","getItemAttribute","REMOVABLE_ITEM_ATTRIBUTE","_jsx","_Fragment","styles","useImperativeHandle","useState","useCallback","mergeProps","_jsxs","ConveyorBeltFocusContext","TabBarContext","HiddenAccessible","LiveRegion","TabBarContextMenu","View"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA;;AAEG;AACG,SAAU,cAAc,CAAC,OAAyB,EAAA;AACtD,IAAA,OAAOA,mBAAS,CAAC,OAAO,CAAC,CAAC;AAC5B;;AC2CA;;;;;AAKG;AACU,MAAA,WAAW,GAAGC,iBAAU,CACnC,CACE,KAA0B,EAC1B,cAAqC,KACnC;IACF,MAAM,EACJ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,EAClC,GAAG,KAAK,CAAC;AAEV,IAAA,MAAM,OAAO,GAAGC,YAAM,CAAiB,IAAI,CAAC,CAAC;AAE7C,IAAA,MAAM,cAAc,GAAGC,oBAAQ,EAAE,CAAC;AAClC,IAAA,MAAM,wBAAwB,GAAGC,aAAO,CAA2C,MAAK;QACtF,OAAO;AACL,YAAA,aAAa,EAAE,CAAC,OAAO,KAAI;;gBAEzB,IAAI,OAAO,EAAE;AACX,oBAAA,MAAM,eAAe,GACnBC,0BAAgB,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,OAAQ,EAAEC,kCAAwB,CAAC,IAAI,IAAI,CAAC;AACxF,oBAAA,IAAI,eAAe,IAAI,cAAc,EAAE;AACrC,wBAAA,MAAM,YAAY,GAAG,OAA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A,cAAC,CAAAU,iCAAgB,EAAE,EAAA,QAAA,EAAA,sBAAsB,GAAoB,EACxD,CAAA,CACR,EACA,sBAAsB,IAAI,aAAa,IAAIV,eAACW,qBAAU,EAAA,EAAA,QAAA,EAAE,aAAa,EAAc,CAAA,EACnF,sBAAsB,KACrBX,cAAC,CAAAY,mCAAiB,EACZ,EAAA,GAAA,SAAS,EACb,iBAAiB,EAAE,wBAAwB,EAC3C,kBAAkB,EAAE,kBAAmB,GACvC,CACH,CAAA,EAAA,CACiC,EACpC;AACJ,CAAC;;ACtMH;;;;;;AAMG;AACG,SAAU,oBAAoB,CAAC,KAAgC,EAAA;AACnE,IAAA,MAAM,EAAE,OAAO,GAAG,CAAC,EAAE,GAAG,KAAK,CAAC;AAE9B,IAAA,QACEZ,cAAA,CAACa,SAAI,EAAA,EAAC,OAAO,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,CAAC,EAAA,QAAA,EACrCb,cAAK,CAAA,KAAA,EAAA,EAAA,KAAK,EAAEE,yDAAM,CAAC,SAAS,EAAE,IAAI,EAAC,cAAc,EAAG,CAAA,EAAA,CAC/C,EACP;AACJ;;;;;;;;;"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/* @oracle/oraclejet-preact: undefined */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var hooks = require('preact/hooks');
|
|
5
|
+
var usePress = require('./usePress-886180e4.js');
|
|
6
|
+
var mergeProps = require('./mergeProps-e3da7237.js');
|
|
7
|
+
var classNames = require('./classNames-c14c6ef3.js');
|
|
8
|
+
var useInteractionStyle = require('./useInteractionStyle-c203a8a0.js');
|
|
9
|
+
var useComponentTheme = require('./useComponentTheme-082fc8e4.js');
|
|
10
|
+
var preact = require('preact');
|
|
11
|
+
var mergeInterpolations = require('./mergeInterpolations-6727b536.js');
|
|
12
|
+
var flexitem = require('./flexitem-fee13e26.js');
|
|
13
|
+
var UNSAFE_NavigationListCommon_themes_redwood_NavigationListItemTheme = require('./UNSAFE_NavigationListCommon/themes/redwood/NavigationListItemTheme.js');
|
|
14
|
+
var useUser = require('./useUser-1295b5cb.js');
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @license
|
|
18
|
+
* Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.
|
|
19
|
+
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
20
|
+
* as shown at https://oss.oracle.com/licenses/upl/
|
|
21
|
+
* @ignore
|
|
22
|
+
*/
|
|
23
|
+
/**
|
|
24
|
+
* Context used to pass navlist information without having to pass it to navlist children props.
|
|
25
|
+
* We want to communicate information down to any interested navlist item children.
|
|
26
|
+
*/
|
|
27
|
+
const NavigationListContext = preact.createContext(null);
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @license
|
|
31
|
+
* Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.
|
|
32
|
+
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
33
|
+
* as shown at https://oss.oracle.com/licenses/upl/
|
|
34
|
+
* @ignore
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* Utility hook for consuming the NavigationListContext
|
|
38
|
+
*
|
|
39
|
+
* @returns The value of NavigationListContext provider
|
|
40
|
+
*/
|
|
41
|
+
function useNavigationListContext() {
|
|
42
|
+
return hooks.useContext(NavigationListContext);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const flexItemStyleInterpolations = mergeInterpolations.mergeInterpolations([
|
|
46
|
+
...Object.values(flexitem.flexitemInterpolations)
|
|
47
|
+
]);
|
|
48
|
+
const { class: labelContainerFlexItemClasses, ...labelContainerFlexItemStyle } = flexItemStyleInterpolations({
|
|
49
|
+
alignSelf: 'center'
|
|
50
|
+
});
|
|
51
|
+
function useNavigationListItem({ itemKey }) {
|
|
52
|
+
const { onSelectionChange, selection, currentKey, showFocusRing, navigationListItemPrefix, edge, display } = useNavigationListContext();
|
|
53
|
+
//Selection and focus state
|
|
54
|
+
const isCurrent = currentKey === itemKey;
|
|
55
|
+
const isSelected = selection === itemKey;
|
|
56
|
+
const isIconOnly = display === 'icons' ? true : false;
|
|
57
|
+
const isEdgeEnd = edge === 'end' ? true : false;
|
|
58
|
+
//Styling
|
|
59
|
+
const { interactionProps, applyPseudoHoverStyle, applyHoverStyle, applyActiveStyle } = useInteractionStyle.useInteractionStyle();
|
|
60
|
+
const { direction } = useUser.useUser();
|
|
61
|
+
const isRtl = direction === 'rtl';
|
|
62
|
+
const { classes: listItemClasses, styles: { labelContainerClasses, navigationItemStackedBadge, navigationItemStackedBadgeRtl, startIconStacked } } = useComponentTheme.useComponentTheme(UNSAFE_NavigationListCommon_themes_redwood_NavigationListItemTheme.NavigationListItemRedwoodTheme, {
|
|
63
|
+
focusRing: showFocusRing ? 'isFocusRing' : 'notFocusRing',
|
|
64
|
+
current: isCurrent ? 'isCurrent' : 'notCurrtent',
|
|
65
|
+
selected: isSelected ? 'isSelected' : 'notSelected',
|
|
66
|
+
direction: isRtl ? 'isRtl' : 'notRtl',
|
|
67
|
+
hybridHover: applyHoverStyle ? 'isHybridHover' : 'notHybridHover',
|
|
68
|
+
pseudoHover: applyPseudoHoverStyle ? 'isPseudoHover' : 'notPseudoHover',
|
|
69
|
+
active: applyActiveStyle ? 'isActive' : 'notActive',
|
|
70
|
+
edgeEnd: edge === 'end' ? 'isEnd' : 'notEnd',
|
|
71
|
+
iconOnly: isIconOnly ? 'isIconOnly' : 'notIconOnly'
|
|
72
|
+
});
|
|
73
|
+
const navigationItemIconOnlyClasses = classNames.classNames([startIconStacked]);
|
|
74
|
+
const navigationItemStackedBadgeClasses = classNames.classNames([
|
|
75
|
+
navigationItemStackedBadge,
|
|
76
|
+
direction === 'rtl' && navigationItemStackedBadgeRtl
|
|
77
|
+
]);
|
|
78
|
+
//Item handlers
|
|
79
|
+
const handlePress = hooks.useCallback(() => {
|
|
80
|
+
onSelectionChange?.({ value: itemKey, reason: 'pointer' });
|
|
81
|
+
}, [itemKey, onSelectionChange]);
|
|
82
|
+
//Legacy navlist makes selection on keyDown, but since preact tabbar made selection after keyUp, will do the same
|
|
83
|
+
//for preact navlist
|
|
84
|
+
const { pressProps } = usePress.usePress(handlePress);
|
|
85
|
+
return {
|
|
86
|
+
itemId: navigationListItemPrefix + itemKey,
|
|
87
|
+
itemHandlers: mergeProps.mergeProps(interactionProps, pressProps /*,onFocusProps*/),
|
|
88
|
+
itemClasses: classNames.classNames([listItemClasses]),
|
|
89
|
+
isSelected,
|
|
90
|
+
labelContainerClasses: classNames.classNames([labelContainerClasses, labelContainerFlexItemClasses]),
|
|
91
|
+
labelContainerStyle: labelContainerFlexItemStyle,
|
|
92
|
+
isIconOnly,
|
|
93
|
+
isEdgeEnd,
|
|
94
|
+
stackedBadgeClasses: classNames.classNames([navigationItemStackedBadgeClasses]),
|
|
95
|
+
iconOnlyClasses: classNames.classNames([navigationItemIconOnlyClasses]),
|
|
96
|
+
isCurrent,
|
|
97
|
+
showFocusRing
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
exports.NavigationListContext = NavigationListContext;
|
|
102
|
+
exports.useNavigationListContext = useNavigationListContext;
|
|
103
|
+
exports.useNavigationListItem = useNavigationListItem;
|
|
104
|
+
//# sourceMappingURL=useNavigationListItem-b97e76d5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useNavigationListItem-b97e76d5.js","sources":["../../src/UNSAFE_NavigationListCommon/NavigationListContext.ts","../../src/UNSAFE_NavigationListCommon/useNavigationListContext.ts","../../src/UNSAFE_NavigationListCommon/useNavigationListItem.ts"],"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';\nimport { NavigationListProps } from './NavigationListProps';\n\ntype CurrentKeyDetail<K> = {\n value: K;\n};\n\nexport type NavigationListContextProps<K extends string | number> = Pick<\n NavigationListProps<K>,\n 'selection' | 'onSelectionChange' | 'onRemove' | 'edge' | 'display'\n> & {\n currentKey?: K;\n showFocusRing: boolean;\n onCurrentKeyChange:\n | (<K extends string | number>(detail: CurrentKeyDetail<K>) => void)\n | undefined;\n navigationListItemPrefix: string;\n};\n\n/**\n * Context used to pass navlist information without having to pass it to navlist children props.\n * We want to communicate information down to any interested navlist item children.\n */\n\nconst NavigationListContext = createContext<NavigationListContextProps<string | number>>(null!);\n\nexport { NavigationListContext };\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 { NavigationListContext } from './NavigationListContext';\n\n/**\n * Utility hook for consuming the NavigationListContext\n *\n * @returns The value of NavigationListContext provider\n */\nfunction useNavigationListContext() {\n return useContext(NavigationListContext);\n}\n\nexport { useNavigationListContext };\n","import { useCallback } from 'preact/hooks';\n\nimport { usePress } from '../hooks/UNSAFE_usePress';\nimport { mergeProps } from '../utils/UNSAFE_mergeProps';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { useInteractionStyle } from '../hooks/UNSAFE_useInteractionStyle';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { useNavigationListContext } from './useNavigationListContext';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { FlexitemProps } from '../utils/UNSAFE_interpolations/flexitem';\nimport { flexitemInterpolations } from '../utils/UNSAFE_interpolations/flexitem';\nimport {\n NavigationListItemStyles,\n NavigationListItemVariantOptions\n} from '../UNSAFE_NavigationList/themes/NavigationListItemStyles.css';\nimport { NavigationListItemRedwoodTheme } from './themes/redwood/NavigationListItemTheme';\nimport { useUser } from '../hooks/UNSAFE_useUser';\n\nconst flexItemStyleInterpolations = mergeInterpolations<FlexitemProps>([\n ...Object.values(flexitemInterpolations)\n]);\nconst { class: labelContainerFlexItemClasses, ...labelContainerFlexItemStyle } =\n flexItemStyleInterpolations({\n alignSelf: 'center'\n });\n\nexport function useNavigationListItem<K extends string | number>({ itemKey }: { itemKey: K }) {\n const {\n onSelectionChange,\n selection,\n currentKey,\n showFocusRing,\n navigationListItemPrefix,\n edge,\n display\n } = useNavigationListContext();\n\n //Selection and focus state\n const isCurrent = currentKey === itemKey;\n\n const isSelected = selection === itemKey;\n\n const isIconOnly = display === 'icons' ? true : false;\n const isEdgeEnd = edge === 'end' ? true : false;\n\n //Styling\n const { interactionProps, applyPseudoHoverStyle, applyHoverStyle, applyActiveStyle } =\n useInteractionStyle();\n\n const { direction } = useUser();\n const isRtl = direction === 'rtl';\n\n const {\n classes: listItemClasses,\n styles: {\n labelContainerClasses,\n navigationItemStackedBadge,\n navigationItemStackedBadgeRtl,\n startIconStacked\n }\n } = useComponentTheme<NavigationListItemVariantOptions, NavigationListItemStyles>(\n NavigationListItemRedwoodTheme,\n {\n focusRing: showFocusRing ? 'isFocusRing' : 'notFocusRing',\n current: isCurrent ? 'isCurrent' : 'notCurrtent',\n selected: isSelected ? 'isSelected' : 'notSelected',\n direction: isRtl ? 'isRtl' : 'notRtl',\n hybridHover: applyHoverStyle ? 'isHybridHover' : 'notHybridHover',\n pseudoHover: applyPseudoHoverStyle ? 'isPseudoHover' : 'notPseudoHover',\n active: applyActiveStyle ? 'isActive' : 'notActive',\n edgeEnd: edge === 'end' ? 'isEnd' : 'notEnd',\n iconOnly: isIconOnly ? 'isIconOnly' : 'notIconOnly'\n }\n );\n\n const navigationItemIconOnlyClasses = classNames([startIconStacked]);\n\n const navigationItemStackedBadgeClasses = classNames([\n navigationItemStackedBadge,\n direction === 'rtl' && navigationItemStackedBadgeRtl\n ]);\n\n //Item handlers\n const handlePress = useCallback(() => {\n onSelectionChange?.({ value: itemKey as K, reason: 'pointer' });\n }, [itemKey, onSelectionChange]);\n\n //Legacy navlist makes selection on keyDown, but since preact tabbar made selection after keyUp, will do the same\n //for preact navlist\n const { pressProps } = usePress(handlePress);\n\n return {\n itemId: navigationListItemPrefix + itemKey,\n itemHandlers: mergeProps(interactionProps, pressProps /*,onFocusProps*/),\n itemClasses: classNames([listItemClasses]),\n isSelected,\n labelContainerClasses: classNames([labelContainerClasses, labelContainerFlexItemClasses]),\n labelContainerStyle: labelContainerFlexItemStyle,\n isIconOnly,\n isEdgeEnd,\n stackedBadgeClasses: classNames([navigationItemStackedBadgeClasses]),\n iconOnlyClasses: classNames([navigationItemIconOnlyClasses]),\n isCurrent,\n showFocusRing\n };\n}\n"],"names":["createContext","useContext","mergeInterpolations","flexitemInterpolations","useInteractionStyle","useUser","useComponentTheme","NavigationListItemRedwoodTheme","classNames","useCallback","usePress","mergeProps"],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;AAMG;AAqBH;;;AAGG;AAEH,MAAM,qBAAqB,GAAGA,oBAAa,CAA8C,IAAK;;AChC9F;;;;;;AAMG;AAKH;;;;AAIG;AACH,SAAS,wBAAwB,GAAA;AAC/B,IAAA,OAAOC,gBAAU,CAAC,qBAAqB,CAAC,CAAC;AAC3C;;ACAA,MAAM,2BAA2B,GAAGC,uCAAmB,CAAgB;AACrE,IAAA,GAAG,MAAM,CAAC,MAAM,CAACC,+BAAsB,CAAC;AACzC,CAAA,CAAC,CAAC;AACH,MAAM,EAAE,KAAK,EAAE,6BAA6B,EAAE,GAAG,2BAA2B,EAAE,GAC5E,2BAA2B,CAAC;AAC1B,IAAA,SAAS,EAAE,QAAQ;AACpB,CAAA,CAAC,CAAC;AAEW,SAAA,qBAAqB,CAA4B,EAAE,OAAO,EAAkB,EAAA;AAC1F,IAAA,MAAM,EACJ,iBAAiB,EACjB,SAAS,EACT,UAAU,EACV,aAAa,EACb,wBAAwB,EACxB,IAAI,EACJ,OAAO,EACR,GAAG,wBAAwB,EAAE,CAAC;;AA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AGA,qBAAU,CAAC;QACnD,0BAA0B;QAC1B,SAAS,KAAK,KAAK,IAAI,6BAA6B;AACrD,KAAA,CAAC,CAAC;;AAGH,IAAA,MAAM,WAAW,GAAGC,iBAAW,CAAC,MAAK;AACnC,QAAA,iBAAiB,GAAG,EAAE,KAAK,EAAE,OAAY,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;AAClE,KAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC;;;IAIjC,MAAM,EAAE,UAAU,EAAE,GAAGC,iBAAQ,CAAC,WAAW,CAAC,CAAC;IAE7C,OAAO;QACL,MAAM,EAAE,wBAAwB,GAAG,OAAO;QAC1C,YAAY,EAAEC,qBAAU,CAAC,gBAAgB,EAAE,UAAU,mBAAmB;AACxE,QAAA,WAAW,EAAEH,qBAAU,CAAC,CAAC,eAAe,CAAC,CAAC;QAC1C,UAAU;QACV,qBAAqB,EAAEA,qBAAU,CAAC,CAAC,qBAAqB,EAAE,6BAA6B,CAAC,CAAC;AACzF,QAAA,mBAAmB,EAAE,2BAA2B;QAChD,UAAU;QACV,SAAS;AACT,QAAA,mBAAmB,EAAEA,qBAAU,CAAC,CAAC,iCAAiC,CAAC,CAAC;AACpE,QAAA,eAAe,EAAEA,qBAAU,CAAC,CAAC,6BAA6B,CAAC,CAAC;QAC5D,SAAS;QACT,aAAa;KACd,CAAC;AACJ;;;;;;"}
|
|
@@ -15,6 +15,7 @@ import { A as Axis } from './Axis-e23d7b41.js';
|
|
|
15
15
|
import { u as useChartViewport } from './useChartViewport-03efd960.js';
|
|
16
16
|
import { u as useChartNav } from './useChartNav-49b52017.js';
|
|
17
17
|
import { m as mergeProps } from './mergeProps-88ea8306.js';
|
|
18
|
+
import { S as ScrollBar } from './ScrollBar-c7a5d361.js';
|
|
18
19
|
import { a as useSelectDrill, u as useChartDatatipAndCursor } from './useSelectDrill-f669e729.js';
|
|
19
20
|
import { u as useTestId } from './useTestId-f24ac480.js';
|
|
20
21
|
import { g as getChartVars } from './cssUtils-9e0e0351.js';
|
|
@@ -41,7 +42,6 @@ import { u as useTranslationBundle } from './useTranslationBundle-4822502f.js';
|
|
|
41
42
|
import { g as getTextAndDimsInfo, a as getAriaLabelGenerator, b as getTextAndBoundsUtil } from './useChartDatatip-8dd22b71.js';
|
|
42
43
|
import { createElement } from 'preact';
|
|
43
44
|
import { l } from './stringUtils-0fe25200.js';
|
|
44
|
-
import { S as ScrollBar } from './ScrollBar-c7a5d361.js';
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
47
|
* @license
|
|
@@ -749,4 +749,4 @@ const Chart = forwardRef(({ width, height, ...props }, ref = null) => {
|
|
|
749
749
|
});
|
|
750
750
|
|
|
751
751
|
export { Chart as C };
|
|
752
|
-
//# sourceMappingURL=Chart-
|
|
752
|
+
//# sourceMappingURL=Chart-8c63da28.js.map
|