playbook_ui 13.31.0 → 13.32.0.pre.alpha.PBNTR405dropdownformfixesrails3301
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_bar_graph/docs/_bar_graph_custom.md +4 -0
- data/app/pb_kits/playbook/pb_button/_button.scss +3 -3
- data/app/pb_kits/playbook/pb_button/_button_mixins.scss +3 -2
- data/app/pb_kits/playbook/pb_caption/_caption_mixin.scss +1 -1
- data/app/pb_kits/playbook/pb_collapsible/__snapshots__/collapsible.test.js.snap +1 -1
- data/app/pb_kits/playbook/pb_dashboard/commonSettings.js +1 -1
- data/app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.ts +1 -1
- data/app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.ts +1 -1
- data/app/pb_kits/playbook/pb_date_year_stacked/docs/_date_year_stacked_default.jsx +4 -1
- data/app/pb_kits/playbook/pb_draggable/context/index.tsx +15 -1
- data/app/pb_kits/playbook/pb_draggable/context/types.ts +5 -0
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_default.jsx +14 -19
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_default.md +5 -3
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards.md +7 -3
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list.md +3 -5
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list.md +3 -5
- data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +12 -7
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_blank_selection.html.erb +10 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_blank_selection.jsx +31 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_value.html.erb +10 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_value.jsx +31 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +4 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/index.js +3 -1
- data/app/pb_kits/playbook/pb_dropdown/dropdown.html.erb +4 -3
- data/app/pb_kits/playbook/pb_dropdown/dropdown.rb +13 -0
- data/app/pb_kits/playbook/pb_dropdown/dropdown_trigger.rb +1 -1
- data/app/pb_kits/playbook/pb_dropdown/index.js +95 -8
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +9 -0
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +109 -6
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.test.jsx +53 -0
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.tsx +11 -2
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_example.html.erb +5 -1
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_example.jsx +1 -0
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_size.html.erb +2 -0
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_size.jsx +2 -0
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_tag.html.erb +4 -1
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_tag.jsx +3 -2
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_user.html.erb +2 -0
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_user.jsx +2 -0
- data/app/pb_kits/playbook/pb_form_pill/form_pill.html.erb +1 -1
- data/app/pb_kits/playbook/pb_form_pill/form_pill.rb +5 -1
- data/app/pb_kits/playbook/pb_icon/_icon.scss +210 -1
- data/app/pb_kits/playbook/pb_icon/_icon.tsx +100 -41
- data/app/pb_kits/playbook/pb_icon/icon.rb +33 -19
- data/app/pb_kits/playbook/pb_nav/_nav_item.test.js +2 -2
- data/app/pb_kits/playbook/pb_nav/docs/_tab_nav.html.erb +48 -0
- data/app/pb_kits/playbook/pb_nav/docs/_tab_nav.md +3 -0
- data/app/pb_kits/playbook/pb_nav/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_nav/index.js +43 -0
- data/app/pb_kits/playbook/pb_nav/nav.rb +9 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/MoreExtensionsDropdown.tsx +1 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/ToolbarDropdown.tsx +1 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.tsx +8 -23
- data/app/pb_kits/playbook/pb_star_rating/_star_rating.scss +11 -2
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_interactive.html.erb +1 -0
- data/app/pb_kits/playbook/pb_star_rating/docs/example.yml +1 -1
- data/app/pb_kits/playbook/pb_star_rating/index.js +50 -0
- data/app/pb_kits/playbook/pb_star_rating/star_rating.html.erb +25 -5
- data/app/pb_kits/playbook/pb_star_rating/star_rating.rb +6 -0
- data/app/pb_kits/playbook/pb_table/_table.tsx +1 -1
- data/app/pb_kits/playbook/pb_table/index.ts +4 -4
- data/app/pb_kits/playbook/pb_table/subcomponents/_table_body.tsx +1 -1
- data/app/pb_kits/playbook/pb_table/subcomponents/_table_cell.tsx +1 -1
- data/app/pb_kits/playbook/pb_table/subcomponents/_table_head.tsx +1 -1
- data/app/pb_kits/playbook/pb_table/subcomponents/_table_header.tsx +1 -1
- data/app/pb_kits/playbook/pb_table/subcomponents/_table_row.tsx +1 -1
- data/app/pb_kits/playbook/pb_table/table.test.js +2 -0
- data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +1 -1
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_textarea/_textarea.tsx +45 -27
- data/app/pb_kits/playbook/pb_textarea/index.tsx +3 -3
- data/app/pb_kits/playbook/pb_time/_time.tsx +3 -3
- data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.tsx +1 -1
- data/app/pb_kits/playbook/pb_timeline/_item.tsx +1 -1
- data/app/pb_kits/playbook/pb_timeline/_timeline.tsx +1 -1
- data/app/pb_kits/playbook/pb_title_detail/_title_detail.tsx +10 -10
- data/app/pb_kits/playbook/pb_toggle/_toggle.tsx +1 -1
- data/app/pb_kits/playbook/pb_tooltip/_tooltip.tsx +2 -2
- data/app/pb_kits/playbook/pb_treemap_chart/_treemap_chart.tsx +1 -2
- data/app/pb_kits/playbook/pb_treemap_chart/treemapChart.test.js +2 -0
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +3 -3
- data/app/pb_kits/playbook/pb_typeahead/components/ClearIndicator.tsx +4 -4
- data/app/pb_kits/playbook/pb_typeahead/components/Control.tsx +11 -7
- data/app/pb_kits/playbook/pb_typeahead/components/IndicatorsContainer.tsx +8 -3
- data/app/pb_kits/playbook/pb_typeahead/components/MenuList.tsx +6 -1
- data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.tsx +18 -19
- data/app/pb_kits/playbook/pb_typeahead/components/Option.tsx +6 -6
- data/app/pb_kits/playbook/pb_typeahead/components/Placeholder.tsx +6 -6
- data/app/pb_kits/playbook/pb_typeahead/components/ValueContainer.tsx +3 -3
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_menu_list.jsx +2 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.html.erb +22 -57
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.jsx +2 -2
- data/app/pb_kits/playbook/pb_typeahead/index.ts +31 -31
- data/app/pb_kits/playbook/pb_user/_user.tsx +1 -1
- data/app/pb_kits/playbook/pb_user_badge/_user_badge.tsx +6 -6
- data/app/pb_kits/playbook/pb_user_badge/badges/million-dollar.tsx +236 -235
- data/app/pb_kits/playbook/pb_user_badge/badges/veteran.tsx +1 -1
- data/app/pb_kits/playbook/pb_walkthrough/_walkthrough.tsx +68 -63
- data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.tsx +2 -2
- data/app/pb_kits/playbook/playbook-rails.js +6 -0
- data/app/pb_kits/playbook/tokens/_titles.scss +4 -4
- data/app/pb_kits/playbook/tokens/_typography.scss +10 -10
- data/dist/menu.yml +566 -472
- data/dist/playbook-rails.js +7 -7
- data/dist/reset.css +1 -1
- data/lib/playbook/forms/builder/star_rating_field.rb +14 -0
- data/lib/playbook/forms/builder.rb +1 -0
- data/lib/playbook/version.rb +2 -2
- metadata +16 -6
- data/app/pb_kits/playbook/pb_icon/icon_aliases.json +0 -39
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:"
|
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}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Playbook
|
4
|
+
module Forms
|
5
|
+
class Builder
|
6
|
+
def star_rating_field(name, props: {})
|
7
|
+
props[:name] = name
|
8
|
+
props[:margin_bottom] = "sm"
|
9
|
+
props[:label] = @template.label(@object_name, name) if props[:label] == true
|
10
|
+
@template.pb_rails("star_rating", props: props)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -14,6 +14,7 @@ module Playbook
|
|
14
14
|
require_relative "builder/multi_level_select_field"
|
15
15
|
require_relative "builder/phone_number_field"
|
16
16
|
require_relative "builder/dropdown_field"
|
17
|
+
require_relative "builder/star_rating_field"
|
17
18
|
|
18
19
|
prepend(FormFieldBuilder.new(:email_field, kit_name: "text_input"))
|
19
20
|
prepend(FormFieldBuilder.new(:number_field, kit_name: "text_input"))
|
data/lib/playbook/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playbook_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 13.
|
4
|
+
version: 13.32.0.pre.alpha.PBNTR405dropdownformfixesrails3301
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Power UX
|
8
8
|
- Power Devs
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-07-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -1101,9 +1101,13 @@ files:
|
|
1101
1101
|
- app/pb_kits/playbook/pb_dropdown/_dropdown.scss
|
1102
1102
|
- app/pb_kits/playbook/pb_dropdown/_dropdown.tsx
|
1103
1103
|
- app/pb_kits/playbook/pb_dropdown/context/index.tsx
|
1104
|
+
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_blank_selection.html.erb
|
1105
|
+
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_blank_selection.jsx
|
1104
1106
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.html.erb
|
1105
1107
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.jsx
|
1106
1108
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.md
|
1109
|
+
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_value.html.erb
|
1110
|
+
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_value.jsx
|
1107
1111
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_error.html.erb
|
1108
1112
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_error.jsx
|
1109
1113
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subcomponent_structure.jsx
|
@@ -1323,6 +1327,7 @@ files:
|
|
1323
1327
|
- app/pb_kits/playbook/pb_form_group/form_group.rb
|
1324
1328
|
- app/pb_kits/playbook/pb_form_group/form_group.test.js
|
1325
1329
|
- app/pb_kits/playbook/pb_form_pill/_form_pill.scss
|
1330
|
+
- app/pb_kits/playbook/pb_form_pill/_form_pill.test.jsx
|
1326
1331
|
- app/pb_kits/playbook/pb_form_pill/_form_pill.tsx
|
1327
1332
|
- app/pb_kits/playbook/pb_form_pill/docs/_form_pill_example.html.erb
|
1328
1333
|
- app/pb_kits/playbook/pb_form_pill/docs/_form_pill_example.jsx
|
@@ -1459,7 +1464,6 @@ files:
|
|
1459
1464
|
- app/pb_kits/playbook/pb_icon/icon.html.erb
|
1460
1465
|
- app/pb_kits/playbook/pb_icon/icon.rb
|
1461
1466
|
- app/pb_kits/playbook/pb_icon/icon.test.js
|
1462
|
-
- app/pb_kits/playbook/pb_icon/icon_aliases.json
|
1463
1467
|
- app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss
|
1464
1468
|
- app/pb_kits/playbook/pb_icon_circle/_icon_circle.tsx
|
1465
1469
|
- app/pb_kits/playbook/pb_icon_circle/docs/_description.md
|
@@ -1870,6 +1874,8 @@ files:
|
|
1870
1874
|
- app/pb_kits/playbook/pb_nav/docs/_subtle_no_highlight_nav.jsx
|
1871
1875
|
- app/pb_kits/playbook/pb_nav/docs/_subtle_with_icons_nav.html.erb
|
1872
1876
|
- app/pb_kits/playbook/pb_nav/docs/_subtle_with_icons_nav.jsx
|
1877
|
+
- app/pb_kits/playbook/pb_nav/docs/_tab_nav.html.erb
|
1878
|
+
- app/pb_kits/playbook/pb_nav/docs/_tab_nav.md
|
1873
1879
|
- app/pb_kits/playbook/pb_nav/docs/_with_icons_nav.html.erb
|
1874
1880
|
- app/pb_kits/playbook/pb_nav/docs/_with_icons_nav.jsx
|
1875
1881
|
- app/pb_kits/playbook/pb_nav/docs/_with_img_nav.html.erb
|
@@ -1877,6 +1883,7 @@ files:
|
|
1877
1883
|
- app/pb_kits/playbook/pb_nav/docs/_with_img_nav.md
|
1878
1884
|
- app/pb_kits/playbook/pb_nav/docs/example.yml
|
1879
1885
|
- app/pb_kits/playbook/pb_nav/docs/index.js
|
1886
|
+
- app/pb_kits/playbook/pb_nav/index.js
|
1880
1887
|
- app/pb_kits/playbook/pb_nav/item.html.erb
|
1881
1888
|
- app/pb_kits/playbook/pb_nav/item.rb
|
1882
1889
|
- app/pb_kits/playbook/pb_nav/nav.html.erb
|
@@ -2331,12 +2338,14 @@ files:
|
|
2331
2338
|
- app/pb_kits/playbook/pb_star_rating/docs/_star_rating_default.jsx
|
2332
2339
|
- app/pb_kits/playbook/pb_star_rating/docs/_star_rating_hide.html.erb
|
2333
2340
|
- app/pb_kits/playbook/pb_star_rating/docs/_star_rating_hide.jsx
|
2341
|
+
- app/pb_kits/playbook/pb_star_rating/docs/_star_rating_interactive.html.erb
|
2334
2342
|
- app/pb_kits/playbook/pb_star_rating/docs/_star_rating_number_config.html.erb
|
2335
2343
|
- app/pb_kits/playbook/pb_star_rating/docs/_star_rating_number_config.jsx
|
2336
2344
|
- app/pb_kits/playbook/pb_star_rating/docs/_star_rating_size_options.html.erb
|
2337
2345
|
- app/pb_kits/playbook/pb_star_rating/docs/_star_rating_size_options.jsx
|
2338
2346
|
- app/pb_kits/playbook/pb_star_rating/docs/example.yml
|
2339
2347
|
- app/pb_kits/playbook/pb_star_rating/docs/index.js
|
2348
|
+
- app/pb_kits/playbook/pb_star_rating/index.js
|
2340
2349
|
- app/pb_kits/playbook/pb_star_rating/star_rating.html.erb
|
2341
2350
|
- app/pb_kits/playbook/pb_star_rating/star_rating.rb
|
2342
2351
|
- app/pb_kits/playbook/pb_star_rating/star_rating.test.js
|
@@ -3004,6 +3013,7 @@ files:
|
|
3004
3013
|
- lib/playbook/forms/builder/multi_level_select_field.rb
|
3005
3014
|
- lib/playbook/forms/builder/phone_number_field.rb
|
3006
3015
|
- lib/playbook/forms/builder/select_field.rb
|
3016
|
+
- lib/playbook/forms/builder/star_rating_field.rb
|
3007
3017
|
- lib/playbook/forms/builder/typeahead_field.rb
|
3008
3018
|
- lib/playbook/hover.rb
|
3009
3019
|
- lib/playbook/justify_content.rb
|
@@ -3050,7 +3060,7 @@ homepage: https://playbook.powerapp.cloud/
|
|
3050
3060
|
licenses:
|
3051
3061
|
- ISC
|
3052
3062
|
metadata: {}
|
3053
|
-
post_install_message:
|
3063
|
+
post_install_message:
|
3054
3064
|
rdoc_options: []
|
3055
3065
|
require_paths:
|
3056
3066
|
- lib
|
@@ -3066,7 +3076,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
3066
3076
|
version: '0'
|
3067
3077
|
requirements: []
|
3068
3078
|
rubygems_version: 3.5.3
|
3069
|
-
signing_key:
|
3079
|
+
signing_key:
|
3070
3080
|
specification_version: 4
|
3071
3081
|
summary: Playbook Design System
|
3072
3082
|
test_files: []
|
@@ -1,39 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"aliases": {
|
3
|
-
"arrow-alt-circle-right": "circle-right",
|
4
|
-
"angles-down": "angle-double-down",
|
5
|
-
"arrow-alt-down": "down",
|
6
|
-
"arrow-alt-up": "up",
|
7
|
-
"arrow-right-long": "long-arrow-right",
|
8
|
-
"arrow-to-bottom": "arrow-down-to-line",
|
9
|
-
"arrows-h": "arrows-left-right",
|
10
|
-
"calendar-days": "calendar-alt",
|
11
|
-
"circle-arrow-right": "arrow-circle-right",
|
12
|
-
"clock-rotate-left": "history",
|
13
|
-
"close": [
|
14
|
-
"times",
|
15
|
-
"xmark"
|
16
|
-
],
|
17
|
-
"ellipsis-h": "ellipsis",
|
18
|
-
"exclamation-circle": "circle-exclamation",
|
19
|
-
"external-link": "arrow-up-right-from-square",
|
20
|
-
"file-lines": "file-alt",
|
21
|
-
"gear": "cog",
|
22
|
-
"home": "house",
|
23
|
-
"info-circle": "circle-info",
|
24
|
-
"map-o": "map",
|
25
|
-
"message": "comment-alt",
|
26
|
-
"minus-circle": "circle-minus",
|
27
|
-
"money": "money-bill",
|
28
|
-
"mouse-pointer": "arrow-pointer",
|
29
|
-
"nitro": "nitro-n",
|
30
|
-
"play-circle": "circle-play",
|
31
|
-
"plus-circle": "circle-plus",
|
32
|
-
"plus-square": "square-plus",
|
33
|
-
"powergon": "powergon-p",
|
34
|
-
"question-circle": "circle-question",
|
35
|
-
"roofing": "product-roofing",
|
36
|
-
"shelves": "inventory",
|
37
|
-
"th-list": "table-list"
|
38
|
-
}
|
39
|
-
}
|