playbook_ui 6.1.0 → 6.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_avatar/_avatar.jsx +4 -4
  3. data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.jsx +9 -9
  4. data/app/pb_kits/playbook/pb_badge/_badge.jsx +4 -4
  5. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.jsx +16 -16
  6. data/app/pb_kits/playbook/pb_body/_body.jsx +7 -7
  7. data/app/pb_kits/playbook/pb_button/_button.jsx +15 -15
  8. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.jsx +6 -6
  9. data/app/pb_kits/playbook/pb_caption/_caption.jsx +4 -4
  10. data/app/pb_kits/playbook/pb_card/_card.jsx +15 -16
  11. data/app/pb_kits/playbook/pb_card/_card.scss +1 -1
  12. data/app/pb_kits/playbook/pb_card/_card_mixin.scss +4 -4
  13. data/app/pb_kits/playbook/pb_card/card_header.rb +3 -3
  14. data/app/pb_kits/playbook/pb_card/docs/_card_header.html.erb +38 -7
  15. data/app/pb_kits/playbook/pb_card/docs/_card_header.jsx +54 -6
  16. data/app/pb_kits/playbook/pb_card/docs/_card_header.md +1 -1
  17. data/app/pb_kits/playbook/pb_checkbox/_checkbox.jsx +9 -9
  18. data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx +7 -7
  19. data/app/pb_kits/playbook/pb_contact/_contact.jsx +5 -5
  20. data/app/pb_kits/playbook/pb_currency/_currency.jsx +7 -7
  21. data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.jsx +7 -7
  22. data/app/pb_kits/playbook/pb_date/_date.jsx +2 -2
  23. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.jsx +5 -5
  24. data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx +6 -6
  25. data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.jsx +6 -6
  26. data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx +4 -4
  27. data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.jsx +5 -5
  28. data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.jsx +4 -4
  29. data/app/pb_kits/playbook/pb_file_upload/_file_upload.jsx +2 -2
  30. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.jsx +4 -4
  31. data/app/pb_kits/playbook/pb_flex/_flex.jsx +6 -6
  32. data/app/pb_kits/playbook/pb_flex/_flex_item.jsx +4 -4
  33. data/app/pb_kits/playbook/pb_form_pill/_form_pill.jsx +6 -6
  34. data/app/pb_kits/playbook/pb_gauge/_gauge.jsx +14 -14
  35. data/app/pb_kits/playbook/pb_hashtag/_hashtag.jsx +6 -6
  36. data/app/pb_kits/playbook/pb_highlight/_highlight.jsx +5 -5
  37. data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.jsx +11 -11
  38. data/app/pb_kits/playbook/pb_icon/_icon.jsx +9 -9
  39. data/app/pb_kits/playbook/pb_image/_image.jsx +4 -4
  40. data/app/pb_kits/playbook/pb_label_pill/_label_pill.jsx +4 -4
  41. data/app/pb_kits/playbook/pb_label_value/_label_value.jsx +10 -10
  42. data/app/pb_kits/playbook/pb_layout/_layout.jsx +14 -14
  43. data/app/pb_kits/playbook/pb_legend/_legend.jsx +5 -5
  44. data/app/pb_kits/playbook/pb_line_graph/_line_graph.jsx +17 -17
  45. data/app/pb_kits/playbook/pb_list/_list.jsx +10 -10
  46. data/app/pb_kits/playbook/pb_list/_list_item.jsx +4 -4
  47. data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.jsx +4 -4
  48. data/app/pb_kits/playbook/pb_logistic/_logistic.jsx +7 -7
  49. data/app/pb_kits/playbook/pb_message/_message.jsx +8 -8
  50. data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.jsx +5 -5
  51. data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.jsx +3 -3
  52. data/app/pb_kits/playbook/pb_nav/_item.jsx +5 -5
  53. data/app/pb_kits/playbook/pb_nav/_nav.jsx +4 -4
  54. data/app/pb_kits/playbook/pb_online_status/_online_status.jsx +2 -2
  55. data/app/pb_kits/playbook/pb_person/_person.jsx +4 -4
  56. data/app/pb_kits/playbook/pb_person_contact/_person_contact.jsx +9 -9
  57. data/app/pb_kits/playbook/pb_pill/_pill.jsx +3 -3
  58. data/app/pb_kits/playbook/pb_popover/_popover.jsx +4 -4
  59. data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.jsx +7 -7
  60. data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.jsx +9 -9
  61. data/app/pb_kits/playbook/pb_progress_step/_progress_step.jsx +6 -6
  62. data/app/pb_kits/playbook/pb_progress_step/_progress_step.scss +178 -1
  63. data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx +1 -1
  64. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_child.html.erb +11 -0
  65. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_child.jsx +23 -0
  66. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.html.erb +0 -12
  67. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.jsx +0 -12
  68. data/app/pb_kits/playbook/pb_progress_step/docs/example.yml +2 -0
  69. data/app/pb_kits/playbook/pb_progress_step/docs/index.js +1 -0
  70. data/app/pb_kits/playbook/pb_progress_step/progress_step.rb +1 -1
  71. data/app/pb_kits/playbook/pb_radio/_radio.jsx +11 -11
  72. data/app/pb_kits/playbook/pb_section_separator/_section_separator.jsx +4 -4
  73. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.jsx +11 -11
  74. data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.jsx +12 -12
  75. data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.jsx +10 -10
  76. data/app/pb_kits/playbook/pb_source/_source.jsx +4 -4
  77. data/app/pb_kits/playbook/pb_star_rating/_star_rating.jsx +6 -6
  78. data/app/pb_kits/playbook/pb_stat_change/_stat_change.jsx +3 -3
  79. data/app/pb_kits/playbook/pb_stat_value/_stat_value.jsx +4 -4
  80. data/app/pb_kits/playbook/pb_table/_table.jsx +1 -1
  81. data/app/pb_kits/playbook/pb_table/_table_row.jsx +3 -3
  82. data/app/pb_kits/playbook/pb_text_input/_text_input.html.erb +1 -0
  83. data/app/pb_kits/playbook/pb_text_input/_text_input.jsx +17 -14
  84. data/app/pb_kits/playbook/pb_text_input/_text_input.scss +1 -1
  85. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_disabled.html.erb +1 -0
  86. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_disabled.jsx +18 -0
  87. data/app/pb_kits/playbook/pb_text_input/docs/example.yml +2 -0
  88. data/app/pb_kits/playbook/pb_text_input/docs/index.js +1 -0
  89. data/app/pb_kits/playbook/pb_text_input/text_input.rb +1 -7
  90. data/app/pb_kits/playbook/pb_textarea/_textarea.jsx +22 -20
  91. data/app/pb_kits/playbook/pb_textarea/_textarea.scss +1 -3
  92. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_dark.jsx +0 -1
  93. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_dark_error.jsx +0 -1
  94. data/app/pb_kits/playbook/pb_textarea/textarea.rb +1 -7
  95. data/app/pb_kits/playbook/pb_time/_time.jsx +5 -5
  96. data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.jsx +8 -8
  97. data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.jsx +5 -5
  98. data/app/pb_kits/playbook/pb_timeline/_item.jsx +2 -2
  99. data/app/pb_kits/playbook/pb_timeline/_timeline.jsx +6 -6
  100. data/app/pb_kits/playbook/pb_timestamp/_timestamp.jsx +3 -3
  101. data/app/pb_kits/playbook/pb_title/_title.jsx +4 -4
  102. data/app/pb_kits/playbook/pb_title_count/_title_count.jsx +3 -3
  103. data/app/pb_kits/playbook/pb_title_detail/docs/_title_detail_dark.html.erb +19 -0
  104. data/app/pb_kits/playbook/pb_title_detail/docs/_title_detail_dark.jsx +29 -0
  105. data/app/pb_kits/playbook/pb_toggle/_toggle.jsx +5 -5
  106. data/app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb +2 -3
  107. data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +1 -1
  108. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_context_dark.html.erb +0 -1
  109. data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +1 -9
  110. data/app/pb_kits/playbook/pb_user/_user.jsx +7 -7
  111. data/app/pb_kits/playbook/pb_user_badge/_user_badge.jsx +2 -2
  112. data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.jsx +5 -5
  113. data/lib/generators/kit/templates/kit_jsx.erb.tt +2 -2
  114. data/lib/playbook/version.rb +1 -1
  115. metadata +24 -3
