@skewedaspect/sleekspace-ui 0.9.1 → 0.10.0

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.
Files changed (200) hide show
  1. package/dist/components/Accordion/context.d.ts +4 -0
  2. package/dist/components/Autocomplete/SkAutocomplete.vue.d.ts +87 -0
  3. package/dist/components/Autocomplete/SkAutocompleteEmpty.vue.d.ts +17 -0
  4. package/dist/components/Autocomplete/SkAutocompleteGroup.vue.d.ts +17 -0
  5. package/dist/components/Autocomplete/SkAutocompleteGroupLabel.vue.d.ts +17 -0
  6. package/dist/components/Autocomplete/SkAutocompleteItem.vue.d.ts +39 -0
  7. package/dist/components/Autocomplete/SkAutocompleteSeparator.vue.d.ts +2 -0
  8. package/dist/components/Autocomplete/index.d.ts +7 -0
  9. package/dist/components/Autocomplete/types.d.ts +3 -0
  10. package/dist/components/Breadcrumbs/context.d.ts +4 -0
  11. package/dist/components/Button/SkButton.vue.d.ts +8 -1
  12. package/dist/components/Button/types.d.ts +2 -0
  13. package/dist/components/Card/SkCard.vue.d.ts +1 -1
  14. package/dist/components/ContextMenu/context.d.ts +3 -0
  15. package/dist/components/Dropdown/SkDropdown.vue.d.ts +1 -1
  16. package/dist/components/Dropdown/context.d.ts +3 -0
  17. package/dist/components/Field/SkField.vue.d.ts +7 -6
  18. package/dist/components/Input/SkInput.vue.d.ts +9 -2
  19. package/dist/components/Input/types.d.ts +2 -0
  20. package/dist/components/InputGroup/SkInputGroup.vue.d.ts +23 -0
  21. package/dist/components/InputGroup/SkInputGroupAddon.vue.d.ts +33 -0
  22. package/dist/components/InputGroup/types.d.ts +13 -0
  23. package/dist/components/NumberInput/SkNumberInput.vue.d.ts +7 -1
  24. package/dist/components/NumberInput/types.d.ts +2 -0
  25. package/dist/components/Pagination/context.d.ts +5 -0
  26. package/dist/components/Panel/SkPanel.vue.d.ts +1 -1
  27. package/dist/components/Panel/types.d.ts +2 -1
  28. package/dist/components/Radio/context.d.ts +4 -0
  29. package/dist/components/Select/SkSelect.vue.d.ts +7 -1
  30. package/dist/components/Select/types.d.ts +2 -0
  31. package/dist/components/Sidebar/SkSidebar.vue.d.ts +1 -1
  32. package/dist/components/Tabs/context.d.ts +6 -0
  33. package/dist/components/Textarea/SkTextarea.vue.d.ts +1 -1
  34. package/dist/components/Tooltip/SkTooltip.vue.d.ts +1 -1
  35. package/dist/composables/injectionKeys.d.ts +9 -0
  36. package/dist/global.d.ts +4 -0
  37. package/dist/index.d.ts +18 -0
  38. package/dist/sleekspace-ui.css +831 -277
  39. package/dist/sleekspace-ui.es.js +3693 -2514
  40. package/dist/sleekspace-ui.umd.js +3700 -2513
  41. package/dist/static/components/alert.d.ts +2 -1
  42. package/dist/static/components/avatar.d.ts +2 -1
  43. package/dist/static/components/breadcrumbs.d.ts +2 -1
  44. package/dist/static/components/button.d.ts +4 -2
  45. package/dist/static/components/card.d.ts +2 -1
  46. package/dist/static/components/checkbox.d.ts +2 -1
  47. package/dist/static/components/colorPicker.d.ts +2 -1
  48. package/dist/static/components/divider.d.ts +2 -1
  49. package/dist/static/components/dropdown.d.ts +2 -1
  50. package/dist/static/components/field.d.ts +2 -1
  51. package/dist/static/components/group.d.ts +2 -1
  52. package/dist/static/components/input.d.ts +4 -2
  53. package/dist/static/components/inputGroup.d.ts +8 -0
  54. package/dist/static/components/inputGroupAddon.d.ts +7 -0
  55. package/dist/static/components/navBar.d.ts +2 -1
  56. package/dist/static/components/numberInput.d.ts +4 -2
  57. package/dist/static/components/page.d.ts +2 -1
  58. package/dist/static/components/pagination.d.ts +2 -1
  59. package/dist/static/components/panel.d.ts +2 -1
  60. package/dist/static/components/progress.d.ts +2 -1
  61. package/dist/static/components/radio.d.ts +2 -1
  62. package/dist/static/components/select.d.ts +4 -2
  63. package/dist/static/components/sidebar.d.ts +2 -1
  64. package/dist/static/components/skeleton.d.ts +2 -1
  65. package/dist/static/components/slider.d.ts +2 -1
  66. package/dist/static/components/spinner.d.ts +2 -1
  67. package/dist/static/components/switchInput.d.ts +2 -1
  68. package/dist/static/components/table.d.ts +2 -1
  69. package/dist/static/components/tag.d.ts +2 -1
  70. package/dist/static/components/tagsInput.d.ts +2 -1
  71. package/dist/static/components/textarea.d.ts +2 -1
  72. package/dist/static/components/toolbar.d.ts +2 -1
  73. package/dist/static/components/tooltip.d.ts +2 -1
  74. package/dist/static/h.d.ts +2 -0
  75. package/dist/static/index.cjs.js +1 -1
  76. package/dist/static/index.d.ts +6 -0
  77. package/dist/static/index.es.js +366 -216
  78. package/dist/static/render.d.ts +2 -1
  79. package/dist/static/stringH.d.ts +2 -0
  80. package/dist/static/types.d.ts +5 -0
  81. package/dist/tailwind.css +222 -0
  82. package/dist/tokens.css +0 -223
  83. package/dist/types/corners.d.ts +1 -0
  84. package/llms-full.txt +14 -9
  85. package/package.json +6 -3
  86. package/src/components/Accordion/SkAccordion.vue +5 -2
  87. package/src/components/Accordion/SkAccordionItem.vue +7 -4
  88. package/src/components/Accordion/context.ts +23 -0
  89. package/src/components/Autocomplete/SkAutocomplete.test.ts +83 -0
  90. package/src/components/Autocomplete/SkAutocomplete.vue +305 -0
  91. package/src/components/Autocomplete/SkAutocompleteEmpty.vue +39 -0
  92. package/src/components/Autocomplete/SkAutocompleteGroup.vue +46 -0
  93. package/src/components/Autocomplete/SkAutocompleteGroupLabel.vue +39 -0
  94. package/src/components/Autocomplete/SkAutocompleteItem.vue +85 -0
  95. package/src/components/Autocomplete/SkAutocompleteSeparator.vue +39 -0
  96. package/src/components/Autocomplete/index.ts +13 -0
  97. package/src/components/Autocomplete/types.ts +10 -0
  98. package/src/components/Breadcrumbs/SkBreadcrumbItem.vue +8 -3
  99. package/src/components/Breadcrumbs/SkBreadcrumbSeparator.vue +8 -2
  100. package/src/components/Breadcrumbs/SkBreadcrumbs.vue +5 -2
  101. package/src/components/Breadcrumbs/context.ts +20 -0
  102. package/src/components/Button/SkButton.vue +46 -6
  103. package/src/components/Button/types.ts +6 -0
  104. package/src/components/ColorPicker/SkColorPicker.vue +27 -5
  105. package/src/components/ContextMenu/SkContextMenu.vue +4 -1
  106. package/src/components/ContextMenu/SkContextMenuSubmenu.vue +5 -2
  107. package/src/components/ContextMenu/context.ts +17 -0
  108. package/src/components/Dropdown/SkDropdown.vue +2 -1
  109. package/src/components/Dropdown/SkDropdownSubmenu.vue +4 -3
  110. package/src/components/Dropdown/context.ts +16 -0
  111. package/src/components/Field/SkField.test.ts +88 -0
  112. package/src/components/Field/SkField.vue +15 -7
  113. package/src/components/Input/SkInput.test.ts +61 -0
  114. package/src/components/Input/SkInput.vue +42 -7
  115. package/src/components/Input/types.ts +2 -0
  116. package/src/components/InputGroup/SkInputGroup.test.ts +171 -0
  117. package/src/components/InputGroup/SkInputGroup.vue +131 -0
  118. package/src/components/InputGroup/SkInputGroupAddon.test.ts +104 -0
  119. package/src/components/InputGroup/SkInputGroupAddon.vue +107 -0
  120. package/src/components/InputGroup/types.ts +27 -0
  121. package/src/components/Listbox/SkListbox.vue +27 -6
  122. package/src/components/NumberInput/SkNumberInput.vue +39 -7
  123. package/src/components/NumberInput/types.ts +2 -0
  124. package/src/components/Pagination/SkPagination.vue +6 -3
  125. package/src/components/Pagination/SkPaginationItem.vue +8 -5
  126. package/src/components/Pagination/context.ts +19 -0
  127. package/src/components/Panel/types.ts +3 -2
  128. package/src/components/Radio/SkRadio.vue +6 -3
  129. package/src/components/Radio/SkRadioGroup.vue +4 -2
  130. package/src/components/Radio/context.ts +17 -0
  131. package/src/components/Select/SkSelect.vue +39 -7
  132. package/src/components/Select/types.ts +2 -0
  133. package/src/components/Tabs/SkTab.vue +4 -2
  134. package/src/components/Tabs/SkTabList.vue +4 -2
  135. package/src/components/Tabs/SkTabs.vue +5 -3
  136. package/src/components/Tabs/context.ts +19 -0
  137. package/src/components/TagsInput/SkTagsInput.vue +28 -7
  138. package/src/components/Textarea/SkTextarea.vue +27 -6
  139. package/src/composables/injectionKeys.ts +52 -0
  140. package/src/index.ts +28 -0
  141. package/src/static/__tests__/parity.test.ts +2 -1
  142. package/src/static/__tests__/parityHarness.ts +5 -2
  143. package/src/static/components/__tests__/helpers.test.ts +191 -99
  144. package/src/static/components/alert.ts +12 -11
  145. package/src/static/components/avatar.ts +15 -16
  146. package/src/static/components/breadcrumbs.ts +3 -2
  147. package/src/static/components/button.ts +23 -27
  148. package/src/static/components/card.ts +3 -2
  149. package/src/static/components/checkbox.ts +11 -14
  150. package/src/static/components/colorPicker.ts +7 -9
  151. package/src/static/components/divider.ts +4 -3
  152. package/src/static/components/dropdown.ts +15 -6
  153. package/src/static/components/field.ts +32 -15
  154. package/src/static/components/group.ts +3 -2
  155. package/src/static/components/input.ts +20 -15
  156. package/src/static/components/inputGroup.ts +30 -0
  157. package/src/static/components/inputGroupAddon.ts +29 -0
  158. package/src/static/components/navBar.ts +30 -17
  159. package/src/static/components/numberInput.ts +17 -17
  160. package/src/static/components/page.ts +3 -2
  161. package/src/static/components/pagination.ts +3 -2
  162. package/src/static/components/panel.ts +3 -2
  163. package/src/static/components/progress.ts +3 -2
  164. package/src/static/components/radio.ts +14 -20
  165. package/src/static/components/select.ts +18 -15
  166. package/src/static/components/sidebar.ts +9 -13
  167. package/src/static/components/skeleton.ts +7 -10
  168. package/src/static/components/slider.ts +7 -9
  169. package/src/static/components/spinner.ts +22 -22
  170. package/src/static/components/switchInput.ts +12 -14
  171. package/src/static/components/table.ts +8 -10
  172. package/src/static/components/tag.ts +17 -11
  173. package/src/static/components/tagsInput.ts +3 -3
  174. package/src/static/components/textarea.ts +8 -13
  175. package/src/static/components/toolbar.ts +7 -10
  176. package/src/static/components/tooltip.ts +3 -2
  177. package/src/static/generated/defaults.ts +24 -9
  178. package/src/static/generated/propTypes.ts +18 -2
  179. package/src/static/h.ts +16 -0
  180. package/src/static/index.ts +8 -0
  181. package/src/static/render.test.ts +14 -10
  182. package/src/static/render.ts +33 -18
  183. package/src/static/specs.test.ts +1 -0
  184. package/src/static/specs.ts +22 -2
  185. package/src/static/stringH.ts +104 -0
  186. package/src/static/types.ts +25 -0
  187. package/src/styles/components/_autocomplete.scss +498 -0
  188. package/src/styles/components/_button.scss +55 -6
  189. package/src/styles/components/_index.scss +2 -0
  190. package/src/styles/components/_input-group.scss +292 -0
  191. package/src/styles/components/_input.scss +57 -9
  192. package/src/styles/components/_number-input.scss +84 -18
  193. package/src/styles/components/_select.scss +56 -9
  194. package/src/styles/mixins/_cut-border.scss +83 -0
  195. package/src/styles/tailwind.scss +262 -0
  196. package/src/styles/tokens.scss +8 -255
  197. package/src/types/corners.ts +10 -0
  198. package/src/utils/slots.test.ts +89 -0
  199. package/src/utils/slots.ts +6 -1
  200. package/web-types.json +382 -12
