@lumx/react 4.6.0 → 4.6.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/index.d.ts +119 -30
  2. package/index.js +1041 -756
  3. package/index.js.map +1 -1
  4. package/package.json +5 -3
package/index.js CHANGED
@@ -97,20 +97,20 @@ const CONFIG$1 = {
97
97
  /**
98
98
  * Component display name.
99
99
  */
100
- const COMPONENT_NAME$1k = 'AlertDialog';
100
+ const COMPONENT_NAME$1m = 'AlertDialog';
101
101
 
102
102
  /**
103
103
  * Component default class name and class prefix.
104
104
  */
105
- const CLASSNAME$1j = 'lumx-alert-dialog';
105
+ const CLASSNAME$1l = 'lumx-alert-dialog';
106
106
  const {
107
- block: block$14
108
- } = classNames.bem(CLASSNAME$1j);
107
+ block: block$15
108
+ } = classNames.bem(CLASSNAME$1l);
109
109
 
110
110
  /**
111
111
  * Component default props.
112
112
  */
113
- const DEFAULT_PROPS$1a = {
113
+ const DEFAULT_PROPS$1d = {
114
114
  size: Size$1.tiny,
115
115
  kind: Kind$1.info
116
116
  };
@@ -131,8 +131,8 @@ const AlertDialog = forwardRef((props, ref) => {
131
131
  className,
132
132
  cancelProps,
133
133
  confirmProps,
134
- kind = DEFAULT_PROPS$1a.kind,
135
- size = DEFAULT_PROPS$1a.size,
134
+ kind = DEFAULT_PROPS$1d.kind,
135
+ size = DEFAULT_PROPS$1d.size,
136
136
  dialogProps,
137
137
  children,
138
138
  ...forwardedProps
@@ -173,7 +173,7 @@ const AlertDialog = forwardRef((props, ref) => {
173
173
  'aria-describedby': descriptionId,
174
174
  ...dialogProps
175
175
  },
176
- className: classNames.join(className, block$14({
176
+ className: classNames.join(className, block$15({
177
177
  [`kind-${kind}`]: Boolean(kind)
178
178
  })),
179
179
  ...forwardedProps,
@@ -218,9 +218,9 @@ const AlertDialog = forwardRef((props, ref) => {
218
218
  })]
219
219
  });
220
220
  });
221
- AlertDialog.displayName = COMPONENT_NAME$1k;
222
- AlertDialog.className = CLASSNAME$1j;
223
- AlertDialog.defaultProps = DEFAULT_PROPS$1a;
221
+ AlertDialog.displayName = COMPONENT_NAME$1m;
222
+ AlertDialog.className = CLASSNAME$1l;
223
+ AlertDialog.defaultProps = DEFAULT_PROPS$1d;
224
224
 
225
225
  /**
226
226
  * Hook focusing an element when defined and `focus` boolean `true`.
@@ -312,17 +312,17 @@ function useDisableStateProps(props) {
312
312
  /**
313
313
  * Component display name.
314
314
  */
315
- const COMPONENT_NAME$1j = 'Autocomplete';
315
+ const COMPONENT_NAME$1l = 'Autocomplete';
316
316
 
317
317
  /**
318
318
  * Component default class name and class prefix.
319
319
  */
320
- const CLASSNAME$1i = 'lumx-autocomplete';
320
+ const CLASSNAME$1k = 'lumx-autocomplete';
321
321
 
322
322
  /**
323
323
  * Component default props.
324
324
  */
325
- const DEFAULT_PROPS$19 = {
325
+ const DEFAULT_PROPS$1c = {
326
326
  anchorToInput: false,
327
327
  closeOnClick: false,
328
328
  closeOnClickAway: true,
@@ -344,13 +344,13 @@ const Autocomplete = forwardRef((props, ref) => {
344
344
  otherProps
345
345
  } = useDisableStateProps(props);
346
346
  const {
347
- anchorToInput = DEFAULT_PROPS$19.anchorToInput,
347
+ anchorToInput = DEFAULT_PROPS$1c.anchorToInput,
348
348
  children,
349
349
  chips,
350
350
  className,
351
- closeOnClick = DEFAULT_PROPS$19.closeOnClick,
352
- closeOnClickAway = DEFAULT_PROPS$19.closeOnClickAway,
353
- closeOnEscape = DEFAULT_PROPS$19.closeOnEscape,
351
+ closeOnClick = DEFAULT_PROPS$1c.closeOnClick,
352
+ closeOnClickAway = DEFAULT_PROPS$1c.closeOnClickAway,
353
+ closeOnEscape = DEFAULT_PROPS$1c.closeOnEscape,
354
354
  error,
355
355
  fitToAnchorWidth,
356
356
  hasError,
@@ -371,7 +371,7 @@ const Autocomplete = forwardRef((props, ref) => {
371
371
  onInfiniteScroll,
372
372
  placeholder,
373
373
  placement,
374
- shouldFocusOnClose = DEFAULT_PROPS$19.shouldFocusOnClose,
374
+ shouldFocusOnClose = DEFAULT_PROPS$1c.shouldFocusOnClose,
375
375
  theme = defaultTheme,
376
376
  value,
377
377
  textFieldProps = {},
@@ -384,7 +384,7 @@ const Autocomplete = forwardRef((props, ref) => {
384
384
  return /*#__PURE__*/jsxs("div", {
385
385
  ref: ref,
386
386
  ...forwardedProps,
387
- className: classNames.join(className, CLASSNAME$1i),
387
+ className: classNames.join(className, CLASSNAME$1k),
388
388
  children: [/*#__PURE__*/jsx(TextField, {
389
389
  ...textFieldProps,
390
390
  chips: chips,
@@ -424,24 +424,24 @@ const Autocomplete = forwardRef((props, ref) => {
424
424
  })]
425
425
  });
426
426
  });
427
- Autocomplete.displayName = COMPONENT_NAME$1j;
428
- Autocomplete.className = CLASSNAME$1i;
429
- Autocomplete.defaultProps = DEFAULT_PROPS$19;
427
+ Autocomplete.displayName = COMPONENT_NAME$1l;
428
+ Autocomplete.className = CLASSNAME$1k;
429
+ Autocomplete.defaultProps = DEFAULT_PROPS$1c;
430
430
 
431
431
  /**
432
432
  * Component display name.
433
433
  */
434
- const COMPONENT_NAME$1i = 'AutocompleteMultiple';
434
+ const COMPONENT_NAME$1k = 'AutocompleteMultiple';
435
435
 
436
436
  /**
437
437
  * Component default class name and class prefix.
438
438
  */
439
- const CLASSNAME$1h = 'lumx-autocomplete-multiple';
439
+ const CLASSNAME$1j = 'lumx-autocomplete-multiple';
440
440
 
441
441
  /**
442
442
  * Component default props.
443
443
  */
444
- const DEFAULT_PROPS$18 = {
444
+ const DEFAULT_PROPS$1b = {
445
445
  closeOnClickAway: true,
446
446
  closeOnEscape: true,
447
447
  selectedChipRender(choice, index, onClear, isDisabled) {
@@ -481,8 +481,8 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
481
481
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
482
482
  chipsAlignment,
483
483
  className,
484
- closeOnClickAway = DEFAULT_PROPS$18.closeOnClickAway,
485
- closeOnEscape = DEFAULT_PROPS$18.closeOnEscape,
484
+ closeOnClickAway = DEFAULT_PROPS$1b.closeOnClickAway,
485
+ closeOnEscape = DEFAULT_PROPS$1b.closeOnEscape,
486
486
  fitToAnchorWidth,
487
487
  hasError,
488
488
  helper,
@@ -504,19 +504,19 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
504
504
  onKeyDown,
505
505
  placeholder,
506
506
  placement,
507
- selectedChipRender = DEFAULT_PROPS$18.selectedChipRender,
507
+ selectedChipRender = DEFAULT_PROPS$1b.selectedChipRender,
508
508
  shouldFocusOnClose,
509
509
  theme = defaultTheme,
510
510
  type,
511
511
  value,
512
- values = DEFAULT_PROPS$18.values,
512
+ values = DEFAULT_PROPS$1b.values,
513
513
  ...forwardedProps
514
514
  } = otherProps;
515
515
  return /*#__PURE__*/jsx(Autocomplete, {
516
516
  ref: ref,
517
517
  ...forwardedProps,
518
518
  anchorToInput: anchorToInput,
519
- className: classNames.join(className, CLASSNAME$1h),
519
+ className: classNames.join(className, CLASSNAME$1j),
520
520
  name: name,
521
521
  value: value,
522
522
  onChange: onChange,
@@ -549,9 +549,9 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
549
549
  children: children
550
550
  });
551
551
  });
552
- AutocompleteMultiple.displayName = COMPONENT_NAME$1i;
553
- AutocompleteMultiple.className = CLASSNAME$1h;
554
- AutocompleteMultiple.defaultProps = DEFAULT_PROPS$18;
552
+ AutocompleteMultiple.displayName = COMPONENT_NAME$1k;
553
+ AutocompleteMultiple.className = CLASSNAME$1j;
554
+ AutocompleteMultiple.defaultProps = DEFAULT_PROPS$1b;
555
555
 
556
556
  function getDefaultExportFromCjs (x) {
557
557
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -626,62 +626,6 @@ function requireClassnames () {
626
626
  var classnamesExports = requireClassnames();
627
627
  var classnames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
628
628
 
629
- /** Resolve color & color variant from a `ColorWithVariants` and optionally a `ColorVariant`. */
630
- function resolveColorWithVariants(colorWithVariants, colorVariant) {
631
- if (!colorWithVariants) return [undefined, colorVariant];
632
- const [color, baseColorVariant] = colorWithVariants.split('-');
633
- return [color, colorVariant || baseColorVariant];
634
- }
635
-
636
- /**
637
- * Generates a Lumx color class name for the given type, color and variant.
638
- * This is the base function used by font() and background() utilities.
639
- *
640
- * @param type - The color class type ('font' or 'background')
641
- * @param propColor - The color palette name (e.g., 'primary', 'dark') with optional variant suffix (e.g., 'primary-L2')
642
- * @param propColorVariant - Optional color variant override (e.g., 'L1', 'L2', 'D1', 'N')
643
- * @returns The Lumx color class name or undefined if no color is provided
644
- *
645
- * @example
646
- * color('font', 'dark', 'L2'); // 'lumx-color-font-dark-L2'
647
- * color('background', 'primary'); // 'lumx-color-background-primary-N'
648
- * color('font', 'primary-L2'); // 'lumx-color-font-primary-L2'
649
- * color('font', undefined); // undefined
650
- */
651
- function color(type, propColor, propColorVariant) {
652
- const [cColor, cColorVariant = ColorVariant.N] = resolveColorWithVariants(propColor, propColorVariant);
653
- return `lumx-color-${type}-${cColor}-${cColorVariant}`;
654
- }
655
-
656
- /**
657
- * Generates a Lumx font color class name for the given color and variant.
658
- *
659
- * @param propColor - The color palette name (e.g., 'primary', 'dark') with optional variant suffix (e.g., 'primary-L2')
660
- * @param propColorVariant - Optional color variant override (e.g., 'L1', 'L2', 'D1', 'N')
661
- * @returns The Lumx font color class name or undefined if no color is provided
662
- *
663
- * @example
664
- * font('dark', 'L2'); // 'lumx-color-font-dark-L2'
665
- * font('primary-L2'); // 'lumx-color-font-primary-L2'
666
- * font('primary'); // 'lumx-color-font-primary-N'
667
- * font(undefined); // undefined
668
- */
669
- const font = (propColor, propColorVariant) => color('font', propColor, propColorVariant);
670
-
671
- /**
672
- * Returns the classname associated to the given typography. For example, for Typography.title it returns
673
- * lumx-typography-title
674
- */
675
- function typography(typo) {
676
- return `lumx-typography-${typo}`;
677
- }
678
-
679
- /**
680
- * Visually hidden class name.
681
- * Used to hide elements from view but keep them readable from screen readers
682
- */
683
- const visuallyHidden = () => VISUALLY_HIDDEN;
684
-
685
629
  /**
686
630
  * Modifier
687
631
  * @example { 'is-disabled': true, 'is-selected': false }
@@ -719,7 +663,7 @@ function modifier$1(baseName, modifiers) {
719
663
  * block('button', { active: true, disabled: false }); // 'button button--active'
720
664
  */
721
665
 
722
- function block$13(baseName, modifiersOrAdditionalClasses, additionalClasses) {
666
+ function block$14(baseName, modifiersOrAdditionalClasses, additionalClasses) {
723
667
  let modifiers;
724
668
  let classes;
725
669
  if (Array.isArray(modifiersOrAdditionalClasses)) {
@@ -740,6 +684,79 @@ function block$13(baseName, modifiersOrAdditionalClasses, additionalClasses) {
740
684
  modifiers ? modifier$1(baseName, modifiers) : null);
741
685
  }
742
686
 
687
+ const PREFIX = 'lumx-action-area';
688
+ const ACTION_ELEMENT = `${PREFIX}__action`;
689
+ /**
690
+ * Action area CSS utility.
691
+ *
692
+ * Apply `actionArea()` to the container element to make it a positioning context
693
+ * for the action's expanded click area.
694
+ *
695
+ * Apply `actionArea.action()` to the primary interactive element (link or button)
696
+ * whose click area should expand to fill the entire container.
697
+ */
698
+ const actionArea = Object.assign(/** Action area container class. Sets `position: relative`. */
699
+ () => PREFIX, {
700
+ /** Action element class. Adds a `::before` pseudo-element with `position: absolute; inset: 0` to expand the click area. */
701
+ action: modifiers => block$14(ACTION_ELEMENT, modifiers)
702
+ });
703
+
704
+ /** Resolve color & color variant from a `ColorWithVariants` and optionally a `ColorVariant`. */
705
+ function resolveColorWithVariants(colorWithVariants, colorVariant) {
706
+ if (!colorWithVariants) return [undefined, colorVariant];
707
+ const [color, baseColorVariant] = colorWithVariants.split('-');
708
+ return [color, colorVariant || baseColorVariant];
709
+ }
710
+
711
+ /**
712
+ * Generates a Lumx color class name for the given type, color and variant.
713
+ * This is the base function used by font() and background() utilities.
714
+ *
715
+ * @param type - The color class type ('font' or 'background')
716
+ * @param propColor - The color palette name (e.g., 'primary', 'dark') with optional variant suffix (e.g., 'primary-L2')
717
+ * @param propColorVariant - Optional color variant override (e.g., 'L1', 'L2', 'D1', 'N')
718
+ * @returns The Lumx color class name or undefined if no color is provided
719
+ *
720
+ * @example
721
+ * color('font', 'dark', 'L2'); // 'lumx-color-font-dark-L2'
722
+ * color('background', 'primary'); // 'lumx-color-background-primary-N'
723
+ * color('font', 'primary-L2'); // 'lumx-color-font-primary-L2'
724
+ * color('font', undefined); // undefined
725
+ */
726
+ function color(type, propColor, propColorVariant) {
727
+ const [cColor, cColorVariant = ColorVariant.N] = resolveColorWithVariants(propColor, propColorVariant);
728
+ return `lumx-color-${type}-${cColor}-${cColorVariant}`;
729
+ }
730
+
731
+ /**
732
+ * Generates a Lumx font color class name for the given color and variant.
733
+ *
734
+ * @param propColor - The color palette name (e.g., 'primary', 'dark') with optional variant suffix (e.g., 'primary-L2')
735
+ * @param propColorVariant - Optional color variant override (e.g., 'L1', 'L2', 'D1', 'N')
736
+ * @returns The Lumx font color class name or undefined if no color is provided
737
+ *
738
+ * @example
739
+ * font('dark', 'L2'); // 'lumx-color-font-dark-L2'
740
+ * font('primary-L2'); // 'lumx-color-font-primary-L2'
741
+ * font('primary'); // 'lumx-color-font-primary-N'
742
+ * font(undefined); // undefined
743
+ */
744
+ const font = (propColor, propColorVariant) => color('font', propColor, propColorVariant);
745
+
746
+ /**
747
+ * Returns the classname associated to the given typography. For example, for Typography.title it returns
748
+ * lumx-typography-title
749
+ */
750
+ function typography(typo) {
751
+ return `lumx-typography-${typo}`;
752
+ }
753
+
754
+ /**
755
+ * Visually hidden class name.
756
+ * Used to hide elements from view but keep them readable from screen readers
757
+ */
758
+ const visuallyHidden = () => VISUALLY_HIDDEN;
759
+
743
760
  /**
744
761
  * Creates a BEM element class generator function for the given base class.
745
762
  * Returns a function that generates BEM element class names with optional modifiers.
@@ -754,11 +771,11 @@ function block$13(baseName, modifiersOrAdditionalClasses, additionalClasses) {
754
771
  * element('my-button', 'icon', { active: true }); // 'my-button__icon my-button__icon--active'
755
772
  */
756
773
 
757
- function element$N(baseClass, elem, modifiersOrAdditionalClasses, additionalClasses) {
774
+ function element$O(baseClass, elem, modifiersOrAdditionalClasses, additionalClasses) {
758
775
  if (Array.isArray(modifiersOrAdditionalClasses)) {
759
- return block$13(`${baseClass}__${elem}`, modifiersOrAdditionalClasses);
776
+ return block$14(`${baseClass}__${elem}`, modifiersOrAdditionalClasses);
760
777
  }
761
- return block$13(`${baseClass}__${elem}`, modifiersOrAdditionalClasses, additionalClasses);
778
+ return block$14(`${baseClass}__${elem}`, modifiersOrAdditionalClasses, additionalClasses);
762
779
  }
763
780
 
764
781
  /**
@@ -767,15 +784,15 @@ function element$N(baseClass, elem, modifiersOrAdditionalClasses, additionalClas
767
784
  function bem(baseName) {
768
785
  function blockFn(modifiersOrAdditionalClasses, additionalClasses) {
769
786
  if (Array.isArray(modifiersOrAdditionalClasses)) {
770
- return block$13(baseName, modifiersOrAdditionalClasses);
787
+ return block$14(baseName, modifiersOrAdditionalClasses);
771
788
  }
772
- return block$13(baseName, modifiersOrAdditionalClasses, additionalClasses);
789
+ return block$14(baseName, modifiersOrAdditionalClasses, additionalClasses);
773
790
  }
774
791
  function elementFn(elem, modifiersOrAdditionalClasses, additionalClasses) {
775
792
  if (Array.isArray(modifiersOrAdditionalClasses)) {
776
- return element$N(baseName, elem, modifiersOrAdditionalClasses);
793
+ return element$O(baseName, elem, modifiersOrAdditionalClasses);
777
794
  }
778
- return element$N(baseName, elem, modifiersOrAdditionalClasses, additionalClasses);
795
+ return element$O(baseName, elem, modifiersOrAdditionalClasses, additionalClasses);
779
796
  }
780
797
  return {
781
798
  block: blockFn,
@@ -896,21 +913,21 @@ const IS_BROWSER = typeof window !== 'undefined' && !window.navigator.userAgent.
896
913
  /**
897
914
  * Component display name.
898
915
  */
899
- const COMPONENT_NAME$1h = 'Avatar';
916
+ const COMPONENT_NAME$1j = 'Avatar';
900
917
 
901
918
  /**
902
919
  * Component default class name and class prefix.
903
920
  */
904
- const CLASSNAME$1g = 'lumx-avatar';
921
+ const CLASSNAME$1i = 'lumx-avatar';
905
922
  const {
906
- block: block$12,
907
- element: element$M
908
- } = bem(CLASSNAME$1g);
923
+ block: block$13,
924
+ element: element$N
925
+ } = bem(CLASSNAME$1i);
909
926
 
910
927
  /**
911
928
  * Component default props.
912
929
  */
913
- const DEFAULT_PROPS$17 = {
930
+ const DEFAULT_PROPS$1a = {
914
931
  size: Size.m
915
932
  };
916
933
 
@@ -927,7 +944,7 @@ const Avatar$1 = props => {
927
944
  badge,
928
945
  className,
929
946
  image,
930
- size = DEFAULT_PROPS$17.size,
947
+ size = DEFAULT_PROPS$1a.size,
931
948
  theme,
932
949
  ref,
933
950
  ...forwardedProps
@@ -935,15 +952,15 @@ const Avatar$1 = props => {
935
952
  return /*#__PURE__*/jsxs("div", {
936
953
  ref: ref,
937
954
  ...forwardedProps,
938
- className: classnames(className, block$12({
955
+ className: classnames(className, block$13({
939
956
  [`size-${size}`]: Boolean(size),
940
957
  [`theme-${theme}`]: Boolean(theme)
941
958
  })),
942
959
  children: [image, actions && /*#__PURE__*/jsx("div", {
943
- className: element$M('actions'),
960
+ className: element$N('actions'),
944
961
  children: actions
945
962
  }), badge && /*#__PURE__*/jsx("div", {
946
- className: element$M('badge'),
963
+ className: element$N('badge'),
947
964
  children: badge
948
965
  })]
949
966
  });
@@ -968,7 +985,7 @@ const Avatar = forwardRef((props, ref) => {
968
985
  linkAs,
969
986
  onClick,
970
987
  onKeyPress,
971
- size = DEFAULT_PROPS$17.size,
988
+ size = DEFAULT_PROPS$1a.size,
972
989
  theme = defaultTheme,
973
990
  thumbnailProps,
974
991
  ...forwardedProps
@@ -984,7 +1001,7 @@ const Avatar = forwardRef((props, ref) => {
984
1001
  image: /*#__PURE__*/jsx(Thumbnail, {
985
1002
  linkProps: linkProps,
986
1003
  linkAs: linkAs,
987
- className: element$M('thumbnail'),
1004
+ className: element$N('thumbnail'),
988
1005
  onClick: onClick,
989
1006
  onKeyPress: onKeyPress,
990
1007
  ...thumbnailProps,
@@ -996,27 +1013,27 @@ const Avatar = forwardRef((props, ref) => {
996
1013
  })
997
1014
  });
998
1015
  });
999
- Avatar.displayName = COMPONENT_NAME$1h;
1000
- Avatar.className = CLASSNAME$1g;
1001
- Avatar.defaultProps = DEFAULT_PROPS$17;
1016
+ Avatar.displayName = COMPONENT_NAME$1j;
1017
+ Avatar.className = CLASSNAME$1i;
1018
+ Avatar.defaultProps = DEFAULT_PROPS$1a;
1002
1019
 
1003
1020
  /**
1004
1021
  * Component display name.
1005
1022
  */
1006
- const COMPONENT_NAME$1g = 'Badge';
1023
+ const COMPONENT_NAME$1i = 'Badge';
1007
1024
 
1008
1025
  /**
1009
1026
  * Component default class name and class prefix.
1010
1027
  */
1011
- const CLASSNAME$1f = 'lumx-badge';
1028
+ const CLASSNAME$1h = 'lumx-badge';
1012
1029
  const {
1013
- block: block$11
1014
- } = bem(CLASSNAME$1f);
1030
+ block: block$12
1031
+ } = bem(CLASSNAME$1h);
1015
1032
 
1016
1033
  /**
1017
1034
  * Component default props.
1018
1035
  */
1019
- const DEFAULT_PROPS$16 = {
1036
+ const DEFAULT_PROPS$19 = {
1020
1037
  color: ColorPalette.primary
1021
1038
  };
1022
1039
 
@@ -1030,22 +1047,22 @@ const Badge$1 = props => {
1030
1047
  const {
1031
1048
  children,
1032
1049
  className,
1033
- color = DEFAULT_PROPS$16.color,
1050
+ color = DEFAULT_PROPS$19.color,
1034
1051
  ref,
1035
1052
  ...forwardedProps
1036
1053
  } = props;
1037
1054
  return /*#__PURE__*/jsx("div", {
1038
1055
  ref: ref,
1039
1056
  ...forwardedProps,
1040
- className: classnames(className, block$11({
1057
+ className: classnames(className, block$12({
1041
1058
  [`color-${color}`]: Boolean(color)
1042
1059
  })),
1043
1060
  children: children
1044
1061
  });
1045
1062
  };
1046
- Badge$1.displayName = COMPONENT_NAME$1g;
1047
- Badge$1.className = CLASSNAME$1f;
1048
- Badge$1.defaultProps = DEFAULT_PROPS$16;
1063
+ Badge$1.displayName = COMPONENT_NAME$1i;
1064
+ Badge$1.className = CLASSNAME$1h;
1065
+ Badge$1.defaultProps = DEFAULT_PROPS$19;
1049
1066
 
1050
1067
  /**
1051
1068
  * Defines the props of the component.
@@ -1068,12 +1085,12 @@ Badge.displayName = Badge$1.displayName;
1068
1085
  Badge.className = Badge$1.className;
1069
1086
  Badge.defaultProps = Badge$1.defaultProps;
1070
1087
 
1071
- const COMPONENT_NAME$1f = 'BadgeWrapper';
1072
- const CLASSNAME$1e = 'lumx-badge-wrapper';
1088
+ const COMPONENT_NAME$1h = 'BadgeWrapper';
1089
+ const CLASSNAME$1g = 'lumx-badge-wrapper';
1073
1090
  const {
1074
- block: block$10,
1075
- element: element$L
1076
- } = bem(CLASSNAME$1e);
1091
+ block: block$11,
1092
+ element: element$M
1093
+ } = bem(CLASSNAME$1g);
1077
1094
  const BadgeWrapper$1 = props => {
1078
1095
  const {
1079
1096
  badge,
@@ -1085,9 +1102,9 @@ const BadgeWrapper$1 = props => {
1085
1102
  return /*#__PURE__*/jsxs("div", {
1086
1103
  ref: ref,
1087
1104
  ...forwardedProps,
1088
- className: classnames(className, block$10()),
1105
+ className: classnames(className, block$11()),
1089
1106
  children: [children, badge && /*#__PURE__*/jsx("div", {
1090
- className: element$L('badge'),
1107
+ className: element$M('badge'),
1091
1108
  children: badge
1092
1109
  })]
1093
1110
  });
@@ -1099,8 +1116,8 @@ const BadgeWrapper = forwardRef((props, ref) => {
1099
1116
  ref
1100
1117
  });
1101
1118
  });
1102
- BadgeWrapper.displayName = COMPONENT_NAME$1f;
1103
- BadgeWrapper.className = CLASSNAME$1e;
1119
+ BadgeWrapper.displayName = COMPONENT_NAME$1h;
1120
+ BadgeWrapper.className = CLASSNAME$1g;
1104
1121
 
1105
1122
  /**
1106
1123
  * Render clickable element (link, button or custom element)
@@ -1150,7 +1167,7 @@ const RawClickable = props => {
1150
1167
  /**
1151
1168
  * Component display name.
1152
1169
  */
1153
- const COMPONENT_NAME$1e = 'ButtonRoot';
1170
+ const COMPONENT_NAME$1g = 'ButtonRoot';
1154
1171
  const BUTTON_WRAPPER_CLASSNAME = `lumx-button-wrapper`;
1155
1172
  const {
1156
1173
  block: buttonWrapperBlock
@@ -1248,7 +1265,7 @@ const ButtonRoot = props => {
1248
1265
  children
1249
1266
  });
1250
1267
  };
1251
- ButtonRoot.displayName = COMPONENT_NAME$1e;
1268
+ ButtonRoot.displayName = COMPONENT_NAME$1g;
1252
1269
  ButtonRoot.defaultProps = {};
1253
1270
 
1254
1271
  /**
@@ -1258,20 +1275,20 @@ ButtonRoot.defaultProps = {};
1258
1275
  /**
1259
1276
  * Component display name.
1260
1277
  */
1261
- const COMPONENT_NAME$1d = 'Button';
1278
+ const COMPONENT_NAME$1f = 'Button';
1262
1279
 
1263
1280
  /**
1264
1281
  * Component default class name and class prefix.
1265
1282
  */
1266
- const CLASSNAME$1d = 'lumx-button';
1283
+ const CLASSNAME$1f = 'lumx-button';
1267
1284
  const {
1268
1285
  modifier
1269
- } = bem(CLASSNAME$1d);
1286
+ } = bem(CLASSNAME$1f);
1270
1287
 
1271
1288
  /**
1272
1289
  * Component default props.
1273
1290
  */
1274
- const DEFAULT_PROPS$15 = {
1291
+ const DEFAULT_PROPS$18 = {
1275
1292
  emphasis: Emphasis.high,
1276
1293
  size: Size.m
1277
1294
  };
@@ -1285,10 +1302,10 @@ const DEFAULT_PROPS$15 = {
1285
1302
  const Button$1 = props => {
1286
1303
  const {
1287
1304
  className,
1288
- emphasis = DEFAULT_PROPS$15.emphasis,
1305
+ emphasis = DEFAULT_PROPS$18.emphasis,
1289
1306
  leftIcon,
1290
1307
  rightIcon,
1291
- size = DEFAULT_PROPS$15.size,
1308
+ size = DEFAULT_PROPS$18.size,
1292
1309
  ...forwardedProps
1293
1310
  } = props;
1294
1311
  const buttonClassName = classnames(className, modifier({
@@ -1303,9 +1320,9 @@ const Button$1 = props => {
1303
1320
  variant: 'button'
1304
1321
  });
1305
1322
  };
1306
- Button$1.displayName = COMPONENT_NAME$1d;
1307
- Button$1.className = CLASSNAME$1d;
1308
- Button$1.defaultProps = DEFAULT_PROPS$15;
1323
+ Button$1.displayName = COMPONENT_NAME$1f;
1324
+ Button$1.className = CLASSNAME$1f;
1325
+ Button$1.defaultProps = DEFAULT_PROPS$18;
1309
1326
 
1310
1327
  /**
1311
1328
  * Properties of a component to use to determine it's name.
@@ -1378,26 +1395,26 @@ const Button = forwardRef((props, ref) => {
1378
1395
  })
1379
1396
  });
1380
1397
  });
1381
- Button.displayName = COMPONENT_NAME$1d;
1382
- Button.className = CLASSNAME$1d;
1383
- Button.defaultProps = DEFAULT_PROPS$15;
1398
+ Button.displayName = COMPONENT_NAME$1f;
1399
+ Button.className = CLASSNAME$1f;
1400
+ Button.defaultProps = DEFAULT_PROPS$18;
1384
1401
 
1385
- const COMPONENT_NAME$1c = 'Icon';
1402
+ const COMPONENT_NAME$1e = 'Icon';
1386
1403
  const IconClassName = 'lumx-icon';
1387
1404
 
1388
1405
  /**
1389
1406
  * Defines the props of the component.
1390
1407
  */
1391
1408
 
1392
- const CLASSNAME$1c = IconClassName;
1409
+ const CLASSNAME$1e = IconClassName;
1393
1410
  const {
1394
- block: block$$
1395
- } = bem(CLASSNAME$1c);
1411
+ block: block$10
1412
+ } = bem(CLASSNAME$1e);
1396
1413
 
1397
1414
  /**
1398
1415
  * Component default props.
1399
1416
  */
1400
- const DEFAULT_PROPS$14 = {};
1417
+ const DEFAULT_PROPS$17 = {};
1401
1418
 
1402
1419
  /**
1403
1420
  * Icon component.
@@ -1446,7 +1463,7 @@ const Icon$1 = props => {
1446
1463
  return /*#__PURE__*/jsx("i", {
1447
1464
  ref: ref,
1448
1465
  ...forwardedProps,
1449
- className: classnames(className, block$$({
1466
+ className: classnames(className, block$10({
1450
1467
  [`color-${iconColor}`]: Boolean(iconColor),
1451
1468
  [`color-variant-${iconColorVariant}`]: Boolean(iconColorVariant),
1452
1469
  'has-shape': hasShape,
@@ -1475,24 +1492,24 @@ const Icon$1 = props => {
1475
1492
  })
1476
1493
  });
1477
1494
  };
1478
- Icon$1.displayName = COMPONENT_NAME$1c;
1479
- Icon$1.className = CLASSNAME$1c;
1480
- Icon$1.defaultProps = DEFAULT_PROPS$14;
1495
+ Icon$1.displayName = COMPONENT_NAME$1e;
1496
+ Icon$1.className = CLASSNAME$1e;
1497
+ Icon$1.defaultProps = DEFAULT_PROPS$17;
1481
1498
 
1482
1499
  /**
1483
1500
  * Component display name.
1484
1501
  */
1485
- const COMPONENT_NAME$1b = 'IconButton';
1502
+ const COMPONENT_NAME$1d = 'IconButton';
1486
1503
 
1487
1504
  /**
1488
1505
  * Component default class name and class prefix.
1489
1506
  */
1490
- const CLASSNAME$1b = 'lumx-icon-button';
1507
+ const CLASSNAME$1d = 'lumx-icon-button';
1491
1508
 
1492
1509
  /**
1493
1510
  * Component default props.
1494
1511
  */
1495
- const DEFAULT_PROPS$13 = {
1512
+ const DEFAULT_PROPS$16 = {
1496
1513
  emphasis: Emphasis.high,
1497
1514
  size: Size.m
1498
1515
  };
@@ -1505,11 +1522,11 @@ const DEFAULT_PROPS$13 = {
1505
1522
  */
1506
1523
  const IconButton$1 = props => {
1507
1524
  const {
1508
- emphasis = DEFAULT_PROPS$13.emphasis,
1525
+ emphasis = DEFAULT_PROPS$16.emphasis,
1509
1526
  image,
1510
1527
  icon,
1511
1528
  label,
1512
- size = DEFAULT_PROPS$13.size,
1529
+ size = DEFAULT_PROPS$16.size,
1513
1530
  ...forwardedProps
1514
1531
  } = props;
1515
1532
  const defaultChildren = image ? /*#__PURE__*/jsx("img", {
@@ -1528,9 +1545,9 @@ const IconButton$1 = props => {
1528
1545
  children: defaultChildren
1529
1546
  });
1530
1547
  };
1531
- IconButton$1.displayName = COMPONENT_NAME$1b;
1532
- IconButton$1.className = CLASSNAME$1b;
1533
- IconButton$1.defaultProps = DEFAULT_PROPS$13;
1548
+ IconButton$1.displayName = COMPONENT_NAME$1d;
1549
+ IconButton$1.className = CLASSNAME$1d;
1550
+ IconButton$1.defaultProps = DEFAULT_PROPS$16;
1534
1551
 
1535
1552
  /**
1536
1553
  * IconButton component.
@@ -1572,24 +1589,24 @@ const IconButton = forwardRef((props, ref) => {
1572
1589
  })
1573
1590
  });
1574
1591
  });
1575
- IconButton.displayName = COMPONENT_NAME$1b;
1576
- IconButton.className = CLASSNAME$1b;
1577
- IconButton.defaultProps = DEFAULT_PROPS$13;
1592
+ IconButton.displayName = COMPONENT_NAME$1d;
1593
+ IconButton.className = CLASSNAME$1d;
1594
+ IconButton.defaultProps = DEFAULT_PROPS$16;
1578
1595
 
1579
1596
  /**
1580
1597
  * Component display name.
1581
1598
  */
1582
- const COMPONENT_NAME$1a = 'ButtonGroup';
1599
+ const COMPONENT_NAME$1c = 'ButtonGroup';
1583
1600
 
1584
1601
  /**
1585
1602
  * Component default class name and class prefix.
1586
1603
  */
1587
- const CLASSNAME$1a = 'lumx-button-group';
1604
+ const CLASSNAME$1c = 'lumx-button-group';
1588
1605
 
1589
1606
  /**
1590
1607
  * Component default props.
1591
1608
  */
1592
- const DEFAULT_PROPS$12 = {};
1609
+ const DEFAULT_PROPS$15 = {};
1593
1610
 
1594
1611
  /**
1595
1612
  * ButtonGroup component.
@@ -1605,13 +1622,13 @@ const ButtonGroup$1 = props => {
1605
1622
  } = props;
1606
1623
  return /*#__PURE__*/jsx("div", {
1607
1624
  ...forwardedProps,
1608
- className: classnames(className, CLASSNAME$1a),
1625
+ className: classnames(className, CLASSNAME$1c),
1609
1626
  children: children
1610
1627
  });
1611
1628
  };
1612
- ButtonGroup$1.displayName = COMPONENT_NAME$1a;
1613
- ButtonGroup$1.className = CLASSNAME$1a;
1614
- ButtonGroup$1.defaultProps = DEFAULT_PROPS$12;
1629
+ ButtonGroup$1.displayName = COMPONENT_NAME$1c;
1630
+ ButtonGroup$1.className = CLASSNAME$1c;
1631
+ ButtonGroup$1.defaultProps = DEFAULT_PROPS$15;
1615
1632
 
1616
1633
  /**
1617
1634
  * ButtonGroup component.
@@ -1626,17 +1643,17 @@ const ButtonGroup = forwardRef((props, ref) => {
1626
1643
  ...props
1627
1644
  });
1628
1645
  });
1629
- ButtonGroup.displayName = COMPONENT_NAME$1a;
1630
- ButtonGroup.className = CLASSNAME$1a;
1631
- ButtonGroup.defaultProps = DEFAULT_PROPS$12;
1646
+ ButtonGroup.displayName = COMPONENT_NAME$1c;
1647
+ ButtonGroup.className = CLASSNAME$1c;
1648
+ ButtonGroup.defaultProps = DEFAULT_PROPS$15;
1632
1649
 
1633
- const COMPONENT_NAME$19 = 'InputLabel';
1650
+ const COMPONENT_NAME$1b = 'InputLabel';
1634
1651
  const InputLabelClassName = 'lumx-input-label';
1635
- const CLASSNAME$19 = InputLabelClassName;
1652
+ const CLASSNAME$1b = InputLabelClassName;
1636
1653
  const {
1637
- block: block$_
1638
- } = bem(CLASSNAME$19);
1639
- const DEFAULT_PROPS$11 = {};
1654
+ block: block$$
1655
+ } = bem(CLASSNAME$1b);
1656
+ const DEFAULT_PROPS$14 = {};
1640
1657
 
1641
1658
  /**
1642
1659
  * InputLabel component.
@@ -1656,7 +1673,7 @@ function InputLabel$1(props) {
1656
1673
  ref: ref,
1657
1674
  ...forwardedProps,
1658
1675
  htmlFor: htmlFor,
1659
- className: classnames(className, block$_({
1676
+ className: classnames(className, block$$({
1660
1677
  'is-required': isRequired,
1661
1678
  [`theme-${theme}`]: Boolean(theme),
1662
1679
  'has-custom-typography': Boolean(typography$1)
@@ -1664,9 +1681,9 @@ function InputLabel$1(props) {
1664
1681
  children: children
1665
1682
  });
1666
1683
  }
1667
- InputLabel$1.displayName = COMPONENT_NAME$19;
1668
- InputLabel$1.className = CLASSNAME$19;
1669
- InputLabel$1.defaultProps = DEFAULT_PROPS$11;
1684
+ InputLabel$1.displayName = COMPONENT_NAME$1b;
1685
+ InputLabel$1.className = CLASSNAME$1b;
1686
+ InputLabel$1.defaultProps = DEFAULT_PROPS$14;
1670
1687
 
1671
1688
  const INPUT_HELPER_CONFIGURATION = {
1672
1689
  [Kind.error]: {
@@ -1680,22 +1697,22 @@ const INPUT_HELPER_CONFIGURATION = {
1680
1697
  }
1681
1698
  };
1682
1699
 
1683
- const COMPONENT_NAME$18 = 'InputHelper';
1700
+ const COMPONENT_NAME$1a = 'InputHelper';
1684
1701
  const InputHelperClassName = 'lumx-input-helper';
1685
1702
 
1686
1703
  /**
1687
1704
  * Defines the props of the component.
1688
1705
  */
1689
1706
 
1690
- const CLASSNAME$18 = InputHelperClassName;
1707
+ const CLASSNAME$1a = InputHelperClassName;
1691
1708
  const {
1692
- block: block$Z
1693
- } = bem(CLASSNAME$18);
1709
+ block: block$_
1710
+ } = bem(CLASSNAME$1a);
1694
1711
 
1695
1712
  /**
1696
1713
  * Component default props.
1697
1714
  */
1698
- const DEFAULT_PROPS$10 = {
1715
+ const DEFAULT_PROPS$13 = {
1699
1716
  kind: Kind.info
1700
1717
  };
1701
1718
 
@@ -1706,7 +1723,7 @@ function InputHelper$1(props) {
1706
1723
  const {
1707
1724
  children,
1708
1725
  className,
1709
- kind = DEFAULT_PROPS$10.kind,
1726
+ kind = DEFAULT_PROPS$13.kind,
1710
1727
  theme,
1711
1728
  ref,
1712
1729
  ...forwardedProps
@@ -1717,16 +1734,16 @@ function InputHelper$1(props) {
1717
1734
  return /*#__PURE__*/jsx("p", {
1718
1735
  ref: ref,
1719
1736
  ...forwardedProps,
1720
- className: classnames(className, block$Z({
1737
+ className: classnames(className, block$_({
1721
1738
  [`color-${color}`]: Boolean(color),
1722
1739
  [`theme-${theme}`]: Boolean(theme)
1723
1740
  })),
1724
1741
  children: children
1725
1742
  });
1726
1743
  }
1727
- InputHelper$1.displayName = COMPONENT_NAME$18;
1728
- InputHelper$1.className = CLASSNAME$18;
1729
- InputHelper$1.defaultProps = DEFAULT_PROPS$10;
1744
+ InputHelper$1.displayName = COMPONENT_NAME$1a;
1745
+ InputHelper$1.className = CLASSNAME$1a;
1746
+ InputHelper$1.defaultProps = DEFAULT_PROPS$13;
1730
1747
 
1731
1748
  const INTERMEDIATE_STATE = 'intermediate';
1732
1749
 
@@ -1737,16 +1754,16 @@ const INTERMEDIATE_STATE = 'intermediate';
1737
1754
  /**
1738
1755
  * Component display name.
1739
1756
  */
1740
- const COMPONENT_NAME$17 = 'Checkbox';
1757
+ const COMPONENT_NAME$19 = 'Checkbox';
1741
1758
 
1742
1759
  /**
1743
1760
  * Component default class name and class prefix.
1744
1761
  */
1745
- const CLASSNAME$17 = 'lumx-checkbox';
1762
+ const CLASSNAME$19 = 'lumx-checkbox';
1746
1763
  const {
1747
- block: block$Y,
1748
- element: element$K
1749
- } = bem(CLASSNAME$17);
1764
+ block: block$Z,
1765
+ element: element$L
1766
+ } = bem(CLASSNAME$19);
1750
1767
 
1751
1768
  /**
1752
1769
  * Checkbox component.
@@ -1782,7 +1799,7 @@ const Checkbox$1 = props => {
1782
1799
  return /*#__PURE__*/jsxs("div", {
1783
1800
  ref: ref,
1784
1801
  ...forwardedProps,
1785
- className: classnames(className, block$Y({
1802
+ className: classnames(className, block$Z({
1786
1803
  // Whether state is intermediate class name will "-checked"
1787
1804
  'is-checked': intermediateState ? true : isChecked,
1788
1805
  'is-disabled': isDisabled,
@@ -1790,12 +1807,12 @@ const Checkbox$1 = props => {
1790
1807
  [`theme-${theme}`]: Boolean(theme)
1791
1808
  })),
1792
1809
  children: [/*#__PURE__*/jsxs("div", {
1793
- className: element$K('input-wrapper'),
1810
+ className: element$L('input-wrapper'),
1794
1811
  children: [/*#__PURE__*/jsx("input", {
1795
1812
  ref: inputRef,
1796
1813
  type: "checkbox",
1797
1814
  id: inputId,
1798
- className: element$K('input-native'),
1815
+ className: element$L('input-native'),
1799
1816
  name: name,
1800
1817
  value: value,
1801
1818
  checked: isChecked,
@@ -1807,26 +1824,26 @@ const Checkbox$1 = props => {
1807
1824
  } : {}),
1808
1825
  ...inputProps
1809
1826
  }), /*#__PURE__*/jsxs("div", {
1810
- className: element$K('input-placeholder'),
1827
+ className: element$L('input-placeholder'),
1811
1828
  children: [/*#__PURE__*/jsx("div", {
1812
- className: element$K('input-background')
1829
+ className: element$L('input-background')
1813
1830
  }), /*#__PURE__*/jsx("div", {
1814
- className: element$K('input-indicator'),
1831
+ className: element$L('input-indicator'),
1815
1832
  children: Icon$1({
1816
1833
  icon: intermediateState ? mdiMinus : mdiCheck
1817
1834
  })
1818
1835
  })]
1819
1836
  })]
1820
1837
  }), /*#__PURE__*/jsxs("div", {
1821
- className: element$K('content'),
1838
+ className: element$L('content'),
1822
1839
  children: [label && InputLabel$1({
1823
1840
  htmlFor: inputId,
1824
- className: element$K('label'),
1841
+ className: element$L('label'),
1825
1842
  theme,
1826
1843
  children: label
1827
1844
  }), helper && InputHelper$1({
1828
1845
  id: `${inputId}-helper`,
1829
- className: element$K('helper'),
1846
+ className: element$L('helper'),
1830
1847
  theme,
1831
1848
  children: helper
1832
1849
  })]
@@ -1841,7 +1858,7 @@ const Checkbox$1 = props => {
1841
1858
  /**
1842
1859
  * Component default props.
1843
1860
  */
1844
- const DEFAULT_PROPS$$ = {};
1861
+ const DEFAULT_PROPS$12 = {};
1845
1862
 
1846
1863
  /**
1847
1864
  * Checkbox component.
@@ -1901,9 +1918,9 @@ const Checkbox = forwardRef((props, ref) => {
1901
1918
  inputId
1902
1919
  });
1903
1920
  });
1904
- Checkbox.displayName = COMPONENT_NAME$17;
1905
- Checkbox.className = CLASSNAME$17;
1906
- Checkbox.defaultProps = DEFAULT_PROPS$$;
1921
+ Checkbox.displayName = COMPONENT_NAME$19;
1922
+ Checkbox.className = CLASSNAME$19;
1923
+ Checkbox.defaultProps = DEFAULT_PROPS$12;
1907
1924
 
1908
1925
  /**
1909
1926
  * Wrap mouse event handler to stop event propagation.
@@ -1924,21 +1941,21 @@ function useStopPropagation(handler) {
1924
1941
  /**
1925
1942
  * Component display name.
1926
1943
  */
1927
- const COMPONENT_NAME$16 = 'Chip';
1944
+ const COMPONENT_NAME$18 = 'Chip';
1928
1945
 
1929
1946
  /**
1930
1947
  * Component default class name and class prefix.
1931
1948
  */
1932
- const CLASSNAME$16 = 'lumx-chip';
1949
+ const CLASSNAME$18 = 'lumx-chip';
1933
1950
  const {
1934
- block: block$X,
1935
- element: element$J
1936
- } = bem(CLASSNAME$16);
1951
+ block: block$Y,
1952
+ element: element$K
1953
+ } = bem(CLASSNAME$18);
1937
1954
 
1938
1955
  /**
1939
1956
  * Component default props.
1940
1957
  */
1941
- const DEFAULT_PROPS$_ = {
1958
+ const DEFAULT_PROPS$11 = {
1942
1959
  size: Size.m
1943
1960
  };
1944
1961
 
@@ -1965,7 +1982,7 @@ const Chip$1 = props => {
1965
1982
  hasAfterClick,
1966
1983
  hasBeforeClick,
1967
1984
  hasOnClick,
1968
- size = DEFAULT_PROPS$_.size,
1985
+ size = DEFAULT_PROPS$11.size,
1969
1986
  theme,
1970
1987
  ref,
1971
1988
  href,
@@ -2000,7 +2017,7 @@ const Chip$1 = props => {
2000
2017
  ...forwardedProps,
2001
2018
  href: !disabledStateProps.disabled ? href : undefined,
2002
2019
  ref: ref,
2003
- className: classnames(className, block$X({
2020
+ className: classnames(className, block$Y({
2004
2021
  'is-clickable': isClickable,
2005
2022
  [`color-${chipColor}`]: Boolean(chipColor),
2006
2023
  'is-disabled': isAnyDisabled,
@@ -2017,19 +2034,19 @@ const Chip$1 = props => {
2017
2034
  /*#__PURE__*/
2018
2035
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
2019
2036
  jsx("div", {
2020
- className: element$J('before', {
2037
+ className: element$K('before', {
2021
2038
  'is-clickable': hasBeforeClick
2022
2039
  }),
2023
2040
  onClick: handleBeforeClick,
2024
2041
  children: before
2025
2042
  }), /*#__PURE__*/jsx("div", {
2026
- className: element$J('label'),
2043
+ className: element$K('label'),
2027
2044
  children: children
2028
2045
  }), after &&
2029
2046
  /*#__PURE__*/
2030
2047
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
2031
2048
  jsx("div", {
2032
- className: element$J('after', {
2049
+ className: element$K('after', {
2033
2050
  'is-clickable': hasAfterClick
2034
2051
  }),
2035
2052
  onClick: handleAfterClick,
@@ -2085,9 +2102,45 @@ const Chip = forwardRef((props, ref) => {
2085
2102
  ...forwardedProps
2086
2103
  });
2087
2104
  });
2088
- Chip.displayName = COMPONENT_NAME$16;
2089
- Chip.className = CLASSNAME$16;
2090
- Chip.defaultProps = DEFAULT_PROPS$_;
2105
+ Chip.displayName = COMPONENT_NAME$18;
2106
+ Chip.className = CLASSNAME$18;
2107
+ Chip.defaultProps = DEFAULT_PROPS$11;
2108
+
2109
+ /**
2110
+ * Component display name.
2111
+ */
2112
+ const COMPONENT_NAME$17 = 'ChipGroup';
2113
+
2114
+ /**
2115
+ * Component default class name and class prefix.
2116
+ */
2117
+ const CLASSNAME$17 = 'lumx-chip-group';
2118
+
2119
+ /**
2120
+ * Component default props.
2121
+ */
2122
+ const DEFAULT_PROPS$10 = {};
2123
+
2124
+ /**
2125
+ * ChipGroup component.
2126
+ *
2127
+ * @param props Component props.
2128
+ * @return JSX element.
2129
+ */
2130
+ const ChipGroup$1 = props => {
2131
+ const {
2132
+ children,
2133
+ className,
2134
+ ref,
2135
+ ...forwardedProps
2136
+ } = props;
2137
+ return /*#__PURE__*/jsx("div", {
2138
+ ref: ref,
2139
+ ...forwardedProps,
2140
+ className: classnames(className, CLASSNAME$17),
2141
+ children: children
2142
+ });
2143
+ };
2091
2144
 
2092
2145
  const INITIAL_STATE_ACTIVE_CHIP = -1;
2093
2146
 
@@ -2141,19 +2194,8 @@ const useChipGroupNavigation = (chips, onChipDeleted, initialActiveChip = INITIA
2141
2194
  };
2142
2195
 
2143
2196
  /**
2144
- * Component default props.
2145
- */
2146
- const DEFAULT_PROPS$Z = {};
2147
-
2148
- /**
2149
- * Component display name.
2150
- */
2151
- const COMPONENT_NAME$15 = 'ChipGroup';
2152
-
2153
- /**
2154
- * Component default class name and class prefix.
2197
+ * Defines the props of the component.
2155
2198
  */
2156
- const CLASSNAME$15 = 'lumx-chip-group';
2157
2199
 
2158
2200
  /**
2159
2201
  * ChipGroup component.
@@ -2164,21 +2206,18 @@ const CLASSNAME$15 = 'lumx-chip-group';
2164
2206
  */
2165
2207
  const InternalChipGroup = forwardRef((props, ref) => {
2166
2208
  const {
2167
- align,
2168
2209
  children,
2169
- className,
2170
2210
  ...forwardedProps
2171
2211
  } = props;
2172
- return /*#__PURE__*/jsx("div", {
2173
- ref: ref,
2174
- ...forwardedProps,
2175
- className: classNames.join(className, CLASSNAME$15),
2176
- children: children
2212
+ return ChipGroup$1({
2213
+ ref,
2214
+ children,
2215
+ ...forwardedProps
2177
2216
  });
2178
2217
  });
2179
- InternalChipGroup.displayName = COMPONENT_NAME$15;
2180
- InternalChipGroup.className = CLASSNAME$15;
2181
- InternalChipGroup.defaultProps = DEFAULT_PROPS$Z;
2218
+ InternalChipGroup.displayName = COMPONENT_NAME$17;
2219
+ InternalChipGroup.className = CLASSNAME$17;
2220
+ InternalChipGroup.defaultProps = DEFAULT_PROPS$10;
2182
2221
  const ChipGroup = Object.assign(InternalChipGroup, {
2183
2222
  useChipGroupNavigation
2184
2223
  });
@@ -2268,11 +2307,11 @@ function useFocusLastChipOnBackspace(chipRefs, inputRef) {
2268
2307
  /**
2269
2308
  * Component default class name and class prefix.
2270
2309
  */
2271
- const CLASSNAME$14 = 'lumx-selection-chip-group';
2310
+ const CLASSNAME$16 = 'lumx-selection-chip-group';
2272
2311
  const {
2273
- block: block$W,
2274
- element: element$I
2275
- } = classNames.bem(CLASSNAME$14);
2312
+ block: block$X,
2313
+ element: element$J
2314
+ } = classNames.bem(CLASSNAME$16);
2276
2315
 
2277
2316
  /**
2278
2317
  * SelectionChipGroup component.
@@ -2302,7 +2341,7 @@ const SelectionChipGroup = ({
2302
2341
  return /*#__PURE__*/jsx(ChipGroup, {
2303
2342
  role: "group",
2304
2343
  "aria-label": label,
2305
- className: block$W(),
2344
+ className: block$X(),
2306
2345
  ...forwardedProps,
2307
2346
  children: value?.map((v, index) => {
2308
2347
  const name = getWithSelector(getOptionName, v);
@@ -2346,7 +2385,7 @@ const SelectionChipGroup = ({
2346
2385
  after: /*#__PURE__*/jsx(Icon, {
2347
2386
  icon: mdiClose
2348
2387
  }),
2349
- className: element$I('chip', [props?.className]),
2388
+ className: element$J('chip', [props?.className]),
2350
2389
  size: "s",
2351
2390
  ref: ref,
2352
2391
  onClick: onClick,
@@ -2376,21 +2415,21 @@ const CommentBlockVariant = {
2376
2415
  /**
2377
2416
  * Component display name.
2378
2417
  */
2379
- const COMPONENT_NAME$14 = 'CommentBlock';
2418
+ const COMPONENT_NAME$16 = 'CommentBlock';
2380
2419
 
2381
2420
  /**
2382
2421
  * Component default class name and class prefix.
2383
2422
  */
2384
- const CLASSNAME$13 = 'lumx-comment-block';
2423
+ const CLASSNAME$15 = 'lumx-comment-block';
2385
2424
  const {
2386
- block: block$V,
2387
- element: element$H
2388
- } = classNames.bem(CLASSNAME$13);
2425
+ block: block$W,
2426
+ element: element$I
2427
+ } = classNames.bem(CLASSNAME$15);
2389
2428
 
2390
2429
  /**
2391
2430
  * Component default props.
2392
2431
  */
2393
- const DEFAULT_PROPS$Y = {
2432
+ const DEFAULT_PROPS$$ = {
2394
2433
  variant: CommentBlockVariant.indented
2395
2434
  };
2396
2435
 
@@ -2420,13 +2459,13 @@ const CommentBlock = forwardRef((props, ref) => {
2420
2459
  onMouseLeave,
2421
2460
  text,
2422
2461
  theme = defaultTheme,
2423
- variant = DEFAULT_PROPS$Y.variant,
2462
+ variant = DEFAULT_PROPS$$.variant,
2424
2463
  ...forwardedProps
2425
2464
  } = props;
2426
2465
  const hasChildren = Children.count(children) > 0;
2427
2466
  return /*#__PURE__*/jsxs("div", {
2428
2467
  ref: ref,
2429
- className: classNames.join(className, block$V({
2468
+ className: classNames.join(className, block$W({
2430
2469
  'has-children': hasChildren && isOpen,
2431
2470
  'has-indented-children': hasChildren && variant === CommentBlockVariant.indented,
2432
2471
  'has-linear-children': hasChildren && variant === CommentBlockVariant.linear,
@@ -2435,61 +2474,61 @@ const CommentBlock = forwardRef((props, ref) => {
2435
2474
  })),
2436
2475
  ...forwardedProps,
2437
2476
  children: [/*#__PURE__*/jsxs("div", {
2438
- className: element$H('wrapper'),
2477
+ className: element$I('wrapper'),
2439
2478
  children: [/*#__PURE__*/jsx("div", {
2440
- className: element$H('avatar'),
2479
+ className: element$I('avatar'),
2441
2480
  children: /*#__PURE__*/jsx(Avatar, {
2442
2481
  ...avatarProps,
2443
2482
  size: Size$1.m,
2444
2483
  onClick: onClick
2445
2484
  })
2446
2485
  }), /*#__PURE__*/jsxs("div", {
2447
- className: element$H('container'),
2486
+ className: element$I('container'),
2448
2487
  children: [/*#__PURE__*/jsxs("div", {
2449
- className: element$H('content'),
2488
+ className: element$I('content'),
2450
2489
  children: [/*#__PURE__*/jsxs("div", {
2451
- className: element$H('meta'),
2490
+ className: element$I('meta'),
2452
2491
  children: [name &&
2453
2492
  /*#__PURE__*/
2454
2493
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
2455
2494
  jsx("span", {
2456
- className: element$H('name'),
2495
+ className: element$I('name'),
2457
2496
  onClick: onClick,
2458
2497
  onMouseEnter: onMouseEnter,
2459
2498
  onMouseLeave: onMouseLeave,
2460
2499
  children: name
2461
2500
  }), headerActions && /*#__PURE__*/jsx("span", {
2462
- className: element$H('header-actions'),
2501
+ className: element$I('header-actions'),
2463
2502
  children: headerActions
2464
2503
  })]
2465
2504
  }), /*#__PURE__*/jsx("div", {
2466
- className: element$H('text'),
2505
+ className: element$I('text'),
2467
2506
  children: text
2468
2507
  }), date && (fullDate ? /*#__PURE__*/jsx(Tooltip, {
2469
2508
  label: fullDate,
2470
2509
  placement: "top",
2471
2510
  children: /*#__PURE__*/jsx("span", {
2472
- className: element$H('date'),
2511
+ className: element$I('date'),
2473
2512
  children: date
2474
2513
  })
2475
2514
  }) : /*#__PURE__*/jsx("span", {
2476
- className: element$H('date'),
2515
+ className: element$I('date'),
2477
2516
  children: date
2478
2517
  }))]
2479
2518
  }), hasActions && /*#__PURE__*/jsx("div", {
2480
- className: element$H('actions'),
2519
+ className: element$I('actions'),
2481
2520
  children: actions
2482
2521
  })]
2483
2522
  })]
2484
2523
  }), hasChildren && isOpen && /*#__PURE__*/jsx("div", {
2485
- className: element$H('children'),
2524
+ className: element$I('children'),
2486
2525
  children: children
2487
2526
  })]
2488
2527
  });
2489
2528
  });
2490
- CommentBlock.displayName = COMPONENT_NAME$14;
2491
- CommentBlock.className = CLASSNAME$13;
2492
- CommentBlock.defaultProps = DEFAULT_PROPS$Y;
2529
+ CommentBlock.displayName = COMPONENT_NAME$16;
2530
+ CommentBlock.className = CLASSNAME$15;
2531
+ CommentBlock.defaultProps = DEFAULT_PROPS$$;
2493
2532
 
2494
2533
  /**
2495
2534
  * Add a number of months from a date while resetting the day to prevent month length mismatches.
@@ -2509,12 +2548,12 @@ const isDateValid = date => date instanceof Date && !Number.isNaN(date.getTime()
2509
2548
  /**
2510
2549
  * Component display name.
2511
2550
  */
2512
- const COMPONENT_NAME$13 = 'DatePicker';
2551
+ const COMPONENT_NAME$15 = 'DatePicker';
2513
2552
 
2514
2553
  /**
2515
2554
  * Component default class name and class prefix.
2516
2555
  */
2517
- const CLASSNAME$12 = 'lumx-date-picker';
2556
+ const CLASSNAME$14 = 'lumx-date-picker';
2518
2557
 
2519
2558
  /** Get first day of week for locale from the browser API */
2520
2559
  const getFromBrowser = locale => {
@@ -2733,8 +2772,8 @@ function formatDayNumber(locale, date) {
2733
2772
  }
2734
2773
 
2735
2774
  const {
2736
- element: element$G
2737
- } = classNames.bem(CLASSNAME$12);
2775
+ element: element$H
2776
+ } = classNames.bem(CLASSNAME$14);
2738
2777
 
2739
2778
  /**
2740
2779
  * Defines the props of the component.
@@ -2743,7 +2782,7 @@ const {
2743
2782
  /**
2744
2783
  * Component display name.
2745
2784
  */
2746
- const COMPONENT_NAME$12 = 'DatePickerControlled';
2785
+ const COMPONENT_NAME$14 = 'DatePickerControlled';
2747
2786
 
2748
2787
  /**
2749
2788
  * DatePickerControlled component.
@@ -2828,10 +2867,10 @@ const DatePickerControlled = forwardRef((props, ref) => {
2828
2867
  const yearLabel = getYearDisplayName(locale);
2829
2868
  return /*#__PURE__*/jsxs("div", {
2830
2869
  ref: ref,
2831
- className: `${CLASSNAME$12}`,
2870
+ className: `${CLASSNAME$14}`,
2832
2871
  style: style,
2833
2872
  children: [/*#__PURE__*/jsx(Toolbar, {
2834
- className: element$G('toolbar'),
2873
+ className: element$H('toolbar'),
2835
2874
  after: /*#__PURE__*/jsx(IconButton, {
2836
2875
  ...nextButtonProps,
2837
2876
  emphasis: Emphasis$1.low,
@@ -2851,7 +2890,7 @@ const DatePickerControlled = forwardRef((props, ref) => {
2851
2890
  dir: "auto",
2852
2891
  children: monthYear
2853
2892
  }), onMonthChange && /*#__PURE__*/jsx(FlexBox, {
2854
- className: element$G('month'),
2893
+ className: element$H('month'),
2855
2894
  orientation: "horizontal",
2856
2895
  hAlign: "center",
2857
2896
  gap: "regular",
@@ -2866,7 +2905,7 @@ const DatePickerControlled = forwardRef((props, ref) => {
2866
2905
  min: 0,
2867
2906
  onBlur: updateYear,
2868
2907
  onKeyPress: updateYearOnEnterPressed,
2869
- className: element$G('year')
2908
+ className: element$H('year')
2870
2909
  }, "year") : /*#__PURE__*/jsx(Text, {
2871
2910
  as: "p",
2872
2911
  children: part
@@ -2874,17 +2913,17 @@ const DatePickerControlled = forwardRef((props, ref) => {
2874
2913
  })]
2875
2914
  })
2876
2915
  }), /*#__PURE__*/jsxs("div", {
2877
- className: element$G('calendar'),
2916
+ className: element$H('calendar'),
2878
2917
  children: [/*#__PURE__*/jsx("div", {
2879
- className: classNames.join(element$G('week-days'), element$G('days-wrapper')),
2918
+ className: classNames.join(element$H('week-days'), element$H('days-wrapper')),
2880
2919
  children: weekDays.map(({
2881
2920
  letter,
2882
2921
  number,
2883
2922
  long
2884
2923
  }) => /*#__PURE__*/jsxs("div", {
2885
- className: element$G('day-wrapper'),
2924
+ className: element$H('day-wrapper'),
2886
2925
  children: [/*#__PURE__*/jsx("span", {
2887
- className: element$G('week-day'),
2926
+ className: element$H('week-day'),
2888
2927
  "aria-hidden": true,
2889
2928
  children: letter.toLocaleUpperCase()
2890
2929
  }), /*#__PURE__*/jsx("span", {
@@ -2893,7 +2932,7 @@ const DatePickerControlled = forwardRef((props, ref) => {
2893
2932
  })]
2894
2933
  }, number))
2895
2934
  }), /*#__PURE__*/jsx("div", {
2896
- className: classNames.join(element$G('month-days'), element$G('days-wrapper')),
2935
+ className: classNames.join(element$H('month-days'), element$H('days-wrapper')),
2897
2936
  children: weeks.flatMap((week, weekIndex) => {
2898
2937
  return weekDays.map((weekDay, dayIndex) => {
2899
2938
  const {
@@ -2904,10 +2943,10 @@ const DatePickerControlled = forwardRef((props, ref) => {
2904
2943
  const isToday = !isOutOfRange && date && isSameDay(date, new Date());
2905
2944
  const isSelected = date && value && isSameDay(value, date);
2906
2945
  return /*#__PURE__*/jsx("div", {
2907
- className: element$G('day-wrapper'),
2946
+ className: element$H('day-wrapper'),
2908
2947
  children: date && /*#__PURE__*/jsxs(Button, {
2909
2948
  ref: isSelected || !value && isToday ? todayOrSelectedDateRef : null,
2910
- className: element$G('month-day', {
2949
+ className: element$H('month-day', {
2911
2950
  'is-today': isToday
2912
2951
  }),
2913
2952
  disabled: isOutOfRange,
@@ -2933,8 +2972,8 @@ const DatePickerControlled = forwardRef((props, ref) => {
2933
2972
  })]
2934
2973
  });
2935
2974
  });
2936
- DatePickerControlled.displayName = COMPONENT_NAME$12;
2937
- DatePickerControlled.className = CLASSNAME$12;
2975
+ DatePickerControlled.displayName = COMPONENT_NAME$14;
2976
+ DatePickerControlled.className = CLASSNAME$14;
2938
2977
 
2939
2978
  /**
2940
2979
  * DatePicker component.
@@ -2976,8 +3015,8 @@ const DatePicker = forwardRef((props, ref) => {
2976
3015
  onMonthChange: setSelectedMonth
2977
3016
  });
2978
3017
  });
2979
- DatePicker.displayName = COMPONENT_NAME$13;
2980
- DatePicker.className = CLASSNAME$12;
3018
+ DatePicker.displayName = COMPONENT_NAME$15;
3019
+ DatePicker.className = CLASSNAME$14;
2981
3020
 
2982
3021
  const useBooleanState = defaultValue => {
2983
3022
  const [booleanValue, setBoolean] = useState(defaultValue);
@@ -2990,7 +3029,7 @@ const useBooleanState = defaultValue => {
2990
3029
  /**
2991
3030
  * Component display name.
2992
3031
  */
2993
- const COMPONENT_NAME$11 = 'DatePickerField';
3032
+ const COMPONENT_NAME$13 = 'DatePickerField';
2994
3033
 
2995
3034
  /**
2996
3035
  * DatePickerField component.
@@ -3079,7 +3118,7 @@ const DatePickerField = forwardRef((props, ref) => {
3079
3118
  }) : null]
3080
3119
  });
3081
3120
  });
3082
- DatePickerField.displayName = COMPONENT_NAME$11;
3121
+ DatePickerField.displayName = COMPONENT_NAME$13;
3083
3122
 
3084
3123
  /**
3085
3124
  * Keep track of listeners, only the last registered listener gets activated at any point (previously registered
@@ -3565,21 +3604,21 @@ const isFooter$1 = isComponent('footer');
3565
3604
  /**
3566
3605
  * Component display name.
3567
3606
  */
3568
- const COMPONENT_NAME$10 = 'Dialog';
3607
+ const COMPONENT_NAME$12 = 'Dialog';
3569
3608
 
3570
3609
  /**
3571
3610
  * Component default class name and class prefix.
3572
3611
  */
3573
- const CLASSNAME$11 = 'lumx-dialog';
3612
+ const CLASSNAME$13 = 'lumx-dialog';
3574
3613
  const {
3575
- block: block$U,
3576
- element: element$F
3577
- } = classNames.bem(CLASSNAME$11);
3614
+ block: block$V,
3615
+ element: element$G
3616
+ } = classNames.bem(CLASSNAME$13);
3578
3617
 
3579
3618
  /**
3580
3619
  * Component default props.
3581
3620
  */
3582
- const DEFAULT_PROPS$X = {
3621
+ const DEFAULT_PROPS$_ = {
3583
3622
  closeMode: 'unmount',
3584
3623
  size: Size$1.big,
3585
3624
  disableBodyScroll: true
@@ -3600,7 +3639,7 @@ const Dialog = forwardRef((props, ref) => {
3600
3639
  const {
3601
3640
  children,
3602
3641
  className,
3603
- closeMode = DEFAULT_PROPS$X.closeMode,
3642
+ closeMode = DEFAULT_PROPS$_.closeMode,
3604
3643
  header,
3605
3644
  focusElement,
3606
3645
  forceFooterDivider,
@@ -3612,11 +3651,11 @@ const Dialog = forwardRef((props, ref) => {
3612
3651
  parentElement,
3613
3652
  contentRef,
3614
3653
  preventAutoClose,
3615
- size = DEFAULT_PROPS$X.size,
3654
+ size = DEFAULT_PROPS$_.size,
3616
3655
  zIndex,
3617
3656
  dialogProps,
3618
3657
  onVisibilityChange,
3619
- disableBodyScroll = DEFAULT_PROPS$X.disableBodyScroll,
3658
+ disableBodyScroll = DEFAULT_PROPS$_.disableBodyScroll,
3620
3659
  preventCloseOnClick,
3621
3660
  preventCloseOnEscape,
3622
3661
  ...forwardedProps
@@ -3688,7 +3727,7 @@ const Dialog = forwardRef((props, ref) => {
3688
3727
  children: /*#__PURE__*/jsxs("div", {
3689
3728
  ref: mergeRefs(rootRef, ref),
3690
3729
  ...forwardedProps,
3691
- className: classNames.join(className, block$U({
3730
+ className: classNames.join(className, block$V({
3692
3731
  'is-hidden': !isOpen,
3693
3732
  'is-loading': isLoading,
3694
3733
  'is-shown': isOpen || isVisible,
@@ -3698,13 +3737,13 @@ const Dialog = forwardRef((props, ref) => {
3698
3737
  zIndex
3699
3738
  },
3700
3739
  children: [/*#__PURE__*/jsx("div", {
3701
- className: element$F('overlay')
3740
+ className: element$G('overlay')
3702
3741
  }), /*#__PURE__*/jsx(HeadingLevelProvider, {
3703
3742
  level: 2,
3704
3743
  children: /*#__PURE__*/jsx(ThemeProvider, {
3705
3744
  value: undefined,
3706
3745
  children: /*#__PURE__*/jsx("div", {
3707
- className: element$F('container'),
3746
+ className: element$G('container'),
3708
3747
  role: "dialog",
3709
3748
  "aria-modal": "true",
3710
3749
  ...dialogProps,
@@ -3713,36 +3752,36 @@ const Dialog = forwardRef((props, ref) => {
3713
3752
  childrenRefs: clickAwayRefs,
3714
3753
  parentRef: rootRef,
3715
3754
  children: /*#__PURE__*/jsxs("section", {
3716
- className: element$F('wrapper'),
3755
+ className: element$G('wrapper'),
3717
3756
  ref: wrapperRef,
3718
3757
  children: [(header || headerChildContent) && /*#__PURE__*/jsxs("header", {
3719
3758
  ...headerChildProps,
3720
- className: classNames.join(element$F('header', {
3759
+ className: classNames.join(element$G('header', {
3721
3760
  'has-divider': Boolean(forceHeaderDivider || hasTopIntersection)
3722
3761
  }), headerChildProps?.className),
3723
3762
  children: [header, headerChildContent]
3724
3763
  }), /*#__PURE__*/jsxs("div", {
3725
3764
  ref: mergeRefs(contentRef, localContentRef),
3726
- className: element$F('content'),
3765
+ className: element$G('content'),
3727
3766
  children: [/*#__PURE__*/jsx("div", {
3728
- className: element$F('sentinel', {
3767
+ className: element$G('sentinel', {
3729
3768
  top: true
3730
3769
  }),
3731
3770
  ref: setSentinelTop
3732
3771
  }), content, /*#__PURE__*/jsx("div", {
3733
- className: element$F('sentinel', {
3772
+ className: element$G('sentinel', {
3734
3773
  bottom: true
3735
3774
  }),
3736
3775
  ref: setSentinelBottom
3737
3776
  })]
3738
3777
  }), (footer || footerChildContent) && /*#__PURE__*/jsxs("footer", {
3739
3778
  ...footerChildProps,
3740
- className: classNames.join(element$F('footer', {
3779
+ className: classNames.join(element$G('footer', {
3741
3780
  'has-divider': Boolean(forceFooterDivider || hasBottomIntersection)
3742
3781
  }), footerChildProps?.className),
3743
3782
  children: [footer, footerChildContent]
3744
3783
  }), isLoading && /*#__PURE__*/jsx("div", {
3745
- className: element$F('progress-overlay'),
3784
+ className: element$G('progress-overlay'),
3746
3785
  children: /*#__PURE__*/jsx(Progress, {
3747
3786
  variant: ProgressVariant.circular
3748
3787
  })
@@ -3755,22 +3794,22 @@ const Dialog = forwardRef((props, ref) => {
3755
3794
  })
3756
3795
  }) : null;
3757
3796
  });
3758
- Dialog.displayName = COMPONENT_NAME$10;
3759
- Dialog.className = CLASSNAME$11;
3760
- Dialog.defaultProps = DEFAULT_PROPS$X;
3797
+ Dialog.displayName = COMPONENT_NAME$12;
3798
+ Dialog.className = CLASSNAME$13;
3799
+ Dialog.defaultProps = DEFAULT_PROPS$_;
3761
3800
 
3762
3801
  /**
3763
3802
  * Component display name.
3764
3803
  */
3765
- const COMPONENT_NAME$$ = 'Divider';
3804
+ const COMPONENT_NAME$11 = 'Divider';
3766
3805
 
3767
3806
  /**
3768
3807
  * Component default class name and class prefix.
3769
3808
  */
3770
- const CLASSNAME$10 = 'lumx-divider';
3809
+ const CLASSNAME$12 = 'lumx-divider';
3771
3810
  const {
3772
- block: block$T
3773
- } = bem(CLASSNAME$10);
3811
+ block: block$U
3812
+ } = bem(CLASSNAME$12);
3774
3813
 
3775
3814
  /**
3776
3815
  * Divider component.
@@ -3788,7 +3827,7 @@ const Divider$1 = props => {
3788
3827
  return /*#__PURE__*/jsx("hr", {
3789
3828
  ref: ref,
3790
3829
  ...forwardedProps,
3791
- className: classnames(className, block$T({
3830
+ className: classnames(className, block$U({
3792
3831
  [`theme-${theme}`]: Boolean(theme)
3793
3832
  }))
3794
3833
  });
@@ -3801,7 +3840,7 @@ const Divider$1 = props => {
3801
3840
  /**
3802
3841
  * Component default props.
3803
3842
  */
3804
- const DEFAULT_PROPS$W = {};
3843
+ const DEFAULT_PROPS$Z = {};
3805
3844
 
3806
3845
  /**
3807
3846
  * Divider component.
@@ -3822,22 +3861,22 @@ const Divider = forwardRef((props, ref) => {
3822
3861
  ...otherProps
3823
3862
  });
3824
3863
  });
3825
- Divider.displayName = COMPONENT_NAME$$;
3826
- Divider.className = CLASSNAME$10;
3827
- Divider.defaultProps = DEFAULT_PROPS$W;
3864
+ Divider.displayName = COMPONENT_NAME$11;
3865
+ Divider.className = CLASSNAME$12;
3866
+ Divider.defaultProps = DEFAULT_PROPS$Z;
3828
3867
 
3829
3868
  /**
3830
3869
  * Component display name.
3831
3870
  */
3832
- const COMPONENT_NAME$_ = 'DragHandle';
3871
+ const COMPONENT_NAME$10 = 'DragHandle';
3833
3872
 
3834
3873
  /**
3835
3874
  * Component default class name and class prefix.
3836
3875
  */
3837
- const CLASSNAME$$ = 'lumx-drag-handle';
3876
+ const CLASSNAME$11 = 'lumx-drag-handle';
3838
3877
  const {
3839
- block: block$S
3840
- } = classNames.bem(CLASSNAME$$);
3878
+ block: block$T
3879
+ } = classNames.bem(CLASSNAME$11);
3841
3880
 
3842
3881
  /**
3843
3882
  * DragHandle component.
@@ -3856,7 +3895,7 @@ const DragHandle = forwardRef((props, ref) => {
3856
3895
  return /*#__PURE__*/jsx("div", {
3857
3896
  ref: ref,
3858
3897
  ...forwardedProps,
3859
- className: classNames.join(className, block$S({
3898
+ className: classNames.join(className, block$T({
3860
3899
  [`theme-${theme}`]: Boolean(theme)
3861
3900
  })),
3862
3901
  children: /*#__PURE__*/jsx(Icon, {
@@ -3866,8 +3905,8 @@ const DragHandle = forwardRef((props, ref) => {
3866
3905
  })
3867
3906
  });
3868
3907
  });
3869
- DragHandle.displayName = COMPONENT_NAME$_;
3870
- DragHandle.className = CLASSNAME$$;
3908
+ DragHandle.displayName = COMPONENT_NAME$10;
3909
+ DragHandle.className = CLASSNAME$11;
3871
3910
 
3872
3911
  const INITIAL_INDEX = -1;
3873
3912
 
@@ -4036,22 +4075,20 @@ const useKeyboardListNavigation = (items, ref, onListItemSelected, onListItemNav
4036
4075
  /**
4037
4076
  * Component display name.
4038
4077
  */
4039
- const COMPONENT_NAME$Z = 'List';
4078
+ const COMPONENT_NAME$$ = 'List';
4040
4079
 
4041
4080
  /**
4042
4081
  * Component default class name and class prefix.
4043
4082
  */
4044
- const CLASSNAME$_ = 'lumx-list';
4083
+ const CLASSNAME$10 = 'lumx-list';
4045
4084
  const {
4046
- block: block$R
4047
- } = classNames.bem(CLASSNAME$_);
4085
+ block: block$S
4086
+ } = classNames.bem(CLASSNAME$10);
4048
4087
 
4049
4088
  /**
4050
4089
  * Component default props.
4051
4090
  */
4052
- const DEFAULT_PROPS$V = {
4053
- tabIndex: -1
4054
- };
4091
+ const DEFAULT_PROPS$Y = {};
4055
4092
 
4056
4093
  /* eslint-disable jsx-a11y/no-noninteractive-tabindex */
4057
4094
  /**
@@ -4068,23 +4105,21 @@ const InternalList = forwardRef((props, ref) => {
4068
4105
  isClickable,
4069
4106
  itemPadding,
4070
4107
  onListItemSelected,
4071
- tabIndex = DEFAULT_PROPS$V.tabIndex,
4072
4108
  ...forwardedProps
4073
4109
  } = props;
4074
4110
  const adjustedItemPadding = itemPadding ?? (isClickable ? Size$1.big : undefined);
4075
4111
  return /*#__PURE__*/jsx("ul", {
4076
4112
  ...forwardedProps,
4077
- className: classNames.join(className, block$R({
4113
+ className: classNames.join(className, block$S({
4078
4114
  [`item-padding-${adjustedItemPadding}`]: Boolean(adjustedItemPadding)
4079
4115
  })),
4080
- tabIndex: tabIndex,
4081
4116
  ref: ref,
4082
4117
  children: children
4083
4118
  });
4084
4119
  });
4085
- InternalList.displayName = COMPONENT_NAME$Z;
4086
- InternalList.className = CLASSNAME$_;
4087
- InternalList.defaultProps = DEFAULT_PROPS$V;
4120
+ InternalList.displayName = COMPONENT_NAME$$;
4121
+ InternalList.className = CLASSNAME$10;
4122
+ InternalList.defaultProps = DEFAULT_PROPS$Y;
4088
4123
  const List = Object.assign(InternalList, {
4089
4124
  useKeyboardListNavigation
4090
4125
  });
@@ -4154,21 +4189,22 @@ const POPOVER_ZINDEX = 9999;
4154
4189
  /**
4155
4190
  * Component display name.
4156
4191
  */
4157
- const COMPONENT_NAME$Y = 'Popover';
4192
+ const COMPONENT_NAME$_ = 'Popover';
4158
4193
 
4159
4194
  /**
4160
4195
  * Component default class name and class prefix.
4161
4196
  */
4162
- const CLASSNAME$Z = 'lumx-popover';
4197
+ const CLASSNAME$$ = 'lumx-popover';
4163
4198
  const {
4164
- block: block$Q,
4165
- element: element$E
4166
- } = bem(CLASSNAME$Z);
4199
+ block: block$R,
4200
+ element: element$F
4201
+ } = bem(CLASSNAME$$);
4167
4202
 
4168
4203
  /**
4169
4204
  * Component default props (used by framework wrappers).
4170
4205
  */
4171
- const DEFAULT_PROPS$U = {
4206
+ const DEFAULT_PROPS$X = {
4207
+ closeMode: 'unmount',
4172
4208
  elevation: 3,
4173
4209
  placement: Placement.AUTO,
4174
4210
  focusAnchorOnClose: true,
@@ -4191,7 +4227,8 @@ const Popover$1 = (props, {
4191
4227
  as: asTag = 'div',
4192
4228
  children,
4193
4229
  className,
4194
- elevation = DEFAULT_PROPS$U.elevation,
4230
+ closeMode = DEFAULT_PROPS$X.closeMode,
4231
+ elevation = DEFAULT_PROPS$X.elevation,
4195
4232
  hasArrow,
4196
4233
  isOpen,
4197
4234
  position,
@@ -4201,7 +4238,7 @@ const Popover$1 = (props, {
4201
4238
  // Framework-specific
4202
4239
  ref,
4203
4240
  arrowRef,
4204
- usePortal = DEFAULT_PROPS$U.usePortal,
4241
+ usePortal = DEFAULT_PROPS$X.usePortal,
4205
4242
  clickAwayCallback,
4206
4243
  clickAwayRefs,
4207
4244
  unmountSentinel,
@@ -4209,30 +4246,35 @@ const Popover$1 = (props, {
4209
4246
  ...forwardedProps
4210
4247
  } = props;
4211
4248
 
4249
+ // Compute hidden/mounted state from closeMode and isOpen.
4250
+ const isHidden = !isOpen && closeMode === 'hide';
4251
+ const isMounted = isOpen || closeMode === 'hide';
4252
+
4212
4253
  // Cast to `any` to avoid "union type too complex" error when using a dynamic tag name in JSX.
4213
4254
  // This is safe because `asTag` is always a valid HTML element tag (e.g. 'div').
4214
4255
  const Component = asTag;
4215
4256
  const adjustedElevation = Math.min(elevation || 0, 5);
4216
- if (!isOpen) return null;
4257
+ if (!isMounted) return null;
4217
4258
  return /*#__PURE__*/jsx(Portal, {
4218
4259
  enabled: usePortal,
4219
4260
  children: /*#__PURE__*/jsxs(Component, {
4220
4261
  ...forwardedProps,
4221
4262
  ref: ref,
4222
- className: classnames(className, block$Q({
4263
+ className: classnames(className, block$R({
4223
4264
  [`theme-${theme}`]: Boolean(theme),
4224
4265
  [`elevation-${adjustedElevation}`]: Boolean(adjustedElevation),
4225
- [`position-${position}`]: Boolean(position)
4266
+ [`position-${position}`]: Boolean(position),
4267
+ 'is-hidden': Boolean(isHidden)
4226
4268
  })),
4227
- style: popoverStyle,
4269
+ style: isHidden ? undefined : popoverStyle,
4228
4270
  "data-popper-placement": position,
4229
4271
  children: [unmountSentinel, /*#__PURE__*/jsxs(ClickAwayProvider, {
4230
- callback: clickAwayCallback,
4272
+ callback: !isHidden && clickAwayCallback,
4231
4273
  childrenRefs: clickAwayRefs,
4232
4274
  children: [hasArrow && /*#__PURE__*/jsx("div", {
4233
4275
  ref: arrowRef,
4234
- className: element$E('arrow'),
4235
- style: arrowStyle,
4276
+ className: element$F('arrow'),
4277
+ style: isHidden ? undefined : arrowStyle,
4236
4278
  children: /*#__PURE__*/jsx("svg", {
4237
4279
  viewBox: "0 0 14 14",
4238
4280
  "aria-hidden": true,
@@ -4277,33 +4319,44 @@ function useRestoreFocusOnClose({
4277
4319
  focusAnchorOnClose,
4278
4320
  anchorRef,
4279
4321
  parentElement
4280
- }, popoverElement) {
4322
+ }, popoverElement, isOpen) {
4281
4323
  const onBeforeUnmountRef = React__default.useRef();
4324
+ const prevIsOpenRef = React__default.useRef(isOpen);
4325
+ const tryRestoreFocus = React__default.useCallback(() => {
4326
+ if (!popoverElement || !focusAnchorOnClose) return;
4327
+ const isFocusWithin = popoverElement.contains(document.activeElement);
4328
+ if (!isFocusWithin) return;
4329
+
4330
+ // On next render
4331
+ setTimeout(() => {
4332
+ const anchor = anchorRef.current;
4333
+ const elementToFocus =
4334
+ // Provided parent element
4335
+ parentElement?.current || (
4336
+ // Or first focusable element in anchor
4337
+ anchor ? getFirstAndLastFocusable(anchor).first : undefined) ||
4338
+ // Fallback to anchor
4339
+ anchor;
4340
+ elementToFocus?.focus({
4341
+ preventScroll: true
4342
+ });
4343
+ }, 0);
4344
+ }, [anchorRef, focusAnchorOnClose, parentElement, popoverElement]);
4282
4345
  React__default.useEffect(() => {
4283
4346
  if (!popoverElement || !focusAnchorOnClose) {
4284
4347
  onBeforeUnmountRef.current = undefined;
4285
4348
  return;
4286
4349
  }
4287
- onBeforeUnmountRef.current = () => {
4288
- const isFocusWithin = popoverElement?.contains(document.activeElement);
4289
- if (!isFocusWithin) return;
4290
-
4291
- // On next render
4292
- setTimeout(() => {
4293
- const anchor = anchorRef.current;
4294
- const elementToFocus =
4295
- // Provided parent element
4296
- parentElement?.current || (
4297
- // Or first focusable element in anchor
4298
- anchor ? getFirstAndLastFocusable(anchor).first : undefined) ||
4299
- // Fallback to anchor
4300
- anchor;
4301
- elementToFocus?.focus({
4302
- preventScroll: true
4303
- });
4304
- }, 0);
4305
- };
4306
- }, [anchorRef, focusAnchorOnClose, parentElement, popoverElement]);
4350
+ onBeforeUnmountRef.current = tryRestoreFocus;
4351
+ }, [focusAnchorOnClose, popoverElement, tryRestoreFocus]);
4352
+
4353
+ // Handle closeMode="hide": detect isOpen going from true to false (popover stays mounted).
4354
+ React__default.useEffect(() => {
4355
+ if (prevIsOpenRef.current && !isOpen) {
4356
+ tryRestoreFocus();
4357
+ }
4358
+ prevIsOpenRef.current = isOpen;
4359
+ }, [isOpen, tryRestoreFocus]);
4307
4360
  return /*#__PURE__*/jsx(OnBeforeUnmount, {
4308
4361
  callbackRef: onBeforeUnmountRef
4309
4362
  });
@@ -6583,26 +6636,27 @@ const _InnerPopover = forwardRef((props, ref) => {
6583
6636
  as,
6584
6637
  children,
6585
6638
  className,
6639
+ closeMode = DEFAULT_PROPS$X.closeMode,
6586
6640
  closeOnClickAway,
6587
6641
  closeOnEscape,
6588
- elevation = DEFAULT_PROPS$U.elevation,
6642
+ elevation = DEFAULT_PROPS$X.elevation,
6589
6643
  focusElement,
6590
6644
  hasArrow,
6591
6645
  isOpen,
6592
6646
  onClose,
6593
6647
  parentElement,
6594
- usePortal = DEFAULT_PROPS$U.usePortal,
6595
- focusAnchorOnClose = DEFAULT_PROPS$U.focusAnchorOnClose,
6648
+ usePortal = DEFAULT_PROPS$X.usePortal,
6649
+ focusAnchorOnClose = DEFAULT_PROPS$X.focusAnchorOnClose,
6596
6650
  withFocusTrap,
6597
6651
  boundaryRef,
6598
6652
  fitToAnchorWidth,
6599
6653
  fitWithinViewportHeight,
6600
6654
  focusTrapZoneElement,
6601
6655
  offset,
6602
- placement = DEFAULT_PROPS$U.placement,
6656
+ placement = DEFAULT_PROPS$X.placement,
6603
6657
  style,
6604
6658
  theme,
6605
- zIndex = DEFAULT_PROPS$U.zIndex,
6659
+ zIndex = DEFAULT_PROPS$X.zIndex,
6606
6660
  ...forwardedProps
6607
6661
  } = props;
6608
6662
  const popoverRef = useRef(null);
@@ -6628,7 +6682,7 @@ const _InnerPopover = forwardRef((props, ref) => {
6628
6682
  focusAnchorOnClose,
6629
6683
  anchorRef,
6630
6684
  parentElement
6631
- }, popperElement);
6685
+ }, popperElement, isOpen);
6632
6686
  const focusZoneElement = focusTrapZoneElement?.current || popoverRef?.current;
6633
6687
  useCallbackOnEscape(onClose, isOpen && closeOnEscape);
6634
6688
 
@@ -6642,6 +6696,7 @@ const _InnerPopover = forwardRef((props, ref) => {
6642
6696
  as: as,
6643
6697
  children,
6644
6698
  className,
6699
+ closeMode,
6645
6700
  elevation,
6646
6701
  hasArrow,
6647
6702
  isOpen,
@@ -6661,7 +6716,7 @@ const _InnerPopover = forwardRef((props, ref) => {
6661
6716
  ThemeProvider
6662
6717
  });
6663
6718
  });
6664
- _InnerPopover.displayName = COMPONENT_NAME$Y;
6719
+ _InnerPopover.displayName = COMPONENT_NAME$_;
6665
6720
 
6666
6721
  /**
6667
6722
  * Popover component.
@@ -6673,9 +6728,9 @@ _InnerPopover.displayName = COMPONENT_NAME$Y;
6673
6728
  const Popover = skipRender(
6674
6729
  // Skip render in SSR
6675
6730
  () => Boolean(DOCUMENT), _InnerPopover);
6676
- Popover.displayName = COMPONENT_NAME$Y;
6677
- Popover.className = CLASSNAME$Z;
6678
- Popover.defaultProps = DEFAULT_PROPS$U;
6731
+ Popover.displayName = COMPONENT_NAME$_;
6732
+ Popover.className = CLASSNAME$$;
6733
+ Popover.defaultProps = DEFAULT_PROPS$X;
6679
6734
 
6680
6735
  // The error margin in px we want to have for triggering infinite scroll
6681
6736
  const SCROLL_TRIGGER_MARGIN = 5;
@@ -6721,21 +6776,21 @@ const useInfiniteScroll = (ref, callback, callbackOnMount = false, scrollTrigger
6721
6776
  /**
6722
6777
  * Component display name.
6723
6778
  */
6724
- const COMPONENT_NAME$X = 'Dropdown';
6779
+ const COMPONENT_NAME$Z = 'Dropdown';
6725
6780
 
6726
6781
  /**
6727
6782
  * Component default class name and class prefix.
6728
6783
  */
6729
- const CLASSNAME$Y = 'lumx-dropdown';
6784
+ const CLASSNAME$_ = 'lumx-dropdown';
6730
6785
  const {
6731
- block: block$P,
6732
- element: element$D
6733
- } = classNames.bem(CLASSNAME$Y);
6786
+ block: block$Q,
6787
+ element: element$E
6788
+ } = classNames.bem(CLASSNAME$_);
6734
6789
 
6735
6790
  /**
6736
6791
  * Component default props.
6737
6792
  */
6738
- const DEFAULT_PROPS$T = {
6793
+ const DEFAULT_PROPS$W = {
6739
6794
  closeOnClick: true,
6740
6795
  closeOnClickAway: true,
6741
6796
  closeOnEscape: true,
@@ -6758,18 +6813,18 @@ const Dropdown = forwardRef((props, ref) => {
6758
6813
  anchorRef,
6759
6814
  children,
6760
6815
  className,
6761
- closeOnClick = DEFAULT_PROPS$T.closeOnClick,
6762
- closeOnClickAway = DEFAULT_PROPS$T.closeOnClickAway,
6763
- closeOnEscape = DEFAULT_PROPS$T.closeOnEscape,
6764
- fitToAnchorWidth = DEFAULT_PROPS$T.fitToAnchorWidth,
6765
- fitWithinViewportHeight = DEFAULT_PROPS$T.fitWithinViewportHeight,
6816
+ closeOnClick = DEFAULT_PROPS$W.closeOnClick,
6817
+ closeOnClickAway = DEFAULT_PROPS$W.closeOnClickAway,
6818
+ closeOnEscape = DEFAULT_PROPS$W.closeOnEscape,
6819
+ fitToAnchorWidth = DEFAULT_PROPS$W.fitToAnchorWidth,
6820
+ fitWithinViewportHeight = DEFAULT_PROPS$W.fitWithinViewportHeight,
6766
6821
  isOpen,
6767
6822
  offset,
6768
- focusAnchorOnClose = DEFAULT_PROPS$T.focusAnchorOnClose,
6823
+ focusAnchorOnClose = DEFAULT_PROPS$W.focusAnchorOnClose,
6769
6824
  onClose,
6770
6825
  onInfiniteScroll,
6771
- placement = DEFAULT_PROPS$T.placement,
6772
- shouldFocusOnOpen = DEFAULT_PROPS$T.shouldFocusOnOpen,
6826
+ placement = DEFAULT_PROPS$W.placement,
6827
+ shouldFocusOnOpen = DEFAULT_PROPS$W.shouldFocusOnOpen,
6773
6828
  zIndex,
6774
6829
  ...forwardedProps
6775
6830
  } = props;
@@ -6794,7 +6849,7 @@ const Dropdown = forwardRef((props, ref) => {
6794
6849
  ...forwardedProps,
6795
6850
  focusAnchorOnClose: focusAnchorOnClose,
6796
6851
  anchorRef: anchorRef,
6797
- className: classNames.join(className, block$P()),
6852
+ className: classNames.join(className, block$Q()),
6798
6853
  elevation: 0,
6799
6854
  closeOnClickAway: closeOnClickAway,
6800
6855
  closeOnEscape: closeOnEscape,
@@ -6807,34 +6862,34 @@ const Dropdown = forwardRef((props, ref) => {
6807
6862
  placement: placement,
6808
6863
  zIndex: zIndex,
6809
6864
  children: /*#__PURE__*/jsx("div", {
6810
- className: element$D('menu'),
6865
+ className: element$E('menu'),
6811
6866
  ref: innerRef,
6812
6867
  children: popperElement
6813
6868
  })
6814
6869
  }) : null;
6815
6870
  });
6816
- Dropdown.displayName = COMPONENT_NAME$X;
6817
- Dropdown.className = CLASSNAME$Y;
6818
- Dropdown.defaultProps = DEFAULT_PROPS$T;
6871
+ Dropdown.displayName = COMPONENT_NAME$Z;
6872
+ Dropdown.className = CLASSNAME$_;
6873
+ Dropdown.defaultProps = DEFAULT_PROPS$W;
6819
6874
 
6820
6875
  /**
6821
6876
  * Component display name.
6822
6877
  */
6823
- const COMPONENT_NAME$W = 'ExpansionPanel';
6878
+ const COMPONENT_NAME$Y = 'ExpansionPanel';
6824
6879
 
6825
6880
  /**
6826
6881
  * Component default class name and class prefix.
6827
6882
  */
6828
- const CLASSNAME$X = 'lumx-expansion-panel';
6883
+ const CLASSNAME$Z = 'lumx-expansion-panel';
6829
6884
  const {
6830
- block: block$O,
6831
- element: element$C
6832
- } = classNames.bem(CLASSNAME$X);
6885
+ block: block$P,
6886
+ element: element$D
6887
+ } = classNames.bem(CLASSNAME$Z);
6833
6888
 
6834
6889
  /**
6835
6890
  * Component default props.
6836
6891
  */
6837
- const DEFAULT_PROPS$S = {
6892
+ const DEFAULT_PROPS$V = {
6838
6893
  closeMode: 'unmount'
6839
6894
  };
6840
6895
  const isDragHandle = isComponent(DragHandle);
@@ -6852,7 +6907,7 @@ const ExpansionPanel = forwardRef((props, ref) => {
6852
6907
  const defaultTheme = useTheme() || Theme$1.light;
6853
6908
  const {
6854
6909
  className,
6855
- closeMode = DEFAULT_PROPS$S.closeMode,
6910
+ closeMode = DEFAULT_PROPS$V.closeMode,
6856
6911
  children: anyChildren,
6857
6912
  hasBackground,
6858
6913
  hasHeaderDivider,
@@ -6873,7 +6928,7 @@ const ExpansionPanel = forwardRef((props, ref) => {
6873
6928
  // Either take the header in children or create one with the label.
6874
6929
  const headerProps = /*#__PURE__*/React__default.isValidElement(header) ? header.props : {};
6875
6930
  const headerContent = !isEmpty(headerProps.children) ? headerProps.children : /*#__PURE__*/jsx("span", {
6876
- className: element$C('label'),
6931
+ className: element$D('label'),
6877
6932
  children: label
6878
6933
  });
6879
6934
  const toggleOpen = event => {
@@ -6889,7 +6944,7 @@ const ExpansionPanel = forwardRef((props, ref) => {
6889
6944
  }
6890
6945
  };
6891
6946
  const color = theme === Theme$1.dark ? ColorPalette$1.light : ColorPalette$1.dark;
6892
- const rootClassName = classNames.join(className, block$O({
6947
+ const rootClassName = classNames.join(className, block$P({
6893
6948
  'has-background': hasBackground,
6894
6949
  'has-header': Boolean(!isEmpty(headerProps.children)),
6895
6950
  'has-header-divider': hasHeaderDivider,
@@ -6932,17 +6987,17 @@ const ExpansionPanel = forwardRef((props, ref) => {
6932
6987
  ...forwardedProps,
6933
6988
  className: rootClassName,
6934
6989
  children: [/*#__PURE__*/jsxs("header", {
6935
- className: element$C('header'),
6990
+ className: element$D('header'),
6936
6991
  onClick: toggleOpen,
6937
6992
  children: [dragHandle && /*#__PURE__*/jsx("div", {
6938
- className: element$C('header-drag'),
6993
+ className: element$D('header-drag'),
6939
6994
  children: dragHandle
6940
6995
  }), /*#__PURE__*/jsx("div", {
6941
6996
  ...headerProps,
6942
- className: element$C('header-content'),
6997
+ className: element$D('header-content'),
6943
6998
  children: headerContent
6944
6999
  }), /*#__PURE__*/jsx("div", {
6945
- className: element$C('header-toggle'),
7000
+ className: element$D('header-toggle'),
6946
7001
  children: /*#__PURE__*/jsx(IconButton, {
6947
7002
  ...toggleButtonProps,
6948
7003
  color: color,
@@ -6952,32 +7007,32 @@ const ExpansionPanel = forwardRef((props, ref) => {
6952
7007
  })
6953
7008
  })]
6954
7009
  }), /*#__PURE__*/jsx("div", {
6955
- className: element$C('wrapper'),
7010
+ className: element$D('wrapper'),
6956
7011
  ref: wrapperRef,
6957
7012
  children: (isOpen || isChildrenVisible) && /*#__PURE__*/jsxs("div", {
6958
- className: element$C('container'),
7013
+ className: element$D('container'),
6959
7014
  children: [/*#__PURE__*/jsx("div", {
6960
- className: element$C('content'),
7015
+ className: element$D('content'),
6961
7016
  children: content
6962
7017
  }), footer && /*#__PURE__*/jsx("div", {
6963
- className: element$C('footer'),
7018
+ className: element$D('footer'),
6964
7019
  children: footer
6965
7020
  })]
6966
7021
  })
6967
7022
  })]
6968
7023
  });
6969
7024
  });
6970
- ExpansionPanel.displayName = COMPONENT_NAME$W;
6971
- ExpansionPanel.className = CLASSNAME$X;
6972
- ExpansionPanel.defaultProps = DEFAULT_PROPS$S;
7025
+ ExpansionPanel.displayName = COMPONENT_NAME$Y;
7026
+ ExpansionPanel.className = CLASSNAME$Z;
7027
+ ExpansionPanel.defaultProps = DEFAULT_PROPS$V;
6973
7028
 
6974
- const COMPONENT_NAME$V = 'Flag';
6975
- const CLASSNAME$W = 'lumx-flag';
6976
- const DEFAULT_PROPS$R = {};
7029
+ const COMPONENT_NAME$X = 'Flag';
7030
+ const CLASSNAME$Y = 'lumx-flag';
7031
+ const DEFAULT_PROPS$U = {};
6977
7032
  const {
6978
- block: block$N,
6979
- element: element$B
6980
- } = bem(CLASSNAME$W);
7033
+ block: block$O,
7034
+ element: element$C
7035
+ } = bem(CLASSNAME$Y);
6981
7036
 
6982
7037
  /**
6983
7038
  * Flag component.
@@ -7000,19 +7055,19 @@ const Flag$1 = props => {
7000
7055
  const isTruncated = !!truncate;
7001
7056
  return /*#__PURE__*/jsxs("div", {
7002
7057
  ...forwardedProps,
7003
- className: classnames(className, block$N({
7058
+ className: classnames(className, block$O({
7004
7059
  [`color-${flagColor}`]: Boolean(flagColor),
7005
7060
  'is-truncated': isTruncated
7006
7061
  })),
7007
7062
  children: [icon && Icon$1({
7008
7063
  icon,
7009
7064
  size: Size.xxs,
7010
- className: element$B('icon')
7065
+ className: element$C('icon')
7011
7066
  }), /*#__PURE__*/jsx(Text, {
7012
7067
  as: "span",
7013
7068
  truncate: !!truncate,
7014
7069
  typography: "overline",
7015
- className: element$B('label'),
7070
+ className: element$C('label'),
7016
7071
  children: children
7017
7072
  })]
7018
7073
  });
@@ -7035,9 +7090,9 @@ const Flag = forwardRef((props, ref) => {
7035
7090
  Text
7036
7091
  });
7037
7092
  });
7038
- Flag.displayName = COMPONENT_NAME$V;
7039
- Flag.className = CLASSNAME$W;
7040
- Flag.defaultProps = DEFAULT_PROPS$R;
7093
+ Flag.displayName = COMPONENT_NAME$X;
7094
+ Flag.className = CLASSNAME$Y;
7095
+ Flag.defaultProps = DEFAULT_PROPS$U;
7041
7096
 
7042
7097
  /**
7043
7098
  * Defines the props of the component.
@@ -7046,15 +7101,15 @@ Flag.defaultProps = DEFAULT_PROPS$R;
7046
7101
  /**
7047
7102
  * Component display name.
7048
7103
  */
7049
- const COMPONENT_NAME$U = 'FlexBox';
7104
+ const COMPONENT_NAME$W = 'FlexBox';
7050
7105
 
7051
7106
  /**
7052
7107
  * Component default class name and class prefix.
7053
7108
  */
7054
- const CLASSNAME$V = 'lumx-flex-box';
7109
+ const CLASSNAME$X = 'lumx-flex-box';
7055
7110
  const {
7056
- block: block$M
7057
- } = bem(CLASSNAME$V);
7111
+ block: block$N
7112
+ } = bem(CLASSNAME$X);
7058
7113
 
7059
7114
  /**
7060
7115
  * Get FlexBox component props (className computation).
@@ -7078,7 +7133,7 @@ function getFlexBoxProps(props) {
7078
7133
  const adjustedOrientation = orientation ?? (wrap || hAlign || vAlign ? Orientation.horizontal : null);
7079
7134
  return {
7080
7135
  ...forwardedProps,
7081
- className: classnames(className, block$M({
7136
+ className: classnames(className, block$N({
7082
7137
  [`orientation-${adjustedOrientation}`]: Boolean(adjustedOrientation),
7083
7138
  [`v-align-${vAlign}`]: Boolean(vAlign),
7084
7139
  [`h-align-${hAlign}`]: Boolean(hAlign),
@@ -7110,27 +7165,27 @@ const FlexBox = forwardRef((props, ref) => {
7110
7165
  children: children
7111
7166
  });
7112
7167
  });
7113
- FlexBox.displayName = COMPONENT_NAME$U;
7114
- FlexBox.className = CLASSNAME$V;
7168
+ FlexBox.displayName = COMPONENT_NAME$W;
7169
+ FlexBox.className = CLASSNAME$X;
7115
7170
 
7116
7171
  /**
7117
7172
  * Component display name.
7118
7173
  */
7119
- const COMPONENT_NAME$T = 'GenericBlock';
7174
+ const COMPONENT_NAME$V = 'GenericBlock';
7120
7175
 
7121
7176
  /**
7122
7177
  * Component default class name and class prefix.
7123
7178
  */
7124
- const CLASSNAME$U = 'lumx-generic-block';
7179
+ const CLASSNAME$W = 'lumx-generic-block';
7125
7180
  const {
7126
- block: block$L,
7127
- element: element$A
7128
- } = classNames.bem(CLASSNAME$U);
7181
+ block: block$M,
7182
+ element: element$B
7183
+ } = classNames.bem(CLASSNAME$W);
7129
7184
 
7130
7185
  /**
7131
7186
  * Component default props.
7132
7187
  */
7133
- const DEFAULT_PROPS$Q = {
7188
+ const DEFAULT_PROPS$T = {
7134
7189
  gap: Size$1.big,
7135
7190
  orientation: Orientation$1.horizontal
7136
7191
  };
@@ -7160,8 +7215,8 @@ const BaseGenericBlock = forwardRef((props, ref) => {
7160
7215
  children,
7161
7216
  actions,
7162
7217
  actionsProps,
7163
- gap = DEFAULT_PROPS$Q.gap,
7164
- orientation = DEFAULT_PROPS$Q.orientation,
7218
+ gap = DEFAULT_PROPS$T.gap,
7219
+ orientation = DEFAULT_PROPS$T.orientation,
7165
7220
  contentProps,
7166
7221
  ...forwardedProps
7167
7222
  } = props;
@@ -7180,7 +7235,7 @@ const BaseGenericBlock = forwardRef((props, ref) => {
7180
7235
  }, [children]);
7181
7236
  return /*#__PURE__*/jsxs(FlexBox, {
7182
7237
  ref: ref,
7183
- className: classNames.join(className, block$L()),
7238
+ className: classNames.join(className, block$M()),
7184
7239
  gap: gap,
7185
7240
  orientation: orientation,
7186
7241
  ...forwardedProps,
@@ -7190,7 +7245,7 @@ const BaseGenericBlock = forwardRef((props, ref) => {
7190
7245
  hAlign: forwardedProps.hAlign,
7191
7246
  ...figureProps,
7192
7247
  ...sections.figureChildProps,
7193
- className: classNames.join(figureProps?.className, sections.figureChildProps?.className, element$A('figure')),
7248
+ className: classNames.join(figureProps?.className, sections.figureChildProps?.className, element$B('figure')),
7194
7249
  children: [figure, sections.figureChildProps?.children]
7195
7250
  }), (sections.contentChildProps?.children || sections.otherChildren.length > 0) && /*#__PURE__*/jsxs(FlexBox, {
7196
7251
  ref: sections.contentChild?.ref,
@@ -7200,7 +7255,7 @@ const BaseGenericBlock = forwardRef((props, ref) => {
7200
7255
  hAlign: forwardedProps.hAlign,
7201
7256
  ...contentProps,
7202
7257
  ...sections.contentChildProps,
7203
- className: classNames.join(contentProps?.className, sections.contentChildProps?.className, element$A('content')),
7258
+ className: classNames.join(contentProps?.className, sections.contentChildProps?.className, element$B('content')),
7204
7259
  children: [sections.contentChildProps?.children, sections.otherChildren]
7205
7260
  }), (actions || sections.actionsChildProps?.children) && /*#__PURE__*/jsxs(FlexBox, {
7206
7261
  ref: sections.actionsChild?.ref,
@@ -7208,14 +7263,14 @@ const BaseGenericBlock = forwardRef((props, ref) => {
7208
7263
  hAlign: forwardedProps.hAlign,
7209
7264
  ...actionsProps,
7210
7265
  ...sections.actionsChildProps,
7211
- className: classNames.join(actionsProps?.className, sections.actionsChildProps?.className, element$A('actions')),
7266
+ className: classNames.join(actionsProps?.className, sections.actionsChildProps?.className, element$B('actions')),
7212
7267
  children: [actions, sections.actionsChildProps?.children]
7213
7268
  })]
7214
7269
  });
7215
7270
  });
7216
- BaseGenericBlock.displayName = COMPONENT_NAME$T;
7217
- BaseGenericBlock.className = CLASSNAME$U;
7218
- BaseGenericBlock.defaultProps = DEFAULT_PROPS$Q;
7271
+ BaseGenericBlock.displayName = COMPONENT_NAME$V;
7272
+ BaseGenericBlock.className = CLASSNAME$W;
7273
+ BaseGenericBlock.defaultProps = DEFAULT_PROPS$T;
7219
7274
  const GenericBlock = Object.assign(BaseGenericBlock, {
7220
7275
  Figure,
7221
7276
  Content,
@@ -7253,17 +7308,17 @@ const defaultContext = {
7253
7308
  /**
7254
7309
  * Component display name.
7255
7310
  */
7256
- const COMPONENT_NAME$S = 'Heading';
7311
+ const COMPONENT_NAME$U = 'Heading';
7257
7312
 
7258
7313
  /**
7259
7314
  * Component default class name and class prefix.
7260
7315
  */
7261
- const CLASSNAME$T = 'lumx-heading';
7316
+ const CLASSNAME$V = 'lumx-heading';
7262
7317
 
7263
7318
  /**
7264
7319
  * Component default props.
7265
7320
  */
7266
- const DEFAULT_PROPS$P = {};
7321
+ const DEFAULT_PROPS$S = {};
7267
7322
 
7268
7323
  /**
7269
7324
  * Get Heading component common props
@@ -7283,7 +7338,7 @@ const getHeadingProps = (props, contextHeadingElement) => {
7283
7338
  return {
7284
7339
  ...otherProps,
7285
7340
  as: computedHeadingElement,
7286
- className: classnames(className, CLASSNAME$T),
7341
+ className: classnames(className, CLASSNAME$V),
7287
7342
  typography: typography || DEFAULT_TYPOGRAPHY_BY_LEVEL[computedHeadingElement]
7288
7343
  };
7289
7344
  };
@@ -7351,20 +7406,20 @@ function wrapChildrenIconWithSpaces(children) {
7351
7406
  /**
7352
7407
  * Component display name.
7353
7408
  */
7354
- const COMPONENT_NAME$R = 'Text';
7409
+ const COMPONENT_NAME$T = 'Text';
7355
7410
 
7356
7411
  /**
7357
7412
  * Component default class name and class prefix.
7358
7413
  */
7359
- const CLASSNAME$S = 'lumx-text';
7414
+ const CLASSNAME$U = 'lumx-text';
7360
7415
  const {
7361
- block: block$K
7362
- } = bem(CLASSNAME$S);
7416
+ block: block$L
7417
+ } = bem(CLASSNAME$U);
7363
7418
 
7364
7419
  /**
7365
7420
  * Component default props.
7366
7421
  */
7367
- const DEFAULT_PROPS$O = {};
7422
+ const DEFAULT_PROPS$R = {};
7368
7423
 
7369
7424
  /**
7370
7425
  * Text component common props
@@ -7400,7 +7455,7 @@ const getTextProps = props => {
7400
7455
  '--lumx-text-white-space': whiteSpace
7401
7456
  };
7402
7457
  return {
7403
- className: classnames(className, block$K({
7458
+ className: classnames(className, block$L({
7404
7459
  'is-truncated': isTruncated && !isTruncatedMultiline,
7405
7460
  'is-truncated-multiline': isTruncatedMultiline,
7406
7461
  'no-wrap': noWrap
@@ -7449,9 +7504,9 @@ const Text = forwardRef((props, ref) => {
7449
7504
  children: wrapChildrenIconWithSpaces(children)
7450
7505
  });
7451
7506
  });
7452
- Text.displayName = COMPONENT_NAME$R;
7453
- Text.className = CLASSNAME$S;
7454
- Text.defaultProps = DEFAULT_PROPS$O;
7507
+ Text.displayName = COMPONENT_NAME$T;
7508
+ Text.className = CLASSNAME$U;
7509
+ Text.defaultProps = DEFAULT_PROPS$R;
7455
7510
 
7456
7511
  const HeadingLevelContext = /*#__PURE__*/createContext(defaultContext);
7457
7512
 
@@ -7486,9 +7541,9 @@ const Heading = forwardRef((props, ref) => {
7486
7541
  children: children
7487
7542
  });
7488
7543
  });
7489
- Heading.displayName = COMPONENT_NAME$S;
7490
- Heading.className = CLASSNAME$T;
7491
- Heading.defaultProps = DEFAULT_PROPS$P;
7544
+ Heading.displayName = COMPONENT_NAME$U;
7545
+ Heading.className = CLASSNAME$V;
7546
+ Heading.defaultProps = DEFAULT_PROPS$S;
7492
7547
 
7493
7548
  /**
7494
7549
  * Computes the next heading level based on the optional prop level or the parent context level.
@@ -7526,20 +7581,20 @@ const HeadingLevelProvider = ({
7526
7581
  /**
7527
7582
  * Component display name.
7528
7583
  */
7529
- const COMPONENT_NAME$Q = 'Grid';
7584
+ const COMPONENT_NAME$S = 'Grid';
7530
7585
 
7531
7586
  /**
7532
7587
  * Component default class name and class prefix.
7533
7588
  */
7534
- const CLASSNAME$R = 'lumx-grid';
7589
+ const CLASSNAME$T = 'lumx-grid';
7535
7590
  const {
7536
- block: block$J
7537
- } = classNames.bem(CLASSNAME$R);
7591
+ block: block$K
7592
+ } = classNames.bem(CLASSNAME$T);
7538
7593
 
7539
7594
  /**
7540
7595
  * Component default props.
7541
7596
  */
7542
- const DEFAULT_PROPS$N = {
7597
+ const DEFAULT_PROPS$Q = {
7543
7598
  orientation: Orientation$1.horizontal,
7544
7599
  wrap: 'nowrap'
7545
7600
  };
@@ -7557,15 +7612,15 @@ const Grid = forwardRef((props, ref) => {
7557
7612
  className,
7558
7613
  gutter,
7559
7614
  hAlign,
7560
- orientation = DEFAULT_PROPS$N.orientation,
7615
+ orientation = DEFAULT_PROPS$Q.orientation,
7561
7616
  vAlign,
7562
- wrap = DEFAULT_PROPS$N.wrap,
7617
+ wrap = DEFAULT_PROPS$Q.wrap,
7563
7618
  ...forwardedProps
7564
7619
  } = props;
7565
7620
  return /*#__PURE__*/jsx("div", {
7566
7621
  ref: ref,
7567
7622
  ...forwardedProps,
7568
- className: classNames.join(className, classNames.bem(`${CLASSNAME$R}-container`).block(), block$J({
7623
+ className: classNames.join(className, classNames.bem(`${CLASSNAME$T}-container`).block(), block$K({
7569
7624
  [`h-align-${hAlign}`]: Boolean(hAlign),
7570
7625
  [`v-align-${vAlign}`]: Boolean(vAlign),
7571
7626
  [`orientation-${orientation}`]: Boolean(orientation),
@@ -7575,22 +7630,22 @@ const Grid = forwardRef((props, ref) => {
7575
7630
  children: children
7576
7631
  });
7577
7632
  });
7578
- Grid.displayName = COMPONENT_NAME$Q;
7579
- Grid.className = CLASSNAME$R;
7580
- Grid.defaultProps = DEFAULT_PROPS$N;
7633
+ Grid.displayName = COMPONENT_NAME$S;
7634
+ Grid.className = CLASSNAME$T;
7635
+ Grid.defaultProps = DEFAULT_PROPS$Q;
7581
7636
 
7582
7637
  /**
7583
7638
  * Component display name.
7584
7639
  */
7585
- const COMPONENT_NAME$P = 'GridItem';
7640
+ const COMPONENT_NAME$R = 'GridItem';
7586
7641
 
7587
7642
  /**
7588
7643
  * Component default class name and class prefix.
7589
7644
  */
7590
- const CLASSNAME$Q = 'lumx-grid-item';
7645
+ const CLASSNAME$S = 'lumx-grid-item';
7591
7646
  const {
7592
- block: block$I
7593
- } = classNames.bem(CLASSNAME$Q);
7647
+ block: block$J
7648
+ } = classNames.bem(CLASSNAME$S);
7594
7649
 
7595
7650
  /**
7596
7651
  * GridItem component.
@@ -7611,7 +7666,7 @@ const GridItem = forwardRef((props, ref) => {
7611
7666
  return /*#__PURE__*/jsx("div", {
7612
7667
  ref: ref,
7613
7668
  ...forwardedProps,
7614
- className: classNames.join(className, block$I({
7669
+ className: classNames.join(className, block$J({
7615
7670
  [`width-${width}`]: Boolean(width),
7616
7671
  [`order-${order}`]: Boolean(order),
7617
7672
  [`align-${align}`]: Boolean(align)
@@ -7619,23 +7674,23 @@ const GridItem = forwardRef((props, ref) => {
7619
7674
  children: children
7620
7675
  });
7621
7676
  });
7622
- GridItem.displayName = COMPONENT_NAME$P;
7623
- GridItem.className = CLASSNAME$Q;
7677
+ GridItem.displayName = COMPONENT_NAME$R;
7678
+ GridItem.className = CLASSNAME$S;
7624
7679
 
7625
7680
  /**
7626
7681
  * Component display name.
7627
7682
  */
7628
- const COMPONENT_NAME$O = 'GridColumn';
7683
+ const COMPONENT_NAME$Q = 'GridColumn';
7629
7684
 
7630
7685
  /**
7631
7686
  * Component default class name and class prefix.
7632
7687
  */
7633
- const CLASSNAME$P = 'lumx-grid-column';
7688
+ const CLASSNAME$R = 'lumx-grid-column';
7634
7689
 
7635
7690
  /**
7636
7691
  * Component default props.
7637
7692
  */
7638
- const DEFAULT_PROPS$M = {};
7693
+ const DEFAULT_PROPS$P = {};
7639
7694
 
7640
7695
  /**
7641
7696
  * The GridColumn is a layout component that can display children in a grid
@@ -7660,7 +7715,7 @@ const GridColumn$1 = props => {
7660
7715
  return /*#__PURE__*/jsx(Component, {
7661
7716
  ...forwardedProps,
7662
7717
  ref: ref,
7663
- className: classnames(className, CLASSNAME$P),
7718
+ className: classnames(className, CLASSNAME$R),
7664
7719
  style: {
7665
7720
  ...style,
7666
7721
  ['--lumx-grid-column-item-min-width']: isInteger(itemMinWidth) && `${itemMinWidth}px`,
@@ -7670,9 +7725,9 @@ const GridColumn$1 = props => {
7670
7725
  children: children
7671
7726
  });
7672
7727
  };
7673
- GridColumn$1.displayName = COMPONENT_NAME$O;
7674
- GridColumn$1.className = CLASSNAME$P;
7675
- GridColumn$1.defaultProps = DEFAULT_PROPS$M;
7728
+ GridColumn$1.displayName = COMPONENT_NAME$Q;
7729
+ GridColumn$1.className = CLASSNAME$R;
7730
+ GridColumn$1.defaultProps = DEFAULT_PROPS$P;
7676
7731
 
7677
7732
  /**
7678
7733
  * Defines the props of the component.
@@ -7683,7 +7738,7 @@ GridColumn$1.defaultProps = DEFAULT_PROPS$M;
7683
7738
  /**
7684
7739
  * Component default props.
7685
7740
  */
7686
- const DEFAULT_PROPS$L = {};
7741
+ const DEFAULT_PROPS$O = {};
7687
7742
 
7688
7743
  /**
7689
7744
  * The GridColumn is a layout component that can display children in a grid
@@ -7700,9 +7755,9 @@ const GridColumn = forwardRef((props, ref) => {
7700
7755
  ...props
7701
7756
  });
7702
7757
  });
7703
- GridColumn.displayName = COMPONENT_NAME$O;
7704
- GridColumn.className = CLASSNAME$P;
7705
- GridColumn.defaultProps = DEFAULT_PROPS$L;
7758
+ GridColumn.displayName = COMPONENT_NAME$Q;
7759
+ GridColumn.className = CLASSNAME$R;
7760
+ GridColumn.defaultProps = DEFAULT_PROPS$O;
7706
7761
 
7707
7762
  /**
7708
7763
  * Icon component.
@@ -7806,21 +7861,21 @@ const ImageBlockCaptionPosition = {
7806
7861
  /**
7807
7862
  * Component display name.
7808
7863
  */
7809
- const COMPONENT_NAME$N = 'ImageBlock';
7864
+ const COMPONENT_NAME$P = 'ImageBlock';
7810
7865
 
7811
7866
  /**
7812
7867
  * Component default class name and class prefix.
7813
7868
  */
7814
- const CLASSNAME$O = 'lumx-image-block';
7869
+ const CLASSNAME$Q = 'lumx-image-block';
7815
7870
  const {
7816
- block: block$H,
7817
- element: element$z
7818
- } = classNames.bem(CLASSNAME$O);
7871
+ block: block$I,
7872
+ element: element$A
7873
+ } = classNames.bem(CLASSNAME$Q);
7819
7874
 
7820
7875
  /**
7821
7876
  * Component default props.
7822
7877
  */
7823
- const DEFAULT_PROPS$K = {
7878
+ const DEFAULT_PROPS$N = {
7824
7879
  captionPosition: ImageBlockCaptionPosition.below,
7825
7880
  align: Alignment.left
7826
7881
  };
@@ -7836,9 +7891,9 @@ const ImageBlock = forwardRef((props, ref) => {
7836
7891
  const defaultTheme = useTheme() || Theme$1.light;
7837
7892
  const {
7838
7893
  actions,
7839
- align = DEFAULT_PROPS$K.align,
7894
+ align = DEFAULT_PROPS$N.align,
7840
7895
  alt,
7841
- captionPosition = DEFAULT_PROPS$K.captionPosition,
7896
+ captionPosition = DEFAULT_PROPS$N.captionPosition,
7842
7897
  captionStyle,
7843
7898
  className,
7844
7899
  description,
@@ -7856,7 +7911,7 @@ const ImageBlock = forwardRef((props, ref) => {
7856
7911
  return /*#__PURE__*/jsxs("figure", {
7857
7912
  ref: ref,
7858
7913
  ...forwardedProps,
7859
- className: classNames.join(className, block$H({
7914
+ className: classNames.join(className, block$I({
7860
7915
  [`caption-position-${captionPosition}`]: Boolean(captionPosition),
7861
7916
  [`align-${align}`]: Boolean(align),
7862
7917
  [`size-${size}`]: Boolean(size),
@@ -7865,7 +7920,7 @@ const ImageBlock = forwardRef((props, ref) => {
7865
7920
  })),
7866
7921
  children: [/*#__PURE__*/jsx(Thumbnail, {
7867
7922
  ...thumbnailProps,
7868
- className: classNames.join(element$z('image'), thumbnailProps?.className),
7923
+ className: classNames.join(element$A('image'), thumbnailProps?.className),
7869
7924
  fillHeight: fillHeight,
7870
7925
  align: align,
7871
7926
  image: image,
@@ -7874,7 +7929,7 @@ const ImageBlock = forwardRef((props, ref) => {
7874
7929
  alt: alt || title
7875
7930
  }), /*#__PURE__*/jsx(ImageCaption, {
7876
7931
  as: "figcaption",
7877
- baseClassName: CLASSNAME$O,
7932
+ baseClassName: CLASSNAME$Q,
7878
7933
  theme: theme,
7879
7934
  title: title,
7880
7935
  titleProps: titleProps,
@@ -7885,24 +7940,24 @@ const ImageBlock = forwardRef((props, ref) => {
7885
7940
  align: align,
7886
7941
  truncate: captionPosition === 'over'
7887
7942
  }), actions && /*#__PURE__*/jsx("div", {
7888
- className: element$z('actions'),
7943
+ className: element$A('actions'),
7889
7944
  children: actions
7890
7945
  })]
7891
7946
  });
7892
7947
  });
7893
- ImageBlock.displayName = COMPONENT_NAME$N;
7894
- ImageBlock.className = CLASSNAME$O;
7895
- ImageBlock.defaultProps = DEFAULT_PROPS$K;
7948
+ ImageBlock.displayName = COMPONENT_NAME$P;
7949
+ ImageBlock.className = CLASSNAME$Q;
7950
+ ImageBlock.defaultProps = DEFAULT_PROPS$N;
7896
7951
 
7897
7952
  /**
7898
7953
  * Component display name.
7899
7954
  */
7900
- const COMPONENT_NAME$M = 'ImageLightbox';
7955
+ const COMPONENT_NAME$O = 'ImageLightbox';
7901
7956
 
7902
7957
  /**
7903
7958
  * Component default class name and class prefix.
7904
7959
  */
7905
- const CLASSNAME$N = 'lumx-image-lightbox';
7960
+ const CLASSNAME$P = 'lumx-image-lightbox';
7906
7961
 
7907
7962
  /**
7908
7963
  * Observe element size (only works if it's size depends on the window size).
@@ -8147,8 +8202,8 @@ function useAnimateScroll(scrollAreaRef) {
8147
8202
  }
8148
8203
 
8149
8204
  const {
8150
- element: element$y
8151
- } = classNames.bem(CLASSNAME$N);
8205
+ element: element$z
8206
+ } = classNames.bem(CLASSNAME$P);
8152
8207
  /** Internal image slide component for ImageLightbox */
8153
8208
  const ImageSlide = /*#__PURE__*/React__default.memo(props => {
8154
8209
  const {
@@ -8215,12 +8270,12 @@ const ImageSlide = /*#__PURE__*/React__default.memo(props => {
8215
8270
  // Make it accessible to keyboard nav when the zone is scrollable
8216
8271
  ,
8217
8272
  tabIndex: isScrollable ? 0 : undefined,
8218
- className: element$y('image-slide'),
8273
+ className: element$z('image-slide'),
8219
8274
  children: /*#__PURE__*/jsx(Thumbnail, {
8220
8275
  imgRef: useMergeRefs(imgRef, propImgRef),
8221
8276
  image: image,
8222
8277
  alt: alt,
8223
- className: element$y('thumbnail'),
8278
+ className: element$z('thumbnail'),
8224
8279
  imgProps: {
8225
8280
  ...imgProps,
8226
8281
  style: {
@@ -8239,8 +8294,8 @@ const ImageSlide = /*#__PURE__*/React__default.memo(props => {
8239
8294
  }, isEqual);
8240
8295
 
8241
8296
  const {
8242
- element: element$x
8243
- } = classNames.bem(CLASSNAME$N);
8297
+ element: element$y
8298
+ } = classNames.bem(CLASSNAME$P);
8244
8299
  /** Internal image slideshow component for ImageLightbox */
8245
8300
  const ImageSlideshow = ({
8246
8301
  activeImageIndex,
@@ -8361,12 +8416,12 @@ const ImageSlideshow = ({
8361
8416
  })
8362
8417
  }), (metadata || slideShowControls || zoomControls) && /*#__PURE__*/jsxs(FlexBox, {
8363
8418
  ref: footerRef,
8364
- className: element$x('footer'),
8419
+ className: element$y('footer'),
8365
8420
  orientation: "vertical",
8366
8421
  vAlign: "center",
8367
8422
  gap: "big",
8368
8423
  children: [metadata, /*#__PURE__*/jsxs(FlexBox, {
8369
- className: element$x('footer-actions'),
8424
+ className: element$y('footer-actions'),
8370
8425
  orientation: "horizontal",
8371
8426
  gap: "regular",
8372
8427
  children: [slideShowControls, zoomControls]
@@ -8486,7 +8541,7 @@ function useImageLightbox(props) {
8486
8541
  viewTransitionName: {
8487
8542
  source: currentImageRef,
8488
8543
  target: triggerImageRefs[currentIndex],
8489
- name: CLASSNAME$N
8544
+ name: CLASSNAME$P
8490
8545
  }
8491
8546
  });
8492
8547
  }
@@ -8538,7 +8593,7 @@ function useImageLightbox(props) {
8538
8593
  viewTransitionName: {
8539
8594
  source: triggerImage,
8540
8595
  target: currentImageRef,
8541
- name: CLASSNAME$N
8596
+ name: CLASSNAME$P
8542
8597
  }
8543
8598
  });
8544
8599
  }
@@ -8592,7 +8647,7 @@ const Inner = forwardRef((props, ref) => {
8592
8647
  }, [onClose]);
8593
8648
  return /*#__PURE__*/jsx(Lightbox, {
8594
8649
  ref: ref,
8595
- className: classNames.join(className, CLASSNAME$N),
8650
+ className: classNames.join(className, CLASSNAME$P),
8596
8651
  parentElement: parentElement,
8597
8652
  isOpen: isOpen,
8598
8653
  onClose: onClose,
@@ -8621,8 +8676,8 @@ const Inner = forwardRef((props, ref) => {
8621
8676
  })
8622
8677
  });
8623
8678
  });
8624
- Inner.displayName = COMPONENT_NAME$M;
8625
- Inner.className = CLASSNAME$N;
8679
+ Inner.displayName = COMPONENT_NAME$O;
8680
+ Inner.className = CLASSNAME$P;
8626
8681
 
8627
8682
  /**
8628
8683
  * ImageLightbox component.
@@ -8638,21 +8693,21 @@ const ImageLightbox = Object.assign(Inner, {
8638
8693
  /**
8639
8694
  * Component display name.
8640
8695
  */
8641
- const COMPONENT_NAME$L = 'InlineList';
8696
+ const COMPONENT_NAME$N = 'InlineList';
8642
8697
 
8643
8698
  /**
8644
8699
  * Component default class name and class prefix.
8645
8700
  */
8646
- const CLASSNAME$M = 'lumx-inline-list';
8701
+ const CLASSNAME$O = 'lumx-inline-list';
8647
8702
  const {
8648
- block: block$G,
8649
- element: element$w
8650
- } = classNames.bem(CLASSNAME$M);
8703
+ block: block$H,
8704
+ element: element$x
8705
+ } = classNames.bem(CLASSNAME$O);
8651
8706
 
8652
8707
  /**
8653
8708
  * Component default props.
8654
8709
  */
8655
- const DEFAULT_PROPS$J = {};
8710
+ const DEFAULT_PROPS$M = {};
8656
8711
 
8657
8712
  /**
8658
8713
  * InlineList component.
@@ -8677,7 +8732,7 @@ const InlineList = forwardRef((props, ref) => {
8677
8732
  jsx("ul", {
8678
8733
  ...forwardedProps,
8679
8734
  ref: ref,
8680
- className: classNames.join(className, block$G({
8735
+ className: classNames.join(className, block$H({
8681
8736
  wrap: Boolean(wrap)
8682
8737
  }), color && classNames.font(color, colorVariant), typography && classNames.typography(typography))
8683
8738
  // Lists with removed bullet style can lose their a11y list role on some browsers
@@ -8691,9 +8746,9 @@ const InlineList = forwardRef((props, ref) => {
8691
8746
  // eslint-disable-next-line jsx-a11y/no-redundant-roles
8692
8747
  jsxs("li", {
8693
8748
  role: "listitem",
8694
- className: element$w('item'),
8749
+ className: element$x('item'),
8695
8750
  children: [index !== 0 && /*#__PURE__*/jsx("span", {
8696
- className: element$w('item-separator'),
8751
+ className: element$x('item-separator'),
8697
8752
  "aria-hidden": "true",
8698
8753
  children: '\u00A0•\u00A0'
8699
8754
  }), child]
@@ -8703,9 +8758,9 @@ const InlineList = forwardRef((props, ref) => {
8703
8758
  })
8704
8759
  );
8705
8760
  });
8706
- InlineList.displayName = COMPONENT_NAME$L;
8707
- InlineList.className = CLASSNAME$M;
8708
- InlineList.defaultProps = DEFAULT_PROPS$J;
8761
+ InlineList.displayName = COMPONENT_NAME$N;
8762
+ InlineList.className = CLASSNAME$O;
8763
+ InlineList.defaultProps = DEFAULT_PROPS$M;
8709
8764
 
8710
8765
  /**
8711
8766
  * InputHelper component.
@@ -8748,16 +8803,16 @@ InputLabel.defaultProps = InputLabel$1.defaultProps;
8748
8803
  /**
8749
8804
  * Component display name.
8750
8805
  */
8751
- const COMPONENT_NAME$K = 'Lightbox';
8806
+ const COMPONENT_NAME$M = 'Lightbox';
8752
8807
 
8753
8808
  /**
8754
8809
  * Component default class name and class prefix.
8755
8810
  */
8756
- const CLASSNAME$L = 'lumx-lightbox';
8811
+ const CLASSNAME$N = 'lumx-lightbox';
8757
8812
  const {
8758
- block: block$F,
8759
- element: element$v
8760
- } = classNames.bem(CLASSNAME$L);
8813
+ block: block$G,
8814
+ element: element$w
8815
+ } = classNames.bem(CLASSNAME$N);
8761
8816
 
8762
8817
  /**
8763
8818
  * Lightbox component.
@@ -8841,7 +8896,7 @@ const Lightbox = forwardRef((props, ref) => {
8841
8896
  "aria-modal": "true",
8842
8897
  role: "dialog",
8843
8898
  tabIndex: -1,
8844
- className: classNames.join(className, block$F({
8899
+ className: classNames.join(className, block$G({
8845
8900
  'is-hidden': !isOpen,
8846
8901
  'is-shown': isOpen || isVisible,
8847
8902
  [`theme-${theme}`]: Boolean(theme)
@@ -8850,7 +8905,7 @@ const Lightbox = forwardRef((props, ref) => {
8850
8905
  zIndex
8851
8906
  },
8852
8907
  children: [closeButtonProps && /*#__PURE__*/jsx("div", {
8853
- className: element$v('close'),
8908
+ className: element$w('close'),
8854
8909
  children: /*#__PURE__*/jsx(IconButton, {
8855
8910
  ...closeButtonProps,
8856
8911
  ref: closeButtonRef,
@@ -8870,7 +8925,7 @@ const Lightbox = forwardRef((props, ref) => {
8870
8925
  childrenRefs: clickAwayRefs,
8871
8926
  children: /*#__PURE__*/jsx("div", {
8872
8927
  ref: childrenRef,
8873
- className: element$v('wrapper'),
8928
+ className: element$w('wrapper'),
8874
8929
  role: "presentation",
8875
8930
  children: children
8876
8931
  })
@@ -8880,8 +8935,8 @@ const Lightbox = forwardRef((props, ref) => {
8880
8935
  })
8881
8936
  });
8882
8937
  });
8883
- Lightbox.displayName = COMPONENT_NAME$K;
8884
- Lightbox.className = CLASSNAME$L;
8938
+ Lightbox.displayName = COMPONENT_NAME$M;
8939
+ Lightbox.className = CLASSNAME$N;
8885
8940
 
8886
8941
  /**
8887
8942
  * Defines the props of the component.
@@ -8890,15 +8945,15 @@ Lightbox.className = CLASSNAME$L;
8890
8945
  /**
8891
8946
  * Component display name.
8892
8947
  */
8893
- const COMPONENT_NAME$J = 'Link';
8948
+ const COMPONENT_NAME$L = 'Link';
8894
8949
 
8895
8950
  /**
8896
8951
  * Component default class name and class prefix.
8897
8952
  */
8898
- const CLASSNAME$K = 'lumx-link';
8953
+ const CLASSNAME$M = 'lumx-link';
8899
8954
  const {
8900
- block: block$E
8901
- } = bem(CLASSNAME$K);
8955
+ block: block$F
8956
+ } = bem(CLASSNAME$M);
8902
8957
 
8903
8958
  /**
8904
8959
  * Link component.
@@ -8927,7 +8982,7 @@ const Link$1 = props => {
8927
8982
  ...forwardedProps,
8928
8983
  handleClick,
8929
8984
  children,
8930
- className: classnames(className, block$E({
8985
+ className: classnames(className, block$F({
8931
8986
  [`color-${color}`]: Boolean(color),
8932
8987
  [`color-variant-${colorVariant}`]: Boolean(colorVariant),
8933
8988
  'has-typography': !!typography$1
@@ -8936,8 +8991,8 @@ const Link$1 = props => {
8936
8991
  };
8937
8992
 
8938
8993
  const {
8939
- element: element$u
8940
- } = classNames.bem(CLASSNAME$K);
8994
+ element: element$v
8995
+ } = classNames.bem(CLASSNAME$M);
8941
8996
 
8942
8997
  /**
8943
8998
  * Defines the props of the component.
@@ -8972,38 +9027,38 @@ const Link = forwardRef((props, ref) => {
8972
9027
  children: wrapChildrenIconWithSpaces(/*#__PURE__*/jsxs(Fragment, {
8973
9028
  children: [leftIcon && /*#__PURE__*/jsx(Icon, {
8974
9029
  icon: leftIcon,
8975
- className: element$u('left-icon')
9030
+ className: element$v('left-icon')
8976
9031
  }), children && /*#__PURE__*/jsx("span", {
8977
- className: element$u('content'),
9032
+ className: element$v('content'),
8978
9033
  children: children
8979
9034
  }), rightIcon && /*#__PURE__*/jsx(Icon, {
8980
9035
  icon: rightIcon,
8981
- className: element$u('right-icon')
9036
+ className: element$v('right-icon')
8982
9037
  })]
8983
9038
  }))
8984
9039
  });
8985
9040
  });
8986
- Link.displayName = COMPONENT_NAME$J;
8987
- Link.className = CLASSNAME$K;
9041
+ Link.displayName = COMPONENT_NAME$L;
9042
+ Link.className = CLASSNAME$M;
8988
9043
 
8989
9044
  /**
8990
9045
  * Component display name.
8991
9046
  */
8992
- const COMPONENT_NAME$I = 'LinkPreview';
9047
+ const COMPONENT_NAME$K = 'LinkPreview';
8993
9048
 
8994
9049
  /**
8995
9050
  * Component default class name and class prefix.
8996
9051
  */
8997
- const CLASSNAME$J = 'lumx-link-preview';
9052
+ const CLASSNAME$L = 'lumx-link-preview';
8998
9053
  const {
8999
- block: block$D,
9000
- element: element$t
9001
- } = classNames.bem(CLASSNAME$J);
9054
+ block: block$E,
9055
+ element: element$u
9056
+ } = classNames.bem(CLASSNAME$L);
9002
9057
 
9003
9058
  /**
9004
9059
  * Component default props.
9005
9060
  */
9006
- const DEFAULT_PROPS$I = {
9061
+ const DEFAULT_PROPS$L = {
9007
9062
  size: Size$1.regular,
9008
9063
  titleHeading: 'h2'
9009
9064
  };
@@ -9023,11 +9078,11 @@ const LinkPreview = forwardRef((props, ref) => {
9023
9078
  link,
9024
9079
  linkAs,
9025
9080
  linkProps,
9026
- size = DEFAULT_PROPS$I.size,
9081
+ size = DEFAULT_PROPS$L.size,
9027
9082
  theme = defaultTheme,
9028
9083
  thumbnailProps,
9029
9084
  title,
9030
- titleHeading = DEFAULT_PROPS$I.titleHeading,
9085
+ titleHeading = DEFAULT_PROPS$L.titleHeading,
9031
9086
  ...forwardedProps
9032
9087
  } = props;
9033
9088
  // Use title heading as title wrapper (see DEFAULT_PROPS for the default value).
@@ -9036,14 +9091,14 @@ const LinkPreview = forwardRef((props, ref) => {
9036
9091
  return /*#__PURE__*/jsx("article", {
9037
9092
  ref: ref,
9038
9093
  ...forwardedProps,
9039
- className: classNames.join(className, block$D({
9094
+ className: classNames.join(className, block$E({
9040
9095
  [`size-${adjustedSize}`]: Boolean(adjustedSize),
9041
9096
  [`theme-${theme}`]: Boolean(theme)
9042
9097
  })),
9043
9098
  children: /*#__PURE__*/jsxs("div", {
9044
- className: element$t('wrapper'),
9099
+ className: element$u('wrapper'),
9045
9100
  children: [thumbnailProps && /*#__PURE__*/jsx("div", {
9046
- className: element$t('thumbnail'),
9101
+ className: element$u('thumbnail'),
9047
9102
  children: /*#__PURE__*/jsx(Thumbnail, {
9048
9103
  ...thumbnailProps,
9049
9104
  linkAs: linkAs,
@@ -9058,9 +9113,9 @@ const LinkPreview = forwardRef((props, ref) => {
9058
9113
  fillHeight: true
9059
9114
  })
9060
9115
  }), /*#__PURE__*/jsxs("div", {
9061
- className: element$t('container'),
9116
+ className: element$u('container'),
9062
9117
  children: [title && /*#__PURE__*/jsx(TitleHeading, {
9063
- className: element$t('title'),
9118
+ className: element$u('title'),
9064
9119
  children: /*#__PURE__*/jsx(Link, {
9065
9120
  ...linkProps,
9066
9121
  linkAs: linkAs,
@@ -9071,14 +9126,14 @@ const LinkPreview = forwardRef((props, ref) => {
9071
9126
  children: title
9072
9127
  })
9073
9128
  }), description && /*#__PURE__*/jsx("p", {
9074
- className: element$t('description'),
9129
+ className: element$u('description'),
9075
9130
  children: description
9076
9131
  }), /*#__PURE__*/jsx("div", {
9077
- className: element$t('link'),
9132
+ className: element$u('link'),
9078
9133
  children: /*#__PURE__*/jsx(Link, {
9079
9134
  ...linkProps,
9080
9135
  linkAs: linkAs,
9081
- className: classNames.join(element$t('link'), linkProps?.className),
9136
+ className: classNames.join(element$u('link'), linkProps?.className),
9082
9137
  target: "_blank",
9083
9138
  href: link,
9084
9139
  color: theme === Theme$1.light ? ColorPalette$1.primary : ColorPalette$1.light,
@@ -9093,28 +9148,108 @@ const LinkPreview = forwardRef((props, ref) => {
9093
9148
  })
9094
9149
  });
9095
9150
  });
9096
- LinkPreview.displayName = COMPONENT_NAME$I;
9097
- LinkPreview.className = CLASSNAME$J;
9098
- LinkPreview.defaultProps = DEFAULT_PROPS$I;
9151
+ LinkPreview.displayName = COMPONENT_NAME$K;
9152
+ LinkPreview.className = CLASSNAME$L;
9153
+ LinkPreview.defaultProps = DEFAULT_PROPS$L;
9154
+
9155
+ /**
9156
+ * ListItemAction props.
9157
+ */
9158
+
9159
+ /**
9160
+ * Component display name.
9161
+ */
9162
+ const COMPONENT_NAME$J = 'ListItemAction';
9163
+
9164
+ /**
9165
+ * Component classname (used by action area CSS pattern).
9166
+ */
9167
+ const CLASSNAME$K = 'lumx-action-area__action';
9168
+ const DEFAULT_PROPS$K = {};
9169
+
9170
+ /**
9171
+ * ListItemAction component.
9172
+ *
9173
+ * Renders a button or link with action area classes.
9174
+ * When placed as a child of ListItem, it activates the action area pattern:
9175
+ * the entire list item becomes visually clickable, while other interactive
9176
+ * elements (in `before`/`after` slots) remain independently clickable.
9177
+ */
9178
+ const ListItemAction$1 = props => {
9179
+ const {
9180
+ children,
9181
+ className,
9182
+ as: Element = 'button',
9183
+ handleClick,
9184
+ ...forwardedProps
9185
+ } = props;
9186
+ return RawClickable({
9187
+ as: Element,
9188
+ ...forwardedProps,
9189
+ className: classnames(className, actionArea.action({
9190
+ 'has-overlay': true,
9191
+ 'focus-inset': true
9192
+ })),
9193
+ handleClick,
9194
+ children
9195
+ });
9196
+ };
9197
+
9198
+ /** Same as `React.forwardRef` but inferring Ref type from the `as` prop. */
9199
+ const forwardRefPolymorphic = React__default.forwardRef;
9200
+
9201
+ /**
9202
+ * ListItem.Action props.
9203
+ */
9204
+
9205
+ /**
9206
+ * ListItem.Action sub-component.
9207
+ *
9208
+ * Renders a button or link with action area classes.
9209
+ * When placed as a child of ListItem, it activates the action area pattern:
9210
+ * the entire list item becomes visually clickable, while other interactive
9211
+ * elements (in `before`/`after` slots) remain independently clickable.
9212
+ *
9213
+ * @param props Component props.
9214
+ * @param ref Component ref.
9215
+ * @return React element.
9216
+ */
9217
+ const ListItemAction = Object.assign(forwardRefPolymorphic((props, ref) => {
9218
+ const {
9219
+ children,
9220
+ onClick,
9221
+ ...forwardedProps
9222
+ } = props;
9223
+ return ListItemAction$1({
9224
+ ...forwardedProps,
9225
+ handleClick: onClick,
9226
+ ref,
9227
+ children
9228
+ });
9229
+ }), {
9230
+ displayName: COMPONENT_NAME$J,
9231
+ className: CLASSNAME$K,
9232
+ defaultProps: DEFAULT_PROPS$K
9233
+ });
9099
9234
 
9100
9235
  /**
9101
9236
  * Component display name.
9102
9237
  */
9103
- const COMPONENT_NAME$H = 'ListItem';
9238
+ const COMPONENT_NAME$I = 'ListItem';
9104
9239
 
9105
9240
  /**
9106
9241
  * Component default class name and class prefix.
9107
9242
  */
9108
- const CLASSNAME$I = 'lumx-list-item';
9243
+ const CLASSNAME$J = 'lumx-list-item';
9109
9244
  const {
9110
- block: block$C,
9111
- element: element$s
9112
- } = classNames.bem(CLASSNAME$I);
9245
+ block: block$D,
9246
+ element: element$t
9247
+ } = classNames.bem(CLASSNAME$J);
9113
9248
 
9114
9249
  /**
9115
9250
  * Component default props.
9116
9251
  */
9117
- const DEFAULT_PROPS$H = {
9252
+ const DEFAULT_PROPS$J = {
9118
9253
  size: Size$1.regular
9119
9254
  };
9120
9255
 
@@ -9137,7 +9272,7 @@ function isClickable({
9137
9272
  * @param ref Component ref.
9138
9273
  * @return React element.
9139
9274
  */
9140
- const ListItem = forwardRef((props, ref) => {
9275
+ const _ListItem = forwardRef((props, ref) => {
9141
9276
  const {
9142
9277
  isAnyDisabled,
9143
9278
  disabledStateProps,
@@ -9154,62 +9289,75 @@ const ListItem = forwardRef((props, ref) => {
9154
9289
  linkProps = {},
9155
9290
  linkRef,
9156
9291
  onItemSelected,
9157
- size = DEFAULT_PROPS$H.size,
9292
+ onClick,
9293
+ size = DEFAULT_PROPS$J.size,
9158
9294
  ...forwardedProps
9159
9295
  } = otherProps;
9160
9296
  const clickable = isClickable({
9161
9297
  linkAs,
9162
9298
  linkProps,
9163
- onItemSelected
9299
+ onItemSelected: onItemSelected || onClick
9164
9300
  });
9165
9301
  return /*#__PURE__*/jsx("li", {
9166
9302
  ref: ref,
9167
9303
  ...forwardedProps,
9168
- className: classNames.join(className, block$C({
9304
+ className: classNames.join(className, block$D({
9169
9305
  [`size-${size}`]: Boolean(size)
9170
9306
  })),
9171
9307
  children: RawClickable({
9172
9308
  as: clickable ? linkAs || (linkProps.href ? 'a' : 'button') : 'div',
9173
9309
  ...disabledStateProps,
9174
9310
  ...linkProps,
9175
- className: classNames.join(element$s(clickable ? 'link' : 'wrapper', {
9311
+ className: classNames.join(element$t(clickable ? 'link' : 'wrapper', {
9176
9312
  'is-highlighted': isHighlighted,
9177
9313
  'is-selected': isSelected,
9178
9314
  'is-disabled': isAnyDisabled
9179
9315
  })),
9180
- handleClick: onItemSelected,
9316
+ handleClick(event) {
9317
+ onItemSelected?.(event);
9318
+ onClick?.(event);
9319
+ },
9181
9320
  ref: linkRef,
9182
9321
  children: /*#__PURE__*/jsxs(Fragment, {
9183
9322
  children: [before && /*#__PURE__*/jsx("div", {
9184
- className: element$s('before'),
9323
+ className: element$t('before'),
9185
9324
  children: before
9186
9325
  }), /*#__PURE__*/jsx("div", {
9187
- className: element$s('content'),
9326
+ className: element$t('content'),
9188
9327
  children: children
9189
9328
  }), after && /*#__PURE__*/jsx("div", {
9190
- className: element$s('after'),
9329
+ className: element$t('after'),
9191
9330
  children: after
9192
9331
  })]
9193
9332
  })
9194
9333
  })
9195
9334
  });
9196
9335
  });
9197
- ListItem.displayName = COMPONENT_NAME$H;
9198
- ListItem.className = CLASSNAME$I;
9199
- ListItem.defaultProps = DEFAULT_PROPS$H;
9336
+ _ListItem.displayName = COMPONENT_NAME$I;
9337
+ _ListItem.className = CLASSNAME$J;
9338
+ _ListItem.defaultProps = DEFAULT_PROPS$J;
9339
+
9340
+ /**
9341
+ * ListItem component with Action sub-component.
9342
+ */
9343
+ const ListItem = Object.assign(_ListItem, {
9344
+ /** Sub-component that renders the default action (button or link) for the action area pattern. */
9345
+ Action: ListItemAction
9346
+ });
9200
9347
 
9201
9348
  /**
9202
9349
  * Component display name.
9203
9350
  */
9204
- const COMPONENT_NAME$G = 'ListDivider';
9351
+ const COMPONENT_NAME$H = 'ListDivider';
9205
9352
 
9206
9353
  /**
9207
9354
  * Component default class name and class prefix.
9208
9355
  */
9209
- const CLASSNAME$H = 'lumx-list-divider';
9356
+ const CLASSNAME$I = 'lumx-list-divider';
9210
9357
 
9211
9358
  /**
9212
9359
  * ListDivider component.
9360
+ * Purely decorative, consider a `ListSection` with label for a better list structure.
9213
9361
  *
9214
9362
  * @param props Component props.
9215
9363
  * @param ref Component ref.
@@ -9221,13 +9369,100 @@ const ListDivider = forwardRef((props, ref) => {
9221
9369
  ...forwardedProps
9222
9370
  } = props;
9223
9371
  return /*#__PURE__*/jsx("li", {
9372
+ ref: ref,
9373
+ role: "none",
9374
+ ...forwardedProps,
9375
+ className: classNames.join(className, CLASSNAME$I)
9376
+ });
9377
+ });
9378
+ ListDivider.displayName = COMPONENT_NAME$H;
9379
+ ListDivider.className = CLASSNAME$I;
9380
+
9381
+ /**
9382
+ * Component display name.
9383
+ */
9384
+ const COMPONENT_NAME$G = 'ListSection';
9385
+
9386
+ /**
9387
+ * Component default class name and class prefix.
9388
+ */
9389
+ const CLASSNAME$H = 'lumx-list-section';
9390
+ const {
9391
+ block: block$C,
9392
+ element: element$s
9393
+ } = bem(CLASSNAME$H);
9394
+
9395
+ /**
9396
+ * Component default props.
9397
+ */
9398
+ const DEFAULT_PROPS$I = {};
9399
+
9400
+ /**
9401
+ * ListSection component.
9402
+ *
9403
+ * @param props Component props.
9404
+ * @return JSX element.
9405
+ */
9406
+ const ListSection$1 = props => {
9407
+ const {
9408
+ children,
9409
+ className,
9410
+ label,
9411
+ icon,
9412
+ itemsWrapperProps,
9413
+ id,
9414
+ ref,
9415
+ Text,
9416
+ ...forwardedProps
9417
+ } = props;
9418
+ const labelId = `${id}-label`;
9419
+ return /*#__PURE__*/jsxs("li", {
9224
9420
  ref: ref,
9225
9421
  ...forwardedProps,
9226
- className: classNames.join(className, CLASSNAME$H)
9422
+ className: classnames(className, block$C()),
9423
+ children: [label && /*#__PURE__*/jsxs(Text, {
9424
+ as: "p",
9425
+ typography: "overline",
9426
+ className: element$s('title'),
9427
+ id: labelId,
9428
+ children: [icon && Icon$1({
9429
+ icon
9430
+ }), label]
9431
+ }), /*#__PURE__*/jsx("ul", {
9432
+ ...itemsWrapperProps,
9433
+ className: element$s('items'),
9434
+ "aria-labelledby": label ? labelId : undefined,
9435
+ children: children
9436
+ })]
9437
+ });
9438
+ };
9439
+ ListSection$1.displayName = COMPONENT_NAME$G;
9440
+ ListSection$1.className = CLASSNAME$H;
9441
+ ListSection$1.defaultProps = DEFAULT_PROPS$I;
9442
+
9443
+ /**
9444
+ * Defines the props of the component.
9445
+ */
9446
+
9447
+ /**
9448
+ * ListSection component.
9449
+ *
9450
+ * @param props Component props.
9451
+ * @param ref Component ref.
9452
+ * @return React element.
9453
+ */
9454
+ const ListSection = forwardRef((props, ref) => {
9455
+ const id = useId();
9456
+ return ListSection$1({
9457
+ ...props,
9458
+ ref,
9459
+ id,
9460
+ Text
9227
9461
  });
9228
9462
  });
9229
- ListDivider.displayName = COMPONENT_NAME$G;
9230
- ListDivider.className = CLASSNAME$H;
9463
+ ListSection.displayName = COMPONENT_NAME$G;
9464
+ ListSection.className = CLASSNAME$H;
9465
+ ListSection.defaultProps = DEFAULT_PROPS$I;
9231
9466
 
9232
9467
  /**
9233
9468
  * Component display name.
@@ -9241,6 +9476,7 @@ const CLASSNAME$G = 'lumx-list-subheader';
9241
9476
 
9242
9477
  /**
9243
9478
  * ListSubheader component.
9479
+ * @deprecated ListSubheader produces improper list structure. use ListSection instead.
9244
9480
  *
9245
9481
  * @param props Component props.
9246
9482
  * @param ref Component ref.
@@ -9384,7 +9620,7 @@ const {
9384
9620
  /**
9385
9621
  * Component default props.
9386
9622
  */
9387
- const DEFAULT_PROPS$G = {};
9623
+ const DEFAULT_PROPS$H = {};
9388
9624
 
9389
9625
  /**
9390
9626
  * Mosaic component.
@@ -9451,7 +9687,7 @@ const Mosaic = forwardRef((props, ref) => {
9451
9687
  });
9452
9688
  Mosaic.displayName = COMPONENT_NAME$D;
9453
9689
  Mosaic.className = CLASSNAME$E;
9454
- Mosaic.defaultProps = DEFAULT_PROPS$G;
9690
+ Mosaic.defaultProps = DEFAULT_PROPS$H;
9455
9691
 
9456
9692
  const NavigationContext = /*#__PURE__*/createContext({
9457
9693
  orientation: Orientation$1.vertical
@@ -9568,9 +9804,6 @@ const NavigationSection = forwardRef((props, ref) => {
9568
9804
  NavigationSection.displayName = COMPONENT_NAME$C;
9569
9805
  NavigationSection.className = CLASSNAME$D;
9570
9806
 
9571
- /** Same as `React.forwardRef` but inferring Ref type from the `as` prop. */
9572
- const forwardRefPolymorphic = React__default.forwardRef;
9573
-
9574
9807
  const {
9575
9808
  block: block$z,
9576
9809
  element: element$p
@@ -9652,7 +9885,7 @@ const {
9652
9885
  /**
9653
9886
  * Component default props
9654
9887
  */
9655
- const DEFAULT_PROPS$F = {
9888
+ const DEFAULT_PROPS$G = {
9656
9889
  orientation: Orientation$1.vertical
9657
9890
  };
9658
9891
  const Navigation = forwardRef((props, ref) => {
@@ -9661,7 +9894,7 @@ const Navigation = forwardRef((props, ref) => {
9661
9894
  children,
9662
9895
  className,
9663
9896
  theme = defaultTheme,
9664
- orientation = DEFAULT_PROPS$F.orientation,
9897
+ orientation = DEFAULT_PROPS$G.orientation,
9665
9898
  ...forwardedProps
9666
9899
  } = props;
9667
9900
  return /*#__PURE__*/jsx(ThemeProvider, {
@@ -9687,7 +9920,7 @@ const Navigation = forwardRef((props, ref) => {
9687
9920
  });
9688
9921
  Navigation.displayName = COMPONENT_NAME$B;
9689
9922
  Navigation.className = CLASSNAME$C;
9690
- Navigation.defaultProps = DEFAULT_PROPS$F;
9923
+ Navigation.defaultProps = DEFAULT_PROPS$G;
9691
9924
 
9692
9925
  // Sub components
9693
9926
  Navigation.Section = NavigationSection;
@@ -9732,7 +9965,7 @@ const {
9732
9965
  /**
9733
9966
  * Component default props.
9734
9967
  */
9735
- const DEFAULT_PROPS$E = {
9968
+ const DEFAULT_PROPS$F = {
9736
9969
  zIndex: 9999,
9737
9970
  usePortal: true
9738
9971
  };
@@ -9756,8 +9989,8 @@ const Notification = forwardRef((props, ref) => {
9756
9989
  onClick,
9757
9990
  theme = defaultTheme,
9758
9991
  type,
9759
- zIndex = DEFAULT_PROPS$E.zIndex,
9760
- usePortal = DEFAULT_PROPS$E.usePortal,
9992
+ zIndex = DEFAULT_PROPS$F.zIndex,
9993
+ usePortal = DEFAULT_PROPS$F.usePortal,
9761
9994
  style,
9762
9995
  ...forwardedProps
9763
9996
  } = props;
@@ -9822,7 +10055,7 @@ const Notification = forwardRef((props, ref) => {
9822
10055
  });
9823
10056
  Notification.displayName = COMPONENT_NAME$A;
9824
10057
  Notification.className = CLASSNAME$B;
9825
- Notification.defaultProps = DEFAULT_PROPS$E;
10058
+ Notification.defaultProps = DEFAULT_PROPS$F;
9826
10059
 
9827
10060
  /**
9828
10061
  * PopoverDialog props.
@@ -9842,7 +10075,7 @@ const CLASSNAME$A = 'lumx-popover-dialog';
9842
10075
  /**
9843
10076
  * Component default props.
9844
10077
  */
9845
- const DEFAULT_PROPS$D = {};
10078
+ const DEFAULT_PROPS$E = {};
9846
10079
 
9847
10080
  /**
9848
10081
  * PopoverDialog component.
@@ -9882,7 +10115,7 @@ const PopoverDialog = forwardRef((props, ref) => {
9882
10115
  });
9883
10116
  PopoverDialog.displayName = COMPONENT_NAME$z;
9884
10117
  PopoverDialog.className = CLASSNAME$A;
9885
- PopoverDialog.defaultProps = DEFAULT_PROPS$D;
10118
+ PopoverDialog.defaultProps = DEFAULT_PROPS$E;
9886
10119
 
9887
10120
  /**
9888
10121
  * Component display name.
@@ -9901,7 +10134,7 @@ const {
9901
10134
  /**
9902
10135
  * Component default props.
9903
10136
  */
9904
- const DEFAULT_PROPS$C = {
10137
+ const DEFAULT_PROPS$D = {
9905
10138
  orientation: Orientation$1.horizontal
9906
10139
  };
9907
10140
 
@@ -9921,7 +10154,7 @@ const PostBlock = forwardRef((props, ref) => {
9921
10154
  className,
9922
10155
  meta,
9923
10156
  onClick,
9924
- orientation = DEFAULT_PROPS$C.orientation,
10157
+ orientation = DEFAULT_PROPS$D.orientation,
9925
10158
  tags,
9926
10159
  text,
9927
10160
  theme = defaultTheme,
@@ -9983,7 +10216,7 @@ const PostBlock = forwardRef((props, ref) => {
9983
10216
  });
9984
10217
  PostBlock.displayName = COMPONENT_NAME$y;
9985
10218
  PostBlock.className = CLASSNAME$z;
9986
- PostBlock.defaultProps = DEFAULT_PROPS$C;
10219
+ PostBlock.defaultProps = DEFAULT_PROPS$D;
9987
10220
 
9988
10221
  /**
9989
10222
  * Component display name.
@@ -10002,7 +10235,7 @@ const {
10002
10235
  /**
10003
10236
  * Component default props.
10004
10237
  */
10005
- const DEFAULT_PROPS$B = {};
10238
+ const DEFAULT_PROPS$C = {};
10006
10239
 
10007
10240
  /**
10008
10241
  * ProgressLinear component.
@@ -10056,7 +10289,7 @@ const ProgressLinear = forwardRef((props, ref) => {
10056
10289
  });
10057
10290
  ProgressLinear.displayName = COMPONENT_NAME$x;
10058
10291
  ProgressLinear.className = CLASSNAME$y;
10059
- ProgressLinear.defaultProps = DEFAULT_PROPS$B;
10292
+ ProgressLinear.defaultProps = DEFAULT_PROPS$C;
10060
10293
 
10061
10294
  /* eslint-disable react/no-unknown-property */
10062
10295
 
@@ -10077,7 +10310,7 @@ const {
10077
10310
  /**
10078
10311
  * Component default props.
10079
10312
  */
10080
- const DEFAULT_PROPS$A = {
10313
+ const DEFAULT_PROPS$B = {
10081
10314
  size: Size.m,
10082
10315
  display: 'block'
10083
10316
  };
@@ -10092,8 +10325,8 @@ const ProgressCircular$1 = props => {
10092
10325
  const {
10093
10326
  className,
10094
10327
  theme,
10095
- size = DEFAULT_PROPS$A.size,
10096
- display = DEFAULT_PROPS$A.display,
10328
+ size = DEFAULT_PROPS$B.size,
10329
+ display = DEFAULT_PROPS$B.display,
10097
10330
  ref,
10098
10331
  circleProps,
10099
10332
  svgProps,
@@ -10158,7 +10391,7 @@ const ProgressCircular = forwardRef((props, ref) => {
10158
10391
  });
10159
10392
  ProgressCircular.displayName = COMPONENT_NAME$w;
10160
10393
  ProgressCircular.className = CLASSNAME$x;
10161
- ProgressCircular.defaultProps = DEFAULT_PROPS$A;
10394
+ ProgressCircular.defaultProps = DEFAULT_PROPS$B;
10162
10395
 
10163
10396
  const ProgressVariant = {
10164
10397
  linear: 'linear',
@@ -10185,7 +10418,7 @@ const {
10185
10418
  /**
10186
10419
  * Component default props.
10187
10420
  */
10188
- const DEFAULT_PROPS$z = {
10421
+ const DEFAULT_PROPS$A = {
10189
10422
  variant: ProgressVariant.circular
10190
10423
  };
10191
10424
 
@@ -10202,7 +10435,7 @@ const Progress = forwardRef((props, ref) => {
10202
10435
  const {
10203
10436
  className,
10204
10437
  theme = defaultTheme,
10205
- variant = DEFAULT_PROPS$z.variant,
10438
+ variant = DEFAULT_PROPS$A.variant,
10206
10439
  ...forwardedProps
10207
10440
  } = props;
10208
10441
  return /*#__PURE__*/jsxs("div", {
@@ -10221,7 +10454,7 @@ const Progress = forwardRef((props, ref) => {
10221
10454
  });
10222
10455
  Progress.displayName = COMPONENT_NAME$v;
10223
10456
  Progress.className = CLASSNAME$w;
10224
- Progress.defaultProps = DEFAULT_PROPS$z;
10457
+ Progress.defaultProps = DEFAULT_PROPS$A;
10225
10458
 
10226
10459
  const INIT_STATE = {
10227
10460
  isLazy: true,
@@ -10348,7 +10581,7 @@ const useTabProviderContextState = () => {
10348
10581
  return context?.[0];
10349
10582
  };
10350
10583
 
10351
- const DEFAULT_PROPS$y = {
10584
+ const DEFAULT_PROPS$z = {
10352
10585
  isLazy: INIT_STATE.isLazy,
10353
10586
  shouldActivateOnFocus: INIT_STATE.shouldActivateOnFocus
10354
10587
  };
@@ -10377,7 +10610,7 @@ const ProgressTrackerProvider = props => {
10377
10610
  dispatch({
10378
10611
  type: 'update',
10379
10612
  payload: {
10380
- ...DEFAULT_PROPS$y,
10613
+ ...DEFAULT_PROPS$z,
10381
10614
  ...propState,
10382
10615
  activeTabIndex: propState.activeStepIndex || INIT_STATE.activeTabIndex
10383
10616
  }
@@ -10400,7 +10633,7 @@ const ProgressTrackerProvider = props => {
10400
10633
  children: children
10401
10634
  });
10402
10635
  };
10403
- ProgressTrackerProvider.defaultProps = DEFAULT_PROPS$y;
10636
+ ProgressTrackerProvider.defaultProps = DEFAULT_PROPS$z;
10404
10637
 
10405
10638
  const useRovingTabIndex = ({
10406
10639
  parentRef,
@@ -10492,7 +10725,7 @@ const {
10492
10725
  /**
10493
10726
  * Component default props.
10494
10727
  */
10495
- const DEFAULT_PROPS$x = {};
10728
+ const DEFAULT_PROPS$y = {};
10496
10729
 
10497
10730
  /**
10498
10731
  * ProgressTracker component.
@@ -10548,7 +10781,7 @@ const ProgressTracker = forwardRef((props, ref) => {
10548
10781
  });
10549
10782
  ProgressTracker.displayName = COMPONENT_NAME$u;
10550
10783
  ProgressTracker.className = CLASSNAME$v;
10551
- ProgressTracker.defaultProps = DEFAULT_PROPS$x;
10784
+ ProgressTracker.defaultProps = DEFAULT_PROPS$y;
10552
10785
 
10553
10786
  /**
10554
10787
  * Component display name.
@@ -10567,7 +10800,7 @@ const {
10567
10800
  /**
10568
10801
  * Component default props.
10569
10802
  */
10570
- const DEFAULT_PROPS$w = {};
10803
+ const DEFAULT_PROPS$x = {};
10571
10804
 
10572
10805
  /**
10573
10806
  * ProgressTrackerStep component.
@@ -10662,7 +10895,7 @@ const ProgressTrackerStep = forwardRef((props, ref) => {
10662
10895
  });
10663
10896
  ProgressTrackerStep.displayName = COMPONENT_NAME$t;
10664
10897
  ProgressTrackerStep.className = CLASSNAME$u;
10665
- ProgressTrackerStep.defaultProps = DEFAULT_PROPS$w;
10898
+ ProgressTrackerStep.defaultProps = DEFAULT_PROPS$x;
10666
10899
 
10667
10900
  /**
10668
10901
  * Component display name.
@@ -10680,7 +10913,7 @@ const {
10680
10913
  /**
10681
10914
  * Component default props.
10682
10915
  */
10683
- const DEFAULT_PROPS$v = {};
10916
+ const DEFAULT_PROPS$w = {};
10684
10917
 
10685
10918
  /**
10686
10919
  * ProgressTrackerStepPanel component.
@@ -10716,7 +10949,7 @@ const ProgressTrackerStepPanel = forwardRef((props, ref) => {
10716
10949
  });
10717
10950
  ProgressTrackerStepPanel.displayName = COMPONENT_NAME$s;
10718
10951
  ProgressTrackerStepPanel.className = CLASSNAME$t;
10719
- ProgressTrackerStepPanel.defaultProps = DEFAULT_PROPS$v;
10952
+ ProgressTrackerStepPanel.defaultProps = DEFAULT_PROPS$w;
10720
10953
 
10721
10954
  /**
10722
10955
  * Component display name.
@@ -10819,7 +11052,7 @@ const RadioButton$1 = props => {
10819
11052
  /**
10820
11053
  * Component default props.
10821
11054
  */
10822
- const DEFAULT_PROPS$u = {};
11055
+ const DEFAULT_PROPS$v = {};
10823
11056
 
10824
11057
  /**
10825
11058
  * RadioButton component.
@@ -10875,7 +11108,7 @@ const RadioButton = forwardRef((props, ref) => {
10875
11108
  });
10876
11109
  RadioButton.displayName = COMPONENT_NAME$r;
10877
11110
  RadioButton.className = CLASSNAME$s;
10878
- RadioButton.defaultProps = DEFAULT_PROPS$u;
11111
+ RadioButton.defaultProps = DEFAULT_PROPS$v;
10879
11112
 
10880
11113
  /**
10881
11114
  * Component display name.
@@ -10890,7 +11123,7 @@ const CLASSNAME$r = 'lumx-radio-group';
10890
11123
  /**
10891
11124
  * Component default props.
10892
11125
  */
10893
- const DEFAULT_PROPS$t = {};
11126
+ const DEFAULT_PROPS$u = {};
10894
11127
 
10895
11128
  /**
10896
11129
  * RadioGroup component.
@@ -10914,7 +11147,7 @@ const RadioGroup$1 = props => {
10914
11147
  };
10915
11148
  RadioGroup$1.displayName = COMPONENT_NAME$q;
10916
11149
  RadioGroup$1.className = CLASSNAME$r;
10917
- RadioGroup$1.defaultProps = DEFAULT_PROPS$t;
11150
+ RadioGroup$1.defaultProps = DEFAULT_PROPS$u;
10918
11151
 
10919
11152
  /**
10920
11153
  * Defines the props of the component.
@@ -11098,7 +11331,7 @@ const {
11098
11331
  } = classNames.bem(CLASSNAME$p);
11099
11332
 
11100
11333
  /** The default value of props. */
11101
- const DEFAULT_PROPS$s = {
11334
+ const DEFAULT_PROPS$t = {
11102
11335
  selectedValueRender: choice => choice,
11103
11336
  variant: SelectVariant.input
11104
11337
  };
@@ -11221,7 +11454,7 @@ const Select = forwardRef((props, ref) => {
11221
11454
  const isEmpty$1 = isEmpty(props.value);
11222
11455
  const hasInputClear = props.onClear && props.clearButtonProps && !isEmpty$1;
11223
11456
  return WithSelectContext(SelectField, {
11224
- ...DEFAULT_PROPS$s,
11457
+ ...DEFAULT_PROPS$t,
11225
11458
  ...props,
11226
11459
  className: classNames.join(props.className, block$n({
11227
11460
  'has-input-clear': hasInputClear,
@@ -11233,7 +11466,7 @@ const Select = forwardRef((props, ref) => {
11233
11466
  });
11234
11467
  Select.displayName = COMPONENT_NAME$p;
11235
11468
  Select.className = CLASSNAME$p;
11236
- Select.defaultProps = DEFAULT_PROPS$s;
11469
+ Select.defaultProps = DEFAULT_PROPS$t;
11237
11470
  Select.className = CLASSNAME$p;
11238
11471
 
11239
11472
  /** The display name of the component. */
@@ -11247,7 +11480,7 @@ const {
11247
11480
  } = classNames.bem(CLASSNAME$o);
11248
11481
 
11249
11482
  /** The default value of props. */
11250
- const DEFAULT_PROPS$r = {
11483
+ const DEFAULT_PROPS$s = {
11251
11484
  selectedChipRender(choice, index, onClear, isDisabled, theme) {
11252
11485
  const onClick = event => onClear && onClear(event, choice);
11253
11486
  return /*#__PURE__*/jsx(Chip, {
@@ -11375,7 +11608,7 @@ const SelectMultipleField = props => {
11375
11608
  */
11376
11609
  const SelectMultiple = forwardRef((props, ref) => {
11377
11610
  return WithSelectContext(SelectMultipleField, {
11378
- ...DEFAULT_PROPS$r,
11611
+ ...DEFAULT_PROPS$s,
11379
11612
  ...props,
11380
11613
  className: classNames.join(props.className, block$m({
11381
11614
  'has-multiple': !props.isEmpty
@@ -11386,7 +11619,7 @@ const SelectMultiple = forwardRef((props, ref) => {
11386
11619
  });
11387
11620
  SelectMultiple.displayName = COMPONENT_NAME$o;
11388
11621
  SelectMultiple.className = CLASSNAME$o;
11389
- SelectMultiple.defaultProps = DEFAULT_PROPS$r;
11622
+ SelectMultiple.defaultProps = DEFAULT_PROPS$s;
11390
11623
 
11391
11624
  /**
11392
11625
  * Component display name.
@@ -11441,7 +11674,7 @@ const {
11441
11674
  /**
11442
11675
  * Component default props.
11443
11676
  */
11444
- const DEFAULT_PROPS$q = {
11677
+ const DEFAULT_PROPS$r = {
11445
11678
  emphasis: Emphasis$1.high,
11446
11679
  closeMode: 'unmount'
11447
11680
  };
@@ -11457,7 +11690,7 @@ const SideNavigationItem = forwardRef((props, ref) => {
11457
11690
  const {
11458
11691
  children,
11459
11692
  className,
11460
- emphasis = DEFAULT_PROPS$q.emphasis,
11693
+ emphasis = DEFAULT_PROPS$r.emphasis,
11461
11694
  icon,
11462
11695
  isOpen,
11463
11696
  isSelected,
@@ -11467,7 +11700,7 @@ const SideNavigationItem = forwardRef((props, ref) => {
11467
11700
  onActionClick,
11468
11701
  onClick,
11469
11702
  toggleButtonProps,
11470
- closeMode = DEFAULT_PROPS$q.closeMode,
11703
+ closeMode = DEFAULT_PROPS$r.closeMode,
11471
11704
  ...forwardedProps
11472
11705
  } = props;
11473
11706
  const content = children && Children.toArray(children).filter(isComponent(SideNavigationItem));
@@ -11544,7 +11777,7 @@ const SideNavigationItem = forwardRef((props, ref) => {
11544
11777
  });
11545
11778
  SideNavigationItem.displayName = COMPONENT_NAME$m;
11546
11779
  SideNavigationItem.className = CLASSNAME$m;
11547
- SideNavigationItem.defaultProps = DEFAULT_PROPS$q;
11780
+ SideNavigationItem.defaultProps = DEFAULT_PROPS$r;
11548
11781
 
11549
11782
  /**
11550
11783
  * Component display name.
@@ -11615,7 +11848,7 @@ const {
11615
11848
  /**
11616
11849
  * Component default props.
11617
11850
  */
11618
- const DEFAULT_PROPS$p = {
11851
+ const DEFAULT_PROPS$q = {
11619
11852
  variant: SkeletonRectangleVariant.squared
11620
11853
  };
11621
11854
 
@@ -11631,7 +11864,7 @@ const SkeletonRectangle$1 = props => {
11631
11864
  className,
11632
11865
  height,
11633
11866
  theme,
11634
- variant = DEFAULT_PROPS$p.variant,
11867
+ variant = DEFAULT_PROPS$q.variant,
11635
11868
  width,
11636
11869
  color,
11637
11870
  ref,
@@ -11706,7 +11939,7 @@ const SkeletonTypography$1 = props => {
11706
11939
  * Defines the props of the component.
11707
11940
  */
11708
11941
 
11709
- const DEFAULT_PROPS$o = {};
11942
+ const DEFAULT_PROPS$p = {};
11710
11943
 
11711
11944
  /**
11712
11945
  * SkeletonCircle component.
@@ -11734,14 +11967,14 @@ const SkeletonCircle = forwardRef((props, ref) => {
11734
11967
  });
11735
11968
  });
11736
11969
  SkeletonCircle.displayName = COMPONENT_NAME$l;
11737
- SkeletonCircle.defaultProps = DEFAULT_PROPS$o;
11970
+ SkeletonCircle.defaultProps = DEFAULT_PROPS$p;
11738
11971
  SkeletonCircle.className = CLASSNAME$l;
11739
11972
 
11740
11973
  /**
11741
11974
  * Defines the props of the component.
11742
11975
  */
11743
11976
 
11744
- const DEFAULT_PROPS$n = DEFAULT_PROPS$p;
11977
+ const DEFAULT_PROPS$o = DEFAULT_PROPS$q;
11745
11978
 
11746
11979
  /**
11747
11980
  * SkeletonRectangle component.
@@ -11757,7 +11990,7 @@ const SkeletonRectangle = forwardRef((props, ref) => {
11757
11990
  className,
11758
11991
  height,
11759
11992
  theme = defaultTheme,
11760
- variant = DEFAULT_PROPS$n.variant,
11993
+ variant = DEFAULT_PROPS$o.variant,
11761
11994
  width,
11762
11995
  color,
11763
11996
  ...forwardedProps
@@ -11776,13 +12009,13 @@ const SkeletonRectangle = forwardRef((props, ref) => {
11776
12009
  });
11777
12010
  SkeletonRectangle.displayName = COMPONENT_NAME$k;
11778
12011
  SkeletonRectangle.className = CLASSNAME$k;
11779
- SkeletonRectangle.defaultProps = DEFAULT_PROPS$n;
12012
+ SkeletonRectangle.defaultProps = DEFAULT_PROPS$o;
11780
12013
 
11781
12014
  /**
11782
12015
  * Defines the props of the component.
11783
12016
  */
11784
12017
 
11785
- const DEFAULT_PROPS$m = {};
12018
+ const DEFAULT_PROPS$n = {};
11786
12019
 
11787
12020
  /**
11788
12021
  * SkeletonTypography component.
@@ -11812,7 +12045,7 @@ const SkeletonTypography = forwardRef((props, ref) => {
11812
12045
  });
11813
12046
  });
11814
12047
  SkeletonTypography.displayName = COMPONENT_NAME$j;
11815
- SkeletonTypography.defaultProps = DEFAULT_PROPS$m;
12048
+ SkeletonTypography.defaultProps = DEFAULT_PROPS$n;
11816
12049
  SkeletonTypography.className = CLASSNAME$j;
11817
12050
 
11818
12051
  const useEnhancedEffect = typeof window !== 'undefined' ? React__default.useLayoutEffect : React__default.useEffect;
@@ -11867,7 +12100,7 @@ const {
11867
12100
  /**
11868
12101
  * Component default props.
11869
12102
  */
11870
- const DEFAULT_PROPS$l = {
12103
+ const DEFAULT_PROPS$m = {
11871
12104
  precision: 0,
11872
12105
  steps: 0
11873
12106
  };
@@ -11918,8 +12151,8 @@ const Slider = forwardRef((props, ref) => {
11918
12151
  name,
11919
12152
  onChange,
11920
12153
  onMouseDown,
11921
- precision = DEFAULT_PROPS$l.precision,
11922
- steps = DEFAULT_PROPS$l.steps,
12154
+ precision = DEFAULT_PROPS$m.precision,
12155
+ steps = DEFAULT_PROPS$m.steps,
11923
12156
  theme = defaultTheme,
11924
12157
  value,
11925
12158
  ...forwardedProps
@@ -11935,7 +12168,7 @@ const Slider = forwardRef((props, ref) => {
11935
12168
  const available = [0];
11936
12169
  const percentStep = 1 / ((max - min) / steps);
11937
12170
  let ptr = 0;
11938
- while (ptr + percentStep < 1) {
12171
+ while (ptr + percentStep <= 1) {
11939
12172
  ptr += percentStep;
11940
12173
  available.push(ptr);
11941
12174
  }
@@ -12122,7 +12355,7 @@ const Slider = forwardRef((props, ref) => {
12122
12355
  });
12123
12356
  Slider.displayName = COMPONENT_NAME$i;
12124
12357
  Slider.className = CLASSNAME$i;
12125
- Slider.defaultProps = DEFAULT_PROPS$l;
12358
+ Slider.defaultProps = DEFAULT_PROPS$m;
12126
12359
 
12127
12360
  /**
12128
12361
  * Making setInterval Declarative with React Hooks.
@@ -12500,7 +12733,7 @@ SlideshowItemGroup.className = CLASSNAME$h;
12500
12733
  /**
12501
12734
  * Component default props.
12502
12735
  */
12503
- const DEFAULT_PROPS$k = {
12736
+ const DEFAULT_PROPS$l = {
12504
12737
  ...DEFAULT_OPTIONS,
12505
12738
  slideMode: SlideMode.transformTranslate
12506
12739
  };
@@ -12516,19 +12749,19 @@ const Slideshow = forwardRef((props, ref) => {
12516
12749
  const defaultTheme = useTheme() || Theme$1.light;
12517
12750
  const {
12518
12751
  activeIndex,
12519
- autoPlay = DEFAULT_PROPS$k.autoPlay,
12752
+ autoPlay = DEFAULT_PROPS$l.autoPlay,
12520
12753
  children,
12521
12754
  className,
12522
12755
  fillHeight,
12523
12756
  groupBy = DEFAULT_OPTIONS.groupBy,
12524
- interval = DEFAULT_PROPS$k.interval,
12757
+ interval = DEFAULT_PROPS$l.interval,
12525
12758
  onChange,
12526
12759
  slideshowControlsProps,
12527
12760
  theme = defaultTheme,
12528
12761
  id,
12529
12762
  slidesId,
12530
12763
  slideGroupLabel,
12531
- slideMode = DEFAULT_PROPS$k.slideMode,
12764
+ slideMode = DEFAULT_PROPS$l.slideMode,
12532
12765
  ...forwardedProps
12533
12766
  } = props;
12534
12767
  // Number of slideshow items.
@@ -12550,7 +12783,7 @@ const Slideshow = forwardRef((props, ref) => {
12550
12783
  toggleForcePause
12551
12784
  } = SlideshowControls.useSlideshowControls({
12552
12785
  activeIndex,
12553
- defaultActiveIndex: DEFAULT_PROPS$k.activeIndex,
12786
+ defaultActiveIndex: DEFAULT_PROPS$l.activeIndex,
12554
12787
  autoPlay: Boolean(autoPlay),
12555
12788
  itemsCount,
12556
12789
  groupBy,
@@ -12620,7 +12853,7 @@ const Slideshow = forwardRef((props, ref) => {
12620
12853
  });
12621
12854
  });
12622
12855
  Slideshow.displayName = 'Slideshow';
12623
- Slideshow.defaultProps = DEFAULT_PROPS$k;
12856
+ Slideshow.defaultProps = DEFAULT_PROPS$l;
12624
12857
 
12625
12858
  /**
12626
12859
  * Component display name.
@@ -12729,7 +12962,7 @@ const {
12729
12962
  /**
12730
12963
  * Component default props.
12731
12964
  */
12732
- const DEFAULT_PROPS$j = {
12965
+ const DEFAULT_PROPS$k = {
12733
12966
  activeIndex: 0
12734
12967
  };
12735
12968
 
@@ -12743,7 +12976,7 @@ const DEFAULT_PROPS$j = {
12743
12976
  const InternalSlideshowControls = forwardRef((props, ref) => {
12744
12977
  const defaultTheme = useTheme() || Theme$1.light;
12745
12978
  const {
12746
- activeIndex = DEFAULT_PROPS$j.activeIndex,
12979
+ activeIndex = DEFAULT_PROPS$k.activeIndex,
12747
12980
  className,
12748
12981
  nextButtonProps,
12749
12982
  onNextClick,
@@ -12858,7 +13091,7 @@ const InternalSlideshowControls = forwardRef((props, ref) => {
12858
13091
  });
12859
13092
  InternalSlideshowControls.displayName = COMPONENT_NAME$f;
12860
13093
  InternalSlideshowControls.className = CLASSNAME$f;
12861
- InternalSlideshowControls.defaultProps = DEFAULT_PROPS$j;
13094
+ InternalSlideshowControls.defaultProps = DEFAULT_PROPS$k;
12862
13095
  const SlideshowControls = Object.assign(InternalSlideshowControls, {
12863
13096
  useSlideshowControls,
12864
13097
  useSlideshowControlsDefaultOptions: DEFAULT_OPTIONS
@@ -12990,7 +13223,7 @@ const {
12990
13223
  /**
12991
13224
  * Component default props.
12992
13225
  */
12993
- const DEFAULT_PROPS$i = {
13226
+ const DEFAULT_PROPS$j = {
12994
13227
  slideMode: SlideMode.transformTranslate
12995
13228
  };
12996
13229
 
@@ -13017,7 +13250,7 @@ const Slides = forwardRef((props, ref) => {
13017
13250
  afterSlides,
13018
13251
  hasControls,
13019
13252
  slideGroupLabel,
13020
- slideMode = DEFAULT_PROPS$i.slideMode,
13253
+ slideMode = DEFAULT_PROPS$j.slideMode,
13021
13254
  onChange,
13022
13255
  ...forwardedProps
13023
13256
  } = props;
@@ -13104,7 +13337,7 @@ const {
13104
13337
  /**
13105
13338
  * Component default props.
13106
13339
  */
13107
- const DEFAULT_PROPS$h = {
13340
+ const DEFAULT_PROPS$i = {
13108
13341
  position: 'left'
13109
13342
  };
13110
13343
 
@@ -13131,7 +13364,7 @@ const Switch$1 = props => {
13131
13364
  inputProps = {},
13132
13365
  isDisabled,
13133
13366
  inputId,
13134
- position = DEFAULT_PROPS$h.position,
13367
+ position = DEFAULT_PROPS$i.position,
13135
13368
  ...forwardedProps
13136
13369
  } = props;
13137
13370
  const handleOnChange = event => {
@@ -13199,7 +13432,7 @@ const Switch$1 = props => {
13199
13432
  /**
13200
13433
  * Component default props.
13201
13434
  */
13202
- const DEFAULT_PROPS$g = {
13435
+ const DEFAULT_PROPS$h = {
13203
13436
  position: Alignment.left
13204
13437
  };
13205
13438
 
@@ -13227,7 +13460,7 @@ const Switch = forwardRef((props, ref) => {
13227
13460
  isChecked = checked,
13228
13461
  name,
13229
13462
  onChange,
13230
- position = DEFAULT_PROPS$g.position,
13463
+ position = DEFAULT_PROPS$h.position,
13231
13464
  theme = defaultTheme,
13232
13465
  value,
13233
13466
  inputProps = {},
@@ -13260,7 +13493,7 @@ const Switch = forwardRef((props, ref) => {
13260
13493
  });
13261
13494
  Switch.displayName = COMPONENT_NAME$d;
13262
13495
  Switch.className = CLASSNAME$d;
13263
- Switch.defaultProps = DEFAULT_PROPS$g;
13496
+ Switch.defaultProps = DEFAULT_PROPS$h;
13264
13497
 
13265
13498
  /**
13266
13499
  * Component display name.
@@ -13283,7 +13516,7 @@ const {
13283
13516
  /**
13284
13517
  * Component default props.
13285
13518
  */
13286
- const DEFAULT_PROPS$f = {};
13519
+ const DEFAULT_PROPS$g = {};
13287
13520
 
13288
13521
  /**
13289
13522
  * Table component.
@@ -13340,7 +13573,7 @@ const Table = forwardRef((props, ref) => {
13340
13573
  });
13341
13574
  Table.displayName = COMPONENT_NAME$c;
13342
13575
  Table.className = CLASSNAME$c;
13343
- Table.defaultProps = DEFAULT_PROPS$f;
13576
+ Table.defaultProps = DEFAULT_PROPS$g;
13344
13577
 
13345
13578
  /**
13346
13579
  * Component display name.
@@ -13430,7 +13663,7 @@ const {
13430
13663
  /**
13431
13664
  * Component default props.
13432
13665
  */
13433
- const DEFAULT_PROPS$e = {
13666
+ const DEFAULT_PROPS$f = {
13434
13667
  variant: TableCellVariant.body
13435
13668
  };
13436
13669
 
@@ -13449,7 +13682,7 @@ const TableCell$1 = props => {
13449
13682
  handleClick,
13450
13683
  ref,
13451
13684
  sortOrder,
13452
- variant = DEFAULT_PROPS$e.variant,
13685
+ variant = DEFAULT_PROPS$f.variant,
13453
13686
  ...forwardedProps
13454
13687
  } = props;
13455
13688
 
@@ -13535,7 +13768,7 @@ const TableCell = forwardRef((props, ref) => {
13535
13768
  });
13536
13769
  TableCell.displayName = COMPONENT_NAME$a;
13537
13770
  TableCell.className = CLASSNAME$a;
13538
- TableCell.defaultProps = DEFAULT_PROPS$e;
13771
+ TableCell.defaultProps = DEFAULT_PROPS$f;
13539
13772
 
13540
13773
  /**
13541
13774
  * Component display name.
@@ -13550,7 +13783,7 @@ const CLASSNAME$9 = `${CLASSNAME$c}__header`;
13550
13783
  /**
13551
13784
  * Component default props.
13552
13785
  */
13553
- const DEFAULT_PROPS$d = {};
13786
+ const DEFAULT_PROPS$e = {};
13554
13787
 
13555
13788
  /**
13556
13789
  * TableHeader component.
@@ -13597,7 +13830,7 @@ const TableHeader = forwardRef((props, ref) => {
13597
13830
  });
13598
13831
  TableHeader.displayName = COMPONENT_NAME$9;
13599
13832
  TableHeader.className = CLASSNAME$9;
13600
- TableHeader.defaultProps = DEFAULT_PROPS$d;
13833
+ TableHeader.defaultProps = DEFAULT_PROPS$e;
13601
13834
 
13602
13835
  /**
13603
13836
  * Component display name.
@@ -13615,7 +13848,7 @@ const {
13615
13848
  /**
13616
13849
  * Component default props.
13617
13850
  */
13618
- const DEFAULT_PROPS$c = {};
13851
+ const DEFAULT_PROPS$d = {};
13619
13852
 
13620
13853
  /**
13621
13854
  * TableRow component.
@@ -13687,9 +13920,9 @@ const TableRow = forwardRef((props, ref) => {
13687
13920
  });
13688
13921
  TableRow.displayName = COMPONENT_NAME$8;
13689
13922
  TableRow.className = CLASSNAME$8;
13690
- TableRow.defaultProps = DEFAULT_PROPS$c;
13923
+ TableRow.defaultProps = DEFAULT_PROPS$d;
13691
13924
 
13692
- const DEFAULT_PROPS$b = {
13925
+ const DEFAULT_PROPS$c = {
13693
13926
  isLazy: INIT_STATE.isLazy,
13694
13927
  shouldActivateOnFocus: INIT_STATE.shouldActivateOnFocus
13695
13928
  };
@@ -13716,7 +13949,7 @@ const TabProvider = props => {
13716
13949
  dispatch({
13717
13950
  type: 'update',
13718
13951
  payload: {
13719
- ...DEFAULT_PROPS$b,
13952
+ ...DEFAULT_PROPS$c,
13720
13953
  ...propState
13721
13954
  }
13722
13955
  });
@@ -13745,7 +13978,7 @@ const TabProvider = props => {
13745
13978
  children: children
13746
13979
  });
13747
13980
  };
13748
- TabProvider.defaultProps = DEFAULT_PROPS$b;
13981
+ TabProvider.defaultProps = DEFAULT_PROPS$c;
13749
13982
 
13750
13983
  /**
13751
13984
  * Component default class name and class prefix.
@@ -13774,7 +14007,7 @@ const COMPONENT_NAME$7 = 'TabList';
13774
14007
  /**
13775
14008
  * Component default props.
13776
14009
  */
13777
- const DEFAULT_PROPS$a = {
14010
+ const DEFAULT_PROPS$b = {
13778
14011
  layout: TabListLayout.fixed,
13779
14012
  position: Alignment.left
13780
14013
  };
@@ -13794,8 +14027,8 @@ const TabList = forwardRef((props, ref) => {
13794
14027
  'aria-label': ariaLabel,
13795
14028
  children,
13796
14029
  className,
13797
- layout = DEFAULT_PROPS$a.layout,
13798
- position = DEFAULT_PROPS$a.position,
14030
+ layout = DEFAULT_PROPS$b.layout,
14031
+ position = DEFAULT_PROPS$b.position,
13799
14032
  theme = defaultTheme,
13800
14033
  ...forwardedProps
13801
14034
  } = props;
@@ -13824,7 +14057,7 @@ const TabList = forwardRef((props, ref) => {
13824
14057
  });
13825
14058
  TabList.displayName = COMPONENT_NAME$7;
13826
14059
  TabList.className = TABS_CLASSNAME;
13827
- TabList.defaultProps = DEFAULT_PROPS$a;
14060
+ TabList.defaultProps = DEFAULT_PROPS$b;
13828
14061
 
13829
14062
  /**
13830
14063
  * Component display name.
@@ -13842,7 +14075,7 @@ const {
13842
14075
  /**
13843
14076
  * Component default props.
13844
14077
  */
13845
- const DEFAULT_PROPS$9 = {};
14078
+ const DEFAULT_PROPS$a = {};
13846
14079
 
13847
14080
  /**
13848
14081
  * Tab component.
@@ -13921,7 +14154,7 @@ const Tab = forwardRef((props, ref) => {
13921
14154
  });
13922
14155
  Tab.displayName = COMPONENT_NAME$6;
13923
14156
  Tab.className = CLASSNAME$7;
13924
- Tab.defaultProps = DEFAULT_PROPS$9;
14157
+ Tab.defaultProps = DEFAULT_PROPS$a;
13925
14158
 
13926
14159
  /**
13927
14160
  * Component display name.
@@ -13939,7 +14172,7 @@ const {
13939
14172
  /**
13940
14173
  * Component default props.
13941
14174
  */
13942
- const DEFAULT_PROPS$8 = {};
14175
+ const DEFAULT_PROPS$9 = {};
13943
14176
 
13944
14177
  /**
13945
14178
  * TabPanel component.
@@ -13975,7 +14208,7 @@ const TabPanel = forwardRef((props, ref) => {
13975
14208
  });
13976
14209
  TabPanel.displayName = COMPONENT_NAME$5;
13977
14210
  TabPanel.className = CLASSNAME$6;
13978
- TabPanel.defaultProps = DEFAULT_PROPS$8;
14211
+ TabPanel.defaultProps = DEFAULT_PROPS$9;
13979
14212
 
13980
14213
  /**
13981
14214
  * Component display name.
@@ -13994,7 +14227,7 @@ const INPUT_NATIVE_CLASSNAME = `${CLASSNAME$5}__input-native`;
13994
14227
 
13995
14228
  const {
13996
14229
  block: block$7
13997
- } = classNames.bem(INPUT_NATIVE_CLASSNAME);
14230
+ } = bem(INPUT_NATIVE_CLASSNAME);
13998
14231
 
13999
14232
  /**
14000
14233
  * Defines the props of the component.
@@ -14003,7 +14236,7 @@ const {
14003
14236
  /**
14004
14237
  * Component default props.
14005
14238
  */
14006
- const DEFAULT_PROPS$7 = {
14239
+ const DEFAULT_PROPS$8 = {
14007
14240
  type: 'text'
14008
14241
  };
14009
14242
 
@@ -14011,35 +14244,100 @@ const DEFAULT_PROPS$7 = {
14011
14244
  * Raw input text component
14012
14245
  * (input element without any decoration)
14013
14246
  */
14014
- const RawInputText = forwardRef((props, ref) => {
14015
- const defaultTheme = useTheme() || Theme$1.light;
14247
+ const RawInputText$1 = props => {
14016
14248
  const {
14017
14249
  className,
14018
- theme = defaultTheme,
14250
+ theme,
14019
14251
  value,
14020
- onChange,
14021
- type = DEFAULT_PROPS$7.type,
14252
+ handleChange,
14253
+ type = DEFAULT_PROPS$8.type,
14022
14254
  name,
14255
+ ref,
14023
14256
  ...forwardedProps
14024
14257
  } = props;
14025
- const textareaRef = useRef(null);
14026
- const handleChange = useCallback(evt => {
14027
- onChange?.(evt.target.value, name, evt);
14028
- }, [onChange, name]);
14258
+ const handleOnChange = evt => {
14259
+ handleChange?.(evt.target.value, name, evt);
14260
+ };
14029
14261
  return /*#__PURE__*/jsx("input", {
14030
14262
  ...forwardedProps,
14031
14263
  name: name,
14032
14264
  type: type,
14033
- ref: useMergeRefs(ref, textareaRef),
14034
- className: classNames.join(className, block$7({
14265
+ ref: ref,
14266
+ className: classnames(className, block$7({
14035
14267
  [`theme-${theme}`]: Boolean(theme),
14036
14268
  text: true
14037
14269
  })),
14038
- onChange: handleChange,
14270
+ onChange: handleOnChange,
14039
14271
  value: value
14040
14272
  });
14273
+ };
14274
+
14275
+ /**
14276
+ * Raw input text component
14277
+ * (input element without any decoration)
14278
+ */
14279
+ const RawInputText = forwardRef((props, ref) => {
14280
+ const defaultTheme = useTheme() || Theme$1.light;
14281
+ const {
14282
+ theme = defaultTheme,
14283
+ onChange,
14284
+ ...restOfProps
14285
+ } = props;
14286
+ return RawInputText$1({
14287
+ ...restOfProps,
14288
+ ref,
14289
+ theme,
14290
+ handleChange: onChange
14291
+ });
14041
14292
  });
14042
14293
 
14294
+ const {
14295
+ block: block$6
14296
+ } = bem(INPUT_NATIVE_CLASSNAME);
14297
+
14298
+ /**
14299
+ * Defines the props of the component.
14300
+ */
14301
+
14302
+ /**
14303
+ * Component default props.
14304
+ */
14305
+ const DEFAULT_PROPS$7 = {
14306
+ rows: 2
14307
+ };
14308
+
14309
+ /**
14310
+ * Raw input textarea component
14311
+ * (textarea element without any decoration)
14312
+ */
14313
+ const RawInputTextarea$1 = props => {
14314
+ const {
14315
+ className,
14316
+ theme,
14317
+ value,
14318
+ handleChange,
14319
+ rows = DEFAULT_PROPS$7.rows,
14320
+ name,
14321
+ ref,
14322
+ ...forwardedProps
14323
+ } = props;
14324
+ const handleOnChange = evt => {
14325
+ handleChange?.(evt.target.value, name, evt);
14326
+ };
14327
+ return /*#__PURE__*/jsx("textarea", {
14328
+ ...forwardedProps,
14329
+ name: name,
14330
+ ref: ref,
14331
+ className: classnames(className, block$6({
14332
+ [`theme-${theme}`]: Boolean(theme),
14333
+ textarea: true
14334
+ })),
14335
+ onChange: handleOnChange,
14336
+ value: value,
14337
+ rows: rows
14338
+ });
14339
+ };
14340
+
14043
14341
  /**
14044
14342
  * Fit textarea rows to its content
14045
14343
  */
@@ -14081,10 +14379,6 @@ function useFitRowsToContent(minimumRows, textareaRef, value) {
14081
14379
  return rows;
14082
14380
  }
14083
14381
 
14084
- const {
14085
- block: block$6
14086
- } = classNames.bem(INPUT_NATIVE_CLASSNAME);
14087
-
14088
14382
  /**
14089
14383
  * Defines the props of the component.
14090
14384
  */
@@ -14093,7 +14387,7 @@ const {
14093
14387
  * Component default props.
14094
14388
  */
14095
14389
  const DEFAULT_PROPS$6 = {
14096
- minimumRows: 2
14390
+ minimumRows: DEFAULT_PROPS$7.rows
14097
14391
  };
14098
14392
 
14099
14393
  /**
@@ -14103,30 +14397,21 @@ const DEFAULT_PROPS$6 = {
14103
14397
  const RawInputTextarea = forwardRef((props, ref) => {
14104
14398
  const defaultTheme = useTheme() || Theme$1.light;
14105
14399
  const {
14106
- className,
14107
14400
  theme = defaultTheme,
14108
14401
  minimumRows = DEFAULT_PROPS$6.minimumRows,
14109
14402
  value,
14110
- name,
14111
14403
  onChange,
14112
- ...forwardedProps
14404
+ ...restOfProps
14113
14405
  } = props;
14114
14406
  const textareaRef = useRef(null);
14115
14407
  const rows = useFitRowsToContent(minimumRows, textareaRef, value);
14116
- const handleChange = useCallback(evt => {
14117
- onChange?.(evt.target.value, name, evt);
14118
- }, [onChange, name]);
14119
- return /*#__PURE__*/jsx("textarea", {
14120
- ...forwardedProps,
14121
- name: name,
14122
- className: classNames.join(className, block$6({
14123
- [`theme-${theme}`]: Boolean(theme),
14124
- textarea: true
14125
- })),
14408
+ return RawInputTextarea$1({
14409
+ ...restOfProps,
14126
14410
  ref: useMergeRefs(ref, textareaRef),
14127
- onChange: handleChange,
14128
- value: value,
14129
- rows: rows
14411
+ theme,
14412
+ value,
14413
+ rows,
14414
+ handleChange: onChange
14130
14415
  });
14131
14416
  });
14132
14417
 
@@ -15578,5 +15863,5 @@ UserBlock.displayName = COMPONENT_NAME;
15578
15863
  UserBlock.className = CLASSNAME;
15579
15864
  UserBlock.defaultProps = DEFAULT_PROPS;
15580
15865
 
15581
- export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$1d as CLASSNAME, COMPONENT_NAME$1d as COMPONENT_NAME, Checkbox, Chip, ChipGroup, CommentBlock, CommentBlockVariant, DEFAULT_PROPS$15 as DEFAULT_PROPS, DatePicker, DatePickerControlled, DatePickerField, Dialog, Divider, DragHandle, Dropdown, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, ImageLightbox, InlineList, InputHelper, InputLabel, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSubheader, Message, Mosaic, Navigation, Notification, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, RawInputText, RawInputTextarea, Select, SelectMultiple, SelectMultipleField, SelectVariant, SelectionChipGroup, SideNavigation, SideNavigationItem, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableHeader, TableRow, Text, TextField, ThOrder, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, Toolbar, Tooltip, Uploader, UploaderVariant, UserBlock, clamp, isClickable, useFocusPointStyle, useHeadingLevel, useTheme };
15866
+ export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$1f as CLASSNAME, COMPONENT_NAME$1f as COMPONENT_NAME, Checkbox, Chip, ChipGroup, CommentBlock, CommentBlockVariant, DEFAULT_PROPS$18 as DEFAULT_PROPS, DatePicker, DatePickerControlled, DatePickerField, Dialog, Divider, DragHandle, Dropdown, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, ImageLightbox, InlineList, InputHelper, InputLabel, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSection, ListSubheader, Message, Mosaic, Navigation, Notification, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, RawInputText, RawInputTextarea, Select, SelectMultiple, SelectMultipleField, SelectVariant, SelectionChipGroup, SideNavigation, SideNavigationItem, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableHeader, TableRow, Text, TextField, ThOrder, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, Toolbar, Tooltip, Uploader, UploaderVariant, UserBlock, clamp, isClickable, useFocusPointStyle, useHeadingLevel, useTheme };
15582
15867
  //# sourceMappingURL=index.js.map