@primer/view-components 0.45.2 → 0.46.0-rc.4285adec

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 (73) hide show
  1. package/app/assets/styles/primer_view_components.css +1 -6963
  2. package/app/assets/styles/primer_view_components.css.map +1 -1
  3. package/app/components/primer/alpha/action_bar.css +1 -49
  4. package/app/components/primer/alpha/action_list.css +1 -525
  5. package/app/components/primer/alpha/action_list.css.json +64 -64
  6. package/app/components/primer/alpha/auto_complete.css +1 -131
  7. package/app/components/primer/alpha/auto_complete.css.json +3 -3
  8. package/app/components/primer/alpha/banner.css +1 -146
  9. package/app/components/primer/alpha/banner.css.json +2 -2
  10. package/app/components/primer/alpha/button_marketing.css +1 -183
  11. package/app/components/primer/alpha/button_marketing.css.json +6 -6
  12. package/app/components/primer/alpha/dialog.css +1 -377
  13. package/app/components/primer/alpha/dialog.css.json +2 -2
  14. package/app/components/primer/alpha/dropdown.css +1 -296
  15. package/app/components/primer/alpha/dropdown.css.json +19 -19
  16. package/app/components/primer/alpha/layout.css +1 -374
  17. package/app/components/primer/alpha/layout.css.json +10 -10
  18. package/app/components/primer/alpha/menu.css +1 -124
  19. package/app/components/primer/alpha/menu.css.json +5 -5
  20. package/app/components/primer/alpha/overlay.css +1 -25
  21. package/app/components/primer/alpha/segmented_control.css +1 -161
  22. package/app/components/primer/alpha/segmented_control.css.json +5 -5
  23. package/app/components/primer/alpha/select_panel.css +1 -10
  24. package/app/components/primer/alpha/skeleton_box.css +1 -36
  25. package/app/components/primer/alpha/stack.css +1 -255
  26. package/app/components/primer/alpha/stack.css.json +84 -84
  27. package/app/components/primer/alpha/stack_item.css +1 -27
  28. package/app/components/primer/alpha/stack_item.css.json +6 -6
  29. package/app/components/primer/alpha/tab_nav.css +1 -112
  30. package/app/components/primer/alpha/tab_nav.css.json +5 -5
  31. package/app/components/primer/alpha/text_field.css +1 -792
  32. package/app/components/primer/alpha/text_field.css.json +39 -39
  33. package/app/components/primer/alpha/toggle_switch.css +1 -230
  34. package/app/components/primer/alpha/toggle_switch.css.json +10 -10
  35. package/app/components/primer/alpha/tree_view.css +1 -396
  36. package/app/components/primer/alpha/tree_view.css.json +25 -25
  37. package/app/components/primer/alpha/underline_nav.css +1 -150
  38. package/app/components/primer/alpha/underline_nav.css.json +6 -6
  39. package/app/components/primer/beta/avatar.css +1 -77
  40. package/app/components/primer/beta/avatar_stack.css +1 -134
  41. package/app/components/primer/beta/avatar_stack.css.json +6 -6
  42. package/app/components/primer/beta/blankslate.css +1 -168
  43. package/app/components/primer/beta/border_box.css +1 -218
  44. package/app/components/primer/beta/border_box.css.json +3 -3
  45. package/app/components/primer/beta/breadcrumbs.css +1 -29
  46. package/app/components/primer/beta/breadcrumbs.css.json +2 -2
  47. package/app/components/primer/beta/button.css +1 -359
  48. package/app/components/primer/beta/button.css.json +17 -17
  49. package/app/components/primer/beta/button_group.css +1 -20
  50. package/app/components/primer/beta/button_group.css.json +3 -3
  51. package/app/components/primer/beta/counter.css +1 -38
  52. package/app/components/primer/beta/flash.css +1 -152
  53. package/app/components/primer/beta/label.css +1 -109
  54. package/app/components/primer/beta/label.css.json +3 -3
  55. package/app/components/primer/beta/link.css +1 -79
  56. package/app/components/primer/beta/link.css.json +1 -1
  57. package/app/components/primer/beta/popover.css +1 -215
  58. package/app/components/primer/beta/popover.css.json +23 -23
  59. package/app/components/primer/beta/progress_bar.css +1 -38
  60. package/app/components/primer/beta/progress_bar.css.json +1 -1
  61. package/app/components/primer/beta/state.css +1 -60
  62. package/app/components/primer/beta/state.css.json +1 -1
  63. package/app/components/primer/beta/subhead.css +1 -64
  64. package/app/components/primer/beta/subhead.css.json +1 -1
  65. package/app/components/primer/beta/timeline_item.css +1 -106
  66. package/app/components/primer/beta/timeline_item.css.json +1 -1
  67. package/app/components/primer/beta/truncate.css +1 -30
  68. package/app/components/primer/beta/truncate.css.json +6 -6
  69. package/app/components/primer/truncate.css +1 -23
  70. package/app/components/primer/truncate.css.json +4 -4
  71. package/package.json +1 -1
  72. package/static/arguments.json +1 -7
  73. package/static/info_arch.json +1 -7
@@ -2,89 +2,89 @@
2
2
  "name": "alpha/stack",
