playbook_ui 14.14.0.pre.rc.5 → 14.15.0.pre.rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +3 -0
  3. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +6 -5
  4. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.rb +8 -1
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_custom_cell.jsx +75 -0
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.html.erb +1 -1
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_rails.md +3 -1
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_react.md +1 -1
  9. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header.html.erb +33 -0
  10. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_rails.md +3 -0
  11. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +2 -0
  12. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +2 -1
  13. data/app/pb_kits/playbook/pb_checkbox/_checkbox.tsx +17 -8
  14. data/app/pb_kits/playbook/pb_checkbox/checkbox.test.js +16 -0
  15. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_react_hook.jsx +69 -0
  16. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_react_hook.md +1 -0
  17. data/app/pb_kits/playbook/pb_checkbox/docs/example.yml +2 -1
  18. data/app/pb_kits/playbook/pb_checkbox/docs/index.js +1 -0
  19. data/app/pb_kits/playbook/pb_currency/_currency.tsx +46 -31
  20. data/app/pb_kits/playbook/pb_currency/currency.html.erb +15 -8
  21. data/app/pb_kits/playbook/pb_currency/currency.rb +17 -2
  22. data/app/pb_kits/playbook/pb_currency/docs/_currency_null_display.html.erb +22 -0
  23. data/app/pb_kits/playbook/pb_currency/docs/_currency_null_display.jsx +34 -0
  24. data/app/pb_kits/playbook/pb_currency/docs/_currency_null_display_rails.md +1 -0
  25. data/app/pb_kits/playbook/pb_currency/docs/_currency_null_display_react.md +1 -0
  26. data/app/pb_kits/playbook/pb_currency/docs/example.yml +2 -0
  27. data/app/pb_kits/playbook/pb_currency/docs/index.js +2 -1
  28. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +1 -0
  29. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +1 -0
  30. data/app/pb_kits/playbook/pb_icon_button/_icon_button.tsx +71 -0
  31. data/app/pb_kits/playbook/pb_icon_button/docs/_icon_button_default.jsx +17 -0
  32. data/app/pb_kits/playbook/pb_icon_button/docs/_icon_button_sizes.jsx +61 -0
  33. data/app/pb_kits/playbook/pb_icon_button/docs/example.yml +4 -0
  34. data/app/pb_kits/playbook/pb_icon_button/docs/index.js +2 -0
  35. data/app/pb_kits/playbook/pb_icon_button/icon_button.test.jsx +39 -0
  36. data/app/pb_kits/playbook/pb_overlay/_overlay.tsx +4 -0
  37. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_vertical_dynamic_multi_directional.jsx +37 -0
  38. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_vertical_dynamic_multi_directional_react.md +1 -0
  39. data/app/pb_kits/playbook/pb_overlay/docs/example.yml +1 -0
  40. data/app/pb_kits/playbook/pb_overlay/docs/index.js +1 -0
  41. data/app/pb_kits/playbook/pb_overlay/subcomponents/_overlay_token.tsx +48 -10
  42. data/app/pb_kits/playbook/pb_progress_pills/progress_pills.html.erb +1 -6
  43. data/app/pb_kits/playbook/pb_progress_simple/progress_simple.html.erb +1 -5
  44. data/app/pb_kits/playbook/pb_progress_step/progress_step.html.erb +1 -5
  45. data/app/pb_kits/playbook/pb_progress_step/progress_step_item.html.erb +3 -7
  46. data/app/pb_kits/playbook/pb_radio/radio.html.erb +6 -11
  47. data/app/pb_kits/playbook/pb_tooltip/index.js +1 -1
  48. data/dist/chunks/{_typeahead-CAIQfP7X.js → _typeahead-PqkcDf1H.js} +2 -2
  49. data/dist/chunks/_weekday_stacked-BrSrpj7J.js +45 -0
  50. data/dist/chunks/vendor.js +1 -1
  51. data/dist/menu.yml +1 -1
  52. data/dist/playbook-doc.js +1 -1
  53. data/dist/playbook-rails-react-bindings.js +1 -1
  54. data/dist/playbook-rails.js +1 -1
  55. data/dist/playbook.css +1 -1
  56. data/lib/playbook/forms/builder/time_zone_select_field.rb +19 -0
  57. data/lib/playbook/forms/builder.rb +1 -0
  58. data/lib/playbook/version.rb +2 -2
  59. metadata +21 -4
  60. data/dist/chunks/_weekday_stacked-DstwbGUv.js +0 -45
