@warp-ds/elements 2.2.0-next.1 → 2.2.0-next.3
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/index.js +3441 -453
- package/dist/index.js.map +4 -4
- package/dist/packages/affix/index.d.ts +1 -1
- package/dist/packages/affix/index.js +6 -6
- package/dist/packages/affix/index.js.map +2 -2
- package/dist/packages/alert/index.d.ts +3 -4
- package/dist/packages/alert/index.js +8 -8
- package/dist/packages/alert/index.js.map +1 -1
- package/dist/packages/attention/index.d.ts +1 -1
- package/dist/packages/attention/index.js +4 -4
- package/dist/packages/attention/index.js.map +2 -2
- package/dist/packages/badge/index.d.ts +3 -2
- package/dist/packages/badge/index.js +1 -1
- package/dist/packages/badge/index.js.map +1 -1
- package/dist/packages/box/index.d.ts +5 -3
- package/dist/packages/box/index.js +1 -1
- package/dist/packages/box/index.js.map +1 -1
- package/dist/packages/breadcrumbs/index.d.ts +1 -1
- package/dist/packages/breadcrumbs/index.js +3 -3
- package/dist/packages/breadcrumbs/index.js.map +2 -2
- package/dist/packages/button/button.test.d.ts +1 -0
- package/dist/packages/button/index.d.ts +28 -52
- package/dist/packages/button/index.js +302 -6
- package/dist/packages/button/index.js.map +4 -4
- package/dist/packages/card/index.d.ts +3 -2
- package/dist/packages/card/index.js +3 -3
- package/dist/packages/card/index.js.map +1 -1
- package/dist/packages/expandable/index.d.ts +1 -1
- package/dist/packages/expandable/index.js +6 -6
- package/dist/packages/expandable/index.js.map +2 -2
- package/dist/packages/modal/index.d.ts +3 -3
- package/dist/packages/modal/index.js +314 -357
- package/dist/packages/modal/index.js.map +4 -4
- package/dist/packages/modal/modal-footer.d.ts +2 -2
- package/dist/packages/modal/modal-header.d.ts +12 -20
- package/dist/packages/modal/modal-main.d.ts +14 -24
- package/dist/packages/pill/index.d.ts +1 -1
- package/dist/packages/pill/index.js +5 -5
- package/dist/packages/pill/index.js.map +2 -2
- package/dist/packages/select/index.d.ts +12 -2
- package/dist/packages/select/index.js +304 -7
- package/dist/packages/select/index.js.map +4 -4
- package/dist/packages/styles.d.ts +2 -0
- package/dist/packages/textfield/index.d.ts +5 -5
- package/dist/packages/textfield/index.js +289 -3
- package/dist/packages/textfield/index.js.map +4 -4
- package/dist/packages/toast/index.d.ts +3 -0
- package/dist/packages/toast/index.js +7 -7
- package/dist/packages/toast/index.js.map +1 -1
- package/dist/packages/toast/toast-container.d.ts +3 -4
- package/dist/packages/toast/toast.d.ts +4 -6
- package/dist/packages/utils/expand-transition.d.ts +3 -2
- package/dist/packages/utils/index.d.ts +1 -1
- package/dist/packages/utils/unstyled-heading.d.ts +4 -3
- package/package.json +10 -7
package/dist/index.js
CHANGED
|
@@ -55,6 +55,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
55
55
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
56
56
|
mod
|
|
57
57
|
));
|
|
58
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
59
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
60
|
+
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
61
|
+
if (decorator = decorators[i2])
|
|
62
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
63
|
+
if (kind && result) __defProp(target, key, result);
|
|
64
|
+
return result;
|
|
65
|
+
};
|
|
58
66
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
59
67
|
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
60
68
|
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
@@ -444,9 +452,9 @@ var require_moo = __commonJS({
|
|
|
444
452
|
return new Lexer({ start: result }, "start");
|
|
445
453
|
}
|
|
446
454
|
function checkStateGroup(g2, name, map) {
|
|
447
|
-
var
|
|
448
|
-
if (
|
|
449
|
-
throw new Error("Missing state '" +
|
|
455
|
+
var state2 = g2 && (g2.push || g2.next);
|
|
456
|
+
if (state2 && !map[state2]) {
|
|
457
|
+
throw new Error("Missing state '" + state2 + "' (in token '" + g2.defaultType + "' of state '" + name + "')");
|
|
450
458
|
}
|
|
451
459
|
if (g2 && g2.pop && +g2.pop !== 1) {
|
|
452
460
|
throw new Error("pop must be 1 (in token '" + g2.defaultType + "' of state '" + name + "')");
|
|
@@ -493,14 +501,14 @@ var require_moo = __commonJS({
|
|
|
493
501
|
}
|
|
494
502
|
for (var i2 = 0; i2 < keys2.length; i2++) {
|
|
495
503
|
var name = keys2[i2];
|
|
496
|
-
var
|
|
497
|
-
var groups =
|
|
504
|
+
var state2 = map[name];
|
|
505
|
+
var groups = state2.groups;
|
|
498
506
|
for (var j = 0; j < groups.length; j++) {
|
|
499
507
|
checkStateGroup(groups[j], name, map);
|
|
500
508
|
}
|
|
501
|
-
var fastKeys = Object.getOwnPropertyNames(
|
|
509
|
+
var fastKeys = Object.getOwnPropertyNames(state2.fast);
|
|
502
510
|
for (var j = 0; j < fastKeys.length; j++) {
|
|
503
|
-
checkStateGroup(
|
|
511
|
+
checkStateGroup(state2.fast[fastKeys[j]], name, map);
|
|
504
512
|
}
|
|
505
513
|
}
|
|
506
514
|
return new Lexer(map, start);
|
|
@@ -528,8 +536,8 @@ var require_moo = __commonJS({
|
|
|
528
536
|
return isMap ? reverseMap.get(k) : reverseMap[k];
|
|
529
537
|
};
|
|
530
538
|
}
|
|
531
|
-
var Lexer = function(states,
|
|
532
|
-
this.startState =
|
|
539
|
+
var Lexer = function(states, state2) {
|
|
540
|
+
this.startState = state2;
|
|
533
541
|
this.states = states;
|
|
534
542
|
this.buffer = "";
|
|
535
543
|
this.stack = [];
|
|
@@ -558,10 +566,10 @@ var require_moo = __commonJS({
|
|
|
558
566
|
queuedThrow: this.queuedThrow
|
|
559
567
|
};
|
|
560
568
|
};
|
|
561
|
-
Lexer.prototype.setState = function(
|
|
562
|
-
if (!
|
|
563
|
-
this.state =
|
|
564
|
-
var info = this.states[
|
|
569
|
+
Lexer.prototype.setState = function(state2) {
|
|
570
|
+
if (!state2 || this.state === state2) return;
|
|
571
|
+
this.state = state2;
|
|
572
|
+
var info = this.states[state2];
|
|
565
573
|
this.groups = info.groups;
|
|
566
574
|
this.error = info.error;
|
|
567
575
|
this.re = info.regexp;
|
|
@@ -570,9 +578,9 @@ var require_moo = __commonJS({
|
|
|
570
578
|
Lexer.prototype.popState = function() {
|
|
571
579
|
this.setState(this.stack.pop());
|
|
572
580
|
};
|
|
573
|
-
Lexer.prototype.pushState = function(
|
|
581
|
+
Lexer.prototype.pushState = function(state2) {
|
|
574
582
|
this.stack.push(this.state);
|
|
575
|
-
this.setState(
|
|
583
|
+
this.setState(state2);
|
|
576
584
|
};
|
|
577
585
|
var eat = hasSticky ? function(re, buffer) {
|
|
578
586
|
return re.exec(buffer);
|
|
@@ -1035,7 +1043,7 @@ var r = function() {
|
|
|
1035
1043
|
}, []).join(" ");
|
|
1036
1044
|
};
|
|
1037
1045
|
|
|
1038
|
-
// node_modules/.pnpm/@warp-ds+css@2.1.1_@warp-ds+uno@2.1.0_unocss@0.62.0_postcss@8.5.1_rollup@4.32.1_vite@5.
|
|
1046
|
+
// node_modules/.pnpm/@warp-ds+css@2.1.1_@warp-ds+uno@2.1.0_unocss@0.62.0_postcss@8.5.1_rollup@4.32.1_vite@5._43dfacbc4a7d78ad84ef685a7085e344/node_modules/@warp-ds/css/component-classes/index.js
|
|
1039
1047
|
var badge = {
|
|
1040
1048
|
base: "py-4 px-8 border-0 rounded-4 text-xs inline-flex",
|
|
1041
1049
|
neutral: "bg-[--w-color-badge-neutral-background] s-text",
|
|
@@ -1256,23 +1264,6 @@ var modal = {
|
|
|
1256
1264
|
titleButtonIcon: "h-16 w-16 sm:h-24 sm:w-24",
|
|
1257
1265
|
titleButtonIconRotated: "transform rotate-90"
|
|
1258
1266
|
};
|
|
1259
|
-
var modalElement = {
|
|
1260
|
-
// several items in here are 'resets' for the <dialog> element
|
|
1261
|
-
dialogEl: "bg-transparent backface-hidden w-unset h-unset max-w-unset max-h-unset p-0 m-auto border-0 inset-0 open:flex open:fixed sm:place-content-center sm:place-items-center items-end [--w-modal-max-height:80%] [--w-modal-width:640px]",
|
|
1262
|
-
dialogInner: "transition-all relative pb-safe-[32] sm:pb-32 shadow-m max-h-[--w-modal-max-height] min-h-[--w-modal-min-height] w-[--w-modal-width] h-[--w-modal-height] ease-in-out backface-hidden will-change-height rounded-8 sm:mx-16 s-bg flex flex-col overflow-hidden lt-sm:rounded-b-0",
|
|
1263
|
-
contentSlot: "block overflow-y-auto overflow-x-hidden last-child:mb-0 grow shrink px-16 sm:px-32 relative",
|
|
1264
|
-
header: "relative pb-8",
|
|
1265
|
-
headerTitleBar: "pt-16 sm:pt-24 px-16 sm:px-32 grid gap-12 grid-cols-[auto_1fr_auto] items-start shrink-0!",
|
|
1266
|
-
headerButton: "sm:min-h-[32px] sm:min-w-[32px] min-h-[40px] min-w-[40px] text-m leading-[24] p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding font-bold focusable transition-colors ease-in-out",
|
|
1267
|
-
headerButtonLeft: "-ml-8 s-icon bg-transparent hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]",
|
|
1268
|
-
headerCloseButton: "-mr-8 s-icon bg-transparent hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]",
|
|
1269
|
-
headerCloseButtonOnImage: `absolute right-8 top-8 z-10 s-color-inverted bg-[var(--w-black)/70] hover:bg-[var(--w-black)/85] active:bg-[var(--w-black)] s-text-inverted`,
|
|
1270
|
-
headerTitle: "mb-0 t3 self-center",
|
|
1271
|
-
headerTitleWithBackButton: "justify-self-center",
|
|
1272
|
-
headerTitleWithoutBackButton: "col-span-2",
|
|
1273
|
-
headerTitleWithTopArea: "pt-16 px-16 sm:px-32",
|
|
1274
|
-
footer: "flex justify-end shrink-0 px-16 sm:px-32 pt-24"
|
|
1275
|
-
};
|
|
1276
1267
|
var alert = {
|
|
1277
1268
|
wrapper: "flex p-16 border border-l-4 rounded-4 s-text",
|
|
1278
1269
|
willChangeHeight: "will-change-height",
|
|
@@ -1436,11 +1427,11 @@ var attention = {
|
|
|
1436
1427
|
import WarpElement from "@warp-ds/elements-core";
|
|
1437
1428
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
1438
1429
|
|
|
1439
|
-
// node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-
|
|
1430
|
+
// node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-p_f73b1d3c5bd9121d6f30248535f1f172/node_modules/@warp-ds/icons/dist/elements/search-16.js
|
|
1440
1431
|
import { LitElement } from "lit";
|
|
1441
1432
|
import { unsafeStatic, html } from "lit/static-html.js";
|
|
1442
1433
|
|
|
1443
|
-
// node_modules/.pnpm/@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-plugin-macros@3.1.
|
|
1434
|
+
// node_modules/.pnpm/@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-plugin-macros@3.1.0_ty_33a2537ce57a59324989ce8020998d0e/node_modules/@lingui/core/dist/index.mjs
|
|
1444
1435
|
var import_unraw = __toESM(require_dist(), 1);
|
|
1445
1436
|
|
|
1446
1437
|
// node_modules/.pnpm/@lingui+message-utils@5.2.0/node_modules/@lingui/message-utils/dist/compileMessage.mjs
|
|
@@ -1762,7 +1753,7 @@ Message: ${message}`);
|
|
|
1762
1753
|
}
|
|
1763
1754
|
}
|
|
1764
1755
|
|
|
1765
|
-
// node_modules/.pnpm/@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-plugin-macros@3.1.
|
|
1756
|
+
// node_modules/.pnpm/@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-plugin-macros@3.1.0_ty_33a2537ce57a59324989ce8020998d0e/node_modules/@lingui/core/dist/index.mjs
|
|
1766
1757
|
var isString = (s) => typeof s === "string";
|
|
1767
1758
|
var isFunction = (f2) => typeof f2 === "function";
|
|
1768
1759
|
var cache = /* @__PURE__ */ new Map();
|
|
@@ -2170,7 +2161,7 @@ function setupI18n(params = {}) {
|
|
|
2170
2161
|
}
|
|
2171
2162
|
var i18n = setupI18n();
|
|
2172
2163
|
|
|
2173
|
-
// node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-
|
|
2164
|
+
// node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-p_f73b1d3c5bd9121d6f30248535f1f172/node_modules/@warp-ds/icons/dist/elements/search-16.js
|
|
2174
2165
|
var messages = JSON.parse('{"icon.title.search":["Forst\xF8rrelsesglass"]}');
|
|
2175
2166
|
var messages2 = JSON.parse('{"icon.title.search":["Magnifying glass"]}');
|
|
2176
2167
|
var messages3 = JSON.parse('{"icon.title.search":["Suurennuslasi"]}');
|
|
@@ -2262,7 +2253,7 @@ if (!customElements.get("w-icon-search-16")) {
|
|
|
2262
2253
|
customElements.define("w-icon-search-16", IconSearch16);
|
|
2263
2254
|
}
|
|
2264
2255
|
|
|
2265
|
-
// node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-
|
|
2256
|
+
// node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-p_f73b1d3c5bd9121d6f30248535f1f172/node_modules/@warp-ds/icons/dist/elements/close-16.js
|
|
2266
2257
|
import { LitElement as LitElement2 } from "lit";
|
|
2267
2258
|
import { unsafeStatic as unsafeStatic2, html as html2 } from "lit/static-html.js";
|
|
2268
2259
|
var messages6 = JSON.parse('{"icon.title.close":["Kryss"]}');
|
|
@@ -2433,7 +2424,7 @@ if (!customElements.get("w-affix")) {
|
|
|
2433
2424
|
import { css, html as html8 } from "lit";
|
|
2434
2425
|
import WarpElement2 from "@warp-ds/elements-core";
|
|
2435
2426
|
|
|
2436
|
-
// node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-
|
|
2427
|
+
// node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-p_f73b1d3c5bd9121d6f30248535f1f172/node_modules/@warp-ds/icons/dist/elements/info-16.js
|
|
2437
2428
|
import { LitElement as LitElement3 } from "lit";
|
|
2438
2429
|
import { unsafeStatic as unsafeStatic3, html as html4 } from "lit/static-html.js";
|
|
2439
2430
|
var messages7 = JSON.parse('{"icon.title.info":["Informasjonssirkel"]}');
|
|
@@ -2527,7 +2518,7 @@ if (!customElements.get("w-icon-info-16")) {
|
|
|
2527
2518
|
customElements.define("w-icon-info-16", IconInfo16);
|
|
2528
2519
|
}
|
|
2529
2520
|
|
|
2530
|
-
// node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-
|
|
2521
|
+
// node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-p_f73b1d3c5bd9121d6f30248535f1f172/node_modules/@warp-ds/icons/dist/elements/warning-16.js
|
|
2531
2522
|
import { LitElement as LitElement4 } from "lit";
|
|
2532
2523
|
import { unsafeStatic as unsafeStatic4, html as html5 } from "lit/static-html.js";
|
|
2533
2524
|
var messages8 = JSON.parse('{"icon.title.warning":["Varseltrekant med utropstegn"]}');
|
|
@@ -2621,7 +2612,7 @@ if (!customElements.get("w-icon-warning-16")) {
|
|
|
2621
2612
|
customElements.define("w-icon-warning-16", IconWarning16);
|
|
2622
2613
|
}
|
|
2623
2614
|
|
|
2624
|
-
// node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-
|
|
2615
|
+
// node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-p_f73b1d3c5bd9121d6f30248535f1f172/node_modules/@warp-ds/icons/dist/elements/error-16.js
|
|
2625
2616
|
import { LitElement as LitElement5 } from "lit";
|
|
2626
2617
|
import { unsafeStatic as unsafeStatic5, html as html6 } from "lit/static-html.js";
|
|
2627
2618
|
var messages9 = JSON.parse('{"icon.title.error":["\xC5ttekant med utropstegn"]}');
|
|
@@ -2715,7 +2706,7 @@ if (!customElements.get("w-icon-error-16")) {
|
|
|
2715
2706
|
customElements.define("w-icon-error-16", IconError16);
|
|
2716
2707
|
}
|
|
2717
2708
|
|
|
2718
|
-
// node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-
|
|
2709
|
+
// node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-p_f73b1d3c5bd9121d6f30248535f1f172/node_modules/@warp-ds/icons/dist/elements/success-16.js
|
|
2719
2710
|
import { LitElement as LitElement6 } from "lit";
|
|
2720
2711
|
import { unsafeStatic as unsafeStatic6, html as html7 } from "lit/static-html.js";
|
|
2721
2712
|
var messages10 = JSON.parse('{"icon.title.success":["Sirkel med sjekkmerke"]}');
|
|
@@ -3107,7 +3098,7 @@ var computePosition = async (reference, floating, config) => {
|
|
|
3107
3098
|
x: nextX,
|
|
3108
3099
|
y: nextY,
|
|
3109
3100
|
data,
|
|
3110
|
-
reset
|
|
3101
|
+
reset: reset2
|
|
3111
3102
|
} = await fn({
|
|
3112
3103
|
x,
|
|
3113
3104
|
y: y2,
|
|
@@ -3127,18 +3118,18 @@ var computePosition = async (reference, floating, config) => {
|
|
|
3127
3118
|
middlewareData = __spreadProps(__spreadValues({}, middlewareData), {
|
|
3128
3119
|
[name]: __spreadValues(__spreadValues({}, middlewareData[name]), data)
|
|
3129
3120
|
});
|
|
3130
|
-
if (
|
|
3121
|
+
if (reset2 && resetCount <= 50) {
|
|
3131
3122
|
resetCount++;
|
|
3132
|
-
if (typeof
|
|
3133
|
-
if (
|
|
3134
|
-
statefulPlacement =
|
|
3123
|
+
if (typeof reset2 === "object") {
|
|
3124
|
+
if (reset2.placement) {
|
|
3125
|
+
statefulPlacement = reset2.placement;
|
|
3135
3126
|
}
|
|
3136
|
-
if (
|
|
3137
|
-
rects =
|
|
3127
|
+
if (reset2.rects) {
|
|
3128
|
+
rects = reset2.rects === true ? await platform2.getElementRects({
|
|
3138
3129
|
reference,
|
|
3139
3130
|
floating,
|
|
3140
3131
|
strategy
|
|
3141
|
-
}) :
|
|
3132
|
+
}) : reset2.rects;
|
|
3142
3133
|
}
|
|
3143
3134
|
({
|
|
3144
3135
|
x,
|
|
@@ -3156,7 +3147,7 @@ var computePosition = async (reference, floating, config) => {
|
|
|
3156
3147
|
middlewareData
|
|
3157
3148
|
};
|
|
3158
3149
|
};
|
|
3159
|
-
async function detectOverflow(
|
|
3150
|
+
async function detectOverflow(state2, options) {
|
|
3160
3151
|
var _await$platform$isEle;
|
|
3161
3152
|
if (options === void 0) {
|
|
3162
3153
|
options = {};
|
|
@@ -3168,14 +3159,14 @@ async function detectOverflow(state, options) {
|
|
|
3168
3159
|
rects,
|
|
3169
3160
|
elements,
|
|
3170
3161
|
strategy
|
|
3171
|
-
} =
|
|
3162
|
+
} = state2;
|
|
3172
3163
|
const {
|
|
3173
3164
|
boundary = "clippingAncestors",
|
|
3174
3165
|
rootBoundary = "viewport",
|
|
3175
3166
|
elementContext = "floating",
|
|
3176
3167
|
altBoundary = false,
|
|
3177
3168
|
padding = 0
|
|
3178
|
-
} = evaluate(options,
|
|
3169
|
+
} = evaluate(options, state2);
|
|
3179
3170
|
const paddingObject = getPaddingObject(padding);
|
|
3180
3171
|
const altContext = elementContext === "floating" ? "reference" : "floating";
|
|
3181
3172
|
const element = elements[altBoundary ? altContext : elementContext];
|
|
@@ -3215,7 +3206,7 @@ async function detectOverflow(state, options) {
|
|
|
3215
3206
|
var arrow = (options) => ({
|
|
3216
3207
|
name: "arrow",
|
|
3217
3208
|
options,
|
|
3218
|
-
async fn(
|
|
3209
|
+
async fn(state2) {
|
|
3219
3210
|
const {
|
|
3220
3211
|
x,
|
|
3221
3212
|
y: y2,
|
|
@@ -3224,11 +3215,11 @@ var arrow = (options) => ({
|
|
|
3224
3215
|
platform: platform2,
|
|
3225
3216
|
elements,
|
|
3226
3217
|
middlewareData
|
|
3227
|
-
} =
|
|
3218
|
+
} = state2;
|
|
3228
3219
|
const {
|
|
3229
3220
|
element,
|
|
3230
3221
|
padding = 0
|
|
3231
|
-
} = evaluate(options,
|
|
3222
|
+
} = evaluate(options, state2) || {};
|
|
3232
3223
|
if (element == null) {
|
|
3233
3224
|
return {};
|
|
3234
3225
|
}
|
|
@@ -3280,7 +3271,7 @@ var flip = function(options) {
|
|
|
3280
3271
|
return {
|
|
3281
3272
|
name: "flip",
|
|
3282
3273
|
options,
|
|
3283
|
-
async fn(
|
|
3274
|
+
async fn(state2) {
|
|
3284
3275
|
var _middlewareData$arrow, _middlewareData$flip;
|
|
3285
3276
|
const {
|
|
3286
3277
|
placement,
|
|
@@ -3289,8 +3280,8 @@ var flip = function(options) {
|
|
|
3289
3280
|
initialPlacement,
|
|
3290
3281
|
platform: platform2,
|
|
3291
3282
|
elements
|
|
3292
|
-
} =
|
|
3293
|
-
const _a = evaluate(options,
|
|
3283
|
+
} = state2;
|
|
3284
|
+
const _a = evaluate(options, state2), {
|
|
3294
3285
|
mainAxis: checkMainAxis = true,
|
|
3295
3286
|
crossAxis: checkCrossAxis = true,
|
|
3296
3287
|
fallbackPlacements: specifiedFallbackPlacements,
|
|
@@ -3318,7 +3309,7 @@ var flip = function(options) {
|
|
|
3318
3309
|
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
3319
3310
|
}
|
|
3320
3311
|
const placements2 = [initialPlacement, ...fallbackPlacements];
|
|
3321
|
-
const overflow = await detectOverflow(
|
|
3312
|
+
const overflow = await detectOverflow(state2, detectOverflowOptions);
|
|
3322
3313
|
const overflows = [];
|
|
3323
3314
|
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
3324
3315
|
if (checkMainAxis) {
|
|
@@ -3401,18 +3392,18 @@ var hide = function(options) {
|
|
|
3401
3392
|
return {
|
|
3402
3393
|
name: "hide",
|
|
3403
3394
|
options,
|
|
3404
|
-
async fn(
|
|
3395
|
+
async fn(state2) {
|
|
3405
3396
|
const {
|
|
3406
3397
|
rects
|
|
3407
|
-
} =
|
|
3408
|
-
const _a = evaluate(options,
|
|
3398
|
+
} = state2;
|
|
3399
|
+
const _a = evaluate(options, state2), {
|
|
3409
3400
|
strategy = "referenceHidden"
|
|
3410
3401
|
} = _a, detectOverflowOptions = __objRest(_a, [
|
|
3411
3402
|
"strategy"
|
|
3412
3403
|
]);
|
|
3413
3404
|
switch (strategy) {
|
|
3414
3405
|
case "referenceHidden": {
|
|
3415
|
-
const overflow = await detectOverflow(
|
|
3406
|
+
const overflow = await detectOverflow(state2, __spreadProps(__spreadValues({}, detectOverflowOptions), {
|
|
3416
3407
|
elementContext: "reference"
|
|
3417
3408
|
}));
|
|
3418
3409
|
const offsets = getSideOffsets(overflow, rects.reference);
|
|
@@ -3424,7 +3415,7 @@ var hide = function(options) {
|
|
|
3424
3415
|
};
|
|
3425
3416
|
}
|
|
3426
3417
|
case "escaped": {
|
|
3427
|
-
const overflow = await detectOverflow(
|
|
3418
|
+
const overflow = await detectOverflow(state2, __spreadProps(__spreadValues({}, detectOverflowOptions), {
|
|
3428
3419
|
altBoundary: true
|
|
3429
3420
|
}));
|
|
3430
3421
|
const offsets = getSideOffsets(overflow, rects.floating);
|
|
@@ -3442,19 +3433,19 @@ var hide = function(options) {
|
|
|
3442
3433
|
}
|
|
3443
3434
|
};
|
|
3444
3435
|
};
|
|
3445
|
-
async function convertValueToCoords(
|
|
3436
|
+
async function convertValueToCoords(state2, options) {
|
|
3446
3437
|
const {
|
|
3447
3438
|
placement,
|
|
3448
3439
|
platform: platform2,
|
|
3449
3440
|
elements
|
|
3450
|
-
} =
|
|
3441
|
+
} = state2;
|
|
3451
3442
|
const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
|
|
3452
3443
|
const side2 = getSide(placement);
|
|
3453
3444
|
const alignment = getAlignment(placement);
|
|
3454
3445
|
const isVertical = getSideAxis(placement) === "y";
|
|
3455
3446
|
const mainAxisMulti = ["left", "top"].includes(side2) ? -1 : 1;
|
|
3456
3447
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
3457
|
-
const rawValue = evaluate(options,
|
|
3448
|
+
const rawValue = evaluate(options, state2);
|
|
3458
3449
|
let {
|
|
3459
3450
|
mainAxis,
|
|
3460
3451
|
crossAxis,
|
|
@@ -3486,15 +3477,15 @@ var offset = function(options) {
|
|
|
3486
3477
|
return {
|
|
3487
3478
|
name: "offset",
|
|
3488
3479
|
options,
|
|
3489
|
-
async fn(
|
|
3480
|
+
async fn(state2) {
|
|
3490
3481
|
var _middlewareData$offse, _middlewareData$arrow;
|
|
3491
3482
|
const {
|
|
3492
3483
|
x,
|
|
3493
3484
|
y: y2,
|
|
3494
3485
|
placement,
|
|
3495
3486
|
middlewareData
|
|
3496
|
-
} =
|
|
3497
|
-
const diffCoords = await convertValueToCoords(
|
|
3487
|
+
} = state2;
|
|
3488
|
+
const diffCoords = await convertValueToCoords(state2, options);
|
|
3498
3489
|
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
3499
3490
|
return {};
|
|
3500
3491
|
}
|
|
@@ -3515,13 +3506,13 @@ var shift = function(options) {
|
|
|
3515
3506
|
return {
|
|
3516
3507
|
name: "shift",
|
|
3517
3508
|
options,
|
|
3518
|
-
async fn(
|
|
3509
|
+
async fn(state2) {
|
|
3519
3510
|
const {
|
|
3520
3511
|
x,
|
|
3521
3512
|
y: y2,
|
|
3522
3513
|
placement
|
|
3523
|
-
} =
|
|
3524
|
-
const _a = evaluate(options,
|
|
3514
|
+
} = state2;
|
|
3515
|
+
const _a = evaluate(options, state2), {
|
|
3525
3516
|
mainAxis: checkMainAxis = true,
|
|
3526
3517
|
crossAxis: checkCrossAxis = false,
|
|
3527
3518
|
limiter = {
|
|
@@ -3545,7 +3536,7 @@ var shift = function(options) {
|
|
|
3545
3536
|
x,
|
|
3546
3537
|
y: y2
|
|
3547
3538
|
};
|
|
3548
|
-
const overflow = await detectOverflow(
|
|
3539
|
+
const overflow = await detectOverflow(state2, detectOverflowOptions);
|
|
3549
3540
|
const crossAxis = getSideAxis(getSide(placement));
|
|
3550
3541
|
const mainAxis = getOppositeAxis(crossAxis);
|
|
3551
3542
|
let mainAxisCoord = coords[mainAxis];
|
|
@@ -3564,7 +3555,7 @@ var shift = function(options) {
|
|
|
3564
3555
|
const max2 = crossAxisCoord - overflow[maxSide];
|
|
3565
3556
|
crossAxisCoord = clamp(min2, crossAxisCoord, max2);
|
|
3566
3557
|
}
|
|
3567
|
-
const limitedCoords = limiter.fn(__spreadProps(__spreadValues({},
|
|
3558
|
+
const limitedCoords = limiter.fn(__spreadProps(__spreadValues({}, state2), {
|
|
3568
3559
|
[mainAxis]: mainAxisCoord,
|
|
3569
3560
|
[crossAxis]: crossAxisCoord
|
|
3570
3561
|
}));
|
|
@@ -3588,21 +3579,21 @@ var size = function(options) {
|
|
|
3588
3579
|
return {
|
|
3589
3580
|
name: "size",
|
|
3590
3581
|
options,
|
|
3591
|
-
async fn(
|
|
3582
|
+
async fn(state2) {
|
|
3592
3583
|
var _state$middlewareData, _state$middlewareData2;
|
|
3593
3584
|
const {
|
|
3594
3585
|
placement,
|
|
3595
3586
|
rects,
|
|
3596
3587
|
platform: platform2,
|
|
3597
3588
|
elements
|
|
3598
|
-
} =
|
|
3599
|
-
const _a = evaluate(options,
|
|
3589
|
+
} = state2;
|
|
3590
|
+
const _a = evaluate(options, state2), {
|
|
3600
3591
|
apply = () => {
|
|
3601
3592
|
}
|
|
3602
3593
|
} = _a, detectOverflowOptions = __objRest(_a, [
|
|
3603
3594
|
"apply"
|
|
3604
3595
|
]);
|
|
3605
|
-
const overflow = await detectOverflow(
|
|
3596
|
+
const overflow = await detectOverflow(state2, detectOverflowOptions);
|
|
3606
3597
|
const side2 = getSide(placement);
|
|
3607
3598
|
const alignment = getAlignment(placement);
|
|
3608
3599
|
const isYAxis = getSideAxis(placement) === "y";
|
|
@@ -3623,13 +3614,13 @@ var size = function(options) {
|
|
|
3623
3614
|
const maximumClippingWidth = width - overflow.left - overflow.right;
|
|
3624
3615
|
const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
|
|
3625
3616
|
const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
|
|
3626
|
-
const noShift = !
|
|
3617
|
+
const noShift = !state2.middlewareData.shift;
|
|
3627
3618
|
let availableHeight = overflowAvailableHeight;
|
|
3628
3619
|
let availableWidth = overflowAvailableWidth;
|
|
3629
|
-
if ((_state$middlewareData =
|
|
3620
|
+
if ((_state$middlewareData = state2.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
|
|
3630
3621
|
availableWidth = maximumClippingWidth;
|
|
3631
3622
|
}
|
|
3632
|
-
if ((_state$middlewareData2 =
|
|
3623
|
+
if ((_state$middlewareData2 = state2.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
|
|
3633
3624
|
availableHeight = maximumClippingHeight;
|
|
3634
3625
|
}
|
|
3635
3626
|
if (noShift && !alignment) {
|
|
@@ -3643,7 +3634,7 @@ var size = function(options) {
|
|
|
3643
3634
|
availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
|
|
3644
3635
|
}
|
|
3645
3636
|
}
|
|
3646
|
-
await apply(__spreadProps(__spreadValues({},
|
|
3637
|
+
await apply(__spreadProps(__spreadValues({}, state2), {
|
|
3647
3638
|
availableWidth,
|
|
3648
3639
|
availableHeight
|
|
3649
3640
|
}));
|
|
@@ -3725,8 +3716,8 @@ function isTopLayer(element) {
|
|
|
3725
3716
|
}
|
|
3726
3717
|
function isContainingBlock(elementOrCss) {
|
|
3727
3718
|
const webkit = isWebKit();
|
|
3728
|
-
const
|
|
3729
|
-
return ["transform", "translate", "scale", "rotate", "perspective"].some((value) =>
|
|
3719
|
+
const css14 = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;
|
|
3720
|
+
return ["transform", "translate", "scale", "rotate", "perspective"].some((value) => css14[value] ? css14[value] !== "none" : false) || (css14.containerType ? css14.containerType !== "normal" : false) || !webkit && (css14.backdropFilter ? css14.backdropFilter !== "none" : false) || !webkit && (css14.filter ? css14.filter !== "none" : false) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((value) => (css14.willChange || "").includes(value)) || ["paint", "layout", "strict", "content"].some((value) => (css14.contain || "").includes(value));
|
|
3730
3721
|
}
|
|
3731
3722
|
function getContainingBlock(element) {
|
|
3732
3723
|
let currentNode = getParentNode(element);
|
|
@@ -3808,9 +3799,9 @@ function getFrameElement(win) {
|
|
|
3808
3799
|
|
|
3809
3800
|
// node_modules/.pnpm/@floating-ui+dom@1.6.13/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
3810
3801
|
function getCssDimensions(element) {
|
|
3811
|
-
const
|
|
3812
|
-
let width = parseFloat(
|
|
3813
|
-
let height = parseFloat(
|
|
3802
|
+
const css14 = getComputedStyle(element);
|
|
3803
|
+
let width = parseFloat(css14.width) || 0;
|
|
3804
|
+
let height = parseFloat(css14.height) || 0;
|
|
3814
3805
|
const hasOffset = isHTMLElement(element);
|
|
3815
3806
|
const offsetWidth = hasOffset ? element.offsetWidth : width;
|
|
3816
3807
|
const offsetHeight = hasOffset ? element.offsetHeight : height;
|
|
@@ -3904,9 +3895,9 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
3904
3895
|
while (currentIFrame && offsetParent && offsetWin !== currentWin) {
|
|
3905
3896
|
const iframeScale = getScale(currentIFrame);
|
|
3906
3897
|
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
3907
|
-
const
|
|
3908
|
-
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(
|
|
3909
|
-
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(
|
|
3898
|
+
const css14 = getComputedStyle(currentIFrame);
|
|
3899
|
+
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css14.paddingLeft)) * iframeScale.x;
|
|
3900
|
+
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css14.paddingTop)) * iframeScale.y;
|
|
3910
3901
|
x *= iframeScale.x;
|
|
3911
3902
|
y2 *= iframeScale.y;
|
|
3912
3903
|
width *= iframeScale.x;
|
|
@@ -4332,31 +4323,31 @@ var applyArrowStyles = (arrowEl, arrowRotation2, dir) => {
|
|
|
4332
4323
|
};
|
|
4333
4324
|
var ELEMENT_PADDING = 8;
|
|
4334
4325
|
var ARROW_OFFSET = 24;
|
|
4335
|
-
async function useRecompute(
|
|
4326
|
+
async function useRecompute(state2) {
|
|
4336
4327
|
var _a, _b, _c;
|
|
4337
|
-
if (!(
|
|
4328
|
+
if (!(state2 == null ? void 0 : state2.isShowing))
|
|
4338
4329
|
return;
|
|
4339
|
-
if (
|
|
4340
|
-
await (
|
|
4330
|
+
if (state2 == null ? void 0 : state2.waitForDOM) {
|
|
4331
|
+
await (state2 == null ? void 0 : state2.waitForDOM());
|
|
4341
4332
|
}
|
|
4342
|
-
if (!(
|
|
4333
|
+
if (!(state2 == null ? void 0 : state2.targetEl) || !(state2 == null ? void 0 : state2.attentionEl))
|
|
4343
4334
|
return;
|
|
4344
|
-
let targetEl =
|
|
4345
|
-
const attentionEl =
|
|
4335
|
+
let targetEl = state2 == null ? void 0 : state2.targetEl;
|
|
4336
|
+
const attentionEl = state2.attentionEl;
|
|
4346
4337
|
computePosition2(targetEl, attentionEl, {
|
|
4347
|
-
placement: (_a =
|
|
4338
|
+
placement: (_a = state2 == null ? void 0 : state2.directionName) != null ? _a : BOTTOM,
|
|
4348
4339
|
middleware: [
|
|
4349
|
-
offset2({ mainAxis: (_b =
|
|
4340
|
+
offset2({ mainAxis: (_b = state2 == null ? void 0 : state2.distance) != null ? _b : 8, crossAxis: (_c = state2 == null ? void 0 : state2.skidding) != null ? _c : 0 }),
|
|
4350
4341
|
// offers flexibility over how to place the attentionEl towards its targetEl both on the x and y axis (horizontally and vertically).
|
|
4351
|
-
(
|
|
4342
|
+
(state2 == null ? void 0 : state2.flip) && flip2({
|
|
4352
4343
|
// when flip is set to true it will move the attentionEl's placement to its opposite side or to the preferred placements if fallbackPlacements has a value
|
|
4353
|
-
crossAxis:
|
|
4344
|
+
crossAxis: state2 == null ? void 0 : state2.crossAxis,
|
|
4354
4345
|
// checks overflow to trigger a flip. When disabled, it will ignore overflow
|
|
4355
|
-
fallbackPlacements:
|
|
4346
|
+
fallbackPlacements: state2 == null ? void 0 : state2.fallbackPlacements
|
|
4356
4347
|
}),
|
|
4357
|
-
(
|
|
4348
|
+
(state2 == null ? void 0 : state2.flip) && shift2({ crossAxis: true }),
|
|
4358
4349
|
// shifts the attentionEl to make sure that it stays in view
|
|
4359
|
-
!(
|
|
4350
|
+
!(state2 == null ? void 0 : state2.noArrow) && (state2 == null ? void 0 : state2.arrowEl) && arrow2({ element: state2 == null ? void 0 : state2.arrowEl }),
|
|
4360
4351
|
hide2(),
|
|
4361
4352
|
// will hide the attentionEl when it appears detached from the targetEl. Can be called multiple times in the middleware-array if you want to use several strategies. Default strategy is 'referenceHidden'.
|
|
4362
4353
|
size2({
|
|
@@ -4369,21 +4360,21 @@ async function useRecompute(state) {
|
|
|
4369
4360
|
})
|
|
4370
4361
|
]
|
|
4371
4362
|
}).then(({ x, y: y2, middlewareData, placement }) => {
|
|
4372
|
-
|
|
4373
|
-
if (!(
|
|
4363
|
+
state2.actualDirection = placement;
|
|
4364
|
+
if (!(state2 == null ? void 0 : state2.isCallout)) {
|
|
4374
4365
|
Object.assign(attentionEl.style, {
|
|
4375
4366
|
left: `${x}px`,
|
|
4376
4367
|
top: `${y2}px`
|
|
4377
4368
|
});
|
|
4378
4369
|
}
|
|
4379
|
-
if ((middlewareData == null ? void 0 : middlewareData.hide) && !(
|
|
4370
|
+
if ((middlewareData == null ? void 0 : middlewareData.hide) && !(state2 == null ? void 0 : state2.isCallout)) {
|
|
4380
4371
|
const { referenceHidden } = middlewareData.hide;
|
|
4381
4372
|
Object.assign(attentionEl.style, {
|
|
4382
4373
|
visibility: referenceHidden ? "hidden" : ""
|
|
4383
4374
|
});
|
|
4384
4375
|
}
|
|
4385
|
-
if ((middlewareData == null ? void 0 : middlewareData.arrow) && (
|
|
4386
|
-
const arrowEl =
|
|
4376
|
+
if ((middlewareData == null ? void 0 : middlewareData.arrow) && (state2 == null ? void 0 : state2.arrowEl)) {
|
|
4377
|
+
const arrowEl = state2 == null ? void 0 : state2.arrowEl;
|
|
4387
4378
|
const { x: arrowX, y: arrowY } = middlewareData.arrow;
|
|
4388
4379
|
const isRtl = window.getComputedStyle(attentionEl).direction === "rtl";
|
|
4389
4380
|
const arrowPlacement = arrowDirection(placement).split("-")[1];
|
|
@@ -4411,7 +4402,7 @@ async function useRecompute(state) {
|
|
|
4411
4402
|
applyArrowStyles(arrowEl, arrowRotation(placement), placement);
|
|
4412
4403
|
}
|
|
4413
4404
|
});
|
|
4414
|
-
return
|
|
4405
|
+
return state2;
|
|
4415
4406
|
}
|
|
4416
4407
|
|
|
4417
4408
|
// packages/attention/index.js
|
|
@@ -4528,8 +4519,8 @@ ${JSON.stringify(directions)}`
|
|
|
4528
4519
|
handleDone() {
|
|
4529
4520
|
window.requestAnimationFrame(() => {
|
|
4530
4521
|
if (this.show && this._targetEl && this._attentionEl) {
|
|
4531
|
-
useRecompute(this.attentionState).then((
|
|
4532
|
-
this._actualDirection =
|
|
4522
|
+
useRecompute(this.attentionState).then((state2) => {
|
|
4523
|
+
this._actualDirection = state2 == null ? void 0 : state2.actualDirection;
|
|
4533
4524
|
});
|
|
4534
4525
|
} else {
|
|
4535
4526
|
this._actualDirection = this._initialPlacement;
|
|
@@ -4953,229 +4944,3016 @@ if (!customElements.get("w-breadcrumbs")) {
|
|
|
4953
4944
|
customElements.define("w-breadcrumbs", WarpBreadcrumbs);
|
|
4954
4945
|
}
|
|
4955
4946
|
|
|
4956
|
-
// packages/button/index.
|
|
4957
|
-
import { html as html13 } from "lit";
|
|
4947
|
+
// packages/button/index.ts
|
|
4948
|
+
import { html as html13, LitElement as LitElement7 } from "lit";
|
|
4949
|
+
import { property } from "lit/decorators.js";
|
|
4950
|
+
|
|
4951
|
+
// node_modules/.pnpm/@open-wc+form-control@1.0.0/node_modules/@open-wc/form-control/src/FormControlMixin.js
|
|
4952
|
+
var __classPrivateFieldGet = function(receiver, state2, kind, f2) {
|
|
4953
|
+
if (kind === "a" && !f2) throw new TypeError("Private accessor was defined without a getter");
|
|
4954
|
+
if (typeof state2 === "function" ? receiver !== state2 || !f2 : !state2.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4955
|
+
return kind === "m" ? f2 : kind === "a" ? f2.call(receiver) : f2 ? f2.value : state2.get(receiver);
|
|
4956
|
+
};
|
|
4957
|
+
var __classPrivateFieldSet = function(receiver, state2, value, kind, f2) {
|
|
4958
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4959
|
+
if (kind === "a" && !f2) throw new TypeError("Private accessor was defined without a setter");
|
|
4960
|
+
if (typeof state2 === "function" ? receiver !== state2 || !f2 : !state2.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
4961
|
+
return kind === "a" ? f2.call(receiver, value) : f2 ? f2.value = value : state2.set(receiver, value), value;
|
|
4962
|
+
};
|
|
4963
|
+
function FormControlMixin(SuperClass) {
|
|
4964
|
+
var _FormControl_instances, _FormControl_focused, _FormControl_forceError, _FormControl_touched, _FormControl_abortController, _FormControl_previousAbortController, _FormControl_awaitingValidationTarget, _FormControl_formValidationGroup_get, _FormControl_value, _FormControl_onFocus, _FormControl_onBlur, _FormControl_onInvalid, _FormControl_validationCompleteResolver, _FormControl_isValidationPending, _FormControl_validationComplete, _FormControl_shouldShowError, _FormControl_runValidators, _FormControl_setValidityWithOptionalTarget, _FormControl_getValidatorMessageForValue;
|
|
4965
|
+
class FormControl extends SuperClass {
|
|
4966
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4967
|
+
constructor(...args) {
|
|
4968
|
+
var _a, _b, _c;
|
|
4969
|
+
super(...args);
|
|
4970
|
+
_FormControl_instances.add(this);
|
|
4971
|
+
this.internals = this.attachInternals();
|
|
4972
|
+
_FormControl_focused.set(this, false);
|
|
4973
|
+
_FormControl_forceError.set(this, false);
|
|
4974
|
+
_FormControl_touched.set(this, false);
|
|
4975
|
+
_FormControl_abortController.set(this, void 0);
|
|
4976
|
+
_FormControl_previousAbortController.set(this, void 0);
|
|
4977
|
+
_FormControl_awaitingValidationTarget.set(this, true);
|
|
4978
|
+
_FormControl_value.set(this, "");
|
|
4979
|
+
_FormControl_onFocus.set(this, () => {
|
|
4980
|
+
__classPrivateFieldSet(this, _FormControl_touched, true, "f");
|
|
4981
|
+
__classPrivateFieldSet(this, _FormControl_focused, true, "f");
|
|
4982
|
+
__classPrivateFieldGet(this, _FormControl_instances, "m", _FormControl_shouldShowError).call(this);
|
|
4983
|
+
});
|
|
4984
|
+
_FormControl_onBlur.set(this, () => {
|
|
4985
|
+
__classPrivateFieldSet(this, _FormControl_focused, false, "f");
|
|
4986
|
+
__classPrivateFieldGet(this, _FormControl_instances, "m", _FormControl_runValidators).call(this, this.shouldFormValueUpdate() ? __classPrivateFieldGet(this, _FormControl_value, "f") : "");
|
|
4987
|
+
if (!this.validity.valid && __classPrivateFieldGet(this, _FormControl_touched, "f")) {
|
|
4988
|
+
__classPrivateFieldSet(this, _FormControl_forceError, true, "f");
|
|
4989
|
+
}
|
|
4990
|
+
const showError = __classPrivateFieldGet(this, _FormControl_instances, "m", _FormControl_shouldShowError).call(this);
|
|
4991
|
+
if (this.validationMessageCallback) {
|
|
4992
|
+
this.validationMessageCallback(showError ? this.internals.validationMessage : "");
|
|
4993
|
+
}
|
|
4994
|
+
});
|
|
4995
|
+
_FormControl_onInvalid.set(this, () => {
|
|
4996
|
+
var _a2;
|
|
4997
|
+
if (__classPrivateFieldGet(this, _FormControl_awaitingValidationTarget, "f") && this.validationTarget) {
|
|
4998
|
+
this.internals.setValidity(this.validity, this.validationMessage, this.validationTarget);
|
|
4999
|
+
__classPrivateFieldSet(this, _FormControl_awaitingValidationTarget, false, "f");
|
|
5000
|
+
}
|
|
5001
|
+
__classPrivateFieldSet(this, _FormControl_touched, true, "f");
|
|
5002
|
+
__classPrivateFieldSet(this, _FormControl_forceError, true, "f");
|
|
5003
|
+
__classPrivateFieldGet(this, _FormControl_instances, "m", _FormControl_shouldShowError).call(this);
|
|
5004
|
+
(_a2 = this === null || this === void 0 ? void 0 : this.validationMessageCallback) === null || _a2 === void 0 ? void 0 : _a2.call(this, this.showError ? this.internals.validationMessage : "");
|
|
5005
|
+
});
|
|
5006
|
+
_FormControl_validationCompleteResolver.set(this, void 0);
|
|
5007
|
+
_FormControl_isValidationPending.set(this, false);
|
|
5008
|
+
_FormControl_validationComplete.set(this, Promise.resolve());
|
|
5009
|
+
(_a = this.addEventListener) === null || _a === void 0 ? void 0 : _a.call(this, "focus", __classPrivateFieldGet(this, _FormControl_onFocus, "f"));
|
|
5010
|
+
(_b = this.addEventListener) === null || _b === void 0 ? void 0 : _b.call(this, "blur", __classPrivateFieldGet(this, _FormControl_onBlur, "f"));
|
|
5011
|
+
(_c = this.addEventListener) === null || _c === void 0 ? void 0 : _c.call(this, "invalid", __classPrivateFieldGet(this, _FormControl_onInvalid, "f"));
|
|
5012
|
+
this.setValue(null);
|
|
5013
|
+
}
|
|
5014
|
+
/** Wires up control instances to be form associated */
|
|
5015
|
+
static get formAssociated() {
|
|
5016
|
+
return true;
|
|
5017
|
+
}
|
|
5018
|
+
static get validators() {
|
|
5019
|
+
return this.formControlValidators || [];
|
|
5020
|
+
}
|
|
5021
|
+
/**
|
|
5022
|
+
* Allows the FormControl instance to respond to Validator attributes.
|
|
5023
|
+
* For instance, if a given Validator has a `required` attribute, that
|
|
5024
|
+
* validator will be evaluated whenever the host's required attribute
|
|
5025
|
+
* is updated.
|
|
5026
|
+
*/
|
|
5027
|
+
static get observedAttributes() {
|
|
5028
|
+
const validatorAttributes = this.validators.map((validator) => validator.attribute).flat();
|
|
5029
|
+
const observedAttributes = super.observedAttributes || [];
|
|
5030
|
+
const attributeSet = /* @__PURE__ */ new Set([...observedAttributes, ...validatorAttributes]);
|
|
5031
|
+
return [...attributeSet];
|
|
5032
|
+
}
|
|
5033
|
+
/**
|
|
5034
|
+
* Return the validator associated with a given attribute. If no
|
|
5035
|
+
* Validator is associated with the attribute, it will return null.
|
|
5036
|
+
*/
|
|
5037
|
+
static getValidator(attribute) {
|
|
5038
|
+
return this.validators.find((validator) => validator.attribute === attribute) || null;
|
|
5039
|
+
}
|
|
5040
|
+
/**
|
|
5041
|
+
* Get all validators that are set to react to a given attribute
|
|
5042
|
+
* @param {string} attribute - The attribute that has changed
|
|
5043
|
+
* @returns {Validator[]}
|
|
5044
|
+
*/
|
|
5045
|
+
static getValidators(attribute) {
|
|
5046
|
+
return this.validators.filter((validator) => {
|
|
5047
|
+
var _a;
|
|
5048
|
+
if (validator.attribute === attribute || ((_a = validator.attribute) === null || _a === void 0 ? void 0 : _a.includes(attribute))) {
|
|
5049
|
+
return true;
|
|
5050
|
+
}
|
|
5051
|
+
});
|
|
5052
|
+
}
|
|
5053
|
+
/** Return a reference to the control's form */
|
|
5054
|
+
get form() {
|
|
5055
|
+
return this.internals.form;
|
|
5056
|
+
}
|
|
5057
|
+
/**
|
|
5058
|
+
* Will return true if it is recommended that the control shows an internal
|
|
5059
|
+
* error. If using this property, it is wise to listen for 'invalid' events
|
|
5060
|
+
* on the element host and call preventDefault on the event. Doing this will
|
|
5061
|
+
* prevent browsers from showing a validation popup.
|
|
5062
|
+
*/
|
|
5063
|
+
get showError() {
|
|
5064
|
+
return __classPrivateFieldGet(this, _FormControl_instances, "m", _FormControl_shouldShowError).call(this);
|
|
5065
|
+
}
|
|
5066
|
+
/**
|
|
5067
|
+
* Forward the internals checkValidity method
|
|
5068
|
+
* will return the valid state of the control.
|
|
5069
|
+
*/
|
|
5070
|
+
checkValidity() {
|
|
5071
|
+
return this.internals.checkValidity();
|
|
5072
|
+
}
|
|
5073
|
+
/** The element's validity state */
|
|
5074
|
+
get validity() {
|
|
5075
|
+
return this.internals.validity;
|
|
5076
|
+
}
|
|
5077
|
+
/**
|
|
5078
|
+
* The validation message shown by a given Validator object. If the control
|
|
5079
|
+
* is in a valid state this should be falsy.
|
|
5080
|
+
*/
|
|
5081
|
+
get validationMessage() {
|
|
5082
|
+
return this.internals.validationMessage;
|
|
5083
|
+
}
|
|
5084
|
+
attributeChangedCallback(name, oldValue, newValue) {
|
|
5085
|
+
var _a;
|
|
5086
|
+
(_a = super.attributeChangedCallback) === null || _a === void 0 ? void 0 : _a.call(this, name, oldValue, newValue);
|
|
5087
|
+
const proto = this.constructor;
|
|
5088
|
+
const validators = proto.getValidators(name);
|
|
5089
|
+
if ((validators === null || validators === void 0 ? void 0 : validators.length) && this.validationTarget) {
|
|
5090
|
+
this.setValue(__classPrivateFieldGet(this, _FormControl_value, "f"));
|
|
5091
|
+
}
|
|
5092
|
+
}
|
|
5093
|
+
/** PUBLIC LIFECYCLE METHODS */
|
|
5094
|
+
/**
|
|
5095
|
+
* Sets the control's form value if the call to `shouldFormValueUpdate`
|
|
5096
|
+
* returns `true`.
|
|
5097
|
+
* @param value {FormValue} - The value to pass to the form
|
|
5098
|
+
*/
|
|
5099
|
+
setValue(value) {
|
|
5100
|
+
var _a;
|
|
5101
|
+
__classPrivateFieldSet(this, _FormControl_forceError, false, "f");
|
|
5102
|
+
(_a = this.validationMessageCallback) === null || _a === void 0 ? void 0 : _a.call(this, "");
|
|
5103
|
+
__classPrivateFieldSet(this, _FormControl_value, value, "f");
|
|
5104
|
+
const valueShouldUpdate = this.shouldFormValueUpdate();
|
|
5105
|
+
const valueToUpdate = valueShouldUpdate ? value : null;
|
|
5106
|
+
this.internals.setFormValue(valueToUpdate);
|
|
5107
|
+
__classPrivateFieldGet(this, _FormControl_instances, "m", _FormControl_runValidators).call(this, valueToUpdate);
|
|
5108
|
+
if (this.valueChangedCallback) {
|
|
5109
|
+
this.valueChangedCallback(valueToUpdate);
|
|
5110
|
+
}
|
|
5111
|
+
__classPrivateFieldGet(this, _FormControl_instances, "m", _FormControl_shouldShowError).call(this);
|
|
5112
|
+
}
|
|
5113
|
+
/**
|
|
5114
|
+
* This method can be overridden to determine if the control's form value
|
|
5115
|
+
* should be set on a call to `setValue`. An example of when a user might want
|
|
5116
|
+
* to skip this step is when implementing checkbox-like behavior, first checking
|
|
5117
|
+
* to see if `this.checked` is set to a truthy value. By default this returns
|
|
5118
|
+
* `true`.
|
|
5119
|
+
*/
|
|
5120
|
+
shouldFormValueUpdate() {
|
|
5121
|
+
return true;
|
|
5122
|
+
}
|
|
5123
|
+
/** A promise that will resolve when all pending validations are complete */
|
|
5124
|
+
get validationComplete() {
|
|
5125
|
+
return new Promise((resolve) => resolve(__classPrivateFieldGet(this, _FormControl_validationComplete, "f")));
|
|
5126
|
+
}
|
|
5127
|
+
/** Reset control state when the form is reset */
|
|
5128
|
+
formResetCallback() {
|
|
5129
|
+
var _a, _b;
|
|
5130
|
+
__classPrivateFieldSet(this, _FormControl_touched, false, "f");
|
|
5131
|
+
__classPrivateFieldSet(this, _FormControl_forceError, false, "f");
|
|
5132
|
+
__classPrivateFieldGet(this, _FormControl_instances, "m", _FormControl_shouldShowError).call(this);
|
|
5133
|
+
(_a = this.resetFormControl) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
5134
|
+
(_b = this.validationMessageCallback) === null || _b === void 0 ? void 0 : _b.call(this, __classPrivateFieldGet(this, _FormControl_instances, "m", _FormControl_shouldShowError).call(this) ? this.validationMessage : "");
|
|
5135
|
+
}
|
|
5136
|
+
}
|
|
5137
|
+
_FormControl_focused = /* @__PURE__ */ new WeakMap(), _FormControl_forceError = /* @__PURE__ */ new WeakMap(), _FormControl_touched = /* @__PURE__ */ new WeakMap(), _FormControl_abortController = /* @__PURE__ */ new WeakMap(), _FormControl_previousAbortController = /* @__PURE__ */ new WeakMap(), _FormControl_awaitingValidationTarget = /* @__PURE__ */ new WeakMap(), _FormControl_value = /* @__PURE__ */ new WeakMap(), _FormControl_onFocus = /* @__PURE__ */ new WeakMap(), _FormControl_onBlur = /* @__PURE__ */ new WeakMap(), _FormControl_onInvalid = /* @__PURE__ */ new WeakMap(), _FormControl_validationCompleteResolver = /* @__PURE__ */ new WeakMap(), _FormControl_isValidationPending = /* @__PURE__ */ new WeakMap(), _FormControl_validationComplete = /* @__PURE__ */ new WeakMap(), _FormControl_instances = /* @__PURE__ */ new WeakSet(), _FormControl_formValidationGroup_get = function _FormControl_formValidationGroup_get2() {
|
|
5138
|
+
const rootNode = this.getRootNode();
|
|
5139
|
+
const selector = `${this.localName}[name="${this.getAttribute("name")}"]`;
|
|
5140
|
+
return rootNode.querySelectorAll(selector);
|
|
5141
|
+
}, _FormControl_shouldShowError = function _FormControl_shouldShowError2() {
|
|
5142
|
+
if (this.hasAttribute("disabled")) {
|
|
5143
|
+
return false;
|
|
5144
|
+
}
|
|
5145
|
+
const showError = __classPrivateFieldGet(this, _FormControl_forceError, "f") || __classPrivateFieldGet(this, _FormControl_touched, "f") && !this.validity.valid && !__classPrivateFieldGet(this, _FormControl_focused, "f");
|
|
5146
|
+
if (showError && this.internals.states) {
|
|
5147
|
+
this.internals.states.add("--show-error");
|
|
5148
|
+
} else if (this.internals.states) {
|
|
5149
|
+
this.internals.states.delete("--show-error");
|
|
5150
|
+
}
|
|
5151
|
+
return showError;
|
|
5152
|
+
}, _FormControl_runValidators = function _FormControl_runValidators2(value) {
|
|
5153
|
+
const proto = this.constructor;
|
|
5154
|
+
const validity = {};
|
|
5155
|
+
const validators = proto.validators;
|
|
5156
|
+
const asyncValidators = [];
|
|
5157
|
+
const hasAsyncValidators = validators.some((validator) => validator.isValid instanceof Promise);
|
|
5158
|
+
if (!__classPrivateFieldGet(this, _FormControl_isValidationPending, "f")) {
|
|
5159
|
+
__classPrivateFieldSet(this, _FormControl_validationComplete, new Promise((resolve) => {
|
|
5160
|
+
__classPrivateFieldSet(this, _FormControl_validationCompleteResolver, resolve, "f");
|
|
5161
|
+
}), "f");
|
|
5162
|
+
__classPrivateFieldSet(this, _FormControl_isValidationPending, true, "f");
|
|
5163
|
+
}
|
|
5164
|
+
if (__classPrivateFieldGet(this, _FormControl_abortController, "f")) {
|
|
5165
|
+
__classPrivateFieldGet(this, _FormControl_abortController, "f").abort();
|
|
5166
|
+
__classPrivateFieldSet(this, _FormControl_previousAbortController, __classPrivateFieldGet(this, _FormControl_abortController, "f"), "f");
|
|
5167
|
+
}
|
|
5168
|
+
const abortController = new AbortController();
|
|
5169
|
+
__classPrivateFieldSet(this, _FormControl_abortController, abortController, "f");
|
|
5170
|
+
let validationMessage = void 0;
|
|
5171
|
+
let hasChange = false;
|
|
5172
|
+
if (!validators.length) {
|
|
5173
|
+
return;
|
|
5174
|
+
}
|
|
5175
|
+
validators.forEach((validator) => {
|
|
5176
|
+
const key = validator.key || "customError";
|
|
5177
|
+
const isValid = validator.isValid(this, value, abortController.signal);
|
|
5178
|
+
const isAsyncValidator = isValid instanceof Promise;
|
|
5179
|
+
if (isAsyncValidator) {
|
|
5180
|
+
asyncValidators.push(isValid);
|
|
5181
|
+
isValid.then((isValidatorValid) => {
|
|
5182
|
+
if (isValidatorValid === void 0 || isValidatorValid === null) {
|
|
5183
|
+
return;
|
|
5184
|
+
}
|
|
5185
|
+
validity[key] = !isValidatorValid;
|
|
5186
|
+
validationMessage = __classPrivateFieldGet(this, _FormControl_instances, "m", _FormControl_getValidatorMessageForValue).call(this, validator, value);
|
|
5187
|
+
__classPrivateFieldGet(this, _FormControl_instances, "m", _FormControl_setValidityWithOptionalTarget).call(this, validity, validationMessage);
|
|
5188
|
+
});
|
|
5189
|
+
} else {
|
|
5190
|
+
validity[key] = !isValid;
|
|
5191
|
+
if (this.validity[key] !== !isValid) {
|
|
5192
|
+
hasChange = true;
|
|
5193
|
+
}
|
|
5194
|
+
if (!isValid && !validationMessage) {
|
|
5195
|
+
validationMessage = __classPrivateFieldGet(this, _FormControl_instances, "m", _FormControl_getValidatorMessageForValue).call(this, validator, value);
|
|
5196
|
+
}
|
|
5197
|
+
}
|
|
5198
|
+
});
|
|
5199
|
+
Promise.allSettled(asyncValidators).then(() => {
|
|
5200
|
+
var _a;
|
|
5201
|
+
if (!(abortController === null || abortController === void 0 ? void 0 : abortController.signal.aborted)) {
|
|
5202
|
+
__classPrivateFieldSet(this, _FormControl_isValidationPending, false, "f");
|
|
5203
|
+
(_a = __classPrivateFieldGet(this, _FormControl_validationCompleteResolver, "f")) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
5204
|
+
}
|
|
5205
|
+
});
|
|
5206
|
+
if (hasChange || !hasAsyncValidators) {
|
|
5207
|
+
__classPrivateFieldGet(this, _FormControl_instances, "m", _FormControl_setValidityWithOptionalTarget).call(this, validity, validationMessage);
|
|
5208
|
+
}
|
|
5209
|
+
}, _FormControl_setValidityWithOptionalTarget = function _FormControl_setValidityWithOptionalTarget2(validity, validationMessage) {
|
|
5210
|
+
if (this.validationTarget) {
|
|
5211
|
+
this.internals.setValidity(validity, validationMessage, this.validationTarget);
|
|
5212
|
+
__classPrivateFieldSet(this, _FormControl_awaitingValidationTarget, false, "f");
|
|
5213
|
+
} else {
|
|
5214
|
+
this.internals.setValidity(validity, validationMessage);
|
|
5215
|
+
if (this.internals.validity.valid) {
|
|
5216
|
+
return;
|
|
5217
|
+
}
|
|
5218
|
+
__classPrivateFieldSet(this, _FormControl_awaitingValidationTarget, true, "f");
|
|
5219
|
+
}
|
|
5220
|
+
}, _FormControl_getValidatorMessageForValue = function _FormControl_getValidatorMessageForValue2(validator, value) {
|
|
5221
|
+
if (this.validityCallback) {
|
|
5222
|
+
const message = this.validityCallback(validator.key || "customError");
|
|
5223
|
+
if (message) {
|
|
5224
|
+
return message;
|
|
5225
|
+
}
|
|
5226
|
+
}
|
|
5227
|
+
if (validator.message instanceof Function) {
|
|
5228
|
+
return validator.message(this, value);
|
|
5229
|
+
} else {
|
|
5230
|
+
return validator.message;
|
|
5231
|
+
}
|
|
5232
|
+
};
|
|
5233
|
+
return FormControl;
|
|
5234
|
+
}
|
|
5235
|
+
|
|
5236
|
+
// packages/button/index.ts
|
|
4958
5237
|
import WarpElement7 from "@warp-ds/elements-core";
|
|
4959
5238
|
|
|
4960
|
-
// packages/
|
|
4961
|
-
|
|
5239
|
+
// packages/styles.ts
|
|
5240
|
+
import { css as css4 } from "lit";
|
|
5241
|
+
var reset = css4`
|
|
5242
|
+
*,
|
|
5243
|
+
:before,
|
|
5244
|
+
:after {
|
|
5245
|
+
box-sizing: border-box;
|
|
5246
|
+
border-style: solid;
|
|
5247
|
+
border-width: 0;
|
|
5248
|
+
border-color: var(--w-s-color-border);
|
|
5249
|
+
}
|
|
5250
|
+
html {
|
|
5251
|
+
font-size: 62.5%;
|
|
5252
|
+
}
|
|
5253
|
+
body {
|
|
5254
|
+
background-color: var(--w-s-color-background);
|
|
5255
|
+
min-height: 100%;
|
|
5256
|
+
margin: 0;
|
|
5257
|
+
overflow-y: scroll;
|
|
5258
|
+
}
|
|
5259
|
+
body,
|
|
5260
|
+
:host {
|
|
5261
|
+
-webkit-text-size-adjust: 100%;
|
|
5262
|
+
tab-size: 4;
|
|
5263
|
+
-webkit-tap-highlight-color: transparent;
|
|
5264
|
+
font-family: var(--w-font-family);
|
|
5265
|
+
font-size: var(--w-font-size-m);
|
|
5266
|
+
line-height: var(--w-line-height-m);
|
|
5267
|
+
color: var(--w-s-color-text);
|
|
5268
|
+
}
|
|
5269
|
+
hr {
|
|
5270
|
+
color: inherit;
|
|
5271
|
+
border-top-width: 1px;
|
|
5272
|
+
height: 0;
|
|
5273
|
+
}
|
|
5274
|
+
abbr:where([title]) {
|
|
5275
|
+
-webkit-text-decoration: underline dotted;
|
|
5276
|
+
text-decoration: underline dotted;
|
|
5277
|
+
}
|
|
5278
|
+
h1,
|
|
5279
|
+
h2,
|
|
5280
|
+
h3,
|
|
5281
|
+
h4,
|
|
5282
|
+
h5,
|
|
5283
|
+
h6 {
|
|
5284
|
+
font-size: inherit;
|
|
5285
|
+
font-weight: 700;
|
|
5286
|
+
}
|
|
5287
|
+
a {
|
|
5288
|
+
cursor: pointer;
|
|
5289
|
+
color: var(--w-s-color-text-link);
|
|
5290
|
+
text-decoration: none;
|
|
5291
|
+
}
|
|
5292
|
+
a:hover,
|
|
5293
|
+
a:focus,
|
|
5294
|
+
a:active {
|
|
5295
|
+
text-decoration: underline;
|
|
5296
|
+
}
|
|
5297
|
+
a:focus-visible {
|
|
5298
|
+
outline: 2px solid var(--w-s-color-border-focus);
|
|
5299
|
+
outline-offset: 1px;
|
|
5300
|
+
}
|
|
5301
|
+
b,
|
|
5302
|
+
strong {
|
|
5303
|
+
font-weight: 700;
|
|
5304
|
+
}
|
|
5305
|
+
code,
|
|
5306
|
+
kbd,
|
|
5307
|
+
samp,
|
|
5308
|
+
pre {
|
|
5309
|
+
font-family:
|
|
5310
|
+
ui-monospace,
|
|
5311
|
+
SFMono-Regular,
|
|
5312
|
+
Menlo,
|
|
5313
|
+
Monaco,
|
|
5314
|
+
Consolas,
|
|
5315
|
+
Liberation Mono,
|
|
5316
|
+
Courier New,
|
|
5317
|
+
monospace;
|
|
5318
|
+
font-size: 1em;
|
|
5319
|
+
}
|
|
5320
|
+
sub,
|
|
5321
|
+
sup {
|
|
5322
|
+
vertical-align: baseline;
|
|
5323
|
+
font-size: 75%;
|
|
5324
|
+
line-height: 0;
|
|
5325
|
+
position: relative;
|
|
5326
|
+
}
|
|
5327
|
+
sub {
|
|
5328
|
+
bottom: -0.25em;
|
|
5329
|
+
}
|
|
5330
|
+
sup {
|
|
5331
|
+
top: -0.5em;
|
|
5332
|
+
}
|
|
5333
|
+
table {
|
|
5334
|
+
text-indent: 0;
|
|
5335
|
+
border-color: inherit;
|
|
5336
|
+
border-collapse: collapse;
|
|
5337
|
+
}
|
|
5338
|
+
button,
|
|
5339
|
+
input,
|
|
5340
|
+
optgroup,
|
|
5341
|
+
select,
|
|
5342
|
+
textarea {
|
|
5343
|
+
font-family: inherit;
|
|
5344
|
+
font-size: 100%;
|
|
5345
|
+
font-weight: inherit;
|
|
5346
|
+
line-height: inherit;
|
|
5347
|
+
color: inherit;
|
|
5348
|
+
margin: 0;
|
|
5349
|
+
padding: 0;
|
|
5350
|
+
}
|
|
5351
|
+
button,
|
|
5352
|
+
select {
|
|
5353
|
+
text-transform: none;
|
|
5354
|
+
}
|
|
5355
|
+
button,
|
|
5356
|
+
[type="button"],
|
|
5357
|
+
[type="reset"],
|
|
5358
|
+
[type="submit"] {
|
|
5359
|
+
-webkit-appearance: button;
|
|
5360
|
+
}
|
|
5361
|
+
:-moz-focusring {
|
|
5362
|
+
outline: auto;
|
|
5363
|
+
}
|
|
5364
|
+
:-moz-ui-invalid {
|
|
5365
|
+
box-shadow: none;
|
|
5366
|
+
}
|
|
5367
|
+
progress {
|
|
5368
|
+
vertical-align: baseline;
|
|
5369
|
+
}
|
|
5370
|
+
::-webkit-inner-spin-button {
|
|
5371
|
+
height: auto;
|
|
5372
|
+
}
|
|
5373
|
+
::-webkit-outer-spin-button {
|
|
5374
|
+
height: auto;
|
|
5375
|
+
}
|
|
5376
|
+
[type="search"] {
|
|
5377
|
+
-webkit-appearance: textfield;
|
|
5378
|
+
outline-offset: -2px;
|
|
5379
|
+
}
|
|
5380
|
+
::-webkit-search-decoration {
|
|
5381
|
+
-webkit-appearance: none;
|
|
5382
|
+
}
|
|
5383
|
+
::-webkit-file-upload-button {
|
|
5384
|
+
-webkit-appearance: button;
|
|
5385
|
+
font: inherit;
|
|
5386
|
+
}
|
|
5387
|
+
summary {
|
|
5388
|
+
display: list-item;
|
|
5389
|
+
}
|
|
5390
|
+
blockquote,
|
|
5391
|
+
dl,
|
|
5392
|
+
dd,
|
|
5393
|
+
h1,
|
|
5394
|
+
h2,
|
|
5395
|
+
h3,
|
|
5396
|
+
h4,
|
|
5397
|
+
h5,
|
|
5398
|
+
h6,
|
|
5399
|
+
hr,
|
|
5400
|
+
figure,
|
|
5401
|
+
p,
|
|
5402
|
+
pre {
|
|
5403
|
+
margin: 0;
|
|
5404
|
+
}
|
|
5405
|
+
fieldset {
|
|
5406
|
+
margin: 0;
|
|
5407
|
+
padding: 0;
|
|
5408
|
+
}
|
|
5409
|
+
legend {
|
|
5410
|
+
padding: 0;
|
|
5411
|
+
}
|
|
5412
|
+
ol,
|
|
5413
|
+
ul,
|
|
5414
|
+
menu {
|
|
5415
|
+
margin: 0;
|
|
5416
|
+
padding: 0;
|
|
5417
|
+
list-style: none;
|
|
5418
|
+
}
|
|
5419
|
+
textarea {
|
|
5420
|
+
resize: vertical;
|
|
5421
|
+
}
|
|
5422
|
+
input::placeholder,
|
|
5423
|
+
textarea::placeholder {
|
|
5424
|
+
opacity: 1;
|
|
5425
|
+
color: var(--w-s-color-text-placeholder);
|
|
5426
|
+
}
|
|
5427
|
+
button,
|
|
5428
|
+
[role="button"] {
|
|
5429
|
+
cursor: pointer;
|
|
5430
|
+
}
|
|
5431
|
+
:disabled {
|
|
5432
|
+
cursor: default;
|
|
5433
|
+
}
|
|
5434
|
+
img,
|
|
5435
|
+
svg,
|
|
5436
|
+
video,
|
|
5437
|
+
canvas,
|
|
5438
|
+
audio,
|
|
5439
|
+
iframe,
|
|
5440
|
+
embed,
|
|
5441
|
+
object {
|
|
5442
|
+
vertical-align: middle;
|
|
5443
|
+
display: block;
|
|
5444
|
+
}
|
|
5445
|
+
img,
|
|
5446
|
+
video {
|
|
5447
|
+
max-width: 100%;
|
|
5448
|
+
height: auto;
|
|
5449
|
+
}
|
|
5450
|
+
h1 {
|
|
5451
|
+
font-size: var(--w-font-size-xxl);
|
|
5452
|
+
line-height: var(--w-line-height-xxl);
|
|
5453
|
+
}
|
|
5454
|
+
h2 {
|
|
5455
|
+
font-size: var(--w-font-size-xl);
|
|
5456
|
+
line-height: var(--w-line-height-xl);
|
|
5457
|
+
}
|
|
5458
|
+
h3 {
|
|
5459
|
+
font-size: var(--w-font-size-l);
|
|
5460
|
+
line-height: var(--w-line-height-l);
|
|
5461
|
+
}
|
|
5462
|
+
h4 {
|
|
5463
|
+
font-size: var(--w-font-size-m);
|
|
5464
|
+
line-height: var(--w-line-height-m);
|
|
5465
|
+
}
|
|
5466
|
+
h5 {
|
|
5467
|
+
font-size: var(--w-font-size-s);
|
|
5468
|
+
line-height: var(--w-line-height-s);
|
|
5469
|
+
}
|
|
5470
|
+
dt,
|
|
5471
|
+
dd {
|
|
5472
|
+
margin: 0 16px;
|
|
5473
|
+
}
|
|
5474
|
+
h1,
|
|
5475
|
+
h2,
|
|
5476
|
+
h3,
|
|
5477
|
+
h4,
|
|
5478
|
+
h5,
|
|
5479
|
+
ul,
|
|
5480
|
+
ol,
|
|
5481
|
+
dl,
|
|
5482
|
+
p,
|
|
5483
|
+
blockquote {
|
|
5484
|
+
margin: 0 0 8px;
|
|
5485
|
+
}
|
|
5486
|
+
[hidden] {
|
|
5487
|
+
display: none !important;
|
|
5488
|
+
}
|
|
5489
|
+
[tabindex="-1"]:focus:not(:focus-visible) {
|
|
5490
|
+
outline: none;
|
|
5491
|
+
}
|
|
5492
|
+
legend {
|
|
5493
|
+
float: left;
|
|
5494
|
+
width: 100%;
|
|
5495
|
+
margin: 0;
|
|
5496
|
+
padding: 0;
|
|
5497
|
+
display: table;
|
|
5498
|
+
}
|
|
5499
|
+
legend + * {
|
|
5500
|
+
clear: both;
|
|
5501
|
+
}
|
|
5502
|
+
fieldset {
|
|
5503
|
+
border: 0;
|
|
5504
|
+
min-width: 0;
|
|
5505
|
+
margin: 0;
|
|
5506
|
+
padding: 0.01em 0 0;
|
|
5507
|
+
}
|
|
5508
|
+
body:not(:-moz-handler-blocked) fieldset {
|
|
5509
|
+
display: table-cell;
|
|
5510
|
+
}
|
|
5511
|
+
svg {
|
|
5512
|
+
pointer-events: none;
|
|
5513
|
+
}
|
|
5514
|
+
`;
|
|
5515
|
+
var components = css4`*, :before, :after {
|
|
5516
|
+
--w-rotate: 0;
|
|
5517
|
+
--w-rotate-x: 0;
|
|
5518
|
+
--w-rotate-y: 0;
|
|
5519
|
+
--w-rotate-z: 0;
|
|
5520
|
+
--w-scale-x: 1;
|
|
5521
|
+
--w-scale-y: 1;
|
|
5522
|
+
--w-scale-z: 1;
|
|
5523
|
+
--w-skew-x: 0;
|
|
5524
|
+
--w-skew-y: 0;
|
|
5525
|
+
--w-translate-x: 0;
|
|
5526
|
+
--w-translate-y: 0;
|
|
5527
|
+
--w-translate-z: 0
|
|
5528
|
+
}
|
|
4962
5529
|
|
|
4963
|
-
|
|
4964
|
-
|
|
5530
|
+
.h4, .t4 {
|
|
5531
|
+
font-weight: 700;
|
|
5532
|
+
font-size: var(--w-font-size-m);
|
|
5533
|
+
line-height: var(--w-line-height-m)
|
|
5534
|
+
}
|
|
4965
5535
|
|
|
4966
|
-
|
|
4967
|
-
|
|
5536
|
+
.t3 {
|
|
5537
|
+
font-weight: 700;
|
|
5538
|
+
font-size: var(--w-font-size-l);
|
|
5539
|
+
line-height: var(--w-line-height-l)
|
|
5540
|
+
}
|
|
4968
5541
|
|
|
4969
|
-
|
|
4970
|
-
|
|
5542
|
+
@media (min-width: 480px) {
|
|
5543
|
+
.sm\\:h3 {
|
|
5544
|
+
font-weight: 700;
|
|
5545
|
+
font-size: var(--w-font-size-l);
|
|
5546
|
+
line-height: var(--w-line-height-l)
|
|
5547
|
+
}
|
|
5548
|
+
}
|
|
4971
5549
|
|
|
4972
|
-
|
|
4973
|
-
|
|
5550
|
+
.text-center {
|
|
5551
|
+
text-align: center
|
|
5552
|
+
}
|
|
4974
5553
|
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
constructor() {
|
|
4979
|
-
super();
|
|
4980
|
-
activateI18n7(messages27, messages29, messages28, messages21, messages30);
|
|
4981
|
-
this.variant = "secondary";
|
|
4982
|
-
this.ariaValueTextLoading = i18n._({
|
|
4983
|
-
id: "button.aria.loading",
|
|
4984
|
-
message: "Loading...",
|
|
4985
|
-
comment: "Screenreader message for buttons that are loading"
|
|
4986
|
-
});
|
|
4987
|
-
}
|
|
4988
|
-
connectedCallback() {
|
|
4989
|
-
super.connectedCallback();
|
|
4990
|
-
if (!buttonTypes2.includes(this.variant)) {
|
|
4991
|
-
throw new Error(`Invalid "variant" attribute. Set its value to one of the following:
|
|
4992
|
-
${buttonTypes2.join(", ")}.`);
|
|
4993
|
-
}
|
|
4994
|
-
}
|
|
4995
|
-
firstUpdated() {
|
|
4996
|
-
if (this.autofocus) {
|
|
4997
|
-
setTimeout(() => this.focus(), 0);
|
|
4998
|
-
}
|
|
4999
|
-
}
|
|
5000
|
-
get _primaryClasses() {
|
|
5001
|
-
return [
|
|
5002
|
-
!this.small && !this.quiet && !this.loading && button.primary,
|
|
5003
|
-
this.small && !this.quiet && !this.loading && button.primarySmall,
|
|
5004
|
-
this.small && this.quiet && !this.loading && button.primarySmallQuiet,
|
|
5005
|
-
this.small && this.loading && (this.quiet ? button.primarySmallQuietLoading : button.primarySmallLoading),
|
|
5006
|
-
!this.small && this.quiet && !this.loading && button.primaryQuiet,
|
|
5007
|
-
!this.small && this.loading && (this.quiet ? button.primaryQuietLoading : button.primaryLoading)
|
|
5008
|
-
];
|
|
5009
|
-
}
|
|
5010
|
-
get _secondaryClasses() {
|
|
5011
|
-
return [
|
|
5012
|
-
!this.small && !this.quiet && !this.loading && button.secondary,
|
|
5013
|
-
this.small && !this.quiet && !this.loading && button.secondarySmall,
|
|
5014
|
-
this.small && this.loading && (this.quiet ? button.secondarySmallQuietLoading : button.secondarySmallLoading),
|
|
5015
|
-
this.small && this.quiet && !this.loading && button.secondarySmallQuiet,
|
|
5016
|
-
!this.small && this.quiet && !this.loading && button.secondaryQuiet,
|
|
5017
|
-
!this.small && this.loading && (this.quiet ? button.secondaryQuietLoading : button.secondaryLoading)
|
|
5018
|
-
];
|
|
5019
|
-
}
|
|
5020
|
-
get _utilityClasses() {
|
|
5021
|
-
return [
|
|
5022
|
-
!this.small && !this.quiet && !this.loading && button.utility,
|
|
5023
|
-
this.small && !this.quiet && !this.loading && button.utilitySmall,
|
|
5024
|
-
this.small && this.quiet && !this.loading && button.utilitySmallQuiet,
|
|
5025
|
-
this.small && this.loading && (this.quiet ? button.utilitySmallQuietLoading : button.utilitySmallLoading),
|
|
5026
|
-
!this.small && this.quiet && !this.loading && button.utilityQuiet,
|
|
5027
|
-
!this.small && this.loading && (this.quiet ? button.utilityQuietLoading : button.utilityLoading)
|
|
5028
|
-
];
|
|
5029
|
-
}
|
|
5030
|
-
get _negativeClasses() {
|
|
5031
|
-
return [
|
|
5032
|
-
!this.small && !this.quiet && !this.loading && button.negative,
|
|
5033
|
-
this.small && !this.quiet && !this.loading && button.negativeSmall,
|
|
5034
|
-
this.small && this.quiet && !this.loading && button.negativeSmallQuiet,
|
|
5035
|
-
this.small && this.loading && (this.quiet ? button.negativeSmallQuietLoading : button.negativeSmallLoading),
|
|
5036
|
-
!this.small && this.quiet && !this.loading && button.negativeQuiet,
|
|
5037
|
-
!this.small && this.loading && (this.quiet ? button.negativeQuietLoading : button.negativeLoading)
|
|
5038
|
-
];
|
|
5039
|
-
}
|
|
5040
|
-
get _pillClasses() {
|
|
5041
|
-
return [
|
|
5042
|
-
!this.loading && (this.small ? button.pillSmall : button.pill),
|
|
5043
|
-
this.loading && (this.small ? button.pillSmallLoading : button.pillLoading)
|
|
5044
|
-
];
|
|
5045
|
-
}
|
|
5046
|
-
get _linkClasses() {
|
|
5047
|
-
return [this.small ? button.linkSmall : button.link];
|
|
5048
|
-
}
|
|
5049
|
-
get _classes() {
|
|
5050
|
-
return r(this.buttonClass, [
|
|
5051
|
-
this.variant === "primary" && this._primaryClasses,
|
|
5052
|
-
this.variant === "secondary" && this._secondaryClasses,
|
|
5053
|
-
this.variant === "utility" && this._utilityClasses,
|
|
5054
|
-
this.variant === "negative" && this._negativeClasses,
|
|
5055
|
-
this.variant === "pill" && this._pillClasses,
|
|
5056
|
-
this.variant === "link" && this._linkClasses,
|
|
5057
|
-
this.href && button.linkAsButton,
|
|
5058
|
-
this.fullWidth ? button.fullWidth : button.contentWidth
|
|
5059
|
-
]);
|
|
5060
|
-
}
|
|
5061
|
-
render() {
|
|
5062
|
-
return html13` ${this.href ? html13`<a
|
|
5063
|
-
href=${this.href}
|
|
5064
|
-
target=${this.target}
|
|
5065
|
-
rel=${this.target === "_blank" ? this.rel || "noopener" : void 0}
|
|
5066
|
-
class=${this._classes}>
|
|
5067
|
-
<slot></slot>
|
|
5068
|
-
</a>` : html13`<button type=${this.type || "button"} class=${this._classes}>
|
|
5069
|
-
<slot></slot>
|
|
5070
|
-
</button>`}
|
|
5071
|
-
${this.loading ? html13`<span class="sr-only" role="progressbar" aria-valuenow="{0}" aria-valuetext=${this.ariaValueTextLoading}></span>` : null}`;
|
|
5072
|
-
}
|
|
5073
|
-
};
|
|
5074
|
-
__publicField(WarpButton, "shadowRootOptions", __spreadProps(__spreadValues({}, WarpElement7.shadowRootOptions), {
|
|
5075
|
-
delegatesFocus: true
|
|
5076
|
-
}));
|
|
5077
|
-
__publicField(WarpButton, "properties", {
|
|
5078
|
-
type: { type: "button" | "submit" | "reset", reflect: true },
|
|
5079
|
-
autofocus: { type: Boolean, reflect: true },
|
|
5080
|
-
variant: { type: String, reflect: true },
|
|
5081
|
-
quiet: { type: Boolean, reflect: true },
|
|
5082
|
-
small: { type: Boolean, reflect: true },
|
|
5083
|
-
loading: { type: Boolean, reflect: true },
|
|
5084
|
-
href: { type: String, reflect: true },
|
|
5085
|
-
target: { type: String, reflect: true },
|
|
5086
|
-
rel: { type: String, reflect: true },
|
|
5087
|
-
fullWidth: { type: Boolean, reflect: true },
|
|
5088
|
-
buttonClass: { type: String, reflect: true }
|
|
5089
|
-
});
|
|
5090
|
-
__publicField(WarpButton, "styles", [WarpElement7.styles]);
|
|
5091
|
-
if (!customElements.get("w-button")) {
|
|
5092
|
-
customElements.define("w-button", WarpButton);
|
|
5093
|
-
}
|
|
5554
|
+
.before\\:text-center:before {
|
|
5555
|
+
text-align: center
|
|
5556
|
+
}
|
|
5094
5557
|
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
import { ifDefined as ifDefined3 } from "lit/directives/if-defined.js";
|
|
5558
|
+
.text-left {
|
|
5559
|
+
text-align: left
|
|
5560
|
+
}
|
|
5099
5561
|
|
|
5100
|
-
|
|
5101
|
-
|
|
5562
|
+
.text-right {
|
|
5563
|
+
text-align: right
|
|
5564
|
+
}
|
|
5102
5565
|
|
|
5103
|
-
|
|
5104
|
-
|
|
5566
|
+
.align-middle {
|
|
5567
|
+
vertical-align: middle
|
|
5568
|
+
}
|
|
5105
5569
|
|
|
5106
|
-
|
|
5107
|
-
|
|
5570
|
+
.animate-inprogress {
|
|
5571
|
+
background-image: linear-gradient(135deg, rgba(0, 0, 0, .05) 25%, transparent 0, transparent 50%, rgba(0, 0, 0, .05) 0, rgba(0, 0, 0, .05) 75%, transparent 0, transparent) !important;
|
|
5572
|
+
background-size: 30px 30px;
|
|
5573
|
+
animation: animate-inprogress 3s linear infinite
|
|
5574
|
+
}
|
|
5108
5575
|
|
|
5109
|
-
|
|
5110
|
-
|
|
5576
|
+
@keyframes animate-inprogress {
|
|
5577
|
+
0% {
|
|
5578
|
+
background-position: 0 0
|
|
5579
|
+
}
|
|
5580
|
+
to {
|
|
5581
|
+
background-position: 60px 0
|
|
5582
|
+
}
|
|
5583
|
+
}
|
|
5111
5584
|
|
|
5112
|
-
|
|
5113
|
-
|
|
5585
|
+
.\\[--w-modal-max-height\\:80\\%\\] {
|
|
5586
|
+
--w-modal-max-height: 80%
|
|
5587
|
+
}
|
|
5114
5588
|
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5589
|
+
.\\[--w-modal-width\\:640px\\] {
|
|
5590
|
+
--w-modal-width: 640px
|
|
5591
|
+
}
|
|
5592
|
+
|
|
5593
|
+
.focus\\:\\[--w-outline-offset\\:-2px\\]:focus {
|
|
5594
|
+
--w-outline-offset: -2px
|
|
5595
|
+
}
|
|
5596
|
+
|
|
5597
|
+
.backdrop-blur {
|
|
5598
|
+
-webkit-backdrop-filter: blur(4px);
|
|
5599
|
+
backdrop-filter: blur(4px)
|
|
5600
|
+
}
|
|
5601
|
+
|
|
5602
|
+
.peer:checked ~ .peer-checked\\:before\\:bg-center:before {
|
|
5603
|
+
background-position: center
|
|
5604
|
+
}
|
|
5605
|
+
|
|
5606
|
+
.hover\\:bg-clip-padding:hover {
|
|
5607
|
+
-webkit-background-clip: padding-box;
|
|
5608
|
+
background-clip: padding-box
|
|
5609
|
+
}
|
|
5610
|
+
|
|
5611
|
+
.bg-transparent, .group\\/steph:first-child .group-first\\/steph\\:bg-transparent, .group\\/steph:last-child .group-last\\/steph\\:bg-transparent {
|
|
5612
|
+
background-color: transparent
|
|
5613
|
+
}
|
|
5614
|
+
|
|
5615
|
+
.bg-\\[--w-black\\/25\\] {
|
|
5616
|
+
background-color: rgba(var(--w-rgb-black), .25)
|
|
5617
|
+
}
|
|
5618
|
+
|
|
5619
|
+
.bg-\\[--w-black\\/70\\], .bg-\\[var\\(--w-black\\)\\/70\\] {
|
|
5620
|
+
background-color: rgba(var(--w-rgb-black), .7)
|
|
5621
|
+
}
|
|
5622
|
+
|
|
5623
|
+
.bg-\\[--w-color-badge-info-background\\] {
|
|
5624
|
+
background-color: var(--w-color-badge-info-background)
|
|
5625
|
+
}
|
|
5626
|
+
|
|
5627
|
+
.bg-\\[--w-color-badge-negative-background\\] {
|
|
5628
|
+
background-color: var(--w-color-badge-negative-background)
|
|
5629
|
+
}
|
|
5630
|
+
|
|
5631
|
+
.bg-\\[--w-color-badge-neutral-background\\] {
|
|
5632
|
+
background-color: var(--w-color-badge-neutral-background)
|
|
5633
|
+
}
|
|
5634
|
+
|
|
5635
|
+
.bg-\\[--w-color-badge-positive-background\\] {
|
|
5636
|
+
background-color: var(--w-color-badge-positive-background)
|
|
5637
|
+
}
|
|
5638
|
+
|
|
5639
|
+
.bg-\\[--w-color-badge-sponsored-background\\] {
|
|
5640
|
+
background-color: var(--w-color-badge-sponsored-background)
|
|
5641
|
+
}
|
|
5642
|
+
|
|
5643
|
+
.bg-\\[--w-color-badge-warning-background\\] {
|
|
5644
|
+
background-color: var(--w-color-badge-warning-background)
|
|
5645
|
+
}
|
|
5646
|
+
|
|
5647
|
+
.bg-\\[--w-color-button-primary-background\\] {
|
|
5648
|
+
background-color: var(--w-color-button-primary-background)
|
|
5649
|
+
}
|
|
5650
|
+
|
|
5651
|
+
.bg-\\[--w-color-buttongroup-utility-background-selected\\] {
|
|
5652
|
+
background-color: var(--w-color-buttongroup-utility-background-selected)
|
|
5653
|
+
}
|
|
5654
|
+
|
|
5655
|
+
.bg-\\[--w-color-callout-background\\] {
|
|
5656
|
+
background-color: var(--w-color-callout-background)
|
|
5657
|
+
}
|
|
5658
|
+
|
|
5659
|
+
.bg-\\[--w-color-pill-suggestion-background\\] {
|
|
5660
|
+
background-color: var(--w-color-pill-suggestion-background)
|
|
5661
|
+
}
|
|
5662
|
+
|
|
5663
|
+
.bg-\\[--w-color-switch-track-background\\] {
|
|
5664
|
+
background-color: var(--w-color-switch-track-background)
|
|
5665
|
+
}
|
|
5666
|
+
|
|
5667
|
+
.bg-\\[--w-s-color-surface-elevated-100\\] {
|
|
5668
|
+
background-color: var(--w-s-color-surface-elevated-100)
|
|
5669
|
+
}
|
|
5670
|
+
|
|
5671
|
+
.bg-\\[--w-s-color-surface-elevated-300\\] {
|
|
5672
|
+
background-color: var(--w-s-color-surface-elevated-300)
|
|
5673
|
+
}
|
|
5674
|
+
|
|
5675
|
+
.bg-\\[--w-s-icon-selected\\] {
|
|
5676
|
+
background-color: var(--w-s-icon-selected)
|
|
5677
|
+
}
|
|
5678
|
+
|
|
5679
|
+
.group:hover .group-hover\\:bg-\\[--w-color-switch-track-background-hover\\] {
|
|
5680
|
+
background-color: var(--w-color-switch-track-background-hover)
|
|
5681
|
+
}
|
|
5682
|
+
|
|
5683
|
+
.hover\\:bg-\\[--w-color-button-pill-background-hover\\]:hover {
|
|
5684
|
+
background-color: var(--w-color-button-pill-background-hover)
|
|
5685
|
+
}
|
|
5686
|
+
|
|
5687
|
+
.hover\\:bg-\\[--w-color-button-primary-background-hover\\]:hover {
|
|
5688
|
+
background-color: var(--w-color-button-primary-background-hover)
|
|
5689
|
+
}
|
|
5690
|
+
|
|
5691
|
+
.hover\\:bg-\\[--w-color-buttongroup-utility-background-hover\\]:hover {
|
|
5692
|
+
background-color: var(--w-color-buttongroup-utility-background-hover)
|
|
5693
|
+
}
|
|
5694
|
+
|
|
5695
|
+
.hover\\:bg-\\[--w-color-pill-suggestion-background-hover\\]:hover {
|
|
5696
|
+
background-color: var(--w-color-pill-suggestion-background-hover)
|
|
5697
|
+
}
|
|
5698
|
+
|
|
5699
|
+
.hover\\:bg-\\[--w-s-icon-subtle\\]:hover {
|
|
5700
|
+
background-color: var(--w-s-icon-subtle)
|
|
5701
|
+
}
|
|
5702
|
+
|
|
5703
|
+
.hover\\:bg-\\[var\\(--w-black\\)\\/85\\]:hover {
|
|
5704
|
+
background-color: rgba(var(--w-rgb-black), .85)
|
|
5705
|
+
}
|
|
5706
|
+
|
|
5707
|
+
.active\\:bg-\\[--w-color-button-pill-background-active\\]:active {
|
|
5708
|
+
background-color: var(--w-color-button-pill-background-active)
|
|
5709
|
+
}
|
|
5710
|
+
|
|
5711
|
+
.active\\:bg-\\[--w-color-button-primary-background-active\\]:active {
|
|
5712
|
+
background-color: var(--w-color-button-primary-background-active)
|
|
5713
|
+
}
|
|
5714
|
+
|
|
5715
|
+
.active\\:bg-\\[--w-color-buttongroup-utility-background-selected\\]:active {
|
|
5716
|
+
background-color: var(--w-color-buttongroup-utility-background-selected)
|
|
5717
|
+
}
|
|
5718
|
+
|
|
5719
|
+
.active\\:bg-\\[--w-color-pill-suggestion-background-active\\]:active {
|
|
5720
|
+
background-color: var(--w-color-pill-suggestion-background-active)
|
|
5721
|
+
}
|
|
5722
|
+
|
|
5723
|
+
.active\\:bg-\\[var\\(--w-black\\)\\]:active {
|
|
5724
|
+
background-color: var(--w-black)
|
|
5725
|
+
}
|
|
5726
|
+
|
|
5727
|
+
.peer:checked ~ .peer-checked\\:before\\:bg-\\[url\\(var\\(--w-icon-toggle-checked\\)\\)\\]:before {
|
|
5728
|
+
background-image: var(--w-icon-toggle-checked)
|
|
5729
|
+
}
|
|
5730
|
+
|
|
5731
|
+
.appearance-none {
|
|
5732
|
+
-moz-appearance: none;
|
|
5733
|
+
appearance: none;
|
|
5734
|
+
-webkit-appearance: none
|
|
5735
|
+
}
|
|
5736
|
+
|
|
5737
|
+
.will-change-height {
|
|
5738
|
+
will-change: height
|
|
5739
|
+
}
|
|
5740
|
+
|
|
5741
|
+
.border, .border-1 {
|
|
5742
|
+
border-width: 1px
|
|
5743
|
+
}
|
|
5744
|
+
|
|
5745
|
+
.border-b {
|
|
5746
|
+
border-bottom-width: 1px
|
|
5747
|
+
}
|
|
5748
|
+
|
|
5749
|
+
.before\\:border:before {
|
|
5750
|
+
border-width: 1px
|
|
5751
|
+
}
|
|
5752
|
+
|
|
5753
|
+
.border-0 {
|
|
5754
|
+
border-width: 0
|
|
5755
|
+
}
|
|
5756
|
+
|
|
5757
|
+
.border-2 {
|
|
5758
|
+
border-width: 2px
|
|
5759
|
+
}
|
|
5760
|
+
|
|
5761
|
+
.border-b-0 {
|
|
5762
|
+
border-bottom-width: 0
|
|
5763
|
+
}
|
|
5764
|
+
|
|
5765
|
+
.border-b-4 {
|
|
5766
|
+
border-bottom-width: 4px
|
|
5767
|
+
}
|
|
5768
|
+
|
|
5769
|
+
.border-l-4 {
|
|
5770
|
+
border-left-width: 4px
|
|
5771
|
+
}
|
|
5772
|
+
|
|
5773
|
+
.border-r-0, .group:not(:last-of-type) .group-not-last-of-type\\:border-r-0 {
|
|
5774
|
+
border-right-width: 0
|
|
5775
|
+
}
|
|
5776
|
+
|
|
5777
|
+
.peer:checked ~ .peer-checked\\:before\\:border-\\[6\\]:before {
|
|
5778
|
+
border-width: .6rem
|
|
5779
|
+
}
|
|
5780
|
+
|
|
5781
|
+
.border-transparent {
|
|
5782
|
+
border-color: transparent
|
|
5783
|
+
}
|
|
5784
|
+
|
|
5785
|
+
.border-\\[--w-color-buttongroup-utility-border\\] {
|
|
5786
|
+
border-color: var(--w-color-buttongroup-utility-border)
|
|
5787
|
+
}
|
|
5788
|
+
|
|
5789
|
+
.border-\\[--w-color-callout-border\\] {
|
|
5790
|
+
border-color: var(--w-color-callout-border)
|
|
5791
|
+
}
|
|
5792
|
+
|
|
5793
|
+
.border-\\[--w-s-color-background-inverted\\] {
|
|
5794
|
+
border-color: var(--w-s-color-background-inverted)
|
|
5795
|
+
}
|
|
5796
|
+
|
|
5797
|
+
.border-\\[--w-s-color-surface-elevated-300\\] {
|
|
5798
|
+
border-color: var(--w-s-color-surface-elevated-300)
|
|
5799
|
+
}
|
|
5800
|
+
|
|
5801
|
+
.active\\:border-\\[--w-color-buttongroup-utility-border-selected\\]:active {
|
|
5802
|
+
border-color: var(--w-color-buttongroup-utility-border-selected)
|
|
5803
|
+
}
|
|
5804
|
+
|
|
5805
|
+
.divide-x > * + * {
|
|
5806
|
+
--w-divide-x-reverse: 0;
|
|
5807
|
+
border-left-width: calc(1px * calc(1 - var(--w-divide-x-reverse)));
|
|
5808
|
+
border-right-width: calc(1px * var(--w-divide-x-reverse))
|
|
5809
|
+
}
|
|
5810
|
+
|
|
5811
|
+
.divide-y > * + * {
|
|
5812
|
+
--w-divide-y-reverse: 0;
|
|
5813
|
+
border-top-width: calc(1px * calc(1 - var(--w-divide-y-reverse)));
|
|
5814
|
+
border-bottom-width: calc(1px * var(--w-divide-y-reverse))
|
|
5815
|
+
}
|
|
5816
|
+
|
|
5817
|
+
.rounded-4 {
|
|
5818
|
+
border-radius: 4px
|
|
5819
|
+
}
|
|
5820
|
+
|
|
5821
|
+
.rounded-8 {
|
|
5822
|
+
border-radius: 8px
|
|
5823
|
+
}
|
|
5824
|
+
|
|
5825
|
+
.rounded-full {
|
|
5826
|
+
border-radius: 9999px
|
|
5827
|
+
}
|
|
5828
|
+
|
|
5829
|
+
.before\\:rounded-2:before {
|
|
5830
|
+
border-radius: 2px
|
|
5831
|
+
}
|
|
5832
|
+
|
|
5833
|
+
.before\\:rounded-full:before {
|
|
5834
|
+
border-radius: 9999px
|
|
5835
|
+
}
|
|
5836
|
+
|
|
5837
|
+
.rounded-b-0 {
|
|
5838
|
+
border-bottom-left-radius: 0;
|
|
5839
|
+
border-bottom-right-radius: 0
|
|
5840
|
+
}
|
|
5841
|
+
|
|
5842
|
+
.rounded-bl-0 {
|
|
5843
|
+
border-bottom-left-radius: 0
|
|
5844
|
+
}
|
|
5845
|
+
|
|
5846
|
+
.rounded-br-0 {
|
|
5847
|
+
border-bottom-right-radius: 0
|
|
5848
|
+
}
|
|
5849
|
+
|
|
5850
|
+
.rounded-l-0 {
|
|
5851
|
+
border-top-left-radius: 0;
|
|
5852
|
+
border-bottom-left-radius: 0
|
|
5853
|
+
}
|
|
5854
|
+
|
|
5855
|
+
.rounded-l-full {
|
|
5856
|
+
border-top-left-radius: 9999px;
|
|
5857
|
+
border-bottom-left-radius: 9999px
|
|
5858
|
+
}
|
|
5859
|
+
|
|
5860
|
+
.rounded-r-0 {
|
|
5861
|
+
border-top-right-radius: 0;
|
|
5862
|
+
border-bottom-right-radius: 0
|
|
5863
|
+
}
|
|
5864
|
+
|
|
5865
|
+
.rounded-r-full {
|
|
5866
|
+
border-top-right-radius: 9999px;
|
|
5867
|
+
border-bottom-right-radius: 9999px
|
|
5868
|
+
}
|
|
5869
|
+
|
|
5870
|
+
.rounded-tl-0 {
|
|
5871
|
+
border-top-left-radius: 0
|
|
5872
|
+
}
|
|
5873
|
+
|
|
5874
|
+
.rounded-tl-4 {
|
|
5875
|
+
border-top-left-radius: 4px
|
|
5876
|
+
}
|
|
5877
|
+
|
|
5878
|
+
.rounded-tr-0 {
|
|
5879
|
+
border-top-right-radius: 0
|
|
5880
|
+
}
|
|
5881
|
+
|
|
5882
|
+
.group:first-of-type .group-first-of-type\\:rounded-bl-8 {
|
|
5883
|
+
border-bottom-left-radius: 8px
|
|
5884
|
+
}
|
|
5885
|
+
|
|
5886
|
+
.group:first-of-type .group-first-of-type\\:rounded-tl-8 {
|
|
5887
|
+
border-top-left-radius: 8px
|
|
5888
|
+
}
|
|
5889
|
+
|
|
5890
|
+
.first\\:rounded-lb-4:first-child {
|
|
5891
|
+
border-bottom-left-radius: 4px
|
|
5892
|
+
}
|
|
5893
|
+
|
|
5894
|
+
.first\\:rounded-lt-4:first-child {
|
|
5895
|
+
border-top-left-radius: 4px
|
|
5896
|
+
}
|
|
5897
|
+
|
|
5898
|
+
.first\\:rounded-rt-4:first-child {
|
|
5899
|
+
border-top-right-radius: 4px
|
|
5900
|
+
}
|
|
5901
|
+
|
|
5902
|
+
.group:last-of-type .group-last-of-type\\:rounded-br-8 {
|
|
5903
|
+
border-bottom-right-radius: 8px
|
|
5904
|
+
}
|
|
5905
|
+
|
|
5906
|
+
.group:last-of-type .group-last-of-type\\:rounded-tr-8 {
|
|
5907
|
+
border-top-right-radius: 8px
|
|
5908
|
+
}
|
|
5909
|
+
|
|
5910
|
+
.last\\:rounded-lb-4:last-child {
|
|
5911
|
+
border-bottom-left-radius: 4px
|
|
5912
|
+
}
|
|
5913
|
+
|
|
5914
|
+
.last\\:rounded-rb-4:last-child {
|
|
5915
|
+
border-bottom-right-radius: 4px
|
|
5916
|
+
}
|
|
5917
|
+
|
|
5918
|
+
.last\\:rounded-rt-4:last-child {
|
|
5919
|
+
border-top-right-radius: 4px
|
|
5920
|
+
}
|
|
5921
|
+
|
|
5922
|
+
.caret-current {
|
|
5923
|
+
caret-color: currentColor
|
|
5924
|
+
}
|
|
5925
|
+
|
|
5926
|
+
.opacity-25 {
|
|
5927
|
+
opacity: 25%
|
|
5928
|
+
}
|
|
5929
|
+
|
|
5930
|
+
.block {
|
|
5931
|
+
display: block
|
|
5932
|
+
}
|
|
5933
|
+
|
|
5934
|
+
.before\\:block:before {
|
|
5935
|
+
display: block
|
|
5936
|
+
}
|
|
5937
|
+
|
|
5938
|
+
.inline-block {
|
|
5939
|
+
display: inline-block
|
|
5940
|
+
}
|
|
5941
|
+
|
|
5942
|
+
.inline {
|
|
5943
|
+
display: inline
|
|
5944
|
+
}
|
|
5945
|
+
|
|
5946
|
+
.flex, .open\\:flex[open] {
|
|
5947
|
+
display: flex
|
|
5948
|
+
}
|
|
5949
|
+
|
|
5950
|
+
.inline-flex {
|
|
5951
|
+
display: inline-flex
|
|
5952
|
+
}
|
|
5953
|
+
|
|
5954
|
+
.grid {
|
|
5955
|
+
display: grid
|
|
5956
|
+
}
|
|
5957
|
+
|
|
5958
|
+
.inline-grid {
|
|
5959
|
+
display: inline-grid
|
|
5960
|
+
}
|
|
5961
|
+
|
|
5962
|
+
.hidden, .group\\/stepv:last-child .group-last\\/stepv\\:hidden {
|
|
5963
|
+
display: none
|
|
5964
|
+
}
|
|
5965
|
+
|
|
5966
|
+
.before\\:hidden:before {
|
|
5967
|
+
display: none
|
|
5968
|
+
}
|
|
5969
|
+
|
|
5970
|
+
.hover\\:underline:hover {
|
|
5971
|
+
text-decoration-line: underline
|
|
5972
|
+
}
|
|
5973
|
+
|
|
5974
|
+
.focus\\:underline:focus {
|
|
5975
|
+
text-decoration-line: underline
|
|
5976
|
+
}
|
|
5977
|
+
|
|
5978
|
+
.focus-visible\\:underline:focus-visible {
|
|
5979
|
+
text-decoration-line: underline
|
|
5980
|
+
}
|
|
5981
|
+
|
|
5982
|
+
.active\\:underline:active {
|
|
5983
|
+
text-decoration-line: underline
|
|
5984
|
+
}
|
|
5985
|
+
|
|
5986
|
+
.hover\\:no-underline:hover {
|
|
5987
|
+
text-decoration: none
|
|
5988
|
+
}
|
|
5989
|
+
|
|
5990
|
+
.focus\\:no-underline:focus {
|
|
5991
|
+
text-decoration: none
|
|
5992
|
+
}
|
|
5993
|
+
|
|
5994
|
+
.active\\:no-underline:active {
|
|
5995
|
+
text-decoration: none
|
|
5996
|
+
}
|
|
5997
|
+
|
|
5998
|
+
.flex-1 {
|
|
5999
|
+
flex: 1 1 0%
|
|
6000
|
+
}
|
|
6001
|
+
|
|
6002
|
+
.shrink {
|
|
6003
|
+
flex-shrink: 1
|
|
6004
|
+
}
|
|
6005
|
+
|
|
6006
|
+
.shrink-0 {
|
|
6007
|
+
flex-shrink: 0
|
|
6008
|
+
}
|
|
6009
|
+
|
|
6010
|
+
.shrink-0\\! {
|
|
6011
|
+
flex-shrink: 0 !important
|
|
6012
|
+
}
|
|
6013
|
+
|
|
6014
|
+
.grow, .grow-1 {
|
|
6015
|
+
flex-grow: 1
|
|
6016
|
+
}
|
|
6017
|
+
|
|
6018
|
+
.basis-auto {
|
|
6019
|
+
flex-basis: auto
|
|
6020
|
+
}
|
|
6021
|
+
|
|
6022
|
+
.flex-col {
|
|
6023
|
+
flex-direction: column
|
|
6024
|
+
}
|
|
6025
|
+
|
|
6026
|
+
.focus-within\\:focusable:focus-within {
|
|
6027
|
+
outline: 2px solid var(--w-s-color-border-focus);
|
|
6028
|
+
outline-offset: var(--w-outline-offset, 1px)
|
|
6029
|
+
}
|
|
6030
|
+
|
|
6031
|
+
.focusable:focus, .focusable:focus-visible {
|
|
6032
|
+
outline: 2px solid var(--w-s-color-border-focus);
|
|
6033
|
+
outline-offset: var(--w-outline-offset, 1px)
|
|
6034
|
+
}
|
|
6035
|
+
|
|
6036
|
+
.focusable:not(:focus-visible) {
|
|
6037
|
+
outline: none
|
|
6038
|
+
}
|
|
6039
|
+
|
|
6040
|
+
.peer:focus ~ .peer-focus\\:focusable, .peer:focus-visible ~ .peer-focus\\:focusable {
|
|
6041
|
+
outline: 2px solid var(--w-s-color-border-focus);
|
|
6042
|
+
outline-offset: var(--w-outline-offset, 1px)
|
|
6043
|
+
}
|
|
6044
|
+
|
|
6045
|
+
.peer:not(:focus-visible) ~ .peer-focus\\:focusable {
|
|
6046
|
+
outline: none
|
|
6047
|
+
}
|
|
6048
|
+
|
|
6049
|
+
.focusable-inset {
|
|
6050
|
+
--w-outline-offset: -3px
|
|
6051
|
+
}
|
|
6052
|
+
|
|
6053
|
+
.gap-12 {
|
|
6054
|
+
gap: 1.2rem
|
|
6055
|
+
}
|
|
6056
|
+
|
|
6057
|
+
.gap-8 {
|
|
6058
|
+
gap: .8rem
|
|
6059
|
+
}
|
|
6060
|
+
|
|
6061
|
+
.gap-x-16 {
|
|
6062
|
+
column-gap: 1.6rem
|
|
6063
|
+
}
|
|
6064
|
+
|
|
6065
|
+
.gap-y-16 {
|
|
6066
|
+
row-gap: 1.6rem
|
|
6067
|
+
}
|
|
6068
|
+
|
|
6069
|
+
.row-span-2 {
|
|
6070
|
+
grid-row: span 2/span 2
|
|
6071
|
+
}
|
|
6072
|
+
|
|
6073
|
+
.col-span-2 {
|
|
6074
|
+
grid-column: span 2/span 2
|
|
6075
|
+
}
|
|
6076
|
+
|
|
6077
|
+
.col-span-3 {
|
|
6078
|
+
grid-column: span 3/span 3
|
|
6079
|
+
}
|
|
6080
|
+
|
|
6081
|
+
.row-start-1 {
|
|
6082
|
+
grid-row-start: 1
|
|
6083
|
+
}
|
|
6084
|
+
|
|
6085
|
+
.row-start-2 {
|
|
6086
|
+
grid-row-start: 2
|
|
6087
|
+
}
|
|
6088
|
+
|
|
6089
|
+
.col-start-2 {
|
|
6090
|
+
grid-column-start: 2
|
|
6091
|
+
}
|
|
6092
|
+
|
|
6093
|
+
.auto-rows-auto {
|
|
6094
|
+
grid-auto-rows: auto
|
|
6095
|
+
}
|
|
6096
|
+
|
|
6097
|
+
.grid-flow-col {
|
|
6098
|
+
grid-auto-flow: column
|
|
6099
|
+
}
|
|
6100
|
+
|
|
6101
|
+
.grid-rows-\\[20px_auto\\] {
|
|
6102
|
+
grid-template-rows:20px auto
|
|
6103
|
+
}
|
|
6104
|
+
|
|
6105
|
+
.grid-rows-\\[auto_20px\\] {
|
|
6106
|
+
grid-template-rows:auto 20px
|
|
6107
|
+
}
|
|
6108
|
+
|
|
6109
|
+
.grid-cols-\\[1fr_20px_1fr\\] {
|
|
6110
|
+
grid-template-columns:1fr 20px 1fr
|
|
6111
|
+
}
|
|
6112
|
+
|
|
6113
|
+
.grid-cols-\\[1fr_20px\\] {
|
|
6114
|
+
grid-template-columns:1fr 20px
|
|
6115
|
+
}
|
|
6116
|
+
|
|
6117
|
+
.grid-cols-\\[20px_1fr\\] {
|
|
6118
|
+
grid-template-columns:20px 1fr
|
|
6119
|
+
}
|
|
6120
|
+
|
|
6121
|
+
.grid-cols-\\[auto_1fr_auto\\] {
|
|
6122
|
+
grid-template-columns:auto 1fr auto
|
|
6123
|
+
}
|
|
6124
|
+
|
|
6125
|
+
.grid-cols-1 {
|
|
6126
|
+
grid-template-columns:repeat(1, minmax(0, 1fr))
|
|
6127
|
+
}
|
|
6128
|
+
|
|
6129
|
+
.grid-cols-2 {
|
|
6130
|
+
grid-template-columns:repeat(2, minmax(0, 1fr))
|
|
6131
|
+
}
|
|
6132
|
+
|
|
6133
|
+
.grid-cols-3 {
|
|
6134
|
+
grid-template-columns:repeat(3, minmax(0, 1fr))
|
|
6135
|
+
}
|
|
6136
|
+
|
|
6137
|
+
.grid-cols-4 {
|
|
6138
|
+
grid-template-columns:repeat(4, minmax(0, 1fr))
|
|
6139
|
+
}
|
|
6140
|
+
|
|
6141
|
+
.grid-cols-5 {
|
|
6142
|
+
grid-template-columns:repeat(5, minmax(0, 1fr))
|
|
6143
|
+
}
|
|
6144
|
+
|
|
6145
|
+
.grid-cols-6 {
|
|
6146
|
+
grid-template-columns:repeat(6, minmax(0, 1fr))
|
|
6147
|
+
}
|
|
6148
|
+
|
|
6149
|
+
.grid-cols-7 {
|
|
6150
|
+
grid-template-columns:repeat(7, minmax(0, 1fr))
|
|
6151
|
+
}
|
|
6152
|
+
|
|
6153
|
+
.grid-cols-8 {
|
|
6154
|
+
grid-template-columns:repeat(8, minmax(0, 1fr))
|
|
6155
|
+
}
|
|
6156
|
+
|
|
6157
|
+
.grid-cols-9 {
|
|
6158
|
+
grid-template-columns:repeat(9, minmax(0, 1fr))
|
|
6159
|
+
}
|
|
6160
|
+
|
|
6161
|
+
.overflow-hidden {
|
|
6162
|
+
overflow: hidden
|
|
6163
|
+
}
|
|
6164
|
+
|
|
6165
|
+
.overflow-x-hidden {
|
|
6166
|
+
overflow-x: hidden
|
|
6167
|
+
}
|
|
6168
|
+
|
|
6169
|
+
.overflow-y-auto {
|
|
6170
|
+
overflow-y: auto
|
|
6171
|
+
}
|
|
6172
|
+
|
|
6173
|
+
.list-none {
|
|
6174
|
+
list-style-type: none
|
|
6175
|
+
}
|
|
6176
|
+
|
|
6177
|
+
.outline-\\[--w-s-color-border-negative\\]\\! {
|
|
6178
|
+
outline-color: var(--w-s-color-border-negative) !important
|
|
6179
|
+
}
|
|
6180
|
+
|
|
6181
|
+
.outline-none {
|
|
6182
|
+
outline: 2px solid transparent;
|
|
6183
|
+
outline-offset: 2px
|
|
6184
|
+
}
|
|
6185
|
+
|
|
6186
|
+
.focus\\:outline-none:focus {
|
|
6187
|
+
outline: 2px solid transparent;
|
|
6188
|
+
outline-offset: 2px
|
|
6189
|
+
}
|
|
6190
|
+
|
|
6191
|
+
.items-start {
|
|
6192
|
+
align-items: flex-start
|
|
6193
|
+
}
|
|
6194
|
+
|
|
6195
|
+
.items-end {
|
|
6196
|
+
align-items: flex-end
|
|
6197
|
+
}
|
|
6198
|
+
|
|
6199
|
+
.items-center {
|
|
6200
|
+
align-items: center
|
|
6201
|
+
}
|
|
6202
|
+
|
|
6203
|
+
.self-center {
|
|
6204
|
+
align-self: center
|
|
6205
|
+
}
|
|
6206
|
+
|
|
6207
|
+
.inset-0 {
|
|
6208
|
+
top: 0rem;
|
|
6209
|
+
right: 0rem;
|
|
6210
|
+
bottom: 0rem;
|
|
6211
|
+
left: 0rem
|
|
6212
|
+
}
|
|
6213
|
+
|
|
6214
|
+
.-bottom-0 {
|
|
6215
|
+
bottom: -0rem
|
|
6216
|
+
}
|
|
6217
|
+
|
|
6218
|
+
.bottom-0 {
|
|
6219
|
+
bottom: 0rem
|
|
6220
|
+
}
|
|
6221
|
+
|
|
6222
|
+
.bottom-10 {
|
|
6223
|
+
bottom: 1rem
|
|
6224
|
+
}
|
|
6225
|
+
|
|
6226
|
+
.bottom-16 {
|
|
6227
|
+
bottom: 1.6rem
|
|
6228
|
+
}
|
|
6229
|
+
|
|
6230
|
+
.left-0 {
|
|
6231
|
+
left: 0rem
|
|
6232
|
+
}
|
|
6233
|
+
|
|
6234
|
+
.left-4 {
|
|
6235
|
+
left: .4rem
|
|
6236
|
+
}
|
|
6237
|
+
|
|
6238
|
+
.right-0 {
|
|
6239
|
+
right: 0rem
|
|
6240
|
+
}
|
|
6241
|
+
|
|
6242
|
+
.right-8 {
|
|
6243
|
+
right: .8rem
|
|
6244
|
+
}
|
|
6245
|
+
|
|
6246
|
+
.top-\\[1\\.92rem\\] {
|
|
6247
|
+
top: 1.92rem
|
|
6248
|
+
}
|
|
6249
|
+
|
|
6250
|
+
.top-0 {
|
|
6251
|
+
top: 0rem
|
|
6252
|
+
}
|
|
6253
|
+
|
|
6254
|
+
.top-20 {
|
|
6255
|
+
top: 2rem
|
|
6256
|
+
}
|
|
6257
|
+
|
|
6258
|
+
.top-4 {
|
|
6259
|
+
top: .4rem
|
|
6260
|
+
}
|
|
6261
|
+
|
|
6262
|
+
.top-8 {
|
|
6263
|
+
top: .8rem
|
|
6264
|
+
}
|
|
6265
|
+
|
|
6266
|
+
.before\\:bottom-0:before {
|
|
6267
|
+
bottom: 0rem
|
|
6268
|
+
}
|
|
6269
|
+
|
|
6270
|
+
.before\\:left-0:before {
|
|
6271
|
+
left: 0rem
|
|
6272
|
+
}
|
|
6273
|
+
|
|
6274
|
+
.before\\:right-0:before {
|
|
6275
|
+
right: 0rem
|
|
6276
|
+
}
|
|
6277
|
+
|
|
6278
|
+
.before\\:top-2:before {
|
|
6279
|
+
top: .2rem
|
|
6280
|
+
}
|
|
6281
|
+
|
|
6282
|
+
.-bottom-\\[8px\\] {
|
|
6283
|
+
bottom: -8px
|
|
6284
|
+
}
|
|
6285
|
+
|
|
6286
|
+
.-left-\\[8px\\] {
|
|
6287
|
+
left: -8px
|
|
6288
|
+
}
|
|
6289
|
+
|
|
6290
|
+
.-right-\\[8px\\] {
|
|
6291
|
+
right: -8px
|
|
6292
|
+
}
|
|
6293
|
+
|
|
6294
|
+
.-top-\\[8px\\] {
|
|
6295
|
+
top: -8px
|
|
6296
|
+
}
|
|
6297
|
+
|
|
6298
|
+
.top-\\[19px\\] {
|
|
6299
|
+
top: 19px
|
|
6300
|
+
}
|
|
6301
|
+
|
|
6302
|
+
.top-\\[30\\%\\] {
|
|
6303
|
+
top: 30%
|
|
6304
|
+
}
|
|
6305
|
+
|
|
6306
|
+
.justify-end {
|
|
6307
|
+
justify-content: flex-end
|
|
6308
|
+
}
|
|
6309
|
+
|
|
6310
|
+
.justify-center {
|
|
6311
|
+
justify-content: center
|
|
6312
|
+
}
|
|
6313
|
+
|
|
6314
|
+
.justify-between {
|
|
6315
|
+
justify-content: space-between
|
|
6316
|
+
}
|
|
6317
|
+
|
|
6318
|
+
.justify-items-center {
|
|
6319
|
+
justify-items: center
|
|
6320
|
+
}
|
|
6321
|
+
|
|
6322
|
+
.justify-self-start {
|
|
6323
|
+
justify-self: start
|
|
6324
|
+
}
|
|
6325
|
+
|
|
6326
|
+
.justify-self-end {
|
|
6327
|
+
justify-self: end
|
|
6328
|
+
}
|
|
6329
|
+
|
|
6330
|
+
.justify-self-center {
|
|
6331
|
+
justify-self: center
|
|
6332
|
+
}
|
|
6333
|
+
|
|
6334
|
+
.absolute {
|
|
6335
|
+
position: absolute
|
|
6336
|
+
}
|
|
6337
|
+
|
|
6338
|
+
.fixed {
|
|
6339
|
+
position: fixed
|
|
6340
|
+
}
|
|
6341
|
+
|
|
6342
|
+
.relative {
|
|
6343
|
+
position: relative
|
|
6344
|
+
}
|
|
6345
|
+
|
|
6346
|
+
.open\\:fixed[open] {
|
|
6347
|
+
position: fixed
|
|
6348
|
+
}
|
|
6349
|
+
|
|
6350
|
+
.before\\:absolute:before {
|
|
6351
|
+
position: absolute
|
|
6352
|
+
}
|
|
6353
|
+
|
|
6354
|
+
.z-10, .peer:checked ~ .peer-checked\\:z-10 {
|
|
6355
|
+
z-index: 10
|
|
6356
|
+
}
|
|
6357
|
+
|
|
6358
|
+
.z-30 {
|
|
6359
|
+
z-index: 30
|
|
6360
|
+
}
|
|
6361
|
+
|
|
6362
|
+
.z-50 {
|
|
6363
|
+
z-index: 50
|
|
6364
|
+
}
|
|
6365
|
+
|
|
6366
|
+
.hover\\:z-30:hover {
|
|
6367
|
+
z-index: 30
|
|
6368
|
+
}
|
|
6369
|
+
|
|
6370
|
+
.\\!s-bg-selected {
|
|
6371
|
+
background-color: var(--w-s-color-background-selected) !important
|
|
6372
|
+
}
|
|
6373
|
+
|
|
6374
|
+
.s-bg {
|
|
6375
|
+
background-color: var(--w-s-color-background)
|
|
6376
|
+
}
|
|
6377
|
+
|
|
6378
|
+
.s-bg-disabled {
|
|
6379
|
+
background-color: var(--w-s-color-background-disabled)
|
|
6380
|
+
}
|
|
6381
|
+
|
|
6382
|
+
.s-bg-disabled-subtle {
|
|
6383
|
+
background-color: var(--w-s-color-background-disabled-subtle)
|
|
6384
|
+
}
|
|
6385
|
+
|
|
6386
|
+
.s-bg-info-subtle {
|
|
6387
|
+
background-color: var(--w-s-color-background-info-subtle)
|
|
6388
|
+
}
|
|
6389
|
+
|
|
6390
|
+
.s-bg-inverted {
|
|
6391
|
+
background-color: var(--w-s-color-background-inverted)
|
|
6392
|
+
}
|
|
6393
|
+
|
|
6394
|
+
.s-bg-negative {
|
|
6395
|
+
background-color: var(--w-s-color-background-negative)
|
|
6396
|
+
}
|
|
6397
|
+
|
|
6398
|
+
.s-bg-negative-subtle {
|
|
6399
|
+
background-color: var(--w-s-color-background-negative-subtle)
|
|
6400
|
+
}
|
|
6401
|
+
|
|
6402
|
+
.s-bg-positive-subtle {
|
|
6403
|
+
background-color: var(--w-s-color-background-positive-subtle)
|
|
6404
|
+
}
|
|
6405
|
+
|
|
6406
|
+
.s-bg-primary, .peer:checked ~ .peer-checked\\:s-bg-primary {
|
|
6407
|
+
background-color: var(--w-s-color-background-primary)
|
|
6408
|
+
}
|
|
6409
|
+
|
|
6410
|
+
.s-bg-selected {
|
|
6411
|
+
background-color: var(--w-s-color-background-selected)
|
|
6412
|
+
}
|
|
6413
|
+
|
|
6414
|
+
.s-bg-subtle {
|
|
6415
|
+
background-color: var(--w-s-color-background-subtle)
|
|
6416
|
+
}
|
|
6417
|
+
|
|
6418
|
+
.s-bg-warning-subtle {
|
|
6419
|
+
background-color: var(--w-s-color-background-warning-subtle)
|
|
6420
|
+
}
|
|
6421
|
+
|
|
6422
|
+
.peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-bg-negative-hover:before {
|
|
6423
|
+
background-color: var(--w-s-color-background-negative-hover)
|
|
6424
|
+
}
|
|
6425
|
+
|
|
6426
|
+
.peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-bg-primary-hover:before {
|
|
6427
|
+
background-color: var(--w-s-color-background-primary-hover)
|
|
6428
|
+
}
|
|
6429
|
+
|
|
6430
|
+
.peer:checked ~ .peer-checked\\:before\\:s-bg-disabled:before {
|
|
6431
|
+
background-color: var(--w-s-color-background-disabled)
|
|
6432
|
+
}
|
|
6433
|
+
|
|
6434
|
+
.peer:checked ~ .peer-checked\\:before\\:s-bg-negative:before {
|
|
6435
|
+
background-color: var(--w-s-color-background-negative)
|
|
6436
|
+
}
|
|
6437
|
+
|
|
6438
|
+
.peer:checked ~ .peer-checked\\:before\\:s-bg-primary:before {
|
|
6439
|
+
background-color: var(--w-s-color-background-primary)
|
|
6440
|
+
}
|
|
6441
|
+
|
|
6442
|
+
.peer:indeterminate ~ .peer-indeterminate\\:before\\:s-bg-disabled:before {
|
|
6443
|
+
background-color: var(--w-s-color-background-disabled)
|
|
6444
|
+
}
|
|
6445
|
+
|
|
6446
|
+
.peer:indeterminate ~ .peer-indeterminate\\:before\\:s-bg-negative:before {
|
|
6447
|
+
background-color: var(--w-s-color-background-negative)
|
|
6448
|
+
}
|
|
6449
|
+
|
|
6450
|
+
.peer:indeterminate ~ .peer-indeterminate\\:before\\:s-bg-primary:before {
|
|
6451
|
+
background-color: var(--w-s-color-background-primary)
|
|
6452
|
+
}
|
|
6453
|
+
|
|
6454
|
+
.peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-bg-negative-hover:hover:before {
|
|
6455
|
+
background-color: var(--w-s-color-background-negative-hover)
|
|
6456
|
+
}
|
|
6457
|
+
|
|
6458
|
+
.peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-bg-primary-hover:hover:before {
|
|
6459
|
+
background-color: var(--w-s-color-background-primary-hover)
|
|
6460
|
+
}
|
|
6461
|
+
|
|
6462
|
+
.\\!hover\\:s-bg-selected-hover:hover {
|
|
6463
|
+
background-color: var(--w-s-color-background-selected-hover) !important
|
|
6464
|
+
}
|
|
6465
|
+
|
|
6466
|
+
.group:hover .group-hover\\:s-bg-primary-hover {
|
|
6467
|
+
background-color: var(--w-s-color-background-primary-hover)
|
|
6468
|
+
}
|
|
6469
|
+
|
|
6470
|
+
.hover\\:before\\:s-bg-hover:hover:before {
|
|
6471
|
+
background-color: var(--w-s-color-background-hover)
|
|
6472
|
+
}
|
|
6473
|
+
|
|
6474
|
+
.hover\\:before\\:s-bg-negative-subtle-hover:hover:before {
|
|
6475
|
+
background-color: var(--w-s-color-background-negative-subtle-hover)
|
|
6476
|
+
}
|
|
6477
|
+
|
|
6478
|
+
.hover\\:s-bg-hover:hover {
|
|
6479
|
+
background-color: var(--w-s-color-background-hover)
|
|
6480
|
+
}
|
|
6481
|
+
|
|
6482
|
+
.hover\\:s-bg-negative-hover:hover {
|
|
6483
|
+
background-color: var(--w-s-color-background-negative-hover)
|
|
6484
|
+
}
|
|
6485
|
+
|
|
6486
|
+
.hover\\:s-bg-negative-subtle-hover:hover {
|
|
6487
|
+
background-color: var(--w-s-color-background-negative-subtle-hover)
|
|
6488
|
+
}
|
|
6489
|
+
|
|
6490
|
+
.hover\\:s-bg-primary-hover:hover {
|
|
6491
|
+
background-color: var(--w-s-color-background-primary-hover)
|
|
6492
|
+
}
|
|
6493
|
+
|
|
6494
|
+
.hover\\:s-bg-selected-hover:hover {
|
|
6495
|
+
background-color: var(--w-s-color-background-selected-hover)
|
|
6496
|
+
}
|
|
6497
|
+
|
|
6498
|
+
.peer:hover:not(:checked) ~ .peer-hover\\:peer-not-checked\\:s-bg-hover {
|
|
6499
|
+
background-color: var(--w-s-color-background-hover)
|
|
6500
|
+
}
|
|
6501
|
+
|
|
6502
|
+
.peer:hover ~ .peer-hover\\:before\\:s-bg-hover:before {
|
|
6503
|
+
background-color: var(--w-s-color-background-hover)
|
|
6504
|
+
}
|
|
6505
|
+
|
|
6506
|
+
.peer:hover ~ .peer-hover\\:before\\:s-bg-negative-subtle:before {
|
|
6507
|
+
background-color: var(--w-s-color-background-negative-subtle)
|
|
6508
|
+
}
|
|
6509
|
+
|
|
6510
|
+
.focus\\:s-bg-primary-hover:focus {
|
|
6511
|
+
background-color: var(--w-s-color-background-primary-hover)
|
|
6512
|
+
}
|
|
6513
|
+
|
|
6514
|
+
.\\!active\\:s-bg-selected-active:active {
|
|
6515
|
+
background-color: var(--w-s-color-background-selected-active) !important
|
|
6516
|
+
}
|
|
6517
|
+
|
|
6518
|
+
.active\\:s-bg-active:active {
|
|
6519
|
+
background-color: var(--w-s-color-background-active)
|
|
6520
|
+
}
|
|
6521
|
+
|
|
6522
|
+
.active\\:s-bg-negative-active:active {
|
|
6523
|
+
background-color: var(--w-s-color-background-negative-active)
|
|
6524
|
+
}
|
|
6525
|
+
|
|
6526
|
+
.active\\:s-bg-negative-subtle-active:active {
|
|
6527
|
+
background-color: var(--w-s-color-background-negative-subtle-active)
|
|
6528
|
+
}
|
|
6529
|
+
|
|
6530
|
+
.active\\:s-bg-primary-active:active {
|
|
6531
|
+
background-color: var(--w-s-color-background-primary-active)
|
|
6532
|
+
}
|
|
6533
|
+
|
|
6534
|
+
.active\\:s-bg-selected-active:active {
|
|
6535
|
+
background-color: var(--w-s-color-background-selected-active)
|
|
6536
|
+
}
|
|
6537
|
+
|
|
6538
|
+
.before\\:s-bg-disabled-subtle:before {
|
|
6539
|
+
background-color: var(--w-s-color-background-disabled-subtle)
|
|
6540
|
+
}
|
|
6541
|
+
|
|
6542
|
+
.before\\:s-bg:before {
|
|
6543
|
+
background-color: var(--w-s-color-background)
|
|
6544
|
+
}
|
|
6545
|
+
|
|
6546
|
+
.s-text {
|
|
6547
|
+
color: var(--w-s-color-text)
|
|
6548
|
+
}
|
|
6549
|
+
|
|
6550
|
+
.s-text-disabled {
|
|
6551
|
+
color: var(--w-s-color-text-disabled)
|
|
6552
|
+
}
|
|
6553
|
+
|
|
6554
|
+
.s-text-inverted, .peer:checked ~ .peer-checked\\:s-text-inverted {
|
|
6555
|
+
color: var(--w-s-color-text-inverted)
|
|
6556
|
+
}
|
|
6557
|
+
|
|
6558
|
+
.s-text-inverted-static {
|
|
6559
|
+
color: var(--w-s-color-text-inverted-static)
|
|
6560
|
+
}
|
|
6561
|
+
|
|
6562
|
+
.s-text-link {
|
|
6563
|
+
color: var(--w-s-color-text-link)
|
|
6564
|
+
}
|
|
6565
|
+
|
|
6566
|
+
.s-text-negative {
|
|
6567
|
+
color: var(--w-s-color-text-negative)
|
|
6568
|
+
}
|
|
6569
|
+
|
|
6570
|
+
.s-text-subtle {
|
|
6571
|
+
color: var(--w-s-color-text-subtle)
|
|
6572
|
+
}
|
|
6573
|
+
|
|
6574
|
+
.hover\\:s-text-link:hover {
|
|
6575
|
+
color: var(--w-s-color-text-link)
|
|
6576
|
+
}
|
|
6577
|
+
|
|
6578
|
+
.active\\:s-text:active {
|
|
6579
|
+
color: var(--w-s-color-text)
|
|
6580
|
+
}
|
|
6581
|
+
|
|
6582
|
+
.placeholder\\:s-text-placeholder::placeholder {
|
|
6583
|
+
color: var(--w-s-color-text-placeholder)
|
|
6584
|
+
}
|
|
6585
|
+
|
|
6586
|
+
.s-icon {
|
|
6587
|
+
color: var(--w-s-color-icon)
|
|
6588
|
+
}
|
|
6589
|
+
|
|
6590
|
+
.s-icon-info {
|
|
6591
|
+
color: var(--w-s-color-icon-info)
|
|
6592
|
+
}
|
|
6593
|
+
|
|
6594
|
+
.s-icon-inverted {
|
|
6595
|
+
color: var(--w-s-color-icon-inverted)
|
|
6596
|
+
}
|
|
6597
|
+
|
|
6598
|
+
.s-icon-negative {
|
|
6599
|
+
color: var(--w-s-color-icon-negative)
|
|
6600
|
+
}
|
|
6601
|
+
|
|
6602
|
+
.s-icon-positive {
|
|
6603
|
+
color: var(--w-s-color-icon-positive)
|
|
6604
|
+
}
|
|
6605
|
+
|
|
6606
|
+
.s-icon-warning {
|
|
6607
|
+
color: var(--w-s-color-icon-warning)
|
|
6608
|
+
}
|
|
6609
|
+
|
|
6610
|
+
.hover\\:s-icon-hover:hover {
|
|
6611
|
+
color: var(--w-s-color-icon-hover)
|
|
6612
|
+
}
|
|
6613
|
+
|
|
6614
|
+
.active\\:s-icon-active:active {
|
|
6615
|
+
color: var(--w-s-color-icon-active)
|
|
6616
|
+
}
|
|
6617
|
+
|
|
6618
|
+
.before\\:s-icon-inverted:before {
|
|
6619
|
+
color: var(--w-s-color-icon-inverted)
|
|
6620
|
+
}
|
|
6621
|
+
|
|
6622
|
+
.s-border {
|
|
6623
|
+
border-color: var(--w-s-color-border)
|
|
6624
|
+
}
|
|
6625
|
+
|
|
6626
|
+
.s-border-disabled {
|
|
6627
|
+
border-color: var(--w-s-color-border-disabled)
|
|
6628
|
+
}
|
|
6629
|
+
|
|
6630
|
+
.s-border-info-subtle {
|
|
6631
|
+
border-color: var(--w-s-color-border-info-subtle)
|
|
6632
|
+
}
|
|
6633
|
+
|
|
6634
|
+
.s-border-l-info {
|
|
6635
|
+
border-left-color: var(--w-s-color-border-info)
|
|
6636
|
+
}
|
|
6637
|
+
|
|
6638
|
+
.s-border-l-negative {
|
|
6639
|
+
border-left-color: var(--w-s-color-border-negative)
|
|
6640
|
+
}
|
|
6641
|
+
|
|
6642
|
+
.s-border-l-positive {
|
|
6643
|
+
border-left-color: var(--w-s-color-border-positive)
|
|
6644
|
+
}
|
|
6645
|
+
|
|
6646
|
+
.s-border-l-warning {
|
|
6647
|
+
border-left-color: var(--w-s-color-border-warning)
|
|
6648
|
+
}
|
|
6649
|
+
|
|
6650
|
+
.s-border-negative {
|
|
6651
|
+
border-color: var(--w-s-color-border-negative)
|
|
6652
|
+
}
|
|
6653
|
+
|
|
6654
|
+
.s-border-negative-subtle {
|
|
6655
|
+
border-color: var(--w-s-color-border-negative-subtle)
|
|
6656
|
+
}
|
|
6657
|
+
|
|
6658
|
+
.s-border-positive-subtle {
|
|
6659
|
+
border-color: var(--w-s-color-border-positive-subtle)
|
|
6660
|
+
}
|
|
6661
|
+
|
|
6662
|
+
.s-border-primary, .peer:checked ~ .peer-checked\\:s-border-primary {
|
|
6663
|
+
border-color: var(--w-s-color-border-primary)
|
|
6664
|
+
}
|
|
6665
|
+
|
|
6666
|
+
.s-border-selected {
|
|
6667
|
+
border-color: var(--w-s-color-border-selected)
|
|
6668
|
+
}
|
|
6669
|
+
|
|
6670
|
+
.s-border-warning-subtle {
|
|
6671
|
+
border-color: var(--w-s-color-border-warning-subtle)
|
|
6672
|
+
}
|
|
6673
|
+
|
|
6674
|
+
.peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-border-negative-hover:before {
|
|
6675
|
+
border-color: var(--w-s-color-border-negative-hover)
|
|
6676
|
+
}
|
|
6677
|
+
|
|
6678
|
+
.peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-border-primary-hover:before {
|
|
6679
|
+
border-color: var(--w-s-color-border-primary-hover)
|
|
6680
|
+
}
|
|
6681
|
+
|
|
6682
|
+
.peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-border-selected-hover:before {
|
|
6683
|
+
border-color: var(--w-s-color-border-selected-hover)
|
|
6684
|
+
}
|
|
6685
|
+
|
|
6686
|
+
.peer:checked ~ .peer-checked\\:before\\:s-border-disabled:before {
|
|
6687
|
+
border-color: var(--w-s-color-border-disabled)
|
|
6688
|
+
}
|
|
6689
|
+
|
|
6690
|
+
.peer:checked ~ .peer-checked\\:before\\:s-border-negative:before {
|
|
6691
|
+
border-color: var(--w-s-color-border-negative)
|
|
6692
|
+
}
|
|
6693
|
+
|
|
6694
|
+
.peer:checked ~ .peer-checked\\:before\\:s-border-primary:before {
|
|
6695
|
+
border-color: var(--w-s-color-border-primary)
|
|
6696
|
+
}
|
|
6697
|
+
|
|
6698
|
+
.peer:checked ~ .peer-checked\\:before\\:s-border-selected:before {
|
|
6699
|
+
border-color: var(--w-s-color-border-selected)
|
|
6700
|
+
}
|
|
6701
|
+
|
|
6702
|
+
.peer:indeterminate ~ .peer-indeterminate\\:before\\:s-border-disabled:before {
|
|
6703
|
+
border-color: var(--w-s-color-border-disabled)
|
|
6704
|
+
}
|
|
6705
|
+
|
|
6706
|
+
.peer:indeterminate ~ .peer-indeterminate\\:before\\:s-border-negative:before {
|
|
6707
|
+
border-color: var(--w-s-color-border-negative)
|
|
6708
|
+
}
|
|
6709
|
+
|
|
6710
|
+
.peer:indeterminate ~ .peer-indeterminate\\:before\\:s-border-primary:before {
|
|
6711
|
+
border-color: var(--w-s-color-border-primary)
|
|
6712
|
+
}
|
|
6713
|
+
|
|
6714
|
+
.peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-border-negative-hover:hover:before {
|
|
6715
|
+
border-color: var(--w-s-color-border-negative-hover)
|
|
6716
|
+
}
|
|
6717
|
+
|
|
6718
|
+
.peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-border-primary-hover:hover:before {
|
|
6719
|
+
border-color: var(--w-s-color-border-primary-hover)
|
|
6720
|
+
}
|
|
6721
|
+
|
|
6722
|
+
.group:hover .group-hover\\:s-border-selected-hover {
|
|
6723
|
+
border-color: var(--w-s-color-border-selected-hover)
|
|
6724
|
+
}
|
|
6725
|
+
|
|
6726
|
+
.hover\\:before\\:s-border-negative-hover:hover:before {
|
|
6727
|
+
border-color: var(--w-s-color-border-negative-hover)
|
|
6728
|
+
}
|
|
6729
|
+
|
|
6730
|
+
.hover\\:before\\:s-border-primary:hover:before {
|
|
6731
|
+
border-color: var(--w-s-color-border-primary)
|
|
6732
|
+
}
|
|
6733
|
+
|
|
6734
|
+
.hover\\:s-border-disabled:hover {
|
|
6735
|
+
border-color: var(--w-s-color-border-disabled)
|
|
6736
|
+
}
|
|
6737
|
+
|
|
6738
|
+
.hover\\:s-border-hover:hover {
|
|
6739
|
+
border-color: var(--w-s-color-border-hover)
|
|
6740
|
+
}
|
|
6741
|
+
|
|
6742
|
+
.hover\\:s-border-negative-hover:hover {
|
|
6743
|
+
border-color: var(--w-s-color-border-negative-hover)
|
|
6744
|
+
}
|
|
6745
|
+
|
|
6746
|
+
.hover\\:s-border-primary-hover:hover {
|
|
6747
|
+
border-color: var(--w-s-color-border-primary-hover)
|
|
6748
|
+
}
|
|
6749
|
+
|
|
6750
|
+
.hover\\:s-border-primary:hover {
|
|
6751
|
+
border-color: var(--w-s-color-border-primary)
|
|
6752
|
+
}
|
|
6753
|
+
|
|
6754
|
+
.hover\\:s-border-selected-hover:hover {
|
|
6755
|
+
border-color: var(--w-s-color-border-selected-hover)
|
|
6756
|
+
}
|
|
6757
|
+
|
|
6758
|
+
.peer:hover ~ .peer-hover\\:before\\:s-border-negative-hover:before {
|
|
6759
|
+
border-color: var(--w-s-color-border-negative-hover)
|
|
6760
|
+
}
|
|
6761
|
+
|
|
6762
|
+
.peer:hover ~ .peer-hover\\:before\\:s-border-primary:before {
|
|
6763
|
+
border-color: var(--w-s-color-border-primary)
|
|
6764
|
+
}
|
|
6765
|
+
|
|
6766
|
+
.focus\\:s-border-primary-hover:focus {
|
|
6767
|
+
border-color: var(--w-s-color-border-primary-hover)
|
|
6768
|
+
}
|
|
6769
|
+
|
|
6770
|
+
.active\\:s-border-active:active {
|
|
6771
|
+
border-color: var(--w-s-color-border-active)
|
|
6772
|
+
}
|
|
6773
|
+
|
|
6774
|
+
.active\\:s-border-disabled:active {
|
|
6775
|
+
border-color: var(--w-s-color-border-disabled)
|
|
6776
|
+
}
|
|
6777
|
+
|
|
6778
|
+
.active\\:s-border-primary-active:active {
|
|
6779
|
+
border-color: var(--w-s-color-border-primary-active)
|
|
6780
|
+
}
|
|
6781
|
+
|
|
6782
|
+
.active\\:s-border-selected-active:active {
|
|
6783
|
+
border-color: var(--w-s-color-border-selected-active)
|
|
6784
|
+
}
|
|
6785
|
+
|
|
6786
|
+
.active\\:s-border-selected:active {
|
|
6787
|
+
border-color: var(--w-s-color-border-selected)
|
|
6788
|
+
}
|
|
6789
|
+
|
|
6790
|
+
.group:active .group-active\\:s-border-active {
|
|
6791
|
+
border-color: var(--w-s-color-border-active)
|
|
6792
|
+
}
|
|
6793
|
+
|
|
6794
|
+
.group:active .group-active\\:s-border-selected-active {
|
|
6795
|
+
border-color: var(--w-s-color-border-selected-active)
|
|
6796
|
+
}
|
|
6797
|
+
|
|
6798
|
+
.before\\:s-border-disabled:before {
|
|
6799
|
+
border-color: var(--w-s-color-border-disabled)
|
|
6800
|
+
}
|
|
6801
|
+
|
|
6802
|
+
.before\\:s-border-negative:before {
|
|
6803
|
+
border-color: var(--w-s-color-border-negative)
|
|
6804
|
+
}
|
|
6805
|
+
|
|
6806
|
+
.s-surface-sunken {
|
|
6807
|
+
background-color: var(--w-s-color-surface-sunken)
|
|
6808
|
+
}
|
|
6809
|
+
|
|
6810
|
+
.s-surface-elevated-200 {
|
|
6811
|
+
background-color: var(--w-s-color-surface-elevated-200);
|
|
6812
|
+
box-shadow: var(--w-s-shadow-surface-elevated-200)
|
|
6813
|
+
}
|
|
6814
|
+
|
|
6815
|
+
.hover\\:s-surface-elevated-200-hover:hover {
|
|
6816
|
+
background-color: var(--w-s-color-surface-elevated-200-hover);
|
|
6817
|
+
box-shadow: var(--w-s-shadow-surface-elevated-200-hover)
|
|
6818
|
+
}
|
|
6819
|
+
|
|
6820
|
+
.active\\:s-surface-elevated-200-active:active {
|
|
6821
|
+
background-color: var(--w-s-color-surface-elevated-200-active);
|
|
6822
|
+
box-shadow: var(--w-s-shadow-surface-elevated-200-active)
|
|
6823
|
+
}
|
|
6824
|
+
|
|
6825
|
+
.drop-shadow-m {
|
|
6826
|
+
filter: drop-shadow(rgba(64, 64, 64, .24) 0 3px 8px) drop-shadow(rgba(64, 64, 64, .16) 0 3px 6px)
|
|
6827
|
+
}
|
|
6828
|
+
|
|
6829
|
+
.shadow-m {
|
|
6830
|
+
box-shadow: var(--w-shadow-m)
|
|
6831
|
+
}
|
|
6832
|
+
|
|
6833
|
+
.shadow-s {
|
|
6834
|
+
box-shadow: var(--w-shadow-s)
|
|
6835
|
+
}
|
|
6836
|
+
|
|
6837
|
+
.shadow-\\[--w-shadow-slider\\] {
|
|
6838
|
+
box-shadow: var(--w-shadow-slider)
|
|
6839
|
+
}
|
|
6840
|
+
|
|
6841
|
+
.hover\\:shadow-\\[--w-shadow-slider-handle-hover\\]:hover {
|
|
6842
|
+
box-shadow: var(--w-shadow-slider-handle-hover)
|
|
6843
|
+
}
|
|
6844
|
+
|
|
6845
|
+
.focus\\:shadow-\\[--w-shadow-slider-handle-hover\\]:focus {
|
|
6846
|
+
box-shadow: var(--w-shadow-slider-handle-hover)
|
|
6847
|
+
}
|
|
6848
|
+
|
|
6849
|
+
.active\\:shadow-\\[--w-shadow-slider-handle-active\\]:active {
|
|
6850
|
+
box-shadow: var(--w-shadow-slider-handle-active)
|
|
6851
|
+
}
|
|
6852
|
+
|
|
6853
|
+
.h-0 {
|
|
6854
|
+
height: 0rem
|
|
6855
|
+
}
|
|
6856
|
+
|
|
6857
|
+
.h-16 {
|
|
6858
|
+
height: 1.6rem
|
|
6859
|
+
}
|
|
6860
|
+
|
|
6861
|
+
.h-2 {
|
|
6862
|
+
height: .2rem
|
|
6863
|
+
}
|
|
6864
|
+
|
|
6865
|
+
.h-20 {
|
|
6866
|
+
height: 2rem
|
|
6867
|
+
}
|
|
6868
|
+
|
|
6869
|
+
.h-24 {
|
|
6870
|
+
height: 2.4rem
|
|
6871
|
+
}
|
|
6872
|
+
|
|
6873
|
+
.h-4 {
|
|
6874
|
+
height: .4rem
|
|
6875
|
+
}
|
|
6876
|
+
|
|
6877
|
+
.h-44 {
|
|
6878
|
+
height: 4.4rem
|
|
6879
|
+
}
|
|
6880
|
+
|
|
6881
|
+
.h-6 {
|
|
6882
|
+
height: .6rem
|
|
6883
|
+
}
|
|
6884
|
+
|
|
6885
|
+
.h-8 {
|
|
6886
|
+
height: .8rem
|
|
6887
|
+
}
|
|
6888
|
+
|
|
6889
|
+
.h-full {
|
|
6890
|
+
height: 100%
|
|
6891
|
+
}
|
|
6892
|
+
|
|
6893
|
+
.h-unset {
|
|
6894
|
+
height: unset
|
|
6895
|
+
}
|
|
6896
|
+
|
|
6897
|
+
.max-h-unset {
|
|
6898
|
+
max-height: unset
|
|
6899
|
+
}
|
|
6900
|
+
|
|
6901
|
+
.max-w-full {
|
|
6902
|
+
max-width: 100%
|
|
6903
|
+
}
|
|
6904
|
+
|
|
6905
|
+
.max-w-max {
|
|
6906
|
+
max-width: max-content
|
|
6907
|
+
}
|
|
6908
|
+
|
|
6909
|
+
.max-w-unset {
|
|
6910
|
+
max-width: unset
|
|
6911
|
+
}
|
|
6912
|
+
|
|
6913
|
+
.min-h-32 {
|
|
6914
|
+
min-height: 3.2rem
|
|
6915
|
+
}
|
|
6916
|
+
|
|
6917
|
+
.min-h-40 {
|
|
6918
|
+
min-height: 4rem
|
|
6919
|
+
}
|
|
6920
|
+
|
|
6921
|
+
.min-w-16 {
|
|
6922
|
+
min-width: 1.6rem
|
|
6923
|
+
}
|
|
6924
|
+
|
|
6925
|
+
.min-w-32 {
|
|
6926
|
+
min-width: 3.2rem
|
|
6927
|
+
}
|
|
6928
|
+
|
|
6929
|
+
.w-16 {
|
|
6930
|
+
width: 1.6rem
|
|
6931
|
+
}
|
|
6932
|
+
|
|
6933
|
+
.w-2 {
|
|
6934
|
+
width: .2rem
|
|
6935
|
+
}
|
|
6936
|
+
|
|
6937
|
+
.w-20 {
|
|
6938
|
+
width: 2rem
|
|
6939
|
+
}
|
|
6940
|
+
|
|
6941
|
+
.w-24 {
|
|
6942
|
+
width: 2.4rem
|
|
6943
|
+
}
|
|
6944
|
+
|
|
6945
|
+
.w-32 {
|
|
6946
|
+
width: 3.2rem
|
|
6947
|
+
}
|
|
6948
|
+
|
|
6949
|
+
.w-40 {
|
|
6950
|
+
width: 4rem
|
|
6951
|
+
}
|
|
6952
|
+
|
|
6953
|
+
.w-44 {
|
|
6954
|
+
width: 4.4rem
|
|
6955
|
+
}
|
|
6956
|
+
|
|
6957
|
+
.w-8 {
|
|
6958
|
+
width: .8rem
|
|
6959
|
+
}
|
|
6960
|
+
|
|
6961
|
+
.w-full {
|
|
6962
|
+
width: 100%
|
|
6963
|
+
}
|
|
6964
|
+
|
|
6965
|
+
.w-max {
|
|
6966
|
+
width: max-content
|
|
6967
|
+
}
|
|
6968
|
+
|
|
6969
|
+
.w-unset {
|
|
6970
|
+
width: unset
|
|
6971
|
+
}
|
|
6972
|
+
|
|
6973
|
+
.before\\:h-20:before {
|
|
6974
|
+
height: 2rem
|
|
6975
|
+
}
|
|
6976
|
+
|
|
6977
|
+
.before\\:h-full:before {
|
|
6978
|
+
height: 100%
|
|
6979
|
+
}
|
|
6980
|
+
|
|
6981
|
+
.before\\:w-20:before {
|
|
6982
|
+
width: 2rem
|
|
6983
|
+
}
|
|
6984
|
+
|
|
6985
|
+
.before\\:w-32:before {
|
|
6986
|
+
width: 3.2rem
|
|
6987
|
+
}
|
|
6988
|
+
|
|
6989
|
+
.h-\\[--w-modal-height\\] {
|
|
6990
|
+
height: var(--w-modal-height)
|
|
6991
|
+
}
|
|
6992
|
+
|
|
6993
|
+
.h-\\[14px\\] {
|
|
6994
|
+
height: 14px
|
|
6995
|
+
}
|
|
6996
|
+
|
|
6997
|
+
.h-\\[16px\\] {
|
|
6998
|
+
height: 16px
|
|
6999
|
+
}
|
|
7000
|
+
|
|
7001
|
+
.max-h-\\[--w-modal-max-height\\] {
|
|
7002
|
+
max-height: var(--w-modal-max-height)
|
|
7003
|
+
}
|
|
7004
|
+
|
|
7005
|
+
.min-h-\\[--w-modal-min-height\\] {
|
|
7006
|
+
min-height: var(--w-modal-min-height)
|
|
7007
|
+
}
|
|
7008
|
+
|
|
7009
|
+
.min-h-\\[32px\\] {
|
|
7010
|
+
min-height: 32px
|
|
7011
|
+
}
|
|
7012
|
+
|
|
7013
|
+
.min-h-\\[40px\\] {
|
|
7014
|
+
min-height: 40px
|
|
7015
|
+
}
|
|
7016
|
+
|
|
7017
|
+
.min-h-\\[42\\] {
|
|
7018
|
+
min-height: 4.2rem
|
|
7019
|
+
}
|
|
7020
|
+
|
|
7021
|
+
.min-h-\\[44px\\] {
|
|
7022
|
+
min-height: 44px
|
|
7023
|
+
}
|
|
7024
|
+
|
|
7025
|
+
.min-w-\\[32px\\] {
|
|
7026
|
+
min-width: 32px
|
|
7027
|
+
}
|
|
7028
|
+
|
|
7029
|
+
.min-w-\\[40px\\] {
|
|
7030
|
+
min-width: 40px
|
|
7031
|
+
}
|
|
7032
|
+
|
|
7033
|
+
.min-w-\\[44px\\] {
|
|
7034
|
+
min-width: 44px
|
|
7035
|
+
}
|
|
7036
|
+
|
|
7037
|
+
.w-\\[--w-modal-width\\] {
|
|
7038
|
+
width: var(--w-modal-width)
|
|
7039
|
+
}
|
|
7040
|
+
|
|
7041
|
+
.w-\\[14px\\] {
|
|
7042
|
+
width: 14px
|
|
7043
|
+
}
|
|
7044
|
+
|
|
7045
|
+
.w-\\[16px\\] {
|
|
7046
|
+
width: 16px
|
|
7047
|
+
}
|
|
7048
|
+
|
|
7049
|
+
.space-x-8 > :not([hidden]) ~ :not([hidden]) {
|
|
7050
|
+
--w-space-x-reverse: 0;
|
|
7051
|
+
margin-left: calc(.8rem * calc(1 - var(--w-space-x-reverse)));
|
|
7052
|
+
margin-right: calc(.8rem * var(--w-space-x-reverse))
|
|
7053
|
+
}
|
|
7054
|
+
|
|
7055
|
+
.space-y-16 > :not([hidden]) ~ :not([hidden]) {
|
|
7056
|
+
--w-space-y-reverse: 0;
|
|
7057
|
+
margin-top: calc(1.6rem * calc(1 - var(--w-space-y-reverse)));
|
|
7058
|
+
margin-bottom: calc(1.6rem * var(--w-space-y-reverse))
|
|
7059
|
+
}
|
|
7060
|
+
|
|
7061
|
+
.m-0 {
|
|
7062
|
+
margin: 0rem
|
|
7063
|
+
}
|
|
7064
|
+
|
|
7065
|
+
.m-auto {
|
|
7066
|
+
margin: auto
|
|
7067
|
+
}
|
|
7068
|
+
|
|
7069
|
+
.-mx-16 {
|
|
7070
|
+
margin-left: -1.6rem;
|
|
7071
|
+
margin-right: -1.6rem
|
|
7072
|
+
}
|
|
7073
|
+
|
|
7074
|
+
.mx-0 {
|
|
7075
|
+
margin-left: 0rem;
|
|
7076
|
+
margin-right: 0rem
|
|
7077
|
+
}
|
|
7078
|
+
|
|
7079
|
+
.mx-8 {
|
|
7080
|
+
margin-left: .8rem;
|
|
7081
|
+
margin-right: .8rem
|
|
7082
|
+
}
|
|
7083
|
+
|
|
7084
|
+
.mx-auto {
|
|
7085
|
+
margin-left: auto;
|
|
7086
|
+
margin-right: auto
|
|
7087
|
+
}
|
|
7088
|
+
|
|
7089
|
+
.-mb-1 {
|
|
7090
|
+
margin-bottom: -.1rem
|
|
7091
|
+
}
|
|
7092
|
+
|
|
7093
|
+
.-ml-8 {
|
|
7094
|
+
margin-left: -.8rem
|
|
7095
|
+
}
|
|
7096
|
+
|
|
7097
|
+
.-mr-1 {
|
|
7098
|
+
margin-right: -.1rem
|
|
7099
|
+
}
|
|
7100
|
+
|
|
7101
|
+
.-mr-8 {
|
|
7102
|
+
margin-right: -.8rem
|
|
7103
|
+
}
|
|
7104
|
+
|
|
7105
|
+
.-mt-2 {
|
|
7106
|
+
margin-top: -.2rem
|
|
7107
|
+
}
|
|
7108
|
+
|
|
7109
|
+
.-mt-4 {
|
|
7110
|
+
margin-top: -.4rem
|
|
7111
|
+
}
|
|
7112
|
+
|
|
7113
|
+
.last-child\\:mb-0 > :last-child, .mb-0 {
|
|
7114
|
+
margin-bottom: 0rem
|
|
7115
|
+
}
|
|
7116
|
+
|
|
7117
|
+
.mb-32 {
|
|
7118
|
+
margin-bottom: 3.2rem
|
|
7119
|
+
}
|
|
7120
|
+
|
|
7121
|
+
.ml-8 {
|
|
7122
|
+
margin-left: .8rem
|
|
7123
|
+
}
|
|
7124
|
+
|
|
7125
|
+
.ml-auto {
|
|
7126
|
+
margin-left: auto
|
|
7127
|
+
}
|
|
7128
|
+
|
|
7129
|
+
.mr-8 {
|
|
7130
|
+
margin-right: .8rem
|
|
7131
|
+
}
|
|
7132
|
+
|
|
7133
|
+
.mt-16 {
|
|
7134
|
+
margin-top: 1.6rem
|
|
7135
|
+
}
|
|
7136
|
+
|
|
7137
|
+
.mt-4 {
|
|
7138
|
+
margin-top: .4rem
|
|
7139
|
+
}
|
|
7140
|
+
|
|
7141
|
+
.group:not(:first-child) .group-not-first\\:-ml-2 {
|
|
7142
|
+
margin-left: -.2rem
|
|
7143
|
+
}
|
|
7144
|
+
|
|
7145
|
+
.last\\:mb-0:last-child {
|
|
7146
|
+
margin-bottom: 0rem
|
|
7147
|
+
}
|
|
7148
|
+
|
|
7149
|
+
.last\\:mr-0:last-child {
|
|
7150
|
+
margin-right: 0rem
|
|
7151
|
+
}
|
|
7152
|
+
|
|
7153
|
+
.m-\\[8px\\] {
|
|
7154
|
+
margin: 8px
|
|
7155
|
+
}
|
|
7156
|
+
|
|
7157
|
+
.p-0 {
|
|
7158
|
+
padding: 0rem
|
|
7159
|
+
}
|
|
7160
|
+
|
|
7161
|
+
.p-16 {
|
|
7162
|
+
padding: 1.6rem
|
|
7163
|
+
}
|
|
7164
|
+
|
|
7165
|
+
.p-4 {
|
|
7166
|
+
padding: .4rem
|
|
7167
|
+
}
|
|
7168
|
+
|
|
7169
|
+
.p-8 {
|
|
7170
|
+
padding: .8rem
|
|
7171
|
+
}
|
|
7172
|
+
|
|
7173
|
+
.px-0 {
|
|
7174
|
+
padding-left: 0rem;
|
|
7175
|
+
padding-right: 0rem
|
|
7176
|
+
}
|
|
7177
|
+
|
|
7178
|
+
.px-1 {
|
|
7179
|
+
padding-left: .1rem;
|
|
7180
|
+
padding-right: .1rem
|
|
7181
|
+
}
|
|
7182
|
+
|
|
7183
|
+
.px-12 {
|
|
7184
|
+
padding-left: 1.2rem;
|
|
7185
|
+
padding-right: 1.2rem
|
|
7186
|
+
}
|
|
7187
|
+
|
|
7188
|
+
.px-14 {
|
|
7189
|
+
padding-left: 1.4rem;
|
|
7190
|
+
padding-right: 1.4rem
|
|
7191
|
+
}
|
|
7192
|
+
|
|
7193
|
+
.px-16 {
|
|
7194
|
+
padding-left: 1.6rem;
|
|
7195
|
+
padding-right: 1.6rem
|
|
7196
|
+
}
|
|
7197
|
+
|
|
7198
|
+
.px-8 {
|
|
7199
|
+
padding-left: .8rem;
|
|
7200
|
+
padding-right: .8rem
|
|
7201
|
+
}
|
|
7202
|
+
|
|
7203
|
+
.py-0 {
|
|
7204
|
+
padding-top: 0rem;
|
|
7205
|
+
padding-bottom: 0rem
|
|
7206
|
+
}
|
|
7207
|
+
|
|
7208
|
+
.py-1 {
|
|
7209
|
+
padding-top: .1rem;
|
|
7210
|
+
padding-bottom: .1rem
|
|
7211
|
+
}
|
|
7212
|
+
|
|
7213
|
+
.py-10 {
|
|
7214
|
+
padding-top: 1rem;
|
|
7215
|
+
padding-bottom: 1rem
|
|
7216
|
+
}
|
|
7217
|
+
|
|
7218
|
+
.py-12 {
|
|
7219
|
+
padding-top: 1.2rem;
|
|
7220
|
+
padding-bottom: 1.2rem
|
|
7221
|
+
}
|
|
7222
|
+
|
|
7223
|
+
.py-2 {
|
|
7224
|
+
padding-top: .2rem;
|
|
7225
|
+
padding-bottom: .2rem
|
|
7226
|
+
}
|
|
7227
|
+
|
|
7228
|
+
.py-4 {
|
|
7229
|
+
padding-top: .4rem;
|
|
7230
|
+
padding-bottom: .4rem
|
|
7231
|
+
}
|
|
7232
|
+
|
|
7233
|
+
.py-6 {
|
|
7234
|
+
padding-top: .6rem;
|
|
7235
|
+
padding-bottom: .6rem
|
|
7236
|
+
}
|
|
7237
|
+
|
|
7238
|
+
.py-8 {
|
|
7239
|
+
padding-top: .8rem;
|
|
7240
|
+
padding-bottom: .8rem
|
|
7241
|
+
}
|
|
7242
|
+
|
|
7243
|
+
.pb-0 {
|
|
7244
|
+
padding-bottom: 0rem
|
|
7245
|
+
}
|
|
7246
|
+
|
|
7247
|
+
.pb-32 {
|
|
7248
|
+
padding-bottom: 3.2rem
|
|
7249
|
+
}
|
|
7250
|
+
|
|
7251
|
+
.pb-4 {
|
|
7252
|
+
padding-bottom: .4rem
|
|
7253
|
+
}
|
|
7254
|
+
|
|
7255
|
+
.pb-8 {
|
|
7256
|
+
padding-bottom: .8rem
|
|
7257
|
+
}
|
|
7258
|
+
|
|
7259
|
+
.pl-0 {
|
|
7260
|
+
padding-left: 0rem
|
|
7261
|
+
}
|
|
7262
|
+
|
|
7263
|
+
.pl-1 {
|
|
7264
|
+
padding-left: .1rem
|
|
7265
|
+
}
|
|
7266
|
+
|
|
7267
|
+
.pl-12 {
|
|
7268
|
+
padding-left: 1.2rem
|
|
7269
|
+
}
|
|
7270
|
+
|
|
7271
|
+
.pl-28 {
|
|
7272
|
+
padding-left: 2.8rem
|
|
7273
|
+
}
|
|
7274
|
+
|
|
7275
|
+
.pl-4 {
|
|
7276
|
+
padding-left: .4rem
|
|
7277
|
+
}
|
|
7278
|
+
|
|
7279
|
+
.pl-8 {
|
|
7280
|
+
padding-left: .8rem
|
|
7281
|
+
}
|
|
7282
|
+
|
|
7283
|
+
.pr-12 {
|
|
7284
|
+
padding-right: 1.2rem
|
|
7285
|
+
}
|
|
7286
|
+
|
|
7287
|
+
.pr-14 {
|
|
7288
|
+
padding-right: 1.4rem
|
|
7289
|
+
}
|
|
7290
|
+
|
|
7291
|
+
.pr-2 {
|
|
7292
|
+
padding-right: .2rem
|
|
7293
|
+
}
|
|
7294
|
+
|
|
7295
|
+
.pr-32 {
|
|
7296
|
+
padding-right: 3.2rem
|
|
7297
|
+
}
|
|
7298
|
+
|
|
7299
|
+
.pr-40 {
|
|
7300
|
+
padding-right: 4rem
|
|
7301
|
+
}
|
|
7302
|
+
|
|
7303
|
+
.pt-0 {
|
|
7304
|
+
padding-top: 0rem
|
|
7305
|
+
}
|
|
7306
|
+
|
|
7307
|
+
.pt-1 {
|
|
7308
|
+
padding-top: .1rem
|
|
7309
|
+
}
|
|
7310
|
+
|
|
7311
|
+
.pt-16 {
|
|
7312
|
+
padding-top: 1.6rem
|
|
7313
|
+
}
|
|
7314
|
+
|
|
7315
|
+
.pt-24 {
|
|
7316
|
+
padding-top: 2.4rem
|
|
7317
|
+
}
|
|
7318
|
+
|
|
7319
|
+
.pt-8 {
|
|
7320
|
+
padding-top: .8rem
|
|
7321
|
+
}
|
|
7322
|
+
|
|
7323
|
+
.group\\/step:last-child .group-last\\/step\\:last\\:pb-0:last-child {
|
|
7324
|
+
padding-bottom: 0rem
|
|
7325
|
+
}
|
|
7326
|
+
|
|
7327
|
+
.last\\:pb-1:last-child {
|
|
7328
|
+
padding-bottom: .1rem
|
|
7329
|
+
}
|
|
7330
|
+
|
|
7331
|
+
.last\\:pr-1:last-child {
|
|
7332
|
+
padding-right: .1rem
|
|
7333
|
+
}
|
|
7334
|
+
|
|
7335
|
+
.p-\\[8px\\] {
|
|
7336
|
+
padding: 8px
|
|
7337
|
+
}
|
|
7338
|
+
|
|
7339
|
+
.px-\\[15px\\] {
|
|
7340
|
+
padding-left: 15px;
|
|
7341
|
+
padding-right: 15px
|
|
7342
|
+
}
|
|
7343
|
+
|
|
7344
|
+
.px-\\[8px\\] {
|
|
7345
|
+
padding-left: 8px;
|
|
7346
|
+
padding-right: 8px
|
|
7347
|
+
}
|
|
7348
|
+
|
|
7349
|
+
.py-\\[11px\\] {
|
|
7350
|
+
padding-top: 11px;
|
|
7351
|
+
padding-bottom: 11px
|
|
7352
|
+
}
|
|
7353
|
+
|
|
7354
|
+
.py-\\[5px\\] {
|
|
7355
|
+
padding-top: 5px;
|
|
7356
|
+
padding-bottom: 5px
|
|
7357
|
+
}
|
|
7358
|
+
|
|
7359
|
+
.py-\\[7px\\] {
|
|
7360
|
+
padding-top: 7px;
|
|
7361
|
+
padding-bottom: 7px
|
|
7362
|
+
}
|
|
7363
|
+
|
|
7364
|
+
.pl-\\[var\\(--w-prefix-width\\,_40px\\)\\] {
|
|
7365
|
+
padding-left: var(--w-prefix-width, 40px)
|
|
7366
|
+
}
|
|
7367
|
+
|
|
7368
|
+
.invisible {
|
|
7369
|
+
visibility: hidden
|
|
7370
|
+
}
|
|
7371
|
+
|
|
7372
|
+
.backface-hidden {
|
|
7373
|
+
backface-visibility: hidden
|
|
7374
|
+
}
|
|
7375
|
+
|
|
7376
|
+
.break-words {
|
|
7377
|
+
overflow-wrap: break-word
|
|
7378
|
+
}
|
|
7379
|
+
|
|
7380
|
+
.before\\:content-\\[\\"–\\"\\]:before {
|
|
7381
|
+
content: "–"
|
|
7382
|
+
}
|
|
7383
|
+
|
|
7384
|
+
.before\\:content-\\[\\"\\"\\]:before {
|
|
7385
|
+
content: ""
|
|
7386
|
+
}
|
|
7387
|
+
|
|
7388
|
+
.cursor-default {
|
|
7389
|
+
cursor: default
|
|
7390
|
+
}
|
|
7391
|
+
|
|
7392
|
+
.cursor-pointer {
|
|
7393
|
+
cursor: pointer
|
|
7394
|
+
}
|
|
7395
|
+
|
|
7396
|
+
.antialiased {
|
|
7397
|
+
-webkit-font-smoothing: antialiased;
|
|
7398
|
+
-moz-osx-font-smoothing: grayscale;
|
|
7399
|
+
font-smoothing: grayscale
|
|
7400
|
+
}
|
|
7401
|
+
|
|
7402
|
+
.font-bold {
|
|
7403
|
+
font-weight: 700
|
|
7404
|
+
}
|
|
7405
|
+
|
|
7406
|
+
.before\\:font-bold:before {
|
|
7407
|
+
font-weight: 700
|
|
7408
|
+
}
|
|
7409
|
+
|
|
7410
|
+
.font-normal {
|
|
7411
|
+
font-weight: 400
|
|
7412
|
+
}
|
|
7413
|
+
|
|
7414
|
+
.pointer-events-auto {
|
|
7415
|
+
pointer-events: auto
|
|
7416
|
+
}
|
|
7417
|
+
|
|
7418
|
+
.pointer-events-none {
|
|
7419
|
+
pointer-events: none
|
|
7420
|
+
}
|
|
7421
|
+
|
|
7422
|
+
.before\\:pointer-events-none:before {
|
|
7423
|
+
pointer-events: none
|
|
7424
|
+
}
|
|
7425
|
+
|
|
7426
|
+
.pb-safe-\\[32\\] {
|
|
7427
|
+
padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px))
|
|
7428
|
+
}
|
|
7429
|
+
|
|
7430
|
+
.sr-only {
|
|
7431
|
+
position: absolute;
|
|
7432
|
+
width: 1px;
|
|
7433
|
+
height: 1px;
|
|
7434
|
+
padding: 0;
|
|
7435
|
+
margin: -1px;
|
|
7436
|
+
overflow: hidden;
|
|
7437
|
+
clip: rect(0, 0, 0, 0);
|
|
7438
|
+
white-space: nowrap;
|
|
7439
|
+
border-width: 0
|
|
7440
|
+
}
|
|
7441
|
+
|
|
7442
|
+
.touch-pan-y {
|
|
7443
|
+
touch-action: pan-y
|
|
7444
|
+
}
|
|
7445
|
+
|
|
7446
|
+
.select-none {
|
|
7447
|
+
-webkit-user-select: none;
|
|
7448
|
+
user-select: none
|
|
7449
|
+
}
|
|
7450
|
+
|
|
7451
|
+
.translate-x-20 {
|
|
7452
|
+
--w-translate-x: 2rem;
|
|
7453
|
+
transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
|
|
7454
|
+
}
|
|
7455
|
+
|
|
7456
|
+
.translate-z-0 {
|
|
7457
|
+
--w-translate-z: 0rem;
|
|
7458
|
+
transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
|
|
7459
|
+
}
|
|
7460
|
+
|
|
7461
|
+
.-rotate-180, .part-\\[w-icon-chevron-down-16-part\\]\\:-rotate-180::part(w-icon-chevron-down-16-part) {
|
|
7462
|
+
--w-rotate-x: 0;
|
|
7463
|
+
--w-rotate-y: 0;
|
|
7464
|
+
--w-rotate-z: 0;
|
|
7465
|
+
--w-rotate: -180deg;
|
|
7466
|
+
transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
|
|
7467
|
+
}
|
|
7468
|
+
|
|
7469
|
+
.part-\\[w-icon-chevron-up-16-part\\]\\:rotate-180::part(w-icon-chevron-up-16-part), .rotate-180 {
|
|
7470
|
+
--w-rotate-x: 0;
|
|
7471
|
+
--w-rotate-y: 0;
|
|
7472
|
+
--w-rotate-z: 0;
|
|
7473
|
+
--w-rotate: 180deg;
|
|
7474
|
+
transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
|
|
7475
|
+
}
|
|
7476
|
+
|
|
7477
|
+
.rotate-90 {
|
|
7478
|
+
--w-rotate-x: 0;
|
|
7479
|
+
--w-rotate-y: 0;
|
|
7480
|
+
--w-rotate-z: 0;
|
|
7481
|
+
--w-rotate: 90deg;
|
|
7482
|
+
transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
|
|
7483
|
+
}
|
|
7484
|
+
|
|
7485
|
+
.part-\\[w-icon-chevron-down-16-part\\]\\:transform::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:transform::part(w-icon-chevron-up-16-part), .transform {
|
|
7486
|
+
transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
|
|
7487
|
+
}
|
|
7488
|
+
|
|
7489
|
+
.part-\\[w-icon-chevron-down-16-part\\]\\:transform-gpu::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:transform-gpu::part(w-icon-chevron-up-16-part), .transform-gpu {
|
|
7490
|
+
transform: translate3d(var(--w-translate-x), var(--w-translate-y), var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
|
|
7491
|
+
}
|
|
7492
|
+
|
|
7493
|
+
.part-\\[w-icon-chevron-down-16-part\\]\\:transition-transform::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:transition-transform::part(w-icon-chevron-up-16-part), .transition-transform {
|
|
7494
|
+
transition-property: transform;
|
|
7495
|
+
transition-timing-function: cubic-bezier(.4, 0, .2, 1);
|
|
7496
|
+
transition-duration: .15s
|
|
7497
|
+
}
|
|
7498
|
+
|
|
7499
|
+
.transition-300 {
|
|
7500
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
7501
|
+
transition-timing-function: cubic-bezier(.4, 0, .2, 1);
|
|
7502
|
+
transition-duration: .3s
|
|
7503
|
+
}
|
|
7504
|
+
|
|
7505
|
+
.transition-all {
|
|
7506
|
+
transition-property: all;
|
|
7507
|
+
transition-timing-function: cubic-bezier(.4, 0, .2, 1);
|
|
7508
|
+
transition-duration: .15s
|
|
7509
|
+
}
|
|
7510
|
+
|
|
7511
|
+
.transition-colors {
|
|
7512
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
7513
|
+
transition-timing-function: cubic-bezier(.4, 0, .2, 1);
|
|
7514
|
+
transition-duration: .15s
|
|
7515
|
+
}
|
|
7516
|
+
|
|
7517
|
+
.transition-shadow {
|
|
7518
|
+
transition-property: box-shadow;
|
|
7519
|
+
transition-timing-function: cubic-bezier(.4, 0, .2, 1);
|
|
7520
|
+
transition-duration: .15s
|
|
7521
|
+
}
|
|
7522
|
+
|
|
7523
|
+
.before\\:transition-all:before {
|
|
7524
|
+
transition-property: all;
|
|
7525
|
+
transition-timing-function: cubic-bezier(.4, 0, .2, 1);
|
|
7526
|
+
transition-duration: .15s
|
|
7527
|
+
}
|
|
7528
|
+
|
|
7529
|
+
.duration-300 {
|
|
7530
|
+
transition-duration: .3s
|
|
7531
|
+
}
|
|
7532
|
+
|
|
7533
|
+
.ease-in-out, .part-\\[w-icon-chevron-down-16-part\\]\\:ease-in-out::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:ease-in-out::part(w-icon-chevron-up-16-part) {
|
|
7534
|
+
transition-timing-function: cubic-bezier(.4, 0, .2, 1)
|
|
7535
|
+
}
|
|
7536
|
+
|
|
7537
|
+
.text-m {
|
|
7538
|
+
font-size: var(--w-font-size-m);
|
|
7539
|
+
line-height: var(--w-line-height-m)
|
|
7540
|
+
}
|
|
7541
|
+
|
|
7542
|
+
.text-s {
|
|
7543
|
+
font-size: var(--w-font-size-s);
|
|
7544
|
+
line-height: var(--w-line-height-s)
|
|
7545
|
+
}
|
|
7546
|
+
|
|
7547
|
+
.text-xs {
|
|
7548
|
+
font-size: var(--w-font-size-xs);
|
|
7549
|
+
line-height: var(--w-line-height-xs)
|
|
7550
|
+
}
|
|
7551
|
+
|
|
7552
|
+
.leading-m {
|
|
7553
|
+
line-height: var(--w-line-height-m)
|
|
7554
|
+
}
|
|
7555
|
+
|
|
7556
|
+
.before\\:leading-xs:before {
|
|
7557
|
+
line-height: var(--w-line-height-xs)
|
|
7558
|
+
}
|
|
7559
|
+
|
|
7560
|
+
.leading-\\[24\\] {
|
|
7561
|
+
line-height: 2.4rem
|
|
7562
|
+
}
|
|
7563
|
+
|
|
7564
|
+
@media (max-width: 479.9px) {
|
|
7565
|
+
.lt-sm\\:rounded-b-0 {
|
|
7566
|
+
border-bottom-left-radius: 0;
|
|
7567
|
+
border-bottom-right-radius: 0
|
|
7568
|
+
}
|
|
7569
|
+
}
|
|
7570
|
+
@media (min-width: 480px) {
|
|
7571
|
+
.sm\\:border-b-0 {
|
|
7572
|
+
border-bottom-width: 0
|
|
7573
|
+
}
|
|
7574
|
+
|
|
7575
|
+
.sm\\:rounded-8 {
|
|
7576
|
+
border-radius: 8px
|
|
7577
|
+
}
|
|
7578
|
+
|
|
7579
|
+
.sm\\:rounded-b-8 {
|
|
7580
|
+
border-bottom-left-radius: 8px;
|
|
7581
|
+
border-bottom-right-radius: 8px
|
|
7582
|
+
}
|
|
7583
|
+
|
|
7584
|
+
.sm\\:gap-16 {
|
|
7585
|
+
gap: 1.6rem
|
|
7586
|
+
}
|
|
7587
|
+
|
|
7588
|
+
.sm\\:place-content-center {
|
|
7589
|
+
place-content: center
|
|
7590
|
+
}
|
|
7591
|
+
|
|
7592
|
+
.sm\\:place-items-center {
|
|
7593
|
+
place-items: center
|
|
7594
|
+
}
|
|
7595
|
+
|
|
7596
|
+
.sm\\:h-24 {
|
|
7597
|
+
height: 2.4rem
|
|
7598
|
+
}
|
|
7599
|
+
|
|
7600
|
+
.sm\\:min-h-48 {
|
|
7601
|
+
min-height: 4.8rem
|
|
7602
|
+
}
|
|
7603
|
+
|
|
7604
|
+
.sm\\:w-24 {
|
|
7605
|
+
width: 2.4rem
|
|
7606
|
+
}
|
|
7607
|
+
|
|
7608
|
+
.sm\\:min-h-\\[32px\\] {
|
|
7609
|
+
min-height: 32px
|
|
7610
|
+
}
|
|
7611
|
+
|
|
7612
|
+
.sm\\:min-h-\\[44px\\] {
|
|
7613
|
+
min-height: 44px
|
|
7614
|
+
}
|
|
7615
|
+
|
|
7616
|
+
.sm\\:min-h-\\[45\\] {
|
|
7617
|
+
min-height: 4.5rem
|
|
7618
|
+
}
|
|
7619
|
+
|
|
7620
|
+
.sm\\:min-w-\\[32px\\] {
|
|
7621
|
+
min-width: 32px
|
|
7622
|
+
}
|
|
7623
|
+
|
|
7624
|
+
.sm\\:min-w-\\[44px\\] {
|
|
7625
|
+
min-width: 44px
|
|
7626
|
+
}
|
|
7627
|
+
|
|
7628
|
+
.sm\\:mx-0 {
|
|
7629
|
+
margin-left: 0rem;
|
|
7630
|
+
margin-right: 0rem
|
|
7631
|
+
}
|
|
7632
|
+
|
|
7633
|
+
.sm\\:mx-16 {
|
|
7634
|
+
margin-left: 1.6rem;
|
|
7635
|
+
margin-right: 1.6rem
|
|
7636
|
+
}
|
|
7637
|
+
|
|
7638
|
+
.sm\\:-ml-12 {
|
|
7639
|
+
margin-left: -1.2rem
|
|
7640
|
+
}
|
|
7641
|
+
|
|
7642
|
+
.sm\\:-mr-12 {
|
|
7643
|
+
margin-right: -1.2rem
|
|
7644
|
+
}
|
|
7645
|
+
|
|
7646
|
+
.sm\\:-mt-8 {
|
|
7647
|
+
margin-top: -.8rem
|
|
7648
|
+
}
|
|
7649
|
+
|
|
7650
|
+
.sm\\:px-32 {
|
|
7651
|
+
padding-left: 3.2rem;
|
|
7652
|
+
padding-right: 3.2rem
|
|
7653
|
+
}
|
|
7654
|
+
|
|
7655
|
+
.sm\\:py-0 {
|
|
7656
|
+
padding-top: 0rem;
|
|
7657
|
+
padding-bottom: 0rem
|
|
7658
|
+
}
|
|
7659
|
+
|
|
7660
|
+
.sm\\:pb-32 {
|
|
7661
|
+
padding-bottom: 3.2rem
|
|
7662
|
+
}
|
|
7663
|
+
|
|
7664
|
+
.sm\\:pt-24 {
|
|
7665
|
+
padding-top: 2.4rem
|
|
7666
|
+
}
|
|
7667
|
+
|
|
7668
|
+
.sm\\:pt-32 {
|
|
7669
|
+
padding-top: 3.2rem
|
|
7670
|
+
}
|
|
7671
|
+
}
|
|
7672
|
+
@media (min-width: 768px) {
|
|
7673
|
+
.md\\:block {
|
|
7674
|
+
display: block
|
|
7675
|
+
}
|
|
7676
|
+
|
|
7677
|
+
.md\\:hidden {
|
|
7678
|
+
display: none
|
|
7679
|
+
}
|
|
7680
|
+
}
|
|
7681
|
+
`;
|
|
7682
|
+
|
|
7683
|
+
// packages/button/locales/da/messages.mjs
|
|
7684
|
+
var messages21 = JSON.parse('{"button.aria.loading":["Indl\xE6ser..."]}');
|
|
7685
|
+
|
|
7686
|
+
// packages/button/locales/en/messages.mjs
|
|
7687
|
+
var messages27 = JSON.parse('{"button.aria.loading":["Loading..."]}');
|
|
7688
|
+
|
|
7689
|
+
// packages/button/locales/fi/messages.mjs
|
|
7690
|
+
var messages28 = JSON.parse('{"button.aria.loading":["Ladataan..."]}');
|
|
7691
|
+
|
|
7692
|
+
// packages/button/locales/nb/messages.mjs
|
|
7693
|
+
var messages29 = JSON.parse('{"button.aria.loading":["Laster..."]}');
|
|
7694
|
+
|
|
7695
|
+
// packages/button/locales/sv/messages.mjs
|
|
7696
|
+
var messages30 = JSON.parse('{"button.aria.loading":["Laddar ..."]}');
|
|
7697
|
+
|
|
7698
|
+
// packages/button/index.ts
|
|
7699
|
+
var buttonVariants2 = [
|
|
7700
|
+
"primary",
|
|
7701
|
+
"secondary",
|
|
7702
|
+
"negative",
|
|
7703
|
+
"utility",
|
|
7704
|
+
"pill",
|
|
7705
|
+
"link"
|
|
7706
|
+
];
|
|
7707
|
+
var WarpButton = class extends FormControlMixin(kebabCaseAttributes(LitElement7)) {
|
|
7708
|
+
constructor() {
|
|
7709
|
+
super();
|
|
7710
|
+
this.type = "button";
|
|
7711
|
+
activateI18n7(messages27, messages29, messages28, messages21, messages30);
|
|
7712
|
+
this.variant = "secondary";
|
|
7713
|
+
this.ariaValueTextLoading = i18n._({
|
|
7714
|
+
id: "button.aria.loading",
|
|
7715
|
+
message: "Loading...",
|
|
7716
|
+
comment: "Screen reader message for buttons that are loading"
|
|
7717
|
+
});
|
|
7718
|
+
}
|
|
7719
|
+
updated(changedProperties) {
|
|
7720
|
+
if (changedProperties.has("value")) {
|
|
7721
|
+
this.setValue(this.value);
|
|
7722
|
+
}
|
|
7723
|
+
}
|
|
7724
|
+
connectedCallback() {
|
|
7725
|
+
super.connectedCallback();
|
|
7726
|
+
if (!buttonVariants2.includes(this.variant)) {
|
|
7727
|
+
throw new Error(
|
|
7728
|
+
`Invalid "variant" attribute. Set its value to one of the following:
|
|
7729
|
+
${buttonVariants2.join(", ")}.`
|
|
7730
|
+
);
|
|
7731
|
+
}
|
|
7732
|
+
}
|
|
7733
|
+
firstUpdated() {
|
|
7734
|
+
if (this.autofocus) {
|
|
7735
|
+
setTimeout(() => this.focus(), 0);
|
|
7736
|
+
}
|
|
7737
|
+
}
|
|
7738
|
+
get _primaryClasses() {
|
|
7739
|
+
return [
|
|
7740
|
+
!this.small && !this.quiet && !this.loading && button.primary,
|
|
7741
|
+
this.small && !this.quiet && !this.loading && button.primarySmall,
|
|
7742
|
+
this.small && this.quiet && !this.loading && button.primarySmallQuiet,
|
|
7743
|
+
this.small && this.loading && (this.quiet ? button.primarySmallQuietLoading : button.primarySmallLoading),
|
|
7744
|
+
!this.small && this.quiet && !this.loading && button.primaryQuiet,
|
|
7745
|
+
!this.small && this.loading && (this.quiet ? button.primaryQuietLoading : button.primaryLoading)
|
|
7746
|
+
];
|
|
7747
|
+
}
|
|
7748
|
+
get _secondaryClasses() {
|
|
7749
|
+
return [
|
|
7750
|
+
!this.small && !this.quiet && !this.loading && button.secondary,
|
|
7751
|
+
this.small && !this.quiet && !this.loading && button.secondarySmall,
|
|
7752
|
+
this.small && this.loading && (this.quiet ? button.secondarySmallQuietLoading : button.secondarySmallLoading),
|
|
7753
|
+
this.small && this.quiet && !this.loading && button.secondarySmallQuiet,
|
|
7754
|
+
!this.small && this.quiet && !this.loading && button.secondaryQuiet,
|
|
7755
|
+
!this.small && this.loading && (this.quiet ? button.secondaryQuietLoading : button.secondaryLoading)
|
|
7756
|
+
];
|
|
7757
|
+
}
|
|
7758
|
+
get _utilityClasses() {
|
|
7759
|
+
return [
|
|
7760
|
+
!this.small && !this.quiet && !this.loading && button.utility,
|
|
7761
|
+
this.small && !this.quiet && !this.loading && button.utilitySmall,
|
|
7762
|
+
this.small && this.quiet && !this.loading && button.utilitySmallQuiet,
|
|
7763
|
+
this.small && this.loading && (this.quiet ? button.utilitySmallQuietLoading : button.utilitySmallLoading),
|
|
7764
|
+
!this.small && this.quiet && !this.loading && button.utilityQuiet,
|
|
7765
|
+
!this.small && this.loading && (this.quiet ? button.utilityQuietLoading : button.utilityLoading)
|
|
7766
|
+
];
|
|
7767
|
+
}
|
|
7768
|
+
get _negativeClasses() {
|
|
7769
|
+
return [
|
|
7770
|
+
!this.small && !this.quiet && !this.loading && button.negative,
|
|
7771
|
+
this.small && !this.quiet && !this.loading && button.negativeSmall,
|
|
7772
|
+
this.small && this.quiet && !this.loading && button.negativeSmallQuiet,
|
|
7773
|
+
this.small && this.loading && (this.quiet ? button.negativeSmallQuietLoading : button.negativeSmallLoading),
|
|
7774
|
+
!this.small && this.quiet && !this.loading && button.negativeQuiet,
|
|
7775
|
+
!this.small && this.loading && (this.quiet ? button.negativeQuietLoading : button.negativeLoading)
|
|
7776
|
+
];
|
|
7777
|
+
}
|
|
7778
|
+
get _pillClasses() {
|
|
7779
|
+
return [
|
|
7780
|
+
!this.loading && (this.small ? button.pillSmall : button.pill),
|
|
7781
|
+
this.loading && (this.small ? button.pillSmallLoading : button.pillLoading)
|
|
7782
|
+
];
|
|
7783
|
+
}
|
|
7784
|
+
get _linkClasses() {
|
|
7785
|
+
return [this.small ? button.linkSmall : button.link];
|
|
7786
|
+
}
|
|
7787
|
+
get _classes() {
|
|
7788
|
+
return r(this.buttonClass, [
|
|
7789
|
+
this.variant === "primary" && this._primaryClasses,
|
|
7790
|
+
this.variant === "secondary" && this._secondaryClasses,
|
|
7791
|
+
this.variant === "utility" && this._utilityClasses,
|
|
7792
|
+
this.variant === "negative" && this._negativeClasses,
|
|
7793
|
+
this.variant === "pill" && this._pillClasses,
|
|
7794
|
+
this.variant === "link" && this._linkClasses,
|
|
7795
|
+
this.href && button.linkAsButton,
|
|
7796
|
+
this.fullWidth ? button.fullWidth : button.contentWidth
|
|
7797
|
+
]);
|
|
7798
|
+
}
|
|
7799
|
+
_handleButtonClick() {
|
|
7800
|
+
if (this.type === "submit") this.internals.form.requestSubmit();
|
|
7801
|
+
else if (this.type === "reset") this.internals.form.reset();
|
|
7802
|
+
}
|
|
7803
|
+
render() {
|
|
7804
|
+
return html13` ${this.href ? html13`<a
|
|
7805
|
+
href=${this.href}
|
|
7806
|
+
target=${this.target}
|
|
7807
|
+
rel=${this.target === "_blank" ? this.rel || "noopener" : void 0}
|
|
7808
|
+
class=${this._classes}
|
|
7809
|
+
>
|
|
7810
|
+
<slot></slot>
|
|
7811
|
+
</a>` : html13`<button
|
|
7812
|
+
type=${this.type || "button"}
|
|
7813
|
+
class=${this._classes}
|
|
7814
|
+
@click="${this._handleButtonClick}"
|
|
7815
|
+
>
|
|
7816
|
+
<slot></slot>
|
|
7817
|
+
</button>`}
|
|
7818
|
+
${this.loading ? html13`<span
|
|
7819
|
+
class="sr-only"
|
|
7820
|
+
role="progressbar"
|
|
7821
|
+
aria-valuenow="{0}"
|
|
7822
|
+
aria-valuetext=${this.ariaValueTextLoading}
|
|
7823
|
+
></span>` : null}`;
|
|
7824
|
+
}
|
|
7825
|
+
};
|
|
7826
|
+
WarpButton.shadowRootOptions = __spreadProps(__spreadValues({}, WarpElement7.shadowRootOptions), {
|
|
7827
|
+
delegatesFocus: true
|
|
7828
|
+
});
|
|
7829
|
+
WarpButton.styles = [reset, components];
|
|
7830
|
+
__decorateClass([
|
|
7831
|
+
property({ reflect: true })
|
|
7832
|
+
], WarpButton.prototype, "type", 2);
|
|
7833
|
+
__decorateClass([
|
|
7834
|
+
property({ type: Boolean, reflect: true })
|
|
7835
|
+
], WarpButton.prototype, "autofocus", 2);
|
|
7836
|
+
__decorateClass([
|
|
7837
|
+
property({ reflect: true })
|
|
7838
|
+
], WarpButton.prototype, "variant", 2);
|
|
7839
|
+
__decorateClass([
|
|
7840
|
+
property({ type: Boolean, reflect: true })
|
|
7841
|
+
], WarpButton.prototype, "quiet", 2);
|
|
7842
|
+
__decorateClass([
|
|
7843
|
+
property({ type: Boolean, reflect: true })
|
|
7844
|
+
], WarpButton.prototype, "small", 2);
|
|
7845
|
+
__decorateClass([
|
|
7846
|
+
property({ type: Boolean, reflect: true })
|
|
7847
|
+
], WarpButton.prototype, "loading", 2);
|
|
7848
|
+
__decorateClass([
|
|
7849
|
+
property({ reflect: true })
|
|
7850
|
+
], WarpButton.prototype, "href", 2);
|
|
7851
|
+
__decorateClass([
|
|
7852
|
+
property({ reflect: true })
|
|
7853
|
+
], WarpButton.prototype, "target", 2);
|
|
7854
|
+
__decorateClass([
|
|
7855
|
+
property({ reflect: true })
|
|
7856
|
+
], WarpButton.prototype, "rel", 2);
|
|
7857
|
+
__decorateClass([
|
|
7858
|
+
property({ type: Boolean, reflect: true })
|
|
7859
|
+
], WarpButton.prototype, "fullWidth", 2);
|
|
7860
|
+
__decorateClass([
|
|
7861
|
+
property({ reflect: true })
|
|
7862
|
+
], WarpButton.prototype, "buttonClass", 2);
|
|
7863
|
+
__decorateClass([
|
|
7864
|
+
property({ reflect: true })
|
|
7865
|
+
], WarpButton.prototype, "name", 2);
|
|
7866
|
+
__decorateClass([
|
|
7867
|
+
property({ reflect: true })
|
|
7868
|
+
], WarpButton.prototype, "value", 2);
|
|
7869
|
+
if (!customElements.get("w-button")) {
|
|
7870
|
+
customElements.define("w-button", WarpButton);
|
|
7871
|
+
}
|
|
7872
|
+
|
|
7873
|
+
// packages/card/index.js
|
|
7874
|
+
import { html as html14, css as css5 } from "lit";
|
|
7875
|
+
import WarpElement8 from "@warp-ds/elements-core";
|
|
7876
|
+
import { ifDefined as ifDefined3 } from "lit/directives/if-defined.js";
|
|
7877
|
+
|
|
7878
|
+
// packages/card/locales/da/messages.mjs
|
|
7879
|
+
var messages31 = JSON.parse('{"card.button.text":["V\xE6lg"]}');
|
|
7880
|
+
|
|
7881
|
+
// packages/card/locales/en/messages.mjs
|
|
7882
|
+
var messages37 = JSON.parse('{"card.button.text":["Select"]}');
|
|
7883
|
+
|
|
7884
|
+
// packages/card/locales/fi/messages.mjs
|
|
7885
|
+
var messages38 = JSON.parse('{"card.button.text":["Valitse"]}');
|
|
7886
|
+
|
|
7887
|
+
// packages/card/locales/nb/messages.mjs
|
|
7888
|
+
var messages39 = JSON.parse('{"card.button.text":["Velg"]}');
|
|
7889
|
+
|
|
7890
|
+
// packages/card/locales/sv/messages.mjs
|
|
7891
|
+
var messages40 = JSON.parse('{"card.button.text":["V\xE4lj"]}');
|
|
7892
|
+
|
|
7893
|
+
// packages/card/index.js
|
|
7894
|
+
var keys = {
|
|
7895
|
+
ENTER: "Enter",
|
|
7896
|
+
SPACE: " "
|
|
7897
|
+
};
|
|
7898
|
+
var WarpCard = class extends WarpElement8 {
|
|
7899
|
+
constructor() {
|
|
7900
|
+
super();
|
|
7901
|
+
activateI18n7(messages37, messages39, messages38, messages31, messages40);
|
|
7902
|
+
this.selected = false;
|
|
7903
|
+
this.flat = false;
|
|
7904
|
+
this.clickable = false;
|
|
7905
|
+
this.buttonText = i18n._({
|
|
7906
|
+
id: "card.button.text",
|
|
7907
|
+
message: "Select",
|
|
7908
|
+
comment: "Screenreader message to indicate that the card is clickable"
|
|
7909
|
+
});
|
|
7910
|
+
}
|
|
7911
|
+
get _containerClasses() {
|
|
7912
|
+
return r([
|
|
7913
|
+
card.base,
|
|
7914
|
+
this.flat ? card.flat : card.shadow,
|
|
7915
|
+
this.selected && !this.flat && card.selected,
|
|
7916
|
+
this.selected && this.flat ? card.flatSelected : card.flatUnselected
|
|
7917
|
+
]);
|
|
7918
|
+
}
|
|
7919
|
+
get _outlineClasses() {
|
|
7920
|
+
return r([card.outline, this.selected ? card.outlineSelected : card.outlineUnselected]);
|
|
7921
|
+
}
|
|
7922
|
+
get _interactiveElement() {
|
|
7923
|
+
const renderButton = () => html14`<button class="${card.a11y}" aria-pressed="${this.selected}" tabindex="-1">${this.buttonText}</button>`;
|
|
7924
|
+
const renderSpan = () => html14`<span role="checkbox" aria-checked="true" aria-disabled="true"></span>`;
|
|
7925
|
+
return this.clickable ? renderButton() : this.selected ? renderSpan() : "";
|
|
7926
|
+
}
|
|
7927
|
+
keypressed(e) {
|
|
7928
|
+
if (!this.clickable || e.altKey || e.ctrlKey) return;
|
|
7929
|
+
if (e.key === keys.ENTER || e.key === keys.SPACE) {
|
|
7930
|
+
e.preventDefault();
|
|
7931
|
+
this.click();
|
|
7932
|
+
}
|
|
7933
|
+
}
|
|
7934
|
+
render() {
|
|
7935
|
+
return html14`
|
|
7936
|
+
<div tabindex=${ifDefined3(this.clickable ? "0" : void 0)} class="${this._containerClasses}" @keydown=${this.keypressed}>
|
|
7937
|
+
${this._interactiveElement} ${this.flat ? "" : html14`<div class="${this._outlineClasses}"></div>`}
|
|
7938
|
+
<slot></slot>
|
|
7939
|
+
</div>
|
|
7940
|
+
`;
|
|
7941
|
+
}
|
|
7942
|
+
};
|
|
7943
|
+
__publicField(WarpCard, "properties", {
|
|
7944
|
+
selected: { type: Boolean, reflect: true },
|
|
7945
|
+
flat: { type: Boolean },
|
|
7946
|
+
clickable: { type: Boolean }
|
|
7947
|
+
});
|
|
7948
|
+
__publicField(WarpCard, "styles", [
|
|
7949
|
+
WarpElement8.styles,
|
|
7950
|
+
css5`
|
|
7951
|
+
a::after {
|
|
7952
|
+
content: '';
|
|
7953
|
+
position: absolute;
|
|
7954
|
+
top: 0;
|
|
7955
|
+
right: 0;
|
|
7956
|
+
bottom: 0;
|
|
5179
7957
|
left: 0;
|
|
5180
7958
|
}
|
|
5181
7959
|
:host {
|
|
@@ -5188,12 +7966,12 @@ if (!customElements.get("w-card")) {
|
|
|
5188
7966
|
}
|
|
5189
7967
|
|
|
5190
7968
|
// packages/expandable/index.js
|
|
5191
|
-
import { css as
|
|
7969
|
+
import { css as css6, html as html17 } from "lit";
|
|
5192
7970
|
import WarpElement9 from "@warp-ds/elements-core";
|
|
5193
7971
|
import { ifDefined as ifDefined4 } from "lit/directives/if-defined.js";
|
|
5194
7972
|
|
|
5195
|
-
// node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-
|
|
5196
|
-
import { LitElement as
|
|
7973
|
+
// node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-p_f73b1d3c5bd9121d6f30248535f1f172/node_modules/@warp-ds/icons/dist/elements/chevron-down-16.js
|
|
7974
|
+
import { LitElement as LitElement8 } from "lit";
|
|
5197
7975
|
import { unsafeStatic as unsafeStatic7, html as html15 } from "lit/static-html.js";
|
|
5198
7976
|
var messages41 = JSON.parse('{"icon.title.chevron-down":["Nedoverpil"]}');
|
|
5199
7977
|
var messages210 = JSON.parse('{"icon.title.chevron-down":["Downward arrow"]}');
|
|
@@ -5276,7 +8054,7 @@ var activateI18n8 = (enMessages, nbMessages, fiMessages, daMessages, svMessages)
|
|
|
5276
8054
|
i18n.activate(locale);
|
|
5277
8055
|
};
|
|
5278
8056
|
activateI18n8(messages210, messages41, messages310, messages47, messages57);
|
|
5279
|
-
var IconChevronDown16 = class extends
|
|
8057
|
+
var IconChevronDown16 = class extends LitElement8 {
|
|
5280
8058
|
render() {
|
|
5281
8059
|
const title = i18n.t({ message: `Downward arrow`, id: "icon.title.chevron-down", comment: "Title for chevron-down icon" });
|
|
5282
8060
|
return html15`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-chevron-down-16-part">${unsafeStatic7(`<title>${title}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m2.667 5.333 5.5 5.5 5.5-5.5"></path></svg>`;
|
|
@@ -5286,8 +8064,8 @@ if (!customElements.get("w-icon-chevron-down-16")) {
|
|
|
5286
8064
|
customElements.define("w-icon-chevron-down-16", IconChevronDown16);
|
|
5287
8065
|
}
|
|
5288
8066
|
|
|
5289
|
-
// node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-
|
|
5290
|
-
import { LitElement as
|
|
8067
|
+
// node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-p_f73b1d3c5bd9121d6f30248535f1f172/node_modules/@warp-ds/icons/dist/elements/chevron-up-16.js
|
|
8068
|
+
import { LitElement as LitElement9 } from "lit";
|
|
5291
8069
|
import { unsafeStatic as unsafeStatic8, html as html16 } from "lit/static-html.js";
|
|
5292
8070
|
var messages48 = JSON.parse('{"icon.title.chevron-up":["Oppoverpil"]}');
|
|
5293
8071
|
var messages211 = JSON.parse('{"icon.title.chevron-up":["Upward arrow"]}');
|
|
@@ -5370,7 +8148,7 @@ var activateI18n9 = (enMessages, nbMessages, fiMessages, daMessages, svMessages)
|
|
|
5370
8148
|
i18n.activate(locale);
|
|
5371
8149
|
};
|
|
5372
8150
|
activateI18n9(messages211, messages48, messages311, messages49, messages58);
|
|
5373
|
-
var IconChevronUp16 = class extends
|
|
8151
|
+
var IconChevronUp16 = class extends LitElement9 {
|
|
5374
8152
|
render() {
|
|
5375
8153
|
const title = i18n.t({ message: `Upward arrow`, id: "icon.title.chevron-up", comment: "Title for chevron-up icon" });
|
|
5376
8154
|
return html16`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-chevron-up-16-part">${unsafeStatic8(`<title>${title}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M2.5 11 8 5.5l5.5 5.5"></path></svg>`;
|
|
@@ -5475,7 +8253,7 @@ __publicField(WarpExpandable, "properties", {
|
|
|
5475
8253
|
// https://stackoverflow.com/a/61631668
|
|
5476
8254
|
__publicField(WarpExpandable, "styles", [
|
|
5477
8255
|
WarpElement9.styles,
|
|
5478
|
-
|
|
8256
|
+
css6`
|
|
5479
8257
|
:host {
|
|
5480
8258
|
display: block;
|
|
5481
8259
|
}
|
|
@@ -5488,9 +8266,8 @@ if (!customElements.get("w-expandable")) {
|
|
|
5488
8266
|
customElements.define("w-expandable", WarpExpandable);
|
|
5489
8267
|
}
|
|
5490
8268
|
|
|
5491
|
-
// packages/modal/modal-footer.
|
|
5492
|
-
import { html as html18 } from "lit";
|
|
5493
|
-
import WarpElement10 from "@warp-ds/elements-core";
|
|
8269
|
+
// packages/modal/modal-footer.ts
|
|
8270
|
+
import { html as html18, css as css7, LitElement as LitElement10 } from "lit";
|
|
5494
8271
|
|
|
5495
8272
|
// packages/modal/util.js
|
|
5496
8273
|
var CanCloseMixin = (superClass) => class extends superClass {
|
|
@@ -5514,20 +8291,35 @@ var ProvidesCanCloseToSlotsMixin = (superClass) => class extends superClass {
|
|
|
5514
8291
|
}
|
|
5515
8292
|
};
|
|
5516
8293
|
|
|
5517
|
-
// packages/modal/modal-footer.
|
|
5518
|
-
var ModalFooter = class extends CanCloseMixin(ProvidesCanCloseToSlotsMixin(
|
|
8294
|
+
// packages/modal/modal-footer.ts
|
|
8295
|
+
var ModalFooter = class extends CanCloseMixin(ProvidesCanCloseToSlotsMixin(LitElement10)) {
|
|
5519
8296
|
render() {
|
|
5520
8297
|
return html18`
|
|
5521
|
-
<div class="
|
|
8298
|
+
<div class="footer">
|
|
5522
8299
|
<slot @slotchange="${this.handleSlotChange}"></slot>
|
|
5523
8300
|
</div>
|
|
5524
8301
|
`;
|
|
5525
8302
|
}
|
|
5526
8303
|
};
|
|
5527
|
-
|
|
8304
|
+
ModalFooter.styles = css7`
|
|
8305
|
+
.footer {
|
|
8306
|
+
display:flex;
|
|
8307
|
+
flex-shrink:0;
|
|
8308
|
+
justify-content:flex-end;
|
|
8309
|
+
padding-left:1.6rem;
|
|
8310
|
+
padding-right:1.6rem;
|
|
8311
|
+
padding-top:2.4rem;
|
|
8312
|
+
}
|
|
8313
|
+
@media (min-width: 480px){
|
|
8314
|
+
.footer {
|
|
8315
|
+
padding-left:3.2rem;
|
|
8316
|
+
padding-right:3.2rem;
|
|
8317
|
+
}
|
|
8318
|
+
}
|
|
8319
|
+
`;
|
|
5528
8320
|
|
|
5529
|
-
// packages/modal/modal-header.
|
|
5530
|
-
import { html as html20, nothing as nothing3 } from "lit";
|
|
8321
|
+
// packages/modal/modal-header.ts
|
|
8322
|
+
import { css as css8, html as html20, LitElement as LitElement12, nothing as nothing3 } from "lit";
|
|
5531
8323
|
|
|
5532
8324
|
// node_modules/.pnpm/@itsy+animate@0.0.9/node_modules/@itsy/animate/src/utility.js
|
|
5533
8325
|
var computeDeltas = (first, last) => ({
|
|
@@ -5548,10 +8340,10 @@ var animationDefaults = { easing: "ease", duration: 300 };
|
|
|
5548
8340
|
var reduceMotion = false;
|
|
5549
8341
|
var windowExists = typeof window !== "undefined";
|
|
5550
8342
|
if (windowExists) {
|
|
5551
|
-
const
|
|
8343
|
+
const query3 = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
5552
8344
|
const callback = ({ matches }) => reduceMotion = matches;
|
|
5553
|
-
if (
|
|
5554
|
-
callback(
|
|
8345
|
+
if (query3.addEventListener) query3.addEventListener("change", callback);
|
|
8346
|
+
callback(query3);
|
|
5555
8347
|
}
|
|
5556
8348
|
|
|
5557
8349
|
// node_modules/.pnpm/@itsy+animate@0.0.9/node_modules/@itsy/animate/src/move.js
|
|
@@ -5601,8 +8393,11 @@ var Move = class {
|
|
|
5601
8393
|
}
|
|
5602
8394
|
};
|
|
5603
8395
|
|
|
5604
|
-
//
|
|
5605
|
-
import {
|
|
8396
|
+
// packages/modal/modal-header.ts
|
|
8397
|
+
import { property as property2, query, state } from "lit/decorators.js";
|
|
8398
|
+
|
|
8399
|
+
// node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-p_f73b1d3c5bd9121d6f30248535f1f172/node_modules/@warp-ds/icons/dist/elements/arrow-left-16.js
|
|
8400
|
+
import { LitElement as LitElement11 } from "lit";
|
|
5606
8401
|
import { unsafeStatic as unsafeStatic9, html as html19 } from "lit/static-html.js";
|
|
5607
8402
|
var messages50 = JSON.parse('{"icon.title.arrow-left":["Pil som peker mot venstre"]}');
|
|
5608
8403
|
var messages212 = JSON.parse('{"icon.title.arrow-left":["Leftward-pointing arrow"]}');
|
|
@@ -5685,7 +8480,7 @@ var activateI18n10 = (enMessages, nbMessages, fiMessages, daMessages, svMessages
|
|
|
5685
8480
|
i18n.activate(locale);
|
|
5686
8481
|
};
|
|
5687
8482
|
activateI18n10(messages212, messages50, messages312, messages410, messages59);
|
|
5688
|
-
var IconArrowLeft16 = class extends
|
|
8483
|
+
var IconArrowLeft16 = class extends LitElement11 {
|
|
5689
8484
|
render() {
|
|
5690
8485
|
const title = i18n.t({ message: `Leftward-pointing arrow`, id: "icon.title.arrow-left", comment: "Title for table arrow left icon" });
|
|
5691
8486
|
return html19`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-arrow-left-16-part">${unsafeStatic9(`<title>${title}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M5.222 8h6.667"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M7.444 11.75 4.111 8l3.333-3.75"></path></svg>`;
|
|
@@ -5695,10 +8490,6 @@ if (!customElements.get("w-icon-arrow-left-16")) {
|
|
|
5695
8490
|
customElements.define("w-icon-arrow-left-16", IconArrowLeft16);
|
|
5696
8491
|
}
|
|
5697
8492
|
|
|
5698
|
-
// packages/modal/modal-header.js
|
|
5699
|
-
import WarpElement11 from "@warp-ds/elements-core";
|
|
5700
|
-
import { createRef, ref } from "lit/directives/ref.js";
|
|
5701
|
-
|
|
5702
8493
|
// packages/modal/locales/da/messages.mjs
|
|
5703
8494
|
var messages51 = JSON.parse('{"modal.aria.back":["Tilbage"],"modal.aria.close":["Luk"]}');
|
|
5704
8495
|
|
|
@@ -5714,22 +8505,20 @@ var messages62 = JSON.parse('{"modal.aria.back":["Tilbake"],"modal.aria.close":[
|
|
|
5714
8505
|
// packages/modal/locales/sv/messages.mjs
|
|
5715
8506
|
var messages63 = JSON.parse('{"modal.aria.back":["Tillbaka"],"modal.aria.close":["St\xE4ng"]}');
|
|
5716
8507
|
|
|
5717
|
-
// packages/modal/modal-header.
|
|
5718
|
-
var
|
|
5719
|
-
var ModalHeader = class extends CanCloseMixin(WarpElement11) {
|
|
8508
|
+
// packages/modal/modal-header.ts
|
|
8509
|
+
var ModalHeader = class extends CanCloseMixin(LitElement12) {
|
|
5720
8510
|
constructor() {
|
|
5721
8511
|
super();
|
|
5722
|
-
__publicField(this, "titleEl", createRef());
|
|
5723
|
-
activateI18n7(messages60, messages62, messages61, messages51, messages63);
|
|
5724
8512
|
this._hasTopContent = false;
|
|
8513
|
+
activateI18n7(messages60, messages62, messages61, messages51, messages63);
|
|
5725
8514
|
}
|
|
5726
8515
|
render() {
|
|
5727
8516
|
return html20`
|
|
5728
|
-
<div class="
|
|
8517
|
+
<div class="header">
|
|
5729
8518
|
<slot name="top" @slotchange=${this.handleTopSlotChange}></slot>
|
|
5730
|
-
<div class="${this._hasTopContent ? "" :
|
|
8519
|
+
<div class="${this._hasTopContent ? "" : "header-title-bar"}">
|
|
5731
8520
|
${this.backButton}
|
|
5732
|
-
<h1
|
|
8521
|
+
<h1 class="title-el ${this.titleClasses}">${this.title}</h1>
|
|
5733
8522
|
${this.closeButton}
|
|
5734
8523
|
</div>
|
|
5735
8524
|
</div>
|
|
@@ -5737,7 +8526,7 @@ var ModalHeader = class extends CanCloseMixin(WarpElement11) {
|
|
|
5737
8526
|
}
|
|
5738
8527
|
async willUpdate(changedProperties) {
|
|
5739
8528
|
if (changedProperties.has("back")) {
|
|
5740
|
-
const move = new Move(this.titleEl
|
|
8529
|
+
const move = new Move(this.titleEl);
|
|
5741
8530
|
move.when(async () => {
|
|
5742
8531
|
await this.updateComplete;
|
|
5743
8532
|
});
|
|
@@ -5745,9 +8534,9 @@ var ModalHeader = class extends CanCloseMixin(WarpElement11) {
|
|
|
5745
8534
|
}
|
|
5746
8535
|
get titleClasses() {
|
|
5747
8536
|
return [
|
|
5748
|
-
|
|
5749
|
-
this.back ?
|
|
5750
|
-
this._hasTopContent ?
|
|
8537
|
+
"header-title",
|
|
8538
|
+
this.back ? "header-title-with-back-button" : "header-title-without-back-button",
|
|
8539
|
+
this._hasTopContent ? "header-title-with-top-area" : ""
|
|
5751
8540
|
].join(" ");
|
|
5752
8541
|
}
|
|
5753
8542
|
get backButton() {
|
|
@@ -5758,13 +8547,13 @@ var ModalHeader = class extends CanCloseMixin(WarpElement11) {
|
|
|
5758
8547
|
message: "Back",
|
|
5759
8548
|
comment: "Aria label for the back button in modal"
|
|
5760
8549
|
})}"
|
|
5761
|
-
class="
|
|
8550
|
+
class="header-button header-button-left"
|
|
5762
8551
|
@click="${this.emitBack}">
|
|
5763
8552
|
<w-icon-arrow-left-16></w-icon-arrow-left-16>
|
|
5764
8553
|
</button>` : nothing3;
|
|
5765
8554
|
}
|
|
5766
8555
|
get closeButton() {
|
|
5767
|
-
if (this
|
|
8556
|
+
if (this.noClose) return nothing3;
|
|
5768
8557
|
return html20`<button
|
|
5769
8558
|
type="button"
|
|
5770
8559
|
aria-label="${i18n._({
|
|
@@ -5772,7 +8561,7 @@ var ModalHeader = class extends CanCloseMixin(WarpElement11) {
|
|
|
5772
8561
|
message: "Close",
|
|
5773
8562
|
comment: "Aria label for the close button in modal"
|
|
5774
8563
|
})}"
|
|
5775
|
-
class="
|
|
8564
|
+
class="header-button ${this._hasTopContent ? "header-close-button-on-image" : "header-close-button"}"
|
|
5776
8565
|
@click="${this.close}">
|
|
5777
8566
|
<w-icon-close-16></w-icon-close-16>
|
|
5778
8567
|
</button>`;
|
|
@@ -5785,18 +8574,136 @@ var ModalHeader = class extends CanCloseMixin(WarpElement11) {
|
|
|
5785
8574
|
this._hasTopContent = !!topContent.length;
|
|
5786
8575
|
}
|
|
5787
8576
|
};
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
8577
|
+
ModalHeader.styles = css8`
|
|
8578
|
+
.header {
|
|
8579
|
+
position: relative;
|
|
8580
|
+
padding-bottom: 0.8rem;
|
|
8581
|
+
}
|
|
8582
|
+
.header-title-bar {
|
|
8583
|
+
display:grid;
|
|
8584
|
+
flex-shrink:0 !important;
|
|
8585
|
+
gap:1.2rem;
|
|
8586
|
+
grid-template-columns:auto 1fr auto;
|
|
8587
|
+
align-items:flex-start;
|
|
8588
|
+
padding-left:1.6rem;
|
|
8589
|
+
padding-right:1.6rem;
|
|
8590
|
+
padding-top:1.6rem;
|
|
8591
|
+
}
|
|
8592
|
+
.header-title {
|
|
8593
|
+
font-weight:700;
|
|
8594
|
+
font-size:var(--w-font-size-l);
|
|
8595
|
+
line-height:var(--w-line-height-l);
|
|
8596
|
+
align-self:center;
|
|
8597
|
+
margin: 0;
|
|
8598
|
+
}
|
|
8599
|
+
.header-title-with-back-button {
|
|
8600
|
+
justify-self:center;
|
|
8601
|
+
}
|
|
8602
|
+
.header-title-without-back-button {
|
|
8603
|
+
grid-column:span 2/span 2;
|
|
8604
|
+
}
|
|
8605
|
+
.header-title-with-top-area {
|
|
8606
|
+
padding-left:1.6rem;
|
|
8607
|
+
padding-right:1.6rem;
|
|
8608
|
+
padding-top:1.6rem;
|
|
8609
|
+
}
|
|
8610
|
+
.header-button:hover {
|
|
8611
|
+
-webkit-background-clip:padding-box;
|
|
8612
|
+
background-clip:padding-box;
|
|
8613
|
+
}
|
|
8614
|
+
.header-button:focus, .header-button:focus-visible {
|
|
8615
|
+
outline:2px solid var(--w-s-color-border-focus);
|
|
8616
|
+
outline-offset:var(--w-outline-offset, 1px);
|
|
8617
|
+
}
|
|
8618
|
+
.header-button:not(:focus-visible){
|
|
8619
|
+
outline:none;
|
|
8620
|
+
}
|
|
8621
|
+
.header-button {
|
|
8622
|
+
border-width:0;
|
|
8623
|
+
border-radius:9999px;
|
|
8624
|
+
display:inline-flex;
|
|
8625
|
+
align-items:center;
|
|
8626
|
+
justify-content:center;
|
|
8627
|
+
min-height:40px;
|
|
8628
|
+
min-width:40px;
|
|
8629
|
+
padding:0.4rem;
|
|
8630
|
+
font-weight:700;
|
|
8631
|
+
transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;
|
|
8632
|
+
transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);
|
|
8633
|
+
transition-duration:150ms;
|
|
8634
|
+
font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);
|
|
8635
|
+
line-height:2.4rem;
|
|
8636
|
+
}
|
|
8637
|
+
.header-button-left {
|
|
8638
|
+
background-color:transparent;
|
|
8639
|
+
color:var(--w-s-color-icon);
|
|
8640
|
+
margin-left:-0.8rem;
|
|
8641
|
+
}
|
|
8642
|
+
.header-button-left:hover {
|
|
8643
|
+
background-color:var(--w-color-button-pill-background-hover);
|
|
8644
|
+
}
|
|
8645
|
+
.header-button-left:active {
|
|
8646
|
+
background-color:var(--w-color-button-pill-background-active);
|
|
8647
|
+
}
|
|
8648
|
+
.header-close-button {
|
|
8649
|
+
background-color:transparent;
|
|
8650
|
+
color:var(--w-s-color-icon);
|
|
8651
|
+
margin-right:-0.8rem;
|
|
8652
|
+
}
|
|
8653
|
+
.header-close-button:hover {
|
|
8654
|
+
background-color:var(--w-color-button-pill-background-hover);
|
|
8655
|
+
}
|
|
8656
|
+
.header-close-button:active {
|
|
8657
|
+
background-color:var(--w-color-button-pill-background-active);
|
|
8658
|
+
}
|
|
8659
|
+
.header-close-button-on-image {
|
|
8660
|
+
background-color:rgba(var(--w-rgb-black),0.7);
|
|
8661
|
+
right:0.8rem;
|
|
8662
|
+
top:0.8rem;
|
|
8663
|
+
position:absolute;
|
|
8664
|
+
z-index:10;
|
|
8665
|
+
color:var(--w-s-color-text-inverted);
|
|
8666
|
+
}
|
|
8667
|
+
.header-close-button-on-image:hover {
|
|
8668
|
+
background-color:rgba(var(--w-rgb-black),0.85);
|
|
8669
|
+
}
|
|
8670
|
+
.header-close-button-on-image:active {
|
|
8671
|
+
background-color:var(--w-black);
|
|
8672
|
+
}
|
|
8673
|
+
@media (min-width: 480px){
|
|
8674
|
+
.header-title-bar {
|
|
8675
|
+
padding-left:3.2rem;
|
|
8676
|
+
padding-right:3.2rem;
|
|
8677
|
+
padding-top:2.4rem;
|
|
8678
|
+
}
|
|
8679
|
+
.header-title-with-top-area {
|
|
8680
|
+
padding-left:3.2rem;
|
|
8681
|
+
padding-right:3.2rem;
|
|
8682
|
+
}
|
|
8683
|
+
.header-button {
|
|
8684
|
+
min-height:32px;
|
|
8685
|
+
min-width:32px;
|
|
8686
|
+
}
|
|
8687
|
+
}
|
|
8688
|
+
`;
|
|
8689
|
+
__decorateClass([
|
|
8690
|
+
property2({ type: String })
|
|
8691
|
+
], ModalHeader.prototype, "title", 2);
|
|
8692
|
+
__decorateClass([
|
|
8693
|
+
property2({ type: Boolean })
|
|
8694
|
+
], ModalHeader.prototype, "back", 2);
|
|
8695
|
+
__decorateClass([
|
|
8696
|
+
property2({ type: Boolean, attribute: "no-close" })
|
|
8697
|
+
], ModalHeader.prototype, "noClose", 2);
|
|
8698
|
+
__decorateClass([
|
|
8699
|
+
state()
|
|
8700
|
+
], ModalHeader.prototype, "_hasTopContent", 2);
|
|
8701
|
+
__decorateClass([
|
|
8702
|
+
query(".title-el")
|
|
8703
|
+
], ModalHeader.prototype, "titleEl", 2);
|
|
5795
8704
|
|
|
5796
|
-
// packages/modal/modal-main.
|
|
5797
|
-
import { css as
|
|
5798
|
-
import WarpElement12 from "@warp-ds/elements-core";
|
|
5799
|
-
import { createRef as createRef2, ref as ref2 } from "lit/directives/ref.js";
|
|
8705
|
+
// packages/modal/modal-main.ts
|
|
8706
|
+
import { css as css9, html as html21, LitElement as LitElement13 } from "lit";
|
|
5800
8707
|
|
|
5801
8708
|
// node_modules/.pnpm/scroll-doctor@2.0.2/node_modules/scroll-doctor/dist/scroll-doctor.js
|
|
5802
8709
|
var n = [];
|
|
@@ -5856,35 +8763,31 @@ function T() {
|
|
|
5856
8763
|
n.forEach(p), g(), f(), n = [];
|
|
5857
8764
|
}
|
|
5858
8765
|
|
|
5859
|
-
// packages/modal/modal-main.
|
|
5860
|
-
|
|
5861
|
-
var
|
|
5862
|
-
var ModalMain = class extends ProvidesCanCloseToSlotsMixin(WarpElement12) {
|
|
8766
|
+
// packages/modal/modal-main.ts
|
|
8767
|
+
import { property as property3, query as query2 } from "lit/decorators.js";
|
|
8768
|
+
var ModalMain = class extends ProvidesCanCloseToSlotsMixin(LitElement13) {
|
|
5863
8769
|
constructor() {
|
|
5864
8770
|
super();
|
|
5865
|
-
__publicField(this, "dialogEl", createRef2());
|
|
5866
|
-
__publicField(this, "dialogInnerEl", createRef2());
|
|
5867
|
-
__publicField(this, "contentEl", createRef2());
|
|
5868
8771
|
this.interceptEscape = this.interceptEscape.bind(this);
|
|
5869
8772
|
this.closeOnBackdropClick = this.closeOnBackdropClick.bind(this);
|
|
5870
8773
|
this.eventPreventer = this.eventPreventer.bind(this);
|
|
5871
8774
|
this.modifyBorderRadius = this.modifyBorderRadius.bind(this);
|
|
5872
8775
|
}
|
|
5873
8776
|
async open() {
|
|
5874
|
-
this.dialogEl.
|
|
8777
|
+
this.dialogEl.showModal();
|
|
5875
8778
|
this.handleListeners();
|
|
5876
|
-
E(this.contentEl
|
|
8779
|
+
E(this.contentEl);
|
|
5877
8780
|
await this.updateComplete;
|
|
5878
8781
|
this.dispatchEvent(new CustomEvent("shown", { bubbles: true, composed: true }));
|
|
5879
8782
|
}
|
|
5880
8783
|
close() {
|
|
5881
8784
|
this.handleListeners("removeEventListener");
|
|
5882
|
-
this.dialogEl.
|
|
5883
|
-
this.dialogEl.
|
|
8785
|
+
this.dialogEl.classList.add("close");
|
|
8786
|
+
this.dialogEl.addEventListener(
|
|
5884
8787
|
"animationend",
|
|
5885
8788
|
async () => {
|
|
5886
|
-
this.dialogEl.
|
|
5887
|
-
this.dialogEl.
|
|
8789
|
+
this.dialogEl.classList.remove("close");
|
|
8790
|
+
this.dialogEl.close();
|
|
5888
8791
|
T();
|
|
5889
8792
|
await this.updateComplete;
|
|
5890
8793
|
this.dispatchEvent(new CustomEvent("hidden", { bubbles: true, composed: true }));
|
|
@@ -5894,10 +8797,10 @@ var ModalMain = class extends ProvidesCanCloseToSlotsMixin(WarpElement12) {
|
|
|
5894
8797
|
}
|
|
5895
8798
|
render() {
|
|
5896
8799
|
return html21`
|
|
5897
|
-
<dialog
|
|
5898
|
-
<div
|
|
8800
|
+
<dialog class="dialog-el">
|
|
8801
|
+
<div class="dialog-inner-el">
|
|
5899
8802
|
<slot name="header" @slotchange="${this.handleSlotChange}"></slot>
|
|
5900
|
-
<div
|
|
8803
|
+
<div class="content-el" id=${this.contentId}>
|
|
5901
8804
|
<slot name="content" @slotchange="${this.handleSlotChange}"></slot>
|
|
5902
8805
|
</div>
|
|
5903
8806
|
<slot name="footer" @slotchange="${this.handleSlotChange}"></slot>
|
|
@@ -5905,25 +8808,22 @@ var ModalMain = class extends ProvidesCanCloseToSlotsMixin(WarpElement12) {
|
|
|
5905
8808
|
</dialog>
|
|
5906
8809
|
`;
|
|
5907
8810
|
}
|
|
5908
|
-
|
|
8811
|
+
updated(changedProperties) {
|
|
5909
8812
|
if (changedProperties.has("show")) this[this.show ? "open" : "close"]();
|
|
5910
8813
|
}
|
|
5911
8814
|
handleListeners(verb = "addEventListener") {
|
|
5912
8815
|
document[verb]("keydown", this.interceptEscape);
|
|
5913
|
-
if (!this
|
|
5914
|
-
this.dialogEl
|
|
5915
|
-
this.dialogEl
|
|
5916
|
-
this.dialogInnerEl
|
|
8816
|
+
if (!this.ignoreBackdropClicks) this.dialogEl[verb]("mousedown", this.closeOnBackdropClick);
|
|
8817
|
+
this.dialogEl[verb]("close", this.eventPreventer);
|
|
8818
|
+
this.dialogEl[verb]("cancel", this.eventPreventer);
|
|
8819
|
+
this.dialogInnerEl[verb]("transitionend", this.modifyBorderRadius);
|
|
5917
8820
|
}
|
|
5918
|
-
/** @param {Event} evt */
|
|
5919
8821
|
eventPreventer(evt) {
|
|
5920
8822
|
evt.preventDefault();
|
|
5921
8823
|
}
|
|
5922
|
-
/** @param {MouseEvent} evt */
|
|
5923
8824
|
closeOnBackdropClick(evt) {
|
|
5924
|
-
if (this.dialogEl
|
|
8825
|
+
if (this.dialogEl === evt.target) this.close();
|
|
5925
8826
|
}
|
|
5926
|
-
/** @param {KeyboardEvent} evt */
|
|
5927
8827
|
interceptEscape(evt) {
|
|
5928
8828
|
if (evt.key === "Escape") {
|
|
5929
8829
|
evt.preventDefault();
|
|
@@ -5931,36 +8831,93 @@ var ModalMain = class extends ProvidesCanCloseToSlotsMixin(WarpElement12) {
|
|
|
5931
8831
|
}
|
|
5932
8832
|
}
|
|
5933
8833
|
modifyBorderRadius() {
|
|
5934
|
-
if (this.dialogInnerEl.
|
|
5935
|
-
else this.dialogInnerEl.
|
|
8834
|
+
if (this.dialogInnerEl.scrollHeight * 1.02 > innerHeight) this.dialogInnerEl.style.borderRadius = "0px";
|
|
8835
|
+
else this.dialogInnerEl.style.borderRadius = null;
|
|
5936
8836
|
}
|
|
5937
8837
|
};
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
[NO_BACKDROP_CLICKS]: { type: Boolean }
|
|
5942
|
-
});
|
|
5943
|
-
__publicField(ModalMain, "styles", [
|
|
5944
|
-
WarpElement12.styles,
|
|
5945
|
-
css6`
|
|
5946
|
-
.w-modal {
|
|
8838
|
+
ModalMain.styles = [
|
|
8839
|
+
css9`
|
|
8840
|
+
.dialog-el {
|
|
5947
8841
|
--w-modal-translate-distance: 100%;
|
|
8842
|
+
--w-modal-max-height:80%;
|
|
8843
|
+
--w-modal-width:640px;
|
|
8844
|
+
background-color:transparent;
|
|
8845
|
+
border-width:0;
|
|
8846
|
+
align-items:flex-end;
|
|
8847
|
+
inset:0rem;
|
|
8848
|
+
height:unset;
|
|
8849
|
+
max-height:unset;
|
|
8850
|
+
max-width:unset;
|
|
8851
|
+
width:unset;
|
|
8852
|
+
margin:auto;
|
|
8853
|
+
padding:0rem;
|
|
8854
|
+
backface-visibility:hidden;
|
|
8855
|
+
}
|
|
8856
|
+
.dialog-inner-el {
|
|
8857
|
+
will-change:height;
|
|
8858
|
+
border-radius:8px;
|
|
8859
|
+
display:flex;
|
|
8860
|
+
flex-direction:column;
|
|
8861
|
+
overflow:hidden;
|
|
8862
|
+
position:relative;
|
|
8863
|
+
background-color:var(--w-s-color-background);
|
|
8864
|
+
box-shadow:var(--w-shadow-m);
|
|
8865
|
+
height:var(--w-modal-height);
|
|
8866
|
+
max-height:var(--w-modal-max-height);
|
|
8867
|
+
min-height:var(--w-modal-min-height);
|
|
8868
|
+
width:var(--w-modal-width);
|
|
8869
|
+
backface-visibility:hidden;
|
|
8870
|
+
padding-bottom:calc(32px + env(safe-area-inset-bottom, 0px));
|
|
8871
|
+
transition-property:all;
|
|
8872
|
+
transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);
|
|
8873
|
+
transition-duration:150ms;
|
|
8874
|
+
transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);
|
|
8875
|
+
}
|
|
8876
|
+
.content-el {
|
|
8877
|
+
display:block;
|
|
8878
|
+
flex-shrink:1;
|
|
8879
|
+
flex-grow:1;
|
|
8880
|
+
overflow-x:hidden;
|
|
8881
|
+
overflow-y:auto;
|
|
8882
|
+
position:relative;
|
|
8883
|
+
margin-bottom:0rem;
|
|
8884
|
+
padding-left:1.6rem;
|
|
8885
|
+
padding-right:1.6rem;
|
|
5948
8886
|
}
|
|
5949
8887
|
@media (min-width: 480px) {
|
|
5950
|
-
.
|
|
8888
|
+
.dialog-el {
|
|
5951
8889
|
--w-modal-translate-distance: 50%;
|
|
8890
|
+
place-content:center;
|
|
8891
|
+
place-items:center;
|
|
8892
|
+
}
|
|
8893
|
+
.dialog-inner-el {
|
|
8894
|
+
margin-left:1.6rem;
|
|
8895
|
+
margin-right:1.6rem;
|
|
8896
|
+
padding-bottom:3.2rem;
|
|
8897
|
+
}
|
|
8898
|
+
.content-el {
|
|
8899
|
+
padding-left:3.2rem;
|
|
8900
|
+
padding-right:3.2rem;
|
|
8901
|
+
}
|
|
8902
|
+
}
|
|
8903
|
+
@media (max-width: 479.9px){
|
|
8904
|
+
.dialog-inner-el {
|
|
8905
|
+
border-bottom-left-radius:0;
|
|
8906
|
+
border-bottom-right-radius:0;
|
|
5952
8907
|
}
|
|
5953
8908
|
}
|
|
5954
|
-
.
|
|
8909
|
+
.dialog-el[open] {
|
|
5955
8910
|
animation: w-modal-in 0.3s ease-in-out forwards;
|
|
8911
|
+
display:flex;
|
|
8912
|
+
position:fixed;
|
|
5956
8913
|
}
|
|
5957
|
-
.
|
|
8914
|
+
.dialog-el.close {
|
|
5958
8915
|
animation: w-modal-out 0.3s ease-in-out forwards;
|
|
5959
8916
|
}
|
|
5960
|
-
.
|
|
8917
|
+
.dialog-el[open]::backdrop {
|
|
5961
8918
|
animation: backdrop-in 0.3s ease-in-out forwards;
|
|
5962
8919
|
}
|
|
5963
|
-
.
|
|
8920
|
+
.dialog-el.close::backdrop {
|
|
5964
8921
|
animation: backdrop-out 0.3s ease-in-out forwards;
|
|
5965
8922
|
}
|
|
5966
8923
|
/* shouldn't need two (in/out) animations declared here, but reversing is being weird */
|
|
@@ -6001,7 +8958,25 @@ __publicField(ModalMain, "styles", [
|
|
|
6001
8958
|
}
|
|
6002
8959
|
}
|
|
6003
8960
|
`
|
|
6004
|
-
]
|
|
8961
|
+
];
|
|
8962
|
+
__decorateClass([
|
|
8963
|
+
property3({ type: Boolean })
|
|
8964
|
+
], ModalMain.prototype, "show", 2);
|
|
8965
|
+
__decorateClass([
|
|
8966
|
+
property3({ type: String, attribute: "content-id" })
|
|
8967
|
+
], ModalMain.prototype, "contentId", 2);
|
|
8968
|
+
__decorateClass([
|
|
8969
|
+
property3({ type: Boolean, attribute: "ignore-backdrop-clicks" })
|
|
8970
|
+
], ModalMain.prototype, "ignoreBackdropClicks", 2);
|
|
8971
|
+
__decorateClass([
|
|
8972
|
+
query2(".dialog-el")
|
|
8973
|
+
], ModalMain.prototype, "dialogEl", 2);
|
|
8974
|
+
__decorateClass([
|
|
8975
|
+
query2(".dialog-inner-el")
|
|
8976
|
+
], ModalMain.prototype, "dialogInnerEl", 2);
|
|
8977
|
+
__decorateClass([
|
|
8978
|
+
query2(".content-el")
|
|
8979
|
+
], ModalMain.prototype, "contentEl", 2);
|
|
6005
8980
|
|
|
6006
8981
|
// packages/modal/index.js
|
|
6007
8982
|
if (!customElements.get("w-modal")) {
|
|
@@ -6012,7 +8987,7 @@ if (!customElements.get("w-modal")) {
|
|
|
6012
8987
|
|
|
6013
8988
|
// packages/pill/index.js
|
|
6014
8989
|
import { html as html22 } from "lit";
|
|
6015
|
-
import
|
|
8990
|
+
import WarpElement10 from "@warp-ds/elements-core";
|
|
6016
8991
|
|
|
6017
8992
|
// packages/pill/locales/da/messages.mjs
|
|
6018
8993
|
var messages64 = JSON.parse('{"pill.aria.openFilter":["\xC5bn filter"],"pill.aria.removeFilter":["Fjern filter ",["label"]]}');
|
|
@@ -6030,7 +9005,7 @@ var messages67 = JSON.parse('{"pill.aria.openFilter":["\xC5pne filter"],"pill.ar
|
|
|
6030
9005
|
var messages68 = JSON.parse('{"pill.aria.openFilter":["\xD6ppna filter"],"pill.aria.removeFilter":["Ta bort filtret ",["label"]]}');
|
|
6031
9006
|
|
|
6032
9007
|
// packages/pill/index.js
|
|
6033
|
-
var WarpPill = class extends kebabCaseAttributes(
|
|
9008
|
+
var WarpPill = class extends kebabCaseAttributes(WarpElement10) {
|
|
6034
9009
|
constructor() {
|
|
6035
9010
|
super();
|
|
6036
9011
|
activateI18n7(messages65, messages67, messages66, messages64, messages68);
|
|
@@ -6079,7 +9054,7 @@ var WarpPill = class extends kebabCaseAttributes(WarpElement13) {
|
|
|
6079
9054
|
`;
|
|
6080
9055
|
}
|
|
6081
9056
|
};
|
|
6082
|
-
__publicField(WarpPill, "styles", [
|
|
9057
|
+
__publicField(WarpPill, "styles", [WarpElement10.styles]);
|
|
6083
9058
|
__publicField(WarpPill, "properties", {
|
|
6084
9059
|
canClose: { type: Boolean },
|
|
6085
9060
|
suggestion: { type: Boolean },
|
|
@@ -6092,7 +9067,7 @@ if (!customElements.get("w-pill")) {
|
|
|
6092
9067
|
|
|
6093
9068
|
// packages/select/index.js
|
|
6094
9069
|
import { html as html23 } from "lit";
|
|
6095
|
-
import
|
|
9070
|
+
import WarpElement11 from "@warp-ds/elements-core";
|
|
6096
9071
|
import { ifDefined as ifDefined5 } from "lit/directives/if-defined.js";
|
|
6097
9072
|
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
6098
9073
|
import { when } from "lit/directives/when.js";
|
|
@@ -6114,23 +9089,33 @@ var messages73 = JSON.parse('{"select.label.optional":["(valfritt)"]}');
|
|
|
6114
9089
|
|
|
6115
9090
|
// packages/select/index.js
|
|
6116
9091
|
var _WarpSelect_instances, classes_get, helpTextClasses_get, chevronClasses_get2, id_get, helpId_get;
|
|
6117
|
-
var WarpSelect = class extends kebabCaseAttributes(
|
|
9092
|
+
var WarpSelect = class extends FormControlMixin(kebabCaseAttributes(WarpElement11)) {
|
|
6118
9093
|
constructor() {
|
|
6119
9094
|
super();
|
|
6120
9095
|
__privateAdd(this, _WarpSelect_instances);
|
|
9096
|
+
__publicField(this, "_setValue", (value) => {
|
|
9097
|
+
this.value = value;
|
|
9098
|
+
this.setValue(value);
|
|
9099
|
+
});
|
|
6121
9100
|
activateI18n7(messages70, messages72, messages71, messages69, messages73);
|
|
6122
9101
|
this._options = this.innerHTML;
|
|
6123
9102
|
}
|
|
6124
9103
|
firstUpdated() {
|
|
6125
9104
|
this.autoFocus && this.shadowRoot.querySelector("select").focus();
|
|
9105
|
+
Array.from(this.children).map((child) => {
|
|
9106
|
+
if (child.selected) {
|
|
9107
|
+
this._setValue(child.value);
|
|
9108
|
+
}
|
|
9109
|
+
});
|
|
6126
9110
|
}
|
|
6127
9111
|
handleKeyDown(event) {
|
|
6128
9112
|
if (this.readOnly && (event.key === " " || event.key === "ArrowDown" || event.key === "ArrowUp")) {
|
|
6129
9113
|
event.preventDefault();
|
|
6130
9114
|
}
|
|
6131
9115
|
}
|
|
6132
|
-
// Fire a custom 'change' event, used when the dropdown changes state.
|
|
9116
|
+
// // Fire a custom 'change' event, used when the dropdown changes state.
|
|
6133
9117
|
onChange({ target }) {
|
|
9118
|
+
this._setValue(target.value);
|
|
6134
9119
|
const event = new CustomEvent("change", { detail: target.value });
|
|
6135
9120
|
this.dispatchEvent(event);
|
|
6136
9121
|
}
|
|
@@ -6211,18 +9196,20 @@ __publicField(WarpSelect, "properties", {
|
|
|
6211
9196
|
disabled: { type: Boolean, reflect: true },
|
|
6212
9197
|
// Renders the field in a readonly state.
|
|
6213
9198
|
readOnly: { type: Boolean, relfect: true },
|
|
6214
|
-
_options: { state: true }
|
|
9199
|
+
_options: { state: true },
|
|
9200
|
+
name: { type: String, reflect: true },
|
|
9201
|
+
value: { type: String, reflect: true }
|
|
6215
9202
|
});
|
|
6216
|
-
__publicField(WarpSelect, "styles", [
|
|
9203
|
+
__publicField(WarpSelect, "styles", [WarpElement11.styles]);
|
|
6217
9204
|
if (!customElements.get("w-select")) {
|
|
6218
9205
|
customElements.define("w-select", WarpSelect);
|
|
6219
9206
|
}
|
|
6220
9207
|
|
|
6221
9208
|
// packages/textfield/index.js
|
|
6222
|
-
import { css as
|
|
6223
|
-
import
|
|
9209
|
+
import { css as css10, html as html24 } from "lit";
|
|
9210
|
+
import WarpElement12 from "@warp-ds/elements-core";
|
|
6224
9211
|
import { ifDefined as ifDefined6 } from "lit/directives/if-defined.js";
|
|
6225
|
-
var WarpTextField = class extends kebabCaseAttributes(
|
|
9212
|
+
var WarpTextField = class extends FormControlMixin(kebabCaseAttributes(WarpElement12)) {
|
|
6226
9213
|
constructor() {
|
|
6227
9214
|
super();
|
|
6228
9215
|
this.type = "text";
|
|
@@ -6257,6 +9244,7 @@ var WarpTextField = class extends kebabCaseAttributes(WarpElement15) {
|
|
|
6257
9244
|
}
|
|
6258
9245
|
handler(e) {
|
|
6259
9246
|
const { name, value } = e.target;
|
|
9247
|
+
this.setValue(value);
|
|
6260
9248
|
const event = new CustomEvent(e.type, {
|
|
6261
9249
|
detail: {
|
|
6262
9250
|
name,
|
|
@@ -6320,13 +9308,13 @@ __publicField(WarpTextField, "properties", {
|
|
|
6320
9308
|
min: { type: Number },
|
|
6321
9309
|
minLength: { type: Number },
|
|
6322
9310
|
maxLength: { type: Number },
|
|
6323
|
-
name: { type: String },
|
|
6324
9311
|
pattern: { type: String },
|
|
6325
9312
|
placeholder: { type: String },
|
|
6326
9313
|
readOnly: { type: Boolean },
|
|
6327
9314
|
required: { type: Boolean },
|
|
6328
9315
|
type: { type: String },
|
|
6329
9316
|
value: { type: String },
|
|
9317
|
+
name: { type: String },
|
|
6330
9318
|
_hasPrefix: { state: true },
|
|
6331
9319
|
_hasSuffix: { state: true }
|
|
6332
9320
|
});
|
|
@@ -6335,8 +9323,8 @@ __publicField(WarpTextField, "properties", {
|
|
|
6335
9323
|
// so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.
|
|
6336
9324
|
// https://stackoverflow.com/a/61631668
|
|
6337
9325
|
__publicField(WarpTextField, "styles", [
|
|
6338
|
-
|
|
6339
|
-
|
|
9326
|
+
WarpElement12.styles,
|
|
9327
|
+
css10`
|
|
6340
9328
|
:host {
|
|
6341
9329
|
display: block;
|
|
6342
9330
|
}
|
|
@@ -6378,10 +9366,10 @@ function updateToast(id, options) {
|
|
|
6378
9366
|
}
|
|
6379
9367
|
|
|
6380
9368
|
// packages/toast/toast-container.js
|
|
6381
|
-
import { css as
|
|
6382
|
-
import
|
|
9369
|
+
import { css as css11, html as html25 } from "lit";
|
|
9370
|
+
import WarpElement13 from "@warp-ds/elements-core";
|
|
6383
9371
|
import { repeat } from "lit/directives/repeat.js";
|
|
6384
|
-
var WarpToastContainer = class extends
|
|
9372
|
+
var WarpToastContainer = class extends WarpElement13 {
|
|
6385
9373
|
constructor() {
|
|
6386
9374
|
super();
|
|
6387
9375
|
this._toasts = /* @__PURE__ */ new Map();
|
|
@@ -6484,8 +9472,8 @@ var WarpToastContainer = class extends WarpElement16 {
|
|
|
6484
9472
|
}
|
|
6485
9473
|
};
|
|
6486
9474
|
__publicField(WarpToastContainer, "styles", [
|
|
6487
|
-
|
|
6488
|
-
|
|
9475
|
+
WarpElement13.styles,
|
|
9476
|
+
css11`
|
|
6489
9477
|
:host {
|
|
6490
9478
|
display: block;
|
|
6491
9479
|
}
|
|
@@ -6499,17 +9487,17 @@ if (!customElements.get("w-toast-container")) {
|
|
|
6499
9487
|
}
|
|
6500
9488
|
|
|
6501
9489
|
// packages/toast/toast.js
|
|
6502
|
-
import { css as
|
|
6503
|
-
import
|
|
9490
|
+
import { css as css12, html as html26 } from "lit";
|
|
9491
|
+
import WarpElement14 from "@warp-ds/elements-core";
|
|
6504
9492
|
|
|
6505
9493
|
// node_modules/.pnpm/element-collapse@1.1.0/node_modules/element-collapse/index.js
|
|
6506
9494
|
var windowExists3 = typeof window !== "undefined";
|
|
6507
9495
|
var prefersMotion = true;
|
|
6508
9496
|
if (windowExists3) {
|
|
6509
|
-
const
|
|
9497
|
+
const query3 = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
6510
9498
|
const callback = ({ matches }) => prefersMotion = !matches;
|
|
6511
|
-
if (
|
|
6512
|
-
callback(
|
|
9499
|
+
if (query3.addEventListener) query3.addEventListener("change", callback);
|
|
9500
|
+
callback(query3);
|
|
6513
9501
|
}
|
|
6514
9502
|
var removeTransition = (el) => {
|
|
6515
9503
|
el.style.transition = null;
|
|
@@ -6593,7 +9581,7 @@ var toastType = {
|
|
|
6593
9581
|
warning: "warning"
|
|
6594
9582
|
};
|
|
6595
9583
|
var _WarpToast_instances, primaryClasses_get, iconClasses_get;
|
|
6596
|
-
var WarpToast = class extends
|
|
9584
|
+
var WarpToast = class extends WarpElement14 {
|
|
6597
9585
|
constructor() {
|
|
6598
9586
|
super();
|
|
6599
9587
|
__privateAdd(this, _WarpToast_instances);
|
|
@@ -6704,8 +9692,8 @@ iconClasses_get = function() {
|
|
|
6704
9692
|
]);
|
|
6705
9693
|
};
|
|
6706
9694
|
__publicField(WarpToast, "styles", [
|
|
6707
|
-
|
|
6708
|
-
|
|
9695
|
+
WarpElement14.styles,
|
|
9696
|
+
css12`
|
|
6709
9697
|
:host {
|
|
6710
9698
|
display: block;
|
|
6711
9699
|
}
|
|
@@ -6722,10 +9710,10 @@ if (!customElements.get("w-toast")) {
|
|
|
6722
9710
|
}
|
|
6723
9711
|
|
|
6724
9712
|
// packages/utils/expand-transition.js
|
|
6725
|
-
import { css as
|
|
6726
|
-
import
|
|
9713
|
+
import { css as css13, html as html27 } from "lit";
|
|
9714
|
+
import WarpElement15 from "@warp-ds/elements-core";
|
|
6727
9715
|
import { ifDefined as ifDefined7 } from "lit/directives/if-defined.js";
|
|
6728
|
-
var ExpandTransition = class extends
|
|
9716
|
+
var ExpandTransition = class extends WarpElement15 {
|
|
6729
9717
|
constructor() {
|
|
6730
9718
|
super();
|
|
6731
9719
|
this.show = false;
|
|
@@ -6768,8 +9756,8 @@ __publicField(ExpandTransition, "properties", {
|
|
|
6768
9756
|
_removeElement: { type: Boolean, state: true }
|
|
6769
9757
|
});
|
|
6770
9758
|
__publicField(ExpandTransition, "styles", [
|
|
6771
|
-
|
|
6772
|
-
|
|
9759
|
+
WarpElement15.styles,
|
|
9760
|
+
css13`
|
|
6773
9761
|
:host {
|
|
6774
9762
|
display: block;
|
|
6775
9763
|
}
|
|
@@ -6781,9 +9769,9 @@ if (!customElements.get("w-expand-transition")) {
|
|
|
6781
9769
|
|
|
6782
9770
|
// packages/utils/unstyled-heading.js
|
|
6783
9771
|
import { html as html28 } from "lit";
|
|
6784
|
-
import
|
|
9772
|
+
import WarpElement16 from "@warp-ds/elements-core";
|
|
6785
9773
|
import { unsafeHTML as unsafeHTML2 } from "lit/directives/unsafe-html.js";
|
|
6786
|
-
var UnstyledHeading = class extends
|
|
9774
|
+
var UnstyledHeading = class extends WarpElement16 {
|
|
6787
9775
|
get _markup() {
|
|
6788
9776
|
return `<h${this.level}
|
|
6789
9777
|
style="margin: 0; font-weight: unset; font-size: unset; line-height: unset;"
|
|
@@ -6799,7 +9787,7 @@ var UnstyledHeading = class extends WarpElement19 {
|
|
|
6799
9787
|
__publicField(UnstyledHeading, "properties", {
|
|
6800
9788
|
level: { type: Number }
|
|
6801
9789
|
});
|
|
6802
|
-
__publicField(UnstyledHeading, "styles", [
|
|
9790
|
+
__publicField(UnstyledHeading, "styles", [WarpElement16.styles]);
|
|
6803
9791
|
if (!customElements.get("w-unstyled-heading")) {
|
|
6804
9792
|
customElements.define("w-unstyled-heading", UnstyledHeading);
|
|
6805
9793
|
}
|