sag_components 2.0.0-beta139 → 2.0.0-beta140
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 +130 -125
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +130 -125
- package/dist/index.js.map +1 -1
- package/dist/types/components/QuickFilterCards/QuickFilterCards.stories.d.ts +25 -18
- package/dist/types/components/QuickFilterCards/QuickFilterCards.style.d.ts +0 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8720,25 +8720,24 @@ const IconContainer$5 = styled__default["default"].div`
|
|
|
8720
8720
|
cursor: pointer;
|
|
8721
8721
|
`;
|
|
8722
8722
|
|
|
8723
|
-
const DropdownSingleNew =
|
|
8724
|
-
|
|
8725
|
-
|
|
8726
|
-
|
|
8727
|
-
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
-
|
|
8735
|
-
|
|
8736
|
-
|
|
8737
|
-
|
|
8738
|
-
|
|
8739
|
-
|
|
8740
|
-
|
|
8741
|
-
} = _ref;
|
|
8723
|
+
const DropdownSingleNew = ({
|
|
8724
|
+
label,
|
|
8725
|
+
labelEmptyValue,
|
|
8726
|
+
options,
|
|
8727
|
+
selectedValue,
|
|
8728
|
+
onChange,
|
|
8729
|
+
required,
|
|
8730
|
+
disabled,
|
|
8731
|
+
width,
|
|
8732
|
+
withMarginBottom = true,
|
|
8733
|
+
error,
|
|
8734
|
+
errorMessage,
|
|
8735
|
+
xIconShow,
|
|
8736
|
+
labelColor,
|
|
8737
|
+
showLabelOnTop,
|
|
8738
|
+
orderBy,
|
|
8739
|
+
elementType
|
|
8740
|
+
}) => {
|
|
8742
8741
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
8743
8742
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
8744
8743
|
const [showAbove, setShowAbove] = React$1.useState(false);
|
|
@@ -9210,26 +9209,25 @@ const IconContainer$4 = styled__default["default"].div`
|
|
|
9210
9209
|
cursor: pointer;
|
|
9211
9210
|
`;
|
|
9212
9211
|
|
|
9213
|
-
const DropdownMultiNew =
|
|
9214
|
-
|
|
9215
|
-
|
|
9216
|
-
|
|
9217
|
-
|
|
9218
|
-
|
|
9219
|
-
|
|
9220
|
-
|
|
9221
|
-
|
|
9222
|
-
|
|
9223
|
-
|
|
9224
|
-
|
|
9225
|
-
|
|
9226
|
-
|
|
9227
|
-
|
|
9228
|
-
|
|
9229
|
-
|
|
9230
|
-
|
|
9231
|
-
|
|
9232
|
-
} = _ref;
|
|
9212
|
+
const DropdownMultiNew = ({
|
|
9213
|
+
label,
|
|
9214
|
+
labelEmptyValue,
|
|
9215
|
+
options,
|
|
9216
|
+
selectedValue,
|
|
9217
|
+
onChange,
|
|
9218
|
+
required,
|
|
9219
|
+
disabled,
|
|
9220
|
+
width,
|
|
9221
|
+
withMarginBottom = true,
|
|
9222
|
+
error,
|
|
9223
|
+
errorMessage,
|
|
9224
|
+
labelColor,
|
|
9225
|
+
xIconShow,
|
|
9226
|
+
checkBoxColor,
|
|
9227
|
+
showLabelOnTop,
|
|
9228
|
+
orderBy,
|
|
9229
|
+
elementType
|
|
9230
|
+
}) => {
|
|
9233
9231
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
9234
9232
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
9235
9233
|
const [showAbove, setShowAbove] = React$1.useState(false);
|
|
@@ -10329,24 +10327,23 @@ const QuarterPopupPicker = ({
|
|
|
10329
10327
|
};
|
|
10330
10328
|
|
|
10331
10329
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10332
|
-
const QuarterPicker =
|
|
10333
|
-
|
|
10334
|
-
|
|
10335
|
-
|
|
10336
|
-
|
|
10337
|
-
|
|
10338
|
-
|
|
10339
|
-
|
|
10340
|
-
|
|
10341
|
-
|
|
10342
|
-
|
|
10343
|
-
|
|
10344
|
-
|
|
10345
|
-
|
|
10346
|
-
|
|
10347
|
-
|
|
10348
|
-
|
|
10349
|
-
} = _ref;
|
|
10330
|
+
const QuarterPicker = ({
|
|
10331
|
+
availableQuarters,
|
|
10332
|
+
// ["Q1-2024"]
|
|
10333
|
+
label,
|
|
10334
|
+
onChange,
|
|
10335
|
+
borderRadius,
|
|
10336
|
+
required,
|
|
10337
|
+
width,
|
|
10338
|
+
height,
|
|
10339
|
+
placeholder,
|
|
10340
|
+
disabled,
|
|
10341
|
+
borderColor,
|
|
10342
|
+
borderColorFocus,
|
|
10343
|
+
textColor,
|
|
10344
|
+
selectedValue,
|
|
10345
|
+
startYear
|
|
10346
|
+
}) => {
|
|
10350
10347
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
10351
10348
|
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
10352
10349
|
const [value, setValue] = React$1.useState('');
|
|
@@ -10788,23 +10785,22 @@ const MonthPopupPicker = ({
|
|
|
10788
10785
|
};
|
|
10789
10786
|
|
|
10790
10787
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10791
|
-
const MonthPicker =
|
|
10792
|
-
|
|
10793
|
-
|
|
10794
|
-
|
|
10795
|
-
|
|
10796
|
-
|
|
10797
|
-
|
|
10798
|
-
|
|
10799
|
-
|
|
10800
|
-
|
|
10801
|
-
|
|
10802
|
-
|
|
10803
|
-
|
|
10804
|
-
|
|
10805
|
-
|
|
10806
|
-
|
|
10807
|
-
} = _ref;
|
|
10788
|
+
const MonthPicker = ({
|
|
10789
|
+
availableMonths,
|
|
10790
|
+
label,
|
|
10791
|
+
onChange,
|
|
10792
|
+
borderRadius,
|
|
10793
|
+
required,
|
|
10794
|
+
width,
|
|
10795
|
+
height,
|
|
10796
|
+
placeholder,
|
|
10797
|
+
disabled,
|
|
10798
|
+
borderColor,
|
|
10799
|
+
borderColorFocus,
|
|
10800
|
+
textColor,
|
|
10801
|
+
selectedValue,
|
|
10802
|
+
startYear
|
|
10803
|
+
}) => {
|
|
10808
10804
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
10809
10805
|
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
10810
10806
|
const [value, setValue] = React$1.useState('');
|
|
@@ -23915,22 +23911,21 @@ const DeleteIcon = styled__default["default"].div`
|
|
|
23915
23911
|
position: absolute;
|
|
23916
23912
|
`;
|
|
23917
23913
|
|
|
23918
|
-
const QuickFilterDropdownSingle =
|
|
23919
|
-
|
|
23920
|
-
|
|
23921
|
-
|
|
23922
|
-
|
|
23923
|
-
|
|
23924
|
-
|
|
23925
|
-
|
|
23926
|
-
|
|
23927
|
-
|
|
23928
|
-
|
|
23929
|
-
|
|
23930
|
-
|
|
23931
|
-
|
|
23932
|
-
|
|
23933
|
-
} = _ref;
|
|
23914
|
+
const QuickFilterDropdownSingle = ({
|
|
23915
|
+
label,
|
|
23916
|
+
hoverColor,
|
|
23917
|
+
options,
|
|
23918
|
+
selectedValue,
|
|
23919
|
+
placeHolder,
|
|
23920
|
+
onChange,
|
|
23921
|
+
disabled,
|
|
23922
|
+
width,
|
|
23923
|
+
error,
|
|
23924
|
+
errorMessage,
|
|
23925
|
+
xIconShow,
|
|
23926
|
+
labelColor,
|
|
23927
|
+
showLabelOnTop
|
|
23928
|
+
}) => {
|
|
23934
23929
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
23935
23930
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
23936
23931
|
const [inputValue, setInputValue] = React$1.useState("");
|
|
@@ -24327,24 +24322,23 @@ const IconContainer$2 = styled__default["default"].div`
|
|
|
24327
24322
|
cursor: pointer;
|
|
24328
24323
|
`;
|
|
24329
24324
|
|
|
24330
|
-
const QuickFilterDropdownMultiSelection =
|
|
24331
|
-
|
|
24332
|
-
|
|
24333
|
-
|
|
24334
|
-
|
|
24335
|
-
|
|
24336
|
-
|
|
24337
|
-
|
|
24338
|
-
|
|
24339
|
-
|
|
24340
|
-
|
|
24341
|
-
|
|
24342
|
-
|
|
24343
|
-
|
|
24344
|
-
|
|
24345
|
-
|
|
24346
|
-
|
|
24347
|
-
} = _ref;
|
|
24325
|
+
const QuickFilterDropdownMultiSelection = ({
|
|
24326
|
+
label,
|
|
24327
|
+
labelEmptyValue,
|
|
24328
|
+
options,
|
|
24329
|
+
selectedValue,
|
|
24330
|
+
placeHolder,
|
|
24331
|
+
onChange,
|
|
24332
|
+
required,
|
|
24333
|
+
disabled,
|
|
24334
|
+
width,
|
|
24335
|
+
error,
|
|
24336
|
+
errorMessage,
|
|
24337
|
+
labelColor,
|
|
24338
|
+
xIconShow,
|
|
24339
|
+
checkBoxColor,
|
|
24340
|
+
showLabelOnTop
|
|
24341
|
+
}) => {
|
|
24348
24342
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24349
24343
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24350
24344
|
const [inputValue, setInputValue] = React$1.useState('');
|
|
@@ -35576,9 +35570,9 @@ const ToggleSlider = styled__default["default"].span`
|
|
|
35576
35570
|
}
|
|
35577
35571
|
`;
|
|
35578
35572
|
|
|
35579
|
-
/**
|
|
35580
|
-
* ToggleSwitch component for on/off states.
|
|
35581
|
-
* Supports small/large sizes and disabled state.
|
|
35573
|
+
/**
|
|
35574
|
+
* ToggleSwitch component for on/off states.
|
|
35575
|
+
* Supports small/large sizes and disabled state.
|
|
35582
35576
|
*/
|
|
35583
35577
|
function ToggleSwitch(_ref) {
|
|
35584
35578
|
let {
|
|
@@ -51259,10 +51253,11 @@ const ItemManagerPanel = _ref => {
|
|
|
51259
51253
|
onClick: e => {
|
|
51260
51254
|
handleVendorClick(item);
|
|
51261
51255
|
}
|
|
51262
|
-
}, /*#__PURE__*/React__default["default"].createElement(VendorNameAndPackagesContainer$1, null, /*#__PURE__*/React__default["default"].createElement(VendorName$2, null, item.name), item.packages.length === 0 && /*#__PURE__*/React__default["default"].createElement(Subtitle$1, null, "No Packages"), item.packages.length > 0 && /*#__PURE__*/React__default["default"].createElement(Subtitle$1, null, (() => {
|
|
51256
|
+
}, /*#__PURE__*/React__default["default"].createElement(VendorNameAndPackagesContainer$1, null, /*#__PURE__*/React__default["default"].createElement(VendorName$2, null, item.name), console.log('item.name', item.name), item.packages.length === 0 && /*#__PURE__*/React__default["default"].createElement(Subtitle$1, null, "No Packages"), item.packages.length > 0 && /*#__PURE__*/React__default["default"].createElement(Subtitle$1, null, (() => {
|
|
51263
51257
|
const packagesWithStatus = item.packages.filter(pkg => pkg.hasOwnProperty('status') && pkg.status != null && pkg.status !== undefined && pkg.status !== '');
|
|
51264
51258
|
const allHaveStatus = packagesWithStatus.length === item.packages.length;
|
|
51265
51259
|
const noneHaveStatus = packagesWithStatus.length === 0;
|
|
51260
|
+
console.log('noneHaveStatus', noneHaveStatus);
|
|
51266
51261
|
if (noneHaveStatus) {
|
|
51267
51262
|
return `0/${item.packages.length} sent`;
|
|
51268
51263
|
} else if (allHaveStatus) {
|
|
@@ -51871,7 +51866,7 @@ const OverlayDropdown = _ref => {
|
|
|
51871
51866
|
const newItem = {
|
|
51872
51867
|
...templateDialog.item,
|
|
51873
51868
|
label: finalSentence,
|
|
51874
|
-
value:
|
|
51869
|
+
value: templateDialog.item.value,
|
|
51875
51870
|
// Unique value
|
|
51876
51871
|
overlayCode: templateDialog.group.overlayCode,
|
|
51877
51872
|
overlayName: templateDialog.group.overlayName,
|
|
@@ -52394,6 +52389,9 @@ const StatusCard = styled__default["default"].div`
|
|
|
52394
52389
|
flex-grow: 1;
|
|
52395
52390
|
flex-basis: 0;
|
|
52396
52391
|
box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.10);
|
|
52392
|
+
@media (max-width: 1200px) {
|
|
52393
|
+
padding: 8px;
|
|
52394
|
+
}
|
|
52397
52395
|
`;
|
|
52398
52396
|
const CardHeader = styled__default["default"].div`
|
|
52399
52397
|
display: flex;
|
|
@@ -52402,9 +52400,10 @@ const CardHeader = styled__default["default"].div`
|
|
|
52402
52400
|
margin-bottom: 10px;
|
|
52403
52401
|
`;
|
|
52404
52402
|
const CheckmarkContainer = styled__default["default"].div`
|
|
52405
|
-
width:
|
|
52406
|
-
height:
|
|
52403
|
+
width: 18px;
|
|
52404
|
+
height: 18px;
|
|
52407
52405
|
border: 2px solid #212121;
|
|
52406
|
+
box-sizing: border-box;
|
|
52408
52407
|
border-radius: 4px;
|
|
52409
52408
|
display: flex;
|
|
52410
52409
|
align-items: center;
|
|
@@ -52421,6 +52420,11 @@ const CheckmarkContainer = styled__default["default"].div`
|
|
|
52421
52420
|
|
|
52422
52421
|
svg { display: none; }
|
|
52423
52422
|
&.checked svg { display: block; }
|
|
52423
|
+
|
|
52424
|
+
@media (max-width: 1200px) {
|
|
52425
|
+
width: 16px;
|
|
52426
|
+
height: 16px;
|
|
52427
|
+
}
|
|
52424
52428
|
`;
|
|
52425
52429
|
const Circle = styled__default["default"].div`
|
|
52426
52430
|
width: 16px;
|
|
@@ -52428,19 +52432,17 @@ const Circle = styled__default["default"].div`
|
|
|
52428
52432
|
border-radius: 50%;
|
|
52429
52433
|
background-color: ${props => props.color};
|
|
52430
52434
|
margin-right: 8px;
|
|
52435
|
+
@media (max-width: 1200px) {
|
|
52436
|
+
width: 14px;
|
|
52437
|
+
height: 14px;
|
|
52438
|
+
}
|
|
52431
52439
|
`;
|
|
52432
52440
|
const CardTitle = styled__default["default"].h3`
|
|
52433
52441
|
margin: 0;
|
|
52434
52442
|
font-size: 18px;
|
|
52435
52443
|
font-weight: 500;
|
|
52436
|
-
|
|
52437
|
-
|
|
52438
|
-
width: 16px;
|
|
52439
|
-
height: 16px;
|
|
52440
|
-
accent-color: #066768;
|
|
52441
|
-
margin-left: auto;
|
|
52442
|
-
&:checked {
|
|
52443
|
-
filter: invert(1) hue-rotate(180deg) brightness(2);
|
|
52444
|
+
@media (max-width: 1200px) {
|
|
52445
|
+
font-size: 16px;
|
|
52444
52446
|
}
|
|
52445
52447
|
`;
|
|
52446
52448
|
const CardContent = styled__default["default"].div`
|
|
@@ -52452,6 +52454,9 @@ const StatusCount = styled__default["default"].span`
|
|
|
52452
52454
|
font-size: 32px;
|
|
52453
52455
|
font-weight: 500;
|
|
52454
52456
|
line-height: 1;
|
|
52457
|
+
@media (max-width: 1200px) {
|
|
52458
|
+
font-size: 26px;
|
|
52459
|
+
}
|
|
52455
52460
|
`;
|
|
52456
52461
|
|
|
52457
52462
|
const QuickFilterCards = _ref => {
|
|
@@ -52496,8 +52501,8 @@ const QuickFilterCards = _ref => {
|
|
|
52496
52501
|
}), /*#__PURE__*/React__default["default"].createElement(CardTitle, null, status), /*#__PURE__*/React__default["default"].createElement(CheckmarkContainer, {
|
|
52497
52502
|
className: checked ? "checked" : ""
|
|
52498
52503
|
}, checked && /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
52499
|
-
width: "
|
|
52500
|
-
height: "
|
|
52504
|
+
width: "15",
|
|
52505
|
+
height: "15",
|
|
52501
52506
|
viewBox: "0 0 20 20",
|
|
52502
52507
|
fill: "currentColor"
|
|
52503
52508
|
}, /*#__PURE__*/React__default["default"].createElement("path", {
|