playbook_ui 6.1.0 → 6.2.0
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 +15 -16
- 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.jsx +9 -9
- 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_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_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 +11 -11
- 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 -3
@@ -6,12 +6,12 @@ import { globalProps } from '../utilities/globalProps.js'
|
|
6
6
|
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
7
7
|
|
8
8
|
type ImageProps = {
|
9
|
-
alt?:
|
9
|
+
alt?: string,
|
10
10
|
aria?: object,
|
11
|
-
className?:
|
11
|
+
className?: string,
|
12
12
|
data?: object,
|
13
|
-
id?:
|
14
|
-
url:
|
13
|
+
id?: string,
|
14
|
+
url: string,
|
15
15
|
}
|
16
16
|
|
17
17
|
const Image = (props: ImageProps) => {
|
@@ -10,11 +10,11 @@ import { Caption, Pill } from '../'
|
|
10
10
|
|
11
11
|
type LabelPillProps = {
|
12
12
|
aria?: object,
|
13
|
-
className?:
|
13
|
+
className?: string,
|
14
14
|
data?: object,
|
15
|
-
id?:
|
16
|
-
label?:
|
17
|
-
pillValue?:
|
15
|
+
id?: string,
|
16
|
+
label?: string,
|
17
|
+
pillValue?: string,
|
18
18
|
variant: "error" | "info" | "neutral" | "primary" | "success" | "warning",
|
19
19
|
}
|
20
20
|
|
@@ -9,18 +9,18 @@ import { Body, Caption, Flex, Icon, Title } from '../'
|
|
9
9
|
|
10
10
|
type LabelValueProps = {
|
11
11
|
aria?: object,
|
12
|
-
className?:
|
13
|
-
dark?:
|
12
|
+
className?: string,
|
13
|
+
dark?: boolean,
|
14
14
|
data?: object,
|
15
|
-
id?:
|
16
|
-
label:
|
17
|
-
value?:
|
15
|
+
id?: string,
|
16
|
+
label: string,
|
17
|
+
value?: string,
|
18
18
|
variant?: "default" | "details",
|
19
|
-
icon?:
|
20
|
-
description?:
|
21
|
-
title?:
|
22
|
-
date?:
|
23
|
-
active?:
|
19
|
+
icon?: string,
|
20
|
+
description?: string,
|
21
|
+
title?: string,
|
22
|
+
date?: date,
|
23
|
+
active?: boolean
|
24
24
|
}
|
25
25
|
|
26
26
|
const dateString = (value: DateTime) => {
|
@@ -8,38 +8,38 @@ import { globalProps } from '../utilities/globalProps.js'
|
|
8
8
|
|
9
9
|
type LayoutPropTypes = {
|
10
10
|
aria?: object,
|
11
|
-
children?:
|
12
|
-
className?:
|
11
|
+
children?: array<React.ReactNode> | React.ReactNode,
|
12
|
+
className?: string,
|
13
13
|
collapse?: "xs" | "sm" | "md" | "lg" | "xl",
|
14
|
-
dark?:
|
14
|
+
dark?: boolean,
|
15
15
|
data?: object,
|
16
|
-
full?:
|
16
|
+
full?: boolean,
|
17
17
|
position?: "left" | "right",
|
18
|
-
responsive?:
|
18
|
+
responsive?: boolean,
|
19
19
|
size?: "xs" | "sm" | "md" | "base" | "lg" | "xl",
|
20
20
|
variant?: "light" | "dark" | "gradient",
|
21
|
-
transparent?:
|
21
|
+
transparent?: boolean,
|
22
22
|
layout?: "sidebar" | "collection" | "kanban" | "content",
|
23
23
|
}
|
24
24
|
|
25
25
|
type LayoutSideProps = {
|
26
|
-
children:
|
27
|
-
className?:
|
26
|
+
children: array<React.ReactNode> | React.ReactNode,
|
27
|
+
className?: string,
|
28
28
|
}
|
29
29
|
|
30
30
|
type LayoutBodyProps = {
|
31
|
-
children:
|
32
|
-
className?:
|
31
|
+
children: array<React.ReactNode> | React.ReactNode,
|
32
|
+
className?: string,
|
33
33
|
}
|
34
34
|
|
35
35
|
type LayoutHeaderProps = {
|
36
|
-
children:
|
37
|
-
className?:
|
36
|
+
children: array<React.ReactNode> | React.ReactNode,
|
37
|
+
className?: string,
|
38
38
|
}
|
39
39
|
|
40
40
|
type LayoutFooterProps = {
|
41
|
-
children:
|
42
|
-
className?:
|
41
|
+
children: array<React.ReactNode> | React.ReactNode,
|
42
|
+
className?: string,
|
43
43
|
}
|
44
44
|
|
45
45
|
// Side component
|
@@ -9,7 +9,7 @@ import { Body, Title } from '../'
|
|
9
9
|
|
10
10
|
type LegendProps = {
|
11
11
|
aria?: object,
|
12
|
-
className?:
|
12
|
+
className?: string,
|
13
13
|
color?: | "data_1"
|
14
14
|
| "data_2"
|
15
15
|
| "data_3"
|
@@ -17,11 +17,11 @@ type LegendProps = {
|
|
17
17
|
| "data_5"
|
18
18
|
| "data_6"
|
19
19
|
| "data_7",
|
20
|
-
dark?:
|
20
|
+
dark?: boolean,
|
21
21
|
data?: object,
|
22
|
-
id?:
|
23
|
-
prefixText?:
|
24
|
-
text:
|
22
|
+
id?: string,
|
23
|
+
prefixText?: string,
|
24
|
+
text: string,
|
25
25
|
}
|
26
26
|
|
27
27
|
const Legend = (props: LegendProps) => {
|
@@ -6,24 +6,24 @@ import { globalProps } from '../utilities/globalProps.js'
|
|
6
6
|
import { pbChart } from '../'
|
7
7
|
|
8
8
|
type LineGraphProps = {
|
9
|
-
axisTitle?:
|
10
|
-
xAxisCategories:
|
11
|
-
yAxisMin:
|
12
|
-
yAxisMax:
|
13
|
-
className?:
|
14
|
-
chartData:
|
15
|
-
name:
|
16
|
-
data:
|
9
|
+
axisTitle?: string,
|
10
|
+
xAxisCategories: array,
|
11
|
+
yAxisMin: number,
|
12
|
+
yAxisMax: number,
|
13
|
+
className?: string,
|
14
|
+
chartData: array<{
|
15
|
+
name: string,
|
16
|
+
data: array<number>,
|
17
17
|
}>,
|
18
|
-
gradient?:
|
19
|
-
id:
|
20
|
-
pointStart:
|
21
|
-
subTitle?:
|
22
|
-
title:
|
23
|
-
type?:
|
24
|
-
legend?:
|
25
|
-
toggleLegendClick?:
|
26
|
-
height?:
|
18
|
+
gradient?: boolean,
|
19
|
+
id: string,
|
20
|
+
pointStart: number,
|
21
|
+
subTitle?: string,
|
22
|
+
title: string,
|
23
|
+
type?: string,
|
24
|
+
legend?: boolean,
|
25
|
+
toggleLegendClick?: boolean,
|
26
|
+
height?: string,
|
27
27
|
}
|
28
28
|
|
29
29
|
export default class LineGraph extends React.Component<LineGraphProps> {
|
@@ -7,18 +7,18 @@ import { globalProps } from '../utilities/globalProps.js'
|
|
7
7
|
|
8
8
|
type ListProps = {
|
9
9
|
aria?: object,
|
10
|
-
borderless:
|
11
|
-
className?:
|
12
|
-
children:
|
13
|
-
dark:
|
10
|
+
borderless: boolean,
|
11
|
+
className?: string,
|
12
|
+
children: array<Node> | Node,
|
13
|
+
dark: boolean,
|
14
14
|
data?: object,
|
15
|
-
id?:
|
15
|
+
id?: string,
|
16
16
|
layout: "" | "left" | "right",
|
17
|
-
ordered:
|
18
|
-
role?:
|
19
|
-
tabIndex?:
|
20
|
-
size?:
|
21
|
-
xpadding:
|
17
|
+
ordered: boolean,
|
18
|
+
role?: string,
|
19
|
+
tabIndex?: string,
|
20
|
+
size?: string,
|
21
|
+
xpadding: boolean,
|
22
22
|
}
|
23
23
|
|
24
24
|
const List = (props: ListProps) => {
|
@@ -7,11 +7,11 @@ import { globalProps } from '../utilities/globalProps.js'
|
|
7
7
|
|
8
8
|
type ListItemProps = {
|
9
9
|
aria?: object,
|
10
|
-
children:
|
11
|
-
className?:
|
10
|
+
children: array<Node> | Node,
|
11
|
+
className?: string,
|
12
12
|
data?: object,
|
13
|
-
id?:
|
14
|
-
tabIndex?:
|
13
|
+
id?: string,
|
14
|
+
tabIndex?: string,
|
15
15
|
}
|
16
16
|
|
17
17
|
const ListItem = (props: ListItemProps) => {
|
@@ -8,10 +8,10 @@ import { globalProps } from '../utilities/globalProps.js'
|
|
8
8
|
|
9
9
|
type LoadingInlineProps = {
|
10
10
|
align?: "left" | "center" | "right",
|
11
|
-
className?:
|
12
|
-
dark?:
|
13
|
-
data?:
|
14
|
-
id?:
|
11
|
+
className?: string,
|
12
|
+
dark?: boolean,
|
13
|
+
data?: string,
|
14
|
+
id?: string,
|
15
15
|
}
|
16
16
|
|
17
17
|
const LoadingInline = (props: LoadingInlineProps) => {
|
@@ -16,14 +16,14 @@ const dateString = (value: DateTime) => {
|
|
16
16
|
|
17
17
|
type LogisticProps = {
|
18
18
|
aria?: object,
|
19
|
-
className?:
|
20
|
-
dark?:
|
19
|
+
className?: string,
|
20
|
+
dark?: boolean,
|
21
21
|
data?: object,
|
22
|
-
date:
|
23
|
-
id?:
|
24
|
-
link?:
|
25
|
-
projectName?:
|
26
|
-
projectNumber?:
|
22
|
+
date: string,
|
23
|
+
id?: string,
|
24
|
+
link?: string,
|
25
|
+
projectName?: string,
|
26
|
+
projectNumber?: number,
|
27
27
|
}
|
28
28
|
|
29
29
|
const Logistic = (props: LogisticProps) => {
|
@@ -8,15 +8,15 @@ import { globalProps } from '../utilities/globalProps.js'
|
|
8
8
|
|
9
9
|
type MessageProps = {
|
10
10
|
aria: object,
|
11
|
-
avatarName?:
|
12
|
-
avatarStatus?:
|
13
|
-
avatarUrl?:
|
14
|
-
className?:
|
11
|
+
avatarName?: string,
|
12
|
+
avatarStatus?: string,
|
13
|
+
avatarUrl?: string,
|
14
|
+
className?: string,
|
15
15
|
data?: object,
|
16
|
-
id?:
|
17
|
-
label?:
|
18
|
-
message:
|
19
|
-
timestamp?:
|
16
|
+
id?: string,
|
17
|
+
label?: string,
|
18
|
+
message: string,
|
19
|
+
timestamp?: string,
|
20
20
|
}
|
21
21
|
|
22
22
|
const Message = (props: MessageProps) => {
|
@@ -7,11 +7,11 @@ import { Avatar } from '../'
|
|
7
7
|
import { globalProps } from '../utilities/globalProps.js'
|
8
8
|
|
9
9
|
type MultipleUsersProps = {
|
10
|
-
className?:
|
11
|
-
id?:
|
12
|
-
maxDisplayedUsers?:
|
13
|
-
reverse?:
|
14
|
-
users:
|
10
|
+
className?: string,
|
11
|
+
id?: string,
|
12
|
+
maxDisplayedUsers?: number,
|
13
|
+
reverse?: boolean,
|
14
|
+
users: array<object>,
|
15
15
|
}
|
16
16
|
|
17
17
|
const MultipleUsers = (props: MultipleUsersProps) => {
|
@@ -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
|