3
3
  "selectors": [
4
4
  ".Stack",
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']"
5
+ ".Stack[data-padding-narrow=none]",
6
+ ".Stack[data-padding=none]",
7
+ ".Stack[data-padding-narrow=condensed]",
8
+ ".Stack[data-padding=condensed]",
9
+ ".Stack[data-padding-narrow=normal]",
10
+ ".Stack[data-padding=normal]",
11
+ ".Stack[data-padding-narrow=spacious]",
12
+ ".Stack[data-padding=spacious]",
13
+ ".Stack[data-direction-narrow=horizontal]",
14
+ ".Stack[data-direction=horizontal]",
15
+ ".Stack[data-direction-narrow=vertical]",
16
+ ".Stack[data-direction=vertical]",
17
+ ".Stack[data-gap-narrow=none]",
18
+ ".Stack[data-gap=none]",
19
+ ".Stack[data-gap-narrow=condensed]",
20
+ ".Stack[data-gap=condensed]",
21
+ ".Stack[data-gap-narrow=normal]",
22
+ ".Stack[data-gap=normal]",
23
+ ".Stack[data-gap-narrow=spacious]",
24
+ ".Stack[data-gap=spacious]",
25
+ ".Stack[data-align-narrow=start]",
26
+ ".Stack[data-align=start]",
27
+ ".Stack[data-align-narrow=center]",
28
+ ".Stack[data-align=center]",
29
+ ".Stack[data-align-narrow=end]",
30
+ ".Stack[data-align=end]",
31
+ ".Stack[data-align-narrow=baseline]",
32
+ ".Stack[data-align=baseline]",
33
+ ".Stack[data-justify-narrow=start]",
34
+ ".Stack[data-justify=start]",
35
+ ".Stack[data-justify-narrow=center]",
36
+ ".Stack[data-justify=center]",
37
+ ".Stack[data-justify-narrow=end]",
38
+ ".Stack[data-justify=end]",
39
+ ".Stack[data-justify-narrow=space-between]",
40
+ ".Stack[data-justify=space-between]",
41
+ ".Stack[data-justify-narrow=space-evenly]",
42
+ ".Stack[data-justify=space-evenly]",
43
+ ".Stack[data-wrap-narrow=wrap]",
44
+ ".Stack[data-wrap=wrap]",
45
+ ".Stack[data-wrap-narrow=nowrap]",
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]"
89
89
  ]
90
90
  }
@@ -1,27 +1 @@
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
- }
1
+ .StackItem{flex:0 1 auto;min-inline-size:0}.StackItem[data-grow-narrow=true],.StackItem[data-grow=true]{flex-grow:1}@media (min-width:48rem){.StackItem[data-grow-regular=true]{flex-grow:1}.StackItem[data-grow-regular=false]{flex-grow:0}}@media (min-width:87.5rem){.StackItem[data-grow-wide=true]{flex-grow:1}.StackItem[data-grow-wide=false]{flex-grow:0}}
@@ -2,11 +2,11 @@
2
2
  "name": "alpha/stack_item",
3
3
  "selectors": [
4
4
  ".StackItem",
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']"
5
+ ".StackItem[data-grow-narrow=true]",
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]"
11
11
  ]
12
12
  }
@@ -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
- }
1
+ .tabnav{border-bottom:var(--borderWidth-thin) solid var(--borderColor-default);margin-bottom:var(--stack-gap-normal);margin-top:0}.tabnav-tabs{display:flex;margin-bottom:calc(var(--borderWidth-thin)*-1);overflow:hidden}.tabnav-tab{background-color:initial;border:var(--borderWidth-thin) solid #0000;border-bottom:0;color:var(--fgColor-muted);display:inline-block;flex-shrink:0;font-size:var(--text-body-size-medium);line-height:23px;padding:var(--base-size-8) var(--control-medium-paddingInline-spacious);-webkit-text-decoration:none;text-decoration:none;transition:color .2s cubic-bezier(.3,0,.5,1)}.tabnav-tab.selected,.tabnav-tab[aria-current]:not([aria-current=false]),.tabnav-tab[aria-selected=true]{background-color:var(--bgColor-default);border-color:var(--borderColor-default);border-radius:var(--borderRadius-medium) var(--borderRadius-medium) 0 0;color:var(--fgColor-default)}:is(.tabnav-tab.selected,.tabnav-tab[aria-selected=true],.tabnav-tab[aria-current]:not([aria-current=false])) .octicon{color:inherit}.tabnav-tab:hover{color:var(--fgColor-default);-webkit-text-decoration:none;text-decoration:none;transition-duration:.1s}.tabnav-tab:focus,.tabnav-tab:focus-visible{border-radius:var(--borderRadius-medium) var(--borderRadius-medium) 0 0!important;outline-offset:-6px}.tabnav-tab .octicon,.tabnav-tab:active{color:var(--fgColor-muted)}.tabnav-tab .octicon{margin-right:var(--control-small-gap)}.tabnav-tab .Counter{color:inherit;margin-left:var(--control-small-gap)}.tabnav-extra{color:var(--fgColor-muted);display:inline-block;font-size:var(--text-body-size-small);margin-left:10px;padding-top:10px}.tabnav-extra>.octicon{margin-right:var(--base-size-2)}a.tabnav-extra:hover{color:var(--fgColor-accent);-webkit-text-decoration:none;text-decoration:none}.tabnav-btn{margin-left:var(--controlStack-medium-gap-condensed)}
@@ -5,17 +5,17 @@
5
5
  ".tabnav-tabs",
6
6
  ".tabnav-tab",
7
7
  ".tabnav-tab.selected",
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",
8
+ ".tabnav-tab[aria-current]:not([aria-current=false])",
9
+ ".tabnav-tab[aria-selected=true]",
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:active",
15
14
  ".tabnav-tab .octicon",
15
+ ".tabnav-tab:active",
16
16
  ".tabnav-tab .Counter",
17
17
  ".tabnav-extra",
18
- ".tabnav-extra > .octicon",
18
+ ".tabnav-extra>.octicon",
19
19
  "a.tabnav-extra:hover",
20
20
  ".tabnav-btn"
21
21
  ]