@@ -25,21 +25,59 @@ function r(e, t) {
25
25
  }
26
26
  //#endregion
27
27
  //#region src/static/render.ts
28
- function i(t, n, i) {
29
- let a = [`class="${e(r(t.classSpec, n))}"`];
30
- if (t.tag === "button" && a.push("type=\"button\""), t.extraAttrs) for (let [n, r] of Object.entries(t.extraAttrs)) a.push(`${n}="${e(r)}"`);
31
- let o = [];
32
- if (t.customColorVars) {
33
- let { base: r, text: i } = t.customColorVars;
34
- r && typeof n.baseColor == "string" && o.push(`${r}: ${e(n.baseColor)};`), i && typeof n.textColor == "string" && o.push(`${i}: ${e(n.textColor)};`);
28
+ function i(e, t) {
29
+ let n = { class: r(e.classSpec, t) };
30
+ if (e.tag === "button" && (n.type = "button"), e.extraAttrs) for (let [t, r] of Object.entries(e.extraAttrs)) n[t] = r;
31
+ if (e.customColorVars) {
32
+ let r = [], { base: i, text: a } = e.customColorVars;
33
+ i && typeof t.baseColor == "string" && r.push(`${i}: ${t.baseColor};`), a && typeof t.textColor == "string" && r.push(`${a}: ${t.textColor};`), r.length > 0 && (n.style = r.join(" "));
35
34
  }
36
- o.length > 0 && a.push(`style="${o.join(" ")}"`);
37
- let s = a.join(" ");
38
- return t.void ? `<${t.tag} ${s} />` : `<${t.tag} ${s}>${i}</${t.tag}>`;
35
+ return n;
36
+ }
37
+ function a(e, t, n, r) {
38
+ let a = i(t, n);
39
+ return t.void ? e(t.tag, a) : e(t.tag, a, r);
40
+ }
41
+ //#endregion
42
+ //#region src/static/stringH.ts
43
+ var o = new Set([
44
+ "area",
45
+ "base",
46
+ "br",
47
+ "col",
48
+ "embed",
49
+ "hr",
50
+ "img",
51
+ "input",
52
+ "keygen",
53
+ "link",
54
+ "meta",
55
+ "param",
56
+ "progress",
57
+ "source",
58
+ "track",
59
+ "wbr"
60
+ ]);
61
+ function s(t, n) {
62
+ return n == null || n === !1 ? null : n === !0 ? t : `${t}="${e(String(n))}"`;
63
+ }
64
+ function c(e) {
65
+ if (!e) return "";
66
+ let t = [];
67
+ for (let [n, r] of Object.entries(e)) {
68
+ let e = s(n, r);
69
+ e !== null && t.push(e);
70
+ }
71
+ return t.length > 0 ? ` ${t.join(" ")}` : "";
39
72
  }
40
- //#endregion
41
- //#region src/static/specs.ts
42
- var a = {
73
+ var l = (e, t, n) => {
74
+ if (t && typeof t.innerHTML == "string") {
75
+ let n = t.innerHTML, r = { ...t };
76
+ return delete r.innerHTML, `<${e}${c(r)}>${n}</${e}>`;
77
+ }
78
+ let r = c(t), i = n === void 0 || n === "" || Array.isArray(n) && n.length === 0;
79
+ return o.has(e) && i ? `<${e}${r} />` : `<${e}${r}>${n === void 0 ? "" : Array.isArray(n) ? n.join("") : n}</${e}>`;
80
+ }, u = {
43
81
  panel: {
44
82
  tag: "div",
45
83
  classSpec: {
@@ -257,7 +295,11 @@ var a = {
257
295
  classSpec: {
258
296
  base: "sk-input",
259
297
  kind: !0,
260
- size: !0
298
+ size: !0,
299
+ listFlags: [{
300
+ prop: "corners",
301
+ family: "cut"
302
+ }]
261
303
  },
262
304
  void: !0
263
305
  },
@@ -274,7 +316,11 @@ var a = {
274
316
  classSpec: {
275
317
  base: "sk-select",
276
318
  kind: !0,
277
- size: !0
319
+ size: !0,
320
+ listFlags: [{
321
+ prop: "corners",
322
+ family: "cut"
323
+ }]
278
324
  }
279
325
  },
280
326
  slider: {
@@ -300,6 +346,30 @@ var a = {
300
346
  void: !0,
301
347
  extraAttrs: { type: "color" }
302
348
  },
349
+ inputGroup: {
350
+ tag: "div",
351
+ classSpec: {
352
+ base: "sk-input-group",
353
+ kind: !0,
354
+ size: !0,
355
+ listFlags: [{
356
+ prop: "corners",
357
+ family: "cut"
358
+ }]
359
+ },
360
+ customColorVars: {
361
+ base: "--sk-input-group-color-base",
362
+ text: "--sk-input-group-fg"
363
+ }
364
+ },
365
+ inputGroupAddon: {
366
+ tag: "span",
367
+ classSpec: {
368
+ base: "sk-input-group-addon",
369
+ kind: !0,
370
+ size: !0
371
+ }
372
+ },
303
373
  dropdown: {
304
374
  tag: "details",
305
375
  classSpec: {
@@ -311,133 +381,156 @@ var a = {
311
381
  };
312
382
  //#endregion
313
383
  //#region src/static/components/panel.ts
314
- function o(e = {}, t = "") {
315
- return i(a.panel, e, t);
384
+ function d(e, t = {}, n) {
385
+ return a(e, u.panel, t, n);
316
386
  }
317
387
  //#endregion
318
388
  //#region src/static/components/card.ts
319
- function s(e = {}, t = "") {
320
- return i(a.card, e, t);
389
+ function f(e, t = {}, n) {
390
+ return a(e, u.card, t, n);
321
391
  }
322
392
  //#endregion
323
393
  //#region src/static/components/alert.ts
324
- var c = new Set([
394
+ var p = new Set([
325
395
  "info",
326
396
  "success",
327
397
  "warning",
328
398
  "danger"
329
- ]), l = {
399
+ ]), m = {
330
400
  info: "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><circle cx=\"12\" cy=\"12\" r=\"10\"></circle><line x1=\"12\" y1=\"16\" x2=\"12\" y2=\"12\"></line><circle cx=\"12\" cy=\"8\" r=\"0.5\" fill=\"currentColor\"></circle></svg>",
331
401
  success: "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><path d=\"M22 11.08V12a10 10 0 1 1-5.93-9.14\"></path><polyline points=\"22 4 12 14.01 9 11.01\"></polyline></svg>",
332
402
  warning: "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><path d=\"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z\"></path><line x1=\"12\" y1=\"9\" x2=\"12\" y2=\"13\"></line><circle cx=\"12\" cy=\"17\" r=\"0.5\" fill=\"currentColor\"></circle></svg>",
333
403
  danger: "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><circle cx=\"12\" cy=\"12\" r=\"10\"></circle><line x1=\"15\" y1=\"9\" x2=\"9\" y2=\"15\"></line><line x1=\"9\" y1=\"9\" x2=\"15\" y2=\"15\"></line></svg>"
334
404
  };
335
- function u(t = {}, n = "") {
336
- let i = t.kind ?? "info", a = [`class="${e(r({
337
- base: "sk-alert",
338
- kind: !0,
339
- booleanFlags: ["subtle"]
340
- }, {
341
- ...t,
342
- kind: i
343
- }))}"`, "role=\"alert\""], o = [];
344
- typeof t.baseColor == "string" && o.push(`--sk-alert-color-base: ${e(t.baseColor)};`), typeof t.textColor == "string" && o.push(`--sk-alert-fg: ${e(t.textColor)};`), o.length > 0 && a.push(`style="${o.join(" ")}"`);
345
- let s = "";
405
+ function h(e, t = {}, n) {
406
+ let i = t.kind ?? "info", a = {
407
+ class: r({
408
+ base: "sk-alert",
409
+ kind: !0,
410
+ booleanFlags: ["subtle"]
411
+ }, {
412
+ ...t,
413
+ kind: i
414
+ }),
415
+ role: "alert"
416
+ }, o = [];
417
+ typeof t.baseColor == "string" && o.push(`--sk-alert-color-base: ${t.baseColor};`), typeof t.textColor == "string" && o.push(`--sk-alert-fg: ${t.textColor};`), o.length > 0 && (a.style = o.join(" "));
418
+ let s = null;
346
419
  if (t.icon !== !1) {
347
- let e = typeof t.icon == "string" ? t.icon : c.has(i) ? l[i] ?? "" : null;
348
- e !== null && (s = `<div class="sk-alert-icon">${e}</div>`);
420
+ let n = typeof t.icon == "string" ? t.icon : p.has(i) ? m[i] ?? "" : null;
421
+ n !== null && (s = e("div", {
422
+ class: "sk-alert-icon",
423
+ innerHTML: n
424
+ }));
349
425
  }
350
- let u = `<div class="sk-alert-content">${n}</div>`;
351
- return `<div ${a.join(" ")}>${s}${u}</div>`;
426
+ let c = e("div", { class: "sk-alert-content" }, n);
427
+ return e("div", a, s === null ? [c] : [s, c]);
352
428
  }
353
429
  //#endregion
354
430
  //#region src/static/components/divider.ts
355
- function d(t = {}) {
431
+ function g(e, t = {}) {
356
432
  let n = t.orientation ?? "horizontal", r = t.kind ?? "neutral", i = t.size ?? "md", a = [
357
433
  "sk-divider",
358
434
  `sk-${n}`,
359
435
  `sk-${r}`,
360
436
  `sk-${i}`
361
437
  ];
362
- return t.variant === "subtle" && a.push("sk-subtle"), `<hr class="${e(a.join(" "))}" role="separator">`;
438
+ return t.variant === "subtle" && a.push("sk-subtle"), e("hr", {
439
+ class: a.join(" "),
440
+ role: "separator"
441
+ });
363
442
  }
364
443
  //#endregion
365
444
  //#region src/static/components/page.ts
366
- function f(e = {}, t = "") {
367
- return i(a.page, e, t);
445
+ function _(e, t = {}, n) {
446
+ return a(e, u.page, t, n);
368
447
  }
369
448
  //#endregion
370
449
  //#region src/static/components/group.ts
371
- function p(e = {}, t = "") {
372
- return i(a.group, e, t);
450
+ function v(e, t = {}, n) {
451
+ return a(e, u.group, t, n);
373
452
  }
374
453
  //#endregion
375
454
  //#region src/static/components/skeleton.ts
376
- function m(t = {}) {
455
+ function y(e, t = {}) {
377
456
  let n = t.variant ?? "text", r = t.animation ?? "shimmer", i = ["sk-skeleton", `sk-${n}`];
378
457
  r !== "none" && i.push(`sk-${r}`);
379
- let a = [`class="${e(i.join(" "))}"`], o = [], s = t.height ?? ((n === "circular" || n === "square") && t.width ? t.width : void 0);
380
- return typeof t.width == "string" && o.push(`width: ${e(t.width)};`), typeof s == "string" && o.push(`height: ${e(s)};`), o.length > 0 && a.push(`style="${o.join(" ")}"`), `<div ${a.join(" ")}></div>`;
458
+ let a = { class: i.join(" ") }, o = [], s = t.height ?? ((n === "circular" || n === "square") && t.width ? t.width : void 0);
459
+ return typeof t.width == "string" && o.push(`width: ${t.width};`), typeof s == "string" && o.push(`height: ${s};`), o.length > 0 && (a.style = o.join(" ")), e("div", a);
381
460
  }
382
461
  //#endregion
383
462
  //#region src/static/components/progress.ts
384
- function h(e = {}, t = "") {
385
- return i(a.progress, e, t);
463
+ function b(e, t = {}, n) {
464
+ return a(e, u.progress, t, n);
386
465
  }
387
466
  //#endregion
388
467
  //#region src/static/components/spinner.ts
389
- function g(e) {
390
- switch (e) {
391
- case "circular": return "<div class=\"sk-spinner-circular\"><div class=\"sk-arc sk-arc-large\"></div><div class=\"sk-arc sk-arc-small\"></div></div>";
392
- case "dots": return "<div class=\"sk-spinner-dots\"><div class=\"sk-dot\"></div><div class=\"sk-dot\"></div><div class=\"sk-dot\"></div></div>";
393
- case "crosshair": return "<div class=\"sk-crosshair-loader\"></div>";
468
+ function x(e, t) {
469
+ switch (t) {
470
+ case "circular": return e("div", { class: "sk-spinner-circular" }, [e("div", { class: "sk-arc sk-arc-large" }), e("div", { class: "sk-arc sk-arc-small" })]);
471
+ case "dots": return e("div", { class: "sk-spinner-dots" }, [
472
+ e("div", { class: "sk-dot" }),
473
+ e("div", { class: "sk-dot" }),
474
+ e("div", { class: "sk-dot" })
475
+ ]);
476
+ case "crosshair": return e("div", { class: "sk-crosshair-loader" });
394
477
  }
395
478
  }
396
- function _(t = {}) {
397
- let n = t.kind ?? "primary", r = t.size ?? "md", i = t.variant ?? "circular", a = [
398
- `class="${e([
479
+ function S(e, t = {}) {
480
+ let n = t.kind ?? "primary", r = t.size ?? "md", i = t.variant ?? "circular", a = {
481
+ class: [
399
482
  "sk-spinner",
400
483
  `sk-${n}`,
401
484
  `sk-${r}`,
402
485
  `sk-variant-${i}`
403
- ].join(" "))}"`,
404
- "role=\"status\"",
405
- "aria-live=\"polite\"",
406
- "aria-label=\"Loading\""
407
- ];
408
- return typeof t.color == "string" && a.push(`style="--sk-spinner-color: ${e(t.color)};"`), `<div ${a.join(" ")}>${g(i)}</div>`;
486
+ ].join(" "),
487
+ role: "status",
488
+ "aria-live": "polite",
489
+ "aria-label": "Loading"
490
+ };
491
+ return typeof t.color == "string" && (a.style = `--sk-spinner-color: ${t.color};`), e("div", a, x(e, i));
409
492
  }
410
493
  //#endregion
411
494
  //#region src/static/components/navBar.ts
412
- function v(t = {}, n = "") {
495
+ function C(e, t = {}, n) {
413
496
  let i = t.sticky !== !1, a = r({
414
497
  base: "sk-navbar",
415
498
  kind: !0
416
- }, t), o = [`class="${e(i ? `${a} sk-sticky` : a)}"`], s = [];
417
- typeof t.baseColor == "string" && s.push(`--sk-navbar-color-base: ${e(t.baseColor)};`), typeof t.textColor == "string" && s.push(`--sk-navbar-fg: ${e(t.textColor)};`), s.length > 0 && o.push(`style="${s.join(" ")}"`);
418
- let c = "";
419
- t.leading && (c += `<div class="sk-navbar-leading">${t.leading}</div>`), t.brand && (c += `<div class="sk-navbar-brand">${t.brand}</div>`), n && (c += `<div class="sk-navbar-nav">${n}</div>`), t.actions && (c += `<div class="sk-navbar-actions">${t.actions}</div>`);
420
- let l = `<div class="sk-navbar-content">${c}</div>`;
421
- return `<nav ${o.join(" ")}>${l}</nav>`;
499
+ }, t), o = { class: i ? `${a} sk-sticky` : a }, s = [];
500
+ typeof t.baseColor == "string" && s.push(`--sk-navbar-color-base: ${t.baseColor};`), typeof t.textColor == "string" && s.push(`--sk-navbar-fg: ${t.textColor};`), s.length > 0 && (o.style = s.join(" "));
501
+ let c = [];
502
+ return t.leading && c.push(e("div", {
503
+ class: "sk-navbar-leading",
504
+ innerHTML: t.leading
505
+ })), t.brand && c.push(e("div", {
506
+ class: "sk-navbar-brand",
507
+ innerHTML: t.brand
508
+ })), n !== void 0 && (Array.isArray(n) ? n.length > 0 : n) && c.push(e("div", { class: "sk-navbar-nav" }, n)), t.actions && c.push(e("div", {
509
+ class: "sk-navbar-actions",
510
+ innerHTML: t.actions
511
+ })), e("nav", o, e("div", { class: "sk-navbar-content" }, c));
422
512
  }
423
513
  //#endregion
424
514
  //#region src/static/components/toolbar.ts
425
- var y = [
515
+ var w = [
426
516
  "top-left",
427
517
  "top-right",
428
518
  "bottom-right",
429
519
  "bottom-left"
430
520
  ];
431
- function b(t = {}, n = "") {
432
- let r = t.kind, i = t.orientation ?? "horizontal", a = t.corners ?? y, o = ["sk-toolbar"];
521
+ function T(e, t = {}, n) {
522
+ let r = t.kind, i = t.orientation ?? "horizontal", a = t.corners ?? w, o = ["sk-toolbar"];
433
523
  typeof r == "string" && o.push(`sk-${r}`), o.push(`sk-${i}`);
434
524
  for (let e of a) o.push(`sk-cut-${e}`);
435
- let s = [`class="${e(o.join(" "))}"`, "role=\"toolbar\""], c = [];
436
- return typeof t.baseColor == "string" && c.push(`--sk-toolbar-color-base: ${e(t.baseColor)};`), typeof t.textColor == "string" && c.push(`--sk-toolbar-fg: ${e(t.textColor)};`), c.length > 0 && s.push(`style="${c.join(" ")}"`), `<div ${s.join(" ")}>${n}</div>`;
525
+ let s = {
526
+ class: o.join(" "),
527
+ role: "toolbar"
528
+ }, c = [];
529
+ return typeof t.baseColor == "string" && c.push(`--sk-toolbar-color-base: ${t.baseColor};`), typeof t.textColor == "string" && c.push(`--sk-toolbar-fg: ${t.textColor};`), c.length > 0 && (s.style = c.join(" ")), e("div", s, n);
437
530
  }
438
531
  //#endregion
439
532
  //#region src/static/components/sidebar.ts
440
- function x(t = {}, n = "") {
533
+ function E(e, t = {}, n) {
441
534
  let r = t.kind ?? "neutral", i = t.side ?? "left", a = ["sk-sidebar", `sk-${r}`];
442
535
  i === "right" && a.push("sk-sidebar-right"), t.dense === !0 && a.push("sk-dense");
443
536
  let o = i === "right" ? "bottom-left" : "bottom-right", s = [
@@ -447,23 +540,25 @@ function x(t = {}, n = "") {
447
540
  `sk-cut-${o}`,
448
541
  `sk-decoration-${o}`,
449
542
  "sk-sidebar-panel"
450
- ], c = `class="${e(a.join(" "))}"`, l = `class="${e(s.join(" "))}"`, u = [];
451
- return typeof t.baseColor == "string" && u.push(`--sk-sidebar-color-base: ${e(t.baseColor)};`), `<aside ${c}${u.length > 0 ? ` style="${u.join(" ")}"` : ""}><div ${l}>${`<div class="sk-panel-scroll-content"><nav class="sk-sidebar-nav">${n}</nav></div>`}</div></aside>`;
543
+ ], c = { class: a.join(" ") }, l = [];
544
+ typeof t.baseColor == "string" && l.push(`--sk-sidebar-color-base: ${t.baseColor};`), l.length > 0 && (c.style = l.join(" "));
545
+ let u = e("div", { class: "sk-panel-scroll-content" }, e("nav", { class: "sk-sidebar-nav" }, n));
546
+ return e("aside", c, e("div", { class: s.join(" ") }, u));
452
547
  }
453
548
  //#endregion
454
549
  //#region src/static/components/breadcrumbs.ts
455
- function S(e = {}, t = "") {
456
- return i(a.breadcrumbs, e, t);
550
+ function D(e, t = {}, n) {
551
+ return a(e, u.breadcrumbs, t, n);
457
552
  }
458
553
  //#endregion
459
554
  //#region src/static/components/pagination.ts
460
- function C(e = {}, t = "") {
461
- return i(a.pagination, e, t);
555
+ function O(e, t = {}, n) {
556
+ return a(e, u.pagination, t, n);
462
557
  }
463
558
  //#endregion
464
559
  //#region src/static/components/tag.ts
465
- var w = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line></svg>";
466
- function T(t = {}, n = "") {
560
+ var k = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line></svg>";
561
+ function A(e, t = {}, n) {
467
562
  let r = t.kind ?? "neutral", i = t.variant ?? "solid", a = t.size ?? "md", o = [
468
563
  "sk-tag",
469
564
  `sk-${r}`,
@@ -471,46 +566,74 @@ function T(t = {}, n = "") {
471
566
  `sk-${a}`
472
567
  ];
473
568
  t.removable && o.push("sk-removable");
474
- let s = [`class="${e(o.join(" "))}"`], c = [];
475
- typeof t.baseColor == "string" && c.push(`--sk-tag-color-base: ${e(t.baseColor)};`), typeof t.textColor == "string" && c.push(`--sk-tag-fg: ${e(t.textColor)};`), c.length > 0 && s.push(`style="${c.join(" ")}"`);
476
- let l = `<span class="sk-tag-content">${n}</span>`, u = t.removable ? `<button type="button" class="sk-tag-remove" aria-label="Remove">${w}</button>` : "";
477
- return `<span ${s.join(" ")}>${l}${u}</span>`;
569
+ let s = { class: o.join(" ") }, c = [];
570
+ typeof t.baseColor == "string" && c.push(`--sk-tag-color-base: ${t.baseColor};`), typeof t.textColor == "string" && c.push(`--sk-tag-fg: ${t.textColor};`), c.length > 0 && (s.style = c.join(" "));
571
+ let l = [e("span", { class: "sk-tag-content" }, n)];
572
+ if (t.removable) {
573
+ let t = e("button", {
574
+ type: "button",
575
+ class: "sk-tag-remove",
576
+ "aria-label": "Remove",
577
+ innerHTML: k
578
+ });
579
+ l.push(t);
580
+ }
581
+ return e("span", s, l);
478
582
  }
479
583
  //#endregion
480
584
  //#region src/static/components/avatar.ts
481
- var E = "<svg class=\"sk-avatar-icon\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z\"></path></svg>";
482
- function D(t = {}) {
483
- let n = t.kind ?? "neutral", r = t.size ?? "md", i = [`class="${e([
585
+ var j = "<svg class=\"sk-avatar-icon\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z\"></path></svg>";
586
+ function M(e, n = {}) {
587
+ let r = n.kind ?? "neutral", i = n.size ?? "md", a = { class: [
484
588
  "sk-avatar",
485
- `sk-${n}`,
486
- `sk-${r}`
487
- ].join(" "))}"`], a = [];
488
- typeof t.baseColor == "string" && a.push(`--sk-avatar-color-base: ${e(t.baseColor)};`), typeof t.textColor == "string" && a.push(`--sk-avatar-fg: ${e(t.textColor)};`), a.length > 0 && i.push(`style="${a.join(" ")}"`);
489
- let o;
490
- if (t.src) {
491
- let n = t.alt ?? "";
492
- o = `<img src="${e(t.src)}" alt="${e(n)}" class="sk-avatar-image">`;
493
- } else o = t.initials ? `<span class="sk-avatar-initials">${e(t.initials.slice(0, 2).toUpperCase())}</span>` : E;
494
- return `<div ${i.join(" ")}>${o}</div>`;
589
+ `sk-${r}`,
590
+ `sk-${i}`
591
+ ].join(" ") }, o = [];
592
+ if (typeof n.baseColor == "string" && o.push(`--sk-avatar-color-base: ${n.baseColor};`), typeof n.textColor == "string" && o.push(`--sk-avatar-fg: ${n.textColor};`), o.length > 0 && (a.style = o.join(" ")), n.src) {
593
+ let t = n.alt ?? "";
594
+ return e("div", a, e("img", {
595
+ src: n.src,
596
+ alt: t,
597
+ class: "sk-avatar-image"
598
+ }));
599
+ }
600
+ return n.initials ? e("div", a, e("span", {
601
+ class: "sk-avatar-initials",
602
+ innerHTML: t(n.initials.slice(0, 2).toUpperCase())
603
+ })) : e("div", {
604
+ ...a,
605
+ innerHTML: j
606
+ });
495
607
  }
496
608
  //#endregion
497
609
  //#region src/static/components/field.ts
498
- function O(t = {}, n = "") {
499
- let r = ["sk-field", `sk-label-${t.labelPosition ?? "top"}`];
500
- t.error && r.push("sk-has-error");
501
- let i = `class="${e(r.join(" "))}"`, a = "";
502
- if (t.label) {
503
- let n = t.id ? ` for="${e(t.id)}"` : "", r = t.required ? "<span class=\"sk-field-required\">*</span>" : "";
504
- a = `<label${n} class="sk-field-label">${e(t.label)}${r}</label>`;
610
+ function N(e, n = {}, r) {
611
+ let i = ["sk-field", `sk-label-${n.labelPosition ?? "top"}`];
612
+ n.error && i.push("sk-has-error");
613
+ let a = { class: i.join(" ") }, o = [];
614
+ if (n.label) {
615
+ let r = { class: "sk-field-label" };
616
+ n.id && (r.for = n.id), n.required ? (r.innerHTML = `${t(n.label)}<span class="sk-field-required">*</span>`, o.push(e("label", r))) : (r.innerHTML = t(n.label), o.push(e("label", r)));
617
+ }
618
+ if (o.push(e("div", { class: "sk-field-input-wrapper" }, r)), n.description && !n.error) {
619
+ let r = {
620
+ class: "sk-field-description",
621
+ innerHTML: t(n.description)
622
+ };
623
+ n.id && (r.id = `${n.id}-description`), o.push(e("p", r));
624
+ }
625
+ if (n.error) {
626
+ let r = {
627
+ class: "sk-field-error",
628
+ innerHTML: t(n.error)
629
+ };
630
+ n.id && (r.id = `${n.id}-error`), o.push(e("p", r));
505
631
  }
506
- let o = `<div class="sk-field-input-wrapper">${n}</div>`, s = "";
507
- t.description && !t.error && (s = `<p${t.id ? ` id="${e(t.id)}-description"` : ""} class="sk-field-description">${e(t.description)}</p>`);
508
- let c = "";
509
- return t.error && (c = `<p${t.id ? ` id="${e(t.id)}-error"` : ""} class="sk-field-error">${e(t.error)}</p>`), `<div ${i}>${a}${o}${s}${c}</div>`;
632
+ return e("div", a, o);
510
633
  }
511
634
  //#endregion
512
635
  //#region src/static/components/table.ts
513
- function k(t = {}, n = "") {
636
+ function P(e, t = {}, n) {
514
637
  let r = t.kind ?? "neutral", i = t.variant ?? "default", a = t.hoverable !== !1, o = t.bordered !== !1, s = t.innerBorders === !0, c = t.subtle === !0, l = t.darkBackground === !0, u = t.striped === !0, d = ["sk-table-wrapper", `sk-table-wrapper-${r}`];
515
638
  l && d.push("sk-dark-background"), c && d.push("sk-subtle");
516
639
  let f = [
@@ -519,18 +642,18 @@ function k(t = {}, n = "") {
519
642
  `sk-${i}`
520
643
  ];
521
644
  u && f.push("sk-striped"), a && f.push("sk-hoverable"), o && f.push("sk-bordered"), s || f.push("sk-no-inner-borders"), c && f.push("sk-subtle");
522
- let p = [`class="${e(f.join(" "))}"`], m = [];
523
- return typeof t.baseColor == "string" && m.push(`--sk-table-color-base: ${e(t.baseColor)};`), typeof t.textColor == "string" && m.push(`--sk-table-fg: ${e(t.textColor)};`), m.length > 0 && p.push(`style="${m.join(" ")}"`), `<div ${`class="${e(d.join(" "))}"`}><table ${p.join(" ")}>${n}</table></div>`;
645
+ let p = { class: f.join(" ") }, m = [];
646
+ return typeof t.baseColor == "string" && m.push(`--sk-table-color-base: ${t.baseColor};`), typeof t.textColor == "string" && m.push(`--sk-table-fg: ${t.textColor};`), m.length > 0 && (p.style = m.join(" ")), e("div", { class: d.join(" ") }, e("table", p, n));
524
647
  }
525
648
  //#endregion
526
649
  //#region src/static/components/tooltip.ts
527
- function A(e = {}, t = "") {
528
- return i(a.tooltip, e, t);
650
+ function F(e, t = {}, n) {
651
+ return a(e, u.tooltip, t, n);
529
652
  }
530
653
  //#endregion
531
654
  //#region src/static/components/button.ts
532
- function j(t = {}, n = "") {
533
- let i = [`class="${e(r({
655
+ function I(e, t = {}, n) {
656
+ let i = r({
534
657
  base: "sk-button",
535
658
  kind: !0,
536
659
  size: !0,
@@ -539,158 +662,187 @@ function j(t = {}, n = "") {
539
662
  "loading",
540
663
  "pressed",
541
664
  "dense"
542
- ]
543
- }, t))}"`], a = typeof t.href == "string";
544
- if (a) i.push(`href="${e(t.href ?? "")}"`);
545
- else {
546
- let n = t.type ?? "button";
547
- i.push(`type="${e(n)}"`);
548
- }
549
- t.disabled && i.push(a ? "aria-disabled=\"true\"" : "disabled"), t.loading && i.push("aria-busy=\"true\""), t.pressed && i.push("aria-pressed=\"true\"");
550
- let o = a ? "a" : "button", s = `<span class="sk-button-chrome">${n}</span>`;
551
- return `<${o} ${i.join(" ")}>${s}</${o}>`;
665
+ ],
666
+ listFlags: [{
667
+ prop: "corners",
668
+ family: "cut"
669
+ }]
670
+ }, t), a = typeof t.href == "string", o = { class: i };
671
+ return a ? o.href = t.href ?? "" : o.type = t.type ?? "button", t.disabled && (a ? o["aria-disabled"] = "true" : o.disabled = !0), t.loading && (o["aria-busy"] = "true"), t.pressed && (o["aria-pressed"] = "true"), e(a ? "a" : "button", o, e("span", { class: "sk-button-chrome" }, n));
552
672
  }
553
673
  //#endregion
554
674
  //#region src/static/components/input.ts
555
- function M(t = {}) {
556
- let n = [`class="${e(r({
675
+ function L(e, t = {}) {
676
+ let n = { class: r({
557
677
  base: "sk-input",
558
678
  kind: !0,
559
- size: !0
560
- }, t))}"`];
561
- for (let r of [
679
+ size: !0,
680
+ listFlags: [{
681
+ prop: "corners",
682
+ family: "cut"
683
+ }]
684
+ }, t) };
685
+ for (let e of [
562
686
  "type",
563
687
  "value",
564
688
  "placeholder",
565
689
  "name",
566
690
  "id"
567
691
  ]) {
568
- let i = t[r];
569
- typeof i == "string" && n.push(`${r}="${e(i)}"`);
692
+ let r = t[e];
693
+ typeof r == "string" && (n[e] = r);
570
694
  }
571
- for (let e of [
572
- "disabled",
573
- "readonly",
574
- "required"
575
- ]) t[e] === !0 && n.push(e);
576
- return `<input ${n.join(" ")} />`;
695
+ return t.disabled === !0 && (n.disabled = !0), t.readonly === !0 && (n.readonly = !0), t.required === !0 && (n.required = !0), e("input", n);
696
+ }
697
+ //#endregion
698
+ //#region src/static/components/inputGroup.ts
699
+ function R(e, t = {}, n) {
700
+ return a(e, u.inputGroup, t, n);
701
+ }
702
+ //#endregion
703
+ //#region src/static/components/inputGroupAddon.ts
704
+ function z(e, t = {}, n) {
705
+ return a(e, u.inputGroupAddon, t, n);
577
706
  }
578
707
  //#endregion
579
708
  //#region src/static/components/textarea.ts
580
- function N(t = {}, n = "") {
581
- let i = [`class="${e(r({
709
+ function B(e, t = {}, n) {
710
+ let i = { class: r({
582
711
  base: "sk-textarea",
583
712
  kind: !0,
584
713
  size: !0
585
- }, t))}"`];
586
- for (let n of [
714
+ }, t) };
715
+ for (let e of [
587
716
  "placeholder",
588
717
  "name",
589
718
  "id"
590
719
  ]) {
591
- let r = t[n];
592
- typeof r == "string" && i.push(`${n}="${e(r)}"`);
720
+ let n = t[e];
721
+ typeof n == "string" && (i[e] = n);
593
722
  }
594
- for (let e of [
595
- "disabled",
596
- "readonly",
597
- "required"
598
- ]) t[e] === !0 && i.push(e);
599
- return `<textarea ${i.join(" ")}>${n}</textarea>`;
723
+ return t.disabled === !0 && (i.disabled = !0), t.readonly === !0 && (i.readonly = !0), t.required === !0 && (i.required = !0), e("textarea", i, n);
600
724
  }
601
725
  //#endregion
602
726
  //#region src/static/components/select.ts
603
- function P(t = {}, n = "") {
604
- let i = [`class="${e(r({
727
+ function V(e, t = {}, n) {
728
+ let i = { class: r({
605
729
  base: "sk-select",
606
730
  kind: !0,
607
- size: !0
608
- }, t))}"`];
609
- for (let n of ["name", "id"]) {
610
- let r = t[n];
611
- typeof r == "string" && i.push(`${n}="${e(r)}"`);
731
+ size: !0,
732
+ listFlags: [{
733
+ prop: "corners",
734
+ family: "cut"
735
+ }]
736
+ }, t) };
737
+ for (let e of ["name", "id"]) {
738
+ let n = t[e];
739
+ typeof n == "string" && (i[e] = n);
612
740
  }
613
- for (let e of ["disabled", "required"]) t[e] === !0 && i.push(e);
614
- return `<select ${i.join(" ")}>${n}</select>`;
741
+ return t.disabled === !0 && (i.disabled = !0), t.required === !0 && (i.required = !0), e("select", i, n);
615
742
  }
616
743
  //#endregion
617
744
  //#region src/static/components/slider.ts
618
- function F(t = {}) {
619
- let n = [`class="${e(r({
620
- base: "sk-slider",
621
- kind: !0,
622
- size: !0
623
- }, t))}"`, "type=\"range\""];
624
- for (let r of [
745
+ function H(e, t = {}) {
746
+ let n = {
747
+ class: r({
748
+ base: "sk-slider",
749
+ kind: !0,
750
+ size: !0
751
+ }, t),
752
+ type: "range"
753
+ };
754
+ for (let e of [
625
755
  "min",
626
756
  "max",
627
757
  "step",
628
758
  "value",
629
759
  "name"
630
760
  ]) {
631
- let i = t[r];
632
- typeof i == "string" && n.push(`${r}="${e(i)}"`);
761
+ let r = t[e];
762
+ typeof r == "string" && (n[e] = r);
633
763
  }
634
- return t.disabled === !0 && n.push("disabled"), `<input ${n.join(" ")} />`;
764
+ return t.disabled === !0 && (n.disabled = !0), e("input", n);
635
765
  }
636
766
  //#endregion
637
767
  //#region src/static/components/colorPicker.ts
638
- function I(t = {}) {
639
- let n = [`class="${e(r({
640
- base: "sk-color-picker",
641
- size: !0
642
- }, t))}"`, "type=\"color\""];
643
- for (let r of ["value", "name"]) {
644
- let i = t[r];
645
- typeof i == "string" && n.push(`${r}="${e(i)}"`);
768
+ function U(e, t = {}) {
769
+ let n = {
770
+ class: r({
771
+ base: "sk-color-picker",
772
+ size: !0
773
+ }, t),
774
+ type: "color"
775
+ };
776
+ for (let e of ["value", "name"]) {
777
+ let r = t[e];
778
+ typeof r == "string" && (n[e] = r);
646
779
  }
647
- return t.disabled === !0 && n.push("disabled"), `<input ${n.join(" ")} />`;
780
+ return t.disabled === !0 && (n.disabled = !0), e("input", n);
648
781
  }
649
782
  //#endregion
650
783
  //#region src/static/components/checkbox.ts
651
- function L(t = {}, n = "") {
784
+ function W(e, t = {}, n) {
652
785
  let i = r({
653
786
  base: "sk-checkbox",
654
787
  kind: !0,
655
788
  size: !0
656
- }, t), a = ["type=\"checkbox\""];
657
- t.name && a.push(`name="${e(t.name)}"`), t.checked === !0 && a.push("checked"), t.disabled === !0 && a.push("disabled"), t.required === !0 && a.push("required");
658
- let o = `<input ${a.join(" ")} />`, s = `<span class="sk-checkbox-label">${n}</span>`;
659
- return `<label class="${e(i)}">${o}<span class="sk-checkbox-box"></span>${s}</label>`;
789
+ }, t), a = { type: "checkbox" };
790
+ t.name && (a.name = t.name), t.checked === !0 && (a.checked = !0), t.disabled === !0 && (a.disabled = !0), t.required === !0 && (a.required = !0);
791
+ let o = e("input", a), s = e("span", { class: "sk-checkbox-box" }), c = e("span", { class: "sk-checkbox-label" }, n);
792
+ return e("label", { class: i }, [
793
+ o,
794
+ s,
795
+ c
796
+ ]);
660
797
  }
661
798
  //#endregion
662
799
  //#region src/static/components/radio.ts
663
- function R(t = {}, n = "") {
800
+ function G(e, t = {}, n) {
664
801
  let i = r({
665
802
  base: "sk-radio",
666
803
  kind: !0,
667
804
  size: !0
668
- }, t), a = ["type=\"radio\""];
669
- t.name && a.push(`name="${e(t.name)}"`), t.value !== void 0 && a.push(`value="${e(t.value)}"`), t.checked === !0 && a.push("checked"), t.disabled === !0 && a.push("disabled"), t.required === !0 && a.push("required");
670
- let o = `<input ${a.join(" ")} />`, s = `<span class="sk-radio-label">${n}</span>`;
671
- return `<label class="${e(i)}">${o}<span class="sk-radio-dot"></span>${s}</label>`;
805
+ }, t), a = { type: "radio" };
806
+ t.name && (a.name = t.name), t.value !== void 0 && (a.value = t.value), t.checked === !0 && (a.checked = !0), t.disabled === !0 && (a.disabled = !0), t.required === !0 && (a.required = !0);
807
+ let o = e("input", a), s = e("span", { class: "sk-radio-dot" }), c = e("span", { class: "sk-radio-label" }, n);
808
+ return e("label", { class: i }, [
809
+ o,
810
+ s,
811
+ c
812
+ ]);
672
813
  }
673
814
  //#endregion
674
815
  //#region src/static/components/switchInput.ts
675
- function z(t = {}, n = "") {
816
+ function K(e, t = {}, n) {
676
817
  let i = r({
677
818
  base: "sk-switch",
678
819
  kind: !0,
679
820
  size: !0
680
- }, t), a = ["type=\"checkbox\""];
681
- t.name && a.push(`name="${e(t.name)}"`), t.checked === !0 && a.push("checked"), t.disabled === !0 && a.push("disabled"), t.required === !0 && a.push("required");
682
- let o = `<input ${a.join(" ")} />`, s = `<span class="sk-switch-label">${n}</span>`;
683
- return `<label class="${e(i)}">${o}<span class="sk-switch-track"><span class="sk-switch-thumb"></span></span>${s}</label>`;
821
+ }, t), a = { type: "checkbox" };
822
+ t.name && (a.name = t.name), t.checked === !0 && (a.checked = !0), t.disabled === !0 && (a.disabled = !0), t.required === !0 && (a.required = !0);
823
+ let o = e("input", a), s = e("span", { class: "sk-switch-track" }, e("span", { class: "sk-switch-thumb" })), c = e("span", { class: "sk-switch-label" }, n);
824
+ return e("label", { class: i }, [
825
+ o,
826
+ s,
827
+ c
828
+ ]);
684
829
  }
685
830
  //#endregion
686
831
  //#region src/static/components/numberInput.ts
687
- function B(t = {}) {
832
+ function q(e, t = {}) {
688
833
  let n = r({
689
834
  base: "sk-number-input-wrapper",
690
835
  kind: !0,
691
- size: !0
692
- }, t), i = ["class=\"sk-number-input-field\"", "type=\"number\""];
693
- for (let n of [
836
+ size: !0,
837
+ listFlags: [{
838
+ prop: "corners",
839
+ family: "cut"
840
+ }]
841
+ }, t), i = {
842
+ class: "sk-number-input-field",
843
+ type: "number"
844
+ };
845
+ for (let e of [
694
846
  "value",
695
847
  "min",
696
848
  "max",
@@ -698,35 +850,33 @@ function B(t = {}) {
698
850
  "name",
699
851
  "placeholder"
700
852
  ]) {
701
- let r = t[n];
702
- typeof r == "string" && i.push(`${n}="${e(r)}"`);
853
+ let n = t[e];
854
+ typeof n == "string" && (i[e] = n);
703
855
  }
704
- for (let e of [
705
- "disabled",
706
- "readonly",
707
- "required"
708
- ]) t[e] === !0 && i.push(e);
709
- let a = `<input ${i.join(" ")} />`;
710
- return `<div class="${e(n)}">${a}</div>`;
856
+ t.disabled === !0 && (i.disabled = !0), t.readonly === !0 && (i.readonly = !0), t.required === !0 && (i.required = !0);
857
+ let a = e("input", i);
858
+ return e("div", { class: n }, a);
711
859
  }
712
860
  //#endregion
713
861
  //#region src/static/components/tagsInput.ts
714
- function V(t = {}, n = "") {
715
- return `<div class="${e(r({
862
+ function J(e, t = {}, n) {
863
+ return e("div", { class: r({
716
864
  base: "sk-tags-input",
717
865
  kind: !0,
718
866
  size: !0
719
- }, t))}">${n}</div>`;
867
+ }, t) }, n);
720
868
  }
721
869
  //#endregion
722
870
  //#region src/static/components/dropdown.ts
723
- function H(t, n = "") {
724
- let i = [`class="${e(r({
871
+ function Y(e, n, i) {
872
+ let a = { class: r({
725
873
  base: "sk-dropdown",
726
874
  kind: !0,
727
875
  size: !0
728
- }, t))}"`];
729
- return t.open && i.push("open"), `<details ${i.join(" ")}><summary>${e(t.summary)}</summary>${n}</details>`;
876
+ }, n) };
877
+ n.open && (a.open = !0);
878
+ let o = [e("summary", { innerHTML: t(n.summary) })];
879
+ return i !== void 0 && (Array.isArray(i) ? o.push(...i) : o.push(i)), e("details", a, o);
730
880
  }
731
881
  //#endregion
732
- export { u as alert, D as avatar, S as breadcrumbs, j as button, s as card, L as checkbox, I as colorPicker, r as composeClasses, d as divider, H as dropdown, e as escapeAttr, O as field, p as group, M as input, v as navBar, B as numberInput, f as page, C as pagination, o as panel, h as progress, R as radio, i as render, P as select, x as sidebar, m as skeleton, F as slider, _ as spinner, z as switchInput, k as table, T as tag, V as tagsInput, t as text, N as textarea, b as toolbar, A as tooltip };
882
+ export { h as alert, M as avatar, D as breadcrumbs, I as button, f as card, W as checkbox, U as colorPicker, r as composeClasses, g as divider, Y as dropdown, e as escapeAttr, N as field, v as group, L as input, R as inputGroup, z as inputGroupAddon, C as navBar, q as numberInput, _ as page, O as pagination, d as panel, b as progress, G as radio, a as render, V as select, E as sidebar, y as skeleton, H as slider, S as spinner, l as stringH, K as switchInput, P as table, A as tag, J as tagsInput, t as text, B as textarea, T as toolbar, F as tooltip };