playbook_ui 7.0.1.pre.alpha15 → 7.0.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/data/menu.yml +3 -4
- data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +1 -0
- data/app/pb_kits/playbook/pb_body/body.rb +1 -1
- data/app/pb_kits/playbook/pb_button/_button_mixins.scss +0 -1
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.jsx +3 -3
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.scss +90 -82
- data/app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb +2 -4
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_default.html.erb +7 -17
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_default.jsx +9 -32
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_secondary.html.erb +7 -18
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_secondary.jsx +9 -37
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical.html.erb +11 -0
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical.jsx +29 -0
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical_secondary.html.erb +11 -0
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical_secondary.jsx +34 -0
- data/app/pb_kits/playbook/pb_button_toolbar/docs/example.yml +7 -3
- data/app/pb_kits/playbook/pb_button_toolbar/docs/index.js +2 -0
- data/app/pb_kits/playbook/pb_caption/_caption.html.erb +5 -7
- data/app/pb_kits/playbook/pb_caption/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_caption/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb +2 -1
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.jsx +3 -1
- data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +2 -3
- data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.js +32 -34
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.html.erb +4 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.jsx +13 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.md +1 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_dark.html.erb +4 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_dark.jsx +13 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.html.erb +2 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.jsx +2 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_format.html.erb +0 -4
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_format.jsx +0 -4
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_input.html.erb +9 -9
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_input.jsx +8 -8
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_input.md +1 -3
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.html.erb +0 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.jsx +0 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +4 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/index.js +2 -0
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.html.erb +14 -8
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.jsx +39 -122
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.scss +2 -33
- data/app/pb_kits/playbook/pb_date_range_inline/date_range_inline.rb +9 -44
- data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default.html.erb +1 -14
- data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default.jsx +1 -45
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.html.erb +2 -3
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.jsx +15 -29
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss +0 -10
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default.html.erb +1 -2
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default.jsx +2 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.html.erb +1 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.jsx +1 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line_dark.html.erb +1 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line_dark.jsx +1 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.rb +1 -7
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +1 -1
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +1 -1
- data/app/pb_kits/playbook/pb_form/docs/_form_simple_form.html.erb +3 -3
- data/app/pb_kits/playbook/pb_form/docs/_form_simple_form_validate.html.erb +3 -3
- data/app/pb_kits/playbook/pb_form/form_builder/date_picker_field.rb +0 -1
- data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +1 -0
- data/app/pb_kits/playbook/pb_popover/_popover.scss +4 -6
- data/app/pb_kits/playbook/pb_popover/index.js +1 -3
- data/app/pb_kits/playbook/pb_progress_step/_progress_step.jsx +0 -3
- data/app/pb_kits/playbook/pb_progress_step/_progress_step.scss +33 -168
- data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.html.erb +1 -3
- data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx +8 -10
- data/app/pb_kits/playbook/pb_progress_step/docs/_description.md +1 -1
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.html.erb +16 -14
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.jsx +3 -6
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker.html.erb +1 -17
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker.jsx +1 -17
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_vertical.jsx +3 -10
- data/app/pb_kits/playbook/pb_progress_step/progress_step.rb +1 -11
- data/app/pb_kits/playbook/pb_progress_step/progress_step_item.rb +1 -1
- data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -12
- data/app/pb_kits/playbook/pb_table/docs/index.js +0 -6
- data/app/pb_kits/playbook/pb_time/_time.html.erb +20 -17
- data/app/pb_kits/playbook/pb_time/_time.jsx +27 -40
- data/app/pb_kits/playbook/pb_time/_time.scss +24 -4
- data/app/pb_kits/playbook/pb_time/docs/_time_align.jsx +1 -4
- data/app/pb_kits/playbook/pb_time/docs/_time_default.html.erb +11 -11
- data/app/pb_kits/playbook/pb_time/docs/_time_default.jsx +1 -13
- data/app/pb_kits/playbook/pb_time/docs/_time_sizes.jsx +1 -4
- data/app/pb_kits/playbook/pb_time/docs/_time_timestamp.jsx +1 -3
- data/app/pb_kits/playbook/pb_time/docs/_time_timezone.jsx +2 -7
- data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.scss +5 -5
- data/app/pb_kits/playbook/pb_toggle/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_toggle/toggle.rb +1 -4
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb +20 -24
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.jsx +1 -19
- data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.jsx +1 -8
- data/app/pb_kits/playbook/pb_typeahead/components/Option.jsx +13 -21
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.html.erb +1 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_context_dark.html.erb +1 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.jsx +3 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_summary.jsx +45 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.jsx +3 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_summary.jsx +27 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -3
- data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +1 -24
- data/app/pb_kits/playbook/react_rails_kits.js +0 -1
- data/app/pb_kits/playbook/vendor.js +0 -3
- data/lib/playbook/version.rb +1 -1
- metadata +15 -35
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar_dark.scss +0 -57
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar_mixins.scss +0 -27
- data/app/pb_kits/playbook/pb_caption/docs/_caption_block.html.erb +0 -11
- data/app/pb_kits/playbook/pb_caption/docs/_caption_block.jsx +0 -28
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.md +0 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close.html.erb +0 -21
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close.jsx +0 -38
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/index.js +0 -18
- data/app/pb_kits/playbook/pb_table/docs/_table_action_middle.html.erb +0 -34
- data/app/pb_kits/playbook/pb_table/docs/_table_action_middle.jsx +0 -68
- data/app/pb_kits/playbook/pb_table/docs/_table_action_middle.md +0 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.html.erb +0 -61
- data/app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.jsx +0 -89
- data/app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.md +0 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_one_action.html.erb +0 -34
- data/app/pb_kits/playbook/pb_table/docs/_table_one_action.jsx +0 -68
- data/app/pb_kits/playbook/pb_table/docs/_table_one_action.md +0 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_two_actions.html.erb +0 -43
- data/app/pb_kits/playbook/pb_table/docs/_table_two_actions.jsx +0 -80
- data/app/pb_kits/playbook/pb_table/docs/_table_two_actions.md +0 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_two_plus_actions.html.erb +0 -34
- data/app/pb_kits/playbook/pb_table/docs/_table_two_plus_actions.jsx +0 -63
- data/app/pb_kits/playbook/pb_table/docs/_table_two_plus_actions.md +0 -1
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_options.html.erb +0 -10
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.html.erb +0 -25
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.md +0 -8
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.html.erb +0 -30
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.md +0 -11
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.html.erb +0 -25
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.md +0 -1
- data/lib/tasks/changelog.rake +0 -14
@@ -2,12 +2,10 @@
|
|
2
2
|
id: object.id,
|
3
3
|
data: object.data,
|
4
4
|
class: object.classname) do %>
|
5
|
-
<div class="box">
|
6
5
|
<div class="circle">
|
7
6
|
<%= pb_rails("icon", props: { icon: "check", size: "xs" }) %>
|
8
7
|
</div>
|
9
|
-
<div
|
8
|
+
<div>
|
10
9
|
<%= capture(&object.children) %>
|
11
10
|
<div>
|
12
|
-
</div>
|
13
11
|
<% end %>
|
@@ -7,7 +7,7 @@ import { Icon } from '..'
|
|
7
7
|
|
8
8
|
type ProgressStepItemProps = {
|
9
9
|
className?: string,
|
10
|
-
status?: 'complete' | 'active' | 'inactive'
|
10
|
+
status?: 'complete' | 'active' | 'inactive',
|
11
11
|
children?: React.Node,
|
12
12
|
}
|
13
13
|
|
@@ -20,15 +20,13 @@ const ProgressStepItem = ({
|
|
20
20
|
|
21
21
|
return (
|
22
22
|
<li className={classnames(progressStepItem, className)}>
|
23
|
-
<div className="
|
24
|
-
<
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
{children}
|
31
|
-
</div>
|
23
|
+
<div className="circle">
|
24
|
+
<Icon
|
25
|
+
icon="check"
|
26
|
+
/>
|
27
|
+
</div>
|
28
|
+
<div>
|
29
|
+
{children}
|
32
30
|
</div>
|
33
31
|
</li>
|
34
32
|
)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
Progress step kit is used to show the progress of a process. There are three types of steps in this kit: completed, active, and inactive. Completed steps are indicated by a solid, blue circle (with or without an icon). The current, or active, step is indicated by an outlined blue circle. The inactive, or future, step is indicated by a solid gray circle.
|
2
2
|
|
3
3
|
**Tracker**
|
4
|
-
|
4
|
+
This kit variant only uses the *completed* and *inactive* statuses
|
5
5
|
This variant takes children just like the default progress step. It is best to use the caption kit for children in this variant.
|
@@ -7,39 +7,41 @@
|
|
7
7
|
<%= pb_rails("progress_step/progress_step_item", props: {status: "inactive"}) do %>
|
8
8
|
<% end %>
|
9
9
|
<% end %>
|
10
|
-
|
11
10
|
<br /><br />
|
11
|
+
<%= pb_rails("progress_step", props: {classname:"connected", orientation: "horizontal"}) do %>
|
12
|
+
<%= pb_rails("progress_step/progress_step_item", props: {status: "complete"}) do %>
|
13
|
+
<% end %>
|
14
|
+
<%= pb_rails("progress_step/progress_step_item", props: {status: "active"}) do %>
|
15
|
+
<% end %>
|
16
|
+
<%= pb_rails("progress_step/progress_step_item", props: {status: "inactive"}) do %>
|
17
|
+
<% end %>
|
18
|
+
<% end %>
|
12
19
|
|
20
|
+
<br /><br />
|
13
21
|
|
14
22
|
<%= pb_rails("progress_step", props: {orientation: "horizontal"}) do %>
|
15
23
|
<%= pb_rails("progress_step/progress_step_item", props: {status: "complete"}) do %>
|
16
24
|
step 1
|
17
25
|
<% end %>
|
18
|
-
<%= pb_rails("progress_step/progress_step_item", props: {status: "
|
26
|
+
<%= pb_rails("progress_step/progress_step_item", props: {status: "active"}) do %>
|
19
27
|
step 2
|
20
|
-
<% end %>
|
21
|
-
<%= pb_rails("progress_step/progress_step_item", props: {status: "active"}) do %>
|
22
|
-
step 3
|
23
|
-
<% end %>
|
24
|
-
<%= pb_rails("progress_step/progress_step_item", props: {status: "inactive"}) do %>
|
25
|
-
step 4
|
26
28
|
<% end %>
|
27
29
|
<%= pb_rails("progress_step/progress_step_item", props: {status: "inactive"}) do %>
|
28
|
-
step
|
30
|
+
step 3
|
29
31
|
<% end %>
|
30
32
|
<% end %>
|
31
33
|
|
32
|
-
<br /><br />
|
33
34
|
|
35
|
+
<br /><br />
|
34
36
|
|
35
|
-
<%= pb_rails("progress_step", props: {orientation: "horizontal", icon:true
|
37
|
+
<%= pb_rails("progress_step", props: {orientation: "horizontal", icon:true}) do %>
|
36
38
|
<%= pb_rails("progress_step/progress_step_item", props: {status: "complete"}) do %>
|
37
39
|
step 1
|
38
40
|
<% end %>
|
39
|
-
<%= pb_rails("progress_step/progress_step_item", props: {status: "
|
41
|
+
<%= pb_rails("progress_step/progress_step_item", props: {status: "active"}) do %>
|
40
42
|
step 2
|
41
43
|
<% end %>
|
42
|
-
<%= pb_rails("progress_step/progress_step_item", props: {status: "
|
44
|
+
<%= pb_rails("progress_step/progress_step_item", props: {status: "inactive"}) do %>
|
43
45
|
step 3
|
44
46
|
<% end %>
|
45
|
-
<% end %>
|
47
|
+
<% end %>
|
@@ -2,12 +2,9 @@ import React from 'react'
|
|
2
2
|
import ProgressStep from '../_progress_step.jsx'
|
3
3
|
import ProgressStepItem from '../_progress_step_item.jsx'
|
4
4
|
|
5
|
-
const ProgressStepDefault = (
|
5
|
+
const ProgressStepDefault = () => (
|
6
6
|
<div>
|
7
|
-
<ProgressStep
|
8
|
-
icon
|
9
|
-
{...props}
|
10
|
-
>
|
7
|
+
<ProgressStep icon>
|
11
8
|
<ProgressStepItem status="complete" />
|
12
9
|
<ProgressStepItem status="active" />
|
13
10
|
<ProgressStepItem status="inactive" />
|
@@ -16,7 +13,7 @@ const ProgressStepDefault = (props) => (
|
|
16
13
|
<br />
|
17
14
|
<br />
|
18
15
|
|
19
|
-
<ProgressStep
|
16
|
+
<ProgressStep>
|
20
17
|
<ProgressStepItem status="complete">{'Step 1'}</ProgressStepItem>
|
21
18
|
<ProgressStepItem status="active">{'Step 2'}</ProgressStepItem>
|
22
19
|
<ProgressStepItem status="inactive">{'Step 3'}</ProgressStepItem>
|
@@ -1,5 +1,4 @@
|
|
1
|
-
|
2
|
-
<%= pb_rails("progress_step",props:{ variant:"tracker", icon:true}) do %>
|
1
|
+
<%= pb_rails("progress_step",props:{ variant:"tracker"}) do %>
|
3
2
|
<%= pb_rails("progress_step/progress_step_item", props: {status: "complete"}) do %>
|
4
3
|
<%= pb_rails("caption", props:{text: "Ordered"})%>
|
5
4
|
<% end %>
|
@@ -10,18 +9,3 @@
|
|
10
9
|
<%= pb_rails("caption", props:{text: "Delivered"})%>
|
11
10
|
<% end %>
|
12
11
|
<% end %>
|
13
|
-
|
14
|
-
<br>
|
15
|
-
|
16
|
-
<%= pb_rails("progress_step",props:{ variant:"tracker", icon:true}) do %>
|
17
|
-
<%= pb_rails("progress_step/progress_step_item", props: {status: "complete"}) do %>
|
18
|
-
<% end %>
|
19
|
-
<%= pb_rails("progress_step/progress_step_item", props: {status: "complete"}) do %>
|
20
|
-
<% end %>
|
21
|
-
<%= pb_rails("progress_step/progress_step_item", props: {status: "hidden"}) do %>
|
22
|
-
<% end %>
|
23
|
-
<%= pb_rails("progress_step/progress_step_item", props: {status: "active"}) do %>
|
24
|
-
<% end %>
|
25
|
-
<%= pb_rails("progress_step/progress_step_item", props: {status: "inactive"}) do %>
|
26
|
-
<% end %>
|
27
|
-
<% end %>
|
@@ -2,13 +2,10 @@ import React from 'react'
|
|
2
2
|
import ProgressStep from '../_progress_step.jsx'
|
3
3
|
import ProgressStepItem from '../_progress_step_item.jsx'
|
4
4
|
import { Caption } from '../../'
|
5
|
-
const ProgressStepTracker = (
|
5
|
+
const ProgressStepTracker = () => (
|
6
6
|
<div>
|
7
|
-
<br />
|
8
7
|
<ProgressStep
|
9
|
-
icon
|
10
8
|
variant="tracker"
|
11
|
-
{...props}
|
12
9
|
>
|
13
10
|
<ProgressStepItem status="complete">
|
14
11
|
<Caption>{'Ordered'}</Caption>
|
@@ -20,19 +17,6 @@ const ProgressStepTracker = (props) => (
|
|
20
17
|
<Caption>{'Delivered'}</Caption>
|
21
18
|
</ProgressStepItem>
|
22
19
|
</ProgressStep>
|
23
|
-
|
24
|
-
<br />
|
25
|
-
<ProgressStep
|
26
|
-
icon
|
27
|
-
variant="tracker"
|
28
|
-
{...props}
|
29
|
-
>
|
30
|
-
<ProgressStepItem status="complete" />
|
31
|
-
<ProgressStepItem status="complete" />
|
32
|
-
<ProgressStepItem status="hidden" />
|
33
|
-
<ProgressStepItem status="active" />
|
34
|
-
<ProgressStepItem status="inactive" />
|
35
|
-
</ProgressStep>
|
36
20
|
</div>
|
37
21
|
)
|
38
22
|
|
@@ -2,12 +2,11 @@ import React from 'react'
|
|
2
2
|
import ProgressStep from '../_progress_step.jsx'
|
3
3
|
import ProgressStepItem from '../_progress_step_item.jsx'
|
4
4
|
|
5
|
-
const ProgressStepVertical = (
|
5
|
+
const ProgressStepVertical = () => (
|
6
6
|
<div>
|
7
7
|
<ProgressStep
|
8
8
|
icon
|
9
9
|
orientation="vertical"
|
10
|
-
{...props}
|
11
10
|
>
|
12
11
|
<ProgressStepItem status="complete" />
|
13
12
|
<ProgressStepItem status="active" />
|
@@ -16,10 +15,7 @@ const ProgressStepVertical = (props) => (
|
|
16
15
|
|
17
16
|
<br />
|
18
17
|
|
19
|
-
<ProgressStep
|
20
|
-
orientation="vertical"
|
21
|
-
{...props}
|
22
|
-
>
|
18
|
+
<ProgressStep orientation="vertical">
|
23
19
|
<ProgressStepItem status="complete" />
|
24
20
|
<ProgressStepItem status="active" />
|
25
21
|
<ProgressStepItem status="inactive" />
|
@@ -27,10 +23,7 @@ const ProgressStepVertical = (props) => (
|
|
27
23
|
|
28
24
|
<br />
|
29
25
|
|
30
|
-
<ProgressStep
|
31
|
-
orientation="vertical"
|
32
|
-
{...props}
|
33
|
-
>
|
26
|
+
<ProgressStep orientation="vertical">
|
34
27
|
<ProgressStepItem status="complete">
|
35
28
|
{'Child'}
|
36
29
|
</ProgressStepItem>
|
@@ -15,11 +15,8 @@ module Playbook
|
|
15
15
|
prop :variant, type: Playbook::Props::Enum,
|
16
16
|
values: %w[default tracker],
|
17
17
|
default: "default"
|
18
|
-
prop :color, type: Playbook::Props::Enum,
|
19
|
-
values: %w[primary info],
|
20
|
-
default: "primary"
|
21
18
|
def classname
|
22
|
-
generate_classname("pb_progress_step_kit", orientation, icon_class, variant_class
|
19
|
+
generate_classname("pb_progress_step_kit", orientation, icon_class, variant_class)
|
23
20
|
end
|
24
21
|
|
25
22
|
private
|
@@ -34,13 +31,6 @@ module Playbook
|
|
34
31
|
"tracker"
|
35
32
|
end
|
36
33
|
end
|
37
|
-
|
38
|
-
def color_class
|
39
|
-
case color
|
40
|
-
when "info"
|
41
|
-
"info"
|
42
|
-
end
|
43
|
-
end
|
44
34
|
end
|
45
35
|
end
|
46
36
|
end
|
@@ -10,12 +10,6 @@ examples:
|
|
10
10
|
- table_single_line: Force Single Line
|
11
11
|
- table_data_table: Data Table
|
12
12
|
- table_responsive_table: Responsive Tables
|
13
|
-
- table_one_action: Table with 1 Action
|
14
|
-
- table_two_actions: Table with 2 Actions
|
15
|
-
- table_two_plus_actions: Table with 2+ Actions
|
16
|
-
- table_action_middle: Table with Actions in the Middle
|
17
|
-
- table_icon_buttons: Table with Icon Buttons
|
18
|
-
|
19
13
|
|
20
14
|
react:
|
21
15
|
- table_sm: Small
|
@@ -28,9 +22,3 @@ examples:
|
|
28
22
|
- table_single_line: Force Single Line
|
29
23
|
- table_data_table: Data Table
|
30
24
|
- table_responsive_table: Responsive Tables
|
31
|
-
- table_one_action: Table with 1 Action
|
32
|
-
- table_two_actions: Table with 2 Actions
|
33
|
-
- table_two_plus_actions: Table with 2+ Actions
|
34
|
-
- table_action_middle: Table with Actions in the Middle
|
35
|
-
- table_icon_buttons: Table with Icon Buttons
|
36
|
-
|
@@ -8,9 +8,3 @@ export { default as TableResponsiveTable } from './_table_responsive_table.jsx'
|
|
8
8
|
export { default as TableDisableHover } from './_table_disable_hover.jsx'
|
9
9
|
export { default as TableSingleLine } from './_table_single_line.jsx'
|
10
10
|
export { default as TableMultiline } from './_table_multiline.jsx'
|
11
|
-
export { default as TableOneAction } from './_table_one_action.jsx'
|
12
|
-
export { default as TableTwoActions } from './_table_two_actions.jsx'
|
13
|
-
export { default as TableTwoPlusActions } from './_table_two_plus_actions.jsx'
|
14
|
-
export { default as TableActionMiddle } from './_table_action_middle.jsx'
|
15
|
-
export { default as TableIconButtons } from './_table_icon_buttons.jsx'
|
16
|
-
|
@@ -2,36 +2,39 @@
|
|
2
2
|
id: object.id,
|
3
3
|
data: object.data,
|
4
4
|
class: object.classname) do %>
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
5
|
+
<%
|
6
|
+
# convert deprecated prop values
|
7
|
+
size = object.size
|
8
|
+
size = "sm" if object.size == "xs"
|
9
|
+
size = "md" if object.size == "lg"
|
10
|
+
%>
|
11
11
|
<% if size == "md" %>
|
12
12
|
<% if object.show_icon %>
|
13
13
|
<%= pb_rails("body", props: { color: "light", tag: "span"}) do %>
|
14
|
-
<%= pb_rails("icon", props: { icon: "clock", fixed_width: true }) %>
|
14
|
+
<%= pb_rails("icon", props: { icon: "clock", fixed_width: true, size: "lg" }) %>
|
15
15
|
<% end %>
|
16
16
|
<% end %>
|
17
|
-
<%= pb_rails("
|
17
|
+
<%= pb_rails("caption", props: { tag: "span", text: object.format_time_string, size: "lg" }) %>
|
18
18
|
<% if object.show_timezone %>
|
19
|
-
<%=
|
19
|
+
<%= content_tag(:span, class: "pb_time_timezone") do %>
|
20
|
+
<%= object.pb_date_time.to_timezone.upcase %>
|
21
|
+
<% end %>
|
20
22
|
<% end %>
|
21
23
|
<% else %>
|
22
24
|
<% if object.show_icon %>
|
23
25
|
<%= pb_rails("body", props: { color: "light", tag: "span"}) do %>
|
24
|
-
<%= pb_rails("icon", props: { icon: "clock", fixed_width: true
|
26
|
+
<%= pb_rails("icon", props: { icon: "clock", fixed_width: true }) %>
|
25
27
|
<% end %>
|
26
28
|
<% end %>
|
27
|
-
|
28
|
-
<%= pb_rails("caption", props: { color: "light", tag: "span", text: object.format_time_string }) do %>
|
29
|
+
<%= pb_rails("body", props: { color: "light", tag: "span", text: object.format_time_string }) do %>
|
29
30
|
<%= content_tag(:time, datetime: object.pb_date_time.to_iso) do %>
|
30
|
-
<%=
|
31
|
-
|
32
|
-
|
33
|
-
<%=
|
34
|
-
|
31
|
+
<%= content_tag(:span) do %>
|
32
|
+
<%= object.format_time_string %>
|
33
|
+
<% if object.show_timezone %>
|
34
|
+
<%= content_tag(:span, class: "pb_time_timezone") do %>
|
35
|
+
<%= object.pb_date_time.to_timezone.upcase %>
|
36
|
+
<% end %>
|
37
|
+
<% end %>
|
35
38
|
<% end %>
|
36
39
|
<% end %>
|
37
40
|
<% end %>
|
@@ -18,12 +18,11 @@ type TimeProps = {
|
|
18
18
|
id?: string,
|
19
19
|
showIcon?: boolean,
|
20
20
|
size?: 'md' | 'sm',
|
21
|
-
showTimezone?: boolean,
|
22
21
|
timeZone?: string,
|
23
22
|
}
|
24
23
|
|
25
24
|
const Time = (props: TimeProps) => {
|
26
|
-
const { align, className, date, showIcon, size, timeZone
|
25
|
+
const { align, className, date, showIcon, size, timeZone } = props
|
27
26
|
const classes = classnames(
|
28
27
|
buildCss('pb_time_kit', align, size),
|
29
28
|
globalProps(props),
|
@@ -34,53 +33,41 @@ const Time = (props: TimeProps) => {
|
|
34
33
|
|
35
34
|
return (
|
36
35
|
<div className={classes}>
|
37
|
-
<
|
38
|
-
<
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
</Body>
|
48
|
-
{' '}
|
49
|
-
</If>
|
50
|
-
|
51
|
-
<time dateTime={date}>
|
52
|
-
<span>
|
53
|
-
<If condition={size === 'md'}>
|
54
|
-
<Body
|
55
|
-
className="pb_time"
|
56
|
-
tag="span"
|
57
|
-
text={dateTimestamp.toTimeWithMeridian()}
|
36
|
+
<span className="pb_body_kit">
|
37
|
+
<If condition={showIcon}>
|
38
|
+
<Body
|
39
|
+
color="light"
|
40
|
+
tag="span"
|
41
|
+
>
|
42
|
+
<Icon
|
43
|
+
fixedWidth
|
44
|
+
icon="clock"
|
45
|
+
size={size === 'md' ? 'lg' : 'sm'}
|
58
46
|
/>
|
59
|
-
|
60
|
-
|
47
|
+
</Body>
|
48
|
+
{' '}
|
49
|
+
</If>
|
50
|
+
<time dateTime={date}>
|
51
|
+
<span>
|
52
|
+
<If condition={size !== 'md'}>
|
61
53
|
<Body
|
62
54
|
color="light"
|
63
55
|
tag="span"
|
64
|
-
text={dateTimestamp.
|
56
|
+
text={dateTimestamp.toTimeWithMeridian()}
|
65
57
|
/>
|
66
|
-
|
67
|
-
<Else />
|
68
|
-
<Caption
|
69
|
-
color="light"
|
70
|
-
tag="span"
|
71
|
-
text={dateTimestamp.toTimeWithMeridian()}
|
72
|
-
/>
|
73
|
-
{' '}
|
74
|
-
<If condition={showTimezone}>
|
58
|
+
<Else />
|
75
59
|
<Caption
|
76
|
-
|
60
|
+
size="lg"
|
77
61
|
tag="span"
|
78
|
-
text={dateTimestamp.
|
62
|
+
text={dateTimestamp.toTimeWithMeridian()}
|
79
63
|
/>
|
80
64
|
</If>
|
81
|
-
|
82
|
-
|
83
|
-
|
65
|
+
<If condition={timeZone !== undefined}>
|
66
|
+
<span className="pb_time_timezone">{dateTimestamp.toTimezone()}</span>
|
67
|
+
</If>
|
68
|
+
</span>
|
69
|
+
</time>
|
70
|
+
</span>
|
84
71
|
</div>
|
85
72
|
)
|
86
73
|
}
|