@@ -0,0 +1,34 @@
1
+ import React from 'react'
2
+ import { Currency } from 'playbook-ui'
3
+
4
+ const CurrencyNullDisplay = (props) => {
5
+ return (
6
+ <>
7
+ <Currency
8
+ amount=""
9
+ label="Null"
10
+ marginBottom="md"
11
+ nullDisplay="--"
12
+ {...props}
13
+ />
14
+
15
+ <Currency
16
+ amount=""
17
+ label="Null"
18
+ marginBottom="md"
19
+ nullDisplay="$0.00"
20
+ {...props}
21
+ />
22
+
23
+ <Currency
24
+ amount=""
25
+ label="Null"
26
+ marginBottom="md"
27
+ nullDisplay=" "
28
+ {...props}
29
+ />
30
+ </>
31
+ )
32
+ }
33
+
34
+ export default CurrencyNullDisplay
@@ -0,0 +1 @@
1
+ To customize how the `amount` field appears when it is empty, use the `null_display` prop and set it to the desired value you want to display.
@@ -0,0 +1 @@
1
+ To customize how the `amount` field appears when it is empty, use the `nullDisplay` prop and set it to the desired value you want to display.
@@ -10,6 +10,7 @@ examples:
10
10
  - currency_unstyled: Unstyled
11
11
  - currency_comma_separator: Comma Separator
12
12
  - currency_negative: Negative
13
+ - currency_null_display: Null Display
13
14
 
14
15
  react:
15
16
  - currency_variants: Variants
@@ -21,6 +22,7 @@ examples:
21
22
  - currency_unstyled: Unstyled
22
23
  - currency_comma_separator: Comma Separator
23
24
  - currency_negative: Negative
25
+ - currency_null_display: Null Display
24
26
 
25
27
  swift:
26
28
  - currency_size_swift: Size
@@ -6,4 +6,5 @@ export { default as CurrencyAbbreviated } from './_currency_abbreviated.jsx'
6
6
  export { default as CurrencyMatchingDecimals } from './_currency_matching_decimals.jsx'
7
7
  export { default as CurrencyUnstyled } from './_currency_unstyled.jsx'
8
8
  export { default as CurrencyCommaSeparator } from './_currency_comma_separator.jsx'
9
- export { default as CurrencyNegative } from './_currency_negative.jsx'
9
+ export { default as CurrencyNegative } from './_currency_negative.jsx'
10
+ export { default as CurrencyNullDisplay } from './_currency_null_display.jsx'
@@ -46,6 +46,7 @@
46
46
  %>
47
47
  <%= form.date_picker :example_date_picker_1, props: { label: true } %>
48
48
  <%= form.star_rating_field :example_star_rating, props: { variant: "interactive", label: true } %>
49
+ <%= form.time_zone_select_field :example_time_zone_select, ActiveSupport::TimeZone.us_zones, { default: "Eastern Time (US & Canada)" }, props: { label: true } %>
49
50
 
50
51
  <%= form.actions do |action| %>
51
52
  <%= action.submit %>
@@ -37,6 +37,7 @@
37
37
  <%= form.check_box :example_checkbox, props: { text: "Example Checkbox", label: true, required: true } %>
38
38
  <%= form.date_picker :example_date_picker_2, props: { label: true, required: true } %>
39
39
  <%= form.star_rating_field :example_star_rating_validation, props: { variant: "interactive", label: true, required: true } %>
40
+ <%= form.time_zone_select_field :example_time_zone_select, ActiveSupport::TimeZone.us_zones, { default: "Eastern Time (US & Canada)" }, props: { label: true, blank_selection: "Select a Time Zone...", required: true } %>
40
41
 
41
42
  <%= form.actions do |action| %>
42
43
  <%= action.submit %>
