playbook_ui 14.5.0.pre.alpha.PLAY1486highchartscssdrivenPOC3954 → 14.5.0.pre.alpha.PLAY1510railsformloading3976

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +0 -1
  3. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.scss +1 -3
  4. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.tsx +184 -5
  5. data/app/pb_kits/playbook/pb_bar_graph/barGraph.test.js +1 -1
  6. data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.tsx +216 -5
  7. data/app/pb_kits/playbook/pb_circle_chart/circleChart.test.js +1 -1
  8. data/app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.ts +11 -3
  9. data/app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.ts +13 -3
  10. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_loading.html.erb +30 -7
  11. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_loading.md +0 -2
  12. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_loading.html.erb +8 -0
  13. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_loading.md +1 -0
  14. data/app/pb_kits/playbook/pb_form/docs/example.yml +1 -0
  15. data/app/pb_kits/playbook/pb_form/form.rb +2 -0
  16. data/app/pb_kits/playbook/pb_form/formHelper.js +39 -0
  17. data/app/pb_kits/playbook/pb_form_pill/_form_pill.tsx +9 -1
  18. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.html.erb +19 -0
  19. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.jsx +27 -0
  20. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.md +1 -0
  21. data/app/pb_kits/playbook/pb_form_pill/docs/example.yml +2 -0
  22. data/app/pb_kits/playbook/pb_form_pill/docs/index.js +1 -0
  23. data/app/pb_kits/playbook/pb_gantt_chart/_gantt_chart.tsx +64 -3
  24. data/app/pb_kits/playbook/pb_gauge/_gauge.tsx +203 -5
  25. data/app/pb_kits/playbook/pb_gauge/gauge.test.js +1 -1
  26. data/app/pb_kits/playbook/pb_line_graph/_line_graph.tsx +154 -5
  27. data/app/pb_kits/playbook/pb_line_graph/lineGraph.test.js +1 -1
  28. data/app/pb_kits/playbook/pb_map/pbMapTheme.ts +17 -195
  29. data/app/pb_kits/playbook/pb_treemap_chart/_treemap_chart.tsx +113 -5
  30. data/app/pb_kits/playbook/pb_treemap_chart/treemapChart.test.js +1 -1
  31. data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +4 -1
  32. data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.tsx +3 -1
  33. data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +3 -1
  34. data/dist/chunks/_typeahead-uXdXDcXW.js +22 -0
  35. data/dist/chunks/_weekday_stacked-t67FO9CK.js +45 -0
  36. data/dist/chunks/lib-DO3XYwLd.js +29 -0
  37. data/dist/chunks/{pb_form_validation-Bu-tMfIi.js → pb_form_validation-BMrySPn2.js} +1 -1
  38. data/dist/chunks/vendor.js +1 -1
  39. data/dist/playbook-doc.js +1 -1
  40. data/dist/playbook-rails-react-bindings.js +1 -1
  41. data/dist/playbook-rails.js +1 -1
  42. data/dist/playbook.css +1 -1
  43. data/lib/playbook/pb_forms_helper.rb +3 -1
  44. data/lib/playbook/version.rb +1 -1
  45. metadata +12 -7
  46. data/app/pb_kits/playbook/pb_dashboard/_highcharts_theme.scss +0 -52
  47. data/dist/chunks/_typeahead-D84d1KBa.js +0 -22
  48. data/dist/chunks/_weekday_stacked-CmT_2e83.js +0 -45
  49. data/dist/chunks/lib-BCt68dVK.js +0 -29
@@ -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)
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "14.5.0"
5
- VERSION = "14.5.0.pre.alpha.PLAY1486highchartscssdrivenPOC3954"
5
+ VERSION = "14.5.0.pre.alpha.PLAY1510railsformloading3976"
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: 14.5.0.pre.alpha.PLAY1486highchartscssdrivenPOC3954
4
+ version: 14.5.0.pre.alpha.PLAY1510railsformloading3976
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-02 00:00:00.000000000 Z
12
+ date: 2024-10-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -776,7 +776,6 @@ files:
776
776
  - app/pb_kits/playbook/pb_currency/docs/_description.md
777
777
  - app/pb_kits/playbook/pb_currency/docs/example.yml
778
778
  - app/pb_kits/playbook/pb_currency/docs/index.js
779
- - app/pb_kits/playbook/pb_dashboard/_highcharts_theme.scss
780
779
  - app/pb_kits/playbook/pb_dashboard/commonSettings.js
781
780
  - app/pb_kits/playbook/pb_dashboard/pbChartsColorsHelper.ts
782
781
  - app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.ts
