@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.
Files changed (143) hide show
  1. package/LICENSE +48 -0
  2. package/README.md +43 -2
  3. package/dist/auvyx.bundle.css +5941 -0
  4. package/dist/auvyx.chart.min.js +2 -0
  5. package/dist/auvyx.corners.min.js +2 -0
  6. package/dist/auvyx.css +10880 -0
  7. package/dist/auvyx.js +3222 -0
  8. package/dist/auvyx.min.css +2 -0
  9. package/dist/auvyx.min.js +19 -0
  10. package/dist/custom-elements.json +948 -0
  11. package/dist/elements/calendar.min.js +2 -0
  12. package/dist/elements/context-menu.min.js +2 -0
  13. package/dist/elements/data-table.min.js +2 -0
  14. package/dist/elements/date-picker.min.js +2 -0
  15. package/dist/elements/index.min.js +2 -0
  16. package/dist/elements/menu.min.js +2 -0
  17. package/dist/elements/resizable.min.js +2 -0
  18. package/dist/js/accordion.min.js +2 -0
  19. package/dist/js/calendar.min.js +2 -0
  20. package/dist/js/combobox.min.js +2 -0
  21. package/dist/js/command.min.js +2 -0
  22. package/dist/js/context-menu.min.js +2 -0
  23. package/dist/js/copy.min.js +2 -0
  24. package/dist/js/data-table.min.js +2 -0
  25. package/dist/js/date-picker.min.js +2 -0
  26. package/dist/js/drawer.min.js +2 -0
  27. package/dist/js/dropdown-menu.min.js +2 -0
  28. package/dist/js/manifest.json +114 -0
  29. package/dist/js/menu.min.js +2 -0
  30. package/dist/js/popover.min.js +2 -0
  31. package/dist/js/resizable.min.js +2 -0
  32. package/dist/js/select.min.js +2 -0
  33. package/dist/js/sidebar.min.js +2 -0
  34. package/dist/js/slider.min.js +2 -0
  35. package/dist/js/tabs.min.js +2 -0
  36. package/dist/js/toast.min.js +19 -0
  37. package/dist/styles/auvyx-luma.min.css +3 -0
  38. package/dist/styles/auvyx-lyra.min.css +3 -0
  39. package/dist/styles/auvyx-maia.min.css +3 -0
  40. package/dist/styles/auvyx-mira.min.css +3 -0
  41. package/dist/styles/auvyx-nova.min.css +3 -0
  42. package/dist/styles/auvyx-rhea.min.css +3 -0
  43. package/dist/styles/auvyx-sera.min.css +3 -0
  44. package/dist/styles/auvyx-vega.min.css +3 -0
  45. package/dist/types/elements.d.ts +262 -0
  46. package/dist/types/react.d.ts +181 -0
  47. package/dist/types/vue.d.ts +155 -0
  48. package/dist/ui/accordion.css +91 -0
  49. package/dist/ui/accordion.js +249 -0
  50. package/dist/ui/accordion.native.css +24 -0
  51. package/dist/ui/alert.css +119 -0
  52. package/dist/ui/aspect-ratio.css +38 -0
  53. package/dist/ui/attachment.css +211 -0
  54. package/dist/ui/avatar.css +204 -0
  55. package/dist/ui/badge.css +183 -0
  56. package/dist/ui/base.css +1200 -0
  57. package/dist/ui/breadcrumb.css +90 -0
  58. package/dist/ui/bubble.css +171 -0
  59. package/dist/ui/button-group.css +110 -0
  60. package/dist/ui/button.css +328 -0
  61. package/dist/ui/calendar.css +260 -0
  62. package/dist/ui/calendar.js +317 -0
  63. package/dist/ui/card.css +126 -0
  64. package/dist/ui/carousel.css +172 -0
  65. package/dist/ui/chart.css +130 -0
  66. package/dist/ui/checkbox.css +119 -0
  67. package/dist/ui/code-block.css +235 -0
  68. package/dist/ui/combobox.css +500 -0
  69. package/dist/ui/combobox.js +757 -0
  70. package/dist/ui/command.css +366 -0
  71. package/dist/ui/command.js +382 -0
  72. package/dist/ui/context-menu.css +17 -0
  73. package/dist/ui/context-menu.js +52 -0
  74. package/dist/ui/copy.js +56 -0
  75. package/dist/ui/data-table.css +114 -0
  76. package/dist/ui/data-table.js +140 -0
  77. package/dist/ui/date-picker.css +14 -0
  78. package/dist/ui/date-picker.js +101 -0
  79. package/dist/ui/dialog.css +363 -0
  80. package/dist/ui/dialog.native.css +6 -0
  81. package/dist/ui/drawer.css +238 -0
  82. package/dist/ui/drawer.js +265 -0
  83. package/dist/ui/dropdown-menu.css +193 -0
  84. package/dist/ui/dropdown-menu.js +388 -0
  85. package/dist/ui/empty.css +111 -0
  86. package/dist/ui/field.css +293 -0
  87. package/dist/ui/hover-card.css +85 -0
  88. package/dist/ui/input-group.css +269 -0
  89. package/dist/ui/input-otp.css +101 -0
  90. package/dist/ui/input.css +117 -0
  91. package/dist/ui/item.css +223 -0
  92. package/dist/ui/kbd.css +50 -0
  93. package/dist/ui/label.css +48 -0
  94. package/dist/ui/manifest.json +667 -0
  95. package/dist/ui/marker.css +66 -0
  96. package/dist/ui/menu.js +161 -0
  97. package/dist/ui/menubar.css +55 -0
  98. package/dist/ui/message-scroller.css +83 -0
  99. package/dist/ui/message.css +69 -0
  100. package/dist/ui/native-select.css +130 -0
  101. package/dist/ui/navigation-menu.css +166 -0
  102. package/dist/ui/popover.css +154 -0
  103. package/dist/ui/popover.js +268 -0
  104. package/dist/ui/popover.native.css +84 -0
  105. package/dist/ui/progress.css +29 -0
  106. package/dist/ui/questionnaire.css +188 -0
  107. package/dist/ui/radio-group.css +115 -0
  108. package/dist/ui/resizable.css +94 -0
  109. package/dist/ui/resizable.js +95 -0
  110. package/dist/ui/scroll-area.css +43 -0
  111. package/dist/ui/select.css +289 -0
  112. package/dist/ui/select.js +646 -0
  113. package/dist/ui/sheet.css +219 -0
  114. package/dist/ui/sidebar.css +716 -0
  115. package/dist/ui/sidebar.js +287 -0
  116. package/dist/ui/skeleton.css +13 -0
  117. package/dist/ui/slider.css +184 -0
  118. package/dist/ui/slider.js +206 -0
  119. package/dist/ui/switch.css +156 -0
  120. package/dist/ui/table.css +157 -0
  121. package/dist/ui/tabs.css +240 -0
  122. package/dist/ui/tabs.js +288 -0
  123. package/dist/ui/textarea.css +91 -0
  124. package/dist/ui/toast.css +110 -0
  125. package/dist/ui/toast.js +378 -0
  126. package/dist/ui/toggle-group.css +42 -0
  127. package/dist/ui/toggle.css +150 -0
  128. package/dist/ui/tooltip.css +319 -0
  129. package/dist/ui/trace.css +142 -0
  130. package/dist/ui/typography.css +184 -0
  131. package/dist/wc/accordion.min.js +2 -0
  132. package/dist/wc/combobox.min.js +2 -0
  133. package/dist/wc/command.min.js +2 -0
  134. package/dist/wc/drawer.min.js +2 -0
  135. package/dist/wc/dropdown-menu.min.js +2 -0
  136. package/dist/wc/manifest.json +154 -0
  137. package/dist/wc/popover.min.js +2 -0
  138. package/dist/wc/select.min.js +2 -0
  139. package/dist/wc/sidebar.min.js +2 -0
  140. package/dist/wc/slider.min.js +2 -0
  141. package/dist/wc/tabs.min.js +2 -0
  142. package/dist/wc/toast.min.js +19 -0
  143. 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
+ }