@warp-ds/elements 2.0.0-next.2 → 2.0.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/api.js +3 -6
- package/dist/api.js.map +1 -1
- package/dist/index.js +205 -255
- package/dist/index.js.map +4 -4
- package/dist/packages/affix/index.d.ts +1 -1
- package/dist/packages/affix/index.js +35 -49
- package/dist/packages/affix/index.js.map +3 -3
- package/dist/packages/alert/index.js +39 -55
- package/dist/packages/alert/index.js.map +3 -3
- package/dist/packages/attention/index.js +118 -109
- package/dist/packages/attention/index.js.map +4 -4
- package/dist/packages/badge/index.js +3 -7
- package/dist/packages/badge/index.js.map +2 -2
- package/dist/packages/box/index.d.ts +1 -1
- package/dist/packages/box/index.js +2 -5
- package/dist/packages/box/index.js.map +2 -2
- package/dist/packages/breadcrumbs/index.js +36 -53
- package/dist/packages/breadcrumbs/index.js.map +3 -3
- package/dist/packages/broadcast/index.js +2 -6
- package/dist/packages/broadcast/index.js.map +1 -1
- package/dist/packages/button/index.js +36 -54
- package/dist/packages/button/index.js.map +3 -3
- package/dist/packages/card/index.d.ts +2 -2
- package/dist/packages/card/index.js +3 -7
- package/dist/packages/card/index.js.map +2 -2
- package/dist/packages/expandable/index.d.ts +2 -2
- package/dist/packages/expandable/index.js +52 -68
- package/dist/packages/expandable/index.js.map +4 -4
- package/dist/packages/modal/index.js +45 -69
- package/dist/packages/modal/index.js.map +3 -3
- package/dist/packages/modal/modal-header.d.ts +1 -1
- package/dist/packages/modal/modal-main.d.ts +3 -3
- package/dist/packages/pill/index.js +38 -56
- package/dist/packages/pill/index.js.map +3 -3
- package/dist/packages/select/index.js +54 -87
- package/dist/packages/select/index.js.map +3 -3
- package/dist/packages/textfield/index.js +7 -15
- package/dist/packages/textfield/index.js.map +2 -2
- package/dist/packages/toast/api.d.ts +1 -1
- package/dist/packages/toast/index.js +68 -110
- package/dist/packages/toast/index.js.map +3 -3
- package/dist/packages/toast/toast-container.d.ts +1 -1
- package/dist/packages/toast/toast.d.ts +2 -2
- package/dist/packages/utils/index.d.ts +1 -1
- package/package.json +27 -28
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) =>
|
|
4
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
7
4
|
|
|
8
5
|
// packages/broadcast/component.js
|
|
9
6
|
import { html } from "lit";
|
|
@@ -64,8 +61,7 @@ __publicField(WarpBroadcast, "properties", {
|
|
|
64
61
|
_messages: {
|
|
65
62
|
state: true,
|
|
66
63
|
hasChanged(newVal, oldVal) {
|
|
67
|
-
if (!oldVal || oldVal.length === 0)
|
|
68
|
-
return true;
|
|
64
|
+
if (!oldVal || oldVal.length === 0) return true;
|
|
69
65
|
const newIds = newVal.map(({ id }) => id).sort();
|
|
70
66
|
const oldIds = oldVal.map(({ id }) => id).sort();
|
|
71
67
|
return JSON.stringify(newIds) !== JSON.stringify(oldIds);
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../packages/broadcast/component.js", "../../../packages/utils/window-exists.js", "../../../packages/broadcast/index.js"],
|
|
4
4
|
"sourcesContent": ["import { html } from 'lit';\n\nimport WarpElement from '@warp-ds/elements-core';\nimport { repeat } from 'lit/directives/repeat.js';\n\nimport { windowExists } from '../utils/window-exists';\n\nexport class WarpBroadcast extends WarpElement {\n static properties = {\n _messages: {\n state: true,\n hasChanged(newVal, oldVal) {\n if (!oldVal || oldVal.length === 0) return true;\n const newIds = newVal.map(({ id }) => id).sort();\n const oldIds = oldVal.map(({ id }) => id).sort();\n return JSON.stringify(newIds) !== JSON.stringify(oldIds);\n },\n },\n _hiddenMessageIds: {\n state: true,\n type: Array,\n },\n interval: { type: Number, attribute: true, reflect: true },\n url: { type: String, attribute: true, reflect: true },\n api: { type: String, attribute: true, reflect: true },\n };\n\n static styles = [WarpElement.styles];\n\n constructor() {\n super();\n this._messages = [];\n this.interval = 30000;\n this._hiddenMessageIds = [];\n this.url = windowExists ? window.location.href : '';\n }\n\n async connectedCallback() {\n super.connectedCallback();\n if (!this.api) {\n console.error('Broadcast \"api\" attribute invalid or undefined');\n return;\n }\n if (windowExists) {\n await this._fetchMessage();\n setInterval(() => this._fetchMessage(), this.interval);\n }\n }\n\n async _fetchMessage() {\n const url = `${this.api}?path=${this.url}`;\n try {\n const res = await (await fetch(url)).json();\n this._messages = res.length ? res : [];\n } catch (err) {\n console.error(`failed to fetch broadcasts from given url (${url})`, err);\n }\n }\n\n async _del(id) {\n const el = this.renderRoot.querySelector(`#broadcast-${id}`);\n await el.collapse();\n this._hiddenMessageIds = [...new Set([...this._hiddenMessageIds, id])];\n }\n\n render() {\n const messages = this._messages.filter((item) => !this._hiddenMessageIds.includes(item.id));\n\n return html`\n <aside class=${`${messages.length === 0 ? 'hidden' : 'mb-16'}`}>\n ${repeat(\n messages,\n ({ id }) => `broadcast-${id}`,\n ({ id, message }) =>\n html`<w-toast id=\"broadcast-${id}\" type=\"warning\" text=\"${message}\" canclose @close=${() => this._del(id)}> </w-toast>`,\n )}\n </aside>\n `;\n }\n}\n", "export const windowExists = typeof window !== 'undefined';\n", "import { WarpBroadcast } from './component';\n\nif (!customElements.get('w-broadcast')) {\n customElements.define('w-broadcast', WarpBroadcast);\n}\n\nexport { WarpBroadcast };\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;AAAA,SAAS,YAAY;AAErB,OAAO,iBAAiB;AACxB,SAAS,cAAc;;;ACHhB,IAAM,eAAe,OAAO,WAAW;;;ADOvC,IAAM,gBAAN,cAA4B,YAAY;AAAA,EAsB7C,cAAc;AACZ,UAAM;AACN,SAAK,YAAY,CAAC;AAClB,SAAK,WAAW;AAChB,SAAK,oBAAoB,CAAC;AAC1B,SAAK,MAAM,eAAe,OAAO,SAAS,OAAO;AAAA,EACnD;AAAA,EAEA,MAAM,oBAAoB;AACxB,UAAM,kBAAkB;AACxB,QAAI,CAAC,KAAK,KAAK;AACb,cAAQ,MAAM,gDAAgD;AAC9D;AAAA,IACF;AACA,QAAI,cAAc;AAChB,YAAM,KAAK,cAAc;AACzB,kBAAY,MAAM,KAAK,cAAc,GAAG,KAAK,QAAQ;AAAA,IACvD;AAAA,EACF;AAAA,EAEA,MAAM,gBAAgB;AACpB,UAAM,MAAM,GAAG,KAAK,GAAG,SAAS,KAAK,GAAG;AACxC,QAAI;AACF,YAAM,MAAM,OAAO,MAAM,MAAM,GAAG,GAAG,KAAK;AAC1C,WAAK,YAAY,IAAI,SAAS,MAAM,CAAC;AAAA,IACvC,SAAS,KAAK;AACZ,cAAQ,MAAM,8CAA8C,GAAG,KAAK,GAAG;AAAA,IACzE;AAAA,EACF;AAAA,EAEA,MAAM,KAAK,IAAI;AACb,UAAM,KAAK,KAAK,WAAW,cAAc,cAAc,EAAE,EAAE;AAC3D,UAAM,GAAG,SAAS;AAClB,SAAK,oBAAoB,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,KAAK,mBAAmB,EAAE,CAAC,CAAC;AAAA,EACvE;AAAA,EAEA,SAAS;AACP,UAAM,WAAW,KAAK,UAAU,OAAO,CAAC,SAAS,CAAC,KAAK,kBAAkB,SAAS,KAAK,EAAE,CAAC;AAE1F,WAAO;AAAA,qBACU,GAAG,SAAS,WAAW,IAAI,WAAW,OAAO,EAAE;AAAA,UAC1D;AAAA,MACA;AAAA,MACA,CAAC,EAAE,GAAG,MAAM,aAAa,EAAE;AAAA,MAC3B,CAAC,EAAE,IAAI,QAAQ,MACb,8BAA8B,EAAE,0BAA0B,OAAO,qBAAqB,MAAM,KAAK,KAAK,EAAE,CAAC;AAAA,IAC7G,CAAC;AAAA;AAAA;AAAA,EAGP;AACF;AAvEE,cADW,eACJ,cAAa;AAAA,EAClB,WAAW;AAAA,IACT,OAAO;AAAA,IACP,WAAW,QAAQ,QAAQ;AACzB,UAAI,CAAC,UAAU,OAAO,WAAW,EAAG,QAAO;AAC3C,YAAM,SAAS,OAAO,IAAI,CAAC,EAAE,GAAG,MAAM,EAAE,EAAE,KAAK;AAC/C,YAAM,SAAS,OAAO,IAAI,CAAC,EAAE,GAAG,MAAM,EAAE,EAAE,KAAK;AAC/C,aAAO,KAAK,UAAU,MAAM,MAAM,KAAK,UAAU,MAAM;AAAA,IACzD;AAAA,EACF;AAAA,EACA,mBAAmB;AAAA,IACjB,OAAO;AAAA,IACP,MAAM;AAAA,EACR;AAAA,EACA,UAAU,EAAE,MAAM,QAAQ,WAAW,MAAM,SAAS,KAAK;AAAA,EACzD,KAAK,EAAE,MAAM,QAAQ,WAAW,MAAM,SAAS,KAAK;AAAA,EACpD,KAAK,EAAE,MAAM,QAAQ,WAAW,MAAM,SAAS,KAAK;AACtD;AAEA,cApBW,eAoBJ,UAAS,CAAC,YAAY,MAAM;;;AEzBrC,IAAI,CAAC,eAAe,IAAI,aAAa,GAAG;AACtC,iBAAe,OAAO,eAAe,aAAa;AACpD;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -52,10 +52,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
52
52
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
53
53
|
mod
|
|
54
54
|
));
|
|
55
|
-
var __publicField = (obj, key, value) =>
|
|
56
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
57
|
-
return value;
|
|
58
|
-
};
|
|
55
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
59
56
|
|
|
60
57
|
// node_modules/.pnpm/unraw@3.0.0/node_modules/unraw/dist/errors.js
|
|
61
58
|
var require_errors = __commonJS({
|
|
@@ -228,8 +225,7 @@ var require_moo = __commonJS({
|
|
|
228
225
|
return "(" + s + ")";
|
|
229
226
|
}
|
|
230
227
|
function reUnion(regexps) {
|
|
231
|
-
if (!regexps.length)
|
|
232
|
-
return "(?!)";
|
|
228
|
+
if (!regexps.length) return "(?!)";
|
|
233
229
|
var source = regexps.map(function(s) {
|
|
234
230
|
return "(?:" + s + ")";
|
|
235
231
|
}).join("|");
|
|
@@ -239,14 +235,10 @@ var require_moo = __commonJS({
|
|
|
239
235
|
if (typeof obj === "string") {
|
|
240
236
|
return "(?:" + reEscape(obj) + ")";
|
|
241
237
|
} else if (isRegExp(obj)) {
|
|
242
|
-
if (obj.ignoreCase)
|
|
243
|
-
|
|
244
|
-
if (obj.
|
|
245
|
-
|
|
246
|
-
if (obj.sticky)
|
|
247
|
-
throw new Error("RegExp /y flag is implied");
|
|
248
|
-
if (obj.multiline)
|
|
249
|
-
throw new Error("RegExp /m flag is implied");
|
|
238
|
+
if (obj.ignoreCase) throw new Error("RegExp /i flag not allowed");
|
|
239
|
+
if (obj.global) throw new Error("RegExp /g flag is implied");
|
|
240
|
+
if (obj.sticky) throw new Error("RegExp /y flag is implied");
|
|
241
|
+
if (obj.multiline) throw new Error("RegExp /m flag is implied");
|
|
250
242
|
return obj.source;
|
|
251
243
|
} else {
|
|
252
244
|
throw new Error("Not a pattern: " + obj);
|
|
@@ -295,16 +287,14 @@ var require_moo = __commonJS({
|
|
|
295
287
|
var match = [];
|
|
296
288
|
rules.forEach(function(rule) {
|
|
297
289
|
if (isObject(rule)) {
|
|
298
|
-
if (match.length)
|
|
299
|
-
result.push(ruleOptions(key, match));
|
|
290
|
+
if (match.length) result.push(ruleOptions(key, match));
|
|
300
291
|
result.push(ruleOptions(key, rule));
|
|
301
292
|
match = [];
|
|
302
293
|
} else {
|
|
303
294
|
match.push(rule);
|
|
304
295
|
}
|
|
305
296
|
});
|
|
306
|
-
if (match.length)
|
|
307
|
-
result.push(ruleOptions(key, match));
|
|
297
|
+
if (match.length) result.push(ruleOptions(key, match));
|
|
308
298
|
}
|
|
309
299
|
return result;
|
|
310
300
|
}
|
|
@@ -439,8 +429,7 @@ var require_moo = __commonJS({
|
|
|
439
429
|
var fallbackRule = errorRule && errorRule.fallback;
|
|
440
430
|
var flags = hasSticky && !fallbackRule ? "ym" : "gm";
|
|
441
431
|
var suffix2 = hasSticky || fallbackRule ? "" : "|";
|
|
442
|
-
if (unicodeFlag === true)
|
|
443
|
-
flags += "u";
|
|
432
|
+
if (unicodeFlag === true) flags += "u";
|
|
444
433
|
var combined = new RegExp(reUnion(parts) + suffix2, flags);
|
|
445
434
|
return { regexp: combined, groups, fast, error: errorRule || defaultErrorRule };
|
|
446
435
|
}
|
|
@@ -461,8 +450,7 @@ var require_moo = __commonJS({
|
|
|
461
450
|
var all = states.$all ? toRules(states.$all) : [];
|
|
462
451
|
delete states.$all;
|
|
463
452
|
var keys = Object.getOwnPropertyNames(states);
|
|
464
|
-
if (!start)
|
|
465
|
-
start = keys[0];
|
|
453
|
+
if (!start) start = keys[0];
|
|
466
454
|
var ruleMap = /* @__PURE__ */ Object.create(null);
|
|
467
455
|
for (var i = 0; i < keys.length; i++) {
|
|
468
456
|
var key = keys[i];
|
|
@@ -474,8 +462,7 @@ var require_moo = __commonJS({
|
|
|
474
462
|
var included = /* @__PURE__ */ Object.create(null);
|
|
475
463
|
for (var j = 0; j < rules.length; j++) {
|
|
476
464
|
var rule = rules[j];
|
|
477
|
-
if (!rule.include)
|
|
478
|
-
continue;
|
|
465
|
+
if (!rule.include) continue;
|
|
479
466
|
var splice = [j, 1];
|
|
480
467
|
if (rule.include !== key && !included[rule.include]) {
|
|
481
468
|
included[rule.include] = true;
|
|
@@ -485,8 +472,7 @@ var require_moo = __commonJS({
|
|
|
485
472
|
}
|
|
486
473
|
for (var k = 0; k < newRules.length; k++) {
|
|
487
474
|
var newRule = newRules[k];
|
|
488
|
-
if (rules.indexOf(newRule) !== -1)
|
|
489
|
-
continue;
|
|
475
|
+
if (rules.indexOf(newRule) !== -1) continue;
|
|
490
476
|
splice.push(newRule);
|
|
491
477
|
}
|
|
492
478
|
}
|
|
@@ -567,8 +553,7 @@ var require_moo = __commonJS({
|
|
|
567
553
|
};
|
|
568
554
|
};
|
|
569
555
|
Lexer.prototype.setState = function(state) {
|
|
570
|
-
if (!state || this.state === state)
|
|
571
|
-
return;
|
|
556
|
+
if (!state || this.state === state) return;
|
|
572
557
|
this.state = state;
|
|
573
558
|
var info = this.states[state];
|
|
574
559
|
this.groups = info.groups;
|
|
@@ -672,12 +657,9 @@ var require_moo = __commonJS({
|
|
|
672
657
|
var err = new Error(this.formatError(token, "invalid syntax"));
|
|
673
658
|
throw err;
|
|
674
659
|
}
|
|
675
|
-
if (group.pop)
|
|
676
|
-
|
|
677
|
-
else if (group.
|
|
678
|
-
this.pushState(group.push);
|
|
679
|
-
else if (group.next)
|
|
680
|
-
this.setState(group.next);
|
|
660
|
+
if (group.pop) this.popState();
|
|
661
|
+
else if (group.push) this.pushState(group.push);
|
|
662
|
+
else if (group.next) this.setState(group.next);
|
|
681
663
|
return token;
|
|
682
664
|
};
|
|
683
665
|
if (typeof Symbol !== "undefined" && Symbol.iterator) {
|
|
@@ -1032,8 +1014,7 @@ import { html } from "lit";
|
|
|
1032
1014
|
|
|
1033
1015
|
// node_modules/.pnpm/@chbphone55+classnames@2.0.0/node_modules/@chbphone55/classnames/dist/index.m.js
|
|
1034
1016
|
var r = function() {
|
|
1035
|
-
for (var t = [], n = arguments.length; n--; )
|
|
1036
|
-
t[n] = arguments[n];
|
|
1017
|
+
for (var t = [], n = arguments.length; n--; ) t[n] = arguments[n];
|
|
1037
1018
|
return t.reduce(function(t2, n2) {
|
|
1038
1019
|
return t2.concat("string" == typeof n2 ? n2 : Array.isArray(n2) ? r.apply(void 0, n2) : "object" == typeof n2 && n2 ? Object.keys(n2).map(function(r2) {
|
|
1039
1020
|
return n2[r2] ? r2 : "";
|
|
@@ -1041,10 +1022,10 @@ var r = function() {
|
|
|
1041
1022
|
}, []).join(" ");
|
|
1042
1023
|
};
|
|
1043
1024
|
|
|
1044
|
-
// node_modules/.pnpm/@lingui+core@4.
|
|
1025
|
+
// node_modules/.pnpm/@lingui+core@4.11.2/node_modules/@lingui/core/dist/index.mjs
|
|
1045
1026
|
var import_unraw = __toESM(require_dist(), 1);
|
|
1046
1027
|
|
|
1047
|
-
// node_modules/.pnpm/@lingui+message-utils@4.
|
|
1028
|
+
// node_modules/.pnpm/@lingui+message-utils@4.11.2/node_modules/@lingui/message-utils/dist/compileMessage.mjs
|
|
1048
1029
|
var import_parser = __toESM(require_parser(), 1);
|
|
1049
1030
|
function processTokens(tokens, mapText) {
|
|
1050
1031
|
if (!tokens.filter((token) => token.type !== "content").length) {
|
|
@@ -1068,11 +1049,9 @@ function processTokens(tokens, mapText) {
|
|
|
1068
1049
|
}
|
|
1069
1050
|
const offset = token.pluralOffset;
|
|
1070
1051
|
const formatProps = {};
|
|
1071
|
-
token.cases.forEach((
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
mapText
|
|
1075
|
-
);
|
|
1052
|
+
token.cases.forEach(({ key, tokens: tokens2 }) => {
|
|
1053
|
+
const prop = key[0] === "=" ? key.slice(1) : key;
|
|
1054
|
+
formatProps[prop] = processTokens(tokens2, mapText);
|
|
1076
1055
|
});
|
|
1077
1056
|
return [
|
|
1078
1057
|
token.arg,
|
|
@@ -1094,7 +1073,7 @@ Message: ${message}`);
|
|
|
1094
1073
|
}
|
|
1095
1074
|
}
|
|
1096
1075
|
|
|
1097
|
-
// node_modules/.pnpm/@lingui+core@4.
|
|
1076
|
+
// node_modules/.pnpm/@lingui+core@4.11.2/node_modules/@lingui/core/dist/index.mjs
|
|
1098
1077
|
var isString = (s) => typeof s === "string";
|
|
1099
1078
|
var isFunction = (f) => typeof f === "function";
|
|
1100
1079
|
var cache = /* @__PURE__ */ new Map();
|
|
@@ -1180,11 +1159,11 @@ var selectFormatter = (value, rules) => {
|
|
|
1180
1159
|
function interpolate(translation, locale, locales) {
|
|
1181
1160
|
return (values = {}, formats) => {
|
|
1182
1161
|
const formatters = getDefaultFormats(locale, locales, formats);
|
|
1183
|
-
const formatMessage = (tokens) => {
|
|
1162
|
+
const formatMessage = (tokens, replaceOctothorpe = false) => {
|
|
1184
1163
|
if (!Array.isArray(tokens))
|
|
1185
1164
|
return tokens;
|
|
1186
1165
|
return tokens.reduce((message, token) => {
|
|
1187
|
-
if (token === "#") {
|
|
1166
|
+
if (token === "#" && replaceOctothorpe) {
|
|
1188
1167
|
return message + OCTOTHORPE_PH;
|
|
1189
1168
|
}
|
|
1190
1169
|
if (isString(token)) {
|
|
@@ -1195,7 +1174,10 @@ function interpolate(translation, locale, locales) {
|
|
|
1195
1174
|
if (type === "plural" || type === "selectordinal" || type === "select") {
|
|
1196
1175
|
Object.entries(format).forEach(
|
|
1197
1176
|
([key, value2]) => {
|
|
1198
|
-
interpolatedFormat[key] = formatMessage(
|
|
1177
|
+
interpolatedFormat[key] = formatMessage(
|
|
1178
|
+
value2,
|
|
1179
|
+
type === "plural" || type === "selectordinal"
|
|
1180
|
+
);
|
|
1199
1181
|
}
|
|
1200
1182
|
);
|
|
1201
1183
|
} else {
|
|
@@ -1363,6 +1345,9 @@ var I18n = class extends EventEmitter {
|
|
|
1363
1345
|
}
|
|
1364
1346
|
_(id, values, options) {
|
|
1365
1347
|
let message = options == null ? void 0 : options.message;
|
|
1348
|
+
if (!id) {
|
|
1349
|
+
id = "";
|
|
1350
|
+
}
|
|
1366
1351
|
if (!isString(id)) {
|
|
1367
1352
|
values = id.values || values;
|
|
1368
1353
|
message = id.message;
|
|
@@ -1403,7 +1388,7 @@ function setupI18n(params = {}) {
|
|
|
1403
1388
|
}
|
|
1404
1389
|
var i18n = setupI18n();
|
|
1405
1390
|
|
|
1406
|
-
// node_modules/.pnpm/@warp-ds+css@2.0.0-next.4_@warp-ds+uno@2.0.0_unocss@0.
|
|
1391
|
+
// node_modules/.pnpm/@warp-ds+css@2.0.0-next.4_@warp-ds+uno@2.0.0_unocss@0.61.3_postcss@8.4.39_rollup@4.18.1_vite@_fn7nbuinwdlc4yeboswpxt5lie/node_modules/@warp-ds/css/component-classes/index.js
|
|
1407
1392
|
var box = {
|
|
1408
1393
|
box: "group block relative break-words last-child:mb-0 p-16 rounded-8",
|
|
1409
1394
|
// Relative here enables w-clickable
|
|
@@ -1701,12 +1686,9 @@ function detectLocale() {
|
|
|
1701
1686
|
}
|
|
1702
1687
|
}
|
|
1703
1688
|
var getMessages = (locale, enMsg, nbMsg, fiMsg, daMsg) => {
|
|
1704
|
-
if (locale === "nb")
|
|
1705
|
-
|
|
1706
|
-
if (locale === "
|
|
1707
|
-
return fiMsg;
|
|
1708
|
-
if (locale === "da")
|
|
1709
|
-
return daMsg;
|
|
1689
|
+
if (locale === "nb") return nbMsg;
|
|
1690
|
+
if (locale === "fi") return fiMsg;
|
|
1691
|
+
if (locale === "da") return daMsg;
|
|
1710
1692
|
return enMsg;
|
|
1711
1693
|
};
|
|
1712
1694
|
var activateI18n = (enMessages, nbMessages, fiMessages, daMessages) => {
|