welcome-ui 0.0.0-dev.1761579486298 → 0.0.0-dev.1761579941363

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 +349 -353
  2. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { j as a } from "./jsx-runtime-Bqq1Hxg9.mjs";
2
+ import { j as r } 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 r = n ? "keydown" : "mousemove", s = () => t((c) => !c);
18
- window.addEventListener(r, s);
17
+ const a = n ? "keydown" : "mousemove", s = () => t((c) => !c);
18
+ window.addEventListener(a, s);
19
19
  const l = document.getElementById(o);
20
20
  return l && (n ? l.setAttribute(u, "true") : l.removeAttribute(u)), () => {
21
- window.removeEventListener(r, s);
21
+ window.removeEventListener(a, s);
22
22
  };
23
- }, [n, o]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
24
- /* @__PURE__ */ a.jsx(h, {}),
23
+ }, [n, o]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
24
+ /* @__PURE__ */ r.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: r,
37
+ style: a,
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
- ${r && i`
52
- font-style: ${r};
51
+ ${a && i`
52
+ font-style: ${a};
53
53
  `}
54
54
  ${s && i`
55
55
  unicode-range: ${s};
@@ -60,344 +60,340 @@ 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
- @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
- }
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;
217
215
  }
218
216
  `, z = i`
219
- @layer base {
220
- html {
221
- line-height: 1.15;
222
- -webkit-text-size-adjust: 100%;
223
- }
217
+ html {
218
+ line-height: 1.15;
219
+ -webkit-text-size-adjust: 100%;
220
+ }
224
221
 
225
- body {
226
- margin: 0;
227
- }
222
+ body {
223
+ margin: 0;
224
+ }
228
225
 
229
- main {
230
- display: block;
231
- }
226
+ main {
227
+ display: block;
228
+ }
232
229
 
233
- h1 {
234
- font-size: 2em;
235
- margin: 0.67em 0;
236
- }
230
+ h1 {
231
+ font-size: 2em;
232
+ margin: 0.67em 0;
233
+ }
237
234
 
238
- hr {
239
- box-sizing: content-box;
240
- height: 0;
241
- overflow: visible;
242
- }
235
+ hr {
236
+ box-sizing: content-box;
237
+ height: 0;
238
+ overflow: visible;
239
+ }
243
240
 
244
- pre {
245
- font-family: monospace;
246
- font-size: 1em;
247
- }
241
+ pre {
242
+ font-family: monospace;
243
+ font-size: 1em;
244
+ }
248
245
 
249
- a {
250
- background-color: transparent;
251
- }
246
+ a {
247
+ background-color: transparent;
248
+ }
252
249
 
253
- abbr[title] {
254
- border-bottom: none;
255
- text-decoration: underline;
256
- text-decoration: underline dotted;
257
- }
250
+ abbr[title] {
251
+ border-bottom: none;
252
+ text-decoration: underline;
253
+ text-decoration: underline dotted;
254
+ }
258
255
 
259
- b,
260
- strong {
261
- font-weight: bolder;
262
- }
256
+ b,
257
+ strong {
258
+ font-weight: bolder;
259
+ }
263
260
 
264
- code,
265
- kbd,
266
- samp {
267
- font-family: monospace;
268
- font-size: 1em;
269
- }
261
+ code,
262
+ kbd,
263
+ samp {
264
+ font-family: monospace;
265
+ font-size: 1em;
266
+ }
270
267
 
271
- small {
272
- font-size: 80%;
273
- }
268
+ small {
269
+ font-size: 80%;
270
+ }
274
271
 
275
- sub,
276
- sup {
277
- font-size: 75%;
278
- line-height: 0;
279
- position: relative;
280
- vertical-align: baseline;
281
- }
272
+ sub,
273
+ sup {
274
+ font-size: 75%;
275
+ line-height: 0;
276
+ position: relative;
277
+ vertical-align: baseline;
278
+ }
282
279
 
283
- sub {
284
- bottom: -0.25em;
285
- }
280
+ sub {
281
+ bottom: -0.25em;
282
+ }
286
283
 
287
- sup {
288
- top: -0.5em;
289
- }
284
+ sup {
285
+ top: -0.5em;
286
+ }
290
287
 
291
- img {
292
- border-style: none;
293
- }
288
+ img {
289
+ border-style: none;
290
+ }
294
291
 
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
- }
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
+ }
305
302
 
306
- button,
307
- input {
308
- overflow: visible;
309
- }
303
+ button,
304
+ input {
305
+ overflow: visible;
306
+ }
310
307
 
311
- button,
312
- select {
313
- text-transform: none;
314
- }
308
+ button,
309
+ select {
310
+ text-transform: none;
311
+ }
315
312
 
316
- button,
317
- [type='button'],
318
- [type='reset'],
319
- [type='submit'] {
320
- appearance: auto;
321
- -webkit-appearance: button;
322
- }
313
+ button,
314
+ [type='button'],
315
+ [type='reset'],
316
+ [type='submit'] {
317
+ appearance: auto;
318
+ -webkit-appearance: button;
319
+ }
323
320
 
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
- }
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
+ }
331
328
 
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
- }
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
+ }
338
335
 
339
- fieldset {
340
- padding: 0.35em 0.75em 0.625em;
341
- }
336
+ fieldset {
337
+ padding: 0.35em 0.75em 0.625em;
338
+ }
342
339
 
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
- }
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
+ }
351
348
 
