playbook_ui 6.1.0.pre.alpha3 → 6.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) 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 +20 -24
  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.html.erb +1 -1
  18. data/app/pb_kits/playbook/pb_checkbox/_checkbox.jsx +9 -9
  19. data/app/pb_kits/playbook/pb_checkbox/checkbox.rb +0 -5
  20. data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx +7 -7
  21. data/app/pb_kits/playbook/pb_contact/_contact.jsx +5 -5
  22. data/app/pb_kits/playbook/pb_currency/_currency.jsx +7 -7
  23. data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.jsx +7 -7
  24. data/app/pb_kits/playbook/pb_date/_date.jsx +2 -2
  25. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.jsx +5 -5
  26. data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx +6 -6
  27. data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.jsx +6 -6
  28. data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx +4 -4
  29. data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.jsx +5 -5
  30. data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.jsx +4 -4
  31. data/app/pb_kits/playbook/pb_file_upload/_file_upload.jsx +2 -2
  32. data/app/pb_kits/playbook/pb_filter/docs/_filter_default.html.erb +2 -6
  33. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.jsx +4 -4
  34. data/app/pb_kits/playbook/pb_flex/_flex.jsx +6 -6
  35. data/app/pb_kits/playbook/pb_flex/_flex_item.jsx +4 -4
  36. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +0 -1
  37. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +0 -1
  38. data/app/pb_kits/playbook/pb_form/docs/_form_simple_form.html.erb +1 -3
  39. data/app/pb_kits/playbook/pb_form/docs/_form_simple_form_validate.html.erb +1 -3
  40. data/app/pb_kits/playbook/pb_form/form_builder.rb +0 -2
  41. data/app/pb_kits/playbook/pb_form/form_builder/form_field_builder.rb +0 -1
  42. data/app/pb_kits/playbook/pb_form_pill/_form_pill.jsx +6 -6
  43. data/app/pb_kits/playbook/pb_gauge/_gauge.jsx +14 -14
  44. data/app/pb_kits/playbook/pb_hashtag/_hashtag.jsx +6 -6
  45. data/app/pb_kits/playbook/pb_highlight/_highlight.jsx +5 -5
  46. data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.jsx +11 -11
  47. data/app/pb_kits/playbook/pb_icon/_icon.jsx +9 -9
  48. data/app/pb_kits/playbook/pb_image/_image.jsx +4 -4
  49. data/app/pb_kits/playbook/pb_label_pill/_label_pill.jsx +4 -4
  50. data/app/pb_kits/playbook/pb_label_value/_label_value.jsx +10 -10
  51. data/app/pb_kits/playbook/pb_layout/_layout.jsx +14 -14
  52. data/app/pb_kits/playbook/pb_legend/_legend.jsx +5 -5
  53. data/app/pb_kits/playbook/pb_line_graph/_line_graph.jsx +17 -17
  54. data/app/pb_kits/playbook/pb_list/_list.jsx +10 -10
  55. data/app/pb_kits/playbook/pb_list/_list_item.jsx +4 -4
  56. data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.jsx +4 -4
  57. data/app/pb_kits/playbook/pb_logistic/_logistic.jsx +7 -7
  58. data/app/pb_kits/playbook/pb_message/_message.jsx +8 -8
  59. data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.jsx +5 -5
  60. data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.jsx +3 -3
  61. data/app/pb_kits/playbook/pb_nav/_item.jsx +5 -5
  62. data/app/pb_kits/playbook/pb_nav/_nav.jsx +4 -4
  63. data/app/pb_kits/playbook/pb_online_status/_online_status.jsx +2 -2
  64. data/app/pb_kits/playbook/pb_person/_person.jsx +4 -4
  65. data/app/pb_kits/playbook/pb_person_contact/_person_contact.jsx +9 -9
  66. data/app/pb_kits/playbook/pb_pill/_pill.jsx +3 -3
  67. data/app/pb_kits/playbook/pb_popover/_popover.jsx +4 -4
  68. data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.jsx +7 -7
  69. data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.jsx +9 -9
  70. data/app/pb_kits/playbook/pb_progress_step/_progress_step.jsx +6 -6
  71. data/app/pb_kits/playbook/pb_progress_step/_progress_step.scss +178 -1
  72. data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx +1 -1
  73. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_child.html.erb +11 -0
  74. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_child.jsx +23 -0
  75. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.html.erb +0 -12
  76. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.jsx +0 -12
  77. data/app/pb_kits/playbook/pb_progress_step/docs/example.yml +2 -0
  78. data/app/pb_kits/playbook/pb_progress_step/docs/index.js +1 -0
  79. data/app/pb_kits/playbook/pb_progress_step/progress_step.rb +1 -1
  80. data/app/pb_kits/playbook/pb_radio/_radio.jsx +11 -11
  81. data/app/pb_kits/playbook/pb_section_separator/_section_separator.jsx +4 -4
  82. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.jsx +13 -13
  83. data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.jsx +12 -12
  84. data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.jsx +10 -10
  85. data/app/pb_kits/playbook/pb_source/_source.jsx +4 -4
  86. data/app/pb_kits/playbook/pb_star_rating/_star_rating.jsx +6 -6
  87. data/app/pb_kits/playbook/pb_stat_change/_stat_change.jsx +3 -3
  88. data/app/pb_kits/playbook/pb_stat_value/_stat_value.jsx +4 -4
  89. data/app/pb_kits/playbook/pb_table/_table.jsx +1 -1
  90. data/app/pb_kits/playbook/pb_table/_table_row.jsx +3 -3
  91. data/app/pb_kits/playbook/pb_text_input/_text_input.html.erb +1 -0
  92. data/app/pb_kits/playbook/pb_text_input/_text_input.jsx +17 -14
  93. data/app/pb_kits/playbook/pb_text_input/_text_input.scss +1 -1
  94. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_disabled.html.erb +1 -0
  95. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_disabled.jsx +18 -0
  96. data/app/pb_kits/playbook/pb_text_input/docs/example.yml +2 -0
  97. data/app/pb_kits/playbook/pb_text_input/docs/index.js +1 -0
  98. data/app/pb_kits/playbook/pb_text_input/text_input.rb +1 -7
  99. data/app/pb_kits/playbook/pb_textarea/_textarea.jsx +22 -20
  100. data/app/pb_kits/playbook/pb_textarea/_textarea.scss +1 -3
  101. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_dark.jsx +0 -1
  102. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_dark_error.jsx +0 -1
  103. data/app/pb_kits/playbook/pb_textarea/textarea.rb +1 -7
  104. data/app/pb_kits/playbook/pb_time/_time.jsx +5 -5
  105. data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.jsx +8 -8
  106. data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.jsx +5 -5
  107. data/app/pb_kits/playbook/pb_timeline/_item.jsx +2 -2
  108. data/app/pb_kits/playbook/pb_timeline/_timeline.jsx +6 -6
  109. data/app/pb_kits/playbook/pb_timestamp/_timestamp.jsx +3 -3
  110. data/app/pb_kits/playbook/pb_title/_title.jsx +4 -4
  111. data/app/pb_kits/playbook/pb_title_count/_title_count.jsx +3 -3
  112. data/app/pb_kits/playbook/pb_title_detail/docs/_title_detail_dark.html.erb +19 -0
  113. data/app/pb_kits/playbook/pb_title_detail/docs/_title_detail_dark.jsx +29 -0
  114. data/app/pb_kits/playbook/pb_toggle/_toggle.jsx +5 -5
  115. data/app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb +2 -3
  116. data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +1 -1
  117. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_context_dark.html.erb +0 -1
  118. data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +1 -9
  119. data/app/pb_kits/playbook/pb_user/_user.jsx +7 -7
  120. data/app/pb_kits/playbook/pb_user_badge/_user_badge.jsx +2 -2
  121. data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.jsx +5 -5
  122. data/lib/generators/kit/templates/kit_jsx.erb.tt +2 -2
  123. data/lib/playbook/version.rb +1 -1
  124. metadata +24 -5
  125. data/app/pb_kits/playbook/pb_form/form_builder/checkbox_field.rb +0 -30
