sag_components 2.0.0-beta254 → 2.0.0-beta255
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 +114 -95
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +114 -95
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -10581,23 +10581,24 @@ const QuarterPopupPicker = ({
|
|
|
10581
10581
|
};
|
|
10582
10582
|
|
|
10583
10583
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10584
|
-
const QuarterPicker =
|
|
10585
|
-
|
|
10586
|
-
|
|
10587
|
-
|
|
10588
|
-
|
|
10589
|
-
|
|
10590
|
-
|
|
10591
|
-
|
|
10592
|
-
|
|
10593
|
-
|
|
10594
|
-
|
|
10595
|
-
|
|
10596
|
-
|
|
10597
|
-
|
|
10598
|
-
|
|
10599
|
-
|
|
10600
|
-
|
|
10584
|
+
const QuarterPicker = _ref => {
|
|
10585
|
+
let {
|
|
10586
|
+
availableQuarters,
|
|
10587
|
+
// ["Q1-2024"]
|
|
10588
|
+
label,
|
|
10589
|
+
onChange,
|
|
10590
|
+
borderRadius,
|
|
10591
|
+
required,
|
|
10592
|
+
width,
|
|
10593
|
+
height,
|
|
10594
|
+
placeholder,
|
|
10595
|
+
disabled,
|
|
10596
|
+
borderColor,
|
|
10597
|
+
borderColorFocus,
|
|
10598
|
+
textColor,
|
|
10599
|
+
selectedValue,
|
|
10600
|
+
startYear
|
|
10601
|
+
} = _ref;
|
|
10601
10602
|
const [isFocused, setIsFocused] = useState(false);
|
|
10602
10603
|
const [isOpen, setIsOpen] = useState(false);
|
|
10603
10604
|
const [value, setValue] = useState('');
|
|
@@ -11039,22 +11040,23 @@ const MonthPopupPicker = ({
|
|
|
11039
11040
|
};
|
|
11040
11041
|
|
|
11041
11042
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
11042
|
-
const MonthPicker =
|
|
11043
|
-
|
|
11044
|
-
|
|
11045
|
-
|
|
11046
|
-
|
|
11047
|
-
|
|
11048
|
-
|
|
11049
|
-
|
|
11050
|
-
|
|
11051
|
-
|
|
11052
|
-
|
|
11053
|
-
|
|
11054
|
-
|
|
11055
|
-
|
|
11056
|
-
|
|
11057
|
-
|
|
11043
|
+
const MonthPicker = _ref => {
|
|
11044
|
+
let {
|
|
11045
|
+
availableMonths,
|
|
11046
|
+
label,
|
|
11047
|
+
onChange,
|
|
11048
|
+
borderRadius,
|
|
11049
|
+
required,
|
|
11050
|
+
width,
|
|
11051
|
+
height,
|
|
11052
|
+
placeholder,
|
|
11053
|
+
disabled,
|
|
11054
|
+
borderColor,
|
|
11055
|
+
borderColorFocus,
|
|
11056
|
+
textColor,
|
|
11057
|
+
selectedValue,
|
|
11058
|
+
startYear
|
|
11059
|
+
} = _ref;
|
|
11058
11060
|
const [isFocused, setIsFocused] = useState(false);
|
|
11059
11061
|
const [isOpen, setIsOpen] = useState(false);
|
|
11060
11062
|
const [value, setValue] = useState('');
|
|
@@ -24165,21 +24167,22 @@ const DeleteIcon = styled.div`
|
|
|
24165
24167
|
position: absolute;
|
|
24166
24168
|
`;
|
|
24167
24169
|
|
|
24168
|
-
const QuickFilterDropdownSingle =
|
|
24169
|
-
|
|
24170
|
-
|
|
24171
|
-
|
|
24172
|
-
|
|
24173
|
-
|
|
24174
|
-
|
|
24175
|
-
|
|
24176
|
-
|
|
24177
|
-
|
|
24178
|
-
|
|
24179
|
-
|
|
24180
|
-
|
|
24181
|
-
|
|
24182
|
-
|
|
24170
|
+
const QuickFilterDropdownSingle = _ref => {
|
|
24171
|
+
let {
|
|
24172
|
+
label,
|
|
24173
|
+
hoverColor,
|
|
24174
|
+
options,
|
|
24175
|
+
selectedValue,
|
|
24176
|
+
placeHolder,
|
|
24177
|
+
onChange,
|
|
24178
|
+
disabled,
|
|
24179
|
+
width,
|
|
24180
|
+
error,
|
|
24181
|
+
errorMessage,
|
|
24182
|
+
xIconShow,
|
|
24183
|
+
labelColor,
|
|
24184
|
+
showLabelOnTop
|
|
24185
|
+
} = _ref;
|
|
24183
24186
|
const [isFocused, setIsFocused] = useState(false);
|
|
24184
24187
|
const [showOptions, setShowOptions] = useState(false);
|
|
24185
24188
|
const [inputValue, setInputValue] = useState("");
|
|
@@ -24636,25 +24639,26 @@ const IconContainer$2 = styled.div`
|
|
|
24636
24639
|
cursor: pointer;
|
|
24637
24640
|
`;
|
|
24638
24641
|
|
|
24639
|
-
const QuickFilterDropdownMultiSelection =
|
|
24640
|
-
|
|
24641
|
-
|
|
24642
|
-
|
|
24643
|
-
|
|
24644
|
-
|
|
24645
|
-
|
|
24646
|
-
|
|
24647
|
-
|
|
24648
|
-
|
|
24649
|
-
|
|
24650
|
-
|
|
24651
|
-
|
|
24652
|
-
|
|
24653
|
-
|
|
24654
|
-
|
|
24655
|
-
|
|
24656
|
-
|
|
24657
|
-
|
|
24642
|
+
const QuickFilterDropdownMultiSelection = _ref => {
|
|
24643
|
+
let {
|
|
24644
|
+
label,
|
|
24645
|
+
labelEmptyValue,
|
|
24646
|
+
options,
|
|
24647
|
+
selectedValue,
|
|
24648
|
+
placeHolder,
|
|
24649
|
+
onChange,
|
|
24650
|
+
required,
|
|
24651
|
+
disabled,
|
|
24652
|
+
width,
|
|
24653
|
+
height,
|
|
24654
|
+
error,
|
|
24655
|
+
errorMessage,
|
|
24656
|
+
labelColor,
|
|
24657
|
+
xIconShow,
|
|
24658
|
+
checkBoxColor,
|
|
24659
|
+
showLabelOnTop,
|
|
24660
|
+
dropdownHeight
|
|
24661
|
+
} = _ref;
|
|
24658
24662
|
const [isFocused, setIsFocused] = useState(false);
|
|
24659
24663
|
const [showOptions, setShowOptions] = useState(false);
|
|
24660
24664
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -36106,15 +36110,19 @@ const ToggleInput = styled.input`
|
|
|
36106
36110
|
const ToggleSlider = styled.span`
|
|
36107
36111
|
display: block;
|
|
36108
36112
|
position: relative;
|
|
36109
|
-
background: ${
|
|
36110
|
-
|
|
36111
|
-
|
|
36112
|
-
|
|
36113
|
+
background: ${_ref => {
|
|
36114
|
+
let {
|
|
36115
|
+
checked,
|
|
36116
|
+
disabled
|
|
36117
|
+
} = _ref;
|
|
36118
|
+
return checked ? "#006d6a" : disabled ? "#B1B1B1" : "#D0D0D0";
|
|
36119
|
+
}};
|
|
36113
36120
|
border-radius: 999px;
|
|
36114
36121
|
transition: background 0.2s;
|
|
36115
|
-
${
|
|
36116
|
-
|
|
36117
|
-
|
|
36122
|
+
${_ref2 => {
|
|
36123
|
+
let {
|
|
36124
|
+
size
|
|
36125
|
+
} = _ref2;
|
|
36118
36126
|
switch (size) {
|
|
36119
36127
|
case "s":
|
|
36120
36128
|
return css`width: 40px; height: 20px;`;
|
|
@@ -36130,14 +36138,18 @@ const ToggleSlider = styled.span`
|
|
|
36130
36138
|
left: 3px;
|
|
36131
36139
|
top: 50%;
|
|
36132
36140
|
transform: translateY(-50%);
|
|
36133
|
-
background: ${
|
|
36134
|
-
|
|
36135
|
-
|
|
36141
|
+
background: ${_ref3 => {
|
|
36142
|
+
let {
|
|
36143
|
+
disabled
|
|
36144
|
+
} = _ref3;
|
|
36145
|
+
return disabled ? "#D0D0D0" : "#fff";
|
|
36146
|
+
}};
|
|
36136
36147
|
border-radius: 50%;
|
|
36137
36148
|
transition: left 0.2s, width 0.2s, height 0.2s;
|
|
36138
|
-
${
|
|
36139
|
-
|
|
36140
|
-
|
|
36149
|
+
${_ref4 => {
|
|
36150
|
+
let {
|
|
36151
|
+
size
|
|
36152
|
+
} = _ref4;
|
|
36141
36153
|
switch (size) {
|
|
36142
36154
|
case "s":
|
|
36143
36155
|
return css`width: 14px; height: 14px;`;
|
|
@@ -36147,10 +36159,11 @@ const ToggleSlider = styled.span`
|
|
|
36147
36159
|
return css`width: 20px; height: 20px;`;
|
|
36148
36160
|
}
|
|
36149
36161
|
}}
|
|
36150
|
-
left: ${
|
|
36151
|
-
|
|
36152
|
-
|
|
36153
|
-
|
|
36162
|
+
left: ${_ref5 => {
|
|
36163
|
+
let {
|
|
36164
|
+
checked,
|
|
36165
|
+
size
|
|
36166
|
+
} = _ref5;
|
|
36154
36167
|
if (!checked) return "3px";
|
|
36155
36168
|
switch (size) {
|
|
36156
36169
|
case "s":
|
|
@@ -36164,9 +36177,9 @@ const ToggleSlider = styled.span`
|
|
|
36164
36177
|
}
|
|
36165
36178
|
`;
|
|
36166
36179
|
|
|
36167
|
-
/**
|
|
36168
|
-
* ToggleSwitch component for on/off states.
|
|
36169
|
-
* Supports small/large sizes and disabled state.
|
|
36180
|
+
/**
|
|
36181
|
+
* ToggleSwitch component for on/off states.
|
|
36182
|
+
* Supports small/large sizes and disabled state.
|
|
36170
36183
|
*/
|
|
36171
36184
|
function ToggleSwitch(_ref) {
|
|
36172
36185
|
let {
|
|
@@ -36978,13 +36991,13 @@ const NoEventsWrapper = styled.div`
|
|
|
36978
36991
|
margin-bottom: 14px;
|
|
36979
36992
|
`;
|
|
36980
36993
|
const NoEventsMessage = styled.span`
|
|
36981
|
-
font-size: 18px;
|
|
36994
|
+
font-size: ${props => props.subTitleSize ? props.subTitleSize : '18px'};
|
|
36982
36995
|
font-weight: 400;
|
|
36983
36996
|
margin-bottom: 14px;
|
|
36984
36997
|
text-align: center;
|
|
36985
36998
|
display: block;
|
|
36986
36999
|
> strong {
|
|
36987
|
-
font-size: 24px;
|
|
37000
|
+
font-size: ${props => props.titleSize ? props.titleSize : '24px'};
|
|
36988
37001
|
font-weight: 500;
|
|
36989
37002
|
}
|
|
36990
37003
|
`;
|
|
@@ -37204,8 +37217,8 @@ const NoEvents = ({
|
|
|
37204
37217
|
}));
|
|
37205
37218
|
|
|
37206
37219
|
const NoUpcIcon = ({
|
|
37207
|
-
width = "
|
|
37208
|
-
height = "
|
|
37220
|
+
width = "178",
|
|
37221
|
+
height = "171"
|
|
37209
37222
|
}) => /*#__PURE__*/React$1.createElement("svg", {
|
|
37210
37223
|
width: width,
|
|
37211
37224
|
height: height,
|
|
@@ -46911,6 +46924,7 @@ const Table = props => {
|
|
|
46911
46924
|
noEventsSubtitle = "Let's get started and create your first one!",
|
|
46912
46925
|
noEventsButtonText = "New Event",
|
|
46913
46926
|
noEventsButtonIcon = "Plus",
|
|
46927
|
+
noEventsButtonHeight,
|
|
46914
46928
|
disableNoEventsButton = false,
|
|
46915
46929
|
showNoEventsButton = true,
|
|
46916
46930
|
indexToShimmer = -1,
|
|
@@ -46935,7 +46949,9 @@ const Table = props => {
|
|
|
46935
46949
|
onEditableClick = () => {},
|
|
46936
46950
|
resetFiltersKey = 0,
|
|
46937
46951
|
// NEW: Add this prop
|
|
46938
|
-
ref = null
|
|
46952
|
+
ref = null,
|
|
46953
|
+
titleSize,
|
|
46954
|
+
subTitleSize
|
|
46939
46955
|
} = props;
|
|
46940
46956
|
const scrollWrapperRef = useRef(null);
|
|
46941
46957
|
const tableBodyRef = useRef(null);
|
|
@@ -47074,8 +47090,11 @@ const Table = props => {
|
|
|
47074
47090
|
onEditableClick: onEditableClick,
|
|
47075
47091
|
isEditMode: isEditMode,
|
|
47076
47092
|
editRowIndex: editRowIndex
|
|
47077
|
-
})), data.length === 0 && /*#__PURE__*/React$1.createElement(NoEventsParent, null, /*#__PURE__*/React$1.createElement(NoEventsWrapper, null, showNoDataInSearch ? getNoDataSearchIcon(noDataSearchIcon) : getNoDataIcon(noDataIcon)), /*#__PURE__*/React$1.createElement(NoEventsMessage,
|
|
47078
|
-
|
|
47093
|
+
})), data.length === 0 && /*#__PURE__*/React$1.createElement(NoEventsParent, null, /*#__PURE__*/React$1.createElement(NoEventsWrapper, null, showNoDataInSearch ? getNoDataSearchIcon(noDataSearchIcon) : getNoDataIcon(noDataIcon)), /*#__PURE__*/React$1.createElement(NoEventsMessage, {
|
|
47094
|
+
titleSize: titleSize,
|
|
47095
|
+
subTitleSize: subTitleSize
|
|
47096
|
+
}, showNoDataInSearch ? /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("strong", null, noDataInSearchTitle), /*#__PURE__*/React$1.createElement("br", null), noDataInSearchMessage) : /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("strong", null, noEventsTitle), /*#__PURE__*/React$1.createElement("br", null), noEventsSubtitle)), !showNoDataInSearch && showNoEventsButton && /*#__PURE__*/React$1.createElement(Button$1, {
|
|
47097
|
+
height: noEventsButtonHeight ? noEventsButtonHeight : "45px",
|
|
47079
47098
|
leftIcon: noEventsButtonIcon,
|
|
47080
47099
|
text: noEventsButtonText,
|
|
47081
47100
|
disabled: disableNoEventsButton,
|
|
@@ -58342,7 +58361,7 @@ const QuickFilterCards = _ref => {
|
|
|
58342
58361
|
const StatusCell = styled.div`
|
|
58343
58362
|
display: inline-flex;
|
|
58344
58363
|
height: ${props => props.height};
|
|
58345
|
-
padding:
|
|
58364
|
+
padding: 6px 14px;
|
|
58346
58365
|
justify-content: center;
|
|
58347
58366
|
align-items: center;
|
|
58348
58367
|
gap: 14px;
|