playbook_ui 14.9.0.pre.alpha.play1703errorstatealignment5060 → 14.9.0.pre.alpha.play1742globalheightfixes4766

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/Components/CollapsibleTrail.tsx +6 -1
  3. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +0 -8
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -1
  5. data/app/pb_kits/playbook/pb_advanced_table/table_body.rb +2 -4
  6. data/app/pb_kits/playbook/pb_advanced_table/table_header.html.erb +3 -5
  7. data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +0 -8
  8. data/app/pb_kits/playbook/pb_advanced_table/table_row.rb +0 -2
  9. data/app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb +0 -8
  10. data/app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb +0 -2
  11. data/app/pb_kits/playbook/pb_avatar/_avatar.scss +2 -0
  12. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.jsx +49 -53
  13. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb +36 -29
  14. data/app/pb_kits/playbook/pb_body/_body.scss +13 -14
  15. data/app/pb_kits/playbook/pb_body/_body_mixins.scss +16 -22
  16. data/app/pb_kits/playbook/pb_bread_crumbs/docs/_bread_crumbs_default.jsx +0 -6
  17. data/app/pb_kits/playbook/pb_caption/_caption_mixin.scss +1 -2
  18. data/app/pb_kits/playbook/pb_card/_card_mixin.scss +1 -1
  19. data/app/pb_kits/playbook/pb_collapsible/_collapsible.tsx +4 -9
  20. data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleContent.tsx +2 -2
  21. data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleMain.tsx +2 -2
  22. data/app/pb_kits/playbook/pb_file_upload/_file_upload.scss +0 -5
  23. data/app/pb_kits/playbook/pb_file_upload/_file_upload.tsx +2 -7
  24. data/app/pb_kits/playbook/pb_file_upload/file_upload.html.erb +2 -8
  25. data/app/pb_kits/playbook/pb_form_group/_form_group.scss +2 -11
  26. data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.tsx +1 -17
  27. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis.html.erb +1 -17
  28. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis.jsx +0 -15
  29. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis.md +1 -2
  30. data/app/pb_kits/playbook/pb_home_address_street/home_address_street.rb +1 -15
  31. data/app/pb_kits/playbook/pb_link/_link.scss +3 -3
  32. data/app/pb_kits/playbook/pb_nav/_bold_mixin.scss +1 -11
  33. data/app/pb_kits/playbook/pb_nav/_collapsible_nav.scss +2 -16
  34. data/app/pb_kits/playbook/pb_nav/_vertical_nav.scss +1 -1
  35. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +4 -4
  36. data/app/pb_kits/playbook/pb_selectable_card/selectable_card.html.erb +1 -1
  37. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_height_width.jsx +0 -2
  38. data/app/pb_kits/playbook/pb_skeleton_loading/docs/example.yml +1 -2
  39. data/app/pb_kits/playbook/pb_skeleton_loading/docs/index.js +0 -2
  40. data/app/pb_kits/playbook/pb_stat_change/_stat_change.tsx +36 -44
  41. data/app/pb_kits/playbook/pb_stat_change/stat_change.html.erb +4 -4
  42. data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -5
  43. data/app/pb_kits/playbook/pb_table/docs/index.js +0 -5
  44. data/app/pb_kits/playbook/pb_table/index.ts +26 -100
  45. data/app/pb_kits/playbook/pb_table/styles/_all.scss +1 -2
  46. data/app/pb_kits/playbook/pb_table/subcomponents/_table_row.tsx +1 -106
  47. data/app/pb_kits/playbook/pb_table/table.html.erb +1 -1
  48. data/app/pb_kits/playbook/pb_table/table.rb +2 -17
  49. data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +3 -35
  50. data/app/pb_kits/playbook/pb_text_input/docs/example.yml +0 -1
  51. data/app/pb_kits/playbook/pb_text_input/docs/index.js +0 -1
  52. data/app/pb_kits/playbook/pb_text_input/text_input.test.js +2 -139
  53. data/app/pb_kits/playbook/pb_title/_title.scss +5 -6
  54. data/app/pb_kits/playbook/pb_title/_title_mixin.scss +0 -13
  55. data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +46 -115
  56. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_highlight.jsx +2 -9
  57. data/app/pb_kits/playbook/pb_typeahead/typeahead.html.erb +2 -3
  58. data/app/pb_kits/playbook/tokens/_titles.scss +8 -0
  59. data/app/pb_kits/playbook/utilities/_hover.scss +2 -11
  60. data/app/pb_kits/playbook/utilities/globalProps.ts +0 -2
  61. data/app/pb_kits/playbook/utilities/test/globalProps/hover.test.js +0 -15
  62. data/dist/chunks/_typeahead-B8fkIeXA.js +22 -0
  63. data/dist/chunks/_weekday_stacked-DjRTXEi-.js +45 -0
  64. data/dist/chunks/{lib-CuCy3_xO.js → lib-SyD3buPZ.js} +3 -3
  65. data/dist/chunks/{pb_form_validation-D37k10a0.js → pb_form_validation-Dt8UJgrJ.js} +1 -1
  66. data/dist/chunks/vendor.js +1 -1
  67. data/dist/menu.yml +1 -1
  68. data/dist/playbook-doc.js +1 -1
  69. data/dist/playbook-rails-react-bindings.js +1 -1
  70. data/dist/playbook-rails.js +1 -1
  71. data/dist/playbook.css +1 -1
  72. data/lib/playbook/hover.rb +1 -7
  73. data/lib/playbook/version.rb +1 -1
  74. metadata +6 -27
  75. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail_rails.html.erb +0 -36
  76. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail_rails.md +0 -1
  77. data/app/pb_kits/playbook/pb_form_group/_error_state_mixin.scss +0 -57
  78. data/app/pb_kits/playbook/pb_home_address_street/none_emphasis.html.erb +0 -32
  79. data/app/pb_kits/playbook/pb_home_address_street/none_emphasis.rb +0 -29
  80. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_filter.jsx +0 -166
  81. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_user.jsx +0 -89
  82. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.html.erb +0 -95
  83. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible.jsx +0 -75
  84. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible.md +0 -1
  85. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click.jsx +0 -108
  86. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click.md +0 -2
  87. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content.jsx +0 -94
  88. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content.md +0 -0
  89. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows.jsx +0 -83
  90. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows.md +0 -3
  91. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.jsx +0 -120
  92. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.md +0 -1
  93. data/app/pb_kits/playbook/pb_table/styles/_collapsible.scss +0 -35
  94. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_mask.jsx +0 -88
  95. data/app/pb_kits/playbook/pb_text_input/inputMask.ts +0 -64
  96. data/dist/chunks/_typeahead-l1kq1p9m.js +0 -22
  97. data/dist/chunks/_weekday_stacked-DkCMUF58.js +0 -45
