playbook_ui 13.31.0.pre.alpha.PBNTR342navtabbing3231 → 13.31.0.pre.alpha.PLAY882formpillprimaryandneutral3201

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_background/background.html.erb +2 -11
  3. data/app/pb_kits/playbook/pb_body/body.html.erb +1 -6
  4. data/app/pb_kits/playbook/pb_bread_crumbs/bread_crumb_item.html.erb +1 -6
  5. data/app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.html.erb +1 -6
  6. data/app/pb_kits/playbook/pb_button/_button.scss +3 -3
  7. data/app/pb_kits/playbook/pb_button/_button_mixins.scss +2 -3
  8. data/app/pb_kits/playbook/pb_caption/_caption_mixin.scss +1 -1
  9. data/app/pb_kits/playbook/pb_caption/caption.html.erb +1 -6
  10. data/app/pb_kits/playbook/pb_card/card.html.erb +1 -7
  11. data/app/pb_kits/playbook/pb_dashboard/commonSettings.js +1 -1
  12. data/app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.ts +1 -1
  13. data/app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.ts +1 -1
  14. data/app/pb_kits/playbook/pb_detail/detail.html.erb +1 -6
  15. data/app/pb_kits/playbook/pb_dialog/dialog.html.erb +1 -6
  16. data/app/pb_kits/playbook/pb_dialog/dialog_body.html.erb +1 -6
  17. data/app/pb_kits/playbook/pb_dialog/dialog_footer.html.erb +2 -5
  18. data/app/pb_kits/playbook/pb_dialog/dialog_header.html.erb +1 -6
  19. data/app/pb_kits/playbook/pb_flex/flex.html.erb +1 -5
  20. data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +109 -6
  21. data/app/pb_kits/playbook/pb_form_pill/_form_pill.test.jsx +53 -0
  22. data/app/pb_kits/playbook/pb_form_pill/_form_pill.tsx +11 -2
  23. data/app/pb_kits/playbook/pb_form_pill/form_pill.html.erb +1 -1
  24. data/app/pb_kits/playbook/pb_form_pill/form_pill.rb +5 -1
  25. data/app/pb_kits/playbook/pb_hashtag/hashtag.html.erb +1 -6
  26. data/app/pb_kits/playbook/pb_highlight/highlight.html.erb +1 -5
  27. data/app/pb_kits/playbook/pb_home_address_street/home_address_street.html.erb +1 -5
  28. data/app/pb_kits/playbook/pb_nav/docs/example.yml +0 -1
  29. data/app/pb_kits/playbook/pb_nav/nav.rb +0 -9
  30. data/app/pb_kits/playbook/playbook-rails.js +0 -3
  31. data/app/pb_kits/playbook/tokens/_titles.scss +4 -4
  32. data/app/pb_kits/playbook/tokens/_typography.scss +10 -10
  33. data/dist/playbook-rails.js +6 -6
  34. data/dist/reset.css +1 -1
  35. data/lib/playbook/version.rb +1 -1
  36. metadata +3 -5
  37. data/app/pb_kits/playbook/pb_nav/docs/_tab_nav.html.erb +0 -12
  38. data/app/pb_kits/playbook/pb_nav/docs/_tab_nav.html.md +0 -0
  39. data/app/pb_kits/playbook/pb_nav/index.js +0 -43
