playbook_ui 13.32.0.pre.alpha.PLAY14143251 → 13.32.0.pre.alpha.PLAY14143260

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +123 -0
  3. data/app/pb_kits/playbook/_reset.scss +42 -0
  4. data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss +3 -3
  5. data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.tsx +0 -2
  6. data/app/pb_kits/playbook/pb_badge/_badge.scss +2 -2
  7. data/app/pb_kits/playbook/pb_body/_body.scss +1 -1
  8. data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.tsx +0 -2
  9. data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.scss +1 -1
  10. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.tsx +0 -2
  11. data/app/pb_kits/playbook/pb_card/_card.scss +1 -1
  12. data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.scss +3 -3
  13. data/app/pb_kits/playbook/pb_date_picker/sass_partials/_input_styles.scss +1 -1
  14. data/app/pb_kits/playbook/pb_date_picker/sass_partials/_overrides.scss +2 -4
  15. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.scss +4 -4
  16. data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.scss +4 -4
  17. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_separators.jsx +0 -2
  18. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_sizes.jsx +0 -1
  19. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_status.jsx +0 -1
  20. data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +1 -1
  21. data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_accept.jsx +0 -1
  22. data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_custom_description.jsx +0 -1
  23. data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_custom_message.jsx +0 -1
  24. data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_default.jsx +0 -1
  25. data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_max_size.jsx +0 -1
  26. data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +5 -5
  27. data/app/pb_kits/playbook/pb_form_pill/_form_pill.tsx +0 -1
  28. data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss +2 -2
  29. data/app/pb_kits/playbook/pb_label_value/_label_value.scss +1 -1
  30. data/app/pb_kits/playbook/pb_lightbox/Carousel/Slide.tsx +0 -2
  31. data/app/pb_kits/playbook/pb_lightbox/Carousel/Slides.tsx +0 -2
  32. data/app/pb_kits/playbook/pb_lightbox/Header/_lightbox_header.tsx +0 -1
  33. data/app/pb_kits/playbook/pb_lightbox/docs/_lightbox_compound_component.jsx +0 -1
  34. data/app/pb_kits/playbook/pb_lightbox/docs/_lightbox_current_photo.jsx +0 -1
  35. data/app/pb_kits/playbook/pb_lightbox/docs/_lightbox_custom_header.jsx +0 -1
  36. data/app/pb_kits/playbook/pb_lightbox/docs/_lightbox_default.jsx +0 -1
  37. data/app/pb_kits/playbook/pb_lightbox/docs/_lightbox_multiple.jsx +0 -1
  38. data/app/pb_kits/playbook/pb_message/_message.tsx +0 -2
  39. data/app/pb_kits/playbook/pb_message/_message_mixins.scss +1 -1
  40. data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.scss +1 -1
  41. data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.tsx +0 -2
  42. data/app/pb_kits/playbook/pb_passphrase/_passphrase.scss +3 -3
  43. data/app/pb_kits/playbook/pb_passphrase/_passphrase.tsx +0 -2
  44. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.scss +2 -1
  45. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +0 -1
  46. data/app/pb_kits/playbook/pb_pill/_pill.scss +2 -2
  47. data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.scss +2 -2
  48. data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.scss +2 -2
  49. data/app/pb_kits/playbook/pb_select/_select.scss +1 -1
  50. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +4 -4
  51. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.tsx +0 -2
  52. data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.tsx +0 -1
  53. data/app/pb_kits/playbook/pb_text_input/_text_input.scss +1 -1
  54. data/app/pb_kits/playbook/pb_textarea/_textarea.scss +1 -1
  55. data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.scss +4 -4
  56. data/app/pb_kits/playbook/pb_timeline/_timeline.scss +2 -2
  57. data/app/pb_kits/playbook/pb_title_count/_title_count.tsx +0 -1
  58. data/app/pb_kits/playbook/pb_toggle/_toggle.scss +5 -5
  59. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_custom.jsx +0 -2
  60. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_custom_radio.jsx +0 -2
  61. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_default.jsx +0 -2
  62. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_disabled.jsx +0 -2
  63. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_name.jsx +0 -2
  64. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_default_react.jsx +0 -2
  65. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_delay.jsx +0 -2
  66. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_icon.jsx +0 -2
  67. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_interaction.jsx +0 -2
  68. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_margin.jsx +0 -2
  69. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_show_tooltip_react.jsx +0 -2
  70. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_async_createable.jsx +0 -2
  71. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_createable.jsx +0 -2
  72. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.jsx +0 -2
  73. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_error_state.jsx +0 -2
  74. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_inline.jsx +0 -2
  75. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_multi_kit.jsx +0 -2
  76. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_highlight.jsx +0 -1
  77. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.jsx +0 -2
  78. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.jsx +0 -2
  79. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_custom_options.jsx +0 -2
  80. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.jsx +0 -2
  81. data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.tsx +2 -3
  82. data/app/pb_kits/playbook/tokens/exports/_colors.module.scss +1 -1
  83. data/app/pb_kits/playbook/utilities/_hover.scss +4 -4
  84. data/dist/chunks/_typeahead.js +33694 -0
  85. data/dist/chunks/_weekday_stacked.js +13022 -0
  86. data/dist/chunks/lazysizes.js +611 -0
  87. data/dist/chunks/pb_form_validation.js +60 -0
  88. data/dist/chunks/vendor.js +6 -0
  89. data/dist/menu.yml +568 -0
  90. data/dist/playbook-doc.js +67968 -0
  91. data/dist/playbook-rails-react-bindings.js +97 -0
  92. data/dist/playbook.css +61396 -0
  93. data/lib/playbook/engine.rb +2 -0
  94. data/lib/playbook/version.rb +1 -1
  95. metadata +13 -2