@@ -13,15 +13,15 @@ import {
13
13
  import { globalProps } from '../utilities/globalProps.js'
14
14
 
15
15
  type ProgressPillsProps = {
16
- active?: Number,
16
+ active?: number,
17
17
  aria?: object,
18
- className?: String,
18
+ className?: string,
19
19
  data?: object,
20
- id?: String,
21
- steps?: Number,
22
- title?: String,
23
- value?: String,
24
- dark?: Boolean,
20
+ id?: string,
21
+ steps?: number,
22
+ title?: string,
23
+ value?: string,
24
+ dark?: boolean,
25
25
  }
26
26
 
27
27
  const showSteps = (steps, active, dark) => {
@@ -6,16 +6,16 @@ import { globalProps } from '../utilities/globalProps.js'
6
6
 
7
7
  type ProgressSimpleProps = {
8
8
  align?: "left" | "center" | "right",
9
- className?: String | Array<String>,
10
- dark?: Boolean,
11
- data?: String,
12
- id?: String,
13
- max?: String,
14
- muted: Boolean,
15
- percent: String,
16
- value: Number,
9
+ className?: string | array<string>,
10
+ dark?: boolean,
11
+ data?: string,
12
+ id?: string,
13
+ max?: string,
14
+ muted: boolean,
15
+ percent: string,
16
+ value: number,
17
17
  variant?: "default" | "positive" | "negative",
18
- width: String,
18
+ width: string,
19
19
  }
20
20
 
21
21
  const ProgressSimple = (props: ProgressSimpleProps) => {
@@ -6,13 +6,13 @@ import { buildCss } from '../utilities/props'
6
6
  import { globalProps } from '../utilities/globalProps.js'
7
7
 
8
8
  type ProgressStepProps = {
9
- className?: String,
10
- data?: String,
11
- id?: String,
12
- children?: Array<React.ReactChild>,
9
+ className?: string,
10
+ data?: string,
11
+ id?: string,
12
+ children?: array<React.ReactChild>,
13
13
  orientation?: "horizontal" | "vertical",
14
- icon?: Boolean,
15
- dark?: Boolean,
14
+ icon?: boolean,
15
+ dark?: boolean,
16
16
  }
17
17
 
18
18
  const ProgressStep = (props: ProgressStepProps) => {
@@ -39,6 +39,12 @@ $pb_progress_step_connector_height_from_left: $pb_progress_step_circle_size/2 -
39
39
  width: 100%;
40
40
  }
41
41
 
42
+ @mixin pb_progress_step_item_wrapper_child {
43
+ display: flex;
44
+ flex-direction: row;
45
+ width: 100%;
46
+ }
47
+
42
48
  @mixin pb_progress_step_item_wrapper_flex($flex_direction, $align_items, $align_self) {
43
49
  display: flex;
44
50
  flex-direction: $flex_direction;
@@ -65,6 +71,15 @@ $pb_progress_step_connector_height_from_left: $pb_progress_step_circle_size/2 -
65
71
  [class^=pb_progress_step_item] {
66
72
  &[class*=_connector_first], &[class*=_step_connector_first] {
67
73
  opacity: 0;
74
+ display: none;
75
+ }
76
+ }
77
+ }
78
+ &:first-child {
79
+ [class^=pb_progress_step_item] {
80
+ &[class*=_connector_first], &[class*=_step_connector_first] {
81
+ opacity: 0;
82
+ display: none;
68
83
  }
69
84
  }
70
85
  }
@@ -72,6 +87,7 @@ $pb_progress_step_connector_height_from_left: $pb_progress_step_circle_size/2 -
72
87
  [class^=pb_progress_step_item] {
73
88
  &[class*=_connector_second], &[class*=_step_connector_second] {
74
89
  opacity: 0;
90
+ display: none;
75
91
  }
76
92
  }
77
93
  }
@@ -219,6 +235,167 @@ $pb_progress_step_connector_height_from_left: $pb_progress_step_circle_size/2 -
219
235
  }
220
236
  }