@@ -0,0 +1,71 @@
1
+
2
+ import React from 'react'
3
+ import classnames from 'classnames'
4
+ import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
5
+ import { globalProps } from '../utilities/globalProps'
6
+
7
+ import Button from '../pb_button/_button'
8
+ import Icon from '../pb_icon/_icon'
9
+ import { IconSizes } from "../pb_icon/_icon"
10
+
11
+ type IconButtonProps = {
12
+ aria?: { [key: string]: string },
13
+ className?: string,
14
+ data?: { [key: string]: string },
15
+ htmlType?: 'submit' | 'reset' | 'button' | undefined,
16
+ icon?: string,
17
+ id?: string,
18
+ link?: string,
19
+ newWindow?: boolean,
20
+ size?: IconSizes,
21
+ target?: string,
22
+ variant?: 'default' | 'link',
23
+ }
24
+
25
+ const IconButton = (props: IconButtonProps) => {
26
+ const {
27
+ aria = {},
28
+ className,
29
+ data = {},
30
+ htmlType = 'button',
31
+ icon = 'bars',
32
+ id,
33
+ link,
34
+ newWindow = false,
35
+ size = "2x",
36
+ target,
37
+ variant = "default",
38
+ } = props
39
+
40
+ const ariaProps = buildAriaProps(aria)
41
+ const dataProps = buildDataProps(data)
42
+ const classes = classnames(buildCss('pb_icon_button_kit', variant), globalProps(props), className)
43
+
44
+ return (
45
+ <div
46
+ {...ariaProps}
47
+ {...dataProps}
48
+ className={classes}
49
+ id={id}
50
+ >
51
+ <Button
52
+ borderRadius="lg"
53
+ htmlType={htmlType}
54
+ link={link}
55
+ newWindow={newWindow}
56
+ target={target}
57
+ >
58
+ <Icon
59
+ className="icon_button_icon"
60
+ fixedWidth
61
+ icon={icon}
62
+ paddingX="xxs"
63
+ paddingY="xs"
64
+ size={size}
65
+ />
66
+ </Button>
67
+ </div>
68
+ )
69
+ }
70
+
71
+ export default IconButton
@@ -0,0 +1,17 @@
1
+ import React from 'react'
2
+ import { IconButton } from 'playbook-ui'
3
+
4
+ const IconButtonDefault = (props) => (
5
+ <div>
6
+ <IconButton
7
+ {...props}
8
+ />
9
+ <IconButton
10
+ {...props}
11
+ marginTop="md"
12
+ variant="link"
13
+ />
14
+ </div>
15
+ )
16
+
17
+ export default IconButtonDefault
@@ -0,0 +1,61 @@
1
+ import React from 'react'
2
+ import { IconButton, Flex } from 'playbook-ui'
3
+
4
+ const IconButtonSizes = (props) => (
5
+ <div>
6
+ <Flex align="center">
7
+ <IconButton
8
+ {...props}
9
+ size="lg"
10
+ />
11
+ <span>Large</span>
12
+ </Flex>
13
+ <Flex align="center">
14
+ <IconButton
15
+ {...props}
16
+ size="sm"
17
+ />
18
+ <span>Small</span>
19
+ </Flex>
20
+ <Flex align="center">
21
+ <IconButton
22
+ {...props}
23
+ size="xs"
24
+ />
25
+ <span>XSmall</span>
26
+ </Flex>
27
+ <Flex
28
+ align="center"
29
+ marginTop="md"
30
+ >
31
+ <IconButton
32
+ {...props}
33
+ size="1x"
34
+ />
35
+ <span>1x</span>
36
+ </Flex>
37
+ <Flex align="center">
38
+ <IconButton
39
+ {...props}
40
+ size="2x"
41
+ />
42
+ <span>2x</span>
43
+ </Flex>
44
+ <Flex align="center">
45
+ <IconButton
46
+ {...props}
47
+ size="3x"
48
+ />
49
+ <span>3x</span>
50
+ </Flex>
51
+ <Flex align="center">
52
+ <IconButton
53
+ {...props}
54
+ size="4x"
55
+ />
56
+ <span>4x</span>
57
+ </Flex>
58
+ </div>
59
+ )
60
+
61
+ export default IconButtonSizes
@@ -3,3 +3,7 @@ examples:
3
3
  rails:
