playbook_ui 14.2.1.pre.alpha.20240828cikubedbump3702 → 14.2.1
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.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.tsx +0 -3
- data/app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.html.erb +1 -1
- data/app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.rb +0 -2
- data/app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.test.js +0 -15
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/index.js +0 -1
- data/dist/chunks/{_typeahead-KAYMhDNO.js → _typeahead-Cq7RLPBA.js} +1 -1
- data/dist/chunks/{_weekday_stacked-CTvE8Bet.js → _weekday_stacked-Cykj5kLZ.js} +1 -1
- data/dist/chunks/vendor.js +1 -1
- data/dist/playbook-doc.js +1 -1
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/lib/playbook/version.rb +2 -2
- metadata +7 -9
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_loading.html.erb +0 -29
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_loading.jsx +0 -43
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4cefeafd37d4552ccecaf03ca3464488d4608ac159e892b9fc40494fb3816c98
|
|
4
|
+
data.tar.gz: 3054fb5f195dc18b8caa9f9d966b1224c1aa695ef6791e20f0a63201f6660a9a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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,
|
|
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'
|