@porsche-design-system/components-react 2.19.0-rc.2 → 2.19.1-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -3
- package/jsdom-polyfill/index.js +12 -1
- package/jsdom-polyfill.d.ts +1 -0
- package/lib/components/button-group.wrapper.d.ts +3 -3
- package/lib/components/button-pure.wrapper.d.ts +3 -3
- package/lib/components/divider.wrapper.d.ts +3 -3
- package/lib/components/flex-item.wrapper.d.ts +13 -13
- package/lib/components/flex.wrapper.d.ts +13 -13
- package/lib/components/grid-item.wrapper.d.ts +5 -5
- package/lib/components/grid.wrapper.d.ts +7 -7
- package/lib/components/icon.wrapper.d.ts +3 -3
- package/lib/components/link-pure.wrapper.d.ts +5 -5
- package/lib/components/link-tile.wrapper.d.ts +3 -3
- package/lib/components/link.wrapper.d.ts +3 -3
- package/lib/components/marque.wrapper.d.ts +3 -3
- package/lib/components/modal.wrapper.d.ts +3 -3
- package/lib/components/spinner.wrapper.d.ts +5 -5
- package/lib/components/switch.wrapper.d.ts +3 -3
- package/lib/types.d.ts +26 -47
- package/package.json +2 -2
- package/ssr/components/dist/styles/esm/styles-entry.js +46 -23
- package/ssr/components/dist/utils/esm/utils-entry.js +46 -23
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +2 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +3 -8
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.js +2 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.js +4 -9
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +2 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js +4 -9
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.js +4 -9
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.js +2 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.js +5 -10
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.js +2 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.js +2 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.js +2 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.js +3 -8
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.js +2 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.js +3 -8
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.js +4 -9
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.js +2 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.js +2 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.js +2 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.js +3 -8
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.js +2 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.js +4 -9
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +2 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.js +2 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.js +3 -8
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +4 -9
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.js +2 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +3 -8
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.js +2 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-body.js +2 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-cell.js +2 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.js +2 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-row.js +2 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head.js +2 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-row.js +2 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.js +3 -8
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +2 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-item.js +2 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +4 -9
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.js +2 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.js +2 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +7 -12
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.js +2 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.js +3 -8
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.js +2 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.js +4 -9
- package/ssr/components-react/projects/react-ssr-wrapper/src/splitChildren.js +28 -0
- package/ssr/esm/components/dist/styles/esm/styles-entry.js +46 -23
- package/ssr/esm/components/dist/utils/esm/utils-entry.js +46 -23
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +3 -8
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.js +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.js +4 -9
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js +4 -9
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.js +4 -9
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.js +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.js +5 -10
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.js +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.js +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.js +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.js +3 -8
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.js +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.js +3 -8
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.js +4 -9
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.js +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.js +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.js +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.js +3 -8
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.js +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.js +4 -9
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.js +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.js +3 -8
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +4 -9
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.js +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +3 -8
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.js +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-body.js +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-cell.js +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.js +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-row.js +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head.js +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-row.js +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.js +3 -8
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-item.js +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +4 -9
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.js +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.js +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +7 -12
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.js +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.js +3 -8
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.js +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.js +4 -9
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/splitChildren.js +26 -0
- package/ssr/lib/components/button-group.wrapper.d.ts +3 -3
- package/ssr/lib/components/button-pure.wrapper.d.ts +3 -3
- package/ssr/lib/components/divider.wrapper.d.ts +3 -3
- package/ssr/lib/components/flex-item.wrapper.d.ts +13 -13
- package/ssr/lib/components/flex.wrapper.d.ts +13 -13
- package/ssr/lib/components/grid-item.wrapper.d.ts +5 -5
- package/ssr/lib/components/grid.wrapper.d.ts +7 -7
- package/ssr/lib/components/icon.wrapper.d.ts +3 -3
- package/ssr/lib/components/link-pure.wrapper.d.ts +5 -5
- package/ssr/lib/components/link-tile.wrapper.d.ts +3 -3
- package/ssr/lib/components/link.wrapper.d.ts +3 -3
- package/ssr/lib/components/marque.wrapper.d.ts +3 -3
- package/ssr/lib/components/modal.wrapper.d.ts +3 -3
- package/ssr/lib/components/spinner.wrapper.d.ts +5 -5
- package/ssr/lib/components/switch.wrapper.d.ts +3 -3
- package/ssr/lib/types.d.ts +26 -47
- package/ssr/splitChildren.d.ts +17 -0
- package/testing/index.js +8 -42
- package/testing.d.ts +1 -9
|
@@ -581,8 +581,8 @@ var isBrowser = (typeof window === "undefined" ? "undefined" : _typeof$1(window)
|
|
|
581
581
|
|
|
582
582
|
var module$1 = /*#__PURE__*/Object.freeze({
|
|
583
583
|
__proto__: null,
|
|
584
|
-
|
|
585
|
-
|
|
584
|
+
default: isBrowser,
|
|
585
|
+
isBrowser: isBrowser
|
|
586
586
|
});
|
|
587
587
|
|
|
588
588
|
var isProduction = process.env.NODE_ENV === 'production';
|
|
@@ -2963,13 +2963,13 @@ var index = createJss();
|
|
|
2963
2963
|
|
|
2964
2964
|
var jss_esm = /*#__PURE__*/Object.freeze({
|
|
2965
2965
|
__proto__: null,
|
|
2966
|
-
default: index,
|
|
2967
2966
|
RuleList: RuleList,
|
|
2968
2967
|
SheetsManager: SheetsManager,
|
|
2969
2968
|
SheetsRegistry: SheetsRegistry,
|
|
2970
2969
|
create: createJss,
|
|
2971
2970
|
createGenerateId: createGenerateId,
|
|
2972
2971
|
createRule: createRule,
|
|
2972
|
+
default: index,
|
|
2973
2973
|
getDynamicStyles: getDynamicStyles,
|
|
2974
2974
|
hasCSSTOMSupport: hasCSSTOMSupport,
|
|
2975
2975
|
sheets: sheets,
|
|
@@ -2977,6 +2977,7 @@ var jss_esm = /*#__PURE__*/Object.freeze({
|
|
|
2977
2977
|
});
|
|
2978
2978
|
|
|
2979
2979
|
function getAugmentedNamespace(n) {
|
|
2980
|
+
if (n.__esModule) return n;
|
|
2980
2981
|
var f = n.default;
|
|
2981
2982
|
if (typeof f == "function") {
|
|
2982
2983
|
var a = function a () {
|
|
@@ -5061,32 +5062,46 @@ var cssVendor_cjs = {};
|
|
|
5061
5062
|
|
|
5062
5063
|
var require$$0 = /*@__PURE__*/getAugmentedNamespace(module$1);
|
|
5063
5064
|
|
|
5064
|
-
var
|
|
5065
|
+
var toConsumableArrayExports = {};
|
|
5066
|
+
var toConsumableArray = {
|
|
5067
|
+
get exports(){ return toConsumableArrayExports; },
|
|
5068
|
+
set exports(v){ toConsumableArrayExports = v; },
|
|
5069
|
+
};
|
|
5065
5070
|
|
|
5066
|
-
var
|
|
5071
|
+
var arrayWithoutHolesExports = {};
|
|
5072
|
+
var arrayWithoutHoles = {
|
|
5073
|
+
get exports(){ return arrayWithoutHolesExports; },
|
|
5074
|
+
set exports(v){ arrayWithoutHolesExports = v; },
|
|
5075
|
+
};
|
|
5067
5076
|
|
|
5068
|
-
var
|
|
5077
|
+
var arrayLikeToArrayExports = {};
|
|
5078
|
+
var arrayLikeToArray = {
|
|
5079
|
+
get exports(){ return arrayLikeToArrayExports; },
|
|
5080
|
+
set exports(v){ arrayLikeToArrayExports = v; },
|
|
5081
|
+
};
|
|
5069
5082
|
|
|
5070
5083
|
(function (module) {
|
|
5071
5084
|
function _arrayLikeToArray(arr, len) {
|
|
5072
5085
|
if (len == null || len > arr.length) len = arr.length;
|
|
5073
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
5074
|
-
arr2[i] = arr[i];
|
|
5075
|
-
}
|
|
5086
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
5076
5087
|
return arr2;
|
|
5077
5088
|
}
|
|
5078
5089
|
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
5079
5090
|
} (arrayLikeToArray));
|
|
5080
5091
|
|
|
5081
5092
|
(function (module) {
|
|
5082
|
-
var arrayLikeToArray
|
|
5093
|
+
var arrayLikeToArray = arrayLikeToArrayExports;
|
|
5083
5094
|
function _arrayWithoutHoles(arr) {
|
|
5084
|
-
if (Array.isArray(arr)) return arrayLikeToArray
|
|
5095
|
+
if (Array.isArray(arr)) return arrayLikeToArray(arr);
|
|
5085
5096
|
}
|
|
5086
5097
|
module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
5087
5098
|
} (arrayWithoutHoles));
|
|
5088
5099
|
|
|
5089
|
-
var
|
|
5100
|
+
var iterableToArrayExports = {};
|
|
5101
|
+
var iterableToArray = {
|
|
5102
|
+
get exports(){ return iterableToArrayExports; },
|
|
5103
|
+
set exports(v){ iterableToArrayExports = v; },
|
|
5104
|
+
};
|
|
5090
5105
|
|
|
5091
5106
|
(function (module) {
|
|
5092
5107
|
function _iterableToArray(iter) {
|
|
@@ -5095,22 +5110,30 @@ var iterableToArray = {exports: {}};
|
|
|
5095
5110
|
module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
5096
5111
|
} (iterableToArray));
|
|
5097
5112
|
|
|
5098
|
-
var
|
|
5113
|
+
var unsupportedIterableToArrayExports = {};
|
|
5114
|
+
var unsupportedIterableToArray = {
|
|
5115
|
+
get exports(){ return unsupportedIterableToArrayExports; },
|
|
5116
|
+
set exports(v){ unsupportedIterableToArrayExports = v; },
|
|
5117
|
+
};
|
|
5099
5118
|
|
|
5100
5119
|
(function (module) {
|
|
5101
|
-
var arrayLikeToArray
|
|
5120
|
+
var arrayLikeToArray = arrayLikeToArrayExports;
|
|
5102
5121
|
function _unsupportedIterableToArray(o, minLen) {
|
|
5103
5122
|
if (!o) return;
|
|
5104
|
-
if (typeof o === "string") return arrayLikeToArray
|
|
5123
|
+
if (typeof o === "string") return arrayLikeToArray(o, minLen);
|
|
5105
5124
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
5106
5125
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
5107
5126
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
5108
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray
|
|
5127
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
|
|
5109
5128
|
}
|
|
5110
5129
|
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
5111
5130
|
} (unsupportedIterableToArray));
|
|
5112
5131
|
|
|
5113
|
-
var
|
|
5132
|
+
var nonIterableSpreadExports = {};
|
|
5133
|
+
var nonIterableSpread = {
|
|
5134
|
+
get exports(){ return nonIterableSpreadExports; },
|
|
5135
|
+
set exports(v){ nonIterableSpreadExports = v; },
|
|
5136
|
+
};
|
|
5114
5137
|
|
|
5115
5138
|
(function (module) {
|
|
5116
5139
|
function _nonIterableSpread() {
|
|
@@ -5120,12 +5143,12 @@ var nonIterableSpread = {exports: {}};
|
|
|
5120
5143
|
} (nonIterableSpread));
|
|
5121
5144
|
|
|
5122
5145
|
(function (module) {
|
|
5123
|
-
var arrayWithoutHoles
|
|
5124
|
-
var iterableToArray
|
|
5125
|
-
var unsupportedIterableToArray
|
|
5126
|
-
var nonIterableSpread
|
|
5146
|
+
var arrayWithoutHoles = arrayWithoutHolesExports;
|
|
5147
|
+
var iterableToArray = iterableToArrayExports;
|
|
5148
|
+
var unsupportedIterableToArray = unsupportedIterableToArrayExports;
|
|
5149
|
+
var nonIterableSpread = nonIterableSpreadExports;
|
|
5127
5150
|
function _toConsumableArray(arr) {
|
|
5128
|
-
return arrayWithoutHoles
|
|
5151
|
+
return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
|
|
5129
5152
|
}
|
|
5130
5153
|
module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
5131
5154
|
} (toConsumableArray));
|
|
@@ -5135,7 +5158,7 @@ Object.defineProperty(cssVendor_cjs, '__esModule', { value: true });
|
|
|
5135
5158
|
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
5136
5159
|
|
|
5137
5160
|
var isInBrowser = _interopDefault(require$$0);
|
|
5138
|
-
var _toConsumableArray = _interopDefault(
|
|
5161
|
+
var _toConsumableArray = _interopDefault(toConsumableArrayExports);
|
|
5139
5162
|
|
|
5140
5163
|
// Export javascript style and css style vendor prefixes.
|
|
5141
5164
|
var js = '';
|
|
@@ -443,8 +443,8 @@ var isBrowser = (typeof window === "undefined" ? "undefined" : _typeof$1(window)
|
|
|
443
443
|
|
|
444
444
|
var module$1 = /*#__PURE__*/Object.freeze({
|
|
445
445
|
__proto__: null,
|
|
446
|
-
|
|
447
|
-
|
|
446
|
+
default: isBrowser,
|
|
447
|
+
isBrowser: isBrowser
|
|
448
448
|
});
|
|
449
449
|
|
|
450
450
|
var isProduction = process.env.NODE_ENV === 'production';
|
|
@@ -2825,13 +2825,13 @@ var index = createJss();
|
|
|
2825
2825
|
|
|
2826
2826
|
var jss_esm = /*#__PURE__*/Object.freeze({
|
|
2827
2827
|
__proto__: null,
|
|
2828
|
-
default: index,
|
|
2829
2828
|
RuleList: RuleList,
|
|
2830
2829
|
SheetsManager: SheetsManager,
|
|
2831
2830
|
SheetsRegistry: SheetsRegistry,
|
|
2832
2831
|
create: createJss,
|
|
2833
2832
|
createGenerateId: createGenerateId,
|
|
2834
2833
|
createRule: createRule,
|
|
2834
|
+
default: index,
|
|
2835
2835
|
getDynamicStyles: getDynamicStyles,
|
|
2836
2836
|
hasCSSTOMSupport: hasCSSTOMSupport,
|
|
2837
2837
|
sheets: sheets,
|
|
@@ -2839,6 +2839,7 @@ var jss_esm = /*#__PURE__*/Object.freeze({
|
|
|
2839
2839
|
});
|
|
2840
2840
|
|
|
2841
2841
|
function getAugmentedNamespace(n) {
|
|
2842
|
+
if (n.__esModule) return n;
|
|
2842
2843
|
var f = n.default;
|
|
2843
2844
|
if (typeof f == "function") {
|
|
2844
2845
|
var a = function a () {
|
|
@@ -4786,32 +4787,46 @@ var cssVendor_cjs = {};
|
|
|
4786
4787
|
|
|
4787
4788
|
var require$$0 = /*@__PURE__*/getAugmentedNamespace(module$1);
|
|
4788
4789
|
|
|
4789
|
-
var
|
|
4790
|
+
var toConsumableArrayExports = {};
|
|
4791
|
+
var toConsumableArray = {
|
|
4792
|
+
get exports(){ return toConsumableArrayExports; },
|
|
4793
|
+
set exports(v){ toConsumableArrayExports = v; },
|
|
4794
|
+
};
|
|
4790
4795
|
|
|
4791
|
-
var
|
|
4796
|
+
var arrayWithoutHolesExports = {};
|
|
4797
|
+
var arrayWithoutHoles = {
|
|
4798
|
+
get exports(){ return arrayWithoutHolesExports; },
|
|
4799
|
+
set exports(v){ arrayWithoutHolesExports = v; },
|
|
4800
|
+
};
|
|
4792
4801
|
|
|
4793
|
-
var
|
|
4802
|
+
var arrayLikeToArrayExports = {};
|
|
4803
|
+
var arrayLikeToArray = {
|
|
4804
|
+
get exports(){ return arrayLikeToArrayExports; },
|
|
4805
|
+
set exports(v){ arrayLikeToArrayExports = v; },
|
|
4806
|
+
};
|
|
4794
4807
|
|
|
4795
4808
|
(function (module) {
|
|
4796
4809
|
function _arrayLikeToArray(arr, len) {
|
|
4797
4810
|
if (len == null || len > arr.length) len = arr.length;
|
|
4798
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
4799
|
-
arr2[i] = arr[i];
|
|
4800
|
-
}
|
|
4811
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
4801
4812
|
return arr2;
|
|
4802
4813
|
}
|
|
4803
4814
|
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
4804
4815
|
} (arrayLikeToArray));
|
|
4805
4816
|
|
|
4806
4817
|
(function (module) {
|
|
4807
|
-
var arrayLikeToArray
|
|
4818
|
+
var arrayLikeToArray = arrayLikeToArrayExports;
|
|
4808
4819
|
function _arrayWithoutHoles(arr) {
|
|
4809
|
-
if (Array.isArray(arr)) return arrayLikeToArray
|
|
4820
|
+
if (Array.isArray(arr)) return arrayLikeToArray(arr);
|
|
4810
4821
|
}
|
|
4811
4822
|
module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
4812
4823
|
} (arrayWithoutHoles));
|
|
4813
4824
|
|
|
4814
|
-
var
|
|
4825
|
+
var iterableToArrayExports = {};
|
|
4826
|
+
var iterableToArray = {
|
|
4827
|
+
get exports(){ return iterableToArrayExports; },
|
|
4828
|
+
set exports(v){ iterableToArrayExports = v; },
|
|
4829
|
+
};
|
|
4815
4830
|
|
|
4816
4831
|
(function (module) {
|
|
4817
4832
|
function _iterableToArray(iter) {
|
|
@@ -4820,22 +4835,30 @@ var iterableToArray = {exports: {}};
|
|
|
4820
4835
|
module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
4821
4836
|
} (iterableToArray));
|
|
4822
4837
|
|
|
4823
|
-
var
|
|
4838
|
+
var unsupportedIterableToArrayExports = {};
|
|
4839
|
+
var unsupportedIterableToArray = {
|
|
4840
|
+
get exports(){ return unsupportedIterableToArrayExports; },
|
|
4841
|
+
set exports(v){ unsupportedIterableToArrayExports = v; },
|
|
4842
|
+
};
|
|
4824
4843
|
|
|
4825
4844
|
(function (module) {
|
|
4826
|
-
var arrayLikeToArray
|
|
4845
|
+
var arrayLikeToArray = arrayLikeToArrayExports;
|
|
4827
4846
|
function _unsupportedIterableToArray(o, minLen) {
|
|
4828
4847
|
if (!o) return;
|
|
4829
|
-
if (typeof o === "string") return arrayLikeToArray
|
|
4848
|
+
if (typeof o === "string") return arrayLikeToArray(o, minLen);
|
|
4830
4849
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
4831
4850
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
4832
4851
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
4833
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray
|
|
4852
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
|
|
4834
4853
|
}
|
|
4835
4854
|
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
4836
4855
|
} (unsupportedIterableToArray));
|
|
4837
4856
|
|
|
4838
|
-
var
|
|
4857
|
+
var nonIterableSpreadExports = {};
|
|
4858
|
+
var nonIterableSpread = {
|
|
4859
|
+
get exports(){ return nonIterableSpreadExports; },
|
|
4860
|
+
set exports(v){ nonIterableSpreadExports = v; },
|
|
4861
|
+
};
|
|
4839
4862
|
|
|
4840
4863
|
(function (module) {
|
|
4841
4864
|
function _nonIterableSpread() {
|
|
@@ -4845,12 +4868,12 @@ var nonIterableSpread = {exports: {}};
|
|
|
4845
4868
|
} (nonIterableSpread));
|
|
4846
4869
|
|
|
4847
4870
|
(function (module) {
|
|
4848
|
-
var arrayWithoutHoles
|
|
4849
|
-
var iterableToArray
|
|
4850
|
-
var unsupportedIterableToArray
|
|
4851
|
-
var nonIterableSpread
|
|
4871
|
+
var arrayWithoutHoles = arrayWithoutHolesExports;
|
|
4872
|
+
var iterableToArray = iterableToArrayExports;
|
|
4873
|
+
var unsupportedIterableToArray = unsupportedIterableToArrayExports;
|
|
4874
|
+
var nonIterableSpread = nonIterableSpreadExports;
|
|
4852
4875
|
function _toConsumableArray(arr) {
|
|
4853
|
-
return arrayWithoutHoles
|
|
4876
|
+
return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
|
|
4854
4877
|
}
|
|
4855
4878
|
module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
4856
4879
|
} (toConsumableArray));
|
|
@@ -4860,7 +4883,7 @@ Object.defineProperty(cssVendor_cjs, '__esModule', { value: true });
|
|
|
4860
4883
|
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4861
4884
|
|
|
4862
4885
|
var isInBrowser = _interopDefault(require$$0);
|
|
4863
|
-
var _toConsumableArray = _interopDefault(
|
|
4886
|
+
var _toConsumableArray = _interopDefault(toConsumableArrayExports);
|
|
4864
4887
|
|
|
4865
4888
|
// Export javascript style and css style vendor prefixes.
|
|
4866
4889
|
var js = '';
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import '../../provider.js';
|
|
4
|
+
import { splitChildren } from '../../splitChildren.js';
|
|
4
5
|
import { minifyCss } from '../../minifyCss.js';
|
|
5
6
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
6
7
|
import { getAccordionCss as getComponentCss$R } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
@@ -8,13 +9,7 @@ import { PIcon } from '../components/icon.wrapper.js';
|
|
|
8
9
|
|
|
9
10
|
class DSRAccordion extends Component {
|
|
10
11
|
render() {
|
|
11
|
-
|
|
12
|
-
? this.props.children
|
|
13
|
-
: this.props.children
|
|
14
|
-
? [this.props.children]
|
|
15
|
-
: [];
|
|
16
|
-
children.filter((child) => { var _a; return (_a = child.props) === null || _a === void 0 ? void 0 : _a.slot; });
|
|
17
|
-
children.filter((child) => { var _a; return !((_a = child.props) === null || _a === void 0 ? void 0 : _a.slot); });
|
|
12
|
+
splitChildren(this.props.children);
|
|
18
13
|
const buttonId = 'accordion-control';
|
|
19
14
|
const contentId = 'accordion-panel';
|
|
20
15
|
const Heading = this.props.tag;
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import '../../provider.js';
|
|
4
|
+
import { splitChildren } from '../../splitChildren.js';
|
|
4
5
|
import { minifyCss } from '../../minifyCss.js';
|
|
5
6
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
6
7
|
import { getBannerCss as getComponentCss$Q } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
@@ -9,15 +10,9 @@ import { PInlineNotification } from '../components/inline-notification.wrapper.j
|
|
|
9
10
|
|
|
10
11
|
class DSRBanner extends Component {
|
|
11
12
|
render() {
|
|
12
|
-
const children =
|
|
13
|
-
? this.props.children
|
|
14
|
-
: this.props.children
|
|
15
|
-
? [this.props.children]
|
|
16
|
-
: [];
|
|
17
|
-
const namedSlottedChildren = children.filter((child) => { var _a; return (_a = child.props) === null || _a === void 0 ? void 0 : _a.slot; });
|
|
18
|
-
children.filter((child) => { var _a; return !((_a = child.props) === null || _a === void 0 ? void 0 : _a.slot); });
|
|
13
|
+
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
19
14
|
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$Q()));
|
|
20
|
-
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(PContentWrapper, { width: this.props.width, children: jsxs(PInlineNotification, { className: "root", state: this.props.state, persistent: this.props.persistent, theme: this.props.theme, children: [
|
|
15
|
+
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(PContentWrapper, { width: this.props.width, children: jsxs(PInlineNotification, { className: "root", state: this.props.state, persistent: this.props.persistent, theme: this.props.theme, children: [namedSlotChildren.filter(({ props: { slot } }) => slot === 'title').length > 0 && jsx("slot", { name: "title", slot: "heading" }), namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0 && jsx("slot", { name: "description" })] }) })] }), this.props.children] }));
|
|
21
16
|
}
|
|
22
17
|
}
|
|
23
18
|
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { splitChildren } from '../../splitChildren.js';
|
|
2
3
|
import { Component } from 'react';
|
|
3
4
|
import { minifyCss } from '../../minifyCss.js';
|
|
4
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
@@ -6,13 +7,7 @@ import { getButtonGroupCss as getComponentCss$P } from '../../../../../../compon
|
|
|
6
7
|
|
|
7
8
|
class DSRButtonGroup extends Component {
|
|
8
9
|
render() {
|
|
9
|
-
|
|
10
|
-
? this.props.children
|
|
11
|
-
: this.props.children
|
|
12
|
-
? [this.props.children]
|
|
13
|
-
: [];
|
|
14
|
-
children.filter((child) => { var _a; return (_a = child.props) === null || _a === void 0 ? void 0 : _a.slot; });
|
|
15
|
-
children.filter((child) => { var _a; return !((_a = child.props) === null || _a === void 0 ? void 0 : _a.slot); });
|
|
10
|
+
splitChildren(this.props.children);
|
|
16
11
|
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$P(this.props.direction)));
|
|
17
12
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("div", { role: "group", children: jsx("slot", {}) })] }), this.props.children] }));
|
|
18
13
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import '../../provider.js';
|
|
4
|
+
import { splitChildren } from '../../splitChildren.js';
|
|
4
5
|
import { minifyCss } from '../../minifyCss.js';
|
|
5
6
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
6
7
|
import { getButtonPureCss as getComponentCss$O } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
@@ -14,21 +15,15 @@ class DSRButtonPure extends Component {
|
|
|
14
15
|
}
|
|
15
16
|
// this stops click events when button is disabled
|
|
16
17
|
render() {
|
|
17
|
-
const children =
|
|
18
|
-
? this.props.children
|
|
19
|
-
: this.props.children
|
|
20
|
-
? [this.props.children]
|
|
21
|
-
: [];
|
|
22
|
-
const namedSlottedChildren = children.filter((child) => { var _a; return (_a = child.props) === null || _a === void 0 ? void 0 : _a.slot; });
|
|
23
|
-
children.filter((child) => { var _a; return !((_a = child.props) === null || _a === void 0 ? void 0 : _a.slot); });
|
|
18
|
+
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
24
19
|
const hasIcon = hasVisibleIcon(this.props.icon);
|
|
25
|
-
const hasSubline =
|
|
20
|
+
const hasSubline = namedSlotChildren.filter(({ props: { slot } }) => slot === 'subline').length > 0;
|
|
26
21
|
const iconProps = {
|
|
27
22
|
className: 'icon',
|
|
28
23
|
size: 'inherit',
|
|
29
24
|
theme: this.props.theme,
|
|
30
25
|
};
|
|
31
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$O(this.props.icon, this.props.active, this.isDisabledOrLoading, this.props.stretch, this.props.size, this.props.weight, this.props.hideLabel, this.props.alignLabel,
|
|
26
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$O(this.props.icon, this.props.active, this.isDisabledOrLoading, this.props.stretch, this.props.size, this.props.weight, this.props.hideLabel, this.props.alignLabel, namedSlotChildren.filter(({ props: { slot } }) => slot === 'subline').length > 0, this.props.theme)));
|
|
32
27
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsxs("button", { ...getButtonPureAriaAttributes(this.props.disabled, this.props.loading, hasSubline, this.props.aria), className: "root", type: this.props.type, tabIndex: this.props.tabbable ? parseInt(null, 10) || null : -1, children: [hasIcon &&
|
|
33
28
|
(this.props.loading ? (jsx(PSpinner, { aria: { 'aria-label': 'Loading state' }, ...iconProps })) : (jsx(PIcon, { ...iconProps, color: "inherit", name: this.props.icon, source: this.props.iconSource, "aria-hidden": "true" }))), jsx("span", { className: "label", children: jsx("slot", {}) })] }), hasSubline && (jsx("div", { id: "subline", className: "subline", children: jsx("slot", { name: "subline" }) }))] })] }), this.props.children] }));
|
|
34
29
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import '../../provider.js';
|
|
4
|
+
import { splitChildren } from '../../splitChildren.js';
|
|
4
5
|
import { minifyCss } from '../../minifyCss.js';
|
|
5
6
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
6
7
|
import { getButtonCss as getComponentCss$N } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
@@ -13,13 +14,7 @@ class DSRButton extends Component {
|
|
|
13
14
|
return isDisabledOrLoading(this.props.disabled, this.props.loading);
|
|
14
15
|
}
|
|
15
16
|
render() {
|
|
16
|
-
|
|
17
|
-
? this.props.children
|
|
18
|
-
: this.props.children
|
|
19
|
-
? [this.props.children]
|
|
20
|
-
: [];
|
|
21
|
-
children.filter((child) => { var _a; return (_a = child.props) === null || _a === void 0 ? void 0 : _a.slot; });
|
|
22
|
-
children.filter((child) => { var _a; return !((_a = child.props) === null || _a === void 0 ? void 0 : _a.slot); });
|
|
17
|
+
splitChildren(this.props.children);
|
|
23
18
|
const iconProps = {
|
|
24
19
|
className: 'icon',
|
|
25
20
|
size: 'inherit',
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import '../../provider.js';
|
|
4
|
+
import { splitChildren } from '../../splitChildren.js';
|
|
4
5
|
import { minifyCss } from '../../minifyCss.js';
|
|
5
6
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
6
7
|
import { getCarouselCss as getComponentCss$M } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
@@ -13,13 +14,7 @@ class DSRCarousel extends Component {
|
|
|
13
14
|
}
|
|
14
15
|
render() {
|
|
15
16
|
var _a;
|
|
16
|
-
const children =
|
|
17
|
-
? this.props.children
|
|
18
|
-
: this.props.children
|
|
19
|
-
? [this.props.children]
|
|
20
|
-
: [];
|
|
21
|
-
const namedSlottedChildren = children.filter((child) => { var _a; return (_a = child.props) === null || _a === void 0 ? void 0 : _a.slot; });
|
|
22
|
-
const defaultChildren = children.filter((child) => { var _a; return !((_a = child.props) === null || _a === void 0 ? void 0 : _a.slot); });
|
|
17
|
+
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
23
18
|
const btnProps = {
|
|
24
19
|
className: 'btn',
|
|
25
20
|
type: 'button',
|
|
@@ -28,8 +23,8 @@ class DSRCarousel extends Component {
|
|
|
28
23
|
// 'aria-controls': 'splide-track', // TODO: cross shadow dom? use native button tag instead of p-button-pure?
|
|
29
24
|
};
|
|
30
25
|
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$M(this.props.wrapContent, this.props.disablePagination, this.props.theme)));
|
|
31
|
-
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsxs("div", { className: "header", children: [this.props.heading ? jsx("h2", { children: this.props.heading }) : jsx("slot", { name: "heading" }), (this.props.description ||
|
|
32
|
-
((this.props.description && jsx("p", { children: this.props.description })) || jsx("slot", { name: "description" })), jsxs("div", { className: "nav", children: [jsx(PButtonPure, { ...btnProps, icon: "arrow-left" }), jsx(PButtonPure, { ...btnProps, icon: "arrow-right" })] })] }), jsx("div", { id: "splide", className: "splide", "aria-label": this.props.heading || ((_a =
|
|
26
|
+
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsxs("div", { className: "header", children: [this.props.heading ? jsx("h2", { children: this.props.heading }) : jsx("slot", { name: "heading" }), (this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0) &&
|
|
27
|
+
((this.props.description && jsx("p", { children: this.props.description })) || jsx("slot", { name: "description" })), jsxs("div", { className: "nav", children: [jsx(PButtonPure, { ...btnProps, icon: "arrow-left" }), jsx(PButtonPure, { ...btnProps, icon: "arrow-right" })] })] }), jsx("div", { id: "splide", className: "splide", "aria-label": this.props.heading || ((_a = namedSlotChildren.find(({ props: { slot } }) => slot === 'heading')) === null || _a === void 0 ? void 0 : _a.props.children), children: jsx("div", { className: "splide__track", children: jsx("div", { className: "splide__list", children: otherChildren.map((_, i) => (jsx("div", { className: "splide__slide", children: jsx("slot", { name: `slide-${i}` }) }, i))) }) }) }), this.props.disablePagination !== true && jsx("div", { className: "pagination" })] })] }), this.props.children] }));
|
|
33
28
|
}
|
|
34
29
|
}
|
|
35
30
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { splitChildren } from '../../splitChildren.js';
|
|
2
3
|
import { Component } from 'react';
|
|
3
4
|
import { minifyCss } from '../../minifyCss.js';
|
|
4
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
@@ -8,15 +9,9 @@ import { StateMessage } from './state-message.js';
|
|
|
8
9
|
class DSRCheckboxWrapper extends Component {
|
|
9
10
|
render() {
|
|
10
11
|
var _a;
|
|
11
|
-
const children =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
? [this.props.children]
|
|
15
|
-
: [];
|
|
16
|
-
const namedSlottedChildren = children.filter((child) => { var _a; return (_a = child.props) === null || _a === void 0 ? void 0 : _a.slot; });
|
|
17
|
-
const defaultChildren = children.filter((child) => { var _a; return !((_a = child.props) === null || _a === void 0 ? void 0 : _a.slot); });
|
|
18
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$L(this.props.hideLabel, this.props.state, (_a = defaultChildren[0]) === null || _a === void 0 ? void 0 : _a.props.disabled)));
|
|
19
|
-
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsxs("label", { children: [(this.props.label || namedSlottedChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && (jsx("span", { className: "label", children: this.props.label || jsx("slot", { name: "label" }) })), jsx("slot", {})] }), (this.props.message || namedSlottedChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state) && (jsx(StateMessage, { state: this.props.state, message: this.props.message, host: null }))] })] }), this.props.children] }));
|
|
12
|
+
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
13
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$L(this.props.hideLabel, this.props.state, typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && ((_a = otherChildren[0]) === null || _a === void 0 ? void 0 : _a.props.disabled))));
|
|
14
|
+
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsxs("label", { children: [(this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && (jsx("span", { className: "label", children: this.props.label || jsx("slot", { name: "label" }) })), jsx("slot", {})] }), (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state) && (jsx(StateMessage, { state: this.props.state, message: this.props.message, host: null }))] })] }), this.props.children] }));
|
|
20
15
|
}
|
|
21
16
|
}
|
|
22
17
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { splitChildren } from '../../splitChildren.js';
|
|
2
3
|
import { Component } from 'react';
|
|
3
4
|
import { minifyCss } from '../../minifyCss.js';
|
|
4
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
@@ -6,13 +7,7 @@ import { getContentWrapperCss as getComponentCss$K } from '../../../../../../com
|
|
|
6
7
|
|
|
7
8
|
class DSRContentWrapper extends Component {
|
|
8
9
|
render() {
|
|
9
|
-
|
|
10
|
-
? this.props.children
|
|
11
|
-
: this.props.children
|
|
12
|
-
? [this.props.children]
|
|
13
|
-
: [];
|
|
14
|
-
children.filter((child) => { var _a; return (_a = child.props) === null || _a === void 0 ? void 0 : _a.slot; });
|
|
15
|
-
children.filter((child) => { var _a; return !((_a = child.props) === null || _a === void 0 ? void 0 : _a.slot); });
|
|
10
|
+
splitChildren(this.props.children);
|
|
16
11
|
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$K(this.props.width, this.props.backgroundColor, this.props.theme)));
|
|
17
12
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("div", { className: "root", children: jsx("slot", {}) })] }), this.props.children] }));
|
|
18
13
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { splitChildren } from '../../splitChildren.js';
|
|
2
3
|
import { Component } from 'react';
|
|
3
4
|
import { minifyCss } from '../../minifyCss.js';
|
|
4
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
@@ -8,17 +9,11 @@ import { Required } from './required.js';
|
|
|
8
9
|
|
|
9
10
|
class DSRFieldsetWrapper extends Component {
|
|
10
11
|
render() {
|
|
11
|
-
const children =
|
|
12
|
-
? this.props.children
|
|
13
|
-
: this.props.children
|
|
14
|
-
? [this.props.children]
|
|
15
|
-
: [];
|
|
16
|
-
const namedSlottedChildren = children.filter((child) => { var _a; return (_a = child.props) === null || _a === void 0 ? void 0 : _a.slot; });
|
|
17
|
-
children.filter((child) => { var _a; return !((_a = child.props) === null || _a === void 0 ? void 0 : _a.slot); });
|
|
12
|
+
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
18
13
|
const messageId = 'message';
|
|
19
|
-
const hasMessageValue = (this.props.message ||
|
|
20
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$I(this.props.state, this.props.labelSize, (this.props.label ||
|
|
21
|
-
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("fieldset", { "aria-describedby": hasMessageValue ? messageId : null, children: [(this.props.label ||
|
|
14
|
+
const hasMessageValue = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state);
|
|
15
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$I(this.props.state, this.props.labelSize, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0))));
|
|
16
|
+
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("fieldset", { "aria-describedby": hasMessageValue ? messageId : null, children: [(this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && (jsxs("legend", { children: [this.props.label || jsx("slot", { name: "label" }), this.props.required && jsx(Required, {})] })), jsx("slot", {}), hasMessageValue && jsx(StateMessage, { id: messageId, state: this.props.state, message: this.props.message, host: null })] })] }), this.props.children] }));
|
|
22
17
|
}
|
|
23
18
|
}
|
|
24
19
|
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { splitChildren } from '../../splitChildren.js';
|
|
2
3
|
import { Component } from 'react';
|
|
3
4
|
import { minifyCss } from '../../minifyCss.js';
|
|
4
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
@@ -6,13 +7,7 @@ import { getFlexItemCss as getComponentCss$H } from '../../../../../../component
|
|
|
6
7
|
|
|
7
8
|
class DSRFlexItem extends Component {
|
|
8
9
|
render() {
|
|
9
|
-
|
|
10
|
-
? this.props.children
|
|
11
|
-
: this.props.children
|
|
12
|
-
? [this.props.children]
|
|
13
|
-
: [];
|
|
14
|
-
children.filter((child) => { var _a; return (_a = child.props) === null || _a === void 0 ? void 0 : _a.slot; });
|
|
15
|
-
children.filter((child) => { var _a; return !((_a = child.props) === null || _a === void 0 ? void 0 : _a.slot); });
|
|
10
|
+
splitChildren(this.props.children);
|
|
16
11
|
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$H(this.props.width, this.props.offset, this.props.alignSelf, this.props.grow, this.props.shrink, this.props.flex)));
|
|
17
12
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("slot", {})] }), this.props.children] }));
|
|
18
13
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { splitChildren } from '../../splitChildren.js';
|
|
2
3
|
import { Component } from 'react';
|
|
3
4
|
import { minifyCss } from '../../minifyCss.js';
|
|
4
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
@@ -6,13 +7,7 @@ import { getFlexCss as getComponentCss$G } from '../../../../../../components/di
|
|
|
6
7
|
|
|
7
8
|
class DSRFlex extends Component {
|
|
8
9
|
render() {
|
|
9
|
-
|
|
10
|
-
? this.props.children
|
|
11
|
-
: this.props.children
|
|
12
|
-
? [this.props.children]
|
|
13
|
-
: [];
|
|
14
|
-
children.filter((child) => { var _a; return (_a = child.props) === null || _a === void 0 ? void 0 : _a.slot; });
|
|
15
|
-
children.filter((child) => { var _a; return !((_a = child.props) === null || _a === void 0 ? void 0 : _a.slot); });
|
|
10
|
+
splitChildren(this.props.children);
|
|
16
11
|
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$G(this.props.inline, this.props.wrap, this.props.direction, this.props.justifyContent, this.props.alignItems, this.props.alignContent)));
|
|
17
12
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("slot", {})] }), this.props.children] }));
|
|
18
13
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { splitChildren } from '../../splitChildren.js';
|
|
2
3
|
import { Component } from 'react';
|
|
3
4
|
import { minifyCss } from '../../minifyCss.js';
|
|
4
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
@@ -6,13 +7,7 @@ import { getGridItemCss as getComponentCss$F } from '../../../../../../component
|
|
|
6
7
|
|
|
7
8
|
class DSRGridItem extends Component {
|
|
8
9
|
render() {
|
|
9
|
-
|
|
10
|
-
? this.props.children
|
|
11
|
-
: this.props.children
|
|
12
|
-
? [this.props.children]
|
|
13
|
-
: [];
|
|
14
|
-
children.filter((child) => { var _a; return (_a = child.props) === null || _a === void 0 ? void 0 : _a.slot; });
|
|
15
|
-
children.filter((child) => { var _a; return !((_a = child.props) === null || _a === void 0 ? void 0 : _a.slot); });
|
|
10
|
+
splitChildren(this.props.children);
|
|
16
11
|
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$F(this.props.size, this.props.offset, this.props.gutter || { base: 16, s: 24, m: 36 } // default as fallback
|
|
17
12
|
)));
|
|
18
13
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("slot", {})] }), this.props.children] }));
|