@oracle/oraclejet-preact 20.0.6 → 20.0.7
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/{BarChart-ac13883f.js → BarChart-54a0a7e6.js} +2 -2
- package/amd/{BarChart-ac13883f.js.map → BarChart-54a0a7e6.js.map} +1 -1
- package/amd/{Chart-44c6404b.js → Chart-18ff7280.js} +2 -2
- package/amd/{Chart-44c6404b.js.map → Chart-18ff7280.js.map} +1 -1
- package/amd/{ComboChart-71b78e7f.js → ComboChart-bed13144.js} +2 -2
- package/amd/{ComboChart-71b78e7f.js.map → ComboChart-bed13144.js.map} +1 -1
- package/amd/{LineAreaChart-565c2a3c.js → LineAreaChart-39766a4b.js} +2 -2
- package/amd/{LineAreaChart-565c2a3c.js.map → LineAreaChart-39766a4b.js.map} +1 -1
- package/amd/NavigationListItem-672b4363.js +2 -0
- package/amd/{NavigationListItem-e59797c5.js.map → NavigationListItem-672b4363.js.map} +1 -1
- package/amd/{OverflowTabBar-6264d822.js → OverflowTabBar-fd567fb3.js} +2 -2
- package/amd/{OverflowTabBar-6264d822.js.map → OverflowTabBar-fd567fb3.js.map} +1 -1
- package/amd/{OverflowTabBarItem-551bc390.js → OverflowTabBarItem-ca1e2612.js} +2 -2
- package/amd/{OverflowTabBarItem-551bc390.js.map → OverflowTabBarItem-ca1e2612.js.map} +1 -1
- package/amd/PRIVATE_Chart.js +1 -1
- package/amd/{ScatterChart-86dc0c59.js → ScatterChart-568ef9fa.js} +2 -2
- package/amd/{ScatterChart-86dc0c59.js.map → ScatterChart-568ef9fa.js.map} +1 -1
- package/amd/Theme-redwood/theme.css +200 -200
- package/amd/Theme-stable/theme.css +229 -229
- package/amd/UNSAFE_BarChart/__test__/BarChart.spec.js +1 -1
- package/amd/UNSAFE_BarChart.js +1 -1
- package/amd/UNSAFE_ComboChart.js +1 -1
- package/amd/UNSAFE_LineAreaChart.js +1 -1
- package/amd/UNSAFE_NavigationList.js +1 -1
- package/amd/UNSAFE_OverflowTabBar.js +1 -1
- package/amd/UNSAFE_ScatterChart.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/cjs/{ColorPalette-158446ef.js → ColorPalette-975a3476.js} +2 -2
- package/cjs/{ColorPalette-158446ef.js.map → ColorPalette-975a3476.js.map} +1 -1
- package/cjs/{ColorPicker-d36881eb.js → ColorPicker-9608b09c.js} +2 -2
- package/cjs/{ColorPicker-d36881eb.js.map → ColorPicker-9608b09c.js.map} +1 -1
- package/cjs/Theme-redwood/theme.css +201 -201
- package/cjs/Theme-stable/theme.css +233 -233
- package/cjs/UNSAFE_BaseButton/themes/stable/BaseButtonTheme.js +0 -1
- package/cjs/UNSAFE_BaseButton/themes/stable/BaseButtonTheme.js.map +1 -1
- package/cjs/UNSAFE_ColorPalette.js +80 -80
- package/cjs/UNSAFE_ColorPicker.js +77 -77
- package/cjs/UNSAFE_InputColor.js +11 -11
- package/cjs/UNSAFE_TextArea.js +224 -109
- package/cjs/UNSAFE_TextArea.js.map +1 -1
- package/cjs/UNSAFE_TextAreaAutosize.js +3 -3
- package/cjs/UNSAFE_TextAreaAutosize.js.map +1 -1
- package/cjs/useTextAreaAltEnter-11424062.js +64 -0
- package/cjs/useTextAreaAltEnter-11424062.js.map +1 -0
- package/es/{BaseCardView-35315f78.js → BaseCardView-f262a5b4.js} +1 -4
- package/es/{BaseCardView-35315f78.js.map → BaseCardView-f262a5b4.js.map} +1 -1
- package/es/{Chart-74ef9942.js → Chart-b1338ecd.js} +2 -2
- package/es/{Chart-74ef9942.js.map → Chart-b1338ecd.js.map} +1 -1
- package/es/CheckboxSet-87ef81e2.js +51 -0
- package/es/CheckboxSet-87ef81e2.js.map +1 -0
- package/es/ConveyorBeltVariants.styles.css +6 -6
- package/es/ConveyorBeltVariants.styles2.css +6 -6
- package/es/DiagramStyles.styles2.css +16 -10
- package/es/DiagramStyles.styles3.css +10 -16
- package/es/PRIVATE_BaseCardView.js +1 -1
- package/es/PRIVATE_Chart.js +4 -4
- package/es/PRIVATE_CollapsibleNavigationList.js +25 -25
- package/es/PRIVATE_TableList.js +4 -4
- package/es/{TabBar-8672dd9f.js → TabBar-0105b4a0.js} +1 -3
- package/es/{TabBar-8672dd9f.js.map → TabBar-0105b4a0.js.map} +1 -1
- package/es/Theme-redwood/theme.css +540 -545
- package/es/Theme-stable/theme.css +444 -439
- package/es/UNSAFE_BarChart.js +4 -4
- package/es/UNSAFE_CardFlexView.js +1 -1
- package/es/UNSAFE_CardGridView.js +1 -1
- package/es/UNSAFE_CheckboxItem.js +123 -62
- package/es/UNSAFE_CheckboxItem.js.map +1 -1
- package/es/UNSAFE_CheckboxSet.js +15 -49
- package/es/UNSAFE_CheckboxSet.js.map +1 -1
- package/es/UNSAFE_ComboChart.js +4 -4
- package/es/UNSAFE_ContainerDiagram/themes/DiagramStyles.css.js +1 -1
- package/es/UNSAFE_ConveyorBelt/themes/redwood/ConveyorBeltTheme.js +1 -1
- package/es/UNSAFE_ConveyorBelt/themes/redwood/ConveyorBeltVariants.css.js +1 -1
- package/es/UNSAFE_ConveyorBelt/themes/stable/ConveyorBeltTheme.js +1 -1
- package/es/UNSAFE_ConveyorBelt/themes/stable/ConveyorBeltVariants.css.js +1 -1
- package/es/UNSAFE_ConveyorBelt.js +1 -1
- package/es/UNSAFE_Diagram/themes/DiagramStyles.css.js +1 -1
- package/es/UNSAFE_FlatTreeView.js +14 -14
- package/es/UNSAFE_LineAreaChart.js +4 -4
- package/es/UNSAFE_ListView.js +53 -53
- package/es/UNSAFE_OverflowTabBar.js +10 -10
- package/es/UNSAFE_ReorderableTabBar.js +12 -12
- package/es/UNSAFE_RichCheckboxSet.js +46 -42
- package/es/UNSAFE_RichCheckboxSet.js.map +1 -1
- package/es/UNSAFE_RichSelectionItem.js +153 -90
- package/es/UNSAFE_RichSelectionItem.js.map +1 -1
- package/es/UNSAFE_ScatterChart.js +4 -4
- package/es/UNSAFE_Switch/themes/redwood/SwitchBaseTheme.css.js +1 -1
- package/es/UNSAFE_Switch/themes/redwood/SwitchTheme.js +1 -1
- package/es/UNSAFE_Switch/themes/stable/SwitchBaseTheme.css.js +1 -1
- package/es/UNSAFE_Switch/themes/stable/SwitchTheme.js +1 -1
- package/es/UNSAFE_Switch.js +1 -1
- package/es/UNSAFE_TabBar.js +10 -10
- package/es/UNSAFE_TabBarMixed.js +8 -8
- package/es/UNSAFE_TextArea.js +227 -107
- package/es/UNSAFE_TextArea.js.map +1 -1
- package/es/UNSAFE_TextAreaAutosize.js +1 -1
- package/es/useTextAreaAltEnter-ac460f4c.js +61 -0
- package/es/useTextAreaAltEnter-ac460f4c.js.map +1 -0
- package/package.json +2 -2
- package/amd/NavigationListItem-e59797c5.js +0 -2
- package/cjs/TextArea-4d2df019.js +0 -230
- package/cjs/TextArea-4d2df019.js.map +0 -1
- package/es/CheckboxSetContext-1be56556.js +0 -9
- package/es/CheckboxSetContext-1be56556.js.map +0 -1
- package/es/TextArea-1d78b5d8.js +0 -226
- package/es/TextArea-1d78b5d8.js.map +0 -1
- /package/es/UNSAFE_Switch/themes/{redwood → stable}/SwitchBaseTheme.styles.css +0 -0
|
@@ -1,48 +1,42 @@
|
|
|
1
|
-
.
|
|
1
|
+
.DiagramStyles_outerStyles__1ep4hfg0 {
|
|
2
2
|
position: relative;
|
|
3
3
|
overflow: hidden;
|
|
4
4
|
-webkit-user-select: none;
|
|
5
5
|
-moz-user-select: none;
|
|
6
6
|
user-select: none;
|
|
7
7
|
}
|
|
8
|
-
.
|
|
8
|
+
.DiagramStyles_outerStyles__1ep4hfg0:focus-visible {
|
|
9
9
|
outline-width: 0px;
|
|
10
10
|
}
|
|
11
|
-
.
|
|
11
|
+
.DiagramStyles_layerStyles__1ep4hfg1 {
|
|
12
12
|
display: inline-block;
|
|
13
13
|
pointer-events: none;
|
|
14
14
|
position: absolute;
|
|
15
15
|
top: 0;
|
|
16
16
|
left: 0;
|
|
17
17
|
}
|
|
18
|
-
.
|
|
18
|
+
.DiagramStyles_nodeStyles__1ep4hfg2 {
|
|
19
19
|
position: absolute;
|
|
20
20
|
pointer-events: auto;
|
|
21
21
|
}
|
|
22
|
-
.
|
|
22
|
+
.DiagramStyles_linkStyles__1ep4hfg3 {
|
|
23
23
|
pointer-events: auto;
|
|
24
24
|
}
|
|
25
|
-
.
|
|
25
|
+
.DiagramStyles_labelStyle__1ep4hfg4 {
|
|
26
26
|
position: absolute;
|
|
27
27
|
}
|
|
28
|
-
.
|
|
29
|
-
position: absolute;
|
|
30
|
-
}
|
|
31
|
-
.DiagramStyles_labelBorderStyle__18tpn7n6 {
|
|
28
|
+
.DiagramStyles_labelBorderStyle__1ep4hfg5 {
|
|
32
29
|
border-style: solid;
|
|
33
30
|
}
|
|
34
|
-
.
|
|
35
|
-
position: absolute;
|
|
36
|
-
}
|
|
37
|
-
.DiagramStyles_dimmedItemStyle__18tpn7n8 {
|
|
31
|
+
.DiagramStyles_dimmedItemStyle__1ep4hfg6 {
|
|
38
32
|
opacity: var(--oj-c-dimmed-opacity);
|
|
39
33
|
}
|
|
40
|
-
.
|
|
34
|
+
.DiagramStyles_panZoomStyles__1ep4hfg7 {
|
|
41
35
|
transform-origin: top left;
|
|
42
36
|
position: relative;
|
|
43
37
|
pointer-events: none;
|
|
44
38
|
}
|
|
45
|
-
.
|
|
39
|
+
.DiagramStyles_dimensionStyle__1ep4hfg8 {
|
|
46
40
|
width: 100%;
|
|
47
41
|
height: calc(140 * var(--oj-c-size-units, 0.25rem));
|
|
48
42
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* @oracle/oraclejet-preact: undefined */
|
|
2
|
-
export { B as BaseCardView, a as getColCount, g as gutterSizeToPX } from './BaseCardView-
|
|
2
|
+
export { B as BaseCardView, a as getColCount, g as gutterSizeToPX } from './BaseCardView-f262a5b4.js';
|
|
3
3
|
import 'preact/jsx-runtime';
|
|
4
4
|
import 'preact';
|
|
5
5
|
import 'preact/compat';
|
package/es/PRIVATE_Chart.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* @oracle/oraclejet-preact: undefined */
|
|
2
|
-
export { C as Chart } from './Chart-
|
|
2
|
+
export { C as Chart } from './Chart-b1338ecd.js';
|
|
3
3
|
import 'preact/jsx-runtime';
|
|
4
4
|
import './PRIVATE_Chart/themes/ChartStyles.css.js';
|
|
5
5
|
import './ChartStyles.styles.css';
|
|
@@ -68,9 +68,6 @@ import './mergeProps-88ea8306.js';
|
|
|
68
68
|
import './useChartNav-49b52017.js';
|
|
69
69
|
import './layoutUtils-ec5be703.js';
|
|
70
70
|
import './useVisHover-d7a0b2f3.js';
|
|
71
|
-
import './ScrollBar-c7a5d361.js';
|
|
72
|
-
import './PRIVATE_ChartScrollBar/themes/ScrollBarStyles.css.js';
|
|
73
|
-
import './ScrollBarStyles.styles.css';
|
|
74
71
|
import './useSelectDrill-6b515558.js';
|
|
75
72
|
import './useChartDataCursor-f79f98ec.js';
|
|
76
73
|
import './hooks/PRIVATE_useChartDataCursor/themes/DataCursorStyles.css.js';
|
|
@@ -280,4 +277,7 @@ import './OverviewSlidingWindow-daac7a6a.js';
|
|
|
280
277
|
import './PRIVATE_VisOverview/themes/VisOverview.css.js';
|
|
281
278
|
import './VisOverview.styles.css';
|
|
282
279
|
import './DragH-e7527f33.js';
|
|
280
|
+
import './ScrollBar-c7a5d361.js';
|
|
281
|
+
import './PRIVATE_ChartScrollBar/themes/ScrollBarStyles.css.js';
|
|
282
|
+
import './ScrollBarStyles.styles.css';
|
|
283
283
|
//# sourceMappingURL=PRIVATE_Chart.js.map
|
|
@@ -4,6 +4,7 @@ import { u as useCurrentKey } from './useCurrentKey-38e5f097.js';
|
|
|
4
4
|
import { d as getPrevNextKeyUsingRef, k as keyExtractor, c as getItemKeysArray, b as getFirstVisibleKey } from './collectionUtils-609f73d6.js';
|
|
5
5
|
import { useContext, useCallback, useMemo, useRef, useState, useId, useEffect } from 'preact/hooks';
|
|
6
6
|
import { createContext } from 'preact';
|
|
7
|
+
import { E as Expander } from './Expander-0c60d26b.js';
|
|
7
8
|
import { F as Flex } from './Flex-fc483125.js';
|
|
8
9
|
import { m as mergeProps } from './mergeProps-88ea8306.js';
|
|
9
10
|
import { u as usePress } from './usePress-051f5adb.js';
|
|
@@ -21,7 +22,6 @@ import { u as useUser } from './useUser-e543b73c.js';
|
|
|
21
22
|
import { c as classNames } from './classNames-4e12b00d.js';
|
|
22
23
|
import { m as mergeInterpolations } from './mergeInterpolations-30cd9a69.js';
|
|
23
24
|
import { f as flexitemInterpolations } from './flexitem-7b7f7920.js';
|
|
24
|
-
import { E as Expander } from './Expander-0c60d26b.js';
|
|
25
25
|
import { u as useCollectionFocusRing } from './useCollectionFocusRing-c637c3da.js';
|
|
26
26
|
import { navigationListStyles } from './PRIVATE_CollapsibleNavigationList/themes/CollapsibleNavigationListStyles.css.js';
|
|
27
27
|
import './keys-49c92dbb.js';
|
|
@@ -111,10 +111,33 @@ import './PRIVATE_BaseSelector/themes/SelectorStyles.css.js';
|
|
|
111
111
|
import './SelectorStyles.styles.css';
|
|
112
112
|
import './CollectionInteractionContext-7cf19abc.js';
|
|
113
113
|
import './useCollectionInteractionContext-3895c632.js';
|
|
114
|
+
import './EmbeddedIconButton-8237a4ea.js';
|
|
115
|
+
import './BaseButton-feeaaf1c.js';
|
|
116
|
+
import './dimensions-e4fbc23d.js';
|
|
117
|
+
import './UNSAFE_BaseButton/themes/redwood/BaseButtonTheme.js';
|
|
118
|
+
import './UNSAFE_BaseButton/themes/BaseButtonStyles.css.js';
|
|
119
|
+
import './BaseButtonStyles.styles.css';
|
|
120
|
+
import './UNSAFE_BaseButton/themes/redwood/BaseButtonVariants.css.js';
|
|
121
|
+
import './UNSAFE_BaseButton/themes/redwood/BaseButtonBaseTheme.styles.css';
|
|
122
|
+
import './BareButton-1e3df7cb.js';
|
|
123
|
+
import './useBareButton-ff4bd21e.js';
|
|
124
|
+
import './usePressClick-945cc43b.js';
|
|
125
|
+
import './buttonUtils-55fb1df7.js';
|
|
126
|
+
import './id-83adac50.js';
|
|
127
|
+
import './ButtonLabelLayout-02656ee2.js';
|
|
128
|
+
import './useButtonLabelLayoutTheme-571bee49.js';
|
|
129
|
+
import './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutTheme.js';
|
|
130
|
+
import './UNSAFE_ButtonLabelLayout/themes/ButtonLabelLayoutStyles.css.js';
|
|
131
|
+
import './ButtonLabelLayoutStyles.styles.css';
|
|
132
|
+
import './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutBaseTheme.css.js';
|
|
133
|
+
import './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutBaseTheme.styles.css';
|
|
134
|
+
import './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutVariants.css.js';
|
|
135
|
+
import './ButtonLabelLayoutVariants.styles.css';
|
|
136
|
+
import './ChevronDown-63b88479.js';
|
|
137
|
+
import './ChevronRight-500bb8c7.js';
|
|
114
138
|
import './boxalignment-8980856d.js';
|
|
115
139
|
import './boxalignment.styles.css';
|
|
116
140
|
import './vanilla-extract-sprinkles-createRuntimeSprinkles.esm-2d655d37.js';
|
|
117
|
-
import './dimensions-e4fbc23d.js';
|
|
118
141
|
import './flexbox-529f25da.js';
|
|
119
142
|
import './flexbox.styles.css';
|
|
120
143
|
import './FlexStyles.styles.css';
|
|
@@ -138,29 +161,6 @@ import './_curry3-577eb45e.js';
|
|
|
138
161
|
import './_curry2-01c87f61.js';
|
|
139
162
|
import './_isObject-1fab0f5b.js';
|
|
140
163
|
import './flexitem.styles.css';
|
|
141
|
-
import './EmbeddedIconButton-8237a4ea.js';
|
|
142
|
-
import './BaseButton-feeaaf1c.js';
|
|
143
|
-
import './UNSAFE_BaseButton/themes/redwood/BaseButtonTheme.js';
|
|
144
|
-
import './UNSAFE_BaseButton/themes/BaseButtonStyles.css.js';
|
|
145
|
-
import './BaseButtonStyles.styles.css';
|
|
146
|
-
import './UNSAFE_BaseButton/themes/redwood/BaseButtonVariants.css.js';
|
|
147
|
-
import './UNSAFE_BaseButton/themes/redwood/BaseButtonBaseTheme.styles.css';
|
|
148
|
-
import './BareButton-1e3df7cb.js';
|
|
149
|
-
import './useBareButton-ff4bd21e.js';
|
|
150
|
-
import './usePressClick-945cc43b.js';
|
|
151
|
-
import './buttonUtils-55fb1df7.js';
|
|
152
|
-
import './id-83adac50.js';
|
|
153
|
-
import './ButtonLabelLayout-02656ee2.js';
|
|
154
|
-
import './useButtonLabelLayoutTheme-571bee49.js';
|
|
155
|
-
import './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutTheme.js';
|
|
156
|
-
import './UNSAFE_ButtonLabelLayout/themes/ButtonLabelLayoutStyles.css.js';
|
|
157
|
-
import './ButtonLabelLayoutStyles.styles.css';
|
|
158
|
-
import './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutBaseTheme.css.js';
|
|
159
|
-
import './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutBaseTheme.styles.css';
|
|
160
|
-
import './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutVariants.css.js';
|
|
161
|
-
import './ButtonLabelLayoutVariants.styles.css';
|
|
162
|
-
import './ChevronDown-63b88479.js';
|
|
163
|
-
import './ChevronRight-500bb8c7.js';
|
|
164
164
|
import './CollapsibleNavigationListStyles.styles.css';
|
|
165
165
|
|
|
166
166
|
/**
|
package/es/PRIVATE_TableList.js
CHANGED
|
@@ -39,8 +39,6 @@ import { u as useInteractionStyle } from './useInteractionStyle-99e32c23.js';
|
|
|
39
39
|
import { S as Selector } from './Selector-b7fa8b54.js';
|
|
40
40
|
import { textAlignStyles, verticalAlignStyles } from './PRIVATE_TableCommon/themes/Common.css.js';
|
|
41
41
|
import { listCellStylesHC, listCellStyles } from './PRIVATE_TableList/themes/ListCellStyles.css.js';
|
|
42
|
-
import './StyledCheckbox-8ca4a652.js';
|
|
43
|
-
import './SelectorStyles.styles.css';
|
|
44
42
|
import { listSkeletonStylesHC, listSkeletonStyles } from './PRIVATE_TableList/themes/ListSkeletonStyles.css.js';
|
|
45
43
|
import { d as dimensionInterpolations } from './dimensions-e4fbc23d.js';
|
|
46
44
|
import { m as mergeInterpolations } from './mergeInterpolations-30cd9a69.js';
|
|
@@ -93,8 +91,7 @@ import './useToggle-8b7fcefe.js';
|
|
|
93
91
|
import './useActive-fb6d4d52.js';
|
|
94
92
|
import './BaseSelector-9bbbaba1.js';
|
|
95
93
|
import './useFocus-38c95977.js';
|
|
96
|
-
import './
|
|
97
|
-
import './ListCellStyles.styles.css';
|
|
94
|
+
import './StyledCheckbox-8ca4a652.js';
|
|
98
95
|
import './Check-e656faf8.js';
|
|
99
96
|
import './Icon-96679294.js';
|
|
100
97
|
import './size-af1e638c.js';
|
|
@@ -129,6 +126,9 @@ import './UNSAFE_Checkbox/themes/redwood/CheckboxIconVariants.css.js';
|
|
|
129
126
|
import './CheckboxIconVariants.styles.css';
|
|
130
127
|
import './useTabbableMode-090ed4b5.js';
|
|
131
128
|
import './StyledCheckbox.styles.css';
|
|
129
|
+
import './PRIVATE_BaseSelector/themes/SelectorStyles.css.js';
|
|
130
|
+
import './SelectorStyles.styles.css';
|
|
131
|
+
import './ListCellStyles.styles.css';
|
|
132
132
|
import './ListSkeletonStyles.styles.css';
|
|
133
133
|
import './mergeDeepWithKey-33e3d1be.js';
|
|
134
134
|
import './_isObject-1fab0f5b.js';
|
|
@@ -38,8 +38,6 @@ import './CollectionInteractionContext-7cf19abc.js';
|
|
|
38
38
|
import './dropdownStyles.styles.css';
|
|
39
39
|
import './Sheet-b5910642.js';
|
|
40
40
|
import './OverflowTabBarItemStyles.styles.css';
|
|
41
|
-
import './StyledCheckbox-8ca4a652.js';
|
|
42
|
-
import './SelectorStyles.styles.css';
|
|
43
41
|
import { styles } from './UNSAFE_TabBar/themes/TabBarStyles.css.js';
|
|
44
42
|
import { u as useTabBar } from './useTabBar-c4e45980.js';
|
|
45
43
|
import { T as TabBarContextMenu } from './TabBarContextMenu-62d0c704.js';
|
|
@@ -69,4 +67,4 @@ const TabBar = forwardRef(({ children, layout = 'stretch', display = 'standard',
|
|
|
69
67
|
});
|
|
70
68
|
|
|
71
69
|
export { TabBar as T };
|
|
72
|
-
//# sourceMappingURL=TabBar-
|
|
70
|
+
//# sourceMappingURL=TabBar-0105b4a0.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabBar-
|
|
1
|
+
{"version":3,"file":"TabBar-0105b4a0.js","sources":["../../src/UNSAFE_TabBar/TabBar.tsx"],"sourcesContent":["import type { ComponentChildren, Ref, RefObject } from 'preact';\nimport { HiddenAccessible } from '../UNSAFE_HiddenAccessible';\nimport { LiveRegion } from '../UNSAFE_LiveRegion';\nimport { TabBarContext, TabBarLayout, TabBarContextMenuConfig } from '../UNSAFE_TabBarCommon';\nimport { styles } from './themes/TabBarStyles.css';\nimport { TestIdProps } from '../hooks/UNSAFE_useTestId';\nimport { useTabBar } from '../hooks/PRIVATE_useTabBar';\nimport { forwardRef } from 'preact/compat';\nimport { TabBarContextMenu } from './TabBarContextMenu';\nexport {\n TabBarItem,\n RemovableTabBarItem,\n OverflowTabBarItem,\n TabBarContext,\n useTabBarContext,\n TabBarLayout,\n useProgressiveTruncation,\n TabBarLinkItem\n} from '../UNSAFE_TabBarCommon';\n\n/**\n * type for payload of current key change event handler\n */\nexport type CurrentKeyDetail<K> = {\n value: K;\n};\n\n/**\n * type for payload of selection change event handler\n */\ntype SelectionDetail<K> = {\n value: K;\n};\n\n/**\n * type for payload of remove event handler\n */\ntype RemoveDetail<K> = {\n value: K;\n};\n\ntype DisplayProps =\n | {\n /**\n * Controls the content layout of the TabBarItem: 'standard' lays out the contents horizontally,\n *'icons' hides the label,\n */\n display?: 'standard' | 'icons';\n /**\n * The size indicates how tall the TabBarItem is rendered.\n * Note: It is not possible to specify 'size' when 'display=\"stacked\".\n */\n size?: 'md' | 'lg';\n }\n | {\n /**\n *'stacked' stacks the icon on top of the label.\n * Note: It is not possible to specify 'size' when 'display=\"stacked\".\n */\n display?: 'stacked';\n size?: 'never';\n };\n\nexport type TabBarProps<K extends string | number> = DisplayProps & {\n /**\n * A set of TabBarItem(s) that TabBar will hold\n */\n children: ComponentChildren;\n /**\n * Whether to stretch the tab bar items to occupy available space or to condense items\n */\n layout?: 'stretch' | 'condense';\n /**\n * The position of the TabBar. Valid Values: top and bottom.\n * 'top' is used when TabBar is placed on top of content section and the selection\n * indicator would be placed below the TabBarItem.\n * 'bottom' is used when TabBar is placed on bottom of content section and the selection\n * indicator would be placed above the TabBarItem.\n */\n edge?: 'top' | 'bottom';\n /**\n * Key of the selected item.\n */\n selection?: K;\n /**\n * Callback function to handle when user selects a tab.\n * The callback is also invoked when a user selects a tab that is already selected.\n */\n onSelect?: <K extends string | number>(detail: SelectionDetail<K>) => void;\n /**\n * Callback function to handle remove\n */\n onRemove?: <K extends string | number>(detail: RemoveDetail<K>) => void;\n /**\n * Accepts the ID of an element that provides instructions for interaction with the TabBar.\n */\n 'aria-describedby'?: string;\n /**\n * An aria-label which defines a string value that labels this TabBar.\n * Either aria-label or aria-labelledby should be specified in order to make TabBar accessible.\n */\n 'aria-label'?: string;\n\n /**\n * An aria-labelledby which identifies the element(s) that labels this TabBar.\n * Either aria-label or aria-labelledby should be specified in order to make TabBar accessible.\n */\n 'aria-labelledby'?: string;\n\n /**\n * Configuration used to specify a context menu.\n */\n contextMenuConfig?: TabBarContextMenuConfig<K>;\n};\n/**\n * A tab bar allows navigation between different content sections.\n */\nexport const TabBar = forwardRef(\n <K extends string | number>(\n {\n children,\n layout = 'stretch',\n display = 'standard',\n size = 'md',\n edge = 'top',\n selection,\n onSelect,\n onRemove,\n 'aria-describedby': ariaDescribedBy,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n contextMenuConfig\n }: TabBarProps<K> & TestIdProps,\n ref?: Ref<HTMLDivElement>\n ) => {\n const rootRef = ref as RefObject<HTMLDivElement>;\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: edge,\n onRemove,\n onSelect,\n ref: rootRef,\n selection,\n size,\n children,\n contextMenuConfig\n });\n\n const isContextMenuAvailable = contextMenuConfig != null;\n\n return (\n <>\n <TabBarContext.Provider value={tabBarContext}>\n <div\n {...rootProps}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n aria-haspopup={contextMenuConfig != null ? true : false}\n aria-describedby={\n isContextMenuAvailable && contextMenuDescriptionId\n ? ariaDescribedBy\n ? `${ariaDescribedBy} ${contextMenuDescriptionId}`\n : contextMenuDescriptionId\n : ariaDescribedBy\n }>\n <TabBarLayout layout={layout} display={display}>\n {children}\n </TabBarLayout>\n </div>\n </TabBarContext.Provider>\n {isContextMenuAvailable && contextMenuDescriptionId && (\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={contextMenuConfig}\n contextMenuContext={contextMenuContext!}\n />\n )}\n </>\n );\n }\n);\n"],"names":["_jsxs","_Fragment","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkHA;;AAEG;MACU,MAAM,GAAG,UAAU,CAC9B,CACE,EACE,QAAQ,EACR,MAAM,GAAG,SAAS,EAClB,OAAO,GAAG,UAAU,EACpB,IAAI,GAAG,IAAI,EACX,IAAI,GAAG,KAAK,EACZ,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,kBAAkB,EAAE,eAAe,EACnC,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,EACjC,iBAAiB,EACY,EAC/B,GAAyB,KACvB;IACF,MAAM,OAAO,GAAG,GAAgC,CAAC;AAEjD,IAAA,MAAM,EACJ,SAAS,EACT,aAAa,EACb,SAAS,EACT,kBAAkB,EAClB,sBAAsB,EACtB,wBAAwB,EACxB,aAAa,EACd,GAAG,SAAS,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC,UAAU;AACxB,QAAA,IAAI,EAAE,IAAI;QACV,QAAQ;QACR,QAAQ;AACR,QAAA,GAAG,EAAE,OAAO;QACZ,SAAS;QACT,IAAI;QACJ,QAAQ;QACR,iBAAiB;AAClB,KAAA,CAAC,CAAC;AAEH,IAAA,MAAM,sBAAsB,GAAG,iBAAiB,IAAI,IAAI,CAAC;AAEzD,IAAA,QACEA,IAAA,CAAAC,QAAA,EAAA,EAAA,QAAA,EAAA,CACEC,GAAC,CAAA,aAAa,CAAC,QAAQ,EAAA,EAAC,KAAK,EAAE,aAAa,EAAA,QAAA,EAC1CA,GACM,CAAA,KAAA,EAAA,EAAA,GAAA,SAAS,gBACD,SAAS,EAAA,iBAAA,EACJ,cAAc,EAAA,eAAA,EAChB,iBAAiB,IAAI,IAAI,GAAG,IAAI,GAAG,KAAK,EAErD,kBAAA,EAAA,sBAAsB,IAAI,wBAAwB;AAChD,0BAAE,eAAe;AACf,8BAAE,CAAA,EAAG,eAAe,CAAA,CAAA,EAAI,wBAAwB,CAAE,CAAA;AAClD,8BAAE,wBAAwB;AAC5B,0BAAE,eAAe,EAErB,QAAA,EAAAA,GAAA,CAAC,YAAY,EAAA,EAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAC3C,QAAA,EAAA,QAAQ,EACI,CAAA,EAAA,CACX,EACiB,CAAA,EACxB,sBAAsB,IAAI,wBAAwB,KACjDA,GAAM,CAAA,MAAA,EAAA,EAAA,EAAE,EAAE,wBAAwB,EAChC,QAAA,EAAAA,GAAA,CAAC,gBAAgB,EAAE,EAAA,QAAA,EAAA,sBAAsB,EAAoB,CAAA,EAAA,CACxD,CACR,EACA,sBAAsB,IAAI,aAAa,IAAIA,GAAC,CAAA,UAAU,EAAE,EAAA,QAAA,EAAA,aAAa,EAAc,CAAA,EACnF,sBAAsB,KACrBA,GAAC,CAAA,iBAAiB,EACZ,EAAA,GAAA,SAAS,EACb,iBAAiB,EAAE,iBAAiB,EACpC,kBAAkB,EAAE,kBAAmB,EAAA,CACvC,CACH,CAAA,EAAA,CACA,EACH;AACJ,CAAC;;;;"}
|