welcome-ui 8.4.0 → 8.5.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 (2) hide show
  1. package/dist/WuiProvider.mjs +328 -322
  2. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { j as r } from "./jsx-runtime-Bqq1Hxg9.mjs";
2
+ import { j as a } from "./jsx-runtime-Bqq1Hxg9.mjs";
3
3
  import { createGlobalStyle as p, css as i, th as d, ThemeProvider as m } from "@xstyled/styled-components";
4
4
  import { useState as f, useEffect as g } from "react";
5
5
  const u = "data-wui-hidefocusrings", h = p(
@@ -14,14 +14,14 @@ const u = "data-wui-hidefocusrings", h = p(
14
14
  }) => {
15
15
  const [n, t] = f(!1);
16
16
  return g(() => {
17
- const a = n ? "keydown" : "mousemove", s = () => t((c) => !c);
18
- window.addEventListener(a, s);
17
+ const r = n ? "keydown" : "mousemove", s = () => t((c) => !c);
18
+ window.addEventListener(r, s);
19
19
  const l = document.getElementById(o);
20
20
  return l && (n ? l.setAttribute(u, "true") : l.removeAttribute(u)), () => {
21
- window.removeEventListener(a, s);
21
+ window.removeEventListener(r, s);
22
22
  };
23
- }, [n, o]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
24
- /* @__PURE__ */ r.jsx(h, {}),
23
+ }, [n, o]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
24
+ /* @__PURE__ */ a.jsx(h, {}),
25
25
  e
26
26
  ] });
27
27
  };
