@auvyx/ui 0.0.0-stage → 0.1.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/LICENSE +48 -0
- package/README.md +43 -2
- package/dist/auvyx.bundle.css +5941 -0
- package/dist/auvyx.chart.min.js +2 -0
- package/dist/auvyx.corners.min.js +2 -0
- package/dist/auvyx.css +10880 -0
- package/dist/auvyx.js +3222 -0
- package/dist/auvyx.min.css +2 -0
- package/dist/auvyx.min.js +19 -0
- package/dist/custom-elements.json +948 -0
- package/dist/elements/calendar.min.js +2 -0
- package/dist/elements/context-menu.min.js +2 -0
- package/dist/elements/data-table.min.js +2 -0
- package/dist/elements/date-picker.min.js +2 -0
- package/dist/elements/index.min.js +2 -0
- package/dist/elements/menu.min.js +2 -0
- package/dist/elements/resizable.min.js +2 -0
- package/dist/js/accordion.min.js +2 -0
- package/dist/js/calendar.min.js +2 -0
- package/dist/js/combobox.min.js +2 -0
- package/dist/js/command.min.js +2 -0
- package/dist/js/context-menu.min.js +2 -0
- package/dist/js/copy.min.js +2 -0
- package/dist/js/data-table.min.js +2 -0
- package/dist/js/date-picker.min.js +2 -0
- package/dist/js/drawer.min.js +2 -0
- package/dist/js/dropdown-menu.min.js +2 -0
- package/dist/js/manifest.json +114 -0
- package/dist/js/menu.min.js +2 -0
- package/dist/js/popover.min.js +2 -0
- package/dist/js/resizable.min.js +2 -0
- package/dist/js/select.min.js +2 -0
- package/dist/js/sidebar.min.js +2 -0
- package/dist/js/slider.min.js +2 -0
- package/dist/js/tabs.min.js +2 -0
- package/dist/js/toast.min.js +19 -0
- package/dist/styles/auvyx-luma.min.css +3 -0
- package/dist/styles/auvyx-lyra.min.css +3 -0
- package/dist/styles/auvyx-maia.min.css +3 -0
- package/dist/styles/auvyx-mira.min.css +3 -0
- package/dist/styles/auvyx-nova.min.css +3 -0
- package/dist/styles/auvyx-rhea.min.css +3 -0
- package/dist/styles/auvyx-sera.min.css +3 -0
- package/dist/styles/auvyx-vega.min.css +3 -0
- package/dist/types/elements.d.ts +262 -0
- package/dist/types/react.d.ts +181 -0
- package/dist/types/vue.d.ts +155 -0
- package/dist/ui/accordion.css +91 -0
- package/dist/ui/accordion.js +249 -0
- package/dist/ui/accordion.native.css +24 -0
- package/dist/ui/alert.css +119 -0
- package/dist/ui/aspect-ratio.css +38 -0
- package/dist/ui/attachment.css +211 -0
- package/dist/ui/avatar.css +204 -0
- package/dist/ui/badge.css +183 -0
- package/dist/ui/base.css +1200 -0
- package/dist/ui/breadcrumb.css +90 -0
- package/dist/ui/bubble.css +171 -0
- package/dist/ui/button-group.css +110 -0
- package/dist/ui/button.css +328 -0
- package/dist/ui/calendar.css +260 -0
- package/dist/ui/calendar.js +317 -0
- package/dist/ui/card.css +126 -0
- package/dist/ui/carousel.css +172 -0
- package/dist/ui/chart.css +130 -0
- package/dist/ui/checkbox.css +119 -0
- package/dist/ui/code-block.css +235 -0
- package/dist/ui/combobox.css +500 -0
- package/dist/ui/combobox.js +757 -0
- package/dist/ui/command.css +366 -0
- package/dist/ui/command.js +382 -0
- package/dist/ui/context-menu.css +17 -0
- package/dist/ui/context-menu.js +52 -0
- package/dist/ui/copy.js +56 -0
- package/dist/ui/data-table.css +114 -0
- package/dist/ui/data-table.js +140 -0
- package/dist/ui/date-picker.css +14 -0
- package/dist/ui/date-picker.js +101 -0
- package/dist/ui/dialog.css +363 -0
- package/dist/ui/dialog.native.css +6 -0
- package/dist/ui/drawer.css +238 -0
- package/dist/ui/drawer.js +265 -0
- package/dist/ui/dropdown-menu.css +193 -0
- package/dist/ui/dropdown-menu.js +388 -0
- package/dist/ui/empty.css +111 -0
- package/dist/ui/field.css +293 -0
- package/dist/ui/hover-card.css +85 -0
- package/dist/ui/input-group.css +269 -0
- package/dist/ui/input-otp.css +101 -0
- package/dist/ui/input.css +117 -0
- package/dist/ui/item.css +223 -0
- package/dist/ui/kbd.css +50 -0
- package/dist/ui/label.css +48 -0
- package/dist/ui/manifest.json +667 -0
- package/dist/ui/marker.css +66 -0
- package/dist/ui/menu.js +161 -0
- package/dist/ui/menubar.css +55 -0
- package/dist/ui/message-scroller.css +83 -0
- package/dist/ui/message.css +69 -0
- package/dist/ui/native-select.css +130 -0
- package/dist/ui/navigation-menu.css +166 -0
- package/dist/ui/popover.css +154 -0
- package/dist/ui/popover.js +268 -0
- package/dist/ui/popover.native.css +84 -0
- package/dist/ui/progress.css +29 -0
- package/dist/ui/questionnaire.css +188 -0
- package/dist/ui/radio-group.css +115 -0
- package/dist/ui/resizable.css +94 -0
- package/dist/ui/resizable.js +95 -0
- package/dist/ui/scroll-area.css +43 -0
- package/dist/ui/select.css +289 -0
- package/dist/ui/select.js +646 -0
- package/dist/ui/sheet.css +219 -0
- package/dist/ui/sidebar.css +716 -0
- package/dist/ui/sidebar.js +287 -0
- package/dist/ui/skeleton.css +13 -0
- package/dist/ui/slider.css +184 -0
- package/dist/ui/slider.js +206 -0
- package/dist/ui/switch.css +156 -0
- package/dist/ui/table.css +157 -0
- package/dist/ui/tabs.css +240 -0
- package/dist/ui/tabs.js +288 -0
- package/dist/ui/textarea.css +91 -0
- package/dist/ui/toast.css +110 -0
- package/dist/ui/toast.js +378 -0
- package/dist/ui/toggle-group.css +42 -0
- package/dist/ui/toggle.css +150 -0
- package/dist/ui/tooltip.css +319 -0
- package/dist/ui/trace.css +142 -0
- package/dist/ui/typography.css +184 -0
- package/dist/wc/accordion.min.js +2 -0
- package/dist/wc/combobox.min.js +2 -0
- package/dist/wc/command.min.js +2 -0
- package/dist/wc/drawer.min.js +2 -0
- package/dist/wc/dropdown-menu.min.js +2 -0
- package/dist/wc/manifest.json +154 -0
- package/dist/wc/popover.min.js +2 -0
- package/dist/wc/select.min.js +2 -0
- package/dist/wc/sidebar.min.js +2 -0
- package/dist/wc/slider.min.js +2 -0
- package/dist/wc/tabs.min.js +2 -0
- package/dist/wc/toast.min.js +19 -0
- package/package.json +62 -4
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
/* @auvyx/ui attachment | order 48 */
|
|
2
|
+
@layer components {
|
|
3
|
+
.attachment-group {
|
|
4
|
+
display: flex;
|
|
5
|
+
min-width: 0;
|
|
6
|
+
flex-wrap: wrap;
|
|
7
|
+
}
|
|
8
|
+
.attachment {
|
|
9
|
+
position: relative;
|
|
10
|
+
display: flex;
|
|
11
|
+
max-width: 100%;
|
|
12
|
+
min-width: 0;
|
|
13
|
+
flex-shrink: 0;
|
|
14
|
+
align-items: center;
|
|
15
|
+
border-style: var(--tw-border-style);
|
|
16
|
+
border-width: 1px;
|
|
17
|
+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
|
|
18
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
19
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
20
|
+
&[data-orientation='vertical'] {
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
align-items: stretch;
|
|
23
|
+
}
|
|
24
|
+
> figure {
|
|
25
|
+
position: relative;
|
|
26
|
+
margin: 0;
|
|
27
|
+
display: flex;
|
|
28
|
+
aspect-ratio: 1 / 1;
|
|
29
|
+
flex-shrink: 0;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
& svg {
|
|
34
|
+
pointer-events: none;
|
|
35
|
+
}
|
|
36
|
+
> img {
|
|
37
|
+
aspect-ratio: 1 / 1;
|
|
38
|
+
width: 100%;
|
|
39
|
+
object-fit: cover;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
> div:not([data-actions]) {
|
|
43
|
+
max-width: 100%;
|
|
44
|
+
min-width: 0;
|
|
45
|
+
flex: 1;
|
|
46
|
+
> :is(strong, a, span):first-child {
|
|
47
|
+
display: block;
|
|
48
|
+
max-width: 100%;
|
|
49
|
+
min-width: 0;
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
text-overflow: ellipsis;
|
|
52
|
+
white-space: nowrap;
|
|
53
|
+
}
|
|
54
|
+
> :is(small, p) {
|
|
55
|
+
margin: 0;
|
|
56
|
+
display: block;
|
|
57
|
+
min-width: 0;
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
text-overflow: ellipsis;
|
|
60
|
+
white-space: nowrap;
|
|
61
|
+
}
|
|
62
|
+
> a:first-child::after {
|
|
63
|
+
position: absolute;
|
|
64
|
+
inset: 0;
|
|
65
|
+
z-index: 10;
|
|
66
|
+
--tw-content: '';
|
|
67
|
+
content: var(--tw-content);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
> [data-actions] {
|
|
71
|
+
position: relative;
|
|
72
|
+
z-index: 20;
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-shrink: 0;
|
|
75
|
+
align-items: center;
|
|
76
|
+
}
|
|
77
|
+
&[data-orientation='vertical'] > [data-actions] {
|
|
78
|
+
position: absolute;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@layer components {
|
|
84
|
+
.attachment-group {
|
|
85
|
+
gap: calc(var(--spacing) * 3);
|
|
86
|
+
padding-block: var(--spacing);
|
|
87
|
+
}
|
|
88
|
+
.attachment {
|
|
89
|
+
width: fit-content;
|
|
90
|
+
min-width: calc(var(--spacing) * 40);
|
|
91
|
+
gap: calc(var(--spacing) * 2);
|
|
92
|
+
border-radius: var(--auvyx-r-card);
|
|
93
|
+
background-color: var(--color-card);
|
|
94
|
+
font-size: var(--text-sm);
|
|
95
|
+
line-height: var(--tw-leading, var(--text-sm--line-height));
|
|
96
|
+
color: var(--color-card-foreground);
|
|
97
|
+
&:focus-within {
|
|
98
|
+
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
99
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
100
|
+
}
|
|
101
|
+
&:focus-within {
|
|
102
|
+
--tw-ring-color: var(--color-ring);
|
|
103
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
104
|
+
--tw-ring-color: color-mix(in oklab, var(--color-ring) 50%, transparent);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
.attachment:has(> div:not([data-actions])) {
|
|
109
|
+
padding-inline: calc(var(--spacing) * 2.5);
|
|
110
|
+
padding-block: calc(var(--spacing) * 2);
|
|
111
|
+
}
|
|
112
|
+
.attachment:not(:has(> div:not([data-actions]))) {
|
|
113
|
+
padding: calc(var(--spacing) * 2);
|
|
114
|
+
}
|
|
115
|
+
.attachment:has(a) {
|
|
116
|
+
&:hover {
|
|
117
|
+
@media (hover: hover) {
|
|
118
|
+
background-color: var(--color-muted);
|
|
119
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
120
|
+
background-color: color-mix(in oklab, var(--color-muted) 50%, transparent);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
.attachment[data-state='idle'] {
|
|
126
|
+
--tw-border-style: dashed;
|
|
127
|
+
border-style: dashed;
|
|
128
|
+
}
|
|
129
|
+
.attachment[data-state='error'] {
|
|
130
|
+
border-color: var(--color-destructive);
|
|
131
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
132
|
+
border-color: color-mix(in oklab, var(--color-destructive) 30%, transparent);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
.attachment > figure {
|
|
136
|
+
width: calc(var(--spacing) * 10);
|
|
137
|
+
border-radius: var(--auvyx-r-surface);
|
|
138
|
+
background-color: var(--color-muted);
|
|
139
|
+
color: var(--color-foreground);
|
|
140
|
+
& svg:not([class*='size-']) {
|
|
141
|
+
width: calc(var(--spacing) * 4);
|
|
142
|
+
height: calc(var(--spacing) * 4);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
.attachment[data-state='error'] > figure {
|
|
146
|
+
background-color: var(--color-destructive);
|
|
147
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
148
|
+
background-color: color-mix(in oklab, var(--color-destructive) 10%, transparent);
|
|
149
|
+
}
|
|
150
|
+
color: var(--color-destructive);
|
|
151
|
+
}
|
|
152
|
+
.attachment > figure:has(> img) {
|
|
153
|
+
opacity: 60%;
|
|
154
|
+
}
|
|
155
|
+
.attachment:is([data-state='idle'], [data-state='done'], :not([data-state])) > figure:has(> img) {
|
|
156
|
+
opacity: 100%;
|
|
157
|
+
}
|
|
158
|
+
.attachment > div:not([data-actions]) {
|
|
159
|
+
--tw-leading: var(--leading-tight);
|
|
160
|
+
line-height: var(--leading-tight);
|
|
161
|
+
}
|
|
162
|
+
.attachment > div:not([data-actions]) > :first-child {
|
|
163
|
+
--tw-font-weight: var(--font-weight-medium);
|
|
164
|
+
font-weight: var(--font-weight-medium);
|
|
165
|
+
}
|
|
166
|
+
.attachment > div:not([data-actions]) > :is(small, p) {
|
|
167
|
+
margin-top: calc(var(--spacing) * 0.5);
|
|
168
|
+
font-size: var(--text-xs);
|
|
169
|
+
line-height: var(--tw-leading, var(--text-xs--line-height));
|
|
170
|
+
color: var(--color-muted-foreground);
|
|
171
|
+
}
|
|
172
|
+
.attachment[data-state='error'] > div:not([data-actions]) > :is(small, p) {
|
|
173
|
+
color: var(--color-destructive);
|
|
174
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
175
|
+
color: color-mix(in oklab, var(--color-destructive) 80%, transparent);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
.attachment[data-size='sm'] {
|
|
179
|
+
gap: calc(var(--spacing) * 2.5);
|
|
180
|
+
font-size: var(--text-xs);
|
|
181
|
+
line-height: var(--tw-leading, var(--text-xs--line-height));
|
|
182
|
+
}
|
|
183
|
+
.attachment[data-size='sm'] > figure {
|
|
184
|
+
width: calc(var(--spacing) * 8);
|
|
185
|
+
}
|
|
186
|
+
.attachment[data-size='xs'] {
|
|
187
|
+
gap: calc(var(--spacing) * 1.5);
|
|
188
|
+
border-radius: var(--auvyx-r-surface);
|
|
189
|
+
font-size: var(--text-xs);
|
|
190
|
+
line-height: var(--tw-leading, var(--text-xs--line-height));
|
|
191
|
+
}
|
|
192
|
+
.attachment[data-size='xs'] > figure {
|
|
193
|
+
width: calc(var(--spacing) * 7);
|
|
194
|
+
border-radius: var(--auvyx-r-control);
|
|
195
|
+
}
|
|
196
|
+
.attachment[data-orientation='vertical'] {
|
|
197
|
+
width: calc(var(--spacing) * 30);
|
|
198
|
+
min-width: 0;
|
|
199
|
+
}
|
|
200
|
+
.attachment[data-orientation='vertical'] > figure {
|
|
201
|
+
width: 100%;
|
|
202
|
+
}
|
|
203
|
+
.attachment[data-orientation='vertical'] > div:not([data-actions]) {
|
|
204
|
+
padding-inline: var(--spacing);
|
|
205
|
+
}
|
|
206
|
+
.attachment[data-orientation='vertical'] > [data-actions] {
|
|
207
|
+
inset-inline-end: calc(var(--spacing) * 3);
|
|
208
|
+
top: calc(var(--spacing) * 3);
|
|
209
|
+
gap: var(--spacing);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
/* @auvyx/ui avatar | order 3 */
|
|
2
|
+
@layer components {
|
|
3
|
+
.avatar {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
flex-shrink: 0;
|
|
7
|
+
appearance: none;
|
|
8
|
+
border-style: var(--tw-border-style);
|
|
9
|
+
border-width: 0px;
|
|
10
|
+
background-color: transparent;
|
|
11
|
+
padding: 0;
|
|
12
|
+
vertical-align: middle;
|
|
13
|
+
--tw-outline-style: none;
|
|
14
|
+
outline-style: none;
|
|
15
|
+
-webkit-user-select: none;
|
|
16
|
+
user-select: none;
|
|
17
|
+
&::after {
|
|
18
|
+
content: var(--tw-content);
|
|
19
|
+
position: absolute;
|
|
20
|
+
}
|
|
21
|
+
&::after {
|
|
22
|
+
content: var(--tw-content);
|
|
23
|
+
inset: 0;
|
|
24
|
+
}
|
|
25
|
+
&::after {
|
|
26
|
+
content: var(--tw-content);
|
|
27
|
+
border-radius: inherit;
|
|
28
|
+
}
|
|
29
|
+
&::after {
|
|
30
|
+
content: var(--tw-content);
|
|
31
|
+
border-style: var(--tw-border-style);
|
|
32
|
+
border-width: 1px;
|
|
33
|
+
}
|
|
34
|
+
&::after {
|
|
35
|
+
content: var(--tw-content);
|
|
36
|
+
border-color: var(--color-border);
|
|
37
|
+
}
|
|
38
|
+
&::after {
|
|
39
|
+
content: var(--tw-content);
|
|
40
|
+
mix-blend-mode: darken;
|
|
41
|
+
}
|
|
42
|
+
&:focus-visible {
|
|
43
|
+
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
44
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
45
|
+
}
|
|
46
|
+
&:focus-visible {
|
|
47
|
+
--tw-ring-color: var(--color-ring);
|
|
48
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
49
|
+
--tw-ring-color: color-mix(in oklab, var(--color-ring) 50%, transparent);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
&:is(html.dark *) {
|
|
53
|
+
&::after {
|
|
54
|
+
content: var(--tw-content);
|
|
55
|
+
mix-blend-mode: lighten;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
.avatar > img {
|
|
60
|
+
position: absolute;
|
|
61
|
+
inset: 0;
|
|
62
|
+
aspect-ratio: 1 / 1;
|
|
63
|
+
width: 100%;
|
|
64
|
+
height: 100%;
|
|
65
|
+
border-radius: inherit;
|
|
66
|
+
object-fit: cover;
|
|
67
|
+
}
|
|
68
|
+
.avatar > span:not(.avatar-badge) {
|
|
69
|
+
display: flex;
|
|
70
|
+
width: 100%;
|
|
71
|
+
height: 100%;
|
|
72
|
+
align-items: center;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
border-radius: inherit;
|
|
75
|
+
font-size: var(--text-sm);
|
|
76
|
+
line-height: var(--tw-leading, var(--text-sm--line-height));
|
|
77
|
+
}
|
|
78
|
+
.avatar[data-size='sm'] > span:not(.avatar-badge) {
|
|
79
|
+
font-size: var(--text-xs);
|
|
80
|
+
line-height: var(--tw-leading, var(--text-xs--line-height));
|
|
81
|
+
}
|
|
82
|
+
.avatar > .avatar-badge {
|
|
83
|
+
position: absolute;
|
|
84
|
+
inset-inline-end: calc(var(--spacing) * 0);
|
|
85
|
+
bottom: 0;
|
|
86
|
+
z-index: 10;
|
|
87
|
+
display: inline-flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
border-radius: calc(infinity * 1px);
|
|
91
|
+
background-blend-mode: color;
|
|
92
|
+
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
93
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
94
|
+
-webkit-user-select: none;
|
|
95
|
+
user-select: none;
|
|
96
|
+
}
|
|
97
|
+
.avatar[data-size='sm'] > .avatar-badge {
|
|
98
|
+
width: calc(var(--spacing) * 2);
|
|
99
|
+
height: calc(var(--spacing) * 2);
|
|
100
|
+
&>svg {
|
|
101
|
+
display: none;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
.avatar > .avatar-badge {
|
|
105
|
+
width: calc(var(--spacing) * 2.5);
|
|
106
|
+
height: calc(var(--spacing) * 2.5);
|
|
107
|
+
&>svg {
|
|
108
|
+
width: calc(var(--spacing) * 2);
|
|
109
|
+
height: calc(var(--spacing) * 2);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
.avatar[data-size='lg'] > .avatar-badge {
|
|
113
|
+
width: calc(var(--spacing) * 3);
|
|
114
|
+
height: calc(var(--spacing) * 3);
|
|
115
|
+
&>svg {
|
|
116
|
+
width: calc(var(--spacing) * 2);
|
|
117
|
+
height: calc(var(--spacing) * 2);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
.avatar-group {
|
|
121
|
+
display: flex;
|
|
122
|
+
:where(& > :not(:last-child)) {
|
|
123
|
+
--tw-space-x-reverse: 0;
|
|
124
|
+
margin-inline-start: calc(calc(var(--spacing) * -2) * var(--tw-space-x-reverse));
|
|
125
|
+
margin-inline-end: calc(calc(var(--spacing) * -2) * calc(1 - var(--tw-space-x-reverse)));
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
.avatar-group > .avatar, .avatar-group > [data-count] {
|
|
129
|
+
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
130
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
131
|
+
--tw-ring-color: var(--color-background);
|
|
132
|
+
}
|
|
133
|
+
.avatar-group > [data-count] {
|
|
134
|
+
position: relative;
|
|
135
|
+
display: flex;
|
|
136
|
+
flex-shrink: 0;
|
|
137
|
+
align-items: center;
|
|
138
|
+
justify-content: center;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
@layer components {
|
|
143
|
+
.avatar {
|
|
144
|
+
border-radius: calc(infinity * 1px);
|
|
145
|
+
&::after {
|
|
146
|
+
content: var(--tw-content);
|
|
147
|
+
border-radius: inherit;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
.avatar {
|
|
151
|
+
width: calc(var(--spacing) * 8);
|
|
152
|
+
height: calc(var(--spacing) * 8);
|
|
153
|
+
}
|
|
154
|
+
.avatar[data-size='sm'] {
|
|
155
|
+
width: calc(var(--spacing) * 6);
|
|
156
|
+
height: calc(var(--spacing) * 6);
|
|
157
|
+
}
|
|
158
|
+
.avatar[data-size='lg'] {
|
|
159
|
+
width: calc(var(--spacing) * 10);
|
|
160
|
+
height: calc(var(--spacing) * 10);
|
|
161
|
+
}
|
|
162
|
+
.avatar > span:not(.avatar-badge) {
|
|
163
|
+
border-radius: inherit;
|
|
164
|
+
background-color: var(--color-muted);
|
|
165
|
+
color: var(--color-muted-foreground);
|
|
166
|
+
}
|
|
167
|
+
.avatar > img {
|
|
168
|
+
border-radius: inherit;
|
|
169
|
+
}
|
|
170
|
+
.avatar > .avatar-badge {
|
|
171
|
+
background-color: var(--color-primary);
|
|
172
|
+
color: var(--color-primary-foreground);
|
|
173
|
+
--tw-ring-color: var(--color-background);
|
|
174
|
+
}
|
|
175
|
+
.avatar-group > [data-count] {
|
|
176
|
+
width: calc(var(--spacing) * 8);
|
|
177
|
+
height: calc(var(--spacing) * 8);
|
|
178
|
+
border-radius: calc(infinity * 1px);
|
|
179
|
+
background-color: var(--color-muted);
|
|
180
|
+
font-size: var(--text-sm);
|
|
181
|
+
line-height: var(--tw-leading, var(--text-sm--line-height));
|
|
182
|
+
color: var(--color-muted-foreground);
|
|
183
|
+
&>svg {
|
|
184
|
+
width: calc(var(--spacing) * 4);
|
|
185
|
+
height: calc(var(--spacing) * 4);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
.avatar-group:has(> .avatar[data-size='sm']) > [data-count] {
|
|
189
|
+
width: calc(var(--spacing) * 6);
|
|
190
|
+
height: calc(var(--spacing) * 6);
|
|
191
|
+
&>svg {
|
|
192
|
+
width: calc(var(--spacing) * 3);
|
|
193
|
+
height: calc(var(--spacing) * 3);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
.avatar-group:has(> .avatar[data-size='lg']) > [data-count] {
|
|
197
|
+
width: calc(var(--spacing) * 10);
|
|
198
|
+
height: calc(var(--spacing) * 10);
|
|
199
|
+
&>svg {
|
|
200
|
+
width: calc(var(--spacing) * 5);
|
|
201
|
+
height: calc(var(--spacing) * 5);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/* @auvyx/ui badge | order 4 */
|
|
2
|
+
@layer components {
|
|
3
|
+
.badge {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
width: fit-content;
|
|
6
|
+
flex-shrink: 0;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
white-space: nowrap;
|
|
11
|
+
&:focus-visible {
|
|
12
|
+
border-color: var(--color-ring);
|
|
13
|
+
}
|
|
14
|
+
&:focus-visible {
|
|
15
|
+
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
16
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
17
|
+
}
|
|
18
|
+
&:focus-visible {
|
|
19
|
+
--tw-ring-color: var(--color-ring);
|
|
20
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
21
|
+
--tw-ring-color: color-mix(in oklab, var(--color-ring) 50%, transparent);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
&[aria-invalid="true"] {
|
|
25
|
+
border-color: var(--color-destructive);
|
|
26
|
+
}
|
|
27
|
+
&[aria-invalid="true"] {
|
|
28
|
+
--tw-ring-color: var(--color-destructive);
|
|
29
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
30
|
+
--tw-ring-color: color-mix(in oklab, var(--color-destructive) 20%, transparent);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
&:is(html.dark *) {
|
|
34
|
+
&[aria-invalid="true"] {
|
|
35
|
+
--tw-ring-color: var(--color-destructive);
|
|
36
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
37
|
+
--tw-ring-color: color-mix(in oklab, var(--color-destructive) 40%, transparent);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
&>svg {
|
|
42
|
+
pointer-events: none;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@layer components {
|
|
48
|
+
.badge {
|
|
49
|
+
height: calc(var(--spacing) * 5);
|
|
50
|
+
gap: var(--spacing);
|
|
51
|
+
border-radius: var(--radius-4xl);
|
|
52
|
+
border-style: var(--tw-border-style);
|
|
53
|
+
border-width: 1px;
|
|
54
|
+
border-color: transparent;
|
|
55
|
+
padding-inline: calc(var(--spacing) * 2);
|
|
56
|
+
padding-block: calc(var(--spacing) * 0.5);
|
|
57
|
+
font-size: var(--text-xs);
|
|
58
|
+
line-height: var(--tw-leading, var(--text-xs--line-height));
|
|
59
|
+
--tw-font-weight: var(--font-weight-medium);
|
|
60
|
+
font-weight: var(--font-weight-medium);
|
|
61
|
+
transition-property: all;
|
|
62
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
63
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
64
|
+
&>svg {
|
|
65
|
+
width: calc(var(--spacing) * 3) !important;
|
|
66
|
+
height: calc(var(--spacing) * 3) !important;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
.badge:not([data-variant]), .badge[data-variant='primary'] {
|
|
70
|
+
background-color: var(--color-primary);
|
|
71
|
+
color: var(--color-primary-foreground);
|
|
72
|
+
&:is(a) {
|
|
73
|
+
&:hover {
|
|
74
|
+
@media (hover: hover) {
|
|
75
|
+
background-color: var(--color-primary);
|
|
76
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
77
|
+
background-color: color-mix(in oklab, var(--color-primary) 80%, transparent);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
.badge[data-variant='secondary'] {
|
|
84
|
+
background-color: var(--color-secondary);
|
|
85
|
+
color: var(--color-secondary-foreground);
|
|
86
|
+
&:is(a) {
|
|
87
|
+
&:hover {
|
|
88
|
+
@media (hover: hover) {
|
|
89
|
+
background-color: var(--color-secondary);
|
|
90
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
91
|
+
background-color: color-mix(in oklab, var(--color-secondary) 80%, transparent);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
.badge[data-variant='outline'] {
|
|
98
|
+
border-color: var(--color-border);
|
|
99
|
+
color: var(--color-foreground);
|
|
100
|
+
&:is(a) {
|
|
101
|
+
&:hover {
|
|
102
|
+
@media (hover: hover) {
|
|
103
|
+
background-color: var(--color-muted);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
&:is(a) {
|
|
108
|
+
&:hover {
|
|
109
|
+
@media (hover: hover) {
|
|
110
|
+
color: var(--color-muted-foreground);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
.badge[data-variant='destructive'] {
|
|
116
|
+
background-color: var(--color-destructive);
|
|
117
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
118
|
+
background-color: color-mix(in oklab, var(--color-destructive) 10%, transparent);
|
|
119
|
+
}
|
|
120
|
+
color: var(--color-destructive);
|
|
121
|
+
&:focus-visible {
|
|
122
|
+
--tw-ring-color: var(--color-destructive);
|
|
123
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
124
|
+
--tw-ring-color: color-mix(in oklab, var(--color-destructive) 20%, transparent);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
&:is(html.dark *) {
|
|
128
|
+
background-color: var(--color-destructive);
|
|
129
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
130
|
+
background-color: color-mix(in oklab, var(--color-destructive) 20%, transparent);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
&:is(html.dark *) {
|
|
134
|
+
&:focus-visible {
|
|
135
|
+
--tw-ring-color: var(--color-destructive);
|
|
136
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
137
|
+
--tw-ring-color: color-mix(in oklab, var(--color-destructive) 40%, transparent);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
&:is(a) {
|
|
142
|
+
&:hover {
|
|
143
|
+
@media (hover: hover) {
|
|
144
|
+
background-color: var(--color-destructive);
|
|
145
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
146
|
+
background-color: color-mix(in oklab, var(--color-destructive) 20%, transparent);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
.badge[data-variant='ghost'] {
|
|
153
|
+
&:hover {
|
|
154
|
+
@media (hover: hover) {
|
|
155
|
+
background-color: var(--color-muted);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
&:hover {
|
|
159
|
+
@media (hover: hover) {
|
|
160
|
+
color: var(--color-muted-foreground);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
&:is(html.dark *) {
|
|
164
|
+
&:hover {
|
|
165
|
+
@media (hover: hover) {
|
|
166
|
+
background-color: var(--color-muted);
|
|
167
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
168
|
+
background-color: color-mix(in oklab, var(--color-muted) 50%, transparent);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
.badge[data-variant='link'] {
|
|
175
|
+
color: var(--color-primary);
|
|
176
|
+
text-underline-offset: 4px;
|
|
177
|
+
&:hover {
|
|
178
|
+
@media (hover: hover) {
|
|
179
|
+
text-decoration-line: underline;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|