@primer/view-components 0.6.0-rc.c911f8aa → 0.6.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.
@@ -1,7 +1,9 @@
1
1
  declare class XBannerElement extends HTMLElement {
2
+ #private;
2
3
  titleText: HTMLElement;
3
4
  dismiss(): void;
4
- private shouldReappear;
5
+ show(): void;
6
+ hide(): void;
5
7
  }
6
8
  declare global {
7
9
  interface Window {
@@ -4,24 +4,38 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
9
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
10
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
+ };
12
+ var _XBannerElement_instances, _XBannerElement_dismissScheme_get;
7
13
  import { controller, target } from '@github/catalyst';
8
14
  let XBannerElement = class XBannerElement extends HTMLElement {
15
+ constructor() {
16
+ super(...arguments);
17
+ _XBannerElement_instances.add(this);
18
+ }
9
19
  dismiss() {
10
- if (this.shouldReappear()) {
11
- this.style.setProperty('visibility', 'hidden');
12
- setTimeout(() => {
13
- this.style.setProperty('visibility', 'visible');
14
- }, 2000);
15
- return;
16
- }
17
20
  const parentElement = this.parentElement;
18
21
  if (!parentElement)
19
22
  return;
20
- parentElement.removeChild(this);
23
+ if (__classPrivateFieldGet(this, _XBannerElement_instances, "a", _XBannerElement_dismissScheme_get) === 'remove') {
24
+ parentElement.removeChild(this);
25
+ }
26
+ else {
27
+ this.hide();
28
+ }
21
29
  }
22
- shouldReappear() {
23
- return this.getAttribute('data-reappear') === 'true';
30
+ show() {
31
+ this.style.setProperty('display', 'initial');
24
32
  }
33
+ hide() {
34
+ this.style.setProperty('display', 'none');
35
+ }
36
+ };
37
+ _XBannerElement_instances = new WeakSet(), _XBannerElement_dismissScheme_get = function _XBannerElement_dismissScheme_get() {
38
+ return this.getAttribute('data-dismiss-scheme');
25
39
  };
26
40
  __decorate([
27
41
  target
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/view-components",
3
- "version": "0.6.0-rc.c911f8aa",
3
+ "version": "0.6.0",
4
4
  "description": "ViewComponents for the Primer Design System",
5
5
  "main": "app/assets/javascripts/primer_view_components.js",
6
6
  "module": "app/components/primer/primer.js",
@@ -521,10 +521,10 @@
521
521
  "description": "Whether the component should take up the full width of the screen when rendered inside smaller viewports."
522
522
  },
523
523
  {
524
- "name": "dismissible",
525
- "type": "Boolean",
526
- "default": "`false`",
527
- "description": "Whether the component can be dismissed with an \"x\" button."
524
+ "name": "dismiss_scheme",
525
+ "type": "Symbol",
526
+ "default": "`:none`",
527
+ "description": "Whether the component can be dismissed with an \"x\" button. One of `:hide`, `:none`, or `:remove`."
528
528
  },
529
529
  {
530
530
  "name": "description",
@@ -544,12 +544,6 @@
544
544
  "default": "`:default`",
545
545
  "description": "One of `:danger`, `:default`, `:success`, or `:warning`."
546
546
  },
547
- {
548
- "name": "reappear",
549
- "type": "Boolean",
550
- "default": "`false`",
551
- "description": "Whether or not the flash banner should reappear after being dismissed. Only for use in test and preview environments."
552
- },
553
547
  {
554
548
  "name": "system_arguments",
555
549
  "type": "Hash",
@@ -146,6 +146,7 @@
146
146
  "Primer::Alpha::AutoComplete::Item": {
147
147
  },
148
148
  "Primer::Alpha::Banner": {
149
+ "DEFAULT_DISMISS_SCHEME": "none",
149
150
  "DEFAULT_ICONS": {
150
151
  "default": "bell",
151
152
  "warning": "alert",
@@ -153,6 +154,11 @@
153
154
  "success": "check-circle"
154
155
  },
155
156
  "DEFAULT_SCHEME": "default",
157
+ "DISMISS_SCHEMES": [
158
+ "none",
159
+ "remove",
160
+ "hide"
161
+ ],
156
162
  "LEGACY_SCHEME_MAPPINGS": {
157
163
  "default": "",
158
164
  "warning": "flash-warn",
@@ -270,11 +270,17 @@
270
270
  "name": "with_item",
271
271
  "description": "Adds an item to the list.",
272
272
  "parameters": [
273
+ {
274
+ "name": "component_klass",
275
+ "type": "Class",
276
+ "default": "N/A",
277
+ "description": "The class to use instead of the default {{#link_to_component}}Primer::Alpha::ActionList::Item{{/link_to_component}}"
278
+ },
273
279
  {
274
280
  "name": "system_arguments",
275
281
  "type": "Hash",
276
282
  "default": "N/A",
277
- "description": "The arguments accepted by {{#link_to_component}}Primer::Alpha::ActionList::Item{{/link_to_component}}."
283
+ "description": "These arguments are forwarded to {{#link_to_component}}Primer::Alpha::ActionList::Item{{/link_to_component}}, or whatever class is passed as the `component_klass` argument."
278
284
  }
279
285
  ]
280
286
  },
@@ -318,17 +324,23 @@
318
324
  "default": "`:block`",
319
325
  "description": "Optional. How to display the user's full name. One of `:block` or `:inline`."
320
326
  },
327
+ {
328
+ "name": "component_klass",
329
+ "type": "Class",
330
+ "default": "`ActionList::Item`",
331
+ "description": "The class to use instead of the default {{#link_to_component}}Primer::Alpha::ActionList::Item{{/link_to_component}}"
332
+ },
321
333
  {
322
334
  "name": "avatar_arguments",
323
335
  "type": "Hash",
324
336
  "default": "`{}`",
325
- "description": "Optional. The arguments accepted by {{#link_to_component}}Primer::Beta::Avatar{{/link_to_component}}."
337
+ "description": "Optional. The arguments accepted by {{#link_to_component}}Primer::Beta::Avatar{{/link_to_component}}"
326
338
  },
327
339
  {
328
340
  "name": "system_arguments",
329
341
  "type": "Hash",
330
342
  "default": "N/A",
331
- "description": "The arguments accepted by {{#link_to_component}}Primer::Alpha::ActionList::Item{{/link_to_component}}."
343
+ "description": "These arguments are forwarded to {{#link_to_component}}Primer::Alpha::ActionList::Item{{/link_to_component}}, or whatever class is passed as the `component_klass` argument."
332
344
  }
333
345
  ]
334
346
  },
@@ -353,6 +365,72 @@
353
365
 
354
366
  ]
355
367
  },
