sag_components 2.0.0-beta280 → 2.0.0-beta282
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.d.ts +5 -1
- package/dist/index.esm.js +107 -83
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +107 -83
- package/dist/index.js.map +1 -1
- package/dist/types/components/DropdownMultiNew/DropdownMultiNew.d.ts +2 -1
- package/dist/types/components/DropdownNew/DropdownNew.stories.d.ts +31 -10
- package/dist/types/components/DropdownSingleNew/DropdownSingleNew.d.ts +2 -1
- package/dist/types/components/Input/Input.d.ts +5 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1305,7 +1305,7 @@ declare function WeeksPicker({ label, disabled, borderColor, borderColorFocus, t
|
|
|
1305
1305
|
restrictToRange?: boolean;
|
|
1306
1306
|
}): react_jsx_runtime.JSX.Element;
|
|
1307
1307
|
|
|
1308
|
-
declare function Input({ label, labelEmptyValue, size, selectedValue, placeHolder, inputType, onChange, onClick, onBlur, required, disabled, isDarkerBackground, width, minWidth, height, error, errorMessage, labelColor, leftIcon, rightIcon, password, leftIconOnClick, rightIconOnClick, multiline, rows, maxLength, regex, onKeyDown, }: {
|
|
1308
|
+
declare function Input({ label, labelEmptyValue, size, selectedValue, placeHolder, inputType, onChange, onClick, onBlur, required, disabled, isDarkerBackground, width, minWidth, height, minHeight, error, errorMessage, labelColor, leftIcon, rightIcon, password, leftIconOnClick, rightIconOnClick, multiline, rows, maxLength, regex, onKeyDown, }: {
|
|
1309
1309
|
label: any;
|
|
1310
1310
|
labelEmptyValue: any;
|
|
1311
1311
|
size: any;
|
|
@@ -1321,6 +1321,7 @@ declare function Input({ label, labelEmptyValue, size, selectedValue, placeHolde
|
|
|
1321
1321
|
width: any;
|
|
1322
1322
|
minWidth: any;
|
|
1323
1323
|
height?: string;
|
|
1324
|
+
minHeight: any;
|
|
1324
1325
|
error: any;
|
|
1325
1326
|
errorMessage: any;
|
|
1326
1327
|
labelColor: any;
|
|
@@ -1345,6 +1346,7 @@ declare namespace Input {
|
|
|
1345
1346
|
const required: PropTypes.Requireable<boolean>;
|
|
1346
1347
|
const width: PropTypes.Requireable<string>;
|
|
1347
1348
|
const minWidth: PropTypes.Requireable<string>;
|
|
1349
|
+
const minHeight: PropTypes.Requireable<string>;
|
|
1348
1350
|
const disabled: PropTypes.Requireable<boolean>;
|
|
1349
1351
|
const error: PropTypes.Requireable<boolean>;
|
|
1350
1352
|
const errorMessage: PropTypes.Requireable<string>;
|
|
@@ -1380,6 +1382,8 @@ declare namespace Input {
|
|
|
1380
1382
|
export { width_1 as width };
|
|
1381
1383
|
const minWidth_1: string;
|
|
1382
1384
|
export { minWidth_1 as minWidth };
|
|
1385
|
+
const minHeight_1: any;
|
|
1386
|
+
export { minHeight_1 as minHeight };
|
|
1383
1387
|
const disabled_1: boolean;
|
|
1384
1388
|
export { disabled_1 as disabled };
|
|
1385
1389
|
const error_1: boolean;
|
package/dist/index.esm.js
CHANGED
|
@@ -8768,6 +8768,7 @@ const DropdownWrapper$2 = styled.div`
|
|
|
8768
8768
|
align-items: flex-start;
|
|
8769
8769
|
width: ${props => props.width || '300px'};
|
|
8770
8770
|
height: ${props => props.height || '40px'};
|
|
8771
|
+
min-height: ${props => props.minHeight || 'auto'};
|
|
8771
8772
|
font-family: "Poppins", sans-serif;
|
|
8772
8773
|
font-weight: 400;
|
|
8773
8774
|
font-size: 14px;
|
|
@@ -8778,7 +8779,7 @@ const DropdownWrapper$2 = styled.div`
|
|
|
8778
8779
|
top: 100%;
|
|
8779
8780
|
left: 0;
|
|
8780
8781
|
right: 0;
|
|
8781
|
-
height: 2px;
|
|
8782
|
+
height: 2px;
|
|
8782
8783
|
z-index: 99;
|
|
8783
8784
|
pointer-events: none;
|
|
8784
8785
|
}
|
|
@@ -8939,6 +8940,7 @@ const DropdownSingleNew = ({
|
|
|
8939
8940
|
disabled,
|
|
8940
8941
|
width,
|
|
8941
8942
|
height,
|
|
8943
|
+
minHeight,
|
|
8942
8944
|
withMarginBottom = true,
|
|
8943
8945
|
error,
|
|
8944
8946
|
errorMessage,
|
|
@@ -9117,10 +9119,10 @@ const DropdownSingleNew = ({
|
|
|
9117
9119
|
};
|
|
9118
9120
|
return /*#__PURE__*/React$1.createElement(DropdownWrapper$2, {
|
|
9119
9121
|
className: "DropdownWrapper",
|
|
9120
|
-
ref: dropdownRef
|
|
9121
|
-
,
|
|
9122
|
+
ref: dropdownRef,
|
|
9122
9123
|
width: width,
|
|
9123
9124
|
height: height,
|
|
9125
|
+
minHeight: minHeight,
|
|
9124
9126
|
onMouseEnter: () => setHoverInputContainer(true),
|
|
9125
9127
|
onMouseLeave: () => setHoverInputContainer(false)
|
|
9126
9128
|
}, /*#__PURE__*/React$1.createElement(InputContainer$8, {
|
|
@@ -9262,6 +9264,7 @@ const DropdownWrapper$1 = styled.div`
|
|
|
9262
9264
|
align-items: flex-start;
|
|
9263
9265
|
width: ${props => props.width || '300px'};
|
|
9264
9266
|
height: ${props => props.height || '50px'};
|
|
9267
|
+
min-height: ${props => props.minHeight || 'auto'};
|
|
9265
9268
|
font-family: "Poppins", sans-serif;
|
|
9266
9269
|
font-weight: 400;
|
|
9267
9270
|
font-size: 14px;
|
|
@@ -9272,7 +9275,7 @@ const DropdownWrapper$1 = styled.div`
|
|
|
9272
9275
|
top: 100%;
|
|
9273
9276
|
left: 0;
|
|
9274
9277
|
right: 0;
|
|
9275
|
-
height: 2px;
|
|
9278
|
+
height: 2px;
|
|
9276
9279
|
z-index: 99;
|
|
9277
9280
|
pointer-events: none;
|
|
9278
9281
|
}
|
|
@@ -9462,6 +9465,7 @@ const DropdownMultiNew = ({
|
|
|
9462
9465
|
disabled,
|
|
9463
9466
|
width,
|
|
9464
9467
|
height,
|
|
9468
|
+
minHeight,
|
|
9465
9469
|
withMarginBottom = true,
|
|
9466
9470
|
error,
|
|
9467
9471
|
errorMessage,
|
|
@@ -9638,6 +9642,7 @@ const DropdownMultiNew = ({
|
|
|
9638
9642
|
className: "DropdownWrapper",
|
|
9639
9643
|
width: width,
|
|
9640
9644
|
height: height,
|
|
9645
|
+
minHeight: minHeight,
|
|
9641
9646
|
onMouseEnter: () => setHoverInputContainer(true),
|
|
9642
9647
|
onMouseLeave: () => setHoverInputContainer(false)
|
|
9643
9648
|
}, /*#__PURE__*/React$1.createElement(InputContainer$7, {
|
|
@@ -9736,6 +9741,7 @@ const DropdownMain = styled.div`
|
|
|
9736
9741
|
align-items: flex-start;
|
|
9737
9742
|
width: ${props => props.width || '300px'};
|
|
9738
9743
|
height: ${props => props.height || '50px'};
|
|
9744
|
+
min-height: ${props => props.minHeight || 'auto'};
|
|
9739
9745
|
font-family: "Poppins", sans-serif;
|
|
9740
9746
|
font-weight: 400;
|
|
9741
9747
|
font-size: 14px;
|
|
@@ -9757,6 +9763,7 @@ const DropdownNew = props => {
|
|
|
9757
9763
|
disabled = false,
|
|
9758
9764
|
width = "300px",
|
|
9759
9765
|
height = "52px",
|
|
9766
|
+
minHeight = "",
|
|
9760
9767
|
withMarginBottom = true,
|
|
9761
9768
|
error = false,
|
|
9762
9769
|
showLabelOnTop = true,
|
|
@@ -9776,7 +9783,8 @@ const DropdownNew = props => {
|
|
|
9776
9783
|
return /*#__PURE__*/React$1.createElement(DropdownMain, {
|
|
9777
9784
|
className: "DropdownMain",
|
|
9778
9785
|
width: width,
|
|
9779
|
-
height: height
|
|
9786
|
+
height: height,
|
|
9787
|
+
minHeight: minHeight
|
|
9780
9788
|
}, isMulti ? /*#__PURE__*/React$1.createElement(DropdownMultiNew, {
|
|
9781
9789
|
className: "DropdownMultiNew",
|
|
9782
9790
|
placeHolder: placeHolder,
|
|
@@ -9788,6 +9796,7 @@ const DropdownNew = props => {
|
|
|
9788
9796
|
options: options,
|
|
9789
9797
|
width: width,
|
|
9790
9798
|
height: height,
|
|
9799
|
+
minHeight: minHeight,
|
|
9791
9800
|
withMarginBottom: withMarginBottom,
|
|
9792
9801
|
disabled: disabled,
|
|
9793
9802
|
error: error,
|
|
@@ -9809,6 +9818,7 @@ const DropdownNew = props => {
|
|
|
9809
9818
|
options: options,
|
|
9810
9819
|
width: width,
|
|
9811
9820
|
height: height,
|
|
9821
|
+
minHeight: minHeight,
|
|
9812
9822
|
withMarginBottom: withMarginBottom,
|
|
9813
9823
|
disabled: disabled,
|
|
9814
9824
|
error: error,
|
|
@@ -10580,23 +10590,24 @@ const QuarterPopupPicker = ({
|
|
|
10580
10590
|
};
|
|
10581
10591
|
|
|
10582
10592
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10583
|
-
const QuarterPicker =
|
|
10584
|
-
|
|
10585
|
-
|
|
10586
|
-
|
|
10587
|
-
|
|
10588
|
-
|
|
10589
|
-
|
|
10590
|
-
|
|
10591
|
-
|
|
10592
|
-
|
|
10593
|
-
|
|
10594
|
-
|
|
10595
|
-
|
|
10596
|
-
|
|
10597
|
-
|
|
10598
|
-
|
|
10599
|
-
|
|
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;
|
|
10600
10611
|
const [isFocused, setIsFocused] = useState(false);
|
|
10601
10612
|
const [isOpen, setIsOpen] = useState(false);
|
|
10602
10613
|
const [value, setValue] = useState('');
|
|
@@ -11038,22 +11049,23 @@ const MonthPopupPicker = ({
|
|
|
11038
11049
|
};
|
|
11039
11050
|
|
|
11040
11051
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
11041
|
-
const MonthPicker =
|
|
11042
|
-
|
|
11043
|
-
|
|
11044
|
-
|
|
11045
|
-
|
|
11046
|
-
|
|
11047
|
-
|
|
11048
|
-
|
|
11049
|
-
|
|
11050
|
-
|
|
11051
|
-
|
|
11052
|
-
|
|
11053
|
-
|
|
11054
|
-
|
|
11055
|
-
|
|
11056
|
-
|
|
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;
|
|
11057
11069
|
const [isFocused, setIsFocused] = useState(false);
|
|
11058
11070
|
const [isOpen, setIsOpen] = useState(false);
|
|
11059
11071
|
const [value, setValue] = useState('');
|
|
@@ -12253,13 +12265,16 @@ const Td$1 = styled.td`
|
|
|
12253
12265
|
`;
|
|
12254
12266
|
const Tr = styled.tr`
|
|
12255
12267
|
border-bottom: 1px solid #f3f4f6;
|
|
12256
|
-
${
|
|
12257
|
-
|
|
12258
|
-
|
|
12259
|
-
|
|
12268
|
+
${_ref => {
|
|
12269
|
+
let {
|
|
12270
|
+
enableHover,
|
|
12271
|
+
selectHoverColor
|
|
12272
|
+
} = _ref;
|
|
12273
|
+
return enableHover && `&:hover {
|
|
12260
12274
|
background-color: ${selectHoverColor};
|
|
12261
12275
|
cursor: pointer;
|
|
12262
|
-
}
|
|
12276
|
+
}`;
|
|
12277
|
+
}}
|
|
12263
12278
|
`;
|
|
12264
12279
|
const InfoText = styled.div`
|
|
12265
12280
|
font-weight: 400;
|
|
@@ -24161,21 +24176,22 @@ const DeleteIcon = styled.div`
|
|
|
24161
24176
|
position: absolute;
|
|
24162
24177
|
`;
|
|
24163
24178
|
|
|
24164
|
-
const QuickFilterDropdownSingle =
|
|
24165
|
-
|
|
24166
|
-
|
|
24167
|
-
|
|
24168
|
-
|
|
24169
|
-
|
|
24170
|
-
|
|
24171
|
-
|
|
24172
|
-
|
|
24173
|
-
|
|
24174
|
-
|
|
24175
|
-
|
|
24176
|
-
|
|
24177
|
-
|
|
24178
|
-
|
|
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;
|
|
24179
24195
|
const [isFocused, setIsFocused] = useState(false);
|
|
24180
24196
|
const [showOptions, setShowOptions] = useState(false);
|
|
24181
24197
|
const [inputValue, setInputValue] = useState("");
|
|
@@ -24627,25 +24643,26 @@ const IconContainer$2 = styled.div`
|
|
|
24627
24643
|
cursor: pointer;
|
|
24628
24644
|
`;
|
|
24629
24645
|
|
|
24630
|
-
const QuickFilterDropdownMultiSelection =
|
|
24631
|
-
|
|
24632
|
-
|
|
24633
|
-
|
|
24634
|
-
|
|
24635
|
-
|
|
24636
|
-
|
|
24637
|
-
|
|
24638
|
-
|
|
24639
|
-
|
|
24640
|
-
|
|
24641
|
-
|
|
24642
|
-
|
|
24643
|
-
|
|
24644
|
-
|
|
24645
|
-
|
|
24646
|
-
|
|
24647
|
-
|
|
24648
|
-
|
|
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;
|
|
24649
24666
|
const [isFocused, setIsFocused] = useState(false);
|
|
24650
24667
|
const [showOptions, setShowOptions] = useState(false);
|
|
24651
24668
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -35652,7 +35669,7 @@ const MainContainer = styled.div`
|
|
|
35652
35669
|
width: ${props => props.width || '300px'};
|
|
35653
35670
|
min-width: ${props => props.minWidth || 'unset'};
|
|
35654
35671
|
height: ${props => props.height || '45px'};
|
|
35655
|
-
min-height: ${props => props.multiline ? '80px' : 'auto'};
|
|
35672
|
+
min-height: ${props => props.minHeight || (props.multiline ? '80px' : 'auto')};
|
|
35656
35673
|
font-family: "Poppins", sans-serif;
|
|
35657
35674
|
font-weight: 400;
|
|
35658
35675
|
font-size: 14px;
|
|
@@ -35674,7 +35691,10 @@ const Label$3 = styled.label`
|
|
|
35674
35691
|
if (props.multiline) {
|
|
35675
35692
|
return props.isFocused || props.hasValue ? '0px' : '20px';
|
|
35676
35693
|
}
|
|
35677
|
-
|
|
35694
|
+
if (props.isFocused || props.hasValue) {
|
|
35695
|
+
return '0px';
|
|
35696
|
+
}
|
|
35697
|
+
return props.size === 'medium' ? '26px' : '17px';
|
|
35678
35698
|
}};
|
|
35679
35699
|
left: ${props => {
|
|
35680
35700
|
if (props.multiline) {
|
|
@@ -35841,6 +35861,7 @@ const Input$2 = _ref => {
|
|
|
35841
35861
|
width,
|
|
35842
35862
|
minWidth,
|
|
35843
35863
|
height = "50px",
|
|
35864
|
+
minHeight,
|
|
35844
35865
|
error,
|
|
35845
35866
|
errorMessage,
|
|
35846
35867
|
labelColor,
|
|
@@ -35960,6 +35981,7 @@ const Input$2 = _ref => {
|
|
|
35960
35981
|
className: "MainContainer",
|
|
35961
35982
|
width: width,
|
|
35962
35983
|
height: calculateHeight(),
|
|
35984
|
+
minHeight: minHeight,
|
|
35963
35985
|
size: size,
|
|
35964
35986
|
disabled: disabled,
|
|
35965
35987
|
isDarkerBackground: isDarkerBackground,
|
|
@@ -36046,6 +36068,7 @@ Input$2.propTypes = {
|
|
|
36046
36068
|
required: PropTypes.bool,
|
|
36047
36069
|
width: PropTypes.string,
|
|
36048
36070
|
minWidth: PropTypes.string,
|
|
36071
|
+
minHeight: PropTypes.string,
|
|
36049
36072
|
disabled: PropTypes.bool,
|
|
36050
36073
|
error: PropTypes.bool,
|
|
36051
36074
|
errorMessage: PropTypes.string,
|
|
@@ -36073,6 +36096,7 @@ Input$2.defaultProps = {
|
|
|
36073
36096
|
required: true,
|
|
36074
36097
|
width: "300px",
|
|
36075
36098
|
minWidth: "unset",
|
|
36099
|
+
minHeight: undefined,
|
|
36076
36100
|
disabled: false,
|
|
36077
36101
|
error: false,
|
|
36078
36102
|
errorMessage: "",
|
|
@@ -36161,9 +36185,9 @@ const ToggleSlider = styled.span`
|
|
|
36161
36185
|
}
|
|
36162
36186
|
`;
|
|
36163
36187
|
|
|
36164
|
-
/**
|
|
36165
|
-
* ToggleSwitch component for on/off states.
|
|
36166
|
-
* Supports small/large sizes and disabled state.
|
|
36188
|
+
/**
|
|
36189
|
+
* ToggleSwitch component for on/off states.
|
|
36190
|
+
* Supports small/large sizes and disabled state.
|
|
36167
36191
|
*/
|
|
36168
36192
|
function ToggleSwitch(_ref) {
|
|
36169
36193
|
let {
|
|
@@ -37840,7 +37864,7 @@ const FilterPop = props => {
|
|
|
37840
37864
|
}));
|
|
37841
37865
|
return {
|
|
37842
37866
|
visibleItems: visible,
|
|
37843
|
-
totalHeight: sortedList.length * itemHeight,
|
|
37867
|
+
totalHeight: (sortedList.length + 1) * (itemHeight + 8),
|
|
37844
37868
|
offsetY: startIndex * itemHeight
|
|
37845
37869
|
};
|
|
37846
37870
|
}, [sortedList, scrollTop, itemHeight, overscan, maxHeight]);
|