sag_components 2.0.0-beta269 → 2.0.0-beta270
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 +84 -74
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +84 -74
- package/dist/index.js.map +1 -1
- package/dist/types/components/Input/Input.d.ts +5 -1
- package/dist/types/components/Input/Input.stories.d.ts +93 -72
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10591,23 +10591,24 @@ const QuarterPopupPicker = ({
|
|
|
10591
10591
|
};
|
|
10592
10592
|
|
|
10593
10593
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10594
|
-
const QuarterPicker =
|
|
10595
|
-
|
|
10596
|
-
|
|
10597
|
-
|
|
10598
|
-
|
|
10599
|
-
|
|
10600
|
-
|
|
10601
|
-
|
|
10602
|
-
|
|
10603
|
-
|
|
10604
|
-
|
|
10605
|
-
|
|
10606
|
-
|
|
10607
|
-
|
|
10608
|
-
|
|
10609
|
-
|
|
10610
|
-
|
|
10594
|
+
const QuarterPicker = _ref => {
|
|
10595
|
+
let {
|
|
10596
|
+
availableQuarters,
|
|
10597
|
+
// ["Q1-2024"]
|
|
10598
|
+
label,
|
|
10599
|
+
onChange,
|
|
10600
|
+
borderRadius,
|
|
10601
|
+
required,
|
|
10602
|
+
width,
|
|
10603
|
+
height,
|
|
10604
|
+
placeholder,
|
|
10605
|
+
disabled,
|
|
10606
|
+
borderColor,
|
|
10607
|
+
borderColorFocus,
|
|
10608
|
+
textColor,
|
|
10609
|
+
selectedValue,
|
|
10610
|
+
startYear
|
|
10611
|
+
} = _ref;
|
|
10611
10612
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
10612
10613
|
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
10613
10614
|
const [value, setValue] = React$1.useState('');
|
|
@@ -11049,22 +11050,23 @@ const MonthPopupPicker = ({
|
|
|
11049
11050
|
};
|
|
11050
11051
|
|
|
11051
11052
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
11052
|
-
const MonthPicker =
|
|
11053
|
-
|
|
11054
|
-
|
|
11055
|
-
|
|
11056
|
-
|
|
11057
|
-
|
|
11058
|
-
|
|
11059
|
-
|
|
11060
|
-
|
|
11061
|
-
|
|
11062
|
-
|
|
11063
|
-
|
|
11064
|
-
|
|
11065
|
-
|
|
11066
|
-
|
|
11067
|
-
|
|
11053
|
+
const MonthPicker = _ref => {
|
|
11054
|
+
let {
|
|
11055
|
+
availableMonths,
|
|
11056
|
+
label,
|
|
11057
|
+
onChange,
|
|
11058
|
+
borderRadius,
|
|
11059
|
+
required,
|
|
11060
|
+
width,
|
|
11061
|
+
height,
|
|
11062
|
+
placeholder,
|
|
11063
|
+
disabled,
|
|
11064
|
+
borderColor,
|
|
11065
|
+
borderColorFocus,
|
|
11066
|
+
textColor,
|
|
11067
|
+
selectedValue,
|
|
11068
|
+
startYear
|
|
11069
|
+
} = _ref;
|
|
11068
11070
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
11069
11071
|
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
11070
11072
|
const [value, setValue] = React$1.useState('');
|
|
@@ -24175,21 +24177,22 @@ const DeleteIcon = styled__default["default"].div`
|
|
|
24175
24177
|
position: absolute;
|
|
24176
24178
|
`;
|
|
24177
24179
|
|
|
24178
|
-
const QuickFilterDropdownSingle =
|
|
24179
|
-
|
|
24180
|
-
|
|
24181
|
-
|
|
24182
|
-
|
|
24183
|
-
|
|
24184
|
-
|
|
24185
|
-
|
|
24186
|
-
|
|
24187
|
-
|
|
24188
|
-
|
|
24189
|
-
|
|
24190
|
-
|
|
24191
|
-
|
|
24192
|
-
|
|
24180
|
+
const QuickFilterDropdownSingle = _ref => {
|
|
24181
|
+
let {
|
|
24182
|
+
label,
|
|
24183
|
+
hoverColor,
|
|
24184
|
+
options,
|
|
24185
|
+
selectedValue,
|
|
24186
|
+
placeHolder,
|
|
24187
|
+
onChange,
|
|
24188
|
+
disabled,
|
|
24189
|
+
width,
|
|
24190
|
+
error,
|
|
24191
|
+
errorMessage,
|
|
24192
|
+
xIconShow,
|
|
24193
|
+
labelColor,
|
|
24194
|
+
showLabelOnTop
|
|
24195
|
+
} = _ref;
|
|
24193
24196
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24194
24197
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24195
24198
|
const [inputValue, setInputValue] = React$1.useState("");
|
|
@@ -24646,25 +24649,26 @@ const IconContainer$2 = styled__default["default"].div`
|
|
|
24646
24649
|
cursor: pointer;
|
|
24647
24650
|
`;
|
|
24648
24651
|
|
|
24649
|
-
const QuickFilterDropdownMultiSelection =
|
|
24650
|
-
|
|
24651
|
-
|
|
24652
|
-
|
|
24653
|
-
|
|
24654
|
-
|
|
24655
|
-
|
|
24656
|
-
|
|
24657
|
-
|
|
24658
|
-
|
|
24659
|
-
|
|
24660
|
-
|
|
24661
|
-
|
|
24662
|
-
|
|
24663
|
-
|
|
24664
|
-
|
|
24665
|
-
|
|
24666
|
-
|
|
24667
|
-
|
|
24652
|
+
const QuickFilterDropdownMultiSelection = _ref => {
|
|
24653
|
+
let {
|
|
24654
|
+
label,
|
|
24655
|
+
labelEmptyValue,
|
|
24656
|
+
options,
|
|
24657
|
+
selectedValue,
|
|
24658
|
+
placeHolder,
|
|
24659
|
+
onChange,
|
|
24660
|
+
required,
|
|
24661
|
+
disabled,
|
|
24662
|
+
width,
|
|
24663
|
+
height,
|
|
24664
|
+
error,
|
|
24665
|
+
errorMessage,
|
|
24666
|
+
labelColor,
|
|
24667
|
+
xIconShow,
|
|
24668
|
+
checkBoxColor,
|
|
24669
|
+
showLabelOnTop,
|
|
24670
|
+
dropdownHeight
|
|
24671
|
+
} = _ref;
|
|
24668
24672
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24669
24673
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24670
24674
|
const [inputValue, setInputValue] = React$1.useState('');
|
|
@@ -35669,7 +35673,7 @@ const MainContainer = styled__default["default"].div`
|
|
|
35669
35673
|
justify-content: flex-start;
|
|
35670
35674
|
align-items: flex-start;
|
|
35671
35675
|
width: ${props => props.width || '300px'};
|
|
35672
|
-
|
|
35676
|
+
min-width: ${props => props.minWidth || 'unset'};
|
|
35673
35677
|
height: ${props => props.height || '45px'};
|
|
35674
35678
|
min-height: ${props => props.multiline ? '80px' : 'auto'};
|
|
35675
35679
|
font-family: "Poppins", sans-serif;
|
|
@@ -35830,6 +35834,7 @@ const ErrorMessage = styled__default["default"].div`
|
|
|
35830
35834
|
color: red;
|
|
35831
35835
|
margin-top: 5px;
|
|
35832
35836
|
max-width: ${props => props.width || '300px'};
|
|
35837
|
+
min-width: ${props => props.minWidth || 'unset'};
|
|
35833
35838
|
`;
|
|
35834
35839
|
const IconWrapper$1 = styled__default["default"].div`
|
|
35835
35840
|
display: flex;
|
|
@@ -35858,6 +35863,7 @@ const Input$2 = _ref => {
|
|
|
35858
35863
|
disabled,
|
|
35859
35864
|
isDarkerBackground = false,
|
|
35860
35865
|
width,
|
|
35866
|
+
minWidth,
|
|
35861
35867
|
height = "50px",
|
|
35862
35868
|
error,
|
|
35863
35869
|
errorMessage,
|
|
@@ -35888,7 +35894,7 @@ const Input$2 = _ref => {
|
|
|
35888
35894
|
const hasOverflow = element.scrollWidth > element.clientWidth;
|
|
35889
35895
|
setIsOverflowing(hasOverflow);
|
|
35890
35896
|
}
|
|
35891
|
-
}, [inputValue, multiline, width, isFocused]);
|
|
35897
|
+
}, [inputValue, multiline, width, minWidth, isFocused]);
|
|
35892
35898
|
const handleLabelClick = () => {
|
|
35893
35899
|
if (disabled) return;
|
|
35894
35900
|
setIsFocused(true);
|
|
@@ -35983,7 +35989,8 @@ const Input$2 = _ref => {
|
|
|
35983
35989
|
isDarkerBackground: isDarkerBackground,
|
|
35984
35990
|
multiline: multiline,
|
|
35985
35991
|
onClick: handleContainerClick,
|
|
35986
|
-
title: isOverflowing && inputValue && !isFocused ? inputValue : ""
|
|
35992
|
+
title: isOverflowing && inputValue && !isFocused ? inputValue : "",
|
|
35993
|
+
minWidth: minWidth
|
|
35987
35994
|
}, /*#__PURE__*/React__default["default"].createElement(InputContainer, {
|
|
35988
35995
|
className: "InputContainer",
|
|
35989
35996
|
labelColor: labelColor,
|
|
@@ -36043,7 +36050,8 @@ const Input$2 = _ref => {
|
|
|
36043
36050
|
multiline: multiline
|
|
36044
36051
|
})), !multiline && (password ? getPasswordIcon() : getRightIcon())), error && errorMessage?.length > 0 && /*#__PURE__*/React__default["default"].createElement(ErrorMessage, {
|
|
36045
36052
|
className: "ErrorMessage",
|
|
36046
|
-
width: width
|
|
36053
|
+
width: width,
|
|
36054
|
+
minWidth: minWidth
|
|
36047
36055
|
}, errorMessage), multiline && maxLength && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
36048
36056
|
style: {
|
|
36049
36057
|
fontSize: "12px",
|
|
@@ -36061,6 +36069,7 @@ Input$2.propTypes = {
|
|
|
36061
36069
|
labelColor: PropTypes.string,
|
|
36062
36070
|
required: PropTypes.bool,
|
|
36063
36071
|
width: PropTypes.string,
|
|
36072
|
+
minWidth: PropTypes.string,
|
|
36064
36073
|
disabled: PropTypes.bool,
|
|
36065
36074
|
error: PropTypes.bool,
|
|
36066
36075
|
errorMessage: PropTypes.string,
|
|
@@ -36087,6 +36096,7 @@ Input$2.defaultProps = {
|
|
|
36087
36096
|
labelColor: "#066768",
|
|
36088
36097
|
required: true,
|
|
36089
36098
|
width: "300px",
|
|
36099
|
+
minWidth: "300px",
|
|
36090
36100
|
disabled: false,
|
|
36091
36101
|
error: false,
|
|
36092
36102
|
errorMessage: "",
|
|
@@ -36175,9 +36185,9 @@ const ToggleSlider = styled__default["default"].span`
|
|
|
36175
36185
|
}
|
|
36176
36186
|
`;
|
|
36177
36187
|
|
|
36178
|
-
/**
|
|
36179
|
-
* ToggleSwitch component for on/off states.
|
|
36180
|
-
* Supports small/large sizes and disabled state.
|
|
36188
|
+
/**
|
|
36189
|
+
* ToggleSwitch component for on/off states.
|
|
36190
|
+
* Supports small/large sizes and disabled state.
|
|
36181
36191
|
*/
|
|
36182
36192
|
function ToggleSwitch(_ref) {
|
|
36183
36193
|
let {
|