sag_components 2.0.0-beta235 → 2.0.0-beta236

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
@@ -8929,27 +8929,26 @@ const IconContainer$5 = styled.div`
8929
8929
  cursor: pointer;
8930
8930
  `;
8931
8931
 
8932
- const DropdownSingleNew = _ref => {
8933
- let {
8934
- label,
8935
- labelEmptyValue,
8936
- options,
8937
- selectedValue,
8938
- onChange,
8939
- required,
8940
- disabled,
8941
- width,
8942
- height,
8943
- withMarginBottom = true,
8944
- error,
8945
- errorMessage,
8946
- xIconShow,
8947
- labelColor,
8948
- showLabelOnTop,
8949
- orderBy,
8950
- placeHolder = "",
8951
- elementType
8952
- } = _ref;
8932
+ const DropdownSingleNew = ({
8933
+ label,
8934
+ labelEmptyValue,
8935
+ options,
8936
+ selectedValue,
8937
+ onChange,
8938
+ required,
8939
+ disabled,
8940
+ width,
8941
+ height,
8942
+ withMarginBottom = true,
8943
+ error,
8944
+ errorMessage,
8945
+ xIconShow,
8946
+ labelColor,
8947
+ showLabelOnTop,
8948
+ orderBy,
8949
+ placeHolder = "",
8950
+ elementType
8951
+ }) => {
8953
8952
  const [isFocused, setIsFocused] = useState(false);
8954
8953
  const [showOptions, setShowOptions] = useState(false);
8955
8954
  const [showAbove, setShowAbove] = useState(false);
@@ -9454,27 +9453,26 @@ const IconContainer$4 = styled.div`
9454
9453
  cursor: pointer;
9455
9454
  `;
9456
9455
 
9457
- const DropdownMultiNew = _ref => {
9458
- let {
9459
- label,
9460
- labelEmptyValue,
9461
- options,
9462
- selectedValue,
9463
- onChange,
9464
- required,
9465
- disabled,
9466
- width,
9467
- height,
9468
- withMarginBottom = true,
9469
- error,
9470
- errorMessage,
9471
- labelColor,
9472
- xIconShow,
9473
- checkBoxColor,
9474
- showLabelOnTop,
9475
- orderBy,
9476
- elementType
9477
- } = _ref;
9456
+ const DropdownMultiNew = ({
9457
+ label,
9458
+ labelEmptyValue,
9459
+ options,
9460
+ selectedValue,
9461
+ onChange,
9462
+ required,
9463
+ disabled,
9464
+ width,
9465
+ height,
9466
+ withMarginBottom = true,
9467
+ error,
9468
+ errorMessage,
9469
+ labelColor,
9470
+ xIconShow,
9471
+ checkBoxColor,
9472
+ showLabelOnTop,
9473
+ orderBy,
9474
+ elementType
9475
+ }) => {
9478
9476
  const [isFocused, setIsFocused] = useState(false);
9479
9477
  const [showOptions, setShowOptions] = useState(false);
9480
9478
  const [showAbove, setShowAbove] = useState(false);
@@ -24169,22 +24167,21 @@ const DeleteIcon = styled.div`
24169
24167
  position: absolute;
24170
24168
  `;
24171
24169
 
24172
- const QuickFilterDropdownSingle = _ref => {
24173
- let {
24174
- label,
24175
- hoverColor,
24176
- options,
24177
- selectedValue,
24178
- placeHolder,
24179
- onChange,
24180
- disabled,
24181
- width,
24182
- error,
24183
- errorMessage,
24184
- xIconShow,
24185
- labelColor,
24186
- showLabelOnTop
24187
- } = _ref;
24170
+ const QuickFilterDropdownSingle = ({
24171
+ label,
24172
+ hoverColor,
24173
+ options,
24174
+ selectedValue,
24175
+ placeHolder,
24176
+ onChange,
24177
+ disabled,
24178
+ width,
24179
+ error,
24180
+ errorMessage,
24181
+ xIconShow,
24182
+ labelColor,
24183
+ showLabelOnTop
24184
+ }) => {
24188
24185
  const [isFocused, setIsFocused] = useState(false);
24189
24186
  const [showOptions, setShowOptions] = useState(false);
24190
24187
  const [inputValue, setInputValue] = useState("");
@@ -24641,26 +24638,25 @@ const IconContainer$2 = styled.div`
24641
24638
  cursor: pointer;
24642
24639
  `;
24643
24640
 
24644
- const QuickFilterDropdownMultiSelection = _ref => {
24645
- let {
24646
- label,
24647
- labelEmptyValue,
24648
- options,
24649
- selectedValue,
24650
- placeHolder,
24651
- onChange,
24652
- required,
24653
- disabled,
24654
- width,
24655
- height,
24656
- error,
24657
- errorMessage,
24658
- labelColor,
24659
- xIconShow,
24660
- checkBoxColor,
24661
- showLabelOnTop,
24662
- dropdownHeight
24663
- } = _ref;
24641
+ const QuickFilterDropdownMultiSelection = ({
24642
+ label,
24643
+ labelEmptyValue,
24644
+ options,
24645
+ selectedValue,
24646
+ placeHolder,
24647
+ onChange,
24648
+ required,
24649
+ disabled,
24650
+ width,
24651
+ height,
24652
+ error,
24653
+ errorMessage,
24654
+ labelColor,
24655
+ xIconShow,
24656
+ checkBoxColor,
24657
+ showLabelOnTop,
24658
+ dropdownHeight
24659
+ }) => {
24664
24660
  const [isFocused, setIsFocused] = useState(false);
24665
24661
  const [showOptions, setShowOptions] = useState(false);
24666
24662
  const [inputValue, setInputValue] = useState('');
@@ -34973,18 +34969,17 @@ css`
34973
34969
  * • onApply(start,end) — callback, both numbers (inclusive)
34974
34970
  * • onCancel() — callback
34975
34971
  */
34976
- const WeeksCalendar = _ref => {
34977
- let {
34978
- year,
34979
- defaultStartWeek = null,
34980
- defaultEndWeek = null,
34981
- backgroundColor = "#066768",
34982
- hoverBackgroundColor = "#E6F0F0",
34983
- allowedWeekRange = null,
34984
- // New prop for range restriction
34985
- onApply,
34986
- onCancel
34987
- } = _ref;
34972
+ const WeeksCalendar = ({
34973
+ year,
34974
+ defaultStartWeek = null,
34975
+ defaultEndWeek = null,
34976
+ backgroundColor = "#066768",
34977
+ hoverBackgroundColor = "#E6F0F0",
34978
+ allowedWeekRange = null,
34979
+ // New prop for range restriction
34980
+ onApply,
34981
+ onCancel
34982
+ }) => {
34988
34983
  // state -------------------------------------------------
34989
34984
  const [startWeek, setStartWeek] = useState(defaultStartWeek);
34990
34985
  const [endWeek, setEndWeek] = useState(defaultEndWeek);
@@ -36092,12 +36087,6 @@ const ToggleSwitchLabel = styled.label`
36092
36087
  position: relative;
36093
36088
  cursor: pointer;
36094
36089
  user-select: none;
36095
- opacity: ${_ref => {
36096
- let {
36097
- disabled
36098
- } = _ref;
36099
- return disabled ? 0.5 : 1;
36100
- }};
36101
36090
  `;
36102
36091
  const ToggleInput = styled.input`
36103
36092
  display: none;
@@ -36105,19 +36094,15 @@ const ToggleInput = styled.input`
36105
36094
  const ToggleSlider = styled.span`
36106
36095
  display: block;
36107
36096
  position: relative;
36108
- background: ${_ref2 => {
36109
- let {
36110
- checked,
36111
- disabled
36112
- } = _ref2;
36113
- return checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc";
36114
- }};
36097
+ background: ${({
36098
+ checked,
36099
+ disabled
36100
+ }) => checked ? "#006d6a" : disabled ? "#B1B1B1" : "#D0D0D0"};
36115
36101
  border-radius: 999px;
36116
36102
  transition: background 0.2s;
36117
- ${_ref3 => {
36118
- let {
36119
- size
36120
- } = _ref3;
36103
+ ${({
36104
+ size
36105
+ }) => {
36121
36106
  switch (size) {
36122
36107
  case "s":
36123
36108
  return css`width: 40px; height: 20px;`;
@@ -36133,13 +36118,14 @@ const ToggleSlider = styled.span`
36133
36118
  left: 3px;
36134
36119
  top: 50%;
36135
36120
  transform: translateY(-50%);
36136
- background: #fff;
36121
+ background: ${({
36122
+ disabled
36123
+ }) => disabled ? "#D0D0D0" : "#fff"};
36137
36124
  border-radius: 50%;
36138
36125
  transition: left 0.2s, width 0.2s, height 0.2s;
36139
- ${_ref4 => {
36140
- let {
36141
- size
36142
- } = _ref4;
36126
+ ${({
36127
+ size
36128
+ }) => {
36143
36129
  switch (size) {
36144
36130
  case "s":
36145
36131
  return css`width: 14px; height: 14px;`;
@@ -36149,11 +36135,10 @@ const ToggleSlider = styled.span`
36149
36135
  return css`width: 20px; height: 20px;`;
36150
36136
  }
36151
36137
  }}
36152
- left: ${_ref5 => {
36153
- let {
36154
- checked,
36155
- size
36156
- } = _ref5;
36138
+ left: ${({
36139
+ checked,
36140
+ size
36141
+ }) => {
36157
36142
  if (!checked) return "3px";
36158
36143
  switch (size) {
36159
36144
  case "s":
@@ -54907,11 +54892,10 @@ const DropdownList = styled.ul`
54907
54892
  `}
54908
54893
  `;
54909
54894
  const SectionDiv = styled.div`
54910
- ${_ref => {
54911
- let {
54912
- $showBorder,
54913
- margin
54914
- } = _ref;
54895
+ ${({
54896
+ $showBorder,
54897
+ margin
54898
+ }) => {
54915
54899
  switch ($showBorder) {
54916
54900
  case 'Template Offer':
54917
54901
  return css`border-top: 1px solid #e6e2e2ff;