@uh-design-system/component-library 0.4.1 → 0.4.2
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/dist/cjs/component-library.cjs.js +3 -3
- package/dist/cjs/ds-accordion_3.cjs.entry.js +1 -1
- package/dist/cjs/ds-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/ds-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/ds-input-validity.cjs.entry.js +3 -3
- package/dist/cjs/ds-link-with-arrow.cjs.entry.js +4 -4
- package/dist/cjs/ds-link.cjs.entry.js +4 -4
- package/dist/cjs/ds-text-input.cjs.entry.js +1 -1
- package/dist/cjs/ds-visually-hidden.cjs.entry.js +1 -1
- package/dist/cjs/{index-b1d61146.js → index-b2bddcf4.js} +221 -134
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/01-base-components/ds-checkbox/ds-checkbox.css +0 -171
- package/dist/collection/components/01-base-components/ds-checkbox-group/ds-checkbox-group.css +1 -1
- package/dist/collection/components/01-base-components/ds-input-validity/ds-input-validity.js +3 -3
- package/dist/collection/components/01-base-components/ds-link/ds-link.css +0 -138
- package/dist/collection/components/01-base-components/ds-link/ds-link.js +3 -3
- package/dist/collection/components/01-base-components/ds-link/stories/ds-link.stories.js +4 -1
- package/dist/collection/components/01-base-components/ds-link-with-arrow/ds-link-with-arrow.css +0 -138
- package/dist/collection/components/01-base-components/ds-link-with-arrow/ds-link-with-arrow.js +3 -3
- package/dist/collection/components/01-base-components/ds-link-with-arrow/stories/ds-link-with-arrow.stories.js +4 -1
- package/dist/component-library/component-library.esm.js +1 -1
- package/dist/component-library/ds-accordion_3.entry.js +1 -1
- package/dist/component-library/ds-checkbox-group.entry.js +1 -1
- package/dist/component-library/ds-checkbox.entry.js +1 -1
- package/dist/component-library/ds-input-validity.entry.js +1 -1
- package/dist/component-library/ds-link-with-arrow.entry.js +1 -1
- package/dist/component-library/ds-link.entry.js +1 -1
- package/dist/component-library/ds-text-input.entry.js +1 -1
- package/dist/component-library/ds-visually-hidden.entry.js +1 -1
- package/dist/component-library/index-50783b0c.js +2 -0
- package/dist/components/ds-checkbox-group.js +1 -1
- package/dist/components/ds-checkbox2.js +1 -1
- package/dist/components/ds-input-validity2.js +3 -3
- package/dist/components/ds-link-with-arrow.js +4 -4
- package/dist/components/ds-link.js +4 -4
- package/dist/components/index2.js +203 -135
- package/dist/esm/component-library.js +4 -4
- package/dist/esm/ds-accordion_3.entry.js +1 -1
- package/dist/esm/ds-checkbox-group.entry.js +2 -2
- package/dist/esm/ds-checkbox.entry.js +2 -2
- package/dist/esm/ds-input-validity.entry.js +3 -3
- package/dist/esm/ds-link-with-arrow.entry.js +4 -4
- package/dist/esm/ds-link.entry.js +4 -4
- package/dist/esm/ds-text-input.entry.js +1 -1
- package/dist/esm/ds-visually-hidden.entry.js +1 -1
- package/dist/esm/{index-aaccd233.js → index-50783b0c.js} +221 -134
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/01-base-components/ds-input-validity/ds-input-validity.d.ts +1 -1
- package/dist/types/components/01-base-components/ds-link/ds-link.d.ts +1 -1
- package/dist/types/components/01-base-components/ds-link-with-arrow/ds-link-with-arrow.d.ts +1 -1
- package/dist/types/components.d.ts +6 -6
- package/package.json +18 -18
- package/dist/component-library/index-aaccd233.js +0 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const NAMESPACE = 'component-library';
|
|
2
|
-
const BUILD = /* component-library */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false,
|
|
2
|
+
const BUILD = /* component-library */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: true, hasRenderFn: true, hostListener: true, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: false, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, modernPropertyDecls: true, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: false, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: false, taskQueue: true, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.27.2 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
@@ -35,9 +35,12 @@ var reWireGetterSetter = (instance, hostRef) => {
|
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
// src/client/client-host-ref.ts
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
var getHostRef = (ref) => {
|
|
39
|
+
if (ref.__stencil__getHostRef) {
|
|
40
|
+
return ref.__stencil__getHostRef();
|
|
41
|
+
}
|
|
42
|
+
return void 0;
|
|
43
|
+
};
|
|
41
44
|
var registerHost = (hostElement, cmpMeta) => {
|
|
42
45
|
const hostRef = {
|
|
43
46
|
$flags$: 0,
|
|
@@ -50,7 +53,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
50
53
|
hostElement["s-p"] = [];
|
|
51
54
|
hostElement["s-rc"] = [];
|
|
52
55
|
}
|
|
53
|
-
const ref =
|
|
56
|
+
const ref = hostRef;
|
|
57
|
+
hostElement.__stencil__getHostRef = () => ref;
|
|
54
58
|
{
|
|
55
59
|
reWireGetterSetter(hostElement, hostRef);
|
|
56
60
|
}
|
|
@@ -71,7 +75,6 @@ var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
|
|
|
71
75
|
"formStateRestoreCallback"
|
|
72
76
|
];
|
|
73
77
|
var win = typeof window !== "undefined" ? window : {};
|
|
74
|
-
var doc = win.document || { head: {} };
|
|
75
78
|
var H = win.HTMLElement || class {
|
|
76
79
|
};
|
|
77
80
|
var plt = {
|
|
@@ -84,9 +87,10 @@ var plt = {
|
|
|
84
87
|
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
85
88
|
};
|
|
86
89
|
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
90
|
+
var _a;
|
|
87
91
|
let supportsListenerOptions2 = false;
|
|
88
92
|
try {
|
|
89
|
-
|
|
93
|
+
(_a = win.document) == null ? void 0 : _a.addEventListener(
|
|
90
94
|
"e",
|
|
91
95
|
null,
|
|
92
96
|
Object.defineProperty({}, "passive", {
|
|
@@ -159,9 +163,9 @@ var isComplexType = (o) => {
|
|
|
159
163
|
};
|
|
160
164
|
|
|
161
165
|
// src/utils/query-nonce-meta-tag-content.ts
|
|
162
|
-
function queryNonceMetaTagContent(
|
|
166
|
+
function queryNonceMetaTagContent(doc) {
|
|
163
167
|
var _a, _b, _c;
|
|
164
|
-
return (_c = (_b = (_a =
|
|
168
|
+
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
165
169
|
}
|
|
166
170
|
|
|
167
171
|
// src/utils/result.ts
|
|
@@ -213,12 +217,11 @@ var unwrapErr = (result) => {
|
|
|
213
217
|
}
|
|
214
218
|
};
|
|
215
219
|
var updateFallbackSlotVisibility = (elm) => {
|
|
216
|
-
const childNodes = elm
|
|
220
|
+
const childNodes = internalCall(elm, "childNodes");
|
|
217
221
|
if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
|
|
218
222
|
getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
|
|
219
|
-
var _a;
|
|
220
223
|
if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
|
|
221
|
-
if ((
|
|
224
|
+
if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
|
|
222
225
|
slotNode.hidden = true;
|
|
223
226
|
} else {
|
|
224
227
|
slotNode.hidden = false;
|
|
@@ -226,19 +229,31 @@ var updateFallbackSlotVisibility = (elm) => {
|
|
|
226
229
|
}
|
|
227
230
|
});
|
|
228
231
|
}
|
|
229
|
-
|
|
230
|
-
|
|
232
|
+
let i2 = 0;
|
|
233
|
+
for (i2 = 0; i2 < childNodes.length; i2++) {
|
|
234
|
+
const childNode = childNodes[i2];
|
|
235
|
+
if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
|
|
231
236
|
updateFallbackSlotVisibility(childNode);
|
|
232
237
|
}
|
|
233
238
|
}
|
|
234
239
|
};
|
|
240
|
+
var getSlottedChildNodes = (childNodes) => {
|
|
241
|
+
const result = [];
|
|
242
|
+
for (let i2 = 0; i2 < childNodes.length; i2++) {
|
|
243
|
+
const slottedNode = childNodes[i2]["s-nr"] || void 0;
|
|
244
|
+
if (slottedNode && slottedNode.isConnected) {
|
|
245
|
+
result.push(slottedNode);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
return result;
|
|
249
|
+
};
|
|
235
250
|
function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
236
251
|
let i2 = 0;
|
|
237
252
|
let slottedNodes = [];
|
|
238
253
|
let childNode;
|
|
239
254
|
for (; i2 < childNodes.length; i2++) {
|
|
240
255
|
childNode = childNodes[i2];
|
|
241
|
-
if (childNode["s-sr"] && childNode["s-hn"] === hostName && (slotName === void 0 || childNode
|
|
256
|
+
if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0 || getSlotName(childNode) === slotName)) {
|
|
242
257
|
slottedNodes.push(childNode);
|
|
243
258
|
if (typeof slotName !== "undefined") return slottedNodes;
|
|
244
259
|
}
|
|
@@ -246,11 +261,12 @@ function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
|
246
261
|
}
|
|
247
262
|
return slottedNodes;
|
|
248
263
|
}
|
|
249
|
-
var
|
|
264
|
+
var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
|
|
250
265
|
const childNodes = [];
|
|
251
|
-
if (includeSlot &&
|
|
252
|
-
|
|
253
|
-
|
|
266
|
+
if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
|
|
267
|
+
let node = slot;
|
|
268
|
+
while (node = node.nextSibling) {
|
|
269
|
+
if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
|
|
254
270
|
}
|
|
255
271
|
return childNodes;
|
|
256
272
|
};
|
|
@@ -269,6 +285,44 @@ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
|
269
285
|
}
|
|
270
286
|
return slotName === "";
|
|
271
287
|
};
|
|
288
|
+
var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
|
|
289
|
+
function patchSlotNode(node) {
|
|
290
|
+
if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
|
|
291
|
+
const assignedFactory = (elementsOnly) => (function(opts) {
|
|
292
|
+
const toReturn = [];
|
|
293
|
+
const slotName = this["s-sn"];
|
|
294
|
+
if (opts == null ? void 0 : opts.flatten) {
|
|
295
|
+
console.error(`
|
|
296
|
+
Flattening is not supported for Stencil non-shadow slots.
|
|
297
|
+
You can use \`.childNodes\` to nested slot fallback content.
|
|
298
|
+
If you have a particular use case, please open an issue on the Stencil repo.
|
|
299
|
+
`);
|
|
300
|
+
}
|
|
301
|
+
const parent = this["s-cr"].parentElement;
|
|
302
|
+
const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
|
|
303
|
+
slottedNodes.forEach((n) => {
|
|
304
|
+
if (slotName === getSlotName(n)) {
|
|
305
|
+
toReturn.push(n);
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
if (elementsOnly) {
|
|
309
|
+
return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
|
|
310
|
+
}
|
|
311
|
+
return toReturn;
|
|
312
|
+
}).bind(node);
|
|
313
|
+
node.assignedElements = assignedFactory(true);
|
|
314
|
+
node.assignedNodes = assignedFactory(false);
|
|
315
|
+
}
|
|
316
|
+
function internalCall(node, method) {
|
|
317
|
+
if ("__" + method in node) {
|
|
318
|
+
const toReturn = node["__" + method];
|
|
319
|
+
if (typeof toReturn !== "function") return toReturn;
|
|
320
|
+
return toReturn.bind(node);
|
|
321
|
+
} else {
|
|
322
|
+
if (typeof node[method] !== "function") return node[method];
|
|
323
|
+
return node[method].bind(node);
|
|
324
|
+
}
|
|
325
|
+
}
|
|
272
326
|
var createTime = (fnName, tagName = "") => {
|
|
273
327
|
{
|
|
274
328
|
return () => {
|
|
@@ -442,7 +496,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
442
496
|
var _a;
|
|
443
497
|
const scopeId2 = getScopeId(cmpMeta);
|
|
444
498
|
const style = styles.get(scopeId2);
|
|
445
|
-
|
|
499
|
+
if (!win.document) {
|
|
500
|
+
return scopeId2;
|
|
501
|
+
}
|
|
502
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
446
503
|
if (style) {
|
|
447
504
|
if (typeof style === "string") {
|
|
448
505
|
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
@@ -453,9 +510,9 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
453
510
|
}
|
|
454
511
|
if (!appliedStyles.has(scopeId2)) {
|
|
455
512
|
{
|
|
456
|
-
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) ||
|
|
513
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
|
|
457
514
|
styleElm.innerHTML = style;
|
|
458
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
515
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
459
516
|
if (nonce != null) {
|
|
460
517
|
styleElm.setAttribute("nonce", nonce);
|
|
461
518
|
}
|
|
@@ -517,104 +574,105 @@ var attachStyles = (hostRef) => {
|
|
|
517
574
|
};
|
|
518
575
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
519
576
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
520
|
-
if (oldValue
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
} else {
|
|
538
|
-
elm.style[prop] = "";
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
for (const prop in newValue) {
|
|
544
|
-
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
577
|
+
if (oldValue === newValue) {
|
|
578
|
+
return;
|
|
579
|
+
}
|
|
580
|
+
let isProp = isMemberInElement(elm, memberName);
|
|
581
|
+
let ln = memberName.toLowerCase();
|
|
582
|
+
if (memberName === "class") {
|
|
583
|
+
const classList = elm.classList;
|
|
584
|
+
const oldClasses = parseClassList(oldValue);
|
|
585
|
+
let newClasses = parseClassList(newValue);
|
|
586
|
+
{
|
|
587
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
588
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
589
|
+
}
|
|
590
|
+
} else if (memberName === "style") {
|
|
591
|
+
{
|
|
592
|
+
for (const prop in oldValue) {
|
|
593
|
+
if (!newValue || newValue[prop] == null) {
|
|
545
594
|
if (prop.includes("-")) {
|
|
546
|
-
elm.style.
|
|
595
|
+
elm.style.removeProperty(prop);
|
|
547
596
|
} else {
|
|
548
|
-
elm.style[prop] =
|
|
597
|
+
elm.style[prop] = "";
|
|
549
598
|
}
|
|
550
599
|
}
|
|
551
600
|
}
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
} else if (isMemberInElement(win, ln)) {
|
|
560
|
-
memberName = ln.slice(2);
|
|
561
|
-
} else {
|
|
562
|
-
memberName = ln[2] + memberName.slice(3);
|
|
563
|
-
}
|
|
564
|
-
if (oldValue || newValue) {
|
|
565
|
-
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
566
|
-
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
567
|
-
if (oldValue) {
|
|
568
|
-
plt.rel(elm, memberName, oldValue, capture);
|
|
569
|
-
}
|
|
570
|
-
if (newValue) {
|
|
571
|
-
plt.ael(elm, memberName, newValue, capture);
|
|
601
|
+
}
|
|
602
|
+
for (const prop in newValue) {
|
|
603
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
604
|
+
if (prop.includes("-")) {
|
|
605
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
606
|
+
} else {
|
|
607
|
+
elm.style[prop] = newValue[prop];
|
|
572
608
|
}
|
|
573
609
|
}
|
|
610
|
+
}
|
|
611
|
+
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
612
|
+
if (newValue) {
|
|
613
|
+
newValue(elm);
|
|
614
|
+
}
|
|
615
|
+
} else if ((!elm.__lookupSetter__(memberName)) && memberName[0] === "o" && memberName[1] === "n") {
|
|
616
|
+
if (memberName[2] === "-") {
|
|
617
|
+
memberName = memberName.slice(3);
|
|
618
|
+
} else if (isMemberInElement(win, ln)) {
|
|
619
|
+
memberName = ln.slice(2);
|
|
574
620
|
} else {
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
621
|
+
memberName = ln[2] + memberName.slice(3);
|
|
622
|
+
}
|
|
623
|
+
if (oldValue || newValue) {
|
|
624
|
+
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
625
|
+
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
626
|
+
if (oldValue) {
|
|
627
|
+
plt.rel(elm, memberName, oldValue, capture);
|
|
628
|
+
}
|
|
629
|
+
if (newValue) {
|
|
630
|
+
plt.ael(elm, memberName, newValue, capture);
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
} else {
|
|
634
|
+
const isComplex = isComplexType(newValue);
|
|
635
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
636
|
+
try {
|
|
637
|
+
if (!elm.tagName.includes("-")) {
|
|
638
|
+
const n = newValue == null ? "" : newValue;
|
|
639
|
+
if (memberName === "list") {
|
|
640
|
+
isProp = false;
|
|
641
|
+
} else if (oldValue == null || elm[memberName] != n) {
|
|
642
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
643
|
+
elm[memberName] = n;
|
|
644
|
+
} else {
|
|
645
|
+
elm.setAttribute(memberName, n);
|
|
588
646
|
}
|
|
589
|
-
} else if (elm[memberName] !== newValue) {
|
|
590
|
-
elm[memberName] = newValue;
|
|
591
647
|
}
|
|
592
|
-
}
|
|
648
|
+
} else if (elm[memberName] !== newValue) {
|
|
649
|
+
elm[memberName] = newValue;
|
|
593
650
|
}
|
|
651
|
+
} catch (e) {
|
|
594
652
|
}
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
653
|
+
}
|
|
654
|
+
let xlink = false;
|
|
655
|
+
{
|
|
656
|
+
if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
|
|
657
|
+
memberName = ln;
|
|
658
|
+
xlink = true;
|
|
601
659
|
}
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
606
|
-
} else {
|
|
607
|
-
elm.removeAttribute(memberName);
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
611
|
-
newValue = newValue === true ? "" : newValue;
|
|
660
|
+
}
|
|
661
|
+
if (newValue == null || newValue === false) {
|
|
662
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
612
663
|
if (xlink) {
|
|
613
|
-
elm.
|
|
664
|
+
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
614
665
|
} else {
|
|
615
|
-
elm.
|
|
666
|
+
elm.removeAttribute(memberName);
|
|
616
667
|
}
|
|
617
668
|
}
|
|
669
|
+
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
|
|
670
|
+
newValue = newValue === true ? "" : newValue;
|
|
671
|
+
if (xlink) {
|
|
672
|
+
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
673
|
+
} else {
|
|
674
|
+
elm.setAttribute(memberName, newValue);
|
|
675
|
+
}
|
|
618
676
|
}
|
|
619
677
|
}
|
|
620
678
|
};
|
|
@@ -700,11 +758,19 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
700
758
|
}
|
|
701
759
|
}
|
|
702
760
|
if (newVNode2.$text$ !== null) {
|
|
703
|
-
elm = newVNode2.$elm$ =
|
|
761
|
+
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
704
762
|
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
705
|
-
elm = newVNode2.$elm$ =
|
|
763
|
+
elm = newVNode2.$elm$ = win.document.createTextNode("");
|
|
764
|
+
{
|
|
765
|
+
updateElement(null, newVNode2, isSvgMode);
|
|
766
|
+
}
|
|
706
767
|
} else {
|
|
707
|
-
|
|
768
|
+
if (!win.document) {
|
|
769
|
+
throw new Error(
|
|
770
|
+
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
771
|
+
);
|
|
772
|
+
}
|
|
773
|
+
elm = newVNode2.$elm$ = win.document.createElement(
|
|
708
774
|
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
709
775
|
);
|
|
710
776
|
{
|
|
@@ -729,6 +795,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
729
795
|
elm["s-cr"] = contentRef;
|
|
730
796
|
elm["s-sn"] = newVNode2.$name$ || "";
|
|
731
797
|
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
798
|
+
patchSlotNode(elm);
|
|
732
799
|
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
733
800
|
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
734
801
|
{
|
|
@@ -918,14 +985,11 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
918
985
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
919
986
|
const oldChildren = oldVNode.$children$;
|
|
920
987
|
const newChildren = newVNode2.$children$;
|
|
921
|
-
const tag = newVNode2.$tag$;
|
|
922
988
|
const text = newVNode2.$text$;
|
|
923
989
|
let defaultHolder;
|
|
924
990
|
if (text === null) {
|
|
925
991
|
{
|
|
926
|
-
|
|
927
|
-
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
928
|
-
}
|
|
992
|
+
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
929
993
|
}
|
|
930
994
|
if (oldChildren !== null && newChildren !== null) {
|
|
931
995
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
@@ -1064,8 +1128,8 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1064
1128
|
markSlotContentForRelocation(rootVnode.$elm$);
|
|
1065
1129
|
for (const relocateData of relocateNodes) {
|
|
1066
1130
|
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1067
|
-
if (!nodeToRelocate["s-ol"]) {
|
|
1068
|
-
const orgLocationNode =
|
|
1131
|
+
if (!nodeToRelocate["s-ol"] && win.document) {
|
|
1132
|
+
const orgLocationNode = win.document.createTextNode("");
|
|
1069
1133
|
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
1070
1134
|
insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
|
|
1071
1135
|
}
|
|
@@ -1106,7 +1170,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1106
1170
|
}
|
|
1107
1171
|
}
|
|
1108
1172
|
}
|
|
1109
|
-
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](
|
|
1173
|
+
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
|
|
1110
1174
|
} else {
|
|
1111
1175
|
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1112
1176
|
if (isInitialLoad) {
|
|
@@ -1162,10 +1226,11 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1162
1226
|
}
|
|
1163
1227
|
let maybePromise;
|
|
1164
1228
|
if (isInitialLoad) {
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1229
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
1230
|
+
} else {
|
|
1231
|
+
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
|
1168
1232
|
}
|
|
1233
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
1169
1234
|
endSchedule();
|
|
1170
1235
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
1171
1236
|
};
|
|
@@ -1231,14 +1296,13 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1231
1296
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
1232
1297
|
const instance = elm;
|
|
1233
1298
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1299
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
1234
1300
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
1235
1301
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
1236
1302
|
{
|
|
1237
1303
|
addHydratedFlag(elm);
|
|
1238
1304
|
}
|
|
1239
|
-
|
|
1240
|
-
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
1241
|
-
}
|
|
1305
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
1242
1306
|
endPostUpdate();
|
|
1243
1307
|
{
|
|
1244
1308
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -1247,9 +1311,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1247
1311
|
}
|
|
1248
1312
|
}
|
|
1249
1313
|
} else {
|
|
1250
|
-
|
|
1251
|
-
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
1252
|
-
}
|
|
1314
|
+
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
1253
1315
|
endPostUpdate();
|
|
1254
1316
|
}
|
|
1255
1317
|
{
|
|
@@ -1308,6 +1370,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1308
1370
|
}
|
|
1309
1371
|
}
|
|
1310
1372
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1373
|
+
if (instance.componentShouldUpdate) {
|
|
1374
|
+
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
1375
|
+
return;
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1311
1378
|
scheduleUpdate(hostRef, false);
|
|
1312
1379
|
}
|
|
1313
1380
|
}
|
|
@@ -1510,7 +1577,10 @@ var connectedCallback = (elm) => {
|
|
|
1510
1577
|
}
|
|
1511
1578
|
};
|
|
1512
1579
|
var setContentReference = (elm) => {
|
|
1513
|
-
|
|
1580
|
+
if (!win.document) {
|
|
1581
|
+
return;
|
|
1582
|
+
}
|
|
1583
|
+
const contentRefElm = elm["s-cr"] = win.document.createComment(
|
|
1514
1584
|
""
|
|
1515
1585
|
);
|
|
1516
1586
|
contentRefElm["s-cn"] = true;
|
|
@@ -1547,6 +1617,8 @@ var proxyCustomElement = (Cstr, compactMeta) => {
|
|
|
1547
1617
|
{
|
|
1548
1618
|
cmpMeta.$watchers$ = Cstr.$watchers$;
|
|
1549
1619
|
}
|
|
1620
|
+
const originalConnectedCallback = Cstr.prototype.connectedCallback;
|
|
1621
|
+
const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;
|
|
1550
1622
|
Object.assign(Cstr.prototype, {
|
|
1551
1623
|
__hasHostListenerAttached: false,
|
|
1552
1624
|
__registerHost() {
|
|
@@ -1559,19 +1631,15 @@ var proxyCustomElement = (Cstr, compactMeta) => {
|
|
|
1559
1631
|
this.__hasHostListenerAttached = true;
|
|
1560
1632
|
}
|
|
1561
1633
|
connectedCallback(this);
|
|
1634
|
+
if (originalConnectedCallback) {
|
|
1635
|
+
originalConnectedCallback.call(this);
|
|
1636
|
+
}
|
|
1562
1637
|
},
|
|
1563
1638
|
disconnectedCallback() {
|
|
1564
1639
|
disconnectedCallback(this);
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
if (((_a = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1569
|
-
delete hostRef.$vnode$;
|
|
1570
|
-
}
|
|
1571
|
-
if (this instanceof Node && !this.isConnected) {
|
|
1572
|
-
deleteHostRef(this);
|
|
1573
|
-
}
|
|
1574
|
-
});
|
|
1640
|
+
if (originalDisconnectedCallback) {
|
|
1641
|
+
originalDisconnectedCallback.call(this);
|
|
1642
|
+
}
|
|
1575
1643
|
},
|
|
1576
1644
|
__attachShadow() {
|
|
1577
1645
|
{
|
|
@@ -1596,7 +1664,7 @@ var proxyCustomElement = (Cstr, compactMeta) => {
|
|
|
1596
1664
|
// src/runtime/fragment.ts
|
|
1597
1665
|
var Fragment = (_, children) => children;
|
|
1598
1666
|
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
1599
|
-
if (listeners) {
|
|
1667
|
+
if (listeners && win.document) {
|
|
1600
1668
|
listeners.map(([flags, name, method]) => {
|
|
1601
1669
|
const target = elm;
|
|
1602
1670
|
const handler = hostListenerProxy(hostRef, method);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-50783b0c.js';
|
|
2
|
+
export { s as setNonce } from './index-50783b0c.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.27.2 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -16,5 +16,5 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["ds-accordion_3",[[1,"ds-accordion",{"variant":[1],"borderAligned":[4,"border-aligned"],"openByDefault":[4,"open-by-default"],"accordionId":[1,"accordion-id"],"headingLevel":[2,"heading-level"],"useCloseButton":[4,"use-close-button"],"closeButtonLabel":[1,"close-button-label"],"hideTopBorder":[4,"hide-top-border"],"isExpanded":[32]},null,{"isExpanded":["watchHandler"]}],[6,"ds-button",{"value":[1],"variant":[1],"colour":[1],"size":[1],"fontWeight":[1,"font-weight"],"icon":[1],"iconPosition":[1,"icon-position"],"type":[1],"disabled":[4],"fullWidth":[4,"full-width"],"ariaDisabled":[1,"aria-disabled"]}],[1,"ds-icon",{"name":[1],"colour":[1],"size":[1],"dsTitle":[1,"title"],"role":[1],"hidden":[4],"message":[32]}]]],["ds-checkbox-group",[[1,"ds-checkbox-group",{"legend":[1],"assistiveText":[1,"assistive-text"],"direction":[1],"errorText":[1,"error-text"],"text":[1],"checked":[1028],"checkedChildElementCount":[1026,"checked-child-element-count"],"disabled":[4],"parentCheckedCount":[2,"parent-checked-count"],"childElementsCount":[32],"isIndeterminate":[32],"indeterminateChildCheckboxCount":[32],"setChecked":[64]},[[0,"dsCheckboxGroupIndeterminateChildChange","handleIndeterminateChildChange"],[0,"dsCheckboxChange","handleCheckboxChange"],[0,"dsCheckboxGroupChange","handleCheckboxGroupChange"]],{"disabled":["handleCheckboxDisabledChange"],"checked":["handleCheckedChange"],"isIndeterminate":["handleIndeterminateChange"],"checkedChildElementCount":["handleCheckedChildElementCountChange"]}]]],["ds-visually-hidden",[[1,"ds-visually-hidden"]]],["ds-text-input",[[6,"ds-text-input",{"label":[1],"placeholder":[1],"dsId":[1,"id"],"name":[1],"disabled":[4],"optional":[4],"required":[4],"readonly":[4],"value":[1],"min":[2],"max":[2],"maxlength":[2],"pattern":[1],"autocomplete":[1],"optionalText":[1,"optional-text"],"errorText":[1,"error-text"],"successText":[1,"success-text"],"assistiveText":[1,"assistive-text"],"actionButtonAriaLabel":[1,"action-button-aria-label"],"hiddenAssistiveText":[1,"hidden-assistive-text"],"prefixText":[1,"prefix-text"],"suffixText":[1,"suffix-text"],"icon":[1],"type":[1],"ariaLabel":[1,"aria-label"],"ariaLabelledBy":[1,"aria-labelledby"],"ariaDescribedby":[1,"aria-describedby"],"hasFocus":[32],"clearButtonVisible":[32],"passwordInputVisible":[32],"inputActive":[32],"togglePasswordVisibility":[64],"clearInput":[64]}]]],["ds-link",[[1,"ds-link",{"text":[1],"size":[1],"variant":[1],"weight":[1],"icon":[1025],"iconPosition":[1025,"icon-position"],"iconTitle":[1,"icon-title"],"iconHidden":[4,"icon-hidden"],"href":[1],"target":[1],"download":[4],"language":[1,"lang"],"
|
|
19
|
+
return bootstrapLazy([["ds-accordion_3",[[1,"ds-accordion",{"variant":[1],"borderAligned":[4,"border-aligned"],"openByDefault":[4,"open-by-default"],"accordionId":[1,"accordion-id"],"headingLevel":[2,"heading-level"],"useCloseButton":[4,"use-close-button"],"closeButtonLabel":[1,"close-button-label"],"hideTopBorder":[4,"hide-top-border"],"isExpanded":[32]},null,{"isExpanded":["watchHandler"]}],[6,"ds-button",{"value":[1],"variant":[1],"colour":[1],"size":[1],"fontWeight":[1,"font-weight"],"icon":[1],"iconPosition":[1,"icon-position"],"type":[1],"disabled":[4],"fullWidth":[4,"full-width"],"ariaDisabled":[1,"aria-disabled"]}],[1,"ds-icon",{"name":[1],"colour":[1],"size":[1],"dsTitle":[1,"title"],"role":[1],"hidden":[4],"message":[32]}]]],["ds-checkbox-group",[[1,"ds-checkbox-group",{"legend":[1],"assistiveText":[1,"assistive-text"],"direction":[1],"errorText":[1,"error-text"],"text":[1],"checked":[1028],"checkedChildElementCount":[1026,"checked-child-element-count"],"disabled":[4],"parentCheckedCount":[2,"parent-checked-count"],"childElementsCount":[32],"isIndeterminate":[32],"indeterminateChildCheckboxCount":[32],"setChecked":[64]},[[0,"dsCheckboxGroupIndeterminateChildChange","handleIndeterminateChildChange"],[0,"dsCheckboxChange","handleCheckboxChange"],[0,"dsCheckboxGroupChange","handleCheckboxGroupChange"]],{"disabled":["handleCheckboxDisabledChange"],"checked":["handleCheckedChange"],"isIndeterminate":["handleIndeterminateChange"],"checkedChildElementCount":["handleCheckedChildElementCountChange"]}]]],["ds-visually-hidden",[[1,"ds-visually-hidden"]]],["ds-text-input",[[6,"ds-text-input",{"label":[1],"placeholder":[1],"dsId":[1,"id"],"name":[1],"disabled":[4],"optional":[4],"required":[4],"readonly":[4],"value":[1],"min":[2],"max":[2],"maxlength":[2],"pattern":[1],"autocomplete":[1],"optionalText":[1,"optional-text"],"errorText":[1,"error-text"],"successText":[1,"success-text"],"assistiveText":[1,"assistive-text"],"actionButtonAriaLabel":[1,"action-button-aria-label"],"hiddenAssistiveText":[1,"hidden-assistive-text"],"prefixText":[1,"prefix-text"],"suffixText":[1,"suffix-text"],"icon":[1],"type":[1],"ariaLabel":[1,"aria-label"],"ariaLabelledBy":[1,"aria-labelledby"],"ariaDescribedby":[1,"aria-describedby"],"hasFocus":[32],"clearButtonVisible":[32],"passwordInputVisible":[32],"inputActive":[32],"togglePasswordVisibility":[64],"clearInput":[64]}]]],["ds-link",[[1,"ds-link",{"text":[1],"size":[1],"variant":[1],"weight":[1],"icon":[1025],"iconPosition":[1025,"icon-position"],"iconTitle":[1,"icon-title"],"iconHidden":[4,"icon-hidden"],"href":[1],"target":[1],"download":[4],"language":[1,"lang"],"linkAriaLabel":[1,"aria-label"]}]]],["ds-link-with-arrow",[[1,"ds-link-with-arrow",{"text":[1],"iconPosition":[1,"icon-position"],"href":[1],"target":[1],"language":[1,"lang"],"linkAriaLabel":[1,"aria-label"]}]]],["ds-input-validity",[[0,"ds-input-validity",{"text":[1],"type":[1],"validityRole":[1,"role"],"identifier":[32]}]]],["ds-checkbox",[[65,"ds-checkbox",{"checkboxId":[1025,"id"],"checked":[1028],"legend":[1],"assistiveText":[1,"assistive-text"],"text":[1],"indeterminate":[4],"disabled":[4],"errorText":[1,"error-text"],"errorsDisabled":[4,"data-errors-disabled"],"required":[4],"optional":[4],"optionalText":[1,"optional-text"],"ariaLabel":[32],"value":[32],"validationMessage":[32]}]]]], options);
|
|
20
20
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, g as getElement, h, F as Fragment } from './index-
|
|
1
|
+
import { r as registerInstance, g as getElement, h, F as Fragment } from './index-50783b0c.js';
|
|
2
2
|
import { c as classNames } from './index-72ac5051.js';
|
|
3
3
|
import { i as inheritAriaAttributes, a as inheritAttributes } from './attributes-7d09be1b.js';
|
|
4
4
|
import { r as remToPx } from './utils-b5843ae1.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, g as getElement, h, F as Fragment } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, g as getElement, h, F as Fragment } from './index-50783b0c.js';
|
|
2
2
|
import { c as classNames } from './index-72ac5051.js';
|
|
3
3
|
import { i as inheritAriaAttributes } from './attributes-7d09be1b.js';
|
|
4
4
|
import { i as idGenerator } from './utils-b5843ae1.js';
|
|
5
5
|
|
|
6
|
-
const dsCheckboxGroupCss = ".ds-checkbox-group{display:inline-flex;flex-direction:column;border:none;padding:0;margin:0}.ds-checkbox-group__legend{padding-inline:0;font-size:var(--ds-fontSize-16);font-weight:var(--ds-fontWeight-semibold);letter-spacing:var(--ds-letterSpacing-wide);line-height:var(--ds-lineHeight-large)}.ds-checkbox-group__assistive-text{font-size:var(--ds-fontSize-14);color:var(--ds-textColor-secondary);line-height:var(--ds-lineHeight-large);margin-bottom:var(--ds-spacing-2xSmall)}.ds-checkbox-group__error{display:flex}.ds-checkbox-group__error--visible{padding-top:var(--ds-spacing-3xSmall)}.ds-checkbox-group__checkboxes{display:inline-flex;flex-direction:column}.ds-checkbox-group--inset{margin-left:var(--ds-spacing-large)}.ds-checkbox-group--horizontal>.ds-checkbox-group__checkboxes{flex-direction:row;gap:var(--ds-spacing-small);flex-wrap:wrap}";
|
|
6
|
+
const dsCheckboxGroupCss = ".ds-checkbox-group{display:inline-flex;flex-direction:column;border:none;padding:0;margin:0}.ds-checkbox-group__legend{padding-inline:0;font-size:var(--ds-fontSize-16);font-weight:var(--ds-fontWeight-semibold);letter-spacing:var(--ds-letterSpacing-wide);line-height:var(--ds-lineHeight-large)}.ds-checkbox-group__assistive-text{font-size:var(--ds-fontSize-14);color:var(--ds-textColor-secondary);line-height:var(--ds-lineHeight-large);margin-bottom:var(--ds-spacing-2xSmall)}.ds-checkbox-group__error{display:flex}.ds-checkbox-group__error--visible{padding-top:var(--ds-spacing-3xSmall)}.ds-checkbox-group>.ds-checkbox-group__checkboxes{display:inline-flex;flex-direction:column}.ds-checkbox-group--inset{margin-left:var(--ds-spacing-large)}.ds-checkbox-group--horizontal>.ds-checkbox-group__checkboxes{flex-direction:row;gap:var(--ds-spacing-small);flex-wrap:wrap}";
|
|
7
7
|
const DsCheckboxGroupStyle0 = dsCheckboxGroupCss;
|
|
8
8
|
|
|
9
9
|
const fieldsetIdGenerator = idGenerator('ds-checkbox-group');
|