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.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_avatar/_avatar.jsx +4 -4
- data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.jsx +9 -9
- data/app/pb_kits/playbook/pb_badge/_badge.jsx +4 -4
- data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.jsx +16 -16
- data/app/pb_kits/playbook/pb_body/_body.jsx +7 -7
- data/app/pb_kits/playbook/pb_button/_button.jsx +15 -15
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.jsx +6 -6
- data/app/pb_kits/playbook/pb_caption/_caption.jsx +4 -4
- data/app/pb_kits/playbook/pb_card/_card.jsx +20 -24
- data/app/pb_kits/playbook/pb_card/_card.scss +1 -1
- data/app/pb_kits/playbook/pb_card/_card_mixin.scss +4 -4
- data/app/pb_kits/playbook/pb_card/card_header.rb +3 -3
- data/app/pb_kits/playbook/pb_card/docs/_card_header.html.erb +38 -7
- data/app/pb_kits/playbook/pb_card/docs/_card_header.jsx +54 -6
- data/app/pb_kits/playbook/pb_card/docs/_card_header.md +1 -1
- data/app/pb_kits/playbook/pb_checkbox/_checkbox.html.erb +1 -1
- data/app/pb_kits/playbook/pb_checkbox/_checkbox.jsx +9 -9
- data/app/pb_kits/playbook/pb_checkbox/checkbox.rb +0 -5
- data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx +7 -7
- data/app/pb_kits/playbook/pb_contact/_contact.jsx +5 -5
- data/app/pb_kits/playbook/pb_currency/_currency.jsx +7 -7
- data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.jsx +7 -7
- data/app/pb_kits/playbook/pb_date/_date.jsx +2 -2
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.jsx +5 -5
- data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx +6 -6
- data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.jsx +6 -6
- data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx +4 -4
- data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.jsx +5 -5
- data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.jsx +4 -4
- data/app/pb_kits/playbook/pb_file_upload/_file_upload.jsx +2 -2
- data/app/pb_kits/playbook/pb_filter/docs/_filter_default.html.erb +2 -6
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.jsx +4 -4
- data/app/pb_kits/playbook/pb_flex/_flex.jsx +6 -6
- data/app/pb_kits/playbook/pb_flex/_flex_item.jsx +4 -4
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +0 -1
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +0 -1
- data/app/pb_kits/playbook/pb_form/docs/_form_simple_form.html.erb +1 -3
- data/app/pb_kits/playbook/pb_form/docs/_form_simple_form_validate.html.erb +1 -3
- data/app/pb_kits/playbook/pb_form/form_builder.rb +0 -2
- data/app/pb_kits/playbook/pb_form/form_builder/form_field_builder.rb +0 -1
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.jsx +6 -6
- data/app/pb_kits/playbook/pb_gauge/_gauge.jsx +14 -14
- data/app/pb_kits/playbook/pb_hashtag/_hashtag.jsx +6 -6
- data/app/pb_kits/playbook/pb_highlight/_highlight.jsx +5 -5
- data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.jsx +11 -11
- data/app/pb_kits/playbook/pb_icon/_icon.jsx +9 -9
- data/app/pb_kits/playbook/pb_image/_image.jsx +4 -4
- data/app/pb_kits/playbook/pb_label_pill/_label_pill.jsx +4 -4
- data/app/pb_kits/playbook/pb_label_value/_label_value.jsx +10 -10
- data/app/pb_kits/playbook/pb_layout/_layout.jsx +14 -14
- data/app/pb_kits/playbook/pb_legend/_legend.jsx +5 -5
- data/app/pb_kits/playbook/pb_line_graph/_line_graph.jsx +17 -17
- data/app/pb_kits/playbook/pb_list/_list.jsx +10 -10
- data/app/pb_kits/playbook/pb_list/_list_item.jsx +4 -4
- data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.jsx +4 -4
- data/app/pb_kits/playbook/pb_logistic/_logistic.jsx +7 -7
- data/app/pb_kits/playbook/pb_message/_message.jsx +8 -8
- data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.jsx +5 -5
- data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.jsx +3 -3
- data/app/pb_kits/playbook/pb_nav/_item.jsx +5 -5
- data/app/pb_kits/playbook/pb_nav/_nav.jsx +4 -4
- data/app/pb_kits/playbook/pb_online_status/_online_status.jsx +2 -2
- data/app/pb_kits/playbook/pb_person/_person.jsx +4 -4
- data/app/pb_kits/playbook/pb_person_contact/_person_contact.jsx +9 -9
- data/app/pb_kits/playbook/pb_pill/_pill.jsx +3 -3
- data/app/pb_kits/playbook/pb_popover/_popover.jsx +4 -4
- data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.jsx +7 -7
- data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.jsx +9 -9
- data/app/pb_kits/playbook/pb_progress_step/_progress_step.jsx +6 -6
- data/app/pb_kits/playbook/pb_progress_step/_progress_step.scss +178 -1
- data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx +1 -1
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_child.html.erb +11 -0
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_child.jsx +23 -0
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.html.erb +0 -12
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.jsx +0 -12
- data/app/pb_kits/playbook/pb_progress_step/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_progress_step/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_progress_step/progress_step.rb +1 -1
- data/app/pb_kits/playbook/pb_radio/_radio.jsx +11 -11
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.jsx +4 -4
- data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.jsx +13 -13
- data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.jsx +12 -12
- data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.jsx +10 -10
- data/app/pb_kits/playbook/pb_source/_source.jsx +4 -4
- data/app/pb_kits/playbook/pb_star_rating/_star_rating.jsx +6 -6
- data/app/pb_kits/playbook/pb_stat_change/_stat_change.jsx +3 -3
- data/app/pb_kits/playbook/pb_stat_value/_stat_value.jsx +4 -4
- data/app/pb_kits/playbook/pb_table/_table.jsx +1 -1
- data/app/pb_kits/playbook/pb_table/_table_row.jsx +3 -3
- data/app/pb_kits/playbook/pb_text_input/_text_input.html.erb +1 -0
- data/app/pb_kits/playbook/pb_text_input/_text_input.jsx +17 -14
- data/app/pb_kits/playbook/pb_text_input/_text_input.scss +1 -1
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_disabled.html.erb +1 -0
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_disabled.jsx +18 -0
- data/app/pb_kits/playbook/pb_text_input/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_text_input/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_text_input/text_input.rb +1 -7
- data/app/pb_kits/playbook/pb_textarea/_textarea.jsx +22 -20
- data/app/pb_kits/playbook/pb_textarea/_textarea.scss +1 -3
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_dark.jsx +0 -1
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_dark_error.jsx +0 -1
- data/app/pb_kits/playbook/pb_textarea/textarea.rb +1 -7
- data/app/pb_kits/playbook/pb_time/_time.jsx +5 -5
- data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.jsx +8 -8
- data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.jsx +5 -5
- data/app/pb_kits/playbook/pb_timeline/_item.jsx +2 -2
- data/app/pb_kits/playbook/pb_timeline/_timeline.jsx +6 -6
- data/app/pb_kits/playbook/pb_timestamp/_timestamp.jsx +3 -3
- data/app/pb_kits/playbook/pb_title/_title.jsx +4 -4
- data/app/pb_kits/playbook/pb_title_count/_title_count.jsx +3 -3
- data/app/pb_kits/playbook/pb_title_detail/docs/_title_detail_dark.html.erb +19 -0
- data/app/pb_kits/playbook/pb_title_detail/docs/_title_detail_dark.jsx +29 -0
- data/app/pb_kits/playbook/pb_toggle/_toggle.jsx +5 -5
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb +2 -3
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +1 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_context_dark.html.erb +0 -1
- data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +1 -9
- data/app/pb_kits/playbook/pb_user/_user.jsx +7 -7
- data/app/pb_kits/playbook/pb_user_badge/_user_badge.jsx +2 -2
- data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.jsx +5 -5
- data/lib/generators/kit/templates/kit_jsx.erb.tt +2 -2
- data/lib/playbook/version.rb +1 -1
- metadata +24 -5
- 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?:
|
13
|
-
id?:
|
12
|
+
className?: string,
|
13
|
+
id?: string,
|
14
14
|
data?: object,
|
15
15
|
aria?: object,
|
16
|
-
users:
|
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:
|
8
|
-
link:
|
9
|
-
iconLeft:
|
10
|
-
iconRight:
|
11
|
-
active?:
|
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:
|
10
|
+
title: string,
|
11
11
|
orientation?: "vertical" | "horizontal",
|
12
|
-
link:
|
12
|
+
link: string,
|
13
13
|
children?: React.Node,
|
14
|
-
className?:
|
15
|
-
highlight?:
|
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?:
|
10
|
+
className?: string,
|
11
11
|
data?: object,
|
12
|
-
id?:
|
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?:
|
17
|
+
className?: string | array<string>,
|
18
18
|
data?: object,
|
19
|
-
firstName:
|
20
|
-
id?:
|
21
|
-
lastName:
|
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:
|
18
|
-
contactValue:
|
19
|
-
contactDetail:
|
17
|
+
contactType: string,
|
18
|
+
contactValue: string,
|
19
|
+
contactDetail: string,
|
20
20
|
}
|
21
21
|
|
22
22
|
type PersonContactProps = {
|
23
23
|
aria?: object,
|
24
|
-
className?:
|
25
|
-
dark?:
|
24
|
+
className?: string | array<string>,
|
25
|
+
dark?: boolean,
|
26
26
|
data?: object,
|
27
|
-
firstName:
|
28
|
-
id?:
|
29
|
-
lastName:
|
30
|
-
contacts?:
|
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?:
|
11
|
-
id?:
|
12
|
-
text:
|
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?:
|
19
|
+
className?: string,
|
20
20
|
closeOnClick?: "outside" | "inside",
|
21
|
-
offset?:
|
21
|
+
offset?: boolean,
|
22
22
|
reference: PopperReference,
|
23
|
-
show?:
|
24
|
-
shouldClosePopover?: () =>
|
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?:
|
16
|
+
active?: number,
|
17
17
|
aria?: object,
|
18
|
-
className?:
|
18
|
+
className?: string,
|
19
19
|
data?: object,
|
20
|
-
id?:
|
21
|
-
steps?:
|
22
|
-
title?:
|
23
|
-
value?:
|
24
|
-
dark?:
|
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?:
|
10
|
-
dark?:
|
11
|
-
data?:
|
12
|
-
id?:
|
13
|
-
max?:
|
14
|
-
muted:
|
15
|
-
percent:
|
16
|
-
value:
|
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:
|
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?:
|
10
|
-
data?:
|
11
|
-
id?:
|
12
|
-
children?:
|
9
|
+
className?: string,
|
10
|
+
data?: string,
|
11
|
+
id?: string,
|
12
|
+
children?: array<React.ReactChild>,
|
13
13
|
orientation?: "horizontal" | "vertical",
|
14
|
-
icon?:
|
15
|
-
dark?:
|
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
|
+
}
|
@@ -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
|