playbook_ui 7.0.0.pre.alpha7 → 7.0.1.pre.alpha3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/playbook/application_controller.rb +4 -0
- data/app/controllers/playbook/guides_controller.rb +11 -0
- data/app/controllers/playbook/pages_controller.rb +90 -0
- data/app/controllers/playbook/samples_controller.rb +40 -0
- data/app/helpers/playbook/application_helper.rb +19 -0
- data/app/helpers/playbook/pb_doc_helper.rb +1 -0
- data/app/helpers/playbook/pb_kit_helper.rb +18 -3
- data/app/pb_kits/playbook/_playbook.scss +0 -1
- data/app/pb_kits/playbook/config/_kit_example.html.erb +3 -3
- data/app/pb_kits/playbook/config/_kit_ui.html.erb +2 -1
- data/app/pb_kits/playbook/config/_pb_kit_api.html.erb +10 -12
- data/app/pb_kits/playbook/index.js +0 -4
- data/app/pb_kits/playbook/packs/application.js +55 -0
- data/app/pb_kits/playbook/packs/examples.js +175 -0
- data/app/pb_kits/playbook/packs/main.scss +12 -0
- data/app/pb_kits/playbook/packs/samples.js +21 -0
- data/app/pb_kits/playbook/packs/site_styles/_samples.scss +72 -0
- data/app/pb_kits/playbook/packs/site_styles/_scaffold.scss +43 -0
- data/app/pb_kits/playbook/packs/site_styles/_site-style.scss +146 -0
- data/app/pb_kits/playbook/packs/site_styles/docs/_all.scss +10 -0
- data/app/pb_kits/playbook/packs/site_styles/docs/_bg_light_doc_example.scss +7 -0
- data/app/pb_kits/playbook/packs/site_styles/docs/_code_snippet.scss +531 -0
- data/app/pb_kits/playbook/packs/site_styles/docs/_color_utilities.scss +92 -0
- data/app/pb_kits/playbook/packs/site_styles/docs/_flex_examples.scss +15 -0
- data/app/pb_kits/playbook/packs/site_styles/docs/_kit_doc.scss +133 -0
- data/app/pb_kits/playbook/packs/site_styles/docs/_kits_examples.scss +15 -0
- data/app/pb_kits/playbook/packs/site_styles/docs/_markdown.scss +88 -0
- data/app/pb_kits/playbook/packs/site_styles/docs/_spacing_tokens.scss +72 -0
- data/app/pb_kits/playbook/pb_avatar/_avatar.jsx +8 -3
- data/app/pb_kits/playbook/pb_avatar/docs/_avatar_default.jsx +6 -1
- data/app/pb_kits/playbook/pb_avatar/docs/_avatar_monogram.jsx +6 -1
- data/app/pb_kits/playbook/pb_avatar/docs/_avatar_status.jsx +5 -1
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions.jsx +3 -1
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_default.jsx +2 -1
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click.jsx +2 -1
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement.jsx +5 -1
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/example.yml +1 -9
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/index.js +0 -4
- data/app/pb_kits/playbook/pb_badge/docs/_badge_colors.jsx +19 -1
- data/app/pb_kits/playbook/pb_badge/docs/_badge_default.jsx +4 -1
- data/app/pb_kits/playbook/pb_badge/docs/_badge_rounded.jsx +4 -1
- data/app/pb_kits/playbook/pb_badge/docs/example.yml +1 -2
- data/app/pb_kits/playbook/pb_badge/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.html.erb +12 -1
- data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +1 -1
- data/app/pb_kits/playbook/pb_body/docs/_body_block.jsx +2 -2
- data/app/pb_kits/playbook/pb_body/docs/_body_light.jsx +6 -1
- data/app/pb_kits/playbook/pb_body/docs/example.yml +2 -4
- data/app/pb_kits/playbook/pb_body/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_accessibility.jsx +2 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_block_content.jsx +2 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_default.jsx +5 -7
- data/app/pb_kits/playbook/pb_button/docs/_button_full_width.jsx +2 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_link.jsx +4 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_loading.jsx +4 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_options.jsx +2 -1
- data/app/pb_kits/playbook/pb_button/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_button/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_caption/_caption.jsx +1 -3
- data/app/pb_kits/playbook/pb_caption/_caption.scss +0 -3
- data/app/pb_kits/playbook/pb_caption/caption.rb +1 -4
- data/app/pb_kits/playbook/pb_caption/docs/_caption_light.jsx +7 -2
- data/app/pb_kits/playbook/pb_caption/docs/example.yml +2 -6
- data/app/pb_kits/playbook/pb_caption/docs/index.js +0 -2
- data/app/pb_kits/playbook/pb_card/_card.scss +0 -3
- data/app/pb_kits/playbook/pb_card/docs/_card_border_none.jsx +7 -4
- data/app/pb_kits/playbook/pb_card/docs/_card_content.jsx +3 -3
- data/app/pb_kits/playbook/pb_card/docs/_card_header.jsx +39 -13
- data/app/pb_kits/playbook/pb_card/docs/_card_highlight.jsx +13 -4
- data/app/pb_kits/playbook/pb_card/docs/_card_light.jsx +2 -2
- data/app/pb_kits/playbook/pb_card/docs/_card_padding.jsx +37 -7
- data/app/pb_kits/playbook/pb_card/docs/_card_selected.jsx +8 -3
- data/app/pb_kits/playbook/pb_card/docs/_card_separator.jsx +13 -4
- data/app/pb_kits/playbook/pb_card/docs/_card_shadow.jsx +25 -5
- data/app/pb_kits/playbook/pb_card/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_card/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_checked.jsx +2 -1
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_custom.jsx +5 -2
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_default.jsx +2 -1
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_error.jsx +2 -1
- data/app/pb_kits/playbook/pb_checkbox/docs/example.yml +0 -4
- data/app/pb_kits/playbook/pb_checkbox/docs/index.js +0 -2
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_click.jsx +2 -1
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_default.jsx +5 -1
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_link.jsx +3 -1
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_contact/docs/_contact_default.jsx +6 -1
- data/app/pb_kits/playbook/pb_contact/docs/_contact_with_detail.jsx +5 -1
- data/app/pb_kits/playbook/pb_currency/docs/_currency_large.jsx +4 -1
- data/app/pb_kits/playbook/pb_currency/docs/_currency_medium.jsx +4 -1
- data/app/pb_kits/playbook/pb_currency/docs/_currency_small.jsx +4 -1
- data/app/pb_kits/playbook/pb_currency/docs/example.yml +1 -2
- data/app/pb_kits/playbook/pb_currency/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_dashboard_value/docs/_dashboard_value_align.jsx +4 -1
- data/app/pb_kits/playbook/pb_dashboard_value/docs/_dashboard_value_default.jsx +4 -1
- data/app/pb_kits/playbook/pb_date/_date.html.erb +8 -32
- data/app/pb_kits/playbook/pb_date/_date.jsx +67 -76
- data/app/pb_kits/playbook/pb_date/_date.scss +0 -25
- data/app/pb_kits/playbook/pb_date/date.rb +11 -20
- data/app/pb_kits/playbook/pb_date/docs/_date_default.html.erb +9 -1
- data/app/pb_kits/playbook/pb_date/docs/_date_default.jsx +15 -5
- data/app/pb_kits/playbook/pb_date/docs/_description.md +0 -2
- data/app/pb_kits/playbook/pb_date/docs/example.yml +0 -5
- data/app/pb_kits/playbook/pb_date/docs/index.js +0 -2
- data/app/pb_kits/playbook/pb_date_time_stacked/docs/_date_time_stacked_dark.jsx +1 -1
- data/app/pb_kits/playbook/pb_date_time_stacked/docs/_date_time_stacked_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.html.erb +8 -1
- data/app/pb_kits/playbook/pb_distribution_bar/distribution_bar.rb +0 -7
- data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_default.jsx +5 -1
- data/app/pb_kits/playbook/pb_hashtag/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_hashtag/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis.jsx +3 -1
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_modified.jsx +2 -1
- data/app/pb_kits/playbook/pb_home_address_street/docs/example.yml +1 -3
- data/app/pb_kits/playbook/pb_home_address_street/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_legend/_legend.html.erb +11 -1
- data/app/pb_kits/playbook/pb_line_graph/_line_graph.html.erb +13 -1
- data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +1 -1
- data/app/pb_kits/playbook/pb_nav/_horizontal_nav.scss +24 -0
- data/app/pb_kits/playbook/pb_nav/_vertical_nav.scss +28 -0
- data/app/pb_kits/playbook/pb_online_status/docs/_online_status_default.jsx +13 -4
- data/app/pb_kits/playbook/pb_online_status/docs/example.yml +1 -2
- data/app/pb_kits/playbook/pb_online_status/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_person_contact/_person_contact.jsx +6 -7
- data/app/pb_kits/playbook/pb_person_contact/docs/_person_contact_with_wrong_numbers.jsx +0 -1
- data/app/pb_kits/playbook/pb_text_input/_text_input.scss +4 -4
- data/app/pb_kits/playbook/pb_time/_time.jsx +5 -7
- data/app/pb_kits/playbook/pb_time/docs/_time_dark.jsx +2 -0
- data/app/pb_kits/playbook/pb_time/docs/_time_default.jsx +3 -1
- data/app/pb_kits/playbook/pb_time/docs/_time_timestamp.jsx +3 -0
- data/app/pb_kits/playbook/pb_time/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_time/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_title/_title.jsx +1 -1
- data/app/pb_kits/playbook/pb_title/_title.scss +5 -5
- data/app/pb_kits/playbook/pb_title/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_title/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_title_detail/_title_detail.jsx +4 -4
- data/app/pb_kits/playbook/tokens/_colors.scss +24 -23
- data/app/pb_kits/playbook/tokens/_typography.scss +5 -5
- data/app/pb_kits/playbook/vendor.js +0 -5
- data/app/views/layouts/playbook/_mobile_hamburger.html.erb +2 -0
- data/app/views/layouts/playbook/_nav.html.erb +35 -0
- data/app/views/layouts/playbook/_sidebar.html.erb +51 -0
- data/app/views/layouts/playbook/application.html.erb +26 -0
- data/app/views/layouts/playbook/fullscreen.html.slim +10 -0
- data/app/views/layouts/playbook/grid.html.slim +10 -0
- data/app/views/layouts/playbook/samples.html.erb +19 -0
- data/app/views/playbook/guides/create_kit.html.slim +16 -0
- data/app/views/playbook/guides/create_kit/_file_naming.html.md +2 -0
- data/app/views/playbook/guides/create_kit/_generator.html.md +6 -0
- data/app/views/playbook/guides/create_kit/_kit_examples.html.md +2 -0
- data/app/views/playbook/guides/create_kit/_kit_rails.html.md +2 -0
- data/app/views/playbook/guides/create_kit/_kit_react.html.md +2 -0
- data/app/views/playbook/guides/create_kit/_layout.html.md +2 -0
- data/app/views/playbook/guides/create_kit/_view_objects.html.md +2 -0
- data/app/views/playbook/guides/create_kit/_writing_sass.md +10 -0
- data/app/views/playbook/guides/use_nitro.html.slim +6 -0
- data/app/views/playbook/guides/use_nitro/_local.html.md +2 -0
- data/app/views/playbook/guides/use_nitro/_nitro_components.html.md +2 -0
- data/app/views/playbook/guides/use_nitro/_versions.html.md +2 -0
- data/app/views/playbook/pages/fullscreen.html.slim +10 -0
- data/app/views/playbook/pages/grid.html.slim +2 -0
- data/app/views/playbook/pages/home.html.slim +4 -0
- data/app/views/playbook/pages/kit_category_show.html.erb +14 -0
- data/app/views/playbook/pages/kit_show.html.erb +33 -0
- data/app/views/playbook/pages/kits.html.erb +12 -0
- data/app/views/playbook/pages/principals/_getting_started.html.md +30 -0
- data/app/views/playbook/pages/principles.html.slim +3 -0
- data/app/views/playbook/pages/tokens.html.slim +15 -0
- data/app/views/playbook/pages/tokens/_pb_doc_spacing.html.slim +61 -0
- data/app/views/playbook/pages/utilities.html.slim +116 -0
- data/app/views/playbook/pages/utilities/_pb_doc_color.html.slim +15 -0
- data/app/views/playbook/samples/collection_detail/index.html.erb +169 -0
- data/app/views/playbook/samples/collection_detail/index.jsx +372 -0
- data/app/views/playbook/samples/dashboards/index.html.erb +81 -0
- data/app/views/playbook/samples/dashboards/index.jsx +130 -0
- data/app/views/playbook/samples/filter_table/index.html.erb +348 -0
- data/app/views/playbook/samples/filter_table/index.jsx +433 -0
- data/app/views/playbook/samples/registration/index.html.erb +316 -0
- data/app/views/playbook/samples/registration/index.jsx +476 -0
- data/app/views/playbook/samples/sample_show.html.erb +36 -0
- data/lib/playbook/engine.rb +0 -1
- data/lib/playbook/version.rb +1 -1
- data/lib/tasks/pb_release.rake +0 -3
- metadata +63 -55
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions_dark.html.erb +0 -17
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions_dark.jsx +0 -21
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_dark.html.erb +0 -9
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_dark.jsx +0 -14
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click_dark.html.erb +0 -15
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click_dark.jsx +0 -16
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement_dark.html.erb +0 -31
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement_dark.jsx +0 -33
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_tooltip_dark.html.erb +0 -12
- data/app/pb_kits/playbook/pb_badge/docs/_badge_dark.html.erb +0 -124
- data/app/pb_kits/playbook/pb_badge/docs/_badge_dark.jsx +0 -160
- data/app/pb_kits/playbook/pb_body/docs/_body_dark.html.erb +0 -28
- data/app/pb_kits/playbook/pb_body/docs/_body_dark.jsx +0 -35
- data/app/pb_kits/playbook/pb_button/docs/_button_default_dark.html.erb +0 -22
- data/app/pb_kits/playbook/pb_button/docs/_button_default_dark.jsx +0 -28
- data/app/pb_kits/playbook/pb_caption/docs/_caption_dark.html.erb +0 -3
- data/app/pb_kits/playbook/pb_caption/docs/_caption_dark.jsx +0 -25
- data/app/pb_kits/playbook/pb_caption/docs/_caption_variants.html.erb +0 -1
- data/app/pb_kits/playbook/pb_caption/docs/_caption_variants.jsx +0 -16
- data/app/pb_kits/playbook/pb_caption/docs/_caption_variants.md +0 -3
- data/app/pb_kits/playbook/pb_card/docs/_card_dark.html.erb +0 -3
- data/app/pb_kits/playbook/pb_card/docs/_card_dark.jsx +0 -12
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_dark.html.erb +0 -4
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_dark.jsx +0 -17
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_dark_error.html.erb +0 -7
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_dark_error.jsx +0 -18
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_dark.html.erb +0 -29
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_dark.jsx +0 -38
- data/app/pb_kits/playbook/pb_currency/docs/_currency_dark.html.erb +0 -23
- data/app/pb_kits/playbook/pb_currency/docs/_currency_dark.jsx +0 -32
- data/app/pb_kits/playbook/pb_date/docs/_date_alignment.html.erb +0 -24
- data/app/pb_kits/playbook/pb_date/docs/_date_alignment.jsx +0 -32
- data/app/pb_kits/playbook/pb_date/docs/_date_default_react.jsx +0 -20
- data/app/pb_kits/playbook/pb_date/docs/_date_default_react.md +0 -3
- data/app/pb_kits/playbook/pb_date/docs/_date_timezone.html.erb +0 -51
- data/app/pb_kits/playbook/pb_date/docs/_date_timezone.md +0 -6
- data/app/pb_kits/playbook/pb_date/docs/_date_variants.html.erb +0 -27
- data/app/pb_kits/playbook/pb_date/docs/_date_variants.jsx +0 -39
- data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_dark.html.erb +0 -13
- data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_dark.jsx +0 -41
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_dark.html.erb +0 -12
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_dark.jsx +0 -20
- data/app/pb_kits/playbook/pb_online_status/docs/_online_status_dark.html.erb +0 -9
- data/app/pb_kits/playbook/pb_online_status/docs/_online_status_dark.jsx +0 -28
- data/app/pb_kits/playbook/pb_time/docs/_time_timezone.jsx +0 -59
- data/app/pb_kits/playbook/pb_time/docs/_time_timezone.md +0 -11
- data/app/pb_kits/playbook/pb_title/docs/_title_variants.html.erb +0 -1
- data/app/pb_kits/playbook/pb_title/docs/_title_variants.jsx +0 -17
- data/app/pb_kits/playbook/pb_title/docs/_title_variants.md +0 -3
- data/app/pb_kits/playbook/react_rails_kits.js +0 -5
- data/app/pb_kits/playbook/tokens/index.scss +0 -11
@@ -1,22 +1,31 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { Card } from '../../'
|
3
3
|
|
4
|
-
const CardHighlight = () => {
|
4
|
+
const CardHighlight = (props) => {
|
5
5
|
return (
|
6
6
|
<div>
|
7
|
-
<Card
|
7
|
+
<Card
|
8
|
+
{...props}
|
9
|
+
highlight={{ position: 'side', color: 'windows' }}
|
10
|
+
>
|
8
11
|
{'Card content'}
|
9
12
|
</Card>
|
10
13
|
|
11
14
|
<br />
|
12
15
|
|
13
|
-
<Card
|
16
|
+
<Card
|
17
|
+
{...props}
|
18
|
+
highlight={{ position: 'top', color: 'warning' }}
|
19
|
+
>
|
14
20
|
{'Card content'}
|
15
21
|
</Card>
|
16
22
|
|
17
23
|
<br />
|
18
24
|
|
19
|
-
<Card
|
25
|
+
<Card
|
26
|
+
{...props}
|
27
|
+
highlight={{ position: 'side', color: 'category_2' }}
|
28
|
+
>
|
20
29
|
{'Card content'}
|
21
30
|
</Card>
|
22
31
|
</div>
|
@@ -1,20 +1,50 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { Card } from '../../'
|
3
3
|
|
4
|
-
const CardPadding = () => {
|
4
|
+
const CardPadding = (props) => {
|
5
5
|
return (
|
6
6
|
<div>
|
7
|
-
<Card
|
7
|
+
<Card
|
8
|
+
{...props}
|
9
|
+
padding="none"
|
10
|
+
>
|
11
|
+
{'Card content'}
|
12
|
+
</Card>
|
8
13
|
<br />
|
9
|
-
<Card
|
14
|
+
<Card
|
15
|
+
{...props}
|
16
|
+
padding="xs"
|
17
|
+
>
|
18
|
+
{'Card content'}
|
19
|
+
</Card>
|
10
20
|
<br />
|
11
|
-
<Card
|
21
|
+
<Card
|
22
|
+
{...props}
|
23
|
+
padding="sm"
|
24
|
+
>
|
25
|
+
{'Card content'}
|
26
|
+
</Card>
|
12
27
|
<br />
|
13
|
-
<Card
|
28
|
+
<Card
|
29
|
+
{...props}
|
30
|
+
padding="md"
|
31
|
+
>
|
32
|
+
{'Card content'}
|
33
|
+
</Card>
|
14
34
|
<br />
|
15
|
-
<Card
|
35
|
+
<Card
|
36
|
+
{...props}
|
37
|
+
padding="lg"
|
38
|
+
>
|
39
|
+
{'Card content'}
|
40
|
+
</Card>
|
16
41
|
<br />
|
17
|
-
<Card
|
42
|
+
<Card
|
43
|
+
{...props}
|
44
|
+
padding="xl"
|
45
|
+
>
|
46
|
+
{'Card content'}
|
47
|
+
</Card>
|
18
48
|
<br />
|
19
49
|
</div>
|
20
50
|
)
|
@@ -1,12 +1,17 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import Card from '../_card.jsx'
|
3
3
|
|
4
|
-
const CardSelected = () => {
|
4
|
+
const CardSelected = (props) => {
|
5
5
|
return (
|
6
6
|
<div>
|
7
|
-
<Card>{'Card content'}</Card>
|
7
|
+
<Card {...props}>{'Card content'}</Card>
|
8
8
|
<br />
|
9
|
-
<Card
|
9
|
+
<Card
|
10
|
+
{...props}
|
11
|
+
selected
|
12
|
+
>
|
13
|
+
{'Card content'}
|
14
|
+
</Card>
|
10
15
|
</div>
|
11
16
|
)
|
12
17
|
}
|
@@ -2,19 +2,28 @@ import React from 'react'
|
|
2
2
|
import { Card } from '../../'
|
3
3
|
import { SectionSeparator } from '../../'
|
4
4
|
|
5
|
-
const CardSeparator = () => {
|
5
|
+
const CardSeparator = (props) => {
|
6
6
|
return (
|
7
|
-
<Card
|
7
|
+
<Card
|
8
|
+
{...props}
|
9
|
+
padding="none"
|
10
|
+
>
|
8
11
|
<Card.Body>
|
9
12
|
{'Header'}
|
10
13
|
</Card.Body>
|
11
|
-
<SectionSeparator
|
14
|
+
<SectionSeparator
|
15
|
+
{...props}
|
16
|
+
variant="card"
|
17
|
+
/>
|
12
18
|
<Card.Body>
|
13
19
|
{
|
14
20
|
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec iaculis, risus a fringilla luctus, sapien eros sodales ex, quis molestie est nulla non turpis. Vestibulum aliquet at ipsum eget posuere. Morbi sed laoreet erat. Sed commodo posuere lectus, at porta nulla ornare a. Suspendisse quam est, sollicitudin ut enim sit amet, commodo placerat enim. Donec laoreet metus ac mauris pellentesque mattis. Pellentesque luctus vel mauris non aliquam. Mauris hendrerit mattis porttitor. Curabitur vehicula justo non ex consectetur commodo. Quisque posuere aliquet quam. Maecenas malesuada magna mauris, ac tempor metus euismod at. Cras ornare fermentum magna mollis efficitur. Sed vitae nulla vel purus ultrices mollis. Maecenas id nulla id libero faucibus feugiat quis sit amet turpis. In commodo pellentesque risus at fringilla. Integer non interdum leo, non commodo ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut mi augue, dignissim at orci vel, egestas aliquam mi. Proin finibus aliquet tempor. Integer cursus, ex quis gravida rhoncus, nisi elit viverra ipsum, non efficitur est ex ac tortor. Praesent vitae odio massa.'
|
15
21
|
}
|
16
22
|
</Card.Body>
|
17
|
-
<SectionSeparator
|
23
|
+
<SectionSeparator
|
24
|
+
{...props}
|
25
|
+
variant="card"
|
26
|
+
/>
|
18
27
|
<Card.Body>
|
19
28
|
{'Footer'}
|
20
29
|
</Card.Body>
|
@@ -1,16 +1,36 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { Card } from '../../'
|
3
3
|
|
4
|
-
const CardShadow = () => {
|
4
|
+
const CardShadow = (props) => {
|
5
5
|
return (
|
6
6
|
<div>
|
7
|
-
<Card
|
7
|
+
<Card
|
8
|
+
{...props}
|
9
|
+
shadow="none"
|
10
|
+
>
|
11
|
+
{'Card content'}
|
12
|
+
</Card>
|
8
13
|
<br />
|
9
|
-
<Card
|
14
|
+
<Card
|
15
|
+
{...props}
|
16
|
+
shadow="deep"
|
17
|
+
>
|
18
|
+
{'Card content'}
|
19
|
+
</Card>
|
10
20
|
<br />
|
11
|
-
<Card
|
21
|
+
<Card
|
22
|
+
{...props}
|
23
|
+
shadow="deeper"
|
24
|
+
>
|
25
|
+
{'Card content'}
|
26
|
+
</Card>
|
12
27
|
<br />
|
13
|
-
<Card
|
28
|
+
<Card
|
29
|
+
{...props}
|
30
|
+
shadow="deepest"
|
31
|
+
>
|
32
|
+
{'Card content'}
|
33
|
+
</Card>
|
14
34
|
<br />
|
15
35
|
</div>
|
16
36
|
)
|
@@ -1,7 +1,6 @@
|
|
1
1
|
examples:
|
2
2
|
rails:
|
3
3
|
- card_light: Default
|
4
|
-
- card_dark: Dark Cards
|
5
4
|
- card_highlight: Highlight Cards
|
6
5
|
- card_header: Header Cards
|
7
6
|
- card_selected: Selected
|
@@ -12,7 +11,6 @@ examples:
|
|
12
11
|
- card_border_none: No Border
|
13
12
|
react:
|
14
13
|
- card_light: Default
|
15
|
-
- card_dark: Dark Cards
|
16
14
|
- card_highlight: Highlight Cards
|
17
15
|
- card_header: Header Cards
|
18
16
|
- card_selected: Selected
|
@@ -6,5 +6,4 @@ export { default as CardPadding } from './_card_padding.jsx'
|
|
6
6
|
export { default as CardShadow } from './_card_shadow.jsx'
|
7
7
|
export { default as CardContent } from './_card_content.jsx'
|
8
8
|
export { default as CardSeparator } from './_card_separator.jsx'
|
9
|
-
export { default as CardDark } from './_card_dark.jsx'
|
10
9
|
export { default as CardBorderNone } from './_card_border_none.jsx'
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React, { useState } from 'react'
|
2
2
|
import { Checkbox } from '../../'
|
3
3
|
|
4
|
-
const CheckboxCustom = () => {
|
4
|
+
const CheckboxCustom = (props) => {
|
5
5
|
const [checked, setChecked] = useState(false)
|
6
6
|
|
7
7
|
const handleOnChange = () => {
|
@@ -14,7 +14,10 @@ const CheckboxCustom = () => {
|
|
14
14
|
<br />
|
15
15
|
<br />
|
16
16
|
<div>
|
17
|
-
<Checkbox
|
17
|
+
<Checkbox
|
18
|
+
{...props}
|
19
|
+
text="Toggle Me"
|
20
|
+
>
|
18
21
|
<input
|
19
22
|
checked={checked}
|
20
23
|
name="custom-name"
|
@@ -2,15 +2,11 @@ examples:
|
|
2
2
|
rails:
|
3
3
|
- checkbox_default: Default
|
4
4
|
- checkbox_checked: Load as checked
|
5
|
-
- checkbox_dark: Dark
|
6
5
|
- checkbox_custom: Custom Checkbox
|
7
6
|
- checkbox_error: Default w/ Error
|
8
|
-
- checkbox_dark_error: Dark w/ Error
|
9
7
|
|
10
8
|
react:
|
11
9
|
- checkbox_default: Default
|
12
10
|
- checkbox_checked: Load as checked
|
13
|
-
- checkbox_dark: Dark
|
14
11
|
- checkbox_custom: Custom Checkbox
|
15
12
|
- checkbox_error: Default w/ Error
|
16
|
-
- checkbox_dark_error: Dark w/ Error
|
@@ -1,6 +1,4 @@
|
|
1
1
|
export { default as CheckboxDefault } from './_checkbox_default.jsx'
|
2
|
-
export { default as CheckboxDark } from './_checkbox_dark.jsx'
|
3
2
|
export { default as CheckboxCustom } from './_checkbox_custom.jsx'
|
4
3
|
export { default as CheckboxError } from './_checkbox_error.jsx'
|
5
|
-
export { default as CheckboxDarkError } from './_checkbox_dark_error.jsx'
|
6
4
|
export { default as CheckboxChecked } from './_checkbox_checked.jsx'
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { CircleIconButton } from '../..'
|
3
3
|
|
4
|
-
const CircleIconButtonClick = () => (
|
4
|
+
const CircleIconButtonClick = (props) => (
|
5
5
|
<div>
|
6
6
|
<CircleIconButton
|
7
|
+
{...props}
|
7
8
|
icon="plus"
|
8
9
|
onClick={() => alert('Click!')}
|
9
10
|
variant="primary"
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { CircleIconButton } from '../../'
|
3
3
|
|
4
|
-
const CircleIconButtonDefault = () => (
|
4
|
+
const CircleIconButtonDefault = (props) => (
|
5
5
|
<div>
|
6
6
|
<CircleIconButton
|
7
|
+
{...props}
|
7
8
|
icon="plus"
|
8
9
|
variant="primary"
|
9
10
|
/>
|
@@ -11,6 +12,7 @@ const CircleIconButtonDefault = () => (
|
|
11
12
|
<br />
|
12
13
|
|
13
14
|
<CircleIconButton
|
15
|
+
{...props}
|
14
16
|
icon="pen"
|
15
17
|
variant="secondary"
|
16
18
|
/>
|
@@ -18,6 +20,7 @@ const CircleIconButtonDefault = () => (
|
|
18
20
|
<br />
|
19
21
|
|
20
22
|
<CircleIconButton
|
23
|
+
{...props}
|
21
24
|
disabled
|
22
25
|
icon="times"
|
23
26
|
/>
|
@@ -25,6 +28,7 @@ const CircleIconButtonDefault = () => (
|
|
25
28
|
<br />
|
26
29
|
|
27
30
|
<CircleIconButton
|
31
|
+
{...props}
|
28
32
|
icon="user"
|
29
33
|
variant="link"
|
30
34
|
/>
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { CircleIconButton } from '../../'
|
3
3
|
|
4
|
-
const CircleIconButtonLink = () => (
|
4
|
+
const CircleIconButtonLink = (props) => (
|
5
5
|
<div>
|
6
6
|
<CircleIconButton
|
7
|
+
{...props}
|
7
8
|
icon="search"
|
8
9
|
link="https://google.com"
|
9
10
|
variant="primary"
|
@@ -13,6 +14,7 @@ const CircleIconButtonLink = () => (
|
|
13
14
|
<br />
|
14
15
|
|
15
16
|
<CircleIconButton
|
17
|
+
{...props}
|
16
18
|
icon="window"
|
17
19
|
link="https://google.com"
|
18
20
|
newWindow
|
@@ -2,11 +2,9 @@ examples:
|
|
2
2
|
|
3
3
|
rails:
|
4
4
|
- circle_icon_button_default: Default
|
5
|
-
- circle_icon_button_dark: Dark
|
6
5
|
- circle_icon_button_link: Link
|
7
6
|
|
8
7
|
react:
|
9
8
|
- circle_icon_button_default: Default
|
10
9
|
- circle_icon_button_click: Click Handler
|
11
|
-
- circle_icon_button_dark: Dark
|
12
10
|
- circle_icon_button_link: Link
|
@@ -1,4 +1,3 @@
|
|
1
1
|
export { default as CircleIconButtonDefault } from './_circle_icon_button_default.jsx'
|
2
2
|
export { default as CircleIconButtonClick } from './_circle_icon_button_click.jsx'
|
3
|
-
export { default as CircleIconButtonDark } from './_circle_icon_button_dark.jsx'
|
4
3
|
export { default as CircleIconButtonLink } from './_circle_icon_button_link.jsx'
|
@@ -1,26 +1,31 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { Contact } from '../../'
|
3
3
|
|
4
|
-
const ContactDefault = () => {
|
4
|
+
const ContactDefault = (props) => {
|
5
5
|
return (
|
6
6
|
<div>
|
7
7
|
<Contact
|
8
|
+
{...props}
|
8
9
|
contactType="cell"
|
9
10
|
contactValue="349-185-9988"
|
10
11
|
/>
|
11
12
|
<Contact
|
13
|
+
{...props}
|
12
14
|
contactValue="5555555555"
|
13
15
|
/>
|
14
16
|
<Contact
|
17
|
+
{...props}
|
15
18
|
contactType="email"
|
16
19
|
contactValue="email@example.com"
|
17
20
|
/>
|
18
21
|
<Contact
|
22
|
+
{...props}
|
19
23
|
contactType="work"
|
20
24
|
contactValue="3245627482"
|
21
25
|
|
22
26
|
/>
|
23
27
|
<Contact
|
28
|
+
{...props}
|
24
29
|
contactType="work-cell"
|
25
30
|
contactValue="3245627482"
|
26
31
|
/>
|
@@ -1,24 +1,28 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { Contact } from '../../'
|
3
3
|
|
4
|
-
const ContactDefault = () => {
|
4
|
+
const ContactDefault = (props) => {
|
5
5
|
return (
|
6
6
|
<div>
|
7
7
|
<Contact
|
8
|
+
{...props}
|
8
9
|
contactDetail="Cell"
|
9
10
|
contactType="cell"
|
10
11
|
contactValue="349-185-9988"
|
11
12
|
/>
|
12
13
|
<Contact
|
14
|
+
{...props}
|
13
15
|
contactDetail="Home"
|
14
16
|
contactValue="5555555555"
|
15
17
|
/>
|
16
18
|
<Contact
|
19
|
+
{...props}
|
17
20
|
contactDetail="Work"
|
18
21
|
contactType="work"
|
19
22
|
contactValue="3245627482"
|
20
23
|
/>
|
21
24
|
<Contact
|
25
|
+
{...props}
|
22
26
|
contactDetail="Work-Cell"
|
23
27
|
contactType="work-cell"
|
24
28
|
contactValue="3245627482"
|