@lumx/react 4.10.0 → 4.11.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 +13 -9
- package/index.js +265 -176
- package/index.js.map +1 -1
- package/package.json +4 -3
package/index.js
CHANGED
|
@@ -111,7 +111,7 @@ const {
|
|
|
111
111
|
/**
|
|
112
112
|
* Component default props.
|
|
113
113
|
*/
|
|
114
|
-
const DEFAULT_PROPS$
|
|
114
|
+
const DEFAULT_PROPS$1g = {
|
|
115
115
|
size: Size$1.tiny,
|
|
116
116
|
kind: Kind$1.info
|
|
117
117
|
};
|
|
@@ -132,8 +132,8 @@ const AlertDialog = forwardRef((props, ref) => {
|
|
|
132
132
|
className,
|
|
133
133
|
cancelProps,
|
|
134
134
|
confirmProps,
|
|
135
|
-
kind = DEFAULT_PROPS$
|
|
136
|
-
size = DEFAULT_PROPS$
|
|
135
|
+
kind = DEFAULT_PROPS$1g.kind,
|
|
136
|
+
size = DEFAULT_PROPS$1g.size,
|
|
137
137
|
dialogProps,
|
|
138
138
|
children,
|
|
139
139
|
...forwardedProps
|
|
@@ -221,7 +221,7 @@ const AlertDialog = forwardRef((props, ref) => {
|
|
|
221
221
|
});
|
|
222
222
|
AlertDialog.displayName = COMPONENT_NAME$1w;
|
|
223
223
|
AlertDialog.className = CLASSNAME$1v;
|
|
224
|
-
AlertDialog.defaultProps = DEFAULT_PROPS$
|
|
224
|
+
AlertDialog.defaultProps = DEFAULT_PROPS$1g;
|
|
225
225
|
|
|
226
226
|
/**
|
|
227
227
|
* Hook focusing an element when defined and `focus` boolean `true`.
|
|
@@ -323,7 +323,7 @@ const CLASSNAME$1u = 'lumx-autocomplete';
|
|
|
323
323
|
/**
|
|
324
324
|
* Component default props.
|
|
325
325
|
*/
|
|
326
|
-
const DEFAULT_PROPS$
|
|
326
|
+
const DEFAULT_PROPS$1f = {
|
|
327
327
|
anchorToInput: false,
|
|
328
328
|
closeOnClick: false,
|
|
329
329
|
closeOnClickAway: true,
|
|
@@ -345,13 +345,13 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
345
345
|
otherProps
|
|
346
346
|
} = useDisableStateProps(props);
|
|
347
347
|
const {
|
|
348
|
-
anchorToInput = DEFAULT_PROPS$
|
|
348
|
+
anchorToInput = DEFAULT_PROPS$1f.anchorToInput,
|
|
349
349
|
children,
|
|
350
350
|
chips,
|
|
351
351
|
className,
|
|
352
|
-
closeOnClick = DEFAULT_PROPS$
|
|
353
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
354
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
352
|
+
closeOnClick = DEFAULT_PROPS$1f.closeOnClick,
|
|
353
|
+
closeOnClickAway = DEFAULT_PROPS$1f.closeOnClickAway,
|
|
354
|
+
closeOnEscape = DEFAULT_PROPS$1f.closeOnEscape,
|
|
355
355
|
error,
|
|
356
356
|
fitToAnchorWidth,
|
|
357
357
|
hasError,
|
|
@@ -372,7 +372,7 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
372
372
|
onInfiniteScroll,
|
|
373
373
|
placeholder,
|
|
374
374
|
placement,
|
|
375
|
-
shouldFocusOnClose = DEFAULT_PROPS$
|
|
375
|
+
shouldFocusOnClose = DEFAULT_PROPS$1f.shouldFocusOnClose,
|
|
376
376
|
theme = defaultTheme,
|
|
377
377
|
value,
|
|
378
378
|
textFieldProps = {},
|
|
@@ -427,7 +427,7 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
427
427
|
});
|
|
428
428
|
Autocomplete.displayName = COMPONENT_NAME$1v;
|
|
429
429
|
Autocomplete.className = CLASSNAME$1u;
|
|
430
|
-
Autocomplete.defaultProps = DEFAULT_PROPS$
|
|
430
|
+
Autocomplete.defaultProps = DEFAULT_PROPS$1f;
|
|
431
431
|
|
|
432
432
|
/**
|
|
433
433
|
* Component display name.
|
|
@@ -442,7 +442,7 @@ const CLASSNAME$1t = 'lumx-autocomplete-multiple';
|
|
|
442
442
|
/**
|
|
443
443
|
* Component default props.
|
|
444
444
|
*/
|
|
445
|
-
const DEFAULT_PROPS$
|
|
445
|
+
const DEFAULT_PROPS$1e = {
|
|
446
446
|
closeOnClickAway: true,
|
|
447
447
|
closeOnEscape: true,
|
|
448
448
|
selectedChipRender(choice, index, onClear, isDisabled) {
|
|
@@ -482,8 +482,8 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
482
482
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
483
483
|
chipsAlignment,
|
|
484
484
|
className,
|
|
485
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
486
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
485
|
+
closeOnClickAway = DEFAULT_PROPS$1e.closeOnClickAway,
|
|
486
|
+
closeOnEscape = DEFAULT_PROPS$1e.closeOnEscape,
|
|
487
487
|
fitToAnchorWidth,
|
|
488
488
|
hasError,
|
|
489
489
|
helper,
|
|
@@ -505,12 +505,12 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
505
505
|
onKeyDown,
|
|
506
506
|
placeholder,
|
|
507
507
|
placement,
|
|
508
|
-
selectedChipRender = DEFAULT_PROPS$
|
|
508
|
+
selectedChipRender = DEFAULT_PROPS$1e.selectedChipRender,
|
|
509
509
|
shouldFocusOnClose,
|
|
510
510
|
theme = defaultTheme,
|
|
511
511
|
type,
|
|
512
512
|
value,
|
|
513
|
-
values = DEFAULT_PROPS$
|
|
513
|
+
values = DEFAULT_PROPS$1e.values,
|
|
514
514
|
...forwardedProps
|
|
515
515
|
} = otherProps;
|
|
516
516
|
return /*#__PURE__*/jsx(Autocomplete, {
|
|
@@ -552,7 +552,7 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
552
552
|
});
|
|
553
553
|
AutocompleteMultiple.displayName = COMPONENT_NAME$1u;
|
|
554
554
|
AutocompleteMultiple.className = CLASSNAME$1t;
|
|
555
|
-
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$
|
|
555
|
+
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$1e;
|
|
556
556
|
|
|
557
557
|
function getDefaultExportFromCjs (x) {
|
|
558
558
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -1013,7 +1013,7 @@ const {
|
|
|
1013
1013
|
/**
|
|
1014
1014
|
* Component default props.
|
|
1015
1015
|
*/
|
|
1016
|
-
const DEFAULT_PROPS$
|
|
1016
|
+
const DEFAULT_PROPS$1d = {
|
|
1017
1017
|
size: Size.m
|
|
1018
1018
|
};
|
|
1019
1019
|
|
|
@@ -1030,7 +1030,7 @@ const Avatar$1 = props => {
|
|
|
1030
1030
|
badge,
|
|
1031
1031
|
className,
|
|
1032
1032
|
image,
|
|
1033
|
-
size = DEFAULT_PROPS$
|
|
1033
|
+
size = DEFAULT_PROPS$1d.size,
|
|
1034
1034
|
theme,
|
|
1035
1035
|
ref,
|
|
1036
1036
|
...forwardedProps
|
|
@@ -1071,7 +1071,7 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
1071
1071
|
linkAs,
|
|
1072
1072
|
onClick,
|
|
1073
1073
|
onKeyPress,
|
|
1074
|
-
size = DEFAULT_PROPS$
|
|
1074
|
+
size = DEFAULT_PROPS$1d.size,
|
|
1075
1075
|
theme = defaultTheme,
|
|
1076
1076
|
thumbnailProps,
|
|
1077
1077
|
...forwardedProps
|
|
@@ -1101,7 +1101,7 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
1101
1101
|
});
|
|
1102
1102
|
Avatar.displayName = COMPONENT_NAME$1t;
|
|
1103
1103
|
Avatar.className = CLASSNAME$1s;
|
|
1104
|
-
Avatar.defaultProps = DEFAULT_PROPS$
|
|
1104
|
+
Avatar.defaultProps = DEFAULT_PROPS$1d;
|
|
1105
1105
|
|
|
1106
1106
|
/**
|
|
1107
1107
|
* Component display name.
|
|
@@ -1119,7 +1119,7 @@ const {
|
|
|
1119
1119
|
/**
|
|
1120
1120
|
* Component default props.
|
|
1121
1121
|
*/
|
|
1122
|
-
const DEFAULT_PROPS$
|
|
1122
|
+
const DEFAULT_PROPS$1c = {
|
|
1123
1123
|
color: ColorPalette.primary
|
|
1124
1124
|
};
|
|
1125
1125
|
|
|
@@ -1133,7 +1133,7 @@ const Badge$1 = props => {
|
|
|
1133
1133
|
const {
|
|
1134
1134
|
children,
|
|
1135
1135
|
className,
|
|
1136
|
-
color = DEFAULT_PROPS$
|
|
1136
|
+
color = DEFAULT_PROPS$1c.color,
|
|
1137
1137
|
ref,
|
|
1138
1138
|
...forwardedProps
|
|
1139
1139
|
} = props;
|
|
@@ -1148,7 +1148,7 @@ const Badge$1 = props => {
|
|
|
1148
1148
|
};
|
|
1149
1149
|
Badge$1.displayName = COMPONENT_NAME$1s;
|
|
1150
1150
|
Badge$1.className = CLASSNAME$1r;
|
|
1151
|
-
Badge$1.defaultProps = DEFAULT_PROPS$
|
|
1151
|
+
Badge$1.defaultProps = DEFAULT_PROPS$1c;
|
|
1152
1152
|
|
|
1153
1153
|
/**
|
|
1154
1154
|
* Defines the props of the component.
|
|
@@ -1374,7 +1374,7 @@ const {
|
|
|
1374
1374
|
/**
|
|
1375
1375
|
* Component default props.
|
|
1376
1376
|
*/
|
|
1377
|
-
const DEFAULT_PROPS$
|
|
1377
|
+
const DEFAULT_PROPS$1b = {
|
|
1378
1378
|
emphasis: Emphasis.high,
|
|
1379
1379
|
size: Size.m
|
|
1380
1380
|
};
|
|
@@ -1388,10 +1388,10 @@ const DEFAULT_PROPS$1a = {
|
|
|
1388
1388
|
const Button$1 = props => {
|
|
1389
1389
|
const {
|
|
1390
1390
|
className,
|
|
1391
|
-
emphasis = DEFAULT_PROPS$
|
|
1391
|
+
emphasis = DEFAULT_PROPS$1b.emphasis,
|
|
1392
1392
|
leftIcon,
|
|
1393
1393
|
rightIcon,
|
|
1394
|
-
size = DEFAULT_PROPS$
|
|
1394
|
+
size = DEFAULT_PROPS$1b.size,
|
|
1395
1395
|
...forwardedProps
|
|
1396
1396
|
} = props;
|
|
1397
1397
|
const buttonClassName = classnames(className, modifier({
|
|
@@ -1408,7 +1408,7 @@ const Button$1 = props => {
|
|
|
1408
1408
|
};
|
|
1409
1409
|
Button$1.displayName = COMPONENT_NAME$1p;
|
|
1410
1410
|
Button$1.className = CLASSNAME$1p;
|
|
1411
|
-
Button$1.defaultProps = DEFAULT_PROPS$
|
|
1411
|
+
Button$1.defaultProps = DEFAULT_PROPS$1b;
|
|
1412
1412
|
|
|
1413
1413
|
/**
|
|
1414
1414
|
* Properties of a component to use to determine it's name.
|
|
@@ -1483,7 +1483,7 @@ const Button = forwardRef((props, ref) => {
|
|
|
1483
1483
|
});
|
|
1484
1484
|
Button.displayName = COMPONENT_NAME$1p;
|
|
1485
1485
|
Button.className = CLASSNAME$1p;
|
|
1486
|
-
Button.defaultProps = DEFAULT_PROPS$
|
|
1486
|
+
Button.defaultProps = DEFAULT_PROPS$1b;
|
|
1487
1487
|
|
|
1488
1488
|
const COMPONENT_NAME$1o = 'Icon';
|
|
1489
1489
|
const IconClassName = 'lumx-icon';
|
|
@@ -1500,7 +1500,7 @@ const {
|
|
|
1500
1500
|
/**
|
|
1501
1501
|
* Component default props.
|
|
1502
1502
|
*/
|
|
1503
|
-
const DEFAULT_PROPS$
|
|
1503
|
+
const DEFAULT_PROPS$1a = {};
|
|
1504
1504
|
|
|
1505
1505
|
/**
|
|
1506
1506
|
* Icon component.
|
|
@@ -1580,7 +1580,7 @@ const Icon$1 = props => {
|
|
|
1580
1580
|
};
|
|
1581
1581
|
Icon$1.displayName = COMPONENT_NAME$1o;
|
|
1582
1582
|
Icon$1.className = CLASSNAME$1o;
|
|
1583
|
-
Icon$1.defaultProps = DEFAULT_PROPS$
|
|
1583
|
+
Icon$1.defaultProps = DEFAULT_PROPS$1a;
|
|
1584
1584
|
|
|
1585
1585
|
/**
|
|
1586
1586
|
* Component display name.
|
|
@@ -1595,7 +1595,7 @@ const CLASSNAME$1n = 'lumx-icon-button';
|
|
|
1595
1595
|
/**
|
|
1596
1596
|
* Component default props.
|
|
1597
1597
|
*/
|
|
1598
|
-
const DEFAULT_PROPS$
|
|
1598
|
+
const DEFAULT_PROPS$19 = {
|
|
1599
1599
|
emphasis: Emphasis.high,
|
|
1600
1600
|
size: Size.m
|
|
1601
1601
|
};
|
|
@@ -1608,11 +1608,11 @@ const DEFAULT_PROPS$18 = {
|
|
|
1608
1608
|
*/
|
|
1609
1609
|
const IconButton$1 = props => {
|
|
1610
1610
|
const {
|
|
1611
|
-
emphasis = DEFAULT_PROPS$
|
|
1611
|
+
emphasis = DEFAULT_PROPS$19.emphasis,
|
|
1612
1612
|
image,
|
|
1613
1613
|
icon,
|
|
1614
1614
|
label,
|
|
1615
|
-
size = DEFAULT_PROPS$
|
|
1615
|
+
size = DEFAULT_PROPS$19.size,
|
|
1616
1616
|
...forwardedProps
|
|
1617
1617
|
} = props;
|
|
1618
1618
|
const defaultChildren = image ? /*#__PURE__*/jsx("img", {
|
|
@@ -1633,7 +1633,7 @@ const IconButton$1 = props => {
|
|
|
1633
1633
|
};
|
|
1634
1634
|
IconButton$1.displayName = COMPONENT_NAME$1n;
|
|
1635
1635
|
IconButton$1.className = CLASSNAME$1n;
|
|
1636
|
-
IconButton$1.defaultProps = DEFAULT_PROPS$
|
|
1636
|
+
IconButton$1.defaultProps = DEFAULT_PROPS$19;
|
|
1637
1637
|
|
|
1638
1638
|
/**
|
|
1639
1639
|
* IconButton component.
|
|
@@ -1678,7 +1678,7 @@ const IconButton = forwardRef((props, ref) => {
|
|
|
1678
1678
|
});
|
|
1679
1679
|
IconButton.displayName = COMPONENT_NAME$1n;
|
|
1680
1680
|
IconButton.className = CLASSNAME$1n;
|
|
1681
|
-
IconButton.defaultProps = DEFAULT_PROPS$
|
|
1681
|
+
IconButton.defaultProps = DEFAULT_PROPS$19;
|
|
1682
1682
|
|
|
1683
1683
|
/**
|
|
1684
1684
|
* Component display name.
|
|
@@ -1693,7 +1693,7 @@ const CLASSNAME$1m = 'lumx-button-group';
|
|
|
1693
1693
|
/**
|
|
1694
1694
|
* Component default props.
|
|
1695
1695
|
*/
|
|
1696
|
-
const DEFAULT_PROPS$
|
|
1696
|
+
const DEFAULT_PROPS$18 = {};
|
|
1697
1697
|
|
|
1698
1698
|
/**
|
|
1699
1699
|
* ButtonGroup component.
|
|
@@ -1715,7 +1715,7 @@ const ButtonGroup$1 = props => {
|
|
|
1715
1715
|
};
|
|
1716
1716
|
ButtonGroup$1.displayName = COMPONENT_NAME$1m;
|
|
1717
1717
|
ButtonGroup$1.className = CLASSNAME$1m;
|
|
1718
|
-
ButtonGroup$1.defaultProps = DEFAULT_PROPS$
|
|
1718
|
+
ButtonGroup$1.defaultProps = DEFAULT_PROPS$18;
|
|
1719
1719
|
|
|
1720
1720
|
/**
|
|
1721
1721
|
* ButtonGroup component.
|
|
@@ -1732,7 +1732,7 @@ const ButtonGroup = forwardRef((props, ref) => {
|
|
|
1732
1732
|
});
|
|
1733
1733
|
ButtonGroup.displayName = COMPONENT_NAME$1m;
|
|
1734
1734
|
ButtonGroup.className = CLASSNAME$1m;
|
|
1735
|
-
ButtonGroup.defaultProps = DEFAULT_PROPS$
|
|
1735
|
+
ButtonGroup.defaultProps = DEFAULT_PROPS$18;
|
|
1736
1736
|
|
|
1737
1737
|
const COMPONENT_NAME$1l = 'InputLabel';
|
|
1738
1738
|
const InputLabelClassName = 'lumx-input-label';
|
|
@@ -1740,7 +1740,7 @@ const CLASSNAME$1l = InputLabelClassName;
|
|
|
1740
1740
|
const {
|
|
1741
1741
|
block: block$13
|
|
1742
1742
|
} = bem(CLASSNAME$1l);
|
|
1743
|
-
const DEFAULT_PROPS$
|
|
1743
|
+
const DEFAULT_PROPS$17 = {};
|
|
1744
1744
|
|
|
1745
1745
|
/**
|
|
1746
1746
|
* InputLabel component.
|
|
@@ -1770,7 +1770,7 @@ function InputLabel$1(props) {
|
|
|
1770
1770
|
}
|
|
1771
1771
|
InputLabel$1.displayName = COMPONENT_NAME$1l;
|
|
1772
1772
|
InputLabel$1.className = CLASSNAME$1l;
|
|
1773
|
-
InputLabel$1.defaultProps = DEFAULT_PROPS$
|
|
1773
|
+
InputLabel$1.defaultProps = DEFAULT_PROPS$17;
|
|
1774
1774
|
|
|
1775
1775
|
const INPUT_HELPER_CONFIGURATION = {
|
|
1776
1776
|
[Kind.error]: {
|
|
@@ -1799,7 +1799,7 @@ const {
|
|
|
1799
1799
|
/**
|
|
1800
1800
|
* Component default props.
|
|
1801
1801
|
*/
|
|
1802
|
-
const DEFAULT_PROPS$
|
|
1802
|
+
const DEFAULT_PROPS$16 = {
|
|
1803
1803
|
kind: Kind.info
|
|
1804
1804
|
};
|
|
1805
1805
|
|
|
@@ -1810,7 +1810,7 @@ function InputHelper$1(props) {
|
|
|
1810
1810
|
const {
|
|
1811
1811
|
children,
|
|
1812
1812
|
className,
|
|
1813
|
-
kind = DEFAULT_PROPS$
|
|
1813
|
+
kind = DEFAULT_PROPS$16.kind,
|
|
1814
1814
|
theme,
|
|
1815
1815
|
ref,
|
|
1816
1816
|
...forwardedProps
|
|
@@ -1830,7 +1830,7 @@ function InputHelper$1(props) {
|
|
|
1830
1830
|
}
|
|
1831
1831
|
InputHelper$1.displayName = COMPONENT_NAME$1k;
|
|
1832
1832
|
InputHelper$1.className = CLASSNAME$1k;
|
|
1833
|
-
InputHelper$1.defaultProps = DEFAULT_PROPS$
|
|
1833
|
+
InputHelper$1.defaultProps = DEFAULT_PROPS$16;
|
|
1834
1834
|
|
|
1835
1835
|
const INTERMEDIATE_STATE = 'intermediate';
|
|
1836
1836
|
|
|
@@ -1945,7 +1945,7 @@ const Checkbox$1 = props => {
|
|
|
1945
1945
|
/**
|
|
1946
1946
|
* Component default props.
|
|
1947
1947
|
*/
|
|
1948
|
-
const DEFAULT_PROPS$
|
|
1948
|
+
const DEFAULT_PROPS$15 = {};
|
|
1949
1949
|
|
|
1950
1950
|
/**
|
|
1951
1951
|
* Checkbox component.
|
|
@@ -2007,7 +2007,7 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
2007
2007
|
});
|
|
2008
2008
|
Checkbox.displayName = COMPONENT_NAME$1j;
|
|
2009
2009
|
Checkbox.className = CLASSNAME$1j;
|
|
2010
|
-
Checkbox.defaultProps = DEFAULT_PROPS$
|
|
2010
|
+
Checkbox.defaultProps = DEFAULT_PROPS$15;
|
|
2011
2011
|
|
|
2012
2012
|
/**
|
|
2013
2013
|
* Wrap mouse event handler to stop event propagation.
|
|
@@ -2042,7 +2042,7 @@ const {
|
|
|
2042
2042
|
/**
|
|
2043
2043
|
* Component default props.
|
|
2044
2044
|
*/
|
|
2045
|
-
const DEFAULT_PROPS$
|
|
2045
|
+
const DEFAULT_PROPS$14 = {
|
|
2046
2046
|
size: Size.m
|
|
2047
2047
|
};
|
|
2048
2048
|
|
|
@@ -2069,7 +2069,7 @@ const Chip$1 = props => {
|
|
|
2069
2069
|
hasAfterClick,
|
|
2070
2070
|
hasBeforeClick,
|
|
2071
2071
|
hasOnClick,
|
|
2072
|
-
size = DEFAULT_PROPS$
|
|
2072
|
+
size = DEFAULT_PROPS$14.size,
|
|
2073
2073
|
theme,
|
|
2074
2074
|
ref,
|
|
2075
2075
|
href,
|
|
@@ -2191,7 +2191,7 @@ const Chip = forwardRef((props, ref) => {
|
|
|
2191
2191
|
});
|
|
2192
2192
|
Chip.displayName = COMPONENT_NAME$1i;
|
|
2193
2193
|
Chip.className = CLASSNAME$1i;
|
|
2194
|
-
Chip.defaultProps = DEFAULT_PROPS$
|
|
2194
|
+
Chip.defaultProps = DEFAULT_PROPS$14;
|
|
2195
2195
|
|
|
2196
2196
|
/**
|
|
2197
2197
|
* Component display name.
|
|
@@ -2206,7 +2206,7 @@ const CLASSNAME$1h = 'lumx-chip-group';
|
|
|
2206
2206
|
/**
|
|
2207
2207
|
* Component default props.
|
|
2208
2208
|
*/
|
|
2209
|
-
const DEFAULT_PROPS$
|
|
2209
|
+
const DEFAULT_PROPS$13 = {};
|
|
2210
2210
|
|
|
2211
2211
|
/**
|
|
2212
2212
|
* ChipGroup component.
|
|
@@ -2304,7 +2304,7 @@ const InternalChipGroup = forwardRef((props, ref) => {
|
|
|
2304
2304
|
});
|
|
2305
2305
|
InternalChipGroup.displayName = COMPONENT_NAME$1h;
|
|
2306
2306
|
InternalChipGroup.className = CLASSNAME$1h;
|
|
2307
|
-
InternalChipGroup.defaultProps = DEFAULT_PROPS$
|
|
2307
|
+
InternalChipGroup.defaultProps = DEFAULT_PROPS$13;
|
|
2308
2308
|
const ChipGroup = Object.assign(InternalChipGroup, {
|
|
2309
2309
|
useChipGroupNavigation
|
|
2310
2310
|
});
|
|
@@ -6060,7 +6060,7 @@ const TOOLTIP_ZINDEX = 10000;
|
|
|
6060
6060
|
/**
|
|
6061
6061
|
* Component default props.
|
|
6062
6062
|
*/
|
|
6063
|
-
const DEFAULT_PROPS$
|
|
6063
|
+
const DEFAULT_PROPS$12 = {
|
|
6064
6064
|
placement: 'bottom',
|
|
6065
6065
|
closeMode: 'unmount',
|
|
6066
6066
|
ariaLinkMode: 'aria-describedby',
|
|
@@ -6424,11 +6424,11 @@ const Tooltip = forwardRef((props, ref) => {
|
|
|
6424
6424
|
children,
|
|
6425
6425
|
className,
|
|
6426
6426
|
delay,
|
|
6427
|
-
placement = DEFAULT_PROPS$
|
|
6427
|
+
placement = DEFAULT_PROPS$12.placement,
|
|
6428
6428
|
forceOpen,
|
|
6429
|
-
closeMode = DEFAULT_PROPS$
|
|
6430
|
-
ariaLinkMode = DEFAULT_PROPS$
|
|
6431
|
-
zIndex = DEFAULT_PROPS$
|
|
6429
|
+
closeMode = DEFAULT_PROPS$12.closeMode,
|
|
6430
|
+
ariaLinkMode = DEFAULT_PROPS$12.ariaLinkMode,
|
|
6431
|
+
zIndex = DEFAULT_PROPS$12.zIndex,
|
|
6432
6432
|
...forwardedProps
|
|
6433
6433
|
} = props;
|
|
6434
6434
|
// Disable in SSR.
|
|
@@ -6493,7 +6493,7 @@ const Tooltip = forwardRef((props, ref) => {
|
|
|
6493
6493
|
});
|
|
6494
6494
|
Tooltip.displayName = COMPONENT_NAME$1f;
|
|
6495
6495
|
Tooltip.className = CLASSNAME$1e;
|
|
6496
|
-
Tooltip.defaultProps = DEFAULT_PROPS$
|
|
6496
|
+
Tooltip.defaultProps = DEFAULT_PROPS$12;
|
|
6497
6497
|
|
|
6498
6498
|
/** Context value shared between Combobox sub-components. */
|
|
6499
6499
|
|
|
@@ -7008,7 +7008,7 @@ const {
|
|
|
7008
7008
|
/**
|
|
7009
7009
|
* Component default props.
|
|
7010
7010
|
*/
|
|
7011
|
-
const DEFAULT_PROPS$
|
|
7011
|
+
const DEFAULT_PROPS$11 = {
|
|
7012
7012
|
type: 'text'
|
|
7013
7013
|
};
|
|
7014
7014
|
|
|
@@ -7023,7 +7023,7 @@ const RawInputText$1 = props => {
|
|
|
7023
7023
|
value,
|
|
7024
7024
|
handleChange,
|
|
7025
7025
|
handleInput,
|
|
7026
|
-
type = DEFAULT_PROPS$
|
|
7026
|
+
type = DEFAULT_PROPS$11.type,
|
|
7027
7027
|
name,
|
|
7028
7028
|
ref,
|
|
7029
7029
|
...forwardedProps
|
|
@@ -7079,7 +7079,7 @@ const {
|
|
|
7079
7079
|
/**
|
|
7080
7080
|
* Component default props.
|
|
7081
7081
|
*/
|
|
7082
|
-
const DEFAULT_PROPS
|
|
7082
|
+
const DEFAULT_PROPS$10 = {
|
|
7083
7083
|
rows: 2
|
|
7084
7084
|
};
|
|
7085
7085
|
|
|
@@ -7094,7 +7094,7 @@ const RawInputTextarea$1 = props => {
|
|
|
7094
7094
|
value,
|
|
7095
7095
|
handleChange,
|
|
7096
7096
|
handleInput,
|
|
7097
|
-
rows = DEFAULT_PROPS
|
|
7097
|
+
rows = DEFAULT_PROPS$10.rows,
|
|
7098
7098
|
name,
|
|
7099
7099
|
ref,
|
|
7100
7100
|
...forwardedProps
|
|
@@ -7168,8 +7168,8 @@ function useFitRowsToContent(minimumRows, textareaRef, value) {
|
|
|
7168
7168
|
/**
|
|
7169
7169
|
* Component default props.
|
|
7170
7170
|
*/
|
|
7171
|
-
const DEFAULT_PROPS
|
|
7172
|
-
minimumRows: DEFAULT_PROPS
|
|
7171
|
+
const DEFAULT_PROPS$$ = {
|
|
7172
|
+
minimumRows: DEFAULT_PROPS$10.rows
|
|
7173
7173
|
};
|
|
7174
7174
|
|
|
7175
7175
|
/**
|
|
@@ -7180,7 +7180,7 @@ const RawInputTextarea = forwardRef((props, ref) => {
|
|
|
7180
7180
|
const defaultTheme = useTheme() || Theme$1.light;
|
|
7181
7181
|
const {
|
|
7182
7182
|
theme = defaultTheme,
|
|
7183
|
-
minimumRows = DEFAULT_PROPS
|
|
7183
|
+
minimumRows = DEFAULT_PROPS$$.minimumRows,
|
|
7184
7184
|
value,
|
|
7185
7185
|
onChange,
|
|
7186
7186
|
...restOfProps
|
|
@@ -7200,7 +7200,7 @@ const RawInputTextarea = forwardRef((props, ref) => {
|
|
|
7200
7200
|
/**
|
|
7201
7201
|
* Component default props.
|
|
7202
7202
|
*/
|
|
7203
|
-
const DEFAULT_PROPS$
|
|
7203
|
+
const DEFAULT_PROPS$_ = {
|
|
7204
7204
|
type: 'text'
|
|
7205
7205
|
};
|
|
7206
7206
|
|
|
@@ -7244,7 +7244,7 @@ const TextField = forwardRef((props, ref) => {
|
|
|
7244
7244
|
placeholder,
|
|
7245
7245
|
textFieldRef,
|
|
7246
7246
|
theme = defaultTheme,
|
|
7247
|
-
type = DEFAULT_PROPS$
|
|
7247
|
+
type = DEFAULT_PROPS$_.type,
|
|
7248
7248
|
value,
|
|
7249
7249
|
afterElement,
|
|
7250
7250
|
...forwardedProps
|
|
@@ -7349,7 +7349,7 @@ const TextField = forwardRef((props, ref) => {
|
|
|
7349
7349
|
});
|
|
7350
7350
|
TextField.displayName = COMPONENT_NAME$1d;
|
|
7351
7351
|
TextField.className = CLASSNAME$1c;
|
|
7352
|
-
TextField.defaultProps = DEFAULT_PROPS$
|
|
7352
|
+
TextField.defaultProps = DEFAULT_PROPS$_;
|
|
7353
7353
|
|
|
7354
7354
|
/**
|
|
7355
7355
|
* Props for Combobox.Input component.
|
|
@@ -7442,7 +7442,7 @@ const {
|
|
|
7442
7442
|
/**
|
|
7443
7443
|
* Component default props.
|
|
7444
7444
|
*/
|
|
7445
|
-
const DEFAULT_PROPS$
|
|
7445
|
+
const DEFAULT_PROPS$Z = {};
|
|
7446
7446
|
|
|
7447
7447
|
/**
|
|
7448
7448
|
* List component.
|
|
@@ -7469,7 +7469,7 @@ const List$1 = props => {
|
|
|
7469
7469
|
};
|
|
7470
7470
|
List$1.displayName = COMPONENT_NAME$1c;
|
|
7471
7471
|
List$1.className = CLASSNAME$1b;
|
|
7472
|
-
List$1.defaultProps = DEFAULT_PROPS$
|
|
7472
|
+
List$1.defaultProps = DEFAULT_PROPS$Z;
|
|
7473
7473
|
|
|
7474
7474
|
/**
|
|
7475
7475
|
* Popup type for the combobox listbox.
|
|
@@ -7616,7 +7616,7 @@ const {
|
|
|
7616
7616
|
/**
|
|
7617
7617
|
* Component default props.
|
|
7618
7618
|
*/
|
|
7619
|
-
const DEFAULT_PROPS$
|
|
7619
|
+
const DEFAULT_PROPS$Y = {
|
|
7620
7620
|
size: Size.regular
|
|
7621
7621
|
};
|
|
7622
7622
|
|
|
@@ -7640,7 +7640,7 @@ const ListItem$1 = props => {
|
|
|
7640
7640
|
linkProps = {},
|
|
7641
7641
|
linkRef,
|
|
7642
7642
|
handleClick,
|
|
7643
|
-
size = DEFAULT_PROPS$
|
|
7643
|
+
size = DEFAULT_PROPS$Y.size,
|
|
7644
7644
|
ref,
|
|
7645
7645
|
...forwardedProps
|
|
7646
7646
|
} = props;
|
|
@@ -7680,7 +7680,7 @@ const ListItem$1 = props => {
|
|
|
7680
7680
|
};
|
|
7681
7681
|
ListItem$1.displayName = COMPONENT_NAME$1a;
|
|
7682
7682
|
ListItem$1.className = CLASSNAME$19;
|
|
7683
|
-
ListItem$1.defaultProps = DEFAULT_PROPS$
|
|
7683
|
+
ListItem$1.defaultProps = DEFAULT_PROPS$Y;
|
|
7684
7684
|
|
|
7685
7685
|
/**
|
|
7686
7686
|
* ListItemAction props.
|
|
@@ -7695,7 +7695,7 @@ const COMPONENT_NAME$19 = 'ListItemAction';
|
|
|
7695
7695
|
* Component classname (used by action area CSS pattern).
|
|
7696
7696
|
*/
|
|
7697
7697
|
const CLASSNAME$18 = 'lumx-action-area__action';
|
|
7698
|
-
const DEFAULT_PROPS$
|
|
7698
|
+
const DEFAULT_PROPS$X = {};
|
|
7699
7699
|
|
|
7700
7700
|
/**
|
|
7701
7701
|
* ListItemAction component.
|
|
@@ -7745,7 +7745,7 @@ const {
|
|
|
7745
7745
|
/**
|
|
7746
7746
|
* Component default props.
|
|
7747
7747
|
*/
|
|
7748
|
-
const DEFAULT_PROPS$
|
|
7748
|
+
const DEFAULT_PROPS$W = {};
|
|
7749
7749
|
|
|
7750
7750
|
/**
|
|
7751
7751
|
* Text component common props
|
|
@@ -8340,7 +8340,7 @@ const {
|
|
|
8340
8340
|
/**
|
|
8341
8341
|
* Component default props (used by framework wrappers).
|
|
8342
8342
|
*/
|
|
8343
|
-
const DEFAULT_PROPS$
|
|
8343
|
+
const DEFAULT_PROPS$V = {
|
|
8344
8344
|
closeMode: 'unmount',
|
|
8345
8345
|
elevation: 3,
|
|
8346
8346
|
placement: Placement.AUTO,
|
|
@@ -8364,8 +8364,8 @@ const Popover$1 = (props, {
|
|
|
8364
8364
|
as: asTag = 'div',
|
|
8365
8365
|
children,
|
|
8366
8366
|
className,
|
|
8367
|
-
closeMode = DEFAULT_PROPS$
|
|
8368
|
-
elevation = DEFAULT_PROPS$
|
|
8367
|
+
closeMode = DEFAULT_PROPS$V.closeMode,
|
|
8368
|
+
elevation = DEFAULT_PROPS$V.elevation,
|
|
8369
8369
|
hasArrow,
|
|
8370
8370
|
isOpen,
|
|
8371
8371
|
position,
|
|
@@ -8375,7 +8375,7 @@ const Popover$1 = (props, {
|
|
|
8375
8375
|
// Framework-specific
|
|
8376
8376
|
ref,
|
|
8377
8377
|
arrowRef,
|
|
8378
|
-
usePortal = DEFAULT_PROPS$
|
|
8378
|
+
usePortal = DEFAULT_PROPS$V.usePortal,
|
|
8379
8379
|
clickAwayCallback,
|
|
8380
8380
|
clickAwayRefs,
|
|
8381
8381
|
unmountSentinel,
|
|
@@ -8707,27 +8707,27 @@ const _InnerPopover = forwardRef((props, ref) => {
|
|
|
8707
8707
|
as,
|
|
8708
8708
|
children,
|
|
8709
8709
|
className,
|
|
8710
|
-
closeMode = DEFAULT_PROPS$
|
|
8710
|
+
closeMode = DEFAULT_PROPS$V.closeMode,
|
|
8711
8711
|
closeOnClickAway,
|
|
8712
8712
|
closeOnEscape,
|
|
8713
|
-
elevation = DEFAULT_PROPS$
|
|
8713
|
+
elevation = DEFAULT_PROPS$V.elevation,
|
|
8714
8714
|
focusElement,
|
|
8715
8715
|
hasArrow,
|
|
8716
8716
|
isOpen,
|
|
8717
8717
|
onClose,
|
|
8718
8718
|
parentElement,
|
|
8719
|
-
usePortal = DEFAULT_PROPS$
|
|
8720
|
-
focusAnchorOnClose = DEFAULT_PROPS$
|
|
8719
|
+
usePortal = DEFAULT_PROPS$V.usePortal,
|
|
8720
|
+
focusAnchorOnClose = DEFAULT_PROPS$V.focusAnchorOnClose,
|
|
8721
8721
|
withFocusTrap,
|
|
8722
8722
|
boundaryRef,
|
|
8723
8723
|
fitToAnchorWidth,
|
|
8724
8724
|
fitWithinViewportHeight,
|
|
8725
8725
|
focusTrapZoneElement,
|
|
8726
8726
|
offset,
|
|
8727
|
-
placement = DEFAULT_PROPS$
|
|
8727
|
+
placement = DEFAULT_PROPS$V.placement,
|
|
8728
8728
|
style,
|
|
8729
8729
|
theme,
|
|
8730
|
-
zIndex = DEFAULT_PROPS$
|
|
8730
|
+
zIndex = DEFAULT_PROPS$V.zIndex,
|
|
8731
8731
|
...forwardedProps
|
|
8732
8732
|
} = props;
|
|
8733
8733
|
const popoverRef = useRef(null);
|
|
@@ -8801,7 +8801,7 @@ const Popover = skipRender(
|
|
|
8801
8801
|
() => Boolean(DOCUMENT), _InnerPopover);
|
|
8802
8802
|
Popover.displayName = COMPONENT_NAME$14;
|
|
8803
8803
|
Popover.className = CLASSNAME$13;
|
|
8804
|
-
Popover.defaultProps = DEFAULT_PROPS$
|
|
8804
|
+
Popover.defaultProps = DEFAULT_PROPS$V;
|
|
8805
8805
|
|
|
8806
8806
|
/**
|
|
8807
8807
|
* Props for Combobox.OptionMoreInfo component.
|
|
@@ -9273,7 +9273,7 @@ const {
|
|
|
9273
9273
|
/**
|
|
9274
9274
|
* Component default props.
|
|
9275
9275
|
*/
|
|
9276
|
-
const DEFAULT_PROPS$
|
|
9276
|
+
const DEFAULT_PROPS$U = {};
|
|
9277
9277
|
|
|
9278
9278
|
/**
|
|
9279
9279
|
* ListSection component.
|
|
@@ -9317,7 +9317,7 @@ const ListSection$1 = props => {
|
|
|
9317
9317
|
};
|
|
9318
9318
|
ListSection$1.displayName = COMPONENT_NAME$_;
|
|
9319
9319
|
ListSection$1.className = CLASSNAME$Z;
|
|
9320
|
-
ListSection$1.defaultProps = DEFAULT_PROPS$
|
|
9320
|
+
ListSection$1.defaultProps = DEFAULT_PROPS$U;
|
|
9321
9321
|
|
|
9322
9322
|
/**
|
|
9323
9323
|
* Defines the props of the component.
|
|
@@ -9341,7 +9341,7 @@ const ListSection = forwardRef((props, ref) => {
|
|
|
9341
9341
|
});
|
|
9342
9342
|
ListSection.displayName = COMPONENT_NAME$_;
|
|
9343
9343
|
ListSection.className = CLASSNAME$Z;
|
|
9344
|
-
ListSection.defaultProps = DEFAULT_PROPS$
|
|
9344
|
+
ListSection.defaultProps = DEFAULT_PROPS$U;
|
|
9345
9345
|
|
|
9346
9346
|
/**
|
|
9347
9347
|
* Props for Combobox.Section component.
|
|
@@ -9579,7 +9579,7 @@ const {
|
|
|
9579
9579
|
/**
|
|
9580
9580
|
* Component default props.
|
|
9581
9581
|
*/
|
|
9582
|
-
const DEFAULT_PROPS$
|
|
9582
|
+
const DEFAULT_PROPS$T = {
|
|
9583
9583
|
gap: Size.big,
|
|
9584
9584
|
orientation: Orientation.horizontal
|
|
9585
9585
|
};
|
|
@@ -9603,10 +9603,10 @@ const GenericBlock$1 = props => {
|
|
|
9603
9603
|
children,
|
|
9604
9604
|
actions,
|
|
9605
9605
|
actionsProps,
|
|
9606
|
-
gap = DEFAULT_PROPS$
|
|
9606
|
+
gap = DEFAULT_PROPS$T.gap,
|
|
9607
9607
|
ref,
|
|
9608
9608
|
content,
|
|
9609
|
-
orientation = DEFAULT_PROPS$
|
|
9609
|
+
orientation = DEFAULT_PROPS$T.orientation,
|
|
9610
9610
|
contentProps,
|
|
9611
9611
|
FlexBox,
|
|
9612
9612
|
...forwardedProps
|
|
@@ -9718,7 +9718,7 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
9718
9718
|
});
|
|
9719
9719
|
BaseGenericBlock.displayName = COMPONENT_NAME$Y;
|
|
9720
9720
|
BaseGenericBlock.className = CLASSNAME$X;
|
|
9721
|
-
BaseGenericBlock.defaultProps = DEFAULT_PROPS$
|
|
9721
|
+
BaseGenericBlock.defaultProps = DEFAULT_PROPS$T;
|
|
9722
9722
|
const GenericBlock = Object.assign(BaseGenericBlock, {
|
|
9723
9723
|
Figure,
|
|
9724
9724
|
Content,
|
|
@@ -9810,7 +9810,7 @@ const Text = forwardRef((props, ref) => {
|
|
|
9810
9810
|
});
|
|
9811
9811
|
Text.displayName = COMPONENT_NAME$18;
|
|
9812
9812
|
Text.className = CLASSNAME$17;
|
|
9813
|
-
Text.defaultProps = DEFAULT_PROPS$
|
|
9813
|
+
Text.defaultProps = DEFAULT_PROPS$W;
|
|
9814
9814
|
|
|
9815
9815
|
/**
|
|
9816
9816
|
* Props for Combobox.State component.
|
|
@@ -9892,7 +9892,7 @@ const CLASSNAME$W = 'lumx-list-divider';
|
|
|
9892
9892
|
/**
|
|
9893
9893
|
* Component default props.
|
|
9894
9894
|
*/
|
|
9895
|
-
const DEFAULT_PROPS$
|
|
9895
|
+
const DEFAULT_PROPS$S = {};
|
|
9896
9896
|
|
|
9897
9897
|
/**
|
|
9898
9898
|
* ListDivider component.
|
|
@@ -9916,7 +9916,7 @@ const ListDivider$1 = props => {
|
|
|
9916
9916
|
};
|
|
9917
9917
|
ListDivider$1.displayName = COMPONENT_NAME$X;
|
|
9918
9918
|
ListDivider$1.className = CLASSNAME$W;
|
|
9919
|
-
ListDivider$1.defaultProps = DEFAULT_PROPS$
|
|
9919
|
+
ListDivider$1.defaultProps = DEFAULT_PROPS$S;
|
|
9920
9920
|
|
|
9921
9921
|
/**
|
|
9922
9922
|
* Defines the props of the component.
|
|
@@ -9938,7 +9938,7 @@ const ListDivider = forwardRef((props, ref) => {
|
|
|
9938
9938
|
});
|
|
9939
9939
|
ListDivider.displayName = COMPONENT_NAME$X;
|
|
9940
9940
|
ListDivider.className = CLASSNAME$W;
|
|
9941
|
-
ListDivider.defaultProps = DEFAULT_PROPS$
|
|
9941
|
+
ListDivider.defaultProps = DEFAULT_PROPS$S;
|
|
9942
9942
|
|
|
9943
9943
|
/**
|
|
9944
9944
|
* Combobox compound component namespace.
|
|
@@ -10001,7 +10001,7 @@ const {
|
|
|
10001
10001
|
/**
|
|
10002
10002
|
* Component default props.
|
|
10003
10003
|
*/
|
|
10004
|
-
const DEFAULT_PROPS$
|
|
10004
|
+
const DEFAULT_PROPS$R = {
|
|
10005
10005
|
variant: CommentBlockVariant.indented
|
|
10006
10006
|
};
|
|
10007
10007
|
|
|
@@ -10031,7 +10031,7 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
10031
10031
|
onMouseLeave,
|
|
10032
10032
|
text,
|
|
10033
10033
|
theme = defaultTheme,
|
|
10034
|
-
variant = DEFAULT_PROPS$
|
|
10034
|
+
variant = DEFAULT_PROPS$R.variant,
|
|
10035
10035
|
...forwardedProps
|
|
10036
10036
|
} = props;
|
|
10037
10037
|
const hasChildren = Children.count(children) > 0;
|
|
@@ -10100,7 +10100,7 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
10100
10100
|
});
|
|
10101
10101
|
CommentBlock.displayName = COMPONENT_NAME$W;
|
|
10102
10102
|
CommentBlock.className = CLASSNAME$V;
|
|
10103
|
-
CommentBlock.defaultProps = DEFAULT_PROPS$
|
|
10103
|
+
CommentBlock.defaultProps = DEFAULT_PROPS$R;
|
|
10104
10104
|
|
|
10105
10105
|
/**
|
|
10106
10106
|
* Add a number of months from a date while resetting the day to prevent month length mismatches.
|
|
@@ -10983,9 +10983,6 @@ const useTransitionVisibility = (ref, isComponentVisible, timeout, onVisibilityC
|
|
|
10983
10983
|
return isVisible || isComponentVisible;
|
|
10984
10984
|
};
|
|
10985
10985
|
|
|
10986
|
-
const isHeader$1 = isComponent('header');
|
|
10987
|
-
const isFooter$1 = isComponent('footer');
|
|
10988
|
-
|
|
10989
10986
|
/**
|
|
10990
10987
|
* Component display name.
|
|
10991
10988
|
*/
|
|
@@ -10998,7 +10995,134 @@ const CLASSNAME$T = 'lumx-dialog';
|
|
|
10998
10995
|
const {
|
|
10999
10996
|
block: block$J,
|
|
11000
10997
|
element: element$z
|
|
11001
|
-
} =
|
|
10998
|
+
} = bem(CLASSNAME$T);
|
|
10999
|
+
|
|
11000
|
+
/**
|
|
11001
|
+
* Component default props.
|
|
11002
|
+
*/
|
|
11003
|
+
const DEFAULT_PROPS$Q = {
|
|
11004
|
+
size: Size.big
|
|
11005
|
+
};
|
|
11006
|
+
|
|
11007
|
+
/**
|
|
11008
|
+
* Dialog component.
|
|
11009
|
+
*
|
|
11010
|
+
* @param props Component props.
|
|
11011
|
+
* @param ref Component ref.
|
|
11012
|
+
* @return React element.
|
|
11013
|
+
*/
|
|
11014
|
+
const Dialog$1 = props => {
|
|
11015
|
+
const {
|
|
11016
|
+
className,
|
|
11017
|
+
ref,
|
|
11018
|
+
header,
|
|
11019
|
+
forceFooterDivider,
|
|
11020
|
+
forceHeaderDivider,
|
|
11021
|
+
footer,
|
|
11022
|
+
isLoading,
|
|
11023
|
+
isOpen,
|
|
11024
|
+
handleClose,
|
|
11025
|
+
contentRef,
|
|
11026
|
+
size = DEFAULT_PROPS$Q.size,
|
|
11027
|
+
zIndex,
|
|
11028
|
+
dialogProps,
|
|
11029
|
+
headerChildContent,
|
|
11030
|
+
isVisible,
|
|
11031
|
+
Portal,
|
|
11032
|
+
HeadingLevelProvider,
|
|
11033
|
+
ThemeProvider,
|
|
11034
|
+
ClickAwayProvider,
|
|
11035
|
+
shouldPreventCloseOnClickAway,
|
|
11036
|
+
clickAwayRefs,
|
|
11037
|
+
rootRef,
|
|
11038
|
+
wrapperRef,
|
|
11039
|
+
hasTopIntersection,
|
|
11040
|
+
headerChildProps,
|
|
11041
|
+
setSentinelTop,
|
|
11042
|
+
content,
|
|
11043
|
+
setSentinelBottom,
|
|
11044
|
+
footerChildContent,
|
|
11045
|
+
footerChildProps,
|
|
11046
|
+
ProgressCircular,
|
|
11047
|
+
hasBottomIntersection,
|
|
11048
|
+
...forwardedProps
|
|
11049
|
+
} = props;
|
|
11050
|
+
return /*#__PURE__*/jsx(Portal, {
|
|
11051
|
+
children: /*#__PURE__*/jsxs("div", {
|
|
11052
|
+
ref: ref,
|
|
11053
|
+
...forwardedProps,
|
|
11054
|
+
className: classnames(className, block$J({
|
|
11055
|
+
'is-hidden': !isOpen,
|
|
11056
|
+
'is-loading': isLoading,
|
|
11057
|
+
'is-shown': isOpen || isVisible,
|
|
11058
|
+
[`size-${size}`]: Boolean(size)
|
|
11059
|
+
})),
|
|
11060
|
+
style: {
|
|
11061
|
+
zIndex
|
|
11062
|
+
},
|
|
11063
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
11064
|
+
className: element$z('overlay')
|
|
11065
|
+
}), /*#__PURE__*/jsx(HeadingLevelProvider, {
|
|
11066
|
+
level: 2,
|
|
11067
|
+
children: /*#__PURE__*/jsx(ThemeProvider, {
|
|
11068
|
+
value: undefined,
|
|
11069
|
+
children: /*#__PURE__*/jsx("div", {
|
|
11070
|
+
className: element$z('container'),
|
|
11071
|
+
role: "dialog",
|
|
11072
|
+
"aria-modal": "true",
|
|
11073
|
+
...dialogProps,
|
|
11074
|
+
children: /*#__PURE__*/jsx(ClickAwayProvider, {
|
|
11075
|
+
callback: !shouldPreventCloseOnClickAway && handleClose,
|
|
11076
|
+
childrenRefs: clickAwayRefs,
|
|
11077
|
+
parentRef: rootRef,
|
|
11078
|
+
children: /*#__PURE__*/jsxs("section", {
|
|
11079
|
+
className: element$z('wrapper'),
|
|
11080
|
+
ref: wrapperRef,
|
|
11081
|
+
children: [(header || headerChildContent) && /*#__PURE__*/jsxs("header", {
|
|
11082
|
+
...headerChildProps,
|
|
11083
|
+
className: classnames(element$z('header', {
|
|
11084
|
+
'has-divider': Boolean(forceHeaderDivider || hasTopIntersection)
|
|
11085
|
+
}), headerChildProps?.className),
|
|
11086
|
+
children: [header, headerChildContent]
|
|
11087
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
11088
|
+
ref: contentRef,
|
|
11089
|
+
className: element$z('content'),
|
|
11090
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
11091
|
+
className: element$z('sentinel', {
|
|
11092
|
+
top: true
|
|
11093
|
+
}),
|
|
11094
|
+
ref: setSentinelTop
|
|
11095
|
+
}), content, /*#__PURE__*/jsx("div", {
|
|
11096
|
+
className: element$z('sentinel', {
|
|
11097
|
+
bottom: true
|
|
11098
|
+
}),
|
|
11099
|
+
ref: setSentinelBottom
|
|
11100
|
+
})]
|
|
11101
|
+
}), (footer || footerChildContent) && /*#__PURE__*/jsxs("footer", {
|
|
11102
|
+
...footerChildProps,
|
|
11103
|
+
className: classnames(element$z('footer', {
|
|
11104
|
+
'has-divider': Boolean(forceFooterDivider || hasBottomIntersection)
|
|
11105
|
+
}), footerChildProps?.className),
|
|
11106
|
+
children: [footer, footerChildContent]
|
|
11107
|
+
}), isLoading && /*#__PURE__*/jsx("div", {
|
|
11108
|
+
className: element$z('progress-overlay'),
|
|
11109
|
+
children: /*#__PURE__*/jsx(ProgressCircular, {})
|
|
11110
|
+
})]
|
|
11111
|
+
})
|
|
11112
|
+
})
|
|
11113
|
+
})
|
|
11114
|
+
})
|
|
11115
|
+
})]
|
|
11116
|
+
})
|
|
11117
|
+
});
|
|
11118
|
+
};
|
|
11119
|
+
|
|
11120
|
+
/**
|
|
11121
|
+
* Defines the props of the component.
|
|
11122
|
+
*/
|
|
11123
|
+
|
|
11124
|
+
const isHeader$1 = isComponent('header');
|
|
11125
|
+
const isFooter$1 = isComponent('footer');
|
|
11002
11126
|
|
|
11003
11127
|
/**
|
|
11004
11128
|
* Component default props.
|
|
@@ -11108,75 +11232,40 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
11108
11232
|
const isVisible = useTransitionVisibility(rootRef, Boolean(isOpen), DIALOG_TRANSITION_DURATION, onVisibilityChange);
|
|
11109
11233
|
const shouldPreventCloseOnClickAway = preventAutoClose || preventCloseOnClick;
|
|
11110
11234
|
const isMounted = isOpen || isVisible || closeMode === 'hide';
|
|
11111
|
-
return isMounted ?
|
|
11112
|
-
|
|
11113
|
-
|
|
11114
|
-
|
|
11115
|
-
|
|
11116
|
-
|
|
11117
|
-
|
|
11118
|
-
|
|
11119
|
-
|
|
11120
|
-
|
|
11121
|
-
|
|
11122
|
-
|
|
11123
|
-
|
|
11124
|
-
|
|
11125
|
-
|
|
11126
|
-
|
|
11127
|
-
|
|
11128
|
-
|
|
11129
|
-
|
|
11130
|
-
|
|
11131
|
-
|
|
11132
|
-
|
|
11133
|
-
|
|
11134
|
-
|
|
11135
|
-
|
|
11136
|
-
|
|
11137
|
-
|
|
11138
|
-
|
|
11139
|
-
|
|
11140
|
-
|
|
11141
|
-
|
|
11142
|
-
|
|
11143
|
-
|
|
11144
|
-
|
|
11145
|
-
'has-divider': Boolean(forceHeaderDivider || hasTopIntersection)
|
|
11146
|
-
}), headerChildProps?.className),
|
|
11147
|
-
children: [header, headerChildContent]
|
|
11148
|
-
}), /*#__PURE__*/jsxs("div", {
|
|
11149
|
-
ref: mergeRefs(contentRef, localContentRef),
|
|
11150
|
-
className: element$z('content'),
|
|
11151
|
-
children: [/*#__PURE__*/jsx("div", {
|
|
11152
|
-
className: element$z('sentinel', {
|
|
11153
|
-
top: true
|
|
11154
|
-
}),
|
|
11155
|
-
ref: setSentinelTop
|
|
11156
|
-
}), content, /*#__PURE__*/jsx("div", {
|
|
11157
|
-
className: element$z('sentinel', {
|
|
11158
|
-
bottom: true
|
|
11159
|
-
}),
|
|
11160
|
-
ref: setSentinelBottom
|
|
11161
|
-
})]
|
|
11162
|
-
}), (footer || footerChildContent) && /*#__PURE__*/jsxs("footer", {
|
|
11163
|
-
...footerChildProps,
|
|
11164
|
-
className: classNames.join(element$z('footer', {
|
|
11165
|
-
'has-divider': Boolean(forceFooterDivider || hasBottomIntersection)
|
|
11166
|
-
}), footerChildProps?.className),
|
|
11167
|
-
children: [footer, footerChildContent]
|
|
11168
|
-
}), isLoading && /*#__PURE__*/jsx("div", {
|
|
11169
|
-
className: element$z('progress-overlay'),
|
|
11170
|
-
children: /*#__PURE__*/jsx(Progress, {
|
|
11171
|
-
variant: ProgressVariant.circular
|
|
11172
|
-
})
|
|
11173
|
-
})]
|
|
11174
|
-
})
|
|
11175
|
-
})
|
|
11176
|
-
})
|
|
11177
|
-
})
|
|
11178
|
-
})]
|
|
11179
|
-
})
|
|
11235
|
+
return isMounted ? Dialog$1({
|
|
11236
|
+
ClickAwayProvider,
|
|
11237
|
+
HeadingLevelProvider,
|
|
11238
|
+
Portal,
|
|
11239
|
+
ThemeProvider,
|
|
11240
|
+
className,
|
|
11241
|
+
clickAwayRefs,
|
|
11242
|
+
content,
|
|
11243
|
+
contentRef: mergeRefs(localContentRef, contentRef),
|
|
11244
|
+
dialogProps,
|
|
11245
|
+
footer,
|
|
11246
|
+
footerChildContent,
|
|
11247
|
+
footerChildProps,
|
|
11248
|
+
forceFooterDivider,
|
|
11249
|
+
forceHeaderDivider,
|
|
11250
|
+
handleClose: onClose,
|
|
11251
|
+
hasBottomIntersection,
|
|
11252
|
+
hasTopIntersection,
|
|
11253
|
+
header,
|
|
11254
|
+
headerChildContent,
|
|
11255
|
+
ProgressCircular,
|
|
11256
|
+
headerChildProps,
|
|
11257
|
+
isLoading,
|
|
11258
|
+
isOpen,
|
|
11259
|
+
isVisible,
|
|
11260
|
+
ref: mergeRefs(rootRef, ref),
|
|
11261
|
+
rootRef,
|
|
11262
|
+
setSentinelBottom,
|
|
11263
|
+
setSentinelTop,
|
|
11264
|
+
shouldPreventCloseOnClickAway,
|
|
11265
|
+
size,
|
|
11266
|
+
wrapperRef,
|
|
11267
|
+
zIndex,
|
|
11268
|
+
...forwardedProps
|
|
11180
11269
|
}) : null;
|
|
11181
11270
|
});
|
|
11182
11271
|
Dialog.displayName = COMPONENT_NAME$S;
|
|
@@ -11516,7 +11605,7 @@ const InternalList = forwardRef((props, ref) => {
|
|
|
11516
11605
|
});
|
|
11517
11606
|
InternalList.displayName = COMPONENT_NAME$1c;
|
|
11518
11607
|
InternalList.className = CLASSNAME$1b;
|
|
11519
|
-
InternalList.defaultProps = DEFAULT_PROPS$
|
|
11608
|
+
InternalList.defaultProps = DEFAULT_PROPS$Z;
|
|
11520
11609
|
const List = Object.assign(InternalList, {
|
|
11521
11610
|
useKeyboardListNavigation
|
|
11522
11611
|
});
|
|
@@ -13776,7 +13865,7 @@ const ListItemAction = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
13776
13865
|
}), {
|
|
13777
13866
|
displayName: COMPONENT_NAME$19,
|
|
13778
13867
|
className: CLASSNAME$18,
|
|
13779
|
-
defaultProps: DEFAULT_PROPS$
|
|
13868
|
+
defaultProps: DEFAULT_PROPS$X
|
|
13780
13869
|
});
|
|
13781
13870
|
|
|
13782
13871
|
/**
|
|
@@ -13816,7 +13905,7 @@ const _ListItem = forwardRef((props, ref) => {
|
|
|
13816
13905
|
});
|
|
13817
13906
|
_ListItem.displayName = COMPONENT_NAME$1a;
|
|
13818
13907
|
_ListItem.className = CLASSNAME$19;
|
|
13819
|
-
_ListItem.defaultProps = DEFAULT_PROPS$
|
|
13908
|
+
_ListItem.defaultProps = DEFAULT_PROPS$Y;
|
|
13820
13909
|
|
|
13821
13910
|
/**
|
|
13822
13911
|
* ListItem component with Action sub-component.
|
|
@@ -19564,5 +19653,5 @@ UserBlock.displayName = COMPONENT_NAME;
|
|
|
19564
19653
|
UserBlock.className = CLASSNAME;
|
|
19565
19654
|
UserBlock.defaultProps = DEFAULT_PROPS;
|
|
19566
19655
|
|
|
19567
|
-
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$1p as CLASSNAME, COMPONENT_NAME$1p as COMPONENT_NAME, Checkbox, Chip, ChipGroup, Combobox, CommentBlock, CommentBlockVariant, DEFAULT_PROPS$
|
|
19656
|
+
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$1p as CLASSNAME, COMPONENT_NAME$1p as COMPONENT_NAME, Checkbox, Chip, ChipGroup, Combobox, CommentBlock, CommentBlockVariant, DEFAULT_PROPS$1b 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, Message, Mosaic, Navigation, Notification, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, RawInputText, RawInputTextarea, Select, SelectMultiple, SelectMultipleField, SelectVariant, SelectionChipGroup, SideNavigation, SideNavigationItem, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableHeader, TableRow, Text, TextField, ThOrder, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, Toolbar, Tooltip, Uploader, UploaderVariant, UserBlock, clamp, useFocusPointStyle, useHeadingLevel, useTheme };
|
|
19568
19657
|
//# sourceMappingURL=index.js.map
|