@mixtint/primer-view-components 0.91.3 → 0.91.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/assets/javascripts/primer_view_components.js +1 -1
- package/app/assets/javascripts/primer_view_components.js.map +1 -1
- package/app/assets/styles/primer_view_components.css +31 -16
- package/app/assets/styles/primer_view_components.css.map +1 -1
- package/app/components/primer/beta/border_box.css +31 -16
- package/app/components/primer/beta/border_box.css.json +5 -3
- package/package.json +7 -7
- package/static/classes.json +6 -0
- package/static/classnames.cjs +2 -0
- package/static/classnames.js +2 -0
- package/static/info_arch.json +13 -0
- package/static/previews.json +13 -0
|
@@ -79,15 +79,20 @@
|
|
|
79
79
|
.Box-body {
|
|
80
80
|
padding: var(--stack-padding-normal);
|
|
81
81
|
border-bottom: var(--borderWidth-thin) solid var(--borderColor-default);
|
|
82
|
+
}
|
|
82
83
|
|
|
83
|
-
|
|
84
|
+
/* Ensures a top border/background doesn't poke out when the body is the first element. */
|
|
85
|
+
.Box-body:first-child {
|
|
86
|
+
border-top-left-radius: var(--borderRadius-medium);
|
|
87
|
+
border-top-right-radius: var(--borderRadius-medium);
|
|
84
88
|
}
|
|
85
89
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
90
|
+
/* Ensures bottom-border doesn't poke out when the element is the last element. */
|
|
91
|
+
.Box-header:last-child, .Box-body:last-child {
|
|
92
|
+
margin-bottom: calc(var(--borderWidth-thin) * -1);
|
|
93
|
+
border-bottom-right-radius: var(--borderRadius-medium);
|
|
94
|
+
border-bottom-left-radius: var(--borderRadius-medium);
|
|
95
|
+
}
|
|
91
96
|
|
|
92
97
|
/* Box rows */
|
|
93
98
|
.Box-row {
|
|
@@ -97,17 +102,10 @@
|
|
|
97
102
|
border-top-color: var(--borderColor-muted);
|
|
98
103
|
border-top-style: solid;
|
|
99
104
|
border-top-width: var(--borderWidth-thin);
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
border-top-left-radius: var(--borderRadius-medium);
|
|
103
|
-
border-top-right-radius: var(--borderRadius-medium);
|
|
104
|
-
}
|
|
105
|
-
.Box-row:last-of-type {
|
|
106
|
-
border-bottom-right-radius: var(--borderRadius-medium);
|
|
107
|
-
border-bottom-left-radius: var(--borderRadius-medium);
|
|
108
|
-
}
|
|
109
|
-
/* Adds a blue vertical line to the left of the row
|
|
105
|
+
|
|
106
|
+
/* Adds a blue vertical line to the left of the row
|
|
110
107
|
** For indicating a row item is unread */
|
|
108
|
+
}
|
|
111
109
|
.Box-row.Box-row--unread,.Box-row.unread {
|
|
112
110
|
/* stylelint-disable-next-line primer/box-shadow */
|
|
113
111
|
box-shadow: inset 2px 0 0 var(--borderColor-accent-emphasis);
|
|
@@ -184,6 +182,23 @@
|
|
|
184
182
|
border-radius: 0 0 var(--borderRadius-medium) var(--borderRadius-medium);
|
|
185
183
|
}
|
|
186
184
|
|
|
185
|
+
/* Outer corners for rows.
|
|
186
|
+
** The list only claims a corner when Ruby says it sits at that edge of the box
|
|
187
|
+
** (`Box-list--roundedTop` / `Box-list--roundedBottom`, set in
|
|
188
|
+
** BorderBox#before_render), so header/body/footer automatically win when present. */
|
|
189
|
+
|
|
190
|
+
/* First row of a list that starts the box */
|
|
191
|
+
.Box-list--roundedTop > .Box-row:first-of-type {
|
|
192
|
+
border-top-left-radius: var(--borderRadius-medium);
|
|
193
|
+
border-top-right-radius: var(--borderRadius-medium);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/* Last row of a list that ends the box */
|
|
197
|
+
.Box-list--roundedBottom > .Box-row:last-of-type {
|
|
198
|
+
border-bottom-right-radius: var(--borderRadius-medium);
|
|
199
|
+
border-bottom-left-radius: var(--borderRadius-medium);
|
|
200
|
+
}
|
|
201
|
+
|
|
187
202
|
/* Option for a box with scrolling content */
|
|
188
203
|
.Box--scrollable {
|
|
189
204
|
max-height: 324px;
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
".Box-header",
|
|
18
18
|
".Box-title",
|
|
19
19
|
".Box-body",
|
|
20
|
-
".Box-body:
|
|
20
|
+
".Box-body:first-child",
|
|
21
|
+
".Box-header:last-child",
|
|
22
|
+
".Box-body:last-child",
|
|
21
23
|
".Box-row",
|
|
22
|
-
".Box-row:first-of-type",
|
|
23
|
-
".Box-row:last-of-type",
|
|
24
24
|
".Box-row.Box-row--unread",
|
|
25
25
|
".Box-row.unread",
|
|
26
26
|
".Box-row.navigation-focus .Box-row--drag-button",
|
|
@@ -36,6 +36,8 @@
|
|
|
36
36
|
".Box-row-link:hover",
|
|
37
37
|
".Box-row--drag-button",
|
|
38
38
|
".Box-footer",
|
|
39
|
+
".Box-list--roundedTop > .Box-row:first-of-type",
|
|
40
|
+
".Box-list--roundedBottom > .Box-row:last-of-type",
|
|
39
41
|
".Box--scrollable",
|
|
40
42
|
".Box--blue",
|
|
41
43
|
".Box--blue .Box-header",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mixtint/primer-view-components",
|
|
3
|
-
"version": "0.91.
|
|
3
|
+
"version": "0.91.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@github/remote-input-element": "^0.4.0",
|
|
78
78
|
"@github/tab-container-element": "^3.4.0",
|
|
79
79
|
"@oddbird/popover-polyfill": "^0.5.2",
|
|
80
|
-
"@primer/behaviors": "^1.
|
|
80
|
+
"@primer/behaviors": "^1.11.0",
|
|
81
81
|
"@primer/live-region-element": "^0.8.0"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@changesets/cli": "^2.31.1",
|
|
89
89
|
"@github/axe-github": "^0.8.1",
|
|
90
90
|
"@github/browserslist-config": "^1.0.0",
|
|
91
|
-
"@github/markdownlint-github": "^0.8.
|
|
91
|
+
"@github/markdownlint-github": "^0.8.4",
|
|
92
92
|
"@github/prettier-config": "0.0.6",
|
|
93
93
|
"@playwright/test": "^1.63.0",
|
|
94
94
|
"@primer/css": "22.3.0",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"eslint": "^9.39.5",
|
|
104
104
|
"eslint-plugin-github": "^6.1.2",
|
|
105
105
|
"glob": "^11.1.0",
|
|
106
|
-
"markdownlint-cli2": "^0.23.
|
|
106
|
+
"markdownlint-cli2": "^0.23.3",
|
|
107
107
|
"mocha": "^11.8.0",
|
|
108
108
|
"playwright": "^1.63.0",
|
|
109
109
|
"postcss": "^8.5.28",
|
|
@@ -111,14 +111,14 @@
|
|
|
111
111
|
"postcss-import": "^16.2.0",
|
|
112
112
|
"postcss-mixins": "^12.1.2",
|
|
113
113
|
"postcss-preset-env": "^11.5.3",
|
|
114
|
-
"prettier": "^3.9.
|
|
114
|
+
"prettier": "^3.9.9",
|
|
115
115
|
"rollup": "^2.80.0",
|
|
116
116
|
"rollup-plugin-terser": "^7.0.2",
|
|
117
117
|
"stylelint-actions-formatters": "^16.3.1",
|
|
118
118
|
"tslib": "^2.8.1",
|
|
119
119
|
"typescript": "^6.0.3",
|
|
120
|
-
"vite": "^8.3.
|
|
121
|
-
"vite-plugin-ruby": "^5.2.
|
|
120
|
+
"vite": "^8.3.1",
|
|
121
|
+
"vite-plugin-ruby": "^5.2.4"
|
|
122
122
|
},
|
|
123
123
|
"prettier": "@github/prettier-config",
|
|
124
124
|
"browserslist": "extends @github/browserslist-config"
|
package/static/classes.json
CHANGED
|
@@ -154,6 +154,12 @@
|
|
|
154
154
|
"Box-header--blue": [
|
|
155
155
|
"Primer::Beta::BorderBox"
|
|
156
156
|
],
|
|
157
|
+
"Box-list--roundedBottom": [
|
|
158
|
+
"Primer::Beta::BorderBox"
|
|
159
|
+
],
|
|
160
|
+
"Box-list--roundedTop": [
|
|
161
|
+
"Primer::Beta::BorderBox"
|
|
162
|
+
],
|
|
157
163
|
"Box-row": [
|
|
158
164
|
"Primer::Beta::BorderBox"
|
|
159
165
|
],
|
package/static/classnames.cjs
CHANGED
package/static/classnames.js
CHANGED
package/static/info_arch.json
CHANGED
|
@@ -13690,6 +13690,19 @@
|
|
|
13690
13690
|
]
|
|
13691
13691
|
}
|
|
13692
13692
|
},
|
|
13693
|
+
{
|
|
13694
|
+
"preview_path": "primer/beta/border_box/roundedness_playground",
|
|
13695
|
+
"name": "roundedness_playground",
|
|
13696
|
+
"snapshot": "false",
|
|
13697
|
+
"skip_rules": {
|
|
13698
|
+
"wont_fix": [
|
|
13699
|
+
"region"
|
|
13700
|
+
],
|
|
13701
|
+
"will_fix": [
|
|
13702
|
+
"color-contrast"
|
|
13703
|
+
]
|
|
13704
|
+
}
|
|
13705
|
+
},
|
|
13693
13706
|
{
|
|
13694
13707
|
"preview_path": "primer/beta/border_box/padding_default",
|
|
13695
13708
|
"name": "padding_default",
|
package/static/previews.json
CHANGED
|
@@ -5971,6 +5971,19 @@
|
|
|
5971
5971
|
]
|
|
5972
5972
|
}
|
|
5973
5973
|
},
|
|
5974
|
+
{
|
|
5975
|
+
"preview_path": "primer/beta/border_box/roundedness_playground",
|
|
5976
|
+
"name": "roundedness_playground",
|
|
5977
|
+
"snapshot": "false",
|
|
5978
|
+
"skip_rules": {
|
|
5979
|
+
"wont_fix": [
|
|
5980
|
+
"region"
|
|
5981
|
+
],
|
|
5982
|
+
"will_fix": [
|
|
5983
|
+
"color-contrast"
|
|
5984
|
+
]
|
|
5985
|
+
}
|
|
5986
|
+
},
|
|
5974
5987
|
{
|
|
5975
5988
|
"preview_path": "primer/beta/border_box/padding_default",
|
|
5976
5989
|
"name": "padding_default",
|