368
+ {
369
+ "name": "build_item",
370
+ "description": "Builds a new item but does not add it to the list. Use this method\ninstead of the `#with_item` slot if you need to render an item outside\nthe context of a list, eg. if rendering additional items to append to\nan existing list, perhaps via a separate HTTP request.",
371
+ "parameters": [
372
+ {
373
+ "name": "component_klass",
374
+ "type": "Class",
375
+ "default": "`ActionList::Item`",
376
+ "description": "The class to use instead of the default {{#link_to_component}}Primer::Alpha::ActionList::Item{{/link_to_component}}"
377
+ },
378
+ {
379
+ "name": "system_arguments",
380
+ "type": "Hash",
381
+ "default": "N/A",
382
+ "description": "These arguments are forwarded to {{#link_to_component}}Primer::Alpha::ActionList::Item{{/link_to_component}}, or whatever class is passed as the `component_klass` argument."
383
+ }
384
+ ]
385
+ },
386
+ {
387
+ "name": "build_avatar_item",
388
+ "description": "Builds a new avatar item but does not add it to the list. Avatar items\nare a convenient way to accessibly add an item with a leading avatar\nimage. Use this method instead of the `#with_avatar_item` slot if you\nneed to render an avatar item outside the context of a list, eg. if\nrendering additional items to append to an existing list, perhaps via\na separate HTTP request.",
389
+ "parameters": [
390
+ {
391
+ "name": "src",
392
+ "type": "String",
393
+ "default": "N/A",
394
+ "description": "The source url of the avatar image."
395
+ },
396
+ {
397
+ "name": "username",
398
+ "type": "String",
399
+ "default": "N/A",
400
+ "description": "The username associated with the avatar."
401
+ },
402
+ {
403
+ "name": "full_name",
404
+ "type": "String",
405
+ "default": "`nil`",
406
+ "description": "Optional. The user's full name."
407
+ },
408
+ {
409
+ "name": "full_name_scheme",
410
+ "type": "Symbol",
411
+ "default": "`:block`",
412
+ "description": "Optional. How to display the user's full name. One of `:block` or `:inline`."
413
+ },
414
+ {
415
+ "name": "component_klass",
416
+ "type": "Class",
417
+ "default": "`ActionList::Item`",
418
+ "description": "The class to use instead of the default {{#link_to_component}}Primer::Alpha::ActionList::Item{{/link_to_component}}"
419
+ },
420
+ {
421
+ "name": "avatar_arguments",
422
+ "type": "Hash",
423
+ "default": "`{}`",
424
+ "description": "Optional. The arguments accepted by {{#link_to_component}}Primer::Beta::Avatar{{/link_to_component}}"
425
+ },
426
+ {
427
+ "name": "system_arguments",
428
+ "type": "Hash",
429
+ "default": "N/A",
430
+ "description": "These arguments are forwarded to {{#link_to_component}}Primer::Alpha::ActionList::Item{{/link_to_component}}, or whatever class is passed as the `component_klass` argument."
431
+ }
432
+ ]
433
+ },
356
434
  {
357
435
  "name": "post_list_content_block",
358
436
  "description": "Returns the value of attribute post_list_content_block.",
@@ -1626,7 +1704,7 @@
1626
1704
  "name": "system_arguments",
1627
1705
  "type": "Hash",
1628
1706
  "default": "N/A",
1629
- "description": "The same arguments accepted by {{#link_to_component}}Primer::Alpha::ActionList::Item{{/link_to_component}}."
1707
+ "description": "These arguments are forwarded to {{#link_to_component}}Primer::Alpha::ActionList::Item{{/link_to_component}}, or whatever class is passed as the `component_klass` argument."
1630
1708
  }
