@poveste/controls 0.15.0 → 0.16.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.
@@ -0,0 +1,41 @@
1
+ //#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.43_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useKbd.js
2
+ function e() {
3
+ return {
4
+ ALT: "Alt",
5
+ ARROW_DOWN: "ArrowDown",
6
+ ARROW_LEFT: "ArrowLeft",
7
+ ARROW_RIGHT: "ArrowRight",
8
+ ARROW_UP: "ArrowUp",
9
+ BACKSPACE: "Backspace",
10
+ CAPS_LOCK: "CapsLock",
11
+ CONTROL: "Control",
12
+ DELETE: "Delete",
13
+ END: "End",
14
+ ENTER: "Enter",
15
+ ESCAPE: "Escape",
16
+ F1: "F1",
17
+ F10: "F10",
18
+ F11: "F11",
19
+ F12: "F12",
20
+ F2: "F2",
21
+ F3: "F3",
22
+ F4: "F4",
23
+ F5: "F5",
24
+ F6: "F6",
25
+ F7: "F7",
26
+ F8: "F8",
27
+ F9: "F9",
28
+ HOME: "Home",
29
+ META: "Meta",
30
+ PAGE_DOWN: "PageDown",
31
+ PAGE_UP: "PageUp",
32
+ SHIFT: "Shift",
33
+ SPACE: " ",
34
+ TAB: "Tab",
35
+ CTRL: "Control",
36
+ ASTERISK: "*",
37
+ SPACE_CODE: "Space"
38
+ };
39
+ }
40
+ //#endregion
41
+ export { e as t };
@@ -0,0 +1,27 @@
1
+ import { E as e } from "./HstWrapper-Bm5H3_to.es.js";
2
+ import { computed as t, ref as n } from "@poveste/vendors/vue";
3
+ //#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.43_typescript@6.0.3_/node_modules/reka-ui/dist/shared/clamp.js
4
+ function r(e, t = -Infinity, n = Infinity) {
5
+ return Math.min(n, Math.max(t, e));
6
+ }
7
+ function i(e, t) {
8
+ let n = e, r = t.toString(), i = r.indexOf("."), a = i >= 0 ? r.length - i : 0;
9
+ if (a > 0) {
10
+ let e = 10 ** a;
11
+ n = Math.round(n * e) / e;
12
+ }
13
+ return n;
14
+ }
15
+ function a(e, t, n, r) {
16
+ t = Number(t), n = Number(n);
17
+ let a = (e - (Number.isNaN(t) ? 0 : t)) % r, o = i(Math.abs(a) * 2 >= r ? e + Math.sign(a) * (r - Math.abs(a)) : e - a, r);
18
+ return Number.isNaN(t) ? !Number.isNaN(n) && o > n && (o = Math.floor(i(n / r, r)) * r) : o < t ? o = t : !Number.isNaN(n) && o > n && (o = t + Math.floor(i((n - t) / r, r)) * r), o = i(o, r), o;
19
+ }
20
+ //#endregion
21
+ //#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.43_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useLocale.js
22
+ function o(r) {
23
+ let i = e({ locale: n("en") });
24
+ return t(() => r?.value || i.locale?.value || "en");
25
+ }
26
+ //#endregion
27
+ export { r as n, a as r, o as t };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@poveste/controls",
3
3
  "type": "module",
4
- "version": "0.15.0",
4
+ "version": "0.16.0",
5
5
  "description": "Prebuilt controls components",
6
6
  "author": {
7
7
  "name": "Sorin Gitlan",
@@ -42,36 +42,38 @@
42
42
  "dist"
43
43
  ],
44
44
  "engines": {
45
- "node": "^22.22.2 || ^24.15.0 || >=26.0.0"
45
+ "node": ">=22.22.2"
46
46
  },
