playbook_ui 14.17.0.pre.alpha.playcdntest7233 → 14.17.0.pre.rc.0

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 (115) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/Utilities/types.ts +1 -1
  3. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +0 -70
  4. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +2 -83
  5. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +7 -20
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +1 -2
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -2
  8. data/app/pb_kits/playbook/pb_background/_background.scss +0 -26
  9. data/app/pb_kits/playbook/pb_background/_background.tsx +3 -5
  10. data/app/pb_kits/playbook/pb_background/background.test.js +0 -5
  11. data/app/pb_kits/playbook/pb_background/docs/example.yml +0 -1
  12. data/app/pb_kits/playbook/pb_background/docs/index.js +0 -1
  13. data/app/pb_kits/playbook/pb_collapsible/__snapshots__/collapsible.test.js.snap +7 -14
  14. data/app/pb_kits/playbook/pb_contact/contact.test.js +7 -7
  15. data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +34 -34
  16. data/app/pb_kits/playbook/pb_date_picker/date_picker.html.erb +2 -2
  17. data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.ts +0 -16
  18. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_inline.html.erb +11 -0
  19. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_inline.jsx +7 -0
  20. data/app/pb_kits/playbook/pb_date_picker/sass_partials/_inline_styles.scss +24 -28
  21. data/app/pb_kits/playbook/pb_date_range_inline/date_range_inline.test.js +2 -2
  22. data/app/pb_kits/playbook/pb_date_range_stacked/date_range_stacked.test.js +1 -1
  23. data/app/pb_kits/playbook/pb_draggable/_draggable.scss +20 -43
  24. data/app/pb_kits/playbook/pb_draggable/context/index.tsx +17 -58
  25. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.jsx +105 -102
  26. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.md +3 -3
  27. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.jsx +48 -50
  28. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.md +1 -1
  29. data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_table.jsx → _draggable_with_table_react.jsx} +1 -1
  30. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table_react.md +1 -3
  31. data/app/pb_kits/playbook/pb_draggable/docs/example.yml +6 -9
  32. data/app/pb_kits/playbook/pb_draggable/docs/index.js +1 -4
  33. data/app/pb_kits/playbook/pb_draggable/draggable.test.jsx +3 -71
  34. data/app/pb_kits/playbook/pb_draggable/subcomponents/DraggableContainer.tsx +3 -4
  35. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete.jsx +6 -6
  36. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_and_custom_display.jsx +6 -6
  37. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.jsx +6 -6
  38. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display_rails.html.erb +8 -8
  39. data/app/pb_kits/playbook/pb_dropdown/dropdown.test.jsx +3 -3
  40. data/app/pb_kits/playbook/pb_filter/Filter/CurrentFilters.tsx +4 -3
  41. data/app/pb_kits/playbook/pb_filter/Filter/SortMenu.tsx +3 -2
  42. data/app/pb_kits/playbook/pb_form/pb_form_validation.js +1 -1
  43. data/app/pb_kits/playbook/pb_form_group/_form_group.scss +0 -22
  44. data/app/pb_kits/playbook/pb_icon/icon.test.js +9 -9
  45. data/app/pb_kits/playbook/pb_icon_circle/icon_circle.test.js +1 -1
  46. data/app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.test.js +1 -1
  47. data/app/pb_kits/playbook/pb_icon_value/icon_value.test.js +1 -1
  48. data/app/pb_kits/playbook/pb_label_value/label_value.test.js +1 -1
  49. data/app/pb_kits/playbook/pb_layout/_layout.scss +0 -58
  50. data/app/pb_kits/playbook/pb_layout/_layout.tsx +7 -20
  51. data/app/pb_kits/playbook/pb_layout/docs/example.yml +0 -1
  52. data/app/pb_kits/playbook/pb_layout/docs/index.js +0 -1
  53. data/app/pb_kits/playbook/pb_layout/layout.test.js +0 -4
  54. data/app/pb_kits/playbook/pb_lightbox/hooks/useVisibility.js +1 -1
  55. data/app/pb_kits/playbook/pb_link/link.test.jsx +2 -2
  56. data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +1 -2
  57. data/app/pb_kits/playbook/pb_nav/_nav_item.test.js +3 -5
  58. data/app/pb_kits/playbook/pb_stat_change/stat_change.test.js +4 -8
  59. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_react.md +1 -1
  60. data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -2
  61. data/app/pb_kits/playbook/pb_table/styles/_headers.scss +7 -19
  62. data/app/pb_kits/playbook/pb_table/styles/_striped.scss +3 -3
  63. data/app/pb_kits/playbook/pb_table/table.rb +1 -13
  64. data/app/pb_kits/playbook/pb_table/table_header.rb +1 -13
  65. data/app/pb_kits/playbook/pb_tooltip/floating_ui.js +282 -0
  66. data/app/pb_kits/playbook/pb_tooltip/index.js +56 -183
  67. data/app/pb_kits/playbook/pb_tooltip/tooltip.html.erb +5 -2
  68. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_highlight.jsx +4 -4
  69. data/app/pb_kits/playbook/pb_typeahead/index.ts +2 -2
  70. data/app/pb_kits/playbook/pb_typeahead/typeahead.html.erb +5 -2
  71. data/app/pb_kits/playbook/pb_user/user.html.erb +6 -1
  72. data/app/pb_kits/playbook/pb_user_badge/user_badge.html.erb +6 -1
  73. data/app/pb_kits/playbook/utilities/globalProps.ts +1 -1
  74. data/app/pb_kits/playbook/utilities/object.test.js +1 -149
  75. data/app/pb_kits/playbook/utilities/object.ts +42 -124
  76. data/dist/chunks/{_typeahead-C2GOKWtm.js → _typeahead-N-EFroAX.js} +3 -3
  77. data/dist/chunks/_weekday_stacked-Db780bKR.js +45 -0
  78. data/dist/chunks/lib-Co5y3V4K.js +29 -0
  79. data/dist/chunks/{pb_form_validation-BvNy9Bd6.js → pb_form_validation-DMajaRt3.js} +1 -1
  80. data/dist/chunks/vendor.js +1 -1
  81. data/dist/playbook-doc.js +1 -1
  82. data/dist/playbook-rails-react-bindings.js +1 -1
  83. data/dist/playbook-rails.js +1 -1
  84. data/dist/playbook.css +1 -1
  85. data/lib/playbook/kit_base.rb +4 -4
  86. data/lib/playbook/version.rb +2 -2
  87. metadata +19 -33
  88. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.jsx +0 -90
  89. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.md +0 -3
  90. data/app/pb_kits/playbook/pb_background/docs/_background_overlay.jsx +0 -35
  91. data/app/pb_kits/playbook/pb_background/docs/_background_overlay.md +0 -1
  92. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.jsx +0 -110
  93. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.md +0 -5
  94. data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.jsx +0 -190
  95. data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.md +0 -5
  96. data/app/pb_kits/playbook/pb_layout/subcomponents/_game.tsx +0 -90
  97. data/app/pb_kits/playbook/pb_layout/subcomponents/_round.tsx +0 -57
  98. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_vertical.md +0 -1
  99. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.html.erb +0 -34
  100. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_rails.md +0 -1
  101. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.html.erb +0 -36
  102. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_rails.md +0 -1
  103. data/dist/chunks/_weekday_stacked-CFGTPT0O.js +0 -45
  104. data/dist/chunks/lib-BGzBzFZX.js +0 -29
  105. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_default_react.md → _draggable_default.md} +0 -0
  106. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_default.html.erb → _draggable_default_rails.html.erb} +0 -0
  107. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_multiple_containers_react.md → _draggable_multiple_containers.md} +0 -0
  108. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_multiple_containers.html.erb → _draggable_multiple_containers_rails.html.erb} +0 -0
  109. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_cards_react.md → _draggable_with_cards.md} +0 -0
  110. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_cards.html.erb → _draggable_with_cards_rails.html.erb} +0 -0
  111. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_list_react.md → _draggable_with_list.md} +0 -0
  112. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_list.html.erb → _draggable_with_list_rails.html.erb} +0 -0
  113. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_selectable_list_react.md → _draggable_with_selectable_list.md} +0 -0
  114. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_selectable_list.html.erb → _draggable_with_selectable_list_rails.html.erb} +0 -0
  115. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_table_rails.md → _draggable_with_table.md} +0 -0
