@papillonbits/components 1.1.0 → 1.2.0
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/build/primer/Alert/Alert.js +3 -3
- package/build/primer/Alert/Alert.scss +9 -169
- package/build/primer/Blankslate/Blankslate.scss +1 -93
- package/build/primer/Box/box-overlay.scss +9 -4
- package/build/primer/Box/box.scss +1 -297
- package/build/primer/BranchName/branch-name.scss +9 -6
- package/build/primer/Breadcrumb/Breadcrumb.scss +1 -46
- package/build/primer/Button/Button.scss +77 -76
- package/build/primer/Button/ButtonGroup.scss +13 -1
- package/build/primer/Dropdown/Dropdown.scss +1 -283
- package/build/primer/ErrorBoundary/ErrorBoundary.js +2 -3
- package/build/primer/Form/FormControl.scss +1 -674
- package/build/primer/Form/form-control.scss +45 -40
- package/build/primer/Form/form-group.scss +63 -34
- package/build/primer/Form/form-select.scss +5 -2
- package/build/primer/Form/index.scss +0 -1
- package/build/primer/Form/input-group.scss +12 -1
- package/build/primer/Form/radio-group.scss +17 -9
- package/build/primer/Grid/FlexGrid/FlexGrid.js +3 -3
- package/build/primer/Grid/FlexGrid/FlexGrid.scss +3 -1
- package/build/primer/Label/counters.scss +1 -40
- package/build/primer/Label/index.scss +0 -1
- package/build/primer/Label/issue-labels.scss +3 -0
- package/build/primer/Label/labels.scss +1 -94
- package/build/primer/Label/mixins.scss +7 -0
- package/build/primer/Label/states.scss +1 -60
- package/build/primer/Layout/app-frame.scss +13 -13
- package/build/primer/Layout/grid-offset.scss +2 -2
- package/build/primer/Layout/grid.scss +9 -9
- package/build/primer/Layout/index.scss +0 -1
- package/build/primer/Layout/layout.scss +1 -183
- package/build/primer/Layout/page-layout.scss +59 -28
- package/build/primer/Layout/stack.scss +9 -8
- package/build/primer/Navigation/Menu/Menu.scss +1 -123
- package/build/primer/Navigation/TabNav/TabNav.scss +1 -120
- package/build/primer/Navigation/UnderlineNav/UnderlineNav.scss +1 -141
- package/build/primer/Pagination/PreviousNext/PreviousNext.scss +16 -23
- package/build/primer/Popover/Popover.scss +1 -227
- package/build/primer/Progress/Progress.scss +1 -29
- package/build/primer/SelectMenu/SelectMenu.scss +88 -64
- package/build/primer/Subhead/Subhead.scss +1 -52
- package/build/primer/Toast/Toast.scss +31 -27
- package/build/primer/index.js +4 -1
- package/package.json +4 -4
- package/build/primer/Form/form-validation.scss +0 -370
- package/build/primer/Label/diffstat.scss +0 -37
- package/build/primer/Layout/mixins.scss +0 -108
|
@@ -3,39 +3,34 @@
|
|
|
3
3
|
@import '~@papillonbits/css/build/primer/support/mixins/misc.scss';
|
|
4
4
|
@import '~@papillonbits/css/build/primer/support/mixins/layout.scss';
|
|
5
5
|
|
|
6
|
-
//
|
|
6
|
+
// stylelint-disable custom-property-pattern
|
|
7
7
|
// stylelint-disable no-descending-specificity
|
|
8
|
+
|
|
9
|
+
// Needs refactoring
|
|
8
10
|
// stylelint-disable selector-no-qualifying-type, selector-max-compound-selectors
|
|
9
11
|
// stylelint-disable selector-max-type
|
|
10
12
|
// Base form controls
|
|
11
13
|
//
|
|
12
14
|
// Overrides for common inputs for easier styling.
|
|
13
15
|
|
|
14
|
-
fieldset {
|
|
15
|
-
padding: 0;
|
|
16
|
-
margin: 0;
|
|
17
|
-
border: 0;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
label {
|
|
21
|
-
font-weight: $font-weight-bold;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
16
|
.form-control,
|
|
25
17
|
.form-select {
|
|
26
18
|
// stylelint-disable-next-line primer/spacing
|
|
27
19
|
padding: 5px 12px;
|
|
20
|
+
// stylelint-disable-next-line primer/typography
|
|
28
21
|
font-size: $body-font-size;
|
|
29
22
|
// stylelint-disable-next-line primer/typography
|
|
30
23
|
line-height: 20px;
|
|
31
|
-
color: var(--color-fg-default);
|
|
24
|
+
color: var(--fgColor-default, var(--color-fg-default));
|
|
32
25
|
vertical-align: middle;
|
|
33
|
-
background-color: var(--color-canvas-default);
|
|
26
|
+
background-color: var(--bgColor-default, var(--color-canvas-default));
|
|
34
27
|
background-repeat: no-repeat; // Repeat and position set for form states (success, error, etc)
|
|
35
28
|
background-position: right 8px center; // For form validation. This keeps images 8px from right and centered vertically.
|
|
36
|
-
|
|
29
|
+
// stylelint-disable-next-line primer/borders
|
|
30
|
+
border: $border-width $border-style var(--control-borderColor-rest, var(--color-border-default));
|
|
31
|
+
// stylelint-disable-next-line primer/borders
|
|
37
32
|
border-radius: $border-radius;
|
|
38
|
-
box-shadow: var(--color-primer-shadow-inset);
|
|
33
|
+
box-shadow: var(--shadow-inset, var(--color-primer-shadow-inset));
|
|
39
34
|
transition: 80ms cubic-bezier(0.33, 1, 0.68, 1);
|
|
40
35
|
transition-property: color, background-color, box-shadow, border-color;
|
|
41
36
|
|
|
@@ -59,28 +54,31 @@ label {
|
|
|
59
54
|
&.border-0 {
|
|
60
55
|
&:focus,
|
|
61
56
|
&:focus-visible {
|
|
62
|
-
|
|
57
|
+
// stylelint-disable-next-line primer/borders
|
|
58
|
+
border: $border-width $border-style var(--borderColor-accent-emphasis, var(--color-accent-fg)) !important;
|
|
63
59
|
}
|
|
64
60
|
}
|
|
65
61
|
|
|
66
62
|
&[disabled],
|
|
67
63
|
fieldset[disabled] & {
|
|
68
|
-
color: var(--color-primer-fg-disabled);
|
|
69
|
-
background-color: var(--color-input-disabled-bg);
|
|
70
|
-
border-color: var(--color-border-default);
|
|
71
|
-
-webkit-text-fill-color: var(--color-primer-fg-disabled); // Fix for Safari
|
|
64
|
+
color: var(--control-fgColor-disabled, var(--color-primer-fg-disabled));
|
|
65
|
+
background-color: var(--control-bgColor-disabled, var(--color-input-disabled-bg));
|
|
66
|
+
border-color: var(--control-borderColor-disabled, var(--color-border-default));
|
|
67
|
+
-webkit-text-fill-color: var(--control-fgColor-disabled, var(--color-primer-fg-disabled)); // Fix for Safari
|
|
72
68
|
opacity: 1; // Fix for Safari iOS
|
|
73
69
|
|
|
74
70
|
&::placeholder {
|
|
75
|
-
color: var(--color-primer-fg-disabled);
|
|
71
|
+
color: var(--control-fgColor-disabled, var(--color-primer-fg-disabled));
|
|
76
72
|
}
|
|
77
73
|
}
|
|
78
74
|
|
|
79
75
|
// Ensures inputs don't zoom on mobile iPhone but are body-font size on iPad
|
|
80
76
|
@supports (-webkit-touch-callout: none) {
|
|
77
|
+
// stylelint-disable-next-line primer/typography
|
|
81
78
|
font-size: $h4-size;
|
|
82
79
|
|
|
83
80
|
@include breakpoint(md) {
|
|
81
|
+
// stylelint-disable-next-line primer/typography
|
|
84
82
|
font-size: $body-font-size;
|
|
85
83
|
}
|
|
86
84
|
}
|
|
@@ -88,26 +86,21 @@ label {
|
|
|
88
86
|
|
|
89
87
|
// Textarea
|
|
90
88
|
textarea.form-control {
|
|
91
|
-
padding-top:
|
|
92
|
-
padding-bottom:
|
|
89
|
+
padding-top: var(--base-size-8);
|
|
90
|
+
padding-bottom: var(--base-size-8);
|
|
91
|
+
// stylelint-disable-next-line primer/typography
|
|
93
92
|
line-height: $lh-default;
|
|
94
93
|
}
|
|
95
94
|
|
|
96
95
|
// Inputs with contrast for easy light gray backgrounds against white.
|
|
97
96
|
.input-contrast {
|
|
98
|
-
background-color: var(--color-canvas-inset);
|
|
97
|
+
background-color: var(--bgColor-muted, var(--color-canvas-inset));
|
|
99
98
|
|
|
100
99
|
&:focus {
|
|
101
|
-
background-color: var(--color-canvas-default);
|
|
100
|
+
background-color: var(--bgColor-default, var(--color-canvas-default));
|
|
102
101
|
}
|
|
103
102
|
}
|
|
104
103
|
|
|
105
|
-
// Custom styling for HTML5 validation bubbles (WebKit only)
|
|
106
|
-
::placeholder {
|
|
107
|
-
color: var(--color-fg-subtle);
|
|
108
|
-
opacity: 1; // override opacity in normalize.css
|
|
109
|
-
}
|
|
110
|
-
|
|
111
104
|
// Mini inputs, to match .minibutton
|
|
112
105
|
.input-sm {
|
|
113
106
|
min-height: $size-4;
|
|
@@ -115,6 +108,7 @@ textarea.form-control {
|
|
|
115
108
|
padding-top: 3px;
|
|
116
109
|
// stylelint-disable-next-line primer/spacing
|
|
117
110
|
padding-bottom: 3px;
|
|
111
|
+
// stylelint-disable-next-line primer/typography
|
|
118
112
|
font-size: $font-size-small;
|
|
119
113
|
// stylelint-disable-next-line primer/typography
|
|
120
114
|
line-height: 20px;
|
|
@@ -122,6 +116,7 @@ textarea.form-control {
|
|
|
122
116
|
|
|
123
117
|
// Large inputs
|
|
124
118
|
.input-lg {
|
|
119
|
+
// stylelint-disable-next-line primer/typography
|
|
125
120
|
font-size: $h4-size;
|
|
126
121
|
}
|
|
127
122
|
|
|
@@ -133,6 +128,7 @@ textarea.form-control {
|
|
|
133
128
|
|
|
134
129
|
// Inputs with monospace text
|
|
135
130
|
.input-monospace {
|
|
131
|
+
// stylelint-disable-next-line primer/typography
|
|
136
132
|
font-family: $mono-font;
|
|
137
133
|
}
|
|
138
134
|
|
|
@@ -160,11 +156,12 @@ textarea.form-control {
|
|
|
160
156
|
label {
|
|
161
157
|
em.highlight {
|
|
162
158
|
position: relative;
|
|
163
|
-
left:
|
|
159
|
+
left: calc(var(--base-size-4) * -1);
|
|
164
160
|
// stylelint-disable-next-line primer/spacing
|
|
165
|
-
padding: 2px
|
|
161
|
+
padding: 2px var(--base-size-4);
|
|
166
162
|
font-style: normal;
|
|
167
|
-
background: var(--color-attention-subtle);
|
|
163
|
+
background: var(--bgColor-attention-muted, var(--color-attention-subtle));
|
|
164
|
+
// stylelint-disable-next-line primer/borders
|
|
168
165
|
border-radius: $border-radius;
|
|
169
166
|
}
|
|
170
167
|
}
|
|
@@ -180,9 +177,11 @@ textarea.form-control {
|
|
|
180
177
|
.note {
|
|
181
178
|
display: block;
|
|
182
179
|
margin: 0;
|
|
180
|
+
// stylelint-disable-next-line primer/typography
|
|
183
181
|
font-size: $font-size-small;
|
|
182
|
+
// stylelint-disable-next-line primer/typography
|
|
184
183
|
font-weight: $font-weight-normal;
|
|
185
|
-
color: var(--color-fg-muted);
|
|
184
|
+
color: var(--fgColor-muted, var(--color-fg-muted));
|
|
186
185
|
}
|
|
187
186
|
}
|
|
188
187
|
|
|
@@ -221,11 +220,12 @@ textarea.form-control {
|
|
|
221
220
|
display: inline-block;
|
|
222
221
|
// stylelint-disable-next-line primer/spacing
|
|
223
222
|
margin: 5px 0 0;
|
|
224
|
-
color: var(--color-fg-muted);
|
|
223
|
+
color: var(--fgColor-muted, var(--color-fg-muted));
|
|
225
224
|
}
|
|
226
225
|
|
|
227
226
|
img {
|
|
228
227
|
position: relative;
|
|
228
|
+
// stylelint-disable-next-line primer/spacing
|
|
229
229
|
top: -2px;
|
|
230
230
|
}
|
|
231
231
|
}
|
|
@@ -269,21 +269,26 @@ input::-webkit-inner-spin-button {
|
|
|
269
269
|
|
|
270
270
|
.form-warning {
|
|
271
271
|
// stylelint-disable-next-line primer/spacing
|
|
272
|
-
padding:
|
|
272
|
+
padding: var(--base-size-8) 10px;
|
|
273
273
|
// stylelint-disable-next-line primer/spacing
|
|
274
274
|
margin: 10px 0;
|
|
275
|
+
// stylelint-disable-next-line primer/typography
|
|
275
276
|
font-size: $h5-size;
|
|
276
|
-
color: var(--color-attention-fg);
|
|
277
|
-
background: var(--color-attention-subtle);
|
|
278
|
-
|
|
277
|
+
color: var(--fgColor-attention, var(--color-attention-fg));
|
|
278
|
+
background: var(--bgColor-attention-muted, var(--color-attention-subtle));
|
|
279
|
+
// stylelint-disable-next-line primer/borders
|
|
280
|
+
border: $border-width $border-style var(--borderColor-attention-emphasis, var(--color-attention-emphasis));
|
|
281
|
+
// stylelint-disable-next-line primer/borders
|
|
279
282
|
border-radius: $border-radius;
|
|
280
283
|
|
|
281
284
|
p {
|
|
282
285
|
margin: 0;
|
|
286
|
+
// stylelint-disable-next-line primer/typography
|
|
283
287
|
line-height: $lh-default;
|
|
284
288
|
}
|
|
285
289
|
|
|
286
290
|
a {
|
|
291
|
+
// stylelint-disable-next-line primer/typography
|
|
287
292
|
font-weight: $font-weight-bold;
|
|
288
293
|
}
|
|
289
294
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// stylelint-disable custom-property-pattern
|
|
1
2
|
// stylelint-disable no-descending-specificity
|
|
2
3
|
// stylelint-disable selector-max-compound-selectors
|
|
3
4
|
// stylelint-disable selector-max-type
|
|
@@ -18,7 +19,7 @@
|
|
|
18
19
|
// Autocomplete with embedded icon
|
|
19
20
|
.form-control.autocomplete-embedded-icon-wrap {
|
|
20
21
|
&:focus-within {
|
|
21
|
-
background-color: var(--color-canvas-default);
|
|
22
|
+
background-color: var(--bgColor-default, var(--color-canvas-default));
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
25
|
|
|
@@ -29,10 +30,10 @@
|
|
|
29
30
|
max-width: 100%;
|
|
30
31
|
// stylelint-disable-next-line primer/spacing
|
|
31
32
|
margin-right: 5px;
|
|
32
|
-
background-color: var(--color-canvas-inset);
|
|
33
|
+
background-color: var(--bgColor-muted, var(--color-canvas-inset));
|
|
33
34
|
|
|
34
35
|
&:focus {
|
|
35
|
-
background-color: var(--color-canvas-default);
|
|
36
|
+
background-color: var(--bgColor-default, var(--color-canvas-default));
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
&.shorter {
|
|
@@ -71,7 +72,8 @@
|
|
|
71
72
|
}
|
|
72
73
|
|
|
73
74
|
label {
|
|
74
|
-
|
|
75
|
+
// fix for chrome bug, see https://github.com/github/github/issues/53931
|
|
76
|
+
position: static;
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
&.flattened dt, // TODO: Deprecate
|
|
@@ -95,14 +97,14 @@
|
|
|
95
97
|
dd, // TODO: Deprecate
|
|
96
98
|
.form-group-body {
|
|
97
99
|
h4 {
|
|
98
|
-
margin:
|
|
100
|
+
margin: var(--base-size-4) 0 0;
|
|
99
101
|
|
|
100
102
|
&.is-error {
|
|
101
|
-
color: var(--color-danger-fg);
|
|
103
|
+
color: var(--fgColor-danger, var(--color-danger-fg));
|
|
102
104
|
}
|
|
103
105
|
|
|
104
106
|
&.is-success {
|
|
105
|
-
color: var(--color-success-fg);
|
|
107
|
+
color: var(--fgColor-success, var(--color-success-fg));
|
|
106
108
|
}
|
|
107
109
|
|
|
108
110
|
+ .note {
|
|
@@ -121,7 +123,7 @@
|
|
|
121
123
|
.form-group-header label::after {
|
|
122
124
|
// stylelint-disable-next-line primer/spacing
|
|
123
125
|
padding-left: 5px;
|
|
124
|
-
color: var(--color-danger-fg);
|
|
126
|
+
color: var(--fgColor-danger, var(--color-danger-fg));
|
|
125
127
|
content: '*';
|
|
126
128
|
}
|
|
127
129
|
}
|
|
@@ -134,7 +136,9 @@
|
|
|
134
136
|
.error,
|
|
135
137
|
.indicator {
|
|
136
138
|
display: none;
|
|
139
|
+
// stylelint-disable-next-line primer/typography
|
|
137
140
|
font-size: $font-size-small;
|
|
141
|
+
// stylelint-disable-next-line primer/typography
|
|
138
142
|
font-weight: $font-weight-bold;
|
|
139
143
|
}
|
|
140
144
|
|
|
@@ -154,7 +158,7 @@
|
|
|
154
158
|
&.successful {
|
|
155
159
|
.success {
|
|
156
160
|
display: inline;
|
|
157
|
-
color: var(--color-success-fg);
|
|
161
|
+
color: var(--fgColor-success, var(--color-success-fg));
|
|
158
162
|
}
|
|
159
163
|
}
|
|
160
164
|
|
|
@@ -172,18 +176,24 @@
|
|
|
172
176
|
z-index: 10;
|
|
173
177
|
display: block; // Show up in errored/warn state
|
|
174
178
|
max-width: 450px; // Keep our long errors readable
|
|
175
|
-
padding:
|
|
176
|
-
margin:
|
|
179
|
+
padding: var(--base-size-4) var(--base-size-8);
|
|
180
|
+
margin: var(--base-size-8) 0 0;
|
|
181
|
+
// stylelint-disable-next-line primer/typography
|
|
177
182
|
font-size: $font-size-small;
|
|
183
|
+
// stylelint-disable-next-line primer/typography
|
|
178
184
|
font-weight: $font-weight-normal;
|
|
185
|
+
// stylelint-disable-next-line primer/borders
|
|
179
186
|
border-style: $border-style;
|
|
187
|
+
// stylelint-disable-next-line primer/borders
|
|
180
188
|
border-width: $border-width;
|
|
189
|
+
// stylelint-disable-next-line primer/borders
|
|
181
190
|
border-radius: $border-radius;
|
|
182
191
|
|
|
183
192
|
&::after,
|
|
184
193
|
&::before {
|
|
185
194
|
position: absolute;
|
|
186
195
|
bottom: 100%;
|
|
196
|
+
// stylelint-disable-next-line primer/spacing
|
|
187
197
|
left: 10px;
|
|
188
198
|
z-index: 15;
|
|
189
199
|
width: 0;
|
|
@@ -210,63 +220,81 @@
|
|
|
210
220
|
|
|
211
221
|
&.successed {
|
|
212
222
|
.success {
|
|
213
|
-
color: var(--color-fg-default);
|
|
214
|
-
background-color: var(
|
|
215
|
-
|
|
216
|
-
|
|
223
|
+
color: var(--fgColor-default, var(--color-fg-default));
|
|
224
|
+
background-color: var(
|
|
225
|
+
--bgColor-default,
|
|
226
|
+
var(--color-canvas-default)
|
|
227
|
+
); // Makes sure the background is opaque to cover any content underneath
|
|
228
|
+
background-image: linear-gradient(
|
|
229
|
+
var(--bgColor-success-muted, var(--bgColor-success-muted, var(--color-success-subtle))),
|
|
230
|
+
var(--color-success-subtle)
|
|
231
|
+
);
|
|
232
|
+
border-color: var(--borderColor-success-muted, var(--color-success-muted));
|
|
217
233
|
|
|
218
234
|
&::after {
|
|
219
|
-
border-bottom-color: var(--color-success-
|
|
235
|
+
border-bottom-color: var(--borderColor-success-muted, var(--color-success-muted));
|
|
220
236
|
}
|
|
221
237
|
|
|
222
238
|
&::before {
|
|
223
|
-
border-bottom-color: var(--color-success-muted);
|
|
239
|
+
border-bottom-color: var(--borderColor-success-muted, var(--color-success-muted));
|
|
224
240
|
}
|
|
225
241
|
}
|
|
226
242
|
}
|
|
227
243
|
|
|
228
244
|
&.warn {
|
|
229
245
|
.form-control:not(:focus, :focus-visible) {
|
|
230
|
-
border-color: var(--color-attention-emphasis);
|
|
246
|
+
border-color: var(--borderColor-attention-emphasis, var(--color-attention-emphasis));
|
|
231
247
|
}
|
|
232
248
|
|
|
233
249
|
.warning {
|
|
234
|
-
color: var(--color-fg-default);
|
|
235
|
-
background-color: var(
|
|
236
|
-
|
|
237
|
-
|
|
250
|
+
color: var(--fgColor-default, var(--color-fg-default));
|
|
251
|
+
background-color: var(
|
|
252
|
+
--bgColor-default,
|
|
253
|
+
var(--color-canvas-default)
|
|
254
|
+
); // Makes sure the background is opaque to cover any content underneath
|
|
255
|
+
background-image: linear-gradient(
|
|
256
|
+
var(--bgColor-attention-muted, var(--bgColor-attention-muted, var(--color-attention-subtle))),
|
|
257
|
+
var(--color-attention-subtle)
|
|
258
|
+
);
|
|
259
|
+
border-color: var(--borderColor-attention-muted, var(--color-attention-muted));
|
|
238
260
|
|
|
239
261
|
&::after {
|
|
240
|
-
border-bottom-color: var(--color-attention-
|
|
262
|
+
border-bottom-color: var(--borderColor-attention-muted, var(--color-attention-muted));
|
|
241
263
|
}
|
|
242
264
|
|
|
243
265
|
&::before {
|
|
244
|
-
border-bottom-color: var(--color-attention-muted);
|
|
266
|
+
border-bottom-color: var(--borderColor-attention-muted, var(--color-attention-muted));
|
|
245
267
|
}
|
|
246
268
|
}
|
|
247
269
|
}
|
|
248
270
|
|
|
249
271
|
&.errored {
|
|
250
272
|
.form-control:not(:focus, :focus-visible) {
|
|
251
|
-
border-color: var(--color-danger-emphasis);
|
|
273
|
+
border-color: var(--borderColor-danger-emphasis, var(--color-danger-emphasis));
|
|
252
274
|
}
|
|
253
275
|
|
|
254
276
|
label {
|
|
255
|
-
color: var(--color-danger-fg);
|
|
277
|
+
color: var(--fgColor-danger, var(--color-danger-fg));
|
|
256
278
|
}
|
|
257
279
|
|
|
258
280
|
.error {
|
|
259
|
-
color: var(--color-fg-default);
|
|
260
|
-
background-color: var(
|
|
261
|
-
|
|
262
|
-
|
|
281
|
+
color: var(--fgColor-default, var(--color-fg-default));
|
|
282
|
+
background-color: var(
|
|
283
|
+
--bgColor-default,
|
|
284
|
+
var(--color-canvas-default)
|
|
285
|
+
); // Makes sure the background is opaque to cover any content underneath
|
|
286
|
+
background-image: linear-gradient(
|
|
287
|
+
var(--bgColor-danger-muted, var(--bgColor-danger-muted, var(--color-danger-subtle))),
|
|
288
|
+
var(--color-danger-subtle)
|
|
289
|
+
);
|
|
290
|
+
border-color: var(--borderColor-danger-muted, var(--color-danger-muted));
|
|
263
291
|
|
|
264
292
|
&::after {
|
|
265
|
-
border-bottom-color: var(--color-danger-
|
|
293
|
+
border-bottom-color: var(--borderColor-danger-muted, var(--color-danger-muted));
|
|
266
294
|
}
|
|
267
295
|
|
|
268
296
|
&::before {
|
|
269
|
-
border-bottom-color: var(--color-danger-muted);
|
|
297
|
+
border-bottom-color: var(--borderColor-danger-muted, var(--color-danger-muted));
|
|
270
298
|
}
|
|
271
299
|
}
|
|
272
300
|
}
|
|
@@ -276,9 +304,10 @@
|
|
|
276
304
|
.note {
|
|
277
305
|
min-height: 17px;
|
|
278
306
|
// stylelint-disable-next-line primer/spacing
|
|
279
|
-
margin:
|
|
307
|
+
margin: var(--base-size-4) 0 2px;
|
|
308
|
+
// stylelint-disable-next-line primer/typography
|
|
280
309
|
font-size: $font-size-small;
|
|
281
|
-
color: var(--color-fg-muted);
|
|
310
|
+
color: var(--fgColor-muted, var(--color-fg-muted));
|
|
282
311
|
|
|
283
312
|
.spinner {
|
|
284
313
|
// stylelint-disable-next-line primer/spacing
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
@import '~@papillonbits/css/build/primer/support/mixins/layout.scss';
|
|
4
4
|
@import '~@papillonbits/css/build/primer/support/mixins/color-modes.scss';
|
|
5
5
|
|
|
6
|
+
// stylelint-disable custom-property-pattern
|
|
7
|
+
|
|
6
8
|
// Custom select
|
|
7
9
|
//
|
|
8
10
|
// Apply `.select` to any `<select>` element for custom styles.
|
|
@@ -10,8 +12,8 @@
|
|
|
10
12
|
display: inline-block;
|
|
11
13
|
max-width: 100%;
|
|
12
14
|
height: $size-5;
|
|
13
|
-
padding-right:
|
|
14
|
-
background-color: var(--color-canvas-default);
|
|
15
|
+
padding-right: var(--base-size-24);
|
|
16
|
+
background-color: var(--bgColor-default, var(--color-canvas-default));
|
|
15
17
|
// SVG with fill: #586069 (--color-icon-secondary)
|
|
16
18
|
background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0iIzU4NjA2OSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNC40MjcgOS40MjdsMy4zOTYgMy4zOTZhLjI1MS4yNTEgMCAwMC4zNTQgMGwzLjM5Ni0zLjM5NkEuMjUuMjUgMCAwMDExLjM5NiA5SDQuNjA0YS4yNS4yNSAwIDAwLS4xNzcuNDI3ek00LjQyMyA2LjQ3TDcuODIgMy4wNzJhLjI1LjI1IDAgMDEuMzU0IDBMMTEuNTcgNi40N2EuMjUuMjUgMCAwMS0uMTc3LjQyN0g0LjZhLjI1LjI1IDAgMDEtLjE3Ny0uNDI3eiIgLz48L3N2Zz4=');
|
|
17
19
|
background-repeat: no-repeat;
|
|
@@ -42,6 +44,7 @@
|
|
|
42
44
|
padding-top: 3px;
|
|
43
45
|
// stylelint-disable-next-line primer/spacing
|
|
44
46
|
padding-bottom: 3px;
|
|
47
|
+
// stylelint-disable-next-line primer/typography
|
|
45
48
|
font-size: $font-size-small;
|
|
46
49
|
|
|
47
50
|
&[multiple] {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// stylelint-disable custom-property-pattern
|
|
1
2
|
// stylelint-disable no-descending-specificity
|
|
2
3
|
|
|
3
4
|
.input-group {
|
|
@@ -32,7 +33,7 @@
|
|
|
32
33
|
// Autocomplete with embedded icon
|
|
33
34
|
.form-control.autocomplete-embedded-icon-wrap {
|
|
34
35
|
display: inline-flex;
|
|
35
|
-
padding:
|
|
36
|
+
padding: calc(var(--base-size-4) * 1.25) var(--base-size-8);
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
|
|
@@ -56,6 +57,11 @@
|
|
|
56
57
|
border-bottom-right-radius: 0;
|
|
57
58
|
}
|
|
58
59
|
|
|
60
|
+
.input-group .form-control:first-child,
|
|
61
|
+
.input-group-button:first-child .btn:not(.btn-primary) {
|
|
62
|
+
border-color: var(--control-borderColor-rest, var(--color-border-default));
|
|
63
|
+
}
|
|
64
|
+
|
|
59
65
|
.input-group-button:first-child .btn {
|
|
60
66
|
// stylelint-disable-next-line primer/spacing
|
|
61
67
|
margin-right: -1px;
|
|
@@ -67,6 +73,11 @@
|
|
|
67
73
|
border-bottom-left-radius: 0;
|
|
68
74
|
}
|
|
69
75
|
|
|
76
|
+
.input-group .form-control:last-child,
|
|
77
|
+
.input-group-button:last-child .btn:not(.btn-primary) {
|
|
78
|
+
border-color: var(--control-borderColor-rest, var(--color-border-default));
|
|
79
|
+
}
|
|
80
|
+
|
|
70
81
|
.input-group-button:last-child .btn {
|
|
71
82
|
// stylelint-disable-next-line primer/spacing
|
|
72
83
|
margin-left: -1px;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// stylelint-disable custom-property-pattern
|
|
2
|
+
|
|
1
3
|
// Tab like radio group
|
|
2
4
|
|
|
3
5
|
.radio-group {
|
|
@@ -7,36 +9,42 @@
|
|
|
7
9
|
.radio-label {
|
|
8
10
|
float: left;
|
|
9
11
|
// stylelint-disable-next-line primer/spacing
|
|
10
|
-
padding: 6px
|
|
12
|
+
padding: 6px var(--base-size-16) 6px calc(var(--base-size-16) + 12px + var(--base-size-8)); // 12px is the size of the radio-input
|
|
11
13
|
// stylelint-disable-next-line primer/spacing
|
|
12
14
|
margin-left: -1px;
|
|
15
|
+
// stylelint-disable-next-line primer/typography
|
|
13
16
|
font-size: $body-font-size;
|
|
14
17
|
// stylelint-disable-next-line primer/typography
|
|
15
18
|
line-height: 20px; // Specifically not inherit our `<body>` default
|
|
16
|
-
color: var(--color-fg-default);
|
|
19
|
+
color: var(--fgColor-default, var(--color-fg-default));
|
|
17
20
|
cursor: pointer;
|
|
18
|
-
|
|
21
|
+
// stylelint-disable-next-line primer/borders
|
|
22
|
+
border: $border-width $border-style var(--borderColor-default, var(--color-border-default));
|
|
19
23
|
|
|
20
24
|
:checked + & {
|
|
21
25
|
position: relative;
|
|
22
26
|
z-index: 1;
|
|
23
|
-
border-color: var(--color-accent-emphasis);
|
|
27
|
+
border-color: var(--borderColor-accent-emphasis, var(--color-accent-emphasis));
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
&:first-of-type {
|
|
27
31
|
margin-left: 0;
|
|
32
|
+
// stylelint-disable-next-line primer/borders
|
|
28
33
|
border-top-left-radius: $border-radius;
|
|
34
|
+
// stylelint-disable-next-line primer/borders
|
|
29
35
|
border-bottom-left-radius: $border-radius;
|
|
30
36
|
}
|
|
31
37
|
|
|
32
38
|
&:last-of-type {
|
|
39
|
+
// stylelint-disable-next-line primer/borders
|
|
33
40
|
border-top-right-radius: $border-radius;
|
|
41
|
+
// stylelint-disable-next-line primer/borders
|
|
34
42
|
border-bottom-right-radius: $border-radius;
|
|
35
43
|
}
|
|
36
44
|
|
|
37
45
|
.octicon {
|
|
38
|
-
margin-left:
|
|
39
|
-
color: var(--color-fg-subtle);
|
|
46
|
+
margin-left: var(--base-size-4);
|
|
47
|
+
color: var(--fgColor-muted, var(--color-fg-subtle));
|
|
40
48
|
}
|
|
41
49
|
}
|
|
42
50
|
|
|
@@ -44,15 +52,15 @@
|
|
|
44
52
|
z-index: 3;
|
|
45
53
|
float: left;
|
|
46
54
|
// stylelint-disable-next-line primer/spacing
|
|
47
|
-
margin: 10px (
|
|
55
|
+
margin: 10px calc(var(--base-size-32) * -1) 0 var(--base-size-16);
|
|
48
56
|
|
|
49
57
|
&:disabled {
|
|
50
58
|
position: relative; // enables z-index
|
|
51
59
|
|
|
52
60
|
+ .radio-label {
|
|
53
|
-
color: var(--color-primer-fg-disabled);
|
|
61
|
+
color: var(--fgColor-disabled, var(--color-primer-fg-disabled));
|
|
54
62
|
cursor: default;
|
|
55
|
-
background-color: var(--color-neutral-subtle);
|
|
63
|
+
background-color: var(--bgColor-neutral-muted, var(--color-neutral-subtle));
|
|
56
64
|
|
|
57
65
|
.octicon {
|
|
58
66
|
color: inherit;
|
|
@@ -29,7 +29,7 @@ var _Checkbox = require("../../Form/Checkbox");
|
|
|
29
29
|
var _Icon = require("../../Icon");
|
|
30
30
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
31
31
|
function FlexGrid(_ref) {
|
|
32
|
-
var _items
|
|
32
|
+
var _items$;
|
|
33
33
|
var className = _ref.className,
|
|
34
34
|
items = _ref.items,
|
|
35
35
|
idIndex = _ref.idIndex,
|
|
@@ -45,7 +45,7 @@ function FlexGrid(_ref) {
|
|
|
45
45
|
className: (0, _classnames["default"])(className, (0, _defineProperty2["default"])({}, _FlexGrid2["default"]['flexGrid-inactive'], state === _FlexGrid.flexGridState.inactive)),
|
|
46
46
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
47
47
|
className: (0, _classnames["default"])(_visibilityDisplay["default"]['d-flex'], _flexbox["default"]['flex-row'], _flexbox["default"]['flex-items-start'], _colors["default"]['bg-blue-light'], (0, _defineProperty2["default"])({}, _borders["default"].border, items === null || items === void 0 ? void 0 : items[0])),
|
|
48
|
-
children: items === null || items === void 0
|
|
48
|
+
children: items === null || items === void 0 || (_items$ = items[0]) === null || _items$ === void 0 || (_items$ = _items$.names) === null || _items$ === void 0 ? void 0 : _items$.map(function (name, nameIndex) {
|
|
49
49
|
var _items$2;
|
|
50
50
|
var isIdColumn = nameIndex === idIndex;
|
|
51
51
|
var isSelectedColumn = nameIndex === isSelectedIndex;
|
|
@@ -113,7 +113,7 @@ function FlexGrid(_ref) {
|
|
|
113
113
|
})
|
|
114
114
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
115
115
|
className: (0, _classnames["default"])(_visibilityDisplay["default"]['d-flex'], _flexbox["default"]['flex-items-start'], _margin["default"]['ml-1']),
|
|
116
|
-
children: [sortComponent, nameIndex < (items === null || items === void 0
|
|
116
|
+
children: [sortComponent, nameIndex < (items === null || items === void 0 || (_items$2 = items[0]) === null || _items$2 === void 0 ? void 0 : _items$2.names.length) - 1 ?
|
|
117
117
|
/*#__PURE__*/
|
|
118
118
|
// eslint-disable-line no-unsafe-optional-chaining
|
|
119
119
|
(0, _jsxRuntime.jsx)("span", {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// stylelint-disable custom-property-pattern
|
|
2
|
+
|
|
1
3
|
.item {
|
|
2
4
|
&:hover {
|
|
3
5
|
cursor: pointer;
|
|
@@ -7,7 +9,7 @@
|
|
|
7
9
|
|
|
8
10
|
.row {
|
|
9
11
|
&:nth-of-type(odd) {
|
|
10
|
-
background-color: var(--color-
|
|
12
|
+
background-color: var(--bgColor-accent-muted, var(--color-accent-subtle)); // custom-style
|
|
11
13
|
}
|
|
12
14
|
}
|
|
13
15
|
|
|
@@ -1,40 +1 @@
|
|
|
1
|
-
@import '
|
|
2
|
-
@import '~@papillonbits/css/build/primer/support/variables/layout.scss';
|
|
3
|
-
@import '~@papillonbits/css/build/primer/support/variables/misc.scss';
|
|
4
|
-
|
|
5
|
-
// Counters are rounded-corner badges for numbers
|
|
6
|
-
.Counter {
|
|
7
|
-
display: inline-block;
|
|
8
|
-
min-width: $size-2; // makes sure it's a circle with just one digit
|
|
9
|
-
// stylelint-disable-next-line primer/spacing
|
|
10
|
-
padding: 0 6px;
|
|
11
|
-
font-size: $font-size-small;
|
|
12
|
-
font-weight: $font-weight-semibold;
|
|
13
|
-
// stylelint-disable-next-line primer/typography
|
|
14
|
-
line-height: $size-2 - 2px; // remove borders
|
|
15
|
-
color: var(--color-fg-default);
|
|
16
|
-
text-align: center;
|
|
17
|
-
background-color: var(--color-neutral-muted);
|
|
18
|
-
border: $border-width $border-style var(--color-counter-border);
|
|
19
|
-
// stylelint-disable-next-line primer/borders
|
|
20
|
-
border-radius: 2em;
|
|
21
|
-
|
|
22
|
-
&:empty {
|
|
23
|
-
display: none;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.octicon {
|
|
27
|
-
vertical-align: text-top;
|
|
28
|
-
opacity: 0.8;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.Counter--primary {
|
|
33
|
-
color: var(--color-fg-on-emphasis);
|
|
34
|
-
background-color: var(--color-neutral-emphasis);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.Counter--secondary {
|
|
38
|
-
color: var(--color-fg-muted);
|
|
39
|
-
background-color: var(--color-neutral-subtle);
|
|
40
|
-
}
|
|
1
|
+
@import '@primer/view-components/app/components/primer/beta/counter';
|