@porsche-design-system/components-react 3.21.0 → 3.22.0-rc.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 (54) hide show
  1. package/CHANGELOG.md +25 -2
  2. package/ag-grid/theme.css +17 -8
  3. package/cjs/lib/components/link-tile-model-signature.wrapper.cjs +1 -1
  4. package/cjs/lib/components/pin-code.wrapper.cjs +3 -3
  5. package/esm/lib/components/link-tile-model-signature.wrapper.mjs +1 -1
  6. package/esm/lib/components/pin-code.wrapper.d.ts +8 -0
  7. package/esm/lib/components/pin-code.wrapper.mjs +3 -3
  8. package/esm/lib/types.d.ts +33 -33
  9. package/package.json +6 -2
  10. package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +450 -437
  11. package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +419 -420
  12. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile-model-signature.wrapper.cjs +1 -1
  13. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/pin-code.wrapper.cjs +4 -4
  14. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +1 -1
  15. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.cjs +2 -1
  16. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.cjs +2 -1
  17. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.cjs +2 -1
  18. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +2 -1
  19. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/loading-message.cjs +1 -1
  20. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +5 -1
  21. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +15 -6
  22. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.cjs +2 -1
  23. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +2 -0
  24. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.cjs +2 -1
  25. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.cjs +1 -1
  26. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/toast.cjs +1 -1
  27. package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +450 -437
  28. package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +419 -420
  29. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile-model-signature.wrapper.mjs +1 -1
  30. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/pin-code.wrapper.mjs +4 -4
  31. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +1 -1
  32. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.mjs +2 -1
  33. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +2 -1
  34. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.mjs +2 -1
  35. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +2 -1
  36. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/loading-message.mjs +1 -1
  37. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +5 -1
  38. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +15 -6
  39. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.mjs +2 -1
  40. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +2 -0
  41. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.mjs +2 -1
  42. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.mjs +1 -1
  43. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/toast.mjs +1 -1
  44. package/ssr/esm/lib/components/pin-code.wrapper.d.ts +8 -0
  45. package/ssr/esm/lib/dsr-components/button-pure.d.ts +1 -0
  46. package/ssr/esm/lib/dsr-components/button.d.ts +1 -0
  47. package/ssr/esm/lib/dsr-components/checkbox-wrapper.d.ts +1 -0
  48. package/ssr/esm/lib/dsr-components/checkbox.d.ts +1 -0
  49. package/ssr/esm/lib/dsr-components/flyout-multilevel-item.d.ts +1 -1
  50. package/ssr/esm/lib/dsr-components/pin-code.d.ts +6 -3
  51. package/ssr/esm/lib/dsr-components/radio-button-wrapper.d.ts +1 -0
  52. package/ssr/esm/lib/dsr-components/switch.d.ts +1 -0
  53. package/ssr/esm/lib/types.d.ts +33 -33
  54. package/styles/_index.scss +1 -1
