sag_components 2.0.0-beta281 → 2.0.0-beta283
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 +78 -58
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +78 -58
- 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('');
|
|
@@ -24164,21 +24176,22 @@ const DeleteIcon = styled.div`
|
|
|
24164
24176
|
position: absolute;
|
|
24165
24177
|
`;
|
|
24166
24178
|
|
|
24167
|
-
const QuickFilterDropdownSingle =
|
|
24168
|
-
|
|
24169
|
-
|
|
24170
|
-
|
|
24171
|
-
|
|
24172
|
-
|
|
24173
|
-
|
|
24174
|
-
|
|
24175
|
-
|
|
24176
|
-
|
|
24177
|
-
|
|
24178
|
-
|
|
24179
|
-
|
|
24180
|
-
|
|
24181
|
-
|
|
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;
|
|
24182
24195
|
const [isFocused, setIsFocused] = useState(false);
|
|
24183
24196
|
const [showOptions, setShowOptions] = useState(false);
|
|
24184
24197
|
const [inputValue, setInputValue] = useState("");
|
|
@@ -35655,7 +35668,7 @@ const MainContainer = styled.div`
|
|
|
35655
35668
|
width: ${props => props.width || '300px'};
|
|
35656
35669
|
min-width: ${props => props.minWidth || 'unset'};
|
|
35657
35670
|
height: ${props => props.height || '45px'};
|
|
35658
|
-
min-height: ${props => props.multiline ? '80px' : 'auto'};
|
|
35671
|
+
min-height: ${props => props.minHeight || (props.multiline ? '80px' : 'auto')};
|
|
35659
35672
|
font-family: "Poppins", sans-serif;
|
|
35660
35673
|
font-weight: 400;
|
|
35661
35674
|
font-size: 14px;
|
|
@@ -35677,7 +35690,10 @@ const Label$3 = styled.label`
|
|
|
35677
35690
|
if (props.multiline) {
|
|
35678
35691
|
return props.isFocused || props.hasValue ? '0px' : '20px';
|
|
35679
35692
|
}
|
|
35680
|
-
|
|
35693
|
+
if (props.isFocused || props.hasValue) {
|
|
35694
|
+
return '0px';
|
|
35695
|
+
}
|
|
35696
|
+
return props.size === 'medium' ? '26px' : '17px';
|
|
35681
35697
|
}};
|
|
35682
35698
|
left: ${props => {
|
|
35683
35699
|
if (props.multiline) {
|
|
@@ -35844,6 +35860,7 @@ const Input$2 = _ref => {
|
|
|
35844
35860
|
width,
|
|
35845
35861
|
minWidth,
|
|
35846
35862
|
height = "50px",
|
|
35863
|
+
minHeight,
|
|
35847
35864
|
error,
|
|
35848
35865
|
errorMessage,
|
|
35849
35866
|
labelColor,
|
|
@@ -35963,6 +35980,7 @@ const Input$2 = _ref => {
|
|
|
35963
35980
|
className: "MainContainer",
|
|
35964
35981
|
width: width,
|
|
35965
35982
|
height: calculateHeight(),
|
|
35983
|
+
minHeight: minHeight,
|
|
35966
35984
|
size: size,
|
|
35967
35985
|
disabled: disabled,
|
|
35968
35986
|
isDarkerBackground: isDarkerBackground,
|
|
@@ -36049,6 +36067,7 @@ Input$2.propTypes = {
|
|
|
36049
36067
|
required: PropTypes.bool,
|
|
36050
36068
|
width: PropTypes.string,
|
|
36051
36069
|
minWidth: PropTypes.string,
|
|
36070
|
+
minHeight: PropTypes.string,
|
|
36052
36071
|
disabled: PropTypes.bool,
|
|
36053
36072
|
error: PropTypes.bool,
|
|
36054
36073
|
errorMessage: PropTypes.string,
|
|
@@ -36076,6 +36095,7 @@ Input$2.defaultProps = {
|
|
|
36076
36095
|
required: true,
|
|
36077
36096
|
width: "300px",
|
|
36078
36097
|
minWidth: "unset",
|
|
36098
|
+
minHeight: undefined,
|
|
36079
36099
|
disabled: false,
|
|
36080
36100
|
error: false,
|
|
36081
36101
|
errorMessage: "",
|
|
@@ -36164,9 +36184,9 @@ const ToggleSlider = styled.span`
|
|
|
36164
36184
|
}
|
|
36165
36185
|
`;
|
|
36166
36186
|
|
|
36167
|
-
/**
|
|
36168
|
-
* ToggleSwitch component for on/off states.
|
|
36169
|
-
* Supports small/large sizes and disabled state.
|
|
36187
|
+
/**
|
|
36188
|
+
* ToggleSwitch component for on/off states.
|
|
36189
|
+
* Supports small/large sizes and disabled state.
|
|
36170
36190
|
*/
|
|
36171
36191
|
function ToggleSwitch(_ref) {
|
|
36172
36192
|
let {
|