webadwaita 0.1.0 → 0.2.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 +21 -0
- package/README.md +119 -0
- package/babel.config.cjs +23 -0
- package/package.json +34 -32
- package/src/Box/index.tsx +105 -0
- package/src/Button/index.tsx +153 -0
- package/src/Card/index.tsx +67 -0
- package/src/Checkbox/index.tsx +119 -0
- package/src/Entry/index.tsx +94 -0
- package/src/HeaderBar/index.tsx +78 -0
- package/src/Switch/index.tsx +89 -0
- package/src/index.ts +23 -0
- package/src/theme.ts +19 -0
- package/src/tokens.css.ts +91 -0
- package/dist/Button.d.mts +0 -5
- package/dist/Button.d.ts +0 -5
- package/dist/Button.js +0 -63
- package/dist/Button.mjs +0 -41
- package/dist/button.d.mts +0 -5
- package/dist/button.d.ts +0 -5
- package/dist/button.js +0 -63
- package/dist/button.mjs +0 -15
- package/dist/chunk-FWCSY2DS.mjs +0 -37
- package/dist/styles.css +0 -346
- package/dist/styles.d.mts +0 -2
- package/dist/styles.d.ts +0 -2
- package/dist/styles.js +0 -1
- package/dist/styles.mjs +0 -1
package/dist/styles.css
DELETED
|
@@ -1,346 +0,0 @@
|
|
|
1
|
-
/* src/styles.css */
|
|
2
|
-
@layer properties;
|
|
3
|
-
@layer theme, base, components, utilities;
|
|
4
|
-
@layer theme {
|
|
5
|
-
:root,
|
|
6
|
-
:host {
|
|
7
|
-
--font-sans:
|
|
8
|
-
ui-sans-serif,
|
|
9
|
-
system-ui,
|
|
10
|
-
sans-serif,
|
|
11
|
-
"Apple Color Emoji",
|
|
12
|
-
"Segoe UI Emoji",
|
|
13
|
-
"Segoe UI Symbol",
|
|
14
|
-
"Noto Color Emoji";
|
|
15
|
-
--font-mono:
|
|
16
|
-
ui-monospace,
|
|
17
|
-
SFMono-Regular,
|
|
18
|
-
Menlo,
|
|
19
|
-
Monaco,
|
|
20
|
-
Consolas,
|
|
21
|
-
"Liberation Mono",
|
|
22
|
-
"Courier New",
|
|
23
|
-
monospace;
|
|
24
|
-
--color-blue-400: oklch(70.7% 0.165 254.624);
|
|
25
|
-
--color-blue-500: oklch(62.3% 0.214 259.815);
|
|
26
|
-
--color-black: #000;
|
|
27
|
-
--spacing: 0.25rem;
|
|
28
|
-
--text-sm: 0.875rem;
|
|
29
|
-
--text-sm--line-height: calc(1.25 / 0.875);
|
|
30
|
-
--font-weight-medium: 500;
|
|
31
|
-
--radius-xl: 0.75rem;
|
|
32
|
-
--default-transition-duration: 150ms;
|
|
33
|
-
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
34
|
-
--default-font-family: var(--font-sans);
|
|
35
|
-
--default-mono-font-family: var(--font-mono);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
@layer base {
|
|
39
|
-
*,
|
|
40
|
-
::after,
|
|
41
|
-
::before,
|
|
42
|
-
::backdrop,
|
|
43
|
-
::file-selector-button {
|
|
44
|
-
box-sizing: border-box;
|
|
45
|
-
margin: 0;
|
|
46
|
-
padding: 0;
|
|
47
|
-
border: 0 solid;
|
|
48
|
-
}
|
|
49
|
-
html,
|
|
50
|
-
:host {
|
|
51
|
-
line-height: 1.5;
|
|
52
|
-
-webkit-text-size-adjust: 100%;
|
|
53
|
-
tab-size: 4;
|
|
54
|
-
font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
|
|
55
|
-
font-feature-settings: var(--default-font-feature-settings, normal);
|
|
56
|
-
font-variation-settings: var(--default-font-variation-settings, normal);
|
|
57
|
-
-webkit-tap-highlight-color: transparent;
|
|
58
|
-
}
|
|
59
|
-
hr {
|
|
60
|
-
height: 0;
|
|
61
|
-
color: inherit;
|
|
62
|
-
border-top-width: 1px;
|
|
63
|
-
}
|
|
64
|
-
abbr:where([title]) {
|
|
65
|
-
-webkit-text-decoration: underline dotted;
|
|
66
|
-
text-decoration: underline dotted;
|
|
67
|
-
}
|
|
68
|
-
h1,
|
|
69
|
-
h2,
|
|
70
|
-
h3,
|
|
71
|
-
h4,
|
|
72
|
-
h5,
|
|
73
|
-
h6 {
|
|
74
|
-
font-size: inherit;
|
|
75
|
-
font-weight: inherit;
|
|
76
|
-
}
|
|
77
|
-
a {
|
|
78
|
-
color: inherit;
|
|
79
|
-
-webkit-text-decoration: inherit;
|
|
80
|
-
text-decoration: inherit;
|
|
81
|
-
}
|
|
82
|
-
b,
|
|
83
|
-
strong {
|
|
84
|
-
font-weight: bolder;
|
|
85
|
-
}
|
|
86
|
-
code,
|
|
87
|
-
kbd,
|
|
88
|
-
samp,
|
|
89
|
-
pre {
|
|
90
|
-
font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
|
|
91
|
-
font-feature-settings: var(--default-mono-font-feature-settings, normal);
|
|
92
|
-
font-variation-settings: var(--default-mono-font-variation-settings, normal);
|
|
93
|
-
font-size: 1em;
|
|
94
|
-
}
|
|
95
|
-
small {
|
|
96
|
-
font-size: 80%;
|
|
97
|
-
}
|
|
98
|
-
sub,
|
|
99
|
-
sup {
|
|
100
|
-
font-size: 75%;
|
|
101
|
-
line-height: 0;
|
|
102
|
-
position: relative;
|
|
103
|
-
vertical-align: baseline;
|
|
104
|
-
}
|
|
105
|
-
sub {
|
|
106
|
-
bottom: -0.25em;
|
|
107
|
-
}
|
|
108
|
-
sup {
|
|
109
|
-
top: -0.5em;
|
|
110
|
-
}
|
|
111
|
-
table {
|
|
112
|
-
text-indent: 0;
|
|
113
|
-
border-color: inherit;
|
|
114
|
-
border-collapse: collapse;
|
|
115
|
-
}
|
|
116
|
-
:-moz-focusring {
|
|
117
|
-
outline: auto;
|
|
118
|
-
}
|
|
119
|
-
progress {
|
|
120
|
-
vertical-align: baseline;
|
|
121
|
-
}
|
|
122
|
-
summary {
|
|
123
|
-
display: list-item;
|
|
124
|
-
}
|
|
125
|
-
ol,
|
|
126
|
-
ul,
|
|
127
|
-
menu {
|
|
128
|
-
list-style: none;
|
|
129
|
-
}
|
|
130
|
-
img,
|
|
131
|
-
svg,
|
|
132
|
-
video,
|
|
133
|
-
canvas,
|
|
134
|
-
audio,
|
|
135
|
-
iframe,
|
|
136
|
-
embed,
|
|
137
|
-
object {
|
|
138
|
-
display: block;
|
|
139
|
-
vertical-align: middle;
|
|
140
|
-
}
|
|
141
|
-
img,
|
|
142
|
-
video {
|
|
143
|
-
max-width: 100%;
|
|
144
|
-
height: auto;
|
|
145
|
-
}
|
|
146
|
-
button,
|
|
147
|
-
input,
|
|
148
|
-
select,
|
|
149
|
-
optgroup,
|
|
150
|
-
textarea,
|
|
151
|
-
::file-selector-button {
|
|
152
|
-
font: inherit;
|
|
153
|
-
font-feature-settings: inherit;
|
|
154
|
-
font-variation-settings: inherit;
|
|
155
|
-
letter-spacing: inherit;
|
|
156
|
-
color: inherit;
|
|
157
|
-
border-radius: 0;
|
|
158
|
-
background-color: transparent;
|
|
159
|
-
opacity: 1;
|
|
160
|
-
}
|
|
161
|
-
:where(select:is([multiple], [size])) optgroup {
|
|
162
|
-
font-weight: bolder;
|
|
163
|
-
}
|
|
164
|
-
:where(select:is([multiple], [size])) optgroup option {
|
|
165
|
-
padding-inline-start: 20px;
|
|
166
|
-
}
|
|
167
|
-
::file-selector-button {
|
|
168
|
-
margin-inline-end: 4px;
|
|
169
|
-
}
|
|
170
|
-
::placeholder {
|
|
171
|
-
opacity: 1;
|
|
172
|
-
}
|
|
173
|
-
@supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {
|
|
174
|
-
::placeholder {
|
|
175
|
-
color: currentcolor;
|
|
176
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
177
|
-
color: color-mix(in oklab, currentcolor 50%, transparent);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
textarea {
|
|
182
|
-
resize: vertical;
|
|
183
|
-
}
|
|
184
|
-
::-webkit-search-decoration {
|
|
185
|
-
-webkit-appearance: none;
|
|
186
|
-
}
|
|
187
|
-
::-webkit-date-and-time-value {
|
|
188
|
-
min-height: 1lh;
|
|
189
|
-
text-align: inherit;
|
|
190
|
-
}
|
|
191
|
-
::-webkit-datetime-edit {
|
|
192
|
-
display: inline-flex;
|
|
193
|
-
}
|
|
194
|
-
::-webkit-datetime-edit-fields-wrapper {
|
|
195
|
-
padding: 0;
|
|
196
|
-
}
|
|
197
|
-
::-webkit-datetime-edit,
|
|
198
|
-
::-webkit-datetime-edit-year-field,
|
|
199
|
-
::-webkit-datetime-edit-month-field,
|
|
200
|
-
::-webkit-datetime-edit-day-field,
|
|
201
|
-
::-webkit-datetime-edit-hour-field,
|
|
202
|
-
::-webkit-datetime-edit-minute-field,
|
|
203
|
-
::-webkit-datetime-edit-second-field,
|
|
204
|
-
::-webkit-datetime-edit-millisecond-field,
|
|
205
|
-
::-webkit-datetime-edit-meridiem-field {
|
|
206
|
-
padding-block: 0;
|
|
207
|
-
}
|
|
208
|
-
::-webkit-calendar-picker-indicator {
|
|
209
|
-
line-height: 1;
|
|
210
|
-
}
|
|
211
|
-
:-moz-ui-invalid {
|
|
212
|
-
box-shadow: none;
|
|
213
|
-
}
|
|
214
|
-
button,
|
|
215
|
-
input:where([type=button], [type=reset], [type=submit]),
|
|
216
|
-
::file-selector-button {
|
|
217
|
-
appearance: button;
|
|
218
|
-
}
|
|
219
|
-
::-webkit-inner-spin-button,
|
|
220
|
-
::-webkit-outer-spin-button {
|
|
221
|
-
height: auto;
|
|
222
|
-
}
|
|
223
|
-
[hidden]:where(:not([hidden=until-found])) {
|
|
224
|
-
display: none !important;
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
@layer utilities {
|
|
228
|
-
.inline-flex {
|
|
229
|
-
display: inline-flex;
|
|
230
|
-
}
|
|
231
|
-
.items-center {
|
|
232
|
-
align-items: center;
|
|
233
|
-
}
|
|
234
|
-
.gap-2 {
|
|
235
|
-
gap: calc(var(--spacing) * 2);
|
|
236
|
-
}
|
|
237
|
-
.rounded-xl {
|
|
238
|
-
border-radius: var(--radius-xl);
|
|
239
|
-
}
|
|
240
|
-
.bg-blue-500 {
|
|
241
|
-
background-color: var(--color-blue-500);
|
|
242
|
-
}
|
|
243
|
-
.px-5 {
|
|
244
|
-
padding-inline: calc(var(--spacing) * 5);
|
|
245
|
-
}
|
|
246
|
-
.py-2\.5 {
|
|
247
|
-
padding-block: calc(var(--spacing) * 2.5);
|
|
248
|
-
}
|
|
249
|
-
.text-sm {
|
|
250
|
-
font-size: var(--text-sm);
|
|
251
|
-
line-height: var(--tw-leading, var(--text-sm--line-height));
|
|
252
|
-
}
|
|
253
|
-
.font-medium {
|
|
254
|
-
--tw-font-weight: var(--font-weight-medium);
|
|
255
|
-
font-weight: var(--font-weight-medium);
|
|
256
|
-
}
|
|
257
|
-
.text-black {
|
|
258
|
-
color: var(--color-black);
|
|
259
|
-
}
|
|
260
|
-
.transition-all {
|
|
261
|
-
transition-property: all;
|
|
262
|
-
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
263
|
-
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
264
|
-
}
|
|
265
|
-
.duration-200 {
|
|
266
|
-
--tw-duration: 200ms;
|
|
267
|
-
transition-duration: 200ms;
|
|
268
|
-
}
|
|
269
|
-
.hover\:bg-blue-400 {
|
|
270
|
-
&:hover {
|
|
271
|
-
@media (hover: hover) {
|
|
272
|
-
background-color: var(--color-blue-400);
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
.hover\:shadow-lg {
|
|
277
|
-
&:hover {
|
|
278
|
-
@media (hover: hover) {
|
|
279
|
-
--tw-shadow: 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));
|
|
280
|
-
box-shadow:
|
|
281
|
-
var(--tw-inset-shadow),
|
|
282
|
-
var(--tw-inset-ring-shadow),
|
|
283
|
-
var(--tw-ring-offset-shadow),
|
|
284
|
-
var(--tw-ring-shadow),
|
|
285
|
-
var(--tw-shadow);
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
.hover\:shadow-blue-500\/25 {
|
|
290
|
-
&:hover {
|
|
291
|
-
@media (hover: hover) {
|
|
292
|
-
--tw-shadow-color: color-mix(in srgb, oklch(62.3% 0.214 259.815) 25%, transparent);
|
|
293
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
294
|
-
--tw-shadow-color: color-mix(in oklab, color-mix(in oklab, var(--color-blue-500) 25%, transparent) var(--tw-shadow-alpha), transparent);
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
.active\:scale-\[0\.98\] {
|
|
300
|
-
&:active {
|
|
301
|
-
scale: 0.98;
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
@property --tw-font-weight { syntax: "*"; inherits: false; }
|
|
306
|
-
@property --tw-duration { syntax: "*"; inherits: false; }
|
|
307
|
-
@property --tw-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
|
|
308
|
-
@property --tw-shadow-color { syntax: "*"; inherits: false; }
|
|
309
|
-
@property --tw-shadow-alpha { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
|
|
310
|
-
@property --tw-inset-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
|
|
311
|
-
@property --tw-inset-shadow-color { syntax: "*"; inherits: false; }
|
|
312
|
-
@property --tw-inset-shadow-alpha { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
|
|
313
|
-
@property --tw-ring-color { syntax: "*"; inherits: false; }
|
|
314
|
-
@property --tw-ring-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
|
|
315
|
-
@property --tw-inset-ring-color { syntax: "*"; inherits: false; }
|
|
316
|
-
@property --tw-inset-ring-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
|
|
317
|
-
@property --tw-ring-inset { syntax: "*"; inherits: false; }
|
|
318
|
-
@property --tw-ring-offset-width { syntax: "<length>"; inherits: false; initial-value: 0px; }
|
|
319
|
-
@property --tw-ring-offset-color { syntax: "*"; inherits: false; initial-value: #fff; }
|
|
320
|
-
@property --tw-ring-offset-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
|
|
321
|
-
@layer properties {
|
|
322
|
-
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
323
|
-
*,
|
|
324
|
-
::before,
|
|
325
|
-
::after,
|
|
326
|
-
::backdrop {
|
|
327
|
-
--tw-font-weight: initial;
|
|
328
|
-
--tw-duration: initial;
|
|
329
|
-
--tw-shadow: 0 0 #0000;
|
|
330
|
-
--tw-shadow-color: initial;
|
|
331
|
-
--tw-shadow-alpha: 100%;
|
|
332
|
-
--tw-inset-shadow: 0 0 #0000;
|
|
333
|
-
--tw-inset-shadow-color: initial;
|
|
334
|
-
--tw-inset-shadow-alpha: 100%;
|
|
335
|
-
--tw-ring-color: initial;
|
|
336
|
-
--tw-ring-shadow: 0 0 #0000;
|
|
337
|
-
--tw-inset-ring-color: initial;
|
|
338
|
-
--tw-inset-ring-shadow: 0 0 #0000;
|
|
339
|
-
--tw-ring-inset: initial;
|
|
340
|
-
--tw-ring-offset-width: 0px;
|
|
341
|
-
--tw-ring-offset-color: #fff;
|
|
342
|
-
--tw-ring-offset-shadow: 0 0 #0000;
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
|
package/dist/styles.d.mts
DELETED
package/dist/styles.d.ts
DELETED
package/dist/styles.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
package/dist/styles.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./chunk-FWCSY2DS.mjs";
|