playbook_ui 13.12.0.pre.alpha.play10281596 → 13.12.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.tsx +1 -5
- data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.tsx +2 -6
- data/app/pb_kits/playbook/pb_background/_background.tsx +5 -9
- data/app/pb_kits/playbook/pb_badge/_badge.tsx +1 -5
- data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.tsx +2 -6
- data/app/pb_kits/playbook/pb_body/_body.tsx +1 -5
- data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.tsx +1 -5
- data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.tsx +2 -5
- data/app/pb_kits/playbook/pb_button/_button.tsx +1 -8
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.tsx +1 -5
- data/app/pb_kits/playbook/pb_caption/_caption.tsx +1 -6
- data/app/pb_kits/playbook/pb_card/_card.tsx +1 -5
- data/app/pb_kits/playbook/pb_checkbox/_checkbox.tsx +2 -7
- data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.tsx +2 -7
- data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.tsx +3 -5
- data/app/pb_kits/playbook/pb_collapsible/_collapsible.tsx +1 -5
- data/app/pb_kits/playbook/pb_contact/_contact.tsx +1 -5
- data/app/pb_kits/playbook/pb_currency/_currency.tsx +1 -5
- data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.tsx +1 -5
- data/app/pb_kits/playbook/pb_date/_date.tsx +7 -12
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +1 -5
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.tsx +1 -5
- data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.tsx +4 -15
- data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.tsx +5 -12
- data/app/pb_kits/playbook/pb_date_time/_date_time.tsx +1 -5
- data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.tsx +1 -5
- data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.tsx +4 -15
- data/app/pb_kits/playbook/pb_detail/_detail.tsx +1 -5
- data/app/pb_kits/playbook/pb_dialog/_dialog.tsx +3 -11
- data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.tsx +3 -8
- data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_header.tsx +1 -5
- data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.tsx +1 -8
- data/app/pb_kits/playbook/pb_file_upload/_file_upload.tsx +2 -6
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.tsx +1 -6
- data/app/pb_kits/playbook/pb_flex/_flex.tsx +1 -6
- data/app/pb_kits/playbook/pb_flex/_flex_item.tsx +1 -6
- data/app/pb_kits/playbook/pb_form_group/_form_group.tsx +1 -5
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.tsx +1 -7
- data/app/pb_kits/playbook/pb_gauge/_gauge.tsx +2 -6
- data/app/pb_kits/playbook/pb_hashtag/_hashtag.tsx +1 -5
- data/app/pb_kits/playbook/pb_highlight/_highlight.tsx +0 -5
- data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.tsx +3 -10
- data/app/pb_kits/playbook/pb_icon/_icon.tsx +1 -7
- data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.tsx +1 -5
- data/app/pb_kits/playbook/pb_icon_stat_value/_icon_stat_value.tsx +1 -5
- data/app/pb_kits/playbook/pb_icon_value/_icon_value.tsx +1 -5
- data/app/pb_kits/playbook/pb_image/_image.tsx +1 -6
- data/app/pb_kits/playbook/pb_label_pill/_label_pill.tsx +1 -5
- data/app/pb_kits/playbook/pb_label_value/_label_value.tsx +2 -6
- data/app/pb_kits/playbook/pb_layout/_layout.tsx +1 -6
- data/app/pb_kits/playbook/pb_legend/_legend.tsx +1 -5
- data/app/pb_kits/playbook/pb_lightbox/Header/_lightbox_header.tsx +1 -6
- data/app/pb_kits/playbook/pb_lightbox/_lightbox.tsx +1 -5
- data/app/pb_kits/playbook/pb_line_graph/_line_graph.tsx +3 -9
- data/app/pb_kits/playbook/pb_list/_list.tsx +2 -7
- data/app/pb_kits/playbook/pb_list/_list_item.tsx +1 -5
- data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.tsx +1 -5
- data/app/pb_kits/playbook/pb_map/_map.tsx +1 -6
- data/app/pb_kits/playbook/pb_message/_message.tsx +1 -5
- data/app/pb_kits/playbook/pb_message/_message_mention.tsx +1 -5
- data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +1 -5
- data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.tsx +1 -5
- data/app/pb_kits/playbook/pb_multiple_users/docs/example.yml +0 -6
- data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.tsx +1 -5
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/example.yml +0 -6
- data/app/pb_kits/playbook/pb_nav/_item.tsx +2 -7
- data/app/pb_kits/playbook/pb_nav/_nav.tsx +1 -5
- data/app/pb_kits/playbook/pb_online_status/_online_status.tsx +1 -5
- data/app/pb_kits/playbook/pb_passphrase/_passphrase.tsx +2 -6
- data/app/pb_kits/playbook/pb_person/_person.tsx +0 -5
- data/app/pb_kits/playbook/pb_person_contact/_person_contact.tsx +1 -5
- data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +2 -8
- data/app/pb_kits/playbook/pb_pill/_pill.tsx +1 -5
- data/app/pb_kits/playbook/pb_popover/_popover.tsx +1 -6
- data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.tsx +1 -5
- data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.tsx +3 -9
- data/app/pb_kits/playbook/pb_progress_step/_progress_step.tsx +1 -5
- data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.tsx +2 -6
- data/app/pb_kits/playbook/pb_radio/_radio.tsx +1 -5
- data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.tsx +1 -7
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.tsx +1 -5
- data/app/pb_kits/playbook/pb_section_separator/docs/example.yml +0 -8
- data/app/pb_kits/playbook/pb_select/_select.tsx +1 -6
- data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.tsx +2 -6
- data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.tsx +0 -5
- data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.tsx +0 -5
- data/app/pb_kits/playbook/pb_selectable_list/_item.tsx +3 -11
- data/app/pb_kits/playbook/pb_selectable_list/_selectable_list.tsx +1 -5
- data/app/pb_kits/playbook/pb_source/_source.tsx +1 -5
- data/app/pb_kits/playbook/pb_star_rating/_star_rating.tsx +1 -5
- data/app/pb_kits/playbook/pb_stat_change/_stat_change.tsx +2 -14
- data/app/pb_kits/playbook/pb_stat_value/_stat_value.tsx +0 -6
- data/app/pb_kits/playbook/pb_table/_table.tsx +1 -5
- data/app/pb_kits/playbook/pb_table/_table_row.tsx +1 -5
- data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +1 -5
- data/app/pb_kits/playbook/pb_text_input/docs/example.yml +0 -7
- data/app/pb_kits/playbook/pb_textarea/_textarea.tsx +2 -5
- data/app/pb_kits/playbook/pb_textarea/docs/example.yml +0 -5
- data/app/pb_kits/playbook/pb_time/_time.tsx +2 -9
- data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.tsx +1 -5
- data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.tsx +2 -6
- data/app/pb_kits/playbook/pb_timeline/_item.tsx +2 -9
- data/app/pb_kits/playbook/pb_timeline/_timeline.tsx +1 -5
- data/app/pb_kits/playbook/pb_timestamp/_timestamp.tsx +1 -5
- data/app/pb_kits/playbook/pb_title/_title.tsx +1 -5
- data/app/pb_kits/playbook/pb_title_count/_title_count.tsx +1 -5
- data/app/pb_kits/playbook/pb_title_detail/_title_detail.tsx +3 -16
- data/app/pb_kits/playbook/pb_toggle/_toggle.tsx +0 -5
- data/app/pb_kits/playbook/pb_toggle/docs/example.yml +0 -4
- data/app/pb_kits/playbook/pb_tooltip/_tooltip.tsx +1 -5
- data/app/pb_kits/playbook/pb_treemap_chart/_treemap_chart.tsx +3 -9
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +2 -7
- data/app/pb_kits/playbook/pb_user/_user.tsx +1 -5
- data/app/pb_kits/playbook/pb_user_badge/_user_badge.tsx +1 -5
- data/app/pb_kits/playbook/pb_walkthrough/_walkthrough.tsx +1 -5
- data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.tsx +1 -5
- data/app/pb_kits/playbook/utilities/props.ts +0 -16
- data/dist/playbook-rails.js +5 -5
- data/lib/playbook/version.rb +2 -2
- metadata +7 -32
- data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_default_swift.md +0 -11
- data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_props_swift.md +0 -7
- data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_reverse_swift.md +0 -13
- data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_size_swift.md +0 -11
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_default_swift.md +0 -15
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_props_swift.md +0 -5
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_small_swift.md +0 -15
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_xsmall_swift.md +0 -15
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_children_swift.md +0 -14
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_dashed_swift.md +0 -7
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_line_swift.md +0 -8
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_props_swift.md +0 -8
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text_swift.md +0 -7
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_vertical_swift.md +0 -18
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_add_on_swift.md +0 -35
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_default_swift.md +0 -29
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_disabled_swift.md +0 -13
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_error_swift.md +0 -24
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_props_swift.md +0 -13
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_default_swift.md +0 -27
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_error_swift.md +0 -11
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_props_swift.md +0 -9
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_default_swift.md +0 -11
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_name_swift.md +0 -10
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_props_swift.md +0 -6
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import classnames from "classnames";
|
3
|
-
import { buildAriaProps, buildCss, buildDataProps
|
3
|
+
import { buildAriaProps, buildCss, buildDataProps } from "../utilities/props";
|
4
4
|
import { globalProps } from "../utilities/globalProps";
|
5
5
|
import DateTime from '../pb_kit/dateTime';
|
6
6
|
|
@@ -17,7 +17,6 @@ type LabelValueProps = {
|
|
17
17
|
dark?: boolean;
|
18
18
|
data?: object;
|
19
19
|
date?: Date;
|
20
|
-
htmlOptions?: {[key: string]: string | number | boolean | Function};
|
21
20
|
id?: string;
|
22
21
|
label: string;
|
23
22
|
value?: string;
|
@@ -43,7 +42,6 @@ const LabelValue = (props: LabelValueProps) => {
|
|
43
42
|
data = {},
|
44
43
|
date,
|
45
44
|
description,
|
46
|
-
htmlOptions = {},
|
47
45
|
icon,
|
48
46
|
id,
|
49
47
|
label,
|
@@ -53,8 +51,7 @@ const LabelValue = (props: LabelValueProps) => {
|
|
53
51
|
} = props;
|
54
52
|
|
55
53
|
const ariaProps = buildAriaProps(aria);
|
56
|
-
const dataProps = buildDataProps(data)
|
57
|
-
const htmlProps = buildHtmlProps(htmlOptions);
|
54
|
+
const dataProps = buildDataProps(data);
|
58
55
|
const variantClass = variant === "details" ? "details" : "";
|
59
56
|
const classes = classnames(
|
60
57
|
buildCss("pb_label_value_kit", variantClass),
|
@@ -66,7 +63,6 @@ const LabelValue = (props: LabelValueProps) => {
|
|
66
63
|
<div
|
67
64
|
{...ariaProps}
|
68
65
|
{...dataProps}
|
69
|
-
{...htmlProps}
|
70
66
|
className={classes}
|
71
67
|
id={id}
|
72
68
|
title={title}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import classnames from 'classnames'
|
3
|
-
import { buildAriaProps, buildCss, buildDataProps
|
3
|
+
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
4
4
|
|
5
5
|
import { globalProps } from '../utilities/globalProps'
|
6
6
|
|
@@ -12,7 +12,6 @@ type LayoutPropTypes = {
|
|
12
12
|
dark?: boolean,
|
13
13
|
data?: object,
|
14
14
|
full?: boolean,
|
15
|
-
htmlOptions?: {[key: string]: string | number | boolean | Function},
|
16
15
|
position?: "left" | "right",
|
17
16
|
responsive?: boolean,
|
18
17
|
size?: "xs" | "sm" | "md" | "base" | "lg" | "xl",
|
@@ -107,7 +106,6 @@ const Layout = (props: LayoutPropTypes) => {
|
|
107
106
|
dark = false,
|
108
107
|
data = {},
|
109
108
|
full = false,
|
110
|
-
htmlOptions = {},
|
111
109
|
position = 'left',
|
112
110
|
responsive = false,
|
113
111
|
size = 'md',
|
@@ -118,8 +116,6 @@ const Layout = (props: LayoutPropTypes) => {
|
|
118
116
|
const responsiveClass = responsive ? '_responsive' : ''
|
119
117
|
const ariaProps = buildAriaProps(aria)
|
120
118
|
const dataProps = buildDataProps(data)
|
121
|
-
const htmlProps = buildHtmlProps(htmlOptions)
|
122
|
-
|
123
119
|
const layoutCss =
|
124
120
|
layout == 'collection'
|
125
121
|
? `pb_layout_kit_${layout}`
|
@@ -163,7 +159,6 @@ const Layout = (props: LayoutPropTypes) => {
|
|
163
159
|
<div
|
164
160
|
{...ariaProps}
|
165
161
|
{...dataProps}
|
166
|
-
{...htmlProps}
|
167
162
|
className={classnames(
|
168
163
|
layoutCss,
|
169
164
|
layoutCollapseCss,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import classnames from 'classnames'
|
3
3
|
|
4
|
-
import { buildAriaProps, buildCss, buildDataProps
|
4
|
+
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
5
5
|
import { globalProps } from '../utilities/globalProps'
|
6
6
|
|
7
7
|
import Body from '../pb_body/_body'
|
@@ -13,7 +13,6 @@ type LegendProps = {
|
|
13
13
|
color?: string,
|
14
14
|
dark?: boolean,
|
15
15
|
data?: object,
|
16
|
-
htmlOptions?: {[key: string]: string | number | boolean | Function},
|
17
16
|
id?: string,
|
18
17
|
prefixText?: string,
|
19
18
|
text: string,
|
@@ -26,7 +25,6 @@ const Legend = (props: LegendProps) => {
|
|
26
25
|
color = 'data_1',
|
27
26
|
dark = false,
|
28
27
|
data = {},
|
29
|
-
htmlOptions = {},
|
30
28
|
id,
|
31
29
|
prefixText,
|
32
30
|
text,
|
@@ -34,7 +32,6 @@ const Legend = (props: LegendProps) => {
|
|
34
32
|
|
35
33
|
const ariaProps = buildAriaProps(aria)
|
36
34
|
const dataProps = buildDataProps(data)
|
37
|
-
const htmlProps = buildHtmlProps(htmlOptions)
|
38
35
|
|
39
36
|
const customColor = color.charAt(0) === '#' && color
|
40
37
|
|
@@ -53,7 +50,6 @@ const Legend = (props: LegendProps) => {
|
|
53
50
|
<div
|
54
51
|
{...ariaProps}
|
55
52
|
{...dataProps}
|
56
|
-
{...htmlProps}
|
57
53
|
className={bodyCss}
|
58
54
|
id={id}
|
59
55
|
>
|
@@ -6,7 +6,6 @@ import {
|
|
6
6
|
buildAriaProps,
|
7
7
|
buildCss,
|
8
8
|
buildDataProps,
|
9
|
-
buildHtmlProps,
|
10
9
|
} from "../../utilities/props";
|
11
10
|
import { globalProps, GlobalProps } from "../../utilities/globalProps";
|
12
11
|
import { LightboxContext } from "../_lightbox_context";
|
@@ -24,7 +23,6 @@ type LightboxHeaderProps = {
|
|
24
23
|
className?: string;
|
25
24
|
closeable?: boolean;
|
26
25
|
data?: { [key: string]: string | number };
|
27
|
-
htmlOptions?: { [key: string]: string | number | boolean | Function };
|
28
26
|
icon?: string;
|
29
27
|
id?: string;
|
30
28
|
onClickRight?: () => void;
|
@@ -40,7 +38,6 @@ const LightboxHeader = (props: LightboxHeaderProps): React.ReactElement => {
|
|
40
38
|
children,
|
41
39
|
className,
|
42
40
|
data = {},
|
43
|
-
htmlOptions = {},
|
44
41
|
onClickRight,
|
45
42
|
spacing = "between",
|
46
43
|
text,
|
@@ -51,8 +48,7 @@ const LightboxHeader = (props: LightboxHeaderProps): React.ReactElement => {
|
|
51
48
|
} = props;
|
52
49
|
|
53
50
|
const ariaProps = buildAriaProps(aria);
|
54
|
-
const dataProps = buildDataProps(data)
|
55
|
-
const htmlProps = buildHtmlProps(htmlOptions);
|
51
|
+
const dataProps = buildDataProps(data);
|
56
52
|
const api: any = useContext(LightboxContext);
|
57
53
|
const headerCSS = buildCss("lightbox_header");
|
58
54
|
const headerSpacing = globalProps(props, { paddingY: "sm" });
|
@@ -116,7 +112,6 @@ const LightboxHeader = (props: LightboxHeaderProps): React.ReactElement => {
|
|
116
112
|
<Flex
|
117
113
|
{...ariaProps}
|
118
114
|
{...dataProps}
|
119
|
-
{...htmlProps}
|
120
115
|
className={classnames(headerCSS, headerSpacing, className)}
|
121
116
|
spacing={spacing}
|
122
117
|
>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React, { Fragment, useMemo, useRef, useState, useEffect } from 'react'
|
2
2
|
import { useKbdControls } from './hooks/useKbdControls'
|
3
3
|
import classnames from 'classnames'
|
4
|
-
import { buildAriaProps, buildCss, buildDataProps
|
4
|
+
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
5
5
|
import { globalProps } from '../utilities/globalProps'
|
6
6
|
import LightboxHeader from './Header/_lightbox_header'
|
7
7
|
import { LightboxContext } from './_lightbox_context'
|
@@ -15,7 +15,6 @@ type LightboxType = {
|
|
15
15
|
currentPhotoIndex?: number,
|
16
16
|
data?: {[key: string]: string | number},
|
17
17
|
description?: string | any,
|
18
|
-
htmlOptions?: {[key: string]: string | number | boolean | Function},
|
19
18
|
id?: string,
|
20
19
|
photos: [],
|
21
20
|
initialPhoto?: number,
|
@@ -36,7 +35,6 @@ const Lightbox = (props: LightboxType): React.ReactNode => {
|
|
36
35
|
currentPhotoIndex,
|
37
36
|
data = {},
|
38
37
|
description,
|
39
|
-
htmlOptions = {},
|
40
38
|
id = '',
|
41
39
|
initialPhoto = 0,
|
42
40
|
photos,
|
@@ -62,7 +60,6 @@ const Lightbox = (props: LightboxType): React.ReactNode => {
|
|
62
60
|
|
63
61
|
const ariaProps = buildAriaProps(aria)
|
64
62
|
const dataProps = buildDataProps(data)
|
65
|
-
const htmlProps = buildHtmlProps(htmlOptions)
|
66
63
|
const classes = classnames(
|
67
64
|
buildCss('pb_lightbox_kit'),
|
68
65
|
globalProps(props),
|
@@ -99,7 +96,6 @@ const Lightbox = (props: LightboxType): React.ReactNode => {
|
|
99
96
|
<div
|
100
97
|
{...ariaProps}
|
101
98
|
{...dataProps}
|
102
|
-
{...htmlProps}
|
103
99
|
className={classes}
|
104
100
|
id={id}
|
105
101
|
ref={lightboxRef}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React, { useState, useEffect } from "react";
|
2
2
|
import classnames from "classnames";
|
3
3
|
import { globalProps } from "../utilities/globalProps";
|
4
|
-
import { buildAriaProps, buildDataProps
|
4
|
+
import { buildAriaProps, buildDataProps } from "../utilities/props";
|
5
5
|
|
6
6
|
import HighchartsReact from "highcharts-react-official";
|
7
7
|
import Highcharts from "highcharts";
|
@@ -22,7 +22,6 @@ type LineGraphProps = {
|
|
22
22
|
data: number[];
|
23
23
|
}[];
|
24
24
|
gradient?: boolean;
|
25
|
-
htmlOptions?: {[key: string]: string | number | boolean | Function};
|
26
25
|
id: string;
|
27
26
|
pointStart: number;
|
28
27
|
subTitle?: string;
|
@@ -48,7 +47,6 @@ const LineGraph = ({
|
|
48
47
|
dark = false,
|
49
48
|
gradient = false,
|
50
49
|
type = "line",
|
51
|
-
htmlOptions = {},
|
52
50
|
id,
|
53
51
|
legend = false,
|
54
52
|
toggleLegendClick = true,
|
@@ -68,11 +66,8 @@ const LineGraph = ({
|
|
68
66
|
colors = [],
|
69
67
|
...props
|
70
68
|
}: LineGraphProps) => {
|
71
|
-
|
72
|
-
const
|
73
|
-
const dataProps = buildDataProps(data)
|
74
|
-
const htmlProps = buildHtmlProps(htmlOptions)
|
75
|
-
|
69
|
+
const ariaProps = buildAriaProps(aria);
|
70
|
+
const dataProps = buildDataProps(data);
|
76
71
|
const setupTheme = () => {
|
77
72
|
dark
|
78
73
|
? Highcharts.setOptions(highchartsDarkTheme)
|
@@ -143,7 +138,6 @@ const LineGraph = ({
|
|
143
138
|
id: id,
|
144
139
|
...ariaProps,
|
145
140
|
...dataProps,
|
146
|
-
...htmlProps
|
147
141
|
}}
|
148
142
|
highcharts={Highcharts}
|
149
143
|
options={options}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import classnames from "classnames";
|
3
|
-
import { buildAriaProps, buildCss, buildDataProps
|
3
|
+
import { buildAriaProps, buildCss, buildDataProps } from "../utilities/props";
|
4
4
|
import { globalProps } from "../utilities/globalProps";
|
5
5
|
|
6
6
|
type ListProps = {
|
@@ -10,7 +10,6 @@ type ListProps = {
|
|
10
10
|
children: React.ReactNode[] | React.ReactNode;
|
11
11
|
dark?: boolean;
|
12
12
|
data?: object;
|
13
|
-
htmlOptions?: {[key: string]: string | number | boolean | Function};
|
14
13
|
id?: string;
|
15
14
|
layout?: "" | "left" | "right";
|
16
15
|
ordered?: boolean;
|
@@ -30,7 +29,6 @@ const List = (props: ListProps) => {
|
|
30
29
|
className,
|
31
30
|
dark = false,
|
32
31
|
data = {},
|
33
|
-
htmlOptions = {},
|
34
32
|
id,
|
35
33
|
layout = "",
|
36
34
|
ordered = false,
|
@@ -55,8 +53,7 @@ const List = (props: ListProps) => {
|
|
55
53
|
}
|
56
54
|
);
|
57
55
|
const ariaProps = buildAriaProps(aria);
|
58
|
-
|
59
|
-
const htmlProps = buildHtmlProps(htmlOptions);
|
56
|
+
const dataProps = buildDataProps(data);
|
60
57
|
const classes = classnames(
|
61
58
|
buildCss("pb_list_kit", layoutClass[layout], size, {
|
62
59
|
dark: dark,
|
@@ -74,7 +71,6 @@ const List = (props: ListProps) => {
|
|
74
71
|
<ol
|
75
72
|
{...ariaProps}
|
76
73
|
{...dataProps}
|
77
|
-
{...htmlProps}
|
78
74
|
className={className}
|
79
75
|
id={id}
|
80
76
|
role={role}
|
@@ -86,7 +82,6 @@ const List = (props: ListProps) => {
|
|
86
82
|
<ul
|
87
83
|
{...ariaProps}
|
88
84
|
{...dataProps}
|
89
|
-
{...htmlProps}
|
90
85
|
className={className}
|
91
86
|
id={id}
|
92
87
|
role={role}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import classnames from 'classnames'
|
3
|
-
import { buildAriaProps, buildCss, buildDataProps
|
3
|
+
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
4
4
|
import { globalProps } from '../utilities/globalProps'
|
5
5
|
|
6
6
|
type ListItemProps = {
|
@@ -8,7 +8,6 @@ type ListItemProps = {
|
|
8
8
|
children: React.ReactNode[] | React.ReactNode,
|
9
9
|
className?: string,
|
10
10
|
data?: object,
|
11
|
-
htmlOptions?: {[key: string]: string | number | boolean | Function},
|
12
11
|
id?: string,
|
13
12
|
tabIndex?: number,
|
14
13
|
}
|
@@ -19,14 +18,12 @@ const ListItem = (props: ListItemProps) => {
|
|
19
18
|
children,
|
20
19
|
className,
|
21
20
|
data = {},
|
22
|
-
htmlOptions = {},
|
23
21
|
id,
|
24
22
|
tabIndex,
|
25
23
|
} = props
|
26
24
|
|
27
25
|
const ariaProps = buildAriaProps(aria)
|
28
26
|
const dataProps = buildDataProps(data)
|
29
|
-
const htmlProps = buildHtmlProps(htmlOptions)
|
30
27
|
const classes = classnames(
|
31
28
|
buildCss('pb_item_kit'),
|
32
29
|
globalProps(props),
|
@@ -38,7 +35,6 @@ const ListItem = (props: ListItemProps) => {
|
|
38
35
|
<li
|
39
36
|
{...ariaProps}
|
40
37
|
{...dataProps}
|
41
|
-
{...htmlProps}
|
42
38
|
className={classes}
|
43
39
|
id={id}
|
44
40
|
tabIndex={tabIndex}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import classnames from 'classnames'
|
3
3
|
|
4
|
-
import { buildAriaProps, buildCss, buildDataProps
|
4
|
+
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
5
5
|
import { globalProps } from '../utilities/globalProps'
|
6
6
|
|
7
7
|
import Body from '../pb_body/_body'
|
@@ -12,7 +12,6 @@ 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},
|
16
15
|
id?: string,
|
17
16
|
}
|
18
17
|
|
@@ -22,13 +21,11 @@ const LoadingInline = (props: LoadingInlineProps) => {
|
|
22
21
|
aria = {},
|
23
22
|
className,
|
24
23
|
data = {},
|
25
|
-
htmlOptions = {},
|
26
24
|
id,
|
27
25
|
} = props
|
28
26
|
|
29
27
|
const ariaProps = buildAriaProps(aria)
|
30
28
|
const dataProps = buildDataProps(data)
|
31
|
-
const htmlProps = buildHtmlProps(htmlOptions)
|
32
29
|
const classes = classnames(
|
33
30
|
buildCss(`pb_loading_inline_kit_${align}`),
|
34
31
|
globalProps(props),
|
@@ -39,7 +36,6 @@ const LoadingInline = (props: LoadingInlineProps) => {
|
|
39
36
|
<div
|
40
37
|
{...ariaProps}
|
41
38
|
{...dataProps}
|
42
|
-
{...htmlProps}
|
43
39
|
className={classes}
|
44
40
|
id={id}
|
45
41
|
>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import classnames from 'classnames'
|
3
|
-
import { buildAriaProps, buildCss, buildDataProps
|
3
|
+
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
4
4
|
import { globalProps, GlobalProps } from '../utilities/globalProps'
|
5
5
|
|
6
6
|
import MapControls from './_map_controls';
|
@@ -10,7 +10,6 @@ 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},
|
14
13
|
id?: string,
|
15
14
|
zoomBtns?: boolean,
|
16
15
|
flyTo?: boolean,
|
@@ -25,7 +24,6 @@ const Map = (props: MapProps) => {
|
|
25
24
|
children,
|
26
25
|
className,
|
27
26
|
data = {},
|
28
|
-
htmlOptions = {},
|
29
27
|
id,
|
30
28
|
zoomBtns = false,
|
31
29
|
flyTo = false,
|
@@ -36,15 +34,12 @@ const Map = (props: MapProps) => {
|
|
36
34
|
|
37
35
|
const ariaProps = buildAriaProps(aria)
|
38
36
|
const dataProps = buildDataProps(data)
|
39
|
-
const htmlProps = buildHtmlProps(htmlOptions)
|
40
|
-
|
41
37
|
const classes = classnames(buildCss('pb_map'), globalProps(props), className)
|
42
38
|
|
43
39
|
return (
|
44
40
|
<div
|
45
41
|
{...ariaProps}
|
46
42
|
{...dataProps}
|
47
|
-
{...htmlProps}
|
48
43
|
className={classes}
|
49
44
|
id={id}
|
50
45
|
>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import React from 'react'
|
4
4
|
import classnames from 'classnames'
|
5
5
|
|
6
|
-
import { buildAriaProps, buildCss, buildDataProps
|
6
|
+
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
7
7
|
import { globalProps } from '../utilities/globalProps'
|
8
8
|
|
9
9
|
import Avatar from '../pb_avatar/_avatar'
|
@@ -21,7 +21,6 @@ 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},
|
25
24
|
id?: string,
|
26
25
|
label?: string,
|
27
26
|
message: string,
|
@@ -40,7 +39,6 @@ const Message = (props: MessageProps) => {
|
|
40
39
|
children,
|
41
40
|
className,
|
42
41
|
data = {},
|
43
|
-
htmlOptions = {},
|
44
42
|
id,
|
45
43
|
label,
|
46
44
|
message,
|
@@ -51,7 +49,6 @@ const Message = (props: MessageProps) => {
|
|
51
49
|
} = props
|
52
50
|
const ariaProps = buildAriaProps(aria)
|
53
51
|
const dataProps = buildDataProps(data)
|
54
|
-
const htmlProps = buildHtmlProps(htmlOptions)
|
55
52
|
const shouldDisplayAvatar = avatarUrl || avatarName
|
56
53
|
const baseClassName = shouldDisplayAvatar
|
57
54
|
? 'pb_message_kit_avatar'
|
@@ -67,7 +64,6 @@ const Message = (props: MessageProps) => {
|
|
67
64
|
<div
|
68
65
|
{...ariaProps}
|
69
66
|
{...dataProps}
|
70
|
-
{...htmlProps}
|
71
67
|
className={classes}
|
72
68
|
id={id}
|
73
69
|
>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import classnames from 'classnames'
|
3
|
-
import { buildAriaProps, buildCss, buildDataProps
|
3
|
+
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
4
4
|
import { globalProps } from '../utilities/globalProps'
|
5
5
|
|
6
6
|
type MessageMentionProps = {
|
@@ -8,7 +8,6 @@ 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},
|
12
11
|
id?: string,
|
13
12
|
variant: 'user' | 'self',
|
14
13
|
}
|
@@ -19,13 +18,11 @@ const MessageMention = (props: MessageMentionProps) => {
|
|
19
18
|
children,
|
20
19
|
className,
|
21
20
|
data = {},
|
22
|
-
htmlOptions = {},
|
23
21
|
id,
|
24
22
|
variant = 'user',
|
25
23
|
} = props
|
26
24
|
const ariaProps = buildAriaProps(aria)
|
27
25
|
const dataProps = buildDataProps(data)
|
28
|
-
const htmlProps = buildHtmlProps(htmlOptions)
|
29
26
|
const classes = classnames(
|
30
27
|
buildCss('pb_message_mention', variant),
|
31
28
|
globalProps(props),
|
@@ -36,7 +33,6 @@ const MessageMention = (props: MessageMentionProps) => {
|
|
36
33
|
<div
|
37
34
|
{...ariaProps}
|
38
35
|
{...dataProps}
|
39
|
-
{...htmlProps}
|
40
36
|
className={classes}
|
41
37
|
id={id}
|
42
38
|
>
|
@@ -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
|
4
|
+
import { buildAriaProps, buildCss, buildDataProps } 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,7 +24,6 @@ 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}
|
28
27
|
id?: string
|
29
28
|
inputDisplay?: "pills" | "none"
|
30
29
|
inputName?: string
|
@@ -41,7 +40,6 @@ const MultiLevelSelect = (props: MultiLevelSelectProps) => {
|
|
41
40
|
aria = {},
|
42
41
|
className,
|
43
42
|
data = {},
|
44
|
-
htmlOptions = {},
|
45
43
|
id,
|
46
44
|
inputDisplay = "pills",
|
47
45
|
inputName,
|
@@ -55,7 +53,6 @@ const MultiLevelSelect = (props: MultiLevelSelectProps) => {
|
|
55
53
|
|
56
54
|
const ariaProps = buildAriaProps(aria)
|
57
55
|
const dataProps = buildDataProps(data)
|
58
|
-
const htmlProps = buildHtmlProps(htmlOptions)
|
59
56
|
const classes = classnames(
|
60
57
|
buildCss("pb_multi_level_select"),
|
61
58
|
globalProps(props),
|
@@ -421,7 +418,6 @@ const MultiLevelSelect = (props: MultiLevelSelectProps) => {
|
|
421
418
|
<div
|
422
419
|
{...ariaProps}
|
423
420
|
{...dataProps}
|
424
|
-
{...htmlProps}
|
425
421
|
className={classes}
|
426
422
|
id={id}
|
427
423
|
>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import React from 'react'
|
4
4
|
import classnames from 'classnames'
|
5
5
|
|
6
|
-
import { buildAriaProps, buildCss, buildDataProps
|
6
|
+
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
7
7
|
import { globalProps } from '../utilities/globalProps'
|
8
8
|
|
9
9
|
import Avatar from '../pb_avatar/_avatar'
|
@@ -13,7 +13,6 @@ type MultipleUsersProps = {
|
|
13
13
|
className?: string,
|
14
14
|
dark?: boolean,
|
15
15
|
data?: { [key: string]: string },
|
16
|
-
htmlOptions?: {[key: string]: string | number | boolean | Function},
|
17
16
|
id?: string,
|
18
17
|
maxDisplayedUsers?: number,
|
19
18
|
reverse?: boolean,
|
@@ -27,7 +26,6 @@ const MultipleUsers = (props: MultipleUsersProps): React.ReactElement => {
|
|
27
26
|
className,
|
28
27
|
dark = false,
|
29
28
|
data = {},
|
30
|
-
htmlOptions = {},
|
31
29
|
id,
|
32
30
|
maxDisplayedUsers = 4,
|
33
31
|
reverse = false,
|
@@ -43,7 +41,6 @@ const MultipleUsers = (props: MultipleUsersProps): React.ReactElement => {
|
|
43
41
|
const avatarSizeClass = size === 'xxs' ? 'xxs' : 'xs'
|
44
42
|
const ariaProps = buildAriaProps(aria)
|
45
43
|
const dataProps = buildDataProps(data)
|
46
|
-
const htmlProps = buildHtmlProps(htmlOptions)
|
47
44
|
const classes = classnames(
|
48
45
|
buildCss('pb_multiple_users_kit', reverseClass),
|
49
46
|
globalProps(props),
|
@@ -59,7 +56,6 @@ const MultipleUsers = (props: MultipleUsersProps): React.ReactElement => {
|
|
59
56
|
<div
|
60
57
|
{...ariaProps}
|
61
58
|
{...dataProps}
|
62
|
-
{...htmlProps}
|
63
59
|
className={classes}
|
64
60
|
id={id}
|
65
61
|
>
|
@@ -10,9 +10,3 @@ 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
|
5
|
+
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
6
6
|
|
7
7
|
import Avatar from '../pb_avatar/_avatar'
|
8
8
|
import Badge from '../pb_badge/_badge'
|
@@ -12,7 +12,6 @@ type MultipleUsersStackedProps = {
|
|
12
12
|
className?: string,
|
13
13
|
dark?: boolean,
|
14
14
|
data?: { [key: string]: string },
|
15
|
-
htmlOptions?: {[key: string]: string | number | boolean | Function},
|
16
15
|
id?: string,
|
17
16
|
users: Array<{ [key: string]: string }>,
|
18
17
|
}
|
@@ -23,7 +22,6 @@ const MultipleUsersStacked = (props: MultipleUsersStackedProps) => {
|
|
23
22
|
className,
|
24
23
|
dark = false,
|
25
24
|
data = {},
|
26
|
-
htmlOptions = {},
|
27
25
|
id,
|
28
26
|
users,
|
29
27
|
} = props
|
@@ -35,7 +33,6 @@ const MultipleUsersStacked = (props: MultipleUsersStackedProps) => {
|
|
35
33
|
}
|
36
34
|
const ariaProps = buildAriaProps(aria)
|
37
35
|
const dataProps = buildDataProps(data)
|
38
|
-
const htmlProps = buildHtmlProps(htmlOptions)
|
39
36
|
const classes = classnames(buildCss(
|
40
37
|
'pb_multiple_users_stacked_kit',
|
41
38
|
{ single: onlyOne }), globalProps(props), className)
|
@@ -88,7 +85,6 @@ const MultipleUsersStacked = (props: MultipleUsersStackedProps) => {
|
|
88
85
|
<div
|
89
86
|
{...ariaProps}
|
90
87
|
{...dataProps}
|
91
|
-
{...htmlProps}
|
92
88
|
className={classes}
|
93
89
|
id={id}
|
94
90
|
>
|
@@ -6,9 +6,3 @@ 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
|
4
|
+
import { buildAriaProps, buildCss, buildDataProps } from "../utilities/props";
|
5
5
|
import { globalProps, GlobalProps } from "../utilities/globalProps";
|
6
6
|
|
7
7
|
import Icon from "../pb_icon/_icon";
|
@@ -21,7 +21,6 @@ type NavItemProps = {
|
|
21
21
|
data?: object;
|
22
22
|
dark?: boolean;
|
23
23
|
fontSize?: "normal" | "small";
|
24
|
-
htmlOptions?: {[key: string]: string | number | boolean | Function},
|
25
24
|
iconLeft?: string;
|
26
25
|
iconRight?: string | string[];
|
27
26
|
onIconRightClick?: () => void;
|
@@ -68,7 +67,6 @@ const NavItem = (props: NavItemProps) => {
|
|
68
67
|
data = {},
|
69
68
|
dark = false,
|
70
69
|
fontSize = "normal",
|
71
|
-
htmlOptions = {},
|
72
70
|
iconLeft,
|
73
71
|
iconRight,
|
74
72
|
onIconRightClick,
|
@@ -160,8 +158,7 @@ const { filteredPadding, filteredMargin } = filterItemSpacing(itemSpacing);
|
|
160
158
|
const fontWeightClass = fontWeightMapping[fontWeight];
|
161
159
|
|
162
160
|
const ariaProps = buildAriaProps(aria);
|
163
|
-
const dataProps = buildDataProps(data)
|
164
|
-
const htmlProps = buildHtmlProps(htmlOptions);
|
161
|
+
const dataProps = buildDataProps(data);
|
165
162
|
|
166
163
|
const tagClasses = classnames(
|
167
164
|
collapsible ? "pb_nav_list_item_link_collapsible" : "pb_nav_list_item_link",
|
@@ -219,7 +216,6 @@ const { filteredPadding, filteredMargin } = filterItemSpacing(itemSpacing);
|
|
219
216
|
<Tag
|
220
217
|
{...ariaProps}
|
221
218
|
{...dataProps}
|
222
|
-
{...htmlProps}
|
223
219
|
className={classes}
|
224
220
|
id={id}
|
225
221
|
href={link}
|
@@ -260,7 +256,6 @@ const { filteredPadding, filteredMargin } = filterItemSpacing(itemSpacing);
|
|
260
256
|
<Tag
|
261
257
|
{...ariaProps}
|
262
258
|
{...dataProps}
|
263
|
-
{...htmlProps}
|
264
259
|
className={classes}
|
265
260
|
id={id}
|
266
261
|
href={link}
|