@ptlm-azulejo/tag 0.1.0 → 0.1.1-alpha.262

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 ADDED
@@ -0,0 +1,18 @@
1
+ # Change Log
2
+
3
+ ## 0.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 9b1ef57: Declare the MIT license in each package's `package.json` (matching the repo `LICENSE.md`).
8
+
9
+ ## 0.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 2d3e3ab: Add `AzTag` (`@ptlm-azulejo/tag`) aligned with Mozaic `MTag`: informative, interactive, contextualised, removable, and selectable types, with sizes, `v-model`, `remove-tag`, an `iconClass` prop for `@ptlm-azulejo/icons` glyphs, and a `:ui` escape hatch. Props are a discriminated union on `type`, so TypeScript requires `id` and `name` for selectable tags and `id` for removable tags.
14
+
15
+ Themes gain shared disabled tokens (`--color-background-disabled`, `--color-text-disabled`) and brand tag color tokens (`--color-tag-*`) so tags follow `.preset-lm` / `.preset-adeo` and light/dark at runtime.
16
+
17
+ All notable changes to this project will be documented in this file.
18
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAClD,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA"}
package/dist/index.js CHANGED
@@ -2,21 +2,15 @@ import { computed as A, createCommentVNode as pe, createElementBlock as N, creat
2
2
  import "@ptlm-azulejo/icons/style.css";
3
3
  function Ve(e) {
4
4
  var o, r, t = "";
5
- if (typeof e == "string" || typeof e == "number")
6
- t += e;
7
- else if (typeof e == "object")
8
- if (Array.isArray(e)) {
9
- var a = e.length;
10
- for (o = 0; o < a; o++)
11
- e[o] && (r = Ve(e[o])) && (t && (t += " "), t += r);
12
- } else
13
- for (r in e)
14
- e[r] && (t && (t += " "), t += r);
5
+ if (typeof e == "string" || typeof e == "number") t += e;
6
+ else if (typeof e == "object") if (Array.isArray(e)) {
7
+ var a = e.length;
8
+ for (o = 0; o < a; o++) e[o] && (r = Ve(e[o])) && (t && (t += " "), t += r);
9
+ } else for (r in e) e[r] && (t && (t += " "), t += r);
15
10
  return t;
16
11
  }
17
12
  function Ze() {
18
- for (var e, o, r = 0, t = "", a = arguments.length; r < a; r++)
19
- (e = arguments[r]) && (o = Ve(e)) && (t && (t += " "), t += o);
13
+ for (var e, o, r = 0, t = "", a = arguments.length; r < a; r++) (e = arguments[r]) && (o = Ve(e)) && (t && (t += " "), t += o);
20
14
  return t;
21
15
  }
22
16
  function H(e) {
@@ -28,13 +22,11 @@ function H(e) {
28
22
  }, H(e);
29
23
  }
30
24
  function er(e, o) {
31
- if (H(e) != "object" || !e)
32
- return e;
25
+ if (H(e) != "object" || !e) return e;
33
26
  var r = e[Symbol.toPrimitive];
34
27
  if (r !== void 0) {
35
28
  var t = r.call(e, o || "default");
36
- if (H(t) != "object")
37
- return t;
29
+ if (H(t) != "object") return t;
38
30
  throw new TypeError("@@toPrimitive must return a primitive value.");
39
31
  }
40
32
  return (o === "string" ? String : Number)(e);
@@ -74,10 +66,8 @@ function tr(e) {
74
66
  }
75
67
  var ar = (e, o) => {
76
68
  const r = new Array(e.length + o.length);
77
- for (let t = 0; t < e.length; t++)
78
- r[t] = e[t];
79
- for (let t = 0; t < o.length; t++)
80
- r[e.length + t] = o[t];
69
+ for (let t = 0; t < e.length; t++) r[t] = e[t];
70
+ for (let t = 0; t < o.length; t++) r[e.length + t] = o[t];
81
71
  return r;
82
72
  }, sr = (e, o) => ({
83
73
  classGroupId: e,
@@ -90,8 +80,7 @@ var ar = (e, o) => {
90
80
  const o = cr(e), { conflictingClassGroups: r, conflictingClassGroupModifiers: t } = e;
91
81
  return {
92
82
  getClassGroupId: (c) => {
93
- if (c.startsWith("[") && c.endsWith("]"))
94
- return ir(c);
83
+ if (c.startsWith("[") && c.endsWith("]")) return ir(c);
95
84
  const p = c.split(ie), b = p[0] === "" && p.length > 1 ? 1 : 0;
96
85
  return We(p, b, o);
97
86
  },
@@ -104,22 +93,18 @@ var ar = (e, o) => {
104
93
  }
105
94
  };
106
95
  }, We = (e, o, r) => {
107
- if (e.length - o === 0)
108
- return r.classGroupId;
96
+ if (e.length - o === 0) return r.classGroupId;
109
97
  const t = e[o], a = r.nextPart.get(t);
110
98
  if (a) {
111
99
  const b = We(e, o + 1, a);
112
- if (b)
113
- return b;
100
+ if (b) return b;
114
101
  }
115
102
  const l = r.validators;
116
- if (l === null)
117
- return;
103
+ if (l === null) return;
118
104
  const c = o === 0 ? e.join(ie) : e.slice(o).join(ie), p = l.length;
119
105
  for (let b = 0; b < p; b++) {
120
106
  const u = l[b];
121
- if (u.validator(c))
122
- return u.classGroupId;
107
+ if (u.validator(c)) return u.classGroupId;
123
108
  }
124
109
  }, ir = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
125
110
  const o = e.slice(1, -1), r = o.indexOf(":"), t = o.slice(0, r);
@@ -175,13 +160,12 @@ var ar = (e, o) => {
175
160
  }
176
161
  return r;
177
162
  }, fr = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, gr = (e) => {
178
- if (e < 1)
179
- return {
180
- get: () => {
181
- },
182
- set: () => {
183
- }
184
- };
163
+ if (e < 1) return {
164
+ get: () => {
165
+ },
166
+ set: () => {
167
+ }
168
+ };
185
169
  let o = 0, r = /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null);
186
170
  const a = (l, c) => {
187
171
  r[l] = c, o++, o > e && (o = 0, t = r, r = /* @__PURE__ */ Object.create(null));
@@ -189,8 +173,7 @@ var ar = (e, o) => {
189
173
  return {
190
174
  get(l) {
191
175
  let c = r[l];
192
- if (c !== void 0)
193
- return c;
176
+ if (c !== void 0) return c;
194
177
  if ((c = t[l]) !== void 0)
195
178
  return a(l, c), c;
196
179
  },
@@ -262,9 +245,7 @@ var ar = (e, o) => {
262
245
  postfixLookupClassGroupIds: kr(e)
263
246
  }, lr(e)), kr = (e) => {
264
247
  const o = /* @__PURE__ */ Object.create(null), r = e.postfixLookupClassGroups;
265
- if (r)
266
- for (let t = 0; t < r.length; t++)
267
- o[r[t]] = !0;
248
+ if (r) for (let t = 0; t < r.length; t++) o[r[t]] = !0;
268
249
  return o;
269
250
  }, wr = /\s+/, zr = (e, o) => {
270
251
  const { parseClassName: r, getClassGroupId: t, getConflictingClassGroupIds: a, sortModifiers: l, postfixLookupClassGroupIds: c } = o, p = [], b = e.trim().split(wr);
@@ -280,8 +261,7 @@ var ar = (e, o) => {
280
261
  z = t(x.substring(0, G));
281
262
  const I = z && c[z] ? t(x) : void 0;
282
263
  I && I !== z && (z = I, L = !1);
283
- } else
284
- z = t(x);
264
+ } else z = t(x);
285
265
  if (!z) {
286
266
  if (!L) {
287
267
  u = g + (u.length > 0 ? " " + u : u);
@@ -294,8 +274,7 @@ var ar = (e, o) => {
294
274
  L = !1;
295
275
  }
296
276
  const $ = k.length === 0 ? "" : k.length === 1 ? k[0] : l(k).join(":"), W = j ? $ + ge : $, B = W + z;
297
- if (p.indexOf(B) > -1)
298
- continue;
277
+ if (p.indexOf(B) > -1) continue;
299
278
  p.push(B);
300
279
  const f = a(z, L);
301
280
  for (let I = 0; I < f.length; ++I) {
@@ -307,15 +286,12 @@ var ar = (e, o) => {
307
286
  return u;
308
287
  }, Cr = (...e) => {
309
288
  let o = 0, r, t, a = "";
310
- for (; o < e.length; )
311
- (r = e[o++]) && (t = Fe(r)) && (a && (a += " "), a += t);
289
+ for (; o < e.length; ) (r = e[o++]) && (t = Fe(r)) && (a && (a += " "), a += t);
312
290
  return a;
313
291
  }, Fe = (e) => {
314
- if (typeof e == "string")
315
- return e;
292
+ if (typeof e == "string") return e;
316
293
  let o, r = "";
317
- for (let t = 0; t < e.length; t++)
318
- e[t] && (o = Fe(e[t])) && (r && (r += " "), r += o);
294
+ for (let t = 0; t < e.length; t++) e[t] && (o = Fe(e[t])) && (r && (r += " "), r += o);
319
295
  return r;
320
296
  }, Re = (e, ...o) => {
321
297
  let r, t, a, l;
@@ -324,8 +300,7 @@ var ar = (e, o) => {
324
300
  return r = yr(u), t = r.cache.get, a = r.cache.set, l = p, p(b);
325
301
  }, p = (b) => {
326
302
  const u = t(b);
327
- if (u)
328
- return u;
303
+ if (u) return u;
329
304
  const w = zr(b, r);
330
305
  return a(b, w), w;
331
306
  };
@@ -1817,13 +1792,9 @@ var ar = (e, o) => {
1817
1792
  }, Yr = (e, { cacheSize: o, prefix: r, experimentalParseClassName: t, extend: a = {}, override: l = {} }) => (J(e, "cacheSize", o), J(e, "prefix", r), J(e, "experimentalParseClassName", t), ne(e.theme, l.theme), ne(e.classGroups, l.classGroups), ne(e.conflictingClassGroups, l.conflictingClassGroups), ne(e.conflictingClassGroupModifiers, l.conflictingClassGroupModifiers), J(e, "postfixLookupClassGroups", l.postfixLookupClassGroups), J(e, "orderSensitiveModifiers", l.orderSensitiveModifiers), le(e.theme, a.theme), le(e.classGroups, a.classGroups), le(e.conflictingClassGroups, a.conflictingClassGroups), le(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), ve(e, a, "postfixLookupClassGroups"), ve(e, a, "orderSensitiveModifiers"), e), J = (e, o, r) => {
1818
1793
  r !== void 0 && (e[o] = r);
1819
1794
  }, ne = (e, o) => {
1820
- if (o)
1821
- for (const r in o)
1822
- J(e, r, o[r]);
1795
+ if (o) for (const r in o) J(e, r, o[r]);
1823
1796
  }, le = (e, o) => {
1824
- if (o)
1825
- for (const r in o)
1826
- ve(e, o, r);
1797
+ if (o) for (const r in o) ve(e, o, r);
1827
1798
  }, ve = (e, o, r) => {
1828
1799
  const t = o[r];
1829
1800
  t !== void 0 && (e[r] = e[r] ? e[r].concat(t) : t);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"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AAgB;SACjB,MAAM;IACX,uCAAuC;2BAChB,MAAM;IAC7B,iCAAiC;eACtB,OAAO;WACX,MAAM;;IAGb;;OAEG;WACI,aAAa,GAAG,aAAa;SAC/B,MAAM;IACX,iCAAiC;eACtB,OAAO;WACX,MAAM;;;;kFAiWnB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@ptlm-azulejo/tag",
3
- "version": "0.1.0",
3
+ "version": "0.1.1-alpha.262",
4
+ "license": "MIT",
4
5
  "type": "module",
5
6
  "main": "./dist/index.umd.cjs",
6
7
  "module": "./dist/index.js",
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAClD,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../../src/index.vue"],"names":[],"mappings":"AAiWA,OAAO,+BAA+B,CAAA;AAEtC,MAAM,MAAM,OAAO,GAAG,aAAa,GAAG,aAAa,GAAG,gBAAgB,GAAG,WAAW,GAAG,YAAY,CAAA;AAEnG,MAAM,MAAM,OAAO,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAA;AAErC,MAAM,WAAW,KAAK;IACpB,+BAA+B;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,uCAAuC;IACvC,MAAM,CAAC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