playbook_ui 14.2.1.pre.alpha.20240828cikubedbump3702 → 14.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d3e9d0cf8c716ccb0fc1b35d9280d785d203bc04efc76c5f2ed07b10db00fdb
4
- data.tar.gz: 0553a09a6f688a341b9eefbebcb738644b1cf94f7a0fb14183afd2878ef8df0f
3
+ metadata.gz: 4cefeafd37d4552ccecaf03ca3464488d4608ac159e892b9fc40494fb3816c98
4
+ data.tar.gz: 3054fb5f195dc18b8caa9f9d966b1224c1aa695ef6791e20f0a63201f6660a9a
5
5
  SHA512:
6
- metadata.gz: 5f6d08a59cb3eb52fff129ab86c45cd39c0a76c2386568987c3d9fd26e46701081dc451dfb4cfdf300a7133f5275e30d2043bcd5a8d37eef897b257de87274a8
7
- data.tar.gz: 7f86b1c123956136832a9d4e46792db68853700cd5ac66d94e9de6331b4588981cc06b4ae2c8cfc2a8dd278b578717c6b4a2498067e78a6bfaa96659e24a423f
6
+ metadata.gz: a80e95a18d91e9c71de1072f88cc8fc74d938d4737cb1c90e28194035a41495ebb23eb7c51ea5b89c7d914881eaaf97205a1ba03e5524ecc9b4ad8e7539449c2
7
+ data.tar.gz: 0c742998caa923a8b57e804169bcff0ed3a962a3f9000936e998a24c9ef353660046bbe865c4556df3185d06a723f173504a1b1d14b6edf73fb8453942966c91
@@ -16,7 +16,6 @@ type CircleIconButtonProps = {
16
16
  htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
17
17
  id?: string,
18
18
  link?: string,
19
- loading?: boolean,
20
19
  onClick?: React.MouseEventHandler<HTMLElement>,
21
20
  newWindow?: boolean,
22
21
  type?: 'button' | 'submit' | 'reset' | undefined,
@@ -33,7 +32,6 @@ const CircleIconButton = (props: CircleIconButtonProps): React.ReactElement => {
33
32
  htmlOptions = {},
34
33
  icon,
35
34
  id,
36
- loading = false,
37
35
  onClick = noop,
38
36
  type,
39
37
  link,
@@ -63,7 +61,6 @@ const CircleIconButton = (props: CircleIconButtonProps): React.ReactElement => {
63
61
  disabled={disabled}
64
62
  htmlType={type}
65
63
  link={link}
66
- loading={loading}
67
64
  newWindow={newWindow}
68
65
  onClick={onClick}
69
66
  text={null}
@@ -1,5 +1,5 @@
1
1
  <%= pb_content_tag do %>
2
- <%= pb_rails("button", props: {type: object.type, loading: object.loading, link: object.link, new_window:object.new_window, variant: object.variant, disabled: object.disabled, dark: object.dark}) do %>
2
+ <%= pb_rails("button", props: {type: object.type, link: object.link, new_window:object.new_window, variant: object.variant, disabled: object.disabled, dark: object.dark}) do %>
3
3
  <%= pb_rails("icon", props: {icon: object.icon, fixed_width: true, dark: object.dark}) %>
4
4
  <% end %>
5
5
  <% end %>
@@ -12,8 +12,6 @@ module Playbook
12
12
  prop :disabled, type: Playbook::Props::Boolean,
13
13
  default: false
14
14
  prop :icon, required: true
15
- prop :loading, type: Playbook::Props::Boolean,
16
- default: false
17
15
  prop :link
18
16
  prop :new_window, type: Playbook::Props::Boolean,
19
17
  default: false
@@ -15,18 +15,3 @@ test('default test', () => {
15
15
 
16
16
  expect(kit).toHaveClass('pb_circle_icon_button_kit')
17
17
  })
18
-
19
- test('passes loading prop to button', () => {
20
- render(
21
- <CircleIconButton
22
- data={{ testid: 'loading-test' }}
23
- icon="plus"
24
- loading
25
- />
26
- )
27
-
28
- const kit = screen.getByTestId('loading-test')
29
- const button = kit.querySelector('.pb_button_kit_primary_inline_enabled_loading')
30
-
31
- expect(button).toBeInTheDocument()
32
- })
@@ -3,10 +3,8 @@ examples:
3
3
  rails:
4
4
  - circle_icon_button_default: Default
5
5
  - circle_icon_button_link: Link
6
- - circle_icon_button_loading: Loading
7
6
 
8
7
  react:
9
8
  - circle_icon_button_default: Default
10
9
  - circle_icon_button_click: Click Handler
11
10
  - circle_icon_button_link: Link
12
- - circle_icon_button_loading: Loading
@@ -1,4 +1,3 @@
1
1
  export { default as CircleIconButtonDefault } from './_circle_icon_button_default.jsx'
2
2
  export { default as CircleIconButtonClick } from './_circle_icon_button_click.jsx'
3
3
  export { default as CircleIconButtonLink } from './_circle_icon_button_link.jsx'
4
- export { default as CircleIconButtonLoading } from './_circle_icon_button_loading.jsx'