playbook_ui 14.15.0.pre.alpha.play1910emptystatekitreactbeta6685 → 14.15.0.pre.alpha.play1917lodashremoval2of36613

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 (58) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +2 -4
  3. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +0 -7
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +1 -2
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -2
  6. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.tsx +1 -1
  7. data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.tsx +1 -1
  8. data/app/pb_kits/playbook/pb_filter/Filter/SortMenu.tsx +2 -1
  9. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +1 -1
  10. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +1 -1
  11. data/app/pb_kits/playbook/pb_gauge/_gauge.tsx +1 -1
  12. data/app/pb_kits/playbook/pb_icon_button/_icon_button.tsx +1 -1
  13. data/app/pb_kits/playbook/pb_icon_button/icon_button.html.erb +1 -1
  14. data/app/pb_kits/playbook/pb_lightbox/Carousel/Slide.tsx +1 -1
  15. data/app/pb_kits/playbook/pb_lightbox/Carousel/Slides.tsx +1 -1
  16. data/app/pb_kits/playbook/pb_lightbox/Carousel/Thumbnails.tsx +1 -1
  17. data/app/pb_kits/playbook/pb_line_graph/_line_graph.tsx +1 -1
  18. data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +5 -32
  19. data/app/pb_kits/playbook/pb_multi_level_select/docs/example.yml +0 -1
  20. data/app/pb_kits/playbook/pb_multi_level_select/docs/index.js +0 -1
  21. data/app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb +1 -1
  22. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +0 -6
  23. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_default.html.erb +1 -1
  24. data/app/pb_kits/playbook/pb_phone_number_input/docs/example.yml +1 -3
  25. data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb +0 -3
  26. data/app/pb_kits/playbook/pb_treemap_chart/_treemap_chart.tsx +1 -1
  27. data/app/pb_kits/playbook/utilities/object.ts +74 -0
  28. data/app/pb_kits/playbook/utilities/text.ts +1 -1
  29. data/dist/chunks/_typeahead-CdVbIURO.js +36 -0
  30. data/dist/chunks/_weekday_stacked-BSTKfYPJ.js +45 -0
  31. data/dist/chunks/{lib-5OzNgeeu.js → lib-e7oBFFDo.js} +2 -2
  32. data/dist/chunks/{pb_form_validation-DGhKbZtO.js → pb_form_validation-CMXevI1t.js} +1 -1
  33. data/dist/chunks/vendor.js +1 -1
  34. data/dist/menu.yml +1 -9
  35. data/dist/playbook-doc.js +1 -1
  36. data/dist/playbook-rails-react-bindings.js +1 -1
  37. data/dist/playbook-rails.js +1 -1
  38. data/dist/playbook.css +1 -1
  39. data/lib/playbook/version.rb +1 -1
  40. metadata +6 -22
  41. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_editing.jsx +0 -102
  42. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_editing.md +0 -4
  43. data/app/pb_kits/playbook/pb_empty_state/_empty_state.scss +0 -38
  44. data/app/pb_kits/playbook/pb_empty_state/_empty_state.tsx +0 -213
  45. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_alignment.jsx +0 -38
  46. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_orientation.jsx +0 -19
  47. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_size.jsx +0 -35
  48. data/app/pb_kits/playbook/pb_empty_state/docs/default_image/computer_fly_no_branding.svg +0 -21
  49. data/app/pb_kits/playbook/pb_empty_state/docs/default_image/utils.tsx +0 -122
  50. data/app/pb_kits/playbook/pb_empty_state/docs/example.yml +0 -7
  51. data/app/pb_kits/playbook/pb_empty_state/docs/index.js +0 -3
  52. data/app/pb_kits/playbook/pb_empty_state/empty_state.test.jsx +0 -17
  53. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_react_hook.jsx +0 -91
  54. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_react_hook.md +0 -1
  55. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_hidden_inputs.html.erb +0 -5
  56. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_hidden_inputs.md +0 -1
  57. data/dist/chunks/_typeahead-Z1NtlQ7Y.js +0 -36
  58. data/dist/chunks/_weekday_stacked-Bh2hQ0JB.js +0 -45
