@lumx/react 4.3.0 → 4.3.1-alpha.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 +44 -16
- package/index.js +390 -241
- package/index.js.map +1 -1
- package/package.json +4 -3
package/index.js
CHANGED
|
@@ -109,7 +109,7 @@ const {
|
|
|
109
109
|
/**
|
|
110
110
|
* Component default props.
|
|
111
111
|
*/
|
|
112
|
-
const DEFAULT_PROPS$
|
|
112
|
+
const DEFAULT_PROPS$18 = {
|
|
113
113
|
size: Size$1.tiny,
|
|
114
114
|
kind: Kind$1.info
|
|
115
115
|
};
|
|
@@ -130,8 +130,8 @@ const AlertDialog = forwardRef((props, ref) => {
|
|
|
130
130
|
className,
|
|
131
131
|
cancelProps,
|
|
132
132
|
confirmProps,
|
|
133
|
-
kind = DEFAULT_PROPS$
|
|
134
|
-
size = DEFAULT_PROPS$
|
|
133
|
+
kind = DEFAULT_PROPS$18.kind,
|
|
134
|
+
size = DEFAULT_PROPS$18.size,
|
|
135
135
|
dialogProps,
|
|
136
136
|
children,
|
|
137
137
|
...forwardedProps
|
|
@@ -219,7 +219,7 @@ const AlertDialog = forwardRef((props, ref) => {
|
|
|
219
219
|
});
|
|
220
220
|
AlertDialog.displayName = COMPONENT_NAME$1k;
|
|
221
221
|
AlertDialog.className = CLASSNAME$1j;
|
|
222
|
-
AlertDialog.defaultProps = DEFAULT_PROPS$
|
|
222
|
+
AlertDialog.defaultProps = DEFAULT_PROPS$18;
|
|
223
223
|
|
|
224
224
|
/**
|
|
225
225
|
* Hook focusing an element when defined and `focus` boolean `true`.
|
|
@@ -321,7 +321,7 @@ const CLASSNAME$1i = 'lumx-autocomplete';
|
|
|
321
321
|
/**
|
|
322
322
|
* Component default props.
|
|
323
323
|
*/
|
|
324
|
-
const DEFAULT_PROPS$
|
|
324
|
+
const DEFAULT_PROPS$17 = {
|
|
325
325
|
anchorToInput: false,
|
|
326
326
|
closeOnClick: false,
|
|
327
327
|
closeOnClickAway: true,
|
|
@@ -343,13 +343,13 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
343
343
|
otherProps
|
|
344
344
|
} = useDisableStateProps(props);
|
|
345
345
|
const {
|
|
346
|
-
anchorToInput = DEFAULT_PROPS$
|
|
346
|
+
anchorToInput = DEFAULT_PROPS$17.anchorToInput,
|
|
347
347
|
children,
|
|
348
348
|
chips,
|
|
349
349
|
className,
|
|
350
|
-
closeOnClick = DEFAULT_PROPS$
|
|
351
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
352
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
350
|
+
closeOnClick = DEFAULT_PROPS$17.closeOnClick,
|
|
351
|
+
closeOnClickAway = DEFAULT_PROPS$17.closeOnClickAway,
|
|
352
|
+
closeOnEscape = DEFAULT_PROPS$17.closeOnEscape,
|
|
353
353
|
error,
|
|
354
354
|
fitToAnchorWidth,
|
|
355
355
|
hasError,
|
|
@@ -370,7 +370,7 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
370
370
|
onInfiniteScroll,
|
|
371
371
|
placeholder,
|
|
372
372
|
placement,
|
|
373
|
-
shouldFocusOnClose = DEFAULT_PROPS$
|
|
373
|
+
shouldFocusOnClose = DEFAULT_PROPS$17.shouldFocusOnClose,
|
|
374
374
|
theme = defaultTheme,
|
|
375
375
|
value,
|
|
376
376
|
textFieldProps = {},
|
|
@@ -425,7 +425,7 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
425
425
|
});
|
|
426
426
|
Autocomplete.displayName = COMPONENT_NAME$1j;
|
|
427
427
|
Autocomplete.className = CLASSNAME$1i;
|
|
428
|
-
Autocomplete.defaultProps = DEFAULT_PROPS$
|
|
428
|
+
Autocomplete.defaultProps = DEFAULT_PROPS$17;
|
|
429
429
|
|
|
430
430
|
/**
|
|
431
431
|
* Component display name.
|
|
@@ -440,7 +440,7 @@ const CLASSNAME$1h = 'lumx-autocomplete-multiple';
|
|
|
440
440
|
/**
|
|
441
441
|
* Component default props.
|
|
442
442
|
*/
|
|
443
|
-
const DEFAULT_PROPS$
|
|
443
|
+
const DEFAULT_PROPS$16 = {
|
|
444
444
|
closeOnClickAway: true,
|
|
445
445
|
closeOnEscape: true,
|
|
446
446
|
selectedChipRender(choice, index, onClear, isDisabled) {
|
|
@@ -480,8 +480,8 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
480
480
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
481
481
|
chipsAlignment,
|
|
482
482
|
className,
|
|
483
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
484
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
483
|
+
closeOnClickAway = DEFAULT_PROPS$16.closeOnClickAway,
|
|
484
|
+
closeOnEscape = DEFAULT_PROPS$16.closeOnEscape,
|
|
485
485
|
fitToAnchorWidth,
|
|
486
486
|
hasError,
|
|
487
487
|
helper,
|
|
@@ -503,12 +503,12 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
503
503
|
onKeyDown,
|
|
504
504
|
placeholder,
|
|
505
505
|
placement,
|
|
506
|
-
selectedChipRender = DEFAULT_PROPS$
|
|
506
|
+
selectedChipRender = DEFAULT_PROPS$16.selectedChipRender,
|
|
507
507
|
shouldFocusOnClose,
|
|
508
508
|
theme = defaultTheme,
|
|
509
509
|
type,
|
|
510
510
|
value,
|
|
511
|
-
values = DEFAULT_PROPS$
|
|
511
|
+
values = DEFAULT_PROPS$16.values,
|
|
512
512
|
...forwardedProps
|
|
513
513
|
} = otherProps;
|
|
514
514
|
return /*#__PURE__*/jsx(Autocomplete, {
|
|
@@ -550,7 +550,7 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
550
550
|
});
|
|
551
551
|
AutocompleteMultiple.displayName = COMPONENT_NAME$1i;
|
|
552
552
|
AutocompleteMultiple.className = CLASSNAME$1h;
|
|
553
|
-
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$
|
|
553
|
+
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$16;
|
|
554
554
|
|
|
555
555
|
/**
|
|
556
556
|
* Component display name.
|
|
@@ -569,7 +569,7 @@ const {
|
|
|
569
569
|
/**
|
|
570
570
|
* Component default props.
|
|
571
571
|
*/
|
|
572
|
-
const DEFAULT_PROPS$
|
|
572
|
+
const DEFAULT_PROPS$15 = {
|
|
573
573
|
size: Size$1.m
|
|
574
574
|
};
|
|
575
575
|
|
|
@@ -592,7 +592,7 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
592
592
|
linkAs,
|
|
593
593
|
onClick,
|
|
594
594
|
onKeyPress,
|
|
595
|
-
size = DEFAULT_PROPS$
|
|
595
|
+
size = DEFAULT_PROPS$15.size,
|
|
596
596
|
theme = defaultTheme,
|
|
597
597
|
thumbnailProps,
|
|
598
598
|
...forwardedProps
|
|
@@ -627,7 +627,7 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
627
627
|
});
|
|
628
628
|
Avatar.displayName = COMPONENT_NAME$1h;
|
|
629
629
|
Avatar.className = CLASSNAME$1g;
|
|
630
|
-
Avatar.defaultProps = DEFAULT_PROPS$
|
|
630
|
+
Avatar.defaultProps = DEFAULT_PROPS$15;
|
|
631
631
|
|
|
632
632
|
/**
|
|
633
633
|
* Component display name.
|
|
@@ -645,7 +645,7 @@ const {
|
|
|
645
645
|
/**
|
|
646
646
|
* Component default props.
|
|
647
647
|
*/
|
|
648
|
-
const DEFAULT_PROPS$
|
|
648
|
+
const DEFAULT_PROPS$14 = {
|
|
649
649
|
color: ColorPalette$1.primary
|
|
650
650
|
};
|
|
651
651
|
|
|
@@ -660,7 +660,7 @@ const Badge = forwardRef((props, ref) => {
|
|
|
660
660
|
const {
|
|
661
661
|
children,
|
|
662
662
|
className,
|
|
663
|
-
color = DEFAULT_PROPS$
|
|
663
|
+
color = DEFAULT_PROPS$14.color,
|
|
664
664
|
...forwardedProps
|
|
665
665
|
} = props;
|
|
666
666
|
return /*#__PURE__*/jsx("div", {
|
|
@@ -674,7 +674,7 @@ const Badge = forwardRef((props, ref) => {
|
|
|
674
674
|
});
|
|
675
675
|
Badge.displayName = COMPONENT_NAME$1g;
|
|
676
676
|
Badge.className = CLASSNAME$1f;
|
|
677
|
-
Badge.defaultProps = DEFAULT_PROPS$
|
|
677
|
+
Badge.defaultProps = DEFAULT_PROPS$14;
|
|
678
678
|
|
|
679
679
|
/**
|
|
680
680
|
* Component default class name and class prefix.
|
|
@@ -1158,7 +1158,7 @@ const {
|
|
|
1158
1158
|
/**
|
|
1159
1159
|
* Component default props.
|
|
1160
1160
|
*/
|
|
1161
|
-
const DEFAULT_PROPS$
|
|
1161
|
+
const DEFAULT_PROPS$13 = {
|
|
1162
1162
|
emphasis: Emphasis.high,
|
|
1163
1163
|
size: Size.m
|
|
1164
1164
|
};
|
|
@@ -1172,10 +1172,10 @@ const DEFAULT_PROPS$11 = {
|
|
|
1172
1172
|
const Button$1 = props => {
|
|
1173
1173
|
const {
|
|
1174
1174
|
className,
|
|
1175
|
-
emphasis = DEFAULT_PROPS$
|
|
1175
|
+
emphasis = DEFAULT_PROPS$13.emphasis,
|
|
1176
1176
|
leftIcon,
|
|
1177
1177
|
rightIcon,
|
|
1178
|
-
size = DEFAULT_PROPS$
|
|
1178
|
+
size = DEFAULT_PROPS$13.size,
|
|
1179
1179
|
...forwardedProps
|
|
1180
1180
|
} = props;
|
|
1181
1181
|
const buttonClassName = classnames(className, modifier({
|
|
@@ -1192,7 +1192,7 @@ const Button$1 = props => {
|
|
|
1192
1192
|
};
|
|
1193
1193
|
Button$1.displayName = COMPONENT_NAME$1e;
|
|
1194
1194
|
Button$1.className = CLASSNAME$1d;
|
|
1195
|
-
Button$1.defaultProps = DEFAULT_PROPS$
|
|
1195
|
+
Button$1.defaultProps = DEFAULT_PROPS$13;
|
|
1196
1196
|
|
|
1197
1197
|
/**
|
|
1198
1198
|
* Properties of a component to use to determine it's name.
|
|
@@ -1260,7 +1260,7 @@ const Button = forwardRef((props, ref) => {
|
|
|
1260
1260
|
});
|
|
1261
1261
|
Button.displayName = COMPONENT_NAME$1e;
|
|
1262
1262
|
Button.className = CLASSNAME$1d;
|
|
1263
|
-
Button.defaultProps = DEFAULT_PROPS$
|
|
1263
|
+
Button.defaultProps = DEFAULT_PROPS$13;
|
|
1264
1264
|
|
|
1265
1265
|
const COMPONENT_NAME$1d = 'Icon';
|
|
1266
1266
|
const IconClassName = 'lumx-icon';
|
|
@@ -1277,7 +1277,7 @@ const {
|
|
|
1277
1277
|
/**
|
|
1278
1278
|
* Component default props.
|
|
1279
1279
|
*/
|
|
1280
|
-
const DEFAULT_PROPS$
|
|
1280
|
+
const DEFAULT_PROPS$12 = {};
|
|
1281
1281
|
|
|
1282
1282
|
/**
|
|
1283
1283
|
* Icon component.
|
|
@@ -1357,7 +1357,7 @@ const Icon$1 = props => {
|
|
|
1357
1357
|
};
|
|
1358
1358
|
Icon$1.displayName = COMPONENT_NAME$1d;
|
|
1359
1359
|
Icon$1.className = CLASSNAME$1c;
|
|
1360
|
-
Icon$1.defaultProps = DEFAULT_PROPS$
|
|
1360
|
+
Icon$1.defaultProps = DEFAULT_PROPS$12;
|
|
1361
1361
|
|
|
1362
1362
|
/**
|
|
1363
1363
|
* Component display name.
|
|
@@ -1372,7 +1372,7 @@ const CLASSNAME$1b = 'lumx-icon-button';
|
|
|
1372
1372
|
/**
|
|
1373
1373
|
* Component default props.
|
|
1374
1374
|
*/
|
|
1375
|
-
const DEFAULT_PROPS
|
|
1375
|
+
const DEFAULT_PROPS$11 = {
|
|
1376
1376
|
emphasis: Emphasis.high,
|
|
1377
1377
|
size: Size.m
|
|
1378
1378
|
};
|
|
@@ -1385,11 +1385,11 @@ const DEFAULT_PROPS$$ = {
|
|
|
1385
1385
|
*/
|
|
1386
1386
|
const IconButton$1 = props => {
|
|
1387
1387
|
const {
|
|
1388
|
-
emphasis = DEFAULT_PROPS
|
|
1388
|
+
emphasis = DEFAULT_PROPS$11.emphasis,
|
|
1389
1389
|
image,
|
|
1390
1390
|
icon,
|
|
1391
1391
|
label,
|
|
1392
|
-
size = DEFAULT_PROPS
|
|
1392
|
+
size = DEFAULT_PROPS$11.size,
|
|
1393
1393
|
...forwardedProps
|
|
1394
1394
|
} = props;
|
|
1395
1395
|
const defaultChildren = image ? /*#__PURE__*/jsx("img", {
|
|
@@ -1410,7 +1410,7 @@ const IconButton$1 = props => {
|
|
|
1410
1410
|
};
|
|
1411
1411
|
IconButton$1.displayName = COMPONENT_NAME$1c;
|
|
1412
1412
|
IconButton$1.className = CLASSNAME$1b;
|
|
1413
|
-
IconButton$1.defaultProps = DEFAULT_PROPS
|
|
1413
|
+
IconButton$1.defaultProps = DEFAULT_PROPS$11;
|
|
1414
1414
|
|
|
1415
1415
|
/**
|
|
1416
1416
|
* IconButton component.
|
|
@@ -1447,7 +1447,7 @@ const IconButton = forwardRef((props, ref) => {
|
|
|
1447
1447
|
});
|
|
1448
1448
|
IconButton.displayName = COMPONENT_NAME$1c;
|
|
1449
1449
|
IconButton.className = CLASSNAME$1b;
|
|
1450
|
-
IconButton.defaultProps = DEFAULT_PROPS
|
|
1450
|
+
IconButton.defaultProps = DEFAULT_PROPS$11;
|
|
1451
1451
|
|
|
1452
1452
|
/**
|
|
1453
1453
|
* Component display name.
|
|
@@ -1462,7 +1462,7 @@ const CLASSNAME$1a = 'lumx-button-group';
|
|
|
1462
1462
|
/**
|
|
1463
1463
|
* Component default props.
|
|
1464
1464
|
*/
|
|
1465
|
-
const DEFAULT_PROPS$
|
|
1465
|
+
const DEFAULT_PROPS$10 = {};
|
|
1466
1466
|
|
|
1467
1467
|
/**
|
|
1468
1468
|
* ButtonGroup component.
|
|
@@ -1484,7 +1484,7 @@ const ButtonGroup$1 = props => {
|
|
|
1484
1484
|
};
|
|
1485
1485
|
ButtonGroup$1.displayName = COMPONENT_NAME$1b;
|
|
1486
1486
|
ButtonGroup$1.className = CLASSNAME$1a;
|
|
1487
|
-
ButtonGroup$1.defaultProps = DEFAULT_PROPS$
|
|
1487
|
+
ButtonGroup$1.defaultProps = DEFAULT_PROPS$10;
|
|
1488
1488
|
|
|
1489
1489
|
/**
|
|
1490
1490
|
* ButtonGroup component.
|
|
@@ -1501,7 +1501,7 @@ const ButtonGroup = forwardRef((props, ref) => {
|
|
|
1501
1501
|
});
|
|
1502
1502
|
ButtonGroup.displayName = COMPONENT_NAME$1b;
|
|
1503
1503
|
ButtonGroup.className = CLASSNAME$1a;
|
|
1504
|
-
ButtonGroup.defaultProps = DEFAULT_PROPS$
|
|
1504
|
+
ButtonGroup.defaultProps = DEFAULT_PROPS$10;
|
|
1505
1505
|
|
|
1506
1506
|
const COMPONENT_NAME$1a = 'InputLabel';
|
|
1507
1507
|
const InputLabelClassName = 'lumx-input-label';
|
|
@@ -1509,7 +1509,7 @@ const CLASSNAME$19 = InputLabelClassName;
|
|
|
1509
1509
|
const {
|
|
1510
1510
|
block: block$_
|
|
1511
1511
|
} = bem(CLASSNAME$19);
|
|
1512
|
-
const DEFAULT_PROPS
|
|
1512
|
+
const DEFAULT_PROPS$$ = {};
|
|
1513
1513
|
|
|
1514
1514
|
/**
|
|
1515
1515
|
* InputLabel component.
|
|
@@ -1539,7 +1539,7 @@ function InputLabel$1(props) {
|
|
|
1539
1539
|
}
|
|
1540
1540
|
InputLabel$1.displayName = COMPONENT_NAME$1a;
|
|
1541
1541
|
InputLabel$1.className = CLASSNAME$19;
|
|
1542
|
-
InputLabel$1.defaultProps = DEFAULT_PROPS
|
|
1542
|
+
InputLabel$1.defaultProps = DEFAULT_PROPS$$;
|
|
1543
1543
|
|
|
1544
1544
|
const INPUT_HELPER_CONFIGURATION = {
|
|
1545
1545
|
[Kind.error]: {
|
|
@@ -1568,7 +1568,7 @@ const {
|
|
|
1568
1568
|
/**
|
|
1569
1569
|
* Component default props.
|
|
1570
1570
|
*/
|
|
1571
|
-
const DEFAULT_PROPS$
|
|
1571
|
+
const DEFAULT_PROPS$_ = {
|
|
1572
1572
|
kind: Kind.info
|
|
1573
1573
|
};
|
|
1574
1574
|
|
|
@@ -1579,7 +1579,7 @@ function InputHelper$1(props) {
|
|
|
1579
1579
|
const {
|
|
1580
1580
|
children,
|
|
1581
1581
|
className,
|
|
1582
|
-
kind = DEFAULT_PROPS$
|
|
1582
|
+
kind = DEFAULT_PROPS$_.kind,
|
|
1583
1583
|
theme,
|
|
1584
1584
|
ref,
|
|
1585
1585
|
...forwardedProps
|
|
@@ -1599,7 +1599,7 @@ function InputHelper$1(props) {
|
|
|
1599
1599
|
}
|
|
1600
1600
|
InputHelper$1.displayName = COMPONENT_NAME$19;
|
|
1601
1601
|
InputHelper$1.className = CLASSNAME$18;
|
|
1602
|
-
InputHelper$1.defaultProps = DEFAULT_PROPS$
|
|
1602
|
+
InputHelper$1.defaultProps = DEFAULT_PROPS$_;
|
|
1603
1603
|
|
|
1604
1604
|
const INTERMEDIATE_STATE = 'intermediate';
|
|
1605
1605
|
|
|
@@ -1714,7 +1714,7 @@ const Checkbox$1 = props => {
|
|
|
1714
1714
|
/**
|
|
1715
1715
|
* Component default props.
|
|
1716
1716
|
*/
|
|
1717
|
-
const DEFAULT_PROPS$
|
|
1717
|
+
const DEFAULT_PROPS$Z = {};
|
|
1718
1718
|
|
|
1719
1719
|
/**
|
|
1720
1720
|
* Checkbox component.
|
|
@@ -1776,7 +1776,7 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
1776
1776
|
});
|
|
1777
1777
|
Checkbox.displayName = COMPONENT_NAME$18;
|
|
1778
1778
|
Checkbox.className = CLASSNAME$17;
|
|
1779
|
-
Checkbox.defaultProps = DEFAULT_PROPS$
|
|
1779
|
+
Checkbox.defaultProps = DEFAULT_PROPS$Z;
|
|
1780
1780
|
|
|
1781
1781
|
/**
|
|
1782
1782
|
* Wrap mouse event handler to stop event propagation.
|
|
@@ -1811,7 +1811,7 @@ const {
|
|
|
1811
1811
|
/**
|
|
1812
1812
|
* Component default props.
|
|
1813
1813
|
*/
|
|
1814
|
-
const DEFAULT_PROPS$
|
|
1814
|
+
const DEFAULT_PROPS$Y = {
|
|
1815
1815
|
size: Size$1.m
|
|
1816
1816
|
};
|
|
1817
1817
|
|
|
@@ -1841,7 +1841,7 @@ const Chip = forwardRef((props, ref) => {
|
|
|
1841
1841
|
onAfterClick,
|
|
1842
1842
|
onBeforeClick,
|
|
1843
1843
|
onClick,
|
|
1844
|
-
size = DEFAULT_PROPS$
|
|
1844
|
+
size = DEFAULT_PROPS$Y.size,
|
|
1845
1845
|
theme = defaultTheme,
|
|
1846
1846
|
href,
|
|
1847
1847
|
onKeyDown,
|
|
@@ -1913,7 +1913,7 @@ const Chip = forwardRef((props, ref) => {
|
|
|
1913
1913
|
});
|
|
1914
1914
|
Chip.displayName = COMPONENT_NAME$17;
|
|
1915
1915
|
Chip.className = CLASSNAME$16;
|
|
1916
|
-
Chip.defaultProps = DEFAULT_PROPS$
|
|
1916
|
+
Chip.defaultProps = DEFAULT_PROPS$Y;
|
|
1917
1917
|
|
|
1918
1918
|
const INITIAL_STATE_ACTIVE_CHIP = -1;
|
|
1919
1919
|
|
|
@@ -1969,7 +1969,7 @@ const useChipGroupNavigation = (chips, onChipDeleted, initialActiveChip = INITIA
|
|
|
1969
1969
|
/**
|
|
1970
1970
|
* Component default props.
|
|
1971
1971
|
*/
|
|
1972
|
-
const DEFAULT_PROPS$
|
|
1972
|
+
const DEFAULT_PROPS$X = {};
|
|
1973
1973
|
|
|
1974
1974
|
/**
|
|
1975
1975
|
* Component display name.
|
|
@@ -2004,7 +2004,7 @@ const InternalChipGroup = forwardRef((props, ref) => {
|
|
|
2004
2004
|
});
|
|
2005
2005
|
InternalChipGroup.displayName = COMPONENT_NAME$16;
|
|
2006
2006
|
InternalChipGroup.className = CLASSNAME$15;
|
|
2007
|
-
InternalChipGroup.defaultProps = DEFAULT_PROPS$
|
|
2007
|
+
InternalChipGroup.defaultProps = DEFAULT_PROPS$X;
|
|
2008
2008
|
const ChipGroup = Object.assign(InternalChipGroup, {
|
|
2009
2009
|
useChipGroupNavigation
|
|
2010
2010
|
});
|
|
@@ -2216,7 +2216,7 @@ const {
|
|
|
2216
2216
|
/**
|
|
2217
2217
|
* Component default props.
|
|
2218
2218
|
*/
|
|
2219
|
-
const DEFAULT_PROPS$
|
|
2219
|
+
const DEFAULT_PROPS$W = {
|
|
2220
2220
|
variant: CommentBlockVariant.indented
|
|
2221
2221
|
};
|
|
2222
2222
|
|
|
@@ -2246,7 +2246,7 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
2246
2246
|
onMouseLeave,
|
|
2247
2247
|
text,
|
|
2248
2248
|
theme = defaultTheme,
|
|
2249
|
-
variant = DEFAULT_PROPS$
|
|
2249
|
+
variant = DEFAULT_PROPS$W.variant,
|
|
2250
2250
|
...forwardedProps
|
|
2251
2251
|
} = props;
|
|
2252
2252
|
const hasChildren = Children.count(children) > 0;
|
|
@@ -2315,7 +2315,7 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
2315
2315
|
});
|
|
2316
2316
|
CommentBlock.displayName = COMPONENT_NAME$15;
|
|
2317
2317
|
CommentBlock.className = CLASSNAME$13;
|
|
2318
|
-
CommentBlock.defaultProps = DEFAULT_PROPS$
|
|
2318
|
+
CommentBlock.defaultProps = DEFAULT_PROPS$W;
|
|
2319
2319
|
|
|
2320
2320
|
/**
|
|
2321
2321
|
* Add a number of months from a date while resetting the day to prevent month length mismatches.
|
|
@@ -3420,7 +3420,7 @@ const {
|
|
|
3420
3420
|
/**
|
|
3421
3421
|
* Component default props.
|
|
3422
3422
|
*/
|
|
3423
|
-
const DEFAULT_PROPS$
|
|
3423
|
+
const DEFAULT_PROPS$V = {
|
|
3424
3424
|
size: Size$1.big,
|
|
3425
3425
|
disableBodyScroll: true
|
|
3426
3426
|
};
|
|
@@ -3451,11 +3451,11 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
3451
3451
|
parentElement,
|
|
3452
3452
|
contentRef,
|
|
3453
3453
|
preventAutoClose,
|
|
3454
|
-
size = DEFAULT_PROPS$
|
|
3454
|
+
size = DEFAULT_PROPS$V.size,
|
|
3455
3455
|
zIndex,
|
|
3456
3456
|
dialogProps,
|
|
3457
3457
|
onVisibilityChange,
|
|
3458
|
-
disableBodyScroll = DEFAULT_PROPS$
|
|
3458
|
+
disableBodyScroll = DEFAULT_PROPS$V.disableBodyScroll,
|
|
3459
3459
|
preventCloseOnClick,
|
|
3460
3460
|
preventCloseOnEscape,
|
|
3461
3461
|
...forwardedProps
|
|
@@ -3595,7 +3595,7 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
3595
3595
|
});
|
|
3596
3596
|
Dialog.displayName = COMPONENT_NAME$11;
|
|
3597
3597
|
Dialog.className = CLASSNAME$11;
|
|
3598
|
-
Dialog.defaultProps = DEFAULT_PROPS$
|
|
3598
|
+
Dialog.defaultProps = DEFAULT_PROPS$V;
|
|
3599
3599
|
|
|
3600
3600
|
/**
|
|
3601
3601
|
* Component display name.
|
|
@@ -3613,7 +3613,7 @@ const {
|
|
|
3613
3613
|
/**
|
|
3614
3614
|
* Component default props.
|
|
3615
3615
|
*/
|
|
3616
|
-
const DEFAULT_PROPS$
|
|
3616
|
+
const DEFAULT_PROPS$U = {};
|
|
3617
3617
|
|
|
3618
3618
|
/**
|
|
3619
3619
|
* Divider component.
|
|
@@ -3639,7 +3639,7 @@ const Divider = forwardRef((props, ref) => {
|
|
|
3639
3639
|
});
|
|
3640
3640
|
Divider.displayName = COMPONENT_NAME$10;
|
|
3641
3641
|
Divider.className = CLASSNAME$10;
|
|
3642
|
-
Divider.defaultProps = DEFAULT_PROPS$
|
|
3642
|
+
Divider.defaultProps = DEFAULT_PROPS$U;
|
|
3643
3643
|
|
|
3644
3644
|
/**
|
|
3645
3645
|
* Component display name.
|
|
@@ -3864,7 +3864,7 @@ const {
|
|
|
3864
3864
|
/**
|
|
3865
3865
|
* Component default props.
|
|
3866
3866
|
*/
|
|
3867
|
-
const DEFAULT_PROPS$
|
|
3867
|
+
const DEFAULT_PROPS$T = {
|
|
3868
3868
|
tabIndex: -1
|
|
3869
3869
|
};
|
|
3870
3870
|
|
|
@@ -3883,7 +3883,7 @@ const InternalList = forwardRef((props, ref) => {
|
|
|
3883
3883
|
isClickable,
|
|
3884
3884
|
itemPadding,
|
|
3885
3885
|
onListItemSelected,
|
|
3886
|
-
tabIndex = DEFAULT_PROPS$
|
|
3886
|
+
tabIndex = DEFAULT_PROPS$T.tabIndex,
|
|
3887
3887
|
...forwardedProps
|
|
3888
3888
|
} = props;
|
|
3889
3889
|
const adjustedItemPadding = itemPadding ?? (isClickable ? Size$1.big : undefined);
|
|
@@ -3899,7 +3899,7 @@ const InternalList = forwardRef((props, ref) => {
|
|
|
3899
3899
|
});
|
|
3900
3900
|
InternalList.displayName = COMPONENT_NAME$_;
|
|
3901
3901
|
InternalList.className = CLASSNAME$_;
|
|
3902
|
-
InternalList.defaultProps = DEFAULT_PROPS$
|
|
3902
|
+
InternalList.defaultProps = DEFAULT_PROPS$T;
|
|
3903
3903
|
const List = Object.assign(InternalList, {
|
|
3904
3904
|
useKeyboardListNavigation
|
|
3905
3905
|
});
|
|
@@ -6344,7 +6344,7 @@ const {
|
|
|
6344
6344
|
/**
|
|
6345
6345
|
* Component default props.
|
|
6346
6346
|
*/
|
|
6347
|
-
const DEFAULT_PROPS$
|
|
6347
|
+
const DEFAULT_PROPS$S = {
|
|
6348
6348
|
elevation: 3,
|
|
6349
6349
|
placement: Placement.AUTO,
|
|
6350
6350
|
focusAnchorOnClose: true,
|
|
@@ -6361,24 +6361,24 @@ const _InnerPopover = forwardRef((props, ref) => {
|
|
|
6361
6361
|
className,
|
|
6362
6362
|
closeOnClickAway,
|
|
6363
6363
|
closeOnEscape,
|
|
6364
|
-
elevation = DEFAULT_PROPS$
|
|
6364
|
+
elevation = DEFAULT_PROPS$S.elevation,
|
|
6365
6365
|
focusElement,
|
|
6366
6366
|
hasArrow,
|
|
6367
6367
|
isOpen,
|
|
6368
6368
|
onClose,
|
|
6369
6369
|
parentElement,
|
|
6370
|
-
usePortal = DEFAULT_PROPS$
|
|
6371
|
-
focusAnchorOnClose = DEFAULT_PROPS$
|
|
6370
|
+
usePortal = DEFAULT_PROPS$S.usePortal,
|
|
6371
|
+
focusAnchorOnClose = DEFAULT_PROPS$S.focusAnchorOnClose,
|
|
6372
6372
|
withFocusTrap,
|
|
6373
6373
|
boundaryRef,
|
|
6374
6374
|
fitToAnchorWidth,
|
|
6375
6375
|
fitWithinViewportHeight,
|
|
6376
6376
|
focusTrapZoneElement,
|
|
6377
6377
|
offset,
|
|
6378
|
-
placement = DEFAULT_PROPS$
|
|
6378
|
+
placement = DEFAULT_PROPS$S.placement,
|
|
6379
6379
|
style,
|
|
6380
6380
|
theme,
|
|
6381
|
-
zIndex = DEFAULT_PROPS$
|
|
6381
|
+
zIndex = DEFAULT_PROPS$S.zIndex,
|
|
6382
6382
|
...forwardedProps
|
|
6383
6383
|
} = props;
|
|
6384
6384
|
const popoverRef = useRef(null);
|
|
@@ -6464,7 +6464,7 @@ const Popover = skipRender(
|
|
|
6464
6464
|
() => Boolean(DOCUMENT), _InnerPopover);
|
|
6465
6465
|
Popover.displayName = COMPONENT_NAME$Z;
|
|
6466
6466
|
Popover.className = CLASSNAME$Z;
|
|
6467
|
-
Popover.defaultProps = DEFAULT_PROPS$
|
|
6467
|
+
Popover.defaultProps = DEFAULT_PROPS$S;
|
|
6468
6468
|
|
|
6469
6469
|
// The error margin in px we want to have for triggering infinite scroll
|
|
6470
6470
|
const SCROLL_TRIGGER_MARGIN = 5;
|
|
@@ -6524,7 +6524,7 @@ const {
|
|
|
6524
6524
|
/**
|
|
6525
6525
|
* Component default props.
|
|
6526
6526
|
*/
|
|
6527
|
-
const DEFAULT_PROPS$
|
|
6527
|
+
const DEFAULT_PROPS$R = {
|
|
6528
6528
|
closeOnClick: true,
|
|
6529
6529
|
closeOnClickAway: true,
|
|
6530
6530
|
closeOnEscape: true,
|
|
@@ -6547,18 +6547,18 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
6547
6547
|
anchorRef,
|
|
6548
6548
|
children,
|
|
6549
6549
|
className,
|
|
6550
|
-
closeOnClick = DEFAULT_PROPS$
|
|
6551
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
6552
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
6553
|
-
fitToAnchorWidth = DEFAULT_PROPS$
|
|
6554
|
-
fitWithinViewportHeight = DEFAULT_PROPS$
|
|
6550
|
+
closeOnClick = DEFAULT_PROPS$R.closeOnClick,
|
|
6551
|
+
closeOnClickAway = DEFAULT_PROPS$R.closeOnClickAway,
|
|
6552
|
+
closeOnEscape = DEFAULT_PROPS$R.closeOnEscape,
|
|
6553
|
+
fitToAnchorWidth = DEFAULT_PROPS$R.fitToAnchorWidth,
|
|
6554
|
+
fitWithinViewportHeight = DEFAULT_PROPS$R.fitWithinViewportHeight,
|
|
6555
6555
|
isOpen,
|
|
6556
6556
|
offset,
|
|
6557
|
-
focusAnchorOnClose = DEFAULT_PROPS$
|
|
6557
|
+
focusAnchorOnClose = DEFAULT_PROPS$R.focusAnchorOnClose,
|
|
6558
6558
|
onClose,
|
|
6559
6559
|
onInfiniteScroll,
|
|
6560
|
-
placement = DEFAULT_PROPS$
|
|
6561
|
-
shouldFocusOnOpen = DEFAULT_PROPS$
|
|
6560
|
+
placement = DEFAULT_PROPS$R.placement,
|
|
6561
|
+
shouldFocusOnOpen = DEFAULT_PROPS$R.shouldFocusOnOpen,
|
|
6562
6562
|
zIndex,
|
|
6563
6563
|
...forwardedProps
|
|
6564
6564
|
} = props;
|
|
@@ -6604,7 +6604,7 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
6604
6604
|
});
|
|
6605
6605
|
Dropdown.displayName = COMPONENT_NAME$Y;
|
|
6606
6606
|
Dropdown.className = CLASSNAME$Y;
|
|
6607
|
-
Dropdown.defaultProps = DEFAULT_PROPS$
|
|
6607
|
+
Dropdown.defaultProps = DEFAULT_PROPS$R;
|
|
6608
6608
|
|
|
6609
6609
|
/**
|
|
6610
6610
|
* Component display name.
|
|
@@ -6623,7 +6623,7 @@ const {
|
|
|
6623
6623
|
/**
|
|
6624
6624
|
* Component default props.
|
|
6625
6625
|
*/
|
|
6626
|
-
const DEFAULT_PROPS$
|
|
6626
|
+
const DEFAULT_PROPS$Q = {
|
|
6627
6627
|
closeMode: 'unmount'
|
|
6628
6628
|
};
|
|
6629
6629
|
const isDragHandle = isComponent(DragHandle);
|
|
@@ -6641,7 +6641,7 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
6641
6641
|
const defaultTheme = useTheme() || Theme$1.light;
|
|
6642
6642
|
const {
|
|
6643
6643
|
className,
|
|
6644
|
-
closeMode = DEFAULT_PROPS$
|
|
6644
|
+
closeMode = DEFAULT_PROPS$Q.closeMode,
|
|
6645
6645
|
children: anyChildren,
|
|
6646
6646
|
hasBackground,
|
|
6647
6647
|
hasHeaderDivider,
|
|
@@ -6758,11 +6758,11 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
6758
6758
|
});
|
|
6759
6759
|
ExpansionPanel.displayName = COMPONENT_NAME$X;
|
|
6760
6760
|
ExpansionPanel.className = CLASSNAME$X;
|
|
6761
|
-
ExpansionPanel.defaultProps = DEFAULT_PROPS$
|
|
6761
|
+
ExpansionPanel.defaultProps = DEFAULT_PROPS$Q;
|
|
6762
6762
|
|
|
6763
6763
|
const COMPONENT_NAME$W = 'Flag';
|
|
6764
6764
|
const CLASSNAME$W = 'lumx-flag';
|
|
6765
|
-
const DEFAULT_PROPS$
|
|
6765
|
+
const DEFAULT_PROPS$P = {};
|
|
6766
6766
|
const {
|
|
6767
6767
|
block: block$N,
|
|
6768
6768
|
element: element$B
|
|
@@ -6826,7 +6826,7 @@ const Flag = forwardRef((props, ref) => {
|
|
|
6826
6826
|
});
|
|
6827
6827
|
Flag.displayName = COMPONENT_NAME$W;
|
|
6828
6828
|
Flag.className = CLASSNAME$W;
|
|
6829
|
-
Flag.defaultProps = DEFAULT_PROPS$
|
|
6829
|
+
Flag.defaultProps = DEFAULT_PROPS$P;
|
|
6830
6830
|
|
|
6831
6831
|
/**
|
|
6832
6832
|
* Defines the props of the component.
|
|
@@ -6919,7 +6919,7 @@ const {
|
|
|
6919
6919
|
/**
|
|
6920
6920
|
* Component default props.
|
|
6921
6921
|
*/
|
|
6922
|
-
const DEFAULT_PROPS$
|
|
6922
|
+
const DEFAULT_PROPS$O = {
|
|
6923
6923
|
gap: Size$1.big,
|
|
6924
6924
|
orientation: Orientation$1.horizontal
|
|
6925
6925
|
};
|
|
@@ -6949,8 +6949,8 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
6949
6949
|
children,
|
|
6950
6950
|
actions,
|
|
6951
6951
|
actionsProps,
|
|
6952
|
-
gap = DEFAULT_PROPS$
|
|
6953
|
-
orientation = DEFAULT_PROPS$
|
|
6952
|
+
gap = DEFAULT_PROPS$O.gap,
|
|
6953
|
+
orientation = DEFAULT_PROPS$O.orientation,
|
|
6954
6954
|
contentProps,
|
|
6955
6955
|
...forwardedProps
|
|
6956
6956
|
} = props;
|
|
@@ -7004,7 +7004,7 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
7004
7004
|
});
|
|
7005
7005
|
BaseGenericBlock.displayName = COMPONENT_NAME$U;
|
|
7006
7006
|
BaseGenericBlock.className = CLASSNAME$U;
|
|
7007
|
-
BaseGenericBlock.defaultProps = DEFAULT_PROPS$
|
|
7007
|
+
BaseGenericBlock.defaultProps = DEFAULT_PROPS$O;
|
|
7008
7008
|
const GenericBlock = Object.assign(BaseGenericBlock, {
|
|
7009
7009
|
Figure,
|
|
7010
7010
|
Content,
|
|
@@ -7052,7 +7052,7 @@ const CLASSNAME$T = 'lumx-heading';
|
|
|
7052
7052
|
/**
|
|
7053
7053
|
* Component default props.
|
|
7054
7054
|
*/
|
|
7055
|
-
const DEFAULT_PROPS$
|
|
7055
|
+
const DEFAULT_PROPS$N = {};
|
|
7056
7056
|
|
|
7057
7057
|
/**
|
|
7058
7058
|
* Get Heading component common props
|
|
@@ -7153,7 +7153,7 @@ const {
|
|
|
7153
7153
|
/**
|
|
7154
7154
|
* Component default props.
|
|
7155
7155
|
*/
|
|
7156
|
-
const DEFAULT_PROPS$
|
|
7156
|
+
const DEFAULT_PROPS$M = {};
|
|
7157
7157
|
|
|
7158
7158
|
/**
|
|
7159
7159
|
* Text component common props
|
|
@@ -7240,7 +7240,7 @@ const Text = forwardRef((props, ref) => {
|
|
|
7240
7240
|
});
|
|
7241
7241
|
Text.displayName = COMPONENT_NAME$S;
|
|
7242
7242
|
Text.className = CLASSNAME$S;
|
|
7243
|
-
Text.defaultProps = DEFAULT_PROPS$
|
|
7243
|
+
Text.defaultProps = DEFAULT_PROPS$M;
|
|
7244
7244
|
|
|
7245
7245
|
const HeadingLevelContext = /*#__PURE__*/createContext(defaultContext);
|
|
7246
7246
|
|
|
@@ -7277,7 +7277,7 @@ const Heading = forwardRef((props, ref) => {
|
|
|
7277
7277
|
});
|
|
7278
7278
|
Heading.displayName = COMPONENT_NAME$T;
|
|
7279
7279
|
Heading.className = CLASSNAME$T;
|
|
7280
|
-
Heading.defaultProps = DEFAULT_PROPS$
|
|
7280
|
+
Heading.defaultProps = DEFAULT_PROPS$N;
|
|
7281
7281
|
|
|
7282
7282
|
/**
|
|
7283
7283
|
* Computes the next heading level based on the optional prop level or the parent context level.
|
|
@@ -7328,7 +7328,7 @@ const {
|
|
|
7328
7328
|
/**
|
|
7329
7329
|
* Component default props.
|
|
7330
7330
|
*/
|
|
7331
|
-
const DEFAULT_PROPS$
|
|
7331
|
+
const DEFAULT_PROPS$L = {
|
|
7332
7332
|
orientation: Orientation$1.horizontal,
|
|
7333
7333
|
wrap: 'nowrap'
|
|
7334
7334
|
};
|
|
@@ -7346,9 +7346,9 @@ const Grid = forwardRef((props, ref) => {
|
|
|
7346
7346
|
className,
|
|
7347
7347
|
gutter,
|
|
7348
7348
|
hAlign,
|
|
7349
|
-
orientation = DEFAULT_PROPS$
|
|
7349
|
+
orientation = DEFAULT_PROPS$L.orientation,
|
|
7350
7350
|
vAlign,
|
|
7351
|
-
wrap = DEFAULT_PROPS$
|
|
7351
|
+
wrap = DEFAULT_PROPS$L.wrap,
|
|
7352
7352
|
...forwardedProps
|
|
7353
7353
|
} = props;
|
|
7354
7354
|
return /*#__PURE__*/jsx("div", {
|
|
@@ -7366,7 +7366,7 @@ const Grid = forwardRef((props, ref) => {
|
|
|
7366
7366
|
});
|
|
7367
7367
|
Grid.displayName = COMPONENT_NAME$R;
|
|
7368
7368
|
Grid.className = CLASSNAME$R;
|
|
7369
|
-
Grid.defaultProps = DEFAULT_PROPS$
|
|
7369
|
+
Grid.defaultProps = DEFAULT_PROPS$L;
|
|
7370
7370
|
|
|
7371
7371
|
/**
|
|
7372
7372
|
* Component display name.
|
|
@@ -7424,7 +7424,7 @@ const CLASSNAME$P = 'lumx-grid-column';
|
|
|
7424
7424
|
/**
|
|
7425
7425
|
* Component default props.
|
|
7426
7426
|
*/
|
|
7427
|
-
const DEFAULT_PROPS$
|
|
7427
|
+
const DEFAULT_PROPS$K = {};
|
|
7428
7428
|
|
|
7429
7429
|
/**
|
|
7430
7430
|
* The GridColumn is a layout component that can display children in a grid
|
|
@@ -7461,7 +7461,7 @@ const GridColumn = forwardRef((props, ref) => {
|
|
|
7461
7461
|
});
|
|
7462
7462
|
GridColumn.displayName = COMPONENT_NAME$P;
|
|
7463
7463
|
GridColumn.className = CLASSNAME$P;
|
|
7464
|
-
GridColumn.defaultProps = DEFAULT_PROPS$
|
|
7464
|
+
GridColumn.defaultProps = DEFAULT_PROPS$K;
|
|
7465
7465
|
|
|
7466
7466
|
/**
|
|
7467
7467
|
* Icon component.
|
|
@@ -7579,7 +7579,7 @@ const {
|
|
|
7579
7579
|
/**
|
|
7580
7580
|
* Component default props.
|
|
7581
7581
|
*/
|
|
7582
|
-
const DEFAULT_PROPS$
|
|
7582
|
+
const DEFAULT_PROPS$J = {
|
|
7583
7583
|
captionPosition: ImageBlockCaptionPosition.below,
|
|
7584
7584
|
align: Alignment.left
|
|
7585
7585
|
};
|
|
@@ -7595,9 +7595,9 @@ const ImageBlock = forwardRef((props, ref) => {
|
|
|
7595
7595
|
const defaultTheme = useTheme() || Theme$1.light;
|
|
7596
7596
|
const {
|
|
7597
7597
|
actions,
|
|
7598
|
-
align = DEFAULT_PROPS$
|
|
7598
|
+
align = DEFAULT_PROPS$J.align,
|
|
7599
7599
|
alt,
|
|
7600
|
-
captionPosition = DEFAULT_PROPS$
|
|
7600
|
+
captionPosition = DEFAULT_PROPS$J.captionPosition,
|
|
7601
7601
|
captionStyle,
|
|
7602
7602
|
className,
|
|
7603
7603
|
description,
|
|
@@ -7651,7 +7651,7 @@ const ImageBlock = forwardRef((props, ref) => {
|
|
|
7651
7651
|
});
|
|
7652
7652
|
ImageBlock.displayName = COMPONENT_NAME$O;
|
|
7653
7653
|
ImageBlock.className = CLASSNAME$O;
|
|
7654
|
-
ImageBlock.defaultProps = DEFAULT_PROPS$
|
|
7654
|
+
ImageBlock.defaultProps = DEFAULT_PROPS$J;
|
|
7655
7655
|
|
|
7656
7656
|
/**
|
|
7657
7657
|
* Component display name.
|
|
@@ -8411,7 +8411,7 @@ const {
|
|
|
8411
8411
|
/**
|
|
8412
8412
|
* Component default props.
|
|
8413
8413
|
*/
|
|
8414
|
-
const DEFAULT_PROPS$
|
|
8414
|
+
const DEFAULT_PROPS$I = {};
|
|
8415
8415
|
|
|
8416
8416
|
/**
|
|
8417
8417
|
* InlineList component.
|
|
@@ -8464,7 +8464,7 @@ const InlineList = forwardRef((props, ref) => {
|
|
|
8464
8464
|
});
|
|
8465
8465
|
InlineList.displayName = COMPONENT_NAME$M;
|
|
8466
8466
|
InlineList.className = CLASSNAME$M;
|
|
8467
|
-
InlineList.defaultProps = DEFAULT_PROPS$
|
|
8467
|
+
InlineList.defaultProps = DEFAULT_PROPS$I;
|
|
8468
8468
|
|
|
8469
8469
|
/**
|
|
8470
8470
|
* InputHelper component.
|
|
@@ -8738,7 +8738,7 @@ const {
|
|
|
8738
8738
|
/**
|
|
8739
8739
|
* Component default props.
|
|
8740
8740
|
*/
|
|
8741
|
-
const DEFAULT_PROPS$
|
|
8741
|
+
const DEFAULT_PROPS$H = {
|
|
8742
8742
|
size: Size$1.regular,
|
|
8743
8743
|
titleHeading: 'h2'
|
|
8744
8744
|
};
|
|
@@ -8758,11 +8758,11 @@ const LinkPreview = forwardRef((props, ref) => {
|
|
|
8758
8758
|
link,
|
|
8759
8759
|
linkAs,
|
|
8760
8760
|
linkProps,
|
|
8761
|
-
size = DEFAULT_PROPS$
|
|
8761
|
+
size = DEFAULT_PROPS$H.size,
|
|
8762
8762
|
theme = defaultTheme,
|
|
8763
8763
|
thumbnailProps,
|
|
8764
8764
|
title,
|
|
8765
|
-
titleHeading = DEFAULT_PROPS$
|
|
8765
|
+
titleHeading = DEFAULT_PROPS$H.titleHeading,
|
|
8766
8766
|
...forwardedProps
|
|
8767
8767
|
} = props;
|
|
8768
8768
|
// Use title heading as title wrapper (see DEFAULT_PROPS for the default value).
|
|
@@ -8830,7 +8830,7 @@ const LinkPreview = forwardRef((props, ref) => {
|
|
|
8830
8830
|
});
|
|
8831
8831
|
LinkPreview.displayName = COMPONENT_NAME$J;
|
|
8832
8832
|
LinkPreview.className = CLASSNAME$J;
|
|
8833
|
-
LinkPreview.defaultProps = DEFAULT_PROPS$
|
|
8833
|
+
LinkPreview.defaultProps = DEFAULT_PROPS$H;
|
|
8834
8834
|
|
|
8835
8835
|
/**
|
|
8836
8836
|
* Render link with default <a> HTML component or a custom one provided by `linkAs`.
|
|
@@ -8863,7 +8863,7 @@ const {
|
|
|
8863
8863
|
/**
|
|
8864
8864
|
* Component default props.
|
|
8865
8865
|
*/
|
|
8866
|
-
const DEFAULT_PROPS$
|
|
8866
|
+
const DEFAULT_PROPS$G = {
|
|
8867
8867
|
size: Size$1.regular
|
|
8868
8868
|
};
|
|
8869
8869
|
|
|
@@ -8902,7 +8902,7 @@ const ListItem = forwardRef((props, ref) => {
|
|
|
8902
8902
|
linkProps = {},
|
|
8903
8903
|
linkRef,
|
|
8904
8904
|
onItemSelected,
|
|
8905
|
-
size = DEFAULT_PROPS$
|
|
8905
|
+
size = DEFAULT_PROPS$G.size,
|
|
8906
8906
|
...forwardedProps
|
|
8907
8907
|
} = otherProps;
|
|
8908
8908
|
const role = linkAs || linkProps.href ? 'link' : 'button';
|
|
@@ -8959,7 +8959,7 @@ const ListItem = forwardRef((props, ref) => {
|
|
|
8959
8959
|
});
|
|
8960
8960
|
ListItem.displayName = COMPONENT_NAME$I;
|
|
8961
8961
|
ListItem.className = CLASSNAME$I;
|
|
8962
|
-
ListItem.defaultProps = DEFAULT_PROPS$
|
|
8962
|
+
ListItem.defaultProps = DEFAULT_PROPS$G;
|
|
8963
8963
|
|
|
8964
8964
|
/**
|
|
8965
8965
|
* Component display name.
|
|
@@ -9147,7 +9147,7 @@ const {
|
|
|
9147
9147
|
/**
|
|
9148
9148
|
* Component default props.
|
|
9149
9149
|
*/
|
|
9150
|
-
const DEFAULT_PROPS$
|
|
9150
|
+
const DEFAULT_PROPS$F = {};
|
|
9151
9151
|
|
|
9152
9152
|
/**
|
|
9153
9153
|
* Mosaic component.
|
|
@@ -9214,7 +9214,7 @@ const Mosaic = forwardRef((props, ref) => {
|
|
|
9214
9214
|
});
|
|
9215
9215
|
Mosaic.displayName = COMPONENT_NAME$E;
|
|
9216
9216
|
Mosaic.className = CLASSNAME$E;
|
|
9217
|
-
Mosaic.defaultProps = DEFAULT_PROPS$
|
|
9217
|
+
Mosaic.defaultProps = DEFAULT_PROPS$F;
|
|
9218
9218
|
|
|
9219
9219
|
const NavigationContext = /*#__PURE__*/createContext({
|
|
9220
9220
|
orientation: Orientation$1.vertical
|
|
@@ -9403,7 +9403,7 @@ const {
|
|
|
9403
9403
|
/**
|
|
9404
9404
|
* Component default props
|
|
9405
9405
|
*/
|
|
9406
|
-
const DEFAULT_PROPS$
|
|
9406
|
+
const DEFAULT_PROPS$E = {
|
|
9407
9407
|
orientation: Orientation$1.vertical
|
|
9408
9408
|
};
|
|
9409
9409
|
const Navigation = forwardRef((props, ref) => {
|
|
@@ -9412,7 +9412,7 @@ const Navigation = forwardRef((props, ref) => {
|
|
|
9412
9412
|
children,
|
|
9413
9413
|
className,
|
|
9414
9414
|
theme = defaultTheme,
|
|
9415
|
-
orientation = DEFAULT_PROPS$
|
|
9415
|
+
orientation = DEFAULT_PROPS$E.orientation,
|
|
9416
9416
|
...forwardedProps
|
|
9417
9417
|
} = props;
|
|
9418
9418
|
return /*#__PURE__*/jsx(ThemeProvider, {
|
|
@@ -9438,7 +9438,7 @@ const Navigation = forwardRef((props, ref) => {
|
|
|
9438
9438
|
});
|
|
9439
9439
|
Navigation.displayName = COMPONENT_NAME$C;
|
|
9440
9440
|
Navigation.className = CLASSNAME$C;
|
|
9441
|
-
Navigation.defaultProps = DEFAULT_PROPS$
|
|
9441
|
+
Navigation.defaultProps = DEFAULT_PROPS$E;
|
|
9442
9442
|
|
|
9443
9443
|
// Sub components
|
|
9444
9444
|
Navigation.Section = NavigationSection;
|
|
@@ -9483,7 +9483,7 @@ const {
|
|
|
9483
9483
|
/**
|
|
9484
9484
|
* Component default props.
|
|
9485
9485
|
*/
|
|
9486
|
-
const DEFAULT_PROPS$
|
|
9486
|
+
const DEFAULT_PROPS$D = {
|
|
9487
9487
|
zIndex: 9999,
|
|
9488
9488
|
usePortal: true
|
|
9489
9489
|
};
|
|
@@ -9507,8 +9507,8 @@ const Notification = forwardRef((props, ref) => {
|
|
|
9507
9507
|
onClick,
|
|
9508
9508
|
theme = defaultTheme,
|
|
9509
9509
|
type,
|
|
9510
|
-
zIndex = DEFAULT_PROPS$
|
|
9511
|
-
usePortal = DEFAULT_PROPS$
|
|
9510
|
+
zIndex = DEFAULT_PROPS$D.zIndex,
|
|
9511
|
+
usePortal = DEFAULT_PROPS$D.usePortal,
|
|
9512
9512
|
style,
|
|
9513
9513
|
...forwardedProps
|
|
9514
9514
|
} = props;
|
|
@@ -9573,7 +9573,7 @@ const Notification = forwardRef((props, ref) => {
|
|
|
9573
9573
|
});
|
|
9574
9574
|
Notification.displayName = COMPONENT_NAME$B;
|
|
9575
9575
|
Notification.className = CLASSNAME$B;
|
|
9576
|
-
Notification.defaultProps = DEFAULT_PROPS$
|
|
9576
|
+
Notification.defaultProps = DEFAULT_PROPS$D;
|
|
9577
9577
|
|
|
9578
9578
|
/**
|
|
9579
9579
|
* Component display name.
|
|
@@ -9588,7 +9588,7 @@ const CLASSNAME$A = 'lumx-popover-dialog';
|
|
|
9588
9588
|
/**
|
|
9589
9589
|
* Component default props.
|
|
9590
9590
|
*/
|
|
9591
|
-
const DEFAULT_PROPS$
|
|
9591
|
+
const DEFAULT_PROPS$C = {};
|
|
9592
9592
|
|
|
9593
9593
|
/**
|
|
9594
9594
|
* PopoverDialog component.
|
|
@@ -9631,7 +9631,7 @@ const PopoverDialog = forwardRef((props, ref) => {
|
|
|
9631
9631
|
});
|
|
9632
9632
|
PopoverDialog.displayName = COMPONENT_NAME$A;
|
|
9633
9633
|
PopoverDialog.className = CLASSNAME$A;
|
|
9634
|
-
PopoverDialog.defaultProps = DEFAULT_PROPS$
|
|
9634
|
+
PopoverDialog.defaultProps = DEFAULT_PROPS$C;
|
|
9635
9635
|
|
|
9636
9636
|
/**
|
|
9637
9637
|
* Component display name.
|
|
@@ -9650,7 +9650,7 @@ const {
|
|
|
9650
9650
|
/**
|
|
9651
9651
|
* Component default props.
|
|
9652
9652
|
*/
|
|
9653
|
-
const DEFAULT_PROPS$
|
|
9653
|
+
const DEFAULT_PROPS$B = {
|
|
9654
9654
|
orientation: Orientation$1.horizontal
|
|
9655
9655
|
};
|
|
9656
9656
|
|
|
@@ -9670,7 +9670,7 @@ const PostBlock = forwardRef((props, ref) => {
|
|
|
9670
9670
|
className,
|
|
9671
9671
|
meta,
|
|
9672
9672
|
onClick,
|
|
9673
|
-
orientation = DEFAULT_PROPS$
|
|
9673
|
+
orientation = DEFAULT_PROPS$B.orientation,
|
|
9674
9674
|
tags,
|
|
9675
9675
|
text,
|
|
9676
9676
|
theme = defaultTheme,
|
|
@@ -9732,7 +9732,7 @@ const PostBlock = forwardRef((props, ref) => {
|
|
|
9732
9732
|
});
|
|
9733
9733
|
PostBlock.displayName = COMPONENT_NAME$z;
|
|
9734
9734
|
PostBlock.className = CLASSNAME$z;
|
|
9735
|
-
PostBlock.defaultProps = DEFAULT_PROPS$
|
|
9735
|
+
PostBlock.defaultProps = DEFAULT_PROPS$B;
|
|
9736
9736
|
|
|
9737
9737
|
/**
|
|
9738
9738
|
* Component display name.
|
|
@@ -9751,7 +9751,7 @@ const {
|
|
|
9751
9751
|
/**
|
|
9752
9752
|
* Component default props.
|
|
9753
9753
|
*/
|
|
9754
|
-
const DEFAULT_PROPS$
|
|
9754
|
+
const DEFAULT_PROPS$A = {};
|
|
9755
9755
|
|
|
9756
9756
|
/**
|
|
9757
9757
|
* ProgressLinear component.
|
|
@@ -9782,7 +9782,7 @@ const ProgressLinear = forwardRef((props, ref) => {
|
|
|
9782
9782
|
});
|
|
9783
9783
|
ProgressLinear.displayName = COMPONENT_NAME$y;
|
|
9784
9784
|
ProgressLinear.className = CLASSNAME$y;
|
|
9785
|
-
ProgressLinear.defaultProps = DEFAULT_PROPS$
|
|
9785
|
+
ProgressLinear.defaultProps = DEFAULT_PROPS$A;
|
|
9786
9786
|
|
|
9787
9787
|
/**
|
|
9788
9788
|
* Component display name.
|
|
@@ -9801,7 +9801,7 @@ const {
|
|
|
9801
9801
|
/**
|
|
9802
9802
|
* Component default props.
|
|
9803
9803
|
*/
|
|
9804
|
-
const DEFAULT_PROPS$
|
|
9804
|
+
const DEFAULT_PROPS$z = {
|
|
9805
9805
|
size: Size$1.m,
|
|
9806
9806
|
display: 'block'
|
|
9807
9807
|
};
|
|
@@ -9818,8 +9818,8 @@ const ProgressCircular = forwardRef((props, ref) => {
|
|
|
9818
9818
|
const {
|
|
9819
9819
|
className,
|
|
9820
9820
|
theme = defaultTheme,
|
|
9821
|
-
size = DEFAULT_PROPS$
|
|
9822
|
-
display = DEFAULT_PROPS$
|
|
9821
|
+
size = DEFAULT_PROPS$z.size,
|
|
9822
|
+
display = DEFAULT_PROPS$z.display,
|
|
9823
9823
|
...forwardedProps
|
|
9824
9824
|
} = props;
|
|
9825
9825
|
const Element = display === 'block' ? 'div' : 'span';
|
|
@@ -9851,7 +9851,7 @@ const ProgressCircular = forwardRef((props, ref) => {
|
|
|
9851
9851
|
});
|
|
9852
9852
|
ProgressCircular.displayName = COMPONENT_NAME$x;
|
|
9853
9853
|
ProgressCircular.className = CLASSNAME$x;
|
|
9854
|
-
ProgressCircular.defaultProps = DEFAULT_PROPS$
|
|
9854
|
+
ProgressCircular.defaultProps = DEFAULT_PROPS$z;
|
|
9855
9855
|
|
|
9856
9856
|
const ProgressVariant = {
|
|
9857
9857
|
linear: 'linear',
|
|
@@ -9878,7 +9878,7 @@ const {
|
|
|
9878
9878
|
/**
|
|
9879
9879
|
* Component default props.
|
|
9880
9880
|
*/
|
|
9881
|
-
const DEFAULT_PROPS$
|
|
9881
|
+
const DEFAULT_PROPS$y = {
|
|
9882
9882
|
variant: ProgressVariant.circular
|
|
9883
9883
|
};
|
|
9884
9884
|
|
|
@@ -9895,7 +9895,7 @@ const Progress = forwardRef((props, ref) => {
|
|
|
9895
9895
|
const {
|
|
9896
9896
|
className,
|
|
9897
9897
|
theme = defaultTheme,
|
|
9898
|
-
variant = DEFAULT_PROPS$
|
|
9898
|
+
variant = DEFAULT_PROPS$y.variant,
|
|
9899
9899
|
...forwardedProps
|
|
9900
9900
|
} = props;
|
|
9901
9901
|
return /*#__PURE__*/jsxs("div", {
|
|
@@ -9914,7 +9914,7 @@ const Progress = forwardRef((props, ref) => {
|
|
|
9914
9914
|
});
|
|
9915
9915
|
Progress.displayName = COMPONENT_NAME$w;
|
|
9916
9916
|
Progress.className = CLASSNAME$w;
|
|
9917
|
-
Progress.defaultProps = DEFAULT_PROPS$
|
|
9917
|
+
Progress.defaultProps = DEFAULT_PROPS$y;
|
|
9918
9918
|
|
|
9919
9919
|
const INIT_STATE = {
|
|
9920
9920
|
isLazy: true,
|
|
@@ -10041,7 +10041,7 @@ const useTabProviderContextState = () => {
|
|
|
10041
10041
|
return context?.[0];
|
|
10042
10042
|
};
|
|
10043
10043
|
|
|
10044
|
-
const DEFAULT_PROPS$
|
|
10044
|
+
const DEFAULT_PROPS$x = {
|
|
10045
10045
|
isLazy: INIT_STATE.isLazy,
|
|
10046
10046
|
shouldActivateOnFocus: INIT_STATE.shouldActivateOnFocus
|
|
10047
10047
|
};
|
|
@@ -10070,7 +10070,7 @@ const ProgressTrackerProvider = props => {
|
|
|
10070
10070
|
dispatch({
|
|
10071
10071
|
type: 'update',
|
|
10072
10072
|
payload: {
|
|
10073
|
-
...DEFAULT_PROPS$
|
|
10073
|
+
...DEFAULT_PROPS$x,
|
|
10074
10074
|
...propState,
|
|
10075
10075
|
activeTabIndex: propState.activeStepIndex || INIT_STATE.activeTabIndex
|
|
10076
10076
|
}
|
|
@@ -10093,7 +10093,7 @@ const ProgressTrackerProvider = props => {
|
|
|
10093
10093
|
children: children
|
|
10094
10094
|
});
|
|
10095
10095
|
};
|
|
10096
|
-
ProgressTrackerProvider.defaultProps = DEFAULT_PROPS$
|
|
10096
|
+
ProgressTrackerProvider.defaultProps = DEFAULT_PROPS$x;
|
|
10097
10097
|
|
|
10098
10098
|
const useRovingTabIndex = ({
|
|
10099
10099
|
parentRef,
|
|
@@ -10185,7 +10185,7 @@ const {
|
|
|
10185
10185
|
/**
|
|
10186
10186
|
* Component default props.
|
|
10187
10187
|
*/
|
|
10188
|
-
const DEFAULT_PROPS$
|
|
10188
|
+
const DEFAULT_PROPS$w = {};
|
|
10189
10189
|
|
|
10190
10190
|
/**
|
|
10191
10191
|
* ProgressTracker component.
|
|
@@ -10241,7 +10241,7 @@ const ProgressTracker = forwardRef((props, ref) => {
|
|
|
10241
10241
|
});
|
|
10242
10242
|
ProgressTracker.displayName = COMPONENT_NAME$v;
|
|
10243
10243
|
ProgressTracker.className = CLASSNAME$v;
|
|
10244
|
-
ProgressTracker.defaultProps = DEFAULT_PROPS$
|
|
10244
|
+
ProgressTracker.defaultProps = DEFAULT_PROPS$w;
|
|
10245
10245
|
|
|
10246
10246
|
/**
|
|
10247
10247
|
* Component display name.
|
|
@@ -10260,7 +10260,7 @@ const {
|
|
|
10260
10260
|
/**
|
|
10261
10261
|
* Component default props.
|
|
10262
10262
|
*/
|
|
10263
|
-
const DEFAULT_PROPS$
|
|
10263
|
+
const DEFAULT_PROPS$v = {};
|
|
10264
10264
|
|
|
10265
10265
|
/**
|
|
10266
10266
|
* ProgressTrackerStep component.
|
|
@@ -10355,7 +10355,7 @@ const ProgressTrackerStep = forwardRef((props, ref) => {
|
|
|
10355
10355
|
});
|
|
10356
10356
|
ProgressTrackerStep.displayName = COMPONENT_NAME$u;
|
|
10357
10357
|
ProgressTrackerStep.className = CLASSNAME$u;
|
|
10358
|
-
ProgressTrackerStep.defaultProps = DEFAULT_PROPS$
|
|
10358
|
+
ProgressTrackerStep.defaultProps = DEFAULT_PROPS$v;
|
|
10359
10359
|
|
|
10360
10360
|
/**
|
|
10361
10361
|
* Component display name.
|
|
@@ -10373,7 +10373,7 @@ const {
|
|
|
10373
10373
|
/**
|
|
10374
10374
|
* Component default props.
|
|
10375
10375
|
*/
|
|
10376
|
-
const DEFAULT_PROPS$
|
|
10376
|
+
const DEFAULT_PROPS$u = {};
|
|
10377
10377
|
|
|
10378
10378
|
/**
|
|
10379
10379
|
* ProgressTrackerStepPanel component.
|
|
@@ -10409,7 +10409,7 @@ const ProgressTrackerStepPanel = forwardRef((props, ref) => {
|
|
|
10409
10409
|
});
|
|
10410
10410
|
ProgressTrackerStepPanel.displayName = COMPONENT_NAME$t;
|
|
10411
10411
|
ProgressTrackerStepPanel.className = CLASSNAME$t;
|
|
10412
|
-
ProgressTrackerStepPanel.defaultProps = DEFAULT_PROPS$
|
|
10412
|
+
ProgressTrackerStepPanel.defaultProps = DEFAULT_PROPS$u;
|
|
10413
10413
|
|
|
10414
10414
|
/**
|
|
10415
10415
|
* Component display name.
|
|
@@ -10423,27 +10423,15 @@ const CLASSNAME$s = 'lumx-radio-button';
|
|
|
10423
10423
|
const {
|
|
10424
10424
|
block: block$p,
|
|
10425
10425
|
element: element$h
|
|
10426
|
-
} =
|
|
10427
|
-
|
|
10428
|
-
/**
|
|
10429
|
-
* Component default props.
|
|
10430
|
-
*/
|
|
10431
|
-
const DEFAULT_PROPS$r = {};
|
|
10426
|
+
} = bem(CLASSNAME$s);
|
|
10432
10427
|
|
|
10433
10428
|
/**
|
|
10434
10429
|
* RadioButton component.
|
|
10435
10430
|
*
|
|
10436
10431
|
* @param props Component props.
|
|
10437
|
-
* @
|
|
10438
|
-
* @return React element.
|
|
10432
|
+
* @return JSX element.
|
|
10439
10433
|
*/
|
|
10440
|
-
const RadioButton =
|
|
10441
|
-
const {
|
|
10442
|
-
isAnyDisabled,
|
|
10443
|
-
disabledStateProps,
|
|
10444
|
-
otherProps
|
|
10445
|
-
} = useDisableStateProps(props);
|
|
10446
|
-
const defaultTheme = useTheme() || Theme$1.light;
|
|
10434
|
+
const RadioButton$1 = props => {
|
|
10447
10435
|
const {
|
|
10448
10436
|
checked,
|
|
10449
10437
|
className,
|
|
@@ -10453,14 +10441,15 @@ const RadioButton = forwardRef((props, ref) => {
|
|
|
10453
10441
|
isChecked = checked,
|
|
10454
10442
|
label,
|
|
10455
10443
|
name,
|
|
10444
|
+
ref,
|
|
10456
10445
|
onChange,
|
|
10457
|
-
theme
|
|
10446
|
+
theme,
|
|
10458
10447
|
value,
|
|
10459
|
-
inputProps,
|
|
10448
|
+
inputProps = {},
|
|
10449
|
+
isDisabled,
|
|
10450
|
+
inputId,
|
|
10460
10451
|
...forwardedProps
|
|
10461
|
-
} =
|
|
10462
|
-
const generatedInputId = useId();
|
|
10463
|
-
const inputId = id || generatedInputId;
|
|
10452
|
+
} = props;
|
|
10464
10453
|
const handleChange = event => {
|
|
10465
10454
|
if (onChange) {
|
|
10466
10455
|
onChange(value, name, event);
|
|
@@ -10469,9 +10458,9 @@ const RadioButton = forwardRef((props, ref) => {
|
|
|
10469
10458
|
return /*#__PURE__*/jsxs("div", {
|
|
10470
10459
|
ref: ref,
|
|
10471
10460
|
...forwardedProps,
|
|
10472
|
-
className:
|
|
10461
|
+
className: classnames(className, block$p({
|
|
10473
10462
|
'is-checked': isChecked,
|
|
10474
|
-
'is-disabled':
|
|
10463
|
+
'is-disabled': isDisabled,
|
|
10475
10464
|
'is-unchecked': !isChecked,
|
|
10476
10465
|
[`theme-${theme}`]: Boolean(theme)
|
|
10477
10466
|
})),
|
|
@@ -10480,15 +10469,16 @@ const RadioButton = forwardRef((props, ref) => {
|
|
|
10480
10469
|
children: [/*#__PURE__*/jsx("input", {
|
|
10481
10470
|
ref: inputRef,
|
|
10482
10471
|
className: element$h('input-native'),
|
|
10483
|
-
...disabledStateProps,
|
|
10484
10472
|
id: inputId,
|
|
10485
10473
|
type: "radio",
|
|
10486
10474
|
name: name,
|
|
10487
10475
|
value: value,
|
|
10488
10476
|
checked: isChecked,
|
|
10489
10477
|
onChange: handleChange,
|
|
10490
|
-
readOnly: inputProps?.readOnly || isAnyDisabled,
|
|
10491
10478
|
"aria-describedby": helper ? `${inputId}-helper` : undefined,
|
|
10479
|
+
...(inputProps?.readOnly ? {
|
|
10480
|
+
readOnly: inputProps.readOnly
|
|
10481
|
+
} : {}),
|
|
10492
10482
|
...inputProps
|
|
10493
10483
|
}), /*#__PURE__*/jsxs("div", {
|
|
10494
10484
|
className: element$h('input-placeholder'),
|
|
@@ -10500,23 +10490,85 @@ const RadioButton = forwardRef((props, ref) => {
|
|
|
10500
10490
|
})]
|
|
10501
10491
|
}), /*#__PURE__*/jsxs("div", {
|
|
10502
10492
|
className: element$h('content'),
|
|
10503
|
-
children: [label &&
|
|
10493
|
+
children: [label && InputLabel$1({
|
|
10504
10494
|
htmlFor: inputId,
|
|
10505
|
-
theme: theme,
|
|
10506
10495
|
className: element$h('label'),
|
|
10496
|
+
theme,
|
|
10507
10497
|
children: label
|
|
10508
|
-
}), helper &&
|
|
10498
|
+
}), helper && InputHelper$1({
|
|
10509
10499
|
id: `${inputId}-helper`,
|
|
10510
|
-
theme: theme,
|
|
10511
10500
|
className: element$h('helper'),
|
|
10501
|
+
theme,
|
|
10512
10502
|
children: helper
|
|
10513
10503
|
})]
|
|
10514
10504
|
})]
|
|
10515
10505
|
});
|
|
10506
|
+
};
|
|
10507
|
+
|
|
10508
|
+
/**
|
|
10509
|
+
* Defines the props of the component.
|
|
10510
|
+
*/
|
|
10511
|
+
|
|
10512
|
+
/**
|
|
10513
|
+
* Component default props.
|
|
10514
|
+
*/
|
|
10515
|
+
const DEFAULT_PROPS$t = {};
|
|
10516
|
+
|
|
10517
|
+
/**
|
|
10518
|
+
* RadioButton component.
|
|
10519
|
+
*
|
|
10520
|
+
* @param props Component props.
|
|
10521
|
+
* @param ref Component ref.
|
|
10522
|
+
* @return React element.
|
|
10523
|
+
*/
|
|
10524
|
+
const RadioButton = forwardRef((props, ref) => {
|
|
10525
|
+
const {
|
|
10526
|
+
isAnyDisabled,
|
|
10527
|
+
disabledStateProps,
|
|
10528
|
+
otherProps
|
|
10529
|
+
} = useDisableStateProps(props);
|
|
10530
|
+
const defaultTheme = useTheme() || Theme$1.light;
|
|
10531
|
+
const {
|
|
10532
|
+
checked,
|
|
10533
|
+
className,
|
|
10534
|
+
helper,
|
|
10535
|
+
id,
|
|
10536
|
+
inputRef,
|
|
10537
|
+
isChecked = checked,
|
|
10538
|
+
label,
|
|
10539
|
+
name,
|
|
10540
|
+
onChange,
|
|
10541
|
+
theme = defaultTheme,
|
|
10542
|
+
value,
|
|
10543
|
+
inputProps = {},
|
|
10544
|
+
...forwardedProps
|
|
10545
|
+
} = otherProps;
|
|
10546
|
+
const generatedInputId = useId();
|
|
10547
|
+
const inputId = id || generatedInputId;
|
|
10548
|
+
return RadioButton$1({
|
|
10549
|
+
ref,
|
|
10550
|
+
className,
|
|
10551
|
+
helper,
|
|
10552
|
+
inputRef,
|
|
10553
|
+
isChecked,
|
|
10554
|
+
label,
|
|
10555
|
+
name,
|
|
10556
|
+
onChange,
|
|
10557
|
+
theme,
|
|
10558
|
+
value,
|
|
10559
|
+
inputProps: {
|
|
10560
|
+
...inputProps,
|
|
10561
|
+
...disabledStateProps,
|
|
10562
|
+
readOnly: inputProps.readOnly || disabledStateProps['aria-disabled']
|
|
10563
|
+
},
|
|
10564
|
+
...forwardedProps,
|
|
10565
|
+
isDisabled: isAnyDisabled,
|
|
10566
|
+
inputId
|
|
10567
|
+
});
|
|
10516
10568
|
});
|
|
10517
10569
|
RadioButton.displayName = COMPONENT_NAME$s;
|
|
10518
10570
|
RadioButton.className = CLASSNAME$s;
|
|
10519
|
-
RadioButton.defaultProps = DEFAULT_PROPS$
|
|
10571
|
+
RadioButton.defaultProps = DEFAULT_PROPS$t;
|
|
10520
10572
|
|
|
10521
10573
|
/**
|
|
10522
10574
|
* Component display name.
|
|
@@ -10528,25 +10580,58 @@ const COMPONENT_NAME$r = 'RadioGroup';
|
|
|
10528
10580
|
*/
|
|
10529
10581
|
const CLASSNAME$r = 'lumx-radio-group';
|
|
10530
10582
|
|
|
10583
|
+
/**
|
|
10584
|
+
* Component default props.
|
|
10585
|
+
*/
|
|
10586
|
+
const DEFAULT_PROPS$s = {};
|
|
10587
|
+
|
|
10531
10588
|
/**
|
|
10532
10589
|
* RadioGroup component.
|
|
10533
10590
|
*
|
|
10534
10591
|
* @param props Component props.
|
|
10535
|
-
* @
|
|
10536
|
-
* @return React element.
|
|
10592
|
+
* @return JSX element.
|
|
10537
10593
|
*/
|
|
10538
|
-
const RadioGroup =
|
|
10594
|
+
const RadioGroup$1 = props => {
|
|
10539
10595
|
const {
|
|
10540
10596
|
children,
|
|
10541
10597
|
className,
|
|
10598
|
+
ref,
|
|
10542
10599
|
...forwardedProps
|
|
10543
10600
|
} = props;
|
|
10544
10601
|
return /*#__PURE__*/jsx("div", {
|
|
10545
10602
|
ref: ref,
|
|
10546
10603
|
...forwardedProps,
|
|
10547
|
-
className:
|
|
10604
|
+
className: classnames(className, CLASSNAME$r),
|
|
10548
10605
|
children: children
|
|
10549
10606
|
});
|
|
10607
|
+
};
|
|
10608
|
+
RadioGroup$1.displayName = COMPONENT_NAME$r;
|
|
10609
|
+
RadioGroup$1.className = CLASSNAME$r;
|
|
10610
|
+
RadioGroup$1.defaultProps = DEFAULT_PROPS$s;
|
|
10611
|
+
|
|
10612
|
+
/**
|
|
10613
|
+
* Defines the props of the component.
|
|
10614
|
+
*/
|
|
10615
|
+
|
|
10616
|
+
/**
|
|
10617
|
+
* RadioGroup component.
|
|
10618
|
+
*
|
|
10619
|
+
* @param props Component props.
|
|
10620
|
+
* @param ref Component ref.
|
|
10621
|
+
* @return React element.
|
|
10622
|
+
*/
|
|
10623
|
+
const RadioGroup = forwardRef((props, ref) => {
|
|
10624
|
+
const {
|
|
10625
|
+
children,
|
|
10626
|
+
className,
|
|
10627
|
+
...forwardedProps
|
|
10628
|
+
} = props;
|
|
10629
|
+
return RadioGroup$1({
|
|
10630
|
+
ref,
|
|
10631
|
+
className,
|
|
10632
|
+
children,
|
|
10633
|
+
...forwardedProps
|
|
10634
|
+
});
|
|
10550
10635
|
});
|
|
10551
10636
|
RadioGroup.displayName = COMPONENT_NAME$r;
|
|
10552
10637
|
RadioGroup.className = CLASSNAME$r;
|
|
@@ -10706,7 +10791,7 @@ const {
|
|
|
10706
10791
|
} = classNames.bem(CLASSNAME$p);
|
|
10707
10792
|
|
|
10708
10793
|
/** The default value of props. */
|
|
10709
|
-
const DEFAULT_PROPS$
|
|
10794
|
+
const DEFAULT_PROPS$r = {
|
|
10710
10795
|
selectedValueRender: choice => choice,
|
|
10711
10796
|
variant: SelectVariant.input
|
|
10712
10797
|
};
|
|
@@ -10829,7 +10914,7 @@ const Select = forwardRef((props, ref) => {
|
|
|
10829
10914
|
const isEmpty$1 = isEmpty(props.value);
|
|
10830
10915
|
const hasInputClear = props.onClear && props.clearButtonProps && !isEmpty$1;
|
|
10831
10916
|
return WithSelectContext(SelectField, {
|
|
10832
|
-
...DEFAULT_PROPS$
|
|
10917
|
+
...DEFAULT_PROPS$r,
|
|
10833
10918
|
...props,
|
|
10834
10919
|
className: classNames.join(props.className, block$n({
|
|
10835
10920
|
'has-input-clear': hasInputClear,
|
|
@@ -10841,7 +10926,7 @@ const Select = forwardRef((props, ref) => {
|
|
|
10841
10926
|
});
|
|
10842
10927
|
Select.displayName = COMPONENT_NAME$q;
|
|
10843
10928
|
Select.className = CLASSNAME$p;
|
|
10844
|
-
Select.defaultProps = DEFAULT_PROPS$
|
|
10929
|
+
Select.defaultProps = DEFAULT_PROPS$r;
|
|
10845
10930
|
Select.className = CLASSNAME$p;
|
|
10846
10931
|
|
|
10847
10932
|
/** The display name of the component. */
|
|
@@ -10855,7 +10940,7 @@ const {
|
|
|
10855
10940
|
} = classNames.bem(CLASSNAME$o);
|
|
10856
10941
|
|
|
10857
10942
|
/** The default value of props. */
|
|
10858
|
-
const DEFAULT_PROPS$
|
|
10943
|
+
const DEFAULT_PROPS$q = {
|
|
10859
10944
|
selectedChipRender(choice, index, onClear, isDisabled, theme) {
|
|
10860
10945
|
const onClick = event => onClear && onClear(event, choice);
|
|
10861
10946
|
return /*#__PURE__*/jsx(Chip, {
|
|
@@ -10981,7 +11066,7 @@ const SelectMultipleField = props => {
|
|
|
10981
11066
|
*/
|
|
10982
11067
|
const SelectMultiple = forwardRef((props, ref) => {
|
|
10983
11068
|
return WithSelectContext(SelectMultipleField, {
|
|
10984
|
-
...DEFAULT_PROPS$
|
|
11069
|
+
...DEFAULT_PROPS$q,
|
|
10985
11070
|
...props,
|
|
10986
11071
|
className: classNames.join(props.className, block$m({
|
|
10987
11072
|
'has-multiple': !props.isEmpty
|
|
@@ -10992,7 +11077,7 @@ const SelectMultiple = forwardRef((props, ref) => {
|
|
|
10992
11077
|
});
|
|
10993
11078
|
SelectMultiple.displayName = COMPONENT_NAME$p;
|
|
10994
11079
|
SelectMultiple.className = CLASSNAME$o;
|
|
10995
|
-
SelectMultiple.defaultProps = DEFAULT_PROPS$
|
|
11080
|
+
SelectMultiple.defaultProps = DEFAULT_PROPS$q;
|
|
10996
11081
|
|
|
10997
11082
|
/**
|
|
10998
11083
|
* Component display name.
|
|
@@ -11047,7 +11132,7 @@ const {
|
|
|
11047
11132
|
/**
|
|
11048
11133
|
* Component default props.
|
|
11049
11134
|
*/
|
|
11050
|
-
const DEFAULT_PROPS$
|
|
11135
|
+
const DEFAULT_PROPS$p = {
|
|
11051
11136
|
emphasis: Emphasis$1.high,
|
|
11052
11137
|
closeMode: 'unmount'
|
|
11053
11138
|
};
|
|
@@ -11063,7 +11148,7 @@ const SideNavigationItem = forwardRef((props, ref) => {
|
|
|
11063
11148
|
const {
|
|
11064
11149
|
children,
|
|
11065
11150
|
className,
|
|
11066
|
-
emphasis = DEFAULT_PROPS$
|
|
11151
|
+
emphasis = DEFAULT_PROPS$p.emphasis,
|
|
11067
11152
|
icon,
|
|
11068
11153
|
isOpen,
|
|
11069
11154
|
isSelected,
|
|
@@ -11073,7 +11158,7 @@ const SideNavigationItem = forwardRef((props, ref) => {
|
|
|
11073
11158
|
onActionClick,
|
|
11074
11159
|
onClick,
|
|
11075
11160
|
toggleButtonProps,
|
|
11076
|
-
closeMode = DEFAULT_PROPS$
|
|
11161
|
+
closeMode = DEFAULT_PROPS$p.closeMode,
|
|
11077
11162
|
...forwardedProps
|
|
11078
11163
|
} = props;
|
|
11079
11164
|
const content = children && Children.toArray(children).filter(isComponent(SideNavigationItem));
|
|
@@ -11144,9 +11229,9 @@ const SideNavigationItem = forwardRef((props, ref) => {
|
|
|
11144
11229
|
});
|
|
11145
11230
|
SideNavigationItem.displayName = COMPONENT_NAME$n;
|
|
11146
11231
|
SideNavigationItem.className = CLASSNAME$m;
|
|
11147
|
-
SideNavigationItem.defaultProps = DEFAULT_PROPS$
|
|
11232
|
+
SideNavigationItem.defaultProps = DEFAULT_PROPS$p;
|
|
11148
11233
|
|
|
11149
|
-
const DEFAULT_PROPS$
|
|
11234
|
+
const DEFAULT_PROPS$o = {};
|
|
11150
11235
|
|
|
11151
11236
|
/**
|
|
11152
11237
|
* Component display name.
|
|
@@ -11188,7 +11273,7 @@ const SkeletonCircle = forwardRef((props, ref) => {
|
|
|
11188
11273
|
});
|
|
11189
11274
|
});
|
|
11190
11275
|
SkeletonCircle.displayName = COMPONENT_NAME$m;
|
|
11191
|
-
SkeletonCircle.defaultProps = DEFAULT_PROPS$
|
|
11276
|
+
SkeletonCircle.defaultProps = DEFAULT_PROPS$o;
|
|
11192
11277
|
SkeletonCircle.className = CLASSNAME$l;
|
|
11193
11278
|
|
|
11194
11279
|
const SkeletonRectangleVariant = {
|
|
@@ -11201,7 +11286,7 @@ const SkeletonRectangleVariant = {
|
|
|
11201
11286
|
* Defines the props of the component.
|
|
11202
11287
|
*/
|
|
11203
11288
|
|
|
11204
|
-
const DEFAULT_PROPS$
|
|
11289
|
+
const DEFAULT_PROPS$n = {
|
|
11205
11290
|
variant: SkeletonRectangleVariant.squared
|
|
11206
11291
|
};
|
|
11207
11292
|
|
|
@@ -11233,7 +11318,7 @@ const SkeletonRectangle = forwardRef((props, ref) => {
|
|
|
11233
11318
|
className,
|
|
11234
11319
|
height,
|
|
11235
11320
|
theme = defaultTheme,
|
|
11236
|
-
variant = DEFAULT_PROPS$
|
|
11321
|
+
variant = DEFAULT_PROPS$n.variant,
|
|
11237
11322
|
width,
|
|
11238
11323
|
color,
|
|
11239
11324
|
...forwardedProps
|
|
@@ -11256,9 +11341,9 @@ const SkeletonRectangle = forwardRef((props, ref) => {
|
|
|
11256
11341
|
});
|
|
11257
11342
|
SkeletonRectangle.displayName = COMPONENT_NAME$l;
|
|
11258
11343
|
SkeletonRectangle.className = CLASSNAME$k;
|
|
11259
|
-
SkeletonRectangle.defaultProps = DEFAULT_PROPS$
|
|
11344
|
+
SkeletonRectangle.defaultProps = DEFAULT_PROPS$n;
|
|
11260
11345
|
|
|
11261
|
-
const DEFAULT_PROPS$
|
|
11346
|
+
const DEFAULT_PROPS$m = {};
|
|
11262
11347
|
|
|
11263
11348
|
/**
|
|
11264
11349
|
* Component display name.
|
|
@@ -11309,7 +11394,7 @@ const SkeletonTypography = forwardRef((props, ref) => {
|
|
|
11309
11394
|
});
|
|
11310
11395
|
});
|
|
11311
11396
|
SkeletonTypography.displayName = COMPONENT_NAME$k;
|
|
11312
|
-
SkeletonTypography.defaultProps = DEFAULT_PROPS$
|
|
11397
|
+
SkeletonTypography.defaultProps = DEFAULT_PROPS$m;
|
|
11313
11398
|
SkeletonTypography.className = CLASSNAME$j;
|
|
11314
11399
|
|
|
11315
11400
|
const useEnhancedEffect = typeof window !== 'undefined' ? React__default.useLayoutEffect : React__default.useEffect;
|
|
@@ -11364,7 +11449,7 @@ const {
|
|
|
11364
11449
|
/**
|
|
11365
11450
|
* Component default props.
|
|
11366
11451
|
*/
|
|
11367
|
-
const DEFAULT_PROPS$
|
|
11452
|
+
const DEFAULT_PROPS$l = {
|
|
11368
11453
|
precision: 0,
|
|
11369
11454
|
steps: 0
|
|
11370
11455
|
};
|
|
@@ -11415,8 +11500,8 @@ const Slider = forwardRef((props, ref) => {
|
|
|
11415
11500
|
name,
|
|
11416
11501
|
onChange,
|
|
11417
11502
|
onMouseDown,
|
|
11418
|
-
precision = DEFAULT_PROPS$
|
|
11419
|
-
steps = DEFAULT_PROPS$
|
|
11503
|
+
precision = DEFAULT_PROPS$l.precision,
|
|
11504
|
+
steps = DEFAULT_PROPS$l.steps,
|
|
11420
11505
|
theme = defaultTheme,
|
|
11421
11506
|
value,
|
|
11422
11507
|
...forwardedProps
|
|
@@ -11619,7 +11704,7 @@ const Slider = forwardRef((props, ref) => {
|
|
|
11619
11704
|
});
|
|
11620
11705
|
Slider.displayName = COMPONENT_NAME$j;
|
|
11621
11706
|
Slider.className = CLASSNAME$i;
|
|
11622
|
-
Slider.defaultProps = DEFAULT_PROPS$
|
|
11707
|
+
Slider.defaultProps = DEFAULT_PROPS$l;
|
|
11623
11708
|
|
|
11624
11709
|
/**
|
|
11625
11710
|
* Making setInterval Declarative with React Hooks.
|
|
@@ -11997,7 +12082,7 @@ SlideshowItemGroup.className = CLASSNAME$h;
|
|
|
11997
12082
|
/**
|
|
11998
12083
|
* Component default props.
|
|
11999
12084
|
*/
|
|
12000
|
-
const DEFAULT_PROPS$
|
|
12085
|
+
const DEFAULT_PROPS$k = {
|
|
12001
12086
|
...DEFAULT_OPTIONS,
|
|
12002
12087
|
slideMode: SlideMode.transformTranslate
|
|
12003
12088
|
};
|
|
@@ -12013,19 +12098,19 @@ const Slideshow = forwardRef((props, ref) => {
|
|
|
12013
12098
|
const defaultTheme = useTheme() || Theme$1.light;
|
|
12014
12099
|
const {
|
|
12015
12100
|
activeIndex,
|
|
12016
|
-
autoPlay = DEFAULT_PROPS$
|
|
12101
|
+
autoPlay = DEFAULT_PROPS$k.autoPlay,
|
|
12017
12102
|
children,
|
|
12018
12103
|
className,
|
|
12019
12104
|
fillHeight,
|
|
12020
12105
|
groupBy = DEFAULT_OPTIONS.groupBy,
|
|
12021
|
-
interval = DEFAULT_PROPS$
|
|
12106
|
+
interval = DEFAULT_PROPS$k.interval,
|
|
12022
12107
|
onChange,
|
|
12023
12108
|
slideshowControlsProps,
|
|
12024
12109
|
theme = defaultTheme,
|
|
12025
12110
|
id,
|
|
12026
12111
|
slidesId,
|
|
12027
12112
|
slideGroupLabel,
|
|
12028
|
-
slideMode = DEFAULT_PROPS$
|
|
12113
|
+
slideMode = DEFAULT_PROPS$k.slideMode,
|
|
12029
12114
|
...forwardedProps
|
|
12030
12115
|
} = props;
|
|
12031
12116
|
// Number of slideshow items.
|
|
@@ -12047,7 +12132,7 @@ const Slideshow = forwardRef((props, ref) => {
|
|
|
12047
12132
|
toggleForcePause
|
|
12048
12133
|
} = SlideshowControls.useSlideshowControls({
|
|
12049
12134
|
activeIndex,
|
|
12050
|
-
defaultActiveIndex: DEFAULT_PROPS$
|
|
12135
|
+
defaultActiveIndex: DEFAULT_PROPS$k.activeIndex,
|
|
12051
12136
|
autoPlay: Boolean(autoPlay),
|
|
12052
12137
|
itemsCount,
|
|
12053
12138
|
groupBy,
|
|
@@ -12117,7 +12202,7 @@ const Slideshow = forwardRef((props, ref) => {
|
|
|
12117
12202
|
});
|
|
12118
12203
|
});
|
|
12119
12204
|
Slideshow.displayName = 'Slideshow';
|
|
12120
|
-
Slideshow.defaultProps = DEFAULT_PROPS$
|
|
12205
|
+
Slideshow.defaultProps = DEFAULT_PROPS$k;
|
|
12121
12206
|
|
|
12122
12207
|
/**
|
|
12123
12208
|
* Component display name.
|
|
@@ -12226,7 +12311,7 @@ const {
|
|
|
12226
12311
|
/**
|
|
12227
12312
|
* Component default props.
|
|
12228
12313
|
*/
|
|
12229
|
-
const DEFAULT_PROPS$
|
|
12314
|
+
const DEFAULT_PROPS$j = {
|
|
12230
12315
|
activeIndex: 0
|
|
12231
12316
|
};
|
|
12232
12317
|
|
|
@@ -12240,7 +12325,7 @@ const DEFAULT_PROPS$i = {
|
|
|
12240
12325
|
const InternalSlideshowControls = forwardRef((props, ref) => {
|
|
12241
12326
|
const defaultTheme = useTheme() || Theme$1.light;
|
|
12242
12327
|
const {
|
|
12243
|
-
activeIndex = DEFAULT_PROPS$
|
|
12328
|
+
activeIndex = DEFAULT_PROPS$j.activeIndex,
|
|
12244
12329
|
className,
|
|
12245
12330
|
nextButtonProps,
|
|
12246
12331
|
onNextClick,
|
|
@@ -12355,7 +12440,7 @@ const InternalSlideshowControls = forwardRef((props, ref) => {
|
|
|
12355
12440
|
});
|
|
12356
12441
|
InternalSlideshowControls.displayName = COMPONENT_NAME$g;
|
|
12357
12442
|
InternalSlideshowControls.className = CLASSNAME$f;
|
|
12358
|
-
InternalSlideshowControls.defaultProps = DEFAULT_PROPS$
|
|
12443
|
+
InternalSlideshowControls.defaultProps = DEFAULT_PROPS$j;
|
|
12359
12444
|
const SlideshowControls = Object.assign(InternalSlideshowControls, {
|
|
12360
12445
|
useSlideshowControls,
|
|
12361
12446
|
useSlideshowControlsDefaultOptions: DEFAULT_OPTIONS
|
|
@@ -12487,7 +12572,7 @@ const {
|
|
|
12487
12572
|
/**
|
|
12488
12573
|
* Component default props.
|
|
12489
12574
|
*/
|
|
12490
|
-
const DEFAULT_PROPS$
|
|
12575
|
+
const DEFAULT_PROPS$i = {
|
|
12491
12576
|
slideMode: SlideMode.transformTranslate
|
|
12492
12577
|
};
|
|
12493
12578
|
|
|
@@ -12514,7 +12599,7 @@ const Slides = forwardRef((props, ref) => {
|
|
|
12514
12599
|
afterSlides,
|
|
12515
12600
|
hasControls,
|
|
12516
12601
|
slideGroupLabel,
|
|
12517
|
-
slideMode = DEFAULT_PROPS$
|
|
12602
|
+
slideMode = DEFAULT_PROPS$i.slideMode,
|
|
12518
12603
|
onChange,
|
|
12519
12604
|
...forwardedProps
|
|
12520
12605
|
} = props;
|
|
@@ -12596,46 +12681,41 @@ const CLASSNAME$d = 'lumx-switch';
|
|
|
12596
12681
|
const {
|
|
12597
12682
|
block: block$e,
|
|
12598
12683
|
element: element$7
|
|
12599
|
-
} =
|
|
12684
|
+
} = bem(CLASSNAME$d);
|
|
12600
12685
|
|
|
12601
12686
|
/**
|
|
12602
12687
|
* Component default props.
|
|
12603
12688
|
*/
|
|
12604
|
-
const DEFAULT_PROPS$
|
|
12605
|
-
position:
|
|
12689
|
+
const DEFAULT_PROPS$h = {
|
|
12690
|
+
position: 'left'
|
|
12606
12691
|
};
|
|
12607
12692
|
|
|
12608
12693
|
/**
|
|
12609
12694
|
* Switch component.
|
|
12610
12695
|
*
|
|
12611
12696
|
* @param props Component props.
|
|
12612
|
-
* @
|
|
12613
|
-
* @return React element.
|
|
12697
|
+
* @return JSX element.
|
|
12614
12698
|
*/
|
|
12615
|
-
const Switch =
|
|
12616
|
-
const {
|
|
12617
|
-
isAnyDisabled,
|
|
12618
|
-
disabledStateProps,
|
|
12619
|
-
otherProps
|
|
12620
|
-
} = useDisableStateProps(props);
|
|
12621
|
-
const defaultTheme = useTheme() || Theme$1.light;
|
|
12699
|
+
const Switch$1 = props => {
|
|
12622
12700
|
const {
|
|
12623
12701
|
checked,
|
|
12624
|
-
children,
|
|
12625
12702
|
className,
|
|
12626
12703
|
helper,
|
|
12627
12704
|
id,
|
|
12705
|
+
inputRef,
|
|
12628
12706
|
isChecked = checked,
|
|
12707
|
+
label,
|
|
12629
12708
|
name,
|
|
12709
|
+
ref,
|
|
12630
12710
|
onChange,
|
|
12631
|
-
|
|
12632
|
-
theme = defaultTheme,
|
|
12711
|
+
theme,
|
|
12633
12712
|
value,
|
|
12634
12713
|
inputProps = {},
|
|
12714
|
+
isDisabled,
|
|
12715
|
+
inputId,
|
|
12716
|
+
position = DEFAULT_PROPS$h.position,
|
|
12635
12717
|
...forwardedProps
|
|
12636
|
-
} =
|
|
12637
|
-
const generatedInputId = useId();
|
|
12638
|
-
const inputId = id || generatedInputId;
|
|
12718
|
+
} = props;
|
|
12639
12719
|
const handleChange = event => {
|
|
12640
12720
|
if (onChange) {
|
|
12641
12721
|
onChange(!isChecked, value, name, event);
|
|
@@ -12644,28 +12724,30 @@ const Switch = forwardRef((props, ref) => {
|
|
|
12644
12724
|
return /*#__PURE__*/jsxs("div", {
|
|
12645
12725
|
ref: ref,
|
|
12646
12726
|
...forwardedProps,
|
|
12647
|
-
className:
|
|
12727
|
+
className: classnames(className, block$e({
|
|
12648
12728
|
'is-checked': isChecked,
|
|
12649
|
-
'is-disabled':
|
|
12729
|
+
'is-disabled': isDisabled,
|
|
12730
|
+
'is-unchecked': !isChecked,
|
|
12650
12731
|
[`position-${position}`]: Boolean(position),
|
|
12651
|
-
[`theme-${theme}`]: Boolean(theme)
|
|
12652
|
-
'is-unchecked': !isChecked
|
|
12732
|
+
[`theme-${theme}`]: Boolean(theme)
|
|
12653
12733
|
})),
|
|
12654
12734
|
children: [/*#__PURE__*/jsxs("div", {
|
|
12655
12735
|
className: element$7('input-wrapper'),
|
|
12656
12736
|
children: [/*#__PURE__*/jsx("input", {
|
|
12737
|
+
ref: inputRef,
|
|
12657
12738
|
type: "checkbox",
|
|
12658
12739
|
role: "switch",
|
|
12659
12740
|
id: inputId,
|
|
12660
12741
|
className: element$7('input-native'),
|
|
12661
12742
|
name: name,
|
|
12662
12743
|
value: value,
|
|
12663
|
-
|
|
12664
|
-
readOnly: inputProps.readOnly || isAnyDisabled,
|
|
12665
|
-
checked: isChecked,
|
|
12666
|
-
"aria-checked": Boolean(isChecked),
|
|
12744
|
+
checked: Boolean(isChecked),
|
|
12667
12745
|
onChange: handleChange,
|
|
12668
12746
|
"aria-describedby": helper ? `${inputId}-helper` : undefined,
|
|
12747
|
+
"aria-checked": Boolean(isChecked),
|
|
12748
|
+
...(inputProps?.readOnly ? {
|
|
12749
|
+
readOnly: inputProps.readOnly
|
|
12750
|
+
} : {}),
|
|
12669
12751
|
...inputProps
|
|
12670
12752
|
}), /*#__PURE__*/jsxs("div", {
|
|
12671
12753
|
className: element$7('input-placeholder'),
|
|
@@ -12675,21 +12757,88 @@ const Switch = forwardRef((props, ref) => {
|
|
|
12675
12757
|
className: element$7('input-indicator')
|
|
12676
12758
|
})]
|
|
12677
12759
|
})]
|
|
12678
|
-
}),
|
|
12760
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
12679
12761
|
className: element$7('content'),
|
|
12680
|
-
children: [
|
|
12762
|
+
children: [label && InputLabel$1({
|
|
12681
12763
|
htmlFor: inputId,
|
|
12682
|
-
theme: theme,
|
|
12683
12764
|
className: element$7('label'),
|
|
12684
|
-
|
|
12685
|
-
|
|
12765
|
+
theme,
|
|
12766
|
+
children: label
|
|
12767
|
+
}), helper && InputHelper$1({
|
|
12686
12768
|
id: `${inputId}-helper`,
|
|
12687
|
-
theme: theme,
|
|
12688
12769
|
className: element$7('helper'),
|
|
12770
|
+
theme,
|
|
12689
12771
|
children: helper
|
|
12690
12772
|
})]
|
|
12691
12773
|
})]
|
|
12692
12774
|
});
|
|
12775
|
+
};
|
|
12776
|
+
|
|
12777
|
+
/**
|
|
12778
|
+
* Defines the props of the component.
|
|
12779
|
+
*/
|
|
12780
|
+
|
|
12781
|
+
/**
|
|
12782
|
+
* Component default props.
|
|
12783
|
+
*/
|
|
12784
|
+
const DEFAULT_PROPS$g = {
|
|
12785
|
+
position: Alignment.left
|
|
12786
|
+
};
|
|
12787
|
+
|
|
12788
|
+
/**
|
|
12789
|
+
* Switch component.
|
|
12790
|
+
*
|
|
12791
|
+
* @param props Component props.
|
|
12792
|
+
* @param ref Component ref.
|
|
12793
|
+
* @return React element.
|
|
12794
|
+
*/
|
|
12795
|
+
const Switch = forwardRef((props, ref) => {
|
|
12796
|
+
const {
|
|
12797
|
+
isAnyDisabled,
|
|
12798
|
+
disabledStateProps,
|
|
12799
|
+
otherProps
|
|
12800
|
+
} = useDisableStateProps(props);
|
|
12801
|
+
const defaultTheme = useTheme() || Theme$1.light;
|
|
12802
|
+
const {
|
|
12803
|
+
checked,
|
|
12804
|
+
children,
|
|
12805
|
+
className,
|
|
12806
|
+
helper,
|
|
12807
|
+
id,
|
|
12808
|
+
inputRef,
|
|
12809
|
+
isChecked = checked,
|
|
12810
|
+
name,
|
|
12811
|
+
onChange,
|
|
12812
|
+
position = DEFAULT_PROPS$g.position,
|
|
12813
|
+
theme = defaultTheme,
|
|
12814
|
+
value,
|
|
12815
|
+
inputProps = {},
|
|
12816
|
+
...forwardedProps
|
|
12817
|
+
} = otherProps;
|
|
12818
|
+
const localInputRef = React__default.useRef(null);
|
|
12819
|
+
const generatedInputId = useId();
|
|
12820
|
+
const inputId = id || generatedInputId;
|
|
12821
|
+
return Switch$1({
|
|
12822
|
+
ref,
|
|
12823
|
+
className,
|
|
12824
|
+
helper,
|
|
12825
|
+
inputRef: useMergeRefs(inputRef, localInputRef),
|
|
12826
|
+
isChecked,
|
|
12827
|
+
label: children,
|
|
12828
|
+
name,
|
|
12829
|
+
onChange,
|
|
12830
|
+
position,
|
|
12831
|
+
theme,
|
|
12832
|
+
value,
|
|
12833
|
+
inputProps: {
|
|
12834
|
+
...inputProps,
|
|
12835
|
+
...disabledStateProps,
|
|
12836
|
+
readOnly: inputProps.readOnly || isAnyDisabled
|
|
12837
|
+
},
|
|
12838
|
+
...forwardedProps,
|
|
12839
|
+
isDisabled: isAnyDisabled,
|
|
12840
|
+
inputId
|
|
12841
|
+
});
|
|
12693
12842
|
});
|
|
12694
12843
|
Switch.displayName = COMPONENT_NAME$e;
|
|
12695
12844
|
Switch.className = CLASSNAME$d;
|
|
@@ -14644,5 +14793,5 @@ UserBlock.displayName = COMPONENT_NAME;
|
|
|
14644
14793
|
UserBlock.className = CLASSNAME;
|
|
14645
14794
|
UserBlock.defaultProps = DEFAULT_PROPS;
|
|
14646
14795
|
|
|
14647
|
-
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$1d as CLASSNAME, COMPONENT_NAME$1e as COMPONENT_NAME, Checkbox, Chip, ChipGroup, CommentBlock, CommentBlockVariant, DEFAULT_PROPS$
|
|
14796
|
+
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$1d as CLASSNAME, COMPONENT_NAME$1e as COMPONENT_NAME, Checkbox, Chip, ChipGroup, CommentBlock, CommentBlockVariant, DEFAULT_PROPS$13 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, 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, isClickable, useFocusPointStyle, useHeadingLevel, useTheme };
|
|
14648
14797
|
//# sourceMappingURL=index.js.map
|