@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
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-0105b4a0.js';
|
|
3
3
|
export { O as OverflowTabBarItem, R as RemovableTabBarItem, T as TabBarItem } from './OverflowTabBarItem-52ec30af.js';
|
|
4
4
|
export { T as TabBarContext, u as useTabBarContext } from './TabBarLayout-9b67d1b6.js';
|
|
5
5
|
export { u as useProgressiveTruncation } from './useProgressiveTruncation-9f200b1e.js';
|
|
@@ -147,12 +147,19 @@ import './useAnimation-fe39685e.js';
|
|
|
147
147
|
import './animationUtils-5f409a6c.js';
|
|
148
148
|
import './useTranslationBundle-bc6e0896.js';
|
|
149
149
|
import './OverflowTabBarItemStyles.styles.css';
|
|
150
|
+
import './UNSAFE_TabBar/themes/TabBarStyles.css.js';
|
|
151
|
+
import './TabBarStyles.styles.css';
|
|
152
|
+
import './useTabBar-c4e45980.js';
|
|
153
|
+
import './collectionUtils-609f73d6.js';
|
|
154
|
+
import './keys-49c92dbb.js';
|
|
155
|
+
import './Selector-b7fa8b54.js';
|
|
156
|
+
import './BaseSelector-9bbbaba1.js';
|
|
157
|
+
import './useFocus-38c95977.js';
|
|
150
158
|
import './StyledCheckbox-8ca4a652.js';
|
|
151
159
|
import './Check-e656faf8.js';
|
|
152
160
|
import './Icon-96679294.js';
|
|
153
161
|
import './useTooltip-22ae63dd.js';
|
|
154
162
|
import './useTooltipControlled-207b0297.js';
|
|
155
|
-
import './useFocus-38c95977.js';
|
|
156
163
|
import './useTouch-4828df25.js';
|
|
157
164
|
import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentTheme.js';
|
|
158
165
|
import './hooks/UNSAFE_useTooltip/themes/TooltipContentStyles.css.js';
|
|
@@ -170,15 +177,8 @@ import './UNSAFE_Checkbox/themes/redwood/CheckboxIconBaseTheme.styles.css';
|
|
|
170
177
|
import './UNSAFE_Checkbox/themes/redwood/CheckboxIconVariants.css.js';
|
|
171
178
|
import './CheckboxIconVariants.styles.css';
|
|
172
179
|
import './StyledCheckbox.styles.css';
|
|
173
|
-
import './SelectorStyles.styles.css';
|
|
174
|
-
import './UNSAFE_TabBar/themes/TabBarStyles.css.js';
|
|
175
|
-
import './TabBarStyles.styles.css';
|
|
176
|
-
import './useTabBar-c4e45980.js';
|
|
177
|
-
import './collectionUtils-609f73d6.js';
|
|
178
|
-
import './keys-49c92dbb.js';
|
|
179
|
-
import './Selector-b7fa8b54.js';
|
|
180
|
-
import './BaseSelector-9bbbaba1.js';
|
|
181
180
|
import './PRIVATE_BaseSelector/themes/SelectorStyles.css.js';
|
|
181
|
+
import './SelectorStyles.styles.css';
|
|
182
182
|
import './useCollectionInteractionContext-3895c632.js';
|
|
183
183
|
import './useCollectionFocusRing-c637c3da.js';
|
|
184
184
|
import './useCurrentKey-38e5f097.js';
|
package/es/UNSAFE_TabBarMixed.js
CHANGED
|
@@ -39,8 +39,6 @@ import './CollectionInteractionContext-7cf19abc.js';
|
|
|
39
39
|
import './dropdownStyles.styles.css';
|
|
40
40
|
import './Sheet-b5910642.js';
|
|
41
41
|
import './OverflowTabBarItemStyles.styles.css';
|
|
42
|
-
import './StyledCheckbox-8ca4a652.js';
|
|
43
|
-
import './SelectorStyles.styles.css';
|
|
44
42
|
import { i as isMobile } from './clientUtils-71f2dbaf.js';
|
|
45
43
|
import { styles } from './UNSAFE_TabBarMixed/themes/TabBarMixedStyles.css.js';
|
|
46
44
|
import { u as useTabBar, g as getItemAttribute, R as REMOVABLE_ITEM_ATTRIBUTE } from './useTabBar-c4e45980.js';
|
|
@@ -153,11 +151,17 @@ import './useAnimationStatus-b881f39a.js';
|
|
|
153
151
|
import './useAnimation-fe39685e.js';
|
|
154
152
|
import './animationUtils-5f409a6c.js';
|
|
155
153
|
import './useTranslationBundle-bc6e0896.js';
|
|
154
|
+
import './TabBarMixedStyles.styles.css';
|
|
155
|
+
import './collectionUtils-609f73d6.js';
|
|
156
|
+
import './keys-49c92dbb.js';
|
|
157
|
+
import './Selector-b7fa8b54.js';
|
|
158
|
+
import './BaseSelector-9bbbaba1.js';
|
|
159
|
+
import './useFocus-38c95977.js';
|
|
160
|
+
import './StyledCheckbox-8ca4a652.js';
|
|
156
161
|
import './Check-e656faf8.js';
|
|
157
162
|
import './Icon-96679294.js';
|
|
158
163
|
import './useTooltip-22ae63dd.js';
|
|
159
164
|
import './useTooltipControlled-207b0297.js';
|
|
160
|
-
import './useFocus-38c95977.js';
|
|
161
165
|
import './useTouch-4828df25.js';
|
|
162
166
|
import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentTheme.js';
|
|
163
167
|
import './hooks/UNSAFE_useTooltip/themes/TooltipContentStyles.css.js';
|
|
@@ -175,12 +179,8 @@ import './UNSAFE_Checkbox/themes/redwood/CheckboxIconBaseTheme.styles.css';
|
|
|
175
179
|
import './UNSAFE_Checkbox/themes/redwood/CheckboxIconVariants.css.js';
|
|
176
180
|
import './CheckboxIconVariants.styles.css';
|
|
177
181
|
import './StyledCheckbox.styles.css';
|
|
178
|
-
import './TabBarMixedStyles.styles.css';
|
|
179
|
-
import './collectionUtils-609f73d6.js';
|
|
180
|
-
import './keys-49c92dbb.js';
|
|
181
|
-
import './Selector-b7fa8b54.js';
|
|
182
|
-
import './BaseSelector-9bbbaba1.js';
|
|
183
182
|
import './PRIVATE_BaseSelector/themes/SelectorStyles.css.js';
|
|
183
|
+
import './SelectorStyles.styles.css';
|
|
184
184
|
import './useCollectionInteractionContext-3895c632.js';
|
|
185
185
|
import './useCollectionFocusRing-c637c3da.js';
|
|
186
186
|
import './useCurrentKey-38e5f097.js';
|
package/es/UNSAFE_TextArea.js
CHANGED
|
@@ -1,42 +1,67 @@
|
|
|
1
1
|
/* @oracle/oraclejet-preact: undefined */
|
|
2
|
-
|
|
3
|
-
import 'preact/
|
|
4
|
-
import '
|
|
5
|
-
import './
|
|
6
|
-
import 'preact/hooks';
|
|
7
|
-
import './useFocusableTextField-8fe41cd4.js';
|
|
8
|
-
import './useFocusWithin-30b1e2d8.js';
|
|
2
|
+
import { jsx, jsxs, Fragment } from 'preact/jsx-runtime';
|
|
3
|
+
import { forwardRef, useCallback, useRef, useImperativeHandle } from 'preact/compat';
|
|
4
|
+
import { u as useCurrentValueReducer } from './useCurrentValueReducer-bdf796fa.js';
|
|
5
|
+
import { u as useFocusableTextField } from './useFocusableTextField-8fe41cd4.js';
|
|
9
6
|
import './FormContext-55fb8000.js';
|
|
7
|
+
import { u as useFormContext } from './useFormContext-bb9dc478.js';
|
|
8
|
+
import { F as FormFieldContext } from './FormFieldContext-47ca0c20.js';
|
|
9
|
+
import 'preact/hooks';
|
|
10
|
+
import { u as useId } from './useId-03dbfdf0.js';
|
|
11
|
+
import { u as useLengthFilter } from './useLengthFilter-955a0ad5.js';
|
|
12
|
+
import { u as useSelectableTextField } from './useSelectableTextField-949184a5.js';
|
|
13
|
+
import { u as useTextField } from './useTextField-eb9db737.js';
|
|
14
|
+
import { u as useTranslationBundle } from './useTranslationBundle-bc6e0896.js';
|
|
15
|
+
import { H as HiddenAccessible } from './HiddenAccessible-61197e7c.js';
|
|
16
|
+
import { L as Label } from './Label-a6c32235.js';
|
|
17
|
+
import './keyboardUtils-986fe923.js';
|
|
18
|
+
import { R as ReadonlyTextField, T as TextFieldInput } from './StyledTextField-64f0929e.js';
|
|
19
|
+
import './ObfuscatedTextFieldInputStyles.styles.css';
|
|
20
|
+
import { R as ReadonlyTextFieldInput } from './ReadonlyTextFieldInput-5ff445b5.js';
|
|
21
|
+
import { T as TextField } from './TextField-9aba3df3.js';
|
|
22
|
+
import { M as MaxLengthLiveRegion } from './MaxLengthLiveRegion-8f552ae2.js';
|
|
23
|
+
import './UNSAFE_TextField/themes/TextFieldStyles.css.js';
|
|
24
|
+
import './SkeletonStyles.styles.css';
|
|
25
|
+
import './TextFieldLoadingStyles.styles.css';
|
|
26
|
+
import './TextFieldStyles.styles.css';
|
|
27
|
+
import './UNSAFE_TextField/themes/redwood/TextFieldBaseTheme.styles.css';
|
|
28
|
+
import './UNSAFE_TextField/themes/redwood/TextFieldVariants.css.js';
|
|
29
|
+
import './logger-35b2acf7.js';
|
|
30
|
+
import './TabbableModeContext-7d8ad946.js';
|
|
31
|
+
import './safeHref-fce77e0c.js';
|
|
32
|
+
import './UserAssistanceStyles.styles.css';
|
|
33
|
+
import './UNSAFE_UserAssistance/themes/redwood/UserAssistanceBaseTheme.styles.css';
|
|
34
|
+
import './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css.js';
|
|
35
|
+
import { a as InlineUserAssistance } from './InlineUserAssistance-6aa2141e.js';
|
|
36
|
+
import { C as CompactUserAssistance } from './CompactUserAssistance-946c7e35.js';
|
|
37
|
+
import { m as mergeProps } from './mergeProps-88ea8306.js';
|
|
38
|
+
import './LayerHost-3cf255a6.js';
|
|
39
|
+
import './TooltipContentStyles.styles.css';
|
|
40
|
+
import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentBaseTheme.styles.css';
|
|
41
|
+
import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css.js';
|
|
42
|
+
import './tooltipUtils-1e5f592e.js';
|
|
10
43
|
import 'preact';
|
|
11
|
-
import './
|
|
12
|
-
import './
|
|
13
|
-
import './
|
|
14
|
-
import './
|
|
44
|
+
import './IconStyle.styles.css';
|
|
45
|
+
import './Popup-0f23bad9.js';
|
|
46
|
+
import './LabelStyles.styles.css';
|
|
47
|
+
import './UNSAFE_Label/themes/redwood/LabelBaseTheme.styles.css';
|
|
48
|
+
import './UNSAFE_Label/themes/redwood/LabelVariants.css.js';
|
|
49
|
+
import './InputGroupContext-20bdbd6e.js';
|
|
50
|
+
import './UNSAFE_Popup/themes/redwood/PopupBaseTheme.styles.css';
|
|
51
|
+
import './UNSAFE_Popup/themes/redwood/PopupVariants.css.js';
|
|
52
|
+
import { d as defaultTextAlignForVariant } from './formControlUtils-84e2af0e.js';
|
|
53
|
+
import { u as useTextAreaAltEnter, M as MaxLengthCounter } from './useTextAreaAltEnter-ac460f4c.js';
|
|
54
|
+
export { M as MaxLengthCounter } from './useTextAreaAltEnter-ac460f4c.js';
|
|
55
|
+
import './useFocusWithin-30b1e2d8.js';
|
|
15
56
|
import './lengthFilter-1b2aeddb.js';
|
|
16
|
-
import './useSelectableTextField-949184a5.js';
|
|
17
|
-
import './useTextField-eb9db737.js';
|
|
18
57
|
import './stringUtils-0fe25200.js';
|
|
19
58
|
import './truncationUtils-e37f95ee.js';
|
|
20
59
|
import './useMessageSeverity-65295e8f.js';
|
|
21
60
|
import './useFormFieldContextProps-31bbc12f.js';
|
|
22
|
-
import './useTranslationBundle-bc6e0896.js';
|
|
23
|
-
import './LayerHost-3cf255a6.js';
|
|
24
|
-
import './index-aec1cc7f.js';
|
|
25
|
-
import './UNSAFE_Layer/themes/LayerHostStyles.css.js';
|
|
26
|
-
import './LayerHostStyles.styles.css';
|
|
27
|
-
import './HiddenAccessible-61197e7c.js';
|
|
28
61
|
import './HiddenAccessibleStyles.styles.css';
|
|
29
|
-
import './Label-a6c32235.js';
|
|
30
62
|
import './useFormFieldContext-daf7a676.js';
|
|
31
63
|
import './classNames-4e12b00d.js';
|
|
32
64
|
import './useComponentTheme-5f800588.js';
|
|
33
|
-
import './logger-35b2acf7.js';
|
|
34
|
-
import './TabbableModeContext-7d8ad946.js';
|
|
35
|
-
import './safeHref-fce77e0c.js';
|
|
36
|
-
import './UserAssistanceStyles.styles.css';
|
|
37
|
-
import './UNSAFE_UserAssistance/themes/redwood/UserAssistanceBaseTheme.styles.css';
|
|
38
|
-
import './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css.js';
|
|
39
|
-
import './vanilla-extract-recipes-createRuntimeFn.esm-2aaf8c98.js';
|
|
40
65
|
import './Flex-fc483125.js';
|
|
41
66
|
import './useTestId-ab1bede6.js';
|
|
42
67
|
import './boxalignment-8980856d.js';
|
|
@@ -63,13 +88,13 @@ import './MessageBannerStyles.styles.css';
|
|
|
63
88
|
import './UNSAFE_MessageBanner/themes/redwood/MessageBannerBaseTheme.styles.css';
|
|
64
89
|
import './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css.js';
|
|
65
90
|
import './MessageBannerVariants.styles.css';
|
|
91
|
+
import './vanilla-extract-recipes-createRuntimeFn.esm-2aaf8c98.js';
|
|
66
92
|
import './useTooltip-22ae63dd.js';
|
|
67
93
|
import './useTooltipControlled-207b0297.js';
|
|
68
94
|
import './useHover-85077adb.js';
|
|
69
95
|
import './useToggle-8b7fcefe.js';
|
|
70
96
|
import './useFocus-38c95977.js';
|
|
71
97
|
import './useTouch-4828df25.js';
|
|
72
|
-
import './mergeProps-88ea8306.js';
|
|
73
98
|
import './useAnimation-fe39685e.js';
|
|
74
99
|
import './useThemeInterpolations-5f358139.js';
|
|
75
100
|
import './useColorScheme-67245285.js';
|
|
@@ -80,34 +105,8 @@ import './useDensity-969273f3.js';
|
|
|
80
105
|
import './unsafeDomAccess-453eb74e.js';
|
|
81
106
|
import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentTheme.js';
|
|
82
107
|
import './hooks/UNSAFE_useTooltip/themes/TooltipContentStyles.css.js';
|
|
83
|
-
import './TooltipContentStyles.styles.css';
|
|
84
108
|
import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentBaseTheme.css.js';
|
|
85
|
-
import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentBaseTheme.styles.css';
|
|
86
|
-
import './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css.js';
|
|
87
109
|
import './TooltipContentVariants.styles.css';
|
|
88
|
-
import './tooltipUtils-1e5f592e.js';
|
|
89
|
-
import './EnvironmentProvider-6cf8ed37.js';
|
|
90
|
-
import './LayerManager-e30fbfd6.js';
|
|
91
|
-
import './Floating-0a11107a.js';
|
|
92
|
-
import './useFloating-c74a7f54.js';
|
|
93
|
-
import './useUser-e543b73c.js';
|
|
94
|
-
import './positionUtils-f26caad9.js';
|
|
95
|
-
import './refUtils-76275c69.js';
|
|
96
|
-
import './useOutsideClick-3ac4fc59.js';
|
|
97
|
-
import './Layer-6c27170e.js';
|
|
98
|
-
import './UNSAFE_Layer/themes/LayerStyles.css.js';
|
|
99
|
-
import './LayerStyles.styles.css';
|
|
100
|
-
import './useModal-953082f2.js';
|
|
101
|
-
import './UNSAFE_Floating/themes/redwood/FloatingTheme.js';
|
|
102
|
-
import './UNSAFE_Floating/themes/FloatingStyles.css.js';
|
|
103
|
-
import './FloatingStyles.styles.css';
|
|
104
|
-
import './UNSAFE_Floating/themes/redwood/FloatingBaseTheme.css.js';
|
|
105
|
-
import './UNSAFE_Floating/themes/redwood/FloatingBaseTheme.styles.css';
|
|
106
|
-
import './UNSAFE_Floating/themes/redwood/FloatingVariants.css.js';
|
|
107
|
-
import './vanilla-extract-dynamic.esm-c909758c.js';
|
|
108
|
-
import './UNSAFE_Floating/themes/FloatingContract.css.js';
|
|
109
|
-
import './useUnsafeDomElementRef-32290273.js';
|
|
110
|
-
import './IconStyle.styles.css';
|
|
111
110
|
import './clientHints-a42b510c.js';
|
|
112
111
|
import './IconButton-bb390936.js';
|
|
113
112
|
import './BaseButton-feeaaf1c.js';
|
|
@@ -144,41 +143,6 @@ import './MessagesContext-76544845.js';
|
|
|
144
143
|
import './ComponentMessageStyles.styles.css';
|
|
145
144
|
import './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageBaseTheme.styles.css';
|
|
146
145
|
import './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageVariants.css.js';
|
|
147
|
-
import './InputGroupContext-20bdbd6e.js';
|
|
148
|
-
import './Popup-0f23bad9.js';
|
|
149
|
-
import './tabbableUtils-c8311ec6.js';
|
|
150
|
-
import './head-8f89fe66.js';
|
|
151
|
-
import './_arity-be492b9e.js';
|
|
152
|
-
import './_isArray-694cc52d.js';
|
|
153
|
-
import './_isString-675f1de9.js';
|
|
154
|
-
import './FocusTrap-b59d5752.js';
|
|
155
|
-
import './FocusTracker-70300f1c.js';
|
|
156
|
-
import './PRIVATE_FocusTracker/themes/FocusTrackerStyles.css.js';
|
|
157
|
-
import './FocusTrackerStyles.styles.css';
|
|
158
|
-
import './Modal-c0f730b8.js';
|
|
159
|
-
import './UNSAFE_Modal/themes/ModalStyles.css.js';
|
|
160
|
-
import './ModalStyles.styles.css';
|
|
161
|
-
import './popupUtils-7774330e.js';
|
|
162
|
-
import './WindowOverlay-cd90d18c.js';
|
|
163
|
-
import './UNSAFE_WindowOverlay/themes/WindowOverlayStyles.css.js';
|
|
164
|
-
import './WindowOverlayStyles.styles.css';
|
|
165
|
-
import './UNSAFE_WindowOverlay/themes/WindowOverlayContract.css.js';
|
|
166
|
-
import './UNSAFE_WindowOverlay/themes/redwood/WindowOverlayTheme.js';
|
|
167
|
-
import './UNSAFE_WindowOverlay/themes/redwood/WindowOverlayBaseTheme.css.js';
|
|
168
|
-
import './UNSAFE_WindowOverlay/themes/redwood/WindowOverlayBaseTheme.styles.css';
|
|
169
|
-
import './UNSAFE_WindowOverlay/themes/redwood/WindowOverlayVariants.css.js';
|
|
170
|
-
import './usePopupAnimation-7c5db425.js';
|
|
171
|
-
import './useAnimationStatus-b881f39a.js';
|
|
172
|
-
import './popupAnimationUtils-175151d9.js';
|
|
173
|
-
import './LiveRegion-2e8830ae.js';
|
|
174
|
-
import './LiveRegionStyles.styles.css';
|
|
175
|
-
import './UNSAFE_Popup/themes/PopupContract.css.js';
|
|
176
|
-
import './UNSAFE_Popup/themes/redwood/PopupTheme.js';
|
|
177
|
-
import './UNSAFE_Popup/themes/redwood/PopupBaseTheme.css.js';
|
|
178
|
-
import './UNSAFE_Popup/themes/redwood/PopupBaseTheme.styles.css';
|
|
179
|
-
import './UNSAFE_Popup/themes/redwood/PopupVariants.css.js';
|
|
180
|
-
import './PopupStyles.styles.css';
|
|
181
|
-
import './colors-03807160.js';
|
|
182
146
|
import './UNSAFE_Separator/themes/SeparatorStyles.css.js';
|
|
183
147
|
import './SeparatorStyles.styles.css';
|
|
184
148
|
import './CompactLabelAssistance-58b860e8.js';
|
|
@@ -188,24 +152,12 @@ import './UNSAFE_Icon/themes/IconStyle.css.js';
|
|
|
188
152
|
import './UNSAFE_UserAssistance/themes/UserAssistanceStyles.css.js';
|
|
189
153
|
import './UNSAFE_Label/themes/redwood/LabelTheme.js';
|
|
190
154
|
import './UNSAFE_Label/themes/LabelStyles.css.js';
|
|
191
|
-
import './LabelStyles.styles.css';
|
|
192
155
|
import './UNSAFE_Label/themes/redwood/LabelBaseTheme.css.js';
|
|
193
|
-
import './UNSAFE_Label/themes/redwood/LabelBaseTheme.styles.css';
|
|
194
|
-
import './UNSAFE_Label/themes/redwood/LabelVariants.css.js';
|
|
195
156
|
import './UNSAFE_TextField/themes/redwood/TextFieldTheme.js';
|
|
196
|
-
import './UNSAFE_TextField/themes/TextFieldStyles.css.js';
|
|
197
|
-
import './SkeletonStyles.styles.css';
|
|
198
|
-
import './TextFieldLoadingStyles.styles.css';
|
|
199
|
-
import './TextFieldStyles.styles.css';
|
|
200
157
|
import './UNSAFE_TextField/themes/redwood/TextFieldBaseTheme.css.js';
|
|
201
|
-
import './UNSAFE_TextField/themes/redwood/TextFieldBaseTheme.styles.css';
|
|
202
|
-
import './UNSAFE_TextField/themes/redwood/TextFieldVariants.css.js';
|
|
203
158
|
import './TextFieldVariants.styles.css';
|
|
204
|
-
import './keyboardUtils-986fe923.js';
|
|
205
|
-
import './StyledTextField-64f0929e.js';
|
|
206
159
|
import './useAccessibleContext-5744de8b.js';
|
|
207
160
|
import './useTextFieldInputHandlers-8122048f.js';
|
|
208
|
-
import './formControlUtils-84e2af0e.js';
|
|
209
161
|
import './textAlign-ad252afa.js';
|
|
210
162
|
import './text.styles.css';
|
|
211
163
|
import './TextFieldUtils-8232bca7.js';
|
|
@@ -232,21 +184,19 @@ import './UNSAFE_Skeleton/themes/redwood/SkeletonBaseTheme.css.js';
|
|
|
232
184
|
import './UNSAFE_Skeleton/themes/redwood/SkeletonBaseTheme.styles.css';
|
|
233
185
|
import './UNSAFE_Skeleton/themes/redwood/SkeletonVariants.css.js';
|
|
234
186
|
import './useInputGroupContext-1d19411e.js';
|
|
187
|
+
import './useUser-e543b73c.js';
|
|
235
188
|
import './UNSAFE_TextField/themes/redwood/ReadonlyTextFieldTheme.js';
|
|
236
189
|
import './UNSAFE_TextField/themes/ReadonlyTextFieldStyles.css.js';
|
|
237
190
|
import './ReadonlyTextFieldStyles.styles.css';
|
|
238
191
|
import './UNSAFE_TextField/themes/redwood/ReadonlyTextFieldVariants.css.js';
|
|
239
192
|
import './ReadonlyTextFieldVariants.styles.css';
|
|
240
|
-
import './ObfuscatedTextFieldInputStyles.styles.css';
|
|
241
|
-
import './ReadonlyTextFieldInput-5ff445b5.js';
|
|
242
193
|
import './UNSAFE_TextField/themes/redwood/ReadonlyTextFieldInputTheme.js';
|
|
243
194
|
import './UNSAFE_TextField/themes/ReadonlyTextFieldInputStyles.css.js';
|
|
244
195
|
import './ReadonlyTextFieldInputStyles.styles.css';
|
|
245
196
|
import './UNSAFE_TextField/themes/redwood/ReadonlyTextFieldInputVariants.css.js';
|
|
246
|
-
import './TextField-9aba3df3.js';
|
|
247
|
-
import './MaxLengthLiveRegion-8f552ae2.js';
|
|
248
197
|
import './useDebounce-fa5a80e9.js';
|
|
249
|
-
import './
|
|
198
|
+
import './LiveRegion-2e8830ae.js';
|
|
199
|
+
import './LiveRegionStyles.styles.css';
|
|
250
200
|
import './ComponentMessageContainer-b3f70763.js';
|
|
251
201
|
import './MessagesManager-98126752.js';
|
|
252
202
|
import './SuccessS-56e4238e.js';
|
|
@@ -263,7 +213,177 @@ import './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageBaseTheme.css.j
|
|
|
263
213
|
import './UNSAFE_UserAssistance/themes/redwood/UserAssistanceTheme.js';
|
|
264
214
|
import './UNSAFE_UserAssistance/themes/redwood/UserAssistanceBaseTheme.css.js';
|
|
265
215
|
import './InlineHelp-774fd01d.js';
|
|
266
|
-
import './CompactUserAssistance-946c7e35.js';
|
|
267
216
|
import './Separator-93c70737.js';
|
|
217
|
+
import './index-aec1cc7f.js';
|
|
218
|
+
import './UNSAFE_Layer/themes/LayerHostStyles.css.js';
|
|
219
|
+
import './LayerHostStyles.styles.css';
|
|
220
|
+
import './EnvironmentProvider-6cf8ed37.js';
|
|
221
|
+
import './LayerManager-e30fbfd6.js';
|
|
222
|
+
import './Floating-0a11107a.js';
|
|
223
|
+
import './useFloating-c74a7f54.js';
|
|
224
|
+
import './positionUtils-f26caad9.js';
|
|
225
|
+
import './refUtils-76275c69.js';
|
|
226
|
+
import './useOutsideClick-3ac4fc59.js';
|
|
227
|
+
import './Layer-6c27170e.js';
|
|
228
|
+
import './UNSAFE_Layer/themes/LayerStyles.css.js';
|
|
229
|
+
import './LayerStyles.styles.css';
|
|
230
|
+
import './useModal-953082f2.js';
|
|
231
|
+
import './UNSAFE_Floating/themes/redwood/FloatingTheme.js';
|
|
232
|
+
import './UNSAFE_Floating/themes/FloatingStyles.css.js';
|
|
233
|
+
import './FloatingStyles.styles.css';
|
|
234
|
+
import './UNSAFE_Floating/themes/redwood/FloatingBaseTheme.css.js';
|
|
235
|
+
import './UNSAFE_Floating/themes/redwood/FloatingBaseTheme.styles.css';
|
|
236
|
+
import './UNSAFE_Floating/themes/redwood/FloatingVariants.css.js';
|
|
237
|
+
import './vanilla-extract-dynamic.esm-c909758c.js';
|
|
238
|
+
import './UNSAFE_Floating/themes/FloatingContract.css.js';
|
|
239
|
+
import './useUnsafeDomElementRef-32290273.js';
|
|
240
|
+
import './tabbableUtils-c8311ec6.js';
|
|
241
|
+
import './head-8f89fe66.js';
|
|
242
|
+
import './_arity-be492b9e.js';
|
|
243
|
+
import './_isArray-694cc52d.js';
|
|
244
|
+
import './_isString-675f1de9.js';
|
|
245
|
+
import './FocusTrap-b59d5752.js';
|
|
246
|
+
import './FocusTracker-70300f1c.js';
|
|
247
|
+
import './PRIVATE_FocusTracker/themes/FocusTrackerStyles.css.js';
|
|
248
|
+
import './FocusTrackerStyles.styles.css';
|
|
249
|
+
import './Modal-c0f730b8.js';
|
|
250
|
+
import './UNSAFE_Modal/themes/ModalStyles.css.js';
|
|
251
|
+
import './ModalStyles.styles.css';
|
|
252
|
+
import './popupUtils-7774330e.js';
|
|
253
|
+
import './WindowOverlay-cd90d18c.js';
|
|
254
|
+
import './UNSAFE_WindowOverlay/themes/WindowOverlayStyles.css.js';
|
|
255
|
+
import './WindowOverlayStyles.styles.css';
|
|
256
|
+
import './UNSAFE_WindowOverlay/themes/WindowOverlayContract.css.js';
|
|
257
|
+
import './UNSAFE_WindowOverlay/themes/redwood/WindowOverlayTheme.js';
|
|
258
|
+
import './UNSAFE_WindowOverlay/themes/redwood/WindowOverlayBaseTheme.css.js';
|
|
259
|
+
import './UNSAFE_WindowOverlay/themes/redwood/WindowOverlayBaseTheme.styles.css';
|
|
260
|
+
import './UNSAFE_WindowOverlay/themes/redwood/WindowOverlayVariants.css.js';
|
|
261
|
+
import './usePopupAnimation-7c5db425.js';
|
|
262
|
+
import './useAnimationStatus-b881f39a.js';
|
|
263
|
+
import './popupAnimationUtils-175151d9.js';
|
|
264
|
+
import './UNSAFE_Popup/themes/PopupContract.css.js';
|
|
265
|
+
import './UNSAFE_Popup/themes/redwood/PopupTheme.js';
|
|
266
|
+
import './UNSAFE_Popup/themes/redwood/PopupBaseTheme.css.js';
|
|
267
|
+
import './PopupStyles.styles.css';
|
|
268
|
+
import './colors-03807160.js';
|
|
268
269
|
import './MaxLengthCounterStyles.styles.css';
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* A text area displays a field that allows a user to enter a multi-line text value.
|
|
273
|
+
*/
|
|
274
|
+
const TextArea = forwardRef(({ 'aria-describedby': ariaDescribedBy, assistiveText, autoComplete = 'off', autoFocus = false, columnSpan, helpSourceLink, helpSourceText, isDisabled: propIsDisabled, isReadonly: propIsReadonly, isRequired = false, isRequiredShown, label, labelEdge: propLabelEdge, labelStartWidth: propLabelStartWidth, maxLength, maxLengthCounter = 'remaining', maxLengthUnit, messages, placeholder, resize, role, rows, textAlign: propTextAlign, userAssistanceDensity: propUserAssistanceDensity, value, variant = 'default', onInput, onCommit, testId }, ref) => {
|
|
275
|
+
const translations = useTranslationBundle('@oracle/oraclejet-preact');
|
|
276
|
+
const formControl_limitReached = maxLength
|
|
277
|
+
? translations.formControl_limitReached({
|
|
278
|
+
CHARACTER_LIMIT: maxLength
|
|
279
|
+
})
|
|
280
|
+
: '';
|
|
281
|
+
const { currentCommitValue, dispatch } = useCurrentValueReducer({ value });
|
|
282
|
+
const onInputAndDispatch = useCallback((detail) => {
|
|
283
|
+
// Should dispatch happen first? This will queue up a re-render, ordering should not cause issues (this is async)
|
|
284
|
+
dispatch({ type: 'input', payload: detail.value });
|
|
285
|
+
onInput?.(detail);
|
|
286
|
+
}, [onInput, dispatch]);
|
|
287
|
+
const onCommitAndDispatch = useCallback((detail) => {
|
|
288
|
+
// Should dispatch happen first? This will queue up a re-render, ordering should not cause issues (this is async)
|
|
289
|
+
dispatch({ type: 'commit', payload: detail.value });
|
|
290
|
+
onCommit?.(detail);
|
|
291
|
+
}, [onCommit, dispatch]);
|
|
292
|
+
const { isDisabled: isFormDisabled, isReadonly: isFormReadonly, labelEdge: formLabelEdge, labelStartWidth: formLabelStartWidth, textAlign: formTextAlign, userAssistanceDensity: formUserAssistanceDensity } = useFormContext();
|
|
293
|
+
// default to FormContext values if component properties are not specified
|
|
294
|
+
const isDisabled = propIsDisabled ?? isFormDisabled;
|
|
295
|
+
const isReadonly = propIsReadonly ?? isFormReadonly;
|
|
296
|
+
const labelEdge = propLabelEdge ?? formLabelEdge;
|
|
297
|
+
const labelStartWidth = propLabelStartWidth ?? formLabelStartWidth;
|
|
298
|
+
const textAlign = propTextAlign ?? formTextAlign ?? defaultTextAlignForVariant(variant);
|
|
299
|
+
const userAssistanceDensity = propUserAssistanceDensity ?? formUserAssistanceDensity;
|
|
300
|
+
const maxLengthDescribedByIdRef = useRef(useId());
|
|
301
|
+
// The enabledAriaDescribedBy includes the maxLengthDescribedById in addition to what was passed in to aria-describedby.
|
|
302
|
+
// We don't need to announce the max length message for readonly, as it only applies when editing the value.
|
|
303
|
+
const enabledAriaDescribedBy = ariaDescribedBy
|
|
304
|
+
? `${ariaDescribedBy} ${maxLengthDescribedByIdRef.current}`
|
|
305
|
+
: maxLengthDescribedByIdRef.current;
|
|
306
|
+
const enabledElementRef = useRef(null);
|
|
307
|
+
const readonlyElementRef = useRef(null);
|
|
308
|
+
// We want to have alt/option+Enter to insert a newline like Enter does.
|
|
309
|
+
const { handleKeyDown } = useTextAreaAltEnter({
|
|
310
|
+
onInput: onInputAndDispatch,
|
|
311
|
+
textAreaRef: enabledElementRef
|
|
312
|
+
});
|
|
313
|
+
const { focusProps, isFocused, methods: focusMethods } = useFocusableTextField({
|
|
314
|
+
isDisabled,
|
|
315
|
+
isReadonly,
|
|
316
|
+
enabledElementRef,
|
|
317
|
+
readonlyElementRef
|
|
318
|
+
});
|
|
319
|
+
const { methods: selectMethods } = useSelectableTextField(enabledElementRef);
|
|
320
|
+
useImperativeHandle(ref, () => mergeProps(focusMethods, selectMethods), [
|
|
321
|
+
focusMethods,
|
|
322
|
+
selectMethods
|
|
323
|
+
]);
|
|
324
|
+
// Handle length filter for user-typed inputs and controlled inputs
|
|
325
|
+
const { isMaxLengthExceeded, isMaxLengthReached, valueLength, onFilteredInput } = useLengthFilter({
|
|
326
|
+
maxLength,
|
|
327
|
+
maxLengthUnit,
|
|
328
|
+
value,
|
|
329
|
+
onInput: onInputAndDispatch,
|
|
330
|
+
onCommit: onCommitAndDispatch
|
|
331
|
+
});
|
|
332
|
+
const limitMessage = [{ detail: formControl_limitReached, severity: 'info' }];
|
|
333
|
+
const allMessages = [
|
|
334
|
+
...(messages ?? []),
|
|
335
|
+
...(isMaxLengthReached ? limitMessage : [])
|
|
336
|
+
];
|
|
337
|
+
const { formFieldContext, inputProps, labelProps, textFieldProps, userAssistanceProps } = useTextField({
|
|
338
|
+
ariaDescribedBy: isReadonly || isDisabled ? ariaDescribedBy : enabledAriaDescribedBy,
|
|
339
|
+
contentVariant: 'textarea',
|
|
340
|
+
helpSourceLink,
|
|
341
|
+
helpSourceText,
|
|
342
|
+
isDisabled,
|
|
343
|
+
isFocused,
|
|
344
|
+
isReadonly,
|
|
345
|
+
isRequiredShown,
|
|
346
|
+
labelEdge,
|
|
347
|
+
messages: allMessages,
|
|
348
|
+
styleVariant: variant,
|
|
349
|
+
userAssistanceDensity,
|
|
350
|
+
value
|
|
351
|
+
});
|
|
352
|
+
const onClickCounter = useCallback(() => {
|
|
353
|
+
const elm = enabledElementRef.current;
|
|
354
|
+
// for setSelectionRange(), len needs to be a number or null.
|
|
355
|
+
const len = elm ? elm.value.length : null;
|
|
356
|
+
// Since the counter element is after the text, clicking in this
|
|
357
|
+
// should put the selection at the end of the text
|
|
358
|
+
enabledElementRef.current?.setSelectionRange(len, len);
|
|
359
|
+
// Clicking the counter should put the focus on the input field
|
|
360
|
+
enabledElementRef.current?.focus();
|
|
361
|
+
}, [enabledElementRef]);
|
|
362
|
+
const labelComp = labelEdge !== 'none' ? jsx(Label, { ...labelProps, children: label }) : undefined;
|
|
363
|
+
const fieldLabelProps = {
|
|
364
|
+
label: labelEdge !== 'none' ? labelComp : undefined,
|
|
365
|
+
labelEdge: labelEdge !== 'none' ? labelEdge : undefined,
|
|
366
|
+
labelStartWidth: labelEdge !== 'none' ? labelStartWidth : undefined,
|
|
367
|
+
labelText: labelEdge === 'inside' && !isDisabled ? label : undefined
|
|
368
|
+
};
|
|
369
|
+
const ariaLabel = labelEdge === 'none' ? label : undefined;
|
|
370
|
+
const isInlineDensity = userAssistanceDensity === 'efficient' || userAssistanceDensity === 'reflow';
|
|
371
|
+
const inlineUserAssistance = isInlineDensity ? (isDisabled ? (
|
|
372
|
+
// save space for user assistance if density is 'efficient', even though we don't
|
|
373
|
+
// render user assistance for disabled fields
|
|
374
|
+
userAssistanceDensity !== 'efficient' ? undefined : (jsx(InlineUserAssistance, { userAssistanceDensity: userAssistanceDensity, ...userAssistanceProps }))) : isReadonly ? (jsx(InlineUserAssistance, { fieldLabel: label, messages: messages, userAssistanceDensity: userAssistanceDensity, ...userAssistanceProps })) : (jsx(InlineUserAssistance, { assistiveText: assistiveText, fieldLabel: label, helpSourceLink: helpSourceLink, helpSourceText: helpSourceText, messages: allMessages, isRequiredShown: isRequiredShown, userAssistanceDensity: userAssistanceDensity, ...userAssistanceProps }))) : undefined;
|
|
375
|
+
const anchorRef = useRef(null);
|
|
376
|
+
const compactUserAssistance = userAssistanceDensity === 'compact' ? (jsx(CompactUserAssistance, { anchorRef: anchorRef, messages: allMessages, assistiveText: assistiveText, ...userAssistanceProps })) : undefined;
|
|
377
|
+
if (isReadonly) {
|
|
378
|
+
const mainContent = (jsx(ReadonlyTextFieldInput, { "aria-describedby": inputProps['aria-describedby'], "aria-label": ariaLabel, "aria-labelledby": labelProps.id, as: "textarea", elementRef: readonlyElementRef, formVariant: variant, rows: rows, autoFocus: autoFocus, textAlign: textAlign, value: value, variant: "textarea", hasEmptyLabel: label === '' && labelEdge === 'none', hasInsideLabel: label !== undefined && labelEdge === 'inside', onBlur: inputProps.onBlur, onFocus: inputProps.onFocus }));
|
|
379
|
+
return (jsx(FormFieldContext.Provider, { value: formFieldContext, children: jsx(ReadonlyTextField, { role: "presentation", columnSpan: columnSpan, compactUserAssistance: compactUserAssistance, inlineUserAssistance: inlineUserAssistance, ref: anchorRef, testId: testId, variant: "textarea", mainContent: mainContent, resize: resize, ...fieldLabelProps }) }));
|
|
380
|
+
}
|
|
381
|
+
const hasMaxLength = maxLength !== undefined;
|
|
382
|
+
const mainContent = (jsxs(Fragment, { children: [jsx(TextFieldInput, { as: "textarea", "aria-label": ariaLabel, autoComplete: autoComplete, autoFocus: autoFocus, currentCommitValue: currentCommitValue, hasEmptyLabel: label === '' && labelEdge === 'none', hasInsideLabel: labelComp !== undefined && labelEdge === 'inside', isRequired: isRequired, inputRef: enabledElementRef, onCommit: onCommitAndDispatch, onInput: onFilteredInput, onKeyDown: handleKeyDown, placeholder: placeholder, role: role, rows: rows, textAlign: textAlign, value: value, ...inputProps }), maxLengthCounter === 'remaining' && hasMaxLength && (jsx(MaxLengthCounter, { maxLength: maxLength, valueLength: valueLength, onClick: onClickCounter })), hasMaxLength && (jsx(HiddenAccessible, { id: maxLengthDescribedByIdRef.current, isHidden: true, children: translations.formControl_maxLength({
|
|
383
|
+
MAX_LENGTH: `${maxLength}`
|
|
384
|
+
}) })), hasMaxLength && isFocused && (jsx(MaxLengthLiveRegion, { isMaxLengthExceeded: isMaxLengthExceeded, maxLength: maxLength, valueLength: valueLength, testId: testId ? testId + '_maxLength' : undefined }))] }));
|
|
385
|
+
return (jsx(FormFieldContext.Provider, { value: formFieldContext, children: jsx(TextField, { mainContent: mainContent, columnSpan: columnSpan, compactUserAssistance: compactUserAssistance, inlineUserAssistance: inlineUserAssistance, onBlur: focusProps?.onFocusOut, onFocus: focusProps?.onFocusIn, mainFieldRef: anchorRef, resize: resize, testId: testId, ...textFieldProps, ...fieldLabelProps }) }));
|
|
386
|
+
});
|
|
387
|
+
|
|
388
|
+
export { TextArea };
|
|
269
389
|
//# sourceMappingURL=UNSAFE_TextArea.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UNSAFE_TextArea.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"UNSAFE_TextArea.js","sources":["../../src/UNSAFE_TextArea/TextArea.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { ComponentProps, Ref } from 'preact';\nimport { forwardRef, useCallback, useImperativeHandle, useRef } from 'preact/compat';\n\nimport { useCurrentValueReducer } from '#hooks/UNSAFE_useCurrentValueReducer';\nimport { FocusableHandle, useFocusableTextField } from '#hooks/UNSAFE_useFocusableTextField';\nimport { useFormContext } from '#hooks/UNSAFE_useFormContext';\nimport { FormFieldContext } from '#hooks/UNSAFE_useFormFieldContext';\nimport { useId } from '#hooks/UNSAFE_useId';\nimport { CountUnit, useLengthFilter } from '#hooks/UNSAFE_useLengthFilter';\nimport { SelectableHandle, useSelectableTextField } from '#hooks/UNSAFE_useSelectableTextField';\nimport type { TestIdProps } from '#hooks/UNSAFE_useTestId';\nimport { useTextField } from '#hooks/UNSAFE_useTextField';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '#resources/nls/bundle';\nimport { ComponentMessageItem } from '#UNSAFE_ComponentMessage';\nimport { HiddenAccessible } from '#UNSAFE_HiddenAccessible';\nimport { Label } from '#UNSAFE_Label';\nimport {\n MaxLengthLiveRegion,\n ReadonlyTextField,\n ReadonlyTextFieldInput,\n TextField,\n TextFieldInput\n} from '#UNSAFE_TextField';\nimport {\n CompactUserAssistance,\n InlineUserAssistance,\n UserAssistanceDensityType\n} from '#UNSAFE_UserAssistance';\nimport { defaultTextAlignForVariant } from '#utils/PRIVATE_formControlUtils';\nimport { mergeProps } from '#utils/UNSAFE_mergeProps';\nimport { Size } from '#utils/UNSAFE_size';\nimport { LayoutColumnSpan } from '#utils/UNSAFE_styles/Layout';\nimport { ValueUpdateDetail } from '#utils/UNSAFE_valueUpdateDetail';\nimport { MaxLengthCounter } from './MaxLengthCounter';\nimport { useTextAreaAltEnter } from './useTextAreaAltEnter';\n\ntype TextFieldProps = ComponentProps<typeof TextField>;\ntype TextFieldInputProps = ComponentProps<typeof TextFieldInput>;\ntype InlineUserAssistanceProps = ComponentProps<typeof InlineUserAssistance>;\n\ntype Props = TestIdProps & {\n /**\n * The ID of an element (or space separated IDs of multiple elements) that\n * describes the input.\n */\n 'aria-describedby'?: TextFieldInputProps['aria-describedby'];\n\n /**\n * Text to provide guidance to help the user understand what to enter.\n */\n assistiveText?: InlineUserAssistanceProps['assistiveText'];\n /**\n * Dictates component's autocomplete state.\n * This attribute indicates whether the value of the control can be automatically completed by the browser.\n * The common values are \"on\" and \"off\".\n */\n autoComplete?: TextFieldInputProps['autoComplete'];\n /**\n * Autofocus specifies whether the component will get focus when the page is loaded.\n * If it is set to true then the associated component will get input focus when the page is loaded.\n * Setting this property doesn't set the focus to the component; it tells the browser to focus\n * to it when the element is inserted in the document.\n */\n autoFocus?: TextFieldInputProps['autoFocus'];\n /**\n * Specifies how many columns to span in a FormLayout with direction === 'row'\n */\n columnSpan?: LayoutColumnSpan;\n /**\n * Help source URL associated with the component.\n */\n helpSourceLink?: InlineUserAssistanceProps['helpSourceLink'];\n /**\n * Custom text to be rendered for the <code>helpSourceLink</code>.\n */\n helpSourceText?: InlineUserAssistanceProps['helpSourceText'];\n /**\n * Specifies whether the component is disabled.\n */\n isDisabled?: boolean;\n /**\n * Specifies whether the component is readonly.\n */\n isReadonly?: boolean;\n /**\n * Specifies for accessibility purposes whether a value is required.\n *\n * Setting this property to <code>false</code> means that a value is not required to be\n * committed by the user. Setting this property to <code>true</code> means that a value\n * is required to be committed by the user.\n */\n isRequired?: TextFieldInputProps['isRequired'];\n /**\n * Specifies whether to show an indicator on screen that a value is required, for example\n * before the user has committed a value.\n */\n isRequiredShown?: InlineUserAssistanceProps['isRequiredShown'];\n /**\n * Specifies the label associated with the field.\n */\n label: string;\n /**\n * Specifies where the label is positioned relative to the field.\n */\n labelEdge?: 'inside' | 'start' | 'top' | 'none';\n /**\n * Specifies the width of the label when <code>labelEdge</code> is <code>\"start\"</code>\n */\n labelStartWidth?: Size;\n /**\n * Specifies the maximum number of characters that can be entered in the input field.\n */\n maxLength?: number;\n /**\n * Determines whether the remaining number of characters that can be entered is shown or not.\n */\n maxLengthCounter?: 'none' | 'remaining';\n /**\n * Specifies how the input text characters are to be counted when maxLength is specified.\n */\n maxLengthUnit?: CountUnit;\n /**\n * Messages to show on screen that are associated with the component.\n */\n messages?: InlineUserAssistanceProps['messages'];\n /**\n * A short hint to display before the user enters a value.\n */\n placeholder?: TextFieldInputProps['placeholder'];\n /**\n * Specifies how the user is allowed to manually resize the TextArea component.\n */\n resize?: TextFieldProps['resize'];\n /**\n * Specifies the ARIA role type.\n */\n role?: TextFieldInputProps['role'];\n /**\n * Specifies the number of rows to display\n */\n rows?: TextFieldInputProps['rows'];\n /**\n * Specifies how to align text within the field.\n */\n textAlign?: TextFieldInputProps['textAlign'];\n /**\n * Specifies the density of the user assistance presentation. It can be set to:\n * <ul>\n * <li><code>'efficient'</code>: Show inline and reserve space to prevent layout reflow when user\n * assistance text is displayed.</li>\n * <li><code>'reflow'</code>: Show inline. Layout will reflow when text is displayed.</li>\n * <li><code>'compact'</code>: Messages, help, hints, and required will not be shown inline; they will show in a mode that keeps the screen more compact, like a popup for the messages, and a required icon to indicate Required. </li>\n * </ul>\n */\n userAssistanceDensity?: UserAssistanceDensityType;\n /**\n * The current display value of the component.\n */\n value?: TextFieldInputProps['value'];\n /**\n * The style variant of the component.\n */\n variant?: TextFieldInputProps['variant'];\n /**\n * Callback invoked when the user commits the entered value by blurring out of the field.\n */\n onCommit?: TextFieldInputProps['onCommit'];\n /**\n * Callback invoked each time the user changes the value of the field. For example, if the user\n * types 'abcd', this callback will be called four times with the value as 'a', 'ab', 'abc' and 'abcd'\n * respectively.\n */\n onInput: TextFieldInputProps['onInput'];\n};\n\ntype FocusSelectHandle = FocusableHandle & SelectableHandle;\n\n/**\n * A text area displays a field that allows a user to enter a multi-line text value.\n */\nexport const TextArea = forwardRef(\n (\n {\n 'aria-describedby': ariaDescribedBy,\n assistiveText,\n autoComplete = 'off',\n autoFocus = false,\n columnSpan,\n helpSourceLink,\n helpSourceText,\n isDisabled: propIsDisabled,\n isReadonly: propIsReadonly,\n isRequired = false,\n isRequiredShown,\n label,\n labelEdge: propLabelEdge,\n labelStartWidth: propLabelStartWidth,\n maxLength,\n maxLengthCounter = 'remaining',\n maxLengthUnit,\n messages,\n placeholder,\n resize,\n role,\n rows,\n textAlign: propTextAlign,\n userAssistanceDensity: propUserAssistanceDensity,\n value,\n variant = 'default',\n onInput,\n onCommit,\n testId\n }: Props,\n ref?: Ref<FocusSelectHandle>\n ) => {\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n const formControl_limitReached = maxLength\n ? translations.formControl_limitReached({\n CHARACTER_LIMIT: maxLength\n })\n : '';\n\n const { currentCommitValue, dispatch } = useCurrentValueReducer({ value });\n const onInputAndDispatch = useCallback(\n (detail: ValueUpdateDetail<string>) => {\n // Should dispatch happen first? This will queue up a re-render, ordering should not cause issues (this is async)\n dispatch({ type: 'input', payload: detail.value });\n onInput?.(detail);\n },\n [onInput, dispatch]\n );\n const onCommitAndDispatch = useCallback(\n (detail: ValueUpdateDetail<string>) => {\n // Should dispatch happen first? This will queue up a re-render, ordering should not cause issues (this is async)\n dispatch({ type: 'commit', payload: detail.value });\n onCommit?.(detail);\n },\n [onCommit, dispatch]\n );\n\n const {\n isDisabled: isFormDisabled,\n isReadonly: isFormReadonly,\n labelEdge: formLabelEdge,\n labelStartWidth: formLabelStartWidth,\n textAlign: formTextAlign,\n userAssistanceDensity: formUserAssistanceDensity\n } = useFormContext();\n\n // default to FormContext values if component properties are not specified\n const isDisabled = propIsDisabled ?? isFormDisabled;\n const isReadonly = propIsReadonly ?? isFormReadonly;\n const labelEdge = propLabelEdge ?? formLabelEdge;\n const labelStartWidth = propLabelStartWidth ?? formLabelStartWidth;\n const textAlign = propTextAlign ?? formTextAlign ?? defaultTextAlignForVariant(variant);\n const userAssistanceDensity = propUserAssistanceDensity ?? formUserAssistanceDensity;\n const maxLengthDescribedByIdRef = useRef<string>(useId());\n // The enabledAriaDescribedBy includes the maxLengthDescribedById in addition to what was passed in to aria-describedby.\n // We don't need to announce the max length message for readonly, as it only applies when editing the value.\n const enabledAriaDescribedBy = ariaDescribedBy\n ? `${ariaDescribedBy} ${maxLengthDescribedByIdRef.current}`\n : maxLengthDescribedByIdRef.current;\n\n const enabledElementRef = useRef<HTMLTextAreaElement>(null);\n const readonlyElementRef = useRef<HTMLTextAreaElement>(null);\n\n // We want to have alt/option+Enter to insert a newline like Enter does.\n const { handleKeyDown } = useTextAreaAltEnter({\n onInput: onInputAndDispatch,\n textAreaRef: enabledElementRef\n });\n\n const {\n focusProps,\n isFocused,\n methods: focusMethods\n } = useFocusableTextField<HTMLTextAreaElement, HTMLTextAreaElement>({\n isDisabled,\n isReadonly,\n enabledElementRef,\n readonlyElementRef\n });\n\n const { methods: selectMethods } =\n useSelectableTextField<HTMLTextAreaElement>(enabledElementRef);\n\n useImperativeHandle(ref!, () => mergeProps(focusMethods, selectMethods), [\n focusMethods,\n selectMethods\n ]);\n\n // Handle length filter for user-typed inputs and controlled inputs\n const { isMaxLengthExceeded, isMaxLengthReached, valueLength, onFilteredInput } =\n useLengthFilter({\n maxLength,\n maxLengthUnit,\n value,\n onInput: onInputAndDispatch,\n onCommit: onCommitAndDispatch\n });\n\n const limitMessage = [{ detail: formControl_limitReached, severity: 'info' }];\n const allMessages = [\n ...(messages ?? []),\n ...(isMaxLengthReached ? limitMessage : [])\n ] as ComponentMessageItem[];\n\n const { formFieldContext, inputProps, labelProps, textFieldProps, userAssistanceProps } =\n useTextField({\n ariaDescribedBy: isReadonly || isDisabled ? ariaDescribedBy : enabledAriaDescribedBy,\n contentVariant: 'textarea',\n helpSourceLink,\n helpSourceText,\n isDisabled,\n isFocused,\n isReadonly,\n isRequiredShown,\n labelEdge,\n messages: allMessages,\n styleVariant: variant,\n userAssistanceDensity,\n value\n });\n\n const onClickCounter = useCallback(() => {\n const elm = enabledElementRef.current;\n // for setSelectionRange(), len needs to be a number or null.\n const len = elm ? elm.value.length : null;\n // Since the counter element is after the text, clicking in this\n // should put the selection at the end of the text\n enabledElementRef.current?.setSelectionRange(len, len);\n // Clicking the counter should put the focus on the input field\n enabledElementRef.current?.focus();\n }, [enabledElementRef]);\n\n const labelComp = labelEdge !== 'none' ? <Label {...labelProps}>{label}</Label> : undefined;\n\n const fieldLabelProps = {\n label: labelEdge !== 'none' ? labelComp : undefined,\n labelEdge: labelEdge !== 'none' ? labelEdge : undefined,\n labelStartWidth: labelEdge !== 'none' ? labelStartWidth : undefined,\n labelText: labelEdge === 'inside' && !isDisabled ? label : undefined\n };\n\n const ariaLabel = labelEdge === 'none' ? label : undefined;\n const isInlineDensity =\n userAssistanceDensity === 'efficient' || userAssistanceDensity === 'reflow';\n\n const inlineUserAssistance = isInlineDensity ? (\n isDisabled ? (\n // save space for user assistance if density is 'efficient', even though we don't\n // render user assistance for disabled fields\n userAssistanceDensity !== 'efficient' ? undefined : (\n <InlineUserAssistance\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n )\n ) : isReadonly ? (\n <InlineUserAssistance\n fieldLabel={label}\n messages={messages}\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n ) : (\n <InlineUserAssistance\n assistiveText={assistiveText}\n fieldLabel={label}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n messages={allMessages}\n isRequiredShown={isRequiredShown}\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n )\n ) : undefined;\n\n const anchorRef = useRef<HTMLDivElement>(null);\n\n const compactUserAssistance =\n userAssistanceDensity === 'compact' ? (\n <CompactUserAssistance\n anchorRef={anchorRef}\n messages={allMessages}\n assistiveText={assistiveText}\n {...userAssistanceProps}\n />\n ) : undefined;\n\n if (isReadonly) {\n const mainContent = (\n <ReadonlyTextFieldInput\n aria-describedby={inputProps['aria-describedby']}\n aria-label={ariaLabel}\n aria-labelledby={labelProps.id}\n as=\"textarea\"\n elementRef={readonlyElementRef}\n formVariant={variant}\n rows={rows}\n autoFocus={autoFocus}\n textAlign={textAlign}\n value={value}\n variant=\"textarea\"\n hasEmptyLabel={label === '' && labelEdge === 'none'}\n hasInsideLabel={label !== undefined && labelEdge === 'inside'}\n onBlur={inputProps.onBlur}\n onFocus={inputProps.onFocus}\n />\n );\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <ReadonlyTextField\n role=\"presentation\"\n columnSpan={columnSpan}\n compactUserAssistance={compactUserAssistance}\n inlineUserAssistance={inlineUserAssistance}\n ref={anchorRef}\n testId={testId}\n variant=\"textarea\"\n mainContent={mainContent}\n resize={resize}\n {...fieldLabelProps}\n />\n </FormFieldContext.Provider>\n );\n }\n const hasMaxLength = maxLength !== undefined;\n const mainContent = (\n <>\n <TextFieldInput\n as=\"textarea\"\n aria-label={ariaLabel}\n autoComplete={autoComplete}\n autoFocus={autoFocus}\n currentCommitValue={currentCommitValue}\n hasEmptyLabel={label === '' && labelEdge === 'none'}\n hasInsideLabel={labelComp !== undefined && labelEdge === 'inside'}\n isRequired={isRequired}\n inputRef={enabledElementRef}\n onCommit={onCommitAndDispatch}\n onInput={onFilteredInput}\n onKeyDown={handleKeyDown}\n placeholder={placeholder}\n role={role}\n rows={rows}\n textAlign={textAlign}\n value={value}\n {...inputProps}\n />\n {maxLengthCounter === 'remaining' && hasMaxLength && (\n <MaxLengthCounter\n maxLength={maxLength}\n valueLength={valueLength}\n onClick={onClickCounter}\n />\n )}\n {hasMaxLength && (\n <HiddenAccessible id={maxLengthDescribedByIdRef.current} isHidden={true}>\n {translations.formControl_maxLength({\n MAX_LENGTH: `${maxLength}`\n })}\n </HiddenAccessible>\n )}\n {hasMaxLength && isFocused && (\n <MaxLengthLiveRegion\n isMaxLengthExceeded={isMaxLengthExceeded}\n maxLength={maxLength}\n valueLength={valueLength}\n testId={testId ? testId + '_maxLength' : undefined}\n />\n )}\n </>\n );\n\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <TextField\n mainContent={mainContent}\n columnSpan={columnSpan}\n compactUserAssistance={compactUserAssistance}\n inlineUserAssistance={inlineUserAssistance}\n onBlur={focusProps?.onFocusOut}\n onFocus={focusProps?.onFocusIn}\n mainFieldRef={anchorRef}\n resize={resize}\n testId={testId}\n {...textFieldProps}\n {...fieldLabelProps}></TextField>\n </FormFieldContext.Provider>\n );\n }\n);\n"],"names":["_jsx","_jsxs","_Fragment"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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KAAK,EACR,GAAA,UAAU,EACd,CAAA,EACD,gBAAgB,KAAK,WAAW,IAAI,YAAY,KAC/CA,GAAA,CAAC,gBAAgB,EACf,EAAA,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,cAAc,EACvB,CAAA,CACH,EACA,YAAY,KACXA,GAAA,CAAC,gBAAgB,EAAA,EAAC,EAAE,EAAE,yBAAyB,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAA,QAAA,EACpE,YAAY,CAAC,qBAAqB,CAAC;oBAClC,UAAU,EAAE,CAAG,EAAA,SAAS,CAAE,CAAA;AAC3B,iBAAA,CAAC,GACe,CACpB,EACA,YAAY,IAAI,SAAS,KACxBA,GAAA,CAAC,mBAAmB,EAAA,EAClB,mBAAmB,EAAE,mBAAmB,EACxC,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,YAAY,GAAG,SAAS,GAClD,CACH,CAAA,EAAA,CACA,CACJ,CAAC;IAEF,QACEA,GAAC,CAAA,gBAAgB,CAAC,QAAQ,EAAC,EAAA,KAAK,EAAE,gBAAgB,EAChD,QAAA,EAAAA,GAAA,CAAC,SAAS,EAAA,EACR,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,EACtB,qBAAqB,EAAE,qBAAqB,EAC5C,oBAAoB,EAAE,oBAAoB,EAC1C,MAAM,EAAE,UAAU,EAAE,UAAU,EAC9B,OAAO,EAAE,UAAU,EAAE,SAAS,EAC9B,YAAY,EAAE,SAAS,EACvB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EAAA,GACV,cAAc,EAAA,GACd,eAAe,EAAA,CAAc,EACT,CAAA,EAC5B;AACJ,CAAC;;;;"}
|
|
@@ -14,7 +14,7 @@ import { u as useTextField } from './useTextField-eb9db737.js';
|
|
|
14
14
|
import { u as useTranslationBundle } from './useTranslationBundle-bc6e0896.js';
|
|
15
15
|
import { H as HiddenAccessible } from './HiddenAccessible-61197e7c.js';
|
|
16
16
|
import { L as Label } from './Label-a6c32235.js';
|
|
17
|
-
import { u as useTextAreaAltEnter, M as MaxLengthCounter } from './
|
|
17
|
+
import { u as useTextAreaAltEnter, M as MaxLengthCounter } from './useTextAreaAltEnter-ac460f4c.js';
|
|
18
18
|
import './keyboardUtils-986fe923.js';
|
|
19
19
|
import { R as ReadonlyTextField, T as TextFieldInput } from './StyledTextField-64f0929e.js';
|
|
20
20
|
import './ObfuscatedTextFieldInputStyles.styles.css';
|