playbook_ui 14.17.0.pre.alpha.play2065passphrasewithselect7295 → 14.17.0.pre.alpha.playcdntest7233

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 (62) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/Components/RegularTableView.tsx +3 -23
  3. data/app/pb_kits/playbook/pb_advanced_table/Components/TableHeaderCell.tsx +1 -11
  4. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +128 -60
  5. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +0 -3
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.html.erb +1 -1
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx +2 -1
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_rails.md +2 -2
  9. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_react.md +1 -1
  10. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_rails.md +2 -6
  11. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_react.md +2 -6
  12. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +2 -6
  13. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -4
  14. data/app/pb_kits/playbook/pb_copy_button/_copy_button.tsx +45 -19
  15. data/app/pb_kits/playbook/pb_copy_button/docs/example.yml +0 -1
  16. data/app/pb_kits/playbook/pb_copy_button/docs/index.js +1 -2
  17. data/app/pb_kits/playbook/pb_form_group/_form_group.scss +3 -23
  18. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.html.erb +5 -15
  19. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.jsx +6 -39
  20. data/app/pb_kits/playbook/pb_layout/_layout.scss +1 -70
  21. data/app/pb_kits/playbook/pb_layout/_layout.tsx +2 -29
  22. data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.jsx +118 -322
  23. data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.md +1 -1
  24. data/app/pb_kits/playbook/pb_layout/subcomponents/_game.tsx +43 -74
  25. data/app/pb_kits/playbook/pb_layout/subcomponents/_round.tsx +4 -21
  26. data/app/pb_kits/playbook/pb_overlay/_overlay.scss +22 -49
  27. data/app/pb_kits/playbook/pb_overlay/_overlay.tsx +4 -15
  28. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_default.md +7 -1
  29. data/app/pb_kits/playbook/pb_overlay/docs/example.yml +0 -3
  30. data/app/pb_kits/playbook/pb_overlay/docs/index.js +0 -3
  31. data/app/pb_kits/playbook/pb_overlay/overlay.test.jsx +1 -39
  32. data/dist/chunks/{_typeahead-CHd0V9EL.js → _typeahead-C2GOKWtm.js} +2 -2
  33. data/dist/chunks/_weekday_stacked-CFGTPT0O.js +45 -0
  34. data/dist/chunks/{lib-BV_AF_eh.js → lib-BGzBzFZX.js} +3 -3
  35. data/dist/chunks/{pb_form_validation-nsvkJU2J.js → pb_form_validation-BvNy9Bd6.js} +1 -1
  36. data/dist/chunks/vendor.js +1 -1
  37. data/dist/playbook-doc.js +1 -1
  38. data/dist/playbook-rails-react-bindings.js +1 -1
  39. data/dist/playbook-rails.js +1 -1
  40. data/dist/playbook.css +1 -1
  41. data/lib/playbook/version.rb +1 -1
  42. metadata +6 -25
  43. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns.jsx +0 -58
  44. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns.md +0 -6
  45. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.jsx +0 -64
  46. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.md +0 -8
  47. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header.jsx +0 -55
  48. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header.md +0 -3
  49. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_rails.html.erb +0 -33
  50. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_rails.md +0 -3
  51. data/app/pb_kits/playbook/pb_advanced_table/scss_partials/advanced_table_sticky_mixin.scss +0 -97
  52. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_hook.jsx +0 -54
  53. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_hook.md +0 -3
  54. data/app/pb_kits/playbook/pb_copy_button/usePBCopy.ts +0 -45
  55. data/app/pb_kits/playbook/pb_layout/subcomponents/_participant.tsx +0 -79
  56. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_color.jsx +0 -63
  57. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_color.md +0 -3
  58. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.jsx +0 -39
  59. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.md +0 -1
  60. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.jsx +0 -40
  61. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.md +0 -5
  62. data/dist/chunks/_weekday_stacked-BatiLk3-.js +0 -45
@@ -85,19 +85,11 @@
85
85
  .text_input_wrapper input, [class^=pb_text_input_kit] .text_input_wrapper .text_input {
86
86
  border-bottom-right-radius: 0;
87
87
  border-top-right-radius: 0;
88
- border-right-color: transparent;
88
+ border-right-width: 0;
89
89
  }
90
- [class^=pb_text_input_kit] .text_input_wrapper input:focus,
91
- [class^=pb_text_input_kit] .text_input_wrapper .text_input:focus {
92
- border-right-color: $primary;
93
- }
94
- [class^=pb_text_input_kit].error .text_input_wrapper input,
95
- [class^=pb_text_input_kit].error .text_input_wrapper .text_input {
96
- border-right-color: $error;
97
- }
98
90
  }
99
91
 
