playbook_ui 14.6.0.pre.rc.20 → 14.6.0.pre.rc.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_loading.html.erb +30 -7
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_loading.md +0 -2
- data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +84 -3
- data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +8 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_separators_hidden.html.erb +9 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_separators_hidden.jsx +33 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subtle_variant.html.erb +10 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subtle_variant.jsx +34 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subtle_variant.md +1 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +4 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/index.js +2 -0
- data/app/pb_kits/playbook/pb_dropdown/dropdown.rb +10 -1
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with_loading.html.erb +39 -0
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with_loading.md +1 -0
- data/app/pb_kits/playbook/pb_form/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_form/form.rb +2 -0
- data/app/pb_kits/playbook/pb_form/formHelper.js +27 -0
- data/dist/chunks/{_typeahead-C9g4qCcE.js → _typeahead-CcgTar9x.js} +1 -1
- data/dist/chunks/_weekday_stacked-NAZZNhRD.js +45 -0
- data/dist/chunks/{lib-CEpcaI8y.js → lib-D-mTv-kp.js} +1 -1
- data/dist/chunks/{pb_form_validation-D9zkwt2b.js → pb_form_validation-BkWGwJsl.js} +1 -1
- data/dist/chunks/vendor.js +1 -1
- data/dist/playbook-doc.js +1 -1
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/dist/playbook.css +1 -1
- data/lib/playbook/pb_forms_helper.rb +3 -1
- data/lib/playbook/version.rb +1 -1
- metadata +14 -6
- data/dist/chunks/_weekday_stacked-GLXxTgor.js +0 -45
@@ -22,9 +22,10 @@ module Playbook
|
|
22
22
|
# @param data [Hash] hash of data attributes
|
23
23
|
# @param validate [Boolean] whether validation should be triggered or not
|
24
24
|
# @see [#form_with] for other options
|
25
|
-
def pb_form_with(data: {}, validate: false, **kwargs, &block)
|
25
|
+
def pb_form_with(data: {}, validate: false, loading: false, **kwargs, &block)
|
26
26
|
data = data.merge("pb-form-validation" => validate)
|
27
27
|
classname = ["pb-form", kwargs[:class]].join(" ")
|
28
|
+
classname += " pb_form_loading" if loading
|
28
29
|
options = kwargs.merge(
|
29
30
|
class: classname,
|
30
31
|
data: data,
|
@@ -33,6 +34,7 @@ module Playbook
|
|
33
34
|
|
34
35
|
content_for(:pb_js, javascript_tag(<<~JS))
|
35
36
|
window.addEventListener("DOMContentLoaded", function() { PbFormValidation.start() })
|
37
|
+
window.addEventListener("DOMContentLoaded", () => formHelper())
|
36
38
|
JS
|
37
39
|
|
38
40
|
form_with(**options, &block)
|
data/lib/playbook/version.rb
CHANGED
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: 14.6.0.pre.rc.
|
4
|
+
version: 14.6.0.pre.rc.22
|
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-10-
|
12
|
+
date: 2024-10-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -1137,10 +1137,15 @@ files:
|
|
1137
1137
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_value.jsx
|
1138
1138
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_error.html.erb
|
1139
1139
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_error.jsx
|
1140
|
+
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_separators_hidden.html.erb
|
1141
|
+
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_separators_hidden.jsx
|
1140
1142
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subcomponent_structure.jsx
|
1141
1143
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subcomponent_structure.md
|
1142
1144
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subcomponent_structure_rails.html.erb
|
1143
1145
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subcomponent_structure_rails.md
|
1146
|
+
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subtle_variant.html.erb
|
1147
|
+
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subtle_variant.jsx
|
1148
|
+
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subtle_variant.md
|
1144
1149
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete.jsx
|
1145
1150
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete.md
|
1146
1151
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_and_custom_display.jsx
|
@@ -1324,10 +1329,13 @@ files:
|
|
1324
1329
|
- app/pb_kits/playbook/pb_form/docs/_description.md
|
1325
1330
|
- app/pb_kits/playbook/pb_form/docs/_footer.md
|
1326
1331
|
- app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
|
1332
|
+
- app/pb_kits/playbook/pb_form/docs/_form_form_with_loading.html.erb
|
1333
|
+
- app/pb_kits/playbook/pb_form/docs/_form_form_with_loading.md
|
1327
1334
|
- app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb
|
1328
1335
|
- app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.md
|
1329
1336
|
- app/pb_kits/playbook/pb_form/docs/example.yml
|
1330
1337
|
- app/pb_kits/playbook/pb_form/form.rb
|
1338
|
+
- app/pb_kits/playbook/pb_form/formHelper.js
|
1331
1339
|
- app/pb_kits/playbook/pb_form/pb_form_validation.js
|
1332
1340
|
- app/pb_kits/playbook/pb_form_group/_form_group.scss
|
1333
1341
|
- app/pb_kits/playbook/pb_form_group/_form_group.tsx
|
@@ -3087,11 +3095,11 @@ files:
|
|
3087
3095
|
- app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
|
3088
3096
|
- app/pb_kits/playbook/utilities/text.ts
|
3089
3097
|
- app/pb_kits/playbook/utilities/validEmojiChecker.ts
|
3090
|
-
- dist/chunks/_typeahead-
|
3091
|
-
- dist/chunks/_weekday_stacked-
|
3098
|
+
- dist/chunks/_typeahead-CcgTar9x.js
|
3099
|
+
- dist/chunks/_weekday_stacked-NAZZNhRD.js
|
3092
3100
|
- dist/chunks/lazysizes-B7xYodB-.js
|
3093
|
-
- dist/chunks/lib-
|
3094
|
-
- dist/chunks/pb_form_validation-
|
3101
|
+
- dist/chunks/lib-D-mTv-kp.js
|
3102
|
+
- dist/chunks/pb_form_validation-BkWGwJsl.js
|
3095
3103
|
- dist/chunks/vendor.js
|
3096
3104
|
- dist/menu.yml
|
3097
3105
|
- dist/playbook-doc.js
|