@primer/view-components 0.0.104 → 0.0.105
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/primer.d.ts +2 -1
- package/app/components/primer/primer.js +2 -1
- package/package.json +1 -1
- package/static/arguments.json +300 -138
- package/static/audited_at.json +6 -0
- package/static/constants.json +86 -71
- package/static/statuses.json +10 -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": "",
|
|
@@ -43,6 +47,8 @@
|
|
|
43
47
|
"Primer::Beta::Flash": "",
|
|
44
48
|
"Primer::Beta::Heading": "",
|
|
45
49
|
"Primer::Beta::IconButton": "",
|
|
50
|
+
"Primer::Beta::Label": "",
|
|
51
|
+
"Primer::Beta::Link": "",
|
|
46
52
|
"Primer::Beta::Text": "",
|
|
47
53
|
"Primer::Beta::Truncate": "",
|
|
48
54
|
"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",
|
|
@@ -563,6 +574,81 @@
|
|
|
563
574
|
"invisible"
|
|
564
575
|
]
|
|
565
576
|
},
|
|
577
|
+
"Primer::Beta::Label": {
|
|
578
|
+
"DEFAULT_SCHEME": "default",
|
|
579
|
+
"DEFAULT_SIZE": "medium",
|
|
580
|
+
"DEFAULT_TAG": "span",
|
|
581
|
+
"DEFAULT_VARIANT": "none",
|
|
582
|
+
"DEPRECATED_SCHEME_OPTIONS": [
|
|
583
|
+
"info",
|
|
584
|
+
"warning",
|
|
585
|
+
"orange",
|
|
586
|
+
"purple"
|
|
587
|
+
],
|
|
588
|
+
"DEPRECATED_VARIANT_OPTIONS": [
|
|
589
|
+
"large",
|
|
590
|
+
"inline"
|
|
591
|
+
],
|
|
592
|
+
"INLINE_CLASS": "Label--inline",
|
|
593
|
+
"SCHEME_MAPPINGS": {
|
|
594
|
+
"default": "",
|
|
595
|
+
"primary": "Label--primary",
|
|
596
|
+
"secondary": "Label--secondary",
|
|
597
|
+
"accent": "Label--accent",
|
|
598
|
+
"success": "Label--success",
|
|
599
|
+
"attention": "Label--attention",
|
|
600
|
+
"danger": "Label--danger",
|
|
601
|
+
"severe": "Label--severe",
|
|
602
|
+
"done": "Label--done",
|
|
603
|
+
"sponsors": "Label--sponsors",
|
|
604
|
+
"info": "Label--info",
|
|
605
|
+
"warning": "Label--warning",
|
|
606
|
+
"orange": "Label--orange",
|
|
607
|
+
"purple": "Label--purple"
|
|
608
|
+
},
|
|
609
|
+
"SCHEME_OPTIONS": [
|
|
610
|
+
"default",
|
|
611
|
+
"primary",
|
|
612
|
+
"secondary",
|
|
613
|
+
"accent",
|
|
614
|
+
"success",
|
|
615
|
+
"attention",
|
|
616
|
+
"danger",
|
|
617
|
+
"severe",
|
|
618
|
+
"done",
|
|
619
|
+
"sponsors"
|
|
620
|
+
],
|
|
621
|
+
"SIZE_MAPPINGS": {
|
|
622
|
+
"medium": null,
|
|
623
|
+
"large": "Label--large"
|
|
624
|
+
},
|
|
625
|
+
"SIZE_OPTIONS": [
|
|
626
|
+
"medium",
|
|
627
|
+
"large"
|
|
628
|
+
],
|
|
629
|
+
"TAG_OPTIONS": [
|
|
630
|
+
"span",
|
|
631
|
+
"summary",
|
|
632
|
+
"a",
|
|
633
|
+
"div"
|
|
634
|
+
],
|
|
635
|
+
"VARIANT_OPTIONS": [
|
|
636
|
+
"none"
|
|
637
|
+
]
|
|
638
|
+
},
|
|
639
|
+
"Primer::Beta::Link": {
|
|
640
|
+
"DEFAULT_SCHEME": "default",
|
|
641
|
+
"DEFAULT_TAG": "a",
|
|
642
|
+
"SCHEME_MAPPINGS": {
|
|
643
|
+
"default": "",
|
|
644
|
+
"primary": "Link--primary",
|
|
645
|
+
"secondary": "Link--secondary"
|
|
646
|
+
},
|
|
647
|
+
"TAG_OPTIONS": [
|
|
648
|
+
"a",
|
|
649
|
+
"span"
|
|
650
|
+
]
|
|
651
|
+
},
|
|
566
652
|
"Primer::Beta::Text": {
|
|
567
653
|
"DEFAULT_TAG": "span"
|
|
568
654
|
},
|
|
@@ -685,66 +771,6 @@
|
|
|
685
771
|
"Primer::ImageCrop": {
|
|
686
772
|
},
|
|
687
773
|
"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
774
|
},
|
|
749
775
|
"Primer::LayoutComponent": {
|
|
750
776
|
"ALLOWED_SIDEBAR_COLS": [
|
|
@@ -769,17 +795,6 @@
|
|
|
769
795
|
"MAX_COL": 12
|
|
770
796
|
},
|
|
771
797
|
"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
798
|
},
|
|
784
799
|
"Primer::LocalTime": {
|
|
785
800
|
"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",
|
|
@@ -43,6 +47,8 @@
|
|
|
43
47
|
"Primer::Beta::Flash": "beta",
|
|
44
48
|
"Primer::Beta::Heading": "beta",
|
|
45
49
|
"Primer::Beta::IconButton": "beta",
|
|
50
|
+
"Primer::Beta::Label": "beta",
|
|
51
|
+
"Primer::Beta::Link": "beta",
|
|
46
52
|
"Primer::Beta::Text": "beta",
|
|
47
53
|
"Primer::Beta::Truncate": "beta",
|
|
48
54
|
"Primer::Beta::Truncate::TruncateText": "alpha",
|
|
@@ -60,11 +66,11 @@
|
|
|
60
66
|
"Primer::DropdownMenuComponent": "deprecated",
|
|
61
67
|
"Primer::HellipButton": "alpha",
|
|
62
68
|
"Primer::IconButton": "deprecated",
|
|
63
|
-
"Primer::Image": "
|
|
64
|
-
"Primer::ImageCrop": "
|
|
65
|
-
"Primer::LabelComponent": "
|
|
69
|
+
"Primer::Image": "deprecated",
|
|
70
|
+
"Primer::ImageCrop": "deprecated",
|
|
71
|
+
"Primer::LabelComponent": "deprecated",
|
|
66
72
|
"Primer::LayoutComponent": "alpha",
|
|
67
|
-
"Primer::LinkComponent": "
|
|
73
|
+
"Primer::LinkComponent": "deprecated",
|
|
68
74
|
"Primer::LocalTime": "alpha",
|
|
69
75
|
"Primer::Markdown": "beta",
|
|
70
76
|
"Primer::MenuComponent": "alpha",
|