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.js
CHANGED
|
@@ -10591,23 +10591,24 @@ const QuarterPopupPicker = ({
|
|
|
10591
10591
|
};
|
|
10592
10592
|
|
|
10593
10593
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10594
|
-
const QuarterPicker =
|
|
10595
|
-
|
|
10596
|
-
|
|
10597
|
-
|
|
10598
|
-
|
|
10599
|
-
|
|
10600
|
-
|
|
10601
|
-
|
|
10602
|
-
|
|
10603
|
-
|
|
10604
|
-
|
|
10605
|
-
|
|
10606
|
-
|
|
10607
|
-
|
|
10608
|
-
|
|
10609
|
-
|
|
10610
|
-
|
|
10594
|
+
const QuarterPicker = _ref => {
|
|
10595
|
+
let {
|
|
10596
|
+
availableQuarters,
|
|
10597
|
+
// ["Q1-2024"]
|
|
10598
|
+
label,
|
|
10599
|
+
onChange,
|
|
10600
|
+
borderRadius,
|
|
10601
|
+
required,
|
|
10602
|
+
width,
|
|
10603
|
+
height,
|
|
10604
|
+
placeholder,
|
|
10605
|
+
disabled,
|
|
10606
|
+
borderColor,
|
|
10607
|
+
borderColorFocus,
|
|
10608
|
+
textColor,
|
|
10609
|
+
selectedValue,
|
|
10610
|
+
startYear
|
|
10611
|
+
} = _ref;
|
|
10611
10612
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
10612
10613
|
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
10613
10614
|
const [value, setValue] = React$1.useState('');
|
|
@@ -11049,22 +11050,23 @@ const MonthPopupPicker = ({
|
|
|
11049
11050
|
};
|
|
11050
11051
|
|
|
11051
11052
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
11052
|
-
const MonthPicker =
|
|
11053
|
-
|
|
11054
|
-
|
|
11055
|
-
|
|
11056
|
-
|
|
11057
|
-
|
|
11058
|
-
|
|
11059
|
-
|
|
11060
|
-
|
|
11061
|
-
|
|
11062
|
-
|
|
11063
|
-
|
|
11064
|
-
|
|
11065
|
-
|
|
11066
|
-
|
|
11067
|
-
|
|
11053
|
+
const MonthPicker = _ref => {
|
|
11054
|
+
let {
|
|
11055
|
+
availableMonths,
|
|
11056
|
+
label,
|
|
11057
|
+
onChange,
|
|
11058
|
+
borderRadius,
|
|
11059
|
+
required,
|
|
11060
|
+
width,
|
|
11061
|
+
height,
|
|
11062
|
+
placeholder,
|
|
11063
|
+
disabled,
|
|
11064
|
+
borderColor,
|
|
11065
|
+
borderColorFocus,
|
|
11066
|
+
textColor,
|
|
11067
|
+
selectedValue,
|
|
11068
|
+
startYear
|
|
11069
|
+
} = _ref;
|
|
11068
11070
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
11069
11071
|
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
11070
11072
|
const [value, setValue] = React$1.useState('');
|
|
@@ -24175,21 +24177,22 @@ const DeleteIcon = styled__default["default"].div`
|
|
|
24175
24177
|
position: absolute;
|
|
24176
24178
|
`;
|
|
24177
24179
|
|
|
24178
|
-
const QuickFilterDropdownSingle =
|
|
24179
|
-
|
|
24180
|
-
|
|
24181
|
-
|
|
24182
|
-
|
|
24183
|
-
|
|
24184
|
-
|
|
24185
|
-
|
|
24186
|
-
|
|
24187
|
-
|
|
24188
|
-
|
|
24189
|
-
|
|
24190
|
-
|
|
24191
|
-
|
|
24192
|
-
|
|
24180
|
+
const QuickFilterDropdownSingle = _ref => {
|
|
24181
|
+
let {
|
|
24182
|
+
label,
|
|
24183
|
+
hoverColor,
|
|
24184
|
+
options,
|
|
24185
|
+
selectedValue,
|
|
24186
|
+
placeHolder,
|
|
24187
|
+
onChange,
|
|
24188
|
+
disabled,
|
|
24189
|
+
width,
|
|
24190
|
+
error,
|
|
24191
|
+
errorMessage,
|
|
24192
|
+
xIconShow,
|
|
24193
|
+
labelColor,
|
|
24194
|
+
showLabelOnTop
|
|
24195
|
+
} = _ref;
|
|
24193
24196
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24194
24197
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24195
24198
|
const [inputValue, setInputValue] = React$1.useState("");
|
|
@@ -24646,25 +24649,26 @@ const IconContainer$2 = styled__default["default"].div`
|
|
|
24646
24649
|
cursor: pointer;
|
|
24647
24650
|
`;
|
|
24648
24651
|
|
|
24649
|
-
const QuickFilterDropdownMultiSelection =
|
|
24650
|
-
|
|
24651
|
-
|
|
24652
|
-
|
|
24653
|
-
|
|
24654
|
-
|
|
24655
|
-
|
|
24656
|
-
|
|
24657
|
-
|
|
24658
|
-
|
|
24659
|
-
|
|
24660
|
-
|
|
24661
|
-
|
|
24662
|
-
|
|
24663
|
-
|
|
24664
|
-
|
|
24665
|
-
|
|
24666
|
-
|
|
24667
|
-
|
|
24652
|
+
const QuickFilterDropdownMultiSelection = _ref => {
|
|
24653
|
+
let {
|
|
24654
|
+
label,
|
|
24655
|
+
labelEmptyValue,
|
|
24656
|
+
options,
|
|
24657
|
+
selectedValue,
|
|
24658
|
+
placeHolder,
|
|
24659
|
+
onChange,
|
|
24660
|
+
required,
|
|
24661
|
+
disabled,
|
|
24662
|
+
width,
|
|
24663
|
+
height,
|
|
24664
|
+
error,
|
|
24665
|
+
errorMessage,
|
|
24666
|
+
labelColor,
|
|
24667
|
+
xIconShow,
|
|
24668
|
+
checkBoxColor,
|
|
24669
|
+
showLabelOnTop,
|
|
24670
|
+
dropdownHeight
|
|
24671
|
+
} = _ref;
|
|
24668
24672
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24669
24673
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24670
24674
|
const [inputValue, setInputValue] = React$1.useState('');
|
|
@@ -36116,15 +36120,19 @@ const ToggleInput = styled__default["default"].input`
|
|
|
36116
36120
|
const ToggleSlider = styled__default["default"].span`
|
|
36117
36121
|
display: block;
|
|
36118
36122
|
position: relative;
|
|
36119
|
-
background: ${
|
|
36120
|
-
|
|
36121
|
-
|
|
36122
|
-
|
|
36123
|
+
background: ${_ref => {
|
|
36124
|
+
let {
|
|
36125
|
+
checked,
|
|
36126
|
+
disabled
|
|
36127
|
+
} = _ref;
|
|
36128
|
+
return checked ? "#006d6a" : disabled ? "#B1B1B1" : "#D0D0D0";
|
|
36129
|
+
}};
|
|
36123
36130
|
border-radius: 999px;
|
|
36124
36131
|
transition: background 0.2s;
|
|
36125
|
-
${
|
|
36126
|
-
|
|
36127
|
-
|
|
36132
|
+
${_ref2 => {
|
|
36133
|
+
let {
|
|
36134
|
+
size
|
|
36135
|
+
} = _ref2;
|
|
36128
36136
|
switch (size) {
|
|
36129
36137
|
case "s":
|
|
36130
36138
|
return styled.css`width: 40px; height: 20px;`;
|
|
@@ -36140,14 +36148,18 @@ const ToggleSlider = styled__default["default"].span`
|
|
|
36140
36148
|
left: 3px;
|
|
36141
36149
|
top: 50%;
|
|
36142
36150
|
transform: translateY(-50%);
|
|
36143
|
-
background: ${
|
|
36144
|
-
|
|
36145
|
-
|
|
36151
|
+
background: ${_ref3 => {
|
|
36152
|
+
let {
|
|
36153
|
+
disabled
|
|
36154
|
+
} = _ref3;
|
|
36155
|
+
return disabled ? "#D0D0D0" : "#fff";
|
|
36156
|
+
}};
|
|
36146
36157
|
border-radius: 50%;
|
|
36147
36158
|
transition: left 0.2s, width 0.2s, height 0.2s;
|
|
36148
|
-
${
|
|
36149
|
-
|
|
36150
|
-
|
|
36159
|
+
${_ref4 => {
|
|
36160
|
+
let {
|
|
36161
|
+
size
|
|
36162
|
+
} = _ref4;
|
|
36151
36163
|
switch (size) {
|
|
36152
36164
|
case "s":
|
|
36153
36165
|
return styled.css`width: 14px; height: 14px;`;
|
|
@@ -36157,10 +36169,11 @@ const ToggleSlider = styled__default["default"].span`
|
|
|
36157
36169
|
return styled.css`width: 20px; height: 20px;`;
|
|
36158
36170
|
}
|
|
36159
36171
|
}}
|
|
36160
|
-
left: ${
|
|
36161
|
-
|
|
36162
|
-
|
|
36163
|
-
|
|
36172
|
+
left: ${_ref5 => {
|
|
36173
|
+
let {
|
|
36174
|
+
checked,
|
|
36175
|
+
size
|
|
36176
|
+
} = _ref5;
|
|
36164
36177
|
if (!checked) return "3px";
|
|
36165
36178
|
switch (size) {
|
|
36166
36179
|
case "s":
|
|
@@ -36174,9 +36187,9 @@ const ToggleSlider = styled__default["default"].span`
|
|
|
36174
36187
|
}
|
|
36175
36188
|
`;
|
|
36176
36189
|
|
|
36177
|
-
/**
|
|
36178
|
-
* ToggleSwitch component for on/off states.
|
|
36179
|
-
* Supports small/large sizes and disabled state.
|
|
36190
|
+
/**
|
|
36191
|
+
* ToggleSwitch component for on/off states.
|
|
36192
|
+
* Supports small/large sizes and disabled state.
|
|
36180
36193
|
*/
|
|
36181
36194
|
function ToggleSwitch(_ref) {
|
|
36182
36195
|
let {
|
|
@@ -36988,13 +37001,13 @@ const NoEventsWrapper = styled__default["default"].div`
|
|
|
36988
37001
|
margin-bottom: 14px;
|
|
36989
37002
|
`;
|
|
36990
37003
|
const NoEventsMessage = styled__default["default"].span`
|
|
36991
|
-
font-size: 18px;
|
|
37004
|
+
font-size: ${props => props.subTitleSize ? props.subTitleSize : '18px'};
|
|
36992
37005
|
font-weight: 400;
|
|
36993
37006
|
margin-bottom: 14px;
|
|
36994
37007
|
text-align: center;
|
|
36995
37008
|
display: block;
|
|
36996
37009
|
> strong {
|
|
36997
|
-
font-size: 24px;
|
|
37010
|
+
font-size: ${props => props.titleSize ? props.titleSize : '24px'};
|
|
36998
37011
|
font-weight: 500;
|
|
36999
37012
|
}
|
|
37000
37013
|
`;
|
|
@@ -37214,8 +37227,8 @@ const NoEvents = ({
|
|
|
37214
37227
|
}));
|
|
37215
37228
|
|
|
37216
37229
|
const NoUpcIcon = ({
|
|
37217
|
-
width = "
|
|
37218
|
-
height = "
|
|
37230
|
+
width = "178",
|
|
37231
|
+
height = "171"
|
|
37219
37232
|
}) => /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
37220
37233
|
width: width,
|
|
37221
37234
|
height: height,
|
|
@@ -46921,6 +46934,7 @@ const Table = props => {
|
|
|
46921
46934
|
noEventsSubtitle = "Let's get started and create your first one!",
|
|
46922
46935
|
noEventsButtonText = "New Event",
|
|
46923
46936
|
noEventsButtonIcon = "Plus",
|
|
46937
|
+
noEventsButtonHeight,
|
|
46924
46938
|
disableNoEventsButton = false,
|
|
46925
46939
|
showNoEventsButton = true,
|
|
46926
46940
|
indexToShimmer = -1,
|
|
@@ -46945,7 +46959,9 @@ const Table = props => {
|
|
|
46945
46959
|
onEditableClick = () => {},
|
|
46946
46960
|
resetFiltersKey = 0,
|
|
46947
46961
|
// NEW: Add this prop
|
|
46948
|
-
ref = null
|
|
46962
|
+
ref = null,
|
|
46963
|
+
titleSize,
|
|
46964
|
+
subTitleSize
|
|
46949
46965
|
} = props;
|
|
46950
46966
|
const scrollWrapperRef = React$1.useRef(null);
|
|
46951
46967
|
const tableBodyRef = React$1.useRef(null);
|
|
@@ -47084,8 +47100,11 @@ const Table = props => {
|
|
|
47084
47100
|
onEditableClick: onEditableClick,
|
|
47085
47101
|
isEditMode: isEditMode,
|
|
47086
47102
|
editRowIndex: editRowIndex
|
|
47087
|
-
})), data.length === 0 && /*#__PURE__*/React__default["default"].createElement(NoEventsParent, null, /*#__PURE__*/React__default["default"].createElement(NoEventsWrapper, null, showNoDataInSearch ? getNoDataSearchIcon(noDataSearchIcon) : getNoDataIcon(noDataIcon)), /*#__PURE__*/React__default["default"].createElement(NoEventsMessage,
|
|
47088
|
-
|
|
47103
|
+
})), data.length === 0 && /*#__PURE__*/React__default["default"].createElement(NoEventsParent, null, /*#__PURE__*/React__default["default"].createElement(NoEventsWrapper, null, showNoDataInSearch ? getNoDataSearchIcon(noDataSearchIcon) : getNoDataIcon(noDataIcon)), /*#__PURE__*/React__default["default"].createElement(NoEventsMessage, {
|
|
47104
|
+
titleSize: titleSize,
|
|
47105
|
+
subTitleSize: subTitleSize
|
|
47106
|
+
}, showNoDataInSearch ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("strong", null, noDataInSearchTitle), /*#__PURE__*/React__default["default"].createElement("br", null), noDataInSearchMessage) : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("strong", null, noEventsTitle), /*#__PURE__*/React__default["default"].createElement("br", null), noEventsSubtitle)), !showNoDataInSearch && showNoEventsButton && /*#__PURE__*/React__default["default"].createElement(Button$1, {
|
|
47107
|
+
height: noEventsButtonHeight ? noEventsButtonHeight : "45px",
|
|
47089
47108
|
leftIcon: noEventsButtonIcon,
|
|
47090
47109
|
text: noEventsButtonText,
|
|
47091
47110
|
disabled: disableNoEventsButton,
|
|
@@ -58352,7 +58371,7 @@ const QuickFilterCards = _ref => {
|
|
|
58352
58371
|
const StatusCell = styled__default["default"].div`
|
|
58353
58372
|
display: inline-flex;
|
|
58354
58373
|
height: ${props => props.height};
|
|
58355
|
-
padding:
|
|
58374
|
+
padding: 6px 14px;
|
|
58356
58375
|
justify-content: center;
|
|
58357
58376
|
align-items: center;
|
|
58358
58377
|
gap: 14px;
|