@warp-ds/elements 2.1.0 → 2.1.1-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.
@@ -726,9 +726,9 @@ var require_moo = __commonJS({
726
726
  }
727
727
  });
728
728
 
729
- // node_modules/.pnpm/@messageformat+parser@5.1.0/node_modules/@messageformat/parser/lib/lexer.js
729
+ // node_modules/.pnpm/@messageformat+parser@5.1.1/node_modules/@messageformat/parser/lib/lexer.js
730
730
  var require_lexer = __commonJS({
731
- "node_modules/.pnpm/@messageformat+parser@5.1.0/node_modules/@messageformat/parser/lib/lexer.js"(exports) {
731
+ "node_modules/.pnpm/@messageformat+parser@5.1.1/node_modules/@messageformat/parser/lib/lexer.js"(exports) {
732
732
  "use strict";
733
733
  var __importDefault = exports && exports.__importDefault || function(mod) {
734
734
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -741,7 +741,7 @@ var require_lexer = __commonJS({
741
741
  doubleapos: { match: "''", value: () => "'" },
742
742
  quoted: {
743
743
  lineBreaks: true,
744
- match: /'[{}#](?:[^]*?[^'])?'(?!')/u,
744
+ match: /'[{}#](?:[^']|'')*'(?!')/u,
745
745
  value: (src) => src.slice(1, -1).replace(/''/g, "'")
746
746
  },
747
747
  argument: {
@@ -793,12 +793,13 @@ var require_lexer = __commonJS({
793
793
  }
794
794
  });
795
795
 
796
- // node_modules/.pnpm/@messageformat+parser@5.1.0/node_modules/@messageformat/parser/lib/parser.js
796
+ // node_modules/.pnpm/@messageformat+parser@5.1.1/node_modules/@messageformat/parser/lib/parser.js
797
797
  var require_parser = __commonJS({
798
- "node_modules/.pnpm/@messageformat+parser@5.1.0/node_modules/@messageformat/parser/lib/parser.js"(exports) {
798
+ "node_modules/.pnpm/@messageformat+parser@5.1.1/node_modules/@messageformat/parser/lib/parser.js"(exports) {
799
799
  "use strict";
800
800
  Object.defineProperty(exports, "__esModule", { value: true });
801
- exports.parse = exports.ParseError = void 0;
801
+ exports.ParseError = void 0;
802
+ exports.parse = parse2;
802
803
  var lexer_js_1 = require_lexer();
803
804
  var getContext = (lt) => ({
804
805
  offset: lt.offset,
@@ -864,8 +865,9 @@ var require_parser = __commonJS({
864
865
  }
865
866
  checkSelectKey(lt, type, key) {
866
867
  if (key[0] === "=") {
867
- if (type === "select")
868
+ if (type === "select") {
868
869
  throw new ParseError(lt, `The case ${key} is not valid with select`);
870
+ }
869
871
  } else if (type !== "select") {
870
872
  const keys = type === "plural" ? this.cardinalKeys : this.ordinalKeys;
871
873
  if (this.strictPluralKeys && keys.length > 0 && !keys.includes(key)) {
@@ -883,10 +885,12 @@ var require_parser = __commonJS({
883
885
  for (const lt of this.lexer) {
884
886
  switch (lt.type) {
885
887
  case "offset":
886
- if (type === "select")
888
+ if (type === "select") {
887
889
  throw new ParseError(lt, "Unexpected plural offset for select");
888
- if (sel.cases.length > 0)
890
+ }
891
+ if (sel.cases.length > 0) {
889
892
  throw new ParseError(lt, "Plural offset must be set before cases");
893
+ }
890
894
  sel.pluralOffset = Number(lt.value);
891
895
  ctx.text += lt.text;
892
896
  ctx.lineBreaks += lt.lineBreaks;
@@ -926,11 +930,13 @@ var require_parser = __commonJS({
926
930
  const end = this.lexer.next();
927
931
  if (!end)
928
932
  throw new ParseError(null, "Unexpected message end");
929
- if (end.type !== "end")
933
+ if (end.type !== "end") {
930
934
  throw new ParseError(end, `Unexpected lexer token: ${end.type}`);
935
+ }
931
936
  ctx.text += end.text;
932
- if (isSelectType(argType.value.toLowerCase()))
937
+ if (isSelectType(argType.value.toLowerCase())) {
933
938
  throw new ParseError(argType, `Invalid type identifier: ${argType.value}`);
939
+ }
934
940
  return {
935
941
  type: "function",
936
942
  arg: lt.value,
@@ -944,8 +950,9 @@ var require_parser = __commonJS({
944
950
  throw new ParseError(argType, msg);
945
951
  }
946
952
  let param = this.parseBody(this.strict ? false : inPlural);
947
- if (this.strict && param.length > 0)
953
+ if (this.strict && param.length > 0) {
948
954
  param = strictArgStyleParam(lt, param);
955
+ }
949
956
  return {
950
957
  type: "function",
951
958
  arg: lt.value,
@@ -955,10 +962,11 @@ var require_parser = __commonJS({
955
962
  };
956
963
  }
957
964
  case "select":
958
- if (isSelectType(argType.value))
965
+ if (isSelectType(argType.value)) {
959
966
  return this.parseSelect(lt, inPlural, ctx, argType.value);
960
- else
967
+ } else {
961
968
  throw new ParseError(argType, `Unexpected select type ${argType.value}`);
969
+ }
962
970
  default:
963
971
  throw new ParseError(argType, `Unexpected lexer token: ${argType.type}`);
964
972
  }
@@ -1005,7 +1013,6 @@ var require_parser = __commonJS({
1005
1013
  const parser = new Parser(src, options);
1006
1014
  return parser.parse();
1007
1015
  }
1008
- exports.parse = parse2;
1009
1016
  }
1010
1017
  });
1011
1018
 
@@ -1022,14 +1029,14 @@ var r = function() {
1022
1029
  }, []).join(" ");
1023
1030
  };
1024
1031
 
1025
- // node_modules/.pnpm/@lingui+core@4.11.2/node_modules/@lingui/core/dist/index.mjs
1032
+ // node_modules/.pnpm/@lingui+core@5.1.2_@lingui+babel-plugin-lingui-macro@5.1.2_babel-plugin-macros@3.1.0_typescri_g2ngrxg2kfutsfck3yn2icllca/node_modules/@lingui/core/dist/index.mjs
1026
1033
  var import_unraw = __toESM(require_dist(), 1);
1027
1034
 
1028
- // node_modules/.pnpm/@lingui+message-utils@4.11.2/node_modules/@lingui/message-utils/dist/compileMessage.mjs
1035
+ // node_modules/.pnpm/@lingui+message-utils@5.1.2/node_modules/@lingui/message-utils/dist/compileMessage.mjs
1029
1036
  var import_parser = __toESM(require_parser(), 1);
1030
1037
  function processTokens(tokens, mapText) {
1031
1038
  if (!tokens.filter((token) => token.type !== "content").length) {
1032
- return tokens.map((token) => mapText(token.value)).join("");
1039
+ return tokens.map((token) => mapText(token.value));
1033
1040
  }
1034
1041
  return tokens.map((token) => {
1035
1042
  var _a;
@@ -1069,11 +1076,11 @@ function compileMessage(message, mapText = (v) => v) {
1069
1076
  console.error(`${e.message}
1070
1077
 
1071
1078
  Message: ${message}`);
1072
- return message;
1079
+ return [message];
1073
1080
  }
1074
1081
  }
1075
1082
 
1076
- // node_modules/.pnpm/@lingui+core@4.11.2/node_modules/@lingui/core/dist/index.mjs
1083
+ // node_modules/.pnpm/@lingui+core@5.1.2_@lingui+babel-plugin-lingui-macro@5.1.2_babel-plugin-macros@3.1.0_typescri_g2ngrxg2kfutsfck3yn2icllca/node_modules/@lingui/core/dist/index.mjs
1077
1084
  var isString = (s) => typeof s === "string";
1078
1085
  var isFunction = (f) => typeof f === "function";
1079
1086
  var cache = /* @__PURE__ */ new Map();
@@ -1124,7 +1131,7 @@ function cacheKey(type, locales, options) {
1124
1131
  const localeKey = locales.join("-");
1125
1132
  return `${type}-${localeKey}-${JSON.stringify(options)}`;
1126
1133
  }
1127
- var UNICODE_REGEX = /\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g;
1134
+ var UNICODE_REGEX = /\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/;
1128
1135
  var OCTOTHORPE_PH = "%__lingui_octothorpe__%";
1129
1136
  var getDefaultFormats = (locale, passedLocales, formats = {}) => {
1130
1137
  const locales = passedLocales || locale;
@@ -1256,7 +1263,11 @@ var I18n = class extends EventEmitter {
1256
1263
  __publicField2(this, "_localeData", {});
1257
1264
  __publicField2(this, "_messages", {});
1258
1265
  __publicField2(this, "_missing");
1266
+ __publicField2(this, "_messageCompiler");
1259
1267
  __publicField2(this, "t", this._.bind(this));
1268
+ if (true) {
1269
+ this.setMessagesCompiler(compileMessage);
1270
+ }
1260
1271
  if (params.missing != null)
1261
1272
  this._missing = params.missing;
1262
1273
  if (params.messages != null)
@@ -1292,6 +1303,25 @@ var I18n = class extends EventEmitter {
1292
1303
  Object.assign(maybeLocaleData, localeData);
1293
1304
  }
1294
1305
  }
1306
+ /**
1307
+ * Registers a `MessageCompiler` to enable the use of uncompiled catalogs at runtime.
1308
+ *
1309
+ * In production builds, the `MessageCompiler` is typically excluded to reduce bundle size.
1310
+ * By default, message catalogs should be precompiled during the build process. However,
1311
+ * if you need to compile catalogs at runtime, you can use this method to set a message compiler.
1312
+ *
1313
+ * Example usage:
1314
+ *
1315
+ * ```ts
1316
+ * import { compileMessage } from "@lingui/message-utils/compileMessage";
1317
+ *
1318
+ * i18n.setMessagesCompiler(compileMessage);
1319
+ * ```
1320
+ */
1321
+ setMessagesCompiler(compiler) {
1322
+ this._messageCompiler = compiler;
1323
+ return this;
1324
+ }
1295
1325
  /**
1296
1326
  * @deprecated Plurals automatically used from Intl.PluralRules you can safely remove this call. Deprecated in v4
1297
1327
  */
@@ -1363,8 +1393,20 @@ var I18n = class extends EventEmitter {
1363
1393
  this.emit("missing", { id, locale: this._locale });
1364
1394
  }
1365
1395
  let translation = messageForId || message || id;
1366
- if (true) {
1367
- translation = isString(translation) ? compileMessage(translation) : translation;
1396
+ if (isString(translation)) {
1397
+ if (this._messageCompiler) {
1398
+ translation = this._messageCompiler(translation);
1399
+ } else {
1400
+ console.warn(`Uncompiled message detected! Message:
1401
+
1402
+ > ${translation}
1403
+
1404
+ That means you use raw catalog or your catalog doesn't have a translation for the message and fallback was used.
1405
+ ICU features such as interpolation and plurals will not work properly for that message.
1406
+
1407
+ Please compile your catalog first.
1408
+ `);
1409
+ }
1368
1410
  }
1369
1411
  if (isString(translation) && UNICODE_REGEX.test(translation))
1370
1412
  return JSON.parse(`"${translation}"`);
@@ -1388,7 +1430,7 @@ function setupI18n(params = {}) {
1388
1430
  }
1389
1431
  var i18n = setupI18n();
1390
1432
 
1391
- // node_modules/.pnpm/@floating-ui+utils@0.2.7/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
1433
+ // node_modules/.pnpm/@floating-ui+utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
1392
1434
  var sides = ["top", "right", "bottom", "left"];
1393
1435
  var min = Math.min;
1394
1436
  var max = Math.max;
@@ -1517,7 +1559,7 @@ function rectToClientRect(rect) {
1517
1559
  };
1518
1560
  }
1519
1561
 
1520
- // node_modules/.pnpm/@floating-ui+core@1.6.7/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
1562
+ // node_modules/.pnpm/@floating-ui+core@1.6.9/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
1521
1563
  function computeCoordsFromPlacement(_ref, placement, rtl) {
1522
1564
  let {
1523
1565
  reference,
@@ -1959,11 +2001,11 @@ async function convertValueToCoords(state, options) {
1959
2001
  mainAxis: rawValue,
1960
2002
  crossAxis: 0,
1961
2003
  alignmentAxis: null
1962
- } : __spreadValues({
1963
- mainAxis: 0,
1964
- crossAxis: 0,
1965
- alignmentAxis: null
1966
- }, rawValue);
2004
+ } : {
2005
+ mainAxis: rawValue.mainAxis || 0,
2006
+ crossAxis: rawValue.crossAxis || 0,
2007
+ alignmentAxis: rawValue.alignmentAxis
2008
+ };
1967
2009
  if (alignment && typeof alignmentAxis === "number") {
1968
2010
  crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis;
1969
2011
  }
@@ -2067,7 +2109,11 @@ var shift = function(options) {
2067
2109
  return __spreadProps(__spreadValues({}, limitedCoords), {
2068
2110
  data: {
2069
2111
  x: limitedCoords.x - x,
2070
- y: limitedCoords.y - y
2112
+ y: limitedCoords.y - y,
2113
+ enabled: {
2114
+ [mainAxis]: checkMainAxis,
2115
+ [crossAxis]: checkCrossAxis
2116
+ }
2071
2117
  }
2072
2118
  });
2073
2119
  }
@@ -2081,6 +2127,7 @@ var size = function(options) {
2081
2127
  name: "size",
2082
2128
  options,
2083
2129
  async fn(state) {
2130
+ var _state$middlewareData, _state$middlewareData2;
2084
2131
  const {
2085
2132
  placement,
2086
2133
  rects,
@@ -2117,10 +2164,11 @@ var size = function(options) {
2117
2164
  const noShift = !state.middlewareData.shift;
2118
2165
  let availableHeight = overflowAvailableHeight;
2119
2166
  let availableWidth = overflowAvailableWidth;
2120
- if (isYAxis) {
2121
- availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
2122
- } else {
2123
- availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
2167
+ if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
2168
+ availableWidth = maximumClippingWidth;
2169
+ }
2170
+ if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
2171
+ availableHeight = maximumClippingHeight;
2124
2172
  }
2125
2173
  if (noShift && !alignment) {
2126
2174
  const xMin = max(overflow.left, 0);
@@ -2150,7 +2198,10 @@ var size = function(options) {
2150
2198
  };
2151
2199
  };
2152
2200
 
2153
- // node_modules/.pnpm/@floating-ui+utils@0.2.7/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
2201
+ // node_modules/.pnpm/@floating-ui+utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
2202
+ function hasWindow() {
2203
+ return typeof window !== "undefined";
2204
+ }
2154
2205
  function getNodeName(node) {
2155
2206
  if (isNode(node)) {
2156
2207
  return (node.nodeName || "").toLowerCase();
@@ -2166,16 +2217,25 @@ function getDocumentElement(node) {
2166
2217
  return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
2167
2218
  }
2168
2219
  function isNode(value) {
2220
+ if (!hasWindow()) {
2221
+ return false;
2222
+ }
2169
2223
  return value instanceof Node || value instanceof getWindow(value).Node;
2170
2224
  }
2171
2225
  function isElement(value) {
2226
+ if (!hasWindow()) {
2227
+ return false;
2228
+ }
2172
2229
  return value instanceof Element || value instanceof getWindow(value).Element;
2173
2230
  }
2174
2231
  function isHTMLElement(value) {
2232
+ if (!hasWindow()) {
2233
+ return false;
2234
+ }
2175
2235
  return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
2176
2236
  }
2177
2237
  function isShadowRoot(value) {
2178
- if (typeof ShadowRoot === "undefined") {
2238
+ if (!hasWindow() || typeof ShadowRoot === "undefined") {
2179
2239
  return false;
2180
2240
  }
2181
2241
  return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
@@ -2204,7 +2264,7 @@ function isTopLayer(element) {
2204
2264
  function isContainingBlock(elementOrCss) {
2205
2265
  const webkit = isWebKit();
2206
2266
  const css2 = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;
2207
- return css2.transform !== "none" || css2.perspective !== "none" || (css2.containerType ? css2.containerType !== "normal" : false) || !webkit && (css2.backdropFilter ? css2.backdropFilter !== "none" : false) || !webkit && (css2.filter ? css2.filter !== "none" : false) || ["transform", "perspective", "filter"].some((value) => (css2.willChange || "").includes(value)) || ["paint", "layout", "strict", "content"].some((value) => (css2.contain || "").includes(value));
2267
+ return ["transform", "translate", "scale", "rotate", "perspective"].some((value) => css2[value] ? css2[value] !== "none" : false) || (css2.containerType ? css2.containerType !== "normal" : false) || !webkit && (css2.backdropFilter ? css2.backdropFilter !== "none" : false) || !webkit && (css2.filter ? css2.filter !== "none" : false) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((value) => (css2.willChange || "").includes(value)) || ["paint", "layout", "strict", "content"].some((value) => (css2.contain || "").includes(value));
2208
2268
  }
2209
2269
  function getContainingBlock(element) {
2210
2270
  let currentNode = getParentNode(element);
@@ -2284,7 +2344,7 @@ function getFrameElement(win) {
2284
2344
  return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
2285
2345
  }
2286
2346
 
2287
- // node_modules/.pnpm/@floating-ui+dom@1.6.10/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
2347
+ // node_modules/.pnpm/@floating-ui+dom@1.6.13/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
2288
2348
  function getCssDimensions(element) {
2289
2349
  const css2 = getComputedStyle(element);
2290
2350
  let width = parseFloat(css2.width) || 0;
@@ -2402,6 +2462,28 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
2402
2462
  y
2403
2463
  });
2404
2464
  }
2465
+ function getWindowScrollBarX(element, rect) {
2466
+ const leftScroll = getNodeScroll(element).scrollLeft;
2467
+ if (!rect) {
2468
+ return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
2469
+ }
2470
+ return rect.left + leftScroll;
2471
+ }
2472
+ function getHTMLOffset(documentElement, scroll, ignoreScrollbarX) {
2473
+ if (ignoreScrollbarX === void 0) {
2474
+ ignoreScrollbarX = false;
2475
+ }
2476
+ const htmlRect = documentElement.getBoundingClientRect();
2477
+ const x = htmlRect.left + scroll.scrollLeft - (ignoreScrollbarX ? 0 : (
2478
+ // RTL <body> scrollbar.
2479
+ getWindowScrollBarX(documentElement, htmlRect)
2480
+ ));
2481
+ const y = htmlRect.top + scroll.scrollTop;
2482
+ return {
2483
+ x,
2484
+ y
2485
+ };
2486
+ }
2405
2487
  function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
2406
2488
  let {
2407
2489
  elements,
@@ -2433,19 +2515,17 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
2433
2515
  offsets.y = offsetRect.y + offsetParent.clientTop;
2434
2516
  }
2435
2517
  }
2518
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll, true) : createCoords(0);
2436
2519
  return {
2437
2520
  width: rect.width * scale.x,
2438
2521
  height: rect.height * scale.y,
2439
- x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,
2440
- y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y
2522
+ x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
2523
+ y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
2441
2524
  };
2442
2525
  }
2443
2526
  function getClientRects(element) {
2444
2527
  return Array.from(element.getClientRects());
2445
2528
  }
2446
- function getWindowScrollBarX(element) {
2447
- return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
2448
- }
2449
2529
  function getDocumentRect(element) {
2450
2530
  const html3 = getDocumentElement(element);
2451
2531
  const scroll = getNodeScroll(element);
@@ -2514,10 +2594,12 @@ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy)
2514
2594
  rect = getInnerBoundingClientRect(clippingAncestor, strategy);
2515
2595
  } else {
2516
2596
  const visualOffsets = getVisualOffsets(element);
2517
- rect = __spreadProps(__spreadValues({}, clippingAncestor), {
2597
+ rect = {
2518
2598
  x: clippingAncestor.x - visualOffsets.x,
2519
- y: clippingAncestor.y - visualOffsets.y
2520
- });
2599
+ y: clippingAncestor.y - visualOffsets.y,
2600
+ width: clippingAncestor.width,
2601
+ height: clippingAncestor.height
2602
+ };
2521
2603
  }
2522
2604
  return rectToClientRect(rect);
2523
2605
  }
@@ -2611,8 +2693,9 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
2611
2693
  offsets.x = getWindowScrollBarX(documentElement);
2612
2694
  }
2613
2695
  }
2614
- const x = rect.left + scroll.scrollLeft - offsets.x;
2615
- const y = rect.top + scroll.scrollTop - offsets.y;
2696
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
2697
+ const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
2698
+ const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
2616
2699
  return {
2617
2700
  x,
2618
2701
  y,
@@ -2630,7 +2713,11 @@ function getTrueOffsetParent(element, polyfill) {
2630
2713
  if (polyfill) {
2631
2714
  return polyfill(element);
2632
2715
  }
2633
- return element.offsetParent;
2716
+ let rawOffsetParent = element.offsetParent;
2717
+ if (getDocumentElement(element) === rawOffsetParent) {
2718
+ rawOffsetParent = rawOffsetParent.ownerDocument.body;
2719
+ }
2720
+ return rawOffsetParent;
2634
2721
  }
2635
2722
  function getOffsetParent(element, polyfill) {
2636
2723
  const win = getWindow(element);
@@ -2704,7 +2791,7 @@ var computePosition2 = (reference, floating, options) => {
2704
2791
  }));
2705
2792
  };
2706
2793
 
2707
- // node_modules/.pnpm/@warp-ds+core@1.1.8_@floating-ui+dom@1.6.10/node_modules/@warp-ds/core/dist/attention/utils/helpers.js
2794
+ // node_modules/.pnpm/@warp-ds+core@1.1.8_@floating-ui+dom@1.6.13/node_modules/@warp-ds/core/dist/attention/utils/helpers.js
2708
2795
  var TOP_START = "top-start";
2709
2796
  var TOP = "top";
2710
2797
  var TOP_END = "top-end";
@@ -2865,7 +2952,7 @@ async function useRecompute(state) {
2865
2952
  return state;
2866
2953
  }
2867
2954
 
2868
- // node_modules/.pnpm/@warp-ds+css@2.0.0_@warp-ds+uno@2.0.0_unocss@0.62.0_postcss@8.4.41_rollup@4.20.0_vite@5.3.3_@_vyiy5vwpqfzwy5hpmfkwp3zmle/node_modules/@warp-ds/css/component-classes/index.js
2955
+ // node_modules/.pnpm/@warp-ds+css@2.0.1_@warp-ds+uno@2.0.2_unocss@0.62.0_postcss@8.5.1_rollup@4.32.1_vite@5.3.3_@t_2s4pctzvx7cgxzqlrreqkg4h34/node_modules/@warp-ds/css/component-classes/index.js
2869
2956
  var buttonDefaultStyling = "font-bold focusable justify-center transition-colors ease-in-out";
2870
2957
  var buttonColors = {
2871
2958
  primary: "s-text-inverted bg-[--w-color-button-primary-background] hover:bg-[--w-color-button-primary-background-hover] active:bg-[--w-color-button-primary-background-active]",
@@ -3154,28 +3241,28 @@ function generateRandomId() {
3154
3241
  }
3155
3242
 
3156
3243
  // packages/attention/locales/da/messages.mjs
3157
- var messages = JSON.parse('{"attention.aria.callout":"En gr\xF8n taleboble der introducerer noget nyt","attention.aria.close":"Luk","attention.aria.highlight":"En opm\xE6rksomhedsskabende taleboble med vigtig information","attention.aria.pointingDown":"peger nedad","attention.aria.pointingLeft":"peger til venstre","attention.aria.pointingRight":"peger til h\xF8jre","attention.aria.pointingUp":"peger opad","attention.aria.popover":"En hvid taleboble med mere information","attention.aria.tooltip":"En sort taleboble med flere oplysninger"}');
3244
+ var messages = JSON.parse('{"attention.aria.callout":["En gr\xF8n taleboble der introducerer noget nyt"],"attention.aria.close":["Luk"],"attention.aria.highlight":["En opm\xE6rksomhedsskabende taleboble med vigtig information"],"attention.aria.pointingDown":["peger nedad"],"attention.aria.pointingLeft":["peger til venstre"],"attention.aria.pointingRight":["peger til h\xF8jre"],"attention.aria.pointingUp":["peger opad"],"attention.aria.popover":["En hvid taleboble med mere information"],"attention.aria.tooltip":["En sort taleboble med flere oplysninger"]}');
3158
3245
 
3159
3246
  // packages/attention/locales/en/messages.mjs
3160
- var messages2 = JSON.parse('{"attention.aria.callout":"A green speech bubble introducing something new","attention.aria.close":"Close","attention.aria.highlight":"An attention speech bubble with important information","attention.aria.pointingDown":"pointing down","attention.aria.pointingLeft":"pointing left","attention.aria.pointingRight":"pointing right","attention.aria.pointingUp":"pointing up","attention.aria.popover":"A white speech bubble providing additional information","attention.aria.tooltip":"A black speech bubble providing complementary information"}');
3247
+ var messages2 = JSON.parse('{"attention.aria.callout":["A green speech bubble introducing something new"],"attention.aria.close":["Close"],"attention.aria.highlight":["An attention speech bubble with important information"],"attention.aria.pointingDown":["pointing down"],"attention.aria.pointingLeft":["pointing left"],"attention.aria.pointingRight":["pointing right"],"attention.aria.pointingUp":["pointing up"],"attention.aria.popover":["A white speech bubble providing additional information"],"attention.aria.tooltip":["A black speech bubble providing complementary information"]}');
3161
3248
 
3162
3249
  // packages/attention/locales/fi/messages.mjs
3163
- var messages3 = JSON.parse('{"attention.aria.callout":"Vihre\xE4 puhekupla, joka esittelee jotain uutta","attention.aria.close":"Sulje","attention.aria.highlight":"Puhekupla, joka sis\xE4lt\xE4\xE4 t\xE4rke\xE4\xE4 tietoa","attention.aria.pointingDown":"osoittaa alas","attention.aria.pointingLeft":"osoittaa vasemmalle","attention.aria.pointingRight":"osoittaa oikealle","attention.aria.pointingUp":"osoittaa yl\xF6s","attention.aria.popover":"Valkoinen puhekupla, joka tarjoaa lis\xE4tietoa","attention.aria.tooltip":"Musta puhekupla, joka tarjoaa t\xE4ydent\xE4v\xE4\xE4 tietoa"}');
3250
+ var messages3 = JSON.parse('{"attention.aria.callout":["Vihre\xE4 puhekupla, joka esittelee jotain uutta"],"attention.aria.close":["Sulje"],"attention.aria.highlight":["Puhekupla, joka sis\xE4lt\xE4\xE4 t\xE4rke\xE4\xE4 tietoa"],"attention.aria.pointingDown":["osoittaa alas"],"attention.aria.pointingLeft":["osoittaa vasemmalle"],"attention.aria.pointingRight":["osoittaa oikealle"],"attention.aria.pointingUp":["osoittaa yl\xF6s"],"attention.aria.popover":["Valkoinen puhekupla, joka tarjoaa lis\xE4tietoa"],"attention.aria.tooltip":["Musta puhekupla, joka tarjoaa t\xE4ydent\xE4v\xE4\xE4 tietoa"]}');
3164
3251
 
3165
3252
  // packages/attention/locales/nb/messages.mjs
3166
- var messages4 = JSON.parse('{"attention.aria.callout":"Gr\xF8nn taleboble som introduserer noe nytt","attention.aria.close":"Lukk","attention.aria.highlight":"En uthevet taleboble med viktig informasjon","attention.aria.pointingDown":"peker ned","attention.aria.pointingLeft":"peker til venstre","attention.aria.pointingRight":"peker til h\xF8yre","attention.aria.pointingUp":"peker opp","attention.aria.popover":"En hvit taleboble som gir tilleggsinformasjon","attention.aria.tooltip":"En svart taleboble som forklarer konteksten"}');
3253
+ var messages4 = JSON.parse('{"attention.aria.callout":["Gr\xF8nn taleboble som introduserer noe nytt"],"attention.aria.close":["Lukk"],"attention.aria.highlight":["En uthevet taleboble med viktig informasjon"],"attention.aria.pointingDown":["peker ned"],"attention.aria.pointingLeft":["peker til venstre"],"attention.aria.pointingRight":["peker til h\xF8yre"],"attention.aria.pointingUp":["peker opp"],"attention.aria.popover":["En hvit taleboble som gir tilleggsinformasjon"],"attention.aria.tooltip":["En svart taleboble som forklarer konteksten"]}');
3167
3254
 
3168
3255
  // packages/attention/locales/sv/messages.mjs
3169
- var messages5 = JSON.parse('{"attention.aria.callout":"En gr\xF6n pratbubbla som introducerar n\xE5got nytt","attention.aria.close":"St\xE4ng","attention.aria.highlight":"En pratbubbla med viktig information","attention.aria.pointingDown":"pekar ned","attention.aria.pointingLeft":"pekar v\xE4nster","attention.aria.pointingRight":"pekar h\xF6ger","attention.aria.pointingUp":"pekar upp","attention.aria.popover":"En vit pratbubbla som ger ytterligare information","attention.aria.tooltip":"En svart pratbubbla som ger kompletterande information"}');
3256
+ var messages5 = JSON.parse('{"attention.aria.callout":["En gr\xF6n pratbubbla som introducerar n\xE5got nytt"],"attention.aria.close":["St\xE4ng"],"attention.aria.highlight":["En pratbubbla med viktig information"],"attention.aria.pointingDown":["pekar ned"],"attention.aria.pointingLeft":["pekar v\xE4nster"],"attention.aria.pointingRight":["pekar h\xF6ger"],"attention.aria.pointingUp":["pekar upp"],"attention.aria.popover":["En vit pratbubbla som ger ytterligare information"],"attention.aria.tooltip":["En svart pratbubbla som ger kompletterande information"]}');
3170
3257
 
3171
- // node_modules/.pnpm/@warp-ds+icons@2.4.0/node_modules/@warp-ds/icons/dist/elements/close-16.js
3258
+ // node_modules/.pnpm/@warp-ds+icons@2.5.0-next.1/node_modules/@warp-ds/icons/dist/elements/close-16.js
3172
3259
  import { LitElement } from "lit";
3173
3260
  import { unsafeStatic, html } from "lit/static-html.js";
3174
- var messages6 = JSON.parse('{"icon.title.close":"Kryss"}');
3175
- var messages22 = JSON.parse('{"icon.title.close":"Cross"}');
3176
- var messages32 = JSON.parse('{"icon.title.close":"Rasti"}');
3177
- var messages42 = JSON.parse('{"icon.title.close":"Kryds"}');
3178
- var messages52 = JSON.parse('{"icon.title.close":"Kryss"}');
3261
+ var messages6 = JSON.parse('{"icon.title.close":["Kryss"]}');
3262
+ var messages22 = JSON.parse('{"icon.title.close":["Cross"]}');
3263
+ var messages32 = JSON.parse('{"icon.title.close":["Rasti"]}');
3264
+ var messages42 = JSON.parse('{"icon.title.close":["Kryds"]}');
3265
+ var messages52 = JSON.parse('{"icon.title.close":["Kryss"]}');
3179
3266
  var supportedLocales2 = ["en", "nb", "fi", "da", "sv"];
3180
3267
  var defaultLocale3 = "en";
3181
3268
  var detectByBrand = () => {