@kaizen/components 1.4.21 → 1.4.22
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/CHANGELOG.md +8 -0
- package/dist/iife/Icon.module-VD7NKLAR-VD7NKLAR.scss +72 -0
- package/dist/iife/__future__/index.js +915 -594
- package/dist/iife/index.js +1936 -2069
- package/package.json +32 -32
- /package/dist/iife/{Dropdown.module-4CIBZTRZ.scss → Dropdown.module-4CIBZTRZ-4CIBZTRZ.scss} +0 -0
- /package/dist/iife/{Layout.module-MZ6JYT46.scss → Layout.module-MZ6JYT46-MZ6JYT46.scss} +0 -0
- /package/dist/iife/{Margin.module-DJURK5K7.scss → Margin.module-DJURK5K7-DJURK5K7.scss} +0 -0
- /package/dist/iife/{Menu.module-N76N74LN.scss → Menu.module-N76N74LN-N76N74LN.scss} +0 -0
- /package/dist/iife/{Padding.module-QSNUEZBU.scss → Padding.module-QSNUEZBU-QSNUEZBU.scss} +0 -0
- /package/dist/iife/{SkipLink.module-KAZA7PAL.scss → SkipLink.module-KAZA7PAL-KAZA7PAL.scss} +0 -0
- /package/dist/iife/{Text.module-SXGFOHGJ.scss → Text.module-SXGFOHGJ-SXGFOHGJ.scss} +0 -0
- /package/dist/iife/{VisuallyHidden.module-E5JUNEF5.scss → VisuallyHidden.module-E5JUNEF5-E5JUNEF5.scss} +0 -0
|
@@ -429,7 +429,7 @@
|
|
|
429
429
|
ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
|
|
430
430
|
ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function warn3(format2) {
|
|
433
433
|
{
|
|
434
434
|
{
|
|
435
435
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
@@ -567,7 +567,7 @@
|
|
|
567
567
|
var defineDeprecationWarning = function(methodName, info) {
|
|
568
568
|
Object.defineProperty(Component.prototype, methodName, {
|
|
569
569
|
get: function() {
|
|
570
|
-
|
|
570
|
+
warn3("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
|
|
571
571
|
return void 0;
|
|
572
572
|
}
|
|
573
573
|
});
|
|
@@ -1035,7 +1035,7 @@
|
|
|
1035
1035
|
{
|
|
1036
1036
|
if (iteratorFn === iterableChildren.entries) {
|
|
1037
1037
|
if (!didWarnAboutMaps) {
|
|
1038
|
-
|
|
1038
|
+
warn3("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");
|
|
1039
1039
|
}
|
|
1040
1040
|
didWarnAboutMaps = true;
|
|
1041
1041
|
}
|
|
@@ -1173,7 +1173,7 @@
|
|
|
1173
1173
|
},
|
|
1174
1174
|
set: function(displayName) {
|
|
1175
1175
|
if (!hasWarnedAboutDisplayNameOnConsumer) {
|
|
1176
|
-
|
|
1176
|
+
warn3("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName);
|
|
1177
1177
|
hasWarnedAboutDisplayNameOnConsumer = true;
|
|
1178
1178
|
}
|
|
1179
1179
|
}
|
|
@@ -1937,12 +1937,12 @@
|
|
|
1937
1937
|
{
|
|
1938
1938
|
if (!didWarnAboutDeprecatedCreateFactory) {
|
|
1939
1939
|
didWarnAboutDeprecatedCreateFactory = true;
|
|
1940
|
-
|
|
1940
|
+
warn3("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");
|
|
1941
1941
|
}
|
|
1942
1942
|
Object.defineProperty(validatedFactory, "type", {
|
|
1943
1943
|
enumerable: false,
|
|
1944
1944
|
get: function() {
|
|
1945
|
-
|
|
1945
|
+
warn3("Factory.type is deprecated. Access the class directly before passing it to createFactory.");
|
|
1946
1946
|
Object.defineProperty(this, "type", {
|
|
1947
1947
|
value: type
|
|
1948
1948
|
});
|
|
@@ -1975,7 +1975,7 @@
|
|
|
1975
1975
|
if (prevTransition === null && currentTransition._updatedFibers) {
|
|
1976
1976
|
var updatedFibersCount = currentTransition._updatedFibers.size;
|
|
1977
1977
|
if (updatedFibersCount > 10) {
|
|
1978
|
-
|
|
1978
|
+
warn3("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.");
|
|
1979
1979
|
}
|
|
1980
1980
|
currentTransition._updatedFibers.clear();
|
|
1981
1981
|
}
|
|
@@ -10100,16 +10100,16 @@
|
|
|
10100
10100
|
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
|
|
10101
10101
|
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
10102
10102
|
}
|
|
10103
|
-
var
|
|
10103
|
+
var React84 = require_react();
|
|
10104
10104
|
var Scheduler = require_scheduler();
|
|
10105
|
-
var ReactSharedInternals =
|
|
10105
|
+
var ReactSharedInternals = React84.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
10106
10106
|
var suppressWarning = false;
|
|
10107
10107
|
function setSuppressWarning(newSuppressWarning) {
|
|
10108
10108
|
{
|
|
10109
10109
|
suppressWarning = newSuppressWarning;
|
|
10110
10110
|
}
|
|
10111
10111
|
}
|
|
10112
|
-
function
|
|
10112
|
+
function warn3(format2) {
|
|
10113
10113
|
{
|
|
10114
10114
|
if (!suppressWarning) {
|
|
10115
10115
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
@@ -11707,7 +11707,7 @@
|
|
|
11707
11707
|
{
|
|
11708
11708
|
if (props.value == null) {
|
|
11709
11709
|
if (typeof props.children === "object" && props.children !== null) {
|
|
11710
|
-
|
|
11710
|
+
React84.Children.forEach(props.children, function(child) {
|
|
11711
11711
|
if (child == null) {
|
|
11712
11712
|
return;
|
|
11713
11713
|
}
|
|
@@ -12203,15 +12203,15 @@
|
|
|
12203
12203
|
};
|
|
12204
12204
|
}
|
|
12205
12205
|
var warnValidStyle$1 = warnValidStyle;
|
|
12206
|
-
function createDangerousStringForStyles(
|
|
12206
|
+
function createDangerousStringForStyles(styles65) {
|
|
12207
12207
|
{
|
|
12208
12208
|
var serialized = "";
|
|
12209
12209
|
var delimiter = "";
|
|
12210
|
-
for (var styleName in
|
|
12211
|
-
if (!
|
|
12210
|
+
for (var styleName in styles65) {
|
|
12211
|
+
if (!styles65.hasOwnProperty(styleName)) {
|
|
12212
12212
|
continue;
|
|
12213
12213
|
}
|
|
12214
|
-
var styleValue =
|
|
12214
|
+
var styleValue = styles65[styleName];
|
|
12215
12215
|
if (styleValue != null) {
|
|
12216
12216
|
var isCustomProperty = styleName.indexOf("--") === 0;
|
|
12217
12217
|
serialized += delimiter + (isCustomProperty ? styleName : hyphenateStyleName(styleName)) + ":";
|
|
@@ -12222,19 +12222,19 @@
|
|
|
12222
12222
|
return serialized || null;
|
|
12223
12223
|
}
|
|
12224
12224
|
}
|
|
12225
|
-
function setValueForStyles(node,
|
|
12225
|
+
function setValueForStyles(node, styles65) {
|
|
12226
12226
|
var style2 = node.style;
|
|
12227
|
-
for (var styleName in
|
|
12228
|
-
if (!
|
|
12227
|
+
for (var styleName in styles65) {
|
|
12228
|
+
if (!styles65.hasOwnProperty(styleName)) {
|
|
12229
12229
|
continue;
|
|
12230
12230
|
}
|
|
12231
12231
|
var isCustomProperty = styleName.indexOf("--") === 0;
|
|
12232
12232
|
{
|
|
12233
12233
|
if (!isCustomProperty) {
|
|
12234
|
-
warnValidStyle$1(styleName,
|
|
12234
|
+
warnValidStyle$1(styleName, styles65[styleName]);
|
|
12235
12235
|
}
|
|
12236
12236
|
}
|
|
12237
|
-
var styleValue = dangerousStyleValue(styleName,
|
|
12237
|
+
var styleValue = dangerousStyleValue(styleName, styles65[styleName], isCustomProperty);
|
|
12238
12238
|
if (styleName === "float") {
|
|
12239
12239
|
styleName = "cssFloat";
|
|
12240
12240
|
}
|
|
@@ -12248,9 +12248,9 @@
|
|
|
12248
12248
|
function isValueEmpty(value) {
|
|
12249
12249
|
return value == null || typeof value === "boolean" || value === "";
|
|
12250
12250
|
}
|
|
12251
|
-
function expandShorthandMap(
|
|
12251
|
+
function expandShorthandMap(styles65) {
|
|
12252
12252
|
var expanded = {};
|
|
12253
|
-
for (var key in
|
|
12253
|
+
for (var key in styles65) {
|
|
12254
12254
|
var longhands = shorthandToLonghand[key] || [key];
|
|
12255
12255
|
for (var i = 0; i < longhands.length; i++) {
|
|
12256
12256
|
expanded[longhands[i]] = key;
|
|
@@ -15283,7 +15283,7 @@
|
|
|
15283
15283
|
startText = getText();
|
|
15284
15284
|
return true;
|
|
15285
15285
|
}
|
|
15286
|
-
function
|
|
15286
|
+
function reset3() {
|
|
15287
15287
|
root = null;
|
|
15288
15288
|
startText = null;
|
|
15289
15289
|
fallbackText = null;
|
|
@@ -15805,7 +15805,7 @@
|
|
|
15805
15805
|
if (isComposing) {
|
|
15806
15806
|
if (domEventName === "compositionend" || !canUseCompositionEvent && isFallbackCompositionEnd(domEventName, nativeEvent)) {
|
|
15807
15807
|
var chars = getData();
|
|
15808
|
-
|
|
15808
|
+
reset3();
|
|
15809
15809
|
isComposing = false;
|
|
15810
15810
|
return chars;
|
|
15811
15811
|
}
|
|
@@ -19412,15 +19412,15 @@
|
|
|
19412
19412
|
}
|
|
19413
19413
|
if (componentWillMountUniqueNames.size > 0) {
|
|
19414
19414
|
var _sortedNames3 = setToSortedString(componentWillMountUniqueNames);
|
|
19415
|
-
|
|
19415
|
+
warn3("componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", _sortedNames3);
|
|
19416
19416
|
}
|
|
19417
19417
|
if (componentWillReceivePropsUniqueNames.size > 0) {
|
|
19418
19418
|
var _sortedNames4 = setToSortedString(componentWillReceivePropsUniqueNames);
|
|
19419
|
-
|
|
19419
|
+
warn3("componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", _sortedNames4);
|
|
19420
19420
|
}
|
|
19421
19421
|
if (componentWillUpdateUniqueNames.size > 0) {
|
|
19422
19422
|
var _sortedNames5 = setToSortedString(componentWillUpdateUniqueNames);
|
|
19423
|
-
|
|
19423
|
+
warn3("componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", _sortedNames5);
|
|
19424
19424
|
}
|
|
19425
19425
|
};
|
|
19426
19426
|
var pendingLegacyContextWarning = /* @__PURE__ */ new Map();
|
|
@@ -20154,7 +20154,7 @@
|
|
|
20154
20154
|
}
|
|
20155
20155
|
}
|
|
20156
20156
|
var fakeInternalInstance = {};
|
|
20157
|
-
var emptyRefsObject = new
|
|
20157
|
+
var emptyRefsObject = new React84.Component().refs;
|
|
20158
20158
|
var didWarnAboutStateAssignmentForComponent;
|
|
20159
20159
|
var didWarnAboutUninitializedState;
|
|
20160
20160
|
var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate;
|
|
@@ -21646,7 +21646,7 @@
|
|
|
21646
21646
|
/* */
|
|
21647
21647
|
2
|
|
21648
21648
|
);
|
|
21649
|
-
var
|
|
21649
|
+
var Layout2 = (
|
|
21650
21650
|
/* */
|
|
21651
21651
|
4
|
|
21652
21652
|
);
|
|
@@ -22358,10 +22358,10 @@
|
|
|
22358
22358
|
if ((currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode) {
|
|
22359
22359
|
fiberFlags |= MountLayoutDev;
|
|
22360
22360
|
}
|
|
22361
|
-
return mountEffectImpl(fiberFlags,
|
|
22361
|
+
return mountEffectImpl(fiberFlags, Layout2, create, deps);
|
|
22362
22362
|
}
|
|
22363
22363
|
function updateLayoutEffect(create, deps) {
|
|
22364
|
-
return updateEffectImpl(Update,
|
|
22364
|
+
return updateEffectImpl(Update, Layout2, create, deps);
|
|
22365
22365
|
}
|
|
22366
22366
|
function imperativeHandleEffect(create, ref) {
|
|
22367
22367
|
if (typeof ref === "function") {
|
|
@@ -22399,7 +22399,7 @@
|
|
|
22399
22399
|
if ((currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode) {
|
|
22400
22400
|
fiberFlags |= MountLayoutDev;
|
|
22401
22401
|
}
|
|
22402
|
-
return mountEffectImpl(fiberFlags,
|
|
22402
|
+
return mountEffectImpl(fiberFlags, Layout2, imperativeHandleEffect.bind(null, create, ref), effectDeps);
|
|
22403
22403
|
}
|
|
22404
22404
|
function updateImperativeHandle(ref, create, deps) {
|
|
22405
22405
|
{
|
|
@@ -22408,7 +22408,7 @@
|
|
|
22408
22408
|
}
|
|
22409
22409
|
}
|
|
22410
22410
|
var effectDeps = deps !== null && deps !== void 0 ? deps.concat([ref]) : null;
|
|
22411
|
-
return updateEffectImpl(Update,
|
|
22411
|
+
return updateEffectImpl(Update, Layout2, imperativeHandleEffect.bind(null, create, ref), effectDeps);
|
|
22412
22412
|
}
|
|
22413
22413
|
function mountDebugValue(value, formatterFn) {
|
|
22414
22414
|
}
|
|
@@ -22517,7 +22517,7 @@
|
|
|
22517
22517
|
if (prevTransition === null && currentTransition._updatedFibers) {
|
|
22518
22518
|
var updatedFibersCount = currentTransition._updatedFibers.size;
|
|
22519
22519
|
if (updatedFibersCount > 10) {
|
|
22520
|
-
|
|
22520
|
+
warn3("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.");
|
|
22521
22521
|
}
|
|
22522
22522
|
currentTransition._updatedFibers.clear();
|
|
22523
22523
|
}
|
|
@@ -26300,7 +26300,7 @@
|
|
|
26300
26300
|
};
|
|
26301
26301
|
function safelyCallCommitHookLayoutEffectListMount(current2, nearestMountedAncestor) {
|
|
26302
26302
|
try {
|
|
26303
|
-
commitHookEffectListMount(
|
|
26303
|
+
commitHookEffectListMount(Layout2, current2);
|
|
26304
26304
|
} catch (error2) {
|
|
26305
26305
|
captureCommitPhaseError(current2, nearestMountedAncestor, error2);
|
|
26306
26306
|
}
|
|
@@ -26475,7 +26475,7 @@
|
|
|
26475
26475
|
{
|
|
26476
26476
|
if ((flags & Passive$1) !== NoFlags$1) {
|
|
26477
26477
|
markComponentPassiveEffectUnmountStarted(finishedWork);
|
|
26478
|
-
} else if ((flags &
|
|
26478
|
+
} else if ((flags & Layout2) !== NoFlags$1) {
|
|
26479
26479
|
markComponentLayoutEffectUnmountStarted(finishedWork);
|
|
26480
26480
|
}
|
|
26481
26481
|
}
|
|
@@ -26493,7 +26493,7 @@
|
|
|
26493
26493
|
{
|
|
26494
26494
|
if ((flags & Passive$1) !== NoFlags$1) {
|
|
26495
26495
|
markComponentPassiveEffectUnmountStopped();
|
|
26496
|
-
} else if ((flags &
|
|
26496
|
+
} else if ((flags & Layout2) !== NoFlags$1) {
|
|
26497
26497
|
markComponentLayoutEffectUnmountStopped();
|
|
26498
26498
|
}
|
|
26499
26499
|
}
|
|
@@ -26514,7 +26514,7 @@
|
|
|
26514
26514
|
{
|
|
26515
26515
|
if ((flags & Passive$1) !== NoFlags$1) {
|
|
26516
26516
|
markComponentPassiveEffectMountStarted(finishedWork);
|
|
26517
|
-
} else if ((flags &
|
|
26517
|
+
} else if ((flags & Layout2) !== NoFlags$1) {
|
|
26518
26518
|
markComponentLayoutEffectMountStarted(finishedWork);
|
|
26519
26519
|
}
|
|
26520
26520
|
}
|
|
@@ -26533,7 +26533,7 @@
|
|
|
26533
26533
|
{
|
|
26534
26534
|
if ((flags & Passive$1) !== NoFlags$1) {
|
|
26535
26535
|
markComponentPassiveEffectMountStopped();
|
|
26536
|
-
} else if ((flags &
|
|
26536
|
+
} else if ((flags & Layout2) !== NoFlags$1) {
|
|
26537
26537
|
markComponentLayoutEffectMountStopped();
|
|
26538
26538
|
}
|
|
26539
26539
|
}
|
|
@@ -26541,7 +26541,7 @@
|
|
|
26541
26541
|
var destroy = effect4.destroy;
|
|
26542
26542
|
if (destroy !== void 0 && typeof destroy !== "function") {
|
|
26543
26543
|
var hookName = void 0;
|
|
26544
|
-
if ((effect4.tag &
|
|
26544
|
+
if ((effect4.tag & Layout2) !== NoFlags) {
|
|
26545
26545
|
hookName = "useLayoutEffect";
|
|
26546
26546
|
} else if ((effect4.tag & Insertion) !== NoFlags) {
|
|
26547
26547
|
hookName = "useInsertionEffect";
|
|
@@ -26612,12 +26612,12 @@
|
|
|
26612
26612
|
if (finishedWork.mode & ProfileMode) {
|
|
26613
26613
|
try {
|
|
26614
26614
|
startLayoutEffectTimer();
|
|
26615
|
-
commitHookEffectListMount(
|
|
26615
|
+
commitHookEffectListMount(Layout2 | HasEffect, finishedWork);
|
|
26616
26616
|
} finally {
|
|
26617
26617
|
recordLayoutEffectDuration(finishedWork);
|
|
26618
26618
|
}
|
|
26619
26619
|
} else {
|
|
26620
|
-
commitHookEffectListMount(
|
|
26620
|
+
commitHookEffectListMount(Layout2 | HasEffect, finishedWork);
|
|
26621
26621
|
}
|
|
26622
26622
|
}
|
|
26623
26623
|
break;
|
|
@@ -27172,7 +27172,7 @@
|
|
|
27172
27172
|
if (destroy !== void 0) {
|
|
27173
27173
|
if ((tag & Insertion) !== NoFlags$1) {
|
|
27174
27174
|
safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy);
|
|
27175
|
-
} else if ((tag &
|
|
27175
|
+
} else if ((tag & Layout2) !== NoFlags$1) {
|
|
27176
27176
|
{
|
|
27177
27177
|
markComponentLayoutEffectUnmountStarted(deletedFiber);
|
|
27178
27178
|
}
|
|
@@ -27327,14 +27327,14 @@
|
|
|
27327
27327
|
if (finishedWork.mode & ProfileMode) {
|
|
27328
27328
|
try {
|
|
27329
27329
|
startLayoutEffectTimer();
|
|
27330
|
-
commitHookEffectListUnmount(
|
|
27330
|
+
commitHookEffectListUnmount(Layout2 | HasEffect, finishedWork, finishedWork.return);
|
|
27331
27331
|
} catch (error2) {
|
|
27332
27332
|
captureCommitPhaseError(finishedWork, finishedWork.return, error2);
|
|
27333
27333
|
}
|
|
27334
27334
|
recordLayoutEffectDuration(finishedWork);
|
|
27335
27335
|
} else {
|
|
27336
27336
|
try {
|
|
27337
|
-
commitHookEffectListUnmount(
|
|
27337
|
+
commitHookEffectListUnmount(Layout2 | HasEffect, finishedWork, finishedWork.return);
|
|
27338
27338
|
} catch (error2) {
|
|
27339
27339
|
captureCommitPhaseError(finishedWork, finishedWork.return, error2);
|
|
27340
27340
|
}
|
|
@@ -27627,12 +27627,12 @@
|
|
|
27627
27627
|
if (fiber.mode & ProfileMode) {
|
|
27628
27628
|
try {
|
|
27629
27629
|
startLayoutEffectTimer();
|
|
27630
|
-
commitHookEffectListUnmount(
|
|
27630
|
+
commitHookEffectListUnmount(Layout2, fiber, fiber.return);
|
|
27631
27631
|
} finally {
|
|
27632
27632
|
recordLayoutEffectDuration(fiber);
|
|
27633
27633
|
}
|
|
27634
27634
|
} else {
|
|
27635
|
-
commitHookEffectListUnmount(
|
|
27635
|
+
commitHookEffectListUnmount(Layout2, fiber, fiber.return);
|
|
27636
27636
|
}
|
|
27637
27637
|
break;
|
|
27638
27638
|
}
|
|
@@ -27915,7 +27915,7 @@
|
|
|
27915
27915
|
case ForwardRef:
|
|
27916
27916
|
case SimpleMemoComponent: {
|
|
27917
27917
|
try {
|
|
27918
|
-
commitHookEffectListMount(
|
|
27918
|
+
commitHookEffectListMount(Layout2 | HasEffect, fiber);
|
|
27919
27919
|
} catch (error2) {
|
|
27920
27920
|
captureCommitPhaseError(fiber, fiber.return, error2);
|
|
27921
27921
|
}
|
|
@@ -27956,7 +27956,7 @@
|
|
|
27956
27956
|
case ForwardRef:
|
|
27957
27957
|
case SimpleMemoComponent: {
|
|
27958
27958
|
try {
|
|
27959
|
-
commitHookEffectListUnmount(
|
|
27959
|
+
commitHookEffectListUnmount(Layout2 | HasEffect, fiber, fiber.return);
|
|
27960
27960
|
} catch (error2) {
|
|
27961
27961
|
captureCommitPhaseError(fiber, fiber.return, error2);
|
|
27962
27962
|
}
|
|
@@ -30541,12 +30541,12 @@
|
|
|
30541
30541
|
};
|
|
30542
30542
|
var copyWithRename = function(obj, oldPath, newPath) {
|
|
30543
30543
|
if (oldPath.length !== newPath.length) {
|
|
30544
|
-
|
|
30544
|
+
warn3("copyWithRename() expects paths of the same length");
|
|
30545
30545
|
return;
|
|
30546
30546
|
} else {
|
|
30547
30547
|
for (var i = 0; i < newPath.length - 1; i++) {
|
|
30548
30548
|
if (oldPath[i] !== newPath[i]) {
|
|
30549
|
-
|
|
30549
|
+
warn3("copyWithRename() expects paths to be the same except for the deepest key");
|
|
30550
30550
|
return;
|
|
30551
30551
|
}
|
|
30552
30552
|
}
|
|
@@ -30769,7 +30769,7 @@
|
|
|
30769
30769
|
if (options2 !== null && options2 !== void 0) {
|
|
30770
30770
|
{
|
|
30771
30771
|
if (options2.hydrate) {
|
|
30772
|
-
|
|
30772
|
+
warn3("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead.");
|
|
30773
30773
|
} else {
|
|
30774
30774
|
if (typeof options2 === "object" && options2 !== null && options2.$$typeof === REACT_ELEMENT_TYPE) {
|
|
30775
30775
|
error("You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:\n\n let root = createRoot(domContainer);\n root.render(<App />);");
|
|
@@ -31214,7 +31214,7 @@
|
|
|
31214
31214
|
"use strict";
|
|
31215
31215
|
var hasOwn = {}.hasOwnProperty;
|
|
31216
31216
|
var nativeCodeString = "[native code]";
|
|
31217
|
-
function
|
|
31217
|
+
function classNames14() {
|
|
31218
31218
|
var classes = [];
|
|
31219
31219
|
for (var i = 0; i < arguments.length; i++) {
|
|
31220
31220
|
var arg = arguments[i];
|
|
@@ -31225,7 +31225,7 @@
|
|
|
31225
31225
|
classes.push(arg);
|
|
31226
31226
|
} else if (Array.isArray(arg)) {
|
|
31227
31227
|
if (arg.length) {
|
|
31228
|
-
var inner =
|
|
31228
|
+
var inner = classNames14.apply(null, arg);
|
|
31229
31229
|
if (inner) {
|
|
31230
31230
|
classes.push(inner);
|
|
31231
31231
|
}
|
|
@@ -31245,14 +31245,14 @@
|
|
|
31245
31245
|
return classes.join(" ");
|
|
31246
31246
|
}
|
|
31247
31247
|
if (typeof module !== "undefined" && module.exports) {
|
|
31248
|
-
|
|
31249
|
-
module.exports =
|
|
31248
|
+
classNames14.default = classNames14;
|
|
31249
|
+
module.exports = classNames14;
|
|
31250
31250
|
} else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
|
|
31251
31251
|
define("classnames", [], function() {
|
|
31252
|
-
return
|
|
31252
|
+
return classNames14;
|
|
31253
31253
|
});
|
|
31254
31254
|
} else {
|
|
31255
|
-
window.classNames =
|
|
31255
|
+
window.classNames = classNames14;
|
|
31256
31256
|
}
|
|
31257
31257
|
})();
|
|
31258
31258
|
}
|
|
@@ -31359,7 +31359,7 @@
|
|
|
31359
31359
|
var ExampleComponent = () => /* @__PURE__ */ import_react.default.createElement("div", { className: `${import_ExampleComponent_module.default.exampleComponent} bg-green-300` }, "ExampleComponent FUTURE");
|
|
31360
31360
|
|
|
31361
31361
|
// ../select/src/Select/Select.tsx
|
|
31362
|
-
var
|
|
31362
|
+
var import_react57 = __toESM(require_react());
|
|
31363
31363
|
|
|
31364
31364
|
// ../../node_modules/@react-stately/utils/dist/module.js
|
|
31365
31365
|
var import_react2 = __toESM(require_react());
|
|
@@ -36150,24 +36150,45 @@
|
|
|
36150
36150
|
}
|
|
36151
36151
|
|
|
36152
36152
|
// ../select/src/Select/Select.tsx
|
|
36153
|
-
var
|
|
36153
|
+
var import_classnames31 = __toESM(require_classnames());
|
|
36154
36154
|
|
|
36155
36155
|
// ../../draft-packages/form/KaizenDraft/Form/CheckboxField/CheckboxField.tsx
|
|
36156
|
-
var
|
|
36157
|
-
var
|
|
36156
|
+
var import_react41 = __toESM(require_react());
|
|
36157
|
+
var import_classnames20 = __toESM(require_classnames());
|
|
36158
36158
|
|
|
36159
36159
|
// ../../draft-packages/form/KaizenDraft/Form/Primitives/Checkbox/Checkbox.tsx
|
|
36160
|
-
var
|
|
36161
|
-
var
|
|
36162
|
-
|
|
36163
|
-
// ../component-library/icons/chevron-down.icon.svg
|
|
36164
|
-
var chevron_down_icon_default = "../chevron-down.icon-COG3GAYR.svg";
|
|
36160
|
+
var import_react27 = __toESM(require_react());
|
|
36161
|
+
var import_classnames6 = __toESM(require_classnames());
|
|
36165
36162
|
|
|
36166
|
-
// ../component-library/
|
|
36163
|
+
// ../component-library/dist/esm/index.js
|
|
36167
36164
|
var import_react17 = __toESM(require_react());
|
|
36168
36165
|
var import_classnames = __toESM(require_classnames());
|
|
36169
|
-
|
|
36170
|
-
|
|
36166
|
+
var import_react18 = __toESM(require_react());
|
|
36167
|
+
var import_classnames2 = __toESM(require_classnames());
|
|
36168
|
+
var import_Icon_module_VD7NKLAR = __toESM(__require("../Icon.module-VD7NKLAR-VD7NKLAR.scss"));
|
|
36169
|
+
var import_react19 = __toESM(require_react());
|
|
36170
|
+
var import_Dropdown_module_4CIBZTRZ = __toESM(__require("../Dropdown.module-4CIBZTRZ-4CIBZTRZ.scss"));
|
|
36171
|
+
var import_Dropdown_module_4CIBZTRZ2 = __toESM(__require("../Dropdown.module-4CIBZTRZ-4CIBZTRZ.scss"));
|
|
36172
|
+
var import_react20 = __toESM(require_react());
|
|
36173
|
+
var import_Layout_module_MZ6JYT46 = __toESM(__require("../Layout.module-MZ6JYT46-MZ6JYT46.scss"));
|
|
36174
|
+
var import_react21 = __toESM(require_react());
|
|
36175
|
+
var import_Menu_module_N76N74LN = __toESM(__require("../Menu.module-N76N74LN-N76N74LN.scss"));
|
|
36176
|
+
var import_react22 = __toESM(require_react());
|
|
36177
|
+
var import_Menu_module_N76N74LN2 = __toESM(__require("../Menu.module-N76N74LN-N76N74LN.scss"));
|
|
36178
|
+
var import_react23 = __toESM(require_react());
|
|
36179
|
+
var import_classnames3 = __toESM(require_classnames());
|
|
36180
|
+
var import_Menu_module_N76N74LN3 = __toESM(__require("../Menu.module-N76N74LN-N76N74LN.scss"));
|
|
36181
|
+
var import_react24 = __toESM(require_react());
|
|
36182
|
+
var import_Menu_module_N76N74LN4 = __toESM(__require("../Menu.module-N76N74LN-N76N74LN.scss"));
|
|
36183
|
+
var import_react25 = __toESM(require_react());
|
|
36184
|
+
var import_classnames4 = __toESM(require_classnames());
|
|
36185
|
+
var import_Text_module_SXGFOHGJ = __toESM(__require("../Text.module-SXGFOHGJ-SXGFOHGJ.scss"));
|
|
36186
|
+
var import_Padding_module_QSNUEZBU = __toESM(__require("../Padding.module-QSNUEZBU-QSNUEZBU.scss"));
|
|
36187
|
+
var import_Margin_module_DJURK5K7 = __toESM(__require("../Margin.module-DJURK5K7-DJURK5K7.scss"));
|
|
36188
|
+
var import_react26 = __toESM(require_react());
|
|
36189
|
+
var import_classnames5 = __toESM(require_classnames());
|
|
36190
|
+
var chevron_down_icon_default = "./chevron-down.icon-COG3GAYR.svg";
|
|
36191
|
+
var ellipsis_icon_default = "./ellipsis.icon-DECY5OPU.svg";
|
|
36171
36192
|
var yellow = "\x1B[33m ";
|
|
36172
36193
|
var reset = "\x1B[0m ";
|
|
36173
36194
|
var warn = (message) => {
|
|
@@ -36179,9 +36200,6 @@ ${singleLine(message)}${reset}
|
|
|
36179
36200
|
);
|
|
36180
36201
|
};
|
|
36181
36202
|
var singleLine = (message) => message.replace(/^ +/gm, " ").replace(/\n|\r/gm, "").trim();
|
|
36182
|
-
|
|
36183
|
-
// ../component-library/components/Icon/Icon.tsx
|
|
36184
|
-
var import_Icon_module = __toESM(__require("../Icon.module-VD7NKLAR.scss"));
|
|
36185
36203
|
var Icon = ({
|
|
36186
36204
|
icon,
|
|
36187
36205
|
inheritSize = false,
|
|
@@ -36206,17 +36224,17 @@ ${singleLine(message)}${reset}
|
|
|
36206
36224
|
"presentation" to indicate it is not meaningful.
|
|
36207
36225
|
`);
|
|
36208
36226
|
}
|
|
36209
|
-
const renderTitle = () => isMeaningfulImg && !!title && /* @__PURE__ */
|
|
36210
|
-
const renderDesc = () => isMeaningfulImg && !!desc && /* @__PURE__ */
|
|
36227
|
+
const renderTitle = () => isMeaningfulImg && !!title && /* @__PURE__ */ import_react18.default.createElement("title", null, title);
|
|
36228
|
+
const renderDesc = () => isMeaningfulImg && !!desc && /* @__PURE__ */ import_react18.default.createElement("desc", null, desc);
|
|
36211
36229
|
const accessibilityProps = {
|
|
36212
36230
|
role,
|
|
36213
36231
|
["aria-hidden"]: isMeaningfulImg ? void 0 : true
|
|
36214
36232
|
};
|
|
36215
|
-
return /* @__PURE__ */
|
|
36233
|
+
return /* @__PURE__ */ import_react18.default.createElement(
|
|
36216
36234
|
"svg",
|
|
36217
36235
|
{
|
|
36218
|
-
className: (0,
|
|
36219
|
-
[
|
|
36236
|
+
className: (0, import_classnames2.default)(import_Icon_module_VD7NKLAR.default.icon, classNameOverride, {
|
|
36237
|
+
[import_Icon_module_VD7NKLAR.default.inheritSize]: inheritSize
|
|
36220
36238
|
}),
|
|
36221
36239
|
viewBox: icon.viewBox,
|
|
36222
36240
|
focusable: "false",
|
|
@@ -36225,12 +36243,257 @@ ${singleLine(message)}${reset}
|
|
|
36225
36243
|
},
|
|
36226
36244
|
renderTitle(),
|
|
36227
36245
|
renderDesc(),
|
|
36228
|
-
/* @__PURE__ */
|
|
36246
|
+
/* @__PURE__ */ import_react18.default.createElement("use", { xlinkHref: `#${icon.id}` })
|
|
36229
36247
|
);
|
|
36230
36248
|
};
|
|
36231
36249
|
Icon.displayName = "Icon";
|
|
36232
|
-
|
|
36233
|
-
|
|
36250
|
+
var DropdownMenu = class extends import_react19.default.Component {
|
|
36251
|
+
constructor() {
|
|
36252
|
+
super(...arguments);
|
|
36253
|
+
this.menu = import_react19.default.createRef();
|
|
36254
|
+
this.handleDocumentClick = (e2) => {
|
|
36255
|
+
if (this.menu && this.menu.current && e2.target instanceof Node && !this.menu.current.contains(e2.target)) {
|
|
36256
|
+
this.props.hideDropdownMenu();
|
|
36257
|
+
}
|
|
36258
|
+
};
|
|
36259
|
+
this.handleDocumentResize = () => {
|
|
36260
|
+
this.props.hideDropdownMenu();
|
|
36261
|
+
};
|
|
36262
|
+
}
|
|
36263
|
+
componentDidMount() {
|
|
36264
|
+
document.addEventListener("click", this.handleDocumentClick, false);
|
|
36265
|
+
window.addEventListener("resize", this.handleDocumentResize, false);
|
|
36266
|
+
this.positionMenu();
|
|
36267
|
+
}
|
|
36268
|
+
componentWillUnmount() {
|
|
36269
|
+
document.removeEventListener("click", this.handleDocumentClick, false);
|
|
36270
|
+
window.removeEventListener("resize", this.handleDocumentResize, false);
|
|
36271
|
+
}
|
|
36272
|
+
render() {
|
|
36273
|
+
const { hideDropdownMenu, children } = this.props;
|
|
36274
|
+
return (
|
|
36275
|
+
// Disabling instead of addressing because this component is deprecated
|
|
36276
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
36277
|
+
/* @__PURE__ */ import_react19.default.createElement(
|
|
36278
|
+
"div",
|
|
36279
|
+
{
|
|
36280
|
+
className: import_Dropdown_module_4CIBZTRZ.default.menuContainer,
|
|
36281
|
+
ref: this.menu,
|
|
36282
|
+
onClick: hideDropdownMenu
|
|
36283
|
+
},
|
|
36284
|
+
children
|
|
36285
|
+
)
|
|
36286
|
+
);
|
|
36287
|
+
}
|
|
36288
|
+
positionMenu() {
|
|
36289
|
+
const menu = this.menu;
|
|
36290
|
+
if (!this.props.position || !menu) {
|
|
36291
|
+
return;
|
|
36292
|
+
}
|
|
36293
|
+
if (menu.current) {
|
|
36294
|
+
const pos = this.props.position;
|
|
36295
|
+
const { innerHeight } = window;
|
|
36296
|
+
const rect = menu.current.getBoundingClientRect();
|
|
36297
|
+
if (pos.bottom > innerHeight - rect.height) {
|
|
36298
|
+
menu.current.style.bottom = "24px";
|
|
36299
|
+
menu.current.style.top = "auto";
|
|
36300
|
+
} else {
|
|
36301
|
+
menu.current.style.top = "24px";
|
|
36302
|
+
menu.current.style.bottom = "auto";
|
|
36303
|
+
}
|
|
36304
|
+
}
|
|
36305
|
+
}
|
|
36306
|
+
};
|
|
36307
|
+
DropdownMenu.displayName = "DropdownMenu";
|
|
36308
|
+
var DropdownMenu_default = DropdownMenu;
|
|
36309
|
+
var Dropdown = class extends import_react17.default.Component {
|
|
36310
|
+
constructor(props) {
|
|
36311
|
+
super(props);
|
|
36312
|
+
this.dropdownButton = import_react17.default.createRef();
|
|
36313
|
+
this.toggleDropdownMenu = (e2) => {
|
|
36314
|
+
e2.stopPropagation();
|
|
36315
|
+
const currentState = this.state.isMenuVisible;
|
|
36316
|
+
this.setState({
|
|
36317
|
+
isMenuVisible: !currentState
|
|
36318
|
+
});
|
|
36319
|
+
};
|
|
36320
|
+
this.hideDropdownMenu = () => {
|
|
36321
|
+
this.setState({
|
|
36322
|
+
isMenuVisible: false
|
|
36323
|
+
});
|
|
36324
|
+
};
|
|
36325
|
+
this.renderIcon = (icon) => {
|
|
36326
|
+
if (!icon)
|
|
36327
|
+
return;
|
|
36328
|
+
return /* @__PURE__ */ import_react17.default.createElement("span", { className: import_Dropdown_module_4CIBZTRZ2.default.dropdownIcon }, /* @__PURE__ */ import_react17.default.createElement(Icon, { icon, role: "img", title: "Open menu" }));
|
|
36329
|
+
};
|
|
36330
|
+
this.renderDownArrow = () => {
|
|
36331
|
+
const { label, controlAction } = this.props;
|
|
36332
|
+
if (!label || !controlAction)
|
|
36333
|
+
return;
|
|
36334
|
+
return /* @__PURE__ */ import_react17.default.createElement("span", { className: import_Dropdown_module_4CIBZTRZ2.default.chevronIcon }, /* @__PURE__ */ import_react17.default.createElement(Icon, { icon: chevron_down_icon_default, role: "img", title: "Open menu" }));
|
|
36335
|
+
};
|
|
36336
|
+
this.renderButtonContent = () => {
|
|
36337
|
+
const { label } = this.props;
|
|
36338
|
+
let { icon } = this.props;
|
|
36339
|
+
if (!icon && !label) {
|
|
36340
|
+
icon = ellipsis_icon_default;
|
|
36341
|
+
}
|
|
36342
|
+
return /* @__PURE__ */ import_react17.default.createElement(import_react17.default.Fragment, null, this.renderIcon(icon), label && /* @__PURE__ */ import_react17.default.createElement("span", { className: import_Dropdown_module_4CIBZTRZ2.default.dropdownLabel }, label), this.renderDownArrow());
|
|
36343
|
+
};
|
|
36344
|
+
this.renderReversedButtonContent = () => {
|
|
36345
|
+
const { icon, label } = this.props;
|
|
36346
|
+
return /* @__PURE__ */ import_react17.default.createElement(import_react17.default.Fragment, null, this.renderDownArrow(), label && /* @__PURE__ */ import_react17.default.createElement("span", { className: import_Dropdown_module_4CIBZTRZ2.default.dropdownLabel }, label), this.renderIcon(icon));
|
|
36347
|
+
};
|
|
36348
|
+
this.state = {
|
|
36349
|
+
isMenuVisible: Boolean(props.menuVisible)
|
|
36350
|
+
};
|
|
36351
|
+
}
|
|
36352
|
+
getPosition() {
|
|
36353
|
+
return this.dropdownButton && this.dropdownButton.current ? this.dropdownButton.current.getBoundingClientRect() : null;
|
|
36354
|
+
}
|
|
36355
|
+
renderDropdownMenu() {
|
|
36356
|
+
return /* @__PURE__ */ import_react17.default.createElement(
|
|
36357
|
+
DropdownMenu_default,
|
|
36358
|
+
{
|
|
36359
|
+
hideDropdownMenu: this.hideDropdownMenu,
|
|
36360
|
+
position: this.getPosition()
|
|
36361
|
+
},
|
|
36362
|
+
this.props.children
|
|
36363
|
+
);
|
|
36364
|
+
}
|
|
36365
|
+
render() {
|
|
36366
|
+
const { controlAction, automationId, iconPosition, reversedColor } = this.props;
|
|
36367
|
+
const reverseIcon = iconPosition === "end";
|
|
36368
|
+
const btnClass = (0, import_classnames.default)(import_Dropdown_module_4CIBZTRZ2.default.dropdownButton, {
|
|
36369
|
+
[import_Dropdown_module_4CIBZTRZ2.default.dropdownControlAction]: controlAction,
|
|
36370
|
+
[import_Dropdown_module_4CIBZTRZ2.default.isOpen]: this.state.isMenuVisible,
|
|
36371
|
+
[import_Dropdown_module_4CIBZTRZ2.default.reversedColor]: reversedColor
|
|
36372
|
+
});
|
|
36373
|
+
return /* @__PURE__ */ import_react17.default.createElement("div", { className: import_Dropdown_module_4CIBZTRZ2.default.dropdown }, /* @__PURE__ */ import_react17.default.createElement(
|
|
36374
|
+
"button",
|
|
36375
|
+
{
|
|
36376
|
+
className: btnClass,
|
|
36377
|
+
onClick: this.toggleDropdownMenu,
|
|
36378
|
+
onMouseDown: (e2) => e2.preventDefault(),
|
|
36379
|
+
ref: this.dropdownButton,
|
|
36380
|
+
"data-automation-id": automationId
|
|
36381
|
+
},
|
|
36382
|
+
!reverseIcon && this.renderButtonContent(),
|
|
36383
|
+
reverseIcon && this.renderReversedButtonContent()
|
|
36384
|
+
), this.state.isMenuVisible && this.renderDropdownMenu());
|
|
36385
|
+
}
|
|
36386
|
+
};
|
|
36387
|
+
Dropdown.displayName = "Dropdown";
|
|
36388
|
+
Dropdown.defaultProps = {
|
|
36389
|
+
iconPosition: "start"
|
|
36390
|
+
};
|
|
36391
|
+
var NavigationBar = ({ children }) => /* @__PURE__ */ import_react20.default.createElement("div", { className: import_Layout_module_MZ6JYT46.default.navigationBar }, children);
|
|
36392
|
+
NavigationBar.displayName = "NavigationBar";
|
|
36393
|
+
var Sidebar = ({ children }) => /* @__PURE__ */ import_react20.default.createElement("div", { className: import_Layout_module_MZ6JYT46.default.sidebar }, /* @__PURE__ */ import_react20.default.createElement("div", { className: import_Layout_module_MZ6JYT46.default.sidebarInner }, children));
|
|
36394
|
+
Sidebar.displayName = "Sidebar";
|
|
36395
|
+
var Header = ({ children }) => /* @__PURE__ */ import_react20.default.createElement("aside", { className: import_Layout_module_MZ6JYT46.default.header }, children);
|
|
36396
|
+
Header.displayName = "Header";
|
|
36397
|
+
var Footer = ({ children }) => /* @__PURE__ */ import_react20.default.createElement("footer", { className: import_Layout_module_MZ6JYT46.default.footer }, children);
|
|
36398
|
+
Footer.displayName = "Footer";
|
|
36399
|
+
var Toasts = ({ children }) => /* @__PURE__ */ import_react20.default.createElement("div", { className: import_Layout_module_MZ6JYT46.default.toasts, "aria-live": "assertive" }, children);
|
|
36400
|
+
Toasts.displayName = "Toasts";
|
|
36401
|
+
var Announcers = ({ children }) => /* @__PURE__ */ import_react20.default.createElement("div", { className: import_Layout_module_MZ6JYT46.default.announcers, "aria-live": "assertive" }, children);
|
|
36402
|
+
Announcers.displayName = "Announcers";
|
|
36403
|
+
var Layout = class extends import_react20.default.Component {
|
|
36404
|
+
render() {
|
|
36405
|
+
const content = import_react20.default.Children.toArray(this.props.children);
|
|
36406
|
+
const navbar = extractChildOfType(content, NavigationBar);
|
|
36407
|
+
const header = extractChildOfType(content, Header);
|
|
36408
|
+
const sidebar = extractChildOfType(content, Sidebar);
|
|
36409
|
+
const footer = extractChildOfType(content, Footer);
|
|
36410
|
+
const announcers = extractChildOfType(content, Announcers);
|
|
36411
|
+
const toasts = extractChildOfType(content, Toasts);
|
|
36412
|
+
return /* @__PURE__ */ import_react20.default.createElement("div", { className: import_Layout_module_MZ6JYT46.default.root }, navbar, announcers, /* @__PURE__ */ import_react20.default.createElement("div", { className: import_Layout_module_MZ6JYT46.default.page }, header, toasts, /* @__PURE__ */ import_react20.default.createElement("div", { className: import_Layout_module_MZ6JYT46.default.body }, /* @__PURE__ */ import_react20.default.createElement("div", { className: import_Layout_module_MZ6JYT46.default.bodyInner }, sidebar, /* @__PURE__ */ import_react20.default.createElement("main", { className: import_Layout_module_MZ6JYT46.default.content }, content))), footer));
|
|
36413
|
+
}
|
|
36414
|
+
};
|
|
36415
|
+
Layout.displayName = "Layout";
|
|
36416
|
+
Layout.NavigationBar = NavigationBar;
|
|
36417
|
+
Layout.Sidebar = Sidebar;
|
|
36418
|
+
Layout.Header = Header;
|
|
36419
|
+
Layout.Footer = Footer;
|
|
36420
|
+
Layout.Toasts = Toasts;
|
|
36421
|
+
Layout.Announcers = Announcers;
|
|
36422
|
+
var extractChildOfType = (children, type) => {
|
|
36423
|
+
const match = children.find((child) => {
|
|
36424
|
+
if (import_react20.default.isValidElement(child) && typeof child.type === "function") {
|
|
36425
|
+
return child.type.displayName === type.displayName;
|
|
36426
|
+
}
|
|
36427
|
+
return false;
|
|
36428
|
+
});
|
|
36429
|
+
if (match) {
|
|
36430
|
+
const index = children.indexOf(match);
|
|
36431
|
+
children.splice(index, 1);
|
|
36432
|
+
}
|
|
36433
|
+
return match;
|
|
36434
|
+
};
|
|
36435
|
+
var MenuList = (props) => /* @__PURE__ */ import_react21.default.createElement("div", { className: import_Menu_module_N76N74LN.default.menuList }, props.children);
|
|
36436
|
+
MenuList.displayName = "MenuList";
|
|
36437
|
+
var MenuHeader = (props) => /* @__PURE__ */ import_react22.default.createElement("div", { className: import_Menu_module_N76N74LN2.default.header }, /* @__PURE__ */ import_react22.default.createElement("span", { className: import_Menu_module_N76N74LN2.default.header__title }, props.title));
|
|
36438
|
+
MenuHeader.displayName = "MenuHeader";
|
|
36439
|
+
var MenuItem = (props) => {
|
|
36440
|
+
const {
|
|
36441
|
+
icon,
|
|
36442
|
+
hoverIcon,
|
|
36443
|
+
children,
|
|
36444
|
+
action,
|
|
36445
|
+
active,
|
|
36446
|
+
destructive,
|
|
36447
|
+
automationId
|
|
36448
|
+
} = props;
|
|
36449
|
+
const isLink = typeof action === "string";
|
|
36450
|
+
const label = /* @__PURE__ */ import_react23.default.createElement("span", { className: import_Menu_module_N76N74LN3.default.menuItem__Label }, children, isLink && "\u2026");
|
|
36451
|
+
const iconNode = icon && /* @__PURE__ */ import_react23.default.createElement("span", { className: import_Menu_module_N76N74LN3.default.menuItem__Icon }, /* @__PURE__ */ import_react23.default.createElement(Icon, { icon, role: "presentation" }));
|
|
36452
|
+
const className = (0, import_classnames3.default)({
|
|
36453
|
+
[import_Menu_module_N76N74LN3.default.menuItem]: true,
|
|
36454
|
+
[import_Menu_module_N76N74LN3.default.hoverIcon]: icon && hoverIcon,
|
|
36455
|
+
[import_Menu_module_N76N74LN3.default["menuItem--active"]]: active,
|
|
36456
|
+
[import_Menu_module_N76N74LN3.default["menuItem--destructive"]]: destructive
|
|
36457
|
+
});
|
|
36458
|
+
if (typeof action === "string") {
|
|
36459
|
+
return /* @__PURE__ */ import_react23.default.createElement("a", { href: action, className, "data-automation-id": automationId }, label, iconNode);
|
|
36460
|
+
}
|
|
36461
|
+
return (
|
|
36462
|
+
// Disabling instead of addressing because this component is deprecated.
|
|
36463
|
+
// eslint-disable-next-line jsx-a11y/anchor-is-valid
|
|
36464
|
+
/* @__PURE__ */ import_react23.default.createElement(
|
|
36465
|
+
"a",
|
|
36466
|
+
{
|
|
36467
|
+
href: "#",
|
|
36468
|
+
onClick: action,
|
|
36469
|
+
className,
|
|
36470
|
+
"data-automation-id": automationId
|
|
36471
|
+
},
|
|
36472
|
+
label,
|
|
36473
|
+
iconNode
|
|
36474
|
+
)
|
|
36475
|
+
);
|
|
36476
|
+
};
|
|
36477
|
+
MenuItem.displayName = "MenuItem";
|
|
36478
|
+
var MenuSeparator = () => /* @__PURE__ */ import_react24.default.createElement("hr", { className: import_Menu_module_N76N74LN4.default.separator });
|
|
36479
|
+
MenuSeparator.displayName = "MenuSeparator";
|
|
36480
|
+
var Text = ({
|
|
36481
|
+
tag,
|
|
36482
|
+
children,
|
|
36483
|
+
inheritBaseline = false,
|
|
36484
|
+
inline = false,
|
|
36485
|
+
style = "default-style"
|
|
36486
|
+
}) => import_react25.default.createElement(
|
|
36487
|
+
tag,
|
|
36488
|
+
{
|
|
36489
|
+
className: (0, import_classnames4.default)(import_Text_module_SXGFOHGJ.default[style], {
|
|
36490
|
+
[import_Text_module_SXGFOHGJ.default.inheritBaseline]: inheritBaseline,
|
|
36491
|
+
[import_Text_module_SXGFOHGJ.default.inline]: inline
|
|
36492
|
+
})
|
|
36493
|
+
},
|
|
36494
|
+
children
|
|
36495
|
+
);
|
|
36496
|
+
Text.displayName = "Text";
|
|
36234
36497
|
var convertFractionToString = (fraction) => {
|
|
36235
36498
|
switch (fraction) {
|
|
36236
36499
|
case 0:
|
|
@@ -36262,36 +36525,33 @@ ${singleLine(message)}${reset}
|
|
|
36262
36525
|
return "4";
|
|
36263
36526
|
}
|
|
36264
36527
|
};
|
|
36265
|
-
|
|
36266
|
-
// ../component-library/components/Spacing/padding.ts
|
|
36267
|
-
var import_Padding_module = __toESM(__require("../Padding.module-QSNUEZBU.scss"));
|
|
36268
36528
|
var pt = (unit) => [
|
|
36269
|
-
|
|
36529
|
+
import_Padding_module_QSNUEZBU.default[`pt-${convertFractionToString(unit)}`]
|
|
36270
36530
|
];
|
|
36271
36531
|
var pr = (unit) => [
|
|
36272
|
-
|
|
36532
|
+
import_Padding_module_QSNUEZBU.default[`pr-${convertFractionToString(unit)}`]
|
|
36273
36533
|
];
|
|
36274
36534
|
var pb = (unit) => [
|
|
36275
|
-
|
|
36535
|
+
import_Padding_module_QSNUEZBU.default[`pb-${convertFractionToString(unit)}`]
|
|
36276
36536
|
];
|
|
36277
36537
|
var pl = (unit) => [
|
|
36278
|
-
|
|
36538
|
+
import_Padding_module_QSNUEZBU.default[`pl-${convertFractionToString(unit)}`]
|
|
36279
36539
|
];
|
|
36280
36540
|
var px = (unit) => [
|
|
36281
|
-
|
|
36282
|
-
|
|
36541
|
+
import_Padding_module_QSNUEZBU.default[`pl-${convertFractionToString(unit)}`],
|
|
36542
|
+
import_Padding_module_QSNUEZBU.default[`pr-${convertFractionToString(unit)}`]
|
|
36283
36543
|
];
|
|
36284
36544
|
var py = (unit) => [
|
|
36285
|
-
|
|
36286
|
-
|
|
36545
|
+
import_Padding_module_QSNUEZBU.default[`pt-${convertFractionToString(unit)}`],
|
|
36546
|
+
import_Padding_module_QSNUEZBU.default[`pb-${convertFractionToString(unit)}`]
|
|
36287
36547
|
];
|
|
36288
36548
|
var p = (unit) => {
|
|
36289
36549
|
const classes = [];
|
|
36290
36550
|
if (typeof unit === "number") {
|
|
36291
|
-
classes.push(
|
|
36551
|
+
classes.push(import_Padding_module_QSNUEZBU.default[`p-${convertFractionToString(unit)}`]);
|
|
36292
36552
|
} else {
|
|
36293
36553
|
Object.keys(unit).forEach((key) => {
|
|
36294
|
-
classes.push(
|
|
36554
|
+
classes.push(import_Padding_module_QSNUEZBU.default[`p-${convertFractionToString(unit[key])}--${key}`]);
|
|
36295
36555
|
});
|
|
36296
36556
|
}
|
|
36297
36557
|
return classes;
|
|
@@ -36333,36 +36593,33 @@ ${singleLine(message)}${reset}
|
|
|
36333
36593
|
}
|
|
36334
36594
|
return classes;
|
|
36335
36595
|
};
|
|
36336
|
-
|
|
36337
|
-
// ../component-library/components/Spacing/margin.ts
|
|
36338
|
-
var import_Margin_module = __toESM(__require("../Margin.module-DJURK5K7.scss"));
|
|
36339
36596
|
var mt = (unit) => [
|
|
36340
|
-
|
|
36597
|
+
import_Margin_module_DJURK5K7.default[`mt-${convertFractionToString(unit)}`]
|
|
36341
36598
|
];
|
|
36342
36599
|
var mr = (unit) => [
|
|
36343
|
-
|
|
36600
|
+
import_Margin_module_DJURK5K7.default[`mr-${convertFractionToString(unit)}`]
|
|
36344
36601
|
];
|
|
36345
36602
|
var mb = (unit) => [
|
|
36346
|
-
|
|
36603
|
+
import_Margin_module_DJURK5K7.default[`mb-${convertFractionToString(unit)}`]
|
|
36347
36604
|
];
|
|
36348
36605
|
var ml = (unit) => [
|
|
36349
|
-
|
|
36606
|
+
import_Margin_module_DJURK5K7.default[`ml-${convertFractionToString(unit)}`]
|
|
36350
36607
|
];
|
|
36351
36608
|
var mx = (unit) => [
|
|
36352
|
-
|
|
36353
|
-
|
|
36609
|
+
import_Margin_module_DJURK5K7.default[`ml-${convertFractionToString(unit)}`],
|
|
36610
|
+
import_Margin_module_DJURK5K7.default[`mr-${convertFractionToString(unit)}`]
|
|
36354
36611
|
];
|
|
36355
36612
|
var my = (unit) => [
|
|
36356
|
-
|
|
36357
|
-
|
|
36613
|
+
import_Margin_module_DJURK5K7.default[`mt-${convertFractionToString(unit)}`],
|
|
36614
|
+
import_Margin_module_DJURK5K7.default[`mb-${convertFractionToString(unit)}`]
|
|
36358
36615
|
];
|
|
36359
36616
|
var m = (unit) => {
|
|
36360
36617
|
const classes = [];
|
|
36361
36618
|
if (typeof unit === "number") {
|
|
36362
|
-
classes.push(
|
|
36619
|
+
classes.push(import_Margin_module_DJURK5K7.default[`m-${convertFractionToString(unit)}`]);
|
|
36363
36620
|
} else {
|
|
36364
36621
|
Object.keys(unit).forEach((key) => {
|
|
36365
|
-
classes.push(
|
|
36622
|
+
classes.push(import_Margin_module_DJURK5K7.default[`m-${convertFractionToString(unit[key])}--${key}`]);
|
|
36366
36623
|
});
|
|
36367
36624
|
}
|
|
36368
36625
|
return classes;
|
|
@@ -36404,10 +36661,6 @@ ${singleLine(message)}${reset}
|
|
|
36404
36661
|
}
|
|
36405
36662
|
return classes;
|
|
36406
36663
|
};
|
|
36407
|
-
|
|
36408
|
-
// ../component-library/components/Box/Box.tsx
|
|
36409
|
-
var import_react18 = __toESM(require_react());
|
|
36410
|
-
var import_classnames2 = __toESM(require_classnames());
|
|
36411
36664
|
var Box = ({
|
|
36412
36665
|
children,
|
|
36413
36666
|
rtl = false,
|
|
@@ -36432,7 +36685,7 @@ ${singleLine(message)}${reset}
|
|
|
36432
36685
|
...paddingClasses({ p: p2, pt: pt2, pr: pr2, pb: pb2, pl: pl2, px: px2, py: py2, rtl }),
|
|
36433
36686
|
...marginClasses({ m: m2, mt: mt2, mr: mr2, mb: mb2, ml: ml2, mx: mx2, my: my2, rtl })
|
|
36434
36687
|
];
|
|
36435
|
-
return /* @__PURE__ */
|
|
36688
|
+
return /* @__PURE__ */ import_react26.default.createElement("div", { className: (0, import_classnames5.default)(classes, classNameOverride), ...restProps }, children);
|
|
36436
36689
|
};
|
|
36437
36690
|
Box.displayName = "Box";
|
|
36438
36691
|
|
|
@@ -36448,14 +36701,14 @@ ${singleLine(message)}${reset}
|
|
|
36448
36701
|
if (status === "off")
|
|
36449
36702
|
return;
|
|
36450
36703
|
const icon = status === "on" ? check_icon_default : minus_icon_default;
|
|
36451
|
-
return /* @__PURE__ */
|
|
36704
|
+
return /* @__PURE__ */ import_react27.default.createElement(
|
|
36452
36705
|
"span",
|
|
36453
36706
|
{
|
|
36454
|
-
className: (0,
|
|
36707
|
+
className: (0, import_classnames6.default)(import_Checkbox_module.default.icon, {
|
|
36455
36708
|
[import_Checkbox_module.default.reversed]: reversed
|
|
36456
36709
|
})
|
|
36457
36710
|
},
|
|
36458
|
-
/* @__PURE__ */
|
|
36711
|
+
/* @__PURE__ */ import_react27.default.createElement(Icon, { icon, role: "presentation", inheritSize: true })
|
|
36459
36712
|
);
|
|
36460
36713
|
};
|
|
36461
36714
|
var getCheckedFromStatus = (checkedStatus) => checkedStatus === "on";
|
|
@@ -36467,7 +36720,7 @@ ${singleLine(message)}${reset}
|
|
|
36467
36720
|
automationId,
|
|
36468
36721
|
classNameOverride,
|
|
36469
36722
|
...restProps
|
|
36470
|
-
}) => /* @__PURE__ */
|
|
36723
|
+
}) => /* @__PURE__ */ import_react27.default.createElement("span", { className: import_Checkbox_module.default.container }, /* @__PURE__ */ import_react27.default.createElement(
|
|
36471
36724
|
"input",
|
|
36472
36725
|
{
|
|
36473
36726
|
ref: (node) => {
|
|
@@ -36478,7 +36731,7 @@ ${singleLine(message)}${reset}
|
|
|
36478
36731
|
"data-automation-id": automationId,
|
|
36479
36732
|
"data-indeterminate": checkedStatus === "mixed",
|
|
36480
36733
|
type: "checkbox",
|
|
36481
|
-
className: (0,
|
|
36734
|
+
className: (0, import_classnames6.default)(import_Checkbox_module.default.checkbox, classNameOverride, {
|
|
36482
36735
|
[import_Checkbox_module.default.reversed]: reversed
|
|
36483
36736
|
}),
|
|
36484
36737
|
checked: getCheckedFromStatus(checkedStatus),
|
|
@@ -36487,10 +36740,10 @@ ${singleLine(message)}${reset}
|
|
|
36487
36740
|
readOnly: onCheck === void 0,
|
|
36488
36741
|
...restProps
|
|
36489
36742
|
}
|
|
36490
|
-
), /* @__PURE__ */
|
|
36743
|
+
), /* @__PURE__ */ import_react27.default.createElement(
|
|
36491
36744
|
"span",
|
|
36492
36745
|
{
|
|
36493
|
-
className: (0,
|
|
36746
|
+
className: (0, import_classnames6.default)(import_Checkbox_module.default.box, {
|
|
36494
36747
|
[import_Checkbox_module.default.reversed]: reversed
|
|
36495
36748
|
})
|
|
36496
36749
|
},
|
|
@@ -36499,8 +36752,8 @@ ${singleLine(message)}${reset}
|
|
|
36499
36752
|
Checkbox.displayName = "Checkbox";
|
|
36500
36753
|
|
|
36501
36754
|
// ../../draft-packages/form/KaizenDraft/Form/Primitives/ClearButton/ClearButton.tsx
|
|
36502
|
-
var
|
|
36503
|
-
var
|
|
36755
|
+
var import_react28 = __toESM(require_react());
|
|
36756
|
+
var import_classnames7 = __toESM(require_classnames());
|
|
36504
36757
|
|
|
36505
36758
|
// ../component-library/icons/clear.icon.svg
|
|
36506
36759
|
var clear_icon_default = "../clear.icon-OD6PWTJH.svg";
|
|
@@ -36511,25 +36764,25 @@ ${singleLine(message)}${reset}
|
|
|
36511
36764
|
classNameOverride,
|
|
36512
36765
|
isReversed = false,
|
|
36513
36766
|
...restProps
|
|
36514
|
-
}) => /* @__PURE__ */
|
|
36767
|
+
}) => /* @__PURE__ */ import_react28.default.createElement(
|
|
36515
36768
|
"button",
|
|
36516
36769
|
{
|
|
36517
36770
|
type: "button",
|
|
36518
36771
|
"aria-label": "clear",
|
|
36519
|
-
className: (0,
|
|
36772
|
+
className: (0, import_classnames7.default)(
|
|
36520
36773
|
import_ClearButton_module.default.clearButton,
|
|
36521
36774
|
isReversed ? import_ClearButton_module.default.reversed : import_ClearButton_module.default.default,
|
|
36522
36775
|
classNameOverride
|
|
36523
36776
|
),
|
|
36524
36777
|
...restProps
|
|
36525
36778
|
},
|
|
36526
|
-
/* @__PURE__ */
|
|
36779
|
+
/* @__PURE__ */ import_react28.default.createElement(Icon, { icon: clear_icon_default, role: "presentation" })
|
|
36527
36780
|
);
|
|
36528
36781
|
ClearButton.displayName = "ClearButton";
|
|
36529
36782
|
|
|
36530
36783
|
// ../../draft-packages/form/KaizenDraft/Form/Primitives/FieldGroup/FieldGroup.tsx
|
|
36531
|
-
var
|
|
36532
|
-
var
|
|
36784
|
+
var import_react29 = __toESM(require_react());
|
|
36785
|
+
var import_classnames8 = __toESM(require_classnames());
|
|
36533
36786
|
var import_FieldGroup_module = __toESM(__require("../FieldGroup.module-SUPERNC6.scss"));
|
|
36534
36787
|
var FieldGroup = ({
|
|
36535
36788
|
children,
|
|
@@ -36538,11 +36791,11 @@ ${singleLine(message)}${reset}
|
|
|
36538
36791
|
className,
|
|
36539
36792
|
automationId,
|
|
36540
36793
|
...restProps
|
|
36541
|
-
}) => /* @__PURE__ */
|
|
36794
|
+
}) => /* @__PURE__ */ import_react29.default.createElement(
|
|
36542
36795
|
"div",
|
|
36543
36796
|
{
|
|
36544
36797
|
"data-automation-id": automationId,
|
|
36545
|
-
className: (0,
|
|
36798
|
+
className: (0, import_classnames8.default)(import_FieldGroup_module.default.group, className, classNameOverride, {
|
|
36546
36799
|
[import_FieldGroup_module.default.inline]: inline
|
|
36547
36800
|
}),
|
|
36548
36801
|
...restProps
|
|
@@ -36552,8 +36805,8 @@ ${singleLine(message)}${reset}
|
|
|
36552
36805
|
FieldGroup.displayName = "FieldGroup";
|
|
36553
36806
|
|
|
36554
36807
|
// ../../draft-packages/form/KaizenDraft/Form/Primitives/FieldMessage/FieldMessage.tsx
|
|
36555
|
-
var
|
|
36556
|
-
var
|
|
36808
|
+
var import_react32 = __toESM(require_react());
|
|
36809
|
+
var import_classnames11 = __toESM(require_classnames());
|
|
36557
36810
|
|
|
36558
36811
|
// ../component-library/icons/caution-white.icon.svg
|
|
36559
36812
|
var caution_white_icon_default = "../caution-white.icon-7QPLIIHQ.svg";
|
|
@@ -36562,8 +36815,8 @@ ${singleLine(message)}${reset}
|
|
|
36562
36815
|
var exclamation_white_icon_default = "../exclamation-white.icon-WX7P4EOV.svg";
|
|
36563
36816
|
|
|
36564
36817
|
// ../typography/src/Heading/Heading.tsx
|
|
36565
|
-
var
|
|
36566
|
-
var
|
|
36818
|
+
var import_react30 = __toESM(require_react());
|
|
36819
|
+
var import_classnames9 = __toESM(require_classnames());
|
|
36567
36820
|
var import_Heading_module = __toESM(__require("../Heading.module-WIR3ANFU.scss"));
|
|
36568
36821
|
var VARIANTS_24PX_OR_GREATER = ["display-0", "heading-1", "heading-2"];
|
|
36569
36822
|
var Heading = ({
|
|
@@ -36575,14 +36828,14 @@ ${singleLine(message)}${reset}
|
|
|
36575
36828
|
...restProps
|
|
36576
36829
|
}) => {
|
|
36577
36830
|
const inferredTag = tag === void 0 ? translateHeadingLevelToTag(variant) : tag;
|
|
36578
|
-
const className = (0,
|
|
36831
|
+
const className = (0, import_classnames9.default)([
|
|
36579
36832
|
import_Heading_module.default.heading,
|
|
36580
36833
|
import_Heading_module.default[variant],
|
|
36581
36834
|
classNameOverride,
|
|
36582
36835
|
import_Heading_module.default[color],
|
|
36583
36836
|
VARIANTS_24PX_OR_GREATER.includes(variant) ? import_Heading_module.default.large : import_Heading_module.default.small
|
|
36584
36837
|
]);
|
|
36585
|
-
return (0,
|
|
36838
|
+
return (0, import_react30.createElement)(inferredTag, { ...restProps, className }, children);
|
|
36586
36839
|
};
|
|
36587
36840
|
Heading.displayName = "Heading";
|
|
36588
36841
|
var translateHeadingLevelToTag = (headingLevel) => {
|
|
@@ -36605,8 +36858,8 @@ ${singleLine(message)}${reset}
|
|
|
36605
36858
|
};
|
|
36606
36859
|
|
|
36607
36860
|
// ../typography/src/Paragraph/Paragraph.tsx
|
|
36608
|
-
var
|
|
36609
|
-
var
|
|
36861
|
+
var import_react31 = __toESM(require_react());
|
|
36862
|
+
var import_classnames10 = __toESM(require_classnames());
|
|
36610
36863
|
var import_Paragraph_module = __toESM(__require("../Paragraph.module-J7DMUCVE.scss"));
|
|
36611
36864
|
var Paragraph = ({
|
|
36612
36865
|
children,
|
|
@@ -36616,13 +36869,13 @@ ${singleLine(message)}${reset}
|
|
|
36616
36869
|
classNameOverride,
|
|
36617
36870
|
...restProps
|
|
36618
36871
|
}) => {
|
|
36619
|
-
const className = (0,
|
|
36872
|
+
const className = (0, import_classnames10.default)([
|
|
36620
36873
|
import_Paragraph_module.default.paragraph,
|
|
36621
36874
|
import_Paragraph_module.default[variant],
|
|
36622
36875
|
import_Paragraph_module.default[color],
|
|
36623
36876
|
classNameOverride
|
|
36624
36877
|
]);
|
|
36625
|
-
return (0,
|
|
36878
|
+
return (0, import_react31.createElement)(
|
|
36626
36879
|
tag === void 0 ? "p" : tag,
|
|
36627
36880
|
{ ...restProps, className },
|
|
36628
36881
|
children
|
|
@@ -36645,18 +36898,18 @@ ${singleLine(message)}${reset}
|
|
|
36645
36898
|
...restProps
|
|
36646
36899
|
}) => {
|
|
36647
36900
|
const textColor = status === "default" ? reversed ? "white-reduced-opacity" : "dark-reduced-opacity" : "dark";
|
|
36648
|
-
return /* @__PURE__ */
|
|
36901
|
+
return /* @__PURE__ */ import_react32.default.createElement(
|
|
36649
36902
|
"div",
|
|
36650
36903
|
{
|
|
36651
36904
|
"data-automation-id": automationId,
|
|
36652
|
-
className: (0,
|
|
36905
|
+
className: (0, import_classnames11.default)(import_FieldMessage_module.default.message, import_FieldMessage_module.default[status], classNameOverride, {
|
|
36653
36906
|
[import_FieldMessage_module.default.reversed]: reversed,
|
|
36654
36907
|
[import_FieldMessage_module.default.positionBottom]: position === "bottom",
|
|
36655
36908
|
[import_FieldMessage_module.default.positionTop]: position === "top"
|
|
36656
36909
|
}),
|
|
36657
36910
|
...restProps
|
|
36658
36911
|
},
|
|
36659
|
-
(status === "error" || status === "caution") && /* @__PURE__ */
|
|
36912
|
+
(status === "error" || status === "caution") && /* @__PURE__ */ import_react32.default.createElement("span", { className: import_FieldMessage_module.default.warningIcon }, /* @__PURE__ */ import_react32.default.createElement(
|
|
36660
36913
|
Icon,
|
|
36661
36914
|
{
|
|
36662
36915
|
icon: status === "error" ? exclamation_white_icon_default : caution_white_icon_default,
|
|
@@ -36665,7 +36918,7 @@ ${singleLine(message)}${reset}
|
|
|
36665
36918
|
inheritSize: false
|
|
36666
36919
|
}
|
|
36667
36920
|
)),
|
|
36668
|
-
/* @__PURE__ */
|
|
36921
|
+
/* @__PURE__ */ import_react32.default.createElement("div", { className: import_FieldMessage_module.default.message }, /* @__PURE__ */ import_react32.default.createElement(
|
|
36669
36922
|
Paragraph,
|
|
36670
36923
|
{
|
|
36671
36924
|
tag: typeof message === "string" ? "p" : "div",
|
|
@@ -36679,8 +36932,8 @@ ${singleLine(message)}${reset}
|
|
|
36679
36932
|
FieldMessage.displayName = "FieldMessage";
|
|
36680
36933
|
|
|
36681
36934
|
// ../../draft-packages/form/KaizenDraft/Form/Primitives/Input/Input.tsx
|
|
36682
|
-
var
|
|
36683
|
-
var
|
|
36935
|
+
var import_react33 = __toESM(require_react());
|
|
36936
|
+
var import_classnames12 = __toESM(require_classnames());
|
|
36684
36937
|
var import_Input_module = __toESM(__require("../Input.module-FBWZRX37.scss"));
|
|
36685
36938
|
var Input = ({
|
|
36686
36939
|
inputRef,
|
|
@@ -36701,10 +36954,10 @@ ${singleLine(message)}${reset}
|
|
|
36701
36954
|
automationId,
|
|
36702
36955
|
disabled,
|
|
36703
36956
|
...restProps
|
|
36704
|
-
}) => /* @__PURE__ */
|
|
36957
|
+
}) => /* @__PURE__ */ import_react33.default.createElement(
|
|
36705
36958
|
"div",
|
|
36706
36959
|
{
|
|
36707
|
-
className: (0,
|
|
36960
|
+
className: (0, import_classnames12.default)(
|
|
36708
36961
|
import_Input_module.default.wrapper,
|
|
36709
36962
|
{
|
|
36710
36963
|
[import_Input_module.default.withReversed]: reversed,
|
|
@@ -36715,8 +36968,8 @@ ${singleLine(message)}${reset}
|
|
|
36715
36968
|
status != "default" && import_Input_module.default.hasStatus
|
|
36716
36969
|
)
|
|
36717
36970
|
},
|
|
36718
|
-
startIconAdornment && /* @__PURE__ */
|
|
36719
|
-
/* @__PURE__ */
|
|
36971
|
+
startIconAdornment && /* @__PURE__ */ import_react33.default.createElement("div", { className: import_Input_module.default.startIconAdornment }, startIconAdornment),
|
|
36972
|
+
/* @__PURE__ */ import_react33.default.createElement(
|
|
36720
36973
|
"input",
|
|
36721
36974
|
{
|
|
36722
36975
|
ref: inputRef,
|
|
@@ -36727,7 +36980,7 @@ ${singleLine(message)}${reset}
|
|
|
36727
36980
|
"aria-describedby": ariaDescribedBy,
|
|
36728
36981
|
"aria-label": ariaLabel,
|
|
36729
36982
|
disabled,
|
|
36730
|
-
className: (0,
|
|
36983
|
+
className: (0, import_classnames12.default)([
|
|
36731
36984
|
import_Input_module.default.input,
|
|
36732
36985
|
import_Input_module.default[status],
|
|
36733
36986
|
className,
|
|
@@ -36738,14 +36991,14 @@ ${singleLine(message)}${reset}
|
|
|
36738
36991
|
...restProps
|
|
36739
36992
|
}
|
|
36740
36993
|
),
|
|
36741
|
-
/* @__PURE__ */
|
|
36742
|
-
endIconAdornment && /* @__PURE__ */
|
|
36994
|
+
/* @__PURE__ */ import_react33.default.createElement("div", { className: import_Input_module.default.focusRing }),
|
|
36995
|
+
endIconAdornment && /* @__PURE__ */ import_react33.default.createElement("div", { className: import_Input_module.default.endIconAdornment }, endIconAdornment)
|
|
36743
36996
|
);
|
|
36744
36997
|
Input.displayName = "Input";
|
|
36745
36998
|
|
|
36746
36999
|
// ../../draft-packages/form/KaizenDraft/Form/Primitives/InputRange/InputRange.tsx
|
|
36747
|
-
var
|
|
36748
|
-
var
|
|
37000
|
+
var import_react34 = __toESM(require_react());
|
|
37001
|
+
var import_classnames13 = __toESM(require_classnames());
|
|
36749
37002
|
var import_InputRange_module = __toESM(__require("../InputRange.module-RGISUI4D.scss"));
|
|
36750
37003
|
var InputRange = (props) => {
|
|
36751
37004
|
const {
|
|
@@ -36763,15 +37016,15 @@ ${singleLine(message)}${reset}
|
|
|
36763
37016
|
readOnly,
|
|
36764
37017
|
...restProps
|
|
36765
37018
|
} = props;
|
|
36766
|
-
const [step, setStep] = (0,
|
|
37019
|
+
const [step, setStep] = (0, import_react34.useState)(0.5);
|
|
36767
37020
|
const visuallyHiddenHintId = `${id2}-helper`;
|
|
36768
37021
|
const readOnlyWithNoValue = readOnly && !value && !defaultValue;
|
|
36769
37022
|
const defaultValueWithDefault = defaultValue || (max2 + 1) / 2;
|
|
36770
|
-
return /* @__PURE__ */
|
|
37023
|
+
return /* @__PURE__ */ import_react34.default.createElement(import_react34.default.Fragment, null, /* @__PURE__ */ import_react34.default.createElement(
|
|
36771
37024
|
"input",
|
|
36772
37025
|
{
|
|
36773
37026
|
id: id2,
|
|
36774
|
-
className: (0,
|
|
37027
|
+
className: (0, import_classnames13.default)(import_InputRange_module.default.ratingScaleRange, classNameOverride, {
|
|
36775
37028
|
[import_InputRange_module.default.hideThumb]: readOnlyWithNoValue,
|
|
36776
37029
|
[import_InputRange_module.default.disabled]: disabled
|
|
36777
37030
|
}),
|
|
@@ -36792,37 +37045,37 @@ ${singleLine(message)}${reset}
|
|
|
36792
37045
|
},
|
|
36793
37046
|
...restProps
|
|
36794
37047
|
}
|
|
36795
|
-
), /* @__PURE__ */
|
|
37048
|
+
), /* @__PURE__ */ import_react34.default.createElement(
|
|
36796
37049
|
"div",
|
|
36797
37050
|
{
|
|
36798
|
-
className: (0,
|
|
37051
|
+
className: (0, import_classnames13.default)(import_InputRange_module.default.spokes, {
|
|
36799
37052
|
[import_InputRange_module.default.disabled]: disabled
|
|
36800
37053
|
})
|
|
36801
37054
|
},
|
|
36802
|
-
[...Array(max2)].map((_, index) => /* @__PURE__ */
|
|
36803
|
-
), /* @__PURE__ */
|
|
37055
|
+
[...Array(max2)].map((_, index) => /* @__PURE__ */ import_react34.default.createElement("div", { key: `${id2}-spoke-${index}`, className: import_InputRange_module.default.spokeContainer }, /* @__PURE__ */ import_react34.default.createElement("div", { className: import_InputRange_module.default.spoke })))
|
|
37056
|
+
), /* @__PURE__ */ import_react34.default.createElement("div", { className: import_InputRange_module.default.visuallyHidden, id: visuallyHiddenHintId }, min2, " is ", minLabel, ", ", max2, " is ", maxLabel), /* @__PURE__ */ import_react34.default.createElement("div", { className: import_InputRange_module.default.labelsContainer }, !readOnlyWithNoValue && /* @__PURE__ */ import_react34.default.createElement(
|
|
36804
37057
|
"div",
|
|
36805
37058
|
{
|
|
36806
|
-
className: (0,
|
|
37059
|
+
className: (0, import_classnames13.default)(import_InputRange_module.default.sliderLabels, {
|
|
36807
37060
|
[import_InputRange_module.default.disabled]: disabled
|
|
36808
37061
|
})
|
|
36809
37062
|
},
|
|
36810
|
-
/* @__PURE__ */
|
|
36811
|
-
/* @__PURE__ */
|
|
37063
|
+
/* @__PURE__ */ import_react34.default.createElement(Paragraph, { variant: "small", color: "dark-reduced-opacity", tag: "span" }, minLabel),
|
|
37064
|
+
/* @__PURE__ */ import_react34.default.createElement(Paragraph, { variant: "small", color: "dark-reduced-opacity", tag: "span" }, maxLabel)
|
|
36812
37065
|
)));
|
|
36813
37066
|
};
|
|
36814
37067
|
InputRange.displayName = "InputRange";
|
|
36815
37068
|
|
|
36816
37069
|
// ../../draft-packages/form/KaizenDraft/Form/Primitives/InputSearch/InputSearch.tsx
|
|
36817
|
-
var
|
|
36818
|
-
var
|
|
37070
|
+
var import_react36 = __toESM(require_react());
|
|
37071
|
+
var import_classnames15 = __toESM(require_classnames());
|
|
36819
37072
|
|
|
36820
37073
|
// ../component-library/icons/search.icon.svg
|
|
36821
37074
|
var search_icon_default = "../search.icon-ML7HSFID.svg";
|
|
36822
37075
|
|
|
36823
37076
|
// ../loading-spinner/src/LoadingSpinner/LoadingSpinner.tsx
|
|
36824
|
-
var
|
|
36825
|
-
var
|
|
37077
|
+
var import_react35 = __toESM(require_react());
|
|
37078
|
+
var import_classnames14 = __toESM(require_classnames());
|
|
36826
37079
|
var import_LoadingSpinner_module = __toESM(__require("../LoadingSpinner.module-VMTNZETE.scss"));
|
|
36827
37080
|
var LoadingSpinner = ({
|
|
36828
37081
|
children,
|
|
@@ -36830,16 +37083,16 @@ ${singleLine(message)}${reset}
|
|
|
36830
37083
|
size = "md",
|
|
36831
37084
|
classNameOverride,
|
|
36832
37085
|
...props
|
|
36833
|
-
}) => /* @__PURE__ */
|
|
37086
|
+
}) => /* @__PURE__ */ import_react35.default.createElement(
|
|
36834
37087
|
"div",
|
|
36835
37088
|
{
|
|
36836
37089
|
"data-automation-id": "loading-spinner",
|
|
36837
|
-
className: (0,
|
|
37090
|
+
className: (0, import_classnames14.default)(import_LoadingSpinner_module.default.wrapper, classNameOverride),
|
|
36838
37091
|
role: "status",
|
|
36839
37092
|
...props
|
|
36840
37093
|
},
|
|
36841
|
-
/* @__PURE__ */
|
|
36842
|
-
size === "md" ? /* @__PURE__ */
|
|
37094
|
+
/* @__PURE__ */ import_react35.default.createElement("span", { className: import_LoadingSpinner_module.default.visuallyHidden }, accessibilityLabel),
|
|
37095
|
+
size === "md" ? /* @__PURE__ */ import_react35.default.createElement(
|
|
36843
37096
|
"svg",
|
|
36844
37097
|
{
|
|
36845
37098
|
className: import_LoadingSpinner_module.default.spinner,
|
|
@@ -36849,7 +37102,7 @@ ${singleLine(message)}${reset}
|
|
|
36849
37102
|
fill: "none",
|
|
36850
37103
|
xmlns: "http://www.w3.org/2000/svg"
|
|
36851
37104
|
},
|
|
36852
|
-
/* @__PURE__ */
|
|
37105
|
+
/* @__PURE__ */ import_react35.default.createElement(
|
|
36853
37106
|
"circle",
|
|
36854
37107
|
{
|
|
36855
37108
|
cx: "24",
|
|
@@ -36860,7 +37113,7 @@ ${singleLine(message)}${reset}
|
|
|
36860
37113
|
strokeOpacity: "0.3"
|
|
36861
37114
|
}
|
|
36862
37115
|
),
|
|
36863
|
-
/* @__PURE__ */
|
|
37116
|
+
/* @__PURE__ */ import_react35.default.createElement(
|
|
36864
37117
|
"path",
|
|
36865
37118
|
{
|
|
36866
37119
|
fillRule: "evenodd",
|
|
@@ -36869,7 +37122,7 @@ ${singleLine(message)}${reset}
|
|
|
36869
37122
|
d: "M46.5 24c.8284 0 1.5049-.6734 1.4539-1.5002C47.21 10.44 37.5601.789989 25.5003.0461639 24.6734-.004835 24 .671607 24 1.50003c0 .82843.6738 1.49444 1.5002 1.55277 10.4023.73424 18.7128 9.0447 19.447 19.447C45.0056 23.3262 45.6716 24 46.5 24z"
|
|
36870
37123
|
}
|
|
36871
37124
|
)
|
|
36872
|
-
) : /* @__PURE__ */
|
|
37125
|
+
) : /* @__PURE__ */ import_react35.default.createElement(
|
|
36873
37126
|
"svg",
|
|
36874
37127
|
{
|
|
36875
37128
|
className: import_LoadingSpinner_module.default.spinner,
|
|
@@ -36879,7 +37132,7 @@ ${singleLine(message)}${reset}
|
|
|
36879
37132
|
fill: "none",
|
|
36880
37133
|
xmlns: "http://www.w3.org/2000/svg"
|
|
36881
37134
|
},
|
|
36882
|
-
/* @__PURE__ */
|
|
37135
|
+
/* @__PURE__ */ import_react35.default.createElement(
|
|
36883
37136
|
"circle",
|
|
36884
37137
|
{
|
|
36885
37138
|
cx: "12",
|
|
@@ -36890,7 +37143,7 @@ ${singleLine(message)}${reset}
|
|
|
36890
37143
|
strokeOpacity: "0.3"
|
|
36891
37144
|
}
|
|
36892
37145
|
),
|
|
36893
|
-
/* @__PURE__ */
|
|
37146
|
+
/* @__PURE__ */ import_react35.default.createElement(
|
|
36894
37147
|
"path",
|
|
36895
37148
|
{
|
|
36896
37149
|
fillRule: "evenodd",
|
|
@@ -36917,16 +37170,16 @@ ${singleLine(message)}${reset}
|
|
|
36917
37170
|
secondary = false,
|
|
36918
37171
|
...restProps
|
|
36919
37172
|
} = props;
|
|
36920
|
-
const inputRef = (0,
|
|
37173
|
+
const inputRef = (0, import_react36.useRef)(null);
|
|
36921
37174
|
const handleOnClear = () => {
|
|
36922
37175
|
var _a;
|
|
36923
37176
|
(_a = inputRef.current) == null ? void 0 : _a.focus();
|
|
36924
37177
|
onClear && onClear();
|
|
36925
37178
|
};
|
|
36926
|
-
return /* @__PURE__ */
|
|
37179
|
+
return /* @__PURE__ */ import_react36.default.createElement(
|
|
36927
37180
|
"div",
|
|
36928
37181
|
{
|
|
36929
|
-
className: (0,
|
|
37182
|
+
className: (0, import_classnames15.default)(
|
|
36930
37183
|
import_InputSearch_module.default.wrapper,
|
|
36931
37184
|
secondary ? import_InputSearch_module.default.secondary : import_InputSearch_module.default.default,
|
|
36932
37185
|
reversed && import_InputSearch_module.default.reversed,
|
|
@@ -36935,15 +37188,15 @@ ${singleLine(message)}${reset}
|
|
|
36935
37188
|
classNameOverride
|
|
36936
37189
|
)
|
|
36937
37190
|
},
|
|
36938
|
-
/* @__PURE__ */
|
|
37191
|
+
/* @__PURE__ */ import_react36.default.createElement("div", { className: import_InputSearch_module.default.startIconAdornment }, loading ? /* @__PURE__ */ import_react36.default.createElement(
|
|
36939
37192
|
LoadingSpinner,
|
|
36940
37193
|
{
|
|
36941
37194
|
accessibilityLabel: "",
|
|
36942
37195
|
size: "sm",
|
|
36943
37196
|
classNameOverride: import_InputSearch_module.default.loadingSpinner
|
|
36944
37197
|
}
|
|
36945
|
-
) : /* @__PURE__ */
|
|
36946
|
-
/* @__PURE__ */
|
|
37198
|
+
) : /* @__PURE__ */ import_react36.default.createElement(Icon, { icon: search_icon_default, role: "presentation" })),
|
|
37199
|
+
/* @__PURE__ */ import_react36.default.createElement(
|
|
36947
37200
|
"input",
|
|
36948
37201
|
{
|
|
36949
37202
|
ref: inputRef,
|
|
@@ -36956,8 +37209,8 @@ ${singleLine(message)}${reset}
|
|
|
36956
37209
|
...restProps
|
|
36957
37210
|
}
|
|
36958
37211
|
),
|
|
36959
|
-
/* @__PURE__ */
|
|
36960
|
-
value && /* @__PURE__ */
|
|
37212
|
+
/* @__PURE__ */ import_react36.default.createElement("div", { className: import_InputSearch_module.default.focusRing }),
|
|
37213
|
+
value && /* @__PURE__ */ import_react36.default.createElement(
|
|
36961
37214
|
ClearButton,
|
|
36962
37215
|
{
|
|
36963
37216
|
isReversed: reversed,
|
|
@@ -36971,8 +37224,8 @@ ${singleLine(message)}${reset}
|
|
|
36971
37224
|
InputSearch.displayName = "InputSearch";
|
|
36972
37225
|
|
|
36973
37226
|
// ../../draft-packages/form/KaizenDraft/Form/Primitives/Label/Label.tsx
|
|
36974
|
-
var
|
|
36975
|
-
var
|
|
37227
|
+
var import_react37 = __toESM(require_react());
|
|
37228
|
+
var import_classnames16 = __toESM(require_classnames());
|
|
36976
37229
|
var import_Label_module = __toESM(__require("../Label.module-QP4J7I5H.scss"));
|
|
36977
37230
|
var Label = ({
|
|
36978
37231
|
children,
|
|
@@ -36985,11 +37238,11 @@ ${singleLine(message)}${reset}
|
|
|
36985
37238
|
automationId,
|
|
36986
37239
|
classNameOverride,
|
|
36987
37240
|
...restProps
|
|
36988
|
-
}) => /* @__PURE__ */
|
|
37241
|
+
}) => /* @__PURE__ */ import_react37.default.createElement(
|
|
36989
37242
|
"label",
|
|
36990
37243
|
{
|
|
36991
37244
|
"data-automation-id": automationId,
|
|
36992
|
-
className: (0,
|
|
37245
|
+
className: (0, import_classnames16.default)(import_Label_module.default.label, classNameOverride, {
|
|
36993
37246
|
[import_Label_module.default.reversed]: reversed,
|
|
36994
37247
|
[import_Label_module.default.text]: labelType === "text",
|
|
36995
37248
|
[import_Label_module.default.checkbox]: labelType === "checkbox",
|
|
@@ -37001,10 +37254,10 @@ ${singleLine(message)}${reset}
|
|
|
37001
37254
|
...restProps
|
|
37002
37255
|
},
|
|
37003
37256
|
children,
|
|
37004
|
-
/* @__PURE__ */
|
|
37257
|
+
/* @__PURE__ */ import_react37.default.createElement(
|
|
37005
37258
|
"span",
|
|
37006
37259
|
{
|
|
37007
|
-
className: (0,
|
|
37260
|
+
className: (0, import_classnames16.default)({
|
|
37008
37261
|
[import_Label_module.default.prependedLabel]: labelPosition === "start",
|
|
37009
37262
|
[import_Label_module.default.appendedLabel]: labelPosition === "end"
|
|
37010
37263
|
})
|
|
@@ -37015,15 +37268,15 @@ ${singleLine(message)}${reset}
|
|
|
37015
37268
|
Label.displayName = "Label";
|
|
37016
37269
|
|
|
37017
37270
|
// ../../draft-packages/form/KaizenDraft/Form/Primitives/Radio/Radio.tsx
|
|
37018
|
-
var
|
|
37019
|
-
var
|
|
37271
|
+
var import_react38 = __toESM(require_react());
|
|
37272
|
+
var import_classnames17 = __toESM(require_classnames());
|
|
37020
37273
|
var import_Radio_module = __toESM(__require("../Radio.module-DCWPHVKW.scss"));
|
|
37021
37274
|
var renderSelected = (selectedStatus, reversed) => {
|
|
37022
37275
|
if (selectedStatus) {
|
|
37023
|
-
return /* @__PURE__ */
|
|
37276
|
+
return /* @__PURE__ */ import_react38.default.createElement(
|
|
37024
37277
|
"div",
|
|
37025
37278
|
{
|
|
37026
|
-
className: (0,
|
|
37279
|
+
className: (0, import_classnames17.default)(import_Radio_module.default.icon, {
|
|
37027
37280
|
[import_Radio_module.default.reversed]: reversed
|
|
37028
37281
|
})
|
|
37029
37282
|
}
|
|
@@ -37041,7 +37294,7 @@ ${singleLine(message)}${reset}
|
|
|
37041
37294
|
onChange,
|
|
37042
37295
|
classNameOverride,
|
|
37043
37296
|
...restProps
|
|
37044
|
-
}) => /* @__PURE__ */
|
|
37297
|
+
}) => /* @__PURE__ */ import_react38.default.createElement("span", null, /* @__PURE__ */ import_react38.default.createElement(
|
|
37045
37298
|
"input",
|
|
37046
37299
|
{
|
|
37047
37300
|
"data-automation-id": automationId,
|
|
@@ -37050,17 +37303,17 @@ ${singleLine(message)}${reset}
|
|
|
37050
37303
|
name,
|
|
37051
37304
|
value,
|
|
37052
37305
|
checked: selectedStatus,
|
|
37053
|
-
className: (0,
|
|
37306
|
+
className: (0, import_classnames17.default)(import_Radio_module.default.radioInput, classNameOverride, {
|
|
37054
37307
|
[import_Radio_module.default.reversed]: reversed
|
|
37055
37308
|
}),
|
|
37056
37309
|
onChange,
|
|
37057
37310
|
readOnly: onChange === void 0,
|
|
37058
37311
|
...restProps
|
|
37059
37312
|
}
|
|
37060
|
-
), /* @__PURE__ */
|
|
37313
|
+
), /* @__PURE__ */ import_react38.default.createElement(
|
|
37061
37314
|
"span",
|
|
37062
37315
|
{
|
|
37063
|
-
className: (0,
|
|
37316
|
+
className: (0, import_classnames17.default)(import_Radio_module.default.box, {
|
|
37064
37317
|
[import_Radio_module.default.reversed]: reversed
|
|
37065
37318
|
})
|
|
37066
37319
|
},
|
|
@@ -37069,8 +37322,8 @@ ${singleLine(message)}${reset}
|
|
|
37069
37322
|
Radio.displayName = "Radio";
|
|
37070
37323
|
|
|
37071
37324
|
// ../../draft-packages/form/KaizenDraft/Form/Primitives/TextArea/TextArea.tsx
|
|
37072
|
-
var
|
|
37073
|
-
var
|
|
37325
|
+
var import_react39 = __toESM(require_react());
|
|
37326
|
+
var import_classnames18 = __toESM(require_classnames());
|
|
37074
37327
|
var import_TextArea_module = __toESM(__require("../TextArea.module-JLTW3M73.scss"));
|
|
37075
37328
|
var TextArea = ({
|
|
37076
37329
|
textAreaRef: propsTextAreaRef,
|
|
@@ -37085,11 +37338,11 @@ ${singleLine(message)}${reset}
|
|
|
37085
37338
|
onChange: propsOnChange,
|
|
37086
37339
|
...restProps
|
|
37087
37340
|
}) => {
|
|
37088
|
-
const [textAreaHeight, setTextAreaHeight] = (0,
|
|
37089
|
-
const [parentHeight, setParentHeight] = (0,
|
|
37090
|
-
const [internalValue, setInternalValue] = (0,
|
|
37091
|
-
const textAreaRef = propsTextAreaRef || (0,
|
|
37092
|
-
(0,
|
|
37341
|
+
const [textAreaHeight, setTextAreaHeight] = (0, import_react39.useState)("auto");
|
|
37342
|
+
const [parentHeight, setParentHeight] = (0, import_react39.useState)("auto");
|
|
37343
|
+
const [internalValue, setInternalValue] = (0, import_react39.useState)(autogrow ? defaultValue : void 0);
|
|
37344
|
+
const textAreaRef = propsTextAreaRef || (0, import_react39.useRef)(null);
|
|
37345
|
+
(0, import_react39.useEffect)(() => {
|
|
37093
37346
|
if (!autogrow)
|
|
37094
37347
|
return;
|
|
37095
37348
|
const scrollHeight = textAreaRef.current.scrollHeight;
|
|
@@ -37110,10 +37363,10 @@ ${singleLine(message)}${reset}
|
|
|
37110
37363
|
const getWrapperStyle = () => autogrow ? { minHeight: parentHeight } : void 0;
|
|
37111
37364
|
const getTextAreaStyle = () => autogrow ? { height: textAreaHeight } : void 0;
|
|
37112
37365
|
const controlledValue = value || internalValue;
|
|
37113
|
-
return /* @__PURE__ */
|
|
37366
|
+
return /* @__PURE__ */ import_react39.default.createElement("div", { className: import_TextArea_module.default.wrapper, style: getWrapperStyle() }, /* @__PURE__ */ import_react39.default.createElement(
|
|
37114
37367
|
"textarea",
|
|
37115
37368
|
{
|
|
37116
|
-
className: (0,
|
|
37369
|
+
className: (0, import_classnames18.default)(import_TextArea_module.default.textarea, import_TextArea_module.default[status], {
|
|
37117
37370
|
[import_TextArea_module.default.default]: !reversed,
|
|
37118
37371
|
[import_TextArea_module.default.reversed]: reversed,
|
|
37119
37372
|
[import_TextArea_module.default.disabled]: disabled
|
|
@@ -37128,13 +37381,13 @@ ${singleLine(message)}${reset}
|
|
|
37128
37381
|
disabled,
|
|
37129
37382
|
...restProps
|
|
37130
37383
|
}
|
|
37131
|
-
), /* @__PURE__ */
|
|
37384
|
+
), /* @__PURE__ */ import_react39.default.createElement("div", { className: import_TextArea_module.default.focusRing }));
|
|
37132
37385
|
};
|
|
37133
37386
|
TextArea.displayName = "TextArea";
|
|
37134
37387
|
|
|
37135
37388
|
// ../../draft-packages/form/KaizenDraft/Form/Primitives/ToggleSwitch/ToggleSwitch.tsx
|
|
37136
|
-
var
|
|
37137
|
-
var
|
|
37389
|
+
var import_react40 = __toESM(require_react());
|
|
37390
|
+
var import_classnames19 = __toESM(require_classnames());
|
|
37138
37391
|
var import_ToggleSwitch_module = __toESM(__require("../ToggleSwitch.module-3YDF4MLF.scss"));
|
|
37139
37392
|
var ToggleSwitch = ({
|
|
37140
37393
|
toggledStatus,
|
|
@@ -37144,16 +37397,16 @@ ${singleLine(message)}${reset}
|
|
|
37144
37397
|
...restProps
|
|
37145
37398
|
}) => {
|
|
37146
37399
|
const isOn = toggledStatus === "on" /* ON */;
|
|
37147
|
-
return /* @__PURE__ */
|
|
37400
|
+
return /* @__PURE__ */ import_react40.default.createElement(
|
|
37148
37401
|
"span",
|
|
37149
37402
|
{
|
|
37150
|
-
className: (0,
|
|
37403
|
+
className: (0, import_classnames19.default)({
|
|
37151
37404
|
[import_ToggleSwitch_module.default.on]: isOn,
|
|
37152
37405
|
[import_ToggleSwitch_module.default.off]: !isOn,
|
|
37153
37406
|
[import_ToggleSwitch_module.default.reversed]: reversed
|
|
37154
37407
|
})
|
|
37155
37408
|
},
|
|
37156
|
-
/* @__PURE__ */
|
|
37409
|
+
/* @__PURE__ */ import_react40.default.createElement(
|
|
37157
37410
|
"input",
|
|
37158
37411
|
{
|
|
37159
37412
|
type: "checkbox",
|
|
@@ -37164,7 +37417,7 @@ ${singleLine(message)}${reset}
|
|
|
37164
37417
|
...restProps
|
|
37165
37418
|
}
|
|
37166
37419
|
),
|
|
37167
|
-
/* @__PURE__ */
|
|
37420
|
+
/* @__PURE__ */ import_react40.default.createElement("span", { className: import_ToggleSwitch_module.default.track }, /* @__PURE__ */ import_react40.default.createElement("span", { className: import_ToggleSwitch_module.default.thumb }))
|
|
37168
37421
|
);
|
|
37169
37422
|
};
|
|
37170
37423
|
ToggleSwitch.displayName = "ToggleSwitch";
|
|
@@ -37181,18 +37434,18 @@ ${singleLine(message)}${reset}
|
|
|
37181
37434
|
automationId,
|
|
37182
37435
|
classNameOverride,
|
|
37183
37436
|
...restProps
|
|
37184
|
-
}) => /* @__PURE__ */
|
|
37437
|
+
}) => /* @__PURE__ */ import_react41.default.createElement(
|
|
37185
37438
|
"div",
|
|
37186
37439
|
{
|
|
37187
37440
|
"data-automation-id": automationId,
|
|
37188
|
-
className: (0,
|
|
37441
|
+
className: (0, import_classnames20.default)(import_CheckboxField_module.default.container, classNameOverride, {
|
|
37189
37442
|
[import_CheckboxField_module.default.checked]: checkedStatus === "on",
|
|
37190
37443
|
[import_CheckboxField_module.default.mixed]: checkedStatus === "mixed",
|
|
37191
37444
|
[import_CheckboxField_module.default.reversed]: reversed,
|
|
37192
37445
|
[import_CheckboxField_module.default.noBottomMargin]: noBottomMargin
|
|
37193
37446
|
})
|
|
37194
37447
|
},
|
|
37195
|
-
/* @__PURE__ */
|
|
37448
|
+
/* @__PURE__ */ import_react41.default.createElement(
|
|
37196
37449
|
Label,
|
|
37197
37450
|
{
|
|
37198
37451
|
id: `${id2}-field-label`,
|
|
@@ -37203,7 +37456,7 @@ ${singleLine(message)}${reset}
|
|
|
37203
37456
|
labelType: "checkbox",
|
|
37204
37457
|
disabled
|
|
37205
37458
|
},
|
|
37206
|
-
/* @__PURE__ */
|
|
37459
|
+
/* @__PURE__ */ import_react41.default.createElement(
|
|
37207
37460
|
Checkbox,
|
|
37208
37461
|
{
|
|
37209
37462
|
id: `${id2}-field-checkbox`,
|
|
@@ -37219,8 +37472,8 @@ ${singleLine(message)}${reset}
|
|
|
37219
37472
|
CheckboxField.displayName = "CheckboxField";
|
|
37220
37473
|
|
|
37221
37474
|
// ../../draft-packages/form/KaizenDraft/Form/CheckboxGroup/CheckboxGroup.tsx
|
|
37222
|
-
var
|
|
37223
|
-
var
|
|
37475
|
+
var import_react42 = __toESM(require_react());
|
|
37476
|
+
var import_classnames21 = __toESM(require_classnames());
|
|
37224
37477
|
var import_CheckboxGroup_module = __toESM(__require("../CheckboxGroup.module-AHAPICAN.scss"));
|
|
37225
37478
|
var CheckboxGroup = ({
|
|
37226
37479
|
children,
|
|
@@ -37230,17 +37483,17 @@ ${singleLine(message)}${reset}
|
|
|
37230
37483
|
automationId,
|
|
37231
37484
|
classNameOverride,
|
|
37232
37485
|
...restProps
|
|
37233
|
-
}) => /* @__PURE__ */
|
|
37486
|
+
}) => /* @__PURE__ */ import_react42.default.createElement(
|
|
37234
37487
|
"div",
|
|
37235
37488
|
{
|
|
37236
37489
|
"data-automation-id": automationId && `${automationId}-field-checkbox-group`,
|
|
37237
|
-
className: (0,
|
|
37490
|
+
className: (0, import_classnames21.default)(import_CheckboxGroup_module.default.checkboxGroupContainer, classNameOverride, {
|
|
37238
37491
|
[import_CheckboxGroup_module.default.noBottomMargin]: noBottomMargin,
|
|
37239
37492
|
[import_CheckboxGroup_module.default.reversed]: reversed
|
|
37240
37493
|
}),
|
|
37241
37494
|
...restProps
|
|
37242
37495
|
},
|
|
37243
|
-
/* @__PURE__ */
|
|
37496
|
+
/* @__PURE__ */ import_react42.default.createElement("div", { className: import_CheckboxGroup_module.default.checkboxGroupLabel }, /* @__PURE__ */ import_react42.default.createElement(
|
|
37244
37497
|
Label,
|
|
37245
37498
|
{
|
|
37246
37499
|
automationId: `${automationId}-field-label`,
|
|
@@ -37254,8 +37507,75 @@ ${singleLine(message)}${reset}
|
|
|
37254
37507
|
CheckboxGroup.displayName = "CheckboxGroup";
|
|
37255
37508
|
|
|
37256
37509
|
// ../../draft-packages/form/KaizenDraft/Form/TextField/TextField.tsx
|
|
37257
|
-
var
|
|
37258
|
-
var
|
|
37510
|
+
var import_react44 = __toESM(require_react());
|
|
37511
|
+
var import_classnames23 = __toESM(require_classnames());
|
|
37512
|
+
|
|
37513
|
+
// ../component-library/components/Icon/Icon.tsx
|
|
37514
|
+
var import_react43 = __toESM(require_react());
|
|
37515
|
+
var import_classnames22 = __toESM(require_classnames());
|
|
37516
|
+
|
|
37517
|
+
// ../component-library/util/console.ts
|
|
37518
|
+
var yellow2 = "\x1B[33m ";
|
|
37519
|
+
var reset2 = "\x1B[0m ";
|
|
37520
|
+
var warn2 = (message) => {
|
|
37521
|
+
console.warn(
|
|
37522
|
+
`${yellow2}
|
|
37523
|
+
CULTUREAMP UI WARNING:
|
|
37524
|
+
${singleLine2(message)}${reset2}
|
|
37525
|
+
`
|
|
37526
|
+
);
|
|
37527
|
+
};
|
|
37528
|
+
var singleLine2 = (message) => message.replace(/^ +/gm, " ").replace(/\n|\r/gm, "").trim();
|
|
37529
|
+
|
|
37530
|
+
// ../component-library/components/Icon/Icon.tsx
|
|
37531
|
+
var import_Icon_module = __toESM(__require("../Icon.module-VD7NKLAR.scss"));
|
|
37532
|
+
var Icon2 = ({
|
|
37533
|
+
icon,
|
|
37534
|
+
inheritSize = false,
|
|
37535
|
+
role = "img",
|
|
37536
|
+
title = "",
|
|
37537
|
+
desc = "",
|
|
37538
|
+
classNameOverride,
|
|
37539
|
+
...props
|
|
37540
|
+
}) => {
|
|
37541
|
+
const isMeaningfulImg = role === "img";
|
|
37542
|
+
if (isMeaningfulImg && !title) {
|
|
37543
|
+
warn2(`
|
|
37544
|
+
Icon with role "img" missing a title attribute.
|
|
37545
|
+
|
|
37546
|
+
Assistive technologies that enable vision-impaired users to read web pages
|
|
37547
|
+
can treat images (including icons) as either decorative or meaningful. Only
|
|
37548
|
+
images with a role of "img" (meaningful) will be read aloud to the user.
|
|
37549
|
+
These images must therefore have a title attribute to provide the text that
|
|
37550
|
+
will be read aloud.
|
|
37551
|
+
|
|
37552
|
+
Either add the missing title prop, or set this icon's role to
|
|
37553
|
+
"presentation" to indicate it is not meaningful.
|
|
37554
|
+
`);
|
|
37555
|
+
}
|
|
37556
|
+
const renderTitle = () => isMeaningfulImg && !!title && /* @__PURE__ */ import_react43.default.createElement("title", null, title);
|
|
37557
|
+
const renderDesc = () => isMeaningfulImg && !!desc && /* @__PURE__ */ import_react43.default.createElement("desc", null, desc);
|
|
37558
|
+
const accessibilityProps = {
|
|
37559
|
+
role,
|
|
37560
|
+
["aria-hidden"]: isMeaningfulImg ? void 0 : true
|
|
37561
|
+
};
|
|
37562
|
+
return /* @__PURE__ */ import_react43.default.createElement(
|
|
37563
|
+
"svg",
|
|
37564
|
+
{
|
|
37565
|
+
className: (0, import_classnames22.default)(import_Icon_module.default.icon, classNameOverride, {
|
|
37566
|
+
[import_Icon_module.default.inheritSize]: inheritSize
|
|
37567
|
+
}),
|
|
37568
|
+
viewBox: icon.viewBox,
|
|
37569
|
+
focusable: "false",
|
|
37570
|
+
...accessibilityProps,
|
|
37571
|
+
...props
|
|
37572
|
+
},
|
|
37573
|
+
renderTitle(),
|
|
37574
|
+
renderDesc(),
|
|
37575
|
+
/* @__PURE__ */ import_react43.default.createElement("use", { xlinkHref: `#${icon.id}` })
|
|
37576
|
+
);
|
|
37577
|
+
};
|
|
37578
|
+
Icon2.displayName = "Icon";
|
|
37259
37579
|
|
|
37260
37580
|
// ../component-library/icons/success.icon.svg
|
|
37261
37581
|
var success_icon_default = "../success.icon-QNKK4XJE.svg";
|
|
@@ -37280,17 +37600,17 @@ ${singleLine(message)}${reset}
|
|
|
37280
37600
|
(prev, curr) => curr ? [curr, prev].join(" ") : prev,
|
|
37281
37601
|
""
|
|
37282
37602
|
);
|
|
37283
|
-
return /* @__PURE__ */
|
|
37603
|
+
return /* @__PURE__ */ import_react44.default.createElement(
|
|
37284
37604
|
FieldGroup,
|
|
37285
37605
|
{
|
|
37286
37606
|
id: `${id2}-field-group`,
|
|
37287
37607
|
automationId: `${id2}-field-group`,
|
|
37288
37608
|
inline,
|
|
37289
|
-
classNameOverride: (0,
|
|
37609
|
+
classNameOverride: (0, import_classnames23.default)(import_TextField_module.default.withLabel, {
|
|
37290
37610
|
[import_TextField_module.default.withDisabled]: disabled
|
|
37291
37611
|
})
|
|
37292
37612
|
},
|
|
37293
|
-
/* @__PURE__ */
|
|
37613
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
|
37294
37614
|
Label,
|
|
37295
37615
|
{
|
|
37296
37616
|
id: `${id2}-field-label`,
|
|
@@ -37301,7 +37621,7 @@ ${singleLine(message)}${reset}
|
|
|
37301
37621
|
disabled
|
|
37302
37622
|
}
|
|
37303
37623
|
),
|
|
37304
|
-
/* @__PURE__ */
|
|
37624
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
|
37305
37625
|
Input,
|
|
37306
37626
|
{
|
|
37307
37627
|
id: `${id2}-field-input`,
|
|
@@ -37310,27 +37630,27 @@ ${singleLine(message)}${reset}
|
|
|
37310
37630
|
disabled,
|
|
37311
37631
|
reversed,
|
|
37312
37632
|
status,
|
|
37313
|
-
startIconAdornment: icon && /* @__PURE__ */
|
|
37314
|
-
endIconAdornment: status === "success" && /* @__PURE__ */
|
|
37633
|
+
startIconAdornment: icon && /* @__PURE__ */ import_react44.default.createElement("div", { className: import_TextField_module.default.icon }, /* @__PURE__ */ import_react44.default.createElement(Icon2, { icon, role: "presentation" })),
|
|
37634
|
+
endIconAdornment: status === "success" && /* @__PURE__ */ import_react44.default.createElement(
|
|
37315
37635
|
"div",
|
|
37316
37636
|
{
|
|
37317
|
-
className: (0,
|
|
37637
|
+
className: (0, import_classnames23.default)(import_TextField_module.default.success, {
|
|
37318
37638
|
[import_TextField_module.default.disabled]: disabled
|
|
37319
37639
|
})
|
|
37320
37640
|
},
|
|
37321
|
-
/* @__PURE__ */
|
|
37641
|
+
/* @__PURE__ */ import_react44.default.createElement(Icon2, { icon: success_icon_default, role: "presentation" })
|
|
37322
37642
|
),
|
|
37323
37643
|
...restProps
|
|
37324
37644
|
}
|
|
37325
37645
|
),
|
|
37326
|
-
validationMessage && /* @__PURE__ */
|
|
37646
|
+
validationMessage && /* @__PURE__ */ import_react44.default.createElement(
|
|
37327
37647
|
"div",
|
|
37328
37648
|
{
|
|
37329
|
-
className: (0,
|
|
37649
|
+
className: (0, import_classnames23.default)(import_TextField_module.default.message, {
|
|
37330
37650
|
[import_TextField_module.default.disabled]: disabled
|
|
37331
37651
|
})
|
|
37332
37652
|
},
|
|
37333
|
-
/* @__PURE__ */
|
|
37653
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
|
37334
37654
|
FieldMessage,
|
|
37335
37655
|
{
|
|
37336
37656
|
id: validationMessageAria,
|
|
@@ -37341,14 +37661,14 @@ ${singleLine(message)}${reset}
|
|
|
37341
37661
|
}
|
|
37342
37662
|
)
|
|
37343
37663
|
),
|
|
37344
|
-
description && /* @__PURE__ */
|
|
37664
|
+
description && /* @__PURE__ */ import_react44.default.createElement(
|
|
37345
37665
|
"div",
|
|
37346
37666
|
{
|
|
37347
|
-
className: (0,
|
|
37667
|
+
className: (0, import_classnames23.default)(import_TextField_module.default.message, {
|
|
37348
37668
|
[import_TextField_module.default.disabled]: disabled
|
|
37349
37669
|
})
|
|
37350
37670
|
},
|
|
37351
|
-
/* @__PURE__ */
|
|
37671
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
|
37352
37672
|
FieldMessage,
|
|
37353
37673
|
{
|
|
37354
37674
|
id: descriptionAria,
|
|
@@ -37363,8 +37683,8 @@ ${singleLine(message)}${reset}
|
|
|
37363
37683
|
TextField.displayName = "TextField";
|
|
37364
37684
|
|
|
37365
37685
|
// ../../draft-packages/form/KaizenDraft/Form/ToggleSwitchField/ToggleSwitchField.tsx
|
|
37366
|
-
var
|
|
37367
|
-
var
|
|
37686
|
+
var import_react45 = __toESM(require_react());
|
|
37687
|
+
var import_classnames24 = __toESM(require_classnames());
|
|
37368
37688
|
var import_ToggleSwitchField_module = __toESM(__require("../ToggleSwitchField.module-BJOL7O7U.scss"));
|
|
37369
37689
|
var ToggleSwitchField = ({
|
|
37370
37690
|
id: id2 = "",
|
|
@@ -37376,18 +37696,18 @@ ${singleLine(message)}${reset}
|
|
|
37376
37696
|
inline,
|
|
37377
37697
|
fullWidth,
|
|
37378
37698
|
...restProps
|
|
37379
|
-
}) => /* @__PURE__ */
|
|
37699
|
+
}) => /* @__PURE__ */ import_react45.default.createElement(
|
|
37380
37700
|
FieldGroup,
|
|
37381
37701
|
{
|
|
37382
37702
|
id: `${id2}-field-group`,
|
|
37383
37703
|
inline,
|
|
37384
37704
|
automationId: `${id2}-field-group`,
|
|
37385
|
-
classNameOverride: (0,
|
|
37705
|
+
classNameOverride: (0, import_classnames24.default)(import_ToggleSwitchField_module.default.container, {
|
|
37386
37706
|
[import_ToggleSwitchField_module.default.fullWidth]: fullWidth,
|
|
37387
37707
|
[import_ToggleSwitchField_module.default.on]: toggledStatus === "on" /* ON */
|
|
37388
37708
|
})
|
|
37389
37709
|
},
|
|
37390
|
-
/* @__PURE__ */
|
|
37710
|
+
/* @__PURE__ */ import_react45.default.createElement("div", { className: import_ToggleSwitchField_module.default.inner }, /* @__PURE__ */ import_react45.default.createElement(
|
|
37391
37711
|
Label,
|
|
37392
37712
|
{
|
|
37393
37713
|
id: `${id2}-field-label`,
|
|
@@ -37399,7 +37719,7 @@ ${singleLine(message)}${reset}
|
|
|
37399
37719
|
disabled,
|
|
37400
37720
|
reversed
|
|
37401
37721
|
},
|
|
37402
|
-
/* @__PURE__ */
|
|
37722
|
+
/* @__PURE__ */ import_react45.default.createElement(
|
|
37403
37723
|
ToggleSwitch,
|
|
37404
37724
|
{
|
|
37405
37725
|
id: `${id2}-field-toggle`,
|
|
@@ -37415,8 +37735,8 @@ ${singleLine(message)}${reset}
|
|
|
37415
37735
|
ToggleSwitchField.displayName = "ToggleSwitchField";
|
|
37416
37736
|
|
|
37417
37737
|
// ../../draft-packages/form/KaizenDraft/Form/TextAreaField/TextAreaField.tsx
|
|
37418
|
-
var
|
|
37419
|
-
var
|
|
37738
|
+
var import_react46 = __toESM(require_react());
|
|
37739
|
+
var import_classnames25 = __toESM(require_classnames());
|
|
37420
37740
|
var import_TextAreaField_module = __toESM(__require("../TextAreaField.module-4K35MSCT.scss"));
|
|
37421
37741
|
var TextAreaField = ({
|
|
37422
37742
|
labelText,
|
|
@@ -37440,14 +37760,14 @@ ${singleLine(message)}${reset}
|
|
|
37440
37760
|
const renderDescription = (position) => {
|
|
37441
37761
|
if (!description)
|
|
37442
37762
|
return null;
|
|
37443
|
-
return /* @__PURE__ */
|
|
37763
|
+
return /* @__PURE__ */ import_react46.default.createElement(
|
|
37444
37764
|
"div",
|
|
37445
37765
|
{
|
|
37446
|
-
className: (0,
|
|
37766
|
+
className: (0, import_classnames25.default)(import_TextAreaField_module.default.message, {
|
|
37447
37767
|
[import_TextAreaField_module.default.disabled]: disabled
|
|
37448
37768
|
})
|
|
37449
37769
|
},
|
|
37450
|
-
/* @__PURE__ */
|
|
37770
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
|
37451
37771
|
FieldMessage,
|
|
37452
37772
|
{
|
|
37453
37773
|
id: descriptionAria,
|
|
@@ -37459,7 +37779,7 @@ ${singleLine(message)}${reset}
|
|
|
37459
37779
|
)
|
|
37460
37780
|
);
|
|
37461
37781
|
};
|
|
37462
|
-
return /* @__PURE__ */
|
|
37782
|
+
return /* @__PURE__ */ import_react46.default.createElement(
|
|
37463
37783
|
FieldGroup,
|
|
37464
37784
|
{
|
|
37465
37785
|
id: `${id2}-field-group`,
|
|
@@ -37467,14 +37787,14 @@ ${singleLine(message)}${reset}
|
|
|
37467
37787
|
automationId: `${id2}-field-group`,
|
|
37468
37788
|
classNameOverride: disabled ? import_TextAreaField_module.default.disabled : void 0
|
|
37469
37789
|
},
|
|
37470
|
-
/* @__PURE__ */
|
|
37790
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
|
37471
37791
|
"div",
|
|
37472
37792
|
{
|
|
37473
|
-
className: (0,
|
|
37793
|
+
className: (0, import_classnames25.default)(import_TextAreaField_module.default.textareaLabel, {
|
|
37474
37794
|
[import_TextAreaField_module.default.textareaLabelProminent]: variant === "prominent"
|
|
37475
37795
|
})
|
|
37476
37796
|
},
|
|
37477
|
-
/* @__PURE__ */
|
|
37797
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
|
37478
37798
|
Label,
|
|
37479
37799
|
{
|
|
37480
37800
|
id: `${id2}-field-label`,
|
|
@@ -37488,7 +37808,7 @@ ${singleLine(message)}${reset}
|
|
|
37488
37808
|
)
|
|
37489
37809
|
),
|
|
37490
37810
|
renderDescriptionOnTop && renderDescription("top"),
|
|
37491
|
-
/* @__PURE__ */
|
|
37811
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
|
37492
37812
|
TextArea,
|
|
37493
37813
|
{
|
|
37494
37814
|
id: `${id2}-field-textarea`,
|
|
@@ -37500,7 +37820,7 @@ ${singleLine(message)}${reset}
|
|
|
37500
37820
|
...restProps
|
|
37501
37821
|
}
|
|
37502
37822
|
),
|
|
37503
|
-
!disabled && validationMessage && /* @__PURE__ */
|
|
37823
|
+
!disabled && validationMessage && /* @__PURE__ */ import_react46.default.createElement(
|
|
37504
37824
|
FieldMessage,
|
|
37505
37825
|
{
|
|
37506
37826
|
id: validationMessageAria,
|
|
@@ -37516,8 +37836,8 @@ ${singleLine(message)}${reset}
|
|
|
37516
37836
|
TextAreaField.displayName = "TextAreaField";
|
|
37517
37837
|
|
|
37518
37838
|
// ../../draft-packages/form/KaizenDraft/Form/RadioField/RadioField.tsx
|
|
37519
|
-
var
|
|
37520
|
-
var
|
|
37839
|
+
var import_react47 = __toESM(require_react());
|
|
37840
|
+
var import_classnames26 = __toESM(require_classnames());
|
|
37521
37841
|
var import_RadioField_module = __toESM(__require("../RadioField.module-C2XRADW5.scss"));
|
|
37522
37842
|
var RadioField = ({
|
|
37523
37843
|
id: id2,
|
|
@@ -37529,17 +37849,17 @@ ${singleLine(message)}${reset}
|
|
|
37529
37849
|
automationId,
|
|
37530
37850
|
classNameOverride,
|
|
37531
37851
|
...restProps
|
|
37532
|
-
}) => /* @__PURE__ */
|
|
37852
|
+
}) => /* @__PURE__ */ import_react47.default.createElement(
|
|
37533
37853
|
"div",
|
|
37534
37854
|
{
|
|
37535
37855
|
"data-automation-id": automationId,
|
|
37536
|
-
className: (0,
|
|
37856
|
+
className: (0, import_classnames26.default)(import_RadioField_module.default.container, classNameOverride, {
|
|
37537
37857
|
[import_RadioField_module.default.selected]: selectedStatus,
|
|
37538
37858
|
[import_RadioField_module.default.inline]: inline,
|
|
37539
37859
|
[import_RadioField_module.default.reversed]: reversed
|
|
37540
37860
|
})
|
|
37541
37861
|
},
|
|
37542
|
-
/* @__PURE__ */
|
|
37862
|
+
/* @__PURE__ */ import_react47.default.createElement(
|
|
37543
37863
|
Label,
|
|
37544
37864
|
{
|
|
37545
37865
|
automationId: `${id2}-field-label`,
|
|
@@ -37550,7 +37870,7 @@ ${singleLine(message)}${reset}
|
|
|
37550
37870
|
disabled,
|
|
37551
37871
|
reversed
|
|
37552
37872
|
},
|
|
37553
|
-
/* @__PURE__ */
|
|
37873
|
+
/* @__PURE__ */ import_react47.default.createElement(
|
|
37554
37874
|
Radio,
|
|
37555
37875
|
{
|
|
37556
37876
|
automationId: `${id2}-radio-input`,
|
|
@@ -37566,8 +37886,8 @@ ${singleLine(message)}${reset}
|
|
|
37566
37886
|
RadioField.displayName = "RadioField";
|
|
37567
37887
|
|
|
37568
37888
|
// ../../draft-packages/form/KaizenDraft/Form/RadioGroup/RadioGroup.tsx
|
|
37569
|
-
var
|
|
37570
|
-
var
|
|
37889
|
+
var import_react48 = __toESM(require_react());
|
|
37890
|
+
var import_classnames27 = __toESM(require_classnames());
|
|
37571
37891
|
var import_RadioGroup_module = __toESM(__require("../RadioGroup.module-PDLRO572.scss"));
|
|
37572
37892
|
var RadioGroup = ({
|
|
37573
37893
|
children,
|
|
@@ -37578,11 +37898,11 @@ ${singleLine(message)}${reset}
|
|
|
37578
37898
|
automationId = "",
|
|
37579
37899
|
classNameOverride,
|
|
37580
37900
|
...restProps
|
|
37581
|
-
}) => /* @__PURE__ */
|
|
37901
|
+
}) => /* @__PURE__ */ import_react48.default.createElement(
|
|
37582
37902
|
"div",
|
|
37583
37903
|
{
|
|
37584
37904
|
"data-automation-id": automationId,
|
|
37585
|
-
className: (0,
|
|
37905
|
+
className: (0, import_classnames27.default)(import_RadioGroup_module.default.radioGroupContainer, classNameOverride, {
|
|
37586
37906
|
[import_RadioGroup_module.default.noBottomMargin]: noBottomMargin,
|
|
37587
37907
|
[import_RadioGroup_module.default.reversed]: reversed
|
|
37588
37908
|
}),
|
|
@@ -37590,7 +37910,7 @@ ${singleLine(message)}${reset}
|
|
|
37590
37910
|
"aria-labelledby": labelId,
|
|
37591
37911
|
...restProps
|
|
37592
37912
|
},
|
|
37593
|
-
/* @__PURE__ */
|
|
37913
|
+
/* @__PURE__ */ import_react48.default.createElement("div", { className: import_RadioGroup_module.default.radioGroupLabel }, /* @__PURE__ */ import_react48.default.createElement(
|
|
37594
37914
|
Label,
|
|
37595
37915
|
{
|
|
37596
37916
|
id: labelId,
|
|
@@ -37605,7 +37925,7 @@ ${singleLine(message)}${reset}
|
|
|
37605
37925
|
RadioGroup.displayName = "RadioGroup";
|
|
37606
37926
|
|
|
37607
37927
|
// ../../draft-packages/form/KaizenDraft/Form/SearchField/SearchField.tsx
|
|
37608
|
-
var
|
|
37928
|
+
var import_react49 = __toESM(require_react());
|
|
37609
37929
|
var import_SearchField_module = __toESM(__require("../SearchField.module-2EV6HGZE.scss"));
|
|
37610
37930
|
var SearchField = ({
|
|
37611
37931
|
id: id2,
|
|
@@ -37617,7 +37937,7 @@ ${singleLine(message)}${reset}
|
|
|
37617
37937
|
...restProps
|
|
37618
37938
|
}) => {
|
|
37619
37939
|
const showVisibleLabel = !secondary;
|
|
37620
|
-
return /* @__PURE__ */
|
|
37940
|
+
return /* @__PURE__ */ import_react49.default.createElement("div", { className: classNameOverride }, showVisibleLabel && /* @__PURE__ */ import_react49.default.createElement(
|
|
37621
37941
|
Label,
|
|
37622
37942
|
{
|
|
37623
37943
|
htmlFor: id2,
|
|
@@ -37626,7 +37946,7 @@ ${singleLine(message)}${reset}
|
|
|
37626
37946
|
disabled,
|
|
37627
37947
|
classNameOverride: import_SearchField_module.default.label
|
|
37628
37948
|
}
|
|
37629
|
-
), /* @__PURE__ */
|
|
37949
|
+
), /* @__PURE__ */ import_react49.default.createElement(
|
|
37630
37950
|
InputSearch,
|
|
37631
37951
|
{
|
|
37632
37952
|
"aria-label": !showVisibleLabel ? labelText : void 0,
|
|
@@ -37641,8 +37961,8 @@ ${singleLine(message)}${reset}
|
|
|
37641
37961
|
SearchField.displayName = "SearchField";
|
|
37642
37962
|
|
|
37643
37963
|
// ../../draft-packages/form/KaizenDraft/Form/Slider/Slider.tsx
|
|
37644
|
-
var
|
|
37645
|
-
var
|
|
37964
|
+
var import_react50 = __toESM(require_react());
|
|
37965
|
+
var import_classnames28 = __toESM(require_classnames());
|
|
37646
37966
|
var import_Slider_module = __toESM(__require("../Slider.module-EIBFJ2LP.scss"));
|
|
37647
37967
|
var Slider = (props) => {
|
|
37648
37968
|
const {
|
|
@@ -37656,14 +37976,14 @@ ${singleLine(message)}${reset}
|
|
|
37656
37976
|
...restProps
|
|
37657
37977
|
} = props;
|
|
37658
37978
|
const descriptionId = `${id2}-description`;
|
|
37659
|
-
return /* @__PURE__ */
|
|
37979
|
+
return /* @__PURE__ */ import_react50.default.createElement(FieldGroup, { inline: true }, /* @__PURE__ */ import_react50.default.createElement(
|
|
37660
37980
|
"div",
|
|
37661
37981
|
{
|
|
37662
|
-
className: (0,
|
|
37982
|
+
className: (0, import_classnames28.default)(import_Slider_module.default.wrapper, {
|
|
37663
37983
|
[import_Slider_module.default.labelInline]: labelPosition === "inline"
|
|
37664
37984
|
})
|
|
37665
37985
|
},
|
|
37666
|
-
/* @__PURE__ */
|
|
37986
|
+
/* @__PURE__ */ import_react50.default.createElement("div", { className: import_Slider_module.default.labelWrapper }, /* @__PURE__ */ import_react50.default.createElement(Box, { mb: 0.25 }, /* @__PURE__ */ import_react50.default.createElement(
|
|
37667
37987
|
Label,
|
|
37668
37988
|
{
|
|
37669
37989
|
htmlFor: id2,
|
|
@@ -37671,7 +37991,7 @@ ${singleLine(message)}${reset}
|
|
|
37671
37991
|
variant,
|
|
37672
37992
|
disabled
|
|
37673
37993
|
}
|
|
37674
|
-
)), description && /* @__PURE__ */
|
|
37994
|
+
)), description && /* @__PURE__ */ import_react50.default.createElement(
|
|
37675
37995
|
Paragraph,
|
|
37676
37996
|
{
|
|
37677
37997
|
variant: "small",
|
|
@@ -37680,7 +38000,7 @@ ${singleLine(message)}${reset}
|
|
|
37680
38000
|
},
|
|
37681
38001
|
description
|
|
37682
38002
|
)),
|
|
37683
|
-
/* @__PURE__ */
|
|
38003
|
+
/* @__PURE__ */ import_react50.default.createElement("div", { className: import_Slider_module.default.inputWrapper }, /* @__PURE__ */ import_react50.default.createElement(
|
|
37684
38004
|
InputRange,
|
|
37685
38005
|
{
|
|
37686
38006
|
id: id2,
|
|
@@ -37688,13 +38008,13 @@ ${singleLine(message)}${reset}
|
|
|
37688
38008
|
disabled,
|
|
37689
38009
|
...restProps
|
|
37690
38010
|
}
|
|
37691
|
-
), readOnlyMessage && /* @__PURE__ */
|
|
38011
|
+
), readOnlyMessage && /* @__PURE__ */ import_react50.default.createElement("div", { className: import_Slider_module.default.readOnlyMessage }, readOnlyMessage))
|
|
37692
38012
|
));
|
|
37693
38013
|
};
|
|
37694
38014
|
Slider.displayName = "Slider";
|
|
37695
38015
|
|
|
37696
38016
|
// ../select/src/Select/components/ListBox/ListBox.tsx
|
|
37697
|
-
var
|
|
38017
|
+
var import_react52 = __toESM(require_react());
|
|
37698
38018
|
|
|
37699
38019
|
// ../../node_modules/@react-aria/listbox/dist/module.js
|
|
37700
38020
|
var $b1f0cad8af73213b$export$3585ede4d035bf14 = /* @__PURE__ */ new WeakMap();
|
|
@@ -37846,10 +38166,10 @@ ${singleLine(message)}${reset}
|
|
|
37846
38166
|
}
|
|
37847
38167
|
|
|
37848
38168
|
// ../select/src/Select/context/SelectContext.tsx
|
|
37849
|
-
var
|
|
37850
|
-
var SelectContext =
|
|
38169
|
+
var import_react51 = __toESM(require_react());
|
|
38170
|
+
var SelectContext = import_react51.default.createContext(null);
|
|
37851
38171
|
var useSelectContext = () => {
|
|
37852
|
-
const context = (0,
|
|
38172
|
+
const context = (0, import_react51.useContext)(SelectContext);
|
|
37853
38173
|
if (!context) {
|
|
37854
38174
|
throw new Error(
|
|
37855
38175
|
"useSelectContext must be used within the SelectContext.Provider"
|
|
@@ -37864,30 +38184,30 @@ ${singleLine(message)}${reset}
|
|
|
37864
38184
|
menuProps,
|
|
37865
38185
|
children
|
|
37866
38186
|
}) => {
|
|
37867
|
-
const ref =
|
|
38187
|
+
const ref = import_react52.default.useRef(null);
|
|
37868
38188
|
const { state } = useSelectContext();
|
|
37869
38189
|
const { listBoxProps } = $c132121280ec012d$export$50eacbbf140a3141(
|
|
37870
38190
|
{ ...menuProps, disallowEmptySelection: true, autoFocus: "first" },
|
|
37871
38191
|
state,
|
|
37872
38192
|
ref
|
|
37873
38193
|
);
|
|
37874
|
-
return /* @__PURE__ */
|
|
38194
|
+
return /* @__PURE__ */ import_react52.default.createElement("ul", { ...listBoxProps, ref, className: import_ListBox_module.default.listBox }, children);
|
|
37875
38195
|
};
|
|
37876
38196
|
ListBox.displayName = "ListBox";
|
|
37877
38197
|
|
|
37878
38198
|
// ../select/src/Select/components/ListBoxSection/ListBoxSection.tsx
|
|
37879
|
-
var
|
|
38199
|
+
var import_react54 = __toESM(require_react());
|
|
37880
38200
|
|
|
37881
38201
|
// ../select/src/Select/components/Option/Option.tsx
|
|
37882
|
-
var
|
|
37883
|
-
var
|
|
38202
|
+
var import_react53 = __toESM(require_react());
|
|
38203
|
+
var import_classnames29 = __toESM(require_classnames());
|
|
37884
38204
|
var import_Option_module = __toESM(__require("../Option.module-O2QRLWHC.scss"));
|
|
37885
38205
|
var Option = ({
|
|
37886
38206
|
item,
|
|
37887
38207
|
classNameOverride,
|
|
37888
38208
|
...props
|
|
37889
38209
|
}) => {
|
|
37890
|
-
const ref =
|
|
38210
|
+
const ref = import_react53.default.useRef(null);
|
|
37891
38211
|
const { state } = useSelectContext();
|
|
37892
38212
|
const { optionProps, isSelected, isDisabled } = $293f70390ea03370$export$497855f14858aa34(
|
|
37893
38213
|
{ key: item.key },
|
|
@@ -37895,12 +38215,12 @@ ${singleLine(message)}${reset}
|
|
|
37895
38215
|
ref
|
|
37896
38216
|
);
|
|
37897
38217
|
const { isFocusVisible, focusProps } = $f7dceffc5ad7768b$export$4e328f61c538687f();
|
|
37898
|
-
return /* @__PURE__ */
|
|
38218
|
+
return /* @__PURE__ */ import_react53.default.createElement(
|
|
37899
38219
|
"li",
|
|
37900
38220
|
{
|
|
37901
38221
|
...$3ef42575df84b30b$export$9d1611c77c2fe928(optionProps, focusProps, props),
|
|
37902
38222
|
ref,
|
|
37903
|
-
className: (0,
|
|
38223
|
+
className: (0, import_classnames29.default)([
|
|
37904
38224
|
import_Option_module.default.option,
|
|
37905
38225
|
isSelected && import_Option_module.default.isSelected,
|
|
37906
38226
|
isFocusVisible && import_Option_module.default.isFocusVisible,
|
|
@@ -37910,12 +38230,12 @@ ${singleLine(message)}${reset}
|
|
|
37910
38230
|
"aria-label": item.textValue
|
|
37911
38231
|
},
|
|
37912
38232
|
item.rendered,
|
|
37913
|
-
/* @__PURE__ */
|
|
38233
|
+
/* @__PURE__ */ import_react53.default.createElement(
|
|
37914
38234
|
"span",
|
|
37915
38235
|
{
|
|
37916
|
-
className: (0,
|
|
38236
|
+
className: (0, import_classnames29.default)([import_Option_module.default.icon, isSelected && import_Option_module.default.isSelected])
|
|
37917
38237
|
},
|
|
37918
|
-
isSelected && /* @__PURE__ */
|
|
38238
|
+
isSelected && /* @__PURE__ */ import_react53.default.createElement(Icon, { icon: check_icon_default, role: "presentation" })
|
|
37919
38239
|
)
|
|
37920
38240
|
);
|
|
37921
38241
|
};
|
|
@@ -37930,7 +38250,7 @@ ${singleLine(message)}${reset}
|
|
|
37930
38250
|
heading: section.rendered,
|
|
37931
38251
|
"aria-label": section["aria-label"]
|
|
37932
38252
|
});
|
|
37933
|
-
return /* @__PURE__ */
|
|
38253
|
+
return /* @__PURE__ */ import_react54.default.createElement(import_react54.default.Fragment, null, /* @__PURE__ */ import_react54.default.createElement("li", { ...itemProps, className: import_ListBoxSection_module.default.sectionWrapper }, section.rendered && /* @__PURE__ */ import_react54.default.createElement(
|
|
37934
38254
|
Heading,
|
|
37935
38255
|
{
|
|
37936
38256
|
variant: "heading-6",
|
|
@@ -37938,26 +38258,26 @@ ${singleLine(message)}${reset}
|
|
|
37938
38258
|
classNameOverride: import_ListBoxSection_module.default.sectionHeading
|
|
37939
38259
|
},
|
|
37940
38260
|
section.rendered
|
|
37941
|
-
), /* @__PURE__ */
|
|
38261
|
+
), /* @__PURE__ */ import_react54.default.createElement("ul", { ...groupProps, className: import_ListBoxSection_module.default.sectionList }, Array.from(section.childNodes).map((item) => /* @__PURE__ */ import_react54.default.createElement(Option, { key: item.key, item })))));
|
|
37942
38262
|
};
|
|
37943
38263
|
ListBoxSection.displayName = "ListBoxSection";
|
|
37944
38264
|
|
|
37945
38265
|
// ../select/src/Select/components/Overlay/Overlay.tsx
|
|
37946
|
-
var
|
|
38266
|
+
var import_react55 = __toESM(require_react());
|
|
37947
38267
|
var import_Overlay_module = __toESM(__require("../Overlay.module-W7K5DWH6.scss"));
|
|
37948
38268
|
var Overlay = ({ children }) => {
|
|
37949
|
-
const overlayRef =
|
|
38269
|
+
const overlayRef = import_react55.default.useRef(null);
|
|
37950
38270
|
const { state } = useSelectContext();
|
|
37951
38271
|
const { overlayProps } = $a11501f3d1d39e6c$export$ea8f71083e90600f(
|
|
37952
38272
|
{ isDismissable: true, isOpen: state.isOpen, onClose: state.close },
|
|
37953
38273
|
overlayRef
|
|
37954
38274
|
);
|
|
37955
|
-
return /* @__PURE__ */
|
|
38275
|
+
return /* @__PURE__ */ import_react55.default.createElement("div", { ...overlayProps, ref: overlayRef, className: import_Overlay_module.default.menuPopup }, /* @__PURE__ */ import_react55.default.createElement($9bf71ea28793e738$export$20e40289641fbbb6, { contain: true, autoFocus: true, restoreFocus: true }, /* @__PURE__ */ import_react55.default.createElement($86ea4cb521eb2e37$export$2317d149ed6f78c4, { onDismiss: state.close }), children, /* @__PURE__ */ import_react55.default.createElement($86ea4cb521eb2e37$export$2317d149ed6f78c4, { onDismiss: state.close })));
|
|
37956
38276
|
};
|
|
37957
38277
|
Overlay.displayName = "Overlay";
|
|
37958
38278
|
|
|
37959
38279
|
// ../select/src/Select/components/TriggerButton/TriggerButton.tsx
|
|
37960
|
-
var
|
|
38280
|
+
var import_react56 = __toESM(require_react());
|
|
37961
38281
|
|
|
37962
38282
|
// ../../node_modules/@react-aria/button/dist/module.js
|
|
37963
38283
|
function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
|
|
@@ -38027,14 +38347,17 @@ ${singleLine(message)}${reset}
|
|
|
38027
38347
|
}
|
|
38028
38348
|
|
|
38029
38349
|
// ../select/src/Select/components/TriggerButton/TriggerButton.tsx
|
|
38030
|
-
var
|
|
38350
|
+
var import_classnames30 = __toESM(require_classnames());
|
|
38351
|
+
|
|
38352
|
+
// ../component-library/icons/chevron-down.icon.svg
|
|
38353
|
+
var chevron_down_icon_default2 = "../chevron-down.icon-COG3GAYR.svg";
|
|
38031
38354
|
|
|
38032
38355
|
// ../component-library/icons/chevron-up.icon.svg
|
|
38033
38356
|
var chevron_up_icon_default = "../chevron-up.icon-O5VRF5BX.svg";
|
|
38034
38357
|
|
|
38035
38358
|
// ../select/src/Select/components/TriggerButton/TriggerButton.tsx
|
|
38036
38359
|
var import_TriggerButton_module = __toESM(__require("../TriggerButton.module-ML4U7VQL.scss"));
|
|
38037
|
-
var TriggerButton =
|
|
38360
|
+
var TriggerButton = import_react56.default.forwardRef(
|
|
38038
38361
|
({
|
|
38039
38362
|
placeholder = "Select",
|
|
38040
38363
|
classNameOverride,
|
|
@@ -38049,12 +38372,12 @@ ${singleLine(message)}${reset}
|
|
|
38049
38372
|
const value = (_a = state == null ? void 0 : state.selectedItem) == null ? void 0 : _a.rendered;
|
|
38050
38373
|
const ref = $df56164dff5785e2$export$4338b53315abf666(buttonRef2);
|
|
38051
38374
|
const { buttonProps } = $701a24aa0da5b062$export$ea18c227d4417cc3(triggerProps, ref);
|
|
38052
|
-
return /* @__PURE__ */
|
|
38375
|
+
return /* @__PURE__ */ import_react56.default.createElement(
|
|
38053
38376
|
"button",
|
|
38054
38377
|
{
|
|
38055
38378
|
...$3ef42575df84b30b$export$9d1611c77c2fe928(buttonProps, restProps),
|
|
38056
38379
|
ref,
|
|
38057
|
-
className: (0,
|
|
38380
|
+
className: (0, import_classnames30.default)([
|
|
38058
38381
|
import_TriggerButton_module.default.button,
|
|
38059
38382
|
(value === null || value === void 0) && import_TriggerButton_module.default.placeholder,
|
|
38060
38383
|
status === "error" && import_TriggerButton_module.default.error,
|
|
@@ -38064,11 +38387,11 @@ ${singleLine(message)}${reset}
|
|
|
38064
38387
|
classNameOverride
|
|
38065
38388
|
])
|
|
38066
38389
|
},
|
|
38067
|
-
/* @__PURE__ */
|
|
38068
|
-
/* @__PURE__ */
|
|
38390
|
+
/* @__PURE__ */ import_react56.default.createElement("span", { ...valueProps, className: import_TriggerButton_module.default.value }, value ?? placeholder),
|
|
38391
|
+
/* @__PURE__ */ import_react56.default.createElement(
|
|
38069
38392
|
Icon,
|
|
38070
38393
|
{
|
|
38071
|
-
icon: state.isOpen ? chevron_up_icon_default :
|
|
38394
|
+
icon: state.isOpen ? chevron_up_icon_default : chevron_down_icon_default2,
|
|
38072
38395
|
role: "presentation",
|
|
38073
38396
|
classNameOverride: import_TriggerButton_module.default.icon
|
|
38074
38397
|
}
|
|
@@ -38080,7 +38403,7 @@ ${singleLine(message)}${reset}
|
|
|
38080
38403
|
|
|
38081
38404
|
// ../select/src/Select/Select.tsx
|
|
38082
38405
|
var import_Select_module = __toESM(__require("../Select.module-WOGFQRYI.scss"));
|
|
38083
|
-
var getSelectChildren = (item) => Array.isArray(item.value) ? /* @__PURE__ */
|
|
38406
|
+
var getSelectChildren = (item) => Array.isArray(item.value) ? /* @__PURE__ */ import_react57.default.createElement($9fc4852771d079eb$export$6e2c8f0811a474ce, { key: item.label, title: item.label, items: item.value }, (child) => /* @__PURE__ */ import_react57.default.createElement($c1d7fb2ec91bae71$export$6d08773d2e66f8f2, { key: child.value }, child.label)) : /* @__PURE__ */ import_react57.default.createElement($c1d7fb2ec91bae71$export$6d08773d2e66f8f2, { key: item.value }, item.label);
|
|
38084
38407
|
var Select = ({
|
|
38085
38408
|
id: id2,
|
|
38086
38409
|
label,
|
|
@@ -38094,12 +38417,12 @@ ${singleLine(message)}${reset}
|
|
|
38094
38417
|
defaultOpen,
|
|
38095
38418
|
validationMessage,
|
|
38096
38419
|
classNameOverride,
|
|
38097
|
-
trigger = (triggerProps) => /* @__PURE__ */
|
|
38420
|
+
trigger = (triggerProps) => /* @__PURE__ */ import_react57.default.createElement(TriggerButton, { ...triggerProps, ref: buttonRef }),
|
|
38098
38421
|
children,
|
|
38099
38422
|
...restProps
|
|
38100
38423
|
}) => {
|
|
38101
38424
|
const descriptionId = `${id2}-field-message`;
|
|
38102
|
-
const buttonRef2 =
|
|
38425
|
+
const buttonRef2 = import_react57.default.useRef(null);
|
|
38103
38426
|
const invalidStatus = status === "error" ? "invalid" : "valid";
|
|
38104
38427
|
const ariaSelectProps = {
|
|
38105
38428
|
label,
|
|
@@ -38115,7 +38438,7 @@ ${singleLine(message)}${reset}
|
|
|
38115
38438
|
};
|
|
38116
38439
|
const state = $2bc3a590c5373a4e$export$5159ec8b34d4ec12(ariaSelectProps);
|
|
38117
38440
|
const renderChildren = children ? children : ({ items: items2 }) => items2.map(
|
|
38118
|
-
(item) => item.type === "section" ? /* @__PURE__ */
|
|
38441
|
+
(item) => item.type === "section" ? /* @__PURE__ */ import_react57.default.createElement(ListBoxSection, { key: item.key, section: item }) : /* @__PURE__ */ import_react57.default.createElement(Option, { key: item.key, item })
|
|
38119
38442
|
);
|
|
38120
38443
|
const {
|
|
38121
38444
|
labelProps,
|
|
@@ -38133,29 +38456,29 @@ ${singleLine(message)}${reset}
|
|
|
38133
38456
|
buttonRef2
|
|
38134
38457
|
);
|
|
38135
38458
|
const items = Array.from(state.collection);
|
|
38136
|
-
(0,
|
|
38459
|
+
(0, import_react57.useEffect)(() => {
|
|
38137
38460
|
var _a;
|
|
38138
38461
|
if (state.isOpen === false && defaultOpen) {
|
|
38139
38462
|
(_a = buttonRef2.current) == null ? void 0 : _a.focus();
|
|
38140
38463
|
}
|
|
38141
38464
|
}, [state.isOpen]);
|
|
38142
|
-
return /* @__PURE__ */
|
|
38465
|
+
return /* @__PURE__ */ import_react57.default.createElement(
|
|
38143
38466
|
SelectContext.Provider,
|
|
38144
38467
|
{
|
|
38145
38468
|
value: {
|
|
38146
38469
|
state
|
|
38147
38470
|
}
|
|
38148
38471
|
},
|
|
38149
|
-
/* @__PURE__ */
|
|
38472
|
+
/* @__PURE__ */ import_react57.default.createElement(
|
|
38150
38473
|
"div",
|
|
38151
38474
|
{
|
|
38152
|
-
className: (0,
|
|
38475
|
+
className: (0, import_classnames31.default)(
|
|
38153
38476
|
!isFullWidth && import_Select_module.default.notFullWidth,
|
|
38154
38477
|
classNameOverride
|
|
38155
38478
|
)
|
|
38156
38479
|
},
|
|
38157
|
-
/* @__PURE__ */
|
|
38158
|
-
/* @__PURE__ */
|
|
38480
|
+
/* @__PURE__ */ import_react57.default.createElement(Label, { ...labelProps, reversed: isReversed }, label),
|
|
38481
|
+
/* @__PURE__ */ import_react57.default.createElement(
|
|
38159
38482
|
$bdd25dc72710631f$export$cbd84cdb2e668835,
|
|
38160
38483
|
{
|
|
38161
38484
|
label,
|
|
@@ -38164,11 +38487,11 @@ ${singleLine(message)}${reset}
|
|
|
38164
38487
|
triggerRef: buttonRef2
|
|
38165
38488
|
}
|
|
38166
38489
|
),
|
|
38167
|
-
/* @__PURE__ */
|
|
38490
|
+
/* @__PURE__ */ import_react57.default.createElement("div", { className: (0, import_classnames31.default)([import_Select_module.default.container]) }, trigger(
|
|
38168
38491
|
{ placeholder, triggerProps, valueProps, status, isReversed },
|
|
38169
38492
|
buttonRef2
|
|
38170
|
-
), state.isOpen && /* @__PURE__ */
|
|
38171
|
-
validationMessage && /* @__PURE__ */
|
|
38493
|
+
), state.isOpen && /* @__PURE__ */ import_react57.default.createElement(Overlay, null, /* @__PURE__ */ import_react57.default.createElement(ListBox, { menuProps }, renderChildren({ items })))),
|
|
38494
|
+
validationMessage && /* @__PURE__ */ import_react57.default.createElement(
|
|
38172
38495
|
FieldMessage,
|
|
38173
38496
|
{
|
|
38174
38497
|
...errorMessageProps,
|
|
@@ -38177,7 +38500,7 @@ ${singleLine(message)}${reset}
|
|
|
38177
38500
|
reversed: isReversed
|
|
38178
38501
|
}
|
|
38179
38502
|
),
|
|
38180
|
-
description && /* @__PURE__ */
|
|
38503
|
+
description && /* @__PURE__ */ import_react57.default.createElement(
|
|
38181
38504
|
FieldMessage,
|
|
38182
38505
|
{
|
|
38183
38506
|
...descriptionProps,
|
|
@@ -38195,50 +38518,48 @@ ${singleLine(message)}${reset}
|
|
|
38195
38518
|
Select.displayName = "Select";
|
|
38196
38519
|
|
|
38197
38520
|
// ../select/src/FilterMultiSelect/components/ListBox/ListBox.tsx
|
|
38198
|
-
var
|
|
38199
|
-
var
|
|
38521
|
+
var import_react61 = __toESM(require_react());
|
|
38522
|
+
var import_classnames32 = __toESM(require_classnames());
|
|
38200
38523
|
|
|
38201
38524
|
// ../select/src/FilterMultiSelect/provider/SelectionProvider/SelectionProvider.tsx
|
|
38202
|
-
var
|
|
38525
|
+
var import_react60 = __toESM(require_react());
|
|
38203
38526
|
|
|
38204
|
-
// ../a11y/
|
|
38205
|
-
var
|
|
38527
|
+
// ../a11y/dist/esm/index.js
|
|
38528
|
+
var import_react58 = __toESM(require_react());
|
|
38206
38529
|
|
|
38207
38530
|
// ../component-library/icons/skip.icon.svg
|
|
38208
38531
|
var skip_icon_default = "../skip.icon-4OAFSA2T.svg";
|
|
38209
38532
|
|
|
38210
|
-
// ../a11y/
|
|
38211
|
-
var
|
|
38212
|
-
var
|
|
38533
|
+
// ../a11y/dist/esm/index.js
|
|
38534
|
+
var import_SkipLink_module_KAZA7PAL = __toESM(__require("../SkipLink.module-KAZA7PAL-KAZA7PAL.scss"));
|
|
38535
|
+
var import_react59 = __toESM(require_react());
|
|
38536
|
+
var import_VisuallyHidden_module_E5JUNEF5 = __toESM(__require("../VisuallyHidden.module-E5JUNEF5-E5JUNEF5.scss"));
|
|
38537
|
+
var SkipLink = ({ label, skipTo }) => /* @__PURE__ */ import_react58.default.createElement("a", { className: import_SkipLink_module_KAZA7PAL.default.skipLinkContainer, href: `#${skipTo}` }, /* @__PURE__ */ import_react58.default.createElement("span", { className: import_SkipLink_module_KAZA7PAL.default.skipLinkContent }, /* @__PURE__ */ import_react58.default.createElement("span", { className: import_SkipLink_module_KAZA7PAL.default.skipLinkIcon }, /* @__PURE__ */ import_react58.default.createElement(Icon, { icon: skip_icon_default, role: "presentation" })), /* @__PURE__ */ import_react58.default.createElement("span", null, label)));
|
|
38213
38538
|
SkipLink.displayName = "SkipLink";
|
|
38214
|
-
|
|
38215
|
-
// ../a11y/src/VisuallyHidden/VisuallyHidden.tsx
|
|
38216
|
-
var import_react50 = __toESM(require_react());
|
|
38217
|
-
var import_VisuallyHidden_module = __toESM(__require("../VisuallyHidden.module-E5JUNEF5.scss"));
|
|
38218
38539
|
var VisuallyHidden = ({
|
|
38219
38540
|
children,
|
|
38220
38541
|
classNameOverride,
|
|
38221
38542
|
tag = "span",
|
|
38222
38543
|
...otherProps
|
|
38223
38544
|
}) => {
|
|
38224
|
-
const className = `${
|
|
38225
|
-
return (0,
|
|
38545
|
+
const className = `${import_VisuallyHidden_module_E5JUNEF5.default.srOnly} ${classNameOverride}`;
|
|
38546
|
+
return (0, import_react59.createElement)(tag, { ...otherProps, className }, children);
|
|
38226
38547
|
};
|
|
38227
38548
|
VisuallyHidden.displayName = "VisuallyHidden";
|
|
38228
38549
|
|
|
38229
38550
|
// ../select/src/FilterMultiSelect/provider/SelectionProvider/SelectionProvider.tsx
|
|
38230
|
-
var SelectionContext =
|
|
38551
|
+
var SelectionContext = import_react60.default.createContext(
|
|
38231
38552
|
{}
|
|
38232
38553
|
);
|
|
38233
38554
|
var SelectionProvider = (props) => {
|
|
38234
38555
|
const { onSearchInputChange, ...otherProps } = props;
|
|
38235
|
-
const [searchQuery, setSearchQuery] = (0,
|
|
38236
|
-
|
|
38556
|
+
const [searchQuery, setSearchQuery] = (0, import_react60.useState)("");
|
|
38557
|
+
import_react60.default.useEffect(() => {
|
|
38237
38558
|
if (onSearchInputChange) {
|
|
38238
38559
|
onSearchInputChange(searchQuery);
|
|
38239
38560
|
}
|
|
38240
38561
|
}, [searchQuery, onSearchInputChange]);
|
|
38241
|
-
const searchFilter = (0,
|
|
38562
|
+
const searchFilter = (0, import_react60.useCallback)(
|
|
38242
38563
|
(nodes) => searchQuery ? Array.from(nodes).filter(
|
|
38243
38564
|
(f) => f.textValue.toLowerCase().includes(searchQuery.toLowerCase())
|
|
38244
38565
|
) : nodes,
|
|
@@ -38246,12 +38567,12 @@ ${singleLine(message)}${reset}
|
|
|
38246
38567
|
);
|
|
38247
38568
|
const state = $e72dd72e1c76a225$export$2f645645f7bca764({
|
|
38248
38569
|
...otherProps,
|
|
38249
|
-
children: (item) => /* @__PURE__ */
|
|
38570
|
+
children: (item) => /* @__PURE__ */ import_react60.default.createElement($c1d7fb2ec91bae71$export$6d08773d2e66f8f2, { key: item.value }, item.label),
|
|
38250
38571
|
// For initialising selection and determined item.renderer, can be only Item or Section
|
|
38251
38572
|
filter: onSearchInputChange ? void 0 : searchFilter
|
|
38252
38573
|
// If the user has passed an `onSearchInputChange` we opt them out of the default filtering
|
|
38253
38574
|
});
|
|
38254
|
-
const ref =
|
|
38575
|
+
const ref = import_react60.default.createRef();
|
|
38255
38576
|
const { listBoxProps, labelProps } = $c132121280ec012d$export$50eacbbf140a3141(
|
|
38256
38577
|
{
|
|
38257
38578
|
...otherProps,
|
|
@@ -38261,7 +38582,7 @@ ${singleLine(message)}${reset}
|
|
|
38261
38582
|
state,
|
|
38262
38583
|
ref
|
|
38263
38584
|
);
|
|
38264
|
-
return /* @__PURE__ */
|
|
38585
|
+
return /* @__PURE__ */ import_react60.default.createElement(
|
|
38265
38586
|
SelectionContext.Provider,
|
|
38266
38587
|
{
|
|
38267
38588
|
value: {
|
|
@@ -38273,11 +38594,11 @@ ${singleLine(message)}${reset}
|
|
|
38273
38594
|
searchQuery
|
|
38274
38595
|
}
|
|
38275
38596
|
},
|
|
38276
|
-
/* @__PURE__ */
|
|
38597
|
+
/* @__PURE__ */ import_react60.default.createElement(VisuallyHidden, { ...labelProps }, otherProps.label),
|
|
38277
38598
|
otherProps.children
|
|
38278
38599
|
);
|
|
38279
38600
|
};
|
|
38280
|
-
var useSelectionContext = () => (0,
|
|
38601
|
+
var useSelectionContext = () => (0, import_react60.useContext)(SelectionContext);
|
|
38281
38602
|
var SelectionConsumer = SelectionContext.Consumer;
|
|
38282
38603
|
SelectionProvider.displayName = "SelectionProvider";
|
|
38283
38604
|
|
|
@@ -38285,8 +38606,8 @@ ${singleLine(message)}${reset}
|
|
|
38285
38606
|
var import_ListBox_module2 = __toESM(__require("../ListBox.module-5GNTZUCX.scss"));
|
|
38286
38607
|
var ListBox2 = ({ children }) => {
|
|
38287
38608
|
const { listBoxProps, listRef, selectionState } = useSelectionContext();
|
|
38288
|
-
const [isOverflown, setIsOverflown] = (0,
|
|
38289
|
-
(0,
|
|
38609
|
+
const [isOverflown, setIsOverflown] = (0, import_react61.useState)(false);
|
|
38610
|
+
(0, import_react61.useEffect)(() => {
|
|
38290
38611
|
const listElement = listRef.current;
|
|
38291
38612
|
if (!listElement) {
|
|
38292
38613
|
return;
|
|
@@ -38305,14 +38626,14 @@ ${singleLine(message)}${reset}
|
|
|
38305
38626
|
);
|
|
38306
38627
|
const allItems = Array.from(items);
|
|
38307
38628
|
const hasNoItems = allItems.length === 0;
|
|
38308
|
-
const [itemsState, setItemsState] = (0,
|
|
38629
|
+
const [itemsState, setItemsState] = (0, import_react61.useState)({
|
|
38309
38630
|
selectedItems,
|
|
38310
38631
|
unselectedItems,
|
|
38311
38632
|
disabledItems,
|
|
38312
38633
|
allItems,
|
|
38313
38634
|
hasNoItems
|
|
38314
38635
|
});
|
|
38315
|
-
(0,
|
|
38636
|
+
(0, import_react61.useEffect)(() => {
|
|
38316
38637
|
setItemsState({
|
|
38317
38638
|
selectedItems,
|
|
38318
38639
|
disabledItems,
|
|
@@ -38322,14 +38643,14 @@ ${singleLine(message)}${reset}
|
|
|
38322
38643
|
});
|
|
38323
38644
|
}, [selectionState.collection.size]);
|
|
38324
38645
|
if (hasNoItems) {
|
|
38325
|
-
return /* @__PURE__ */
|
|
38646
|
+
return /* @__PURE__ */ import_react61.default.createElement(import_react61.default.Fragment, null, /* @__PURE__ */ import_react61.default.createElement("div", null, children(itemsState)), /* @__PURE__ */ import_react61.default.createElement("ul", { ref: listRef, className: import_ListBox_module2.default.hidden }));
|
|
38326
38647
|
}
|
|
38327
|
-
return /* @__PURE__ */
|
|
38648
|
+
return /* @__PURE__ */ import_react61.default.createElement(
|
|
38328
38649
|
"ul",
|
|
38329
38650
|
{
|
|
38330
38651
|
...listBoxProps,
|
|
38331
38652
|
ref: listRef,
|
|
38332
|
-
className: (0,
|
|
38653
|
+
className: (0, import_classnames32.default)(
|
|
38333
38654
|
import_ListBox_module2.default.listBox,
|
|
38334
38655
|
isOverflown ? import_ListBox_module2.default.overflown : null
|
|
38335
38656
|
)
|
|
@@ -38340,28 +38661,28 @@ ${singleLine(message)}${reset}
|
|
|
38340
38661
|
ListBox2.displayName = "ListBox";
|
|
38341
38662
|
|
|
38342
38663
|
// ../select/src/FilterMultiSelect/components/ListBoxSection/ListBoxSection.tsx
|
|
38343
|
-
var
|
|
38664
|
+
var import_react62 = __toESM(require_react());
|
|
38344
38665
|
var import_ListBoxSection_module2 = __toESM(__require("../ListBoxSection.module-53ABDKRS.scss"));
|
|
38345
38666
|
var ListBoxSection2 = ({
|
|
38346
38667
|
items,
|
|
38347
38668
|
sectionName,
|
|
38348
38669
|
children
|
|
38349
|
-
}) => /* @__PURE__ */
|
|
38670
|
+
}) => /* @__PURE__ */ import_react62.default.createElement("div", { "aria-label": sectionName, className: import_ListBoxSection_module2.default.listBoxSection }, Array.from(items).map((node) => node != void 0 && children(node)));
|
|
38350
38671
|
ListBoxSection2.displayName = "ListBoxSection";
|
|
38351
38672
|
|
|
38352
38673
|
// ../select/src/FilterMultiSelect/components/LoadMoreButton/LoadMoreButton.tsx
|
|
38353
|
-
var
|
|
38674
|
+
var React51 = __toESM(require_react());
|
|
38354
38675
|
|
|
38355
38676
|
// ../button/src/Button/Button.tsx
|
|
38356
|
-
var
|
|
38677
|
+
var import_react65 = __toESM(require_react());
|
|
38357
38678
|
|
|
38358
38679
|
// ../button/src/Button/components/GenericButton.tsx
|
|
38359
|
-
var
|
|
38360
|
-
var
|
|
38680
|
+
var import_react64 = __toESM(require_react());
|
|
38681
|
+
var import_classnames34 = __toESM(require_classnames());
|
|
38361
38682
|
|
|
38362
38683
|
// ../../draft-packages/badge/KaizenDraft/Badge/Badge.tsx
|
|
38363
|
-
var
|
|
38364
|
-
var
|
|
38684
|
+
var import_react63 = __toESM(require_react());
|
|
38685
|
+
var import_classnames33 = __toESM(require_classnames());
|
|
38365
38686
|
var import_Badge_module = __toESM(__require("../Badge.module-5JDAQSAV.scss"));
|
|
38366
38687
|
var Badge = ({
|
|
38367
38688
|
children,
|
|
@@ -38370,10 +38691,10 @@ ${singleLine(message)}${reset}
|
|
|
38370
38691
|
size = "small",
|
|
38371
38692
|
classNameOverride,
|
|
38372
38693
|
...restProps
|
|
38373
|
-
}) => /* @__PURE__ */
|
|
38694
|
+
}) => /* @__PURE__ */ import_react63.default.createElement(
|
|
38374
38695
|
"span",
|
|
38375
38696
|
{
|
|
38376
|
-
className: (0,
|
|
38697
|
+
className: (0, import_classnames33.default)(import_Badge_module.default.badge, import_Badge_module.default[variant], classNameOverride, {
|
|
38377
38698
|
[import_Badge_module.default.reversed]: reversed,
|
|
38378
38699
|
[import_Badge_module.default.large]: size === "large"
|
|
38379
38700
|
}),
|
|
@@ -38382,21 +38703,21 @@ ${singleLine(message)}${reset}
|
|
|
38382
38703
|
variant !== "dot" && children
|
|
38383
38704
|
);
|
|
38384
38705
|
var BadgeAnimated = (props) => {
|
|
38385
|
-
const [isFocused, setIsFocused] = (0,
|
|
38386
|
-
(0,
|
|
38706
|
+
const [isFocused, setIsFocused] = (0, import_react63.useState)(false);
|
|
38707
|
+
(0, import_react63.useLayoutEffect)(() => {
|
|
38387
38708
|
setIsFocused(true);
|
|
38388
38709
|
setTimeout(() => {
|
|
38389
38710
|
setIsFocused(false);
|
|
38390
38711
|
}, 150);
|
|
38391
38712
|
}, [props.children]);
|
|
38392
|
-
return /* @__PURE__ */
|
|
38713
|
+
return /* @__PURE__ */ import_react63.default.createElement(
|
|
38393
38714
|
"span",
|
|
38394
38715
|
{
|
|
38395
|
-
className: (0,
|
|
38716
|
+
className: (0, import_classnames33.default)(import_Badge_module.default.animation, {
|
|
38396
38717
|
[import_Badge_module.default.animationOn]: isFocused
|
|
38397
38718
|
})
|
|
38398
38719
|
},
|
|
38399
|
-
/* @__PURE__ */
|
|
38720
|
+
/* @__PURE__ */ import_react63.default.createElement(Badge, { ...props })
|
|
38400
38721
|
);
|
|
38401
38722
|
};
|
|
38402
38723
|
|
|
@@ -38409,10 +38730,10 @@ ${singleLine(message)}${reset}
|
|
|
38409
38730
|
return acc;
|
|
38410
38731
|
}, {});
|
|
38411
38732
|
};
|
|
38412
|
-
var GenericButton = (0,
|
|
38733
|
+
var GenericButton = (0, import_react64.forwardRef)(
|
|
38413
38734
|
(props, ref) => {
|
|
38414
|
-
const buttonRef2 = (0,
|
|
38415
|
-
(0,
|
|
38735
|
+
const buttonRef2 = (0, import_react64.useRef)();
|
|
38736
|
+
(0, import_react64.useImperativeHandle)(ref, () => ({
|
|
38416
38737
|
focus: () => {
|
|
38417
38738
|
var _a;
|
|
38418
38739
|
(_a = buttonRef2.current) == null ? void 0 : _a.focus();
|
|
@@ -38427,10 +38748,10 @@ ${singleLine(message)}${reset}
|
|
|
38427
38748
|
}
|
|
38428
38749
|
return renderButton(props, buttonRef2);
|
|
38429
38750
|
};
|
|
38430
|
-
return /* @__PURE__ */
|
|
38751
|
+
return /* @__PURE__ */ import_react64.default.createElement(
|
|
38431
38752
|
"span",
|
|
38432
38753
|
{
|
|
38433
|
-
className: (0,
|
|
38754
|
+
className: (0, import_classnames34.default)(import_GenericButton_module.default.container, {
|
|
38434
38755
|
[import_GenericButton_module.default.fullWidth]: props.fullWidth
|
|
38435
38756
|
})
|
|
38436
38757
|
},
|
|
@@ -38447,7 +38768,7 @@ ${singleLine(message)}${reset}
|
|
|
38447
38768
|
disableTabFocusAndIUnderstandTheAccessibilityImplications: false,
|
|
38448
38769
|
type: "button"
|
|
38449
38770
|
};
|
|
38450
|
-
var renderCustomComponent = (CustomComponent, props) => /* @__PURE__ */
|
|
38771
|
+
var renderCustomComponent = (CustomComponent, props) => /* @__PURE__ */ import_react64.default.createElement(
|
|
38451
38772
|
CustomComponent,
|
|
38452
38773
|
{
|
|
38453
38774
|
id: props.id,
|
|
@@ -38475,7 +38796,7 @@ ${singleLine(message)}${reset}
|
|
|
38475
38796
|
...rest
|
|
38476
38797
|
} = props;
|
|
38477
38798
|
const customProps = getCustomProps(rest);
|
|
38478
|
-
return /* @__PURE__ */
|
|
38799
|
+
return /* @__PURE__ */ import_react64.default.createElement(
|
|
38479
38800
|
"button",
|
|
38480
38801
|
{
|
|
38481
38802
|
id: id2,
|
|
@@ -38507,7 +38828,7 @@ ${singleLine(message)}${reset}
|
|
|
38507
38828
|
...rest
|
|
38508
38829
|
} = props;
|
|
38509
38830
|
const customProps = getCustomProps(rest);
|
|
38510
|
-
return /* @__PURE__ */
|
|
38831
|
+
return /* @__PURE__ */ import_react64.default.createElement(
|
|
38511
38832
|
"a",
|
|
38512
38833
|
{
|
|
38513
38834
|
id: id2,
|
|
@@ -38526,7 +38847,7 @@ ${singleLine(message)}${reset}
|
|
|
38526
38847
|
};
|
|
38527
38848
|
var buttonClass = (props) => {
|
|
38528
38849
|
const isDefault = !props.primary && !props.destructive && !props.secondary;
|
|
38529
|
-
return (0,
|
|
38850
|
+
return (0, import_classnames34.default)([
|
|
38530
38851
|
import_GenericButton_module.default.button,
|
|
38531
38852
|
isDefault && import_GenericButton_module.default.default,
|
|
38532
38853
|
props.primary && import_GenericButton_module.default.primary,
|
|
@@ -38543,25 +38864,25 @@ ${singleLine(message)}${reset}
|
|
|
38543
38864
|
props.classNameOverride
|
|
38544
38865
|
]);
|
|
38545
38866
|
};
|
|
38546
|
-
var renderLoadingSpinner = () => /* @__PURE__ */
|
|
38867
|
+
var renderLoadingSpinner = () => /* @__PURE__ */ import_react64.default.createElement("div", { className: import_GenericButton_module.default.loadingSpinner }, /* @__PURE__ */ import_react64.default.createElement(LoadingSpinner, { accessibilityLabel: "", size: "sm" }));
|
|
38547
38868
|
var renderWorkingContent = (props) => {
|
|
38548
38869
|
if (props.workingLabelHidden) {
|
|
38549
|
-
return /* @__PURE__ */
|
|
38870
|
+
return /* @__PURE__ */ import_react64.default.createElement(import_react64.default.Fragment, null, /* @__PURE__ */ import_react64.default.createElement("span", { className: import_GenericButton_module.default.hidden, "aria-hidden": "true" }, renderDefaultContent(props)), /* @__PURE__ */ import_react64.default.createElement("span", { className: import_GenericButton_module.default.centeredLoadingSpinner }, renderLoadingSpinner()));
|
|
38550
38871
|
}
|
|
38551
|
-
return /* @__PURE__ */
|
|
38872
|
+
return /* @__PURE__ */ import_react64.default.createElement(import_react64.default.Fragment, null, props.iconPosition !== "end" && renderLoadingSpinner(), /* @__PURE__ */ import_react64.default.createElement("span", { className: import_GenericButton_module.default.label }, props.workingLabel), props.additionalContent && /* @__PURE__ */ import_react64.default.createElement("span", { className: import_GenericButton_module.default.additionalContentWrapper }, props.additionalContent), props.iconPosition === "end" && renderLoadingSpinner());
|
|
38552
38873
|
};
|
|
38553
|
-
var renderDefaultContent = (props) => /* @__PURE__ */
|
|
38874
|
+
var renderDefaultContent = (props) => /* @__PURE__ */ import_react64.default.createElement(import_react64.default.Fragment, null, props.icon && props.iconPosition !== "end" && renderIcon(props.icon), (!props.icon || !props.iconButton) && /* @__PURE__ */ import_react64.default.createElement("span", { className: import_GenericButton_module.default.label }, props.label), props.additionalContent && /* @__PURE__ */ import_react64.default.createElement("span", { className: import_GenericButton_module.default.additionalContentWrapper }, props.additionalContent), renderBadge(props), props.icon && props.iconPosition === "end" && renderIcon(props.icon));
|
|
38554
38875
|
var renderBadge = (props) => {
|
|
38555
38876
|
if (!props.badge)
|
|
38556
38877
|
return null;
|
|
38557
38878
|
const { text, animateChange, reversed, variant } = props.badge;
|
|
38558
38879
|
if (animateChange) {
|
|
38559
|
-
return /* @__PURE__ */
|
|
38880
|
+
return /* @__PURE__ */ import_react64.default.createElement(BadgeAnimated, { variant, reversed }, text);
|
|
38560
38881
|
}
|
|
38561
|
-
return /* @__PURE__ */
|
|
38882
|
+
return /* @__PURE__ */ import_react64.default.createElement(Badge, { variant, reversed }, text);
|
|
38562
38883
|
};
|
|
38563
|
-
var renderContent = (props) => /* @__PURE__ */
|
|
38564
|
-
var renderIcon = (icon) => /* @__PURE__ */
|
|
38884
|
+
var renderContent = (props) => /* @__PURE__ */ import_react64.default.createElement("span", { className: import_GenericButton_module.default.content }, props.working ? renderWorkingContent(props) : renderDefaultContent(props));
|
|
38885
|
+
var renderIcon = (icon) => /* @__PURE__ */ import_react64.default.createElement("span", { className: import_GenericButton_module.default.iconWrapper }, /* @__PURE__ */ import_react64.default.createElement(Icon, { icon, role: "presentation" }));
|
|
38565
38886
|
var generateAriaLabel = (props) => {
|
|
38566
38887
|
if (props.working && props.workingLabelHidden) {
|
|
38567
38888
|
return props.workingLabel;
|
|
@@ -38574,8 +38895,8 @@ ${singleLine(message)}${reset}
|
|
|
38574
38895
|
var GenericButton_default = GenericButton;
|
|
38575
38896
|
|
|
38576
38897
|
// ../button/src/Button/Button.tsx
|
|
38577
|
-
var Button = (0,
|
|
38578
|
-
(props, ref) => /* @__PURE__ */
|
|
38898
|
+
var Button = (0, import_react65.forwardRef)(
|
|
38899
|
+
(props, ref) => /* @__PURE__ */ import_react65.default.createElement(GenericButton_default, { ...props, ref })
|
|
38579
38900
|
);
|
|
38580
38901
|
Button.defaultProps = {
|
|
38581
38902
|
fullWidth: false,
|
|
@@ -38592,8 +38913,8 @@ ${singleLine(message)}${reset}
|
|
|
38592
38913
|
var Button_default = Button;
|
|
38593
38914
|
|
|
38594
38915
|
// ../button/src/Button/IconButton.tsx
|
|
38595
|
-
var
|
|
38596
|
-
var IconButton = (props) => /* @__PURE__ */
|
|
38916
|
+
var import_react66 = __toESM(require_react());
|
|
38917
|
+
var IconButton = (props) => /* @__PURE__ */ import_react66.default.createElement(GenericButton_default, { iconButton: true, ...props });
|
|
38597
38918
|
IconButton.defaultProps = {
|
|
38598
38919
|
form: false,
|
|
38599
38920
|
primary: false,
|
|
@@ -38605,7 +38926,7 @@ ${singleLine(message)}${reset}
|
|
|
38605
38926
|
IconButton.displayName = "IconButton";
|
|
38606
38927
|
|
|
38607
38928
|
// ../button/src/Button/DirectionalLink.tsx
|
|
38608
|
-
var
|
|
38929
|
+
var import_react67 = __toESM(require_react());
|
|
38609
38930
|
|
|
38610
38931
|
// ../component-library/icons/arrow-backward.icon.svg
|
|
38611
38932
|
var arrow_backward_icon_default = "../arrow-backward.icon-DGOZ655M.svg";
|
|
@@ -38626,7 +38947,7 @@ ${singleLine(message)}${reset}
|
|
|
38626
38947
|
start: start_icon_default,
|
|
38627
38948
|
end: end_icon_default
|
|
38628
38949
|
};
|
|
38629
|
-
var DirectionalLink = (props) => /* @__PURE__ */
|
|
38950
|
+
var DirectionalLink = (props) => /* @__PURE__ */ import_react67.default.createElement(
|
|
38630
38951
|
GenericButton_default,
|
|
38631
38952
|
{
|
|
38632
38953
|
...props,
|
|
@@ -38642,8 +38963,8 @@ ${singleLine(message)}${reset}
|
|
|
38642
38963
|
DirectionalLink.displayName = "DirectionalLink";
|
|
38643
38964
|
|
|
38644
38965
|
// ../button/src/Button/PaginationLink.tsx
|
|
38645
|
-
var
|
|
38646
|
-
var PaginationLink = (props) => /* @__PURE__ */
|
|
38966
|
+
var import_react68 = __toESM(require_react());
|
|
38967
|
+
var PaginationLink = (props) => /* @__PURE__ */ import_react68.default.createElement(
|
|
38647
38968
|
GenericButton_default,
|
|
38648
38969
|
{
|
|
38649
38970
|
...props,
|
|
@@ -38660,21 +38981,21 @@ ${singleLine(message)}${reset}
|
|
|
38660
38981
|
|
|
38661
38982
|
// ../select/src/FilterMultiSelect/components/LoadMoreButton/LoadMoreButton.tsx
|
|
38662
38983
|
var import_LoadMoreButton_module = __toESM(__require("../LoadMoreButton.module-ANUUS5ER.scss"));
|
|
38663
|
-
var LoadMoreButton = (props) => /* @__PURE__ */
|
|
38984
|
+
var LoadMoreButton = (props) => /* @__PURE__ */ React51.createElement("div", { className: import_LoadMoreButton_module.default.container }, /* @__PURE__ */ React51.createElement(Button_default, { ...props, fullWidth: true }));
|
|
38664
38985
|
|
|
38665
38986
|
// ../select/src/FilterMultiSelect/components/MenuLayout/MenuFooter/MenuFooter.tsx
|
|
38666
|
-
var
|
|
38987
|
+
var import_react69 = __toESM(require_react());
|
|
38667
38988
|
var import_MenuFooter_module = __toESM(__require("../MenuFooter.module-7J44RW5D.scss"));
|
|
38668
|
-
var MenuFooter = ({ children }) => /* @__PURE__ */
|
|
38989
|
+
var MenuFooter = ({ children }) => /* @__PURE__ */ import_react69.default.createElement("div", { className: import_MenuFooter_module.default.footer }, children);
|
|
38669
38990
|
MenuFooter.displayName = "MenuFooter";
|
|
38670
38991
|
|
|
38671
38992
|
// ../select/src/FilterMultiSelect/components/MenuLayout/MenuLoadingSkeleton/MenuLoadingSkeleton.tsx
|
|
38672
|
-
var
|
|
38673
|
-
var
|
|
38993
|
+
var import_react74 = __toESM(require_react());
|
|
38994
|
+
var import_classnames39 = __toESM(require_classnames());
|
|
38674
38995
|
|
|
38675
38996
|
// ../loading-skeleton/src/LoadingParagraph/LoadingParagraph.tsx
|
|
38676
|
-
var
|
|
38677
|
-
var
|
|
38997
|
+
var import_react70 = __toESM(require_react());
|
|
38998
|
+
var import_classnames35 = __toESM(require_classnames());
|
|
38678
38999
|
var import_loading_skeleton_module = __toESM(__require("../loading-skeleton.module-RZXSULUO.scss"));
|
|
38679
39000
|
var import_LoadingParagraph_module = __toESM(__require("../LoadingParagraph.module-43NZVIEE.scss"));
|
|
38680
39001
|
var LoadingParagraph = ({
|
|
@@ -38688,10 +39009,10 @@ ${singleLine(message)}${reset}
|
|
|
38688
39009
|
inheritBaseline,
|
|
38689
39010
|
classNameOverride,
|
|
38690
39011
|
...props
|
|
38691
|
-
}) => /* @__PURE__ */
|
|
39012
|
+
}) => /* @__PURE__ */ import_react70.default.createElement(
|
|
38692
39013
|
"div",
|
|
38693
39014
|
{
|
|
38694
|
-
className: (0,
|
|
39015
|
+
className: (0, import_classnames35.default)(
|
|
38695
39016
|
import_loading_skeleton_module.default.base,
|
|
38696
39017
|
import_LoadingParagraph_module.default.paragraph,
|
|
38697
39018
|
classNameOverride,
|
|
@@ -38712,8 +39033,8 @@ ${singleLine(message)}${reset}
|
|
|
38712
39033
|
LoadingParagraph.displayName = "LoadingParagraph";
|
|
38713
39034
|
|
|
38714
39035
|
// ../loading-skeleton/src/LoadingHeading/LoadingHeading.tsx
|
|
38715
|
-
var
|
|
38716
|
-
var
|
|
39036
|
+
var import_react71 = __toESM(require_react());
|
|
39037
|
+
var import_classnames36 = __toESM(require_classnames());
|
|
38717
39038
|
var import_loading_skeleton_module2 = __toESM(__require("../loading-skeleton.module-RZXSULUO.scss"));
|
|
38718
39039
|
var import_LoadingHeading_module = __toESM(__require("../LoadingHeading.module-OV5P5QHZ.scss"));
|
|
38719
39040
|
var LoadingHeading = ({
|
|
@@ -38724,10 +39045,10 @@ ${singleLine(message)}${reset}
|
|
|
38724
39045
|
classNameOverride,
|
|
38725
39046
|
variant,
|
|
38726
39047
|
...props
|
|
38727
|
-
}) => /* @__PURE__ */
|
|
39048
|
+
}) => /* @__PURE__ */ import_react71.default.createElement(
|
|
38728
39049
|
"div",
|
|
38729
39050
|
{
|
|
38730
|
-
className: (0,
|
|
39051
|
+
className: (0, import_classnames36.default)(
|
|
38731
39052
|
import_loading_skeleton_module2.default.base,
|
|
38732
39053
|
import_LoadingHeading_module.default.heading,
|
|
38733
39054
|
classNameOverride,
|
|
@@ -38745,8 +39066,8 @@ ${singleLine(message)}${reset}
|
|
|
38745
39066
|
LoadingHeading.displayName = "LoadingHeading";
|
|
38746
39067
|
|
|
38747
39068
|
// ../loading-skeleton/src/LoadingInput/LoadingInput.tsx
|
|
38748
|
-
var
|
|
38749
|
-
var
|
|
39069
|
+
var import_react72 = __toESM(require_react());
|
|
39070
|
+
var import_classnames37 = __toESM(require_classnames());
|
|
38750
39071
|
var import_loading_skeleton_module3 = __toESM(__require("../loading-skeleton.module-RZXSULUO.scss"));
|
|
38751
39072
|
var import_LoadingInput_module = __toESM(__require("../LoadingInput.module-7NL2PX46.scss"));
|
|
38752
39073
|
var LoadingInput = ({
|
|
@@ -38756,10 +39077,10 @@ ${singleLine(message)}${reset}
|
|
|
38756
39077
|
classNameOverride,
|
|
38757
39078
|
height = 48,
|
|
38758
39079
|
...props
|
|
38759
|
-
}) => /* @__PURE__ */
|
|
39080
|
+
}) => /* @__PURE__ */ import_react72.default.createElement(
|
|
38760
39081
|
"div",
|
|
38761
39082
|
{
|
|
38762
|
-
className: (0,
|
|
39083
|
+
className: (0, import_classnames37.default)(
|
|
38763
39084
|
import_loading_skeleton_module3.default.base,
|
|
38764
39085
|
import_LoadingInput_module.default.input,
|
|
38765
39086
|
classNameOverride,
|
|
@@ -38775,8 +39096,8 @@ ${singleLine(message)}${reset}
|
|
|
38775
39096
|
LoadingInput.displayName = "LoadingInput";
|
|
38776
39097
|
|
|
38777
39098
|
// ../loading-skeleton/src/LoadingGraphic/LoadingGraphic.tsx
|
|
38778
|
-
var
|
|
38779
|
-
var
|
|
39099
|
+
var import_react73 = __toESM(require_react());
|
|
39100
|
+
var import_classnames38 = __toESM(require_classnames());
|
|
38780
39101
|
var import_loading_skeleton_module4 = __toESM(__require("../loading-skeleton.module-RZXSULUO.scss"));
|
|
38781
39102
|
var import_LoadingGraphic_module = __toESM(__require("../LoadingGraphic.module-URCRSF4P.scss"));
|
|
38782
39103
|
var graphicSizesRem = /* @__PURE__ */ new Map([
|
|
@@ -38793,10 +39114,10 @@ ${singleLine(message)}${reset}
|
|
|
38793
39114
|
size,
|
|
38794
39115
|
classNameOverride,
|
|
38795
39116
|
...props
|
|
38796
|
-
}) => /* @__PURE__ */
|
|
39117
|
+
}) => /* @__PURE__ */ import_react73.default.createElement(
|
|
38797
39118
|
"div",
|
|
38798
39119
|
{
|
|
38799
|
-
className: (0,
|
|
39120
|
+
className: (0, import_classnames38.default)(
|
|
38800
39121
|
import_loading_skeleton_module4.default.base,
|
|
38801
39122
|
import_LoadingGraphic_module.default.graphic,
|
|
38802
39123
|
classNameOverride,
|
|
@@ -38816,12 +39137,12 @@ ${singleLine(message)}${reset}
|
|
|
38816
39137
|
|
|
38817
39138
|
// ../select/src/FilterMultiSelect/components/MenuLayout/MenuLoadingSkeleton/MenuLoadingSkeleton.tsx
|
|
38818
39139
|
var import_MenuLoadingSkeleton_module = __toESM(__require("../MenuLoadingSkeleton.module-DH3I5Z2J.scss"));
|
|
38819
|
-
var MenuLoadingSkeleton = () => /* @__PURE__ */
|
|
39140
|
+
var MenuLoadingSkeleton = () => /* @__PURE__ */ import_react74.default.createElement(import_react74.default.Fragment, null, /* @__PURE__ */ import_react74.default.createElement("div", { className: (0, import_classnames39.default)(import_MenuLoadingSkeleton_module.default.loadingContainer) }, /* @__PURE__ */ import_react74.default.createElement(LoadingInput, { classNameOverride: import_MenuLoadingSkeleton_module.default.loadingInput }), /* @__PURE__ */ import_react74.default.createElement(LoadingParagraph, null), /* @__PURE__ */ import_react74.default.createElement(LoadingParagraph, null), /* @__PURE__ */ import_react74.default.createElement(LoadingParagraph, null), /* @__PURE__ */ import_react74.default.createElement(LoadingParagraph, null), /* @__PURE__ */ import_react74.default.createElement(LoadingParagraph, null)), /* @__PURE__ */ import_react74.default.createElement(MenuFooter, null, /* @__PURE__ */ import_react74.default.createElement(LoadingInput, { width: 40, height: 36 }), /* @__PURE__ */ import_react74.default.createElement(LoadingInput, { width: 30, height: 36 })));
|
|
38820
39141
|
MenuLoadingSkeleton.displayName = "MenuLoadingSkeleton";
|
|
38821
39142
|
|
|
38822
39143
|
// ../select/src/FilterMultiSelect/components/MultiSelectOption/MultiSelectOption.tsx
|
|
38823
|
-
var
|
|
38824
|
-
var
|
|
39144
|
+
var import_react76 = __toESM(require_react());
|
|
39145
|
+
var import_classnames40 = __toESM(require_classnames());
|
|
38825
39146
|
|
|
38826
39147
|
// ../../node_modules/uuid/dist/esm-node/rng.js
|
|
38827
39148
|
var import_crypto = __toESM(__require("crypto"));
|
|
@@ -38871,8 +39192,8 @@ ${singleLine(message)}${reset}
|
|
|
38871
39192
|
var v4_default = v4;
|
|
38872
39193
|
|
|
38873
39194
|
// ../select/src/FilterMultiSelect/provider/MenuTriggerProvider/MenuTriggerProvider.tsx
|
|
38874
|
-
var
|
|
38875
|
-
var MenuTriggerContext =
|
|
39195
|
+
var import_react75 = __toESM(require_react());
|
|
39196
|
+
var MenuTriggerContext = import_react75.default.createContext(
|
|
38876
39197
|
{}
|
|
38877
39198
|
);
|
|
38878
39199
|
function MenuTriggerProvider({
|
|
@@ -38882,16 +39203,16 @@ ${singleLine(message)}${reset}
|
|
|
38882
39203
|
children
|
|
38883
39204
|
}) {
|
|
38884
39205
|
const state = $a28c903ee9ad8dc5$export$79fefeb1c2091ac3({ isOpen, defaultOpen, onOpenChange });
|
|
38885
|
-
const ref =
|
|
39206
|
+
const ref = import_react75.default.createRef();
|
|
38886
39207
|
const { menuTriggerProps, menuProps } = $168583247155ddda$export$dc9c12ed27dd1b49({}, state, ref);
|
|
38887
39208
|
const { buttonProps } = $701a24aa0da5b062$export$ea18c227d4417cc3(menuTriggerProps, ref);
|
|
38888
|
-
(0,
|
|
39209
|
+
(0, import_react75.useEffect)(() => {
|
|
38889
39210
|
var _a;
|
|
38890
39211
|
if (state.isOpen === false) {
|
|
38891
39212
|
(_a = ref.current) == null ? void 0 : _a.focus();
|
|
38892
39213
|
}
|
|
38893
39214
|
}, [state.isOpen]);
|
|
38894
|
-
return /* @__PURE__ */
|
|
39215
|
+
return /* @__PURE__ */ import_react75.default.createElement(
|
|
38895
39216
|
MenuTriggerContext.Provider,
|
|
38896
39217
|
{
|
|
38897
39218
|
value: {
|
|
@@ -38905,7 +39226,7 @@ ${singleLine(message)}${reset}
|
|
|
38905
39226
|
children
|
|
38906
39227
|
);
|
|
38907
39228
|
}
|
|
38908
|
-
var useMenuTriggerContext = () => (0,
|
|
39229
|
+
var useMenuTriggerContext = () => (0, import_react75.useContext)(MenuTriggerContext);
|
|
38909
39230
|
var MenuTriggerConsumer = MenuTriggerContext.Consumer;
|
|
38910
39231
|
MenuTriggerContext.displayName = "MenuTriggerContext";
|
|
38911
39232
|
|
|
@@ -38915,20 +39236,20 @@ ${singleLine(message)}${reset}
|
|
|
38915
39236
|
item
|
|
38916
39237
|
}) => {
|
|
38917
39238
|
const { selectionState: state } = useSelectionContext();
|
|
38918
|
-
const ref =
|
|
39239
|
+
const ref = import_react76.default.createRef();
|
|
38919
39240
|
const { optionProps, isSelected, isDisabled } = $293f70390ea03370$export$497855f14858aa34(
|
|
38920
39241
|
{ key: item.key },
|
|
38921
39242
|
state,
|
|
38922
39243
|
ref
|
|
38923
39244
|
);
|
|
38924
39245
|
const { isFocusVisible, focusProps } = $f7dceffc5ad7768b$export$4e328f61c538687f();
|
|
38925
|
-
const countElementId = (0,
|
|
38926
|
-
return /* @__PURE__ */
|
|
39246
|
+
const countElementId = (0, import_react76.useMemo)(() => v4_default(), []);
|
|
39247
|
+
return /* @__PURE__ */ import_react76.default.createElement(
|
|
38927
39248
|
"li",
|
|
38928
39249
|
{
|
|
38929
39250
|
...$3ef42575df84b30b$export$9d1611c77c2fe928(optionProps, focusProps),
|
|
38930
39251
|
ref,
|
|
38931
|
-
className: (0,
|
|
39252
|
+
className: (0, import_classnames40.default)(
|
|
38932
39253
|
import_MultiSelectOption_module.default.option,
|
|
38933
39254
|
isSelected ? import_MultiSelectOption_module.default.isSelected : "",
|
|
38934
39255
|
isFocusVisible ? import_MultiSelectOption_module.default.isFocusVisible : "",
|
|
@@ -38937,33 +39258,33 @@ ${singleLine(message)}${reset}
|
|
|
38937
39258
|
"aria-label": item.value.label,
|
|
38938
39259
|
"aria-describedby": item.value.count ? countElementId : void 0
|
|
38939
39260
|
},
|
|
38940
|
-
/* @__PURE__ */
|
|
39261
|
+
/* @__PURE__ */ import_react76.default.createElement(
|
|
38941
39262
|
"span",
|
|
38942
39263
|
{
|
|
38943
|
-
className: (0,
|
|
39264
|
+
className: (0, import_classnames40.default)(import_MultiSelectOption_module.default.icon, isSelected ? import_MultiSelectOption_module.default.isSelected : "")
|
|
38944
39265
|
},
|
|
38945
|
-
isSelected && /* @__PURE__ */
|
|
39266
|
+
isSelected && /* @__PURE__ */ import_react76.default.createElement(Icon, { icon: check_icon_default, role: "presentation" })
|
|
38946
39267
|
),
|
|
38947
39268
|
item.rendered,
|
|
38948
|
-
item.value.count && /* @__PURE__ */
|
|
39269
|
+
item.value.count && /* @__PURE__ */ import_react76.default.createElement("span", { id: countElementId, className: import_MultiSelectOption_module.default.badgeContainer }, /* @__PURE__ */ import_react76.default.createElement(Badge, { classNameOverride: import_MultiSelectOption_module.default.badge }, item.value.count), /* @__PURE__ */ import_react76.default.createElement(VisuallyHidden, null, " available"))
|
|
38949
39270
|
);
|
|
38950
39271
|
};
|
|
38951
39272
|
MultiSelectOption.displayName = "MultiSelectOption";
|
|
38952
39273
|
|
|
38953
39274
|
// ../select/src/FilterMultiSelect/components/NoResults/NoResults.tsx
|
|
38954
|
-
var
|
|
39275
|
+
var import_react77 = __toESM(require_react());
|
|
38955
39276
|
var import_NoResults_module = __toESM(__require("../NoResults.module-3FUWBVUH.scss"));
|
|
38956
39277
|
var NoResults = ({
|
|
38957
39278
|
children,
|
|
38958
39279
|
...restProps
|
|
38959
|
-
}) => /* @__PURE__ */
|
|
39280
|
+
}) => /* @__PURE__ */ import_react77.default.createElement("div", { className: import_NoResults_module.default.container, ...restProps }, /* @__PURE__ */ import_react77.default.createElement(Paragraph, { variant: "extra-small", color: "dark-reduced-opacity" }, children));
|
|
38960
39281
|
NoResults.displayName = "NoResults";
|
|
38961
39282
|
|
|
38962
39283
|
// ../select/src/FilterMultiSelect/components/Root/Root.tsx
|
|
38963
|
-
var
|
|
39284
|
+
var import_react79 = __toESM(require_react());
|
|
38964
39285
|
|
|
38965
39286
|
// ../select/src/FilterMultiSelect/components/MenuPopup/MenuPopup.tsx
|
|
38966
|
-
var
|
|
39287
|
+
var import_react78 = __toESM(require_react());
|
|
38967
39288
|
var import_MenuPopup_module = __toESM(__require("../MenuPopup.module-NQRYVXAG.scss"));
|
|
38968
39289
|
var MenuPopup = ({
|
|
38969
39290
|
isLoading,
|
|
@@ -38972,7 +39293,7 @@ ${singleLine(message)}${reset}
|
|
|
38972
39293
|
}) => {
|
|
38973
39294
|
const { menuTriggerState, menuProps } = useMenuTriggerContext();
|
|
38974
39295
|
const onClose = () => menuTriggerState.close();
|
|
38975
|
-
const overlayRef =
|
|
39296
|
+
const overlayRef = import_react78.default.createRef();
|
|
38976
39297
|
const { overlayProps } = $a11501f3d1d39e6c$export$ea8f71083e90600f(
|
|
38977
39298
|
{
|
|
38978
39299
|
onClose,
|
|
@@ -38981,18 +39302,18 @@ ${singleLine(message)}${reset}
|
|
|
38981
39302
|
},
|
|
38982
39303
|
overlayRef
|
|
38983
39304
|
);
|
|
38984
|
-
return menuTriggerState.isOpen ? /* @__PURE__ */
|
|
39305
|
+
return menuTriggerState.isOpen ? /* @__PURE__ */ import_react78.default.createElement(
|
|
38985
39306
|
"div",
|
|
38986
39307
|
{
|
|
38987
39308
|
...$3ef42575df84b30b$export$9d1611c77c2fe928(overlayProps, menuProps),
|
|
38988
39309
|
ref: overlayRef,
|
|
38989
39310
|
className: import_MenuPopup_module.default.menuPopup
|
|
38990
39311
|
},
|
|
38991
|
-
isLoading && loadingSkeleton ? /* @__PURE__ */
|
|
39312
|
+
isLoading && loadingSkeleton ? /* @__PURE__ */ import_react78.default.createElement(import_react78.default.Fragment, null, /* @__PURE__ */ import_react78.default.createElement($86ea4cb521eb2e37$export$2317d149ed6f78c4, { onDismiss: onClose }), loadingSkeleton, /* @__PURE__ */ import_react78.default.createElement($86ea4cb521eb2e37$export$2317d149ed6f78c4, { onDismiss: onClose })) : (
|
|
38992
39313
|
// eslint-disable-next-line jsx-a11y/no-autofocus
|
|
38993
|
-
/* @__PURE__ */
|
|
39314
|
+
/* @__PURE__ */ import_react78.default.createElement($9bf71ea28793e738$export$20e40289641fbbb6, { contain: true, autoFocus: true, restoreFocus: true }, /* @__PURE__ */ import_react78.default.createElement($86ea4cb521eb2e37$export$2317d149ed6f78c4, { onDismiss: onClose }), children, /* @__PURE__ */ import_react78.default.createElement($86ea4cb521eb2e37$export$2317d149ed6f78c4, { onDismiss: onClose }))
|
|
38994
39315
|
)
|
|
38995
|
-
) : /* @__PURE__ */
|
|
39316
|
+
) : /* @__PURE__ */ import_react78.default.createElement(import_react78.default.Fragment, null);
|
|
38996
39317
|
};
|
|
38997
39318
|
MenuPopup.displayName = "MenuPopup";
|
|
38998
39319
|
|
|
@@ -39026,12 +39347,12 @@ ${singleLine(message)}${reset}
|
|
|
39026
39347
|
disabledKeys,
|
|
39027
39348
|
onSearchInputChange
|
|
39028
39349
|
};
|
|
39029
|
-
return /* @__PURE__ */
|
|
39350
|
+
return /* @__PURE__ */ import_react79.default.createElement(MenuTriggerProvider, { ...menuTriggerProps }, /* @__PURE__ */ import_react79.default.createElement("div", null, /* @__PURE__ */ import_react79.default.createElement(MenuTriggerConsumer, null, trigger), /* @__PURE__ */ import_react79.default.createElement(MenuPopup, { ...menuPopupProps }, /* @__PURE__ */ import_react79.default.createElement(SelectionProvider, { ...selectionProps }, /* @__PURE__ */ import_react79.default.createElement(SelectionConsumer, null, children)))));
|
|
39030
39351
|
};
|
|
39031
39352
|
Root.displayName = "Root";
|
|
39032
39353
|
|
|
39033
39354
|
// ../select/src/FilterMultiSelect/components/SearchInput/SearchInput.tsx
|
|
39034
|
-
var
|
|
39355
|
+
var import_react80 = __toESM(require_react());
|
|
39035
39356
|
var import_SearchInput_module = __toESM(__require("../SearchInput.module-RQEF3FWR.scss"));
|
|
39036
39357
|
var SearchInput = ({
|
|
39037
39358
|
label,
|
|
@@ -39043,8 +39364,8 @@ ${singleLine(message)}${reset}
|
|
|
39043
39364
|
setSearchQuery(e2.target.value);
|
|
39044
39365
|
};
|
|
39045
39366
|
const handleClear = () => setSearchQuery("");
|
|
39046
|
-
const inputId = (0,
|
|
39047
|
-
return /* @__PURE__ */
|
|
39367
|
+
const inputId = (0, import_react80.useMemo)(() => id2 ?? v4_default(), [id2]);
|
|
39368
|
+
return /* @__PURE__ */ import_react80.default.createElement("div", { className: import_SearchInput_module.default.inputSearchContainer }, /* @__PURE__ */ import_react80.default.createElement(
|
|
39048
39369
|
InputSearch,
|
|
39049
39370
|
{
|
|
39050
39371
|
id: inputId,
|
|
@@ -39061,22 +39382,22 @@ ${singleLine(message)}${reset}
|
|
|
39061
39382
|
SearchInput.displayName = "SearchInput";
|
|
39062
39383
|
|
|
39063
39384
|
// ../select/src/FilterMultiSelect/components/SectionDivider/SectionDivider.tsx
|
|
39064
|
-
var
|
|
39385
|
+
var import_react82 = __toESM(require_react());
|
|
39065
39386
|
|
|
39066
39387
|
// ../../draft-packages/divider/KaizenDraft/Divider/Divider.tsx
|
|
39067
|
-
var
|
|
39068
|
-
var
|
|
39388
|
+
var import_react81 = __toESM(require_react());
|
|
39389
|
+
var import_classnames41 = __toESM(require_classnames());
|
|
39069
39390
|
var import_Divider_module = __toESM(__require("../Divider.module-YXIUJPD4.scss"));
|
|
39070
39391
|
var Divider = ({
|
|
39071
39392
|
variant,
|
|
39072
39393
|
isReversed = false,
|
|
39073
39394
|
classNameOverride,
|
|
39074
39395
|
...props
|
|
39075
|
-
}) => /* @__PURE__ */
|
|
39396
|
+
}) => /* @__PURE__ */ import_react81.default.createElement(
|
|
39076
39397
|
"hr",
|
|
39077
39398
|
{
|
|
39078
39399
|
"aria-hidden": "true",
|
|
39079
|
-
className: (0,
|
|
39400
|
+
className: (0, import_classnames41.default)(import_Divider_module.default.wrapper, classNameOverride, {
|
|
39080
39401
|
[import_Divider_module.default.reversed]: isReversed,
|
|
39081
39402
|
[import_Divider_module.default.content]: variant === "content",
|
|
39082
39403
|
[import_Divider_module.default.canvas]: variant === "canvas",
|
|
@@ -39089,11 +39410,11 @@ ${singleLine(message)}${reset}
|
|
|
39089
39410
|
|
|
39090
39411
|
// ../select/src/FilterMultiSelect/components/SectionDivider/SectionDivider.tsx
|
|
39091
39412
|
var import_SectionDivider_module = __toESM(__require("../SectionDivider.module-AN4OA4O3.scss"));
|
|
39092
|
-
var SectionDivider = () => /* @__PURE__ */
|
|
39413
|
+
var SectionDivider = () => /* @__PURE__ */ import_react82.default.createElement(Divider, { classNameOverride: import_SectionDivider_module.default.divider, variant: "canvas" });
|
|
39093
39414
|
|
|
39094
39415
|
// ../select/src/FilterMultiSelect/components/SelectionControlButton/ClearButton/ClearButton.tsx
|
|
39095
|
-
var
|
|
39096
|
-
var
|
|
39416
|
+
var import_react83 = __toESM(require_react());
|
|
39417
|
+
var import_classnames42 = __toESM(require_classnames());
|
|
39097
39418
|
var import_SelectionControlButton_module = __toESM(__require("../SelectionControlButton.module-HO7BZ2UP.scss"));
|
|
39098
39419
|
var ClearButton2 = () => {
|
|
39099
39420
|
const { selectionState } = useSelectionContext();
|
|
@@ -39106,10 +39427,10 @@ ${singleLine(message)}${reset}
|
|
|
39106
39427
|
(key) => selectionState.selectionManager.isSelected(key)
|
|
39107
39428
|
)
|
|
39108
39429
|
);
|
|
39109
|
-
return /* @__PURE__ */
|
|
39430
|
+
return /* @__PURE__ */ import_react83.default.createElement(
|
|
39110
39431
|
"button",
|
|
39111
39432
|
{
|
|
39112
|
-
className: (0,
|
|
39433
|
+
className: (0, import_classnames42.default)(import_SelectionControlButton_module.default.button, isDisabled ? import_SelectionControlButton_module.default.isDisabled : ""),
|
|
39113
39434
|
"aria-disabled": isDisabled,
|
|
39114
39435
|
onClick: () => {
|
|
39115
39436
|
!isDisabled && selectionState.selectionManager.setSelectedKeys(
|
|
@@ -39124,8 +39445,8 @@ ${singleLine(message)}${reset}
|
|
|
39124
39445
|
};
|
|
39125
39446
|
|
|
39126
39447
|
// ../select/src/FilterMultiSelect/components/SelectionControlButton/SelectAllButton/SelectAllButton.tsx
|
|
39127
|
-
var
|
|
39128
|
-
var
|
|
39448
|
+
var import_react84 = __toESM(require_react());
|
|
39449
|
+
var import_classnames43 = __toESM(require_classnames());
|
|
39129
39450
|
var import_SelectionControlButton_module2 = __toESM(__require("../SelectionControlButton.module-HO7BZ2UP.scss"));
|
|
39130
39451
|
var SelectAllButton = () => {
|
|
39131
39452
|
const { selectionState } = useSelectionContext();
|
|
@@ -39136,10 +39457,10 @@ ${singleLine(message)}${reset}
|
|
|
39136
39457
|
const filteredOptions = Array.from(
|
|
39137
39458
|
selectionState.collection.getKeys()
|
|
39138
39459
|
).filter((key) => !disabledOptions.includes(key));
|
|
39139
|
-
return /* @__PURE__ */
|
|
39460
|
+
return /* @__PURE__ */ import_react84.default.createElement(
|
|
39140
39461
|
"button",
|
|
39141
39462
|
{
|
|
39142
|
-
className: (0,
|
|
39463
|
+
className: (0, import_classnames43.default)(import_SelectionControlButton_module2.default.button, {
|
|
39143
39464
|
[import_SelectionControlButton_module2.default.isDisabled]: selectionState.selectionManager.isSelectAll
|
|
39144
39465
|
}),
|
|
39145
39466
|
"aria-disabled": selectionState.selectionManager.isSelectAll,
|
|
@@ -39153,7 +39474,7 @@ ${singleLine(message)}${reset}
|
|
|
39153
39474
|
};
|
|
39154
39475
|
|
|
39155
39476
|
// ../select/src/FilterMultiSelect/components/Trigger/FilterTriggerButton/FilterTriggerButton.tsx
|
|
39156
|
-
var
|
|
39477
|
+
var import_react86 = __toESM(require_react());
|
|
39157
39478
|
|
|
39158
39479
|
// ../select/src/FilterMultiSelect/utils/getTruncatedLabel/getTruncatedLabel.ts
|
|
39159
39480
|
var CONNECTOR = ", ";
|
|
@@ -39193,26 +39514,26 @@ ${singleLine(message)}${reset}
|
|
|
39193
39514
|
};
|
|
39194
39515
|
|
|
39195
39516
|
// ../select/src/FilterMultiSelect/components/Trigger/TriggerButtonBase/TriggerButtonBase.tsx
|
|
39196
|
-
var
|
|
39197
|
-
var
|
|
39517
|
+
var import_react85 = __toESM(require_react());
|
|
39518
|
+
var import_classnames44 = __toESM(require_classnames());
|
|
39198
39519
|
var import_TriggerButtonBase_module = __toESM(__require("../TriggerButtonBase.module-QFRV6YZQ.scss"));
|
|
39199
39520
|
var TriggerButtonBase = ({
|
|
39200
39521
|
children,
|
|
39201
39522
|
classNameOverride
|
|
39202
39523
|
}) => {
|
|
39203
39524
|
const { buttonProps, buttonRef: buttonRef2, menuTriggerState } = useMenuTriggerContext();
|
|
39204
|
-
return /* @__PURE__ */
|
|
39525
|
+
return /* @__PURE__ */ import_react85.default.createElement(
|
|
39205
39526
|
"button",
|
|
39206
39527
|
{
|
|
39207
39528
|
...buttonProps,
|
|
39208
39529
|
ref: buttonRef2,
|
|
39209
|
-
className: (0,
|
|
39530
|
+
className: (0, import_classnames44.default)(import_TriggerButtonBase_module.default.button, classNameOverride)
|
|
39210
39531
|
},
|
|
39211
39532
|
children,
|
|
39212
|
-
/* @__PURE__ */
|
|
39533
|
+
/* @__PURE__ */ import_react85.default.createElement(
|
|
39213
39534
|
Icon,
|
|
39214
39535
|
{
|
|
39215
|
-
icon: menuTriggerState.isOpen ? chevron_up_icon_default :
|
|
39536
|
+
icon: menuTriggerState.isOpen ? chevron_up_icon_default : chevron_down_icon_default2,
|
|
39216
39537
|
role: "presentation",
|
|
39217
39538
|
classNameOverride: import_TriggerButtonBase_module.default.icon
|
|
39218
39539
|
}
|
|
@@ -39230,7 +39551,7 @@ ${singleLine(message)}${reset}
|
|
|
39230
39551
|
labelCharacterLimitBeforeTruncate = 50
|
|
39231
39552
|
}) => {
|
|
39232
39553
|
const hasSelectedValues = selectedOptionLabels.length > 0;
|
|
39233
|
-
return /* @__PURE__ */
|
|
39554
|
+
return /* @__PURE__ */ import_react86.default.createElement(TriggerButtonBase, { classNameOverride }, /* @__PURE__ */ import_react86.default.createElement("span", { className: hasSelectedValues ? import_FilterTriggerButton_module.default.hasSelectedValues : "" }, label), hasSelectedValues && /* @__PURE__ */ import_react86.default.createElement("span", null, `: ${getTruncatedLabels(
|
|
39234
39555
|
selectedOptionLabels,
|
|
39235
39556
|
labelCharacterLimitBeforeTruncate
|
|
39236
39557
|
)}`));
|
|
@@ -39238,15 +39559,15 @@ ${singleLine(message)}${reset}
|
|
|
39238
39559
|
FilterTriggerButton.displayName = "FilterTriggerButton";
|
|
39239
39560
|
|
|
39240
39561
|
// ../select/src/FilterMultiSelect/components/Trigger/RemovableFilterTrigger/RemovableFilterTrigger.tsx
|
|
39241
|
-
var
|
|
39562
|
+
var import_react91 = __toESM(require_react());
|
|
39242
39563
|
|
|
39243
39564
|
// ../../draft-packages/tooltip/KaizenDraft/Tooltip/Tooltip.tsx
|
|
39244
|
-
var
|
|
39565
|
+
var import_react90 = __toESM(require_react());
|
|
39245
39566
|
var import_react_dom2 = __toESM(require_react_dom());
|
|
39246
|
-
var
|
|
39567
|
+
var import_classnames45 = __toESM(require_classnames());
|
|
39247
39568
|
|
|
39248
39569
|
// ../../node_modules/react-popper/lib/esm/utils.js
|
|
39249
|
-
var
|
|
39570
|
+
var React70 = __toESM(require_react());
|
|
39250
39571
|
var fromEntries = function fromEntries2(entries) {
|
|
39251
39572
|
return entries.reduce(function(acc, _ref) {
|
|
39252
39573
|
var key = _ref[0], value = _ref[1];
|
|
@@ -39254,10 +39575,10 @@ ${singleLine(message)}${reset}
|
|
|
39254
39575
|
return acc;
|
|
39255
39576
|
}, {});
|
|
39256
39577
|
};
|
|
39257
|
-
var useIsomorphicLayoutEffect = typeof window !== "undefined" && window.document && window.document.createElement ?
|
|
39578
|
+
var useIsomorphicLayoutEffect = typeof window !== "undefined" && window.document && window.document.createElement ? React70.useLayoutEffect : React70.useEffect;
|
|
39258
39579
|
|
|
39259
39580
|
// ../../node_modules/react-popper/lib/esm/usePopper.js
|
|
39260
|
-
var
|
|
39581
|
+
var React71 = __toESM(require_react());
|
|
39261
39582
|
var ReactDOM = __toESM(require_react_dom());
|
|
39262
39583
|
|
|
39263
39584
|
// ../../node_modules/@popperjs/core/lib/enums.js
|
|
@@ -40869,14 +41190,14 @@ ${singleLine(message)}${reset}
|
|
|
40869
41190
|
if (options === void 0) {
|
|
40870
41191
|
options = {};
|
|
40871
41192
|
}
|
|
40872
|
-
var prevOptions =
|
|
41193
|
+
var prevOptions = React71.useRef(null);
|
|
40873
41194
|
var optionsWithDefaults = {
|
|
40874
41195
|
onFirstUpdate: options.onFirstUpdate,
|
|
40875
41196
|
placement: options.placement || "bottom",
|
|
40876
41197
|
strategy: options.strategy || "absolute",
|
|
40877
41198
|
modifiers: options.modifiers || EMPTY_MODIFIERS
|
|
40878
41199
|
};
|
|
40879
|
-
var _React$useState =
|
|
41200
|
+
var _React$useState = React71.useState({
|
|
40880
41201
|
styles: {
|
|
40881
41202
|
popper: {
|
|
40882
41203
|
position: optionsWithDefaults.strategy,
|
|
@@ -40889,7 +41210,7 @@ ${singleLine(message)}${reset}
|
|
|
40889
41210
|
},
|
|
40890
41211
|
attributes: {}
|
|
40891
41212
|
}), state = _React$useState[0], setState = _React$useState[1];
|
|
40892
|
-
var updateStateModifier =
|
|
41213
|
+
var updateStateModifier = React71.useMemo(function() {
|
|
40893
41214
|
return {
|
|
40894
41215
|
name: "updateState",
|
|
40895
41216
|
enabled: true,
|
|
@@ -40911,7 +41232,7 @@ ${singleLine(message)}${reset}
|
|
|
40911
41232
|
requires: ["computeStyles"]
|
|
40912
41233
|
};
|
|
40913
41234
|
}, []);
|
|
40914
|
-
var popperOptions =
|
|
41235
|
+
var popperOptions = React71.useMemo(function() {
|
|
40915
41236
|
var newOptions = {
|
|
40916
41237
|
onFirstUpdate: optionsWithDefaults.onFirstUpdate,
|
|
40917
41238
|
placement: optionsWithDefaults.placement,
|
|
@@ -40928,7 +41249,7 @@ ${singleLine(message)}${reset}
|
|
|
40928
41249
|
return newOptions;
|
|
40929
41250
|
}
|
|
40930
41251
|
}, [optionsWithDefaults.onFirstUpdate, optionsWithDefaults.placement, optionsWithDefaults.strategy, optionsWithDefaults.modifiers, updateStateModifier]);
|
|
40931
|
-
var popperInstanceRef =
|
|
41252
|
+
var popperInstanceRef = React71.useRef();
|
|
40932
41253
|
useIsomorphicLayoutEffect(function() {
|
|
40933
41254
|
if (popperInstanceRef.current) {
|
|
40934
41255
|
popperInstanceRef.current.setOptions(popperOptions);
|
|
@@ -40956,13 +41277,13 @@ ${singleLine(message)}${reset}
|
|
|
40956
41277
|
};
|
|
40957
41278
|
|
|
40958
41279
|
// ../../draft-packages/tooltip/KaizenDraft/Tooltip/AppearanceAnim.tsx
|
|
40959
|
-
var
|
|
41280
|
+
var import_react88 = __toESM(require_react());
|
|
40960
41281
|
|
|
40961
41282
|
// ../../node_modules/use-debounce/dist/index.module.js
|
|
40962
|
-
var
|
|
41283
|
+
var import_react87 = __toESM(require_react());
|
|
40963
41284
|
function c(u2, e2, c2) {
|
|
40964
|
-
var i = this, a = (0,
|
|
40965
|
-
(0,
|
|
41285
|
+
var i = this, a = (0, import_react87.useRef)(null), o = (0, import_react87.useRef)(0), f = (0, import_react87.useRef)(null), l = (0, import_react87.useRef)([]), m2 = (0, import_react87.useRef)(), v = (0, import_react87.useRef)(), d = (0, import_react87.useRef)(u2), p2 = (0, import_react87.useRef)(true);
|
|
41286
|
+
(0, import_react87.useEffect)(function() {
|
|
40966
41287
|
d.current = u2;
|
|
40967
41288
|
}, [u2]);
|
|
40968
41289
|
var g = !e2 && 0 !== e2 && "undefined" != typeof window;
|
|
@@ -40970,12 +41291,12 @@ ${singleLine(message)}${reset}
|
|
|
40970
41291
|
throw new TypeError("Expected a function");
|
|
40971
41292
|
e2 = +e2 || 0;
|
|
40972
41293
|
var w = !!(c2 = c2 || {}).leading, s = !("trailing" in c2) || !!c2.trailing, x = "maxWait" in c2, y = x ? Math.max(+c2.maxWait || 0, e2) : null;
|
|
40973
|
-
(0,
|
|
41294
|
+
(0, import_react87.useEffect)(function() {
|
|
40974
41295
|
return p2.current = true, function() {
|
|
40975
41296
|
p2.current = false;
|
|
40976
41297
|
};
|
|
40977
41298
|
}, []);
|
|
40978
|
-
var h = (0,
|
|
41299
|
+
var h = (0, import_react87.useMemo)(function() {
|
|
40979
41300
|
var r3 = function(r4) {
|
|
40980
41301
|
var n3 = l.current, t3 = m2.current;
|
|
40981
41302
|
return l.current = m2.current = null, o.current = r4, v.current = d.current.apply(t3, n3);
|
|
@@ -41019,7 +41340,7 @@ ${singleLine(message)}${reset}
|
|
|
41019
41340
|
|
|
41020
41341
|
// ../../draft-packages/tooltip/KaizenDraft/Tooltip/AppearanceAnim.tsx
|
|
41021
41342
|
var ANIM_DURATION_MS = 400;
|
|
41022
|
-
var AnimationContext =
|
|
41343
|
+
var AnimationContext = import_react88.default.createContext({
|
|
41023
41344
|
isVisible: false,
|
|
41024
41345
|
isAnimIn: false,
|
|
41025
41346
|
isAnimOut: false
|
|
@@ -41029,9 +41350,9 @@ ${singleLine(message)}${reset}
|
|
|
41029
41350
|
animationDuration = ANIM_DURATION_MS,
|
|
41030
41351
|
...otherProps
|
|
41031
41352
|
}) => {
|
|
41032
|
-
const [isAnimIn, setIsAnimIn] = (0,
|
|
41033
|
-
const [isAnimOut, setIsAnimOut] = (0,
|
|
41034
|
-
const [prevIsOpen, setPrevIsOpen] = (0,
|
|
41353
|
+
const [isAnimIn, setIsAnimIn] = (0, import_react88.useState)(false);
|
|
41354
|
+
const [isAnimOut, setIsAnimOut] = (0, import_react88.useState)(false);
|
|
41355
|
+
const [prevIsOpen, setPrevIsOpen] = (0, import_react88.useState)(false);
|
|
41035
41356
|
const trackAnimOutCompleted = c(
|
|
41036
41357
|
() => {
|
|
41037
41358
|
setIsAnimOut(false);
|
|
@@ -41058,7 +41379,7 @@ ${singleLine(message)}${reset}
|
|
|
41058
41379
|
trackAnimInCompleted();
|
|
41059
41380
|
}
|
|
41060
41381
|
}
|
|
41061
|
-
return /* @__PURE__ */
|
|
41382
|
+
return /* @__PURE__ */ import_react88.default.createElement(
|
|
41062
41383
|
AnimationContext.Provider,
|
|
41063
41384
|
{
|
|
41064
41385
|
value: {
|
|
@@ -41071,7 +41392,7 @@ ${singleLine(message)}${reset}
|
|
|
41071
41392
|
);
|
|
41072
41393
|
};
|
|
41073
41394
|
var useAnimation = () => {
|
|
41074
|
-
const context =
|
|
41395
|
+
const context = import_react88.default.useContext(AnimationContext);
|
|
41075
41396
|
if (!context) {
|
|
41076
41397
|
throw new Error("useAnimation must be used within a AnimationProvider");
|
|
41077
41398
|
}
|
|
@@ -41079,8 +41400,8 @@ ${singleLine(message)}${reset}
|
|
|
41079
41400
|
};
|
|
41080
41401
|
|
|
41081
41402
|
// ../../draft-packages/tooltip/KaizenDraft/Tooltip/useUuid.ts
|
|
41082
|
-
var
|
|
41083
|
-
var useUuid = () => (0,
|
|
41403
|
+
var import_react89 = __toESM(require_react());
|
|
41404
|
+
var useUuid = () => (0, import_react89.useMemo)(() => v4_default(), []);
|
|
41084
41405
|
|
|
41085
41406
|
// ../../draft-packages/tooltip/KaizenDraft/Tooltip/Tooltip.tsx
|
|
41086
41407
|
var import_Tooltip_module = __toESM(__require("../Tooltip.module-YU7VOTNZ.scss"));
|
|
@@ -41099,10 +41420,10 @@ ${singleLine(message)}${reset}
|
|
|
41099
41420
|
tooltipId,
|
|
41100
41421
|
mood = "default"
|
|
41101
41422
|
}) => {
|
|
41102
|
-
const [popperElement, setPopperElement] = (0,
|
|
41423
|
+
const [popperElement, setPopperElement] = (0, import_react90.useState)(
|
|
41103
41424
|
null
|
|
41104
41425
|
);
|
|
41105
|
-
const [arrowElement, setArrowElement] = (0,
|
|
41426
|
+
const [arrowElement, setArrowElement] = (0, import_react90.useState)(null);
|
|
41106
41427
|
const { styles: popperStyles, attributes } = usePopper(
|
|
41107
41428
|
referenceElement,
|
|
41108
41429
|
popperElement,
|
|
@@ -41147,11 +41468,11 @@ ${singleLine(message)}${reset}
|
|
|
41147
41468
|
}
|
|
41148
41469
|
);
|
|
41149
41470
|
const { isVisible, isAnimIn, isAnimOut } = useAnimation();
|
|
41150
|
-
return isVisible || isAnimOut || isAnimIn ? /* @__PURE__ */
|
|
41471
|
+
return isVisible || isAnimOut || isAnimIn ? /* @__PURE__ */ import_react90.default.createElement(
|
|
41151
41472
|
"div",
|
|
41152
41473
|
{
|
|
41153
41474
|
ref: setPopperElement,
|
|
41154
|
-
className: (0,
|
|
41475
|
+
className: (0, import_classnames45.default)({
|
|
41155
41476
|
[import_Tooltip_module.default.tooltip]: true
|
|
41156
41477
|
}),
|
|
41157
41478
|
style: popperStyles.popper,
|
|
@@ -41159,17 +41480,17 @@ ${singleLine(message)}${reset}
|
|
|
41159
41480
|
role: "tooltip",
|
|
41160
41481
|
id: tooltipId
|
|
41161
41482
|
},
|
|
41162
|
-
/* @__PURE__ */
|
|
41163
|
-
/* @__PURE__ */
|
|
41483
|
+
/* @__PURE__ */ import_react90.default.createElement("div", { className: (0, import_classnames45.default)(import_Tooltip_module.default.tooltipContent, import_Tooltip_module.default[mood]) }, text),
|
|
41484
|
+
/* @__PURE__ */ import_react90.default.createElement(
|
|
41164
41485
|
"div",
|
|
41165
41486
|
{
|
|
41166
41487
|
ref: setArrowElement,
|
|
41167
|
-
className: (0,
|
|
41488
|
+
className: (0, import_classnames45.default)({
|
|
41168
41489
|
[import_Tooltip_module.default.arrow]: true
|
|
41169
41490
|
}),
|
|
41170
41491
|
style: popperStyles.arrow
|
|
41171
41492
|
},
|
|
41172
|
-
/* @__PURE__ */
|
|
41493
|
+
/* @__PURE__ */ import_react90.default.createElement("div", { className: import_Tooltip_module.default.arrowInner }, /* @__PURE__ */ import_react90.default.createElement("div", { className: (0, import_classnames45.default)(import_Tooltip_module.default.arrowMain, import_Tooltip_module.default[mood]) }), /* @__PURE__ */ import_react90.default.createElement("div", { className: import_Tooltip_module.default.arrowShadow }))
|
|
41173
41494
|
)
|
|
41174
41495
|
) : null;
|
|
41175
41496
|
};
|
|
@@ -41185,12 +41506,12 @@ ${singleLine(message)}${reset}
|
|
|
41185
41506
|
isInitiallyVisible = false,
|
|
41186
41507
|
mood = "default"
|
|
41187
41508
|
}) => {
|
|
41188
|
-
const [isHover, setIsHover] = (0,
|
|
41189
|
-
const [isFocus, setIsFocus] = (0,
|
|
41190
|
-
const [referenceElement, setReferenceElement] = (0,
|
|
41509
|
+
const [isHover, setIsHover] = (0, import_react90.useState)(isInitiallyVisible);
|
|
41510
|
+
const [isFocus, setIsFocus] = (0, import_react90.useState)(false);
|
|
41511
|
+
const [referenceElement, setReferenceElement] = (0, import_react90.useState)(null);
|
|
41191
41512
|
const tooltipId = useUuid();
|
|
41192
41513
|
const displayToUse = inline != null ? inline ? "inline" : "block" : display;
|
|
41193
|
-
const tooltip = /* @__PURE__ */
|
|
41514
|
+
const tooltip = /* @__PURE__ */ import_react90.default.createElement(
|
|
41194
41515
|
TooltipContent,
|
|
41195
41516
|
{
|
|
41196
41517
|
text,
|
|
@@ -41200,28 +41521,28 @@ ${singleLine(message)}${reset}
|
|
|
41200
41521
|
mood
|
|
41201
41522
|
}
|
|
41202
41523
|
);
|
|
41203
|
-
const portalSelectorElementRef = (0,
|
|
41204
|
-
(0,
|
|
41524
|
+
const portalSelectorElementRef = (0, import_react90.useRef)(null);
|
|
41525
|
+
(0, import_react90.useEffect)(() => {
|
|
41205
41526
|
portalSelectorElementRef.current = portalSelector ? document.querySelector(portalSelector) : null;
|
|
41206
41527
|
}, [portalSelector]);
|
|
41207
|
-
(0,
|
|
41528
|
+
(0, import_react90.useEffect)(() => {
|
|
41208
41529
|
if (portalSelector && !portalSelectorElementRef.current) {
|
|
41209
41530
|
console.warn(
|
|
41210
41531
|
"The portal could not be created using the selector: " + portalSelector
|
|
41211
41532
|
);
|
|
41212
41533
|
}
|
|
41213
41534
|
}, [portalSelectorElementRef, portalSelector]);
|
|
41214
|
-
return /* @__PURE__ */
|
|
41535
|
+
return /* @__PURE__ */ import_react90.default.createElement(
|
|
41215
41536
|
AnimationProvider,
|
|
41216
41537
|
{
|
|
41217
41538
|
isVisible: isHover || isFocus,
|
|
41218
41539
|
animationDuration
|
|
41219
41540
|
},
|
|
41220
|
-
/* @__PURE__ */
|
|
41541
|
+
/* @__PURE__ */ import_react90.default.createElement(import_react90.default.Fragment, null, /* @__PURE__ */ import_react90.default.createElement(
|
|
41221
41542
|
"div",
|
|
41222
41543
|
{
|
|
41223
41544
|
ref: setReferenceElement,
|
|
41224
|
-
className: (0,
|
|
41545
|
+
className: (0, import_classnames45.default)(classNameOverride, {
|
|
41225
41546
|
[import_Tooltip_module.default.displayInline]: displayToUse === "inline",
|
|
41226
41547
|
[import_Tooltip_module.default.displayBlock]: displayToUse === "block",
|
|
41227
41548
|
[import_Tooltip_module.default.displayInlineBlock]: displayToUse === "inline-block",
|
|
@@ -41250,20 +41571,20 @@ ${singleLine(message)}${reset}
|
|
|
41250
41571
|
...filterTriggerProps
|
|
41251
41572
|
}) => {
|
|
41252
41573
|
const removeButtonLabel = `Remove filter - ${filterTriggerProps.label}`;
|
|
41253
|
-
return /* @__PURE__ */
|
|
41574
|
+
return /* @__PURE__ */ import_react91.default.createElement("div", { className: import_RemovableFilterTrigger_module.default.trigger }, /* @__PURE__ */ import_react91.default.createElement(
|
|
41254
41575
|
FilterTriggerButton,
|
|
41255
41576
|
{
|
|
41256
41577
|
classNameOverride: import_RemovableFilterTrigger_module.default.triggerButton,
|
|
41257
41578
|
...filterTriggerProps
|
|
41258
41579
|
}
|
|
41259
|
-
), /* @__PURE__ */
|
|
41580
|
+
), /* @__PURE__ */ import_react91.default.createElement("div", { className: import_RemovableFilterTrigger_module.default.divider }), /* @__PURE__ */ import_react91.default.createElement(Tooltip_default, { text: removeButtonLabel, position: "below" }, /* @__PURE__ */ import_react91.default.createElement(
|
|
41260
41581
|
"button",
|
|
41261
41582
|
{
|
|
41262
41583
|
className: import_RemovableFilterTrigger_module.default.removeButton,
|
|
41263
41584
|
"aria-label": removeButtonLabel,
|
|
41264
41585
|
onClick: onRemove
|
|
41265
41586
|
},
|
|
41266
|
-
/* @__PURE__ */
|
|
41587
|
+
/* @__PURE__ */ import_react91.default.createElement(Icon, { icon: clear_icon_default, role: "presentation" })
|
|
41267
41588
|
)));
|
|
41268
41589
|
};
|
|
41269
41590
|
RemovableFilterTrigger.displayName = "RemovableFilterTrigger";
|
|
@@ -41289,30 +41610,30 @@ ${singleLine(message)}${reset}
|
|
|
41289
41610
|
FilterMultiSelect.displayName = "FilterMultiSelect";
|
|
41290
41611
|
|
|
41291
41612
|
// ../tabs/src/Tab.tsx
|
|
41292
|
-
var
|
|
41613
|
+
var import_react106 = __toESM(require_react());
|
|
41293
41614
|
|
|
41294
41615
|
// ../../node_modules/@reach/tabs/dist/reach-tabs.mjs
|
|
41295
|
-
var
|
|
41616
|
+
var React78 = __toESM(require_react(), 1);
|
|
41296
41617
|
|
|
41297
41618
|
// ../../node_modules/@reach/descendants/dist/reach-descendants.mjs
|
|
41298
|
-
var
|
|
41619
|
+
var React76 = __toESM(require_react(), 1);
|
|
41299
41620
|
|
|
41300
41621
|
// ../../node_modules/@reach/utils/dist/reach-utils.mjs
|
|
41301
|
-
var import_react83 = __toESM(require_react(), 1);
|
|
41302
|
-
var import_react84 = __toESM(require_react(), 1);
|
|
41303
|
-
var React66 = __toESM(require_react(), 1);
|
|
41304
|
-
var import_react85 = __toESM(require_react(), 1);
|
|
41305
|
-
var import_react86 = __toESM(require_react(), 1);
|
|
41306
|
-
var import_react87 = __toESM(require_react(), 1);
|
|
41307
|
-
var import_react88 = __toESM(require_react(), 1);
|
|
41308
|
-
var import_react89 = __toESM(require_react(), 1);
|
|
41309
|
-
var import_react90 = __toESM(require_react(), 1);
|
|
41310
|
-
var import_react91 = __toESM(require_react(), 1);
|
|
41311
41622
|
var import_react92 = __toESM(require_react(), 1);
|
|
41312
41623
|
var import_react93 = __toESM(require_react(), 1);
|
|
41624
|
+
var React75 = __toESM(require_react(), 1);
|
|
41313
41625
|
var import_react94 = __toESM(require_react(), 1);
|
|
41314
41626
|
var import_react95 = __toESM(require_react(), 1);
|
|
41315
41627
|
var import_react96 = __toESM(require_react(), 1);
|
|
41628
|
+
var import_react97 = __toESM(require_react(), 1);
|
|
41629
|
+
var import_react98 = __toESM(require_react(), 1);
|
|
41630
|
+
var import_react99 = __toESM(require_react(), 1);
|
|
41631
|
+
var import_react100 = __toESM(require_react(), 1);
|
|
41632
|
+
var import_react101 = __toESM(require_react(), 1);
|
|
41633
|
+
var import_react102 = __toESM(require_react(), 1);
|
|
41634
|
+
var import_react103 = __toESM(require_react(), 1);
|
|
41635
|
+
var import_react104 = __toESM(require_react(), 1);
|
|
41636
|
+
var import_react105 = __toESM(require_react(), 1);
|
|
41316
41637
|
function canUseDOM() {
|
|
41317
41638
|
return !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
41318
41639
|
}
|
|
@@ -41344,7 +41665,7 @@ ${singleLine(message)}${reset}
|
|
|
41344
41665
|
}
|
|
41345
41666
|
}
|
|
41346
41667
|
function useComposedRefs(...refs) {
|
|
41347
|
-
return (0,
|
|
41668
|
+
return (0, import_react93.useCallback)((node) => {
|
|
41348
41669
|
for (let ref of refs) {
|
|
41349
41670
|
assignRef(ref, node);
|
|
41350
41671
|
}
|
|
@@ -41369,16 +41690,16 @@ ${singleLine(message)}${reset}
|
|
|
41369
41690
|
return ((_a = getComputedStyles(element)) == null ? void 0 : _a.getPropertyValue(styleProp)) || null;
|
|
41370
41691
|
}
|
|
41371
41692
|
function createContext2(rootComponentName, defaultContext) {
|
|
41372
|
-
let Ctx =
|
|
41693
|
+
let Ctx = React75.createContext(defaultContext);
|
|
41373
41694
|
function Provider(props) {
|
|
41374
41695
|
let { children, ...context } = props;
|
|
41375
|
-
let value =
|
|
41376
|
-
return /* @__PURE__ */
|
|
41696
|
+
let value = React75.useMemo(() => context, Object.values(context));
|
|
41697
|
+
return /* @__PURE__ */ React75.createElement(Ctx.Provider, {
|
|
41377
41698
|
value
|
|
41378
41699
|
}, children);
|
|
41379
41700
|
}
|
|
41380
41701
|
function useContext22(callerComponentName) {
|
|
41381
|
-
let context =
|
|
41702
|
+
let context = React75.useContext(Ctx);
|
|
41382
41703
|
if (context) {
|
|
41383
41704
|
return context;
|
|
41384
41705
|
}
|
|
@@ -41402,7 +41723,7 @@ ${singleLine(message)}${reset}
|
|
|
41402
41723
|
calledFrom = "A component"
|
|
41403
41724
|
}) {
|
|
41404
41725
|
let wasControlled = controlledValue !== void 0;
|
|
41405
|
-
let isControlledRef = (0,
|
|
41726
|
+
let isControlledRef = (0, import_react96.useRef)(wasControlled);
|
|
41406
41727
|
if (true) {
|
|
41407
41728
|
if (!isControlledRef.current && wasControlled) {
|
|
41408
41729
|
console.warn(`${calledFrom} is changing from controlled to uncontrolled. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`);
|
|
@@ -41411,8 +41732,8 @@ ${singleLine(message)}${reset}
|
|
|
41411
41732
|
console.warn(`${calledFrom} is changing from uncontrolled to controlled. Components should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`);
|
|
41412
41733
|
}
|
|
41413
41734
|
}
|
|
41414
|
-
let [valueState, setValue] = (0,
|
|
41415
|
-
let set = (0,
|
|
41735
|
+
let [valueState, setValue] = (0, import_react96.useState)(isControlledRef.current ? controlledValue : defaultValue);
|
|
41736
|
+
let set = (0, import_react96.useCallback)((n2) => {
|
|
41416
41737
|
if (!isControlledRef.current) {
|
|
41417
41738
|
setValue(n2);
|
|
41418
41739
|
}
|
|
@@ -41420,15 +41741,15 @@ ${singleLine(message)}${reset}
|
|
|
41420
41741
|
return [isControlledRef.current ? controlledValue : valueState, set];
|
|
41421
41742
|
}
|
|
41422
41743
|
function useForceUpdate() {
|
|
41423
|
-
let [, dispatch] = (0,
|
|
41424
|
-
return (0,
|
|
41744
|
+
let [, dispatch] = (0, import_react99.useState)(/* @__PURE__ */ Object.create(null));
|
|
41745
|
+
return (0, import_react99.useCallback)(() => {
|
|
41425
41746
|
dispatch(/* @__PURE__ */ Object.create(null));
|
|
41426
41747
|
}, []);
|
|
41427
41748
|
}
|
|
41428
|
-
var useIsomorphicLayoutEffect2 = canUseDOM() ?
|
|
41749
|
+
var useIsomorphicLayoutEffect2 = canUseDOM() ? import_react100.useLayoutEffect : import_react100.useEffect;
|
|
41429
41750
|
function useStatefulRefValue(ref, initialState) {
|
|
41430
|
-
let [state, setState] = (0,
|
|
41431
|
-
let callbackRef = (0,
|
|
41751
|
+
let [state, setState] = (0, import_react104.useState)(initialState);
|
|
41752
|
+
let callbackRef = (0, import_react104.useCallback)((refValue) => {
|
|
41432
41753
|
ref.current = refValue;
|
|
41433
41754
|
setState(refValue);
|
|
41434
41755
|
}, []);
|
|
@@ -41438,7 +41759,7 @@ ${singleLine(message)}${reset}
|
|
|
41438
41759
|
// ../../node_modules/@reach/descendants/dist/reach-descendants.mjs
|
|
41439
41760
|
function createDescendantContext(name, initialValue = {}) {
|
|
41440
41761
|
const descendants = [];
|
|
41441
|
-
let ctx =
|
|
41762
|
+
let ctx = React76.createContext({
|
|
41442
41763
|
descendants,
|
|
41443
41764
|
registerDescendant: () => noop,
|
|
41444
41765
|
...initialValue
|
|
@@ -41448,7 +41769,7 @@ ${singleLine(message)}${reset}
|
|
|
41448
41769
|
}
|
|
41449
41770
|
function useDescendant(descendant, context, indexProp) {
|
|
41450
41771
|
let forceUpdate = useForceUpdate();
|
|
41451
|
-
let { registerDescendant, descendants } =
|
|
41772
|
+
let { registerDescendant, descendants } = React76.useContext(context);
|
|
41452
41773
|
let index = indexProp ?? descendants.findIndex((item) => item.element === descendant.element);
|
|
41453
41774
|
useIsomorphicLayoutEffect2(() => {
|
|
41454
41775
|
if (!descendant.element)
|
|
@@ -41464,10 +41785,10 @@ ${singleLine(message)}${reset}
|
|
|
41464
41785
|
return index;
|
|
41465
41786
|
}
|
|
41466
41787
|
function useDescendantsInit() {
|
|
41467
|
-
return
|
|
41788
|
+
return React76.useState([]);
|
|
41468
41789
|
}
|
|
41469
41790
|
function useDescendants(ctx) {
|
|
41470
|
-
return
|
|
41791
|
+
return React76.useContext(ctx).descendants;
|
|
41471
41792
|
}
|
|
41472
41793
|
function DescendantProvider({
|
|
41473
41794
|
context: Ctx,
|
|
@@ -41475,7 +41796,7 @@ ${singleLine(message)}${reset}
|
|
|
41475
41796
|
items,
|
|
41476
41797
|
set
|
|
41477
41798
|
}) {
|
|
41478
|
-
let registerDescendant =
|
|
41799
|
+
let registerDescendant = React76.useCallback(({
|
|
41479
41800
|
element,
|
|
41480
41801
|
index: explicitIndex,
|
|
41481
41802
|
...rest
|
|
@@ -41513,8 +41834,8 @@ ${singleLine(message)}${reset}
|
|
|
41513
41834
|
set((items2) => items2.filter((item) => element !== item.element));
|
|
41514
41835
|
};
|
|
41515
41836
|
}, []);
|
|
41516
|
-
return /* @__PURE__ */
|
|
41517
|
-
value:
|
|
41837
|
+
return /* @__PURE__ */ React76.createElement(Ctx.Provider, {
|
|
41838
|
+
value: React76.useMemo(() => {
|
|
41518
41839
|
return {
|
|
41519
41840
|
descendants: items,
|
|
41520
41841
|
registerDescendant
|
|
@@ -41523,7 +41844,7 @@ ${singleLine(message)}${reset}
|
|
|
41523
41844
|
}, children);
|
|
41524
41845
|
}
|
|
41525
41846
|
function useDescendantKeyDown(context, options) {
|
|
41526
|
-
let { descendants } =
|
|
41847
|
+
let { descendants } = React76.useContext(context);
|
|
41527
41848
|
let {
|
|
41528
41849
|
callback,
|
|
41529
41850
|
currentIndex,
|
|
@@ -41648,26 +41969,26 @@ ${singleLine(message)}${reset}
|
|
|
41648
41969
|
}
|
|
41649
41970
|
|
|
41650
41971
|
// ../../node_modules/@reach/auto-id/dist/reach-auto-id.mjs
|
|
41651
|
-
var
|
|
41972
|
+
var React77 = __toESM(require_react(), 1);
|
|
41652
41973
|
var serverHandoffComplete = false;
|
|
41653
41974
|
var id = 0;
|
|
41654
41975
|
function genId() {
|
|
41655
41976
|
return ++id;
|
|
41656
41977
|
}
|
|
41657
|
-
var maybeReactUseId =
|
|
41978
|
+
var maybeReactUseId = React77["useId".toString()];
|
|
41658
41979
|
function useId(providedId) {
|
|
41659
41980
|
if (maybeReactUseId !== void 0) {
|
|
41660
41981
|
let generatedId = maybeReactUseId();
|
|
41661
41982
|
return providedId ?? generatedId;
|
|
41662
41983
|
}
|
|
41663
41984
|
let initialId = providedId ?? (serverHandoffComplete ? genId() : null);
|
|
41664
|
-
let [id2, setId] =
|
|
41985
|
+
let [id2, setId] = React77.useState(initialId);
|
|
41665
41986
|
useIsomorphicLayoutEffect2(() => {
|
|
41666
41987
|
if (id2 === null) {
|
|
41667
41988
|
setId(genId());
|
|
41668
41989
|
}
|
|
41669
41990
|
}, []);
|
|
41670
|
-
|
|
41991
|
+
React77.useEffect(() => {
|
|
41671
41992
|
if (serverHandoffComplete === false) {
|
|
41672
41993
|
serverHandoffComplete = true;
|
|
41673
41994
|
}
|
|
@@ -41684,7 +42005,7 @@ ${singleLine(message)}${reset}
|
|
|
41684
42005
|
TabsKeyboardActivation2["Manual"] = "manual";
|
|
41685
42006
|
return TabsKeyboardActivation2;
|
|
41686
42007
|
})(TabsKeyboardActivation || {});
|
|
41687
|
-
var Tabs =
|
|
42008
|
+
var Tabs = React78.forwardRef(({
|
|
41688
42009
|
as: Comp = "div",
|
|
41689
42010
|
children,
|
|
41690
42011
|
defaultIndex,
|
|
@@ -41695,27 +42016,27 @@ ${singleLine(message)}${reset}
|
|
|
41695
42016
|
readOnly = false,
|
|
41696
42017
|
...props
|
|
41697
42018
|
}, ref) => {
|
|
41698
|
-
let { current: isControlled } =
|
|
42019
|
+
let { current: isControlled } = React78.useRef(controlledIndex !== void 0);
|
|
41699
42020
|
let id2 = useId(props.id || "tabs");
|
|
41700
|
-
let selectedPanelRef =
|
|
41701
|
-
let isRTL =
|
|
42021
|
+
let selectedPanelRef = React78.useRef(null);
|
|
42022
|
+
let isRTL = React78.useRef(false);
|
|
41702
42023
|
let [selectedIndex, setSelectedIndex] = useControlledState({
|
|
41703
42024
|
controlledValue: controlledIndex,
|
|
41704
42025
|
defaultValue: defaultIndex ?? 0,
|
|
41705
42026
|
calledFrom: "Tabs"
|
|
41706
42027
|
});
|
|
41707
|
-
let [focusedIndex, setFocusedIndex] =
|
|
42028
|
+
let [focusedIndex, setFocusedIndex] = React78.useState(-1);
|
|
41708
42029
|
let [tabs, setTabs] = useDescendantsInit();
|
|
41709
|
-
let onFocusPanel =
|
|
42030
|
+
let onFocusPanel = React78.useCallback(() => {
|
|
41710
42031
|
if (selectedPanelRef.current && isFunction(selectedPanelRef.current.focus)) {
|
|
41711
42032
|
selectedPanelRef.current.focus();
|
|
41712
42033
|
}
|
|
41713
42034
|
}, []);
|
|
41714
|
-
let onSelectTab =
|
|
42035
|
+
let onSelectTab = React78.useCallback((index) => {
|
|
41715
42036
|
onChange && onChange(index);
|
|
41716
42037
|
setSelectedIndex(index);
|
|
41717
42038
|
}, [onChange, setSelectedIndex]);
|
|
41718
|
-
let onSelectTabWithKeyboard =
|
|
42039
|
+
let onSelectTabWithKeyboard = React78.useCallback((index) => {
|
|
41719
42040
|
var _a;
|
|
41720
42041
|
let tabElement = (_a = tabs[index]) == null ? void 0 : _a.element;
|
|
41721
42042
|
let doc = getOwnerDocument(tabElement);
|
|
@@ -41727,11 +42048,11 @@ ${singleLine(message)}${reset}
|
|
|
41727
42048
|
tabElement.focus();
|
|
41728
42049
|
}
|
|
41729
42050
|
}, [keyboardActivation, onChange, setSelectedIndex, tabs]);
|
|
41730
|
-
return /* @__PURE__ */
|
|
42051
|
+
return /* @__PURE__ */ React78.createElement(DescendantProvider, {
|
|
41731
42052
|
context: TabsDescendantsContext,
|
|
41732
42053
|
items: tabs,
|
|
41733
42054
|
set: setTabs
|
|
41734
|
-
}, /* @__PURE__ */
|
|
42055
|
+
}, /* @__PURE__ */ React78.createElement(TabsProvider, {
|
|
41735
42056
|
focusedIndex,
|
|
41736
42057
|
id: id2,
|
|
41737
42058
|
isControlled,
|
|
@@ -41745,7 +42066,7 @@ ${singleLine(message)}${reset}
|
|
|
41745
42066
|
selectedPanelRef,
|
|
41746
42067
|
setFocusedIndex,
|
|
41747
42068
|
setSelectedIndex
|
|
41748
|
-
}, /* @__PURE__ */
|
|
42069
|
+
}, /* @__PURE__ */ React78.createElement(Comp, {
|
|
41749
42070
|
...props,
|
|
41750
42071
|
ref,
|
|
41751
42072
|
"data-reach-tabs": "",
|
|
@@ -41754,7 +42075,7 @@ ${singleLine(message)}${reset}
|
|
|
41754
42075
|
}, isFunction(children) ? children({ focusedIndex, id: id2, selectedIndex }) : children)));
|
|
41755
42076
|
});
|
|
41756
42077
|
Tabs.displayName = "Tabs";
|
|
41757
|
-
var TabListImpl =
|
|
42078
|
+
var TabListImpl = React78.forwardRef(({ children, as: Comp = "div", onKeyDown, ...props }, forwardedRef) => {
|
|
41758
42079
|
let {
|
|
41759
42080
|
focusedIndex,
|
|
41760
42081
|
isControlled,
|
|
@@ -41766,9 +42087,9 @@ ${singleLine(message)}${reset}
|
|
|
41766
42087
|
setSelectedIndex
|
|
41767
42088
|
} = useTabsCtx("TabList");
|
|
41768
42089
|
let tabs = useDescendants(TabsDescendantsContext);
|
|
41769
|
-
let ownRef =
|
|
42090
|
+
let ownRef = React78.useRef(null);
|
|
41770
42091
|
let ref = useComposedRefs(forwardedRef, ownRef);
|
|
41771
|
-
|
|
42092
|
+
React78.useEffect(() => {
|
|
41772
42093
|
if (ownRef.current && (ownRef.current.ownerDocument && ownRef.current.ownerDocument.dir === "rtl" || getComputedStyle3(ownRef.current, "direction") === "rtl")) {
|
|
41773
42094
|
isRTL.current = true;
|
|
41774
42095
|
}
|
|
@@ -41790,7 +42111,7 @@ ${singleLine(message)}${reset}
|
|
|
41790
42111
|
}
|
|
41791
42112
|
}
|
|
41792
42113
|
}, [tabs, isControlled, selectedIndex, setSelectedIndex]);
|
|
41793
|
-
return /* @__PURE__ */
|
|
42114
|
+
return /* @__PURE__ */ React78.createElement(Comp, {
|
|
41794
42115
|
role: "tablist",
|
|
41795
42116
|
"aria-orientation": orientation,
|
|
41796
42117
|
...props,
|
|
@@ -41800,9 +42121,9 @@ ${singleLine(message)}${reset}
|
|
|
41800
42121
|
}, children);
|
|
41801
42122
|
});
|
|
41802
42123
|
TabListImpl.displayName = "TabList";
|
|
41803
|
-
var TabList =
|
|
42124
|
+
var TabList = React78.memo(TabListImpl);
|
|
41804
42125
|
TabList.displayName = "TabList";
|
|
41805
|
-
var Tab =
|
|
42126
|
+
var Tab = React78.forwardRef(({
|
|
41806
42127
|
isSelected: _,
|
|
41807
42128
|
children,
|
|
41808
42129
|
as: Comp = "button",
|
|
@@ -41819,10 +42140,10 @@ ${singleLine(message)}${reset}
|
|
|
41819
42140
|
selectedIndex,
|
|
41820
42141
|
setFocusedIndex
|
|
41821
42142
|
} = useTabsCtx("Tab");
|
|
41822
|
-
let ownRef =
|
|
42143
|
+
let ownRef = React78.useRef(null);
|
|
41823
42144
|
let [element, handleRefSet] = useStatefulRefValue(ownRef, null);
|
|
41824
42145
|
let ref = useComposedRefs(forwardedRef, handleRefSet);
|
|
41825
|
-
let descendant =
|
|
42146
|
+
let descendant = React78.useMemo(() => {
|
|
41826
42147
|
return {
|
|
41827
42148
|
element,
|
|
41828
42149
|
disabled: !!disabled
|
|
@@ -41834,7 +42155,7 @@ ${singleLine(message)}${reset}
|
|
|
41834
42155
|
function onSelect() {
|
|
41835
42156
|
onSelectTab(index);
|
|
41836
42157
|
}
|
|
41837
|
-
return /* @__PURE__ */
|
|
42158
|
+
return /* @__PURE__ */ React78.createElement(Comp, {
|
|
41838
42159
|
"aria-controls": makeId(tabsId, "panel", index),
|
|
41839
42160
|
"aria-disabled": disabled,
|
|
41840
42161
|
"aria-selected": isSelected,
|
|
@@ -41858,24 +42179,24 @@ ${singleLine(message)}${reset}
|
|
|
41858
42179
|
}, children);
|
|
41859
42180
|
});
|
|
41860
42181
|
Tab.displayName = "Tab";
|
|
41861
|
-
var TabPanelsImpl =
|
|
41862
|
-
let ownRef =
|
|
42182
|
+
var TabPanelsImpl = React78.forwardRef(({ children, as: Comp = "div", ...props }, forwardedRef) => {
|
|
42183
|
+
let ownRef = React78.useRef();
|
|
41863
42184
|
let ref = useComposedRefs(ownRef, forwardedRef);
|
|
41864
42185
|
let [tabPanels, setTabPanels] = useDescendantsInit();
|
|
41865
|
-
return /* @__PURE__ */
|
|
42186
|
+
return /* @__PURE__ */ React78.createElement(DescendantProvider, {
|
|
41866
42187
|
context: TabPanelDescendantsContext,
|
|
41867
42188
|
items: tabPanels,
|
|
41868
42189
|
set: setTabPanels
|
|
41869
|
-
}, /* @__PURE__ */
|
|
42190
|
+
}, /* @__PURE__ */ React78.createElement(Comp, {
|
|
41870
42191
|
...props,
|
|
41871
42192
|
ref,
|
|
41872
42193
|
"data-reach-tab-panels": ""
|
|
41873
42194
|
}, children));
|
|
41874
42195
|
});
|
|
41875
42196
|
TabPanelsImpl.displayName = "TabPanels";
|
|
41876
|
-
var TabPanels =
|
|
42197
|
+
var TabPanels = React78.memo(TabPanelsImpl);
|
|
41877
42198
|
TabPanels.displayName = "TabPanels";
|
|
41878
|
-
var TabPanel =
|
|
42199
|
+
var TabPanel = React78.forwardRef(({
|
|
41879
42200
|
children,
|
|
41880
42201
|
"aria-label": ariaLabel,
|
|
41881
42202
|
as: Comp = "div",
|
|
@@ -41887,19 +42208,19 @@ ${singleLine(message)}${reset}
|
|
|
41887
42208
|
selectedIndex,
|
|
41888
42209
|
id: tabsId
|
|
41889
42210
|
} = useTabsCtx("TabPanel");
|
|
41890
|
-
let ownRef =
|
|
42211
|
+
let ownRef = React78.useRef(null);
|
|
41891
42212
|
let [element, handleRefSet] = useStatefulRefValue(ownRef, null);
|
|
41892
|
-
let descendant =
|
|
42213
|
+
let descendant = React78.useMemo(() => ({ element }), [element]);
|
|
41893
42214
|
let index = useDescendant(descendant, TabPanelDescendantsContext, indexProp);
|
|
41894
42215
|
let id2 = makeId(tabsId, "panel", index);
|
|
41895
42216
|
let isSelected = index === selectedIndex;
|
|
41896
|
-
let readyToHide =
|
|
42217
|
+
let readyToHide = React78.useRef(false);
|
|
41897
42218
|
let hidden = readyToHide.current ? !isSelected : false;
|
|
41898
|
-
|
|
42219
|
+
React78.useEffect(() => {
|
|
41899
42220
|
readyToHide.current = true;
|
|
41900
42221
|
}, []);
|
|
41901
42222
|
let ref = useComposedRefs(forwardedRef, handleRefSet, isSelected ? selectedPanelRef : null);
|
|
41902
|
-
return /* @__PURE__ */
|
|
42223
|
+
return /* @__PURE__ */ React78.createElement(Comp, {
|
|
41903
42224
|
"aria-labelledby": makeId(tabsId, "tab", index),
|
|
41904
42225
|
hidden,
|
|
41905
42226
|
role: "tabpanel",
|
|
@@ -41916,12 +42237,12 @@ ${singleLine(message)}${reset}
|
|
|
41916
42237
|
}
|
|
41917
42238
|
|
|
41918
42239
|
// ../tabs/src/Tab.tsx
|
|
41919
|
-
var
|
|
42240
|
+
var import_classnames46 = __toESM(require_classnames());
|
|
41920
42241
|
var import_Tab_module = __toESM(__require("../Tab.module-4S535DQG.scss"));
|
|
41921
42242
|
var Tab2 = (props) => {
|
|
41922
42243
|
const { isSelected, badge, disabled, children } = props;
|
|
41923
|
-
const [isHovered, setIsHovered] = (0,
|
|
41924
|
-
const [isFocused, setIsFocused] = (0,
|
|
42244
|
+
const [isHovered, setIsHovered] = (0, import_react106.useState)(false);
|
|
42245
|
+
const [isFocused, setIsFocused] = (0, import_react106.useState)(false);
|
|
41925
42246
|
const showActiveBadge = isSelected || isHovered || isFocused;
|
|
41926
42247
|
const onFocus = (event) => {
|
|
41927
42248
|
var _a;
|
|
@@ -41933,32 +42254,32 @@ ${singleLine(message)}${reset}
|
|
|
41933
42254
|
setIsFocused(false);
|
|
41934
42255
|
(_a = props.onBlur) == null ? void 0 : _a.call(props, event);
|
|
41935
42256
|
};
|
|
41936
|
-
return /* @__PURE__ */
|
|
42257
|
+
return /* @__PURE__ */ import_react106.default.createElement(
|
|
41937
42258
|
Tab,
|
|
41938
42259
|
{
|
|
41939
42260
|
disabled,
|
|
41940
|
-
className: (0,
|
|
42261
|
+
className: (0, import_classnames46.default)(import_Tab_module.default.tab, { [import_Tab_module.default.selected]: isSelected }),
|
|
41941
42262
|
onFocus,
|
|
41942
42263
|
onBlur,
|
|
41943
42264
|
onMouseEnter: () => setIsHovered(true),
|
|
41944
42265
|
onMouseLeave: () => setIsHovered(false)
|
|
41945
42266
|
},
|
|
41946
42267
|
children,
|
|
41947
|
-
badge && /* @__PURE__ */
|
|
42268
|
+
badge && /* @__PURE__ */ import_react106.default.createElement("span", { className: import_Tab_module.default.badge }, /* @__PURE__ */ import_react106.default.createElement(Badge, { variant: showActiveBadge ? "active" : "default" }, badge))
|
|
41948
42269
|
);
|
|
41949
42270
|
};
|
|
41950
42271
|
|
|
41951
42272
|
// ../tabs/src/TabList.tsx
|
|
41952
|
-
var
|
|
41953
|
-
var
|
|
42273
|
+
var import_react107 = __toESM(require_react());
|
|
42274
|
+
var import_classnames47 = __toESM(require_classnames());
|
|
41954
42275
|
var import_TabList_module = __toESM(__require("../TabList.module-FVWF5RCV.scss"));
|
|
41955
42276
|
var TabList2 = (props) => {
|
|
41956
42277
|
const { "aria-label": ariaLabel, noPadding = false, children } = props;
|
|
41957
|
-
return /* @__PURE__ */
|
|
42278
|
+
return /* @__PURE__ */ import_react107.default.createElement(
|
|
41958
42279
|
TabList,
|
|
41959
42280
|
{
|
|
41960
42281
|
"aria-label": ariaLabel,
|
|
41961
|
-
className: (0,
|
|
42282
|
+
className: (0, import_classnames47.default)(import_TabList_module.default.tabList, {
|
|
41962
42283
|
[import_TabList_module.default.noPadding]: noPadding
|
|
41963
42284
|
})
|
|
41964
42285
|
},
|
|
@@ -41967,22 +42288,22 @@ ${singleLine(message)}${reset}
|
|
|
41967
42288
|
};
|
|
41968
42289
|
|
|
41969
42290
|
// ../tabs/src/TabPanel.tsx
|
|
41970
|
-
var
|
|
42291
|
+
var import_react108 = __toESM(require_react());
|
|
41971
42292
|
var import_TabPanel_module = __toESM(__require("../TabPanel.module-2YHJE4CY.scss"));
|
|
41972
42293
|
var TabPanel2 = (props) => {
|
|
41973
42294
|
const { children } = props;
|
|
41974
|
-
return /* @__PURE__ */
|
|
42295
|
+
return /* @__PURE__ */ import_react108.default.createElement(TabPanel, { className: import_TabPanel_module.default.tabPanel }, children);
|
|
41975
42296
|
};
|
|
41976
42297
|
|
|
41977
42298
|
// ../tabs/src/TabPanels.tsx
|
|
41978
|
-
var
|
|
42299
|
+
var import_react109 = __toESM(require_react());
|
|
41979
42300
|
var TabPanels2 = (props) => {
|
|
41980
42301
|
const { children } = props;
|
|
41981
|
-
return /* @__PURE__ */
|
|
42302
|
+
return /* @__PURE__ */ import_react109.default.createElement(TabPanels, null, children);
|
|
41982
42303
|
};
|
|
41983
42304
|
|
|
41984
42305
|
// ../tabs/src/Tabs.tsx
|
|
41985
|
-
var
|
|
42306
|
+
var import_react110 = __toESM(require_react());
|
|
41986
42307
|
var Tabs2 = (props) => {
|
|
41987
42308
|
const {
|
|
41988
42309
|
defaultIndex,
|
|
@@ -41991,7 +42312,7 @@ ${singleLine(message)}${reset}
|
|
|
41991
42312
|
onChange,
|
|
41992
42313
|
children
|
|
41993
42314
|
} = props;
|
|
41994
|
-
return /* @__PURE__ */
|
|
42315
|
+
return /* @__PURE__ */ import_react110.default.createElement(
|
|
41995
42316
|
Tabs,
|
|
41996
42317
|
{
|
|
41997
42318
|
defaultIndex,
|