@pingux/astro 2.31.0 → 2.32.0-alpha.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 (51) hide show
  1. package/README.md +11 -4
  2. package/lib/README.md +11 -4
  3. package/lib/cjs/components/Breadcrumbs/BreadcrumbItem.js +3 -2
  4. package/lib/cjs/components/Button/Button.d.ts +4 -0
  5. package/lib/cjs/components/Button/Button.js +37 -24
  6. package/lib/cjs/components/Button/Button.stories.d.ts +46 -0
  7. package/lib/cjs/components/Button/Button.test.d.ts +1 -0
  8. package/lib/cjs/components/Button/Buttons.styles.d.ts +748 -0
  9. package/lib/cjs/components/Button/Buttons.styles.js +0 -2
  10. package/lib/cjs/components/Button/buttonAttributes.d.ts +1 -0
  11. package/lib/cjs/components/Button/buttonAttributes.js +9 -55
  12. package/lib/cjs/components/Button/constants.d.ts +4 -0
  13. package/lib/cjs/components/Button/index.d.ts +1 -0
  14. package/lib/cjs/hooks/index.d.ts +22 -0
  15. package/lib/cjs/hooks/index.js +7 -0
  16. package/lib/cjs/hooks/useDeprecationWarning/index.d.ts +1 -0
  17. package/lib/cjs/hooks/useDeprecationWarning/useDeprecationWarning.d.ts +21 -0
  18. package/lib/cjs/hooks/useDeprecationWarning/useDeprecationWarning.js +0 -10
  19. package/lib/cjs/hooks/useLocalOrForwardRef/index.d.ts +1 -0
  20. package/lib/cjs/hooks/useLocalOrForwardRef/index.js +14 -0
  21. package/lib/cjs/hooks/useLocalOrForwardRef/useLocalOrForwardRef.d.ts +7 -0
  22. package/lib/cjs/hooks/useLocalOrForwardRef/useLocalOrForwardRef.js +21 -0
  23. package/lib/cjs/hooks/useLocalOrForwardRef/useLocalOrForwardRef.test.d.ts +1 -0
  24. package/lib/cjs/hooks/useLocalOrForwardRef/useLocalOrForwardRef.test.js +70 -0
  25. package/lib/cjs/types/button.d.ts +7 -0
  26. package/lib/cjs/types/button.js +6 -0
  27. package/lib/cjs/types/index.d.ts +1 -0
  28. package/lib/cjs/types/index.js +19 -8
  29. package/lib/cjs/types/shared/dom.d.ts +2 -1
  30. package/lib/cjs/types/shared/events.d.ts +5 -0
  31. package/lib/cjs/types/shared/events.js +6 -0
  32. package/lib/cjs/types/shared/index.d.ts +1 -0
  33. package/lib/cjs/types/shared/index.js +14 -3
  34. package/lib/cjs/utils/docUtils/ariaAttributes.d.ts +105 -0
  35. package/lib/cjs/utils/docUtils/pressAttributes.d.ts +7 -0
  36. package/lib/cjs/utils/docUtils/pressAttributes.js +49 -0
  37. package/lib/components/Breadcrumbs/BreadcrumbItem.js +3 -2
  38. package/lib/components/Button/Button.js +39 -26
  39. package/lib/components/Button/Buttons.styles.js +0 -2
  40. package/lib/components/Button/buttonAttributes.js +9 -55
  41. package/lib/hooks/index.js +1 -0
  42. package/lib/hooks/useDeprecationWarning/useDeprecationWarning.js +0 -10
  43. package/lib/hooks/useLocalOrForwardRef/index.js +1 -0
  44. package/lib/hooks/useLocalOrForwardRef/useLocalOrForwardRef.js +14 -0
  45. package/lib/hooks/useLocalOrForwardRef/useLocalOrForwardRef.test.js +61 -0
  46. package/lib/types/button.js +1 -0
  47. package/lib/types/index.js +1 -0
  48. package/lib/types/shared/events.js +1 -0
  49. package/lib/types/shared/index.js +1 -0
  50. package/lib/utils/docUtils/pressAttributes.js +41 -0
  51. package/package.json +1 -1
