primer_view_components 0.0.109 → 0.0.110

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/app/assets/javascripts/primer_view_components.js +1 -1
  4. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  5. data/app/assets/styles/primer_view_components.css +1 -1
  6. data/app/assets/styles/primer_view_components.css.map +1 -1
  7. data/app/components/primer/{beta → alpha}/banner.css +0 -0
  8. data/app/components/primer/alpha/banner.css.json +1 -0
  9. data/app/components/primer/{beta → alpha}/banner.css.map +1 -1
  10. data/app/components/primer/{beta → alpha}/banner.html.erb +0 -0
  11. data/app/components/primer/{beta → alpha}/banner.pcss +1 -0
  12. data/app/components/primer/{beta → alpha}/banner.rb +12 -12
  13. data/app/components/primer/alpha/segmented_control.css.map +1 -1
  14. data/app/components/primer/alpha/segmented_control.pcss +1 -0
  15. data/app/components/primer/alpha/toggle_switch.css +1 -0
  16. data/app/components/primer/alpha/toggle_switch.css.json +1 -0
  17. data/app/components/primer/alpha/toggle_switch.css.map +1 -0
  18. data/app/components/primer/alpha/toggle_switch.pcss +244 -0
  19. data/app/components/primer/{beta → alpha}/x_banner.d.ts +0 -0
  20. data/app/components/primer/{beta → alpha}/x_banner.js +0 -0
  21. data/app/components/primer/{beta → alpha}/x_banner.ts +0 -0
  22. data/app/components/primer/beta/blankslate.css +1 -0
  23. data/app/components/primer/beta/blankslate.css.json +1 -0
  24. data/app/components/primer/beta/blankslate.css.map +1 -0
  25. data/app/components/primer/beta/blankslate.pcss +90 -0
  26. data/app/components/primer/beta/breadcrumbs.css +1 -0
  27. data/app/components/primer/beta/breadcrumbs.css.json +1 -0
  28. data/app/components/primer/beta/breadcrumbs.css.map +1 -0
  29. data/app/components/primer/beta/breadcrumbs.pcss +30 -0
  30. data/app/components/primer/beta/button.css.map +1 -1
  31. data/app/components/primer/beta/button.pcss +0 -4
  32. data/app/components/primer/beta/counter.css +1 -0
  33. data/app/components/primer/beta/counter.css.json +1 -0
  34. data/app/components/primer/beta/counter.css.map +1 -0
  35. data/app/components/primer/beta/counter.pcss +35 -0
  36. data/app/components/primer/beta/label.css +1 -0
  37. data/app/components/primer/beta/label.css.json +1 -0
  38. data/app/components/primer/beta/label.css.map +1 -0
  39. data/app/components/primer/beta/label.pcss +103 -0
  40. data/app/components/primer/beta/progress_bar.css +1 -0
  41. data/app/components/primer/beta/progress_bar.css.json +1 -0
  42. data/app/components/primer/beta/progress_bar.css.map +1 -0
  43. data/app/components/primer/{progress_bar_component.html.erb → beta/progress_bar.html.erb} +0 -0
  44. data/app/components/primer/beta/progress_bar.pcss +26 -0
  45. data/app/components/primer/beta/progress_bar.rb +72 -0
  46. data/app/components/primer/beta/truncate.css +1 -0
  47. data/app/components/primer/beta/truncate.css.json +1 -0
  48. data/app/components/primer/beta/truncate.css.map +1 -0
  49. data/app/components/primer/beta/truncate.pcss +31 -0
  50. data/app/components/primer/primer.d.ts +1 -1
  51. data/app/components/primer/primer.js +1 -1
  52. data/app/components/primer/primer.pcss +12 -2
  53. data/app/components/primer/primer.ts +1 -1
  54. data/app/components/primer/progress_bar_component.rb +2 -65
  55. data/app/components/primer/state_component.css +1 -0
  56. data/app/components/primer/state_component.css.json +1 -0
  57. data/app/components/primer/state_component.css.map +1 -0
  58. data/app/components/primer/state_component.pcss +50 -0
  59. data/app/components/primer/subhead_component.css +1 -0
  60. data/app/components/primer/subhead_component.css.json +1 -0
  61. data/app/components/primer/subhead_component.css.map +1 -0
  62. data/app/components/primer/subhead_component.pcss +49 -0
  63. data/app/components/primer/truncate.css +1 -0
  64. data/app/components/primer/truncate.css.json +1 -0
  65. data/app/components/primer/truncate.css.map +1 -0
  66. data/app/components/primer/truncate.pcss +30 -0
  67. data/lib/primer/deprecations.rb +2 -1
  68. data/lib/primer/view_components/version.rb +1 -1
  69. data/lib/tasks/docs.rake +3 -3
  70. data/lib/tasks/test.rake +8 -0
  71. data/previews/primer/alpha/banner_preview/with_action_button.html.erb +4 -0
  72. data/previews/primer/{beta → alpha}/banner_preview/with_action_content.html.erb +1 -1
  73. data/previews/primer/alpha/banner_preview.rb +97 -0
  74. data/previews/primer/alpha/segmented_control_preview.rb +106 -20
  75. data/previews/primer/beta/counter_preview.rb +55 -8
  76. data/previews/primer/beta/progress_bar_preview.rb +60 -0
  77. data/static/arguments.json +76 -76
  78. data/static/audited_at.json +2 -1
  79. data/static/constants.json +34 -32
  80. data/static/statuses.json +3 -2
  81. metadata +57 -16
  82. data/app/components/primer/beta/banner.css.json +0 -1
  83. data/previews/primer/beta/banner_preview/with_action_button.html.erb +0 -4
  84. data/previews/primer/beta/banner_preview.rb +0 -54
  85. data/previews/primer/progress_bar_component_preview.rb +0 -28
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["toggle_switch.pcss","<no source>"],"names":[],"mappings":"AAQA,yCAHE,mBAmBF,CAhBA,cACE,kBAAmB,CAEnB,uDAaF,CAVI,uCACE,0CACF,CAIA,wCACE,2CACF,CAKF,8CACE,WAAY,CACZ,kBACF,CAEA,+CACE,QAAS,CACT,iBACF,CAGF,oBAgBE,uBAAgB,CAAhB,eAAgB,CANhB,6CAA8C,CAC9C,gFAAkF,CAClF,mDAAqD,CAJrD,cAAe,CANf,aAAc,CAEd,6CAA+C,CAE/C,eAAgB,CADhB,SAAU,CAJV,iBAAkB,CAMlB,oBAAqB,CAOrB,wBAAyB,CACzB,iDAAmD,CAFnD,mDAAyD,CAJzD,wBAAiB,CAAjB,gBAAiB,CANjB,8BAiCF,CAlBE,4DAEE,gBACF,CAEA,wBAEI,2BC/DN,WAAA,YAAA,SAAA,gBAAA,kBAAA,QAAA,4CAAA,UD+DgC,CAE9B,CAEA,gCAGE,0CACE,eACF,CACF,CAGF,2DACE,2CAA4C,CAC5C,uCAiBF,CAfE,mIAEE,2CAQF,CAEA,uPACE,6DACF,CAGF,uCACE,qDAAsD,CACtD,qDAuBF,CArBE,6CACE,2DACF,CAEA,8CACE,4DACF,CAEA,0DACE,oDAAqD,CACrD,QAAS,CACT,sCACF,CAEA,8DACE,uBACF,CAEA,gEACE,0BACF,CAGF,wCAEE,2CAA4C,CAC5C,uCAAwC,CAFxC,kBAAmB,CAGnB,wBA0BF,CAtBI,mIACE,oCACF,CAGF,2DACE,wCAAyC,CACzC,eAMF,CAJE,mIAEE,oCACF,CAOF,gIACE,4BACF,CAGF,oBAEE,kBAAmB,CADnB,YAAa,CAGb,WAAY,CACZ,eAAgB,CAFhB,UAGF,CAEA,uBAEE,4BAA6B,CAG7B,2BAEF,CAEA,gDAHE,YAAa,CALb,aAAc,CAEd,wBAAyB,CACzB,6BAYF,CAPA,yBAEE,6BAA8B,CAG9B,uBAEF,CAEA,mBAME,oCAAqC,CACrC,gFAAkF,CAClF,mDAAqD,CALrD,WAAY,CAMZ,mEAAqE,CARrE,iBAAkB,CAClB,QAAS,CAWT,0BAA2B,CAF3B,wBAAyB,CACzB,6BAA8B,CAF9B,mDAAyD,CALzD,SAAU,CADV,SAcF,CAHE,gCAfF,mBAgBI,eAEJ,CADE,CAGF,qBAIE,6BAA8B,CAF9B,kDAAoD,CACpD,eAAgB,CAFhB,iBAAkB,CAIlB,gBACF,CAGE,0CACE,iDACF,CAEA,yCAEE,6CAA+C,CAD/C,8BAEF,CAIA,6CACE,2BACF,CAGF,uBACE,QAAS,CACT,iBACF,CAEA,wBACE,WAAY,CACZ,kBACF,CAEA,2BACE,0BAKF,CAHE,gDACE,eACF","file":"toggle_switch.css","sourcesContent":["/* ToggleSwitch */\n\n/* Catalyst in dotcom applies a display: block to all web component elements. This\n** rule overrides it so the status label and toggle switch are laid out correctly. */\n.ToggleSwitch.ToggleSwitch {\n display: inline-flex;\n}\n\n.ToggleSwitch {\n align-items: center;\n display: inline-flex;\n gap: var(--primer-controlStack-medium-gap-condensed, 8px);\n\n &:hover {\n & .ToggleSwitch-knob {\n background-color: var(--color-btn-hover-bg);\n }\n }\n\n &:active {\n & .ToggleSwitch-knob {\n background-color: var(--color-btn-active-bg);\n }\n }\n}\n\n.ToggleSwitch--checked {\n & .ToggleSwitch-statusOn {\n height: auto;\n visibility: visible;\n }\n\n & .ToggleSwitch-statusOff {\n height: 0;\n visibility: hidden;\n }\n}\n\n.ToggleSwitch-track {\n position: relative;\n display: block;\n width: var(--base-size-64, 64px);\n height: var(--primer-control-medium-size, 32px);\n padding: 0;\n overflow: hidden;\n text-decoration: none;\n cursor: pointer;\n user-select: none;\n background-color: var(--color-switch-track-bg);\n border: var(--primer-borderWidth-thin, 1px) solid var(--color-switch-track-border);\n border-radius: var(--primer-borderRadius-medium, 6px);\n transition-timing-function: cubic-bezier(0.5, 1, 0.89, 1);\n transition-duration: 80ms;\n transition-property: background-color, border-color;\n appearance: none;\n\n &:focus,\n &:focus-visible {\n outline-offset: 0;\n }\n\n @media (pointer: coarse) {\n &::before {\n @mixin minTouchTarget 44px;\n }\n }\n\n @media (prefers-reduced-motion) {\n transition: none;\n\n & * {\n transition: none;\n }\n }\n}\n\n.ToggleSwitch-track[aria-checked='true'][aria-disabled='true'] {\n background-color: var(--color-canvas-subtle);\n border-color: var(--color-border-subtle);\n\n &:hover,\n &:active {\n background-color: var(--color-canvas-subtle);\n\n /* This is the most straightforward way of setting the knob's styles when the\n ** switch is both checked and disabled. */\n\n & .ToggleSwitch-knob {\n background-color: var(--color-switch-knob-checked-disabled-bg);\n }\n }\n\n & .ToggleSwitch-knob {\n background-color: var(--color-switch-knob-checked-disabled-bg);\n }\n}\n\n.ToggleSwitch-track[aria-checked='true'] {\n background-color: var(--color-switch-track-checked-bg);\n border-color: var(--color-switch-track-checked-border);\n\n &:hover {\n background-color: var(--color-switch-track-checked-hover-bg);\n }\n\n &:active {\n background-color: var(--color-switch-track-checked-active-bg);\n }\n\n & .ToggleSwitch-knob {\n background-color: var(--color-switch-knob-checked-bg);\n border: 0;\n transform: translateX(calc(100% + 1px));\n }\n\n & .ToggleSwitch-lineIcon {\n transform: translateX(0%);\n }\n\n & .ToggleSwitch-circleIcon {\n transform: translateX(100%);\n }\n}\n\n.ToggleSwitch-track[aria-disabled='true'] {\n cursor: not-allowed;\n background-color: var(--color-canvas-subtle);\n border-color: var(--color-border-subtle);\n transition-property: none;\n\n &:hover,\n &:active {\n & .ToggleSwitch-knob {\n background-color: var(--color-btn-bg);\n }\n }\n\n & .ToggleSwitch-knob {\n border-color: var(--color-border-default);\n box-shadow: none;\n\n &:hover,\n &:active {\n background-color: var(--color-btn-bg);\n }\n }\n\n & .ToggleSwitch-lineIcon {\n color: var(--color-fg-subtle);\n }\n\n & .ToggleSwitch-circleIcon {\n color: var(--color-fg-subtle);\n }\n}\n\n.ToggleSwitch-icons {\n display: flex;\n align-items: center;\n width: 100%;\n height: 100%;\n overflow: hidden;\n}\n\n.ToggleSwitch-lineIcon {\n line-height: 0;\n color: var(--color-accent-fg);\n transition-duration: 80ms;\n transition-property: transform;\n transform: translateX(-100%);\n flex: 1 0 50%;\n}\n\n.ToggleSwitch-circleIcon {\n line-height: 0;\n color: var(--color-fg-default);\n transition-duration: 80ms;\n transition-property: transform;\n transform: translateX(0);\n flex: 1 0 50%;\n}\n\n.ToggleSwitch-knob {\n position: absolute;\n top: -1px;\n bottom: -1px;\n z-index: 1;\n width: 50%;\n background-color: var(--color-btn-bg);\n border: var(--primer-borderWidth-thin, 1px) solid var(--color-switch-track-border);\n border-radius: var(--primer-borderRadius-medium, 6px);\n box-shadow: var(--color-shadow-medium), var(--color-btn-inset-shadow);\n transition-timing-function: cubic-bezier(0.5, 1, 0.89, 1);\n transition-duration: 80ms;\n transition-property: transform;\n transform: translateX(-1px);\n\n @media (prefers-reduced-motion) {\n transition: none;\n }\n}\n\n.ToggleSwitch-status {\n position: relative;\n font-size: var(--primer-text-body-size-medium, 14px);\n line-height: 1.5;\n color: var(--color-fg-default);\n text-align: right;\n}\n\n.ToggleSwitch--small {\n & .ToggleSwitch-status {\n font-size: var(--primer-text-body-size-small, 12px);\n }\n\n & .ToggleSwitch-track {\n width: var(--base-size-48, 48px);\n height: var(--primer-control-xsmall-size, 24px);\n }\n}\n\n.ToggleSwitch--disabled {\n & .ToggleSwitch-status {\n color: var(--color-fg-muted);\n }\n}\n\n.ToggleSwitch-statusOn {\n height: 0;\n visibility: hidden;\n}\n\n.ToggleSwitch-statusOff {\n height: auto;\n visibility: visible;\n}\n\n.ToggleSwitch--statusAtEnd {\n flex-direction: row-reverse;\n\n & .ToggleSwitch-status {\n text-align: left;\n }\n}\n",null]}
@@ -0,0 +1,244 @@
1
+ /* ToggleSwitch */
2
+
3
+ /* Catalyst in dotcom applies a display: block to all web component elements. This
4
+ ** rule overrides it so the status label and toggle switch are laid out correctly. */
5
+ .ToggleSwitch.ToggleSwitch {
6
+ display: inline-flex;
7
+ }
8
+
9
+ .ToggleSwitch {
10
+ align-items: center;
11
+ display: inline-flex;
12
+ gap: var(--primer-controlStack-medium-gap-condensed, 8px);
13
+
14
+ &:hover {
15
+ & .ToggleSwitch-knob {
16
+ background-color: var(--color-btn-hover-bg);
17
+ }
18
+ }
19
+
20
+ &:active {
21
+ & .ToggleSwitch-knob {
22
+ background-color: var(--color-btn-active-bg);
23
+ }
24
+ }
25
+ }
26
+
27
+ .ToggleSwitch--checked {
28
+ & .ToggleSwitch-statusOn {
29
+ height: auto;
30
+ visibility: visible;
31
+ }
32
+
33
+ & .ToggleSwitch-statusOff {
34
+ height: 0;
35
+ visibility: hidden;
36
+ }
37
+ }
38
+
39
+ .ToggleSwitch-track {
40
+ position: relative;
41
+ display: block;
42
+ width: var(--base-size-64, 64px);
43
+ height: var(--primer-control-medium-size, 32px);
44
+ padding: 0;
45
+ overflow: hidden;
46
+ text-decoration: none;
47
+ cursor: pointer;
48
+ user-select: none;
49
+ background-color: var(--color-switch-track-bg);
50
+ border: var(--primer-borderWidth-thin, 1px) solid var(--color-switch-track-border);
51
+ border-radius: var(--primer-borderRadius-medium, 6px);
52
+ transition-timing-function: cubic-bezier(0.5, 1, 0.89, 1);
53
+ transition-duration: 80ms;
54
+ transition-property: background-color, border-color;
55
+ appearance: none;
56
+
57
+ &:focus,
58
+ &:focus-visible {
59
+ outline-offset: 0;
60
+ }
61
+
62
+ @media (pointer: coarse) {
63
+ &::before {
64
+ @mixin minTouchTarget 44px;
65
+ }
66
+ }
67
+
68
+ @media (prefers-reduced-motion) {
69
+ transition: none;
70
+
71
+ & * {
72
+ transition: none;
73
+ }
74
+ }
75
+ }
76
+
77
+ .ToggleSwitch-track[aria-checked='true'][aria-disabled='true'] {
78
+ background-color: var(--color-canvas-subtle);
79
+ border-color: var(--color-border-subtle);
80
+
81
+ &:hover,
82
+ &:active {
83
+ background-color: var(--color-canvas-subtle);
84
+
85
+ /* This is the most straightforward way of setting the knob's styles when the
86
+ ** switch is both checked and disabled. */
87
+
88
+ & .ToggleSwitch-knob {
89
+ background-color: var(--color-switch-knob-checked-disabled-bg);
90
+ }
91
+ }
92
+
93
+ & .ToggleSwitch-knob {
94
+ background-color: var(--color-switch-knob-checked-disabled-bg);
95
+ }
96
+ }
97
+
98
+ .ToggleSwitch-track[aria-checked='true'] {
99
+ background-color: var(--color-switch-track-checked-bg);
100
+ border-color: var(--color-switch-track-checked-border);
101
+
102
+ &:hover {
103
+ background-color: var(--color-switch-track-checked-hover-bg);
104
+ }
105
+
106
+ &:active {
107
+ background-color: var(--color-switch-track-checked-active-bg);
108
+ }
109
+
110
+ & .ToggleSwitch-knob {
111
+ background-color: var(--color-switch-knob-checked-bg);
112
+ border: 0;
113
+ transform: translateX(calc(100% + 1px));
114
+ }
115
+
116
+ & .ToggleSwitch-lineIcon {
117
+ transform: translateX(0%);
118
+ }
119
+
120
+ & .ToggleSwitch-circleIcon {
121
+ transform: translateX(100%);
122
+ }
123
+ }
124
+
125
+ .ToggleSwitch-track[aria-disabled='true'] {
126
+ cursor: not-allowed;
127
+ background-color: var(--color-canvas-subtle);
128
+ border-color: var(--color-border-subtle);
129
+ transition-property: none;
130
+
131
+ &:hover,
132
+ &:active {
133
+ & .ToggleSwitch-knob {
134
+ background-color: var(--color-btn-bg);
135
+ }
136
+ }
137
+
138
+ & .ToggleSwitch-knob {
139
+ border-color: var(--color-border-default);
140
+ box-shadow: none;
141
+
142
+ &:hover,
143
+ &:active {
144
+ background-color: var(--color-btn-bg);
145
+ }
146
+ }
147
+
148
+ & .ToggleSwitch-lineIcon {
149
+ color: var(--color-fg-subtle);
150
+ }
151
+
152
+ & .ToggleSwitch-circleIcon {
153
+ color: var(--color-fg-subtle);
154
+ }
155
+ }
156
+
157
+ .ToggleSwitch-icons {
158
+ display: flex;
159
+ align-items: center;
160
+ width: 100%;
161
+ height: 100%;
162
+ overflow: hidden;
163
+ }
164
+
165
+ .ToggleSwitch-lineIcon {
166
+ line-height: 0;
167
+ color: var(--color-accent-fg);
168
+ transition-duration: 80ms;
169
+ transition-property: transform;
170
+ transform: translateX(-100%);
171
+ flex: 1 0 50%;
172
+ }
173
+
174
+ .ToggleSwitch-circleIcon {
175
+ line-height: 0;
176
+ color: var(--color-fg-default);
177
+ transition-duration: 80ms;
178
+ transition-property: transform;
179
+ transform: translateX(0);
180
+ flex: 1 0 50%;
181
+ }
182
+
183
+ .ToggleSwitch-knob {
184
+ position: absolute;
185
+ top: -1px;
186
+ bottom: -1px;
187
+ z-index: 1;
188
+ width: 50%;
189
+ background-color: var(--color-btn-bg);
190
+ border: var(--primer-borderWidth-thin, 1px) solid var(--color-switch-track-border);
191
+ border-radius: var(--primer-borderRadius-medium, 6px);
192
+ box-shadow: var(--color-shadow-medium), var(--color-btn-inset-shadow);
193
+ transition-timing-function: cubic-bezier(0.5, 1, 0.89, 1);
194
+ transition-duration: 80ms;
195
+ transition-property: transform;
196
+ transform: translateX(-1px);
197
+
198
+ @media (prefers-reduced-motion) {
199
+ transition: none;
200
+ }
201
+ }
202
+
203
+ .ToggleSwitch-status {
204
+ position: relative;
205
+ font-size: var(--primer-text-body-size-medium, 14px);
206
+ line-height: 1.5;
207
+ color: var(--color-fg-default);
208
+ text-align: right;
209
+ }
210
+
211
+ .ToggleSwitch--small {
212
+ & .ToggleSwitch-status {
213
+ font-size: var(--primer-text-body-size-small, 12px);
214
+ }
215
+
216
+ & .ToggleSwitch-track {
217
+ width: var(--base-size-48, 48px);
218
+ height: var(--primer-control-xsmall-size, 24px);
219
+ }
220
+ }
221
+
222
+ .ToggleSwitch--disabled {
223
+ & .ToggleSwitch-status {
224
+ color: var(--color-fg-muted);
225
+ }
226
+ }
227
+
228
+ .ToggleSwitch-statusOn {
229
+ height: 0;
230
+ visibility: hidden;
231
+ }
232
+
233
+ .ToggleSwitch-statusOff {
234
+ height: auto;
235
+ visibility: visible;
236
+ }
237
+
238
+ .ToggleSwitch--statusAtEnd {
239
+ flex-direction: row-reverse;
240
+
241
+ & .ToggleSwitch-status {
242
+ text-align: left;
243
+ }
244
+ }
File without changes
File without changes
File without changes
@@ -0,0 +1 @@
1
+ .blankslate{padding:var(--base-size-32,32px);position:relative;text-align:center}.blankslate p{color:var(--color-fg-muted)}.blankslate code{background:var(--color-canvas-default);border:var(--primer-borderWidth-thin,1px) solid var(--color-border-muted);border-radius:var(--primer-borderRadius-medium,6px);font-size:var(--primer-text-body-size-medium,14px);padding:2px 5px 3px}.blankslate img{height:56px;width:56px}.blankslate-icon{color:var(--color-fg-muted);margin-bottom:var(--primer-stack-gap-condensed,8px);margin-left:var(--primer-control-small-gap,4px);margin-right:var(--primer-control-small-gap,4px)}.blankslate-image{margin-bottom:var(--primer-stack-gap-normal,16px)}.blankslate-heading{margin-bottom:var(--base-size-4,4px)}.blankslate-action{margin-top:var(--primer-stack-gap-normal,16px)}.blankslate-action:first-of-type{margin-top:var(--primer-stack-gap-spacious,24px)}.blankslate-action:last-of-type{margin-bottom:var(--primer-stack-gap-condensed,8px)}.blankslate-capped{border-radius:0 0 var(--primer-borderRadius-medium,6px) var(--primer-borderRadius-medium,6px)}.blankslate-spacious{padding:var(--base-size-80,80px) var(--base-size-40,40px)}.blankslate-narrow{margin:0 auto;max-width:485px}.blankslate-large img{height:80px;width:80px}.blankslate-large h3{font-size:24px;margin:var(--primer-stack-gap-normal,16px) 0}.blankslate-large p{font-size:var(--primer-text-body-size-large,16px)}.blankslate-clean-background{border:0}
@@ -0,0 +1 @@
1
+ {"name":"beta/blankslate","selectors":[".blankslate",".blankslate p",".blankslate code",".blankslate img",".blankslate-icon",".blankslate-image",".blankslate-heading",".blankslate-action",".blankslate-action:first-of-type",".blankslate-action:last-of-type",".blankslate-capped",".blankslate-spacious",".blankslate-narrow",".blankslate-large img",".blankslate-large h3",".blankslate-large p",".blankslate-clean-background"]}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["blankslate.pcss"],"names":[],"mappings":"AAEA,YAEE,gCAAkC,CADlC,iBAAkB,CAElB,iBAkBF,CAhBE,cACE,2BACF,CAEA,iBAGE,sCAAuC,CACvC,yEAA2E,CAC3E,mDAAqD,CAHrD,kDAAoD,CADpD,mBAKF,CAEA,gBAEE,WAAY,CADZ,UAEF,CAGF,iBAIE,2BAA4B,CAF5B,mDAAqD,CACrD,+CAAiD,CAFjD,gDAIF,CAEA,kBACE,iDACF,CAEA,oBACE,oCACF,CAEA,mBACE,8CASF,CAPE,iCACE,gDACF,CAEA,gCACE,mDACF,CAGF,mBACE,6FACF,CAEA,qBACE,yDACF,CAEA,mBAEE,aAAc,CADd,eAEF,CAKE,sBAEE,WAAY,CADZ,UAEF,CAEA,qBAIE,cAAe,CAHf,4CAIF,CAEA,oBACE,iDACF,CAKF,6BACE,QACF","file":"blankslate.css","sourcesContent":["/* blankslate */\n\n.blankslate {\n position: relative;\n padding: var(--base-size-32, 32px);\n text-align: center;\n\n & p {\n color: var(--color-fg-muted);\n }\n\n & code {\n padding: 2px 5px 3px;\n font-size: var(--primer-text-body-size-medium, 14px);\n background: var(--color-canvas-default);\n border: var(--primer-borderWidth-thin, 1px) solid var(--color-border-muted);\n border-radius: var(--primer-borderRadius-medium, 6px);\n }\n\n & img {\n width: 56px;\n height: 56px;\n }\n}\n\n.blankslate-icon {\n margin-right: var(--primer-control-small-gap, 4px);\n margin-bottom: var(--primer-stack-gap-condensed, 8px);\n margin-left: var(--primer-control-small-gap, 4px);\n color: var(--color-fg-muted);\n}\n\n.blankslate-image {\n margin-bottom: var(--primer-stack-gap-normal, 16px);\n}\n\n.blankslate-heading {\n margin-bottom: var(--base-size-4, 4px);\n}\n\n.blankslate-action {\n margin-top: var(--primer-stack-gap-normal, 16px);\n\n &:first-of-type {\n margin-top: var(--primer-stack-gap-spacious, 24px);\n }\n\n &:last-of-type {\n margin-bottom: var(--primer-stack-gap-condensed, 8px);\n }\n}\n\n.blankslate-capped {\n border-radius: 0 0 var(--primer-borderRadius-medium, 6px) var(--primer-borderRadius-medium, 6px);\n}\n\n.blankslate-spacious {\n padding: var(--base-size-80, 80px) var(--base-size-40, 40px);\n}\n\n.blankslate-narrow {\n max-width: 485px;\n margin: 0 auto;\n}\n\n/* was .large-format\n** QUESTION: should we deprecate this? */\n.blankslate-large {\n & img {\n width: 80px;\n height: 80px;\n }\n\n & h3 {\n margin: var(--primer-stack-gap-normal, 16px) 0;\n\n /* font-size: $h3-size; // This doesn't actually make the text larger. Should this be $h2-size? */\n font-size: 24px;\n }\n\n & p {\n font-size: var(--primer-text-body-size-large, 16px);\n }\n}\n\n/* was .clean-background\n** TO DO: deprecate this and use utility instead */\n.blankslate-clean-background {\n border: 0;\n}\n"]}
@@ -0,0 +1,90 @@
1
+ /* blankslate */
2
+
3
+ .blankslate {
4
+ position: relative;
5
+ padding: var(--base-size-32, 32px);
6
+ text-align: center;
7
+
8
+ & p {
9
+ color: var(--color-fg-muted);
10
+ }
11
+
12
+ & code {
13
+ padding: 2px 5px 3px;
14
+ font-size: var(--primer-text-body-size-medium, 14px);
15
+ background: var(--color-canvas-default);
16
+ border: var(--primer-borderWidth-thin, 1px) solid var(--color-border-muted);
17
+ border-radius: var(--primer-borderRadius-medium, 6px);
18
+ }
19
+
20
+ & img {
21
+ width: 56px;
22
+ height: 56px;
23
+ }
24
+ }
25
+
26
+ .blankslate-icon {
27
+ margin-right: var(--primer-control-small-gap, 4px);
28
+ margin-bottom: var(--primer-stack-gap-condensed, 8px);
29
+ margin-left: var(--primer-control-small-gap, 4px);
30
+ color: var(--color-fg-muted);
31
+ }
32
+
33
+ .blankslate-image {
34
+ margin-bottom: var(--primer-stack-gap-normal, 16px);
35
+ }
36
+
37
+ .blankslate-heading {
38
+ margin-bottom: var(--base-size-4, 4px);
39
+ }
40
+
41
+ .blankslate-action {
42
+ margin-top: var(--primer-stack-gap-normal, 16px);
43
+
44
+ &:first-of-type {
45
+ margin-top: var(--primer-stack-gap-spacious, 24px);
46
+ }
47
+
48
+ &:last-of-type {
49
+ margin-bottom: var(--primer-stack-gap-condensed, 8px);
50
+ }
51
+ }
52
+
53
+ .blankslate-capped {
54
+ border-radius: 0 0 var(--primer-borderRadius-medium, 6px) var(--primer-borderRadius-medium, 6px);
55
+ }
56
+
57
+ .blankslate-spacious {
58
+ padding: var(--base-size-80, 80px) var(--base-size-40, 40px);
59
+ }
60
+
61
+ .blankslate-narrow {
62
+ max-width: 485px;
63
+ margin: 0 auto;
64
+ }
65
+
66
+ /* was .large-format
67
+ ** QUESTION: should we deprecate this? */
68
+ .blankslate-large {
69
+ & img {
70
+ width: 80px;
71
+ height: 80px;
72
+ }
73
+
74
+ & h3 {
75
+ margin: var(--primer-stack-gap-normal, 16px) 0;
76
+
77
+ /* font-size: $h3-size; // This doesn't actually make the text larger. Should this be $h2-size? */
78
+ font-size: 24px;
79
+ }
80
+
81
+ & p {
82
+ font-size: var(--primer-text-body-size-large, 16px);
83
+ }
84
+ }
85
+
86
+ /* was .clean-background
87
+ ** TO DO: deprecate this and use utility instead */
88
+ .blankslate-clean-background {
89
+ border: 0;
90
+ }
@@ -0,0 +1 @@
1
+ .breadcrumb-item{display:inline-block;list-style:none;margin-left:-.35em;white-space:nowrap}.breadcrumb-item:after{border-right:.1em solid var(--color-fg-muted);content:"";display:inline-block;height:.8em;margin:0 .5em;transform:rotate(15deg)}.breadcrumb-item:first-child{margin-left:0}:is(.breadcrumb-item-selected,.breadcrumb-item[aria-current]:not([aria-current=false])):after{content:none}.breadcrumb-item-selected a{color:var(--color-fg-default)}
@@ -0,0 +1 @@
1
+ {"name":"beta/breadcrumbs","selectors":[".breadcrumb-item",".breadcrumb-item:after",".breadcrumb-item:first-child",":is(.breadcrumb-item-selected",".breadcrumb-item[aria-current]:not([aria-current=false])):after",".breadcrumb-item-selected a"]}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["breadcrumbs.pcss"],"names":[],"mappings":"AAAA,iBACE,oBAAqB,CAGrB,eAAgB,CAFhB,kBAAoB,CACpB,kBAeF,CAZE,uBAKE,6CAA+C,CAD/C,UAAW,CAHX,oBAAqB,CACrB,WAAa,CACb,aAAe,CAGf,uBACF,CAEA,6BACE,aACF,CAKA,8FACE,YACF,CAGF,4BACE,6BACF","file":"breadcrumbs.css","sourcesContent":[".breadcrumb-item {\n display: inline-block;\n margin-left: -0.35em;\n white-space: nowrap;\n list-style: none;\n\n &::after {\n display: inline-block;\n height: 0.8em;\n margin: 0 0.5em;\n content: '';\n border-right: 0.1em solid var(--color-fg-muted);\n transform: rotate(15deg);\n }\n\n &:first-child {\n margin-left: 0;\n }\n}\n\n.breadcrumb-item-selected,\n.breadcrumb-item[aria-current]:not([aria-current='false']) {\n &::after {\n content: none;\n }\n}\n\n.breadcrumb-item-selected a {\n color: var(--color-fg-default);\n}\n"]}
@@ -0,0 +1,30 @@
1
+ .breadcrumb-item {
2
+ display: inline-block;
3
+ margin-left: -0.35em;
4
+ white-space: nowrap;
5
+ list-style: none;
6
+
7
+ &::after {
8
+ display: inline-block;
9
+ height: 0.8em;
10
+ margin: 0 0.5em;
11
+ content: '';
12
+ border-right: 0.1em solid var(--color-fg-muted);
13
+ transform: rotate(15deg);
14
+ }
15
+
16
+ &:first-child {
17
+ margin-left: 0;
18
+ }
19
+ }
20
+
21
+ .breadcrumb-item-selected,
22
+ .breadcrumb-item[aria-current]:not([aria-current='false']) {
23
+ &::after {
24
+ content: none;
25
+ }
26
+ }
27
+
28
+ .breadcrumb-item-selected a {
29
+ color: var(--color-fg-default);
30
+ }
@@ -1 +1 @@
1
- {"version":3,"sources":["button.pcss","<no source>","../../../../lib/postcss_mixins/focusOutlineOnEmphasis.pcss"],"names":[],"mappings":"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","file":"button.css","sourcesContent":["/* CSS for Button */\n\n/* temporary, pre primitives release */\n:root {\n --primer-duration-fast: 80ms;\n --primer-easing-easeInOut: cubic-bezier(0.65, 0, 0.35, 1);\n}\n\n/* base button */\n.Button {\n position: relative;\n font-size: var(--primer-text-body-size-medium, 14px);\n font-weight: var(--base-text-weight-medium, 500);\n cursor: pointer;\n user-select: none;\n background-color: transparent;\n border: var(--primer-borderWidth-thin, 1px) solid;\n border-color: transparent;\n border-radius: var(--primer-borderRadius-medium, 6px);\n color: var(--color-btn-text);\n transition: var(--primer-duration-fast) var(--primer-easing-easeInOut);\n transition-property: color, fill, background-color, border-color;\n text-align: center;\n height: var(--primer-control-medium-size, 32px);\n padding: 0 var(--primer-control-medium-paddingInline-normal, 12px);\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n gap: var(--primer-control-medium-gap, 8px);\n min-width: max-content;\n\n /* mobile friendly sizing */\n @media (pointer: course) {\n &::before {\n @mixin minTouchTarget 48px, 48px;\n }\n }\n\n /* base states */\n\n &:hover {\n transition-duration: var(--primer-duration-fast);\n }\n\n &:active {\n transition: none;\n }\n\n &:disabled,\n &[aria-disabled='true'] {\n cursor: not-allowed;\n box-shadow: none;\n }\n\n /* &:focus {\n @mixin focusOutline;\n } */\n}\n\n.Button-withTooltip {\n position: relative;\n display: inline-block;\n}\n\na.Button,\nsummary.Button {\n display: inline-flex;\n\n &:hover {\n text-decoration: none;\n }\n}\n\n/* wrap grid content to allow trailingAction to lock-right */\n.Button-content {\n flex: 1 0 auto;\n display: grid;\n grid-template-areas: 'leadingVisual text trailingVisual';\n grid-template-columns: min-content minmax(0, auto) min-content;\n align-items: center;\n place-content: center;\n\n /* padding-bottom: 1px; optical alignment for firefox */\n\n & > :not(:last-child) {\n margin-right: var(--primer-control-medium-gap, 8px);\n }\n}\n\n/* center child elements for fullWidth */\n.Button-content--alignStart {\n justify-content: start;\n}\n\n/* button child elements */\n\n/* align svg */\n.Button-visual {\n display: flex;\n pointer-events: none; /* allow click handler to work, avoiding visuals */\n}\n\n.Button-label {\n grid-area: text;\n white-space: nowrap;\n line-height: var(--primer-text-body-lineHeight-medium, calc(20 / 14));\n}\n\n.Button-leadingVisual {\n grid-area: leadingVisual;\n}\n\n.Button-trailingVisual {\n grid-area: trailingVisual;\n}\n\n.Button-trailingAction {\n margin-right: calc(var(--base-size-4, 4px) * -1);\n}\n\n/* sizes */\n\n.Button--small {\n font-size: var(--primer-text-body-size-small, 12px);\n height: var(--primer-control-small-size, 28px);\n padding: 0 var(--primer-control-small-paddingInline-condensed, 8px);\n gap: var(--primer-control-small-gap, 4px);\n\n & .Button-label {\n line-height: var(--primer-text-body-lineHeight-small, calc(20 / 12));\n }\n\n & .Button-content {\n & > :not(:last-child) {\n margin-right: var(--primer-control-small-gap, 4px);\n }\n }\n}\n\n.Button--large {\n height: var(--primer-control-large-size, 40px);\n padding: 0 var(--primer-control-large-paddingInline-spacious, 16px);\n gap: var(--primer-control-large-gap, 8px);\n\n & .Button-label {\n line-height: var(--primer-text-body-lineHeight-large, calc(48 / 32));\n }\n\n & .Button-content {\n & > :not(:last-child) {\n margin-right: var(--primer-control-large-gap, 8px);\n }\n }\n}\n\n.Button--fullWidth {\n width: 100%;\n}\n\n/* variants */\n\n/* primary */\n.Button--primary {\n color: var(--color-btn-primary-text);\n fill: var(--color-btn-primary-icon);\n background-color: var(--color-btn-primary-bg);\n border-color: var(--color-btn-primary-border);\n box-shadow: var(--color-btn-primary-shadow), var(--color-btn-primary-inset-shadow);\n\n &:hover:not(:disabled) {\n background-color: var(--color-btn-primary-hover-bg);\n border-color: var(--color-btn-primary-hover-border);\n }\n\n /* fallback :focus state */\n &:focus {\n @mixin focusOutlineOnEmphasis;\n\n /* remove fallback :focus if :focus-visible is supported */\n &:not(:focus-visible) {\n outline: solid 1px transparent;\n box-shadow: none;\n }\n }\n\n /* default focus state */\n &:focus-visible {\n @mixin focusOutlineOnEmphasis;\n }\n\n &:active:not(:disabled),\n &[aria-pressed='true'] {\n background-color: var(--color-btn-primary-selected-bg);\n box-shadow: var(--color-btn-primary-selected-shadow);\n }\n\n &:disabled,\n &[aria-disabled='true'] {\n color: var(--color-btn-primary-disabled-text);\n background-color: var(--color-btn-primary-disabled-bg);\n border-color: var(--color-btn-primary-disabled-border);\n fill: var(--color-btn-primary-disabled-text);\n }\n}\n\n/* default (secondary) */\n.Button--secondary {\n color: var(--color-btn-text);\n fill: var(--color-fg-muted); /* help this */\n background-color: var(--color-btn-bg);\n border-color: var(--color-btn-border);\n box-shadow: var(--color-btn-shadow), var(--color-btn-inset-shadow);\n\n &:hover:not(:disabled) {\n background-color: var(--color-btn-hover-bg);\n border-color: var(--color-btn-hover-border);\n }\n\n &:active:not(:disabled) {\n background-color: var(--color-btn-active-bg);\n border-color: var(--color-btn-active-border);\n }\n\n &[aria-pressed='true'] {\n background-color: var(--color-btn-selected-bg);\n box-shadow: var(--color-primer-shadow-inset);\n }\n\n &:disabled,\n &[aria-disabled='true'] {\n color: var(--color-primer-fg-disabled);\n background-color: var(--color-btn-bg);\n border-color: var(--color-btn-border);\n fill: var(--color-primer-fg-disabled);\n }\n}\n\n.Button--invisible {\n color: var(--color-btn-text);\n\n &:hover:not(:disabled) {\n background-color: var(--color-action-list-item-default-hover-bg);\n }\n\n &[aria-pressed='true'],\n &:active:not(:disabled) {\n background-color: var(--color-action-list-item-default-active-bg);\n }\n\n &:disabled,\n &[aria-disabled='true'] {\n color: var(--color-primer-fg-disabled);\n background-color: var(--color-btn-bg);\n border-color: var(--color-btn-border);\n fill: var(--color-primer-fg-disabled);\n }\n\n /* if button has no visuals, use link blue for text */\n &.Button--invisible-noVisuals .Button-label {\n color: var(--color-accent-fg);\n }\n\n & .Button-visual {\n color: var(--color-fg-muted);\n }\n}\n\n.Button--link {\n color: var(--color-accent-fg);\n fill: var(--color-accent-fg);\n display: inline-block;\n font-size: inherit;\n border: none;\n height: unset;\n padding: 0;\n\n &:hover:not(:disabled) {\n text-decoration: underline;\n }\n\n &:focus-visible, &:focus {\n outline-offset: 2px;\n }\n\n &:disabled,\n &[aria-disabled='true'] {\n color: var(--color-primer-fg-disabled);\n background-color: transparent;\n border-color: transparent;\n fill: var(--color-primer-fg-disabled);\n }\n}\n\n/* danger */\n.Button--danger {\n color: var(--color-btn-danger-text);\n fill: var(--color-btn-danger-icon);\n background-color: var(--color-btn-bg);\n border-color: var(--color-btn-border);\n box-shadow: var(--color-btn-shadow), var(--color-btn-inset-shadow);\n\n &:hover:not(:disabled) {\n color: var(--color-btn-danger-hover-text);\n fill: var(--color-btn-danger-hover-text);\n background-color: var(--color-btn-danger-hover-bg);\n border-color: var(--color-btn-danger-hover-border);\n box-shadow: var(--color-btn-danger-hover-shadow), var(--color-btn-danger-hover-inset-shadow);\n }\n\n &:active:not(:disabled),\n &[aria-pressed='true'] {\n color: var(--color-btn-danger-selected-text);\n fill: var(--color-btn-danger-selected-text);\n background-color: var(--color-btn-danger-selected-bg);\n border-color: var(--color-btn-danger-selected-border);\n box-shadow: var(--color-btn-danger-selected-shadow);\n }\n\n &:disabled,\n &[aria-disabled='true'] {\n color: var(--color-btn-danger-disabled-text);\n fill: var(--color-btn-danger-disabled-text);\n background-color: var(--color-btn-danger-disabled-bg);\n border-color: var(--color-btn-border);\n }\n}\n\n\n.Button--iconOnly {\n display: grid;\n place-content: center;\n padding: unset;\n width: var(--primer-control-medium-size, 32px);\n\n &.Button--small {\n width: var(--primer-control-small-size, 28px);\n }\n\n &.Button--large {\n width: var(--primer-control-large-size, 40px);\n }\n}\n",null,"/* outline with fg box-shadow for buttons */\n@define-mixin focusOutlineOnEmphasis $outlineOffset: -2px, $outlineColor: var(--color-accent-fg) {\n outline: 2px solid $outlineColor;\n outline-offset: $outlineOffset;\n box-shadow: inset 0 0 0 3px var(--color-fg-on-emphasis);\n}\n"]}
1
+ {"version":3,"sources":["button.pcss","<no source>","../../../../lib/postcss_mixins/focusOutlineOnEmphasis.pcss"],"names":[],"mappings":"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","file":"button.css","sourcesContent":["/* CSS for Button */\n\n/* temporary, pre primitives release */\n:root {\n --primer-duration-fast: 80ms;\n --primer-easing-easeInOut: cubic-bezier(0.65, 0, 0.35, 1);\n}\n\n/* base button */\n.Button {\n position: relative;\n font-size: var(--primer-text-body-size-medium, 14px);\n font-weight: var(--base-text-weight-medium, 500);\n cursor: pointer;\n user-select: none;\n background-color: transparent;\n border: var(--primer-borderWidth-thin, 1px) solid;\n border-color: transparent;\n border-radius: var(--primer-borderRadius-medium, 6px);\n color: var(--color-btn-text);\n transition: var(--primer-duration-fast) var(--primer-easing-easeInOut);\n transition-property: color, fill, background-color, border-color;\n text-align: center;\n height: var(--primer-control-medium-size, 32px);\n padding: 0 var(--primer-control-medium-paddingInline-normal, 12px);\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n gap: var(--primer-control-medium-gap, 8px);\n min-width: max-content;\n\n /* mobile friendly sizing */\n @media (pointer: course) {\n &::before {\n @mixin minTouchTarget 48px, 48px;\n }\n }\n\n /* base states */\n\n &:hover {\n transition-duration: var(--primer-duration-fast);\n }\n\n &:active {\n transition: none;\n }\n\n &:disabled,\n &[aria-disabled='true'] {\n cursor: not-allowed;\n box-shadow: none;\n }\n}\n\n.Button-withTooltip {\n position: relative;\n display: inline-block;\n}\n\na.Button,\nsummary.Button {\n display: inline-flex;\n\n &:hover {\n text-decoration: none;\n }\n}\n\n/* wrap grid content to allow trailingAction to lock-right */\n.Button-content {\n flex: 1 0 auto;\n display: grid;\n grid-template-areas: 'leadingVisual text trailingVisual';\n grid-template-columns: min-content minmax(0, auto) min-content;\n align-items: center;\n place-content: center;\n\n /* padding-bottom: 1px; optical alignment for firefox */\n\n & > :not(:last-child) {\n margin-right: var(--primer-control-medium-gap, 8px);\n }\n}\n\n/* center child elements for fullWidth */\n.Button-content--alignStart {\n justify-content: start;\n}\n\n/* button child elements */\n\n/* align svg */\n.Button-visual {\n display: flex;\n pointer-events: none; /* allow click handler to work, avoiding visuals */\n}\n\n.Button-label {\n grid-area: text;\n white-space: nowrap;\n line-height: var(--primer-text-body-lineHeight-medium, calc(20 / 14));\n}\n\n.Button-leadingVisual {\n grid-area: leadingVisual;\n}\n\n.Button-trailingVisual {\n grid-area: trailingVisual;\n}\n\n.Button-trailingAction {\n margin-right: calc(var(--base-size-4, 4px) * -1);\n}\n\n/* sizes */\n\n.Button--small {\n font-size: var(--primer-text-body-size-small, 12px);\n height: var(--primer-control-small-size, 28px);\n padding: 0 var(--primer-control-small-paddingInline-condensed, 8px);\n gap: var(--primer-control-small-gap, 4px);\n\n & .Button-label {\n line-height: var(--primer-text-body-lineHeight-small, calc(20 / 12));\n }\n\n & .Button-content {\n & > :not(:last-child) {\n margin-right: var(--primer-control-small-gap, 4px);\n }\n }\n}\n\n.Button--large {\n height: var(--primer-control-large-size, 40px);\n padding: 0 var(--primer-control-large-paddingInline-spacious, 16px);\n gap: var(--primer-control-large-gap, 8px);\n\n & .Button-label {\n line-height: var(--primer-text-body-lineHeight-large, calc(48 / 32));\n }\n\n & .Button-content {\n & > :not(:last-child) {\n margin-right: var(--primer-control-large-gap, 8px);\n }\n }\n}\n\n.Button--fullWidth {\n width: 100%;\n}\n\n/* variants */\n\n/* primary */\n.Button--primary {\n color: var(--color-btn-primary-text);\n fill: var(--color-btn-primary-icon);\n background-color: var(--color-btn-primary-bg);\n border-color: var(--color-btn-primary-border);\n box-shadow: var(--color-btn-primary-shadow), var(--color-btn-primary-inset-shadow);\n\n &:hover:not(:disabled) {\n background-color: var(--color-btn-primary-hover-bg);\n border-color: var(--color-btn-primary-hover-border);\n }\n\n /* fallback :focus state */\n &:focus {\n @mixin focusOutlineOnEmphasis;\n\n /* remove fallback :focus if :focus-visible is supported */\n &:not(:focus-visible) {\n outline: solid 1px transparent;\n box-shadow: none;\n }\n }\n\n /* default focus state */\n &:focus-visible {\n @mixin focusOutlineOnEmphasis;\n }\n\n &:active:not(:disabled),\n &[aria-pressed='true'] {\n background-color: var(--color-btn-primary-selected-bg);\n box-shadow: var(--color-btn-primary-selected-shadow);\n }\n\n &:disabled,\n &[aria-disabled='true'] {\n color: var(--color-btn-primary-disabled-text);\n background-color: var(--color-btn-primary-disabled-bg);\n border-color: var(--color-btn-primary-disabled-border);\n fill: var(--color-btn-primary-disabled-text);\n }\n}\n\n/* default (secondary) */\n.Button--secondary {\n color: var(--color-btn-text);\n fill: var(--color-fg-muted); /* help this */\n background-color: var(--color-btn-bg);\n border-color: var(--color-btn-border);\n box-shadow: var(--color-btn-shadow), var(--color-btn-inset-shadow);\n\n &:hover:not(:disabled) {\n background-color: var(--color-btn-hover-bg);\n border-color: var(--color-btn-hover-border);\n }\n\n &:active:not(:disabled) {\n background-color: var(--color-btn-active-bg);\n border-color: var(--color-btn-active-border);\n }\n\n &[aria-pressed='true'] {\n background-color: var(--color-btn-selected-bg);\n box-shadow: var(--color-primer-shadow-inset);\n }\n\n &:disabled,\n &[aria-disabled='true'] {\n color: var(--color-primer-fg-disabled);\n background-color: var(--color-btn-bg);\n border-color: var(--color-btn-border);\n fill: var(--color-primer-fg-disabled);\n }\n}\n\n.Button--invisible {\n color: var(--color-btn-text);\n\n &:hover:not(:disabled) {\n background-color: var(--color-action-list-item-default-hover-bg);\n }\n\n &[aria-pressed='true'],\n &:active:not(:disabled) {\n background-color: var(--color-action-list-item-default-active-bg);\n }\n\n &:disabled,\n &[aria-disabled='true'] {\n color: var(--color-primer-fg-disabled);\n background-color: var(--color-btn-bg);\n border-color: var(--color-btn-border);\n fill: var(--color-primer-fg-disabled);\n }\n\n /* if button has no visuals, use link blue for text */\n &.Button--invisible-noVisuals .Button-label {\n color: var(--color-accent-fg);\n }\n\n & .Button-visual {\n color: var(--color-fg-muted);\n }\n}\n\n.Button--link {\n color: var(--color-accent-fg);\n fill: var(--color-accent-fg);\n display: inline-block;\n font-size: inherit;\n border: none;\n height: unset;\n padding: 0;\n\n &:hover:not(:disabled) {\n text-decoration: underline;\n }\n\n &:focus-visible, &:focus {\n outline-offset: 2px;\n }\n\n &:disabled,\n &[aria-disabled='true'] {\n color: var(--color-primer-fg-disabled);\n background-color: transparent;\n border-color: transparent;\n fill: var(--color-primer-fg-disabled);\n }\n}\n\n/* danger */\n.Button--danger {\n color: var(--color-btn-danger-text);\n fill: var(--color-btn-danger-icon);\n background-color: var(--color-btn-bg);\n border-color: var(--color-btn-border);\n box-shadow: var(--color-btn-shadow), var(--color-btn-inset-shadow);\n\n &:hover:not(:disabled) {\n color: var(--color-btn-danger-hover-text);\n fill: var(--color-btn-danger-hover-text);\n background-color: var(--color-btn-danger-hover-bg);\n border-color: var(--color-btn-danger-hover-border);\n box-shadow: var(--color-btn-danger-hover-shadow), var(--color-btn-danger-hover-inset-shadow);\n }\n\n &:active:not(:disabled),\n &[aria-pressed='true'] {\n color: var(--color-btn-danger-selected-text);\n fill: var(--color-btn-danger-selected-text);\n background-color: var(--color-btn-danger-selected-bg);\n border-color: var(--color-btn-danger-selected-border);\n box-shadow: var(--color-btn-danger-selected-shadow);\n }\n\n &:disabled,\n &[aria-disabled='true'] {\n color: var(--color-btn-danger-disabled-text);\n fill: var(--color-btn-danger-disabled-text);\n background-color: var(--color-btn-danger-disabled-bg);\n border-color: var(--color-btn-border);\n }\n}\n\n\n.Button--iconOnly {\n display: grid;\n place-content: center;\n padding: unset;\n width: var(--primer-control-medium-size, 32px);\n\n &.Button--small {\n width: var(--primer-control-small-size, 28px);\n }\n\n &.Button--large {\n width: var(--primer-control-large-size, 40px);\n }\n}\n",null,"/* outline with fg box-shadow for buttons */\n@define-mixin focusOutlineOnEmphasis $outlineOffset: -2px, $outlineColor: var(--color-accent-fg) {\n outline: 2px solid $outlineColor;\n outline-offset: $outlineOffset;\n box-shadow: inset 0 0 0 3px var(--color-fg-on-emphasis);\n}\n"]}
@@ -52,10 +52,6 @@
52
52
  cursor: not-allowed;