data/dist/reset.css CHANGED
@@ -1 +1 @@
1
- *{box-sizing:border-box;margin:0;padding:0}*:before,*:after{box-sizing:border-box}html{-webkit-tap-highlight-color:rgba(0,0,0,0);height:100vh;overflow-x:hidden}body{font-family:"Power Centra","Helvetica Neue",Helvetica,Arial,sans_serif;font-size:15.5px;line-height:1.5;background-color:#f3f7fb;height:100%;letter-spacing:.003em;font-weight:400;font-style:normal;text-rendering:optimizeLegibility;-moz-font-feature-settings:"liga" on;color:#242b42;margin:0 !important;padding:0 !important;box-sizing:border-box;min-height:100vh;padding:50px}a{text-decoration:none;color:#0056cf}
1
+ *{box-sizing:border-box;margin:0;padding:0}*:before,*:after{box-sizing:border-box}html{-webkit-tap-highlight-color:rgba(0,0,0,0);height:100vh;overflow-x:hidden}body{font-family:"Proxima Nova","Helvetica Neue",Helvetica,Arial,sans_serif;font-size:16px;line-height:1.5;background-color:#f3f7fb;height:100%;letter-spacing:0;font-weight:400;font-style:normal;text-rendering:optimizeLegibility;-moz-font-feature-settings:"liga" on;color:#242b42;margin:0 !important;padding:0 !important;box-sizing:border-box;min-height:100vh;padding:50px}a{text-decoration:none;color:#0056cf}
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "13.31.0"
5
- VERSION = "13.31.0.pre.alpha.PBNTR342navtabbing3231"
5
+ VERSION = "13.31.0.pre.alpha.PLAY882formpillprimaryandneutral3201"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.31.0.pre.alpha.PBNTR342navtabbing3231
4
+ version: 13.31.0.pre.alpha.PLAY882formpillprimaryandneutral3201
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-07-11 00:00:00.000000000 Z
12
+ date: 2024-07-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -1323,6 +1323,7 @@ files:
1323
1323
  - app/pb_kits/playbook/pb_form_group/form_group.rb
1324
1324
  - app/pb_kits/playbook/pb_form_group/form_group.test.js
1325
1325
  - app/pb_kits/playbook/pb_form_pill/_form_pill.scss
1326
+ - app/pb_kits/playbook/pb_form_pill/_form_pill.test.jsx
1326
1327
  - app/pb_kits/playbook/pb_form_pill/_form_pill.tsx
1327
1328
  - app/pb_kits/playbook/pb_form_pill/docs/_form_pill_example.html.erb
1328
1329
  - app/pb_kits/playbook/pb_form_pill/docs/_form_pill_example.jsx
@@ -1870,8 +1871,6 @@ files:
1870
1871
  - app/pb_kits/playbook/pb_nav/docs/_subtle_no_highlight_nav.jsx
1871
1872
  - app/pb_kits/playbook/pb_nav/docs/_subtle_with_icons_nav.html.erb
1872
1873
  - app/pb_kits/playbook/pb_nav/docs/_subtle_with_icons_nav.jsx
1873
- - app/pb_kits/playbook/pb_nav/docs/_tab_nav.html.erb
1874
- - app/pb_kits/playbook/pb_nav/docs/_tab_nav.html.md
1875
1874
  - app/pb_kits/playbook/pb_nav/docs/_with_icons_nav.html.erb
1876
1875
  - app/pb_kits/playbook/pb_nav/docs/_with_icons_nav.jsx
1877
1876
  - app/pb_kits/playbook/pb_nav/docs/_with_img_nav.html.erb
@@ -1879,7 +1878,6 @@ files:
1879
1878
  - app/pb_kits/playbook/pb_nav/docs/_with_img_nav.md
1880
1879
  - app/pb_kits/playbook/pb_nav/docs/example.yml
1881
1880
  - app/pb_kits/playbook/pb_nav/docs/index.js
1882
- - app/pb_kits/playbook/pb_nav/index.js
1883
1881
  - app/pb_kits/playbook/pb_nav/item.html.erb
1884
1882
  - app/pb_kits/playbook/pb_nav/item.rb
1885
1883
  - app/pb_kits/playbook/pb_nav/nav.html.erb
@@ -1,12 +0,0 @@
1
- <%= pb_rails("nav", props: { orientation: "horizontal", variant: "subtle", tabbing: true }) do %>
2
- <%= pb_rails("nav/item", props: { text: "About", active: true, data: { pb_nav_item_tab: "about" }, cursor: "pointer" }) %>
3
- <%= pb_rails("nav/item", props: { text: "Case Studies", data: { pb_nav_item_tab: "case_studies" }, cursor: "pointer" }) %>
4
- <% end %>
5
-
6
- <div id="about">
7
- This is about!
8
- </div>
9
-
10
- <div id="case_studies">
11
- This is case studies!
12
- </div>
File without changes
@@ -1,43 +0,0 @@
1
- import PbEnhancedElement from '../pb_enhanced_element'
2
-
3
- const NAV_SELECTOR = '[data-pb-nav-tab]'
4
- const NAV_ITEM_SELECTOR = '[data-pb-nav-item-tab]'
5
-
6
- export default class PbNav extends PbEnhancedElement {
7
- static get selector() {
8
- return NAV_SELECTOR
9
- }
10
-
11
- connect() {
12
- this.hideAndAddEventListeners()
13
- }
14
-
15
- hideAndAddEventListeners() {
16
- const navItems = this.element.querySelectorAll(NAV_ITEM_SELECTOR)
17
- navItems.forEach((navItem) => {
18
- if (!navItem.className.includes('active')) {
19
- this.changeContentDisplay(navItem.dataset.pbNavItemTab, 'none')
20
- }
21
-
22
- navItem.addEventListener('click', event => this.handleNavItemClick(event))
23
- })
24
- }
25
-
26
- handleNavItemClick(event) {
27
- event.preventDefault()
28
- const navItem = event.target.closest(NAV_ITEM_SELECTOR)
29
- this.changeContentDisplay(navItem.dataset.pbNavItemTab, 'block')
30
-
31
- const navItems = this.element.querySelectorAll(NAV_ITEM_SELECTOR)
32
- navItems.forEach((navItemSelected) => {
33
- if (navItem !== navItemSelected) {
34
- this.changeContentDisplay(navItemSelected.dataset.pbNavItemTab, 'none')
35
- }
36
- })
37
- }
38
-
39
- changeContentDisplay(contentId, display) {
40
- const content = document.getElementById(contentId)
41
- content.style.display = display
42
- }
43
- }