@@ -29,16 +29,12 @@ module Playbook
29
29
  []
30
30
  end
31
31
 
32
- def hover_underline_values
33
- [true, false]
34
- end
35
-
36
32
  def hover_values
37
33
  hover_options.keys.select { |sk| try(sk) }
38
34
  end
39
35
 
40
36
  def hover_attributes
41
- %w[background shadow scale color underline]
37
+ %w[background shadow scale color]
42
38
  end
43
39
 
44
40
  def hover_props
@@ -55,8 +51,6 @@ module Playbook
55
51
  value.each do |key, val|
56
52
  if %i[background color].include?(key)
57
53
  css += "#{prefix}_#{key}-#{val} " if hover_attributes.include?(key.to_s)
58
- elsif %i[underline].include?(key) && val == true
59
- css += "hover_underline "
60
54
  elsif hover_attributes.include?(key.to_s) && send("hover_#{key}_values").include?(val.to_s)
61
55
  css += "#{prefix}_#{key}_#{val} "
62
56
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "14.9.0"
5
- VERSION = "14.9.0.pre.alpha.play1703errorstatealignment5060"
5
+ VERSION = "14.9.0.pre.alpha.play1742globalheightfixes4766"
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.9.0.pre.alpha.play1703errorstatealignment5060
4
+ version: 14.9.0.pre.alpha.play1742globalheightfixes4766
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-12-20 00:00:00.000000000 Z
12
+ date: 2024-12-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -268,8 +268,6 @@ files:
268
268
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_subrow_headers.md
269
269
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
270
270
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.md
271
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail_rails.html.erb
272
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail_rails.md
273
271
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_custom_cell.jsx
274
272
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_custom_cell.md
275
273
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_custom_cell_rails.html.erb
@@ -1372,7 +1370,6 @@ files:
1372
1370
  - app/pb_kits/playbook/pb_form/form.rb
