sag_components 2.0.0-beta274 → 2.0.0-beta276

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.js CHANGED
@@ -9302,7 +9302,6 @@ const Label$7 = styled__default["default"].label`
9302
9302
  return props.isFocused || props.hasValue ? '0px' : `${height / 2 - 4}px`;
9303
9303
  }};
9304
9304
  left: ${props => props.isFocused || props.hasValue ? '23px' : '10px'};
9305
- font-family: Poppins;
9306
9305
  transform: translateY(-50%);
9307
9306
  transition: ${props => props.showLabelOnTop ? 'top 0.3s ease, font-size 0.3s ease, color 0.3s ease' : ''} ;
9308
9307
  display: flex;
@@ -10591,23 +10590,24 @@ const QuarterPopupPicker = ({
10591
10590
  };
10592
10591
 
10593
10592
  /* eslint-disable import/no-extraneous-dependencies */
10594
- const QuarterPicker = ({
10595
- availableQuarters,
10596
- // ["Q1-2024"]
10597
- label,
10598
- onChange,
10599
- borderRadius,
10600
- required,
10601
- width,
10602
- height,
10603
- placeholder,
10604
- disabled,
10605
- borderColor,
10606
- borderColorFocus,
10607
- textColor,
10608
- selectedValue,
10609
- startYear
10610
- }) => {
10593
+ const QuarterPicker = _ref => {
10594
+ let {
10595
+ availableQuarters,
10596
+ // ["Q1-2024"]
10597
+ label,
10598
+ onChange,
10599
+ borderRadius,
10600
+ required,
10601
+ width,
10602
+ height,
10603
+ placeholder,
10604
+ disabled,
10605
+ borderColor,
10606
+ borderColorFocus,
10607
+ textColor,
10608
+ selectedValue,
10609
+ startYear
10610
+ } = _ref;
10611
10611
  const [isFocused, setIsFocused] = React$1.useState(false);
10612
10612
  const [isOpen, setIsOpen] = React$1.useState(false);
10613
10613
  const [value, setValue] = React$1.useState('');
@@ -11049,22 +11049,23 @@ const MonthPopupPicker = ({
11049
11049
  };
11050
11050
 
11051
11051
  /* eslint-disable import/no-extraneous-dependencies */
11052
- const MonthPicker = ({
11053
- availableMonths,
11054
- label,
11055
- onChange,
11056
- borderRadius,
11057
- required,
11058
- width,
11059
- height,
11060
- placeholder,
11061
- disabled,
11062
- borderColor,
11063
- borderColorFocus,
11064
- textColor,
11065
- selectedValue,
11066
- startYear
11067
- }) => {
11052
+ const MonthPicker = _ref => {
11053
+ let {
11054
+ availableMonths,
11055
+ label,
11056
+ onChange,
11057
+ borderRadius,
11058
+ required,
11059
+ width,
11060
+ height,
11061
+ placeholder,
11062
+ disabled,
11063
+ borderColor,
11064
+ borderColorFocus,
11065
+ textColor,
11066
+ selectedValue,
11067
+ startYear
11068
+ } = _ref;
11068
11069
  const [isFocused, setIsFocused] = React$1.useState(false);
11069
11070
  const [isOpen, setIsOpen] = React$1.useState(false);
11070
11071
  const [value, setValue] = React$1.useState('');
@@ -24175,21 +24176,22 @@ const DeleteIcon = styled__default["default"].div`
24175
24176
  position: absolute;
24176
24177
  `;
24177
24178
 
24178
- const QuickFilterDropdownSingle = ({
24179
- label,
24180
- hoverColor,
24181
- options,
24182
- selectedValue,
24183
- placeHolder,
24184
- onChange,
24185
- disabled,
24186
- width,
24187
- error,
24188
- errorMessage,
24189
- xIconShow,
24190
- labelColor,
24191
- showLabelOnTop
24192
- }) => {
24179
+ const QuickFilterDropdownSingle = _ref => {
24180
+ let {
24181
+ label,
24182
+ hoverColor,
24183
+ options,
24184
+ selectedValue,
24185
+ placeHolder,
24186
+ onChange,
24187
+ disabled,
24188
+ width,
24189
+ error,
24190
+ errorMessage,
24191
+ xIconShow,
24192
+ labelColor,
24193
+ showLabelOnTop
24194
+ } = _ref;
24193
24195
  const [isFocused, setIsFocused] = React$1.useState(false);
24194
24196
  const [showOptions, setShowOptions] = React$1.useState(false);
24195
24197
  const [inputValue, setInputValue] = React$1.useState("");
@@ -24550,7 +24552,6 @@ const OptionsContainer$1 = styled__default["default"].div`
24550
24552
  width: 100%;
