@poveste/controls 0.14.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.
- package/README.md +1 -1
- package/dist/HstColor-DHgxKTkm.es.js +2405 -0
- package/dist/HstDate-Ct5Jp_ZD.es.js +4954 -0
- package/dist/{HstJson-Dz6cYiFP.es.js → HstJson-D83KEa9o.es.js} +2846 -2554
- package/dist/HstWrapper-Bm5H3_to.es.js +2835 -0
- package/dist/PopoverTrigger-BVAfE9fE.es.js +974 -0
- package/dist/VisuallyHiddenInput-0it-_FH2.es.js +183 -0
- package/dist/components/HstCopyIcon.story.vue.d.ts +2 -1
- package/dist/components/HstCopyIcon.vue.d.ts +3 -2
- package/dist/components/HstTooltip.vue.d.ts +39 -0
- package/dist/components/HstWrapper.vue.d.ts +10 -9
- package/dist/components/button/HstButton.story.vue.d.ts +2 -1
- package/dist/components/button/HstButton.vue.d.ts +6 -5
- package/dist/components/button/HstButtonGroup.story.vue.d.ts +2 -1
- package/dist/components/button/HstButtonGroup.vue.d.ts +3 -2
- package/dist/components/checkbox/CheckboxVisual.vue.d.ts +7 -0
- package/dist/components/checkbox/HstCheckbox.story.vue.d.ts +2 -1
- package/dist/components/checkbox/HstCheckbox.vue.d.ts +4 -3
- package/dist/components/checkbox/HstCheckboxList.story.vue.d.ts +2 -1
- package/dist/components/checkbox/HstCheckboxList.vue.d.ts +3 -2
- package/dist/components/checkbox/HstSimpleCheckbox.story.vue.d.ts +2 -1
- package/dist/components/checkbox/HstSimpleCheckbox.vue.d.ts +8 -7
- package/dist/components/color/HstColor.story.vue.d.ts +3 -0
- package/dist/components/color/HstColor.vue.d.ts +25 -0
- package/dist/components/colorselect/HstColorSelect.story.vue.d.ts +2 -1
- package/dist/components/colorselect/HstColorSelect.vue.d.ts +4 -3
- package/dist/components/date/HstDate.story.vue.d.ts +3 -0
- package/dist/components/date/HstDate.vue.d.ts +30 -0
- package/dist/components/date/iso.d.ts +5 -0
- package/dist/components/design-tokens/HstColorShades.story.vue.d.ts +2 -1
- package/dist/components/design-tokens/HstColorShades.vue.d.ts +3 -2
- package/dist/components/design-tokens/HstTokenGrid.story.vue.d.ts +2 -1
- package/dist/components/design-tokens/HstTokenGrid.vue.d.ts +3 -3
- package/dist/components/design-tokens/HstTokenList.story.vue.d.ts +2 -1
- package/dist/components/design-tokens/HstTokenList.vue.d.ts +3 -2
- package/dist/components/json/HstJson.story.vue.d.ts +2 -1
- package/dist/components/json/HstJson.vue.d.ts +3 -2
- package/dist/components/json/serialize.d.ts +10 -12
- package/dist/components/number/HstNumber.story.vue.d.ts +2 -1
- package/dist/components/number/HstNumber.vue.d.ts +4 -3
- package/dist/components/radio/HstRadio.story.vue.d.ts +2 -1
- package/dist/components/radio/HstRadio.vue.d.ts +3 -2
- package/dist/components/select/CustomSelect.vue.d.ts +4 -3
- package/dist/components/select/HstSelect.story.vue.d.ts +2 -1
- package/dist/components/select/HstSelect.vue.d.ts +3 -2
- package/dist/components/slider/HstSlider.story.vue.d.ts +2 -1
- package/dist/components/slider/HstSlider.vue.d.ts +3 -2
- package/dist/components/text/HstText.story.vue.d.ts +2 -1
- package/dist/components/text/HstText.vue.d.ts +4 -3
- package/dist/components/textarea/HstTextarea.story.vue.d.ts +2 -1
- package/dist/components/textarea/HstTextarea.vue.d.ts +4 -3
- package/dist/index.d.ts +332 -50
- package/dist/index.es.css +1 -1
- package/dist/index.es.js +2179 -414
- package/dist/portal-target.d.ts +13 -0
- package/dist/style-standalone.css +126 -447
- package/dist/useKbd-DQM4Oqri.es.js +41 -0
- package/dist/useLocale-Dr4PRYn1.es.js +27 -0
- package/package.json +24 -22
- package/dist/HstWrapper-C557fRoN.es.js +0 -22
|
@@ -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.
|
|
4
|
+
"version": "0.16.0",
|
|
5
5
|
"description": "Prebuilt controls components",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Sorin Gitlan",
|
|
@@ -42,37 +42,39 @@
|
|
|
42
42
|
"dist"
|
|
43
43
|
],
|
|
44
44
|
"engines": {
|
|
45
|
-
"node": "
|
|
45
|
+
"node": ">=22.22.2"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@codemirror/commands": "^6.
|
|
48
|
+
"@codemirror/commands": "^6.11.1",
|
|
49
49
|
"@codemirror/lang-json": "^6.0.1",
|
|
50
|
-
"@codemirror/language": "^6.
|
|
51
|
-
"@codemirror/lint": "^6.
|
|
52
|
-
"@codemirror/state": "^6.
|
|
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.
|
|
55
|
-
"@poveste/shared": "^0.
|
|
56
|
-
"@poveste/vendors": "^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": "^
|
|
62
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
63
|
-
"@vue/runtime-dom": "^3.5.
|
|
64
|
-
"@vue/test-utils": "^2.
|
|
65
|
-
"@vueuse/core": "^
|
|
66
|
-
"concurrently": "^
|
|
67
|
-
"
|
|
68
|
-
"jsdom": "^30.0.1",
|
|
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",
|
|
67
|
+
"@vueuse/core": "^15.0.0",
|
|
68
|
+
"concurrently": "^10.0.5",
|
|
69
|
+
"jsdom": "^30.1.1",
|
|
69
70
|
"postcss": "^8.5.23",
|
|
71
|
+
"reka-ui": "^2.10.5",
|
|
70
72
|
"tailwindcss": "^4.3.3",
|
|
71
|
-
"typescript": "
|
|
72
|
-
"vite": "^8.
|
|
73
|
-
"vitest": "^5.0.
|
|
74
|
-
"vue": "^3.5.
|
|
75
|
-
"vue-tsc": "^
|
|
73
|
+
"typescript": "6.0.3",
|
|
74
|
+
"vite": "^8.3.1",
|
|
75
|
+
"vitest": "^5.0.2",
|
|
76
|
+
"vue": "^3.5.43",
|
|
77
|
+
"vue-tsc": "^3.3.11"
|
|
76
78
|
},
|
|
77
79
|
"scripts": {
|
|
78
80
|
"build": "rimraf dist && pnpm run build:css && vite build && pnpm run build:types",
|
|
@@ -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 };
|