@@ -0,0 +1,97 @@
1
+ import WebpackerReact from "webpacker-react";
2
+ import { B as BarGraph, C as CircleChart, D as Dialog, a as DialogBody, b as DialogFooter, c as DialogHeader, d as DistributionBar, M as MultiLevelSelect, L as Legend, e as LineGraph, P as Passphrase, R as RichTextEditor, T as TreemapChart, f as Typeahead, G as Gauge, g as PhoneNumberInput } from "./chunks/_typeahead.js";
3
+ import "react";
4
+ import "./chunks/lib.js";
5
+ import "react-dom";
6
+ var ujs$1 = {};
7
+ Object.defineProperty(ujs$1, "__esModule", {
8
+ value: true
9
+ });
10
+ var ujs = {
11
+ handleEvent: function handleEvent(eventName, callback) {
12
+ var _ref = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { once: false }, once = _ref.once;
13
+ var $ = typeof window.jQuery !== "undefined" && window.jQuery;
14
+ if ($) {
15
+ if (once) {
16
+ $(document).one(eventName, callback);
17
+ } else {
18
+ $(document).on(eventName, callback);
19
+ }
20
+ } else {
21
+ document.addEventListener(eventName, callback, { once });
22
+ }
23
+ },
24
+ setup: function setup(onMount, onUnmount) {
25
+ var $ = typeof window.jQuery !== "undefined" && window.jQuery;
26
+ var Turbolinks = window.Turbolinks;
27
+ if (typeof Turbolinks !== "undefined" && Turbolinks.supported) {
28
+ if (typeof Turbolinks.EVENTS !== "undefined") {
29
+ this.turbolinksClassic(onMount, onUnmount);
30
+ } else if (typeof Turbolinks.controller !== "undefined") {
31
+ this.turbolinks5(onMount, onUnmount);
32
+ } else {
33
+ this.turbolinksClassicDeprecated(onMount, onUnmount);
34
+ }
35
+ } else if ($ && typeof $.pjax === "function") {
36
+ this.pjax(onMount, onUnmount);
37
+ } else {
38
+ this.native(onMount);
39
+ }
40
+ },
41
+ turbolinks5: function turbolinks5(onMount, onUnmount) {
42
+ this.handleEvent("turbolinks:load", onMount, { once: true });
43
+ this.handleEvent("turbolinks:render", onMount);
44
+ this.handleEvent("turbolinks:before-render", onUnmount);
45
+ },
46
+ turbolinksClassic: function turbolinksClassic(onMount, onUnmount) {
47
+ var Turbolinks = window.Turbolinks;
48
+ this.handleEvent(Turbolinks.EVENTS.CHANGE, onMount);
49
+ this.handleEvent(Turbolinks.EVENTS.BEFORE_UNLOAD, onUnmount);
50
+ },
51
+ turbolinksClassicDeprecated: function turbolinksClassicDeprecated(onMount, onUnmount) {
52
+ var Turbolinks = window.Turbolinks;
53
+ Turbolinks.pagesCached(0);
54
+ this.handleEvent("page:change", onMount);
55
+ this.handleEvent("page:receive", onUnmount);
56
+ },
57
+ pjax: function pjax(onMount, onUnmount) {
58
+ this.handleEvent("ready", onMount);
59
+ this.handleEvent("pjax:end", onMount);
60
+ this.handleEvent("pjax:beforeReplace", onUnmount);
61
+ },
62
+ native: function native(onMount) {
63
+ var $ = typeof window.jQuery !== "undefined" && window.jQuery;
64
+ if ($) {
65
+ $(function() {
66
+ return onMount();
67
+ });
68
+ } else if ("addEventListener" in window) {
69
+ document.addEventListener("DOMContentLoaded", onMount);
70
+ } else {
71
+ window.attachEvent("onload", onMount);
72
+ }
73
+ }
74
+ };
75
+ var _default = ujs$1.default = ujs;
76
+ WebpackerReact.registerComponents({
77
+ BarGraph,
78
+ CircleChart,
79
+ Dialog,
80
+ DialogBody,
81
+ DialogFooter,
82
+ DialogHeader,
83
+ DistributionBar,
84
+ MultiLevelSelect,
85
+ Legend,
86
+ LineGraph,
87
+ Passphrase,
88
+ RichTextEditor,
89
+ TreemapChart,
90
+ Typeahead,
91
+ Gauge,
92
+ PhoneNumberInput
93
+ });
94
+ _default.setup(
95
+ () => WebpackerReact.mountComponents(),
96
+ () => WebpackerReact.unmountComponents()
97
+ );