sag_components 2.0.0-beta174 → 2.0.0-beta175
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/index.esm.js +54 -45
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +54 -45
- package/dist/index.js.map +1 -1
- package/dist/types/icons/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -459,6 +459,25 @@ const Calendar = () => /*#__PURE__*/React__default["default"].createElement("svg
|
|
|
459
459
|
fill: "#568202"
|
|
460
460
|
}));
|
|
461
461
|
|
|
462
|
+
// eslint-disable-next-line react/prop-types
|
|
463
|
+
const ErrorIcon = _ref => {
|
|
464
|
+
let {
|
|
465
|
+
color = '#FF3949',
|
|
466
|
+
width = '18',
|
|
467
|
+
height = '18'
|
|
468
|
+
} = _ref;
|
|
469
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
470
|
+
width: width,
|
|
471
|
+
height: height,
|
|
472
|
+
viewBox: "0 0 14 13",
|
|
473
|
+
fill: "none",
|
|
474
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
475
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
476
|
+
d: "M7 1.625C5.24219 1.625 3.64844 2.5625 2.75781 4.0625C1.89062 5.58594 1.89062 7.4375 2.75781 8.9375C3.64844 10.4609 5.24219 11.375 7 11.375C8.73438 11.375 10.3281 10.4609 11.2188 8.9375C12.0859 7.4375 12.0859 5.58594 11.2188 4.0625C10.3281 2.5625 8.73438 1.625 7 1.625ZM7 12.5C4.84375 12.5 2.875 11.375 1.79688 9.5C0.71875 7.64844 0.71875 5.375 1.79688 3.5C2.875 1.64844 4.84375 0.5 7 0.5C9.13281 0.5 11.1016 1.64844 12.1797 3.5C13.2578 5.375 13.2578 7.64844 12.1797 9.5C11.1016 11.375 9.13281 12.5 7 12.5ZM7 3.5C7.30469 3.5 7.5625 3.75781 7.5625 4.0625V6.6875C7.5625 7.01562 7.30469 7.25 7 7.25C6.67188 7.25 6.4375 7.01562 6.4375 6.6875V4.0625C6.4375 3.75781 6.67188 3.5 7 3.5ZM7.75 8.75C7.75 9.17188 7.39844 9.5 7 9.5C6.57812 9.5 6.25 9.17188 6.25 8.75C6.25 8.35156 6.57812 8 7 8C7.39844 8 7.75 8.35156 7.75 8.75Z",
|
|
477
|
+
fill: color
|
|
478
|
+
}));
|
|
479
|
+
};
|
|
480
|
+
|
|
462
481
|
const ChervronRightIcon = _ref => {
|
|
463
482
|
let {
|
|
464
483
|
width = "8",
|
|
@@ -34211,25 +34230,6 @@ const InsightsCarousel = _ref => {
|
|
|
34211
34230
|
})))));
|
|
34212
34231
|
};
|
|
34213
34232
|
|
|
34214
|
-
// eslint-disable-next-line react/prop-types
|
|
34215
|
-
const ErrorIcon = _ref => {
|
|
34216
|
-
let {
|
|
34217
|
-
color = '#FF3949',
|
|
34218
|
-
width = '18',
|
|
34219
|
-
height = '18'
|
|
34220
|
-
} = _ref;
|
|
34221
|
-
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
34222
|
-
width: width,
|
|
34223
|
-
height: height,
|
|
34224
|
-
viewBox: "0 0 14 13",
|
|
34225
|
-
fill: "none",
|
|
34226
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
34227
|
-
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
34228
|
-
d: "M7 1.625C5.24219 1.625 3.64844 2.5625 2.75781 4.0625C1.89062 5.58594 1.89062 7.4375 2.75781 8.9375C3.64844 10.4609 5.24219 11.375 7 11.375C8.73438 11.375 10.3281 10.4609 11.2188 8.9375C12.0859 7.4375 12.0859 5.58594 11.2188 4.0625C10.3281 2.5625 8.73438 1.625 7 1.625ZM7 12.5C4.84375 12.5 2.875 11.375 1.79688 9.5C0.71875 7.64844 0.71875 5.375 1.79688 3.5C2.875 1.64844 4.84375 0.5 7 0.5C9.13281 0.5 11.1016 1.64844 12.1797 3.5C13.2578 5.375 13.2578 7.64844 12.1797 9.5C11.1016 11.375 9.13281 12.5 7 12.5ZM7 3.5C7.30469 3.5 7.5625 3.75781 7.5625 4.0625V6.6875C7.5625 7.01562 7.30469 7.25 7 7.25C6.67188 7.25 6.4375 7.01562 6.4375 6.6875V4.0625C6.4375 3.75781 6.67188 3.5 7 3.5ZM7.75 8.75C7.75 9.17188 7.39844 9.5 7 9.5C6.57812 9.5 6.25 9.17188 6.25 8.75C6.25 8.35156 6.57812 8 7 8C7.39844 8 7.75 8.35156 7.75 8.75Z",
|
|
34229
|
-
fill: color
|
|
34230
|
-
}));
|
|
34231
|
-
};
|
|
34232
|
-
|
|
34233
34233
|
// eslint-disable-next-line react/prop-types
|
|
34234
34234
|
const SucceededIcon = _ref => {
|
|
34235
34235
|
let {
|
|
@@ -35626,9 +35626,12 @@ const ToggleSwitchLabel = styled__default["default"].label`
|
|
|
35626
35626
|
position: relative;
|
|
35627
35627
|
cursor: pointer;
|
|
35628
35628
|
user-select: none;
|
|
35629
|
-
opacity: ${
|
|
35630
|
-
|
|
35631
|
-
|
|
35629
|
+
opacity: ${_ref => {
|
|
35630
|
+
let {
|
|
35631
|
+
disabled
|
|
35632
|
+
} = _ref;
|
|
35633
|
+
return disabled ? 0.5 : 1;
|
|
35634
|
+
}};
|
|
35632
35635
|
`;
|
|
35633
35636
|
const ToggleInput = styled__default["default"].input`
|
|
35634
35637
|
display: none;
|
|
@@ -35636,15 +35639,19 @@ const ToggleInput = styled__default["default"].input`
|
|
|
35636
35639
|
const ToggleSlider = styled__default["default"].span`
|
|
35637
35640
|
display: block;
|
|
35638
35641
|
position: relative;
|
|
35639
|
-
background: ${
|
|
35640
|
-
|
|
35641
|
-
|
|
35642
|
-
|
|
35642
|
+
background: ${_ref2 => {
|
|
35643
|
+
let {
|
|
35644
|
+
checked,
|
|
35645
|
+
disabled
|
|
35646
|
+
} = _ref2;
|
|
35647
|
+
return checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc";
|
|
35648
|
+
}};
|
|
35643
35649
|
border-radius: 999px;
|
|
35644
35650
|
transition: background 0.2s;
|
|
35645
|
-
${
|
|
35646
|
-
|
|
35647
|
-
|
|
35651
|
+
${_ref3 => {
|
|
35652
|
+
let {
|
|
35653
|
+
size
|
|
35654
|
+
} = _ref3;
|
|
35648
35655
|
switch (size) {
|
|
35649
35656
|
case "s":
|
|
35650
35657
|
return styled.css`width: 40px; height: 20px;`;
|
|
@@ -35663,9 +35670,10 @@ const ToggleSlider = styled__default["default"].span`
|
|
|
35663
35670
|
background: #fff;
|
|
35664
35671
|
border-radius: 50%;
|
|
35665
35672
|
transition: left 0.2s, width 0.2s, height 0.2s;
|
|
35666
|
-
${
|
|
35667
|
-
|
|
35668
|
-
|
|
35673
|
+
${_ref4 => {
|
|
35674
|
+
let {
|
|
35675
|
+
size
|
|
35676
|
+
} = _ref4;
|
|
35669
35677
|
switch (size) {
|
|
35670
35678
|
case "s":
|
|
35671
35679
|
return styled.css`width: 14px; height: 14px;`;
|
|
@@ -35675,10 +35683,11 @@ const ToggleSlider = styled__default["default"].span`
|
|
|
35675
35683
|
return styled.css`width: 20px; height: 20px;`;
|
|
35676
35684
|
}
|
|
35677
35685
|
}}
|
|
35678
|
-
left: ${
|
|
35679
|
-
|
|
35680
|
-
|
|
35681
|
-
|
|
35686
|
+
left: ${_ref5 => {
|
|
35687
|
+
let {
|
|
35688
|
+
checked,
|
|
35689
|
+
size
|
|
35690
|
+
} = _ref5;
|
|
35682
35691
|
if (!checked) return "3px";
|
|
35683
35692
|
switch (size) {
|
|
35684
35693
|
case "s":
|
|
@@ -54294,7 +54303,7 @@ const tagTemplates = {
|
|
|
54294
54303
|
received: {
|
|
54295
54304
|
backgroundColor: '#B9D5D54D',
|
|
54296
54305
|
borderColor: '#B9D5D5',
|
|
54297
|
-
textColor: '#
|
|
54306
|
+
textColor: '#084141',
|
|
54298
54307
|
text: 'Received'
|
|
54299
54308
|
},
|
|
54300
54309
|
approved: {
|
|
@@ -54303,16 +54312,16 @@ const tagTemplates = {
|
|
|
54303
54312
|
textColor: '#074310',
|
|
54304
54313
|
text: 'Approved'
|
|
54305
54314
|
},
|
|
54306
|
-
|
|
54315
|
+
cancelled: {
|
|
54307
54316
|
backgroundColor: '#EBA6AF4D',
|
|
54308
54317
|
borderColor: '#EBA6AF',
|
|
54309
54318
|
textColor: '#44070F',
|
|
54310
|
-
text: '
|
|
54319
|
+
text: 'Cancelled'
|
|
54311
54320
|
}
|
|
54312
54321
|
};
|
|
54313
54322
|
const Tag = props => {
|
|
54314
54323
|
const {
|
|
54315
|
-
type
|
|
54324
|
+
type,
|
|
54316
54325
|
size = 'small',
|
|
54317
54326
|
backgroundColor,
|
|
54318
54327
|
borderColor,
|
|
@@ -54320,15 +54329,15 @@ const Tag = props => {
|
|
|
54320
54329
|
borderRadius = "62px",
|
|
54321
54330
|
text
|
|
54322
54331
|
} = props;
|
|
54323
|
-
const template = tagTemplates[type];
|
|
54332
|
+
const template = type ? tagTemplates[type] : null;
|
|
54324
54333
|
const height = size === 'small' ? '21px' : size === 'medium' ? '32px' : '35px';
|
|
54325
54334
|
return /*#__PURE__*/React__default["default"].createElement(StatusCell, {
|
|
54326
|
-
backgroundColor: backgroundColor || template
|
|
54327
|
-
borderColor: borderColor || template
|
|
54328
|
-
color: textColor || template
|
|
54335
|
+
backgroundColor: backgroundColor || template?.backgroundColor,
|
|
54336
|
+
borderColor: borderColor || template?.borderColor,
|
|
54337
|
+
color: textColor || template?.textColor,
|
|
54329
54338
|
height: height,
|
|
54330
54339
|
borderRadius: borderRadius
|
|
54331
|
-
}, /*#__PURE__*/React__default["default"].createElement("span", null, text || template
|
|
54340
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", null, text || template?.text));
|
|
54332
54341
|
};
|
|
54333
54342
|
|
|
54334
54343
|
exports.AdvancedThresholds = AdvancedThresholds;
|