@doist/reactist 10.0.0-beta.4 → 10.0.0-beta.8
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 +88 -86
- 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/menu/menu.js.map +1 -1
- package/es/new-components/base-button/base-button.js +13 -7
- package/es/new-components/base-button/base-button.js.map +1 -1
- package/es/new-components/base-button/base-button.module.css.js +1 -1
- package/es/new-components/box/box.js.map +1 -1
- package/es/new-components/box/box.module.css.js +1 -1
- package/es/new-components/button/button.js.map +1 -1
- package/es/new-components/button-link/button-link.js +1 -4
- package/es/new-components/button-link/button-link.js.map +1 -1
- package/es/new-components/checkbox-field/checkbox-field.js +2 -1
- package/es/new-components/checkbox-field/checkbox-field.js.map +1 -1
- package/es/new-components/columns/columns.module.css.js +1 -1
- package/es/new-components/divider/divider.js +2 -2
- package/es/new-components/divider/divider.js.map +1 -1
- package/es/new-components/divider/divider.module.css.js +1 -1
- package/es/new-components/loading/loading.js +4 -17
- package/es/new-components/loading/loading.js.map +1 -1
- package/es/new-components/modal/modal.js +32 -39
- package/es/new-components/modal/modal.js.map +1 -1
- package/es/new-components/modal/modal.module.css.js +1 -1
- package/es/new-components/select-field/select-field.module.css.js +1 -1
- package/es/new-components/spinner/spinner.js +26 -0
- package/es/new-components/spinner/spinner.js.map +1 -0
- package/es/new-components/spinner/spinner.module.css.js +4 -0
- package/es/new-components/spinner/spinner.module.css.js.map +1 -0
- package/es/new-components/stack/stack.js +6 -6
- package/es/new-components/stack/stack.js.map +1 -1
- package/es/new-components/switch-field/switch-field.js +3 -2
- package/es/new-components/switch-field/switch-field.js.map +1 -1
- package/es/new-components/text-area/text-area.module.css.js +1 -1
- package/es/new-components/text-field/text-field.module.css.js +1 -1
- package/lib/components/menu/menu.d.ts +5 -9
- package/lib/components/menu/menu.js.map +1 -1
- package/lib/new-components/base-button/base-button.d.ts +13 -4
- 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/base-button/base-button.module.css.js +1 -1
- package/lib/new-components/box/box.d.ts +2 -2
- package/lib/new-components/box/box.js.map +1 -1
- package/lib/new-components/box/box.module.css.js +1 -1
- package/lib/new-components/button/button.d.ts +5 -4
- package/lib/new-components/button/button.js.map +1 -1
- package/lib/new-components/button-link/button-link.d.ts +3 -4
- package/lib/new-components/button-link/button-link.js +1 -1
- package/lib/new-components/button-link/button-link.js.map +1 -1
- package/lib/new-components/checkbox-field/checkbox-field.js +1 -1
- package/lib/new-components/checkbox-field/checkbox-field.js.map +1 -1
- package/lib/new-components/columns/columns.module.css.js +1 -1
- package/lib/new-components/common-types.d.ts +1 -0
- package/lib/new-components/divider/divider.d.ts +2 -2
- package/lib/new-components/divider/divider.js +1 -1
- package/lib/new-components/divider/divider.js.map +1 -1
- package/lib/new-components/divider/divider.module.css.js +1 -1
- package/lib/new-components/loading/loading.js +1 -1
- package/lib/new-components/loading/loading.js.map +1 -1
- package/lib/new-components/modal/modal-stories-components.d.ts +1 -1
- package/lib/new-components/modal/modal.d.ts +15 -15
- package/lib/new-components/modal/modal.js +1 -1
- package/lib/new-components/modal/modal.js.map +1 -1
- package/lib/new-components/modal/modal.module.css.js +1 -1
- package/lib/new-components/select-field/select-field.module.css.js +1 -1
- package/lib/new-components/spinner/index.d.ts +1 -0
- package/lib/new-components/spinner/spinner.d.ts +5 -0
- package/lib/new-components/spinner/spinner.js +2 -0
- package/lib/new-components/spinner/spinner.js.map +1 -0
- package/lib/new-components/spinner/spinner.module.css.js +2 -0
- package/lib/new-components/spinner/spinner.module.css.js.map +1 -0
- package/lib/new-components/stack/stack.d.ts +5 -5
- package/lib/new-components/stack/stack.js +1 -1
- package/lib/new-components/stack/stack.js.map +1 -1
- package/lib/new-components/switch-field/switch-field.js +1 -1
- package/lib/new-components/switch-field/switch-field.js.map +1 -1
- package/lib/new-components/text-area/text-area.module.css.js +1 -1
- package/lib/new-components/text-field/text-field.module.css.js +1 -1
- package/package.json +1 -1
- package/styles/alert.css +2 -2
- package/styles/base-button.css +3 -2
- package/styles/base-button.module.css.css +1 -1
- package/styles/base-field.css +2 -2
- package/styles/box.css +1 -1
- package/styles/box.module.css.css +1 -1
- package/styles/checkbox-field.css +2 -1
- package/styles/columns.css +2 -2
- package/styles/columns.module.css.css +1 -1
- package/styles/divider.css +2 -2
- package/styles/divider.module.css.css +1 -1
- package/styles/heading.css +1 -1
- package/styles/hidden-visually.css +1 -1
- package/styles/hidden.css +1 -1
- package/styles/inline.css +1 -1
- package/styles/loading.css +2 -2
- package/styles/modal.css +7 -4
- package/styles/modal.module.css.css +1 -1
- package/styles/notice.css +2 -2
- package/styles/password-field.css +3 -3
- package/styles/reactist.css +10 -10
- package/styles/select-field.css +3 -3
- package/styles/select-field.module.css.css +1 -1
- package/styles/spinner.module.css.css +1 -0
- package/styles/stack.css +2 -2
- package/styles/switch-field.css +3 -3
- package/styles/tabs.css +1 -1
- package/styles/text-area.css +3 -3
- package/styles/text-area.module.css.css +1 -1
- package/styles/text-field.css +3 -3
- package/styles/text-field.module.css.css +1 -1
- package/styles/text-link.css +1 -1
- package/styles/text.css +1 -1
- package/es/new-components/loading/loading.module.css.js +0 -4
- package/es/new-components/loading/loading.module.css.js.map +0 -1
- package/lib/new-components/loading/loading.module.css.js +0 -2
- package/lib/new-components/loading/loading.module.css.js.map +0 -1
- package/styles/loading.module.css.css +0 -1
|
@@ -183,7 +183,7 @@ function mapResponsiveProp(fromValue, mapper) {
|
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
var modules_54d944f2 = {"box":"
|
|
186
|
+
var modules_54d944f2 = {"box":"_26c5201d","position-absolute":"_77c3d8d1","position-fixed":"_37cb98fb","position-relative":"df16028f","position-sticky":"_4205abac","tablet-position-absolute":"d6993b5e","tablet-position-fixed":"a015e0f5","tablet-position-relative":"_236dd3b1","tablet-position-sticky":"b7ac4837","desktop-position-absolute":"fd93a726","desktop-position-fixed":"_49228edc","desktop-position-relative":"d972b518","desktop-position-sticky":"b2a2baf3","display-block":"_22f1edd1","display-flex":"c23d2d6f","display-inline":"_5359896d","display-inlineBlock":"a54a41a6","display-inlineFlex":"d02f3d43","display-none":"_760c0710","tablet-display-block":"_64e2ebe6","tablet-display-flex":"_25274f78","tablet-display-inline":"_2077d063","tablet-display-inlineBlock":"aaed581f","tablet-display-inlineFlex":"_1d4a6eb5","tablet-display-none":"_66f24c78","desktop-display-block":"_145cca89","desktop-display-flex":"_1861c899","desktop-display-inline":"_96a720c8","desktop-display-inlineBlock":"_56acf5d5","desktop-display-inlineFlex":"_2a268e4b","desktop-display-none":"b4f30b9e","minWidth-0":"_0b071847","minWidth-xsmall":"_8b67f007","minWidth-small":"e3ec3474","minWidth-medium":"_5cccd4fc","minWidth-large":"_06eeac65","minWidth-xlarge":"ee1b6344","maxWidth-xsmall":"_2df097d0","maxWidth-small":"b771df2a","maxWidth-medium":"_00ad4e35","maxWidth-large":"_4a848dab","maxWidth-xlarge":"bf216b15","maxWidth-full":"a60a7855","flexDirection-column":"_4cf1b6c9","flexDirection-row":"e056fa5a","tablet-flexDirection-column":"b9aa8d99","tablet-flexDirection-row":"_2e8b3442","desktop-flexDirection-column":"_2162c612","desktop-flexDirection-row":"_279bf1e4","flexWrap-wrap":"_346d3a71","flexWrap-nowrap":"_786fd122","flexShrink-0":"_4b864fc2","flexGrow-0":"_795f552f","flexGrow-1":"a68bcd0f","alignItems-flexStart":"_34e24973","alignItems-center":"_648380f4","alignItems-flexEnd":"_18b4e1d6","alignItems-baseline":"_805c1b65","tablet-alignItems-flexStart":"fd4006c2","tablet-alignItems-center":"c3ba10a7","tablet-alignItems-flexEnd":"_984cd304","tablet-alignItems-baseline":"_696cc167","desktop-alignItems-flexStart":"_74133d54","desktop-alignItems-center":"_92ab46df","desktop-alignItems-flexEnd":"_177026d9","desktop-alignItems-baseline":"ebd2f31f","justifyContent-flexStart":"_4969235b","justifyContent-center":"_9594db58","justifyContent-flexEnd":"_6789fdd3","justifyContent-spaceAround":"b9902d94","justifyContent-spaceBetween":"_3c3ae41b","justifyContent-spaceEvenly":"_8dce8767","tablet-justifyContent-flexStart":"_6bd82354","tablet-justifyContent-center":"_3044c29a","tablet-justifyContent-flexEnd":"_13da8745","tablet-justifyContent-spaceAround":"_981fa9c8","tablet-justifyContent-spaceBetween":"d34811a6","tablet-justifyContent-spaceEvenly":"_53e07124","desktop-justifyContent-flexStart":"e709f277","desktop-justifyContent-center":"abc87cc4","desktop-justifyContent-flexEnd":"ce410292","desktop-justifyContent-spaceBetween":"_5ab1bc04","overflow-hidden":"_11a684c0","overflow-auto":"_2c024f85","overflow-visible":"_4d4892bd","overflow-scroll":"_22ffbb40","width-full":"_330d9b0b","height-full":"fb8deb05","bg-default":"_133f5c00","bg-aside":"b2be7ffe","bg-highlight":"a45e67ff","bg-selected":"b90226b5","borderRadius-standard":"_6e988219","borderRadius-full":"_14cf204e","border-primary":"a710cfdd","border-secondary":"_52263feb","border-tertiary":"_546ec3ef","textAlign-start":"_7fa90cb9","textAlign-center":"_54c80396","textAlign-end":"e4b1ea49","textAlign-justify":"_0eecd510","tablet-textAlign-start":"a309e75d","tablet-textAlign-center":"_67fb1a07","tablet-textAlign-end":"_0fa851ec","tablet-textAlign-justify":"_585a0e34","desktop-textAlign-start":"_5f909690","desktop-textAlign-center":"_13e03993","desktop-textAlign-end":"f142a1cb","desktop-textAlign-justify":"_2bba79a9"};
|
|
187
187
|
|
|
188
188
|
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"};
|
|
189
189
|
|
|
@@ -251,7 +251,7 @@ var Box = /*#__PURE__*/polymorphicComponent(function Box(_ref, ref) {
|
|
|
251
251
|
}), children);
|
|
252
252
|
});
|
|
253
253
|
|
|
254
|
-
var modules_67f2d07a = {"space-xsmall":"
|
|
254
|
+
var modules_67f2d07a = {"space-xsmall":"_6f59c771","column":"_91e05f0f","space-small":"_5a55af26","space-medium":"fa261310","space-large":"_6ebd4e46","space-xlarge":"_55ce4aea","space-xxlarge":"_04c9c3ac","tablet-space-xsmall":"ab76d8cd","tablet-space-small":"_14629bfb","tablet-space-medium":"_5b4e39ea","tablet-space-large":"ba270182","tablet-space-xlarge":"b96e7ec7","tablet-space-xxlarge":"d276612c","desktop-space-xsmall":"d7a73106","desktop-space-small":"_8f5e0e9e","desktop-space-medium":"_3a168411","desktop-space-large":"_0abcc12e","desktop-space-xlarge":"e0bafc60","desktop-space-xxlarge":"d2df9afd","columnWidth-auto":"b18d0b47","columnWidth-1-2":"_102a6b27","columnWidth-1-3":"_829872fe","columnWidth-2-3":"cf5aef9a","columnWidth-1-4":"_931bf714","columnWidth-3-4":"b0303130","columnWidth-1-5":"f6589a6f","columnWidth-2-5":"_2823aed9","columnWidth-3-5":"d00ba3bb","columnWidth-4-5":"_338f2d7c","tablet-tablet-space-xsmall":"_06582234"};
|
|
255
255
|
|
|
256
256
|
var Column = /*#__PURE__*/polymorphicComponent(function Column(_ref, ref) {
|
|
257
257
|
var _ref$width = _ref.width,
|
|
@@ -301,16 +301,16 @@ var Columns = /*#__PURE__*/polymorphicComponent(function Columns(_ref2, ref) {
|
|
|
301
301
|
}), children);
|
|
302
302
|
});
|
|
303
303
|
|
|
304
|
-
var modules_c742c4d7 = {"
|
|
304
|
+
var modules_c742c4d7 = {"weight-primary":"_3f3a401c","weight-secondary":"_03b05b70","weight-tertiary":"b6f67ff8"};
|
|
305
305
|
|
|
306
306
|
function Divider(_ref) {
|
|
307
307
|
var _ref$weight = _ref.weight,
|
|
308
|
-
weight = _ref$weight === void 0 ? '
|
|
308
|
+
weight = _ref$weight === void 0 ? 'primary' : _ref$weight,
|
|
309
309
|
props = _objectWithoutPropertiesLoose(_ref, ["weight"]);
|
|
310
310
|
|
|
311
311
|
return /*#__PURE__*/React.createElement(Box, Object.assign({
|
|
312
312
|
as: "hr",
|
|
313
|
-
className:
|
|
313
|
+
className: getClassNames(modules_c742c4d7, 'weight', weight)
|
|
314
314
|
}, props));
|
|
315
315
|
}
|
|
316
316
|
|
|
@@ -348,28 +348,28 @@ var Stack = /*#__PURE__*/polymorphicComponent(function Stack(_ref, ref) {
|
|
|
348
348
|
var as = _ref.as,
|
|
349
349
|
space = _ref.space,
|
|
350
350
|
_ref$align = _ref.align,
|
|
351
|
-
align = _ref$align === void 0 ? '
|
|
351
|
+
align = _ref$align === void 0 ? 'start' : _ref$align,
|
|
352
352
|
_ref$dividers = _ref.dividers,
|
|
353
|
-
dividers = _ref$dividers === void 0 ?
|
|
353
|
+
dividers = _ref$dividers === void 0 ? 'none' : _ref$dividers,
|
|
354
354
|
children = _ref.children,
|
|
355
355
|
exceptionallySetClassName = _ref.exceptionallySetClassName,
|
|
356
356
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "space", "align", "dividers", "children", "exceptionallySetClassName"]);
|
|
357
357
|
|
|
358
|
-
var alignProps = align === '
|
|
358
|
+
var alignProps = align === 'start' ? undefined : {
|
|
359
359
|
width: 'full',
|
|
360
360
|
flexDirection: 'column',
|
|
361
361
|
display: 'flex',
|
|
362
362
|
alignItems: mapResponsiveProp(align, function (align) {
|
|
363
|
-
return align === '
|
|
363
|
+
return align === 'start' ? 'flexStart' : align === 'end' ? 'flexEnd' : 'center';
|
|
364
364
|
})
|
|
365
365
|
};
|
|
366
366
|
return /*#__PURE__*/React.createElement(Box, Object.assign({}, props, alignProps, {
|
|
367
367
|
as: as,
|
|
368
368
|
className: [exceptionallySetClassName, getClassNames(modules_3af3b7ac, 'space', space)],
|
|
369
369
|
ref: ref
|
|
370
|
-
}), dividers ? React.Children.map(flattenChildren(children), function (child, index) {
|
|
370
|
+
}), dividers !== 'none' ? React.Children.map(flattenChildren(children), function (child, index) {
|
|
371
371
|
return index > 0 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Divider, {
|
|
372
|
-
weight:
|
|
372
|
+
weight: dividers
|
|
373
373
|
}), child) : child;
|
|
374
374
|
}) : children);
|
|
375
375
|
});
|
|
@@ -551,7 +551,28 @@ function Alert(_ref) {
|
|
|
551
551
|
}, /*#__PURE__*/React.createElement(CloseIcon, null))) : null));
|
|
552
552
|
}
|
|
553
553
|
|
|
554
|
-
var
|
|
554
|
+
var modules_c7f5018f = {"svg":"_51539197","spinner":"_54fbe2b3","tint":"a0c466ed","fill":"_745b73d3"};
|
|
555
|
+
|
|
556
|
+
function Spinner(_ref) {
|
|
557
|
+
var _ref$size = _ref.size,
|
|
558
|
+
size = _ref$size === void 0 ? 24 : _ref$size;
|
|
559
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
560
|
+
"aria-hidden": true,
|
|
561
|
+
width: size,
|
|
562
|
+
height: size,
|
|
563
|
+
viewBox: "0 0 24 24",
|
|
564
|
+
className: modules_c7f5018f.svg
|
|
565
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
566
|
+
fill: "none",
|
|
567
|
+
fillRule: "nonzero"
|
|
568
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
569
|
+
className: modules_c7f5018f.tint,
|
|
570
|
+
d: "M17.945 3.958A9.955 9.955 0 0 0 12 2c-2.19 0-4.217.705-5.865 1.9L5.131 2.16A11.945 11.945 0 0 1 12 0c2.59 0 4.99.82 6.95 2.217l-1.005 1.741z"
|
|
571
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
572
|
+
className: modules_c7f5018f.fill,
|
|
573
|
+
d: "M5.13 2.16L6.136 3.9A9.987 9.987 0 0 0 2 12c0 5.523 4.477 10 10 10s10-4.477 10-10a9.986 9.986 0 0 0-4.055-8.042l1.006-1.741A11.985 11.985 0 0 1 24 12c0 6.627-5.373 12-12 12S0 18.627 0 12c0-4.073 2.029-7.671 5.13-9.84z"
|
|
574
|
+
})));
|
|
575
|
+
}
|
|
555
576
|
|
|
556
577
|
var sizeMapping = {
|
|
557
578
|
small: 24,
|
|
@@ -574,22 +595,9 @@ function Loading(_ref) {
|
|
|
574
595
|
alignItems: "center",
|
|
575
596
|
justifyContent: "center",
|
|
576
597
|
role: "progressbar"
|
|
577
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
height: numericSize,
|
|
581
|
-
viewBox: "0 0 24 24",
|
|
582
|
-
className: modules_c802dd57.svg
|
|
583
|
-
}, /*#__PURE__*/React__default.createElement("g", {
|
|
584
|
-
fill: "none",
|
|
585
|
-
fillRule: "nonzero"
|
|
586
|
-
}, /*#__PURE__*/React__default.createElement("path", {
|
|
587
|
-
className: modules_c802dd57.spinner,
|
|
588
|
-
d: "M17.945 3.958A9.955 9.955 0 0 0 12 2c-2.19 0-4.217.705-5.865 1.9L5.131 2.16A11.945 11.945 0 0 1 12 0c2.59 0 4.99.82 6.95 2.217l-1.005 1.741z"
|
|
589
|
-
}), /*#__PURE__*/React__default.createElement("path", {
|
|
590
|
-
className: modules_c802dd57.spinnerBackground,
|
|
591
|
-
d: "M5.13 2.16L6.136 3.9A9.987 9.987 0 0 0 2 12c0 5.523 4.477 10 10 10s10-4.477 10-10a9.986 9.986 0 0 0-4.055-8.042l1.006-1.741A11.985 11.985 0 0 1 24 12c0 6.627-5.373 12-12 12S0 18.627 0 12c0-4.073 2.029-7.671 5.13-9.84z"
|
|
592
|
-
}))));
|
|
598
|
+
}), /*#__PURE__*/React__default.createElement(Spinner, {
|
|
599
|
+
size: numericSize
|
|
600
|
+
}));
|
|
593
601
|
}
|
|
594
602
|
|
|
595
603
|
var modules_1b547e7e = {"container":"_464500ae","tone-info":"_1abfe147","tone-positive":"_36ce9859","tone-caution":"f92214b7","tone-critical":"be6cf28e"};
|
|
@@ -782,7 +790,7 @@ function useDelay() {
|
|
|
782
790
|
}, [clearTimeouts]);
|
|
783
791
|
}
|
|
784
792
|
|
|
785
|
-
var modules_b9569bce = {"baseButton":"
|
|
793
|
+
var modules_b9569bce = {"label":"_1f20c88a","baseButton":"_623015f3","size-small":"_062de645","size-normal":"_55e2a6a9","size-large":"cab32a7c","disabled":"e71c191a","iconButton":"_368efc16","startIcon":"d35389c1","endIcon":"_900d41d8","variant-primary":"_7c95e162","variant-secondary":"_9cb889aa","variant-tertiary":"_611b5b28","variant-quaternary":"_80c2bb84","tone-destructive":"ee13c455"};
|
|
786
794
|
|
|
787
795
|
function preventDefault(event) {
|
|
788
796
|
event.preventDefault();
|
|
@@ -808,6 +816,8 @@ var BaseButton = /*#__PURE__*/polymorphicComponent(function BaseButton(_ref, ref
|
|
|
808
816
|
size = _ref$size === void 0 ? 'normal' : _ref$size,
|
|
809
817
|
_ref$disabled = _ref.disabled,
|
|
810
818
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
819
|
+
_ref$loading = _ref.loading,
|
|
820
|
+
loading = _ref$loading === void 0 ? false : _ref$loading,
|
|
811
821
|
tooltip = _ref.tooltip,
|
|
812
822
|
onClick = _ref.onClick,
|
|
813
823
|
exceptionallySetClassName = _ref.exceptionallySetClassName,
|
|
@@ -815,23 +825,26 @@ var BaseButton = /*#__PURE__*/polymorphicComponent(function BaseButton(_ref, ref
|
|
|
815
825
|
startIcon = _ref.startIcon,
|
|
816
826
|
endIcon = _ref.endIcon,
|
|
817
827
|
icon = _ref.icon,
|
|
818
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "variant", "tone", "size", "disabled", "tooltip", "onClick", "exceptionallySetClassName", "children", "startIcon", "endIcon", "icon"]);
|
|
828
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "variant", "tone", "size", "disabled", "loading", "tooltip", "onClick", "exceptionallySetClassName", "children", "startIcon", "endIcon", "icon"]);
|
|
819
829
|
|
|
830
|
+
var isDisabled = loading || disabled;
|
|
820
831
|
var buttonElement = /*#__PURE__*/React.createElement(Box, Object.assign({}, props, {
|
|
821
832
|
as: as,
|
|
822
833
|
ref: ref,
|
|
823
|
-
"aria-disabled":
|
|
824
|
-
onClick:
|
|
825
|
-
className: [exceptionallySetClassName, modules_b9569bce.baseButton, modules_b9569bce["variant-" + variant], modules_b9569bce["tone-" + tone], modules_b9569bce["size-" + size], icon ? modules_b9569bce.iconButton : null]
|
|
826
|
-
}), icon
|
|
834
|
+
"aria-disabled": isDisabled,
|
|
835
|
+
onClick: isDisabled ? preventDefault : onClick,
|
|
836
|
+
className: [exceptionallySetClassName, modules_b9569bce.baseButton, modules_b9569bce["variant-" + variant], modules_b9569bce["tone-" + tone], modules_b9569bce["size-" + size], icon ? modules_b9569bce.iconButton : null, disabled ? modules_b9569bce.disabled : null]
|
|
837
|
+
}), icon ? loading && /*#__PURE__*/React.createElement(Spinner, null) || icon : /*#__PURE__*/React.createElement(React.Fragment, null, startIcon ? /*#__PURE__*/React.createElement(Box, {
|
|
827
838
|
display: "flex",
|
|
828
839
|
className: modules_b9569bce.startIcon,
|
|
829
840
|
"aria-hidden": true
|
|
830
|
-
},
|
|
841
|
+
}, loading && !endIcon ? /*#__PURE__*/React.createElement(Spinner, null) : startIcon) : null, children ? /*#__PURE__*/React.createElement("span", {
|
|
842
|
+
className: modules_b9569bce.label
|
|
843
|
+
}, children) : null, endIcon || loading && !startIcon ? /*#__PURE__*/React.createElement(Box, {
|
|
831
844
|
display: "flex",
|
|
832
845
|
className: modules_b9569bce.endIcon,
|
|
833
846
|
"aria-hidden": true
|
|
834
|
-
}, endIcon) : null)); // If it's an icon-only button, make sure it uses the aria-label as tooltip if no tooltip was provided
|
|
847
|
+
}, loading ? /*#__PURE__*/React.createElement(Spinner, null) : endIcon) : null)); // If it's an icon-only button, make sure it uses the aria-label as tooltip if no tooltip was provided
|
|
835
848
|
|
|
836
849
|
var tooltipContent = icon ? tooltip !== null && tooltip !== void 0 ? tooltip : props['aria-label'] : tooltip;
|
|
837
850
|
return tooltipContent ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
@@ -890,12 +903,10 @@ var ButtonLink = /*#__PURE__*/polymorphicComponent(function ButtonLink(_ref, ref
|
|
|
890
903
|
tone = _ref$tone === void 0 ? 'normal' : _ref$tone,
|
|
891
904
|
_ref$size = _ref.size,
|
|
892
905
|
size = _ref$size === void 0 ? 'normal' : _ref$size,
|
|
893
|
-
_ref$disabled = _ref.disabled,
|
|
894
|
-
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
895
906
|
exceptionallySetClassName = _ref.exceptionallySetClassName,
|
|
896
907
|
_ref$openInNewTab = _ref.openInNewTab,
|
|
897
908
|
openInNewTab = _ref$openInNewTab === void 0 ? false : _ref$openInNewTab,
|
|
898
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "variant", "tone", "size", "
|
|
909
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "variant", "tone", "size", "exceptionallySetClassName", "openInNewTab"]);
|
|
899
910
|
|
|
900
911
|
return /*#__PURE__*/React.createElement(BaseButton, Object.assign({}, props, {
|
|
901
912
|
as: as,
|
|
@@ -903,7 +914,6 @@ var ButtonLink = /*#__PURE__*/polymorphicComponent(function ButtonLink(_ref, ref
|
|
|
903
914
|
variant: variant,
|
|
904
915
|
tone: tone,
|
|
905
916
|
size: size,
|
|
906
|
-
disabled: disabled,
|
|
907
917
|
exceptionallySetClassName: exceptionallySetClassName,
|
|
908
918
|
target: openInNewTab ? '_blank' : undefined,
|
|
909
919
|
rel: openInNewTab ? 'noopener noreferrer' : undefined
|
|
@@ -1044,7 +1054,7 @@ var CheckboxField = /*#__PURE__*/React.forwardRef(function CheckboxField(_ref, r
|
|
|
1044
1054
|
checked: isChecked,
|
|
1045
1055
|
indeterminate: indeterminate,
|
|
1046
1056
|
disabled: disabled
|
|
1047
|
-
}), label ? /*#__PURE__*/React.createElement(
|
|
1057
|
+
}), label ? /*#__PURE__*/React.createElement(Text, null, label) : null);
|
|
1048
1058
|
});
|
|
1049
1059
|
|
|
1050
1060
|
var uid = 0;
|
|
@@ -1170,7 +1180,7 @@ function PasswordHiddenIcon(props) {
|
|
|
1170
1180
|
|
|
1171
1181
|
var modules_3f03ead6 = {"inputWrapper":"_460d581b"};
|
|
1172
1182
|
|
|
1173
|
-
var modules_aaf25250 = {"inputWrapper":"
|
|
1183
|
+
var modules_aaf25250 = {"inputWrapper":"dd9ffeab"};
|
|
1174
1184
|
|
|
1175
1185
|
var PasswordField = /*#__PURE__*/React.forwardRef(function PasswordField(_ref, ref) {
|
|
1176
1186
|
var label = _ref.label,
|
|
@@ -1233,7 +1243,7 @@ var PasswordField = /*#__PURE__*/React.forwardRef(function PasswordField(_ref, r
|
|
|
1233
1243
|
});
|
|
1234
1244
|
});
|
|
1235
1245
|
|
|
1236
|
-
var modules_1fa9b208 = {"selectWrapper":"
|
|
1246
|
+
var modules_1fa9b208 = {"selectWrapper":"_828e09c5"};
|
|
1237
1247
|
|
|
1238
1248
|
var SelectField = /*#__PURE__*/React.forwardRef(function SelectField(_ref, ref) {
|
|
1239
1249
|
var id = _ref.id,
|
|
@@ -1335,14 +1345,14 @@ var SwitchField = /*#__PURE__*/React.forwardRef(function SwitchField(_ref, ref)
|
|
|
1335
1345
|
}
|
|
1336
1346
|
}))), /*#__PURE__*/React.createElement("span", {
|
|
1337
1347
|
className: modules_8e05f7c9.handle
|
|
1338
|
-
})), /*#__PURE__*/React.createElement(
|
|
1339
|
-
|
|
1348
|
+
})), /*#__PURE__*/React.createElement(Text, {
|
|
1349
|
+
exceptionallySetClassName: modules_8e05f7c9.label
|
|
1340
1350
|
}, label)), hint ? /*#__PURE__*/React.createElement(FieldHint, {
|
|
1341
1351
|
id: hintId
|
|
1342
1352
|
}, hint) : null);
|
|
1343
1353
|
});
|
|
1344
1354
|
|
|
1345
|
-
var modules_2728c236 = {"container":"
|
|
1355
|
+
var modules_2728c236 = {"container":"_5a579f96"};
|
|
1346
1356
|
|
|
1347
1357
|
function TextArea(_ref) {
|
|
1348
1358
|
var id = _ref.id,
|
|
@@ -1555,15 +1565,15 @@ function TabAwareSlot(_ref5) {
|
|
|
1555
1565
|
}) : null;
|
|
1556
1566
|
}
|
|
1557
1567
|
|
|
1558
|
-
var modules_8f59d13b = {"reach-portal":"
|
|
1568
|
+
var modules_8f59d13b = {"reach-portal":"_72b0d072","fadein":"_3ef30abf","fitContent":"_99107d2f","container":"badff007","medium":"_3b39110c","small":"fc325d7b","large":"_5751d6d0","overlay":"_0091d9c5","expand":"_52207af6","buttonContainer":"b97b958d"};
|
|
1559
1569
|
|
|
1560
1570
|
var ModalContext = /*#__PURE__*/React.createContext({
|
|
1561
1571
|
onDismiss: undefined,
|
|
1562
1572
|
height: 'fitContent'
|
|
1563
1573
|
});
|
|
1564
1574
|
|
|
1565
|
-
function
|
|
1566
|
-
return element.ownerDocument === document && element.tagName.toLowerCase() === 'iframe';
|
|
1575
|
+
function isNotInternalFrame(element) {
|
|
1576
|
+
return !(element.ownerDocument === document && element.tagName.toLowerCase() === 'iframe');
|
|
1567
1577
|
}
|
|
1568
1578
|
/**
|
|
1569
1579
|
* Renders a modal that sits on top of the rest of the content in the entire page.
|
|
@@ -1604,7 +1614,7 @@ function Modal(_ref) {
|
|
|
1604
1614
|
"data-testid": "modal-overlay"
|
|
1605
1615
|
}, /*#__PURE__*/React.createElement(FocusLock, {
|
|
1606
1616
|
autoFocus: autoFocus,
|
|
1607
|
-
whiteList:
|
|
1617
|
+
whiteList: isNotInternalFrame
|
|
1608
1618
|
}, /*#__PURE__*/React.createElement(dialog.DialogContent, Object.assign({}, props, {
|
|
1609
1619
|
as: Box,
|
|
1610
1620
|
borderRadius: "full",
|
|
@@ -1626,20 +1636,15 @@ function Modal(_ref) {
|
|
|
1626
1636
|
* @see ModalHeader
|
|
1627
1637
|
*/
|
|
1628
1638
|
|
|
1629
|
-
|
|
1630
|
-
function ModalCloseButton(_ref2) {
|
|
1631
|
-
var label = _ref2.label,
|
|
1632
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["label"]);
|
|
1633
|
-
|
|
1639
|
+
function ModalCloseButton(props) {
|
|
1634
1640
|
var _React$useContext = React.useContext(ModalContext),
|
|
1635
1641
|
onDismiss = _React$useContext.onDismiss;
|
|
1636
1642
|
|
|
1637
|
-
return /*#__PURE__*/React.createElement(
|
|
1638
|
-
|
|
1643
|
+
return /*#__PURE__*/React.createElement(Button, Object.assign({}, props, {
|
|
1644
|
+
variant: "quaternary",
|
|
1639
1645
|
onClick: onDismiss,
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
}), /*#__PURE__*/React.createElement(CloseIcon, null));
|
|
1646
|
+
icon: /*#__PURE__*/React.createElement(CloseIcon, null)
|
|
1647
|
+
}));
|
|
1643
1648
|
}
|
|
1644
1649
|
/**
|
|
1645
1650
|
* Renders a standard modal header area with an optional close button.
|
|
@@ -1649,19 +1654,19 @@ function ModalCloseButton(_ref2) {
|
|
|
1649
1654
|
* @see ModalBody
|
|
1650
1655
|
*/
|
|
1651
1656
|
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
props = _objectWithoutPropertiesLoose(_ref3, ["children", "button", "withDivider", "exceptionallySetClassName"]);
|
|
1657
|
+
function ModalHeader(_ref2) {
|
|
1658
|
+
var children = _ref2.children,
|
|
1659
|
+
_ref2$button = _ref2.button,
|
|
1660
|
+
button = _ref2$button === void 0 ? true : _ref2$button,
|
|
1661
|
+
_ref2$withDivider = _ref2.withDivider,
|
|
1662
|
+
withDivider = _ref2$withDivider === void 0 ? false : _ref2$withDivider,
|
|
1663
|
+
exceptionallySetClassName = _ref2.exceptionallySetClassName,
|
|
1664
|
+
props = _objectWithoutPropertiesLoose(_ref2, ["children", "button", "withDivider", "exceptionallySetClassName"]);
|
|
1661
1665
|
|
|
1662
1666
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, Object.assign({}, props, {
|
|
1663
1667
|
as: "header",
|
|
1664
|
-
|
|
1668
|
+
paddingLeft: "large",
|
|
1669
|
+
paddingRight: "small",
|
|
1665
1670
|
paddingY: "small",
|
|
1666
1671
|
className: exceptionallySetClassName
|
|
1667
1672
|
}), /*#__PURE__*/React.createElement(Columns, {
|
|
@@ -1673,7 +1678,7 @@ function ModalHeader(_ref3) {
|
|
|
1673
1678
|
width: "content",
|
|
1674
1679
|
exceptionallySetClassName: modules_8f59d13b.buttonContainer
|
|
1675
1680
|
}, typeof button !== 'boolean' ? button : button === true ? /*#__PURE__*/React.createElement(ModalCloseButton, {
|
|
1676
|
-
label: "Close
|
|
1681
|
+
"aria-label": "Close modal"
|
|
1677
1682
|
}) : null))), withDivider ? /*#__PURE__*/React.createElement(Divider, null) : null);
|
|
1678
1683
|
}
|
|
1679
1684
|
/**
|
|
@@ -1689,11 +1694,10 @@ function ModalHeader(_ref3) {
|
|
|
1689
1694
|
* @see ModalFooter
|
|
1690
1695
|
*/
|
|
1691
1696
|
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
props = _objectWithoutPropertiesLoose(_ref4, ["exceptionallySetClassName", "children"]);
|
|
1697
|
+
function ModalBody(_ref3) {
|
|
1698
|
+
var exceptionallySetClassName = _ref3.exceptionallySetClassName,
|
|
1699
|
+
children = _ref3.children,
|
|
1700
|
+
props = _objectWithoutPropertiesLoose(_ref3, ["exceptionallySetClassName", "children"]);
|
|
1697
1701
|
|
|
1698
1702
|
var _React$useContext2 = React.useContext(ModalContext),
|
|
1699
1703
|
height = _React$useContext2.height;
|
|
@@ -1716,12 +1720,11 @@ function ModalBody(_ref4) {
|
|
|
1716
1720
|
* @see ModalBody
|
|
1717
1721
|
*/
|
|
1718
1722
|
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
props = _objectWithoutPropertiesLoose(_ref5, ["exceptionallySetClassName", "withDivider"]);
|
|
1723
|
+
function ModalFooter(_ref4) {
|
|
1724
|
+
var exceptionallySetClassName = _ref4.exceptionallySetClassName,
|
|
1725
|
+
_ref4$withDivider = _ref4.withDivider,
|
|
1726
|
+
withDivider = _ref4$withDivider === void 0 ? false : _ref4$withDivider,
|
|
1727
|
+
props = _objectWithoutPropertiesLoose(_ref4, ["exceptionallySetClassName", "withDivider"]);
|
|
1725
1728
|
|
|
1726
1729
|
return /*#__PURE__*/React.createElement(React.Fragment, null, withDivider ? /*#__PURE__*/React.createElement(Divider, null) : null, /*#__PURE__*/React.createElement(Box, Object.assign({
|
|
1727
1730
|
as: "footer"
|
|
@@ -1738,10 +1741,9 @@ function ModalFooter(_ref5) {
|
|
|
1738
1741
|
* @see ModalFooter
|
|
1739
1742
|
*/
|
|
1740
1743
|
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
props = _objectWithoutPropertiesLoose(_ref6, ["children"]);
|
|
1744
|
+
function ModalActions(_ref5) {
|
|
1745
|
+
var children = _ref5.children,
|
|
1746
|
+
props = _objectWithoutPropertiesLoose(_ref5, ["children"]);
|
|
1745
1747
|
|
|
1746
1748
|
return /*#__PURE__*/React.createElement(ModalFooter, Object.assign({}, props), /*#__PURE__*/React.createElement(Inline, {
|
|
1747
1749
|
align: "right",
|