playbook_ui_docs 15.0.0.pre.alpha.stimulusbutton10763 → 15.1.0.pre.alpha.PLAY2468phonenuminputvalidation10803

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.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui_docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 15.0.0.pre.alpha.stimulusbutton10763
4
+ version: 15.1.0.pre.alpha.PLAY2468phonenuminputvalidation10803
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: 2025-09-25 00:00:00.000000000 Z
12
+ date: 2025-09-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: playbook_ui
@@ -328,10 +328,6 @@ files:
328
328
  - app/pb_kits/playbook/pb_button/docs/_button_loading.html.erb
329
329
  - app/pb_kits/playbook/pb_button/docs/_button_loading.jsx
330
330
  - app/pb_kits/playbook/pb_button/docs/_button_loading.md
331
- - app/pb_kits/playbook/pb_button/docs/_button_managed_disabled.html.erb
332
- - app/pb_kits/playbook/pb_button/docs/_button_managed_disabled.md
333
- - app/pb_kits/playbook/pb_button/docs/_button_managed_disabled_helper.html.erb
334
- - app/pb_kits/playbook/pb_button/docs/_button_managed_disabled_helper.md
335
331
  - app/pb_kits/playbook/pb_button/docs/_button_options.html.erb
336
332
  - app/pb_kits/playbook/pb_button/docs/_button_options.jsx
337
333
  - app/pb_kits/playbook/pb_button/docs/_button_props_swift.md
@@ -1,29 +0,0 @@
1
- <br/>
2
- <%= pb_rails("button", props: { text: "Disable Buttons", variant: "link", id: "toggle-disabled-demo" }) %>
3
- <%= pb_rails("button", props: { text: "Enable Buttons", variant: "link", id: "toggle-enabled-demo" }) %>
4
- <br/>
5
- <%= pb_rails("button", props: { text: "I am a Normal Button", id: "normal_managed_button", data:{pb_button_managed: true}, margin_bottom: "lg" }) %>
6
- <br/>
7
- <%= pb_rails("button", props: { text: "I am an <a> Button", id: "a_tag_managed_button", tag:"a", data:{pb_button_managed: true}, link: "http://google.com", margin_right: "lg" }) %>
8
-
9
- <script>
10
- document.addEventListener('DOMContentLoaded', function () {
11
- const disableTrigger = document.querySelector('#toggle-disabled-demo')
12
- const enableTrigger = document.querySelector('#toggle-enabled-demo')
13
-
14
- // Managed Buttons
15
- const btn = document.querySelector('#normal_managed_button');
16
- const link = document.querySelector('#a_tag_managed_button');
17
-
18
- disableTrigger.addEventListener('click', (e) => {
19
- // Disable both default button and a tag button
20
- btn.setAttribute('disabled', true)
21
- link.setAttribute('aria-disabled', 'true')
22
- });
23
- enableTrigger.addEventListener('click', (e) => {
24
- // Enable both default button and a tag button
25
- btn.removeAttribute('disabled')
26
- link.removeAttribute('aria-disabled')
27
- });
28
- });
29
- </script>
@@ -1,5 +0,0 @@
1
- If needing to toggle the disabled state of the Button dynmically, you can now do so in rails using the `pb-button-managed` data attribute.
2
-
3
- If your button has `data:{ pb-button-managed: true }` on it, you can then toggle state via attributes: for buttons set/remove disabled, for links set/remove aria-disabled="true". This will handle disabling the button, preventing clicks as well as all style changes so you don't have to.
4
-
5
- Click to enable or disable the buttons above and view the code snippet below for details!
@@ -1,18 +0,0 @@
1
- <%= pb_rails("button", props: { text: "Disable Button", variant: "link", id: "toggle-disabled-demo-with-helper" }) %>
2
- <%= pb_rails("button", props: { text: "Enable Button", variant: "link", id: "toggle-enabled-demo-with-helper" }) %>
3
- <br/>
4
- <%= pb_rails("button", props: { text: "Watch me Change!", id: "managed_button_with_helper", data:{pb_button_managed: true} }) %>
5
-
6
- <script>
7
- document.addEventListener('DOMContentLoaded', function () {
8
- const demoBtn = document.querySelector('#managed_button_with_helper')
9
-
10
- const disable = document.querySelector('#toggle-disabled-demo-with-helper')
11
- const enable = document.querySelector('#toggle-enabled-demo-with-helper')
12
-
13
- disable.addEventListener('click', (e) => {demoBtn._pbButton.disable()});
14
-
15
- enable.addEventListener('click', (e) => {demoBtn._pbButton.enable()});
16
-
17
- });
18
- </script>
@@ -1,5 +0,0 @@
1
- The disabled state for the button can also be toggled via small helpers available through the `pb-button-managed` data attribute.
2
-
3
- If your button has `data:{ pb-button-managed: true }` on it, you can then toggle state via the provided `_pbButton.disable()` and `_pbButton.enable()` helpers as shoen in the code snippet below.
4
-
5
- Click to enable or disable the buttons above!