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
@@ -1,13 +1,11 @@
1
1
  import React from 'react'
2
2
  import classnames from 'classnames'
3
3
  import { globalProps } from '../utilities/globalProps'
4
- import { buildHtmlProps } from '../utilities/props'
5
4
 
6
5
  type DistributionBarProps = {
7
6
  className?: string,
8
7
  colors: [],
9
8
  data?: string,
10
- htmlOptions?: {[key: string]: string | number | boolean | Function},
11
9
  id?: string,
12
10
  size?: "lg" | "sm",
13
11
  widths?: number[],
@@ -35,19 +33,14 @@ const barValues = (normalizedValues: number[], colors: []) => {
35
33
 
36
34
  const DistributionBar = (props: DistributionBarProps) => {
37
35
  const {
38
- htmlOptions = {},
39
36
  size = 'lg',
40
37
  widths = [1],
41
38
  colors = [],
42
39
  } = props
43
40
  const normalizedValues = normalizeCharacters(widths)
44
- const htmlProps = buildHtmlProps(htmlOptions)
45
41
 
46
42
  return (
47
- <div
48
- className={classnames(`pb_distribution_bar_${size}`, globalProps(props))}
49
- {...htmlProps}
50
- >
43
+ <div className={classnames(`pb_distribution_bar_${size}`, globalProps(props))}>
51
44
  {barValues(normalizedValues, colors)}
52
45
  </div>
53
46
  )
@@ -2,7 +2,7 @@ import React, { useEffect, useCallback, useRef } from 'react'
2
2
  import { useDropzone, DropzoneInputProps, DropzoneRootProps } from 'react-dropzone'
3
3
  import classnames from 'classnames'
4
4
 
5
- import { buildCss, buildDataProps, noop, buildHtmlProps } from '../utilities/props'
5
+ import { buildCss, buildDataProps, noop } from '../utilities/props'
6
6
  import { globalProps } from '../utilities/globalProps'
7
7
  import type { Callback } from '../types'
8
8
 
@@ -14,7 +14,6 @@ type FileUploadProps = {
14
14
  className?: string,
15
15
  customMessage?: string,
16
16
  data?: {[key: string]: string | number},
17
- htmlOptions?: {[key: string]: string | number | boolean | Function},
18
17
  acceptedFilesDescription?: string,
19
18
  maxSize?: number,
20
19
  onFilesAccepted: Callback<File, File>,
@@ -32,7 +31,6 @@ const FileUpload = (props: FileUploadProps): React.ReactElement => {
32
31
  className,
33
32
  customMessage,
34
33
  data = {},
35
- htmlOptions = {},
36
34
  maxSize,
37
35
  onFilesAccepted = noop,
38
36
  onFilesRejected = noop,
@@ -78,8 +76,7 @@ const FileUpload = (props: FileUploadProps): React.ReactElement => {
78
76
  })
79
77
  }
80
78
 
81
- const dataProps = buildDataProps(data)
82
- const htmlProps = buildHtmlProps(htmlOptions)
79
+ const dataProps = buildDataProps(data)
83
80
 
84
81
  const getDescription = () => {
85
82
  return customMessage
@@ -91,7 +88,6 @@ const FileUpload = (props: FileUploadProps): React.ReactElement => {
91
88
  <div
92
89
  className={classnames(buildCss('pb_file_upload_kit'), globalProps(props), className)}
93
90
  {...dataProps}
94
- {...htmlProps}
95
91
  {...getRootProps()}
96
92
  >
97
93
  <Card>
@@ -2,7 +2,6 @@ import React, { useEffect, useState } from "react";
2
2
  import classnames from "classnames";
3
3
 
4
4
  import { globalProps } from "../utilities/globalProps";
5
- import { buildHtmlProps } from '../utilities/props'
6
5
 
7
6
  import Icon from "../pb_icon/_icon";
8
7
  import Title from "../pb_title/_title";
@@ -21,7 +20,6 @@ type FixedConfirmationToastProps = {
21
20
  closeable?: boolean,
22
21
  data?: string,
23
22
  horizontal?: "right" | "left" | "center",
24
- htmlOptions?: {[key: string]: string | number | boolean | Function},
25
23
  id?: string,
26
24
  multiLine?: boolean,
27
25
  onClose?: () => void,
@@ -39,7 +37,6 @@ const FixedConfirmationToast = (props: FixedConfirmationToastProps) => {
39
37
  className,
40
38
  closeable = false,
41
39
  horizontal,
42
- htmlOptions = {},
43
40
  multiLine = false,
44
41
  onClose = () => { },
45
42
  open = true,
@@ -56,8 +53,6 @@ const FixedConfirmationToast = (props: FixedConfirmationToastProps) => {
56
53
  );
57
54
  const icon = iconMap[status];
58
55
 
59
- const htmlProps = buildHtmlProps(htmlOptions);
60
-
61
56
  const autoCloseToast = () => {
62
57
  if (autoClose && open) {
63
58
  setTimeout(() => {
@@ -80,7 +75,7 @@ const FixedConfirmationToast = (props: FixedConfirmationToastProps) => {
80
75
  return (
81
76
  <>
82
77
  {showToast && (
83
- <div className={css} onClick={handleClick} {...htmlProps}>
78
+ <div className={css} onClick={handleClick}>
84
79
  {icon && <Icon className="pb_icon" fixedWidth icon={icon} />}
85
80
 
86
81
  {
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import classnames from 'classnames'
3
- import { buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
3
+ import { buildCss, buildDataProps } from '../utilities/props'
4
4
  import { GlobalProps, globalProps } from '../utilities/globalProps'
5
5
  import { Sizes } from '../types'
6
6
 
@@ -10,7 +10,6 @@ type FlexProps = {
10
10
  data?: object,
11
11
  horizontal?: "left" | "center" | "right" | "stretch" | "none",
12
12
  justify?: "start" | "center" | "end" | "around" | "between" | "evenly" | "none",
13
- htmlOptions?: {[key: string]: string | number | boolean | Function},
14
13
  id?: string,
15
14
  inline?: boolean,
16
15
  orientation?: "row" | "column",
@@ -33,7 +32,6 @@ const Flex = (props: FlexProps) => {
33
32
  data = {},
34
33
  inline = false,
35
34
  horizontal = 'left',
36
- htmlOptions = {},
37
35
  justify = 'none',
38
36
  orientation = 'row',
39
37
  spacing = 'none',
@@ -60,8 +58,6 @@ const Flex = (props: FlexProps) => {
60
58
  const reverseClass = reverse === true ? 'reverse' : ''
61
59
  const alignSelfClass = alignSelf !== 'none' ? `align_self_${alignSelf}` : ''
62
60
  const dataProps = buildDataProps(data)
63
- const htmlProps = buildHtmlProps(htmlOptions)
64
-
65
61
 
66
62
  return (
67
63
  <div
@@ -84,7 +80,6 @@ const Flex = (props: FlexProps) => {
84
80
  className
85
81
  )}
86
82
  {...dataProps}
87
- {...htmlProps}
88
83
  >
89
84
  {children}
90
85
  </div>
@@ -1,12 +1,11 @@
1
1
  import React from 'react'
2
2
  import classnames from 'classnames'
3
- import { buildCss, buildHtmlProps } from '../utilities/props'
3
+ import { buildCss } from '../utilities/props'
4
4
  import { globalProps, GlobalProps } from '../utilities/globalProps'
5
5
  type FlexItemPropTypes = {
6
6
  children: React.ReactNode[] | React.ReactNode,
7
7
  fixedSize?: string,
8
8
  grow?: boolean,
9
- htmlOptions?: { [key: string]: string | number | boolean | Function },
10
9
  shrink?: boolean,
11
10
  className?: string,
12
11
  order?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 'first' | 'none',
@@ -20,7 +19,6 @@ const FlexItem = (props: FlexItemPropTypes): React.ReactElement => {
20
19
  className,
21
20
  fixedSize,
22
21
  grow,
23
- htmlOptions = {},
24
22
  shrink,
25
23
  flex = 'none',
26
24
  order = 'none',
@@ -36,11 +34,8 @@ const FlexItem = (props: FlexItemPropTypes): React.ReactElement => {
36
34
  fixedSize !== undefined ? { flexBasis: `${fixedSize}` } : null
37
35
  const orderClass = order !== 'none' ? `order_${order}` : null
38
36
 
39
- const htmlProps = buildHtmlProps(htmlOptions)
40
-
41
37
  return (
42
38
  <div
43
- {...htmlProps}
44
39
  className={classnames(buildCss('pb_flex_item_kit', growClass, shrinkClass, flexClass, displayFlexClass), orderClass, alignSelfClass, globalProps(props), className)}
45
40
  style={fixedStyle}
46
41
  >
@@ -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 { globalProps } from '../utilities/globalProps'
5
5
 
6
6
  type FormGroupProps = {
@@ -9,7 +9,6 @@ type FormGroupProps = {
9
9
  className?: string,
10
10
  data?: object,
11
11
  fullWidth?: boolean,
12
- htmlOptions?: {[key: string]: string | number | boolean | Function},
13
12
  id?: string,
14
13
  }
15
14
 
@@ -19,20 +18,17 @@ const FormGroup = (props: FormGroupProps) => {
19
18
  className,
20
19
  data = {},
21
20
  fullWidth = false,
22
- htmlOptions = {},
23
21
  id,
24
22
  children,
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(buildCss('pb_form_group_kit', { full: fullWidth }), globalProps(props), className)
31
28
  return (
32
29
  <div
33
30
  {...ariaProps}
34
31
  {...dataProps}
35
- {...htmlProps}
36
32
  className={classes}
37
33
  id={id}
38
34
  >
@@ -5,11 +5,9 @@ import Title from '../pb_title/_title'
5
5
  import Icon from '../pb_icon/_icon'
6
6
  import Avatar from '../pb_avatar/_avatar'
7
7
  import { globalProps, GlobalProps } from '../utilities/globalProps'
8
- import { buildHtmlProps } from '../utilities/props'
9
8
 
10
9
  type FormPillProps = {
11
10
  className?: string,
12
- htmlOptions?: {[key: string]: string | number | boolean | Function},
13
11
  id?: string,
14
12
  text: string,
15
13
  name?: string,
@@ -27,7 +25,6 @@ type FormPillProps = {
27
25
  const FormPill = (props: FormPillProps) => {
28
26
  const {
29
27
  className,
30
- htmlOptions = {},
31
28
  id,
32
29
  text,
33
30
  name,
@@ -44,11 +41,8 @@ const FormPill = (props: FormPillProps) => {
44
41
  size === 'small' ? 'small' : null,
45
42
  textTransform,
46
43
  )
47
-
48
- const htmlProps = buildHtmlProps(htmlOptions)
49
-
50
44
  return (
51
- <div className={css} id={id} {...htmlProps}>
45
+ <div className={css} id={id}>
52
46
  {name &&
53
47
  <>
54
48
  <Avatar
@@ -10,7 +10,7 @@ import solidGauge from "highcharts/modules/solid-gauge";
10
10
  import defaultColors from "../tokens/exports/_colors.scss";
11
11
  import typography from "../tokens/exports/_typography.scss";
12
12
 
13
- import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from "../utilities/props";
13
+ import { buildAriaProps, buildCss, buildDataProps } from "../utilities/props";
14
14
  import { globalProps } from "../utilities/globalProps";
15
15
 
16
16
  type GaugeProps = {
@@ -22,7 +22,6 @@ type GaugeProps = {
22
22
  disableAnimation?: boolean;
23
23
  fullCircle?: boolean;
24
24
  height?: string;
25
- htmlOptions?: {[key: string]: string | number | boolean | Function},
26
25
  id?: string;
27
26
  max?: number;
28
27
  min?: number;
@@ -46,7 +45,6 @@ const Gauge = ({
46
45
  disableAnimation = false,
47
46
  fullCircle = false,
48
47
  height = null,
49
- htmlOptions = {},
50
48
  id,
51
49
  max = 100,
52
50
  min = 0,
@@ -63,8 +61,7 @@ const Gauge = ({
63
61
  ...props
64
62
  }: GaugeProps) => {
65
63
  const ariaProps = buildAriaProps(aria);
66
- const dataProps = buildDataProps(data)
67
- const htmlProps = buildHtmlProps(htmlOptions);
64
+ const dataProps = buildDataProps(data);
68
65
  highchartsMore(Highcharts);
69
66
  solidGauge(Highcharts);
70
67
  const setupTheme = () => {
@@ -195,7 +192,6 @@ const Gauge = ({
195
192
  id: id,
196
193
  ...ariaProps,
197
194
  ...dataProps,
198
- ...htmlProps,
199
195
  }}
200
196
  highcharts={Highcharts}
201
197
  options={options}
@@ -4,7 +4,7 @@
4
4
  import React from 'react'
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
 
10
10
  import Badge from '../pb_badge/_badge'
@@ -14,7 +14,6 @@ type HashtagProps = {
14
14
  className?: string,
15
15
  dark?: boolean,
16
16
  data?: string,
17
- htmlOptions?: {[key: string]: string | number | boolean | Function},
18
17
  id?: string,
19
18
  newWindow?: boolean,
20
19
  rel?: string,
@@ -36,7 +35,6 @@ const Hashtag = (props: HashtagProps) => {
36
35
  className,
37
36
  dark = false,
38
37
  data = {},
39
- htmlOptions = {},
40
38
  id,
41
39
  newWindow,
42
40
  rel,
@@ -47,14 +45,12 @@ const Hashtag = (props: HashtagProps) => {
47
45
 
48
46
  const ariaProps = buildAriaProps(aria)
49
47
  const dataProps = buildDataProps(data)
50
- const htmlProps = buildHtmlProps(htmlOptions)
51
48
  const classes = classnames(buildCss('pb_hashtag_kit'), globalProps(props), className)
52
49
 
53
50
  return (
54
51
  <span
55
52
  {...ariaProps}
56
53
  {...dataProps}
57
- {...htmlProps}
58
54
  className={classes}
59
55
  id={id}
60
56
  >
@@ -3,12 +3,10 @@ import Highlighter from 'react-highlight-words'
3
3
  import React from 'react'
4
4
  import classnames from 'classnames'
5
5
  import { globalProps, GlobalProps } from '../utilities/globalProps'
6
- import { buildHtmlProps } from '../utilities/props'
7
6
 
8
7
  type HighlightProps = {
9
8
  className?: string,
10
9
  data?: {[key: string]: string},
11
- htmlOptions?: {[key: string]: string | number | boolean | Function},
12
10
  id?: string,
13
11
  children?: React.ReactChild[] | React.ReactChild | string,
14
12
  text?: string,
@@ -21,12 +19,10 @@ const Highlight = (props: HighlightProps): React.ReactElement => {
21
19
  className = 'pb_highlight_kit',
22
20
  data = {},
23
21
  highlightedText = ['highlight'],
24
- htmlOptions = {},
25
22
  id = '',
26
23
  text = '',
27
24
  } = props
28
25
 
29
- const htmlProps = buildHtmlProps(htmlOptions)
30
26
  const highlightContent: any = text || children;
31
27
 
32
28
  return (
@@ -38,7 +34,6 @@ const Highlight = (props: HighlightProps): React.ReactElement => {
38
34
  id={id}
39
35
  searchWords={highlightedText}
40
36
  textToHighlight={highlightContent}
41
- {...htmlProps}
42
37
  />
43
38
  )
44
39
  }
@@ -7,7 +7,7 @@ import { globalProps } from '../utilities/globalProps'
7
7
  import Body from '../pb_body/_body'
8
8
  import Hashtag from '../pb_hashtag/_hashtag'
9
9
  import Title from '../pb_title/_title'
10
- import { buildAriaProps, buildDataProps, buildHtmlProps } from '../utilities/props'
10
+ import { buildAriaProps, buildDataProps } from '../utilities/props'
11
11
 
12
12
  type HomeAddressStreetProps = {
13
13
  aria?: { [key: string]: string },
@@ -18,7 +18,6 @@ type HomeAddressStreetProps = {
18
18
  data?: { [key: string]: string },
19
19
  dark?: boolean,
20
20
  emphasis: "street" | "city",
21
- htmlOptions?: {[key: string]: string | number | boolean | Function},
22
21
  homeId: string,
23
22
  houseStyle: string,
24
23
  homeUrl: string,
@@ -38,7 +37,6 @@ const HomeAddressStreet = (props: HomeAddressStreetProps) => {
38
37
  data = {},
39
38
  dark = false,
40
39
  emphasis = 'street',
41
- htmlOptions = {},
42
40
  homeId,
43
41
  homeUrl,
44
42
  newWindow,
@@ -60,14 +58,9 @@ const HomeAddressStreet = (props: HomeAddressStreetProps) => {
60
58
 
61
59
  const dataProps: { [key: string]: any } = buildDataProps(data)
62
60
  const ariaProps: { [key: string]: any } = buildAriaProps(aria)
63
- const htmlProps = buildHtmlProps(htmlOptions)
61
+
64
62
  return (
65
- <div
66
- className={classes(className, dark)}
67
- {...ariaProps}
68
- {...dataProps}
69
- {...htmlProps}
70
- >
63
+ <div className={classes(className, dark)} {...ariaProps} {...dataProps}>
71
64
  {emphasis == 'street' &&
72
65
  <div>
73
66
  <Title
@@ -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
 
@@ -28,7 +28,6 @@ type IconProps = {
28
28
  fixedWidth?: boolean,
29
29
  flip?: "horizontal" | "vertical" | "both" | "none",
30
30
  icon: string,
31
- htmlOptions?: {[key: string]: string | number | boolean | Function},
32
31
  id?: string,
33
32
  inverse?: boolean,
34
33
  listItem?: boolean,
@@ -56,7 +55,6 @@ const Icon = (props: IconProps) => {
56
55
  data = {},
57
56
  fixedWidth = true,
58
57
  flip = "none",
59
- htmlOptions = {},
60
58
  icon,
61
59
  id,
62
60
  inverse = false,
@@ -106,7 +104,6 @@ const Icon = (props: IconProps) => {
106
104
  aria.label ? null : aria.label = `${icon} icon`
107
105
  const ariaProps: {[key: string]: any} = buildAriaProps(aria)
108
106
  const dataProps: {[key: string]: any} = buildDataProps(data)
109
- const htmlProps = buildHtmlProps(htmlOptions)
110
107
 
111
108
  // Add a conditional here to show only the SVG if custom
112
109
  const displaySVG = (customIcon: any) => {
@@ -116,7 +113,6 @@ const Icon = (props: IconProps) => {
116
113
  {
117
114
  React.cloneElement(customIcon, {
118
115
  ...dataProps,
119
- ...htmlProps,
120
116
  className: classes,
121
117
  id,
122
118
  })
@@ -128,7 +124,6 @@ const Icon = (props: IconProps) => {
128
124
  <>
129
125
  <span
130
126
  {...dataProps}
131
- {...htmlProps}
132
127
  className={classesEmoji}
133
128
  id={id}
134
129
  >
@@ -142,7 +137,6 @@ const Icon = (props: IconProps) => {
142
137
  <>
143
138
  <i
144
139
  {...dataProps}
145
- {...htmlProps}
146
140
  className={classes}
147
141
  id={id}
148
142
  />
@@ -2,7 +2,7 @@ import React from 'react'
2
2
 
3
3
  import classnames from 'classnames'
4
4
 
5
- import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
5
+ import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
6
6
  import { globalProps } from '../utilities/globalProps'
7
7
 
8
8
  import Icon from '../pb_icon/_icon'
@@ -13,7 +13,6 @@ type IconCircleProps = {
13
13
  dark?: boolean,
14
14
  data?: {[key:string]: string},
15
15
  icon: string,
16
- htmlOptions?: {[key: string]: string | number | boolean | Function},
17
16
  id?: string,
18
17
  size?: "base" | "xs" | "sm" | "md" | "lg" | "xl",
19
18
  variant?: | "default"
@@ -33,7 +32,6 @@ const IconCircle = (props: IconCircleProps) => {
33
32
  className,
34
33
  dark = false,
35
34
  data = {},
36
- htmlOptions = {},
37
35
  icon,
38
36
  id,
39
37
  size = 'md',
@@ -42,7 +40,6 @@ const IconCircle = (props: IconCircleProps) => {
42
40
 
43
41
  const ariaProps = buildAriaProps(aria)
44
42
  const dataProps = buildDataProps(data)
45
- const htmlProps = buildHtmlProps(htmlOptions)
46
43
  const classes = classnames(buildCss('pb_icon_circle_kit', size, variant), globalProps(props), className)
47
44
 
48
45
 
@@ -50,7 +47,6 @@ const IconCircle = (props: IconCircleProps) => {
50
47
  <div
51
48
  {...ariaProps}
52
49
  {...dataProps}
53
- {...htmlProps}
54
50
  className={classes}
55
51
  id={id}
56
52
  >
@@ -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 { globalProps } from '../utilities/globalProps'
6
6
 
7
7
  import Body from '../pb_body/_body'
@@ -16,7 +16,6 @@ type IconStatValueProps = {
16
16
  data?: object,
17
17
  dark?: boolean,
18
18
  icon: string,
19
- htmlOptions?: {[key: string]: string | number | boolean | Function},
20
19
  id?: string,
21
20
  orientation?: "vertical" | "horizontal",
22
21
  size?: "sm" | "md" | "lg",
@@ -40,7 +39,6 @@ const IconStatValue = (props: IconStatValueProps) => {
40
39
  className,
41
40
  data = {},
42
41
  dark = false,
43
- htmlOptions = {},
44
42
  icon,
45
43
  id,
46
44
  orientation = 'horizontal',
@@ -52,7 +50,6 @@ const IconStatValue = (props: IconStatValueProps) => {
52
50
  } = props
53
51
  const ariaProps = buildAriaProps(aria)
54
52
  const dataProps = buildDataProps(data)
55
- const htmlProps = buildHtmlProps(htmlOptions)
56
53
  const classes = classnames(
57
54
  buildCss('pb_icon_stat_value_kit', orientation, size, variant), globalProps(props),
58
55
  className
@@ -92,7 +89,6 @@ const IconStatValue = (props: IconStatValueProps) => {
92
89
  <div
93
90
  {...ariaProps}
94
91
  {...dataProps}
95
- {...htmlProps}
96
92
  className={classes}
97
93
  id={id}
98
94
  >
@@ -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 { globalProps } from '../utilities/globalProps'
6
6
 
7
7
  import Body from '../pb_body/_body'
@@ -14,7 +14,6 @@ type IconValueProps = {
14
14
  dark?: boolean,
15
15
  data?: object,
16
16
  icon: string,
17
- htmlOptions?: {[key: string]: string | number | boolean | Function},
18
17
  id?: string,
19
18
  text: string,
20
19
  }
@@ -26,14 +25,12 @@ const IconValue = (props: IconValueProps) => {
26
25
  className,
27
26
  dark,
28
27
  data = {},
29
- htmlOptions = {},
30
28
  icon,
31
29
  id,
32
30
  text,
33
31
  } = props
34
32
  const ariaProps = buildAriaProps(aria)
35
33
  const dataProps = buildDataProps(data)
36
- const htmlProps = buildHtmlProps(htmlOptions)
37
34
  const classes = classnames(
38
35
  buildCss('pb_icon_value_kit', align),
39
36
  globalProps(props),
@@ -44,7 +41,6 @@ const IconValue = (props: IconValueProps) => {
44
41
  <div
45
42
  {...ariaProps}
46
43
  {...dataProps}
47
- {...htmlProps}
48
44
  className={classes}
49
45
  id={id}
50
46
  >
@@ -1,14 +1,13 @@
1
1
  import React from 'react'
2
2
  import classnames from 'classnames'
3
3
  import { GlobalProps, globalProps } from '../utilities/globalProps'
4
- import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
4
+ import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
5
5
 
6
6
  type ImageType = {
7
7
  alt?: string,
8
8
  aria?: {[key: string]: string},
9
9
  className?: string,
10
10
  data?: {[key: string]: string},
11
- htmlOptions?: {[key: string]: string | number | boolean | Function},
12
11
  id?: string,
13
12
  onError?: () => void,
14
13
  size?: "xs" | "sm" | "md" | "lg" | "xl",
@@ -23,7 +22,6 @@ const Image = (props: ImageType): React.ReactElement => {
23
22
  aria = {},
24
23
  className,
25
24
  data = {},
26
- htmlOptions = {},
27
25
  id,
28
26
  onError = null,
29
27
  rounded = false,
@@ -42,14 +40,11 @@ const Image = (props: ImageType): React.ReactElement => {
42
40
  className
43
41
  )
44
42
  const dataProps = buildDataProps(data)
45
- const htmlProps = buildHtmlProps(htmlOptions)
46
-
47
43
 
48
44
  return (
49
45
  <img
50
46
  {...ariaProps}
51
47
  {...dataProps}
52
- {...htmlProps}
53
48
  alt={alt}
54
49
  className={classes}
55
50
  data-src={url}
@@ -2,7 +2,7 @@ import React from 'react'
2
2
  import classnames from 'classnames'
3
3
  import { globalProps } from '../utilities/globalProps'
4
4
 
5
- import { buildAriaProps, buildDataProps, buildHtmlProps } from '../utilities/props'
5
+ import { buildAriaProps, buildDataProps } from '../utilities/props'
6
6
 
7
7
  import Pill from '../pb_pill/_pill'
8
8
  import Caption from '../pb_caption/_caption'
@@ -11,7 +11,6 @@ type LabelPillProps = {
11
11
  aria?: {[key: string]:string},
12
12
  className?: string,
13
13
  data?: {[key: string]:string},
14
- htmlOptions?: {[key: string]: string | number | boolean | Function},
15
14
  id?: string,
16
15
  label?: string,
17
16
  pillValue?: string,
@@ -23,7 +22,6 @@ const LabelPill = (props: LabelPillProps) => {
23
22
  aria = {},
24
23
  className,
25
24
  data = {},
26
- htmlOptions = {},
27
25
  id,
28
26
  label,
29
27
  pillValue,
@@ -31,7 +29,6 @@ const LabelPill = (props: LabelPillProps) => {
31
29
  } = props
32
30
  const ariaProps = buildAriaProps(aria)
33
31
  const dataProps = buildDataProps(data)
34
- const htmlProps = buildHtmlProps(htmlOptions)
35
32
  const css = classnames(
36
33
  'pb_label_pill_kit',
37
34
  globalProps(props),
@@ -42,7 +39,6 @@ const LabelPill = (props: LabelPillProps) => {
42
39
  <div
43
40
  {...ariaProps}
44
41
  {...dataProps}
45
- {...htmlProps}
46
42
  className={css}
47
43
  id={id}
48
44
  >