sag_components 2.0.0-beta208 → 2.0.0-beta210

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
@@ -10580,24 +10580,23 @@ const QuarterPopupPicker = ({
10580
10580
  };
10581
10581
 
10582
10582
  /* eslint-disable import/no-extraneous-dependencies */
10583
- const QuarterPicker = _ref => {
10584
- let {
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
- } = _ref;
10583
+ const QuarterPicker = ({
10584
+ availableQuarters,
10585
+ // ["Q1-2024"]
10586
+ label,
10587
+ onChange,
10588
+ borderRadius,
10589
+ required,
10590
+ width,
10591
+ height,
10592
+ placeholder,
10593
+ disabled,
10594
+ borderColor,
10595
+ borderColorFocus,
10596
+ textColor,
10597
+ selectedValue,
10598
+ startYear
10599
+ }) => {
10601
10600
  const [isFocused, setIsFocused] = useState(false);
10602
10601
  const [isOpen, setIsOpen] = useState(false);
10603
10602
  const [value, setValue] = useState('');
@@ -11039,23 +11038,22 @@ const MonthPopupPicker = ({
11039
11038
  };
11040
11039
 
11041
11040
  /* eslint-disable import/no-extraneous-dependencies */
11042
- const MonthPicker = _ref => {
11043
- let {
11044
- availableMonths,
11045
- label,
11046
- onChange,
11047
- borderRadius,
11048
- required,
11049
- width,
11050
- height,
11051
- placeholder,
11052
- disabled,
11053
- borderColor,
11054
- borderColorFocus,
11055
- textColor,
11056
- selectedValue,
11057
- startYear
11058
- } = _ref;
11041
+ const MonthPicker = ({
11042
+ availableMonths,
11043
+ label,
11044
+ onChange,
11045
+ borderRadius,
11046
+ required,
11047
+ width,
11048
+ height,
11049
+ placeholder,
11050
+ disabled,
11051
+ borderColor,
11052
+ borderColorFocus,
11053
+ textColor,
11054
+ selectedValue,
11055
+ startYear
11056
+ }) => {
11059
11057
  const [isFocused, setIsFocused] = useState(false);
11060
11058
  const [isOpen, setIsOpen] = useState(false);
11061
11059
  const [value, setValue] = useState('');
@@ -24166,22 +24164,21 @@ const DeleteIcon = styled.div`
24166
24164
  position: absolute;
24167
24165
  `;
24168
24166
 
24169
- const QuickFilterDropdownSingle = _ref => {
24170
- let {
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
- } = _ref;
24167
+ const QuickFilterDropdownSingle = ({
24168
+ label,
24169
+ hoverColor,
24170
+ options,
24171
+ selectedValue,
24172
+ placeHolder,
24173
+ onChange,
24174
+ disabled,
24175
+ width,
24176
+ error,
24177
+ errorMessage,
24178
+ xIconShow,
24179
+ labelColor,
24180
+ showLabelOnTop
24181
+ }) => {
24185
24182
  const [isFocused, setIsFocused] = useState(false);
24186
24183
  const [showOptions, setShowOptions] = useState(false);
24187
24184
  const [inputValue, setInputValue] = useState("");
@@ -24578,24 +24575,23 @@ const IconContainer$2 = styled.div`
24578
24575
  cursor: pointer;
24579
24576
  `;
24580
24577
 
24581
- const QuickFilterDropdownMultiSelection = _ref => {
24582
- let {
24583
- label,
24584
- labelEmptyValue,
24585
- options,
24586
- selectedValue,
24587
- placeHolder,
24588
- onChange,
24589
- required,
24590
- disabled,
24591
- width,
24592
- error,
24593
- errorMessage,
24594
- labelColor,
24595
- xIconShow,
24596
- checkBoxColor,
24597
- showLabelOnTop
24598
- } = _ref;
24578
+ const QuickFilterDropdownMultiSelection = ({
24579
+ label,
24580
+ labelEmptyValue,
24581
+ options,
24582
+ selectedValue,
24583
+ placeHolder,
24584
+ onChange,
24585
+ required,
24586
+ disabled,
24587
+ width,
24588
+ error,
24589
+ errorMessage,
24590
+ labelColor,
24591
+ xIconShow,
24592
+ checkBoxColor,
24593
+ showLabelOnTop
24594
+ }) => {
24599
24595
  const [isFocused, setIsFocused] = useState(false);
24600
24596
  const [showOptions, setShowOptions] = useState(false);
24601
24597
  const [inputValue, setInputValue] = useState('');
@@ -35971,12 +35967,9 @@ const ToggleSwitchLabel = styled.label`
35971
35967
  position: relative;
35972
35968
  cursor: pointer;
35973
35969
  user-select: none;
35974
- opacity: ${_ref => {
35975
- let {
35976
- disabled
35977
- } = _ref;
35978
- return disabled ? 0.5 : 1;
35979
- }};
35970
+ opacity: ${({
35971
+ disabled
35972
+ }) => disabled ? 0.5 : 1};
35980
35973
  `;
35981
35974
  const ToggleInput = styled.input`
35982
35975
  display: none;
@@ -35984,19 +35977,15 @@ const ToggleInput = styled.input`
35984
35977
  const ToggleSlider = styled.span`
35985
35978
  display: block;
35986
35979
  position: relative;
35987
- background: ${_ref2 => {
35988
- let {
35989
- checked,
35990
- disabled
35991
- } = _ref2;
35992
- return checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc";
35993
- }};
35980
+ background: ${({
35981
+ checked,
35982
+ disabled
35983
+ }) => checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc"};
35994
35984
  border-radius: 999px;
35995
35985
  transition: background 0.2s;
35996
- ${_ref3 => {
35997
- let {
35998
- size
35999
- } = _ref3;
35986
+ ${({
35987
+ size
35988
+ }) => {
36000
35989
  switch (size) {
36001
35990
  case "s":
36002
35991
  return css`width: 40px; height: 20px;`;
@@ -36015,10 +36004,9 @@ const ToggleSlider = styled.span`
36015
36004
  background: #fff;
36016
36005
  border-radius: 50%;
36017
36006
  transition: left 0.2s, width 0.2s, height 0.2s;
36018
- ${_ref4 => {
36019
- let {
36020
- size
36021
- } = _ref4;
36007
+ ${({
36008
+ size
36009
+ }) => {
36022
36010
  switch (size) {
36023
36011
  case "s":
36024
36012
  return css`width: 14px; height: 14px;`;
@@ -36028,11 +36016,10 @@ const ToggleSlider = styled.span`
36028
36016
  return css`width: 20px; height: 20px;`;
36029
36017
  }
36030
36018
  }}
36031
- left: ${_ref5 => {
36032
- let {
36033
- checked,
36034
- size
36035
- } = _ref5;
36019
+ left: ${({
36020
+ checked,
36021
+ size
36022
+ }) => {
36036
36023
  if (!checked) return "3px";
36037
36024
  switch (size) {
36038
36025
  case "s":
@@ -36046,9 +36033,9 @@ const ToggleSlider = styled.span`
36046
36033
  }
36047
36034
  `;
36048
36035
 
36049
- /**
36050
- * ToggleSwitch component for on/off states.
36051
- * Supports small/large sizes and disabled state.
36036
+ /**
36037
+ * ToggleSwitch component for on/off states.
36038
+ * Supports small/large sizes and disabled state.
36052
36039
  */
36053
36040
  function ToggleSwitch(_ref) {
36054
36041
  let {
@@ -44816,7 +44803,6 @@ const NewItemList = ({
44816
44803
  }), /*#__PURE__*/React$1.createElement(VendorSearchResult, null, search !== "" ? `${filteredItems.length === 0 ? "No" : filteredItems.length} Vendors Found` : " ")), /*#__PURE__*/React$1.createElement(VendorListWrapper$1, {
44817
44804
  headerHeight: headerHeight
44818
44805
  }, /*#__PURE__*/React$1.createElement(VendorList$1, null, filteredItems.map((item, idx) => {
44819
- console.log("item", item);
44820
44806
  let packagesLength = 0;
44821
44807
  let sentPackagesLength = 0;
44822
44808
  if (item.packages !== null) {
@@ -45170,11 +45156,6 @@ const NewSubitemList = props => {
45170
45156
  setSelectedPackage(item);
45171
45157
  handleSubitemDetail(item); // Pass the package object for editing
45172
45158
  };
45173
-
45174
- // useEffect(() => {
45175
- // console.log("Vendor items updated:", vendorItems);
45176
- // console.log("Props:", props);
45177
- // }, [vendorItems]);
45178
45159
  const setupTooltip = (el, tooltipText) => {
45179
45160
  if (el && tooltipText) {
45180
45161
  const rect = el.getBoundingClientRect();
@@ -45415,7 +45396,6 @@ const NewSubitem = ({
45415
45396
  // Form state
45416
45397
  const [isApplyEnabled, setIsApplyEnabled] = useState(negotiatedBrands.trim().length > 2);
45417
45398
  useEffect(() => {
45418
- console.log("packageObject", vendor);
45419
45399
  if (!packageObject) return;
45420
45400
  if (!packageObject.brands) return;
45421
45401
  setNegotiatedBrands(packageObject.brands);
@@ -47026,9 +47006,9 @@ var layers = [
47026
47006
  c: {
47027
47007
  a: 0,
47028
47008
  k: [
47029
- 0.1628,
47030
- 0.9172,
47031
- 0.7915,
47009
+ 0.03529411764705882,
47010
+ 0.403921568627451,
47011
+ 0.40784313725490196,
47032
47012
  1
47033
47013
  ],
47034
47014
  ix: 4
@@ -47283,9 +47263,9 @@ var layers = [
47283
47263
  c: {
47284
47264
  a: 0,
47285
47265
  k: [
47286
- 0,
47287
- 1,
47288
- 0.8333,
47266
+ 0.03529411764705882,
47267
+ 0.403921568627451,
47268
+ 0.40784313725490196,
47289
47269
  1
47290
47270
  ],
47291
47271
  ix: 3
@@ -47313,9 +47293,9 @@ var layers = [
47313
47293
  c: {
47314
47294
  a: 0,
47315
47295
  k: [
47316
- 0,
47317
- 1,
47318
- 0.8333,
47296
+ 0.03529411764705882,
47297
+ 0.403921568627451,
47298
+ 0.40784313725490196,
47319
47299
  1
47320
47300
  ],
47321
47301
  ix: 4
@@ -47696,9 +47676,9 @@ var layers = [
47696
47676
  c: {
47697
47677
  a: 0,
47698
47678
  k: [
47699
- 0,
47700
- 1,
47701
- 0.8333,
47679
+ 0.03529411764705882,
47680
+ 0.403921568627451,
47681
+ 0.40784313725490196,
47702
47682
  1
47703
47683
  ],
47704
47684
  ix: 3
@@ -47726,9 +47706,9 @@ var layers = [
47726
47706
  c: {
47727
47707
  a: 0,
47728
47708
  k: [
47729
- 0,
47730
- 1,
47731
- 0.8333,
47709
+ 0.03529411764705882,
47710
+ 0.403921568627451,
47711
+ 0.40784313725490196,
47732
47712
  1
47733
47713
  ],
47734
47714
  ix: 4
@@ -48109,9 +48089,9 @@ var layers = [
48109
48089
  c: {
48110
48090
  a: 0,
48111
48091
  k: [
48112
- 0,
48113
- 1,
48114
- 0.8333,
48092
+ 0.03529411764705882,
48093
+ 0.403921568627451,
48094
+ 0.40784313725490196,
48115
48095
  1
48116
48096
  ],
48117
48097
  ix: 3
@@ -48139,9 +48119,9 @@ var layers = [
48139
48119
  c: {
48140
48120
  a: 0,
48141
48121
  k: [
48142
- 0,
48143
- 1,
48144
- 0.8333,
48122
+ 0.03529411764705882,
48123
+ 0.403921568627451,
48124
+ 0.40784313725490196,
48145
48125
  1
48146
48126
  ],
48147
48127
  ix: 4
@@ -48522,9 +48502,9 @@ var layers = [
48522
48502
  c: {
48523
48503
  a: 0,
48524
48504
  k: [
48525
- 0,
48526
- 1,
48527
- 0.8333,
48505
+ 0.03529411764705882,
48506
+ 0.403921568627451,
48507
+ 0.40784313725490196,
48528
48508
  1
48529
48509
  ],
48530
48510
  ix: 3
@@ -48552,9 +48532,9 @@ var layers = [
48552
48532
  c: {
48553
48533
  a: 0,
48554
48534
  k: [
48555
- 0,
48556
- 1,
48557
- 0.8333,
48535
+ 0.03529411764705882,
48536
+ 0.403921568627451,
48537
+ 0.40784313725490196,
48558
48538
  1
48559
48539
  ],
48560
48540
  ix: 4
@@ -48935,9 +48915,9 @@ var layers = [
48935
48915
  c: {
48936
48916
  a: 0,
48937
48917
  k: [
48938
- 0,
48939
- 1,
48940
- 0.8333,
48918
+ 0.03529411764705882,
48919
+ 0.403921568627451,
48920
+ 0.40784313725490196,
48941
48921
  1
48942
48922
  ],
48943
48923
  ix: 3
@@ -48965,9 +48945,9 @@ var layers = [
48965
48945
  c: {
48966
48946
  a: 0,
48967
48947
  k: [
48968
- 0,
48969
- 1,
48970
- 0.8333,
48948
+ 0.03529411764705882,
48949
+ 0.403921568627451,
48950
+ 0.40784313725490196,
48971
48951
  1
48972
48952
  ],
48973
48953
  ix: 4
@@ -49348,9 +49328,9 @@ var layers = [
49348
49328
  c: {
49349
49329
  a: 0,
49350
49330
  k: [
49351
- 0,
49352
- 1,
49353
- 0.8333,
49331
+ 0.03529411764705882,
49332
+ 0.403921568627451,
49333
+ 0.40784313725490196,
49354
49334
  1
49355
49335
  ],
49356
49336
  ix: 3
@@ -49378,9 +49358,9 @@ var layers = [
49378
49358
  c: {
49379
49359
  a: 0,
49380
49360
  k: [
49381
- 0,
49382
- 1,
49383
- 0.8333,
49361
+ 0.03529411764705882,
49362
+ 0.403921568627451,
49363
+ 0.40784313725490196,
49384
49364
  1
49385
49365
  ],
49386
49366
  ix: 4
@@ -49761,9 +49741,9 @@ var layers = [
49761
49741
  c: {
49762
49742
  a: 0,
49763
49743
  k: [
49764
- 0,
49765
- 1,
49766
- 0.8333,
49744
+ 0.03529411764705882,
49745
+ 0.403921568627451,
49746
+ 0.40784313725490196,
49767
49747
  1
49768
49748
  ],
49769
49749
  ix: 3
@@ -49791,9 +49771,9 @@ var layers = [
49791
49771
  c: {
49792
49772
  a: 0,
49793
49773
  k: [
49794
- 0,
49795
- 1,
49796
- 0.8333,
49774
+ 0.03529411764705882,
49775
+ 0.403921568627451,
49776
+ 0.40784313725490196,
49797
49777
  1
49798
49778
  ],
49799
49779
  ix: 4
@@ -50174,9 +50154,9 @@ var layers = [
50174
50154
  c: {
50175
50155
  a: 0,
50176
50156
  k: [
50177
- 0,
50178
- 1,
50179
- 0.8333,
50157
+ 0.03529411764705882,
50158
+ 0.403921568627451,
50159
+ 0.40784313725490196,
50180
50160
  1
50181
50161
  ],
50182
50162
  ix: 3
@@ -50204,9 +50184,9 @@ var layers = [
50204
50184
  c: {
50205
50185
  a: 0,
50206
50186
  k: [
50207
- 0,
50208
- 1,
50209
- 0.8333,
50187
+ 0.03529411764705882,
50188
+ 0.403921568627451,
50189
+ 0.40784313725490196,
50210
50190
  1
50211
50191
  ],
50212
50192
  ix: 4
@@ -50587,9 +50567,9 @@ var layers = [
50587
50567
  c: {
50588
50568
  a: 0,
50589
50569
  k: [
50590
- 0,
50591
- 1,
50592
- 0.8333,
50570
+ 0.03529411764705882,
50571
+ 0.403921568627451,
50572
+ 0.40784313725490196,
50593
50573
  1
50594
50574
  ],
50595
50575
  ix: 3
@@ -50617,9 +50597,9 @@ var layers = [
50617
50597
  c: {
50618
50598
  a: 0,
50619
50599
  k: [
50620
- 0,
50621
- 1,
50622
- 0.8333,
50600
+ 0.03529411764705882,
50601
+ 0.403921568627451,
50602
+ 0.40784313725490196,
50623
50603
  1
50624
50604
  ],
50625
50605
  ix: 4
@@ -51000,9 +50980,9 @@ var layers = [
51000
50980
  c: {
51001
50981
  a: 0,
51002
50982
  k: [
51003
- 0,
51004
- 1,
51005
- 0.8333,
50983
+ 0.03529411764705882,
50984
+ 0.403921568627451,
50985
+ 0.40784313725490196,
51006
50986
  1
51007
50987
  ],
51008
50988
  ix: 3
@@ -51030,9 +51010,9 @@ var layers = [
51030
51010
  c: {
51031
51011
  a: 0,
51032
51012
  k: [
51033
- 0,
51034
- 1,
51035
- 0.8333,
51013
+ 0.03529411764705882,
51014
+ 0.403921568627451,
51015
+ 0.40784313725490196,
51036
51016
  1
51037
51017
  ],
51038
51018
  ix: 4
@@ -51413,9 +51393,9 @@ var layers = [
51413
51393
  c: {
51414
51394
  a: 0,
51415
51395
  k: [
51416
- 0,
51417
- 1,
51418
- 0.8333,
51396
+ 0.03529411764705882,
51397
+ 0.403921568627451,
51398
+ 0.40784313725490196,
51419
51399
  1
51420
51400
  ],
51421
51401
  ix: 3
@@ -51443,9 +51423,9 @@ var layers = [
51443
51423
  c: {
51444
51424
  a: 0,
51445
51425
  k: [
51446
- 0,
51447
- 1,
51448
- 0.8333,
51426
+ 0.03529411764705882,
51427
+ 0.403921568627451,
51428
+ 0.40784313725490196,
51449
51429
  1
51450
51430
  ],
51451
51431
  ix: 4
@@ -51826,9 +51806,9 @@ var layers = [
51826
51806
  c: {
51827
51807
  a: 0,
51828
51808
  k: [
51829
- 0,
51830
- 1,
51831
- 0.8333,
51809
+ 0.03529411764705882,
51810
+ 0.403921568627451,
51811
+ 0.40784313725490196,
51832
51812
  1
51833
51813
  ],
51834
51814
  ix: 3
@@ -51856,9 +51836,9 @@ var layers = [
51856
51836
  c: {
51857
51837
  a: 0,
51858
51838
  k: [
51859
- 0,
51860
- 1,
51861
- 0.8333,
51839
+ 0.03529411764705882,
51840
+ 0.403921568627451,
51841
+ 0.40784313725490196,
51862
51842
  1
51863
51843
  ],
51864
51844
  ix: 4
@@ -52239,9 +52219,9 @@ var layers = [
52239
52219
  c: {
52240
52220
  a: 0,
52241
52221
  k: [
52242
- 0,
52243
- 1,
52244
- 0.8333,
52222
+ 0.03529411764705882,
52223
+ 0.403921568627451,
52224
+ 0.40784313725490196,
52245
52225
  1
52246
52226
  ],
52247
52227
  ix: 3
@@ -52269,9 +52249,9 @@ var layers = [
52269
52249
  c: {
52270
52250
  a: 0,
52271
52251
  k: [
52272
- 0,
52273
- 1,
52274
- 0.8333,
52252
+ 0.03529411764705882,
52253
+ 0.403921568627451,
52254
+ 0.40784313725490196,
52275
52255
  1
52276
52256
  ],
52277
52257
  ix: 4
@@ -52652,9 +52632,9 @@ var layers = [
52652
52632
  c: {
52653
52633
  a: 0,
52654
52634
  k: [
52655
- 0,
52656
- 1,
52657
- 0.8333,
52635
+ 0.03529411764705882,
52636
+ 0.403921568627451,
52637
+ 0.40784313725490196,
52658
52638
  1
52659
52639
  ],
52660
52640
  ix: 3
@@ -52682,9 +52662,9 @@ var layers = [
52682
52662
  c: {
52683
52663
  a: 0,
52684
52664
  k: [
52685
- 0,
52686
- 1,
52687
- 0.8333,
52665
+ 0.03529411764705882,
52666
+ 0.403921568627451,
52667
+ 0.40784313725490196,
52688
52668
  1
52689
52669
  ],
52690
52670
  ix: 4
@@ -53065,9 +53045,9 @@ var layers = [
53065
53045
  c: {
53066
53046
  a: 0,
53067
53047
  k: [
53068
- 0,
53069
- 0.6941,
53070
- 0.5765,
53048
+ 0.03529411764705882,
53049
+ 0.403921568627451,
53050
+ 0.40784313725490196,
53071
53051
  1
53072
53052
  ],
53073
53053
  ix: 3
@@ -53095,9 +53075,9 @@ var layers = [
53095
53075
  c: {
53096
53076
  a: 0,
53097
53077
  k: [
53098
- 0,
53099
- 1,
53100
- 0.8333,
53078
+ 0.03529411764705882,
53079
+ 0.403921568627451,
53080
+ 0.40784313725490196,
53101
53081
  1
53102
53082
  ],
53103
53083
  ix: 4
@@ -53478,9 +53458,9 @@ var layers = [
53478
53458
  c: {
53479
53459
  a: 0,
53480
53460
  k: [
53481
- 0,
53482
- 1,
53483
- 0.8333,
53461
+ 0.03529411764705882,
53462
+ 0.403921568627451,
53463
+ 0.40784313725490196,
53484
53464
  1
53485
53465
  ],
53486
53466
  ix: 3
@@ -53508,9 +53488,9 @@ var layers = [
53508
53488
  c: {
53509
53489
  a: 0,
53510
53490
  k: [
53511
- 0,
53512
- 1,
53513
- 0.8333,
53491
+ 0.03529411764705882,
53492
+ 0.403921568627451,
53493
+ 0.40784313725490196,
53514
53494
  1
53515
53495
  ],
53516
53496
  ix: 4
@@ -53965,9 +53945,9 @@ var layers = [
53965
53945
  c: {
53966
53946
  a: 0,
53967
53947
  k: [
53968
- 0.05,
53969
- 0.95,
53970
- 0.8,
53948
+ 0.03529411764705882,
53949
+ 0.403921568627451,
53950
+ 0.40784313725490196,
53971
53951
  1
53972
53952
  ],
53973
53953
  ix: 3
@@ -53995,9 +53975,9 @@ var layers = [
53995
53975
  c: {
53996
53976
  a: 0,
53997
53977
  k: [
53998
- 1,
53999
- 1,
54000
- 1,
53978
+ 0.03529411764705882,
53979
+ 0.403921568627451,
53980
+ 0.40784313725490196,
54001
53981
  1
54002
53982
  ],
54003
53983
  ix: 4
@@ -55308,7 +55288,7 @@ const ToasterMessageBox = _ref => {
55308
55288
  linkText = '',
55309
55289
  duration = 5,
55310
55290
  width = '500px',
55311
- icon = OkCircleIcon,
55291
+ icon = 'ok',
55312
55292
  onLinkClick = () => {},
55313
55293
  onClose = () => {}
55314
55294
  } = _ref;