@primer/view-components 0.0.104 → 0.0.106
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/app/assets/javascripts/primer_view_components.js +1 -1
- package/app/assets/javascripts/primer_view_components.js.map +1 -1
- package/app/assets/styles/primer_view_components.css +1 -1
- package/app/assets/styles/primer_view_components.css.map +1 -1
- package/app/components/primer/{image_crop.d.ts → alpha/image_crop.d.ts} +0 -0
- package/app/components/primer/{image_crop.js → alpha/image_crop.js} +0 -0
- package/app/components/primer/alpha/segmented_control.css +1 -0
- package/app/components/primer/alpha/segmented_control.d.ts +11 -0
- package/app/components/primer/alpha/segmented_control.js +48 -0
- package/app/components/primer/beta/banner.css +1 -0
- package/app/components/primer/beta/x_banner.d.ts +11 -0
- package/app/components/primer/beta/x_banner.js +39 -0
- package/app/components/primer/primer.d.ts +3 -1
- package/app/components/primer/primer.js +3 -1
- package/package.json +1 -1
- package/static/arguments.json +356 -138
- package/static/audited_at.json +7 -0
- package/static/constants.json +101 -71
- package/static/statuses.json +11 -4
package/static/audited_at.json
CHANGED
|
@@ -11,12 +11,16 @@
|
|
|
11
11
|
"Primer::Alpha::Dialog::Footer": "",
|
|
12
12
|
"Primer::Alpha::Dialog::Header": "",
|
|
13
13
|
"Primer::Alpha::HiddenTextExpander": "",
|
|
14
|
+
"Primer::Alpha::Image": "",
|
|
15
|
+
"Primer::Alpha::ImageCrop": "",
|
|
14
16
|
"Primer::Alpha::Layout": "",
|
|
15
17
|
"Primer::Alpha::Layout::Main": "",
|
|
16
18
|
"Primer::Alpha::Layout::Sidebar": "",
|
|
17
19
|
"Primer::Alpha::NavList": "",
|
|
18
20
|
"Primer::Alpha::NavList::Item": "",
|
|
19
21
|
"Primer::Alpha::NavList::Section": "",
|
|
22
|
+
"Primer::Alpha::SegmentedControl": "",
|
|
23
|
+
"Primer::Alpha::SegmentedControl::Item": "",
|
|
20
24
|
"Primer::Alpha::TabNav": "",
|
|
21
25
|
"Primer::Alpha::TabPanels": "",
|
|
22
26
|
"Primer::Alpha::TextField": "",
|
|
@@ -29,6 +33,7 @@
|
|
|
29
33
|
"Primer::Beta::AutoComplete::Item": "",
|
|
30
34
|
"Primer::Beta::Avatar": "",
|
|
31
35
|
"Primer::Beta::AvatarStack": "",
|
|
36
|
+
"Primer::Beta::Banner": "",
|
|
32
37
|
"Primer::Beta::BaseButton": "",
|
|
33
38
|
"Primer::Beta::Blankslate": "",
|
|
34
39
|
"Primer::Beta::BorderBox": "",
|
|
@@ -43,6 +48,8 @@
|
|
|
43
48
|
"Primer::Beta::Flash": "",
|
|
44
49
|
"Primer::Beta::Heading": "",
|
|
45
50
|
"Primer::Beta::IconButton": "",
|
|
51
|
+
"Primer::Beta::Label": "",
|
|
52
|
+
"Primer::Beta::Link": "",
|
|
46
53
|
"Primer::Beta::Text": "",
|
|
47
54
|
"Primer::Beta::Truncate": "",
|
|
48
55
|
"Primer::Beta::Truncate::TruncateText": "",
|
package/static/constants.json
CHANGED
|
@@ -160,6 +160,10 @@
|
|
|
160
160
|
},
|
|
161
161
|
"Primer::Alpha::HiddenTextExpander": {
|
|
162
162
|
},
|
|
163
|
+
"Primer::Alpha::Image": {
|
|
164
|
+
},
|
|
165
|
+
"Primer::Alpha::ImageCrop": {
|
|
166
|
+
},
|
|
163
167
|
"Primer::Alpha::Layout": {
|
|
164
168
|
"FIRST_IN_SOURCE_DEFAULT": "sidebar",
|
|
165
169
|
"FIRST_IN_SOURCE_OPTIONS": [
|
|
@@ -246,6 +250,13 @@
|
|
|
246
250
|
},
|
|
247
251
|
"Primer::Alpha::NavList::Section": {
|
|
248
252
|
},
|
|
253
|
+
"Primer::Alpha::SegmentedControl": {
|
|
254
|
+
"FULL_WIDTH_DEFAULT": false,
|
|
255
|
+
"HIDE_LABELS_DEFAULT": false,
|
|
256
|
+
"Item": "Primer::Alpha::SegmentedControl::Item"
|
|
257
|
+
},
|
|
258
|
+
"Primer::Alpha::SegmentedControl::Item": {
|
|
259
|
+
},
|
|
249
260
|
"Primer::Alpha::TabNav": {
|
|
250
261
|
"BODY_TAG_DEFAULT": "ul",
|
|
251
262
|
"TAG_DEFAULT": "nav",
|
|
@@ -385,6 +396,21 @@
|
|
|
385
396
|
"span"
|
|
386
397
|
]
|
|
387
398
|
},
|
|
399
|
+
"Primer::Beta::Banner": {
|
|
400
|
+
"DEFAULT_ICONS": {
|
|
401
|
+
"default": "bell",
|
|
402
|
+
"warning": "alert",
|
|
403
|
+
"danger": "stop",
|
|
404
|
+
"success": "check-circle"
|
|
405
|
+
},
|
|
406
|
+
"DEFAULT_SCHEME": "default",
|
|
407
|
+
"SCHEME_MAPPINGS": {
|
|
408
|
+
"default": "",
|
|
409
|
+
"warning": "Banner--warning",
|
|
410
|
+
"danger": "Banner--error",
|
|
411
|
+
"success": "Banner--success"
|
|
412
|
+
}
|
|
413
|
+
},
|
|
388
414
|
"Primer::Beta::BaseButton": {
|
|
389
415
|
"DEFAULT_TAG": "button",
|
|
390
416
|
"DEFAULT_TYPE": "button",
|
|
@@ -563,6 +589,81 @@
|
|
|
563
589
|
"invisible"
|
|
564
590
|
]
|
|
565
591
|
},
|
|
592
|
+
"Primer::Beta::Label": {
|
|
593
|
+
"DEFAULT_SCHEME": "default",
|
|
594
|
+
"DEFAULT_SIZE": "medium",
|
|
595
|
+
"DEFAULT_TAG": "span",
|
|
596
|
+
"DEFAULT_VARIANT": "none",
|
|
597
|
+
"DEPRECATED_SCHEME_OPTIONS": [
|
|
598
|
+
"info",
|
|
599
|
+
"warning",
|
|
600
|
+
"orange",
|
|
601
|
+
"purple"
|
|
602
|
+
],
|
|
603
|
+
"DEPRECATED_VARIANT_OPTIONS": [
|
|
604
|
+
"large",
|
|
605
|
+
"inline"
|
|
606
|
+
],
|
|
607
|
+
"INLINE_CLASS": "Label--inline",
|
|
608
|
+
"SCHEME_MAPPINGS": {
|
|
609
|
+
"default": "",
|
|
610
|
+
"primary": "Label--primary",
|
|
611
|
+
"secondary": "Label--secondary",
|
|
612
|
+
"accent": "Label--accent",
|
|
613
|
+
"success": "Label--success",
|
|
614
|
+
"attention": "Label--attention",
|
|
615
|
+
"danger": "Label--danger",
|
|
616
|
+
"severe": "Label--severe",
|
|
617
|
+
"done": "Label--done",
|
|
618
|
+
"sponsors": "Label--sponsors",
|
|
619
|
+
"info": "Label--info",
|
|
620
|
+
"warning": "Label--warning",
|
|
621
|
+
"orange": "Label--orange",
|
|
622
|
+
"purple": "Label--purple"
|
|
623
|
+
},
|
|
624
|
+
"SCHEME_OPTIONS": [
|
|
625
|
+
"default",
|
|
626
|
+
"primary",
|
|
627
|
+
"secondary",
|
|
628
|
+
"accent",
|
|
629
|
+
"success",
|
|
630
|
+
"attention",
|
|
631
|
+
"danger",
|
|
632
|
+
"severe",
|
|
633
|
+
"done",
|
|
634
|
+
"sponsors"
|
|
635
|
+
],
|
|
636
|
+
"SIZE_MAPPINGS": {
|
|
637
|
+
"medium": null,
|
|
638
|
+
"large": "Label--large"
|
|
639
|
+
},
|
|
640
|
+
"SIZE_OPTIONS": [
|
|
641
|
+
"medium",
|
|
642
|
+
"large"
|
|
643
|
+
],
|
|
644
|
+
"TAG_OPTIONS": [
|
|
645
|
+
"span",
|
|
646
|
+
"summary",
|
|
647
|
+
"a",
|
|
648
|
+
"div"
|
|
649
|
+
],
|
|
650
|
+
"VARIANT_OPTIONS": [
|
|
651
|
+
"none"
|
|
652
|
+
]
|
|
653
|
+
},
|
|
654
|
+
"Primer::Beta::Link": {
|
|
655
|
+
"DEFAULT_SCHEME": "default",
|
|
656
|
+
"DEFAULT_TAG": "a",
|
|
657
|
+
"SCHEME_MAPPINGS": {
|
|
658
|
+
"default": "",
|
|
659
|
+
"primary": "Link--primary",
|
|
660
|
+
"secondary": "Link--secondary"
|
|
661
|
+
},
|
|
662
|
+
"TAG_OPTIONS": [
|
|
663
|
+
"a",
|
|
664
|
+
"span"
|
|
665
|
+
]
|
|
666
|
+
},
|
|
566
667
|
"Primer::Beta::Text": {
|
|
567
668
|
"DEFAULT_TAG": "span"
|
|
568
669
|
},
|
|
@@ -685,66 +786,6 @@
|
|
|
685
786
|
"Primer::ImageCrop": {
|
|
686
787
|
},
|
|
687
788
|
"Primer::LabelComponent": {
|
|
688
|
-
"DEFAULT_SCHEME": "default",
|
|
689
|
-
"DEFAULT_SIZE": "medium",
|
|
690
|
-
"DEFAULT_TAG": "span",
|
|
691
|
-
"DEFAULT_VARIANT": "none",
|
|
692
|
-
"DEPRECATED_SCHEME_OPTIONS": [
|
|
693
|
-
"info",
|
|
694
|
-
"warning",
|
|
695
|
-
"orange",
|
|
696
|
-
"purple"
|
|
697
|
-
],
|
|
698
|
-
"DEPRECATED_VARIANT_OPTIONS": [
|
|
699
|
-
"large",
|
|
700
|
-
"inline"
|
|
701
|
-
],
|
|
702
|
-
"INLINE_CLASS": "Label--inline",
|
|
703
|
-
"SCHEME_MAPPINGS": {
|
|
704
|
-
"default": "",
|
|
705
|
-
"primary": "Label--primary",
|
|
706
|
-
"secondary": "Label--secondary",
|
|
707
|
-
"accent": "Label--accent",
|
|
708
|
-
"success": "Label--success",
|
|
709
|
-
"attention": "Label--attention",
|
|
710
|
-
"danger": "Label--danger",
|
|
711
|
-
"severe": "Label--severe",
|
|
712
|
-
"done": "Label--done",
|
|
713
|
-
"sponsors": "Label--sponsors",
|
|
714
|
-
"info": "Label--info",
|
|
715
|
-
"warning": "Label--warning",
|
|
716
|
-
"orange": "Label--orange",
|
|
717
|
-
"purple": "Label--purple"
|
|
718
|
-
},
|
|
719
|
-
"SCHEME_OPTIONS": [
|
|
720
|
-
"default",
|
|
721
|
-
"primary",
|
|
722
|
-
"secondary",
|
|
723
|
-
"accent",
|
|
724
|
-
"success",
|
|
725
|
-
"attention",
|
|
726
|
-
"danger",
|
|
727
|
-
"severe",
|
|
728
|
-
"done",
|
|
729
|
-
"sponsors"
|
|
730
|
-
],
|
|
731
|
-
"SIZE_MAPPINGS": {
|
|
732
|
-
"medium": null,
|
|
733
|
-
"large": "Label--large"
|
|
734
|
-
},
|
|
735
|
-
"SIZE_OPTIONS": [
|
|
736
|
-
"medium",
|
|
737
|
-
"large"
|
|
738
|
-
],
|
|
739
|
-
"TAG_OPTIONS": [
|
|
740
|
-
"span",
|
|
741
|
-
"summary",
|
|
742
|
-
"a",
|
|
743
|
-
"div"
|
|
744
|
-
],
|
|
745
|
-
"VARIANT_OPTIONS": [
|
|
746
|
-
"none"
|
|
747
|
-
]
|
|
748
789
|
},
|
|
749
790
|
"Primer::LayoutComponent": {
|
|
750
791
|
"ALLOWED_SIDEBAR_COLS": [
|
|
@@ -769,17 +810,6 @@
|
|
|
769
810
|
"MAX_COL": 12
|
|
770
811
|
},
|
|
771
812
|
"Primer::LinkComponent": {
|
|
772
|
-
"DEFAULT_SCHEME": "default",
|
|
773
|
-
"DEFAULT_TAG": "a",
|
|
774
|
-
"SCHEME_MAPPINGS": {
|
|
775
|
-
"default": "",
|
|
776
|
-
"primary": "Link--primary",
|
|
777
|
-
"secondary": "Link--secondary"
|
|
778
|
-
},
|
|
779
|
-
"TAG_OPTIONS": [
|
|
780
|
-
"a",
|
|
781
|
-
"span"
|
|
782
|
-
]
|
|
783
813
|
},
|
|
784
814
|
"Primer::LocalTime": {
|
|
785
815
|
"DEFAULT_DIGIT_TYPE": "numeric",
|
package/static/statuses.json
CHANGED
|
@@ -11,12 +11,16 @@
|
|
|
11
11
|
"Primer::Alpha::Dialog::Footer": "alpha",
|
|
12
12
|
"Primer::Alpha::Dialog::Header": "alpha",
|
|
13
13
|
"Primer::Alpha::HiddenTextExpander": "alpha",
|
|
14
|
+
"Primer::Alpha::Image": "alpha",
|
|
15
|
+
"Primer::Alpha::ImageCrop": "alpha",
|
|
14
16
|
"Primer::Alpha::Layout": "alpha",
|
|
15
17
|
"Primer::Alpha::Layout::Main": "alpha",
|
|
16
18
|
"Primer::Alpha::Layout::Sidebar": "alpha",
|
|
17
19
|
"Primer::Alpha::NavList": "alpha",
|
|
18
20
|
"Primer::Alpha::NavList::Item": "alpha",
|
|
19
21
|
"Primer::Alpha::NavList::Section": "alpha",
|
|
22
|
+
"Primer::Alpha::SegmentedControl": "alpha",
|
|
23
|
+
"Primer::Alpha::SegmentedControl::Item": "alpha",
|
|
20
24
|
"Primer::Alpha::TabNav": "alpha",
|
|
21
25
|
"Primer::Alpha::TabPanels": "alpha",
|
|
22
26
|
"Primer::Alpha::TextField": "alpha",
|
|
@@ -29,6 +33,7 @@
|
|
|
29
33
|
"Primer::Beta::AutoComplete::Item": "beta",
|
|
30
34
|
"Primer::Beta::Avatar": "beta",
|
|
31
35
|
"Primer::Beta::AvatarStack": "beta",
|
|
36
|
+
"Primer::Beta::Banner": "beta",
|
|
32
37
|
"Primer::Beta::BaseButton": "beta",
|
|
33
38
|
"Primer::Beta::Blankslate": "beta",
|
|
34
39
|
"Primer::Beta::BorderBox": "beta",
|
|
@@ -43,6 +48,8 @@
|
|
|
43
48
|
"Primer::Beta::Flash": "beta",
|
|
44
49
|
"Primer::Beta::Heading": "beta",
|
|
45
50
|
"Primer::Beta::IconButton": "beta",
|
|
51
|
+
"Primer::Beta::Label": "beta",
|
|
52
|
+
"Primer::Beta::Link": "beta",
|
|
46
53
|
"Primer::Beta::Text": "beta",
|
|
47
54
|
"Primer::Beta::Truncate": "beta",
|
|
48
55
|
"Primer::Beta::Truncate::TruncateText": "alpha",
|
|
@@ -60,11 +67,11 @@
|
|
|
60
67
|
"Primer::DropdownMenuComponent": "deprecated",
|
|
61
68
|
"Primer::HellipButton": "alpha",
|
|
62
69
|
"Primer::IconButton": "deprecated",
|
|
63
|
-
"Primer::Image": "
|
|
64
|
-
"Primer::ImageCrop": "
|
|
65
|
-
"Primer::LabelComponent": "
|
|
70
|
+
"Primer::Image": "deprecated",
|
|
71
|
+
"Primer::ImageCrop": "deprecated",
|
|
72
|
+
"Primer::LabelComponent": "deprecated",
|
|
66
73
|
"Primer::LayoutComponent": "alpha",
|
|
67
|
-
"Primer::LinkComponent": "
|
|
74
|
+
"Primer::LinkComponent": "deprecated",
|
|
68
75
|
"Primer::LocalTime": "alpha",
|
|
69
76
|
"Primer::Markdown": "beta",
|
|
70
77
|
"Primer::MenuComponent": "alpha",
|