@kaizen/components 1.4.20-canary.2 → 1.4.20-canary.3469
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/dist/iife/Dropdown.module-4CIBZTRZ-4CIBZTRZ.scss +100 -0
- package/dist/iife/Icon.module-VD7NKLAR-VD7NKLAR.scss +72 -0
- package/dist/iife/KaizenProvider/ThemeProvider/ThemeManager.js +362 -494
- package/dist/iife/KaizenProvider/ThemeProvider/ThemeManager.spec.js +365 -500
- package/dist/iife/KaizenProvider/ThemeProvider/index.js +376 -508
- package/dist/iife/KaizenProvider/index.js +378 -510
- package/dist/iife/Layout.module-MZ6JYT46-MZ6JYT46.scss +58 -0
- package/dist/iife/Menu.module-N76N74LN-N76N74LN.scss +111 -0
- package/dist/iife/Text.module-SXGFOHGJ-SXGFOHGJ.scss +173 -0
- package/dist/iife/__future__/index.js +910 -587
- package/dist/iife/index.js +869 -539
- package/package.json +34 -34
- package/dist/styles.css +0 -98
- /package/dist/iife/{Margin.module-DJURK5K7.scss → Margin.module-DJURK5K7-DJURK5K7.scss} +0 -0
- /package/dist/iife/{Padding.module-QSNUEZBU.scss → Padding.module-QSNUEZBU-QSNUEZBU.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,14 +36918,14 @@ ${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(Paragraph, { variant: "small", color: textColor }, message))
|
|
36669
36922
|
);
|
|
36670
36923
|
};
|
|
36671
36924
|
FieldMessage.displayName = "FieldMessage";
|
|
36672
36925
|
|
|
36673
36926
|
// ../../draft-packages/form/KaizenDraft/Form/Primitives/Input/Input.tsx
|
|
36674
|
-
var
|
|
36675
|
-
var
|
|
36927
|
+
var import_react33 = __toESM(require_react());
|
|
36928
|
+
var import_classnames12 = __toESM(require_classnames());
|
|
36676
36929
|
var import_Input_module = __toESM(__require("../Input.module-FBWZRX37.scss"));
|
|
36677
36930
|
var Input = ({
|
|
36678
36931
|
inputRef,
|
|
@@ -36693,10 +36946,10 @@ ${singleLine(message)}${reset}
|
|
|
36693
36946
|
automationId,
|
|
36694
36947
|
disabled,
|
|
36695
36948
|
...restProps
|
|
36696
|
-
}) => /* @__PURE__ */
|
|
36949
|
+
}) => /* @__PURE__ */ import_react33.default.createElement(
|
|
36697
36950
|
"div",
|
|
36698
36951
|
{
|
|
36699
|
-
className: (0,
|
|
36952
|
+
className: (0, import_classnames12.default)(
|
|
36700
36953
|
import_Input_module.default.wrapper,
|
|
36701
36954
|
{
|
|
36702
36955
|
[import_Input_module.default.withReversed]: reversed,
|
|
@@ -36707,8 +36960,8 @@ ${singleLine(message)}${reset}
|
|
|
36707
36960
|
status != "default" && import_Input_module.default.hasStatus
|
|
36708
36961
|
)
|
|
36709
36962
|
},
|
|
36710
|
-
startIconAdornment && /* @__PURE__ */
|
|
36711
|
-
/* @__PURE__ */
|
|
36963
|
+
startIconAdornment && /* @__PURE__ */ import_react33.default.createElement("div", { className: import_Input_module.default.startIconAdornment }, startIconAdornment),
|
|
36964
|
+
/* @__PURE__ */ import_react33.default.createElement(
|
|
36712
36965
|
"input",
|
|
36713
36966
|
{
|
|
36714
36967
|
ref: inputRef,
|
|
@@ -36719,7 +36972,7 @@ ${singleLine(message)}${reset}
|
|
|
36719
36972
|
"aria-describedby": ariaDescribedBy,
|
|
36720
36973
|
"aria-label": ariaLabel,
|
|
36721
36974
|
disabled,
|
|
36722
|
-
className: (0,
|
|
36975
|
+
className: (0, import_classnames12.default)([
|
|
36723
36976
|
import_Input_module.default.input,
|
|
36724
36977
|
import_Input_module.default[status],
|
|
36725
36978
|
className,
|
|
@@ -36730,14 +36983,14 @@ ${singleLine(message)}${reset}
|
|
|
36730
36983
|
...restProps
|
|
36731
36984
|
}
|
|
36732
36985
|
),
|
|
36733
|
-
/* @__PURE__ */
|
|
36734
|
-
endIconAdornment && /* @__PURE__ */
|
|
36986
|
+
/* @__PURE__ */ import_react33.default.createElement("div", { className: import_Input_module.default.focusRing }),
|
|
36987
|
+
endIconAdornment && /* @__PURE__ */ import_react33.default.createElement("div", { className: import_Input_module.default.endIconAdornment }, endIconAdornment)
|
|
36735
36988
|
);
|
|
36736
36989
|
Input.displayName = "Input";
|
|
36737
36990
|
|
|
36738
36991
|
// ../../draft-packages/form/KaizenDraft/Form/Primitives/InputRange/InputRange.tsx
|
|
36739
|
-
var
|
|
36740
|
-
var
|
|
36992
|
+
var import_react34 = __toESM(require_react());
|
|
36993
|
+
var import_classnames13 = __toESM(require_classnames());
|
|
36741
36994
|
var import_InputRange_module = __toESM(__require("../InputRange.module-RGISUI4D.scss"));
|
|
36742
36995
|
var InputRange = (props) => {
|
|
36743
36996
|
const {
|
|
@@ -36755,15 +37008,15 @@ ${singleLine(message)}${reset}
|
|
|
36755
37008
|
readOnly,
|
|
36756
37009
|
...restProps
|
|
36757
37010
|
} = props;
|
|
36758
|
-
const [step, setStep] = (0,
|
|
37011
|
+
const [step, setStep] = (0, import_react34.useState)(0.5);
|
|
36759
37012
|
const visuallyHiddenHintId = `${id2}-helper`;
|
|
36760
37013
|
const readOnlyWithNoValue = readOnly && !value && !defaultValue;
|
|
36761
37014
|
const defaultValueWithDefault = defaultValue || (max2 + 1) / 2;
|
|
36762
|
-
return /* @__PURE__ */
|
|
37015
|
+
return /* @__PURE__ */ import_react34.default.createElement(import_react34.default.Fragment, null, /* @__PURE__ */ import_react34.default.createElement(
|
|
36763
37016
|
"input",
|
|
36764
37017
|
{
|
|
36765
37018
|
id: id2,
|
|
36766
|
-
className: (0,
|
|
37019
|
+
className: (0, import_classnames13.default)(import_InputRange_module.default.ratingScaleRange, classNameOverride, {
|
|
36767
37020
|
[import_InputRange_module.default.hideThumb]: readOnlyWithNoValue,
|
|
36768
37021
|
[import_InputRange_module.default.disabled]: disabled
|
|
36769
37022
|
}),
|
|
@@ -36784,37 +37037,37 @@ ${singleLine(message)}${reset}
|
|
|
36784
37037
|
},
|
|
36785
37038
|
...restProps
|
|
36786
37039
|
}
|
|
36787
|
-
), /* @__PURE__ */
|
|
37040
|
+
), /* @__PURE__ */ import_react34.default.createElement(
|
|
36788
37041
|
"div",
|
|
36789
37042
|
{
|
|
36790
|
-
className: (0,
|
|
37043
|
+
className: (0, import_classnames13.default)(import_InputRange_module.default.spokes, {
|
|
36791
37044
|
[import_InputRange_module.default.disabled]: disabled
|
|
36792
37045
|
})
|
|
36793
37046
|
},
|
|
36794
|
-
[...Array(max2)].map((_, index) => /* @__PURE__ */
|
|
36795
|
-
), /* @__PURE__ */
|
|
37047
|
+
[...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 })))
|
|
37048
|
+
), /* @__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(
|
|
36796
37049
|
"div",
|
|
36797
37050
|
{
|
|
36798
|
-
className: (0,
|
|
37051
|
+
className: (0, import_classnames13.default)(import_InputRange_module.default.sliderLabels, {
|
|
36799
37052
|
[import_InputRange_module.default.disabled]: disabled
|
|
36800
37053
|
})
|
|
36801
37054
|
},
|
|
36802
|
-
/* @__PURE__ */
|
|
36803
|
-
/* @__PURE__ */
|
|
37055
|
+
/* @__PURE__ */ import_react34.default.createElement(Paragraph, { variant: "small", color: "dark-reduced-opacity", tag: "span" }, minLabel),
|
|
37056
|
+
/* @__PURE__ */ import_react34.default.createElement(Paragraph, { variant: "small", color: "dark-reduced-opacity", tag: "span" }, maxLabel)
|
|
36804
37057
|
)));
|
|
36805
37058
|
};
|
|
36806
37059
|
InputRange.displayName = "InputRange";
|
|
36807
37060
|
|
|
36808
37061
|
// ../../draft-packages/form/KaizenDraft/Form/Primitives/InputSearch/InputSearch.tsx
|
|
36809
|
-
var
|
|
36810
|
-
var
|
|
37062
|
+
var import_react36 = __toESM(require_react());
|
|
37063
|
+
var import_classnames15 = __toESM(require_classnames());
|
|
36811
37064
|
|
|
36812
37065
|
// ../component-library/icons/search.icon.svg
|
|
36813
37066
|
var search_icon_default = "../search.icon-ML7HSFID.svg";
|
|
36814
37067
|
|
|
36815
37068
|
// ../loading-spinner/src/LoadingSpinner/LoadingSpinner.tsx
|
|
36816
|
-
var
|
|
36817
|
-
var
|
|
37069
|
+
var import_react35 = __toESM(require_react());
|
|
37070
|
+
var import_classnames14 = __toESM(require_classnames());
|
|
36818
37071
|
var import_LoadingSpinner_module = __toESM(__require("../LoadingSpinner.module-VMTNZETE.scss"));
|
|
36819
37072
|
var LoadingSpinner = ({
|
|
36820
37073
|
children,
|
|
@@ -36822,16 +37075,16 @@ ${singleLine(message)}${reset}
|
|
|
36822
37075
|
size = "md",
|
|
36823
37076
|
classNameOverride,
|
|
36824
37077
|
...props
|
|
36825
|
-
}) => /* @__PURE__ */
|
|
37078
|
+
}) => /* @__PURE__ */ import_react35.default.createElement(
|
|
36826
37079
|
"div",
|
|
36827
37080
|
{
|
|
36828
37081
|
"data-automation-id": "loading-spinner",
|
|
36829
|
-
className: (0,
|
|
37082
|
+
className: (0, import_classnames14.default)(import_LoadingSpinner_module.default.wrapper, classNameOverride),
|
|
36830
37083
|
role: "status",
|
|
36831
37084
|
...props
|
|
36832
37085
|
},
|
|
36833
|
-
/* @__PURE__ */
|
|
36834
|
-
size === "md" ? /* @__PURE__ */
|
|
37086
|
+
/* @__PURE__ */ import_react35.default.createElement("span", { className: import_LoadingSpinner_module.default.visuallyHidden }, accessibilityLabel),
|
|
37087
|
+
size === "md" ? /* @__PURE__ */ import_react35.default.createElement(
|
|
36835
37088
|
"svg",
|
|
36836
37089
|
{
|
|
36837
37090
|
className: import_LoadingSpinner_module.default.spinner,
|
|
@@ -36841,7 +37094,7 @@ ${singleLine(message)}${reset}
|
|
|
36841
37094
|
fill: "none",
|
|
36842
37095
|
xmlns: "http://www.w3.org/2000/svg"
|
|
36843
37096
|
},
|
|
36844
|
-
/* @__PURE__ */
|
|
37097
|
+
/* @__PURE__ */ import_react35.default.createElement(
|
|
36845
37098
|
"circle",
|
|
36846
37099
|
{
|
|
36847
37100
|
cx: "24",
|
|
@@ -36852,7 +37105,7 @@ ${singleLine(message)}${reset}
|
|
|
36852
37105
|
strokeOpacity: "0.3"
|
|
36853
37106
|
}
|
|
36854
37107
|
),
|
|
36855
|
-
/* @__PURE__ */
|
|
37108
|
+
/* @__PURE__ */ import_react35.default.createElement(
|
|
36856
37109
|
"path",
|
|
36857
37110
|
{
|
|
36858
37111
|
fillRule: "evenodd",
|
|
@@ -36861,7 +37114,7 @@ ${singleLine(message)}${reset}
|
|
|
36861
37114
|
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"
|
|
36862
37115
|
}
|
|
36863
37116
|
)
|
|
36864
|
-
) : /* @__PURE__ */
|
|
37117
|
+
) : /* @__PURE__ */ import_react35.default.createElement(
|
|
36865
37118
|
"svg",
|
|
36866
37119
|
{
|
|
36867
37120
|
className: import_LoadingSpinner_module.default.spinner,
|
|
@@ -36871,7 +37124,7 @@ ${singleLine(message)}${reset}
|
|
|
36871
37124
|
fill: "none",
|
|
36872
37125
|
xmlns: "http://www.w3.org/2000/svg"
|
|
36873
37126
|
},
|
|
36874
|
-
/* @__PURE__ */
|
|
37127
|
+
/* @__PURE__ */ import_react35.default.createElement(
|
|
36875
37128
|
"circle",
|
|
36876
37129
|
{
|
|
36877
37130
|
cx: "12",
|
|
@@ -36882,7 +37135,7 @@ ${singleLine(message)}${reset}
|
|
|
36882
37135
|
strokeOpacity: "0.3"
|
|
36883
37136
|
}
|
|
36884
37137
|
),
|
|
36885
|
-
/* @__PURE__ */
|
|
37138
|
+
/* @__PURE__ */ import_react35.default.createElement(
|
|
36886
37139
|
"path",
|
|
36887
37140
|
{
|
|
36888
37141
|
fillRule: "evenodd",
|
|
@@ -36909,16 +37162,16 @@ ${singleLine(message)}${reset}
|
|
|
36909
37162
|
secondary = false,
|
|
36910
37163
|
...restProps
|
|
36911
37164
|
} = props;
|
|
36912
|
-
const inputRef = (0,
|
|
37165
|
+
const inputRef = (0, import_react36.useRef)(null);
|
|
36913
37166
|
const handleOnClear = () => {
|
|
36914
37167
|
var _a;
|
|
36915
37168
|
(_a = inputRef.current) == null ? void 0 : _a.focus();
|
|
36916
37169
|
onClear && onClear();
|
|
36917
37170
|
};
|
|
36918
|
-
return /* @__PURE__ */
|
|
37171
|
+
return /* @__PURE__ */ import_react36.default.createElement(
|
|
36919
37172
|
"div",
|
|
36920
37173
|
{
|
|
36921
|
-
className: (0,
|
|
37174
|
+
className: (0, import_classnames15.default)(
|
|
36922
37175
|
import_InputSearch_module.default.wrapper,
|
|
36923
37176
|
secondary ? import_InputSearch_module.default.secondary : import_InputSearch_module.default.default,
|
|
36924
37177
|
reversed && import_InputSearch_module.default.reversed,
|
|
@@ -36927,15 +37180,15 @@ ${singleLine(message)}${reset}
|
|
|
36927
37180
|
classNameOverride
|
|
36928
37181
|
)
|
|
36929
37182
|
},
|
|
36930
|
-
/* @__PURE__ */
|
|
37183
|
+
/* @__PURE__ */ import_react36.default.createElement("div", { className: import_InputSearch_module.default.startIconAdornment }, loading ? /* @__PURE__ */ import_react36.default.createElement(
|
|
36931
37184
|
LoadingSpinner,
|
|
36932
37185
|
{
|
|
36933
37186
|
accessibilityLabel: "",
|
|
36934
37187
|
size: "sm",
|
|
36935
37188
|
classNameOverride: import_InputSearch_module.default.loadingSpinner
|
|
36936
37189
|
}
|
|
36937
|
-
) : /* @__PURE__ */
|
|
36938
|
-
/* @__PURE__ */
|
|
37190
|
+
) : /* @__PURE__ */ import_react36.default.createElement(Icon, { icon: search_icon_default, role: "presentation" })),
|
|
37191
|
+
/* @__PURE__ */ import_react36.default.createElement(
|
|
36939
37192
|
"input",
|
|
36940
37193
|
{
|
|
36941
37194
|
ref: inputRef,
|
|
@@ -36948,8 +37201,8 @@ ${singleLine(message)}${reset}
|
|
|
36948
37201
|
...restProps
|
|
36949
37202
|
}
|
|
36950
37203
|
),
|
|
36951
|
-
/* @__PURE__ */
|
|
36952
|
-
value && /* @__PURE__ */
|
|
37204
|
+
/* @__PURE__ */ import_react36.default.createElement("div", { className: import_InputSearch_module.default.focusRing }),
|
|
37205
|
+
value && /* @__PURE__ */ import_react36.default.createElement(
|
|
36953
37206
|
ClearButton,
|
|
36954
37207
|
{
|
|
36955
37208
|
isReversed: reversed,
|
|
@@ -36963,8 +37216,8 @@ ${singleLine(message)}${reset}
|
|
|
36963
37216
|
InputSearch.displayName = "InputSearch";
|
|
36964
37217
|
|
|
36965
37218
|
// ../../draft-packages/form/KaizenDraft/Form/Primitives/Label/Label.tsx
|
|
36966
|
-
var
|
|
36967
|
-
var
|
|
37219
|
+
var import_react37 = __toESM(require_react());
|
|
37220
|
+
var import_classnames16 = __toESM(require_classnames());
|
|
36968
37221
|
var import_Label_module = __toESM(__require("../Label.module-QP4J7I5H.scss"));
|
|
36969
37222
|
var Label = ({
|
|
36970
37223
|
children,
|
|
@@ -36977,11 +37230,11 @@ ${singleLine(message)}${reset}
|
|
|
36977
37230
|
automationId,
|
|
36978
37231
|
classNameOverride,
|
|
36979
37232
|
...restProps
|
|
36980
|
-
}) => /* @__PURE__ */
|
|
37233
|
+
}) => /* @__PURE__ */ import_react37.default.createElement(
|
|
36981
37234
|
"label",
|
|
36982
37235
|
{
|
|
36983
37236
|
"data-automation-id": automationId,
|
|
36984
|
-
className: (0,
|
|
37237
|
+
className: (0, import_classnames16.default)(import_Label_module.default.label, classNameOverride, {
|
|
36985
37238
|
[import_Label_module.default.reversed]: reversed,
|
|
36986
37239
|
[import_Label_module.default.text]: labelType === "text",
|
|
36987
37240
|
[import_Label_module.default.checkbox]: labelType === "checkbox",
|
|
@@ -36993,10 +37246,10 @@ ${singleLine(message)}${reset}
|
|
|
36993
37246
|
...restProps
|
|
36994
37247
|
},
|
|
36995
37248
|
children,
|
|
36996
|
-
/* @__PURE__ */
|
|
37249
|
+
/* @__PURE__ */ import_react37.default.createElement(
|
|
36997
37250
|
"span",
|
|
36998
37251
|
{
|
|
36999
|
-
className: (0,
|
|
37252
|
+
className: (0, import_classnames16.default)({
|
|
37000
37253
|
[import_Label_module.default.prependedLabel]: labelPosition === "start",
|
|
37001
37254
|
[import_Label_module.default.appendedLabel]: labelPosition === "end"
|
|
37002
37255
|
})
|
|
@@ -37007,15 +37260,15 @@ ${singleLine(message)}${reset}
|
|
|
37007
37260
|
Label.displayName = "Label";
|
|
37008
37261
|
|
|
37009
37262
|
// ../../draft-packages/form/KaizenDraft/Form/Primitives/Radio/Radio.tsx
|
|
37010
|
-
var
|
|
37011
|
-
var
|
|
37263
|
+
var import_react38 = __toESM(require_react());
|
|
37264
|
+
var import_classnames17 = __toESM(require_classnames());
|
|
37012
37265
|
var import_Radio_module = __toESM(__require("../Radio.module-DCWPHVKW.scss"));
|
|
37013
37266
|
var renderSelected = (selectedStatus, reversed) => {
|
|
37014
37267
|
if (selectedStatus) {
|
|
37015
|
-
return /* @__PURE__ */
|
|
37268
|
+
return /* @__PURE__ */ import_react38.default.createElement(
|
|
37016
37269
|
"div",
|
|
37017
37270
|
{
|
|
37018
|
-
className: (0,
|
|
37271
|
+
className: (0, import_classnames17.default)(import_Radio_module.default.icon, {
|
|
37019
37272
|
[import_Radio_module.default.reversed]: reversed
|
|
37020
37273
|
})
|
|
37021
37274
|
}
|
|
@@ -37033,7 +37286,7 @@ ${singleLine(message)}${reset}
|
|
|
37033
37286
|
onChange,
|
|
37034
37287
|
classNameOverride,
|
|
37035
37288
|
...restProps
|
|
37036
|
-
}) => /* @__PURE__ */
|
|
37289
|
+
}) => /* @__PURE__ */ import_react38.default.createElement("span", null, /* @__PURE__ */ import_react38.default.createElement(
|
|
37037
37290
|
"input",
|
|
37038
37291
|
{
|
|
37039
37292
|
"data-automation-id": automationId,
|
|
@@ -37042,17 +37295,17 @@ ${singleLine(message)}${reset}
|
|
|
37042
37295
|
name,
|
|
37043
37296
|
value,
|
|
37044
37297
|
checked: selectedStatus,
|
|
37045
|
-
className: (0,
|
|
37298
|
+
className: (0, import_classnames17.default)(import_Radio_module.default.radioInput, classNameOverride, {
|
|
37046
37299
|
[import_Radio_module.default.reversed]: reversed
|
|
37047
37300
|
}),
|
|
37048
37301
|
onChange,
|
|
37049
37302
|
readOnly: onChange === void 0,
|
|
37050
37303
|
...restProps
|
|
37051
37304
|
}
|
|
37052
|
-
), /* @__PURE__ */
|
|
37305
|
+
), /* @__PURE__ */ import_react38.default.createElement(
|
|
37053
37306
|
"span",
|
|
37054
37307
|
{
|
|
37055
|
-
className: (0,
|
|
37308
|
+
className: (0, import_classnames17.default)(import_Radio_module.default.box, {
|
|
37056
37309
|
[import_Radio_module.default.reversed]: reversed
|
|
37057
37310
|
})
|
|
37058
37311
|
},
|
|
@@ -37061,8 +37314,8 @@ ${singleLine(message)}${reset}
|
|
|
37061
37314
|
Radio.displayName = "Radio";
|
|
37062
37315
|
|
|
37063
37316
|
// ../../draft-packages/form/KaizenDraft/Form/Primitives/TextArea/TextArea.tsx
|
|
37064
|
-
var
|
|
37065
|
-
var
|
|
37317
|
+
var import_react39 = __toESM(require_react());
|
|
37318
|
+
var import_classnames18 = __toESM(require_classnames());
|
|
37066
37319
|
var import_TextArea_module = __toESM(__require("../TextArea.module-JLTW3M73.scss"));
|
|
37067
37320
|
var TextArea = ({
|
|
37068
37321
|
textAreaRef: propsTextAreaRef,
|
|
@@ -37077,11 +37330,11 @@ ${singleLine(message)}${reset}
|
|
|
37077
37330
|
onChange: propsOnChange,
|
|
37078
37331
|
...restProps
|
|
37079
37332
|
}) => {
|
|
37080
|
-
const [textAreaHeight, setTextAreaHeight] = (0,
|
|
37081
|
-
const [parentHeight, setParentHeight] = (0,
|
|
37082
|
-
const [internalValue, setInternalValue] = (0,
|
|
37083
|
-
const textAreaRef = propsTextAreaRef || (0,
|
|
37084
|
-
(0,
|
|
37333
|
+
const [textAreaHeight, setTextAreaHeight] = (0, import_react39.useState)("auto");
|
|
37334
|
+
const [parentHeight, setParentHeight] = (0, import_react39.useState)("auto");
|
|
37335
|
+
const [internalValue, setInternalValue] = (0, import_react39.useState)(autogrow ? defaultValue : void 0);
|
|
37336
|
+
const textAreaRef = propsTextAreaRef || (0, import_react39.useRef)(null);
|
|
37337
|
+
(0, import_react39.useEffect)(() => {
|
|
37085
37338
|
if (!autogrow)
|
|
37086
37339
|
return;
|
|
37087
37340
|
const scrollHeight = textAreaRef.current.scrollHeight;
|
|
@@ -37102,10 +37355,10 @@ ${singleLine(message)}${reset}
|
|
|
37102
37355
|
const getWrapperStyle = () => autogrow ? { minHeight: parentHeight } : void 0;
|
|
37103
37356
|
const getTextAreaStyle = () => autogrow ? { height: textAreaHeight } : void 0;
|
|
37104
37357
|
const controlledValue = value || internalValue;
|
|
37105
|
-
return /* @__PURE__ */
|
|
37358
|
+
return /* @__PURE__ */ import_react39.default.createElement("div", { className: import_TextArea_module.default.wrapper, style: getWrapperStyle() }, /* @__PURE__ */ import_react39.default.createElement(
|
|
37106
37359
|
"textarea",
|
|
37107
37360
|
{
|
|
37108
|
-
className: (0,
|
|
37361
|
+
className: (0, import_classnames18.default)(import_TextArea_module.default.textarea, import_TextArea_module.default[status], {
|
|
37109
37362
|
[import_TextArea_module.default.default]: !reversed,
|
|
37110
37363
|
[import_TextArea_module.default.reversed]: reversed,
|
|
37111
37364
|
[import_TextArea_module.default.disabled]: disabled
|
|
@@ -37120,13 +37373,13 @@ ${singleLine(message)}${reset}
|
|
|
37120
37373
|
disabled,
|
|
37121
37374
|
...restProps
|
|
37122
37375
|
}
|
|
37123
|
-
), /* @__PURE__ */
|
|
37376
|
+
), /* @__PURE__ */ import_react39.default.createElement("div", { className: import_TextArea_module.default.focusRing }));
|
|
37124
37377
|
};
|
|
37125
37378
|
TextArea.displayName = "TextArea";
|
|
37126
37379
|
|
|
37127
37380
|
// ../../draft-packages/form/KaizenDraft/Form/Primitives/ToggleSwitch/ToggleSwitch.tsx
|
|
37128
|
-
var
|
|
37129
|
-
var
|
|
37381
|
+
var import_react40 = __toESM(require_react());
|
|
37382
|
+
var import_classnames19 = __toESM(require_classnames());
|
|
37130
37383
|
var import_ToggleSwitch_module = __toESM(__require("../ToggleSwitch.module-3YDF4MLF.scss"));
|
|
37131
37384
|
var ToggleSwitch = ({
|
|
37132
37385
|
toggledStatus,
|
|
@@ -37136,16 +37389,16 @@ ${singleLine(message)}${reset}
|
|
|
37136
37389
|
...restProps
|
|
37137
37390
|
}) => {
|
|
37138
37391
|
const isOn = toggledStatus === "on" /* ON */;
|
|
37139
|
-
return /* @__PURE__ */
|
|
37392
|
+
return /* @__PURE__ */ import_react40.default.createElement(
|
|
37140
37393
|
"span",
|
|
37141
37394
|
{
|
|
37142
|
-
className: (0,
|
|
37395
|
+
className: (0, import_classnames19.default)({
|
|
37143
37396
|
[import_ToggleSwitch_module.default.on]: isOn,
|
|
37144
37397
|
[import_ToggleSwitch_module.default.off]: !isOn,
|
|
37145
37398
|
[import_ToggleSwitch_module.default.reversed]: reversed
|
|
37146
37399
|
})
|
|
37147
37400
|
},
|
|
37148
|
-
/* @__PURE__ */
|
|
37401
|
+
/* @__PURE__ */ import_react40.default.createElement(
|
|
37149
37402
|
"input",
|
|
37150
37403
|
{
|
|
37151
37404
|
type: "checkbox",
|
|
@@ -37156,7 +37409,7 @@ ${singleLine(message)}${reset}
|
|
|
37156
37409
|
...restProps
|
|
37157
37410
|
}
|
|
37158
37411
|
),
|
|
37159
|
-
/* @__PURE__ */
|
|
37412
|
+
/* @__PURE__ */ import_react40.default.createElement("span", { className: import_ToggleSwitch_module.default.track }, /* @__PURE__ */ import_react40.default.createElement("span", { className: import_ToggleSwitch_module.default.thumb }))
|
|
37160
37413
|
);
|
|
37161
37414
|
};
|
|
37162
37415
|
ToggleSwitch.displayName = "ToggleSwitch";
|
|
@@ -37173,18 +37426,18 @@ ${singleLine(message)}${reset}
|
|
|
37173
37426
|
automationId,
|
|
37174
37427
|
classNameOverride,
|
|
37175
37428
|
...restProps
|
|
37176
|
-
}) => /* @__PURE__ */
|
|
37429
|
+
}) => /* @__PURE__ */ import_react41.default.createElement(
|
|
37177
37430
|
"div",
|
|
37178
37431
|
{
|
|
37179
37432
|
"data-automation-id": automationId,
|
|
37180
|
-
className: (0,
|
|
37433
|
+
className: (0, import_classnames20.default)(import_CheckboxField_module.default.container, classNameOverride, {
|
|
37181
37434
|
[import_CheckboxField_module.default.checked]: checkedStatus === "on",
|
|
37182
37435
|
[import_CheckboxField_module.default.mixed]: checkedStatus === "mixed",
|
|
37183
37436
|
[import_CheckboxField_module.default.reversed]: reversed,
|
|
37184
37437
|
[import_CheckboxField_module.default.noBottomMargin]: noBottomMargin
|
|
37185
37438
|
})
|
|
37186
37439
|
},
|
|
37187
|
-
/* @__PURE__ */
|
|
37440
|
+
/* @__PURE__ */ import_react41.default.createElement(
|
|
37188
37441
|
Label,
|
|
37189
37442
|
{
|
|
37190
37443
|
id: `${id2}-field-label`,
|
|
@@ -37195,7 +37448,7 @@ ${singleLine(message)}${reset}
|
|
|
37195
37448
|
labelType: "checkbox",
|
|
37196
37449
|
disabled
|
|
37197
37450
|
},
|
|
37198
|
-
/* @__PURE__ */
|
|
37451
|
+
/* @__PURE__ */ import_react41.default.createElement(
|
|
37199
37452
|
Checkbox,
|
|
37200
37453
|
{
|
|
37201
37454
|
id: `${id2}-field-checkbox`,
|
|
@@ -37211,8 +37464,8 @@ ${singleLine(message)}${reset}
|
|
|
37211
37464
|
CheckboxField.displayName = "CheckboxField";
|
|
37212
37465
|
|
|
37213
37466
|
// ../../draft-packages/form/KaizenDraft/Form/CheckboxGroup/CheckboxGroup.tsx
|
|
37214
|
-
var
|
|
37215
|
-
var
|
|
37467
|
+
var import_react42 = __toESM(require_react());
|
|
37468
|
+
var import_classnames21 = __toESM(require_classnames());
|
|
37216
37469
|
var import_CheckboxGroup_module = __toESM(__require("../CheckboxGroup.module-AHAPICAN.scss"));
|
|
37217
37470
|
var CheckboxGroup = ({
|
|
37218
37471
|
children,
|
|
@@ -37222,17 +37475,17 @@ ${singleLine(message)}${reset}
|
|
|
37222
37475
|
automationId,
|
|
37223
37476
|
classNameOverride,
|
|
37224
37477
|
...restProps
|
|
37225
|
-
}) => /* @__PURE__ */
|
|
37478
|
+
}) => /* @__PURE__ */ import_react42.default.createElement(
|
|
37226
37479
|
"div",
|
|
37227
37480
|
{
|
|
37228
37481
|
"data-automation-id": automationId && `${automationId}-field-checkbox-group`,
|
|
37229
|
-
className: (0,
|
|
37482
|
+
className: (0, import_classnames21.default)(import_CheckboxGroup_module.default.checkboxGroupContainer, classNameOverride, {
|
|
37230
37483
|
[import_CheckboxGroup_module.default.noBottomMargin]: noBottomMargin,
|
|
37231
37484
|
[import_CheckboxGroup_module.default.reversed]: reversed
|
|
37232
37485
|
}),
|
|
37233
37486
|
...restProps
|
|
37234
37487
|
},
|
|
37235
|
-
/* @__PURE__ */
|
|
37488
|
+
/* @__PURE__ */ import_react42.default.createElement("div", { className: import_CheckboxGroup_module.default.checkboxGroupLabel }, /* @__PURE__ */ import_react42.default.createElement(
|
|
37236
37489
|
Label,
|
|
37237
37490
|
{
|
|
37238
37491
|
automationId: `${automationId}-field-label`,
|
|
@@ -37246,8 +37499,75 @@ ${singleLine(message)}${reset}
|
|
|
37246
37499
|
CheckboxGroup.displayName = "CheckboxGroup";
|
|
37247
37500
|
|
|
37248
37501
|
// ../../draft-packages/form/KaizenDraft/Form/TextField/TextField.tsx
|
|
37249
|
-
var
|
|
37250
|
-
var
|
|
37502
|
+
var import_react44 = __toESM(require_react());
|
|
37503
|
+
var import_classnames23 = __toESM(require_classnames());
|
|
37504
|
+
|
|
37505
|
+
// ../component-library/components/Icon/Icon.tsx
|
|
37506
|
+
var import_react43 = __toESM(require_react());
|
|
37507
|
+
var import_classnames22 = __toESM(require_classnames());
|
|
37508
|
+
|
|
37509
|
+
// ../component-library/util/console.ts
|
|
37510
|
+
var yellow2 = "\x1B[33m ";
|
|
37511
|
+
var reset2 = "\x1B[0m ";
|
|
37512
|
+
var warn2 = (message) => {
|
|
37513
|
+
console.warn(
|
|
37514
|
+
`${yellow2}
|
|
37515
|
+
CULTUREAMP UI WARNING:
|
|
37516
|
+
${singleLine2(message)}${reset2}
|
|
37517
|
+
`
|
|
37518
|
+
);
|
|
37519
|
+
};
|
|
37520
|
+
var singleLine2 = (message) => message.replace(/^ +/gm, " ").replace(/\n|\r/gm, "").trim();
|
|
37521
|
+
|
|
37522
|
+
// ../component-library/components/Icon/Icon.tsx
|
|
37523
|
+
var import_Icon_module = __toESM(__require("../Icon.module-VD7NKLAR.scss"));
|
|
37524
|
+
var Icon2 = ({
|
|
37525
|
+
icon,
|
|
37526
|
+
inheritSize = false,
|
|
37527
|
+
role = "img",
|
|
37528
|
+
title = "",
|
|
37529
|
+
desc = "",
|
|
37530
|
+
classNameOverride,
|
|
37531
|
+
...props
|
|
37532
|
+
}) => {
|
|
37533
|
+
const isMeaningfulImg = role === "img";
|
|
37534
|
+
if (isMeaningfulImg && !title) {
|
|
37535
|
+
warn2(`
|
|
37536
|
+
Icon with role "img" missing a title attribute.
|
|
37537
|
+
|
|
37538
|
+
Assistive technologies that enable vision-impaired users to read web pages
|
|
37539
|
+
can treat images (including icons) as either decorative or meaningful. Only
|
|
37540
|
+
images with a role of "img" (meaningful) will be read aloud to the user.
|
|
37541
|
+
These images must therefore have a title attribute to provide the text that
|
|
37542
|
+
will be read aloud.
|
|
37543
|
+
|
|
37544
|
+
Either add the missing title prop, or set this icon's role to
|
|
37545
|
+
"presentation" to indicate it is not meaningful.
|
|
37546
|
+
`);
|
|
37547
|
+
}
|
|
37548
|
+
const renderTitle = () => isMeaningfulImg && !!title && /* @__PURE__ */ import_react43.default.createElement("title", null, title);
|
|
37549
|
+
const renderDesc = () => isMeaningfulImg && !!desc && /* @__PURE__ */ import_react43.default.createElement("desc", null, desc);
|
|
37550
|
+
const accessibilityProps = {
|
|
37551
|
+
role,
|
|
37552
|
+
["aria-hidden"]: isMeaningfulImg ? void 0 : true
|
|
37553
|
+
};
|
|
37554
|
+
return /* @__PURE__ */ import_react43.default.createElement(
|
|
37555
|
+
"svg",
|
|
37556
|
+
{
|
|
37557
|
+
className: (0, import_classnames22.default)(import_Icon_module.default.icon, classNameOverride, {
|
|
37558
|
+
[import_Icon_module.default.inheritSize]: inheritSize
|
|
37559
|
+
}),
|
|
37560
|
+
viewBox: icon.viewBox,
|
|
37561
|
+
focusable: "false",
|
|
37562
|
+
...accessibilityProps,
|
|
37563
|
+
...props
|
|
37564
|
+
},
|
|
37565
|
+
renderTitle(),
|
|
37566
|
+
renderDesc(),
|
|
37567
|
+
/* @__PURE__ */ import_react43.default.createElement("use", { xlinkHref: `#${icon.id}` })
|
|
37568
|
+
);
|
|
37569
|
+
};
|
|
37570
|
+
Icon2.displayName = "Icon";
|
|
37251
37571
|
|
|
37252
37572
|
// ../component-library/icons/success.icon.svg
|
|
37253
37573
|
var success_icon_default = "../success.icon-QNKK4XJE.svg";
|
|
@@ -37272,17 +37592,17 @@ ${singleLine(message)}${reset}
|
|
|
37272
37592
|
(prev, curr) => curr ? [curr, prev].join(" ") : prev,
|
|
37273
37593
|
""
|
|
37274
37594
|
);
|
|
37275
|
-
return /* @__PURE__ */
|
|
37595
|
+
return /* @__PURE__ */ import_react44.default.createElement(
|
|
37276
37596
|
FieldGroup,
|
|
37277
37597
|
{
|
|
37278
37598
|
id: `${id2}-field-group`,
|
|
37279
37599
|
automationId: `${id2}-field-group`,
|
|
37280
37600
|
inline,
|
|
37281
|
-
classNameOverride: (0,
|
|
37601
|
+
classNameOverride: (0, import_classnames23.default)(import_TextField_module.default.withLabel, {
|
|
37282
37602
|
[import_TextField_module.default.withDisabled]: disabled
|
|
37283
37603
|
})
|
|
37284
37604
|
},
|
|
37285
|
-
/* @__PURE__ */
|
|
37605
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
|
37286
37606
|
Label,
|
|
37287
37607
|
{
|
|
37288
37608
|
id: `${id2}-field-label`,
|
|
@@ -37293,7 +37613,7 @@ ${singleLine(message)}${reset}
|
|
|
37293
37613
|
disabled
|
|
37294
37614
|
}
|
|
37295
37615
|
),
|
|
37296
|
-
/* @__PURE__ */
|
|
37616
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
|
37297
37617
|
Input,
|
|
37298
37618
|
{
|
|
37299
37619
|
id: `${id2}-field-input`,
|
|
@@ -37302,27 +37622,27 @@ ${singleLine(message)}${reset}
|
|
|
37302
37622
|
disabled,
|
|
37303
37623
|
reversed,
|
|
37304
37624
|
status,
|
|
37305
|
-
startIconAdornment: icon && /* @__PURE__ */
|
|
37306
|
-
endIconAdornment: status === "success" && /* @__PURE__ */
|
|
37625
|
+
startIconAdornment: icon && /* @__PURE__ */ import_react44.default.createElement("div", { className: import_TextField_module.default.icon }, /* @__PURE__ */ import_react44.default.createElement(Icon2, { icon, role: "presentation" })),
|
|
37626
|
+
endIconAdornment: status === "success" && /* @__PURE__ */ import_react44.default.createElement(
|
|
37307
37627
|
"div",
|
|
37308
37628
|
{
|
|
37309
|
-
className: (0,
|
|
37629
|
+
className: (0, import_classnames23.default)(import_TextField_module.default.success, {
|
|
37310
37630
|
[import_TextField_module.default.disabled]: disabled
|
|
37311
37631
|
})
|
|
37312
37632
|
},
|
|
37313
|
-
/* @__PURE__ */
|
|
37633
|
+
/* @__PURE__ */ import_react44.default.createElement(Icon2, { icon: success_icon_default, role: "presentation" })
|
|
37314
37634
|
),
|
|
37315
37635
|
...restProps
|
|
37316
37636
|
}
|
|
37317
37637
|
),
|
|
37318
|
-
validationMessage && /* @__PURE__ */
|
|
37638
|
+
validationMessage && /* @__PURE__ */ import_react44.default.createElement(
|
|
37319
37639
|
"div",
|
|
37320
37640
|
{
|
|
37321
|
-
className: (0,
|
|
37641
|
+
className: (0, import_classnames23.default)(import_TextField_module.default.message, {
|
|
37322
37642
|
[import_TextField_module.default.disabled]: disabled
|
|
37323
37643
|
})
|
|
37324
37644
|
},
|
|
37325
|
-
/* @__PURE__ */
|
|
37645
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
|
37326
37646
|
FieldMessage,
|
|
37327
37647
|
{
|
|
37328
37648
|
id: validationMessageAria,
|
|
@@ -37333,14 +37653,14 @@ ${singleLine(message)}${reset}
|
|
|
37333
37653
|
}
|
|
37334
37654
|
)
|
|
37335
37655
|
),
|
|
37336
|
-
description && /* @__PURE__ */
|
|
37656
|
+
description && /* @__PURE__ */ import_react44.default.createElement(
|
|
37337
37657
|
"div",
|
|
37338
37658
|
{
|
|
37339
|
-
className: (0,
|
|
37659
|
+
className: (0, import_classnames23.default)(import_TextField_module.default.message, {
|
|
37340
37660
|
[import_TextField_module.default.disabled]: disabled
|
|
37341
37661
|
})
|
|
37342
37662
|
},
|
|
37343
|
-
/* @__PURE__ */
|
|
37663
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
|
37344
37664
|
FieldMessage,
|
|
37345
37665
|
{
|
|
37346
37666
|
id: descriptionAria,
|
|
@@ -37355,8 +37675,8 @@ ${singleLine(message)}${reset}
|
|
|
37355
37675
|
TextField.displayName = "TextField";
|
|
37356
37676
|
|
|
37357
37677
|
// ../../draft-packages/form/KaizenDraft/Form/ToggleSwitchField/ToggleSwitchField.tsx
|
|
37358
|
-
var
|
|
37359
|
-
var
|
|
37678
|
+
var import_react45 = __toESM(require_react());
|
|
37679
|
+
var import_classnames24 = __toESM(require_classnames());
|
|
37360
37680
|
var import_ToggleSwitchField_module = __toESM(__require("../ToggleSwitchField.module-BJOL7O7U.scss"));
|
|
37361
37681
|
var ToggleSwitchField = ({
|
|
37362
37682
|
id: id2 = "",
|
|
@@ -37368,18 +37688,18 @@ ${singleLine(message)}${reset}
|
|
|
37368
37688
|
inline,
|
|
37369
37689
|
fullWidth,
|
|
37370
37690
|
...restProps
|
|
37371
|
-
}) => /* @__PURE__ */
|
|
37691
|
+
}) => /* @__PURE__ */ import_react45.default.createElement(
|
|
37372
37692
|
FieldGroup,
|
|
37373
37693
|
{
|
|
37374
37694
|
id: `${id2}-field-group`,
|
|
37375
37695
|
inline,
|
|
37376
37696
|
automationId: `${id2}-field-group`,
|
|
37377
|
-
classNameOverride: (0,
|
|
37697
|
+
classNameOverride: (0, import_classnames24.default)(import_ToggleSwitchField_module.default.container, {
|
|
37378
37698
|
[import_ToggleSwitchField_module.default.fullWidth]: fullWidth,
|
|
37379
37699
|
[import_ToggleSwitchField_module.default.on]: toggledStatus === "on" /* ON */
|
|
37380
37700
|
})
|
|
37381
37701
|
},
|
|
37382
|
-
/* @__PURE__ */
|
|
37702
|
+
/* @__PURE__ */ import_react45.default.createElement("div", { className: import_ToggleSwitchField_module.default.inner }, /* @__PURE__ */ import_react45.default.createElement(
|
|
37383
37703
|
Label,
|
|
37384
37704
|
{
|
|
37385
37705
|
id: `${id2}-field-label`,
|
|
@@ -37391,7 +37711,7 @@ ${singleLine(message)}${reset}
|
|
|
37391
37711
|
disabled,
|
|
37392
37712
|
reversed
|
|
37393
37713
|
},
|
|
37394
|
-
/* @__PURE__ */
|
|
37714
|
+
/* @__PURE__ */ import_react45.default.createElement(
|
|
37395
37715
|
ToggleSwitch,
|
|
37396
37716
|
{
|
|
37397
37717
|
id: `${id2}-field-toggle`,
|
|
@@ -37407,8 +37727,8 @@ ${singleLine(message)}${reset}
|
|
|
37407
37727
|
ToggleSwitchField.displayName = "ToggleSwitchField";
|
|
37408
37728
|
|
|
37409
37729
|
// ../../draft-packages/form/KaizenDraft/Form/TextAreaField/TextAreaField.tsx
|
|
37410
|
-
var
|
|
37411
|
-
var
|
|
37730
|
+
var import_react46 = __toESM(require_react());
|
|
37731
|
+
var import_classnames25 = __toESM(require_classnames());
|
|
37412
37732
|
var import_TextAreaField_module = __toESM(__require("../TextAreaField.module-4K35MSCT.scss"));
|
|
37413
37733
|
var TextAreaField = ({
|
|
37414
37734
|
labelText,
|
|
@@ -37432,14 +37752,14 @@ ${singleLine(message)}${reset}
|
|
|
37432
37752
|
const renderDescription = (position) => {
|
|
37433
37753
|
if (!description)
|
|
37434
37754
|
return null;
|
|
37435
|
-
return /* @__PURE__ */
|
|
37755
|
+
return /* @__PURE__ */ import_react46.default.createElement(
|
|
37436
37756
|
"div",
|
|
37437
37757
|
{
|
|
37438
|
-
className: (0,
|
|
37758
|
+
className: (0, import_classnames25.default)(import_TextAreaField_module.default.message, {
|
|
37439
37759
|
[import_TextAreaField_module.default.disabled]: disabled
|
|
37440
37760
|
})
|
|
37441
37761
|
},
|
|
37442
|
-
/* @__PURE__ */
|
|
37762
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
|
37443
37763
|
FieldMessage,
|
|
37444
37764
|
{
|
|
37445
37765
|
id: descriptionAria,
|
|
@@ -37451,7 +37771,7 @@ ${singleLine(message)}${reset}
|
|
|
37451
37771
|
)
|
|
37452
37772
|
);
|
|
37453
37773
|
};
|
|
37454
|
-
return /* @__PURE__ */
|
|
37774
|
+
return /* @__PURE__ */ import_react46.default.createElement(
|
|
37455
37775
|
FieldGroup,
|
|
37456
37776
|
{
|
|
37457
37777
|
id: `${id2}-field-group`,
|
|
@@ -37459,14 +37779,14 @@ ${singleLine(message)}${reset}
|
|
|
37459
37779
|
automationId: `${id2}-field-group`,
|
|
37460
37780
|
classNameOverride: disabled ? import_TextAreaField_module.default.disabled : void 0
|
|
37461
37781
|
},
|
|
37462
|
-
/* @__PURE__ */
|
|
37782
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
|
37463
37783
|
"div",
|
|
37464
37784
|
{
|
|
37465
|
-
className: (0,
|
|
37785
|
+
className: (0, import_classnames25.default)(import_TextAreaField_module.default.textareaLabel, {
|
|
37466
37786
|
[import_TextAreaField_module.default.textareaLabelProminent]: variant === "prominent"
|
|
37467
37787
|
})
|
|
37468
37788
|
},
|
|
37469
|
-
/* @__PURE__ */
|
|
37789
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
|
37470
37790
|
Label,
|
|
37471
37791
|
{
|
|
37472
37792
|
id: `${id2}-field-label`,
|
|
@@ -37480,7 +37800,7 @@ ${singleLine(message)}${reset}
|
|
|
37480
37800
|
)
|
|
37481
37801
|
),
|
|
37482
37802
|
renderDescriptionOnTop && renderDescription("top"),
|
|
37483
|
-
/* @__PURE__ */
|
|
37803
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
|
37484
37804
|
TextArea,
|
|
37485
37805
|
{
|
|
37486
37806
|
id: `${id2}-field-textarea`,
|
|
@@ -37492,7 +37812,7 @@ ${singleLine(message)}${reset}
|
|
|
37492
37812
|
...restProps
|
|
37493
37813
|
}
|
|
37494
37814
|
),
|
|
37495
|
-
!disabled && validationMessage && /* @__PURE__ */
|
|
37815
|
+
!disabled && validationMessage && /* @__PURE__ */ import_react46.default.createElement(
|
|
37496
37816
|
FieldMessage,
|
|
37497
37817
|
{
|
|
37498
37818
|
id: validationMessageAria,
|
|
@@ -37508,8 +37828,8 @@ ${singleLine(message)}${reset}
|
|
|
37508
37828
|
TextAreaField.displayName = "TextAreaField";
|
|
37509
37829
|
|
|
37510
37830
|
// ../../draft-packages/form/KaizenDraft/Form/RadioField/RadioField.tsx
|
|
37511
|
-
var
|
|
37512
|
-
var
|
|
37831
|
+
var import_react47 = __toESM(require_react());
|
|
37832
|
+
var import_classnames26 = __toESM(require_classnames());
|
|
37513
37833
|
var import_RadioField_module = __toESM(__require("../RadioField.module-C2XRADW5.scss"));
|
|
37514
37834
|
var RadioField = ({
|
|
37515
37835
|
id: id2,
|
|
@@ -37521,17 +37841,17 @@ ${singleLine(message)}${reset}
|
|
|
37521
37841
|
automationId,
|
|
37522
37842
|
classNameOverride,
|
|
37523
37843
|
...restProps
|
|
37524
|
-
}) => /* @__PURE__ */
|
|
37844
|
+
}) => /* @__PURE__ */ import_react47.default.createElement(
|
|
37525
37845
|
"div",
|
|
37526
37846
|
{
|
|
37527
37847
|
"data-automation-id": automationId,
|
|
37528
|
-
className: (0,
|
|
37848
|
+
className: (0, import_classnames26.default)(import_RadioField_module.default.container, classNameOverride, {
|
|
37529
37849
|
[import_RadioField_module.default.selected]: selectedStatus,
|
|
37530
37850
|
[import_RadioField_module.default.inline]: inline,
|
|
37531
37851
|
[import_RadioField_module.default.reversed]: reversed
|
|
37532
37852
|
})
|
|
37533
37853
|
},
|
|
37534
|
-
/* @__PURE__ */
|
|
37854
|
+
/* @__PURE__ */ import_react47.default.createElement(
|
|
37535
37855
|
Label,
|
|
37536
37856
|
{
|
|
37537
37857
|
automationId: `${id2}-field-label`,
|
|
@@ -37542,7 +37862,7 @@ ${singleLine(message)}${reset}
|
|
|
37542
37862
|
disabled,
|
|
37543
37863
|
reversed
|
|
37544
37864
|
},
|
|
37545
|
-
/* @__PURE__ */
|
|
37865
|
+
/* @__PURE__ */ import_react47.default.createElement(
|
|
37546
37866
|
Radio,
|
|
37547
37867
|
{
|
|
37548
37868
|
automationId: `${id2}-radio-input`,
|
|
@@ -37558,8 +37878,8 @@ ${singleLine(message)}${reset}
|
|
|
37558
37878
|
RadioField.displayName = "RadioField";
|
|
37559
37879
|
|
|
37560
37880
|
// ../../draft-packages/form/KaizenDraft/Form/RadioGroup/RadioGroup.tsx
|
|
37561
|
-
var
|
|
37562
|
-
var
|
|
37881
|
+
var import_react48 = __toESM(require_react());
|
|
37882
|
+
var import_classnames27 = __toESM(require_classnames());
|
|
37563
37883
|
var import_RadioGroup_module = __toESM(__require("../RadioGroup.module-PDLRO572.scss"));
|
|
37564
37884
|
var RadioGroup = ({
|
|
37565
37885
|
children,
|
|
@@ -37570,11 +37890,11 @@ ${singleLine(message)}${reset}
|
|
|
37570
37890
|
automationId = "",
|
|
37571
37891
|
classNameOverride,
|
|
37572
37892
|
...restProps
|
|
37573
|
-
}) => /* @__PURE__ */
|
|
37893
|
+
}) => /* @__PURE__ */ import_react48.default.createElement(
|
|
37574
37894
|
"div",
|
|
37575
37895
|
{
|
|
37576
37896
|
"data-automation-id": automationId,
|
|
37577
|
-
className: (0,
|
|
37897
|
+
className: (0, import_classnames27.default)(import_RadioGroup_module.default.radioGroupContainer, classNameOverride, {
|
|
37578
37898
|
[import_RadioGroup_module.default.noBottomMargin]: noBottomMargin,
|
|
37579
37899
|
[import_RadioGroup_module.default.reversed]: reversed
|
|
37580
37900
|
}),
|
|
@@ -37582,7 +37902,7 @@ ${singleLine(message)}${reset}
|
|
|
37582
37902
|
"aria-labelledby": labelId,
|
|
37583
37903
|
...restProps
|
|
37584
37904
|
},
|
|
37585
|
-
/* @__PURE__ */
|
|
37905
|
+
/* @__PURE__ */ import_react48.default.createElement("div", { className: import_RadioGroup_module.default.radioGroupLabel }, /* @__PURE__ */ import_react48.default.createElement(
|
|
37586
37906
|
Label,
|
|
37587
37907
|
{
|
|
37588
37908
|
id: labelId,
|
|
@@ -37597,7 +37917,7 @@ ${singleLine(message)}${reset}
|
|
|
37597
37917
|
RadioGroup.displayName = "RadioGroup";
|
|
37598
37918
|
|
|
37599
37919
|
// ../../draft-packages/form/KaizenDraft/Form/SearchField/SearchField.tsx
|
|
37600
|
-
var
|
|
37920
|
+
var import_react49 = __toESM(require_react());
|
|
37601
37921
|
var import_SearchField_module = __toESM(__require("../SearchField.module-2EV6HGZE.scss"));
|
|
37602
37922
|
var SearchField = ({
|
|
37603
37923
|
id: id2,
|
|
@@ -37609,7 +37929,7 @@ ${singleLine(message)}${reset}
|
|
|
37609
37929
|
...restProps
|
|
37610
37930
|
}) => {
|
|
37611
37931
|
const showVisibleLabel = !secondary;
|
|
37612
|
-
return /* @__PURE__ */
|
|
37932
|
+
return /* @__PURE__ */ import_react49.default.createElement("div", { className: classNameOverride }, showVisibleLabel && /* @__PURE__ */ import_react49.default.createElement(
|
|
37613
37933
|
Label,
|
|
37614
37934
|
{
|
|
37615
37935
|
htmlFor: id2,
|
|
@@ -37618,7 +37938,7 @@ ${singleLine(message)}${reset}
|
|
|
37618
37938
|
disabled,
|
|
37619
37939
|
classNameOverride: import_SearchField_module.default.label
|
|
37620
37940
|
}
|
|
37621
|
-
), /* @__PURE__ */
|
|
37941
|
+
), /* @__PURE__ */ import_react49.default.createElement(
|
|
37622
37942
|
InputSearch,
|
|
37623
37943
|
{
|
|
37624
37944
|
"aria-label": !showVisibleLabel ? labelText : void 0,
|
|
@@ -37633,8 +37953,8 @@ ${singleLine(message)}${reset}
|
|
|
37633
37953
|
SearchField.displayName = "SearchField";
|
|
37634
37954
|
|
|
37635
37955
|
// ../../draft-packages/form/KaizenDraft/Form/Slider/Slider.tsx
|
|
37636
|
-
var
|
|
37637
|
-
var
|
|
37956
|
+
var import_react50 = __toESM(require_react());
|
|
37957
|
+
var import_classnames28 = __toESM(require_classnames());
|
|
37638
37958
|
var import_Slider_module = __toESM(__require("../Slider.module-EIBFJ2LP.scss"));
|
|
37639
37959
|
var Slider = (props) => {
|
|
37640
37960
|
const {
|
|
@@ -37648,14 +37968,14 @@ ${singleLine(message)}${reset}
|
|
|
37648
37968
|
...restProps
|
|
37649
37969
|
} = props;
|
|
37650
37970
|
const descriptionId = `${id2}-description`;
|
|
37651
|
-
return /* @__PURE__ */
|
|
37971
|
+
return /* @__PURE__ */ import_react50.default.createElement(FieldGroup, { inline: true }, /* @__PURE__ */ import_react50.default.createElement(
|
|
37652
37972
|
"div",
|
|
37653
37973
|
{
|
|
37654
|
-
className: (0,
|
|
37974
|
+
className: (0, import_classnames28.default)(import_Slider_module.default.wrapper, {
|
|
37655
37975
|
[import_Slider_module.default.labelInline]: labelPosition === "inline"
|
|
37656
37976
|
})
|
|
37657
37977
|
},
|
|
37658
|
-
/* @__PURE__ */
|
|
37978
|
+
/* @__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(
|
|
37659
37979
|
Label,
|
|
37660
37980
|
{
|
|
37661
37981
|
htmlFor: id2,
|
|
@@ -37663,7 +37983,7 @@ ${singleLine(message)}${reset}
|
|
|
37663
37983
|
variant,
|
|
37664
37984
|
disabled
|
|
37665
37985
|
}
|
|
37666
|
-
)), description && /* @__PURE__ */
|
|
37986
|
+
)), description && /* @__PURE__ */ import_react50.default.createElement(
|
|
37667
37987
|
Paragraph,
|
|
37668
37988
|
{
|
|
37669
37989
|
variant: "small",
|
|
@@ -37672,7 +37992,7 @@ ${singleLine(message)}${reset}
|
|
|
37672
37992
|
},
|
|
37673
37993
|
description
|
|
37674
37994
|
)),
|
|
37675
|
-
/* @__PURE__ */
|
|
37995
|
+
/* @__PURE__ */ import_react50.default.createElement("div", { className: import_Slider_module.default.inputWrapper }, /* @__PURE__ */ import_react50.default.createElement(
|
|
37676
37996
|
InputRange,
|
|
37677
37997
|
{
|
|
37678
37998
|
id: id2,
|
|
@@ -37680,13 +38000,13 @@ ${singleLine(message)}${reset}
|
|
|
37680
38000
|
disabled,
|
|
37681
38001
|
...restProps
|
|
37682
38002
|
}
|
|
37683
|
-
), readOnlyMessage && /* @__PURE__ */
|
|
38003
|
+
), readOnlyMessage && /* @__PURE__ */ import_react50.default.createElement("div", { className: import_Slider_module.default.readOnlyMessage }, readOnlyMessage))
|
|
37684
38004
|
));
|
|
37685
38005
|
};
|
|
37686
38006
|
Slider.displayName = "Slider";
|
|
37687
38007
|
|
|
37688
38008
|
// ../select/src/Select/components/ListBox/ListBox.tsx
|
|
37689
|
-
var
|
|
38009
|
+
var import_react52 = __toESM(require_react());
|
|
37690
38010
|
|
|
37691
38011
|
// ../../node_modules/@react-aria/listbox/dist/module.js
|
|
37692
38012
|
var $b1f0cad8af73213b$export$3585ede4d035bf14 = /* @__PURE__ */ new WeakMap();
|
|
@@ -37838,10 +38158,10 @@ ${singleLine(message)}${reset}
|
|
|
37838
38158
|
}
|
|
37839
38159
|
|
|
37840
38160
|
// ../select/src/Select/context/SelectContext.tsx
|
|
37841
|
-
var
|
|
37842
|
-
var SelectContext =
|
|
38161
|
+
var import_react51 = __toESM(require_react());
|
|
38162
|
+
var SelectContext = import_react51.default.createContext(null);
|
|
37843
38163
|
var useSelectContext = () => {
|
|
37844
|
-
const context = (0,
|
|
38164
|
+
const context = (0, import_react51.useContext)(SelectContext);
|
|
37845
38165
|
if (!context) {
|
|
37846
38166
|
throw new Error(
|
|
37847
38167
|
"useSelectContext must be used within the SelectContext.Provider"
|
|
@@ -37856,30 +38176,30 @@ ${singleLine(message)}${reset}
|
|
|
37856
38176
|
menuProps,
|
|
37857
38177
|
children
|
|
37858
38178
|
}) => {
|
|
37859
|
-
const ref =
|
|
38179
|
+
const ref = import_react52.default.useRef(null);
|
|
37860
38180
|
const { state } = useSelectContext();
|
|
37861
38181
|
const { listBoxProps } = $c132121280ec012d$export$50eacbbf140a3141(
|
|
37862
38182
|
{ ...menuProps, disallowEmptySelection: true, autoFocus: "first" },
|
|
37863
38183
|
state,
|
|
37864
38184
|
ref
|
|
37865
38185
|
);
|
|
37866
|
-
return /* @__PURE__ */
|
|
38186
|
+
return /* @__PURE__ */ import_react52.default.createElement("ul", { ...listBoxProps, ref, className: import_ListBox_module.default.listBox }, children);
|
|
37867
38187
|
};
|
|
37868
38188
|
ListBox.displayName = "ListBox";
|
|
37869
38189
|
|
|
37870
38190
|
// ../select/src/Select/components/ListBoxSection/ListBoxSection.tsx
|
|
37871
|
-
var
|
|
38191
|
+
var import_react54 = __toESM(require_react());
|
|
37872
38192
|
|
|
37873
38193
|
// ../select/src/Select/components/Option/Option.tsx
|
|
37874
|
-
var
|
|
37875
|
-
var
|
|
38194
|
+
var import_react53 = __toESM(require_react());
|
|
38195
|
+
var import_classnames29 = __toESM(require_classnames());
|
|
37876
38196
|
var import_Option_module = __toESM(__require("../Option.module-O2QRLWHC.scss"));
|
|
37877
38197
|
var Option = ({
|
|
37878
38198
|
item,
|
|
37879
38199
|
classNameOverride,
|
|
37880
38200
|
...props
|
|
37881
38201
|
}) => {
|
|
37882
|
-
const ref =
|
|
38202
|
+
const ref = import_react53.default.useRef(null);
|
|
37883
38203
|
const { state } = useSelectContext();
|
|
37884
38204
|
const { optionProps, isSelected, isDisabled } = $293f70390ea03370$export$497855f14858aa34(
|
|
37885
38205
|
{ key: item.key },
|
|
@@ -37887,12 +38207,12 @@ ${singleLine(message)}${reset}
|
|
|
37887
38207
|
ref
|
|
37888
38208
|
);
|
|
37889
38209
|
const { isFocusVisible, focusProps } = $f7dceffc5ad7768b$export$4e328f61c538687f();
|
|
37890
|
-
return /* @__PURE__ */
|
|
38210
|
+
return /* @__PURE__ */ import_react53.default.createElement(
|
|
37891
38211
|
"li",
|
|
37892
38212
|
{
|
|
37893
38213
|
...$3ef42575df84b30b$export$9d1611c77c2fe928(optionProps, focusProps, props),
|
|
37894
38214
|
ref,
|
|
37895
|
-
className: (0,
|
|
38215
|
+
className: (0, import_classnames29.default)([
|
|
37896
38216
|
import_Option_module.default.option,
|
|
37897
38217
|
isSelected && import_Option_module.default.isSelected,
|
|
37898
38218
|
isFocusVisible && import_Option_module.default.isFocusVisible,
|
|
@@ -37902,12 +38222,12 @@ ${singleLine(message)}${reset}
|
|
|
37902
38222
|
"aria-label": item.textValue
|
|
37903
38223
|
},
|
|
37904
38224
|
item.rendered,
|
|
37905
|
-
/* @__PURE__ */
|
|
38225
|
+
/* @__PURE__ */ import_react53.default.createElement(
|
|
37906
38226
|
"span",
|
|
37907
38227
|
{
|
|
37908
|
-
className: (0,
|
|
38228
|
+
className: (0, import_classnames29.default)([import_Option_module.default.icon, isSelected && import_Option_module.default.isSelected])
|
|
37909
38229
|
},
|
|
37910
|
-
isSelected && /* @__PURE__ */
|
|
38230
|
+
isSelected && /* @__PURE__ */ import_react53.default.createElement(Icon, { icon: check_icon_default, role: "presentation" })
|
|
37911
38231
|
)
|
|
37912
38232
|
);
|
|
37913
38233
|
};
|
|
@@ -37922,7 +38242,7 @@ ${singleLine(message)}${reset}
|
|
|
37922
38242
|
heading: section.rendered,
|
|
37923
38243
|
"aria-label": section["aria-label"]
|
|
37924
38244
|
});
|
|
37925
|
-
return /* @__PURE__ */
|
|
38245
|
+
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(
|
|
37926
38246
|
Heading,
|
|
37927
38247
|
{
|
|
37928
38248
|
variant: "heading-6",
|
|
@@ -37930,26 +38250,26 @@ ${singleLine(message)}${reset}
|
|
|
37930
38250
|
classNameOverride: import_ListBoxSection_module.default.sectionHeading
|
|
37931
38251
|
},
|
|
37932
38252
|
section.rendered
|
|
37933
|
-
), /* @__PURE__ */
|
|
38253
|
+
), /* @__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 })))));
|
|
37934
38254
|
};
|
|
37935
38255
|
ListBoxSection.displayName = "ListBoxSection";
|
|
37936
38256
|
|
|
37937
38257
|
// ../select/src/Select/components/Overlay/Overlay.tsx
|
|
37938
|
-
var
|
|
38258
|
+
var import_react55 = __toESM(require_react());
|
|
37939
38259
|
var import_Overlay_module = __toESM(__require("../Overlay.module-W7K5DWH6.scss"));
|
|
37940
38260
|
var Overlay = ({ children }) => {
|
|
37941
|
-
const overlayRef =
|
|
38261
|
+
const overlayRef = import_react55.default.useRef(null);
|
|
37942
38262
|
const { state } = useSelectContext();
|
|
37943
38263
|
const { overlayProps } = $a11501f3d1d39e6c$export$ea8f71083e90600f(
|
|
37944
38264
|
{ isDismissable: true, isOpen: state.isOpen, onClose: state.close },
|
|
37945
38265
|
overlayRef
|
|
37946
38266
|
);
|
|
37947
|
-
return /* @__PURE__ */
|
|
38267
|
+
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 })));
|
|
37948
38268
|
};
|
|
37949
38269
|
Overlay.displayName = "Overlay";
|
|
37950
38270
|
|
|
37951
38271
|
// ../select/src/Select/components/TriggerButton/TriggerButton.tsx
|
|
37952
|
-
var
|
|
38272
|
+
var import_react56 = __toESM(require_react());
|
|
37953
38273
|
|
|
37954
38274
|
// ../../node_modules/@react-aria/button/dist/module.js
|
|
37955
38275
|
function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
|
|
@@ -38019,14 +38339,17 @@ ${singleLine(message)}${reset}
|
|
|
38019
38339
|
}
|
|
38020
38340
|
|
|
38021
38341
|
// ../select/src/Select/components/TriggerButton/TriggerButton.tsx
|
|
38022
|
-
var
|
|
38342
|
+
var import_classnames30 = __toESM(require_classnames());
|
|
38343
|
+
|
|
38344
|
+
// ../component-library/icons/chevron-down.icon.svg
|
|
38345
|
+
var chevron_down_icon_default2 = "../chevron-down.icon-COG3GAYR.svg";
|
|
38023
38346
|
|
|
38024
38347
|
// ../component-library/icons/chevron-up.icon.svg
|
|
38025
38348
|
var chevron_up_icon_default = "../chevron-up.icon-O5VRF5BX.svg";
|
|
38026
38349
|
|
|
38027
38350
|
// ../select/src/Select/components/TriggerButton/TriggerButton.tsx
|
|
38028
38351
|
var import_TriggerButton_module = __toESM(__require("../TriggerButton.module-ML4U7VQL.scss"));
|
|
38029
|
-
var TriggerButton =
|
|
38352
|
+
var TriggerButton = import_react56.default.forwardRef(
|
|
38030
38353
|
({
|
|
38031
38354
|
placeholder = "Select",
|
|
38032
38355
|
classNameOverride,
|
|
@@ -38041,12 +38364,12 @@ ${singleLine(message)}${reset}
|
|
|
38041
38364
|
const value = (_a = state == null ? void 0 : state.selectedItem) == null ? void 0 : _a.rendered;
|
|
38042
38365
|
const ref = $df56164dff5785e2$export$4338b53315abf666(buttonRef2);
|
|
38043
38366
|
const { buttonProps } = $701a24aa0da5b062$export$ea18c227d4417cc3(triggerProps, ref);
|
|
38044
|
-
return /* @__PURE__ */
|
|
38367
|
+
return /* @__PURE__ */ import_react56.default.createElement(
|
|
38045
38368
|
"button",
|
|
38046
38369
|
{
|
|
38047
38370
|
...$3ef42575df84b30b$export$9d1611c77c2fe928(buttonProps, restProps),
|
|
38048
38371
|
ref,
|
|
38049
|
-
className: (0,
|
|
38372
|
+
className: (0, import_classnames30.default)([
|
|
38050
38373
|
import_TriggerButton_module.default.button,
|
|
38051
38374
|
(value === null || value === void 0) && import_TriggerButton_module.default.placeholder,
|
|
38052
38375
|
status === "error" && import_TriggerButton_module.default.error,
|
|
@@ -38056,11 +38379,11 @@ ${singleLine(message)}${reset}
|
|
|
38056
38379
|
classNameOverride
|
|
38057
38380
|
])
|
|
38058
38381
|
},
|
|
38059
|
-
/* @__PURE__ */
|
|
38060
|
-
/* @__PURE__ */
|
|
38382
|
+
/* @__PURE__ */ import_react56.default.createElement("span", { ...valueProps, className: import_TriggerButton_module.default.value }, value ?? placeholder),
|
|
38383
|
+
/* @__PURE__ */ import_react56.default.createElement(
|
|
38061
38384
|
Icon,
|
|
38062
38385
|
{
|
|
38063
|
-
icon: state.isOpen ? chevron_up_icon_default :
|
|
38386
|
+
icon: state.isOpen ? chevron_up_icon_default : chevron_down_icon_default2,
|
|
38064
38387
|
role: "presentation",
|
|
38065
38388
|
classNameOverride: import_TriggerButton_module.default.icon
|
|
38066
38389
|
}
|
|
@@ -38072,7 +38395,7 @@ ${singleLine(message)}${reset}
|
|
|
38072
38395
|
|
|
38073
38396
|
// ../select/src/Select/Select.tsx
|
|
38074
38397
|
var import_Select_module = __toESM(__require("../Select.module-WOGFQRYI.scss"));
|
|
38075
|
-
var getSelectChildren = (item) => Array.isArray(item.value) ? /* @__PURE__ */
|
|
38398
|
+
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);
|
|
38076
38399
|
var Select = ({
|
|
38077
38400
|
id: id2,
|
|
38078
38401
|
label,
|
|
@@ -38086,12 +38409,12 @@ ${singleLine(message)}${reset}
|
|
|
38086
38409
|
defaultOpen,
|
|
38087
38410
|
validationMessage,
|
|
38088
38411
|
classNameOverride,
|
|
38089
|
-
trigger = (triggerProps) => /* @__PURE__ */
|
|
38412
|
+
trigger = (triggerProps) => /* @__PURE__ */ import_react57.default.createElement(TriggerButton, { ...triggerProps, ref: buttonRef }),
|
|
38090
38413
|
children,
|
|
38091
38414
|
...restProps
|
|
38092
38415
|
}) => {
|
|
38093
38416
|
const descriptionId = `${id2}-field-message`;
|
|
38094
|
-
const buttonRef2 =
|
|
38417
|
+
const buttonRef2 = import_react57.default.useRef(null);
|
|
38095
38418
|
const invalidStatus = status === "error" ? "invalid" : "valid";
|
|
38096
38419
|
const ariaSelectProps = {
|
|
38097
38420
|
label,
|
|
@@ -38107,7 +38430,7 @@ ${singleLine(message)}${reset}
|
|
|
38107
38430
|
};
|
|
38108
38431
|
const state = $2bc3a590c5373a4e$export$5159ec8b34d4ec12(ariaSelectProps);
|
|
38109
38432
|
const renderChildren = children ? children : ({ items: items2 }) => items2.map(
|
|
38110
|
-
(item) => item.type === "section" ? /* @__PURE__ */
|
|
38433
|
+
(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 })
|
|
38111
38434
|
);
|
|
38112
38435
|
const {
|
|
38113
38436
|
labelProps,
|
|
@@ -38125,29 +38448,29 @@ ${singleLine(message)}${reset}
|
|
|
38125
38448
|
buttonRef2
|
|
38126
38449
|
);
|
|
38127
38450
|
const items = Array.from(state.collection);
|
|
38128
|
-
(0,
|
|
38451
|
+
(0, import_react57.useEffect)(() => {
|
|
38129
38452
|
var _a;
|
|
38130
38453
|
if (state.isOpen === false && defaultOpen) {
|
|
38131
38454
|
(_a = buttonRef2.current) == null ? void 0 : _a.focus();
|
|
38132
38455
|
}
|
|
38133
38456
|
}, [state.isOpen]);
|
|
38134
|
-
return /* @__PURE__ */
|
|
38457
|
+
return /* @__PURE__ */ import_react57.default.createElement(
|
|
38135
38458
|
SelectContext.Provider,
|
|
38136
38459
|
{
|
|
38137
38460
|
value: {
|
|
38138
38461
|
state
|
|
38139
38462
|
}
|
|
38140
38463
|
},
|
|
38141
|
-
/* @__PURE__ */
|
|
38464
|
+
/* @__PURE__ */ import_react57.default.createElement(
|
|
38142
38465
|
"div",
|
|
38143
38466
|
{
|
|
38144
|
-
className: (0,
|
|
38467
|
+
className: (0, import_classnames31.default)(
|
|
38145
38468
|
!isFullWidth && import_Select_module.default.notFullWidth,
|
|
38146
38469
|
classNameOverride
|
|
38147
38470
|
)
|
|
38148
38471
|
},
|
|
38149
|
-
/* @__PURE__ */
|
|
38150
|
-
/* @__PURE__ */
|
|
38472
|
+
/* @__PURE__ */ import_react57.default.createElement(Label, { ...labelProps, reversed: isReversed }, label),
|
|
38473
|
+
/* @__PURE__ */ import_react57.default.createElement(
|
|
38151
38474
|
$bdd25dc72710631f$export$cbd84cdb2e668835,
|
|
38152
38475
|
{
|
|
38153
38476
|
label,
|
|
@@ -38156,11 +38479,11 @@ ${singleLine(message)}${reset}
|
|
|
38156
38479
|
triggerRef: buttonRef2
|
|
38157
38480
|
}
|
|
38158
38481
|
),
|
|
38159
|
-
/* @__PURE__ */
|
|
38482
|
+
/* @__PURE__ */ import_react57.default.createElement("div", { className: (0, import_classnames31.default)([import_Select_module.default.container]) }, trigger(
|
|
38160
38483
|
{ placeholder, triggerProps, valueProps, status, isReversed },
|
|
38161
38484
|
buttonRef2
|
|
38162
|
-
), state.isOpen && /* @__PURE__ */
|
|
38163
|
-
validationMessage && /* @__PURE__ */
|
|
38485
|
+
), state.isOpen && /* @__PURE__ */ import_react57.default.createElement(Overlay, null, /* @__PURE__ */ import_react57.default.createElement(ListBox, { menuProps }, renderChildren({ items })))),
|
|
38486
|
+
validationMessage && /* @__PURE__ */ import_react57.default.createElement(
|
|
38164
38487
|
FieldMessage,
|
|
38165
38488
|
{
|
|
38166
38489
|
...errorMessageProps,
|
|
@@ -38169,7 +38492,7 @@ ${singleLine(message)}${reset}
|
|
|
38169
38492
|
reversed: isReversed
|
|
38170
38493
|
}
|
|
38171
38494
|
),
|
|
38172
|
-
description && /* @__PURE__ */
|
|
38495
|
+
description && /* @__PURE__ */ import_react57.default.createElement(
|
|
38173
38496
|
FieldMessage,
|
|
38174
38497
|
{
|
|
38175
38498
|
...descriptionProps,
|
|
@@ -38187,23 +38510,23 @@ ${singleLine(message)}${reset}
|
|
|
38187
38510
|
Select.displayName = "Select";
|
|
38188
38511
|
|
|
38189
38512
|
// ../select/src/FilterMultiSelect/components/ListBox/ListBox.tsx
|
|
38190
|
-
var
|
|
38191
|
-
var
|
|
38513
|
+
var import_react61 = __toESM(require_react());
|
|
38514
|
+
var import_classnames32 = __toESM(require_classnames());
|
|
38192
38515
|
|
|
38193
38516
|
// ../select/src/FilterMultiSelect/provider/SelectionProvider/SelectionProvider.tsx
|
|
38194
|
-
var
|
|
38517
|
+
var import_react60 = __toESM(require_react());
|
|
38195
38518
|
|
|
38196
38519
|
// ../a11y/dist/esm/index.js
|
|
38197
|
-
var
|
|
38520
|
+
var import_react58 = __toESM(require_react());
|
|
38198
38521
|
|
|
38199
38522
|
// ../component-library/icons/skip.icon.svg
|
|
38200
38523
|
var skip_icon_default = "../skip.icon-4OAFSA2T.svg";
|
|
38201
38524
|
|
|
38202
38525
|
// ../a11y/dist/esm/index.js
|
|
38203
38526
|
var import_SkipLink_module_KAZA7PAL = __toESM(__require("../SkipLink.module-KAZA7PAL-KAZA7PAL.scss"));
|
|
38204
|
-
var
|
|
38527
|
+
var import_react59 = __toESM(require_react());
|
|
38205
38528
|
var import_VisuallyHidden_module_E5JUNEF5 = __toESM(__require("../VisuallyHidden.module-E5JUNEF5-E5JUNEF5.scss"));
|
|
38206
|
-
var SkipLink = ({ label, skipTo }) => /* @__PURE__ */
|
|
38529
|
+
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)));
|
|
38207
38530
|
SkipLink.displayName = "SkipLink";
|
|
38208
38531
|
var VisuallyHidden = ({
|
|
38209
38532
|
children,
|
|
@@ -38212,23 +38535,23 @@ ${singleLine(message)}${reset}
|
|
|
38212
38535
|
...otherProps
|
|
38213
38536
|
}) => {
|
|
38214
38537
|
const className = `${import_VisuallyHidden_module_E5JUNEF5.default.srOnly} ${classNameOverride}`;
|
|
38215
|
-
return (0,
|
|
38538
|
+
return (0, import_react59.createElement)(tag, { ...otherProps, className }, children);
|
|
38216
38539
|
};
|
|
38217
38540
|
VisuallyHidden.displayName = "VisuallyHidden";
|
|
38218
38541
|
|
|
38219
38542
|
// ../select/src/FilterMultiSelect/provider/SelectionProvider/SelectionProvider.tsx
|
|
38220
|
-
var SelectionContext =
|
|
38543
|
+
var SelectionContext = import_react60.default.createContext(
|
|
38221
38544
|
{}
|
|
38222
38545
|
);
|
|
38223
38546
|
var SelectionProvider = (props) => {
|
|
38224
38547
|
const { onSearchInputChange, ...otherProps } = props;
|
|
38225
|
-
const [searchQuery, setSearchQuery] = (0,
|
|
38226
|
-
|
|
38548
|
+
const [searchQuery, setSearchQuery] = (0, import_react60.useState)("");
|
|
38549
|
+
import_react60.default.useEffect(() => {
|
|
38227
38550
|
if (onSearchInputChange) {
|
|
38228
38551
|
onSearchInputChange(searchQuery);
|
|
38229
38552
|
}
|
|
38230
38553
|
}, [searchQuery, onSearchInputChange]);
|
|
38231
|
-
const searchFilter = (0,
|
|
38554
|
+
const searchFilter = (0, import_react60.useCallback)(
|
|
38232
38555
|
(nodes) => searchQuery ? Array.from(nodes).filter(
|
|
38233
38556
|
(f) => f.textValue.toLowerCase().includes(searchQuery.toLowerCase())
|
|
38234
38557
|
) : nodes,
|
|
@@ -38236,12 +38559,12 @@ ${singleLine(message)}${reset}
|
|
|
38236
38559
|
);
|
|
38237
38560
|
const state = $e72dd72e1c76a225$export$2f645645f7bca764({
|
|
38238
38561
|
...otherProps,
|
|
38239
|
-
children: (item) => /* @__PURE__ */
|
|
38562
|
+
children: (item) => /* @__PURE__ */ import_react60.default.createElement($c1d7fb2ec91bae71$export$6d08773d2e66f8f2, { key: item.value }, item.label),
|
|
38240
38563
|
// For initialising selection and determined item.renderer, can be only Item or Section
|
|
38241
38564
|
filter: onSearchInputChange ? void 0 : searchFilter
|
|
38242
38565
|
// If the user has passed an `onSearchInputChange` we opt them out of the default filtering
|
|
38243
38566
|
});
|
|
38244
|
-
const ref =
|
|
38567
|
+
const ref = import_react60.default.createRef();
|
|
38245
38568
|
const { listBoxProps, labelProps } = $c132121280ec012d$export$50eacbbf140a3141(
|
|
38246
38569
|
{
|
|
38247
38570
|
...otherProps,
|
|
@@ -38251,7 +38574,7 @@ ${singleLine(message)}${reset}
|
|
|
38251
38574
|
state,
|
|
38252
38575
|
ref
|
|
38253
38576
|
);
|
|
38254
|
-
return /* @__PURE__ */
|
|
38577
|
+
return /* @__PURE__ */ import_react60.default.createElement(
|
|
38255
38578
|
SelectionContext.Provider,
|
|
38256
38579
|
{
|
|
38257
38580
|
value: {
|
|
@@ -38263,11 +38586,11 @@ ${singleLine(message)}${reset}
|
|
|
38263
38586
|
searchQuery
|
|
38264
38587
|
}
|
|
38265
38588
|
},
|
|
38266
|
-
/* @__PURE__ */
|
|
38589
|
+
/* @__PURE__ */ import_react60.default.createElement(VisuallyHidden, { ...labelProps }, otherProps.label),
|
|
38267
38590
|
otherProps.children
|
|
38268
38591
|
);
|
|
38269
38592
|
};
|
|
38270
|
-
var useSelectionContext = () => (0,
|
|
38593
|
+
var useSelectionContext = () => (0, import_react60.useContext)(SelectionContext);
|
|
38271
38594
|
var SelectionConsumer = SelectionContext.Consumer;
|
|
38272
38595
|
SelectionProvider.displayName = "SelectionProvider";
|
|
38273
38596
|
|
|
@@ -38275,8 +38598,8 @@ ${singleLine(message)}${reset}
|
|
|
38275
38598
|
var import_ListBox_module2 = __toESM(__require("../ListBox.module-5GNTZUCX.scss"));
|
|
38276
38599
|
var ListBox2 = ({ children }) => {
|
|
38277
38600
|
const { listBoxProps, listRef, selectionState } = useSelectionContext();
|
|
38278
|
-
const [isOverflown, setIsOverflown] = (0,
|
|
38279
|
-
(0,
|
|
38601
|
+
const [isOverflown, setIsOverflown] = (0, import_react61.useState)(false);
|
|
38602
|
+
(0, import_react61.useEffect)(() => {
|
|
38280
38603
|
const listElement = listRef.current;
|
|
38281
38604
|
if (!listElement) {
|
|
38282
38605
|
return;
|
|
@@ -38295,14 +38618,14 @@ ${singleLine(message)}${reset}
|
|
|
38295
38618
|
);
|
|
38296
38619
|
const allItems = Array.from(items);
|
|
38297
38620
|
const hasNoItems = allItems.length === 0;
|
|
38298
|
-
const [itemsState, setItemsState] = (0,
|
|
38621
|
+
const [itemsState, setItemsState] = (0, import_react61.useState)({
|
|
38299
38622
|
selectedItems,
|
|
38300
38623
|
unselectedItems,
|
|
38301
38624
|
disabledItems,
|
|
38302
38625
|
allItems,
|
|
38303
38626
|
hasNoItems
|
|
38304
38627
|
});
|
|
38305
|
-
(0,
|
|
38628
|
+
(0, import_react61.useEffect)(() => {
|
|
38306
38629
|
setItemsState({
|
|
38307
38630
|
selectedItems,
|
|
38308
38631
|
disabledItems,
|
|
@@ -38312,14 +38635,14 @@ ${singleLine(message)}${reset}
|
|
|
38312
38635
|
});
|
|
38313
38636
|
}, [selectionState.collection.size]);
|
|
38314
38637
|
if (hasNoItems) {
|
|
38315
|
-
return /* @__PURE__ */
|
|
38638
|
+
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 }));
|
|
38316
38639
|
}
|
|
38317
|
-
return /* @__PURE__ */
|
|
38640
|
+
return /* @__PURE__ */ import_react61.default.createElement(
|
|
38318
38641
|
"ul",
|
|
38319
38642
|
{
|
|
38320
38643
|
...listBoxProps,
|
|
38321
38644
|
ref: listRef,
|
|
38322
|
-
className: (0,
|
|
38645
|
+
className: (0, import_classnames32.default)(
|
|
38323
38646
|
import_ListBox_module2.default.listBox,
|
|
38324
38647
|
isOverflown ? import_ListBox_module2.default.overflown : null
|
|
38325
38648
|
)
|
|
@@ -38330,28 +38653,28 @@ ${singleLine(message)}${reset}
|
|
|
38330
38653
|
ListBox2.displayName = "ListBox";
|
|
38331
38654
|
|
|
38332
38655
|
// ../select/src/FilterMultiSelect/components/ListBoxSection/ListBoxSection.tsx
|
|
38333
|
-
var
|
|
38656
|
+
var import_react62 = __toESM(require_react());
|
|
38334
38657
|
var import_ListBoxSection_module2 = __toESM(__require("../ListBoxSection.module-53ABDKRS.scss"));
|
|
38335
38658
|
var ListBoxSection2 = ({
|
|
38336
38659
|
items,
|
|
38337
38660
|
sectionName,
|
|
38338
38661
|
children
|
|
38339
|
-
}) => /* @__PURE__ */
|
|
38662
|
+
}) => /* @__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)));
|
|
38340
38663
|
ListBoxSection2.displayName = "ListBoxSection";
|
|
38341
38664
|
|
|
38342
38665
|
// ../select/src/FilterMultiSelect/components/LoadMoreButton/LoadMoreButton.tsx
|
|
38343
|
-
var
|
|
38666
|
+
var React51 = __toESM(require_react());
|
|
38344
38667
|
|
|
38345
38668
|
// ../button/src/Button/Button.tsx
|
|
38346
|
-
var
|
|
38669
|
+
var import_react65 = __toESM(require_react());
|
|
38347
38670
|
|
|
38348
38671
|
// ../button/src/Button/components/GenericButton.tsx
|
|
38349
|
-
var
|
|
38350
|
-
var
|
|
38672
|
+
var import_react64 = __toESM(require_react());
|
|
38673
|
+
var import_classnames34 = __toESM(require_classnames());
|
|
38351
38674
|
|
|
38352
38675
|
// ../../draft-packages/badge/KaizenDraft/Badge/Badge.tsx
|
|
38353
|
-
var
|
|
38354
|
-
var
|
|
38676
|
+
var import_react63 = __toESM(require_react());
|
|
38677
|
+
var import_classnames33 = __toESM(require_classnames());
|
|
38355
38678
|
var import_Badge_module = __toESM(__require("../Badge.module-5JDAQSAV.scss"));
|
|
38356
38679
|
var Badge = ({
|
|
38357
38680
|
children,
|
|
@@ -38360,10 +38683,10 @@ ${singleLine(message)}${reset}
|
|
|
38360
38683
|
size = "small",
|
|
38361
38684
|
classNameOverride,
|
|
38362
38685
|
...restProps
|
|
38363
|
-
}) => /* @__PURE__ */
|
|
38686
|
+
}) => /* @__PURE__ */ import_react63.default.createElement(
|
|
38364
38687
|
"span",
|
|
38365
38688
|
{
|
|
38366
|
-
className: (0,
|
|
38689
|
+
className: (0, import_classnames33.default)(import_Badge_module.default.badge, import_Badge_module.default[variant], classNameOverride, {
|
|
38367
38690
|
[import_Badge_module.default.reversed]: reversed,
|
|
38368
38691
|
[import_Badge_module.default.large]: size === "large"
|
|
38369
38692
|
}),
|
|
@@ -38372,21 +38695,21 @@ ${singleLine(message)}${reset}
|
|
|
38372
38695
|
variant !== "dot" && children
|
|
38373
38696
|
);
|
|
38374
38697
|
var BadgeAnimated = (props) => {
|
|
38375
|
-
const [isFocused, setIsFocused] = (0,
|
|
38376
|
-
(0,
|
|
38698
|
+
const [isFocused, setIsFocused] = (0, import_react63.useState)(false);
|
|
38699
|
+
(0, import_react63.useLayoutEffect)(() => {
|
|
38377
38700
|
setIsFocused(true);
|
|
38378
38701
|
setTimeout(() => {
|
|
38379
38702
|
setIsFocused(false);
|
|
38380
38703
|
}, 150);
|
|
38381
38704
|
}, [props.children]);
|
|
38382
|
-
return /* @__PURE__ */
|
|
38705
|
+
return /* @__PURE__ */ import_react63.default.createElement(
|
|
38383
38706
|
"span",
|
|
38384
38707
|
{
|
|
38385
|
-
className: (0,
|
|
38708
|
+
className: (0, import_classnames33.default)(import_Badge_module.default.animation, {
|
|
38386
38709
|
[import_Badge_module.default.animationOn]: isFocused
|
|
38387
38710
|
})
|
|
38388
38711
|
},
|
|
38389
|
-
/* @__PURE__ */
|
|
38712
|
+
/* @__PURE__ */ import_react63.default.createElement(Badge, { ...props })
|
|
38390
38713
|
);
|
|
38391
38714
|
};
|
|
38392
38715
|
|
|
@@ -38399,10 +38722,10 @@ ${singleLine(message)}${reset}
|
|
|
38399
38722
|
return acc;
|
|
38400
38723
|
}, {});
|
|
38401
38724
|
};
|
|
38402
|
-
var GenericButton = (0,
|
|
38725
|
+
var GenericButton = (0, import_react64.forwardRef)(
|
|
38403
38726
|
(props, ref) => {
|
|
38404
|
-
const buttonRef2 = (0,
|
|
38405
|
-
(0,
|
|
38727
|
+
const buttonRef2 = (0, import_react64.useRef)();
|
|
38728
|
+
(0, import_react64.useImperativeHandle)(ref, () => ({
|
|
38406
38729
|
focus: () => {
|
|
38407
38730
|
var _a;
|
|
38408
38731
|
(_a = buttonRef2.current) == null ? void 0 : _a.focus();
|
|
@@ -38417,10 +38740,10 @@ ${singleLine(message)}${reset}
|
|
|
38417
38740
|
}
|
|
38418
38741
|
return renderButton(props, buttonRef2);
|
|
38419
38742
|
};
|
|
38420
|
-
return /* @__PURE__ */
|
|
38743
|
+
return /* @__PURE__ */ import_react64.default.createElement(
|
|
38421
38744
|
"span",
|
|
38422
38745
|
{
|
|
38423
|
-
className: (0,
|
|
38746
|
+
className: (0, import_classnames34.default)(import_GenericButton_module.default.container, {
|
|
38424
38747
|
[import_GenericButton_module.default.fullWidth]: props.fullWidth
|
|
38425
38748
|
})
|
|
38426
38749
|
},
|
|
@@ -38437,7 +38760,7 @@ ${singleLine(message)}${reset}
|
|
|
38437
38760
|
disableTabFocusAndIUnderstandTheAccessibilityImplications: false,
|
|
38438
38761
|
type: "button"
|
|
38439
38762
|
};
|
|
38440
|
-
var renderCustomComponent = (CustomComponent, props) => /* @__PURE__ */
|
|
38763
|
+
var renderCustomComponent = (CustomComponent, props) => /* @__PURE__ */ import_react64.default.createElement(
|
|
38441
38764
|
CustomComponent,
|
|
38442
38765
|
{
|
|
38443
38766
|
id: props.id,
|
|
@@ -38465,7 +38788,7 @@ ${singleLine(message)}${reset}
|
|
|
38465
38788
|
...rest
|
|
38466
38789
|
} = props;
|
|
38467
38790
|
const customProps = getCustomProps(rest);
|
|
38468
|
-
return /* @__PURE__ */
|
|
38791
|
+
return /* @__PURE__ */ import_react64.default.createElement(
|
|
38469
38792
|
"button",
|
|
38470
38793
|
{
|
|
38471
38794
|
id: id2,
|
|
@@ -38497,7 +38820,7 @@ ${singleLine(message)}${reset}
|
|
|
38497
38820
|
...rest
|
|
38498
38821
|
} = props;
|
|
38499
38822
|
const customProps = getCustomProps(rest);
|
|
38500
|
-
return /* @__PURE__ */
|
|
38823
|
+
return /* @__PURE__ */ import_react64.default.createElement(
|
|
38501
38824
|
"a",
|
|
38502
38825
|
{
|
|
38503
38826
|
id: id2,
|
|
@@ -38516,7 +38839,7 @@ ${singleLine(message)}${reset}
|
|
|
38516
38839
|
};
|
|
38517
38840
|
var buttonClass = (props) => {
|
|
38518
38841
|
const isDefault = !props.primary && !props.destructive && !props.secondary;
|
|
38519
|
-
return (0,
|
|
38842
|
+
return (0, import_classnames34.default)([
|
|
38520
38843
|
import_GenericButton_module.default.button,
|
|
38521
38844
|
isDefault && import_GenericButton_module.default.default,
|
|
38522
38845
|
props.primary && import_GenericButton_module.default.primary,
|
|
@@ -38533,25 +38856,25 @@ ${singleLine(message)}${reset}
|
|
|
38533
38856
|
props.classNameOverride
|
|
38534
38857
|
]);
|
|
38535
38858
|
};
|
|
38536
|
-
var renderLoadingSpinner = () => /* @__PURE__ */
|
|
38859
|
+
var renderLoadingSpinner = () => /* @__PURE__ */ import_react64.default.createElement("div", { className: import_GenericButton_module.default.loadingSpinner }, /* @__PURE__ */ import_react64.default.createElement(LoadingSpinner, { accessibilityLabel: "", size: "sm" }));
|
|
38537
38860
|
var renderWorkingContent = (props) => {
|
|
38538
38861
|
if (props.workingLabelHidden) {
|
|
38539
|
-
return /* @__PURE__ */
|
|
38862
|
+
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()));
|
|
38540
38863
|
}
|
|
38541
|
-
return /* @__PURE__ */
|
|
38864
|
+
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());
|
|
38542
38865
|
};
|
|
38543
|
-
var renderDefaultContent = (props) => /* @__PURE__ */
|
|
38866
|
+
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));
|
|
38544
38867
|
var renderBadge = (props) => {
|
|
38545
38868
|
if (!props.badge)
|
|
38546
38869
|
return null;
|
|
38547
38870
|
const { text, animateChange, reversed, variant } = props.badge;
|
|
38548
38871
|
if (animateChange) {
|
|
38549
|
-
return /* @__PURE__ */
|
|
38872
|
+
return /* @__PURE__ */ import_react64.default.createElement(BadgeAnimated, { variant, reversed }, text);
|
|
38550
38873
|
}
|
|
38551
|
-
return /* @__PURE__ */
|
|
38874
|
+
return /* @__PURE__ */ import_react64.default.createElement(Badge, { variant, reversed }, text);
|
|
38552
38875
|
};
|
|
38553
|
-
var renderContent = (props) => /* @__PURE__ */
|
|
38554
|
-
var renderIcon = (icon) => /* @__PURE__ */
|
|
38876
|
+
var renderContent = (props) => /* @__PURE__ */ import_react64.default.createElement("span", { className: import_GenericButton_module.default.content }, props.working ? renderWorkingContent(props) : renderDefaultContent(props));
|
|
38877
|
+
var renderIcon = (icon) => /* @__PURE__ */ import_react64.default.createElement("span", { className: import_GenericButton_module.default.iconWrapper }, /* @__PURE__ */ import_react64.default.createElement(Icon, { icon, role: "presentation" }));
|
|
38555
38878
|
var generateAriaLabel = (props) => {
|
|
38556
38879
|
if (props.working && props.workingLabelHidden) {
|
|
38557
38880
|
return props.workingLabel;
|
|
@@ -38564,8 +38887,8 @@ ${singleLine(message)}${reset}
|
|
|
38564
38887
|
var GenericButton_default = GenericButton;
|
|
38565
38888
|
|
|
38566
38889
|
// ../button/src/Button/Button.tsx
|
|
38567
|
-
var Button = (0,
|
|
38568
|
-
(props, ref) => /* @__PURE__ */
|
|
38890
|
+
var Button = (0, import_react65.forwardRef)(
|
|
38891
|
+
(props, ref) => /* @__PURE__ */ import_react65.default.createElement(GenericButton_default, { ...props, ref })
|
|
38569
38892
|
);
|
|
38570
38893
|
Button.defaultProps = {
|
|
38571
38894
|
fullWidth: false,
|
|
@@ -38582,8 +38905,8 @@ ${singleLine(message)}${reset}
|
|
|
38582
38905
|
var Button_default = Button;
|
|
38583
38906
|
|
|
38584
38907
|
// ../button/src/Button/IconButton.tsx
|
|
38585
|
-
var
|
|
38586
|
-
var IconButton = (props) => /* @__PURE__ */
|
|
38908
|
+
var import_react66 = __toESM(require_react());
|
|
38909
|
+
var IconButton = (props) => /* @__PURE__ */ import_react66.default.createElement(GenericButton_default, { iconButton: true, ...props });
|
|
38587
38910
|
IconButton.defaultProps = {
|
|
38588
38911
|
form: false,
|
|
38589
38912
|
primary: false,
|
|
@@ -38595,7 +38918,7 @@ ${singleLine(message)}${reset}
|
|
|
38595
38918
|
IconButton.displayName = "IconButton";
|
|
38596
38919
|
|
|
38597
38920
|
// ../button/src/Button/DirectionalLink.tsx
|
|
38598
|
-
var
|
|
38921
|
+
var import_react67 = __toESM(require_react());
|
|
38599
38922
|
|
|
38600
38923
|
// ../component-library/icons/arrow-backward.icon.svg
|
|
38601
38924
|
var arrow_backward_icon_default = "../arrow-backward.icon-DGOZ655M.svg";
|
|
@@ -38616,7 +38939,7 @@ ${singleLine(message)}${reset}
|
|
|
38616
38939
|
start: start_icon_default,
|
|
38617
38940
|
end: end_icon_default
|
|
38618
38941
|
};
|
|
38619
|
-
var DirectionalLink = (props) => /* @__PURE__ */
|
|
38942
|
+
var DirectionalLink = (props) => /* @__PURE__ */ import_react67.default.createElement(
|
|
38620
38943
|
GenericButton_default,
|
|
38621
38944
|
{
|
|
38622
38945
|
...props,
|
|
@@ -38632,8 +38955,8 @@ ${singleLine(message)}${reset}
|
|
|
38632
38955
|
DirectionalLink.displayName = "DirectionalLink";
|
|
38633
38956
|
|
|
38634
38957
|
// ../button/src/Button/PaginationLink.tsx
|
|
38635
|
-
var
|
|
38636
|
-
var PaginationLink = (props) => /* @__PURE__ */
|
|
38958
|
+
var import_react68 = __toESM(require_react());
|
|
38959
|
+
var PaginationLink = (props) => /* @__PURE__ */ import_react68.default.createElement(
|
|
38637
38960
|
GenericButton_default,
|
|
38638
38961
|
{
|
|
38639
38962
|
...props,
|
|
@@ -38650,21 +38973,21 @@ ${singleLine(message)}${reset}
|
|
|
38650
38973
|
|
|
38651
38974
|
// ../select/src/FilterMultiSelect/components/LoadMoreButton/LoadMoreButton.tsx
|
|
38652
38975
|
var import_LoadMoreButton_module = __toESM(__require("../LoadMoreButton.module-ANUUS5ER.scss"));
|
|
38653
|
-
var LoadMoreButton = (props) => /* @__PURE__ */
|
|
38976
|
+
var LoadMoreButton = (props) => /* @__PURE__ */ React51.createElement("div", { className: import_LoadMoreButton_module.default.container }, /* @__PURE__ */ React51.createElement(Button_default, { ...props, fullWidth: true }));
|
|
38654
38977
|
|
|
38655
38978
|
// ../select/src/FilterMultiSelect/components/MenuLayout/MenuFooter/MenuFooter.tsx
|
|
38656
|
-
var
|
|
38979
|
+
var import_react69 = __toESM(require_react());
|
|
38657
38980
|
var import_MenuFooter_module = __toESM(__require("../MenuFooter.module-7J44RW5D.scss"));
|
|
38658
|
-
var MenuFooter = ({ children }) => /* @__PURE__ */
|
|
38981
|
+
var MenuFooter = ({ children }) => /* @__PURE__ */ import_react69.default.createElement("div", { className: import_MenuFooter_module.default.footer }, children);
|
|
38659
38982
|
MenuFooter.displayName = "MenuFooter";
|
|
38660
38983
|
|
|
38661
38984
|
// ../select/src/FilterMultiSelect/components/MenuLayout/MenuLoadingSkeleton/MenuLoadingSkeleton.tsx
|
|
38662
|
-
var
|
|
38663
|
-
var
|
|
38985
|
+
var import_react74 = __toESM(require_react());
|
|
38986
|
+
var import_classnames39 = __toESM(require_classnames());
|
|
38664
38987
|
|
|
38665
38988
|
// ../loading-skeleton/src/LoadingParagraph/LoadingParagraph.tsx
|
|
38666
|
-
var
|
|
38667
|
-
var
|
|
38989
|
+
var import_react70 = __toESM(require_react());
|
|
38990
|
+
var import_classnames35 = __toESM(require_classnames());
|
|
38668
38991
|
var import_loading_skeleton_module = __toESM(__require("../loading-skeleton.module-RZXSULUO.scss"));
|
|
38669
38992
|
var import_LoadingParagraph_module = __toESM(__require("../LoadingParagraph.module-43NZVIEE.scss"));
|
|
38670
38993
|
var LoadingParagraph = ({
|
|
@@ -38678,10 +39001,10 @@ ${singleLine(message)}${reset}
|
|
|
38678
39001
|
inheritBaseline,
|
|
38679
39002
|
classNameOverride,
|
|
38680
39003
|
...props
|
|
38681
|
-
}) => /* @__PURE__ */
|
|
39004
|
+
}) => /* @__PURE__ */ import_react70.default.createElement(
|
|
38682
39005
|
"div",
|
|
38683
39006
|
{
|
|
38684
|
-
className: (0,
|
|
39007
|
+
className: (0, import_classnames35.default)(
|
|
38685
39008
|
import_loading_skeleton_module.default.base,
|
|
38686
39009
|
import_LoadingParagraph_module.default.paragraph,
|
|
38687
39010
|
classNameOverride,
|
|
@@ -38702,8 +39025,8 @@ ${singleLine(message)}${reset}
|
|
|
38702
39025
|
LoadingParagraph.displayName = "LoadingParagraph";
|
|
38703
39026
|
|
|
38704
39027
|
// ../loading-skeleton/src/LoadingHeading/LoadingHeading.tsx
|
|
38705
|
-
var
|
|
38706
|
-
var
|
|
39028
|
+
var import_react71 = __toESM(require_react());
|
|
39029
|
+
var import_classnames36 = __toESM(require_classnames());
|
|
38707
39030
|
var import_loading_skeleton_module2 = __toESM(__require("../loading-skeleton.module-RZXSULUO.scss"));
|
|
38708
39031
|
var import_LoadingHeading_module = __toESM(__require("../LoadingHeading.module-OV5P5QHZ.scss"));
|
|
38709
39032
|
var LoadingHeading = ({
|
|
@@ -38714,10 +39037,10 @@ ${singleLine(message)}${reset}
|
|
|
38714
39037
|
classNameOverride,
|
|
38715
39038
|
variant,
|
|
38716
39039
|
...props
|
|
38717
|
-
}) => /* @__PURE__ */
|
|
39040
|
+
}) => /* @__PURE__ */ import_react71.default.createElement(
|
|
38718
39041
|
"div",
|
|
38719
39042
|
{
|
|
38720
|
-
className: (0,
|
|
39043
|
+
className: (0, import_classnames36.default)(
|
|
38721
39044
|
import_loading_skeleton_module2.default.base,
|
|
38722
39045
|
import_LoadingHeading_module.default.heading,
|
|
38723
39046
|
classNameOverride,
|
|
@@ -38735,8 +39058,8 @@ ${singleLine(message)}${reset}
|
|
|
38735
39058
|
LoadingHeading.displayName = "LoadingHeading";
|
|
38736
39059
|
|
|
38737
39060
|
// ../loading-skeleton/src/LoadingInput/LoadingInput.tsx
|
|
38738
|
-
var
|
|
38739
|
-
var
|
|
39061
|
+
var import_react72 = __toESM(require_react());
|
|
39062
|
+
var import_classnames37 = __toESM(require_classnames());
|
|
38740
39063
|
var import_loading_skeleton_module3 = __toESM(__require("../loading-skeleton.module-RZXSULUO.scss"));
|
|
38741
39064
|
var import_LoadingInput_module = __toESM(__require("../LoadingInput.module-7NL2PX46.scss"));
|
|
38742
39065
|
var LoadingInput = ({
|
|
@@ -38746,10 +39069,10 @@ ${singleLine(message)}${reset}
|
|
|
38746
39069
|
classNameOverride,
|
|
38747
39070
|
height = 48,
|
|
38748
39071
|
...props
|
|
38749
|
-
}) => /* @__PURE__ */
|
|
39072
|
+
}) => /* @__PURE__ */ import_react72.default.createElement(
|
|
38750
39073
|
"div",
|
|
38751
39074
|
{
|
|
38752
|
-
className: (0,
|
|
39075
|
+
className: (0, import_classnames37.default)(
|
|
38753
39076
|
import_loading_skeleton_module3.default.base,
|
|
38754
39077
|
import_LoadingInput_module.default.input,
|
|
38755
39078
|
classNameOverride,
|
|
@@ -38765,8 +39088,8 @@ ${singleLine(message)}${reset}
|
|
|
38765
39088
|
LoadingInput.displayName = "LoadingInput";
|
|
38766
39089
|
|
|
38767
39090
|
// ../loading-skeleton/src/LoadingGraphic/LoadingGraphic.tsx
|
|
38768
|
-
var
|
|
38769
|
-
var
|
|
39091
|
+
var import_react73 = __toESM(require_react());
|
|
39092
|
+
var import_classnames38 = __toESM(require_classnames());
|
|
38770
39093
|
var import_loading_skeleton_module4 = __toESM(__require("../loading-skeleton.module-RZXSULUO.scss"));
|
|
38771
39094
|
var import_LoadingGraphic_module = __toESM(__require("../LoadingGraphic.module-URCRSF4P.scss"));
|
|
38772
39095
|
var graphicSizesRem = /* @__PURE__ */ new Map([
|
|
@@ -38783,10 +39106,10 @@ ${singleLine(message)}${reset}
|
|
|
38783
39106
|
size,
|
|
38784
39107
|
classNameOverride,
|
|
38785
39108
|
...props
|
|
38786
|
-
}) => /* @__PURE__ */
|
|
39109
|
+
}) => /* @__PURE__ */ import_react73.default.createElement(
|
|
38787
39110
|
"div",
|
|
38788
39111
|
{
|
|
38789
|
-
className: (0,
|
|
39112
|
+
className: (0, import_classnames38.default)(
|
|
38790
39113
|
import_loading_skeleton_module4.default.base,
|
|
38791
39114
|
import_LoadingGraphic_module.default.graphic,
|
|
38792
39115
|
classNameOverride,
|
|
@@ -38806,12 +39129,12 @@ ${singleLine(message)}${reset}
|
|
|
38806
39129
|
|
|
38807
39130
|
// ../select/src/FilterMultiSelect/components/MenuLayout/MenuLoadingSkeleton/MenuLoadingSkeleton.tsx
|
|
38808
39131
|
var import_MenuLoadingSkeleton_module = __toESM(__require("../MenuLoadingSkeleton.module-DH3I5Z2J.scss"));
|
|
38809
|
-
var MenuLoadingSkeleton = () => /* @__PURE__ */
|
|
39132
|
+
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 })));
|
|
38810
39133
|
MenuLoadingSkeleton.displayName = "MenuLoadingSkeleton";
|
|
38811
39134
|
|
|
38812
39135
|
// ../select/src/FilterMultiSelect/components/MultiSelectOption/MultiSelectOption.tsx
|
|
38813
|
-
var
|
|
38814
|
-
var
|
|
39136
|
+
var import_react76 = __toESM(require_react());
|
|
39137
|
+
var import_classnames40 = __toESM(require_classnames());
|
|
38815
39138
|
|
|
38816
39139
|
// ../../node_modules/uuid/dist/esm-node/rng.js
|
|
38817
39140
|
var import_crypto = __toESM(__require("crypto"));
|
|
@@ -38861,8 +39184,8 @@ ${singleLine(message)}${reset}
|
|
|
38861
39184
|
var v4_default = v4;
|
|
38862
39185
|
|
|
38863
39186
|
// ../select/src/FilterMultiSelect/provider/MenuTriggerProvider/MenuTriggerProvider.tsx
|
|
38864
|
-
var
|
|
38865
|
-
var MenuTriggerContext =
|
|
39187
|
+
var import_react75 = __toESM(require_react());
|
|
39188
|
+
var MenuTriggerContext = import_react75.default.createContext(
|
|
38866
39189
|
{}
|
|
38867
39190
|
);
|
|
38868
39191
|
function MenuTriggerProvider({
|
|
@@ -38872,16 +39195,16 @@ ${singleLine(message)}${reset}
|
|
|
38872
39195
|
children
|
|
38873
39196
|
}) {
|
|
38874
39197
|
const state = $a28c903ee9ad8dc5$export$79fefeb1c2091ac3({ isOpen, defaultOpen, onOpenChange });
|
|
38875
|
-
const ref =
|
|
39198
|
+
const ref = import_react75.default.createRef();
|
|
38876
39199
|
const { menuTriggerProps, menuProps } = $168583247155ddda$export$dc9c12ed27dd1b49({}, state, ref);
|
|
38877
39200
|
const { buttonProps } = $701a24aa0da5b062$export$ea18c227d4417cc3(menuTriggerProps, ref);
|
|
38878
|
-
(0,
|
|
39201
|
+
(0, import_react75.useEffect)(() => {
|
|
38879
39202
|
var _a;
|
|
38880
39203
|
if (state.isOpen === false) {
|
|
38881
39204
|
(_a = ref.current) == null ? void 0 : _a.focus();
|
|
38882
39205
|
}
|
|
38883
39206
|
}, [state.isOpen]);
|
|
38884
|
-
return /* @__PURE__ */
|
|
39207
|
+
return /* @__PURE__ */ import_react75.default.createElement(
|
|
38885
39208
|
MenuTriggerContext.Provider,
|
|
38886
39209
|
{
|
|
38887
39210
|
value: {
|
|
@@ -38895,7 +39218,7 @@ ${singleLine(message)}${reset}
|
|
|
38895
39218
|
children
|
|
38896
39219
|
);
|
|
38897
39220
|
}
|
|
38898
|
-
var useMenuTriggerContext = () => (0,
|
|
39221
|
+
var useMenuTriggerContext = () => (0, import_react75.useContext)(MenuTriggerContext);
|
|
38899
39222
|
var MenuTriggerConsumer = MenuTriggerContext.Consumer;
|
|
38900
39223
|
MenuTriggerContext.displayName = "MenuTriggerContext";
|
|
38901
39224
|
|
|
@@ -38905,20 +39228,20 @@ ${singleLine(message)}${reset}
|
|
|
38905
39228
|
item
|
|
38906
39229
|
}) => {
|
|
38907
39230
|
const { selectionState: state } = useSelectionContext();
|
|
38908
|
-
const ref =
|
|
39231
|
+
const ref = import_react76.default.createRef();
|
|
38909
39232
|
const { optionProps, isSelected, isDisabled } = $293f70390ea03370$export$497855f14858aa34(
|
|
38910
39233
|
{ key: item.key },
|
|
38911
39234
|
state,
|
|
38912
39235
|
ref
|
|
38913
39236
|
);
|
|
38914
39237
|
const { isFocusVisible, focusProps } = $f7dceffc5ad7768b$export$4e328f61c538687f();
|
|
38915
|
-
const countElementId = (0,
|
|
38916
|
-
return /* @__PURE__ */
|
|
39238
|
+
const countElementId = (0, import_react76.useMemo)(() => v4_default(), []);
|
|
39239
|
+
return /* @__PURE__ */ import_react76.default.createElement(
|
|
38917
39240
|
"li",
|
|
38918
39241
|
{
|
|
38919
39242
|
...$3ef42575df84b30b$export$9d1611c77c2fe928(optionProps, focusProps),
|
|
38920
39243
|
ref,
|
|
38921
|
-
className: (0,
|
|
39244
|
+
className: (0, import_classnames40.default)(
|
|
38922
39245
|
import_MultiSelectOption_module.default.option,
|
|
38923
39246
|
isSelected ? import_MultiSelectOption_module.default.isSelected : "",
|
|
38924
39247
|
isFocusVisible ? import_MultiSelectOption_module.default.isFocusVisible : "",
|
|
@@ -38927,33 +39250,33 @@ ${singleLine(message)}${reset}
|
|
|
38927
39250
|
"aria-label": item.value.label,
|
|
38928
39251
|
"aria-describedby": item.value.count ? countElementId : void 0
|
|
38929
39252
|
},
|
|
38930
|
-
/* @__PURE__ */
|
|
39253
|
+
/* @__PURE__ */ import_react76.default.createElement(
|
|
38931
39254
|
"span",
|
|
38932
39255
|
{
|
|
38933
|
-
className: (0,
|
|
39256
|
+
className: (0, import_classnames40.default)(import_MultiSelectOption_module.default.icon, isSelected ? import_MultiSelectOption_module.default.isSelected : "")
|
|
38934
39257
|
},
|
|
38935
|
-
isSelected && /* @__PURE__ */
|
|
39258
|
+
isSelected && /* @__PURE__ */ import_react76.default.createElement(Icon, { icon: check_icon_default, role: "presentation" })
|
|
38936
39259
|
),
|
|
38937
39260
|
item.rendered,
|
|
38938
|
-
item.value.count && /* @__PURE__ */
|
|
39261
|
+
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"))
|
|
38939
39262
|
);
|
|
38940
39263
|
};
|
|
38941
39264
|
MultiSelectOption.displayName = "MultiSelectOption";
|
|
38942
39265
|
|
|
38943
39266
|
// ../select/src/FilterMultiSelect/components/NoResults/NoResults.tsx
|
|
38944
|
-
var
|
|
39267
|
+
var import_react77 = __toESM(require_react());
|
|
38945
39268
|
var import_NoResults_module = __toESM(__require("../NoResults.module-3FUWBVUH.scss"));
|
|
38946
39269
|
var NoResults = ({
|
|
38947
39270
|
children,
|
|
38948
39271
|
...restProps
|
|
38949
|
-
}) => /* @__PURE__ */
|
|
39272
|
+
}) => /* @__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));
|
|
38950
39273
|
NoResults.displayName = "NoResults";
|
|
38951
39274
|
|
|
38952
39275
|
// ../select/src/FilterMultiSelect/components/Root/Root.tsx
|
|
38953
|
-
var
|
|
39276
|
+
var import_react79 = __toESM(require_react());
|
|
38954
39277
|
|
|
38955
39278
|
// ../select/src/FilterMultiSelect/components/MenuPopup/MenuPopup.tsx
|
|
38956
|
-
var
|
|
39279
|
+
var import_react78 = __toESM(require_react());
|
|
38957
39280
|
var import_MenuPopup_module = __toESM(__require("../MenuPopup.module-NQRYVXAG.scss"));
|
|
38958
39281
|
var MenuPopup = ({
|
|
38959
39282
|
isLoading,
|
|
@@ -38962,7 +39285,7 @@ ${singleLine(message)}${reset}
|
|
|
38962
39285
|
}) => {
|
|
38963
39286
|
const { menuTriggerState, menuProps } = useMenuTriggerContext();
|
|
38964
39287
|
const onClose = () => menuTriggerState.close();
|
|
38965
|
-
const overlayRef =
|
|
39288
|
+
const overlayRef = import_react78.default.createRef();
|
|
38966
39289
|
const { overlayProps } = $a11501f3d1d39e6c$export$ea8f71083e90600f(
|
|
38967
39290
|
{
|
|
38968
39291
|
onClose,
|
|
@@ -38971,18 +39294,18 @@ ${singleLine(message)}${reset}
|
|
|
38971
39294
|
},
|
|
38972
39295
|
overlayRef
|
|
38973
39296
|
);
|
|
38974
|
-
return menuTriggerState.isOpen ? /* @__PURE__ */
|
|
39297
|
+
return menuTriggerState.isOpen ? /* @__PURE__ */ import_react78.default.createElement(
|
|
38975
39298
|
"div",
|
|
38976
39299
|
{
|
|
38977
39300
|
...$3ef42575df84b30b$export$9d1611c77c2fe928(overlayProps, menuProps),
|
|
38978
39301
|
ref: overlayRef,
|
|
38979
39302
|
className: import_MenuPopup_module.default.menuPopup
|
|
38980
39303
|
},
|
|
38981
|
-
isLoading && loadingSkeleton ? /* @__PURE__ */
|
|
39304
|
+
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 })) : (
|
|
38982
39305
|
// eslint-disable-next-line jsx-a11y/no-autofocus
|
|
38983
|
-
/* @__PURE__ */
|
|
39306
|
+
/* @__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 }))
|
|
38984
39307
|
)
|
|
38985
|
-
) : /* @__PURE__ */
|
|
39308
|
+
) : /* @__PURE__ */ import_react78.default.createElement(import_react78.default.Fragment, null);
|
|
38986
39309
|
};
|
|
38987
39310
|
MenuPopup.displayName = "MenuPopup";
|
|
38988
39311
|
|
|
@@ -39016,12 +39339,12 @@ ${singleLine(message)}${reset}
|
|
|
39016
39339
|
disabledKeys,
|
|
39017
39340
|
onSearchInputChange
|
|
39018
39341
|
};
|
|
39019
|
-
return /* @__PURE__ */
|
|
39342
|
+
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)))));
|
|
39020
39343
|
};
|
|
39021
39344
|
Root.displayName = "Root";
|
|
39022
39345
|
|
|
39023
39346
|
// ../select/src/FilterMultiSelect/components/SearchInput/SearchInput.tsx
|
|
39024
|
-
var
|
|
39347
|
+
var import_react80 = __toESM(require_react());
|
|
39025
39348
|
var import_SearchInput_module = __toESM(__require("../SearchInput.module-RQEF3FWR.scss"));
|
|
39026
39349
|
var SearchInput = ({
|
|
39027
39350
|
label,
|
|
@@ -39033,8 +39356,8 @@ ${singleLine(message)}${reset}
|
|
|
39033
39356
|
setSearchQuery(e2.target.value);
|
|
39034
39357
|
};
|
|
39035
39358
|
const handleClear = () => setSearchQuery("");
|
|
39036
|
-
const inputId = (0,
|
|
39037
|
-
return /* @__PURE__ */
|
|
39359
|
+
const inputId = (0, import_react80.useMemo)(() => id2 ?? v4_default(), [id2]);
|
|
39360
|
+
return /* @__PURE__ */ import_react80.default.createElement("div", { className: import_SearchInput_module.default.inputSearchContainer }, /* @__PURE__ */ import_react80.default.createElement(
|
|
39038
39361
|
InputSearch,
|
|
39039
39362
|
{
|
|
39040
39363
|
id: inputId,
|
|
@@ -39051,22 +39374,22 @@ ${singleLine(message)}${reset}
|
|
|
39051
39374
|
SearchInput.displayName = "SearchInput";
|
|
39052
39375
|
|
|
39053
39376
|
// ../select/src/FilterMultiSelect/components/SectionDivider/SectionDivider.tsx
|
|
39054
|
-
var
|
|
39377
|
+
var import_react82 = __toESM(require_react());
|
|
39055
39378
|
|
|
39056
39379
|
// ../../draft-packages/divider/KaizenDraft/Divider/Divider.tsx
|
|
39057
|
-
var
|
|
39058
|
-
var
|
|
39380
|
+
var import_react81 = __toESM(require_react());
|
|
39381
|
+
var import_classnames41 = __toESM(require_classnames());
|
|
39059
39382
|
var import_Divider_module = __toESM(__require("../Divider.module-YXIUJPD4.scss"));
|
|
39060
39383
|
var Divider = ({
|
|
39061
39384
|
variant,
|
|
39062
39385
|
isReversed = false,
|
|
39063
39386
|
classNameOverride,
|
|
39064
39387
|
...props
|
|
39065
|
-
}) => /* @__PURE__ */
|
|
39388
|
+
}) => /* @__PURE__ */ import_react81.default.createElement(
|
|
39066
39389
|
"hr",
|
|
39067
39390
|
{
|
|
39068
39391
|
"aria-hidden": "true",
|
|
39069
|
-
className: (0,
|
|
39392
|
+
className: (0, import_classnames41.default)(import_Divider_module.default.wrapper, classNameOverride, {
|
|
39070
39393
|
[import_Divider_module.default.reversed]: isReversed,
|
|
39071
39394
|
[import_Divider_module.default.content]: variant === "content",
|
|
39072
39395
|
[import_Divider_module.default.canvas]: variant === "canvas",
|
|
@@ -39079,11 +39402,11 @@ ${singleLine(message)}${reset}
|
|
|
39079
39402
|
|
|
39080
39403
|
// ../select/src/FilterMultiSelect/components/SectionDivider/SectionDivider.tsx
|
|
39081
39404
|
var import_SectionDivider_module = __toESM(__require("../SectionDivider.module-AN4OA4O3.scss"));
|
|
39082
|
-
var SectionDivider = () => /* @__PURE__ */
|
|
39405
|
+
var SectionDivider = () => /* @__PURE__ */ import_react82.default.createElement(Divider, { classNameOverride: import_SectionDivider_module.default.divider, variant: "canvas" });
|
|
39083
39406
|
|
|
39084
39407
|
// ../select/src/FilterMultiSelect/components/SelectionControlButton/ClearButton/ClearButton.tsx
|
|
39085
|
-
var
|
|
39086
|
-
var
|
|
39408
|
+
var import_react83 = __toESM(require_react());
|
|
39409
|
+
var import_classnames42 = __toESM(require_classnames());
|
|
39087
39410
|
var import_SelectionControlButton_module = __toESM(__require("../SelectionControlButton.module-HO7BZ2UP.scss"));
|
|
39088
39411
|
var ClearButton2 = () => {
|
|
39089
39412
|
const { selectionState } = useSelectionContext();
|
|
@@ -39096,10 +39419,10 @@ ${singleLine(message)}${reset}
|
|
|
39096
39419
|
(key) => selectionState.selectionManager.isSelected(key)
|
|
39097
39420
|
)
|
|
39098
39421
|
);
|
|
39099
|
-
return /* @__PURE__ */
|
|
39422
|
+
return /* @__PURE__ */ import_react83.default.createElement(
|
|
39100
39423
|
"button",
|
|
39101
39424
|
{
|
|
39102
|
-
className: (0,
|
|
39425
|
+
className: (0, import_classnames42.default)(import_SelectionControlButton_module.default.button, isDisabled ? import_SelectionControlButton_module.default.isDisabled : ""),
|
|
39103
39426
|
"aria-disabled": isDisabled,
|
|
39104
39427
|
onClick: () => {
|
|
39105
39428
|
!isDisabled && selectionState.selectionManager.setSelectedKeys(
|
|
@@ -39114,8 +39437,8 @@ ${singleLine(message)}${reset}
|
|
|
39114
39437
|
};
|
|
39115
39438
|
|
|
39116
39439
|
// ../select/src/FilterMultiSelect/components/SelectionControlButton/SelectAllButton/SelectAllButton.tsx
|
|
39117
|
-
var
|
|
39118
|
-
var
|
|
39440
|
+
var import_react84 = __toESM(require_react());
|
|
39441
|
+
var import_classnames43 = __toESM(require_classnames());
|
|
39119
39442
|
var import_SelectionControlButton_module2 = __toESM(__require("../SelectionControlButton.module-HO7BZ2UP.scss"));
|
|
39120
39443
|
var SelectAllButton = () => {
|
|
39121
39444
|
const { selectionState } = useSelectionContext();
|
|
@@ -39126,10 +39449,10 @@ ${singleLine(message)}${reset}
|
|
|
39126
39449
|
const filteredOptions = Array.from(
|
|
39127
39450
|
selectionState.collection.getKeys()
|
|
39128
39451
|
).filter((key) => !disabledOptions.includes(key));
|
|
39129
|
-
return /* @__PURE__ */
|
|
39452
|
+
return /* @__PURE__ */ import_react84.default.createElement(
|
|
39130
39453
|
"button",
|
|
39131
39454
|
{
|
|
39132
|
-
className: (0,
|
|
39455
|
+
className: (0, import_classnames43.default)(import_SelectionControlButton_module2.default.button, {
|
|
39133
39456
|
[import_SelectionControlButton_module2.default.isDisabled]: selectionState.selectionManager.isSelectAll
|
|
39134
39457
|
}),
|
|
39135
39458
|
"aria-disabled": selectionState.selectionManager.isSelectAll,
|
|
@@ -39143,7 +39466,7 @@ ${singleLine(message)}${reset}
|
|
|
39143
39466
|
};
|
|
39144
39467
|
|
|
39145
39468
|
// ../select/src/FilterMultiSelect/components/Trigger/FilterTriggerButton/FilterTriggerButton.tsx
|
|
39146
|
-
var
|
|
39469
|
+
var import_react86 = __toESM(require_react());
|
|
39147
39470
|
|
|
39148
39471
|
// ../select/src/FilterMultiSelect/utils/getTruncatedLabel/getTruncatedLabel.ts
|
|
39149
39472
|
var CONNECTOR = ", ";
|
|
@@ -39183,26 +39506,26 @@ ${singleLine(message)}${reset}
|
|
|
39183
39506
|
};
|
|
39184
39507
|
|
|
39185
39508
|
// ../select/src/FilterMultiSelect/components/Trigger/TriggerButtonBase/TriggerButtonBase.tsx
|
|
39186
|
-
var
|
|
39187
|
-
var
|
|
39509
|
+
var import_react85 = __toESM(require_react());
|
|
39510
|
+
var import_classnames44 = __toESM(require_classnames());
|
|
39188
39511
|
var import_TriggerButtonBase_module = __toESM(__require("../TriggerButtonBase.module-QFRV6YZQ.scss"));
|
|
39189
39512
|
var TriggerButtonBase = ({
|
|
39190
39513
|
children,
|
|
39191
39514
|
classNameOverride
|
|
39192
39515
|
}) => {
|
|
39193
39516
|
const { buttonProps, buttonRef: buttonRef2, menuTriggerState } = useMenuTriggerContext();
|
|
39194
|
-
return /* @__PURE__ */
|
|
39517
|
+
return /* @__PURE__ */ import_react85.default.createElement(
|
|
39195
39518
|
"button",
|
|
39196
39519
|
{
|
|
39197
39520
|
...buttonProps,
|
|
39198
39521
|
ref: buttonRef2,
|
|
39199
|
-
className: (0,
|
|
39522
|
+
className: (0, import_classnames44.default)(import_TriggerButtonBase_module.default.button, classNameOverride)
|
|
39200
39523
|
},
|
|
39201
39524
|
children,
|
|
39202
|
-
/* @__PURE__ */
|
|
39525
|
+
/* @__PURE__ */ import_react85.default.createElement(
|
|
39203
39526
|
Icon,
|
|
39204
39527
|
{
|
|
39205
|
-
icon: menuTriggerState.isOpen ? chevron_up_icon_default :
|
|
39528
|
+
icon: menuTriggerState.isOpen ? chevron_up_icon_default : chevron_down_icon_default2,
|
|
39206
39529
|
role: "presentation",
|
|
39207
39530
|
classNameOverride: import_TriggerButtonBase_module.default.icon
|
|
39208
39531
|
}
|
|
@@ -39220,7 +39543,7 @@ ${singleLine(message)}${reset}
|
|
|
39220
39543
|
labelCharacterLimitBeforeTruncate = 50
|
|
39221
39544
|
}) => {
|
|
39222
39545
|
const hasSelectedValues = selectedOptionLabels.length > 0;
|
|
39223
|
-
return /* @__PURE__ */
|
|
39546
|
+
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(
|
|
39224
39547
|
selectedOptionLabels,
|
|
39225
39548
|
labelCharacterLimitBeforeTruncate
|
|
39226
39549
|
)}`));
|
|
@@ -39228,15 +39551,15 @@ ${singleLine(message)}${reset}
|
|
|
39228
39551
|
FilterTriggerButton.displayName = "FilterTriggerButton";
|
|
39229
39552
|
|
|
39230
39553
|
// ../select/src/FilterMultiSelect/components/Trigger/RemovableFilterTrigger/RemovableFilterTrigger.tsx
|
|
39231
|
-
var
|
|
39554
|
+
var import_react91 = __toESM(require_react());
|
|
39232
39555
|
|
|
39233
39556
|
// ../../draft-packages/tooltip/KaizenDraft/Tooltip/Tooltip.tsx
|
|
39234
|
-
var
|
|
39557
|
+
var import_react90 = __toESM(require_react());
|
|
39235
39558
|
var import_react_dom2 = __toESM(require_react_dom());
|
|
39236
|
-
var
|
|
39559
|
+
var import_classnames45 = __toESM(require_classnames());
|
|
39237
39560
|
|
|
39238
39561
|
// ../../node_modules/react-popper/lib/esm/utils.js
|
|
39239
|
-
var
|
|
39562
|
+
var React70 = __toESM(require_react());
|
|
39240
39563
|
var fromEntries = function fromEntries2(entries) {
|
|
39241
39564
|
return entries.reduce(function(acc, _ref) {
|
|
39242
39565
|
var key = _ref[0], value = _ref[1];
|
|
@@ -39244,10 +39567,10 @@ ${singleLine(message)}${reset}
|
|
|
39244
39567
|
return acc;
|
|
39245
39568
|
}, {});
|
|
39246
39569
|
};
|
|
39247
|
-
var useIsomorphicLayoutEffect = typeof window !== "undefined" && window.document && window.document.createElement ?
|
|
39570
|
+
var useIsomorphicLayoutEffect = typeof window !== "undefined" && window.document && window.document.createElement ? React70.useLayoutEffect : React70.useEffect;
|
|
39248
39571
|
|
|
39249
39572
|
// ../../node_modules/react-popper/lib/esm/usePopper.js
|
|
39250
|
-
var
|
|
39573
|
+
var React71 = __toESM(require_react());
|
|
39251
39574
|
var ReactDOM = __toESM(require_react_dom());
|
|
39252
39575
|
|
|
39253
39576
|
// ../../node_modules/@popperjs/core/lib/enums.js
|
|
@@ -40859,14 +41182,14 @@ ${singleLine(message)}${reset}
|
|
|
40859
41182
|
if (options === void 0) {
|
|
40860
41183
|
options = {};
|
|
40861
41184
|
}
|
|
40862
|
-
var prevOptions =
|
|
41185
|
+
var prevOptions = React71.useRef(null);
|
|
40863
41186
|
var optionsWithDefaults = {
|
|
40864
41187
|
onFirstUpdate: options.onFirstUpdate,
|
|
40865
41188
|
placement: options.placement || "bottom",
|
|
40866
41189
|
strategy: options.strategy || "absolute",
|
|
40867
41190
|
modifiers: options.modifiers || EMPTY_MODIFIERS
|
|
40868
41191
|
};
|
|
40869
|
-
var _React$useState =
|
|
41192
|
+
var _React$useState = React71.useState({
|
|
40870
41193
|
styles: {
|
|
40871
41194
|
popper: {
|
|
40872
41195
|
position: optionsWithDefaults.strategy,
|
|
@@ -40879,7 +41202,7 @@ ${singleLine(message)}${reset}
|
|
|
40879
41202
|
},
|
|
40880
41203
|
attributes: {}
|
|
40881
41204
|
}), state = _React$useState[0], setState = _React$useState[1];
|
|
40882
|
-
var updateStateModifier =
|
|
41205
|
+
var updateStateModifier = React71.useMemo(function() {
|
|
40883
41206
|
return {
|
|
40884
41207
|
name: "updateState",
|
|
40885
41208
|
enabled: true,
|
|
@@ -40901,7 +41224,7 @@ ${singleLine(message)}${reset}
|
|
|
40901
41224
|
requires: ["computeStyles"]
|
|
40902
41225
|
};
|
|
40903
41226
|
}, []);
|
|
40904
|
-
var popperOptions =
|
|
41227
|
+
var popperOptions = React71.useMemo(function() {
|
|
40905
41228
|
var newOptions = {
|
|
40906
41229
|
onFirstUpdate: optionsWithDefaults.onFirstUpdate,
|
|
40907
41230
|
placement: optionsWithDefaults.placement,
|
|
@@ -40918,7 +41241,7 @@ ${singleLine(message)}${reset}
|
|
|
40918
41241
|
return newOptions;
|
|
40919
41242
|
}
|
|
40920
41243
|
}, [optionsWithDefaults.onFirstUpdate, optionsWithDefaults.placement, optionsWithDefaults.strategy, optionsWithDefaults.modifiers, updateStateModifier]);
|
|
40921
|
-
var popperInstanceRef =
|
|
41244
|
+
var popperInstanceRef = React71.useRef();
|
|
40922
41245
|
useIsomorphicLayoutEffect(function() {
|
|
40923
41246
|
if (popperInstanceRef.current) {
|
|
40924
41247
|
popperInstanceRef.current.setOptions(popperOptions);
|
|
@@ -40946,13 +41269,13 @@ ${singleLine(message)}${reset}
|
|
|
40946
41269
|
};
|
|
40947
41270
|
|
|
40948
41271
|
// ../../draft-packages/tooltip/KaizenDraft/Tooltip/AppearanceAnim.tsx
|
|
40949
|
-
var
|
|
41272
|
+
var import_react88 = __toESM(require_react());
|
|
40950
41273
|
|
|
40951
41274
|
// ../../node_modules/use-debounce/dist/index.module.js
|
|
40952
|
-
var
|
|
41275
|
+
var import_react87 = __toESM(require_react());
|
|
40953
41276
|
function c(u2, e2, c2) {
|
|
40954
|
-
var i = this, a = (0,
|
|
40955
|
-
(0,
|
|
41277
|
+
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);
|
|
41278
|
+
(0, import_react87.useEffect)(function() {
|
|
40956
41279
|
d.current = u2;
|
|
40957
41280
|
}, [u2]);
|
|
40958
41281
|
var g = !e2 && 0 !== e2 && "undefined" != typeof window;
|
|
@@ -40960,12 +41283,12 @@ ${singleLine(message)}${reset}
|
|
|
40960
41283
|
throw new TypeError("Expected a function");
|
|
40961
41284
|
e2 = +e2 || 0;
|
|
40962
41285
|
var w = !!(c2 = c2 || {}).leading, s = !("trailing" in c2) || !!c2.trailing, x = "maxWait" in c2, y = x ? Math.max(+c2.maxWait || 0, e2) : null;
|
|
40963
|
-
(0,
|
|
41286
|
+
(0, import_react87.useEffect)(function() {
|
|
40964
41287
|
return p2.current = true, function() {
|
|
40965
41288
|
p2.current = false;
|
|
40966
41289
|
};
|
|
40967
41290
|
}, []);
|
|
40968
|
-
var h = (0,
|
|
41291
|
+
var h = (0, import_react87.useMemo)(function() {
|
|
40969
41292
|
var r3 = function(r4) {
|
|
40970
41293
|
var n3 = l.current, t3 = m2.current;
|
|
40971
41294
|
return l.current = m2.current = null, o.current = r4, v.current = d.current.apply(t3, n3);
|
|
@@ -41009,7 +41332,7 @@ ${singleLine(message)}${reset}
|
|
|
41009
41332
|
|
|
41010
41333
|
// ../../draft-packages/tooltip/KaizenDraft/Tooltip/AppearanceAnim.tsx
|
|
41011
41334
|
var ANIM_DURATION_MS = 400;
|
|
41012
|
-
var AnimationContext =
|
|
41335
|
+
var AnimationContext = import_react88.default.createContext({
|
|
41013
41336
|
isVisible: false,
|
|
41014
41337
|
isAnimIn: false,
|
|
41015
41338
|
isAnimOut: false
|
|
@@ -41019,9 +41342,9 @@ ${singleLine(message)}${reset}
|
|
|
41019
41342
|
animationDuration = ANIM_DURATION_MS,
|
|
41020
41343
|
...otherProps
|
|
41021
41344
|
}) => {
|
|
41022
|
-
const [isAnimIn, setIsAnimIn] = (0,
|
|
41023
|
-
const [isAnimOut, setIsAnimOut] = (0,
|
|
41024
|
-
const [prevIsOpen, setPrevIsOpen] = (0,
|
|
41345
|
+
const [isAnimIn, setIsAnimIn] = (0, import_react88.useState)(false);
|
|
41346
|
+
const [isAnimOut, setIsAnimOut] = (0, import_react88.useState)(false);
|
|
41347
|
+
const [prevIsOpen, setPrevIsOpen] = (0, import_react88.useState)(false);
|
|
41025
41348
|
const trackAnimOutCompleted = c(
|
|
41026
41349
|
() => {
|
|
41027
41350
|
setIsAnimOut(false);
|
|
@@ -41048,7 +41371,7 @@ ${singleLine(message)}${reset}
|
|
|
41048
41371
|
trackAnimInCompleted();
|
|
41049
41372
|
}
|
|
41050
41373
|
}
|
|
41051
|
-
return /* @__PURE__ */
|
|
41374
|
+
return /* @__PURE__ */ import_react88.default.createElement(
|
|
41052
41375
|
AnimationContext.Provider,
|
|
41053
41376
|
{
|
|
41054
41377
|
value: {
|
|
@@ -41061,7 +41384,7 @@ ${singleLine(message)}${reset}
|
|
|
41061
41384
|
);
|
|
41062
41385
|
};
|
|
41063
41386
|
var useAnimation = () => {
|
|
41064
|
-
const context =
|
|
41387
|
+
const context = import_react88.default.useContext(AnimationContext);
|
|
41065
41388
|
if (!context) {
|
|
41066
41389
|
throw new Error("useAnimation must be used within a AnimationProvider");
|
|
41067
41390
|
}
|
|
@@ -41069,8 +41392,8 @@ ${singleLine(message)}${reset}
|
|
|
41069
41392
|
};
|
|
41070
41393
|
|
|
41071
41394
|
// ../../draft-packages/tooltip/KaizenDraft/Tooltip/useUuid.ts
|
|
41072
|
-
var
|
|
41073
|
-
var useUuid = () => (0,
|
|
41395
|
+
var import_react89 = __toESM(require_react());
|
|
41396
|
+
var useUuid = () => (0, import_react89.useMemo)(() => v4_default(), []);
|
|
41074
41397
|
|
|
41075
41398
|
// ../../draft-packages/tooltip/KaizenDraft/Tooltip/Tooltip.tsx
|
|
41076
41399
|
var import_Tooltip_module = __toESM(__require("../Tooltip.module-YU7VOTNZ.scss"));
|
|
@@ -41089,10 +41412,10 @@ ${singleLine(message)}${reset}
|
|
|
41089
41412
|
tooltipId,
|
|
41090
41413
|
mood = "default"
|
|
41091
41414
|
}) => {
|
|
41092
|
-
const [popperElement, setPopperElement] = (0,
|
|
41415
|
+
const [popperElement, setPopperElement] = (0, import_react90.useState)(
|
|
41093
41416
|
null
|
|
41094
41417
|
);
|
|
41095
|
-
const [arrowElement, setArrowElement] = (0,
|
|
41418
|
+
const [arrowElement, setArrowElement] = (0, import_react90.useState)(null);
|
|
41096
41419
|
const { styles: popperStyles, attributes } = usePopper(
|
|
41097
41420
|
referenceElement,
|
|
41098
41421
|
popperElement,
|
|
@@ -41137,11 +41460,11 @@ ${singleLine(message)}${reset}
|
|
|
41137
41460
|
}
|
|
41138
41461
|
);
|
|
41139
41462
|
const { isVisible, isAnimIn, isAnimOut } = useAnimation();
|
|
41140
|
-
return isVisible || isAnimOut || isAnimIn ? /* @__PURE__ */
|
|
41463
|
+
return isVisible || isAnimOut || isAnimIn ? /* @__PURE__ */ import_react90.default.createElement(
|
|
41141
41464
|
"div",
|
|
41142
41465
|
{
|
|
41143
41466
|
ref: setPopperElement,
|
|
41144
|
-
className: (0,
|
|
41467
|
+
className: (0, import_classnames45.default)({
|
|
41145
41468
|
[import_Tooltip_module.default.tooltip]: true
|
|
41146
41469
|
}),
|
|
41147
41470
|
style: popperStyles.popper,
|
|
@@ -41149,17 +41472,17 @@ ${singleLine(message)}${reset}
|
|
|
41149
41472
|
role: "tooltip",
|
|
41150
41473
|
id: tooltipId
|
|
41151
41474
|
},
|
|
41152
|
-
/* @__PURE__ */
|
|
41153
|
-
/* @__PURE__ */
|
|
41475
|
+
/* @__PURE__ */ import_react90.default.createElement("div", { className: (0, import_classnames45.default)(import_Tooltip_module.default.tooltipContent, import_Tooltip_module.default[mood]) }, text),
|
|
41476
|
+
/* @__PURE__ */ import_react90.default.createElement(
|
|
41154
41477
|
"div",
|
|
41155
41478
|
{
|
|
41156
41479
|
ref: setArrowElement,
|
|
41157
|
-
className: (0,
|
|
41480
|
+
className: (0, import_classnames45.default)({
|
|
41158
41481
|
[import_Tooltip_module.default.arrow]: true
|
|
41159
41482
|
}),
|
|
41160
41483
|
style: popperStyles.arrow
|
|
41161
41484
|
},
|
|
41162
|
-
/* @__PURE__ */
|
|
41485
|
+
/* @__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 }))
|
|
41163
41486
|
)
|
|
41164
41487
|
) : null;
|
|
41165
41488
|
};
|
|
@@ -41175,12 +41498,12 @@ ${singleLine(message)}${reset}
|
|
|
41175
41498
|
isInitiallyVisible = false,
|
|
41176
41499
|
mood = "default"
|
|
41177
41500
|
}) => {
|
|
41178
|
-
const [isHover, setIsHover] = (0,
|
|
41179
|
-
const [isFocus, setIsFocus] = (0,
|
|
41180
|
-
const [referenceElement, setReferenceElement] = (0,
|
|
41501
|
+
const [isHover, setIsHover] = (0, import_react90.useState)(isInitiallyVisible);
|
|
41502
|
+
const [isFocus, setIsFocus] = (0, import_react90.useState)(false);
|
|
41503
|
+
const [referenceElement, setReferenceElement] = (0, import_react90.useState)(null);
|
|
41181
41504
|
const tooltipId = useUuid();
|
|
41182
41505
|
const displayToUse = inline != null ? inline ? "inline" : "block" : display;
|
|
41183
|
-
const tooltip = /* @__PURE__ */
|
|
41506
|
+
const tooltip = /* @__PURE__ */ import_react90.default.createElement(
|
|
41184
41507
|
TooltipContent,
|
|
41185
41508
|
{
|
|
41186
41509
|
text,
|
|
@@ -41190,28 +41513,28 @@ ${singleLine(message)}${reset}
|
|
|
41190
41513
|
mood
|
|
41191
41514
|
}
|
|
41192
41515
|
);
|
|
41193
|
-
const portalSelectorElementRef = (0,
|
|
41194
|
-
(0,
|
|
41516
|
+
const portalSelectorElementRef = (0, import_react90.useRef)(null);
|
|
41517
|
+
(0, import_react90.useEffect)(() => {
|
|
41195
41518
|
portalSelectorElementRef.current = portalSelector ? document.querySelector(portalSelector) : null;
|
|
41196
41519
|
}, [portalSelector]);
|
|
41197
|
-
(0,
|
|
41520
|
+
(0, import_react90.useEffect)(() => {
|
|
41198
41521
|
if (portalSelector && !portalSelectorElementRef.current) {
|
|
41199
41522
|
console.warn(
|
|
41200
41523
|
"The portal could not be created using the selector: " + portalSelector
|
|
41201
41524
|
);
|
|
41202
41525
|
}
|
|
41203
41526
|
}, [portalSelectorElementRef, portalSelector]);
|
|
41204
|
-
return /* @__PURE__ */
|
|
41527
|
+
return /* @__PURE__ */ import_react90.default.createElement(
|
|
41205
41528
|
AnimationProvider,
|
|
41206
41529
|
{
|
|
41207
41530
|
isVisible: isHover || isFocus,
|
|
41208
41531
|
animationDuration
|
|
41209
41532
|
},
|
|
41210
|
-
/* @__PURE__ */
|
|
41533
|
+
/* @__PURE__ */ import_react90.default.createElement(import_react90.default.Fragment, null, /* @__PURE__ */ import_react90.default.createElement(
|
|
41211
41534
|
"div",
|
|
41212
41535
|
{
|
|
41213
41536
|
ref: setReferenceElement,
|
|
41214
|
-
className: (0,
|
|
41537
|
+
className: (0, import_classnames45.default)(classNameOverride, {
|
|
41215
41538
|
[import_Tooltip_module.default.displayInline]: displayToUse === "inline",
|
|
41216
41539
|
[import_Tooltip_module.default.displayBlock]: displayToUse === "block",
|
|
41217
41540
|
[import_Tooltip_module.default.displayInlineBlock]: displayToUse === "inline-block",
|
|
@@ -41240,20 +41563,20 @@ ${singleLine(message)}${reset}
|
|
|
41240
41563
|
...filterTriggerProps
|
|
41241
41564
|
}) => {
|
|
41242
41565
|
const removeButtonLabel = `Remove filter - ${filterTriggerProps.label}`;
|
|
41243
|
-
return /* @__PURE__ */
|
|
41566
|
+
return /* @__PURE__ */ import_react91.default.createElement("div", { className: import_RemovableFilterTrigger_module.default.trigger }, /* @__PURE__ */ import_react91.default.createElement(
|
|
41244
41567
|
FilterTriggerButton,
|
|
41245
41568
|
{
|
|
41246
41569
|
classNameOverride: import_RemovableFilterTrigger_module.default.triggerButton,
|
|
41247
41570
|
...filterTriggerProps
|
|
41248
41571
|
}
|
|
41249
|
-
), /* @__PURE__ */
|
|
41572
|
+
), /* @__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(
|
|
41250
41573
|
"button",
|
|
41251
41574
|
{
|
|
41252
41575
|
className: import_RemovableFilterTrigger_module.default.removeButton,
|
|
41253
41576
|
"aria-label": removeButtonLabel,
|
|
41254
41577
|
onClick: onRemove
|
|
41255
41578
|
},
|
|
41256
|
-
/* @__PURE__ */
|
|
41579
|
+
/* @__PURE__ */ import_react91.default.createElement(Icon, { icon: clear_icon_default, role: "presentation" })
|
|
41257
41580
|
)));
|
|
41258
41581
|
};
|
|
41259
41582
|
RemovableFilterTrigger.displayName = "RemovableFilterTrigger";
|
|
@@ -41279,30 +41602,30 @@ ${singleLine(message)}${reset}
|
|
|
41279
41602
|
FilterMultiSelect.displayName = "FilterMultiSelect";
|
|
41280
41603
|
|
|
41281
41604
|
// ../tabs/src/Tab.tsx
|
|
41282
|
-
var
|
|
41605
|
+
var import_react106 = __toESM(require_react());
|
|
41283
41606
|
|
|
41284
41607
|
// ../../node_modules/@reach/tabs/dist/reach-tabs.mjs
|
|
41285
|
-
var
|
|
41608
|
+
var React78 = __toESM(require_react(), 1);
|
|
41286
41609
|
|
|
41287
41610
|
// ../../node_modules/@reach/descendants/dist/reach-descendants.mjs
|
|
41288
|
-
var
|
|
41611
|
+
var React76 = __toESM(require_react(), 1);
|
|
41289
41612
|
|
|
41290
41613
|
// ../../node_modules/@reach/utils/dist/reach-utils.mjs
|
|
41291
|
-
var import_react83 = __toESM(require_react(), 1);
|
|
41292
|
-
var import_react84 = __toESM(require_react(), 1);
|
|
41293
|
-
var React66 = __toESM(require_react(), 1);
|
|
41294
|
-
var import_react85 = __toESM(require_react(), 1);
|
|
41295
|
-
var import_react86 = __toESM(require_react(), 1);
|
|
41296
|
-
var import_react87 = __toESM(require_react(), 1);
|
|
41297
|
-
var import_react88 = __toESM(require_react(), 1);
|
|
41298
|
-
var import_react89 = __toESM(require_react(), 1);
|
|
41299
|
-
var import_react90 = __toESM(require_react(), 1);
|
|
41300
|
-
var import_react91 = __toESM(require_react(), 1);
|
|
41301
41614
|
var import_react92 = __toESM(require_react(), 1);
|
|
41302
41615
|
var import_react93 = __toESM(require_react(), 1);
|
|
41616
|
+
var React75 = __toESM(require_react(), 1);
|
|
41303
41617
|
var import_react94 = __toESM(require_react(), 1);
|
|
41304
41618
|
var import_react95 = __toESM(require_react(), 1);
|
|
41305
41619
|
var import_react96 = __toESM(require_react(), 1);
|
|
41620
|
+
var import_react97 = __toESM(require_react(), 1);
|
|
41621
|
+
var import_react98 = __toESM(require_react(), 1);
|
|
41622
|
+
var import_react99 = __toESM(require_react(), 1);
|
|
41623
|
+
var import_react100 = __toESM(require_react(), 1);
|
|
41624
|
+
var import_react101 = __toESM(require_react(), 1);
|
|
41625
|
+
var import_react102 = __toESM(require_react(), 1);
|
|
41626
|
+
var import_react103 = __toESM(require_react(), 1);
|
|
41627
|
+
var import_react104 = __toESM(require_react(), 1);
|
|
41628
|
+
var import_react105 = __toESM(require_react(), 1);
|
|
41306
41629
|
function canUseDOM() {
|
|
41307
41630
|
return !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
41308
41631
|
}
|
|
@@ -41334,7 +41657,7 @@ ${singleLine(message)}${reset}
|
|
|
41334
41657
|
}
|
|
41335
41658
|
}
|
|
41336
41659
|
function useComposedRefs(...refs) {
|
|
41337
|
-
return (0,
|
|
41660
|
+
return (0, import_react93.useCallback)((node) => {
|
|
41338
41661
|
for (let ref of refs) {
|
|
41339
41662
|
assignRef(ref, node);
|
|
41340
41663
|
}
|
|
@@ -41359,16 +41682,16 @@ ${singleLine(message)}${reset}
|
|
|
41359
41682
|
return ((_a = getComputedStyles(element)) == null ? void 0 : _a.getPropertyValue(styleProp)) || null;
|
|
41360
41683
|
}
|
|
41361
41684
|
function createContext2(rootComponentName, defaultContext) {
|
|
41362
|
-
let Ctx =
|
|
41685
|
+
let Ctx = React75.createContext(defaultContext);
|
|
41363
41686
|
function Provider(props) {
|
|
41364
41687
|
let { children, ...context } = props;
|
|
41365
|
-
let value =
|
|
41366
|
-
return /* @__PURE__ */
|
|
41688
|
+
let value = React75.useMemo(() => context, Object.values(context));
|
|
41689
|
+
return /* @__PURE__ */ React75.createElement(Ctx.Provider, {
|
|
41367
41690
|
value
|
|
41368
41691
|
}, children);
|
|
41369
41692
|
}
|
|
41370
41693
|
function useContext22(callerComponentName) {
|
|
41371
|
-
let context =
|
|
41694
|
+
let context = React75.useContext(Ctx);
|
|
41372
41695
|
if (context) {
|
|
41373
41696
|
return context;
|
|
41374
41697
|
}
|
|
@@ -41392,7 +41715,7 @@ ${singleLine(message)}${reset}
|
|
|
41392
41715
|
calledFrom = "A component"
|
|
41393
41716
|
}) {
|
|
41394
41717
|
let wasControlled = controlledValue !== void 0;
|
|
41395
|
-
let isControlledRef = (0,
|
|
41718
|
+
let isControlledRef = (0, import_react96.useRef)(wasControlled);
|
|
41396
41719
|
if (true) {
|
|
41397
41720
|
if (!isControlledRef.current && wasControlled) {
|
|
41398
41721
|
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.`);
|
|
@@ -41401,8 +41724,8 @@ ${singleLine(message)}${reset}
|
|
|
41401
41724
|
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.`);
|
|
41402
41725
|
}
|
|
41403
41726
|
}
|
|
41404
|
-
let [valueState, setValue] = (0,
|
|
41405
|
-
let set = (0,
|
|
41727
|
+
let [valueState, setValue] = (0, import_react96.useState)(isControlledRef.current ? controlledValue : defaultValue);
|
|
41728
|
+
let set = (0, import_react96.useCallback)((n2) => {
|
|
41406
41729
|
if (!isControlledRef.current) {
|
|
41407
41730
|
setValue(n2);
|
|
41408
41731
|
}
|
|
@@ -41410,15 +41733,15 @@ ${singleLine(message)}${reset}
|
|
|
41410
41733
|
return [isControlledRef.current ? controlledValue : valueState, set];
|
|
41411
41734
|
}
|
|
41412
41735
|
function useForceUpdate() {
|
|
41413
|
-
let [, dispatch] = (0,
|
|
41414
|
-
return (0,
|
|
41736
|
+
let [, dispatch] = (0, import_react99.useState)(/* @__PURE__ */ Object.create(null));
|
|
41737
|
+
return (0, import_react99.useCallback)(() => {
|
|
41415
41738
|
dispatch(/* @__PURE__ */ Object.create(null));
|
|
41416
41739
|
}, []);
|
|
41417
41740
|
}
|
|
41418
|
-
var useIsomorphicLayoutEffect2 = canUseDOM() ?
|
|
41741
|
+
var useIsomorphicLayoutEffect2 = canUseDOM() ? import_react100.useLayoutEffect : import_react100.useEffect;
|
|
41419
41742
|
function useStatefulRefValue(ref, initialState) {
|
|
41420
|
-
let [state, setState] = (0,
|
|
41421
|
-
let callbackRef = (0,
|
|
41743
|
+
let [state, setState] = (0, import_react104.useState)(initialState);
|
|
41744
|
+
let callbackRef = (0, import_react104.useCallback)((refValue) => {
|
|
41422
41745
|
ref.current = refValue;
|
|
41423
41746
|
setState(refValue);
|
|
41424
41747
|
}, []);
|
|
@@ -41428,7 +41751,7 @@ ${singleLine(message)}${reset}
|
|
|
41428
41751
|
// ../../node_modules/@reach/descendants/dist/reach-descendants.mjs
|
|
41429
41752
|
function createDescendantContext(name, initialValue = {}) {
|
|
41430
41753
|
const descendants = [];
|
|
41431
|
-
let ctx =
|
|
41754
|
+
let ctx = React76.createContext({
|
|
41432
41755
|
descendants,
|
|
41433
41756
|
registerDescendant: () => noop,
|
|
41434
41757
|
...initialValue
|
|
@@ -41438,7 +41761,7 @@ ${singleLine(message)}${reset}
|
|
|
41438
41761
|
}
|
|
41439
41762
|
function useDescendant(descendant, context, indexProp) {
|
|
41440
41763
|
let forceUpdate = useForceUpdate();
|
|
41441
|
-
let { registerDescendant, descendants } =
|
|
41764
|
+
let { registerDescendant, descendants } = React76.useContext(context);
|
|
41442
41765
|
let index = indexProp ?? descendants.findIndex((item) => item.element === descendant.element);
|
|
41443
41766
|
useIsomorphicLayoutEffect2(() => {
|
|
41444
41767
|
if (!descendant.element)
|
|
@@ -41454,10 +41777,10 @@ ${singleLine(message)}${reset}
|
|
|
41454
41777
|
return index;
|
|
41455
41778
|
}
|
|
41456
41779
|
function useDescendantsInit() {
|
|
41457
|
-
return
|
|
41780
|
+
return React76.useState([]);
|
|
41458
41781
|
}
|
|
41459
41782
|
function useDescendants(ctx) {
|
|
41460
|
-
return
|
|
41783
|
+
return React76.useContext(ctx).descendants;
|
|
41461
41784
|
}
|
|
41462
41785
|
function DescendantProvider({
|
|
41463
41786
|
context: Ctx,
|
|
@@ -41465,7 +41788,7 @@ ${singleLine(message)}${reset}
|
|
|
41465
41788
|
items,
|
|
41466
41789
|
set
|
|
41467
41790
|
}) {
|
|
41468
|
-
let registerDescendant =
|
|
41791
|
+
let registerDescendant = React76.useCallback(({
|
|
41469
41792
|
element,
|
|
41470
41793
|
index: explicitIndex,
|
|
41471
41794
|
...rest
|
|
@@ -41503,8 +41826,8 @@ ${singleLine(message)}${reset}
|
|
|
41503
41826
|
set((items2) => items2.filter((item) => element !== item.element));
|
|
41504
41827
|
};
|
|
41505
41828
|
}, []);
|
|
41506
|
-
return /* @__PURE__ */
|
|
41507
|
-
value:
|
|
41829
|
+
return /* @__PURE__ */ React76.createElement(Ctx.Provider, {
|
|
41830
|
+
value: React76.useMemo(() => {
|
|
41508
41831
|
return {
|
|
41509
41832
|
descendants: items,
|
|
41510
41833
|
registerDescendant
|
|
@@ -41513,7 +41836,7 @@ ${singleLine(message)}${reset}
|
|
|
41513
41836
|
}, children);
|
|
41514
41837
|
}
|
|
41515
41838
|
function useDescendantKeyDown(context, options) {
|
|
41516
|
-
let { descendants } =
|
|
41839
|
+
let { descendants } = React76.useContext(context);
|
|
41517
41840
|
let {
|
|
41518
41841
|
callback,
|
|
41519
41842
|
currentIndex,
|
|
@@ -41638,26 +41961,26 @@ ${singleLine(message)}${reset}
|
|
|
41638
41961
|
}
|
|
41639
41962
|
|
|
41640
41963
|
// ../../node_modules/@reach/auto-id/dist/reach-auto-id.mjs
|
|
41641
|
-
var
|
|
41964
|
+
var React77 = __toESM(require_react(), 1);
|
|
41642
41965
|
var serverHandoffComplete = false;
|
|
41643
41966
|
var id = 0;
|
|
41644
41967
|
function genId() {
|
|
41645
41968
|
return ++id;
|
|
41646
41969
|
}
|
|
41647
|
-
var maybeReactUseId =
|
|
41970
|
+
var maybeReactUseId = React77["useId".toString()];
|
|
41648
41971
|
function useId(providedId) {
|
|
41649
41972
|
if (maybeReactUseId !== void 0) {
|
|
41650
41973
|
let generatedId = maybeReactUseId();
|
|
41651
41974
|
return providedId ?? generatedId;
|
|
41652
41975
|
}
|
|
41653
41976
|
let initialId = providedId ?? (serverHandoffComplete ? genId() : null);
|
|
41654
|
-
let [id2, setId] =
|
|
41977
|
+
let [id2, setId] = React77.useState(initialId);
|
|
41655
41978
|
useIsomorphicLayoutEffect2(() => {
|
|
41656
41979
|
if (id2 === null) {
|
|
41657
41980
|
setId(genId());
|
|
41658
41981
|
}
|
|
41659
41982
|
}, []);
|
|
41660
|
-
|
|
41983
|
+
React77.useEffect(() => {
|
|
41661
41984
|
if (serverHandoffComplete === false) {
|
|
41662
41985
|
serverHandoffComplete = true;
|
|
41663
41986
|
}
|
|
@@ -41674,7 +41997,7 @@ ${singleLine(message)}${reset}
|
|
|
41674
41997
|
TabsKeyboardActivation2["Manual"] = "manual";
|
|
41675
41998
|
return TabsKeyboardActivation2;
|
|
41676
41999
|
})(TabsKeyboardActivation || {});
|
|
41677
|
-
var Tabs =
|
|
42000
|
+
var Tabs = React78.forwardRef(({
|
|
41678
42001
|
as: Comp = "div",
|
|
41679
42002
|
children,
|
|
41680
42003
|
defaultIndex,
|
|
@@ -41685,27 +42008,27 @@ ${singleLine(message)}${reset}
|
|
|
41685
42008
|
readOnly = false,
|
|
41686
42009
|
...props
|
|
41687
42010
|
}, ref) => {
|
|
41688
|
-
let { current: isControlled } =
|
|
42011
|
+
let { current: isControlled } = React78.useRef(controlledIndex !== void 0);
|
|
41689
42012
|
let id2 = useId(props.id || "tabs");
|
|
41690
|
-
let selectedPanelRef =
|
|
41691
|
-
let isRTL =
|
|
42013
|
+
let selectedPanelRef = React78.useRef(null);
|
|
42014
|
+
let isRTL = React78.useRef(false);
|
|
41692
42015
|
let [selectedIndex, setSelectedIndex] = useControlledState({
|
|
41693
42016
|
controlledValue: controlledIndex,
|
|
41694
42017
|
defaultValue: defaultIndex ?? 0,
|
|
41695
42018
|
calledFrom: "Tabs"
|
|
41696
42019
|
});
|
|
41697
|
-
let [focusedIndex, setFocusedIndex] =
|
|
42020
|
+
let [focusedIndex, setFocusedIndex] = React78.useState(-1);
|
|
41698
42021
|
let [tabs, setTabs] = useDescendantsInit();
|
|
41699
|
-
let onFocusPanel =
|
|
42022
|
+
let onFocusPanel = React78.useCallback(() => {
|
|
41700
42023
|
if (selectedPanelRef.current && isFunction(selectedPanelRef.current.focus)) {
|
|
41701
42024
|
selectedPanelRef.current.focus();
|
|
41702
42025
|
}
|
|
41703
42026
|
}, []);
|
|
41704
|
-
let onSelectTab =
|
|
42027
|
+
let onSelectTab = React78.useCallback((index) => {
|
|
41705
42028
|
onChange && onChange(index);
|
|
41706
42029
|
setSelectedIndex(index);
|
|
41707
42030
|
}, [onChange, setSelectedIndex]);
|
|
41708
|
-
let onSelectTabWithKeyboard =
|
|
42031
|
+
let onSelectTabWithKeyboard = React78.useCallback((index) => {
|
|
41709
42032
|
var _a;
|
|
41710
42033
|
let tabElement = (_a = tabs[index]) == null ? void 0 : _a.element;
|
|
41711
42034
|
let doc = getOwnerDocument(tabElement);
|
|
@@ -41717,11 +42040,11 @@ ${singleLine(message)}${reset}
|
|
|
41717
42040
|
tabElement.focus();
|
|
41718
42041
|
}
|
|
41719
42042
|
}, [keyboardActivation, onChange, setSelectedIndex, tabs]);
|
|
41720
|
-
return /* @__PURE__ */
|
|
42043
|
+
return /* @__PURE__ */ React78.createElement(DescendantProvider, {
|
|
41721
42044
|
context: TabsDescendantsContext,
|
|
41722
42045
|
items: tabs,
|
|
41723
42046
|
set: setTabs
|
|
41724
|
-
}, /* @__PURE__ */
|
|
42047
|
+
}, /* @__PURE__ */ React78.createElement(TabsProvider, {
|
|
41725
42048
|
focusedIndex,
|
|
41726
42049
|
id: id2,
|
|
41727
42050
|
isControlled,
|
|
@@ -41735,7 +42058,7 @@ ${singleLine(message)}${reset}
|
|
|
41735
42058
|
selectedPanelRef,
|
|
41736
42059
|
setFocusedIndex,
|
|
41737
42060
|
setSelectedIndex
|
|
41738
|
-
}, /* @__PURE__ */
|
|
42061
|
+
}, /* @__PURE__ */ React78.createElement(Comp, {
|
|
41739
42062
|
...props,
|
|
41740
42063
|
ref,
|
|
41741
42064
|
"data-reach-tabs": "",
|
|
@@ -41744,7 +42067,7 @@ ${singleLine(message)}${reset}
|
|
|
41744
42067
|
}, isFunction(children) ? children({ focusedIndex, id: id2, selectedIndex }) : children)));
|
|
41745
42068
|
});
|
|
41746
42069
|
Tabs.displayName = "Tabs";
|
|
41747
|
-
var TabListImpl =
|
|
42070
|
+
var TabListImpl = React78.forwardRef(({ children, as: Comp = "div", onKeyDown, ...props }, forwardedRef) => {
|
|
41748
42071
|
let {
|
|
41749
42072
|
focusedIndex,
|
|
41750
42073
|
isControlled,
|
|
@@ -41756,9 +42079,9 @@ ${singleLine(message)}${reset}
|
|
|
41756
42079
|
setSelectedIndex
|
|
41757
42080
|
} = useTabsCtx("TabList");
|
|
41758
42081
|
let tabs = useDescendants(TabsDescendantsContext);
|
|
41759
|
-
let ownRef =
|
|
42082
|
+
let ownRef = React78.useRef(null);
|
|
41760
42083
|
let ref = useComposedRefs(forwardedRef, ownRef);
|
|
41761
|
-
|
|
42084
|
+
React78.useEffect(() => {
|
|
41762
42085
|
if (ownRef.current && (ownRef.current.ownerDocument && ownRef.current.ownerDocument.dir === "rtl" || getComputedStyle3(ownRef.current, "direction") === "rtl")) {
|
|
41763
42086
|
isRTL.current = true;
|
|
41764
42087
|
}
|
|
@@ -41780,7 +42103,7 @@ ${singleLine(message)}${reset}
|
|
|
41780
42103
|
}
|
|
41781
42104
|
}
|
|
41782
42105
|
}, [tabs, isControlled, selectedIndex, setSelectedIndex]);
|
|
41783
|
-
return /* @__PURE__ */
|
|
42106
|
+
return /* @__PURE__ */ React78.createElement(Comp, {
|
|
41784
42107
|
role: "tablist",
|
|
41785
42108
|
"aria-orientation": orientation,
|
|
41786
42109
|
...props,
|
|
@@ -41790,9 +42113,9 @@ ${singleLine(message)}${reset}
|
|
|
41790
42113
|
}, children);
|
|
41791
42114
|
});
|
|
41792
42115
|
TabListImpl.displayName = "TabList";
|
|
41793
|
-
var TabList =
|
|
42116
|
+
var TabList = React78.memo(TabListImpl);
|
|
41794
42117
|
TabList.displayName = "TabList";
|
|
41795
|
-
var Tab =
|
|
42118
|
+
var Tab = React78.forwardRef(({
|
|
41796
42119
|
isSelected: _,
|
|
41797
42120
|
children,
|
|
41798
42121
|
as: Comp = "button",
|
|
@@ -41809,10 +42132,10 @@ ${singleLine(message)}${reset}
|
|
|
41809
42132
|
selectedIndex,
|
|
41810
42133
|
setFocusedIndex
|
|
41811
42134
|
} = useTabsCtx("Tab");
|
|
41812
|
-
let ownRef =
|
|
42135
|
+
let ownRef = React78.useRef(null);
|
|
41813
42136
|
let [element, handleRefSet] = useStatefulRefValue(ownRef, null);
|
|
41814
42137
|
let ref = useComposedRefs(forwardedRef, handleRefSet);
|
|
41815
|
-
let descendant =
|
|
42138
|
+
let descendant = React78.useMemo(() => {
|
|
41816
42139
|
return {
|
|
41817
42140
|
element,
|
|
41818
42141
|
disabled: !!disabled
|
|
@@ -41824,7 +42147,7 @@ ${singleLine(message)}${reset}
|
|
|
41824
42147
|
function onSelect() {
|
|
41825
42148
|
onSelectTab(index);
|
|
41826
42149
|
}
|
|
41827
|
-
return /* @__PURE__ */
|
|
42150
|
+
return /* @__PURE__ */ React78.createElement(Comp, {
|
|
41828
42151
|
"aria-controls": makeId(tabsId, "panel", index),
|
|
41829
42152
|
"aria-disabled": disabled,
|
|
41830
42153
|
"aria-selected": isSelected,
|
|
@@ -41848,24 +42171,24 @@ ${singleLine(message)}${reset}
|
|
|
41848
42171
|
}, children);
|
|
41849
42172
|
});
|
|
41850
42173
|
Tab.displayName = "Tab";
|
|
41851
|
-
var TabPanelsImpl =
|
|
41852
|
-
let ownRef =
|
|
42174
|
+
var TabPanelsImpl = React78.forwardRef(({ children, as: Comp = "div", ...props }, forwardedRef) => {
|
|
42175
|
+
let ownRef = React78.useRef();
|
|
41853
42176
|
let ref = useComposedRefs(ownRef, forwardedRef);
|
|
41854
42177
|
let [tabPanels, setTabPanels] = useDescendantsInit();
|
|
41855
|
-
return /* @__PURE__ */
|
|
42178
|
+
return /* @__PURE__ */ React78.createElement(DescendantProvider, {
|
|
41856
42179
|
context: TabPanelDescendantsContext,
|
|
41857
42180
|
items: tabPanels,
|
|
41858
42181
|
set: setTabPanels
|
|
41859
|
-
}, /* @__PURE__ */
|
|
42182
|
+
}, /* @__PURE__ */ React78.createElement(Comp, {
|
|
41860
42183
|
...props,
|
|
41861
42184
|
ref,
|
|
41862
42185
|
"data-reach-tab-panels": ""
|
|
41863
42186
|
}, children));
|
|
41864
42187
|
});
|
|
41865
42188
|
TabPanelsImpl.displayName = "TabPanels";
|
|
41866
|
-
var TabPanels =
|
|
42189
|
+
var TabPanels = React78.memo(TabPanelsImpl);
|
|
41867
42190
|
TabPanels.displayName = "TabPanels";
|
|
41868
|
-
var TabPanel =
|
|
42191
|
+
var TabPanel = React78.forwardRef(({
|
|
41869
42192
|
children,
|
|
41870
42193
|
"aria-label": ariaLabel,
|
|
41871
42194
|
as: Comp = "div",
|
|
@@ -41877,19 +42200,19 @@ ${singleLine(message)}${reset}
|
|
|
41877
42200
|
selectedIndex,
|
|
41878
42201
|
id: tabsId
|
|
41879
42202
|
} = useTabsCtx("TabPanel");
|
|
41880
|
-
let ownRef =
|
|
42203
|
+
let ownRef = React78.useRef(null);
|
|
41881
42204
|
let [element, handleRefSet] = useStatefulRefValue(ownRef, null);
|
|
41882
|
-
let descendant =
|
|
42205
|
+
let descendant = React78.useMemo(() => ({ element }), [element]);
|
|
41883
42206
|
let index = useDescendant(descendant, TabPanelDescendantsContext, indexProp);
|
|
41884
42207
|
let id2 = makeId(tabsId, "panel", index);
|
|
41885
42208
|
let isSelected = index === selectedIndex;
|
|
41886
|
-
let readyToHide =
|
|
42209
|
+
let readyToHide = React78.useRef(false);
|
|
41887
42210
|
let hidden = readyToHide.current ? !isSelected : false;
|
|
41888
|
-
|
|
42211
|
+
React78.useEffect(() => {
|
|
41889
42212
|
readyToHide.current = true;
|
|
41890
42213
|
}, []);
|
|
41891
42214
|
let ref = useComposedRefs(forwardedRef, handleRefSet, isSelected ? selectedPanelRef : null);
|
|
41892
|
-
return /* @__PURE__ */
|
|
42215
|
+
return /* @__PURE__ */ React78.createElement(Comp, {
|
|
41893
42216
|
"aria-labelledby": makeId(tabsId, "tab", index),
|
|
41894
42217
|
hidden,
|
|
41895
42218
|
role: "tabpanel",
|
|
@@ -41906,12 +42229,12 @@ ${singleLine(message)}${reset}
|
|
|
41906
42229
|
}
|
|
41907
42230
|
|
|
41908
42231
|
// ../tabs/src/Tab.tsx
|
|
41909
|
-
var
|
|
42232
|
+
var import_classnames46 = __toESM(require_classnames());
|
|
41910
42233
|
var import_Tab_module = __toESM(__require("../Tab.module-4S535DQG.scss"));
|
|
41911
42234
|
var Tab2 = (props) => {
|
|
41912
42235
|
const { isSelected, badge, disabled, children } = props;
|
|
41913
|
-
const [isHovered, setIsHovered] = (0,
|
|
41914
|
-
const [isFocused, setIsFocused] = (0,
|
|
42236
|
+
const [isHovered, setIsHovered] = (0, import_react106.useState)(false);
|
|
42237
|
+
const [isFocused, setIsFocused] = (0, import_react106.useState)(false);
|
|
41915
42238
|
const showActiveBadge = isSelected || isHovered || isFocused;
|
|
41916
42239
|
const onFocus = (event) => {
|
|
41917
42240
|
var _a;
|
|
@@ -41923,32 +42246,32 @@ ${singleLine(message)}${reset}
|
|
|
41923
42246
|
setIsFocused(false);
|
|
41924
42247
|
(_a = props.onBlur) == null ? void 0 : _a.call(props, event);
|
|
41925
42248
|
};
|
|
41926
|
-
return /* @__PURE__ */
|
|
42249
|
+
return /* @__PURE__ */ import_react106.default.createElement(
|
|
41927
42250
|
Tab,
|
|
41928
42251
|
{
|
|
41929
42252
|
disabled,
|
|
41930
|
-
className: (0,
|
|
42253
|
+
className: (0, import_classnames46.default)(import_Tab_module.default.tab, { [import_Tab_module.default.selected]: isSelected }),
|
|
41931
42254
|
onFocus,
|
|
41932
42255
|
onBlur,
|
|
41933
42256
|
onMouseEnter: () => setIsHovered(true),
|
|
41934
42257
|
onMouseLeave: () => setIsHovered(false)
|
|
41935
42258
|
},
|
|
41936
42259
|
children,
|
|
41937
|
-
badge && /* @__PURE__ */
|
|
42260
|
+
badge && /* @__PURE__ */ import_react106.default.createElement("span", { className: import_Tab_module.default.badge }, /* @__PURE__ */ import_react106.default.createElement(Badge, { variant: showActiveBadge ? "active" : "default" }, badge))
|
|
41938
42261
|
);
|
|
41939
42262
|
};
|
|
41940
42263
|
|
|
41941
42264
|
// ../tabs/src/TabList.tsx
|
|
41942
|
-
var
|
|
41943
|
-
var
|
|
42265
|
+
var import_react107 = __toESM(require_react());
|
|
42266
|
+
var import_classnames47 = __toESM(require_classnames());
|
|
41944
42267
|
var import_TabList_module = __toESM(__require("../TabList.module-FVWF5RCV.scss"));
|
|
41945
42268
|
var TabList2 = (props) => {
|
|
41946
42269
|
const { "aria-label": ariaLabel, noPadding = false, children } = props;
|
|
41947
|
-
return /* @__PURE__ */
|
|
42270
|
+
return /* @__PURE__ */ import_react107.default.createElement(
|
|
41948
42271
|
TabList,
|
|
41949
42272
|
{
|
|
41950
42273
|
"aria-label": ariaLabel,
|
|
41951
|
-
className: (0,
|
|
42274
|
+
className: (0, import_classnames47.default)(import_TabList_module.default.tabList, {
|
|
41952
42275
|
[import_TabList_module.default.noPadding]: noPadding
|
|
41953
42276
|
})
|
|
41954
42277
|
},
|
|
@@ -41957,22 +42280,22 @@ ${singleLine(message)}${reset}
|
|
|
41957
42280
|
};
|
|
41958
42281
|
|
|
41959
42282
|
// ../tabs/src/TabPanel.tsx
|
|
41960
|
-
var
|
|
42283
|
+
var import_react108 = __toESM(require_react());
|
|
41961
42284
|
var import_TabPanel_module = __toESM(__require("../TabPanel.module-2YHJE4CY.scss"));
|
|
41962
42285
|
var TabPanel2 = (props) => {
|
|
41963
42286
|
const { children } = props;
|
|
41964
|
-
return /* @__PURE__ */
|
|
42287
|
+
return /* @__PURE__ */ import_react108.default.createElement(TabPanel, { className: import_TabPanel_module.default.tabPanel }, children);
|
|
41965
42288
|
};
|
|
41966
42289
|
|
|
41967
42290
|
// ../tabs/src/TabPanels.tsx
|
|
41968
|
-
var
|
|
42291
|
+
var import_react109 = __toESM(require_react());
|
|
41969
42292
|
var TabPanels2 = (props) => {
|
|
41970
42293
|
const { children } = props;
|
|
41971
|
-
return /* @__PURE__ */
|
|
42294
|
+
return /* @__PURE__ */ import_react109.default.createElement(TabPanels, null, children);
|
|
41972
42295
|
};
|
|
41973
42296
|
|
|
41974
42297
|
// ../tabs/src/Tabs.tsx
|
|
41975
|
-
var
|
|
42298
|
+
var import_react110 = __toESM(require_react());
|
|
41976
42299
|
var Tabs2 = (props) => {
|
|
41977
42300
|
const {
|
|
41978
42301
|
defaultIndex,
|
|
@@ -41981,7 +42304,7 @@ ${singleLine(message)}${reset}
|
|
|
41981
42304
|
onChange,
|
|
41982
42305
|
children
|
|
41983
42306
|
} = props;
|
|
41984
|
-
return /* @__PURE__ */
|
|
42307
|
+
return /* @__PURE__ */ import_react110.default.createElement(
|
|
41985
42308
|
Tabs,
|
|
41986
42309
|
{
|
|
41987
42310
|
defaultIndex,
|