@dragcraft/ui 0.0.2

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025-PRESENT hackycy <https://github.com/hackycy>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,37 @@
1
+ import { PropType } from "vue";
2
+ //#region src/components/DcScrollArea.d.ts
3
+ type ScrollAreaType = 'auto' | 'always' | 'scroll' | 'hover';
4
+ interface ScrollAreaProps {
5
+ type?: ScrollAreaType;
6
+ scrollHideDelay?: number;
7
+ }
8
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
9
+ type: {
10
+ type: PropType<ScrollAreaType>;
11
+ default: string;
12
+ };
13
+ scrollHideDelay: {
14
+ type: NumberConstructor;
15
+ default: number;
16
+ };
17
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
18
+ [key: string]: any;
19
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
+ scroll: (_event: Event) => true;
21
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
22
+ type: {
23
+ type: PropType<ScrollAreaType>;
24
+ default: string;
25
+ };
26
+ scrollHideDelay: {
27
+ type: NumberConstructor;
28
+ default: number;
29
+ };
30
+ }>> & Readonly<{
31
+ onScroll?: ((_event: Event) => any) | undefined;
32
+ }>, {
33
+ type: ScrollAreaType;
34
+ scrollHideDelay: number;
35
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
36
+ //#endregion
37
+ export { _default as DcScrollArea, type ScrollAreaProps, type ScrollAreaType };
package/dist/index.mjs ADDED
@@ -0,0 +1,305 @@
1
+ import { computed, defineComponent, h, mergeProps, nextTick, onBeforeUnmount, onMounted, onUpdated, ref, watch } from "vue";
2
+ //#region src/components/DcScrollArea.ts
3
+ const SCROLL_END_DELAY = 100;
4
+ const DEFAULT_THUMB_MIN_SIZE = 24;
5
+ function clamp(value, min, max) {
6
+ return Math.min(max, Math.max(min, value));
7
+ }
8
+ function readPixelValue(value, fallback = 0) {
9
+ const parsed = Number.parseFloat(value);
10
+ return Number.isFinite(parsed) ? parsed : fallback;
11
+ }
12
+ var DcScrollArea_default = defineComponent({
13
+ name: "DcScrollArea",
14
+ inheritAttrs: false,
15
+ props: {
16
+ type: {
17
+ type: String,
18
+ default: "hover"
19
+ },
20
+ scrollHideDelay: {
21
+ type: Number,
22
+ default: 600
23
+ }
24
+ },
25
+ emits: { scroll: (_event) => true },
26
+ setup(props, { attrs, emit, slots }) {
27
+ const rootRef = ref(null);
28
+ const viewportRef = ref(null);
29
+ const contentRef = ref(null);
30
+ const scrollbarRef = ref(null);
31
+ const thumbRef = ref(null);
32
+ const overflowing = ref(false);
33
+ const visible = ref(false);
34
+ const hovered = ref(false);
35
+ const scrolling = ref(false);
36
+ const dragging = ref(false);
37
+ let resizeObserver = null;
38
+ let updateFrame = null;
39
+ let hideTimer = null;
40
+ let scrollEndTimer = null;
41
+ let activePointerId = null;
42
+ let pointerOffset = 0;
43
+ let lastScrollTop = 0;
44
+ let metrics = {
45
+ maxScrollTop: 0,
46
+ maxThumbOffset: 0,
47
+ paddingStart: 0,
48
+ thumbSize: 0
49
+ };
50
+ function clearHideTimer() {
51
+ if (hideTimer === null) return;
52
+ clearTimeout(hideTimer);
53
+ hideTimer = null;
54
+ }
55
+ function clearScrollEndTimer() {
56
+ if (scrollEndTimer === null) return;
57
+ clearTimeout(scrollEndTimer);
58
+ scrollEndTimer = null;
59
+ }
60
+ function canAutoHide() {
61
+ return props.type === "hover" || props.type === "scroll";
62
+ }
63
+ function scheduleHide() {
64
+ if (!canAutoHide() || dragging.value || scrolling.value) return;
65
+ if (props.type === "hover" && hovered.value) return;
66
+ clearHideTimer();
67
+ hideTimer = setTimeout(() => {
68
+ hideTimer = null;
69
+ if (!dragging.value && !scrolling.value && !(props.type === "hover" && hovered.value)) visible.value = false;
70
+ }, Math.max(0, props.scrollHideDelay));
71
+ }
72
+ function syncVisibility() {
73
+ if (props.type === "always") {
74
+ clearHideTimer();
75
+ visible.value = true;
76
+ return;
77
+ }
78
+ if (props.type === "auto") {
79
+ clearHideTimer();
80
+ visible.value = overflowing.value;
81
+ return;
82
+ }
83
+ if (!overflowing.value) {
84
+ clearHideTimer();
85
+ visible.value = false;
86
+ return;
87
+ }
88
+ if (dragging.value || scrolling.value || props.type === "hover" && hovered.value) {
89
+ clearHideTimer();
90
+ visible.value = true;
91
+ }
92
+ }
93
+ function updateThumbPosition() {
94
+ const viewport = viewportRef.value;
95
+ const scrollbar = scrollbarRef.value;
96
+ const thumb = thumbRef.value;
97
+ if (!viewport || !scrollbar || !thumb) return;
98
+ const clientHeight = viewport.clientHeight;
99
+ const scrollHeight = viewport.scrollHeight;
100
+ const nextOverflowing = clientHeight > 0 && scrollHeight > clientHeight + 1;
101
+ overflowing.value = nextOverflowing;
102
+ if (!nextOverflowing) {
103
+ metrics = {
104
+ maxScrollTop: 0,
105
+ maxThumbOffset: 0,
106
+ paddingStart: 0,
107
+ thumbSize: 0
108
+ };
109
+ thumb.style.display = "none";
110
+ thumb.style.removeProperty("--_dc-scroll-area-thumb-height");
111
+ thumb.style.removeProperty("--_dc-scroll-area-thumb-offset");
112
+ syncVisibility();
113
+ return;
114
+ }
115
+ const scrollbarStyle = getComputedStyle(scrollbar);
116
+ const thumbStyle = getComputedStyle(thumb);
117
+ const paddingStart = readPixelValue(scrollbarStyle.paddingTop);
118
+ const paddingEnd = readPixelValue(scrollbarStyle.paddingBottom);
119
+ const trackSize = Math.max(0, scrollbar.clientHeight - paddingStart - paddingEnd);
120
+ const minThumbSize = readPixelValue(thumbStyle.minHeight, DEFAULT_THUMB_MIN_SIZE);
121
+ const thumbSize = Math.min(trackSize, Math.max(minThumbSize, trackSize * clientHeight / scrollHeight));
122
+ const maxThumbOffset = Math.max(0, trackSize - thumbSize);
123
+ const maxScrollTop = Math.max(0, scrollHeight - clientHeight);
124
+ const thumbOffset = paddingStart + maxThumbOffset * (maxScrollTop > 0 ? clamp(viewport.scrollTop, 0, maxScrollTop) / maxScrollTop : 0);
125
+ metrics = {
126
+ maxScrollTop,
127
+ maxThumbOffset,
128
+ paddingStart,
129
+ thumbSize
130
+ };
131
+ thumb.style.display = "";
132
+ thumb.style.setProperty("--_dc-scroll-area-thumb-height", `${thumbSize}px`);
133
+ thumb.style.setProperty("--_dc-scroll-area-thumb-offset", `${thumbOffset}px`);
134
+ syncVisibility();
135
+ }
136
+ function scheduleUpdate() {
137
+ if (updateFrame !== null) return;
138
+ updateFrame = window.requestAnimationFrame(() => {
139
+ updateFrame = null;
140
+ updateThumbPosition();
141
+ });
142
+ }
143
+ function markScrollActivity() {
144
+ if (!overflowing.value) return;
145
+ scrolling.value = true;
146
+ if (canAutoHide()) {
147
+ clearHideTimer();
148
+ visible.value = true;
149
+ }
150
+ clearScrollEndTimer();
151
+ scrollEndTimer = setTimeout(() => {
152
+ scrollEndTimer = null;
153
+ scrolling.value = false;
154
+ scheduleHide();
155
+ }, SCROLL_END_DELAY);
156
+ }
157
+ function handleScroll(event) {
158
+ const viewport = viewportRef.value;
159
+ if (viewport && viewport.scrollTop !== lastScrollTop) {
160
+ lastScrollTop = viewport.scrollTop;
161
+ markScrollActivity();
162
+ }
163
+ scheduleUpdate();
164
+ emit("scroll", event);
165
+ }
166
+ function handlePointerEnter() {
167
+ hovered.value = true;
168
+ if (props.type === "hover" && overflowing.value) {
169
+ clearHideTimer();
170
+ visible.value = true;
171
+ }
172
+ }
173
+ function handlePointerLeave() {
174
+ hovered.value = false;
175
+ scheduleHide();
176
+ }
177
+ function updateScrollFromPointer(clientY) {
178
+ const viewport = viewportRef.value;
179
+ const scrollbar = scrollbarRef.value;
180
+ if (!viewport || !scrollbar || metrics.maxScrollTop <= 0) return;
181
+ const pointerPosition = clientY - scrollbar.getBoundingClientRect().top - metrics.paddingStart - pointerOffset;
182
+ viewport.scrollTop = (metrics.maxThumbOffset > 0 ? clamp(pointerPosition / metrics.maxThumbOffset, 0, 1) : 0) * metrics.maxScrollTop;
183
+ markScrollActivity();
184
+ scheduleUpdate();
185
+ }
186
+ function finishPointerInteraction(event) {
187
+ if (activePointerId === null) return;
188
+ if (event && event.pointerId !== activePointerId) return;
189
+ const scrollbar = scrollbarRef.value;
190
+ if (event && scrollbar?.hasPointerCapture?.(activePointerId)) scrollbar.releasePointerCapture(activePointerId);
191
+ activePointerId = null;
192
+ pointerOffset = 0;
193
+ dragging.value = false;
194
+ scheduleHide();
195
+ }
196
+ function handlePointerDown(event) {
197
+ if (event.button !== 0 || event.isPrimary === false || !overflowing.value) return;
198
+ const scrollbar = scrollbarRef.value;
199
+ const thumb = thumbRef.value;
200
+ if (!scrollbar || !thumb) return;
201
+ event.preventDefault();
202
+ clearHideTimer();
203
+ dragging.value = true;
204
+ visible.value = true;
205
+ activePointerId = event.pointerId;
206
+ const target = event.target;
207
+ if (target === thumb || target instanceof Node && thumb.contains(target)) pointerOffset = event.clientY - thumb.getBoundingClientRect().top;
208
+ else pointerOffset = metrics.thumbSize / 2;
209
+ scrollbar.setPointerCapture?.(event.pointerId);
210
+ updateScrollFromPointer(event.clientY);
211
+ }
212
+ function handlePointerMove(event) {
213
+ if (activePointerId !== event.pointerId) return;
214
+ event.preventDefault();
215
+ updateScrollFromPointer(event.clientY);
216
+ }
217
+ function handleWheel(event) {
218
+ const viewport = viewportRef.value;
219
+ if (!viewport || !overflowing.value) return;
220
+ const unit = event.deltaMode === WheelEvent.DOM_DELTA_LINE ? 16 : event.deltaMode === WheelEvent.DOM_DELTA_PAGE ? viewport.clientHeight : 1;
221
+ const delta = event.deltaY * unit;
222
+ const nextScrollTop = clamp(viewport.scrollTop + delta, 0, metrics.maxScrollTop);
223
+ if (nextScrollTop === viewport.scrollTop) return;
224
+ event.preventDefault();
225
+ viewport.scrollTop = nextScrollTop;
226
+ markScrollActivity();
227
+ scheduleUpdate();
228
+ }
229
+ function observeSizeChanges() {
230
+ const viewport = viewportRef.value;
231
+ const content = contentRef.value;
232
+ if (!viewport || !content) return;
233
+ if (typeof ResizeObserver !== "undefined") {
234
+ resizeObserver = new ResizeObserver(scheduleUpdate);
235
+ resizeObserver.observe(viewport);
236
+ resizeObserver.observe(content);
237
+ }
238
+ lastScrollTop = viewport.scrollTop;
239
+ nextTick(scheduleUpdate);
240
+ }
241
+ watch(() => props.type, () => {
242
+ clearHideTimer();
243
+ if (props.type === "hover" || props.type === "scroll") visible.value = false;
244
+ syncVisibility();
245
+ });
246
+ watch(() => props.scrollHideDelay, () => {
247
+ if (hideTimer !== null) {
248
+ clearHideTimer();
249
+ scheduleHide();
250
+ }
251
+ });
252
+ onMounted(observeSizeChanges);
253
+ onUpdated(scheduleUpdate);
254
+ onBeforeUnmount(() => {
255
+ resizeObserver?.disconnect();
256
+ clearHideTimer();
257
+ clearScrollEndTimer();
258
+ if (updateFrame !== null) window.cancelAnimationFrame(updateFrame);
259
+ activePointerId = null;
260
+ });
261
+ const rootState = computed(() => [
262
+ overflowing.value ? "overflowing" : null,
263
+ visible.value ? "visible" : "hidden",
264
+ scrolling.value ? "scrolling" : null,
265
+ dragging.value ? "dragging" : null
266
+ ].filter(Boolean).join(" "));
267
+ const scrollbarState = computed(() => [visible.value ? "visible" : "hidden", dragging.value ? "dragging" : null].filter(Boolean).join(" "));
268
+ return () => h("div", mergeProps(attrs, {
269
+ "ref": rootRef,
270
+ "class": "dc-scroll-area",
271
+ "data-dc-component": "scroll-area",
272
+ "data-dc-state": rootState.value,
273
+ "onPointerenter": handlePointerEnter,
274
+ "onPointerleave": handlePointerLeave
275
+ }), [h("div", {
276
+ "ref": viewportRef,
277
+ "class": "dc-scroll-area__viewport",
278
+ "data-dc-part": "viewport",
279
+ "onScroll": handleScroll
280
+ }, [h("div", {
281
+ "ref": contentRef,
282
+ "class": "dc-scroll-area__content",
283
+ "data-dc-part": "content"
284
+ }, slots.default?.())]), h("div", {
285
+ "ref": scrollbarRef,
286
+ "class": "dc-scroll-area__scrollbar",
287
+ "data-dc-part": "scrollbar",
288
+ "data-dc-state": scrollbarState.value,
289
+ "aria-hidden": "true",
290
+ "onPointerdown": handlePointerDown,
291
+ "onPointermove": handlePointerMove,
292
+ "onPointerup": finishPointerInteraction,
293
+ "onPointercancel": finishPointerInteraction,
294
+ "onLostpointercapture": finishPointerInteraction,
295
+ "onWheel": handleWheel
296
+ }, [h("div", {
297
+ "ref": thumbRef,
298
+ "class": "dc-scroll-area__thumb",
299
+ "data-dc-part": "thumb",
300
+ "data-dc-state": scrollbarState.value
301
+ })])]);
302
+ }
303
+ });
304
+ //#endregion
305
+ export { DcScrollArea_default as DcScrollArea };
@@ -0,0 +1,22 @@
1
+ [data-dc-component="scroll-area"] > [data-dc-part="scrollbar"] {
2
+ opacity: 0;
3
+ transition: opacity var(--dc-duration-fast, .12s);
4
+ }
5
+
6
+ [data-dc-component="scroll-area"] > [data-dc-part="scrollbar"][data-dc-state~="visible"] {
7
+ opacity: 1;
8
+ }
9
+
10
+ [data-dc-component="scroll-area"] > [data-dc-part="scrollbar"] > [data-dc-part="thumb"] {
11
+ background: var(--dc-scroll-area-thumb-color, #09090b47);
12
+ border-radius: var(--dc-radius-full, 999px);
13
+ transition: background-color var(--dc-duration-fast, .12s);
14
+ }
15
+
16
+ [data-dc-component="scroll-area"] > [data-dc-part="scrollbar"]:hover > [data-dc-part="thumb"] {
17
+ background: var(--dc-scroll-area-thumb-hover-color, #09090b6b);
18
+ }
19
+
20
+ [data-dc-component="scroll-area"][data-dc-state~="dragging"] > [data-dc-part="scrollbar"] > [data-dc-part="thumb"] {
21
+ background: var(--dc-scroll-area-thumb-active-color, #09090b8f);
22
+ }
@@ -0,0 +1,58 @@
1
+ .dc-scroll-area {
2
+ min-width: 0;
3
+ min-height: 0;
4
+ position: relative;
5
+ overflow: hidden;
6
+ }
7
+
8
+ .dc-scroll-area__viewport {
9
+ overscroll-behavior: auto;
10
+ scrollbar-width: none;
11
+ -ms-overflow-style: none;
12
+ -webkit-overflow-scrolling: touch;
13
+ width: 100%;
14
+ min-width: 0;
15
+ height: 100%;
16
+ min-height: 0;
17
+ overflow: hidden scroll;
18
+ }
19
+
20
+ .dc-scroll-area__viewport::-webkit-scrollbar {
21
+ width: 0;
22
+ height: 0;
23
+ display: none;
24
+ }
25
+
26
+ .dc-scroll-area__content {
27
+ box-sizing: border-box;
28
+ min-width: 100%;
29
+ min-height: 100%;
30
+ }
31
+
32
+ .dc-scroll-area__scrollbar {
33
+ top: var(--dc-scroll-area-track-offset, 0px);
34
+ right: var(--dc-scroll-area-track-offset, 0px);
35
+ bottom: var(--dc-scroll-area-track-offset, 0px);
36
+ z-index: 1;
37
+ width: var(--dc-scroll-area-track-size, 8px);
38
+ pointer-events: none;
39
+ touch-action: none;
40
+ user-select: none;
41
+ padding: 0;
42
+ position: absolute;
43
+ }
44
+
45
+ .dc-scroll-area[data-dc-state~="overflowing"] > .dc-scroll-area__scrollbar[data-dc-state~="visible"] {
46
+ pointer-events: auto;
47
+ }
48
+
49
+ .dc-scroll-area__thumb {
50
+ width: var(--dc-scroll-area-thumb-size, 4px);
51
+ height: var(--_dc-scroll-area-thumb-height, 0px);
52
+ min-height: var(--dc-scroll-area-thumb-min-size, 24px);
53
+ transform: translateY(var(--_dc-scroll-area-thumb-offset, 0px));
54
+ will-change: transform;
55
+ position: absolute;
56
+ top: 0;
57
+ right: 0;
58
+ }
@@ -0,0 +1,81 @@
1
+ .dc-scroll-area {
2
+ min-width: 0;
3
+ min-height: 0;
4
+ position: relative;
5
+ overflow: hidden;
6
+ }
7
+
8
+ .dc-scroll-area__viewport {
9
+ overscroll-behavior: auto;
10
+ scrollbar-width: none;
11
+ -ms-overflow-style: none;
12
+ -webkit-overflow-scrolling: touch;
13
+ width: 100%;
14
+ min-width: 0;
15
+ height: 100%;
16
+ min-height: 0;
17
+ overflow: hidden scroll;
18
+ }
19
+
20
+ .dc-scroll-area__viewport::-webkit-scrollbar {
21
+ width: 0;
22
+ height: 0;
23
+ display: none;
24
+ }
25
+
26
+ .dc-scroll-area__content {
27
+ box-sizing: border-box;
28
+ min-width: 100%;
29
+ min-height: 100%;
30
+ }
31
+
32
+ .dc-scroll-area__scrollbar {
33
+ top: var(--dc-scroll-area-track-offset, 0px);
34
+ right: var(--dc-scroll-area-track-offset, 0px);
35
+ bottom: var(--dc-scroll-area-track-offset, 0px);
36
+ z-index: 1;
37
+ width: var(--dc-scroll-area-track-size, 8px);
38
+ pointer-events: none;
39
+ touch-action: none;
40
+ user-select: none;
41
+ padding: 0;
42
+ position: absolute;
43
+ }
44
+
45
+ .dc-scroll-area[data-dc-state~="overflowing"] > .dc-scroll-area__scrollbar[data-dc-state~="visible"] {
46
+ pointer-events: auto;
47
+ }
48
+
49
+ .dc-scroll-area__thumb {
50
+ width: var(--dc-scroll-area-thumb-size, 4px);
51
+ height: var(--_dc-scroll-area-thumb-height, 0px);
52
+ min-height: var(--dc-scroll-area-thumb-min-size, 24px);
53
+ transform: translateY(var(--_dc-scroll-area-thumb-offset, 0px));
54
+ will-change: transform;
55
+ position: absolute;
56
+ top: 0;
57
+ right: 0;
58
+ }
59
+
60
+ [data-dc-component="scroll-area"] > [data-dc-part="scrollbar"] {
61
+ opacity: 0;
62
+ transition: opacity var(--dc-duration-fast, .12s);
63
+ }
64
+
65
+ [data-dc-component="scroll-area"] > [data-dc-part="scrollbar"][data-dc-state~="visible"] {
66
+ opacity: 1;
67
+ }
68
+
69
+ [data-dc-component="scroll-area"] > [data-dc-part="scrollbar"] > [data-dc-part="thumb"] {
70
+ background: var(--dc-scroll-area-thumb-color, #09090b47);
71
+ border-radius: var(--dc-radius-full, 999px);
72
+ transition: background-color var(--dc-duration-fast, .12s);
73
+ }
74
+
75
+ [data-dc-component="scroll-area"] > [data-dc-part="scrollbar"]:hover > [data-dc-part="thumb"] {
76
+ background: var(--dc-scroll-area-thumb-hover-color, #09090b6b);
77
+ }
78
+
79
+ [data-dc-component="scroll-area"][data-dc-state~="dragging"] > [data-dc-part="scrollbar"] > [data-dc-part="thumb"] {
80
+ background: var(--dc-scroll-area-thumb-active-color, #09090b8f);
81
+ }
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@dragcraft/ui",
3
+ "type": "module",
4
+ "version": "0.0.2",
5
+ "description": "Shared Vue UI modules for dragcraft",
6
+ "author": "hackycy <hackycy@outlook.com>",
7
+ "license": "MIT",
8
+ "homepage": "https://github.com/hackycy/dragcraft#readme",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/hackycy/dragcraft.git"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/hackycy/dragcraft/issues"
15
+ },
16
+ "keywords": [],
17
+ "sideEffects": [
18
+ "**/*.css"
19
+ ],
20
+ "exports": {
21
+ ".": "./dist/index.mjs",
22
+ "./styles": "./dist/styles.css",
23
+ "./structure.css": "./dist/structure.css",
24
+ "./recipe.css": "./dist/recipe.css",
25
+ "./package.json": "./package.json"
26
+ },
27
+ "main": "./dist/index.mjs",
28
+ "module": "./dist/index.mjs",
29
+ "types": "./dist/index.d.mts",
30
+ "files": [
31
+ "dist"
32
+ ],
33
+ "peerDependencies": {
34
+ "vue": ">=3.0.0"
35
+ },
36
+ "devDependencies": {
37
+ "@vue/test-utils": "^2.4.11",
38
+ "happy-dom": "^20.10.6",
39
+ "vitest": "^4.0.7",
40
+ "vue": "^3.5.27"
41
+ },
42
+ "scripts": {
43
+ "build": "tsdown",
44
+ "dev": "tsdown --watch",
45
+ "lint": "eslint",
46
+ "release": "bumpp",
47
+ "test": "vitest",
48
+ "typecheck": "tsc"
49
+ }
50
+ }