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.
Files changed (146) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_avatar/_avatar.tsx +1 -5
  3. data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.tsx +2 -6
  4. data/app/pb_kits/playbook/pb_background/_background.tsx +5 -9
  5. data/app/pb_kits/playbook/pb_badge/_badge.tsx +1 -5
  6. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.tsx +2 -6
  7. data/app/pb_kits/playbook/pb_body/_body.tsx +1 -5
  8. data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.tsx +1 -5
  9. data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.tsx +2 -5
  10. data/app/pb_kits/playbook/pb_button/_button.tsx +1 -8
  11. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.tsx +1 -5
  12. data/app/pb_kits/playbook/pb_caption/_caption.tsx +1 -6
  13. data/app/pb_kits/playbook/pb_card/_card.tsx +1 -5
  14. data/app/pb_kits/playbook/pb_checkbox/_checkbox.tsx +2 -7
  15. data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.tsx +2 -7
  16. data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.tsx +3 -5
  17. data/app/pb_kits/playbook/pb_collapsible/_collapsible.tsx +1 -5
  18. data/app/pb_kits/playbook/pb_contact/_contact.tsx +1 -5
  19. data/app/pb_kits/playbook/pb_currency/_currency.tsx +1 -5
  20. data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.tsx +1 -5
  21. data/app/pb_kits/playbook/pb_date/_date.tsx +7 -12
  22. data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +1 -5
  23. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.tsx +1 -5
  24. data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.tsx +4 -15
  25. data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.tsx +5 -12
  26. data/app/pb_kits/playbook/pb_date_time/_date_time.tsx +1 -5
  27. data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.tsx +1 -5
  28. data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.tsx +4 -15
  29. data/app/pb_kits/playbook/pb_detail/_detail.tsx +1 -5
  30. data/app/pb_kits/playbook/pb_dialog/_dialog.tsx +3 -11
  31. data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.tsx +3 -8
  32. data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_header.tsx +1 -5
  33. data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.tsx +1 -8
  34. data/app/pb_kits/playbook/pb_file_upload/_file_upload.tsx +2 -6
  35. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.tsx +1 -6
  36. data/app/pb_kits/playbook/pb_flex/_flex.tsx +1 -6
  37. data/app/pb_kits/playbook/pb_flex/_flex_item.tsx +1 -6
  38. data/app/pb_kits/playbook/pb_form_group/_form_group.tsx +1 -5
  39. data/app/pb_kits/playbook/pb_form_pill/_form_pill.tsx +1 -7
  40. data/app/pb_kits/playbook/pb_gauge/_gauge.tsx +2 -6
  41. data/app/pb_kits/playbook/pb_hashtag/_hashtag.tsx +1 -5
  42. data/app/pb_kits/playbook/pb_highlight/_highlight.tsx +0 -5
  43. data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.tsx +3 -10
  44. data/app/pb_kits/playbook/pb_icon/_icon.tsx +1 -7
  45. data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.tsx +1 -5
  46. data/app/pb_kits/playbook/pb_icon_stat_value/_icon_stat_value.tsx +1 -5
  47. data/app/pb_kits/playbook/pb_icon_value/_icon_value.tsx +1 -5
  48. data/app/pb_kits/playbook/pb_image/_image.tsx +1 -6
  49. data/app/pb_kits/playbook/pb_label_pill/_label_pill.tsx +1 -5
  50. data/app/pb_kits/playbook/pb_label_value/_label_value.tsx +2 -6
  51. data/app/pb_kits/playbook/pb_layout/_layout.tsx +1 -6
  52. data/app/pb_kits/playbook/pb_legend/_legend.tsx +1 -5
  53. data/app/pb_kits/playbook/pb_lightbox/Header/_lightbox_header.tsx +1 -6
  54. data/app/pb_kits/playbook/pb_lightbox/_lightbox.tsx +1 -5
  55. data/app/pb_kits/playbook/pb_line_graph/_line_graph.tsx +3 -9
  56. data/app/pb_kits/playbook/pb_list/_list.tsx +2 -7
  57. data/app/pb_kits/playbook/pb_list/_list_item.tsx +1 -5
  58. data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.tsx +1 -5
  59. data/app/pb_kits/playbook/pb_map/_map.tsx +1 -6
  60. data/app/pb_kits/playbook/pb_message/_message.tsx +1 -5
  61. data/app/pb_kits/playbook/pb_message/_message_mention.tsx +1 -5
  62. data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +1 -5
  63. data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.tsx +1 -5
  64. data/app/pb_kits/playbook/pb_multiple_users/docs/example.yml +0 -6
  65. data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.tsx +1 -5
  66. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/example.yml +0 -6
  67. data/app/pb_kits/playbook/pb_nav/_item.tsx +2 -7
  68. data/app/pb_kits/playbook/pb_nav/_nav.tsx +1 -5
  69. data/app/pb_kits/playbook/pb_online_status/_online_status.tsx +1 -5
  70. data/app/pb_kits/playbook/pb_passphrase/_passphrase.tsx +2 -6
  71. data/app/pb_kits/playbook/pb_person/_person.tsx +0 -5
  72. data/app/pb_kits/playbook/pb_person_contact/_person_contact.tsx +1 -5
  73. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +2 -8
  74. data/app/pb_kits/playbook/pb_pill/_pill.tsx +1 -5
  75. data/app/pb_kits/playbook/pb_popover/_popover.tsx +1 -6
  76. data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.tsx +1 -5
  77. data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.tsx +3 -9
  78. data/app/pb_kits/playbook/pb_progress_step/_progress_step.tsx +1 -5
  79. data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.tsx +2 -6
  80. data/app/pb_kits/playbook/pb_radio/_radio.tsx +1 -5
  81. data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.tsx +1 -7
  82. data/app/pb_kits/playbook/pb_section_separator/_section_separator.tsx +1 -5
  83. data/app/pb_kits/playbook/pb_section_separator/docs/example.yml +0 -8
  84. data/app/pb_kits/playbook/pb_select/_select.tsx +1 -6
  85. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.tsx +2 -6
  86. data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.tsx +0 -5
  87. data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.tsx +0 -5
  88. data/app/pb_kits/playbook/pb_selectable_list/_item.tsx +3 -11
  89. data/app/pb_kits/playbook/pb_selectable_list/_selectable_list.tsx +1 -5
  90. data/app/pb_kits/playbook/pb_source/_source.tsx +1 -5
  91. data/app/pb_kits/playbook/pb_star_rating/_star_rating.tsx +1 -5
  92. data/app/pb_kits/playbook/pb_stat_change/_stat_change.tsx +2 -14
  93. data/app/pb_kits/playbook/pb_stat_value/_stat_value.tsx +0 -6
  94. data/app/pb_kits/playbook/pb_table/_table.tsx +1 -5
  95. data/app/pb_kits/playbook/pb_table/_table_row.tsx +1 -5
  96. data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +1 -5
  97. data/app/pb_kits/playbook/pb_text_input/docs/example.yml +0 -7
  98. data/app/pb_kits/playbook/pb_textarea/_textarea.tsx +2 -5
  99. data/app/pb_kits/playbook/pb_textarea/docs/example.yml +0 -5
  100. data/app/pb_kits/playbook/pb_time/_time.tsx +2 -9
  101. data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.tsx +1 -5
  102. data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.tsx +2 -6
  103. data/app/pb_kits/playbook/pb_timeline/_item.tsx +2 -9
  104. data/app/pb_kits/playbook/pb_timeline/_timeline.tsx +1 -5
  105. data/app/pb_kits/playbook/pb_timestamp/_timestamp.tsx +1 -5
  106. data/app/pb_kits/playbook/pb_title/_title.tsx +1 -5
  107. data/app/pb_kits/playbook/pb_title_count/_title_count.tsx +1 -5
  108. data/app/pb_kits/playbook/pb_title_detail/_title_detail.tsx +3 -16
  109. data/app/pb_kits/playbook/pb_toggle/_toggle.tsx +0 -5
  110. data/app/pb_kits/playbook/pb_toggle/docs/example.yml +0 -4
  111. data/app/pb_kits/playbook/pb_tooltip/_tooltip.tsx +1 -5
  112. data/app/pb_kits/playbook/pb_treemap_chart/_treemap_chart.tsx +3 -9
  113. data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +2 -7
  114. data/app/pb_kits/playbook/pb_user/_user.tsx +1 -5
  115. data/app/pb_kits/playbook/pb_user_badge/_user_badge.tsx +1 -5
  116. data/app/pb_kits/playbook/pb_walkthrough/_walkthrough.tsx +1 -5
  117. data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.tsx +1 -5
  118. data/app/pb_kits/playbook/utilities/props.ts +0 -16
  119. data/dist/playbook-rails.js +5 -5
  120. data/lib/playbook/version.rb +2 -2
  121. metadata +7 -32
  122. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_default_swift.md +0 -11
  123. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_props_swift.md +0 -7
  124. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_reverse_swift.md +0 -13
  125. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_size_swift.md +0 -11
  126. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_default_swift.md +0 -15
  127. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_props_swift.md +0 -5
  128. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_small_swift.md +0 -15
  129. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_xsmall_swift.md +0 -15
  130. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_children_swift.md +0 -14
  131. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_dashed_swift.md +0 -7
  132. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_line_swift.md +0 -8
  133. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_props_swift.md +0 -8
  134. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text_swift.md +0 -7
  135. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_vertical_swift.md +0 -18
  136. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_add_on_swift.md +0 -35
  137. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_default_swift.md +0 -29
  138. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_disabled_swift.md +0 -13
  139. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_error_swift.md +0 -24
  140. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_props_swift.md +0 -13
  141. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_default_swift.md +0 -27
  142. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_error_swift.md +0 -11
  143. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_props_swift.md +0 -9
  144. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_default_swift.md +0 -11
  145. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_name_swift.md +0 -10
  146. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_props_swift.md +0 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16d95847674aec1bca3c0668bca775cd9c7e7770129463157e2fb7e73cf0b2fe