100
- & > [class^=pb_phone_number_input]:not(:first-child), [class^=pb_passphrase]:not(:first-child) {
92
+ & > [class^=pb_phone_number_input]:not(:first-child) {
101
93
  .text_input_wrapper input, [class^=pb_text_input_kit] .text_input_wrapper .text_input {
102
94
  border-bottom-left-radius: 0;
103
95
  border-top-left-radius: 0;
@@ -115,16 +107,8 @@
115
107
  .text_input {
116
108
  border-bottom-right-radius: 0;
117
109
  border-top-right-radius: 0;
118
- border-right-color: transparent;
110
+ border-right: none;
119
111
  }
120
- [class^=pb_text_input_kit] .text_input_wrapper input:focus,
121
- [class^=pb_text_input_kit] .text_input_wrapper .text_input:focus {
122
- border-right-color: $primary;
123
- }
124
- [class^=pb_text_input_kit].error .text_input_wrapper input,
125
- [class^=pb_text_input_kit].error .text_input_wrapper .text_input {
126
- border-right-color: $error;
127
- }
128
112
  }
129
113
 
130
114
  &[class*=rails] > [class^=pb_date_picker_kit] {
@@ -243,8 +227,4 @@
243
227
  padding-left: calc(var(--iti-flag-width) + 1px);
244
228
  }
245
229
  }
246
-
247
- &:has(> [class^="pb_select"]):has(> .pb_passphrase) [class^="pb_select"] {
248
- align-self: baseline;
249
- }
250
230
  }
@@ -1,4 +1,5 @@
1
- <%= pb_rails("flex", props: {orientation: "column", row_gap:"md"}) do %>
1
+ <div>
2
+
2
3
  <%= pb_rails("form_group") do %>
3
4
  <%= pb_rails("text_input", props: { placeholder: "Enter Artist Name" }) %>
4
5
  <%= pb_rails("select", props: {
@@ -16,6 +17,8 @@
16
17
  ]
17
18
  }) %>
18
19
  <% end %>
20
+ <br>
21
+ <br>
19
22
  <%= pb_rails("form_group") do %>
20
23
  <%= pb_rails("select", props: {
21
24
  blank_selection: "Phone",
@@ -29,17 +32,4 @@
29
32
  id: "phone"
30
33
  }) %>
31
34
  <% end %>
32
- <%= pb_rails("form_group") do %>
33
- <%= pb_rails("phone_number_input", props: {
34
- id: "phone2"
35
- }) %>
36
- <%= pb_rails("select", props: {
37
- blank_selection: "Phone",
38
- options: [
39
- { value: "Cell" },
40
- { value: "Work" },
41
- { value: "Home" },
42
- ]
43
- }) %>
44
- <% end %>
45
- <% end %>
35
+ </div>
@@ -1,16 +1,11 @@
1
- import React, {useState} from 'react'
1
+ import React from 'react'
2
2
 
3
3
  import FormGroup from '../_form_group'
4
4
  import PhoneNumberInput from '../../pb_phone_number_input/_phone_number_input'
5
5
  import Select from '../../pb_select/_select'
6
6
  import TextInput from '../../pb_text_input/_text_input'
7
- import Flex from '../../pb_flex/_flex'
8
- import Passphrase from '../../pb_passphrase/_passphrase'
9
7
 
