sag_components 2.0.0-beta193 → 2.0.0-beta194
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 +6 -1
- package/dist/index.esm.js +76 -69
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +76 -69
- package/dist/index.js.map +1 -1
- package/dist/types/components/ToasterMessageBox/ToasterMessageBox.d.ts +6 -1
- package/dist/types/components/ToasterMessageBox/ToasterMessageBox.stories.d.ts +10 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1598,12 +1598,17 @@ declare function MessageBox({ isOpen, isDisabled, onClose, onConfirm, title, pri
|
|
|
1598
1598
|
children: any;
|
|
1599
1599
|
}): react_jsx_runtime.JSX.Element;
|
|
1600
1600
|
|
|
1601
|
-
declare function ToasterMessageBox({ color, messageText, linkText, duration, width, onLinkClick, onClose }: {
|
|
1601
|
+
declare function ToasterMessageBox({ color, messageText, linkText, duration, width, icon, onLinkClick, onClose }: {
|
|
1602
1602
|
color?: string;
|
|
1603
1603
|
messageText?: string;
|
|
1604
1604
|
linkText?: string;
|
|
1605
1605
|
duration?: number;
|
|
1606
1606
|
width?: string;
|
|
1607
|
+
icon?: ({ width, height, color, }: {
|
|
1608
|
+
width?: string;
|
|
1609
|
+
height?: string;
|
|
1610
|
+
color?: string;
|
|
1611
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1607
1612
|
onLinkClick?: () => void;
|
|
1608
1613
|
onClose?: () => void;
|
|
1609
1614
|
}): react_jsx_runtime.JSX.Element;
|
package/dist/index.esm.js
CHANGED
|
@@ -10579,23 +10579,24 @@ const QuarterPopupPicker = ({
|
|
|
10579
10579
|
};
|
|
10580
10580
|
|
|
10581
10581
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10582
|
-
const QuarterPicker =
|
|
10583
|
-
|
|
10584
|
-
|
|
10585
|
-
|
|
10586
|
-
|
|
10587
|
-
|
|
10588
|
-
|
|
10589
|
-
|
|
10590
|
-
|
|
10591
|
-
|
|
10592
|
-
|
|
10593
|
-
|
|
10594
|
-
|
|
10595
|
-
|
|
10596
|
-
|
|
10597
|
-
|
|
10598
|
-
|
|
10582
|
+
const QuarterPicker = _ref => {
|
|
10583
|
+
let {
|
|
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
|
+
} = _ref;
|
|
10599
10600
|
const [isFocused, setIsFocused] = useState(false);
|
|
10600
10601
|
const [isOpen, setIsOpen] = useState(false);
|
|
10601
10602
|
const [value, setValue] = useState('');
|
|
@@ -11037,22 +11038,23 @@ const MonthPopupPicker = ({
|
|
|
11037
11038
|
};
|
|
11038
11039
|
|
|
11039
11040
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
11040
|
-
const MonthPicker =
|
|
11041
|
-
|
|
11042
|
-
|
|
11043
|
-
|
|
11044
|
-
|
|
11045
|
-
|
|
11046
|
-
|
|
11047
|
-
|
|
11048
|
-
|
|
11049
|
-
|
|
11050
|
-
|
|
11051
|
-
|
|
11052
|
-
|
|
11053
|
-
|
|
11054
|
-
|
|
11055
|
-
|
|
11041
|
+
const MonthPicker = _ref => {
|
|
11042
|
+
let {
|
|
11043
|
+
availableMonths,
|
|
11044
|
+
label,
|
|
11045
|
+
onChange,
|
|
11046
|
+
borderRadius,
|
|
11047
|
+
required,
|
|
11048
|
+
width,
|
|
11049
|
+
height,
|
|
11050
|
+
placeholder,
|
|
11051
|
+
disabled,
|
|
11052
|
+
borderColor,
|
|
11053
|
+
borderColorFocus,
|
|
11054
|
+
textColor,
|
|
11055
|
+
selectedValue,
|
|
11056
|
+
startYear
|
|
11057
|
+
} = _ref;
|
|
11056
11058
|
const [isFocused, setIsFocused] = useState(false);
|
|
11057
11059
|
const [isOpen, setIsOpen] = useState(false);
|
|
11058
11060
|
const [value, setValue] = useState('');
|
|
@@ -24163,21 +24165,22 @@ const DeleteIcon = styled.div`
|
|
|
24163
24165
|
position: absolute;
|
|
24164
24166
|
`;
|
|
24165
24167
|
|
|
24166
|
-
const QuickFilterDropdownSingle =
|
|
24167
|
-
|
|
24168
|
-
|
|
24169
|
-
|
|
24170
|
-
|
|
24171
|
-
|
|
24172
|
-
|
|
24173
|
-
|
|
24174
|
-
|
|
24175
|
-
|
|
24176
|
-
|
|
24177
|
-
|
|
24178
|
-
|
|
24179
|
-
|
|
24180
|
-
|
|
24168
|
+
const QuickFilterDropdownSingle = _ref => {
|
|
24169
|
+
let {
|
|
24170
|
+
label,
|
|
24171
|
+
hoverColor,
|
|
24172
|
+
options,
|
|
24173
|
+
selectedValue,
|
|
24174
|
+
placeHolder,
|
|
24175
|
+
onChange,
|
|
24176
|
+
disabled,
|
|
24177
|
+
width,
|
|
24178
|
+
error,
|
|
24179
|
+
errorMessage,
|
|
24180
|
+
xIconShow,
|
|
24181
|
+
labelColor,
|
|
24182
|
+
showLabelOnTop
|
|
24183
|
+
} = _ref;
|
|
24181
24184
|
const [isFocused, setIsFocused] = useState(false);
|
|
24182
24185
|
const [showOptions, setShowOptions] = useState(false);
|
|
24183
24186
|
const [inputValue, setInputValue] = useState("");
|
|
@@ -24574,23 +24577,24 @@ const IconContainer$2 = styled.div`
|
|
|
24574
24577
|
cursor: pointer;
|
|
24575
24578
|
`;
|
|
24576
24579
|
|
|
24577
|
-
const QuickFilterDropdownMultiSelection =
|
|
24578
|
-
|
|
24579
|
-
|
|
24580
|
-
|
|
24581
|
-
|
|
24582
|
-
|
|
24583
|
-
|
|
24584
|
-
|
|
24585
|
-
|
|
24586
|
-
|
|
24587
|
-
|
|
24588
|
-
|
|
24589
|
-
|
|
24590
|
-
|
|
24591
|
-
|
|
24592
|
-
|
|
24593
|
-
|
|
24580
|
+
const QuickFilterDropdownMultiSelection = _ref => {
|
|
24581
|
+
let {
|
|
24582
|
+
label,
|
|
24583
|
+
labelEmptyValue,
|
|
24584
|
+
options,
|
|
24585
|
+
selectedValue,
|
|
24586
|
+
placeHolder,
|
|
24587
|
+
onChange,
|
|
24588
|
+
required,
|
|
24589
|
+
disabled,
|
|
24590
|
+
width,
|
|
24591
|
+
error,
|
|
24592
|
+
errorMessage,
|
|
24593
|
+
labelColor,
|
|
24594
|
+
xIconShow,
|
|
24595
|
+
checkBoxColor,
|
|
24596
|
+
showLabelOnTop
|
|
24597
|
+
} = _ref;
|
|
24594
24598
|
const [isFocused, setIsFocused] = useState(false);
|
|
24595
24599
|
const [showOptions, setShowOptions] = useState(false);
|
|
24596
24600
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -35921,9 +35925,9 @@ const ToggleSlider = styled.span`
|
|
|
35921
35925
|
}
|
|
35922
35926
|
`;
|
|
35923
35927
|
|
|
35924
|
-
/**
|
|
35925
|
-
* ToggleSwitch component for on/off states.
|
|
35926
|
-
* Supports small/large sizes and disabled state.
|
|
35928
|
+
/**
|
|
35929
|
+
* ToggleSwitch component for on/off states.
|
|
35930
|
+
* Supports small/large sizes and disabled state.
|
|
35927
35931
|
*/
|
|
35928
35932
|
function ToggleSwitch(_ref) {
|
|
35929
35933
|
let {
|
|
@@ -55039,6 +55043,7 @@ const ToasterMessageBox = _ref => {
|
|
|
55039
55043
|
linkText = '',
|
|
55040
55044
|
duration = 5,
|
|
55041
55045
|
width = '500px',
|
|
55046
|
+
icon = OkCircleIcon,
|
|
55042
55047
|
onLinkClick = () => {},
|
|
55043
55048
|
onClose = () => {}
|
|
55044
55049
|
} = _ref;
|
|
@@ -55077,7 +55082,9 @@ const ToasterMessageBox = _ref => {
|
|
|
55077
55082
|
$isClosing: isClosing
|
|
55078
55083
|
}, /*#__PURE__*/React$1.createElement(IconWrapper, {
|
|
55079
55084
|
$color: color
|
|
55080
|
-
}, /*#__PURE__*/React$1.createElement(
|
|
55085
|
+
}, icon === 'error' ? /*#__PURE__*/React$1.createElement(ErrorIcon, {
|
|
55086
|
+
color: "white"
|
|
55087
|
+
}) : /*#__PURE__*/React$1.createElement(OkCircleIcon, {
|
|
55081
55088
|
color: color,
|
|
55082
55089
|
width: "40",
|
|
55083
55090
|
height: "40"
|