1373
1371
  - app/pb_kits/playbook/pb_form/formHelper.js
1374
1372
  - app/pb_kits/playbook/pb_form/pb_form_validation.js
1375
- - app/pb_kits/playbook/pb_form_group/_error_state_mixin.scss
1376
1373
  - app/pb_kits/playbook/pb_form_group/_form_group.scss
1377
1374
  - app/pb_kits/playbook/pb_form_group/_form_group.tsx
1378
1375
  - app/pb_kits/playbook/pb_form_group/docs/_form_group_button.html.erb
@@ -1511,8 +1508,6 @@ files:
1511
1508
  - app/pb_kits/playbook/pb_home_address_street/home_address_street.html.erb
1512
1509
  - app/pb_kits/playbook/pb_home_address_street/home_address_street.rb
1513
1510
  - app/pb_kits/playbook/pb_home_address_street/home_adress_street.test.js
1514
- - app/pb_kits/playbook/pb_home_address_street/none_emphasis.html.erb
1515
- - app/pb_kits/playbook/pb_home_address_street/none_emphasis.rb
1516
1511
  - app/pb_kits/playbook/pb_home_address_street/street_emphasis.html.erb
1517
1512
  - app/pb_kits/playbook/pb_home_address_street/street_emphasis.rb
1518
1513
  - app/pb_kits/playbook/pb_icon/_icon.scss
@@ -2473,12 +2468,10 @@ files:
2473
2468
  - app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_color.md
2474
2469
  - app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_default.html.erb
2475
2470
  - app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_default.jsx
2476
- - app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_filter.jsx
2477
2471
  - app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_height_width.jsx
2478
2472
  - app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_height_width.md
2479
2473
  - app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_layout.jsx
2480
2474
  - app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_layout.md
2481
- - app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_user.jsx
2482
2475
  - app/pb_kits/playbook/pb_skeleton_loading/docs/example.yml
2483
2476
  - app/pb_kits/playbook/pb_skeleton_loading/docs/index.js
2484
2477
  - app/pb_kits/playbook/pb_skeleton_loading/skeleton_loading.html.erb
@@ -2624,7 +2617,6 @@ files:
2624
2617
  - app/pb_kits/playbook/pb_table/docs/_table_sticky.html.erb
2625
2618
  - app/pb_kits/playbook/pb_table/docs/_table_sticky.jsx
2626
2619
  - app/pb_kits/playbook/pb_table/docs/_table_sticky.md
2627
- - app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.html.erb
2628
2620
  - app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.jsx
2629
2621
  - app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns_react.md
2630
2622
  - app/pb_kits/playbook/pb_table/docs/_table_striped.html.erb
@@ -2640,16 +2632,6 @@ files:
2640
2632
  - app/pb_kits/playbook/pb_table/docs/_table_vertical_border.jsx
2641
2633
  - app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.html.erb
2642
2634
  - app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.jsx
2643
- - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible.jsx
2644
- - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible.md
2645
- - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click.jsx
2646
- - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click.md
2647
- - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content.jsx
2648
- - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content.md
2649
- - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows.jsx
2650
- - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows.md
2651
- - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.jsx
2652
- - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.md
2653
2635
  - app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents.jsx
2654
2636
  - app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents.md
2655
2637
  - app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_as_divs.html.erb
@@ -2662,7 +2644,6 @@ files:
2662
2644
  - app/pb_kits/playbook/pb_table/index.ts
2663
2645
  - app/pb_kits/playbook/pb_table/styles/_alignment.scss
2664
2646
  - app/pb_kits/playbook/pb_table/styles/_all.scss
2665
- - app/pb_kits/playbook/pb_table/styles/_collapsible.scss
2666
2647
  - app/pb_kits/playbook/pb_table/styles/_content.scss
2667
2648
  - app/pb_kits/playbook/pb_table/styles/_desktop_collapse.scss
2668
2649
  - app/pb_kits/playbook/pb_table/styles/_headers.scss
@@ -2726,14 +2707,12 @@ files:
2726
2707
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_error_swift.md
2727
2708
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_inline.html.erb
2728
2709
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_inline.jsx
2729
- - app/pb_kits/playbook/pb_text_input/docs/_text_input_mask.jsx
2730
2710
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_no_label.html.erb
2731
2711
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_no_label.jsx
2732
2712
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_options.html.erb
2733
2713
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_props_swift.md
2734
2714
  - app/pb_kits/playbook/pb_text_input/docs/example.yml