24551
24553
  background-color: #fff;
24552
24554
  display: ${props => props.showoptions && props.filteredoptions?.length > 0 ? 'block' : 'none'};
24553
-
24554
24555
  `;
24555
24556
  const OptionsSubContainer = styled__default["default"].ul`
24556
24557
  list-style: none;
@@ -24562,7 +24563,6 @@ const OptionsSubContainer = styled__default["default"].ul`
24562
24563
  left: 0;
24563
24564
  z-index: 101;
24564
24565
  width: calc(100% - 23px);
24565
- font-family: Poppins;
24566
24566
  border-radius: 4px;
24567
24567
  background-color: #fff;
24568
24568
  display: ${props => props.showoptions && props.filteredoptions?.length > 0 ? 'block' : 'none'};
@@ -24573,13 +24573,10 @@ const OptionsSubContainer = styled__default["default"].ul`
24573
24573
  const OptionItem = styled__default["default"].li`
24574
24574
  display: flex;
24575
24575
  align-items: center;
24576
- gap: 8px;
24577
24576
  padding: 10px;
24578
24577
  cursor: pointer;
24579
24578
  color: #212121;
24580
- font-family: Poppins;
24581
24579
  font-size: 14px;
24582
- font-style: normal;
24583
24580
  font-weight: 400;
24584
24581
  transition: background-color 0.3s;
24585
24582
 
@@ -24594,7 +24591,6 @@ const ErrorMessage$1 = styled__default["default"].div`
24594
24591
  `;
24595
24592
  const SelectedOptionsContainer = styled__default["default"].div`
24596
24593
  display: flex;
24597
- flex-direction: row;
24598
24594
  align-items: center;
24599
24595
  gap: 4px;
24600
24596
  flex-wrap: nowrap;
@@ -24643,28 +24639,30 @@ const SelectedOptionCount = styled__default["default"].div`
24643
24639
  const IconContainer$2 = styled__default["default"].div`
24644
24640
  display: flex;
24645
24641
  padding: 2px;
24646
- cursor: pointer;
24642
+ margin-right: 8px;
24643
+ cursor: pointer;
24647
24644
  `;
24648
24645
 
24649
- const QuickFilterDropdownMultiSelection = ({
24650
- label,
24651
- labelEmptyValue,
24652
- options,
24653
- selectedValue,
24654
- placeHolder,
24655
- onChange,
24656
- required,
24657
- disabled,
24658
- width,
24659
- height,
24660
- error,
24661
- errorMessage,
24662
- labelColor,
24663
- xIconShow,
24664
- checkBoxColor,
24665
- showLabelOnTop,
24666
- dropdownHeight
24667
- }) => {
24646
+ const QuickFilterDropdownMultiSelection = _ref => {
24647
+ let {
24648
+ label,
24649
+ labelEmptyValue,
24650
+ options,
24651
+ selectedValue,
24652
+ placeHolder,
24653
+ onChange,
24654
+ required,
24655
+ disabled,
24656
+ width,
24657
+ height,
24658
+ error,
24659
+ errorMessage,
24660
+ labelColor,
24661
+ xIconShow,
24662
+ checkBoxColor,
24663
+ showLabelOnTop,
24664
+ dropdownHeight
24665
+ } = _ref;
24668
24666
  const [isFocused, setIsFocused] = React$1.useState(false);
24669
24667
  const [showOptions, setShowOptions] = React$1.useState(false);
24670
24668
  const [inputValue, setInputValue] = React$1.useState('');
@@ -35693,7 +35691,7 @@ const Label$3 = styled__default["default"].label`
35693
35691
  if (props.multiline) {
35694
35692
  return props.isFocused || props.hasValue ? '0px' : '20px';
35695
35693
  }
35696
- return props.isFocused || props.hasValue ? '0px' : props.size === 'medium' ? '27px' : '17px';
35694
+ return props.isFocused || props.hasValue ? '0px' : props.size === 'medium' ? '50%' : '17px';
35697
35695
  }};