@@ -1321,10 +1320,13 @@ files:
1321
1320
  - app/pb_kits/playbook/pb_form/docs/_description.md
1322
1321
  - app/pb_kits/playbook/pb_form/docs/_footer.md
1323
1322
  - app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
1323
+ - app/pb_kits/playbook/pb_form/docs/_form_form_with_loading.html.erb
1324
+ - app/pb_kits/playbook/pb_form/docs/_form_form_with_loading.md
1324
1325
  - app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb
1325
1326
  - app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.md
1326
1327
  - app/pb_kits/playbook/pb_form/docs/example.yml
1327
1328
  - app/pb_kits/playbook/pb_form/form.rb
1329
+ - app/pb_kits/playbook/pb_form/formHelper.js
1328
1330
  - app/pb_kits/playbook/pb_form/pb_form_validation.js
1329
1331
  - app/pb_kits/playbook/pb_form_group/_form_group.scss
1330
1332
  - app/pb_kits/playbook/pb_form_group/_form_group.tsx
@@ -1365,6 +1367,9 @@ files:
1365
1367
  - app/pb_kits/playbook/pb_form_pill/docs/_form_pill_size.jsx
1366
1368
  - app/pb_kits/playbook/pb_form_pill/docs/_form_pill_tag.html.erb
1367
1369
  - app/pb_kits/playbook/pb_form_pill/docs/_form_pill_tag.jsx
1370
+ - app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.html.erb
1371
+ - app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.jsx
1372
+ - app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.md
1368
1373
  - app/pb_kits/playbook/pb_form_pill/docs/_form_pill_user.html.erb
1369
1374
  - app/pb_kits/playbook/pb_form_pill/docs/_form_pill_user.jsx
1370
1375
  - app/pb_kits/playbook/pb_form_pill/docs/example.yml
@@ -3071,11 +3076,11 @@ files:
3071
3076
  - app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
3072
3077
  - app/pb_kits/playbook/utilities/text.ts
3073
3078
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3074
- - dist/chunks/_typeahead-D84d1KBa.js
3075
- - dist/chunks/_weekday_stacked-CmT_2e83.js
3079
+ - dist/chunks/_typeahead-uXdXDcXW.js
3080
+ - dist/chunks/_weekday_stacked-t67FO9CK.js
3076
3081
  - dist/chunks/lazysizes-B7xYodB-.js
3077
- - dist/chunks/lib-BCt68dVK.js
3078
- - dist/chunks/pb_form_validation-Bu-tMfIi.js
3082
+ - dist/chunks/lib-DO3XYwLd.js
3083
+ - dist/chunks/pb_form_validation-BMrySPn2.js
3079
3084
  - dist/chunks/vendor.js
3080
3085
  - dist/menu.yml
3081
3086
  - dist/playbook-doc.js
@@ -1,52 +0,0 @@
1
- @import "../tokens/colors";
2
- @import "../tokens/typography";
3
- @import url("https://code.highcharts.com/css/highcharts.css");
4
- // @import "highcharts/css/highcharts";
5
- // @import "highcharts/highcharts.css";
6
-
7
- :root {
8
- --highcharts-color-0: #{$data_1};
9
- --highcharts-color-1: #{$data_2};
10
- --highcharts-color-2: #{$data_3};
11
- --highcharts-color-3: #{$data_4};
12
- --highcharts-color-4: #{$data_5};
13
- --highcharts-color-5: #{$data_6};
14
- --highcharts-color-6: #{$data_7};
15
- --highcharts-color-7: #{$data_8};
16
- }
17
-
18
- .highcharts-title {
19
- font-family: $font_family_base;
20
- font-weight: $bold;
21
- font-size: $heading_3;
22
- color: $text_lt_default;
23
- fill: $text_lt_default;
24
- }
25
-
26
- .highcharts-subtitle {
27
- font-family: $font_family_base;
28
- color: $text_lt_light;
29
- fill: $text_lt_light;
30
- font-weight: $regular;
31
- font-size: $text_base;
32
- }
33
-
34
- .highcharts-yaxis > .highcharts-axis-title {
35
- color: $text_lt_lighter;
36
- fill: $text_lt_lighter;
37
- font-family: $font_family_base;
38
- font-weight: $bold;
39
- font-size: $text_smaller;
40
- }
41
-
42
- .highcharts-axis-labels {
43
- font-family: $font_family_base;
44
- color: $text_lt_lighter;
45
- fill: $text_lt_lighter;
46
- font-weight: $bold;
47
- font-size: $text_smaller;
48
- }
49
-
50
- .highcharts-grid-line {
51
- stroke: $border_light;
52
- }