sag_components 2.0.0-beta254 → 2.0.0-beta256

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 CHANGED
@@ -10581,23 +10581,24 @@ const QuarterPopupPicker = ({
10581
10581
  };
10582
10582
 
10583
10583
  /* eslint-disable import/no-extraneous-dependencies */
10584
- const QuarterPicker = ({
10585
- availableQuarters,
10586
- // ["Q1-2024"]
10587
- label,
10588
- onChange,
10589
- borderRadius,
10590
- required,
10591
- width,
10592
- height,
10593
- placeholder,
10594
- disabled,
10595
- borderColor,
10596
- borderColorFocus,
10597
- textColor,
10598
- selectedValue,
10599
- startYear
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
- availableMonths,
11044
- label,
11045
- onChange,
11046
- borderRadius,
11047
- required,
11048
- width,
11049
- height,
11050
- placeholder,
11051
- disabled,
11052
- borderColor,
11053
- borderColorFocus,
11054
- textColor,
11055
- selectedValue,
11056
- startYear
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
- label,
24170
- hoverColor,
24171
- options,
24172
- selectedValue,
24173
- placeHolder,
24174
- onChange,
24175
- disabled,
24176
- width,
24177
- error,
24178
- errorMessage,
24179
- xIconShow,
24180
- labelColor,
24181
- showLabelOnTop
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("");
@@ -36164,9 +36167,9 @@ const ToggleSlider = styled.span`
36164
36167
  }
36165
36168
  `;
36166
36169
 
36167
- /**
36168
- * ToggleSwitch component for on/off states.
36169
- * Supports small/large sizes and disabled state.
36170
+ /**
36171
+ * ToggleSwitch component for on/off states.
36172
+ * Supports small/large sizes and disabled state.
36170
36173
  */
36171
36174
  function ToggleSwitch(_ref) {
36172
36175
  let {
@@ -36978,13 +36981,13 @@ const NoEventsWrapper = styled.div`
36978
36981
  margin-bottom: 14px;
36979
36982
  `;
36980
36983
  const NoEventsMessage = styled.span`
36981
- font-size: 18px;
36984
+ font-size: ${props => props.subTitleSize ? props.subTitleSize : '18px'};
36982
36985
  font-weight: 400;
36983
36986
  margin-bottom: 14px;
36984
36987
  text-align: center;
36985
36988
  display: block;
36986
36989
  > strong {
36987
- font-size: 24px;
36990
+ font-size: ${props => props.titleSize ? props.titleSize : '24px'};
36988
36991
  font-weight: 500;
36989
36992
  }
36990
36993
  `;
@@ -37204,8 +37207,8 @@ const NoEvents = ({
37204
37207
  }));
37205
37208
 
37206
37209
  const NoUpcIcon = ({
37207
- width = "251",
37208
- height = "250"
37210
+ width = "178",
37211
+ height = "171"
37209
37212
  }) => /*#__PURE__*/React$1.createElement("svg", {
37210
37213
  width: width,
37211
37214
  height: height,
@@ -42036,6 +42039,7 @@ const EditableCell = styled.div`
42036
42039
  display: flex;
42037
42040
  gap: 10px;
42038
42041
  align-items: center;
42042
+ justify-content: end;
42039
42043
  `;
42040
42044
  const PencilButton = styled.button`
42041
42045
  display: flex;
@@ -46911,6 +46915,7 @@ const Table = props => {
46911
46915
  noEventsSubtitle = "Let's get started and create your first one!",
46912
46916
  noEventsButtonText = "New Event",
46913
46917
  noEventsButtonIcon = "Plus",
46918
+ noEventsButtonHeight,
46914
46919
  disableNoEventsButton = false,
46915
46920
  showNoEventsButton = true,
46916
46921
  indexToShimmer = -1,
@@ -46935,7 +46940,9 @@ const Table = props => {
46935
46940
  onEditableClick = () => {},
46936
46941
  resetFiltersKey = 0,
46937
46942
  // NEW: Add this prop
46938
- ref = null
46943
+ ref = null,
46944
+ titleSize,
46945
+ subTitleSize
46939
46946
  } = props;
46940
46947
  const scrollWrapperRef = useRef(null);
46941
46948
  const tableBodyRef = useRef(null);
@@ -47074,8 +47081,11 @@ const Table = props => {
47074
47081
  onEditableClick: onEditableClick,
47075
47082
  isEditMode: isEditMode,
47076
47083
  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, null, 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, {
47078
- height: "45px",
47084
+ })), 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, {
47085
+ titleSize: titleSize,
47086
+ subTitleSize: subTitleSize
47087
+ }, 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, {
47088
+ height: noEventsButtonHeight ? noEventsButtonHeight : "45px",
47079
47089
  leftIcon: noEventsButtonIcon,
47080
47090
  text: noEventsButtonText,
47081
47091
  disabled: disableNoEventsButton,
@@ -58342,7 +58352,7 @@ const QuickFilterCards = _ref => {
58342
58352
  const StatusCell = styled.div`
58343
58353
  display: inline-flex;
58344
58354
  height: ${props => props.height};
58345
- padding: 8px 12px;
58355
+ padding: 6px 14px;
58346
58356
  justify-content: center;
58347
58357
  align-items: center;
58348
58358
  gap: 14px;