@openproject/primer-view-components 0.91.4 → 0.92.0-rc.58bbe1b03
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/README.md +0 -19
- package/package.json +1 -1
- package/static/arguments.json +0 -6
- package/static/classnames.cjs +14 -0
- package/static/classnames.js +14 -0
- package/static/info_arch.json +10 -16
- package/static/previews.json +10 -10
package/README.md
CHANGED
|
@@ -2,25 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
<p align="center">Fork of ViewComponents for the Primer Design System used for OpenProject.</p>
|
|
4
4
|
|
|
5
|
-
> [!WARNING]
|
|
6
|
-
> As part of GitHub’s move to React-based interfaces, Primer ViewComponents is in maintenance mode as of February 2026.
|
|
7
|
-
>
|
|
8
|
-
> Maintenance mode means:
|
|
9
|
-
>
|
|
10
|
-
> * this project is **not accepting new features, components, or significant enhancements.**
|
|
11
|
-
> * the Primer team at GitHub will continue providing:
|
|
12
|
-
> * Security updates
|
|
13
|
-
> * Dependency bumps
|
|
14
|
-
> * Critical/P0 bug fixes
|
|
15
|
-
> * issues, PRs, and discussions / community Q&A remain open, but maintainer response is not guaranteed
|
|
16
|
-
The Primer team continues to focus its resources on strategic investments that help GitHub and its customers to be successful, while making developers’ lives easier. The Primer design system remains a part of this vision through [guidance](https://primer.style/product/ui-patterns/), [tooling](https://primer.style/product/getting-started/react/), and ready-to-use [React](https://primer.style/product/components/) and [web components](https://github.com/github/github-elements).
|
|
17
|
-
>
|
|
18
|
-
> We encourage internal GitHub consumers to plan to migrate from Primer ViewComponents to [Primer React](https://github.com/primer/react).
|
|
19
|
-
>
|
|
20
|
-
> Non-GitHub consumers should consider forking and maintaining a copy of this repo.
|
|
21
|
-
>
|
|
22
|
-
> Questions may be posted on the [maintenance mode announcement](https://github.com/primer/view_components/discussions/3908). Thank you for your support and interest!
|
|
23
|
-
|
|
24
5
|
## Contribution
|
|
25
6
|
|
|
26
7
|
Please have a look at our [Contribution docs](./docs/contributors/README.md) to learn about any ways to contribute as for example
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openproject/primer-view-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.92.0-rc.58bbe1b03",
|
|
4
4
|
"description": "ViewComponents of the Primer Design System for OpenProject",
|
|
5
5
|
"main": "app/assets/javascripts/primer_view_components.js",
|
|
6
6
|
"module": "app/components/primer/primer.js",
|
package/static/arguments.json
CHANGED
|
@@ -6513,12 +6513,6 @@
|
|
|
6513
6513
|
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/sub_header.rb",
|
|
6514
6514
|
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/sub_header/default/",
|
|
6515
6515
|
"parameters": [
|
|
6516
|
-
{
|
|
6517
|
-
"name": "collapsed_search",
|
|
6518
|
-
"type": "Boolean",
|
|
6519
|
-
"default": "`true`",
|
|
6520
|
-
"description": "When true, the search bar starts collapsed as an icon button on all screen sizes. Clicking expands it."
|
|
6521
|
-
},
|
|
6522
6516
|
{
|
|
6523
6517
|
"name": "system_arguments",
|
|
6524
6518
|
"type": "Hash",
|
package/static/classnames.cjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
module.exports = new Set([
|
|
2
|
+
':popover-open',
|
|
2
3
|
'ActionBar',
|
|
3
4
|
'ActionBar--large',
|
|
4
5
|
'ActionBar--small',
|
|
@@ -15,9 +16,13 @@ module.exports = new Set([
|
|
|
15
16
|
'ActionListContent--hasActiveSubItem',
|
|
16
17
|
'ActionListContent--sizeLarge',
|
|
17
18
|
'ActionListContent--sizeXLarge',
|
|
19
|
+
'ActionListContent--visual16',
|
|
20
|
+
'ActionListContent--visual20',
|
|
21
|
+
'ActionListContent--visual24',
|
|
18
22
|
'ActionListHeader',
|
|
19
23
|
'ActionListItem',
|
|
20
24
|
'ActionListItem--danger',
|
|
25
|
+
'ActionListItem--disabled',
|
|
21
26
|
'ActionListItem--hasSubItem',
|
|
22
27
|
'ActionListItem--navActive',
|
|
23
28
|
'ActionListItem--subItem',
|
|
@@ -72,6 +77,7 @@ module.exports = new Set([
|
|
|
72
77
|
'Box-footer',
|
|
73
78
|
'Box-header',
|
|
74
79
|
'Box-header--blue',
|
|
80
|
+
'Box-list',
|
|
75
81
|
'Box-list--roundedBottom',
|
|
76
82
|
'Box-list--roundedTop',
|
|
77
83
|
'Box-row',
|
|
@@ -97,6 +103,7 @@ module.exports = new Set([
|
|
|
97
103
|
'Button--labelWrap',
|
|
98
104
|
'Button--large',
|
|
99
105
|
'Button--link',
|
|
106
|
+
'Button--medium',
|
|
100
107
|
'Button--primary',
|
|
101
108
|
'Button--secondary',
|
|
102
109
|
'Button--small',
|
|
@@ -109,6 +116,7 @@ module.exports = new Set([
|
|
|
109
116
|
'Button-visual',
|
|
110
117
|
'ButtonGroup',
|
|
111
118
|
'CollapsibleHeader',
|
|
119
|
+
'CollapsibleHeader--collapsed',
|
|
112
120
|
'CollapsibleHeader--multi-line',
|
|
113
121
|
'CollapsibleHeader-description',
|
|
114
122
|
'CollapsibleHeader-title-line',
|
|
@@ -139,6 +147,7 @@ module.exports = new Set([
|
|
|
139
147
|
'FormControl-input-trailingAction',
|
|
140
148
|
'FormControl-input-trailingAction--divider',
|
|
141
149
|
'FormControl-input-trailingVisualLabel',
|
|
150
|
+
'FormControl-input-trailingVisualText',
|
|
142
151
|
'FormControl-input-trailingVisualWrap',
|
|
143
152
|
'FormControl-input-width--auto',
|
|
144
153
|
'FormControl-input-width--large',
|
|
@@ -277,6 +286,7 @@ module.exports = new Set([
|
|
|
277
286
|
'Overlay-form',
|
|
278
287
|
'Overlay-header',
|
|
279
288
|
'Overlay-header--divided',
|
|
289
|
+
'Overlay-header--large',
|
|
280
290
|
'Overlay-headerContentWrap',
|
|
281
291
|
'Overlay-headerFilter',
|
|
282
292
|
'Overlay-title',
|
|
@@ -454,6 +464,9 @@ module.exports = new Set([
|
|
|
454
464
|
'btn-small-mktg',
|
|
455
465
|
'btn-subtle-mktg',
|
|
456
466
|
'close-button',
|
|
467
|
+
'container-lg',
|
|
468
|
+
'container-md',
|
|
469
|
+
'container-xl',
|
|
457
470
|
'css-truncate',
|
|
458
471
|
'css-truncate-overflow',
|
|
459
472
|
'css-truncate-target',
|
|
@@ -482,6 +495,7 @@ module.exports = new Set([
|
|
|
482
495
|
'flash-messages',
|
|
483
496
|
'flash-success',
|
|
484
497
|
'flash-warn',
|
|
498
|
+
'focus',
|
|
485
499
|
'form-control',
|
|
486
500
|
'has-modal',
|
|
487
501
|
'has-modal-disable-scroll',
|
package/static/classnames.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const classNames = new Set([
|
|
2
|
+
':popover-open',
|
|
2
3
|
'ActionBar',
|
|
3
4
|
'ActionBar--large',
|
|
4
5
|
'ActionBar--small',
|
|
@@ -15,9 +16,13 @@ const classNames = new Set([
|
|
|
15
16
|
'ActionListContent--hasActiveSubItem',
|
|
16
17
|
'ActionListContent--sizeLarge',
|
|
17
18
|
'ActionListContent--sizeXLarge',
|
|
19
|
+
'ActionListContent--visual16',
|
|
20
|
+
'ActionListContent--visual20',
|
|
21
|
+
'ActionListContent--visual24',
|
|
18
22
|
'ActionListHeader',
|
|
19
23
|
'ActionListItem',
|
|
20
24
|
'ActionListItem--danger',
|
|
25
|
+
'ActionListItem--disabled',
|
|
21
26
|
'ActionListItem--hasSubItem',
|
|
22
27
|
'ActionListItem--navActive',
|
|
23
28
|
'ActionListItem--subItem',
|
|
@@ -72,6 +77,7 @@ const classNames = new Set([
|
|
|
72
77
|
'Box-footer',
|
|
73
78
|
'Box-header',
|
|
74
79
|
'Box-header--blue',
|
|
80
|
+
'Box-list',
|
|
75
81
|
'Box-list--roundedBottom',
|
|
76
82
|
'Box-list--roundedTop',
|
|
77
83
|
'Box-row',
|
|
@@ -97,6 +103,7 @@ const classNames = new Set([
|
|
|
97
103
|
'Button--labelWrap',
|
|
98
104
|
'Button--large',
|
|
99
105
|
'Button--link',
|
|
106
|
+
'Button--medium',
|
|
100
107
|
'Button--primary',
|
|
101
108
|
'Button--secondary',
|
|
102
109
|
'Button--small',
|
|
@@ -109,6 +116,7 @@ const classNames = new Set([
|
|
|
109
116
|
'Button-visual',
|
|
110
117
|
'ButtonGroup',
|
|
111
118
|
'CollapsibleHeader',
|
|
119
|
+
'CollapsibleHeader--collapsed',
|
|
112
120
|
'CollapsibleHeader--multi-line',
|
|
113
121
|
'CollapsibleHeader-description',
|
|
114
122
|
'CollapsibleHeader-title-line',
|
|
@@ -139,6 +147,7 @@ const classNames = new Set([
|
|
|
139
147
|
'FormControl-input-trailingAction',
|
|
140
148
|
'FormControl-input-trailingAction--divider',
|
|
141
149
|
'FormControl-input-trailingVisualLabel',
|
|
150
|
+
'FormControl-input-trailingVisualText',
|
|
142
151
|
'FormControl-input-trailingVisualWrap',
|
|
143
152
|
'FormControl-input-width--auto',
|
|
144
153
|
'FormControl-input-width--large',
|
|
@@ -277,6 +286,7 @@ const classNames = new Set([
|
|
|
277
286
|
'Overlay-form',
|
|
278
287
|
'Overlay-header',
|
|
279
288
|
'Overlay-header--divided',
|
|
289
|
+
'Overlay-header--large',
|
|
280
290
|
'Overlay-headerContentWrap',
|
|
281
291
|
'Overlay-headerFilter',
|
|
282
292
|
'Overlay-title',
|
|
@@ -454,6 +464,9 @@ const classNames = new Set([
|
|
|
454
464
|
'btn-small-mktg',
|
|
455
465
|
'btn-subtle-mktg',
|
|
456
466
|
'close-button',
|
|
467
|
+
'container-lg',
|
|
468
|
+
'container-md',
|
|
469
|
+
'container-xl',
|
|
457
470
|
'css-truncate',
|
|
458
471
|
'css-truncate-overflow',
|
|
459
472
|
'css-truncate-target',
|
|
@@ -482,6 +495,7 @@ const classNames = new Set([
|
|
|
482
495
|
'flash-messages',
|
|
483
496
|
'flash-success',
|
|
484
497
|
'flash-warn',
|
|
498
|
+
'focus',
|
|
485
499
|
'form-control',
|
|
486
500
|
'has-modal',
|
|
487
501
|
'has-modal-disable-scroll',
|
package/static/info_arch.json
CHANGED
|
@@ -21925,12 +21925,6 @@
|
|
|
21925
21925
|
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/sub_header.rb",
|
|
21926
21926
|
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/sub_header/default/",
|
|
21927
21927
|
"parameters": [
|
|
21928
|
-
{
|
|
21929
|
-
"name": "collapsed_search",
|
|
21930
|
-
"type": "Boolean",
|
|
21931
|
-
"default": "`true`",
|
|
21932
|
-
"description": "When true, the search bar starts collapsed as an icon button on all screen sizes. Clicking expands it."
|
|
21933
|
-
},
|
|
21934
21928
|
{
|
|
21935
21929
|
"name": "system_arguments",
|
|
21936
21930
|
"type": "Hash",
|
|
@@ -22003,7 +21997,7 @@
|
|
|
22003
21997
|
{
|
|
22004
21998
|
"preview_path": "primer/open_project/sub_header/default",
|
|
22005
21999
|
"name": "default",
|
|
22006
|
-
"snapshot": "
|
|
22000
|
+
"snapshot": "true",
|
|
22007
22001
|
"skip_rules": {
|
|
22008
22002
|
"wont_fix": [
|
|
22009
22003
|
"region"
|
|
@@ -22079,8 +22073,8 @@
|
|
|
22079
22073
|
}
|
|
22080
22074
|
},
|
|
22081
22075
|
{
|
|
22082
|
-
"preview_path": "primer/open_project/sub_header/
|
|
22083
|
-
"name": "
|
|
22076
|
+
"preview_path": "primer/open_project/sub_header/quick_filters",
|
|
22077
|
+
"name": "quick_filters",
|
|
22084
22078
|
"snapshot": "false",
|
|
22085
22079
|
"skip_rules": {
|
|
22086
22080
|
"wont_fix": [
|
|
@@ -22092,8 +22086,8 @@
|
|
|
22092
22086
|
}
|
|
22093
22087
|
},
|
|
22094
22088
|
{
|
|
22095
|
-
"preview_path": "primer/open_project/sub_header/
|
|
22096
|
-
"name": "
|
|
22089
|
+
"preview_path": "primer/open_project/sub_header/bottom_pane",
|
|
22090
|
+
"name": "bottom_pane",
|
|
22097
22091
|
"snapshot": "false",
|
|
22098
22092
|
"skip_rules": {
|
|
22099
22093
|
"wont_fix": [
|
|
@@ -22105,8 +22099,8 @@
|
|
|
22105
22099
|
}
|
|
22106
22100
|
},
|
|
22107
22101
|
{
|
|
22108
|
-
"preview_path": "primer/open_project/sub_header/
|
|
22109
|
-
"name": "
|
|
22102
|
+
"preview_path": "primer/open_project/sub_header/text",
|
|
22103
|
+
"name": "text",
|
|
22110
22104
|
"snapshot": "false",
|
|
22111
22105
|
"skip_rules": {
|
|
22112
22106
|
"wont_fix": [
|
|
@@ -22118,9 +22112,9 @@
|
|
|
22118
22112
|
}
|
|
22119
22113
|
},
|
|
22120
22114
|
{
|
|
22121
|
-
"preview_path": "primer/open_project/sub_header/
|
|
22122
|
-
"name": "
|
|
22123
|
-
"snapshot": "
|
|
22115
|
+
"preview_path": "primer/open_project/sub_header/expanded_search",
|
|
22116
|
+
"name": "expanded_search",
|
|
22117
|
+
"snapshot": "true",
|
|
22124
22118
|
"skip_rules": {
|
|
22125
22119
|
"wont_fix": [
|
|
22126
22120
|
"region"
|
package/static/previews.json
CHANGED
|
@@ -9979,7 +9979,7 @@
|
|
|
9979
9979
|
{
|
|
9980
9980
|
"preview_path": "primer/open_project/sub_header/default",
|
|
9981
9981
|
"name": "default",
|
|
9982
|
-
"snapshot": "
|
|
9982
|
+
"snapshot": "true",
|
|
9983
9983
|
"skip_rules": {
|
|
9984
9984
|
"wont_fix": [
|
|
9985
9985
|
"region"
|
|
@@ -10055,8 +10055,8 @@
|
|
|
10055
10055
|
}
|
|
10056
10056
|
},
|
|
10057
10057
|
{
|
|
10058
|
-
"preview_path": "primer/open_project/sub_header/
|
|
10059
|
-
"name": "
|
|
10058
|
+
"preview_path": "primer/open_project/sub_header/quick_filters",
|
|
10059
|
+
"name": "quick_filters",
|
|
10060
10060
|
"snapshot": "false",
|
|
10061
10061
|
"skip_rules": {
|
|
10062
10062
|
"wont_fix": [
|
|
@@ -10068,8 +10068,8 @@
|
|
|
10068
10068
|
}
|
|
10069
10069
|
},
|
|
10070
10070
|
{
|
|
10071
|
-
"preview_path": "primer/open_project/sub_header/
|
|
10072
|
-
"name": "
|
|
10071
|
+
"preview_path": "primer/open_project/sub_header/bottom_pane",
|
|
10072
|
+
"name": "bottom_pane",
|
|
10073
10073
|
"snapshot": "false",
|
|
10074
10074
|
"skip_rules": {
|
|
10075
10075
|
"wont_fix": [
|
|
@@ -10081,8 +10081,8 @@
|
|
|
10081
10081
|
}
|
|
10082
10082
|
},
|
|
10083
10083
|
{
|
|
10084
|
-
"preview_path": "primer/open_project/sub_header/
|
|
10085
|
-
"name": "
|
|
10084
|
+
"preview_path": "primer/open_project/sub_header/text",
|
|
10085
|
+
"name": "text",
|
|
10086
10086
|
"snapshot": "false",
|
|
10087
10087
|
"skip_rules": {
|
|
10088
10088
|
"wont_fix": [
|
|
@@ -10094,9 +10094,9 @@
|
|
|
10094
10094
|
}
|
|
10095
10095
|
},
|
|
10096
10096
|
{
|
|
10097
|
-
"preview_path": "primer/open_project/sub_header/
|
|
10098
|
-
"name": "
|
|
10099
|
-
"snapshot": "
|
|
10097
|
+
"preview_path": "primer/open_project/sub_header/expanded_search",
|
|
10098
|
+
"name": "expanded_search",
|
|
10099
|
+
"snapshot": "true",
|
|
10100
10100
|
"skip_rules": {
|
|
10101
10101
|
"wont_fix": [
|
|
10102
10102
|
"region"
|