4
- data.tar.gz: c6c048ad9a32b425d9ce1071693e1ed631a2ca480c938d4e93d79e31322d0f8e
3
+ metadata.gz: 5274804bb3a050a4c0649d20d667e714fed94f191bb3dbb8bf2476198a83e0a7
4
+ data.tar.gz: e6ea6a7dbfff42131377ee9ee4a6ecbac3bee1a69f34923dbb0e11c44ff25911
5
5
  SHA512:
6
- metadata.gz: f59559d7266ab700fc78b8f0378e1fba50cae3ceef0212f8f45d9ecd798c099eb85d13e3e41ce5392c2370e71ebba8a444e0d9228bdbad3c6280aafcaae0e4d1
7
- data.tar.gz: 4397d3e17246775de0d4188e9b31f8ad23ca7e6782e6de44f76d2a384b00a46d71fa124e82d90fa48f4f997bf29d471eb4dcab2ed4ceee7d124149ee5e4f3271
6
+ metadata.gz: a69c18f1d029ac13eaff14aceda3b01e96004eab1621cdccfc9c46e47a6041f83bfa797cb422221c4604c306da163dc8248e775ac1606377ee3e586a3989879d
7
+ data.tar.gz: 975179da601fbf2a3a3abf924c59e4bc307938dfa9fabbd45ddee638d1bd2729f8dd62d256eba2a4e0d2a0884c29d8d8d5b8ca6d106c6ef51301a0a0dfb9fd45
@@ -1,7 +1,7 @@
1
1
  import React, { useState } from 'react'
