@indielayer/ui 0.0.0-dev-20240125104319 → 0.0.0-dev-20240129122517

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 (94) hide show
  1. package/lib/common/icons.d.ts +2 -1
  2. package/lib/common/icons.js +3 -2
  3. package/lib/components/icon/theme/Icon.carbon.theme.js +7 -4
  4. package/lib/components/index.js +1 -1
  5. package/lib/components/link/Link.vue.js +2 -2
  6. package/lib/components/link/Link.vue2.js +1 -1
  7. package/lib/components/link/theme/Link.base.theme.js +4 -4
  8. package/lib/components/link/theme/Link.carbon.theme.js +23 -3
  9. package/lib/components/menu/MenuItem.vue.js +2 -2
  10. package/lib/components/menu/MenuItem.vue2.js +1 -1
  11. package/lib/components/select/Select.vue.js +49 -47
  12. package/lib/components/select/theme/Select.base.theme.js +10 -10
  13. package/lib/components/select/theme/Select.carbon.theme.js +4 -4
  14. package/lib/components/skeleton/Skeleton.vue.d.ts +19 -1
  15. package/lib/components/skeleton/Skeleton.vue.js +25 -15
  16. package/lib/components/skeleton/theme/Skeleton.base.theme.js +7 -4
  17. package/lib/components/table/Table.vue.d.ts +115 -9
  18. package/lib/components/table/Table.vue.js +209 -98
  19. package/lib/components/table/TableCell.vue.d.ts +4 -5
  20. package/lib/components/table/TableCell.vue.js +21 -22
  21. package/lib/components/table/TableHead.vue.d.ts +16 -0
  22. package/lib/components/table/TableHead.vue.js +21 -0
  23. package/lib/components/table/TableHead.vue2.js +4 -0
  24. package/lib/components/table/TableHeader.vue.d.ts +4 -0
  25. package/lib/components/table/TableHeader.vue.js +45 -54
  26. package/lib/components/table/TableRow.vue.d.ts +15 -1
  27. package/lib/components/table/TableRow.vue.js +21 -25
  28. package/lib/components/table/index.d.ts +4 -2
  29. package/lib/components/table/theme/Table.base.theme.js +7 -6
  30. package/lib/components/table/theme/Table.carbon.theme.js +11 -3
  31. package/lib/components/table/theme/TableCell.base.theme.js +3 -3
  32. package/lib/components/table/theme/TableCell.carbon.theme.js +9 -3
  33. package/lib/components/table/theme/TableHead.base.theme.d.ts +3 -0
  34. package/lib/components/table/theme/TableHead.base.theme.js +9 -0
  35. package/lib/components/table/theme/TableHead.carbon.theme.d.ts +3 -0
  36. package/lib/components/table/theme/TableHead.carbon.theme.js +9 -0
  37. package/lib/components/table/theme/TableHeader.base.theme.d.ts +3 -0
  38. package/lib/components/table/theme/TableHeader.base.theme.js +12 -0
  39. package/lib/components/table/theme/TableHeader.carbon.theme.d.ts +3 -0
  40. package/lib/components/table/theme/TableHeader.carbon.theme.js +12 -0
  41. package/lib/components/table/theme/TableRow.base.theme.d.ts +3 -0
  42. package/lib/components/table/theme/TableRow.base.theme.js +11 -0
  43. package/lib/components/table/theme/TableRow.carbon.theme.d.ts +3 -0
  44. package/lib/components/table/theme/TableRow.carbon.theme.js +11 -0
  45. package/lib/components/tag/Tag.vue.d.ts +1 -1
  46. package/lib/components/tag/Tag.vue.js +17 -17
  47. package/lib/components/tag/theme/Tag.base.theme.js +14 -13
  48. package/lib/components/tag/theme/Tag.carbon.theme.js +14 -14
  49. package/lib/index.js +2 -2
  50. package/lib/index.umd.js +3 -3
  51. package/lib/theme.d.ts +4 -1
  52. package/lib/themes/base/components.d.ts +3 -0
  53. package/lib/themes/base/components.js +44 -38
  54. package/lib/themes/carbon/components.d.ts +3 -0
  55. package/lib/themes/carbon/components.js +44 -38
  56. package/lib/version.d.ts +1 -1
  57. package/lib/version.js +1 -1
  58. package/package.json +1 -1
  59. package/src/common/icons.ts +2 -1
  60. package/src/components/icon/theme/Icon.carbon.theme.ts +9 -1
  61. package/src/components/link/Link.vue +1 -1
  62. package/src/components/link/theme/Link.carbon.theme.ts +23 -2
  63. package/src/components/menu/MenuItem.vue +1 -1
  64. package/src/components/select/Select.vue +6 -4
  65. package/src/components/select/theme/Select.base.theme.ts +1 -1
  66. package/src/components/select/theme/Select.carbon.theme.ts +1 -1
  67. package/src/components/skeleton/Skeleton.vue +18 -2
  68. package/src/components/skeleton/theme/Skeleton.base.theme.ts +8 -1
  69. package/src/components/table/Table.vue +123 -27
  70. package/src/components/table/TableCell.vue +5 -6
  71. package/src/components/table/TableHead.vue +25 -0
  72. package/src/components/table/TableHeader.vue +35 -56
  73. package/src/components/table/TableRow.vue +19 -17
  74. package/src/components/table/index.ts +4 -2
  75. package/src/components/table/theme/Table.base.theme.ts +9 -7
  76. package/src/components/table/theme/Table.carbon.theme.ts +18 -2
  77. package/src/components/table/theme/TableCell.base.theme.ts +1 -1
  78. package/src/components/table/theme/TableCell.carbon.theme.ts +24 -2
  79. package/src/components/table/theme/TableHead.base.theme.ts +10 -0
  80. package/src/components/table/theme/TableHead.carbon.theme.ts +10 -0
  81. package/src/components/table/theme/TableHeader.base.theme.ts +28 -0
  82. package/src/components/table/theme/TableHeader.carbon.theme.ts +28 -0
  83. package/src/components/table/theme/TableRow.base.theme.ts +21 -0
  84. package/src/components/table/theme/TableRow.carbon.theme.ts +21 -0
  85. package/src/components/tag/Tag.vue +4 -4
  86. package/src/components/tag/theme/Tag.base.theme.ts +4 -4
  87. package/src/components/tag/theme/Tag.carbon.theme.ts +5 -6
  88. package/src/theme.ts +6 -0
  89. package/src/themes/base/components.ts +3 -0
  90. package/src/themes/carbon/components.ts +3 -0
  91. package/src/version.ts +1 -1
  92. package/lib/components/table/TableHead.d.ts +0 -2
  93. package/lib/components/table/TableHead.js +0 -19
  94. package/src/components/table/TableHead.tsx +0 -14
