@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,219 @@
|
|
|
1
|
+
/* @auvyx/ui sheet | order 40 */
|
|
2
|
+
@layer components {
|
|
3
|
+
.sheet {
|
|
4
|
+
position: fixed;
|
|
5
|
+
margin: 0;
|
|
6
|
+
display: flex;
|
|
7
|
+
max-height: none;
|
|
8
|
+
max-width: none;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
border-style: var(--tw-border-style);
|
|
12
|
+
border-width: 0px;
|
|
13
|
+
padding: 0;
|
|
14
|
+
opacity: 100%;
|
|
15
|
+
--tw-outline-style: none;
|
|
16
|
+
outline-style: none;
|
|
17
|
+
@media (forced-colors: active) {
|
|
18
|
+
outline: 2px solid transparent;
|
|
19
|
+
outline-offset: 2px;
|
|
20
|
+
}
|
|
21
|
+
transition-property: translate,opacity,overlay,display;
|
|
22
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
23
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
24
|
+
transition-behavior: allow-discrete;
|
|
25
|
+
&::backdrop {
|
|
26
|
+
transition-property: all;
|
|
27
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
28
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
29
|
+
}
|
|
30
|
+
&::backdrop {
|
|
31
|
+
transition-behavior: allow-discrete;
|
|
32
|
+
}
|
|
33
|
+
&:not([data-side]), &[data-side='right'] {
|
|
34
|
+
inset: 0 0 0 auto;
|
|
35
|
+
height: 100%;
|
|
36
|
+
width: calc(3 / 4 * 100%);
|
|
37
|
+
--sheet-from: 100% 0;
|
|
38
|
+
}
|
|
39
|
+
&[data-side='left'] {
|
|
40
|
+
inset: 0 auto 0 0;
|
|
41
|
+
height: 100%;
|
|
42
|
+
width: calc(3 / 4 * 100%);
|
|
43
|
+
--sheet-from: -100% 0;
|
|
44
|
+
}
|
|
45
|
+
&[data-side='top'] {
|
|
46
|
+
inset: 0 0 auto 0;
|
|
47
|
+
height: auto;
|
|
48
|
+
width: 100%;
|
|
49
|
+
--sheet-from: 0 -100%;
|
|
50
|
+
}
|
|
51
|
+
&[data-side='bottom'] {
|
|
52
|
+
inset: auto 0 0 0;
|
|
53
|
+
height: auto;
|
|
54
|
+
width: 100%;
|
|
55
|
+
--sheet-from: 0 100%;
|
|
56
|
+
}
|
|
57
|
+
&:dir(rtl):not([data-side]), &:dir(rtl)[data-side='right'] {
|
|
58
|
+
inset: 0 auto 0 0;
|
|
59
|
+
--sheet-from: -100% 0;
|
|
60
|
+
}
|
|
61
|
+
&:dir(rtl)[data-side='left'] {
|
|
62
|
+
inset: 0 0 0 auto;
|
|
63
|
+
--sheet-from: 100% 0;
|
|
64
|
+
}
|
|
65
|
+
translate: var(--sheet-from);
|
|
66
|
+
&:not([open]) {
|
|
67
|
+
display: none;
|
|
68
|
+
}
|
|
69
|
+
&[open] {
|
|
70
|
+
translate: 0 0;
|
|
71
|
+
@starting-style {
|
|
72
|
+
translate: var(--sheet-from);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
&::backdrop {
|
|
76
|
+
opacity: 100%;
|
|
77
|
+
}
|
|
78
|
+
&:not([open])::backdrop {
|
|
79
|
+
opacity: 0%;
|
|
80
|
+
}
|
|
81
|
+
&[open]::backdrop {
|
|
82
|
+
@starting-style {
|
|
83
|
+
opacity: 0%;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
> section {
|
|
87
|
+
min-height: 0;
|
|
88
|
+
flex: 1;
|
|
89
|
+
overflow-y: auto;
|
|
90
|
+
}
|
|
91
|
+
> footer {
|
|
92
|
+
margin-top: auto;
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: column;
|
|
95
|
+
}
|
|
96
|
+
> :is(button, form[method='dialog']):last-child {
|
|
97
|
+
position: absolute;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
@media (prefers-reduced-motion: reduce) {
|
|
101
|
+
.sheet {
|
|
102
|
+
transition: none;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@layer components {
|
|
108
|
+
.sheet {
|
|
109
|
+
gap: calc(var(--spacing) * 4);
|
|
110
|
+
background-color: var(--color-popover);
|
|
111
|
+
background-clip: padding-box;
|
|
112
|
+
font-size: var(--text-sm);
|
|
113
|
+
line-height: var(--tw-leading, var(--text-sm--line-height));
|
|
114
|
+
color: var(--color-popover-foreground);
|
|
115
|
+
--tw-shadow: var(--shadow-lg, 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1)));
|
|
116
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
117
|
+
--tw-duration: 200ms;
|
|
118
|
+
transition-duration: 200ms;
|
|
119
|
+
--tw-ease: var(--ease-in-out);
|
|
120
|
+
transition-timing-function: var(--ease-in-out);
|
|
121
|
+
&::backdrop {
|
|
122
|
+
--tw-duration: 200ms;
|
|
123
|
+
transition-duration: 200ms;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
.sheet::backdrop {
|
|
127
|
+
background-color: color-mix(in srgb, #000 10%, transparent);
|
|
128
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
129
|
+
background-color: color-mix(in oklab, var(--color-black) 10%, transparent);
|
|
130
|
+
}
|
|
131
|
+
@supports (backdrop-filter: var(--tw)) {
|
|
132
|
+
--tw-backdrop-blur: blur(var(--blur-xs));
|
|
133
|
+
-webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
134
|
+
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
.sheet:not([data-side]), .sheet[data-side='right'] {
|
|
138
|
+
border-inline-start-style: var(--tw-border-style);
|
|
139
|
+
border-inline-start-width: 1px;
|
|
140
|
+
@media (width >= 40rem) {
|
|
141
|
+
max-width: var(--container-sm);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
.sheet[data-side='left'] {
|
|
145
|
+
border-inline-end-style: var(--tw-border-style);
|
|
146
|
+
border-inline-end-width: 1px;
|
|
147
|
+
@media (width >= 40rem) {
|
|
148
|
+
max-width: var(--container-sm);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
.sheet[data-side='top'] {
|
|
152
|
+
border-bottom-style: var(--tw-border-style);
|
|
153
|
+
border-bottom-width: 1px;
|
|
154
|
+
}
|
|
155
|
+
.sheet[data-side='bottom'] {
|
|
156
|
+
border-top-style: var(--tw-border-style);
|
|
157
|
+
border-top-width: 1px;
|
|
158
|
+
}
|
|
159
|
+
.sheet > header {
|
|
160
|
+
display: flex;
|
|
161
|
+
flex-direction: column;
|
|
162
|
+
gap: calc(var(--spacing) * 1.5);
|
|
163
|
+
padding: calc(var(--spacing) * 4);
|
|
164
|
+
}
|
|
165
|
+
.sheet > header > :is(h1, h2, h3, h4, h5, h6) {
|
|
166
|
+
font-size: var(--text-base);
|
|
167
|
+
line-height: var(--tw-leading, var(--text-base--line-height));
|
|
168
|
+
--tw-font-weight: var(--font-weight-medium);
|
|
169
|
+
font-weight: var(--font-weight-medium);
|
|
170
|
+
color: var(--color-foreground);
|
|
171
|
+
}
|
|
172
|
+
.sheet > header > p {
|
|
173
|
+
font-size: var(--text-sm);
|
|
174
|
+
line-height: var(--tw-leading, var(--text-sm--line-height));
|
|
175
|
+
color: var(--color-muted-foreground);
|
|
176
|
+
}
|
|
177
|
+
.sheet > section {
|
|
178
|
+
padding-inline: calc(var(--spacing) * 4);
|
|
179
|
+
}
|
|
180
|
+
.sheet > footer {
|
|
181
|
+
gap: calc(var(--spacing) * 2);
|
|
182
|
+
padding: calc(var(--spacing) * 4);
|
|
183
|
+
}
|
|
184
|
+
.sheet > :is(button, form[method='dialog']):last-child {
|
|
185
|
+
inset-inline-end: calc(var(--spacing) * 4);
|
|
186
|
+
top: calc(var(--spacing) * 4);
|
|
187
|
+
display: inline-flex;
|
|
188
|
+
width: calc(var(--spacing) * 7);
|
|
189
|
+
height: calc(var(--spacing) * 7);
|
|
190
|
+
align-items: center;
|
|
191
|
+
justify-content: center;
|
|
192
|
+
border-radius: var(--auvyx-r-control);
|
|
193
|
+
opacity: 70%;
|
|
194
|
+
transition-property: opacity;
|
|
195
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
196
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
197
|
+
--tw-outline-style: none;
|
|
198
|
+
outline-style: none;
|
|
199
|
+
&:hover {
|
|
200
|
+
@media (hover: hover) {
|
|
201
|
+
opacity: 100%;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
&:focus-visible {
|
|
205
|
+
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
206
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
207
|
+
}
|
|
208
|
+
&:focus-visible {
|
|
209
|
+
--tw-ring-color: var(--color-ring);
|
|
210
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
211
|
+
--tw-ring-color: color-mix(in oklab, var(--color-ring) 50%, transparent);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
& svg {
|
|
215
|
+
width: calc(var(--spacing) * 4);
|
|
216
|
+
height: calc(var(--spacing) * 4);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|