playbook_ui 15.0.0.pre.alpha.PLAY236510413 → 15.0.0.pre.alpha.play1986inlineloadingsolidvariant10321

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +1 -3
  3. data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.tsx +0 -2
  4. data/app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.html.erb +0 -1
  5. data/app/pb_kits/playbook/pb_collapsible/__snapshots__/collapsible.test.js.snap +0 -1
  6. data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.ts +4 -48
  7. data/app/pb_kits/playbook/pb_dialog/_close_icon.tsx +1 -5
  8. data/app/pb_kits/playbook/pb_dialog/_dialog.tsx +8 -6
  9. data/app/pb_kits/playbook/pb_dialog/dialog.html.erb +1 -1
  10. data/app/pb_kits/playbook/pb_dialog/dialogHelper.js +65 -0
  11. data/app/pb_kits/playbook/pb_dialog/dialog_header.html.erb +2 -2
  12. data/app/pb_kits/playbook/pb_icon/_icon.tsx +2 -13
  13. data/app/pb_kits/playbook/pb_icon/icon.rb +1 -9
  14. data/app/pb_kits/playbook/pb_icon_circle/icon_circle.html.erb +1 -1
  15. data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +0 -3
  16. data/app/pb_kits/playbook/pb_text_input/docs/example.yml +0 -3
  17. data/app/pb_kits/playbook/pb_text_input/docs/index.js +0 -1
  18. data/app/pb_kits/playbook/pb_text_input/text_input.rb +3 -2
  19. data/app/pb_kits/playbook/pb_text_input/text_input.test.js +0 -38
  20. data/dist/chunks/{_line_graph-B5Dr0Huy.js → _line_graph-CApw7aQD.js} +1 -1
  21. data/dist/chunks/_typeahead-J1_avqdO.js +6 -0
  22. data/dist/chunks/{_weekday_stacked-DjQv3Sok.js → _weekday_stacked-BvW0QnF8.js} +2 -2
  23. data/dist/chunks/{lib-BTs5acfO.js → lib-CY5ZPzic.js} +1 -1
  24. data/dist/chunks/{pb_form_validation-CKkaQFX3.js → pb_form_validation-D3b0JKHH.js} +1 -1
  25. data/dist/chunks/vendor.js +1 -1
  26. data/dist/menu.yml +0 -6
  27. data/dist/playbook-doc.js +2 -2
  28. data/dist/playbook-rails-react-bindings.js +1 -1
  29. data/dist/playbook-rails.js +1 -1
  30. data/dist/playbook.css +1 -1
  31. data/lib/playbook/version.rb +1 -1
  32. metadata +8 -42
  33. data/app/pb_kits/playbook/pb_pb_circle_chart/_pb_circle_chart.scss +0 -3
  34. data/app/pb_kits/playbook/pb_pb_circle_chart/_pb_circle_chart.tsx +0 -62
  35. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_block_content.html.erb +0 -31
  36. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_block_content.jsx +0 -81
  37. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_color_overrides.html.erb +0 -25
  38. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_color_overrides.jsx +0 -40
  39. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_color_overrides.md +0 -5
  40. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_custom_tooltip.html.erb +0 -27
  41. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_custom_tooltip.jsx +0 -39
  42. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_custom_tooltip.md +0 -5
  43. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_legend_position.html.erb +0 -93
  44. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_legend_position.jsx +0 -131
  45. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_legend_position.md +0 -14
  46. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_with_labels.html.erb +0 -42
  47. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_with_labels.jsx +0 -58
  48. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_with_legend.html.erb +0 -24
  49. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_with_legend.jsx +0 -38
  50. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_default.html.erb +0 -22
  51. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_default.jsx +0 -33
  52. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_inner_sizes.html.erb +0 -118
  53. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_inner_sizes.jsx +0 -144
  54. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_live_data.jsx +0 -60
  55. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_rounded.html.erb +0 -24
  56. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_rounded.jsx +0 -42
  57. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_with_title.html.erb +0 -38
  58. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_with_title.jsx +0 -52
  59. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/example.yml +0 -29
  60. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/index.js +0 -11
  61. data/app/pb_kits/playbook/pb_pb_circle_chart/pbCircleChartTheme.ts +0 -88
  62. data/app/pb_kits/playbook/pb_pb_circle_chart/pb_circle_chart.html.erb +0 -1
  63. data/app/pb_kits/playbook/pb_pb_circle_chart/pb_circle_chart.rb +0 -28
  64. data/app/pb_kits/playbook/pb_pb_circle_chart/pb_circle_chart.test.jsx +0 -51
  65. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_autocomplete.html.erb +0 -41
  66. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_autocomplete.jsx +0 -80
  67. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_autocomplete.md +0 -1
  68. data/dist/chunks/_typeahead-GbjDoSSQ.js +0 -6
