@oracle/oraclejet-preact 20.0.2 → 20.0.4
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-f429b382.js → BarChart-994cb8f0.js} +2 -2
- package/amd/{BarChart-f429b382.js.map → BarChart-994cb8f0.js.map} +1 -1
- package/amd/{Chart-57965de4.js → Chart-d9eafc7a.js} +2 -2
- package/amd/{Chart-57965de4.js.map → Chart-d9eafc7a.js.map} +1 -1
- package/amd/{ComboChart-c42ed049.js → ComboChart-5a6f6c8a.js} +2 -2
- package/amd/{ComboChart-c42ed049.js.map → ComboChart-5a6f6c8a.js.map} +1 -1
- 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/{LineAreaChart-48efb7f7.js → LineAreaChart-47fc17d2.js} +2 -2
- package/amd/{LineAreaChart-48efb7f7.js.map → LineAreaChart-47fc17d2.js.map} +1 -1
- package/amd/ListView-02a92d18.js +2 -0
- package/amd/{ListView-6d21e8f9.js.map → ListView-02a92d18.js.map} +1 -1
- package/amd/PRIVATE_Chart.js +1 -1
- package/amd/PRIVATE_SelectCommon.js +1 -1
- package/amd/{ScatterChart-6427e7ec.js → ScatterChart-7bd0f601.js} +2 -2
- package/amd/{ScatterChart-6427e7ec.js.map → ScatterChart-7bd0f601.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/Theme-redwood/theme.css +209 -209
- package/amd/Theme-stable/theme.css +160 -160
- 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_ExpandableList.js +1 -1
- package/amd/UNSAFE_InlineSelectSingle.js +1 -1
- package/amd/UNSAFE_LineAreaChart.js +1 -1
- package/amd/UNSAFE_ListView.js +1 -1
- package/amd/UNSAFE_ScatterChart.js +1 -1
- package/amd/UNSAFE_SelectMultiple.js +1 -1
- package/amd/UNSAFE_SelectSingle.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/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/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-4bc753a9.js} +3 -1
- package/{es/TabBar-67ca442c.js.map → cjs/TabBar-4bc753a9.js.map} +1 -1
- package/cjs/Theme-redwood/theme.css +146 -146
- package/cjs/Theme-stable/theme.css +311 -311
- package/cjs/UNSAFE_CardFlexView.js +1 -1
- package/cjs/UNSAFE_CardGridView.js +1 -1
- package/cjs/UNSAFE_ListView.js +53 -53
- package/cjs/UNSAFE_OverflowTabBar.js +10 -10
- package/cjs/UNSAFE_ReorderableTabBar.js +12 -12
- package/cjs/UNSAFE_TabBar.js +10 -10
- package/cjs/UNSAFE_TabBarMixed.js +8 -8
- package/es/{BaseCardView-b3d8bae0.js → BaseCardView-85b9a71e.js} +1 -4
- package/es/{BaseCardView-b3d8bae0.js.map → BaseCardView-85b9a71e.js.map} +1 -1
- package/es/ButtonLayoutVariants.styles.css +2 -2
- package/es/ButtonLayoutVariants.styles2.css +2 -2
- package/es/{Chart-b866a74c.js → Chart-8c63da28.js} +2 -2
- package/es/{Chart-b866a74c.js.map → Chart-8c63da28.js.map} +1 -1
- package/es/CheckboxSetContext-1be56556.js +9 -0
- package/es/CheckboxSetContext-1be56556.js.map +1 -0
- package/es/{ColorPicker-ae648c4c.js → ColorPicker-fa103067.js} +2 -2
- package/es/{ColorPicker-ae648c4c.js.map → ColorPicker-fa103067.js.map} +1 -1
- 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/SegmentStyles.styles.css +12 -9
- package/es/SegmentStyles.styles2.css +9 -12
- package/es/{TabBar-67ca442c.js → TabBar-10488830.js} +1 -3
- package/{cjs/TabBar-27ae2c21.js.map → es/TabBar-10488830.js.map} +1 -1
- package/es/Theme-redwood/theme.css +506 -506
- package/es/Theme-stable/theme.css +427 -427
- package/es/UNSAFE_BarChart.js +4 -4
- package/es/UNSAFE_ButtonLayout/themes/redwood/ButtonLayoutTheme.js +1 -1
- package/es/UNSAFE_ButtonLayout/themes/redwood/ButtonLayoutVariants.css.js +1 -1
- package/es/UNSAFE_ButtonLayout/themes/stable/ButtonLayoutTheme.js +1 -1
- package/es/UNSAFE_ButtonLayout/themes/stable/ButtonLayoutVariants.css.js +1 -1
- package/es/UNSAFE_ButtonLayout.js +1 -1
- package/es/UNSAFE_CardFlexView.js +1 -1
- package/es/UNSAFE_CardGridView.js +1 -1
- package/es/UNSAFE_CheckboxItem.js +61 -122
- package/es/UNSAFE_CheckboxItem.js.map +1 -1
- package/es/UNSAFE_CheckboxSet.js +49 -15
- package/es/UNSAFE_CheckboxSet.js.map +1 -1
- package/es/UNSAFE_ColorPicker.js +25 -25
- package/es/UNSAFE_ComboChart.js +4 -4
- package/es/UNSAFE_FlatTreeView.js +14 -14
- package/es/UNSAFE_InputColor.js +2 -2
- package/es/UNSAFE_InputDateMask/themes/SegmentStyles.css.js +1 -1
- package/es/UNSAFE_InputDateMask.js +1 -1
- package/es/UNSAFE_InputDatePicker.js +1 -1
- package/es/UNSAFE_InputTimeMask/themes/SegmentStyles.css.js +1 -1
- package/es/UNSAFE_InputTimeMask.js +1 -1
- 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 +42 -46
- package/es/UNSAFE_RichCheckboxSet.js.map +1 -1
- package/es/UNSAFE_RichSelectionItem.js +89 -152
- package/es/UNSAFE_RichSelectionItem.js.map +1 -1
- package/es/UNSAFE_ScatterChart.js +4 -4
- package/es/UNSAFE_TabBar.js +10 -10
- package/es/UNSAFE_TabBarMixed.js +8 -8
- package/es/UNSAFE_Toolbar.js +1 -1
- package/package.json +2 -2
- package/amd/ExpandableList-a9a86ad8.js +0 -2
- package/amd/ListView-6d21e8f9.js +0 -2
- package/amd/VirtualizedListView-1ae7151d.js +0 -2
- package/amd/useSelectCommon-a02ddf3c.js +0 -2
- package/es/CheckboxSet-3aab5935.js +0 -51
- package/es/CheckboxSet-3aab5935.js.map +0 -1
|
@@ -4,7 +4,6 @@ import { useRef, useCallback, useEffect, useMemo } from 'preact/hooks';
|
|
|
4
4
|
import './FormFieldContext-47ca0c20.js';
|
|
5
5
|
import { u as useFormFieldContext } from './useFormFieldContext-daf7a676.js';
|
|
6
6
|
import { u as useRichSelectionContext, b as useRichSelectionStartContext } from './RichSelectionStartContext-3fc472e0.js';
|
|
7
|
-
import { u as useCheckboxSetContext } from './CheckboxSet-3aab5935.js';
|
|
8
7
|
import { u as useRadioSetContext, a as useRadioItemContext } from './RadioItemContext-fe419b75.js';
|
|
9
8
|
import { T as TruncatingText } from './TruncatingText-1bf00351.js';
|
|
10
9
|
import { c as classNames } from './classNames-4e12b00d.js';
|
|
@@ -33,61 +32,43 @@ import { radioDisabledColor, radioDefaultColor } from './UNSAFE_RadioItem/themes
|
|
|
33
32
|
import { RadioIconRedwoodTheme } from './UNSAFE_RadioItem/themes/redwood/RadioIconTheme.js';
|
|
34
33
|
import { u as useTranslationBundle } from './useTranslationBundle-4822502f.js';
|
|
35
34
|
import { g as getRadioSelectionText } from './RadioItem-94909632.js';
|
|
35
|
+
import { u as useCheckboxSetContext } from './CheckboxSetContext-1be56556.js';
|
|
36
36
|
import { u as useFocusableTextField } from './useFocusableTextField-8fe41cd4.js';
|
|
37
37
|
import { S as StyledCard } from './StyledCard-77623731.js';
|
|
38
38
|
import 'preact';
|
|
39
|
-
import '
|
|
40
|
-
import './
|
|
41
|
-
import './
|
|
42
|
-
import './
|
|
43
|
-
import './
|
|
44
|
-
import './
|
|
45
|
-
import './
|
|
46
|
-
import './
|
|
47
|
-
import './
|
|
48
|
-
import './
|
|
49
|
-
import './
|
|
50
|
-
import './clientHints-a42b510c.js';
|
|
51
|
-
import './Selector-23bccbe7.js';
|
|
52
|
-
import './BaseSelector-7cbc48bc.js';
|
|
53
|
-
import './useActive-fb6d4d52.js';
|
|
39
|
+
import './useTooltipOnTruncation-94282e75.js';
|
|
40
|
+
import './useDetectTruncation-071767c7.js';
|
|
41
|
+
import './truncationUtils-e37f95ee.js';
|
|
42
|
+
import './useResizeObserver-13641643.js';
|
|
43
|
+
import './useAddBusyState-7a6af61f.js';
|
|
44
|
+
import './BusyStateContext-9ee9751d.js';
|
|
45
|
+
import './useBusyStateContext-4d3c27c0.js';
|
|
46
|
+
import './unsafeDomAccess-453eb74e.js';
|
|
47
|
+
import './useTooltip-94af94d4.js';
|
|
48
|
+
import './useTooltipControlled-f2cfa454.js';
|
|
49
|
+
import './useHover-85077adb.js';
|
|
54
50
|
import './useToggle-8b7fcefe.js';
|
|
55
51
|
import './useFocus-38c95977.js';
|
|
56
|
-
import './
|
|
52
|
+
import './useTouch-4828df25.js';
|
|
57
53
|
import './mergeProps-88ea8306.js';
|
|
58
|
-
import './
|
|
59
|
-
import './
|
|
60
|
-
import './
|
|
61
|
-
import './useCollectionInteractionContext-3895c632.js';
|
|
62
|
-
import './Label-5d1ae8d7.js';
|
|
54
|
+
import './useAnimation-fe39685e.js';
|
|
55
|
+
import './useThemeInterpolations-e144e8ec.js';
|
|
56
|
+
import './useColorScheme-c4f6caab.js';
|
|
63
57
|
import './LayerHost-7931b424.js';
|
|
64
58
|
import './index-aec1cc7f.js';
|
|
59
|
+
import 'preact/compat';
|
|
65
60
|
import './UNSAFE_Layer/themes/LayerHostStyles.css.js';
|
|
66
61
|
import './LayerHostStyles.styles.css';
|
|
67
|
-
import './UserAssistanceStyles.styles.css';
|
|
68
|
-
import './UNSAFE_UserAssistance/themes/redwood/UserAssistanceBaseTheme.styles.css';
|
|
69
|
-
import './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css.js';
|
|
70
|
-
import './vanilla-extract-recipes-createRuntimeFn.esm-2aaf8c98.js';
|
|
71
|
-
import './MessageBannerStyles.styles.css';
|
|
72
|
-
import './UNSAFE_MessageBanner/themes/redwood/MessageBannerBaseTheme.styles.css';
|
|
73
|
-
import './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css.js';
|
|
74
|
-
import './MessageBannerVariants.styles.css';
|
|
75
|
-
import './useTooltip-94af94d4.js';
|
|
76
|
-
import './useTooltipControlled-f2cfa454.js';
|
|
77
|
-
import './useTouch-4828df25.js';
|
|
78
|
-
import './useAnimation-fe39685e.js';
|
|
79
|
-
import './useThemeInterpolations-e144e8ec.js';
|
|
80
|
-
import './useColorScheme-c4f6caab.js';
|
|
81
62
|
import './useScale-434ad939.js';
|
|
82
63
|
import './theme-63551f30.js';
|
|
83
64
|
import './Theme-e6dec6db.js';
|
|
84
65
|
import './mergeInterpolations-30cd9a69.js';
|
|
85
66
|
import './mergeDeepWithKey-33e3d1be.js';
|
|
86
67
|
import './_curry3-577eb45e.js';
|
|
68
|
+
import './_curry1-63949a9b.js';
|
|
87
69
|
import './_curry2-01c87f61.js';
|
|
88
70
|
import './_isObject-1fab0f5b.js';
|
|
89
71
|
import './useDensity-1acb0153.js';
|
|
90
|
-
import './unsafeDomAccess-453eb74e.js';
|
|
91
72
|
import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentTheme.js';
|
|
92
73
|
import './hooks/UNSAFE_useTooltip/themes/TooltipContentStyles.css.js';
|
|
93
74
|
import './TooltipContentStyles.styles.css';
|
|
@@ -95,6 +76,7 @@ import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentBaseTheme.css.js'
|
|
|
95
76
|
import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentBaseTheme.styles.css';
|
|
96
77
|
import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css.js';
|
|
97
78
|
import './TooltipContentVariants.styles.css';
|
|
79
|
+
import './vanilla-extract-recipes-createRuntimeFn.esm-2aaf8c98.js';
|
|
98
80
|
import './tooltipUtils-af0abd38.js';
|
|
99
81
|
import './EnvironmentProvider-6a0a8212.js';
|
|
100
82
|
import './LayerManager-52a26c55.js';
|
|
@@ -109,6 +91,9 @@ import './Layer-535577b5.js';
|
|
|
109
91
|
import './UNSAFE_Layer/themes/LayerStyles.css.js';
|
|
110
92
|
import './LayerStyles.styles.css';
|
|
111
93
|
import './useModal-953082f2.js';
|
|
94
|
+
import './utils-b1eb54f9.js';
|
|
95
|
+
import './themeContract.css-1ffed3bf.js';
|
|
96
|
+
import './colorUtils-b3804ee8.js';
|
|
112
97
|
import './UNSAFE_Floating/themes/redwood/FloatingTheme.js';
|
|
113
98
|
import './UNSAFE_Floating/themes/FloatingStyles.css.js';
|
|
114
99
|
import './FloatingStyles.styles.css';
|
|
@@ -118,11 +103,72 @@ import './UNSAFE_Floating/themes/redwood/FloatingVariants.css.js';
|
|
|
118
103
|
import './vanilla-extract-dynamic.esm-c909758c.js';
|
|
119
104
|
import './UNSAFE_Floating/themes/FloatingContract.css.js';
|
|
120
105
|
import './useUnsafeDomElementRef-32290273.js';
|
|
106
|
+
import './logger-c92f309c.js';
|
|
107
|
+
import './UNSAFE_Text/themes/TextStyles.css.js';
|
|
108
|
+
import './TextStyles.styles.css';
|
|
109
|
+
import './clientHints-a42b510c.js';
|
|
110
|
+
import './RichSelectionItemStyles.styles.css';
|
|
111
|
+
import './borders-98a63040.js';
|
|
112
|
+
import './dimensions-e4fbc23d.js';
|
|
113
|
+
import './size-af1e638c.js';
|
|
114
|
+
import './flexitem-7b7f7920.js';
|
|
115
|
+
import './flexitem.styles.css';
|
|
116
|
+
import './vanilla-extract-sprinkles-createRuntimeSprinkles.esm-2d655d37.js';
|
|
117
|
+
import './colors-03807160.js';
|
|
118
|
+
import './padding-90265467.js';
|
|
119
|
+
import './aria-efa0582c.js';
|
|
120
|
+
import './equals-625352e8.js';
|
|
121
|
+
import './_isArray-694cc52d.js';
|
|
122
|
+
import './_isString-675f1de9.js';
|
|
123
|
+
import './AspectRatioStyles.styles.css';
|
|
124
|
+
import './UNSAFE_Avatar/themes/redwood/AvatarTheme.js';
|
|
125
|
+
import './UNSAFE_Avatar/themes/AvatarStyles.css.js';
|
|
126
|
+
import './AvatarStyles.styles.css';
|
|
127
|
+
import './UNSAFE_Avatar/themes/redwood/AvatarBaseTheme.css.js';
|
|
128
|
+
import './ImageVars.styles.css';
|
|
129
|
+
import './UNSAFE_Avatar/themes/redwood/AvatarBaseTheme.styles.css';
|
|
130
|
+
import './UNSAFE_Avatar/themes/redwood/AvatarVariants.css.js';
|
|
131
|
+
import './AvatarVariants.styles.css';
|
|
132
|
+
import './ImageVars.css-7b3180c8.js';
|
|
133
|
+
import './boxalignment-8980856d.js';
|
|
134
|
+
import './boxalignment.styles.css';
|
|
135
|
+
import './flexbox-529f25da.js';
|
|
136
|
+
import './flexbox.styles.css';
|
|
137
|
+
import './FlexStyles.styles.css';
|
|
138
|
+
import './useActive-fb6d4d52.js';
|
|
139
|
+
import './CheckboxOff-3359a12d.js';
|
|
140
|
+
import './Icon-4983d06e.js';
|
|
141
|
+
import './UNSAFE_Icon/themes/IconStyle.css.js';
|
|
121
142
|
import './IconStyle.styles.css';
|
|
143
|
+
import './CheckboxOn-930b64de.js';
|
|
144
|
+
import './CheckboxMixed-c4594250.js';
|
|
145
|
+
import './UNSAFE_Checkbox/themes/CheckboxIconContract.css.js';
|
|
146
|
+
import './UNSAFE_Checkbox/themes/redwood/CheckboxIconTheme.js';
|
|
147
|
+
import './UNSAFE_Checkbox/themes/CheckboxIconStyles.css.js';
|
|
148
|
+
import './CheckboxIconStyles.styles.css';
|
|
149
|
+
import './UNSAFE_Checkbox/themes/redwood/CheckboxIconBaseTheme.css.js';
|
|
150
|
+
import './UNSAFE_Checkbox/themes/redwood/CheckboxIconBaseTheme.styles.css';
|
|
151
|
+
import './UNSAFE_Checkbox/themes/redwood/CheckboxIconVariants.css.js';
|
|
152
|
+
import './CheckboxIconVariants.styles.css';
|
|
153
|
+
import './StyledCheckbox.styles.css';
|
|
154
|
+
import './HiddenAccessibleStyles.styles.css';
|
|
155
|
+
import './RadioStyles.styles.css';
|
|
156
|
+
import './UNSAFE_RadioItem/themes/RadioIconStyles.css.js';
|
|
157
|
+
import './RadioIconStyles.styles.css';
|
|
158
|
+
import './UNSAFE_RadioItem/themes/redwood/RadioIconBaseTheme.css.js';
|
|
159
|
+
import './UNSAFE_RadioItem/themes/redwood/RadioIconBaseTheme.styles.css';
|
|
160
|
+
import './UNSAFE_RadioItem/themes/redwood/RadioIconVariants.css.js';
|
|
161
|
+
import './RadioIconVariants.styles.css';
|
|
162
|
+
import './CheckboxRadioContext-fe425383.js';
|
|
163
|
+
import './UserAssistanceStyles.styles.css';
|
|
164
|
+
import './UNSAFE_UserAssistance/themes/redwood/UserAssistanceBaseTheme.styles.css';
|
|
165
|
+
import './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css.js';
|
|
166
|
+
import './MessageBannerStyles.styles.css';
|
|
167
|
+
import './UNSAFE_MessageBanner/themes/redwood/MessageBannerBaseTheme.styles.css';
|
|
168
|
+
import './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css.js';
|
|
169
|
+
import './MessageBannerVariants.styles.css';
|
|
122
170
|
import './IconButton-7f91481c.js';
|
|
123
171
|
import './BaseButton-41068c85.js';
|
|
124
|
-
import './dimensions-e4fbc23d.js';
|
|
125
|
-
import './size-af1e638c.js';
|
|
126
172
|
import './UNSAFE_BaseButton/themes/redwood/BaseButtonTheme.js';
|
|
127
173
|
import './UNSAFE_BaseButton/themes/BaseButtonStyles.css.js';
|
|
128
174
|
import './BaseButtonStyles.styles.css';
|
|
@@ -135,8 +181,6 @@ import './buttonUtils-55fb1df7.js';
|
|
|
135
181
|
import './id-83adac50.js';
|
|
136
182
|
import './ButtonLabelLayout-1631c997.js';
|
|
137
183
|
import './Text-834eb35e.js';
|
|
138
|
-
import './UNSAFE_Text/themes/TextStyles.css.js';
|
|
139
|
-
import './TextStyles.styles.css';
|
|
140
184
|
import './useButtonLabelLayoutTheme-448e671d.js';
|
|
141
185
|
import './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutTheme.js';
|
|
142
186
|
import './UNSAFE_ButtonLabelLayout/themes/ButtonLabelLayoutStyles.css.js';
|
|
@@ -145,14 +189,12 @@ import './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutBaseTheme.css
|
|
|
145
189
|
import './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutBaseTheme.styles.css';
|
|
146
190
|
import './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutVariants.css.js';
|
|
147
191
|
import './ButtonLabelLayoutVariants.styles.css';
|
|
148
|
-
import './logger-c92f309c.js';
|
|
149
192
|
import './MessageStyles.styles.css';
|
|
150
193
|
import './MessageFormattingUtils-cdb25115.js';
|
|
151
194
|
import './getLocale-1c41e86a.js';
|
|
152
195
|
import './stringUtils-0fe25200.js';
|
|
153
196
|
import './TransitionGroup-5fd80dc9.js';
|
|
154
197
|
import './MessagesContext-76544845.js';
|
|
155
|
-
import './HiddenAccessibleStyles.styles.css';
|
|
156
198
|
import './ComponentMessageStyles.styles.css';
|
|
157
199
|
import './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageBaseTheme.styles.css';
|
|
158
200
|
import './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageVariants.css.js';
|
|
@@ -161,8 +203,6 @@ import './Popup-992b6c27.js';
|
|
|
161
203
|
import './tabbableUtils-c8311ec6.js';
|
|
162
204
|
import './head-8f89fe66.js';
|
|
163
205
|
import './_arity-be492b9e.js';
|
|
164
|
-
import './_isArray-694cc52d.js';
|
|
165
|
-
import './_isString-675f1de9.js';
|
|
166
206
|
import './FocusTrap-b59d5752.js';
|
|
167
207
|
import './FocusTracker-70300f1c.js';
|
|
168
208
|
import './PRIVATE_FocusTracker/themes/FocusTrackerStyles.css.js';
|
|
@@ -190,126 +230,23 @@ import './UNSAFE_Popup/themes/redwood/PopupBaseTheme.css.js';
|
|
|
190
230
|
import './UNSAFE_Popup/themes/redwood/PopupBaseTheme.styles.css';
|
|
191
231
|
import './UNSAFE_Popup/themes/redwood/PopupVariants.css.js';
|
|
192
232
|
import './PopupStyles.styles.css';
|
|
193
|
-
import './colors-03807160.js';
|
|
194
233
|
import './UNSAFE_Separator/themes/SeparatorStyles.css.js';
|
|
195
234
|
import './SeparatorStyles.styles.css';
|
|
196
|
-
import './CompactLabelAssistance-e2fcfcab.js';
|
|
197
|
-
import './Help-32a9689a.js';
|
|
198
|
-
import './Icon-4983d06e.js';
|
|
199
|
-
import './UNSAFE_Icon/themes/IconStyle.css.js';
|
|
200
|
-
import './useFocusWithin-30b1e2d8.js';
|
|
201
|
-
import './UNSAFE_UserAssistance/themes/UserAssistanceStyles.css.js';
|
|
202
|
-
import './UNSAFE_Label/themes/redwood/LabelTheme.js';
|
|
203
|
-
import './UNSAFE_Label/themes/LabelStyles.css.js';
|
|
204
235
|
import './LabelStyles.styles.css';
|
|
205
|
-
import './UNSAFE_Label/themes/redwood/LabelBaseTheme.css.js';
|
|
206
236
|
import './UNSAFE_Label/themes/redwood/LabelBaseTheme.styles.css';
|
|
207
237
|
import './UNSAFE_Label/themes/redwood/LabelVariants.css.js';
|
|
208
|
-
import './
|
|
209
|
-
import './
|
|
210
|
-
import './
|
|
211
|
-
import './SkeletonStyles.styles.css';
|
|
212
|
-
import './TextFieldLoadingStyles.styles.css';
|
|
213
|
-
import './TextFieldStyles.styles.css';
|
|
214
|
-
import './UNSAFE_TextField/themes/redwood/TextFieldBaseTheme.css.js';
|
|
215
|
-
import './UNSAFE_TextField/themes/redwood/TextFieldBaseTheme.styles.css';
|
|
216
|
-
import './UNSAFE_TextField/themes/redwood/TextFieldVariants.css.js';
|
|
217
|
-
import './TextFieldVariants.styles.css';
|
|
238
|
+
import './IconUserAssistance-61978211.js';
|
|
239
|
+
import './Help-32a9689a.js';
|
|
240
|
+
import './UNSAFE_UserAssistance/themes/UserAssistanceStyles.css.js';
|
|
218
241
|
import './InlineHelp-9eaac91c.js';
|
|
219
242
|
import './UNSAFE_UserAssistance/themes/redwood/UserAssistanceTheme.js';
|
|
220
243
|
import './UNSAFE_UserAssistance/themes/redwood/UserAssistanceBaseTheme.css.js';
|
|
221
|
-
import './InlineUserAssistance-890293dd.js';
|
|
222
|
-
import './ComponentMessageContainer-d16c8b1f.js';
|
|
223
|
-
import './MessagesManager-47000438.js';
|
|
224
|
-
import './SuccessS-b5192d40.js';
|
|
225
|
-
import './ErrorS-3a890bf6.js';
|
|
226
|
-
import './InformationS-d53c2a91.js';
|
|
227
|
-
import './WarningS-3e53d87e.js';
|
|
228
|
-
import './PRIVATE_Message/themes/MessageStyles.css.js';
|
|
229
|
-
import './soundUtils-88264cb5.js';
|
|
230
|
-
import './useMessagesContext-9e1dbe91.js';
|
|
231
|
-
import './Transition-f9501682.js';
|
|
232
|
-
import './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageTheme.js';
|
|
233
|
-
import './UNSAFE_ComponentMessage/themes/ComponentMessageStyles.css.js';
|
|
234
|
-
import './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageBaseTheme.css.js';
|
|
235
|
-
import './useInputGroupContext-1d19411e.js';
|
|
236
|
-
import './CheckboxRadioFieldStyles.css-23f5791b.js';
|
|
237
|
-
import './useMessageSeverity-65295e8f.js';
|
|
238
|
-
import './CheckboxRadioFieldStyles.styles.css';
|
|
239
|
-
import './CheckboxRadioContext-fe425383.js';
|
|
240
|
-
import './LayoutStyles.css-6b02421a.js';
|
|
241
|
-
import './LayoutStyles.styles.css';
|
|
242
|
-
import './CheckboxRadioLabelValueLayout-e3845f16.js';
|
|
243
244
|
import './UNSAFE_RadioItem/themes/redwood/RadioTheme.js';
|
|
244
245
|
import './UNSAFE_RadioItem/themes/redwood/RadioBaseTheme.css.js';
|
|
245
246
|
import './UNSAFE_RadioItem/themes/redwood/RadioBaseTheme.styles.css';
|
|
246
247
|
import './UNSAFE_RadioItem/themes/redwood/RadioVariants.css.js';
|
|
247
|
-
import './RadioStyles.styles.css';
|
|
248
248
|
import './RadioVariants.styles.css';
|
|
249
|
-
import './
|
|
250
|
-
import './UNSAFE_TextField/themes/FormLayoutStyles.css.js';
|
|
251
|
-
import './UNSAFE_TextField/themes/redwood/FormLayoutBaseTheme.css.js';
|
|
252
|
-
import './UNSAFE_TextField/themes/redwood/FormLayoutBaseTheme.styles.css';
|
|
253
|
-
import './UNSAFE_Checkbox/themes/redwood/CheckboxTheme.js';
|
|
254
|
-
import './UNSAFE_Checkbox/themes/CheckboxStyles.css.js';
|
|
255
|
-
import './UNSAFE_Link/themes/redwood/LinkBaseTheme.styles.css';
|
|
256
|
-
import './CheckboxStyles.styles.css';
|
|
257
|
-
import './UNSAFE_Checkbox/themes/redwood/CheckboxBaseTheme.css.js';
|
|
258
|
-
import './UNSAFE_Checkbox/themes/redwood/CheckboxBaseTheme.styles.css';
|
|
259
|
-
import './UNSAFE_Checkbox/themes/redwood/CheckboxVariants.css.js';
|
|
260
|
-
import './CheckboxVariants.styles.css';
|
|
261
|
-
import './StyledLabelValueLayout-bb05f474.js';
|
|
262
|
-
import './LabelValueLayoutStyles.styles.css';
|
|
263
|
-
import './CheckboxRadioLabelValueLayoutStyles.styles.css';
|
|
264
|
-
import './formControlUtils-6fc3a497.js';
|
|
265
|
-
import './useTooltipOnTruncation-94282e75.js';
|
|
266
|
-
import './useDetectTruncation-071767c7.js';
|
|
267
|
-
import './useResizeObserver-13641643.js';
|
|
268
|
-
import './useAddBusyState-7a6af61f.js';
|
|
269
|
-
import './BusyStateContext-9ee9751d.js';
|
|
270
|
-
import './useBusyStateContext-4d3c27c0.js';
|
|
271
|
-
import './RichSelectionItemStyles.styles.css';
|
|
272
|
-
import './borders-98a63040.js';
|
|
273
|
-
import './flexitem-7b7f7920.js';
|
|
274
|
-
import './flexitem.styles.css';
|
|
275
|
-
import './vanilla-extract-sprinkles-createRuntimeSprinkles.esm-2d655d37.js';
|
|
276
|
-
import './padding-90265467.js';
|
|
277
|
-
import './aria-efa0582c.js';
|
|
278
|
-
import './equals-625352e8.js';
|
|
279
|
-
import './AspectRatioStyles.styles.css';
|
|
280
|
-
import './UNSAFE_Avatar/themes/redwood/AvatarTheme.js';
|
|
281
|
-
import './UNSAFE_Avatar/themes/AvatarStyles.css.js';
|
|
282
|
-
import './AvatarStyles.styles.css';
|
|
283
|
-
import './UNSAFE_Avatar/themes/redwood/AvatarBaseTheme.css.js';
|
|
284
|
-
import './ImageVars.styles.css';
|
|
285
|
-
import './UNSAFE_Avatar/themes/redwood/AvatarBaseTheme.styles.css';
|
|
286
|
-
import './UNSAFE_Avatar/themes/redwood/AvatarVariants.css.js';
|
|
287
|
-
import './AvatarVariants.styles.css';
|
|
288
|
-
import './ImageVars.css-7b3180c8.js';
|
|
289
|
-
import './boxalignment-8980856d.js';
|
|
290
|
-
import './boxalignment.styles.css';
|
|
291
|
-
import './flexbox-529f25da.js';
|
|
292
|
-
import './flexbox.styles.css';
|
|
293
|
-
import './FlexStyles.styles.css';
|
|
294
|
-
import './CheckboxOff-3359a12d.js';
|
|
295
|
-
import './CheckboxOn-930b64de.js';
|
|
296
|
-
import './CheckboxMixed-c4594250.js';
|
|
297
|
-
import './UNSAFE_Checkbox/themes/CheckboxIconContract.css.js';
|
|
298
|
-
import './UNSAFE_Checkbox/themes/redwood/CheckboxIconTheme.js';
|
|
299
|
-
import './UNSAFE_Checkbox/themes/CheckboxIconStyles.css.js';
|
|
300
|
-
import './CheckboxIconStyles.styles.css';
|
|
301
|
-
import './UNSAFE_Checkbox/themes/redwood/CheckboxIconBaseTheme.css.js';
|
|
302
|
-
import './UNSAFE_Checkbox/themes/redwood/CheckboxIconBaseTheme.styles.css';
|
|
303
|
-
import './UNSAFE_Checkbox/themes/redwood/CheckboxIconVariants.css.js';
|
|
304
|
-
import './CheckboxIconVariants.styles.css';
|
|
305
|
-
import './StyledCheckbox.styles.css';
|
|
306
|
-
import './UNSAFE_RadioItem/themes/RadioIconStyles.css.js';
|
|
307
|
-
import './RadioIconStyles.styles.css';
|
|
308
|
-
import './UNSAFE_RadioItem/themes/redwood/RadioIconBaseTheme.css.js';
|
|
309
|
-
import './UNSAFE_RadioItem/themes/redwood/RadioIconBaseTheme.styles.css';
|
|
310
|
-
import './UNSAFE_RadioItem/themes/redwood/RadioIconVariants.css.js';
|
|
311
|
-
import './RadioIconVariants.styles.css';
|
|
312
|
-
import './IconUserAssistance-61978211.js';
|
|
249
|
+
import './useFocusWithin-30b1e2d8.js';
|
|
313
250
|
import './PRIVATE_StyledCard/themes/StyledCardStyles.css.js';
|
|
314
251
|
import './StyledCardStyles.styles.css';
|
|
315
252
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UNSAFE_RichSelectionItem.js","sources":["../../src/UNSAFE_RichSelectionItem/RichSelectionTextContent.tsx","../../src/UNSAFE_RichSelectionItem/RichSelectionMediaItem.tsx","../../src/UNSAFE_RichSelectionItem/RichSelectionControl.tsx","../../src/UNSAFE_RichSelectionItem/RichSelectionItem.tsx"],"sourcesContent":["import { TruncatingText } from '#UNSAFE_TruncatingText';\nimport { classNames } from '#utils/UNSAFE_classNames';\nimport { styles } from './themes/RichSelectionItemStyles.css';\n\ntype RichSelectionTextContentProps = {\n secondaryTextId?: string;\n label?: string;\n secondaryText?: string;\n isDisabled?: boolean;\n // INFO: label truncates for 1 line in only XL\n isLayoutXL?: boolean;\n labelId: string;\n};\n\n// INFO: Label and SecondaryText Content handling\nexport const RichSelectionTextContent = ({\n secondaryTextId,\n isDisabled,\n isLayoutXL,\n label,\n labelId,\n secondaryText\n}: RichSelectionTextContentProps) => {\n const labelContent = (\n <TruncatingText\n variant={isDisabled ? 'disabled' : 'primary'}\n lineClamp={isLayoutXL ? 1 : 2}\n id={labelId}>\n {label}\n </TruncatingText>\n );\n const classes = classNames([\n isLayoutXL ? styles.densityWrapper : styles.growOneColumn,\n !isLayoutXL && !secondaryText && styles.labelOnly\n ]);\n\n return (\n <div className={classes}>\n {labelContent}\n {secondaryText && (\n <TruncatingText\n size=\"sm\"\n variant={isDisabled ? 'disabled' : 'secondary'}\n lineClamp={3}\n id={secondaryTextId}>\n {secondaryText}\n </TruncatingText>\n )}\n </div>\n );\n};\n","import { Avatar } from '#UNSAFE_Avatar';\nimport { styles } from './themes/RichSelectionItemStyles.css';\nimport { Center } from '#UNSAFE_Center';\nimport { View } from '#UNSAFE_View';\nimport { AspectRatio } from '#UNSAFE_AspectRatio';\nimport { TestIdProps, useTestId } from '#hooks/UNSAFE_useTestId';\nimport { RichSelectionMediaItemProps } from './RichSelectionTypes';\nimport { classNames } from '#utils/UNSAFE_classNames';\n\ntype DisabledType = {\n isDisabled?: boolean;\n};\n\ntype ThumbnailProps = TestIdProps &\n DisabledType &\n Pick<RichSelectionMediaItemProps, 'layout'> & {\n thumbnailSrc?: string;\n mediaAccessibleLabel?: string;\n };\n\nconst ThumbnailXL = ({\n thumbnailSrc,\n mediaAccessibleLabel,\n testId,\n isDisabled\n}: ThumbnailProps) => {\n const testIdProps = useTestId(testId ? `${testId}_thumbnail` : undefined);\n\n return (\n <AspectRatio ratio=\"4/3\">\n <img\n alt={mediaAccessibleLabel}\n className={classNames([styles.thumbnailImage, isDisabled && styles.mediaDisabledOpacity])}\n role={!mediaAccessibleLabel ? 'presentation' : undefined}\n src={thumbnailSrc}\n {...testIdProps}\n />\n </AspectRatio>\n );\n};\n\nconst Thumbnail = ({\n thumbnailSrc,\n mediaAccessibleLabel,\n layout,\n testId,\n isDisabled\n}: ThumbnailProps) => {\n const thumbnailClass = classNames([\n layout === 'md' ? styles.mdMediaVariant : styles.smMediaVariant,\n isDisabled && styles.mediaDisabledOpacity\n ]);\n const testIdProps = useTestId(testId ? `${testId}_thumbnail` : undefined);\n return (\n <img\n alt={mediaAccessibleLabel}\n className={thumbnailClass}\n role={!mediaAccessibleLabel ? 'presentation' : undefined}\n src={thumbnailSrc}\n {...testIdProps}\n />\n );\n};\n\nconst MediumRenderer = ({\n mediaAccessibleLabel,\n thumbnailSrc,\n layout,\n avatar,\n testId,\n isDisabled\n}: Partial<RichSelectionMediaItemProps> & DisabledType) => {\n const testIdProps = useTestId(testId ? `${testId}_medium` : undefined);\n let mediumMediaItem;\n\n if (avatar) {\n const avatarElement = (\n <Avatar {...avatar} aria-label={mediaAccessibleLabel} size=\"md\" {...testIdProps} />\n );\n mediumMediaItem = isDisabled ? (\n <span className={styles.mediaDisabledOpacity}>{avatarElement}</span>\n ) : (\n avatarElement\n );\n } else {\n mediumMediaItem = (\n <Thumbnail\n thumbnailSrc={thumbnailSrc}\n mediaAccessibleLabel={mediaAccessibleLabel}\n layout={layout}\n testId={testId}\n isDisabled={isDisabled}\n />\n );\n }\n\n return <Center>{mediumMediaItem}</Center>;\n};\n\nconst SmallRenderer = ({\n avatar,\n iconClass,\n isDisabled,\n layout,\n thumbnailSrc,\n mediaAccessibleLabel,\n testId\n}: RichSelectionMediaItemProps & DisabledType) => {\n const testIdProps = useTestId(testId ? `${testId}_small` : undefined);\n const { iconWrapper, iconEnabledColor, iconDisabledColor, mediaDisabledOpacity } = styles;\n let smallMediaItem;\n\n if (avatar) {\n const avatarElement = (\n <Avatar {...avatar} aria-label={mediaAccessibleLabel} size=\"xs\" {...testIdProps} />\n );\n smallMediaItem = isDisabled ? (\n <span className={mediaDisabledOpacity}>{avatarElement}</span>\n ) : (\n avatarElement\n );\n } else if (thumbnailSrc) {\n smallMediaItem = (\n <Thumbnail\n thumbnailSrc={thumbnailSrc}\n mediaAccessibleLabel={mediaAccessibleLabel}\n layout={layout}\n testId={testId}\n isDisabled={isDisabled}\n {...testIdProps}\n />\n );\n } else if (iconClass) {\n const classes = classNames([\n iconClass,\n iconWrapper,\n isDisabled ? iconDisabledColor : iconEnabledColor\n ]);\n smallMediaItem = <div class={classes} {...testIdProps}></div>;\n }\n\n return <Center>{smallMediaItem}</Center>;\n};\n\n// INFO: Media Item handling\nexport const RichSelectionMediaItem = ({\n avatar,\n iconClass,\n isDisabled,\n hasSecondaryText,\n mediaAccessibleLabel,\n layout,\n thumbnailSrc,\n testId\n}: RichSelectionMediaItemProps & DisabledType) => {\n if (!layout) {\n return null;\n }\n\n switch (layout) {\n case 'xl':\n return (\n <ThumbnailXL\n thumbnailSrc={thumbnailSrc}\n mediaAccessibleLabel={mediaAccessibleLabel}\n testId={testId}\n isDisabled={isDisabled}\n />\n );\n\n case 'md':\n const mediumMedia = avatar ? { avatar } : thumbnailSrc ? { thumbnailSrc } : undefined;\n return (\n <View alignSelf={hasSecondaryText ? 'start' : 'center'}>\n <MediumRenderer\n mediaAccessibleLabel={mediaAccessibleLabel}\n layout={layout}\n testId={testId}\n isDisabled={isDisabled}\n {...mediumMedia}\n />\n </View>\n );\n\n case 'sm':\n const smallMedia = avatar\n ? { avatar, mediaAccessibleLabel }\n : thumbnailSrc\n ? { thumbnailSrc, mediaAccessibleLabel }\n : iconClass\n ? { iconClass }\n : undefined;\n return (\n <View alignSelf={hasSecondaryText ? 'start' : 'center'}>\n <SmallRenderer {...smallMedia} layout={layout} testId={testId} isDisabled={isDisabled} />\n </View>\n );\n\n default:\n return null;\n }\n};\n","import type { RefObject } from 'preact';\nimport { useCallback, useEffect, useRef } from 'preact/hooks';\n\nimport { useComponentTheme } from '#hooks/UNSAFE_useComponentTheme';\nimport { useInteractionStyle } from '#hooks/UNSAFE_useInteractionStyle';\nimport { useTabbableMode } from '#hooks/UNSAFE_useTabbableMode';\nimport { StyledCheckbox } from '#PRIVATE_StyledCheckbox';\nimport { CheckIcon } from '#PRIVATE_ThemedIcons/CheckIcon';\nimport { RadioOffIcon } from '#PRIVATE_ThemedIcons/RadioOffIcon';\nimport { RadioOnIcon } from '#PRIVATE_ThemedIcons/RadioOnIcon';\nimport { useCheckboxSetContext } from '#UNSAFE_CheckboxSet';\nimport { HiddenAccessible } from '#UNSAFE_HiddenAccessible';\nimport { useRadioItemContext } from '#UNSAFE_RadioItem/RadioItemContext';\nimport { radioIconVars } from '#UNSAFE_RadioItem/themes/RadioIconContract.css';\nimport { RadioIconVariantOptions } from '#UNSAFE_RadioItem/themes/RadioIconStyles.css';\nimport { radioDefaultColor, radioDisabledColor } from '#UNSAFE_RadioItem/themes/RadioStyles.css';\nimport { RadioIconRedwoodTheme } from '#UNSAFE_RadioItem/themes/redwood/RadioIconTheme';\nimport { useRadioSetContext } from '#UNSAFE_RadioSet/RadioSetContext';\nimport { classNames } from '#utils/UNSAFE_classNames';\nimport { styles } from './themes/RichSelectionItemStyles.css';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '#resources/nls/bundle';\nimport { getRadioSelectionText } from '#UNSAFE_RadioItem/RadioItem';\n\n/**\n * Selective Element Props Type.\n */\ntype RichSelectionControlProps = {\n ariaLabel?: string; // JET-72374: The ariaLabel for RichSelection options is only used for creating the readonly text.\n value: string | number;\n inputRef?: RefObject<HTMLInputElement>;\n inputReadonlyRef?: RefObject<HTMLInputElement>;\n isFocus?: boolean;\n isLayoutXL?: boolean;\n isDisabled?: boolean;\n isReadonly?: boolean;\n isSelected?: boolean;\n describedBy?: string;\n labelledBy: string;\n onBlur?: (event: FocusEvent) => void;\n onFocus?: (event: FocusEvent) => void;\n};\n\nexport const RadioControl = ({\n ariaLabel,\n value,\n inputRef,\n isFocus,\n isDisabled,\n isLayoutXL,\n isReadonly,\n isSelected,\n describedBy,\n labelledBy,\n onBlur,\n onFocus\n}: RichSelectionControlProps) => {\n const { name, value: radioGroupValue, onCommit, setFocusIndex } = useRadioSetContext();\n\n const IconComp = isReadonly\n ? isSelected\n ? CheckIcon\n : RadioOffIcon\n : isSelected\n ? RadioOnIcon\n : RadioOffIcon;\n\n const spanRef = useRef<HTMLSpanElement>(null);\n const { interactionProps, applyActiveStyle } = useInteractionStyle();\n\n const onChangeHandler = useCallback(\n (event: Event) => {\n event.stopPropagation();\n onCommit?.({ previousValue: radioGroupValue, value });\n },\n [value, radioGroupValue, onCommit]\n );\n\n /**\n * When focused the view should have the respective RichSelectionItem.\n */\n useEffect(() => {\n const isActiveElement = document.activeElement === inputRef?.current;\n if (!isActiveElement && isFocus) {\n spanRef?.current?.scrollIntoView({ block: 'nearest' });\n }\n }, [inputRef, isFocus, spanRef]);\n\n const radioColor = isDisabled ? radioDisabledColor : radioDefaultColor;\n const { classes: radioIconClasses } = useComponentTheme<RadioIconVariantOptions>(\n RadioIconRedwoodTheme,\n {\n disabled: isDisabled ? 'isDisabled' : 'notDisabled',\n selected: isSelected ? 'isSelected' : 'notSelected',\n active: applyActiveStyle ? 'isActive' : 'notActive',\n richSelection: isLayoutXL ? 'isLayoutXL' : 'notLayoutXL'\n }\n );\n\n const { isTabbable } = useTabbableMode();\n const { index } = useRadioItemContext();\n const tabIndex =\n isTabbable !== false && ((index === 0 && !radioGroupValue) || isSelected) ? 0 : -1;\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const readonlyLabel = `${ariaLabel} ${translations.formControl_readOnly()} ${getRadioSelectionText(\n translations,\n !!isSelected\n )}`;\n\n const hiddenInput = (\n <HiddenAccessible>\n {isReadonly ? (\n <div\n aria-describedby={describedBy}\n data-checked={isSelected}\n ref={inputRef}\n tabIndex={tabIndex}\n onBlur={onBlur}\n onFocus={(event) => {\n setFocusIndex?.(index);\n onFocus?.(event);\n }}>\n {readonlyLabel}\n </div>\n ) : (\n <input\n type=\"radio\"\n name={name}\n value={value}\n {...(!isDisabled && {\n onChange: onChangeHandler\n })}\n checked={isSelected}\n disabled={isDisabled}\n aria-labelledby={labelledBy}\n aria-describedby={describedBy}\n tabIndex={tabIndex}\n onBlur={onBlur}\n onFocus={onFocus}\n ref={inputRef}\n />\n )}\n </HiddenAccessible>\n );\n\n // Radio control is visually hidden in readonly mode unless it is selected\n if (!isSelected && isReadonly) {\n return <span class={styles.inputElement}>{hiddenInput}</span>;\n }\n\n return (\n <span\n ref={spanRef}\n class={classNames([radioColor, isLayoutXL ? styles.radioWrapper : undefined])}>\n {hiddenInput}\n <span aria-hidden=\"true\" class={radioIconClasses} {...interactionProps}>\n <IconComp size={radioIconVars.iconSize} color=\"currentColor\" />\n </span>\n </span>\n );\n};\n\nexport const CheckboxControl = ({\n ariaLabel,\n value,\n inputRef,\n inputReadonlyRef,\n isSelected,\n isLayoutXL,\n isDisabled,\n isReadonly,\n describedBy,\n labelledBy,\n onBlur,\n onFocus\n}: RichSelectionControlProps) => {\n const { name } = useCheckboxSetContext();\n const { isTabbable } = useTabbableMode();\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n\n const checkboxStyles = isLayoutXL ? styles.checkboxWrapper : styles.checkboxAlign;\n // JET-72374: We can't use the label content on its own for readonly because we also need to provide the state of the checkbox.\n const readonlyLabel = `${ariaLabel} ${translations.formControl_readOnly()} ${\n isSelected ? translations.checkbox_selected() : translations.checkbox_unselected()\n }`;\n\n // Checkbox control is visually hidden in readonly mode unless it is selected\n if (!isSelected && isReadonly) {\n return (\n <span class={styles.inputElement}>\n <HiddenAccessible>\n <div\n onBlur={onBlur}\n onFocus={onFocus}\n ref={inputReadonlyRef}\n tabIndex={isTabbable ? 0 : -1}>\n {readonlyLabel}\n </div>\n </HiddenAccessible>\n </span>\n );\n }\n\n return (\n <span class={checkboxStyles}>\n <StyledCheckbox\n aria-describedby={describedBy}\n isDisabled={isDisabled}\n isReadonly={isReadonly}\n isChecked={isSelected ? 'checked' : 'unchecked'}\n name={name}\n value={value}\n onBlur={onBlur}\n onFocus={onFocus}\n ref={isReadonly ? inputReadonlyRef : inputRef}\n {...(isReadonly ? { 'aria-label': readonlyLabel } : { 'aria-labelledby': labelledBy })}\n />\n </span>\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 */\nimport { useCallback, useEffect, useMemo, useRef } from 'preact/hooks';\n\nimport { useFormFieldContext } from '#hooks/UNSAFE_useFormFieldContext';\nimport { useRichSelectionContext } from '#PRIVATE_RichSelectionCommon/RichSelectionContext';\nimport { StyledCard } from '#PRIVATE_StyledCard';\nimport { useCheckboxSetContext } from '#UNSAFE_CheckboxSet';\nimport { useRadioSetContext } from '#UNSAFE_RadioSet/RadioSetContext';\nimport { RichSelectionTextContent } from './RichSelectionTextContent';\nimport { RichSelectionMediaItem } from './RichSelectionMediaItem';\nimport { Flex } from '#UNSAFE_Flex';\nimport { styles } from './themes/RichSelectionItemStyles.css';\nimport { useId } from '#hooks/UNSAFE_useId';\nimport { useFormContext } from '#hooks/UNSAFE_useFormContext';\nimport { usePress } from '#hooks/UNSAFE_usePress';\nimport { RadioControl, CheckboxControl } from './RichSelectionControl';\nimport { type RichSelectionItemData } from './RichSelectionTypes';\nimport { useFocusableTextField } from '#hooks/UNSAFE_useFocusableTextField';\nimport { useRichSelectionStartContext } from '#PRIVATE_RichSelectionCommon/RichSelectionStartContext';\nimport { classNames } from '#utils/UNSAFE_classNames';\nimport { type TestIdProps } from '#hooks/UNSAFE_useTestId';\nimport { useRadioItemContext } from '#UNSAFE_RadioItem/RadioItemContext';\n\ntype RichSelectionItemProps<V extends string | number> = RichSelectionItemData<V> &\n TestIdProps & {\n /**\n * Specifies if the card is read-only.\n */\n isReadonly?: boolean;\n };\n\nconst onMouseDown = (event: Event) => {\n // Prevent focus from going to the body when the user clicks something within\n // the card that is not focusable. This is important because we are detecting\n // focus loss on the core pack side and showing hidden messages.\n event.preventDefault();\n};\n\n/**\n * `RichSelectionItem` is a customizable input card element used in selection interfaces. It can display a label,\n * optional secondary text, and media (such as an avatar, thumbnail, or icon). It supports both radio and checkbox\n * controls, allowing users to make a single or multiple selections, respectively. The component also handles\n * different states such as disabled, readonly, and focus, and renders dynamically based on layout( 'xl', 'md', or 'sm').\n */\nexport const RichSelectionItem = <V extends string | number>({\n avatar,\n iconClass,\n isReadonly: propsIsReadonly,\n mediaAccessibleLabel,\n secondaryText,\n thumbnailSrc,\n label,\n value,\n testId\n}: RichSelectionItemProps<V>) => {\n const { isReadonly: isFormReadonly, isDisabled: isFormDisabled } = useFormContext();\n const styledCardRef = useRef<HTMLDivElement>(null);\n const inputRef = useRef<HTMLInputElement>(null);\n const inputReadonlyRef = useRef<HTMLInputElement>(null);\n const { selection, layout, messageSeverity } = useRichSelectionContext()!;\n const { isDisabled: isFieldDisabled, isReadonly: isFieldReadonly } = useFormFieldContext();\n const { value: radioGroupValue, onCommit: onRadioCommit, setFocusIndex } = useRadioSetContext();\n const { value: checkboxGroupValue, onCommit: onCheckboxCommit } = useCheckboxSetContext();\n const { index } = useRadioItemContext();\n\n // Determining selection state for error\n const styledCardVariant = messageSeverity === 'error' ? 'danger' : undefined;\n const isDisabled = isFieldDisabled ?? isFormDisabled;\n const isReadonly = isFieldReadonly || isFormReadonly || propsIsReadonly;\n const isEnabled = !isDisabled && !isReadonly;\n const id = useId();\n const isLayoutXL = layout === 'xl';\n const hasMedia = !!avatar || !!thumbnailSrc || !!iconClass;\n const labelId = `${id}-labelled-text`;\n const secondaryTextId = secondaryText ? `${id}-secondary-text` : undefined;\n const isSingleSelection = selection === 'single';\n const isSelected = isSingleSelection\n ? radioGroupValue === value\n : !!checkboxGroupValue?.has(value);\n\n const {\n isFocused: isFocus,\n focusProps: { onFocusIn, onFocusOut },\n methods\n } = useFocusableTextField({\n enabledElementRef: inputRef,\n readonlyElementRef: inputReadonlyRef,\n isReadonly,\n isDisabled\n });\n\n // Scroll into view when the RichSelectionItem is focused\n useEffect(() => {\n if (isFocus) {\n styledCardRef?.current?.scrollIntoView({ block: 'nearest' });\n }\n }, [isFocus, styledCardRef]);\n\n // Text content of label and secondaryText rendering\n const textContent = (\n <RichSelectionTextContent\n secondaryTextId={secondaryTextId}\n labelId={labelId}\n isDisabled={isDisabled}\n isLayoutXL={isLayoutXL}\n label={label}\n secondaryText={secondaryText}\n />\n );\n\n // Media content rendering based on available media props respective to layout\n const media = avatar\n ? { avatar, mediaAccessibleLabel, layout: layout as 'md' | 'sm' }\n : thumbnailSrc\n ? { thumbnailSrc, mediaAccessibleLabel, layout: layout as 'xl' | 'md' | 'sm' }\n : iconClass\n ? { iconClass, layout: layout as 'sm' }\n : undefined;\n\n const mediaContent = hasMedia ? (\n <RichSelectionMediaItem\n {...media}\n isDisabled={isDisabled}\n hasSecondaryText={!!secondaryText}\n testId={testId ? `${testId}_media` : undefined}\n />\n ) : undefined;\n\n // Selection control rendering (radio or checkbox)\n const selectionControl = (\n <Flex align={secondaryText ? 'start' : 'center'}>\n {isSingleSelection ? (\n <RadioControl\n ariaLabel={label}\n onFocus={onFocusIn}\n onBlur={onFocusOut}\n value={value}\n inputRef={inputRef}\n isFocus={isFocus}\n isLayoutXL={isLayoutXL}\n isDisabled={isDisabled}\n isReadonly={isReadonly}\n isSelected={isSelected}\n describedBy={secondaryTextId}\n labelledBy={`${id}-labelled-text`}\n />\n ) : (\n <CheckboxControl\n ariaLabel={label}\n onFocus={onFocusIn}\n onBlur={onFocusOut}\n value={value}\n inputRef={inputRef}\n inputReadonlyRef={inputReadonlyRef}\n isFocus={isFocus}\n isDisabled={isDisabled}\n isLayoutXL={isLayoutXL}\n isReadonly={isReadonly}\n isSelected={isSelected}\n describedBy={secondaryTextId}\n labelledBy={`${id}-labelled-text`}\n />\n )}\n </Flex>\n );\n\n // Handler for checkbox selection changes\n const triggerCheckBoxAction = useCallback(() => {\n // if selected from a click, we need to manually set focus on the input to allow for keyboard navigation\n methods.focus();\n\n const newGroupValue = new Set(checkboxGroupValue);\n // If the value is already selected, remove it; otherwise, add it\n if (newGroupValue.has(value)) {\n newGroupValue.delete(value);\n } else {\n newGroupValue.add(value);\n }\n onCheckboxCommit?.({\n previousValue: checkboxGroupValue,\n value: newGroupValue.size > 0 ? newGroupValue : undefined\n });\n }, [checkboxGroupValue, methods, onCheckboxCommit, value]);\n\n // Handler for radio selection changes\n const triggerRadioAction = useCallback(() => {\n if (radioGroupValue !== value) {\n // if selected from a click, we need to manually set focus on the input to allow for keyboard navigation\n methods.focus();\n\n onRadioCommit?.({\n previousValue: radioGroupValue,\n value: value\n });\n }\n }, [radioGroupValue, value, methods, onRadioCommit]);\n\n // due to the placement of the start label in rich selection, we need to check if the first item contains media or secondary text.\n const startData = useMemo(\n () => ({ hasMedia, hasSecondaryText: !!secondaryText }),\n [hasMedia, secondaryText]\n );\n const richSelectionStartContext = useRichSelectionStartContext();\n if (richSelectionStartContext?.isFirst) {\n richSelectionStartContext?.setStartData?.(startData);\n }\n\n // Event handlers for the interaction of the StyledCard\n const { pressProps } = usePress(isSingleSelection ? triggerRadioAction : triggerCheckBoxAction, {\n isDisabled: !isEnabled\n });\n\n // This is used to apply focus to the card while in readonly mode\n const onReadonlyClickHandler = useCallback(() => {\n // focus if radio\n inputRef?.current?.focus();\n setFocusIndex?.(index);\n\n // focus if checkbox\n inputReadonlyRef?.current?.focus();\n }, [index, setFocusIndex]);\n\n return (\n <StyledCard\n cursor={isEnabled ? 'pointer' : 'arrow'}\n display=\"inlineFlex\"\n height=\"100%\"\n isDisabled={!isEnabled}\n isFocusWithin={isFocus}\n isReadonly={isReadonly}\n isSelected={styledCardVariant !== 'danger' && isEnabled && isSelected}\n onMouseDown={onMouseDown}\n parentComponentVariant=\"richSelectionItemCard\"\n ref={styledCardRef}\n role=\"listitem\"\n styleVariant={styledCardVariant}\n testId={testId ? `${testId}_styled_card` : undefined}\n width=\"100%\"\n {...(isReadonly ? { onClick: onReadonlyClickHandler } : pressProps)}>\n {isLayoutXL ? (\n <Flex direction=\"column\" height=\"100%\" width=\"100%\">\n {mediaContent}\n <div class={styles.selectionElement}>{selectionControl}</div>\n {textContent}\n </Flex>\n ) : (\n <div\n className={classNames([\n styles.densityWrapper,\n // if the item has a sm/md layout, without media or secondary text,\n // we need to set the min height of the card to match the start label\n !isLayoutXL &&\n !hasMedia &&\n !secondaryText &&\n richSelectionStartContext !== null &&\n styles.startMinHeight\n ])}>\n <Flex direction=\"row\" gap=\"4x\" height=\"100%\" width=\"100%\">\n {selectionControl}\n {textContent}\n {mediaContent}\n </Flex>\n </div>\n )}\n </StyledCard>\n );\n};\n"],"names":["_jsx","_jsxs","CheckIcon","RadioOffIcon","RadioOnIcon"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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A,MAAM,CAAC,cAAc;;;AAGrB,gBAAA,CAAC,UAAU;AACT,oBAAA,CAAC,QAAQ;AACT,oBAAA,CAAC,aAAa;AACd,oBAAA,yBAAyB,KAAK,IAAI;AAClC,oBAAA,MAAM,CAAC,cAAc;AACxB,aAAA,CAAC,EACF,QAAA,EAAAC,IAAA,CAAC,IAAI,EAAA,EAAC,SAAS,EAAC,KAAK,EAAC,GAAG,EAAC,IAAI,EAAC,MAAM,EAAC,MAAM,EAAC,KAAK,EAAC,MAAM,EACtD,QAAA,EAAA,CAAA,gBAAgB,EAChB,WAAW,EACX,YAAY,CACR,EAAA,CAAA,EAAA,CACH,CACP,EAAA,CACU,EACb;AACJ;;;;"}
|
|
1
|
+
{"version":3,"file":"UNSAFE_RichSelectionItem.js","sources":["../../src/UNSAFE_RichSelectionItem/RichSelectionTextContent.tsx","../../src/UNSAFE_RichSelectionItem/RichSelectionMediaItem.tsx","../../src/UNSAFE_RichSelectionItem/RichSelectionControl.tsx","../../src/UNSAFE_RichSelectionItem/RichSelectionItem.tsx"],"sourcesContent":["import { TruncatingText } from '#UNSAFE_TruncatingText';\nimport { classNames } from '#utils/UNSAFE_classNames';\nimport { styles } from './themes/RichSelectionItemStyles.css';\n\ntype RichSelectionTextContentProps = {\n secondaryTextId?: string;\n label?: string;\n secondaryText?: string;\n isDisabled?: boolean;\n // INFO: label truncates for 1 line in only XL\n isLayoutXL?: boolean;\n labelId: string;\n};\n\n// INFO: Label and SecondaryText Content handling\nexport const RichSelectionTextContent = ({\n secondaryTextId,\n isDisabled,\n isLayoutXL,\n label,\n labelId,\n secondaryText\n}: RichSelectionTextContentProps) => {\n const labelContent = (\n <TruncatingText\n variant={isDisabled ? 'disabled' : 'primary'}\n lineClamp={isLayoutXL ? 1 : 2}\n id={labelId}>\n {label}\n </TruncatingText>\n );\n const classes = classNames([\n isLayoutXL ? styles.densityWrapper : styles.growOneColumn,\n !isLayoutXL && !secondaryText && styles.labelOnly\n ]);\n\n return (\n <div className={classes}>\n {labelContent}\n {secondaryText && (\n <TruncatingText\n size=\"sm\"\n variant={isDisabled ? 'disabled' : 'secondary'}\n lineClamp={3}\n id={secondaryTextId}>\n {secondaryText}\n </TruncatingText>\n )}\n </div>\n );\n};\n","import { Avatar } from '#UNSAFE_Avatar';\nimport { styles } from './themes/RichSelectionItemStyles.css';\nimport { Center } from '#UNSAFE_Center';\nimport { View } from '#UNSAFE_View';\nimport { AspectRatio } from '#UNSAFE_AspectRatio';\nimport { TestIdProps, useTestId } from '#hooks/UNSAFE_useTestId';\nimport { RichSelectionMediaItemProps } from './RichSelectionTypes';\nimport { classNames } from '#utils/UNSAFE_classNames';\n\ntype DisabledType = {\n isDisabled?: boolean;\n};\n\ntype ThumbnailProps = TestIdProps &\n DisabledType &\n Pick<RichSelectionMediaItemProps, 'layout'> & {\n thumbnailSrc?: string;\n mediaAccessibleLabel?: string;\n };\n\nconst ThumbnailXL = ({\n thumbnailSrc,\n mediaAccessibleLabel,\n testId,\n isDisabled\n}: ThumbnailProps) => {\n const testIdProps = useTestId(testId ? `${testId}_thumbnail` : undefined);\n\n return (\n <AspectRatio ratio=\"4/3\">\n <img\n alt={mediaAccessibleLabel}\n className={classNames([styles.thumbnailImage, isDisabled && styles.mediaDisabledOpacity])}\n role={!mediaAccessibleLabel ? 'presentation' : undefined}\n src={thumbnailSrc}\n {...testIdProps}\n />\n </AspectRatio>\n );\n};\n\nconst Thumbnail = ({\n thumbnailSrc,\n mediaAccessibleLabel,\n layout,\n testId,\n isDisabled\n}: ThumbnailProps) => {\n const thumbnailClass = classNames([\n layout === 'md' ? styles.mdMediaVariant : styles.smMediaVariant,\n isDisabled && styles.mediaDisabledOpacity\n ]);\n const testIdProps = useTestId(testId ? `${testId}_thumbnail` : undefined);\n return (\n <img\n alt={mediaAccessibleLabel}\n className={thumbnailClass}\n role={!mediaAccessibleLabel ? 'presentation' : undefined}\n src={thumbnailSrc}\n {...testIdProps}\n />\n );\n};\n\nconst MediumRenderer = ({\n mediaAccessibleLabel,\n thumbnailSrc,\n layout,\n avatar,\n testId,\n isDisabled\n}: Partial<RichSelectionMediaItemProps> & DisabledType) => {\n const testIdProps = useTestId(testId ? `${testId}_medium` : undefined);\n let mediumMediaItem;\n\n if (avatar) {\n const avatarElement = (\n <Avatar {...avatar} aria-label={mediaAccessibleLabel} size=\"md\" {...testIdProps} />\n );\n mediumMediaItem = isDisabled ? (\n <span className={styles.mediaDisabledOpacity}>{avatarElement}</span>\n ) : (\n avatarElement\n );\n } else {\n mediumMediaItem = (\n <Thumbnail\n thumbnailSrc={thumbnailSrc}\n mediaAccessibleLabel={mediaAccessibleLabel}\n layout={layout}\n testId={testId}\n isDisabled={isDisabled}\n />\n );\n }\n\n return <Center>{mediumMediaItem}</Center>;\n};\n\nconst SmallRenderer = ({\n avatar,\n iconClass,\n isDisabled,\n layout,\n thumbnailSrc,\n mediaAccessibleLabel,\n testId\n}: RichSelectionMediaItemProps & DisabledType) => {\n const testIdProps = useTestId(testId ? `${testId}_small` : undefined);\n const { iconWrapper, iconEnabledColor, iconDisabledColor, mediaDisabledOpacity } = styles;\n let smallMediaItem;\n\n if (avatar) {\n const avatarElement = (\n <Avatar {...avatar} aria-label={mediaAccessibleLabel} size=\"xs\" {...testIdProps} />\n );\n smallMediaItem = isDisabled ? (\n <span className={mediaDisabledOpacity}>{avatarElement}</span>\n ) : (\n avatarElement\n );\n } else if (thumbnailSrc) {\n smallMediaItem = (\n <Thumbnail\n thumbnailSrc={thumbnailSrc}\n mediaAccessibleLabel={mediaAccessibleLabel}\n layout={layout}\n testId={testId}\n isDisabled={isDisabled}\n {...testIdProps}\n />\n );\n } else if (iconClass) {\n const classes = classNames([\n iconClass,\n iconWrapper,\n isDisabled ? iconDisabledColor : iconEnabledColor\n ]);\n smallMediaItem = <div class={classes} {...testIdProps}></div>;\n }\n\n return <Center>{smallMediaItem}</Center>;\n};\n\n// INFO: Media Item handling\nexport const RichSelectionMediaItem = ({\n avatar,\n iconClass,\n isDisabled,\n hasSecondaryText,\n mediaAccessibleLabel,\n layout,\n thumbnailSrc,\n testId\n}: RichSelectionMediaItemProps & DisabledType) => {\n if (!layout) {\n return null;\n }\n\n switch (layout) {\n case 'xl':\n return (\n <ThumbnailXL\n thumbnailSrc={thumbnailSrc}\n mediaAccessibleLabel={mediaAccessibleLabel}\n testId={testId}\n isDisabled={isDisabled}\n />\n );\n\n case 'md':\n const mediumMedia = avatar ? { avatar } : thumbnailSrc ? { thumbnailSrc } : undefined;\n return (\n <View alignSelf={hasSecondaryText ? 'start' : 'center'}>\n <MediumRenderer\n mediaAccessibleLabel={mediaAccessibleLabel}\n layout={layout}\n testId={testId}\n isDisabled={isDisabled}\n {...mediumMedia}\n />\n </View>\n );\n\n case 'sm':\n const smallMedia = avatar\n ? { avatar, mediaAccessibleLabel }\n : thumbnailSrc\n ? { thumbnailSrc, mediaAccessibleLabel }\n : iconClass\n ? { iconClass }\n : undefined;\n return (\n <View alignSelf={hasSecondaryText ? 'start' : 'center'}>\n <SmallRenderer {...smallMedia} layout={layout} testId={testId} isDisabled={isDisabled} />\n </View>\n );\n\n default:\n return null;\n }\n};\n","import type { RefObject } from 'preact';\nimport { useCallback, useEffect, useRef } from 'preact/hooks';\n\nimport { useComponentTheme } from '#hooks/UNSAFE_useComponentTheme';\nimport { useInteractionStyle } from '#hooks/UNSAFE_useInteractionStyle';\nimport { useTabbableMode } from '#hooks/UNSAFE_useTabbableMode';\nimport { StyledCheckbox } from '#PRIVATE_StyledCheckbox';\nimport { CheckIcon } from '#PRIVATE_ThemedIcons/CheckIcon';\nimport { RadioOffIcon } from '#PRIVATE_ThemedIcons/RadioOffIcon';\nimport { RadioOnIcon } from '#PRIVATE_ThemedIcons/RadioOnIcon';\nimport { useCheckboxSetContext } from '#UNSAFE_CheckboxSet';\nimport { HiddenAccessible } from '#UNSAFE_HiddenAccessible';\nimport { useRadioItemContext } from '#UNSAFE_RadioItem/RadioItemContext';\nimport { radioIconVars } from '#UNSAFE_RadioItem/themes/RadioIconContract.css';\nimport { RadioIconVariantOptions } from '#UNSAFE_RadioItem/themes/RadioIconStyles.css';\nimport { radioDefaultColor, radioDisabledColor } from '#UNSAFE_RadioItem/themes/RadioStyles.css';\nimport { RadioIconRedwoodTheme } from '#UNSAFE_RadioItem/themes/redwood/RadioIconTheme';\nimport { useRadioSetContext } from '#UNSAFE_RadioSet/RadioSetContext';\nimport { classNames } from '#utils/UNSAFE_classNames';\nimport { styles } from './themes/RichSelectionItemStyles.css';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '#resources/nls/bundle';\nimport { getRadioSelectionText } from '#UNSAFE_RadioItem/RadioItem';\n\n/**\n * Selective Element Props Type.\n */\ntype RichSelectionControlProps = {\n ariaLabel?: string; // JET-72374: The ariaLabel for RichSelection options is only used for creating the readonly text.\n value: string | number;\n inputRef?: RefObject<HTMLInputElement>;\n inputReadonlyRef?: RefObject<HTMLInputElement>;\n isFocus?: boolean;\n isLayoutXL?: boolean;\n isDisabled?: boolean;\n isReadonly?: boolean;\n isSelected?: boolean;\n describedBy?: string;\n labelledBy: string;\n onBlur?: (event: FocusEvent) => void;\n onFocus?: (event: FocusEvent) => void;\n};\n\nexport const RadioControl = ({\n ariaLabel,\n value,\n inputRef,\n isFocus,\n isDisabled,\n isLayoutXL,\n isReadonly,\n isSelected,\n describedBy,\n labelledBy,\n onBlur,\n onFocus\n}: RichSelectionControlProps) => {\n const { name, value: radioGroupValue, onCommit, setFocusIndex } = useRadioSetContext();\n\n const IconComp = isReadonly\n ? isSelected\n ? CheckIcon\n : RadioOffIcon\n : isSelected\n ? RadioOnIcon\n : RadioOffIcon;\n\n const spanRef = useRef<HTMLSpanElement>(null);\n const { interactionProps, applyActiveStyle } = useInteractionStyle();\n\n const onChangeHandler = useCallback(\n (event: Event) => {\n event.stopPropagation();\n onCommit?.({ previousValue: radioGroupValue, value });\n },\n [value, radioGroupValue, onCommit]\n );\n\n /**\n * When focused the view should have the respective RichSelectionItem.\n */\n useEffect(() => {\n const isActiveElement = document.activeElement === inputRef?.current;\n if (!isActiveElement && isFocus) {\n spanRef?.current?.scrollIntoView({ block: 'nearest' });\n }\n }, [inputRef, isFocus, spanRef]);\n\n const radioColor = isDisabled ? radioDisabledColor : radioDefaultColor;\n const { classes: radioIconClasses } = useComponentTheme<RadioIconVariantOptions>(\n RadioIconRedwoodTheme,\n {\n disabled: isDisabled ? 'isDisabled' : 'notDisabled',\n selected: isSelected ? 'isSelected' : 'notSelected',\n active: applyActiveStyle ? 'isActive' : 'notActive',\n richSelection: isLayoutXL ? 'isLayoutXL' : 'notLayoutXL'\n }\n );\n\n const { isTabbable } = useTabbableMode();\n const { index } = useRadioItemContext();\n const tabIndex =\n isTabbable !== false && ((index === 0 && !radioGroupValue) || isSelected) ? 0 : -1;\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const readonlyLabel = `${ariaLabel} ${translations.formControl_readOnly()} ${getRadioSelectionText(\n translations,\n !!isSelected\n )}`;\n\n const hiddenInput = (\n <HiddenAccessible>\n {isReadonly ? (\n <div\n aria-describedby={describedBy}\n data-checked={isSelected}\n ref={inputRef}\n tabIndex={tabIndex}\n onBlur={onBlur}\n onFocus={(event) => {\n setFocusIndex?.(index);\n onFocus?.(event);\n }}>\n {readonlyLabel}\n </div>\n ) : (\n <input\n type=\"radio\"\n name={name}\n value={value}\n {...(!isDisabled && {\n onChange: onChangeHandler\n })}\n checked={isSelected}\n disabled={isDisabled}\n aria-labelledby={labelledBy}\n aria-describedby={describedBy}\n tabIndex={tabIndex}\n onBlur={onBlur}\n onFocus={onFocus}\n ref={inputRef}\n />\n )}\n </HiddenAccessible>\n );\n\n // Radio control is visually hidden in readonly mode unless it is selected\n if (!isSelected && isReadonly) {\n return <span class={styles.inputElement}>{hiddenInput}</span>;\n }\n\n return (\n <span\n ref={spanRef}\n class={classNames([radioColor, isLayoutXL ? styles.radioWrapper : undefined])}>\n {hiddenInput}\n <span aria-hidden=\"true\" class={radioIconClasses} {...interactionProps}>\n <IconComp size={radioIconVars.iconSize} color=\"currentColor\" />\n </span>\n </span>\n );\n};\n\nexport const CheckboxControl = ({\n ariaLabel,\n value,\n inputRef,\n inputReadonlyRef,\n isSelected,\n isLayoutXL,\n isDisabled,\n isReadonly,\n describedBy,\n labelledBy,\n onBlur,\n onFocus\n}: RichSelectionControlProps) => {\n const { name } = useCheckboxSetContext();\n const { isTabbable } = useTabbableMode();\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n\n const checkboxStyles = isLayoutXL ? styles.checkboxWrapper : styles.checkboxAlign;\n // JET-72374: We can't use the label content on its own for readonly because we also need to provide the state of the checkbox.\n const readonlyLabel = `${ariaLabel} ${translations.formControl_readOnly()} ${\n isSelected ? translations.checkbox_selected() : translations.checkbox_unselected()\n }`;\n\n // Checkbox control is visually hidden in readonly mode unless it is selected\n if (!isSelected && isReadonly) {\n return (\n <span class={styles.inputElement}>\n <HiddenAccessible>\n <div\n onBlur={onBlur}\n onFocus={onFocus}\n ref={inputReadonlyRef}\n tabIndex={isTabbable ? 0 : -1}>\n {readonlyLabel}\n </div>\n </HiddenAccessible>\n </span>\n );\n }\n\n return (\n <span class={checkboxStyles}>\n <StyledCheckbox\n aria-describedby={describedBy}\n isDisabled={isDisabled}\n isReadonly={isReadonly}\n isChecked={isSelected ? 'checked' : 'unchecked'}\n name={name}\n value={value}\n onBlur={onBlur}\n onFocus={onFocus}\n ref={isReadonly ? inputReadonlyRef : inputRef}\n {...(isReadonly ? { 'aria-label': readonlyLabel } : { 'aria-labelledby': labelledBy })}\n />\n </span>\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 */\nimport { useCallback, useEffect, useMemo, useRef } from 'preact/hooks';\n\nimport { useFormFieldContext } from '#hooks/UNSAFE_useFormFieldContext';\nimport { useRichSelectionContext } from '#PRIVATE_RichSelectionCommon/RichSelectionContext';\nimport { StyledCard } from '#PRIVATE_StyledCard';\nimport { useCheckboxSetContext } from '#UNSAFE_CheckboxSet';\nimport { useRadioSetContext } from '#UNSAFE_RadioSet/RadioSetContext';\nimport { RichSelectionTextContent } from './RichSelectionTextContent';\nimport { RichSelectionMediaItem } from './RichSelectionMediaItem';\nimport { Flex } from '#UNSAFE_Flex';\nimport { styles } from './themes/RichSelectionItemStyles.css';\nimport { useId } from '#hooks/UNSAFE_useId';\nimport { useFormContext } from '#hooks/UNSAFE_useFormContext';\nimport { usePress } from '#hooks/UNSAFE_usePress';\nimport { RadioControl, CheckboxControl } from './RichSelectionControl';\nimport { type RichSelectionItemData } from './RichSelectionTypes';\nimport { useFocusableTextField } from '#hooks/UNSAFE_useFocusableTextField';\nimport { useRichSelectionStartContext } from '#PRIVATE_RichSelectionCommon/RichSelectionStartContext';\nimport { classNames } from '#utils/UNSAFE_classNames';\nimport { type TestIdProps } from '#hooks/UNSAFE_useTestId';\nimport { useRadioItemContext } from '#UNSAFE_RadioItem/RadioItemContext';\n\ntype RichSelectionItemProps<V extends string | number> = RichSelectionItemData<V> &\n TestIdProps & {\n /**\n * Specifies if the card is read-only.\n */\n isReadonly?: boolean;\n };\n\nconst onMouseDown = (event: Event) => {\n // Prevent focus from going to the body when the user clicks something within\n // the card that is not focusable. This is important because we are detecting\n // focus loss on the core pack side and showing hidden messages.\n event.preventDefault();\n};\n\n/**\n * `RichSelectionItem` is a customizable input card element used in selection interfaces. It can display a label,\n * optional secondary text, and media (such as an avatar, thumbnail, or icon). It supports both radio and checkbox\n * controls, allowing users to make a single or multiple selections, respectively. The component also handles\n * different states such as disabled, readonly, and focus, and renders dynamically based on layout( 'xl', 'md', or 'sm').\n */\nexport const RichSelectionItem = <V extends string | number>({\n avatar,\n iconClass,\n isReadonly: propsIsReadonly,\n mediaAccessibleLabel,\n secondaryText,\n thumbnailSrc,\n label,\n value,\n testId\n}: RichSelectionItemProps<V>) => {\n const { isReadonly: isFormReadonly, isDisabled: isFormDisabled } = useFormContext();\n const styledCardRef = useRef<HTMLDivElement>(null);\n const inputRef = useRef<HTMLInputElement>(null);\n const inputReadonlyRef = useRef<HTMLInputElement>(null);\n const { selection, layout, messageSeverity } = useRichSelectionContext()!;\n const { isDisabled: isFieldDisabled, isReadonly: isFieldReadonly } = useFormFieldContext();\n const { value: radioGroupValue, onCommit: onRadioCommit, setFocusIndex } = useRadioSetContext();\n const { value: checkboxGroupValue, onCommit: onCheckboxCommit } = useCheckboxSetContext();\n const { index } = useRadioItemContext();\n\n // Determining selection state for error\n const styledCardVariant = messageSeverity === 'error' ? 'danger' : undefined;\n const isDisabled = isFieldDisabled ?? isFormDisabled;\n const isReadonly = isFieldReadonly || isFormReadonly || propsIsReadonly;\n const isEnabled = !isDisabled && !isReadonly;\n const id = useId();\n const isLayoutXL = layout === 'xl';\n const hasMedia = !!avatar || !!thumbnailSrc || !!iconClass;\n const labelId = `${id}-labelled-text`;\n const secondaryTextId = secondaryText ? `${id}-secondary-text` : undefined;\n const isSingleSelection = selection === 'single';\n const isSelected = isSingleSelection\n ? radioGroupValue === value\n : !!checkboxGroupValue?.has(value);\n\n const {\n isFocused: isFocus,\n focusProps: { onFocusIn, onFocusOut },\n methods\n } = useFocusableTextField({\n enabledElementRef: inputRef,\n readonlyElementRef: inputReadonlyRef,\n isReadonly,\n isDisabled\n });\n\n // Scroll into view when the RichSelectionItem is focused\n useEffect(() => {\n if (isFocus) {\n styledCardRef?.current?.scrollIntoView({ block: 'nearest' });\n }\n }, [isFocus, styledCardRef]);\n\n // Text content of label and secondaryText rendering\n const textContent = (\n <RichSelectionTextContent\n secondaryTextId={secondaryTextId}\n labelId={labelId}\n isDisabled={isDisabled}\n isLayoutXL={isLayoutXL}\n label={label}\n secondaryText={secondaryText}\n />\n );\n\n // Media content rendering based on available media props respective to layout\n const media = avatar\n ? { avatar, mediaAccessibleLabel, layout: layout as 'md' | 'sm' }\n : thumbnailSrc\n ? { thumbnailSrc, mediaAccessibleLabel, layout: layout as 'xl' | 'md' | 'sm' }\n : iconClass\n ? { iconClass, layout: layout as 'sm' }\n : undefined;\n\n const mediaContent = hasMedia ? (\n <RichSelectionMediaItem\n {...media}\n isDisabled={isDisabled}\n hasSecondaryText={!!secondaryText}\n testId={testId ? `${testId}_media` : undefined}\n />\n ) : undefined;\n\n // Selection control rendering (radio or checkbox)\n const selectionControl = (\n <Flex align={secondaryText ? 'start' : 'center'}>\n {isSingleSelection ? (\n <RadioControl\n ariaLabel={label}\n onFocus={onFocusIn}\n onBlur={onFocusOut}\n value={value}\n inputRef={inputRef}\n isFocus={isFocus}\n isLayoutXL={isLayoutXL}\n isDisabled={isDisabled}\n isReadonly={isReadonly}\n isSelected={isSelected}\n describedBy={secondaryTextId}\n labelledBy={`${id}-labelled-text`}\n />\n ) : (\n <CheckboxControl\n ariaLabel={label}\n onFocus={onFocusIn}\n onBlur={onFocusOut}\n value={value}\n inputRef={inputRef}\n inputReadonlyRef={inputReadonlyRef}\n isFocus={isFocus}\n isDisabled={isDisabled}\n isLayoutXL={isLayoutXL}\n isReadonly={isReadonly}\n isSelected={isSelected}\n describedBy={secondaryTextId}\n labelledBy={`${id}-labelled-text`}\n />\n )}\n </Flex>\n );\n\n // Handler for checkbox selection changes\n const triggerCheckBoxAction = useCallback(() => {\n // if selected from a click, we need to manually set focus on the input to allow for keyboard navigation\n methods.focus();\n\n const newGroupValue = new Set(checkboxGroupValue);\n // If the value is already selected, remove it; otherwise, add it\n if (newGroupValue.has(value)) {\n newGroupValue.delete(value);\n } else {\n newGroupValue.add(value);\n }\n onCheckboxCommit?.({\n previousValue: checkboxGroupValue,\n value: newGroupValue.size > 0 ? newGroupValue : undefined\n });\n }, [checkboxGroupValue, methods, onCheckboxCommit, value]);\n\n // Handler for radio selection changes\n const triggerRadioAction = useCallback(() => {\n if (radioGroupValue !== value) {\n // if selected from a click, we need to manually set focus on the input to allow for keyboard navigation\n methods.focus();\n\n onRadioCommit?.({\n previousValue: radioGroupValue,\n value: value\n });\n }\n }, [radioGroupValue, value, methods, onRadioCommit]);\n\n // due to the placement of the start label in rich selection, we need to check if the first item contains media or secondary text.\n const startData = useMemo(\n () => ({ hasMedia, hasSecondaryText: !!secondaryText }),\n [hasMedia, secondaryText]\n );\n const richSelectionStartContext = useRichSelectionStartContext();\n if (richSelectionStartContext?.isFirst) {\n richSelectionStartContext?.setStartData?.(startData);\n }\n\n // Event handlers for the interaction of the StyledCard\n const { pressProps } = usePress(isSingleSelection ? triggerRadioAction : triggerCheckBoxAction, {\n isDisabled: !isEnabled\n });\n\n // This is used to apply focus to the card while in readonly mode\n const onReadonlyClickHandler = useCallback(() => {\n // focus if radio\n inputRef?.current?.focus();\n setFocusIndex?.(index);\n\n // focus if checkbox\n inputReadonlyRef?.current?.focus();\n }, [index, setFocusIndex]);\n\n return (\n <StyledCard\n cursor={isEnabled ? 'pointer' : 'arrow'}\n display=\"inlineFlex\"\n height=\"100%\"\n isDisabled={!isEnabled}\n isFocusWithin={isFocus}\n isReadonly={isReadonly}\n isSelected={styledCardVariant !== 'danger' && isEnabled && isSelected}\n onMouseDown={onMouseDown}\n parentComponentVariant=\"richSelectionItemCard\"\n ref={styledCardRef}\n role=\"listitem\"\n styleVariant={styledCardVariant}\n testId={testId ? `${testId}_styled_card` : undefined}\n width=\"100%\"\n {...(isReadonly ? { onClick: onReadonlyClickHandler } : pressProps)}>\n {isLayoutXL ? (\n <Flex direction=\"column\" height=\"100%\" width=\"100%\">\n {mediaContent}\n <div class={styles.selectionElement}>{selectionControl}</div>\n {textContent}\n </Flex>\n ) : (\n <div\n className={classNames([\n styles.densityWrapper,\n // if the item has a sm/md layout, without media or secondary text,\n // we need to set the min height of the card to match the start label\n !isLayoutXL &&\n !hasMedia &&\n !secondaryText &&\n richSelectionStartContext !== null &&\n styles.startMinHeight\n ])}>\n <Flex direction=\"row\" gap=\"4x\" height=\"100%\" width=\"100%\">\n {selectionControl}\n {textContent}\n {mediaContent}\n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EAAG,QAAA,EAAA,gBAAgB,EAAO,CAAA,EAC5D,WAAW,CACP,EAAA,CAAA,KAEPA,GAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAE,UAAU,CAAC;AACpB,gBAAA,MAAM,CAAC,cAAc;;;AAGrB,gBAAA,CAAC,UAAU;AACT,oBAAA,CAAC,QAAQ;AACT,oBAAA,CAAC,aAAa;AACd,oBAAA,yBAAyB,KAAK,IAAI;AAClC,oBAAA,MAAM,CAAC,cAAc;AACxB,aAAA,CAAC,EACF,QAAA,EAAAC,IAAA,CAAC,IAAI,EAAA,EAAC,SAAS,EAAC,KAAK,EAAC,GAAG,EAAC,IAAI,EAAC,MAAM,EAAC,MAAM,EAAC,KAAK,EAAC,MAAM,EACtD,QAAA,EAAA,CAAA,gBAAgB,EAChB,WAAW,EACX,YAAY,CACR,EAAA,CAAA,EAAA,CACH,CACP,EAAA,CACU,EACb;AACJ;;;;"}
|
|
@@ -8,7 +8,7 @@ import { g as getColorRamp } from './colorUtils-77b8874f.js';
|
|
|
8
8
|
import './accUtils-9d5183c4.js';
|
|
9
9
|
import { L as LineSeries } from './ReferenceLineArea-53129f72.js';
|
|
10
10
|
import { forwardRef } from 'preact/compat';
|
|
11
|
-
import { C as Chart } from './Chart-
|
|
11
|
+
import { C as Chart } from './Chart-8c63da28.js';
|
|
12
12
|
import './themeContract.css-1ffed3bf.js';
|
|
13
13
|
import './utils-b1eb54f9.js';
|
|
14
14
|
import './colorUtils-b3804ee8.js';
|
|
@@ -73,6 +73,9 @@ import './mergeProps-88ea8306.js';
|
|
|
73
73
|
import './useChartNav-49b52017.js';
|
|
74
74
|
import './layoutUtils-ec5be703.js';
|
|
75
75
|
import './useVisHover-d7a0b2f3.js';
|
|
76
|
+
import './ScrollBar-c7a5d361.js';
|
|
77
|
+
import './PRIVATE_ChartScrollBar/themes/ScrollBarStyles.css.js';
|
|
78
|
+
import './ScrollBarStyles.styles.css';
|
|
76
79
|
import './useSelectDrill-f669e729.js';
|
|
77
80
|
import './useChartDataCursor-f79f98ec.js';
|
|
78
81
|
import './hooks/PRIVATE_useChartDataCursor/themes/DataCursorStyles.css.js';
|
|
@@ -279,9 +282,6 @@ import './OverviewSlidingWindow-a8a4c9ef.js';
|
|
|
279
282
|
import './PRIVATE_VisOverview/themes/VisOverview.css.js';
|
|
280
283
|
import './VisOverview.styles.css';
|
|
281
284
|
import './DragH-3ab8136b.js';
|
|
282
|
-
import './ScrollBar-c7a5d361.js';
|
|
283
|
-
import './PRIVATE_ChartScrollBar/themes/ScrollBarStyles.css.js';
|
|
284
|
-
import './ScrollBarStyles.styles.css';
|
|
285
285
|
|
|
286
286
|
/**
|
|
287
287
|
* Scatter charts define data items using x and y values, making them useful for viewing relationships between 2 dimensions.
|
package/es/UNSAFE_TabBar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* @oracle/oraclejet-preact: undefined */
|
|
2
|
-
export { T as TabBar } from './TabBar-
|
|
2
|
+
export { T as TabBar } from './TabBar-10488830.js';
|
|
3
3
|
export { O as OverflowTabBarItem, R as RemovableTabBarItem, T as TabBarItem } from './OverflowTabBarItem-aa0ce915.js';
|
|
4
4
|
export { T as TabBarContext, u as useTabBarContext } from './TabBarLayout-9b67d1b6.js';
|
|
5
5
|
export { u as useProgressiveTruncation } from './useProgressiveTruncation-8f7f76fb.js';
|
|
@@ -146,12 +146,19 @@ import './useAnimation-fe39685e.js';
|
|
|
146
146
|
import './animationUtils-5f409a6c.js';
|
|
147
147
|
import './useTranslationBundle-4822502f.js';
|
|
148
148
|
import './OverflowTabBarItemStyles.styles.css';
|
|
149
|
+
import './UNSAFE_TabBar/themes/TabBarStyles.css.js';
|
|
150
|
+
import './TabBarStyles.styles.css';
|
|
151
|
+
import './useTabBar-c5558e77.js';
|
|
152
|
+
import './collectionUtils-5313629f.js';
|
|
153
|
+
import './keys-49c92dbb.js';
|
|
154
|
+
import './Selector-23bccbe7.js';
|
|
155
|
+
import './BaseSelector-7cbc48bc.js';
|
|
156
|
+
import './useFocus-38c95977.js';
|
|
149
157
|
import './StyledCheckbox-d6c8f557.js';
|
|
150
158
|
import './Check-ac39fe00.js';
|
|
151
159
|
import './Icon-4983d06e.js';
|
|
152
160
|
import './useTooltip-94af94d4.js';
|
|
153
161
|
import './useTooltipControlled-f2cfa454.js';
|
|
154
|
-
import './useFocus-38c95977.js';
|
|
155
162
|
import './useTouch-4828df25.js';
|
|
156
163
|
import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentTheme.js';
|
|
157
164
|
import './hooks/UNSAFE_useTooltip/themes/TooltipContentStyles.css.js';
|
|
@@ -169,15 +176,8 @@ import './UNSAFE_Checkbox/themes/redwood/CheckboxIconBaseTheme.styles.css';
|
|
|
169
176
|
import './UNSAFE_Checkbox/themes/redwood/CheckboxIconVariants.css.js';
|
|
170
177
|
import './CheckboxIconVariants.styles.css';
|
|
171
178
|
import './StyledCheckbox.styles.css';
|
|
172
|
-
import './SelectorStyles.styles.css';
|
|
173
|
-
import './UNSAFE_TabBar/themes/TabBarStyles.css.js';
|
|
174
|
-
import './TabBarStyles.styles.css';
|
|
175
|
-
import './useTabBar-c5558e77.js';
|
|
176
|
-
import './collectionUtils-5313629f.js';
|
|
177
|
-
import './keys-49c92dbb.js';
|
|
178
|
-
import './Selector-23bccbe7.js';
|
|
179
|
-
import './BaseSelector-7cbc48bc.js';
|
|
180
179
|
import './PRIVATE_BaseSelector/themes/SelectorStyles.css.js';
|
|
180
|
+
import './SelectorStyles.styles.css';
|
|
181
181
|
import './useCollectionInteractionContext-3895c632.js';
|
|
182
182
|
import './useCollectionFocusRing-23ac7f97.js';
|
|
183
183
|
import './useCurrentKey-5f865bbd.js';
|