@equal-experts/kuat-vue 0.4.2 → 0.5.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 +60 -142
- package/dist/FieldSet.vue_vue_type_script_setup_true_lang-D9i4ciy0.js +119 -0
- package/dist/FieldTitle.vue_vue_type_script_setup_true_lang-Bu8UIwRT.js +108 -0
- package/dist/KuatSelect.vue_vue_type_script_setup_true_lang-DP66U_wg.js +493 -0
- package/dist/Toggle.vue_vue_type_script_setup_true_lang-CZM1GrLQ.js +38 -0
- package/dist/accordion.js +7 -6
- package/dist/alert-dialog.js +13 -12
- package/dist/badge.js +4 -3
- package/dist/button-group.js +7 -6
- package/dist/button.js +4 -3
- package/dist/checkbox.d.ts +3 -0
- package/dist/checkbox.js +10 -0
- package/dist/components/ui/checkbox/Checkbox.vue.d.ts +13 -0
- package/dist/components/ui/checkbox/CheckboxField.vue.d.ts +68 -0
- package/dist/components/ui/checkbox/constants.d.ts +4 -0
- package/dist/components/ui/checkbox/index.d.ts +4 -0
- package/dist/components/ui/field/Field.vue.d.ts +48 -0
- package/dist/components/ui/field/FieldContent.vue.d.ts +26 -0
- package/dist/components/ui/field/FieldDescription.vue.d.ts +26 -0
- package/dist/components/ui/field/FieldError.vue.d.ts +33 -0
- package/dist/components/ui/field/FieldGroup.vue.d.ts +26 -0
- package/dist/components/ui/field/FieldLabel.vue.d.ts +26 -0
- package/dist/components/ui/field/FieldLegend.vue.d.ts +43 -0
- package/dist/components/ui/field/FieldSeparator.vue.d.ts +26 -0
- package/dist/components/ui/field/FieldSet.vue.d.ts +26 -0
- package/dist/components/ui/field/FieldTitle.vue.d.ts +26 -0
- package/dist/components/ui/field/constants.d.ts +4 -0
- package/dist/components/ui/field/index.d.ts +12 -0
- package/dist/components/ui/input/Input.vue.d.ts +34 -0
- package/dist/components/ui/input/constants.d.ts +2 -0
- package/dist/components/ui/input/index.d.ts +3 -0
- package/dist/components/ui/radio/RadioField.vue.d.ts +58 -0
- package/dist/components/ui/radio/RadioGroup.vue.d.ts +31 -0
- package/dist/components/ui/radio/RadioGroupItem.vue.d.ts +22 -0
- package/dist/components/ui/radio/constants.d.ts +4 -0
- package/dist/components/ui/radio/index.d.ts +5 -0
- package/dist/components/ui/select/KuatSelect.vue.d.ts +104 -0
- package/dist/components/ui/select/Select.vue.d.ts +28 -0
- package/dist/components/ui/select/SelectContent.vue.d.ts +52 -0
- package/dist/components/ui/select/SelectGroup.vue.d.ts +22 -0
- package/dist/components/ui/select/SelectItem.vue.d.ts +40 -0
- package/dist/components/ui/select/SelectLabel.vue.d.ts +27 -0
- package/dist/components/ui/select/SelectScrollDownButton.vue.d.ts +18 -0
- package/dist/components/ui/select/SelectScrollUpButton.vue.d.ts +18 -0
- package/dist/components/ui/select/SelectSeparator.vue.d.ts +18 -0
- package/dist/components/ui/select/SelectTrigger.vue.d.ts +72 -0
- package/dist/components/ui/select/SelectValue.vue.d.ts +18 -0
- package/dist/components/ui/select/constants.d.ts +18 -0
- package/dist/components/ui/select/index.d.ts +13 -0
- package/dist/components/ui/switch/Switch.vue.d.ts +13 -0
- package/dist/components/ui/switch/SwitchField.vue.d.ts +68 -0
- package/dist/components/ui/switch/constants.d.ts +4 -0
- package/dist/components/ui/switch/index.d.ts +4 -0
- package/dist/components/ui/textarea/Textarea.vue.d.ts +24 -0
- package/dist/components/ui/textarea/constants.d.ts +2 -0
- package/dist/components/ui/textarea/index.d.ts +3 -0
- package/dist/components/ui/toggle/Toggle.vue.d.ts +42 -0
- package/dist/components/ui/toggle/constants.d.ts +4 -0
- package/dist/components/ui/toggle/index.d.ts +3 -0
- package/dist/components/ui/toggle-group/ToggleGroup.vue.d.ts +45 -0
- package/dist/components/ui/toggle-group/ToggleGroupItem.vue.d.ts +49 -0
- package/dist/components/ui/toggle-group/constants.d.ts +2 -0
- package/dist/components/ui/toggle-group/index.d.ts +4 -0
- package/dist/constants-4SN0MW4f.js +61 -0
- package/dist/constants-BpzIL1jq.js +141 -0
- package/dist/constants-CXAkjttx.js +5 -0
- package/dist/constants-CpIWAssv.js +32 -0
- package/dist/constants-D_fYMnOg.js +154 -0
- package/dist/constants-Ils7NSfg.js +131 -0
- package/dist/field.d.ts +3 -0
- package/dist/field.js +19 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +781 -721
- package/dist/input.d.ts +3 -0
- package/dist/input.js +8 -0
- package/dist/radio.d.ts +3 -0
- package/dist/radio.js +11 -0
- package/dist/select.d.ts +3 -0
- package/dist/select.js +19 -0
- package/dist/style.css +1 -1
- package/dist/switch.d.ts +1 -0
- package/dist/switch.js +7 -0
- package/dist/textarea.d.ts +3 -0
- package/dist/textarea.js +8 -0
- package/dist/toggle-group.d.ts +5 -0
- package/dist/toggle-group.js +71 -0
- package/dist/toggle.d.ts +3 -0
- package/dist/toggle.js +10 -0
- package/package.json +47 -11
package/dist/switch.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/ui/switch';
|
package/dist/switch.js
ADDED
package/dist/textarea.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { cn } from './lib/utils';
|
|
2
|
+
export { ToggleGroup, ToggleGroupItem, TOGGLE_GROUP_ORIENTATIONS, } from './components/ui/toggle-group';
|
|
3
|
+
export { TOGGLE_SIZES, TOGGLE_SKINS } from './components/ui/toggle';
|
|
4
|
+
export type { ToggleGroupOrientation } from './components/ui/toggle-group';
|
|
5
|
+
export type { ToggleSize, ToggleSkin } from './components/ui/toggle';
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { c as p } from "./utils-DLUjLwnh.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { defineComponent as n, createBlock as i, openBlock as u, unref as e, mergeProps as g, withCtx as c, renderSlot as d } from "vue";
|
|
4
|
+
import { useForwardPropsEmits as m, ToggleGroupRoot as f, useForwardProps as _, ToggleGroupItem as G } from "reka-ui";
|
|
5
|
+
import { T as w, a as v } from "./constants-CXAkjttx.js";
|
|
6
|
+
import { r as T } from "./index-A7umpmtg.js";
|
|
7
|
+
const z = /* @__PURE__ */ n({
|
|
8
|
+
__name: "ToggleGroup",
|
|
9
|
+
props: {
|
|
10
|
+
rovingFocus: { type: Boolean },
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
orientation: { default: "horizontal" },
|
|
13
|
+
dir: {},
|
|
14
|
+
loop: { type: Boolean },
|
|
15
|
+
asChild: { type: Boolean },
|
|
16
|
+
as: {},
|
|
17
|
+
name: {},
|
|
18
|
+
required: { type: Boolean },
|
|
19
|
+
type: {},
|
|
20
|
+
modelValue: {},
|
|
21
|
+
defaultValue: {},
|
|
22
|
+
class: {}
|
|
23
|
+
},
|
|
24
|
+
emits: ["update:modelValue"],
|
|
25
|
+
setup(s, { emit: o }) {
|
|
26
|
+
const t = s, r = m(t, o);
|
|
27
|
+
return (l, B) => (u(), i(e(f), g({ "data-slot": "toggle-group" }, e(r), {
|
|
28
|
+
class: e(p)("toggle-group", `toggle-group--${t.orientation}`, t.class)
|
|
29
|
+
}), {
|
|
30
|
+
default: c(() => [
|
|
31
|
+
d(l.$slots, "default")
|
|
32
|
+
]),
|
|
33
|
+
_: 3
|
|
34
|
+
}, 16, ["class"]));
|
|
35
|
+
}
|
|
36
|
+
}), E = /* @__PURE__ */ n({
|
|
37
|
+
__name: "ToggleGroupItem",
|
|
38
|
+
props: {
|
|
39
|
+
value: {},
|
|
40
|
+
disabled: { type: Boolean },
|
|
41
|
+
asChild: { type: Boolean },
|
|
42
|
+
as: {},
|
|
43
|
+
class: {},
|
|
44
|
+
size: { default: "regular" },
|
|
45
|
+
skin: { default: "outlined" }
|
|
46
|
+
},
|
|
47
|
+
setup(s) {
|
|
48
|
+
const o = s, t = T(o, "class", "size", "skin"), a = _(t);
|
|
49
|
+
return (r, l) => (u(), i(e(G), g({ "data-slot": "toggle-group-item" }, e(a), {
|
|
50
|
+
class: e(p)(
|
|
51
|
+
"toggle-group-item",
|
|
52
|
+
`toggle-group-item--size-${o.size}`,
|
|
53
|
+
`toggle-group-item--skin-${o.skin}`,
|
|
54
|
+
o.class
|
|
55
|
+
)
|
|
56
|
+
}), {
|
|
57
|
+
default: c(() => [
|
|
58
|
+
d(r.$slots, "default")
|
|
59
|
+
]),
|
|
60
|
+
_: 3
|
|
61
|
+
}, 16, ["class"]));
|
|
62
|
+
}
|
|
63
|
+
}), P = ["horizontal", "vertical"];
|
|
64
|
+
export {
|
|
65
|
+
P as TOGGLE_GROUP_ORIENTATIONS,
|
|
66
|
+
w as TOGGLE_SIZES,
|
|
67
|
+
v as TOGGLE_SKINS,
|
|
68
|
+
z as ToggleGroup,
|
|
69
|
+
E as ToggleGroupItem,
|
|
70
|
+
p as cn
|
|
71
|
+
};
|
package/dist/toggle.d.ts
ADDED
package/dist/toggle.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { c as e } from "./utils-DLUjLwnh.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { _ as p } from "./Toggle.vue_vue_type_script_setup_true_lang-CZM1GrLQ.js";
|
|
4
|
+
import { T as t, a as G } from "./constants-CXAkjttx.js";
|
|
5
|
+
export {
|
|
6
|
+
t as TOGGLE_SIZES,
|
|
7
|
+
G as TOGGLE_SKINS,
|
|
8
|
+
p as Toggle,
|
|
9
|
+
e as cn
|
|
10
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equal-experts/kuat-vue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -30,6 +30,42 @@
|
|
|
30
30
|
"import": "./dist/button-group.js",
|
|
31
31
|
"types": "./dist/button-group.d.ts"
|
|
32
32
|
},
|
|
33
|
+
"./textarea": {
|
|
34
|
+
"import": "./dist/textarea.js",
|
|
35
|
+
"types": "./dist/textarea.d.ts"
|
|
36
|
+
},
|
|
37
|
+
"./input": {
|
|
38
|
+
"import": "./dist/input.js",
|
|
39
|
+
"types": "./dist/input.d.ts"
|
|
40
|
+
},
|
|
41
|
+
"./field": {
|
|
42
|
+
"import": "./dist/field.js",
|
|
43
|
+
"types": "./dist/field.d.ts"
|
|
44
|
+
},
|
|
45
|
+
"./select": {
|
|
46
|
+
"import": "./dist/select.js",
|
|
47
|
+
"types": "./dist/select.d.ts"
|
|
48
|
+
},
|
|
49
|
+
"./checkbox": {
|
|
50
|
+
"import": "./dist/checkbox.js",
|
|
51
|
+
"types": "./dist/checkbox.d.ts"
|
|
52
|
+
},
|
|
53
|
+
"./radio": {
|
|
54
|
+
"import": "./dist/radio.js",
|
|
55
|
+
"types": "./dist/radio.d.ts"
|
|
56
|
+
},
|
|
57
|
+
"./switch": {
|
|
58
|
+
"import": "./dist/switch.js",
|
|
59
|
+
"types": "./dist/switch.d.ts"
|
|
60
|
+
},
|
|
61
|
+
"./toggle": {
|
|
62
|
+
"import": "./dist/toggle.js",
|
|
63
|
+
"types": "./dist/toggle.d.ts"
|
|
64
|
+
},
|
|
65
|
+
"./toggle-group": {
|
|
66
|
+
"import": "./dist/toggle-group.js",
|
|
67
|
+
"types": "./dist/toggle-group.d.ts"
|
|
68
|
+
},
|
|
33
69
|
"./styles": "./dist/style.css"
|
|
34
70
|
},
|
|
35
71
|
"files": [
|
|
@@ -51,6 +87,13 @@
|
|
|
51
87
|
"url": "https://github.com/your-org/kuat-mono.git",
|
|
52
88
|
"directory": "packages/kuat-vue"
|
|
53
89
|
},
|
|
90
|
+
"scripts": {
|
|
91
|
+
"build": "vite build",
|
|
92
|
+
"dev": "vite build --watch",
|
|
93
|
+
"lint": "eslint . --max-warnings 0",
|
|
94
|
+
"test": "vitest",
|
|
95
|
+
"test:run": "vitest run"
|
|
96
|
+
},
|
|
54
97
|
"dependencies": {
|
|
55
98
|
"@vueuse/core": "^14.1.0",
|
|
56
99
|
"class-variance-authority": "^0.7.0",
|
|
@@ -59,6 +102,7 @@
|
|
|
59
102
|
"tailwind-merge": "^2.2.1"
|
|
60
103
|
},
|
|
61
104
|
"devDependencies": {
|
|
105
|
+
"@equal-experts/kuat-core": "workspace:*",
|
|
62
106
|
"@tailwindcss/vite": "^4.0.0",
|
|
63
107
|
"@testing-library/jest-dom": "^6.6.0",
|
|
64
108
|
"@testing-library/vue": "^8.0.0",
|
|
@@ -73,20 +117,12 @@
|
|
|
73
117
|
"vite": "^5.1.0",
|
|
74
118
|
"vite-plugin-dts": "^3.6.4",
|
|
75
119
|
"vitest": "^2.0.0",
|
|
76
|
-
"vue-tsc": "^1.8.27"
|
|
77
|
-
"@equal-experts/kuat-core": "0.4.2"
|
|
120
|
+
"vue-tsc": "^1.8.27"
|
|
78
121
|
},
|
|
79
122
|
"peerDependencies": {
|
|
80
123
|
"lucide-vue-next": "^0.344.0 || >=0.400.0",
|
|
81
124
|
"radix-vue": "^1.9.0",
|
|
82
125
|
"reka-ui": "^2.6.1",
|
|
83
126
|
"vue": "^3.4.0"
|
|
84
|
-
},
|
|
85
|
-
"scripts": {
|
|
86
|
-
"build": "vite build",
|
|
87
|
-
"dev": "vite build --watch",
|
|
88
|
-
"lint": "eslint . --max-warnings 0",
|
|
89
|
-
"test": "vitest",
|
|
90
|
-
"test:run": "vitest run"
|
|
91
127
|
}
|
|
92
|
-
}
|
|
128
|
+
}
|