primer_view_components 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +51 -0
- data/README.md +1 -1
- 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 -3
- data/app/assets/styles/primer_view_components.css.map +1 -1
- data/app/components/primer/alpha/action_list/item.rb +2 -2
- data/app/components/primer/alpha/action_list.css +1 -1
- data/app/components/primer/alpha/action_list.css.json +16 -16
- data/app/components/primer/alpha/action_list.css.map +1 -1
- data/app/components/primer/alpha/action_list.pcss +145 -145
- data/app/components/primer/alpha/action_list.rb +30 -15
- data/app/components/primer/alpha/action_menu/action_menu_element.d.ts +2 -1
- data/app/components/primer/alpha/action_menu/action_menu_element.js +44 -34
- data/app/components/primer/alpha/action_menu/action_menu_element.ts +32 -30
- data/app/components/primer/alpha/action_menu/list.rb +6 -1
- data/app/components/primer/alpha/auto_complete.css +1 -1
- data/app/components/primer/alpha/auto_complete.css.map +1 -1
- data/app/components/primer/alpha/auto_complete.pcss +3 -3
- data/app/components/primer/alpha/banner.css +1 -1
- data/app/components/primer/alpha/banner.css.map +1 -1
- data/app/components/primer/alpha/banner.pcss +11 -11
- data/app/components/primer/alpha/button_marketing.css.map +1 -1
- data/app/components/primer/alpha/button_marketing.pcss +5 -12
- data/app/components/primer/alpha/button_marketing.rb +3 -0
- data/app/components/primer/alpha/dialog.css +1 -1
- data/app/components/primer/alpha/dialog.css.map +1 -1
- data/app/components/primer/alpha/dialog.pcss +36 -36
- data/app/components/primer/alpha/dropdown.css +1 -1
- data/app/components/primer/alpha/dropdown.css.map +1 -1
- data/app/components/primer/alpha/dropdown.pcss +12 -12
- data/app/components/primer/alpha/form_control.html.erb +1 -1
- data/app/components/primer/alpha/hellip_button.rb +3 -1
- data/app/components/primer/alpha/layout.css +1 -1
- data/app/components/primer/alpha/layout.css.map +1 -1
- data/app/components/primer/alpha/layout.pcss +4 -4
- data/app/components/primer/alpha/menu.css +1 -1
- data/app/components/primer/alpha/menu.css.map +1 -1
- data/app/components/primer/alpha/menu.pcss +21 -21
- data/app/components/primer/alpha/modal_dialog.js +11 -4
- data/app/components/primer/alpha/modal_dialog.ts +11 -4
- data/app/components/primer/alpha/nav_list/item.rb +2 -0
- data/app/components/primer/alpha/nav_list.js +6 -0
- data/app/components/primer/alpha/nav_list.rb +55 -36
- data/app/components/primer/alpha/nav_list.ts +8 -0
- data/app/components/primer/alpha/octicon_symbols.html.erb +1 -1
- data/app/components/primer/alpha/overlay.css +1 -1
- data/app/components/primer/alpha/overlay.css.json +1 -2
- data/app/components/primer/alpha/overlay.css.map +1 -1
- data/app/components/primer/alpha/overlay.pcss +14 -4
- data/app/components/primer/alpha/segmented_control.css +1 -1
- data/app/components/primer/alpha/segmented_control.css.map +1 -1
- data/app/components/primer/alpha/segmented_control.pcss +24 -33
- data/app/components/primer/alpha/tab_nav.css +1 -1
- data/app/components/primer/alpha/tab_nav.css.map +1 -1
- data/app/components/primer/alpha/tab_nav.pcss +12 -12
- data/app/components/primer/alpha/text_field.css +1 -3
- data/app/components/primer/alpha/text_field.css.json +1 -0
- data/app/components/primer/alpha/text_field.css.map +1 -1
- data/app/components/primer/alpha/text_field.pcss +87 -83
- data/app/components/primer/alpha/toggle_switch.css +1 -1
- data/app/components/primer/alpha/toggle_switch.css.map +1 -1
- data/app/components/primer/alpha/toggle_switch.pcss +12 -12
- data/app/components/primer/alpha/underline_nav.css +1 -1
- data/app/components/primer/alpha/underline_nav.css.map +1 -1
- data/app/components/primer/alpha/underline_nav.pcss +11 -11
- data/app/components/primer/beta/avatar.css +1 -1
- data/app/components/primer/beta/avatar.css.map +1 -1
- data/app/components/primer/beta/avatar.pcss +18 -18
- data/app/components/primer/beta/avatar_stack.css +1 -1
- data/app/components/primer/beta/avatar_stack.css.map +1 -1
- data/app/components/primer/beta/avatar_stack.pcss +5 -5
- data/app/components/primer/beta/base_button.rb +11 -0
- data/app/components/primer/beta/blankslate.css +1 -1
- data/app/components/primer/beta/blankslate.css.map +1 -1
- data/app/components/primer/beta/blankslate.pcss +16 -16
- data/app/components/primer/beta/border_box.css +1 -1
- data/app/components/primer/beta/border_box.css.json +1 -1
- data/app/components/primer/beta/border_box.css.map +1 -1
- data/app/components/primer/beta/border_box.pcss +40 -42
- data/app/components/primer/beta/button.css +1 -1
- data/app/components/primer/beta/button.css.json +4 -0
- data/app/components/primer/beta/button.css.map +1 -1
- data/app/components/primer/beta/button.pcss +39 -24
- data/app/components/primer/beta/button.rb +3 -0
- data/app/components/primer/beta/button_group.css +1 -0
- data/app/components/primer/beta/button_group.css.json +14 -0
- data/app/components/primer/beta/button_group.css.map +1 -0
- data/app/components/primer/beta/button_group.pcss +27 -0
- data/app/components/primer/beta/button_group.rb +19 -19
- data/app/components/primer/beta/close_button.rb +3 -1
- data/app/components/primer/beta/counter.css +1 -1
- data/app/components/primer/beta/counter.css.map +1 -1
- data/app/components/primer/beta/counter.pcss +5 -5
- data/app/components/primer/beta/details.html.erb +6 -2
- data/app/components/primer/beta/details.rb +18 -10
- data/app/components/primer/beta/flash.css +1 -1
- data/app/components/primer/beta/flash.css.map +1 -1
- data/app/components/primer/beta/flash.pcss +12 -12
- data/app/components/primer/beta/icon_button.rb +7 -3
- data/app/components/primer/beta/label.css +1 -1
- data/app/components/primer/beta/label.css.map +1 -1
- data/app/components/primer/beta/label.pcss +3 -3
- data/app/components/primer/beta/popover.css +1 -1
- data/app/components/primer/beta/popover.css.map +1 -1
- data/app/components/primer/beta/popover.pcss +4 -4
- data/app/components/primer/beta/state.css +1 -1
- data/app/components/primer/beta/state.css.map +1 -1
- data/app/components/primer/beta/state.pcss +7 -7
- data/app/components/primer/beta/subhead.css +1 -1
- data/app/components/primer/beta/subhead.css.map +1 -1
- data/app/components/primer/beta/subhead.pcss +9 -9
- data/app/components/primer/beta/timeline_item.css +1 -1
- data/app/components/primer/beta/timeline_item.css.map +1 -1
- data/app/components/primer/beta/timeline_item.pcss +18 -18
- data/app/components/primer/beta/truncate.css +1 -1
- data/app/components/primer/beta/truncate.css.map +1 -1
- data/app/components/primer/beta/truncate.pcss +1 -1
- data/app/components/primer/focus_group.js +1 -10
- data/app/components/primer/focus_group.ts +1 -10
- 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/postcss_mixins/activeIndicatorLine.pcss +4 -4
- data/lib/primer/accessibility.rb +74 -0
- data/lib/primer/forms/form_control.html.erb +1 -1
- data/lib/primer/static/generate_previews.rb +15 -8
- data/lib/primer/view_components/linters/deprecated_components_counter.rb +37 -13
- data/lib/primer/view_components/version.rb +2 -2
- data/lib/primer/yard/lookbook_pages_backend.rb +3 -3
- data/previews/pages/forms/03_caption_templates.md.erb +1 -1
- data/previews/pages/forms/04_after_content.md.erb +1 -1
- data/previews/pages/forms/06_miscellaneous_inputs.md.erb +1 -1
- data/previews/pages/forms/07_toggle_switch_forms.md.erb +1 -1
- data/previews/primer/alpha/action_menu_preview/two_menus.html.erb +13 -0
- data/previews/primer/alpha/action_menu_preview/with_actions.html.erb +21 -0
- data/previews/primer/alpha/action_menu_preview.rb +5 -13
- data/previews/primer/alpha/button_marketing_preview.rb +3 -2
- data/previews/primer/alpha/dialog_preview.rb +4 -3
- data/previews/primer/alpha/hellip_button_preview.rb +3 -2
- data/previews/primer/alpha/nav_list_preview.rb +1 -1
- data/previews/primer/beta/base_button_preview.rb +9 -2
- data/previews/primer/beta/button_group_preview/action_menus.html.erb +8 -0
- data/previews/primer/beta/button_group_preview.rb +49 -11
- data/previews/primer/beta/button_preview/trailing_counter.html.erb +1 -1
- data/previews/primer/beta/button_preview.rb +5 -2
- data/previews/primer/beta/close_button_preview.rb +3 -2
- data/previews/primer/beta/details_preview.rb +11 -8
- data/previews/primer/forms_preview.rb +44 -0
- data/static/arguments.json +4 -4
- data/static/classes.json +378 -372
- data/static/constants.json +0 -1
- data/static/info_arch.json +5150 -1368
- data/static/previews.json +5197 -1433
- metadata +37 -29
- data/previews/primer/forms/forms_preview.rb +0 -48
- /data/previews/primer/{forms/forms_preview → forms_preview}/after_content_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/array_check_box_group_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/caption_template_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/check_box_group_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/check_box_with_nested_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/composed_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/example_toggle_switch_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/horizontal_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/immediate_validation_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/invalid_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/multi_input_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/multi_text_field_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/name_with_question_mark_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/radio_button_group_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/radio_button_with_nested_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/select_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/single_text_field_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/submit_button_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/text_field_and_checkbox_form.html.erb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57fe49ec1bdc4feb70860edd88d98f67795e2c82ba78e1e2f4b27e5a4c090dfe
|
4
|
+
data.tar.gz: 2a2156d5287320bcae2e4e6a0500ed93ce4b9891a3e951ac10020383de79058f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ad88804adfd95f446059c38aa16d47c80675737c7d13de582dd21491024d77795a34274fcae8a3e66d5f2fa6a31d0c83d4c8e7042da3bdb17ad6b2c51737da4
|
7
|
+
data.tar.gz: 85d15c556219d0d22634f3c4af9f41e12ad5dfa6d4696c3d301c551d95817cc4f862b7f53174756a870ae9052cc14974bb06206b2e2b3814fce27daac512ddaf
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,56 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 0.2.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- [#2060](https://github.com/primer/view_components/pull/2060) [`bc40f586`](https://github.com/primer/view_components/commit/bc40f586293a26e977a9b96e538aa5fe92ac5bb1) Thanks [@camertron](https://github.com/camertron)! - ActionMenu: Move aria-checked to button
|
8
|
+
|
9
|
+
* [#2042](https://github.com/primer/view_components/pull/2042) [`9c53f8e0`](https://github.com/primer/view_components/commit/9c53f8e0c158e2f1c6618bf1a2635e4a41021fbb) Thanks [@camertron](https://github.com/camertron)! - Use polymorphic slots in ActionList and NavList
|
10
|
+
|
11
|
+
- [#2070](https://github.com/primer/view_components/pull/2070) [`04fc4f1b`](https://github.com/primer/view_components/commit/04fc4f1baec39993df468d0c9ca4a03803462186) Thanks [@camertron](https://github.com/camertron)! - Fix disabled button behavior
|
12
|
+
|
13
|
+
* [#2074](https://github.com/primer/view_components/pull/2074) [`b39eae8c`](https://github.com/primer/view_components/commit/b39eae8cd033089d3782c4552f9001a71eeceddf) Thanks [@camertron](https://github.com/camertron)! - Allow Beta::Details to be disabled
|
14
|
+
|
15
|
+
### Patch Changes
|
16
|
+
|
17
|
+
- [#2055](https://github.com/primer/view_components/pull/2055) [`5911ff9c`](https://github.com/primer/view_components/commit/5911ff9c3e22e3b52e435a0b7ed54ea97358621c) Thanks [@keithamus](https://github.com/keithamus)! - Tweak Overlay CSS to account for cases where the browser supports :open, :popover-open, both, or neither.
|
18
|
+
|
19
|
+
* [#2008](https://github.com/primer/view_components/pull/2008) [`53190440`](https://github.com/primer/view_components/commit/531904404a962620cca734f1582f0771bd47a125) Thanks [@langermank](https://github.com/langermank)! - Update color vars for `Button` with counter
|
20
|
+
|
21
|
+
- [#2021](https://github.com/primer/view_components/pull/2021) [`7abf0965`](https://github.com/primer/view_components/commit/7abf09658d28640efe278bd00a3d1d03dab3e3e5) Thanks [@keithamus](https://github.com/keithamus)! - dont open dialog if button is aria-disabled
|
22
|
+
|
23
|
+
* [#2006](https://github.com/primer/view_components/pull/2006) [`7282911b`](https://github.com/primer/view_components/commit/7282911ba38b2f11681e2a558e189cf2e6174bd4) Thanks [@keithamus](https://github.com/keithamus)! - Fix ActionMenu staying open when focus moved, in browsers with native popover
|
24
|
+
|
25
|
+
- [#2075](https://github.com/primer/view_components/pull/2075) [`2eb286f2`](https://github.com/primer/view_components/commit/2eb286f2c3f5171b52c6e64b70e1602230fc6e75) Thanks [@camertron](https://github.com/camertron)! - NavList: Add aria-current to active nav item
|
26
|
+
|
27
|
+
* [#2077](https://github.com/primer/view_components/pull/2077) [`fe578c16`](https://github.com/primer/view_components/commit/fe578c166da02173680e4825113ede4c94b9be43) Thanks [@camertron](https://github.com/camertron)! - Don't use aria-disabled for buttons
|
28
|
+
|
29
|
+
- [#2013](https://github.com/primer/view_components/pull/2013) [`b7207d27`](https://github.com/primer/view_components/commit/b7207d27b23c77ea7280cc4175c6d665897e8e40) Thanks [@langermank](https://github.com/langermank)! - Update `ButtonGroup` to use `Beta::Button`
|
30
|
+
|
31
|
+
* [#2073](https://github.com/primer/view_components/pull/2073) [`c4ada3b1`](https://github.com/primer/view_components/commit/c4ada3b1d567f6e819f8321e71d977c16f3215eb) Thanks [@camertron](https://github.com/camertron)! - Fix text_field.pcss to use flex-start instead of start
|
32
|
+
|
33
|
+
- [#2032](https://github.com/primer/view_components/pull/2032) [`607889bc`](https://github.com/primer/view_components/commit/607889bc18c4a4ec98dd966940bb361d272f5f60) Thanks [@langermank](https://github.com/langermank)! - Bug fix: Text field validation wrap styles
|
34
|
+
|
35
|
+
* [#2069](https://github.com/primer/view_components/pull/2069) [`532095e9`](https://github.com/primer/view_components/commit/532095e957b072337ed1707ebc5289990b6d8d56) Thanks [@jalafel](https://github.com/jalafel)! - Add event.stopPropogation to enter event
|
36
|
+
|
37
|
+
- [#2071](https://github.com/primer/view_components/pull/2071) [`c0fa71ec`](https://github.com/primer/view_components/commit/c0fa71ecf718a184b73bdfae5c799efb755ece3d) Thanks [@camertron](https://github.com/camertron)! - ActionMenu: don't swallow events attached via addEventListener
|
38
|
+
|
39
|
+
* [#2059](https://github.com/primer/view_components/pull/2059) [`bf60d7d7`](https://github.com/primer/view_components/commit/bf60d7d703752b9a6c096c8d1b1bd2fd0558a607) Thanks [@camertron](https://github.com/camertron)! - Fix keyboard functionality with deferred loading in ActionMenu
|
40
|
+
|
41
|
+
- [#2027](https://github.com/primer/view_components/pull/2027) [`f6d9fe97`](https://github.com/primer/view_components/commit/f6d9fe9741b66751a3c89cdfb5637a111ec4170b) Thanks [@keithamus](https://github.com/keithamus)! - ActionMenu: enable focussing first element on space activation
|
42
|
+
|
43
|
+
* [#2058](https://github.com/primer/view_components/pull/2058) [`3e50e06c`](https://github.com/primer/view_components/commit/3e50e06c308487b97aa5bf12bdc0c8eef66ba086) Thanks [@jonrohan](https://github.com/jonrohan)! - - Remove manual fallbacks for CSS vars
|
44
|
+
- Update PostCSS plugin to add fallbacks at build time
|
45
|
+
|
46
|
+
- [#2072](https://github.com/primer/view_components/pull/2072) [`70086f5e`](https://github.com/primer/view_components/commit/70086f5e3cbdd360cf85a34de34df83d063652d3) Thanks [@jonrohan](https://github.com/jonrohan)! - ButtonGroup: Change reset selector to use .Button class
|
47
|
+
|
48
|
+
* [#2025](https://github.com/primer/view_components/pull/2025) [`2d1f5074`](https://github.com/primer/view_components/commit/2d1f50747714706f93b8bc64495a56fb72b3e24e) Thanks [@strackoverflow](https://github.com/strackoverflow)! - Preserve aria-label when `Primer::Beta::IconButton` `show_tooltip` is false
|
49
|
+
|
50
|
+
- [#2023](https://github.com/primer/view_components/pull/2023) [`b47a3781`](https://github.com/primer/view_components/commit/b47a37811147af663358cb055fe9ac79701caf43) Thanks [@camertron](https://github.com/camertron)! - Bump popover-polyfill to latest version
|
51
|
+
|
52
|
+
* [#2033](https://github.com/primer/view_components/pull/2033) [`54ed872b`](https://github.com/primer/view_components/commit/54ed872bfb08b8fb07fb9fc9c057627419c601ca) Thanks [@langermank](https://github.com/langermank)! - Add `@primer/primitives` dependency to docs
|
53
|
+
|
3
54
|
## 0.1.9
|
4
55
|
|
5
56
|
### Patch Changes
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@ _Note: This library is under active pre-1.0 development. Breaking changes are li
|
|
10
10
|
|
11
11
|
## Documentation
|
12
12
|
|
13
|
-
Visit [https://primer.style/
|
13
|
+
Visit [https://primer.style/view_components/](https://primer.style/design/components/) to view documentation.
|
14
14
|
|
15
15
|
## License
|
16
16
|
|