352
- progress {
353
- vertical-align: baseline;
354
- }
349
+ progress {
350
+ vertical-align: baseline;
351
+ }
355
352
 
356
- textarea {
357
- overflow: auto;
358
- }
353
+ textarea {
354
+ overflow: auto;
355
+ }
359
356
 
360
- [type='checkbox'],
361
- [type='radio'] {
362
- box-sizing: border-box;
363
- padding: 0;
364
- }
357
+ [type='checkbox'],
358
+ [type='radio'] {
359
+ box-sizing: border-box;
360
+ padding: 0;
361
+ }
365
362
 
366
- [type='number']::-webkit-inner-spin-button,
367
- [type='number']::-webkit-outer-spin-button {
368
- height: auto;
369
- }
363
+ [type='number']::-webkit-inner-spin-button,
364
+ [type='number']::-webkit-outer-spin-button {
365
+ height: auto;
366
+ }
370
367
 
371
- [type='search'] {
372
- appearance: textfield;
373
- -webkit-appearance: textfield;
374
- outline-offset: -2px;
375
- }
368
+ [type='search'] {
369
+ appearance: textfield;
370
+ -webkit-appearance: textfield;
371
+ outline-offset: -2px;
372
+ }
376
373
 
377
- [type='search']::-webkit-search-decoration {
378
- -webkit-appearance: none;
379
- }
374
+ [type='search']::-webkit-search-decoration {
375
+ -webkit-appearance: none;
376
+ }
380
377
 
381
- ::-webkit-file-upload-button {
382
- -webkit-appearance: button;
383
- font: inherit;
384
- }
378
+ ::-webkit-file-upload-button {
379
+ -webkit-appearance: button;
380
+ font: inherit;
381
+ }
385
382
 
386
- details {
387
- display: block;
388
- }
383
+ details {
384
+ display: block;
385
+ }
389
386
 
390
- summary {
391
- display: list-item;
392
- }
387
+ summary {
388
+ display: list-item;
389
+ }
393
390
 
394
- template {
395
- display: none;
396
- }
391
+ template {
392
+ display: none;
393
+ }
397
394
 
398
- [hidden] {
399
- display: none;
400
- }
395
+ [hidden] {
396
+ display: none;
401
397
  }
402
398
  `, $ = i`
403
399
  * {
@@ -410,52 +406,52 @@ const k = () => ({ theme: e }) => !e || !e.fontFaces ? null : Object.entries(e.f
410
406
  `;
411
407
  function j() {
412
408
  return i`
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
- }
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;
425
419
  }
426
420
  `;
427
421
  }
428
422
  const b = p(
429
423
  ({ useReset: e }) => i`
430
- ${z};
431
- ${k()};
432
- ${j()};
433
- ${e ? v : $};
434
-
435
- html {
436
- color: neutral-60;
437
- }
424
+ @layer styled-components {
425
+ ${z};
426
+ ${k()};
427
+ ${j()};
428
+ ${e ? v : $};
429
+
430
+ html {
431
+ color: neutral-60;
432
+ }
438
433
 
439
- ::selection {
440
- ${d("selection")};
441
- }
434
+ ::selection {
435
+ ${d("selection")};
436
+ }
442
437
 
443
- /* for firefox */
444
- &[type='search'] {
445
- appearance: none;
446
- }
438
+ /* for firefox */
439
+ &[type='search'] {
440
+ appearance: none;
441
+ }
447
442
 
448
- /* to remove x on macos */
449
- input[type='search']::-webkit-search-decoration,
450
- input[type='search']::-webkit-search-cancel-button,
451
- input[type='search']::-webkit-search-results-button,
452
- input[type='search']::-webkit-search-results-decoration {
453
- appearance: none;
454
- }
443
+ /* to remove x on macos */
444
+ input[type='search']::-webkit-search-decoration,
445
+ input[type='search']::-webkit-search-cancel-button,
446
+ input[type='search']::-webkit-search-results-button,
447
+ input[type='search']::-webkit-search-results-decoration {
448
+ appearance: none;
449
+ }
455
450
 
456
- /* Fix to toast notification when useReset prop is add to WUI provider */
457
- .Toaster__message-wrapper {
458
- min-height: 'auto';
451
+ /* Fix to toast notification when useReset prop is add to WUI provider */
452
+ .Toaster__message-wrapper {
453
+ min-height: 'auto';
454
+ }
459
455
  }
460
456
  `
461
457
  ), F = ({
@@ -463,11 +459,11 @@ const b = p(
463
459
  hasGlobalStyle: o = !0,
464
460
  reactRootId: n = "root",
465
461
  shouldHideFocusRingOnClick: t = !0,
466
- theme: r,
462
+ theme: a,
467
463
  useReset: s
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
464
+ }) => /* @__PURE__ */ r.jsx(m, { theme: a, children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
465
+ o ? /* @__PURE__ */ r.jsx(b, { useReset: s }) : null,
466
+ t ? /* @__PURE__ */ r.jsx(y, { reactRootId: n, children: e }) : e
471
467
  ] }) }), E = b;
472
468
  F.displayName = "WuiProvider";
473
469
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "welcome-ui",
3
- "version": "0.0.0-dev.1761579486298",
3
+ "version": "0.0.0-dev.1761579941363",
4
4
  "description": "Customizable design system with react • styled-components • styled-system and ariakit.",
5
5
  "files": [
6
6
  "dist"