@kuina-ui/vue 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +142 -2
- package/dist/components/avatar-group/AvatarGroup.vue.d.ts +22 -0
- package/dist/components/avatar-group/avatar-group.theme.d.ts +26 -0
- package/dist/components/avatar-group/index.d.ts +2 -0
- package/dist/components/text-field/TextField.vue.d.ts +42 -0
- package/dist/components/text-field/index.d.ts +2 -0
- package/dist/components/text-field/text-field.theme.d.ts +53 -0
- package/dist/components/textarea/Textarea.vue.d.ts +36 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/textarea.theme.d.ts +42 -0
- package/dist/elements/alert/Alert.vue.d.ts +33 -0
- package/dist/elements/alert/alert.theme.d.ts +43 -0
- package/dist/elements/alert/index.d.ts +2 -0
- package/dist/elements/avatar/Avatar.vue.d.ts +27 -0
- package/dist/elements/avatar/avatar.theme.d.ts +52 -0
- package/dist/elements/avatar/index.d.ts +2 -0
- package/dist/elements/badge/Badge.vue.d.ts +29 -0
- package/dist/elements/badge/badge.theme.d.ts +33 -0
- package/dist/elements/badge/index.d.ts +2 -0
- package/dist/elements/button/Button.vue.d.ts +37 -0
- package/dist/elements/button/button.theme.d.ts +66 -0
- package/dist/elements/button/index.d.ts +2 -0
- package/dist/elements/checkbox/Checkbox.vue.d.ts +23 -0
- package/dist/elements/checkbox/checkbox.theme.d.ts +26 -0
- package/dist/elements/checkbox/index.d.ts +2 -0
- package/dist/elements/circular-progress/CircularProgress.vue.d.ts +13 -0
- package/dist/elements/circular-progress/circular-progress.theme.d.ts +6 -0
- package/dist/elements/circular-progress/index.d.ts +2 -0
- package/dist/elements/loading-dots/LoadingDots.vue.d.ts +12 -0
- package/dist/elements/loading-dots/index.d.ts +2 -0
- package/dist/elements/loading-dots/loading-dots.theme.d.ts +4 -0
- package/dist/elements/loading-indicator/LoadingIndicator.vue.d.ts +12 -0
- package/dist/elements/loading-indicator/index.d.ts +2 -0
- package/dist/elements/loading-indicator/loading-indicator.theme.d.ts +4 -0
- package/dist/elements/radio-group/RadioGroup.vue.d.ts +36 -0
- package/dist/elements/radio-group/index.d.ts +2 -0
- package/dist/elements/radio-group/radio-group.theme.d.ts +68 -0
- package/dist/elements/switch/Switch.vue.d.ts +26 -0
- package/dist/elements/switch/index.d.ts +2 -0
- package/dist/elements/switch/switch.theme.d.ts +52 -0
- package/dist/elements/text-link/TextLink.vue.d.ts +31 -0
- package/dist/elements/text-link/index.d.ts +2 -0
- package/dist/elements/text-link/text-link.theme.d.ts +40 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +1 -0
- package/dist/nuxt.d.ts +2 -0
- package/dist/nuxt.js +21 -0
- package/dist/shared/composables/useCustomColor.d.ts +8 -0
- package/dist/shared/composables/useFieldDescription.d.ts +15 -0
- package/dist/shared/utils/tv.d.ts +2 -0
- package/dist/src-CcuBQU4y.js +2371 -0
- package/package.json +70 -4
- package/src/index.css +18 -0
- package/src/shared/styles/theme.css +24 -0
- package/src/shared/styles/utilities/checkbox-check-mark.css +47 -0
- package/src/shared/styles/utilities/loading-dots.css +29 -0
- package/src/shared/styles/utilities/loading-indicator.css +33 -0
- package/src/shared/styles/variants/dark.css +2 -0
- package/src/shared/styles/variants/light.css +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,72 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kuina-ui/vue",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Free, open-source Vue component library built with Tailwind CSS v4, in light and dark themes",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"kuina-ui",
|
|
7
|
+
"vue",
|
|
8
|
+
"nuxt",
|
|
9
|
+
"ui-kit",
|
|
10
|
+
"components",
|
|
11
|
+
"tailwindcss",
|
|
12
|
+
"tailwindcss-v4",
|
|
13
|
+
"dark-mode"
|
|
14
|
+
],
|
|
15
|
+
"homepage": "https://kuina-ui.github.io/docs/",
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/Kuina-UI/vue/issues"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git+https://github.com/Kuina-UI/vue.git"
|
|
22
|
+
},
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"author": "Kuina",
|
|
25
|
+
"type": "module",
|
|
26
|
+
"files": [
|
|
27
|
+
"dist",
|
|
28
|
+
"src/index.css",
|
|
29
|
+
"src/shared/styles"
|
|
30
|
+
],
|
|
31
|
+
"exports": {
|
|
32
|
+
".": {
|
|
33
|
+
"types": "./dist/index.d.ts",
|
|
34
|
+
"style": "./src/index.css",
|
|
35
|
+
"import": "./dist/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./nuxt": {
|
|
38
|
+
"types": "./dist/nuxt.d.ts",
|
|
39
|
+
"import": "./dist/nuxt.js"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"sideEffects": [
|
|
43
|
+
"*.css"
|
|
44
|
+
],
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "vite build && vue-tsc -p tsconfig.build.json",
|
|
47
|
+
"typecheck": "vue-tsc --noEmit",
|
|
48
|
+
"prepack": "npm run build"
|
|
49
|
+
},
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"tailwindcss": "^4.0.0",
|
|
52
|
+
"vue": "^3.5.0"
|
|
53
|
+
},
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"@nuxt/kit": "^4.6.4",
|
|
56
|
+
"@tailwindcss/vite": "^4.3.5",
|
|
57
|
+
"lucide-vue-next": "^1.0.0",
|
|
58
|
+
"tailwind-variants": "^4.0.2"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@nuxt/schema": "^4.6.4",
|
|
62
|
+
"@vitejs/plugin-vue": "^6.0.11",
|
|
63
|
+
"@vue/tsconfig": "^0.9.1",
|
|
64
|
+
"typescript": "^6.0.3",
|
|
65
|
+
"vite": "^8.3.8",
|
|
66
|
+
"vue": "^3.5.46",
|
|
67
|
+
"vue-tsc": "^3.3.14"
|
|
68
|
+
},
|
|
69
|
+
"publishConfig": {
|
|
70
|
+
"access": "public"
|
|
71
|
+
}
|
|
72
|
+
}
|
package/src/index.css
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@import "./shared/styles/theme.css";
|
|
2
|
+
@import "./shared/styles/variants/light.css";
|
|
3
|
+
@import "./shared/styles/variants/dark.css";
|
|
4
|
+
@import "./shared/styles/utilities/checkbox-check-mark.css";
|
|
5
|
+
@import "./shared/styles/utilities/loading-dots.css";
|
|
6
|
+
@import "./shared/styles/utilities/loading-indicator.css";
|
|
7
|
+
|
|
8
|
+
@source "../dist";
|
|
9
|
+
|
|
10
|
+
@layer base {
|
|
11
|
+
[data-theme="light"] {
|
|
12
|
+
color-scheme: light;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-theme="dark"] {
|
|
16
|
+
color-scheme: dark;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@theme static {
|
|
2
|
+
--spacing-page-gutter: 0.375rem;
|
|
3
|
+
--spacing-sidebar-collapsed-width: 4rem;
|
|
4
|
+
|
|
5
|
+
--breakpoint-tv: 120rem;
|
|
6
|
+
|
|
7
|
+
--color-primary: light-dark(#1f6b59, #48b89a);
|
|
8
|
+
--color-secondary: light-dark(#be185d, #f472b6);
|
|
9
|
+
--color-canvas: light-dark(var(--color-stone-100), var(--color-stone-900));
|
|
10
|
+
--color-widget: light-dark(var(--color-white), var(--color-stone-800));
|
|
11
|
+
--color-line: light-dark(
|
|
12
|
+
color-mix(in oklab, var(--color-stone-950) 10%, transparent),
|
|
13
|
+
color-mix(in oklab, var(--color-white) 12%, transparent)
|
|
14
|
+
);
|
|
15
|
+
--color-muted: light-dark(var(--color-stone-500), color-mix(in oklab, var(--color-stone-200) 55%, transparent));
|
|
16
|
+
--color-field: light-dark(
|
|
17
|
+
color-mix(in srgb, var(--color-stone-100), var(--color-neutral-900) 5%),
|
|
18
|
+
color-mix(in srgb, var(--color-stone-900), var(--color-stone-200) 5%)
|
|
19
|
+
);
|
|
20
|
+
--color-overlay: light-dark(
|
|
21
|
+
color-mix(in oklab, var(--color-stone-950) 40%, transparent),
|
|
22
|
+
color-mix(in oklab, var(--color-stone-950) 60%, transparent)
|
|
23
|
+
);
|
|
24
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/** Draws a checkbox tick from two bars in the current text color; the stroke animates in each time it is displayed. */
|
|
2
|
+
@utility checkbox-check-mark {
|
|
3
|
+
position: absolute;
|
|
4
|
+
top: 0;
|
|
5
|
+
left: 0;
|
|
6
|
+
width: 64%;
|
|
7
|
+
height: 32%;
|
|
8
|
+
transform: rotate(-45deg) translate(-10%, 100%);
|
|
9
|
+
transition:
|
|
10
|
+
opacity 150ms ease,
|
|
11
|
+
transform 150ms ease;
|
|
12
|
+
|
|
13
|
+
@starting-style {
|
|
14
|
+
opacity: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&::before,
|
|
18
|
+
&::after {
|
|
19
|
+
position: absolute;
|
|
20
|
+
background: currentColor;
|
|
21
|
+
content: "";
|
|
22
|
+
|
|
23
|
+
@starting-style {
|
|
24
|
+
transform: scale(0);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&::before {
|
|
29
|
+
top: 0;
|
|
30
|
+
bottom: 0;
|
|
31
|
+
left: 0;
|
|
32
|
+
width: 2px;
|
|
33
|
+
transform-origin: 0 0;
|
|
34
|
+
transition:
|
|
35
|
+
transform 100ms ease 80ms,
|
|
36
|
+
opacity 200ms ease;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&::after {
|
|
40
|
+
right: 0;
|
|
41
|
+
bottom: 0;
|
|
42
|
+
left: 0;
|
|
43
|
+
height: 2px;
|
|
44
|
+
transform-origin: 0 100%;
|
|
45
|
+
transition: transform 100ms ease 160ms;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@keyframes loading-dots-pulse {
|
|
2
|
+
0%,
|
|
3
|
+
100% {
|
|
4
|
+
opacity: 0.15;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
20% {
|
|
8
|
+
opacity: 0.4;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Turns each child into a dot in the current text color, pulsing one after the other. */
|
|
13
|
+
@utility loading-dots {
|
|
14
|
+
& > * {
|
|
15
|
+
width: 0.5rem;
|
|
16
|
+
height: 0.5rem;
|
|
17
|
+
border-radius: 50%;
|
|
18
|
+
background: currentColor;
|
|
19
|
+
animation: loading-dots-pulse 1s infinite both;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
& > :nth-child(2) {
|
|
23
|
+
animation-delay: 0.2s;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
& > :nth-child(3) {
|
|
27
|
+
animation-delay: 0.4s;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@keyframes loading-indicator-rotate {
|
|
2
|
+
to {
|
|
3
|
+
transform: rotate(1turn);
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
/** Spinning ring that fades along its tail, sized by the font size and drawn in the current text color. */
|
|
8
|
+
@utility loading-indicator {
|
|
9
|
+
position: relative;
|
|
10
|
+
width: 1em;
|
|
11
|
+
height: 1em;
|
|
12
|
+
animation: loading-indicator-rotate 0.8s linear infinite;
|
|
13
|
+
|
|
14
|
+
&::before {
|
|
15
|
+
position: absolute;
|
|
16
|
+
inset: 0;
|
|
17
|
+
border: 2px solid currentColor;
|
|
18
|
+
border-radius: 50%;
|
|
19
|
+
mask-image: conic-gradient(transparent, #000);
|
|
20
|
+
content: "";
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&::after {
|
|
24
|
+
position: absolute;
|
|
25
|
+
top: 0;
|
|
26
|
+
left: calc(50% - 1px);
|
|
27
|
+
width: 2px;
|
|
28
|
+
height: 2px;
|
|
29
|
+
border-radius: 50%;
|
|
30
|
+
background: currentColor;
|
|
31
|
+
content: "";
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@custom-variant light (&:where([data-theme="light"], [data-theme="light"] *));
|