1631
1709
  ]
1632
1710
  },
@@ -1674,7 +1752,7 @@
1674
1752
  "name": "system_arguments",
1675
1753
  "type": "Hash",
1676
1754
  "default": "N/A",
1677
- "description": "The same arguments accepted by {{#link_to_component}}Primer::Alpha::ActionList::Item{{/link_to_component}}."
1755
+ "description": "These arguments are forwarded to {{#link_to_component}}Primer::Alpha::ActionList::Item{{/link_to_component}}, or whatever class is passed as the `component_klass` argument."
1678
1756
  }
1679
1757
  ]
1680
1758
  }
@@ -1962,10 +2040,10 @@
1962
2040
  "description": "Whether the component should take up the full width of the screen when rendered inside smaller viewports."
1963
2041
  },
1964
2042
  {
1965
- "name": "dismissible",
1966
- "type": "Boolean",
1967
- "default": "`false`",
1968
- "description": "Whether the component can be dismissed with an \"x\" button."
2043
+ "name": "dismiss_scheme",
2044
+ "type": "Symbol",
2045
+ "default": "`:none`",
2046
+ "description": "Whether the component can be dismissed with an \"x\" button. One of `:hide`, `:none`, or `:remove`."
1969
2047
  },
1970
2048
  {
1971
2049
  "name": "description",
@@ -1985,12 +2063,6 @@
1985
2063
  "default": "`:default`",
1986
2064
  "description": "One of `:danger`, `:default`, `:success`, or `:warning`."
1987
2065
  },
1988
- {
1989
- "name": "reappear",
1990
- "type": "Boolean",
1991
- "default": "`false`",
1992
- "description": "Whether or not the flash banner should reappear after being dismissed. Only for use in test and preview environments."
1993
- },
1994
2066
  {
1995
2067
  "name": "system_arguments",
1996
2068
  "type": "Hash",
@@ -2090,8 +2162,8 @@
2090
2162
  }
2091
2163
  },
2092
2164
  {
2093
- "preview_path": "primer/alpha/banner/dismissable",
2094
- "name": "dismissable",
2165
+ "preview_path": "primer/alpha/banner/dismissible",
2166
+ "name": "dismissible",
2095
2167
  "snapshot": "true",
2096
2168
  "skip_rules": {
2097
2169
  "wont_fix": [
@@ -4787,14 +4859,14 @@
4787
4859
  {
4788
4860
  "name": "component_klass",
4789
4861
  "type": "Class",
4790
- "default": "N/A",
4791
- "description": "The component class to use. Defaults to `Primer::Alpha::NavList::Item`."
4862
+ "default": "`Primer::Alpha::NavList::Item`",
4863
+ "description": "The class to use instead of the default {{#link_to_component}}Primer::Alpha::NavList::Item{{/link_to_component}}"
4792
4864
  },
4793
4865
  {
4794
4866
  "name": "system_arguments",
4795
4867
  "type": "Hash",
4796
4868
  "default": "N/A",
4797
- "description": "The arguments accepted by the `component_klass` class."
4869
+ "description": "These arguments are forwarded to {{#link_to_component}}Primer::Alpha::NavList::Item{{/link_to_component}}, or whatever class is passed as the `component_klass` argument."
4798
4870
  }
4799
4871
  ]
4800
4872
  },
@@ -4829,20 +4901,20 @@
4829
4901
  {
4830
4902
  "name": "component_klass",
4831
4903
  "type": "Class",
4832
- "default": "N/A",
4833
- "description": "The component class to use. Defaults to `Primer::Alpha::NavList::Item`."
4904
+ "default": "`Primer::Alpha::NavList::Item`",
4905
+ "description": "The class to use instead of the default {{#link_to_component}}Primer::Alpha::NavList::Item{{/link_to_component}}"
4834
4906
  },
4835
4907
  {
4836
4908
  "name": "avatar_arguments",
4837
4909
  "type": "Hash",
4838
4910
  "default": "`{}`",
4839
- "description": "Optional. The arguments accepted by {{#link_to_component}}Primer::Beta::Avatar{{/link_to_component}}."
4911
+ "description": "Optional. The arguments accepted by {{#link_to_component}}Primer::Beta::Avatar{{/link_to_component}}"
4840
4912
  },
4841
4913
  {
4842
4914
  "name": "system_arguments",
4843
4915
  "type": "Hash",
4844
4916
  "default": "N/A",
4845
- "description": "The arguments accepted by the `component_klass` class."
4917
+ "description": "These arguments are forwarded to {{#link_to_component}}Primer::Alpha::NavList::Item{{/link_to_component}}, or whatever class is passed as the `component_klass` argument."
4846
4918
  }
4847
4919
  ]