221
237
  }
238
+ &[class*=_child] {
239
+ @include pb_progress_step_item_wrapper_child;
240
+ >div {
241
+ &:first-child {
242
+ [class^=pb_progress_step_item] {
243
+ &[class*=_connector_first], &[class*=_step_connector_first] {
244
+ opacity: 0;
245
+ }
246
+ }
247
+ }
248
+ &:last-child {
249
+ [class^=pb_progress_step_item] {
250
+ &[class*=_connector_second], &[class*=_step_connector_second] {
251
+ opacity: 0;
252
+ }
253
+ }
254
+ }
255
+ }
256
+ [class*=pb_progress_step_item_kit] {
257
+ &[class*=_complete] {
258
+ flex-basis: 100%;
259
+ [class=pb_progress_step_item_wrapper] {
260
+ @include pb_progress_step_item_wrapper_child;
261
+ [class^=pb_progress_step_item] {
262
+ &[class*=_connector_first], &[class*=_connector_second] {
263
+ @include pb_progress_step_line($space_sm, $pb_progress_step_connector_width, $primary, $pb_progress_step_connector_height_from_top 0 0 0);
264
+ }
265
+ }
266
+ [class=pb_progress_step_item_step_wrapper] {
267
+ @include pb_progress_step_item_wrapper_flex(column, center, auto);
268
+ [class=pb_progress_step_item_step] {
269
+ @include pb_progress_step_item_wrapper_child;
270
+ [class^=pb_progress_step_item] {
271
+ &[class*=_step_connector_first], &[class*=_step_connector_second] {
272
+ @include pb_progress_step_line($space_sm, $pb_progress_step_connector_width, $primary, $pb_progress_step_connector_height_from_top 0 0 0);
273
+ }
274
+ &[class*=_step_circle] {
275
+ @include pb_progress_step_circle($primary, $primary, 2px, $primary);
276
+ }
277
+ }
278
+ }
279
+ }
280
+ }
281
+ }
282
+ &[class*=_active] {
283
+ flex-basis: 100%;
284
+ [class=pb_progress_step_item_wrapper] {
285
+ @include pb_progress_step_item_wrapper_child;
286
+ [class^=pb_progress_step_item] {
287
+ &[class*=_connector_first] {
288
+ @include pb_progress_step_line($space_sm, $pb_progress_step_connector_width, $primary, $pb_progress_step_connector_height_from_top 0 0 0);
289
+ }
290
+ &[class*=_connector_second] {
291
+ @include pb_progress_step_line($space_sm, $pb_progress_step_connector_width, $border_light, $pb_progress_step_connector_height_from_top 0 0 0);
292
+ }
293
+ }
294
+ [class=pb_progress_step_item_step_wrapper] {
295
+ @include pb_progress_step_item_wrapper_flex(column, center, auto);
296
+ [class=pb_progress_step_item_step] {
297
+ @include pb_progress_step_item_wrapper_child;
298
+ [class^=pb_progress_step_item] {
299
+ &[class*=_step_connector_first] {
300
+ @include pb_progress_step_line($space_sm, $pb_progress_step_connector_width, $primary, $pb_progress_step_connector_height_from_top 0 0 0);
301
+ }
302
+ &[class*=_step_circle] {
303
+ @include pb_progress_step_circle($white, $primary, 2px, $white);
304
+ svg {
305
+ display: none;
306
+ }
307
+ }
308
+ &[class*=_step_connector_second] {
309
+ @include pb_progress_step_line($space_sm, $pb_progress_step_connector_width, $border_light, $pb_progress_step_connector_height_from_top 0 0 0);
310
+ }
311
+ }
312
+ }
313
+ }
314
+ }
315
+ }
316
+ &[class*=_inactive] {
317
+ flex-basis: 100%;
318
+ [class=pb_progress_step_item_wrapper] {
319
+ @include pb_progress_step_item_wrapper_child;
320
+ [class^=pb_progress_step_item] {
321
+ &[class*=_connector_first], &[class*=_connector_second] {
322
+ @include pb_progress_step_line($space_sm, $pb_progress_step_connector_width, $border_light, $pb_progress_step_connector_height_from_top 0 0 0);
323
+ }
324
+ }
325
+ [class=pb_progress_step_item_step_wrapper] {
326
+ @include pb_progress_step_item_wrapper_flex(column, center, auto);
327
+ [class=pb_progress_step_item_step] {
328
+ @include pb_progress_step_item_wrapper_child;
329
+ [class^=pb_progress_step_item] {
330
+ &[class*=_step_connector_first], &[class*=_step_connector_second] {
331
+ @include pb_progress_step_line($space_sm, $pb_progress_step_connector_width, $border_light, $pb_progress_step_connector_height_from_top 0 0 0);
332
+ }
333
+ &[class*=_step_circle] {
334
+ @include pb_progress_step_circle($border_light, $border_light, 2px, $border_light);
335
+ }
336
+ }
337
+ }
338
+ }
339
+ }
340
+ }
341
+ }
342
+ &[class*=_dark] {
343
+ [class*=pb_progress_step_item_kit] {
344
+ &[class*=_active] {
345
+ [class^=pb_progress_step_item] {
346
+ &[class*=_connector_first] {
347
+ @include pb_progress_step_line($space_sm, $pb_progress_step_connector_width, $primary, $pb_progress_step_connector_height_from_top 0 0 0);
348
+ }
349
+ &[class*=_connector_second] {
350
+ @include pb_progress_step_line($space_sm, $pb_progress_step_connector_width, $border_dark, $pb_progress_step_connector_height_from_top 0 0 0);
351
+ }
352
+ }
353
+ [class=pb_progress_step_item_step_wrapper] {
354
+ [class=pb_progress_step_item_step] {
355
+ [class^=pb_progress_step_item] {
356
+ &[class*=_step_connector_first] {
357
+ @include pb_progress_step_line($space_sm, $pb_progress_step_connector_width, $primary, $pb_progress_step_connector_height_from_top 0 0 0);
358
+ }
359
+ &[class*=_step_circle] {
360
+ @include pb_progress_step_circle($bg_dark, $primary, 2px, $bg_dark);
361
+ svg {
362
+ display: none;
363
+ }
364
+ }
365
+ &[class*=_step_connector_second] {
366
+ @include pb_progress_step_line($space_sm, $pb_progress_step_connector_width, $border_dark, $pb_progress_step_connector_height_from_top 0 0 0);
367
+ }
368
+ }
369
+ }
370
+ }
371
+ }
372
+ &[class*=_inactive] {
373
+ [class=pb_progress_step_item_wrapper] {
374
+ [class^=pb_progress_step_item] {
375
+ &[class*=_connector_first], &[class*=_connector_second] {
376
+ @include pb_progress_step_line($space_sm, $pb_progress_step_connector_width, $border_dark, $pb_progress_step_connector_height_from_top 0 0 0);
377
+ }
378
+ }
379
+ [class=pb_progress_step_item_step_wrapper] {
380
+ [class=pb_progress_step_item_step] {
381
+ [class^=pb_progress_step_item] {
382
+ &[class*=_step_connector_first], &[class*=_step_connector_second] {
383
+ @include pb_progress_step_line($space_sm, $pb_progress_step_connector_width, $border_dark, $pb_progress_step_connector_height_from_top 0 0 0);
384
+ }
385
+ &[class*=_step_circle] {
386
+ @include pb_progress_step_circle($border_dark, $border_dark, 0px, $border_dark);
387
+ svg {
388
+ display: none;
389
+ }
390
+ }
391
+ }
392
+ }
393
+ }
394
+ }
395
+ }
396
+ }
397
+ }
398
+ }
222
399
  &[class*=_vertical] {
223
400
  @include pb_progress_step_item_wrapper_flex(column, flex-start, auto);
224
401
  > div:first-child {
@@ -385,4 +562,4 @@ $pb_progress_step_connector_height_from_left: $pb_progress_step_circle_size/2 -
385
562
  }
386
563
  }