10
8
  const FormGroupSelect = (props) => {
11
- const [input, setInput] = useState("");
12
- const handleChange = (e) => setInput(e.target.value);
13
-
14
9
  const options = [
15
10
  { value: 'Country' },
16
11
  { value: 'Pop' },
@@ -30,10 +25,7 @@ const FormGroupSelect = (props) => {
30
25
  ]
31
26
 
32
27
  return (
33
- <Flex
34
- orientation="column"
35
- rowGap="md"
36
- >
28
+ <div>
37
29
  <FormGroup>
38
30
  <TextInput
39
31
  placeholder="Enter Artist Name"
@@ -45,43 +37,18 @@ const FormGroupSelect = (props) => {
45
37
  {...props}
46
38
  />
47
39
  </FormGroup>
40
+ <br />
41
+ <br />
48
42
  <FormGroup>
49
43
  <Select
50
44
  blankSelection="Phone"
51
45
  options={phoneOptions}
52
- {...props}
53
- />
46
+ />
54
47
  <PhoneNumberInput
55
48
  id='default'
56
- {...props}
57
49
  />
58
50
  </FormGroup>
59
- <FormGroup>
60
- <PhoneNumberInput
61
- id='default-2'
62
- {...props}
63
- />
64
- <Select
65
- blankSelection="Phone"
66
- options={phoneOptions}
67
- {...props}
68
- />
69
- </FormGroup>
70
- <FormGroup>
71
- <Select
72
- blankSelection="Phone"
73
- options={phoneOptions}
74
- {...props}
75
- />
76
- <Passphrase
77
- id="my-passphrase"
78
- label=""
79
- onChange={handleChange}
80
- value={input}
81
- {...props}
82
- />
83
- </FormGroup>
84
- </Flex>
51
+ </div>
85
52
  )
86
53
  }
87
54
 
@@ -210,78 +210,10 @@ $bracket-border-width: 4px;
210
210
  border-right: $bracket-border-width solid $border_light;
211
211
  }
212
212
 
213
- .polygon_node {
214
- position: absolute;
215
- top: calc(50% - 5px);
216
- right: -10px;
217
-
218
- width: 0;
219
- height: 0;
220
- border-top: 5px solid transparent;
221
- border-bottom: 5px solid transparent;
222
- border-left: 10px solid $border_light;
223
- }
224
-
225
213
  .layout_round_label {
226
214
  display: none;
227
215
  }
228
216
 
229
- .layout_participant,
230
- .layout_participant_winner,
231
- .layout_participant_self,
232
- .layout_participant_winner_self,
233
- .layout_participant_winner_self_last {
234
- height: 60px;
235
- }
236
-
237
- .layout_tbd {
238
- height: 140px;
239
- display: flex;
240
- flex-direction: column;
241
- justify-content: center;
242
- }
243
-
244
- .layout_participant_winner,
245
- .layout_participant_self,
246
- .layout_participant_winner_self,
247
- .layout_participant_winner_self_last {
248
- position: relative;
249
-
250
- &::after {
251
- content: "";
252
- position: absolute;
253
- top: 0;
254
- width: 4px;
255
- height: 100%;
256
- }
257
- }
258
-
259
- .layout_participant_winner::after {
260
- right: 0;
261
- background: $product_6_highlight;
262
- }
263
-
264
- .layout_participant_self::after {
265
- left: 0;
266
- background: $category_1;
267
- }
268
-
269
- .layout_participant_winner_self::after {
270
- right: 0;
271
- background: $product_6_highlight;
272
- }
273
-
274
- .layout_participant_winner_self_last::after {
275
- left: 0;
276
- background: $category_1;
277
- }
278
-
279
- .game_separator {
280
- &::before, &::after {
281
- height: 2px;
282
- }
283
- }
284
-
285
217
  @media (max-width: $screen-md-max) {
286
218
  flex-direction: column;
287
219
  .layout_round_label {
@@ -289,8 +221,7 @@ $bracket-border-width: 4px;
289
221
  }
290
222
  .layout_round .layout_game::after,
291
223
  .connector_container,
292
- .half_box,
293
- .polygon_node {
224
+ .half_box {
294
225
  display: none !important;
295
226
  }
296
227
  }
@@ -6,7 +6,6 @@ import { GlobalProps, globalProps, globalInlineProps } from '../utilities/global
6
6
 
7
7
  import { Round, RoundLabel } from "./subcomponents/_round";
8
8
  import Game from "./subcomponents/_game";
9
- import Participant from "./subcomponents/_participant";
10
9
 
11
10
  type LayoutPropTypes = {
12
11
  aria?: {[key: string]: string},
@@ -177,38 +176,13 @@ const Layout = (props: LayoutPropTypes) => {
177
176
  (child: React.ReactElement & {type: {displayName: string}}) => child.type?.displayName !== 'Side'
178
177
  )
179
178
 
180
- const numberOfRounds = Array.isArray(children) ? React.Children.toArray(children).filter(
179
+ const numberOfRounds = Array.isArray(nonSideChildren) ? React.Children.toArray(children).filter(
181
180
  (child) => {
182
181
  return (child as React.ReactElement).type === Layout.Round;
183
182
  }
184
183
  ).length : 0
185
-
186
- const lastRoundWithSelf = React.Children.toArray(children).filter((child) => {
187
- if ((child as React.ReactElement).type !== Layout.Round) {
188
- return false
189
- }
190
-
191
- const roundElement = child as React.ReactElement
192
-
193
- const gameChildren = React.Children.toArray(roundElement.props.children)
194
-
195
- const hasWinningSelfParticipant = gameChildren.some((gameChild) => {
196
- const gameElement = gameChild as React.ReactElement
197
-
198
- const participantChildren = React.Children.toArray(gameElement.props.children)
199
-
200
- return participantChildren.some((participantChild) => {
201
- const participantElement = participantChild as React.ReactElement
202
- const { self } = participantElement.props
203
- return self === true
204
- })
205
- })
206
-
207
- return hasWinningSelfParticipant
208
- }).length
209
-
210
184
  const bracketChildren = nonSideChildren.map(child =>
211
- React.isValidElement(child) ? React.cloneElement(child, { numberOfRounds, lastRoundWithSelf }) : child
185
+ React.isValidElement(child) ? React.cloneElement(child, { numberOfRounds }) : child
212
186
  )
213
187
 
214
188
  const filteredProps = {...props}
@@ -245,6 +219,5 @@ Layout.Footer = Footer
245
219
  Layout.Round = Round
246
220
  Layout.Game = Game
247
221
  Layout.RoundLabel = RoundLabel
248
- Layout.Participant = Participant
249
222
 
250
223
  export default Layout