@primer/view-components 0.0.114 → 0.0.115
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 +2 -2
- package/app/assets/styles/primer_view_components.css.map +1 -1
- package/app/components/primer/alpha/layout.css +1 -0
- package/app/components/primer/alpha/layout.css.json +1 -0
- package/app/components/primer/{menu_component.css → alpha/menu.css} +0 -0
- package/app/components/primer/alpha/menu.css.json +1 -0
- package/app/components/primer/alpha/tool_tip.js +77 -69
- package/app/components/primer/primer.d.ts +2 -0
- package/app/components/primer/primer.js +2 -0
- package/lib/primer/forms/primer_multi_input.d.ts +10 -0
- package/lib/primer/forms/primer_multi_input.js +45 -0
- package/lib/primer/forms/primer_text_field.d.ts +1 -0
- package/lib/primer/forms/primer_text_field.js +62 -0
- package/package.json +5 -2
- package/static/arguments.json +159 -159
- package/static/audited_at.json +4 -0
- package/static/constants.json +42 -34
- package/static/statuses.json +10 -6
- package/app/components/primer/menu_component.css.json +0 -1
package/static/audited_at.json
CHANGED
|
@@ -20,9 +20,11 @@
|
|
|
20
20
|
"Primer::Alpha::Layout": "",
|
|
21
21
|
"Primer::Alpha::Layout::Main": "",
|
|
22
22
|
"Primer::Alpha::Layout::Sidebar": "",
|
|
23
|
+
"Primer::Alpha::Menu": "",
|
|
23
24
|
"Primer::Alpha::NavList": "",
|
|
24
25
|
"Primer::Alpha::NavList::Item": "",
|
|
25
26
|
"Primer::Alpha::NavList::Section": "",
|
|
27
|
+
"Primer::Alpha::OcticonSymbols": "",
|
|
26
28
|
"Primer::Alpha::SegmentedControl": "",
|
|
27
29
|
"Primer::Alpha::SegmentedControl::Item": "",
|
|
28
30
|
"Primer::Alpha::TabNav": "",
|
|
@@ -55,9 +57,11 @@
|
|
|
55
57
|
"Primer::Beta::Label": "",
|
|
56
58
|
"Primer::Beta::Link": "",
|
|
57
59
|
"Primer::Beta::Markdown": "",
|
|
60
|
+
"Primer::Beta::Octicon": "",
|
|
58
61
|
"Primer::Beta::Popover": "",
|
|
59
62
|
"Primer::Beta::ProgressBar": "",
|
|
60
63
|
"Primer::Beta::RelativeTime": "",
|
|
64
|
+
"Primer::Beta::Spinner": "",
|
|
61
65
|
"Primer::Beta::Text": "",
|
|
62
66
|
"Primer::Beta::Truncate": "",
|
|
63
67
|
"Primer::Beta::Truncate::TruncateText": "",
|
package/static/constants.json
CHANGED
|
@@ -300,6 +300,17 @@
|
|
|
300
300
|
"section"
|
|
301
301
|
]
|
|
302
302
|
},
|
|
303
|
+
"Primer::Alpha::Menu": {
|
|
304
|
+
"HEADING_TAG_FALLBACK": "h2",
|
|
305
|
+
"HEADING_TAG_OPTIONS": [
|
|
306
|
+
"h1",
|
|
307
|
+
"h2",
|
|
308
|
+
"h3",
|
|
309
|
+
"h4",
|
|
310
|
+
"h5",
|
|
311
|
+
"h6"
|
|
312
|
+
]
|
|
313
|
+
},
|
|
303
314
|
"Primer::Alpha::NavList": {
|
|
304
315
|
"Item": "Primer::Alpha::NavList::Item",
|
|
305
316
|
"Section": "Primer::Alpha::NavList::Section"
|
|
@@ -308,6 +319,8 @@
|
|
|
308
319
|
},
|
|
309
320
|
"Primer::Alpha::NavList::Section": {
|
|
310
321
|
},
|
|
322
|
+
"Primer::Alpha::OcticonSymbols": {
|
|
323
|
+
},
|
|
311
324
|
"Primer::Alpha::SegmentedControl": {
|
|
312
325
|
"FULL_WIDTH_DEFAULT": false,
|
|
313
326
|
"HIDE_LABELS_DEFAULT": false,
|
|
@@ -717,6 +730,21 @@
|
|
|
717
730
|
"td"
|
|
718
731
|
]
|
|
719
732
|
},
|
|
733
|
+
"Primer::Beta::Octicon": {
|
|
734
|
+
"SIZE_DEFAULT": "small",
|
|
735
|
+
"SIZE_MAPPINGS": {
|
|
736
|
+
"xsmall": 12,
|
|
737
|
+
"small": 16,
|
|
738
|
+
"medium": 24
|
|
739
|
+
},
|
|
740
|
+
"SIZE_MEDIUM": "medium",
|
|
741
|
+
"SIZE_OPTIONS": [
|
|
742
|
+
"xsmall",
|
|
743
|
+
"small",
|
|
744
|
+
"medium"
|
|
745
|
+
],
|
|
746
|
+
"SIZE_XSMALL": "xsmall"
|
|
747
|
+
},
|
|
720
748
|
"Primer::Beta::Popover": {
|
|
721
749
|
"CARET_DEFAULT": "top",
|
|
722
750
|
"CARET_MAPPINGS": {
|
|
@@ -870,6 +898,20 @@
|
|
|
870
898
|
"two_digit"
|
|
871
899
|
]
|
|
872
900
|
},
|
|
901
|
+
"Primer::Beta::Spinner": {
|
|
902
|
+
"DEFAULT_SIZE": "medium",
|
|
903
|
+
"DEFAULT_STYLE": "box-sizing: content-box; color: var(--color-icon-primary);",
|
|
904
|
+
"SIZE_MAPPINGS": {
|
|
905
|
+
"small": 16,
|
|
906
|
+
"medium": 32,
|
|
907
|
+
"large": 64
|
|
908
|
+
},
|
|
909
|
+
"SIZE_OPTIONS": [
|
|
910
|
+
"small",
|
|
911
|
+
"medium",
|
|
912
|
+
"large"
|
|
913
|
+
]
|
|
914
|
+
},
|
|
873
915
|
"Primer::Beta::Text": {
|
|
874
916
|
"DEFAULT_TAG": "span"
|
|
875
917
|
},
|
|
@@ -997,15 +1039,6 @@
|
|
|
997
1039
|
"Primer::Markdown": {
|
|
998
1040
|
},
|
|
999
1041
|
"Primer::MenuComponent": {
|
|
1000
|
-
"HEADING_TAG_FALLBACK": "h2",
|
|
1001
|
-
"HEADING_TAG_OPTIONS": [
|
|
1002
|
-
"h1",
|
|
1003
|
-
"h2",
|
|
1004
|
-
"h3",
|
|
1005
|
-
"h4",
|
|
1006
|
-
"h5",
|
|
1007
|
-
"h6"
|
|
1008
|
-
]
|
|
1009
1042
|
},
|
|
1010
1043
|
"Primer::Navigation::TabComponent": {
|
|
1011
1044
|
"ARIA_CURRENT_OPTIONS_FOR_ANCHOR": [
|
|
@@ -1015,37 +1048,12 @@
|
|
|
1015
1048
|
"DEFAULT_ARIA_CURRENT_FOR_ANCHOR": "page"
|
|
1016
1049
|
},
|
|
1017
1050
|
"Primer::OcticonComponent": {
|
|
1018
|
-
"SIZE_DEFAULT": "small",
|
|
1019
|
-
"SIZE_MAPPINGS": {
|
|
1020
|
-
"xsmall": 12,
|
|
1021
|
-
"small": 16,
|
|
1022
|
-
"medium": 24
|
|
1023
|
-
},
|
|
1024
|
-
"SIZE_MEDIUM": "medium",
|
|
1025
|
-
"SIZE_OPTIONS": [
|
|
1026
|
-
"xsmall",
|
|
1027
|
-
"small",
|
|
1028
|
-
"medium"
|
|
1029
|
-
],
|
|
1030
|
-
"SIZE_XSMALL": "xsmall"
|
|
1031
1051
|
},
|
|
1032
1052
|
"Primer::OcticonSymbolsComponent": {
|
|
1033
1053
|
},
|
|
1034
1054
|
"Primer::PopoverComponent": {
|
|
1035
1055
|
},
|
|
1036
1056
|
"Primer::SpinnerComponent": {
|
|
1037
|
-
"DEFAULT_SIZE": "medium",
|
|
1038
|
-
"DEFAULT_STYLE": "box-sizing: content-box; color: var(--color-icon-primary);",
|
|
1039
|
-
"SIZE_MAPPINGS": {
|
|
1040
|
-
"small": 16,
|
|
1041
|
-
"medium": 32,
|
|
1042
|
-
"large": 64
|
|
1043
|
-
},
|
|
1044
|
-
"SIZE_OPTIONS": [
|
|
1045
|
-
"small",
|
|
1046
|
-
"medium",
|
|
1047
|
-
"large"
|
|
1048
|
-
]
|
|
1049
1057
|
},
|
|
1050
1058
|
"Primer::StateComponent": {
|
|
1051
1059
|
"DEPRECATED_SCHEME_MAPPINGS": {
|
package/static/statuses.json
CHANGED
|
@@ -20,9 +20,11 @@
|
|
|
20
20
|
"Primer::Alpha::Layout": "alpha",
|
|
21
21
|
"Primer::Alpha::Layout::Main": "alpha",
|
|
22
22
|
"Primer::Alpha::Layout::Sidebar": "alpha",
|
|
23
|
+
"Primer::Alpha::Menu": "alpha",
|
|
23
24
|
"Primer::Alpha::NavList": "alpha",
|
|
24
25
|
"Primer::Alpha::NavList::Item": "alpha",
|
|
25
26
|
"Primer::Alpha::NavList::Section": "alpha",
|
|
27
|
+
"Primer::Alpha::OcticonSymbols": "alpha",
|
|
26
28
|
"Primer::Alpha::SegmentedControl": "alpha",
|
|
27
29
|
"Primer::Alpha::SegmentedControl::Item": "alpha",
|
|
28
30
|
"Primer::Alpha::TabNav": "alpha",
|
|
@@ -55,9 +57,11 @@
|
|
|
55
57
|
"Primer::Beta::Label": "beta",
|
|
56
58
|
"Primer::Beta::Link": "beta",
|
|
57
59
|
"Primer::Beta::Markdown": "beta",
|
|
60
|
+
"Primer::Beta::Octicon": "beta",
|
|
58
61
|
"Primer::Beta::Popover": "beta",
|
|
59
62
|
"Primer::Beta::ProgressBar": "beta",
|
|
60
63
|
"Primer::Beta::RelativeTime": "beta",
|
|
64
|
+
"Primer::Beta::Spinner": "beta",
|
|
61
65
|
"Primer::Beta::Text": "beta",
|
|
62
66
|
"Primer::Beta::Truncate": "beta",
|
|
63
67
|
"Primer::Beta::Truncate::TruncateText": "alpha",
|
|
@@ -77,18 +81,18 @@
|
|
|
77
81
|
"Primer::LabelComponent": "deprecated",
|
|
78
82
|
"Primer::LayoutComponent": "alpha",
|
|
79
83
|
"Primer::LinkComponent": "deprecated",
|
|
80
|
-
"Primer::LocalTime": "
|
|
84
|
+
"Primer::LocalTime": "deprecated",
|
|
81
85
|
"Primer::Markdown": "deprecated",
|
|
82
|
-
"Primer::MenuComponent": "
|
|
86
|
+
"Primer::MenuComponent": "deprecated",
|
|
83
87
|
"Primer::Navigation::TabComponent": "alpha",
|
|
84
|
-
"Primer::OcticonComponent": "
|
|
85
|
-
"Primer::OcticonSymbolsComponent": "
|
|
88
|
+
"Primer::OcticonComponent": "deprecated",
|
|
89
|
+
"Primer::OcticonSymbolsComponent": "deprecated",
|
|
86
90
|
"Primer::PopoverComponent": "deprecated",
|
|
87
|
-
"Primer::SpinnerComponent": "
|
|
91
|
+
"Primer::SpinnerComponent": "deprecated",
|
|
88
92
|
"Primer::StateComponent": "beta",
|
|
89
93
|
"Primer::SubheadComponent": "beta",
|
|
90
94
|
"Primer::TabContainerComponent": "alpha",
|
|
91
|
-
"Primer::TimeAgoComponent": "
|
|
95
|
+
"Primer::TimeAgoComponent": "deprecated",
|
|
92
96
|
"Primer::TimelineItemComponent": "beta",
|
|
93
97
|
"Primer::TimelineItemComponent::BadgeComponent": "alpha",
|
|
94
98
|
"Primer::Tooltip": "deprecated",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"name":"menu_component","selectors":[".menu",".menu-item",".menu-item:first-child",".menu-item:first-child:before",".menu-item:last-child",".menu-item:last-child:before",".menu-item:hover",".menu-item:active",".menu-item.selected",".menu-item[aria-current]:not([aria-current=false])",".menu-item[aria-selected=true]",":is(.menu-item.selected",".menu-item[aria-current]:not([aria-current=false])):before",".menu-item .octicon",".menu-item .Counter",".menu-item .menu-warning",".menu-item .avatar",".menu-item.alert .Counter",".menu-heading",".menu-heading:hover",".menu-heading:first-child",".menu-heading:last-child"]}
|