47
47
  "dependencies": {
48
- "@codemirror/commands": "^6.7.1",
48
+ "@codemirror/commands": "^6.11.1",
49
49
  "@codemirror/lang-json": "^6.0.1",
50
- "@codemirror/language": "^6.10.6",
51
- "@codemirror/lint": "^6.8.4",
52
- "@codemirror/state": "^6.4.1",
50
+ "@codemirror/language": "^6.12.4",
51
+ "@codemirror/lint": "^6.9.7",
52
+ "@codemirror/state": "^6.7.6",
53
53
  "@codemirror/theme-one-dark": "^6.1.2",
54
- "@codemirror/view": "^6.35.0",
55
- "@poveste/shared": "^0.15.0",
56
- "@poveste/vendors": "^0.15.0"
54
+ "@codemirror/view": "^6.43.13",
55
+ "@poveste/shared": "^0.16.0",
56
+ "@poveste/vendors": "^0.16.0"
57
57
  },
58
58
  "devDependencies": {
59
+ "@iconify/vue": "^5.0.3",
60
+ "@internationalized/date": "^3.12.4",
59
61
  "@tailwindcss/cli": "^4.3.3",
60
62
  "@tailwindcss/postcss": "^4.3.3",
61
- "@types/node": "^22.10.1",
62
- "@vitejs/plugin-vue": "^6.0.0",
63
- "@vue/runtime-dom": "^3.5.26",
64
- "@vue/test-utils": "^2.4.6",
63
+ "@types/node": "^26.6.3",
64
+ "@vitejs/plugin-vue": "^6.0.9",
65
+ "@vue/runtime-dom": "^3.5.43",
66
+ "@vue/test-utils": "^2.5.1",
65
67
  "@vueuse/core": "^15.0.0",
66
68
  "concurrently": "^10.0.5",
67
- "floating-vue": "5.2.2",
68
- "jsdom": "^30.0.1",
69
+ "jsdom": "^30.1.1",
69
70
  "postcss": "^8.5.23",
71
+ "reka-ui": "^2.10.5",
70
72
  "tailwindcss": "^4.3.3",
71
73
  "typescript": "6.0.3",
72
- "vite": "^8.2.0",
73
- "vitest": "^5.0.0",
74
- "vue": "^3.5.26",
74
+ "vite": "^8.3.1",
75
+ "vitest": "^5.0.2",
76
+ "vue": "^3.5.43",
75
77
  "vue-tsc": "^3.3.11"
76
78
  },
77
79
  "scripts": {
@@ -1,22 +0,0 @@
1
- import { createBlock as e, createElementBlock as t, createElementVNode as n, createTextVNode as r, defineComponent as i, openBlock as a, renderSlot as o, resolveDynamicComponent as s, toDisplayString as c, unref as l, withCtx as u, withDirectives as d } from "@poveste/vendors/vue";
2
- import { VTooltip as f } from "@poveste/vendors/floating-vue";
3
- //#region src/components/HstWrapper.vue?vue&type=script&setup=true&lang.ts
4
- var p = { class: "w-28 whitespace-nowrap text-ellipsis overflow-hidden shrink-0" }, m = { class: "grow max-w-full flex items-center gap-1" }, h = { class: "block grow max-w-full" }, g = /* @__PURE__ */ i({
5
- name: "HstWrapper",
6
- props: {
7
- title: { default: void 0 },
8
- tag: { default: "label" }
9
- },
10
- setup(i) {
11
- return (g, _) => (a(), e(s(i.tag), { class: "poveste-wrapper histoire-wrapper p-2 hover:bg-primary-100 dark:hover:bg-primary-800 flex gap-2 flex-wrap" }, {
12
- default: u(() => [d((a(), t("span", p, [r(c(i.title), 1)])), [[l(f), {
13
- content: i.title,
14
- placement: "left",
15
- distance: 12
16
- }]]), n("span", m, [n("span", h, [o(g.$slots, "default")]), o(g.$slots, "actions")])]),
17
- _: 3
18
- }));
19
- }
20
- });
21
- //#endregion
22
- export { g as t };