4848
4920
  },
@@ -4870,6 +4942,72 @@
4870
4942
  }
4871
4943
  ]
4872
4944
  },
4945
+ {
4946
+ "name": "build_item",
4947
+ "description": "Builds a new item but does not add it to the list. Use this method\ninstead of the `#with_item` slot if you need to render an item outside\nthe context of a list, eg. if rendering additional items to append to\nan existing list, perhaps via a separate HTTP request.",
4948
+ "parameters": [
4949
+ {
4950
+ "name": "component_klass",
4951
+ "type": "Class",
4952
+ "default": "`Primer::Alpha::NavList::Item`",
4953
+ "description": "The class to use instead of the default {{#link_to_component}}Primer::Alpha::NavList::Item{{/link_to_component}}"
4954
+ },
4955
+ {
4956
+ "name": "system_arguments",
4957
+ "type": "Hash",
4958
+ "default": "N/A",
4959
+ "description": "These arguments are forwarded to {{#link_to_component}}Primer::Alpha::NavList::Item{{/link_to_component}}, or whatever class is passed as the `component_klass` argument."
4960
+ }
4961
+ ]
4962
+ },
4963
+ {
4964
+ "name": "build_avatar_item",
4965
+ "description": "Builds a new avatar item but does not add it to the list. Avatar items\nare a convenient way to accessibly add an item with a leading avatar\nimage. Use this method instead of the `#with_avatar_item` slot if you\nneed to render an avatar item outside the context of a list, eg. if\nrendering additional items to append to an existing list, perhaps via\na separate HTTP request.",
4966
+ "parameters": [
4967
+ {
4968
+ "name": "src",
4969
+ "type": "String",
4970
+ "default": "N/A",
4971
+ "description": "The source url of the avatar image."
4972
+ },
4973
+ {
4974
+ "name": "username",
4975
+ "type": "String",
4976
+ "default": "N/A",
4977
+ "description": "The username associated with the avatar."
4978
+ },
4979
+ {
4980
+ "name": "full_name",
4981
+ "type": "String",
4982
+ "default": "`nil`",
4983
+ "description": "Optional. The user's full name."
4984
+ },
4985
+ {
4986
+ "name": "full_name_scheme",
4987
+ "type": "Symbol",
4988
+ "default": "`:block`",
4989
+ "description": "Optional. How to display the user's full name. One of `:block` or `:inline`."
4990
+ },
4991
+ {
4992
+ "name": "component_klass",
4993
+ "type": "Class",
4994
+ "default": "`Primer::Alpha::NavList::Item`",
4995
+ "description": "The class to use instead of the default {{#link_to_component}}Primer::Alpha::NavList::Item{{/link_to_component}}"
4996
+ },
4997
+ {
4998
+ "name": "avatar_arguments",
4999
+ "type": "Hash",
5000
+ "default": "`{}`",
5001
+ "description": "Optional. The arguments accepted by {{#link_to_component}}Primer::Beta::Avatar{{/link_to_component}}"
5002
+ },
5003
+ {
5004
+ "name": "system_arguments",
5005
+ "type": "Hash",
5006
+ "default": "N/A",
5007
+ "description": "These arguments are forwarded to {{#link_to_component}}Primer::Alpha::NavList::Item{{/link_to_component}}, or whatever class is passed as the `component_klass` argument."
5008
+ }
5009
+ ]
5010
+ },
4873
5011
  {
4874
5012
  "name": "render_outer_list?",
4875
5013
  "description": "Lists that contain top-level items (i.e. items outside of a group) should be wrapped in a <ul>",
@@ -14231,6 +14369,6 @@
14231
14369
  "component": "BaseComponent",
14232
14370
  "fully_qualified_name": "Primer::BaseComponent",
14233
14371
  "description_md": "All Primer ViewComponents accept a standard set of options called system arguments, mimicking the [styled-system API](https://styled-system.com/table) used by [Primer React](https://primer.style/components/system-props).\n\nUnder the hood, system arguments are [mapped](https://github.com/primer/view_components/blob/main/lib/primer/classify.rb) to Primer CSS classes, with any remaining options passed to Rails' [`content_tag`](https://api.rubyonrails.org/classes/ActionView/Helpers/TagHelper.html#method-i-content_tag).\n\n## Responsive values\n\nTo apply different values across responsive breakpoints, pass an array with up to five values in the order `[default, small, medium, large, xlarge]`. To skip a breakpoint, pass `nil`.\n\nFor example:\n\n```erb\n<%= render Primer::Beta::Heading.new(mt: [0, nil, nil, 4, 2]) do %>\n Hello world\n<% end %>\n```\n\nRenders:\n\n```html\n<h1 class=\"mt-0 mt-lg-4 mt-xl-2\">Hello world</h1>\n```",
14234
- "args_md": "## HTML attributes\n\nSystem arguments include most HTML attributes. For example:\n\n| Name | Type | Description |\n| :- | :- | :- |\n| `aria` | `Hash` | Aria attributes: `aria: { label: \"foo\" }` renders `aria-label='foo'`. |\n| `data` | `Hash` | Data attributes: `data: { foo: :bar }` renders `data-foo='bar'`. |\n| `height` | `Integer` | Height. |\n| `hidden` | `Boolean` | Whether to assign the `hidden` attribute. |\n| `style` | `String` | Inline styles. |\n| `title` | `String` | The `title` attribute. |\n| `width` | `Integer` | Width. |\n\n## Animation\n\n| Name | Type | Description |\n| :- | :- | :- |\n| `animation` | Symbol | One of `:fade_down`, `:fade_in`, `:fade_out`, `:fade_up`, `:grow_x`, `:hover_grow`, `:pulse`, `:pulse_in`, `:rotate`, `:scale_in`, or `:shrink_x`. |\n\n## Border\n\n| Name | Type | Description |\n| :- | :- | :- |\n| `border_bottom` | Integer | Set to `0` to remove the bottom border. |\n| `border_left` | Integer | Set to `0` to remove the left border. |\n| `border_radius` | Integer | One of `0`, `1`, `2`, or `3`. |\n| `border_right` | Integer | Set to `0` to remove the right border. |\n| `border_top` | Integer | Set to `0` to remove the top border. |\n| `border` | Symbol | One of `:bottom`, `:left`, `:right`, `:top`, `:x`, `:y`, or `true`. |\n| `box_shadow` | Boolean, Symbol | Box shadow. One of `:extra_large`, `:large`, `:medium`, `:none`, or `true`. |\n\n## Color\n\n| Name | Type | Description |\n| :- | :- | :- |\n| `bg` | Symbol | Background color. One of `:accent`, `:accent_emphasis`, `:attention`, `:attention_emphasis`, `:closed`, `:closed_emphasis`, `:danger`, `:danger_emphasis`, `:default`, `:done`, `:done_emphasis`, `:emphasis`, `:inset`, `:open`, `:open_emphasis`, `:overlay`, `:severe`, `:severe_emphasis`, `:sponsors`, `:sponsors_emphasis`, `:subtle`, `:success`, `:success_emphasis`, or `:transparent`. |\n| `border_color` | Symbol | Border color. One of `:accent`, `:accent_emphasis`, `:attention`, `:attention_emphasis`, `:closed`, `:closed_emphasis`, `:danger`, `:danger_emphasis`, `:default`, `:done`, `:done_emphasis`, `:muted`, `:open`, `:open_emphasis`, `:severe`, `:severe_emphasis`, `:sponsors`, `:sponsors_emphasis`, `:subtle`, `:success`, or `:success_emphasis`. |\n| `color` | Symbol | Text color. One of `:accent`, `:attention`, `:closed`, `:danger`, `:default`, `:done`, `:inherit`, `:muted`, `:on_emphasis`, `:open`, `:severe`, `:sponsors`, `:subtle`, or `:success`. |\n\n## Flex\n\n| Name | Type | Description |\n| :- | :- | :- |\n| `align_items` | Symbol | One of `:baseline`, `:center`, `:flex_end`, `:flex_start`, or `:stretch`. |\n| `align_self` | Symbol | One of `:auto`, `:baseline`, `:center`, `:end`, `:start`, or `:stretch`. |\n| `direction` | Symbol | One of `:column`, `:column_reverse`, `:row`, or `:row_reverse`. |\n| `flex` | Integer, Symbol | One of `1` or `:auto`. |\n| `flex_grow` | Integer | To enable, set to `0`. |\n| `flex_shrink` | Integer | To enable, set to `0`. |\n| `flex_wrap` | Symbol | One of `:nowrap`, `:reverse`, or `:wrap`. |\n| `justify_content` | Symbol | One of `:center`, `:flex_end`, `:flex_start`, `:space_around`, or `:space_between`. |\n\n## Grid\n\n| Name | Type | Description |\n| :- | :- | :- |\n| `clearfix` | Boolean | Whether to assign the `clearfix` class. |\n| `col` | Integer | Number of columns. One of `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, or `12`. |\n| `container` | Symbol | Size of the container. One of `:lg`, `:md`, `:sm`, or `:xl`. |\n\n## Layout\n\n| Name | Type | Description |\n| :- | :- | :- |\n| `display` | Symbol | One of `:block`, `:flex`, `:inline`, `:inline_block`, `:inline_flex`, `:none`, `:table`, or `:table_cell`. |\n| `w` | Symbol | One of `:auto`, `:fit`, or `:full`. |\n| `h` | Symbol | One of `:fit` or `:full`. |\n| `hide` | Symbol | Hide the element at a specific breakpoint. One of `:lg`, `:md`, `:sm`, `:whenNarrow`, `:whenRegular`, `:whenWide`, or `:xl`. |\n| `visibility` | Symbol | Visibility. One of `:hidden` or `:visible`. |\n| `vertical_align` | Symbol | One of `:baseline`, `:bottom`, `:middle`, `:text_bottom`, `:text_top`, or `:top`. |\n\n## Position\n\n| Name | Type | Description |\n| :- | :- | :- |\n| `bottom` | Boolean | If `false`, sets `bottom: 0`. |\n| `float` | Symbol | One of `:left`, `:none`, or `:right`. |\n| `left` | Boolean | If `false`, sets `left: 0`. |\n| `position` | Symbol | One of `:absolute`, `:fixed`, `:relative`, `:static`, or `:sticky`. |\n| `right` | Boolean | If `false`, sets `right: 0`. |\n| `top` | Boolean | If `false`, sets `top: 0`. |\n\n## Spacing\n\n| Name | Type | Description |\n| :- | :- | :- |\n| `m` | Integer | Margin. One of `0`, `1`, `2`, `3`, `4`, `5`, `6`, or `:auto`. |\n| `mb` | Integer | Margin bottom. One of `-12`, `-11`, `-10`, `-9`, `-8`, `-7`, `-6`, `-5`, `-4`, `-3`, `-2`, `-1`, `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, or `:auto`. |\n| `ml` | Integer | Margin left. One of `-6`, `-5`, `-4`, `-3`, `-2`, `-1`, `0`, `1`, `2`, `3`, `4`, `5`, `6`, or `:auto`. |\n| `mr` | Integer | Margin right. One of `-6`, `-5`, `-4`, `-3`, `-2`, `-1`, `0`, `1`, `2`, `3`, `4`, `5`, `6`, or `:auto`. |\n| `mt` | Integer | Margin top. One of `-12`, `-11`, `-10`, `-9`, `-8`, `-7`, `-6`, `-5`, `-4`, `-3`, `-2`, `-1`, `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, or `:auto`. |\n| `mx` | Integer | Horizontal margins. One of `0`, `1`, `2`, `3`, `4`, `5`, `6`, or `:auto`. |\n| `my` | Integer | Vertical margins. One of `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, or `12`. |\n| `p` | Integer | Padding. One of `0`, `1`, `2`, `3`, `4`, `5`, `6`, or `:responsive`. |\n| `pb` | Integer | Padding bottom. One of `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, or `12`. |\n| `pl` | Integer | Padding left. One of `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, or `12`. |\n| `pr` | Integer | Padding right. One of `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, or `12`. |\n| `pt` | Integer | Padding left. One of `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, or `12`. |\n| `px` | Integer | Horizontal padding. One of `0`, `1`, `2`, `3`, `4`, `5`, or `6`. |\n| `py` | Integer | Vertical padding. One of `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, or `12`. |\n\n## Typography\n\n| Name | Type | Description |\n| :- | :- | :- |\n| `font_family` | Symbol | Font family. One of `:mono`. |\n| `font_size` | String, Integer, Symbol | One of `0`, `1`, `2`, `3`, `4`, `5`, `6`, `00`, `:normal`, or `:small`. |\n| `font_style` | Symbol | Font style. One of `:italic`. |\n| `font_weight` | Symbol | Font weight. One of `:bold`, `:emphasized`, `:light`, or `:normal`. |\n| `text_align` | Symbol | Text alignment. One of `:center`, `:left`, or `:right`. |\n| `text_transform` | Symbol | Text transformation. One of `:uppercase`. |\n| `underline` | Boolean | Whether text should be underlined. |\n| `word_break` | Symbol | Whether to break words on line breaks. One of `:break_all` or `:break_word`. |\n\n## Other\n\n| Name | Type | Description |\n| :- | :- | :- |\n| classes | String | CSS class name value to be concatenated with generated Primer CSS classes. |\n| test_selector | String | Adds `data-test-selector='given value'` in non-Production environments for testing purposes. |"
14372
+ "args_md": "## HTML attributes\n\nSystem arguments include most HTML attributes. For example:\n\n| Name | Type | Description |\n| :- | :- | :- |\n| `aria` | `Hash` | Aria attributes: `aria: { label: \"foo\" }` renders `aria-label='foo'`. |\n| `data` | `Hash` | Data attributes: `data: { foo: :bar }` renders `data-foo='bar'`. |\n| `height` | `Integer` | Height. |\n| `hidden` | `Boolean` | Whether to assign the `hidden` attribute. |\n| `style` | `String` | Inline styles. |\n| `title` | `String` | The `title` attribute. |\n| `width` | `Integer` | Width. |\n\n## Animation\n\n| Name | Type | Description |\n| :- | :- | :- |\n| `animation` | Symbol | One of `:fade_down`, `:fade_in`, `:fade_out`, `:fade_up`, `:grow_x`, `:hover_grow`, `:pulse`, `:pulse_in`, `:rotate`, `:scale_in`, or `:shrink_x`. |\n\n## Border\n\n| Name | Type | Description |\n| :- | :- | :- |\n| `border_bottom` | Integer | Set to `0` to remove the bottom border. |\n| `border_left` | Integer | Set to `0` to remove the left border. |\n| `border_radius` | Integer | One of `0`, `1`, `2`, or `3`. |\n| `border_right` | Integer | Set to `0` to remove the right border. |\n| `border_top` | Integer | Set to `0` to remove the top border. |\n| `border` | Symbol | One of `:bottom`, `:left`, `:right`, `:top`, `:x`, `:y`, or `true`. |\n| `box_shadow` | Boolean, Symbol | Box shadow. One of `:extra_large`, `:large`, `:medium`, `:none`, or `true`. |\n\n## Color\n\n| Name | Type | Description |\n| :- | :- | :- |\n| `bg` | Symbol | Background color. One of `:accent`, `:accent_emphasis`, `:attention`, `:attention_emphasis`, `:closed`, `:closed_emphasis`, `:danger`, `:danger_emphasis`, `:default`, `:done`, `:done_emphasis`, `:emphasis`, `:inset`, `:open`, `:open_emphasis`, `:overlay`, `:severe`, `:severe_emphasis`, `:sponsors`, `:sponsors_emphasis`, `:subtle`, `:success`, `:success_emphasis`, or `:transparent`. |\n| `border_color` | Symbol | Border color. One of `:accent`, `:accent_emphasis`, `:attention`, `:attention_emphasis`, `:closed`, `:closed_emphasis`, `:danger`, `:danger_emphasis`, `:default`, `:done`, `:done_emphasis`, `:muted`, `:open`, `:open_emphasis`, `:severe`, `:severe_emphasis`, `:sponsors`, `:sponsors_emphasis`, `:subtle`, `:success`, or `:success_emphasis`. |\n| `color` | Symbol | Text color. One of `:accent`, `:attention`, `:closed`, `:danger`, `:default`, `:done`, `:inherit`, `:muted`, `:on_emphasis`, `:open`, `:severe`, `:sponsors`, `:subtle`, or `:success`. |\n\n## Flex\n\n| Name | Type | Description |\n| :- | :- | :- |\n| `align_items` | Symbol | One of `:baseline`, `:center`, `:flex_end`, `:flex_start`, or `:stretch`. |\n| `align_self` | Symbol | One of `:auto`, `:baseline`, `:center`, `:end`, `:start`, or `:stretch`. |\n| `direction` | Symbol | One of `:column`, `:column_reverse`, `:row`, or `:row_reverse`. |\n| `flex` | Integer, Symbol | One of `1` or `:auto`. |\n| `flex_grow` | Integer | To enable, set to `0`. |\n| `flex_shrink` | Integer | To enable, set to `0`. |\n| `flex_wrap` | Symbol | One of `:nowrap`, `:reverse`, or `:wrap`. |\n| `justify_content` | Symbol | One of `:center`, `:flex_end`, `:flex_start`, `:space_around`, or `:space_between`. |\n\n## Grid\n\n| Name | Type | Description |\n| :- | :- | :- |\n| `clearfix` | Boolean | Whether to assign the `clearfix` class. |\n| `col` | Integer | Number of columns. One of `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, or `12`. |\n| `container` | Symbol | Size of the container. One of `:lg`, `:md`, `:sm`, or `:xl`. |\n\n## Layout\n\n| Name | Type | Description |\n| :- | :- | :- |\n| `display` | Symbol | One of `:block`, `:flex`, `:inline`, `:inline_block`, `:inline_flex`, `:none`, `:table`, or `:table_cell`. |\n| `w` | Symbol | One of `:auto`, `:fit`, or `:full`. |\n| `h` | Symbol | One of `:fit` or `:full`. |\n| `hide` | Symbol | Hide the element at a specific breakpoint. One of `:lg`, `:md`, `:sm`, `:whenNarrow`, `:whenRegular`, `:whenWide`, or `:xl`. |\n| `visibility` | Symbol | Visibility. One of `:hidden` or `:visible`. |\n| `vertical_align` | Symbol | One of `:baseline`, `:bottom`, `:middle`, `:text_bottom`, `:text_top`, or `:top`. |\n\n## Position\n\n| Name | Type | Description |\n| :- | :- | :- |\n| `bottom` | Boolean | If `false`, sets `bottom: 0`. |\n| `float` | Symbol | One of `:left`, `:none`, or `:right`. |\n| `left` | Boolean | If `false`, sets `left: 0`. |\n| `position` | Symbol | One of `:absolute`, `:fixed`, `:relative`, `:static`, or `:sticky`. |\n| `right` | Boolean | If `false`, sets `right: 0`. |\n| `top` | Boolean | If `false`, sets `top: 0`. |\n\n## Spacing\n\n| Name | Type | Description |\n| :- | :- | :- |\n| `m` | Integer | Margin. One of `0`, `1`, `2`, `3`, `4`, `5`, `6`, or `:auto`. |\n| `mb` | Integer | Margin bottom. One of `-12`, `-11`, `-10`, `-9`, `-8`, `-7`, `-6`, `-5`, `-4`, `-3`, `-2`, `-1`, `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, or `:auto`. |\n| `ml` | Integer | Margin left. One of `-6`, `-5`, `-4`, `-3`, `-2`, `-1`, `0`, `1`, `2`, `3`, `4`, `5`, `6`, or `:auto`. |\n| `mr` | Integer | Margin right. One of `-6`, `-5`, `-4`, `-3`, `-2`, `-1`, `0`, `1`, `2`, `3`, `4`, `5`, `6`, or `:auto`. |\n| `mt` | Integer | Margin top. One of `-12`, `-11`, `-10`, `-9`, `-8`, `-7`, `-6`, `-5`, `-4`, `-3`, `-2`, `-1`, `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, or `:auto`. |\n| `mx` | Integer | Horizontal margins. One of `0`, `1`, `2`, `3`, `4`, `5`, `6`, or `:auto`. |\n| `my` | Integer | Vertical margins. One of `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, or `12`. |\n| `p` | Integer | Padding. One of `0`, `1`, `2`, `3`, `4`, `5`, `6`, or `:responsive`. |\n| `pb` | Integer | Padding bottom. One of `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, or `12`. |\n| `pl` | Integer | Padding left. One of `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, or `12`. |\n| `pr` | Integer | Padding right. One of `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, or `12`. |\n| `pt` | Integer | Padding left. One of `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, or `12`. |\n| `px` | Integer | Horizontal padding. One of `0`, `1`, `2`, `3`, `4`, `5`, or `6`. |\n| `py` | Integer | Vertical padding. One of `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, or `12`. |\n\n## Typography\n\n| Name | Type | Description |\n| :- | :- | :- |\n| `font_family` | Symbol | Font family. One of `:mono`. |\n| `font_size` | String, Integer, Symbol | One of `0`, `1`, `2`, `3`, `4`, `5`, `6`, `00`, `:normal`, or `:small`. |\n| `font_style` | Symbol | Font style. One of `:italic`. |\n| `font_weight` | Symbol | Font weight. One of `:bold`, `:emphasized`, `:light`, or `:normal`. |\n| `text_align` | Symbol | Text alignment. One of `:center`, `:left`, or `:right`. |\n| `text_transform` | Symbol | Text transformation. One of `:capitalize` or `:uppercase`. |\n| `underline` | Boolean | Whether text should be underlined. |\n| `word_break` | Symbol | Whether to break words on line breaks. One of `:break_all` or `:break_word`. |\n\n## Other\n\n| Name | Type | Description |\n| :- | :- | :- |\n| classes | String | CSS class name value to be concatenated with generated Primer CSS classes. |\n| test_selector | String | Adds `data-test-selector='given value'` in non-Production environments for testing purposes. |"
14235
14373
  }
14236
14374
  ]
@@ -1414,8 +1414,8 @@
1414
1414
  }
1415
1415
  },
1416
1416
  {
1417
- "preview_path": "primer/alpha/banner/dismissable",
1418
- "name": "dismissable",
1417
+ "preview_path": "primer/alpha/banner/dismissible",
1418
+ "name": "dismissible",
1419
1419
  "snapshot": "true",
1420
1420
  "skip_rules": {
1421
1421
  "wont_fix": [