@primer/view-components 0.45.1-rc.015a120e → 0.45.2
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/styles/primer_view_components.css +6963 -1
- package/app/assets/styles/primer_view_components.css.map +1 -1
- package/app/components/primer/alpha/action_bar.css +49 -1
- package/app/components/primer/alpha/action_list.css +525 -1
- package/app/components/primer/alpha/action_list.css.json +64 -64
- package/app/components/primer/alpha/auto_complete.css +131 -1
- package/app/components/primer/alpha/auto_complete.css.json +3 -3
- package/app/components/primer/alpha/banner.css +146 -1
- package/app/components/primer/alpha/banner.css.json +2 -2
- package/app/components/primer/alpha/button_marketing.css +183 -1
- package/app/components/primer/alpha/button_marketing.css.json +6 -6
- package/app/components/primer/alpha/dialog.css +377 -1
- package/app/components/primer/alpha/dialog.css.json +2 -2
- package/app/components/primer/alpha/dropdown.css +296 -1
- package/app/components/primer/alpha/dropdown.css.json +19 -19
- package/app/components/primer/alpha/layout.css +374 -1
- package/app/components/primer/alpha/layout.css.json +10 -10
- package/app/components/primer/alpha/menu.css +124 -1
- package/app/components/primer/alpha/menu.css.json +5 -5
- package/app/components/primer/alpha/overlay.css +25 -1
- package/app/components/primer/alpha/segmented_control.css +161 -1
- package/app/components/primer/alpha/segmented_control.css.json +5 -5
- package/app/components/primer/alpha/select_panel.css +10 -1
- package/app/components/primer/alpha/skeleton_box.css +36 -1
- package/app/components/primer/alpha/stack.css +255 -1
- package/app/components/primer/alpha/stack.css.json +84 -84
- package/app/components/primer/alpha/stack_item.css +27 -1
- package/app/components/primer/alpha/stack_item.css.json +6 -6
- package/app/components/primer/alpha/tab_nav.css +112 -1
- package/app/components/primer/alpha/tab_nav.css.json +5 -5
- package/app/components/primer/alpha/text_field.css +792 -1
- package/app/components/primer/alpha/text_field.css.json +39 -39
- package/app/components/primer/alpha/toggle_switch.css +230 -1
- package/app/components/primer/alpha/toggle_switch.css.json +10 -10
- package/app/components/primer/alpha/tree_view.css +396 -1
- package/app/components/primer/alpha/tree_view.css.json +25 -25
- package/app/components/primer/alpha/underline_nav.css +150 -1
- package/app/components/primer/alpha/underline_nav.css.json +6 -6
- package/app/components/primer/beta/avatar.css +77 -1
- package/app/components/primer/beta/avatar_stack.css +134 -1
- package/app/components/primer/beta/avatar_stack.css.json +6 -7
- package/app/components/primer/beta/blankslate.css +168 -1
- package/app/components/primer/beta/border_box.css +218 -1
- package/app/components/primer/beta/border_box.css.json +3 -3
- package/app/components/primer/beta/breadcrumbs.css +29 -1
- package/app/components/primer/beta/breadcrumbs.css.json +2 -2
- package/app/components/primer/beta/button.css +359 -1
- package/app/components/primer/beta/button.css.json +17 -17
- package/app/components/primer/beta/button_group.css +20 -1
- package/app/components/primer/beta/button_group.css.json +3 -3
- package/app/components/primer/beta/counter.css +38 -1
- package/app/components/primer/beta/flash.css +152 -1
- package/app/components/primer/beta/label.css +109 -1
- package/app/components/primer/beta/label.css.json +3 -3
- package/app/components/primer/beta/link.css +79 -1
- package/app/components/primer/beta/link.css.json +1 -1
- package/app/components/primer/beta/popover.css +215 -1
- package/app/components/primer/beta/popover.css.json +23 -23
- package/app/components/primer/beta/progress_bar.css +38 -1
- package/app/components/primer/beta/progress_bar.css.json +1 -1
- package/app/components/primer/beta/state.css +60 -1
- package/app/components/primer/beta/state.css.json +1 -1
- package/app/components/primer/beta/subhead.css +64 -1
- package/app/components/primer/beta/subhead.css.json +1 -1
- package/app/components/primer/beta/timeline_item.css +106 -1
- package/app/components/primer/beta/timeline_item.css.json +1 -1
- package/app/components/primer/beta/truncate.css +30 -1
- package/app/components/primer/beta/truncate.css.json +6 -6
- package/app/components/primer/truncate.css +23 -1
- package/app/components/primer/truncate.css.json +4 -4
- package/package.json +1 -1
@@ -2,89 +2,89 @@
|
|
2
2
|
"name": "alpha/stack",
|
3
3
|
"selectors": [
|
4
4
|
".Stack",
|
5
|
-
".Stack[data-padding
|
6
|
-
".Stack[data-padding=none]",
|
7
|
-
".Stack[data-padding
|
8
|
-
".Stack[data-padding=condensed]",
|
9
|
-
".Stack[data-padding
|
10
|
-
".Stack[data-padding=normal]",
|
11
|
-
".Stack[data-padding
|
12
|
-
".Stack[data-padding=spacious]",
|
13
|
-
".Stack[data-direction
|
14
|
-
".Stack[data-direction=horizontal]",
|
15
|
-
".Stack[data-direction
|
16
|
-
".Stack[data-direction=vertical]",
|
17
|
-
".Stack[data-gap
|
18
|
-
".Stack[data-gap=none]",
|
19
|
-
".Stack[data-gap
|
20
|
-
".Stack[data-gap=condensed]",
|
21
|
-
".Stack[data-gap
|
22
|
-
".Stack[data-gap=normal]",
|
23
|
-
".Stack[data-gap
|
24
|
-
".Stack[data-gap=spacious]",
|
25
|
-
".Stack[data-align
|
26
|
-
".Stack[data-align=start]",
|
27
|
-
".Stack[data-align
|
28
|
-
".Stack[data-align=center]",
|
29
|
-
".Stack[data-align
|
30
|
-
".Stack[data-align=end]",
|
31
|
-
".Stack[data-align
|
32
|
-
".Stack[data-align=baseline]",
|
33
|
-
".Stack[data-justify
|
34
|
-
".Stack[data-justify=start]",
|
35
|
-
".Stack[data-justify
|
36
|
-
".Stack[data-justify=center]",
|
37
|
-
".Stack[data-justify
|
38
|
-
".Stack[data-justify=end]",
|
39
|
-
".Stack[data-justify
|
40
|
-
".Stack[data-justify=space-between]",
|
41
|
-
".Stack[data-justify
|
42
|
-
".Stack[data-justify=space-evenly]",
|
43
|
-
".Stack[data-wrap
|
44
|
-
".Stack[data-wrap=wrap]",
|
45
|
-
".Stack[data-wrap
|
46
|
-
".Stack[data-wrap=nowrap]",
|
47
|
-
".Stack[data-padding-regular=none]",
|
48
|
-
".Stack[data-padding-regular=condensed]",
|
49
|
-
".Stack[data-padding-regular=normal]",
|
50
|
-
".Stack[data-padding-regular=spacious]",
|
51
|
-
".Stack[data-direction-regular=horizontal]",
|
52
|
-
".Stack[data-direction-regular=vertical]",
|
53
|
-
".Stack[data-gap-regular=none]",
|
54
|
-
".Stack[data-gap-regular=condensed]",
|
55
|
-
".Stack[data-gap-regular=normal]",
|
56
|
-
".Stack[data-gap-regular=spacious]",
|
57
|
-
".Stack[data-align-regular=start]",
|
58
|
-
".Stack[data-align-regular=center]",
|
59
|
-
".Stack[data-align-regular=end]",
|
60
|
-
".Stack[data-align-regular=baseline]",
|
61
|
-
".Stack[data-justify-regular=start]",
|
62
|
-
".Stack[data-justify-regular=center]",
|
63
|
-
".Stack[data-justify-regular=end]",
|
64
|
-
".Stack[data-justify-regular=space-between]",
|
65
|
-
".Stack[data-justify-regular=space-evenly]",
|
66
|
-
".Stack[data-wrap-regular=wrap]",
|
67
|
-
".Stack[data-wrap-regular=nowrap]",
|
68
|
-
".Stack[data-padding-wide=none]",
|
69
|
-
".Stack[data-padding-wide=condensed]",
|
70
|
-
".Stack[data-padding-wide=normal]",
|
71
|
-
".Stack[data-padding-wide=spacious]",
|
72
|
-
".Stack[data-direction-wide=horizontal]",
|
73
|
-
".Stack[data-direction-wide=vertical]",
|
74
|
-
".Stack[data-gap-wide=none]",
|
75
|
-
".Stack[data-gap-wide=condensed]",
|
76
|
-
".Stack[data-gap-wide=normal]",
|
77
|
-
".Stack[data-gap-wide=spacious]",
|
78
|
-
".Stack[data-align-wide=start]",
|
79
|
-
".Stack[data-align-wide=center]",
|
80
|
-
".Stack[data-align-wide=end]",
|
81
|
-
".Stack[data-align-wide=baseline]",
|
82
|
-
".Stack[data-justify-wide=start]",
|
83
|
-
".Stack[data-justify-wide=center]",
|
84
|
-
".Stack[data-justify-wide=end]",
|
85
|
-
".Stack[data-justify-wide=space-between]",
|
86
|
-
".Stack[data-justify-wide=space-evenly]",
|
87
|
-
".Stack[data-wrap-wide=wrap]",
|
88
|
-
".Stack[data-wrap-wide=nowrap]"
|
5
|
+
".Stack[data-padding='none']",
|
6
|
+
".Stack[data-padding-narrow='none']",
|
7
|
+
".Stack[data-padding='condensed']",
|
8
|
+
".Stack[data-padding-narrow='condensed']",
|
9
|
+
".Stack[data-padding='normal']",
|
10
|
+
".Stack[data-padding-narrow='normal']",
|
11
|
+
".Stack[data-padding='spacious']",
|
12
|
+
".Stack[data-padding-narrow='spacious']",
|
13
|
+
".Stack[data-direction='horizontal']",
|
14
|
+
".Stack[data-direction-narrow='horizontal']",
|
15
|
+
".Stack[data-direction='vertical']",
|
16
|
+
".Stack[data-direction-narrow='vertical']",
|
17
|
+
".Stack[data-gap='none']",
|
18
|
+
".Stack[data-gap-narrow='none']",
|
19
|
+
".Stack[data-gap='condensed']",
|
20
|
+
".Stack[data-gap-narrow='condensed']",
|
21
|
+
".Stack[data-gap='normal']",
|
22
|
+
".Stack[data-gap-narrow='normal']",
|
23
|
+
".Stack[data-gap='spacious']",
|
24
|
+
".Stack[data-gap-narrow='spacious']",
|
25
|
+
".Stack[data-align='start']",
|
26
|
+
".Stack[data-align-narrow='start']",
|
27
|
+
".Stack[data-align='center']",
|
28
|
+
".Stack[data-align-narrow='center']",
|
29
|
+
".Stack[data-align='end']",
|
30
|
+
".Stack[data-align-narrow='end']",
|
31
|
+
".Stack[data-align='baseline']",
|
32
|
+
".Stack[data-align-narrow='baseline']",
|
33
|
+
".Stack[data-justify='start']",
|
34
|
+
".Stack[data-justify-narrow='start']",
|
35
|
+
".Stack[data-justify='center']",
|
36
|
+
".Stack[data-justify-narrow='center']",
|
37
|
+
".Stack[data-justify='end']",
|
38
|
+
".Stack[data-justify-narrow='end']",
|
39
|
+
".Stack[data-justify='space-between']",
|
40
|
+
".Stack[data-justify-narrow='space-between']",
|
41
|
+
".Stack[data-justify='space-evenly']",
|
42
|
+
".Stack[data-justify-narrow='space-evenly']",
|
43
|
+
".Stack[data-wrap='wrap']",
|
44
|
+
".Stack[data-wrap-narrow='wrap']",
|
45
|
+
".Stack[data-wrap='nowrap']",
|
46
|
+
".Stack[data-wrap-narrow='nowrap']",
|
47
|
+
".Stack[data-padding-regular='none']",
|
48
|
+
".Stack[data-padding-regular='condensed']",
|
49
|
+
".Stack[data-padding-regular='normal']",
|
50
|
+
".Stack[data-padding-regular='spacious']",
|
51
|
+
".Stack[data-direction-regular='horizontal']",
|
52
|
+
".Stack[data-direction-regular='vertical']",
|
53
|
+
".Stack[data-gap-regular='none']",
|
54
|
+
".Stack[data-gap-regular='condensed']",
|
55
|
+
".Stack[data-gap-regular='normal']",
|
56
|
+
".Stack[data-gap-regular='spacious']",
|
57
|
+
".Stack[data-align-regular='start']",
|
58
|
+
".Stack[data-align-regular='center']",
|
59
|
+
".Stack[data-align-regular='end']",
|
60
|
+
".Stack[data-align-regular='baseline']",
|
61
|
+
".Stack[data-justify-regular='start']",
|
62
|
+
".Stack[data-justify-regular='center']",
|
63
|
+
".Stack[data-justify-regular='end']",
|
64
|
+
".Stack[data-justify-regular='space-between']",
|
65
|
+
".Stack[data-justify-regular='space-evenly']",
|
66
|
+
".Stack[data-wrap-regular='wrap']",
|
67
|
+
".Stack[data-wrap-regular='nowrap']",
|
68
|
+
".Stack[data-padding-wide='none']",
|
69
|
+
".Stack[data-padding-wide='condensed']",
|
70
|
+
".Stack[data-padding-wide='normal']",
|
71
|
+
".Stack[data-padding-wide='spacious']",
|
72
|
+
".Stack[data-direction-wide='horizontal']",
|
73
|
+
".Stack[data-direction-wide='vertical']",
|
74
|
+
".Stack[data-gap-wide='none']",
|
75
|
+
".Stack[data-gap-wide='condensed']",
|
76
|
+
".Stack[data-gap-wide='normal']",
|
77
|
+
".Stack[data-gap-wide='spacious']",
|
78
|
+
".Stack[data-align-wide='start']",
|
79
|
+
".Stack[data-align-wide='center']",
|
80
|
+
".Stack[data-align-wide='end']",
|
81
|
+
".Stack[data-align-wide='baseline']",
|
82
|
+
".Stack[data-justify-wide='start']",
|
83
|
+
".Stack[data-justify-wide='center']",
|
84
|
+
".Stack[data-justify-wide='end']",
|
85
|
+
".Stack[data-justify-wide='space-between']",
|
86
|
+
".Stack[data-justify-wide='space-evenly']",
|
87
|
+
".Stack[data-wrap-wide='wrap']",
|
88
|
+
".Stack[data-wrap-wide='nowrap']"
|
89
89
|
]
|
90
90
|
}
|
@@ -1 +1,27 @@
|
|
1
|
-
.StackItem
|
1
|
+
.StackItem {
|
2
|
+
flex: 0 1 auto;
|
3
|
+
min-inline-size: 0;
|
4
|
+
}
|
5
|
+
.StackItem[data-grow='true'],.StackItem[data-grow-narrow='true'] {
|
6
|
+
flex-grow: 1;
|
7
|
+
}
|
8
|
+
/* @custom-media --veiwportRange-regular */
|
9
|
+
@media (min-width: 48rem) {
|
10
|
+
.StackItem[data-grow-regular='true'] {
|
11
|
+
flex-grow: 1;
|
12
|
+
}
|
13
|
+
|
14
|
+
.StackItem[data-grow-regular='false'] {
|
15
|
+
flex-grow: 0;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
/* @custom-media --viewportRange-wide */
|
19
|
+
@media (min-width: 87.5rem) {
|
20
|
+
.StackItem[data-grow-wide='true'] {
|
21
|
+
flex-grow: 1;
|
22
|
+
}
|
23
|
+
|
24
|
+
.StackItem[data-grow-wide='false'] {
|
25
|
+
flex-grow: 0;
|
26
|
+
}
|
27
|
+
}
|
@@ -2,11 +2,11 @@
|
|
2
2
|
"name": "alpha/stack_item",
|
3
3
|
"selectors": [
|
4
4
|
".StackItem",
|
5
|
-
".StackItem[data-grow
|
6
|
-
".StackItem[data-grow=true]",
|
7
|
-
".StackItem[data-grow-regular=true]",
|
8
|
-
".StackItem[data-grow-regular=false]",
|
9
|
-
".StackItem[data-grow-wide=true]",
|
10
|
-
".StackItem[data-grow-wide=false]"
|
5
|
+
".StackItem[data-grow='true']",
|
6
|
+
".StackItem[data-grow-narrow='true']",
|
7
|
+
".StackItem[data-grow-regular='true']",
|
8
|
+
".StackItem[data-grow-regular='false']",
|
9
|
+
".StackItem[data-grow-wide='true']",
|
10
|
+
".StackItem[data-grow-wide='false']"
|
11
11
|
]
|
12
12
|
}
|
@@ -1 +1,112 @@
|
|
1
|
-
|
1
|
+
/* tabnav */
|
2
|
+
|
3
|
+
/* Outer wrapper */
|
4
|
+
|
5
|
+
.tabnav {
|
6
|
+
margin-top: 0;
|
7
|
+
/* stylelint-disable-next-line primer/spacing */
|
8
|
+
margin-bottom: var(--stack-gap-normal);
|
9
|
+
border-bottom: var(--borderWidth-thin) solid var(--borderColor-default);
|
10
|
+
}
|
11
|
+
|
12
|
+
.tabnav-tabs {
|
13
|
+
display: flex;
|
14
|
+
/* stylelint-disable-next-line primer/spacing */
|
15
|
+
margin-bottom: calc(var(--borderWidth-thin) * -1);
|
16
|
+
overflow: hidden;
|
17
|
+
}
|
18
|
+
|
19
|
+
.tabnav-tab {
|
20
|
+
display: inline-block;
|
21
|
+
flex-shrink: 0;
|
22
|
+
/* stylelint-disable-next-line primer/spacing */
|
23
|
+
padding: var(--base-size-8) var(--control-medium-paddingInline-spacious);
|
24
|
+
font-size: var(--text-body-size-medium);
|
25
|
+
/* stylelint-disable-next-line primer/typography */
|
26
|
+
line-height: 23px;
|
27
|
+
color: var(--fgColor-muted);
|
28
|
+
-webkit-text-decoration: none;
|
29
|
+
text-decoration: none;
|
30
|
+
background-color: transparent;
|
31
|
+
border: var(--borderWidth-thin) solid transparent;
|
32
|
+
border-bottom: 0;
|
33
|
+
transition: color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
|
34
|
+
}
|
35
|
+
|
36
|
+
.tabnav-tab.selected,.tabnav-tab[aria-selected='true'],.tabnav-tab[aria-current]:not([aria-current='false']) {
|
37
|
+
color: var(--fgColor-default);
|
38
|
+
background-color: var(--bgColor-default); /* cover bottom border */
|
39
|
+
border-color: var(--borderColor-default);
|
40
|
+
border-radius: var(--borderRadius-medium) var(--borderRadius-medium) 0 0;
|
41
|
+
}
|
42
|
+
|
43
|
+
:is(.tabnav-tab.selected,.tabnav-tab[aria-selected='true'],.tabnav-tab[aria-current]:not([aria-current='false'])) .octicon {
|
44
|
+
color: inherit;
|
45
|
+
}
|
46
|
+
|
47
|
+
.tabnav-tab:hover {
|
48
|
+
color: var(--fgColor-default);
|
49
|
+
-webkit-text-decoration: none;
|
50
|
+
text-decoration: none;
|
51
|
+
transition-duration: 0.1s;
|
52
|
+
}
|
53
|
+
|
54
|
+
.tabnav-tab:focus,.tabnav-tab:focus-visible {
|
55
|
+
border-radius: var(--borderRadius-medium) var(--borderRadius-medium) 0 0 !important;
|
56
|
+
outline-offset: -6px;
|
57
|
+
}
|
58
|
+
|
59
|
+
.tabnav-tab:active {
|
60
|
+
color: var(--fgColor-muted);
|
61
|
+
}
|
62
|
+
|
63
|
+
.tabnav-tab .octicon {
|
64
|
+
/* stylelint-disable-next-line primer/spacing */
|
65
|
+
margin-right: var(--control-small-gap);
|
66
|
+
color: var(--fgColor-muted);
|
67
|
+
}
|
68
|
+
|
69
|
+
.tabnav-tab .Counter {
|
70
|
+
/* stylelint-disable-next-line primer/spacing */
|
71
|
+
margin-left: var(--control-small-gap);
|
72
|
+
color: inherit;
|
73
|
+
}
|
74
|
+
|
75
|
+
/* Tabnav extras
|
76
|
+
**
|
77
|
+
** Tabnav extras are non-tab elements that sit in the tabnav. Usually they're
|
78
|
+
** inline text or links. */
|
79
|
+
|
80
|
+
.tabnav-extra {
|
81
|
+
display: inline-block;
|
82
|
+
/* stylelint-disable-next-line primer/spacing */
|
83
|
+
padding-top: 10px;
|
84
|
+
/* stylelint-disable-next-line primer/spacing */
|
85
|
+
margin-left: 10px;
|
86
|
+
font-size: var(--text-body-size-small);
|
87
|
+
color: var(--fgColor-muted);
|
88
|
+
}
|
89
|
+
|
90
|
+
.tabnav-extra > .octicon {
|
91
|
+
margin-right: var(--base-size-2);
|
92
|
+
}
|
93
|
+
|
94
|
+
/* When tabnav-extra are anchors */
|
95
|
+
|
96
|
+
/* stylelint-disable-next-line selector-no-qualifying-type, selector-max-type */
|
97
|
+
|
98
|
+
a.tabnav-extra:hover {
|
99
|
+
color: var(--fgColor-accent);
|
100
|
+
-webkit-text-decoration: none;
|
101
|
+
text-decoration: none;
|
102
|
+
}
|
103
|
+
|
104
|
+
/* Tabnav buttons
|
105
|
+
**
|
106
|
+
** For when there are multiple buttons, space them out appropriately. Requires
|
107
|
+
** the buttons to be floated or inline-block. */
|
108
|
+
|
109
|
+
.tabnav-btn {
|
110
|
+
/* stylelint-disable-next-line primer/spacing */
|
111
|
+
margin-left: var(--controlStack-medium-gap-condensed);
|
112
|
+
}
|
@@ -5,17 +5,17 @@
|
|
5
5
|
".tabnav-tabs",
|
6
6
|
".tabnav-tab",
|
7
7
|
".tabnav-tab.selected",
|
8
|
-
".tabnav-tab[aria-
|
9
|
-
".tabnav-tab[aria-
|
10
|
-
":is(.tabnav-tab.selected,.tabnav-tab[aria-selected=true],.tabnav-tab[aria-current]:not([aria-current=false])) .octicon",
|
8
|
+
".tabnav-tab[aria-selected='true']",
|
9
|
+
".tabnav-tab[aria-current]:not([aria-current='false'])",
|
10
|
+
":is(.tabnav-tab.selected,.tabnav-tab[aria-selected='true'],.tabnav-tab[aria-current]:not([aria-current='false'])) .octicon",
|
11
11
|
".tabnav-tab:hover",
|
12
12
|
".tabnav-tab:focus",
|
13
13
|
".tabnav-tab:focus-visible",
|
14
|
-
".tabnav-tab .octicon",
|
15
14
|
".tabnav-tab:active",
|
15
|
+
".tabnav-tab .octicon",
|
16
16
|
".tabnav-tab .Counter",
|
17
17
|
".tabnav-extra",
|
18
|
-
".tabnav-extra
|
18
|
+
".tabnav-extra > .octicon",
|
19
19
|
"a.tabnav-extra:hover",
|
20
20
|
".tabnav-btn"
|
21
21
|
]
|