@mixtint/primer-view-components 0.75.2 → 0.84.3
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 +20 -1
- package/app/assets/javascripts/components/primer/alpha/tree_view/tree_view.d.ts +1 -0
- package/app/assets/javascripts/components/primer/open_project/avatar_fallback.d.ts +28 -0
- package/app/assets/javascripts/components/primer/primer.d.ts +2 -0
- package/app/assets/javascripts/lib/primer/forms/character_counter.d.ts +41 -0
- package/app/assets/javascripts/lib/primer/forms/primer_text_area.d.ts +13 -0
- package/app/assets/javascripts/lib/primer/forms/primer_text_field.d.ts +2 -0
- 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 +354 -29
- package/app/assets/styles/primer_view_components.css.map +1 -1
- package/app/components/primer/alpha/action_bar_element.js +68 -77
- package/app/components/primer/alpha/action_list.css +1 -1
- package/app/components/primer/alpha/action_list.js +1 -1
- package/app/components/primer/alpha/action_menu/action_menu_element.js +1 -1
- package/app/components/primer/alpha/dialog.css +12 -0
- package/app/components/primer/alpha/dialog.css.json +2 -1
- package/app/components/primer/alpha/segmented_control.js +1 -1
- package/app/components/primer/alpha/select_panel_element.js +4 -2
- package/app/components/primer/alpha/tab_nav.css +8 -1
- package/app/components/primer/alpha/tab_nav.css.json +1 -0
- package/app/components/primer/alpha/toggle_switch.js +1 -1
- package/app/components/primer/alpha/tool_tip.js +13 -6
- package/app/components/primer/alpha/tree_view/tree_view.d.ts +1 -0
- package/app/components/primer/alpha/tree_view/tree_view.js +28 -20
- package/app/components/primer/alpha/tree_view/tree_view_icon_pair_element.js +1 -1
- package/app/components/primer/alpha/tree_view/tree_view_include_fragment_element.js +1 -1
- package/app/components/primer/alpha/tree_view/tree_view_sub_tree_node_element.js +25 -2
- package/app/components/primer/alpha/x_banner.js +1 -1
- package/app/components/primer/beta/avatar_stack.css +21 -41
- package/app/components/primer/beta/avatar_stack.css.json +7 -5
- package/app/components/primer/beta/blankslate.css +7 -0
- package/app/components/primer/beta/blankslate.css.json +1 -0
- package/app/components/primer/beta/details_toggle_element.js +1 -1
- package/app/components/primer/beta/nav_list.js +1 -1
- package/app/components/primer/beta/nav_list_group_element.js +1 -1
- package/app/components/primer/beta/state.css +1 -2
- package/app/components/primer/beta/timeline_item.css +2 -1
- package/app/components/primer/dialog_helper.js +24 -9
- package/app/components/primer/open_project/avatar_fallback.d.ts +28 -0
- package/app/components/primer/open_project/avatar_fallback.js +105 -0
- package/app/components/primer/open_project/avatar_stack.css +29 -0
- package/app/components/primer/open_project/avatar_stack.css.json +10 -0
- package/app/components/primer/open_project/border_box/collapsible_header.css +72 -10
- package/app/components/primer/open_project/border_box/collapsible_header.css.json +9 -2
- package/app/components/primer/open_project/inline_message.css +42 -0
- package/app/components/primer/open_project/inline_message.css.json +13 -0
- package/app/components/primer/open_project/page_header.css +51 -0
- package/app/components/primer/open_project/page_header.css.json +10 -1
- package/app/components/primer/open_project/pagination.css +87 -0
- package/app/components/primer/open_project/pagination.css.json +24 -0
- package/app/components/primer/primer.d.ts +2 -0
- package/app/components/primer/primer.js +2 -0
- package/app/components/primer/scrollable_region.js +1 -1
- package/app/lib/primer/forms/character_counter.d.ts +41 -0
- package/app/lib/primer/forms/character_counter.js +114 -0
- package/app/lib/primer/forms/primer_multi_input.js +1 -1
- package/app/lib/primer/forms/primer_text_area.d.ts +13 -0
- package/app/lib/primer/forms/primer_text_area.js +53 -0
- package/app/lib/primer/forms/primer_text_field.d.ts +2 -0
- package/app/lib/primer/forms/primer_text_field.js +17 -3
- package/app/lib/primer/forms/toggle_switch_input.js +1 -1
- package/package.json +24 -23
- package/static/arguments.json +235 -9
- package/static/audited_at.json +6 -0
- package/static/classes.json +30 -2
- package/static/constants.json +67 -1
- package/static/form_previews.json +15 -0
- package/static/info_arch.json +1035 -257
- package/static/previews.json +476 -14
- package/static/statuses.json +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mixtint/primer-view-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.84.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -48,56 +48,57 @@
|
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@github/auto-check-element": "^6.0.0",
|
|
50
50
|
"@github/auto-complete-element": "^3.8.0",
|
|
51
|
-
"@github/catalyst": "^1.
|
|
51
|
+
"@github/catalyst": "^1.8.1",
|
|
52
52
|
"@github/clipboard-copy-element": "^1.3.0",
|
|
53
53
|
"@github/details-menu-element": "^1.0.13",
|
|
54
54
|
"@github/image-crop-element": "^5.0.0",
|
|
55
55
|
"@github/include-fragment-element": "^6.4.1",
|
|
56
|
-
"@github/relative-time-element": "^
|
|
56
|
+
"@github/relative-time-element": "^5.0.0",
|
|
57
57
|
"@github/remote-input-element": "^0.4.0",
|
|
58
58
|
"@github/tab-container-element": "^3.4.0",
|
|
59
59
|
"@oddbird/popover-polyfill": "^0.5.2",
|
|
60
|
-
"@primer/behaviors": "^1.
|
|
60
|
+
"@primer/behaviors": "^1.10.2",
|
|
61
61
|
"@primer/live-region-element": "^0.8.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@primer/primitives": "10.x || 11.x"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@changesets/changelog-github": "^0.5.
|
|
68
|
-
"@changesets/cli": "^2.
|
|
69
|
-
"@github/axe-github": "^0.
|
|
67
|
+
"@changesets/changelog-github": "^0.5.2",
|
|
68
|
+
"@changesets/cli": "^2.31.0",
|
|
69
|
+
"@github/axe-github": "^0.8.1",
|
|
70
70
|
"@github/browserslist-config": "^1.0.0",
|
|
71
71
|
"@github/markdownlint-github": "^0.8.0",
|
|
72
72
|
"@github/prettier-config": "0.0.6",
|
|
73
|
-
"@playwright/test": "^1.
|
|
74
|
-
"@primer/css": "22.
|
|
75
|
-
"@primer/
|
|
73
|
+
"@playwright/test": "^1.59.1",
|
|
74
|
+
"@primer/css": "22.1.1",
|
|
75
|
+
"@primer/primitives": "^11.7.1",
|
|
76
|
+
"@primer/stylelint-config": "^13.6.0",
|
|
76
77
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
77
78
|
"@rollup/plugin-typescript": "^8.5.0",
|
|
78
|
-
"axe-core": "^4.11.
|
|
79
|
+
"axe-core": "^4.11.3",
|
|
79
80
|
"chokidar-cli": "^3.0.0",
|
|
80
81
|
"css-what": "^7.0.0",
|
|
81
|
-
"cssnano": "^7.1.
|
|
82
|
-
"eslint": "^9.
|
|
82
|
+
"cssnano": "^7.1.7",
|
|
83
|
+
"eslint": "^9.39.4",
|
|
83
84
|
"eslint-plugin-github": "^6.0.0",
|
|
84
|
-
"glob": "^11.0
|
|
85
|
-
"markdownlint-cli2": "^0.
|
|
86
|
-
"mocha": "^11.7.
|
|
87
|
-
"playwright": "^1.
|
|
88
|
-
"postcss": "^8.5.
|
|
85
|
+
"glob": "^11.1.0",
|
|
86
|
+
"markdownlint-cli2": "^0.22.0",
|
|
87
|
+
"mocha": "^11.7.5",
|
|
88
|
+
"playwright": "^1.59.1",
|
|
89
|
+
"postcss": "^8.5.10",
|
|
89
90
|
"postcss-cli": "^11.0.1",
|
|
90
91
|
"postcss-import": "^16.1.1",
|
|
91
92
|
"postcss-mixins": "^12.1.2",
|
|
92
|
-
"postcss-preset-env": "^
|
|
93
|
-
"prettier": "^3.
|
|
94
|
-
"rollup": "^2.
|
|
93
|
+
"postcss-preset-env": "^11.2.1",
|
|
94
|
+
"prettier": "^3.8.3",
|
|
95
|
+
"rollup": "^2.80.0",
|
|
95
96
|
"rollup-plugin-terser": "^7.0.2",
|
|
96
97
|
"stylelint-actions-formatters": "^16.3.1",
|
|
97
98
|
"tslib": "^2.8.1",
|
|
98
99
|
"typescript": "^5.9.3",
|
|
99
|
-
"vite": "^
|
|
100
|
-
"vite-plugin-ruby": "^5.
|
|
100
|
+
"vite": "^8.0.9",
|
|
101
|
+
"vite-plugin-ruby": "^5.2.1"
|
|
101
102
|
},
|
|
102
103
|
"prettier": "@github/prettier-config",
|
|
103
104
|
"browserslist": "extends @github/browserslist-config"
|
package/static/arguments.json
CHANGED
|
@@ -464,6 +464,12 @@
|
|
|
464
464
|
"default": "N/A",
|
|
465
465
|
"description": "One of `:inside_bottom`, `:inside_center`, `:inside_left`, `:inside_right`, `:inside_top`, `:outside_bottom`, `:outside_left`, `:outside_right`, or `:outside_top`."
|
|
466
466
|
},
|
|
467
|
+
{
|
|
468
|
+
"name": "anchor_when_narrow",
|
|
469
|
+
"type": "Symbol",
|
|
470
|
+
"default": "N/A",
|
|
471
|
+
"description": "One of `:bottom`, `:fullscreen`, `:inherit`, `:left`, or `:right`."
|
|
472
|
+
},
|
|
467
473
|
{
|
|
468
474
|
"name": "menu_id",
|
|
469
475
|
"type": "String",
|
|
@@ -540,6 +546,12 @@
|
|
|
540
546
|
"default": "`:outside_bottom`",
|
|
541
547
|
"description": "One of `:inside_bottom`, `:inside_center`, `:inside_left`, `:inside_right`, `:inside_top`, `:outside_bottom`, `:outside_left`, `:outside_right`, or `:outside_top`."
|
|
542
548
|
},
|
|
549
|
+
{
|
|
550
|
+
"name": "anchor_when_narrow",
|
|
551
|
+
"type": "Symbol",
|
|
552
|
+
"default": "`:inherit`",
|
|
553
|
+
"description": "One of `:bottom`, `:fullscreen`, `:inherit`, `:left`, or `:right`.."
|
|
554
|
+
},
|
|
543
555
|
{
|
|
544
556
|
"name": "dynamic_label",
|
|
545
557
|
"type": "Boolean",
|
|
@@ -586,6 +598,12 @@
|
|
|
586
598
|
"default": "`:outside_right`",
|
|
587
599
|
"description": "One of `:inside_bottom`, `:inside_center`, `:inside_left`, `:inside_right`, `:inside_top`, `:outside_bottom`, `:outside_left`, `:outside_right`, or `:outside_top`."
|
|
588
600
|
},
|
|
601
|
+
{
|
|
602
|
+
"name": "anchor_when_narrow",
|
|
603
|
+
"type": "Symbol",
|
|
604
|
+
"default": "`:inherit`",
|
|
605
|
+
"description": "One of `:bottom`, `:fullscreen`, `:inherit`, `:left`, or `:right`.."
|
|
606
|
+
},
|
|
589
607
|
{
|
|
590
608
|
"name": "overlay_arguments",
|
|
591
609
|
"type": "Hash",
|
|
@@ -2009,6 +2027,12 @@
|
|
|
2009
2027
|
"default": "`:normal`",
|
|
2010
2028
|
"description": "The anchor offset to give the Overlay. One of `:normal` or `:spacious`."
|
|
2011
2029
|
},
|
|
2030
|
+
{
|
|
2031
|
+
"name": "anchor_when_narrow",
|
|
2032
|
+
"type": "Symbol",
|
|
2033
|
+
"default": "`:inherit`",
|
|
2034
|
+
"description": "The position of the Overlay when in a narrow viewport. One of `:bottom`, `:fullscreen`, `:inherit`, `:left`, or `:right`."
|
|
2035
|
+
},
|
|
2012
2036
|
{
|
|
2013
2037
|
"name": "allow_out_of_bounds",
|
|
2014
2038
|
"type": "Boolean",
|
|
@@ -2607,13 +2631,7 @@
|
|
|
2607
2631
|
"name": "form_arguments",
|
|
2608
2632
|
"type": "Hash",
|
|
2609
2633
|
"default": "`{}`",
|
|
2610
|
-
"description": "Form arguments. Supported for
|
|
2611
|
-
},
|
|
2612
|
-
{
|
|
2613
|
-
"name": "use_experimental_non_local_form",
|
|
2614
|
-
"type": "Boolean",
|
|
2615
|
-
"default": "`false`",
|
|
2616
|
-
"description": "A feature flag used to slowly roll out moving the input field (generated from form arguments) to the top of the SelectPanel HTML thus allowing remote fetching to have default form values. At this time, support is only available for the :single select variant. See: https://github.com/github/primer/issues/4923."
|
|
2634
|
+
"description": "Form arguments. Supported for all fetch strategies."
|
|
2617
2635
|
},
|
|
2618
2636
|
{
|
|
2619
2637
|
"name": "show_filter",
|
|
@@ -2727,7 +2745,7 @@
|
|
|
2727
2745
|
"name": "gap",
|
|
2728
2746
|
"type": "Symbol",
|
|
2729
2747
|
"default": "`GapArg::DEFAULT`",
|
|
2730
|
-
"description": "Specify the gap between children elements in the stack. One of `nil`, `:condensed`, `:normal`, or `:spacious`."
|
|
2748
|
+
"description": "Specify the gap between children elements in the stack. One of `nil`, `:condensed`, `:none`, `:normal`, or `:spacious`."
|
|
2731
2749
|
},
|
|
2732
2750
|
{
|
|
2733
2751
|
"name": "direction",
|
|
@@ -2957,6 +2975,12 @@
|
|
|
2957
2975
|
"default": "N/A",
|
|
2958
2976
|
"description": "When set to `true`, the field will take up all the horizontal space allowed by its container. Defaults to `true`."
|
|
2959
2977
|
},
|
|
2978
|
+
{
|
|
2979
|
+
"name": "character_limit",
|
|
2980
|
+
"type": "Number",
|
|
2981
|
+
"default": "N/A",
|
|
2982
|
+
"description": "Optional character limit for the input. If provided, a character counter will be displayed below the input."
|
|
2983
|
+
},
|
|
2960
2984
|
{
|
|
2961
2985
|
"name": "name",
|
|
2962
2986
|
"type": "String",
|
|
@@ -3093,6 +3117,12 @@
|
|
|
3093
3117
|
"default": "N/A",
|
|
3094
3118
|
"description": "When set to `true`, the field will take up all the horizontal space allowed by its container. Defaults to `true`."
|
|
3095
3119
|
},
|
|
3120
|
+
{
|
|
3121
|
+
"name": "character_limit",
|
|
3122
|
+
"type": "Number",
|
|
3123
|
+
"default": "N/A",
|
|
3124
|
+
"description": "Optional character limit for the input. If provided, a character counter will be displayed below the input."
|
|
3125
|
+
},
|
|
3096
3126
|
{
|
|
3097
3127
|
"name": "name",
|
|
3098
3128
|
"type": "String",
|
|
@@ -3330,6 +3360,12 @@
|
|
|
3330
3360
|
"type": "String",
|
|
3331
3361
|
"default": "`nil`",
|
|
3332
3362
|
"description": "Custom label to show when the switch is OFF. Defaults to (\"Off\"). Only customize this label if it makes the toggle’s state more meaningful in its specific context. For example, for a \"Show images\" setting, you might use \"Show\" when the switch is OFF."
|
|
3363
|
+
},
|
|
3364
|
+
{
|
|
3365
|
+
"name": "button_type",
|
|
3366
|
+
"type": "Symbol",
|
|
3367
|
+
"default": "`nil`",
|
|
3368
|
+
"description": "The type attribute for the underlying button element. If `nil`, the button will not have a type attribute, which means it will default to \"submit\" if it's inside a form and \"button\" otherwise."
|
|
3333
3369
|
}
|
|
3334
3370
|
]
|
|
3335
3371
|
},
|
|
@@ -3997,7 +4033,14 @@
|
|
|
3997
4033
|
"short_name": "AutoCompleteNoResultItem",
|
|
3998
4034
|
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/beta/auto_complete/no_result_item.rb",
|
|
3999
4035
|
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/beta/auto_complete/no_result_item/default/",
|
|
4000
|
-
"parameters": [
|
|
4036
|
+
"parameters": [
|
|
4037
|
+
{
|
|
4038
|
+
"name": "system_arguments",
|
|
4039
|
+
"type": "Hash",
|
|
4040
|
+
"default": "N/A",
|
|
4041
|
+
"description": "[System arguments](/system-arguments)"
|
|
4042
|
+
}
|
|
4043
|
+
]
|
|
4001
4044
|
},
|
|
4002
4045
|
{
|
|
4003
4046
|
"component": "Avatar",
|
|
@@ -4037,6 +4080,12 @@
|
|
|
4037
4080
|
"default": "`nil`",
|
|
4038
4081
|
"description": "The URL to link to. If used, component will be wrapped by an `<a>` tag."
|
|
4039
4082
|
},
|
|
4083
|
+
{
|
|
4084
|
+
"name": "tooltip",
|
|
4085
|
+
"type": "String",
|
|
4086
|
+
"default": "`nil`",
|
|
4087
|
+
"description": "Tooltip text to display on hover when href is provided."
|
|
4088
|
+
},
|
|
4040
4089
|
{
|
|
4041
4090
|
"name": "system_arguments",
|
|
4042
4091
|
"type": "Hash",
|
|
@@ -4071,6 +4120,12 @@
|
|
|
4071
4120
|
"default": "`false`",
|
|
4072
4121
|
"description": "Whether to add a tooltip to the stack or not."
|
|
4073
4122
|
},
|
|
4123
|
+
{
|
|
4124
|
+
"name": "disable_expand",
|
|
4125
|
+
"type": "Boolean",
|
|
4126
|
+
"default": "`false`",
|
|
4127
|
+
"description": "Whether to disable the expand behavior on hover. If true, avatars will not expand."
|
|
4128
|
+
},
|
|
4074
4129
|
{
|
|
4075
4130
|
"name": "body_arguments",
|
|
4076
4131
|
"type": "Hash",
|
|
@@ -5108,6 +5163,12 @@
|
|
|
5108
5163
|
"default": "`TIMEZONENAME_DEFAULT`",
|
|
5109
5164
|
"description": "What format the time zone should take. One of `nil`, `:long`, `:long_generic`, `:long_offset`, `:short`, `:short_generic`, or `:short_offset`."
|
|
5110
5165
|
},
|
|
5166
|
+
{
|
|
5167
|
+
"name": "time_zone",
|
|
5168
|
+
"type": "String",
|
|
5169
|
+
"default": "`nil`",
|
|
5170
|
+
"description": "The IANA time zone identifier to use for formatting (e.g., \"America/New_York\")."
|
|
5171
|
+
},
|
|
5111
5172
|
{
|
|
5112
5173
|
"name": "threshold",
|
|
5113
5174
|
"type": "String",
|
|
@@ -5711,6 +5772,67 @@
|
|
|
5711
5772
|
}
|
|
5712
5773
|
]
|
|
5713
5774
|
},
|
|
5775
|
+
{
|
|
5776
|
+
"component": "OpenProject::AvatarStack",
|
|
5777
|
+
"status": "open_project",
|
|
5778
|
+
"a11y_reviewed": false,
|
|
5779
|
+
"short_name": "OpenProjectAvatarStack",
|
|
5780
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/avatar_stack.rb",
|
|
5781
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/avatar_stack/default/",
|
|
5782
|
+
"parameters": []
|
|
5783
|
+
},
|
|
5784
|
+
{
|
|
5785
|
+
"component": "OpenProject::AvatarWithFallback",
|
|
5786
|
+
"status": "open_project",
|
|
5787
|
+
"a11y_reviewed": false,
|
|
5788
|
+
"short_name": "OpenProjectAvatarWithFallback",
|
|
5789
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/avatar_with_fallback.rb",
|
|
5790
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/avatar_with_fallback/default/",
|
|
5791
|
+
"parameters": [
|
|
5792
|
+
{
|
|
5793
|
+
"name": "src",
|
|
5794
|
+
"type": "String",
|
|
5795
|
+
"default": "`nil`",
|
|
5796
|
+
"description": "The source URL of the avatar image. When provided, JavaScript will test-load it in the background and swap to it on success. When nil or blank, only the fallback SVG is displayed."
|
|
5797
|
+
},
|
|
5798
|
+
{
|
|
5799
|
+
"name": "alt",
|
|
5800
|
+
"type": "String",
|
|
5801
|
+
"default": "`nil`",
|
|
5802
|
+
"description": "Alt text for the avatar. Used for accessibility and to generate initials for the fallback SVG."
|
|
5803
|
+
},
|
|
5804
|
+
{
|
|
5805
|
+
"name": "size",
|
|
5806
|
+
"type": "Integer",
|
|
5807
|
+
"default": "`20`",
|
|
5808
|
+
"description": "One of `16`, `20`, `24`, `32`, `40`, `48`, `64`, or `80`."
|
|
5809
|
+
},
|
|
5810
|
+
{
|
|
5811
|
+
"name": "shape",
|
|
5812
|
+
"type": "Symbol",
|
|
5813
|
+
"default": "`:circle`",
|
|
5814
|
+
"description": "Shape of the avatar. One of `:circle` or `:square`."
|
|
5815
|
+
},
|
|
5816
|
+
{
|
|
5817
|
+
"name": "href",
|
|
5818
|
+
"type": "String",
|
|
5819
|
+
"default": "`nil`",
|
|
5820
|
+
"description": "The URL to link to. If used, component will be wrapped by an `<a>` tag."
|
|
5821
|
+
},
|
|
5822
|
+
{
|
|
5823
|
+
"name": "unique_id",
|
|
5824
|
+
"type": "String, Integer",
|
|
5825
|
+
"default": "`nil`",
|
|
5826
|
+
"description": "Unique identifier for generating consistent avatar colors across renders."
|
|
5827
|
+
},
|
|
5828
|
+
{
|
|
5829
|
+
"name": "system_arguments",
|
|
5830
|
+
"type": "Hash",
|
|
5831
|
+
"default": "N/A",
|
|
5832
|
+
"description": "[System arguments](/system-arguments)"
|
|
5833
|
+
}
|
|
5834
|
+
]
|
|
5835
|
+
},
|
|
5714
5836
|
{
|
|
5715
5837
|
"component": "OpenProject::BorderBox::CollapsibleHeader",
|
|
5716
5838
|
"status": "open_project",
|
|
@@ -5725,12 +5847,30 @@
|
|
|
5725
5847
|
"default": "`self.class.generate_id`",
|
|
5726
5848
|
"description": "The unique ID of the collapsible header."
|
|
5727
5849
|
},
|
|
5850
|
+
{
|
|
5851
|
+
"name": "box",
|
|
5852
|
+
"type": "Primer::Beta::BorderBox",
|
|
5853
|
+
"default": "`nil`",
|
|
5854
|
+
"description": "Deprecated. Previously used to reference the parent BorderBox."
|
|
5855
|
+
},
|
|
5728
5856
|
{
|
|
5729
5857
|
"name": "collapsed",
|
|
5730
5858
|
"type": "Boolean",
|
|
5731
5859
|
"default": "`false`",
|
|
5732
5860
|
"description": "Whether the header is collapsed on initial render."
|
|
5733
5861
|
},
|
|
5862
|
+
{
|
|
5863
|
+
"name": "collapsible_id",
|
|
5864
|
+
"type": "String",
|
|
5865
|
+
"default": "`nil`",
|
|
5866
|
+
"description": "The id or ids of the elements that will be collapsed. This should include the BorderBox's list, body and footer. This will be required in future versions."
|
|
5867
|
+
},
|
|
5868
|
+
{
|
|
5869
|
+
"name": "multi_line",
|
|
5870
|
+
"type": "Boolean",
|
|
5871
|
+
"default": "`true`",
|
|
5872
|
+
"description": "Whether the description is on its own line and can wrap across multiple lines."
|
|
5873
|
+
},
|
|
5734
5874
|
{
|
|
5735
5875
|
"name": "system_arguments",
|
|
5736
5876
|
"type": "Hash",
|
|
@@ -5896,6 +6036,18 @@
|
|
|
5896
6036
|
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/drag_handle.rb",
|
|
5897
6037
|
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/drag_handle/default/",
|
|
5898
6038
|
"parameters": [
|
|
6039
|
+
{
|
|
6040
|
+
"name": "size",
|
|
6041
|
+
"type": "Symbol",
|
|
6042
|
+
"default": "`:small`",
|
|
6043
|
+
"description": "One of `:medium`, `:small`, or `:xsmall`."
|
|
6044
|
+
},
|
|
6045
|
+
{
|
|
6046
|
+
"name": "label",
|
|
6047
|
+
"type": "String",
|
|
6048
|
+
"default": "`I18n.t(\"drag_handle.button_drag\")`",
|
|
6049
|
+
"description": "String that can be read by assistive technology. A label should be short and concise. See the accessibility section for more information."
|
|
6050
|
+
},
|
|
5899
6051
|
{
|
|
5900
6052
|
"name": "system_arguments",
|
|
5901
6053
|
"type": "Hash",
|
|
@@ -5954,6 +6106,43 @@
|
|
|
5954
6106
|
}
|
|
5955
6107
|
]
|
|
5956
6108
|
},
|
|
6109
|
+
{
|
|
6110
|
+
"component": "OpenProject::Fieldset",
|
|
6111
|
+
"status": "open_project",
|
|
6112
|
+
"a11y_reviewed": false,
|
|
6113
|
+
"short_name": "OpenProjectFieldset",
|
|
6114
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/fieldset.rb",
|
|
6115
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/fieldset/default/",
|
|
6116
|
+
"parameters": [
|
|
6117
|
+
{
|
|
6118
|
+
"name": "legend_text",
|
|
6119
|
+
"type": "String",
|
|
6120
|
+
"default": "`nil`",
|
|
6121
|
+
"description": "A legend should be short and concise. The String will also be read by assistive technology."
|
|
6122
|
+
},
|
|
6123
|
+
{
|
|
6124
|
+
"name": "visually_hide_legend",
|
|
6125
|
+
"type": "Boolean",
|
|
6126
|
+
"default": "`false`",
|
|
6127
|
+
"description": "Controls if the legend is visible. If `true`, screen reader only text will be added."
|
|
6128
|
+
},
|
|
6129
|
+
{
|
|
6130
|
+
"name": "system_arguments",
|
|
6131
|
+
"type": "Hash",
|
|
6132
|
+
"default": "N/A",
|
|
6133
|
+
"description": "[System arguments](/system-arguments)"
|
|
6134
|
+
}
|
|
6135
|
+
]
|
|
6136
|
+
},
|
|
6137
|
+
{
|
|
6138
|
+
"component": "OpenProject::Fieldset::Legend",
|
|
6139
|
+
"status": "open_project",
|
|
6140
|
+
"a11y_reviewed": false,
|
|
6141
|
+
"short_name": "OpenProjectFieldsetLegend",
|
|
6142
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/fieldset/legend_component.rb",
|
|
6143
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/fieldset/legend/default/",
|
|
6144
|
+
"parameters": []
|
|
6145
|
+
},
|
|
5957
6146
|
{
|
|
5958
6147
|
"component": "OpenProject::FilterableTreeView",
|
|
5959
6148
|
"status": "alpha",
|
|
@@ -6116,6 +6305,34 @@
|
|
|
6116
6305
|
}
|
|
6117
6306
|
]
|
|
6118
6307
|
},
|
|
6308
|
+
{
|
|
6309
|
+
"component": "OpenProject::InlineMessage",
|
|
6310
|
+
"status": "open_project",
|
|
6311
|
+
"a11y_reviewed": false,
|
|
6312
|
+
"short_name": "OpenProjectInlineMessage",
|
|
6313
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/inline_message.rb",
|
|
6314
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/inline_message/default/",
|
|
6315
|
+
"parameters": [
|
|
6316
|
+
{
|
|
6317
|
+
"name": "scheme",
|
|
6318
|
+
"type": "Symbol",
|
|
6319
|
+
"default": "N/A",
|
|
6320
|
+
"description": "One of `:critical`, `:success`, `:unavailable`, or `:warning`."
|
|
6321
|
+
},
|
|
6322
|
+
{
|
|
6323
|
+
"name": "size",
|
|
6324
|
+
"type": "Symbol",
|
|
6325
|
+
"default": "`:medium`",
|
|
6326
|
+
"description": "One of `:medium` or `:small`."
|
|
6327
|
+
},
|
|
6328
|
+
{
|
|
6329
|
+
"name": "system_arguments",
|
|
6330
|
+
"type": "Hash",
|
|
6331
|
+
"default": "N/A",
|
|
6332
|
+
"description": "[System arguments](/system-arguments)"
|
|
6333
|
+
}
|
|
6334
|
+
]
|
|
6335
|
+
},
|
|
6119
6336
|
{
|
|
6120
6337
|
"component": "OpenProject::InputGroup",
|
|
6121
6338
|
"status": "open_project",
|
|
@@ -6214,6 +6431,15 @@
|
|
|
6214
6431
|
}
|
|
6215
6432
|
]
|
|
6216
6433
|
},
|
|
6434
|
+
{
|
|
6435
|
+
"component": "OpenProject::Pagination",
|
|
6436
|
+
"status": "open_project",
|
|
6437
|
+
"a11y_reviewed": false,
|
|
6438
|
+
"short_name": "OpenProjectPagination",
|
|
6439
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/pagination.rb",
|
|
6440
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/pagination/default/",
|
|
6441
|
+
"parameters": []
|
|
6442
|
+
},
|
|
6217
6443
|
{
|
|
6218
6444
|
"component": "OpenProject::SidePanel",
|
|
6219
6445
|
"status": "open_project",
|
package/static/audited_at.json
CHANGED
|
@@ -139,6 +139,8 @@
|
|
|
139
139
|
"Primer::IconButton": "",
|
|
140
140
|
"Primer::LayoutComponent": "",
|
|
141
141
|
"Primer::Navigation::TabComponent": "",
|
|
142
|
+
"Primer::OpenProject::AvatarStack": "",
|
|
143
|
+
"Primer::OpenProject::AvatarWithFallback": "",
|
|
142
144
|
"Primer::OpenProject::BorderBox::CollapsibleHeader": "",
|
|
143
145
|
"Primer::OpenProject::BorderGrid": "",
|
|
144
146
|
"Primer::OpenProject::BorderGrid::Cell": "",
|
|
@@ -149,17 +151,21 @@
|
|
|
149
151
|
"Primer::OpenProject::DragHandle": "",
|
|
150
152
|
"Primer::OpenProject::FeedbackDialog": "",
|
|
151
153
|
"Primer::OpenProject::FeedbackMessage": "",
|
|
154
|
+
"Primer::OpenProject::Fieldset": "",
|
|
155
|
+
"Primer::OpenProject::Fieldset::LegendComponent": "",
|
|
152
156
|
"Primer::OpenProject::FilterableTreeView": "",
|
|
153
157
|
"Primer::OpenProject::FilterableTreeView::SubTree": "",
|
|
154
158
|
"Primer::OpenProject::FlexLayout": "",
|
|
155
159
|
"Primer::OpenProject::GridLayout": "",
|
|
156
160
|
"Primer::OpenProject::GridLayout::Area": "",
|
|
157
161
|
"Primer::OpenProject::Heading": "",
|
|
162
|
+
"Primer::OpenProject::InlineMessage": "",
|
|
158
163
|
"Primer::OpenProject::InputGroup": "",
|
|
159
164
|
"Primer::OpenProject::PageHeader": "",
|
|
160
165
|
"Primer::OpenProject::PageHeader::Dialog": "",
|
|
161
166
|
"Primer::OpenProject::PageHeader::Menu": "",
|
|
162
167
|
"Primer::OpenProject::PageHeader::Title": "",
|
|
168
|
+
"Primer::OpenProject::Pagination": "",
|
|
163
169
|
"Primer::OpenProject::SidePanel": "",
|
|
164
170
|
"Primer::OpenProject::SidePanel::Section": "",
|
|
165
171
|
"Primer::OpenProject::SubHeader": "",
|
package/static/classes.json
CHANGED
|
@@ -102,7 +102,8 @@
|
|
|
102
102
|
"Primer::Beta::AvatarStack"
|
|
103
103
|
],
|
|
104
104
|
"AvatarStack-body": [
|
|
105
|
-
"Primer::Beta::AvatarStack"
|
|
105
|
+
"Primer::Beta::AvatarStack",
|
|
106
|
+
"Primer::OpenProject::AvatarStack"
|
|
106
107
|
],
|
|
107
108
|
"Banner": [
|
|
108
109
|
"Primer::Alpha::Banner"
|
|
@@ -249,7 +250,16 @@
|
|
|
249
250
|
"CollapsibleHeader": [
|
|
250
251
|
"Primer::OpenProject::BorderBox::CollapsibleHeader"
|
|
251
252
|
],
|
|
252
|
-
"CollapsibleHeader--
|
|
253
|
+
"CollapsibleHeader--multi-line": [
|
|
254
|
+
"Primer::OpenProject::BorderBox::CollapsibleHeader"
|
|
255
|
+
],
|
|
256
|
+
"CollapsibleHeader-description": [
|
|
257
|
+
"Primer::OpenProject::BorderBox::CollapsibleHeader"
|
|
258
|
+
],
|
|
259
|
+
"CollapsibleHeader-title-line": [
|
|
260
|
+
"Primer::OpenProject::BorderBox::CollapsibleHeader"
|
|
261
|
+
],
|
|
262
|
+
"CollapsibleHeader-triggerArea": [
|
|
253
263
|
"Primer::OpenProject::BorderBox::CollapsibleHeader"
|
|
254
264
|
],
|
|
255
265
|
"CollapsibleSection--triggerArea": [
|
|
@@ -357,6 +367,12 @@
|
|
|
357
367
|
"FormControl-warning": [
|
|
358
368
|
"Primer::Alpha::TextField"
|
|
359
369
|
],
|
|
370
|
+
"InlineMessage": [
|
|
371
|
+
"Primer::OpenProject::InlineMessage"
|
|
372
|
+
],
|
|
373
|
+
"InlineMessageIcon": [
|
|
374
|
+
"Primer::OpenProject::InlineMessage"
|
|
375
|
+
],
|
|
360
376
|
"InputGroup": [
|
|
361
377
|
"Primer::OpenProject::InputGroup"
|
|
362
378
|
],
|
|
@@ -457,6 +473,9 @@
|
|
|
457
473
|
"Overlay--full-whenNarrow": [
|
|
458
474
|
"Primer::Alpha::Dialog"
|
|
459
475
|
],
|
|
476
|
+
"Overlay--fullscreen-whenNarrow": [
|
|
477
|
+
"Primer::Alpha::Dialog"
|
|
478
|
+
],
|
|
460
479
|
"Overlay--hidden": [
|
|
461
480
|
"Primer::Alpha::Dialog"
|
|
462
481
|
],
|
|
@@ -484,9 +503,15 @@
|
|
|
484
503
|
"Overlay-headerFilter": [
|
|
485
504
|
"Primer::Alpha::Dialog"
|
|
486
505
|
],
|
|
506
|
+
"Page": [
|
|
507
|
+
"Primer::OpenProject::Pagination"
|
|
508
|
+
],
|
|
487
509
|
"PageHeader": [
|
|
488
510
|
"Primer::OpenProject::PageHeader"
|
|
489
511
|
],
|
|
512
|
+
"PageHeader--noBreadcrumb": [
|
|
513
|
+
"Primer::OpenProject::PageHeader"
|
|
514
|
+
],
|
|
490
515
|
"PageHeader--withTabNav": [
|
|
491
516
|
"Primer::OpenProject::PageHeader"
|
|
492
517
|
],
|
|
@@ -523,6 +548,9 @@
|
|
|
523
548
|
"PageHeader-titleBar": [
|
|
524
549
|
"Primer::OpenProject::PageHeader"
|
|
525
550
|
],
|
|
551
|
+
"PaginationContainer": [
|
|
552
|
+
"Primer::OpenProject::Pagination"
|
|
553
|
+
],
|
|
526
554
|
"Popover": [
|
|
527
555
|
"Primer::Beta::Popover"
|
|
528
556
|
],
|