@@ -1,29 +0,0 @@
1
- examples:
2
-
3
- rails:
4
- - pb_circle_chart_default: Default
5
- - pb_circle_chart_rounded: Rounded Corners
6
- - pb_circle_chart_block_content: Accepts Any Block
7
- - pb_circle_chart_color_overrides: Color Overrides
8
- - pb_circle_chart_data_with_labels: Data with Labels
9
- - pb_circle_chart_data_with_legend: Data with Legend
10
- - pb_circle_chart_data_legend_position: Legend Position
11
- - pb_circle_chart_with_title: With Title
12
- - pb_circle_chart_inner_sizes: Inner Circle Size Options
13
- - pb_circle_chart_custom_tooltip: Tooltip Customization
14
-
15
-
16
- react:
17
- - pb_circle_chart_default: Default
18
- - pb_circle_chart_live_data: Live Data
19
- - pb_circle_chart_rounded: Rounded Corners
20
- - pb_circle_chart_block_content: Accepts Any Block
21
- - pb_circle_chart_color_overrides: Color Overrides
22
- - pb_circle_chart_data_with_labels: Data with Labels
23
- - pb_circle_chart_data_with_legend: Data with Legend
24
- - pb_circle_chart_data_legend_position: Legend Position
25
- - pb_circle_chart_with_title: With Title
26
- - pb_circle_chart_inner_sizes: Inner Circle Size Options
27
- - pb_circle_chart_custom_tooltip: Tooltip Customization
28
-
29
-
@@ -1,11 +0,0 @@
1
- export { default as PbCircleChartDefault } from './_pb_circle_chart_default.jsx'
2
- export { default as PbCircleChartLiveData } from './_pb_circle_chart_live_data.jsx'
3
- export { default as PbCircleChartRounded } from './_pb_circle_chart_rounded.jsx'
4
- export { default as PbCircleChartBlockContent } from './_pb_circle_chart_block_content.jsx'
5
- export { default as PbCircleChartColorOverrides } from './_pb_circle_chart_color_overrides.jsx'
6
- export { default as PbCircleChartDataWithLabels } from './_pb_circle_chart_data_with_labels.jsx'
7
- export { default as PbCircleChartDataWithLegend } from './_pb_circle_chart_data_with_legend.jsx'
8
- export { default as PbCircleChartDataLegendPosition } from './_pb_circle_chart_data_legend_position.jsx'
9
- export { default as PbCircleChartWithTitle } from './_pb_circle_chart_with_title.jsx'
10
- export { default as PbCircleChartInnerSizes } from './_pb_circle_chart_inner_sizes.jsx'
11
- export { default as PbCircleChartCustomTooltip } from './_pb_circle_chart_custom_tooltip.jsx'
@@ -1,88 +0,0 @@
1
- import colors from '../tokens/exports/_colors.module.scss'
2
- import typography from '../tokens/exports/_typography.module.scss'
3
-
4
- const pbCircleChartTheme = {
5
- title: {
6
- text: "",
7
- style: {
8
- color: colors.text_lt_default,
9
- fontFamily: typography.font_family_base,
10
- fontWeight: typography.bold,
11
- fontSize: typography.heading_3,
12
- },
13
- },
14
- chart: {
15
- type: "pie",
16
- },
17
- tooltip: {
18
- backgroundColor: {
19
- linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
20
- stops: [
21
- [0, colors.bg_dark],
22
- [1, colors.bg_dark],
23
- ],
24
- },
25
- pointFormat:
26
- '<span style="font-weight: bold; color:{point.color};">●</span>{point.name}: ' +
27
- "<b>{point.y}</b>",
28
- followPointer: true,
29
- shadow: false,
30
- borderWidth: 0,
31
- borderRadius: 10,
32
- style: {
33
- fontFamily: typography.font_family_base,
34
- color: colors.text_dk_default,
35
- fontWeight: typography.regular,
36
- fontSize: typography.text_smaller,
37
- },
38
- },
39
- plotOptions: {
40
- pie: {
41
- dataLabels: {
42
- enabled: false,
43
- connectorShape: "straight",
44
- connectorWidth: 3,
45
- format: "<div>{point.name}</div>",
46
- style: {
47
- fontFamily: typography.font_family_base,
48
- fontSize: typography.text_smaller,
49
- color: colors.text_lt_light,
50
- fontWeight: typography.regular,
51
- textOutline: '2px $white',
52
- },
53
- },
54
- innerSize: '50%',
55
- borderColor: "",
56
- borderWidth: null as number | null,
57
- colors: [
58
- colors.data_1,
59
- colors.data_2,
60
- colors.data_3,
61
- colors.data_4,
62
- colors.data_5,
63
- colors.data_6,
64
- colors.data_7,
65
- ],
66
- },
67
- },
68
- legend: {
69
- layout: 'horizontal',
70
- align: 'center',
71
- verticalAlign: 'bottom',
72
- itemStyle: {
73
- fontFamily: typography.font_family_base,
74
- color: colors.text_lt_light,
75
- fontWeight: typography.regular,
76
- fontSize: typography.text_smaller,
77
- },
78
- itemHoverStyle: {
79
- color: colors.text_lt_default,
80
- },
81
- itemHiddenStyle: {
82
- color: colors.text_lt_lighter,
83
- },
84
- },
85
- credits: { enabled: false }
86
- }
87
-
88
- export default pbCircleChartTheme;
@@ -1 +0,0 @@
1
- <%= react_component('PbCircleChart', object.react_props) %>
@@ -1,28 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Playbook
4
- module PbPbCircleChart
5
- class PbCircleChart < ::Playbook::KitBase
6
- prop :options, default: {}
7
- prop :container_props, default: {}
8
-
9
- def react_props
10
- {
11
- options: options,
12
- containerProps: container_props_hash,
13
- }
14
- end
15
-
16
- def container_props_hash
17
- container_props.merge({
18
- id: id,
19
- className: classname,
20
- }).compact
21
- end
22
-
23
- def classname
24
- generate_classname("pb_pb_circle_chart")
25
- end
26
- end
27
- end
28
- end
@@ -1,51 +0,0 @@
1
- import React from 'react'
2
- import { render, screen } from '../utilities/test-utils'
3
-
4
- import { PbCircleChart } from 'playbook-ui'
5
-
6
- beforeEach(() => {
7
- // Silences error logs within the test suite.
8
- jest.spyOn(console, 'error');
9
- jest.spyOn(console, 'warn');
10
- console.error.mockImplementation(() => {});
11
- console.warn.mockImplementation(() => {});
12
- });
13
-
14
- afterEach(() => {
15
- console.error.mockRestore();
16
- console.warn.mockRestore();
17
- });
18
-
19
- const chartOptions = {
20
- series: [
21
- {
22
- data: [
23
- {
24
- name: "Waiting for Calls",
25
- y: 41,
26
- },
27
- {
28
- name: "On Call",
29
- y: 49,
30
- },
31
- {
32
- name: "After Call",
33
- y: 10,
34
- },
35
- ],
36
- },
37
- ],
38
- };
39
-
40
- const testId = 'pbcirclechart1';
41
-
42
- test('Kit to exist', () => {
43
- render(
44
- <PbCircleChart
45
- data={{testid: testId}}
46
- options={chartOptions}
47
- />
48
- )
49
- expect(screen.getByTestId(testId)).toBeInTheDocument()
50
- })
51
-
@@ -1,41 +0,0 @@
1
- <%= pb_rails("text_input", props: {
2
- autocomplete: false,
3
- label: "autocomplete='off'",
4
- name: "firstName",
5
- placeholder: "Enter first name",
6
- }) %>
7
-
8
- <%= pb_rails("text_input", props: {
9
- label: "no autocomplete attribute (let browser decide- basically 'on')",
10
- name: "lastName",
11
- placeholder: "Enter last name"
12
- }) %>
13
-
14
- <%= pb_rails("text_input", props: {
15
- autocomplete: true,
16
- label: "autocomplete='on'",
17
- name: "phone",
18
- type: "phone",
19
- placeholder: "Enter phone number"
20
- }) %>
21
-
22
- <%= pb_rails("body", props: { margin_bottom: "sm" }) do %>
23
- The following have the same autocomplete attributes (email), but have
24
- different name attributes (email and emailAlt). Many browsers will
25
- open autocomplete based on name attributes instead of autocomplete:
26
- <% end %>
27
-
28
- <%= pb_rails("text_input", props: {
29
- autocomplete: "email",
30
- label: "autocomplete='email' name='email'",
31
- name: "email",
32
- placeholder: "Enter email address"
33
- }) %>
34
-
35
- <%= pb_rails("text_input", props: {
36
- autocomplete: "email",
37
- label: "autocomplete='email' name='emailAlt'",
38
- name: "emailAlt",
39
- type: "email",
40
- placeholder: "Enter email address"
41
- }) %>
@@ -1,80 +0,0 @@
1
- import React, { useState } from 'react'
2
-
3
- import TextInput from '../../pb_text_input/_text_input'
4
- import Body from '../../pb_body/_body'
5
-
6
-
7
- const TextInputAutocomplete = (props) => {
8
- const [formFields, setFormFields] = useState({
9
- firstName: "",
10
- lastName: "",
11
- phone: "",
12
- emailTest: "",
13
- email: "",
14
- });
15
-
16
- const handleOnChangeFormField = ({ target }) => {
17
- const { name, value } = target;
18
- setFormFields({ ...formFields, [name]: value });
19
- };
20
-
21
- return (
22
- <div>
23
- <TextInput
24
- autoComplete={false}
25
- label="autocomplete='off'"
26
- name="firstName"
27
- onChange={handleOnChangeFormField}
28
- placeholder="Enter first name"
29
- value={formFields.firstName}
30
- {...props}
31
- />
32
- <TextInput
33
- label="no autocomplete attribute (let browser decide- basically 'on')"
34
- name="lastName"
35
- onChange={handleOnChangeFormField}
36
- placeholder="Enter last name"
37
- value={formFields.lastName}
38
- {...props}
39
- />
40
- <TextInput
41
- autoComplete
42
- label="autocomplete='on'"
43
- name="phone"
44
- onChange={handleOnChangeFormField}
45
- placeholder="Enter phone number"
46
- type="phone"
47
- value={formFields.phone}
48
- {...props}
49
- />
50
- <Body marginBottom="sm">
51
- The following have the same autocomplete attributes (email), but have
52
- different name attributes (email and emailAlt). Many browsers will
53
- open autocomplete based on name attributes instead of autocomplete:
54
- </Body>
55
- <TextInput
56
- autoComplete="email"
57
- label="autocomplete='email' name='email'"
58
- name="email"
59
- onChange={handleOnChangeFormField}
60
- placeholder="Enter email address"
61
- type="email"
62
- value={formFields.email}
63
- {...props}
64
- />
65
- <TextInput
66
- autoComplete="email"
67
- label="autocomplete='email' name='emailAlt'"
68
- marginTop="sm"
69
- name="emailTest"
70
- onChange={handleOnChangeFormField}
71
- placeholder="Enter email address"
72
- type="email"
73
- value={formFields.emailTest}
74
- {...props}
75
- />
76
- </div>
77
- );
78
- };
79
-
80
- export default TextInputAutocomplete;
@@ -1 +0,0 @@
1
- Set this prop to `false` or `"off"` to remove autocomplete from text inputs. You can also set it to a string, but browsers will often defer to other attributes like `name`.