@nextrap/ntl-2col 0.1.1 → 0.1.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/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ ## 0.1.3 (2025-07-25)
2
+
3
+ ### 🚀 Features
4
+
5
+ - make temp change to force a release ([7cd8b27](https://github.com/nextrap/nextrap-monorepo/commit/7cd8b27))
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - Enzo Volkmann @evolkmann
10
+
11
+ ## 0.1.2 (2025-07-25)
12
+
13
+ ### 🚀 Features
14
+
15
+ - make temp change to force a release ([432f76a](https://github.com/nextrap/nextrap-monorepo/commit/432f76a))
16
+
17
+ ### 🩹 Fixes
18
+
19
+ - correctly import base styles ([#15](https://github.com/nextrap/nextrap-monorepo/pull/15))
20
+
21
+ ### ❤️ Thank You
22
+
23
+ - Enzo Volkmann @evolkmann
24
+
1
25
  ## 0.1.1 (2025-05-27)
2
26
 
3
27
  This was a version bump only for ntl-2col to align it with other projects, there were no code changes.
package/index.css CHANGED
@@ -1 +1 @@
1
- :root{--nt-primary: #007bff;--nt-accent: #6610f2;--nt-success: #28a745;--nt-info: #17a2b8;--nt-warning: #ffc107;--nt-danger: #dc3545;--nt-light: #f8f9fa;--nt-dark: #343a40;--nt-white: #fff;--nt-black: #000;--nt-soft-primary: rgb(204, 228.6, 255);--nt-soft-accent: rgb(225.8571428571, 209.4761904762, 252.5238095238);--nt-soft-success: rgb(175.1304347826, 235.8695652174, 189);--nt-soft-info: rgb(167, 233.4782608696, 244);--nt-soft-warning: #fff4d3;--nt-soft-danger: rgb(250.1265822785, 226.8734177215, 229.1012658228);--nt-soft-light: white;--nt-soft-dark: rgb(150.1724137931, 160, 169.8275862069);--nt-text-color: #000;--nt-text-on-primary-color: #fff;--nt-text-on-accent-color: #fff;--nt-text-on-success-color: #000;--nt-text-on-info-color: #000;--nt-text-on-warning-color: #000;--nt-text-on-danger-color: #000;--nt-text-on-light-color: #000;--nt-text-on-dark-color: #fff;--nt-text-on-white-color: #000;--nt-text-on-black-color: #fff;--nt-background-color: #fff;--nt-base-gap: 1rem;--nt-base-space: 1rem;--nt-border-radius: .25rem;--nt-border-width: 1px}@media (min-width: 576px){:root{--nt-container-width: 540px}}@media (min-width: 768px){:root{--nt-container-width: 720px}}@media (min-width: 992px){:root{--nt-container-width: 960px}}@media (min-width: 1200px){:root{--nt-container-width: 1140px}}@media (min-width: 1400px){:root{--nt-container-width: 1320px}}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body{height:100%;width:100%;font-family:sans-serif;line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit;color:inherit;background:none;border:none;outline:none}a{color:inherit;text-decoration:none}ul,ol{list-style:none}table{border-collapse:collapse;border-spacing:0}
1
+ :root{--nt-primary: #007bff;--nt-secondary: #6c757d;--nt-accent: #6610f2;--nt-success: #28a745;--nt-info: #17a2b8;--nt-warning: #ffc107;--nt-danger: #dc3545;--nt-light: #f8f9fa;--nt-dark: #343a40;--nt-white: #fff;--nt-black: #000;--nt-soft-primary: rgb(204, 228.6, 255);--nt-soft-secondary: rgb(215.8369098712, 218.6566523605, 221.1630901288);--nt-soft-accent: rgb(225.8571428571, 209.4761904762, 252.5238095238);--nt-soft-success: rgb(175.1304347826, 235.8695652174, 189);--nt-soft-info: rgb(167, 233.4782608696, 244);--nt-soft-warning: #fff4d3;--nt-soft-danger: rgb(250.1265822785, 226.8734177215, 229.1012658228);--nt-soft-light: hsl(210, 16.6666666667%, 137.6470588235%);--nt-soft-dark: rgb(150.1724137931, 160, 169.8275862069);--nt-text-on-soft-colors: #000;--nt-text: #000;--nt-text-on-primary: #fff;--nt-text-on-secondary: #fff;--nt-text-on-accent: #fff;--nt-text-on-success: #000;--nt-text-on-info: #000;--nt-text-on-warning: #000;--nt-text-on-danger: #000;--nt-text-on-light: #000;--nt-text-on-dark: #fff;--nt-text-on-white: #000;--nt-text-on-black: #fff;--nt-background: #fff;--nt-link: #007bff;--nt-link-on-dark: #fff;--nt-text-decoration-link: underline;--nt-font-family-base: sans-serif;--nt-font-family-header: sans-serif;--nt-font-size-base: 1rem;--nt-font-size-header: 1rem;--nt-header: header;--nt-font-size-small: .875rem;--nt-gap: 1.25rem;--nt-border-radius: .25rem;--nt-border-width: 1px;--nt-space: 1rem;--nt-space-1: calc(var(--nt-space) * .25);--nt-space-2: calc(var(--nt-space) * .5);--nt-space-3: calc(var(--nt-space) * 1);--nt-space-4: calc(var(--nt-space) * 1.5);--nt-space-5: calc(var(--nt-space) * 3);--nt-content-space: 10rem;--nt-content-space-1: calc(var(--nt-content-space) * .25);--nt-content-space-2: calc(var(--nt-content-space) * .5);--nt-content-space-3: calc(var(--nt-content-space) * 1);--nt-content-space-4: calc(var(--nt-content-space) * 1.5);--nt-content-space-5: calc(var(--nt-content-space) * 3);--nt-fs-1: calc(var(--nt-font-size-base) * 1.5);--nt-fs-2: calc(var(--nt-font-size-base) * 1.25);--nt-fs-3: calc(var(--nt-font-size-base) * 1);--nt-fs-4: calc(var(--nt-font-size-base) * .9);--nt-fs-5: calc(var(--nt-font-size-base) * .85);--nt-fs-6: calc(var(--nt-font-size-base) * .75);--nt-fs-h1: calc(var(--nt-font-size-header) * 2.5);--nt-fs-h2: calc(var(--nt-font-size-header) * 2);--nt-fs-h3: calc(var(--nt-font-size-header) * 1.75);--nt-fs-h4: calc(var(--nt-font-size-header) * 1.5);--nt-fs-h5: calc(var(--nt-font-size-header) * 1.25);--nt-fs-h6: calc(var(--nt-font-size-header) * 1)}html{font-size:1rem}@media (min-width: 576px){html{--nt-container-width: 540px}}@media (min-width: 768px){html{--nt-container-width: 720px}}@media (min-width: 992px){html{--nt-container-width: 960px}}@media (min-width: 1200px){html{--nt-container-width: 1140px}}@media (min-width: 1400px){html{--nt-container-width: 1320px}}
package/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './lib/ntl-2col';
2
+ export declare const tempChangeForForcingRelease = 2;
package/index.js CHANGED
@@ -1,11 +1,16 @@
1
1
  class _t {
2
- constructor(t) {
3
- this.delay = t, this.timeout = null;
2
+ /**
3
+ *
4
+ * @param delay Debounce delay in milliseconds
5
+ * @param max_delay Maximum delay in milliseconds, if false then no maximum delay is applied
6
+ */
7
+ constructor(t, e = !1) {
8
+ this.delay = t, this.max_delay = e, this.timeout = null, this.startTimeWithMs = 0;
4
9
  }
5
10
  async wait() {
6
- return this.timeout && clearTimeout(this.timeout), new Promise((t) => {
11
+ return this.startTimeWithMs === 0 && (this.startTimeWithMs = Date.now()), this.timeout && (this.max_delay === !1 || this.startTimeWithMs + this.max_delay > Date.now()) && clearTimeout(this.timeout), new Promise((t) => {
7
12
  this.timeout = setTimeout(() => {
8
- t(!0);
13
+ this.startTimeWithMs = 0, t(!0);
9
14
  }, this.delay);
10
15
  });
11
16
  }
@@ -24,7 +29,7 @@ const w = {
24
29
  xxl: { name: "xxl", minWidth: 1400 }
25
30
  };
26
31
  let S = w.xs;
27
- function j() {
32
+ function L() {
28
33
  const r = window.innerWidth;
29
34
  let t = w.xs;
30
35
  for (const e in w) {
@@ -36,16 +41,18 @@ function j() {
36
41
  function mt(r) {
37
42
  if (typeof r == "string" && r.endsWith("px") && (r = parseInt(r.replace("px", ""))), typeof r == "string") {
38
43
  if (r = w[r], !r)
39
- throw new Error(`Breakpoint ${r} not found. Defined breakpoints are: ${Object.keys(w).join(", ")}`);
44
+ throw new Error(
45
+ `Breakpoint ${r} not found. Defined breakpoints are: ${Object.keys(w).join(", ")}`
46
+ );
40
47
  } else typeof r == "number" && (r = { name: "c", minWidth: r });
41
48
  return window.innerWidth >= r.minWidth;
42
49
  }
43
50
  if (!window.__nextrap_current_breakpoint) {
44
- window.__nextrap_current_breakpoint = j();
45
- const r = new _t(500);
51
+ window.__nextrap_current_breakpoint = L();
52
+ const r = new _t(200, 500);
46
53
  window.addEventListener("resize", async () => {
47
- if (await r.wait(), S !== j()) {
48
- S = j(), window.__nextrap_current_breakpoint = S;
54
+ if (await r.wait(), S !== L()) {
55
+ S = L(), window.__nextrap_current_breakpoint = S;
49
56
  const t = new CustomEvent("breakpoint-changed", {
50
57
  detail: { breakpoint: S }
51
58
  });
@@ -93,7 +100,7 @@ const F = (r) => new ct(typeof r == "string" ? r : r + "", void 0, lt), yt = (r,
93
100
  * Copyright 2017 Google LLC
94
101
  * SPDX-License-Identifier: BSD-3-Clause
95
102
  */
96
- const { is: gt, defineProperty: vt, getOwnPropertyDescriptor: At, getOwnPropertyNames: wt, getOwnPropertySymbols: Et, getPrototypeOf: bt } = Object, _ = globalThis, Y = _.trustedTypes, St = Y ? Y.emptyScript : "", W = _.reactiveElementPolyfillSupport, C = (r, t) => r, B = { toAttribute(r, t) {
103
+ const { is: gt, defineProperty: vt, getOwnPropertyDescriptor: At, getOwnPropertyNames: wt, getOwnPropertySymbols: Et, getPrototypeOf: bt } = Object, _ = globalThis, Y = _.trustedTypes, St = Y ? Y.emptyScript : "", j = _.reactiveElementPolyfillSupport, C = (r, t) => r, W = { toAttribute(r, t) {
97
104
  switch (t) {
98
105
  case Boolean:
99
106
  r = r ? St : null;
@@ -121,7 +128,7 @@ const { is: gt, defineProperty: vt, getOwnPropertyDescriptor: At, getOwnProperty
121
128
  }
122
129
  }
123
130
  return e;
124
- } }, J = (r, t) => !gt(r, t), tt = { attribute: !0, type: String, converter: B, reflect: !1, useDefault: !1, hasChanged: J };
131
+ } }, J = (r, t) => !gt(r, t), tt = { attribute: !0, type: String, converter: W, reflect: !1, useDefault: !1, hasChanged: J };
125
132
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _.litPropertyMetadata ?? (_.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
126
133
  let y = class extends HTMLElement {
127
134
  static addInitializer(t) {
@@ -143,8 +150,8 @@ let y = class extends HTMLElement {
143
150
  this[e] = o;
144
151
  } };
145
152
  return { get: i, set(o) {
146
- const a = i == null ? void 0 : i.call(this);
147
- n == null || n.call(this, o), this.requestUpdate(t, a, s);
153
+ const h = i == null ? void 0 : i.call(this);
154
+ n == null || n.call(this, o), this.requestUpdate(t, h, s);
148
155
  }, configurable: !0, enumerable: !0 };
149
156
  }
150
157
  static getPropertyOptions(t) {
@@ -232,7 +239,7 @@ let y = class extends HTMLElement {
232
239
  var n;
233
240
  const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
234
241
  if (i !== void 0 && s.reflect === !0) {
235
- const o = (((n = s.converter) == null ? void 0 : n.toAttribute) !== void 0 ? s.converter : B).toAttribute(e, s.type);
242
+ const o = (((n = s.converter) == null ? void 0 : n.toAttribute) !== void 0 ? s.converter : W).toAttribute(e, s.type);
236
243
  this._$Em = t, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$Em = null;
237
244
  }
238
245
  }
@@ -240,8 +247,10 @@ let y = class extends HTMLElement {
240
247
  var n, o;
241
248
  const s = this.constructor, i = s._$Eh.get(t);
242
249
  if (i !== void 0 && this._$Em !== i) {
243
- const a = s.getPropertyOptions(i), h = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((n = a.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? a.converter : B;
244
- this._$Em = i, this[i] = h.fromAttribute(e, a.type) ?? ((o = this._$Ej) == null ? void 0 : o.get(i)) ?? null, this._$Em = null;
250
+ const h = s.getPropertyOptions(i), a = typeof h.converter == "function" ? { fromAttribute: h.converter } : ((n = h.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? h.converter : W;
251
+ this._$Em = i;
252
+ const c = a.fromAttribute(e, h.type);
253
+ this[i] = c ?? ((o = this._$Ej) == null ? void 0 : o.get(i)) ?? c, this._$Em = null;
245
254
  }
246
255
  }
247
256
  requestUpdate(t, e, s) {
@@ -279,8 +288,8 @@ let y = class extends HTMLElement {
279
288
  }
280
289
  const i = this.constructor.elementProperties;
281
290
  if (i.size > 0) for (const [n, o] of i) {
282
- const { wrapped: a } = o, h = this[n];
283
- a !== !0 || this._$AL.has(n) || h === void 0 || this.C(n, void 0, o, h);
291
+ const { wrapped: h } = o, a = this[n];
292
+ h !== !0 || this._$AL.has(n) || a === void 0 || this.C(n, void 0, o, a);
284
293
  }
285
294
  }
286
295
  let t = !1;
@@ -324,7 +333,7 @@ let y = class extends HTMLElement {
324
333
  firstUpdated(t) {
325
334
  }
326
335
  };
327
- y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[C("elementProperties")] = /* @__PURE__ */ new Map(), y[C("finalized")] = /* @__PURE__ */ new Map(), W == null || W({ ReactiveElement: y }), (_.reactiveElementVersions ?? (_.reactiveElementVersions = [])).push("2.1.0");
336
+ y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[C("elementProperties")] = /* @__PURE__ */ new Map(), y[C("finalized")] = /* @__PURE__ */ new Map(), j == null || j({ ReactiveElement: y }), (_.reactiveElementVersions ?? (_.reactiveElementVersions = [])).push("2.1.1");
328
337
  /**
329
338
  * @license
330
339
  * Copyright 2017 Google LLC
@@ -340,12 +349,12 @@ function $t(r, t) {
340
349
  const Ot = (r, t) => {
341
350
  const e = r.length - 1, s = [];
342
351
  let i, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = x;
343
- for (let a = 0; a < e; a++) {
344
- const h = r[a];
352
+ for (let h = 0; h < e; h++) {
353
+ const a = r[h];
345
354
  let c, p, l = -1, u = 0;
346
- for (; u < h.length && (o.lastIndex = u, p = o.exec(h), p !== null); ) u = o.lastIndex, o === x ? p[1] === "!--" ? o = st : p[1] !== void 0 ? o = it : p[2] !== void 0 ? (ut.test(p[2]) && (i = RegExp("</" + p[2], "g")), o = m) : p[3] !== void 0 && (o = m) : o === m ? p[0] === ">" ? (o = i ?? x, l = -1) : p[1] === void 0 ? l = -2 : (l = o.lastIndex - p[2].length, c = p[1], o = p[3] === void 0 ? m : p[3] === '"' ? nt : rt) : o === nt || o === rt ? o = m : o === st || o === it ? o = x : (o = m, i = void 0);
347
- const $ = o === m && r[a + 1].startsWith("/>") ? " " : "";
348
- n += o === x ? h + xt : l >= 0 ? (s.push(c), h.slice(0, l) + dt + h.slice(l) + f + $) : h + f + (l === -2 ? a : $);
355
+ for (; u < a.length && (o.lastIndex = u, p = o.exec(a), p !== null); ) u = o.lastIndex, o === x ? p[1] === "!--" ? o = st : p[1] !== void 0 ? o = it : p[2] !== void 0 ? (ut.test(p[2]) && (i = RegExp("</" + p[2], "g")), o = m) : p[3] !== void 0 && (o = m) : o === m ? p[0] === ">" ? (o = i ?? x, l = -1) : p[1] === void 0 ? l = -2 : (l = o.lastIndex - p[2].length, c = p[1], o = p[3] === void 0 ? m : p[3] === '"' ? nt : rt) : o === nt || o === rt ? o = m : o === st || o === it ? o = x : (o = m, i = void 0);
356
+ const $ = o === m && r[h + 1].startsWith("/>") ? " " : "";
357
+ n += o === x ? a + xt : l >= 0 ? (s.push(c), a.slice(0, l) + dt + a.slice(l) + f + $) : a + f + (l === -2 ? h : $);
349
358
  }
350
359
  return [$t(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
351
360
  };
@@ -354,29 +363,29 @@ class M {
354
363
  let i;
355
364
  this.parts = [];
356
365
  let n = 0, o = 0;
357
- const a = t.length - 1, h = this.parts, [c, p] = Ot(t, e);
366
+ const h = t.length - 1, a = this.parts, [c, p] = Ot(t, e);
358
367
  if (this.el = M.createElement(c, s), g.currentNode = this.el.content, e === 2 || e === 3) {
359
368
  const l = this.el.content.firstChild;
360
369
  l.replaceWith(...l.childNodes);
361
370
  }
362
- for (; (i = g.nextNode()) !== null && h.length < a; ) {
371
+ for (; (i = g.nextNode()) !== null && a.length < h; ) {
363
372
  if (i.nodeType === 1) {
364
373
  if (i.hasAttributes()) for (const l of i.getAttributeNames()) if (l.endsWith(dt)) {
365
374
  const u = p[o++], $ = i.getAttribute(l).split(f), R = /([.?@])?(.*)/.exec(u);
366
- h.push({ type: 1, index: n, name: R[2], strings: $, ctor: R[1] === "." ? Mt : R[1] === "?" ? Ht : R[1] === "@" ? Nt : L }), i.removeAttribute(l);
367
- } else l.startsWith(f) && (h.push({ type: 6, index: n }), i.removeAttribute(l));
375
+ a.push({ type: 1, index: n, name: R[2], strings: $, ctor: R[1] === "." ? Mt : R[1] === "?" ? Ht : R[1] === "@" ? Nt : B }), i.removeAttribute(l);
376
+ } else l.startsWith(f) && (a.push({ type: 6, index: n }), i.removeAttribute(l));
368
377
  if (ut.test(i.tagName)) {
369
378
  const l = i.textContent.split(f), u = l.length - 1;
370
379
  if (u > 0) {
371
380
  i.textContent = D ? D.emptyScript : "";
372
- for (let $ = 0; $ < u; $++) i.append(l[$], O()), g.nextNode(), h.push({ type: 2, index: ++n });
381
+ for (let $ = 0; $ < u; $++) i.append(l[$], O()), g.nextNode(), a.push({ type: 2, index: ++n });
373
382
  i.append(l[u], O());
374
383
  }
375
384
  }
376
- } else if (i.nodeType === 8) if (i.data === pt) h.push({ type: 2, index: n });
385
+ } else if (i.nodeType === 8) if (i.data === pt) a.push({ type: 2, index: n });
377
386
  else {
378
387
  let l = -1;
379
- for (; (l = i.data.indexOf(f, l + 1)) !== -1; ) h.push({ type: 7, index: n }), l += f.length - 1;
388
+ for (; (l = i.data.indexOf(f, l + 1)) !== -1; ) a.push({ type: 7, index: n }), l += f.length - 1;
380
389
  }
381
390
  n++;
382
391
  }
@@ -387,11 +396,11 @@ class M {
387
396
  }
388
397
  }
389
398
  function b(r, t, e = r, s) {
390
- var o, a;
399
+ var o, h;
391
400
  if (t === E) return t;
392
401
  let i = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
393
402
  const n = T(t) ? void 0 : t._$litDirective$;
394
- return (i == null ? void 0 : i.constructor) !== n && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), n === void 0 ? i = void 0 : (i = new n(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = b(r, i._$AS(r, t.values), i, s)), t;
403
+ return (i == null ? void 0 : i.constructor) !== n && ((h = i == null ? void 0 : i._$AO) == null || h.call(i, !1), n === void 0 ? i = void 0 : (i = new n(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = b(r, i._$AS(r, t.values), i, s)), t;
395
404
  }
396
405
  class Tt {
397
406
  constructor(t, e) {
@@ -406,13 +415,13 @@ class Tt {
406
415
  u(t) {
407
416
  const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? A).importNode(e, !0);
408
417
  g.currentNode = i;
409
- let n = g.nextNode(), o = 0, a = 0, h = s[0];
410
- for (; h !== void 0; ) {
411
- if (o === h.index) {
418
+ let n = g.nextNode(), o = 0, h = 0, a = s[0];
419
+ for (; a !== void 0; ) {
420
+ if (o === a.index) {
412
421
  let c;
413
- h.type === 2 ? c = new N(n, n.nextSibling, this, t) : h.type === 1 ? c = new h.ctor(n, h.name, h.strings, this, t) : h.type === 6 && (c = new Rt(n, this, t)), this._$AV.push(c), h = s[++a];
422
+ a.type === 2 ? c = new N(n, n.nextSibling, this, t) : a.type === 1 ? c = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (c = new Rt(n, this, t)), this._$AV.push(c), a = s[++h];
414
423
  }
415
- o !== (h == null ? void 0 : h.index) && (n = g.nextNode(), o++);
424
+ o !== (a == null ? void 0 : a.index) && (n = g.nextNode(), o++);
416
425
  }
417
426
  return g.currentNode = A, i;
418
427
  }
@@ -457,8 +466,8 @@ class N {
457
466
  const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = M.createElement($t(s.h, s.h[0]), this.options)), s);
458
467
  if (((n = this._$AH) == null ? void 0 : n._$AD) === i) this._$AH.p(e);
459
468
  else {
460
- const o = new Tt(i, this), a = o.u(this.options);
461
- o.p(e), this.T(a), this._$AH = o;
469
+ const o = new Tt(i, this), h = o.u(this.options);
470
+ o.p(e), this.T(h), this._$AH = o;
462
471
  }
463
472
  }
464
473
  _$AC(t) {
@@ -474,7 +483,7 @@ class N {
474
483
  }
475
484
  _$AR(t = this._$AA.nextSibling, e) {
476
485
  var s;
477
- for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t && t !== this._$AB; ) {
486
+ for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t !== this._$AB; ) {
478
487
  const i = t.nextSibling;
479
488
  t.remove(), t = i;
480
489
  }
@@ -484,7 +493,7 @@ class N {
484
493
  this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
485
494
  }
486
495
  }
487
- class L {
496
+ class B {
488
497
  get tagName() {
489
498
  return this.element.tagName;
490
499
  }
@@ -499,9 +508,9 @@ class L {
499
508
  let o = !1;
500
509
  if (n === void 0) t = b(this, t, e, 0), o = !T(t) || t !== this._$AH && t !== E, o && (this._$AH = t);
501
510
  else {
502
- const a = t;
503
- let h, c;
504
- for (t = n[0], h = 0; h < n.length - 1; h++) c = b(this, a[s + h], e, h), c === E && (c = this._$AH[h]), o || (o = !T(c) || c !== this._$AH[h]), c === d ? t = d : t !== d && (t += (c ?? "") + n[h + 1]), this._$AH[h] = c;
511
+ const h = t;
512
+ let a, c;
513
+ for (t = n[0], a = 0; a < n.length - 1; a++) c = b(this, h[s + a], e, a), c === E && (c = this._$AH[a]), o || (o = !T(c) || c !== this._$AH[a]), c === d ? t = d : t !== d && (t += (c ?? "") + n[a + 1]), this._$AH[a] = c;
505
514
  }
506
515
  o && !i && this.j(t);
507
516
  }
@@ -509,7 +518,7 @@ class L {
509
518
  t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
510
519
  }
511
520
  }
512
- class Mt extends L {
521
+ class Mt extends B {
513
522
  constructor() {
514
523
  super(...arguments), this.type = 3;
515
524
  }
@@ -517,7 +526,7 @@ class Mt extends L {
517
526
  this.element[this.name] = t === d ? void 0 : t;
518
527
  }
519
528
  }
520
- class Ht extends L {
529
+ class Ht extends B {
521
530
  constructor() {
522
531
  super(...arguments), this.type = 4;
523
532
  }
@@ -525,7 +534,7 @@ class Ht extends L {
525
534
  this.element.toggleAttribute(this.name, !!t && t !== d);
526
535
  }
527
536
  }
528
- class Nt extends L {
537
+ class Nt extends B {
529
538
  constructor(t, e, s, i, n) {
530
539
  super(t, e, s, i, n), this.type = 5;
531
540
  }
@@ -551,7 +560,7 @@ class Rt {
551
560
  }
552
561
  }
553
562
  const z = P.litHtmlPolyfillSupport;
554
- z == null || z(M, N), (P.litHtmlVersions ?? (P.litHtmlVersions = [])).push("3.3.0");
563
+ z == null || z(M, N), (P.litHtmlVersions ?? (P.litHtmlVersions = [])).push("3.3.1");
555
564
  const kt = (r, t, e) => {
556
565
  const s = (e == null ? void 0 : e.renderBefore) ?? t;
557
566
  let i = s._$litPart$;
@@ -592,53 +601,17 @@ class U extends y {
592
601
  return E;
593
602
  }
594
603
  }
595
- var at;
596
- U._$litElement$ = !0, U.finalized = !0, (at = v.litElementHydrateSupport) == null || at.call(v, { LitElement: U });
604
+ var ht;
605
+ U._$litElement$ = !0, U.finalized = !0, (ht = v.litElementHydrateSupport) == null || ht.call(v, { LitElement: U });
597
606
  const q = v.litElementPolyfillSupport;
598
607
  q == null || q({ LitElement: U });
599
- (v.litElementVersions ?? (v.litElementVersions = [])).push("4.2.0");
600
- function Bt(r, t) {
601
- const e = document.createElement("template");
602
- return e.innerHTML = r.trim(), t.append(e.content.cloneNode(!0)), new Proxy({}, {
603
- get(s, i) {
604
- if (i === "fragment")
605
- return t;
606
- if (typeof i == "string") {
607
- const n = t.getElementById(i);
608
- if (!n)
609
- throw new Error(
610
- `❌ Unknown id '${i}'.`
611
- );
612
- return n;
613
- }
614
- }
615
- });
616
- }
617
- const G = class G extends y {
618
- constructor(t) {
619
- super();
620
- const e = this.createRenderRoot();
621
- this.$ = Bt(t, e);
622
- }
623
- connectedCallback() {
624
- super.connectedCallback();
625
- let t = this.css;
626
- Array.isArray(t) || (t = [t]);
627
- const e = t.map((s) => s instanceof ct ? s.styleSheet : F(s).styleSheet);
628
- this.shadowRoot.adoptedStyleSheets = e;
629
- }
630
- };
631
- G.DEFINITION = {
632
- classes: [],
633
- attributes: {}
634
- };
635
- let ht = G;
608
+ (v.litElementVersions ?? (v.litElementVersions = [])).push("4.2.1");
636
609
  /**
637
610
  * @license
638
611
  * Copyright 2017 Google LLC
639
612
  * SPDX-License-Identifier: BSD-3-Clause
640
613
  */
641
- const Dt = (r) => (t, e) => {
614
+ const Wt = (r) => (t, e) => {
642
615
  e !== void 0 ? e.addInitializer(() => {
643
616
  customElements.define(r, t);
644
617
  }) : customElements.define(r, t);
@@ -648,34 +621,68 @@ const Dt = (r) => (t, e) => {
648
621
  * Copyright 2017 Google LLC
649
622
  * SPDX-License-Identifier: BSD-3-Clause
650
623
  */
651
- const Lt = { attribute: !0, type: String, converter: B, reflect: !1, hasChanged: J }, jt = (r = Lt, t, e) => {
624
+ const Dt = { attribute: !0, type: String, converter: W, reflect: !1, hasChanged: J }, Bt = (r = Dt, t, e) => {
652
625
  const { kind: s, metadata: i } = e;
653
626
  let n = globalThis.litPropertyMetadata.get(i);
654
627
  if (n === void 0 && globalThis.litPropertyMetadata.set(i, n = /* @__PURE__ */ new Map()), s === "setter" && ((r = Object.create(r)).wrapped = !0), n.set(e.name, r), s === "accessor") {
655
628
  const { name: o } = e;
656
- return { set(a) {
657
- const h = t.get.call(this);
658
- t.set.call(this, a), this.requestUpdate(o, h, r);
659
- }, init(a) {
660
- return a !== void 0 && this.C(o, void 0, r, a), a;
629
+ return { set(h) {
630
+ const a = t.get.call(this);
631
+ t.set.call(this, h), this.requestUpdate(o, a, r);
632
+ }, init(h) {
633
+ return h !== void 0 && this.C(o, void 0, r, h), h;
661
634
  } };
662
635
  }
663
636
  if (s === "setter") {
664
637
  const { name: o } = e;
665
- return function(a) {
666
- const h = this[o];
667
- t.call(this, a), this.requestUpdate(o, h, r);
638
+ return function(h) {
639
+ const a = this[o];
640
+ t.call(this, h), this.requestUpdate(o, a, r);
668
641
  };
669
642
  }
670
643
  throw Error("Unsupported decorator location: " + s);
671
644
  };
672
645
  function ft(r) {
673
- return (t, e) => typeof e == "object" ? jt(r, t, e) : ((s, i, n) => {
646
+ return (t, e) => typeof e == "object" ? Bt(r, t, e) : ((s, i, n) => {
674
647
  const o = i.hasOwnProperty(n);
675
648
  return i.constructor.createProperty(n, s), o ? Object.getOwnPropertyDescriptor(i, n) : void 0;
676
649
  })(r, t, e);
677
650
  }
678
- const Wt = ":host{--container-width: var(--nt-container-width, 100%);--gap: var(--nt-base-gap);--x-direction: row;--y-direction: column}:host(.desktop-reverse){--x-direction: row-reverse}:host(.mobile-reverse){--y-direction: column-reverse}:host(.alternate:nth-child(odd)) .row div[part=main]{order:2}:host(.alternate:nth-child(odd)) .row div[part=aside]{order:1}#row{width:var(--container-width);display:flex;gap:var(--gap)}#row.row{flex-direction:var(--x-direction)}#row.row div[part=main]{width:calc(100% * var(--cols, 1) / 12)}#row.row div[part=aside]{width:calc(100% * (12 - var(--cols, 1)) / 12)}#row.col{flex-direction:var(--y-direction)}#row.col slot{width:100%}div[part]{display:flex;flex-grow:1}div[part]:has(slot.is-empty){display:none}section{width:var(--container-width);margin:0 auto}";
651
+ function Lt(r, t) {
652
+ const e = document.createElement("template");
653
+ return e.innerHTML = r.trim(), t.append(e.content.cloneNode(!0)), new Proxy({}, {
654
+ get(s, i) {
655
+ if (i === "fragment")
656
+ return t;
657
+ if (typeof i == "string") {
658
+ const n = t.getElementById(i);
659
+ if (!n)
660
+ throw new Error(`❌ Unknown id '${i}'.`);
661
+ return n;
662
+ }
663
+ }
664
+ });
665
+ }
666
+ const G = class G extends y {
667
+ constructor(t) {
668
+ super();
669
+ const e = this.createRenderRoot();
670
+ this.$ = Lt(t, e);
671
+ }
672
+ connectedCallback() {
673
+ super.connectedCallback();
674
+ let t = this.css;
675
+ Array.isArray(t) || (t = [t]);
676
+ const e = t.map((s) => s instanceof ct ? s.styleSheet : F(s).styleSheet);
677
+ this.shadowRoot.adoptedStyleSheets = e;
678
+ }
679
+ };
680
+ G.DEFINITION = {
681
+ classes: [],
682
+ attributes: {}
683
+ };
684
+ let at = G;
685
+ const jt = ":host{--container-width: var(--nt-container-width, 100%);--gap: var(--nt-base-gap);--x-direction: row;--y-direction: column}:host(.desktop-reverse){--x-direction: row-reverse}:host(.mobile-reverse){--y-direction: column-reverse}:host(.alternate:nth-child(odd)) .row div[part=main]{order:2}:host(.alternate:nth-child(odd)) .row div[part=aside]{order:1}#row{width:var(--container-width);display:flex;gap:var(--gap)}#row.row{flex-direction:var(--x-direction)}#row.row div[part=main]{width:calc(100% * var(--cols, 1) / 12)}#row.row div[part=aside]{width:calc(100% * (12 - var(--cols, 1)) / 12)}#row.col{flex-direction:var(--y-direction)}#row.col slot{width:100%}div[part]{display:flex;flex-grow:1}div[part]:has(slot.is-empty){display:none}section{width:var(--container-width);margin:0 auto}";
679
686
  var It = Object.defineProperty, zt = Object.getOwnPropertyDescriptor, Z = (r, t, e, s) => {
680
687
  for (var i = s > 1 ? void 0 : s ? zt(t, e) : t, n = r.length - 1, o; n >= 0; n--)
681
688
  (o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
@@ -716,7 +723,7 @@ let H = class extends U {
716
723
  `;
717
724
  }
718
725
  };
719
- H.styles = [F(Wt)];
726
+ H.styles = [F(jt)];
720
727
  Z([
721
728
  ft({ type: String, reflect: !0 })
722
729
  ], H.prototype, "breakAt", 2);
@@ -724,8 +731,10 @@ Z([
724
731
  ft({ type: Number, reflect: !0 })
725
732
  ], H.prototype, "cols", 2);
726
733
  H = Z([
727
- Dt("ntl-2col")
734
+ Wt("ntl-2col")
728
735
  ], H);
736
+ const Ft = 2;
729
737
  export {
730
- H as Ntl2Col
738
+ H as Ntl2Col,
739
+ Ft as tempChangeForForcingRelease
731
740
  };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
- "name": "@nextrap/ntl-2col",
3
- "version": "0.1.1",
4
- "main": "./index.js",
5
- "dependencies": {},
6
- "type": "module",
7
- "types": "./index.d.ts"
2
+ "name": "@nextrap/ntl-2col",
3
+ "version": "0.1.3",
4
+ "main": "./index.js",
5
+ "dependencies": {},
6
+ "type": "module",
7
+ "types": "./index.d.ts"
8
8
  }