@doist/reactist 30.1.4 → 31.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/reactist.cjs.development.js +317 -407
- package/dist/reactist.cjs.development.js.map +1 -1
- package/dist/reactist.cjs.production.min.js +1 -1
- package/dist/reactist.cjs.production.min.js.map +1 -1
- package/es/avatar/avatar.js +3 -6
- package/es/avatar/avatar.js.map +1 -1
- package/es/badge/badge.js +3 -6
- package/es/badge/badge.js.map +1 -1
- package/es/banner/banner.js +15 -22
- package/es/banner/banner.js.map +1 -1
- package/es/banner/banner.module.css.js +1 -1
- package/es/base-field/base-field.js +6 -7
- package/es/base-field/base-field.js.map +1 -1
- package/es/box/box.js +43 -46
- package/es/box/box.js.map +1 -1
- package/es/button/button.js +18 -22
- package/es/button/button.js.map +1 -1
- package/es/checkbox-field/checkbox-field.js +9 -12
- package/es/checkbox-field/checkbox-field.js.map +1 -1
- package/es/checkbox-field/checkbox-icon.js +3 -6
- package/es/checkbox-field/checkbox-icon.js.map +1 -1
- package/es/checkbox-field/use-fork-ref.js +1 -1
- package/es/checkbox-field/use-fork-ref.js.map +1 -1
- package/es/columns/columns.js +15 -20
- package/es/columns/columns.js.map +1 -1
- package/es/components/deprecated-button/deprecated-button.js +10 -13
- package/es/components/deprecated-button/deprecated-button.js.map +1 -1
- package/es/components/deprecated-dropdown/dropdown.js +6 -8
- package/es/components/deprecated-dropdown/dropdown.js.map +1 -1
- package/es/components/deprecated-select/select.js +3 -6
- package/es/components/deprecated-select/select.js.map +1 -1
- package/es/components/keyboard-shortcut/keyboard-shortcut.js +7 -11
- package/es/components/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
- package/es/divider/divider.js +3 -6
- package/es/divider/divider.js.map +1 -1
- package/es/heading/heading.js +3 -6
- package/es/heading/heading.js.map +1 -1
- package/es/hidden/hidden.js +6 -9
- package/es/hidden/hidden.js.map +1 -1
- package/es/icons/alert-icon.js +3 -6
- package/es/icons/alert-icon.js.map +1 -1
- package/es/icons/banner-icon.js +3 -6
- package/es/icons/banner-icon.js.map +1 -1
- package/es/inline/inline.js +9 -12
- package/es/inline/inline.js.map +1 -1
- package/es/loading/loading.js +3 -6
- package/es/loading/loading.js.map +1 -1
- package/es/menu/menu.js +26 -39
- package/es/menu/menu.js.map +1 -1
- package/es/modal/modal.js +28 -39
- package/es/modal/modal.js.map +1 -1
- package/es/password-field/password-field.js +3 -6
- package/es/password-field/password-field.js.map +1 -1
- package/es/prose/prose.js +3 -6
- package/es/prose/prose.js.map +1 -1
- package/es/select-field/select-field.js +7 -8
- package/es/select-field/select-field.js.map +1 -1
- package/es/stack/stack.js +10 -13
- package/es/stack/stack.js.map +1 -1
- package/es/switch-field/switch-field.js +3 -6
- package/es/switch-field/switch-field.js.map +1 -1
- package/es/tabs/tabs.js +15 -19
- package/es/tabs/tabs.js.map +1 -1
- package/es/text/text.js +11 -14
- package/es/text/text.js.map +1 -1
- package/es/text-area/text-area.js +7 -11
- package/es/text-area/text-area.js.map +1 -1
- package/es/text-field/text-field.js +7 -11
- package/es/text-field/text-field.js.map +1 -1
- package/es/text-link/text-link.js +8 -11
- package/es/text-link/text-link.js.map +1 -1
- package/es/toast/static-toast.js +3 -6
- package/es/toast/static-toast.js.map +1 -1
- package/es/toast/use-toasts.js +10 -13
- package/es/toast/use-toasts.js.map +1 -1
- package/es/tooltip/tooltip.js +3 -0
- package/es/tooltip/tooltip.js.map +1 -1
- package/lib/avatar/avatar.js +3 -7
- package/lib/avatar/avatar.js.map +1 -1
- package/lib/badge/badge.js +3 -7
- package/lib/badge/badge.js.map +1 -1
- package/lib/banner/banner.js +15 -23
- package/lib/banner/banner.js.map +1 -1
- package/lib/banner/banner.module.css.js +1 -1
- package/lib/base-field/base-field.js +6 -10
- package/lib/base-field/base-field.js.map +1 -1
- package/lib/box/box.js +43 -48
- package/lib/box/box.js.map +1 -1
- package/lib/button/button.js +18 -23
- package/lib/button/button.js.map +1 -1
- package/lib/checkbox-field/checkbox-field.js +9 -13
- package/lib/checkbox-field/checkbox-field.js.map +1 -1
- package/lib/checkbox-field/checkbox-icon.js +3 -7
- package/lib/checkbox-field/checkbox-icon.js.map +1 -1
- package/lib/checkbox-field/use-fork-ref.js +1 -1
- package/lib/checkbox-field/use-fork-ref.js.map +1 -1
- package/lib/columns/columns.js +15 -21
- package/lib/columns/columns.js.map +1 -1
- package/lib/components/deprecated-button/deprecated-button.js +10 -14
- package/lib/components/deprecated-button/deprecated-button.js.map +1 -1
- package/lib/components/deprecated-dropdown/dropdown.js +6 -9
- package/lib/components/deprecated-dropdown/dropdown.js.map +1 -1
- package/lib/components/deprecated-select/select.js +3 -7
- package/lib/components/deprecated-select/select.js.map +1 -1
- package/lib/components/keyboard-shortcut/keyboard-shortcut.js +7 -12
- package/lib/components/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
- package/lib/divider/divider.js +3 -7
- package/lib/divider/divider.js.map +1 -1
- package/lib/heading/heading.js +3 -7
- package/lib/heading/heading.js.map +1 -1
- package/lib/hidden/hidden.js +6 -10
- package/lib/hidden/hidden.js.map +1 -1
- package/lib/icons/alert-icon.js +3 -7
- package/lib/icons/alert-icon.js.map +1 -1
- package/lib/icons/banner-icon.js +3 -7
- package/lib/icons/banner-icon.js.map +1 -1
- package/lib/inline/inline.js +9 -13
- package/lib/inline/inline.js.map +1 -1
- package/lib/loading/loading.js +3 -7
- package/lib/loading/loading.js.map +1 -1
- package/lib/menu/menu.js +26 -41
- package/lib/menu/menu.js.map +1 -1
- package/lib/modal/modal.js +28 -40
- package/lib/modal/modal.js.map +1 -1
- package/lib/password-field/password-field.js +3 -7
- package/lib/password-field/password-field.js.map +1 -1
- package/lib/prose/prose.js +3 -7
- package/lib/prose/prose.js.map +1 -1
- package/lib/select-field/select-field.js +7 -9
- package/lib/select-field/select-field.js.map +1 -1
- package/lib/stack/stack.js +10 -14
- package/lib/stack/stack.js.map +1 -1
- package/lib/switch-field/switch-field.js +3 -7
- package/lib/switch-field/switch-field.js.map +1 -1
- package/lib/tabs/tabs.js +15 -20
- package/lib/tabs/tabs.js.map +1 -1
- package/lib/text/text.js +11 -15
- package/lib/text/text.js.map +1 -1
- package/lib/text-area/text-area.js +7 -12
- package/lib/text-area/text-area.js.map +1 -1
- package/lib/text-field/text-field.js +7 -12
- package/lib/text-field/text-field.js.map +1 -1
- package/lib/text-link/text-link.js +8 -12
- package/lib/text-link/text-link.js.map +1 -1
- package/lib/toast/static-toast.js +3 -7
- package/lib/toast/static-toast.js.map +1 -1
- package/lib/toast/use-toasts.js +10 -15
- package/lib/toast/use-toasts.js.map +1 -1
- package/lib/tooltip/tooltip.js +3 -0
- package/lib/tooltip/tooltip.js.map +1 -1
- package/lib/utils/test-helpers.d.ts +1 -1
- package/package.json +31 -57
- package/styles/banner.css +1 -1
- package/styles/banner.module.css.css +1 -1
- package/styles/index.css +9 -1
- package/styles/prose.css +1 -1
- package/styles/prose.module.css.css +1 -1
- package/styles/reactist.css +3 -3
|
@@ -6,10 +6,8 @@ var reactCompilerRuntime = require('react-compiler-runtime');
|
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var classNames = require('classnames');
|
|
8
8
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
9
|
-
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
10
9
|
var ReactDOM = require('react-dom');
|
|
11
10
|
var react = require('@ariakit/react');
|
|
12
|
-
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
13
11
|
var dayjs = require('dayjs');
|
|
14
12
|
var LocalizedFormat = require('dayjs/plugin/localizedFormat');
|
|
15
13
|
var flattenChildren = require('react-keyed-flatten-children');
|
|
@@ -41,9 +39,7 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
|
41
39
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
42
40
|
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
43
41
|
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
|
|
44
|
-
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
|
|
45
42
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
46
|
-
var _objectSpread__default = /*#__PURE__*/_interopDefaultLegacy(_objectSpread);
|
|
47
43
|
var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
|
|
48
44
|
var LocalizedFormat__default = /*#__PURE__*/_interopDefaultLegacy(LocalizedFormat);
|
|
49
45
|
var flattenChildren__default = /*#__PURE__*/_interopDefaultLegacy(flattenChildren);
|
|
@@ -229,7 +225,6 @@ var modules_b537a8ee = {"paddingTop-xsmall":"c4803194","paddingTop-small":"_4e9a
|
|
|
229
225
|
|
|
230
226
|
var modules_89b7671c = {"minWidth-0":"_68ab48ca","minWidth-xsmall":"_6fa2b565","minWidth-small":"dd50fabd","minWidth-medium":"e7e2c808","minWidth-large":"_6abbe25e","minWidth-xlarge":"_54f479ac","maxWidth-xsmall":"_148492bc","maxWidth-small":"bd023b96","maxWidth-medium":"e102903f","maxWidth-large":"_0e8d76d7","maxWidth-xlarge":"_47a031d0","maxWidth-full":"cd4c8183","width-0":"_5f5959e8","width-full":"_8c75067a","width-auto":"_56a651f6","width-maxContent":"_26f87bb8","width-minContent":"_07a6ab44","width-fitContent":"a87016fa","width-xsmall":"_1a972e50","width-small":"c96d8261","width-medium":"f3829d42","width-large":"_2caef228","width-xlarge":"_069e1491"};
|
|
231
227
|
|
|
232
|
-
const _excluded$w = ["as", "position", "display", "flexDirection", "flexWrap", "flexGrow", "flexShrink", "gap", "alignItems", "justifyContent", "alignSelf", "overflow", "width", "height", "background", "border", "borderRadius", "minWidth", "maxWidth", "textAlign", "padding", "paddingY", "paddingX", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "margin", "marginY", "marginX", "marginTop", "marginRight", "marginBottom", "marginLeft", "overlayScroll", "className", "children"];
|
|
233
228
|
function getBoxClassNames({
|
|
234
229
|
position = 'static',
|
|
235
230
|
display,
|
|
@@ -286,48 +281,48 @@ function getBoxClassNames({
|
|
|
286
281
|
// other props
|
|
287
282
|
getClassNames(modules_54d944f2, 'overflow', overflow), width != null ? getClassNames(modules_89b7671c, 'width', String(width)) : null, getClassNames(modules_54d944f2, 'height', height), getClassNames(modules_54d944f2, 'bg', background), borderRadius !== 'none' ? getClassNames(modules_54d944f2, 'borderRadius', borderRadius) : null, border !== 'none' ? getClassNames(modules_54d944f2, 'border', border) : null, overlayScroll ? modules_54d944f2.overlayScroll : null);
|
|
288
283
|
}
|
|
289
|
-
const Box$1 = polymorphicComponent(function Box(
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
284
|
+
const Box$1 = polymorphicComponent(function Box({
|
|
285
|
+
as: component = 'div',
|
|
286
|
+
position = 'static',
|
|
287
|
+
display,
|
|
288
|
+
flexDirection = 'row',
|
|
289
|
+
flexWrap,
|
|
290
|
+
flexGrow,
|
|
291
|
+
flexShrink,
|
|
292
|
+
gap,
|
|
293
|
+
alignItems,
|
|
294
|
+
justifyContent,
|
|
295
|
+
alignSelf,
|
|
296
|
+
overflow,
|
|
297
|
+
width,
|
|
298
|
+
height,
|
|
299
|
+
background,
|
|
300
|
+
border,
|
|
301
|
+
borderRadius,
|
|
302
|
+
minWidth,
|
|
303
|
+
maxWidth,
|
|
304
|
+
textAlign,
|
|
305
|
+
padding,
|
|
306
|
+
paddingY,
|
|
307
|
+
paddingX,
|
|
308
|
+
paddingTop,
|
|
309
|
+
paddingRight,
|
|
310
|
+
paddingBottom,
|
|
311
|
+
paddingLeft,
|
|
312
|
+
margin,
|
|
313
|
+
marginY,
|
|
314
|
+
marginX,
|
|
315
|
+
marginTop,
|
|
316
|
+
marginRight,
|
|
317
|
+
marginBottom,
|
|
318
|
+
marginLeft,
|
|
319
|
+
overlayScroll,
|
|
320
|
+
className,
|
|
321
|
+
children,
|
|
322
|
+
...props
|
|
323
|
+
}, ref) {
|
|
324
|
+
return /*#__PURE__*/React__namespace.createElement(component, {
|
|
325
|
+
...props,
|
|
331
326
|
className: getBoxClassNames({
|
|
332
327
|
position,
|
|
333
328
|
display,
|
|
@@ -366,20 +361,17 @@ const Box$1 = polymorphicComponent(function Box(_ref, ref) {
|
|
|
366
361
|
className
|
|
367
362
|
}),
|
|
368
363
|
ref
|
|
369
|
-
}
|
|
364
|
+
}, children);
|
|
370
365
|
});
|
|
371
366
|
|
|
372
367
|
var modules_67f2d07a = {"container-xsmall":"_9b4012c9","container-small":"e35e0320","container-medium":"_0703e67f","container-large":"_1cf15621","container-xlarge":"_1c7dff67","container-xxlarge":"_25bee9b6","columnWidth-content":"_4bb9987d","columnWidth-auto":"_9dd31975","columnWidth-1-2":"_38d11c0e","columnWidth-1-3":"_7ac225c6","columnWidth-2-3":"_9c340680","columnWidth-1-4":"_81cb99d2","columnWidth-3-4":"_10fd355f","columnWidth-1-5":"_3ee66520","columnWidth-2-5":"df1201a5","columnWidth-3-5":"f772e0b2","columnWidth-4-5":"_880cbbb1","container":"eae3d34f"};
|
|
373
368
|
|
|
374
|
-
const
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
exceptionallySetClassName
|
|
381
|
-
} = _ref,
|
|
382
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$v);
|
|
369
|
+
const Column = polymorphicComponent(function Column({
|
|
370
|
+
width = 'auto',
|
|
371
|
+
children,
|
|
372
|
+
exceptionallySetClassName,
|
|
373
|
+
...props
|
|
374
|
+
}, ref) {
|
|
383
375
|
return /*#__PURE__*/React__namespace.createElement(Box$1, _extends__default["default"]({}, props, {
|
|
384
376
|
className: [exceptionallySetClassName, getClassNames(modules_67f2d07a, 'columnWidth', width.replace('/', '-'))],
|
|
385
377
|
minWidth: 0,
|
|
@@ -389,16 +381,15 @@ const Column = polymorphicComponent(function Column(_ref, ref) {
|
|
|
389
381
|
ref: ref
|
|
390
382
|
}), children);
|
|
391
383
|
});
|
|
392
|
-
const Columns = polymorphicComponent(function Columns(
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
props = _objectWithoutProperties__default["default"](_ref2, _excluded2$8);
|
|
384
|
+
const Columns = polymorphicComponent(function Columns({
|
|
385
|
+
space,
|
|
386
|
+
align = 'left',
|
|
387
|
+
alignY = 'top',
|
|
388
|
+
collapseBelow,
|
|
389
|
+
children,
|
|
390
|
+
exceptionallySetClassName,
|
|
391
|
+
...props
|
|
392
|
+
}, ref) {
|
|
402
393
|
return /*#__PURE__*/React__namespace.createElement(Box$1, _extends__default["default"]({}, props, {
|
|
403
394
|
className: [exceptionallySetClassName, modules_67f2d07a.container, getClassNames(modules_67f2d07a, 'container', space)],
|
|
404
395
|
display: "flex",
|
|
@@ -419,17 +410,15 @@ const Columns = polymorphicComponent(function Columns(_ref2, ref) {
|
|
|
419
410
|
|
|
420
411
|
var modules_c742c4d7 = {"weight-primary":"_3f3a401c","weight-secondary":"_03b05b70","weight-tertiary":"b6f67ff8"};
|
|
421
412
|
|
|
422
|
-
const _excluded$u = ["weight"];
|
|
423
413
|
function Divider(t0) {
|
|
424
414
|
const $ = reactCompilerRuntime.c(8);
|
|
425
415
|
let props;
|
|
426
416
|
let t1;
|
|
427
417
|
if ($[0] !== t0) {
|
|
428
|
-
var _t = t0;
|
|
429
418
|
({
|
|
430
|
-
weight: t1
|
|
431
|
-
|
|
432
|
-
|
|
419
|
+
weight: t1,
|
|
420
|
+
...props
|
|
421
|
+
} = t0);
|
|
433
422
|
$[0] = t0;
|
|
434
423
|
$[1] = props;
|
|
435
424
|
$[2] = t1;
|
|
@@ -463,7 +452,6 @@ function Divider(t0) {
|
|
|
463
452
|
|
|
464
453
|
var modules_4689e97e = {"hiddenOnPrint":"_0e595dea"};
|
|
465
454
|
|
|
466
|
-
const _excluded$t = ["display", "children", "exceptionallySetClassName"];
|
|
467
455
|
/**
|
|
468
456
|
* A component that allows to specify how to hide itself on certain responsive screen sizes, or on
|
|
469
457
|
* print media.
|
|
@@ -472,13 +460,12 @@ const _excluded$t = ["display", "children", "exceptionallySetClassName"];
|
|
|
472
460
|
* @see HiddenVisually for hiding content only visually, while keeping it available for assistive
|
|
473
461
|
* technologies.
|
|
474
462
|
*/
|
|
475
|
-
const Hidden = polymorphicComponent(function Hidden(
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$t);
|
|
463
|
+
const Hidden = polymorphicComponent(function Hidden({
|
|
464
|
+
display = 'block',
|
|
465
|
+
children,
|
|
466
|
+
exceptionallySetClassName,
|
|
467
|
+
...props
|
|
468
|
+
}, ref) {
|
|
482
469
|
const hiddenOnPrint = 'print' in props && props.print;
|
|
483
470
|
const hiddenOnDesktop = 'above' in props;
|
|
484
471
|
const hiddenOnMobile = 'below' in props;
|
|
@@ -523,17 +510,15 @@ const HiddenVisually = polymorphicComponent(function HiddenVisually(props, ref)
|
|
|
523
510
|
}));
|
|
524
511
|
});
|
|
525
512
|
|
|
526
|
-
const
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
} = _ref,
|
|
536
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$s);
|
|
513
|
+
const Inline = polymorphicComponent(function Inline({
|
|
514
|
+
as,
|
|
515
|
+
space,
|
|
516
|
+
align = 'left',
|
|
517
|
+
alignY = 'center',
|
|
518
|
+
children,
|
|
519
|
+
exceptionallySetClassName,
|
|
520
|
+
...props
|
|
521
|
+
}, ref) {
|
|
537
522
|
return /*#__PURE__*/React__namespace.createElement(Box$1, _extends__default["default"]({}, props, {
|
|
538
523
|
as: as,
|
|
539
524
|
display: "flex",
|
|
@@ -546,18 +531,16 @@ const Inline = polymorphicComponent(function Inline(_ref, ref) {
|
|
|
546
531
|
}), children);
|
|
547
532
|
});
|
|
548
533
|
|
|
549
|
-
const
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
} = _ref,
|
|
560
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$r);
|
|
534
|
+
const Stack = polymorphicComponent(function Stack({
|
|
535
|
+
as,
|
|
536
|
+
space,
|
|
537
|
+
align,
|
|
538
|
+
dividers = 'none',
|
|
539
|
+
width = 'full',
|
|
540
|
+
children,
|
|
541
|
+
exceptionallySetClassName,
|
|
542
|
+
...props
|
|
543
|
+
}, ref) {
|
|
561
544
|
const alignItems = align === undefined ? undefined : mapResponsiveProp(align, align => align === 'start' ? 'flexStart' : align === 'end' ? 'flexEnd' : 'center');
|
|
562
545
|
return /*#__PURE__*/React__namespace.createElement(Box$1, _extends__default["default"]({}, props, {
|
|
563
546
|
display: "flex",
|
|
@@ -683,6 +666,8 @@ const Tooltip = /*#__PURE__*/React__namespace.forwardRef(({
|
|
|
683
666
|
if (!child) {
|
|
684
667
|
return child;
|
|
685
668
|
}
|
|
669
|
+
|
|
670
|
+
/* eslint-disable react-hooks/refs */
|
|
686
671
|
if (typeof child.ref === 'string') {
|
|
687
672
|
throw new Error('Tooltip: String refs cannot be used as they cannot be forwarded');
|
|
688
673
|
}
|
|
@@ -705,13 +690,12 @@ const Tooltip = /*#__PURE__*/React__namespace.forwardRef(({
|
|
|
705
690
|
textAlign: "center"
|
|
706
691
|
})
|
|
707
692
|
}, withArrow ? /*#__PURE__*/React__namespace.createElement(react.TooltipArrow, null) : null, typeof content === 'function' ? content() : content) : null);
|
|
693
|
+
/* eslint-enable react-hooks/refs */
|
|
708
694
|
});
|
|
709
695
|
Tooltip.displayName = 'Tooltip';
|
|
710
696
|
|
|
711
697
|
var modules_5357ebb8 = {"baseButton":"_3930afa0","label":"_90654824","shape-rounded":"c05d17c2","size-small":"_1e29d236","size-normal":"_7246d092","size-large":"_2d084671","disabled":"_2b0b9d95","iconButton":"abd5766f","startIcon":"_380e7c73","endIcon":"_20fe4105","variant-primary":"_7ea1378e","variant-secondary":"_64ee8afd","variant-tertiary":"_650176bf","variant-quaternary":"aa19cb97","tone-destructive":"_7a2d9a8c"};
|
|
712
698
|
|
|
713
|
-
const _excluded$q = ["variant", "tone", "size", "shape", "type", "disabled", "loading", "tooltip", "render", "onClick", "exceptionallySetClassName", "children", "startIcon", "endIcon", "width", "align"],
|
|
714
|
-
_excluded2$7 = ["variant", "tone", "size", "shape", "type", "disabled", "loading", "tooltip", "render", "onClick", "exceptionallySetClassName", "children", "icon"];
|
|
715
699
|
function preventDefault(event) {
|
|
716
700
|
event.preventDefault();
|
|
717
701
|
}
|
|
@@ -739,7 +723,6 @@ const Button$2 = /*#__PURE__*/React__namespace.forwardRef(function Button(t0, re
|
|
|
739
723
|
let tooltip;
|
|
740
724
|
let variant;
|
|
741
725
|
if ($[0] !== t0) {
|
|
742
|
-
var _t = t0;
|
|
743
726
|
({
|
|
744
727
|
variant,
|
|
745
728
|
tone: t1,
|
|
@@ -756,9 +739,9 @@ const Button$2 = /*#__PURE__*/React__namespace.forwardRef(function Button(t0, re
|
|
|
756
739
|
startIcon,
|
|
757
740
|
endIcon,
|
|
758
741
|
width: t7,
|
|
759
|
-
align: t8
|
|
760
|
-
|
|
761
|
-
|
|
742
|
+
align: t8,
|
|
743
|
+
...props
|
|
744
|
+
} = t0);
|
|
762
745
|
$[0] = t0;
|
|
763
746
|
$[1] = children;
|
|
764
747
|
$[2] = endIcon;
|
|
@@ -935,21 +918,21 @@ const IconButton = /*#__PURE__*/React__namespace.forwardRef(function IconButton(
|
|
|
935
918
|
let variant;
|
|
936
919
|
if ($[0] !== t0) {
|
|
937
920
|
const {
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
921
|
+
variant: t7,
|
|
922
|
+
tone: t8,
|
|
923
|
+
size: t9,
|
|
924
|
+
shape: t10,
|
|
925
|
+
type: t11,
|
|
926
|
+
disabled: t12,
|
|
927
|
+
loading: t13,
|
|
928
|
+
tooltip: t14,
|
|
929
|
+
render: t15,
|
|
930
|
+
onClick: t16,
|
|
931
|
+
exceptionallySetClassName: t17,
|
|
932
|
+
children,
|
|
933
|
+
icon: t18,
|
|
934
|
+
...t19
|
|
935
|
+
} = t0;
|
|
953
936
|
variant = t7;
|
|
954
937
|
t1 = t8;
|
|
955
938
|
t2 = t9;
|
|
@@ -1068,7 +1051,6 @@ const IconButton = /*#__PURE__*/React__namespace.forwardRef(function IconButton(
|
|
|
1068
1051
|
|
|
1069
1052
|
var modules_de8ae2e5 = {"info":"_447f8e53","upgrade":"cdb7a2b8","experiment":"_210efb55","warning":"cd91167f","error":"a52763ee","success":"c6229331"};
|
|
1070
1053
|
|
|
1071
|
-
const _excluded$p = ["type"];
|
|
1072
1054
|
const bannerIconForType = {
|
|
1073
1055
|
info: BannerInfoIcon,
|
|
1074
1056
|
upgrade: BannerUpgradeIcon,
|
|
@@ -1082,11 +1064,10 @@ function BannerIcon(t0) {
|
|
|
1082
1064
|
let props;
|
|
1083
1065
|
let type;
|
|
1084
1066
|
if ($[0] !== t0) {
|
|
1085
|
-
var _t = t0;
|
|
1086
1067
|
({
|
|
1087
|
-
type
|
|
1088
|
-
|
|
1089
|
-
|
|
1068
|
+
type,
|
|
1069
|
+
...props
|
|
1070
|
+
} = t0);
|
|
1090
1071
|
$[0] = t0;
|
|
1091
1072
|
$[1] = props;
|
|
1092
1073
|
$[2] = type;
|
|
@@ -1322,16 +1303,14 @@ function CloseIcon(props) {
|
|
|
1322
1303
|
|
|
1323
1304
|
var modules_3d05deee = {"default":"_468ce45c","inherit":"_54f92a1e","underline":"cdc8b08c","no-underline":"_06995bac","container":"d77fcdc6"};
|
|
1324
1305
|
|
|
1325
|
-
const
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
} = _ref,
|
|
1334
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$o);
|
|
1306
|
+
const TextLink = polymorphicComponent(function TextLink({
|
|
1307
|
+
as = 'a',
|
|
1308
|
+
openInNewTab = false,
|
|
1309
|
+
exceptionallySetClassName,
|
|
1310
|
+
color = 'default',
|
|
1311
|
+
underline = true,
|
|
1312
|
+
...props
|
|
1313
|
+
}, ref) {
|
|
1335
1314
|
return /*#__PURE__*/React__namespace.createElement(Box$1, _extends__default["default"]({}, props, {
|
|
1336
1315
|
as: as,
|
|
1337
1316
|
display: "inline",
|
|
@@ -1364,12 +1343,7 @@ function useId(providedId) {
|
|
|
1364
1343
|
return ref.current;
|
|
1365
1344
|
}
|
|
1366
1345
|
|
|
1367
|
-
var modules_afa80466 = {"banner":"
|
|
1368
|
-
|
|
1369
|
-
const _excluded$n = ["id", "type", "title", "description", "children", "action", "icon", "image", "inlineLinks", "closeLabel", "onClose"],
|
|
1370
|
-
_excluded2$6 = ["label"],
|
|
1371
|
-
_excluded3$2 = ["type", "label"],
|
|
1372
|
-
_excluded4$2 = ["type", "label", "variant"];
|
|
1346
|
+
var modules_afa80466 = {"banner":"a9238c10","image":"_74fb1d6c","title":"_7d720b64","description":"e20c1413","secondary":"a4ec529c","typeIcon":"f7f9b63d","iconCopy":"_22bc210c","closeButton":"_97060900","copy":"_32c8bd8c","inlineLink":"_0569f1dd","actions":"_154f8e60","topContent":"f76860a9","content":"cb9aeb0c"};
|
|
1373
1347
|
|
|
1374
1348
|
/**
|
|
1375
1349
|
* Represents the type of a banner.
|
|
@@ -1428,7 +1402,6 @@ const Banner = /*#__PURE__*/React__namespace.forwardRef(function Banner(t0, ref)
|
|
|
1428
1402
|
let title;
|
|
1429
1403
|
let type;
|
|
1430
1404
|
if ($[0] !== t0) {
|
|
1431
|
-
var _t = t0;
|
|
1432
1405
|
({
|
|
1433
1406
|
id,
|
|
1434
1407
|
type,
|
|
@@ -1440,9 +1413,9 @@ const Banner = /*#__PURE__*/React__namespace.forwardRef(function Banner(t0, ref)
|
|
|
1440
1413
|
image,
|
|
1441
1414
|
inlineLinks,
|
|
1442
1415
|
closeLabel,
|
|
1443
|
-
onClose
|
|
1444
|
-
|
|
1445
|
-
|
|
1416
|
+
onClose,
|
|
1417
|
+
...props
|
|
1418
|
+
} = t0);
|
|
1446
1419
|
$[0] = t0;
|
|
1447
1420
|
$[1] = action;
|
|
1448
1421
|
$[2] = children;
|
|
@@ -1546,9 +1519,9 @@ const Banner = /*#__PURE__*/React__namespace.forwardRef(function Banner(t0, ref)
|
|
|
1546
1519
|
if ($[28] !== inlineLinks) {
|
|
1547
1520
|
t10 = inlineLinks?.map((t11, index) => {
|
|
1548
1521
|
const {
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1522
|
+
label,
|
|
1523
|
+
...props_0
|
|
1524
|
+
} = t11;
|
|
1552
1525
|
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, {
|
|
1553
1526
|
key: index
|
|
1554
1527
|
}, /*#__PURE__*/React__namespace.createElement(TextLink, _extends__default["default"]({}, props_0, {
|
|
@@ -1684,10 +1657,10 @@ function ActionButton(t0) {
|
|
|
1684
1657
|
let props;
|
|
1685
1658
|
if ($[0] !== t0) {
|
|
1686
1659
|
const {
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1660
|
+
type,
|
|
1661
|
+
label: t1,
|
|
1662
|
+
...t2
|
|
1663
|
+
} = t0;
|
|
1691
1664
|
label = t1;
|
|
1692
1665
|
props = t2;
|
|
1693
1666
|
$[0] = t0;
|
|
@@ -1715,11 +1688,11 @@ function ActionLink(t0) {
|
|
|
1715
1688
|
let variant;
|
|
1716
1689
|
if ($[0] !== t0) {
|
|
1717
1690
|
const {
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1691
|
+
type,
|
|
1692
|
+
label: t1,
|
|
1693
|
+
variant: t2,
|
|
1694
|
+
...t3
|
|
1695
|
+
} = t0;
|
|
1723
1696
|
label = t1;
|
|
1724
1697
|
variant = t2;
|
|
1725
1698
|
props = t3;
|
|
@@ -1759,7 +1732,6 @@ function ActionLink(t0) {
|
|
|
1759
1732
|
return t2;
|
|
1760
1733
|
}
|
|
1761
1734
|
|
|
1762
|
-
const _excluded$m = ["size", "exceptionallySetClassName"];
|
|
1763
1735
|
const sizeMapping = {
|
|
1764
1736
|
xsmall: 16,
|
|
1765
1737
|
small: 24,
|
|
@@ -1772,12 +1744,11 @@ function Loading(t0) {
|
|
|
1772
1744
|
let props;
|
|
1773
1745
|
let t1;
|
|
1774
1746
|
if ($[0] !== t0) {
|
|
1775
|
-
var _t = t0;
|
|
1776
1747
|
({
|
|
1777
1748
|
size: t1,
|
|
1778
|
-
exceptionallySetClassName
|
|
1779
|
-
|
|
1780
|
-
|
|
1749
|
+
exceptionallySetClassName,
|
|
1750
|
+
...props
|
|
1751
|
+
} = t0);
|
|
1781
1752
|
$[0] = t0;
|
|
1782
1753
|
$[1] = exceptionallySetClassName;
|
|
1783
1754
|
$[2] = props;
|
|
@@ -1822,7 +1793,6 @@ function Loading(t0) {
|
|
|
1822
1793
|
return t3;
|
|
1823
1794
|
}
|
|
1824
1795
|
|
|
1825
|
-
const _excluded$l = ["tone"];
|
|
1826
1796
|
const alertIconForTone = {
|
|
1827
1797
|
info: AlertInfoIcon,
|
|
1828
1798
|
positive: AlertPositiveIcon,
|
|
@@ -1834,11 +1804,10 @@ function AlertIcon(t0) {
|
|
|
1834
1804
|
let props;
|
|
1835
1805
|
let tone;
|
|
1836
1806
|
if ($[0] !== t0) {
|
|
1837
|
-
var _t = t0;
|
|
1838
1807
|
({
|
|
1839
|
-
tone
|
|
1840
|
-
|
|
1841
|
-
|
|
1808
|
+
tone,
|
|
1809
|
+
...props
|
|
1810
|
+
} = t0);
|
|
1842
1811
|
$[0] = t0;
|
|
1843
1812
|
$[1] = props;
|
|
1844
1813
|
$[2] = tone;
|
|
@@ -2055,19 +2024,17 @@ function Notice(t0) {
|
|
|
2055
2024
|
|
|
2056
2025
|
var modules_a9637dd3 = {"text":"a83bd4e0","size-caption":"_266d6623","size-copy":"a8d37c6e","size-subtitle":"_39f4eb1f","weight-semibold":"_7be5c531","weight-bold":"e214ff2e","tone-secondary":"_6a3e5ade","tone-danger":"_8f5b5f2b","tone-positive":"_9ae47ae4","lineClampMultipleLines":"_969f18f7","lineClamp-1":"_2f303ac3","lineClamp-2":"d3e04245","lineClamp-3":"_33411704","lineClamp-4":"bfc32640","lineClamp-5":"f813c82f"};
|
|
2057
2026
|
|
|
2058
|
-
const
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
} = _ref,
|
|
2070
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$k);
|
|
2027
|
+
const Text = polymorphicComponent(function Text({
|
|
2028
|
+
as,
|
|
2029
|
+
size = 'body',
|
|
2030
|
+
weight = 'regular',
|
|
2031
|
+
tone = 'normal',
|
|
2032
|
+
align,
|
|
2033
|
+
children,
|
|
2034
|
+
lineClamp,
|
|
2035
|
+
exceptionallySetClassName,
|
|
2036
|
+
...props
|
|
2037
|
+
}, ref) {
|
|
2071
2038
|
const lineClampMultipleLines = typeof lineClamp === 'string' ? Number(lineClamp) > 1 : (lineClamp ?? 1) > 1;
|
|
2072
2039
|
return /*#__PURE__*/React__namespace.createElement(Box$1, _extends__default["default"]({}, props, {
|
|
2073
2040
|
as: as,
|
|
@@ -2083,7 +2050,6 @@ const Text = polymorphicComponent(function Text(_ref, ref) {
|
|
|
2083
2050
|
|
|
2084
2051
|
var modules_d11e18f0 = {"stackedToastsView":"_616cc3f3","toastContainer":"_1b5f8e86","slot":"ce2e3476"};
|
|
2085
2052
|
|
|
2086
|
-
const _excluded$j = ["message", "description", "icon", "action", "onDismiss", "dismissLabel"];
|
|
2087
2053
|
/**
|
|
2088
2054
|
* A toast that shows a message, and an optional action associated with it.
|
|
2089
2055
|
*
|
|
@@ -2108,16 +2074,15 @@ const StaticToast = /*#__PURE__*/React__default["default"].forwardRef(function T
|
|
|
2108
2074
|
let props;
|
|
2109
2075
|
let t1;
|
|
2110
2076
|
if ($[0] !== t0) {
|
|
2111
|
-
var _t = t0;
|
|
2112
2077
|
({
|
|
2113
2078
|
message,
|
|
2114
2079
|
description,
|
|
2115
2080
|
icon,
|
|
2116
2081
|
action,
|
|
2117
2082
|
onDismiss,
|
|
2118
|
-
dismissLabel: t1
|
|
2119
|
-
|
|
2120
|
-
|
|
2083
|
+
dismissLabel: t1,
|
|
2084
|
+
...props
|
|
2085
|
+
} = t0);
|
|
2121
2086
|
$[0] = t0;
|
|
2122
2087
|
$[1] = action;
|
|
2123
2088
|
$[2] = description;
|
|
@@ -2421,8 +2386,6 @@ function _temp$2(t0) {
|
|
|
2421
2386
|
});
|
|
2422
2387
|
}
|
|
2423
2388
|
|
|
2424
|
-
const _excluded$i = ["toastId"];
|
|
2425
|
-
|
|
2426
2389
|
/**
|
|
2427
2390
|
* The props needed to fire up a new notification toast.
|
|
2428
2391
|
*/
|
|
@@ -2531,10 +2494,11 @@ const InternalToast = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
2531
2494
|
}
|
|
2532
2495
|
let t10;
|
|
2533
2496
|
if ($[14] !== action || $[15] !== t8 || $[16] !== t9) {
|
|
2534
|
-
t10 =
|
|
2497
|
+
t10 = {
|
|
2498
|
+
...action,
|
|
2535
2499
|
closeToast: t8,
|
|
2536
2500
|
onClick: t9
|
|
2537
|
-
}
|
|
2501
|
+
};
|
|
2538
2502
|
$[14] = action;
|
|
2539
2503
|
$[15] = t8;
|
|
2540
2504
|
$[16] = t9;
|
|
@@ -2642,12 +2606,12 @@ function ToastsProvider(t0) {
|
|
|
2642
2606
|
if ($[3] !== defaultAutoDismissDelay || $[4] !== defaultDismissLabel || $[5] !== removeToast) {
|
|
2643
2607
|
t6 = function showToast(props) {
|
|
2644
2608
|
const toastId_0 = generateElementId("toast");
|
|
2645
|
-
const newToast =
|
|
2609
|
+
const newToast = {
|
|
2646
2610
|
autoDismissDelay: defaultAutoDismissDelay,
|
|
2647
|
-
dismissLabel: defaultDismissLabel
|
|
2648
|
-
|
|
2611
|
+
dismissLabel: defaultDismissLabel,
|
|
2612
|
+
...props,
|
|
2649
2613
|
toastId: toastId_0
|
|
2650
|
-
}
|
|
2614
|
+
};
|
|
2651
2615
|
setToasts(list_0 => [...list_0, newToast]);
|
|
2652
2616
|
return () => removeToast(toastId_0);
|
|
2653
2617
|
};
|
|
@@ -2672,9 +2636,9 @@ function ToastsProvider(t0) {
|
|
|
2672
2636
|
space: "medium"
|
|
2673
2637
|
}, toasts.map(t8 => {
|
|
2674
2638
|
const {
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2639
|
+
toastId: toastId_1,
|
|
2640
|
+
...props_0
|
|
2641
|
+
} = t8;
|
|
2678
2642
|
return /*#__PURE__*/React__default["default"].createElement(InternalToast, _extends__default["default"]({
|
|
2679
2643
|
key: toastId_1,
|
|
2680
2644
|
ref: mappedRef(toastId_1),
|
|
@@ -2790,7 +2754,6 @@ function Toast(props) {
|
|
|
2790
2754
|
|
|
2791
2755
|
var modules_949d2ff4 = {"heading":"bff24867","weight-medium":"_9b540c61","weight-light":"c6729907","tone-secondary":"d6507f70","tone-danger":"d1846d93","size-largest":"_7cbdd1ba","size-larger":"b3e14969","size-smaller":"be14a265","lineClampMultipleLines":"_71391f13","lineClamp-1":"_97298b1b","lineClamp-2":"_6d357d76","lineClamp-3":"d820b451","lineClamp-4":"_8d37487d","lineClamp-5":"_5215b4d7"};
|
|
2792
2756
|
|
|
2793
|
-
const _excluded$h = ["level", "weight", "size", "tone", "children", "lineClamp", "align", "exceptionallySetClassName"];
|
|
2794
2757
|
const Heading = /*#__PURE__*/React__namespace.forwardRef(function Heading(t0, ref) {
|
|
2795
2758
|
const $ = reactCompilerRuntime.c(33);
|
|
2796
2759
|
let align;
|
|
@@ -2803,7 +2766,6 @@ const Heading = /*#__PURE__*/React__namespace.forwardRef(function Heading(t0, re
|
|
|
2803
2766
|
let t1;
|
|
2804
2767
|
let t2;
|
|
2805
2768
|
if ($[0] !== t0) {
|
|
2806
|
-
var _t = t0;
|
|
2807
2769
|
({
|
|
2808
2770
|
level,
|
|
2809
2771
|
weight: t1,
|
|
@@ -2812,9 +2774,9 @@ const Heading = /*#__PURE__*/React__namespace.forwardRef(function Heading(t0, re
|
|
|
2812
2774
|
children,
|
|
2813
2775
|
lineClamp,
|
|
2814
2776
|
align,
|
|
2815
|
-
exceptionallySetClassName
|
|
2816
|
-
|
|
2817
|
-
|
|
2777
|
+
exceptionallySetClassName,
|
|
2778
|
+
...props
|
|
2779
|
+
} = t0);
|
|
2818
2780
|
$[0] = t0;
|
|
2819
2781
|
$[1] = align;
|
|
2820
2782
|
$[2] = children;
|
|
@@ -2912,7 +2874,6 @@ const Heading = /*#__PURE__*/React__namespace.forwardRef(function Heading(t0, re
|
|
|
2912
2874
|
|
|
2913
2875
|
var modules_8ebe6db0 = {"prose":"_37468e52","darkModeTypography":"_6abbd828"};
|
|
2914
2876
|
|
|
2915
|
-
const _excluded$g = ["darkModeTypography", "exceptionallySetClassName"];
|
|
2916
2877
|
/**
|
|
2917
2878
|
* Used to style HTML you don’t control, like HTML content generated from Markdown.
|
|
2918
2879
|
*/
|
|
@@ -2922,12 +2883,11 @@ function Prose(t0) {
|
|
|
2922
2883
|
let exceptionallySetClassName;
|
|
2923
2884
|
let props;
|
|
2924
2885
|
if ($[0] !== t0) {
|
|
2925
|
-
var _t = t0;
|
|
2926
2886
|
({
|
|
2927
2887
|
darkModeTypography,
|
|
2928
|
-
exceptionallySetClassName
|
|
2929
|
-
|
|
2930
|
-
|
|
2888
|
+
exceptionallySetClassName,
|
|
2889
|
+
...props
|
|
2890
|
+
} = t0);
|
|
2931
2891
|
$[0] = t0;
|
|
2932
2892
|
$[1] = darkModeTypography;
|
|
2933
2893
|
$[2] = exceptionallySetClassName;
|
|
@@ -2961,7 +2921,6 @@ function Prose(t0) {
|
|
|
2961
2921
|
return t3;
|
|
2962
2922
|
}
|
|
2963
2923
|
|
|
2964
|
-
const _excluded$f = ["checked", "indeterminate", "disabled"];
|
|
2965
2924
|
const svgPath = {
|
|
2966
2925
|
checked: 'M18 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h12zm-2.457 4.293l-5.293 5.293-1.793-1.793a1 1 0 1 0-1.414 1.414l2.5 2.5a1 1 0 0 0 1.414 0l6-6a1 1 0 1 0-1.414-1.414z',
|
|
2967
2926
|
unchecked: 'M18 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h12zm0 1H6a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1z',
|
|
@@ -2997,13 +2956,12 @@ function CheckboxIcon(t0) {
|
|
|
2997
2956
|
let indeterminate;
|
|
2998
2957
|
let props;
|
|
2999
2958
|
if ($[0] !== t0) {
|
|
3000
|
-
var _t = t0;
|
|
3001
2959
|
({
|
|
3002
2960
|
checked,
|
|
3003
2961
|
indeterminate,
|
|
3004
|
-
disabled
|
|
3005
|
-
|
|
3006
|
-
|
|
2962
|
+
disabled,
|
|
2963
|
+
...props
|
|
2964
|
+
} = t0);
|
|
3007
2965
|
$[0] = t0;
|
|
3008
2966
|
$[1] = checked;
|
|
3009
2967
|
$[2] = disabled;
|
|
@@ -3076,23 +3034,21 @@ function useForkRef(...refs) {
|
|
|
3076
3034
|
refs.forEach(ref => setRef(ref, value));
|
|
3077
3035
|
};
|
|
3078
3036
|
},
|
|
3079
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3037
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps, react-hooks/use-memo
|
|
3080
3038
|
refs);
|
|
3081
3039
|
}
|
|
3082
3040
|
|
|
3083
3041
|
var modules_664a6a80 = {"disabled":"_131a2ca4","checked":"_95b1556d","keyFocused":"_49de7ebd","icon":"_6b4b1851","label":"_9047f3bd","container":"_84dfdb83"};
|
|
3084
3042
|
|
|
3085
|
-
const
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
} = _ref,
|
|
3095
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$e);
|
|
3043
|
+
const CheckboxField = /*#__PURE__*/React__namespace.forwardRef(function CheckboxField({
|
|
3044
|
+
label,
|
|
3045
|
+
icon,
|
|
3046
|
+
disabled,
|
|
3047
|
+
indeterminate,
|
|
3048
|
+
defaultChecked,
|
|
3049
|
+
onChange,
|
|
3050
|
+
...props
|
|
3051
|
+
}, ref) {
|
|
3096
3052
|
const isControlledComponent = typeof props.checked === 'boolean';
|
|
3097
3053
|
if (typeof indeterminate === 'boolean' && !isControlledComponent) {
|
|
3098
3054
|
// eslint-disable-next-line no-console
|
|
@@ -3411,12 +3367,12 @@ function BaseField(t0) {
|
|
|
3411
3367
|
let t8;
|
|
3412
3368
|
let t9;
|
|
3413
3369
|
if ($[6] !== ariaDescribedBy || $[7] !== auxiliaryLabel || $[8] !== children || $[9] !== className || $[10] !== hidden || $[11] !== id || $[12] !== inputLength.count || $[13] !== inputLength.tone || $[14] !== label || $[15] !== maxLength || $[16] !== maxWidth || $[17] !== previousMaxLength || $[18] !== previousValue || $[19] !== renderCharacterCount || $[20] !== renderCharacterCountInline || $[21] !== tone || $[22] !== value || $[23] !== variant) {
|
|
3414
|
-
const childrenProps =
|
|
3370
|
+
const childrenProps = {
|
|
3415
3371
|
id,
|
|
3416
|
-
value
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3372
|
+
value,
|
|
3373
|
+
...(ariaDescribedBy ? {
|
|
3374
|
+
"aria-describedby": ariaDescribedBy
|
|
3375
|
+
} : {}),
|
|
3420
3376
|
"aria-invalid": tone === "error" ? true : undefined,
|
|
3421
3377
|
onChange(event) {
|
|
3422
3378
|
if (!maxLength) {
|
|
@@ -3430,7 +3386,7 @@ function BaseField(t0) {
|
|
|
3430
3386
|
setCharacterCountTone(inputLength_0.tone);
|
|
3431
3387
|
},
|
|
3432
3388
|
characterCountElement: renderCharacterCountInline ? renderCharacterCount() : null
|
|
3433
|
-
}
|
|
3389
|
+
};
|
|
3434
3390
|
if (value !== previousValue || maxLength !== previousMaxLength) {
|
|
3435
3391
|
setPreviousValue(value);
|
|
3436
3392
|
setPreviousMaxLength(maxLength);
|
|
@@ -3609,8 +3565,6 @@ function BaseField(t0) {
|
|
|
3609
3565
|
|
|
3610
3566
|
var modules_aaf25250 = {"inputWrapper":"b1fcd7d9","readOnly":"_2075eb4a","bordered":"_2134b64f","error":"_097b28b0","slot":"_7c4f9584"};
|
|
3611
3567
|
|
|
3612
|
-
const _excluded$d = ["variant", "id", "label", "value", "auxiliaryLabel", "message", "tone", "type", "maxWidth", "maxLength", "hidden", "aria-describedby", "startSlot", "endSlot", "onChange", "characterCountPosition", "endSlotPosition"],
|
|
3613
|
-
_excluded2$5 = ["onChange", "characterCountElement"];
|
|
3614
3568
|
const TextField = /*#__PURE__*/React__namespace.forwardRef(function TextField(t0, ref) {
|
|
3615
3569
|
const $ = reactCompilerRuntime.c(51);
|
|
3616
3570
|
let ariaDescribedBy;
|
|
@@ -3632,7 +3586,6 @@ const TextField = /*#__PURE__*/React__namespace.forwardRef(function TextField(t0
|
|
|
3632
3586
|
let tone;
|
|
3633
3587
|
let value;
|
|
3634
3588
|
if ($[0] !== t0) {
|
|
3635
|
-
var _t = t0;
|
|
3636
3589
|
({
|
|
3637
3590
|
variant: t1,
|
|
3638
3591
|
id,
|
|
@@ -3650,9 +3603,9 @@ const TextField = /*#__PURE__*/React__namespace.forwardRef(function TextField(t0
|
|
|
3650
3603
|
endSlot,
|
|
3651
3604
|
onChange: originalOnChange,
|
|
3652
3605
|
characterCountPosition: t3,
|
|
3653
|
-
endSlotPosition: t4
|
|
3654
|
-
|
|
3655
|
-
|
|
3606
|
+
endSlotPosition: t4,
|
|
3607
|
+
...props
|
|
3608
|
+
} = t0);
|
|
3656
3609
|
$[0] = t0;
|
|
3657
3610
|
$[1] = ariaDescribedBy;
|
|
3658
3611
|
$[2] = auxiliaryLabel;
|
|
@@ -3726,10 +3679,10 @@ const TextField = /*#__PURE__*/React__namespace.forwardRef(function TextField(t0
|
|
|
3726
3679
|
if ($[23] !== combinedRef || $[24] !== displayEndSlot || $[25] !== endSlot || $[26] !== handleClick || $[27] !== maxLength || $[28] !== originalOnChange || $[29] !== props || $[30] !== startSlot || $[31] !== tone || $[32] !== type || $[33] !== variant) {
|
|
3727
3680
|
t8 = t9 => {
|
|
3728
3681
|
const {
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3682
|
+
onChange,
|
|
3683
|
+
characterCountElement,
|
|
3684
|
+
...extraProps
|
|
3685
|
+
} = t9;
|
|
3733
3686
|
return /*#__PURE__*/React__namespace.createElement(Box$1, {
|
|
3734
3687
|
display: "flex",
|
|
3735
3688
|
alignItems: "center",
|
|
@@ -3811,19 +3764,17 @@ const TextField = /*#__PURE__*/React__namespace.forwardRef(function TextField(t0
|
|
|
3811
3764
|
return t9;
|
|
3812
3765
|
});
|
|
3813
3766
|
|
|
3814
|
-
const _excluded$c = ["togglePasswordLabel", "endSlot"];
|
|
3815
3767
|
const PasswordField = /*#__PURE__*/React__namespace.forwardRef(function PasswordField(t0, ref) {
|
|
3816
3768
|
const $ = reactCompilerRuntime.c(18);
|
|
3817
3769
|
let endSlot;
|
|
3818
3770
|
let props;
|
|
3819
3771
|
let t1;
|
|
3820
3772
|
if ($[0] !== t0) {
|
|
3821
|
-
var _t = t0;
|
|
3822
3773
|
({
|
|
3823
3774
|
togglePasswordLabel: t1,
|
|
3824
|
-
endSlot
|
|
3825
|
-
|
|
3826
|
-
|
|
3775
|
+
endSlot,
|
|
3776
|
+
...props
|
|
3777
|
+
} = t0);
|
|
3827
3778
|
$[0] = t0;
|
|
3828
3779
|
$[1] = endSlot;
|
|
3829
3780
|
$[2] = props;
|
|
@@ -3900,8 +3851,6 @@ function _temp$1(v) {
|
|
|
3900
3851
|
|
|
3901
3852
|
var modules_1fa9b208 = {"selectWrapper":"_7f5f473c","bordered":"_63e2fa62","error":"_3a255678"};
|
|
3902
3853
|
|
|
3903
|
-
const _excluded$b = ["variant", "id", "label", "value", "auxiliaryLabel", "message", "tone", "maxWidth", "children", "hidden", "aria-describedby", "onChange"],
|
|
3904
|
-
_excluded2$4 = ["characterCountElement"];
|
|
3905
3854
|
const SelectField = /*#__PURE__*/React__namespace.forwardRef(function SelectField(t0, ref) {
|
|
3906
3855
|
const $ = reactCompilerRuntime.c(33);
|
|
3907
3856
|
let ariaDescribedBy;
|
|
@@ -3918,7 +3867,6 @@ const SelectField = /*#__PURE__*/React__namespace.forwardRef(function SelectFiel
|
|
|
3918
3867
|
let tone;
|
|
3919
3868
|
let value;
|
|
3920
3869
|
if ($[0] !== t0) {
|
|
3921
|
-
var _t = t0;
|
|
3922
3870
|
({
|
|
3923
3871
|
variant: t1,
|
|
3924
3872
|
id,
|
|
@@ -3931,9 +3879,9 @@ const SelectField = /*#__PURE__*/React__namespace.forwardRef(function SelectFiel
|
|
|
3931
3879
|
children,
|
|
3932
3880
|
hidden,
|
|
3933
3881
|
"aria-describedby": ariaDescribedBy,
|
|
3934
|
-
onChange: originalOnChange
|
|
3935
|
-
|
|
3936
|
-
|
|
3882
|
+
onChange: originalOnChange,
|
|
3883
|
+
...props
|
|
3884
|
+
} = t0);
|
|
3937
3885
|
$[0] = t0;
|
|
3938
3886
|
$[1] = ariaDescribedBy;
|
|
3939
3887
|
$[2] = auxiliaryLabel;
|
|
@@ -3967,7 +3915,10 @@ const SelectField = /*#__PURE__*/React__namespace.forwardRef(function SelectFiel
|
|
|
3967
3915
|
let t2;
|
|
3968
3916
|
if ($[14] !== children || $[15] !== originalOnChange || $[16] !== props || $[17] !== ref || $[18] !== tone || $[19] !== variant) {
|
|
3969
3917
|
t2 = t3 => {
|
|
3970
|
-
const
|
|
3918
|
+
const {
|
|
3919
|
+
characterCountElement,
|
|
3920
|
+
...extraProps
|
|
3921
|
+
} = t3;
|
|
3971
3922
|
return /*#__PURE__*/React__namespace.createElement(Box$1, {
|
|
3972
3923
|
"data-testid": "select-wrapper",
|
|
3973
3924
|
className: [modules_1fa9b208.selectWrapper, tone === "error" ? modules_1fa9b208.error : null, variant === "bordered" ? modules_1fa9b208.bordered : null]
|
|
@@ -4051,7 +4002,6 @@ function SelectChevron(props) {
|
|
|
4051
4002
|
|
|
4052
4003
|
var modules_8e05f7c9 = {"disabled":"_408d32a0","label":"a66e1846","checked":"_99b0ead7","toggle":"_5af09fb5","handle":"_0dcf70ec","keyFocused":"_1f5e7fd4","container":"bae487be"};
|
|
4053
4004
|
|
|
4054
|
-
const _excluded$a = ["label", "message", "tone", "disabled", "hidden", "defaultChecked", "id", "aria-describedby", "aria-label", "aria-labelledby", "onChange"];
|
|
4055
4005
|
const SwitchField = /*#__PURE__*/React__namespace.forwardRef(function SwitchField(t0, ref) {
|
|
4056
4006
|
const $ = reactCompilerRuntime.c(51);
|
|
4057
4007
|
let defaultChecked;
|
|
@@ -4067,7 +4017,6 @@ const SwitchField = /*#__PURE__*/React__namespace.forwardRef(function SwitchFiel
|
|
|
4067
4017
|
let t1;
|
|
4068
4018
|
let t2;
|
|
4069
4019
|
if ($[0] !== t0) {
|
|
4070
|
-
var _t = t0;
|
|
4071
4020
|
({
|
|
4072
4021
|
label,
|
|
4073
4022
|
message,
|
|
@@ -4079,9 +4028,9 @@ const SwitchField = /*#__PURE__*/React__namespace.forwardRef(function SwitchFiel
|
|
|
4079
4028
|
"aria-describedby": originalAriaDescribedBy,
|
|
4080
4029
|
"aria-label": originalAriaLabel,
|
|
4081
4030
|
"aria-labelledby": originalAriaLabelledby,
|
|
4082
|
-
onChange
|
|
4083
|
-
|
|
4084
|
-
|
|
4031
|
+
onChange,
|
|
4032
|
+
...props
|
|
4033
|
+
} = t0);
|
|
4085
4034
|
$[0] = t0;
|
|
4086
4035
|
$[1] = defaultChecked;
|
|
4087
4036
|
$[2] = hidden;
|
|
@@ -4273,8 +4222,6 @@ const SwitchField = /*#__PURE__*/React__namespace.forwardRef(function SwitchFiel
|
|
|
4273
4222
|
|
|
4274
4223
|
var modules_2728c236 = {"textAreaContainer":"_1ae68da6","innerContainer":"_8eadb1df","bordered":"_35e7d1ba","error":"_8b028659","disableResize":"_30f6cf3c"};
|
|
4275
4224
|
|
|
4276
|
-
const _excluded$9 = ["variant", "id", "label", "value", "auxiliaryLabel", "message", "tone", "maxWidth", "maxLength", "hidden", "aria-describedby", "rows", "autoExpand", "disableResize", "onChange"],
|
|
4277
|
-
_excluded2$3 = ["onChange", "characterCountElement"];
|
|
4278
4225
|
const TextArea = /*#__PURE__*/React__namespace.forwardRef(function TextArea(t0, ref) {
|
|
4279
4226
|
const $ = reactCompilerRuntime.c(49);
|
|
4280
4227
|
let ariaDescribedBy;
|
|
@@ -4294,7 +4241,6 @@ const TextArea = /*#__PURE__*/React__namespace.forwardRef(function TextArea(t0,
|
|
|
4294
4241
|
let tone;
|
|
4295
4242
|
let value;
|
|
4296
4243
|
if ($[0] !== t0) {
|
|
4297
|
-
var _t = t0;
|
|
4298
4244
|
({
|
|
4299
4245
|
variant: t1,
|
|
4300
4246
|
id,
|
|
@@ -4310,9 +4256,9 @@ const TextArea = /*#__PURE__*/React__namespace.forwardRef(function TextArea(t0,
|
|
|
4310
4256
|
rows,
|
|
4311
4257
|
autoExpand: t2,
|
|
4312
4258
|
disableResize: t3,
|
|
4313
|
-
onChange: originalOnChange
|
|
4314
|
-
|
|
4315
|
-
|
|
4259
|
+
onChange: originalOnChange,
|
|
4260
|
+
...props
|
|
4261
|
+
} = t0);
|
|
4316
4262
|
$[0] = t0;
|
|
4317
4263
|
$[1] = ariaDescribedBy;
|
|
4318
4264
|
$[2] = auxiliaryLabel;
|
|
@@ -4404,10 +4350,10 @@ const TextArea = /*#__PURE__*/React__namespace.forwardRef(function TextArea(t0,
|
|
|
4404
4350
|
if ($[28] !== combinedRef || $[29] !== maxLength || $[30] !== originalOnChange || $[31] !== props || $[32] !== rows || $[33] !== textAreaClassName) {
|
|
4405
4351
|
t12 = t13 => {
|
|
4406
4352
|
const {
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4353
|
+
onChange,
|
|
4354
|
+
characterCountElement,
|
|
4355
|
+
...extraProps
|
|
4356
|
+
} = t13;
|
|
4411
4357
|
return /*#__PURE__*/React__namespace.createElement(Box$1, {
|
|
4412
4358
|
width: "full",
|
|
4413
4359
|
display: "flex",
|
|
@@ -4561,7 +4507,6 @@ function emailToIndex(email, maxIndex) {
|
|
|
4561
4507
|
|
|
4562
4508
|
var modules_08f3eeac = {"avatar":"_38a1be89","size-xxs":"d32e92ae","size-xs":"_0667d719","size-s":"cf529fcf","size-m":"_6e268eab","size-l":"d64c62cf","size-xl":"_44fb77de","size-xxl":"_01f85e0e","size-xxxl":"_41a5fe19","tablet-size-xxs":"_6ab1577d","tablet-size-xs":"b52a4963","tablet-size-s":"_714a8419","tablet-size-m":"_81cd4d51","tablet-size-l":"bf0a4edb","tablet-size-xl":"e4f0dabd","tablet-size-xxl":"_67ea065d","tablet-size-xxxl":"_2af7f76f","desktop-size-xxs":"_759081dc","desktop-size-xs":"_8290d1c1","desktop-size-s":"_48ea172d","desktop-size-m":"_758f6641","desktop-size-l":"f9ada088","desktop-size-xl":"d3bb7470","desktop-size-xxl":"_9a312ee3","desktop-size-xxxl":"a1d30c23"};
|
|
4563
4509
|
|
|
4564
|
-
const _excluded$8 = ["user", "avatarUrl", "size", "className", "colorList", "exceptionallySetClassName"];
|
|
4565
4510
|
const AVATAR_COLORS = ['#fcc652', '#e9952c', '#e16b2d', '#d84b40', '#e8435a', '#e5198a', '#ad3889', '#86389c', '#a8a8a8', '#98be2f', '#5d9d50', '#5f9f85', '#5bbcb6', '#32a3bf', '#2bafeb', '#2d88c3', '#3863cc', '#5e5e5e'];
|
|
4566
4511
|
function Avatar(t0) {
|
|
4567
4512
|
const $ = reactCompilerRuntime.c(26);
|
|
@@ -4573,16 +4518,15 @@ function Avatar(t0) {
|
|
|
4573
4518
|
let t2;
|
|
4574
4519
|
let user;
|
|
4575
4520
|
if ($[0] !== t0) {
|
|
4576
|
-
var _t = t0;
|
|
4577
4521
|
({
|
|
4578
4522
|
user,
|
|
4579
4523
|
avatarUrl,
|
|
4580
4524
|
size: t1,
|
|
4581
4525
|
className,
|
|
4582
4526
|
colorList: t2,
|
|
4583
|
-
exceptionallySetClassName
|
|
4584
|
-
|
|
4585
|
-
|
|
4527
|
+
exceptionallySetClassName,
|
|
4528
|
+
...props
|
|
4529
|
+
} = t0);
|
|
4586
4530
|
$[0] = t0;
|
|
4587
4531
|
$[1] = avatarUrl;
|
|
4588
4532
|
$[2] = className;
|
|
@@ -4668,19 +4612,17 @@ Avatar.displayName = 'Avatar';
|
|
|
4668
4612
|
|
|
4669
4613
|
var modules_33c7c985 = {"badge":"_2714fc40","badge-info":"_3397e001","badge-positive":"b7b8944a","badge-promote":"bfc2b0e9","badge-attention":"d45e594f","badge-warning":"_1e30e9b3"};
|
|
4670
4614
|
|
|
4671
|
-
const _excluded$7 = ["tone", "label"];
|
|
4672
4615
|
function Badge(t0) {
|
|
4673
4616
|
const $ = reactCompilerRuntime.c(10);
|
|
4674
4617
|
let label;
|
|
4675
4618
|
let props;
|
|
4676
4619
|
let tone;
|
|
4677
4620
|
if ($[0] !== t0) {
|
|
4678
|
-
var _t = t0;
|
|
4679
4621
|
({
|
|
4680
4622
|
tone,
|
|
4681
|
-
label
|
|
4682
|
-
|
|
4683
|
-
|
|
4623
|
+
label,
|
|
4624
|
+
...props
|
|
4625
|
+
} = t0);
|
|
4684
4626
|
$[0] = t0;
|
|
4685
4627
|
$[1] = label;
|
|
4686
4628
|
$[2] = props;
|
|
@@ -4716,12 +4658,6 @@ function Badge(t0) {
|
|
|
4716
4658
|
return t3;
|
|
4717
4659
|
}
|
|
4718
4660
|
|
|
4719
|
-
const _excluded$6 = ["children", "onItemSelect"],
|
|
4720
|
-
_excluded2$2 = ["exceptionallySetClassName"],
|
|
4721
|
-
_excluded3$1 = ["render"],
|
|
4722
|
-
_excluded4$1 = ["exceptionallySetClassName", "modal", "flip"],
|
|
4723
|
-
_excluded5$1 = ["value", "children", "onSelect", "hideOnSelect", "onClick", "exceptionallySetClassName"],
|
|
4724
|
-
_excluded6 = ["label", "children", "exceptionallySetClassName"];
|
|
4725
4661
|
const MenuContext = /*#__PURE__*/React__namespace.createContext({
|
|
4726
4662
|
menuStore: null,
|
|
4727
4663
|
handleItemSelect: () => undefined,
|
|
@@ -4746,12 +4682,11 @@ function Menu(t0) {
|
|
|
4746
4682
|
let onItemSelect;
|
|
4747
4683
|
let props;
|
|
4748
4684
|
if ($[0] !== t0) {
|
|
4749
|
-
var _t = t0;
|
|
4750
4685
|
({
|
|
4751
4686
|
children,
|
|
4752
|
-
onItemSelect
|
|
4753
|
-
|
|
4754
|
-
|
|
4687
|
+
onItemSelect,
|
|
4688
|
+
...props
|
|
4689
|
+
} = t0);
|
|
4755
4690
|
$[0] = t0;
|
|
4756
4691
|
$[1] = children;
|
|
4757
4692
|
$[2] = onItemSelect;
|
|
@@ -4773,9 +4708,10 @@ function Menu(t0) {
|
|
|
4773
4708
|
const getAnchorRect = t1;
|
|
4774
4709
|
let t2;
|
|
4775
4710
|
if ($[6] !== props) {
|
|
4776
|
-
t2 =
|
|
4777
|
-
focusLoop: true
|
|
4778
|
-
|
|
4711
|
+
t2 = {
|
|
4712
|
+
focusLoop: true,
|
|
4713
|
+
...props
|
|
4714
|
+
};
|
|
4779
4715
|
$[6] = props;
|
|
4780
4716
|
$[7] = t2;
|
|
4781
4717
|
} else {
|
|
@@ -4824,11 +4760,10 @@ const MenuButton = /*#__PURE__*/React__namespace.forwardRef(function MenuButton(
|
|
|
4824
4760
|
let exceptionallySetClassName;
|
|
4825
4761
|
let props;
|
|
4826
4762
|
if ($[0] !== t0) {
|
|
4827
|
-
var _t2 = t0;
|
|
4828
4763
|
({
|
|
4829
|
-
exceptionallySetClassName
|
|
4830
|
-
|
|
4831
|
-
|
|
4764
|
+
exceptionallySetClassName,
|
|
4765
|
+
...props
|
|
4766
|
+
} = t0);
|
|
4832
4767
|
$[0] = t0;
|
|
4833
4768
|
$[1] = exceptionallySetClassName;
|
|
4834
4769
|
$[2] = props;
|
|
@@ -4872,11 +4807,10 @@ const MenuButton = /*#__PURE__*/React__namespace.forwardRef(function MenuButton(
|
|
|
4872
4807
|
// ContextMenuTrigger
|
|
4873
4808
|
//
|
|
4874
4809
|
|
|
4875
|
-
const ContextMenuTrigger = /*#__PURE__*/React__namespace.forwardRef(function ContextMenuTrigger(
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded3$1);
|
|
4810
|
+
const ContextMenuTrigger = /*#__PURE__*/React__namespace.forwardRef(function ContextMenuTrigger({
|
|
4811
|
+
render,
|
|
4812
|
+
...props
|
|
4813
|
+
}, ref) {
|
|
4880
4814
|
const {
|
|
4881
4815
|
setAnchorRect,
|
|
4882
4816
|
menuStore
|
|
@@ -4910,13 +4844,12 @@ const ContextMenuTrigger = /*#__PURE__*/React__namespace.forwardRef(function Con
|
|
|
4910
4844
|
/**
|
|
4911
4845
|
* The dropdown menu itself, containing a list of menu items.
|
|
4912
4846
|
*/
|
|
4913
|
-
const MenuList = /*#__PURE__*/React__namespace.forwardRef(function MenuList(
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
props = _objectWithoutProperties__default["default"](_ref2, _excluded4$1);
|
|
4847
|
+
const MenuList = /*#__PURE__*/React__namespace.forwardRef(function MenuList({
|
|
4848
|
+
exceptionallySetClassName,
|
|
4849
|
+
modal = true,
|
|
4850
|
+
flip,
|
|
4851
|
+
...props
|
|
4852
|
+
}, ref) {
|
|
4920
4853
|
const {
|
|
4921
4854
|
menuStore,
|
|
4922
4855
|
getAnchorRect
|
|
@@ -4960,16 +4893,15 @@ const MenuItem = /*#__PURE__*/React__namespace.forwardRef(function MenuItem(t0,
|
|
|
4960
4893
|
let t1;
|
|
4961
4894
|
let value;
|
|
4962
4895
|
if ($[0] !== t0) {
|
|
4963
|
-
var _t3 = t0;
|
|
4964
4896
|
({
|
|
4965
4897
|
value,
|
|
4966
4898
|
children,
|
|
4967
4899
|
onSelect,
|
|
4968
4900
|
hideOnSelect: t1,
|
|
4969
4901
|
onClick,
|
|
4970
|
-
exceptionallySetClassName
|
|
4971
|
-
|
|
4972
|
-
|
|
4902
|
+
exceptionallySetClassName,
|
|
4903
|
+
...props
|
|
4904
|
+
} = t0);
|
|
4973
4905
|
$[0] = t0;
|
|
4974
4906
|
$[1] = children;
|
|
4975
4907
|
$[2] = exceptionallySetClassName;
|
|
@@ -5175,13 +5107,12 @@ const MenuGroup = /*#__PURE__*/React__namespace.forwardRef(function MenuGroup(t0
|
|
|
5175
5107
|
let label;
|
|
5176
5108
|
let props;
|
|
5177
5109
|
if ($[0] !== t0) {
|
|
5178
|
-
var _t4 = t0;
|
|
5179
5110
|
({
|
|
5180
5111
|
label,
|
|
5181
5112
|
children,
|
|
5182
|
-
exceptionallySetClassName
|
|
5183
|
-
|
|
5184
|
-
|
|
5113
|
+
exceptionallySetClassName,
|
|
5114
|
+
...props
|
|
5115
|
+
} = t0);
|
|
5185
5116
|
$[0] = t0;
|
|
5186
5117
|
$[1] = children;
|
|
5187
5118
|
$[2] = exceptionallySetClassName;
|
|
@@ -5232,12 +5163,6 @@ const MenuGroup = /*#__PURE__*/React__namespace.forwardRef(function MenuGroup(t0
|
|
|
5232
5163
|
|
|
5233
5164
|
var modules_8f59d13b = {"overlay":"_05da64fc","fadein":"_54ef8301","fitContent":"a191ee44","full":"b15ec657","large":"e1dec24f","medium":"_9346579f","small":"_33e2ba14","xsmall":"_13b3dd02","xlarge":"_1b7c26ab","expand":"_2e29ea19","buttonContainer":"_309f02f2","headerContent":"_094bb706","container":"_6910d6c2"};
|
|
5234
5165
|
|
|
5235
|
-
const _excluded$5 = ["isOpen", "onDismiss", "height", "dividers", "width", "exceptionallySetClassName", "exceptionallySetOverlayClassName", "autoFocus", "hideOnEscape", "hideOnInteractOutside", "children", "portalElement", "onKeyDown", "className"],
|
|
5236
|
-
_excluded2$1 = ["children", "button", "withDivider", "exceptionallySetClassName"],
|
|
5237
|
-
_excluded3 = ["exceptionallySetClassName", "children"],
|
|
5238
|
-
_excluded4 = ["exceptionallySetClassName", "withDivider"],
|
|
5239
|
-
_excluded5 = ["children"];
|
|
5240
|
-
|
|
5241
5166
|
//
|
|
5242
5167
|
// ModalContext
|
|
5243
5168
|
//
|
|
@@ -5283,22 +5208,22 @@ function Modal(t0) {
|
|
|
5283
5208
|
let t5;
|
|
5284
5209
|
if ($[0] !== t0) {
|
|
5285
5210
|
const {
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5211
|
+
isOpen: t6,
|
|
5212
|
+
onDismiss: t7,
|
|
5213
|
+
height: t8,
|
|
5214
|
+
dividers: t9,
|
|
5215
|
+
width: t10,
|
|
5216
|
+
exceptionallySetClassName: t11,
|
|
5217
|
+
exceptionallySetOverlayClassName: t12,
|
|
5218
|
+
autoFocus: t13,
|
|
5219
|
+
hideOnEscape: t14,
|
|
5220
|
+
hideOnInteractOutside: t15,
|
|
5221
|
+
children: t16,
|
|
5222
|
+
portalElement: t17,
|
|
5223
|
+
onKeyDown: t18,
|
|
5224
|
+
className,
|
|
5225
|
+
...t19
|
|
5226
|
+
} = t0;
|
|
5302
5227
|
isOpen = t6;
|
|
5303
5228
|
onDismiss = t7;
|
|
5304
5229
|
t1 = t8;
|
|
@@ -5652,14 +5577,13 @@ function ModalHeader(t0) {
|
|
|
5652
5577
|
let t1;
|
|
5653
5578
|
let t2;
|
|
5654
5579
|
if ($[0] !== t0) {
|
|
5655
|
-
var _t = t0;
|
|
5656
5580
|
({
|
|
5657
5581
|
children,
|
|
5658
5582
|
button: t1,
|
|
5659
5583
|
withDivider: t2,
|
|
5660
|
-
exceptionallySetClassName
|
|
5661
|
-
|
|
5662
|
-
|
|
5584
|
+
exceptionallySetClassName,
|
|
5585
|
+
...props
|
|
5586
|
+
} = t0);
|
|
5663
5587
|
$[0] = t0;
|
|
5664
5588
|
$[1] = children;
|
|
5665
5589
|
$[2] = exceptionallySetClassName;
|
|
@@ -5780,12 +5704,11 @@ const ModalBody = /*#__PURE__*/React.forwardRef(function ModalBody(t0, ref) {
|
|
|
5780
5704
|
let exceptionallySetClassName;
|
|
5781
5705
|
let props;
|
|
5782
5706
|
if ($[0] !== t0) {
|
|
5783
|
-
var _t2 = t0;
|
|
5784
5707
|
({
|
|
5785
5708
|
exceptionallySetClassName,
|
|
5786
|
-
children
|
|
5787
|
-
|
|
5788
|
-
|
|
5709
|
+
children,
|
|
5710
|
+
...props
|
|
5711
|
+
} = t0);
|
|
5789
5712
|
$[0] = t0;
|
|
5790
5713
|
$[1] = children;
|
|
5791
5714
|
$[2] = exceptionallySetClassName;
|
|
@@ -5850,12 +5773,11 @@ function ModalFooter(t0) {
|
|
|
5850
5773
|
let props;
|
|
5851
5774
|
let t1;
|
|
5852
5775
|
if ($[0] !== t0) {
|
|
5853
|
-
var _t3 = t0;
|
|
5854
5776
|
({
|
|
5855
5777
|
exceptionallySetClassName,
|
|
5856
|
-
withDivider: t1
|
|
5857
|
-
|
|
5858
|
-
|
|
5778
|
+
withDivider: t1,
|
|
5779
|
+
...props
|
|
5780
|
+
} = t0);
|
|
5859
5781
|
$[0] = t0;
|
|
5860
5782
|
$[1] = exceptionallySetClassName;
|
|
5861
5783
|
$[2] = props;
|
|
@@ -5919,11 +5841,10 @@ function ModalActions(t0) {
|
|
|
5919
5841
|
let children;
|
|
5920
5842
|
let props;
|
|
5921
5843
|
if ($[0] !== t0) {
|
|
5922
|
-
var _t4 = t0;
|
|
5923
5844
|
({
|
|
5924
|
-
children
|
|
5925
|
-
|
|
5926
|
-
|
|
5845
|
+
children,
|
|
5846
|
+
...props
|
|
5847
|
+
} = t0);
|
|
5927
5848
|
$[0] = t0;
|
|
5928
5849
|
$[1] = children;
|
|
5929
5850
|
$[2] = props;
|
|
@@ -5956,8 +5877,6 @@ function ModalActions(t0) {
|
|
|
5956
5877
|
|
|
5957
5878
|
var modules_40c67f5b = {"tab":"_33c9c271","fullTabList":"_479349aa","track":"_2862a4ba","selected":"_1161c811","tab-neutral":"_9502e79a","tab-themed":"c39f1053","track-neutral":"b3554a83","track-themed":"_511b0be0","selected-neutral":"c81dc609","selected-themed":"_87552972"};
|
|
5958
5879
|
|
|
5959
|
-
const _excluded$4 = ["children", "space", "width", "align", "exceptionallySetClassName"],
|
|
5960
|
-
_excluded2 = ["children", "id", "renderMode"];
|
|
5961
5880
|
const TabsContext = /*#__PURE__*/React__namespace.createContext(null);
|
|
5962
5881
|
/**
|
|
5963
5882
|
* Used to group components that compose a set of tabs. There can only be one active tab within the same `<Tabs>` group.
|
|
@@ -6044,15 +5963,14 @@ const Tab = /*#__PURE__*/React__namespace.forwardRef(function Tab(t0, ref) {
|
|
|
6044
5963
|
/**
|
|
6045
5964
|
* A component used to group `<Tab>` elements together.
|
|
6046
5965
|
*/
|
|
6047
|
-
function TabList(
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$4);
|
|
5966
|
+
function TabList({
|
|
5967
|
+
children,
|
|
5968
|
+
space,
|
|
5969
|
+
width = 'maxContent',
|
|
5970
|
+
align = 'start',
|
|
5971
|
+
exceptionallySetClassName,
|
|
5972
|
+
...props
|
|
5973
|
+
}) {
|
|
6056
5974
|
const tabListRef = React__namespace.useRef(null);
|
|
6057
5975
|
const tabListPrevWidthRef = React__namespace.useRef(0);
|
|
6058
5976
|
const tabContextValue = React__namespace.useContext(TabsContext);
|
|
@@ -6146,19 +6064,19 @@ function TabList(_ref) {
|
|
|
6146
6064
|
* Used to define the content to be rendered when a tab is active. Each `<TabPanel>` must have a
|
|
6147
6065
|
* corresponding `<Tab>` component.
|
|
6148
6066
|
*/
|
|
6149
|
-
const TabPanel = /*#__PURE__*/React__namespace.forwardRef(function TabPanel(
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
props = _objectWithoutProperties__default["default"](_ref2, _excluded2);
|
|
6067
|
+
const TabPanel = /*#__PURE__*/React__namespace.forwardRef(function TabPanel({
|
|
6068
|
+
children,
|
|
6069
|
+
id,
|
|
6070
|
+
renderMode = 'always',
|
|
6071
|
+
...props
|
|
6072
|
+
}, ref) {
|
|
6156
6073
|
const tabContextValue = React__namespace.useContext(TabsContext);
|
|
6157
6074
|
const [tabRendered, setTabRendered] = React__namespace.useState(false);
|
|
6158
6075
|
const selectedId = tabContextValue?.tabStore.useState('selectedId');
|
|
6159
6076
|
const tabIsActive = selectedId === id;
|
|
6160
6077
|
React__namespace.useEffect(function trackTabRenderedState() {
|
|
6161
6078
|
if (!tabRendered && tabIsActive) {
|
|
6079
|
+
// eslint-disable-next-line react-hooks/set-state-in-effect
|
|
6162
6080
|
setTabRendered(true);
|
|
6163
6081
|
}
|
|
6164
6082
|
}, [tabRendered, tabIsActive]);
|
|
@@ -6189,8 +6107,6 @@ function TabAwareSlot({
|
|
|
6189
6107
|
}) : null;
|
|
6190
6108
|
}
|
|
6191
6109
|
|
|
6192
|
-
const _excluded$3 = ["type", "variant", "size", "loading", "disabled", "tooltip", "onClick", "children"];
|
|
6193
|
-
|
|
6194
6110
|
/** @deprecated */
|
|
6195
6111
|
|
|
6196
6112
|
/** @deprecated */
|
|
@@ -6212,16 +6128,16 @@ const Button$1 = /*#__PURE__*/React__namespace.forwardRef(function Button(t0, re
|
|
|
6212
6128
|
let type;
|
|
6213
6129
|
if ($[0] !== t0) {
|
|
6214
6130
|
const {
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6131
|
+
type: t2,
|
|
6132
|
+
variant,
|
|
6133
|
+
size: t3,
|
|
6134
|
+
loading: t4,
|
|
6135
|
+
disabled: t5,
|
|
6136
|
+
tooltip: t6,
|
|
6137
|
+
onClick: t7,
|
|
6138
|
+
children: t8,
|
|
6139
|
+
...t9
|
|
6140
|
+
} = t0;
|
|
6225
6141
|
tooltip = t6;
|
|
6226
6142
|
onClick = t7;
|
|
6227
6143
|
children = t8;
|
|
@@ -6298,7 +6214,6 @@ Button$1.defaultProps = {
|
|
|
6298
6214
|
|
|
6299
6215
|
var Button = Button$1;
|
|
6300
6216
|
|
|
6301
|
-
const _excluded$2 = ["children", "onClick", "tooltip", "className"];
|
|
6302
6217
|
class Box extends React__namespace.Component {
|
|
6303
6218
|
constructor(props, context) {
|
|
6304
6219
|
super(props, context);
|
|
@@ -6429,12 +6344,12 @@ const Trigger = /*#__PURE__*/React__namespace.forwardRef(function Trigger(t0, re
|
|
|
6429
6344
|
let tooltip;
|
|
6430
6345
|
if ($[0] !== t0) {
|
|
6431
6346
|
const {
|
|
6432
|
-
|
|
6433
|
-
|
|
6434
|
-
|
|
6435
|
-
|
|
6436
|
-
|
|
6437
|
-
|
|
6347
|
+
children: t2,
|
|
6348
|
+
onClick,
|
|
6349
|
+
tooltip: t3,
|
|
6350
|
+
className: t4,
|
|
6351
|
+
...t5
|
|
6352
|
+
} = t0;
|
|
6438
6353
|
children = t2;
|
|
6439
6354
|
tooltip = t3;
|
|
6440
6355
|
className = t4;
|
|
@@ -6943,8 +6858,6 @@ function KeyCapturer(props) {
|
|
|
6943
6858
|
return t4;
|
|
6944
6859
|
}
|
|
6945
6860
|
|
|
6946
|
-
const _excluded$1 = ["children", "className", "translateKey", "isMac"];
|
|
6947
|
-
|
|
6948
6861
|
//
|
|
6949
6862
|
// Support for setting up how to translate modifiers globally.
|
|
6950
6863
|
//
|
|
@@ -7007,14 +6920,13 @@ function parseKeys(shortcut, isMac, translateKey) {
|
|
|
7007
6920
|
// The KeyboardShortcut component
|
|
7008
6921
|
//
|
|
7009
6922
|
|
|
7010
|
-
function KeyboardShortcut(
|
|
7011
|
-
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
|
|
7016
|
-
|
|
7017
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$1);
|
|
6923
|
+
function KeyboardShortcut({
|
|
6924
|
+
children,
|
|
6925
|
+
className,
|
|
6926
|
+
translateKey = globalTranslateKey,
|
|
6927
|
+
isMac = navigator.platform?.toUpperCase().includes('MAC') ?? false,
|
|
6928
|
+
...props
|
|
6929
|
+
}) {
|
|
7018
6930
|
const shortcuts = typeof children === 'string' ? [children] : children;
|
|
7019
6931
|
return /*#__PURE__*/React__namespace.createElement("span", _extends__default["default"]({
|
|
7020
6932
|
className: classNames__default["default"]('reactist_keyboard_shortcut', className, {
|
|
@@ -7322,7 +7234,6 @@ Input$1.displayName = 'Input';
|
|
|
7322
7234
|
|
|
7323
7235
|
var Input = Input$1;
|
|
7324
7236
|
|
|
7325
|
-
const _excluded = ["value", "options", "onChange", "disabled", "className", "defaultValue"];
|
|
7326
7237
|
function Select(t0) {
|
|
7327
7238
|
const $ = reactCompilerRuntime.c(25);
|
|
7328
7239
|
let defaultValue;
|
|
@@ -7333,16 +7244,15 @@ function Select(t0) {
|
|
|
7333
7244
|
let t3;
|
|
7334
7245
|
let value;
|
|
7335
7246
|
if ($[0] !== t0) {
|
|
7336
|
-
var _t = t0;
|
|
7337
7247
|
({
|
|
7338
7248
|
value,
|
|
7339
7249
|
options: t1,
|
|
7340
7250
|
onChange,
|
|
7341
7251
|
disabled: t2,
|
|
7342
7252
|
className: t3,
|
|
7343
|
-
defaultValue
|
|
7344
|
-
|
|
7345
|
-
|
|
7253
|
+
defaultValue,
|
|
7254
|
+
...otherProps
|
|
7255
|
+
} = t0);
|
|
7346
7256
|
$[0] = t0;
|
|
7347
7257
|
$[1] = defaultValue;
|
|
7348
7258
|
$[2] = onChange;
|