53
53
  box-shadow: none;
54
54
  }
55
-
56
- /* &:focus {
57
- @mixin focusOutline;
58
- } */
59
55
  }
60
56
 
61
57
  .Button-withTooltip {
@@ -0,0 +1 @@
1
+ .Counter{background-color:var(--color-neutral-muted);border:var(--primer-borderWidth-thin,1px) solid var(--color-counter-border);border-radius:2em;color:var(--color-fg-default);display:inline-block;font-size:var(--primer-text-body-size-small,12px);font-weight:var(--base-text-weight-medium,500);line-height:calc(var(--base-size-20, 20px) - var(--primer-borderWidth-thin, 1px)*2);min-width:var(--base-size-20,20px);padding:0 6px;text-align:center}.Counter:empty{display:none}.Counter .octicon{opacity:.8;vertical-align:text-top}.Counter--primary{background-color:var(--color-neutral-emphasis);color:var(--color-fg-on-emphasis)}.Counter--secondary{background-color:var(--color-neutral-subtle);color:var(--color-fg-muted)}
@@ -0,0 +1 @@
1
+ {"name":"beta/counter","selectors":[".Counter",".Counter:empty",".Counter .octicon",".Counter--primary",".Counter--secondary"]}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["counter.pcss"],"names":[],"mappings":"AAEA,SASE,2CAA4C,CAC5C,2EAA6E,CAC7E,iBAAkB,CAJlB,6BAA8B,CAN9B,oBAAqB,CAGrB,iDAAmD,CACnD,8CAAgD,CAChD,mFAAsF,CAJtF,kCAAoC,CACpC,aAAc,CAKd,iBAcF,CATE,eACE,YACF,CAGA,kBAEE,UAAY,CADZ,uBAEF,CAGF,kBAEE,8CAA+C,CAD/C,iCAEF,CAEA,oBAEE,4CAA6C,CAD7C,2BAEF","file":"counter.css","sourcesContent":["/* Counter */\n\n.Counter {\n display: inline-block;\n min-width: var(--base-size-20, 20px); /* makes sure it's a circle with just one digit */\n padding: 0 6px;\n font-size: var(--primer-text-body-size-small, 12px);\n font-weight: var(--base-text-weight-medium, 500);\n line-height: calc(var(--base-size-20, 20px) - var(--primer-borderWidth-thin, 1px) * 2); /* 20px - 2px for the borders */\n color: var(--color-fg-default);\n text-align: center;\n background-color: var(--color-neutral-muted);\n border: var(--primer-borderWidth-thin, 1px) solid var(--color-counter-border);\n border-radius: 2em;\n\n &:empty {\n display: none;\n }\n\n /* Is this selector used? could not find any use of it */\n & .octicon {\n vertical-align: text-top;\n opacity: 0.8;\n }\n}\n\n.Counter--primary {\n color: var(--color-fg-on-emphasis);\n background-color: var(--color-neutral-emphasis);\n}\n\n.Counter--secondary {\n color: var(--color-fg-muted);\n background-color: var(--color-neutral-subtle);\n}\n"]}
@@ -0,0 +1,35 @@
1
+ /* Counter */
2
+
3
+ .Counter {
4
+ display: inline-block;
5
+ min-width: var(--base-size-20, 20px); /* makes sure it's a circle with just one digit */
6
+ padding: 0 6px;
7
+ font-size: var(--primer-text-body-size-small, 12px);
8
+ font-weight: var(--base-text-weight-medium, 500);
9
+ line-height: calc(var(--base-size-20, 20px) - var(--primer-borderWidth-thin, 1px) * 2); /* 20px - 2px for the borders */
10
+ color: var(--color-fg-default);
11
+ text-align: center;
12
+ background-color: var(--color-neutral-muted);
13
+ border: var(--primer-borderWidth-thin, 1px) solid var(--color-counter-border);
14
+ border-radius: 2em;
15
+
16
+ &:empty {
17
+ display: none;
18
+ }
19
+
20
+ /* Is this selector used? could not find any use of it */
21
+ & .octicon {
22
+ vertical-align: text-top;
23
+ opacity: 0.8;
24
+ }
25
+ }
26
+
27
+ .Counter--primary {
28
+ color: var(--color-fg-on-emphasis);
29
+ background-color: var(--color-neutral-emphasis);
30
+ }
31
+
32
+ .Counter--secondary {
33
+ color: var(--color-fg-muted);
34
+ background-color: var(--color-neutral-subtle);
35
+ }
@@ -0,0 +1 @@
1
+ .labels{position:relative}.Label,.label{border:var(--primer-borderWidth-thin,1px) solid var(--color-border-default);border-radius:2em;display:inline-block;font-size:var(--primer-text-body-size-small,12px);font-weight:var(--base-text-weight-medium,500);line-height:18px;padding:0 7px;white-space:nowrap}.Label:hover,.label:hover{text-decoration:none}.Label--large{line-height:22px;padding-left:10px;padding-right:10px}.Label--inline{display:inline;font-size:85%;padding:.12em .5em}.Label--primary{border-color:var(--color-neutral-emphasis);color:var(--color-fg-default)}.Label--secondary{border-color:var(--color-border-default);color:var(--color-fg-muted)}.Label--accent,.Label--info{border-color:var(--color-accent-emphasis);color:var(--color-accent-fg)}.Label--success{border-color:var(--color-success-emphasis);color:var(--color-success-fg)}.Label--attention,.Label--warning{border-color:var(--color-attention-emphasis);color:var(--color-attention-fg)}.Label--severe{border-color:var(--color-severe-emphasis);color:var(--color-severe-fg)}.Label--danger{border-color:var(--color-danger-emphasis);color:var(--color-danger-fg)}.Label--open{border-color:var(--color-open-emphasis);color:var(--color-open-fg)}.Label--closed{border-color:var(--color-closed-emphasis);color:var(--color-closed-fg)}.Label--done{border-color:var(--color-done-emphasis);color:var(--color-done-fg)}.Label--sponsors{border-color:var(--color-sponsors-emphasis);color:var(--color-sponsors-fg)}
@@ -0,0 +1 @@
1
+ {"name":"beta/label","selectors":[".labels",".Label",".label",".Label:hover",".label:hover",".Label--large",".Label--inline",".Label--primary",".Label--secondary",".Label--accent",".Label--info",".Label--success",".Label--attention",".Label--warning",".Label--severe",".Label--danger",".Label--open",".Label--closed",".Label--done",".Label--sponsors"]}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["label.pcss"],"names":[],"mappings":"AAGA,QACE,iBACF,CAIA,cAQE,2EAA6E,CAC7E,iBAAkB,CAPlB,oBAAqB,CAErB,iDAAmD,CACnD,8CAAgD,CAChD,gBAAiB,CAHjB,aAAc,CAId,kBAOF,CAHE,0BACE,oBACF,CAKF,cAGE,gBAAiB,CADjB,iBAAkB,CADlB,kBAGF,CAMA,eACE,cAAe,CAEf,aAAc,CADd,kBAEF,CAIA,gBAEE,0CAA2C,CAD3C,6BAEF,CAEA,kBAEE,wCAAyC,CADzC,2BAEF,CAIA,4BAGE,yCAA0C,CAD1C,4BAEF,CAEA,gBAEE,0CAA2C,CAD3C,6BAEF,CAEA,kCAGE,4CAA6C,CAD7C,+BAEF,CAEA,eAEE,yCAA0C,CAD1C,4BAEF,CAEA,eAEE,yCAA0C,CAD1C,4BAEF,CAEA,aAEE,uCAAwC,CADxC,0BAEF,CAEA,eAEE,yCAA0C,CAD1C,4BAEF,CAEA,aAEE,uCAAwC,CADxC,0BAEF,CAEA,iBAEE,2CAA4C,CAD5C,8BAEF","file":"label.css","sourcesContent":["/* Labels */\n\n/* Provide a wrapper to ensure labels stick together */\n.labels {\n position: relative;\n}\n\n/* Default 20px */\n\n.label, /* TODO: Deprecate */\n.Label {\n display: inline-block;\n padding: 0 7px;\n font-size: var(--primer-text-body-size-small, 12px);\n font-weight: var(--base-text-weight-medium, 500);\n line-height: 18px;\n white-space: nowrap;\n border: var(--primer-borderWidth-thin, 1px) solid var(--color-border-default);\n border-radius: 2em;\n\n &:hover {\n text-decoration: none;\n }\n}\n\n/* Large 24px */\n\n.Label--large {\n padding-right: 10px;\n padding-left: 10px;\n line-height: 22px;\n}\n\n/* Inline */\n\n/* Doesn't increase height of parent element\n** Can be used with different font-sizes */\n.Label--inline {\n display: inline;\n padding: 0.12em 0.5em;\n font-size: 85%;\n}\n\n/* Contrast */\n\n.Label--primary {\n color: var(--color-fg-default);\n border-color: var(--color-neutral-emphasis);\n}\n\n.Label--secondary {\n color: var(--color-fg-muted);\n border-color: var(--color-border-default);\n}\n\n/* Colors */\n\n.Label--info, /* TODO: deprecate */\n.Label--accent {\n color: var(--color-accent-fg);\n border-color: var(--color-accent-emphasis);\n}\n\n.Label--success {\n color: var(--color-success-fg);\n border-color: var(--color-success-emphasis);\n}\n\n.Label--warning, /* TODO: deprecate */\n.Label--attention {\n color: var(--color-attention-fg);\n border-color: var(--color-attention-emphasis);\n}\n\n.Label--severe {\n color: var(--color-severe-fg);\n border-color: var(--color-severe-emphasis);\n}\n\n.Label--danger {\n color: var(--color-danger-fg);\n border-color: var(--color-danger-emphasis);\n}\n\n.Label--open {\n color: var(--color-open-fg);\n border-color: var(--color-open-emphasis);\n}\n\n.Label--closed {\n color: var(--color-closed-fg);\n border-color: var(--color-closed-emphasis);\n}\n\n.Label--done {\n color: var(--color-done-fg);\n border-color: var(--color-done-emphasis);\n}\n\n.Label--sponsors {\n color: var(--color-sponsors-fg);\n border-color: var(--color-sponsors-emphasis);\n}\n"]}
@@ -0,0 +1,103 @@
1
+ /* Labels */
2
+
3
+ /* Provide a wrapper to ensure labels stick together */
4
+ .labels {
5
+ position: relative;
6
+ }
7
+
8
+ /* Default 20px */
9
+
10
+ .label, /* TODO: Deprecate */
11
+ .Label {
12
+ display: inline-block;
13
+ padding: 0 7px;
14
+ font-size: var(--primer-text-body-size-small, 12px);
15
+ font-weight: var(--base-text-weight-medium, 500);
16
+ line-height: 18px;
17
+ white-space: nowrap;
18
+ border: var(--primer-borderWidth-thin, 1px) solid var(--color-border-default);
19
+ border-radius: 2em;
20
+
21
+ &:hover {
22
+ text-decoration: none;
23
+ }
24
+ }
25
+
26
+ /* Large 24px */
27
+
28
+ .Label--large {
29
+ padding-right: 10px;
30
+ padding-left: 10px;
31
+ line-height: 22px;
32
+ }
33
+
34
+ /* Inline */
35
+
36
+ /* Doesn't increase height of parent element
37
+ ** Can be used with different font-sizes */
38
+ .Label--inline {
39
+ display: inline;
40
+ padding: 0.12em 0.5em;
41
+ font-size: 85%;
42
+ }
43
+
44
+ /* Contrast */
45
+
46
+ .Label--primary {
47
+ color: var(--color-fg-default);
48
+ border-color: var(--color-neutral-emphasis);
49
+ }
50
+
51
+ .Label--secondary {
52
+ color: var(--color-fg-muted);
53
+ border-color: var(--color-border-default);
54
+ }
55
+
56
+ /* Colors */
57
+
58
+ .Label--info, /* TODO: deprecate */
59
+ .Label--accent {
60
+ color: var(--color-accent-fg);
61
+ border-color: var(--color-accent-emphasis);
62
+ }
63
+
64
+ .Label--success {
65
+ color: var(--color-success-fg);
66
+ border-color: var(--color-success-emphasis);
67
+ }
68
+
69
+ .Label--warning, /* TODO: deprecate */
70
+ .Label--attention {
71
+ color: var(--color-attention-fg);
72
+ border-color: var(--color-attention-emphasis);
73
+ }
74
+
75
+ .Label--severe {
76
+ color: var(--color-severe-fg);
77
+ border-color: var(--color-severe-emphasis);
78
+ }
79
+
80
+ .Label--danger {
81
+ color: var(--color-danger-fg);
82
+ border-color: var(--color-danger-emphasis);
83
+ }
84
+
85
+ .Label--open {
86
+ color: var(--color-open-fg);
87
+ border-color: var(--color-open-emphasis);
88
+ }
89
+
90
+ .Label--closed {
91
+ color: var(--color-closed-fg);
92
+ border-color: var(--color-closed-emphasis);
93
+ }
94
+
95
+ .Label--done {
96
+ color: var(--color-done-fg);
97
+ border-color: var(--color-done-emphasis);
98
+ }
99
+
100
+ .Label--sponsors {
101
+ color: var(--color-sponsors-fg);
102
+ border-color: var(--color-sponsors-emphasis);
103
+ }
@@ -0,0 +1 @@
1
+ .Progress{background-color:var(--color-neutral-muted);border-radius:6px;display:flex;height:8px;outline:1px solid #0000;overflow:hidden}.Progress--large{height:10px}.Progress--small{height:5px}.Progress-item{outline:2px solid #0000}.Progress-item+.Progress-item{margin-left:2px}
@@ -0,0 +1 @@
1
+ {"name":"beta/progress_bar","selectors":[".Progress",".Progress--large",".Progress--small",".Progress-item",".Progress-item+.Progress-item"]}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["progress_bar.pcss"],"names":[],"mappings":"AAEA,UAIE,2CAA4C,CAC5C,iBAAkB,CAJlB,YAAa,CACb,UAAW,CAIX,uBAA8B,CAH9B,eAIF,CAEA,iBACE,WACF,CAEA,iBACE,UACF,CAEA,eACE,uBACF,CAEA,8BACE,eACF","file":"progress_bar.css","sourcesContent":["/* Progress */\n\n.Progress {\n display: flex;\n height: 8px;\n overflow: hidden;\n background-color: var(--color-neutral-muted);\n border-radius: 6px;\n outline: 1px solid transparent; /* Support Firefox custom colors */\n}\n\n.Progress--large {\n height: 10px;\n}\n\n.Progress--small {\n height: 5px;\n}\n\n.Progress-item {\n outline: 2px solid transparent; /* Support Firefox custom colors */\n}\n\n.Progress-item + .Progress-item {\n margin-left: 2px;\n}\n"]}