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.esm.js
CHANGED
|
@@ -449,6 +449,25 @@ const Calendar = () => /*#__PURE__*/React$1.createElement("svg", {
|
|
|
449
449
|
fill: "#568202"
|
|
450
450
|
}));
|
|
451
451
|
|
|
452
|
+
// eslint-disable-next-line react/prop-types
|
|
453
|
+
const ErrorIcon = _ref => {
|
|
454
|
+
let {
|
|
455
|
+
color = '#FF3949',
|
|
456
|
+
width = '18',
|
|
457
|
+
height = '18'
|
|
458
|
+
} = _ref;
|
|
459
|
+
return /*#__PURE__*/React$1.createElement("svg", {
|
|
460
|
+
width: width,
|
|
461
|
+
height: height,
|
|
462
|
+
viewBox: "0 0 14 13",
|
|
463
|
+
fill: "none",
|
|
464
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
465
|
+
}, /*#__PURE__*/React$1.createElement("path", {
|
|
466
|
+
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",
|
|
467
|
+
fill: color
|
|
468
|
+
}));
|
|
469
|
+
};
|
|
470
|
+
|
|
452
471
|
const ChervronRightIcon = _ref => {
|
|
453
472
|
let {
|
|
454
473
|
width = "8",
|
|
@@ -34201,25 +34220,6 @@ const InsightsCarousel = _ref => {
|
|
|
34201
34220
|
})))));
|
|
34202
34221
|
};
|
|
34203
34222
|
|
|
34204
|
-
// eslint-disable-next-line react/prop-types
|
|
34205
|
-
const ErrorIcon = _ref => {
|
|
34206
|
-
let {
|
|
34207
|
-
color = '#FF3949',
|
|
34208
|
-
width = '18',
|
|
34209
|
-
height = '18'
|
|
34210
|
-
} = _ref;
|
|
34211
|
-
return /*#__PURE__*/React$1.createElement("svg", {
|
|
34212
|
-
width: width,
|
|
34213
|
-
height: height,
|
|
34214
|
-
viewBox: "0 0 14 13",
|
|
34215
|
-
fill: "none",
|
|
34216
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
34217
|
-
}, /*#__PURE__*/React$1.createElement("path", {
|
|
34218
|
-
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",
|
|
34219
|
-
fill: color
|
|
34220
|
-
}));
|
|
34221
|
-
};
|
|
34222
|
-
|
|
34223
34223
|
// eslint-disable-next-line react/prop-types
|
|
34224
34224
|
const SucceededIcon = _ref => {
|
|
34225
34225
|
let {
|
|
@@ -35616,9 +35616,12 @@ const ToggleSwitchLabel = styled.label`
|
|
|
35616
35616
|
position: relative;
|
|
35617
35617
|
cursor: pointer;
|
|
35618
35618
|
user-select: none;
|
|
35619
|
-
opacity: ${
|
|
35620
|
-
|
|
35621
|
-
|
|
35619
|
+
opacity: ${_ref => {
|
|
35620
|
+
let {
|
|
35621
|
+
disabled
|
|
35622
|
+
} = _ref;
|
|
35623
|
+
return disabled ? 0.5 : 1;
|
|
35624
|
+
}};
|
|
35622
35625
|
`;
|
|
35623
35626
|
const ToggleInput = styled.input`
|
|
35624
35627
|
display: none;
|
|
@@ -35626,15 +35629,19 @@ const ToggleInput = styled.input`
|
|
|
35626
35629
|
const ToggleSlider = styled.span`
|
|
35627
35630
|
display: block;
|
|
35628
35631
|
position: relative;
|
|
35629
|
-
background: ${
|
|
35630
|
-
|
|
35631
|
-
|
|
35632
|
-
|
|
35632
|
+
background: ${_ref2 => {
|
|
35633
|
+
let {
|
|
35634
|
+
checked,
|
|
35635
|
+
disabled
|
|
35636
|
+
} = _ref2;
|
|
35637
|
+
return checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc";
|
|
35638
|
+
}};
|
|
35633
35639
|
border-radius: 999px;
|
|
35634
35640
|
transition: background 0.2s;
|
|
35635
|
-
${
|
|
35636
|
-
|
|
35637
|
-
|
|
35641
|
+
${_ref3 => {
|
|
35642
|
+
let {
|
|
35643
|
+
size
|
|
35644
|
+
} = _ref3;
|
|
35638
35645
|
switch (size) {
|
|
35639
35646
|
case "s":
|
|
35640
35647
|
return css`width: 40px; height: 20px;`;
|
|
@@ -35653,9 +35660,10 @@ const ToggleSlider = styled.span`
|
|
|
35653
35660
|
background: #fff;
|
|
35654
35661
|
border-radius: 50%;
|
|
35655
35662
|
transition: left 0.2s, width 0.2s, height 0.2s;
|
|
35656
|
-
${
|
|
35657
|
-
|
|
35658
|
-
|
|
35663
|
+
${_ref4 => {
|
|
35664
|
+
let {
|
|
35665
|
+
size
|
|
35666
|
+
} = _ref4;
|
|
35659
35667
|
switch (size) {
|
|
35660
35668
|
case "s":
|
|
35661
35669
|
return css`width: 14px; height: 14px;`;
|
|
@@ -35665,10 +35673,11 @@ const ToggleSlider = styled.span`
|
|
|
35665
35673
|
return css`width: 20px; height: 20px;`;
|
|
35666
35674
|
}
|
|
35667
35675
|
}}
|
|
35668
|
-
left: ${
|
|
35669
|
-
|
|
35670
|
-
|
|
35671
|
-
|
|
35676
|
+
left: ${_ref5 => {
|
|
35677
|
+
let {
|
|
35678
|
+
checked,
|
|
35679
|
+
size
|
|
35680
|
+
} = _ref5;
|
|
35672
35681
|
if (!checked) return "3px";
|
|
35673
35682
|
switch (size) {
|
|
35674
35683
|
case "s":
|
|
@@ -54284,7 +54293,7 @@ const tagTemplates = {
|
|
|
54284
54293
|
received: {
|
|
54285
54294
|
backgroundColor: '#B9D5D54D',
|
|
54286
54295
|
borderColor: '#B9D5D5',
|
|
54287
|
-
textColor: '#
|
|
54296
|
+
textColor: '#084141',
|
|
54288
54297
|
text: 'Received'
|
|
54289
54298
|
},
|
|
54290
54299
|
approved: {
|
|
@@ -54293,16 +54302,16 @@ const tagTemplates = {
|
|
|
54293
54302
|
textColor: '#074310',
|
|
54294
54303
|
text: 'Approved'
|
|
54295
54304
|
},
|
|
54296
|
-
|
|
54305
|
+
cancelled: {
|
|
54297
54306
|
backgroundColor: '#EBA6AF4D',
|
|
54298
54307
|
borderColor: '#EBA6AF',
|
|
54299
54308
|
textColor: '#44070F',
|
|
54300
|
-
text: '
|
|
54309
|
+
text: 'Cancelled'
|
|
54301
54310
|
}
|
|
54302
54311
|
};
|
|
54303
54312
|
const Tag = props => {
|
|
54304
54313
|
const {
|
|
54305
|
-
type
|
|
54314
|
+
type,
|
|
54306
54315
|
size = 'small',
|
|
54307
54316
|
backgroundColor,
|
|
54308
54317
|
borderColor,
|
|
@@ -54310,15 +54319,15 @@ const Tag = props => {
|
|
|
54310
54319
|
borderRadius = "62px",
|
|
54311
54320
|
text
|
|
54312
54321
|
} = props;
|
|
54313
|
-
const template = tagTemplates[type];
|
|
54322
|
+
const template = type ? tagTemplates[type] : null;
|
|
54314
54323
|
const height = size === 'small' ? '21px' : size === 'medium' ? '32px' : '35px';
|
|
54315
54324
|
return /*#__PURE__*/React$1.createElement(StatusCell, {
|
|
54316
|
-
backgroundColor: backgroundColor || template
|
|
54317
|
-
borderColor: borderColor || template
|
|
54318
|
-
color: textColor || template
|
|
54325
|
+
backgroundColor: backgroundColor || template?.backgroundColor,
|
|
54326
|
+
borderColor: borderColor || template?.borderColor,
|
|
54327
|
+
color: textColor || template?.textColor,
|
|
54319
54328
|
height: height,
|
|
54320
54329
|
borderRadius: borderRadius
|
|
54321
|
-
}, /*#__PURE__*/React$1.createElement("span", null, text || template
|
|
54330
|
+
}, /*#__PURE__*/React$1.createElement("span", null, text || template?.text));
|
|
54322
54331
|
};
|
|
54323
54332
|
|
|
54324
54333
|
export { AdvancedThresholds, Analytics, AreaChart, BannerEventBoxList, BarChart, BarChartTwoRows, BarChartWithAreaChart, BarChartsByWeeks, BatteryChart, BreakdownPanel, BrushChart, BubbleChart, Budgets, Build, Button$1 as Button, Campaigns, CheckBox, CollapseData, CollapseHeader, ContainerTable, Coupons, CustomerSegments, Dashboard, DialogOverlay$1 as DialogOverlay, DoubleBarSingleLine, DoublePanelDataRow, DownloadProgress, DropdownNew, EventDetailsCard, EventList, Execute, FilterPanel, FilterPop, GroupBuilder, Heatmap, IconButton$1 as IconButton, Input$2 as Input, InsightsCarousel, ItemManagerPanel, ItemsStores, LinkButton, LinnerDataBox, MarketShareDescription, MenuRoute, MessageBox, ModalDrawer, ModalWithOverlay, OneColumnContainer, OverlayDropdown, PerformanceAnalyticsLegend, PieChart, PopupCharts, PreTestWhatIf, QuickFilter, QuickFilterCards, RangePicker, RangePop, ReportTable, RulesEngine, SampleRunEngine, SearchInput, SingleBarLineCharts, SortPop, TabMenu, Table, Tag, ToasterMessageBox, ToggleSwitch, Tooltip$2 as Tooltip, TopToggleList, TotalDoughnutChart, TotalHorizontalCharts, Track, TwoBarCharts, WeeksPicker };
|