@lumx/react 4.17.0-next.3 → 4.18.0-next.0
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/index.d.ts +20 -8
- package/index.js +228 -203
- package/index.js.map +1 -1
- package/package.json +6 -6
package/index.js
CHANGED
|
@@ -571,7 +571,7 @@ const {
|
|
|
571
571
|
/**
|
|
572
572
|
* Component default props.
|
|
573
573
|
*/
|
|
574
|
-
const DEFAULT_PROPS$
|
|
574
|
+
const DEFAULT_PROPS$1j = {
|
|
575
575
|
size: Size.tiny,
|
|
576
576
|
kind: Kind.info
|
|
577
577
|
};
|
|
@@ -593,8 +593,8 @@ const AlertDialog$1 = props => {
|
|
|
593
593
|
cancelProps,
|
|
594
594
|
confirmProps,
|
|
595
595
|
ref,
|
|
596
|
-
kind = DEFAULT_PROPS$
|
|
597
|
-
size = DEFAULT_PROPS$
|
|
596
|
+
kind = DEFAULT_PROPS$1j.kind,
|
|
597
|
+
size = DEFAULT_PROPS$1j.size,
|
|
598
598
|
dialogProps,
|
|
599
599
|
children,
|
|
600
600
|
DescriptionElement,
|
|
@@ -734,7 +734,7 @@ const AlertDialog = forwardRef((props, ref) => {
|
|
|
734
734
|
});
|
|
735
735
|
AlertDialog.displayName = COMPONENT_NAME$1F;
|
|
736
736
|
AlertDialog.className = CLASSNAME$1C;
|
|
737
|
-
AlertDialog.defaultProps = DEFAULT_PROPS$
|
|
737
|
+
AlertDialog.defaultProps = DEFAULT_PROPS$1j;
|
|
738
738
|
|
|
739
739
|
/**
|
|
740
740
|
* Hook focusing an element when defined and `focus` boolean `true`.
|
|
@@ -836,7 +836,7 @@ const CLASSNAME$1B = 'lumx-autocomplete';
|
|
|
836
836
|
/**
|
|
837
837
|
* Component default props.
|
|
838
838
|
*/
|
|
839
|
-
const DEFAULT_PROPS$
|
|
839
|
+
const DEFAULT_PROPS$1i = {
|
|
840
840
|
anchorToInput: false,
|
|
841
841
|
closeOnClick: false,
|
|
842
842
|
closeOnClickAway: true,
|
|
@@ -859,13 +859,13 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
859
859
|
otherProps
|
|
860
860
|
} = useDisableStateProps(props);
|
|
861
861
|
const {
|
|
862
|
-
anchorToInput = DEFAULT_PROPS$
|
|
862
|
+
anchorToInput = DEFAULT_PROPS$1i.anchorToInput,
|
|
863
863
|
children,
|
|
864
864
|
chips,
|
|
865
865
|
className,
|
|
866
|
-
closeOnClick = DEFAULT_PROPS$
|
|
867
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
868
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
866
|
+
closeOnClick = DEFAULT_PROPS$1i.closeOnClick,
|
|
867
|
+
closeOnClickAway = DEFAULT_PROPS$1i.closeOnClickAway,
|
|
868
|
+
closeOnEscape = DEFAULT_PROPS$1i.closeOnEscape,
|
|
869
869
|
error,
|
|
870
870
|
fitToAnchorWidth,
|
|
871
871
|
hasError,
|
|
@@ -886,7 +886,7 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
886
886
|
onInfiniteScroll,
|
|
887
887
|
placeholder,
|
|
888
888
|
placement,
|
|
889
|
-
shouldFocusOnClose = DEFAULT_PROPS$
|
|
889
|
+
shouldFocusOnClose = DEFAULT_PROPS$1i.shouldFocusOnClose,
|
|
890
890
|
theme = defaultTheme,
|
|
891
891
|
value,
|
|
892
892
|
textFieldProps = {},
|
|
@@ -941,7 +941,7 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
941
941
|
});
|
|
942
942
|
Autocomplete.displayName = COMPONENT_NAME$1E;
|
|
943
943
|
Autocomplete.className = CLASSNAME$1B;
|
|
944
|
-
Autocomplete.defaultProps = DEFAULT_PROPS$
|
|
944
|
+
Autocomplete.defaultProps = DEFAULT_PROPS$1i;
|
|
945
945
|
|
|
946
946
|
/**
|
|
947
947
|
* Component display name.
|
|
@@ -956,7 +956,7 @@ const CLASSNAME$1A = 'lumx-autocomplete-multiple';
|
|
|
956
956
|
/**
|
|
957
957
|
* Component default props.
|
|
958
958
|
*/
|
|
959
|
-
const DEFAULT_PROPS$
|
|
959
|
+
const DEFAULT_PROPS$1h = {
|
|
960
960
|
closeOnClickAway: true,
|
|
961
961
|
closeOnEscape: true,
|
|
962
962
|
selectedChipRender(choice, index, onClear, isDisabled) {
|
|
@@ -997,8 +997,8 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
997
997
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
998
998
|
chipsAlignment,
|
|
999
999
|
className,
|
|
1000
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
1001
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
1000
|
+
closeOnClickAway = DEFAULT_PROPS$1h.closeOnClickAway,
|
|
1001
|
+
closeOnEscape = DEFAULT_PROPS$1h.closeOnEscape,
|
|
1002
1002
|
fitToAnchorWidth,
|
|
1003
1003
|
hasError,
|
|
1004
1004
|
helper,
|
|
@@ -1020,12 +1020,12 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
1020
1020
|
onKeyDown,
|
|
1021
1021
|
placeholder,
|
|
1022
1022
|
placement,
|
|
1023
|
-
selectedChipRender = DEFAULT_PROPS$
|
|
1023
|
+
selectedChipRender = DEFAULT_PROPS$1h.selectedChipRender,
|
|
1024
1024
|
shouldFocusOnClose,
|
|
1025
1025
|
theme = defaultTheme,
|
|
1026
1026
|
type,
|
|
1027
1027
|
value,
|
|
1028
|
-
values = DEFAULT_PROPS$
|
|
1028
|
+
values = DEFAULT_PROPS$1h.values,
|
|
1029
1029
|
...forwardedProps
|
|
1030
1030
|
} = otherProps;
|
|
1031
1031
|
return /*#__PURE__*/jsx(Autocomplete, {
|
|
@@ -1067,7 +1067,7 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
1067
1067
|
});
|
|
1068
1068
|
AutocompleteMultiple.displayName = COMPONENT_NAME$1D;
|
|
1069
1069
|
AutocompleteMultiple.className = CLASSNAME$1A;
|
|
1070
|
-
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$
|
|
1070
|
+
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$1h;
|
|
1071
1071
|
|
|
1072
1072
|
/**
|
|
1073
1073
|
* Component display name.
|
|
@@ -1086,7 +1086,7 @@ const {
|
|
|
1086
1086
|
/**
|
|
1087
1087
|
* Component default props.
|
|
1088
1088
|
*/
|
|
1089
|
-
const DEFAULT_PROPS$
|
|
1089
|
+
const DEFAULT_PROPS$1g = {
|
|
1090
1090
|
size: Size.m
|
|
1091
1091
|
};
|
|
1092
1092
|
|
|
@@ -1103,7 +1103,7 @@ const Avatar$1 = props => {
|
|
|
1103
1103
|
badge,
|
|
1104
1104
|
className,
|
|
1105
1105
|
image,
|
|
1106
|
-
size = DEFAULT_PROPS$
|
|
1106
|
+
size = DEFAULT_PROPS$1g.size,
|
|
1107
1107
|
theme,
|
|
1108
1108
|
ref,
|
|
1109
1109
|
...forwardedProps
|
|
@@ -1144,7 +1144,7 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
1144
1144
|
linkAs,
|
|
1145
1145
|
onClick,
|
|
1146
1146
|
onKeyPress,
|
|
1147
|
-
size = DEFAULT_PROPS$
|
|
1147
|
+
size = DEFAULT_PROPS$1g.size,
|
|
1148
1148
|
theme = defaultTheme,
|
|
1149
1149
|
thumbnailProps,
|
|
1150
1150
|
...forwardedProps
|
|
@@ -1174,7 +1174,7 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
1174
1174
|
});
|
|
1175
1175
|
Avatar.displayName = COMPONENT_NAME$1C;
|
|
1176
1176
|
Avatar.className = CLASSNAME$1z;
|
|
1177
|
-
Avatar.defaultProps = DEFAULT_PROPS$
|
|
1177
|
+
Avatar.defaultProps = DEFAULT_PROPS$1g;
|
|
1178
1178
|
|
|
1179
1179
|
/**
|
|
1180
1180
|
* Component display name.
|
|
@@ -1192,7 +1192,7 @@ const {
|
|
|
1192
1192
|
/**
|
|
1193
1193
|
* Component default props.
|
|
1194
1194
|
*/
|
|
1195
|
-
const DEFAULT_PROPS$
|
|
1195
|
+
const DEFAULT_PROPS$1f = {
|
|
1196
1196
|
color: ColorPalette.primary
|
|
1197
1197
|
};
|
|
1198
1198
|
|
|
@@ -1206,7 +1206,7 @@ const Badge$1 = props => {
|
|
|
1206
1206
|
const {
|
|
1207
1207
|
children,
|
|
1208
1208
|
className,
|
|
1209
|
-
color = DEFAULT_PROPS$
|
|
1209
|
+
color = DEFAULT_PROPS$1f.color,
|
|
1210
1210
|
ref,
|
|
1211
1211
|
...forwardedProps
|
|
1212
1212
|
} = props;
|
|
@@ -1221,7 +1221,7 @@ const Badge$1 = props => {
|
|
|
1221
1221
|
};
|
|
1222
1222
|
Badge$1.displayName = COMPONENT_NAME$1B;
|
|
1223
1223
|
Badge$1.className = CLASSNAME$1y;
|
|
1224
|
-
Badge$1.defaultProps = DEFAULT_PROPS$
|
|
1224
|
+
Badge$1.defaultProps = DEFAULT_PROPS$1f;
|
|
1225
1225
|
|
|
1226
1226
|
/**
|
|
1227
1227
|
* Defines the props of the component.
|
|
@@ -1447,7 +1447,7 @@ const {
|
|
|
1447
1447
|
/**
|
|
1448
1448
|
* Component default props.
|
|
1449
1449
|
*/
|
|
1450
|
-
const DEFAULT_PROPS$
|
|
1450
|
+
const DEFAULT_PROPS$1e = {
|
|
1451
1451
|
emphasis: Emphasis.high,
|
|
1452
1452
|
size: Size.m
|
|
1453
1453
|
};
|
|
@@ -1461,10 +1461,10 @@ const DEFAULT_PROPS$1d = {
|
|
|
1461
1461
|
const Button$1 = props => {
|
|
1462
1462
|
const {
|
|
1463
1463
|
className,
|
|
1464
|
-
emphasis = DEFAULT_PROPS$
|
|
1464
|
+
emphasis = DEFAULT_PROPS$1e.emphasis,
|
|
1465
1465
|
leftIcon,
|
|
1466
1466
|
rightIcon,
|
|
1467
|
-
size = DEFAULT_PROPS$
|
|
1467
|
+
size = DEFAULT_PROPS$1e.size,
|
|
1468
1468
|
...forwardedProps
|
|
1469
1469
|
} = props;
|
|
1470
1470
|
const buttonClassName = classnames(className, modifier({
|
|
@@ -1481,7 +1481,7 @@ const Button$1 = props => {
|
|
|
1481
1481
|
};
|
|
1482
1482
|
Button$1.displayName = COMPONENT_NAME$1y;
|
|
1483
1483
|
Button$1.className = CLASSNAME$1w;
|
|
1484
|
-
Button$1.defaultProps = DEFAULT_PROPS$
|
|
1484
|
+
Button$1.defaultProps = DEFAULT_PROPS$1e;
|
|
1485
1485
|
|
|
1486
1486
|
/**
|
|
1487
1487
|
* Properties of a component to use to determine it's name.
|
|
@@ -1556,7 +1556,7 @@ const Button = forwardRef((props, ref) => {
|
|
|
1556
1556
|
});
|
|
1557
1557
|
Button.displayName = COMPONENT_NAME$1y;
|
|
1558
1558
|
Button.className = CLASSNAME$1w;
|
|
1559
|
-
Button.defaultProps = DEFAULT_PROPS$
|
|
1559
|
+
Button.defaultProps = DEFAULT_PROPS$1e;
|
|
1560
1560
|
|
|
1561
1561
|
const COMPONENT_NAME$1x = 'Icon';
|
|
1562
1562
|
const IconClassName = 'lumx-icon';
|
|
@@ -1573,7 +1573,7 @@ const {
|
|
|
1573
1573
|
/**
|
|
1574
1574
|
* Component default props.
|
|
1575
1575
|
*/
|
|
1576
|
-
const DEFAULT_PROPS$
|
|
1576
|
+
const DEFAULT_PROPS$1d = {};
|
|
1577
1577
|
|
|
1578
1578
|
/**
|
|
1579
1579
|
* Icon component.
|
|
@@ -1653,7 +1653,7 @@ const Icon$1 = props => {
|
|
|
1653
1653
|
};
|
|
1654
1654
|
Icon$1.displayName = COMPONENT_NAME$1x;
|
|
1655
1655
|
Icon$1.className = CLASSNAME$1v;
|
|
1656
|
-
Icon$1.defaultProps = DEFAULT_PROPS$
|
|
1656
|
+
Icon$1.defaultProps = DEFAULT_PROPS$1d;
|
|
1657
1657
|
|
|
1658
1658
|
/**
|
|
1659
1659
|
* Component display name.
|
|
@@ -1668,7 +1668,7 @@ const CLASSNAME$1u = 'lumx-icon-button';
|
|
|
1668
1668
|
/**
|
|
1669
1669
|
* Component default props.
|
|
1670
1670
|
*/
|
|
1671
|
-
const DEFAULT_PROPS$
|
|
1671
|
+
const DEFAULT_PROPS$1c = {
|
|
1672
1672
|
emphasis: Emphasis.high,
|
|
1673
1673
|
size: Size.m
|
|
1674
1674
|
};
|
|
@@ -1681,11 +1681,11 @@ const DEFAULT_PROPS$1b = {
|
|
|
1681
1681
|
*/
|
|
1682
1682
|
const IconButton$1 = props => {
|
|
1683
1683
|
const {
|
|
1684
|
-
emphasis = DEFAULT_PROPS$
|
|
1684
|
+
emphasis = DEFAULT_PROPS$1c.emphasis,
|
|
1685
1685
|
image,
|
|
1686
1686
|
icon,
|
|
1687
1687
|
label,
|
|
1688
|
-
size = DEFAULT_PROPS$
|
|
1688
|
+
size = DEFAULT_PROPS$1c.size,
|
|
1689
1689
|
...forwardedProps
|
|
1690
1690
|
} = props;
|
|
1691
1691
|
const defaultChildren = image ? /*#__PURE__*/jsx("img", {
|
|
@@ -1706,7 +1706,7 @@ const IconButton$1 = props => {
|
|
|
1706
1706
|
};
|
|
1707
1707
|
IconButton$1.displayName = COMPONENT_NAME$1w;
|
|
1708
1708
|
IconButton$1.className = CLASSNAME$1u;
|
|
1709
|
-
IconButton$1.defaultProps = DEFAULT_PROPS$
|
|
1709
|
+
IconButton$1.defaultProps = DEFAULT_PROPS$1c;
|
|
1710
1710
|
|
|
1711
1711
|
/**
|
|
1712
1712
|
* IconButton component.
|
|
@@ -1751,7 +1751,7 @@ const IconButton = forwardRef((props, ref) => {
|
|
|
1751
1751
|
});
|
|
1752
1752
|
IconButton.displayName = COMPONENT_NAME$1w;
|
|
1753
1753
|
IconButton.className = CLASSNAME$1u;
|
|
1754
|
-
IconButton.defaultProps = DEFAULT_PROPS$
|
|
1754
|
+
IconButton.defaultProps = DEFAULT_PROPS$1c;
|
|
1755
1755
|
|
|
1756
1756
|
/**
|
|
1757
1757
|
* Component display name.
|
|
@@ -1766,7 +1766,7 @@ const CLASSNAME$1t = 'lumx-button-group';
|
|
|
1766
1766
|
/**
|
|
1767
1767
|
* Component default props.
|
|
1768
1768
|
*/
|
|
1769
|
-
const DEFAULT_PROPS$
|
|
1769
|
+
const DEFAULT_PROPS$1b = {};
|
|
1770
1770
|
|
|
1771
1771
|
/**
|
|
1772
1772
|
* ButtonGroup component.
|
|
@@ -1788,7 +1788,7 @@ const ButtonGroup$1 = props => {
|
|
|
1788
1788
|
};
|
|
1789
1789
|
ButtonGroup$1.displayName = COMPONENT_NAME$1v;
|
|
1790
1790
|
ButtonGroup$1.className = CLASSNAME$1t;
|
|
1791
|
-
ButtonGroup$1.defaultProps = DEFAULT_PROPS$
|
|
1791
|
+
ButtonGroup$1.defaultProps = DEFAULT_PROPS$1b;
|
|
1792
1792
|
|
|
1793
1793
|
/**
|
|
1794
1794
|
* ButtonGroup component.
|
|
@@ -1805,7 +1805,7 @@ const ButtonGroup = forwardRef((props, ref) => {
|
|
|
1805
1805
|
});
|
|
1806
1806
|
ButtonGroup.displayName = COMPONENT_NAME$1v;
|
|
1807
1807
|
ButtonGroup.className = CLASSNAME$1t;
|
|
1808
|
-
ButtonGroup.defaultProps = DEFAULT_PROPS$
|
|
1808
|
+
ButtonGroup.defaultProps = DEFAULT_PROPS$1b;
|
|
1809
1809
|
|
|
1810
1810
|
const COMPONENT_NAME$1u = 'InputLabel';
|
|
1811
1811
|
const InputLabelClassName = 'lumx-input-label';
|
|
@@ -1813,7 +1813,7 @@ const CLASSNAME$1s = InputLabelClassName;
|
|
|
1813
1813
|
const {
|
|
1814
1814
|
block: block$16
|
|
1815
1815
|
} = bem(CLASSNAME$1s);
|
|
1816
|
-
const DEFAULT_PROPS$
|
|
1816
|
+
const DEFAULT_PROPS$1a = {};
|
|
1817
1817
|
|
|
1818
1818
|
/**
|
|
1819
1819
|
* InputLabel component.
|
|
@@ -1845,7 +1845,7 @@ function InputLabel$1(props) {
|
|
|
1845
1845
|
}
|
|
1846
1846
|
InputLabel$1.displayName = COMPONENT_NAME$1u;
|
|
1847
1847
|
InputLabel$1.className = CLASSNAME$1s;
|
|
1848
|
-
InputLabel$1.defaultProps = DEFAULT_PROPS$
|
|
1848
|
+
InputLabel$1.defaultProps = DEFAULT_PROPS$1a;
|
|
1849
1849
|
|
|
1850
1850
|
const INPUT_HELPER_CONFIGURATION = {
|
|
1851
1851
|
[Kind.error]: {
|
|
@@ -1874,7 +1874,7 @@ const {
|
|
|
1874
1874
|
/**
|
|
1875
1875
|
* Component default props.
|
|
1876
1876
|
*/
|
|
1877
|
-
const DEFAULT_PROPS$
|
|
1877
|
+
const DEFAULT_PROPS$19 = {
|
|
1878
1878
|
kind: Kind.info
|
|
1879
1879
|
};
|
|
1880
1880
|
|
|
@@ -1885,7 +1885,7 @@ function InputHelper$1(props) {
|
|
|
1885
1885
|
const {
|
|
1886
1886
|
children,
|
|
1887
1887
|
className,
|
|
1888
|
-
kind = DEFAULT_PROPS$
|
|
1888
|
+
kind = DEFAULT_PROPS$19.kind,
|
|
1889
1889
|
theme,
|
|
1890
1890
|
ref,
|
|
1891
1891
|
...forwardedProps
|
|
@@ -1905,7 +1905,7 @@ function InputHelper$1(props) {
|
|
|
1905
1905
|
}
|
|
1906
1906
|
InputHelper$1.displayName = COMPONENT_NAME$1t;
|
|
1907
1907
|
InputHelper$1.className = CLASSNAME$1r;
|
|
1908
|
-
InputHelper$1.defaultProps = DEFAULT_PROPS$
|
|
1908
|
+
InputHelper$1.defaultProps = DEFAULT_PROPS$19;
|
|
1909
1909
|
|
|
1910
1910
|
const INTERMEDIATE_STATE = 'intermediate';
|
|
1911
1911
|
|
|
@@ -2020,7 +2020,7 @@ const Checkbox$1 = props => {
|
|
|
2020
2020
|
/**
|
|
2021
2021
|
* Component default props.
|
|
2022
2022
|
*/
|
|
2023
|
-
const DEFAULT_PROPS$
|
|
2023
|
+
const DEFAULT_PROPS$18 = {};
|
|
2024
2024
|
|
|
2025
2025
|
/**
|
|
2026
2026
|
* Checkbox component.
|
|
@@ -2082,7 +2082,7 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
2082
2082
|
});
|
|
2083
2083
|
Checkbox.displayName = COMPONENT_NAME$1s;
|
|
2084
2084
|
Checkbox.className = CLASSNAME$1q;
|
|
2085
|
-
Checkbox.defaultProps = DEFAULT_PROPS$
|
|
2085
|
+
Checkbox.defaultProps = DEFAULT_PROPS$18;
|
|
2086
2086
|
|
|
2087
2087
|
/**
|
|
2088
2088
|
* Wrap mouse event handler to stop event propagation.
|
|
@@ -2117,7 +2117,7 @@ const {
|
|
|
2117
2117
|
/**
|
|
2118
2118
|
* Component default props.
|
|
2119
2119
|
*/
|
|
2120
|
-
const DEFAULT_PROPS$
|
|
2120
|
+
const DEFAULT_PROPS$17 = {
|
|
2121
2121
|
size: Size.m
|
|
2122
2122
|
};
|
|
2123
2123
|
|
|
@@ -2144,7 +2144,7 @@ const Chip$1 = props => {
|
|
|
2144
2144
|
hasAfterClick,
|
|
2145
2145
|
hasBeforeClick,
|
|
2146
2146
|
hasOnClick,
|
|
2147
|
-
size = DEFAULT_PROPS$
|
|
2147
|
+
size = DEFAULT_PROPS$17.size,
|
|
2148
2148
|
theme,
|
|
2149
2149
|
ref,
|
|
2150
2150
|
href,
|
|
@@ -2266,7 +2266,7 @@ const Chip = forwardRef((props, ref) => {
|
|
|
2266
2266
|
});
|
|
2267
2267
|
Chip.displayName = COMPONENT_NAME$1r;
|
|
2268
2268
|
Chip.className = CLASSNAME$1p;
|
|
2269
|
-
Chip.defaultProps = DEFAULT_PROPS$
|
|
2269
|
+
Chip.defaultProps = DEFAULT_PROPS$17;
|
|
2270
2270
|
|
|
2271
2271
|
/**
|
|
2272
2272
|
* Component display name.
|
|
@@ -2281,7 +2281,7 @@ const CLASSNAME$1o = 'lumx-chip-group';
|
|
|
2281
2281
|
/**
|
|
2282
2282
|
* Component default props.
|
|
2283
2283
|
*/
|
|
2284
|
-
const DEFAULT_PROPS$
|
|
2284
|
+
const DEFAULT_PROPS$16 = {};
|
|
2285
2285
|
|
|
2286
2286
|
/**
|
|
2287
2287
|
* ChipGroup component.
|
|
@@ -2379,7 +2379,7 @@ const InternalChipGroup = forwardRef((props, ref) => {
|
|
|
2379
2379
|
});
|
|
2380
2380
|
InternalChipGroup.displayName = COMPONENT_NAME$1q;
|
|
2381
2381
|
InternalChipGroup.className = CLASSNAME$1o;
|
|
2382
|
-
InternalChipGroup.defaultProps = DEFAULT_PROPS$
|
|
2382
|
+
InternalChipGroup.defaultProps = DEFAULT_PROPS$16;
|
|
2383
2383
|
const ChipGroup = Object.assign(InternalChipGroup, {
|
|
2384
2384
|
useChipGroupNavigation
|
|
2385
2385
|
});
|
|
@@ -2722,7 +2722,7 @@ const {
|
|
|
2722
2722
|
/**
|
|
2723
2723
|
* Component default props.
|
|
2724
2724
|
*/
|
|
2725
|
-
const DEFAULT_PROPS$
|
|
2725
|
+
const DEFAULT_PROPS$15 = {};
|
|
2726
2726
|
|
|
2727
2727
|
/**
|
|
2728
2728
|
* Text component common props
|
|
@@ -2809,7 +2809,7 @@ const Text = forwardRef((props, ref) => {
|
|
|
2809
2809
|
});
|
|
2810
2810
|
Text.displayName = COMPONENT_NAME$1o;
|
|
2811
2811
|
Text.className = CLASSNAME$1m;
|
|
2812
|
-
Text.defaultProps = DEFAULT_PROPS$
|
|
2812
|
+
Text.defaultProps = DEFAULT_PROPS$15;
|
|
2813
2813
|
|
|
2814
2814
|
/**
|
|
2815
2815
|
* Custom positioning reference element.
|
|
@@ -4891,7 +4891,7 @@ const TOOLTIP_ZINDEX = 10000;
|
|
|
4891
4891
|
/**
|
|
4892
4892
|
* Component default props.
|
|
4893
4893
|
*/
|
|
4894
|
-
const DEFAULT_PROPS$
|
|
4894
|
+
const DEFAULT_PROPS$14 = {
|
|
4895
4895
|
placement: 'bottom',
|
|
4896
4896
|
closeMode: 'unmount',
|
|
4897
4897
|
ariaLinkMode: 'aria-describedby',
|
|
@@ -5255,11 +5255,11 @@ const Tooltip = forwardRef((props, ref) => {
|
|
|
5255
5255
|
children,
|
|
5256
5256
|
className,
|
|
5257
5257
|
delay,
|
|
5258
|
-
placement = DEFAULT_PROPS$
|
|
5258
|
+
placement = DEFAULT_PROPS$14.placement,
|
|
5259
5259
|
forceOpen,
|
|
5260
|
-
closeMode = DEFAULT_PROPS$
|
|
5261
|
-
ariaLinkMode = DEFAULT_PROPS$
|
|
5262
|
-
zIndex = DEFAULT_PROPS$
|
|
5260
|
+
closeMode = DEFAULT_PROPS$14.closeMode,
|
|
5261
|
+
ariaLinkMode = DEFAULT_PROPS$14.ariaLinkMode,
|
|
5262
|
+
zIndex = DEFAULT_PROPS$14.zIndex,
|
|
5263
5263
|
...forwardedProps
|
|
5264
5264
|
} = props;
|
|
5265
5265
|
// Disable in SSR.
|
|
@@ -5324,7 +5324,7 @@ const Tooltip = forwardRef((props, ref) => {
|
|
|
5324
5324
|
});
|
|
5325
5325
|
Tooltip.displayName = COMPONENT_NAME$1n;
|
|
5326
5326
|
Tooltip.className = CLASSNAME$1l;
|
|
5327
|
-
Tooltip.defaultProps = DEFAULT_PROPS$
|
|
5327
|
+
Tooltip.defaultProps = DEFAULT_PROPS$14;
|
|
5328
5328
|
|
|
5329
5329
|
/** Create a pending navigation store; discards intent on abort. */
|
|
5330
5330
|
function createPendingNavigation(signal) {
|
|
@@ -7731,7 +7731,7 @@ const {
|
|
|
7731
7731
|
/**
|
|
7732
7732
|
* Component default props.
|
|
7733
7733
|
*/
|
|
7734
|
-
const DEFAULT_PROPS$
|
|
7734
|
+
const DEFAULT_PROPS$13 = {
|
|
7735
7735
|
type: 'text'
|
|
7736
7736
|
};
|
|
7737
7737
|
|
|
@@ -7748,7 +7748,7 @@ const RawInputText$1 = props => {
|
|
|
7748
7748
|
handleInput,
|
|
7749
7749
|
handleFocus,
|
|
7750
7750
|
handleBlur,
|
|
7751
|
-
type = DEFAULT_PROPS$
|
|
7751
|
+
type = DEFAULT_PROPS$13.type,
|
|
7752
7752
|
name,
|
|
7753
7753
|
ref,
|
|
7754
7754
|
...forwardedProps
|
|
@@ -7810,7 +7810,7 @@ const {
|
|
|
7810
7810
|
/**
|
|
7811
7811
|
* Component default props.
|
|
7812
7812
|
*/
|
|
7813
|
-
const DEFAULT_PROPS$
|
|
7813
|
+
const DEFAULT_PROPS$12 = {
|
|
7814
7814
|
rows: 2
|
|
7815
7815
|
};
|
|
7816
7816
|
|
|
@@ -7827,7 +7827,7 @@ const RawInputTextarea$1 = props => {
|
|
|
7827
7827
|
handleInput,
|
|
7828
7828
|
handleFocus,
|
|
7829
7829
|
handleBlur,
|
|
7830
|
-
rows = DEFAULT_PROPS$
|
|
7830
|
+
rows = DEFAULT_PROPS$12.rows,
|
|
7831
7831
|
name,
|
|
7832
7832
|
ref,
|
|
7833
7833
|
...forwardedProps
|
|
@@ -7903,8 +7903,8 @@ function useFitRowsToContent(minimumRows, textareaRef, value) {
|
|
|
7903
7903
|
/**
|
|
7904
7904
|
* Component default props.
|
|
7905
7905
|
*/
|
|
7906
|
-
const DEFAULT_PROPS$
|
|
7907
|
-
minimumRows: DEFAULT_PROPS$
|
|
7906
|
+
const DEFAULT_PROPS$11 = {
|
|
7907
|
+
minimumRows: DEFAULT_PROPS$12.rows
|
|
7908
7908
|
};
|
|
7909
7909
|
|
|
7910
7910
|
/**
|
|
@@ -7915,7 +7915,7 @@ const RawInputTextarea = forwardRef((props, ref) => {
|
|
|
7915
7915
|
const defaultTheme = useTheme() || Theme$1.light;
|
|
7916
7916
|
const {
|
|
7917
7917
|
theme = defaultTheme,
|
|
7918
|
-
minimumRows = DEFAULT_PROPS$
|
|
7918
|
+
minimumRows = DEFAULT_PROPS$11.minimumRows,
|
|
7919
7919
|
value,
|
|
7920
7920
|
onChange,
|
|
7921
7921
|
onFocus,
|
|
@@ -7939,7 +7939,7 @@ const RawInputTextarea = forwardRef((props, ref) => {
|
|
|
7939
7939
|
/**
|
|
7940
7940
|
* Component default props.
|
|
7941
7941
|
*/
|
|
7942
|
-
const DEFAULT_PROPS
|
|
7942
|
+
const DEFAULT_PROPS$10 = {
|
|
7943
7943
|
type: 'text'
|
|
7944
7944
|
};
|
|
7945
7945
|
|
|
@@ -7983,7 +7983,7 @@ const TextField = forwardRef((props, ref) => {
|
|
|
7983
7983
|
placeholder,
|
|
7984
7984
|
textFieldRef,
|
|
7985
7985
|
theme = defaultTheme,
|
|
7986
|
-
type = DEFAULT_PROPS
|
|
7986
|
+
type = DEFAULT_PROPS$10.type,
|
|
7987
7987
|
value,
|
|
7988
7988
|
afterElement,
|
|
7989
7989
|
...forwardedProps
|
|
@@ -8090,7 +8090,7 @@ const TextField = forwardRef((props, ref) => {
|
|
|
8090
8090
|
});
|
|
8091
8091
|
TextField.displayName = COMPONENT_NAME$1k;
|
|
8092
8092
|
TextField.className = CLASSNAME$1i;
|
|
8093
|
-
TextField.defaultProps = DEFAULT_PROPS
|
|
8093
|
+
TextField.defaultProps = DEFAULT_PROPS$10;
|
|
8094
8094
|
|
|
8095
8095
|
/**
|
|
8096
8096
|
* Props for Combobox.Input component.
|
|
@@ -8190,7 +8190,7 @@ const {
|
|
|
8190
8190
|
/**
|
|
8191
8191
|
* Component default props.
|
|
8192
8192
|
*/
|
|
8193
|
-
const DEFAULT_PROPS
|
|
8193
|
+
const DEFAULT_PROPS$$ = {};
|
|
8194
8194
|
|
|
8195
8195
|
/**
|
|
8196
8196
|
* List component.
|
|
@@ -8217,7 +8217,7 @@ const List$1 = props => {
|
|
|
8217
8217
|
};
|
|
8218
8218
|
List$1.displayName = COMPONENT_NAME$1j;
|
|
8219
8219
|
List$1.className = CLASSNAME$1h;
|
|
8220
|
-
List$1.defaultProps = DEFAULT_PROPS
|
|
8220
|
+
List$1.defaultProps = DEFAULT_PROPS$$;
|
|
8221
8221
|
|
|
8222
8222
|
/**
|
|
8223
8223
|
* Popup type for the combobox listbox.
|
|
@@ -8369,7 +8369,7 @@ const {
|
|
|
8369
8369
|
/**
|
|
8370
8370
|
* Component default props.
|
|
8371
8371
|
*/
|
|
8372
|
-
const DEFAULT_PROPS$
|
|
8372
|
+
const DEFAULT_PROPS$_ = {
|
|
8373
8373
|
size: Size.regular
|
|
8374
8374
|
};
|
|
8375
8375
|
|
|
@@ -8393,7 +8393,7 @@ const ListItem$1 = props => {
|
|
|
8393
8393
|
linkProps = {},
|
|
8394
8394
|
linkRef,
|
|
8395
8395
|
handleClick,
|
|
8396
|
-
size = DEFAULT_PROPS$
|
|
8396
|
+
size = DEFAULT_PROPS$_.size,
|
|
8397
8397
|
ref,
|
|
8398
8398
|
...forwardedProps
|
|
8399
8399
|
} = props;
|
|
@@ -8433,7 +8433,7 @@ const ListItem$1 = props => {
|
|
|
8433
8433
|
};
|
|
8434
8434
|
ListItem$1.displayName = COMPONENT_NAME$1h;
|
|
8435
8435
|
ListItem$1.className = CLASSNAME$1f;
|
|
8436
|
-
ListItem$1.defaultProps = DEFAULT_PROPS$
|
|
8436
|
+
ListItem$1.defaultProps = DEFAULT_PROPS$_;
|
|
8437
8437
|
|
|
8438
8438
|
/**
|
|
8439
8439
|
* ListItemAction props.
|
|
@@ -8448,7 +8448,7 @@ const COMPONENT_NAME$1g = 'ListItemAction';
|
|
|
8448
8448
|
* Component classname (used by action area CSS pattern).
|
|
8449
8449
|
*/
|
|
8450
8450
|
const CLASSNAME$1e = 'lumx-action-area__action';
|
|
8451
|
-
const DEFAULT_PROPS$
|
|
8451
|
+
const DEFAULT_PROPS$Z = {};
|
|
8452
8452
|
|
|
8453
8453
|
/**
|
|
8454
8454
|
* ListItemAction component.
|
|
@@ -9109,7 +9109,7 @@ const {
|
|
|
9109
9109
|
/**
|
|
9110
9110
|
* Component default props (used by framework wrappers).
|
|
9111
9111
|
*/
|
|
9112
|
-
const DEFAULT_PROPS$
|
|
9112
|
+
const DEFAULT_PROPS$Y = {
|
|
9113
9113
|
closeMode: 'unmount',
|
|
9114
9114
|
elevation: 3,
|
|
9115
9115
|
placement: Placement.AUTO,
|
|
@@ -9133,8 +9133,8 @@ const Popover$1 = (props, {
|
|
|
9133
9133
|
as: asTag = 'div',
|
|
9134
9134
|
children,
|
|
9135
9135
|
className,
|
|
9136
|
-
closeMode = DEFAULT_PROPS$
|
|
9137
|
-
elevation = DEFAULT_PROPS$
|
|
9136
|
+
closeMode = DEFAULT_PROPS$Y.closeMode,
|
|
9137
|
+
elevation = DEFAULT_PROPS$Y.elevation,
|
|
9138
9138
|
hasArrow,
|
|
9139
9139
|
isOpen,
|
|
9140
9140
|
position,
|
|
@@ -9144,7 +9144,7 @@ const Popover$1 = (props, {
|
|
|
9144
9144
|
// Framework-specific
|
|
9145
9145
|
ref,
|
|
9146
9146
|
arrowRef,
|
|
9147
|
-
usePortal = DEFAULT_PROPS$
|
|
9147
|
+
usePortal = DEFAULT_PROPS$Y.usePortal,
|
|
9148
9148
|
clickAwayCallback,
|
|
9149
9149
|
clickAwayRefs,
|
|
9150
9150
|
unmountSentinel,
|
|
@@ -9483,27 +9483,27 @@ const _InnerPopover = forwardRef((props, ref) => {
|
|
|
9483
9483
|
as,
|
|
9484
9484
|
children,
|
|
9485
9485
|
className,
|
|
9486
|
-
closeMode = DEFAULT_PROPS$
|
|
9486
|
+
closeMode = DEFAULT_PROPS$Y.closeMode,
|
|
9487
9487
|
closeOnClickAway,
|
|
9488
9488
|
closeOnEscape,
|
|
9489
|
-
elevation = DEFAULT_PROPS$
|
|
9489
|
+
elevation = DEFAULT_PROPS$Y.elevation,
|
|
9490
9490
|
focusElement,
|
|
9491
9491
|
hasArrow,
|
|
9492
9492
|
isOpen,
|
|
9493
9493
|
onClose,
|
|
9494
9494
|
parentElement,
|
|
9495
|
-
usePortal = DEFAULT_PROPS$
|
|
9496
|
-
focusAnchorOnClose = DEFAULT_PROPS$
|
|
9495
|
+
usePortal = DEFAULT_PROPS$Y.usePortal,
|
|
9496
|
+
focusAnchorOnClose = DEFAULT_PROPS$Y.focusAnchorOnClose,
|
|
9497
9497
|
withFocusTrap,
|
|
9498
9498
|
boundaryRef,
|
|
9499
9499
|
fitToAnchorWidth,
|
|
9500
9500
|
fitWithinViewportHeight,
|
|
9501
9501
|
focusTrapZoneElement,
|
|
9502
9502
|
offset,
|
|
9503
|
-
placement = DEFAULT_PROPS$
|
|
9503
|
+
placement = DEFAULT_PROPS$Y.placement,
|
|
9504
9504
|
style,
|
|
9505
9505
|
theme,
|
|
9506
|
-
zIndex = DEFAULT_PROPS$
|
|
9506
|
+
zIndex = DEFAULT_PROPS$Y.zIndex,
|
|
9507
9507
|
...forwardedProps
|
|
9508
9508
|
} = props;
|
|
9509
9509
|
const popoverRef = useRef(null);
|
|
@@ -9577,7 +9577,7 @@ const Popover = skipRender(
|
|
|
9577
9577
|
() => Boolean(DOCUMENT), _InnerPopover);
|
|
9578
9578
|
Popover.displayName = COMPONENT_NAME$1c;
|
|
9579
9579
|
Popover.className = CLASSNAME$1a;
|
|
9580
|
-
Popover.defaultProps = DEFAULT_PROPS$
|
|
9580
|
+
Popover.defaultProps = DEFAULT_PROPS$Y;
|
|
9581
9581
|
|
|
9582
9582
|
/**
|
|
9583
9583
|
* Props for Combobox.OptionMoreInfo component.
|
|
@@ -10060,7 +10060,7 @@ const {
|
|
|
10060
10060
|
/**
|
|
10061
10061
|
* Component default props.
|
|
10062
10062
|
*/
|
|
10063
|
-
const DEFAULT_PROPS$
|
|
10063
|
+
const DEFAULT_PROPS$X = {};
|
|
10064
10064
|
|
|
10065
10065
|
/**
|
|
10066
10066
|
* ListSection component.
|
|
@@ -10104,7 +10104,7 @@ const ListSection$1 = props => {
|
|
|
10104
10104
|
};
|
|
10105
10105
|
ListSection$1.displayName = COMPONENT_NAME$16;
|
|
10106
10106
|
ListSection$1.className = CLASSNAME$14;
|
|
10107
|
-
ListSection$1.defaultProps = DEFAULT_PROPS$
|
|
10107
|
+
ListSection$1.defaultProps = DEFAULT_PROPS$X;
|
|
10108
10108
|
|
|
10109
10109
|
/**
|
|
10110
10110
|
* Defines the props of the component.
|
|
@@ -10128,7 +10128,7 @@ const ListSection = forwardRef((props, ref) => {
|
|
|
10128
10128
|
});
|
|
10129
10129
|
ListSection.displayName = COMPONENT_NAME$16;
|
|
10130
10130
|
ListSection.className = CLASSNAME$14;
|
|
10131
|
-
ListSection.defaultProps = DEFAULT_PROPS$
|
|
10131
|
+
ListSection.defaultProps = DEFAULT_PROPS$X;
|
|
10132
10132
|
|
|
10133
10133
|
/**
|
|
10134
10134
|
* Props for Combobox.Section component.
|
|
@@ -10377,7 +10377,7 @@ const {
|
|
|
10377
10377
|
/**
|
|
10378
10378
|
* Component default props.
|
|
10379
10379
|
*/
|
|
10380
|
-
const DEFAULT_PROPS$
|
|
10380
|
+
const DEFAULT_PROPS$W = {
|
|
10381
10381
|
gap: Size.big,
|
|
10382
10382
|
orientation: Orientation.horizontal
|
|
10383
10383
|
};
|
|
@@ -10401,10 +10401,10 @@ const GenericBlock$1 = props => {
|
|
|
10401
10401
|
children,
|
|
10402
10402
|
actions,
|
|
10403
10403
|
actionsProps,
|
|
10404
|
-
gap = DEFAULT_PROPS$
|
|
10404
|
+
gap = DEFAULT_PROPS$W.gap,
|
|
10405
10405
|
ref,
|
|
10406
10406
|
content,
|
|
10407
|
-
orientation = DEFAULT_PROPS$
|
|
10407
|
+
orientation = DEFAULT_PROPS$W.orientation,
|
|
10408
10408
|
contentProps,
|
|
10409
10409
|
FlexBox,
|
|
10410
10410
|
...forwardedProps
|
|
@@ -10516,7 +10516,7 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
10516
10516
|
});
|
|
10517
10517
|
BaseGenericBlock.displayName = COMPONENT_NAME$14;
|
|
10518
10518
|
BaseGenericBlock.className = CLASSNAME$12;
|
|
10519
|
-
BaseGenericBlock.defaultProps = DEFAULT_PROPS$
|
|
10519
|
+
BaseGenericBlock.defaultProps = DEFAULT_PROPS$W;
|
|
10520
10520
|
const GenericBlock = Object.assign(BaseGenericBlock, {
|
|
10521
10521
|
Figure,
|
|
10522
10522
|
Content,
|
|
@@ -10610,7 +10610,7 @@ const CLASSNAME$11 = 'lumx-list-divider';
|
|
|
10610
10610
|
/**
|
|
10611
10611
|
* Component default props.
|
|
10612
10612
|
*/
|
|
10613
|
-
const DEFAULT_PROPS$
|
|
10613
|
+
const DEFAULT_PROPS$V = {};
|
|
10614
10614
|
|
|
10615
10615
|
/**
|
|
10616
10616
|
* ListDivider component.
|
|
@@ -10634,7 +10634,7 @@ const ListDivider$1 = props => {
|
|
|
10634
10634
|
};
|
|
10635
10635
|
ListDivider$1.displayName = COMPONENT_NAME$13;
|
|
10636
10636
|
ListDivider$1.className = CLASSNAME$11;
|
|
10637
|
-
ListDivider$1.defaultProps = DEFAULT_PROPS$
|
|
10637
|
+
ListDivider$1.defaultProps = DEFAULT_PROPS$V;
|
|
10638
10638
|
|
|
10639
10639
|
/**
|
|
10640
10640
|
* Defines the props of the component.
|
|
@@ -10656,7 +10656,7 @@ const ListDivider = forwardRef((props, ref) => {
|
|
|
10656
10656
|
});
|
|
10657
10657
|
ListDivider.displayName = COMPONENT_NAME$13;
|
|
10658
10658
|
ListDivider.className = CLASSNAME$11;
|
|
10659
|
-
ListDivider.defaultProps = DEFAULT_PROPS$
|
|
10659
|
+
ListDivider.defaultProps = DEFAULT_PROPS$V;
|
|
10660
10660
|
|
|
10661
10661
|
/**
|
|
10662
10662
|
* Combobox compound component namespace.
|
|
@@ -10719,7 +10719,7 @@ const {
|
|
|
10719
10719
|
/**
|
|
10720
10720
|
* Component default props.
|
|
10721
10721
|
*/
|
|
10722
|
-
const DEFAULT_PROPS$
|
|
10722
|
+
const DEFAULT_PROPS$U = {
|
|
10723
10723
|
variant: CommentBlockVariant.indented
|
|
10724
10724
|
};
|
|
10725
10725
|
|
|
@@ -10749,7 +10749,7 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
10749
10749
|
onMouseLeave,
|
|
10750
10750
|
text,
|
|
10751
10751
|
theme = defaultTheme,
|
|
10752
|
-
variant = DEFAULT_PROPS$
|
|
10752
|
+
variant = DEFAULT_PROPS$U.variant,
|
|
10753
10753
|
...forwardedProps
|
|
10754
10754
|
} = props;
|
|
10755
10755
|
const hasChildren = Children.count(children) > 0;
|
|
@@ -10818,7 +10818,7 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
10818
10818
|
});
|
|
10819
10819
|
CommentBlock.displayName = COMPONENT_NAME$12;
|
|
10820
10820
|
CommentBlock.className = CLASSNAME$10;
|
|
10821
|
-
CommentBlock.defaultProps = DEFAULT_PROPS$
|
|
10821
|
+
CommentBlock.defaultProps = DEFAULT_PROPS$U;
|
|
10822
10822
|
|
|
10823
10823
|
/**
|
|
10824
10824
|
* Add a number of months from a date while resetting the day to prevent month length mismatches.
|
|
@@ -11721,7 +11721,7 @@ const {
|
|
|
11721
11721
|
/**
|
|
11722
11722
|
* Component default props.
|
|
11723
11723
|
*/
|
|
11724
|
-
const DEFAULT_PROPS$
|
|
11724
|
+
const DEFAULT_PROPS$T = {
|
|
11725
11725
|
size: Size.big
|
|
11726
11726
|
};
|
|
11727
11727
|
|
|
@@ -11744,7 +11744,7 @@ const Dialog$1 = props => {
|
|
|
11744
11744
|
isOpen,
|
|
11745
11745
|
handleClose,
|
|
11746
11746
|
contentRef,
|
|
11747
|
-
size = DEFAULT_PROPS$
|
|
11747
|
+
size = DEFAULT_PROPS$T.size,
|
|
11748
11748
|
zIndex,
|
|
11749
11749
|
dialogProps,
|
|
11750
11750
|
headerChildContent,
|
|
@@ -11848,7 +11848,7 @@ const isFooter$1 = isComponent('footer');
|
|
|
11848
11848
|
/**
|
|
11849
11849
|
* Component default props.
|
|
11850
11850
|
*/
|
|
11851
|
-
const DEFAULT_PROPS$
|
|
11851
|
+
const DEFAULT_PROPS$S = {
|
|
11852
11852
|
closeMode: 'unmount',
|
|
11853
11853
|
size: Size$1.big,
|
|
11854
11854
|
disableBodyScroll: true
|
|
@@ -11869,7 +11869,7 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
11869
11869
|
const {
|
|
11870
11870
|
children,
|
|
11871
11871
|
className,
|
|
11872
|
-
closeMode = DEFAULT_PROPS$
|
|
11872
|
+
closeMode = DEFAULT_PROPS$S.closeMode,
|
|
11873
11873
|
header,
|
|
11874
11874
|
focusElement,
|
|
11875
11875
|
forceFooterDivider,
|
|
@@ -11881,11 +11881,11 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
11881
11881
|
parentElement,
|
|
11882
11882
|
contentRef,
|
|
11883
11883
|
preventAutoClose,
|
|
11884
|
-
size = DEFAULT_PROPS$
|
|
11884
|
+
size = DEFAULT_PROPS$S.size,
|
|
11885
11885
|
zIndex,
|
|
11886
11886
|
dialogProps,
|
|
11887
11887
|
onVisibilityChange,
|
|
11888
|
-
disableBodyScroll = DEFAULT_PROPS$
|
|
11888
|
+
disableBodyScroll = DEFAULT_PROPS$S.disableBodyScroll,
|
|
11889
11889
|
preventCloseOnClick,
|
|
11890
11890
|
preventCloseOnEscape,
|
|
11891
11891
|
...forwardedProps
|
|
@@ -11991,7 +11991,7 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
11991
11991
|
});
|
|
11992
11992
|
Dialog.displayName = COMPONENT_NAME$_;
|
|
11993
11993
|
Dialog.className = CLASSNAME$_;
|
|
11994
|
-
Dialog.defaultProps = DEFAULT_PROPS$
|
|
11994
|
+
Dialog.defaultProps = DEFAULT_PROPS$S;
|
|
11995
11995
|
|
|
11996
11996
|
/**
|
|
11997
11997
|
* Component display name.
|
|
@@ -12035,7 +12035,7 @@ const Divider$1 = props => {
|
|
|
12035
12035
|
/**
|
|
12036
12036
|
* Component default props.
|
|
12037
12037
|
*/
|
|
12038
|
-
const DEFAULT_PROPS$
|
|
12038
|
+
const DEFAULT_PROPS$R = {};
|
|
12039
12039
|
|
|
12040
12040
|
/**
|
|
12041
12041
|
* Divider component.
|
|
@@ -12058,7 +12058,7 @@ const Divider = forwardRef((props, ref) => {
|
|
|
12058
12058
|
});
|
|
12059
12059
|
Divider.displayName = COMPONENT_NAME$Z;
|
|
12060
12060
|
Divider.className = CLASSNAME$Z;
|
|
12061
|
-
Divider.defaultProps = DEFAULT_PROPS$
|
|
12061
|
+
Divider.defaultProps = DEFAULT_PROPS$R;
|
|
12062
12062
|
|
|
12063
12063
|
/**
|
|
12064
12064
|
* Component display name.
|
|
@@ -12107,7 +12107,7 @@ const DragHandle$1 = props => {
|
|
|
12107
12107
|
/**
|
|
12108
12108
|
* Component default props.
|
|
12109
12109
|
*/
|
|
12110
|
-
const DEFAULT_PROPS$
|
|
12110
|
+
const DEFAULT_PROPS$Q = {};
|
|
12111
12111
|
|
|
12112
12112
|
/**
|
|
12113
12113
|
* DragHandle component.
|
|
@@ -12130,7 +12130,7 @@ const DragHandle = forwardRef((props, ref) => {
|
|
|
12130
12130
|
});
|
|
12131
12131
|
DragHandle.displayName = COMPONENT_NAME$Y;
|
|
12132
12132
|
DragHandle.className = CLASSNAME$Y;
|
|
12133
|
-
DragHandle.defaultProps = DEFAULT_PROPS$
|
|
12133
|
+
DragHandle.defaultProps = DEFAULT_PROPS$Q;
|
|
12134
12134
|
|
|
12135
12135
|
const INITIAL_INDEX = -1;
|
|
12136
12136
|
|
|
@@ -12326,7 +12326,7 @@ const InternalList = forwardRef((props, ref) => {
|
|
|
12326
12326
|
});
|
|
12327
12327
|
InternalList.displayName = COMPONENT_NAME$1j;
|
|
12328
12328
|
InternalList.className = CLASSNAME$1h;
|
|
12329
|
-
InternalList.defaultProps = DEFAULT_PROPS
|
|
12329
|
+
InternalList.defaultProps = DEFAULT_PROPS$$;
|
|
12330
12330
|
const List = Object.assign(InternalList, {
|
|
12331
12331
|
useKeyboardListNavigation
|
|
12332
12332
|
});
|
|
@@ -12389,7 +12389,7 @@ const {
|
|
|
12389
12389
|
/**
|
|
12390
12390
|
* Component default props.
|
|
12391
12391
|
*/
|
|
12392
|
-
const DEFAULT_PROPS$
|
|
12392
|
+
const DEFAULT_PROPS$P = {
|
|
12393
12393
|
closeOnClick: true,
|
|
12394
12394
|
closeOnClickAway: true,
|
|
12395
12395
|
closeOnEscape: true,
|
|
@@ -12403,6 +12403,7 @@ const DEFAULT_PROPS$O = {
|
|
|
12403
12403
|
/**
|
|
12404
12404
|
* Dropdown component.
|
|
12405
12405
|
*
|
|
12406
|
+
* @deprecated Use `MenuButton` for action-based dropdowns, `SelectButton` for selection-based dropdowns, or `Popover` for lower-level control.
|
|
12406
12407
|
* @param props Component props.
|
|
12407
12408
|
* @param ref Component ref.
|
|
12408
12409
|
* @return React element.
|
|
@@ -12412,18 +12413,18 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
12412
12413
|
anchorRef,
|
|
12413
12414
|
children,
|
|
12414
12415
|
className,
|
|
12415
|
-
closeOnClick = DEFAULT_PROPS$
|
|
12416
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
12417
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
12418
|
-
fitToAnchorWidth = DEFAULT_PROPS$
|
|
12419
|
-
fitWithinViewportHeight = DEFAULT_PROPS$
|
|
12416
|
+
closeOnClick = DEFAULT_PROPS$P.closeOnClick,
|
|
12417
|
+
closeOnClickAway = DEFAULT_PROPS$P.closeOnClickAway,
|
|
12418
|
+
closeOnEscape = DEFAULT_PROPS$P.closeOnEscape,
|
|
12419
|
+
fitToAnchorWidth = DEFAULT_PROPS$P.fitToAnchorWidth,
|
|
12420
|
+
fitWithinViewportHeight = DEFAULT_PROPS$P.fitWithinViewportHeight,
|
|
12420
12421
|
isOpen,
|
|
12421
12422
|
offset,
|
|
12422
|
-
focusAnchorOnClose = DEFAULT_PROPS$
|
|
12423
|
+
focusAnchorOnClose = DEFAULT_PROPS$P.focusAnchorOnClose,
|
|
12423
12424
|
onClose,
|
|
12424
12425
|
onInfiniteScroll,
|
|
12425
|
-
placement = DEFAULT_PROPS$
|
|
12426
|
-
shouldFocusOnOpen = DEFAULT_PROPS$
|
|
12426
|
+
placement = DEFAULT_PROPS$P.placement,
|
|
12427
|
+
shouldFocusOnOpen = DEFAULT_PROPS$P.shouldFocusOnOpen,
|
|
12427
12428
|
zIndex,
|
|
12428
12429
|
...forwardedProps
|
|
12429
12430
|
} = props;
|
|
@@ -12469,7 +12470,7 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
12469
12470
|
});
|
|
12470
12471
|
Dropdown.displayName = COMPONENT_NAME$X;
|
|
12471
12472
|
Dropdown.className = CLASSNAME$X;
|
|
12472
|
-
Dropdown.defaultProps = DEFAULT_PROPS$
|
|
12473
|
+
Dropdown.defaultProps = DEFAULT_PROPS$P;
|
|
12473
12474
|
|
|
12474
12475
|
/**
|
|
12475
12476
|
* Component display name.
|
|
@@ -12488,7 +12489,7 @@ const {
|
|
|
12488
12489
|
/**
|
|
12489
12490
|
* Component default props.
|
|
12490
12491
|
*/
|
|
12491
|
-
const DEFAULT_PROPS$
|
|
12492
|
+
const DEFAULT_PROPS$O = {
|
|
12492
12493
|
closeMode: 'unmount'
|
|
12493
12494
|
};
|
|
12494
12495
|
|
|
@@ -12601,7 +12602,7 @@ const isFooter = isComponent('footer');
|
|
|
12601
12602
|
const ExpansionPanel = forwardRef((props, ref) => {
|
|
12602
12603
|
const defaultTheme = useTheme() || Theme$1.light;
|
|
12603
12604
|
const {
|
|
12604
|
-
closeMode = DEFAULT_PROPS$
|
|
12605
|
+
closeMode = DEFAULT_PROPS$O.closeMode,
|
|
12605
12606
|
children: anyChildren,
|
|
12606
12607
|
isOpen,
|
|
12607
12608
|
label,
|
|
@@ -12674,11 +12675,11 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
12674
12675
|
});
|
|
12675
12676
|
ExpansionPanel.displayName = COMPONENT_NAME$W;
|
|
12676
12677
|
ExpansionPanel.className = CLASSNAME$W;
|
|
12677
|
-
ExpansionPanel.defaultProps = DEFAULT_PROPS$
|
|
12678
|
+
ExpansionPanel.defaultProps = DEFAULT_PROPS$O;
|
|
12678
12679
|
|
|
12679
12680
|
const COMPONENT_NAME$V = 'Flag';
|
|
12680
12681
|
const CLASSNAME$V = 'lumx-flag';
|
|
12681
|
-
const DEFAULT_PROPS$
|
|
12682
|
+
const DEFAULT_PROPS$N = {};
|
|
12682
12683
|
const {
|
|
12683
12684
|
block: block$H,
|
|
12684
12685
|
element: element$y
|
|
@@ -12742,7 +12743,7 @@ const Flag = forwardRef((props, ref) => {
|
|
|
12742
12743
|
});
|
|
12743
12744
|
Flag.displayName = COMPONENT_NAME$V;
|
|
12744
12745
|
Flag.className = CLASSNAME$V;
|
|
12745
|
-
Flag.defaultProps = DEFAULT_PROPS$
|
|
12746
|
+
Flag.defaultProps = DEFAULT_PROPS$N;
|
|
12746
12747
|
|
|
12747
12748
|
/** The maximum authorized heading level. */
|
|
12748
12749
|
const MAX_HEADING_LEVEL = 6;
|
|
@@ -12780,7 +12781,7 @@ const CLASSNAME$U = 'lumx-heading';
|
|
|
12780
12781
|
/**
|
|
12781
12782
|
* Component default props.
|
|
12782
12783
|
*/
|
|
12783
|
-
const DEFAULT_PROPS$
|
|
12784
|
+
const DEFAULT_PROPS$M = {};
|
|
12784
12785
|
|
|
12785
12786
|
/**
|
|
12786
12787
|
* Get Heading component common props
|
|
@@ -12840,7 +12841,7 @@ const Heading = forwardRef((props, ref) => {
|
|
|
12840
12841
|
});
|
|
12841
12842
|
Heading.displayName = COMPONENT_NAME$U;
|
|
12842
12843
|
Heading.className = CLASSNAME$U;
|
|
12843
|
-
Heading.defaultProps = DEFAULT_PROPS$
|
|
12844
|
+
Heading.defaultProps = DEFAULT_PROPS$M;
|
|
12844
12845
|
|
|
12845
12846
|
/**
|
|
12846
12847
|
* Computes the next heading level based on the optional prop level or the parent context level.
|
|
@@ -12891,7 +12892,7 @@ const {
|
|
|
12891
12892
|
/**
|
|
12892
12893
|
* Component default props.
|
|
12893
12894
|
*/
|
|
12894
|
-
const DEFAULT_PROPS$
|
|
12895
|
+
const DEFAULT_PROPS$L = {
|
|
12895
12896
|
orientation: Orientation$1.horizontal,
|
|
12896
12897
|
wrap: 'nowrap'
|
|
12897
12898
|
};
|
|
@@ -12909,9 +12910,9 @@ const Grid = forwardRef((props, ref) => {
|
|
|
12909
12910
|
className,
|
|
12910
12911
|
gutter,
|
|
12911
12912
|
hAlign,
|
|
12912
|
-
orientation = DEFAULT_PROPS$
|
|
12913
|
+
orientation = DEFAULT_PROPS$L.orientation,
|
|
12913
12914
|
vAlign,
|
|
12914
|
-
wrap = DEFAULT_PROPS$
|
|
12915
|
+
wrap = DEFAULT_PROPS$L.wrap,
|
|
12915
12916
|
...forwardedProps
|
|
12916
12917
|
} = props;
|
|
12917
12918
|
return /*#__PURE__*/jsx("div", {
|
|
@@ -12929,7 +12930,7 @@ const Grid = forwardRef((props, ref) => {
|
|
|
12929
12930
|
});
|
|
12930
12931
|
Grid.displayName = COMPONENT_NAME$T;
|
|
12931
12932
|
Grid.className = CLASSNAME$T;
|
|
12932
|
-
Grid.defaultProps = DEFAULT_PROPS$
|
|
12933
|
+
Grid.defaultProps = DEFAULT_PROPS$L;
|
|
12933
12934
|
|
|
12934
12935
|
/**
|
|
12935
12936
|
* Component display name.
|
|
@@ -12987,7 +12988,7 @@ const CLASSNAME$R = 'lumx-grid-column';
|
|
|
12987
12988
|
/**
|
|
12988
12989
|
* Component default props.
|
|
12989
12990
|
*/
|
|
12990
|
-
const DEFAULT_PROPS$
|
|
12991
|
+
const DEFAULT_PROPS$K = {};
|
|
12991
12992
|
|
|
12992
12993
|
/**
|
|
12993
12994
|
* The GridColumn is a layout component that can display children in a grid
|
|
@@ -13024,7 +13025,7 @@ const GridColumn$1 = props => {
|
|
|
13024
13025
|
};
|
|
13025
13026
|
GridColumn$1.displayName = COMPONENT_NAME$R;
|
|
13026
13027
|
GridColumn$1.className = CLASSNAME$R;
|
|
13027
|
-
GridColumn$1.defaultProps = DEFAULT_PROPS$
|
|
13028
|
+
GridColumn$1.defaultProps = DEFAULT_PROPS$K;
|
|
13028
13029
|
|
|
13029
13030
|
/**
|
|
13030
13031
|
* Defines the props of the component.
|
|
@@ -13035,7 +13036,7 @@ GridColumn$1.defaultProps = DEFAULT_PROPS$J;
|
|
|
13035
13036
|
/**
|
|
13036
13037
|
* Component default props.
|
|
13037
13038
|
*/
|
|
13038
|
-
const DEFAULT_PROPS$
|
|
13039
|
+
const DEFAULT_PROPS$J = {};
|
|
13039
13040
|
|
|
13040
13041
|
/**
|
|
13041
13042
|
* The GridColumn is a layout component that can display children in a grid
|
|
@@ -13054,7 +13055,7 @@ const GridColumn = forwardRef((props, ref) => {
|
|
|
13054
13055
|
});
|
|
13055
13056
|
GridColumn.displayName = COMPONENT_NAME$R;
|
|
13056
13057
|
GridColumn.className = CLASSNAME$R;
|
|
13057
|
-
GridColumn.defaultProps = DEFAULT_PROPS$
|
|
13058
|
+
GridColumn.defaultProps = DEFAULT_PROPS$J;
|
|
13058
13059
|
|
|
13059
13060
|
/**
|
|
13060
13061
|
* Image block variants.
|
|
@@ -13089,7 +13090,7 @@ const {
|
|
|
13089
13090
|
/**
|
|
13090
13091
|
* Component default props.
|
|
13091
13092
|
*/
|
|
13092
|
-
const DEFAULT_PROPS$
|
|
13093
|
+
const DEFAULT_PROPS$I = {
|
|
13093
13094
|
captionPosition: ImageBlockCaptionPosition.below,
|
|
13094
13095
|
align: Alignment.left
|
|
13095
13096
|
};
|
|
@@ -13104,9 +13105,9 @@ const DEFAULT_PROPS$H = {
|
|
|
13104
13105
|
const ImageBlock$1 = props => {
|
|
13105
13106
|
const {
|
|
13106
13107
|
actions,
|
|
13107
|
-
align = DEFAULT_PROPS$
|
|
13108
|
+
align = DEFAULT_PROPS$I.align,
|
|
13108
13109
|
alt,
|
|
13109
|
-
captionPosition = DEFAULT_PROPS$
|
|
13110
|
+
captionPosition = DEFAULT_PROPS$I.captionPosition,
|
|
13110
13111
|
captionStyle,
|
|
13111
13112
|
className,
|
|
13112
13113
|
description,
|
|
@@ -13278,7 +13279,7 @@ const ImageBlock = forwardRef((props, ref) => {
|
|
|
13278
13279
|
});
|
|
13279
13280
|
ImageBlock.displayName = COMPONENT_NAME$Q;
|
|
13280
13281
|
ImageBlock.className = CLASSNAME$Q;
|
|
13281
|
-
ImageBlock.defaultProps = DEFAULT_PROPS$
|
|
13282
|
+
ImageBlock.defaultProps = DEFAULT_PROPS$I;
|
|
13282
13283
|
|
|
13283
13284
|
/**
|
|
13284
13285
|
* Component display name.
|
|
@@ -14032,7 +14033,7 @@ const {
|
|
|
14032
14033
|
/**
|
|
14033
14034
|
* Component default props.
|
|
14034
14035
|
*/
|
|
14035
|
-
const DEFAULT_PROPS$
|
|
14036
|
+
const DEFAULT_PROPS$H = {};
|
|
14036
14037
|
|
|
14037
14038
|
/**
|
|
14038
14039
|
* InlineList component.
|
|
@@ -14081,7 +14082,7 @@ const InlineList$1 = props => {
|
|
|
14081
14082
|
};
|
|
14082
14083
|
InlineList$1.displayName = COMPONENT_NAME$O;
|
|
14083
14084
|
InlineList$1.className = CLASSNAME$O;
|
|
14084
|
-
InlineList$1.defaultProps = DEFAULT_PROPS$
|
|
14085
|
+
InlineList$1.defaultProps = DEFAULT_PROPS$H;
|
|
14085
14086
|
|
|
14086
14087
|
/**
|
|
14087
14088
|
* Defines the props of the component.
|
|
@@ -14107,7 +14108,7 @@ const InlineList = forwardRef((props, ref) => {
|
|
|
14107
14108
|
});
|
|
14108
14109
|
InlineList.displayName = COMPONENT_NAME$O;
|
|
14109
14110
|
InlineList.className = CLASSNAME$O;
|
|
14110
|
-
InlineList.defaultProps = DEFAULT_PROPS$
|
|
14111
|
+
InlineList.defaultProps = DEFAULT_PROPS$H;
|
|
14111
14112
|
|
|
14112
14113
|
/**
|
|
14113
14114
|
* InputHelper component.
|
|
@@ -14466,7 +14467,7 @@ const {
|
|
|
14466
14467
|
/**
|
|
14467
14468
|
* Component default props.
|
|
14468
14469
|
*/
|
|
14469
|
-
const DEFAULT_PROPS$
|
|
14470
|
+
const DEFAULT_PROPS$G = {
|
|
14470
14471
|
size: Size.regular,
|
|
14471
14472
|
titleHeading: 'h2'
|
|
14472
14473
|
};
|
|
@@ -14485,7 +14486,7 @@ const LinkPreview$1 = props => {
|
|
|
14485
14486
|
link,
|
|
14486
14487
|
linkAs,
|
|
14487
14488
|
linkProps,
|
|
14488
|
-
size = DEFAULT_PROPS$
|
|
14489
|
+
size = DEFAULT_PROPS$G.size,
|
|
14489
14490
|
theme,
|
|
14490
14491
|
thumbnailProps,
|
|
14491
14492
|
ref,
|
|
@@ -14573,7 +14574,7 @@ const LinkPreview = forwardRef((props, ref) => {
|
|
|
14573
14574
|
const defaultTheme = useTheme() || Theme$1.light;
|
|
14574
14575
|
const {
|
|
14575
14576
|
theme = defaultTheme,
|
|
14576
|
-
titleHeading = DEFAULT_PROPS$
|
|
14577
|
+
titleHeading = DEFAULT_PROPS$G.titleHeading,
|
|
14577
14578
|
...forwardedProps
|
|
14578
14579
|
} = props;
|
|
14579
14580
|
// Use title heading as title wrapper (see DEFAULT_PROPS for the default value).
|
|
@@ -14589,7 +14590,7 @@ const LinkPreview = forwardRef((props, ref) => {
|
|
|
14589
14590
|
});
|
|
14590
14591
|
LinkPreview.displayName = COMPONENT_NAME$L;
|
|
14591
14592
|
LinkPreview.className = CLASSNAME$L;
|
|
14592
|
-
LinkPreview.defaultProps = DEFAULT_PROPS$
|
|
14593
|
+
LinkPreview.defaultProps = DEFAULT_PROPS$G;
|
|
14593
14594
|
|
|
14594
14595
|
/**
|
|
14595
14596
|
* ListItem.Action props.
|
|
@@ -14622,7 +14623,7 @@ const ListItemAction = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
14622
14623
|
}), {
|
|
14623
14624
|
displayName: COMPONENT_NAME$1g,
|
|
14624
14625
|
className: CLASSNAME$1e,
|
|
14625
|
-
defaultProps: DEFAULT_PROPS$
|
|
14626
|
+
defaultProps: DEFAULT_PROPS$Z
|
|
14626
14627
|
});
|
|
14627
14628
|
|
|
14628
14629
|
/**
|
|
@@ -14662,7 +14663,7 @@ const _ListItem = forwardRef((props, ref) => {
|
|
|
14662
14663
|
});
|
|
14663
14664
|
_ListItem.displayName = COMPONENT_NAME$1h;
|
|
14664
14665
|
_ListItem.className = CLASSNAME$1f;
|
|
14665
|
-
_ListItem.defaultProps = DEFAULT_PROPS$
|
|
14666
|
+
_ListItem.defaultProps = DEFAULT_PROPS$_;
|
|
14666
14667
|
|
|
14667
14668
|
/**
|
|
14668
14669
|
* ListItem component with Action sub-component.
|
|
@@ -14706,7 +14707,7 @@ const ListSubheader = forwardRef((props, ref) => {
|
|
|
14706
14707
|
ListSubheader.displayName = COMPONENT_NAME$K;
|
|
14707
14708
|
ListSubheader.className = CLASSNAME$K;
|
|
14708
14709
|
|
|
14709
|
-
const DEFAULT_PROPS$
|
|
14710
|
+
const DEFAULT_PROPS$F = {
|
|
14710
14711
|
variant: 'button'
|
|
14711
14712
|
};
|
|
14712
14713
|
|
|
@@ -15417,7 +15418,7 @@ const MenuButton = forwardRef((props, ref) => {
|
|
|
15417
15418
|
children,
|
|
15418
15419
|
popoverProps,
|
|
15419
15420
|
onOpen,
|
|
15420
|
-
variant = DEFAULT_PROPS$
|
|
15421
|
+
variant = DEFAULT_PROPS$F.variant,
|
|
15421
15422
|
...triggerProps
|
|
15422
15423
|
} = props;
|
|
15423
15424
|
return MenuButton$1({
|
|
@@ -15439,7 +15440,7 @@ const MenuButton = forwardRef((props, ref) => {
|
|
|
15439
15440
|
});
|
|
15440
15441
|
});
|
|
15441
15442
|
MenuButton.displayName = COMPONENT_NAME$J;
|
|
15442
|
-
MenuButton.defaultProps = DEFAULT_PROPS$
|
|
15443
|
+
MenuButton.defaultProps = DEFAULT_PROPS$F;
|
|
15443
15444
|
|
|
15444
15445
|
/** MenuItem props. */
|
|
15445
15446
|
|
|
@@ -15686,7 +15687,7 @@ const {
|
|
|
15686
15687
|
/**
|
|
15687
15688
|
* Component default props.
|
|
15688
15689
|
*/
|
|
15689
|
-
const DEFAULT_PROPS$
|
|
15690
|
+
const DEFAULT_PROPS$E = {};
|
|
15690
15691
|
|
|
15691
15692
|
/**
|
|
15692
15693
|
* Mosaic component.
|
|
@@ -15781,7 +15782,7 @@ const Mosaic = forwardRef((props, ref) => {
|
|
|
15781
15782
|
});
|
|
15782
15783
|
Mosaic.displayName = COMPONENT_NAME$D;
|
|
15783
15784
|
Mosaic.className = CLASSNAME$E;
|
|
15784
|
-
Mosaic.defaultProps = DEFAULT_PROPS$
|
|
15785
|
+
Mosaic.defaultProps = DEFAULT_PROPS$E;
|
|
15785
15786
|
|
|
15786
15787
|
const NavigationContext = /*#__PURE__*/createContext({
|
|
15787
15788
|
orientation: Orientation$1.vertical
|
|
@@ -15979,7 +15980,7 @@ const {
|
|
|
15979
15980
|
/**
|
|
15980
15981
|
* Component default props
|
|
15981
15982
|
*/
|
|
15982
|
-
const DEFAULT_PROPS$
|
|
15983
|
+
const DEFAULT_PROPS$D = {
|
|
15983
15984
|
orientation: Orientation$1.vertical
|
|
15984
15985
|
};
|
|
15985
15986
|
const Navigation = forwardRef((props, ref) => {
|
|
@@ -15988,7 +15989,7 @@ const Navigation = forwardRef((props, ref) => {
|
|
|
15988
15989
|
children,
|
|
15989
15990
|
className,
|
|
15990
15991
|
theme = defaultTheme,
|
|
15991
|
-
orientation = DEFAULT_PROPS$
|
|
15992
|
+
orientation = DEFAULT_PROPS$D.orientation,
|
|
15992
15993
|
...forwardedProps
|
|
15993
15994
|
} = props;
|
|
15994
15995
|
return /*#__PURE__*/jsx(ThemeProvider, {
|
|
@@ -16014,7 +16015,7 @@ const Navigation = forwardRef((props, ref) => {
|
|
|
16014
16015
|
});
|
|
16015
16016
|
Navigation.displayName = COMPONENT_NAME$B;
|
|
16016
16017
|
Navigation.className = CLASSNAME$C;
|
|
16017
|
-
Navigation.defaultProps = DEFAULT_PROPS$
|
|
16018
|
+
Navigation.defaultProps = DEFAULT_PROPS$D;
|
|
16018
16019
|
|
|
16019
16020
|
// Sub components
|
|
16020
16021
|
Navigation.Section = NavigationSection;
|
|
@@ -16059,7 +16060,7 @@ const {
|
|
|
16059
16060
|
/**
|
|
16060
16061
|
* Component default props.
|
|
16061
16062
|
*/
|
|
16062
|
-
const DEFAULT_PROPS$
|
|
16063
|
+
const DEFAULT_PROPS$C = {
|
|
16063
16064
|
zIndex: 9999,
|
|
16064
16065
|
usePortal: true
|
|
16065
16066
|
};
|
|
@@ -16083,8 +16084,8 @@ const Notification = forwardRef((props, ref) => {
|
|
|
16083
16084
|
onClick,
|
|
16084
16085
|
theme = defaultTheme,
|
|
16085
16086
|
type,
|
|
16086
|
-
zIndex = DEFAULT_PROPS$
|
|
16087
|
-
usePortal = DEFAULT_PROPS$
|
|
16087
|
+
zIndex = DEFAULT_PROPS$C.zIndex,
|
|
16088
|
+
usePortal = DEFAULT_PROPS$C.usePortal,
|
|
16088
16089
|
style,
|
|
16089
16090
|
...forwardedProps
|
|
16090
16091
|
} = props;
|
|
@@ -16149,7 +16150,7 @@ const Notification = forwardRef((props, ref) => {
|
|
|
16149
16150
|
});
|
|
16150
16151
|
Notification.displayName = COMPONENT_NAME$A;
|
|
16151
16152
|
Notification.className = CLASSNAME$B;
|
|
16152
|
-
Notification.defaultProps = DEFAULT_PROPS$
|
|
16153
|
+
Notification.defaultProps = DEFAULT_PROPS$C;
|
|
16153
16154
|
|
|
16154
16155
|
/**
|
|
16155
16156
|
* PopoverDialog props.
|
|
@@ -16169,7 +16170,7 @@ const CLASSNAME$A = 'lumx-popover-dialog';
|
|
|
16169
16170
|
/**
|
|
16170
16171
|
* Component default props.
|
|
16171
16172
|
*/
|
|
16172
|
-
const DEFAULT_PROPS$
|
|
16173
|
+
const DEFAULT_PROPS$B = {};
|
|
16173
16174
|
|
|
16174
16175
|
/**
|
|
16175
16176
|
* PopoverDialog component.
|
|
@@ -16209,7 +16210,7 @@ const PopoverDialog = forwardRef((props, ref) => {
|
|
|
16209
16210
|
});
|
|
16210
16211
|
PopoverDialog.displayName = COMPONENT_NAME$z;
|
|
16211
16212
|
PopoverDialog.className = CLASSNAME$A;
|
|
16212
|
-
PopoverDialog.defaultProps = DEFAULT_PROPS$
|
|
16213
|
+
PopoverDialog.defaultProps = DEFAULT_PROPS$B;
|
|
16213
16214
|
|
|
16214
16215
|
/**
|
|
16215
16216
|
* Component display name.
|
|
@@ -16228,7 +16229,7 @@ const {
|
|
|
16228
16229
|
/**
|
|
16229
16230
|
* Component default props.
|
|
16230
16231
|
*/
|
|
16231
|
-
const DEFAULT_PROPS$
|
|
16232
|
+
const DEFAULT_PROPS$A = {
|
|
16232
16233
|
orientation: Orientation$1.horizontal
|
|
16233
16234
|
};
|
|
16234
16235
|
|
|
@@ -16248,7 +16249,7 @@ const PostBlock = forwardRef((props, ref) => {
|
|
|
16248
16249
|
className,
|
|
16249
16250
|
meta,
|
|
16250
16251
|
onClick,
|
|
16251
|
-
orientation = DEFAULT_PROPS$
|
|
16252
|
+
orientation = DEFAULT_PROPS$A.orientation,
|
|
16252
16253
|
tags,
|
|
16253
16254
|
text,
|
|
16254
16255
|
theme = defaultTheme,
|
|
@@ -16310,7 +16311,7 @@ const PostBlock = forwardRef((props, ref) => {
|
|
|
16310
16311
|
});
|
|
16311
16312
|
PostBlock.displayName = COMPONENT_NAME$y;
|
|
16312
16313
|
PostBlock.className = CLASSNAME$z;
|
|
16313
|
-
PostBlock.defaultProps = DEFAULT_PROPS$
|
|
16314
|
+
PostBlock.defaultProps = DEFAULT_PROPS$A;
|
|
16314
16315
|
|
|
16315
16316
|
/**
|
|
16316
16317
|
* Component display name.
|
|
@@ -16329,7 +16330,7 @@ const {
|
|
|
16329
16330
|
/**
|
|
16330
16331
|
* Component default props.
|
|
16331
16332
|
*/
|
|
16332
|
-
const DEFAULT_PROPS$
|
|
16333
|
+
const DEFAULT_PROPS$z = {};
|
|
16333
16334
|
|
|
16334
16335
|
/**
|
|
16335
16336
|
* ProgressLinear component.
|
|
@@ -16383,7 +16384,7 @@ const ProgressLinear = forwardRef((props, ref) => {
|
|
|
16383
16384
|
});
|
|
16384
16385
|
ProgressLinear.displayName = COMPONENT_NAME$x;
|
|
16385
16386
|
ProgressLinear.className = CLASSNAME$y;
|
|
16386
|
-
ProgressLinear.defaultProps = DEFAULT_PROPS$
|
|
16387
|
+
ProgressLinear.defaultProps = DEFAULT_PROPS$z;
|
|
16387
16388
|
|
|
16388
16389
|
/* eslint-disable react/no-unknown-property */
|
|
16389
16390
|
|
|
@@ -16404,7 +16405,7 @@ const {
|
|
|
16404
16405
|
/**
|
|
16405
16406
|
* Component default props.
|
|
16406
16407
|
*/
|
|
16407
|
-
const DEFAULT_PROPS$
|
|
16408
|
+
const DEFAULT_PROPS$y = {
|
|
16408
16409
|
size: Size.m,
|
|
16409
16410
|
display: 'block'
|
|
16410
16411
|
};
|
|
@@ -16419,8 +16420,8 @@ const ProgressCircular$1 = props => {
|
|
|
16419
16420
|
const {
|
|
16420
16421
|
className,
|
|
16421
16422
|
theme,
|
|
16422
|
-
size = DEFAULT_PROPS$
|
|
16423
|
-
display = DEFAULT_PROPS$
|
|
16423
|
+
size = DEFAULT_PROPS$y.size,
|
|
16424
|
+
display = DEFAULT_PROPS$y.display,
|
|
16424
16425
|
ref,
|
|
16425
16426
|
circleProps,
|
|
16426
16427
|
svgProps,
|
|
@@ -16485,7 +16486,7 @@ const ProgressCircular = forwardRef((props, ref) => {
|
|
|
16485
16486
|
});
|
|
16486
16487
|
ProgressCircular.displayName = COMPONENT_NAME$w;
|
|
16487
16488
|
ProgressCircular.className = CLASSNAME$x;
|
|
16488
|
-
ProgressCircular.defaultProps = DEFAULT_PROPS$
|
|
16489
|
+
ProgressCircular.defaultProps = DEFAULT_PROPS$y;
|
|
16489
16490
|
|
|
16490
16491
|
const ProgressVariant = {
|
|
16491
16492
|
linear: 'linear',
|
|
@@ -16512,7 +16513,7 @@ const {
|
|
|
16512
16513
|
/**
|
|
16513
16514
|
* Component default props.
|
|
16514
16515
|
*/
|
|
16515
|
-
const DEFAULT_PROPS$
|
|
16516
|
+
const DEFAULT_PROPS$x = {
|
|
16516
16517
|
variant: ProgressVariant.circular
|
|
16517
16518
|
};
|
|
16518
16519
|
|
|
@@ -16529,7 +16530,7 @@ const Progress = forwardRef((props, ref) => {
|
|
|
16529
16530
|
const {
|
|
16530
16531
|
className,
|
|
16531
16532
|
theme = defaultTheme,
|
|
16532
|
-
variant = DEFAULT_PROPS$
|
|
16533
|
+
variant = DEFAULT_PROPS$x.variant,
|
|
16533
16534
|
...forwardedProps
|
|
16534
16535
|
} = props;
|
|
16535
16536
|
return /*#__PURE__*/jsxs("div", {
|
|
@@ -16548,7 +16549,7 @@ const Progress = forwardRef((props, ref) => {
|
|
|
16548
16549
|
});
|
|
16549
16550
|
Progress.displayName = COMPONENT_NAME$v;
|
|
16550
16551
|
Progress.className = CLASSNAME$w;
|
|
16551
|
-
Progress.defaultProps = DEFAULT_PROPS$
|
|
16552
|
+
Progress.defaultProps = DEFAULT_PROPS$x;
|
|
16552
16553
|
|
|
16553
16554
|
const INIT_STATE = {
|
|
16554
16555
|
isLazy: true,
|
|
@@ -16674,7 +16675,7 @@ const useTabProviderContextState = () => {
|
|
|
16674
16675
|
return context?.[0];
|
|
16675
16676
|
};
|
|
16676
16677
|
|
|
16677
|
-
const DEFAULT_PROPS$
|
|
16678
|
+
const DEFAULT_PROPS$w = {
|
|
16678
16679
|
isLazy: INIT_STATE.isLazy,
|
|
16679
16680
|
shouldActivateOnFocus: INIT_STATE.shouldActivateOnFocus
|
|
16680
16681
|
};
|
|
@@ -16703,7 +16704,7 @@ const ProgressTrackerProvider = props => {
|
|
|
16703
16704
|
dispatch({
|
|
16704
16705
|
type: 'update',
|
|
16705
16706
|
payload: {
|
|
16706
|
-
...DEFAULT_PROPS$
|
|
16707
|
+
...DEFAULT_PROPS$w,
|
|
16707
16708
|
...propState,
|
|
16708
16709
|
activeTabIndex: propState.activeStepIndex || INIT_STATE.activeTabIndex
|
|
16709
16710
|
}
|
|
@@ -16726,7 +16727,7 @@ const ProgressTrackerProvider = props => {
|
|
|
16726
16727
|
children: children
|
|
16727
16728
|
});
|
|
16728
16729
|
};
|
|
16729
|
-
ProgressTrackerProvider.defaultProps = DEFAULT_PROPS$
|
|
16730
|
+
ProgressTrackerProvider.defaultProps = DEFAULT_PROPS$w;
|
|
16730
16731
|
|
|
16731
16732
|
/**
|
|
16732
16733
|
* Component display name.
|
|
@@ -16745,7 +16746,7 @@ const {
|
|
|
16745
16746
|
/**
|
|
16746
16747
|
* Component default props.
|
|
16747
16748
|
*/
|
|
16748
|
-
const DEFAULT_PROPS$
|
|
16749
|
+
const DEFAULT_PROPS$v = {};
|
|
16749
16750
|
|
|
16750
16751
|
/**
|
|
16751
16752
|
* ProgressTracker component.
|
|
@@ -16799,7 +16800,7 @@ const ProgressTracker = forwardRef((props, ref) => {
|
|
|
16799
16800
|
});
|
|
16800
16801
|
ProgressTracker.displayName = COMPONENT_NAME$u;
|
|
16801
16802
|
ProgressTracker.className = CLASSNAME$v;
|
|
16802
|
-
ProgressTracker.defaultProps = DEFAULT_PROPS$
|
|
16803
|
+
ProgressTracker.defaultProps = DEFAULT_PROPS$v;
|
|
16803
16804
|
|
|
16804
16805
|
/**
|
|
16805
16806
|
* Component display name.
|
|
@@ -16818,7 +16819,7 @@ const {
|
|
|
16818
16819
|
/**
|
|
16819
16820
|
* Component default props.
|
|
16820
16821
|
*/
|
|
16821
|
-
const DEFAULT_PROPS$
|
|
16822
|
+
const DEFAULT_PROPS$u = {};
|
|
16822
16823
|
|
|
16823
16824
|
/**
|
|
16824
16825
|
* ProgressTrackerStep component.
|
|
@@ -16913,7 +16914,7 @@ const ProgressTrackerStep = forwardRef((props, ref) => {
|
|
|
16913
16914
|
});
|
|
16914
16915
|
ProgressTrackerStep.displayName = COMPONENT_NAME$t;
|
|
16915
16916
|
ProgressTrackerStep.className = CLASSNAME$u;
|
|
16916
|
-
ProgressTrackerStep.defaultProps = DEFAULT_PROPS$
|
|
16917
|
+
ProgressTrackerStep.defaultProps = DEFAULT_PROPS$u;
|
|
16917
16918
|
|
|
16918
16919
|
/**
|
|
16919
16920
|
* Component display name.
|
|
@@ -16931,7 +16932,7 @@ const {
|
|
|
16931
16932
|
/**
|
|
16932
16933
|
* Component default props.
|
|
16933
16934
|
*/
|
|
16934
|
-
const DEFAULT_PROPS$
|
|
16935
|
+
const DEFAULT_PROPS$t = {};
|
|
16935
16936
|
|
|
16936
16937
|
/**
|
|
16937
16938
|
* ProgressTrackerStepPanel component.
|
|
@@ -16967,7 +16968,7 @@ const ProgressTrackerStepPanel = forwardRef((props, ref) => {
|
|
|
16967
16968
|
});
|
|
16968
16969
|
ProgressTrackerStepPanel.displayName = COMPONENT_NAME$s;
|
|
16969
16970
|
ProgressTrackerStepPanel.className = CLASSNAME$t;
|
|
16970
|
-
ProgressTrackerStepPanel.defaultProps = DEFAULT_PROPS$
|
|
16971
|
+
ProgressTrackerStepPanel.defaultProps = DEFAULT_PROPS$t;
|
|
16971
16972
|
|
|
16972
16973
|
/**
|
|
16973
16974
|
* Component display name.
|
|
@@ -17070,7 +17071,7 @@ const RadioButton$1 = props => {
|
|
|
17070
17071
|
/**
|
|
17071
17072
|
* Component default props.
|
|
17072
17073
|
*/
|
|
17073
|
-
const DEFAULT_PROPS$
|
|
17074
|
+
const DEFAULT_PROPS$s = {};
|
|
17074
17075
|
|
|
17075
17076
|
/**
|
|
17076
17077
|
* RadioButton component.
|
|
@@ -17126,7 +17127,7 @@ const RadioButton = forwardRef((props, ref) => {
|
|
|
17126
17127
|
});
|
|
17127
17128
|
RadioButton.displayName = COMPONENT_NAME$r;
|
|
17128
17129
|
RadioButton.className = CLASSNAME$s;
|
|
17129
|
-
RadioButton.defaultProps = DEFAULT_PROPS$
|
|
17130
|
+
RadioButton.defaultProps = DEFAULT_PROPS$s;
|
|
17130
17131
|
|
|
17131
17132
|
/**
|
|
17132
17133
|
* Component display name.
|
|
@@ -17141,7 +17142,7 @@ const CLASSNAME$r = 'lumx-radio-group';
|
|
|
17141
17142
|
/**
|
|
17142
17143
|
* Component default props.
|
|
17143
17144
|
*/
|
|
17144
|
-
const DEFAULT_PROPS$
|
|
17145
|
+
const DEFAULT_PROPS$r = {};
|
|
17145
17146
|
|
|
17146
17147
|
/**
|
|
17147
17148
|
* RadioGroup component.
|
|
@@ -17165,7 +17166,7 @@ const RadioGroup$1 = props => {
|
|
|
17165
17166
|
};
|
|
17166
17167
|
RadioGroup$1.displayName = COMPONENT_NAME$q;
|
|
17167
17168
|
RadioGroup$1.className = CLASSNAME$r;
|
|
17168
|
-
RadioGroup$1.defaultProps = DEFAULT_PROPS$
|
|
17169
|
+
RadioGroup$1.defaultProps = DEFAULT_PROPS$r;
|
|
17169
17170
|
|
|
17170
17171
|
/**
|
|
17171
17172
|
* Defines the props of the component.
|
|
@@ -17349,7 +17350,7 @@ const {
|
|
|
17349
17350
|
} = classNames.bem(CLASSNAME$p);
|
|
17350
17351
|
|
|
17351
17352
|
/** The default value of props. */
|
|
17352
|
-
const DEFAULT_PROPS$
|
|
17353
|
+
const DEFAULT_PROPS$q = {
|
|
17353
17354
|
selectedValueRender: choice => choice,
|
|
17354
17355
|
variant: SelectVariant.input
|
|
17355
17356
|
};
|
|
@@ -17473,7 +17474,7 @@ const Select = forwardRef((props, ref) => {
|
|
|
17473
17474
|
const isEmpty$1 = isEmpty(props.value);
|
|
17474
17475
|
const hasInputClear = props.onClear && props.clearButtonProps && !isEmpty$1;
|
|
17475
17476
|
return WithSelectContext(SelectField, {
|
|
17476
|
-
...DEFAULT_PROPS$
|
|
17477
|
+
...DEFAULT_PROPS$q,
|
|
17477
17478
|
...props,
|
|
17478
17479
|
className: classNames.join(props.className, block$j({
|
|
17479
17480
|
'has-input-clear': hasInputClear,
|
|
@@ -17485,7 +17486,7 @@ const Select = forwardRef((props, ref) => {
|
|
|
17485
17486
|
});
|
|
17486
17487
|
Select.displayName = COMPONENT_NAME$p;
|
|
17487
17488
|
Select.className = CLASSNAME$p;
|
|
17488
|
-
Select.defaultProps = DEFAULT_PROPS$
|
|
17489
|
+
Select.defaultProps = DEFAULT_PROPS$q;
|
|
17489
17490
|
Select.className = CLASSNAME$p;
|
|
17490
17491
|
|
|
17491
17492
|
/** The display name of the component. */
|
|
@@ -17499,7 +17500,7 @@ const {
|
|
|
17499
17500
|
} = classNames.bem(CLASSNAME$o);
|
|
17500
17501
|
|
|
17501
17502
|
/** The default value of props. */
|
|
17502
|
-
const DEFAULT_PROPS$
|
|
17503
|
+
const DEFAULT_PROPS$p = {
|
|
17503
17504
|
selectedChipRender(choice, index, onClear, isDisabled, theme) {
|
|
17504
17505
|
const onClick = event => onClear && onClear(event, choice);
|
|
17505
17506
|
return /*#__PURE__*/jsx(Chip, {
|
|
@@ -17628,7 +17629,7 @@ const SelectMultipleField = props => {
|
|
|
17628
17629
|
*/
|
|
17629
17630
|
const SelectMultiple = forwardRef((props, ref) => {
|
|
17630
17631
|
return WithSelectContext(SelectMultipleField, {
|
|
17631
|
-
...DEFAULT_PROPS$
|
|
17632
|
+
...DEFAULT_PROPS$p,
|
|
17632
17633
|
...props,
|
|
17633
17634
|
className: classNames.join(props.className, block$i({
|
|
17634
17635
|
'has-multiple': !props.isEmpty
|
|
@@ -17639,7 +17640,7 @@ const SelectMultiple = forwardRef((props, ref) => {
|
|
|
17639
17640
|
});
|
|
17640
17641
|
SelectMultiple.displayName = COMPONENT_NAME$o;
|
|
17641
17642
|
SelectMultiple.className = CLASSNAME$o;
|
|
17642
|
-
SelectMultiple.defaultProps = DEFAULT_PROPS$
|
|
17643
|
+
SelectMultiple.defaultProps = DEFAULT_PROPS$p;
|
|
17643
17644
|
|
|
17644
17645
|
/**
|
|
17645
17646
|
* Find the option whose id matches the given value.
|
|
@@ -17797,6 +17798,13 @@ const COMPONENT_NAME$n = 'SelectButton';
|
|
|
17797
17798
|
*/
|
|
17798
17799
|
const CLASSNAME$n = 'lumx-select-button';
|
|
17799
17800
|
|
|
17801
|
+
/**
|
|
17802
|
+
* Component default props.
|
|
17803
|
+
*/
|
|
17804
|
+
const DEFAULT_PROPS$o = {
|
|
17805
|
+
selectionType: 'single'
|
|
17806
|
+
};
|
|
17807
|
+
|
|
17800
17808
|
/**
|
|
17801
17809
|
* SelectButton core template.
|
|
17802
17810
|
* Renders a Combobox with a button trigger and a dropdown list of options.
|
|
@@ -17820,7 +17828,7 @@ const SelectButton$2 = (props, {
|
|
|
17820
17828
|
getSectionId,
|
|
17821
17829
|
renderSectionTitle,
|
|
17822
17830
|
value,
|
|
17823
|
-
|
|
17831
|
+
selectionType = DEFAULT_PROPS$o.selectionType,
|
|
17824
17832
|
label,
|
|
17825
17833
|
labelDisplayMode,
|
|
17826
17834
|
buttonProps,
|
|
@@ -17836,6 +17844,7 @@ const SelectButton$2 = (props, {
|
|
|
17836
17844
|
const isFullLoading = listStatus === 'loading';
|
|
17837
17845
|
const isLoadingMore = listStatus === 'loadingMore';
|
|
17838
17846
|
const isError = listStatus === 'error';
|
|
17847
|
+
const isMultiselectable = selectionType === 'multiple';
|
|
17839
17848
|
|
|
17840
17849
|
/*
|
|
17841
17850
|
* Display value: castArray normalizes single/multi value to an array, then resolve
|
|
@@ -18009,7 +18018,7 @@ const SelectButton$1 = React__default.forwardRef((props, ref) => {
|
|
|
18009
18018
|
renderOption,
|
|
18010
18019
|
getSectionId,
|
|
18011
18020
|
renderSectionTitle,
|
|
18012
|
-
selectionType,
|
|
18021
|
+
selectionType = DEFAULT_PROPS$o.selectionType,
|
|
18013
18022
|
value,
|
|
18014
18023
|
onChange,
|
|
18015
18024
|
onLoadMore,
|
|
@@ -18045,7 +18054,7 @@ const SelectButton$1 = React__default.forwardRef((props, ref) => {
|
|
|
18045
18054
|
getSectionId,
|
|
18046
18055
|
renderSectionTitle,
|
|
18047
18056
|
value,
|
|
18048
|
-
|
|
18057
|
+
selectionType,
|
|
18049
18058
|
label,
|
|
18050
18059
|
labelDisplayMode,
|
|
18051
18060
|
buttonProps: {
|
|
@@ -21559,7 +21568,8 @@ const {
|
|
|
21559
21568
|
* Default values for `TimePickerFieldWrapperProps`.
|
|
21560
21569
|
*/
|
|
21561
21570
|
const DEFAULT_PROPS$3 = {
|
|
21562
|
-
step: 30
|
|
21571
|
+
step: 30,
|
|
21572
|
+
boundsMode: 'on-blur'
|
|
21563
21573
|
};
|
|
21564
21574
|
|
|
21565
21575
|
/**
|
|
@@ -21817,9 +21827,11 @@ const TimePickerField = props => {
|
|
|
21817
21827
|
step = DEFAULT_PROPS$3.step,
|
|
21818
21828
|
minTime,
|
|
21819
21829
|
maxTime,
|
|
21830
|
+
boundsMode = DEFAULT_PROPS$3.boundsMode,
|
|
21820
21831
|
className,
|
|
21821
21832
|
theme,
|
|
21822
21833
|
translations,
|
|
21834
|
+
name,
|
|
21823
21835
|
...forwardedProps
|
|
21824
21836
|
} = props;
|
|
21825
21837
|
|
|
@@ -21844,10 +21856,23 @@ const TimePickerField = props => {
|
|
|
21844
21856
|
name: formatTime(value, locale)
|
|
21845
21857
|
};
|
|
21846
21858
|
}, [value, locale]);
|
|
21859
|
+
|
|
21860
|
+
// Clamp the current value to bounds whenever enforce mode is set and value/bounds change.
|
|
21861
|
+
useEffect(() => {
|
|
21862
|
+
if (boundsMode !== 'enforce' || !value) return;
|
|
21863
|
+
const timeOfDay = {
|
|
21864
|
+
hour: value.getHours(),
|
|
21865
|
+
minute: value.getMinutes()
|
|
21866
|
+
};
|
|
21867
|
+
const clamped = snapTimeToBounds(timeOfDay, minTime, maxTime);
|
|
21868
|
+
if (clamped.hour !== value.getHours() || clamped.minute !== value.getMinutes()) {
|
|
21869
|
+
onChange(getDateAtTime(clamped, value), name);
|
|
21870
|
+
}
|
|
21871
|
+
}, [boundsMode, value, minTime, maxTime, onChange, name]);
|
|
21847
21872
|
const handleChange = useCallback(next => {
|
|
21848
21873
|
const date = next ? getDateAtTime(next, value) : undefined;
|
|
21849
|
-
onChange(date,
|
|
21850
|
-
}, [
|
|
21874
|
+
onChange(date, name);
|
|
21875
|
+
}, [name, onChange, value]);
|
|
21851
21876
|
const handleBlur = useCallback(() => {
|
|
21852
21877
|
if (!searchValue) return;
|
|
21853
21878
|
const parsed = parseTimeInput(searchValue);
|
|
@@ -21858,8 +21883,8 @@ const TimePickerField = props => {
|
|
|
21858
21883
|
// Snap to bounds if needed, then dedup against the current value.
|
|
21859
21884
|
const time = snapTimeToBounds(parsed, minTime, maxTime);
|
|
21860
21885
|
if (value && isDateOnTime(value, time)) return;
|
|
21861
|
-
onChange(getDateAtTime(time, value),
|
|
21862
|
-
}, [maxTime, minTime,
|
|
21886
|
+
onChange(getDateAtTime(time, value), name);
|
|
21887
|
+
}, [maxTime, minTime, name, onChange, searchValue, value]);
|
|
21863
21888
|
const searchInputValue = value ? formatTime(value, locale) : undefined;
|
|
21864
21889
|
return TimePickerField$1({
|
|
21865
21890
|
...forwardedProps,
|
|
@@ -22350,5 +22375,5 @@ UserBlock.displayName = COMPONENT_NAME;
|
|
|
22350
22375
|
UserBlock.className = CLASSNAME;
|
|
22351
22376
|
UserBlock.defaultProps = DEFAULT_PROPS;
|
|
22352
22377
|
|
|
22353
|
-
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$1w as CLASSNAME, COMPONENT_NAME$1y as COMPONENT_NAME, Checkbox, Chip, ChipGroup, Combobox, CommentBlock, CommentBlockVariant, DEFAULT_PROPS$
|
|
22378
|
+
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$1w as CLASSNAME, COMPONENT_NAME$1y as COMPONENT_NAME, Checkbox, Chip, ChipGroup, Combobox, CommentBlock, CommentBlockVariant, DEFAULT_PROPS$1e as DEFAULT_PROPS, DatePicker, DatePickerControlled, DatePickerField, Dialog, Divider, DragHandle, Dropdown, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, ImageLightbox, InlineList, InputHelper, InputLabel, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSection, ListSubheader, MenuButton, ListDivider as MenuDivider, MenuItem, Message, Mosaic, Navigation, Notification, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, RawInputText, RawInputTextarea, Select, SelectButton, SelectMultiple, SelectMultipleField, SelectTextField, SelectVariant, SelectionChipGroup, SideNavigation, SideNavigationItem, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, CLASSNAME$3 as TIME_PICKER_FIELD_CLASSNAME, COMPONENT_NAME$2 as TIME_PICKER_FIELD_COMPONENT_NAME, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableHeader, TableRow, Text, TextField, ThOrder, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, TimePickerField, Toolbar, Tooltip, Uploader, UploaderVariant, UserBlock, clamp, useFocusPointStyle, useHeadingLevel, useTheme };
|
|
22354
22379
|
//# sourceMappingURL=index.js.map
|