387
564
  }
388
- }
565
+ }
@@ -6,7 +6,7 @@ import { buildCss } from '../utilities/props'
6
6
  import { Icon } from '..'
7
7
 
8
8
  type ProgressStepItemProps = {
9
- className?: String,
9
+ className?: string,
10
10
  status?: 'complete' | 'active' | 'inactive',
11
11
  children?: React.Node,
12
12
  }
@@ -0,0 +1,11 @@
1
+ <%= pb_rails("progress_step", props: { orientation: "child" }) do %>
2
+ <%= pb_rails("progress_step/progress_step_item", props: {status: "complete"}) do %>
3
+ Child
4
+ <% end %>
5
+ <%= pb_rails("progress_step/progress_step_item", props: {status: "active"}) do %>
6
+ Child
7
+ <% end %>
8
+ <%= pb_rails("progress_step/progress_step_item", props: {status: "inactive"}) do %>
9
+ Child
10
+ <% end %>
11
+ <% end %>
@@ -0,0 +1,23 @@
1
+ import React from 'react'
2
+ import ProgressStep from '../_progress_step.jsx'
3
+ import ProgressStepItem from '../_progress_step_item.jsx'
4
+
5
+ const ProgressStepChild = () => (
6
+ <div>
7
+ <ProgressStep
8
+ orientation="child"
9
+ >
10
+ <ProgressStepItem status="complete">
11
+ {'Child'}
12
+ </ProgressStepItem>
13
+ <ProgressStepItem status="active">
14
+ {'Child'}
15
+ </ProgressStepItem>
16
+ <ProgressStepItem status="inactive">
17
+ {'Child'}
18
+ </ProgressStepItem>
19
+ </ProgressStep>
20
+ </div>
21
+ )
22
+
23
+ export default ProgressStepChild
@@ -18,16 +18,4 @@
18
18
  <% end %>
