@duyluonganduin/acl-web-components 0.0.4 → 0.0.6

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.
@@ -199,6 +199,7 @@ export declare class AnduinTabContent extends LitElement {
199
199
  value: string;
200
200
  private isActive;
201
201
  connectedCallback(): void;
202
+ updated(changed: Map<string, unknown>): void;
202
203
  render(): TemplateResult<1>;
203
204
  }
204
205
 
@@ -206,6 +207,7 @@ export declare class AnduinTabs extends LitElement {
206
207
  static styles: CSSResult;
207
208
  defaultValue: string;
208
209
  value: string;
210
+ fill: boolean;
209
211
  connectedCallback(): void;
210
212
  updated(changed: Map<string, unknown>): void;
211
213
  private broadcastValueChanged;
@@ -46,7 +46,7 @@ const h2 = (C) => new T5(typeof C == "string" ? C : C + "", void 0, O1), h = (C,
46
46
  * Copyright 2017 Google LLC
47
47
  * SPDX-License-Identifier: BSD-3-Clause
48
48
  */
49
- const { is: L2, defineProperty: g2, getOwnPropertyDescriptor: f2, getOwnPropertyNames: H2, getOwnPropertySymbols: b2, getPrototypeOf: m2 } = Object, x = globalThis, _5 = x.trustedTypes, V2 = _5 ? _5.emptyScript : "", V1 = x.reactiveElementPolyfillSupport, j = (C, e) => C, d1 = { toAttribute(C, e) {
49
+ const { is: L2, defineProperty: g2, getOwnPropertyDescriptor: f2, getOwnPropertyNames: H2, getOwnPropertySymbols: b2, getPrototypeOf: m2 } = Object, x = globalThis, _5 = x.trustedTypes, V2 = _5 ? _5.emptyScript : "", V1 = x.reactiveElementPolyfillSupport, D = (C, e) => C, d1 = { toAttribute(C, e) {
50
50
  switch (e) {
51
51
  case Boolean:
52
52
  C = C ? V2 : null;
@@ -104,13 +104,13 @@ let S = class extends HTMLElement {
104
104
  return this.elementProperties.get(e) ?? x5;
105
105
  }
106
106
  static _$Ei() {
107
- if (this.hasOwnProperty(j("elementProperties"))) return;
107
+ if (this.hasOwnProperty(D("elementProperties"))) return;
108
108
  const e = m2(this);
109
109
  e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
110
110
  }
111
111
  static finalize() {
112
- if (this.hasOwnProperty(j("finalized"))) return;
113
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(j("properties"))) {
112
+ if (this.hasOwnProperty(D("finalized"))) return;
113
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(D("properties"))) {
114
114
  const t = this.properties, l = [...H2(t), ...b2(t)];
115
115
  for (const o of l) this.createProperty(o, t[o]);
116
116
  }
@@ -279,14 +279,14 @@ let S = class extends HTMLElement {
279
279
  firstUpdated(e) {
280
280
  }
281
281
  };
282
- S.elementStyles = [], S.shadowRootOptions = { mode: "open" }, S[j("elementProperties")] = /* @__PURE__ */ new Map(), S[j("finalized")] = /* @__PURE__ */ new Map(), V1 == null || V1({ ReactiveElement: S }), (x.reactiveElementVersions ?? (x.reactiveElementVersions = [])).push("2.1.2");
282
+ S.elementStyles = [], S.shadowRootOptions = { mode: "open" }, S[D("elementProperties")] = /* @__PURE__ */ new Map(), S[D("finalized")] = /* @__PURE__ */ new Map(), V1 == null || V1({ ReactiveElement: S }), (x.reactiveElementVersions ?? (x.reactiveElementVersions = [])).push("2.1.2");
283
283
  /**
284
284
  * @license
285
285
  * Copyright 2017 Google LLC
286
286
  * SPDX-License-Identifier: BSD-3-Clause
287
287
  */
288
- const D = globalThis, k5 = (C) => C, c1 = D.trustedTypes, w5 = c1 ? c1.createPolicy("lit-html", { createHTML: (C) => C }) : void 0, U5 = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, j5 = "?" + _, M2 = `<${j5}>`, z = document, q = () => z.createComment(""), G = (C) => C === null || typeof C != "object" && typeof C != "function", I1 = Array.isArray, Z2 = (C) => I1(C) || typeof (C == null ? void 0 : C[Symbol.iterator]) == "function", M1 = `[
289
- \f\r]`, U = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $5 = /-->/g, E5 = />/g, E = RegExp(`>|${M1}(?:([^\\s"'>=/]+)(${M1}*=${M1}*(?:[^
288
+ const q = globalThis, k5 = (C) => C, c1 = q.trustedTypes, w5 = c1 ? c1.createPolicy("lit-html", { createHTML: (C) => C }) : void 0, U5 = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, j5 = "?" + _, M2 = `<${j5}>`, z = document, G = () => z.createComment(""), Y = (C) => C === null || typeof C != "object" && typeof C != "function", I1 = Array.isArray, Z2 = (C) => I1(C) || typeof (C == null ? void 0 : C[Symbol.iterator]) == "function", M1 = `[
289
+ \f\r]`, j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $5 = /-->/g, E5 = />/g, E = RegExp(`>|${M1}(?:([^\\s"'>=/]+)(${M1}*=${M1}*(?:[^
290
290
  \f\r"'\`<>=]|("|')|))|$)`, "g"), P5 = /'/g, A5 = /"/g, D5 = /^(?:script|style|textarea|title)$/i, q5 = (C) => (e, ...t) => ({ _$litType$: C, strings: e, values: t }), d = q5(1), R1 = q5(2), O = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), z5 = /* @__PURE__ */ new WeakMap(), P = z.createTreeWalker(z, 129);
291
291
  function G5(C, e) {
292
292
  if (!I1(C) || !C.hasOwnProperty("raw")) throw Error("invalid template strings array");
@@ -294,38 +294,38 @@ function G5(C, e) {
294
294
  }
295
295
  const y2 = (C, e) => {
296
296
  const t = C.length - 1, l = [];
297
- let o, i = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", n = U;
297
+ let o, i = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", n = j;
298
298
  for (let a = 0; a < t; a++) {
299
299
  const s = C[a];
300
- let u, L, v = -1, b = 0;
301
- for (; b < s.length && (n.lastIndex = b, L = n.exec(s), L !== null); ) b = n.lastIndex, n === U ? L[1] === "!--" ? n = $5 : L[1] !== void 0 ? n = E5 : L[2] !== void 0 ? (D5.test(L[2]) && (o = RegExp("</" + L[2], "g")), n = E) : L[3] !== void 0 && (n = E) : n === E ? L[0] === ">" ? (n = o ?? U, v = -1) : L[1] === void 0 ? v = -2 : (v = n.lastIndex - L[2].length, u = L[1], n = L[3] === void 0 ? E : L[3] === '"' ? A5 : P5) : n === A5 || n === P5 ? n = E : n === $5 || n === E5 ? n = U : (n = E, o = void 0);
300
+ let u, L, v = -1, m = 0;
301
+ for (; m < s.length && (n.lastIndex = m, L = n.exec(s), L !== null); ) m = n.lastIndex, n === j ? L[1] === "!--" ? n = $5 : L[1] !== void 0 ? n = E5 : L[2] !== void 0 ? (D5.test(L[2]) && (o = RegExp("</" + L[2], "g")), n = E) : L[3] !== void 0 && (n = E) : n === E ? L[0] === ">" ? (n = o ?? j, v = -1) : L[1] === void 0 ? v = -2 : (v = n.lastIndex - L[2].length, u = L[1], n = L[3] === void 0 ? E : L[3] === '"' ? A5 : P5) : n === A5 || n === P5 ? n = E : n === $5 || n === E5 ? n = j : (n = E, o = void 0);
302
302
  const g = n === E && C[a + 1].startsWith("/>") ? " " : "";
303
- i += n === U ? s + M2 : v >= 0 ? (l.push(u), s.slice(0, v) + U5 + s.slice(v) + _ + g) : s + _ + (v === -2 ? a : g);
303
+ i += n === j ? s + M2 : v >= 0 ? (l.push(u), s.slice(0, v) + U5 + s.slice(v) + _ + g) : s + _ + (v === -2 ? a : g);
304
304
  }
305
305
  return [G5(C, i + (C[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), l];
306
306
  };
307
- class Y {
307
+ class W {
308
308
  constructor({ strings: e, _$litType$: t }, l) {
309
309
  let o;
310
310
  this.parts = [];
311
311
  let i = 0, n = 0;
312
312
  const a = e.length - 1, s = this.parts, [u, L] = y2(e, t);
313
- if (this.el = Y.createElement(u, l), P.currentNode = this.el.content, t === 2 || t === 3) {
313
+ if (this.el = W.createElement(u, l), P.currentNode = this.el.content, t === 2 || t === 3) {
314
314
  const v = this.el.content.firstChild;
315
315
  v.replaceWith(...v.childNodes);
316
316
  }
317
317
  for (; (o = P.nextNode()) !== null && s.length < a; ) {
318
318
  if (o.nodeType === 1) {
319
319
  if (o.hasAttributes()) for (const v of o.getAttributeNames()) if (v.endsWith(U5)) {
320
- const b = L[n++], g = o.getAttribute(v).split(_), V = /([.?@])?(.*)/.exec(b);
320
+ const m = L[n++], g = o.getAttribute(v).split(_), V = /([.?@])?(.*)/.exec(m);
321
321
  s.push({ type: 1, index: i, name: V[2], strings: g, ctor: V[1] === "." ? _2 : V[1] === "?" ? x2 : V[1] === "@" ? k2 : f1 }), o.removeAttribute(v);
322
322
  } else v.startsWith(_) && (s.push({ type: 6, index: i }), o.removeAttribute(v));
323
323
  if (D5.test(o.tagName)) {
324
- const v = o.textContent.split(_), b = v.length - 1;
325
- if (b > 0) {
324
+ const v = o.textContent.split(_), m = v.length - 1;
325
+ if (m > 0) {
326
326
  o.textContent = c1 ? c1.emptyScript : "";
327
- for (let g = 0; g < b; g++) o.append(v[g], q()), P.nextNode(), s.push({ type: 2, index: ++i });
328
- o.append(v[b], q());
327
+ for (let g = 0; g < m; g++) o.append(v[g], G()), P.nextNode(), s.push({ type: 2, index: ++i });
328
+ o.append(v[m], G());
329
329
  }
330
330
  }
331
331
  } else if (o.nodeType === 8) if (o.data === j5) s.push({ type: 2, index: i });
@@ -345,7 +345,7 @@ function B(C, e, t = C, l) {
345
345
  var n, a;
346
346
  if (e === O) return e;
347
347
  let o = l !== void 0 ? (n = t._$Co) == null ? void 0 : n[l] : t._$Cl;
348
- const i = G(e) ? void 0 : e._$litDirective$;
348
+ const i = Y(e) ? void 0 : e._$litDirective$;
349
349
  return (o == null ? void 0 : o.constructor) !== i && ((a = o == null ? void 0 : o._$AO) == null || a.call(o, !1), i === void 0 ? o = void 0 : (o = new i(C), o._$AT(C, t, l)), l !== void 0 ? (t._$Co ?? (t._$Co = []))[l] = o : t._$Cl = o), o !== void 0 && (e = B(C, o._$AS(C, e.values), o, l)), e;
350
350
  }
351
351
  class R2 {
@@ -396,7 +396,7 @@ class n1 {
396
396
  return this._$AB;
397
397
  }
398
398
  _$AI(e, t = this) {
399
- e = B(this, e, t), G(e) ? e === p || e == null || e === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : e !== this._$AH && e !== O && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Z2(e) ? this.k(e) : this._(e);
399
+ e = B(this, e, t), Y(e) ? e === p || e == null || e === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : e !== this._$AH && e !== O && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Z2(e) ? this.k(e) : this._(e);
400
400
  }
401
401
  O(e) {
402
402
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -405,11 +405,11 @@ class n1 {
405
405
  this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
406
406
  }
407
407
  _(e) {
408
- this._$AH !== p && G(this._$AH) ? this._$AA.nextSibling.data = e : this.T(z.createTextNode(e)), this._$AH = e;
408
+ this._$AH !== p && Y(this._$AH) ? this._$AA.nextSibling.data = e : this.T(z.createTextNode(e)), this._$AH = e;
409
409
  }
410
410
  $(e) {
411
411
  var i;
412
- const { values: t, _$litType$: l } = e, o = typeof l == "number" ? this._$AC(e) : (l.el === void 0 && (l.el = Y.createElement(G5(l.h, l.h[0]), this.options)), l);
412
+ const { values: t, _$litType$: l } = e, o = typeof l == "number" ? this._$AC(e) : (l.el === void 0 && (l.el = W.createElement(G5(l.h, l.h[0]), this.options)), l);
413
413
  if (((i = this._$AH) == null ? void 0 : i._$AD) === o) this._$AH.p(t);
414
414
  else {
415
415
  const n = new R2(o, this), a = n.u(this.options);
@@ -418,13 +418,13 @@ class n1 {
418
418
  }
419
419
  _$AC(e) {
420
420
  let t = z5.get(e.strings);
421
- return t === void 0 && z5.set(e.strings, t = new Y(e)), t;
421
+ return t === void 0 && z5.set(e.strings, t = new W(e)), t;
422
422
  }
423
423
  k(e) {
424
424
  I1(this._$AH) || (this._$AH = [], this._$AR());
425
425
  const t = this._$AH;
426
426
  let l, o = 0;
427
- for (const i of e) o === t.length ? t.push(l = new n1(this.O(q()), this.O(q()), this, this.options)) : l = t[o], l._$AI(i), o++;
427
+ for (const i of e) o === t.length ? t.push(l = new n1(this.O(G()), this.O(G()), this, this.options)) : l = t[o], l._$AI(i), o++;
428
428
  o < t.length && (this._$AR(l && l._$AB.nextSibling, o), t.length = o);
429
429
  }
430
430
  _$AR(e = this._$AA.nextSibling, t) {
@@ -452,11 +452,11 @@ class f1 {
452
452
  _$AI(e, t = this, l, o) {
453
453
  const i = this.strings;
454
454
  let n = !1;
455
- if (i === void 0) e = B(this, e, t, 0), n = !G(e) || e !== this._$AH && e !== O, n && (this._$AH = e);
455
+ if (i === void 0) e = B(this, e, t, 0), n = !Y(e) || e !== this._$AH && e !== O, n && (this._$AH = e);
456
456
  else {
457
457
  const a = e;
458
458
  let s, u;
459
- for (e = i[0], s = 0; s < i.length - 1; s++) u = B(this, a[l + s], t, s), u === O && (u = this._$AH[s]), n || (n = !G(u) || u !== this._$AH[s]), u === p ? e = p : e !== p && (e += (u ?? "") + i[s + 1]), this._$AH[s] = u;
459
+ for (e = i[0], s = 0; s < i.length - 1; s++) u = B(this, a[l + s], t, s), u === O && (u = this._$AH[s]), n || (n = !Y(u) || u !== this._$AH[s]), u === p ? e = p : e !== p && (e += (u ?? "") + i[s + 1]), this._$AH[s] = u;
460
460
  }
461
461
  n && !o && this.j(e);
462
462
  }
@@ -505,14 +505,14 @@ class w2 {
505
505
  B(this, e);
506
506
  }
507
507
  }
508
- const Z1 = D.litHtmlPolyfillSupport;
509
- Z1 == null || Z1(Y, n1), (D.litHtmlVersions ?? (D.litHtmlVersions = [])).push("3.3.2");
508
+ const Z1 = q.litHtmlPolyfillSupport;
509
+ Z1 == null || Z1(W, n1), (q.litHtmlVersions ?? (q.litHtmlVersions = [])).push("3.3.2");
510
510
  const $2 = (C, e, t) => {
511
511
  const l = (t == null ? void 0 : t.renderBefore) ?? e;
512
512
  let o = l._$litPart$;
513
513
  if (o === void 0) {
514
514
  const i = (t == null ? void 0 : t.renderBefore) ?? null;
515
- l._$litPart$ = o = new n1(e.insertBefore(q(), i), i, void 0, t ?? {});
515
+ l._$litPart$ = o = new n1(e.insertBefore(G(), i), i, void 0, t ?? {});
516
516
  }
517
517
  return o._$AI(C), o;
518
518
  };
@@ -681,14 +681,14 @@ D1.styles = h`
681
681
  .spinner { animation: circle 0.6s linear infinite; }
682
682
  @keyframes circle { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
683
683
  `;
684
- let W = D1;
684
+ let X = D1;
685
685
  Y5([
686
686
  r()
687
- ], W.prototype, "size");
687
+ ], X.prototype, "size");
688
688
  Y5([
689
689
  r()
690
- ], W.prototype, "percent");
691
- customElements.get("anduin-spinner") || customElements.define("anduin-spinner", W);
690
+ ], X.prototype, "percent");
691
+ customElements.get("anduin-spinner") || customElements.define("anduin-spinner", X);
692
692
  const S5 = {
693
693
  access: [{ d: "M13 2.5H3C2.72386 2.5 2.5 2.72386 2.5 3V5.75H1V3C1 1.89543 1.89543 1 3 1H13C14.1046 1 15 1.89543 15 3V13C15 14.1046 14.1046 15 13 15H3C1.89543 15 1 14.1046 1 13V10.25H2.5V13C2.5 13.2761 2.72386 13.5 3 13.5H13C13.2761 13.5 13.5 13.2761 13.5 13V3C13.5 2.72386 13.2761 2.5 13 2.5ZM7.53033 4.21979C7.23744 3.9269 6.76256 3.9269 6.46967 4.21979C6.17678 4.51269 6.17678 4.98756 6.46967 5.28045L8.43922 7.25L0.75 7.25C0.335786 7.25 0 7.58579 0 8C0 8.41421 0.335786 8.75 0.75 8.75L8.43946 8.75L6.46967 10.7198C6.17678 11.0127 6.17678 11.4876 6.46967 11.7805C6.76256 12.0733 7.23744 12.0733 7.53033 11.7805L10.7803 8.53044C11.0732 8.23755 11.0732 7.76268 10.7803 7.46978L7.53033 4.21979Z", fillRule: "evenodd", clipRule: "evenodd" }],
694
694
  alignCenter: [{ d: "M2 1C1.44772 1 1 1.44772 1 2C1 2.55228 1.44772 3 2 3H14C14.5523 3 15 2.55228 15 2C15 1.44772 14.5523 1 14 1H2ZM2 9C1.44772 9 1 9.44771 1 10C1 10.5523 1.44772 11 2 11H14C14.5523 11 15 10.5523 15 10C15 9.44771 14.5523 9 14 9H2ZM4 6C4 5.44772 4.44772 5 5 5H11C11.5523 5 12 5.44772 12 6C12 6.55228 11.5523 7 11 7H5C4.44772 7 4 6.55228 4 6ZM5 13C4.44772 13 4 13.4477 4 14C4 14.5523 4.44772 15 5 15H11C11.5523 15 12 14.5523 12 14C12 13.4477 11.5523 13 11 13H5Z", fillRule: "evenodd", clipRule: "evenodd" }],
@@ -1063,14 +1063,14 @@ q1.styles = h`
1063
1063
  :host { display: block; line-height: 0; font-family: var(--font-sans); }
1064
1064
  .icon--hidden { display: none; }
1065
1065
  `;
1066
- let X = q1;
1066
+ let K = q1;
1067
1067
  W5([
1068
1068
  r()
1069
- ], X.prototype, "name");
1069
+ ], K.prototype, "name");
1070
1070
  W5([
1071
1071
  r({ type: Number })
1072
- ], X.prototype, "size");
1073
- customElements.get("anduin-icon") || customElements.define("anduin-icon", X);
1072
+ ], K.prototype, "size");
1073
+ customElements.get("anduin-icon") || customElements.define("anduin-icon", K);
1074
1074
  var O2 = Object.defineProperty, B2 = (C, e, t, l) => {
1075
1075
  for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
1076
1076
  (n = C[i]) && (o = n(e, t, o) || o);
@@ -1155,14 +1155,14 @@ const Y1 = class Y1 extends c {
1155
1155
  }
1156
1156
  };
1157
1157
  Y1.styles = [X5];
1158
- let K = Y1;
1158
+ let F = Y1;
1159
1159
  F5([
1160
1160
  r()
1161
- ], K.prototype, "variant");
1161
+ ], F.prototype, "variant");
1162
1162
  F5([
1163
1163
  r({ type: Number })
1164
- ], K.prototype, "count");
1165
- customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count", K);
1164
+ ], F.prototype, "count");
1165
+ customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count", F);
1166
1166
  var N2 = Object.defineProperty, H = (C, e, t, l) => {
1167
1167
  for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
1168
1168
  (n = C[i]) && (o = n(e, t, o) || o);
@@ -1462,14 +1462,14 @@ K1.styles = h`
1462
1462
  .divider--vertical-empty { background-color: var(--color-gray-3); width: 1px; }
1463
1463
  .divider__line--vertical { border-left: 1px solid var(--color-gray-3); justify-self: center; }
1464
1464
  `;
1465
- let F = K1;
1465
+ let J = K1;
1466
1466
  J5([
1467
1467
  r()
1468
- ], F.prototype, "direction");
1468
+ ], J.prototype, "direction");
1469
1469
  J5([
1470
1470
  H1()
1471
- ], F.prototype, "hasContent");
1472
- customElements.get("anduin-divider") || customElements.define("anduin-divider", F);
1471
+ ], J.prototype, "hasContent");
1472
+ customElements.get("anduin-divider") || customElements.define("anduin-divider", J);
1473
1473
  var q2 = Object.defineProperty, G2 = (C, e, t, l) => {
1474
1474
  for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
1475
1475
  (n = C[i]) && (o = n(e, t, o) || o);
@@ -1534,15 +1534,15 @@ J1.styles = h`
1534
1534
  to { transform: translateX(330%); }
1535
1535
  }
1536
1536
  `;
1537
- let J = J1;
1537
+ let Q = J1;
1538
1538
  Q5([
1539
1539
  r()
1540
- ], J.prototype, "percent");
1540
+ ], Q.prototype, "percent");
1541
1541
  Q5([
1542
1542
  r()
1543
- ], J.prototype, "height");
1544
- customElements.get("anduin-progress") || customElements.define("anduin-progress", J);
1545
- var W2 = Object.defineProperty, T = (C, e, t, l) => {
1543
+ ], Q.prototype, "height");
1544
+ customElements.get("anduin-progress") || customElements.define("anduin-progress", Q);
1545
+ var W2 = Object.defineProperty, U = (C, e, t, l) => {
1546
1546
  for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
1547
1547
  (n = C[i]) && (o = n(e, t, o) || o);
1548
1548
  return o && W2(e, t, o), o;
@@ -1586,22 +1586,22 @@ Q1.styles = h`
1586
1586
  }
1587
1587
  `;
1588
1588
  let y = Q1;
1589
- T([
1589
+ U([
1590
1590
  r()
1591
1591
  ], y.prototype, "effect");
1592
- T([
1592
+ U([
1593
1593
  r()
1594
1594
  ], y.prototype, "shape");
1595
- T([
1595
+ U([
1596
1596
  r()
1597
1597
  ], y.prototype, "height");
1598
- T([
1598
+ U([
1599
1599
  r()
1600
1600
  ], y.prototype, "width");
1601
- T([
1601
+ U([
1602
1602
  r({ type: Number })
1603
1603
  ], y.prototype, "duration");
1604
- T([
1604
+ U([
1605
1605
  r({ attribute: "font-size" })
1606
1606
  ], y.prototype, "fontSize");
1607
1607
  customElements.get("anduin-skeleton") || customElements.define("anduin-skeleton", y);
@@ -1706,13 +1706,13 @@ o5.styles = h`
1706
1706
  .field-label { font-size: 13px; line-height: 20px; font-weight: 600; cursor: default; }
1707
1707
  .field-label__required { color: var(--color-danger-5); }
1708
1708
  `;
1709
- let Q = o5;
1709
+ let e1 = o5;
1710
1710
  T1([
1711
1711
  r()
1712
- ], Q.prototype, "htmlfor");
1712
+ ], e1.prototype, "htmlfor");
1713
1713
  T1([
1714
1714
  r({ type: Boolean })
1715
- ], Q.prototype, "required");
1715
+ ], e1.prototype, "required");
1716
1716
  const l5 = class l5 extends c {
1717
1717
  render() {
1718
1718
  return d`<div class="field-description" part="description"><slot></slot></div>`;
@@ -1744,7 +1744,7 @@ i5.styles = h`
1744
1744
  `;
1745
1745
  let k1 = i5;
1746
1746
  customElements.get("anduin-field") || customElements.define("anduin-field", L1);
1747
- customElements.get("anduin-field-label") || customElements.define("anduin-field-label", Q);
1747
+ customElements.get("anduin-field-label") || customElements.define("anduin-field-label", e1);
1748
1748
  customElements.get("anduin-field-description") || customElements.define("anduin-field-description", _1);
1749
1749
  customElements.get("anduin-field-error") || customElements.define("anduin-field-error", x1);
1750
1750
  customElements.get("anduin-field-group") || customElements.define("anduin-field-group", k1);
@@ -2030,14 +2030,14 @@ $([
2030
2030
  N1("textarea")
2031
2031
  ], Z.prototype, "textareaEl");
2032
2032
  customElements.get("anduin-textarea") || customElements.define("anduin-textarea", Z);
2033
- var C4 = Object.defineProperty, m = (C, e, t, l) => {
2033
+ var C4 = Object.defineProperty, b = (C, e, t, l) => {
2034
2034
  for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
2035
2035
  (n = C[i]) && (o = n(e, t, o) || o);
2036
2036
  return o && C4(e, t, o), o;
2037
2037
  };
2038
2038
  const t2 = "anduin-tab:trigger-click", m1 = "anduin-tab:value-changed", i4 = "anduin-tab:change", s5 = class s5 extends c {
2039
2039
  constructor() {
2040
- super(...arguments), this.defaultValue = "", this.value = "";
2040
+ super(...arguments), this.defaultValue = "", this.value = "", this.fill = !1;
2041
2041
  }
2042
2042
  connectedCallback() {
2043
2043
  super.connectedCallback(), this.addEventListener(t2, (e) => {
@@ -2061,15 +2061,20 @@ const t2 = "anduin-tab:trigger-click", m1 = "anduin-tab:value-changed", i4 = "an
2061
2061
  };
2062
2062
  s5.styles = h`
2063
2063
  :host { display: flex; flex-direction: column; font-family: var(--font-sans); }
2064
+ :host([fill]) { flex: 1; min-height: 0; --_tab-fill-flex: 1; --_tab-fill-height: 100%; }
2064
2065
  .tabs { display: flex; flex-direction: column; width: 100%; }
2066
+ :host([fill]) .tabs { flex: 1; min-height: 0; }
2065
2067
  `;
2066
- let e1 = s5;
2067
- m([
2068
+ let I = s5;
2069
+ b([
2068
2070
  r({ attribute: "default-value" })
2069
- ], e1.prototype, "defaultValue");
2070
- m([
2071
+ ], I.prototype, "defaultValue");
2072
+ b([
2071
2073
  r()
2072
- ], e1.prototype, "value");
2074
+ ], I.prototype, "value");
2075
+ b([
2076
+ r({ type: Boolean, reflect: !0 })
2077
+ ], I.prototype, "fill");
2073
2078
  const d5 = class d5 extends c {
2074
2079
  constructor() {
2075
2080
  super(...arguments), this.alignment = "left", this.lastActiveValue = "", this.resizeObserver = null;
@@ -2116,7 +2121,7 @@ const d5 = class d5 extends c {
2116
2121
  d5.styles = h`
2117
2122
  :host { display: block; font-family: var(--font-sans); }
2118
2123
  .tabs-list {
2119
- display: flex; font-weight: 500; background-color: var(--color-gray-0);
2124
+ display: flex; background-color: var(--color-gray-0);
2120
2125
  border-bottom: 1px solid var(--color-gray-3); white-space: nowrap; overflow: hidden;
2121
2126
  padding: 0 4px; position: relative; gap: 8px;
2122
2127
  }
@@ -2129,10 +2134,10 @@ d5.styles = h`
2129
2134
  }
2130
2135
  `;
2131
2136
  let t1 = d5;
2132
- m([
2137
+ b([
2133
2138
  r()
2134
2139
  ], t1.prototype, "alignment");
2135
- m([
2140
+ b([
2136
2141
  N1(".tabs-list__indicator")
2137
2142
  ], t1.prototype, "indicator");
2138
2143
  const c5 = class c5 extends c {
@@ -2173,7 +2178,7 @@ c5.styles = h`
2173
2178
  :host { display: inline-block; font-family: var(--font-sans); }
2174
2179
  .tab-trigger {
2175
2180
  cursor: pointer; background: none; border: none; display: block;
2176
- font-family: var(--font-sans); font-size: 13px; line-height: 20px;
2181
+ font-family: var(--font-sans); font-size: 13px; font-weight: 500; line-height: 20px;
2177
2182
  padding: 4px 0 6px;
2178
2183
  }
2179
2184
  .tab-trigger__content { padding: 8px 12px; border-radius: 4px; display: flex; align-items: center; gap: 8px; }
@@ -2193,22 +2198,22 @@ c5.styles = h`
2193
2198
  }
2194
2199
  `;
2195
2200
  let R = c5;
2196
- m([
2201
+ b([
2197
2202
  r()
2198
2203
  ], R.prototype, "value");
2199
- m([
2204
+ b([
2200
2205
  r({ attribute: "start-icon" })
2201
2206
  ], R.prototype, "startIcon");
2202
- m([
2207
+ b([
2203
2208
  r({ type: Boolean })
2204
2209
  ], R.prototype, "disabled");
2205
- m([
2210
+ b([
2206
2211
  r({ type: Boolean, attribute: "show-badge" })
2207
2212
  ], R.prototype, "showBadge");
2208
- m([
2213
+ b([
2209
2214
  r({ attribute: "badge-count" })
2210
2215
  ], R.prototype, "badgeCount");
2211
- m([
2216
+ b([
2212
2217
  H1()
2213
2218
  ], R.prototype, "isActive");
2214
2219
  const u5 = class u5 extends c {
@@ -2223,26 +2228,30 @@ const u5 = class u5 extends c {
2223
2228
  this.isActive = l.detail === this.value;
2224
2229
  });
2225
2230
  }
2231
+ updated(e) {
2232
+ e.has("isActive") && this.toggleAttribute("active", this.isActive);
2233
+ }
2226
2234
  render() {
2227
2235
  return d`
2228
2236
  <div class="tab-content" role="tabpanel" tabindex="0" part="tab-content">
2229
- ${this.isActive ? d`<slot></slot>` : p}
2237
+ <slot></slot>
2230
2238
  </div>
2231
2239
  `;
2232
2240
  }
2233
2241
  };
2234
2242
  u5.styles = h`
2235
- :host { display: block; font-family: var(--font-sans); }
2236
- .tab-content { width: 100%; }
2243
+ :host { display: block; font-family: var(--font-sans); flex: var(--_tab-fill-flex, 0 0 auto); min-height: 0; }
2244
+ :host(:not([active])) { display: none; }
2245
+ .tab-content { width: 100%; height: var(--_tab-fill-height, auto); overflow-x: hidden; overflow-y: auto; }
2237
2246
  `;
2238
2247
  let o1 = u5;
2239
- m([
2248
+ b([
2240
2249
  r()
2241
2250
  ], o1.prototype, "value");
2242
- m([
2251
+ b([
2243
2252
  H1()
2244
2253
  ], o1.prototype, "isActive");
2245
- customElements.get("anduin-tabs") || customElements.define("anduin-tabs", e1);
2254
+ customElements.get("anduin-tabs") || customElements.define("anduin-tabs", I);
2246
2255
  customElements.get("anduin-tabs-list") || customElements.define("anduin-tabs-list", t1);
2247
2256
  customElements.get("anduin-tab-trigger") || customElements.define("anduin-tab-trigger", R);
2248
2257
  customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content", o1);
@@ -2364,16 +2373,16 @@ p5.styles = h`
2364
2373
  .tag--custom-yellow-green { color: var(--color-gray-9); background-color: rgb(174,207,85); }
2365
2374
  .tag--custom-yellow-orange { color: var(--color-gray-9); background-color: rgb(255,193,107); }
2366
2375
  `;
2367
- let I = p5;
2376
+ let N = p5;
2368
2377
  U1([
2369
2378
  r()
2370
- ], I.prototype, "variant");
2379
+ ], N.prototype, "variant");
2371
2380
  U1([
2372
2381
  r()
2373
- ], I.prototype, "icon");
2382
+ ], N.prototype, "icon");
2374
2383
  U1([
2375
2384
  r({ type: Boolean })
2376
- ], I.prototype, "disabled");
2385
+ ], N.prototype, "disabled");
2377
2386
  const h5 = class h5 extends c {
2378
2387
  onClick() {
2379
2388
  this.dispatchEvent(new CustomEvent(r4, { bubbles: !0, composed: !0 }));
@@ -2397,7 +2406,7 @@ h5.styles = h`
2397
2406
  .tag-close__button:active { opacity: 0.5; }
2398
2407
  `;
2399
2408
  let w1 = h5;
2400
- customElements.get("anduin-tag") || customElements.define("anduin-tag", I);
2409
+ customElements.get("anduin-tag") || customElements.define("anduin-tag", N);
2401
2410
  customElements.get("anduin-tag-close") || customElements.define("anduin-tag-close", w1);
2402
2411
  var d4 = Object.defineProperty, o2 = (C, e, t, l) => {
2403
2412
  for (var o = void 0, i = C.length - 1, n; i >= 0; i--)
@@ -2474,11 +2483,11 @@ function u4(C, e, t, l = 8) {
2474
2483
  const c2 = Math.abs(g.off.left - u.left) + Math.abs(g.off.top - u.top), u2 = Math.abs(V.off.left - u.left) + Math.abs(V.off.top - u.top);
2475
2484
  return c2 - u2;
2476
2485
  });
2477
- const { p: v, off: b } = L[0];
2486
+ const { p: v, off: m } = L[0];
2478
2487
  return {
2479
2488
  placement: v,
2480
- left: Math.round(Math.min(Math.max(b.left, 0), o - a)),
2481
- top: Math.round(Math.min(Math.max(b.top, 0), i - s))
2489
+ left: Math.round(Math.min(Math.max(m.left, 0), o - a)),
2490
+ top: Math.round(Math.min(Math.max(m.top, 0), i - s))
2482
2491
  };
2483
2492
  }
2484
2493
  function $1(C) {
@@ -3058,49 +3067,49 @@ V5.styles = h`
3058
3067
  anduin-icon { color: var(--color-gray-7); }
3059
3068
  .menu-item--danger anduin-icon { color: var(--color-danger-4); }
3060
3069
  `;
3061
- let N = V5;
3070
+ let T = V5;
3062
3071
  a1([
3063
3072
  r()
3064
- ], N.prototype, "icon");
3073
+ ], T.prototype, "icon");
3065
3074
  a1([
3066
3075
  r()
3067
- ], N.prototype, "variant");
3076
+ ], T.prototype, "variant");
3068
3077
  a1([
3069
3078
  r({ type: Boolean })
3070
- ], N.prototype, "disabled");
3079
+ ], T.prototype, "disabled");
3071
3080
  customElements.get("anduin-menu") || customElements.define("anduin-menu", i1);
3072
- customElements.get("anduin-menu-item") || customElements.define("anduin-menu-item", N);
3081
+ customElements.get("anduin-menu-item") || customElements.define("anduin-menu-item", T);
3073
3082
  if (typeof document < "u" && !document.getElementById("acl-tokens")) {
3074
3083
  const C = document.createElement("style");
3075
3084
  C.id = "acl-tokens", C.textContent = p2, document.head.appendChild(C);
3076
3085
  }
3077
3086
  export {
3078
3087
  u1 as AnduinBadge,
3079
- K as AnduinBadgeCount,
3088
+ F as AnduinBadgeCount,
3080
3089
  f as AnduinButton,
3081
3090
  p1 as AnduinCallout,
3082
3091
  k as AnduinCheckbox,
3083
- F as AnduinDivider,
3092
+ J as AnduinDivider,
3084
3093
  h1 as AnduinDot,
3085
3094
  L1 as AnduinField,
3086
3095
  _1 as AnduinFieldDescription,
3087
3096
  x1 as AnduinFieldError,
3088
3097
  k1 as AnduinFieldGroup,
3089
- Q as AnduinFieldLabel,
3090
- X as AnduinIcon,
3098
+ e1 as AnduinFieldLabel,
3099
+ K as AnduinIcon,
3091
3100
  M as AnduinInput,
3092
3101
  v1 as AnduinLoadingState,
3093
3102
  i1 as AnduinMenu,
3094
- N as AnduinMenuItem,
3103
+ T as AnduinMenuItem,
3095
3104
  C1 as AnduinPopover,
3096
- J as AnduinProgress,
3105
+ Q as AnduinProgress,
3097
3106
  y as AnduinSkeleton,
3098
- W as AnduinSpinner,
3107
+ X as AnduinSpinner,
3099
3108
  o1 as AnduinTabContent,
3100
3109
  R as AnduinTabTrigger,
3101
- e1 as AnduinTabs,
3110
+ I as AnduinTabs,
3102
3111
  t1 as AnduinTabsList,
3103
- I as AnduinTag,
3112
+ N as AnduinTag,
3104
3113
  w1 as AnduinTagClose,
3105
3114
  Z as AnduinTextarea,
3106
3115
  l1 as AnduinTooltip,
package/dist/react.d.ts CHANGED
@@ -179,12 +179,39 @@ declare module 'react' {
179
179
  status?: string
180
180
  }
181
181
 
182
+ // ── anduin-popover ────────────────────────────────────────────────────
183
+ 'anduin-popover': Base & {
184
+ /** Whether the panel is open (default: false) */
185
+ open?: boolean | string
186
+ /** 'bottom-start' | 'bottom' | 'bottom-end' | 'top-start' | 'top' | 'top-end' (default: 'bottom-start') */
187
+ placement?: string
188
+ }
189
+
190
+ // ── anduin-menu ───────────────────────────────────────────────────────
191
+ 'anduin-menu': Base & {
192
+ /** Whether the menu is open (default: false) */
193
+ open?: boolean | string
194
+ /** 'bottom-start' | 'bottom' | 'bottom-end' | 'top-start' | 'top' | 'top-end' (default: 'bottom-start') */
195
+ placement?: string
196
+ }
197
+
198
+ // ── anduin-menu-item ──────────────────────────────────────────────────
199
+ 'anduin-menu-item': Base & {
200
+ /** anduin-icon name shown before the label */
201
+ icon?: string
202
+ /** 'default' | 'danger' (default: 'default') */
203
+ variant?: 'default' | 'danger'
204
+ disabled?: boolean | string
205
+ }
206
+
182
207
  // ── anduin-tabs ───────────────────────────────────────────────────────
183
208
  'anduin-tabs': Base & {
184
209
  /** Initially active tab value */
185
210
  'default-value'?: string
186
211
  /** Controlled active tab value */
187
212
  value?: string
213
+ /** Stretch tabs + active panel to fill parent height */
214
+ fill?: boolean | string
188
215
  }
189
216
 
190
217
  // ── anduin-tabs-list ──────────────────────────────────────────────────
@@ -200,6 +227,10 @@ declare module 'react' {
200
227
  /** anduin-icon name */
201
228
  'start-icon'?: string
202
229
  disabled?: boolean | string
230
+ /** Show a count badge on the trigger */
231
+ 'show-badge'?: boolean | string
232
+ /** Text shown inside the badge */
233
+ 'badge-count'?: string
203
234
  }
204
235
 
205
236
  // ── anduin-tab-content ────────────────────────────────────────────────
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duyluonganduin/acl-web-components",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "type": "module",
5
5
  "main": "./dist/acl-web-components.cjs",
6
6
  "module": "./dist/acl-web-components.js",