@@ -0,0 +1,748 @@
1
+ export declare const base: {
2
+ fontSize: string;
3
+ fontWeight: number;
4
+ color: string;
5
+ fontFamily: string;
6
+ display: string;
7
+ overflowWrap: string;
8
+ maxWidth: string;
9
+ wordWrap: string;
10
+ wordBreak: string;
11
+ cursor: string;
12
+ height: string;
13
+ lineHeight: string;
14
+ minWidth: string;
15
+ padding: string;
16
+ outline: string;
17
+ alignItems: string;
18
+ justifyContent: string;
19
+ borderRadius: string;
20
+ flexShrink: number;
21
+ whiteSpace: string;
22
+ };
23
+ export declare const defaultFocus: {
24
+ outline: string;
25
+ outlineColor: string;
26
+ outlineOffset: string;
27
+ };
28
+ export declare const focusWithCroppedOutline: {
29
+ boxShadow: string;
30
+ outline: string;
31
+ outlineColor: string;
32
+ outlineOffset: string;
33
+ };
34
+ export declare const text: {
35
+ display: string;
36
+ bg: string;
37
+ border: string;
38
+ borderColor: string;
39
+ color: string;
40
+ height: string;
41
+ padding: string;
42
+ lineHeight: string;
43
+ '&.is-hovered': {
44
+ textDecoration: string;
45
+ };
46
+ '&.is-focused': {
47
+ boxShadow: string;
48
+ outline: string;
49
+ outlineColor: string;
50
+ outlineOffset: string;
51
+ };
52
+ fontSize: string;
53
+ fontWeight: number;
54
+ fontFamily: string;
55
+ overflowWrap: string;
56
+ maxWidth: string;
57
+ wordWrap: string;
58
+ wordBreak: string;
59
+ cursor: string;
60
+ minWidth: string;
61
+ outline: string;
62
+ alignItems: string;
63
+ justifyContent: string;
64
+ borderRadius: string;
65
+ flexShrink: number;
66
+ whiteSpace: string;
67
+ };
68
+ export declare const quiet: {
69
+ all: string;
70
+ display: string;
71
+ };
72
+ export declare const link: {
73
+ lineHeight: string;
74
+ textDecoration: string;
75
+ display: string;
76
+ justifyContent: string;
77
+ width: string;
78
+ '&.is-current': {
79
+ cursor: string;
80
+ color: string;
81
+ };
82
+ '&.is-focused': {
83
+ boxShadow: string;
84
+ outline: string;
85
+ outlineColor: string;
86
+ outlineOffset: string;
87
+ };
88
+ bg: string;
89
+ border: string;
90
+ borderColor: string;
91
+ color: string;
92
+ height: string;
93
+ padding: string;
94
+ '&.is-hovered': {
95
+ textDecoration: string;
96
+ };
97
+ fontSize: string;
98
+ fontWeight: number;
99
+ fontFamily: string;
100
+ overflowWrap: string;
101
+ maxWidth: string;
102
+ wordWrap: string;
103
+ wordBreak: string;
104
+ cursor: string;
105
+ minWidth: string;
106
+ outline: string;
107
+ alignItems: string;
108
+ borderRadius: string;
109
+ flexShrink: number;
110
+ whiteSpace: string;
111
+ };
112
+ declare const _default: {
113
+ critical: {
114
+ display: string;
115
+ bg: string;
116
+ border: string;
117
+ borderColor: string;
118
+ color: string;
119
+ '&.is-focused': {
120
+ outline: string;
121
+ outlineColor: string;
122
+ outlineOffset: string;
123
+ };
124
+ '&.is-hovered': {
125
+ bg: string;
126
+ borderColor: string;
127
+ };
128
+ '&.is-pressed': {
129
+ bg: string;
130
+ borderColor: string;
131
+ };
132
+ fontSize: string;
133
+ fontWeight: number;
134
+ fontFamily: string;
135
+ overflowWrap: string;
136
+ maxWidth: string;
137
+ wordWrap: string;
138
+ wordBreak: string;
139
+ cursor: string;
140
+ height: string;
141
+ lineHeight: string;
142
+ minWidth: string;
143
+ padding: string;
144
+ outline: string;
145
+ alignItems: string;
146
+ justifyContent: string;
147
+ borderRadius: string;
148
+ flexShrink: number;
149
+ whiteSpace: string;
150
+ };
151
+ default: {
152
+ bg: string;
153
+ border: string;
154
+ borderColor: string;
155
+ '&.is-hovered': {
156
+ bg: string;
157
+ border: string;
158
+ borderColor: string;
159
+ color: string;
160
+ boxShadow: string;
161
+ };
162
+ '&.is-pressed': {
163
+ bg: string;
164
+ border: string;
165
+ borderColor: string;
166
+ color: string;
167
+ path: {
168
+ fill: string;
169
+ };
170
+ };
171
+ '&.is-focused': {
172
+ outline: string;
173
+ outlineColor: string;
174
+ outlineOffset: string;
175
+ };
176
+ fontSize: string;
177
+ fontWeight: number;
178
+ color: string;
179
+ fontFamily: string;
180
+ display: string;
181
+ overflowWrap: string;
182
+ maxWidth: string;
183
+ wordWrap: string;
184
+ wordBreak: string;
185
+ cursor: string;
186
+ height: string;
187
+ lineHeight: string;
188
+ minWidth: string;
189
+ padding: string;
190
+ outline: string;
191
+ alignItems: string;
192
+ justifyContent: string;
193
+ borderRadius: string;
194
+ flexShrink: number;
195
+ whiteSpace: string;
196
+ };
197
+ filter: {
198
+ px: string;
199
+ borderColor: string;
200
+ height: number;
201
+ color: string;
202
+ display: string;
203
+ bg: string;
204
+ border: string;
205
+ '&.is-hovered': {
206
+ bg: string;
207
+ border: string;
208
+ borderColor: string;
209
+ color: string;
210
+ boxShadow: string;
211
+ };
212
+ '&.is-pressed': {
213
+ bg: string;
214
+ border: string;
215
+ borderColor: string;
216
+ color: string;
217
+ path: {
218
+ fill: string;
219
+ };
220
+ };
221
+ '&.is-focused': {
222
+ outline: string;
223
+ outlineColor: string;
224
+ outlineOffset: string;
225
+ };
226
+ fontSize: string;
227
+ fontWeight: number;
228
+ fontFamily: string;
229
+ overflowWrap: string;
230
+ maxWidth: string;
231
+ wordWrap: string;
232
+ wordBreak: string;
233
+ cursor: string;
234
+ lineHeight: string;
235
+ minWidth: string;
236
+ padding: string;
237
+ outline: string;
238
+ alignItems: string;
239
+ justifyContent: string;
240
+ borderRadius: string;
241
+ flexShrink: number;
242
+ whiteSpace: string;
243
+ };
244
+ headerBar: {
245
+ backgroundColor: string;
246
+ '&.is-hovered': {
247
+ border: string;
248
+ bg: string;
249
+ borderColor: string;
250
+ color: string;
251
+ boxShadow: string;
252
+ };
253
+ '&.is-pressed': {
254
+ border: string;
255
+ '> div > span': {
256
+ color: string;
257
+ };
258
+ bg: string;
259
+ borderColor: string;
260
+ color: string;
261
+ path: {
262
+ fill: string;
263
+ };
264
+ };
265
+ '&.is-focused': {
266
+ outline: string;
267
+ outlineColor: string;
268
+ outlineOffset: string;
269
+ };
270
+ fontSize: string;
271
+ fontWeight: number;
272
+ color: string;
273
+ fontFamily: string;
274
+ display: string;
275
+ overflowWrap: string;
276
+ maxWidth: string;
277
+ wordWrap: string;
278
+ wordBreak: string;
279
+ cursor: string;
280
+ height: string;
281
+ lineHeight: string;
282
+ minWidth: string;
283
+ padding: string;
284
+ outline: string;
285
+ alignItems: string;
286
+ justifyContent: string;
287
+ borderRadius: string;
288
+ flexShrink: number;
289
+ whiteSpace: string;
290
+ };
291
+ inline: {
292
+ display: string;
293
+ bg: string;
294
+ height: string;
295
+ lineHeight: number;
296
+ fontSize: string;
297
+ borderRadius: string;
298
+ border: string;
299
+ borderColor: string;
300
+ alignSelf: string;
301
+ paddingTop: string;
302
+ paddingBottom: string;
303
+ '&.is-hovered': {
304
+ bg: string;
305
+ border: string;
306
+ borderColor: string;
307
+ color: string;
308
+ boxShadow: string;
309
+ };
310
+ '&.is-pressed': {
311
+ bg: string;
312
+ border: string;
313
+ borderColor: string;
314
+ color: string;
315
+ path: {
316
+ fill: string;
317
+ };
318
+ };
319
+ '&.is-focused': {
320
+ outline: string;
321
+ outlineColor: string;
322
+ outlineOffset: string;
323
+ };
324
+ fontWeight: number;
325
+ color: string;
326
+ fontFamily: string;
327
+ overflowWrap: string;
328
+ maxWidth: string;
329
+ wordWrap: string;
330
+ wordBreak: string;
331
+ cursor: string;
332
+ minWidth: string;
333
+ padding: string;
334
+ outline: string;
335
+ alignItems: string;
336
+ justifyContent: string;
337
+ flexShrink: number;
338
+ whiteSpace: string;
339
+ };
340
+ inlinePrimary: {
341
+ '&.is-hovered': {
342
+ backgroundColor: string;
343
+ color: string;
344
+ bg: string;
345
+ border: string;
346
+ borderColor: string;
347
+ boxShadow: string;
348
+ };
349
+ '&.is-pressed': {
350
+ backgroundColor: string;
351
+ border: string;
352
+ borderColor: string;
353
+ bg: string;
354
+ color: string;
355
+ path: {
356
+ fill: string;
357
+ };
358
+ };
359
+ bg: string;
360
+ border: string;
361
+ borderColor: string;
362
+ color: string;
363
+ path: {
364
+ fill: string;
365
+ };
366
+ display: string;
367
+ height: string;
368
+ lineHeight: number;
369
+ fontSize: string;
370
+ borderRadius: string;
371
+ alignSelf: string;
372
+ paddingTop: string;
373
+ paddingBottom: string;
374
+ '&.is-focused': {
375
+ outline: string;
376
+ outlineColor: string;
377
+ outlineOffset: string;
378
+ };
379
+ fontWeight: number;
380
+ fontFamily: string;
381
+ overflowWrap: string;
382
+ maxWidth: string;
383
+ wordWrap: string;
384
+ wordBreak: string;
385
+ cursor: string;
386
+ minWidth: string;
387
+ padding: string;
388
+ outline: string;
389
+ alignItems: string;
390
+ justifyContent: string;
391
+ flexShrink: number;
392
+ whiteSpace: string;
393
+ };
394
+ link: {
395
+ lineHeight: string;
396
+ textDecoration: string;
397
+ display: string;
398
+ justifyContent: string;
399
+ width: string;
400
+ '&.is-current': {
401
+ cursor: string;
402
+ color: string;
403
+ };
404
+ '&.is-focused': {
405
+ boxShadow: string;
406
+ outline: string;
407
+ outlineColor: string;
408
+ outlineOffset: string;
409
+ };
410
+ bg: string;
411
+ border: string;
412
+ borderColor: string;
413
+ color: string;
414
+ height: string;
415
+ padding: string;
416
+ '&.is-hovered': {
417
+ textDecoration: string;
418
+ };
419
+ fontSize: string;
420
+ fontWeight: number;
421
+ fontFamily: string;
422
+ overflowWrap: string;
423
+ maxWidth: string;
424
+ wordWrap: string;
425
+ wordBreak: string;
426
+ cursor: string;
427
+ minWidth: string;
428
+ outline: string;
429
+ alignItems: string;
430
+ borderRadius: string;
431
+ flexShrink: number;
432
+ whiteSpace: string;
433
+ };
434
+ primary: {
435
+ display: string;
436
+ bg: string;
437
+ border: string;
438
+ borderColor: string;
439
+ color: string;
440
+ '&.is-hovered': {
441
+ bg: string;
442
+ border: string;
443
+ borderColor: string;
444
+ color: string;
445
+ boxShadow: string;
446
+ };
447
+ '&.is-pressed': {
448
+ bg: string;
449
+ border: string;
450
+ borderColor: string;
451
+ color: string;
452
+ };
453
+ '&.is-focused': {
454
+ outline: string;
455
+ outlineColor: string;
456
+ outlineOffset: string;
457
+ };
458
+ fontSize: string;
459
+ fontWeight: number;
460
+ fontFamily: string;
461
+ overflowWrap: string;
462
+ maxWidth: string;
463
+ wordWrap: string;
464
+ wordBreak: string;
465
+ cursor: string;
466
+ height: string;
467
+ lineHeight: string;
468
+ minWidth: string;
469
+ padding: string;
470
+ outline: string;
471
+ alignItems: string;
472
+ justifyContent: string;
473
+ borderRadius: string;
474
+ flexShrink: number;
475
+ whiteSpace: string;
476
+ };
477
+ quiet: {
478
+ all: string;
479
+ display: string;
480
+ };
481
+ success: {
482
+ display: string;
483
+ bg: string;
484
+ border: string;
485
+ borderColor: string;
486
+ color: string;
487
+ '&.is-focused': {
488
+ outline: string;
489
+ outlineColor: string;
490
+ outlineOffset: string;
491
+ };
492
+ fontSize: string;
493
+ fontWeight: number;
494
+ fontFamily: string;
495
+ overflowWrap: string;
496
+ maxWidth: string;
497
+ wordWrap: string;
498
+ wordBreak: string;
499
+ cursor: string;
500
+ height: string;
501
+ lineHeight: string;
502
+ minWidth: string;
503
+ padding: string;
504
+ outline: string;
505
+ alignItems: string;
506
+ justifyContent: string;
507
+ borderRadius: string;
508
+ flexShrink: number;
509
+ whiteSpace: string;
510
+ };
511
+ colorBlock: {
512
+ bg: string;
513
+ border: string;
514
+ borderColor: string;
515
+ borderRadius: number;
516
+ outline: string;
517
+ cursor: string;
518
+ width: number;
519
+ height: string;
520
+ p: string;
521
+ display: string;
522
+ justifyContent: string;
523
+ alignItems: string;
524
+ '&.is-hovered': {
525
+ bg: string;
526
+ };
527
+ '&.is-focused': {
528
+ outline: string;
529
+ outlineColor: string;
530
+ outlineOffset: string;
531
+ };
532
+ '&.is-pressed': {
533
+ bg: string;
534
+ borderColor: string;
535
+ };
536
+ '& span': {
537
+ color: string;
538
+ textAlign: string;
539
+ };
540
+ '&>div': {
541
+ alignItems: string;
542
+ };
543
+ '&>svg': {
544
+ color: string;
545
+ fill: string;
546
+ };
547
+ '&.is-configured': {
548
+ bg: string;
549
+ borderColor: string;
550
+ '& span': {
551
+ color: string;
552
+ };
553
+ '&>svg': {
554
+ color: string;
555
+ fill: string;
556
+ };
557
+ };
558
+ '&.is-configured.is-hovered': {
559
+ bg: string;
560
+ borderColor: string;
561
+ };
562
+ '&.is-configured.is-pressed': {
563
+ bg: string;
564
+ borderColor: string;
565
+ };
566
+ };
567
+ exampleText: {
568
+ '&.is-hovered': {
569
+ textDecoration: string;
570
+ };
571
+ background: string;
572
+ '&.is-focused': {
573
+ outline: string;
574
+ outlineColor: string;
575
+ outlineOffset: string;
576
+ };
577
+ fontSize: string;
578
+ fontWeight: number;
579
+ color: string;
580
+ fontFamily: string;
581
+ display: string;
582
+ overflowWrap: string;
583
+ maxWidth: string;
584
+ wordWrap: string;
585
+ wordBreak: string;
586
+ cursor: string;
587
+ height: string;
588
+ lineHeight: string;
589
+ minWidth: string;
590
+ padding: string;
591
+ outline: string;
592
+ alignItems: string;
593
+ justifyContent: string;
594
+ borderRadius: string;
595
+ flexShrink: number;
596
+ whiteSpace: string;
597
+ };
598
+ withIcon: {
599
+ padding: string;
600
+ bg: string;
601
+ border: string;
602
+ borderColor: string;
603
+ '&.is-hovered': {
604
+ bg: string;
605
+ border: string;
606
+ borderColor: string;
607
+ color: string;
608
+ boxShadow: string;
609
+ };
610
+ '&.is-pressed': {
611
+ bg: string;
612
+ border: string;
613
+ borderColor: string;
614
+ color: string;
615
+ path: {
616
+ fill: string;
617
+ };
618
+ };
619
+ '&.is-focused': {
620
+ outline: string;
621
+ outlineColor: string;
622
+ outlineOffset: string;
623
+ };
624
+ fontSize: string;
625
+ fontWeight: number;
626
+ color: string;
627
+ fontFamily: string;
628
+ display: string;
629
+ overflowWrap: string;
630
+ maxWidth: string;
631
+ wordWrap: string;
632
+ wordBreak: string;
633
+ cursor: string;
634
+ height: string;
635
+ lineHeight: string;
636
+ minWidth: string;
637
+ outline: string;
638
+ alignItems: string;
639
+ justifyContent: string;
640
+ borderRadius: string;
641
+ flexShrink: number;
642
+ whiteSpace: string;
643
+ };
644
+ inlineWithIcon: {
645
+ padding: string;
646
+ display: string;
647
+ bg: string;
648
+ height: string;
649
+ lineHeight: number;
650
+ fontSize: string;
651
+ borderRadius: string;
652
+ border: string;
653
+ borderColor: string;
654
+ alignSelf: string;
655
+ paddingTop: string;
656
+ paddingBottom: string;
657
+ '&.is-hovered': {
658
+ bg: string;
659
+ border: string;
660
+ borderColor: string;
661
+ color: string;
662
+ boxShadow: string;
663
+ };
664
+ '&.is-pressed': {
665
+ bg: string;
666
+ border: string;
667
+ borderColor: string;
668
+ color: string;
669
+ path: {
670
+ fill: string;
671
+ };
672
+ };
673
+ '&.is-focused': {
674
+ outline: string;
675
+ outlineColor: string;
676
+ outlineOffset: string;
677
+ };
678
+ fontWeight: number;
679
+ color: string;
680
+ fontFamily: string;
681
+ overflowWrap: string;
682
+ maxWidth: string;
683
+ wordWrap: string;
684
+ wordBreak: string;
685
+ cursor: string;
686
+ minWidth: string;
687
+ outline: string;
688
+ alignItems: string;
689
+ justifyContent: string;
690
+ flexShrink: number;
691
+ whiteSpace: string;
692
+ };
693
+ inlinePrimaryWithIcon: {
694
+ padding: string;
695
+ '&.is-hovered': {
696
+ backgroundColor: string;
697
+ color: string;
698
+ bg: string;
699
+ border: string;
700
+ borderColor: string;
701
+ boxShadow: string;
702
+ };
703
+ '&.is-pressed': {
704
+ backgroundColor: string;
705
+ border: string;
706
+ borderColor: string;
707
+ bg: string;
708
+ color: string;
709
+ path: {
710
+ fill: string;
711
+ };
712
+ };
713
+ bg: string;
714
+ border: string;
715
+ borderColor: string;
716
+ color: string;
717
+ path: {
718
+ fill: string;
719
+ };
720
+ display: string;
721
+ height: string;
722
+ lineHeight: number;
723
+ fontSize: string;
724
+ borderRadius: string;
725
+ alignSelf: string;
726
+ paddingTop: string;
727
+ paddingBottom: string;
728
+ '&.is-focused': {
729
+ outline: string;
730
+ outlineColor: string;
731
+ outlineOffset: string;
732
+ };
733
+ fontWeight: number;
734
+ fontFamily: string;
735
+ overflowWrap: string;
736
+ maxWidth: string;
737
+ wordWrap: string;
738
+ wordBreak: string;
739
+ cursor: string;
740
+ minWidth: string;
741
+ outline: string;
742
+ alignItems: string;
743
+ justifyContent: string;
744
+ flexShrink: number;
745
+ whiteSpace: string;
746
+ };
747
+ };
748
+ export default _default;