2
2
  import classnames from 'classnames'
3
3
 
4
- import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
4
+ import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
5
5
  import { globalProps, GlobalProps } from '../utilities/globalProps'
6
6
 
7
7
  import Image from '../pb_image/_image'
@@ -12,7 +12,6 @@ export type AvatarProps = {
12
12
  className?: string,
13
13
  data?: {[key: string]: string},
14
14
  dark?: boolean,
15
- htmlOptions?: {[key: string]: string | number | boolean | Function},
16
15
  id?: string,
17
16
  imageAlt?: string,
18
17
  imageUrl?: string,
@@ -31,7 +30,6 @@ const Avatar = (props: AvatarProps): React.ReactElement => {
31
30
  aria = {},
32
31
  className,
33
32
  data = {},
34
- htmlOptions = {},
35
33
  name = null,
36
34
  id = '',
37
35
  imageAlt = '',
@@ -42,7 +40,6 @@ const Avatar = (props: AvatarProps): React.ReactElement => {
42
40
  } = props
43
41
  const dataProps: {[key: string]: any} = buildDataProps(data)
44
42
  const ariaProps: {[key: string]: any} = buildAriaProps(aria)
45
- const htmlProps = buildHtmlProps(htmlOptions);
46
43
  const classes = classnames(
47
44
  buildCss('pb_avatar_kit', `size_${size}`),
48
45
  globalProps(props),
@@ -61,7 +58,6 @@ const Avatar = (props: AvatarProps): React.ReactElement => {
61
58
  <div
62
59
  {...ariaProps}
63
60
  {...dataProps}
64
- {...htmlProps}
65
61
  className={classes}
66
62
  id={id}
67
63
  >
@@ -6,8 +6,8 @@ import classnames from 'classnames'
6
6
  import {
7
7
  buildAriaProps,
8
8
  buildCss,
9
- buildDataProps,
10
- buildHtmlProps } from '../utilities/props'
9
+ buildDataProps,
10
+ } from '../utilities/props'
11
11
  import { globalProps } from '../utilities/globalProps'
12
12
 
13
13
  import Avatar from '../pb_avatar/_avatar'
@@ -20,7 +20,6 @@ type AvatarActionButtonProps = {
20
20
  className?: string,
21
21
  dark?: boolean,
22
22
  data?: Object,
23
- htmlOptions?: {[key: string]: string | number | boolean | Function},
24
23
  id?: string,
25
24
  imageAlt?: string,
26
25
  imageUrl?: string,
@@ -39,7 +38,6 @@ const AvatarActionButton = (props: AvatarActionButtonProps) => {
39
38
  className,
40
39
  dark = false,
41
40
  data = {},
42
- htmlOptions = {},
43
41
  id,
44
42
  imageAlt = '',
45
43
  imageUrl,
@@ -52,7 +50,6 @@ const AvatarActionButton = (props: AvatarActionButtonProps) => {
52
50
 
53
51
  const ariaProps = buildAriaProps(aria)
54
52
  const dataProps = buildDataProps(data)
55
- const htmlProps = buildHtmlProps(htmlOptions)
56
53
 
57
54
  const classes = classnames(buildCss(
58
55
  'pb_avatar_action_button_kit',
@@ -71,7 +68,6 @@ const AvatarActionButton = (props: AvatarActionButtonProps) => {
71
68
  <div
72
69
  {...ariaProps}
73
70
  {...dataProps}
74
- {...htmlProps}
75
71
  className={classes}
76
72
  id={id}
77
73
  >
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect, useState } from 'react'
2
2
  import classnames from 'classnames'
3
- import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
3
+ import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
4
4
  import { GlobalProps, globalProps } from '../utilities/globalProps'
5
5
 
6
6
  type BackgroundProps = {
@@ -23,7 +23,6 @@ type BackgroundProps = {
23
23
  className?: string,
24
24
  customColor?: string,
25
25
  data?: {[key: string]: string},
26
- htmlOptions?: {[key: string]: string | number | boolean | Function},
27
26
  id?: string,
28
27
  padding?: 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl',
29
28
  tag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'div' | 'tr' | 'th' | 'td' | 'thead' | 'col',
@@ -75,7 +74,6 @@ const Background = (props: BackgroundProps) => {
75
74
  className,
76
75
  customColor,
77
76
  data = {},
78
- htmlOptions = {},
79
77
  id,
80
78
  imageUrl = '',
81
79
  tag = 'div',
@@ -115,7 +113,6 @@ const Background = (props: BackgroundProps) => {
115
113
  imageUrl: resImageUrl,
116
114
  } = responsiveProps;
117
115
 
118
-
119
116
  // Build CSS classes and styles using responsive values.
120
117
  const classes = classnames(
121
118
  buildCss('pb_background_kit'),
@@ -140,17 +137,16 @@ const Background = (props: BackgroundProps) => {
140
137
  const Tag: React.ReactElement | any = `${tag}`;
141
138
  const ariaProps = buildAriaProps(aria);
142
139
  const dataProps = buildDataProps(data);
143
- const htmlProps = buildHtmlProps(htmlOptions);
144
-
140
+
141
+
145
142
  return (
146
143
  <Tag
144
+ alt={alt}
145
+ style={backgroundStyle}
147
146
  {...ariaProps}
148
147
  {...dataProps}
149
- {...htmlProps}
150
- alt={alt}
151
148
  className={classes}
152
149
  id={id}
153
- style={backgroundStyle}
154
150
  >
155
151
  {children}
156
152
  </Tag>
@@ -6,7 +6,7 @@ import {
6
6
  buildAriaProps,
7
7
  buildCss,
8
8
  buildDataProps,
9
- buildHtmlProps } from '../utilities/props'
9
+ } from '../utilities/props'
10
10
 
11
11
  import Icon from '../pb_icon/_icon'
12
12
 
@@ -19,7 +19,6 @@ type BadgeProps = {
19
19
  onTouchEnd?: React.TouchEventHandler<HTMLSpanElement>,
20
20
  },
21
21
  data?: {[key: string]: string},
22
- htmlOptions?: {[key: string]: string | number | boolean | Function},
23
22
  id?: string,
24
23
  removeIcon?: boolean,
25
24
  removeOnClick?: React.MouseEventHandler<HTMLSpanElement>,
@@ -33,7 +32,6 @@ const Badge = (props: BadgeProps) => {
33
32
  className,
34
33
  closeProps = {},
35
34
  data = {},
36
- htmlOptions = {},
37
35
  id,
38
36
  removeIcon = false,
39
37
  removeOnClick,
@@ -43,7 +41,6 @@ const Badge = (props: BadgeProps) => {
43
41
  } = props
44
42
  const ariaProps = buildAriaProps(aria)
45
43
  const dataProps = buildDataProps(data)
46
- const htmlProps = buildHtmlProps(htmlOptions)
47
44
  const css = classnames(
48
45
  buildCss('pb_badge_kit', variant === "success" ? "success_sm" : variant, rounded ? 'rounded' : null),
49
46
  globalProps(props),
@@ -54,7 +51,6 @@ const Badge = (props: BadgeProps) => {
54
51
  <div
55
52
  {...ariaProps}
56
53
  {...dataProps}
57
- {...htmlProps}
58
54
  className={css}
59
55
  id={id}
60
56
  >
@@ -1,6 +1,6 @@
1
1
  import React, { useState, useEffect } from "react";
2
2
  import { globalProps } from "../utilities/globalProps";
3
- import { buildAriaProps, buildDataProps, buildHtmlProps } from "../utilities/props";
3
+ import { buildAriaProps, buildDataProps } from "../utilities/props";
4
4
 
5
5
  import HighchartsReact from "highcharts-react-official";
6
6
  import Highcharts from "highcharts";
@@ -19,7 +19,6 @@ type BarGraphProps = {
19
19
  yAxisMax: number;
20
20
  chartData: { name: string; data: number[] }[];
21
21
  className?: string;
22
- htmlOptions?: {[key: string]: string | number | boolean | Function},
23
22
  id: any;
24
23
  pointStart: number | any;
25
24
  subTitle?: string;
@@ -47,7 +46,6 @@ const BarGraph = ({
47
46
  chartData,
48
47
  className = "pb_bar_graph",
49
48
  colors,
50
- htmlOptions = {},
51
49
  id,
52
50
  pointStart,
53
51
  subTitle,
@@ -66,8 +64,7 @@ const BarGraph = ({
66
64
  ...props
67
65
  }: BarGraphProps): React.ReactElement => {
68
66
  const ariaProps = buildAriaProps(aria);
69
- const dataProps = buildDataProps(data)
70
- const htmlProps = buildHtmlProps(htmlOptions);
67
+ const dataProps = buildDataProps(data);
71
68
  const setupTheme = () => {
72
69
  dark
73
70
  ? Highcharts.setOptions(highchartsDarkTheme)
@@ -138,7 +135,6 @@ const BarGraph = ({
138
135
  id: id,
139
136
  ...ariaProps,
140
137
  ...dataProps,
141
- ...htmlProps
142
138
  }}
143
139
  highcharts={Highcharts}
144
140
  options={options}
@@ -1,7 +1,7 @@
1
1
  import React from 'react'
2
2
  import classnames from 'classnames'
3
3
 
4
- import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
4
+ import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
5
5
  import { deprecatedProps, globalProps, GlobalProps } from '../utilities/globalProps'
6
6
 
7
7
  import Highlight from '../pb_highlight/_highlight'
@@ -15,7 +15,6 @@ type BodyProps = {
15
15
  data?: {[key: string]: string},
16
16
  highlightedText?: string[],
17
17
  highlighting?: boolean,
18
- htmlOptions?: {[key: string]: string | number | boolean | Function},
19
18
  id?: string,
20
19
  status?: 'neutral' | 'negative' | 'positive',
21
20
  tag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'div',
@@ -34,7 +33,6 @@ const Body = (props: BodyProps): React.ReactElement => {
34
33
  data = {},
35
34
  highlightedText = [],
36
35
  highlighting = false,
37
- htmlOptions = {},
38
36
  id = '',
39
37
  status = null,
40
38
  tag = 'div',
@@ -45,7 +43,6 @@ const Body = (props: BodyProps): React.ReactElement => {
45
43
 
46
44
  const ariaProps: {[key: string]: any} = buildAriaProps(aria)
47
45
  const dataProps: {[key: string]: any} = buildDataProps(data)
48
- const htmlProps = buildHtmlProps(htmlOptions);
49
46
  const isTruncated = truncate ? `truncate_${truncate}` : ''
50
47
  const classes = classnames(
51
48
  buildCss('pb_body_kit', color, variant, status, isTruncated),
@@ -59,7 +56,6 @@ const Body = (props: BodyProps): React.ReactElement => {
59
56
  <Tag
60
57
  {...ariaProps}
61
58
  {...dataProps}
62
- {...htmlProps}
63
59
  className={classes}
64
60
  id={id}
65
61
  >
@@ -8,13 +8,12 @@ import {
8
8
  buildAriaProps,
9
9
  buildCss,
10
10
  buildDataProps,
11
- buildHtmlProps } from '../utilities/props'
11
+ } from '../utilities/props'
12
12
 
13
13
  type BreadCrumbItemProps = {
14
14
  aria?: {[key: string]: string},
15
15
  className?: string,
16
16
  data?: object,
17
- htmlOptions?: {[key: string]: string | number | boolean | Function},
18
17
  id?: string,
19
18
  component?: "a" | "span",
20
19
  [x:string]: any;
@@ -26,14 +25,12 @@ const BreadCrumbItem = (props: BreadCrumbItemProps) => {
26
25
  aria = {},
27
26
  className,
28
27
  data = {},
29
- htmlOptions = {},
30
28
  id,
31
29
  component = 'a',
32
30
  ...rest
33
31
  } = props
34
32
  const ariaProps = buildAriaProps(aria)
35
33
  const dataProps = buildDataProps(data)
36
- const htmlProps = buildHtmlProps(htmlOptions)
37
34
  const Component = component || 'span';
38
35
  const css = classnames(
39
36
  buildCss('pb_bread_crumb_item_kit'),
@@ -45,7 +42,6 @@ const BreadCrumbItem = (props: BreadCrumbItemProps) => {
45
42
  <div
46
43
  {...ariaProps}
47
44
  {...dataProps}
48
- {...htmlProps}
49
45
  className={css}
50
46
  id={id}
51
47
  >
@@ -1,3 +1,5 @@
1
+ /* @flow */
2
+
1
3
  import React from 'react'
2
4
  import classnames from 'classnames'
3
5
  import { globalProps } from '../utilities/globalProps'
@@ -6,14 +8,12 @@ import {
6
8
  buildAriaProps,
7
9
  buildCss,
8
10
  buildDataProps,
9
- buildHtmlProps
10
11
  } from '../utilities/props'
11
12
 
12
13
  type BreadCrumbsProps = {
13
14
  aria?: {[key: string]: string},
14
15
  className?: string,
15
16
  data?: object,
16
- htmlOptions?: {[key: string]: string | number | boolean | Function},
17
17
  id?: string,
18
18
  text?: string,
19
19
  children?: React.ReactChild[] | React.ReactNode,
@@ -23,13 +23,11 @@ const BreadCrumbs = (props: BreadCrumbsProps) => {
23
23
  aria = { label: 'Breadcrumb Navigation' },
24
24
  className,
25
25
  data = {},
26
- htmlOptions = {},
27
26
  id,
28
27
  children,
29
28
  } = props
30
29
  const ariaProps = buildAriaProps(aria)
31
30
  const dataProps = buildDataProps(data)
32
- const htmlProps = buildHtmlProps(htmlOptions)
33
31
  const css = classnames(
34
32
  buildCss('pb_bread_crumbs_kit'),
35
33
  globalProps(props),
@@ -40,7 +38,6 @@ const BreadCrumbs = (props: BreadCrumbsProps) => {
40
38
  <nav
41
39
  {...ariaProps}
42
40
  {...dataProps}
43
- {...htmlProps}
44
41
  className={css}
45
42
  id={id}
46
43
  >
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import classnames from 'classnames'
3
- import { buildAriaProps, buildDataProps, buildHtmlProps } from '../utilities/props'
3
+ import { buildAriaProps, buildDataProps } from '../utilities/props'
4
4
  import { GlobalProps, globalProps } from '../utilities/globalProps'
5
5
  import { isValidEmoji } from '../utilities/validEmojiChecker'
6
6
 
@@ -21,7 +21,6 @@ type ButtonPropTypes = {
21
21
  form?: string,
22
22
  fullWidth?: boolean,
23
23
  highlight?: boolean,
24
- htmlOptions?: {[key: string]: string | number | boolean | Function},
25
24
  icon?: string,
26
25
  iconRight?: boolean,
27
26
  id?: string,
@@ -74,7 +73,6 @@ const Button = (props: ButtonPropTypes) => {
74
73
  count,
75
74
  data = {},
76
75
  disabled,
77
- htmlOptions = {},
78
76
  icon = null,
79
77
  iconRight = false,
80
78
  id,
@@ -93,8 +91,6 @@ const Button = (props: ButtonPropTypes) => {
93
91
 
94
92
  const ariaProps = buildAriaProps(aria)
95
93
  const dataProps = buildDataProps(data)
96
- const htmlProps = buildHtmlProps(htmlOptions)
97
-
98
94
  const css = classnames(
99
95
  buttonClassName(props),
100
96
  globalProps(props),
@@ -152,7 +148,6 @@ const Button = (props: ButtonPropTypes) => {
152
148
  <a
153
149
  {...ariaProps}
154
150
  {...dataProps}
155
- {...htmlProps}
156
151
  className={css}
157
152
  href={link}
158
153
  id={id}
@@ -169,7 +164,6 @@ const Button = (props: ButtonPropTypes) => {
169
164
  <button
170
165
  {...ariaProps}
171
166
  {...dataProps}
172
- {...htmlProps}
173
167
  className={css}
174
168
  disabled={disabled}
175
169
  form={form}
@@ -205,7 +199,6 @@ const Button = (props: ButtonPropTypes) => {
205
199
  <button
206
200
  {...ariaProps}
207
201
  {...dataProps}
208
- {...htmlProps}
209
202
  className={css}
210
203
  disabled={disabled}
211
204
  form={form}
@@ -3,7 +3,7 @@
3
3
  import React from 'react'
4
4
  import classnames from 'classnames'
5
5
 
6
- import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
6
+ import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
7
7
 
8
8
  import { globalProps } from '../utilities/globalProps'
9
9
 
@@ -13,7 +13,6 @@ type ButtonToolbarProps = {
13
13
  className?: string,
14
14
  connected?: boolean,
15
15
  data?: object,
16
- htmlOptions?: {[key: string]: string | number | boolean | Function},
17
16
  id?: string,
18
17
  onClick?: React.MouseEventHandler<HTMLSpanElement>,
19
18
  orientation?: "horizontal" | "vertical",
@@ -27,7 +26,6 @@ const ButtonToolbar = (props: ButtonToolbarProps) => {
27
26
  children,
28
27
  className,
29
28
  data = {},
30
- htmlOptions = {},
31
29
  id,
32
30
  orientation = 'horizontal',
33
31
  text,
@@ -36,7 +34,6 @@ const ButtonToolbar = (props: ButtonToolbarProps) => {
36
34
 
37
35
  const ariaProps = buildAriaProps(aria)
38
36
  const dataProps = buildDataProps(data)
39
- const htmlProps = buildHtmlProps(htmlOptions)
40
37
 
41
38
  const classes = classnames(
42
39
  buildCss('pb_button_toolbar_kit', orientation, variant),
@@ -48,7 +45,6 @@ const ButtonToolbar = (props: ButtonToolbarProps) => {
48
45
  <div
49
46
  {...ariaProps}
50
47
  {...dataProps}
51
- {...htmlProps}
52
48
  className={classes}
53
49
  id={id}
54
50
  >
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import classnames from 'classnames'
3
- import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
3
+ import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
4
4
  import { deprecatedProps, globalProps, GlobalProps } from '../utilities/globalProps'
5
5
 
6
6
  type CaptionProps = {
@@ -9,7 +9,6 @@ type CaptionProps = {
9
9
  className?: string,
10
10
  color?: "default" | "light" | "lighter" | "success" | "error" | "link",
11
11
  data?: {[key: string]: string},
12
- htmlOptions?: {[key: string]: string | number | boolean | Function},
13
12
  id?: string,
14
13
  size?: "xs" | "sm" | "md" | "lg" | "xl",
15
14
  tag?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | "div" | "caption",
@@ -25,7 +24,6 @@ const Caption = (props: CaptionProps): React.ReactElement => {
25
24
  className,
26
25
  color,
27
26
  data = {},
28
- htmlOptions = {},
29
27
  id,
30
28
  size = 'md',
31
29
  tag = 'div',
@@ -49,8 +47,6 @@ const Caption = (props: CaptionProps): React.ReactElement => {
49
47
 
50
48
  const ariaProps = buildAriaProps(aria)
51
49
  const dataProps = buildDataProps(data)
52
- const htmlProps = buildHtmlProps(htmlOptions)
53
-
54
50
  const css = classnames(
55
51
  buildCss('pb_caption_kit', size, variant, color),
56
52
  globalProps(props),
@@ -61,7 +57,6 @@ const Caption = (props: CaptionProps): React.ReactElement => {
61
57
  <Tag
62
58
  {...ariaProps}
63
59
  {...dataProps}
64
- {...htmlProps}
65
60
  className={css}
66
61
  id={id}
67
62
  >
@@ -4,7 +4,7 @@ import React from 'react'
4
4
  import { get } from 'lodash'
5
5
  import classnames from 'classnames'
6
6
 
7
- import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
7
+ import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
8
8
  import { GlobalProps, globalProps } from '../utilities/globalProps'
9
9
  import type { ProductColors, CategoryColors, BackgroundColors } from '../types/colors'
10
10
 
@@ -16,7 +16,6 @@ type CardPropTypes = {
16
16
  children: React.ReactChild[] | React.ReactChild | number,
17
17
  className?: string,
18
18
  data?: {[key: string]: string},
19
- htmlOptions?: {[key: string]: string | number | boolean | Function},
20
19
  highlight?: {
21
20
  position?: "side" | "top",
22
21
  color?: string,
@@ -79,7 +78,6 @@ const Card = (props: CardPropTypes) => {
79
78
  className,
80
79
  data = {},
81
80
  highlight = {},
82
- htmlOptions = {},
83
81
  selected = false,
84
82
  tag = 'div',
85
83
  } = props
@@ -92,7 +90,6 @@ const Card = (props: CardPropTypes) => {
92
90
  })
93
91
  const ariaProps: {[key: string]: string} = buildAriaProps(aria)
94
92
  const dataProps: {[key: string]: string} = buildDataProps(data)
95
- const htmlProps = buildHtmlProps(htmlOptions);
96
93
 
97
94
  // coerce to array
98
95
  const cardChildren = React.Children.toArray(children)
@@ -116,7 +113,6 @@ const Card = (props: CardPropTypes) => {
116
113
  <Tag
117
114
  {...ariaProps}
118
115
  {...dataProps}
119
- {...htmlProps}
120
116
  className={classnames(cardCss, globalProps(props), className)}
121
117
  >
122
118
  {subComponentTags('Header')}
@@ -1,7 +1,7 @@
1
1
  import React, { useEffect, useRef } from 'react'
2
2
  import Body from '../pb_body/_body'
3
3
  import Icon from '../pb_icon/_icon'
4
- import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
4
+ import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
5
5
  import classnames from 'classnames'
6
6
  import { globalProps, GlobalProps } from '../utilities/globalProps'
7
7
 
@@ -13,7 +13,6 @@ type CheckboxProps = {
13
13
  dark?: boolean,
14
14
  data?: {[key: string]: string},
15
15
  error?: boolean,
16
- htmlOptions?: {[key: string]: string | number | boolean | Function},
17
16
  id?: string,
18
17
  indeterminate?: boolean,
19
18
  name?: string,
@@ -32,7 +31,6 @@ const Checkbox = (props: CheckboxProps): JSX.Element => {
32
31
  dark = false,
33
32
  data = {},
34
33
  error = false,
35
- htmlOptions = {},
36
34
  id,
37
35
  indeterminate = false,
38
36
  name = '',
@@ -43,10 +41,8 @@ const Checkbox = (props: CheckboxProps): JSX.Element => {
43
41
  } = props
44
42
 
45
43
  const checkRef = useRef(null)
46
- const ariaProps = buildAriaProps(aria)
47
44
  const dataProps = buildDataProps(data)
48
- const htmlProps = buildHtmlProps(htmlOptions)
49
-
45
+ const ariaProps = buildAriaProps(aria)
50
46
  const classes = classnames(
51
47
  buildCss('pb_checkbox_kit', checked ? 'checked' : null, error ? 'error' : null, indeterminate? 'indeterminate' : null),
52
48
  globalProps(props),
@@ -80,7 +76,6 @@ const Checkbox = (props: CheckboxProps): JSX.Element => {
80
76
  <label
81
77
  {...ariaProps}
82
78
  {...dataProps}
83
- {...htmlProps}
84
79
  className={classes}
85
80
  id={id}
86
81
  >
@@ -9,7 +9,7 @@ import { highchartsTheme } from "../pb_dashboard/pbChartsLightTheme";
9
9
  import { highchartsDarkTheme } from "../pb_dashboard/pbChartsDarkTheme";
10
10
  import mapColors from "../pb_dashboard/pbChartsColorsHelper";
11
11
  import { globalProps } from "../utilities/globalProps";
12
- import { buildAriaProps, buildDataProps, buildHtmlProps } from "../utilities/props";
12
+ import { buildAriaProps, buildDataProps } from "../utilities/props";
13
13
 
14
14
  type CircleChartProps = {
15
15
  align?: "left" | "right" | "center";
@@ -23,7 +23,6 @@ type CircleChartProps = {
23
23
  dataLabelHtml?: string;
24
24
  dataLabels?: boolean;
25
25
  height?: string;
26
- htmlOptions?: { [key: string]: string | number | boolean | Function };
27
26
  id?: string;
28
27
  innerSize?: "sm" | "md" | "lg" | "none";
29
28
  legend?: boolean;
@@ -72,7 +71,6 @@ const CircleChart = ({
72
71
  dataLabelHtml = "<div>{point.name}</div>",
73
72
  dataLabels = false,
74
73
  height,
75
- htmlOptions = {},
76
74
  id,
77
75
  innerSize = "md",
78
76
  legend = false,
@@ -91,8 +89,7 @@ const CircleChart = ({
91
89
  ...props
92
90
  }: CircleChartProps) => {
93
91
  const ariaProps = buildAriaProps(aria);
94
- const dataProps = buildDataProps(data)
95
- const htmlProps = buildHtmlProps(htmlOptions);
92
+ const dataProps = buildDataProps(data);
96
93
  highchartsMore(Highcharts);
97
94
 
98
95
  const setupTheme = () => {
@@ -185,7 +182,6 @@ const CircleChart = ({
185
182
  id: id,
186
183
  ...ariaProps,
187
184
  ...dataProps,
188
- ...htmlProps,
189
185
  }}
190
186
  highcharts={Highcharts}
191
187
  options={options}
@@ -199,7 +195,6 @@ const CircleChart = ({
199
195
  id: id,
200
196
  ...ariaProps,
201
197
  ...dataProps,
202
- ...htmlProps,
203
198
  }}
204
199
  highcharts={Highcharts}
205
200
  options={options}
@@ -1,6 +1,8 @@
1
1
  import React from 'react'
2
2
  import classnames from 'classnames'
3
- import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps, noop } from '../utilities/props'
3
+ import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
4
+
5
+ import { noop } from '../utilities/props'
4
6
  import { globalProps } from '../utilities/globalProps'
5
7
 
6
8
  import Button from '../pb_button/_button'
@@ -13,7 +15,6 @@ type CircleIconButtonProps = {
13
15
  data?: { [key: string]: string },
14
16
  disabled?: boolean,
15
17
  icon: string,
16
- htmlOptions?: {[key: string]: string | number | boolean | Function},
17
18
  id?: string,
18
19
  link?: string,
19
20
  onClick?: React.MouseEventHandler<HTMLElement>,
@@ -29,7 +30,6 @@ const CircleIconButton = (props: CircleIconButtonProps): React.ReactElement => {
29
30
  dark,
30
31
  data = {},
31
32
  disabled,
32
- htmlOptions = {},
33
33
  icon,
34
34
  id,
35
35
  onClick = noop,
@@ -41,7 +41,6 @@ const CircleIconButton = (props: CircleIconButtonProps): React.ReactElement => {
41
41
 
42
42
  const ariaProps = buildAriaProps(aria)
43
43
  const dataProps = buildDataProps(data)
44
- const htmlProps = buildHtmlProps(htmlOptions)
45
44
  const classes = classnames(
46
45
  buildCss('pb_circle_icon_button_kit'),
47
46
  globalProps(props),
@@ -52,7 +51,6 @@ const CircleIconButton = (props: CircleIconButtonProps): React.ReactElement => {
52
51
  <div
53
52
  {...ariaProps}
54
53
  {...dataProps}
55
- {...htmlProps}
56
54
  className={classes}
57
55
  id={id}
58
56
  >