openproject-primer_view_components 0.57.0 → 0.59.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/app/assets/javascripts/components/primer/open_project/border_box/collapsible_header.d.ts +18 -0
- data/app/assets/javascripts/components/primer/primer.d.ts +1 -0
- data/app/assets/javascripts/primer_view_components.js +1 -1
- data/app/assets/javascripts/primer_view_components.js.map +1 -1
- data/app/assets/styles/primer_view_components.css +1 -1
- data/app/assets/styles/primer_view_components.css.map +1 -1
- data/app/components/primer/alpha/select_panel.html.erb +5 -0
- data/app/components/primer/alpha/select_panel.rb +23 -24
- data/app/components/primer/alpha/select_panel_element.js +6 -4
- data/app/components/primer/alpha/select_panel_element.ts +8 -4
- data/app/components/primer/open_project/border_box/collapsible_header.css +1 -0
- data/app/components/primer/open_project/border_box/collapsible_header.css.json +10 -0
- data/app/components/primer/open_project/border_box/collapsible_header.css.map +1 -0
- data/app/components/primer/open_project/border_box/collapsible_header.d.ts +18 -0
- data/app/components/primer/open_project/border_box/collapsible_header.html.erb +17 -0
- data/app/components/primer/open_project/border_box/collapsible_header.js +70 -0
- data/app/components/primer/open_project/border_box/collapsible_header.pcss +19 -0
- data/app/components/primer/open_project/border_box/collapsible_header.rb +53 -0
- data/app/components/primer/open_project/border_box/collapsible_header.ts +72 -0
- data/app/components/primer/primer.d.ts +1 -0
- data/app/components/primer/primer.js +1 -0
- data/app/components/primer/primer.pcss +1 -0
- data/app/components/primer/primer.ts +1 -0
- data/lib/primer/view_components/version.rb +1 -1
- data/previews/primer/alpha/select_panel_preview/remote_fetch_form.html.erb +34 -0
- data/previews/primer/alpha/select_panel_preview.rb +9 -0
- data/previews/primer/open_project/border_box/collapsible_header_preview/playground.html.erb +14 -0
- data/previews/primer/open_project/border_box/collapsible_header_preview.rb +88 -0
- data/static/arguments.json +18 -80
- data/static/audited_at.json +1 -0
- data/static/classes.json +5 -1
- data/static/constants.json +3 -0
- data/static/info_arch.json +114 -81
- data/static/previews.json +86 -0
- data/static/statuses.json +1 -0
- metadata +17 -4
data/static/arguments.json
CHANGED
@@ -2345,88 +2345,10 @@
|
|
2345
2345
|
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/select_panel/default/",
|
2346
2346
|
"parameters": [
|
2347
2347
|
{
|
2348
|
-
"name": "
|
2349
|
-
"type": "String",
|
2350
|
-
"default": "`nil`",
|
2351
|
-
"description": "The URL to fetch search results from."
|
2352
|
-
},
|
2353
|
-
{
|
2354
|
-
"name": "title",
|
2355
|
-
"type": "String",
|
2356
|
-
"default": "`\"Menu\"`",
|
2357
|
-
"description": "The title that appears at the top of the panel."
|
2358
|
-
},
|
2359
|
-
{
|
2360
|
-
"name": "id",
|
2361
|
-
"type": "String",
|
2362
|
-
"default": "`self.class.generate_id`",
|
2363
|
-
"description": "The unique ID of the panel."
|
2364
|
-
},
|
2365
|
-
{
|
2366
|
-
"name": "size",
|
2367
|
-
"type": "Symbol",
|
2368
|
-
"default": "`:small`",
|
2369
|
-
"description": "The size of the panel. One of `:auto`, `:large`, `:medium`, `:medium_portrait`, `:small`, or `:xlarge`."
|
2370
|
-
},
|
2371
|
-
{
|
2372
|
-
"name": "select_variant",
|
2373
|
-
"type": "Symbol",
|
2374
|
-
"default": "`:single`",
|
2375
|
-
"description": "One of `:multiple`, `:none`, or `:single`."
|
2376
|
-
},
|
2377
|
-
{
|
2378
|
-
"name": "fetch_strategy",
|
2379
|
-
"type": "Symbol",
|
2380
|
-
"default": "`:remote`",
|
2381
|
-
"description": "One of `:eventually_local`, `:local`, or `:remote`."
|
2382
|
-
},
|
2383
|
-
{
|
2384
|
-
"name": "no_results_label",
|
2385
|
-
"type": "String",
|
2386
|
-
"default": "`\"No results found\"`",
|
2387
|
-
"description": "The label to display when no results are found."
|
2388
|
-
},
|
2389
|
-
{
|
2390
|
-
"name": "preload",
|
2391
|
-
"type": "Boolean",
|
2392
|
-
"default": "`false`",
|
2393
|
-
"description": "Whether to preload search results when the page loads. If this option is false, results are loaded when the panel is opened."
|
2394
|
-
},
|
2395
|
-
{
|
2396
|
-
"name": "dynamic_label",
|
2348
|
+
"name": "use_experimental_non_local_form",
|
2397
2349
|
"type": "Boolean",
|
2398
2350
|
"default": "`false`",
|
2399
|
-
"description": "
|
2400
|
-
},
|
2401
|
-
{
|
2402
|
-
"name": "dynamic_label_prefix",
|
2403
|
-
"type": "String",
|
2404
|
-
"default": "`nil`",
|
2405
|
-
"description": "If provided, the prefix is prepended to the dynamic label and displayed in the show button."
|
2406
|
-
},
|
2407
|
-
{
|
2408
|
-
"name": "dynamic_aria_label_prefix",
|
2409
|
-
"type": "String",
|
2410
|
-
"default": "`nil`",
|
2411
|
-
"description": "If provided, the prefix is prepended to the dynamic label and set as the value of the `aria-label` attribute on the show button."
|
2412
|
-
},
|
2413
|
-
{
|
2414
|
-
"name": "body_id",
|
2415
|
-
"type": "String",
|
2416
|
-
"default": "`nil`",
|
2417
|
-
"description": "The unique ID of the panel body. If not provided, the body ID will be set to the panel ID with a \"-body\" suffix."
|
2418
|
-
},
|
2419
|
-
{
|
2420
|
-
"name": "list_arguments",
|
2421
|
-
"type": "Hash",
|
2422
|
-
"default": "`{}`",
|
2423
|
-
"description": "Arguments to pass to the underlying [ActionList](/components/alpha/actionlist) component. Only has an effect for the local fetch strategy."
|
2424
|
-
},
|
2425
|
-
{
|
2426
|
-
"name": "form_arguments",
|
2427
|
-
"type": "Hash",
|
2428
|
-
"default": "`{}`",
|
2429
|
-
"description": "Form arguments to pass to the underlying [ActionList](/components/alpha/actionlist) component. Only has an effect for the local fetch strategy."
|
2351
|
+
"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."
|
2430
2352
|
},
|
2431
2353
|
{
|
2432
2354
|
"name": "show_filter",
|
@@ -5096,6 +5018,22 @@
|
|
5096
5018
|
}
|
5097
5019
|
]
|
5098
5020
|
},
|
5021
|
+
{
|
5022
|
+
"component": "OpenProject::BorderBox::CollapsibleHeader",
|
5023
|
+
"status": "open_project",
|
5024
|
+
"a11y_reviewed": false,
|
5025
|
+
"short_name": "OpenProjectBorderBoxCollapsibleHeader",
|
5026
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/border_box/collapsible_header.rb",
|
5027
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/border_box/collapsible_header/default/",
|
5028
|
+
"parameters": [
|
5029
|
+
{
|
5030
|
+
"name": "system_arguments",
|
5031
|
+
"type": "Hash",
|
5032
|
+
"default": "N/A",
|
5033
|
+
"description": "[System arguments](/system-arguments)"
|
5034
|
+
}
|
5035
|
+
]
|
5036
|
+
},
|
5099
5037
|
{
|
5100
5038
|
"component": "OpenProject::BorderGrid",
|
5101
5039
|
"status": "open_project",
|
data/static/audited_at.json
CHANGED
@@ -117,6 +117,7 @@
|
|
117
117
|
"Primer::IconButton": "",
|
118
118
|
"Primer::LayoutComponent": "",
|
119
119
|
"Primer::Navigation::TabComponent": "",
|
120
|
+
"Primer::OpenProject::BorderBox::CollapsibleHeader": "",
|
120
121
|
"Primer::OpenProject::BorderGrid": "",
|
121
122
|
"Primer::OpenProject::BorderGrid::Cell": "",
|
122
123
|
"Primer::OpenProject::DangerDialog": "",
|
data/static/classes.json
CHANGED
@@ -114,7 +114,8 @@
|
|
114
114
|
"Primer::OpenProject::BorderGrid"
|
115
115
|
],
|
116
116
|
"Box": [
|
117
|
-
"Primer::Beta::BorderBox"
|
117
|
+
"Primer::Beta::BorderBox",
|
118
|
+
"Primer::OpenProject::BorderBox::CollapsibleHeader"
|
118
119
|
],
|
119
120
|
"Box--blue": [
|
120
121
|
"Primer::Beta::BorderBox"
|
@@ -239,6 +240,9 @@
|
|
239
240
|
"ButtonGroup": [
|
240
241
|
"Primer::Beta::ButtonGroup"
|
241
242
|
],
|
243
|
+
"CollapsibleHeader": [
|
244
|
+
"Primer::OpenProject::BorderBox::CollapsibleHeader"
|
245
|
+
],
|
242
246
|
"Counter": [
|
243
247
|
"Primer::Beta::Counter"
|
244
248
|
],
|
data/static/constants.json
CHANGED
@@ -1562,6 +1562,9 @@
|
|
1562
1562
|
"Primer::Navigation::TabComponent": {
|
1563
1563
|
"GeneratedSlotMethods": "Primer::Navigation::TabComponent::GeneratedSlotMethods"
|
1564
1564
|
},
|
1565
|
+
"Primer::OpenProject::BorderBox::CollapsibleHeader": {
|
1566
|
+
"GeneratedSlotMethods": "Primer::OpenProject::BorderBox::CollapsibleHeader::GeneratedSlotMethods"
|
1567
|
+
},
|
1565
1568
|
"Primer::OpenProject::BorderGrid": {
|
1566
1569
|
"Cell": "Primer::OpenProject::BorderGrid::Cell",
|
1567
1570
|
"GeneratedSlotMethods": "Primer::OpenProject::BorderGrid::GeneratedSlotMethods"
|
data/static/info_arch.json
CHANGED
@@ -7438,7 +7438,7 @@
|
|
7438
7438
|
},
|
7439
7439
|
{
|
7440
7440
|
"fully_qualified_name": "Primer::Alpha::SelectPanel",
|
7441
|
-
"description": "Select panels allow for selecting from a large number of options and can be thought of as a more capable\nversion of the traditional HTML `<select>` element.\n\nSelect panels:\n\n1. feature an input field at the top that allows an end user to filter the list of results.\n1. can render their items statically or dynamically by fetching results from the server.\n1. allow selecting a single item or multiple items.\n1. permit leading visuals like Octicons, avatars, and custom SVGs.\n1. can be used as form inputs in Rails forms.\n\n## Static list items\n\nThe Rails `SelectPanel` component allows items to be provided statically or loaded dynamically from the\nserver. Providing items statically is done using a fetch strategy of `:local` in combination with the\n`item` slot:\n\n```erb\n<%= render(Primer::Alpha::SelectPanel.new(fetch_strategy: :local))) do |panel| %>\n <% panel.with_show_button { \"Select item\" } %>\n <% panel.with_item(label: \"Item 1\") %>\n <% panel.with_item(label: \"Item 2\") %>\n<% end %>\n```\n\n## Dynamic list items\n\nList items can also be fetched dynamically from the server and will require creating a Rails controller action\nto respond with the list of items in addition to rendering the `SelectPanel` instance. Render the instance as\nnormal, providing your desired [fetch strategy](#fetch-strategies):\n\n```erb\n<%= render(\n Primer::Alpha::SelectPanel.new(\n fetch_strategy: :remote,\n src: search_items_path # perhaps a Rails URL helper\n )\n) %>\n```\n\nDefine a controller action to serve the list of items. The `SelectPanel` component passes any filter text in\nthe `q=` URL parameter.\n\n```ruby\nclass SearchItemsController < ApplicationController\n def show\n # NOTE: params[:q] may be nil since there is no filter string available\n # when the panel is first opened\n @results = SomeModel.search(params[:q] || \"\")\n end\nend\n```\n\nResponses must be HTML fragments, eg. have a content type of `text/html+fragment`. This content type isn't\navailable by default in Rails, so you may have to register it eg. in an initializer:\n\n```ruby\nMime::Type.register(\"text/fragment+html\", :html_fragment)\n```\n\nRender a `Primer::Alpha::SelectPanel::ItemList` in the action's template, search_items/show.html_fragment.erb:\n\n```erb\n<%= render(Primer::Alpha::SelectPanel::ItemList.new) do |list| %>\n <% @results.each do |result| %>\n <% list.with_item(label: result.title) do |item| %>\n <% item.with_description(result.description) %>\n <% end %>\n <% end %>\n<% end %>\n```\n\n### Selection consistency\n\nThe `SelectPanel` component automatically \"remembers\" which items have been selected across item fetch requests,\nmeaning the controller that renders dynamic list items does not (and should not) remember these selections or\npersist them until the user has confirmed them, either by submitting the form or otherwise indicating completion.\nThe `SelectPanel` component does not include unconfirmed selection data in requests.\n\n## Fetch strategies\n\nThe list of items can be fetched from a remote URL, or provided as a static list, configured using the\n`fetch_strategy` attribute. Fetch strategies are summarized below.\n\n1. `:remote`: a query is made to the URL in the `src` attribute every time the input field changes.\n\n2. `:eventually_local`: a query is made to the URL in the `src` attribute when the panel is first opened. The\n results are \"remembered\" and filtered in-memory for all subsequent filter operations, i.e. when the input\n field changes.\n\n3. `:local`: the list of items is provided statically ahead of time and filtered in-memory. No requests are made\n to the server.\n\n## Customizing filter behavior\n\nIf the fetch strategy is `:remote`, then filtering is handled server-side. The server should render a\n`Primer::Alpha::SelectPanel::ItemList` (an alias of {{#link_to_component}}Primer::Alpha::ActionList{{/link_to_component}})\nin the response containing the filtered list of items. The component achieves remote fetching via the\n[remote-input-element](https://github.com/github/remote-input-element), which sends a request to the\nserver with the filter string in the `q=` parameter. Responses must be HTML fragments, eg. have a content\ntype of `text/html+fragment`.\n\n### Local filtering\n\nIf the fetch strategy is `:local` or `:eventually_local`, filtering is performed client-side. Filter behavior can\nbe customized in JavaScript by setting the `filterFn` attribute on the instance of `SelectPanelElement`, eg:\n\n```javascript\ndocument.querySelector(\"select-panel\").filterFn = (item: HTMLElement, query: string): boolean => {\n // return true if the item should be displayed, false otherwise\n}\n```\n\nThe element's default filter function uses the value of the `data-filter-string` attribute, falling back to the\nelement's `innerText` property. It performs a case-insensitive substring match against the filter string.\n\n### `SelectPanel`s as form inputs\n\n`SelectPanel`s can be used as form inputs. They behave very similarly to how HTML `<select>` boxes behave, and\nplay nicely with Rails' built-in form mechanisms. Pass arguments via the `form_arguments:` argument, including\nthe Rails form builder object and the name of the field. Each list item must also have a value specified in\n`content_arguments: { data: { value: } }`.\n\n```erb\n<% form_with(model: Address.new) do |f| %>\n <%= render(Primer::Alpha::SelectPanel.new(form_arguments: { builder: f, name: \"country\" })) do |menu| %>\n <% countries.each do |country|\n <% menu.with_item(label: country.name, content_arguments: { data: { value: country.code } }) %>\n <% end %>\n <% end %>\n<% end %>\n```\n\nThe value of the `data: { value: ... }` argument is sent to the server on submit, keyed using the name provided above\n(eg. `\"country\"`). If no value is provided for an item, the value of that item is the item's label. Here's the\ncorresponding `AddressesController` that might be written to handle the form above:\n\n```ruby\nclass AddressesController < ApplicationController\n def create\n puts \"You chose #{address_params[:country]} as your country\"\n end\n\n private\n\n def address_params\n params.require(:address).permit(:country)\n end\nend\n```\n\nIf items are provided dynamically, things become a bit more complicated. The `form_for` or `form_with` method call\nhappens in the view that renders the `SelectPanel`, which means the form builder object but isn't available in the\nview that renders the list items. In such a case, it can be useful to create an instance of the form builder maually:\n\n```erb\n<% builder = ActionView::Helpers::FormBuilder.new(\n \"address\", # the name of the model, used to wrap input names, eg 'address[country]'\n nil, # object (eg. the Address instance, which we can omit)\n self, # template\n {} # options\n) %>\n<%= render(Primer::Alpha::SelectPanel::ItemList.new(\n form_arguments: { builder: builder, name: \"country\" }\n)) do |list| %>\n <% countries.each do |country| %>\n <% menu.with_item(label: country.name, content_arguments: { data: { value: country.code } }) %>\n <% end %>\n<% end %>\n```\n\n### JavaScript API\n\n`SelectPanel`s render a `<select-panel>` custom element that exposes behavior to the client.\n\n#### Utility methods\n\n* `show()`: Manually open the panel. Under normal circumstances, a show button is used to show the panel, but this method exists to support unusual use-cases.\n* `hide()`: Manually hides (closes) the panel.\n\n#### Query methods\n\n* `getItemById(itemId: string): Element`: Returns the item's HTML `<li>` element. The return value can be passed as the `item` argument to the other methods listed below.\n* `isItemChecked(item: Element): boolean`: Returns `true` if the item is checked, `false` otherwise.\n* `isItemHidden(item: Element): boolean`: Returns `true` if the item is hidden, `false` otherwise.\n* `isItemDisabled(item: Element): boolean`: Returns `true` if the item is disabled, `false` otherwise.\n\nNOTE: Item IDs are special values provided by the user that are attached to `SelectPanel` list items as the `data-item-id`\nHTML attribute. Item IDs can be provided by passing an `item_id:` attribute when adding items to the panel, eg:\n\n```erb\n<%= render(Primer::Alpha::SelectPanel.new) do |panel| %>\n <% panel.with_item(item_id: \"my-id\") %>\n<% end %>\n```\n\nThe same is true when rendering `ItemList`s:\n\n```erb\n<%= render(Primer::Alpha::SelectPanel::ItemList.new) do |list| %>\n <% list.with_item(item_id: \"my-id\") %>\n<% end %>\n```\n\n#### State methods\n\n* `enableItem(item: Element)`: Enables the item, i.e. makes it clickable by the mouse and keyboard.\n* `disableItem(item: Element)`: Disables the item, i.e. makes it unclickable by the mouse and keyboard.\n* `checkItem(item: Element)`: Checks the item. Only has an effect in single- and multi-select modes.\n* `uncheckItem(item: Element)`: Unchecks the item. Only has an effect in multi-select mode, since items cannot be unchecked in single-select mode.\n\n#### Events\n\n|Name |Type |Bubbles |Cancelable |\n|:--------------------|:------------------------------------------|:-------|:----------|\n|`itemActivated` |`CustomEvent<ItemActivatedEvent>` |Yes |No |\n|`beforeItemActivated`|`CustomEvent<ItemActivatedEvent>` |Yes |Yes |\n|`dialog:open` |`CustomEvent<{dialog: HTMLDialogElement}>` |No |No |\n|`panelClosed` |`CustomEvent<{panel: SelectPanelElement}>` |Yes |No |\n\n_Item activation_\n\nThe `<select-panel>` element fires an `itemActivated` event whenever an item is activated (eg. clicked) via the mouse or keyboard.\n\n```typescript\ndocument.querySelector(\"select-panel\").addEventListener(\n \"itemActivated\",\n (event: CustomEvent<ItemActivatedEvent>) => {\n event.detail.item // Element: the <li> item that was activated\n event.detail.checked // boolean: whether or not the result of the activation checked the item\n }\n)\n```\n\nThe `beforeItemActivated` event fires before an item is activated. Canceling this event will prevent the item\nfrom being activated.\n\n```typescript\ndocument.querySelector(\"select-panel\").addEventListener(\n \"beforeItemActivated\",\n (event: CustomEvent<ItemActivatedEvent>) => {\n event.detail.item // Element: the <li> item that was activated\n event.detail.checked // boolean: whether or not the result of the activation checked the item\n event.preventDefault() // Cancel the event to prevent activation (eg. checking/unchecking)\n }\n)\n```",
|
7441
|
+
"description": "Select panels allow for selecting from a large number of options and can be thought of as a more capable\nversion of the traditional HTML `<select>` element.\n\nSelect panels:\n\n1. feature an input field at the top that allows an end user to filter the list of results.\n1. can render their items statically or dynamically by fetching results from the server.\n1. allow selecting a single item or multiple items.\n1. permit leading visuals like Octicons, avatars, and custom SVGs.\n1. can be used as form inputs in Rails forms.\n\n## Static list items\n\nThe Rails `SelectPanel` component allows items to be provided statically or loaded dynamically from the\nserver. Providing items statically is done using a fetch strategy of `:local` in combination with the\n`item` slot:\n\n```erb\n<%= render(Primer::Alpha::SelectPanel.new(fetch_strategy: :local))) do |panel| %>\n <% panel.with_show_button { \"Select item\" } %>\n <% panel.with_item(label: \"Item 1\") %>\n <% panel.with_item(label: \"Item 2\") %>\n<% end %>\n```\n\n## Dynamic list items\n\nList items can also be fetched dynamically from the server and will require creating a Rails controller action\nto respond with the list of items in addition to rendering the `SelectPanel` instance. Render the instance as\nnormal, providing your desired [fetch strategy](#fetch-strategies):\n\n```erb\n<%= render(\n Primer::Alpha::SelectPanel.new(\n fetch_strategy: :remote,\n src: search_items_path # perhaps a Rails URL helper\n )\n) %>\n```\n\nDefine a controller action to serve the list of items. The `SelectPanel` component passes any filter text in\nthe `q=` URL parameter.\n\n```ruby\nclass SearchItemsController < ApplicationController\n def show\n # NOTE: params[:q] may be nil since there is no filter string available\n # when the panel is first opened\n @results = SomeModel.search(params[:q] || \"\")\n end\nend\n```\n\nResponses must be HTML fragments, eg. have a content type of `text/html+fragment`. This content type isn't\navailable by default in Rails, so you may have to register it eg. in an initializer:\n\n```ruby\nMime::Type.register(\"text/fragment+html\", :html_fragment)\n```\n\nRender a `Primer::Alpha::SelectPanel::ItemList` in the action's template, search_items/show.html_fragment.erb:\n\n```erb\n<%= render(Primer::Alpha::SelectPanel::ItemList.new) do |list| %>\n <% @results.each do |result| %>\n <% list.with_item(label: result.title) do |item| %>\n <% item.with_description(result.description) %>\n <% end %>\n <% end %>\n<% end %>\n```\n\n### Selection consistency\n\nThe `SelectPanel` component automatically \"remembers\" which items have been selected across item fetch requests,\nmeaning the controller that renders dynamic list items does not (and should not) remember these selections or\npersist them until the user has confirmed them, either by submitting the form or otherwise indicating completion.\nThe `SelectPanel` component does not include unconfirmed selection data in requests.\n\n## Fetch strategies\n\nThe list of items can be fetched from a remote URL, or provided as a static list, configured using the\n`fetch_strategy` attribute. Fetch strategies are summarized below.\n\n1. `:remote`: a query is made to the URL in the `src` attribute every time the input field changes.\n\n2. `:eventually_local`: a query is made to the URL in the `src` attribute when the panel is first opened. The\n results are \"remembered\" and filtered in-memory for all subsequent filter operations, i.e. when the input\n field changes.\n\n3. `:local`: the list of items is provided statically ahead of time and filtered in-memory. No requests are made\n to the server.\n\n## Customizing filter behavior\n\nIf the fetch strategy is `:remote`, then filtering is handled server-side. The server should render a\n`Primer::Alpha::SelectPanel::ItemList` (an alias of {{#link_to_component}}Primer::Alpha::ActionList{{/link_to_component}})\nin the response containing the filtered list of items. The component achieves remote fetching via the\n[remote-input-element](https://github.com/github/remote-input-element), which sends a request to the\nserver with the filter string in the `q=` parameter. Responses must be HTML fragments, eg. have a content\ntype of `text/html+fragment`.\n\n### Local filtering\n\nIf the fetch strategy is `:local` or `:eventually_local`, filtering is performed client-side. Filter behavior can\nbe customized in JavaScript by setting the `filterFn` attribute on the instance of `SelectPanelElement`, eg:\n\n```javascript\ndocument.querySelector(\"select-panel\").filterFn = (item: HTMLElement, query: string): boolean => {\n // return true if the item should be displayed, false otherwise\n}\n```\n\nThe element's default filter function uses the value of the `data-filter-string` attribute, falling back to the\nelement's `innerText` property. It performs a case-insensitive substring match against the filter string.\n\n### `SelectPanel`s as form inputs\n\n`SelectPanel`s can be used as form inputs. They behave very similarly to how HTML `<select>` boxes behave, and\nplay nicely with Rails' built-in form mechanisms. Pass arguments via the `form_arguments:` argument, including\nthe Rails form builder object and the name of the field. Each list item must also have a value specified in\n`content_arguments: { data: { value: } }`.\n\n```erb\n<% form_with(model: Address.new) do |f| %>\n <%= render(Primer::Alpha::SelectPanel.new(form_arguments: { builder: f, name: \"country\" })) do |menu| %>\n <% countries.each do |country|\n <% menu.with_item(label: country.name, content_arguments: { data: { value: country.code } }) %>\n <% end %>\n <% end %>\n<% end %>\n```\n\nThe value of the `data: { value: ... }` argument is sent to the server on submit, keyed using the name provided above\n(eg. `\"country\"`). If no value is provided for an item, the value of that item is the item's label. Here's the\ncorresponding `AddressesController` that might be written to handle the form above:\n\n```ruby\nclass AddressesController < ApplicationController\n def create\n puts \"You chose #{address_params[:country]} as your country\"\n end\n\n private\n\n def address_params\n params.require(:address).permit(:country)\n end\nend\n```\n### JavaScript API\n\n`SelectPanel`s render a `<select-panel>` custom element that exposes behavior to the client.\n\n#### Utility methods\n\n* `show()`: Manually open the panel. Under normal circumstances, a show button is used to show the panel, but this method exists to support unusual use-cases.\n* `hide()`: Manually hides (closes) the panel.\n\n#### Query methods\n\n* `getItemById(itemId: string): Element`: Returns the item's HTML `<li>` element. The return value can be passed as the `item` argument to the other methods listed below.\n* `isItemChecked(item: Element): boolean`: Returns `true` if the item is checked, `false` otherwise.\n* `isItemHidden(item: Element): boolean`: Returns `true` if the item is hidden, `false` otherwise.\n* `isItemDisabled(item: Element): boolean`: Returns `true` if the item is disabled, `false` otherwise.\n\nNOTE: Item IDs are special values provided by the user that are attached to `SelectPanel` list items as the `data-item-id`\nHTML attribute. Item IDs can be provided by passing an `item_id:` attribute when adding items to the panel, eg:\n\n```erb\n<%= render(Primer::Alpha::SelectPanel.new) do |panel| %>\n <% panel.with_item(item_id: \"my-id\") %>\n<% end %>\n```\n\nThe same is true when rendering `ItemList`s:\n\n```erb\n<%= render(Primer::Alpha::SelectPanel::ItemList.new) do |list| %>\n <% list.with_item(item_id: \"my-id\") %>\n<% end %>\n```\n\n#### State methods\n\n* `enableItem(item: Element)`: Enables the item, i.e. makes it clickable by the mouse and keyboard.\n* `disableItem(item: Element)`: Disables the item, i.e. makes it unclickable by the mouse and keyboard.\n* `checkItem(item: Element)`: Checks the item. Only has an effect in single- and multi-select modes.\n* `uncheckItem(item: Element)`: Unchecks the item. Only has an effect in multi-select mode, since items cannot be unchecked in single-select mode.\n\n#### Events\n\n|Name |Type |Bubbles |Cancelable |\n|:--------------------|:------------------------------------------|:-------|:----------|\n|`itemActivated` |`CustomEvent<ItemActivatedEvent>` |Yes |No |\n|`beforeItemActivated`|`CustomEvent<ItemActivatedEvent>` |Yes |Yes |\n|`dialog:open` |`CustomEvent<{dialog: HTMLDialogElement}>` |No |No |\n|`panelClosed` |`CustomEvent<{panel: SelectPanelElement}>` |Yes |No |\n\n_Item activation_\n\nThe `<select-panel>` element fires an `itemActivated` event whenever an item is activated (eg. clicked) via the mouse or keyboard.\n\n```typescript\ndocument.querySelector(\"select-panel\").addEventListener(\n \"itemActivated\",\n (event: CustomEvent<ItemActivatedEvent>) => {\n event.detail.item // Element: the <li> item that was activated\n event.detail.checked // boolean: whether or not the result of the activation checked the item\n }\n)\n```\n\nThe `beforeItemActivated` event fires before an item is activated. Canceling this event will prevent the item\nfrom being activated.\n\n```typescript\ndocument.querySelector(\"select-panel\").addEventListener(\n \"beforeItemActivated\",\n (event: CustomEvent<ItemActivatedEvent>) => {\n event.detail.item // Element: the <li> item that was activated\n event.detail.checked // boolean: whether or not the result of the activation checked the item\n event.preventDefault() // Cancel the event to prevent activation (eg. checking/unchecking)\n }\n)\n```",
|
7442
7442
|
"accessibility_docs": null,
|
7443
7443
|
"is_form_component": false,
|
7444
7444
|
"is_published": true,
|
@@ -7451,88 +7451,10 @@
|
|
7451
7451
|
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/select_panel/default/",
|
7452
7452
|
"parameters": [
|
7453
7453
|
{
|
7454
|
-
"name": "
|
7455
|
-
"type": "String",
|
7456
|
-
"default": "`nil`",
|
7457
|
-
"description": "The URL to fetch search results from."
|
7458
|
-
},
|
7459
|
-
{
|
7460
|
-
"name": "title",
|
7461
|
-
"type": "String",
|
7462
|
-
"default": "`\"Menu\"`",
|
7463
|
-
"description": "The title that appears at the top of the panel."
|
7464
|
-
},
|
7465
|
-
{
|
7466
|
-
"name": "id",
|
7467
|
-
"type": "String",
|
7468
|
-
"default": "`self.class.generate_id`",
|
7469
|
-
"description": "The unique ID of the panel."
|
7470
|
-
},
|
7471
|
-
{
|
7472
|
-
"name": "size",
|
7473
|
-
"type": "Symbol",
|
7474
|
-
"default": "`:small`",
|
7475
|
-
"description": "The size of the panel. One of `:auto`, `:large`, `:medium`, `:medium_portrait`, `:small`, or `:xlarge`."
|
7476
|
-
},
|
7477
|
-
{
|
7478
|
-
"name": "select_variant",
|
7479
|
-
"type": "Symbol",
|
7480
|
-
"default": "`:single`",
|
7481
|
-
"description": "One of `:multiple`, `:none`, or `:single`."
|
7482
|
-
},
|
7483
|
-
{
|
7484
|
-
"name": "fetch_strategy",
|
7485
|
-
"type": "Symbol",
|
7486
|
-
"default": "`:remote`",
|
7487
|
-
"description": "One of `:eventually_local`, `:local`, or `:remote`."
|
7488
|
-
},
|
7489
|
-
{
|
7490
|
-
"name": "no_results_label",
|
7491
|
-
"type": "String",
|
7492
|
-
"default": "`\"No results found\"`",
|
7493
|
-
"description": "The label to display when no results are found."
|
7494
|
-
},
|
7495
|
-
{
|
7496
|
-
"name": "preload",
|
7497
|
-
"type": "Boolean",
|
7498
|
-
"default": "`false`",
|
7499
|
-
"description": "Whether to preload search results when the page loads. If this option is false, results are loaded when the panel is opened."
|
7500
|
-
},
|
7501
|
-
{
|
7502
|
-
"name": "dynamic_label",
|
7454
|
+
"name": "use_experimental_non_local_form",
|
7503
7455
|
"type": "Boolean",
|
7504
7456
|
"default": "`false`",
|
7505
|
-
"description": "
|
7506
|
-
},
|
7507
|
-
{
|
7508
|
-
"name": "dynamic_label_prefix",
|
7509
|
-
"type": "String",
|
7510
|
-
"default": "`nil`",
|
7511
|
-
"description": "If provided, the prefix is prepended to the dynamic label and displayed in the show button."
|
7512
|
-
},
|
7513
|
-
{
|
7514
|
-
"name": "dynamic_aria_label_prefix",
|
7515
|
-
"type": "String",
|
7516
|
-
"default": "`nil`",
|
7517
|
-
"description": "If provided, the prefix is prepended to the dynamic label and set as the value of the `aria-label` attribute on the show button."
|
7518
|
-
},
|
7519
|
-
{
|
7520
|
-
"name": "body_id",
|
7521
|
-
"type": "String",
|
7522
|
-
"default": "`nil`",
|
7523
|
-
"description": "The unique ID of the panel body. If not provided, the body ID will be set to the panel ID with a \"-body\" suffix."
|
7524
|
-
},
|
7525
|
-
{
|
7526
|
-
"name": "list_arguments",
|
7527
|
-
"type": "Hash",
|
7528
|
-
"default": "`{}`",
|
7529
|
-
"description": "Arguments to pass to the underlying {{#link_to_component}}Primer::Alpha::ActionList{{/link_to_component}} component. Only has an effect for the local fetch strategy."
|
7530
|
-
},
|
7531
|
-
{
|
7532
|
-
"name": "form_arguments",
|
7533
|
-
"type": "Hash",
|
7534
|
-
"default": "`{}`",
|
7535
|
-
"description": "Form arguments to pass to the underlying {{#link_to_component}}Primer::Alpha::ActionList{{/link_to_component}} component. Only has an effect for the local fetch strategy."
|
7457
|
+
"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."
|
7536
7458
|
},
|
7537
7459
|
{
|
7538
7460
|
"name": "show_filter",
|
@@ -8052,6 +7974,19 @@
|
|
8052
7974
|
]
|
8053
7975
|
}
|
8054
7976
|
},
|
7977
|
+
{
|
7978
|
+
"preview_path": "primer/alpha/select_panel/remote_fetch_form",
|
7979
|
+
"name": "remote_fetch_form",
|
7980
|
+
"snapshot": "interactive",
|
7981
|
+
"skip_rules": {
|
7982
|
+
"wont_fix": [
|
7983
|
+
"region"
|
7984
|
+
],
|
7985
|
+
"will_fix": [
|
7986
|
+
"color-contrast"
|
7987
|
+
]
|
7988
|
+
}
|
7989
|
+
},
|
8055
7990
|
{
|
8056
7991
|
"preview_path": "primer/alpha/select_panel/multiselect_form",
|
8057
7992
|
"name": "multiselect_form",
|
@@ -17511,6 +17446,104 @@
|
|
17511
17446
|
|
17512
17447
|
]
|
17513
17448
|
},
|
17449
|
+
{
|
17450
|
+
"fully_qualified_name": "Primer::OpenProject::BorderBox::CollapsibleHeader",
|
17451
|
+
"description": "Add a general description of component here\nAdd additional usage considerations or best practices that may aid the user to use the component correctly.",
|
17452
|
+
"accessibility_docs": "Add any accessibility considerations",
|
17453
|
+
"is_form_component": false,
|
17454
|
+
"is_published": true,
|
17455
|
+
"requires_js": false,
|
17456
|
+
"component": "OpenProject::BorderBox::CollapsibleHeader",
|
17457
|
+
"status": "open_project",
|
17458
|
+
"a11y_reviewed": false,
|
17459
|
+
"short_name": "OpenProjectBorderBoxCollapsibleHeader",
|
17460
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/border_box/collapsible_header.rb",
|
17461
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/border_box/collapsible_header/default/",
|
17462
|
+
"parameters": [
|
17463
|
+
{
|
17464
|
+
"name": "system_arguments",
|
17465
|
+
"type": "Hash",
|
17466
|
+
"default": "N/A",
|
17467
|
+
"description": "{{link_to_system_arguments_docs}}"
|
17468
|
+
}
|
17469
|
+
],
|
17470
|
+
"slots": [
|
17471
|
+
|
17472
|
+
],
|
17473
|
+
"methods": [
|
17474
|
+
|
17475
|
+
],
|
17476
|
+
"previews": [
|
17477
|
+
{
|
17478
|
+
"preview_path": "primer/open_project/border_box/collapsible_header/playground",
|
17479
|
+
"name": "playground",
|
17480
|
+
"snapshot": "false",
|
17481
|
+
"skip_rules": {
|
17482
|
+
"wont_fix": [
|
17483
|
+
"region"
|
17484
|
+
],
|
17485
|
+
"will_fix": [
|
17486
|
+
"color-contrast"
|
17487
|
+
]
|
17488
|
+
}
|
17489
|
+
},
|
17490
|
+
{
|
17491
|
+
"preview_path": "primer/open_project/border_box/collapsible_header/default",
|
17492
|
+
"name": "default",
|
17493
|
+
"snapshot": "true",
|
17494
|
+
"skip_rules": {
|
17495
|
+
"wont_fix": [
|
17496
|
+
"region"
|
17497
|
+
],
|
17498
|
+
"will_fix": [
|
17499
|
+
"color-contrast"
|
17500
|
+
]
|
17501
|
+
}
|
17502
|
+
},
|
17503
|
+
{
|
17504
|
+
"preview_path": "primer/open_project/border_box/collapsible_header/with_count",
|
17505
|
+
"name": "with_count",
|
17506
|
+
"snapshot": "true",
|
17507
|
+
"skip_rules": {
|
17508
|
+
"wont_fix": [
|
17509
|
+
"region"
|
17510
|
+
],
|
17511
|
+
"will_fix": [
|
17512
|
+
"color-contrast"
|
17513
|
+
]
|
17514
|
+
}
|
17515
|
+
},
|
17516
|
+
{
|
17517
|
+
"preview_path": "primer/open_project/border_box/collapsible_header/with_description",
|
17518
|
+
"name": "with_description",
|
17519
|
+
"snapshot": "true",
|
17520
|
+
"skip_rules": {
|
17521
|
+
"wont_fix": [
|
17522
|
+
"region"
|
17523
|
+
],
|
17524
|
+
"will_fix": [
|
17525
|
+
"color-contrast"
|
17526
|
+
]
|
17527
|
+
}
|
17528
|
+
},
|
17529
|
+
{
|
17530
|
+
"preview_path": "primer/open_project/border_box/collapsible_header/collapsed",
|
17531
|
+
"name": "collapsed",
|
17532
|
+
"snapshot": "true",
|
17533
|
+
"skip_rules": {
|
17534
|
+
"wont_fix": [
|
17535
|
+
"region"
|
17536
|
+
],
|
17537
|
+
"will_fix": [
|
17538
|
+
"color-contrast"
|
17539
|
+
]
|
17540
|
+
}
|
17541
|
+
}
|
17542
|
+
],
|
17543
|
+
"subcomponents": [
|
17544
|
+
|
17545
|
+
]
|
17546
|
+
},
|
17514
17547
|
{
|
17515
17548
|
"fully_qualified_name": "Primer::OpenProject::BorderGrid",
|
17516
17549
|
"description": "A set of blocks that are shown below each other with separator lines in between",
|
data/static/previews.json
CHANGED
@@ -2957,6 +2957,79 @@
|
|
2957
2957
|
}
|
2958
2958
|
]
|
2959
2959
|
},
|
2960
|
+
{
|
2961
|
+
"name": "collapsible_header",
|
2962
|
+
"component": "OpenProject::BorderBox::CollapsibleHeader",
|
2963
|
+
"status": "open_project",
|
2964
|
+
"lookup_path": "primer/open_project/border_box/collapsible_header",
|
2965
|
+
"examples": [
|
2966
|
+
{
|
2967
|
+
"preview_path": "primer/open_project/border_box/collapsible_header/playground",
|
2968
|
+
"name": "playground",
|
2969
|
+
"snapshot": "false",
|
2970
|
+
"skip_rules": {
|
2971
|
+
"wont_fix": [
|
2972
|
+
"region"
|
2973
|
+
],
|
2974
|
+
"will_fix": [
|
2975
|
+
"color-contrast"
|
2976
|
+
]
|
2977
|
+
}
|
2978
|
+
},
|
2979
|
+
{
|
2980
|
+
"preview_path": "primer/open_project/border_box/collapsible_header/default",
|
2981
|
+
"name": "default",
|
2982
|
+
"snapshot": "true",
|
2983
|
+
"skip_rules": {
|
2984
|
+
"wont_fix": [
|
2985
|
+
"region"
|
2986
|
+
],
|
2987
|
+
"will_fix": [
|
2988
|
+
"color-contrast"
|
2989
|
+
]
|
2990
|
+
}
|
2991
|
+
},
|
2992
|
+
{
|
2993
|
+
"preview_path": "primer/open_project/border_box/collapsible_header/with_count",
|
2994
|
+
"name": "with_count",
|
2995
|
+
"snapshot": "true",
|
2996
|
+
"skip_rules": {
|
2997
|
+
"wont_fix": [
|
2998
|
+
"region"
|
2999
|
+
],
|
3000
|
+
"will_fix": [
|
3001
|
+
"color-contrast"
|
3002
|
+
]
|
3003
|
+
}
|
3004
|
+
},
|
3005
|
+
{
|
3006
|
+
"preview_path": "primer/open_project/border_box/collapsible_header/with_description",
|
3007
|
+
"name": "with_description",
|
3008
|
+
"snapshot": "true",
|
3009
|
+
"skip_rules": {
|
3010
|
+
"wont_fix": [
|
3011
|
+
"region"
|
3012
|
+
],
|
3013
|
+
"will_fix": [
|
3014
|
+
"color-contrast"
|
3015
|
+
]
|
3016
|
+
}
|
3017
|
+
},
|
3018
|
+
{
|
3019
|
+
"preview_path": "primer/open_project/border_box/collapsible_header/collapsed",
|
3020
|
+
"name": "collapsed",
|
3021
|
+
"snapshot": "true",
|
3022
|
+
"skip_rules": {
|
3023
|
+
"wont_fix": [
|
3024
|
+
"region"
|
3025
|
+
],
|
3026
|
+
"will_fix": [
|
3027
|
+
"color-contrast"
|
3028
|
+
]
|
3029
|
+
}
|
3030
|
+
}
|
3031
|
+
]
|
3032
|
+
},
|
2960
3033
|
{
|
2961
3034
|
"name": "counter",
|
2962
3035
|
"component": "Counter",
|
@@ -6909,6 +6982,19 @@
|
|
6909
6982
|
]
|
6910
6983
|
}
|
6911
6984
|
},
|
6985
|
+
{
|
6986
|
+
"preview_path": "primer/alpha/select_panel/remote_fetch_form",
|
6987
|
+
"name": "remote_fetch_form",
|
6988
|
+
"snapshot": "interactive",
|
6989
|
+
"skip_rules": {
|
6990
|
+
"wont_fix": [
|
6991
|
+
"region"
|
6992
|
+
],
|
6993
|
+
"will_fix": [
|
6994
|
+
"color-contrast"
|
6995
|
+
]
|
6996
|
+
}
|
6997
|
+
},
|
6912
6998
|
{
|
6913
6999
|
"preview_path": "primer/alpha/select_panel/multiselect_form",
|
6914
7000
|
"name": "multiselect_form",
|
data/static/statuses.json
CHANGED
@@ -117,6 +117,7 @@
|
|
117
117
|
"Primer::IconButton": "deprecated",
|
118
118
|
"Primer::LayoutComponent": "deprecated",
|
119
119
|
"Primer::Navigation::TabComponent": "deprecated",
|
120
|
+
"Primer::OpenProject::BorderBox::CollapsibleHeader": "open_project",
|
120
121
|
"Primer::OpenProject::BorderGrid": "open_project",
|
121
122
|
"Primer::OpenProject::BorderGrid::Cell": "open_project",
|
122
123
|
"Primer::OpenProject::DangerDialog": "open_project",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openproject-primer_view_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.59.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub Open Source
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2025-
|
12
|
+
date: 2025-04-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionview
|
@@ -45,14 +45,14 @@ dependencies:
|
|
45
45
|
requirements:
|
46
46
|
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 19.
|
48
|
+
version: 19.23.0
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 19.
|
55
|
+
version: 19.23.0
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: view_component
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -104,6 +104,7 @@ files:
|
|
104
104
|
- app/assets/javascripts/components/primer/beta/relative_time.d.ts
|
105
105
|
- app/assets/javascripts/components/primer/dialog_helper.d.ts
|
106
106
|
- app/assets/javascripts/components/primer/focus_group.d.ts
|
107
|
+
- app/assets/javascripts/components/primer/open_project/border_box/collapsible_header.d.ts
|
107
108
|
- app/assets/javascripts/components/primer/open_project/danger_dialog_form_helper.d.ts
|
108
109
|
- app/assets/javascripts/components/primer/open_project/page_header_element.d.ts
|
109
110
|
- app/assets/javascripts/components/primer/open_project/sub_header_element.d.ts
|
@@ -490,6 +491,15 @@ files:
|
|
490
491
|
- app/components/primer/layout_component.html.erb
|
491
492
|
- app/components/primer/layout_component.rb
|
492
493
|
- app/components/primer/navigation/tab_component.rb
|
494
|
+
- app/components/primer/open_project/border_box/collapsible_header.css
|
495
|
+
- app/components/primer/open_project/border_box/collapsible_header.css.json
|
496
|
+
- app/components/primer/open_project/border_box/collapsible_header.css.map
|
497
|
+
- app/components/primer/open_project/border_box/collapsible_header.d.ts
|
498
|
+
- app/components/primer/open_project/border_box/collapsible_header.html.erb
|
499
|
+
- app/components/primer/open_project/border_box/collapsible_header.js
|
500
|
+
- app/components/primer/open_project/border_box/collapsible_header.pcss
|
501
|
+
- app/components/primer/open_project/border_box/collapsible_header.rb
|
502
|
+
- app/components/primer/open_project/border_box/collapsible_header.ts
|
493
503
|
- app/components/primer/open_project/border_grid.css
|
494
504
|
- app/components/primer/open_project/border_grid.css.json
|
495
505
|
- app/components/primer/open_project/border_grid.css.map
|
@@ -905,6 +915,7 @@ files:
|
|
905
915
|
- previews/primer/alpha/select_panel_preview/playground.html.erb
|
906
916
|
- previews/primer/alpha/select_panel_preview/remote_fetch.html.erb
|
907
917
|
- previews/primer/alpha/select_panel_preview/remote_fetch_filter_failure.html.erb
|
918
|
+
- previews/primer/alpha/select_panel_preview/remote_fetch_form.html.erb
|
908
919
|
- previews/primer/alpha/select_panel_preview/remote_fetch_initial_failure.html.erb
|
909
920
|
- previews/primer/alpha/select_panel_preview/remote_fetch_no_results.html.erb
|
910
921
|
- previews/primer/alpha/select_panel_preview/scroll_container.html.erb
|
@@ -1031,6 +1042,8 @@ files:
|
|
1031
1042
|
- previews/primer/forms_preview/single_text_field_form.html.erb
|
1032
1043
|
- previews/primer/forms_preview/submit_button_form.html.erb
|
1033
1044
|
- previews/primer/forms_preview/text_field_and_checkbox_form.html.erb
|
1045
|
+
- previews/primer/open_project/border_box/collapsible_header_preview.rb
|
1046
|
+
- previews/primer/open_project/border_box/collapsible_header_preview/playground.html.erb
|
1034
1047
|
- previews/primer/open_project/border_grid_preview.rb
|
1035
1048
|
- previews/primer/open_project/danger_dialog_preview.rb
|
1036
1049
|
- previews/primer/open_project/danger_dialog_preview/deletion_form.rb
|