playbook_ui 13.12.0 → 13.13.0.pre.alpha.PLAY1097linterenhancedelement1728
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.tsx +5 -1
- data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.tsx +6 -2
- data/app/pb_kits/playbook/pb_background/_background.tsx +9 -5
- data/app/pb_kits/playbook/pb_badge/_badge.tsx +5 -1
- data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.tsx +6 -2
- data/app/pb_kits/playbook/pb_body/_body.tsx +5 -1
- data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.tsx +5 -1
- data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.tsx +5 -2
- data/app/pb_kits/playbook/pb_button/_button.tsx +8 -1
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.tsx +5 -1
- data/app/pb_kits/playbook/pb_caption/_caption.tsx +6 -1
- data/app/pb_kits/playbook/pb_card/_card.tsx +5 -1
- data/app/pb_kits/playbook/pb_checkbox/_checkbox.tsx +7 -2
- data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.tsx +7 -2
- data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.tsx +5 -3
- data/app/pb_kits/playbook/pb_collapsible/_collapsible.tsx +5 -1
- data/app/pb_kits/playbook/pb_contact/_contact.tsx +5 -1
- data/app/pb_kits/playbook/pb_contact/docs/_contact_default_swift.md +14 -0
- data/app/pb_kits/playbook/pb_contact/docs/_contact_props_swift.md +6 -0
- data/app/pb_kits/playbook/pb_contact/docs/_contact_with_detail_swift.md +14 -0
- data/app/pb_kits/playbook/pb_contact/docs/example.yml +6 -0
- data/app/pb_kits/playbook/pb_currency/_currency.tsx +5 -1
- data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.tsx +5 -1
- data/app/pb_kits/playbook/pb_date/_date.tsx +12 -7
- data/app/pb_kits/playbook/pb_date/docs/_date_alignment_swift.md +11 -0
- data/app/pb_kits/playbook/pb_date/docs/_date_default_swift.md +16 -0
- data/app/pb_kits/playbook/pb_date/docs/_date_props_swift.md +8 -0
- data/app/pb_kits/playbook/pb_date/docs/_date_unstyled_swift.md +11 -0
- data/app/pb_kits/playbook/pb_date/docs/_date_variants_swift.md +14 -0
- data/app/pb_kits/playbook/pb_date/docs/example.yml +7 -0
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +5 -1
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.tsx +5 -1
- data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.tsx +15 -4
- data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.tsx +12 -5
- data/app/pb_kits/playbook/pb_date_time/_date_time.tsx +5 -1
- data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.tsx +5 -1
- data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.tsx +15 -4
- data/app/pb_kits/playbook/pb_detail/_detail.tsx +5 -1
- data/app/pb_kits/playbook/pb_dialog/_dialog.tsx +11 -3
- data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.tsx +8 -3
- data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_header.tsx +5 -1
- data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.tsx +8 -1
- data/app/pb_kits/playbook/pb_enhanced_element/element_observer.ts +1 -1
- data/app/pb_kits/playbook/pb_enhanced_element/index.ts +1 -1
- data/app/pb_kits/playbook/pb_file_upload/_file_upload.tsx +6 -2
- data/app/pb_kits/playbook/pb_filter/docs/_filter_default.md +1 -0
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.tsx +6 -1
- data/app/pb_kits/playbook/pb_flex/_flex.tsx +6 -1
- data/app/pb_kits/playbook/pb_flex/_flex_item.tsx +6 -1
- data/app/pb_kits/playbook/pb_form_group/_form_group.tsx +5 -1
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.tsx +7 -1
- data/app/pb_kits/playbook/pb_gauge/_gauge.tsx +6 -2
- data/app/pb_kits/playbook/pb_hashtag/_hashtag.tsx +5 -1
- data/app/pb_kits/playbook/pb_highlight/_highlight.tsx +5 -0
- data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.tsx +10 -3
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_default_swift.md +18 -0
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis_swift.md +34 -0
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_link_swift.md +18 -0
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_modified_swift.md +13 -0
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_props_swift.md +14 -0
- data/app/pb_kits/playbook/pb_home_address_street/docs/example.yml +6 -0
- data/app/pb_kits/playbook/pb_icon/_icon.tsx +7 -1
- data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.tsx +5 -1
- data/app/pb_kits/playbook/pb_icon_stat_value/_icon_stat_value.tsx +5 -1
- data/app/pb_kits/playbook/pb_icon_value/_icon_value.tsx +5 -1
- data/app/pb_kits/playbook/pb_image/_image.tsx +6 -1
- data/app/pb_kits/playbook/pb_label_pill/_label_pill.tsx +5 -1
- data/app/pb_kits/playbook/pb_label_value/_label_value.tsx +6 -2
- data/app/pb_kits/playbook/pb_layout/_layout.tsx +6 -1
- data/app/pb_kits/playbook/pb_legend/_legend.tsx +5 -1
- data/app/pb_kits/playbook/pb_lightbox/Header/_lightbox_header.tsx +6 -1
- data/app/pb_kits/playbook/pb_lightbox/_lightbox.tsx +5 -1
- data/app/pb_kits/playbook/pb_line_graph/_line_graph.tsx +9 -3
- data/app/pb_kits/playbook/pb_list/_list.tsx +7 -2
- data/app/pb_kits/playbook/pb_list/_list_item.tsx +5 -1
- data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.tsx +5 -1
- data/app/pb_kits/playbook/pb_map/_map.tsx +6 -1
- data/app/pb_kits/playbook/pb_message/_message.tsx +5 -1
- data/app/pb_kits/playbook/pb_message/_message_mention.tsx +5 -1
- data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +5 -1
- data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.tsx +5 -1
- data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_default_swift.md +11 -0
- data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_props_swift.md +7 -0
- data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_reverse_swift.md +13 -0
- data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_size_swift.md +11 -0
- data/app/pb_kits/playbook/pb_multiple_users/docs/example.yml +6 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.tsx +5 -1
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_default_swift.md +15 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_props_swift.md +5 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_small_swift.md +15 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_xsmall_swift.md +15 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/example.yml +6 -0
- data/app/pb_kits/playbook/pb_nav/_item.tsx +7 -2
- data/app/pb_kits/playbook/pb_nav/_nav.tsx +5 -1
- data/app/pb_kits/playbook/pb_online_status/_online_status.tsx +5 -1
- data/app/pb_kits/playbook/pb_passphrase/_passphrase.tsx +6 -2
- data/app/pb_kits/playbook/pb_person/_person.tsx +5 -0
- data/app/pb_kits/playbook/pb_person_contact/_person_contact.tsx +5 -1
- data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +8 -2
- data/app/pb_kits/playbook/pb_pill/_pill.tsx +5 -1
- data/app/pb_kits/playbook/pb_popover/_popover.tsx +6 -1
- data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.tsx +5 -1
- data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.tsx +9 -3
- data/app/pb_kits/playbook/pb_progress_step/_progress_step.tsx +5 -1
- data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.tsx +6 -2
- data/app/pb_kits/playbook/pb_radio/_radio.tsx +5 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.tsx +7 -1
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.tsx +5 -1
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_children_swift.md +14 -0
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_dashed_swift.md +7 -0
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_line_swift.md +8 -0
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_props_swift.md +8 -0
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text_swift.md +7 -0
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_vertical_swift.md +18 -0
- data/app/pb_kits/playbook/pb_section_separator/docs/example.yml +8 -0
- data/app/pb_kits/playbook/pb_select/_select.tsx +6 -1
- data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.tsx +6 -2
- data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.tsx +5 -0
- data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.tsx +5 -0
- data/app/pb_kits/playbook/pb_selectable_list/_item.tsx +11 -3
- data/app/pb_kits/playbook/pb_selectable_list/_selectable_list.tsx +5 -1
- data/app/pb_kits/playbook/pb_source/_source.tsx +5 -1
- data/app/pb_kits/playbook/pb_star_rating/_star_rating.tsx +5 -1
- data/app/pb_kits/playbook/pb_stat_change/_stat_change.tsx +14 -2
- data/app/pb_kits/playbook/pb_stat_value/_stat_value.tsx +6 -0
- data/app/pb_kits/playbook/pb_table/_table.tsx +5 -1
- data/app/pb_kits/playbook/pb_table/_table_row.tsx +5 -1
- data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +5 -1
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_add_on_swift.md +35 -0
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_default_swift.md +29 -0
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_disabled_swift.md +13 -0
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_error_swift.md +24 -0
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_props_swift.md +13 -0
- data/app/pb_kits/playbook/pb_text_input/docs/example.yml +7 -0
- data/app/pb_kits/playbook/pb_textarea/_textarea.tsx +5 -2
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_default_swift.md +27 -0
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_error_swift.md +11 -0
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_props_swift.md +9 -0
- data/app/pb_kits/playbook/pb_textarea/docs/example.yml +5 -0
- data/app/pb_kits/playbook/pb_time/_time.tsx +9 -2
- data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.tsx +5 -1
- data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.tsx +6 -2
- data/app/pb_kits/playbook/pb_timeline/_item.tsx +9 -2
- data/app/pb_kits/playbook/pb_timeline/_timeline.tsx +5 -1
- data/app/pb_kits/playbook/pb_timestamp/_timestamp.tsx +5 -1
- data/app/pb_kits/playbook/pb_title/_title.tsx +5 -1
- data/app/pb_kits/playbook/pb_title_count/_title_count.tsx +5 -1
- data/app/pb_kits/playbook/pb_title_detail/_title_detail.tsx +16 -3
- data/app/pb_kits/playbook/pb_toggle/_toggle.tsx +5 -0
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_default_swift.md +11 -0
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_name_swift.md +10 -0
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_props_swift.md +6 -0
- data/app/pb_kits/playbook/pb_toggle/docs/example.yml +4 -0
- data/app/pb_kits/playbook/pb_tooltip/_tooltip.tsx +5 -1
- data/app/pb_kits/playbook/pb_treemap_chart/_treemap_chart.tsx +9 -3
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +7 -2
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_highlight.jsx +2 -2
- data/app/pb_kits/playbook/pb_user/_user.tsx +5 -1
- data/app/pb_kits/playbook/pb_user_badge/_user_badge.tsx +5 -1
- data/app/pb_kits/playbook/pb_walkthrough/_walkthrough.tsx +5 -1
- data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.tsx +5 -1
- data/app/pb_kits/playbook/utilities/props.ts +16 -0
- data/dist/menu.yml +240 -168
- data/dist/playbook-rails.js +5 -5
- data/lib/playbook/version.rb +2 -2
- metadata +46 -7
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import classnames from 'classnames'
|
3
3
|
|
4
|
-
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
4
|
+
import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
|
5
5
|
import { globalProps } from '../utilities/globalProps'
|
6
6
|
|
7
7
|
import Body from '../pb_body/_body'
|
@@ -12,6 +12,7 @@ type LoadingInlineProps = {
|
|
12
12
|
aria?: { [key: string]: string },
|
13
13
|
className?: string,
|
14
14
|
data?: { [key: string]: string },
|
15
|
+
htmlOptions?: {[key: string]: string | number | boolean | Function},
|
15
16
|
id?: string,
|
16
17
|
}
|
17
18
|
|
@@ -21,11 +22,13 @@ const LoadingInline = (props: LoadingInlineProps) => {
|
|
21
22
|
aria = {},
|
22
23
|
className,
|
23
24
|
data = {},
|
25
|
+
htmlOptions = {},
|
24
26
|
id,
|
25
27
|
} = props
|
26
28
|
|
27
29
|
const ariaProps = buildAriaProps(aria)
|
28
30
|
const dataProps = buildDataProps(data)
|
31
|
+
const htmlProps = buildHtmlProps(htmlOptions)
|
29
32
|
const classes = classnames(
|
30
33
|
buildCss(`pb_loading_inline_kit_${align}`),
|
31
34
|
globalProps(props),
|
@@ -36,6 +39,7 @@ const LoadingInline = (props: LoadingInlineProps) => {
|
|
36
39
|
<div
|
37
40
|
{...ariaProps}
|
38
41
|
{...dataProps}
|
42
|
+
{...htmlProps}
|
39
43
|
className={classes}
|
40
44
|
id={id}
|
41
45
|
>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import classnames from 'classnames'
|
3
|
-
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
3
|
+
import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
|
4
4
|
import { globalProps, GlobalProps } from '../utilities/globalProps'
|
5
5
|
|
6
6
|
import MapControls from './_map_controls';
|
@@ -10,6 +10,7 @@ type MapProps = {
|
|
10
10
|
children?: React.ReactChild[] | React.ReactNode,
|
11
11
|
className?: string,
|
12
12
|
data?: { [key: string]: string },
|
13
|
+
htmlOptions?: {[key: string]: string | number | boolean | Function},
|
13
14
|
id?: string,
|
14
15
|
zoomBtns?: boolean,
|
15
16
|
flyTo?: boolean,
|
@@ -24,6 +25,7 @@ const Map = (props: MapProps) => {
|
|
24
25
|
children,
|
25
26
|
className,
|
26
27
|
data = {},
|
28
|
+
htmlOptions = {},
|
27
29
|
id,
|
28
30
|
zoomBtns = false,
|
29
31
|
flyTo = false,
|
@@ -34,12 +36,15 @@ const Map = (props: MapProps) => {
|
|
34
36
|
|
35
37
|
const ariaProps = buildAriaProps(aria)
|
36
38
|
const dataProps = buildDataProps(data)
|
39
|
+
const htmlProps = buildHtmlProps(htmlOptions)
|
40
|
+
|
37
41
|
const classes = classnames(buildCss('pb_map'), globalProps(props), className)
|
38
42
|
|
39
43
|
return (
|
40
44
|
<div
|
41
45
|
{...ariaProps}
|
42
46
|
{...dataProps}
|
47
|
+
{...htmlProps}
|
43
48
|
className={classes}
|
44
49
|
id={id}
|
45
50
|
>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import React from 'react'
|
4
4
|
import classnames from 'classnames'
|
5
5
|
|
6
|
-
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
6
|
+
import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
|
7
7
|
import { globalProps } from '../utilities/globalProps'
|
8
8
|
|
9
9
|
import Avatar from '../pb_avatar/_avatar'
|
@@ -21,6 +21,7 @@ type MessageProps = {
|
|
21
21
|
children?: React.ReactChild[] | React.ReactChild,
|
22
22
|
className?: string,
|
23
23
|
data?: object,
|
24
|
+
htmlOptions?: {[key: string]: string | number | boolean | Function},
|
24
25
|
id?: string,
|
25
26
|
label?: string,
|
26
27
|
message: string,
|
@@ -39,6 +40,7 @@ const Message = (props: MessageProps) => {
|
|
39
40
|
children,
|
40
41
|
className,
|
41
42
|
data = {},
|
43
|
+
htmlOptions = {},
|
42
44
|
id,
|
43
45
|
label,
|
44
46
|
message,
|
@@ -49,6 +51,7 @@ const Message = (props: MessageProps) => {
|
|
49
51
|
} = props
|
50
52
|
const ariaProps = buildAriaProps(aria)
|
51
53
|
const dataProps = buildDataProps(data)
|
54
|
+
const htmlProps = buildHtmlProps(htmlOptions)
|
52
55
|
const shouldDisplayAvatar = avatarUrl || avatarName
|
53
56
|
const baseClassName = shouldDisplayAvatar
|
54
57
|
? 'pb_message_kit_avatar'
|
@@ -64,6 +67,7 @@ const Message = (props: MessageProps) => {
|
|
64
67
|
<div
|
65
68
|
{...ariaProps}
|
66
69
|
{...dataProps}
|
70
|
+
{...htmlProps}
|
67
71
|
className={classes}
|
68
72
|
id={id}
|
69
73
|
>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import classnames from 'classnames'
|
3
|
-
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
3
|
+
import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
|
4
4
|
import { globalProps } from '../utilities/globalProps'
|
5
5
|
|
6
6
|
type MessageMentionProps = {
|
@@ -8,6 +8,7 @@ type MessageMentionProps = {
|
|
8
8
|
children?: React.ReactChild[] | React.ReactChild,
|
9
9
|
className?: string,
|
10
10
|
data?: object,
|
11
|
+
htmlOptions?: {[key: string]: string | number | boolean | Function},
|
11
12
|
id?: string,
|
12
13
|
variant: 'user' | 'self',
|
13
14
|
}
|
@@ -18,11 +19,13 @@ const MessageMention = (props: MessageMentionProps) => {
|
|
18
19
|
children,
|
19
20
|
className,
|
20
21
|
data = {},
|
22
|
+
htmlOptions = {},
|
21
23
|
id,
|
22
24
|
variant = 'user',
|
23
25
|
} = props
|
24
26
|
const ariaProps = buildAriaProps(aria)
|
25
27
|
const dataProps = buildDataProps(data)
|
28
|
+
const htmlProps = buildHtmlProps(htmlOptions)
|
26
29
|
const classes = classnames(
|
27
30
|
buildCss('pb_message_mention', variant),
|
28
31
|
globalProps(props),
|
@@ -33,6 +36,7 @@ const MessageMention = (props: MessageMentionProps) => {
|
|
33
36
|
<div
|
34
37
|
{...ariaProps}
|
35
38
|
{...dataProps}
|
39
|
+
{...htmlProps}
|
36
40
|
className={classes}
|
37
41
|
id={id}
|
38
42
|
>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React, { useState, useEffect, useRef } from "react"
|
2
2
|
import classnames from "classnames"
|
3
3
|
import { globalProps, GlobalProps } from "../utilities/globalProps"
|
4
|
-
import { buildAriaProps, buildCss, buildDataProps } from "../utilities/props"
|
4
|
+
import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from "../utilities/props"
|
5
5
|
import Checkbox from "../pb_checkbox/_checkbox"
|
6
6
|
import Radio from "../pb_radio/_radio"
|
7
7
|
import Body from "../pb_body/_body"
|
@@ -24,6 +24,7 @@ type MultiLevelSelectProps = {
|
|
24
24
|
aria?: { [key: string]: string }
|
25
25
|
className?: string
|
26
26
|
data?: { [key: string]: string }
|
27
|
+
htmlOptions?: {[key: string]: string | number | boolean | Function}
|
27
28
|
id?: string
|
28
29
|
inputDisplay?: "pills" | "none"
|
29
30
|
inputName?: string
|
@@ -40,6 +41,7 @@ const MultiLevelSelect = (props: MultiLevelSelectProps) => {
|
|
40
41
|
aria = {},
|
41
42
|
className,
|
42
43
|
data = {},
|
44
|
+
htmlOptions = {},
|
43
45
|
id,
|
44
46
|
inputDisplay = "pills",
|
45
47
|
inputName,
|
@@ -53,6 +55,7 @@ const MultiLevelSelect = (props: MultiLevelSelectProps) => {
|
|
53
55
|
|
54
56
|
const ariaProps = buildAriaProps(aria)
|
55
57
|
const dataProps = buildDataProps(data)
|
58
|
+
const htmlProps = buildHtmlProps(htmlOptions)
|
56
59
|
const classes = classnames(
|
57
60
|
buildCss("pb_multi_level_select"),
|
58
61
|
globalProps(props),
|
@@ -418,6 +421,7 @@ const MultiLevelSelect = (props: MultiLevelSelectProps) => {
|
|
418
421
|
<div
|
419
422
|
{...ariaProps}
|
420
423
|
{...dataProps}
|
424
|
+
{...htmlProps}
|
421
425
|
className={classes}
|
422
426
|
id={id}
|
423
427
|
>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import React from 'react'
|
4
4
|
import classnames from 'classnames'
|
5
5
|
|
6
|
-
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
6
|
+
import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
|
7
7
|
import { globalProps } from '../utilities/globalProps'
|
8
8
|
|
9
9
|
import Avatar from '../pb_avatar/_avatar'
|
@@ -13,6 +13,7 @@ type MultipleUsersProps = {
|
|
13
13
|
className?: string,
|
14
14
|
dark?: boolean,
|
15
15
|
data?: { [key: string]: string },
|
16
|
+
htmlOptions?: {[key: string]: string | number | boolean | Function},
|
16
17
|
id?: string,
|
17
18
|
maxDisplayedUsers?: number,
|
18
19
|
reverse?: boolean,
|
@@ -26,6 +27,7 @@ const MultipleUsers = (props: MultipleUsersProps): React.ReactElement => {
|
|
26
27
|
className,
|
27
28
|
dark = false,
|
28
29
|
data = {},
|
30
|
+
htmlOptions = {},
|
29
31
|
id,
|
30
32
|
maxDisplayedUsers = 4,
|
31
33
|
reverse = false,
|
@@ -41,6 +43,7 @@ const MultipleUsers = (props: MultipleUsersProps): React.ReactElement => {
|
|
41
43
|
const avatarSizeClass = size === 'xxs' ? 'xxs' : 'xs'
|
42
44
|
const ariaProps = buildAriaProps(aria)
|
43
45
|
const dataProps = buildDataProps(data)
|
46
|
+
const htmlProps = buildHtmlProps(htmlOptions)
|
44
47
|
const classes = classnames(
|
45
48
|
buildCss('pb_multiple_users_kit', reverseClass),
|
46
49
|
globalProps(props),
|
@@ -56,6 +59,7 @@ const MultipleUsers = (props: MultipleUsersProps): React.ReactElement => {
|
|
56
59
|
<div
|
57
60
|
{...ariaProps}
|
58
61
|
{...dataProps}
|
62
|
+
{...htmlProps}
|
59
63
|
className={classes}
|
60
64
|
id={id}
|
61
65
|
>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
![mulitple-users-default](https://github.com/powerhome/playbook/assets/92755007/73dffd55-14f7-468e-b6ea-4e700980183d)
|
2
|
+
|
3
|
+
```swift
|
4
|
+
|
5
|
+
let twoUsers = [andrew, picAndrew]
|
6
|
+
|
7
|
+
PBDoc(title: "xSmall") {
|
8
|
+
PBMultipleUsers(users: twoUsers, size: .xSmall)
|
9
|
+
}
|
10
|
+
|
11
|
+
```
|
@@ -0,0 +1,7 @@
|
|
1
|
+
### Props
|
2
|
+
| Name | Type | Description | Default | Values |
|
3
|
+
| --- | ----------- | --------- | --------- | --------- |
|
4
|
+
| **Users** | `[PBUser]` | Sets the user's avatars | | |
|
5
|
+
| **Size** | `AvatarSize` | Changes the size of the avatars | `.small` | `.xSmall` `.small` |
|
6
|
+
| **Reversed** | `Bool` | Changes the order of the avatars | `false` | `true` `false` |
|
7
|
+
| **Max Displayed Users** | `Int` | Limits the number of avatars displayed | `4` | |
|
@@ -0,0 +1,13 @@
|
|
1
|
+
![multiple-users-reverse](https://github.com/powerhome/playbook/assets/92755007/be3f6f7d-f699-40f2-bbb6-8a99144a8744)
|
2
|
+
|
3
|
+
```swift
|
4
|
+
|
5
|
+
let multipleUsers = [andrew, picAndrew, andrew, andrew]
|
6
|
+
let twoUsers = [andrew, picAndrew]
|
7
|
+
|
8
|
+
VStack(alignment: .leading, spacing: Spacing.small) {
|
9
|
+
PBMultipleUsers(users: multipleUsers, size: .small, reversed: true)
|
10
|
+
PBMultipleUsers(users: twoUsers, size: .small, reversed: true)
|
11
|
+
}
|
12
|
+
|
13
|
+
```
|
@@ -0,0 +1,11 @@
|
|
1
|
+
![mulitple-users-size](https://github.com/powerhome/playbook/assets/92755007/5c15b862-fb32-4e0a-a826-bc25b1db555e)
|
2
|
+
|
3
|
+
```swift
|
4
|
+
|
5
|
+
let multipleUsers = [andrew, picAndrew, andrew, andrew]
|
6
|
+
|
7
|
+
PBDoc(title: "Small") {
|
8
|
+
PBMultipleUsers(users: multipleUsers, size: .small)
|
9
|
+
}
|
10
|
+
|
11
|
+
```
|
@@ -10,3 +10,9 @@ examples:
|
|
10
10
|
- multiple_users_default: Default
|
11
11
|
- multiple_users_reverse: Reverse
|
12
12
|
- multiple_users_size: Size
|
13
|
+
|
14
|
+
swift:
|
15
|
+
- multiple_users_default_swift: Default
|
16
|
+
- multiple_users_reverse_swift: Reverse
|
17
|
+
- multiple_users_size_swift: Small
|
18
|
+
- multiple_users_props_swift: ""
|
@@ -2,7 +2,7 @@ import React from 'react'
|
|
2
2
|
import classnames from 'classnames'
|
3
3
|
|
4
4
|
import { globalProps } from '../utilities/globalProps'
|
5
|
-
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
5
|
+
import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
|
6
6
|
|
7
7
|
import Avatar from '../pb_avatar/_avatar'
|
8
8
|
import Badge from '../pb_badge/_badge'
|
@@ -12,6 +12,7 @@ type MultipleUsersStackedProps = {
|
|
12
12
|
className?: string,
|
13
13
|
dark?: boolean,
|
14
14
|
data?: { [key: string]: string },
|
15
|
+
htmlOptions?: {[key: string]: string | number | boolean | Function},
|
15
16
|
id?: string,
|
16
17
|
users: Array<{ [key: string]: string }>,
|
17
18
|
}
|
@@ -22,6 +23,7 @@ const MultipleUsersStacked = (props: MultipleUsersStackedProps) => {
|
|
22
23
|
className,
|
23
24
|
dark = false,
|
24
25
|
data = {},
|
26
|
+
htmlOptions = {},
|
25
27
|
id,
|
26
28
|
users,
|
27
29
|
} = props
|
@@ -33,6 +35,7 @@ const MultipleUsersStacked = (props: MultipleUsersStackedProps) => {
|
|
33
35
|
}
|
34
36
|
const ariaProps = buildAriaProps(aria)
|
35
37
|
const dataProps = buildDataProps(data)
|
38
|
+
const htmlProps = buildHtmlProps(htmlOptions)
|
36
39
|
const classes = classnames(buildCss(
|
37
40
|
'pb_multiple_users_stacked_kit',
|
38
41
|
{ single: onlyOne }), globalProps(props), className)
|
@@ -85,6 +88,7 @@ const MultipleUsersStacked = (props: MultipleUsersStackedProps) => {
|
|
85
88
|
<div
|
86
89
|
{...ariaProps}
|
87
90
|
{...dataProps}
|
91
|
+
{...htmlProps}
|
88
92
|
className={classes}
|
89
93
|
id={id}
|
90
94
|
>
|
data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_default_swift.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
![mulitple-users-stacked-default](https://github.com/powerhome/playbook/assets/92755007/180e1275-3eb6-4b28-b1ef-bdde45ab3c2e)
|
2
|
+
|
3
|
+
```swift
|
4
|
+
|
5
|
+
let oneUser = [andrew]
|
6
|
+
let twoUsers = [andrew, picAndrew]
|
7
|
+
let multipleUsers = [andrew, picAndrew, andrew, andrew]
|
8
|
+
|
9
|
+
HStack(spacing: Spacing.xSmall) {
|
10
|
+
PBMultipleUsersStacked(users: oneUser, size: .default)
|
11
|
+
PBMultipleUsersStacked(users: twoUsers, size: .default)
|
12
|
+
PBMultipleUsersStacked(users: multipleUsers, size: .default)
|
13
|
+
}
|
14
|
+
|
15
|
+
```
|
data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_props_swift.md
ADDED
@@ -0,0 +1,5 @@
|
|
1
|
+
### Props
|
2
|
+
| Name | Type | Description | Default | Values |
|
3
|
+
| --- | ----------- | --------- | --------- | --------- |
|
4
|
+
| **Users** | `[PBUser]` | Sets the user's avatars | | |
|
5
|
+
| **Size** | `Size` | Changes the size of the avatars | `.small` | `.default` `.small` `.xSmall` |
|
data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_small_swift.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
![mulitple-users-stacked-small](https://github.com/powerhome/playbook/assets/92755007/277fd685-6302-462e-a02a-18a8fcb57715)
|
2
|
+
|
3
|
+
```swift
|
4
|
+
|
5
|
+
let oneUser = [andrew]
|
6
|
+
let twoUsers = [andrew, picAndrew]
|
7
|
+
let multipleUsers = [andrew, picAndrew, andrew, andrew]
|
8
|
+
|
9
|
+
HStack(spacing: Spacing.xSmall) {
|
10
|
+
PBMultipleUsersStacked(users: oneUser)
|
11
|
+
PBMultipleUsersStacked(users: twoUsers)
|
12
|
+
PBMultipleUsersStacked(users: multipleUsers)
|
13
|
+
}
|
14
|
+
|
15
|
+
```
|
data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_xsmall_swift.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
![mulitple-users-stacked-xsmall](https://github.com/powerhome/playbook/assets/92755007/4f31976f-a41b-4923-9230-5015f6ad75f8)
|
2
|
+
|
3
|
+
```swift
|
4
|
+
|
5
|
+
let oneUser = [andrew]
|
6
|
+
let twoUsers = [andrew, picAndrew]
|
7
|
+
let multipleUsers = [andrew, picAndrew, andrew, andrew]
|
8
|
+
|
9
|
+
HStack(spacing: Spacing.xSmall) {
|
10
|
+
PBMultipleUsersStacked(users: oneUser, size: .xSmall)
|
11
|
+
PBMultipleUsersStacked(users: twoUsers, size: .xSmall)
|
12
|
+
PBMultipleUsersStacked(users: multipleUsers, size: .xSmall)
|
13
|
+
}
|
14
|
+
|
15
|
+
```
|
@@ -6,3 +6,9 @@ examples:
|
|
6
6
|
|
7
7
|
react:
|
8
8
|
- multiple_users_stacked_default: Default
|
9
|
+
|
10
|
+
swift:
|
11
|
+
- multiple_users_stacked_default_swift: Default
|
12
|
+
- multiple_users_stacked_small_swift: Small
|
13
|
+
- multiple_users_stacked_xsmall_swift: xSmall
|
14
|
+
- multiple_users_stacked_props_swift: ""
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import classnames from "classnames";
|
3
3
|
|
4
|
-
import { buildAriaProps, buildCss, buildDataProps } from "../utilities/props";
|
4
|
+
import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from "../utilities/props";
|
5
5
|
import { globalProps, GlobalProps } from "../utilities/globalProps";
|
6
6
|
|
7
7
|
import Icon from "../pb_icon/_icon";
|
@@ -21,6 +21,7 @@ type NavItemProps = {
|
|
21
21
|
data?: object;
|
22
22
|
dark?: boolean;
|
23
23
|
fontSize?: "normal" | "small";
|
24
|
+
htmlOptions?: {[key: string]: string | number | boolean | Function},
|
24
25
|
iconLeft?: string;
|
25
26
|
iconRight?: string | string[];
|
26
27
|
onIconRightClick?: () => void;
|
@@ -67,6 +68,7 @@ const NavItem = (props: NavItemProps) => {
|
|
67
68
|
data = {},
|
68
69
|
dark = false,
|
69
70
|
fontSize = "normal",
|
71
|
+
htmlOptions = {},
|
70
72
|
iconLeft,
|
71
73
|
iconRight,
|
72
74
|
onIconRightClick,
|
@@ -158,7 +160,8 @@ const { filteredPadding, filteredMargin } = filterItemSpacing(itemSpacing);
|
|
158
160
|
const fontWeightClass = fontWeightMapping[fontWeight];
|
159
161
|
|
160
162
|
const ariaProps = buildAriaProps(aria);
|
161
|
-
const dataProps = buildDataProps(data)
|
163
|
+
const dataProps = buildDataProps(data)
|
164
|
+
const htmlProps = buildHtmlProps(htmlOptions);
|
162
165
|
|
163
166
|
const tagClasses = classnames(
|
164
167
|
collapsible ? "pb_nav_list_item_link_collapsible" : "pb_nav_list_item_link",
|
@@ -216,6 +219,7 @@ const { filteredPadding, filteredMargin } = filterItemSpacing(itemSpacing);
|
|
216
219
|
<Tag
|
217
220
|
{...ariaProps}
|
218
221
|
{...dataProps}
|
222
|
+
{...htmlProps}
|
219
223
|
className={classes}
|
220
224
|
id={id}
|
221
225
|
href={link}
|
@@ -256,6 +260,7 @@ const { filteredPadding, filteredMargin } = filterItemSpacing(itemSpacing);
|
|
256
260
|
<Tag
|
257
261
|
{...ariaProps}
|
258
262
|
{...dataProps}
|
263
|
+
{...htmlProps}
|
259
264
|
className={classes}
|
260
265
|
id={id}
|
261
266
|
href={link}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import classnames from 'classnames'
|
3
3
|
|
4
|
-
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
4
|
+
import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
|
5
5
|
import { globalProps, GlobalProps } from '../utilities/globalProps'
|
6
6
|
|
7
7
|
import Caption from '../pb_caption/_caption'
|
@@ -15,6 +15,7 @@ type NavProps = {
|
|
15
15
|
data?: object,
|
16
16
|
dark?: boolean,
|
17
17
|
highlight?: boolean,
|
18
|
+
htmlOptions?: {[key: string]: string | number | boolean | Function},
|
18
19
|
id?: string,
|
19
20
|
onClick?: React.MouseEventHandler<HTMLElement>,
|
20
21
|
orientation?: "vertical" | "horizontal",
|
@@ -33,6 +34,7 @@ const Nav = (props: NavProps) => {
|
|
33
34
|
data = {},
|
34
35
|
dark = false,
|
35
36
|
highlight = true,
|
37
|
+
htmlOptions = {},
|
36
38
|
id,
|
37
39
|
link = '#',
|
38
40
|
onClick = () => { },
|
@@ -44,6 +46,7 @@ const Nav = (props: NavProps) => {
|
|
44
46
|
|
45
47
|
const ariaProps = buildAriaProps(aria)
|
46
48
|
const dataProps = buildDataProps(data)
|
49
|
+
const htmlProps = buildHtmlProps(htmlOptions)
|
47
50
|
const cardCss = classnames(
|
48
51
|
buildCss('pb_nav_list', variant, orientation, {
|
49
52
|
highlight: highlight,
|
@@ -70,6 +73,7 @@ const childrenWithProps = React.Children.map(children, (child) => {
|
|
70
73
|
<nav
|
71
74
|
{...ariaProps}
|
72
75
|
{...dataProps}
|
76
|
+
{...htmlProps}
|
73
77
|
className={cardCss}
|
74
78
|
id={id}
|
75
79
|
>
|
@@ -2,12 +2,13 @@ import React from 'react'
|
|
2
2
|
import classnames from 'classnames'
|
3
3
|
import { GlobalProps, globalProps } from '../utilities/globalProps'
|
4
4
|
|
5
|
-
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
5
|
+
import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
|
6
6
|
|
7
7
|
type OnlineStatusProps = {
|
8
8
|
aria?: {[key: string]: string},
|
9
9
|
className?: string,
|
10
10
|
data?: {[key: string]: string | number},
|
11
|
+
htmlOptions?: {[key: string]: string | number | boolean | Function},
|
11
12
|
id?: string,
|
12
13
|
status?: "online" | "offline" | "away",
|
13
14
|
} & GlobalProps
|
@@ -17,6 +18,7 @@ const OnlineStatus = (props: OnlineStatusProps) => {
|
|
17
18
|
aria = {},
|
18
19
|
className,
|
19
20
|
data = {},
|
21
|
+
htmlOptions = {},
|
20
22
|
id,
|
21
23
|
status = 'offline',
|
22
24
|
} = props
|
@@ -25,12 +27,14 @@ const OnlineStatus = (props: OnlineStatusProps) => {
|
|
25
27
|
|
26
28
|
const ariaProps = buildAriaProps(aria)
|
27
29
|
const dataProps = buildDataProps(data)
|
30
|
+
const htmlProps = buildHtmlProps(htmlOptions)
|
28
31
|
const classes = classnames(buildCss('pb_online_status_kit', status), globalProps(props), className)
|
29
32
|
|
30
33
|
return (
|
31
34
|
<div
|
32
35
|
{...ariaProps}
|
33
36
|
{...dataProps}
|
37
|
+
{...htmlProps}
|
34
38
|
className={classes}
|
35
39
|
id={id}
|
36
40
|
/>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import React, { useCallback, useMemo, useState } from "react"
|
4
4
|
import classnames from "classnames"
|
5
5
|
|
6
|
-
import { buildAriaProps, buildCss, buildDataProps } from "../utilities/props"
|
6
|
+
import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from "../utilities/props"
|
7
7
|
import { globalProps } from "../utilities/globalProps"
|
8
8
|
|
9
9
|
import Body from '../pb_body/_body'
|
@@ -20,6 +20,7 @@ type PassphraseProps = {
|
|
20
20
|
className?: string,
|
21
21
|
data?: object,
|
22
22
|
dark?: boolean,
|
23
|
+
htmlOptions?: {[key: string]: string | number | boolean | Function},
|
23
24
|
id?: string,
|
24
25
|
inputProps?: {},
|
25
26
|
label?: string,
|
@@ -37,6 +38,7 @@ const Passphrase = (props: PassphraseProps) => {
|
|
37
38
|
confirmation = false,
|
38
39
|
data = {},
|
39
40
|
dark = false,
|
41
|
+
htmlOptions = {},
|
40
42
|
id,
|
41
43
|
inputProps = {},
|
42
44
|
label = confirmation ? "Confirm Passphrase" : "Passphrase",
|
@@ -82,7 +84,8 @@ const Passphrase = (props: PassphraseProps) => {
|
|
82
84
|
globalProps(props),
|
83
85
|
className
|
84
86
|
)
|
85
|
-
|
87
|
+
const dataProps = buildDataProps(data)
|
88
|
+
const htmlProps = buildHtmlProps(htmlOptions)
|
86
89
|
|
87
90
|
const popoverReference = (
|
88
91
|
<CircleIconButton
|
@@ -98,6 +101,7 @@ const Passphrase = (props: PassphraseProps) => {
|
|
98
101
|
<div
|
99
102
|
{...ariaProps}
|
100
103
|
{...dataProps}
|
104
|
+
{...htmlProps}
|
101
105
|
className={classes}
|
102
106
|
id={id}
|
103
107
|
>
|
@@ -6,6 +6,7 @@ import {
|
|
6
6
|
buildAriaProps,
|
7
7
|
buildCss,
|
8
8
|
buildDataProps,
|
9
|
+
buildHtmlProps
|
9
10
|
} from '../utilities/props'
|
10
11
|
|
11
12
|
import Body from '../pb_body/_body'
|
@@ -16,6 +17,7 @@ type PersonProps = {
|
|
16
17
|
className?: string | string[],
|
17
18
|
data?: { [key: string]: string },
|
18
19
|
firstName: string,
|
20
|
+
htmlOptions?: {[key: string]: string | number | boolean | Function},
|
19
21
|
id?: string,
|
20
22
|
lastName: string,
|
21
23
|
}
|
@@ -25,12 +27,14 @@ const Person = (props: PersonProps): React.ReactElement => {
|
|
25
27
|
aria = {},
|
26
28
|
className,
|
27
29
|
data = {},
|
30
|
+
htmlOptions = {},
|
28
31
|
firstName,
|
29
32
|
id,
|
30
33
|
lastName } = props
|
31
34
|
|
32
35
|
const ariaProps = buildAriaProps(aria)
|
33
36
|
const dataProps = buildDataProps(data)
|
37
|
+
const htmlProps = buildHtmlProps(htmlOptions)
|
34
38
|
const classes = classnames(
|
35
39
|
buildCss('pb_person_kit'),
|
36
40
|
globalProps(props),
|
@@ -41,6 +45,7 @@ const Person = (props: PersonProps): React.ReactElement => {
|
|
41
45
|
<div
|
42
46
|
{...ariaProps}
|
43
47
|
{...dataProps}
|
48
|
+
{...htmlProps}
|
44
49
|
className={classes}
|
45
50
|
id={id}
|
46
51
|
>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import classnames from 'classnames'
|
3
3
|
|
4
|
-
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
4
|
+
import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
|
5
5
|
import { globalProps } from '../utilities/globalProps'
|
6
6
|
|
7
7
|
import Caption from '../pb_caption/_caption'
|
@@ -19,6 +19,7 @@ type PersonContactProps = {
|
|
19
19
|
className?: string | string[],
|
20
20
|
data?: object,
|
21
21
|
firstName: string,
|
22
|
+
htmlOptions?: {[key: string]: string | number | boolean | Function},
|
22
23
|
id?: string,
|
23
24
|
lastName: string,
|
24
25
|
contacts?: ContactItem[],
|
@@ -31,12 +32,14 @@ const PersonContact = (props: PersonContactProps) => {
|
|
31
32
|
contacts = [],
|
32
33
|
data = {},
|
33
34
|
firstName,
|
35
|
+
htmlOptions = {},
|
34
36
|
id,
|
35
37
|
lastName,
|
36
38
|
} = props
|
37
39
|
|
38
40
|
const ariaProps = buildAriaProps(aria)
|
39
41
|
const dataProps = buildDataProps(data)
|
42
|
+
const htmlProps = buildHtmlProps(htmlOptions)
|
40
43
|
const classes = classnames(
|
41
44
|
buildCss('pb_person_contact_kit'),
|
42
45
|
globalProps(props),
|
@@ -59,6 +62,7 @@ const PersonContact = (props: PersonContactProps) => {
|
|
59
62
|
<div
|
60
63
|
{...ariaProps}
|
61
64
|
{...dataProps}
|
65
|
+
{...htmlProps}
|
62
66
|
className={classes}
|
63
67
|
id={id}
|
64
68
|
>
|