@@ -11,7 +11,8 @@ export declare const dotsIcon = "<path d=\"M5 12h.01M12 12h.01M19 12h.01M6 12a1
11
11
  export declare const prevIcon = "<path d=\"M15 19l-7-7 7-7\" />";
12
12
  export declare const nextIcon = "<path d=\"M9 5l7 7-7 7\" />";
13
13
  export declare const checkIcon = "<path d=\"M5 13l4 4L19 7\" />";
14
- export declare const chevronDownIcon = "<path d=\"M8 9l4-4 4 4m0 6l-4 4-4-4\" />";
14
+ export declare const selectIcon = "<path d=\"M8 9l4-4 4 4m0 6l-4 4-4-4\" />";
15
15
  export declare const externalIcon = "<line x1=\"7\" y1=\"17\" x2=\"17\" y2=\"7\" /><polyline points=\"7 7 17 7 17 17\" />";
16
16
  export declare const stepperPristineIcon = "<path d=\"M7.5 4.21v.01M4.21 7.5v.01M3 12v.01m1.21 4.49v.01m3.29 3.28v.01M12 21v.01m4.5-1.22v.01m3.29-3.3v.01M21 12v.01M19.79 7.5v.01m-3.29-3.3v.01M12 3v.01\"/>";
17
17
  export declare const stepperIncompleteIcon = "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" fill=\"currentColor\" viewBox=\"0 0 32 32\" aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M23.7642 6.8593l1.2851-1.5315A13.976 13.976 0 0020.8672 2.887l-.6836 1.8776A11.9729 11.9729 0 0123.7642 6.8593zM27.81 14l1.9677-.4128A13.8888 13.8888 0 0028.14 9.0457L26.4087 10A12.52 12.52 0 0127.81 14zM20.1836 27.2354l.6836 1.8776a13.976 13.976 0 004.1821-2.4408l-1.2851-1.5315A11.9729 11.9729 0 0120.1836 27.2354zM26.4087 22L28.14 23a14.14 14.14 0 001.6382-4.5872L27.81 18.0659A12.1519 12.1519 0 0126.4087 22zM16 30V2a14 14 0 000 28z\"></path></svg>";