4
4
  - icon_button_default: Default
5
5
  - icon_button_sizes: Sizes
6
+
7
+ react:
8
+ - icon_button_default: Default
9
+ - icon_button_sizes: Sizes
@@ -0,0 +1,2 @@
1
+ export { default as IconButtonDefault } from './_icon_button_default.jsx'
2
+ export { default as IconButtonSizes } from './_icon_button_sizes.jsx'
@@ -0,0 +1,39 @@
1
+ import { ensureAccessible, renderKit } from '../utilities/test-utils'
2
+
3
+ import { IconButton } from 'playbook-ui'
4
+
5
+ const props = {
6
+ data: { testid: 'default', icon: 'plus' }
7
+ }
8
+
9
+ test('default test', () => {
10
+ const kit = renderKit(IconButton, props)
11
+
12
+ expect(kit).toBeInTheDocument()
13
+ expect(kit).toHaveClass('pb_icon_button_kit_default')
14
+
15
+ const iconElement = kit.querySelector('.icon_button_icon')
16
+ expect(iconElement).toBeInTheDocument()
17
+ })
18
+
19
+ it("should be accessible", async () => {
20
+ ensureAccessible(IconButton, props)
21
+ })
22
+
23
+ test('passes link variant prop', () => {
24
+ const kit = renderKit(IconButton, { ...props, variant: "link" })
25
+ expect(kit).toBeInTheDocument()
26
+ expect(kit).toHaveClass('pb_icon_button_kit_link')
27
+ })
28
+
29
+ test('should set button type to "submit" when htmlType prop is passed', () => {
30
+ const kit = renderKit(IconButton, { ...props, htmlType: 'submit' })
31
+ const buttonElement = kit.querySelector('button')
32
+ expect(buttonElement).toHaveAttribute('type', 'submit')
33
+ })
34
+
35
+ test('passes custom classname', () => {
36
+ const kit = renderKit(IconButton, { ...props, className: "extra_class" })
37
+ expect(kit).toBeInTheDocument()
38
+ expect(kit).toHaveClass('pb_icon_button_kit_default extra_class')
39
+ })
@@ -8,6 +8,7 @@ import OverlayToken from './subcomponents/_overlay_token'
8
8
  export type OverlayChildrenProps = {
9
9
  children: React.ReactNode[] | React.ReactNode,
10
10
  color: "card_light" | "bg_light" | "card_dark" | "bg_dark",
11
+ dynamic?: boolean,
11
12
  position: string,
12
13
  size: string,
13
14
  }
