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.js CHANGED
@@ -8939,27 +8939,26 @@ const IconContainer$5 = styled__default["default"].div`
8939
8939
  cursor: pointer;
8940
8940
  `;
8941
8941
 
8942
- const DropdownSingleNew = _ref => {
8943
- let {
8944
- label,
8945
- labelEmptyValue,
8946
- options,
8947
- selectedValue,
8948
- onChange,
8949
- required,
8950
- disabled,
8951
- width,
8952
- height,
8953
- withMarginBottom = true,
8954
- error,
8955
- errorMessage,
8956
- xIconShow,
8957
- labelColor,
8958
- showLabelOnTop,
8959
- orderBy,
8960
- placeHolder = "",
8961
- elementType
8962
- } = _ref;
8942
+ const DropdownSingleNew = ({
8943
+ label,
8944
+ labelEmptyValue,
8945
+ options,
8946
+ selectedValue,
8947
+ onChange,
8948
+ required,
8949
+ disabled,
8950
+ width,
8951
+ height,
8952
+ withMarginBottom = true,
8953
+ error,
8954
+ errorMessage,
8955
+ xIconShow,
8956
+ labelColor,
8957
+ showLabelOnTop,
8958
+ orderBy,
8959
+ placeHolder = "",
8960
+ elementType
8961
+ }) => {
8963
8962
  const [isFocused, setIsFocused] = React$1.useState(false);
8964
8963
  const [showOptions, setShowOptions] = React$1.useState(false);
8965
8964
  const [showAbove, setShowAbove] = React$1.useState(false);
@@ -9464,27 +9463,26 @@ const IconContainer$4 = styled__default["default"].div`
9464
9463
  cursor: pointer;
9465
9464
  `;
9466
9465
 
9467
- const DropdownMultiNew = _ref => {
9468
- let {
9469
- label,
9470
- labelEmptyValue,
9471
- options,
9472
- selectedValue,
9473
- onChange,
9474
- required,
9475
- disabled,
9476
- width,
9477
- height,
9478
- withMarginBottom = true,
9479
- error,
9480
- errorMessage,
9481
- labelColor,
9482
- xIconShow,
9483
- checkBoxColor,
9484
- showLabelOnTop,
9485
- orderBy,
9486
- elementType
9487
- } = _ref;
9466
+ const DropdownMultiNew = ({
9467
+ label,
9468
+ labelEmptyValue,
9469
+ options,
9470
+ selectedValue,
9471
+ onChange,
9472
+ required,
9473
+ disabled,
9474
+ width,
9475
+ height,
9476
+ withMarginBottom = true,
9477
+ error,
9478
+ errorMessage,
9479
+ labelColor,
9480
+ xIconShow,
9481
+ checkBoxColor,
9482
+ showLabelOnTop,
9483
+ orderBy,
9484
+ elementType
9485
+ }) => {
9488
9486
  const [isFocused, setIsFocused] = React$1.useState(false);
9489
9487
  const [showOptions, setShowOptions] = React$1.useState(false);
9490
9488
  const [showAbove, setShowAbove] = React$1.useState(false);
@@ -24179,22 +24177,21 @@ const DeleteIcon = styled__default["default"].div`
24179
24177
  position: absolute;
24180
24178
  `;
24181
24179
 
24182
- const QuickFilterDropdownSingle = _ref => {
24183
- let {
24184
- label,
24185
- hoverColor,
24186
- options,
24187
- selectedValue,
24188
- placeHolder,
24189
- onChange,
24190
- disabled,
24191
- width,
24192
- error,
24193
- errorMessage,
24194
- xIconShow,
24195
- labelColor,
24196
- showLabelOnTop
24197
- } = _ref;
24180
+ const QuickFilterDropdownSingle = ({
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
+ }) => {
24198
24195
  const [isFocused, setIsFocused] = React$1.useState(false);
24199
24196
  const [showOptions, setShowOptions] = React$1.useState(false);
24200
24197
  const [inputValue, setInputValue] = React$1.useState("");
@@ -24651,26 +24648,25 @@ const IconContainer$2 = styled__default["default"].div`
24651
24648
  cursor: pointer;
24652
24649
  `;
24653
24650
 
24654
- const QuickFilterDropdownMultiSelection = _ref => {
24655
- let {
24656
- label,
24657
- labelEmptyValue,
24658
- options,
24659
- selectedValue,
24660
- placeHolder,
24661
- onChange,
24662
- required,
24663
- disabled,
24664
- width,
24665
- height,
24666
- error,
24667
- errorMessage,
24668
- labelColor,
24669
- xIconShow,
24670
- checkBoxColor,
24671
- showLabelOnTop,
24672
- dropdownHeight
24673
- } = _ref;
24651
+ const QuickFilterDropdownMultiSelection = ({
24652
+ label,
24653
+ labelEmptyValue,
24654
+ options,
24655
+ selectedValue,
24656
+ placeHolder,
24657
+ onChange,
24658
+ required,
24659
+ disabled,
24660
+ width,
24661
+ height,
24662
+ error,
24663
+ errorMessage,
24664
+ labelColor,
24665
+ xIconShow,
24666
+ checkBoxColor,
24667
+ showLabelOnTop,
24668
+ dropdownHeight
24669
+ }) => {
24674
24670
  const [isFocused, setIsFocused] = React$1.useState(false);
24675
24671
  const [showOptions, setShowOptions] = React$1.useState(false);
24676
24672
  const [inputValue, setInputValue] = React$1.useState('');
@@ -34983,18 +34979,17 @@ styled.css`
34983
34979
  * • onApply(start,end) — callback, both numbers (inclusive)
34984
34980
  * • onCancel() — callback
34985
34981
  */
34986
- const WeeksCalendar = _ref => {
34987
- let {
34988
- year,
34989
- defaultStartWeek = null,
34990
- defaultEndWeek = null,
34991
- backgroundColor = "#066768",
34992
- hoverBackgroundColor = "#E6F0F0",
34993
- allowedWeekRange = null,
34994
- // New prop for range restriction
34995
- onApply,
34996
- onCancel
34997
- } = _ref;
34982
+ const WeeksCalendar = ({
34983
+ year,
34984
+ defaultStartWeek = null,
34985
+ defaultEndWeek = null,
34986
+ backgroundColor = "#066768",
34987
+ hoverBackgroundColor = "#E6F0F0",
34988
+ allowedWeekRange = null,
34989
+ // New prop for range restriction
34990
+ onApply,
34991
+ onCancel
34992
+ }) => {
34998
34993
  // state -------------------------------------------------
34999
34994
  const [startWeek, setStartWeek] = React$1.useState(defaultStartWeek);
35000
34995
  const [endWeek, setEndWeek] = React$1.useState(defaultEndWeek);
@@ -36102,12 +36097,6 @@ const ToggleSwitchLabel = styled__default["default"].label`
36102
36097
  position: relative;
36103
36098
  cursor: pointer;
36104
36099
  user-select: none;
36105
- opacity: ${_ref => {
36106
- let {
36107
- disabled
36108
- } = _ref;
36109
- return disabled ? 0.5 : 1;
36110
- }};
36111
36100
  `;
36112
36101
  const ToggleInput = styled__default["default"].input`
36113
36102
  display: none;
@@ -36115,19 +36104,15 @@ const ToggleInput = styled__default["default"].input`
36115
36104
  const ToggleSlider = styled__default["default"].span`
36116
36105
  display: block;
36117
36106
  position: relative;
36118
- background: ${_ref2 => {
36119
- let {
36120
- checked,
36121
- disabled
36122
- } = _ref2;
36123
- return checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc";
36124
- }};
36107
+ background: ${({
36108
+ checked,
36109
+ disabled
36110
+ }) => checked ? "#006d6a" : disabled ? "#B1B1B1" : "#D0D0D0"};
36125
36111
  border-radius: 999px;
36126
36112
  transition: background 0.2s;
36127
- ${_ref3 => {
36128
- let {
36129
- size
36130
- } = _ref3;
36113
+ ${({
36114
+ size
36115
+ }) => {
36131
36116
  switch (size) {
36132
36117
  case "s":
36133
36118
  return styled.css`width: 40px; height: 20px;`;
@@ -36143,13 +36128,14 @@ const ToggleSlider = styled__default["default"].span`
36143
36128
  left: 3px;
36144
36129
  top: 50%;
36145
36130
  transform: translateY(-50%);
36146
- background: #fff;
36131
+ background: ${({
36132
+ disabled
36133
+ }) => disabled ? "#D0D0D0" : "#fff"};
36147
36134
  border-radius: 50%;
36148
36135
  transition: left 0.2s, width 0.2s, height 0.2s;
36149
- ${_ref4 => {
36150
- let {
36151
- size
36152
- } = _ref4;
36136
+ ${({
36137
+ size
36138
+ }) => {
36153
36139
  switch (size) {
36154
36140
  case "s":
36155
36141
  return styled.css`width: 14px; height: 14px;`;
@@ -36159,11 +36145,10 @@ const ToggleSlider = styled__default["default"].span`
36159
36145
  return styled.css`width: 20px; height: 20px;`;
36160
36146
  }
36161
36147
  }}
36162
- left: ${_ref5 => {
36163
- let {
36164
- checked,
36165
- size
36166
- } = _ref5;
36148
+ left: ${({
36149
+ checked,
36150
+ size
36151
+ }) => {
36167
36152
  if (!checked) return "3px";
36168
36153
  switch (size) {
36169
36154
  case "s":
@@ -54917,11 +54902,10 @@ const DropdownList = styled__default["default"].ul`
54917
54902
  `}
54918
54903
  `;
54919
54904
  const SectionDiv = styled__default["default"].div`
54920
- ${_ref => {
54921
- let {
54922
- $showBorder,
54923
- margin
54924
- } = _ref;
54905
+ ${({
54906
+ $showBorder,
54907
+ margin
54908
+ }) => {
54925
54909
  switch ($showBorder) {
54926
54910
  case 'Template Offer':
54927
54911
  return styled.css`border-top: 1px solid #e6e2e2ff;