sag_components 2.0.0-beta251 → 2.0.0-beta252
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 +87 -71
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +87 -71
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -10581,23 +10581,24 @@ const QuarterPopupPicker = ({
|
|
|
10581
10581
|
};
|
|
10582
10582
|
|
|
10583
10583
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10584
|
-
const QuarterPicker =
|
|
10585
|
-
|
|
10586
|
-
|
|
10587
|
-
|
|
10588
|
-
|
|
10589
|
-
|
|
10590
|
-
|
|
10591
|
-
|
|
10592
|
-
|
|
10593
|
-
|
|
10594
|
-
|
|
10595
|
-
|
|
10596
|
-
|
|
10597
|
-
|
|
10598
|
-
|
|
10599
|
-
|
|
10600
|
-
|
|
10584
|
+
const QuarterPicker = _ref => {
|
|
10585
|
+
let {
|
|
10586
|
+
availableQuarters,
|
|
10587
|
+
// ["Q1-2024"]
|
|
10588
|
+
label,
|
|
10589
|
+
onChange,
|
|
10590
|
+
borderRadius,
|
|
10591
|
+
required,
|
|
10592
|
+
width,
|
|
10593
|
+
height,
|
|
10594
|
+
placeholder,
|
|
10595
|
+
disabled,
|
|
10596
|
+
borderColor,
|
|
10597
|
+
borderColorFocus,
|
|
10598
|
+
textColor,
|
|
10599
|
+
selectedValue,
|
|
10600
|
+
startYear
|
|
10601
|
+
} = _ref;
|
|
10601
10602
|
const [isFocused, setIsFocused] = useState(false);
|
|
10602
10603
|
const [isOpen, setIsOpen] = useState(false);
|
|
10603
10604
|
const [value, setValue] = useState('');
|
|
@@ -11039,22 +11040,23 @@ const MonthPopupPicker = ({
|
|
|
11039
11040
|
};
|
|
11040
11041
|
|
|
11041
11042
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
11042
|
-
const MonthPicker =
|
|
11043
|
-
|
|
11044
|
-
|
|
11045
|
-
|
|
11046
|
-
|
|
11047
|
-
|
|
11048
|
-
|
|
11049
|
-
|
|
11050
|
-
|
|
11051
|
-
|
|
11052
|
-
|
|
11053
|
-
|
|
11054
|
-
|
|
11055
|
-
|
|
11056
|
-
|
|
11057
|
-
|
|
11043
|
+
const MonthPicker = _ref => {
|
|
11044
|
+
let {
|
|
11045
|
+
availableMonths,
|
|
11046
|
+
label,
|
|
11047
|
+
onChange,
|
|
11048
|
+
borderRadius,
|
|
11049
|
+
required,
|
|
11050
|
+
width,
|
|
11051
|
+
height,
|
|
11052
|
+
placeholder,
|
|
11053
|
+
disabled,
|
|
11054
|
+
borderColor,
|
|
11055
|
+
borderColorFocus,
|
|
11056
|
+
textColor,
|
|
11057
|
+
selectedValue,
|
|
11058
|
+
startYear
|
|
11059
|
+
} = _ref;
|
|
11058
11060
|
const [isFocused, setIsFocused] = useState(false);
|
|
11059
11061
|
const [isOpen, setIsOpen] = useState(false);
|
|
11060
11062
|
const [value, setValue] = useState('');
|
|
@@ -24165,21 +24167,22 @@ const DeleteIcon = styled.div`
|
|
|
24165
24167
|
position: absolute;
|
|
24166
24168
|
`;
|
|
24167
24169
|
|
|
24168
|
-
const QuickFilterDropdownSingle =
|
|
24169
|
-
|
|
24170
|
-
|
|
24171
|
-
|
|
24172
|
-
|
|
24173
|
-
|
|
24174
|
-
|
|
24175
|
-
|
|
24176
|
-
|
|
24177
|
-
|
|
24178
|
-
|
|
24179
|
-
|
|
24180
|
-
|
|
24181
|
-
|
|
24182
|
-
|
|
24170
|
+
const QuickFilterDropdownSingle = _ref => {
|
|
24171
|
+
let {
|
|
24172
|
+
label,
|
|
24173
|
+
hoverColor,
|
|
24174
|
+
options,
|
|
24175
|
+
selectedValue,
|
|
24176
|
+
placeHolder,
|
|
24177
|
+
onChange,
|
|
24178
|
+
disabled,
|
|
24179
|
+
width,
|
|
24180
|
+
error,
|
|
24181
|
+
errorMessage,
|
|
24182
|
+
xIconShow,
|
|
24183
|
+
labelColor,
|
|
24184
|
+
showLabelOnTop
|
|
24185
|
+
} = _ref;
|
|
24183
24186
|
const [isFocused, setIsFocused] = useState(false);
|
|
24184
24187
|
const [showOptions, setShowOptions] = useState(false);
|
|
24185
24188
|
const [inputValue, setInputValue] = useState("");
|
|
@@ -24636,25 +24639,26 @@ const IconContainer$2 = styled.div`
|
|
|
24636
24639
|
cursor: pointer;
|
|
24637
24640
|
`;
|
|
24638
24641
|
|
|
24639
|
-
const QuickFilterDropdownMultiSelection =
|
|
24640
|
-
|
|
24641
|
-
|
|
24642
|
-
|
|
24643
|
-
|
|
24644
|
-
|
|
24645
|
-
|
|
24646
|
-
|
|
24647
|
-
|
|
24648
|
-
|
|
24649
|
-
|
|
24650
|
-
|
|
24651
|
-
|
|
24652
|
-
|
|
24653
|
-
|
|
24654
|
-
|
|
24655
|
-
|
|
24656
|
-
|
|
24657
|
-
|
|
24642
|
+
const QuickFilterDropdownMultiSelection = _ref => {
|
|
24643
|
+
let {
|
|
24644
|
+
label,
|
|
24645
|
+
labelEmptyValue,
|
|
24646
|
+
options,
|
|
24647
|
+
selectedValue,
|
|
24648
|
+
placeHolder,
|
|
24649
|
+
onChange,
|
|
24650
|
+
required,
|
|
24651
|
+
disabled,
|
|
24652
|
+
width,
|
|
24653
|
+
height,
|
|
24654
|
+
error,
|
|
24655
|
+
errorMessage,
|
|
24656
|
+
labelColor,
|
|
24657
|
+
xIconShow,
|
|
24658
|
+
checkBoxColor,
|
|
24659
|
+
showLabelOnTop,
|
|
24660
|
+
dropdownHeight
|
|
24661
|
+
} = _ref;
|
|
24658
24662
|
const [isFocused, setIsFocused] = useState(false);
|
|
24659
24663
|
const [showOptions, setShowOptions] = useState(false);
|
|
24660
24664
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -35766,6 +35770,9 @@ const StyledInput = styled.input`
|
|
|
35766
35770
|
border: none;
|
|
35767
35771
|
cursor: ${props => props.disabled ? 'not-allowed' : 'text'};
|
|
35768
35772
|
font-family: "Poppins", sans-serif;
|
|
35773
|
+
overflow: hidden;
|
|
35774
|
+
text-overflow: ellipsis;
|
|
35775
|
+
white-space: nowrap;
|
|
35769
35776
|
`;
|
|
35770
35777
|
const StyledTextarea = styled.textarea`
|
|
35771
35778
|
width: 100%;
|
|
@@ -35862,11 +35869,19 @@ const Input$2 = _ref => {
|
|
|
35862
35869
|
const [isFocused, setIsFocused] = useState(false);
|
|
35863
35870
|
const [inputValue, setInputValue] = useState("");
|
|
35864
35871
|
const [showPassword, setShowPassword] = useState(false);
|
|
35872
|
+
const [isOverflowing, setIsOverflowing] = useState(false);
|
|
35865
35873
|
const inputRef = useRef(null);
|
|
35866
35874
|
const containerRef = useRef(null);
|
|
35867
35875
|
useEffect(() => {
|
|
35868
35876
|
setInputValue(selectedValue);
|
|
35869
35877
|
}, [selectedValue]);
|
|
35878
|
+
useEffect(() => {
|
|
35879
|
+
if (inputRef?.current && !multiline && !isFocused) {
|
|
35880
|
+
const element = inputRef.current;
|
|
35881
|
+
const hasOverflow = element.scrollWidth > element.clientWidth;
|
|
35882
|
+
setIsOverflowing(hasOverflow);
|
|
35883
|
+
}
|
|
35884
|
+
}, [inputValue, multiline, width, isFocused]);
|
|
35870
35885
|
const handleLabelClick = () => {
|
|
35871
35886
|
if (disabled) return;
|
|
35872
35887
|
setIsFocused(true);
|
|
@@ -35960,7 +35975,8 @@ const Input$2 = _ref => {
|
|
|
35960
35975
|
disabled: disabled,
|
|
35961
35976
|
isDarkerBackground: isDarkerBackground,
|
|
35962
35977
|
multiline: multiline,
|
|
35963
|
-
onClick: handleContainerClick
|
|
35978
|
+
onClick: handleContainerClick,
|
|
35979
|
+
title: isOverflowing && inputValue && !isFocused ? inputValue : ""
|
|
35964
35980
|
}, /*#__PURE__*/React$1.createElement(InputContainer, {
|
|
35965
35981
|
className: "InputContainer",
|
|
35966
35982
|
labelColor: labelColor,
|
|
@@ -36152,9 +36168,9 @@ const ToggleSlider = styled.span`
|
|
|
36152
36168
|
}
|
|
36153
36169
|
`;
|
|
36154
36170
|
|
|
36155
|
-
/**
|
|
36156
|
-
* ToggleSwitch component for on/off states.
|
|
36157
|
-
* Supports small/large sizes and disabled state.
|
|
36171
|
+
/**
|
|
36172
|
+
* ToggleSwitch component for on/off states.
|
|
36173
|
+
* Supports small/large sizes and disabled state.
|
|
36158
36174
|
*/
|
|
36159
36175
|
function ToggleSwitch(_ref) {
|
|
36160
36176
|
let {
|