19
19
  <% end %>
20
20
 
21
- <br /><br />
22
21
 
23
- <%= pb_rails("progress_step", props: {orientation: "horizontal"}) do %>
24
- <%= pb_rails("progress_step/progress_step_item", props: {status: "complete"}) do %>
25
- Child
26
- <% end %>
27
- <%= pb_rails("progress_step/progress_step_item", props: {status: "active"}) do %>
28
- Child
29
- <% end %>
30
- <%= pb_rails("progress_step/progress_step_item", props: {status: "inactive"}) do %>
31
- Child
32
- <% end %>
33
- <% end %>
@@ -21,18 +21,6 @@ const ProgressStepDefault = () => (
21
21
 
22
22
  <br />
23
23
  <br />
24
-
25
- <ProgressStep>
26
- <ProgressStepItem status="complete">
27
- {'Child'}
28
- </ProgressStepItem>
29
- <ProgressStepItem status="active">
30
- {'Child'}
31
- </ProgressStepItem>
32
- <ProgressStepItem status="inactive">
33
- {'Child'}
34
- </ProgressStepItem>
35
- </ProgressStep>
36
24
  </div>
37
25
  )
38
26
 
@@ -2,11 +2,13 @@ examples:
2
2
 
3
3
  rails:
4
4
  - progress_step_default: Default