18
+ export declare const chevronDownIcon = "<path d=\"M19 9l-7 7-7-7\" />";
@@ -1,8 +1,8 @@
1
- const t = '<path d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />', c = '<path d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" />', o = '<path d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />', n = '<path d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />', a = '<path d="M6 18L18 6M6 6l12 12" />', M = '<path d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" />', e = '<path d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" /><path d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z" />', s = '<path d="M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21" />', h = '<path d="M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z" />', l = '<path d="M15 19l-7-7 7-7" />', p = '<path d="M9 5l7 7-7 7" />', v = '<path d="M5 13l4 4L19 7" />', d = '<path d="M8 9l4-4 4 4m0 6l-4 4-4-4" />', m = '<line x1="7" y1="17" x2="17" y2="7" /><polyline points="7 7 17 7 17 17" />', r = '<path d="M7.5 4.21v.01M4.21 7.5v.01M3 12v.01m1.21 4.49v.01m3.29 3.28v.01M12 21v.01m4.5-1.22v.01m3.29-3.3v.01M21 12v.01M19.79 7.5v.01m-3.29-3.3v.01M12 3v.01"/>', I = '<svg focusable="false" preserveAspectRatio="xMidYMid meet" fill="currentColor" viewBox="0 0 32 32" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"><path d="M23.7642 6.8593l1.2851-1.5315A13.976 13.976 0 0020.8672 2.887l-.6836 1.8776A11.9729 11.9729 0 0123.7642 6.8593zM27.81 14l1.9677-.4128A13.8888 13.8888 0 0028.14 9.0457L26.4087 10A12.52 12.52 0 0127.81 14zM20.1836 27.2354l.6836 1.8776a13.976 13.976 0 004.1821-2.4408l-1.2851-1.5315A11.9729 11.9729 0 0120.1836 27.2354zM26.4087 22L28.14 23a14.14 14.14 0 001.6382-4.5872L27.81 18.0659A12.1519 12.1519 0 0126.4087 22zM16 30V2a14 14 0 000 28z"></path></svg>';
1
+ const t = '<path d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />', c = '<path d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" />', o = '<path d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />', n = '<path d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />', a = '<path d="M6 18L18 6M6 6l12 12" />', M = '<path d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" />', e = '<path d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" /><path d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z" />', s = '<path d="M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21" />', h = '<path d="M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z" />', l = '<path d="M15 19l-7-7 7-7" />', p = '<path d="M9 5l7 7-7 7" />', v = '<path d="M5 13l4 4L19 7" />', d = '<path d="M8 9l4-4 4 4m0 6l-4 4-4-4" />', m = '<line x1="7" y1="17" x2="17" y2="7" /><polyline points="7 7 17 7 17 17" />', r = '<path d="M7.5 4.21v.01M4.21 7.5v.01M3 12v.01m1.21 4.49v.01m3.29 3.28v.01M12 21v.01m4.5-1.22v.01m3.29-3.3v.01M21 12v.01M19.79 7.5v.01m-3.29-3.3v.01M12 3v.01"/>', I = '<svg focusable="false" preserveAspectRatio="xMidYMid meet" fill="currentColor" viewBox="0 0 32 32" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"><path d="M23.7642 6.8593l1.2851-1.5315A13.976 13.976 0 0020.8672 2.887l-.6836 1.8776A11.9729 11.9729 0 0123.7642 6.8593zM27.81 14l1.9677-.4128A13.8888 13.8888 0 0028.14 9.0457L26.4087 10A12.52 12.52 0 0127.81 14zM20.1836 27.2354l.6836 1.8776a13.976 13.976 0 004.1821-2.4408l-1.2851-1.5315A11.9729 11.9729 0 0120.1836 27.2354zM26.4087 22L28.14 23a14.14 14.14 0 001.6382-4.5872L27.81 18.0659A12.1519 12.1519 0 0126.4087 22zM16 30V2a14 14 0 000 28z"></path></svg>', i = '<path d="M19 9l-7 7-7-7" />';
2
2
  export {
3
3
  M as avatarIcon,
4
4
  v as checkIcon,
5
- d as chevronDownIcon,
5
+ i as chevronDownIcon,
6
6
  a as closeIcon,
7
7
  h as dotsIcon,
8
8
  o as errorIcon,
@@ -12,6 +12,7 @@ export {
12
12
  t as infoIcon,
13
13
  p as nextIcon,
14
14
  l as prevIcon,
15
+ d as selectIcon,
15
16
  I as stepperIncompleteIcon,
16
17
  r as stepperPristineIcon,
17
18
  c as successIcon,
@@ -1,8 +1,11 @@
1
- const e = {
1
+ const t = {
2
2
  classes: {
3
- wrapper: "inline shrink-0 h-4 w-4"
3
+ wrapper: ({ props: s }) => {
4
+ const e = "inline shrink-0";
5
+ return s.size === "xs" ? e + " h-3 w-3" : s.size === "lg" ? e + " h-5 w-5" : s.size === "xl" ? e + " h-8 w-8" : e + " h-4 w-4";
6
+ }
4
7
  }
5
- }, s = e;
8
+ }, n = t;
6
9
  export {
7
- s as default
10
+ n as default
8
11
  };
@@ -49,7 +49,7 @@ import { default as ze } from "./spacer/Spacer.js";
49
49
  import { default as Je } from "./spinner/Spinner.vue.js";
50
50
  import { default as Oe } from "./table/TableBody.js";
51
51
  import { default as Ue } from "./table/TableCell.vue.js";
52
- import { default as We } from "./table/TableHead.js";
52
+ import { default as We } from "./table/TableHead.vue.js";
53
53
  import { default as Ze } from "./table/TableHeader.vue.js";
54
54
  import { default as $e } from "./table/TableRow.vue.js";
55
55
  import { default as oo } from "./tag/Tag.vue.js";
@@ -3,7 +3,7 @@ import o from "./Link.vue3.js";
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const e = {
5
5
  $style: o
6
- }, m = /* @__PURE__ */ t(s, [["__cssModules", e], ["__scopeId", "data-v-170b7443"]]);
6
+ }, c = /* @__PURE__ */ t(s, [["__cssModules", e], ["__scopeId", "data-v-37edea5a"]]);
7
7
  export {
8
- m as default
8
+ c as default
9
9
  };
@@ -7,7 +7,7 @@ const C = {
7
7
  key: 0,
8
8
  class: "inline-flex items-center"
9
9
  }, $ = {
10
- ...h.props(),
10
+ ...h.props("primary"),
11
11
  tag: {
12
12
  type: String,
13
13
  default: "a"
@@ -1,10 +1,10 @@
1
- const r = {
1
+ const a = {
2
2
  classes: {
3
3
  wrapper: "transition duration-300 ease-in-out cursor-pointer inline-flex"
4
4
  },
5
- styles: ({ colors: o, props: t, css: a }) => {
5
+ styles: ({ colors: o, props: t, css: r }) => {
6
6
  const e = o.getPalette(t.color || "gray");
7
- return a.variables({
7
+ return r.variables({
8
8
  text: t.color ? e[600] : "",
9
9
  hover: {
10
10
  text: t.shadow ? "" : e[700]
@@ -19,7 +19,7 @@ const r = {
19
19
  }
20
20
  });
21
21
  }
22
- }, s = r;
22
+ }, s = a;
23
23
  export {
24
24
  s as default
25
25
  };
@@ -1,5 +1,25 @@
1
- import e from "./Link.base.theme.js";
2
- const t = e, o = t;
1
+ const a = {
2
+ classes: {
3
+ wrapper: "transition duration-300 ease-in-out cursor-pointer inline-flex text-sm"
4
+ },
5
+ styles: ({ colors: o, props: e, css: r }) => {
6
+ const t = o.getPalette(e.color || "gray");
7
+ return r.variables({
8
+ text: e.color ? t[600] : "",
9
+ hover: {
10
+ text: e.shadow ? "" : t[700]
11
+ },
12
+ shadow: t[100],
13
+ dark: {
14
+ text: e.color ? t[400] : "",
15
+ hover: {
16
+ text: t[300]
17
+ },
18
+ shadow: t[900]
19
+ }
20
+ });
21
+ }
22
+ }, s = a;
3
23
  export {
4
- o as default
24
+ s as default
5
25
  };
@@ -3,7 +3,7 @@ import o from "./MenuItem.vue3.js";
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const e = {
5
5
  $style: o
6
- }, c = /* @__PURE__ */ t(s, [["__cssModules", e], ["__scopeId", "data-v-458822a0"]]);
6
+ }, _ = /* @__PURE__ */ t(s, [["__cssModules", e], ["__scopeId", "data-v-8614aac7"]]);
7
7
  export {
8
- c as default
8
+ _ as default
9
9
  };
@@ -87,7 +87,7 @@ const V = {
87
87
  ref: o
88
88
  }, e.value.attrs, {
89
89
  to: e.value.to,
90
- href: e.value.href,
90
+ href: e.value.href || e.value.to || "",
91
91
  target: e.value.target,
92
92
  color: e.value.color,
93
93
  style: s(C),
@@ -1,10 +1,10 @@
1
- import { defineComponent as ve, ref as A, computed as I, watch as N, nextTick as X, unref as s, openBlock as a, createBlock as c, mergeProps as x, toHandlers as H, withCtx as b, createElementVNode as E, createElementBlock as o, normalizeClass as R, Fragment as p, renderList as z, createTextVNode as C, toDisplayString as m, createVNode as K, withDirectives as pe, vModelSelect as ce, renderSlot as me, createCommentVNode as ye } from "vue";
2
- import { useEventListener as he } from "../../node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.3.9/node_modules/@vueuse/core/index.js";
1
+ import { defineComponent as ve, ref as A, computed as I, watch as O, nextTick as U, unref as s, openBlock as a, createBlock as c, mergeProps as X, toHandlers as H, withCtx as h, createElementVNode as E, createElementBlock as o, normalizeClass as R, Fragment as p, renderList as z, createTextVNode as C, toDisplayString as m, createVNode as K, withDirectives as pe, vModelSelect as ce, renderSlot as me, createCommentVNode as ye } from "vue";
2
+ import { useEventListener as be } from "../../node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.3.9/node_modules/@vueuse/core/index.js";
3
3
  import { useCommon as G } from "../../composables/useCommon.js";
4
- import { useInputtable as O } from "../../composables/useInputtable.js";
4
+ import { useInputtable as D } from "../../composables/useInputtable.js";
5
5
  import { useInteractive as J } from "../../composables/useInteractive.js";
6
- import { useTheme as be } from "../../composables/useTheme.js";
7
- import { checkIcon as ke, chevronDownIcon as ge } from "../../common/icons.js";
6
+ import { useTheme as he } from "../../composables/useTheme.js";
7
+ import { checkIcon as ke, selectIcon as ge } from "../../common/icons.js";
8
8
  import we from "../label/Label.vue.js";
9
9
  import W from "../tag/Tag.vue.js";
10
10
  import Ae from "../icon/Icon.vue.js";
@@ -20,19 +20,19 @@ const Ee = { class: "relative" }, ze = {
20
20
  }, Ce = {
21
21
  key: 0,
22
22
  class: "text-gray-400 dark:text-gray-500"
23
- }, Se = { key: 1 }, De = {
23
+ }, Se = { key: 1 }, Ne = {
24
24
  key: 0,
25
25
  class: "flex gap-1 flex-wrap"
26
- }, Ne = {
26
+ }, Oe = {
27
27
  key: 0,
28
28
  class: "text-gray-400 dark:text-gray-500"
29
- }, Oe = { key: 1 }, Le = {
29
+ }, De = { key: 1 }, Le = {
30
30
  key: 1,
31
31
  class: "px-2 text-center text-gray-400"
32
32
  }, Be = ["id", "name", "disabled", "multiple", "readonly"], Te = ["value", "disabled"], Fe = {
33
33
  ...G.props(),
34
34
  ...J.props(),
35
- ...O.props(),
35
+ ...D.props(),
36
36
  placeholder: String,
37
37
  options: Array,
38
38
  multiple: Boolean,
@@ -46,7 +46,7 @@ const Ee = { class: "relative" }, ze = {
46
46
  }, il = /* @__PURE__ */ ve({
47
47
  ...Pe,
48
48
  props: Fe,
49
- emits: O.emits(),
49
+ emits: D.emits(),
50
50
  setup(Q, { expose: Y, emit: Z }) {
51
51
  const r = Q, V = Z, k = A(null), S = A(null), _ = A(null), f = A(null), u = A(), t = I({
52
52
  get() {
@@ -72,10 +72,10 @@ const Ee = { class: "relative" }, ze = {
72
72
  var e;
73
73
  return (e = f.value) == null ? void 0 : e.isOpen;
74
74
  });
75
- N(y, (e) => {
75
+ O(y, (e) => {
76
76
  e && (ee(), setTimeout(() => {
77
77
  B(u.value || 0);
78
- }, 50), (r.multiple || typeof u.value > "u") && D(-1));
78
+ }, 50), (r.multiple || typeof u.value > "u") && N(-1));
79
79
  });
80
80
  function ee() {
81
81
  if (r.multiple) {
@@ -92,10 +92,10 @@ const Ee = { class: "relative" }, ze = {
92
92
  var i;
93
93
  _.value && ((i = _.value[e]) == null || i.$el.scrollIntoView({ block: "nearest", inline: "nearest" }));
94
94
  }
95
- N(u, (e) => {
95
+ O(u, (e) => {
96
96
  typeof e < "u" && _.value && B(e);
97
97
  });
98
- function D(e, i = "down") {
98
+ function N(e, i = "down") {
99
99
  if (!L.value || L.value.length === 0) {
100
100
  u.value = void 0;
101
101
  return;
@@ -124,7 +124,7 @@ const Ee = { class: "relative" }, ze = {
124
124
  t.value = [e];
125
125
  else
126
126
  t.value = e;
127
- r.native || X(() => {
127
+ r.native || U(() => {
128
128
  var n, v, w;
129
129
  (n = k.value) == null || n.dispatchEvent(new Event("input")), (v = k.value) == null || v.dispatchEvent(new Event("change")), (w = S.value) == null || w.$el.focus();
130
130
  });
@@ -144,24 +144,24 @@ const Ee = { class: "relative" }, ze = {
144
144
  return i ? i.label : "";
145
145
  }
146
146
  const { focus: q, blur: le } = J(k), {
147
- errorInternal: j,
147
+ errorInternal: x,
148
148
  hideFooterInternal: ie,
149
- inputListeners: M,
149
+ inputListeners: j,
150
150
  reset: te,
151
151
  validate: ne,
152
152
  setError: ae,
153
153
  isFocused: re,
154
154
  isInsideForm: oe
155
- } = O(r, { focus: q, emit: V, withListeners: !0 }), se = I(() => {
156
- const { focus: e, blur: i } = s(M);
155
+ } = D(r, { focus: q, emit: V, withListeners: !0 }), se = I(() => {
156
+ const { focus: e, blur: i } = s(j);
157
157
  return {
158
158
  focus: e,
159
159
  blur: i
160
160
  };
161
161
  });
162
162
  let g = null;
163
- N([re, y], ([e, i]) => {
164
- e || i ? g || (g = he(document, "keydown", ue)) : g && (g(), g = null);
163
+ O([re, y], ([e, i]) => {
164
+ e || i ? g || (g = be(document, "keydown", ue)) : g && (g(), g = null);
165
165
  }, {
166
166
  immediate: !0
167
167
  });
@@ -173,13 +173,13 @@ const Ee = { class: "relative" }, ze = {
173
173
  (i = f.value) == null || i.show();
174
174
  return;
175
175
  }
176
- D(u.value, "down");
176
+ N(u.value, "down");
177
177
  } else if (e.code === "ArrowUp") {
178
178
  if (e.preventDefault(), !y.value) {
179
179
  (l = f.value) == null || l.show();
180
180
  return;
181
181
  }
182
- D(u.value, "up");
182
+ N(u.value, "up");
183
183
  } else if (e.code === "Enter" || e.code === "Space") {
184
184
  if (e.preventDefault(), e.stopPropagation(), !y.value) {
185
185
  (n = f.value) == null || n.show();
@@ -187,19 +187,19 @@ const Ee = { class: "relative" }, ze = {
187
187
  }
188
188
  typeof u.value < "u" && (T(d.value[u.value].value), r.multiple || (v = f.value) == null || v.hide());
189
189
  } else
190
- e.code === "Tab" && y.value && (e.preventDefault(), (w = f.value) == null || w.hide(), r.native || X(() => {
191
- var U;
192
- (U = S.value) == null || U.$el.focus();
190
+ e.code === "Tab" && y.value && (e.preventDefault(), (w = f.value) == null || w.hide(), r.native || U(() => {
191
+ var M;
192
+ (M = S.value) == null || M.$el.focus();
193
193
  }));
194
194
  }
195
- const { styles: de, classes: h, className: fe } = be("Select", {}, r, { errorInternal: j });
196
- return Y({ focus: q, blur: le, reset: te, validate: ne, setError: ae }), (e, i) => (a(), c(we, x({
195
+ const { styles: de, classes: b, className: fe } = he("Select", {}, r, { errorInternal: x });
196
+ return Y({ focus: q, blur: le, reset: te, validate: ne, setError: ae }), (e, i) => (a(), c(we, X({
197
197
  ref_key: "labelRef",
198
198
  ref: S,
199
199
  tabindex: "0",
200
200
  class: ["group", [
201
201
  s(fe),
202
- s(h).wrapper
202
+ s(b).wrapper
203
203
  ]],
204
204
  style: s(de),
205
205
  disabled: e.disabled,
@@ -207,11 +207,11 @@ const Ee = { class: "relative" }, ze = {
207
207
  "is-inside-form": s(oe),
208
208
  label: e.label
209
209
  }, H(se.value)), {
210
- default: b(() => [
210
+ default: h(() => [
211
211
  E("div", Ee, [
212
212
  e.native && !e.multiple ? (a(), o("div", {
213
213
  key: 0,
214
- class: R(s(h).box),
214
+ class: R(s(b).box),
215
215
  onClick: i[0] || (i[0] = (l) => {
216
216
  var n;
217
217
  return (n = k.value) == null ? void 0 : n.click();
@@ -220,13 +220,14 @@ const Ee = { class: "relative" }, ze = {
220
220
  e.multiple && Array.isArray(t.value) && t.value.length > 0 ? (a(), o("div", ze, [
221
221
  (a(!0), o(p, null, z(t.value, (l) => (a(), c(W, {
222
222
  key: l,
223
- size: "sm",
223
+ size: "xs",
224
+ outlined: "",
224
225
  removable: "",
225
226
  onRemove: (n) => {
226
227
  P(n, l);
227
228
  }
228
229
  }, {
229
- default: b(() => [
230
+ default: h(() => [
230
231
  C(m($(l)), 1)
231
232
  ]),
232
233
  _: 2
@@ -245,11 +246,11 @@ const Ee = { class: "relative" }, ze = {
245
246
  "dismiss-on-click": !e.multiple,
246
247
  align: "left"
247
248
  }, {
248
- content: b(() => [
249
+ content: h(() => [
249
250
  K(_e, {
250
- class: R(s(h).content)
251
+ class: R(s(b).content)
251
252
  }, {
252
- default: b(() => [
253
+ default: h(() => [
253
254
  d.value.length > 0 ? (a(!0), o(p, { key: 0 }, z(d.value, (l, n) => (a(), c(Ie, {
254
255
  key: n,
255
256
  ref_for: !0,
@@ -270,20 +271,21 @@ const Ee = { class: "relative" }, ze = {
270
271
  _: 1
271
272
  }, 8, ["class"])
272
273
  ]),
273
- default: b(() => [
274
+ default: h(() => [
274
275
  E("div", {
275
- class: R([s(h).box])
276
+ class: R([s(b).box])
276
277
  }, [
277
- e.multiple && Array.isArray(t.value) && t.value.length > 0 ? (a(), o("div", De, [
278
+ e.multiple && Array.isArray(t.value) && t.value.length > 0 ? (a(), o("div", Ne, [
278
279
  (a(!0), o(p, null, z(t.value, (l) => (a(), c(W, {
279
280
  key: l,
280
- size: "sm",
281
+ size: "xs",
282
+ outlined: "",
281
283
  removable: "",
282
284
  onRemove: (n) => {
283
285
  P(n, l);
284
286
  }
285
287
  }, {
286
- default: b(() => [
288
+ default: h(() => [
287
289
  C(m($(l)), 1)
288
290
  ]),
289
291
  _: 2
@@ -291,13 +293,13 @@ const Ee = { class: "relative" }, ze = {
291
293
  ])) : !e.multiple && !F(t.value) ? (a(), o(p, { key: 1 }, [
292
294
  C(m($(t.value)), 1)
293
295
  ], 64)) : (a(), o(p, { key: 2 }, [
294
- e.placeholder ? (a(), o("div", Ne, m(e.placeholder), 1)) : (a(), o("div", Oe, " "))
296
+ e.placeholder ? (a(), o("div", Oe, m(e.placeholder), 1)) : (a(), o("div", De, " "))
295
297
  ], 64))
296
298
  ], 2)
297
299
  ]),
298
300
  _: 1
299
301
  }, 8, ["disabled", "dismiss-on-click"])),
300
- pe(E("select", x({
302
+ pe(E("select", X({
301
303
  id: e.id,
302
304
  ref_key: "elRef",
303
305
  ref: k,
@@ -308,7 +310,7 @@ const Ee = { class: "relative" }, ze = {
308
310
  disabled: e.disabled || e.loading,
309
311
  multiple: e.multiple,
310
312
  readonly: e.readonly
311
- }, H(s(M), !0)), [
313
+ }, H(s(j), !0)), [
312
314
  (a(!0), o(p, null, z(e.options, (l, n) => (a(), o("option", {
313
315
  key: n,
314
316
  value: l.value,
@@ -318,7 +320,7 @@ const Ee = { class: "relative" }, ze = {
318
320
  [ce, t.value]
319
321
  ]),
320
322
  E("div", {
321
- class: R(s(h).iconWrapper)
323
+ class: R(s(b).iconWrapper)
322
324
  }, [
323
325
  e.loading ? (a(), c(Re, {
324
326
  key: 0,
@@ -326,14 +328,14 @@ const Ee = { class: "relative" }, ze = {
326
328
  }, null, 8, ["size"])) : me(e.$slots, "icon", { key: 1 }, () => [
327
329
  K(Ae, {
328
330
  icon: s(ge),
329
- class: R([s(h).icon])
331
+ class: R([s(b).icon])
330
332
  }, null, 8, ["icon", "class"])
331
333
  ])
332
334
  ], 2)
333
335
  ]),
334
336
  s(ie) ? ye("", !0) : (a(), c($e, {
335
337
  key: 0,
336
- error: s(j),
338
+ error: s(x),
337
339
  helper: e.helper
338
340
  }, null, 8, ["error", "helper"]))
339
341
  ]),
@@ -1,22 +1,22 @@
1
- const t = {
1
+ const s = {
2
2
  classes: {
3
3
  wrapper: "",
4
- box: ({ props: e, data: s }) => {
4
+ box: ({ props: e, data: t }) => {
5
5
  const r = ["w-full border border-gray-300 dark:border-gray-700 pr-8 outline-transparent outline outline-2 outline-offset-[-1px] transition-all duration-150 ease-in-out rounded-md shadow-sm"];
6
- return !s.errorInternal && !e.disabled && r.push("hover:border-gray-400 dark:hover:border-gray-500"), e.size === "xs" ? r.push("px-2 py-1 text-xs") : e.size === "sm" ? r.push("px-2 py-2 text-sm") : e.size === "lg" ? r.push("px-4 py-3 text-lg") : e.size === "xl" ? r.push("px-5 py-4 text-xl") : r.push("px-3 py-2"), e.disabled ? r.push("bg-gray-100 dark:bg-gray-900 text-gray-500 cursor-not-allowed") : r.push("bg-white dark:bg-gray-800 text-gray-700 dark:text-gray-200"), s.errorInternal ? r.push("border-red-500 dark:border-red-400 group-focus:outline-red-500") : e.disabled || r.push("group-focus:outline-[color:var(--x-select-border)]"), r;
6
+ return !t.errorInternal && !e.disabled && r.push("hover:border-gray-400 dark:hover:border-gray-500"), e.size === "xs" ? r.push("px-2 py-1 text-xs") : e.size === "sm" ? r.push("px-2 py-2 text-sm") : e.size === "lg" ? r.push("px-4 py-3 text-lg") : e.size === "xl" ? r.push("px-5 py-4 text-xl") : r.push("px-3 py-2"), e.disabled ? r.push("bg-gray-100 dark:bg-gray-900 text-gray-500 cursor-not-allowed") : r.push("bg-white dark:bg-gray-800 text-gray-700 dark:text-gray-200"), t.errorInternal ? r.push("border-red-500 dark:border-red-400 group-focus:outline-red-500") : e.disabled || r.push("group-focus:outline-[color:var(--x-select-border)]"), r;
7
7
  },
8
- content: "py-1 max-h-72 overflow-scroll",
8
+ content: "py-1 max-h-72 overflow-y-auto",
9
9
  iconWrapper: "pointer-events-none absolute inset-y-0 right-0 flex items-center px-2",
10
10
  icon: ({ props: e }) => {
11
- const s = [""];
12
- return e.size === "sm" || e.size === "xs" ? s.push("h-3 w-3") : e.size === "lg" ? s.push("h-6 w-6") : e.size === "xl" ? s.push("h-7 w-7") : s.push("h-5 w-5"), e.disabled ? s.push("text-gray-300 dark:text-gray-500") : s.push("text-gray-500 dark:text-gray-400"), s;
11
+ const t = [""];
12
+ return e.size === "sm" || e.size === "xs" ? t.push("h-3 w-3") : e.size === "lg" ? t.push("h-6 w-6") : e.size === "xl" ? t.push("h-7 w-7") : t.push("h-5 w-5"), e.disabled ? t.push("text-gray-300 dark:text-gray-500") : t.push("text-gray-500 dark:text-gray-400"), t;
13
13
  }
14
14
  },
15
- styles: ({ colors: e, css: s }) => {
15
+ styles: ({ colors: e, css: t }) => {
16
16
  const r = e.getPalette("primary");
17
- return s.get("border", r[500]);
17
+ return t.get("border", r[500]);
18
18
  }
19
- }, l = t;
19
+ }, a = s;
20
20
  export {
21
- l as default
21
+ a as default
22
22
  };
@@ -1,11 +1,11 @@
1
- const s = {
1
+ const a = {
2
2
  classes: {
3
3
  wrapper: "",
4
4
  box: ({ props: e, data: t }) => {
5
5
  const r = ["w-full border-b text-sm px-4 border-gray-300 dark:border-gray-700 pr-8 outline-transparent outline outline-2 outline-offset-[-1px] transition-all duration-150 ease-in-out"];
6
6
  return !t.errorInternal && !e.disabled && r.push("hover:border-gray-400 dark:hover:border-gray-500"), e.size === "xs" || e.size === "sm" ? r.push("py-1.5") : e.size === "lg" || e.size === "xl" ? r.push("py-3.5") : r.push("py-2.5"), e.disabled ? r.push("bg-gray-100 dark:bg-gray-900 text-gray-300 cursor-not-allowed") : e.readonly ? r.push("bg-white dark:bg-gray-900 text-gray-700") : r.push("bg-gray-50 dark:bg-gray-800 text-gray-700 dark:text-gray-200"), t.errorInternal ? r.push("border-red-500 dark:border-red-400 group-focus:outline-red-500") : e.disabled || r.push("group-focus:outline-[color:var(--x-select-border)]"), r;
7
7
  },
8
- content: "py-1 max-h-72 overflow-scroll",
8
+ content: "py-1 max-h-72 overflow-y-auto",
9
9
  iconWrapper: "pointer-events-none absolute inset-y-0 right-0 flex items-center px-2",
10
10
  icon: ({ props: e }) => {
11
11
  const t = ["h-5 w-5"];
@@ -16,7 +16,7 @@ const s = {
16
16
  const r = e.getPalette("primary");
17
17
  return t.get("border", r[500]);
18
18
  }
19
- }, a = s;
19
+ }, s = a;
20
20
  export {
21
- a as default
21
+ s as default
22
22
  };
@@ -1,10 +1,17 @@
1
- import type { ExtractPublicPropTypes } from 'vue';
1
+ import type { ExtractPublicPropTypes, PropType } from 'vue';
2
2
  import { type ThemeComponent } from '../../composables/useTheme';
3
+ declare const shapes: readonly ["line", "circle"];
4
+ export type SkeletonShape = typeof shapes[number];
3
5
  declare const skeletonProps: {
4
6
  tag: {
5
7
  type: StringConstructor;
6
8
  default: string;
7
9
  };
10
+ shape: {
11
+ type: PropType<"line" | "circle">;
12
+ default: string;
13
+ validator: (val: SkeletonShape) => boolean;
14
+ };
8
15
  };
9
16
  export type SkeletonProps = ExtractPublicPropTypes<typeof skeletonProps>;
10
17
  type InternalClasses = 'wrapper';
@@ -15,12 +22,23 @@ declare const _default: import("vue").DefineComponent<{
15
22
  type: StringConstructor;
16
23
  default: string;
17
24
  };
25
+ shape: {
26
+ type: PropType<"line" | "circle">;
27
+ default: string;
28
+ validator: (val: "line" | "circle") => boolean;
29
+ };
18
30
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
31
  tag: {
20
32
  type: StringConstructor;
21
33
  default: string;
22
34
  };
35
+ shape: {
36
+ type: PropType<"line" | "circle">;
37
+ default: string;
38
+ validator: (val: "line" | "circle") => boolean;
39
+ };
23
40
  }>>, {
24
41
  tag: string;
42
+ shape: "line" | "circle";
25
43
  }, {}>;
26
44
  export default _default;
@@ -1,23 +1,33 @@
1
- import { defineComponent as r, openBlock as c, createBlock as p, resolveDynamicComponent as m, normalizeStyle as i, unref as e, normalizeClass as f, withCtx as u, createTextVNode as _ } from "vue";
2
- import { useTheme as d } from "../../composables/useTheme.js";
3
- const y = {
1
+ import { defineComponent as c, openBlock as p, createBlock as i, resolveDynamicComponent as m, normalizeStyle as d, unref as t, normalizeClass as u, withCtx as f, createTextVNode as _ } from "vue";
2
+ import { useTheme as h } from "../../composables/useTheme.js";
3
+ const y = ["line", "circle"], s = {
4
+ shape: y
5
+ }, k = {
4
6
  tag: {
5
7
  type: String,
6
8
  default: "div"
9
+ },
10
+ shape: {
11
+ type: String,
12
+ default: "line",
13
+ validator: (e) => s.shape.includes(e)
7
14
  }
8
- }, k = { name: "XSkeleton" }, h = /* @__PURE__ */ r({
9
- ...k,
10
- props: y,
11
- setup(t) {
12
- const s = t, { styles: o, classes: n, className: a } = d("Skeleton", {}, s);
13
- return (l, C) => (c(), p(m(l.tag), {
14
- style: i(e(o)),
15
- class: f([
16
- e(a),
17
- e(n).wrapper
15
+ }, S = {
16
+ name: "XSkeleton",
17
+ validators: s
18
+ }, x = /* @__PURE__ */ c({
19
+ ...S,
20
+ props: k,
21
+ setup(e) {
22
+ const a = e, { styles: o, classes: n, className: l } = h("Skeleton", {}, a);
23
+ return (r, g) => (p(), i(m(r.tag), {
24
+ style: d(t(o)),
25
+ class: u([
26
+ t(l),
27
+ t(n).wrapper
18
28
  ])
19
29
  }, {
20
- default: u(() => [
30
+ default: f(() => [
21
31
  _(" ​ ")
22
32
  ]),
23
33
  _: 1
@@ -25,5 +35,5 @@ const y = {
25
35
  }
26
36
  });
27
37
  export {
28
- h as default
38
+ x as default
29
39
  };
@@ -1,8 +1,11 @@
1
- const e = {
1
+ const a = {
2
2
  classes: {
3
- wrapper: "animate-pulse bg-gray-300 dark:bg-gray-600 rounded-md"
3
+ wrapper: ({ props: s }) => {
4
+ const e = ["animate-pulse bg-gray-300 dark:bg-gray-600"];
5
+ return s.shape === "circle" ? e.push("w-8 h-8 rounded-full") : e.push("rounded-md"), e;
6
+ }
4
7
  }
5
- }, a = e;
8
+ }, r = a;
6
9
  export {
7
- a as default
10
+ r as default
8
11
  };