@doist/reactist 17.10.1 → 18.0.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/dist/reactist.cjs.development.js +89 -81
- 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/components/color-picker/color-picker.js +1 -1
- package/es/components/color-picker/color-picker.js.map +1 -1
- package/es/components/deprecated-button/deprecated-button.js +1 -1
- package/es/components/deprecated-button/deprecated-button.js.map +1 -1
- package/es/components/time/time.js +1 -1
- package/es/components/time/time.js.map +1 -1
- package/es/index.js +1 -1
- package/es/new-components/base-button/base-button.js +1 -1
- package/es/new-components/base-button/base-button.js.map +1 -1
- package/es/new-components/box/box.module.css.js +1 -1
- package/es/new-components/password-field/password-field.js +1 -1
- package/es/new-components/password-field/password-field.js.map +1 -1
- package/es/{components → new-components}/tooltip/tooltip.js +35 -28
- package/es/new-components/tooltip/tooltip.js.map +1 -0
- package/es/new-components/tooltip/tooltip.module.css.js +4 -0
- package/es/new-components/tooltip/tooltip.module.css.js.map +1 -0
- package/lib/components/color-picker/color-picker.js +1 -1
- package/lib/components/color-picker/color-picker.js.map +1 -1
- package/lib/components/deprecated-button/deprecated-button.js +1 -1
- package/lib/components/deprecated-button/deprecated-button.js.map +1 -1
- package/lib/components/time/time.js +1 -1
- package/lib/components/time/time.js.map +1 -1
- package/lib/index.d.ts +1 -2
- package/lib/index.js +1 -1
- package/lib/new-components/base-button/base-button.d.ts +1 -1
- package/lib/new-components/base-button/base-button.js +1 -1
- package/lib/new-components/base-button/base-button.js.map +1 -1
- package/lib/new-components/box/box.module.css.js +1 -1
- package/lib/new-components/password-field/password-field.js +1 -1
- package/lib/new-components/password-field/password-field.js.map +1 -1
- package/lib/new-components/tooltip/index.d.ts +2 -0
- package/lib/new-components/tooltip/tooltip.d.ts +61 -0
- package/lib/new-components/tooltip/tooltip.js +2 -0
- package/lib/new-components/tooltip/tooltip.js.map +1 -0
- package/lib/new-components/tooltip/tooltip.module.css.js +2 -0
- package/lib/new-components/tooltip/tooltip.module.css.js.map +1 -0
- package/lib/{components → new-components}/tooltip/tooltip.test.d.ts +0 -0
- package/package.json +1 -1
- package/styles/alert.css +2 -2
- package/styles/avatar.css +1 -1
- package/styles/badge.css +1 -1
- package/styles/base-button.css +2 -2
- package/styles/base-field.css +1 -1
- package/styles/box.css +1 -1
- package/styles/box.module.css.css +1 -1
- package/styles/checkbox-field.css +1 -1
- package/styles/color-picker.css +6 -1
- package/styles/columns.css +1 -1
- package/styles/deprecated-button.css +6 -1
- package/styles/divider.css +1 -1
- package/styles/dropdown.css +6 -1
- package/styles/heading.css +1 -1
- package/styles/hidden-visually.css +1 -1
- package/styles/hidden.css +1 -1
- package/styles/loading.css +1 -1
- package/styles/modal.css +2 -2
- package/styles/notice.css +1 -1
- package/styles/password-field.css +2 -2
- package/styles/progress-bar.css +1 -1
- package/styles/reactist.css +3 -3
- package/styles/select-field.css +1 -1
- package/styles/static-toast.css +2 -2
- package/styles/switch-field.css +1 -1
- package/styles/tabs.css +1 -1
- package/styles/text-area.css +1 -1
- package/styles/text-field.css +1 -1
- package/styles/text-link.css +1 -1
- package/styles/text.css +1 -1
- package/styles/time.css +6 -1
- package/styles/tooltip.css +6 -1
- package/styles/tooltip.module.css.css +1 -0
- package/styles/use-toasts.css +2 -2
- package/es/components/tooltip/tooltip.js.map +0 -1
- package/lib/components/tooltip/index.d.ts +0 -2
- package/lib/components/tooltip/tooltip.d.ts +0 -15
- package/lib/components/tooltip/tooltip.js +0 -2
- package/lib/components/tooltip/tooltip.js.map +0 -1
|
@@ -196,7 +196,7 @@ function mapResponsiveProp(fromValue, mapper) {
|
|
|
196
196
|
};
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
var modules_54d944f2 = {"box":"
|
|
199
|
+
var modules_54d944f2 = {"box":"_2a3b75a1","position-absolute":"_2286072d","position-fixed":"_0847ebf3","position-relative":"_9015266f","position-sticky":"_572136cd","tablet-position-absolute":"dec0da3c","tablet-position-fixed":"eb3f61a4","tablet-position-relative":"_6a9d01dd","tablet-position-sticky":"cf9268ba","desktop-position-absolute":"_6579cc9c","desktop-position-fixed":"_3a6a421f","desktop-position-relative":"_3a6950ac","desktop-position-sticky":"_142cd372","display-block":"_9a084bff","display-flex":"_509a57b4","display-inline":"_4a786bb9","display-inlineBlock":"_5d644b40","display-inlineFlex":"_973d00d0","display-none":"_3e4f26a6","tablet-display-block":"d525fe3a","tablet-display-flex":"_316c9f4b","tablet-display-inline":"_5e788d98","tablet-display-inlineBlock":"_851fc6b8","tablet-display-inlineFlex":"c16ba46a","tablet-display-none":"_759c0c1a","desktop-display-block":"c374b455","desktop-display-flex":"_8a854d8f","desktop-display-inline":"_805fa8dc","desktop-display-inlineBlock":"ab26af05","desktop-display-inlineFlex":"_9bd12ba4","desktop-display-none":"_581476ce","flexDirection-column":"_1fb9d90e","flexDirection-row":"e5a9206f","tablet-flexDirection-column":"_3e6a0be1","tablet-flexDirection-row":"e9e2e53a","desktop-flexDirection-column":"c7d6b073","desktop-flexDirection-row":"_935269b4","flexWrap-wrap":"_3692f9c2","flexWrap-nowrap":"_55f6f487","flexShrink-0":"d5d0d34a","flexGrow-0":"d8ff7933","flexGrow-1":"_4a93668a","alignItems-flexStart":"_5a8c5a77","alignItems-center":"_50ba6b6b","alignItems-flexEnd":"_3963f790","alignItems-baseline":"_55ef2d4e","tablet-alignItems-flexStart":"_3e2bfb5d","tablet-alignItems-center":"a99be1ab","tablet-alignItems-flexEnd":"fa8221fe","tablet-alignItems-baseline":"e83669a0","desktop-alignItems-flexStart":"_65e6b537","desktop-alignItems-center":"db356482","desktop-alignItems-flexEnd":"acc08587","desktop-alignItems-baseline":"ad033867","justifyContent-flexStart":"_985b733f","justifyContent-center":"_95a98d2a","justifyContent-flexEnd":"be9bf31a","justifyContent-spaceAround":"a89d8798","justifyContent-spaceBetween":"_904ef8fe","justifyContent-spaceEvenly":"_489975d5","tablet-justifyContent-flexStart":"a7175ae7","tablet-justifyContent-center":"_7334dead","tablet-justifyContent-flexEnd":"_746de733","tablet-justifyContent-spaceAround":"_6d09398a","tablet-justifyContent-spaceBetween":"c2324c1d","tablet-justifyContent-spaceEvenly":"_04bd6e07","desktop-justifyContent-flexStart":"_39b310de","desktop-justifyContent-center":"_0dc77292","desktop-justifyContent-flexEnd":"_96c15bd8","desktop-justifyContent-spaceBetween":"_096111a6","alignSelf-stretch":"_35d69587","alignSelf-flexStart":"f46f3a67","alignSelf-center":"fb6a8035","alignSelf-flexEnd":"d3193acd","alignSelf-baseline":"_1154f656","tablet-alignSelf-stretch":"_298e04af","tablet-alignSelf-flexStart":"_2c729d24","tablet-alignSelf-center":"_9ea5e943","tablet-alignSelf-flexEnd":"_02266425","tablet-alignSelf-baseline":"c16a5800","desktop-alignSelf-stretch":"_2ec9eb74","desktop-alignSelf-flexStart":"_34f1fb03","desktop-alignSelf-center":"_77c58550","desktop-alignSelf-flexEnd":"_9ffa429f","desktop-alignSelf-baseline":"_6cc14c5d","overflow-hidden":"f6342c26","overflow-auto":"_10a2f952","overflow-visible":"f20b8b87","overflow-scroll":"_4954f87c","height-full":"a83fb2f5","bg-default":"d85cf739","bg-aside":"_4eb1d749","bg-highlight":"da1ccaa5","bg-selected":"_82dc28e7","bg-toast":"_63ba3dfa","borderRadius-standard":"_34cd2b5e","borderRadius-full":"_5fe4d5e3","border-primary":"_1b34ffd9","border-secondary":"_705519b0","border-tertiary":"_67adc238","textAlign-start":"fff8bff0","textAlign-center":"f973eed0","textAlign-end":"_225acbd7","textAlign-justify":"dea1e8ba","tablet-textAlign-start":"_919d6c8f","tablet-textAlign-center":"ab9d970e","tablet-textAlign-end":"b5b45e0e","tablet-textAlign-justify":"bd6e42e0","desktop-textAlign-start":"_15120506","desktop-textAlign-center":"_337333b5","desktop-textAlign-end":"_221db0fb","desktop-textAlign-justify":"_29ea9711"};
|
|
200
200
|
|
|
201
201
|
var modules_b537a8ee = {"paddingTop-xsmall":"c4803194","paddingTop-small":"_4e9ab24b","paddingTop-medium":"_1d226e27","paddingTop-large":"eb6097f1","paddingTop-xlarge":"d3229ba4","paddingTop-xxlarge":"_47978ba4","tablet-paddingTop-xsmall":"f987719c","tablet-paddingTop-small":"_8dbc4b4d","tablet-paddingTop-medium":"ae44fe07","tablet-paddingTop-large":"ffe9548d","tablet-paddingTop-xlarge":"f2b76a44","tablet-paddingTop-xxlarge":"c6eb8f43","desktop-paddingTop-xsmall":"_8699b560","desktop-paddingTop-small":"_02c374b7","desktop-paddingTop-medium":"_0dd0332f","desktop-paddingTop-large":"da55f1f6","desktop-paddingTop-xlarge":"_8ef2a278","desktop-paddingTop-xxlarge":"_8b493b28","paddingRight-xsmall":"_211eebc7","paddingRight-small":"ad0ccf15","paddingRight-medium":"a03e39af","paddingRight-large":"f0941ead","paddingRight-xlarge":"e47c5a43","paddingRight-xxlarge":"e849a5cf","tablet-paddingRight-xsmall":"_85374228","tablet-paddingRight-small":"_89df37b9","tablet-paddingRight-medium":"_1cc50ebe","tablet-paddingRight-large":"_1060982b","tablet-paddingRight-xlarge":"be58847d","tablet-paddingRight-xxlarge":"_45093484","desktop-paddingRight-xsmall":"f8d99d6a","desktop-paddingRight-small":"efa076d9","desktop-paddingRight-medium":"e59caa64","desktop-paddingRight-large":"da42f46a","desktop-paddingRight-xlarge":"b3ee2580","desktop-paddingRight-xxlarge":"_3ef94658","paddingBottom-xsmall":"b0e6eab4","paddingBottom-small":"_9510d053","paddingBottom-medium":"d7af60c9","paddingBottom-large":"b75f86cd","paddingBottom-xlarge":"fbd4ce29","paddingBottom-xxlarge":"_33e3ad63","tablet-paddingBottom-xsmall":"f0302da7","tablet-paddingBottom-small":"_4f9b8012","tablet-paddingBottom-medium":"_4333e20e","tablet-paddingBottom-large":"_30bbc76c","tablet-paddingBottom-xlarge":"ba5a4008","tablet-paddingBottom-xxlarge":"_423a3b1a","desktop-paddingBottom-xsmall":"b40139b7","desktop-paddingBottom-small":"f96071fa","desktop-paddingBottom-medium":"fe803c9a","desktop-paddingBottom-large":"_01686eb9","desktop-paddingBottom-xlarge":"afa763d8","desktop-paddingBottom-xxlarge":"a95785f1","paddingLeft-xsmall":"cad4e2ec","paddingLeft-small":"d70b3c17","paddingLeft-medium":"_8c851bd6","paddingLeft-large":"_078feb3c","paddingLeft-xlarge":"_76ab968c","paddingLeft-xxlarge":"aaca85d7","tablet-paddingLeft-xsmall":"_5eb0e5aa","tablet-paddingLeft-small":"_0384fb4f","tablet-paddingLeft-medium":"edffff6f","tablet-paddingLeft-large":"_873b9a46","tablet-paddingLeft-xlarge":"_89105db5","tablet-paddingLeft-xxlarge":"db1966fe","desktop-paddingLeft-xsmall":"b17f826b","desktop-paddingLeft-small":"_6dc83610","desktop-paddingLeft-medium":"_3421b8b2","desktop-paddingLeft-large":"_68cec7a6","desktop-paddingLeft-xlarge":"_94bde020","desktop-paddingLeft-xxlarge":"b94ee579"};
|
|
202
202
|
|
|
@@ -454,7 +454,7 @@ const HiddenVisually = /*#__PURE__*/polymorphicComponent(function HiddenVisually
|
|
|
454
454
|
}));
|
|
455
455
|
});
|
|
456
456
|
|
|
457
|
-
|
|
457
|
+
var modules_95f1407a = {"tooltip":"_2b075a8d"};
|
|
458
458
|
|
|
459
459
|
const SHOW_DELAY = 500;
|
|
460
460
|
const HIDE_DELAY = 100;
|
|
@@ -468,16 +468,14 @@ function useDelayedTooltipState(initialState) {
|
|
|
468
468
|
}), [delay, tooltipState]);
|
|
469
469
|
}
|
|
470
470
|
|
|
471
|
-
function Tooltip(
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
props = _objectWithoutProperties(_ref, _excluded$6);
|
|
480
|
-
|
|
471
|
+
function Tooltip({
|
|
472
|
+
children,
|
|
473
|
+
content,
|
|
474
|
+
position = 'top',
|
|
475
|
+
gapSize = 3,
|
|
476
|
+
withArrow = false,
|
|
477
|
+
exceptionallySetClassName
|
|
478
|
+
}) {
|
|
481
479
|
const state = useDelayedTooltipState({
|
|
482
480
|
placement: position,
|
|
483
481
|
gutter: gapSize
|
|
@@ -495,19 +493,19 @@ function Tooltip(_ref) {
|
|
|
495
493
|
* Prevents the tooltip from automatically firing on focus all the time. This is to prevent
|
|
496
494
|
* tooltips from showing when the trigger element is focused back after a popover or dialog that
|
|
497
495
|
* it opened was closed. See link below for more details.
|
|
498
|
-
* @see https://github.com/
|
|
496
|
+
* @see https://github.com/ariakit/ariakit/discussions/749
|
|
499
497
|
*/
|
|
500
498
|
|
|
501
499
|
|
|
502
500
|
function handleFocus(event) {
|
|
503
501
|
var _child$props;
|
|
504
502
|
|
|
505
|
-
// If focus is not followed by a key up event, does it mean that it's not
|
|
506
|
-
//
|
|
507
|
-
// This may be resolved soon in an upcoming version of
|
|
508
|
-
// https://github.com/
|
|
509
|
-
function handleKeyUp(
|
|
510
|
-
const eventKey =
|
|
503
|
+
// If focus is not followed by a key up event, does it mean that it's not an intentional
|
|
504
|
+
// keyboard focus? Not sure but it seems to work.
|
|
505
|
+
// This may be resolved soon in an upcoming version of ariakit:
|
|
506
|
+
// https://github.com/ariakit/ariakit/issues/750
|
|
507
|
+
function handleKeyUp(event) {
|
|
508
|
+
const eventKey = event.key;
|
|
511
509
|
|
|
512
510
|
if (eventKey !== 'Escape' && eventKey !== 'Enter' && eventKey !== 'Space') {
|
|
513
511
|
state.show();
|
|
@@ -516,25 +514,35 @@ function Tooltip(_ref) {
|
|
|
516
514
|
|
|
517
515
|
event.currentTarget.addEventListener('keyup', handleKeyUp, {
|
|
518
516
|
once: true
|
|
519
|
-
});
|
|
517
|
+
});
|
|
518
|
+
event.preventDefault(); // Prevent tooltip.show from being called by TooltipReference
|
|
520
519
|
|
|
521
|
-
event.preventDefault();
|
|
522
520
|
child == null ? void 0 : (_child$props = child.props) == null ? void 0 : _child$props.onFocus == null ? void 0 : _child$props.onFocus(event);
|
|
523
521
|
}
|
|
524
522
|
|
|
525
523
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(tooltip.TooltipAnchor, {
|
|
526
524
|
state: state,
|
|
527
525
|
ref: child.ref,
|
|
528
|
-
onFocus: handleFocus
|
|
526
|
+
onFocus: handleFocus,
|
|
527
|
+
described: true
|
|
529
528
|
}, anchorProps => {
|
|
530
529
|
// Let child props override anchor props so user can specify attributes like tabIndex
|
|
531
530
|
// Also, do not apply the child's props to TooltipAnchor as props like `as` can create problems
|
|
532
531
|
// by applying the replacement component/element twice
|
|
533
532
|
return /*#__PURE__*/React.cloneElement(child, _objectSpread2(_objectSpread2({}, anchorProps), child.props));
|
|
534
|
-
}), state.visible ? /*#__PURE__*/React.createElement(
|
|
533
|
+
}), state.visible ? /*#__PURE__*/React.createElement(Box, {
|
|
534
|
+
as: tooltip.Tooltip,
|
|
535
535
|
state: state,
|
|
536
|
-
className:
|
|
537
|
-
|
|
536
|
+
className: [modules_95f1407a.tooltip, exceptionallySetClassName],
|
|
537
|
+
background: "toast",
|
|
538
|
+
borderRadius: "standard",
|
|
539
|
+
paddingX: "small",
|
|
540
|
+
paddingY: "xsmall",
|
|
541
|
+
maxWidth: "medium",
|
|
542
|
+
width: "fitContent",
|
|
543
|
+
overflow: "hidden",
|
|
544
|
+
textAlign: "center"
|
|
545
|
+
}, withArrow ? /*#__PURE__*/React.createElement(tooltip.TooltipArrow, null) : null, typeof content === 'function' ? content() : content) : null);
|
|
538
546
|
}
|
|
539
547
|
// Internal helpers
|
|
540
548
|
//
|
|
@@ -592,7 +600,7 @@ function Spinner({
|
|
|
592
600
|
|
|
593
601
|
var modules_b9569bce = {"baseButton":"_8313bd46","label":"_0051d171","shape-rounded":"_8eb8f0fa","size-small":"_8b7f1a82","size-normal":"_5e45d59f","size-large":"_95951888","disabled":"_43792df1","iconButton":"_8644eccb","startIcon":"a44d4350","endIcon":"_073e1aa4","variant-primary":"_7a4dbd5f","variant-secondary":"_54d56775","variant-tertiary":"_907a61ca","variant-quaternary":"f169a390","tone-destructive":"ccb3eb8c"};
|
|
594
602
|
|
|
595
|
-
const _excluded$
|
|
603
|
+
const _excluded$6 = ["as", "variant", "tone", "size", "shape", "disabled", "loading", "tooltip", "onClick", "exceptionallySetClassName", "children", "startIcon", "endIcon", "icon", "width", "align"];
|
|
596
604
|
|
|
597
605
|
function preventDefault(event) {
|
|
598
606
|
event.preventDefault();
|
|
@@ -625,7 +633,7 @@ const BaseButton = /*#__PURE__*/polymorphicComponent(function BaseButton(_ref, r
|
|
|
625
633
|
width = 'auto',
|
|
626
634
|
align = 'center'
|
|
627
635
|
} = _ref,
|
|
628
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
636
|
+
props = _objectWithoutProperties(_ref, _excluded$6);
|
|
629
637
|
|
|
630
638
|
const isDisabled = loading || disabled;
|
|
631
639
|
const buttonElement = /*#__PURE__*/React.createElement(Box, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
@@ -657,7 +665,7 @@ const BaseButton = /*#__PURE__*/polymorphicComponent(function BaseButton(_ref, r
|
|
|
657
665
|
}, buttonElement) : buttonElement;
|
|
658
666
|
});
|
|
659
667
|
|
|
660
|
-
const _excluded$
|
|
668
|
+
const _excluded$7 = ["variant", "tone", "size", "type", "disabled", "exceptionallySetClassName"];
|
|
661
669
|
/**
|
|
662
670
|
* A semantic button that also looks like a button, and provides all the necessary visual variants.
|
|
663
671
|
* It follows the [WAI-ARIA Button Pattern](https://www.w3.org/TR/wai-aria-practices/#button).
|
|
@@ -674,7 +682,7 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(_ref, ref) {
|
|
|
674
682
|
disabled = false,
|
|
675
683
|
exceptionallySetClassName
|
|
676
684
|
} = _ref,
|
|
677
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
685
|
+
props = _objectWithoutProperties(_ref, _excluded$7);
|
|
678
686
|
|
|
679
687
|
return /*#__PURE__*/React.createElement(BaseButton, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
680
688
|
as: "button",
|
|
@@ -688,7 +696,7 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(_ref, ref) {
|
|
|
688
696
|
}));
|
|
689
697
|
});
|
|
690
698
|
|
|
691
|
-
const _excluded$
|
|
699
|
+
const _excluded$8 = ["tone"];
|
|
692
700
|
const alertIconForTone = {
|
|
693
701
|
info: AlertInfoIcon,
|
|
694
702
|
positive: AlertPositiveIcon,
|
|
@@ -700,7 +708,7 @@ function AlertIcon(_ref) {
|
|
|
700
708
|
let {
|
|
701
709
|
tone
|
|
702
710
|
} = _ref,
|
|
703
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
711
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
704
712
|
|
|
705
713
|
const Icon = alertIconForTone[tone];
|
|
706
714
|
return Icon ? /*#__PURE__*/React.createElement(Icon, _objectSpread2({}, props)) : null;
|
|
@@ -813,7 +821,7 @@ function Alert({
|
|
|
813
821
|
})) : null));
|
|
814
822
|
}
|
|
815
823
|
|
|
816
|
-
const _excluded$
|
|
824
|
+
const _excluded$9 = ["size", "exceptionallySetClassName"];
|
|
817
825
|
const sizeMapping = {
|
|
818
826
|
xsmall: 16,
|
|
819
827
|
small: 24,
|
|
@@ -828,7 +836,7 @@ function Loading(_ref) {
|
|
|
828
836
|
size = 'small',
|
|
829
837
|
exceptionallySetClassName
|
|
830
838
|
} = _ref,
|
|
831
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
839
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
832
840
|
|
|
833
841
|
const numericSize = (_sizeMapping$size = sizeMapping[size]) != null ? _sizeMapping$size : sizeMapping.small;
|
|
834
842
|
const ariaLabel = props['aria-label'] ? props['aria-label'] : !props['aria-labelledby'] ? 'Loading…' : undefined;
|
|
@@ -871,7 +879,7 @@ function Notice({
|
|
|
871
879
|
|
|
872
880
|
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"};
|
|
873
881
|
|
|
874
|
-
const _excluded$
|
|
882
|
+
const _excluded$a = ["as", "size", "weight", "tone", "align", "children", "lineClamp", "exceptionallySetClassName"];
|
|
875
883
|
const Text = /*#__PURE__*/polymorphicComponent(function Text(_ref, ref) {
|
|
876
884
|
let {
|
|
877
885
|
as,
|
|
@@ -883,7 +891,7 @@ const Text = /*#__PURE__*/polymorphicComponent(function Text(_ref, ref) {
|
|
|
883
891
|
lineClamp,
|
|
884
892
|
exceptionallySetClassName
|
|
885
893
|
} = _ref,
|
|
886
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
894
|
+
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
887
895
|
|
|
888
896
|
const lineClampMultipleLines = typeof lineClamp === 'string' ? Number(lineClamp) > 1 : (lineClamp != null ? lineClamp : 1) > 1;
|
|
889
897
|
return /*#__PURE__*/React.createElement(Box, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
@@ -899,7 +907,7 @@ const Text = /*#__PURE__*/polymorphicComponent(function Text(_ref, ref) {
|
|
|
899
907
|
|
|
900
908
|
var modules_d11e18f0 = {"stackedToastsView":"_8e9f0a55","toastContainer":"_121b9429","slot":"_6a2a04c5"};
|
|
901
909
|
|
|
902
|
-
const _excluded$
|
|
910
|
+
const _excluded$b = ["message", "description", "icon", "action", "onDismiss", "dismissLabel"];
|
|
903
911
|
/**
|
|
904
912
|
* A toast that shows a message, and an optional action associated with it.
|
|
905
913
|
*
|
|
@@ -924,7 +932,7 @@ const StaticToast = /*#__PURE__*/React__default.forwardRef(function Toast(_ref,
|
|
|
924
932
|
onDismiss,
|
|
925
933
|
dismissLabel = 'Close'
|
|
926
934
|
} = _ref,
|
|
927
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
935
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
928
936
|
|
|
929
937
|
return /*#__PURE__*/React__default.createElement(Box, _objectSpread2({
|
|
930
938
|
ref: ref,
|
|
@@ -1165,7 +1173,7 @@ function useToastsAnimation() {
|
|
|
1165
1173
|
};
|
|
1166
1174
|
}
|
|
1167
1175
|
|
|
1168
|
-
const _excluded$
|
|
1176
|
+
const _excluded$c = ["toastId"];
|
|
1169
1177
|
/** @private */
|
|
1170
1178
|
|
|
1171
1179
|
const InternalToast = /*#__PURE__*/React__default.forwardRef(function InternalToast({
|
|
@@ -1274,7 +1282,7 @@ function ToastsProvider({
|
|
|
1274
1282
|
let {
|
|
1275
1283
|
toastId
|
|
1276
1284
|
} = _ref,
|
|
1277
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1285
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
1278
1286
|
|
|
1279
1287
|
return /*#__PURE__*/React__default.createElement(InternalToast, _objectSpread2({
|
|
1280
1288
|
key: toastId,
|
|
@@ -1350,7 +1358,7 @@ function Toast(props) {
|
|
|
1350
1358
|
|
|
1351
1359
|
var modules_949d2ff4 = {"heading":"_71a1610c","weight-light":"_63750f40","tone-secondary":"_9ce984cf","tone-danger":"_1acad35e","size-largest":"_3da27a00","size-larger":"df220733","size-smaller":"eb373739","lineClampMultipleLines":"f53cfd2b","lineClamp-1":"e4819fc9","lineClamp-2":"a0ed6177","lineClamp-3":"_180d433e","lineClamp-4":"_40826ad9","lineClamp-5":"_5999b247"};
|
|
1352
1360
|
|
|
1353
|
-
const _excluded$
|
|
1361
|
+
const _excluded$d = ["level", "weight", "size", "tone", "children", "lineClamp", "align", "exceptionallySetClassName"];
|
|
1354
1362
|
const Heading = /*#__PURE__*/React.forwardRef(function Heading(_ref, ref) {
|
|
1355
1363
|
let {
|
|
1356
1364
|
level,
|
|
@@ -1362,7 +1370,7 @@ const Heading = /*#__PURE__*/React.forwardRef(function Heading(_ref, ref) {
|
|
|
1362
1370
|
align,
|
|
1363
1371
|
exceptionallySetClassName
|
|
1364
1372
|
} = _ref,
|
|
1365
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1373
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
1366
1374
|
|
|
1367
1375
|
// In TypeScript v4.1, this would be properly recognized without needing the type assertion
|
|
1368
1376
|
// https://devblogs.microsoft.com/typescript/announcing-typescript-4-1-beta/#template-literal-types
|
|
@@ -1379,7 +1387,7 @@ const Heading = /*#__PURE__*/React.forwardRef(function Heading(_ref, ref) {
|
|
|
1379
1387
|
}), children);
|
|
1380
1388
|
});
|
|
1381
1389
|
|
|
1382
|
-
const _excluded$
|
|
1390
|
+
const _excluded$e = ["as", "variant", "tone", "size", "exceptionallySetClassName", "openInNewTab"];
|
|
1383
1391
|
/**
|
|
1384
1392
|
* A semantic link that looks like a button, exactly matching the `Button` component in all visual
|
|
1385
1393
|
* aspects.
|
|
@@ -1396,7 +1404,7 @@ const ButtonLink = /*#__PURE__*/polymorphicComponent(function ButtonLink(_ref, r
|
|
|
1396
1404
|
exceptionallySetClassName,
|
|
1397
1405
|
openInNewTab = false
|
|
1398
1406
|
} = _ref,
|
|
1399
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1407
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
1400
1408
|
|
|
1401
1409
|
return /*#__PURE__*/React.createElement(BaseButton, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1402
1410
|
as: as,
|
|
@@ -1412,14 +1420,14 @@ const ButtonLink = /*#__PURE__*/polymorphicComponent(function ButtonLink(_ref, r
|
|
|
1412
1420
|
|
|
1413
1421
|
var modules_3d05deee = {"container":"fdc181b3"};
|
|
1414
1422
|
|
|
1415
|
-
const _excluded$
|
|
1423
|
+
const _excluded$f = ["as", "openInNewTab", "exceptionallySetClassName"];
|
|
1416
1424
|
const TextLink = /*#__PURE__*/polymorphicComponent(function TextLink(_ref, ref) {
|
|
1417
1425
|
let {
|
|
1418
1426
|
as = 'a',
|
|
1419
1427
|
openInNewTab = false,
|
|
1420
1428
|
exceptionallySetClassName
|
|
1421
1429
|
} = _ref,
|
|
1422
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1430
|
+
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
1423
1431
|
|
|
1424
1432
|
return /*#__PURE__*/React.createElement(Box, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1425
1433
|
as: as,
|
|
@@ -1431,7 +1439,7 @@ const TextLink = /*#__PURE__*/polymorphicComponent(function TextLink(_ref, ref)
|
|
|
1431
1439
|
}));
|
|
1432
1440
|
});
|
|
1433
1441
|
|
|
1434
|
-
const _excluded$
|
|
1442
|
+
const _excluded$g = ["checked", "indeterminate", "disabled"];
|
|
1435
1443
|
const svgPath = {
|
|
1436
1444
|
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',
|
|
1437
1445
|
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',
|
|
@@ -1470,7 +1478,7 @@ function CheckboxIcon(_ref) {
|
|
|
1470
1478
|
indeterminate,
|
|
1471
1479
|
disabled
|
|
1472
1480
|
} = _ref,
|
|
1473
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1481
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
1474
1482
|
|
|
1475
1483
|
const pathKey = getPathKey({
|
|
1476
1484
|
checked,
|
|
@@ -1491,7 +1499,7 @@ function CheckboxIcon(_ref) {
|
|
|
1491
1499
|
|
|
1492
1500
|
var modules_664a6a80 = {"container":"_84dfdb83","disabled":"_131a2ca4","checked":"_95b1556d","keyFocused":"_49de7ebd","icon":"_6b4b1851","label":"_9047f3bd"};
|
|
1493
1501
|
|
|
1494
|
-
const _excluded$
|
|
1502
|
+
const _excluded$h = ["label", "icon", "disabled", "indeterminate", "defaultChecked", "onChange"];
|
|
1495
1503
|
const CheckboxField = /*#__PURE__*/React.forwardRef(function CheckboxField(_ref, ref) {
|
|
1496
1504
|
var _ref2, _props$checked, _props$checked2;
|
|
1497
1505
|
|
|
@@ -1503,7 +1511,7 @@ const CheckboxField = /*#__PURE__*/React.forwardRef(function CheckboxField(_ref,
|
|
|
1503
1511
|
defaultChecked,
|
|
1504
1512
|
onChange
|
|
1505
1513
|
} = _ref,
|
|
1506
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1514
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
1507
1515
|
|
|
1508
1516
|
const isControlledComponent = typeof props.checked === 'boolean';
|
|
1509
1517
|
|
|
@@ -1718,7 +1726,7 @@ var modules_3f03ead6 = {"inputWrapper":"_66b448b3"};
|
|
|
1718
1726
|
|
|
1719
1727
|
var modules_aaf25250 = {"inputWrapper":"fb09cd05","bordered":"f65f40dd","error":"_29118bf0","startIcon":"a40eb111"};
|
|
1720
1728
|
|
|
1721
|
-
const _excluded$
|
|
1729
|
+
const _excluded$i = ["variant", "label", "secondaryLabel", "auxiliaryLabel", "hint", "message", "tone", "maxWidth", "togglePasswordLabel", "hidden", "aria-describedby"];
|
|
1722
1730
|
const PasswordField = /*#__PURE__*/React.forwardRef(function PasswordField(_ref, ref) {
|
|
1723
1731
|
let {
|
|
1724
1732
|
variant = 'default',
|
|
@@ -1733,7 +1741,7 @@ const PasswordField = /*#__PURE__*/React.forwardRef(function PasswordField(_ref,
|
|
|
1733
1741
|
hidden,
|
|
1734
1742
|
'aria-describedby': ariaDescribedBy
|
|
1735
1743
|
} = _ref,
|
|
1736
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1744
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
1737
1745
|
|
|
1738
1746
|
const id = useId(props.id);
|
|
1739
1747
|
const internalRef = React.useRef(null);
|
|
@@ -1782,7 +1790,7 @@ const PasswordField = /*#__PURE__*/React.forwardRef(function PasswordField(_ref,
|
|
|
1782
1790
|
|
|
1783
1791
|
var modules_1fa9b208 = {"selectWrapper":"a804edbf","bordered":"_50a3655f","error":"a6d38abf"};
|
|
1784
1792
|
|
|
1785
|
-
const _excluded$
|
|
1793
|
+
const _excluded$j = ["variant", "id", "label", "secondaryLabel", "auxiliaryLabel", "hint", "message", "tone", "maxWidth", "children", "hidden", "aria-describedby"];
|
|
1786
1794
|
const SelectField = /*#__PURE__*/React.forwardRef(function SelectField(_ref, ref) {
|
|
1787
1795
|
let {
|
|
1788
1796
|
variant = 'default',
|
|
@@ -1798,7 +1806,7 @@ const SelectField = /*#__PURE__*/React.forwardRef(function SelectField(_ref, ref
|
|
|
1798
1806
|
hidden,
|
|
1799
1807
|
'aria-describedby': ariaDescribedBy
|
|
1800
1808
|
} = _ref,
|
|
1801
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1809
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
1802
1810
|
|
|
1803
1811
|
return /*#__PURE__*/React.createElement(BaseField, {
|
|
1804
1812
|
variant: variant,
|
|
@@ -1836,7 +1844,7 @@ function SelectChevron(props) {
|
|
|
1836
1844
|
|
|
1837
1845
|
var modules_8e05f7c9 = {"container":"ec63c3f1","disabled":"_7de9c06d","checked":"a37981fc","toggle":"_2a17ac45","label":"_68cc9707","handle":"_91409c7f","keyFocused":"a6490371"};
|
|
1838
1846
|
|
|
1839
|
-
const _excluded$
|
|
1847
|
+
const _excluded$k = ["label", "hint", "disabled", "hidden", "defaultChecked", "id", "aria-describedby", "aria-label", "aria-labelledby", "onChange"];
|
|
1840
1848
|
const SwitchField = /*#__PURE__*/React.forwardRef(function SwitchField(_ref, ref) {
|
|
1841
1849
|
var _ref2, _props$checked, _props$checked2;
|
|
1842
1850
|
|
|
@@ -1852,7 +1860,7 @@ const SwitchField = /*#__PURE__*/React.forwardRef(function SwitchField(_ref, ref
|
|
|
1852
1860
|
'aria-labelledby': originalAriaLabelledby,
|
|
1853
1861
|
onChange
|
|
1854
1862
|
} = _ref,
|
|
1855
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1863
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
1856
1864
|
|
|
1857
1865
|
const id = useId(originalId);
|
|
1858
1866
|
const hintId = useId();
|
|
@@ -1912,7 +1920,7 @@ const SwitchField = /*#__PURE__*/React.forwardRef(function SwitchField(_ref, ref
|
|
|
1912
1920
|
|
|
1913
1921
|
var modules_2728c236 = {"textAreaContainer":"_21dbfa84","innerContainer":"_43588660","bordered":"f081b428","error":"a862f0e5","autoExpand":"_46360b15"};
|
|
1914
1922
|
|
|
1915
|
-
const _excluded$
|
|
1923
|
+
const _excluded$l = ["variant", "id", "label", "secondaryLabel", "auxiliaryLabel", "hint", "message", "tone", "maxWidth", "hidden", "aria-describedby", "rows", "autoExpand"];
|
|
1916
1924
|
const TextArea = /*#__PURE__*/React.forwardRef(function TextArea(_ref, ref) {
|
|
1917
1925
|
let {
|
|
1918
1926
|
variant = 'default',
|
|
@@ -1929,7 +1937,7 @@ const TextArea = /*#__PURE__*/React.forwardRef(function TextArea(_ref, ref) {
|
|
|
1929
1937
|
rows,
|
|
1930
1938
|
autoExpand = false
|
|
1931
1939
|
} = _ref,
|
|
1932
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1940
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
1933
1941
|
|
|
1934
1942
|
const containerRef = React.useRef(null);
|
|
1935
1943
|
const internalRef = React.useRef(null);
|
|
@@ -1973,7 +1981,7 @@ const TextArea = /*#__PURE__*/React.forwardRef(function TextArea(_ref, ref) {
|
|
|
1973
1981
|
}))));
|
|
1974
1982
|
});
|
|
1975
1983
|
|
|
1976
|
-
const _excluded$
|
|
1984
|
+
const _excluded$m = ["variant", "id", "label", "secondaryLabel", "auxiliaryLabel", "hint", "message", "tone", "type", "maxWidth", "hidden", "aria-describedby", "startIcon"];
|
|
1977
1985
|
const TextField = /*#__PURE__*/React.forwardRef(function TextField(_ref, ref) {
|
|
1978
1986
|
let {
|
|
1979
1987
|
variant = 'default',
|
|
@@ -1990,7 +1998,7 @@ const TextField = /*#__PURE__*/React.forwardRef(function TextField(_ref, ref) {
|
|
|
1990
1998
|
'aria-describedby': ariaDescribedBy,
|
|
1991
1999
|
startIcon
|
|
1992
2000
|
} = _ref,
|
|
1993
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2001
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
1994
2002
|
|
|
1995
2003
|
const internalRef = React.useRef(null);
|
|
1996
2004
|
const combinedRef = useCallbackRef.useMergeRefs([ref, internalRef]);
|
|
@@ -2059,7 +2067,7 @@ function emailToIndex(email, maxIndex) {
|
|
|
2059
2067
|
|
|
2060
2068
|
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"};
|
|
2061
2069
|
|
|
2062
|
-
const _excluded$
|
|
2070
|
+
const _excluded$n = ["user", "avatarUrl", "size", "className", "colorList", "exceptionallySetClassName"];
|
|
2063
2071
|
const AVATAR_COLORS = ['#fcc652', '#e9952c', '#e16b2d', '#d84b40', '#e8435a', '#e5198a', '#ad3889', '#86389c', '#a8a8a8', '#98be2f', '#5d9d50', '#5f9f85', '#5bbcb6', '#32a3bf', '#2bafeb', '#2d88c3', '#3863cc', '#5e5e5e'];
|
|
2064
2072
|
|
|
2065
2073
|
function Avatar(_ref) {
|
|
@@ -2071,7 +2079,7 @@ function Avatar(_ref) {
|
|
|
2071
2079
|
colorList = AVATAR_COLORS,
|
|
2072
2080
|
exceptionallySetClassName
|
|
2073
2081
|
} = _ref,
|
|
2074
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2082
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
2075
2083
|
|
|
2076
2084
|
const userInitials = getInitials(user.name) || getInitials(user.email);
|
|
2077
2085
|
const avatarSize = size ? size : 'l';
|
|
@@ -2093,14 +2101,14 @@ Avatar.displayName = 'Avatar';
|
|
|
2093
2101
|
|
|
2094
2102
|
var modules_33c7c985 = {"badge":"_1eb9b834","badge-neutral":"e02d9b99","badge-positive":"_0243fb89","badge-color":"_85c0ffa3"};
|
|
2095
2103
|
|
|
2096
|
-
const _excluded$
|
|
2104
|
+
const _excluded$o = ["variant", "children", "exceptionallySetClassName"];
|
|
2097
2105
|
const Badge = /*#__PURE__*/polymorphicComponent(function Badge(_ref, ref) {
|
|
2098
2106
|
let {
|
|
2099
2107
|
variant = 'neutral',
|
|
2100
2108
|
children,
|
|
2101
2109
|
exceptionallySetClassName
|
|
2102
2110
|
} = _ref,
|
|
2103
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
2111
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
2104
2112
|
|
|
2105
2113
|
return /*#__PURE__*/React.createElement(Box, _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
2106
2114
|
ref: ref,
|
|
@@ -2111,7 +2119,7 @@ const Badge = /*#__PURE__*/polymorphicComponent(function Badge(_ref, ref) {
|
|
|
2111
2119
|
|
|
2112
2120
|
var modules_8f59d13b = {"overlay":"_868392ae","fadein":"_63d7ee15","fitContent":"b8548bf2","container":"_31956461","full":"_1007df83","large":"_10c275aa","medium":"_0ac526b4","small":"_30f38fdb","xlarge":"_54868e8b","expand":"c0bc68bc","buttonContainer":"_6527332a","headerContent":"_4750dc1b"};
|
|
2113
2121
|
|
|
2114
|
-
const _excluded$
|
|
2122
|
+
const _excluded$p = ["isOpen", "onDismiss", "height", "width", "exceptionallySetClassName", "exceptionallySetOverlayClassName", "autoFocus", "hideOnEscape", "hideOnInteractOutside", "children", "portalElement"],
|
|
2115
2123
|
_excluded2$1 = ["children", "button", "withDivider", "exceptionallySetClassName"],
|
|
2116
2124
|
_excluded3 = ["exceptionallySetClassName", "children"],
|
|
2117
2125
|
_excluded4 = ["exceptionallySetClassName", "withDivider"],
|
|
@@ -2149,7 +2157,7 @@ function Modal(_ref) {
|
|
|
2149
2157
|
children,
|
|
2150
2158
|
portalElement
|
|
2151
2159
|
} = _ref,
|
|
2152
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2160
|
+
props = _objectWithoutProperties(_ref, _excluded$p);
|
|
2153
2161
|
|
|
2154
2162
|
const setVisible = React.useCallback(visible => {
|
|
2155
2163
|
if (!visible) {
|
|
@@ -2400,7 +2408,7 @@ function usePrevious(value) {
|
|
|
2400
2408
|
|
|
2401
2409
|
var modules_40c67f5b = {"tab":"e96bf360","track":"_430e252d","tab-neutral":"f631ccbe","tab-themed":"_6ba96acc","track-neutral":"ef4cd8d3","track-themed":"_344b3b10"};
|
|
2402
2410
|
|
|
2403
|
-
const _excluded$
|
|
2411
|
+
const _excluded$q = ["as", "children", "id", "exceptionallySetClassName"],
|
|
2404
2412
|
_excluded2$2 = ["children", "space"],
|
|
2405
2413
|
_excluded3$1 = ["children", "id", "as", "render"];
|
|
2406
2414
|
const TabsContext = /*#__PURE__*/React.createContext(null);
|
|
@@ -2451,7 +2459,7 @@ const Tab = /*#__PURE__*/polymorphicComponent(function Tab(_ref, ref) {
|
|
|
2451
2459
|
id,
|
|
2452
2460
|
exceptionallySetClassName
|
|
2453
2461
|
} = _ref,
|
|
2454
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2462
|
+
props = _objectWithoutProperties(_ref, _excluded$q);
|
|
2455
2463
|
|
|
2456
2464
|
const tabContextValue = React.useContext(TabsContext);
|
|
2457
2465
|
|
|
@@ -2561,7 +2569,7 @@ function TabAwareSlot({
|
|
|
2561
2569
|
}) : null;
|
|
2562
2570
|
}
|
|
2563
2571
|
|
|
2564
|
-
const _excluded$
|
|
2572
|
+
const _excluded$r = ["type", "variant", "size", "loading", "disabled", "tooltip", "onClick", "children"];
|
|
2565
2573
|
/**
|
|
2566
2574
|
* @deprecated
|
|
2567
2575
|
*/
|
|
@@ -2577,7 +2585,7 @@ const Button$1 = /*#__PURE__*/React.forwardRef(function Button(_ref, ref) {
|
|
|
2577
2585
|
onClick,
|
|
2578
2586
|
children
|
|
2579
2587
|
} = _ref,
|
|
2580
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2588
|
+
props = _objectWithoutProperties(_ref, _excluded$r);
|
|
2581
2589
|
|
|
2582
2590
|
const className = classNames('reactist_button', variant ? "reactist_button--" + variant : null, size !== 'default' ? "reactist_button--" + size : null, {
|
|
2583
2591
|
'reactist_button--loading': loading
|
|
@@ -2600,7 +2608,7 @@ Button$1.defaultProps = {
|
|
|
2600
2608
|
disabled: false
|
|
2601
2609
|
};
|
|
2602
2610
|
|
|
2603
|
-
const _excluded$
|
|
2611
|
+
const _excluded$s = ["children", "onClick", "tooltip", "className"];
|
|
2604
2612
|
|
|
2605
2613
|
class Box$1 extends React.Component {
|
|
2606
2614
|
constructor(props, context) {
|
|
@@ -2753,7 +2761,7 @@ const Trigger = /*#__PURE__*/React.forwardRef(function Trigger(_ref, ref) {
|
|
|
2753
2761
|
tooltip,
|
|
2754
2762
|
className
|
|
2755
2763
|
} = _ref,
|
|
2756
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2764
|
+
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
2757
2765
|
|
|
2758
2766
|
function handleClick(event) {
|
|
2759
2767
|
event.preventDefault();
|
|
@@ -2880,7 +2888,7 @@ function ColorItem({
|
|
|
2880
2888
|
|
|
2881
2889
|
ColorItem.displayName = 'ColorItem';
|
|
2882
2890
|
|
|
2883
|
-
const _excluded$
|
|
2891
|
+
const _excluded$t = ["children", "className", "translateKey", "isMac"];
|
|
2884
2892
|
// Support for setting up how to translate modifiers globally.
|
|
2885
2893
|
//
|
|
2886
2894
|
|
|
@@ -2962,7 +2970,7 @@ function KeyboardShortcut(_ref) {
|
|
|
2962
2970
|
translateKey = globalTranslateKey,
|
|
2963
2971
|
isMac = (_navigator$platform$t = (_navigator$platform = navigator.platform) == null ? void 0 : _navigator$platform.toUpperCase().includes('MAC')) != null ? _navigator$platform$t : false
|
|
2964
2972
|
} = _ref,
|
|
2965
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2973
|
+
props = _objectWithoutProperties(_ref, _excluded$t);
|
|
2966
2974
|
|
|
2967
2975
|
const shortcuts = typeof children === 'string' ? [children] : children;
|
|
2968
2976
|
return /*#__PURE__*/React.createElement("span", _objectSpread2({
|
|
@@ -3368,7 +3376,7 @@ Time.defaultProps = {
|
|
|
3368
3376
|
}
|
|
3369
3377
|
};
|
|
3370
3378
|
|
|
3371
|
-
const _excluded$
|
|
3379
|
+
const _excluded$u = ["children", "onItemSelect"],
|
|
3372
3380
|
_excluded2$3 = ["exceptionallySetClassName"],
|
|
3373
3381
|
_excluded3$2 = ["as"],
|
|
3374
3382
|
_excluded4$1 = ["exceptionallySetClassName"],
|
|
@@ -3391,7 +3399,7 @@ function Menu(_ref) {
|
|
|
3391
3399
|
children,
|
|
3392
3400
|
onItemSelect
|
|
3393
3401
|
} = _ref,
|
|
3394
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3402
|
+
props = _objectWithoutProperties(_ref, _excluded$u);
|
|
3395
3403
|
|
|
3396
3404
|
const [anchorRect, handleAnchorRectChange] = React.useState(null);
|
|
3397
3405
|
const getAnchorRect = React.useMemo(() => {
|
|
@@ -3612,7 +3620,7 @@ const Input = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
3612
3620
|
});
|
|
3613
3621
|
Input.displayName = 'Input';
|
|
3614
3622
|
|
|
3615
|
-
const _excluded$
|
|
3623
|
+
const _excluded$v = ["value", "options", "onChange", "disabled", "className", "defaultValue"];
|
|
3616
3624
|
|
|
3617
3625
|
function Select(_ref) {
|
|
3618
3626
|
let {
|
|
@@ -3623,7 +3631,7 @@ function Select(_ref) {
|
|
|
3623
3631
|
className = '',
|
|
3624
3632
|
defaultValue
|
|
3625
3633
|
} = _ref,
|
|
3626
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
3634
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$v);
|
|
3627
3635
|
|
|
3628
3636
|
const selectClassName = classNames('reactist_select', {
|
|
3629
3637
|
disabled
|
|
@@ -3657,7 +3665,7 @@ const CloseIcon$1 = () => /*#__PURE__*/React.createElement("svg", {
|
|
|
3657
3665
|
d: "M11.293 12L5.146 5.854a.5.5 0 1 1 .708-.708L12 11.293l6.146-6.147a.5.5 0 0 1 .708.708L12.707 12l6.147 6.146a.5.5 0 0 1-.708.708L12 12.707l-6.146 6.147a.5.5 0 0 1-.708-.708L11.293 12z"
|
|
3658
3666
|
}));
|
|
3659
3667
|
|
|
3660
|
-
const _excluded$
|
|
3668
|
+
const _excluded$w = ["id", "icon", "title", "subtitle", "children", "customCloseButton", "onClick", "onClose", "closeAltText", "className", "aria-live"];
|
|
3661
3669
|
|
|
3662
3670
|
function DeprecatedNotification(_ref) {
|
|
3663
3671
|
let {
|
|
@@ -3673,7 +3681,7 @@ function DeprecatedNotification(_ref) {
|
|
|
3673
3681
|
className,
|
|
3674
3682
|
'aria-live': ariaLive = 'polite'
|
|
3675
3683
|
} = _ref,
|
|
3676
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
3684
|
+
rest = _objectWithoutProperties(_ref, _excluded$w);
|
|
3677
3685
|
|
|
3678
3686
|
const titleId = title ? id + "-title" : null;
|
|
3679
3687
|
const titleIdAttribute = titleId ? {
|
|
@@ -3725,7 +3733,7 @@ function DeprecatedNotification(_ref) {
|
|
|
3725
3733
|
|
|
3726
3734
|
var modules_8f59d13b$1 = {"reach-portal":"_37bef8d8","fadein":"_77f9687f","fitContent":"bcc4e0a5","container":"d4832c2d","full":"b0c3b021","large":"_573d6aa5","medium":"_8550d996","small":"_43bb18f5","xlarge":"_57b4159d","overlay":"cb63f300","expand":"e741893e","buttonContainer":"bb1ce281","headerContent":"c5ef989c"};
|
|
3727
3735
|
|
|
3728
|
-
const _excluded$
|
|
3736
|
+
const _excluded$x = ["isOpen", "onDismiss", "height", "width", "exceptionallySetClassName", "autoFocus", "children"],
|
|
3729
3737
|
_excluded2$4 = ["children", "button", "withDivider", "exceptionallySetClassName"],
|
|
3730
3738
|
_excluded3$3 = ["exceptionallySetClassName", "children"],
|
|
3731
3739
|
_excluded4$2 = ["exceptionallySetClassName", "withDivider"],
|
|
@@ -3760,7 +3768,7 @@ function DeprecatedModal(_ref) {
|
|
|
3760
3768
|
autoFocus = true,
|
|
3761
3769
|
children
|
|
3762
3770
|
} = _ref,
|
|
3763
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3771
|
+
props = _objectWithoutProperties(_ref, _excluded$x);
|
|
3764
3772
|
|
|
3765
3773
|
const contextValue = React.useMemo(() => ({
|
|
3766
3774
|
onDismiss,
|