playbook_ui 7.0.1.pre.alpha12 → 7.0.1.pre.alpha14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -6
- data/app/pb_kits/playbook/_playbook.scss +1 -0
- data/app/pb_kits/playbook/data/menu.yml +1 -1
- data/app/pb_kits/playbook/index.js +3 -0
- data/app/pb_kits/playbook/packs/examples.js +6 -0
- data/app/pb_kits/playbook/packs/site_styles/docs/_kit_doc.scss +22 -6
- data/app/pb_kits/playbook/pb_avatar/_avatar.jsx +5 -1
- data/app/pb_kits/playbook/pb_background/_background.html.erb +14 -0
- data/app/pb_kits/playbook/pb_background/_background.jsx +64 -0
- data/app/pb_kits/playbook/pb_background/_background.scss +15 -0
- data/app/pb_kits/playbook/pb_background/background.rb +36 -0
- data/app/pb_kits/playbook/pb_background/docs/_background_default.html.erb +41 -0
- data/app/pb_kits/playbook/pb_background/docs/_background_default.jsx +75 -0
- data/app/pb_kits/playbook/pb_background/docs/example.yml +8 -0
- data/app/pb_kits/playbook/pb_background/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_badge/_badge.jsx +4 -2
- data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.jsx +1 -1
- data/app/pb_kits/playbook/pb_button/_button.jsx +5 -1
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.jsx +5 -1
- data/app/pb_kits/playbook/pb_caption/_caption.jsx +2 -2
- data/app/pb_kits/playbook/pb_checkbox/_checkbox.jsx +5 -2
- data/app/pb_kits/playbook/pb_checkbox/checkbox.rb +3 -1
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_options.html.erb +10 -0
- data/app/pb_kits/playbook/pb_checkbox/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.html.erb +1 -1
- data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.jsx +130 -0
- data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.scss +1 -1
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.jsx +39 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.jsx +29 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.jsx +28 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.jsx +117 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx +53 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.jsx +30 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.jsx +45 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.jsx +30 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.jsx +45 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/example.yml +11 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/index.js +9 -0
- data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx +5 -1
- data/app/pb_kits/playbook/pb_contact/_contact.jsx +5 -1
- data/app/pb_kits/playbook/pb_currency/_currency.jsx +5 -1
- data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.jsx +5 -1
- data/app/pb_kits/playbook/pb_date/date.rb +2 -1
- data/app/pb_kits/playbook/pb_date/docs/_date_default.html.erb +8 -1
- data/app/pb_kits/playbook/pb_date/docs/_date_timezone.html.erb +51 -0
- data/app/pb_kits/playbook/pb_date/docs/_date_timezone.md +6 -0
- data/app/pb_kits/playbook/pb_date/docs/_description.md +2 -0
- data/app/pb_kits/playbook/pb_date/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.jsx +7 -4
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.scss +0 -4
- data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +3 -3
- data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.js +8 -10
- data/app/pb_kits/playbook/pb_date_picker/docs/{_date_picker_read_only.html.erb → _date_picker_allow_input.html.erb} +1 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.jsx +13 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.md +1 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_change.jsx +34 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_change.md +3 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +3 -2
- data/app/pb_kits/playbook/pb_date_picker/docs/index.js +2 -1
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_calendar_input_icon.scss +1 -0
- data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx +5 -1
- data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.jsx +2 -2
- data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.jsx +5 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.jsx +2 -2
- data/app/pb_kits/playbook/pb_flex/_flex.jsx +2 -2
- data/app/pb_kits/playbook/pb_flex/_flex_item.jsx +1 -1
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +6 -1
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.jsx +3 -2
- data/app/pb_kits/playbook/pb_gauge/_gauge.jsx +1 -1
- data/app/pb_kits/playbook/pb_highlight/_highlight.jsx +1 -1
- data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.jsx +2 -2
- data/app/pb_kits/playbook/pb_icon/_icon.jsx +2 -2
- data/app/pb_kits/playbook/pb_icon_value/_icon_value.jsx +5 -1
- data/app/pb_kits/playbook/pb_image/_image.jsx +5 -1
- data/app/pb_kits/playbook/pb_label_pill/_label_pill.jsx +5 -1
- data/app/pb_kits/playbook/pb_layout/_layout.jsx +4 -4
- data/app/pb_kits/playbook/pb_line_graph/_line_graph.jsx +1 -1
- data/app/pb_kits/playbook/pb_list/_list.jsx +3 -2
- data/app/pb_kits/playbook/pb_list/_list_item.jsx +3 -2
- data/app/pb_kits/playbook/pb_logistic/_logistic.jsx +5 -1
- data/app/pb_kits/playbook/pb_message/_message.jsx +5 -1
- data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.jsx +5 -2
- data/app/pb_kits/playbook/pb_nav/_nav.jsx +2 -2
- data/app/pb_kits/playbook/pb_person/_person.jsx +5 -1
- data/app/pb_kits/playbook/pb_person_contact/_person_contact.jsx +5 -1
- data/app/pb_kits/playbook/pb_popover/_popover.jsx +5 -1
- data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.jsx +4 -4
- data/app/pb_kits/playbook/pb_progress_step/_progress_step.jsx +1 -1
- data/app/pb_kits/playbook/pb_radio/_radio.html.erb +1 -1
- data/app/pb_kits/playbook/pb_radio/docs/_radio_options.html.erb +9 -0
- data/app/pb_kits/playbook/pb_radio/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_radio/radio.rb +2 -4
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.jsx +1 -1
- data/app/pb_kits/playbook/pb_select/_select.scss +1 -1
- data/app/pb_kits/playbook/pb_stat_change/_stat_change.jsx +2 -2
- data/app/pb_kits/playbook/pb_stat_value/_stat_value.jsx +3 -3
- data/app/pb_kits/playbook/pb_stat_value/docs/_stat_value_default.jsx +6 -1
- data/app/pb_kits/playbook/pb_table/_table.jsx +2 -2
- data/app/pb_kits/playbook/pb_text_input/_text_input.jsx +1 -1
- data/app/pb_kits/playbook/pb_text_input/_text_input.scss +17 -8
- data/app/pb_kits/playbook/pb_textarea/_textarea.jsx +1 -1
- data/app/pb_kits/playbook/pb_time/_time.html.erb +23 -17
- data/app/pb_kits/playbook/pb_time/_time.jsx +22 -13
- data/app/pb_kits/playbook/pb_time/_time.scss +16 -8
- data/app/pb_kits/playbook/pb_time/docs/_time_align.html.erb +18 -0
- data/app/pb_kits/playbook/pb_time/docs/_time_align.jsx +3 -3
- data/app/pb_kits/playbook/pb_time/docs/_time_default.html.erb +47 -3
- data/app/pb_kits/playbook/pb_time/docs/_time_default.jsx +33 -4
- data/app/pb_kits/playbook/pb_time/docs/_time_sizes.html.erb +11 -0
- data/app/pb_kits/playbook/pb_time/docs/_time_sizes.jsx +19 -0
- data/app/pb_kits/playbook/pb_time/docs/_time_timestamp.html.erb +3 -1
- data/app/pb_kits/playbook/pb_time/docs/_time_timestamp.jsx +0 -7
- data/app/pb_kits/playbook/pb_time/docs/_time_timezone.html.erb +38 -0
- data/app/pb_kits/playbook/pb_time/docs/_time_timezone.jsx +12 -14
- data/app/pb_kits/playbook/pb_time/docs/example.yml +6 -2
- data/app/pb_kits/playbook/pb_time/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_time/time.rb +14 -2
- data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.jsx +1 -1
- data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.jsx +3 -3
- data/app/pb_kits/playbook/pb_timestamp/_timestamp.jsx +1 -1
- data/app/pb_kits/playbook/pb_title/_title.jsx +5 -1
- data/app/pb_kits/playbook/pb_title_count/_title_count.jsx +5 -1
- data/app/pb_kits/playbook/pb_title_detail/_title_detail.jsx +1 -1
- data/app/pb_kits/playbook/pb_toggle/_toggle.jsx +3 -3
- data/app/pb_kits/playbook/pb_toggle/_toggle.scss +41 -43
- data/app/pb_kits/playbook/pb_toggle/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_toggle/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_toggle/toggle.rb +2 -2
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.jsx +60 -0
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +20 -3
- data/app/pb_kits/playbook/pb_typeahead/components/Control.jsx +30 -0
- data/app/pb_kits/playbook/pb_typeahead/components/IndicatorsContainer.jsx +13 -0
- data/app/pb_kits/playbook/pb_typeahead/components/MenuList.jsx +12 -0
- data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.jsx +51 -0
- data/app/pb_kits/playbook/pb_typeahead/components/Option.jsx +34 -0
- data/app/pb_kits/playbook/pb_typeahead/components/Placeholder.jsx +13 -0
- data/app/pb_kits/playbook/pb_typeahead/components/ValueContainer.jsx +13 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.jsx +22 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.jsx +29 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.jsx +84 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_summary.jsx +45 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.jsx +101 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_summary.jsx +27 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +8 -2
- data/app/pb_kits/playbook/pb_typeahead/docs/index.js +4 -0
- data/app/pb_kits/playbook/pb_user_badge/_user_badge.jsx +5 -2
- data/app/pb_kits/playbook/plugins/pb_chart.js +1 -1
- data/app/pb_kits/playbook/tokens/_typography.scss +3 -3
- data/lib/generators/kit/templates/kit_jsx.erb.tt +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +50 -8
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_read_only.jsx +0 -13
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_read_only.md +0 -1
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_size.html.erb +0 -11
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_size.jsx +0 -44
@@ -26,8 +26,11 @@ const UserBadge = (props: UserBadgeProps) => {
|
|
26
26
|
const image = require(`./badges/_${badge}.svg`)
|
27
27
|
const ariaProps = buildAriaProps(aria)
|
28
28
|
const dataProps = buildDataProps(data)
|
29
|
-
const classes = classnames(
|
30
|
-
|
29
|
+
const classes = classnames(
|
30
|
+
buildCss('pb_user_badge_kit', size),
|
31
|
+
globalProps(props),
|
32
|
+
className
|
33
|
+
)
|
31
34
|
|
32
35
|
return (
|
33
36
|
<div
|
@@ -33,7 +33,7 @@ const mapColors = (array) => {
|
|
33
33
|
|
34
34
|
// Adjust Circle Chart Block Kit Dimensions to Match the Chart for Centering
|
35
35
|
const alignBlockElement = (event) => {
|
36
|
-
const itemToMove = document.querySelector(`#wrapper-circle-chart-${event.target.renderTo.id} .
|
36
|
+
const itemToMove = document.querySelector(`#wrapper-circle-chart-${event.target.renderTo.id} .pb-circle-chart-block`)
|
37
37
|
const chartContainer = document.querySelector(`#${event.target.renderTo.id}`)
|
38
38
|
if (itemToMove !== null) {
|
39
39
|
itemToMove.style.height = `${event.target.chartHeight}px`
|
@@ -39,9 +39,9 @@ $heading_4: $font_base;
|
|
39
39
|
|
40
40
|
|
41
41
|
// Letter Spacing
|
42
|
-
$lspace_tightest:
|
43
|
-
$lspace_tighter:
|
44
|
-
$lspace_tight:
|
42
|
+
$lspace_tightest: -.1em;
|
43
|
+
$lspace_tighter: -.07em;
|
44
|
+
$lspace_tight: -.03em;
|
45
45
|
$lspace_normal: 0;
|
46
46
|
$lspace_loose: .03em;
|
47
47
|
$lspace_looser: .07em;
|
@@ -51,7 +51,7 @@ const <%= @kit_name_pascal %> = (props: <%= type_name %>) => {
|
|
51
51
|
|
52
52
|
const ariaProps = buildAriaProps(aria)
|
53
53
|
const dataProps = buildDataProps(data)
|
54
|
-
const classes = classnames(buildCss('pb_<%= @kit_name_underscore %>'),
|
54
|
+
const classes = classnames(buildCss('pb_<%= @kit_name_underscore %>'), globalProps(props), className)
|
55
55
|
|
56
56
|
return (
|
57
57
|
<div
|
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: 7.0.1.pre.
|
4
|
+
version: 7.0.1.pre.alpha14
|
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: 2020-
|
12
|
+
date: 2020-10-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -464,6 +464,14 @@ files:
|
|
464
464
|
- app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_tooltip.html.erb
|
465
465
|
- app/pb_kits/playbook/pb_avatar_action_button/docs/example.yml
|
466
466
|
- app/pb_kits/playbook/pb_avatar_action_button/docs/index.js
|
467
|
+
- app/pb_kits/playbook/pb_background/_background.html.erb
|
468
|
+
- app/pb_kits/playbook/pb_background/_background.jsx
|
469
|
+
- app/pb_kits/playbook/pb_background/_background.scss
|
470
|
+
- app/pb_kits/playbook/pb_background/background.rb
|
471
|
+
- app/pb_kits/playbook/pb_background/docs/_background_default.html.erb
|
472
|
+
- app/pb_kits/playbook/pb_background/docs/_background_default.jsx
|
473
|
+
- app/pb_kits/playbook/pb_background/docs/example.yml
|
474
|
+
- app/pb_kits/playbook/pb_background/docs/index.js
|
467
475
|
- app/pb_kits/playbook/pb_badge/_badge.html.erb
|
468
476
|
- app/pb_kits/playbook/pb_badge/_badge.jsx
|
469
477
|
- app/pb_kits/playbook/pb_badge/_badge.scss
|
@@ -604,21 +612,33 @@ files:
|
|
604
612
|
- app/pb_kits/playbook/pb_checkbox/docs/_checkbox_default.jsx
|
605
613
|
- app/pb_kits/playbook/pb_checkbox/docs/_checkbox_error.html.erb
|
606
614
|
- app/pb_kits/playbook/pb_checkbox/docs/_checkbox_error.jsx
|
615
|
+
- app/pb_kits/playbook/pb_checkbox/docs/_checkbox_options.html.erb
|
607
616
|
- app/pb_kits/playbook/pb_checkbox/docs/_description.md
|
608
617
|
- app/pb_kits/playbook/pb_checkbox/docs/example.yml
|
609
618
|
- app/pb_kits/playbook/pb_checkbox/docs/index.js
|
610
619
|
- app/pb_kits/playbook/pb_circle_chart/_circle_chart.html.erb
|
620
|
+
- app/pb_kits/playbook/pb_circle_chart/_circle_chart.jsx
|
611
621
|
- app/pb_kits/playbook/pb_circle_chart/_circle_chart.scss
|
612
622
|
- app/pb_kits/playbook/pb_circle_chart/circle_chart.rb
|
613
623
|
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.html.erb
|
624
|
+
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.jsx
|
614
625
|
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.html.erb
|
626
|
+
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.jsx
|
615
627
|
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.html.erb
|
628
|
+
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.jsx
|
616
629
|
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.html.erb
|
630
|
+
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.jsx
|
631
|
+
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx
|
617
632
|
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.html.erb
|
633
|
+
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.jsx
|
618
634
|
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.html.erb
|
635
|
+
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.jsx
|
619
636
|
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.html.erb
|
637
|
+
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.jsx
|
620
638
|
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.html.erb
|
639
|
+
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.jsx
|
621
640
|
- app/pb_kits/playbook/pb_circle_chart/docs/example.yml
|
641
|
+
- app/pb_kits/playbook/pb_circle_chart/docs/index.js
|
622
642
|
- app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.html.erb
|
623
643
|
- app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx
|
624
644
|
- app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.scss
|
@@ -677,6 +697,8 @@ files:
|
|
677
697
|
- app/pb_kits/playbook/pb_date/date.rb
|
678
698
|
- app/pb_kits/playbook/pb_date/docs/_date_default.html.erb
|
679
699
|
- app/pb_kits/playbook/pb_date/docs/_date_default.jsx
|
700
|
+
- app/pb_kits/playbook/pb_date/docs/_date_timezone.html.erb
|
701
|
+
- app/pb_kits/playbook/pb_date/docs/_date_timezone.md
|
680
702
|
- app/pb_kits/playbook/pb_date/docs/_description.md
|
681
703
|
- app/pb_kits/playbook/pb_date/docs/example.yml
|
682
704
|
- app/pb_kits/playbook/pb_date/docs/index.js
|
@@ -685,6 +707,9 @@ files:
|
|
685
707
|
- app/pb_kits/playbook/pb_date_picker/_date_picker.scss
|
686
708
|
- app/pb_kits/playbook/pb_date_picker/date_picker.rb
|
687
709
|
- app/pb_kits/playbook/pb_date_picker/date_picker_helper.js
|
710
|
+
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.html.erb
|
711
|
+
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.jsx
|
712
|
+
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.md
|
688
713
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_dark.html.erb
|
689
714
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_dark.jsx
|
690
715
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default.html.erb
|
@@ -711,11 +736,10 @@ files:
|
|
711
736
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_label.md
|
712
737
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_min_max.html.erb
|
713
738
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_min_max.jsx
|
739
|
+
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_change.jsx
|
740
|
+
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_change.md
|
714
741
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.html.erb
|
715
742
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.jsx
|
716
|
-
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_read_only.html.erb
|
717
|
-
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_read_only.jsx
|
718
|
-
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_read_only.md
|
719
743
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_year_range.html.erb
|
720
744
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_year_range.jsx
|
721
745
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_year_range.md
|
@@ -1373,6 +1397,7 @@ files:
|
|
1373
1397
|
- app/pb_kits/playbook/pb_radio/docs/_radio_error.html.erb
|
1374
1398
|
- app/pb_kits/playbook/pb_radio/docs/_radio_error.jsx
|
1375
1399
|
- app/pb_kits/playbook/pb_radio/docs/_radio_error.md
|
1400
|
+
- app/pb_kits/playbook/pb_radio/docs/_radio_options.html.erb
|
1376
1401
|
- app/pb_kits/playbook/pb_radio/docs/example.yml
|
1377
1402
|
- app/pb_kits/playbook/pb_radio/docs/index.js
|
1378
1403
|
- app/pb_kits/playbook/pb_radio/radio.rb
|
@@ -1590,12 +1615,16 @@ files:
|
|
1590
1615
|
- app/pb_kits/playbook/pb_time/_time.scss
|
1591
1616
|
- app/pb_kits/playbook/pb_time/docs/_description.md
|
1592
1617
|
- app/pb_kits/playbook/pb_time/docs/_footer.md
|
1618
|
+
- app/pb_kits/playbook/pb_time/docs/_time_align.html.erb
|
1593
1619
|
- app/pb_kits/playbook/pb_time/docs/_time_align.jsx
|
1594
1620
|
- app/pb_kits/playbook/pb_time/docs/_time_default.html.erb
|
1595
1621
|
- app/pb_kits/playbook/pb_time/docs/_time_default.jsx
|
1596
1622
|
- app/pb_kits/playbook/pb_time/docs/_time_default.md
|
1623
|
+
- app/pb_kits/playbook/pb_time/docs/_time_sizes.html.erb
|
1624
|
+
- app/pb_kits/playbook/pb_time/docs/_time_sizes.jsx
|
1597
1625
|
- app/pb_kits/playbook/pb_time/docs/_time_timestamp.html.erb
|
1598
1626
|
- app/pb_kits/playbook/pb_time/docs/_time_timestamp.jsx
|
1627
|
+
- app/pb_kits/playbook/pb_time/docs/_time_timezone.html.erb
|
1599
1628
|
- app/pb_kits/playbook/pb_time/docs/_time_timezone.jsx
|
1600
1629
|
- app/pb_kits/playbook/pb_time/docs/_time_timezone.md
|
1601
1630
|
- app/pb_kits/playbook/pb_time/docs/example.yml
|
@@ -1697,8 +1726,6 @@ files:
|
|
1697
1726
|
- app/pb_kits/playbook/pb_toggle/docs/_toggle_default.jsx
|
1698
1727
|
- app/pb_kits/playbook/pb_toggle/docs/_toggle_name.html.erb
|
1699
1728
|
- app/pb_kits/playbook/pb_toggle/docs/_toggle_name.jsx
|
1700
|
-
- app/pb_kits/playbook/pb_toggle/docs/_toggle_size.html.erb
|
1701
|
-
- app/pb_kits/playbook/pb_toggle/docs/_toggle_size.jsx
|
1702
1729
|
- app/pb_kits/playbook/pb_toggle/docs/example.yml
|
1703
1730
|
- app/pb_kits/playbook/pb_toggle/docs/index.js
|
1704
1731
|
- app/pb_kits/playbook/pb_toggle/toggle.rb
|
@@ -1710,12 +1737,27 @@ files:
|
|
1710
1737
|
- app/pb_kits/playbook/pb_tooltip/index.js
|
1711
1738
|
- app/pb_kits/playbook/pb_tooltip/tooltip.rb
|
1712
1739
|
- app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
|
1740
|
+
- app/pb_kits/playbook/pb_typeahead/_typeahead.jsx
|
1713
1741
|
- app/pb_kits/playbook/pb_typeahead/_typeahead.scss
|
1742
|
+
- app/pb_kits/playbook/pb_typeahead/components/Control.jsx
|
1743
|
+
- app/pb_kits/playbook/pb_typeahead/components/IndicatorsContainer.jsx
|
1744
|
+
- app/pb_kits/playbook/pb_typeahead/components/MenuList.jsx
|
1745
|
+
- app/pb_kits/playbook/pb_typeahead/components/MultiValue.jsx
|
1746
|
+
- app/pb_kits/playbook/pb_typeahead/components/Option.jsx
|
1747
|
+
- app/pb_kits/playbook/pb_typeahead/components/Placeholder.jsx
|
1748
|
+
- app/pb_kits/playbook/pb_typeahead/components/ValueContainer.jsx
|
1714
1749
|
- app/pb_kits/playbook/pb_typeahead/docs/_description.md
|
1715
1750
|
- app/pb_kits/playbook/pb_typeahead/docs/_footer.md
|
1716
1751
|
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.html.erb
|
1752
|
+
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.jsx
|
1717
1753
|
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_context_dark.html.erb
|
1754
|
+
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.jsx
|
1755
|
+
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.jsx
|
1756
|
+
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_summary.jsx
|
1757
|
+
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.jsx
|
1758
|
+
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_summary.jsx
|
1718
1759
|
- app/pb_kits/playbook/pb_typeahead/docs/example.yml
|
1760
|
+
- app/pb_kits/playbook/pb_typeahead/docs/index.js
|
1719
1761
|
- app/pb_kits/playbook/pb_typeahead/index.js
|
1720
1762
|
- app/pb_kits/playbook/pb_typeahead/typeahead.rb
|
1721
1763
|
- app/pb_kits/playbook/pb_user/_user.html.erb
|
@@ -1879,7 +1921,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1879
1921
|
- !ruby/object:Gem::Version
|
1880
1922
|
version: 1.3.1
|
1881
1923
|
requirements: []
|
1882
|
-
rubygems_version: 3.1.
|
1924
|
+
rubygems_version: 3.1.4
|
1883
1925
|
signing_key:
|
1884
1926
|
specification_version: 4
|
1885
1927
|
summary: Playbook Design System
|
@@ -1 +0,0 @@
|
|
1
|
-
Read only inputs do not accept keyboard input. The only way to change the date value is by picking a date on the calendar. Especially useful on mobile as it prevents the keyboard from popping up and obscuring the date picker.
|
@@ -1,44 +0,0 @@
|
|
1
|
-
// @flow
|
2
|
-
|
3
|
-
import React, { useState } from 'react'
|
4
|
-
import { Toggle } from '../..'
|
5
|
-
|
6
|
-
const ToggleSize = () => {
|
7
|
-
const [choice, setChoice] = useState(false)
|
8
|
-
|
9
|
-
const handleOnChange = ({ target }) => {
|
10
|
-
setChoice(target.value = !choice)
|
11
|
-
}
|
12
|
-
|
13
|
-
return (
|
14
|
-
<>
|
15
|
-
<Toggle
|
16
|
-
checked={choice}
|
17
|
-
size="sm"
|
18
|
-
>
|
19
|
-
<input
|
20
|
-
name="toggleSmall"
|
21
|
-
onChange={handleOnChange}
|
22
|
-
type="checkbox"
|
23
|
-
value="toggleSmall"
|
24
|
-
/>
|
25
|
-
</Toggle>
|
26
|
-
|
27
|
-
<br />
|
28
|
-
|
29
|
-
<Toggle
|
30
|
-
checked={choice}
|
31
|
-
size="md"
|
32
|
-
>
|
33
|
-
<input
|
34
|
-
name="toggleMedium"
|
35
|
-
onChange={handleOnChange}
|
36
|
-
type="checkbox"
|
37
|
-
value="toggleMedium"
|
38
|
-
/>
|
39
|
-
</Toggle>
|
40
|
-
</>
|
41
|
-
)
|
42
|
-
}
|
43
|
-
|
44
|
-
export default ToggleSize
|