@7shifts/sous-chef 3.93.0 → 3.95.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/feedback/MicroBanner/MicroBanner.d.ts +2 -2
- package/dist/feedback/PersistentBanner/constants.d.ts +1 -0
- package/dist/feedback/PersistentBanner/types.d.ts +1 -1
- package/dist/icons/components/IconAwardSolid.d.ts +9 -0
- package/dist/icons/components/IconExclaimTriangleSolid.d.ts +9 -0
- package/dist/icons/components/IconInfoCircleSolid.d.ts +9 -0
- package/dist/icons/components/IconTimesOctagonSolid.d.ts +9 -0
- package/dist/icons/components/index.d.ts +4 -0
- package/dist/index.css +37 -23
- package/dist/index.css.map +1 -1
- package/dist/index.js +155 -33
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +160 -34
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -317,7 +317,7 @@ var kebabize = function kebabize(str) {
|
|
|
317
317
|
});
|
|
318
318
|
};
|
|
319
319
|
|
|
320
|
-
var _excluded$
|
|
320
|
+
var _excluded$e3 = ["m", "margin", "mt", "marginTop", "mr", "marginRight", "mb", "marginBottom", "ml", "marginLeft"];
|
|
321
321
|
var getPositionProps = function getPositionProps(_ref) {
|
|
322
322
|
var m = _ref.m,
|
|
323
323
|
margin = _ref.margin,
|
|
@@ -329,7 +329,7 @@ var getPositionProps = function getPositionProps(_ref) {
|
|
|
329
329
|
marginBottom = _ref.marginBottom,
|
|
330
330
|
ml = _ref.ml,
|
|
331
331
|
marginLeft = _ref.marginLeft,
|
|
332
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
332
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$e3);
|
|
333
333
|
return {
|
|
334
334
|
positionProps: {
|
|
335
335
|
m: m,
|
|
@@ -363,7 +363,7 @@ var getDataProps = function getDataProps(props, config) {
|
|
|
363
363
|
});
|
|
364
364
|
};
|
|
365
365
|
|
|
366
|
-
var _excluded$
|
|
366
|
+
var _excluded$e2 = ["children", "space", "flex", "alignItems", "justifyContent", "inlineFlex", "direction", "flexItems", "flexWrap", "flexGrow", "testId", "extraClass"];
|
|
367
367
|
/**
|
|
368
368
|
* Flex is a internal component used by Stack and Inline. DON'T use this component outside of Sous Chef
|
|
369
369
|
*/
|
|
@@ -388,7 +388,7 @@ var Flex = function Flex(_ref) {
|
|
|
388
388
|
flexGrow = _ref.flexGrow,
|
|
389
389
|
testId = _ref.testId,
|
|
390
390
|
extraClass = _ref.extraClass,
|
|
391
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
391
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$e2);
|
|
392
392
|
var _getPositionProps = getPositionProps(rest),
|
|
393
393
|
positionProps = _getPositionProps.positionProps,
|
|
394
394
|
otherProps = _getPositionProps.otherProps;
|
|
@@ -419,14 +419,14 @@ var Flex = function Flex(_ref) {
|
|
|
419
419
|
}));
|
|
420
420
|
};
|
|
421
421
|
|
|
422
|
-
var _excluded$
|
|
422
|
+
var _excluded$e1 = ["alignItems"];
|
|
423
423
|
/**
|
|
424
424
|
* Layout component to easily stack elements up in a column.
|
|
425
425
|
*/
|
|
426
426
|
var Stack = function Stack(_ref) {
|
|
427
427
|
var _ref$alignItems = _ref.alignItems,
|
|
428
428
|
alignItems = _ref$alignItems === void 0 ? 'stretch' : _ref$alignItems,
|
|
429
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
429
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$e1);
|
|
430
430
|
return React__namespace.createElement(Flex, _extends({}, props, {
|
|
431
431
|
alignItems: alignItems,
|
|
432
432
|
direction: "column"
|
|
@@ -435,7 +435,7 @@ var Stack = function Stack(_ref) {
|
|
|
435
435
|
|
|
436
436
|
var styles$1s = {"caption":"_tMhXr","label":"_NfOw5","label--truncate":"_M3aFK","toggle":"_QDQZ1","toggle__label":"_52dky","toggle__caption":"_A-tgL","toggle__switch":"_kBjjH"};
|
|
437
437
|
|
|
438
|
-
var _excluded$
|
|
438
|
+
var _excluded$e0 = ["checked", "label", "caption", "onChange", "disabled", "id", "testId"];
|
|
439
439
|
/**
|
|
440
440
|
* Used when you want to allow the user to turn some information ON and OFF.
|
|
441
441
|
*
|
|
@@ -450,7 +450,7 @@ var Toggle = function Toggle(_ref) {
|
|
|
450
450
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
451
451
|
id = _ref.id,
|
|
452
452
|
testId = _ref.testId,
|
|
453
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
453
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$e0);
|
|
454
454
|
var _getDataProps = getDataProps(otherProps),
|
|
455
455
|
dataProps = _getDataProps.dataProps;
|
|
456
456
|
return React__default["default"].createElement(Stack, {
|
|
@@ -979,7 +979,7 @@ var COMPONENT_NAMES = {
|
|
|
979
979
|
BUTTON: 'BUTTON'
|
|
980
980
|
};
|
|
981
981
|
|
|
982
|
-
var _excluded$
|
|
982
|
+
var _excluded$d$ = ["children", "type", "theme", "disabled", "onClick", "onMouseEnter", "onMouseLeave", "onBlur", "onFocus", "onKeyDown", "id", "loading", "title", "href", "target", "testId", "size"],
|
|
983
983
|
_excluded2 = ["id", "onClick", "onMouseEnter", "onMouseLeave", "onBlur", "onFocus", "onKeyDown", "className", "type", "disabled", "href", "target", "children", "position", "dataProps"];
|
|
984
984
|
var ButtonComponent = function ButtonComponent(_ref, ref) {
|
|
985
985
|
var _classnames;
|
|
@@ -1004,7 +1004,7 @@ var ButtonComponent = function ButtonComponent(_ref, ref) {
|
|
|
1004
1004
|
target = _ref$target === void 0 ? BUTTON_TARGETS.SELF : _ref$target,
|
|
1005
1005
|
testId = _ref.testId,
|
|
1006
1006
|
size = _ref.size,
|
|
1007
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1007
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$d$);
|
|
1008
1008
|
var _getPositionProps = getPositionProps(rest),
|
|
1009
1009
|
positionProps = _getPositionProps.positionProps,
|
|
1010
1010
|
otherProps = _getPositionProps.otherProps;
|
|
@@ -1128,6 +1128,118 @@ var useIsInsideComponent = function useIsInsideComponent(parentComponentName) {
|
|
|
1128
1128
|
return componentName === parentComponentName;
|
|
1129
1129
|
};
|
|
1130
1130
|
|
|
1131
|
+
var _excluded$d_ = ["testId", "size", "color", "style"];
|
|
1132
|
+
var IconAwardSolid = React.forwardRef(function (_ref, ref) {
|
|
1133
|
+
var _ref$testId = _ref.testId,
|
|
1134
|
+
testId = _ref$testId === void 0 ? 'icon-award-solid' : _ref$testId,
|
|
1135
|
+
size = _ref.size,
|
|
1136
|
+
color = _ref.color,
|
|
1137
|
+
style = _ref.style,
|
|
1138
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d_);
|
|
1139
|
+
var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1140
|
+
var styleProps = {
|
|
1141
|
+
size: !size && isInsideButton ? 'medium' : size,
|
|
1142
|
+
color: color,
|
|
1143
|
+
style: style
|
|
1144
|
+
};
|
|
1145
|
+
return React__default["default"].createElement("svg", _extends({
|
|
1146
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1147
|
+
fill: "none",
|
|
1148
|
+
viewBox: "0 0 20 20",
|
|
1149
|
+
style: getIconStyles(styleProps),
|
|
1150
|
+
"data-testid": testId,
|
|
1151
|
+
ref: ref
|
|
1152
|
+
}, props), React__default["default"].createElement("path", {
|
|
1153
|
+
fill: "currentColor",
|
|
1154
|
+
d: "M9.203.22a1.493 1.493 0 0 1 1.557 0c.87.53 1.408.673 2.427.651.56-.014 1.08.289 1.35.78.489.895.884 1.29 1.779 1.779.491.267.79.79.78 1.35-.025 1.02.121 1.557.652 2.427.292.477.292 1.08 0 1.557-.53.87-.673 1.408-.652 2.427.014.559-.289 1.08-.78 1.35-.891.488-1.287.88-1.771 1.768v4.835a.857.857 0 0 1-1.237.766l-3.324-1.664-3.325 1.66a.854.854 0 0 1-1.236-.766v-4.835c-.485-.887-.88-1.283-1.771-1.767a1.504 1.504 0 0 1-.78-1.351c.024-1.02-.122-1.557-.653-2.427a1.493 1.493 0 0 1 0-1.557c.531-.87.674-1.407.652-2.426-.014-.56.289-1.08.78-1.35.895-.489 1.29-.885 1.779-1.779a1.504 1.504 0 0 1 1.35-.78C7.8.893 8.337.747 9.207.216l-.004.003Zm.78 11.184a3.422 3.422 0 1 0-.001-6.843 3.422 3.422 0 0 0 .002 6.843Z"
|
|
1155
|
+
}));
|
|
1156
|
+
});
|
|
1157
|
+
IconAwardSolid.displayName = 'IconAwardSolid';
|
|
1158
|
+
|
|
1159
|
+
var _excluded$dZ = ["testId", "size", "color", "style"];
|
|
1160
|
+
var IconExclaimTriangleSolid = React.forwardRef(function (_ref, ref) {
|
|
1161
|
+
var _ref$testId = _ref.testId,
|
|
1162
|
+
testId = _ref$testId === void 0 ? 'icon-exclaim-triangle-solid' : _ref$testId,
|
|
1163
|
+
size = _ref.size,
|
|
1164
|
+
color = _ref.color,
|
|
1165
|
+
style = _ref.style,
|
|
1166
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$dZ);
|
|
1167
|
+
var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1168
|
+
var styleProps = {
|
|
1169
|
+
size: !size && isInsideButton ? 'medium' : size,
|
|
1170
|
+
color: color,
|
|
1171
|
+
style: style
|
|
1172
|
+
};
|
|
1173
|
+
return React__default["default"].createElement("svg", _extends({
|
|
1174
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1175
|
+
fill: "none",
|
|
1176
|
+
viewBox: "0 0 20 19",
|
|
1177
|
+
style: getIconStyles(styleProps),
|
|
1178
|
+
"data-testid": testId,
|
|
1179
|
+
ref: ref
|
|
1180
|
+
}, props), React__default["default"].createElement("path", {
|
|
1181
|
+
fill: "currentColor",
|
|
1182
|
+
d: "M10 0c.574 0 1.101.316 1.375.82l8.437 15.624a1.564 1.564 0 0 1-1.375 2.305H1.563c-.55 0-1.062-.29-1.343-.762a1.563 1.563 0 0 1-.032-1.543L8.625.82C8.9.316 9.425 0 10 0Zm0 13.749c-.691 0-1.25.558-1.25 1.25 0 .691.559 1.25 1.25 1.25s1.25-.559 1.25-1.25c0-.692-.559-1.25-1.25-1.25Zm0-7.5a1.23 1.23 0 0 0-1.226 1.317l.289 4.062a.935.935 0 0 0 1.867 0l.289-4.062A1.229 1.229 0 0 0 9.992 6.25H10Z"
|
|
1183
|
+
}));
|
|
1184
|
+
});
|
|
1185
|
+
IconExclaimTriangleSolid.displayName = 'IconExclaimTriangleSolid';
|
|
1186
|
+
|
|
1187
|
+
var _excluded$dY = ["testId", "size", "color", "style"];
|
|
1188
|
+
var IconInfoCircleSolid = React.forwardRef(function (_ref, ref) {
|
|
1189
|
+
var _ref$testId = _ref.testId,
|
|
1190
|
+
testId = _ref$testId === void 0 ? 'icon-info-circle-solid' : _ref$testId,
|
|
1191
|
+
size = _ref.size,
|
|
1192
|
+
color = _ref.color,
|
|
1193
|
+
style = _ref.style,
|
|
1194
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$dY);
|
|
1195
|
+
var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1196
|
+
var styleProps = {
|
|
1197
|
+
size: !size && isInsideButton ? 'medium' : size,
|
|
1198
|
+
color: color,
|
|
1199
|
+
style: style
|
|
1200
|
+
};
|
|
1201
|
+
return React__default["default"].createElement("svg", _extends({
|
|
1202
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1203
|
+
fill: "none",
|
|
1204
|
+
viewBox: "0 0 20 20",
|
|
1205
|
+
style: getIconStyles(styleProps),
|
|
1206
|
+
"data-testid": testId,
|
|
1207
|
+
ref: ref
|
|
1208
|
+
}, props), React__default["default"].createElement("path", {
|
|
1209
|
+
fill: "currentColor",
|
|
1210
|
+
d: "M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20Zm-1.562-6.875h.937v-2.5h-.937a.935.935 0 0 1-.938-.937c0-.52.418-.938.938-.938h1.874c.52 0 .938.418.938.938v3.437h.313c.519 0 .937.418.937.938 0 .519-.418.937-.937.937H8.437a.935.935 0 0 1-.937-.937c0-.52.418-.938.938-.938ZM10 5a1.25 1.25 0 1 1 0 2.5A1.25 1.25 0 0 1 10 5Z"
|
|
1211
|
+
}));
|
|
1212
|
+
});
|
|
1213
|
+
IconInfoCircleSolid.displayName = 'IconInfoCircleSolid';
|
|
1214
|
+
|
|
1215
|
+
var _excluded$dX = ["testId", "size", "color", "style"];
|
|
1216
|
+
var IconTimesOctagonSolid = React.forwardRef(function (_ref, ref) {
|
|
1217
|
+
var _ref$testId = _ref.testId,
|
|
1218
|
+
testId = _ref$testId === void 0 ? 'icon-times-octagon-solid' : _ref$testId,
|
|
1219
|
+
size = _ref.size,
|
|
1220
|
+
color = _ref.color,
|
|
1221
|
+
style = _ref.style,
|
|
1222
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$dX);
|
|
1223
|
+
var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
|
|
1224
|
+
var styleProps = {
|
|
1225
|
+
size: !size && isInsideButton ? 'medium' : size,
|
|
1226
|
+
color: color,
|
|
1227
|
+
style: style
|
|
1228
|
+
};
|
|
1229
|
+
return React__default["default"].createElement("svg", _extends({
|
|
1230
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1231
|
+
fill: "none",
|
|
1232
|
+
viewBox: "0 0 20 19",
|
|
1233
|
+
style: getIconStyles(styleProps),
|
|
1234
|
+
"data-testid": testId,
|
|
1235
|
+
ref: ref
|
|
1236
|
+
}, props), React__default["default"].createElement("path", {
|
|
1237
|
+
fill: "currentColor",
|
|
1238
|
+
d: "M.39 10.496c-.52-.897-.52-2 0-2.897L3.94 1.45A2.896 2.896 0 0 1 6.451 0h7.101a2.9 2.9 0 0 1 2.51 1.448L19.612 7.6c.519.897.519 2 0 2.897l-3.553 6.15a2.896 2.896 0 0 1-2.51 1.45h-7.1a2.9 2.9 0 0 1-2.51-1.45l-3.549-6.15ZM6.74 5.789a.962.962 0 0 0 0 1.364l1.891 1.89-1.89 1.891a.965.965 0 0 0 1.364 1.364l1.89-1.89 1.89 1.89a.965.965 0 0 0 1.364-1.364l-1.89-1.89 1.89-1.891a.965.965 0 0 0-1.364-1.364l-1.89 1.89-1.89-1.89a.962.962 0 0 0-1.365 0Z"
|
|
1239
|
+
}));
|
|
1240
|
+
});
|
|
1241
|
+
IconTimesOctagonSolid.displayName = 'IconTimesOctagonSolid';
|
|
1242
|
+
|
|
1131
1243
|
var _excluded$dW = ["testId", "size", "color", "style"];
|
|
1132
1244
|
var IconInfoCircle = React.forwardRef(function (_ref, ref) {
|
|
1133
1245
|
var _ref$testId = _ref.testId,
|
|
@@ -9457,15 +9569,15 @@ var InlineBannerIcon = function InlineBannerIcon(_ref) {
|
|
|
9457
9569
|
var theme = _ref.theme;
|
|
9458
9570
|
switch (theme) {
|
|
9459
9571
|
case BANNER_THEME.INFO:
|
|
9460
|
-
return React__default["default"].createElement(
|
|
9572
|
+
return React__default["default"].createElement(IconInfoCircleSolid, null);
|
|
9461
9573
|
case BANNER_THEME.WARNING:
|
|
9462
|
-
return React__default["default"].createElement(
|
|
9574
|
+
return React__default["default"].createElement(IconExclaimTriangleSolid, null);
|
|
9463
9575
|
case BANNER_THEME.SUCCESS:
|
|
9464
|
-
return React__default["default"].createElement(
|
|
9576
|
+
return React__default["default"].createElement(IconCheckCircle, null);
|
|
9465
9577
|
case BANNER_THEME.DANGER:
|
|
9466
|
-
return React__default["default"].createElement(
|
|
9578
|
+
return React__default["default"].createElement(IconTimesOctagonSolid, null);
|
|
9467
9579
|
case BANNER_THEME.UPSELL:
|
|
9468
|
-
return React__default["default"].createElement(
|
|
9580
|
+
return React__default["default"].createElement(IconAwardSolid, null);
|
|
9469
9581
|
}
|
|
9470
9582
|
};
|
|
9471
9583
|
|
|
@@ -9537,15 +9649,15 @@ var MicroBannerIcon = function MicroBannerIcon(_ref) {
|
|
|
9537
9649
|
var theme = _ref.theme;
|
|
9538
9650
|
switch (theme) {
|
|
9539
9651
|
case MICRO_BANNER_THEME.INFO:
|
|
9540
|
-
return React__default["default"].createElement(
|
|
9652
|
+
return React__default["default"].createElement(IconInfoCircleSolid, null);
|
|
9541
9653
|
case MICRO_BANNER_THEME.WARNING:
|
|
9542
|
-
return React__default["default"].createElement(
|
|
9654
|
+
return React__default["default"].createElement(IconExclaimTriangleSolid, null);
|
|
9543
9655
|
case MICRO_BANNER_THEME.SUCCESS:
|
|
9544
|
-
return React__default["default"].createElement(
|
|
9656
|
+
return React__default["default"].createElement(IconCheckCircle, null);
|
|
9545
9657
|
case MICRO_BANNER_THEME.DANGER:
|
|
9546
|
-
return React__default["default"].createElement(
|
|
9658
|
+
return React__default["default"].createElement(IconTimesOctagonSolid, null);
|
|
9547
9659
|
case MICRO_BANNER_THEME.UPSELL:
|
|
9548
|
-
return React__default["default"].createElement(
|
|
9660
|
+
return React__default["default"].createElement(IconAwardSolid, null);
|
|
9549
9661
|
}
|
|
9550
9662
|
};
|
|
9551
9663
|
|
|
@@ -9576,15 +9688,19 @@ var MicroBanner = function MicroBanner(_ref) {
|
|
|
9576
9688
|
title = _ref.title,
|
|
9577
9689
|
primaryButton = _ref.primaryButton,
|
|
9578
9690
|
testId = _ref.testId,
|
|
9579
|
-
|
|
9580
|
-
var
|
|
9691
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$bd);
|
|
9692
|
+
var _getPositionProps = getPositionProps(rest),
|
|
9693
|
+
positionProps = _getPositionProps.positionProps,
|
|
9694
|
+
otherProps = _getPositionProps.otherProps;
|
|
9695
|
+
var _getDataProps = getDataProps(otherProps),
|
|
9696
|
+
dataProps = _getDataProps.dataProps;
|
|
9581
9697
|
var themeClass = styles$P["micro-banner--" + theme];
|
|
9582
9698
|
var contentClass = classnames__default["default"](styles$P['micro-banner__content'], hideIcon && styles$P['micro-banner__content--no-icon'], !primaryButton && styles$P['micro-banner__content--no-button']);
|
|
9583
|
-
return React__default["default"].createElement("div", {
|
|
9699
|
+
return React__default["default"].createElement("div", _extends({
|
|
9584
9700
|
"data-testid": testId,
|
|
9585
9701
|
className: classnames__default["default"](styles$P['micro-banner'], themeClass),
|
|
9586
|
-
style:
|
|
9587
|
-
}, !hideIcon && React__default["default"].createElement("div", {
|
|
9702
|
+
style: positionProps
|
|
9703
|
+
}, dataProps), !hideIcon && React__default["default"].createElement("div", {
|
|
9588
9704
|
className: styles$P['micro-banner__icon'],
|
|
9589
9705
|
"data-testid": (testId || 'micro-banner') + "-icon"
|
|
9590
9706
|
}, icon != null ? icon : React__default["default"].createElement(MicroBannerIcon, {
|
|
@@ -9607,10 +9723,11 @@ var PERSISTENT_BANNER_THEME = {
|
|
|
9607
9723
|
UPSELL: 'upsell',
|
|
9608
9724
|
INFO: 'info',
|
|
9609
9725
|
DANGER: 'danger',
|
|
9610
|
-
WARNING: 'warning'
|
|
9726
|
+
WARNING: 'warning',
|
|
9727
|
+
SUCCESS: 'success'
|
|
9611
9728
|
};
|
|
9612
9729
|
|
|
9613
|
-
var styles$O = {"persistent-banner":"_FsCJQ","persistent-banner--info":"_zt-xK","persistent-banner--danger":"_rmUys","persistent-banner--upsell":"_UGrRR","persistent-banner--warning":"_9eFhn"};
|
|
9730
|
+
var styles$O = {"persistent-banner":"_FsCJQ","persistent-banner--info":"_zt-xK","persistent-banner--danger":"_rmUys","persistent-banner--upsell":"_UGrRR","persistent-banner--warning":"_9eFhn","persistent-banner--success":"_hU34n"};
|
|
9614
9731
|
|
|
9615
9732
|
var PersistentBanner = function PersistentBanner(_ref) {
|
|
9616
9733
|
var _classNames;
|
|
@@ -9636,19 +9753,19 @@ var PersistentBanner = function PersistentBanner(_ref) {
|
|
|
9636
9753
|
justifyContent: "center",
|
|
9637
9754
|
space: 8
|
|
9638
9755
|
}, primaryButton && React__default["default"].cloneElement(primaryButton, _extends({
|
|
9639
|
-
theme:
|
|
9756
|
+
theme: BUTTON_THEMES.HOLLOW_CONTRAST
|
|
9640
9757
|
}, primaryButton.props)), secondaryButton && React__default["default"].cloneElement(secondaryButton, _extends({
|
|
9641
|
-
theme:
|
|
9758
|
+
theme: BUTTON_THEMES.LINK_CONTRAST
|
|
9642
9759
|
}, secondaryButton.props))));
|
|
9643
9760
|
};
|
|
9644
9761
|
return React__default["default"].createElement("div", {
|
|
9645
|
-
className: classnames__default["default"](styles$O['persistent-banner'], (_classNames = {}, _classNames[styles$O['persistent-banner--info']] = theme === PERSISTENT_BANNER_THEME.INFO, _classNames[styles$O['persistent-banner--danger']] = theme === PERSISTENT_BANNER_THEME.DANGER, _classNames[styles$O['persistent-banner--upsell']] = theme === PERSISTENT_BANNER_THEME.UPSELL, _classNames[styles$O['persistent-banner--warning']] = theme === PERSISTENT_BANNER_THEME.WARNING, _classNames)),
|
|
9762
|
+
className: classnames__default["default"](styles$O['persistent-banner'], (_classNames = {}, _classNames[styles$O['persistent-banner--info']] = theme === PERSISTENT_BANNER_THEME.INFO, _classNames[styles$O['persistent-banner--danger']] = theme === PERSISTENT_BANNER_THEME.DANGER, _classNames[styles$O['persistent-banner--upsell']] = theme === PERSISTENT_BANNER_THEME.UPSELL, _classNames[styles$O['persistent-banner--warning']] = theme === PERSISTENT_BANNER_THEME.WARNING, _classNames[styles$O['persistent-banner--success']] = theme === PERSISTENT_BANNER_THEME.SUCCESS, _classNames)),
|
|
9646
9763
|
"data-testid": testId
|
|
9647
9764
|
}, onDismiss ? React__default["default"].createElement(Inline, {
|
|
9648
9765
|
flex: [1],
|
|
9649
9766
|
alignItems: "center"
|
|
9650
9767
|
}, React__default["default"].createElement(BannerContent, null), React__default["default"].createElement(Button, {
|
|
9651
|
-
theme: theme === PERSISTENT_BANNER_THEME.WARNING ?
|
|
9768
|
+
theme: theme === PERSISTENT_BANNER_THEME.WARNING ? 'link-primary' : 'link-contrast',
|
|
9652
9769
|
onClick: onDismiss
|
|
9653
9770
|
}, React__default["default"].createElement(IconTimes, null))) : React__default["default"].createElement(BannerContent, null));
|
|
9654
9771
|
};
|
|
@@ -9745,9 +9862,10 @@ var CircularProgress = function CircularProgress(_ref) {
|
|
|
9745
9862
|
}, children || metric.progress + "/" + metric.maxValue));
|
|
9746
9863
|
};
|
|
9747
9864
|
|
|
9748
|
-
var styles$M = {"progress-bar":"_fWvQF","progress-bar__indicator":"_vd0xc","progress-bar__steps":"_8kdeO"};
|
|
9865
|
+
var styles$M = {"progress-bar":"_fWvQF","progress-bar__indicator":"_vd0xc","progress-bar__indicator--complete":"_D9yNp","progress-bar__steps":"_8kdeO"};
|
|
9749
9866
|
|
|
9750
9867
|
var ProgressBar = function ProgressBar(_ref) {
|
|
9868
|
+
var _classNames;
|
|
9751
9869
|
var progress = _ref.progress,
|
|
9752
9870
|
maxValue = _ref.maxValue,
|
|
9753
9871
|
testId = _ref.testId,
|
|
@@ -9761,7 +9879,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
9761
9879
|
className: styles$M['progress-bar'],
|
|
9762
9880
|
"data-testid": testId
|
|
9763
9881
|
}), React__default["default"].createElement("div", {
|
|
9764
|
-
className: styles$M['progress-bar__indicator'],
|
|
9882
|
+
className: classnames__default["default"](styles$M['progress-bar__indicator'], (_classNames = {}, _classNames[styles$M['progress-bar__indicator--complete']] = metric.percentage === 100, _classNames)),
|
|
9765
9883
|
style: {
|
|
9766
9884
|
width: metric.percentage + "%"
|
|
9767
9885
|
}
|
|
@@ -58772,6 +58890,7 @@ exports.IconArrowToTop = IconArrowToTop;
|
|
|
58772
58890
|
exports.IconArrowTurnDownRight = IconArrowTurnDownRight;
|
|
58773
58891
|
exports.IconArrowUp = IconArrowUp;
|
|
58774
58892
|
exports.IconAward = IconAward;
|
|
58893
|
+
exports.IconAwardSolid = IconAwardSolid;
|
|
58775
58894
|
exports.IconAwful = IconAwful;
|
|
58776
58895
|
exports.IconAwfulMonochromatic = IconAwfulMonochromatic;
|
|
58777
58896
|
exports.IconBad = IconBad;
|
|
@@ -58826,6 +58945,7 @@ exports.IconEdit = IconEdit;
|
|
|
58826
58945
|
exports.IconEllipsisV = IconEllipsisV;
|
|
58827
58946
|
exports.IconEnvelope = IconEnvelope;
|
|
58828
58947
|
exports.IconEnvelopeOpenDollar = IconEnvelopeOpenDollar;
|
|
58948
|
+
exports.IconExclaimTriangleSolid = IconExclaimTriangleSolid;
|
|
58829
58949
|
exports.IconExclaimation = IconExclaimation;
|
|
58830
58950
|
exports.IconExclaimationTriangle = IconExclaimationTriangle;
|
|
58831
58951
|
exports.IconExpand = IconExpand;
|
|
@@ -58853,6 +58973,7 @@ exports.IconHandshake = IconHandshake;
|
|
|
58853
58973
|
exports.IconHatChef = IconHatChef;
|
|
58854
58974
|
exports.IconImage = IconImage;
|
|
58855
58975
|
exports.IconInfoCircle = IconInfoCircle;
|
|
58976
|
+
exports.IconInfoCircleSolid = IconInfoCircleSolid;
|
|
58856
58977
|
exports.IconIslandTropical = IconIslandTropical;
|
|
58857
58978
|
exports.IconItalic = IconItalic;
|
|
58858
58979
|
exports.IconLaptopSearch = IconLaptopSearch;
|
|
@@ -58905,6 +59026,7 @@ exports.IconThumbsDown = IconThumbsDown;
|
|
|
58905
59026
|
exports.IconThumbsUp = IconThumbsUp;
|
|
58906
59027
|
exports.IconTimes = IconTimes;
|
|
58907
59028
|
exports.IconTimesOctagon = IconTimesOctagon;
|
|
59029
|
+
exports.IconTimesOctagonSolid = IconTimesOctagonSolid;
|
|
58908
59030
|
exports.IconTrash = IconTrash;
|
|
58909
59031
|
exports.IconUnderline = IconUnderline;
|
|
58910
59032
|
exports.IconUndo = IconUndo;
|