@@ -1,122 +0,0 @@
1
- import React from "react";
2
-
3
- const computer = (
4
- <svg
5
- fill="none"
6
- height={251}
7
- width={341}
8
- xmlns="http://www.w3.org/2000/svg"
9
- >
10
- <path
11
- d="M13.131 233.77c8.809-2.023 18.518-1.86 26.426-6.068 17.42-9.269 21.361-45.131 10.744-58.369-15.926-19.858-33.825-2.383-25.724 10.342 2.817 4.425 9.208 7.26 14.112 8.505 40.222 10.212 62.266-21.411 91.212-43.379 8.325-6.318 16.972-12.289 25.976-17.712 7.597-4.575 15.571-8.608 23.725-12.22 8.436-3.738 16.866-7.895 25.954-9.791 19.121-3.989 30.617-6.438 50.156-7.193 6.868-.265 21.421 2.154 27.93 4.179a73.8 73.8 0 0 1 13.162 5.561c4.289 2.319 8.378 5.018 12.09 8.093 3.993 3.307 7.64 7.011 10.912 10.96 2.894 3.491 5.521 7.237 7.503 11.258 2.173 4.41 3.901 9.072 4.873 13.855.896 4.408-.929 18.105-2.018 22.49-2.446 9.854-26.142 9.975-33.36 5.394-17.25-10.948 2.072-41.177 8.585-49.299 15.495-19.328 29.66-28.821 24.775-54.869-.21-1.121-5.837-23.386-11.566-27.894-5.729-4.509-16.046-17.098-28.713-17.486"
12
- stroke="#DFE3E8"
13
- strokeDasharray="5 9"
14
- strokeLinecap="round"
15
- strokeLinejoin="round"
16
- strokeWidth={3}
17
- />
18
- <path d="M12.034 231.969h240.667v16.979H12.034z"
19
- fill="#fff"
20
- />
21
- <path
22
- clipRule="evenodd"
23
- d="M24.04 232c1.59 9.986 50.66 18 110.96 18s109.37-8.014 110.96-18H24.04Z"
24
- fill="#EFEFEF"
25
- fillRule="evenodd"
26
- opacity={0.398}
27
- />
28
- <path d="M12.028 233.803h240.726v-3.26H12.028v3.26Z"
29
- fill="#DFE3E8"
30
- />
31
- <path
32
- clipRule="evenodd"
33
- d="M111.452 145.308h124.137c3 0 5.432 2.432 5.432 5.433v83.244a5.432 5.432 0 0 1-5.432 5.433H111.452c-3 0-5.432-2.432-5.432-5.433v-83.244a5.432 5.432 0 0 1 5.432-5.433Z"
34
- fill="#E6EBEF"
35
- fillRule="evenodd"
36
- />
37
- <mask
38
- height={95}
39
- id="a"
40
- maskUnits="userSpaceOnUse"
41
- style={{
42
- maskType: "luminance",
43
- }}
44
- width={136}
45
- x={106}
46
- y={145}
47
- >
48
- <path
49
- clipRule="evenodd"
50
- d="M111.452 145.308h124.137c3 0 5.432 2.432 5.432 5.433v83.244a5.432 5.432 0 0 1-5.432 5.433H111.452c-3 0-5.432-2.432-5.432-5.433v-83.244a5.432 5.432 0 0 1 5.432-5.433Z"
51
- fill="#fff"
52
- fillRule="evenodd"
53
- />
54
- </mask>
55
- <g mask="url(#a)">
56
- <path
57
- clipRule="evenodd"
58
- d="m233.81 130.202-98.487 126.253H90.747l-9.791-155.738 152.854 29.485Z"
59
- fill="#EFF3F6"
60
- fillRule="evenodd"
61
- />
62
- </g>
63
- <path
64
- clipRule="evenodd"
65
- d="m190.054 195.575-15.874 11.326v4.703a.423.423 0 0 1-.669.348l-15.206-10.848-.018-.013a.596.596 0 0 1-.249-.486v-11.039c0-.193.093-.375.25-.486l.017-.013 15.875-11.326v-4.703c0-.347.387-.549.668-.348l15.206 10.848.018.013c.157.111.25.293.25.485V195.076a.596.596 0 0 1-.251.486l-.017.013Z"
66
- fill="#F9F9F9"
67
- fillRule="evenodd"
68
- />
69
- <path
70
- d="m174.18 206.901-.872-1.222a1.503 1.503 0 0 0-.628 1.222h1.5Zm15.874-11.326.871 1.221.02-.014-.891-1.207Zm-16.543 16.377.872-1.22-.001-.001-.871 1.221Zm-15.206-10.848-.88 1.215.009.006.871-1.221Zm-.018-.013.88-1.215-.008-.006-.872 1.221Zm.001-12.011.87 1.222.021-.016-.891-1.206Zm.017-.013-.871-1.221-.02.014.891 1.207Zm15.875-11.326.871 1.221a1.5 1.5 0 0 0 .629-1.221h-1.5Zm.668-5.051-.872 1.22.001.001.871-1.221Zm15.206 10.848.88-1.215-.009-.006-.871 1.221Zm.018.013-.88 1.215.011.008.869-1.223Zm-.001 12.011-.87-1.222-.02.015.89 1.207Zm-15.02 12.56 15.874-11.326-1.742-2.442-15.875 11.325 1.743 2.443Zm.629 3.482v-4.703h-3v4.703h3Zm-3.041 1.569c1.29.921 3.041-.023 3.041-1.569h-3c0-.853.974-1.393 1.703-.872l-1.744 2.441Zm-15.205-10.848 15.206 10.848 1.742-2.442-15.206-10.848-1.742 2.442Zm-.027-.02.018.014 1.76-2.43-.018-.013-1.76 2.429Zm-.869-1.7c0 .676.325 1.312.877 1.707l1.744-2.442a.905.905 0 0 1 .379.735h-3Zm0-.005v.005h3v-.005h-3Zm0-11.03v11.03h3v-11.03h-3Zm0-.004v.004h3v-.004h-3Zm.88-1.709a2.098 2.098 0 0 0-.88 1.709h3c0 .29-.14.565-.38.736l-1.74-2.445Zm-.004.003-.017.013 1.782 2.413.017-.012-1.782-2.414Zm15.894-11.34-15.874 11.326 1.742 2.442 15.875-11.326-1.743-2.442Zm-.628-3.482v4.703h3v-4.703h-3Zm3.04-1.569c-1.29-.921-3.04.023-3.04 1.569h3c0 .853-.975 1.393-1.704.872l1.744-2.441Zm15.205 10.848-15.206-10.848-1.742 2.442 15.206 10.848 1.742-2.442Zm.028.02-.019-.014-1.76 2.43.018.013 1.761-2.429Zm.869 1.699c0-.673-.324-1.312-.881-1.708l-1.738 2.446a.906.906 0 0 1-.381-.738h3Zm0 .006v-.006h-3v.006h3Zm0 11.029v-11.029h-3v11.029h3Zm0 .005v-.005h-3v.005h3Zm-.881 1.709a2.1 2.1 0 0 0 .881-1.709h-3c0-.29.139-.565.379-.736l1.74 2.445Zm.004-.003.017-.013-1.781-2.414-.017.013 1.781 2.414Z"
71
- fill="#DFE3E8"
72
- />
73
- <path
74
- clipRule="evenodd"
75
- d="M236.947 145.308H111.452c-3 0-5.432 2.432-5.432 5.433v83.244a5.432 5.432 0 0 0 5.432 5.433h125.495c3 0 5.433-2.432 5.433-5.433v-83.244a5.433 5.433 0 0 0-5.433-5.433Zm-127.668 5.433c0-1.2.973-2.173 2.173-2.173h125.495c1.2 0 2.173.973 2.173 2.173v83.244c0 1.2-.973 2.173-2.173 2.173H111.452c-1.2 0-2.173-.973-2.173-2.173v-83.244Z"
76
- fill="#DFE3E8"
77
- fillRule="evenodd"
78
- />
79
- <circle
80
- cx={272.814}
81
- cy={31.086}
82
- r={6.5}
83
- stroke="#DFE3E8"
84
- strokeWidth={3}
85
- transform="rotate(-58 272.814 31.086)"
86
- />
87
- <path
88
- d="m269.32 17.808 1.156-1.85c.435-.697 1.284-.86 1.869-.494l15.564 9.725c.584.366.811 1.2.376 1.897l-1.156 1.85c-.435.696-1.285.859-1.87.494l-15.564-9.726c-.584-.365-.81-1.2-.375-1.896Z"
89
- stroke="#DFE3E8"
90
- strokeWidth={3}
91
- />
92
- <path
93
- d="m271.277 14.944-.852-6.723"
94
- stroke="#DFE3E8"
95
- strokeLinecap="round"
96
- strokeLinejoin="round"
97
- strokeWidth={4}
98
- />
99
- <path
100
- clipRule="evenodd"
101
- d="m268.414 18.314-6.042 2.12 6.042-2.12Z"
102
- stroke="#DFE3E8"
103
- strokeLinecap="round"
104
- strokeLinejoin="round"
105
- strokeWidth={4}
106
- />
107
- <circle
108
- cx={283.883}
109
- cy={13.973}
110
- r={6.5}
111
- stroke="#DFE3E8"
112
- strokeWidth={3}
113
- transform="rotate(-58 283.883 13.973)"
114
- />
115
- </svg>
116
- )
117
-
118
- export const getDefaultImage = () => {
119
- return {
120
- computer,
121
- }
122
- }
@@ -1,7 +0,0 @@
1
- examples:
2
-
3
-
4
- react:
5
- - empty_state_size: Size
6
- - empty_state_orientation: Orientation
7
- - empty_state_alignment: Alignment
@@ -1,3 +0,0 @@
1
- export { default as EmptyStateOrientation } from './_empty_state_orientation.jsx'
2
- export { default as EmptyStateSize } from './_empty_state_size.jsx'
3
- export { default as EmptyStateAlignment } from './_empty_state_alignment.jsx'
@@ -1,17 +0,0 @@
1
- import React from 'react'
2
- import { render, screen } from '../utilities/test-utils'
3
-
4
- import { EmptyState } from 'playbook-ui'
5
-
6
-
7
- test('returns namespaced class name', () => {
8
- render(
9
- <EmptyState
10
- data={{ testid: 'primary-test' }}
11
- text="some text"
12
- />
13
- )
14
-
15
- const kit = screen.getByTestId('primary-test')
16
- expect(kit).toHaveClass('pb_empty_state_kit')
17
- })
@@ -1,91 +0,0 @@
1
- import React from "react"
2
- import MultiLevelSelect from "../_multi_level_select"
3
- import { useForm } from "react-hook-form"
4
-
5
- const treeData = [
6
- {
7
- label: "Power Home Remodeling",
8
- value: "Power Home Remodeling",
9
- id: "powerhome1",
10
- expanded: true,
11
- children: [
12
- {
13
- label: "People",
14
- value: "People",
15
- id: "people1",
16
- expanded: true,
17
- children: [
18
- {
19
- label: "Talent Acquisition",
20
- value: "Talent Acquisition",
21
- id: "talent1",
22
- },
23
- {
24
- label: "Business Affairs",
25
- value: "Business Affairs",
26
- id: "business1",
27
- children: [
28
- {
29
- label: "Initiatives",
30
- value: "Initiatives",
31
- id: "initiative1",
32
- },
33
- {
34
- label: "Learning & Development",
35
- value: "Learning & Development",
36
- id: "development1",
37
- },
38
- ],
39
- },
40
- {
41
- label: "People Experience",
42
- value: "People Experience",
43
- id: "experience1",
44
- },
45
- ],
46
- },
47
- {
48
- label: "Contact Center",
49
- value: "Contact Center",
50
- id: "contact1",
51
- children: [
52
- {
53
- label: "Appointment Management",
54
- value: "Appointment Management",
55
- id: "appointment1",
56
- },
57
- {
58
- label: "Customer Service",
59
- value: "Customer Service",
60
- id: "customer1",
61
- },
62
- {
63
- label: "Energy",
64
- value: "Energy",
65
- id: "energy1",
66
- },
67
- ],
68
- },
69
- ],
70
- },
71
- ]
72
-
73
- const MultiLevelSelectReactHook = (props) => {
74
- const { register, watch } = useForm()
75
- const selectedItems = watch("departments")
76
- selectedItems && console.log("Selected Items", selectedItems)
77
-
78
- return (
79
- <div>
80
- <MultiLevelSelect
81
- id="multiselect-default"
82
- marginBottom="md"
83
- treeData={treeData}
84
- {...register("departments")}
85
- {...props}
86
- />
87
- </div>
88
- )
89
- }
90
-
91
- export default MultiLevelSelectReactHook
@@ -1 +0,0 @@
1
- You can pass `react-hook-form` props to the MultiLevelSelect kit. Check your console to see the full data selected from this example.
@@ -1,5 +0,0 @@
1
- <%= pb_rails("phone_number_input", props: {
2
- hidden_inputs: true,
3
- id: "hidden_inputs",
4
- name: "hidden_inputs",
5
- }) %>
@@ -1 +0,0 @@
1
- The `hidden_inputs` boolean prop generates two hidden input fields, {field_name}_full and {field_name}_country_code. The value passed when the form is submitted contains the full phone number including the country code. Because it requires the submission of a form to function, only use this prop on Rails phone number elements within html form tags `<form>/<form>` or [pb_forms](https://playbook.powerapp.cloud/kits/form). Read the [intl-tel-input](https://intl-tel-input.com/examples/hidden-input.html) docs for more information.