2735
2715
  - app/pb_kits/playbook/pb_text_input/docs/index.js
2736
- - app/pb_kits/playbook/pb_text_input/inputMask.ts
2737
2716
  - app/pb_kits/playbook/pb_text_input/text_input.html.erb
2738
2717
  - app/pb_kits/playbook/pb_text_input/text_input.rb
2739
2718
  - app/pb_kits/playbook/pb_text_input/text_input.test.js
@@ -3210,11 +3189,11 @@ files:
3210
3189
  - app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
3211
3190
  - app/pb_kits/playbook/utilities/text.ts
3212
3191
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3213
- - dist/chunks/_typeahead-l1kq1p9m.js
3214
- - dist/chunks/_weekday_stacked-DkCMUF58.js
3192
+ - dist/chunks/_typeahead-B8fkIeXA.js
3193
+ - dist/chunks/_weekday_stacked-DjRTXEi-.js
3215
3194
  - dist/chunks/lazysizes-B7xYodB-.js
3216
- - dist/chunks/lib-CuCy3_xO.js
3217
- - dist/chunks/pb_form_validation-D37k10a0.js
3195
+ - dist/chunks/lib-SyD3buPZ.js
3196
+ - dist/chunks/pb_form_validation-Dt8UJgrJ.js
3218
3197
  - dist/chunks/vendor.js
3219
3198
  - dist/menu.yml
3220
3199
  - dist/playbook-doc.js