35698
35696
  left: ${props => {
35699
35697
  if (props.multiline) {
@@ -35701,7 +35699,6 @@ const Label$3 = styled__default["default"].label`
35701
35699
  }
35702
35700
  return props.isFocused || props.hasValue ? '23px' : props.leftIcon && props.leftIcon !== 'none' ? '42px' : '16px';
35703
35701
  }};
35704
- font-family: Poppins;
35705
35702
  transform: translateY(-50%);
35706
35703
  transition: top 0.3s ease, font-size 0.3s ease, color 0.3s ease;
35707
35704
  display: flex;
@@ -36181,9 +36178,9 @@ const ToggleSlider = styled__default["default"].span`
36181
36178
  }
36182
36179
  `;
36183
36180
 
36184
- /**
36185
- * ToggleSwitch component for on/off states.
36186
- * Supports small/large sizes and disabled state.
36181
+ /**
36182
+ * ToggleSwitch component for on/off states.
36183
+ * Supports small/large sizes and disabled state.
36187
36184
  */
36188
36185
  function ToggleSwitch(_ref) {
36189
36186
  let {
@@ -37425,8 +37422,8 @@ const ColumnContent = styled__default["default"].div`
37425
37422
  min-height: 20px;
37426
37423
  `;
37427
37424
  const ColumnCheckbox = styled__default["default"].input`
37428
- width: 16px;
37429
- height: 16px;
37425
+ width: 18px;
37426
+ height: 18px;
37430
37427
  cursor: pointer;
37431
37428
  margin: 0;
37432
37429
  `;
@@ -40410,6 +40407,7 @@ const Radio = styled__default["default"].input`
40410
40407
  `;
40411
40408
  const Actions$1 = styled__default["default"].div`
40412
40409
  display: flex;
40410
+ align-items: center;
40413
40411
  justify-content: space-between;
40414
40412
  padding-top: 12px;
40415
40413
  `;
@@ -41315,14 +41313,7 @@ const TableHeader = ({
41315
41313
  onChange: e => handleHeaderCheckboxClick(column.key, e),
41316
41314
  "data-column": column.key,
41317
41315
  style: {
41318
- width: '18px',
41319
- height: '18px',
41320
- marginLeft: '10px',
41321
- cursor: 'pointer',
41322
- accentColor: '#066768',
41323
- display: 'flex',
41324
- alignItems: 'center',
41325
- justifyContent: 'center'
41316
+ accentColor: '#066768'
41326
41317
  }
41327
41318
  }), column.title && /*#__PURE__*/React__default["default"].createElement(ColumnLabel, null, column.title), (column.filter || column.sort) && /*#__PURE__*/React__default["default"].createElement(ColumnActions, null, column.sort && /*#__PURE__*/React__default["default"].createElement(IconButton, {
41328
41319
  ref: el => iconRefs.current[`sort-${column.key}`] = el,
@@ -42080,6 +42071,18 @@ styled__default["default"].div`
42080
42071
  }
42081
42072
  `}
42082
42073
  `;
42074
+ const CheckboxInput = styled__default["default"].input`
42075
+ width: 18px;
42076
+ height: 18px;
42077
+ margin: 0;
42078
+ accent-color: ${props => props.buttonColor || '#066768'};
42079
+ cursor: pointer;
42080
+
42081
+ &:disabled {
42082
+ cursor: not-allowed;
42083
+ opacity: 0.5;
42084
+ }
42085
+ `;
42083
42086
  const HeroButton = styled__default["default"].button`
42084
42087
  display: flex;
42085
42088
  align-items: center;
@@ -42723,6 +42726,7 @@ const TableBody = /*#__PURE__*/React$1.forwardRef(({
42723
42726
  onDropdownSelected = () => {},
42724
42727
  onCheckboxClick = () => {},
42725
42728
  onHeaderCheckboxClick = () => {},
42729
+ disableCheckboxTooltipText = "",
42726
42730
  onHeroClick = () => {},
42727
42731
  onEditableClick = () => {},
42728
42732
  isEditMode = false,
@@ -43126,12 +43130,12 @@ const TableBody = /*#__PURE__*/React$1.forwardRef(({
43126
43130
  hoverTextColor: "#B1B1B1",
43127
43131
  hoverBackgroundColor: "#E6F0F0",
43128
43132
  hoverBorderColor: "#D9D9D9",
43133
+ disabled: true,
43129
43134
  disabledTextColor: "#B1B1B1",
43130
- disabledBackgroundColor: focusedRowIndex === rowIndex ? "#D1E7E7" : hoveredRowIndex === rowIndex ? "#E6F0F0" : "#FFF",
43131
43135
  disabledBorderColor: "#D9D9D9",
43136
+ disabledBackgroundColor: focusedRowIndex === rowIndex ? "#D1E7E7" : hoveredRowIndex === rowIndex ? "#E6F0F0" : "#FFF",
43132
43137
  width: "100px",
43133
- height: "32px",
43134
- disabled: true
43138
+ height: "32px"
43135
43139
  }));
43136
43140
  } else if (lowerValue === "draft") {
43137
43141
  return /*#__PURE__*/React__default["default"].createElement(ButtonWrapper, {
@@ -43353,24 +43357,15 @@ const TableBody = /*#__PURE__*/React$1.forwardRef(({
43353
43357
  return /*#__PURE__*/React__default["default"].createElement("div", {
43354
43358
  style: {
43355
43359
  display: "flex",
43356
- alignItems: "center",
43357
- justifyContent: "center",
43358
- width: "100%",
43359
- height: "100%"
43360
+ alignItems: "center"
43360
43361
  }
43361
- }, /*#__PURE__*/React__default["default"].createElement("input", {
43362
+ }, /*#__PURE__*/React__default["default"].createElement(CheckboxInput, {
43362
43363
  type: "checkbox",
43363
43364
  checked: isChecked,
43364
43365
  disabled: isDisabled,
43366
+ buttonColor: buttonColor,
43365
43367
  onChange: e => handleCheckboxClick(row, column.key, e),
43366
- onClick: e => e.stopPropagation(),
43367
- style: {
43368
- width: "18px",
43369
- height: "18px",
43370
- cursor: isDisabled ? "not-allowed" : "pointer",
43371
- accentColor: buttonColor,
43372
- opacity: isDisabled ? 0.5 : 1
43373
- }
43368
+ onClick: e => e.stopPropagation()
43374
43369
  }));
43375
43370
  } catch (e) {
43376
43371
  console.warn('Error formatting checkbox:', e);
@@ -47000,6 +46995,7 @@ const Table = props => {
47000
46995
  onCheckboxClick = () => {},
47001
46996
  onHeaderCheckboxClick = () => {},
47002
46997
  headerCheckboxStates = {},
46998
+ disableCheckboxTooltipText = "",
47003
46999
  onHeroClick = () => {},
47004
47000
  dotIndicatorColor = '#34D399',
47005
47001
  onEditableClick = () => {},
@@ -47144,6 +47140,7 @@ const Table = props => {
47144
47140
  onDropdownSelected: onDropdownSelected,
47145
47141
  onCheckboxClick: onCheckboxClick,
47146
47142
  onHeaderCheckboxClick: onHeaderCheckboxClick,
47143
+ disableCheckboxTooltipText: disableCheckboxTooltipText,
47147
47144
  onHeroClick: onHeroClick,
47148
47145
  onEditableClick: onEditableClick,
47149
47146
  isEditMode: isEditMode,
@@ -57772,27 +57769,32 @@ OverlayTemplateDialog.propTypes = {
57772
57769
  // Main Component
57773
57770
  const OverlayDropdown = _ref => {
57774
57771
  let {
57772
+ // Data / selection
57775
57773
  data = [],
57776
57774
  value,
57777
57775
  onSelectClick,
57776
+ // Label / placeholder
57777
+ label,
57778
+ labelEmptyValue,
57779
+ showLabelOnTop,
57780
+ labelColor,
57781
+ placeHolder,
57782
+ placeHolderColor,
57783
+ // Behavior
57784
+ required = false,
57778
57785
  disabled = false,
57779
57786
  isDarkerBackground = false,
57780
- required = false,
57787
+ editableDigitalCoupon = false,
57788
+ // Appearance
57781
57789
  selectedColor = "#066768",
57782
57790
  hoverColor = "#E6F0F0",
57783
- dropdownMaxHeight = "600px",
57791
+ // Sizing
57784
57792
  width = "100%",
57785
57793
  minWidth = "unset",
57794
+ dropdownWidth = "100%",
57795
+ dropdownMaxHeight = "600px",
57786
57796
  height = "auto",
57787
- label,
57788
- labelEmptyValue,
57789
- showLabelOnTop,
57790
- placeHolder,
57791
- labelColor,
57792
- placeHolderColor,
57793
57797
  margin = "8px",
57794
- dropdownWidth = "100%",
57795
- editableDigitalCoupon = false,
57796
57798
  ...props
57797
57799
  } = _ref;
57798
57800
  const [open, setOpen] = React$1.useState(false);