@@ -34,7 +34,7 @@ function w({
34
34
  display: o = "swap",
35
35
  extensions: n = ["woff2", "woff"],
36
36
  isVariable: t,
37
- style: a,
37
+ style: r,
38
38
  unicodeRange: s,
39
39
  url: l,
40
40
  weight: c
@@ -48,8 +48,8 @@ function w({
48
48
  ${c && i`
49
49
  font-weight: ${c};
50
50
  `}
51
- ${a && i`
52
- font-style: ${a};
51
+ ${r && i`
52
+ font-style: ${r};
53
53
  `}
54
54
  ${s && i`
55
55
  unicode-range: ${s};
@@ -60,340 +60,344 @@ function w({
60
60
  const k = () => ({ theme: e }) => !e || !e.fontFaces ? null : Object.entries(e.fontFaces).map(
61
61
  ([o, n]) => n.map((t) => w({ name: o, variation: t }))
62
62
  ), v = i`
63
- html,
64
- body,
65
- div,
66
- span,
67
- applet,
68
- object,
69
- iframe,
70
- h1,
71
- h2,
72
- h3,
73
- h4,
74
- h5,
75
- h6,
76
- p,
77
- blockquote,
78
- pre,
79
- a,
80
- abbr,
81
- acronym,
82
- address,
83
- big,
84
- cite,
85
- code,
86
- del,
87
- dfn,
88
- em,
89
- img,
90
- ins,
91
- kbd,
92
- q,
93
- s,
94
- samp,
95
- small,
96
- strike,
97
- strong,
98
- sub,
99
- sup,
100
- tt,
101
- var,
102
- b,
103
- u,
104
- i,
105
- center,
106
- dl,
107
- dt,
108
- dd,
109
- ol,
110
- ul,
111
- li,
112
- fieldset,
113
- form,
114
- label,
115
- legend,
116
- table,
117
- caption,
118
- tbody,
119
- tfoot,
120
- thead,
121
- tr,
122
- th,
123
- td,
124
- article,
125
- aside,
126
- canvas,
127
- details,
128
- embed,
129
- figure,
130
- figcaption,
131
- footer,
132
- header,
133
- hgroup,
134
- menu,
135
- nav,
136
- output,
137
- ruby,
138
- section,
139
- summary,
140
- time,
141
- mark,
142
- audio,
143
- video {
144
- min-width: 0;
145
- min-height: 0;
146
- margin: 0;
147
- padding: 0;
148
- border: 0;
149
- font-size: 100%;
150
- vertical-align: baseline;
151
- }
152
- article,
153
- aside,
154
- details,
155
- figcaption,
156
- figure,
157
- footer,
158
- header,
159
- hgroup,
160
- menu,
161
- nav,
162
- section {
163
- display: block;
164
- }
165
- ol,
166
- ul {
167
- list-style: none;
168
- }
169
- blockquote,
170
- q {
171
- quotes: none;
172
- }
173
- blockquote::before,
174
- blockquote::after,
175
- q::before,
176
- q::after {
177
- content: '';
178
- content: none;
179
- }
180
- table {
181
- border-collapse: collapse;
182
- border-spacing: 0;
183
- }
184
- a {
185
- text-decoration: none;
186
- }
187
- img {
188
- overflow: hidden;
189
- }
190
- input {
191
- -webkit-appearance: none;
192
- -moz-appearance: none;
193
- appearance: none;
194
- }
195
- input::-webkit-search-cancel-button {
196
- display: none;
197
- }
198
- :focus {
199
- outline: none !important; /* important for firefox */
200
- }
201
- *,
202
- *::after,
203
- *::before {
204
- box-sizing: border-box;
205
- -webkit-font-smoothing: antialiased;
206
- -moz-osx-font-smoothing: grayscale;
207
- }
208
- html {
209
- height: 100%;
210
- }
211
- body {
212
- min-height: 100%;
213
- padding-top: 1px;
214
- margin-top: -1px;
63
+ @layer base {
64
+ html,
65
+ body,
66
+ div,
67
+ span,
68
+ applet,
69
+ object,
70
+ iframe,
71
+ h1,
72
+ h2,
73
+ h3,
74
+ h4,
75
+ h5,
76
+ h6,
77
+ p,
78
+ blockquote,
79
+ pre,
80
+ a,
81
+ abbr,
82
+ acronym,
83
+ address,
84
+ big,
85
+ cite,
86
+ code,
87
+ del,
88
+ dfn,
89
+ em,
90
+ img,
91
+ ins,
92
+ kbd,
93
+ q,
94
+ s,
95
+ samp,
96
+ small,
97
+ strike,
98
+ strong,
99
+ sub,
100
+ sup,
101
+ tt,
102
+ var,
103
+ b,
104
+ u,
105
+ i,
106
+ center,
107
+ dl,
108
+ dt,
109
+ dd,
110
+ ol,
111
+ ul,
112
+ li,
113
+ fieldset,
114
+ form,
115
+ label,
116
+ legend,
117
+ table,
118
+ caption,
119
+ tbody,
120
+ tfoot,
121
+ thead,
122
+ tr,
123
+ th,
124
+ td,
125
+ article,
126
+ aside,
127
+ canvas,
128
+ details,
129
+ embed,
130
+ figure,
131
+ figcaption,
132
+ footer,
133
+ header,
134
+ hgroup,
135
+ menu,
136
+ nav,
137
+ output,
138
+ ruby,
139
+ section,
140
+ summary,
141
+ time,
142
+ mark,
143
+ audio,
144
+ video {
145
+ min-width: 0;
146
+ min-height: 0;
147
+ margin: 0;
148
+ padding: 0;
149
+ border: 0;
150
+ font-size: 100%;
151
+ vertical-align: baseline;
152
+ }
153
+ article,
154
+ aside,
155
+ details,
156
+ figcaption,
157
+ figure,
158
+ footer,
159
+ header,
160
+ hgroup,
161
+ menu,
162
+ nav,
163
+ section {
164
+ display: block;
165
+ }
166
+ ol,
167
+ ul {
168
+ list-style: none;
169
+ }
170
+ blockquote,
171
+ q {
172
+ quotes: none;
173
+ }
174
+ blockquote::before,
175
+ blockquote::after,
176
+ q::before,
177
+ q::after {
178
+ content: '';
179
+ content: none;
180
+ }
181
+ table {
182
+ border-collapse: collapse;
183
+ border-spacing: 0;
184
+ }
185
+ a {
186
+ text-decoration: none;
187
+ }
188
+ img {
189
+ overflow: hidden;
190
+ }
191
+ input {
192
+ -webkit-appearance: none;
193
+ -moz-appearance: none;
194
+ appearance: none;
195
+ }
196
+ input::-webkit-search-cancel-button {
197
+ display: none;
198
+ }
199
+ :focus {
200
+ outline: none !important; /* important for firefox */
201
+ }
202
+ *,
203
+ *::after,
204
+ *::before {
205
+ box-sizing: border-box;
206
+ -webkit-font-smoothing: antialiased;
207
+ -moz-osx-font-smoothing: grayscale;
208
+ }
209
+ html {
210
+ height: 100%;
211
+ }
212
+ body {
213
+ min-height: 100%;
214
+ padding-top: 1px;
215
+ margin-top: -1px;
216
+ }
215
217
  }
216
218
  `, z = i`
217
- html {
218
- line-height: 1.15;
219
- -webkit-text-size-adjust: 100%;
220
- }
219
+ @layer base {
220
+ html {
221
+ line-height: 1.15;
222
+ -webkit-text-size-adjust: 100%;
223
+ }
221
224
 
222
- body {
223
- margin: 0;
224
- }
225
+ body {
226
+ margin: 0;
227
+ }
225
228
 
226
- main {
227
- display: block;
228
- }
229
+ main {
230
+ display: block;
231
+ }
229
232
 
230
- h1 {
231
- font-size: 2em;
232
- margin: 0.67em 0;
233
- }
233
+ h1 {
234
+ font-size: 2em;
235
+ margin: 0.67em 0;
236
+ }
234
237
 
235
- hr {
236
- box-sizing: content-box;
237
- height: 0;
238
- overflow: visible;
239
- }
238
+ hr {
239
+ box-sizing: content-box;
240
+ height: 0;
241
+ overflow: visible;
242
+ }
240
243
 
241
- pre {
242
- font-family: monospace;
243
- font-size: 1em;
244
- }
244
+ pre {
245
+ font-family: monospace;
246
+ font-size: 1em;
247
+ }
245
248
 
246
- a {
247
- background-color: transparent;
248
- }
249
+ a {
250
+ background-color: transparent;
251
+ }
249
252
 
250
- abbr[title] {
251
- border-bottom: none;
252
- text-decoration: underline;
253
- text-decoration: underline dotted;
254
- }
253
+ abbr[title] {
254
+ border-bottom: none;
255
+ text-decoration: underline;
256
+ text-decoration: underline dotted;
257
+ }
255
258
 
256
- b,
257
- strong {
258
- font-weight: bolder;
259
- }
259
+ b,
260
+ strong {
261
+ font-weight: bolder;
262
+ }
260
263
 
261
- code,
262
- kbd,
263
- samp {
264
- font-family: monospace;
265
- font-size: 1em;
266
- }
264
+ code,
265
+ kbd,
266
+ samp {
267
+ font-family: monospace;
268
+ font-size: 1em;
269
+ }
267
270
 
268
- small {
269
- font-size: 80%;
270
- }
271
+ small {
272
+ font-size: 80%;
273
+ }
271
274
 
272
- sub,
273
- sup {
274
- font-size: 75%;
275
- line-height: 0;
276
- position: relative;
277
- vertical-align: baseline;
278
- }
275
+ sub,
276
+ sup {
277
+ font-size: 75%;
278
+ line-height: 0;
279
+ position: relative;
280
+ vertical-align: baseline;
281
+ }
279
282
 
280
- sub {
281
- bottom: -0.25em;
282
- }
283
+ sub {
284
+ bottom: -0.25em;
285
+ }
283
286
 
284
- sup {
285
- top: -0.5em;
286
- }
287
+ sup {
288
+ top: -0.5em;
289
+ }
287
290
 
288
- img {
289
- border-style: none;
290
- }
291
+ img {
292
+ border-style: none;
293
+ }
291
294
 
292
- button,
293
- input,
294
- optgroup,
295
- select,
296
- textarea {
297
- font-family: inherit;
298
- font-size: 100%;
299
- line-height: 1.15;
300
- margin: 0;
301
- }
295
+ button,
296
+ input,
297
+ optgroup,
298
+ select,
299
+ textarea {
300
+ font-family: inherit;
301
+ font-size: 100%;
302
+ line-height: 1.15;
303
+ margin: 0;
304
+ }
302
305
 
303
- button,
304
- input {
305
- overflow: visible;
306
- }
306
+ button,
307
+ input {
308
+ overflow: visible;
309
+ }
307
310
 
308
- button,
309
- select {
310
- text-transform: none;
311
- }
311
+ button,
312
+ select {
313
+ text-transform: none;
314
+ }
312
315
 
313
- button,
314
- [type='button'],
315
- [type='reset'],
316
- [type='submit'] {
317
- appearance: auto;
318
- -webkit-appearance: button;
319
- }
316
+ button,
317
+ [type='button'],
318
+ [type='reset'],
319
+ [type='submit'] {
320
+ appearance: auto;
321
+ -webkit-appearance: button;
322
+ }
320
323
 
321
- button::-moz-focus-inner,
322
- [type='button']::-moz-focus-inner,
323
- [type='reset']::-moz-focus-inner,
324
- [type='submit']::-moz-focus-inner {
325
- border-style: none;
326
- padding: 0;
327
- }
324
+ button::-moz-focus-inner,
325
+ [type='button']::-moz-focus-inner,
326
+ [type='reset']::-moz-focus-inner,
327
+ [type='submit']::-moz-focus-inner {
328
+ border-style: none;
329
+ padding: 0;
330
+ }
328
331
 
329
- button:-moz-focusring,
330
- [type='button']:-moz-focusring,
331
- [type='reset']:-moz-focusring,
332
- [type='submit']:-moz-focusring {
333
- outline: 1px dotted ButtonText;
334
- }
332
+ button:-moz-focusring,
333
+ [type='button']:-moz-focusring,
334
+ [type='reset']:-moz-focusring,
335
+ [type='submit']:-moz-focusring {
336
+ outline: 1px dotted ButtonText;
337
+ }
335
338
 
336
- fieldset {
337
- padding: 0.35em 0.75em 0.625em;
338
- }
339
+ fieldset {
340
+ padding: 0.35em 0.75em 0.625em;
341
+ }
339
342
 
340
- legend {
341
- box-sizing: border-box;
342
- color: inherit;
343
- display: table;
344
- max-width: 100%;
345
- padding: 0;
346
- white-space: normal;
347
- }
343
+ legend {
344
+ box-sizing: border-box;
345
+ color: inherit;
346
+ display: table;
347
+ max-width: 100%;
348
+ padding: 0;
349
+ white-space: normal;
350
+ }
348
351
 
349
- progress {
350
- vertical-align: baseline;
351
- }
352
+ progress {
353
+ vertical-align: baseline;
354
+ }
352
355
 
353
- textarea {
354
- overflow: auto;
355
- }
356
+ textarea {
357
+ overflow: auto;
358
+ }
356
359
 
357
- [type='checkbox'],
358
- [type='radio'] {
359
- box-sizing: border-box;
360
- padding: 0;
361
- }
360
+ [type='checkbox'],
361
+ [type='radio'] {
362
+ box-sizing: border-box;
363
+ padding: 0;
364
+ }
362
365
 
363
- [type='number']::-webkit-inner-spin-button,
364
- [type='number']::-webkit-outer-spin-button {
365
- height: auto;
366
- }
366
+ [type='number']::-webkit-inner-spin-button,
367
+ [type='number']::-webkit-outer-spin-button {
368
+ height: auto;
369
+ }
367
370
 
368
- [type='search'] {
369
- appearance: textfield;
370
- -webkit-appearance: textfield;
371
- outline-offset: -2px;
372
- }
371
+ [type='search'] {
372
+ appearance: textfield;
373
+ -webkit-appearance: textfield;
374
+ outline-offset: -2px;
375
+ }
373
376
 
374
- [type='search']::-webkit-search-decoration {
375
- -webkit-appearance: none;
376
- }
377
+ [type='search']::-webkit-search-decoration {
378
+ -webkit-appearance: none;
379
+ }
377
380
 
378
- ::-webkit-file-upload-button {
379
- -webkit-appearance: button;
380
- font: inherit;
381
- }
381
+ ::-webkit-file-upload-button {
382
+ -webkit-appearance: button;
383
+ font: inherit;
384
+ }
382
385
 
383
- details {
384
- display: block;
385
- }
386
+ details {
387
+ display: block;
388
+ }
386
389
 
387
- summary {
388
- display: list-item;
389
- }
390
+ summary {
391
+ display: list-item;
392
+ }
390
393
 
391
- template {
392
- display: none;
393
- }
394
+ template {
395
+ display: none;
396
+ }
394
397
 
395
- [hidden] {
396
- display: none;
398
+ [hidden] {
399
+ display: none;
400
+ }
397
401
  }
398
402
  `, $ = i`
399
403
  * {
@@ -406,16 +410,18 @@ const k = () => ({ theme: e }) => !e || !e.fontFaces ? null : Object.entries(e.f
406
410
  `;
407
411
  function j() {
408
412
  return i`
409
- body,
410
- button,
411
- input,
412
- select,
413
- textarea {
414
- /* stylelint-disable-next-line */
415
- font-family: texts;
416
- -webkit-font-smoothing: antialiased;
417
- line-height: html;
418
- letter-spacing: html;
413
+ @layer base {
414
+ body,
415
+ button,
416
+ input,
417
+ select,
418
+ textarea {
419
+ /* stylelint-disable-next-line */
420
+ font-family: texts;
421
+ -webkit-font-smoothing: antialiased;
422
+ line-height: html;
423
+ letter-spacing: html;
424
+ }
419
425
  }
420
426
  `;
421
427
  }
@@ -457,11 +463,11 @@ const b = p(
457
463
  hasGlobalStyle: o = !0,
458
464
  reactRootId: n = "root",
459
465
  shouldHideFocusRingOnClick: t = !0,
460
- theme: a,
466
+ theme: r,
461
467
  useReset: s
462
- }) => /* @__PURE__ */ r.jsx(m, { theme: a, children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
463
- o ? /* @__PURE__ */ r.jsx(b, { useReset: s }) : null,
464
- t ? /* @__PURE__ */ r.jsx(y, { reactRootId: n, children: e }) : e
468
+ }) => /* @__PURE__ */ a.jsx(m, { theme: r, children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
469
+ o ? /* @__PURE__ */ a.jsx(b, { useReset: s }) : null,
470
+ t ? /* @__PURE__ */ a.jsx(y, { reactRootId: n, children: e }) : e
465
471
  ] }) }), E = b;
466
472
  F.displayName = "WuiProvider";
467
473
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "welcome-ui",
3
- "version": "8.4.0",
3
+ "version": "8.5.0",
4
4
  "description": "Customizable design system with react • styled-components • styled-system and ariakit.",
5
5
  "files": [
6
6
  "dist"