5
+ - progress_step_child: Child
5
6
  - progress_step_vertical: Vertical
6
7
  - progress_step_dark: Dark
7
8
 
8
9
 
9
10
  react:
10
11
  - progress_step_default: Default
12
+ - progress_step_child: Child
11
13
  - progress_step_vertical: Vertical
12
14
  - progress_step_dark: Dark
@@ -1,3 +1,4 @@
1
1
  export { default as ProgressStepDefault } from './_progress_step_default.jsx'
2
+ export { default as ProgressStepChild } from './_progress_step_child.jsx'
2
3
  export { default as ProgressStepVertical } from './_progress_step_vertical.jsx'
3
4
  export { default as ProgressStepDark } from './_progress_step_dark.jsx'
@@ -8,7 +8,7 @@ module Playbook
8
8
  partial "pb_progress_step/progress_step"
9
9
 
10
10
  prop :orientation, type: Playbook::Props::Enum,
11
- values: %w[vertical horizontal],
11
+ values: %w[vertical horizontal child],
12
12
  default: "horizontal"
13
13
  prop :icon, type: Playbook::Props::Boolean,
14
14
  default: false
@@ -7,18 +7,18 @@ import classnames from 'classnames'
7
7
  import { globalProps } from '../utilities/globalProps.js'
