@porsche-design-system/components-react 3.0.0-alpha.6 → 3.0.0-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 +56 -23
- package/esm/lib/components/checkbox-wrapper.wrapper.js +3 -3
- package/lib/components/checkbox-wrapper.wrapper.d.ts +8 -0
- package/lib/components/checkbox-wrapper.wrapper.js +3 -3
- package/lib/types.d.ts +11 -2
- package/package.json +2 -2
- package/ssr/components/dist/styles/esm/styles-entry.js +232 -193
- package/ssr/components/dist/utils/esm/utils-entry.js +45 -76
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/checkbox-wrapper.wrapper.js +4 -4
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +1 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.js +62 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.js +2 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +1 -1
- package/ssr/esm/components/dist/styles/esm/styles-entry.js +232 -193
- package/ssr/esm/components/dist/utils/esm/utils-entry.js +43 -76
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/checkbox-wrapper.wrapper.js +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.js +62 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.js +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +1 -1
- package/ssr/lib/components/checkbox-wrapper.wrapper.d.ts +8 -0
- package/ssr/lib/types.d.ts +11 -2
|
@@ -45,6 +45,8 @@ const parseJSONAttribute = (attribute) => {
|
|
|
45
45
|
: // input is object, e.g. { aria-label: 'Some label' }
|
|
46
46
|
attribute;
|
|
47
47
|
};
|
|
48
|
+
|
|
49
|
+
const hasWindow = typeof window !== 'undefined';
|
|
48
50
|
const parseAndGetAriaAttributes = (rawAttributes) => {
|
|
49
51
|
if (rawAttributes) {
|
|
50
52
|
const attributes = parseJSONAttribute(rawAttributes);
|
|
@@ -58,6 +60,7 @@ const parseAndGetAriaAttributes = (rawAttributes) => {
|
|
|
58
60
|
return attributes;
|
|
59
61
|
}
|
|
60
62
|
};
|
|
63
|
+
const isHighContrastMode = hasWindow && window.matchMedia && matchMedia('(forced-colors: active)').matches;
|
|
61
64
|
|
|
62
65
|
const getButtonBaseAriaAttributes = (isDisabled, isLoading) => {
|
|
63
66
|
return {
|
|
@@ -66,8 +69,6 @@ const getButtonBaseAriaAttributes = (isDisabled, isLoading) => {
|
|
|
66
69
|
};
|
|
67
70
|
};
|
|
68
71
|
|
|
69
|
-
const hasWindow = typeof window !== 'undefined';
|
|
70
|
-
|
|
71
72
|
const attributeMutationMap = new Map();
|
|
72
73
|
hasWindow &&
|
|
73
74
|
new MutationObserver((mutations) => {
|
|
@@ -361,25 +362,6 @@ var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symb
|
|
|
361
362
|
|
|
362
363
|
var isBrowser = (typeof window === "undefined" ? "undefined" : _typeof$1(window)) === "object" && (typeof document === "undefined" ? "undefined" : _typeof$1(document)) === 'object' && document.nodeType === 9;
|
|
363
364
|
|
|
364
|
-
var isProduction = process.env.NODE_ENV === 'production';
|
|
365
|
-
function warning(condition, message) {
|
|
366
|
-
if (!isProduction) {
|
|
367
|
-
if (condition) {
|
|
368
|
-
return;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
var text = "Warning: " + message;
|
|
372
|
-
|
|
373
|
-
if (typeof console !== 'undefined') {
|
|
374
|
-
console.warn(text);
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
try {
|
|
378
|
-
throw Error(text);
|
|
379
|
-
} catch (x) {}
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
|
|
383
365
|
function _typeof(obj) {
|
|
384
366
|
"@babel/helpers - typeof";
|
|
385
367
|
|
|
@@ -486,9 +468,7 @@ function createRule(name, decl, options) {
|
|
|
486
468
|
var rule = jss.plugins.onCreateRule(name, declCopy, options);
|
|
487
469
|
if (rule) return rule; // It is an at-rule and it has no instance.
|
|
488
470
|
|
|
489
|
-
if (name[0] === '@')
|
|
490
|
-
process.env.NODE_ENV !== "production" ? warning(false, "[JSS] Unknown rule " + name) : void 0;
|
|
491
|
-
}
|
|
471
|
+
if (name[0] === '@') ;
|
|
492
472
|
|
|
493
473
|
return null;
|
|
494
474
|
}
|
|
@@ -689,9 +669,7 @@ function () {
|
|
|
689
669
|
|
|
690
670
|
var sheet = this.options.sheet;
|
|
691
671
|
|
|
692
|
-
if (sheet && sheet.attached)
|
|
693
|
-
process.env.NODE_ENV !== "production" ? warning(false, '[JSS] Rule is not linked. Missing sheet option "link: true".') : void 0;
|
|
694
|
-
}
|
|
672
|
+
if (sheet && sheet.attached) ;
|
|
695
673
|
|
|
696
674
|
return this;
|
|
697
675
|
};
|
|
@@ -937,7 +915,6 @@ function () {
|
|
|
937
915
|
this.name = nameMatch[1];
|
|
938
916
|
} else {
|
|
939
917
|
this.name = 'noname';
|
|
940
|
-
process.env.NODE_ENV !== "production" ? warning(false, "[JSS] Bad keyframes name " + key) : void 0;
|
|
941
918
|
}
|
|
942
919
|
|
|
943
920
|
this.key = this.type + "-" + this.name;
|
|
@@ -996,8 +973,6 @@ var findReferencedKeyframe = function findReferencedKeyframe(val, keyframes) {
|
|
|
996
973
|
if (name in keyframes) {
|
|
997
974
|
return keyframes[name];
|
|
998
975
|
}
|
|
999
|
-
|
|
1000
|
-
process.env.NODE_ENV !== "production" ? warning(false, "[JSS] Referenced keyframes rule \"" + name + "\" is not defined.") : void 0;
|
|
1001
976
|
return match;
|
|
1002
977
|
});
|
|
1003
978
|
}
|
|
@@ -1822,8 +1797,6 @@ function () {
|
|
|
1822
1797
|
for (var name in plugin) {
|
|
1823
1798
|
if (name in registry) {
|
|
1824
1799
|
registry[name].push(plugin[name]);
|
|
1825
|
-
} else {
|
|
1826
|
-
process.env.NODE_ENV !== "production" ? warning(false, "[JSS] Unknown hook \"" + name + "\".") : void 0;
|
|
1827
1800
|
}
|
|
1828
1801
|
}
|
|
1829
1802
|
|
|
@@ -1965,8 +1938,6 @@ if (globalThis$1[ns] == null) globalThis$1[ns] = 0; // Bundle may contain multip
|
|
|
1965
1938
|
// the module.
|
|
1966
1939
|
|
|
1967
1940
|
var moduleId = globalThis$1[ns]++;
|
|
1968
|
-
|
|
1969
|
-
var maxRules = 1e10;
|
|
1970
1941
|
/**
|
|
1971
1942
|
* Returns a function which generates unique class names based on counters.
|
|
1972
1943
|
* When new generator function is created, rule counter is reseted.
|
|
@@ -1983,10 +1954,6 @@ var createGenerateId = function createGenerateId(options) {
|
|
|
1983
1954
|
var generateId = function generateId(rule, sheet) {
|
|
1984
1955
|
ruleCounter += 1;
|
|
1985
1956
|
|
|
1986
|
-
if (ruleCounter > maxRules) {
|
|
1987
|
-
process.env.NODE_ENV !== "production" ? warning(false, "[JSS] You might have a memory leak. Rule counter is at " + ruleCounter + ".") : void 0;
|
|
1988
|
-
}
|
|
1989
|
-
|
|
1990
1957
|
var jssId = '';
|
|
1991
1958
|
var prefix = '';
|
|
1992
1959
|
|
|
@@ -2082,7 +2049,6 @@ var removeProperty = function removeProperty(cssRule, prop) {
|
|
|
2082
2049
|
cssRule.style.removeProperty(prop);
|
|
2083
2050
|
}
|
|
2084
2051
|
} catch (err) {
|
|
2085
|
-
process.env.NODE_ENV !== "production" ? warning(false, "[JSS] DOMException \"" + err.message + "\" was thrown. Tried to remove property \"" + prop + "\".") : void 0;
|
|
2086
2052
|
}
|
|
2087
2053
|
};
|
|
2088
2054
|
/**
|
|
@@ -2196,10 +2162,6 @@ function findPrevNode(options) {
|
|
|
2196
2162
|
node: comment.nextSibling
|
|
2197
2163
|
};
|
|
2198
2164
|
} // If user specifies an insertion point and it can't be found in the document -
|
|
2199
|
-
// bad specificity issues may appear.
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
process.env.NODE_ENV !== "production" ? warning(false, "[JSS] Insertion point \"" + insertionPoint + "\" not found.") : void 0;
|
|
2203
2165
|
}
|
|
2204
2166
|
|
|
2205
2167
|
return false;
|
|
@@ -2222,7 +2184,7 @@ function insertStyle(style, options) {
|
|
|
2222
2184
|
if (insertionPoint && typeof insertionPoint.nodeType === 'number') {
|
|
2223
2185
|
var insertionPointElement = insertionPoint;
|
|
2224
2186
|
var parentNode = insertionPointElement.parentNode;
|
|
2225
|
-
if (parentNode) parentNode.insertBefore(style, insertionPointElement.nextSibling);
|
|
2187
|
+
if (parentNode) parentNode.insertBefore(style, insertionPointElement.nextSibling);
|
|
2226
2188
|
return;
|
|
2227
2189
|
}
|
|
2228
2190
|
|
|
@@ -2247,7 +2209,6 @@ var _insertRule = function insertRule(container, rule, index) {
|
|
|
2247
2209
|
container.appendRule(rule);
|
|
2248
2210
|
}
|
|
2249
2211
|
} catch (err) {
|
|
2250
|
-
process.env.NODE_ENV !== "production" ? warning(false, "[JSS] " + err.message) : void 0;
|
|
2251
2212
|
return false;
|
|
2252
2213
|
}
|
|
2253
2214
|
|
|
@@ -2668,8 +2629,6 @@ function () {
|
|
|
2668
2629
|
entry.refs++;
|
|
2669
2630
|
return entry.sheet;
|
|
2670
2631
|
}
|
|
2671
|
-
|
|
2672
|
-
warning(false, "[JSS] SheetsManager: can't find sheet to manage");
|
|
2673
2632
|
return undefined;
|
|
2674
2633
|
};
|
|
2675
2634
|
|
|
@@ -2681,8 +2640,6 @@ function () {
|
|
|
2681
2640
|
entry.refs--;
|
|
2682
2641
|
if (entry.refs === 0) entry.sheet.detach();
|
|
2683
2642
|
}
|
|
2684
|
-
} else {
|
|
2685
|
-
warning(false, "SheetsManager: can't find sheet to unmanage");
|
|
2686
2643
|
}
|
|
2687
2644
|
};
|
|
2688
2645
|
|
|
@@ -3024,8 +2981,6 @@ function jssNested() {
|
|
|
3024
2981
|
if (rule) {
|
|
3025
2982
|
return rule.selector;
|
|
3026
2983
|
}
|
|
3027
|
-
|
|
3028
|
-
process.env.NODE_ENV !== "production" ? warning(false, "[JSS] Could not find the referenced rule \"" + key + "\" in \"" + (container.options.meta || container.toString()) + "\".") : void 0;
|
|
3029
2984
|
return key;
|
|
3030
2985
|
};
|
|
3031
2986
|
}
|
|
@@ -3620,8 +3575,21 @@ const themes = {
|
|
|
3620
3575
|
'dark': themeDark
|
|
3621
3576
|
};
|
|
3622
3577
|
/* Auto Generated End */
|
|
3578
|
+
const schemeHighContrastMerged = {
|
|
3579
|
+
disabledColor: 'GrayText',
|
|
3580
|
+
focusColor: 'Highlight',
|
|
3581
|
+
};
|
|
3582
|
+
const schemeHighContrast = {
|
|
3583
|
+
canvasColor: 'Canvas',
|
|
3584
|
+
canvasTextColor: 'CanvasText',
|
|
3585
|
+
highlightColor: 'Highlight',
|
|
3586
|
+
linkColor: 'LinkText',
|
|
3587
|
+
};
|
|
3623
3588
|
const getThemedColors = (theme) => {
|
|
3624
|
-
return themes[theme];
|
|
3589
|
+
return isHighContrastMode ? Object.assign(Object.assign({}, themes[theme]), schemeHighContrastMerged) : themes[theme];
|
|
3590
|
+
};
|
|
3591
|
+
const getHighContrastColors = () => {
|
|
3592
|
+
return schemeHighContrast;
|
|
3625
3593
|
};
|
|
3626
3594
|
const pxToRemWithUnit = (px) => `${px / 16}rem`;
|
|
3627
3595
|
const getInsetJssStyle = (value = 0) => {
|
|
@@ -3690,10 +3658,10 @@ const formatObjectOutput = (value) => {
|
|
|
3690
3658
|
|
|
3691
3659
|
const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
3692
3660
|
const resizeMap = new Map();
|
|
3693
|
-
|
|
3694
|
-
|
|
3661
|
+
hasWindow &&
|
|
3662
|
+
'ResizeObserver' in window && // for jsdom and ssr
|
|
3695
3663
|
new ResizeObserver((entries) => {
|
|
3696
|
-
entries.forEach((
|
|
3664
|
+
entries.forEach((entry) => { var _a; return (_a = resizeMap.get(entry.target)) === null || _a === void 0 ? void 0 : _a(entry); });
|
|
3697
3665
|
});
|
|
3698
3666
|
const getButtonPureAriaAttributes = (isDisabled, isLoading, aria) => {
|
|
3699
3667
|
return Object.assign(Object.assign({}, parseAndGetAriaAttributes(aria)), getButtonBaseAriaAttributes(isDisabled, isLoading));
|
|
@@ -3715,6 +3683,10 @@ const buildCrestSrcSet = (format) => {
|
|
|
3715
3683
|
.map(([resolution, fileName]) => `${crestCdnBaseUrl}/${fileName[format]} ${resolution}`)
|
|
3716
3684
|
.join();
|
|
3717
3685
|
};
|
|
3686
|
+
const crestSize = {
|
|
3687
|
+
width: 30,
|
|
3688
|
+
height: 40,
|
|
3689
|
+
};
|
|
3718
3690
|
|
|
3719
3691
|
const DISPLAY_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
3720
3692
|
const displaySizeToTagMap = {
|
|
@@ -3775,7 +3747,7 @@ const getHeadlineTagType = (host, variant, tag) => {
|
|
|
3775
3747
|
};
|
|
3776
3748
|
|
|
3777
3749
|
const CDN_BASE_URL$2 = (typeof window !== 'undefined' && window.PORSCHE_DESIGN_SYSTEM_CDN === 'cn' ? 'https://cdn.ui.porsche.cn' : 'https://cdn.ui.porsche.com') + '/porsche-design-system/icons';
|
|
3778
|
-
const ICONS_MANIFEST = { "360": "360.min.5f2fcac02969bc425484fe8d80e5a1c9.svg", "accessibility": "accessibility.min.295a9d53a11c42212b8cce594982dfd2.svg", "active-cabin-ventilation": "active-cabin-ventilation.min.030c46def7a7397091d920b65bc0da3c.svg", "add": "add.min.8578a2d10c79a78e398e963b506b6cb5.svg", "adjust": "adjust.min.cdb89f5c161a4c82328fe60e72a88c59.svg", "arrow-double-down": "arrow-double-down.min.3b17923187ef2114d1f17da042fc97ca.svg", "arrow-double-left": "arrow-double-left.min.bba22e26f025c439b600bf74f0566465.svg", "arrow-double-right": "arrow-double-right.min.14f743d4adb5467fc0e95ac7f6426e1f.svg", "arrow-double-up": "arrow-double-up.min.8e3b3e31d227366f916c91dcb6e1b466.svg", "arrow-down": "arrow-down.min.84e69acc6554637cc373b8a4f50ba991.svg", "arrow-first": "arrow-first.min.bc51317ecf4953a664870ebab5059775.svg", "arrow-head-down": "arrow-head-down.min.454c189f4914925447670d0ae9bd2043.svg", "arrow-head-left": "arrow-head-left.min.aa2da7b4dbbb8a28c046592290054e94.svg", "arrow-head-right": "arrow-head-right.min.fb602ae5cb51970770570a70287e77e9.svg", "arrow-head-up": "arrow-head-up.min.2c282619214e4f998e1ac64a61b5545b.svg", "arrow-last": "arrow-last.min.72553c4284717d4961f8bcf8d51e0303.svg", "arrow-left": "arrow-left.min.24e8467ef0f8f206f228a3d8d443d70b.svg", "arrow-right": "arrow-right.min.8fb7b42d2d08d60f918602aa28475c0b.svg", "arrow-up": "arrow-up.min.0bc737f7f2cc56ef65c5d33472e014b0.svg", "augmented-reality": "augmented-reality.min.290ff033e35774fd093e1ab8ed07e10f.svg", "battery-empty": "battery-empty.min.8594e37d3e67a95b85eb9935f02e69cf.svg", "battery-full": "battery-full.min.4c75acb5a64a6dd3116ede7b1859a6d6.svg", "bell": "bell.min.d69dc9a220dec323e758ccbff756b5b5.svg", "bookmark": "bookmark.min.0cb177c79674593133f6d3d384c5df4b.svg", "broadcast": "broadcast.min.edbfac03d4afdc964d350f54df79c6f3.svg", "calculator": "calculator.min.2518729352d3709e488e71dcbf449247.svg", "calendar": "calendar.min.588fabe880634ece974291f5adfee50d.svg", "camera": "camera.min.10af3a4fac8c289775390534a50606d0.svg", "car": "car.min.4eeec04c87a14bb5d3d316eeeee0185b.svg", "car-battery": "car-battery.min.2a619bbd456ad531c922bf8f51b70977.svg", "card": "card.min.06394222c7ca5d6c7e783d6f86f030a6.svg", "charging-active": "charging-active.min.915410d626a52a3a76b6bf498491c255.svg", "charging-state": "charging-state.min.c5cb87ef2808f824f352a6ebd9b9d4a9.svg", "charging-station": "charging-station.min.211fcf0f9a9bb50b6e83482ee588dda9.svg", "chart": "chart.min.267e23c07f47784c186c5119b870df76.svg", "chat": "chat.min.a8a52d1b8b463ee0e5a3b0d812c9a40c.svg", "check": "check.min.0cb26d9a5ee1d217e5054f1ad60ae3b4.svg", "city": "city.min.a99b88b51adda8244a2c72953a2f4ab4.svg", "climate": "climate.min.5d52b2880552275d9032afc0fa2b7296.svg", "climate-control": "climate-control.min.152235d2bf2b7ec6e1a3c40e6971c446.svg", "clock": "clock.min.bcea9f182e1fe861ea6e765650f79b38.svg", "close": "close.min.eefab6ef191882058f9ed548bd5a467e.svg", "closed-caption": "closed-caption.min.b93ac43c07223fda14249d2279823f6a.svg", "co2-emission": "co2-emission.min.788590454baa0f6c52dfc99a55fe0b85.svg", "compare": "compare.min.657a924ca48bf93d200d2e6539fa8050.svg", "configurate": "configurate.min.2d137bc6f43ee03587188b571c97aacd.svg", "country-road": "country-road.min.3ee2c1be9d063f5d7c5772fcc7ae2568.svg", "cubic-capacity": "cubic-capacity.min.b5df863671bdf059bce19eddc2990698.svg", "delete": "delete.min.fd9788c3a0842a7bb1d737c6de1969d1.svg", "disable": "disable.min.c3d85d4ed9738c077d19e524775dbd56.svg", "document": "document.min.d2db26d7049ab2180361c7ce40f52d57.svg", "download": "download.min.d7c63bcbadf4dd5b14c3c79a438d93f3.svg", "duration": "duration.min.9405be759f64c8253076f7e55c80c336.svg", "edit": "edit.min.06bde2175fafb58233fa1ce6d3d00f83.svg", "email": "email.min.eb8ff02812a48c5098d3c40614e8d9d7.svg", "error-filled": "error-filled.min.35d7da7cb866bcfd3a25859f8cd2246b.svg", "exclamation": "exclamation.min.6ca46945978bd4eb2a40dc29766b1882.svg", "external": "external.min.b804bef35446f6b3cb379c121de3f13d.svg", "filter": "filter.min.60f168332c7550dfdf714ed0507877b0.svg", "flash": "flash.min.e5a6de1239300a6104076ee67aec42ca.svg", "fuel-station": "fuel-station.min.0155159076984cccdbfe854eb4da3720.svg", "garage": "garage.min.463577e6a1ffac592b5aa7bec9a82d39.svg", "gift": "gift.min.eeb1a5871a4008bcafd9495fe11ec9bc.svg", "globe": "globe.min.50fd2c886a822673902bd106efc73c3f.svg", "grid": "grid.min.c36c5015115005dcb9c948f07af0be80.svg", "highway": "highway.min.ea773dcf33a43fa8e82beae96c1222b7.svg", "home": "home.min.2bdc01bb7c9b39fa5ef5a81c8c3f9f49.svg", "horn": "horn.min.77105eb430a033a3ffdf21f9fecd32de.svg", "image": "image.min.851c64681e1950312a934a723ca04a85.svg", "increase": "increase.min.45bfe421e86192da37c8cca4917c10c2.svg", "information": "information.min.d387e44cc786ca3df3702f429518a1d9.svg", "information-filled": "information-filled.min.1055e842bb7d89c061ff1b5f47ed6169.svg", "key": "key.min.37b5e8ff9fda430f855f4b82bfd03485.svg", "leaf": "leaf.min.ea91b1d04ade4c49640e89ade35c9d90.svg", "leather": "leather.min.ef9e664d2fc3c28171fbd3d93b079503.svg", "light": "light.min.5fa3dd77ee9c63e28614c4c7c4a6d39c.svg", "list": "list.min.ecaeee96ec6cf2f8c9028ea404113a9e.svg", "locate": "locate.min.c28bdf292bbf297eb8109a272e2ffb91.svg", "lock": "lock.min.d258c21c7217cd1342307c45ecd5176e.svg", "lock-open": "lock-open.min.2ef427e273635e3aab7601b0fe92e86e.svg", "logo-baidu": "logo-baidu.min.a8eb57b32e616b21820d86882835fe20.svg", "logo-delicious": "logo-delicious.min.fc2927d4979ffaed1f23160091e0975e.svg", "logo-digg": "logo-digg.min.d7340b3f22cf4a22a8ac3b472c16e0e2.svg", "logo-facebook": "logo-facebook.min.0c2e020d0b61d37e76e6bab67e4d149e.svg", "logo-foursquare": "logo-foursquare.min.b2699d993d9d731892ba01874c0e023d.svg", "logo-gmail": "logo-gmail.min.0c14069d86c2ba0a42c726d96f0cae9c.svg", "logo-google": "logo-google.min.c1f3931d74e40e5cdc875236b7e674a1.svg", "logo-hatena": "logo-hatena.min.021834899da6e6f6a9dd963f4fc3337c.svg", "logo-instagram": "logo-instagram.min.2f8c578e2472dc13b2f0ec8d1b936442.svg", "logo-kaixin": "logo-kaixin.min.8fb995689a3442669df37b5f375922fc.svg", "logo-kakaotalk": "logo-kakaotalk.min.988146b4cd8bced103fd8b5a9be064d8.svg", "logo-linkedin": "logo-linkedin.min.e4848fd4b74404e504fd1a4d5a25b960.svg", "logo-naver": "logo-naver.min.13f97e4c3ad4898d169904caa609f2d0.svg", "logo-pinterest": "logo-pinterest.min.101284bac1d7cf468719fccf416069df.svg", "logo-qq": "logo-qq.min.5d89ab35e4e00e81deadaa2fe0d51a5d.svg", "logo-qq-share": "logo-qq-share.min.01da8f9d6665f4529f349f88b4fb0cfc.svg", "logo-reddit": "logo-reddit.min.40dd42ee1368dbc74611afee4d3c9850.svg", "logo-skyrock": "logo-skyrock.min.9440a0e4a088cdfbfcc99bc91010768a.svg", "logo-sohu": "logo-sohu.min.d7a030336d712a2b44982e65071cd2bc.svg", "logo-tecent": "logo-tecent.min.fd1ec329327f4cbf5706c393df66af9d.svg", "logo-telegram": "logo-telegram.min.624fca36dd6f6c5b64bce6e617372d77.svg", "logo-tiktok": "logo-tiktok.min.9c5ffad4c76353afaa99feca9e4f2f0a.svg", "logo-tumblr": "logo-tumblr.min.9b77d06b659cee9d5f45015c33c23967.svg", "logo-twitter": "logo-twitter.min.ac4d6b189cd2a47e4fac75bedb76b5bd.svg", "logo-viber": "logo-viber.min.330fbae7d2683b7910d828cbe864f738.svg", "logo-vk": "logo-vk.min.727ba204a194c8cf1b7fc389ac1db14b.svg", "logo-wechat": "logo-wechat.min.0392ff30f188aa9f52480e965142474a.svg", "logo-weibo": "logo-weibo.min.3ded49004baea42d85fa6fcb9d79ccb1.svg", "logo-whatsapp": "logo-whatsapp.min.02c83d3cbde89763eee8fc3bcab02257.svg", "logo-xing": "logo-xing.min.6a5f5fde119a841823d0ef05293b3454.svg", "logo-yahoo": "logo-yahoo.min.622e886e777c08cf80c31dc99ca13f1a.svg", "logo-youku": "logo-youku.min.d35a5283c6d3094748f565c729f56d9f.svg", "logo-youtube": "logo-youtube.min.59c939904cbec0c7793289eb5e68cb99.svg", "logout": "logout.min.aa54756e3aec12f347fdec0a2905a232.svg", "map": "map.min.643551801bfc27a93438c30ebe1d1387.svg", "menu-dots-horizontal": "menu-dots-horizontal.min.94e0804e3a5a30a577cab6296ad8d15d.svg", "menu-dots-vertical": "menu-dots-vertical.min.7ec3f5be33dd3459d7a9bed9fdbe22d3.svg", "menu-lines": "menu-lines.min.30ff09f6e2ce846286dd136279636097.svg", "minus": "minus.min.00cca11ec9ce4bd913abba2059c3f10b.svg", "mobile": "mobile.min.71d3c0d7fb4349383562cc233478f7fb.svg", "moon": "moon.min.5c447b4013210e7c7723ca4b6fdbfa9f.svg", "oil-can": "oil-can.min.31978141ee5529f97833027b1e03294a.svg", "parking-brake": "parking-brake.min.f03105e84898f1db02c6fcbdd008bfcf.svg", "parking-light": "parking-light.min.968af68684df1220b15cff6616e8376e.svg", "pause": "pause.min.dd29b256b73311abf1549ed16fe7a47b.svg", "phone": "phone.min.e1a58c454ffe074b30a5bb16c75ff23f.svg", "pin": "pin.min.c6ce5ea394fd9cf9dca80a592e2aeae4.svg", "play": "play.min.703fb2dbebac16ea91a6524914626ae2.svg", "plug": "plug.min.02d79b2702ac5c41020b54bd9eedf523.svg", "plus": "plus.min.dd34f71292a547080b9247a72c1adda2.svg", "preheating": "preheating.min.96ccdd3d24b0634ca820dc894894a34d.svg", "printer": "printer.min.bcd50214772a8fcc1d0f0ae1205610bf.svg", "purchase": "purchase.min.70535cff1a085154ab49ab958fe91aae.svg", "question": "question.min.df469b72598d2dbfb458c46430c0690a.svg", "racing-flag": "racing-flag.min.1aee1d177d44aaaca113a8b7a81db573.svg", "refresh": "refresh.min.36ced59c8e8d06980d6ac20cca8a9057.svg", "replay": "replay.min.d4f212bf3d5f8fe166d78dba57eeacde.svg", "reset": "reset.min.e1ce71f684b6e83b9ed8182389bd407f.svg", "route": "route.min.49f1935d2a563b150bb382eb56a04972.svg", "rss": "rss.min.eaf3873673fcbff72833e7a77f9510f8.svg", "save": "save.min.6506e50ad89aee223e85fe52242c232e.svg", "screen": "screen.min.c17978f44a7bf9f7d80f178fd2b7d116.svg", "search": "search.min.f2755d61c24b6ad037f51d65588be308.svg", "send": "send.min.544f2b90e562b8582808f735846b1351.svg", "share": "share.min.b7b59aa7085cc865735acfd940480234.svg", "shopping-bag": "shopping-bag.min.9d99682e614f5bbb9760c1a0272bd1e0.svg", "shopping-cart": "shopping-cart.min.05a6c651afb21246daba2e941e8366cc.svg", "sidelights": "sidelights.min.996d591ee87247eae32968bf0b588d1e.svg", "snowflake": "snowflake.min.cf85d1b3c62e223ffb80d8c838d4f0b8.svg", "sort": "sort.min.d90a6657569305b9b09b0c6997b5b915.svg", "stack": "stack.min.d36295767f8e2540bbbf60278114ca09.svg", "star": "star.min.d7445429f599f915661e6c57841ae339.svg", "steering-wheel": "steering-wheel.min.c632bf7d06f41d68f0a95d76615f3981.svg", "stopwatch": "stopwatch.min.c90f1fde0961349fe79c0b077f7b0d41.svg", "subtract": "subtract.min.bb9f2dcb0c81ac7f216f6fe2ba916c09.svg", "success": "success.min.4401a4715549bd7dfaaa4f54684b2088.svg", "success-filled": "success-filled.min.c9cb3c66aebf9c4f40b897064f901335.svg", "sun": "sun.min.a68eb6225965558e4498d3d38c33d52a.svg", "switch": "switch.min.ab6c8b55ab119d9bd5170a1893a75ed2.svg", "tablet": "tablet.min.60e7c4ef821bf610d2b2d5b06c7e88b7.svg", "tachometer": "tachometer.min.348f8c5eed7c61993a864ebcffee98bd.svg", "truck": "truck.min.43f91b0320003695d8804cf6a8a86da4.svg", "upload": "upload.min.cf3aaf8fb27e339d26133cbd6a5332ca.svg", "user": "user.min.0f8dcfbe34322e7968b4b23e11d963f0.svg", "user-group": "user-group.min.87f6ca16e7174b9a8d1894283a8ff1d4.svg", "user-manual": "user-manual.min.0b87e500e3d747e67be964c47a3ae312.svg", "video": "video.min.107dfd64c6fd7398dd48b94d61b2fe11.svg", "view": "view.min.cd78cae7309f44d941e9264047e3efa0.svg", "view-off": "view-off.min.e27746517bdb4c2c9ae5f025c7e74991.svg", "volume-off": "volume-off.min.711d24824df04d61c3129bbdcdbfa083.svg", "volume-up": "volume-up.min.0a2ebc984c6b9d2f53c747f9ba2028f1.svg", "warning": "warning.min.04529c502dddce98f0ae2eec0bfb3432.svg", "warning-filled": "warning-filled.min.ee8effcdc653f660043f909b6f0c938b.svg", "weight": "weight.min.47ef0b98ca8ed590dd7d6e6c3f1bcd46.svg", "wifi": "wifi.min.14540859e9241374bd9d0c89eb85667b.svg", "work": "work.min.d17986d8fcff6a5fcd5e9925e838fade.svg", "wrench": "wrench.min.90e402dc170fe83de23e2c11588ba037.svg", "wrenches": "wrenches.min.990b074555825a218e86fd35397fc88c.svg", "zoom-in": "zoom-in.min.22fa9d7ee8748debc801fe910f2d3d01.svg", "zoom-out": "zoom-out.min.9408a4dc5786ed5a783a729e58ab3d6d.svg" };
|
|
3750
|
+
const ICONS_MANIFEST = { "360": "360.min.5f2fcac02969bc425484fe8d80e5a1c9.svg", "accessibility": "accessibility.min.295a9d53a11c42212b8cce594982dfd2.svg", "active-cabin-ventilation": "active-cabin-ventilation.min.030c46def7a7397091d920b65bc0da3c.svg", "add": "add.min.8578a2d10c79a78e398e963b506b6cb5.svg", "adjust": "adjust.min.cdb89f5c161a4c82328fe60e72a88c59.svg", "arrow-double-down": "arrow-double-down.min.3b17923187ef2114d1f17da042fc97ca.svg", "arrow-double-left": "arrow-double-left.min.bba22e26f025c439b600bf74f0566465.svg", "arrow-double-right": "arrow-double-right.min.14f743d4adb5467fc0e95ac7f6426e1f.svg", "arrow-double-up": "arrow-double-up.min.8e3b3e31d227366f916c91dcb6e1b466.svg", "arrow-down": "arrow-down.min.84e69acc6554637cc373b8a4f50ba991.svg", "arrow-first": "arrow-first.min.bc51317ecf4953a664870ebab5059775.svg", "arrow-head-down": "arrow-head-down.min.454c189f4914925447670d0ae9bd2043.svg", "arrow-head-left": "arrow-head-left.min.aa2da7b4dbbb8a28c046592290054e94.svg", "arrow-head-right": "arrow-head-right.min.fb602ae5cb51970770570a70287e77e9.svg", "arrow-head-up": "arrow-head-up.min.2c282619214e4f998e1ac64a61b5545b.svg", "arrow-last": "arrow-last.min.72553c4284717d4961f8bcf8d51e0303.svg", "arrow-left": "arrow-left.min.24e8467ef0f8f206f228a3d8d443d70b.svg", "arrow-right": "arrow-right.min.8fb7b42d2d08d60f918602aa28475c0b.svg", "arrow-up": "arrow-up.min.0bc737f7f2cc56ef65c5d33472e014b0.svg", "augmented-reality": "augmented-reality.min.290ff033e35774fd093e1ab8ed07e10f.svg", "battery-empty": "battery-empty.min.8594e37d3e67a95b85eb9935f02e69cf.svg", "battery-full": "battery-full.min.4c75acb5a64a6dd3116ede7b1859a6d6.svg", "bell": "bell.min.d69dc9a220dec323e758ccbff756b5b5.svg", "bookmark": "bookmark.min.0cb177c79674593133f6d3d384c5df4b.svg", "broadcast": "broadcast.min.edbfac03d4afdc964d350f54df79c6f3.svg", "calculator": "calculator.min.2518729352d3709e488e71dcbf449247.svg", "calendar": "calendar.min.588fabe880634ece974291f5adfee50d.svg", "camera": "camera.min.10af3a4fac8c289775390534a50606d0.svg", "car": "car.min.4eeec04c87a14bb5d3d316eeeee0185b.svg", "car-battery": "car-battery.min.2a619bbd456ad531c922bf8f51b70977.svg", "card": "card.min.06394222c7ca5d6c7e783d6f86f030a6.svg", "charging-active": "charging-active.min.915410d626a52a3a76b6bf498491c255.svg", "charging-state": "charging-state.min.c5cb87ef2808f824f352a6ebd9b9d4a9.svg", "charging-station": "charging-station.min.211fcf0f9a9bb50b6e83482ee588dda9.svg", "chart": "chart.min.267e23c07f47784c186c5119b870df76.svg", "chat": "chat.min.a8a52d1b8b463ee0e5a3b0d812c9a40c.svg", "check": "check.min.0cb26d9a5ee1d217e5054f1ad60ae3b4.svg", "city": "city.min.a99b88b51adda8244a2c72953a2f4ab4.svg", "climate": "climate.min.5d52b2880552275d9032afc0fa2b7296.svg", "climate-control": "climate-control.min.152235d2bf2b7ec6e1a3c40e6971c446.svg", "clock": "clock.min.bcea9f182e1fe861ea6e765650f79b38.svg", "close": "close.min.eefab6ef191882058f9ed548bd5a467e.svg", "closed-caption": "closed-caption.min.b93ac43c07223fda14249d2279823f6a.svg", "co2-emission": "co2-emission.min.788590454baa0f6c52dfc99a55fe0b85.svg", "compare": "compare.min.657a924ca48bf93d200d2e6539fa8050.svg", "configurate": "configurate.min.2d137bc6f43ee03587188b571c97aacd.svg", "country-road": "country-road.min.3ee2c1be9d063f5d7c5772fcc7ae2568.svg", "cubic-capacity": "cubic-capacity.min.b5df863671bdf059bce19eddc2990698.svg", "delete": "delete.min.fd9788c3a0842a7bb1d737c6de1969d1.svg", "disable": "disable.min.c3d85d4ed9738c077d19e524775dbd56.svg", "document": "document.min.d2db26d7049ab2180361c7ce40f52d57.svg", "download": "download.min.d7c63bcbadf4dd5b14c3c79a438d93f3.svg", "duration": "duration.min.9405be759f64c8253076f7e55c80c336.svg", "edit": "edit.min.06bde2175fafb58233fa1ce6d3d00f83.svg", "email": "email.min.eb8ff02812a48c5098d3c40614e8d9d7.svg", "error-filled": "error-filled.min.35d7da7cb866bcfd3a25859f8cd2246b.svg", "exclamation": "exclamation.min.6ca46945978bd4eb2a40dc29766b1882.svg", "external": "external.min.b804bef35446f6b3cb379c121de3f13d.svg", "filter": "filter.min.60f168332c7550dfdf714ed0507877b0.svg", "flash": "flash.min.e5a6de1239300a6104076ee67aec42ca.svg", "fuel-station": "fuel-station.min.0155159076984cccdbfe854eb4da3720.svg", "garage": "garage.min.463577e6a1ffac592b5aa7bec9a82d39.svg", "gift": "gift.min.eeb1a5871a4008bcafd9495fe11ec9bc.svg", "globe": "globe.min.50fd2c886a822673902bd106efc73c3f.svg", "grid": "grid.min.c36c5015115005dcb9c948f07af0be80.svg", "highway": "highway.min.ea773dcf33a43fa8e82beae96c1222b7.svg", "home": "home.min.2bdc01bb7c9b39fa5ef5a81c8c3f9f49.svg", "horn": "horn.min.77105eb430a033a3ffdf21f9fecd32de.svg", "image": "image.min.851c64681e1950312a934a723ca04a85.svg", "increase": "increase.min.45bfe421e86192da37c8cca4917c10c2.svg", "information": "information.min.d387e44cc786ca3df3702f429518a1d9.svg", "information-filled": "information-filled.min.1055e842bb7d89c061ff1b5f47ed6169.svg", "key": "key.min.37b5e8ff9fda430f855f4b82bfd03485.svg", "leaf": "leaf.min.ea91b1d04ade4c49640e89ade35c9d90.svg", "leather": "leather.min.ef9e664d2fc3c28171fbd3d93b079503.svg", "light": "light.min.5fa3dd77ee9c63e28614c4c7c4a6d39c.svg", "list": "list.min.ecaeee96ec6cf2f8c9028ea404113a9e.svg", "locate": "locate.min.c28bdf292bbf297eb8109a272e2ffb91.svg", "lock": "lock.min.d258c21c7217cd1342307c45ecd5176e.svg", "lock-open": "lock-open.min.2ef427e273635e3aab7601b0fe92e86e.svg", "logo-apple-podcast": "logo-apple-podcast.min.af7a1f162ae9d6dba90fe155d8688b9c.svg", "logo-baidu": "logo-baidu.min.a8eb57b32e616b21820d86882835fe20.svg", "logo-delicious": "logo-delicious.min.fc2927d4979ffaed1f23160091e0975e.svg", "logo-digg": "logo-digg.min.d7340b3f22cf4a22a8ac3b472c16e0e2.svg", "logo-facebook": "logo-facebook.min.0c2e020d0b61d37e76e6bab67e4d149e.svg", "logo-foursquare": "logo-foursquare.min.b2699d993d9d731892ba01874c0e023d.svg", "logo-gmail": "logo-gmail.min.0c14069d86c2ba0a42c726d96f0cae9c.svg", "logo-google": "logo-google.min.c1f3931d74e40e5cdc875236b7e674a1.svg", "logo-hatena": "logo-hatena.min.021834899da6e6f6a9dd963f4fc3337c.svg", "logo-instagram": "logo-instagram.min.2f8c578e2472dc13b2f0ec8d1b936442.svg", "logo-kaixin": "logo-kaixin.min.8fb995689a3442669df37b5f375922fc.svg", "logo-kakaotalk": "logo-kakaotalk.min.988146b4cd8bced103fd8b5a9be064d8.svg", "logo-linkedin": "logo-linkedin.min.e4848fd4b74404e504fd1a4d5a25b960.svg", "logo-naver": "logo-naver.min.13f97e4c3ad4898d169904caa609f2d0.svg", "logo-pinterest": "logo-pinterest.min.101284bac1d7cf468719fccf416069df.svg", "logo-qq": "logo-qq.min.5d89ab35e4e00e81deadaa2fe0d51a5d.svg", "logo-qq-share": "logo-qq-share.min.01da8f9d6665f4529f349f88b4fb0cfc.svg", "logo-reddit": "logo-reddit.min.40dd42ee1368dbc74611afee4d3c9850.svg", "logo-skyrock": "logo-skyrock.min.9440a0e4a088cdfbfcc99bc91010768a.svg", "logo-sohu": "logo-sohu.min.d7a030336d712a2b44982e65071cd2bc.svg", "logo-spotify": "logo-spotify.min.48fb45730d66998420f8760b6d2f7fcc.svg", "logo-tecent": "logo-tecent.min.fd1ec329327f4cbf5706c393df66af9d.svg", "logo-telegram": "logo-telegram.min.624fca36dd6f6c5b64bce6e617372d77.svg", "logo-tiktok": "logo-tiktok.min.9c5ffad4c76353afaa99feca9e4f2f0a.svg", "logo-tumblr": "logo-tumblr.min.9b77d06b659cee9d5f45015c33c23967.svg", "logo-twitter": "logo-twitter.min.ac4d6b189cd2a47e4fac75bedb76b5bd.svg", "logo-viber": "logo-viber.min.330fbae7d2683b7910d828cbe864f738.svg", "logo-vk": "logo-vk.min.727ba204a194c8cf1b7fc389ac1db14b.svg", "logo-wechat": "logo-wechat.min.0392ff30f188aa9f52480e965142474a.svg", "logo-weibo": "logo-weibo.min.3ded49004baea42d85fa6fcb9d79ccb1.svg", "logo-whatsapp": "logo-whatsapp.min.02c83d3cbde89763eee8fc3bcab02257.svg", "logo-xing": "logo-xing.min.6a5f5fde119a841823d0ef05293b3454.svg", "logo-yahoo": "logo-yahoo.min.622e886e777c08cf80c31dc99ca13f1a.svg", "logo-youku": "logo-youku.min.d35a5283c6d3094748f565c729f56d9f.svg", "logo-youtube": "logo-youtube.min.59c939904cbec0c7793289eb5e68cb99.svg", "logout": "logout.min.aa54756e3aec12f347fdec0a2905a232.svg", "map": "map.min.643551801bfc27a93438c30ebe1d1387.svg", "menu-dots-horizontal": "menu-dots-horizontal.min.94e0804e3a5a30a577cab6296ad8d15d.svg", "menu-dots-vertical": "menu-dots-vertical.min.7ec3f5be33dd3459d7a9bed9fdbe22d3.svg", "menu-lines": "menu-lines.min.30ff09f6e2ce846286dd136279636097.svg", "minus": "minus.min.00cca11ec9ce4bd913abba2059c3f10b.svg", "mobile": "mobile.min.71d3c0d7fb4349383562cc233478f7fb.svg", "moon": "moon.min.5c447b4013210e7c7723ca4b6fdbfa9f.svg", "oil-can": "oil-can.min.31978141ee5529f97833027b1e03294a.svg", "parking-brake": "parking-brake.min.f03105e84898f1db02c6fcbdd008bfcf.svg", "parking-light": "parking-light.min.968af68684df1220b15cff6616e8376e.svg", "pause": "pause.min.dd29b256b73311abf1549ed16fe7a47b.svg", "phone": "phone.min.e1a58c454ffe074b30a5bb16c75ff23f.svg", "pin": "pin.min.c6ce5ea394fd9cf9dca80a592e2aeae4.svg", "pin-filled": "pin-filled.min.e47cf748ce9a27ced935c6b6cf4c59f1.svg", "play": "play.min.703fb2dbebac16ea91a6524914626ae2.svg", "plug": "plug.min.02d79b2702ac5c41020b54bd9eedf523.svg", "plus": "plus.min.dd34f71292a547080b9247a72c1adda2.svg", "preheating": "preheating.min.96ccdd3d24b0634ca820dc894894a34d.svg", "printer": "printer.min.bcd50214772a8fcc1d0f0ae1205610bf.svg", "purchase": "purchase.min.70535cff1a085154ab49ab958fe91aae.svg", "push-pin": "push-pin.min.7cec1084d78eb838957424d8ed62ecf5.svg", "push-pin-off": "push-pin-off.min.de81e394f6d02de580d4408070986097.svg", "qr": "qr.min.1facfc2c9b70057552904fe123674746.svg", "question": "question.min.df469b72598d2dbfb458c46430c0690a.svg", "racing-flag": "racing-flag.min.1aee1d177d44aaaca113a8b7a81db573.svg", "refresh": "refresh.min.36ced59c8e8d06980d6ac20cca8a9057.svg", "replay": "replay.min.d4f212bf3d5f8fe166d78dba57eeacde.svg", "reset": "reset.min.e1ce71f684b6e83b9ed8182389bd407f.svg", "route": "route.min.49f1935d2a563b150bb382eb56a04972.svg", "rss": "rss.min.eaf3873673fcbff72833e7a77f9510f8.svg", "save": "save.min.6506e50ad89aee223e85fe52242c232e.svg", "screen": "screen.min.c17978f44a7bf9f7d80f178fd2b7d116.svg", "search": "search.min.f2755d61c24b6ad037f51d65588be308.svg", "send": "send.min.544f2b90e562b8582808f735846b1351.svg", "share": "share.min.b7b59aa7085cc865735acfd940480234.svg", "shopping-bag": "shopping-bag.min.9d99682e614f5bbb9760c1a0272bd1e0.svg", "shopping-bag-filled": "shopping-bag-filled.min.566efdc835446512c426a9ef5e3badb0.svg", "shopping-cart": "shopping-cart.min.05a6c651afb21246daba2e941e8366cc.svg", "shopping-cart-filled": "shopping-cart-filled.min.c166601be618e0aadd596b54785f18f2.svg", "sidelights": "sidelights.min.996d591ee87247eae32968bf0b588d1e.svg", "snowflake": "snowflake.min.cf85d1b3c62e223ffb80d8c838d4f0b8.svg", "sort": "sort.min.d90a6657569305b9b09b0c6997b5b915.svg", "stack": "stack.min.d36295767f8e2540bbbf60278114ca09.svg", "star": "star.min.d7445429f599f915661e6c57841ae339.svg", "steering-wheel": "steering-wheel.min.c632bf7d06f41d68f0a95d76615f3981.svg", "stopwatch": "stopwatch.min.c90f1fde0961349fe79c0b077f7b0d41.svg", "subtract": "subtract.min.bb9f2dcb0c81ac7f216f6fe2ba916c09.svg", "success": "success.min.4401a4715549bd7dfaaa4f54684b2088.svg", "success-filled": "success-filled.min.c9cb3c66aebf9c4f40b897064f901335.svg", "sun": "sun.min.a68eb6225965558e4498d3d38c33d52a.svg", "switch": "switch.min.ab6c8b55ab119d9bd5170a1893a75ed2.svg", "tablet": "tablet.min.60e7c4ef821bf610d2b2d5b06c7e88b7.svg", "tachometer": "tachometer.min.348f8c5eed7c61993a864ebcffee98bd.svg", "truck": "truck.min.43f91b0320003695d8804cf6a8a86da4.svg", "upload": "upload.min.cf3aaf8fb27e339d26133cbd6a5332ca.svg", "user": "user.min.0f8dcfbe34322e7968b4b23e11d963f0.svg", "user-filled": "user-filled.min.aa7b4c61ce78e08ba35fb513ff9e19dd.svg", "user-group": "user-group.min.87f6ca16e7174b9a8d1894283a8ff1d4.svg", "user-manual": "user-manual.min.0b87e500e3d747e67be964c47a3ae312.svg", "video": "video.min.107dfd64c6fd7398dd48b94d61b2fe11.svg", "view": "view.min.cd78cae7309f44d941e9264047e3efa0.svg", "view-off": "view-off.min.e27746517bdb4c2c9ae5f025c7e74991.svg", "volume-off": "volume-off.min.711d24824df04d61c3129bbdcdbfa083.svg", "volume-up": "volume-up.min.0a2ebc984c6b9d2f53c747f9ba2028f1.svg", "warning": "warning.min.04529c502dddce98f0ae2eec0bfb3432.svg", "warning-filled": "warning-filled.min.ee8effcdc653f660043f909b6f0c938b.svg", "weight": "weight.min.47ef0b98ca8ed590dd7d6e6c3f1bcd46.svg", "wifi": "wifi.min.14540859e9241374bd9d0c89eb85667b.svg", "work": "work.min.d17986d8fcff6a5fcd5e9925e838fade.svg", "wrench": "wrench.min.90e402dc170fe83de23e2c11588ba037.svg", "wrenches": "wrenches.min.990b074555825a218e86fd35397fc88c.svg", "zoom-in": "zoom-in.min.22fa9d7ee8748debc801fe910f2d3d01.svg", "zoom-out": "zoom-out.min.9408a4dc5786ed5a783a729e58ab3d6d.svg" };
|
|
3779
3751
|
const isUrl = (str) => (str === null || str === void 0 ? void 0 : str.length) > 0 && /(\/)/.test(str);
|
|
3780
3752
|
const DEFAULT_ICON_NAME = 'arrow-right';
|
|
3781
3753
|
const buildIconUrl = (iconNameOrSource = DEFAULT_ICON_NAME) => {
|
|
@@ -3829,6 +3801,7 @@ const getSvgUrl = (model) => {
|
|
|
3829
3801
|
;
|
|
3830
3802
|
return `${cdnBaseUrl}/${MODEL_SIGNATURES_MANIFEST[model]}`;
|
|
3831
3803
|
};
|
|
3804
|
+
const modelSignatureHeight = 36;
|
|
3832
3805
|
// TODO: create enum
|
|
3833
3806
|
const itemTypes = {
|
|
3834
3807
|
PAGE: 'PAGE',
|
|
@@ -3965,11 +3938,9 @@ const getTotalPages = (totalItemsCount, itemsPerPage) => {
|
|
|
3965
3938
|
};
|
|
3966
3939
|
|
|
3967
3940
|
const { backgroundColor: backgroundColorThemeLight, primaryColor: primaryColorThemeLight } = getThemedColors('light');
|
|
3968
|
-
const
|
|
3941
|
+
const { canvasColor, canvasTextColor } = getHighContrastColors();
|
|
3969
3942
|
const borderWidth = '12px';
|
|
3970
3943
|
const transparentColor = 'transparent';
|
|
3971
|
-
const canvas = 'canvas';
|
|
3972
|
-
const canvasText = 'canvastext';
|
|
3973
3944
|
const join = (...arr) => arr.join(' ');
|
|
3974
3945
|
({
|
|
3975
3946
|
top: {
|
|
@@ -3977,40 +3948,36 @@ const join = (...arr) => arr.join(' ');
|
|
|
3977
3948
|
left: '50%',
|
|
3978
3949
|
transform: 'translateX(-50%)',
|
|
3979
3950
|
borderWidth: join(borderWidth, borderWidth, 0),
|
|
3980
|
-
borderColor:
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
},
|
|
3951
|
+
borderColor: isHighContrastMode
|
|
3952
|
+
? join(canvasTextColor, canvasColor, canvasColor)
|
|
3953
|
+
: join(backgroundColorThemeLight, transparentColor, transparentColor),
|
|
3984
3954
|
},
|
|
3985
3955
|
right: {
|
|
3986
3956
|
top: '50%',
|
|
3987
3957
|
right: 0,
|
|
3988
3958
|
transform: 'translateY(-50%)',
|
|
3989
3959
|
borderWidth: join(borderWidth, borderWidth, borderWidth, 0),
|
|
3990
|
-
borderColor:
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
},
|
|
3960
|
+
borderColor: isHighContrastMode
|
|
3961
|
+
? join(canvasColor, canvasTextColor, canvasColor, canvasColor)
|
|
3962
|
+
: join(transparentColor, backgroundColorThemeLight, transparentColor, transparentColor),
|
|
3994
3963
|
},
|
|
3995
3964
|
bottom: {
|
|
3996
3965
|
bottom: 0,
|
|
3997
3966
|
left: '50%',
|
|
3998
3967
|
transform: 'translateX(-50%)',
|
|
3999
3968
|
borderWidth: join(0, borderWidth, borderWidth),
|
|
4000
|
-
borderColor:
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
},
|
|
3969
|
+
borderColor: isHighContrastMode
|
|
3970
|
+
? join(canvasColor, canvasColor, canvasTextColor)
|
|
3971
|
+
: join(transparentColor, transparentColor, backgroundColorThemeLight),
|
|
4004
3972
|
},
|
|
4005
3973
|
left: {
|
|
4006
3974
|
top: '50%',
|
|
4007
3975
|
left: 0,
|
|
4008
3976
|
transform: 'translateY(-50%)',
|
|
4009
3977
|
borderWidth: join(borderWidth, 0, borderWidth, borderWidth),
|
|
4010
|
-
borderColor:
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
},
|
|
3978
|
+
borderColor: isHighContrastMode
|
|
3979
|
+
? join(canvasColor, canvasColor, canvasColor, canvasTextColor)
|
|
3980
|
+
: join(transparentColor, transparentColor, transparentColor, backgroundColorThemeLight),
|
|
4014
3981
|
},
|
|
4015
3982
|
});
|
|
4016
3983
|
|
|
@@ -4088,4 +4055,4 @@ const getTextTagType = (host, tag) => {
|
|
|
4088
4055
|
}
|
|
4089
4056
|
};
|
|
4090
4057
|
|
|
4091
|
-
export { DISPLAY_TAGS, HEADING_TAGS, HEADLINE_TAGS, TEXT_TAGS, _hasShowPickerSupport, attributeMutationMap, buildCrestSrcSet, buildIconUrl, buildSrcSet, cdnBaseUrl, childrenMutationMap, createPaginationModel, createRange, crestCdnBaseUrl, crestInnerManifest, displaySizeToTagMap, getButtonAriaAttributes, getButtonAttributes, getButtonBaseAriaAttributes, getButtonPureAriaAttributes, getClosestHTMLElement, getContentAriaAttributes, getCurrentActivePage, getDirectChildHTMLElement, getDisplayTagType, getHTMLElement, getHeadingTagType, getHeadlineTagType, getIconColor, getInlineNotificationIconName, getInnerManifest, getLinkButtonThemeForIcon, getRole, getStepperHorizontalIconName, getSvgUrl, getSwitchButtonAriaAttributes, getTextTagType, getThemeForIcon, getTotalPages, hasDocument, hasLocateAction, hasSpecificSlottedTag, hasVisibleIcon, hasWindow, isDisabledOrLoading,
|
|
4058
|
+
export { DISPLAY_TAGS, HEADING_TAGS, HEADLINE_TAGS, TEXT_TAGS, _hasShowPickerSupport, attributeMutationMap, buildCrestSrcSet, buildIconUrl, buildSrcSet, cdnBaseUrl, childrenMutationMap, createPaginationModel, createRange, crestCdnBaseUrl, crestInnerManifest, crestSize, displaySizeToTagMap, getButtonAriaAttributes, getButtonAttributes, getButtonBaseAriaAttributes, getButtonPureAriaAttributes, getClosestHTMLElement, getContentAriaAttributes, getCurrentActivePage, getDirectChildHTMLElement, getDisplayTagType, getHTMLElement, getHeadingTagType, getHeadlineTagType, getIconColor, getInlineNotificationIconName, getInnerManifest, getLinkButtonThemeForIcon, getRole, getStepperHorizontalIconName, getSvgUrl, getSwitchButtonAriaAttributes, getTextTagType, getThemeForIcon, getTotalPages, hasDocument, hasLocateAction, hasSpecificSlottedTag, hasVisibleIcon, hasWindow, isDisabledOrLoading, isHighContrastMode, isListTypeOrdered, isScrollable, isSortable, isStateCompleteOrWarning, isThemeDark, isType, isUrl, isWithinForm, itemTypes, modelSignatureHeight, parseAndGetAriaAttributes, parseJSONAttribute, resizeMap, showCustomCalendarOrTimeIndicator, supportsConstructableStylesheets, tempDiv, tempIcon, tempLabel };
|
|
@@ -4,13 +4,13 @@ import { usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.j
|
|
|
4
4
|
import { syncRef } from '../../utils.js';
|
|
5
5
|
import { DSRCheckboxWrapper } from '../dsr-components/checkbox-wrapper.js';
|
|
6
6
|
|
|
7
|
-
const PCheckboxWrapper = forwardRef(({ hideLabel = false, label = '', message = '', state = 'none', theme = 'light', className, children, ...rest }, ref) => {
|
|
7
|
+
const PCheckboxWrapper = forwardRef(({ hideLabel = false, label = '', loading = false, message = '', state = 'none', theme = 'light', className, children, ...rest }, ref) => {
|
|
8
8
|
const elementRef = useRef();
|
|
9
9
|
const WebComponentTag = usePrefix('p-checkbox-wrapper');
|
|
10
|
-
const propsToSync = [hideLabel, label, message, state, theme];
|
|
10
|
+
const propsToSync = [hideLabel, label, loading, message, state, theme];
|
|
11
11
|
useBrowserLayoutEffect(() => {
|
|
12
12
|
const { current } = elementRef;
|
|
13
|
-
['hideLabel', 'label', 'message', 'state', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
13
|
+
['hideLabel', 'label', 'loading', 'message', 'state', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
14
14
|
}, propsToSync);
|
|
15
15
|
// @ts-ignore
|
|
16
16
|
if (!process.browser) {
|
|
@@ -21,7 +21,7 @@ const PCheckboxWrapper = forwardRef(({ hideLabel = false, label = '', message =
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
...(!process.browser
|
|
23
23
|
? {
|
|
24
|
-
children: (jsx(DSRCheckboxWrapper, { ...{ hideLabel, label, message, state, theme, children } })),
|
|
24
|
+
children: (jsx(DSRCheckboxWrapper, { ...{ hideLabel, label, loading, message, state, theme, children } })),
|
|
25
25
|
}
|
|
26
26
|
: {
|
|
27
27
|
children,
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js
CHANGED
|
@@ -71,9 +71,8 @@ class DSRAccordion extends Component {
|
|
|
71
71
|
const buttonId = 'accordion-control';
|
|
72
72
|
const contentId = 'accordion-panel';
|
|
73
73
|
const Heading = this.props.tag;
|
|
74
|
-
// TODO: why .root div for a condition border-bottom style? could be applied on :host directly
|
|
75
74
|
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$Y(this.props.size, this.props.compact, this.props.open, this.props.theme)));
|
|
76
|
-
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(
|
|
75
|
+
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsx(Heading, { className: "heading", children: jsxs("button", { id: buttonId, type: "button", "aria-expanded": this.props.open ? 'true' : 'false', "aria-controls": contentId, children: [this.props.heading || jsx("slot", { name: "heading" }), jsx(PIcon, { className: "icon", name: this.props.open ? 'minus' : 'plus', theme: this.props.theme, size: "inherit", "aria-hidden": "true" })] }) }), jsx("div", { id: contentId, className: "collapsible", role: "region", "aria-labelledby": buttonId, children: jsx("div", { children: jsx("slot", {}) }) })] })] }), this.props.children] }));
|
|
77
76
|
}
|
|
78
77
|
}
|
|
79
78
|
|
|
@@ -1,4 +1,64 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import '../components/accordion.wrapper.js';
|
|
3
|
+
import '../components/banner.wrapper.js';
|
|
4
|
+
import '../components/button.wrapper.js';
|
|
5
|
+
import '../components/button-group.wrapper.js';
|
|
6
|
+
import '../components/button-pure.wrapper.js';
|
|
7
|
+
import '../components/button-tile.wrapper.js';
|
|
8
|
+
import '../components/carousel.wrapper.js';
|
|
9
|
+
import '../components/checkbox-wrapper.wrapper.js';
|
|
10
|
+
import '../components/content-wrapper.wrapper.js';
|
|
11
|
+
import '../components/crest.wrapper.js';
|
|
12
|
+
import '../components/display.wrapper.js';
|
|
13
|
+
import '../components/divider.wrapper.js';
|
|
14
|
+
import '../components/fieldset.wrapper.js';
|
|
15
|
+
import '../components/fieldset-wrapper.wrapper.js';
|
|
16
|
+
import '../components/flex.wrapper.js';
|
|
17
|
+
import '../components/flex-item.wrapper.js';
|
|
18
|
+
import '../components/grid.wrapper.js';
|
|
19
|
+
import '../components/grid-item.wrapper.js';
|
|
20
|
+
import '../components/heading.wrapper.js';
|
|
21
|
+
import '../components/headline.wrapper.js';
|
|
22
|
+
import '../components/icon.wrapper.js';
|
|
23
|
+
import '../components/inline-notification.wrapper.js';
|
|
24
|
+
import '../components/link.wrapper.js';
|
|
25
|
+
import '../components/link-pure.wrapper.js';
|
|
26
|
+
import '../components/link-social.wrapper.js';
|
|
27
|
+
import '../components/link-tile.wrapper.js';
|
|
28
|
+
import '../components/link-tile-model-signature.wrapper.js';
|
|
29
|
+
import '../components/marque.wrapper.js';
|
|
30
|
+
import '../components/modal.wrapper.js';
|
|
31
|
+
import '../components/model-signature.wrapper.js';
|
|
32
|
+
import '../components/pagination.wrapper.js';
|
|
33
|
+
import '../components/popover.wrapper.js';
|
|
34
|
+
import '../components/radio-button-wrapper.wrapper.js';
|
|
35
|
+
import '../components/scroller.wrapper.js';
|
|
36
|
+
import '../components/segmented-control.wrapper.js';
|
|
37
|
+
import '../components/segmented-control-item.wrapper.js';
|
|
38
|
+
import '../components/select-wrapper.wrapper.js';
|
|
39
|
+
import { PSpinner } from '../components/spinner.wrapper.js';
|
|
40
|
+
import '../components/stepper-horizontal.wrapper.js';
|
|
41
|
+
import '../components/stepper-horizontal-item.wrapper.js';
|
|
42
|
+
import '../components/switch.wrapper.js';
|
|
43
|
+
import '../components/table.wrapper.js';
|
|
44
|
+
import '../components/table-body.wrapper.js';
|
|
45
|
+
import '../components/table-cell.wrapper.js';
|
|
46
|
+
import '../components/table-head.wrapper.js';
|
|
47
|
+
import '../components/table-head-cell.wrapper.js';
|
|
48
|
+
import '../components/table-head-row.wrapper.js';
|
|
49
|
+
import '../components/table-row.wrapper.js';
|
|
50
|
+
import '../components/tabs.wrapper.js';
|
|
51
|
+
import '../components/tabs-bar.wrapper.js';
|
|
52
|
+
import '../components/tabs-item.wrapper.js';
|
|
53
|
+
import '../components/tag.wrapper.js';
|
|
54
|
+
import '../components/tag-dismissible.wrapper.js';
|
|
55
|
+
import '../components/text.wrapper.js';
|
|
56
|
+
import '../components/text-field-wrapper.wrapper.js';
|
|
57
|
+
import '../components/text-list.wrapper.js';
|
|
58
|
+
import '../components/text-list-item.wrapper.js';
|
|
59
|
+
import '../components/textarea-wrapper.wrapper.js';
|
|
60
|
+
import '../components/toast.wrapper.js';
|
|
61
|
+
import '../components/wordmark.wrapper.js';
|
|
2
62
|
import { splitChildren } from '../../splitChildren.js';
|
|
3
63
|
import { Component } from 'react';
|
|
4
64
|
import { minifyCss } from '../../minifyCss.js';
|
|
@@ -10,8 +70,8 @@ class DSRCheckboxWrapper extends Component {
|
|
|
10
70
|
render() {
|
|
11
71
|
var _a;
|
|
12
72
|
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
13
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$R(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), this.props.theme)));
|
|
14
|
-
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "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: "text", 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, theme: this.props.theme, host: null }))] })] }), this.props.children] }));
|
|
73
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$R(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), this.props.loading, this.props.theme)));
|
|
74
|
+
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsxs("label", { "aria-disabled": this.props.loading ? 'true' : null, children: [(this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && (jsx("span", { className: "text", children: this.props.label || jsx("slot", { name: "label" }) })), jsx("slot", {}), this.props.loading && (jsx(PSpinner, { className: "spinner", size: "inherit", theme: this.props.theme, aria: { 'aria-label': `Loading state of ${this.props.label}` } }))] }), (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, theme: this.props.theme, host: null }))] })] }), this.props.children] }));
|
|
15
75
|
}
|
|
16
76
|
}
|
|
17
77
|
|
|
@@ -3,11 +3,12 @@ import { Component } from 'react';
|
|
|
3
3
|
import { minifyCss } from '../../minifyCss.js';
|
|
4
4
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
5
5
|
import { getCrestCss as getComponentCss$P } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
6
|
-
import { buildCrestSrcSet, crestCdnBaseUrl, crestInnerManifest, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.js';
|
|
6
|
+
import { buildCrestSrcSet, crestCdnBaseUrl, crestInnerManifest, parseAndGetAriaAttributes, crestSize } from '../../../../../../components/dist/utils/esm/utils-entry.js';
|
|
7
7
|
|
|
8
|
+
const { width, height } = crestSize;
|
|
8
9
|
class DSRCrest extends Component {
|
|
9
10
|
render() {
|
|
10
|
-
const picture = (jsxs("picture", { children: [jsx("source", { srcSet: buildCrestSrcSet('webp'), type: "image/webp" }, "webp"), jsx("source", { srcSet: buildCrestSrcSet('png'), type: "image/png" }, "png"), jsx("img", { src: `${crestCdnBaseUrl}/${crestInnerManifest['2x'].png}`, alt: "Porsche" })] }));
|
|
11
|
+
const picture = (jsxs("picture", { children: [jsx("source", { srcSet: buildCrestSrcSet('webp'), type: "image/webp" }, "webp"), jsx("source", { srcSet: buildCrestSrcSet('png'), type: "image/png" }, "png"), jsx("img", { src: `${crestCdnBaseUrl}/${crestInnerManifest['2x'].png}`, width: width, height: height, alt: "Porsche" })] }));
|
|
11
12
|
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$P()));
|
|
12
13
|
return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: this.props.href === undefined ? (picture) : (jsx("a", { href: this.props.href, target: this.props.target, ...parseAndGetAriaAttributes(this.props.aria), children: picture })) })] }) }));
|
|
13
14
|
}
|
|
@@ -81,7 +81,7 @@ class DSRLinkTileModelSignature extends Component {
|
|
|
81
81
|
const overlayLinkProps = {
|
|
82
82
|
className: 'link-overlay',
|
|
83
83
|
href: linkEl.href || linkEl.to,
|
|
84
|
-
target: linkEl.target,
|
|
84
|
+
target: linkEl.target || '_self',
|
|
85
85
|
download: linkEl.download,
|
|
86
86
|
rel: linkEl.rel,
|
|
87
87
|
tabIndex: -1,
|
|
@@ -3,12 +3,12 @@ import { Component } from 'react';
|
|
|
3
3
|
import { minifyCss } from '../../minifyCss.js';
|
|
4
4
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
5
5
|
import { getModelSignatureCss as getComponentCss$w } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
6
|
-
import { getSvgUrl } from '../../../../../../components/dist/utils/esm/utils-entry.js';
|
|
6
|
+
import { getSvgUrl, modelSignatureHeight } from '../../../../../../components/dist/utils/esm/utils-entry.js';
|
|
7
7
|
|
|
8
8
|
class DSRModelSignature extends Component {
|
|
9
9
|
render() {
|
|
10
10
|
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$w(this.props.size, this.props.color, this.props.theme)));
|
|
11
|
-
return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("img", { src: getSvgUrl(this.props.model), height:
|
|
11
|
+
return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("img", { src: getSvgUrl(this.props.model), height: modelSignatureHeight, alt: this.props.model })] }) }));
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -96,7 +96,7 @@ class DSRTextFieldWrapper extends Component {
|
|
|
96
96
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsxs("div", { className: "root", children: [jsxs("label", { className: "label", children: [(this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && (jsx("span", { className: "label__text", ...labelProps, children: this.props.label || jsx("slot", { name: "label" }) })), (this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0) && (jsx("span", { className: "label__text", ...labelProps, children: this.props.description || jsx("slot", { name: "description" }) })), (this.props.isCounterVisible) && (jsx("span", { className: "unit", "aria-hidden": "true", children: this.props.unit })), jsx("slot", {}), hasCounter ] }), isPassword ? (jsx(PButtonPure, { ...buttonProps, type: "button", icon: this.props.showPassword ? 'view-off' : 'view', disabled: disabled, aria: { 'aria-pressed': this.props.showPassword ? 'true' : 'false' }, children: "Toggle password visibility" })) : showCustomCalendarOrTimeIndicator(isCalendar, isTime) ? (jsx(PButtonPure, { ...buttonProps, type: "button", icon: isCalendar ? 'calendar' : 'clock', disabled: disabled, children: `Show ${isCalendar ? 'date' : 'time'} picker` })) : (isSearch && [
|
|
97
97
|
// TODO: create an own component, which would fix SSR support too
|
|
98
98
|
this.props.isWithinForm ? (createElement(PButtonPure, { ...buttonProps, key: "btn-submit", type: "submit", icon: "search", disabled: disabledOrReadOnly }, "Search")) : (jsx(PIcon, { className: "icon", name: "search", color: "state-disabled", theme: this.props.theme, "aria-hidden": "true" }, "icon")),
|
|
99
|
-
createElement(PButtonPure, { ...buttonProps, type: "button", key: "btn-clear", icon: "close", tabIndex: -1, hidden: !isClearable, disabled: disabledOrReadOnly, "
|
|
99
|
+
createElement(PButtonPure, { ...buttonProps, type: "button", key: "btn-clear", icon: "close", tabIndex: -1, hidden: !isClearable, disabled: disabledOrReadOnly }, "Clear field"),
|
|
100
100
|
hasAction && (createElement(PButtonPure, { ...buttonProps, type: "button", key: "btn-action", icon: "locate", hidden: isClearable, disabled: disabledOrReadOnly, loading: this.props.actionLoading }, "Locate me")),
|
|
101
101
|
])] }), (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, theme: "light", host: null }))] })] }), this.props.children] }));
|
|
102
102
|
}
|
|
@@ -9,6 +9,10 @@ export type PCheckboxWrapperProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange
|
|
|
9
9
|
* The label text.
|
|
10
10
|
*/
|
|
11
11
|
label?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Disables the checkbox and shows a loading indicator.
|
|
14
|
+
*/
|
|
15
|
+
loading?: boolean;
|
|
12
16
|
/**
|
|
13
17
|
* The message styled depending on validation state.
|
|
14
18
|
*/
|
|
@@ -31,6 +35,10 @@ export declare const PCheckboxWrapper: import("react").ForwardRefExoticComponent
|
|
|
31
35
|
* The label text.
|
|
32
36
|
*/
|
|
33
37
|
label?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Disables the checkbox and shows a loading indicator.
|
|
40
|
+
*/
|
|
41
|
+
loading?: boolean;
|
|
34
42
|
/**
|
|
35
43
|
* The message styled depending on validation state.
|
|
36
44
|
*/
|