@@ -31,7 +31,7 @@ function toPrimitive(t, r) {
31
31
  if ("object" != _typeof(t) || !t) return t;
32
32
  var e = t[Symbol.toPrimitive];
33
33
  if (void 0 !== e) {
34
- var i = e.call(t, r );
34
+ var i = e.call(t, r);
35
35
  if ("object" != _typeof(i)) return i;
36
36
  throw new TypeError("@@toPrimitive must return a primitive value.");
37
37
  }
@@ -2755,400 +2755,426 @@ function getAugmentedNamespace(n) {
2755
2755
  return a;
2756
2756
  }
2757
2757
 
2758
- var _tslib$1 = {};
2758
+ var _tslib = {};
2759
2759
 
2760
- (function (exports) {
2760
+ var hasRequired_tslib;
2761
2761
 
2762
- Object.defineProperty(exports, '__esModule', { value: true });
2762
+ function require_tslib () {
2763
+ if (hasRequired_tslib) return _tslib;
2764
+ hasRequired_tslib = 1;
2765
+ (function (exports) {
2763
2766
 
2764
- /*! *****************************************************************************
2765
- Copyright (c) Microsoft Corporation.
2767
+ Object.defineProperty(exports, '__esModule', { value: true });
2766
2768
 
2767
- Permission to use, copy, modify, and/or distribute this software for any
2768
- purpose with or without fee is hereby granted.
2769
+ /*! *****************************************************************************
2770
+ Copyright (c) Microsoft Corporation.
2769
2771
 
2770
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
2771
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2772
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
2773
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2774
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
2775
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2776
- PERFORMANCE OF THIS SOFTWARE.
2777
- ***************************************************************************** */
2772
+ Permission to use, copy, modify, and/or distribute this software for any
2773
+ purpose with or without fee is hereby granted.
2778
2774
 
2779
- exports.__assign = function () {
2780
- exports.__assign =
2781
- Object.assign ||
2782
- function __assign(t) {
2783
- for (var s, i = 1, n = arguments.length; i < n; i++) {
2784
- s = arguments[i];
2785
- for (var p in s)
2786
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
2787
- }
2788
- return t;
2789
- };
2790
- return exports.__assign.apply(this, arguments);
2791
- };
2792
- } (_tslib$1));
2793
-
2794
- var require$$1 = /*@__PURE__*/getAugmentedNamespace(jss_esm);
2795
-
2796
- /**
2797
- * The custom `sort` method for
2798
- * for the [`css-mqpacker`](https://www.npmjs.com/package/css-mqpacker) or
2799
- * [`pleeease`](https://www.npmjs.com/package/pleeease) which using `css-mqpacker`
2800
- * or, perhaps, something else ))
2801
- *
2802
- * @module sort-css-media-queries
2803
- * @author Oleg Dutchenko <dutchenko.o.wezom@gmail.com>
2804
- * @version 1.5.0
2805
- */
2806
-
2807
- // ----------------------------------------
2808
- // Private
2809
- // ----------------------------------------
2810
-
2811
- const minMaxWidth = /(!?\(\s*min(-device-)?-width)(.|\n)+\(\s*max(-device)?-width/i;
2812
- const minWidth = /\(\s*min(-device)?-width/i;
2813
- const maxMinWidth = /(!?\(\s*max(-device)?-width)(.|\n)+\(\s*min(-device)?-width/i;
2814
- const maxWidth = /\(\s*max(-device)?-width/i;
2815
-
2816
- const isMinWidth = _testQuery(minMaxWidth, maxMinWidth, minWidth);
2817
- const isMaxWidth = _testQuery(maxMinWidth, minMaxWidth, maxWidth);
2818
-
2819
- const minMaxHeight = /(!?\(\s*min(-device)?-height)(.|\n)+\(\s*max(-device)?-height/i;
2820
- const minHeight = /\(\s*min(-device)?-height/i;
2821
- const maxMinHeight = /(!?\(\s*max(-device)?-height)(.|\n)+\(\s*min(-device)?-height/i;
2822
- const maxHeight = /\(\s*max(-device)?-height/i;
2823
-
2824
- const isMinHeight = _testQuery(minMaxHeight, maxMinHeight, minHeight);
2825
- const isMaxHeight = _testQuery(maxMinHeight, minMaxHeight, maxHeight);
2826
-
2827
- const isPrint = /print/i;
2828
- const isPrintOnly = /^print$/i;
2829
-
2830
- const maxValue = Number.MAX_VALUE;
2831
-
2832
- /**
2833
- * Obtain the length of the media request in pixels.
2834
- * Copy from original source `function inspectLength (length)`
2835
- * {@link https://github.com/hail2u/node-css-mqpacker/blob/master/index.js#L58}
2836
- * @private
2837
- * @param {string} length
2838
- * @return {number}
2839
- */
2840
- function _getQueryLength (length) {
2841
- length = /(-?\d*\.?\d+)(ch|em|ex|px|rem)/.exec(length);
2842
-
2843
- if (length === null) {
2844
- return maxValue
2845
- }
2846
-
2847
- let number = length[1];
2848
- const unit = length[2];
2849
-
2850
- switch (unit) {
2851
- case 'ch':
2852
- number = parseFloat(number) * 8.8984375;
2853
- break
2854
-
2855
- case 'em':
2856
- case 'rem':
2857
- number = parseFloat(number) * 16;
2858
- break
2859
-
2860
- case 'ex':
2861
- number = parseFloat(number) * 8.296875;
2862
- break
2863
-
2864
- case 'px':
2865
- number = parseFloat(number);
2866
- break
2867
- }
2868
-
2869
- return +number
2870
- }
2871
-
2872
- /**
2873
- * Wrapper for creating test functions
2874
- * @private
2875
- * @param {RegExp} doubleTestTrue
2876
- * @param {RegExp} doubleTestFalse
2877
- * @param {RegExp} singleTest
2878
- * @return {Function}
2879
- */
2880
- function _testQuery (doubleTestTrue, doubleTestFalse, singleTest) {
2881
- /**
2882
- * @param {string} query
2883
- * @return {boolean}
2884
- */
2885
- return function (query) {
2886
- if (doubleTestTrue.test(query)) {
2887
- return true
2888
- } else if (doubleTestFalse.test(query)) {
2889
- return false
2890
- }
2891
- return singleTest.test(query)
2892
- }
2893
- }
2894
-
2895
- /**
2896
- * @private
2897
- * @param {string} a
2898
- * @param {string} b
2899
- * @return {number|null}
2900
- */
2901
- function _testIsPrint (a, b) {
2902
- const isPrintA = isPrint.test(a);
2903
- const isPrintOnlyA = isPrintOnly.test(a);
2904
-
2905
- const isPrintB = isPrint.test(b);
2906
- const isPrintOnlyB = isPrintOnly.test(b);
2907
-
2908
- if (isPrintA && isPrintB) {
2909
- if (!isPrintOnlyA && isPrintOnlyB) {
2910
- return 1
2911
- }
2912
- if (isPrintOnlyA && !isPrintOnlyB) {
2913
- return -1
2914
- }
2915
- return a.localeCompare(b)
2916
- }
2917
- if (isPrintA) {
2918
- return 1
2919
- }
2920
- if (isPrintB) {
2921
- return -1
2922
- }
2775
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
2776
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2777
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
2778
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2779
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
2780
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2781
+ PERFORMANCE OF THIS SOFTWARE.
2782
+ ***************************************************************************** */
2923
2783
 
2924
- return null
2784
+ exports.__assign = function () {
2785
+ exports.__assign =
2786
+ Object.assign ||
2787
+ function __assign(t) {
2788
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
2789
+ s = arguments[i];
2790
+ for (var p in s)
2791
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
2792
+ }
2793
+ return t;
2794
+ };
2795
+ return exports.__assign.apply(this, arguments);
2796
+ };
2797
+ } (_tslib));
2798
+ return _tslib;
2925
2799
  }
2926
2800
 
2927
- // ----------------------------------------
2928
- // Public
2929
- // ----------------------------------------
2930
-
2931
- /**
2932
- * Sorting an array with media queries
2933
- * according to the mobile-first methodology.
2934
- * @param {string} a
2935
- * @param {string} b
2936
- * @return {number} 1 / 0 / -1
2937
- */
2938
- function sortCSSmq$1 (a, b) {
2939
- const testIsPrint = _testIsPrint(a, b);
2940
- if (testIsPrint !== null) {
2941
- return testIsPrint
2942
- }
2943
-
2944
- const minA = isMinWidth(a) || isMinHeight(a);
2945
- const maxA = isMaxWidth(a) || isMaxHeight(a);
2801
+ var require$$1 = /*@__PURE__*/getAugmentedNamespace(jss_esm);
2946
2802
 
2947
- const minB = isMinWidth(b) || isMinHeight(b);
2948
- const maxB = isMaxWidth(b) || isMaxHeight(b);
2803
+ var sortCssMediaQueries;
2804
+ var hasRequiredSortCssMediaQueries;
2805
+
2806
+ function requireSortCssMediaQueries () {
2807
+ if (hasRequiredSortCssMediaQueries) return sortCssMediaQueries;
2808
+ hasRequiredSortCssMediaQueries = 1;
2809
+
2810
+ /**
2811
+ * The custom `sort` method for
2812
+ * for the [`css-mqpacker`](https://www.npmjs.com/package/css-mqpacker) or
2813
+ * [`pleeease`](https://www.npmjs.com/package/pleeease) which using `css-mqpacker`
2814
+ * or, perhaps, something else ))
2815
+ *
2816
+ * @module sort-css-media-queries
2817
+ * @author Oleg Dutchenko <dutchenko.o.wezom@gmail.com>
2818
+ * @version 1.5.0
2819
+ */
2820
+
2821
+ // ----------------------------------------
2822
+ // Private
2823
+ // ----------------------------------------
2824
+
2825
+ const minMaxWidth = /(!?\(\s*min(-device-)?-width)(.|\n)+\(\s*max(-device)?-width/i;
2826
+ const minWidth = /\(\s*min(-device)?-width/i;
2827
+ const maxMinWidth = /(!?\(\s*max(-device)?-width)(.|\n)+\(\s*min(-device)?-width/i;
2828
+ const maxWidth = /\(\s*max(-device)?-width/i;
2829
+
2830
+ const isMinWidth = _testQuery(minMaxWidth, maxMinWidth, minWidth);
2831
+ const isMaxWidth = _testQuery(maxMinWidth, minMaxWidth, maxWidth);
2832
+
2833
+ const minMaxHeight = /(!?\(\s*min(-device)?-height)(.|\n)+\(\s*max(-device)?-height/i;
2834
+ const minHeight = /\(\s*min(-device)?-height/i;
2835
+ const maxMinHeight = /(!?\(\s*max(-device)?-height)(.|\n)+\(\s*min(-device)?-height/i;
2836
+ const maxHeight = /\(\s*max(-device)?-height/i;
2837
+
2838
+ const isMinHeight = _testQuery(minMaxHeight, maxMinHeight, minHeight);
2839
+ const isMaxHeight = _testQuery(maxMinHeight, minMaxHeight, maxHeight);
2840
+
2841
+ const isPrint = /print/i;
2842
+ const isPrintOnly = /^print$/i;
2843
+
2844
+ const maxValue = Number.MAX_VALUE;
2845
+
2846
+ /**
2847
+ * Obtain the length of the media request in pixels.
2848
+ * Copy from original source `function inspectLength (length)`
2849
+ * {@link https://github.com/hail2u/node-css-mqpacker/blob/master/index.js#L58}
2850
+ * @private
2851
+ * @param {string} length
2852
+ * @return {number}
2853
+ */
2854
+ function _getQueryLength (length) {
2855
+ length = /(-?\d*\.?\d+)(ch|em|ex|px|rem)/.exec(length);
2856
+
2857
+ if (length === null) {
2858
+ return maxValue
2859
+ }
2860
+
2861
+ let number = length[1];
2862
+ const unit = length[2];
2863
+
2864
+ switch (unit) {
2865
+ case 'ch':
2866
+ number = parseFloat(number) * 8.8984375;
2867
+ break
2868
+
2869
+ case 'em':
2870
+ case 'rem':
2871
+ number = parseFloat(number) * 16;
2872
+ break
2873
+
2874
+ case 'ex':
2875
+ number = parseFloat(number) * 8.296875;
2876
+ break
2877
+
2878
+ case 'px':
2879
+ number = parseFloat(number);
2880
+ break
2881
+ }
2882
+
2883
+ return +number
2884
+ }
2949
2885
 
2950
- if (minA && maxB) {
2951
- return -1
2952
- }
2953
- if (maxA && minB) {
2954
- return 1
2955
- }
2886
+ /**
2887
+ * Wrapper for creating test functions
2888
+ * @private
2889
+ * @param {RegExp} doubleTestTrue
2890
+ * @param {RegExp} doubleTestFalse
2891
+ * @param {RegExp} singleTest
2892
+ * @return {Function}
2893
+ */
2894
+ function _testQuery (doubleTestTrue, doubleTestFalse, singleTest) {
2895
+ /**
2896
+ * @param {string} query
2897
+ * @return {boolean}
2898
+ */
2899
+ return function (query) {
2900
+ if (doubleTestTrue.test(query)) {
2901
+ return true
2902
+ } else if (doubleTestFalse.test(query)) {
2903
+ return false
2904
+ }
2905
+ return singleTest.test(query)
2906
+ }
2907
+ }
2956
2908
 
2957
- let lengthA = _getQueryLength(a);
2958
- let lengthB = _getQueryLength(b);
2909
+ /**
2910
+ * @private
2911
+ * @param {string} a
2912
+ * @param {string} b
2913
+ * @return {number|null}
2914
+ */
2915
+ function _testIsPrint (a, b) {
2916
+ const isPrintA = isPrint.test(a);
2917
+ const isPrintOnlyA = isPrintOnly.test(a);
2918
+
2919
+ const isPrintB = isPrint.test(b);
2920
+ const isPrintOnlyB = isPrintOnly.test(b);
2921
+
2922
+ if (isPrintA && isPrintB) {
2923
+ if (!isPrintOnlyA && isPrintOnlyB) {
2924
+ return 1
2925
+ }
2926
+ if (isPrintOnlyA && !isPrintOnlyB) {
2927
+ return -1
2928
+ }
2929
+ return a.localeCompare(b)
2930
+ }
2931
+ if (isPrintA) {
2932
+ return 1
2933
+ }
2934
+ if (isPrintB) {
2935
+ return -1
2936
+ }
2937
+
2938
+ return null
2939
+ }
2959
2940
 
2960
- if (lengthA === maxValue && lengthB === maxValue) {
2961
- return a.localeCompare(b)
2962
- } else if (lengthA === maxValue) {
2963
- return 1
2964
- } else if (lengthB === maxValue) {
2965
- return -1
2966
- }
2941
+ // ----------------------------------------
2942
+ // Public
2943
+ // ----------------------------------------
2944
+
2945
+ /**
2946
+ * Sorting an array with media queries
2947
+ * according to the mobile-first methodology.
2948
+ * @param {string} a
2949
+ * @param {string} b
2950
+ * @return {number} 1 / 0 / -1
2951
+ */
2952
+ function sortCSSmq (a, b) {
2953
+ const testIsPrint = _testIsPrint(a, b);
2954
+ if (testIsPrint !== null) {
2955
+ return testIsPrint
2956
+ }
2957
+
2958
+ const minA = isMinWidth(a) || isMinHeight(a);
2959
+ const maxA = isMaxWidth(a) || isMaxHeight(a);
2960
+
2961
+ const minB = isMinWidth(b) || isMinHeight(b);
2962
+ const maxB = isMaxWidth(b) || isMaxHeight(b);
2963
+
2964
+ if (minA && maxB) {
2965
+ return -1
2966
+ }
2967
+ if (maxA && minB) {
2968
+ return 1
2969
+ }
2970
+
2971
+ let lengthA = _getQueryLength(a);
2972
+ let lengthB = _getQueryLength(b);
2973
+
2974
+ if (lengthA === maxValue && lengthB === maxValue) {
2975
+ return a.localeCompare(b)
2976
+ } else if (lengthA === maxValue) {
2977
+ return 1
2978
+ } else if (lengthB === maxValue) {
2979
+ return -1
2980
+ }
2981
+
2982
+ if (lengthA > lengthB) {
2983
+ if (maxA) {
2984
+ return -1
2985
+ }
2986
+ return 1
2987
+ }
2988
+
2989
+ if (lengthA < lengthB) {
2990
+ if (maxA) {
2991
+ return 1
2992
+ }
2993
+ return -1
2994
+ }
2995
+
2996
+ return a.localeCompare(b)
2997
+ }
2967
2998
 
2968
- if (lengthA > lengthB) {
2969
- if (maxA) {
2970
- return -1
2971
- }
2972
- return 1
2973
- }
2999
+ /**
3000
+ * Sorting an array with media queries
3001
+ * according to the desktop-first methodology.
3002
+ * @param {string} a
3003
+ * @param {string} b
3004
+ * @return {number} 1 / 0 / -1
3005
+ */
3006
+ sortCSSmq.desktopFirst = function (a, b) {
3007
+ const testIsPrint = _testIsPrint(a, b);
3008
+ if (testIsPrint !== null) {
3009
+ return testIsPrint
3010
+ }
3011
+
3012
+ const minA = isMinWidth(a) || isMinHeight(a);
3013
+ const maxA = isMaxWidth(a) || isMaxHeight(a);
3014
+
3015
+ const minB = isMinWidth(b) || isMinHeight(b);
3016
+ const maxB = isMaxWidth(b) || isMaxHeight(b);
3017
+
3018
+ if (minA && maxB) {
3019
+ return 1
3020
+ }
3021
+ if (maxA && minB) {
3022
+ return -1
3023
+ }
3024
+
3025
+ const lengthA = _getQueryLength(a);
3026
+ const lengthB = _getQueryLength(b);
3027
+
3028
+ if (lengthA === maxValue && lengthB === maxValue) {
3029
+ return a.localeCompare(b)
3030
+ } else if (lengthA === maxValue) {
3031
+ return 1
3032
+ } else if (lengthB === maxValue) {
3033
+ return -1
3034
+ }
3035
+
3036
+ if (lengthA > lengthB) {
3037
+ if (maxA) {
3038
+ return -1
3039
+ }
3040
+ return 1
3041
+ }
3042
+
3043
+ if (lengthA < lengthB) {
3044
+ if (maxA) {
3045
+ return 1
3046
+ }
3047
+ return -1
3048
+ }
3049
+
3050
+ return -(a.localeCompare(b))
3051
+ };
2974
3052
 
2975
- if (lengthA < lengthB) {
2976
- if (maxA) {
2977
- return 1
2978
- }
2979
- return -1
2980
- }
3053
+ // ----------------------------------------
3054
+ // Exports
3055
+ // ----------------------------------------
2981
3056
 
2982
- return a.localeCompare(b)
3057
+ sortCssMediaQueries = sortCSSmq;
3058
+ return sortCssMediaQueries;
2983
3059
  }
2984
3060
 
2985
- /**
2986
- * Sorting an array with media queries
2987
- * according to the desktop-first methodology.
2988
- * @param {string} a
2989
- * @param {string} b
2990
- * @return {number} 1 / 0 / -1
2991
- */
2992
- sortCSSmq$1.desktopFirst = function (a, b) {
2993
- const testIsPrint = _testIsPrint(a, b);
2994
- if (testIsPrint !== null) {
2995
- return testIsPrint
2996
- }
3061
+ var dist;
3062
+ var hasRequiredDist;
2997
3063
 
2998
- const minA = isMinWidth(a) || isMinHeight(a);
2999
- const maxA = isMaxWidth(a) || isMaxHeight(a);
3064
+ function requireDist () {
3065
+ if (hasRequiredDist) return dist;
3066
+ hasRequiredDist = 1;
3000
3067
 
3001
- const minB = isMinWidth(b) || isMinHeight(b);
3002
- const maxB = isMaxWidth(b) || isMaxHeight(b);
3068
+ var _tslib = require_tslib();
3069
+ var jss = require$$1;
3070
+ var sortCSSmq = requireSortCssMediaQueries();
3003
3071
 
3004
- if (minA && maxB) {
3005
- return 1
3006
- }
3007
- if (maxA && minB) {
3008
- return -1
3009
- }
3010
-
3011
- const lengthA = _getQueryLength(a);
3012
- const lengthB = _getQueryLength(b);
3013
-
3014
- if (lengthA === maxValue && lengthB === maxValue) {
3015
- return a.localeCompare(b)
3016
- } else if (lengthA === maxValue) {
3017
- return 1
3018
- } else if (lengthB === maxValue) {
3019
- return -1
3020
- }
3021
-
3022
- if (lengthA > lengthB) {
3023
- if (maxA) {
3024
- return -1
3025
- }
3026
- return 1
3027
- }
3028
-
3029
- if (lengthA < lengthB) {
3030
- if (maxA) {
3031
- return 1
3032
- }
3033
- return -1
3034
- }
3035
-
3036
- return -(a.localeCompare(b))
3037
- };
3038
-
3039
- // ----------------------------------------
3040
- // Exports
3041
- // ----------------------------------------
3042
-
3043
- var sortCssMediaQueries = sortCSSmq$1;
3044
-
3045
- var _tslib = _tslib$1;
3046
- var jss$1 = require$$1;
3047
- var sortCSSmq = sortCssMediaQueries;
3048
-
3049
- function _interopDefaultLegacy(e) {
3050
- return e && typeof e === 'object' && 'default' in e ? e : { default: e };
3051
- }
3072
+ function _interopDefaultLegacy(e) {
3073
+ return e && typeof e === 'object' && 'default' in e ? e : { default: e };
3074
+ }
3052
3075
 
3053
- var sortCSSmq__default = /*#__PURE__*/ _interopDefaultLegacy(sortCSSmq);
3076
+ var sortCSSmq__default = /*#__PURE__*/ _interopDefaultLegacy(sortCSSmq);
3054
3077
 
3055
- function isPlainObject(sample) {
3056
- return (
3057
- sample !== null && typeof sample === 'object' && Array.isArray(sample) === false
3058
- );
3059
- }
3060
- var UN_QUERIED = '__UN_QUERIED';
3061
- function recursiveInnerAndGetQueries(pluginOptions, rules) {
3062
- var queries = {
3063
- groups: {},
3064
- groupsSortNames: []
3065
- };
3066
- for (var index = 0; index < rules.length; index++) {
3067
- var rule = rules[index];
3068
- var query =
3069
- rule.type === 'conditional' && typeof rule.query === 'string'
3070
- ? rule.query
3071
- : UN_QUERIED;
3072
- if (!queries.groups.hasOwnProperty(query)) {
3073
- queries.groupsSortNames.push(query);
3074
- queries.groups[query] = [];
3075
- }
3076
- queries.groups[query].push(index);
3077
- // eslint-disable-next-line @typescript-eslint/no-use-before-define
3078
- recursive(pluginOptions, rule);
3078
+ function isPlainObject(sample) {
3079
+ return (
3080
+ sample !== null && typeof sample === 'object' && Array.isArray(sample) === false
3081
+ );
3079
3082
  }
3080
- queries.groupsSortNames.sort(function (a, b) {
3081
- var aWeight = a === UN_QUERIED ? 0 : a.length;
3082
- var bWeight = b === UN_QUERIED ? 0 : b.length;
3083
- if (aWeight > 0 && bWeight > 0) {
3084
- if (pluginOptions.desktopFirst) {
3085
- return sortCSSmq__default['default'].desktopFirst(a, b);
3086
- } else {
3087
- return sortCSSmq__default['default'](a, b);
3083
+ var UN_QUERIED = '__UN_QUERIED';
3084
+ function recursiveInnerAndGetQueries(pluginOptions, rules) {
3085
+ var queries = {
3086
+ groups: {},
3087
+ groupsSortNames: []
3088
+ };
3089
+ for (var index = 0; index < rules.length; index++) {
3090
+ var rule = rules[index];
3091
+ var query =
3092
+ rule.type === 'conditional' && typeof rule.query === 'string'
3093
+ ? rule.query
3094
+ : UN_QUERIED;
3095
+ if (!queries.groups.hasOwnProperty(query)) {
3096
+ queries.groupsSortNames.push(query);
3097
+ queries.groups[query] = [];
3088
3098
  }
3089
- } else {
3090
- return aWeight - bWeight;
3099
+ queries.groups[query].push(index);
3100
+ // eslint-disable-next-line @typescript-eslint/no-use-before-define
3101
+ recursive(pluginOptions, rule);
3091
3102
  }
3092
- });
3093
- return queries;
3094
- }
3095
- function recursive(pluginOptions, data) {
3096
- if (isPlainObject(data) && data.rules instanceof jss$1.RuleList) {
3097
- data.rules.toString = function (options) {
3098
- if (options === void 0) {
3099
- options = {};
3100
- }
3101
- var str = '';
3102
- var sheet = this.options.sheet;
3103
- var link = sheet ? sheet.options.link : false;
3104
- var _a = recursiveInnerAndGetQueries(pluginOptions, this.index),
3105
- groups = _a.groups,
3106
- groupsSortNames = _a.groupsSortNames;
3107
- for (var i = 0; i < groupsSortNames.length; i++) {
3108
- var groupName = groupsSortNames[i];
3109
- var group = groups[groupsSortNames[i]];
3110
- if (groupName !== UN_QUERIED && pluginOptions.combineMediaQueries) {
3111
- str += '\n' + groupName + ' {';
3112
- for (var i_1 = 0; i_1 < group.length; i_1++) {
3113
- var rule = this.index[group[i_1]];
3114
- var css = rule.rules.toString(
3115
- _tslib.__assign(_tslib.__assign({}, options), {
3116
- indent: (options.indent || 0) + 1
3117
- })
3118
- );
3119
- if (!css && !link) continue;
3120
- if (str) str += '\n';
3121
- str += css;
3122
- }
3123
- str += '\n}\n';
3103
+ queries.groupsSortNames.sort(function (a, b) {
3104
+ var aWeight = a === UN_QUERIED ? 0 : a.length;
3105
+ var bWeight = b === UN_QUERIED ? 0 : b.length;
3106
+ if (aWeight > 0 && bWeight > 0) {
3107
+ if (pluginOptions.desktopFirst) {
3108
+ return sortCSSmq__default['default'].desktopFirst(a, b);
3124
3109
  } else {
3125
- for (var i_2 = 0; i_2 < group.length; i_2++) {
3126
- var rule = this.index[group[i_2]];
3127
- var css = rule.toString(options);
3128
- if (!css && !link) continue;
3129
- if (str) str += '\n';
3130
- str += css;
3131
- }
3110
+ return sortCSSmq__default['default'](a, b);
3132
3111
  }
3112
+ } else {
3113
+ return aWeight - bWeight;
3133
3114
  }
3134
- return str;
3135
- };
3115
+ });
3116
+ return queries;
3136
3117
  }
3137
- }
3138
- function jssCombineAndSortMQ(options) {
3139
- if (options === void 0) {
3140
- options = {};
3118
+ function recursive(pluginOptions, data) {
3119
+ if (isPlainObject(data) && data.rules instanceof jss.RuleList) {
3120
+ data.rules.toString = function (options) {
3121
+ if (options === void 0) {
3122
+ options = {};
3123
+ }
3124
+ var str = '';
3125
+ var sheet = this.options.sheet;
3126
+ var link = sheet ? sheet.options.link : false;
3127
+ var _a = recursiveInnerAndGetQueries(pluginOptions, this.index),
3128
+ groups = _a.groups,
3129
+ groupsSortNames = _a.groupsSortNames;
3130
+ for (var i = 0; i < groupsSortNames.length; i++) {
3131
+ var groupName = groupsSortNames[i];
3132
+ var group = groups[groupsSortNames[i]];
3133
+ if (groupName !== UN_QUERIED && pluginOptions.combineMediaQueries) {
3134
+ str += '\n' + groupName + ' {';
3135
+ for (var i_1 = 0; i_1 < group.length; i_1++) {
3136
+ var rule = this.index[group[i_1]];
3137
+ var css = rule.rules.toString(
3138
+ _tslib.__assign(_tslib.__assign({}, options), {
3139
+ indent: (options.indent || 0) + 1
3140
+ })
3141
+ );
3142
+ if (!css && !link) continue;
3143
+ if (str) str += '\n';
3144
+ str += css;
3145
+ }
3146
+ str += '\n}\n';
3147
+ } else {
3148
+ for (var i_2 = 0; i_2 < group.length; i_2++) {
3149
+ var rule = this.index[group[i_2]];
3150
+ var css = rule.toString(options);
3151
+ if (!css && !link) continue;
3152
+ if (str) str += '\n';
3153
+ str += css;
3154
+ }
3155
+ }
3156
+ }
3157
+ return str;
3158
+ };
3159
+ }
3141
3160
  }
3142
- return {
3143
- onProcessSheet: function (sheet) {
3144
- recursive(options, sheet);
3161
+ function jssCombineAndSortMQ(options) {
3162
+ if (options === void 0) {
3163
+ options = {};
3145
3164
  }
3146
- };
3147
- }
3165
+ return {
3166
+ onProcessSheet: function (sheet) {
3167
+ recursive(options, sheet);
3168
+ }
3169
+ };
3170
+ }
3148
3171
 
3149
- var dist = jssCombineAndSortMQ;
3172
+ dist = jssCombineAndSortMQ;
3173
+ return dist;
3174
+ }
3150
3175
 
3151
- var jssPluginSortMediaQueries = /*@__PURE__*/getDefaultExportFromCjs(dist);
3176
+ var distExports = requireDist();
3177
+ var jssPluginSortMediaQueries = /*@__PURE__*/getDefaultExportFromCjs(distExports);
3152
3178
 
3153
3179
  const isDisabledOrLoading = (disabled, loading) => {
3154
3180
  return disabled || loading;
@@ -3166,30 +3192,10 @@ const darken = (hsl) => {
3166
3192
  };
3167
3193
  const changeColor = (hsl, lightness) => {
3168
3194
  return hsl.replace(/\s(\d+)(%?)\//, (_, p1, p2) => {
3169
- return ` ${Math.min(Math.max(parseInt(p1, 10) + lightness, 0), 100)}${p2}/`;
3195
+ return ` ${Math.min(Math.max(Number.parseInt(p1, 10) + lightness, 0), 100)}${p2}/`;
3170
3196
  });
3171
3197
  };
3172
3198
 
3173
- const parseJSON = (prop) => {
3174
- if (typeof prop === 'string') {
3175
- try {
3176
- // prop is potentially JSON parsable string, e.g. "{ base: 'block', l: 'inline' }" or "true" or "false"
3177
- return JSON.parse(prop
3178
- .replace(/'/g, '"') // convert single quotes to double quotes
3179
- .replace(/[\s"]?([a-z]+)[\s"]?:([^//])/g, '"$1":$2') // wrap keys in double quotes if they don't have them but ignore potential urls
3180
- );
3181
- }
3182
- catch {
3183
- // prop is string, e.g. "block" or "inline"
3184
- return prop;
3185
- }
3186
- }
3187
- else {
3188
- // prop is object, e.g. { base: 'block', l: 'inline' } or number, e.g. 123 or boolean, e.g. true
3189
- return prop;
3190
- }
3191
- };
3192
-
3193
3199
  const borderRadiusSmall = '4px';
3194
3200
 
3195
3201
  const borderRadiusMedium = '8px';
@@ -3628,6 +3634,7 @@ const addImportantToEachRule = (input) => {
3628
3634
  ? result
3629
3635
  : // @ts-expect-error: Type string can't be used to index type JssStyle
3630
3636
  ((result[key] =
3637
+ // biome-ignore lint/style/noCommaOperator: to be refactored
3631
3638
  typeof value === 'object' ? addImportantToEachRule(value) : addImportantToRule(value)),
3632
3639
  result), {});
3633
3640
  };
@@ -3775,6 +3782,26 @@ const forcedColorsMediaQuery = (style) => {
3775
3782
  return { '@media (forced-colors: active)': style };
3776
3783
  };
3777
3784
 
3785
+ const parseJSON = (prop) => {
3786
+ if (typeof prop === 'string') {
3787
+ try {
3788
+ // prop is potentially JSON parsable string, e.g. "{ base: 'block', l: 'inline' }" or "true" or "false"
3789
+ return JSON.parse(prop
3790
+ .replace(/'/g, '"') // convert single quotes to double quotes
3791
+ .replace(/[\s"]?([a-z]+)[\s"]?:([^//])/g, '"$1":$2') // wrap keys in double quotes if they don't have them but ignore potential urls
3792
+ );
3793
+ }
3794
+ catch {
3795
+ // prop is string, e.g. "block" or "inline"
3796
+ return prop;
3797
+ }
3798
+ }
3799
+ else {
3800
+ // prop is object, e.g. { base: 'block', l: 'inline' } or number, e.g. 123 or boolean, e.g. true
3801
+ return prop;
3802
+ }
3803
+ };
3804
+
3778
3805
  // NOTE: handpicked selection of plugins from jss-preset-default
3779
3806
  const jss = createJss({
3780
3807
  plugins: [
@@ -3818,6 +3845,7 @@ const isObject = (obj) => typeof obj === 'object' && !Array.isArray(obj);
3818
3845
  // NOTE: taken from https://stackoverflow.com/a/48218209
3819
3846
  const mergeDeep = (...objects) => {
3820
3847
  return objects.reduce((prev, obj) => {
3848
+ // biome-ignore lint/complexity/noForEach: to be refactored
3821
3849
  Object.keys(obj).forEach((key) => {
3822
3850
  const pVal = prev[key];
3823
3851
  const oVal = obj[key];
@@ -3845,12 +3873,13 @@ const mergeDeep = (...objects) => {
3845
3873
  const attributeMutationMap = new Map();
3846
3874
  hasWindow &&
3847
3875
  new MutationObserver((mutations) => {
3848
- mutations
3876
+ for (const mutation of mutations
3849
3877
  // reduce array to only entries that have really a changed value
3850
3878
  .filter((mutation) => mutation.oldValue !== mutation.target.getAttribute(mutation.attributeName))
3851
3879
  // remove duplicates so we execute callback only once per node
3852
- .filter((mutation, idx, arr) => arr.findIndex((m) => m.target === mutation.target) === idx)
3853
- .forEach((mutation) => attributeMutationMap.get(mutation.target)?.());
3880
+ .filter((mutation, idx, arr) => arr.findIndex((m) => m.target === mutation.target) === idx)) {
3881
+ attributeMutationMap.get(mutation.target)?.();
3882
+ }
3854
3883
  });
3855
3884
 
3856
3885
  const mediaQueries = Object.values(breakpoint).map((v) => `(min-width:${v}px)`);
@@ -3872,17 +3901,14 @@ const observedNodesMap = new Map();
3872
3901
  hasWindow &&
3873
3902
  new MutationObserver((mutations) => {
3874
3903
  // there may be race conditions in jsdom-polyfill tests where the map is already empty when a mutation happens
3875
- if (observedNodesMap.size) {
3904
+ if (observedNodesMap.size > 0) {
3876
3905
  const observedNodes = Array.from(observedNodesMap.keys());
3877
- mutations
3878
- // remove duplicates so we execute callback only once per node
3879
- .filter((mutation, idx, arr) => arr.findIndex((m) => m.target === mutation.target) === idx)
3880
- // find all observing parent nodes of mutated node and invoke their callbacks
3881
- .forEach((mutation) => {
3882
- observedNodes
3883
- .filter((node) => node.contains(mutation.target))
3884
- .forEach((node) => observedNodesMap.get(node)?.());
3885
- });
3906
+ // remove duplicates so we execute callback only once per node
3907
+ for (const mutation of mutations.filter((mutation, idx, arr) => arr.findIndex((m) => m.target === mutation.target) === idx)) {
3908
+ for (const node of observedNodes.filter((node) => node.contains(mutation.target))) {
3909
+ observedNodesMap.get(node)?.();
3910
+ }
3911
+ }
3886
3912
  }
3887
3913
  });
3888
3914
 
@@ -3921,7 +3947,7 @@ const supportsNativePopover = () => {
3921
3947
  if (!hasWindow) {
3922
3948
  return false;
3923
3949
  }
3924
- return HTMLElement.prototype.hasOwnProperty('popover');
3950
+ return Object.prototype.hasOwnProperty.call(HTMLElement.prototype, 'popover');
3925
3951
  };
3926
3952
  // determine it once
3927
3953
  supportsNativePopover();
@@ -3948,8 +3974,7 @@ const formatObjectOutput = (value) => {
3948
3974
  .replace(/(})/g, ' $1') // add space before following: }
3949
3975
  .replace(/^"(.+)"$/, '$1'); // remove wrapping double quotes
3950
3976
  };
3951
- 'value, ' +
3952
- formatObjectOutput(breakpoints.reduce((prev, key) => ({ ...prev, [key + (key !== 'base' ? '?' : '')]: 'value' }), {})).replace(/"/g, '');
3977
+ `value, ${formatObjectOutput(breakpoints.reduce((prev, key) => ({ ...prev, [key + (key !== 'base' ? '?' : '')]: 'value' }), {})).replace(/"/g, '')}`;
3953
3978
 
3954
3979
  const getComponentCss$19 = (size, compact, open, theme, sticky) => {
3955
3980
  const { primaryColor, hoverColor, contrastLowColor, backgroundColor } = getThemedColors(theme);
@@ -5125,7 +5150,7 @@ const getComponentCss$12 = (gradientColor, hasHeading, hasDescription, hasContro
5125
5150
  },
5126
5151
  ...preventFoucOfNestedElementsStyles,
5127
5152
  ...(hasControlsSlot && {
5128
- ['slot[name="controls"]']: {
5153
+ 'slot[name="controls"]': {
5129
5154
  display: 'block',
5130
5155
  gridColumnStart: 1,
5131
5156
  gridRowStart: 3,
@@ -5161,10 +5186,10 @@ const getComponentCss$12 = (gradientColor, hasHeading, hasDescription, hasContro
5161
5186
  ...(hasHeading && {
5162
5187
  [selectorHeading]: {
5163
5188
  maxWidth: '56.25rem',
5164
- margin: `0 0 ${!hasDescription ? spacingFluidMedium : 0}`,
5189
+ margin: `0 0 ${hasDescription ? 0 : spacingFluidMedium}`,
5165
5190
  ...(headingSize === 'xx-large' ? headingXXLargeStyle : headingXLargeStyle),
5166
5191
  },
5167
- ['::slotted([slot=heading])']: {
5192
+ '::slotted([slot=heading])': {
5168
5193
  margin: 0, // reset ua-style
5169
5194
  ...(headingSize === 'xx-large' ? headingXXLargeStyle : headingXLargeStyle),
5170
5195
  },
@@ -5749,8 +5774,19 @@ const getComponentCss$10 = (hideLabel, state, isDisabled, isLoading, compact, th
5749
5774
  backgroundSize: 'cover',
5750
5775
  }),
5751
5776
  },
5752
- ...(!isLoading
5777
+ ...(isLoading
5753
5778
  ? {
5779
+ 'input:checked': {
5780
+ // background-image is merged in later
5781
+ borderColor: checkedColor,
5782
+ backgroundColor: checkedColor,
5783
+ ...prefersColorSchemeDarkMediaQuery(theme, {
5784
+ borderColor: checkedColorDark,
5785
+ backgroundColor: checkedColorDark,
5786
+ }),
5787
+ },
5788
+ }
5789
+ : {
5754
5790
  'input:checked': {
5755
5791
  borderColor: checkedColor,
5756
5792
  backgroundColor: checkedColor,
@@ -5785,17 +5821,6 @@ const getComponentCss$10 = (hideLabel, state, isDisabled, isLoading, compact, th
5785
5821
  backgroundImage: getIndeterminateSVGBackgroundImage('white'),
5786
5822
  })),
5787
5823
  },
5788
- }
5789
- : {
5790
- 'input:checked': {
5791
- // background-image is merged in later
5792
- borderColor: checkedColor,
5793
- backgroundColor: checkedColor,
5794
- ...prefersColorSchemeDarkMediaQuery(theme, {
5795
- borderColor: checkedColorDark,
5796
- backgroundColor: checkedColorDark,
5797
- }),
5798
- },
5799
5824
  }),
5800
5825
  ...(!disabledOrLoading &&
5801
5826
  !isHighContrastMode &&
@@ -7892,7 +7917,7 @@ const getComponentCss$D = (model, safeZone, size, color, theme) => {
7892
7917
  maxWidth: '100%',
7893
7918
  maxHeight: '100%',
7894
7919
  // width + height style can't be !important atm to be backwards compatible with e.g. `<p-model-signature size="inherit" style="height: 50px"/>`
7895
- width: `var(${cssVariableWidth},${isSizeInherit ? 'auto' : width + 'px'})`,
7920
+ width: `var(${cssVariableWidth},${isSizeInherit ? 'auto' : `${width}px`})`,
7896
7921
  height: `var(${cssVariableHeight},auto)`,
7897
7922
  ...addImportantToEachRule({
7898
7923
  mask: `url(${getSvgUrl(model)}) no-repeat left top / contain`,
@@ -8060,7 +8085,7 @@ const getSlottedTextFieldTextareaSelectStyles = (child, state, isLoading, theme,
8060
8085
  }),
8061
8086
  ...additionalDefaultJssStyle,
8062
8087
  },
8063
- ['::slotted(:not(input[type="password"]))']: {
8088
+ '::slotted(:not(input[type="password"]))': {
8064
8089
  textOverflow: 'ellipsis',
8065
8090
  },
8066
8091
  ...(!isLoading &&
@@ -8608,7 +8633,7 @@ const removeStyles = (selector, styles) => Object.fromEntries(Object.entries(sty
8608
8633
  return [key, value];
8609
8634
  }));
8610
8635
 
8611
- const getComponentCss$x = (hideLabel, state, isDisabled, isLoading, isWithinForm, length, theme) => {
8636
+ const getComponentCss$x = (hideLabel, state, isDisabled, isLoading, length, theme) => {
8612
8637
  const inputSize = `calc(${fontLineHeight} + 10px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2)`; // equivalent to calculation of input height within form-styles
8613
8638
  const inputStyles = removeStyles('input[readonly]', removeSlottedSelector(getSlottedTextFieldTextareaSelectStyles('input', state, isLoading, theme, {
8614
8639
  // TODO: move into getSlottedTextFieldTextareaSelectStyles()
@@ -8656,15 +8681,6 @@ const getComponentCss$x = (hideLabel, state, isDisabled, isLoading, isWithinForm
8656
8681
  ...preventFoucOfNestedElementsStyles,
8657
8682
  // input
8658
8683
  ...inputStyles,
8659
- ...(isWithinForm &&
8660
- addImportantToEachRule({
8661
- '::slotted([slot=internal-input])': {
8662
- position: 'absolute',
8663
- height: inputSize,
8664
- width: 0,
8665
- opacity: 0,
8666
- },
8667
- })),
8668
8684
  },
8669
8685
  root: {
8670
8686
  display: 'grid',
@@ -9204,11 +9220,7 @@ const getComponentCss$t = (isDisabled, isSelected, hasIcon, hasSlottedContent, t
9204
9220
  }),
9205
9221
  });
9206
9222
  };
9207
-
9208
- const MIN_ITEM_WIDTH = 46;
9209
- const MAX_ITEM_WIDTH = 220;
9210
9223
  const getComponentCss$s = (maxWidth, columns) => {
9211
- maxWidth = (maxWidth > MAX_ITEM_WIDTH && MAX_ITEM_WIDTH) || (maxWidth < MIN_ITEM_WIDTH && MIN_ITEM_WIDTH) || maxWidth;
9212
9224
  return getCss({
9213
9225
  '@global': {
9214
9226
  ':host': {
@@ -9216,7 +9228,9 @@ const getComponentCss$s = (maxWidth, columns) => {
9216
9228
  ...addImportantToEachRule({
9217
9229
  gridAutoRows: '1fr', // for equal height
9218
9230
  ...buildResponsiveStyles(columns, (col) => ({
9219
- gridTemplateColumns: col === 'auto' ? `repeat(auto-fit, ${maxWidth}px)` : `repeat(${col}, minmax(0, 1fr))`,
9231
+ gridTemplateColumns: col === 'auto'
9232
+ ? `repeat(auto-fit, ${maxWidth}px)`
9233
+ : `repeat(${col}, minmax(0, 1fr))`,
9220
9234
  })),
9221
9235
  gap: '6px',
9222
9236
  ...colorSchemeStyles,
@@ -9868,9 +9882,9 @@ const getComponentCss$o = (size, theme) => {
9868
9882
  };
9869
9883
 
9870
9884
  const getSVGPath = (stepCount, numberedCircleColors, isStateCurrent) => {
9871
- // # of the hexcolor starts a fragment identifier in URLs, so we have to replace it with the escaped value of # = %23
9872
- numberedCircleColors = Object.entries(numberedCircleColors).reduce((result, [key, value]) => ({ ...result, [key]: escapeHashCharacter(value) }), {});
9873
- const { disabledColor, invertedBaseColor, primaryColor } = numberedCircleColors;
9885
+ // # of the hex color starts a fragment identifier in URLs, so we have to replace it with the escaped value of # = %23
9886
+ const escapedNumberedCircleColors = Object.entries(numberedCircleColors).reduce((result, [key, value]) => ({ ...result, [key]: escapeHashCharacter(value) }), {});
9887
+ const { disabledColor, invertedBaseColor, primaryColor } = escapedNumberedCircleColors;
9874
9888
  const fillColor = isStateCurrent ? invertedBaseColor : disabledColor;
9875
9889
  const svgCirclePath = `<circle fill="${isStateCurrent ? primaryColor : 'none'}"${isStateCurrent ? '' : ` stroke="${fillColor}"`} stroke-width="1px" cx="12" cy="12" r="9"/>`;
9876
9890
  // Full SVG is provided by design (./numbers_raw.svg), created with illustrator and optimized with ImageOptim.
@@ -9899,7 +9913,7 @@ const getComponentCss$n = (state, disabled, theme) => {
9899
9913
  '@global': {
9900
9914
  ':host': {
9901
9915
  ...(isStateCurrentOrUndefined &&
9902
- Array.from(Array(9)).reduce((result, _, i) => ({
9916
+ Array.from(new Array(9)).reduce((result, _, i) => ({
9903
9917
  ...result,
9904
9918
  [`&(:nth-of-type(${i + 1})) $button::before`]: {
9905
9919
  backgroundImage: getInlineSVGBackgroundImage(getSVGPath(i, {
@@ -10465,8 +10479,7 @@ const getComponentCss$d = (size, weight, theme) => {
10465
10479
  },
10466
10480
  // conditionally applied and removed based on if activeTabIndex exists
10467
10481
  [scrollerAnimatedCssClass]: {
10468
- ['& ' +
10469
- transformSelector('::slotted([role][aria-selected="true"])::after, ::slotted([role][aria-current="true"])::after')]: {
10482
+ [`& ${transformSelector('::slotted([role][aria-selected="true"])::after, ::slotted([role][aria-current="true"])::after')}`]: {
10470
10483
  transition: addImportantToRule(`visibility 0s linear var(${cssVariableTransitionDuration}, ${motionDurationModerate})`), // bar appears after transition
10471
10484
  },
10472
10485
  },
@@ -11085,7 +11098,7 @@ const getComponentCss$3 = (isDisabled, hideLabel, state, hasCounter, resize, the
11085
11098
  },
11086
11099
  ...hoverMediaQuery({
11087
11100
  // with the media query the selector has higher priority and overrides disabled styles
11088
- ['textarea:not(:disabled):not(:focus):not([readonly]):hover,label:hover~.wrapper textarea:not(:disabled):not(:focus):not([readonly])']: {
11101
+ 'textarea:not(:disabled):not(:focus):not([readonly]):hover,label:hover~.wrapper textarea:not(:disabled):not(:focus):not([readonly])': {
11089
11102
  borderColor: formStateHoverColor || primaryColor,
11090
11103
  ...prefersColorSchemeDarkMediaQuery(theme, {
11091
11104
  borderColor: formStateHoverColorDark || primaryColorDark,