@nexxtmove/ui 0.0.1

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 ADDED
@@ -0,0 +1,13 @@
1
+ # Nexxtmove UI
2
+
3
+ ## Installation
4
+
5
+ ```bash
6
+ pnpm add @nexxtmove/ui
7
+ ```
8
+
9
+ ## Usage
10
+
11
+ ```typescript
12
+ import { Button } from '@nexxtmove/ui'
13
+ ```
@@ -0,0 +1,85 @@
1
+ import { ComponentOptionsMixin } from 'vue';
2
+ import { ComponentProvideOptions } from 'vue';
3
+ import { DefineComponent } from 'vue';
4
+ import { PublicProps } from 'vue';
5
+
6
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
7
+
8
+ declare const __VLS_component_2: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
9
+ "update:modelValue": (value: string) => any;
10
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
13
+
14
+ declare const __VLS_component_3: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
15
+
16
+ declare type __VLS_Props = {
17
+ disabled?: boolean;
18
+ };
19
+
20
+ declare type __VLS_Props_2 = {
21
+ value: string;
22
+ };
23
+
24
+ declare type __VLS_PublicProps = {
25
+ modelValue?: string;
26
+ };
27
+
28
+ declare function __VLS_template(): {
29
+ attrs: Partial<{}>;
30
+ slots: {
31
+ default?(_: {}): any;
32
+ };
33
+ refs: {};
34
+ rootEl: HTMLButtonElement;
35
+ };
36
+
37
+ declare function __VLS_template_2(): {
38
+ attrs: Partial<{}>;
39
+ slots: {
40
+ default?(_: {}): any;
41
+ };
42
+ refs: {};
43
+ rootEl: any;
44
+ };
45
+
46
+ declare function __VLS_template_3(): {
47
+ attrs: Partial<{}>;
48
+ slots: {
49
+ default?(_: {}): any;
50
+ };
51
+ refs: {};
52
+ rootEl: any;
53
+ };
54
+
55
+ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
56
+
57
+ declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
58
+
59
+ declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
60
+
61
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
62
+ new (): {
63
+ $slots: S;
64
+ };
65
+ };
66
+
67
+ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
68
+ new (): {
69
+ $slots: S;
70
+ };
71
+ };
72
+
73
+ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
74
+ new (): {
75
+ $slots: S;
76
+ };
77
+ };
78
+
79
+ export declare const Button: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
80
+
81
+ export declare const Tab: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
82
+
83
+ export declare const Tabs: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
84
+
85
+ export { }
package/dist/index.js ADDED
@@ -0,0 +1,62 @@
1
+ import { defineComponent as s, createElementBlock as i, openBlock as d, renderSlot as n, useModel as p, createBlock as r, unref as l, withCtx as o, createVNode as m } from "vue";
2
+ import { TabsRoot as _, TabsList as b, TabsTrigger as f } from "reka-ui";
3
+ const T = ["disabled"], B = /* @__PURE__ */ s({
4
+ __name: "Button",
5
+ props: {
6
+ disabled: { type: Boolean }
7
+ },
8
+ setup(t) {
9
+ return (e, a) => (d(), i("button", {
10
+ disabled: t.disabled,
11
+ class: "font-bold border px-3 py-2 disabled:opacity-50"
12
+ }, [
13
+ n(e.$slots, "default")
14
+ ], 8, T));
15
+ }
16
+ }), x = /* @__PURE__ */ s({
17
+ __name: "Tabs",
18
+ props: {
19
+ modelValue: {},
20
+ modelModifiers: {}
21
+ },
22
+ emits: ["update:modelValue"],
23
+ setup(t) {
24
+ const e = p(t, "modelValue");
25
+ return (a, u) => (d(), r(l(_), {
26
+ modelValue: e.value,
27
+ "onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c),
28
+ class: "border inline-flex"
29
+ }, {
30
+ default: o(() => [
31
+ m(l(b), null, {
32
+ default: o(() => [
33
+ n(a.$slots, "default")
34
+ ]),
35
+ _: 3
36
+ })
37
+ ]),
38
+ _: 3
39
+ }, 8, ["modelValue"]));
40
+ }
41
+ }), $ = /* @__PURE__ */ s({
42
+ __name: "Tab",
43
+ props: {
44
+ value: {}
45
+ },
46
+ setup(t) {
47
+ return (e, a) => (d(), r(l(f), {
48
+ value: t.value,
49
+ class: "px-4 py-2 data-[state=active]:font-bold"
50
+ }, {
51
+ default: o(() => [
52
+ n(e.$slots, "default")
53
+ ]),
54
+ _: 3
55
+ }, 8, ["value"]));
56
+ }
57
+ });
58
+ export {
59
+ B as Button,
60
+ $ as Tab,
61
+ x as Tabs
62
+ };
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@nexxtmove/ui",
3
+ "type": "module",
4
+ "version": "0.0.1",
5
+ "exports": "./dist/index.js",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "dependencies": {
10
+ "reka-ui": "^2.6.1"
11
+ },
12
+ "peerDependencies": {
13
+ "tailwindcss": "^4.0.0",
14
+ "vue": "^3.0.0"
15
+ },
16
+ "devDependencies": {
17
+ "@storybook/vue3-vite": "^10.1.6",
18
+ "@tailwindcss/vite": "^4.1.17",
19
+ "@vitejs/plugin-vue": "^6.0.2",
20
+ "@vue/test-utils": "^2.4.6",
21
+ "@vue/tsconfig": "^0.8.1",
22
+ "jsdom": "^27.3.0",
23
+ "prettier": "^3.7.4",
24
+ "storybook": "^10.1.6",
25
+ "vite": "^7.2.7",
26
+ "vite-plugin-dts": "^4.5.4",
27
+ "vitest": "^4.0.15"
28
+ },
29
+ "scripts": {
30
+ "test": "vitest",
31
+ "build": "vite build",
32
+ "format": "prettier --write .",
33
+ "storybook": "storybook dev",
34
+ "storybook:build": "storybook build"
35
+ }
36
+ }