@@ -18,6 +19,7 @@ type OverlayProps = {
18
19
  children: React.ReactNode[] | React.ReactNode,
19
20
  color: "card_light" | "bg_light" | "card_dark" | "bg_dark",
20
21
  data?: { [key: string]: string },
22
+ dynamic?: false,
21
23
  htmlOptions?: { [key: string]: string | number | boolean | (() => void) },
22
24
  id?: string,
23
25
  layout: { [key: string]: string },
@@ -30,6 +32,7 @@ const Overlay = (props: OverlayProps) => {
30
32
  children,
31
33
  color = "card_light",
32
34
  data = {},
35
+ dynamic = false,
33
36
  htmlOptions = {},
34
37
  id,
35
38
  layout = { "bottom": "full" },
@@ -69,6 +72,7 @@ const Overlay = (props: OverlayProps) => {
69
72
  }) : OverlayToken({
70
73
  children,
71
74
  color,
75
+ dynamic: dynamic,
72
76
  position: getPosition(),
73
77
  size: getSize()
74
78
  })
@@ -0,0 +1,37 @@
1
+ import React, { forwardRef } from 'react'
2
+ import {
3
+ Overlay,
4
+ Card,
5
+ Flex,
6
+ FlexItem,
7
+ } from 'playbook-ui'
8
+
9
+ const InlineCardsExample = forwardRef(function InlineCardsExample(ref) {
10
+ return (
11
+ <Flex
12
+ columnGap="lg"
13
+ orientation="row"
14
+ ref={ref}
15
+ >
16
+ {Array.from({ length: 15 }, (_, index) => (
17
+ <FlexItem key={index}>
18
+ <Card>{"Card Content"}</Card>
19
+ </FlexItem>
20
+ ))}
21
+ </Flex>
22
+ )
23
+ })
24
+
25
+ const OverlayVerticalDynamicMultiDirectional = () => (
26
+ <>
27
+ <Overlay
28
+ color="card_light"
29
+ dynamic
30
+ layout={{"x": "xl"}}
31
+ >
32
+ <InlineCardsExample />
33
+ </Overlay>
34
+ </>
35
+ )
36
+
37
+ export default OverlayVerticalDynamicMultiDirectional
@@ -0,0 +1 @@
1
+ Pass the `dynamic` prop to make the overlay render while the scrollbar isn't at either end on the scrollbar. You must also add a `ref` to the child that's being passed through the Overlay.
@@ -2,6 +2,7 @@ examples:
2
2
  react:
3
3
  - overlay_default: Default
4
4
  - overlay_multi_directional: Multi-directional
5
+ - overlay_vertical_dynamic_multi_directional: Vertical Dynamic Multi-directional
5
6
  - overlay_toggle: Toggle
6
7
 
7
8
  rails:
@@ -1,3 +1,4 @@
1
1
  export { default as OverlayDefault } from './_overlay_default.jsx'
2
2
  export { default as OverlayMultiDirectional } from './_overlay_multi_directional.jsx'
3
3
  export { default as OverlayToggle } from './_overlay_toggle.jsx'
4
+ export { default as OverlayVerticalDynamicMultiDirectional } from './_overlay_vertical_dynamic_multi_directional.jsx'
@@ -1,5 +1,5 @@
1
- import React from 'react'
2
- import { OverlayChildrenProps } from '../_overlay'
1
+ import React, { useRef, useEffect, useState } from 'react';
2
+ import { OverlayChildrenProps } from '../_overlay';
3
3
 
4
4
  const previousOverlayDirectionMap: { [key: string]: string } = {
5
5
  "x": "left",
@@ -15,11 +15,40 @@ const OverlayToken = (props: OverlayChildrenProps) => {
15
15
  const {
16
16
  children,
17
17
  color,
18
+ dynamic,
18
19
  position,
19
20
  size,
20
21
  } = props
21
22
 
22
- const hasSubsequentOverlay = position === "x" || position === "y"
23
+ const scrollContainerRef = useRef<HTMLDivElement>(null);
24
+ const [isAtStart, setIsAtStart] = useState(true);
25
+ const [isAtEnd, setIsAtEnd] = useState(false);
26
+
27
+
28
+ const handleScroll = () => {
29
+ const container = scrollContainerRef.current;
30
+ if (container) {
31
+ const { scrollLeft, scrollWidth, clientWidth } = container;
32
+ const atStart = scrollLeft === 0;
33
+ const atEnd = scrollLeft + clientWidth >= scrollWidth - 1;
34
+
35
+ setIsAtStart(atStart);
36
+ setIsAtEnd(atEnd);
37
+ }
38
+ };
39
+
40
+ useEffect(() => {
41
+ const container = scrollContainerRef.current;
42
+ if (container) {
43
+ container.addEventListener('scroll', handleScroll);
44
+ handleScroll();
45
+ return () => {
46
+ container.removeEventListener('scroll', handleScroll);
47
+ };
48
+ }
49
+ }, []);
50
+
51
+ const hasSubsequentOverlay = position === "x" || position === "y";
23
52
 
24
53
  const getPreviousOverlayDirection = () => {
25
54
  return hasSubsequentOverlay ? previousOverlayDirectionMap[position] : position
@@ -34,15 +63,24 @@ const OverlayToken = (props: OverlayChildrenProps) => {
34
63
 
35
64
  return (
36
65
  <>
37
- <div className={previousOverlayClassName} />
38
-
39
- {children}
40
-
41
- { hasSubsequentOverlay &&
42
- <div className={subsequentOverlayClassName} />
66
+ <div className={dynamic ? isAtStart ? '' : previousOverlayClassName : previousOverlayClassName} />
67
+ {dynamic ?
68
+ <div
69
+ ref={scrollContainerRef}
70
+ style={{
71
+ overflowX: 'auto',
72
+ }}
73
+ >
74
+ {children}
75
+ </div>
76
+ :
77
+ children
78
+ }
79
+ {hasSubsequentOverlay &&
80
+ <div className={dynamic ? isAtEnd ? '' : subsequentOverlayClassName : subsequentOverlayClassName} />
43
81
  }
44
82
  </>
45
83
  )
46
84
  }
47
85
 
48
- export default OverlayToken
86
+ export default OverlayToken;
@@ -1,9 +1,4 @@
1
- <%= content_tag(:div,
2
- aria: object.aria_attributes,
3
- id: object.id,
4
- data: object.data,
5
- class: object.classname,
6
- **combined_html_options) do %>
1
+ <%= pb_content_tag do %>
7
2
 
8
3
  <div class="progress_pills_status">
9
4
  <% object.with_status do |status| %>
@@ -1,11 +1,7 @@
1
1
  <%= content_tag(:div,
2
2
  class: object.wrapper_classname,
3
3
  style: object.style) do %>
4
- <%= content_tag(:div,
5
- id: object.id,
6
- data: object.data_values,
7
- class: object.classname,
8
- **combined_html_options) do %>
4
+ <%= pb_content_tag do %>
9
5
  <%= content_tag(:div, "",
10
6
  class: "progress_simple_value",
11
7
  style: object.value_style) %>
@@ -1,7 +1,3 @@
1
- <%= content_tag(:ul,
2
- id: object.id,
3
- data: object.data,
4
- class: object.classname,
5
- **combined_html_options) do %>
1
+ <%= pb_content_tag(:ul) do %>
6
2
  <%= content.presence %>
7
3
  <% end %>
@@ -1,10 +1,6 @@
1
- <%= content_tag(:li,
2
- id: object.id,
3
- data: object.data,
4
- class: object.classname,
5
- **combined_html_options) do %>
6
- <div class="box" style="max-width: min-content;" id="<%= object.tooltip_trigger_class %>">
7
- <div class="circle">
1
+ <%= pb_content_tag(:li) do %>
2
+ <div class="box" style="max-width: min-content;">
3
+ <div class="circle" id="<%= object.tooltip_trigger_class %>" >
8
4
  <%= pb_rails("icon", props: { icon: object.icon, size: "xs" }) if object.icon.present? %>
9
5
  </div>
10
6
  <% if object.tooltip.present? %>
@@ -7,26 +7,21 @@
7
7
  data: object.data,
8
8
  **combined_html_options
9
9
  }) do %>
10
- <%= content_tag(:label,
10
+ <%= pb_content_tag(:label,
11
11
  'data-pb-radio-children': 'true',
12
12
  checked: object.checked,
13
- class: object.classname,
14
- id: object.id,
15
- value: object.value) do %>
13
+ value: object.value
14
+ ) do %>
16
15
  <%= input %>
17
16
  <span class="pb_radio_button"></span>
18
17
  <% end %>
19
18
  <div data-pb-radio-children-wrapper="true"> <%= content %> </div>
20
19
  <% end %>
21
20
  <% else %>
22
- <%= content_tag(:label,
23
- aria: object.aria,
21
+ <%= pb_content_tag(:label,
24
22
  checked: object.checked,
25
- class: object.classname,
26
- data: object.data,
27
- id: object.id,
28
23
  value: object.value,
29
- **combined_html_options) do %>
24
+ ) do %>
30
25
 
31
26
  <% if content.present? %>
32
27
  <%= content %>
@@ -37,4 +32,4 @@
37
32
  <span class="pb_radio_button"></span>
38
33
  <%= pb_rails("body", props: { status: object.body_status, text: object.text, dark: object.dark }) %>
39
34
  <% end %>
40
- <% end %>
35
+ <% end %>
@@ -152,4 +152,4 @@ export default class PbTooltip extends PbEnhancedElement {
152
152
  get triggerMethod() {
153
153
  return this.element.dataset.pbTooltipTriggerMethod || 'hover'
154
154
  }
155
- }
155
+ }