playbook_ui 6.0.1.pre.alpha6 → 6.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/_playbook.scss +1 -2
- data/app/pb_kits/playbook/data/menu.yml +2 -3
- data/app/pb_kits/playbook/index.js +0 -1
- data/app/pb_kits/playbook/packs/examples.js +0 -2
- data/app/pb_kits/playbook/pb_avatar/_avatar.jsx +2 -2
- data/app/pb_kits/playbook/pb_badge/_badge.jsx +5 -2
- data/app/pb_kits/playbook/pb_badge/_badge.scss +1 -1
- data/app/pb_kits/playbook/pb_badge/badge.rb +6 -1
- data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.jsx +2 -2
- data/app/pb_kits/playbook/pb_body/_body.jsx +6 -3
- data/app/pb_kits/playbook/pb_body/_body.scss +0 -6
- data/app/pb_kits/playbook/pb_body/body.rb +8 -2
- data/app/pb_kits/playbook/pb_button/_button.jsx +5 -2
- data/app/pb_kits/playbook/pb_button/_button.scss +1 -1
- data/app/pb_kits/playbook/pb_button/button.rb +7 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_default.jsx +0 -2
- data/app/pb_kits/playbook/pb_caption/_caption.jsx +2 -2
- data/app/pb_kits/playbook/pb_card/_card.jsx +14 -17
- data/app/pb_kits/playbook/pb_card/_card.scss +1 -4
- data/app/pb_kits/playbook/pb_card/card.rb +9 -2
- data/app/pb_kits/playbook/pb_card/docs/_card_dark.html.erb +1 -1
- data/app/pb_kits/playbook/pb_checkbox/_checkbox.jsx +2 -2
- data/app/pb_kits/playbook/pb_checkbox/checkbox.rb +8 -4
- data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx +2 -2
- data/app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.rb +2 -0
- data/app/pb_kits/playbook/pb_contact/_contact.jsx +2 -2
- data/app/pb_kits/playbook/pb_currency/_currency.jsx +2 -2
- data/app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.js +0 -26
- data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.jsx +2 -2
- data/app/pb_kits/playbook/pb_date/_date.jsx +4 -4
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.jsx +2 -2
- data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx +2 -2
- data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.jsx +2 -2
- data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx +2 -2
- data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.jsx +2 -2
- data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.jsx +2 -2
- data/app/pb_kits/playbook/pb_file_upload/_file_upload.jsx +2 -2
- data/app/pb_kits/playbook/pb_filter/Filter/FilterBackground.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 +2 -2
- data/app/pb_kits/playbook/pb_flex/_flex.jsx +2 -2
- data/app/pb_kits/playbook/pb_flex/_flex_item.jsx +2 -2
- 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 +2 -2
- data/app/pb_kits/playbook/pb_hashtag/_hashtag.jsx +2 -2
- data/app/pb_kits/playbook/pb_highlight/_highlight.jsx +2 -2
- data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.jsx +2 -2
- data/app/pb_kits/playbook/pb_icon/_icon.jsx +2 -2
- data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.jsx +2 -2
- data/app/pb_kits/playbook/pb_icon_value/_icon_value.jsx +2 -2
- data/app/pb_kits/playbook/pb_image/_image.jsx +2 -2
- data/app/pb_kits/playbook/pb_label_pill/_label_pill.jsx +2 -2
- data/app/pb_kits/playbook/pb_label_value/_label_value.jsx +2 -2
- data/app/pb_kits/playbook/pb_layout/_layout.jsx +6 -6
- data/app/pb_kits/playbook/pb_legend/_legend.jsx +2 -2
- data/app/pb_kits/playbook/pb_line_graph/_line_graph.jsx +2 -2
- data/app/pb_kits/playbook/pb_list/_list.jsx +2 -2
- data/app/pb_kits/playbook/pb_list/_list_item.jsx +2 -2
- data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.jsx +2 -2
- data/app/pb_kits/playbook/pb_message/_message.jsx +2 -2
- data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.jsx +2 -2
- data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.jsx +2 -2
- data/app/pb_kits/playbook/pb_nav/_nav.jsx +2 -2
- data/app/pb_kits/playbook/pb_online_status/_online_status.jsx +2 -2
- data/app/pb_kits/playbook/pb_person/_person.jsx +2 -2
- data/app/pb_kits/playbook/pb_person_contact/_person_contact.jsx +2 -2
- data/app/pb_kits/playbook/pb_pill/_pill.jsx +2 -2
- data/app/pb_kits/playbook/pb_popover/_popover.jsx +2 -2
- data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.jsx +2 -2
- data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.jsx +2 -2
- data/app/pb_kits/playbook/pb_progress_step/_progress_step.jsx +2 -2
- data/app/pb_kits/playbook/pb_radio/_radio.jsx +2 -2
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.jsx +2 -2
- data/app/pb_kits/playbook/pb_select/_select.jsx +2 -2
- data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.jsx +2 -2
- data/app/pb_kits/playbook/pb_stat_change/_stat_change.jsx +2 -2
- data/app/pb_kits/playbook/pb_stat_value/_stat_value.jsx +2 -2
- data/app/pb_kits/playbook/pb_table/_table.jsx +2 -2
- data/app/pb_kits/playbook/pb_table/_table_row.jsx +2 -2
- data/app/pb_kits/playbook/pb_text_input/_text_input.jsx +2 -2
- data/app/pb_kits/playbook/pb_textarea/_textarea.jsx +2 -2
- data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.jsx +2 -2
- data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.jsx +2 -2
- data/app/pb_kits/playbook/pb_timestamp/_timestamp.jsx +2 -2
- data/app/pb_kits/playbook/pb_title/_title.jsx +2 -2
- data/app/pb_kits/playbook/pb_title_count/_title_count.jsx +2 -2
- data/app/pb_kits/playbook/pb_title_detail/_title_detail.jsx +2 -2
- data/app/pb_kits/playbook/pb_toggle/_toggle.jsx +2 -2
- data/app/pb_kits/playbook/pb_user/_user.jsx +2 -2
- data/app/pb_kits/playbook/pb_user_badge/_user_badge.jsx +2 -2
- data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.jsx +2 -2
- data/app/pb_kits/playbook/plugins/pb_chart.js +0 -74
- data/app/pb_kits/playbook/props.rb +0 -6
- data/app/pb_kits/playbook/utilities/props.js +0 -1
- data/app/pb_kits/playbook/utilities/{globalProps.js → spacing.js} +1 -14
- data/lib/generators/kit/templates/kit_jsx.erb.tt +2 -2
- data/lib/playbook/version.rb +1 -1
- metadata +6 -34
- data/app/pb_kits/playbook/pb_form/form_builder/checkbox_field.rb +0 -26
- data/app/pb_kits/playbook/pb_gauge/_gauge.html.erb +0 -12
- data/app/pb_kits/playbook/pb_gauge/_gauge.jsx +0 -110
- data/app/pb_kits/playbook/pb_gauge/_gauge.scss +0 -11
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_default.html.erb +0 -11
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_default.jsx +0 -17
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.html.erb +0 -12
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.jsx +0 -18
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.html.erb +0 -14
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.jsx +0 -20
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_height.html.erb +0 -15
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_height.jsx +0 -23
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_live_data.jsx +0 -40
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.html.erb +0 -15
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.jsx +0 -21
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.md +0 -1
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.html.erb +0 -26
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.jsx +0 -37
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.md +0 -1
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_title.html.erb +0 -14
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_title.jsx +0 -20
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units.html.erb +0 -29
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units.jsx +0 -29
- data/app/pb_kits/playbook/pb_gauge/docs/example.yml +0 -24
- data/app/pb_kits/playbook/pb_gauge/docs/index.js +0 -9
- data/app/pb_kits/playbook/pb_gauge/gauge.rb +0 -57
- data/app/pb_kits/playbook/pb_logistic/_logistic.jsx +0 -111
@@ -4,7 +4,7 @@ import React from 'react'
|
|
4
4
|
import { Avatar, Body, Caption } from '../'
|
5
5
|
import classnames from 'classnames'
|
6
6
|
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
7
|
-
import {
|
7
|
+
import { spacing } from '../utilities/spacing.js'
|
8
8
|
|
9
9
|
type MessageProps = {
|
10
10
|
aria: object,
|
@@ -39,7 +39,7 @@ const Message = (props: MessageProps) => {
|
|
39
39
|
? 'pb_message_kit_avatar'
|
40
40
|
: 'pb_message_kit'
|
41
41
|
|
42
|
-
const classes = classnames(buildCss(baseClassName), className,
|
42
|
+
const classes = classnames(buildCss(baseClassName), className, spacing(props))
|
43
43
|
|
44
44
|
return (
|
45
45
|
<div
|
@@ -4,7 +4,7 @@ import React from 'react'
|
|
4
4
|
import classnames from 'classnames'
|
5
5
|
import { buildCss } from '../utilities/props'
|
6
6
|
import { Avatar } from '../'
|
7
|
-
import {
|
7
|
+
import { spacing } from '../utilities/spacing.js'
|
8
8
|
|
9
9
|
type MultipleUsersProps = {
|
10
10
|
className?: String,
|
@@ -25,7 +25,7 @@ const MultipleUsers = (props: MultipleUsersProps) => {
|
|
25
25
|
className={classnames(
|
26
26
|
className,
|
27
27
|
buildCss('pb_multiple_users_kit', reverse && 'reverse'),
|
28
|
-
|
28
|
+
spacing(props)
|
29
29
|
)}
|
30
30
|
id={id}
|
31
31
|
>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
import React from 'react'
|
5
5
|
import classnames from 'classnames'
|
6
|
-
import {
|
6
|
+
import { spacing } from '../utilities/spacing.js'
|
7
7
|
import { Avatar, Badge } from '../'
|
8
8
|
|
9
9
|
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
@@ -75,7 +75,7 @@ const MultipleUsersStacked = (props: MultipleUsersStackedProps) => {
|
|
75
75
|
<div
|
76
76
|
{...ariaProps}
|
77
77
|
{...dataProps}
|
78
|
-
className={classnames(css, className,
|
78
|
+
className={classnames(css, className, spacing(props))}
|
79
79
|
id={id}
|
80
80
|
>
|
81
81
|
{firstUser()}
|
@@ -4,7 +4,7 @@ import React from 'react'
|
|
4
4
|
import classnames from 'classnames'
|
5
5
|
import { Caption } from '../'
|
6
6
|
import { buildCss } from '../utilities/props'
|
7
|
-
import {
|
7
|
+
import { spacing } from '../utilities/spacing.js'
|
8
8
|
|
9
9
|
type NavProps = {
|
10
10
|
title: String,
|
@@ -31,7 +31,7 @@ const Nav = (props: NavProps) => {
|
|
31
31
|
highlight: highlight,
|
32
32
|
})
|
33
33
|
return (
|
34
|
-
<div className={classnames(cardCss,
|
34
|
+
<div className={classnames(cardCss, spacing(props))}>
|
35
35
|
<If condition={title}>
|
36
36
|
<div className="pb_nav_list_title">
|
37
37
|
<a
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
import React from 'react'
|
4
4
|
import classnames from 'classnames'
|
5
|
-
import {
|
5
|
+
import { spacing } from '../utilities/spacing.js'
|
6
6
|
|
7
7
|
import { buildDataProps } from '../utilities/props'
|
8
8
|
|
@@ -16,7 +16,7 @@ type OnlineStatusProps = {
|
|
16
16
|
const OnlineStatus = (props: OnlineStatusProps) => {
|
17
17
|
const { id, data = {}, className, status = 'offline' } = props
|
18
18
|
const dataProps = buildDataProps(data)
|
19
|
-
const css = classnames([`pb_online_status_kit_${status}`, className],
|
19
|
+
const css = classnames([`pb_online_status_kit_${status}`, className], spacing(props))
|
20
20
|
|
21
21
|
return (
|
22
22
|
<div
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
import React from 'react'
|
4
4
|
import classnames from 'classnames'
|
5
|
-
import {
|
5
|
+
import { spacing } from '../utilities/spacing.js'
|
6
6
|
|
7
7
|
import {
|
8
8
|
buildAriaProps,
|
@@ -32,7 +32,7 @@ const Person = (props: PersonProps) => {
|
|
32
32
|
|
33
33
|
const ariaProps = buildAriaProps(aria)
|
34
34
|
const dataProps = buildDataProps(data)
|
35
|
-
const classes = classnames(buildCss('pb_person_kit'), className,
|
35
|
+
const classes = classnames(buildCss('pb_person_kit'), className, spacing(props))
|
36
36
|
|
37
37
|
return (
|
38
38
|
<div
|
@@ -9,7 +9,7 @@ import {
|
|
9
9
|
buildDataProps,
|
10
10
|
} from '../utilities/props'
|
11
11
|
|
12
|
-
import {
|
12
|
+
import { spacing } from '../utilities/spacing.js'
|
13
13
|
|
14
14
|
import { Caption, Contact, Person } from '../'
|
15
15
|
|
@@ -43,7 +43,7 @@ const PersonContact = (props: PersonContactProps) => {
|
|
43
43
|
|
44
44
|
const ariaProps = buildAriaProps(aria)
|
45
45
|
const dataProps = buildDataProps(data)
|
46
|
-
const classes = classnames(buildCss('pb_person_contact_kit'), className,
|
46
|
+
const classes = classnames(buildCss('pb_person_contact_kit'), className, spacing(props))
|
47
47
|
|
48
48
|
const wrongContacts = () => (
|
49
49
|
contacts.filter((contactObject) => (
|
@@ -4,7 +4,7 @@ import React from 'react'
|
|
4
4
|
|
5
5
|
import classnames from 'classnames'
|
6
6
|
import Title from '../pb_title/_title.jsx'
|
7
|
-
import {
|
7
|
+
import { spacing } from '../utilities/spacing.js'
|
8
8
|
|
9
9
|
type PillProps = {
|
10
10
|
className?: String,
|
@@ -15,7 +15,7 @@ type PillProps = {
|
|
15
15
|
|
16
16
|
const Pill = (props: PillProps) => {
|
17
17
|
const { className, text, variant = 'neutral' } = props
|
18
|
-
const css = classnames([`pb_pill_kit_${variant}`, className],
|
18
|
+
const css = classnames([`pb_pill_kit_${variant}`, className], spacing(props))
|
19
19
|
|
20
20
|
return (
|
21
21
|
<div className={css}>
|
@@ -13,7 +13,7 @@ import {
|
|
13
13
|
import { buildCss, noop } from '../utilities/props'
|
14
14
|
|
15
15
|
import classnames from 'classnames'
|
16
|
-
import {
|
16
|
+
import { spacing } from '../utilities/spacing.js'
|
17
17
|
|
18
18
|
type PbPopoverProps = {
|
19
19
|
className?: String,
|
@@ -58,7 +58,7 @@ const Popover = (props: PbPopoverProps) => {
|
|
58
58
|
minWidth,
|
59
59
|
} = props
|
60
60
|
|
61
|
-
const popoverSpacing =
|
61
|
+
const popoverSpacing = spacing(props) ? spacing(props) : 'p_sm'
|
62
62
|
const overflowHandling = maxHeight || maxWidth ? 'overflow_handling' : ''
|
63
63
|
const zIndexStyle = zIndex ? { zIndex: zIndex } : {}
|
64
64
|
const widthHeightStyles = () => {
|
@@ -10,7 +10,7 @@ import {
|
|
10
10
|
buildDataProps,
|
11
11
|
} from '../utilities/props'
|
12
12
|
|
13
|
-
import {
|
13
|
+
import { spacing } from '../utilities/spacing.js'
|
14
14
|
|
15
15
|
type ProgressPillsProps = {
|
16
16
|
active?: Number,
|
@@ -59,7 +59,7 @@ const ProgressPills = (props: ProgressPillsProps) => {
|
|
59
59
|
|
60
60
|
const ariaProps = buildAriaProps(aria)
|
61
61
|
const dataProps = buildDataProps(data)
|
62
|
-
const classes = classnames(buildCss('pb_progress_pills_kit', darkClass), className,
|
62
|
+
const classes = classnames(buildCss('pb_progress_pills_kit', darkClass), className, spacing(props))
|
63
63
|
|
64
64
|
return (
|
65
65
|
<div
|
@@ -2,7 +2,7 @@
|
|
2
2
|
import React from 'react'
|
3
3
|
import classnames from 'classnames'
|
4
4
|
import { buildCss } from '../utilities/props'
|
5
|
-
import {
|
5
|
+
import { spacing } from '../utilities/spacing.js'
|
6
6
|
|
7
7
|
type ProgressSimpleProps = {
|
8
8
|
align?: "left" | "center" | "right",
|
@@ -43,7 +43,7 @@ const ProgressSimple = (props: ProgressSimpleProps) => {
|
|
43
43
|
const wrapperClass = classnames(
|
44
44
|
className,
|
45
45
|
buildCss('pb_progress_simple_wrapper', align, { dark: dark }),
|
46
|
-
|
46
|
+
spacing(props)
|
47
47
|
)
|
48
48
|
|
49
49
|
const kitClass = classnames(
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import React from 'react'
|
4
4
|
import classnames from 'classnames'
|
5
5
|
import { buildCss } from '../utilities/props'
|
6
|
-
import {
|
6
|
+
import { spacing } from '../utilities/spacing.js'
|
7
7
|
|
8
8
|
type ProgressStepProps = {
|
9
9
|
className?: String,
|
@@ -33,7 +33,7 @@ const ProgressStep = (props: ProgressStepProps) => {
|
|
33
33
|
)
|
34
34
|
|
35
35
|
return (
|
36
|
-
<div className={classnames(progressStepCss, className,
|
36
|
+
<div className={classnames(progressStepCss, className, spacing(props))}>
|
37
37
|
{children}
|
38
38
|
</div>
|
39
39
|
)
|
@@ -4,7 +4,7 @@
|
|
4
4
|
import React from 'react'
|
5
5
|
import Body from '../pb_body/_body.jsx'
|
6
6
|
import classnames from 'classnames'
|
7
|
-
import {
|
7
|
+
import { spacing } from '../utilities/spacing.js'
|
8
8
|
|
9
9
|
type RadioProps = {
|
10
10
|
className?: String,
|
@@ -40,7 +40,7 @@ const Radio = ({
|
|
40
40
|
|
41
41
|
return (
|
42
42
|
<label
|
43
|
-
className={classnames('pb_radio_kit' + (dark === true ? '_dark ' : ' ') + errorClass + ' ' + className,
|
43
|
+
className={classnames('pb_radio_kit' + (dark === true ? '_dark ' : ' ') + errorClass + ' ' + className, spacing(props))}
|
44
44
|
htmlFor={id}
|
45
45
|
>
|
46
46
|
<If condition={children}>
|
@@ -3,7 +3,7 @@ import React from 'react'
|
|
3
3
|
import classnames from 'classnames'
|
4
4
|
import { Caption } from '../'
|
5
5
|
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
6
|
-
import {
|
6
|
+
import { spacing } from '../utilities/spacing.js'
|
7
7
|
|
8
8
|
type SectionSeparatorProps = {
|
9
9
|
aria: object,
|
@@ -30,7 +30,7 @@ const SectionSeparator = (props: SectionSeparatorProps) => {
|
|
30
30
|
const themeStyle = dark === true ? '_dark' : ''
|
31
31
|
const ariaProps = buildAriaProps(aria)
|
32
32
|
const dataProps = buildDataProps(data)
|
33
|
-
const classes = classnames(buildCss('pb_section_separator_kit', variant, orientation, themeStyle), className,
|
33
|
+
const classes = classnames(buildCss('pb_section_separator_kit', variant, orientation, themeStyle), className, spacing(props))
|
34
34
|
|
35
35
|
return (
|
36
36
|
|
@@ -14,7 +14,7 @@ import {
|
|
14
14
|
buildDataProps,
|
15
15
|
} from '../utilities/props'
|
16
16
|
|
17
|
-
import {
|
17
|
+
import { spacing } from '../utilities/spacing.js'
|
18
18
|
|
19
19
|
import type { InputCallback } from '../types'
|
20
20
|
|
@@ -72,7 +72,7 @@ const Select = ({
|
|
72
72
|
...props
|
73
73
|
}: SelectProps) => {
|
74
74
|
const errorClass = error ? ' error' : ''
|
75
|
-
const css = classnames(buildCss('pb_select', { dark }) + errorClass,
|
75
|
+
const css = classnames(buildCss('pb_select', { dark }) + errorClass, spacing(props))
|
76
76
|
const ariaProps = buildAriaProps(aria)
|
77
77
|
const dataProps = buildDataProps(data)
|
78
78
|
const optionsList = createOptions(options)
|
@@ -13,7 +13,7 @@ import {
|
|
13
13
|
noop,
|
14
14
|
} from '../utilities/props'
|
15
15
|
|
16
|
-
import {
|
16
|
+
import { spacing } from '../utilities/spacing.js'
|
17
17
|
|
18
18
|
type Props = {
|
19
19
|
aria: Object,
|
@@ -95,7 +95,7 @@ const SelectableCard = ({
|
|
95
95
|
value={value}
|
96
96
|
/>
|
97
97
|
<label
|
98
|
-
className={
|
98
|
+
className={spacing(props)}
|
99
99
|
htmlFor={inputIdPresent}
|
100
100
|
>
|
101
101
|
{text || children}
|
@@ -5,7 +5,7 @@ import classnames from 'classnames'
|
|
5
5
|
|
6
6
|
import { buildCss } from '../utilities/props'
|
7
7
|
import { Body, Icon } from '../'
|
8
|
-
import {
|
8
|
+
import { spacing } from '../utilities/spacing.js'
|
9
9
|
|
10
10
|
const statusMap = {
|
11
11
|
increase: 'positive',
|
@@ -35,7 +35,7 @@ const StatChange = (props: StatChangeProps) => {
|
|
35
35
|
className={classnames(
|
36
36
|
className,
|
37
37
|
buildCss('pb_stat_change_kit', status),
|
38
|
-
|
38
|
+
spacing(props)
|
39
39
|
)}
|
40
40
|
id={id}
|
41
41
|
>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import React from 'react'
|
4
4
|
import classnames from 'classnames'
|
5
5
|
import { Title } from '../'
|
6
|
-
import {
|
6
|
+
import { spacing } from '../utilities/spacing.js'
|
7
7
|
|
8
8
|
type StatValueProps = {
|
9
9
|
className?: String,
|
@@ -44,7 +44,7 @@ const StatValue = (props: StatValueProps) => {
|
|
44
44
|
|
45
45
|
return (
|
46
46
|
<div
|
47
|
-
className={classnames('pb_stat_value_kit', className,
|
47
|
+
className={classnames('pb_stat_value_kit', className, spacing(props))}
|
48
48
|
id={id}
|
49
49
|
>
|
50
50
|
<div className="pb_stat_value_wrapper">
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
import React, { type Node } from 'react'
|
4
4
|
import classnames from 'classnames'
|
5
|
-
import {
|
5
|
+
import { spacing } from '../utilities/spacing.js'
|
6
6
|
|
7
7
|
type TableProps = {
|
8
8
|
children: Array<Node> | Node,
|
@@ -43,7 +43,7 @@ const Table = (props: TableProps) => {
|
|
43
43
|
'single-line': singleLine,
|
44
44
|
'no-hover': disableHover,
|
45
45
|
},
|
46
|
-
|
46
|
+
spacing(props)
|
47
47
|
)}
|
48
48
|
>
|
49
49
|
{children}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
import React from 'react'
|
3
3
|
import classnames from 'classnames'
|
4
4
|
import { buildCss } from '../utilities/props'
|
5
|
-
import {
|
5
|
+
import { spacing } from '../utilities/spacing.js'
|
6
6
|
|
7
7
|
type TableRowPropTypes = {
|
8
8
|
children: Array<React.ReactNode> | React.ReactNode,
|
@@ -17,7 +17,7 @@ const TableRow = (props: TableRowPropTypes) => {
|
|
17
17
|
const tableRowCss = buildCss('pb_table_row_kit', sideHighlightClass)
|
18
18
|
|
19
19
|
return (
|
20
|
-
<tr className={classnames(tableRowCss, className,
|
20
|
+
<tr className={classnames(tableRowCss, className, spacing(props))}>
|
21
21
|
{children}
|
22
22
|
</tr>
|
23
23
|
)
|
@@ -2,7 +2,7 @@
|
|
2
2
|
import React from 'react'
|
3
3
|
import classnames from 'classnames'
|
4
4
|
import { Body, Caption } from '../'
|
5
|
-
import {
|
5
|
+
import { spacing } from '../utilities/spacing.js'
|
6
6
|
|
7
7
|
import {
|
8
8
|
buildAriaProps,
|
@@ -60,7 +60,7 @@ const TextInput = ({
|
|
60
60
|
dark={dark}
|
61
61
|
text={label}
|
62
62
|
/>
|
63
|
-
<div className={classnames('text_input_wrapper',
|
63
|
+
<div className={classnames('text_input_wrapper', spacing(props))}>
|
64
64
|
<If condition={children}>
|
65
65
|
{children}
|
66
66
|
<Else />
|
@@ -4,7 +4,7 @@ import React from 'react'
|
|
4
4
|
import classnames from 'classnames'
|
5
5
|
import { Body, Caption } from '../'
|
6
6
|
import type { InputCallback } from '../types.js'
|
7
|
-
import {
|
7
|
+
import { spacing } from '../utilities/spacing.js'
|
8
8
|
|
9
9
|
type TextareaProps = {
|
10
10
|
className?: String,
|
@@ -43,7 +43,7 @@ const Textarea = ({
|
|
43
43
|
const resizeClass = ` resize_${resize}`
|
44
44
|
|
45
45
|
return (
|
46
|
-
<div className={classnames(textareaClass, className, errorClass, resizeClass,
|
46
|
+
<div className={classnames(textareaClass, className, errorClass, resizeClass, spacing(props))}>
|
47
47
|
<Caption
|
48
48
|
dark={dark}
|
49
49
|
text={label}
|
@@ -4,7 +4,7 @@ import React from 'react'
|
|
4
4
|
import classnames from 'classnames'
|
5
5
|
import { Body, Caption, Icon } from '../'
|
6
6
|
import DateTime from '../pb_kit/dateTime.js'
|
7
|
-
import {
|
7
|
+
import { spacing } from '../utilities/spacing.js'
|
8
8
|
|
9
9
|
type TimeRangeInlineProps = {
|
10
10
|
className?: String,
|
@@ -78,7 +78,7 @@ const TimeRangeInline = (props: TimeRangeInlineProps) => {
|
|
78
78
|
|
79
79
|
return (
|
80
80
|
<div
|
81
|
-
className={classnames('pb_time_range_inline_kit_' + alignment, className,
|
81
|
+
className={classnames('pb_time_range_inline_kit_' + alignment, className, spacing(props))}
|
82
82
|
>
|
83
83
|
<div className="pb_time_range_inline_wrapper">
|
84
84
|
<If condition={size == 'xs'}>
|
@@ -6,7 +6,7 @@ import classnames from 'classnames'
|
|
6
6
|
import DateTime from '../pb_kit/dateTime.js'
|
7
7
|
import { buildCss } from '../utilities/props'
|
8
8
|
import { Body, Caption } from '../'
|
9
|
-
import {
|
9
|
+
import { spacing } from '../utilities/spacing.js'
|
10
10
|
|
11
11
|
const Components = {
|
12
12
|
body: Body,
|
@@ -30,7 +30,7 @@ const TimeStacked = (props: TimeStackedProps) => {
|
|
30
30
|
buildCss('pb_time_stacked_kit', {
|
31
31
|
dark: dark,
|
32
32
|
}),
|
33
|
-
|
33
|
+
spacing(props)
|
34
34
|
)
|
35
35
|
|
36
36
|
const tagClasses = classnames(buildCss('pb_time_stacked_kit', tag))
|