@lumx/react 4.19.1-alpha.4 → 4.19.1-alpha.6
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/_internal/{BvaFEHZn.js → CcLi-Wuu.js} +6 -3
- package/_internal/CcLi-Wuu.js.map +1 -0
- package/index.d.ts +78 -72
- package/index.js +828 -576
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/utils/index.d.ts +6 -2
- package/utils/index.js +1 -1
- package/_internal/BvaFEHZn.js.map +0 -1
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ColorVariant as ColorVariant$1, Size as Size$1, VISUALLY_HIDDEN, Theme as Theme$1, AspectRatio as AspectRatio$1, DOCUMENT, IS_BROWSER as IS_BROWSER$1, Emphasis as Emphasis$1, WINDOW, DIALOG_TRANSITION_DURATION, Orientation as Orientation$1, NOTIFICATION_TRANSITION_DURATION, Kind as Kind$1, Alignment as Alignment$1, ColorPalette as ColorPalette$1 } from '@lumx/core/js/constants';
|
|
1
|
+
import { ColorVariant as ColorVariant$1, Size as Size$1, VISUALLY_HIDDEN, Theme as Theme$1, AspectRatio as AspectRatio$1, DOCUMENT, IS_BROWSER as IS_BROWSER$1, Emphasis as Emphasis$1, WINDOW, DIALOG_TRANSITION_DURATION, Typography as Typography$1, Orientation as Orientation$1, NOTIFICATION_TRANSITION_DURATION, Kind as Kind$1, Alignment as Alignment$1, ColorPalette as ColorPalette$1 } from '@lumx/core/js/constants';
|
|
2
2
|
export * from '@lumx/core/js/constants';
|
|
3
3
|
export * from '@lumx/core/js/types';
|
|
4
4
|
import * as React from 'react';
|
|
@@ -9,7 +9,7 @@ import ReactDOM__default from 'react-dom';
|
|
|
9
9
|
import { classNames, onEscapePressed, onEnterPressed as onEnterPressed$1, detectHorizontalSwipe } from '@lumx/core/js/utils';
|
|
10
10
|
import last from 'lodash/last.js';
|
|
11
11
|
import pull from 'lodash/pull.js';
|
|
12
|
-
import { u as useDisabledStateContext, P as Portal, C as ClickAwayProvider, I as InfiniteScroll } from './_internal/
|
|
12
|
+
import { u as useDisabledStateContext, P as Portal, C as ClickAwayProvider, I as InfiniteScroll } from './_internal/CcLi-Wuu.js';
|
|
13
13
|
import isEmpty from 'lodash/isEmpty.js';
|
|
14
14
|
import get from 'lodash/get.js';
|
|
15
15
|
import { getDisabledState as getDisabledState$1 } from '@lumx/core/js/utils/disabledState';
|
|
@@ -558,7 +558,7 @@ const CONFIG$1 = {
|
|
|
558
558
|
/**
|
|
559
559
|
* Component display name.
|
|
560
560
|
*/
|
|
561
|
-
const COMPONENT_NAME$
|
|
561
|
+
const COMPONENT_NAME$1G = 'AlertDialog';
|
|
562
562
|
|
|
563
563
|
/**
|
|
564
564
|
* Component default class name and class prefix.
|
|
@@ -732,7 +732,7 @@ const AlertDialog = forwardRef((props, ref) => {
|
|
|
732
732
|
...forwardedProps
|
|
733
733
|
});
|
|
734
734
|
});
|
|
735
|
-
AlertDialog.displayName = COMPONENT_NAME$
|
|
735
|
+
AlertDialog.displayName = COMPONENT_NAME$1G;
|
|
736
736
|
AlertDialog.className = CLASSNAME$1C;
|
|
737
737
|
AlertDialog.defaultProps = DEFAULT_PROPS$1j;
|
|
738
738
|
|
|
@@ -826,7 +826,7 @@ function useDisableStateProps(props) {
|
|
|
826
826
|
/**
|
|
827
827
|
* Component display name.
|
|
828
828
|
*/
|
|
829
|
-
const COMPONENT_NAME$
|
|
829
|
+
const COMPONENT_NAME$1F = 'Autocomplete';
|
|
830
830
|
|
|
831
831
|
/**
|
|
832
832
|
* Component default class name and class prefix.
|
|
@@ -939,14 +939,14 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
939
939
|
})]
|
|
940
940
|
});
|
|
941
941
|
});
|
|
942
|
-
Autocomplete.displayName = COMPONENT_NAME$
|
|
942
|
+
Autocomplete.displayName = COMPONENT_NAME$1F;
|
|
943
943
|
Autocomplete.className = CLASSNAME$1B;
|
|
944
944
|
Autocomplete.defaultProps = DEFAULT_PROPS$1i;
|
|
945
945
|
|
|
946
946
|
/**
|
|
947
947
|
* Component display name.
|
|
948
948
|
*/
|
|
949
|
-
const COMPONENT_NAME$
|
|
949
|
+
const COMPONENT_NAME$1E = 'AutocompleteMultiple';
|
|
950
950
|
|
|
951
951
|
/**
|
|
952
952
|
* Component default class name and class prefix.
|
|
@@ -1065,14 +1065,14 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
1065
1065
|
children: children
|
|
1066
1066
|
});
|
|
1067
1067
|
});
|
|
1068
|
-
AutocompleteMultiple.displayName = COMPONENT_NAME$
|
|
1068
|
+
AutocompleteMultiple.displayName = COMPONENT_NAME$1E;
|
|
1069
1069
|
AutocompleteMultiple.className = CLASSNAME$1A;
|
|
1070
1070
|
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$1h;
|
|
1071
1071
|
|
|
1072
1072
|
/**
|
|
1073
1073
|
* Component display name.
|
|
1074
1074
|
*/
|
|
1075
|
-
const COMPONENT_NAME$
|
|
1075
|
+
const COMPONENT_NAME$1D = 'Avatar';
|
|
1076
1076
|
|
|
1077
1077
|
/**
|
|
1078
1078
|
* Component default class name and class prefix.
|
|
@@ -1172,14 +1172,14 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
1172
1172
|
})
|
|
1173
1173
|
});
|
|
1174
1174
|
});
|
|
1175
|
-
Avatar.displayName = COMPONENT_NAME$
|
|
1175
|
+
Avatar.displayName = COMPONENT_NAME$1D;
|
|
1176
1176
|
Avatar.className = CLASSNAME$1z;
|
|
1177
1177
|
Avatar.defaultProps = DEFAULT_PROPS$1g;
|
|
1178
1178
|
|
|
1179
1179
|
/**
|
|
1180
1180
|
* Component display name.
|
|
1181
1181
|
*/
|
|
1182
|
-
const COMPONENT_NAME$
|
|
1182
|
+
const COMPONENT_NAME$1C = 'Badge';
|
|
1183
1183
|
|
|
1184
1184
|
/**
|
|
1185
1185
|
* Component default class name and class prefix.
|
|
@@ -1219,7 +1219,7 @@ const Badge$1 = props => {
|
|
|
1219
1219
|
children: children
|
|
1220
1220
|
});
|
|
1221
1221
|
};
|
|
1222
|
-
Badge$1.displayName = COMPONENT_NAME$
|
|
1222
|
+
Badge$1.displayName = COMPONENT_NAME$1C;
|
|
1223
1223
|
Badge$1.className = CLASSNAME$1y;
|
|
1224
1224
|
Badge$1.defaultProps = DEFAULT_PROPS$1f;
|
|
1225
1225
|
|
|
@@ -1244,7 +1244,7 @@ Badge.displayName = Badge$1.displayName;
|
|
|
1244
1244
|
Badge.className = Badge$1.className;
|
|
1245
1245
|
Badge.defaultProps = Badge$1.defaultProps;
|
|
1246
1246
|
|
|
1247
|
-
const COMPONENT_NAME$
|
|
1247
|
+
const COMPONENT_NAME$1B = 'BadgeWrapper';
|
|
1248
1248
|
const CLASSNAME$1x = 'lumx-badge-wrapper';
|
|
1249
1249
|
const {
|
|
1250
1250
|
block: block$18,
|
|
@@ -1275,7 +1275,7 @@ const BadgeWrapper = forwardRef((props, ref) => {
|
|
|
1275
1275
|
ref
|
|
1276
1276
|
});
|
|
1277
1277
|
});
|
|
1278
|
-
BadgeWrapper.displayName = COMPONENT_NAME$
|
|
1278
|
+
BadgeWrapper.displayName = COMPONENT_NAME$1B;
|
|
1279
1279
|
BadgeWrapper.className = CLASSNAME$1x;
|
|
1280
1280
|
|
|
1281
1281
|
/**
|
|
@@ -1326,7 +1326,7 @@ const RawClickable = props => {
|
|
|
1326
1326
|
/**
|
|
1327
1327
|
* Component display name.
|
|
1328
1328
|
*/
|
|
1329
|
-
const COMPONENT_NAME$
|
|
1329
|
+
const COMPONENT_NAME$1A = 'ButtonRoot';
|
|
1330
1330
|
const BUTTON_WRAPPER_CLASSNAME = `lumx-button-wrapper`;
|
|
1331
1331
|
const {
|
|
1332
1332
|
block: buttonWrapperBlock
|
|
@@ -1424,7 +1424,7 @@ const ButtonRoot = props => {
|
|
|
1424
1424
|
children
|
|
1425
1425
|
});
|
|
1426
1426
|
};
|
|
1427
|
-
ButtonRoot.displayName = COMPONENT_NAME$
|
|
1427
|
+
ButtonRoot.displayName = COMPONENT_NAME$1A;
|
|
1428
1428
|
ButtonRoot.defaultProps = {};
|
|
1429
1429
|
|
|
1430
1430
|
/**
|
|
@@ -1434,7 +1434,7 @@ ButtonRoot.defaultProps = {};
|
|
|
1434
1434
|
/**
|
|
1435
1435
|
* Component display name.
|
|
1436
1436
|
*/
|
|
1437
|
-
const COMPONENT_NAME$
|
|
1437
|
+
const COMPONENT_NAME$1z = 'Button';
|
|
1438
1438
|
|
|
1439
1439
|
/**
|
|
1440
1440
|
* Component default class name and class prefix.
|
|
@@ -1479,7 +1479,7 @@ const Button$1 = props => {
|
|
|
1479
1479
|
variant: 'button'
|
|
1480
1480
|
});
|
|
1481
1481
|
};
|
|
1482
|
-
Button$1.displayName = COMPONENT_NAME$
|
|
1482
|
+
Button$1.displayName = COMPONENT_NAME$1z;
|
|
1483
1483
|
Button$1.className = CLASSNAME$1w;
|
|
1484
1484
|
Button$1.defaultProps = DEFAULT_PROPS$1e;
|
|
1485
1485
|
|
|
@@ -1554,11 +1554,11 @@ const Button = forwardRef((props, ref) => {
|
|
|
1554
1554
|
})
|
|
1555
1555
|
});
|
|
1556
1556
|
});
|
|
1557
|
-
Button.displayName = COMPONENT_NAME$
|
|
1557
|
+
Button.displayName = COMPONENT_NAME$1z;
|
|
1558
1558
|
Button.className = CLASSNAME$1w;
|
|
1559
1559
|
Button.defaultProps = DEFAULT_PROPS$1e;
|
|
1560
1560
|
|
|
1561
|
-
const COMPONENT_NAME$
|
|
1561
|
+
const COMPONENT_NAME$1y = 'Icon';
|
|
1562
1562
|
const IconClassName = 'lumx-icon';
|
|
1563
1563
|
|
|
1564
1564
|
/**
|
|
@@ -1651,14 +1651,14 @@ const Icon$1 = props => {
|
|
|
1651
1651
|
})
|
|
1652
1652
|
});
|
|
1653
1653
|
};
|
|
1654
|
-
Icon$1.displayName = COMPONENT_NAME$
|
|
1654
|
+
Icon$1.displayName = COMPONENT_NAME$1y;
|
|
1655
1655
|
Icon$1.className = CLASSNAME$1v;
|
|
1656
1656
|
Icon$1.defaultProps = DEFAULT_PROPS$1d;
|
|
1657
1657
|
|
|
1658
1658
|
/**
|
|
1659
1659
|
* Component display name.
|
|
1660
1660
|
*/
|
|
1661
|
-
const COMPONENT_NAME$
|
|
1661
|
+
const COMPONENT_NAME$1x = 'IconButton';
|
|
1662
1662
|
|
|
1663
1663
|
/**
|
|
1664
1664
|
* Component default class name and class prefix.
|
|
@@ -1704,7 +1704,7 @@ const IconButton$1 = props => {
|
|
|
1704
1704
|
children: defaultChildren
|
|
1705
1705
|
});
|
|
1706
1706
|
};
|
|
1707
|
-
IconButton$1.displayName = COMPONENT_NAME$
|
|
1707
|
+
IconButton$1.displayName = COMPONENT_NAME$1x;
|
|
1708
1708
|
IconButton$1.className = CLASSNAME$1u;
|
|
1709
1709
|
IconButton$1.defaultProps = DEFAULT_PROPS$1c;
|
|
1710
1710
|
|
|
@@ -1749,14 +1749,14 @@ const IconButton = forwardRef((props, ref) => {
|
|
|
1749
1749
|
})
|
|
1750
1750
|
});
|
|
1751
1751
|
});
|
|
1752
|
-
IconButton.displayName = COMPONENT_NAME$
|
|
1752
|
+
IconButton.displayName = COMPONENT_NAME$1x;
|
|
1753
1753
|
IconButton.className = CLASSNAME$1u;
|
|
1754
1754
|
IconButton.defaultProps = DEFAULT_PROPS$1c;
|
|
1755
1755
|
|
|
1756
1756
|
/**
|
|
1757
1757
|
* Component display name.
|
|
1758
1758
|
*/
|
|
1759
|
-
const COMPONENT_NAME$
|
|
1759
|
+
const COMPONENT_NAME$1w = 'ButtonGroup';
|
|
1760
1760
|
|
|
1761
1761
|
/**
|
|
1762
1762
|
* Component default class name and class prefix.
|
|
@@ -1786,7 +1786,7 @@ const ButtonGroup$1 = props => {
|
|
|
1786
1786
|
children: children
|
|
1787
1787
|
});
|
|
1788
1788
|
};
|
|
1789
|
-
ButtonGroup$1.displayName = COMPONENT_NAME$
|
|
1789
|
+
ButtonGroup$1.displayName = COMPONENT_NAME$1w;
|
|
1790
1790
|
ButtonGroup$1.className = CLASSNAME$1t;
|
|
1791
1791
|
ButtonGroup$1.defaultProps = DEFAULT_PROPS$1b;
|
|
1792
1792
|
|
|
@@ -1803,11 +1803,11 @@ const ButtonGroup = forwardRef((props, ref) => {
|
|
|
1803
1803
|
...props
|
|
1804
1804
|
});
|
|
1805
1805
|
});
|
|
1806
|
-
ButtonGroup.displayName = COMPONENT_NAME$
|
|
1806
|
+
ButtonGroup.displayName = COMPONENT_NAME$1w;
|
|
1807
1807
|
ButtonGroup.className = CLASSNAME$1t;
|
|
1808
1808
|
ButtonGroup.defaultProps = DEFAULT_PROPS$1b;
|
|
1809
1809
|
|
|
1810
|
-
const COMPONENT_NAME$
|
|
1810
|
+
const COMPONENT_NAME$1v = 'InputLabel';
|
|
1811
1811
|
const InputLabelClassName = 'lumx-input-label';
|
|
1812
1812
|
const CLASSNAME$1s = InputLabelClassName;
|
|
1813
1813
|
const {
|
|
@@ -1843,7 +1843,7 @@ function InputLabel$1(props) {
|
|
|
1843
1843
|
children: children
|
|
1844
1844
|
});
|
|
1845
1845
|
}
|
|
1846
|
-
InputLabel$1.displayName = COMPONENT_NAME$
|
|
1846
|
+
InputLabel$1.displayName = COMPONENT_NAME$1v;
|
|
1847
1847
|
InputLabel$1.className = CLASSNAME$1s;
|
|
1848
1848
|
InputLabel$1.defaultProps = DEFAULT_PROPS$1a;
|
|
1849
1849
|
|
|
@@ -1859,7 +1859,7 @@ const INPUT_HELPER_CONFIGURATION = {
|
|
|
1859
1859
|
}
|
|
1860
1860
|
};
|
|
1861
1861
|
|
|
1862
|
-
const COMPONENT_NAME$
|
|
1862
|
+
const COMPONENT_NAME$1u = 'InputHelper';
|
|
1863
1863
|
const InputHelperClassName = 'lumx-input-helper';
|
|
1864
1864
|
|
|
1865
1865
|
/**
|
|
@@ -1903,7 +1903,7 @@ function InputHelper$1(props) {
|
|
|
1903
1903
|
children: children
|
|
1904
1904
|
});
|
|
1905
1905
|
}
|
|
1906
|
-
InputHelper$1.displayName = COMPONENT_NAME$
|
|
1906
|
+
InputHelper$1.displayName = COMPONENT_NAME$1u;
|
|
1907
1907
|
InputHelper$1.className = CLASSNAME$1r;
|
|
1908
1908
|
InputHelper$1.defaultProps = DEFAULT_PROPS$19;
|
|
1909
1909
|
|
|
@@ -1916,7 +1916,7 @@ const INTERMEDIATE_STATE = 'intermediate';
|
|
|
1916
1916
|
/**
|
|
1917
1917
|
* Component display name.
|
|
1918
1918
|
*/
|
|
1919
|
-
const COMPONENT_NAME$
|
|
1919
|
+
const COMPONENT_NAME$1t = 'Checkbox';
|
|
1920
1920
|
|
|
1921
1921
|
/**
|
|
1922
1922
|
* Component default class name and class prefix.
|
|
@@ -2080,7 +2080,7 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
2080
2080
|
inputId
|
|
2081
2081
|
});
|
|
2082
2082
|
});
|
|
2083
|
-
Checkbox.displayName = COMPONENT_NAME$
|
|
2083
|
+
Checkbox.displayName = COMPONENT_NAME$1t;
|
|
2084
2084
|
Checkbox.className = CLASSNAME$1q;
|
|
2085
2085
|
Checkbox.defaultProps = DEFAULT_PROPS$18;
|
|
2086
2086
|
|
|
@@ -2103,7 +2103,7 @@ function useStopPropagation(handler) {
|
|
|
2103
2103
|
/**
|
|
2104
2104
|
* Component display name.
|
|
2105
2105
|
*/
|
|
2106
|
-
const COMPONENT_NAME$
|
|
2106
|
+
const COMPONENT_NAME$1s = 'Chip';
|
|
2107
2107
|
|
|
2108
2108
|
/**
|
|
2109
2109
|
* Component default class name and class prefix.
|
|
@@ -2264,14 +2264,14 @@ const Chip = forwardRef((props, ref) => {
|
|
|
2264
2264
|
...forwardedProps
|
|
2265
2265
|
});
|
|
2266
2266
|
});
|
|
2267
|
-
Chip.displayName = COMPONENT_NAME$
|
|
2267
|
+
Chip.displayName = COMPONENT_NAME$1s;
|
|
2268
2268
|
Chip.className = CLASSNAME$1p;
|
|
2269
2269
|
Chip.defaultProps = DEFAULT_PROPS$17;
|
|
2270
2270
|
|
|
2271
2271
|
/**
|
|
2272
2272
|
* Component display name.
|
|
2273
2273
|
*/
|
|
2274
|
-
const COMPONENT_NAME$
|
|
2274
|
+
const COMPONENT_NAME$1r = 'ChipGroup';
|
|
2275
2275
|
|
|
2276
2276
|
/**
|
|
2277
2277
|
* Component default class name and class prefix.
|
|
@@ -2377,7 +2377,7 @@ const InternalChipGroup = forwardRef((props, ref) => {
|
|
|
2377
2377
|
...forwardedProps
|
|
2378
2378
|
});
|
|
2379
2379
|
});
|
|
2380
|
-
InternalChipGroup.displayName = COMPONENT_NAME$
|
|
2380
|
+
InternalChipGroup.displayName = COMPONENT_NAME$1r;
|
|
2381
2381
|
InternalChipGroup.className = CLASSNAME$1o;
|
|
2382
2382
|
InternalChipGroup.defaultProps = DEFAULT_PROPS$16;
|
|
2383
2383
|
const ChipGroup = Object.assign(InternalChipGroup, {
|
|
@@ -2387,7 +2387,7 @@ const ChipGroup = Object.assign(InternalChipGroup, {
|
|
|
2387
2387
|
/**
|
|
2388
2388
|
* Component display name.
|
|
2389
2389
|
*/
|
|
2390
|
-
const COMPONENT_NAME$
|
|
2390
|
+
const COMPONENT_NAME$1q = 'SelectionChipGroup';
|
|
2391
2391
|
|
|
2392
2392
|
/**
|
|
2393
2393
|
* Component default class name and class prefix.
|
|
@@ -2709,7 +2709,7 @@ function wrapChildrenIconWithSpaces(children) {
|
|
|
2709
2709
|
/**
|
|
2710
2710
|
* Component display name.
|
|
2711
2711
|
*/
|
|
2712
|
-
const COMPONENT_NAME$
|
|
2712
|
+
const COMPONENT_NAME$1p = 'Text';
|
|
2713
2713
|
|
|
2714
2714
|
/**
|
|
2715
2715
|
* Component default class name and class prefix.
|
|
@@ -2807,7 +2807,7 @@ const Text = forwardRef((props, ref) => {
|
|
|
2807
2807
|
children: wrapChildrenIconWithSpaces(children)
|
|
2808
2808
|
});
|
|
2809
2809
|
});
|
|
2810
|
-
Text.displayName = COMPONENT_NAME$
|
|
2810
|
+
Text.displayName = COMPONENT_NAME$1p;
|
|
2811
2811
|
Text.className = CLASSNAME$1m;
|
|
2812
2812
|
Text.defaultProps = DEFAULT_PROPS$15;
|
|
2813
2813
|
|
|
@@ -4901,7 +4901,7 @@ const DEFAULT_PROPS$14 = {
|
|
|
4901
4901
|
/**
|
|
4902
4902
|
* Component display name.
|
|
4903
4903
|
*/
|
|
4904
|
-
const COMPONENT_NAME$
|
|
4904
|
+
const COMPONENT_NAME$1o = 'Tooltip';
|
|
4905
4905
|
|
|
4906
4906
|
/**
|
|
4907
4907
|
* Component default class name and class prefix.
|
|
@@ -4959,7 +4959,7 @@ const TooltipPopup = props => {
|
|
|
4959
4959
|
})]
|
|
4960
4960
|
});
|
|
4961
4961
|
};
|
|
4962
|
-
TooltipPopup.displayName = COMPONENT_NAME$
|
|
4962
|
+
TooltipPopup.displayName = COMPONENT_NAME$1o;
|
|
4963
4963
|
TooltipPopup.className = CLASSNAME$1l;
|
|
4964
4964
|
|
|
4965
4965
|
/**
|
|
@@ -5322,7 +5322,7 @@ const Tooltip = forwardRef((props, ref) => {
|
|
|
5322
5322
|
})]
|
|
5323
5323
|
});
|
|
5324
5324
|
});
|
|
5325
|
-
Tooltip.displayName = COMPONENT_NAME$
|
|
5325
|
+
Tooltip.displayName = COMPONENT_NAME$1o;
|
|
5326
5326
|
Tooltip.className = CLASSNAME$1l;
|
|
5327
5327
|
Tooltip.defaultProps = DEFAULT_PROPS$14;
|
|
5328
5328
|
|
|
@@ -6234,7 +6234,7 @@ const SelectionChipGroup = ({
|
|
|
6234
6234
|
Tooltip
|
|
6235
6235
|
});
|
|
6236
6236
|
};
|
|
6237
|
-
SelectionChipGroup.displayName = COMPONENT_NAME$
|
|
6237
|
+
SelectionChipGroup.displayName = COMPONENT_NAME$1q;
|
|
6238
6238
|
SelectionChipGroup.className = CLASSNAME$1n;
|
|
6239
6239
|
|
|
6240
6240
|
/**
|
|
@@ -7199,7 +7199,7 @@ function setupComboboxButton(button, callbacks) {
|
|
|
7199
7199
|
/**
|
|
7200
7200
|
* Component display name.
|
|
7201
7201
|
*/
|
|
7202
|
-
const COMPONENT_NAME$
|
|
7202
|
+
const COMPONENT_NAME$1n = 'ComboboxButton';
|
|
7203
7203
|
|
|
7204
7204
|
/**
|
|
7205
7205
|
* Component default class name and class prefix.
|
|
@@ -7388,7 +7388,7 @@ const ComboboxButton = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
7388
7388
|
Tooltip
|
|
7389
7389
|
});
|
|
7390
7390
|
}), {
|
|
7391
|
-
displayName: COMPONENT_NAME$
|
|
7391
|
+
displayName: COMPONENT_NAME$1n,
|
|
7392
7392
|
className: CLASSNAME$1k
|
|
7393
7393
|
});
|
|
7394
7394
|
|
|
@@ -7553,7 +7553,7 @@ function getDisabledState(context, props) {
|
|
|
7553
7553
|
/**
|
|
7554
7554
|
* Component display name.
|
|
7555
7555
|
*/
|
|
7556
|
-
const COMPONENT_NAME$
|
|
7556
|
+
const COMPONENT_NAME$1m = 'ComboboxInput';
|
|
7557
7557
|
|
|
7558
7558
|
/**
|
|
7559
7559
|
* Component default class name and class prefix.
|
|
@@ -7621,7 +7621,7 @@ const ComboboxInput$1 = (props, {
|
|
|
7621
7621
|
/**
|
|
7622
7622
|
* Component display name.
|
|
7623
7623
|
*/
|
|
7624
|
-
const COMPONENT_NAME$
|
|
7624
|
+
const COMPONENT_NAME$1l = 'TextField';
|
|
7625
7625
|
|
|
7626
7626
|
/**
|
|
7627
7627
|
* Component default class name and class prefix.
|
|
@@ -8161,7 +8161,7 @@ const TextField = forwardRef((props, ref) => {
|
|
|
8161
8161
|
} : undefined
|
|
8162
8162
|
});
|
|
8163
8163
|
});
|
|
8164
|
-
TextField.displayName = COMPONENT_NAME$
|
|
8164
|
+
TextField.displayName = COMPONENT_NAME$1l;
|
|
8165
8165
|
TextField.className = CLASSNAME$1i;
|
|
8166
8166
|
TextField.defaultProps = DEFAULT_PROPS$10;
|
|
8167
8167
|
|
|
@@ -8250,13 +8250,13 @@ const ComboboxInput = forwardRef((props, ref) => {
|
|
|
8250
8250
|
IconButton
|
|
8251
8251
|
});
|
|
8252
8252
|
});
|
|
8253
|
-
ComboboxInput.displayName = COMPONENT_NAME$
|
|
8253
|
+
ComboboxInput.displayName = COMPONENT_NAME$1m;
|
|
8254
8254
|
ComboboxInput.className = CLASSNAME$1j;
|
|
8255
8255
|
|
|
8256
8256
|
/**
|
|
8257
8257
|
* Component display name.
|
|
8258
8258
|
*/
|
|
8259
|
-
const COMPONENT_NAME$
|
|
8259
|
+
const COMPONENT_NAME$1k = 'List';
|
|
8260
8260
|
|
|
8261
8261
|
/**
|
|
8262
8262
|
* Component default class name and class prefix.
|
|
@@ -8294,7 +8294,7 @@ const List$1 = props => {
|
|
|
8294
8294
|
children: children
|
|
8295
8295
|
});
|
|
8296
8296
|
};
|
|
8297
|
-
List$1.displayName = COMPONENT_NAME$
|
|
8297
|
+
List$1.displayName = COMPONENT_NAME$1k;
|
|
8298
8298
|
List$1.className = CLASSNAME$1h;
|
|
8299
8299
|
List$1.defaultProps = DEFAULT_PROPS$$;
|
|
8300
8300
|
|
|
@@ -8311,7 +8311,7 @@ List$1.defaultProps = DEFAULT_PROPS$$;
|
|
|
8311
8311
|
/**
|
|
8312
8312
|
* Component display name.
|
|
8313
8313
|
*/
|
|
8314
|
-
const COMPONENT_NAME$
|
|
8314
|
+
const COMPONENT_NAME$1j = 'ComboboxList';
|
|
8315
8315
|
|
|
8316
8316
|
/**
|
|
8317
8317
|
* Component default class name and class prefix.
|
|
@@ -8428,13 +8428,13 @@ const ComboboxList = forwardRef((props, ref) => {
|
|
|
8428
8428
|
})
|
|
8429
8429
|
});
|
|
8430
8430
|
});
|
|
8431
|
-
ComboboxList.displayName = COMPONENT_NAME$
|
|
8431
|
+
ComboboxList.displayName = COMPONENT_NAME$1j;
|
|
8432
8432
|
ComboboxList.className = CLASSNAME$1g;
|
|
8433
8433
|
|
|
8434
8434
|
/**
|
|
8435
8435
|
* Component display name.
|
|
8436
8436
|
*/
|
|
8437
|
-
const COMPONENT_NAME$
|
|
8437
|
+
const COMPONENT_NAME$1i = 'ListItem';
|
|
8438
8438
|
|
|
8439
8439
|
/**
|
|
8440
8440
|
* Component default class name and class prefix.
|
|
@@ -8510,7 +8510,7 @@ const ListItem$1 = props => {
|
|
|
8510
8510
|
})
|
|
8511
8511
|
});
|
|
8512
8512
|
};
|
|
8513
|
-
ListItem$1.displayName = COMPONENT_NAME$
|
|
8513
|
+
ListItem$1.displayName = COMPONENT_NAME$1i;
|
|
8514
8514
|
ListItem$1.className = CLASSNAME$1f;
|
|
8515
8515
|
ListItem$1.defaultProps = DEFAULT_PROPS$_;
|
|
8516
8516
|
|
|
@@ -8521,7 +8521,7 @@ ListItem$1.defaultProps = DEFAULT_PROPS$_;
|
|
|
8521
8521
|
/**
|
|
8522
8522
|
* Component display name.
|
|
8523
8523
|
*/
|
|
8524
|
-
const COMPONENT_NAME$
|
|
8524
|
+
const COMPONENT_NAME$1h = 'ListItemAction';
|
|
8525
8525
|
|
|
8526
8526
|
/**
|
|
8527
8527
|
* Component classname (used by action area CSS pattern).
|
|
@@ -8560,7 +8560,7 @@ const ListItemAction$1 = props => {
|
|
|
8560
8560
|
/**
|
|
8561
8561
|
* Component display name.
|
|
8562
8562
|
*/
|
|
8563
|
-
const COMPONENT_NAME$
|
|
8563
|
+
const COMPONENT_NAME$1g = 'ComboboxOption';
|
|
8564
8564
|
|
|
8565
8565
|
/**
|
|
8566
8566
|
* Component default class name and class prefix.
|
|
@@ -8753,7 +8753,7 @@ const ComboboxOption = forwardRef((props, ref) => {
|
|
|
8753
8753
|
Tooltip
|
|
8754
8754
|
});
|
|
8755
8755
|
});
|
|
8756
|
-
ComboboxOption.displayName = COMPONENT_NAME$
|
|
8756
|
+
ComboboxOption.displayName = COMPONENT_NAME$1g;
|
|
8757
8757
|
ComboboxOption.className = CLASSNAME$1d;
|
|
8758
8758
|
|
|
8759
8759
|
/**
|
|
@@ -8763,7 +8763,7 @@ ComboboxOption.className = CLASSNAME$1d;
|
|
|
8763
8763
|
/**
|
|
8764
8764
|
* Component display name.
|
|
8765
8765
|
*/
|
|
8766
|
-
const COMPONENT_NAME$
|
|
8766
|
+
const COMPONENT_NAME$1f = 'ComboboxOptionAction';
|
|
8767
8767
|
|
|
8768
8768
|
/**
|
|
8769
8769
|
* Component default class name and class prefix.
|
|
@@ -8841,14 +8841,14 @@ const ComboboxOptionAction = Object.assign(forwardRefPolymorphic((props, ref) =>
|
|
|
8841
8841
|
children
|
|
8842
8842
|
});
|
|
8843
8843
|
}), {
|
|
8844
|
-
displayName: COMPONENT_NAME$
|
|
8844
|
+
displayName: COMPONENT_NAME$1f,
|
|
8845
8845
|
className: CLASSNAME$1c
|
|
8846
8846
|
});
|
|
8847
8847
|
|
|
8848
8848
|
/**
|
|
8849
8849
|
* Component display name.
|
|
8850
8850
|
*/
|
|
8851
|
-
const COMPONENT_NAME$
|
|
8851
|
+
const COMPONENT_NAME$1e = 'ComboboxOptionMoreInfo';
|
|
8852
8852
|
|
|
8853
8853
|
/**
|
|
8854
8854
|
* Component default class name and class prefix.
|
|
@@ -9170,7 +9170,7 @@ const POPOVER_ZINDEX = 9999;
|
|
|
9170
9170
|
/**
|
|
9171
9171
|
* Component display name.
|
|
9172
9172
|
*/
|
|
9173
|
-
const COMPONENT_NAME$
|
|
9173
|
+
const COMPONENT_NAME$1d = 'Popover';
|
|
9174
9174
|
|
|
9175
9175
|
/**
|
|
9176
9176
|
* Component default class name and class prefix.
|
|
@@ -9705,7 +9705,7 @@ const _InnerPopover = forwardRef((props, ref) => {
|
|
|
9705
9705
|
ThemeProvider
|
|
9706
9706
|
});
|
|
9707
9707
|
});
|
|
9708
|
-
_InnerPopover.displayName = COMPONENT_NAME$
|
|
9708
|
+
_InnerPopover.displayName = COMPONENT_NAME$1d;
|
|
9709
9709
|
|
|
9710
9710
|
/**
|
|
9711
9711
|
* Popover component.
|
|
@@ -9717,7 +9717,7 @@ _InnerPopover.displayName = COMPONENT_NAME$1c;
|
|
|
9717
9717
|
const Popover = skipRender(
|
|
9718
9718
|
// Skip render in SSR
|
|
9719
9719
|
() => Boolean(DOCUMENT), _InnerPopover);
|
|
9720
|
-
Popover.displayName = COMPONENT_NAME$
|
|
9720
|
+
Popover.displayName = COMPONENT_NAME$1d;
|
|
9721
9721
|
Popover.className = CLASSNAME$1a;
|
|
9722
9722
|
Popover.defaultProps = DEFAULT_PROPS$Y;
|
|
9723
9723
|
|
|
@@ -9781,13 +9781,13 @@ const ComboboxOptionMoreInfo = props => {
|
|
|
9781
9781
|
Popover
|
|
9782
9782
|
});
|
|
9783
9783
|
};
|
|
9784
|
-
ComboboxOptionMoreInfo.displayName = COMPONENT_NAME$
|
|
9784
|
+
ComboboxOptionMoreInfo.displayName = COMPONENT_NAME$1e;
|
|
9785
9785
|
ComboboxOptionMoreInfo.className = CLASSNAME$1b;
|
|
9786
9786
|
|
|
9787
9787
|
/**
|
|
9788
9788
|
* Component display name.
|
|
9789
9789
|
*/
|
|
9790
|
-
const COMPONENT_NAME$
|
|
9790
|
+
const COMPONENT_NAME$1c = 'SkeletonTypography';
|
|
9791
9791
|
|
|
9792
9792
|
/**
|
|
9793
9793
|
* Component default class name and class prefix.
|
|
@@ -9835,7 +9835,7 @@ const SkeletonTypography$1 = props => {
|
|
|
9835
9835
|
/**
|
|
9836
9836
|
* Component display name.
|
|
9837
9837
|
*/
|
|
9838
|
-
const COMPONENT_NAME$
|
|
9838
|
+
const COMPONENT_NAME$1b = 'ComboboxOptionSkeleton';
|
|
9839
9839
|
|
|
9840
9840
|
/**
|
|
9841
9841
|
* Component default class name and class prefix.
|
|
@@ -9920,12 +9920,12 @@ const ComboboxOptionSkeleton = props => {
|
|
|
9920
9920
|
...props
|
|
9921
9921
|
});
|
|
9922
9922
|
};
|
|
9923
|
-
ComboboxOptionSkeleton.displayName = COMPONENT_NAME$
|
|
9923
|
+
ComboboxOptionSkeleton.displayName = COMPONENT_NAME$1b;
|
|
9924
9924
|
ComboboxOptionSkeleton.className = CLASSNAME$18;
|
|
9925
9925
|
|
|
9926
9926
|
const DEFAULT_COMBOBOX_POPOVER_MAX_HEIGHT = '80vh';
|
|
9927
9927
|
|
|
9928
|
-
const COMPONENT_NAME$
|
|
9928
|
+
const COMPONENT_NAME$1a = 'ComboboxPopover';
|
|
9929
9929
|
|
|
9930
9930
|
/**
|
|
9931
9931
|
* Component default class name.
|
|
@@ -9999,7 +9999,7 @@ const ComboboxPopover$1 = (props, {
|
|
|
9999
9999
|
/**
|
|
10000
10000
|
* Component display name.
|
|
10001
10001
|
*/
|
|
10002
|
-
const COMPONENT_NAME$
|
|
10002
|
+
const COMPONENT_NAME$19 = 'FlexBox';
|
|
10003
10003
|
|
|
10004
10004
|
/**
|
|
10005
10005
|
* Component default class name and class prefix.
|
|
@@ -10063,7 +10063,7 @@ const FlexBox = forwardRef((props, ref) => {
|
|
|
10063
10063
|
children: children
|
|
10064
10064
|
});
|
|
10065
10065
|
});
|
|
10066
|
-
FlexBox.displayName = COMPONENT_NAME$
|
|
10066
|
+
FlexBox.displayName = COMPONENT_NAME$19;
|
|
10067
10067
|
FlexBox.className = CLASSNAME$16;
|
|
10068
10068
|
|
|
10069
10069
|
/**
|
|
@@ -10102,7 +10102,7 @@ const ComboboxPopover = props => {
|
|
|
10102
10102
|
FlexBox
|
|
10103
10103
|
});
|
|
10104
10104
|
};
|
|
10105
|
-
ComboboxPopover.displayName = COMPONENT_NAME$
|
|
10105
|
+
ComboboxPopover.displayName = COMPONENT_NAME$1a;
|
|
10106
10106
|
ComboboxPopover.className = CLASSNAME$17;
|
|
10107
10107
|
|
|
10108
10108
|
/**
|
|
@@ -10148,7 +10148,7 @@ ComboboxProvider.displayName = 'Combobox.Provider';
|
|
|
10148
10148
|
/**
|
|
10149
10149
|
* Component display name.
|
|
10150
10150
|
*/
|
|
10151
|
-
const COMPONENT_NAME$
|
|
10151
|
+
const COMPONENT_NAME$18 = 'ComboboxSection';
|
|
10152
10152
|
|
|
10153
10153
|
/**
|
|
10154
10154
|
* Component default class name and class prefix.
|
|
@@ -10192,7 +10192,7 @@ const ComboboxSection$1 = (props, {
|
|
|
10192
10192
|
/**
|
|
10193
10193
|
* Component display name.
|
|
10194
10194
|
*/
|
|
10195
|
-
const COMPONENT_NAME$
|
|
10195
|
+
const COMPONENT_NAME$17 = 'ListSection';
|
|
10196
10196
|
|
|
10197
10197
|
/**
|
|
10198
10198
|
* Component default class name and class prefix.
|
|
@@ -10248,7 +10248,7 @@ const ListSection$1 = props => {
|
|
|
10248
10248
|
})]
|
|
10249
10249
|
});
|
|
10250
10250
|
};
|
|
10251
|
-
ListSection$1.displayName = COMPONENT_NAME$
|
|
10251
|
+
ListSection$1.displayName = COMPONENT_NAME$17;
|
|
10252
10252
|
ListSection$1.className = CLASSNAME$14;
|
|
10253
10253
|
ListSection$1.defaultProps = DEFAULT_PROPS$X;
|
|
10254
10254
|
|
|
@@ -10272,7 +10272,7 @@ const ListSection = forwardRef((props, ref) => {
|
|
|
10272
10272
|
Text
|
|
10273
10273
|
});
|
|
10274
10274
|
});
|
|
10275
|
-
ListSection.displayName = COMPONENT_NAME$
|
|
10275
|
+
ListSection.displayName = COMPONENT_NAME$17;
|
|
10276
10276
|
ListSection.className = CLASSNAME$14;
|
|
10277
10277
|
ListSection.defaultProps = DEFAULT_PROPS$X;
|
|
10278
10278
|
|
|
@@ -10322,13 +10322,13 @@ const ComboboxSection = forwardRef((props, ref) => {
|
|
|
10322
10322
|
ListSection
|
|
10323
10323
|
});
|
|
10324
10324
|
});
|
|
10325
|
-
ComboboxSection.displayName = COMPONENT_NAME$
|
|
10325
|
+
ComboboxSection.displayName = COMPONENT_NAME$18;
|
|
10326
10326
|
ComboboxSection.className = CLASSNAME$15;
|
|
10327
10327
|
|
|
10328
10328
|
/**
|
|
10329
10329
|
* Component display name.
|
|
10330
10330
|
*/
|
|
10331
|
-
const COMPONENT_NAME$
|
|
10331
|
+
const COMPONENT_NAME$16 = 'ComboboxState';
|
|
10332
10332
|
|
|
10333
10333
|
/**
|
|
10334
10334
|
* Component default class name and class prefix.
|
|
@@ -10509,7 +10509,7 @@ function partitionMulti(elements, predicates) {
|
|
|
10509
10509
|
/**
|
|
10510
10510
|
* Component display name.
|
|
10511
10511
|
*/
|
|
10512
|
-
const COMPONENT_NAME$
|
|
10512
|
+
const COMPONENT_NAME$15 = 'GenericBlock';
|
|
10513
10513
|
|
|
10514
10514
|
/**
|
|
10515
10515
|
* Component default class name and class prefix.
|
|
@@ -10660,7 +10660,7 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
10660
10660
|
}) : undefined
|
|
10661
10661
|
});
|
|
10662
10662
|
});
|
|
10663
|
-
BaseGenericBlock.displayName = COMPONENT_NAME$
|
|
10663
|
+
BaseGenericBlock.displayName = COMPONENT_NAME$15;
|
|
10664
10664
|
BaseGenericBlock.className = CLASSNAME$12;
|
|
10665
10665
|
BaseGenericBlock.defaultProps = DEFAULT_PROPS$W;
|
|
10666
10666
|
const GenericBlock = Object.assign(BaseGenericBlock, {
|
|
@@ -10740,13 +10740,13 @@ const ComboboxState = props => {
|
|
|
10740
10740
|
Text
|
|
10741
10741
|
});
|
|
10742
10742
|
};
|
|
10743
|
-
ComboboxState.displayName = COMPONENT_NAME$
|
|
10743
|
+
ComboboxState.displayName = COMPONENT_NAME$16;
|
|
10744
10744
|
ComboboxState.className = CLASSNAME$13;
|
|
10745
10745
|
|
|
10746
10746
|
/**
|
|
10747
10747
|
* Component display name.
|
|
10748
10748
|
*/
|
|
10749
|
-
const COMPONENT_NAME$
|
|
10749
|
+
const COMPONENT_NAME$14 = 'ListDivider';
|
|
10750
10750
|
|
|
10751
10751
|
/**
|
|
10752
10752
|
* Component default class name and class prefix.
|
|
@@ -10778,7 +10778,7 @@ const ListDivider$1 = props => {
|
|
|
10778
10778
|
className: classnames(className, CLASSNAME$11)
|
|
10779
10779
|
});
|
|
10780
10780
|
};
|
|
10781
|
-
ListDivider$1.displayName = COMPONENT_NAME$
|
|
10781
|
+
ListDivider$1.displayName = COMPONENT_NAME$14;
|
|
10782
10782
|
ListDivider$1.className = CLASSNAME$11;
|
|
10783
10783
|
ListDivider$1.defaultProps = DEFAULT_PROPS$V;
|
|
10784
10784
|
|
|
@@ -10800,7 +10800,7 @@ const ListDivider = forwardRef((props, ref) => {
|
|
|
10800
10800
|
ref
|
|
10801
10801
|
});
|
|
10802
10802
|
});
|
|
10803
|
-
ListDivider.displayName = COMPONENT_NAME$
|
|
10803
|
+
ListDivider.displayName = COMPONENT_NAME$14;
|
|
10804
10804
|
ListDivider.className = CLASSNAME$11;
|
|
10805
10805
|
ListDivider.defaultProps = DEFAULT_PROPS$V;
|
|
10806
10806
|
|
|
@@ -10851,7 +10851,7 @@ const CommentBlockVariant = {
|
|
|
10851
10851
|
/**
|
|
10852
10852
|
* Component display name.
|
|
10853
10853
|
*/
|
|
10854
|
-
const COMPONENT_NAME$
|
|
10854
|
+
const COMPONENT_NAME$13 = 'CommentBlock';
|
|
10855
10855
|
|
|
10856
10856
|
/**
|
|
10857
10857
|
* Component default class name and class prefix.
|
|
@@ -10962,7 +10962,7 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
10962
10962
|
})]
|
|
10963
10963
|
});
|
|
10964
10964
|
});
|
|
10965
|
-
CommentBlock.displayName = COMPONENT_NAME$
|
|
10965
|
+
CommentBlock.displayName = COMPONENT_NAME$13;
|
|
10966
10966
|
CommentBlock.className = CLASSNAME$10;
|
|
10967
10967
|
CommentBlock.defaultProps = DEFAULT_PROPS$U;
|
|
10968
10968
|
|
|
@@ -10984,7 +10984,7 @@ const isDateValid = date => date instanceof Date && !Number.isNaN(date.getTime()
|
|
|
10984
10984
|
/**
|
|
10985
10985
|
* Component display name.
|
|
10986
10986
|
*/
|
|
10987
|
-
const COMPONENT_NAME$
|
|
10987
|
+
const COMPONENT_NAME$12 = 'DatePicker';
|
|
10988
10988
|
|
|
10989
10989
|
/**
|
|
10990
10990
|
* Component default class name and class prefix.
|
|
@@ -11221,7 +11221,7 @@ const {
|
|
|
11221
11221
|
/**
|
|
11222
11222
|
* Component display name.
|
|
11223
11223
|
*/
|
|
11224
|
-
const COMPONENT_NAME$
|
|
11224
|
+
const COMPONENT_NAME$11 = 'DatePickerControlled';
|
|
11225
11225
|
|
|
11226
11226
|
/**
|
|
11227
11227
|
* DatePickerControlled component.
|
|
@@ -11411,7 +11411,7 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
11411
11411
|
})]
|
|
11412
11412
|
});
|
|
11413
11413
|
});
|
|
11414
|
-
DatePickerControlled.displayName = COMPONENT_NAME$
|
|
11414
|
+
DatePickerControlled.displayName = COMPONENT_NAME$11;
|
|
11415
11415
|
DatePickerControlled.className = CLASSNAME$$;
|
|
11416
11416
|
|
|
11417
11417
|
/**
|
|
@@ -11454,7 +11454,7 @@ const DatePicker = forwardRef((props, ref) => {
|
|
|
11454
11454
|
onMonthChange: setSelectedMonth
|
|
11455
11455
|
});
|
|
11456
11456
|
});
|
|
11457
|
-
DatePicker.displayName = COMPONENT_NAME$
|
|
11457
|
+
DatePicker.displayName = COMPONENT_NAME$12;
|
|
11458
11458
|
DatePicker.className = CLASSNAME$$;
|
|
11459
11459
|
|
|
11460
11460
|
const useBooleanState = defaultValue => {
|
|
@@ -11468,7 +11468,7 @@ const useBooleanState = defaultValue => {
|
|
|
11468
11468
|
/**
|
|
11469
11469
|
* Component display name.
|
|
11470
11470
|
*/
|
|
11471
|
-
const COMPONENT_NAME
|
|
11471
|
+
const COMPONENT_NAME$10 = 'DatePickerField';
|
|
11472
11472
|
|
|
11473
11473
|
/**
|
|
11474
11474
|
* DatePickerField component.
|
|
@@ -11557,7 +11557,7 @@ const DatePickerField = forwardRef((props, ref) => {
|
|
|
11557
11557
|
}) : null]
|
|
11558
11558
|
});
|
|
11559
11559
|
});
|
|
11560
|
-
DatePickerField.displayName = COMPONENT_NAME
|
|
11560
|
+
DatePickerField.displayName = COMPONENT_NAME$10;
|
|
11561
11561
|
|
|
11562
11562
|
/**
|
|
11563
11563
|
* Convenient hook to create interaction observers.
|
|
@@ -11850,13 +11850,23 @@ const useTransitionVisibility = (ref, isComponentVisible, timeout, onVisibilityC
|
|
|
11850
11850
|
return isVisible || isComponentVisible;
|
|
11851
11851
|
};
|
|
11852
11852
|
|
|
11853
|
+
/**
|
|
11854
|
+
* Dialog label id key in IdsRegistry
|
|
11855
|
+
*/
|
|
11856
|
+
const DIALOG_LABEL_KEY = 'dialog-label';
|
|
11857
|
+
|
|
11853
11858
|
/**
|
|
11854
11859
|
* Component display name.
|
|
11855
11860
|
*/
|
|
11856
|
-
const COMPONENT_NAME
|
|
11861
|
+
const COMPONENT_NAME$$ = 'Dialog';
|
|
11857
11862
|
|
|
11858
11863
|
/**
|
|
11859
|
-
*
|
|
11864
|
+
* `DialogHeading` component display name.
|
|
11865
|
+
*/
|
|
11866
|
+
const DIALOG_HEADING_COMPONENT_NAME = 'DialogHeading';
|
|
11867
|
+
|
|
11868
|
+
/**
|
|
11869
|
+
* Component default class name and class prefix. Shared by the shell and the container modules.
|
|
11860
11870
|
*/
|
|
11861
11871
|
const CLASSNAME$_ = 'lumx-dialog';
|
|
11862
11872
|
const {
|
|
@@ -11872,46 +11882,25 @@ const DEFAULT_PROPS$T = {
|
|
|
11872
11882
|
};
|
|
11873
11883
|
|
|
11874
11884
|
/**
|
|
11875
|
-
* Dialog
|
|
11885
|
+
* Dialog shell: overlay + context providers (theme, heading level, ids registry).
|
|
11876
11886
|
*
|
|
11877
11887
|
* @param props Component props.
|
|
11878
|
-
* @param ref Component ref.
|
|
11879
11888
|
* @return React element.
|
|
11880
11889
|
*/
|
|
11881
|
-
const
|
|
11890
|
+
const DialogShell = props => {
|
|
11882
11891
|
const {
|
|
11883
11892
|
className,
|
|
11884
11893
|
ref,
|
|
11885
|
-
header,
|
|
11886
|
-
forceFooterDivider,
|
|
11887
|
-
forceHeaderDivider,
|
|
11888
|
-
footer,
|
|
11889
|
-
isLoading,
|
|
11890
11894
|
isOpen,
|
|
11891
|
-
|
|
11892
|
-
|
|
11895
|
+
isLoading,
|
|
11896
|
+
isVisible,
|
|
11893
11897
|
size = DEFAULT_PROPS$T.size,
|
|
11894
11898
|
zIndex,
|
|
11895
|
-
|
|
11896
|
-
headerChildContent,
|
|
11897
|
-
isVisible,
|
|
11899
|
+
children,
|
|
11898
11900
|
Portal,
|
|
11899
11901
|
HeadingLevelProvider,
|
|
11900
11902
|
ThemeProvider,
|
|
11901
|
-
|
|
11902
|
-
shouldPreventCloseOnClickAway,
|
|
11903
|
-
clickAwayRefs,
|
|
11904
|
-
rootRef,
|
|
11905
|
-
wrapperRef,
|
|
11906
|
-
hasTopIntersection,
|
|
11907
|
-
headerChildProps,
|
|
11908
|
-
setSentinelTop,
|
|
11909
|
-
content,
|
|
11910
|
-
setSentinelBottom,
|
|
11911
|
-
footerChildContent,
|
|
11912
|
-
footerChildProps,
|
|
11913
|
-
ProgressCircular,
|
|
11914
|
-
hasBottomIntersection,
|
|
11903
|
+
IdsRegistryProvider,
|
|
11915
11904
|
...forwardedProps
|
|
11916
11905
|
} = props;
|
|
11917
11906
|
return /*#__PURE__*/jsx(Portal, {
|
|
@@ -11933,50 +11922,8 @@ const Dialog$1 = props => {
|
|
|
11933
11922
|
level: 2,
|
|
11934
11923
|
children: /*#__PURE__*/jsx(ThemeProvider, {
|
|
11935
11924
|
value: undefined,
|
|
11936
|
-
children: /*#__PURE__*/jsx(
|
|
11937
|
-
|
|
11938
|
-
role: "dialog",
|
|
11939
|
-
"aria-modal": "true",
|
|
11940
|
-
...dialogProps,
|
|
11941
|
-
children: /*#__PURE__*/jsx(ClickAwayProvider, {
|
|
11942
|
-
callback: !shouldPreventCloseOnClickAway && handleClose,
|
|
11943
|
-
childrenRefs: clickAwayRefs,
|
|
11944
|
-
parentRef: rootRef,
|
|
11945
|
-
children: /*#__PURE__*/jsxs("section", {
|
|
11946
|
-
className: element$B('wrapper'),
|
|
11947
|
-
ref: wrapperRef,
|
|
11948
|
-
children: [(header || headerChildContent) && /*#__PURE__*/jsxs("header", {
|
|
11949
|
-
...headerChildProps,
|
|
11950
|
-
className: classnames(element$B('header', {
|
|
11951
|
-
'has-divider': Boolean(forceHeaderDivider || hasTopIntersection)
|
|
11952
|
-
}), headerChildProps?.className),
|
|
11953
|
-
children: [header, headerChildContent]
|
|
11954
|
-
}), /*#__PURE__*/jsxs("div", {
|
|
11955
|
-
ref: contentRef,
|
|
11956
|
-
className: element$B('content'),
|
|
11957
|
-
children: [/*#__PURE__*/jsx("div", {
|
|
11958
|
-
className: element$B('sentinel', {
|
|
11959
|
-
top: true
|
|
11960
|
-
}),
|
|
11961
|
-
ref: setSentinelTop
|
|
11962
|
-
}), content, /*#__PURE__*/jsx("div", {
|
|
11963
|
-
className: element$B('sentinel', {
|
|
11964
|
-
bottom: true
|
|
11965
|
-
}),
|
|
11966
|
-
ref: setSentinelBottom
|
|
11967
|
-
})]
|
|
11968
|
-
}), (footer || footerChildContent) && /*#__PURE__*/jsxs("footer", {
|
|
11969
|
-
...footerChildProps,
|
|
11970
|
-
className: classnames(element$B('footer', {
|
|
11971
|
-
'has-divider': Boolean(forceFooterDivider || hasBottomIntersection)
|
|
11972
|
-
}), footerChildProps?.className),
|
|
11973
|
-
children: [footer, footerChildContent]
|
|
11974
|
-
}), isLoading && /*#__PURE__*/jsx("div", {
|
|
11975
|
-
className: element$B('progress-overlay'),
|
|
11976
|
-
children: /*#__PURE__*/jsx(ProgressCircular, {})
|
|
11977
|
-
})]
|
|
11978
|
-
})
|
|
11979
|
-
})
|
|
11925
|
+
children: /*#__PURE__*/jsx(IdsRegistryProvider, {
|
|
11926
|
+
children: children
|
|
11980
11927
|
})
|
|
11981
11928
|
})
|
|
11982
11929
|
})]
|
|
@@ -11985,8 +11932,256 @@ const Dialog$1 = props => {
|
|
|
11985
11932
|
};
|
|
11986
11933
|
|
|
11987
11934
|
/**
|
|
11988
|
-
*
|
|
11935
|
+
* Picks the accessible-name prop (`aria-label` or `aria-labelledby`).
|
|
11936
|
+
*/
|
|
11937
|
+
function resolveAccessibleNameProps(ariaLabel, ariaLabelledBy) {
|
|
11938
|
+
if (ariaLabel) {
|
|
11939
|
+
return {
|
|
11940
|
+
'aria-label': ariaLabel
|
|
11941
|
+
};
|
|
11942
|
+
}
|
|
11943
|
+
if (ariaLabelledBy) {
|
|
11944
|
+
return {
|
|
11945
|
+
'aria-labelledby': ariaLabelledBy
|
|
11946
|
+
};
|
|
11947
|
+
}
|
|
11948
|
+
return undefined;
|
|
11949
|
+
}
|
|
11950
|
+
|
|
11951
|
+
/**
|
|
11952
|
+
* Props of the dialog content: the `role="dialog"` element (which carries `aria-labelledby`) and
|
|
11953
|
+
* everything inside it (header, body, footer). It is meant to be rendered by a framework component
|
|
11954
|
+
* that has resolved `labelId` from the ids registry.
|
|
11955
|
+
*/
|
|
11956
|
+
|
|
11957
|
+
/**
|
|
11958
|
+
* Dialog content: the `role="dialog"` element + header/body/footer.
|
|
11959
|
+
*
|
|
11960
|
+
* @param props Component props.
|
|
11961
|
+
* @return React element.
|
|
11962
|
+
*/
|
|
11963
|
+
const DialogContent$1 = props => {
|
|
11964
|
+
const {
|
|
11965
|
+
labelId,
|
|
11966
|
+
dialogProps,
|
|
11967
|
+
handleClose,
|
|
11968
|
+
shouldPreventCloseOnClickAway,
|
|
11969
|
+
clickAwayRefs,
|
|
11970
|
+
rootRef,
|
|
11971
|
+
wrapperRef,
|
|
11972
|
+
contentRef,
|
|
11973
|
+
header,
|
|
11974
|
+
headerChildProps,
|
|
11975
|
+
headerChildContent,
|
|
11976
|
+
forceHeaderDivider,
|
|
11977
|
+
hasTopIntersection,
|
|
11978
|
+
content,
|
|
11979
|
+
setSentinelTop,
|
|
11980
|
+
setSentinelBottom,
|
|
11981
|
+
footer,
|
|
11982
|
+
footerChildProps,
|
|
11983
|
+
footerChildContent,
|
|
11984
|
+
forceFooterDivider,
|
|
11985
|
+
hasBottomIntersection,
|
|
11986
|
+
isLoading,
|
|
11987
|
+
ProgressCircular,
|
|
11988
|
+
ClickAwayProvider
|
|
11989
|
+
} = props;
|
|
11990
|
+
|
|
11991
|
+
// Strip both out of `dialogProps` before spreading it: `resolveAccessibleNameProps` picks at most one, and
|
|
11992
|
+
// leaving the other in place would let it survive underneath the spread below.
|
|
11993
|
+
const {
|
|
11994
|
+
'aria-label': dialogAriaLabel,
|
|
11995
|
+
'aria-labelledby': dialogAriaLabelledBy,
|
|
11996
|
+
...restDialogProps
|
|
11997
|
+
} = dialogProps ?? {};
|
|
11998
|
+
return /*#__PURE__*/jsx("div", {
|
|
11999
|
+
className: element$B('container'),
|
|
12000
|
+
role: "dialog",
|
|
12001
|
+
"aria-modal": "true",
|
|
12002
|
+
...restDialogProps,
|
|
12003
|
+
...resolveAccessibleNameProps(dialogAriaLabel, dialogAriaLabelledBy || labelId),
|
|
12004
|
+
children: /*#__PURE__*/jsx(ClickAwayProvider, {
|
|
12005
|
+
callback: !shouldPreventCloseOnClickAway && handleClose,
|
|
12006
|
+
childrenRefs: clickAwayRefs,
|
|
12007
|
+
parentRef: rootRef,
|
|
12008
|
+
children: /*#__PURE__*/jsxs("section", {
|
|
12009
|
+
className: element$B('wrapper'),
|
|
12010
|
+
ref: wrapperRef,
|
|
12011
|
+
children: [(header || headerChildContent) && /*#__PURE__*/jsxs("header", {
|
|
12012
|
+
...headerChildProps,
|
|
12013
|
+
className: classnames(element$B('header', {
|
|
12014
|
+
'has-divider': Boolean(forceHeaderDivider || hasTopIntersection)
|
|
12015
|
+
}), headerChildProps?.className),
|
|
12016
|
+
children: [header, headerChildContent]
|
|
12017
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
12018
|
+
ref: contentRef,
|
|
12019
|
+
className: element$B('content'),
|
|
12020
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
12021
|
+
className: element$B('sentinel', {
|
|
12022
|
+
top: true
|
|
12023
|
+
}),
|
|
12024
|
+
ref: setSentinelTop
|
|
12025
|
+
}), content, /*#__PURE__*/jsx("div", {
|
|
12026
|
+
className: element$B('sentinel', {
|
|
12027
|
+
bottom: true
|
|
12028
|
+
}),
|
|
12029
|
+
ref: setSentinelBottom
|
|
12030
|
+
})]
|
|
12031
|
+
}), (footer || footerChildContent) && /*#__PURE__*/jsxs("footer", {
|
|
12032
|
+
...footerChildProps,
|
|
12033
|
+
className: classnames(element$B('footer', {
|
|
12034
|
+
'has-divider': Boolean(forceFooterDivider || hasBottomIntersection)
|
|
12035
|
+
}), footerChildProps?.className),
|
|
12036
|
+
children: [footer, footerChildContent]
|
|
12037
|
+
}), isLoading && /*#__PURE__*/jsx("div", {
|
|
12038
|
+
className: element$B('progress-overlay'),
|
|
12039
|
+
children: /*#__PURE__*/jsx(ProgressCircular, {})
|
|
12040
|
+
})]
|
|
12041
|
+
})
|
|
12042
|
+
})
|
|
12043
|
+
});
|
|
12044
|
+
};
|
|
12045
|
+
|
|
12046
|
+
/**
|
|
12047
|
+
* Internal "ids registry" contract shared between framework wrappers (`@lumx/react`, `@lumx/vue`).
|
|
12048
|
+
*/
|
|
12049
|
+
|
|
12050
|
+
/**
|
|
12051
|
+
* Create a standalone ids registry.
|
|
12052
|
+
*
|
|
12053
|
+
* Can be used to store ids for 'aria-labelledby' or 'aria-describedby'. Registrations under the same key are
|
|
12054
|
+
* kept as a stack (most recently registered wins); a registrant clearing itself only affects the top of the
|
|
12055
|
+
* stack if it put itself there, so an older still-registered registrant is restored instead of the key going
|
|
12056
|
+
* empty.
|
|
12057
|
+
*/
|
|
12058
|
+
function createIdsRegistry() {
|
|
12059
|
+
const stacks = new Map();
|
|
12060
|
+
const listeners = new Map();
|
|
12061
|
+
const topId = key => {
|
|
12062
|
+
const stack = stacks.get(key);
|
|
12063
|
+
return stack?.[stack.length - 1]?.id;
|
|
12064
|
+
};
|
|
12065
|
+
return {
|
|
12066
|
+
getId: topId,
|
|
12067
|
+
setId(key, token, id) {
|
|
12068
|
+
const previousTopId = topId(key);
|
|
12069
|
+
const stack = stacks.get(key) ?? [];
|
|
12070
|
+
const index = stack.findIndex(entry => entry.token === token);
|
|
12071
|
+
if (index !== -1) stack.splice(index, 1);
|
|
12072
|
+
if (id !== undefined) stack.push({
|
|
12073
|
+
token,
|
|
12074
|
+
id
|
|
12075
|
+
});
|
|
12076
|
+
if (stack.length) {
|
|
12077
|
+
stacks.set(key, stack);
|
|
12078
|
+
} else {
|
|
12079
|
+
stacks.delete(key);
|
|
12080
|
+
}
|
|
12081
|
+
if (topId(key) === previousTopId) return;
|
|
12082
|
+
const set = listeners.get(key);
|
|
12083
|
+
if (set) {
|
|
12084
|
+
// Copy: a listener may unsubscribe (e.g. on unmount) during this loop.
|
|
12085
|
+
const frozenListeners = [...set];
|
|
12086
|
+
for (const listener of frozenListeners) {
|
|
12087
|
+
listener(key);
|
|
12088
|
+
}
|
|
12089
|
+
}
|
|
12090
|
+
},
|
|
12091
|
+
subscribe(key, listener) {
|
|
12092
|
+
let set = listeners.get(key);
|
|
12093
|
+
if (!set) {
|
|
12094
|
+
set = new Set();
|
|
12095
|
+
listeners.set(key, set);
|
|
12096
|
+
}
|
|
12097
|
+
set.add(listener);
|
|
12098
|
+
return () => {
|
|
12099
|
+
set.delete(listener);
|
|
12100
|
+
if (set.size === 0) listeners.delete(key);
|
|
12101
|
+
};
|
|
12102
|
+
}
|
|
12103
|
+
};
|
|
12104
|
+
}
|
|
12105
|
+
|
|
12106
|
+
/**
|
|
12107
|
+
* Internal "ids registry" context.
|
|
12108
|
+
*
|
|
12109
|
+
* Not exported from the package barrel - lets a container expose ids registered by its descendants
|
|
12110
|
+
* under well-known names, without either side knowing about the other upfront (e.g. to wire up
|
|
12111
|
+
* `aria-labelledby`/`aria-describedby` between components that don't know about each other).
|
|
12112
|
+
*
|
|
12113
|
+
* `undefined` outside of any provider - `useRegisterId`/`useRegisteredId` are no-ops in that case.
|
|
12114
|
+
*
|
|
12115
|
+
* See `IdsRegistry` in `@lumx/core` for the shared contract.
|
|
12116
|
+
*/
|
|
12117
|
+
const IdsRegistryContext = /*#__PURE__*/createContext(undefined);
|
|
12118
|
+
|
|
12119
|
+
/**
|
|
12120
|
+
* Provides a fresh ids registry to its subtree. The registry instance is stable for the lifetime of
|
|
12121
|
+
* the provider, so registering/reading an id never re-renders the whole subtree - only the
|
|
12122
|
+
* components subscribed (via `useRegisteredId`) to the name that changed.
|
|
11989
12123
|
*/
|
|
12124
|
+
const IdsRegistryProvider = ({
|
|
12125
|
+
children
|
|
12126
|
+
}) => {
|
|
12127
|
+
const [registry] = useState(createIdsRegistry);
|
|
12128
|
+
return /*#__PURE__*/jsx(IdsRegistryContext.Provider, {
|
|
12129
|
+
value: registry,
|
|
12130
|
+
children: children
|
|
12131
|
+
});
|
|
12132
|
+
};
|
|
12133
|
+
|
|
12134
|
+
/**
|
|
12135
|
+
* Register `id` under `key` in the enclosing ids registry on mount, and clear it on unmount.
|
|
12136
|
+
* Last registered wins; if another registrant is still mounted under the same key, clearing this
|
|
12137
|
+
* one falls back to it instead of leaving the key empty.
|
|
12138
|
+
*
|
|
12139
|
+
* @param key Registry key to store the id under.
|
|
12140
|
+
* @param id Id of the element to register.
|
|
12141
|
+
*/
|
|
12142
|
+
function useRegisterId(key, id) {
|
|
12143
|
+
const registry = useContext(IdsRegistryContext);
|
|
12144
|
+
const token = useRef({}).current;
|
|
12145
|
+
useEffect(() => {
|
|
12146
|
+
registry?.setId(key, token, id);
|
|
12147
|
+
return () => registry?.setId(key, token, undefined);
|
|
12148
|
+
}, [registry, key, id, token]);
|
|
12149
|
+
}
|
|
12150
|
+
|
|
12151
|
+
/**
|
|
12152
|
+
* Subscribe to the id currently registered under `key` in the enclosing ids registry. Re-renders
|
|
12153
|
+
* the calling component only when that key's id changes.
|
|
12154
|
+
*
|
|
12155
|
+
* @param key Registry key to read.
|
|
12156
|
+
* @return The registered id, or `undefined` when none is registered / outside any provider.
|
|
12157
|
+
*/
|
|
12158
|
+
function useRegisteredId(key) {
|
|
12159
|
+
const registry = useContext(IdsRegistryContext);
|
|
12160
|
+
const [id, setId] = useState(() => registry?.getId(key));
|
|
12161
|
+
useEffect(() => {
|
|
12162
|
+
if (!registry) return undefined;
|
|
12163
|
+
// Sync once in case the id was registered between render and this effect running.
|
|
12164
|
+
setId(registry.getId(key));
|
|
12165
|
+
return registry.subscribe(key, () => setId(registry.getId(key)));
|
|
12166
|
+
}, [registry, key]);
|
|
12167
|
+
return id;
|
|
12168
|
+
}
|
|
12169
|
+
|
|
12170
|
+
/**
|
|
12171
|
+
* Renders the core `DialogContent`, resolving its `aria-labelledby` from the ids registry.
|
|
12172
|
+
*
|
|
12173
|
+
* Must render as a descendant of the `IdsRegistryProvider` set up by the core `DialogShell` (which is
|
|
12174
|
+
* why it is its own component: the subscription hook needs to run below the provider). Internal to the
|
|
12175
|
+
* dialog family - not exported from the package barrel.
|
|
12176
|
+
*/
|
|
12177
|
+
const DialogContent = props => {
|
|
12178
|
+
const labelId = useRegisteredId(DIALOG_LABEL_KEY);
|
|
12179
|
+
return DialogContent$1({
|
|
12180
|
+
...props,
|
|
12181
|
+
labelId
|
|
12182
|
+
});
|
|
12183
|
+
};
|
|
12184
|
+
DialogContent.displayName = 'DialogContent';
|
|
11990
12185
|
|
|
11991
12186
|
const isHeader$1 = isComponent('header');
|
|
11992
12187
|
const isFooter$1 = isComponent('footer');
|
|
@@ -12007,11 +12202,7 @@ const DEFAULT_PROPS$S = {
|
|
|
12007
12202
|
* @param ref Component ref.
|
|
12008
12203
|
* @return React element.
|
|
12009
12204
|
*/
|
|
12010
|
-
const
|
|
12011
|
-
if (!DOCUMENT) {
|
|
12012
|
-
// Can't render in SSR.
|
|
12013
|
-
return null;
|
|
12014
|
-
}
|
|
12205
|
+
const DialogBody = forwardRef((props, ref) => {
|
|
12015
12206
|
const {
|
|
12016
12207
|
children,
|
|
12017
12208
|
className,
|
|
@@ -12036,10 +12227,7 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
12036
12227
|
preventCloseOnEscape,
|
|
12037
12228
|
...forwardedProps
|
|
12038
12229
|
} = props;
|
|
12039
|
-
|
|
12040
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
12041
12230
|
const previousOpen = React__default.useRef(isOpen);
|
|
12042
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
12043
12231
|
React__default.useEffect(() => {
|
|
12044
12232
|
if (isOpen !== previousOpen.current) {
|
|
12045
12233
|
previousOpen.current = isOpen;
|
|
@@ -12051,30 +12239,18 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
12051
12239
|
}
|
|
12052
12240
|
}, [isOpen, parentElement]);
|
|
12053
12241
|
const shouldPreventCloseOnEscape = preventAutoClose || preventCloseOnEscape;
|
|
12054
|
-
|
|
12055
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
12056
12242
|
useCallbackOnEscape(onClose, isOpen && !shouldPreventCloseOnEscape);
|
|
12057
|
-
|
|
12058
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
12059
12243
|
const wrapperRef = useRef(null);
|
|
12060
12244
|
/**
|
|
12061
12245
|
* Since the `contentRef` comes from the parent and is optional,
|
|
12062
12246
|
* we need to create a stable contentRef that will always be available.
|
|
12063
12247
|
*/
|
|
12064
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
12065
12248
|
const localContentRef = useRef(null);
|
|
12066
12249
|
// Handle focus trap.
|
|
12067
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
12068
12250
|
useFocusTrap(isOpen && wrapperRef.current, focusElement?.current);
|
|
12069
|
-
|
|
12070
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
12071
12251
|
useDisableBodyScroll(disableBodyScroll && isOpen && localContentRef.current);
|
|
12072
|
-
|
|
12073
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
12074
12252
|
const [sentinelTop, setSentinelTop] = useState(null);
|
|
12075
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
12076
12253
|
const [sentinelBottom, setSentinelBottom] = useState(null);
|
|
12077
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
12078
12254
|
const intersections = useIntersectionObserver([sentinelTop, sentinelBottom], {
|
|
12079
12255
|
threshold: [0, 1]
|
|
12080
12256
|
});
|
|
@@ -12082,62 +12258,239 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
12082
12258
|
const hasBottomIntersection = sentinelBottom && !(intersections.get(sentinelBottom)?.isIntersecting ?? true);
|
|
12083
12259
|
|
|
12084
12260
|
// Separate header, footer and dialog content from children.
|
|
12085
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
12086
12261
|
const [[headerChild], [footerChild], content] = useMemo(() => partitionMulti(Children.toArray(children), [isHeader$1, isFooter$1]), [children]);
|
|
12087
12262
|
const headerChildProps = headerChild?.props;
|
|
12088
12263
|
const headerChildContent = headerChildProps?.children;
|
|
12089
12264
|
const footerChildProps = footerChild?.props;
|
|
12090
12265
|
const footerChildContent = footerChildProps?.children;
|
|
12091
|
-
|
|
12092
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
12093
12266
|
const clickAwayRefs = useRef([wrapperRef]);
|
|
12094
|
-
|
|
12095
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
12096
12267
|
const rootRef = useRef(null);
|
|
12268
|
+
const isVisible = useTransitionVisibility(rootRef, Boolean(isOpen), DIALOG_TRANSITION_DURATION, onVisibilityChange);
|
|
12269
|
+
const shouldPreventCloseOnClickAway = preventAutoClose || preventCloseOnClick;
|
|
12270
|
+
const isMounted = isOpen || isVisible || closeMode === 'hide';
|
|
12271
|
+
if (!isMounted) return null;
|
|
12272
|
+
return DialogShell({
|
|
12273
|
+
Portal,
|
|
12274
|
+
HeadingLevelProvider,
|
|
12275
|
+
ThemeProvider,
|
|
12276
|
+
IdsRegistryProvider,
|
|
12277
|
+
className,
|
|
12278
|
+
isLoading,
|
|
12279
|
+
isOpen,
|
|
12280
|
+
isVisible,
|
|
12281
|
+
size,
|
|
12282
|
+
zIndex,
|
|
12283
|
+
ref: mergeRefs(rootRef, ref),
|
|
12284
|
+
...forwardedProps,
|
|
12285
|
+
children: /*#__PURE__*/jsx(DialogContent, {
|
|
12286
|
+
ClickAwayProvider: ClickAwayProvider,
|
|
12287
|
+
ProgressCircular: ProgressCircular,
|
|
12288
|
+
clickAwayRefs: clickAwayRefs,
|
|
12289
|
+
content: content,
|
|
12290
|
+
contentRef: mergeRefs(localContentRef, contentRef),
|
|
12291
|
+
dialogProps: dialogProps,
|
|
12292
|
+
footer: footer,
|
|
12293
|
+
footerChildContent: footerChildContent,
|
|
12294
|
+
footerChildProps: footerChildProps,
|
|
12295
|
+
forceFooterDivider: forceFooterDivider,
|
|
12296
|
+
forceHeaderDivider: forceHeaderDivider,
|
|
12297
|
+
handleClose: onClose,
|
|
12298
|
+
hasBottomIntersection: hasBottomIntersection,
|
|
12299
|
+
hasTopIntersection: hasTopIntersection,
|
|
12300
|
+
header: header,
|
|
12301
|
+
headerChildContent: headerChildContent,
|
|
12302
|
+
headerChildProps: headerChildProps,
|
|
12303
|
+
isLoading: isLoading,
|
|
12304
|
+
rootRef: rootRef,
|
|
12305
|
+
setSentinelBottom: setSentinelBottom,
|
|
12306
|
+
setSentinelTop: setSentinelTop,
|
|
12307
|
+
shouldPreventCloseOnClickAway: shouldPreventCloseOnClickAway,
|
|
12308
|
+
wrapperRef: wrapperRef
|
|
12309
|
+
})
|
|
12310
|
+
});
|
|
12311
|
+
});
|
|
12312
|
+
DialogBody.displayName = 'DialogBody';
|
|
12313
|
+
const Dialog = forwardRef((props, ref) => {
|
|
12314
|
+
if (!DOCUMENT) {
|
|
12315
|
+
// Can't render in SSR.
|
|
12316
|
+
return null;
|
|
12317
|
+
}
|
|
12318
|
+
return /*#__PURE__*/jsx(DialogBody, {
|
|
12319
|
+
...props,
|
|
12320
|
+
ref: ref
|
|
12321
|
+
});
|
|
12322
|
+
});
|
|
12323
|
+
Dialog.displayName = COMPONENT_NAME$$;
|
|
12324
|
+
Dialog.className = CLASSNAME$_;
|
|
12325
|
+
Dialog.defaultProps = DEFAULT_PROPS$S;
|
|
12326
|
+
|
|
12327
|
+
/** The maximum authorized heading level. */
|
|
12328
|
+
const MAX_HEADING_LEVEL = 6;
|
|
12329
|
+
|
|
12330
|
+
/**
|
|
12331
|
+
* Typography to use by default depending on the heading level.
|
|
12332
|
+
*/
|
|
12333
|
+
const DEFAULT_TYPOGRAPHY_BY_LEVEL = {
|
|
12334
|
+
h1: Typography.display1,
|
|
12335
|
+
h2: Typography.headline,
|
|
12336
|
+
h3: Typography.title,
|
|
12337
|
+
h4: Typography.subtitle2,
|
|
12338
|
+
h5: Typography.subtitle1,
|
|
12339
|
+
h6: Typography.body2
|
|
12340
|
+
};
|
|
12341
|
+
const defaultContext = {
|
|
12342
|
+
level: 1,
|
|
12343
|
+
headingElement: 'h1'
|
|
12344
|
+
};
|
|
12345
|
+
|
|
12346
|
+
/**
|
|
12347
|
+
* Defines the props of the component.
|
|
12348
|
+
*/
|
|
12349
|
+
|
|
12350
|
+
/**
|
|
12351
|
+
* Component display name.
|
|
12352
|
+
*/
|
|
12353
|
+
const COMPONENT_NAME$_ = 'Heading';
|
|
12354
|
+
|
|
12355
|
+
/**
|
|
12356
|
+
* Component default class name and class prefix.
|
|
12357
|
+
*/
|
|
12358
|
+
const CLASSNAME$Z = 'lumx-heading';
|
|
12359
|
+
|
|
12360
|
+
/**
|
|
12361
|
+
* Component default props.
|
|
12362
|
+
*/
|
|
12363
|
+
const DEFAULT_PROPS$R = {};
|
|
12364
|
+
|
|
12365
|
+
/**
|
|
12366
|
+
* Get Heading component common props
|
|
12367
|
+
*
|
|
12368
|
+
* @param props Component props.
|
|
12369
|
+
* @param contextHeadingElement Heading element from context.
|
|
12370
|
+
* @return Common Props
|
|
12371
|
+
*/
|
|
12372
|
+
const getHeadingProps = (props, contextHeadingElement) => {
|
|
12373
|
+
const {
|
|
12374
|
+
as,
|
|
12375
|
+
className,
|
|
12376
|
+
typography,
|
|
12377
|
+
...otherProps
|
|
12378
|
+
} = props;
|
|
12379
|
+
const computedHeadingElement = as || contextHeadingElement || 'h1';
|
|
12380
|
+
return {
|
|
12381
|
+
...otherProps,
|
|
12382
|
+
as: computedHeadingElement,
|
|
12383
|
+
className: classnames(className, CLASSNAME$Z),
|
|
12384
|
+
typography: typography || DEFAULT_TYPOGRAPHY_BY_LEVEL[computedHeadingElement]
|
|
12385
|
+
};
|
|
12386
|
+
};
|
|
12387
|
+
|
|
12388
|
+
const HeadingLevelContext = /*#__PURE__*/createContext(defaultContext);
|
|
12389
|
+
|
|
12390
|
+
const useHeadingLevel = () => {
|
|
12391
|
+
const {
|
|
12392
|
+
level = 1,
|
|
12393
|
+
headingElement = 'h1'
|
|
12394
|
+
} = React__default.useContext(HeadingLevelContext);
|
|
12395
|
+
return {
|
|
12396
|
+
level,
|
|
12397
|
+
headingElement
|
|
12398
|
+
};
|
|
12399
|
+
};
|
|
12400
|
+
|
|
12401
|
+
/**
|
|
12402
|
+
* Renders a heading component.
|
|
12403
|
+
* Extends the `Text` Component with the heading level automatically computed based on
|
|
12404
|
+
* the current level provided by the context.
|
|
12405
|
+
*/
|
|
12406
|
+
const Heading = forwardRef((props, ref) => {
|
|
12407
|
+
const {
|
|
12408
|
+
children,
|
|
12409
|
+
...otherProps
|
|
12410
|
+
} = props;
|
|
12411
|
+
const {
|
|
12412
|
+
headingElement
|
|
12413
|
+
} = useHeadingLevel();
|
|
12414
|
+
const headingProps = getHeadingProps(otherProps, headingElement);
|
|
12415
|
+
return /*#__PURE__*/jsx(Text, {
|
|
12416
|
+
ref: ref,
|
|
12417
|
+
...headingProps,
|
|
12418
|
+
children: children
|
|
12419
|
+
});
|
|
12420
|
+
});
|
|
12421
|
+
Heading.displayName = COMPONENT_NAME$_;
|
|
12422
|
+
Heading.className = CLASSNAME$Z;
|
|
12423
|
+
Heading.defaultProps = DEFAULT_PROPS$R;
|
|
12424
|
+
|
|
12425
|
+
/**
|
|
12426
|
+
* Computes the next heading level based on the optional prop level or the parent context level.
|
|
12427
|
+
*
|
|
12428
|
+
* @param levelProp - The explicit level provided via props (optional).
|
|
12429
|
+
* @param parentLevel - The level from the parent context.
|
|
12430
|
+
* @returns The calculated heading level, clamped to the maximum allowed level.
|
|
12431
|
+
*/
|
|
12432
|
+
const computeHeadingLevel = (levelProp, parentLevel) => {
|
|
12433
|
+
const nextLevel = levelProp || parentLevel + 1;
|
|
12434
|
+
return nextLevel > MAX_HEADING_LEVEL ? MAX_HEADING_LEVEL : nextLevel;
|
|
12435
|
+
};
|
|
12436
|
+
|
|
12437
|
+
/**
|
|
12438
|
+
* Provide a new heading level context.
|
|
12439
|
+
*/
|
|
12440
|
+
const HeadingLevelProvider = ({
|
|
12441
|
+
children,
|
|
12442
|
+
level
|
|
12443
|
+
}) => {
|
|
12444
|
+
const {
|
|
12445
|
+
level: contextLevel
|
|
12446
|
+
} = useHeadingLevel();
|
|
12447
|
+
const nextLevel = computeHeadingLevel(level, contextLevel);
|
|
12448
|
+
const headingElement = `h${nextLevel}`;
|
|
12449
|
+
return /*#__PURE__*/jsx(HeadingLevelContext.Provider, {
|
|
12450
|
+
value: {
|
|
12451
|
+
level: nextLevel,
|
|
12452
|
+
headingElement
|
|
12453
|
+
},
|
|
12454
|
+
children: children
|
|
12455
|
+
});
|
|
12456
|
+
};
|
|
12097
12457
|
|
|
12098
|
-
|
|
12099
|
-
|
|
12100
|
-
|
|
12101
|
-
|
|
12102
|
-
|
|
12103
|
-
|
|
12104
|
-
|
|
12105
|
-
|
|
12106
|
-
|
|
12107
|
-
|
|
12108
|
-
|
|
12109
|
-
|
|
12110
|
-
|
|
12111
|
-
|
|
12112
|
-
|
|
12113
|
-
|
|
12114
|
-
|
|
12115
|
-
|
|
12116
|
-
|
|
12117
|
-
|
|
12118
|
-
|
|
12119
|
-
|
|
12120
|
-
|
|
12121
|
-
headerChildContent,
|
|
12122
|
-
ProgressCircular,
|
|
12123
|
-
headerChildProps,
|
|
12124
|
-
isLoading,
|
|
12125
|
-
isOpen,
|
|
12126
|
-
isVisible,
|
|
12127
|
-
ref: mergeRefs(rootRef, ref),
|
|
12128
|
-
rootRef,
|
|
12129
|
-
setSentinelBottom,
|
|
12130
|
-
setSentinelTop,
|
|
12131
|
-
shouldPreventCloseOnClickAway,
|
|
12132
|
-
size,
|
|
12133
|
-
wrapperRef,
|
|
12134
|
-
zIndex,
|
|
12458
|
+
/**
|
|
12459
|
+
* Names the enclosing dialog-like container (`Dialog`, `Lightbox`, `PopoverDialog`, ...).
|
|
12460
|
+
*
|
|
12461
|
+
* Thin wrapper over `Heading` that generates its own id (or uses the consumer-supplied `id`),
|
|
12462
|
+
* and registers it with the nearest ids registry on mount so the container can link itself to
|
|
12463
|
+
* this heading via `aria-labelledby`. Deregisters on unmount.
|
|
12464
|
+
*
|
|
12465
|
+
* Defaults its typography to `Typography.title` (overridable via the `typography` prop).
|
|
12466
|
+
*
|
|
12467
|
+
* If two `DialogHeading`s are rendered within the same container, the last one registered wins.
|
|
12468
|
+
*
|
|
12469
|
+
* @example
|
|
12470
|
+
* <Dialog isOpen={isOpen}>
|
|
12471
|
+
* <header>
|
|
12472
|
+
* <Toolbar label={<DialogHeading>My dialog</DialogHeading>} />
|
|
12473
|
+
* </header>
|
|
12474
|
+
* ...
|
|
12475
|
+
* </Dialog>
|
|
12476
|
+
*/
|
|
12477
|
+
const DialogHeading = forwardRef((props, ref) => {
|
|
12478
|
+
const {
|
|
12479
|
+
id,
|
|
12480
|
+
typography = Typography$1.title,
|
|
12135
12481
|
...forwardedProps
|
|
12136
|
-
}
|
|
12482
|
+
} = props;
|
|
12483
|
+
const generatedId = useId();
|
|
12484
|
+
const headingId = id || generatedId;
|
|
12485
|
+
useRegisterId(DIALOG_LABEL_KEY, headingId);
|
|
12486
|
+
return /*#__PURE__*/jsx(Heading, {
|
|
12487
|
+
ref: ref,
|
|
12488
|
+
id: headingId,
|
|
12489
|
+
typography: typography,
|
|
12490
|
+
...forwardedProps
|
|
12491
|
+
});
|
|
12137
12492
|
});
|
|
12138
|
-
|
|
12139
|
-
Dialog.className = CLASSNAME$_;
|
|
12140
|
-
Dialog.defaultProps = DEFAULT_PROPS$S;
|
|
12493
|
+
DialogHeading.displayName = DIALOG_HEADING_COMPONENT_NAME;
|
|
12141
12494
|
|
|
12142
12495
|
/**
|
|
12143
12496
|
* Component display name.
|
|
@@ -12147,10 +12500,10 @@ const COMPONENT_NAME$Z = 'Divider';
|
|
|
12147
12500
|
/**
|
|
12148
12501
|
* Component default class name and class prefix.
|
|
12149
12502
|
*/
|
|
12150
|
-
const CLASSNAME$
|
|
12503
|
+
const CLASSNAME$Y = 'lumx-divider';
|
|
12151
12504
|
const {
|
|
12152
12505
|
block: block$L
|
|
12153
|
-
} = bem(CLASSNAME$
|
|
12506
|
+
} = bem(CLASSNAME$Y);
|
|
12154
12507
|
|
|
12155
12508
|
/**
|
|
12156
12509
|
* Divider component.
|
|
@@ -12181,7 +12534,7 @@ const Divider$1 = props => {
|
|
|
12181
12534
|
/**
|
|
12182
12535
|
* Component default props.
|
|
12183
12536
|
*/
|
|
12184
|
-
const DEFAULT_PROPS$
|
|
12537
|
+
const DEFAULT_PROPS$Q = {};
|
|
12185
12538
|
|
|
12186
12539
|
/**
|
|
12187
12540
|
* Divider component.
|
|
@@ -12203,8 +12556,8 @@ const Divider = forwardRef((props, ref) => {
|
|
|
12203
12556
|
});
|
|
12204
12557
|
});
|
|
12205
12558
|
Divider.displayName = COMPONENT_NAME$Z;
|
|
12206
|
-
Divider.className = CLASSNAME$
|
|
12207
|
-
Divider.defaultProps = DEFAULT_PROPS$
|
|
12559
|
+
Divider.className = CLASSNAME$Y;
|
|
12560
|
+
Divider.defaultProps = DEFAULT_PROPS$Q;
|
|
12208
12561
|
|
|
12209
12562
|
/**
|
|
12210
12563
|
* Component display name.
|
|
@@ -12214,10 +12567,10 @@ const COMPONENT_NAME$Y = 'DragHandle';
|
|
|
12214
12567
|
/**
|
|
12215
12568
|
* Component default class name and class prefix.
|
|
12216
12569
|
*/
|
|
12217
|
-
const CLASSNAME$
|
|
12570
|
+
const CLASSNAME$X = 'lumx-drag-handle';
|
|
12218
12571
|
const {
|
|
12219
12572
|
block: block$K
|
|
12220
|
-
} = bem(CLASSNAME$
|
|
12573
|
+
} = bem(CLASSNAME$X);
|
|
12221
12574
|
|
|
12222
12575
|
/**
|
|
12223
12576
|
* DragHandle component.
|
|
@@ -12253,7 +12606,7 @@ const DragHandle$1 = props => {
|
|
|
12253
12606
|
/**
|
|
12254
12607
|
* Component default props.
|
|
12255
12608
|
*/
|
|
12256
|
-
const DEFAULT_PROPS$
|
|
12609
|
+
const DEFAULT_PROPS$P = {};
|
|
12257
12610
|
|
|
12258
12611
|
/**
|
|
12259
12612
|
* DragHandle component.
|
|
@@ -12275,8 +12628,8 @@ const DragHandle = forwardRef((props, ref) => {
|
|
|
12275
12628
|
});
|
|
12276
12629
|
});
|
|
12277
12630
|
DragHandle.displayName = COMPONENT_NAME$Y;
|
|
12278
|
-
DragHandle.className = CLASSNAME$
|
|
12279
|
-
DragHandle.defaultProps = DEFAULT_PROPS$
|
|
12631
|
+
DragHandle.className = CLASSNAME$X;
|
|
12632
|
+
DragHandle.defaultProps = DEFAULT_PROPS$P;
|
|
12280
12633
|
|
|
12281
12634
|
const INITIAL_INDEX = -1;
|
|
12282
12635
|
|
|
@@ -12470,7 +12823,7 @@ const InternalList = forwardRef((props, ref) => {
|
|
|
12470
12823
|
itemPadding: adjustedItemPadding
|
|
12471
12824
|
});
|
|
12472
12825
|
});
|
|
12473
|
-
InternalList.displayName = COMPONENT_NAME$
|
|
12826
|
+
InternalList.displayName = COMPONENT_NAME$1k;
|
|
12474
12827
|
InternalList.className = CLASSNAME$1h;
|
|
12475
12828
|
InternalList.defaultProps = DEFAULT_PROPS$$;
|
|
12476
12829
|
const List = Object.assign(InternalList, {
|
|
@@ -12526,16 +12879,16 @@ const COMPONENT_NAME$X = 'Dropdown';
|
|
|
12526
12879
|
/**
|
|
12527
12880
|
* Component default class name and class prefix.
|
|
12528
12881
|
*/
|
|
12529
|
-
const CLASSNAME$
|
|
12882
|
+
const CLASSNAME$W = 'lumx-dropdown';
|
|
12530
12883
|
const {
|
|
12531
12884
|
block: block$J,
|
|
12532
12885
|
element: element$A
|
|
12533
|
-
} = classNames.bem(CLASSNAME$
|
|
12886
|
+
} = classNames.bem(CLASSNAME$W);
|
|
12534
12887
|
|
|
12535
12888
|
/**
|
|
12536
12889
|
* Component default props.
|
|
12537
12890
|
*/
|
|
12538
|
-
const DEFAULT_PROPS$
|
|
12891
|
+
const DEFAULT_PROPS$O = {
|
|
12539
12892
|
closeOnClick: true,
|
|
12540
12893
|
closeOnClickAway: true,
|
|
12541
12894
|
closeOnEscape: true,
|
|
@@ -12559,18 +12912,18 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
12559
12912
|
anchorRef,
|
|
12560
12913
|
children,
|
|
12561
12914
|
className,
|
|
12562
|
-
closeOnClick = DEFAULT_PROPS$
|
|
12563
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
12564
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
12565
|
-
fitToAnchorWidth = DEFAULT_PROPS$
|
|
12566
|
-
fitWithinViewportHeight = DEFAULT_PROPS$
|
|
12915
|
+
closeOnClick = DEFAULT_PROPS$O.closeOnClick,
|
|
12916
|
+
closeOnClickAway = DEFAULT_PROPS$O.closeOnClickAway,
|
|
12917
|
+
closeOnEscape = DEFAULT_PROPS$O.closeOnEscape,
|
|
12918
|
+
fitToAnchorWidth = DEFAULT_PROPS$O.fitToAnchorWidth,
|
|
12919
|
+
fitWithinViewportHeight = DEFAULT_PROPS$O.fitWithinViewportHeight,
|
|
12567
12920
|
isOpen,
|
|
12568
12921
|
offset,
|
|
12569
|
-
focusAnchorOnClose = DEFAULT_PROPS$
|
|
12922
|
+
focusAnchorOnClose = DEFAULT_PROPS$O.focusAnchorOnClose,
|
|
12570
12923
|
onClose,
|
|
12571
12924
|
onInfiniteScroll,
|
|
12572
|
-
placement = DEFAULT_PROPS$
|
|
12573
|
-
shouldFocusOnOpen = DEFAULT_PROPS$
|
|
12925
|
+
placement = DEFAULT_PROPS$O.placement,
|
|
12926
|
+
shouldFocusOnOpen = DEFAULT_PROPS$O.shouldFocusOnOpen,
|
|
12574
12927
|
zIndex,
|
|
12575
12928
|
...forwardedProps
|
|
12576
12929
|
} = props;
|
|
@@ -12615,8 +12968,8 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
12615
12968
|
}) : null;
|
|
12616
12969
|
});
|
|
12617
12970
|
Dropdown.displayName = COMPONENT_NAME$X;
|
|
12618
|
-
Dropdown.className = CLASSNAME$
|
|
12619
|
-
Dropdown.defaultProps = DEFAULT_PROPS$
|
|
12971
|
+
Dropdown.className = CLASSNAME$W;
|
|
12972
|
+
Dropdown.defaultProps = DEFAULT_PROPS$O;
|
|
12620
12973
|
|
|
12621
12974
|
/**
|
|
12622
12975
|
* Component display name.
|
|
@@ -12626,16 +12979,16 @@ const COMPONENT_NAME$W = 'ExpansionPanel';
|
|
|
12626
12979
|
/**
|
|
12627
12980
|
* Component default class name and class prefix.
|
|
12628
12981
|
*/
|
|
12629
|
-
const CLASSNAME$
|
|
12982
|
+
const CLASSNAME$V = 'lumx-expansion-panel';
|
|
12630
12983
|
const {
|
|
12631
12984
|
block: block$I,
|
|
12632
12985
|
element: element$z
|
|
12633
|
-
} = bem(CLASSNAME$
|
|
12986
|
+
} = bem(CLASSNAME$V);
|
|
12634
12987
|
|
|
12635
12988
|
/**
|
|
12636
12989
|
* Component default props.
|
|
12637
12990
|
*/
|
|
12638
|
-
const DEFAULT_PROPS$
|
|
12991
|
+
const DEFAULT_PROPS$N = {
|
|
12639
12992
|
closeMode: 'unmount'
|
|
12640
12993
|
};
|
|
12641
12994
|
|
|
@@ -12748,7 +13101,7 @@ const isFooter = isComponent('footer');
|
|
|
12748
13101
|
const ExpansionPanel = forwardRef((props, ref) => {
|
|
12749
13102
|
const defaultTheme = useTheme() || Theme$1.light;
|
|
12750
13103
|
const {
|
|
12751
|
-
closeMode = DEFAULT_PROPS$
|
|
13104
|
+
closeMode = DEFAULT_PROPS$N.closeMode,
|
|
12752
13105
|
children: anyChildren,
|
|
12753
13106
|
isOpen,
|
|
12754
13107
|
label,
|
|
@@ -12820,16 +13173,16 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
12820
13173
|
});
|
|
12821
13174
|
});
|
|
12822
13175
|
ExpansionPanel.displayName = COMPONENT_NAME$W;
|
|
12823
|
-
ExpansionPanel.className = CLASSNAME$
|
|
12824
|
-
ExpansionPanel.defaultProps = DEFAULT_PROPS$
|
|
13176
|
+
ExpansionPanel.className = CLASSNAME$V;
|
|
13177
|
+
ExpansionPanel.defaultProps = DEFAULT_PROPS$N;
|
|
12825
13178
|
|
|
12826
13179
|
const COMPONENT_NAME$V = 'Flag';
|
|
12827
|
-
const CLASSNAME$
|
|
12828
|
-
const DEFAULT_PROPS$
|
|
13180
|
+
const CLASSNAME$U = 'lumx-flag';
|
|
13181
|
+
const DEFAULT_PROPS$M = {};
|
|
12829
13182
|
const {
|
|
12830
13183
|
block: block$H,
|
|
12831
13184
|
element: element$y
|
|
12832
|
-
} = bem(CLASSNAME$
|
|
13185
|
+
} = bem(CLASSNAME$U);
|
|
12833
13186
|
|
|
12834
13187
|
/**
|
|
12835
13188
|
* Flag component.
|
|
@@ -12888,144 +13241,13 @@ const Flag = forwardRef((props, ref) => {
|
|
|
12888
13241
|
});
|
|
12889
13242
|
});
|
|
12890
13243
|
Flag.displayName = COMPONENT_NAME$V;
|
|
12891
|
-
Flag.className = CLASSNAME$
|
|
12892
|
-
Flag.defaultProps = DEFAULT_PROPS$
|
|
12893
|
-
|
|
12894
|
-
/** The maximum authorized heading level. */
|
|
12895
|
-
const MAX_HEADING_LEVEL = 6;
|
|
12896
|
-
|
|
12897
|
-
/**
|
|
12898
|
-
* Typography to use by default depending on the heading level.
|
|
12899
|
-
*/
|
|
12900
|
-
const DEFAULT_TYPOGRAPHY_BY_LEVEL = {
|
|
12901
|
-
h1: Typography.display1,
|
|
12902
|
-
h2: Typography.headline,
|
|
12903
|
-
h3: Typography.title,
|
|
12904
|
-
h4: Typography.subtitle2,
|
|
12905
|
-
h5: Typography.subtitle1,
|
|
12906
|
-
h6: Typography.body2
|
|
12907
|
-
};
|
|
12908
|
-
const defaultContext = {
|
|
12909
|
-
level: 1,
|
|
12910
|
-
headingElement: 'h1'
|
|
12911
|
-
};
|
|
12912
|
-
|
|
12913
|
-
/**
|
|
12914
|
-
* Defines the props of the component.
|
|
12915
|
-
*/
|
|
12916
|
-
|
|
12917
|
-
/**
|
|
12918
|
-
* Component display name.
|
|
12919
|
-
*/
|
|
12920
|
-
const COMPONENT_NAME$U = 'Heading';
|
|
12921
|
-
|
|
12922
|
-
/**
|
|
12923
|
-
* Component default class name and class prefix.
|
|
12924
|
-
*/
|
|
12925
|
-
const CLASSNAME$U = 'lumx-heading';
|
|
12926
|
-
|
|
12927
|
-
/**
|
|
12928
|
-
* Component default props.
|
|
12929
|
-
*/
|
|
12930
|
-
const DEFAULT_PROPS$M = {};
|
|
12931
|
-
|
|
12932
|
-
/**
|
|
12933
|
-
* Get Heading component common props
|
|
12934
|
-
*
|
|
12935
|
-
* @param props Component props.
|
|
12936
|
-
* @param contextHeadingElement Heading element from context.
|
|
12937
|
-
* @return Common Props
|
|
12938
|
-
*/
|
|
12939
|
-
const getHeadingProps = (props, contextHeadingElement) => {
|
|
12940
|
-
const {
|
|
12941
|
-
as,
|
|
12942
|
-
className,
|
|
12943
|
-
typography,
|
|
12944
|
-
...otherProps
|
|
12945
|
-
} = props;
|
|
12946
|
-
const computedHeadingElement = as || contextHeadingElement || 'h1';
|
|
12947
|
-
return {
|
|
12948
|
-
...otherProps,
|
|
12949
|
-
as: computedHeadingElement,
|
|
12950
|
-
className: classnames(className, CLASSNAME$U),
|
|
12951
|
-
typography: typography || DEFAULT_TYPOGRAPHY_BY_LEVEL[computedHeadingElement]
|
|
12952
|
-
};
|
|
12953
|
-
};
|
|
12954
|
-
|
|
12955
|
-
const HeadingLevelContext = /*#__PURE__*/createContext(defaultContext);
|
|
12956
|
-
|
|
12957
|
-
const useHeadingLevel = () => {
|
|
12958
|
-
const {
|
|
12959
|
-
level = 1,
|
|
12960
|
-
headingElement = 'h1'
|
|
12961
|
-
} = React__default.useContext(HeadingLevelContext);
|
|
12962
|
-
return {
|
|
12963
|
-
level,
|
|
12964
|
-
headingElement
|
|
12965
|
-
};
|
|
12966
|
-
};
|
|
12967
|
-
|
|
12968
|
-
/**
|
|
12969
|
-
* Renders a heading component.
|
|
12970
|
-
* Extends the `Text` Component with the heading level automatically computed based on
|
|
12971
|
-
* the current level provided by the context.
|
|
12972
|
-
*/
|
|
12973
|
-
const Heading = forwardRef((props, ref) => {
|
|
12974
|
-
const {
|
|
12975
|
-
children,
|
|
12976
|
-
...otherProps
|
|
12977
|
-
} = props;
|
|
12978
|
-
const {
|
|
12979
|
-
headingElement
|
|
12980
|
-
} = useHeadingLevel();
|
|
12981
|
-
const headingProps = getHeadingProps(otherProps, headingElement);
|
|
12982
|
-
return /*#__PURE__*/jsx(Text, {
|
|
12983
|
-
ref: ref,
|
|
12984
|
-
...headingProps,
|
|
12985
|
-
children: children
|
|
12986
|
-
});
|
|
12987
|
-
});
|
|
12988
|
-
Heading.displayName = COMPONENT_NAME$U;
|
|
12989
|
-
Heading.className = CLASSNAME$U;
|
|
12990
|
-
Heading.defaultProps = DEFAULT_PROPS$M;
|
|
12991
|
-
|
|
12992
|
-
/**
|
|
12993
|
-
* Computes the next heading level based on the optional prop level or the parent context level.
|
|
12994
|
-
*
|
|
12995
|
-
* @param levelProp - The explicit level provided via props (optional).
|
|
12996
|
-
* @param parentLevel - The level from the parent context.
|
|
12997
|
-
* @returns The calculated heading level, clamped to the maximum allowed level.
|
|
12998
|
-
*/
|
|
12999
|
-
const computeHeadingLevel = (levelProp, parentLevel) => {
|
|
13000
|
-
const nextLevel = levelProp || parentLevel + 1;
|
|
13001
|
-
return nextLevel > MAX_HEADING_LEVEL ? MAX_HEADING_LEVEL : nextLevel;
|
|
13002
|
-
};
|
|
13003
|
-
|
|
13004
|
-
/**
|
|
13005
|
-
* Provide a new heading level context.
|
|
13006
|
-
*/
|
|
13007
|
-
const HeadingLevelProvider = ({
|
|
13008
|
-
children,
|
|
13009
|
-
level
|
|
13010
|
-
}) => {
|
|
13011
|
-
const {
|
|
13012
|
-
level: contextLevel
|
|
13013
|
-
} = useHeadingLevel();
|
|
13014
|
-
const nextLevel = computeHeadingLevel(level, contextLevel);
|
|
13015
|
-
const headingElement = `h${nextLevel}`;
|
|
13016
|
-
return /*#__PURE__*/jsx(HeadingLevelContext.Provider, {
|
|
13017
|
-
value: {
|
|
13018
|
-
level: nextLevel,
|
|
13019
|
-
headingElement
|
|
13020
|
-
},
|
|
13021
|
-
children: children
|
|
13022
|
-
});
|
|
13023
|
-
};
|
|
13244
|
+
Flag.className = CLASSNAME$U;
|
|
13245
|
+
Flag.defaultProps = DEFAULT_PROPS$M;
|
|
13024
13246
|
|
|
13025
13247
|
/**
|
|
13026
13248
|
* Component display name.
|
|
13027
13249
|
*/
|
|
13028
|
-
const COMPONENT_NAME$
|
|
13250
|
+
const COMPONENT_NAME$U = 'Grid';
|
|
13029
13251
|
|
|
13030
13252
|
/**
|
|
13031
13253
|
* Component default class name and class prefix.
|
|
@@ -13074,14 +13296,14 @@ const Grid = forwardRef((props, ref) => {
|
|
|
13074
13296
|
children: children
|
|
13075
13297
|
});
|
|
13076
13298
|
});
|
|
13077
|
-
Grid.displayName = COMPONENT_NAME$
|
|
13299
|
+
Grid.displayName = COMPONENT_NAME$U;
|
|
13078
13300
|
Grid.className = CLASSNAME$T;
|
|
13079
13301
|
Grid.defaultProps = DEFAULT_PROPS$L;
|
|
13080
13302
|
|
|
13081
13303
|
/**
|
|
13082
13304
|
* Component display name.
|
|
13083
13305
|
*/
|
|
13084
|
-
const COMPONENT_NAME$
|
|
13306
|
+
const COMPONENT_NAME$T = 'GridItem';
|
|
13085
13307
|
|
|
13086
13308
|
/**
|
|
13087
13309
|
* Component default class name and class prefix.
|
|
@@ -13118,13 +13340,13 @@ const GridItem = forwardRef((props, ref) => {
|
|
|
13118
13340
|
children: children
|
|
13119
13341
|
});
|
|
13120
13342
|
});
|
|
13121
|
-
GridItem.displayName = COMPONENT_NAME$
|
|
13343
|
+
GridItem.displayName = COMPONENT_NAME$T;
|
|
13122
13344
|
GridItem.className = CLASSNAME$S;
|
|
13123
13345
|
|
|
13124
13346
|
/**
|
|
13125
13347
|
* Component display name.
|
|
13126
13348
|
*/
|
|
13127
|
-
const COMPONENT_NAME$
|
|
13349
|
+
const COMPONENT_NAME$S = 'GridColumn';
|
|
13128
13350
|
|
|
13129
13351
|
/**
|
|
13130
13352
|
* Component default class name and class prefix.
|
|
@@ -13169,7 +13391,7 @@ const GridColumn$1 = props => {
|
|
|
13169
13391
|
children: children
|
|
13170
13392
|
});
|
|
13171
13393
|
};
|
|
13172
|
-
GridColumn$1.displayName = COMPONENT_NAME$
|
|
13394
|
+
GridColumn$1.displayName = COMPONENT_NAME$S;
|
|
13173
13395
|
GridColumn$1.className = CLASSNAME$R;
|
|
13174
13396
|
GridColumn$1.defaultProps = DEFAULT_PROPS$K;
|
|
13175
13397
|
|
|
@@ -13199,7 +13421,7 @@ const GridColumn = forwardRef((props, ref) => {
|
|
|
13199
13421
|
...props
|
|
13200
13422
|
});
|
|
13201
13423
|
});
|
|
13202
|
-
GridColumn.displayName = COMPONENT_NAME$
|
|
13424
|
+
GridColumn.displayName = COMPONENT_NAME$S;
|
|
13203
13425
|
GridColumn.className = CLASSNAME$R;
|
|
13204
13426
|
GridColumn.defaultProps = DEFAULT_PROPS$J;
|
|
13205
13427
|
|
|
@@ -13222,7 +13444,7 @@ const ImageBlockCaptionPosition = {
|
|
|
13222
13444
|
/**
|
|
13223
13445
|
* Component display name.
|
|
13224
13446
|
*/
|
|
13225
|
-
const COMPONENT_NAME$
|
|
13447
|
+
const COMPONENT_NAME$R = 'ImageBlock';
|
|
13226
13448
|
|
|
13227
13449
|
/**
|
|
13228
13450
|
* Component default class name and class prefix.
|
|
@@ -13423,14 +13645,14 @@ const ImageBlock = forwardRef((props, ref) => {
|
|
|
13423
13645
|
ImageCaption
|
|
13424
13646
|
});
|
|
13425
13647
|
});
|
|
13426
|
-
ImageBlock.displayName = COMPONENT_NAME$
|
|
13648
|
+
ImageBlock.displayName = COMPONENT_NAME$R;
|
|
13427
13649
|
ImageBlock.className = CLASSNAME$Q;
|
|
13428
13650
|
ImageBlock.defaultProps = DEFAULT_PROPS$I;
|
|
13429
13651
|
|
|
13430
13652
|
/**
|
|
13431
13653
|
* Component display name.
|
|
13432
13654
|
*/
|
|
13433
|
-
const COMPONENT_NAME$
|
|
13655
|
+
const COMPONENT_NAME$Q = 'ImageLightbox';
|
|
13434
13656
|
|
|
13435
13657
|
/**
|
|
13436
13658
|
* Component default class name and class prefix.
|
|
@@ -14148,7 +14370,7 @@ const Inner = forwardRef((props, ref) => {
|
|
|
14148
14370
|
})
|
|
14149
14371
|
});
|
|
14150
14372
|
});
|
|
14151
|
-
Inner.displayName = COMPONENT_NAME$
|
|
14373
|
+
Inner.displayName = COMPONENT_NAME$Q;
|
|
14152
14374
|
Inner.className = CLASSNAME$P;
|
|
14153
14375
|
|
|
14154
14376
|
/**
|
|
@@ -14165,7 +14387,7 @@ const ImageLightbox = Object.assign(Inner, {
|
|
|
14165
14387
|
/**
|
|
14166
14388
|
* Component display name.
|
|
14167
14389
|
*/
|
|
14168
|
-
const COMPONENT_NAME$
|
|
14390
|
+
const COMPONENT_NAME$P = 'InlineList';
|
|
14169
14391
|
|
|
14170
14392
|
/**
|
|
14171
14393
|
* Component default class name and class prefix.
|
|
@@ -14226,7 +14448,7 @@ const InlineList$1 = props => {
|
|
|
14226
14448
|
})
|
|
14227
14449
|
);
|
|
14228
14450
|
};
|
|
14229
|
-
InlineList$1.displayName = COMPONENT_NAME$
|
|
14451
|
+
InlineList$1.displayName = COMPONENT_NAME$P;
|
|
14230
14452
|
InlineList$1.className = CLASSNAME$O;
|
|
14231
14453
|
InlineList$1.defaultProps = DEFAULT_PROPS$H;
|
|
14232
14454
|
|
|
@@ -14252,7 +14474,7 @@ const InlineList = forwardRef((props, ref) => {
|
|
|
14252
14474
|
items: Children.toArray(children)
|
|
14253
14475
|
});
|
|
14254
14476
|
});
|
|
14255
|
-
InlineList.displayName = COMPONENT_NAME$
|
|
14477
|
+
InlineList.displayName = COMPONENT_NAME$P;
|
|
14256
14478
|
InlineList.className = CLASSNAME$O;
|
|
14257
14479
|
InlineList.defaultProps = DEFAULT_PROPS$H;
|
|
14258
14480
|
|
|
@@ -14297,7 +14519,7 @@ InputLabel.defaultProps = InputLabel$1.defaultProps;
|
|
|
14297
14519
|
/**
|
|
14298
14520
|
* Component display name.
|
|
14299
14521
|
*/
|
|
14300
|
-
const COMPONENT_NAME$
|
|
14522
|
+
const COMPONENT_NAME$O = 'Lightbox';
|
|
14301
14523
|
|
|
14302
14524
|
/**
|
|
14303
14525
|
* Component default class name and class prefix.
|
|
@@ -14328,6 +14550,7 @@ const Lightbox$1 = props => {
|
|
|
14328
14550
|
handleClose,
|
|
14329
14551
|
parentElement,
|
|
14330
14552
|
focusElement,
|
|
14553
|
+
labelId,
|
|
14331
14554
|
preventAutoClose,
|
|
14332
14555
|
theme,
|
|
14333
14556
|
zIndex,
|
|
@@ -14348,8 +14571,7 @@ const Lightbox$1 = props => {
|
|
|
14348
14571
|
children: /*#__PURE__*/jsxs("div", {
|
|
14349
14572
|
ref: ref,
|
|
14350
14573
|
...forwardedProps,
|
|
14351
|
-
|
|
14352
|
-
"aria-labelledby": ariaLabelledBy,
|
|
14574
|
+
...resolveAccessibleNameProps(ariaLabel, ariaLabelledBy || labelId),
|
|
14353
14575
|
"aria-modal": "true",
|
|
14354
14576
|
role: "dialog",
|
|
14355
14577
|
tabIndex: -1,
|
|
@@ -14398,13 +14620,13 @@ const Lightbox$1 = props => {
|
|
|
14398
14620
|
*/
|
|
14399
14621
|
|
|
14400
14622
|
/**
|
|
14401
|
-
* Lightbox
|
|
14623
|
+
* Renders the core Lightbox UI, resolving its `aria-labelledby` from the ids registry.
|
|
14402
14624
|
*
|
|
14403
|
-
*
|
|
14404
|
-
*
|
|
14405
|
-
*
|
|
14625
|
+
* Must render as a descendant of the `IdsRegistryProvider` set up by `Lightbox` (which is why it is
|
|
14626
|
+
* its own component: the subscription hook needs to run below the provider). Internal to the
|
|
14627
|
+
* lightbox family - not exported from the package barrel.
|
|
14406
14628
|
*/
|
|
14407
|
-
const
|
|
14629
|
+
const LightboxContent = forwardRef((props, ref) => {
|
|
14408
14630
|
const {
|
|
14409
14631
|
children,
|
|
14410
14632
|
className,
|
|
@@ -14418,36 +14640,19 @@ const Lightbox = forwardRef((props, ref) => {
|
|
|
14418
14640
|
zIndex,
|
|
14419
14641
|
...forwardedProps
|
|
14420
14642
|
} = props;
|
|
14421
|
-
if (!DOCUMENT) {
|
|
14422
|
-
// Can't render in SSR.
|
|
14423
|
-
return null;
|
|
14424
|
-
}
|
|
14425
|
-
|
|
14426
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
14427
14643
|
const childrenRef = useRef(null);
|
|
14428
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
14429
14644
|
const wrapperRef = useRef(null);
|
|
14430
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
14431
14645
|
const closeButtonRef = useRef(null);
|
|
14432
|
-
|
|
14433
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
14434
14646
|
useDisableBodyScroll(isOpen && wrapperRef.current);
|
|
14435
|
-
|
|
14436
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
14437
14647
|
const isVisible = useTransitionVisibility(wrapperRef, !!isOpen, DIALOG_TRANSITION_DURATION);
|
|
14438
14648
|
|
|
14439
14649
|
// Handle focus trap.
|
|
14440
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
14441
14650
|
useFocusTrap(
|
|
14442
14651
|
// Focus trap zone
|
|
14443
14652
|
isOpen && wrapperRef.current,
|
|
14444
14653
|
// Focus element (fallback on close button and then on the dialog)
|
|
14445
14654
|
focusElement?.current || closeButtonRef.current || wrapperRef.current);
|
|
14446
|
-
|
|
14447
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
14448
14655
|
const previousOpen = useRef(isOpen);
|
|
14449
|
-
|
|
14450
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
14451
14656
|
useEffect(() => {
|
|
14452
14657
|
if (isOpen !== previousOpen.current) {
|
|
14453
14658
|
previousOpen.current = isOpen;
|
|
@@ -14460,11 +14665,9 @@ const Lightbox = forwardRef((props, ref) => {
|
|
|
14460
14665
|
}, [isOpen, parentElement]);
|
|
14461
14666
|
|
|
14462
14667
|
// Close lightbox on escape key pressed.
|
|
14463
|
-
|
|
14464
|
-
useCallbackOnEscape(onClose);
|
|
14465
|
-
|
|
14466
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
14668
|
+
useCallbackOnEscape(onClose, isOpen && !preventAutoClose);
|
|
14467
14669
|
const clickAwayRefs = useRef([wrapperRef]);
|
|
14670
|
+
const labelId = useRegisteredId(DIALOG_LABEL_KEY);
|
|
14468
14671
|
if (!isOpen && !isVisible) return null;
|
|
14469
14672
|
return Lightbox$1({
|
|
14470
14673
|
ClickAwayProvider,
|
|
@@ -14482,6 +14685,7 @@ const Lightbox = forwardRef((props, ref) => {
|
|
|
14482
14685
|
focusElement,
|
|
14483
14686
|
isOpen,
|
|
14484
14687
|
isVisible,
|
|
14688
|
+
labelId,
|
|
14485
14689
|
ref: mergeRefs(ref, wrapperRef),
|
|
14486
14690
|
theme,
|
|
14487
14691
|
zIndex,
|
|
@@ -14490,7 +14694,27 @@ const Lightbox = forwardRef((props, ref) => {
|
|
|
14490
14694
|
...forwardedProps
|
|
14491
14695
|
});
|
|
14492
14696
|
});
|
|
14493
|
-
|
|
14697
|
+
|
|
14698
|
+
/**
|
|
14699
|
+
* Lightbox component.
|
|
14700
|
+
*
|
|
14701
|
+
* @param props Component props.
|
|
14702
|
+
* @param ref Component ref.
|
|
14703
|
+
* @return React element.
|
|
14704
|
+
*/
|
|
14705
|
+
const Lightbox = forwardRef((props, ref) => {
|
|
14706
|
+
if (!DOCUMENT) {
|
|
14707
|
+
// Can't render in SSR.
|
|
14708
|
+
return null;
|
|
14709
|
+
}
|
|
14710
|
+
return /*#__PURE__*/jsx(IdsRegistryProvider, {
|
|
14711
|
+
children: /*#__PURE__*/jsx(LightboxContent, {
|
|
14712
|
+
...props,
|
|
14713
|
+
ref: ref
|
|
14714
|
+
})
|
|
14715
|
+
});
|
|
14716
|
+
});
|
|
14717
|
+
Lightbox.displayName = COMPONENT_NAME$O;
|
|
14494
14718
|
Lightbox.className = CLASSNAME$N;
|
|
14495
14719
|
|
|
14496
14720
|
/**
|
|
@@ -14500,7 +14724,7 @@ Lightbox.className = CLASSNAME$N;
|
|
|
14500
14724
|
/**
|
|
14501
14725
|
* Component display name.
|
|
14502
14726
|
*/
|
|
14503
|
-
const COMPONENT_NAME$
|
|
14727
|
+
const COMPONENT_NAME$N = 'Link';
|
|
14504
14728
|
|
|
14505
14729
|
/**
|
|
14506
14730
|
* Component default class name and class prefix.
|
|
@@ -14593,13 +14817,13 @@ const Link = forwardRef((props, ref) => {
|
|
|
14593
14817
|
}))
|
|
14594
14818
|
});
|
|
14595
14819
|
});
|
|
14596
|
-
Link.displayName = COMPONENT_NAME$
|
|
14820
|
+
Link.displayName = COMPONENT_NAME$N;
|
|
14597
14821
|
Link.className = CLASSNAME$M;
|
|
14598
14822
|
|
|
14599
14823
|
/**
|
|
14600
14824
|
* Component display name.
|
|
14601
14825
|
*/
|
|
14602
|
-
const COMPONENT_NAME$
|
|
14826
|
+
const COMPONENT_NAME$M = 'LinkPreview';
|
|
14603
14827
|
|
|
14604
14828
|
/**
|
|
14605
14829
|
* Component default class name and class prefix.
|
|
@@ -14734,7 +14958,7 @@ const LinkPreview = forwardRef((props, ref) => {
|
|
|
14734
14958
|
...forwardedProps
|
|
14735
14959
|
});
|
|
14736
14960
|
});
|
|
14737
|
-
LinkPreview.displayName = COMPONENT_NAME$
|
|
14961
|
+
LinkPreview.displayName = COMPONENT_NAME$M;
|
|
14738
14962
|
LinkPreview.className = CLASSNAME$L;
|
|
14739
14963
|
LinkPreview.defaultProps = DEFAULT_PROPS$G;
|
|
14740
14964
|
|
|
@@ -14767,7 +14991,7 @@ const ListItemAction = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
14767
14991
|
children
|
|
14768
14992
|
});
|
|
14769
14993
|
}), {
|
|
14770
|
-
displayName: COMPONENT_NAME$
|
|
14994
|
+
displayName: COMPONENT_NAME$1h,
|
|
14771
14995
|
className: CLASSNAME$1e,
|
|
14772
14996
|
defaultProps: DEFAULT_PROPS$Z
|
|
14773
14997
|
});
|
|
@@ -14807,7 +15031,7 @@ const _ListItem = forwardRef((props, ref) => {
|
|
|
14807
15031
|
handleClick: onItemSelected || props.onClick ? handleClick : undefined
|
|
14808
15032
|
});
|
|
14809
15033
|
});
|
|
14810
|
-
_ListItem.displayName = COMPONENT_NAME$
|
|
15034
|
+
_ListItem.displayName = COMPONENT_NAME$1i;
|
|
14811
15035
|
_ListItem.className = CLASSNAME$1f;
|
|
14812
15036
|
_ListItem.defaultProps = DEFAULT_PROPS$_;
|
|
14813
15037
|
|
|
@@ -14822,7 +15046,7 @@ const ListItem = Object.assign(_ListItem, {
|
|
|
14822
15046
|
/**
|
|
14823
15047
|
* Component display name.
|
|
14824
15048
|
*/
|
|
14825
|
-
const COMPONENT_NAME$
|
|
15049
|
+
const COMPONENT_NAME$L = 'ListSubheader';
|
|
14826
15050
|
|
|
14827
15051
|
/**
|
|
14828
15052
|
* Component default class name and class prefix.
|
|
@@ -14850,7 +15074,7 @@ const ListSubheader = forwardRef((props, ref) => {
|
|
|
14850
15074
|
children: children
|
|
14851
15075
|
});
|
|
14852
15076
|
});
|
|
14853
|
-
ListSubheader.displayName = COMPONENT_NAME$
|
|
15077
|
+
ListSubheader.displayName = COMPONENT_NAME$L;
|
|
14854
15078
|
ListSubheader.className = CLASSNAME$K;
|
|
14855
15079
|
|
|
14856
15080
|
const DEFAULT_PROPS$F = {
|
|
@@ -14863,7 +15087,7 @@ const DEFAULT_PROPS$F = {
|
|
|
14863
15087
|
|
|
14864
15088
|
/** Discriminated union of MenuButton props across all trigger variants. */
|
|
14865
15089
|
|
|
14866
|
-
const COMPONENT_NAME$
|
|
15090
|
+
const COMPONENT_NAME$K = 'MenuButton';
|
|
14867
15091
|
|
|
14868
15092
|
/** Menu button core template (composition of menu provider, trigger, popover and list) */
|
|
14869
15093
|
const MenuButton$1 = (props, {
|
|
@@ -15291,7 +15515,7 @@ function MenuProvider(props) {
|
|
|
15291
15515
|
}
|
|
15292
15516
|
MenuProvider.displayName = 'Menu.Provider';
|
|
15293
15517
|
|
|
15294
|
-
const COMPONENT_NAME$
|
|
15518
|
+
const COMPONENT_NAME$J = 'MenuTrigger';
|
|
15295
15519
|
const CLASSNAME$J = 'lumx-menu-trigger';
|
|
15296
15520
|
|
|
15297
15521
|
/** MenuTrigger core template. Renders `Trigger` with disclosure ARIA attributes. */
|
|
@@ -15392,11 +15616,11 @@ const MenuTrigger = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
15392
15616
|
Trigger: TriggerComp
|
|
15393
15617
|
});
|
|
15394
15618
|
}), {
|
|
15395
|
-
displayName: COMPONENT_NAME$
|
|
15619
|
+
displayName: COMPONENT_NAME$J,
|
|
15396
15620
|
className: CLASSNAME$J
|
|
15397
15621
|
});
|
|
15398
15622
|
|
|
15399
|
-
const COMPONENT_NAME$
|
|
15623
|
+
const COMPONENT_NAME$I = 'MenuPopover';
|
|
15400
15624
|
const CLASSNAME$I = 'lumx-menu-popover';
|
|
15401
15625
|
const {
|
|
15402
15626
|
block: block$z,
|
|
@@ -15469,12 +15693,12 @@ const MenuPopover = props => {
|
|
|
15469
15693
|
FlexBox
|
|
15470
15694
|
});
|
|
15471
15695
|
};
|
|
15472
|
-
MenuPopover.displayName = COMPONENT_NAME$
|
|
15696
|
+
MenuPopover.displayName = COMPONENT_NAME$I;
|
|
15473
15697
|
MenuPopover.className = CLASSNAME$I;
|
|
15474
15698
|
|
|
15475
15699
|
/** Menu list props. */
|
|
15476
15700
|
|
|
15477
|
-
const COMPONENT_NAME$
|
|
15701
|
+
const COMPONENT_NAME$H = 'Menu';
|
|
15478
15702
|
const CLASSNAME$H = 'lumx-menu';
|
|
15479
15703
|
|
|
15480
15704
|
/** MenuList core template. Wraps `List` with menu-specific class and ARIA labelling. */
|
|
@@ -15537,7 +15761,7 @@ const MenuList = forwardRef((props, ref) => {
|
|
|
15537
15761
|
children: isOpen ? children : null
|
|
15538
15762
|
});
|
|
15539
15763
|
});
|
|
15540
|
-
MenuList.displayName = COMPONENT_NAME$
|
|
15764
|
+
MenuList.displayName = COMPONENT_NAME$H;
|
|
15541
15765
|
MenuList.className = CLASSNAME$H;
|
|
15542
15766
|
|
|
15543
15767
|
/** Props that MenuButton explicitly declares. */
|
|
@@ -15585,14 +15809,14 @@ const MenuButton = forwardRef((props, ref) => {
|
|
|
15585
15809
|
MenuList
|
|
15586
15810
|
});
|
|
15587
15811
|
});
|
|
15588
|
-
MenuButton.displayName = COMPONENT_NAME$
|
|
15812
|
+
MenuButton.displayName = COMPONENT_NAME$K;
|
|
15589
15813
|
MenuButton.defaultProps = DEFAULT_PROPS$F;
|
|
15590
15814
|
|
|
15591
15815
|
/** MenuItem props. */
|
|
15592
15816
|
|
|
15593
15817
|
/** Props overridden by framework wrappers. */
|
|
15594
15818
|
|
|
15595
|
-
const COMPONENT_NAME$
|
|
15819
|
+
const COMPONENT_NAME$G = 'MenuItem';
|
|
15596
15820
|
const CLASSNAME$G = 'lumx-menu-item';
|
|
15597
15821
|
const {
|
|
15598
15822
|
block: block$y,
|
|
@@ -15708,13 +15932,13 @@ const MenuItem = forwardRef((props, ref) => {
|
|
|
15708
15932
|
handleClick
|
|
15709
15933
|
});
|
|
15710
15934
|
});
|
|
15711
|
-
MenuItem.displayName = COMPONENT_NAME$
|
|
15935
|
+
MenuItem.displayName = COMPONENT_NAME$G;
|
|
15712
15936
|
MenuItem.className = CLASSNAME$G;
|
|
15713
15937
|
|
|
15714
15938
|
/**
|
|
15715
15939
|
* Component display name.
|
|
15716
15940
|
*/
|
|
15717
|
-
const COMPONENT_NAME$
|
|
15941
|
+
const COMPONENT_NAME$F = 'Message';
|
|
15718
15942
|
|
|
15719
15943
|
/**
|
|
15720
15944
|
* Component default class name and class prefix.
|
|
@@ -15797,7 +16021,7 @@ const Message$1 = props => {
|
|
|
15797
16021
|
})]
|
|
15798
16022
|
});
|
|
15799
16023
|
};
|
|
15800
|
-
Message$1.displayName = COMPONENT_NAME$
|
|
16024
|
+
Message$1.displayName = COMPONENT_NAME$F;
|
|
15801
16025
|
Message$1.className = CLASSNAME$F;
|
|
15802
16026
|
|
|
15803
16027
|
/**
|
|
@@ -15813,13 +16037,13 @@ const Message = forwardRef((props, ref) => {
|
|
|
15813
16037
|
ref
|
|
15814
16038
|
});
|
|
15815
16039
|
});
|
|
15816
|
-
Message.displayName = COMPONENT_NAME$
|
|
16040
|
+
Message.displayName = COMPONENT_NAME$F;
|
|
15817
16041
|
Message.className = CLASSNAME$F;
|
|
15818
16042
|
|
|
15819
16043
|
/**
|
|
15820
16044
|
* Component display name.
|
|
15821
16045
|
*/
|
|
15822
|
-
const COMPONENT_NAME$
|
|
16046
|
+
const COMPONENT_NAME$E = 'Mosaic';
|
|
15823
16047
|
|
|
15824
16048
|
/**
|
|
15825
16049
|
* Component default class name and class prefix.
|
|
@@ -15926,7 +16150,7 @@ const Mosaic = forwardRef((props, ref) => {
|
|
|
15926
16150
|
...forwardedProps
|
|
15927
16151
|
});
|
|
15928
16152
|
});
|
|
15929
|
-
Mosaic.displayName = COMPONENT_NAME$
|
|
16153
|
+
Mosaic.displayName = COMPONENT_NAME$E;
|
|
15930
16154
|
Mosaic.className = CLASSNAME$E;
|
|
15931
16155
|
Mosaic.defaultProps = DEFAULT_PROPS$E;
|
|
15932
16156
|
|
|
@@ -15947,7 +16171,7 @@ const ITEM_CLASSNAME = 'lumx-navigation-item';
|
|
|
15947
16171
|
/**
|
|
15948
16172
|
* Component display name.
|
|
15949
16173
|
*/
|
|
15950
|
-
const COMPONENT_NAME$
|
|
16174
|
+
const COMPONENT_NAME$D = 'NavigationSection';
|
|
15951
16175
|
|
|
15952
16176
|
/**
|
|
15953
16177
|
* Component default class name and class prefix.
|
|
@@ -16042,7 +16266,7 @@ const NavigationSection = forwardRef((props, ref) => {
|
|
|
16042
16266
|
}))]
|
|
16043
16267
|
});
|
|
16044
16268
|
});
|
|
16045
|
-
NavigationSection.displayName = COMPONENT_NAME$
|
|
16269
|
+
NavigationSection.displayName = COMPONENT_NAME$D;
|
|
16046
16270
|
NavigationSection.className = CLASSNAME$D;
|
|
16047
16271
|
|
|
16048
16272
|
const {
|
|
@@ -16112,7 +16336,7 @@ const NavigationItem = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
16112
16336
|
/**
|
|
16113
16337
|
* Component display name.
|
|
16114
16338
|
*/
|
|
16115
|
-
const COMPONENT_NAME$
|
|
16339
|
+
const COMPONENT_NAME$C = 'Navigation';
|
|
16116
16340
|
|
|
16117
16341
|
/**
|
|
16118
16342
|
* Component default class name and class prefix.
|
|
@@ -16159,7 +16383,7 @@ const Navigation = forwardRef((props, ref) => {
|
|
|
16159
16383
|
})
|
|
16160
16384
|
});
|
|
16161
16385
|
});
|
|
16162
|
-
Navigation.displayName = COMPONENT_NAME$
|
|
16386
|
+
Navigation.displayName = COMPONENT_NAME$C;
|
|
16163
16387
|
Navigation.className = CLASSNAME$C;
|
|
16164
16388
|
Navigation.defaultProps = DEFAULT_PROPS$D;
|
|
16165
16389
|
|
|
@@ -16192,7 +16416,7 @@ const NOTIFICATION_CONFIGURATION = {
|
|
|
16192
16416
|
/**
|
|
16193
16417
|
* Component display name.
|
|
16194
16418
|
*/
|
|
16195
|
-
const COMPONENT_NAME$
|
|
16419
|
+
const COMPONENT_NAME$B = 'Notification';
|
|
16196
16420
|
|
|
16197
16421
|
/**
|
|
16198
16422
|
* Component default class name and class prefix.
|
|
@@ -16294,19 +16518,22 @@ const Notification = forwardRef((props, ref) => {
|
|
|
16294
16518
|
})
|
|
16295
16519
|
});
|
|
16296
16520
|
});
|
|
16297
|
-
Notification.displayName = COMPONENT_NAME$
|
|
16521
|
+
Notification.displayName = COMPONENT_NAME$B;
|
|
16298
16522
|
Notification.className = CLASSNAME$B;
|
|
16299
16523
|
Notification.defaultProps = DEFAULT_PROPS$C;
|
|
16300
16524
|
|
|
16301
16525
|
/**
|
|
16302
16526
|
* PopoverDialog props.
|
|
16303
|
-
* The PopoverDialog has the same props as the Popover
|
|
16527
|
+
* The PopoverDialog has the same props as the Popover, plus optional accessible-name props.
|
|
16528
|
+
* An accessible name can be provided via `label`, `aria-label`, `aria-labelledby`, or by
|
|
16529
|
+
* rendering a `DialogHeading` inside the dialog (which names it via the internal label
|
|
16530
|
+
* registry) - at least one of these should be used.
|
|
16304
16531
|
*/
|
|
16305
16532
|
|
|
16306
16533
|
/**
|
|
16307
16534
|
* Component display name.
|
|
16308
16535
|
*/
|
|
16309
|
-
const COMPONENT_NAME$
|
|
16536
|
+
const COMPONENT_NAME$A = 'PopoverDialog';
|
|
16310
16537
|
|
|
16311
16538
|
/**
|
|
16312
16539
|
* Component default class name and class prefix.
|
|
@@ -16319,21 +16546,22 @@ const CLASSNAME$A = 'lumx-popover-dialog';
|
|
|
16319
16546
|
const DEFAULT_PROPS$B = {};
|
|
16320
16547
|
|
|
16321
16548
|
/**
|
|
16322
|
-
*
|
|
16323
|
-
*
|
|
16324
|
-
*
|
|
16325
|
-
*
|
|
16326
|
-
* -
|
|
16327
|
-
* - Resets heading level context to 2
|
|
16549
|
+
* Renders the core Popover as a dialog, resolving its `aria-labelledby` from the ids registry.
|
|
16550
|
+
*
|
|
16551
|
+
* Must render as a descendant of the `IdsRegistryProvider` set up by `PopoverDialog` (which is why it
|
|
16552
|
+
* is its own component: the subscription hook needs to run below the provider). Internal to the
|
|
16553
|
+
* popover-dialog family - not exported from the package barrel.
|
|
16328
16554
|
*/
|
|
16329
|
-
const
|
|
16555
|
+
const PopoverDialogContent = forwardRef((props, ref) => {
|
|
16330
16556
|
const {
|
|
16331
16557
|
children,
|
|
16332
|
-
'aria-label':
|
|
16333
|
-
|
|
16558
|
+
'aria-label': ariaLabelAttr,
|
|
16559
|
+
'aria-labelledby': ariaLabelledByAttr,
|
|
16560
|
+
label = ariaLabelAttr,
|
|
16334
16561
|
className,
|
|
16335
16562
|
...forwardedProps
|
|
16336
16563
|
} = props;
|
|
16564
|
+
const labelId = useRegisteredId(DIALOG_LABEL_KEY);
|
|
16337
16565
|
return /*#__PURE__*/jsx(Popover, {
|
|
16338
16566
|
...forwardedProps,
|
|
16339
16567
|
ref: ref,
|
|
@@ -16342,9 +16570,10 @@ const PopoverDialog = forwardRef((props, ref) => {
|
|
|
16342
16570
|
"aria-modal": "true"
|
|
16343
16571
|
/**
|
|
16344
16572
|
* If a label is set, set as aria-label.
|
|
16345
|
-
* If it is undefined, the label can be set using the `aria-label` and `aria-labelledby` props
|
|
16573
|
+
* If it is undefined, the label can be set using the `aria-label` and `aria-labelledby` props,
|
|
16574
|
+
* or by rendering a `DialogHeading` inside the dialog (linked via the internal ids registry).
|
|
16346
16575
|
*/,
|
|
16347
|
-
|
|
16576
|
+
...resolveAccessibleNameProps(label, ariaLabelledByAttr || labelId),
|
|
16348
16577
|
closeOnClickAway: true,
|
|
16349
16578
|
closeOnEscape: true,
|
|
16350
16579
|
withFocusTrap: true,
|
|
@@ -16354,14 +16583,29 @@ const PopoverDialog = forwardRef((props, ref) => {
|
|
|
16354
16583
|
})
|
|
16355
16584
|
});
|
|
16356
16585
|
});
|
|
16357
|
-
|
|
16586
|
+
|
|
16587
|
+
/**
|
|
16588
|
+
* PopoverDialog component.
|
|
16589
|
+
* Defines a popover that acts like a dialog:
|
|
16590
|
+
* - Has a dialog aria role
|
|
16591
|
+
* - Sets a focus trap within the popover
|
|
16592
|
+
* - Closes on click away and escape
|
|
16593
|
+
* - Resets heading level context to 2
|
|
16594
|
+
*/
|
|
16595
|
+
const PopoverDialog = forwardRef((props, ref) => /*#__PURE__*/jsx(IdsRegistryProvider, {
|
|
16596
|
+
children: /*#__PURE__*/jsx(PopoverDialogContent, {
|
|
16597
|
+
...props,
|
|
16598
|
+
ref: ref
|
|
16599
|
+
})
|
|
16600
|
+
}));
|
|
16601
|
+
PopoverDialog.displayName = COMPONENT_NAME$A;
|
|
16358
16602
|
PopoverDialog.className = CLASSNAME$A;
|
|
16359
16603
|
PopoverDialog.defaultProps = DEFAULT_PROPS$B;
|
|
16360
16604
|
|
|
16361
16605
|
/**
|
|
16362
16606
|
* Component display name.
|
|
16363
16607
|
*/
|
|
16364
|
-
const COMPONENT_NAME$
|
|
16608
|
+
const COMPONENT_NAME$z = 'PostBlock';
|
|
16365
16609
|
|
|
16366
16610
|
/**
|
|
16367
16611
|
* Component default class name and class prefix.
|
|
@@ -16455,14 +16699,14 @@ const PostBlock = forwardRef((props, ref) => {
|
|
|
16455
16699
|
})]
|
|
16456
16700
|
});
|
|
16457
16701
|
});
|
|
16458
|
-
PostBlock.displayName = COMPONENT_NAME$
|
|
16702
|
+
PostBlock.displayName = COMPONENT_NAME$z;
|
|
16459
16703
|
PostBlock.className = CLASSNAME$z;
|
|
16460
16704
|
PostBlock.defaultProps = DEFAULT_PROPS$A;
|
|
16461
16705
|
|
|
16462
16706
|
/**
|
|
16463
16707
|
* Component display name.
|
|
16464
16708
|
*/
|
|
16465
|
-
const COMPONENT_NAME$
|
|
16709
|
+
const COMPONENT_NAME$y = 'ProgressLinear';
|
|
16466
16710
|
|
|
16467
16711
|
/**
|
|
16468
16712
|
* Component default class name and class prefix.
|
|
@@ -16528,7 +16772,7 @@ const ProgressLinear = forwardRef((props, ref) => {
|
|
|
16528
16772
|
...otherProps
|
|
16529
16773
|
});
|
|
16530
16774
|
});
|
|
16531
|
-
ProgressLinear.displayName = COMPONENT_NAME$
|
|
16775
|
+
ProgressLinear.displayName = COMPONENT_NAME$y;
|
|
16532
16776
|
ProgressLinear.className = CLASSNAME$y;
|
|
16533
16777
|
ProgressLinear.defaultProps = DEFAULT_PROPS$z;
|
|
16534
16778
|
|
|
@@ -16537,7 +16781,7 @@ ProgressLinear.defaultProps = DEFAULT_PROPS$z;
|
|
|
16537
16781
|
/**
|
|
16538
16782
|
* Component display name.
|
|
16539
16783
|
*/
|
|
16540
|
-
const COMPONENT_NAME$
|
|
16784
|
+
const COMPONENT_NAME$x = 'ProgressCircular';
|
|
16541
16785
|
|
|
16542
16786
|
/**
|
|
16543
16787
|
* Component default class name and class prefix.
|
|
@@ -16630,7 +16874,7 @@ const ProgressCircular = forwardRef((props, ref) => {
|
|
|
16630
16874
|
}
|
|
16631
16875
|
});
|
|
16632
16876
|
});
|
|
16633
|
-
ProgressCircular.displayName = COMPONENT_NAME$
|
|
16877
|
+
ProgressCircular.displayName = COMPONENT_NAME$x;
|
|
16634
16878
|
ProgressCircular.className = CLASSNAME$x;
|
|
16635
16879
|
ProgressCircular.defaultProps = DEFAULT_PROPS$y;
|
|
16636
16880
|
|
|
@@ -16646,7 +16890,7 @@ const ProgressVariant = {
|
|
|
16646
16890
|
/**
|
|
16647
16891
|
* Component display name.
|
|
16648
16892
|
*/
|
|
16649
|
-
const COMPONENT_NAME$
|
|
16893
|
+
const COMPONENT_NAME$w = 'Progress';
|
|
16650
16894
|
|
|
16651
16895
|
/**
|
|
16652
16896
|
* Component default class name and class prefix.
|
|
@@ -16693,7 +16937,7 @@ const Progress = forwardRef((props, ref) => {
|
|
|
16693
16937
|
})]
|
|
16694
16938
|
});
|
|
16695
16939
|
});
|
|
16696
|
-
Progress.displayName = COMPONENT_NAME$
|
|
16940
|
+
Progress.displayName = COMPONENT_NAME$w;
|
|
16697
16941
|
Progress.className = CLASSNAME$w;
|
|
16698
16942
|
Progress.defaultProps = DEFAULT_PROPS$x;
|
|
16699
16943
|
|
|
@@ -16878,7 +17122,7 @@ ProgressTrackerProvider.defaultProps = DEFAULT_PROPS$w;
|
|
|
16878
17122
|
/**
|
|
16879
17123
|
* Component display name.
|
|
16880
17124
|
*/
|
|
16881
|
-
const COMPONENT_NAME$
|
|
17125
|
+
const COMPONENT_NAME$v = 'ProgressTracker';
|
|
16882
17126
|
|
|
16883
17127
|
/**
|
|
16884
17128
|
* Component default class name and class prefix.
|
|
@@ -16944,14 +17188,14 @@ const ProgressTracker = forwardRef((props, ref) => {
|
|
|
16944
17188
|
})]
|
|
16945
17189
|
});
|
|
16946
17190
|
});
|
|
16947
|
-
ProgressTracker.displayName = COMPONENT_NAME$
|
|
17191
|
+
ProgressTracker.displayName = COMPONENT_NAME$v;
|
|
16948
17192
|
ProgressTracker.className = CLASSNAME$v;
|
|
16949
17193
|
ProgressTracker.defaultProps = DEFAULT_PROPS$v;
|
|
16950
17194
|
|
|
16951
17195
|
/**
|
|
16952
17196
|
* Component display name.
|
|
16953
17197
|
*/
|
|
16954
|
-
const COMPONENT_NAME$
|
|
17198
|
+
const COMPONENT_NAME$u = 'ProgressTrackerStep';
|
|
16955
17199
|
|
|
16956
17200
|
/**
|
|
16957
17201
|
* Component default class name and class prefix.
|
|
@@ -17058,14 +17302,14 @@ const ProgressTrackerStep = forwardRef((props, ref) => {
|
|
|
17058
17302
|
})]
|
|
17059
17303
|
});
|
|
17060
17304
|
});
|
|
17061
|
-
ProgressTrackerStep.displayName = COMPONENT_NAME$
|
|
17305
|
+
ProgressTrackerStep.displayName = COMPONENT_NAME$u;
|
|
17062
17306
|
ProgressTrackerStep.className = CLASSNAME$u;
|
|
17063
17307
|
ProgressTrackerStep.defaultProps = DEFAULT_PROPS$u;
|
|
17064
17308
|
|
|
17065
17309
|
/**
|
|
17066
17310
|
* Component display name.
|
|
17067
17311
|
*/
|
|
17068
|
-
const COMPONENT_NAME$
|
|
17312
|
+
const COMPONENT_NAME$t = 'ProgressTrackerStepPanel';
|
|
17069
17313
|
|
|
17070
17314
|
/**
|
|
17071
17315
|
* Component default class name and class prefix.
|
|
@@ -17112,14 +17356,14 @@ const ProgressTrackerStepPanel = forwardRef((props, ref) => {
|
|
|
17112
17356
|
children: (!state?.isLazy || isActive) && children
|
|
17113
17357
|
});
|
|
17114
17358
|
});
|
|
17115
|
-
ProgressTrackerStepPanel.displayName = COMPONENT_NAME$
|
|
17359
|
+
ProgressTrackerStepPanel.displayName = COMPONENT_NAME$t;
|
|
17116
17360
|
ProgressTrackerStepPanel.className = CLASSNAME$t;
|
|
17117
17361
|
ProgressTrackerStepPanel.defaultProps = DEFAULT_PROPS$t;
|
|
17118
17362
|
|
|
17119
17363
|
/**
|
|
17120
17364
|
* Component display name.
|
|
17121
17365
|
*/
|
|
17122
|
-
const COMPONENT_NAME$
|
|
17366
|
+
const COMPONENT_NAME$s = 'RadioButton';
|
|
17123
17367
|
|
|
17124
17368
|
/**
|
|
17125
17369
|
* Component default class name and class prefix.
|
|
@@ -17271,14 +17515,14 @@ const RadioButton = forwardRef((props, ref) => {
|
|
|
17271
17515
|
inputId
|
|
17272
17516
|
});
|
|
17273
17517
|
});
|
|
17274
|
-
RadioButton.displayName = COMPONENT_NAME$
|
|
17518
|
+
RadioButton.displayName = COMPONENT_NAME$s;
|
|
17275
17519
|
RadioButton.className = CLASSNAME$s;
|
|
17276
17520
|
RadioButton.defaultProps = DEFAULT_PROPS$s;
|
|
17277
17521
|
|
|
17278
17522
|
/**
|
|
17279
17523
|
* Component display name.
|
|
17280
17524
|
*/
|
|
17281
|
-
const COMPONENT_NAME$
|
|
17525
|
+
const COMPONENT_NAME$r = 'RadioGroup';
|
|
17282
17526
|
|
|
17283
17527
|
/**
|
|
17284
17528
|
* Component default class name and class prefix.
|
|
@@ -17310,7 +17554,7 @@ const RadioGroup$1 = props => {
|
|
|
17310
17554
|
children: children
|
|
17311
17555
|
});
|
|
17312
17556
|
};
|
|
17313
|
-
RadioGroup$1.displayName = COMPONENT_NAME$
|
|
17557
|
+
RadioGroup$1.displayName = COMPONENT_NAME$r;
|
|
17314
17558
|
RadioGroup$1.className = CLASSNAME$r;
|
|
17315
17559
|
RadioGroup$1.defaultProps = DEFAULT_PROPS$r;
|
|
17316
17560
|
|
|
@@ -17338,7 +17582,7 @@ const RadioGroup = forwardRef((props, ref) => {
|
|
|
17338
17582
|
...forwardedProps
|
|
17339
17583
|
});
|
|
17340
17584
|
});
|
|
17341
|
-
RadioGroup.displayName = COMPONENT_NAME$
|
|
17585
|
+
RadioGroup.displayName = COMPONENT_NAME$r;
|
|
17342
17586
|
RadioGroup.className = CLASSNAME$r;
|
|
17343
17587
|
|
|
17344
17588
|
/**
|
|
@@ -17486,7 +17730,7 @@ const SelectVariant = {
|
|
|
17486
17730
|
};
|
|
17487
17731
|
|
|
17488
17732
|
/** The display name of the component. */
|
|
17489
|
-
const COMPONENT_NAME$
|
|
17733
|
+
const COMPONENT_NAME$q = 'Select';
|
|
17490
17734
|
|
|
17491
17735
|
/** The default class name and classes prefix for this component. */
|
|
17492
17736
|
const CLASSNAME$p = 'lumx-select';
|
|
@@ -17630,13 +17874,13 @@ const Select = forwardRef((props, ref) => {
|
|
|
17630
17874
|
isEmpty: isEmpty$1
|
|
17631
17875
|
}, ref);
|
|
17632
17876
|
});
|
|
17633
|
-
Select.displayName = COMPONENT_NAME$
|
|
17877
|
+
Select.displayName = COMPONENT_NAME$q;
|
|
17634
17878
|
Select.className = CLASSNAME$p;
|
|
17635
17879
|
Select.defaultProps = DEFAULT_PROPS$q;
|
|
17636
17880
|
Select.className = CLASSNAME$p;
|
|
17637
17881
|
|
|
17638
17882
|
/** The display name of the component. */
|
|
17639
|
-
const COMPONENT_NAME$
|
|
17883
|
+
const COMPONENT_NAME$p = 'Select';
|
|
17640
17884
|
|
|
17641
17885
|
/** The default class name and classes prefix for this component. */
|
|
17642
17886
|
const CLASSNAME$o = 'lumx-select';
|
|
@@ -17784,7 +18028,7 @@ const SelectMultiple = forwardRef((props, ref) => {
|
|
|
17784
18028
|
isMultiple: true
|
|
17785
18029
|
}, ref);
|
|
17786
18030
|
});
|
|
17787
|
-
SelectMultiple.displayName = COMPONENT_NAME$
|
|
18031
|
+
SelectMultiple.displayName = COMPONENT_NAME$p;
|
|
17788
18032
|
SelectMultiple.className = CLASSNAME$o;
|
|
17789
18033
|
SelectMultiple.defaultProps = DEFAULT_PROPS$p;
|
|
17790
18034
|
|
|
@@ -17937,7 +18181,7 @@ function renderSelectOptions(props, components) {
|
|
|
17937
18181
|
/**
|
|
17938
18182
|
* Component display name.
|
|
17939
18183
|
*/
|
|
17940
|
-
const COMPONENT_NAME$
|
|
18184
|
+
const COMPONENT_NAME$o = 'SelectButton';
|
|
17941
18185
|
|
|
17942
18186
|
/**
|
|
17943
18187
|
* Component default class name.
|
|
@@ -17991,6 +18235,8 @@ const SelectButton$2 = (props, {
|
|
|
17991
18235
|
const isLoadingMore = listStatus === 'loadingMore';
|
|
17992
18236
|
const isError = listStatus === 'error';
|
|
17993
18237
|
const isMultiselectable = selectionType === 'multiple';
|
|
18238
|
+
// Prevent firing during loading or error states to avoid duplicate fetches.
|
|
18239
|
+
const isInfiniteScrollEnabled = !listStatus || listStatus === 'idle';
|
|
17994
18240
|
|
|
17995
18241
|
/*
|
|
17996
18242
|
* Display value: castArray normalizes single/multi value to an array, then resolve
|
|
@@ -18029,11 +18275,7 @@ const SelectButton$2 = (props, {
|
|
|
18029
18275
|
}, {
|
|
18030
18276
|
Combobox
|
|
18031
18277
|
}), onLoadMore && InfiniteScroll && /*#__PURE__*/jsx(InfiniteScroll, {
|
|
18032
|
-
callback:
|
|
18033
|
-
// Guard: prevent firing during loading or error states to avoid duplicate fetches.
|
|
18034
|
-
if (listStatus && listStatus !== 'idle') return;
|
|
18035
|
-
onLoadMore();
|
|
18036
|
-
},
|
|
18278
|
+
callback: isInfiniteScrollEnabled ? onLoadMore : undefined,
|
|
18037
18279
|
options: infiniteScrollOptions
|
|
18038
18280
|
}), isLoadingMore && /*#__PURE__*/jsx(Combobox.OptionSkeleton, {
|
|
18039
18281
|
count: 1
|
|
@@ -18048,7 +18290,7 @@ const SelectButton$2 = (props, {
|
|
|
18048
18290
|
})]
|
|
18049
18291
|
});
|
|
18050
18292
|
};
|
|
18051
|
-
SelectButton$2.displayName = COMPONENT_NAME$
|
|
18293
|
+
SelectButton$2.displayName = COMPONENT_NAME$o;
|
|
18052
18294
|
SelectButton$2.className = CLASSNAME$n;
|
|
18053
18295
|
|
|
18054
18296
|
/**
|
|
@@ -18177,7 +18419,13 @@ const SelectButton$1 = React__default.forwardRef((props, ref) => {
|
|
|
18177
18419
|
as,
|
|
18178
18420
|
...buttonProps
|
|
18179
18421
|
} = props;
|
|
18180
|
-
|
|
18422
|
+
// The list itself doesn't scroll — its ancestor `__scroll` wrapper does. The
|
|
18423
|
+
// IntersectionObserver root must be the actual scrolling/clipping element, or the
|
|
18424
|
+
// sentinel is trivially always "intersecting" its non-clipping `<ul>` parent.
|
|
18425
|
+
const [scrollContainer, setScrollContainer] = useState(null);
|
|
18426
|
+
const setListElement = useCallback(listElement => {
|
|
18427
|
+
setScrollContainer(listElement?.closest(`.${CLASSNAME$17}__scroll`) ?? null);
|
|
18428
|
+
}, []);
|
|
18181
18429
|
const isMultiple = selectionType === 'multiple';
|
|
18182
18430
|
|
|
18183
18431
|
// Inject core-computed props into the consumer's renderOption result.
|
|
@@ -18218,7 +18466,7 @@ const SelectButton$1 = React__default.forwardRef((props, ref) => {
|
|
|
18218
18466
|
translations,
|
|
18219
18467
|
onLoadMore,
|
|
18220
18468
|
infiniteScrollOptions: {
|
|
18221
|
-
root:
|
|
18469
|
+
root: scrollContainer,
|
|
18222
18470
|
rootMargin: '100px'
|
|
18223
18471
|
}
|
|
18224
18472
|
}, {
|
|
@@ -18239,7 +18487,7 @@ const SelectButton = Object.assign(SelectButton$1, {
|
|
|
18239
18487
|
/**
|
|
18240
18488
|
* Component display name.
|
|
18241
18489
|
*/
|
|
18242
|
-
const COMPONENT_NAME$
|
|
18490
|
+
const COMPONENT_NAME$n = 'SelectTextField';
|
|
18243
18491
|
|
|
18244
18492
|
/**
|
|
18245
18493
|
* Component default class name.
|
|
@@ -18291,6 +18539,8 @@ const SelectTextField$2 = (props, {
|
|
|
18291
18539
|
const isFullLoading = listStatus === 'loading';
|
|
18292
18540
|
const isLoadingMore = listStatus === 'loadingMore';
|
|
18293
18541
|
const isError = listStatus === 'error';
|
|
18542
|
+
// Prevent firing during loading or error states to avoid duplicate fetches.
|
|
18543
|
+
const isInfiniteScrollEnabled = !listStatus || listStatus === 'idle';
|
|
18294
18544
|
return /*#__PURE__*/jsxs(Combobox.Provider, {
|
|
18295
18545
|
onOpen: onOpen,
|
|
18296
18546
|
children: [/*#__PURE__*/jsx(Combobox.Input, {
|
|
@@ -18321,11 +18571,7 @@ const SelectTextField$2 = (props, {
|
|
|
18321
18571
|
}, {
|
|
18322
18572
|
Combobox
|
|
18323
18573
|
}), afterOptions, onLoadMore && InfiniteScroll && /*#__PURE__*/jsx(InfiniteScroll, {
|
|
18324
|
-
callback:
|
|
18325
|
-
// Guard: prevent firing during loading or error states to avoid duplicate fetches.
|
|
18326
|
-
if (listStatus && listStatus !== 'idle') return;
|
|
18327
|
-
onLoadMore();
|
|
18328
|
-
},
|
|
18574
|
+
callback: isInfiniteScrollEnabled ? onLoadMore : undefined,
|
|
18329
18575
|
options: infiniteScrollOptions
|
|
18330
18576
|
}), isLoadingMore && /*#__PURE__*/jsx(Combobox.OptionSkeleton, {
|
|
18331
18577
|
count: 1
|
|
@@ -18340,7 +18586,7 @@ const SelectTextField$2 = (props, {
|
|
|
18340
18586
|
})]
|
|
18341
18587
|
});
|
|
18342
18588
|
};
|
|
18343
|
-
SelectTextField$2.displayName = COMPONENT_NAME$
|
|
18589
|
+
SelectTextField$2.displayName = COMPONENT_NAME$n;
|
|
18344
18590
|
SelectTextField$2.className = CLASSNAME$m;
|
|
18345
18591
|
|
|
18346
18592
|
/**
|
|
@@ -18413,7 +18659,14 @@ const SelectTextField$1 = props => {
|
|
|
18413
18659
|
// Wrap the consumer's renderOption to inject core-computed props
|
|
18414
18660
|
// (`value`, `isSelected`, `description`, `key`) into the returned <Combobox.Option>.
|
|
18415
18661
|
const wrappedRenderOption = wrapRenderOption(renderOption);
|
|
18416
|
-
|
|
18662
|
+
|
|
18663
|
+
// The list itself doesn't scroll — its ancestor `__scroll` wrapper does. The
|
|
18664
|
+
// IntersectionObserver root must be the actual scrolling/clipping element, or the
|
|
18665
|
+
// sentinel is trivially always "intersecting" its non-clipping `<ul>` parent.
|
|
18666
|
+
const [scrollContainer, setScrollContainer] = useState(null);
|
|
18667
|
+
const setListElement = useCallback(listElement => {
|
|
18668
|
+
setScrollContainer(listElement?.closest(`.${CLASSNAME$17}__scroll`) ?? null);
|
|
18669
|
+
}, []);
|
|
18417
18670
|
const localInputRef = useRef(null);
|
|
18418
18671
|
const mergedInputRef = useMergeRefs(localInputRef, externalInputRef);
|
|
18419
18672
|
|
|
@@ -18563,7 +18816,7 @@ const SelectTextField$1 = props => {
|
|
|
18563
18816
|
beforeOptions,
|
|
18564
18817
|
onLoadMore,
|
|
18565
18818
|
infiniteScrollOptions: {
|
|
18566
|
-
root:
|
|
18819
|
+
root: scrollContainer,
|
|
18567
18820
|
rootMargin: '100px'
|
|
18568
18821
|
}
|
|
18569
18822
|
}, {
|
|
@@ -18592,7 +18845,7 @@ const SelectTextField = Object.assign(SelectTextField$1, {
|
|
|
18592
18845
|
/**
|
|
18593
18846
|
* Component display name.
|
|
18594
18847
|
*/
|
|
18595
|
-
const COMPONENT_NAME$
|
|
18848
|
+
const COMPONENT_NAME$m = 'SideNavigation';
|
|
18596
18849
|
|
|
18597
18850
|
/**
|
|
18598
18851
|
* Component default class name and class prefix.
|
|
@@ -18622,13 +18875,13 @@ const SideNavigation = forwardRef((props, ref) => {
|
|
|
18622
18875
|
children: content
|
|
18623
18876
|
});
|
|
18624
18877
|
});
|
|
18625
|
-
SideNavigation.displayName = COMPONENT_NAME$
|
|
18878
|
+
SideNavigation.displayName = COMPONENT_NAME$m;
|
|
18626
18879
|
SideNavigation.className = CLASSNAME$l;
|
|
18627
18880
|
|
|
18628
18881
|
/**
|
|
18629
18882
|
* Component display name.
|
|
18630
18883
|
*/
|
|
18631
|
-
const COMPONENT_NAME$
|
|
18884
|
+
const COMPONENT_NAME$l = 'SideNavigationItem';
|
|
18632
18885
|
|
|
18633
18886
|
/**
|
|
18634
18887
|
* Component default class name and class prefix.
|
|
@@ -18743,14 +18996,14 @@ const SideNavigationItem = forwardRef((props, ref) => {
|
|
|
18743
18996
|
})]
|
|
18744
18997
|
});
|
|
18745
18998
|
});
|
|
18746
|
-
SideNavigationItem.displayName = COMPONENT_NAME$
|
|
18999
|
+
SideNavigationItem.displayName = COMPONENT_NAME$l;
|
|
18747
19000
|
SideNavigationItem.className = CLASSNAME$k;
|
|
18748
19001
|
SideNavigationItem.defaultProps = DEFAULT_PROPS$n;
|
|
18749
19002
|
|
|
18750
19003
|
/**
|
|
18751
19004
|
* Component display name.
|
|
18752
19005
|
*/
|
|
18753
|
-
const COMPONENT_NAME$
|
|
19006
|
+
const COMPONENT_NAME$k = 'SkeletonCircle';
|
|
18754
19007
|
|
|
18755
19008
|
/**
|
|
18756
19009
|
* Component default class name and class prefix.
|
|
@@ -18802,7 +19055,7 @@ const SkeletonRectangleVariant = {
|
|
|
18802
19055
|
/**
|
|
18803
19056
|
* Component display name.
|
|
18804
19057
|
*/
|
|
18805
|
-
const COMPONENT_NAME$
|
|
19058
|
+
const COMPONENT_NAME$j = 'SkeletonRectangle';
|
|
18806
19059
|
|
|
18807
19060
|
/**
|
|
18808
19061
|
* Component default class name and class prefix.
|
|
@@ -18886,7 +19139,7 @@ const SkeletonCircle = forwardRef((props, ref) => {
|
|
|
18886
19139
|
...forwardedProps
|
|
18887
19140
|
});
|
|
18888
19141
|
});
|
|
18889
|
-
SkeletonCircle.displayName = COMPONENT_NAME$
|
|
19142
|
+
SkeletonCircle.displayName = COMPONENT_NAME$k;
|
|
18890
19143
|
SkeletonCircle.defaultProps = DEFAULT_PROPS$l;
|
|
18891
19144
|
SkeletonCircle.className = CLASSNAME$j;
|
|
18892
19145
|
|
|
@@ -18927,7 +19180,7 @@ const SkeletonRectangle = forwardRef((props, ref) => {
|
|
|
18927
19180
|
...forwardedProps
|
|
18928
19181
|
});
|
|
18929
19182
|
});
|
|
18930
|
-
SkeletonRectangle.displayName = COMPONENT_NAME$
|
|
19183
|
+
SkeletonRectangle.displayName = COMPONENT_NAME$j;
|
|
18931
19184
|
SkeletonRectangle.className = CLASSNAME$i;
|
|
18932
19185
|
SkeletonRectangle.defaultProps = DEFAULT_PROPS$k;
|
|
18933
19186
|
|
|
@@ -18964,7 +19217,7 @@ const SkeletonTypography = forwardRef((props, ref) => {
|
|
|
18964
19217
|
...forwardedProps
|
|
18965
19218
|
});
|
|
18966
19219
|
});
|
|
18967
|
-
SkeletonTypography.displayName = COMPONENT_NAME$
|
|
19220
|
+
SkeletonTypography.displayName = COMPONENT_NAME$1c;
|
|
18968
19221
|
SkeletonTypography.defaultProps = DEFAULT_PROPS$j;
|
|
18969
19222
|
SkeletonTypography.className = CLASSNAME$19;
|
|
18970
19223
|
|
|
@@ -18990,7 +19243,7 @@ const clamp = (value, min, max) => {
|
|
|
18990
19243
|
/**
|
|
18991
19244
|
* Component display name.
|
|
18992
19245
|
*/
|
|
18993
|
-
const COMPONENT_NAME$
|
|
19246
|
+
const COMPONENT_NAME$i = 'Slider';
|
|
18994
19247
|
|
|
18995
19248
|
/**
|
|
18996
19249
|
* Component default class name and class prefix.
|
|
@@ -19257,7 +19510,7 @@ const Slider = forwardRef((props, ref) => {
|
|
|
19257
19510
|
})]
|
|
19258
19511
|
});
|
|
19259
19512
|
});
|
|
19260
|
-
Slider.displayName = COMPONENT_NAME$
|
|
19513
|
+
Slider.displayName = COMPONENT_NAME$i;
|
|
19261
19514
|
Slider.className = CLASSNAME$h;
|
|
19262
19515
|
Slider.defaultProps = DEFAULT_PROPS$i;
|
|
19263
19516
|
|
|
@@ -19592,7 +19845,7 @@ const useSlideFocusManagement = ({
|
|
|
19592
19845
|
/**
|
|
19593
19846
|
* Component display name.
|
|
19594
19847
|
*/
|
|
19595
|
-
const COMPONENT_NAME$
|
|
19848
|
+
const COMPONENT_NAME$h = 'SlideshowItemGroup';
|
|
19596
19849
|
|
|
19597
19850
|
/**
|
|
19598
19851
|
* Component default class name and class prefix.
|
|
@@ -19631,7 +19884,7 @@ const SlideshowItemGroup = forwardRef((props, ref) => {
|
|
|
19631
19884
|
children: children
|
|
19632
19885
|
});
|
|
19633
19886
|
});
|
|
19634
|
-
SlideshowItemGroup.displayName = COMPONENT_NAME$
|
|
19887
|
+
SlideshowItemGroup.displayName = COMPONENT_NAME$h;
|
|
19635
19888
|
SlideshowItemGroup.className = CLASSNAME$g;
|
|
19636
19889
|
|
|
19637
19890
|
/**
|
|
@@ -19762,7 +20015,7 @@ Slideshow.defaultProps = DEFAULT_PROPS$h;
|
|
|
19762
20015
|
/**
|
|
19763
20016
|
* Component display name.
|
|
19764
20017
|
*/
|
|
19765
|
-
const COMPONENT_NAME$
|
|
20018
|
+
const COMPONENT_NAME$g = 'SlideshowItem';
|
|
19766
20019
|
|
|
19767
20020
|
/**
|
|
19768
20021
|
* Component default class name and class prefix.
|
|
@@ -19789,7 +20042,7 @@ const SlideshowItem = forwardRef((props, ref) => {
|
|
|
19789
20042
|
children: children
|
|
19790
20043
|
});
|
|
19791
20044
|
});
|
|
19792
|
-
SlideshowItem.displayName = COMPONENT_NAME$
|
|
20045
|
+
SlideshowItem.displayName = COMPONENT_NAME$g;
|
|
19793
20046
|
SlideshowItem.className = CLASSNAME$f;
|
|
19794
20047
|
|
|
19795
20048
|
const isTouchDevice = () => 'ontouchstart' in window;
|
|
@@ -19852,7 +20105,7 @@ function usePaginationVisibleRange(activeIndex, slideCount) {
|
|
|
19852
20105
|
/**
|
|
19853
20106
|
* Component display name.
|
|
19854
20107
|
*/
|
|
19855
|
-
const COMPONENT_NAME$
|
|
20108
|
+
const COMPONENT_NAME$f = 'SlideshowControls';
|
|
19856
20109
|
|
|
19857
20110
|
/**
|
|
19858
20111
|
* Component default class name and class prefix.
|
|
@@ -19992,7 +20245,7 @@ const InternalSlideshowControls = forwardRef((props, ref) => {
|
|
|
19992
20245
|
})]
|
|
19993
20246
|
});
|
|
19994
20247
|
});
|
|
19995
|
-
InternalSlideshowControls.displayName = COMPONENT_NAME$
|
|
20248
|
+
InternalSlideshowControls.displayName = COMPONENT_NAME$f;
|
|
19996
20249
|
InternalSlideshowControls.className = CLASSNAME$e;
|
|
19997
20250
|
InternalSlideshowControls.defaultProps = DEFAULT_PROPS$g;
|
|
19998
20251
|
const SlideshowControls = Object.assign(InternalSlideshowControls, {
|
|
@@ -20112,7 +20365,7 @@ const useSlideScroll = ({
|
|
|
20112
20365
|
/**
|
|
20113
20366
|
* Component display name.
|
|
20114
20367
|
*/
|
|
20115
|
-
const COMPONENT_NAME$
|
|
20368
|
+
const COMPONENT_NAME$e = 'Slideshow';
|
|
20116
20369
|
|
|
20117
20370
|
/**
|
|
20118
20371
|
* Component default class name and class prefix.
|
|
@@ -20220,13 +20473,13 @@ const Slides = forwardRef((props, ref) => {
|
|
|
20220
20473
|
}), afterSlides]
|
|
20221
20474
|
});
|
|
20222
20475
|
});
|
|
20223
|
-
Slides.displayName = COMPONENT_NAME$
|
|
20476
|
+
Slides.displayName = COMPONENT_NAME$e;
|
|
20224
20477
|
Slides.className = CLASSNAME$d;
|
|
20225
20478
|
|
|
20226
20479
|
/**
|
|
20227
20480
|
* Component display name.
|
|
20228
20481
|
*/
|
|
20229
|
-
const COMPONENT_NAME$
|
|
20482
|
+
const COMPONENT_NAME$d = 'Switch';
|
|
20230
20483
|
|
|
20231
20484
|
/**
|
|
20232
20485
|
* Component default class name and class prefix.
|
|
@@ -20394,14 +20647,14 @@ const Switch = forwardRef((props, ref) => {
|
|
|
20394
20647
|
inputId
|
|
20395
20648
|
});
|
|
20396
20649
|
});
|
|
20397
|
-
Switch.displayName = COMPONENT_NAME$
|
|
20650
|
+
Switch.displayName = COMPONENT_NAME$d;
|
|
20398
20651
|
Switch.className = CLASSNAME$c;
|
|
20399
20652
|
Switch.defaultProps = DEFAULT_PROPS$d;
|
|
20400
20653
|
|
|
20401
20654
|
/**
|
|
20402
20655
|
* Component display name.
|
|
20403
20656
|
*/
|
|
20404
|
-
const COMPONENT_NAME$
|
|
20657
|
+
const COMPONENT_NAME$c = 'Table';
|
|
20405
20658
|
|
|
20406
20659
|
/**
|
|
20407
20660
|
* Component default class name and class prefix.
|
|
@@ -20474,14 +20727,14 @@ const Table = forwardRef((props, ref) => {
|
|
|
20474
20727
|
...otherProps
|
|
20475
20728
|
});
|
|
20476
20729
|
});
|
|
20477
|
-
Table.displayName = COMPONENT_NAME$
|
|
20730
|
+
Table.displayName = COMPONENT_NAME$c;
|
|
20478
20731
|
Table.className = CLASSNAME$b;
|
|
20479
20732
|
Table.defaultProps = DEFAULT_PROPS$c;
|
|
20480
20733
|
|
|
20481
20734
|
/**
|
|
20482
20735
|
* Component display name.
|
|
20483
20736
|
*/
|
|
20484
|
-
const COMPONENT_NAME$
|
|
20737
|
+
const COMPONENT_NAME$b = 'TableBody';
|
|
20485
20738
|
|
|
20486
20739
|
/**
|
|
20487
20740
|
* Component default class name and class prefix.
|
|
@@ -20531,7 +20784,7 @@ const TableBody = forwardRef((props, ref) => {
|
|
|
20531
20784
|
...otherProps
|
|
20532
20785
|
});
|
|
20533
20786
|
});
|
|
20534
|
-
TableBody.displayName = COMPONENT_NAME$
|
|
20787
|
+
TableBody.displayName = COMPONENT_NAME$b;
|
|
20535
20788
|
TableBody.className = CLASSNAME$a;
|
|
20536
20789
|
|
|
20537
20790
|
const ThOrder = {
|
|
@@ -20553,7 +20806,7 @@ const TableCellVariant = {
|
|
|
20553
20806
|
/**
|
|
20554
20807
|
* Component display name.
|
|
20555
20808
|
*/
|
|
20556
|
-
const COMPONENT_NAME$
|
|
20809
|
+
const COMPONENT_NAME$a = 'TableCell';
|
|
20557
20810
|
|
|
20558
20811
|
/**
|
|
20559
20812
|
* Component default class name and class prefix.
|
|
@@ -20669,14 +20922,14 @@ const TableCell = forwardRef((props, ref) => {
|
|
|
20669
20922
|
handleClick: onHeaderClick
|
|
20670
20923
|
});
|
|
20671
20924
|
});
|
|
20672
|
-
TableCell.displayName = COMPONENT_NAME$
|
|
20925
|
+
TableCell.displayName = COMPONENT_NAME$a;
|
|
20673
20926
|
TableCell.className = CLASSNAME$9;
|
|
20674
20927
|
TableCell.defaultProps = DEFAULT_PROPS$b;
|
|
20675
20928
|
|
|
20676
20929
|
/**
|
|
20677
20930
|
* Component display name.
|
|
20678
20931
|
*/
|
|
20679
|
-
const COMPONENT_NAME$
|
|
20932
|
+
const COMPONENT_NAME$9 = 'TableHeader';
|
|
20680
20933
|
|
|
20681
20934
|
/**
|
|
20682
20935
|
* Component default class name and class prefix.
|
|
@@ -20731,14 +20984,14 @@ const TableHeader = forwardRef((props, ref) => {
|
|
|
20731
20984
|
...otherProps
|
|
20732
20985
|
});
|
|
20733
20986
|
});
|
|
20734
|
-
TableHeader.displayName = COMPONENT_NAME$
|
|
20987
|
+
TableHeader.displayName = COMPONENT_NAME$9;
|
|
20735
20988
|
TableHeader.className = CLASSNAME$8;
|
|
20736
20989
|
TableHeader.defaultProps = DEFAULT_PROPS$a;
|
|
20737
20990
|
|
|
20738
20991
|
/**
|
|
20739
20992
|
* Component display name.
|
|
20740
20993
|
*/
|
|
20741
|
-
const COMPONENT_NAME$
|
|
20994
|
+
const COMPONENT_NAME$8 = 'TableRow';
|
|
20742
20995
|
|
|
20743
20996
|
/**
|
|
20744
20997
|
* Component default class name and class prefix.
|
|
@@ -20821,7 +21074,7 @@ const TableRow = forwardRef((props, ref) => {
|
|
|
20821
21074
|
...forwardedProps
|
|
20822
21075
|
});
|
|
20823
21076
|
});
|
|
20824
|
-
TableRow.displayName = COMPONENT_NAME$
|
|
21077
|
+
TableRow.displayName = COMPONENT_NAME$8;
|
|
20825
21078
|
TableRow.className = CLASSNAME$7;
|
|
20826
21079
|
TableRow.defaultProps = DEFAULT_PROPS$9;
|
|
20827
21080
|
|
|
@@ -20909,7 +21162,7 @@ let TabListLayout = /*#__PURE__*/function (TabListLayout) {
|
|
|
20909
21162
|
/**
|
|
20910
21163
|
* Component display name.
|
|
20911
21164
|
*/
|
|
20912
|
-
const COMPONENT_NAME$
|
|
21165
|
+
const COMPONENT_NAME$7 = 'TabList';
|
|
20913
21166
|
|
|
20914
21167
|
/**
|
|
20915
21168
|
* Component default props.
|
|
@@ -20940,6 +21193,7 @@ const TabList$1 = props => {
|
|
|
20940
21193
|
ref,
|
|
20941
21194
|
...forwardedProps
|
|
20942
21195
|
} = props;
|
|
21196
|
+
const LinkWrapper = role === 'navigation' ? 'nav' : 'div';
|
|
20943
21197
|
return /*#__PURE__*/jsx("div", {
|
|
20944
21198
|
ref: ref,
|
|
20945
21199
|
...forwardedProps,
|
|
@@ -20948,7 +21202,7 @@ const TabList$1 = props => {
|
|
|
20948
21202
|
[`position-${position}`]: Boolean(position),
|
|
20949
21203
|
[`theme-${theme}`]: Boolean(theme)
|
|
20950
21204
|
})),
|
|
20951
|
-
children: /*#__PURE__*/jsx(
|
|
21205
|
+
children: /*#__PURE__*/jsx(LinkWrapper, {
|
|
20952
21206
|
className: element$4('links'),
|
|
20953
21207
|
role: role,
|
|
20954
21208
|
"aria-label": ariaLabel,
|
|
@@ -20990,14 +21244,14 @@ const TabList = forwardRef((props, ref) => {
|
|
|
20990
21244
|
ref: mergeRefs(ref, tabListRef)
|
|
20991
21245
|
});
|
|
20992
21246
|
});
|
|
20993
|
-
TabList.displayName = COMPONENT_NAME$
|
|
21247
|
+
TabList.displayName = COMPONENT_NAME$7;
|
|
20994
21248
|
TabList.className = TABS_CLASSNAME;
|
|
20995
21249
|
TabList.defaultProps = DEFAULT_PROPS$7;
|
|
20996
21250
|
|
|
20997
21251
|
/**
|
|
20998
21252
|
* Component display name.
|
|
20999
21253
|
*/
|
|
21000
|
-
const COMPONENT_NAME$
|
|
21254
|
+
const COMPONENT_NAME$6 = 'Tab';
|
|
21001
21255
|
|
|
21002
21256
|
/**
|
|
21003
21257
|
* Component default props.
|
|
@@ -21032,8 +21286,7 @@ const Tab$1 = props => {
|
|
|
21032
21286
|
isAnyDisabled,
|
|
21033
21287
|
isDisabled,
|
|
21034
21288
|
id,
|
|
21035
|
-
isActive
|
|
21036
|
-
'aria-current': ariaCurrent,
|
|
21289
|
+
isActive,
|
|
21037
21290
|
role,
|
|
21038
21291
|
label,
|
|
21039
21292
|
handleFocus,
|
|
@@ -21049,7 +21302,6 @@ const Tab$1 = props => {
|
|
|
21049
21302
|
ref,
|
|
21050
21303
|
...forwardedProps
|
|
21051
21304
|
} = props;
|
|
21052
|
-
const isActive = isActiveProp ?? ariaCurrent === 'page';
|
|
21053
21305
|
let rawClickableProps;
|
|
21054
21306
|
if (role === 'tab') {
|
|
21055
21307
|
// Mode: WAI-ARIA `tab` role (inside a TabProvider)
|
|
@@ -21180,7 +21432,7 @@ const Tab = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
21180
21432
|
handleKeyPress: onKeyPress
|
|
21181
21433
|
});
|
|
21182
21434
|
}), {
|
|
21183
|
-
displayName: COMPONENT_NAME$
|
|
21435
|
+
displayName: COMPONENT_NAME$6,
|
|
21184
21436
|
className: CLASSNAME$6,
|
|
21185
21437
|
defaultProps: DEFAULT_PROPS$6
|
|
21186
21438
|
});
|
|
@@ -21188,7 +21440,7 @@ const Tab = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
21188
21440
|
/**
|
|
21189
21441
|
* Component display name.
|
|
21190
21442
|
*/
|
|
21191
|
-
const COMPONENT_NAME$
|
|
21443
|
+
const COMPONENT_NAME$5 = 'TabPanel';
|
|
21192
21444
|
|
|
21193
21445
|
/**
|
|
21194
21446
|
* Component default class name and class prefix.
|
|
@@ -21268,7 +21520,7 @@ const TabPanel = forwardRef((props, ref) => {
|
|
|
21268
21520
|
...forwardedProps
|
|
21269
21521
|
});
|
|
21270
21522
|
});
|
|
21271
|
-
TabPanel.displayName = COMPONENT_NAME$
|
|
21523
|
+
TabPanel.displayName = COMPONENT_NAME$5;
|
|
21272
21524
|
TabPanel.className = CLASSNAME$5;
|
|
21273
21525
|
TabPanel.defaultProps = DEFAULT_PROPS$5;
|
|
21274
21526
|
|
|
@@ -21419,7 +21671,7 @@ function calculateFocusPointStyle({
|
|
|
21419
21671
|
/**
|
|
21420
21672
|
* Component display name.
|
|
21421
21673
|
*/
|
|
21422
|
-
const COMPONENT_NAME$
|
|
21674
|
+
const COMPONENT_NAME$4 = 'Thumbnail';
|
|
21423
21675
|
|
|
21424
21676
|
/**
|
|
21425
21677
|
* Component default class name and class prefix.
|
|
@@ -21709,7 +21961,7 @@ const Thumbnail = forwardRef((props, ref) => {
|
|
|
21709
21961
|
})
|
|
21710
21962
|
});
|
|
21711
21963
|
});
|
|
21712
|
-
Thumbnail.displayName = COMPONENT_NAME$
|
|
21964
|
+
Thumbnail.displayName = COMPONENT_NAME$4;
|
|
21713
21965
|
Thumbnail.className = CLASSNAME$4;
|
|
21714
21966
|
Thumbnail.defaultProps = DEFAULT_PROPS$4;
|
|
21715
21967
|
|
|
@@ -21753,7 +22005,7 @@ const ThumbnailObjectFit = {
|
|
|
21753
22005
|
/**
|
|
21754
22006
|
* Component display name.
|
|
21755
22007
|
*/
|
|
21756
|
-
const COMPONENT_NAME$
|
|
22008
|
+
const COMPONENT_NAME$3 = 'TimePickerField';
|
|
21757
22009
|
|
|
21758
22010
|
/**
|
|
21759
22011
|
* Component default class name (BEM root).
|
|
@@ -21854,7 +22106,7 @@ const TimePickerField$1 = (props, {
|
|
|
21854
22106
|
translations: translations
|
|
21855
22107
|
});
|
|
21856
22108
|
};
|
|
21857
|
-
TimePickerField$1.displayName = COMPONENT_NAME$
|
|
22109
|
+
TimePickerField$1.displayName = COMPONENT_NAME$3;
|
|
21858
22110
|
TimePickerField$1.className = CLASSNAME$3;
|
|
21859
22111
|
|
|
21860
22112
|
/**
|
|
@@ -22118,12 +22370,12 @@ const TimePickerField = props => {
|
|
|
22118
22370
|
Option: SelectTextField.Option
|
|
22119
22371
|
});
|
|
22120
22372
|
};
|
|
22121
|
-
TimePickerField.displayName = COMPONENT_NAME$
|
|
22373
|
+
TimePickerField.displayName = COMPONENT_NAME$3;
|
|
22122
22374
|
|
|
22123
22375
|
/**
|
|
22124
22376
|
* Component display name.
|
|
22125
22377
|
*/
|
|
22126
|
-
const
|
|
22378
|
+
const COMPONENT_NAME$2 = 'Toolbar';
|
|
22127
22379
|
|
|
22128
22380
|
/**
|
|
22129
22381
|
* Component default class name and class prefix.
|
|
@@ -22192,7 +22444,7 @@ const Toolbar = forwardRef((props, ref) => {
|
|
|
22192
22444
|
...props
|
|
22193
22445
|
});
|
|
22194
22446
|
});
|
|
22195
|
-
Toolbar.displayName =
|
|
22447
|
+
Toolbar.displayName = COMPONENT_NAME$2;
|
|
22196
22448
|
Toolbar.className = CLASSNAME$2;
|
|
22197
22449
|
Toolbar.defaultProps = DEFAULT_PROPS$2;
|
|
22198
22450
|
|
|
@@ -22591,5 +22843,5 @@ UserBlock.displayName = COMPONENT_NAME;
|
|
|
22591
22843
|
UserBlock.className = CLASSNAME;
|
|
22592
22844
|
UserBlock.defaultProps = DEFAULT_PROPS;
|
|
22593
22845
|
|
|
22594
|
-
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$1w as CLASSNAME, COMPONENT_NAME$
|
|
22846
|
+
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$1w as CLASSNAME, COMPONENT_NAME$1z as COMPONENT_NAME, Checkbox, Chip, ChipGroup, Combobox, CommentBlock, CommentBlockVariant, DEFAULT_PROPS$1e as DEFAULT_PROPS, DatePicker, DatePickerControlled, DatePickerField, Dialog, DialogHeading, Divider, DragHandle, Dropdown, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, ImageLightbox, InlineList, InputHelper, InputLabel, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSection, ListSubheader, MenuButton, ListDivider as MenuDivider, MenuItem, Message, Mosaic, Navigation, Notification, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, RawInputText, RawInputTextarea, Select, SelectButton, SelectMultiple, SelectMultipleField, SelectTextField, SelectVariant, SelectionChipGroup, SideNavigation, SideNavigationItem, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, CLASSNAME$3 as TIME_PICKER_FIELD_CLASSNAME, COMPONENT_NAME$3 as TIME_PICKER_FIELD_COMPONENT_NAME, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableHeader, TableRow, Text, TextField, ThOrder, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, TimePickerField, Toolbar, Tooltip, Uploader, UploaderVariant, UserBlock, clamp, useFocusPointStyle, useHeadingLevel, useTheme };
|
|
22595
22847
|
//# sourceMappingURL=index.js.map
|