@@ -1,36 +0,0 @@
1
- <% column_definitions = [
2
- {
3
- accessor: "year",
4
- label: "Year",
5
- cellAccessors: ["quarter", "month", "day"],
6
- },
7
- {
8
- accessor: "newEnrollments",
9
- label: "New Enrollments",
10
- },
11
- {
12
- accessor: "scheduledMeetings",
13
- label: "Scheduled Meetings",
14
- },
15
- {
16
- accessor: "attendanceRate",
17
- label: "Attendance Rate",
18
- },
19
- {
20
- accessor: "completedClasses",
21
- label: "Completed Classes",
22
- },
23
- {
24
- accessor: "classCompletionRate",
25
- label: "Class Completion Rate",
26
- },
27
- {
28
- accessor: "graduatedStudents",
29
- label: "Graduated Students",
30
- }
31
- ] %>
32
-
33
- <%= pb_rails("advanced_table", props: { id: "collapsible_trail", table_data: @table_data, column_definitions: column_definitions }) do %>
34
- <%= pb_rails("advanced_table/table_header", props: { column_definitions: column_definitions }) %>
35
- <%= pb_rails("advanced_table/table_body", props: { table_data: @table_data, column_definitions: column_definitions, collapsible_trail: false }) %>
36
- <% end %>
@@ -1 +0,0 @@
1
- `collapsible_trail` is an optional prop that is set to 'true' by default. If set to 'false', it will remove the trail on the left of the rows when subRows are toggled open.
@@ -1,57 +0,0 @@
1
- @mixin error-state-flex-start-selectors {
2
- &:has(.pb_text_input_kit.error):has(.pb_text_input_kit),
3
- &:has(.pb_text_input_kit):has(.pb_date_picker_kit.error),
4
- &:has(.pb_text_input_kit):has(.pb_select_kit_wrapper.error),
5
- &:has(.pb_text_input_kit.error):has(.pb_text_input_kit_label):has(.pb_select_kit_wrapper.error) {
6
- align-items: flex-start;
7
- }
8
- }
9
-
10
- @mixin error-state-center-selectors {
11
- &:has(.pb_select_kit_label):has(.pb_select_kit_wrapper.error):has(.pb_phone_number_input),
12
- &:has(.pb_text_input_kit.error):has(.pb_text_input_kit_label):has([class^=pb_button_kit]) {
13
- align-items: center;
14
- }
15
- }
16
-
17
- @mixin error-state-flex-end-selectors {
18
- &:has(.pb_select_kit_label):has(.pb_select_kit_wrapper.error):has(.pb_phone_number_input):has(.pb_text_input_kit.error) {
19
- align-items: flex-end;
20
- }
21
- }
22
-
23
- @mixin error-state-right-side-select-kit {
24
- &:has(.pb_text_input_kit:not(.error)):has(.pb_text_input_kit_label):has(.pb_select_kit_wrapper.error),
25
- &:has(.pb_text_input_kit.error):has(.pb_text_input_kit_label):has(.pb_select_kit_wrapper) {
26
- align-items: flex-start;
27
-
28
- .pb_select_kit_wrapper {
29
- padding-top: $space_md;
30
- margin-top: 2px;
31
-
32
- .pb_select_kit_caret {
33
- padding-top: $space_md;
34
- }
35
- }
36
-
37
- .pb_select_kit_wrapper.error {
38
- padding-top: $space_md;
39
- margin-top: 2px;
40
-
41
- .pb_select_kit_caret {
42
- padding-top: $space_xl;
43
- }
44
- }
45
- }
46
- }
47
-
48
- @mixin error-state-left-side-select-kit {
49
- &:has(.pb_select_kit_label):has(.pb_select_kit_wrapper):has(.pb_phone_number_input):has(.pb_text_input_kit.error) {
50
- align-items: flex-start;
51
-
52
- .pb_text_input_kit.error {
53
- padding-top: $space_md;
54
- margin-top: 2px;
55
- }
56
- }
57
- }
@@ -1,32 +0,0 @@
1
- <%= pb_rails "body", props: {
2
- classname: "pb_home_address_street_address",
3
- size: 4,
4
- text: object.address_house_style,
5
- dark: object.dark
6
- } %>
7
- <%= pb_rails "body", props: {
8
- classname: "pb_home_address_street_address",
9
- size: 4,
10
- text: object.address_house_style2,
11
- dark: object.dark
12
- } %>
13
- <%= pb_rails "body", props: {
14
- color: "light",
15
- text: object.city_state_zip,
16
- dark: object.dark
17
- } %>
18
-
19
- <% if object.home_id %>
20
- <%= pb_rails("hashtag", props: {
21
- text: "#{object.home_id}",
22
- url: object.home_url || "#",
23
- type: "home",
24
- dark: object.dark,
25
- classname: "home-hashtag",
26
- new_window: object.new_window,
27
- target: object.target_option}) %>
28
- <% end %>
29
-
30
- <%= pb_rails "body", props: { color: "light", tag: "span", dark: object.dark } do %>
31
- <small><%= object.territory %></small>
32
- <% end %>
@@ -1,29 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Playbook
4
- module PbHomeAddressStreet
5
- class NoneEmphasis < Playbook::KitBase
6
- prop :address_house_style
7
- prop :address_house_style2
8
- prop :city_state_zip
9
- prop :home_id, type: Playbook::Props::Number
10
- prop :home_url
11
- prop :new_window, type: Playbook::Props::Boolean,
12
- default: false
13
- prop :target
14
- prop :territory
15
- prop :dark, type: Playbook::Props::Boolean,
16
- default: false
17
-
18
- def target_option
19
- if target && home_url
20
- target
21
- elsif new_window
22
- "_blank"
23
- else
24
- "_self"
25
- end
26
- end
27
- end
28
- end
29
- end
@@ -1,166 +0,0 @@
1
- import React from 'react';
2
- import { Button, Card, Filter, Flex, Select, SkeletonLoading, TextInput } from "playbook-ui";
3
-
4
- const SortingChangeCallback = (sortOptions) => {
5
- alert(JSON.stringify(sortOptions[0]))
6
- }
7
-
8
- const SkeletonLoadingFilter = (props) => {
9
- const isLoading = true
10
-
11
- const options = [
12
- { value: 'USA' },
13
- { value: 'Canada' },
14
- { value: 'Brazil' },
15
- { value: 'Philippines' },
16
- { value: 'A galaxy far far away, like really far away...' },
17
- ]
18
-
19
- return (
20
- <div>
21
- <div>
22
- {isLoading ? (
23
- <Card
24
- marginBottom="lg"
25
- {...props}
26
- >
27
- <Flex
28
- alignItems="center"
29
- justify="between"
30
- orientation="row"
31
- >
32
- <Flex
33
- alignItems="center"
34
- justify="start"
35
- orientation="row"
36
- >
37
- <SkeletonLoading
38
- borderRadius="rounded"
39
- height="40px"
40
- marginRight="sm"
41
- width="40px"
42
- {...props}
43
- />
44
- <SkeletonLoading
45
- height="16px"
46
- marginRight="md"
47
- width="80px"
48
- {...props}
49
- />
50
- </Flex>
51
- <Flex
52
- alignItems="center"
53
- justify="end"
54
- orientation="row"
55
- >
56
- <SkeletonLoading
57
- height="18px"
58
- width="120px"
59
- {...props}
60
- />
61
- </Flex>
62
- </Flex>
63
- </Card>
64
- ) : (
65
- <Filter
66
- filters={{ 'Full Name': 'John Wick' }}
67
- marginBottom="lg"
68
- minWidth="375px"
69
- results={546}
70
- sortOptions={{
71
- popularity: 'Popularity',
72
- // eslint-disable-next-line
73
- manager_title: 'Manager\'s Title',
74
- // eslint-disable-next-line
75
- manager_name: 'Manager\'s Name',
76
- }}
77
- sortValue={[{ name: 'popularity', dir: 'desc' }]}
78
- >
79
- {({ closePopover }) => (
80
- <form>
81
- <TextInput
82
- label="Example Text Field"
83
- placeholder="Enter Text"
84
- />
85
- <Select
86
- blankSelection="Select One..."
87
- label="Example Collection Select"
88
- name="Collection Select"
89
- options={options}
90
- />
91
- <Flex spacing="between">
92
- <Button
93
- onClick={closePopover}
94
- text="Filter"
95
- />
96
- <Button
97
- text="Defaults"
98
- variant="secondary"
99
- />
100
- </Flex>
101
- </form>
102
- )}
103
- </Filter>
104
- )}
105
- </div>
106
- <div>
107
- {isLoading ? (
108
- <SkeletonLoading
109
- height="127px"
110
- marginBottom="lg"
111
- width="100%"
112
- {...props}
113
- />
114
- ) : (
115
- <Filter
116
- double
117
- filters={{
118
- 'Full Name': 'John Wick',
119
- 'City': 'San Francisco',
120
- }}
121
- marginBottom="xl"
122
- minWidth="375px"
123
- onSortChange={SortingChangeCallback}
124
- results={1}
125
- sortOptions={{
126
- popularity: 'Popularity',
127
- // eslint-disable-next-line
128
- manager_title: 'Manager\'s Title',
129
- // eslint-disable-next-line
130
- manager_name: 'Manager\'s Name',
131
- }}
132
- sortValue={[{ name: 'popularity', dir: 'desc' }]}
133
- >
134
- {({ closePopover }) => (
135
- <form>
136
- <TextInput
137
- label="Full Name"
138
- placeholder="Enter name"
139
- />
140
- <Select
141
- blankSelection="Select One..."
142
- label="Territory"
143
- maxWidth="sm"
144
- name="location"
145
- options={options}
146
- />
147
- <Flex spacing="between">
148
- <Button
149
- onClick={closePopover}
150
- text="Filter"
151
- />
152
- <Button
153
- text="Defaults"
154
- variant="secondary"
155
- />
156
- </Flex>
157
- </form>
158
- )}
159
- </Filter>
160
- )}
161
- </div>
162
- </div>
163
- )
164
- }
165
-
166
- export default SkeletonLoadingFilter;
@@ -1,89 +0,0 @@
1
- import React from 'react';
2
- import { Flex, SkeletonLoading, User } from "playbook-ui";
3
-
4
- const SkeletonLoadingUser = (props) => {
5
- const isLoading = true
6
-
7
- return (
8
- <div>
9
- <div>
10
- {isLoading ? (
11
- <Flex alignItems="center">
12
- <SkeletonLoading
13
- borderRadius="rounded"
14
- height="38px"
15
- paddingRight="sm"
16
- width="38px"
17
- {...props}
18
- />
19
- <SkeletonLoading
20
- gap="xxs"
21
- height="18px"
22
- stack="2"
23
- width="161px"
24
- {...props}
25
- />
26
- </Flex>
27
- ) : (
28
- <User
29
- align="left"
30
- avatarUrl="https://randomuser.me/api/portraits/women/44.jpg"
31
- name="Anna Black"
32
- orientation="horizontal"
33
- title="Remodeling Consultant"
34
- {...props}
35
- />
36
- )}
37
- </div>
38
- <div>
39
- {isLoading ? (
40
- <Flex
41
- alignItems="start"
42
- paddingTop="md"
43
- >
44
- <Flex
45
- alignItems="center"
46
- flexDirection="column"
47
- >
48
- <SkeletonLoading
49
- borderRadius="rounded"
50
- height="80px"
51
- paddingBottom="xs"
52
- width="80px"
53
- {...props}
54
- />
55
- <SkeletonLoading
56
- height="32px"
57
- paddingBottom="xxs"
58
- width="144px"
59
- {...props}
60
- />
61
- <SkeletonLoading
62
- height="21px"
63
- width="164px"
64
- {...props}
65
- />
66
- </Flex>
67
- </Flex>
68
- ) : (
69
- <Flex
70
- alignItems="start"
71
- paddingTop="md"
72
- >
73
- <User
74
- align="center"
75
- avatarUrl="https://randomuser.me/api/portraits/women/44.jpg"
76
- name="Anna Black"
77
- orientation="vertical"
78
- size="lg"
79
- title="Remodeling Consultant"
80
- {...props}
81
- />
82
- </Flex>
83
- )}
84
- </div>
85
- </div>
86
- )
87
- }
88
-
89
- export default SkeletonLoadingUser;
@@ -1,95 +0,0 @@
1
- <%= pb_rails("table", props: { size: "md", responsive: "scroll", sticky_left_column: ["1", "2", "3"] }) do %>
2
- <thead>
3
- <tr>
4
- <th id="1">Column 1</th>
5
- <th id="2">Column 2</th>
6
- <th id="3">Column 3</th>
7
- <th>Column 4</th>
8
- <th>Column 5</th>
9
- <th>Column 6</th>
10
- <th>Column 7</th>
11
- <th>Column 8</th>
12
- <th>Column 9</th>
13
- <th>Column 10</th>
14
- <th>Column 11</th>
15
- <th>Column 12</th>
16
- <th>Column 13</th>
17
- <th>Column 14</th>
18
- <th>Column 15</th>
19
- </tr>
20
- </thead>
21
- <tbody>
22
- <tr>
23
- <td id="1">Value 1</td>
24
- <td id="2">Value 2</td>
25
- <td id="3">Value 3</td>
26
- <td>Value 4</td>
27
- <td>Value 5</td>
28
- <td>Column 6</td>
29
- <td>Column 7</td>
30
- <td>Column 8</td>
31
- <td>Column 9</td>
32
- <td>Column 10</td>
33
- <td>Column 11</td>
34
- <td>Column 12</td>
35
- <td>Column 13</td>
36
- <td>Column 14</td>
37
- <td>Column 15</td>
38
-
39
- </tr>
40
- <tr>
41
- <td id="1">Value 1</td>
42
- <td id="2">Value 2</td>
43
- <td id="3">Value 3</td>
44
- <td>Value 4</td>
45
- <td>Value 5</td>
46
- <td>Column 6</td>
47
- <td>Column 7</td>
48
- <td>Column 8</td>
49
- <td>Column 9</td>
50
- <td>Column 10</td>
51
- <td>Column 11</td>
52
- <td>Column 12</td>
53
- <td>Column 13</td>
54
- <td>Column 14</td>
55
- <td>Column 15</td>
56
-
57
- </tr>
58
- <tr>
59
- <td id="1">Value 1</td>
60
- <td id="2">Value 2</td>
61
- <td id="3">Value 3</td>
62
- <td>Value 4</td>
63
- <td>Value 5</td>
64
- <td>Column 6</td>
65
- <td>Column 7</td>
66
- <td>Column 8</td>
67
- <td>Column 9</td>
68
- <td>Column 10</td>
69
- <td>Column 11</td>
70
- <td>Column 12</td>
71
- <td>Column 13</td>
72
- <td>Column 14</td>
73
- <td>Column 15</td>
74
-
75
- </tr>
76
- <tr>
77
- <td id="1">Value 1</td>
78
- <td id="2">Value 2</td>
79
- <td id="3">Value 3</td>
80
- <td>Value 4</td>
81
- <td>Value 5</td>
82
- <td>Column 6</td>
83
- <td>Column 7</td>
84
- <td>Column 8</td>
85
- <td>Column 9</td>
86
- <td>Column 10</td>
87
- <td>Column 11</td>
88
- <td>Column 12</td>
89
- <td>Column 13</td>
90
- <td>Column 14</td>
91
- <td>Column 15</td>
92
-
93
- </tr>
94
- </tbody>
95
- <% end %>