playbook_ui 13.24.0.pre.alpha.PLAY998backgroundkitremoveemptyinlinline2666 → 13.24.0.pre.alpha.PLAY1181circleiconkitfixsizingerrorglobalspacingprops2675
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_background/_background.tsx +5 -7
- data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss +1 -1
- data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.tsx +1 -1
- data/app/pb_kits/playbook/pb_icon_circle/icon_circle.rb +1 -1
- data/app/pb_kits/playbook/pb_icon_circle/icon_circle.test.js +3 -3
- data/dist/playbook-rails.js +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64d3b88ddbf80e9899ea2149fe1105a42a170483991d306eb8cc544ee5aa46a2
|
4
|
+
data.tar.gz: 16554c57ae51a485f41faa858384c2d477c3e65da1a750d6a4c18f9987fe2c4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb7566ccb322412f6e3a3648fe738df099de01d39af408cb166676b8e9f05a85f4bd348b9b94928ff78950870ddc3487638d9b5eb32a62037d8834b599dacf96
|
7
|
+
data.tar.gz: 3a6a4e0eb09706caddde216f771833ae19ddc180ce82324e584a669c6edc2b6e5bc85e56454fb99282b417a0ff9c1efbdad96b1e7b783f0163e662e3a9faa495
|
@@ -65,7 +65,7 @@ const getResponsiveValue = <T extends string | undefined>(prop: ResponsiveProp<T
|
|
65
65
|
|
66
66
|
const Background = (props: BackgroundProps): React.ReactElement => {
|
67
67
|
const {
|
68
|
-
alt =
|
68
|
+
alt = '',
|
69
69
|
aria = {},
|
70
70
|
backgroundColor = 'light',
|
71
71
|
backgroundPosition = '',
|
@@ -130,13 +130,11 @@ const Background = (props: BackgroundProps): React.ReactElement => {
|
|
130
130
|
);
|
131
131
|
|
132
132
|
const backgroundStyle = {
|
133
|
+
backgroundImage: resImageUrl ? `url(${resImageUrl})` : undefined,
|
134
|
+
backgroundRepeat: resBackgroundRepeat || undefined,
|
135
|
+
backgroundSize: resBackgroundSize || undefined,
|
136
|
+
backgroundPosition: resBackgroundPosition || undefined,
|
133
137
|
backgroundColor: customColor || undefined,
|
134
|
-
...(resImageUrl !== '' ? {
|
135
|
-
backgroundImage: resImageUrl ? `url(${resImageUrl})` : undefined,
|
136
|
-
backgroundRepeat: resBackgroundRepeat || undefined,
|
137
|
-
backgroundPosition: resBackgroundPosition || undefined,
|
138
|
-
backgroundSize: resBackgroundSize || undefined,
|
139
|
-
} : {})
|
140
138
|
};
|
141
139
|
|
142
140
|
const Tag: React.ReactElement | any = `${tag}`;
|
@@ -43,7 +43,7 @@ const IconCircle = (props: IconCircleProps) => {
|
|
43
43
|
const ariaProps = buildAriaProps(aria)
|
44
44
|
const dataProps = buildDataProps(data)
|
45
45
|
const htmlProps = buildHtmlProps(htmlOptions)
|
46
|
-
const classes = classnames(buildCss('pb_icon_circle_kit', size
|
46
|
+
const classes = classnames(buildCss('pb_icon_circle_kit', `size_${size}`, variant), globalProps(props), className)
|
47
47
|
|
48
48
|
|
49
49
|
return (
|
@@ -16,7 +16,7 @@ describe("IconCircle Kit", () => {
|
|
16
16
|
)
|
17
17
|
|
18
18
|
const kit = screen.getByTestId(testId)
|
19
|
-
expect(kit).toHaveClass("
|
19
|
+
expect(kit).toHaveClass("pb_icon_circle_kit_size_md_default")
|
20
20
|
})
|
21
21
|
|
22
22
|
test("renders icon", () => {
|
@@ -66,7 +66,7 @@ describe("IconCircle Kit", () => {
|
|
66
66
|
/>
|
67
67
|
)
|
68
68
|
const kit = screen.getByTestId(testId)
|
69
|
-
expect(kit).toHaveClass(`
|
69
|
+
expect(kit).toHaveClass(`pb_icon_circle_kit_size_sm_${colorVariant}`)
|
70
70
|
|
71
71
|
cleanup()
|
72
72
|
})
|
@@ -89,7 +89,7 @@ describe("IconCircle Kit", () => {
|
|
89
89
|
/>
|
90
90
|
)
|
91
91
|
const kit = screen.getByTestId(testId)
|
92
|
-
expect(kit).toHaveClass(`
|
92
|
+
expect(kit).toHaveClass(`pb_icon_circle_kit_size_${sizeVariant}_default`)
|
93
93
|
|
94
94
|
cleanup()
|
95
95
|
})
|