@vifui/styles 0.6.0-alpha.11 → 0.6.0-alpha.14
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/components/index.css +4 -0
- package/components/popover.css +39 -0
- package/components/skeleton.css +22 -0
- package/components/upload.css +2 -2
- package/package.json +9 -1
package/components/index.css
CHANGED
|
@@ -8,8 +8,12 @@
|
|
|
8
8
|
@import "./checkbox.css";
|
|
9
9
|
@import "./divider.css";
|
|
10
10
|
@import "./list.css";
|
|
11
|
+
@import "./skeleton.css";
|
|
11
12
|
@import "./spinner.css";
|
|
12
13
|
@import "./switch.css";
|
|
13
14
|
@import "./tabs.css";
|
|
14
15
|
@import "./tooltip.css";
|
|
15
16
|
@import "./upload.css";
|
|
17
|
+
@import "./tabs.css";
|
|
18
|
+
@import "./popover.css";
|
|
19
|
+
@import "./skeleton.css";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Popover Component - Tailwind v4 + Modern CSS
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/* TRIGGER */
|
|
6
|
+
.vif-popover__trigger {
|
|
7
|
+
@apply relative inline-flex;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/* CONTENT */
|
|
11
|
+
.vif-popover__content {
|
|
12
|
+
@apply relative bg-overlay text-(--overlay-foreground) z-50 w-72 rounded-md p-4 shadow-md origin-(--reka-popover-content-transform-origin) outline-hidden;
|
|
13
|
+
|
|
14
|
+
@apply data-[state=open]:animate-[vif-fade-in_var(--transition-fast)_var(--ease-smooth)];
|
|
15
|
+
@apply data-[state=closed]:animate-[vif-fade-out_var(--transition-fast)_var(--ease-smooth)];
|
|
16
|
+
|
|
17
|
+
@apply data-[side=bottom]:animate-[vif-slide-up_var(--transition-base)_var(--ease-out)];
|
|
18
|
+
@apply data-[side=left]:animate-[vif-slide-right_var(--transition-base)_var(--ease-out)];
|
|
19
|
+
@apply data-[side=right]:animate-[vif-slide-left_var(--transition-base)_var(--ease-out)];
|
|
20
|
+
@apply data-[side=top]:animate-[vif-slide-down_var(--transition-base)_var(--ease-out)];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* TITLE */
|
|
24
|
+
.vif-popover__title {
|
|
25
|
+
@apply font-medium leading-none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.vif-popover__description {
|
|
29
|
+
@apply text-sm text-(--muted-foreground) my-2;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* ARROW */
|
|
33
|
+
.vif-popover__arrow {
|
|
34
|
+
@apply fill-default;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.vif-popover__close {
|
|
38
|
+
@apply absolute top-4 right-4 outline-none inline-flex items-center justify-center cursor-default;
|
|
39
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skeleton Component - Tailwind v4 + Modern CSS
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/* ROOT */
|
|
6
|
+
.vif-skeleton__root {
|
|
7
|
+
@apply relative bg-(--foreground)/10 rounded-md;
|
|
8
|
+
animation: vif-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* PRESETS */
|
|
12
|
+
.vif-skeleton__root--preset-circle {
|
|
13
|
+
@apply rounded-full size-12;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.vif-skeleton__root--preset-rectangle {
|
|
17
|
+
@apply w-full h-4;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.vif-skeleton__root--preset-square {
|
|
21
|
+
@apply size-12;
|
|
22
|
+
}
|
package/components/upload.css
CHANGED
|
@@ -106,8 +106,7 @@
|
|
|
106
106
|
|
|
107
107
|
/* Grid variant (default) */
|
|
108
108
|
.vif-upload__files--grid {
|
|
109
|
-
@apply
|
|
110
|
-
@apply grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4;
|
|
109
|
+
@apply flex flex-wrap gap-4;
|
|
111
110
|
}
|
|
112
111
|
|
|
113
112
|
/* List variant */
|
|
@@ -168,6 +167,7 @@
|
|
|
168
167
|
@apply flex flex-col items-center justify-center;
|
|
169
168
|
width: 200px;
|
|
170
169
|
height: 200px;
|
|
170
|
+
flex-shrink: 0;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
/* List file item */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vifui/styles",
|
|
3
|
-
"version": "0.6.0-alpha.
|
|
3
|
+
"version": "0.6.0-alpha.14",
|
|
4
4
|
"description": "CSS styles and design tokens for VifUI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -72,6 +72,14 @@
|
|
|
72
72
|
"default": "./components/list.css",
|
|
73
73
|
"style": "./components/list.css"
|
|
74
74
|
},
|
|
75
|
+
"./components/popover": {
|
|
76
|
+
"default": "./components/popover.css",
|
|
77
|
+
"style": "./components/popover.css"
|
|
78
|
+
},
|
|
79
|
+
"./components/skeleton": {
|
|
80
|
+
"default": "./components/skeleton.css",
|
|
81
|
+
"style": "./components/skeleton.css"
|
|
82
|
+
},
|
|
75
83
|
"./components/spinner": {
|
|
76
84
|
"default": "./components/spinner.css",
|
|
77
85
|
"style": "./components/spinner.css"
|