8
8
 
9
9
  type RadioProps = {
10
- className?: String,
11
- data?: String,
12
- error?: Boolean,
13
- id?: String,
14
- label: String,
15
- name: String,
16
- value: String,
17
- checked?: Boolean,
18
- dark?: Boolean,
19
- text: String,
10
+ className?: string,
11
+ data?: string,
12
+ error?: boolean,
13
+ id?: string,
14
+ label: string,
15
+ name: string,
16
+ value: string,
17
+ checked?: boolean,
18
+ dark?: boolean,
19
+ text: string,
20
20
  children?: Node,
21
- onChange: (Boolean)=>void,
21
+ onChange: (boolean)=>void,
22
22
  }
23
23
 
24
24
  const Radio = ({
@@ -7,12 +7,12 @@ import { globalProps } from '../utilities/globalProps.js'
7
7
 
8
8
  type SectionSeparatorProps = {
9
9
  aria: object,
10
- className: String,
11
- dark?: Boolean,
10
+ className: string,
11
+ dark?: boolean,
12
12
  data: object,
13
- id: String,
13
+ id: string,
14
14
  orientation?: "horizontal" | "vertical",
15
- text: String,
15
+ text: string,
16
16
  variant?: "card" | "background",
17
17
  }
18
18
 
@@ -17,19 +17,19 @@ import { globalProps } from '../utilities/globalProps.js'
17
17
 
18
18
  type SelectableCardProps = {
19
19
  aria?: object,
20
- checked: Boolean,
21
- children?: Array<React.ReactChild>,
22
- className?: String,
20
+ checked: boolean,
21
+ children?: array<React.ReactChild>,
22
+ className?: string,
23
23
  data: object,
24
- disabled?: Boolean,
25
- icon?: Boolean,
26
- id?: String,
27
- inputId?: String,
28
- multi?: Boolean,
29
- name?: String,
24
+ disabled?: boolean,
25
+ icon?: boolean,
26
+ id?: string,
27
+ inputId?: string,
28
+ multi?: boolean,
29
+ name?: string,
30
30
  onChange: InputCallback<HTMLInputElement>,
31
- text?: String,
32
- value?: String,
31
+ text?: string,
32
+ value?: string,
33
33
  }
34
34
 
35
35
  const SelectableCard = ({