@@ -9,11 +9,11 @@ import { Avatar, Badge } from '../'
9
9
  import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
10
10
 
11
11
  type MultipleUsersStackedProps = {
12
- className?: String,
13
- id?: String,
12
+ className?: string,
13
+ id?: string,
14
14
  data?: object,
15
15
  aria?: object,
16
- users: Array<Object>,
16
+ users: array<object>,
17
17
  }
18
18
 
19
19
  const MultipleUsersStacked = (props: MultipleUsersStackedProps) => {
@@ -4,11 +4,11 @@ import React from 'react'
4
4
  import { Icon } from '../'
5
5
 
6
6
  type NavItemProps = {
7
- text: String,
8
- link: String,
9
- iconLeft: String,
10
- iconRight: String,
11
- active?: Boolean,
7
+ text: string,
8
+ link: string,
9
+ iconLeft: string,
10
+ iconRight: string,
11
+ active?: boolean,
12
12
  children: React.Node,
13
13
  onClick?: EventHandler,
14
14
  }
@@ -7,12 +7,12 @@ import { buildCss } from '../utilities/props'
7
7
  import { globalProps } from '../utilities/globalProps.js'
8
8
 
9
9
  type NavProps = {
10
- title: String,
10
+ title: string,
11
11
  orientation?: "vertical" | "horizontal",
12
- link: String,
12
+ link: string,
13
13
  children?: React.Node,
14
- className?: String | Array<String>,
15
- highlight?: Boolean,
14
+ className?: string | array<string>,
15
+ highlight?: boolean,
16
16
  variant?: "normal" | "subtle",
17
17
  onClick?: EventHandler,
18
18
  }
@@ -7,9 +7,9 @@ import { globalProps } from '../utilities/globalProps.js'
7
7
  import { buildDataProps } from '../utilities/props'
8
8
 
9
9
  type OnlineStatusProps = {
10
- className?: String,
10
+ className?: string,
11
11
  data?: object,
12
- id?: String,
12
+ id?: string,
13
13
  status?: "online" | "offline" | "away",
14
14
  }
15
15
 
@@ -14,11 +14,11 @@ import { Body, Title } from '../'
14
14
 
15
15
  type PersonProps = {
16
16
  aria?: object,
17
- className?: String | Array<String>,
17
+ className?: string | array<string>,
18
18
  data?: object,
19
- firstName: String,
20
- id?: String,
21
- lastName: String,
19
+ firstName: string,
20
+ id?: string,
21
+ lastName: string,
22
22
  }
23
23
 
24
24
  const Person = (props: PersonProps) => {
@@ -14,20 +14,20 @@ import { globalProps } from '../utilities/globalProps.js'
14
14
  import { Caption, Contact, Person } from '../'
15
15
 
16
16
  type ContactItem = {
17
- contactType: String,
18
- contactValue: String,
19
- contactDetail: String,
17
+ contactType: string,
18
+ contactValue: string,
19
+ contactDetail: string,
20
20
  }
21
21
 
22
22
  type PersonContactProps = {
23
23
  aria?: object,
24
- className?: String | Array<String>,
25
- dark?: Boolean,
24
+ className?: string | array<string>,
25
+ dark?: boolean,
26
26
  data?: object,
27
- firstName: String,
28
- id?: String,
29
- lastName: String,
30
- contacts?: Array<ContactItem>,
27
+ firstName: string,
28
+ id?: string,
29
+ lastName: string,
30
+ contacts?: array<ContactItem>,
31
31
  }
32
32
 
33
33
  const PersonContact = (props: PersonContactProps) => {
@@ -7,9 +7,9 @@ import Title from '../pb_title/_title.jsx'
7
7
  import { globalProps } from '../utilities/globalProps.js'
8
8
 
9
9
  type PillProps = {
10
- className?: String,
11
- id?: String,
12
- text: String,
10
+ className?: string,
11
+ id?: string,
12
+ text: string,
13
13
  variant?: "success" | "warning" | "error" | "info" | "neutral",
14
14
  }
15
15
 
@@ -16,12 +16,12 @@ import classnames from 'classnames'
16
16
  import { globalProps } from '../utilities/globalProps.js'
17
17
 
18
18
  type PbPopoverProps = {
19
- className?: String,
19
+ className?: string,
20
20
  closeOnClick?: "outside" | "inside",
21
- offset?: Boolean,
21
+ offset?: boolean,
22
22
  reference: PopperReference,
23
- show?: Boolean,
24
- shouldClosePopover?: () => Boolean,
23
+ show?: boolean,
24
+ shouldClosePopover?: () => boolean,
25
25
  } & PopperProps
26
26
 
27
27
  // Prop enabled default modifiers here
@@ -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