@warp-ds/elements 1.4.1-next.1 → 1.5.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +778 -259
- package/dist/index.js.map +4 -4
- package/dist/packages/affix/index.js +4 -4
- package/dist/packages/affix/index.js.map +3 -3
- package/dist/packages/alert/index.js +6 -6
- package/dist/packages/alert/index.js.map +3 -3
- package/dist/packages/attention/index.js +48 -49
- package/dist/packages/attention/index.js.map +4 -4
- package/dist/packages/badge/index.js +1 -1
- package/dist/packages/badge/index.js.map +3 -3
- package/dist/packages/box/index.js +1 -1
- package/dist/packages/box/index.js.map +3 -3
- package/dist/packages/breadcrumbs/index.js +2 -2
- package/dist/packages/breadcrumbs/index.js.map +3 -3
- package/dist/packages/button/index.js +1 -1
- package/dist/packages/button/index.js.map +3 -3
- package/dist/packages/card/index.js +1 -1
- package/dist/packages/card/index.js.map +3 -3
- package/dist/packages/expandable/index.js +4 -4
- package/dist/packages/expandable/index.js.map +3 -3
- package/dist/packages/modal/index.d.ts +6 -0
- package/dist/packages/modal/index.js +2291 -0
- package/dist/packages/modal/index.js.map +7 -0
- package/dist/packages/modal/modal-footer.d.ts +14 -0
- package/dist/packages/modal/modal-header.d.ts +37 -0
- package/dist/packages/modal/modal-main.d.ts +37 -0
- package/dist/packages/modal/util.d.ts +17 -0
- package/dist/packages/pill/index.js +3 -3
- package/dist/packages/pill/index.js.map +3 -3
- package/dist/packages/select/index.js +2 -2
- package/dist/packages/select/index.js.map +3 -3
- package/dist/packages/textfield/index.js +1 -1
- package/dist/packages/textfield/index.js.map +3 -3
- package/dist/packages/toast/index.js +5 -5
- package/dist/packages/toast/index.js.map +3 -3
- package/package.json +8 -5
package/dist/index.js
CHANGED
|
@@ -9,18 +9,18 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
9
9
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
10
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
11
11
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
12
|
-
var __spreadValues = (
|
|
13
|
-
for (var prop in
|
|
14
|
-
if (__hasOwnProp.call(
|
|
15
|
-
__defNormalProp(
|
|
12
|
+
var __spreadValues = (a2, b2) => {
|
|
13
|
+
for (var prop in b2 || (b2 = {}))
|
|
14
|
+
if (__hasOwnProp.call(b2, prop))
|
|
15
|
+
__defNormalProp(a2, prop, b2[prop]);
|
|
16
16
|
if (__getOwnPropSymbols)
|
|
17
|
-
for (var prop of __getOwnPropSymbols(
|
|
18
|
-
if (__propIsEnum.call(
|
|
19
|
-
__defNormalProp(
|
|
17
|
+
for (var prop of __getOwnPropSymbols(b2)) {
|
|
18
|
+
if (__propIsEnum.call(b2, prop))
|
|
19
|
+
__defNormalProp(a2, prop, b2[prop]);
|
|
20
20
|
}
|
|
21
|
-
return
|
|
21
|
+
return a2;
|
|
22
22
|
};
|
|
23
|
-
var __spreadProps = (
|
|
23
|
+
var __spreadProps = (a2, b2) => __defProps(a2, __getOwnPropDescs(b2));
|
|
24
24
|
var __objRest = (source, exclude) => {
|
|
25
25
|
var target = {};
|
|
26
26
|
for (var prop in source)
|
|
@@ -295,8 +295,8 @@ var require_moo = __commonJS({
|
|
|
295
295
|
function objectToRules(object) {
|
|
296
296
|
var keys2 = Object.getOwnPropertyNames(object);
|
|
297
297
|
var result = [];
|
|
298
|
-
for (var
|
|
299
|
-
var key = keys2[
|
|
298
|
+
for (var i2 = 0; i2 < keys2.length; i2++) {
|
|
299
|
+
var key = keys2[i2];
|
|
300
300
|
var thing = object[key];
|
|
301
301
|
var rules = [].concat(thing);
|
|
302
302
|
if (key === "include") {
|
|
@@ -323,8 +323,8 @@ var require_moo = __commonJS({
|
|
|
323
323
|
}
|
|
324
324
|
function arrayToRules(array) {
|
|
325
325
|
var result = [];
|
|
326
|
-
for (var
|
|
327
|
-
var obj = array[
|
|
326
|
+
for (var i2 = 0; i2 < array.length; i2++) {
|
|
327
|
+
var obj = array[i2];
|
|
328
328
|
if (obj.include) {
|
|
329
329
|
var include = [].concat(obj.include);
|
|
330
330
|
for (var j = 0; j < include.length; j++) {
|
|
@@ -368,8 +368,8 @@ var require_moo = __commonJS({
|
|
|
368
368
|
}
|
|
369
369
|
var match = options.match;
|
|
370
370
|
options.match = Array.isArray(match) ? match : match ? [match] : [];
|
|
371
|
-
options.match.sort(function(
|
|
372
|
-
return isRegExp(
|
|
371
|
+
options.match.sort(function(a2, b2) {
|
|
372
|
+
return isRegExp(a2) && isRegExp(b2) ? 0 : isRegExp(b2) ? -1 : isRegExp(a2) ? 1 : b2.length - a2.length;
|
|
373
373
|
});
|
|
374
374
|
return options;
|
|
375
375
|
}
|
|
@@ -384,13 +384,13 @@ var require_moo = __commonJS({
|
|
|
384
384
|
var unicodeFlag = null;
|
|
385
385
|
var groups = [];
|
|
386
386
|
var parts = [];
|
|
387
|
-
for (var
|
|
388
|
-
if (rules[
|
|
387
|
+
for (var i2 = 0; i2 < rules.length; i2++) {
|
|
388
|
+
if (rules[i2].fallback) {
|
|
389
389
|
fastAllowed = false;
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
for (var
|
|
393
|
-
var options = rules[
|
|
392
|
+
for (var i2 = 0; i2 < rules.length; i2++) {
|
|
393
|
+
var options = rules[i2];
|
|
394
394
|
if (options.include) {
|
|
395
395
|
throw new Error("Inheritance is not allowed in stateless lexers");
|
|
396
396
|
}
|
|
@@ -461,13 +461,13 @@ var require_moo = __commonJS({
|
|
|
461
461
|
var result = compileRules(toRules(rules));
|
|
462
462
|
return new Lexer({ start: result }, "start");
|
|
463
463
|
}
|
|
464
|
-
function checkStateGroup(
|
|
465
|
-
var state =
|
|
464
|
+
function checkStateGroup(g2, name, map) {
|
|
465
|
+
var state = g2 && (g2.push || g2.next);
|
|
466
466
|
if (state && !map[state]) {
|
|
467
|
-
throw new Error("Missing state '" + state + "' (in token '" +
|
|
467
|
+
throw new Error("Missing state '" + state + "' (in token '" + g2.defaultType + "' of state '" + name + "')");
|
|
468
468
|
}
|
|
469
|
-
if (
|
|
470
|
-
throw new Error("pop must be 1 (in token '" +
|
|
469
|
+
if (g2 && g2.pop && +g2.pop !== 1) {
|
|
470
|
+
throw new Error("pop must be 1 (in token '" + g2.defaultType + "' of state '" + name + "')");
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
function compileStates(states, start) {
|
|
@@ -477,12 +477,12 @@ var require_moo = __commonJS({
|
|
|
477
477
|
if (!start)
|
|
478
478
|
start = keys2[0];
|
|
479
479
|
var ruleMap = /* @__PURE__ */ Object.create(null);
|
|
480
|
-
for (var
|
|
481
|
-
var key = keys2[
|
|
480
|
+
for (var i2 = 0; i2 < keys2.length; i2++) {
|
|
481
|
+
var key = keys2[i2];
|
|
482
482
|
ruleMap[key] = toRules(states[key]).concat(all);
|
|
483
483
|
}
|
|
484
|
-
for (var
|
|
485
|
-
var key = keys2[
|
|
484
|
+
for (var i2 = 0; i2 < keys2.length; i2++) {
|
|
485
|
+
var key = keys2[i2];
|
|
486
486
|
var rules = ruleMap[key];
|
|
487
487
|
var included = /* @__PURE__ */ Object.create(null);
|
|
488
488
|
for (var j = 0; j < rules.length; j++) {
|
|
@@ -508,12 +508,12 @@ var require_moo = __commonJS({
|
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
510
|
var map = /* @__PURE__ */ Object.create(null);
|
|
511
|
-
for (var
|
|
512
|
-
var key = keys2[
|
|
511
|
+
for (var i2 = 0; i2 < keys2.length; i2++) {
|
|
512
|
+
var key = keys2[i2];
|
|
513
513
|
map[key] = compileRules(ruleMap[key], true);
|
|
514
514
|
}
|
|
515
|
-
for (var
|
|
516
|
-
var name = keys2[
|
|
515
|
+
for (var i2 = 0; i2 < keys2.length; i2++) {
|
|
516
|
+
var name = keys2[i2];
|
|
517
517
|
var state = map[name];
|
|
518
518
|
var groups = state.groups;
|
|
519
519
|
for (var j = 0; j < groups.length; j++) {
|
|
@@ -530,8 +530,8 @@ var require_moo = __commonJS({
|
|
|
530
530
|
var isMap = typeof Map !== "undefined";
|
|
531
531
|
var reverseMap = isMap ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
|
|
532
532
|
var types = Object.getOwnPropertyNames(map);
|
|
533
|
-
for (var
|
|
534
|
-
var tokenType = types[
|
|
533
|
+
for (var i2 = 0; i2 < types.length; i2++) {
|
|
534
|
+
var tokenType = types[i2];
|
|
535
535
|
var item = map[tokenType];
|
|
536
536
|
var keywordList = Array.isArray(item) ? item : [item];
|
|
537
537
|
keywordList.forEach(function(keyword) {
|
|
@@ -607,9 +607,9 @@ var require_moo = __commonJS({
|
|
|
607
607
|
};
|
|
608
608
|
Lexer.prototype._getGroup = function(match) {
|
|
609
609
|
var groupCount = this.groups.length;
|
|
610
|
-
for (var
|
|
611
|
-
if (match[
|
|
612
|
-
return this.groups[
|
|
610
|
+
for (var i2 = 0; i2 < groupCount; i2++) {
|
|
611
|
+
if (match[i2 + 1] !== void 0) {
|
|
612
|
+
return this.groups[i2];
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
throw new Error("Cannot find token type for matched text");
|
|
@@ -730,9 +730,9 @@ var require_moo = __commonJS({
|
|
|
730
730
|
var errorLines = [];
|
|
731
731
|
errorLines.push(message + " at line " + token.line + " col " + token.col + ":");
|
|
732
732
|
errorLines.push("");
|
|
733
|
-
for (var
|
|
734
|
-
var line = displayedLines[
|
|
735
|
-
var lineNo = firstDisplayedLine +
|
|
733
|
+
for (var i2 = 0; i2 < displayedLines.length; i2++) {
|
|
734
|
+
var line = displayedLines[i2];
|
|
735
|
+
var lineNo = firstDisplayedLine + i2;
|
|
736
736
|
errorLines.push(pad(String(lineNo), lastLineDigits) + " " + line);
|
|
737
737
|
if (lineNo === token.line) {
|
|
738
738
|
errorLines.push(pad("", lastLineDigits + token.col + 1) + "^");
|
|
@@ -842,12 +842,12 @@ var require_parser = __commonJS({
|
|
|
842
842
|
function strictArgStyleParam(lt, param) {
|
|
843
843
|
let value = "";
|
|
844
844
|
let text = "";
|
|
845
|
-
for (const
|
|
846
|
-
const pText =
|
|
845
|
+
for (const p2 of param) {
|
|
846
|
+
const pText = p2.ctx.text;
|
|
847
847
|
text += pText;
|
|
848
|
-
switch (
|
|
848
|
+
switch (p2.type) {
|
|
849
849
|
case "content":
|
|
850
|
-
value +=
|
|
850
|
+
value += p2.value;
|
|
851
851
|
break;
|
|
852
852
|
case "argument":
|
|
853
853
|
case "function":
|
|
@@ -858,12 +858,12 @@ var require_parser = __commonJS({
|
|
|
858
858
|
throw new ParseError(lt, `Unsupported part in strict mode function arg style: ${pText}`);
|
|
859
859
|
}
|
|
860
860
|
}
|
|
861
|
-
const
|
|
861
|
+
const c2 = {
|
|
862
862
|
type: "content",
|
|
863
863
|
value: value.trim(),
|
|
864
864
|
ctx: Object.assign({}, param[0].ctx, { text })
|
|
865
865
|
};
|
|
866
|
-
return [
|
|
866
|
+
return [c2];
|
|
867
867
|
}
|
|
868
868
|
var strictArgTypes = [
|
|
869
869
|
"number",
|
|
@@ -1043,7 +1043,7 @@ var require_parser = __commonJS({
|
|
|
1043
1043
|
// packages/affix/index.js
|
|
1044
1044
|
import { html as html3 } from "lit";
|
|
1045
1045
|
|
|
1046
|
-
// node_modules/.pnpm/@warp-ds+css@1.
|
|
1046
|
+
// node_modules/.pnpm/@warp-ds+css@1.10.1/node_modules/@warp-ds/css/component-classes/index.js
|
|
1047
1047
|
var badge = {
|
|
1048
1048
|
base: "py-4 px-8 border-0 rounded-4 text-xs inline-flex",
|
|
1049
1049
|
neutral: "bg-[--w-color-badge-neutral-background] s-text",
|
|
@@ -1279,6 +1279,23 @@ var modal = {
|
|
|
1279
1279
|
titleButtonIcon: "h-16 w-16 sm:h-24 sm:w-24",
|
|
1280
1280
|
titleButtonIconRotated: "transform rotate-90"
|
|
1281
1281
|
};
|
|
1282
|
+
var modalElement = {
|
|
1283
|
+
// several items in here are 'resets' for the <dialog> element
|
|
1284
|
+
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]",
|
|
1285
|
+
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",
|
|
1286
|
+
contentSlot: "block overflow-y-auto overflow-x-hidden last-child:mb-0 grow shrink px-16 sm:px-32 relative",
|
|
1287
|
+
header: "relative pb-8",
|
|
1288
|
+
headerTitleBar: "pt-16 sm:pt-24 px-16 sm:px-32 grid gap-12 grid-cols-[auto_1fr_auto] items-start shrink-0!",
|
|
1289
|
+
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",
|
|
1290
|
+
headerButtonLeft: "-ml-8 s-icon bg-transparent hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]",
|
|
1291
|
+
headerCloseButton: "-mr-8 s-icon bg-transparent hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]",
|
|
1292
|
+
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`,
|
|
1293
|
+
headerTitle: "mb-0 t3 self-center",
|
|
1294
|
+
headerTitleWithBackButton: "justify-self-center",
|
|
1295
|
+
headerTitleWithoutBackButton: "col-span-2",
|
|
1296
|
+
headerTitleWithTopArea: "pt-16 px-16 sm:px-32",
|
|
1297
|
+
footer: "flex justify-end shrink-0 px-16 sm:px-32 pt-24"
|
|
1298
|
+
};
|
|
1282
1299
|
var alert = {
|
|
1283
1300
|
alert: "flex p-16 border border-l-4 rounded-4 s-text",
|
|
1284
1301
|
willChangeHeight: "will-change-height",
|
|
@@ -1452,7 +1469,7 @@ var attention = {
|
|
|
1452
1469
|
import WarpElement from "@warp-ds/elements-core";
|
|
1453
1470
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
1454
1471
|
|
|
1455
|
-
// node_modules/.pnpm/@warp-ds+icons@2.0.
|
|
1472
|
+
// node_modules/.pnpm/@warp-ds+icons@2.0.1/node_modules/@warp-ds/icons/dist/elements/search-16.js
|
|
1456
1473
|
import { LitElement } from "lit";
|
|
1457
1474
|
import { unsafeStatic, html } from "lit/static-html.js";
|
|
1458
1475
|
|
|
@@ -1511,7 +1528,7 @@ Message: ${message}`);
|
|
|
1511
1528
|
|
|
1512
1529
|
// node_modules/.pnpm/@lingui+core@4.7.1/node_modules/@lingui/core/dist/index.mjs
|
|
1513
1530
|
var isString = (s) => typeof s === "string";
|
|
1514
|
-
var isFunction = (
|
|
1531
|
+
var isFunction = (f2) => typeof f2 === "function";
|
|
1515
1532
|
var cache = /* @__PURE__ */ new Map();
|
|
1516
1533
|
var defaultLocale = "en";
|
|
1517
1534
|
function normalizeLocales(locales) {
|
|
@@ -1739,17 +1756,17 @@ var I18n = class extends EventEmitter {
|
|
|
1739
1756
|
}
|
|
1740
1757
|
this.emit("change");
|
|
1741
1758
|
}
|
|
1742
|
-
_load(locale,
|
|
1759
|
+
_load(locale, messages46) {
|
|
1743
1760
|
const maybeMessages = this._messages[locale];
|
|
1744
1761
|
if (!maybeMessages) {
|
|
1745
|
-
this._messages[locale] =
|
|
1762
|
+
this._messages[locale] = messages46;
|
|
1746
1763
|
} else {
|
|
1747
|
-
Object.assign(maybeMessages,
|
|
1764
|
+
Object.assign(maybeMessages, messages46);
|
|
1748
1765
|
}
|
|
1749
1766
|
}
|
|
1750
|
-
load(localeOrMessages,
|
|
1751
|
-
if (typeof localeOrMessages == "string" && typeof
|
|
1752
|
-
this._load(localeOrMessages,
|
|
1767
|
+
load(localeOrMessages, messages46) {
|
|
1768
|
+
if (typeof localeOrMessages == "string" && typeof messages46 === "object") {
|
|
1769
|
+
this._load(localeOrMessages, messages46);
|
|
1753
1770
|
} else {
|
|
1754
1771
|
Object.entries(localeOrMessages).forEach(
|
|
1755
1772
|
([locale, messages210]) => this._load(locale, messages210)
|
|
@@ -1760,10 +1777,10 @@ var I18n = class extends EventEmitter {
|
|
|
1760
1777
|
/**
|
|
1761
1778
|
* @param options {@link LoadAndActivateOptions}
|
|
1762
1779
|
*/
|
|
1763
|
-
loadAndActivate({ locale, locales, messages:
|
|
1780
|
+
loadAndActivate({ locale, locales, messages: messages46 }) {
|
|
1764
1781
|
this._locale = locale;
|
|
1765
1782
|
this._locales = locales || void 0;
|
|
1766
|
-
this._messages[this._locale] =
|
|
1783
|
+
this._messages[this._locale] = messages46;
|
|
1767
1784
|
this.emit("change");
|
|
1768
1785
|
}
|
|
1769
1786
|
activate(locale, locales) {
|
|
@@ -1818,7 +1835,7 @@ function setupI18n(params = {}) {
|
|
|
1818
1835
|
}
|
|
1819
1836
|
var i18n = setupI18n();
|
|
1820
1837
|
|
|
1821
|
-
// node_modules/.pnpm/@warp-ds+icons@2.0.
|
|
1838
|
+
// node_modules/.pnpm/@warp-ds+icons@2.0.1/node_modules/@warp-ds/icons/dist/elements/search-16.js
|
|
1822
1839
|
var messages = JSON.parse('{"icon.title.search":"Forst\xF8rrelsesglass"}');
|
|
1823
1840
|
var messages2 = JSON.parse('{"icon.title.search":"Magnifying glass"}');
|
|
1824
1841
|
var messages3 = JSON.parse('{"icon.title.search":"Suurennuslasi"}');
|
|
@@ -1892,8 +1909,8 @@ var getMessages = (locale, enMsg, nbMsg, fiMsg) => {
|
|
|
1892
1909
|
};
|
|
1893
1910
|
var activateI18n = (enMessages, nbMessages, fiMessages) => {
|
|
1894
1911
|
const locale = detectLocale();
|
|
1895
|
-
const
|
|
1896
|
-
i18n.load(locale,
|
|
1912
|
+
const messages46 = getMessages(locale, enMessages, nbMessages, fiMessages);
|
|
1913
|
+
i18n.load(locale, messages46);
|
|
1897
1914
|
i18n.activate(locale);
|
|
1898
1915
|
};
|
|
1899
1916
|
activateI18n(messages2, messages, messages3);
|
|
@@ -1907,7 +1924,7 @@ if (!customElements.get("w-icon-search-16")) {
|
|
|
1907
1924
|
customElements.define("w-icon-search-16", IconSearch16);
|
|
1908
1925
|
}
|
|
1909
1926
|
|
|
1910
|
-
// node_modules/.pnpm/@warp-ds+icons@2.0.
|
|
1927
|
+
// node_modules/.pnpm/@warp-ds+icons@2.0.1/node_modules/@warp-ds/icons/dist/elements/close-16.js
|
|
1911
1928
|
import { LitElement as LitElement2 } from "lit";
|
|
1912
1929
|
import { unsafeStatic as unsafeStatic2, html as html2 } from "lit/static-html.js";
|
|
1913
1930
|
var messages4 = JSON.parse('{"icon.title.close":"Kryss"}');
|
|
@@ -1983,8 +2000,8 @@ var getMessages2 = (locale, enMsg, nbMsg, fiMsg) => {
|
|
|
1983
2000
|
};
|
|
1984
2001
|
var activateI18n2 = (enMessages, nbMessages, fiMessages) => {
|
|
1985
2002
|
const locale = detectLocale2();
|
|
1986
|
-
const
|
|
1987
|
-
i18n.load(locale,
|
|
2003
|
+
const messages46 = getMessages2(locale, enMessages, nbMessages, fiMessages);
|
|
2004
|
+
i18n.load(locale, messages46);
|
|
1988
2005
|
i18n.activate(locale);
|
|
1989
2006
|
};
|
|
1990
2007
|
activateI18n2(messages22, messages4, messages32);
|
|
@@ -2097,11 +2114,11 @@ import { css, html as html8 } from "lit";
|
|
|
2097
2114
|
|
|
2098
2115
|
// node_modules/.pnpm/@chbphone55+classnames@2.0.0/node_modules/@chbphone55/classnames/dist/index.m.js
|
|
2099
2116
|
var r = function() {
|
|
2100
|
-
for (var t = [],
|
|
2101
|
-
t[
|
|
2102
|
-
return t.reduce(function(t2,
|
|
2103
|
-
return t2.concat("string" == typeof
|
|
2104
|
-
return
|
|
2117
|
+
for (var t = [], n2 = arguments.length; n2--; )
|
|
2118
|
+
t[n2] = arguments[n2];
|
|
2119
|
+
return t.reduce(function(t2, n3) {
|
|
2120
|
+
return t2.concat("string" == typeof n3 ? n3 : Array.isArray(n3) ? r.apply(void 0, n3) : "object" == typeof n3 && n3 ? Object.keys(n3).map(function(r3) {
|
|
2121
|
+
return n3[r3] ? r3 : "";
|
|
2105
2122
|
}) : "");
|
|
2106
2123
|
}, []).join(" ");
|
|
2107
2124
|
};
|
|
@@ -2109,7 +2126,7 @@ var r = function() {
|
|
|
2109
2126
|
// packages/alert/index.js
|
|
2110
2127
|
import WarpElement2 from "@warp-ds/elements-core";
|
|
2111
2128
|
|
|
2112
|
-
// node_modules/.pnpm/@warp-ds+icons@2.0.
|
|
2129
|
+
// node_modules/.pnpm/@warp-ds+icons@2.0.1/node_modules/@warp-ds/icons/dist/elements/info-16.js
|
|
2113
2130
|
import { LitElement as LitElement3 } from "lit";
|
|
2114
2131
|
import { unsafeStatic as unsafeStatic3, html as html4 } from "lit/static-html.js";
|
|
2115
2132
|
var messages5 = JSON.parse('{"icon.title.info":"Informasjonssirkel"}');
|
|
@@ -2185,8 +2202,8 @@ var getMessages3 = (locale, enMsg, nbMsg, fiMsg) => {
|
|
|
2185
2202
|
};
|
|
2186
2203
|
var activateI18n3 = (enMessages, nbMessages, fiMessages) => {
|
|
2187
2204
|
const locale = detectLocale3();
|
|
2188
|
-
const
|
|
2189
|
-
i18n.load(locale,
|
|
2205
|
+
const messages46 = getMessages3(locale, enMessages, nbMessages, fiMessages);
|
|
2206
|
+
i18n.load(locale, messages46);
|
|
2190
2207
|
i18n.activate(locale);
|
|
2191
2208
|
};
|
|
2192
2209
|
activateI18n3(messages23, messages5, messages33);
|
|
@@ -2200,7 +2217,7 @@ if (!customElements.get("w-icon-info-16")) {
|
|
|
2200
2217
|
customElements.define("w-icon-info-16", IconInfo16);
|
|
2201
2218
|
}
|
|
2202
2219
|
|
|
2203
|
-
// node_modules/.pnpm/@warp-ds+icons@2.0.
|
|
2220
|
+
// node_modules/.pnpm/@warp-ds+icons@2.0.1/node_modules/@warp-ds/icons/dist/elements/warning-16.js
|
|
2204
2221
|
import { LitElement as LitElement4 } from "lit";
|
|
2205
2222
|
import { unsafeStatic as unsafeStatic4, html as html5 } from "lit/static-html.js";
|
|
2206
2223
|
var messages6 = JSON.parse('{"icon.title.warning":"Varseltrekant med utropstegn"}');
|
|
@@ -2276,8 +2293,8 @@ var getMessages4 = (locale, enMsg, nbMsg, fiMsg) => {
|
|
|
2276
2293
|
};
|
|
2277
2294
|
var activateI18n4 = (enMessages, nbMessages, fiMessages) => {
|
|
2278
2295
|
const locale = detectLocale4();
|
|
2279
|
-
const
|
|
2280
|
-
i18n.load(locale,
|
|
2296
|
+
const messages46 = getMessages4(locale, enMessages, nbMessages, fiMessages);
|
|
2297
|
+
i18n.load(locale, messages46);
|
|
2281
2298
|
i18n.activate(locale);
|
|
2282
2299
|
};
|
|
2283
2300
|
activateI18n4(messages24, messages6, messages34);
|
|
@@ -2291,7 +2308,7 @@ if (!customElements.get("w-icon-warning-16")) {
|
|
|
2291
2308
|
customElements.define("w-icon-warning-16", IconWarning16);
|
|
2292
2309
|
}
|
|
2293
2310
|
|
|
2294
|
-
// node_modules/.pnpm/@warp-ds+icons@2.0.
|
|
2311
|
+
// node_modules/.pnpm/@warp-ds+icons@2.0.1/node_modules/@warp-ds/icons/dist/elements/error-16.js
|
|
2295
2312
|
import { LitElement as LitElement5 } from "lit";
|
|
2296
2313
|
import { unsafeStatic as unsafeStatic5, html as html6 } from "lit/static-html.js";
|
|
2297
2314
|
var messages7 = JSON.parse('{"icon.title.error":"\xC5ttekant med utropstegn"}');
|
|
@@ -2367,8 +2384,8 @@ var getMessages5 = (locale, enMsg, nbMsg, fiMsg) => {
|
|
|
2367
2384
|
};
|
|
2368
2385
|
var activateI18n5 = (enMessages, nbMessages, fiMessages) => {
|
|
2369
2386
|
const locale = detectLocale5();
|
|
2370
|
-
const
|
|
2371
|
-
i18n.load(locale,
|
|
2387
|
+
const messages46 = getMessages5(locale, enMessages, nbMessages, fiMessages);
|
|
2388
|
+
i18n.load(locale, messages46);
|
|
2372
2389
|
i18n.activate(locale);
|
|
2373
2390
|
};
|
|
2374
2391
|
activateI18n5(messages25, messages7, messages35);
|
|
@@ -2382,7 +2399,7 @@ if (!customElements.get("w-icon-error-16")) {
|
|
|
2382
2399
|
customElements.define("w-icon-error-16", IconError16);
|
|
2383
2400
|
}
|
|
2384
2401
|
|
|
2385
|
-
// node_modules/.pnpm/@warp-ds+icons@2.0.
|
|
2402
|
+
// node_modules/.pnpm/@warp-ds+icons@2.0.1/node_modules/@warp-ds/icons/dist/elements/success-16.js
|
|
2386
2403
|
import { LitElement as LitElement6 } from "lit";
|
|
2387
2404
|
import { unsafeStatic as unsafeStatic6, html as html7 } from "lit/static-html.js";
|
|
2388
2405
|
var messages8 = JSON.parse('{"icon.title.success":"Sirkel med sjekkmerke"}');
|
|
@@ -2458,8 +2475,8 @@ var getMessages6 = (locale, enMsg, nbMsg, fiMsg) => {
|
|
|
2458
2475
|
};
|
|
2459
2476
|
var activateI18n6 = (enMessages, nbMessages, fiMessages) => {
|
|
2460
2477
|
const locale = detectLocale6();
|
|
2461
|
-
const
|
|
2462
|
-
i18n.load(locale,
|
|
2478
|
+
const messages46 = getMessages6(locale, enMessages, nbMessages, fiMessages);
|
|
2479
|
+
i18n.load(locale, messages46);
|
|
2463
2480
|
i18n.activate(locale);
|
|
2464
2481
|
};
|
|
2465
2482
|
activateI18n6(messages26, messages8, messages36);
|
|
@@ -2563,7 +2580,7 @@ if (!customElements.get("w-alert")) {
|
|
|
2563
2580
|
// packages/attention/index.js
|
|
2564
2581
|
import { css as css2, html as html9, nothing } from "lit";
|
|
2565
2582
|
|
|
2566
|
-
// node_modules/.pnpm/@floating-ui+utils@0.2.
|
|
2583
|
+
// node_modules/.pnpm/@floating-ui+utils@0.2.2/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
2567
2584
|
var sides = ["top", "right", "bottom", "left"];
|
|
2568
2585
|
var min = Math.min;
|
|
2569
2586
|
var max = Math.max;
|
|
@@ -2675,15 +2692,25 @@ function getPaddingObject(padding) {
|
|
|
2675
2692
|
};
|
|
2676
2693
|
}
|
|
2677
2694
|
function rectToClientRect(rect) {
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
}
|
|
2695
|
+
const {
|
|
2696
|
+
x,
|
|
2697
|
+
y: y2,
|
|
2698
|
+
width,
|
|
2699
|
+
height
|
|
2700
|
+
} = rect;
|
|
2701
|
+
return {
|
|
2702
|
+
width,
|
|
2703
|
+
height,
|
|
2704
|
+
top: y2,
|
|
2705
|
+
left: x,
|
|
2706
|
+
right: x + width,
|
|
2707
|
+
bottom: y2 + height,
|
|
2708
|
+
x,
|
|
2709
|
+
y: y2
|
|
2710
|
+
};
|
|
2684
2711
|
}
|
|
2685
2712
|
|
|
2686
|
-
// node_modules/.pnpm/@floating-ui+core@1.6.
|
|
2713
|
+
// node_modules/.pnpm/@floating-ui+core@1.6.2/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
2687
2714
|
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
2688
2715
|
let {
|
|
2689
2716
|
reference,
|
|
@@ -2755,16 +2782,16 @@ var computePosition = async (reference, floating, config) => {
|
|
|
2755
2782
|
});
|
|
2756
2783
|
let {
|
|
2757
2784
|
x,
|
|
2758
|
-
y
|
|
2785
|
+
y: y2
|
|
2759
2786
|
} = computeCoordsFromPlacement(rects, placement, rtl);
|
|
2760
2787
|
let statefulPlacement = placement;
|
|
2761
2788
|
let middlewareData = {};
|
|
2762
2789
|
let resetCount = 0;
|
|
2763
|
-
for (let
|
|
2790
|
+
for (let i2 = 0; i2 < validMiddleware.length; i2++) {
|
|
2764
2791
|
const {
|
|
2765
2792
|
name,
|
|
2766
2793
|
fn
|
|
2767
|
-
} = validMiddleware[
|
|
2794
|
+
} = validMiddleware[i2];
|
|
2768
2795
|
const {
|
|
2769
2796
|
x: nextX,
|
|
2770
2797
|
y: nextY,
|
|
@@ -2772,7 +2799,7 @@ var computePosition = async (reference, floating, config) => {
|
|
|
2772
2799
|
reset
|
|
2773
2800
|
} = await fn({
|
|
2774
2801
|
x,
|
|
2775
|
-
y,
|
|
2802
|
+
y: y2,
|
|
2776
2803
|
initialPlacement: placement,
|
|
2777
2804
|
placement: statefulPlacement,
|
|
2778
2805
|
strategy,
|
|
@@ -2785,7 +2812,7 @@ var computePosition = async (reference, floating, config) => {
|
|
|
2785
2812
|
}
|
|
2786
2813
|
});
|
|
2787
2814
|
x = nextX != null ? nextX : x;
|
|
2788
|
-
|
|
2815
|
+
y2 = nextY != null ? nextY : y2;
|
|
2789
2816
|
middlewareData = __spreadProps(__spreadValues({}, middlewareData), {
|
|
2790
2817
|
[name]: __spreadValues(__spreadValues({}, middlewareData[name]), data)
|
|
2791
2818
|
});
|
|
@@ -2804,15 +2831,15 @@ var computePosition = async (reference, floating, config) => {
|
|
|
2804
2831
|
}
|
|
2805
2832
|
({
|
|
2806
2833
|
x,
|
|
2807
|
-
y
|
|
2834
|
+
y: y2
|
|
2808
2835
|
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
|
2809
2836
|
}
|
|
2810
|
-
|
|
2837
|
+
i2 = -1;
|
|
2811
2838
|
}
|
|
2812
2839
|
}
|
|
2813
2840
|
return {
|
|
2814
2841
|
x,
|
|
2815
|
-
y,
|
|
2842
|
+
y: y2,
|
|
2816
2843
|
placement: statefulPlacement,
|
|
2817
2844
|
strategy,
|
|
2818
2845
|
middlewareData
|
|
@@ -2825,7 +2852,7 @@ async function detectOverflow(state, options) {
|
|
|
2825
2852
|
}
|
|
2826
2853
|
const {
|
|
2827
2854
|
x,
|
|
2828
|
-
y,
|
|
2855
|
+
y: y2,
|
|
2829
2856
|
platform: platform2,
|
|
2830
2857
|
rects,
|
|
2831
2858
|
elements,
|
|
@@ -2847,10 +2874,12 @@ async function detectOverflow(state, options) {
|
|
|
2847
2874
|
rootBoundary,
|
|
2848
2875
|
strategy
|
|
2849
2876
|
}));
|
|
2850
|
-
const rect = elementContext === "floating" ?
|
|
2877
|
+
const rect = elementContext === "floating" ? {
|
|
2851
2878
|
x,
|
|
2852
|
-
y
|
|
2853
|
-
|
|
2879
|
+
y: y2,
|
|
2880
|
+
width: rects.floating.width,
|
|
2881
|
+
height: rects.floating.height
|
|
2882
|
+
} : rects.reference;
|
|
2854
2883
|
const offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating));
|
|
2855
2884
|
const offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {
|
|
2856
2885
|
x: 1,
|
|
@@ -2878,7 +2907,7 @@ var arrow = (options) => ({
|
|
|
2878
2907
|
async fn(state) {
|
|
2879
2908
|
const {
|
|
2880
2909
|
x,
|
|
2881
|
-
y,
|
|
2910
|
+
y: y2,
|
|
2882
2911
|
placement,
|
|
2883
2912
|
rects,
|
|
2884
2913
|
platform: platform2,
|
|
@@ -2895,7 +2924,7 @@ var arrow = (options) => ({
|
|
|
2895
2924
|
const paddingObject = getPaddingObject(padding);
|
|
2896
2925
|
const coords = {
|
|
2897
2926
|
x,
|
|
2898
|
-
y
|
|
2927
|
+
y: y2
|
|
2899
2928
|
};
|
|
2900
2929
|
const axis = getAlignmentAxis(placement);
|
|
2901
2930
|
const length = getAxisLength(axis);
|
|
@@ -3005,12 +3034,12 @@ var flip = function(options) {
|
|
|
3005
3034
|
}
|
|
3006
3035
|
};
|
|
3007
3036
|
}
|
|
3008
|
-
let resetPlacement = (_overflowsData$filter = overflowsData.filter((
|
|
3037
|
+
let resetPlacement = (_overflowsData$filter = overflowsData.filter((d2) => d2.overflows[0] <= 0).sort((a2, b2) => a2.overflows[1] - b2.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
|
|
3009
3038
|
if (!resetPlacement) {
|
|
3010
3039
|
switch (fallbackStrategy) {
|
|
3011
3040
|
case "bestFit": {
|
|
3012
3041
|
var _overflowsData$map$so;
|
|
3013
|
-
const placement2 = (_overflowsData$map$so = overflowsData.map((
|
|
3042
|
+
const placement2 = (_overflowsData$map$so = overflowsData.map((d2) => [d2.placement, d2.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a2, b2) => a2[1] - b2[1])[0]) == null ? void 0 : _overflowsData$map$so[0];
|
|
3014
3043
|
if (placement2) {
|
|
3015
3044
|
resetPlacement = placement2;
|
|
3016
3045
|
}
|
|
@@ -3140,7 +3169,7 @@ var offset = function(options) {
|
|
|
3140
3169
|
var _middlewareData$offse, _middlewareData$arrow;
|
|
3141
3170
|
const {
|
|
3142
3171
|
x,
|
|
3143
|
-
y,
|
|
3172
|
+
y: y2,
|
|
3144
3173
|
placement,
|
|
3145
3174
|
middlewareData
|
|
3146
3175
|
} = state;
|
|
@@ -3150,7 +3179,7 @@ var offset = function(options) {
|
|
|
3150
3179
|
}
|
|
3151
3180
|
return {
|
|
3152
3181
|
x: x + diffCoords.x,
|
|
3153
|
-
y:
|
|
3182
|
+
y: y2 + diffCoords.y,
|
|
3154
3183
|
data: __spreadProps(__spreadValues({}, diffCoords), {
|
|
3155
3184
|
placement
|
|
3156
3185
|
})
|
|
@@ -3159,7 +3188,7 @@ var offset = function(options) {
|
|
|
3159
3188
|
};
|
|
3160
3189
|
};
|
|
3161
3190
|
|
|
3162
|
-
// node_modules/.pnpm/@floating-ui+utils@0.2.
|
|
3191
|
+
// node_modules/.pnpm/@floating-ui+utils@0.2.2/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
3163
3192
|
function getNodeName(node) {
|
|
3164
3193
|
if (isNode(node)) {
|
|
3165
3194
|
return (node.nodeName || "").toLowerCase();
|
|
@@ -3203,17 +3232,16 @@ function isTableElement(element) {
|
|
|
3203
3232
|
}
|
|
3204
3233
|
function isContainingBlock(element) {
|
|
3205
3234
|
const webkit = isWebKit();
|
|
3206
|
-
const
|
|
3207
|
-
return
|
|
3235
|
+
const css11 = getComputedStyle(element);
|
|
3236
|
+
return css11.transform !== "none" || css11.perspective !== "none" || (css11.containerType ? css11.containerType !== "normal" : false) || !webkit && (css11.backdropFilter ? css11.backdropFilter !== "none" : false) || !webkit && (css11.filter ? css11.filter !== "none" : false) || ["transform", "perspective", "filter"].some((value) => (css11.willChange || "").includes(value)) || ["paint", "layout", "strict", "content"].some((value) => (css11.contain || "").includes(value));
|
|
3208
3237
|
}
|
|
3209
3238
|
function getContainingBlock(element) {
|
|
3210
3239
|
let currentNode = getParentNode(element);
|
|
3211
3240
|
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
3212
3241
|
if (isContainingBlock(currentNode)) {
|
|
3213
3242
|
return currentNode;
|
|
3214
|
-
} else {
|
|
3215
|
-
currentNode = getParentNode(currentNode);
|
|
3216
3243
|
}
|
|
3244
|
+
currentNode = getParentNode(currentNode);
|
|
3217
3245
|
}
|
|
3218
3246
|
return null;
|
|
3219
3247
|
}
|
|
@@ -3282,9 +3310,9 @@ function getOverflowAncestors(node, list, traverseIframes) {
|
|
|
3282
3310
|
|
|
3283
3311
|
// node_modules/.pnpm/@floating-ui+dom@1.6.3/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
3284
3312
|
function getCssDimensions(element) {
|
|
3285
|
-
const
|
|
3286
|
-
let width = parseFloat(
|
|
3287
|
-
let height = parseFloat(
|
|
3313
|
+
const css11 = getComputedStyle(element);
|
|
3314
|
+
let width = parseFloat(css11.width) || 0;
|
|
3315
|
+
let height = parseFloat(css11.height) || 0;
|
|
3288
3316
|
const hasOffset = isHTMLElement(element);
|
|
3289
3317
|
const offsetWidth = hasOffset ? element.offsetWidth : width;
|
|
3290
3318
|
const offsetHeight = hasOffset ? element.offsetHeight : height;
|
|
@@ -3314,16 +3342,16 @@ function getScale(element) {
|
|
|
3314
3342
|
$
|
|
3315
3343
|
} = getCssDimensions(domElement);
|
|
3316
3344
|
let x = ($ ? round(rect.width) : rect.width) / width;
|
|
3317
|
-
let
|
|
3345
|
+
let y2 = ($ ? round(rect.height) : rect.height) / height;
|
|
3318
3346
|
if (!x || !Number.isFinite(x)) {
|
|
3319
3347
|
x = 1;
|
|
3320
3348
|
}
|
|
3321
|
-
if (!
|
|
3322
|
-
|
|
3349
|
+
if (!y2 || !Number.isFinite(y2)) {
|
|
3350
|
+
y2 = 1;
|
|
3323
3351
|
}
|
|
3324
3352
|
return {
|
|
3325
3353
|
x,
|
|
3326
|
-
y
|
|
3354
|
+
y: y2
|
|
3327
3355
|
};
|
|
3328
3356
|
}
|
|
3329
3357
|
var noOffsets = /* @__PURE__ */ createCoords(0);
|
|
@@ -3367,7 +3395,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
3367
3395
|
}
|
|
3368
3396
|
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
3369
3397
|
let x = (clientRect.left + visualOffsets.x) / scale.x;
|
|
3370
|
-
let
|
|
3398
|
+
let y2 = (clientRect.top + visualOffsets.y) / scale.y;
|
|
3371
3399
|
let width = clientRect.width / scale.x;
|
|
3372
3400
|
let height = clientRect.height / scale.y;
|
|
3373
3401
|
if (domElement) {
|
|
@@ -3378,15 +3406,15 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
3378
3406
|
while (currentIFrame && offsetParent && offsetWin !== currentWin) {
|
|
3379
3407
|
const iframeScale = getScale(currentIFrame);
|
|
3380
3408
|
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
3381
|
-
const
|
|
3382
|
-
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(
|
|
3383
|
-
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(
|
|
3409
|
+
const css11 = getComputedStyle(currentIFrame);
|
|
3410
|
+
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css11.paddingLeft)) * iframeScale.x;
|
|
3411
|
+
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css11.paddingTop)) * iframeScale.y;
|
|
3384
3412
|
x *= iframeScale.x;
|
|
3385
|
-
|
|
3413
|
+
y2 *= iframeScale.y;
|
|
3386
3414
|
width *= iframeScale.x;
|
|
3387
3415
|
height *= iframeScale.y;
|
|
3388
3416
|
x += left;
|
|
3389
|
-
|
|
3417
|
+
y2 += top;
|
|
3390
3418
|
currentWin = getWindow(currentIFrame);
|
|
3391
3419
|
currentIFrame = currentWin.frameElement;
|
|
3392
3420
|
}
|
|
@@ -3395,7 +3423,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
3395
3423
|
width,
|
|
3396
3424
|
height,
|
|
3397
3425
|
x,
|
|
3398
|
-
y
|
|
3426
|
+
y: y2
|
|
3399
3427
|
});
|
|
3400
3428
|
}
|
|
3401
3429
|
var topLayerSelectors = [":popover-open", ":modal"];
|
|
@@ -3453,45 +3481,45 @@ function getWindowScrollBarX(element) {
|
|
|
3453
3481
|
return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
|
|
3454
3482
|
}
|
|
3455
3483
|
function getDocumentRect(element) {
|
|
3456
|
-
const
|
|
3484
|
+
const html30 = getDocumentElement(element);
|
|
3457
3485
|
const scroll = getNodeScroll(element);
|
|
3458
3486
|
const body = element.ownerDocument.body;
|
|
3459
|
-
const width = max(
|
|
3460
|
-
const height = max(
|
|
3487
|
+
const width = max(html30.scrollWidth, html30.clientWidth, body.scrollWidth, body.clientWidth);
|
|
3488
|
+
const height = max(html30.scrollHeight, html30.clientHeight, body.scrollHeight, body.clientHeight);
|
|
3461
3489
|
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
3462
|
-
const
|
|
3490
|
+
const y2 = -scroll.scrollTop;
|
|
3463
3491
|
if (getComputedStyle(body).direction === "rtl") {
|
|
3464
|
-
x += max(
|
|
3492
|
+
x += max(html30.clientWidth, body.clientWidth) - width;
|
|
3465
3493
|
}
|
|
3466
3494
|
return {
|
|
3467
3495
|
width,
|
|
3468
3496
|
height,
|
|
3469
3497
|
x,
|
|
3470
|
-
y
|
|
3498
|
+
y: y2
|
|
3471
3499
|
};
|
|
3472
3500
|
}
|
|
3473
3501
|
function getViewportRect(element, strategy) {
|
|
3474
3502
|
const win = getWindow(element);
|
|
3475
|
-
const
|
|
3503
|
+
const html30 = getDocumentElement(element);
|
|
3476
3504
|
const visualViewport = win.visualViewport;
|
|
3477
|
-
let width =
|
|
3478
|
-
let height =
|
|
3505
|
+
let width = html30.clientWidth;
|
|
3506
|
+
let height = html30.clientHeight;
|
|
3479
3507
|
let x = 0;
|
|
3480
|
-
let
|
|
3508
|
+
let y2 = 0;
|
|
3481
3509
|
if (visualViewport) {
|
|
3482
3510
|
width = visualViewport.width;
|
|
3483
3511
|
height = visualViewport.height;
|
|
3484
3512
|
const visualViewportBased = isWebKit();
|
|
3485
3513
|
if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
|
|
3486
3514
|
x = visualViewport.offsetLeft;
|
|
3487
|
-
|
|
3515
|
+
y2 = visualViewport.offsetTop;
|
|
3488
3516
|
}
|
|
3489
3517
|
}
|
|
3490
3518
|
return {
|
|
3491
3519
|
width,
|
|
3492
3520
|
height,
|
|
3493
3521
|
x,
|
|
3494
|
-
y
|
|
3522
|
+
y: y2
|
|
3495
3523
|
};
|
|
3496
3524
|
}
|
|
3497
3525
|
function getInnerBoundingClientRect(element, strategy) {
|
|
@@ -3502,12 +3530,12 @@ function getInnerBoundingClientRect(element, strategy) {
|
|
|
3502
3530
|
const width = element.clientWidth * scale.x;
|
|
3503
3531
|
const height = element.clientHeight * scale.y;
|
|
3504
3532
|
const x = left * scale.x;
|
|
3505
|
-
const
|
|
3533
|
+
const y2 = top * scale.y;
|
|
3506
3534
|
return {
|
|
3507
3535
|
width,
|
|
3508
3536
|
height,
|
|
3509
3537
|
x,
|
|
3510
|
-
y
|
|
3538
|
+
y: y2
|
|
3511
3539
|
};
|
|
3512
3540
|
}
|
|
3513
3541
|
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
|
|
@@ -3618,10 +3646,10 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
3618
3646
|
}
|
|
3619
3647
|
}
|
|
3620
3648
|
const x = rect.left + scroll.scrollLeft - offsets.x;
|
|
3621
|
-
const
|
|
3649
|
+
const y2 = rect.top + scroll.scrollTop - offsets.y;
|
|
3622
3650
|
return {
|
|
3623
3651
|
x,
|
|
3624
|
-
y,
|
|
3652
|
+
y: y2,
|
|
3625
3653
|
width: rect.width,
|
|
3626
3654
|
height: rect.height
|
|
3627
3655
|
};
|
|
@@ -3691,7 +3719,7 @@ var computePosition2 = (reference, floating, options) => {
|
|
|
3691
3719
|
}));
|
|
3692
3720
|
};
|
|
3693
3721
|
|
|
3694
|
-
// node_modules/.pnpm/@warp-ds+core@1.1.
|
|
3722
|
+
// node_modules/.pnpm/@warp-ds+core@1.1.2_@floating-ui+dom@1.6.3/node_modules/@warp-ds/core/dist/attention/utils/helpers.js
|
|
3695
3723
|
var TOP_START = "top-start";
|
|
3696
3724
|
var TOP = "top";
|
|
3697
3725
|
var TOP_END = "top-end";
|
|
@@ -3746,12 +3774,10 @@ var rotation = {
|
|
|
3746
3774
|
[BOTTOM]: -135,
|
|
3747
3775
|
[BOTTOM_END]: -135
|
|
3748
3776
|
};
|
|
3749
|
-
var middlePosition = "calc(50% - 7px)";
|
|
3750
|
-
var isDirectionVertical = (name) => [TOP_START, TOP, TOP_END, BOTTOM_START, BOTTOM, BOTTOM_END].includes(name);
|
|
3751
3777
|
var arrowDirectionClassname = (dir) => {
|
|
3752
3778
|
let direction;
|
|
3753
3779
|
if (/-/.test(dir)) {
|
|
3754
|
-
direction = dir.split("-").map((
|
|
3780
|
+
direction = dir.split("-").map((d2) => d2.charAt(0).toUpperCase() + d2.slice(1)).join("");
|
|
3755
3781
|
} else {
|
|
3756
3782
|
direction = dir.charAt(0).toUpperCase() + dir.slice(1);
|
|
3757
3783
|
}
|
|
@@ -3770,17 +3796,6 @@ var applyArrowStyles = (arrowEl, arrowRotation2, dir) => {
|
|
|
3770
3796
|
transform: `rotate(${arrowRotation2}deg)`
|
|
3771
3797
|
});
|
|
3772
3798
|
};
|
|
3773
|
-
function computeCalloutArrow({ actualDirection, directionName = BOTTOM, arrowEl }) {
|
|
3774
|
-
if (!arrowEl)
|
|
3775
|
-
return;
|
|
3776
|
-
actualDirection = directionName;
|
|
3777
|
-
const directionIsVertical = isDirectionVertical(directionName);
|
|
3778
|
-
Object.assign((arrowEl == null ? void 0 : arrowEl.style) || {}, {
|
|
3779
|
-
left: directionIsVertical ? middlePosition : "",
|
|
3780
|
-
top: !directionIsVertical ? middlePosition : ""
|
|
3781
|
-
});
|
|
3782
|
-
applyArrowStyles(arrowEl, arrowRotation(actualDirection), actualDirection);
|
|
3783
|
-
}
|
|
3784
3799
|
async function useRecompute(state) {
|
|
3785
3800
|
var _a, _b, _c;
|
|
3786
3801
|
if (!(state == null ? void 0 : state.isShowing))
|
|
@@ -3788,33 +3803,34 @@ async function useRecompute(state) {
|
|
|
3788
3803
|
if (state == null ? void 0 : state.waitForDOM) {
|
|
3789
3804
|
await (state == null ? void 0 : state.waitForDOM());
|
|
3790
3805
|
}
|
|
3791
|
-
if (state == null ? void 0 : state.isCallout)
|
|
3792
|
-
return computeCalloutArrow(state);
|
|
3793
3806
|
if (!(state == null ? void 0 : state.targetEl) || !(state == null ? void 0 : state.attentionEl))
|
|
3794
3807
|
return;
|
|
3795
|
-
|
|
3796
|
-
const attentionEl = state
|
|
3808
|
+
let targetEl = state == null ? void 0 : state.targetEl;
|
|
3809
|
+
const attentionEl = state.attentionEl;
|
|
3797
3810
|
computePosition2(targetEl, attentionEl, {
|
|
3798
3811
|
placement: (_a = state == null ? void 0 : state.directionName) != null ? _a : BOTTOM,
|
|
3799
3812
|
middleware: [
|
|
3800
3813
|
offset({ mainAxis: (_b = state == null ? void 0 : state.distance) != null ? _b : 8, crossAxis: (_c = state == null ? void 0 : state.skidding) != null ? _c : 0 }),
|
|
3801
3814
|
(state == null ? void 0 : state.flip) && flip2({
|
|
3815
|
+
// 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
|
|
3802
3816
|
crossAxis: state == null ? void 0 : state.crossAxis,
|
|
3803
3817
|
fallbackPlacements: state == null ? void 0 : state.fallbackPlacements
|
|
3804
3818
|
}),
|
|
3805
3819
|
!(state == null ? void 0 : state.noArrow) && (state == null ? void 0 : state.arrowEl) && arrow2({ element: state == null ? void 0 : state.arrowEl }),
|
|
3806
3820
|
hide2()
|
|
3807
|
-
//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'.
|
|
3821
|
+
// 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'.
|
|
3808
3822
|
]
|
|
3809
|
-
}).then(({ x, y, middlewareData, placement }) => {
|
|
3823
|
+
}).then(({ x, y: y2, middlewareData, placement }) => {
|
|
3810
3824
|
state.actualDirection = placement;
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3825
|
+
if (!(state == null ? void 0 : state.isCallout)) {
|
|
3826
|
+
Object.assign(attentionEl.style, {
|
|
3827
|
+
left: `${x}px`,
|
|
3828
|
+
top: `${y2}px`
|
|
3829
|
+
});
|
|
3830
|
+
}
|
|
3815
3831
|
if ((middlewareData == null ? void 0 : middlewareData.hide) && !(state == null ? void 0 : state.isCallout)) {
|
|
3816
|
-
const { referenceHidden } = middlewareData
|
|
3817
|
-
Object.assign(attentionEl
|
|
3832
|
+
const { referenceHidden } = middlewareData.hide;
|
|
3833
|
+
Object.assign(attentionEl.style, {
|
|
3818
3834
|
visibility: referenceHidden ? "hidden" : ""
|
|
3819
3835
|
});
|
|
3820
3836
|
}
|
|
@@ -3822,26 +3838,26 @@ async function useRecompute(state) {
|
|
|
3822
3838
|
const arrowPlacement = arrowDirection(placement).split("-")[1];
|
|
3823
3839
|
if ((middlewareData == null ? void 0 : middlewareData.arrow) && (state == null ? void 0 : state.arrowEl)) {
|
|
3824
3840
|
const arrowEl = state == null ? void 0 : state.arrowEl;
|
|
3825
|
-
const { x:
|
|
3841
|
+
const { x: arrowX, y: arrowY } = middlewareData.arrow;
|
|
3826
3842
|
let top = "";
|
|
3827
3843
|
let right = "";
|
|
3828
3844
|
let bottom = "";
|
|
3829
3845
|
let left = "";
|
|
3830
3846
|
if (arrowPlacement === "start") {
|
|
3831
|
-
const value = typeof
|
|
3832
|
-
top = typeof
|
|
3847
|
+
const value = typeof arrowX === "number" ? `calc(24px - ${arrowEl.offsetWidth / 2}px)` : "";
|
|
3848
|
+
top = typeof arrowY === "number" ? `calc(24px - ${arrowEl.offsetWidth / 2}px)` : "";
|
|
3833
3849
|
right = isRtl ? value : "";
|
|
3834
3850
|
left = isRtl ? "" : value;
|
|
3835
3851
|
} else if (arrowPlacement === "end") {
|
|
3836
|
-
const value = typeof
|
|
3852
|
+
const value = typeof arrowX === "number" ? `calc(24px - ${arrowEl.offsetWidth / 2}px)` : "";
|
|
3837
3853
|
right = isRtl ? "" : value;
|
|
3838
3854
|
left = isRtl ? value : "";
|
|
3839
|
-
bottom = typeof
|
|
3855
|
+
bottom = typeof arrowY === "number" ? `calc(24px - ${arrowEl.offsetWidth / 2}px)` : "";
|
|
3840
3856
|
} else {
|
|
3841
|
-
left = typeof
|
|
3842
|
-
top = typeof
|
|
3857
|
+
left = typeof arrowX === "number" ? `${arrowX}px` : "";
|
|
3858
|
+
top = typeof arrowY === "number" ? `${arrowY}px` : "";
|
|
3843
3859
|
}
|
|
3844
|
-
Object.assign(
|
|
3860
|
+
Object.assign(arrowEl.style, {
|
|
3845
3861
|
top,
|
|
3846
3862
|
right,
|
|
3847
3863
|
bottom,
|
|
@@ -3887,8 +3903,8 @@ var getMessages7 = (locale, enMsg, nbMsg, fiMsg) => {
|
|
|
3887
3903
|
};
|
|
3888
3904
|
var activateI18n7 = (enMessages, nbMessages, fiMessages) => {
|
|
3889
3905
|
const locale = detectLocale7();
|
|
3890
|
-
const
|
|
3891
|
-
i18n.load(locale,
|
|
3906
|
+
const messages46 = getMessages7(locale, enMessages, nbMessages, fiMessages);
|
|
3907
|
+
i18n.load(locale, messages46);
|
|
3892
3908
|
i18n.activate(locale);
|
|
3893
3909
|
};
|
|
3894
3910
|
|
|
@@ -3995,7 +4011,7 @@ ${JSON.stringify(directions)}`
|
|
|
3995
4011
|
tooltip: this.tooltip,
|
|
3996
4012
|
highlight: this.highlight
|
|
3997
4013
|
};
|
|
3998
|
-
const activeVariant = Object.keys(variantProps).find((
|
|
4014
|
+
const activeVariant = Object.keys(variantProps).find((b2) => !!variantProps[b2]) || "";
|
|
3999
4015
|
return {
|
|
4000
4016
|
wrapper: attention[activeVariant],
|
|
4001
4017
|
arrow: attention[`arrow${activeVariant.charAt(0).toUpperCase() + activeVariant.slice(1)}`]
|
|
@@ -4326,7 +4342,7 @@ if (!customElements.get("w-box")) {
|
|
|
4326
4342
|
// packages/breadcrumbs/index.js
|
|
4327
4343
|
import { html as html12 } from "lit";
|
|
4328
4344
|
|
|
4329
|
-
// node_modules/.pnpm/@warp-ds+core@1.1.
|
|
4345
|
+
// node_modules/.pnpm/@warp-ds+core@1.1.2_@floating-ui+dom@1.6.3/node_modules/@warp-ds/core/dist/breadcrumbs/index.js
|
|
4330
4346
|
function interleave(array, separator2) {
|
|
4331
4347
|
return array.flatMap((el) => [el, separator2]).slice(0, -1);
|
|
4332
4348
|
}
|
|
@@ -4428,11 +4444,11 @@ var WarpBroadcast = class extends WarpElement7 {
|
|
|
4428
4444
|
this._hiddenMessageIds = [.../* @__PURE__ */ new Set([...this._hiddenMessageIds, id])];
|
|
4429
4445
|
}
|
|
4430
4446
|
render() {
|
|
4431
|
-
const
|
|
4447
|
+
const messages46 = this._messages.filter((item) => !this._hiddenMessageIds.includes(item.id));
|
|
4432
4448
|
return html13`
|
|
4433
|
-
<aside class=${`${
|
|
4449
|
+
<aside class=${`${messages46.length === 0 ? "hidden" : "mb-16"}`}>
|
|
4434
4450
|
${repeat(
|
|
4435
|
-
|
|
4451
|
+
messages46,
|
|
4436
4452
|
({ id }) => `broadcast-${id}`,
|
|
4437
4453
|
({ id, message }) => html13`<w-toast id="broadcast-${id}" type="warning" text="${message}" canclose @close=${() => this._del(id)}> </w-toast>`
|
|
4438
4454
|
)}
|
|
@@ -4676,7 +4692,7 @@ import { css as css5, html as html18 } from "lit";
|
|
|
4676
4692
|
import WarpElement10 from "@warp-ds/elements-core";
|
|
4677
4693
|
import { ifDefined as ifDefined4 } from "lit/directives/if-defined.js";
|
|
4678
4694
|
|
|
4679
|
-
// node_modules/.pnpm/@warp-ds+icons@2.0.
|
|
4695
|
+
// node_modules/.pnpm/@warp-ds+icons@2.0.1/node_modules/@warp-ds/icons/dist/elements/chevron-down-16.js
|
|
4680
4696
|
import { LitElement as LitElement7 } from "lit";
|
|
4681
4697
|
import { unsafeStatic as unsafeStatic7, html as html16 } from "lit/static-html.js";
|
|
4682
4698
|
var messages18 = JSON.parse('{"icon.title.chevron-down":"Nedoverpil"}');
|
|
@@ -4752,8 +4768,8 @@ var getMessages8 = (locale, enMsg, nbMsg, fiMsg) => {
|
|
|
4752
4768
|
};
|
|
4753
4769
|
var activateI18n8 = (enMessages, nbMessages, fiMessages) => {
|
|
4754
4770
|
const locale = detectLocale8();
|
|
4755
|
-
const
|
|
4756
|
-
i18n.load(locale,
|
|
4771
|
+
const messages46 = getMessages8(locale, enMessages, nbMessages, fiMessages);
|
|
4772
|
+
i18n.load(locale, messages46);
|
|
4757
4773
|
i18n.activate(locale);
|
|
4758
4774
|
};
|
|
4759
4775
|
activateI18n8(messages27, messages18, messages37);
|
|
@@ -4767,7 +4783,7 @@ if (!customElements.get("w-icon-chevron-down-16")) {
|
|
|
4767
4783
|
customElements.define("w-icon-chevron-down-16", IconChevronDown16);
|
|
4768
4784
|
}
|
|
4769
4785
|
|
|
4770
|
-
// node_modules/.pnpm/@warp-ds+icons@2.0.
|
|
4786
|
+
// node_modules/.pnpm/@warp-ds+icons@2.0.1/node_modules/@warp-ds/icons/dist/elements/chevron-up-16.js
|
|
4771
4787
|
import { LitElement as LitElement8 } from "lit";
|
|
4772
4788
|
import { unsafeStatic as unsafeStatic8, html as html17 } from "lit/static-html.js";
|
|
4773
4789
|
var messages19 = JSON.parse('{"icon.title.chevron-up":"Oppoverpil"}');
|
|
@@ -4843,8 +4859,8 @@ var getMessages9 = (locale, enMsg, nbMsg, fiMsg) => {
|
|
|
4843
4859
|
};
|
|
4844
4860
|
var activateI18n9 = (enMessages, nbMessages, fiMessages) => {
|
|
4845
4861
|
const locale = detectLocale9();
|
|
4846
|
-
const
|
|
4847
|
-
i18n.load(locale,
|
|
4862
|
+
const messages46 = getMessages9(locale, enMessages, nbMessages, fiMessages);
|
|
4863
|
+
i18n.load(locale, messages46);
|
|
4848
4864
|
i18n.activate(locale);
|
|
4849
4865
|
};
|
|
4850
4866
|
activateI18n9(messages28, messages19, messages38);
|
|
@@ -4977,24 +4993,522 @@ if (!customElements.get("w-expandable")) {
|
|
|
4977
4993
|
customElements.define("w-expandable", WarpExpandable);
|
|
4978
4994
|
}
|
|
4979
4995
|
|
|
4980
|
-
// packages/
|
|
4996
|
+
// packages/modal/modal-footer.js
|
|
4981
4997
|
import { html as html19 } from "lit";
|
|
4982
4998
|
import WarpElement11 from "@warp-ds/elements-core";
|
|
4983
4999
|
|
|
5000
|
+
// packages/modal/util.js
|
|
5001
|
+
var CanCloseMixin = (superClass) => class extends superClass {
|
|
5002
|
+
constructor() {
|
|
5003
|
+
super(...arguments);
|
|
5004
|
+
__publicField(this, "patchClose", true);
|
|
5005
|
+
__publicField(this, "_close", null);
|
|
5006
|
+
}
|
|
5007
|
+
close() {
|
|
5008
|
+
this._close();
|
|
5009
|
+
}
|
|
5010
|
+
};
|
|
5011
|
+
var ProvidesCanCloseToSlotsMixin = (superClass) => class extends superClass {
|
|
5012
|
+
// HACK: slot-props don't seem to exist and neither does the context pattern for this
|
|
5013
|
+
/** @param {Event} evt */
|
|
5014
|
+
handleSlotChange(evt) {
|
|
5015
|
+
const children2 = evt.target.assignedNodes({ flatten: true });
|
|
5016
|
+
for (const child of children2.filter((e) => e.patchClose)) {
|
|
5017
|
+
child._close = () => this.close();
|
|
5018
|
+
}
|
|
5019
|
+
}
|
|
5020
|
+
};
|
|
5021
|
+
|
|
5022
|
+
// packages/modal/modal-footer.js
|
|
5023
|
+
var ModalFooter = class extends CanCloseMixin(ProvidesCanCloseToSlotsMixin(WarpElement11)) {
|
|
5024
|
+
render() {
|
|
5025
|
+
return html19`
|
|
5026
|
+
<div class="${modalElement.footer}">
|
|
5027
|
+
<slot @slotchange="${this.handleSlotChange}"></slot>
|
|
5028
|
+
</div>
|
|
5029
|
+
`;
|
|
5030
|
+
}
|
|
5031
|
+
};
|
|
5032
|
+
__publicField(ModalFooter, "styles", [WarpElement11.styles]);
|
|
5033
|
+
|
|
5034
|
+
// packages/modal/modal-header.js
|
|
5035
|
+
import { html as html21, nothing as nothing3 } from "lit";
|
|
5036
|
+
|
|
5037
|
+
// node_modules/.pnpm/@itsy+animate@0.0.9/node_modules/@itsy/animate/src/utility.js
|
|
5038
|
+
var computeDeltas = (first, last) => ({
|
|
5039
|
+
dx: first.left - last.left,
|
|
5040
|
+
dy: first.top - last.top,
|
|
5041
|
+
dw: first.width / last.width,
|
|
5042
|
+
dh: first.height / last.height,
|
|
5043
|
+
first,
|
|
5044
|
+
last
|
|
5045
|
+
});
|
|
5046
|
+
var moveKeyframes = ({ dx, dy }) => [
|
|
5047
|
+
{ transform: `translate(${dx}px, ${dy}px)` },
|
|
5048
|
+
{ transform: "none" }
|
|
5049
|
+
];
|
|
5050
|
+
var animationDefaults = { easing: "ease", duration: 300 };
|
|
5051
|
+
|
|
5052
|
+
// node_modules/.pnpm/@itsy+animate@0.0.9/node_modules/@itsy/animate/src/reduce-motion.js
|
|
5053
|
+
var reduceMotion = false;
|
|
5054
|
+
var windowExists2 = typeof window !== "undefined";
|
|
5055
|
+
if (windowExists2) {
|
|
5056
|
+
const query = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
5057
|
+
const callback = ({ matches }) => reduceMotion = matches;
|
|
5058
|
+
if (query.addEventListener)
|
|
5059
|
+
query.addEventListener("change", callback);
|
|
5060
|
+
callback(query);
|
|
5061
|
+
}
|
|
5062
|
+
|
|
5063
|
+
// node_modules/.pnpm/@itsy+animate@0.0.9/node_modules/@itsy/animate/src/move.js
|
|
5064
|
+
var Move = class {
|
|
5065
|
+
constructor(el, { animation = {}, keyframes, respectReduceMotion = true } = {}) {
|
|
5066
|
+
/** @type {DOMRect | {}} */
|
|
5067
|
+
__publicField(this, "first");
|
|
5068
|
+
/** @type {DOMRect | {}} */
|
|
5069
|
+
__publicField(this, "last");
|
|
5070
|
+
/** @type {HTMLElement} */
|
|
5071
|
+
__publicField(this, "el");
|
|
5072
|
+
this.el = el;
|
|
5073
|
+
this.first = {};
|
|
5074
|
+
this.last = {};
|
|
5075
|
+
this.userAnimationOptions = animation;
|
|
5076
|
+
this.keyframeGenerator = keyframes || moveKeyframes;
|
|
5077
|
+
this.shouldReduceMotion = respectReduceMotion;
|
|
5078
|
+
}
|
|
5079
|
+
async when(cb) {
|
|
5080
|
+
this.prep();
|
|
5081
|
+
const v = await cb();
|
|
5082
|
+
await this.play();
|
|
5083
|
+
return v;
|
|
5084
|
+
}
|
|
5085
|
+
prep() {
|
|
5086
|
+
this.first = this.el.getBoundingClientRect();
|
|
5087
|
+
}
|
|
5088
|
+
async play() {
|
|
5089
|
+
this.last = this.el.getBoundingClientRect();
|
|
5090
|
+
if (!this.el.animate)
|
|
5091
|
+
return;
|
|
5092
|
+
const animation = this.el.animate(this.keyframes, this.animationOptions);
|
|
5093
|
+
await animation.finished;
|
|
5094
|
+
}
|
|
5095
|
+
get keyframes() {
|
|
5096
|
+
return this.keyframeGenerator(computeDeltas(this.first, this.last));
|
|
5097
|
+
}
|
|
5098
|
+
get defaults() {
|
|
5099
|
+
return animationDefaults;
|
|
5100
|
+
}
|
|
5101
|
+
get mergedOptions() {
|
|
5102
|
+
return __spreadValues(__spreadValues({}, this.defaults), this.userAnimationOptions);
|
|
5103
|
+
}
|
|
5104
|
+
get animationOptions() {
|
|
5105
|
+
if (!this.shouldReduceMotion)
|
|
5106
|
+
return this.mergedOptions;
|
|
5107
|
+
if (!reduceMotion)
|
|
5108
|
+
return this.mergedOptions;
|
|
5109
|
+
return __spreadProps(__spreadValues({}, this.mergedOptions), { duration: 0 });
|
|
5110
|
+
}
|
|
5111
|
+
};
|
|
5112
|
+
|
|
5113
|
+
// node_modules/.pnpm/@warp-ds+icons@2.0.1/node_modules/@warp-ds/icons/dist/elements/arrow-left-16.js
|
|
5114
|
+
import { LitElement as LitElement9 } from "lit";
|
|
5115
|
+
import { unsafeStatic as unsafeStatic9, html as html20 } from "lit/static-html.js";
|
|
5116
|
+
var messages20 = JSON.parse('{"icon.title.arrow-left":"Pil som peker mot venstre"}');
|
|
5117
|
+
var messages29 = JSON.parse('{"icon.title.arrow-left":"Leftward-pointing arrow"}');
|
|
5118
|
+
var messages39 = JSON.parse('{"icon.title.arrow-left":"Vasemmalle osoittava nuoli"}');
|
|
5119
|
+
var supportedLocales10 = ["en", "nb", "fi", "da", "sv"];
|
|
5120
|
+
var defaultLocale11 = "en";
|
|
5121
|
+
var detectByBrand9 = () => {
|
|
5122
|
+
let value;
|
|
5123
|
+
switch (process.env.NMP_BRAND) {
|
|
5124
|
+
case "FINN":
|
|
5125
|
+
value = "nb";
|
|
5126
|
+
break;
|
|
5127
|
+
case "TORI":
|
|
5128
|
+
value = "fi";
|
|
5129
|
+
break;
|
|
5130
|
+
case "BLOCKET":
|
|
5131
|
+
value = "sv";
|
|
5132
|
+
break;
|
|
5133
|
+
case "DBA":
|
|
5134
|
+
value = "da";
|
|
5135
|
+
break;
|
|
5136
|
+
default:
|
|
5137
|
+
value = "en";
|
|
5138
|
+
}
|
|
5139
|
+
return value;
|
|
5140
|
+
};
|
|
5141
|
+
var detectByHost9 = () => {
|
|
5142
|
+
var _a;
|
|
5143
|
+
const hostname = (_a = document == null ? void 0 : document.location) == null ? void 0 : _a.hostname;
|
|
5144
|
+
if (hostname.includes("finn")) {
|
|
5145
|
+
return "nb";
|
|
5146
|
+
} else if (hostname.includes("tori")) {
|
|
5147
|
+
return "fi";
|
|
5148
|
+
} else if (hostname.includes("blocket")) {
|
|
5149
|
+
return "sv";
|
|
5150
|
+
} else if (hostname.includes("dba")) {
|
|
5151
|
+
return "da";
|
|
5152
|
+
} else {
|
|
5153
|
+
return defaultLocale11;
|
|
5154
|
+
}
|
|
5155
|
+
};
|
|
5156
|
+
var getSupportedLocale10 = (usedLocale) => {
|
|
5157
|
+
return supportedLocales10.find(
|
|
5158
|
+
(locale) => usedLocale === locale || usedLocale.toLowerCase().includes(locale)
|
|
5159
|
+
) || detectByHost9();
|
|
5160
|
+
};
|
|
5161
|
+
function detectLocale10() {
|
|
5162
|
+
var _a;
|
|
5163
|
+
if (typeof window === "undefined") {
|
|
5164
|
+
const serverLocale = detectByBrand9();
|
|
5165
|
+
return getSupportedLocale10(serverLocale);
|
|
5166
|
+
}
|
|
5167
|
+
try {
|
|
5168
|
+
const htmlLocale = (_a = document == null ? void 0 : document.documentElement) == null ? void 0 : _a.lang;
|
|
5169
|
+
const hostLocale = detectByHost9();
|
|
5170
|
+
if (!supportedLocales10.includes(htmlLocale)) {
|
|
5171
|
+
console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname");
|
|
5172
|
+
return getSupportedLocale10(hostLocale);
|
|
5173
|
+
}
|
|
5174
|
+
return getSupportedLocale10(htmlLocale != null ? htmlLocale : hostLocale);
|
|
5175
|
+
} catch (e) {
|
|
5176
|
+
console.warn("could not detect locale, falling back to source locale", e);
|
|
5177
|
+
return defaultLocale11;
|
|
5178
|
+
}
|
|
5179
|
+
}
|
|
5180
|
+
var getMessages10 = (locale, enMsg, nbMsg, fiMsg) => {
|
|
5181
|
+
if (locale === "nb")
|
|
5182
|
+
return nbMsg;
|
|
5183
|
+
if (locale === "fi")
|
|
5184
|
+
return fiMsg;
|
|
5185
|
+
return enMsg;
|
|
5186
|
+
};
|
|
5187
|
+
var activateI18n10 = (enMessages, nbMessages, fiMessages) => {
|
|
5188
|
+
const locale = detectLocale10();
|
|
5189
|
+
const messages46 = getMessages10(locale, enMessages, nbMessages, fiMessages);
|
|
5190
|
+
i18n.load(locale, messages46);
|
|
5191
|
+
i18n.activate(locale);
|
|
5192
|
+
};
|
|
5193
|
+
activateI18n10(messages29, messages20, messages39);
|
|
5194
|
+
var IconArrowLeft16 = class extends LitElement9 {
|
|
5195
|
+
render() {
|
|
5196
|
+
const title = i18n.t({ message: `Leftward-pointing arrow`, id: "icon.title.arrow-left", comment: "Title for table arrow left icon" });
|
|
5197
|
+
return html20`<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>`;
|
|
5198
|
+
}
|
|
5199
|
+
};
|
|
5200
|
+
if (!customElements.get("w-icon-arrow-left-16")) {
|
|
5201
|
+
customElements.define("w-icon-arrow-left-16", IconArrowLeft16);
|
|
5202
|
+
}
|
|
5203
|
+
|
|
5204
|
+
// packages/modal/modal-header.js
|
|
5205
|
+
import WarpElement12 from "@warp-ds/elements-core";
|
|
5206
|
+
import { createRef, ref } from "lit/directives/ref.js";
|
|
5207
|
+
var NO_CLOSE_BUTTON = "no-close";
|
|
5208
|
+
var ModalHeader = class extends CanCloseMixin(WarpElement12) {
|
|
5209
|
+
constructor() {
|
|
5210
|
+
super();
|
|
5211
|
+
__publicField(this, "titleEl", createRef());
|
|
5212
|
+
this._hasTopContent = false;
|
|
5213
|
+
}
|
|
5214
|
+
render() {
|
|
5215
|
+
return html21`
|
|
5216
|
+
<div class="${modalElement.header}">
|
|
5217
|
+
<slot name="top" @slotchange=${this.handleTopSlotChange}></slot>
|
|
5218
|
+
<div class="${this._hasTopContent ? "" : modalElement.headerTitleBar}">
|
|
5219
|
+
${this.backButton}
|
|
5220
|
+
<h1 ${ref(this.titleEl)} class="${this.titleClasses}">${this.title}</h1>
|
|
5221
|
+
${this.closeButton}
|
|
5222
|
+
</div>
|
|
5223
|
+
</div>
|
|
5224
|
+
`;
|
|
5225
|
+
}
|
|
5226
|
+
async willUpdate(changedProperties) {
|
|
5227
|
+
if (changedProperties.has("back")) {
|
|
5228
|
+
const move = new Move(this.titleEl.value);
|
|
5229
|
+
move.when(async () => {
|
|
5230
|
+
await this.updateComplete;
|
|
5231
|
+
});
|
|
5232
|
+
}
|
|
5233
|
+
}
|
|
5234
|
+
get titleClasses() {
|
|
5235
|
+
return [
|
|
5236
|
+
modalElement.headerTitle,
|
|
5237
|
+
this.back ? modalElement.headerTitleWithBackButton : modalElement.headerTitleWithoutBackButton,
|
|
5238
|
+
this._hasTopContent ? modalElement.headerTitleWithTopArea : ""
|
|
5239
|
+
].join(" ");
|
|
5240
|
+
}
|
|
5241
|
+
get backButton() {
|
|
5242
|
+
return this.back && !this._hasTopContent ? html21` <button type="button" class="${modalElement.headerButton} ${modalElement.headerButtonLeft}" @click="${this.emitBack}">
|
|
5243
|
+
<w-icon-arrow-left-16></w-icon-arrow-left-16>
|
|
5244
|
+
</button>` : nothing3;
|
|
5245
|
+
}
|
|
5246
|
+
get closeButton() {
|
|
5247
|
+
if (this[NO_CLOSE_BUTTON])
|
|
5248
|
+
return nothing3;
|
|
5249
|
+
return html21` <button
|
|
5250
|
+
type="button"
|
|
5251
|
+
class="${modalElement.headerButton} ${this._hasTopContent ? modalElement.headerCloseButtonOnImage : modalElement.headerCloseButton}"
|
|
5252
|
+
@click="${this.close}">
|
|
5253
|
+
<w-icon-close-16></w-icon-close-16>
|
|
5254
|
+
</button>`;
|
|
5255
|
+
}
|
|
5256
|
+
emitBack() {
|
|
5257
|
+
this.dispatchEvent(new CustomEvent("backClicked", { bubbles: true, composed: true }));
|
|
5258
|
+
}
|
|
5259
|
+
handleTopSlotChange(slotEvent) {
|
|
5260
|
+
const topContent = slotEvent.target.assignedElements({ flatten: true });
|
|
5261
|
+
this._hasTopContent = !!topContent.length;
|
|
5262
|
+
}
|
|
5263
|
+
};
|
|
5264
|
+
__publicField(ModalHeader, "properties", {
|
|
5265
|
+
title: { type: String },
|
|
5266
|
+
back: { type: Boolean },
|
|
5267
|
+
[NO_CLOSE_BUTTON]: { type: Boolean },
|
|
5268
|
+
_hasTopContent: { state: true }
|
|
5269
|
+
});
|
|
5270
|
+
__publicField(ModalHeader, "styles", [WarpElement12.styles]);
|
|
5271
|
+
|
|
5272
|
+
// packages/modal/modal-main.js
|
|
5273
|
+
import { css as css6, html as html22 } from "lit";
|
|
5274
|
+
import WarpElement13 from "@warp-ds/elements-core";
|
|
5275
|
+
import { createRef as createRef2, ref as ref2 } from "lit/directives/ref.js";
|
|
5276
|
+
|
|
5277
|
+
// node_modules/.pnpm/scroll-doctor@2.0.2/node_modules/scroll-doctor/dist/scroll-doctor.js
|
|
5278
|
+
var n = [];
|
|
5279
|
+
var c = { documentElement: {}, body: {} };
|
|
5280
|
+
var i = Object.freeze({
|
|
5281
|
+
// html
|
|
5282
|
+
documentElement: {
|
|
5283
|
+
"scrollbar-gutter": "stable"
|
|
5284
|
+
},
|
|
5285
|
+
body: {
|
|
5286
|
+
overflow: "hidden",
|
|
5287
|
+
position: "relative",
|
|
5288
|
+
height: "100%"
|
|
5289
|
+
}
|
|
5290
|
+
});
|
|
5291
|
+
var r2 = (t) => {
|
|
5292
|
+
var _a;
|
|
5293
|
+
t.touches.length > 1 || ((_a = t.preventDefault) == null ? void 0 : _a.call(t));
|
|
5294
|
+
};
|
|
5295
|
+
var h = (t) => ([e, s]) => {
|
|
5296
|
+
c[t][e] = document[t].style[e], document[t].style[e] = s;
|
|
5297
|
+
};
|
|
5298
|
+
var a = () => Object.entries(i).forEach(([t, e]) => {
|
|
5299
|
+
Object.entries(e).forEach(h(t));
|
|
5300
|
+
});
|
|
5301
|
+
var d = (t) => ([e, s]) => {
|
|
5302
|
+
document[t].style[e] = c[t][e];
|
|
5303
|
+
};
|
|
5304
|
+
var f = () => Object.entries(c).forEach(([t, e]) => {
|
|
5305
|
+
Object.entries(e).forEach(d(t));
|
|
5306
|
+
});
|
|
5307
|
+
var m = (t) => t.scrollHeight - Math.abs(t.scrollTop) === t.clientHeight;
|
|
5308
|
+
function y(t) {
|
|
5309
|
+
let e = -1;
|
|
5310
|
+
const s = (o) => {
|
|
5311
|
+
if (o.targetTouches.length !== 1)
|
|
5312
|
+
return;
|
|
5313
|
+
const l = o.targetTouches[0].clientY - e;
|
|
5314
|
+
return t.scrollTop === 0 && l > 0 || m(t) && l < 0 ? r2(o) : (o.stopPropagation(), true);
|
|
5315
|
+
};
|
|
5316
|
+
t.ontouchstart = (o) => {
|
|
5317
|
+
o.targetTouches.length === 1 && (e = o.targetTouches[0].clientY);
|
|
5318
|
+
}, t.ontouchmove = s;
|
|
5319
|
+
}
|
|
5320
|
+
function p(t) {
|
|
5321
|
+
t.ontouchstart = null, t.ontouchmove = null;
|
|
5322
|
+
}
|
|
5323
|
+
var u = (t) => () => document[t ? "addEventListener" : "removeEventListener"]("touchmove", r2, { passive: false });
|
|
5324
|
+
var b = u(true);
|
|
5325
|
+
var g = u();
|
|
5326
|
+
function E(t) {
|
|
5327
|
+
if (!t)
|
|
5328
|
+
throw Error("Could not run setup, an element must be provided");
|
|
5329
|
+
n.some((e) => e === t) || (n.length || (a(), b()), y(t), n.push(t));
|
|
5330
|
+
}
|
|
5331
|
+
function T() {
|
|
5332
|
+
n.forEach(p), g(), f(), n = [];
|
|
5333
|
+
}
|
|
5334
|
+
|
|
5335
|
+
// packages/modal/modal-main.js
|
|
5336
|
+
var NO_BACKDROP_CLICKS = "ignore-backdrop-clicks";
|
|
5337
|
+
var CONTENT_ID = "content-id";
|
|
5338
|
+
var ModalMain = class extends ProvidesCanCloseToSlotsMixin(WarpElement13) {
|
|
5339
|
+
constructor() {
|
|
5340
|
+
super();
|
|
5341
|
+
__publicField(this, "dialogEl", createRef2());
|
|
5342
|
+
__publicField(this, "dialogInnerEl", createRef2());
|
|
5343
|
+
__publicField(this, "contentEl", createRef2());
|
|
5344
|
+
this.interceptEscape = this.interceptEscape.bind(this);
|
|
5345
|
+
this.closeOnBackdropClick = this.closeOnBackdropClick.bind(this);
|
|
5346
|
+
this.eventPreventer = this.eventPreventer.bind(this);
|
|
5347
|
+
this.modifyBorderRadius = this.modifyBorderRadius.bind(this);
|
|
5348
|
+
}
|
|
5349
|
+
async open() {
|
|
5350
|
+
this.dialogEl.value.showModal();
|
|
5351
|
+
this.handleListeners();
|
|
5352
|
+
E(this.contentEl.value);
|
|
5353
|
+
await this.updateComplete;
|
|
5354
|
+
this.dispatchEvent(new CustomEvent("shown", { bubbles: true, composed: true }));
|
|
5355
|
+
}
|
|
5356
|
+
close() {
|
|
5357
|
+
this.handleListeners("removeEventListener");
|
|
5358
|
+
this.dialogEl.value.classList.add("close");
|
|
5359
|
+
this.dialogEl.value.addEventListener(
|
|
5360
|
+
"animationend",
|
|
5361
|
+
async () => {
|
|
5362
|
+
this.dialogEl.value.classList.remove("close");
|
|
5363
|
+
this.dialogEl.value.close();
|
|
5364
|
+
T();
|
|
5365
|
+
await this.updateComplete;
|
|
5366
|
+
this.dispatchEvent(new CustomEvent("hidden", { bubbles: true, composed: true }));
|
|
5367
|
+
},
|
|
5368
|
+
{ once: true }
|
|
5369
|
+
);
|
|
5370
|
+
}
|
|
5371
|
+
render() {
|
|
5372
|
+
return html22`
|
|
5373
|
+
<dialog ${ref2(this.dialogEl)} class="w-modal ${modalElement.dialogEl}">
|
|
5374
|
+
<div ${ref2(this.dialogInnerEl)} class="${modalElement.dialogInner}">
|
|
5375
|
+
<slot name="header" @slotchange="${this.handleSlotChange}"></slot>
|
|
5376
|
+
<div ${ref2(this.contentEl)} class="${modalElement.contentSlot}" id=${this[CONTENT_ID]}>
|
|
5377
|
+
<slot name="content" @slotchange="${this.handleSlotChange}"></slot>
|
|
5378
|
+
</div>
|
|
5379
|
+
<slot name="footer" @slotchange="${this.handleSlotChange}"></slot>
|
|
5380
|
+
</div>
|
|
5381
|
+
</dialog>
|
|
5382
|
+
`;
|
|
5383
|
+
}
|
|
5384
|
+
willUpdate(changedProperties) {
|
|
5385
|
+
if (changedProperties.has("show"))
|
|
5386
|
+
this[this.show ? "open" : "close"]();
|
|
5387
|
+
}
|
|
5388
|
+
handleListeners(verb = "addEventListener") {
|
|
5389
|
+
document[verb]("keydown", this.interceptEscape);
|
|
5390
|
+
if (!this[NO_BACKDROP_CLICKS])
|
|
5391
|
+
this.dialogEl.value[verb]("mousedown", this.closeOnBackdropClick);
|
|
5392
|
+
this.dialogEl.value[verb]("close", this.eventPreventer);
|
|
5393
|
+
this.dialogEl.value[verb]("cancel", this.eventPreventer);
|
|
5394
|
+
this.dialogInnerEl.value[verb]("transitionend", this.modifyBorderRadius);
|
|
5395
|
+
}
|
|
5396
|
+
/** @param {Event} evt */
|
|
5397
|
+
eventPreventer(evt) {
|
|
5398
|
+
evt.preventDefault();
|
|
5399
|
+
}
|
|
5400
|
+
/** @param {MouseEvent} evt */
|
|
5401
|
+
closeOnBackdropClick(evt) {
|
|
5402
|
+
if (this.dialogEl.value === evt.target)
|
|
5403
|
+
this.close();
|
|
5404
|
+
}
|
|
5405
|
+
/** @param {KeyboardEvent} evt */
|
|
5406
|
+
interceptEscape(evt) {
|
|
5407
|
+
if (evt.key === "Escape") {
|
|
5408
|
+
evt.preventDefault();
|
|
5409
|
+
this.close();
|
|
5410
|
+
}
|
|
5411
|
+
}
|
|
5412
|
+
modifyBorderRadius() {
|
|
5413
|
+
if (this.dialogInnerEl.value.scrollHeight * 1.02 > innerHeight)
|
|
5414
|
+
this.dialogInnerEl.value.style.borderRadius = "0px";
|
|
5415
|
+
else
|
|
5416
|
+
this.dialogInnerEl.value.style.borderRadius = null;
|
|
5417
|
+
}
|
|
5418
|
+
};
|
|
5419
|
+
__publicField(ModalMain, "properties", {
|
|
5420
|
+
show: { type: Boolean },
|
|
5421
|
+
[CONTENT_ID]: { type: String },
|
|
5422
|
+
[NO_BACKDROP_CLICKS]: { type: Boolean }
|
|
5423
|
+
});
|
|
5424
|
+
__publicField(ModalMain, "styles", [
|
|
5425
|
+
WarpElement13.styles,
|
|
5426
|
+
css6`
|
|
5427
|
+
.w-modal {
|
|
5428
|
+
--w-modal-translate-distance: 100%;
|
|
5429
|
+
}
|
|
5430
|
+
@media (min-width: 480px) {
|
|
5431
|
+
.w-modal {
|
|
5432
|
+
--w-modal-translate-distance: 50%;
|
|
5433
|
+
}
|
|
5434
|
+
}
|
|
5435
|
+
.w-modal[open] {
|
|
5436
|
+
animation: w-modal-in 0.3s ease-in-out forwards;
|
|
5437
|
+
}
|
|
5438
|
+
.w-modal.close {
|
|
5439
|
+
animation: w-modal-out 0.3s ease-in-out forwards;
|
|
5440
|
+
}
|
|
5441
|
+
.w-modal[open]::backdrop {
|
|
5442
|
+
animation: backdrop-in 0.3s ease-in-out forwards;
|
|
5443
|
+
}
|
|
5444
|
+
.w-modal.close::backdrop {
|
|
5445
|
+
animation: backdrop-out 0.3s ease-in-out forwards;
|
|
5446
|
+
}
|
|
5447
|
+
/* shouldn't need two (in/out) animations declared here, but reversing is being weird */
|
|
5448
|
+
@keyframes w-modal-in {
|
|
5449
|
+
from {
|
|
5450
|
+
transform: translateY(var(--w-modal-translate-distance));
|
|
5451
|
+
opacity: 0;
|
|
5452
|
+
}
|
|
5453
|
+
to {
|
|
5454
|
+
transform: translateY(0);
|
|
5455
|
+
opacity: 1;
|
|
5456
|
+
}
|
|
5457
|
+
}
|
|
5458
|
+
@keyframes w-modal-out {
|
|
5459
|
+
from {
|
|
5460
|
+
transform: translateY(0);
|
|
5461
|
+
opacity: 1;
|
|
5462
|
+
}
|
|
5463
|
+
to {
|
|
5464
|
+
transform: translateY(var(--w-modal-translate-distance));
|
|
5465
|
+
opacity: 0;
|
|
5466
|
+
}
|
|
5467
|
+
}
|
|
5468
|
+
@keyframes backdrop-in {
|
|
5469
|
+
from {
|
|
5470
|
+
background: transparent;
|
|
5471
|
+
}
|
|
5472
|
+
to {
|
|
5473
|
+
background: rgba(0, 0, 0, 0.25);
|
|
5474
|
+
}
|
|
5475
|
+
}
|
|
5476
|
+
@keyframes backdrop-out {
|
|
5477
|
+
from {
|
|
5478
|
+
background: rgba(0, 0, 0, 0.25);
|
|
5479
|
+
}
|
|
5480
|
+
to {
|
|
5481
|
+
background: transparent;
|
|
5482
|
+
}
|
|
5483
|
+
}
|
|
5484
|
+
`
|
|
5485
|
+
]);
|
|
5486
|
+
|
|
5487
|
+
// packages/modal/index.js
|
|
5488
|
+
if (!customElements.get("w-modal")) {
|
|
5489
|
+
customElements.define("w-modal", ModalMain);
|
|
5490
|
+
customElements.define("w-modal-header", ModalHeader);
|
|
5491
|
+
customElements.define("w-modal-footer", ModalFooter);
|
|
5492
|
+
}
|
|
5493
|
+
|
|
5494
|
+
// packages/pill/index.js
|
|
5495
|
+
import { html as html23 } from "lit";
|
|
5496
|
+
import WarpElement14 from "@warp-ds/elements-core";
|
|
5497
|
+
|
|
4984
5498
|
// packages/pill/locales/en/messages.mjs
|
|
4985
|
-
var
|
|
5499
|
+
var messages21 = JSON.parse('{"pill.aria.openFilter":"Open filter","pill.aria.removeFilter":["Remove filter ",["label"]]}');
|
|
4986
5500
|
|
|
4987
5501
|
// packages/pill/locales/fi/messages.mjs
|
|
4988
|
-
var
|
|
5502
|
+
var messages30 = JSON.parse('{"pill.aria.openFilter":"Avaa suodatin","pill.aria.removeFilter":["Tyhjenn\xE4 suodatin ",["label"]]}');
|
|
4989
5503
|
|
|
4990
5504
|
// packages/pill/locales/nb/messages.mjs
|
|
4991
|
-
var
|
|
5505
|
+
var messages31 = JSON.parse('{"pill.aria.openFilter":"\xC5pne filter","pill.aria.removeFilter":["Fjern filter ",["label"]]}');
|
|
4992
5506
|
|
|
4993
5507
|
// packages/pill/index.js
|
|
4994
|
-
var WarpPill = class extends kebabCaseAttributes(
|
|
5508
|
+
var WarpPill = class extends kebabCaseAttributes(WarpElement14) {
|
|
4995
5509
|
constructor() {
|
|
4996
5510
|
super();
|
|
4997
|
-
activateI18n7(
|
|
5511
|
+
activateI18n7(messages21, messages31, messages30);
|
|
4998
5512
|
this.canClose = false;
|
|
4999
5513
|
this.suggestion = false;
|
|
5000
5514
|
this.openFilterSrText = i18n._({
|
|
@@ -5030,13 +5544,13 @@ var WarpPill = class extends kebabCaseAttributes(WarpElement11) {
|
|
|
5030
5544
|
this.dispatchEvent(new CustomEvent("w-pill-close", { bubbles: true, composed: true }));
|
|
5031
5545
|
}
|
|
5032
5546
|
render() {
|
|
5033
|
-
return
|
|
5547
|
+
return html23`
|
|
5034
5548
|
<div class="${pill.pill}">
|
|
5035
5549
|
<button type="button" class="${this._labelClasses}" @click="${this._onClick}">
|
|
5036
5550
|
<span class="${pill.a11y}">${this.openSrLabel ? this.openSrLabel : this.openFilterSrText}</span>
|
|
5037
5551
|
<slot></slot>
|
|
5038
5552
|
</button>
|
|
5039
|
-
${this.canClose ?
|
|
5553
|
+
${this.canClose ? html23`<button type="button" class="${this._closeClasses}" @click="${this._onClose}">
|
|
5040
5554
|
<span class="${pill.a11y}">${this.closeSrLabel ? this.closeSrLabel : this.removeFilterSrText}</span>
|
|
5041
5555
|
<w-icon-close-16></w-icon-close-16>
|
|
5042
5556
|
</button>` : null}
|
|
@@ -5044,7 +5558,7 @@ var WarpPill = class extends kebabCaseAttributes(WarpElement11) {
|
|
|
5044
5558
|
`;
|
|
5045
5559
|
}
|
|
5046
5560
|
};
|
|
5047
|
-
__publicField(WarpPill, "styles", [
|
|
5561
|
+
__publicField(WarpPill, "styles", [WarpElement14.styles]);
|
|
5048
5562
|
__publicField(WarpPill, "properties", {
|
|
5049
5563
|
canClose: { type: Boolean },
|
|
5050
5564
|
suggestion: { type: Boolean },
|
|
@@ -5056,24 +5570,24 @@ if (!customElements.get("w-pill")) {
|
|
|
5056
5570
|
}
|
|
5057
5571
|
|
|
5058
5572
|
// packages/select/index.js
|
|
5059
|
-
import { html as
|
|
5060
|
-
import
|
|
5573
|
+
import { html as html24 } from "lit";
|
|
5574
|
+
import WarpElement15 from "@warp-ds/elements-core";
|
|
5061
5575
|
import { ifDefined as ifDefined5 } from "lit/directives/if-defined.js";
|
|
5062
5576
|
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
5063
5577
|
import { when } from "lit/directives/when.js";
|
|
5064
5578
|
|
|
5065
5579
|
// packages/select/locales/en/messages.mjs
|
|
5066
|
-
var
|
|
5580
|
+
var messages40 = JSON.parse('{"select.label.optional":"(optional)"}');
|
|
5067
5581
|
|
|
5068
5582
|
// packages/select/locales/fi/messages.mjs
|
|
5069
|
-
var
|
|
5583
|
+
var messages41 = JSON.parse('{"select.label.optional":"(vapaaehtoinen)"}');
|
|
5070
5584
|
|
|
5071
5585
|
// packages/select/locales/nb/messages.mjs
|
|
5072
|
-
var
|
|
5586
|
+
var messages42 = JSON.parse('{"select.label.optional":"(valgfritt)"}');
|
|
5073
5587
|
|
|
5074
5588
|
// packages/select/index.js
|
|
5075
5589
|
var _classes, classes_get, _helpTextClasses, helpTextClasses_get, _chevronClasses, chevronClasses_get, _id, id_get, _helpId, helpId_get;
|
|
5076
|
-
var WarpSelect = class extends kebabCaseAttributes(
|
|
5590
|
+
var WarpSelect = class extends kebabCaseAttributes(WarpElement15) {
|
|
5077
5591
|
constructor() {
|
|
5078
5592
|
super();
|
|
5079
5593
|
__privateAdd(this, _classes);
|
|
@@ -5081,18 +5595,18 @@ var WarpSelect = class extends kebabCaseAttributes(WarpElement12) {
|
|
|
5081
5595
|
__privateAdd(this, _chevronClasses);
|
|
5082
5596
|
__privateAdd(this, _id);
|
|
5083
5597
|
__privateAdd(this, _helpId);
|
|
5084
|
-
activateI18n7(
|
|
5598
|
+
activateI18n7(messages40, messages42, messages41);
|
|
5085
5599
|
this._options = this.innerHTML;
|
|
5086
5600
|
}
|
|
5087
5601
|
render() {
|
|
5088
|
-
return
|
|
5602
|
+
return html24`<div class="${select.wrapper}">
|
|
5089
5603
|
${when(
|
|
5090
5604
|
this.label,
|
|
5091
|
-
() =>
|
|
5605
|
+
() => html24`<label class="${label.label}" for="${__privateGet(this, _id, id_get)}">
|
|
5092
5606
|
${this.label}
|
|
5093
5607
|
${when(
|
|
5094
5608
|
this.optional,
|
|
5095
|
-
() =>
|
|
5609
|
+
() => html24`<span class="${label.optional}"
|
|
5096
5610
|
>${i18n._({
|
|
5097
5611
|
id: "select.label.optional",
|
|
5098
5612
|
message: "(optional)",
|
|
@@ -5116,7 +5630,7 @@ var WarpSelect = class extends kebabCaseAttributes(WarpElement12) {
|
|
|
5116
5630
|
<w-icon-chevron-down-16></w-icon-chevron-down-16>
|
|
5117
5631
|
</div>
|
|
5118
5632
|
</div>
|
|
5119
|
-
${when(this.always || this.invalid, () =>
|
|
5633
|
+
${when(this.always || this.invalid, () => html24`<div id="${__privateGet(this, _helpId, helpId_get)}" class="${__privateGet(this, _helpTextClasses, helpTextClasses_get)}">${this.hint}</div>`)}
|
|
5120
5634
|
</div>`;
|
|
5121
5635
|
}
|
|
5122
5636
|
};
|
|
@@ -5165,16 +5679,16 @@ __publicField(WarpSelect, "properties", {
|
|
|
5165
5679
|
optional: { type: Boolean, reflect: true },
|
|
5166
5680
|
_options: { state: true }
|
|
5167
5681
|
});
|
|
5168
|
-
__publicField(WarpSelect, "styles", [
|
|
5682
|
+
__publicField(WarpSelect, "styles", [WarpElement15.styles]);
|
|
5169
5683
|
if (!customElements.get("w-select")) {
|
|
5170
5684
|
customElements.define("w-select", WarpSelect);
|
|
5171
5685
|
}
|
|
5172
5686
|
|
|
5173
5687
|
// packages/textfield/index.js
|
|
5174
|
-
import { css as
|
|
5175
|
-
import
|
|
5688
|
+
import { css as css7, html as html25 } from "lit";
|
|
5689
|
+
import WarpElement16 from "@warp-ds/elements-core";
|
|
5176
5690
|
import { ifDefined as ifDefined6 } from "lit/directives/if-defined.js";
|
|
5177
|
-
var WarpTextField = class extends
|
|
5691
|
+
var WarpTextField = class extends WarpElement16 {
|
|
5178
5692
|
constructor() {
|
|
5179
5693
|
super();
|
|
5180
5694
|
this.type = "text";
|
|
@@ -5199,7 +5713,7 @@ var WarpTextField = class extends WarpElement13 {
|
|
|
5199
5713
|
}
|
|
5200
5714
|
get _label() {
|
|
5201
5715
|
if (this.label) {
|
|
5202
|
-
return
|
|
5716
|
+
return html25`<label for="${this._id}" class=${label.label}>${this.label}</label>`;
|
|
5203
5717
|
}
|
|
5204
5718
|
}
|
|
5205
5719
|
get _helpId() {
|
|
@@ -5237,7 +5751,7 @@ var WarpTextField = class extends WarpElement13 {
|
|
|
5237
5751
|
this._hasSuffix = true;
|
|
5238
5752
|
}
|
|
5239
5753
|
render() {
|
|
5240
|
-
return
|
|
5754
|
+
return html25`
|
|
5241
5755
|
${this._label}
|
|
5242
5756
|
<div class="${input.wrapper}">
|
|
5243
5757
|
<slot @slotchange="${this.prefixSlotChange}" name="prefix"></slot>
|
|
@@ -5265,7 +5779,7 @@ var WarpTextField = class extends WarpElement13 {
|
|
|
5265
5779
|
@focus="${this.handler}" />
|
|
5266
5780
|
<slot @slotchange="${this.suffixSlotChange}" name="suffix"></slot>
|
|
5267
5781
|
</div>
|
|
5268
|
-
${this.helpText &&
|
|
5782
|
+
${this.helpText && html25`<div class="${this._helpTextStyles}" id="${this._helpId}">${this.helpText}</div>`}
|
|
5269
5783
|
`;
|
|
5270
5784
|
}
|
|
5271
5785
|
};
|
|
@@ -5295,8 +5809,8 @@ __publicField(WarpTextField, "properties", {
|
|
|
5295
5809
|
// so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.
|
|
5296
5810
|
// https://stackoverflow.com/a/61631668
|
|
5297
5811
|
__publicField(WarpTextField, "styles", [
|
|
5298
|
-
|
|
5299
|
-
|
|
5812
|
+
WarpElement16.styles,
|
|
5813
|
+
css7`
|
|
5300
5814
|
:host {
|
|
5301
5815
|
display: block;
|
|
5302
5816
|
}
|
|
@@ -5338,10 +5852,10 @@ function updateToast(id, options) {
|
|
|
5338
5852
|
}
|
|
5339
5853
|
|
|
5340
5854
|
// packages/toast/toast-container.js
|
|
5341
|
-
import { css as
|
|
5342
|
-
import
|
|
5855
|
+
import { css as css8, html as html26 } from "lit";
|
|
5856
|
+
import WarpElement17 from "@warp-ds/elements-core";
|
|
5343
5857
|
import { repeat as repeat2 } from "lit/directives/repeat.js";
|
|
5344
|
-
var WarpToastContainer = class extends
|
|
5858
|
+
var WarpToastContainer = class extends WarpElement17 {
|
|
5345
5859
|
constructor() {
|
|
5346
5860
|
super();
|
|
5347
5861
|
this._toasts = /* @__PURE__ */ new Map();
|
|
@@ -5431,13 +5945,13 @@ var WarpToastContainer = class extends WarpElement14 {
|
|
|
5431
5945
|
return result;
|
|
5432
5946
|
}
|
|
5433
5947
|
render() {
|
|
5434
|
-
return
|
|
5948
|
+
return html26`
|
|
5435
5949
|
<aside class="${toaster.container}">
|
|
5436
5950
|
<div class="${toaster.toaster}" id="w-toast-container-list">
|
|
5437
5951
|
${repeat2(
|
|
5438
5952
|
this._toastsArray,
|
|
5439
5953
|
(toast3) => toast3.id,
|
|
5440
|
-
(toast3) =>
|
|
5954
|
+
(toast3) => html26` <w-toast
|
|
5441
5955
|
class="${toaster.content}"
|
|
5442
5956
|
id="${toast3.id}"
|
|
5443
5957
|
type="${toast3.type}"
|
|
@@ -5452,8 +5966,8 @@ var WarpToastContainer = class extends WarpElement14 {
|
|
|
5452
5966
|
}
|
|
5453
5967
|
};
|
|
5454
5968
|
__publicField(WarpToastContainer, "styles", [
|
|
5455
|
-
|
|
5456
|
-
|
|
5969
|
+
WarpElement17.styles,
|
|
5970
|
+
css8`
|
|
5457
5971
|
:host {
|
|
5458
5972
|
display: block;
|
|
5459
5973
|
}
|
|
@@ -5467,13 +5981,13 @@ if (!customElements.get("w-toast-container")) {
|
|
|
5467
5981
|
}
|
|
5468
5982
|
|
|
5469
5983
|
// packages/toast/toast.js
|
|
5470
|
-
import { css as
|
|
5471
|
-
import
|
|
5984
|
+
import { css as css9, html as html27 } from "lit";
|
|
5985
|
+
import WarpElement18 from "@warp-ds/elements-core";
|
|
5472
5986
|
|
|
5473
5987
|
// node_modules/.pnpm/element-collapse@1.1.0/node_modules/element-collapse/index.js
|
|
5474
|
-
var
|
|
5988
|
+
var windowExists3 = typeof window !== "undefined";
|
|
5475
5989
|
var prefersMotion = true;
|
|
5476
|
-
if (
|
|
5990
|
+
if (windowExists3) {
|
|
5477
5991
|
const query = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
5478
5992
|
const callback = ({ matches }) => prefersMotion = !matches;
|
|
5479
5993
|
if (query.addEventListener)
|
|
@@ -5504,15 +6018,15 @@ var getAfterCollapseCallback = (done) => () => {
|
|
|
5504
6018
|
var expand = (el, done) => {
|
|
5505
6019
|
const returnPromise = (() => {
|
|
5506
6020
|
if (!done)
|
|
5507
|
-
return new Promise((
|
|
5508
|
-
done =
|
|
6021
|
+
return new Promise((r3) => {
|
|
6022
|
+
done = r3;
|
|
5509
6023
|
});
|
|
5510
6024
|
})();
|
|
5511
6025
|
const afterExpandCallback = getAfterExpandCallback(el, done);
|
|
5512
6026
|
removeTransition(el);
|
|
5513
6027
|
el.style.height = "auto";
|
|
5514
6028
|
let dest = el.scrollHeight;
|
|
5515
|
-
|
|
6029
|
+
windowExists3 && requestAnimationFrame(() => {
|
|
5516
6030
|
el.addEventListener("transitionend", afterExpandCallback, { once: true });
|
|
5517
6031
|
el.style.height = "0px";
|
|
5518
6032
|
el.style.transitionTimingFunction = "ease-out";
|
|
@@ -5525,14 +6039,14 @@ var expand = (el, done) => {
|
|
|
5525
6039
|
var collapse = (el, done) => {
|
|
5526
6040
|
const returnPromise = (() => {
|
|
5527
6041
|
if (!done)
|
|
5528
|
-
return new Promise((
|
|
5529
|
-
done =
|
|
6042
|
+
return new Promise((r3) => {
|
|
6043
|
+
done = r3;
|
|
5530
6044
|
});
|
|
5531
6045
|
})();
|
|
5532
6046
|
const afterCollapseCallback = getAfterCollapseCallback(done);
|
|
5533
6047
|
removeTransition(el);
|
|
5534
6048
|
let original = el.scrollHeight;
|
|
5535
|
-
|
|
6049
|
+
windowExists3 && requestAnimationFrame(() => {
|
|
5536
6050
|
el.addEventListener("transitionend", afterCollapseCallback, { once: true });
|
|
5537
6051
|
el.style.height = original + "px";
|
|
5538
6052
|
el.style.transitionTimingFunction = "ease-in";
|
|
@@ -5548,13 +6062,13 @@ import { classMap as classMap2 } from "lit/directives/class-map.js";
|
|
|
5548
6062
|
import { when as when2 } from "lit/directives/when.js";
|
|
5549
6063
|
|
|
5550
6064
|
// packages/toast/locales/en/messages.mjs
|
|
5551
|
-
var
|
|
6065
|
+
var messages43 = JSON.parse('{"toast.aria.error":"Error","toast.aria.successful":"Successful","toast.aria.warning":"Warning"}');
|
|
5552
6066
|
|
|
5553
6067
|
// packages/toast/locales/fi/messages.mjs
|
|
5554
|
-
var
|
|
6068
|
+
var messages44 = JSON.parse('{"toast.aria.error":"Error","toast.aria.successful":"Successful","toast.aria.warning":"Warning"}');
|
|
5555
6069
|
|
|
5556
6070
|
// packages/toast/locales/nb/messages.mjs
|
|
5557
|
-
var
|
|
6071
|
+
var messages45 = JSON.parse('{"toast.aria.error":"Varsel","toast.aria.successful":"Vellykket","toast.aria.warning":"Feil"}');
|
|
5558
6072
|
|
|
5559
6073
|
// packages/toast/toast.js
|
|
5560
6074
|
var classes2 = (definition) => {
|
|
@@ -5571,10 +6085,10 @@ var toastType = {
|
|
|
5571
6085
|
error: "error",
|
|
5572
6086
|
warning: "warning"
|
|
5573
6087
|
};
|
|
5574
|
-
var WarpToast = class extends
|
|
6088
|
+
var WarpToast = class extends WarpElement18 {
|
|
5575
6089
|
constructor() {
|
|
5576
6090
|
super();
|
|
5577
|
-
activateI18n7(
|
|
6091
|
+
activateI18n7(messages43, messages45, messages44);
|
|
5578
6092
|
this.id = Date.now().toString(36) + Math.random().toString(36).slice(2, 5);
|
|
5579
6093
|
this.type = "success";
|
|
5580
6094
|
this.text = "";
|
|
@@ -5643,11 +6157,11 @@ var WarpToast = class extends WarpElement15 {
|
|
|
5643
6157
|
}
|
|
5644
6158
|
get _iconMarkup() {
|
|
5645
6159
|
if (this._warning)
|
|
5646
|
-
return
|
|
6160
|
+
return html27`<w-icon-warning-16></w-icon-warning-16>`;
|
|
5647
6161
|
if (this._error)
|
|
5648
|
-
return
|
|
6162
|
+
return html27`<w-icon-error-16></w-icon-error-16>`;
|
|
5649
6163
|
else
|
|
5650
|
-
return
|
|
6164
|
+
return html27`<w-icon-success-16></w-icon-success-16>`;
|
|
5651
6165
|
}
|
|
5652
6166
|
async collapse() {
|
|
5653
6167
|
return new Promise((resolve) => {
|
|
@@ -5667,8 +6181,8 @@ var WarpToast = class extends WarpElement15 {
|
|
|
5667
6181
|
}
|
|
5668
6182
|
render() {
|
|
5669
6183
|
if (!this.text)
|
|
5670
|
-
return
|
|
5671
|
-
return
|
|
6184
|
+
return html27``;
|
|
6185
|
+
return html27` <section class="${toast.wrapper}" aria-label="${this._typeLabel}">
|
|
5672
6186
|
<div class="${this._primaryClasses}">
|
|
5673
6187
|
<div class="${this._iconClasses}">${this._iconMarkup}</div>
|
|
5674
6188
|
<div role="${this._role}" class="${toast.content}">
|
|
@@ -5676,7 +6190,7 @@ var WarpToast = class extends WarpElement15 {
|
|
|
5676
6190
|
</div>
|
|
5677
6191
|
${when2(
|
|
5678
6192
|
this.canclose === true,
|
|
5679
|
-
() =>
|
|
6193
|
+
() => html27`
|
|
5680
6194
|
<button class="${toast.close}" @click="${this.close}">
|
|
5681
6195
|
<w-icon-close-16></w-icon-close-16>
|
|
5682
6196
|
</button>
|
|
@@ -5687,8 +6201,8 @@ var WarpToast = class extends WarpElement15 {
|
|
|
5687
6201
|
}
|
|
5688
6202
|
};
|
|
5689
6203
|
__publicField(WarpToast, "styles", [
|
|
5690
|
-
|
|
5691
|
-
|
|
6204
|
+
WarpElement18.styles,
|
|
6205
|
+
css9`
|
|
5692
6206
|
:host {
|
|
5693
6207
|
display: block;
|
|
5694
6208
|
}
|
|
@@ -5705,10 +6219,10 @@ if (!customElements.get("w-toast")) {
|
|
|
5705
6219
|
}
|
|
5706
6220
|
|
|
5707
6221
|
// packages/utils/expand-transition.js
|
|
5708
|
-
import { css as
|
|
5709
|
-
import
|
|
6222
|
+
import { css as css10, html as html28 } from "lit";
|
|
6223
|
+
import WarpElement19 from "@warp-ds/elements-core";
|
|
5710
6224
|
import { ifDefined as ifDefined7 } from "lit/directives/if-defined.js";
|
|
5711
|
-
var ExpandTransition = class extends
|
|
6225
|
+
var ExpandTransition = class extends WarpElement19 {
|
|
5712
6226
|
constructor() {
|
|
5713
6227
|
super();
|
|
5714
6228
|
this.show = false;
|
|
@@ -5741,7 +6255,7 @@ var ExpandTransition = class extends WarpElement16 {
|
|
|
5741
6255
|
return this != null ? this : null;
|
|
5742
6256
|
}
|
|
5743
6257
|
render() {
|
|
5744
|
-
return
|
|
6258
|
+
return html28`<div aria-hidden=${ifDefined7(!this.show ? "true" : void 0)}>${this._removeElement ? html28`` : html28`<slot></slot>`}</div>`;
|
|
5745
6259
|
}
|
|
5746
6260
|
};
|
|
5747
6261
|
__publicField(ExpandTransition, "properties", {
|
|
@@ -5752,8 +6266,8 @@ __publicField(ExpandTransition, "properties", {
|
|
|
5752
6266
|
_removeElement: { type: Boolean, state: true }
|
|
5753
6267
|
});
|
|
5754
6268
|
__publicField(ExpandTransition, "styles", [
|
|
5755
|
-
|
|
5756
|
-
|
|
6269
|
+
WarpElement19.styles,
|
|
6270
|
+
css10`
|
|
5757
6271
|
:host {
|
|
5758
6272
|
display: block;
|
|
5759
6273
|
}
|
|
@@ -5764,10 +6278,10 @@ if (!customElements.get("w-expand-transition")) {
|
|
|
5764
6278
|
}
|
|
5765
6279
|
|
|
5766
6280
|
// packages/utils/unstyled-heading.js
|
|
5767
|
-
import { html as
|
|
5768
|
-
import
|
|
6281
|
+
import { html as html29 } from "lit";
|
|
6282
|
+
import WarpElement20 from "@warp-ds/elements-core";
|
|
5769
6283
|
import { unsafeHTML as unsafeHTML2 } from "lit/directives/unsafe-html.js";
|
|
5770
|
-
var UnstyledHeading = class extends
|
|
6284
|
+
var UnstyledHeading = class extends WarpElement20 {
|
|
5771
6285
|
get _markup() {
|
|
5772
6286
|
return `<h${this.level}
|
|
5773
6287
|
style="margin: 0; font-weight: unset; font-size: unset; line-height: unset;"
|
|
@@ -5777,18 +6291,20 @@ var UnstyledHeading = class extends WarpElement17 {
|
|
|
5777
6291
|
`;
|
|
5778
6292
|
}
|
|
5779
6293
|
render() {
|
|
5780
|
-
return !this.level ?
|
|
6294
|
+
return !this.level ? html29`<slot></slot>` : unsafeHTML2(this._markup);
|
|
5781
6295
|
}
|
|
5782
6296
|
};
|
|
5783
6297
|
__publicField(UnstyledHeading, "properties", {
|
|
5784
6298
|
level: { type: Number }
|
|
5785
6299
|
});
|
|
5786
|
-
__publicField(UnstyledHeading, "styles", [
|
|
6300
|
+
__publicField(UnstyledHeading, "styles", [WarpElement20.styles]);
|
|
5787
6301
|
if (!customElements.get("w-unstyled-heading")) {
|
|
5788
6302
|
customElements.define("w-unstyled-heading", UnstyledHeading);
|
|
5789
6303
|
}
|
|
5790
6304
|
export {
|
|
5791
6305
|
ExpandTransition,
|
|
6306
|
+
CanCloseMixin as ModalCanCloseMixin,
|
|
6307
|
+
ProvidesCanCloseToSlotsMixin as ModalProvidesCanCloseToSlotsMixin,
|
|
5792
6308
|
UnstyledHeading,
|
|
5793
6309
|
WarpAffix,
|
|
5794
6310
|
WarpAlert,
|
|
@@ -5800,6 +6316,9 @@ export {
|
|
|
5800
6316
|
WarpButton,
|
|
5801
6317
|
WarpCard,
|
|
5802
6318
|
WarpExpandable,
|
|
6319
|
+
ModalMain as WarpModal,
|
|
6320
|
+
ModalFooter as WarpModalFooter,
|
|
6321
|
+
ModalHeader as WarpModalHeader,
|
|
5803
6322
|
WarpPill,
|
|
5804
6323
|
WarpSelect,
|
|
5805
6324
|
WarpTextField,
|