@@ -1,5 +1,5 @@
1
- The Draggable kit lets you customize the style of drop zones that appear when dragging an item.
1
+ The Draggable kit allows you to choose the style of drop zones that appear when dragging an item.
2
2
 
3
- By default, drop zones are in the "ghost" style, but you can also choose from "shadow," "outline," and "line."
3
+ By default, the Draggable kit utilizes the "ghost" style for drop zones, but you can also choose between "shadow", "outline", and "line".
4
4
 
5
- When using the "line" type, make sure to set the appropriate `direction` attribute within the `dropZone` prop based on the orientation of your draggable view. By default, this is set to "vertical," but it can also be adjusted to "horizontal." Note that the direction attribute only applies to the "line" type and does not affect other drop zone styles. For more on the "line" style in particular, check out the [Draggable Drop Zones Line doc example](https://playbook.powerapp.cloud/kits/draggable/react#draggable-drop-zones-line).
5
+ Additionally, when using the "line" style, be sure to set the proper `direction` attribute within the `dropZone` prop depending on the orentation of your draggable view. By default, this attribute is set to "vertical", but can also be used with a "horizontal" direction. The `direction` attribute only applies to the "line" style and will not affect other drop zone styles.
@@ -6,8 +6,6 @@ import Caption from '../../pb_caption/_caption'
6
6
  import Draggable from '../../pb_draggable/_draggable'
7
7
  import { DraggableProvider } from '../../pb_draggable/context'
8
8
 
9
-
10
-
11
9
  // Initial items to be dragged
12
10
  const dataPrimary = [
13
11
  {
@@ -44,54 +42,54 @@ const DraggableDropZonesColors = (props) => {
44
42
 
45
43
  return (
46
44
  <>
47
- <Caption marginBottom="xs"
48
- text="Primary"
49
- />
50
- <DraggableProvider
51
- dropZone={{type: "shadow", color: "primary"}}
52
- initialItems={dataPrimary}
53
- onReorder={(items) => setInitialPrimaryState(items)}
54
- >
55
- <Draggable.Container {...props}>
56
- <Flex>
57
- {initialPrimaryState.map(({ id, url }) => (
58
- <Draggable.Item dragId={id}
59
- key={id}
60
- marginRight="sm"
61
- >
62
- <Image alt={id}
63
- size="md"
64
- url={url}
65
- />
66
- </Draggable.Item>
67
- ))}
68
- </Flex>
69
- </Draggable.Container>
70
- </DraggableProvider>
71
- <Caption marginBottom="xs"
72
- text="Purple"
73
- />
74
- <DraggableProvider
75
- dropZone={{type: "outline", color: "purple"}}
76
- initialItems={dataPurple}
77
- onReorder={(items) => setInitialPurpleState(items)}
78
- >
79
- <Draggable.Container {...props}>
80
- <Flex>
81
- {initialPurpleState.map(({ id, url }) => (
82
- <Draggable.Item dragId={id}
83
- key={id}
84
- marginRight="sm"
85
- >
86
- <Image alt={id}
87
- size="md"
88
- url={url}
89
- />
90
- </Draggable.Item>
91
- ))}
92
- </Flex>
93
- </Draggable.Container>
94
- </DraggableProvider>
45
+ <Caption marginBottom="xs">
46
+ Primary
47
+ </Caption>
48
+ <DraggableProvider
49
+ dropZone={{type: "shadow", color: "primary"}}
50
+ initialItems={dataPrimary}
51
+ onReorder={(items) => setInitialPrimaryState(items)}
52
+ >
53
+ <Draggable.Container {...props}>
54
+ <Flex>
55
+ {initialPrimaryState.map(({ id, url }) => (
56
+ <Draggable.Item dragId={id}
57
+ key={id}
58
+ marginRight="sm"
59
+ >
60
+ <Image alt={id}
61
+ size="md"
62
+ url={url}
63
+ />
64
+ </Draggable.Item>
65
+ ))}
66
+ </Flex>
67
+ </Draggable.Container>
68
+ </DraggableProvider>
69
+ <Caption marginBottom="xs">
70
+ Purple
71
+ </Caption>
72
+ <DraggableProvider
73
+ dropZone={{type: "outline", color: "purple"}}
74
+ initialItems={dataPurple}
75
+ onReorder={(items) => setInitialPurpleState(items)}
76
+ >
77
+ <Draggable.Container {...props}>
78
+ <Flex>
79
+ {initialPurpleState.map(({ id, url }) => (
80
+ <Draggable.Item dragId={id}
81
+ key={id}
82
+ marginRight="sm"
83
+ >
84
+ <Image alt={id}
85
+ size="md"
86
+ url={url}
87
+ />
88
+ </Draggable.Item>
89
+ ))}
90
+ </Flex>
91
+ </Draggable.Container>
92
+ </DraggableProvider>
95
93
  </>
96
94
  );
97
95
  };
@@ -1 +1 @@
1
- The default `color` for Draggable kit drop zones is "neutral", with "primary" or "purple" as additional options. When `type` is set to "line", the default color is "primary" and "purple" is the only other option.
1
+ By default, the Draggable kit sets the default color of drop zones to "neutral" (or "primary" if using the "line" style.)
@@ -1,7 +1,7 @@
1
1
  import React, { useState } from "react";
2
2
 
3
3
  import Flex from '../../pb_flex/_flex'
4
- import { DraggableProvider } from '../context'
4
+ import { DraggableProvider } from '../../pb_draggable/context'
5
5
  import Avatar from '../../pb_avatar/_avatar'
6
6
  import Body from '../../pb_body/_body'
7
7
  import Table from '../../pb_table/_table'
@@ -2,6 +2,4 @@ The draggable kit can also be used in conjunction with the table kit to create d
2
2
 
3
3
  - Wrap the Table with the `DraggableProvider` and manage state as shown.
4
4
  - use the `draggableContainer` prop on the Table.Body to designate it as the Draggable Container
5
- - use the `draggableItem` prop on the Table.Row to designate it as the Draggable Item. Make sure to also pass id to the `dragId` prop here.
6
-
7
- We recommending using the default `dropZone type` with the Table kit.
5
+ - use the `draggableItem` prop on the Table.Row to designate it as the Draggable Item. Make sure to also pass id to the `dragId` prop here.
@@ -4,17 +4,14 @@ examples:
4
4
  - draggable_with_list: Draggable with List Kit
5
5
  - draggable_with_selectable_list: Draggable with SelectableList Kit
6
6
  - draggable_with_cards: Draggable with Cards
7
- - draggable_with_table: Draggable with Table
7
+ - draggable_with_table_react: Draggable with Table
8
8
  - draggable_multiple_containers: Dragging Across Multiple Containers
9
- - draggable_drop_zones: Draggable Drop Zones
10
- - draggable_drop_zones_colors: Draggable Drop Zones Colors
11
- - draggable_drop_zones_line: Draggable Drop Zones Line
12
9
 
13
10
  rails:
14
- - draggable_default: Default
15
- - draggable_with_list: Draggable with List Kit
16
- - draggable_with_selectable_list: Draggable with SelectableList Kit
17
- - draggable_with_cards: Draggable with Cards
11
+ - draggable_default_rails: Default
12
+ - draggable_with_list_rails: Draggable with List Kit
13
+ - draggable_with_selectable_list_rails: Draggable with SelectableList Kit
14
+ - draggable_with_cards_rails: Draggable with Cards
18
15
  - draggable_with_table: Draggable with Table
19
- - draggable_multiple_containers: Dragging Across Multiple Containers
16
+ - draggable_multiple_containers_rails: Dragging Across Multiple Containers
20
17
 
@@ -3,7 +3,4 @@ export { default as DraggableWithCards } from './_draggable_with_cards.jsx'
3
3
  export { default as DraggableWithList } from './_draggable_with_list.jsx'
4
4
  export { default as DraggableWithSelectableList } from './_draggable_with_selectable_list.jsx'
5
5
  export { default as DraggableMultipleContainers } from './_draggable_multiple_containers.jsx'
6
- export { default as DraggableWithTable } from './_draggable_with_table.jsx'
7
- export { default as DraggableDropZones } from './_draggable_drop_zones.jsx'
8
- export { default as DraggableDropZonesColors } from './_draggable_drop_zones_colors.jsx'
9
- export { default as DraggableDropZonesLine } from './_draggable_drop_zones_line.jsx'
6
+ export { default as DraggableWithTableReact } from './_draggable_with_table_react.jsx'
@@ -128,58 +128,6 @@ const DraggableKitWithCard = () => {
128
128
  );
129
129
  };
130
130
 
131
- const DraggableWithLineVertical = () => {
132
- const [initialState, setInitialState] = useState(data);
133
- return (
134
- <div data-testid={testId}>
135
- <DraggableProvider
136
- dropZone={{ type: "line" }}
137
- initialItems={data}
138
- onReorder={(items) => setInitialState(items)}
139
- >
140
- <Draggable>
141
- <Draggable.Container>
142
- {initialState.map(({ id, text }) => (
143
- <Draggable.Item
144
- dragId={id}
145
- key={id}
146
- >
147
- {text}
148
- </Draggable.Item>
149
- ))}
150
- </Draggable.Container>
151
- </Draggable>
152
- </DraggableProvider>
153
- </div>
154
- );
155
- };
156
-
157
- const DraggableWithLineHorizontal = () => {
158
- const [initialState, setInitialState] = useState(data);
159
- return (
160
- <div data-testid={testId}>
161
- <DraggableProvider
162
- dropZone={{ type: "line", direction: "horizontal" }}
163
- initialItems={data}
164
- onReorder={(items) => setInitialState(items)}
165
- >
166
- <Draggable>
167
- <Draggable.Container>
168
- {initialState.map(({ id, text }) => (
169
- <Draggable.Item
170
- dragId={id}
171
- key={id}
172
- >
173
- {text}
174
- </Draggable.Item>
175
- ))}
176
- </Draggable.Container>
177
- </Draggable>
178
- </DraggableProvider>
179
- </div>
180
- );
181
- };
182
-
183
131
  test("generated default kit and classname", () => {
184
132
  render(<DefaultDraggableKit />);
185
133
  const kit = screen.getByTestId(testId);
@@ -217,7 +165,7 @@ test("generated dragHandle with List", () => {
217
165
 
218
166
  const list = kit.querySelector(".pb_list_kit");
219
167
  expect(list).toBeInTheDocument();
220
- const dragHandle = list.querySelector(".pb_custom_icon");
168
+ const dragHandle = list.querySelector(".fa-grip-dots-vertical");
221
169
  expect(dragHandle).toBeInTheDocument();
222
170
  });
223
171
 
@@ -227,7 +175,7 @@ test("generated dragHandle with SelectableList", () => {
227
175
 
228
176
  const selectabellist = kit.querySelector(".pb_selectable_list_kit");
229
177
  expect(selectabellist).toBeInTheDocument();
230
- const dragHandle = selectabellist.querySelector(".pb_custom_icon");
178
+ const dragHandle = selectabellist.querySelector(".fa-grip-dots-vertical");
231
179
  expect(dragHandle).toBeInTheDocument();
232
180
  });
233
181
 
@@ -237,22 +185,6 @@ test("generated dragHandle with Card", () => {
237
185
 
238
186
  const card = kit.querySelector(".pb_card_kit_deselected_border_radius_md");
239
187
  expect(card).toBeInTheDocument();
240
- const dragHandle = card.querySelector(".pb_custom_icon");
188
+ const dragHandle = card.querySelector(".fa-grip-dots-vertical");
241
189
  expect(dragHandle).toBeInTheDocument();
242
190
  });
243
-
244
- test("line dropZone with default direction applies 'line_vertical' class to container", () => {
245
- render(<DraggableWithLineVertical />);
246
- const kit = screen.getByTestId(testId);
247
- const container = kit.querySelector(".pb_draggable_container");
248
-
249
- expect(container).toHaveClass("line_vertical");
250
- });
251
-
252
- test("line dropZone with horizontal direction applies 'line_horizontal' class to container", () => {
253
- render(<DraggableWithLineHorizontal />);
254
- const kit = screen.getByTestId(testId);
255
- const container = kit.querySelector(".pb_draggable_container");
256
-
257
- expect(container).toHaveClass("line_horizontal");
258
- });
@@ -31,7 +31,7 @@ const DraggableContainer = (props: DraggableContainerProps) => {
31
31
  } = contextValues;
32
32
 
33
33
  // Only get direction if dropZone is 'line'
34
- const direction = dropZone === 'line' ? (contextValues.direction || 'vertical') : null;
34
+ const direction = dropZone === 'line' ? (contextValues.direction || 'vertical') : 'vertical';
35
35
 
36
36
  const ariaProps = buildAriaProps(aria);
37
37
  const dataProps = buildDataProps(data);
@@ -41,9 +41,8 @@ const DraggableContainer = (props: DraggableContainerProps) => {
41
41
  const classes = classnames(
42
42
  buildCss("pb_draggable_container"),
43
43
  `${activeContainer === container ? "active" : ""}`,
44
- // Line variant gets line_{direction} classname on container no matter what
45
- dropZone === 'line' && direction === 'vertical' ? 'line_vertical' : '',
46
- dropZone === 'line' && direction === 'horizontal' ? 'line_horizontal' : '',
44
+ // Only add vertical class if dropZone is 'line' and direction is 'vertical'
45
+ (dropZone === 'line' && direction === 'vertical') ? 'vertical' : '',
47
46
  globalProps(props),
48
47
  className
49
48
  );
@@ -12,7 +12,7 @@ const DropdownWithAutocomplete = (props) => {
12
12
  label: "Jasper Furniss",
13
13
  value: "Jasper Furniss",
14
14
  territory: "PHL",
15
- title: "Lead UX Engineer",
15
+ title: "Senior UX Engineer",
16
16
  id: "jasper-furniss",
17
17
  status: "Offline"
18
18
  },
@@ -25,18 +25,18 @@ const DropdownWithAutocomplete = (props) => {
25
25
  status: "Away"
26
26
  },
27
27
  {
28
- label: "Carlos Lima",
29
- value: "Carlos Lima",
28
+ label: "Jason Cypret",
29
+ value: "Jason Cypret",
30
30
  territory: "PHL",
31
- title: "Nitro Developer",
32
- id: "carlos-lima",
31
+ title: "VP of User Experience",
32
+ id: "jason-cypret",
33
33
  status: "Online"
34
34
  },
35
35
  {
36
36
  label: "Courtney Long",
37
37
  value: "Courtney Long",
38
38
  territory: "PHL",
39
- title: "Lead UX Designer",
39
+ title: "UX Design Mentor",
40
40
  id: "courtney-long",
41
41
  status: "Online"
42
42
  }
@@ -15,7 +15,7 @@ const DropdownWithAutocompleteAndCustomDisplay = (props) => {
15
15
  label: "Jasper Furniss",
16
16
  value: "Jasper Furniss",
17
17
  territory: "PHL",
18
- title: "Lead UX Engineer",
18
+ title: "Senior UX Engineer",
19
19
  id: "jasper-furniss",
20
20
  status: "Offline"
21
21
  },
@@ -28,18 +28,18 @@ const DropdownWithAutocompleteAndCustomDisplay = (props) => {
28
28
  status: "Away"
29
29
  },
30
30
  {
31
- label: "Carlos Lima",
32
- value: "Carlos Lima",
31
+ label: "Jason Cypret",
32
+ value: "Jason Cypret",
33
33
  territory: "PHL",
34
- title: "Nitro Developer",
35
- id: "carlos-lima",
34
+ title: "VP of User Experience",
35
+ id: "jason-cypret",
36
36
  status: "Online"
37
37
  },
38
38
  {
39
39
  label: "Courtney Long",
40
40
  value: "Courtney Long",
41
41
  territory: "PHL",
42
- title: "Lead UX Designer",
42
+ title: "UX Design Mentor",
43
43
  id: "courtney-long",
44
44
  status: "Online"
45
45
  }
@@ -15,7 +15,7 @@ const DropdownWithCustomDisplay = (props) => {
15
15
  label: "Jasper Furniss",
16
16
  value: "Jasper Furniss",
17
17
  territory: "PHL",
18
- title: "Lead UX Engineer",
18
+ title: "Senior UX Engineer",
19
19
  id: "jasper-furniss",
20
20
  status: "Offline"
21
21
  },
@@ -28,18 +28,18 @@ const DropdownWithCustomDisplay = (props) => {
28
28
  status: "Away"
29
29
  },
30
30
  {
31
- label: "Carlos Lima",
32
- value: "Carlos Lima",
31
+ label: "Jason Cypret",
32
+ value: "Jason Cypret",
33
33
  territory: "PHL",
34
- title: "Nitro Developer",
35
- id: "carlos-lima",
34
+ title: "VP of User Experience",
35
+ id: "jason-cypret",
36
36
  status: "Online"
37
37
  },
38
38
  {
39
39
  label: "Courtney Long",
40
40
  value: "Courtney Long",
41
41
  territory: "PHL",
42
- title: "Lead UX Designer",
42
+ title: "UX Design Mentor",
43
43
  id: "courtney-long",
44
44
  status: "Online"
45
45
  }
@@ -1,10 +1,10 @@
1
1
  <%
2
- options = [
2
+ options = [
3
3
  {
4
4
  label: "Jasper Furniss",
5
5
  value: "Jasper Furniss",
6
6
  territory: "PHL",
7
- title: "Lead UX Engineer",
7
+ title: "Senior UX Engineer",
8
8
  id: "jasper-furniss",
9
9
  status: "Offline"
10
10
  },
@@ -17,22 +17,22 @@
17
17
  status: "Away"
18
18
  },
19
19
  {
20
- label: "Carlos Lima",
21
- value: "Carlos Lima",
20
+ label: "Jason Cypret",
21
+ value: "Jason Cypret",
22
22
  territory: "PHL",
23
- title: "Nitro Developer",
24
- id: "carlos-lima",
23
+ title: "VP of User Experience",
24
+ id: "jason-cypret",
25
25
  status: "Online"
26
26
  },
27
27
  {
28
28
  label: "Courtney Long",
29
29
  value: "Courtney Long",
30
30
  territory: "PHL",
31
- title: "Lead UX Designer",
31
+ title: "UX Design Mentor",
32
32
  id: "courtney-long",
33
33
  status: "Online"
34
34
  }
35
- ];
35
+ ]
36
36
 
37
37
  %>
38
38
 
@@ -95,7 +95,7 @@ test('generated customDisplay for trigger', () => {
95
95
 
96
96
  const kit = screen.getByTestId(testId)
97
97
  const trigger = kit.querySelector('.pb_dropdown_trigger')
98
- const customDisplay = trigger.querySelector('.pb_custom_icon')
98
+ const customDisplay = trigger.querySelector('.fa-flag.pb_icon_kit.fa-fw')
99
99
  expect(customDisplay).toBeInTheDocument()
100
100
  })
101
101
 
@@ -170,7 +170,7 @@ test('generated custom Trigger', () => {
170
170
  options={options}
171
171
  >
172
172
  <Dropdown.Trigger>
173
- <Icon icon="flag" />
173
+ <Icon icon="elephant" />
174
174
  </Dropdown.Trigger>
175
175
  {options.map((option) => (
176
176
  <Dropdown.Option key={option.id}
@@ -182,7 +182,7 @@ test('generated custom Trigger', () => {
182
182
 
183
183
  const kit = screen.getByTestId(testId)
184
184
  const trigger = kit.querySelector('.pb_dropdown_trigger')
185
- const customTrigger = trigger.querySelector('.pb_custom_icon')
185
+ const customTrigger = trigger.querySelector('.fa-elephant.pb_icon_kit.fa-fw')
186
186
  expect(customTrigger).toBeInTheDocument()
187
187
  })
188
188
 
@@ -1,5 +1,6 @@
1
1
  import React from 'react'
2
- import { isEmpty, omitBy, map } from '../../utilities/object'
2
+ import { map } from 'lodash'
3
+ import { isEmpty, omitBy } from '../../utilities/object'
3
4
 
4
5
  import Body from '../../pb_body/_body'
5
6
  import Caption from '../../pb_caption/_caption'
@@ -45,12 +46,12 @@ const CurrentFilters = ({ dark, filters }: CurrentFiltersProps): React.ReactElem
45
46
  dark={dark}
46
47
  size={4}
47
48
  tag="h4"
48
- text={`${name}`}
49
+ text={name}
49
50
  /> :
50
51
  <div>
51
52
  <Caption
52
53
  dark={dark}
53
- text={`${name}`}
54
+ text={name}
54
55
  />
55
56
  <Title
56
57
  dark={dark}
@@ -1,5 +1,6 @@
1
1
  import React, { useState } from 'react'
2
- import { find, partial, map } from '../../utilities/object'
2
+ import { map } from 'lodash'
3
+ import { find, partial } from '../../utilities/object'
3
4
 
4
5
  import Button from '../../pb_button/_button'
5
6
  import Icon from '../../pb_icon/_icon'
@@ -26,7 +27,7 @@ const directionIcon = (dir: Direction) => (
26
27
 
27
28
  const renderOptions = (options: SortOptions, value: SortValue[], handleChange: (arg0: SortValue) => void) => (
28
29
  map(options, (label, name) => {
29
- const next = nextValue(value, String(name))
30
+ const next = nextValue(value, name)
30
31
  return (
31
32
  <ListItem key={`option-${next.name}-${next.dir}`}>
32
33
  <Button
@@ -1,5 +1,5 @@
1
1
  import PbEnhancedElement from '../pb_enhanced_element'
2
- import { debounce } from '../utilities/object'
2
+ import { debounce } from 'lodash'
3
3
 
4
4
  // Kit selectors
5
5
  const KIT_SELECTOR = '[class^="pb_"][class*="_kit"]'
@@ -205,26 +205,4 @@
205
205
  border-top-left-radius: 0;
206
206
  }
207
207
  }
208
-
209
- .pb_text_input_kit.error {
210
- .text_input_wrapper {
211
- input:focus {
212
- outline: none;
213
- }
214
- }
215
-
216
- & + * input,
217
- & + * select {
218
- border-left-color: $red;
219
- }
220
- }
221
-
222
- .pb_text_input_kit:not(.error):focus-within + .error,
223
- .pb_text_input_kit:not(.error):focus-within + .pb_select .error {
224
- input,
225
- select {
226
- border-left: none;
227
- padding-left: calc(var(--iti-flag-width) + 1px);
228
- }
229
- }
230
208
  }
@@ -16,7 +16,7 @@ describe("Icon Kit", () => {
16
16
  )
17
17
 
18
18
  const kit = screen.getByTestId(testId)
19
- expect(kit).toHaveClass("pb_custom_icon svg-inline--fa svg_fw")
19
+ expect(kit).toHaveClass("fa-user pb_icon_kit fa-fw far")
20
20
  })
21
21
 
22
22
  test("renders rotate prop", () => {[
@@ -31,7 +31,7 @@ describe("Icon Kit", () => {
31
31
  )
32
32
 
33
33
  const kit = screen.getByTestId(testId)
34
- expect(kit).toHaveClass(`pb_custom_icon svg-inline--fa rotate_${rotateProp} svg_fw`)
34
+ expect(kit).toHaveClass(`fa-user pb_icon_kit fa-fw fa-rotate-${rotateProp} far`)
35
35
 
36
36
  cleanup()
37
37
  })
@@ -48,7 +48,7 @@ describe("Icon Kit", () => {
48
48
  )
49
49
 
50
50
  const kit = screen.getByTestId(testId)
51
- expect(kit).toHaveClass("pb_custom_icon svg-inline--fa flip_horizontal svg_fw")
51
+ expect(kit).toHaveClass("fa-user pb_icon_kit fa-fw fa-flip-horizontal far")
52
52
  })
53
53
 
54
54
 
@@ -63,7 +63,7 @@ describe("Icon Kit", () => {
63
63
  )
64
64
 
65
65
  const kit = screen.getByTestId(testId)
66
- expect(kit).toHaveClass("pb_custom_icon svg-inline--fa spin svg_fw")
66
+ expect(kit).toHaveClass("fa-spinner pb_icon_kit fa-fw fa-spin far")
67
67
  })
68
68
 
69
69
  test("renders pull icon", () => {
@@ -77,7 +77,7 @@ describe("Icon Kit", () => {
77
77
  )
78
78
 
79
79
  const kit = screen.getByTestId(testId)
80
- expect(kit).toHaveClass("pb_custom_icon svg-inline--fa svg_fw pull_left")
80
+ expect(kit).toHaveClass("fa-arrow-left pb_icon_kit fa-fw fa-pull-left far")
81
81
  })
82
82
 
83
83
  test("renders pull icon", () => {
@@ -91,7 +91,7 @@ describe("Icon Kit", () => {
91
91
  )
92
92
 
93
93
  const kit = screen.getByTestId(testId)
94
- expect(kit).toHaveClass("pb_custom_icon svg-inline--fa svg_fw pull_left")
94
+ expect(kit).toHaveClass("fa-arrow-left pb_icon_kit fa-fw fa-pull-left far")
95
95
  })
96
96
 
97
97
  test("renders border around icon", () => {
@@ -105,7 +105,7 @@ describe("Icon Kit", () => {
105
105
  )
106
106
 
107
107
  const kit = screen.getByTestId(testId)
108
- expect(kit).toHaveClass("pb_custom_icon svg-inline--fa svg_border svg_fw")
108
+ expect(kit).toHaveClass("fa-user pb_icon_kit fa-border fa-fw far")
109
109
  })
110
110
 
111
111
  test("renders size prop", () => {
@@ -132,7 +132,7 @@ describe("Icon Kit", () => {
132
132
  )
133
133
 
134
134
  const kit = screen.getByTestId(testId)
135
- expect(kit).toHaveClass(`pb_custom_icon svg-inline--fa svg_${sizeProp} svg_fw`)
135
+ expect(kit).toHaveClass(`pb_icon_kit fa-user fa-fw fa-${sizeProp} far`)
136
136
 
137
137
  cleanup()
138
138
  })
@@ -149,7 +149,7 @@ describe("Icon Kit", () => {
149
149
  )
150
150
 
151
151
  const kit = screen.getByTestId(testId)
152
- expect(kit).toHaveClass("pb_custom_icon svg-inline--fa svg_fw")
152
+ expect(kit).toHaveClass("fa-user pb_icon_kit fa-fw fas")
153
153
  })
154
154
 
155
155
  test("renders with color prop", () => {
@@ -29,7 +29,7 @@ describe("IconCircle Kit", () => {
29
29
  )
30
30
 
31
31
  const kit = screen.getByTestId(testId)
32
- const icon = kit.querySelector('.pb_custom_icon')
32
+ const icon = kit.querySelector('.pb_icon_kit')
33
33
  expect(icon).toBeInTheDocument()
34
34
  })
35
35
 
@@ -33,7 +33,7 @@ describe("IconStatValue Kit", () => {
33
33
  )
34
34
 
35
35
  const kit = screen.getByTestId(testId)
36
- const icon = kit.querySelector(".pb_custom_icon")
36
+ const icon = kit.querySelector(".fa-lightbulb-on.pb_icon_kit.fa-fw")
37
37
  expect(icon).toBeInTheDocument()
38
38
  })
39
39