@wonderflow/react-components 2.25.4 → 2.25.5
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.
- package/button/button.module.css +1 -1
- package/card/card.js +2 -2
- package/card/card.module.css +3 -3
- package/chip/chip.module.css +1 -1
- package/dropdown/dropdown-menu.module.css +1 -1
- package/package.json +1 -1
- package/stack/stack.module.css +1 -1
- package/themes/dark.css +1 -1
- package/themes/light.css +1 -1
- package/themes.css +3 -3
package/button/button.module.css
CHANGED
package/card/card.js
CHANGED
|
@@ -5,8 +5,8 @@ import clsx from 'clsx';
|
|
|
5
5
|
import { Card as CardClass, Left, Content, Right } from './card.module.css';
|
|
6
6
|
export const Card = forwardRef(({ as: Wrapper = 'div', children, className, padding = 24, radius = 8, left, right, dimmed, columnGap = 24, rowGap = 24, verticalAlign = 'start', horizontalAlign = 'space-between', wrap, style, ...props }, forwardedRef) => {
|
|
7
7
|
const dynamicStyle = {
|
|
8
|
-
'--padding': padding
|
|
9
|
-
'--radius': radius
|
|
8
|
+
'--padding': padding && tkns.space[padding],
|
|
9
|
+
'--radius': radius && tkns.radius[radius]
|
|
10
10
|
};
|
|
11
11
|
return (React.createElement(Wrapper, { ref: forwardedRef, className: clsx(CardClass, className), style: { ...dynamicStyle, ...style }, "data-card-dimmed": dimmed, ...props },
|
|
12
12
|
React.createElement(Stack, { direction: "row", fill: false, verticalAlign: verticalAlign, horizontalAlign: horizontalAlign, columnGap: columnGap, rowGap: rowGap, wrap: wrap },
|
package/card/card.module.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
.Card {
|
|
1
|
+
:where(.Card) {
|
|
2
2
|
background: var(--global-background);
|
|
3
|
-
padding: var(--padding
|
|
4
|
-
border-radius: var(--radius
|
|
3
|
+
padding: var(--padding);
|
|
4
|
+
border-radius: var(--radius);
|
|
5
5
|
position: relative;
|
|
6
6
|
|
|
7
7
|
&[data-card-dimmed='1'] {
|
package/chip/chip.module.css
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
.DropdownMenu {
|
|
2
2
|
list-style-type: none;
|
|
3
|
-
padding: env(--space-8) 0 env(--space-8);
|
|
4
3
|
background-color: var(--global-background);
|
|
5
4
|
border: 1px solid var(--dimmed-1);
|
|
6
5
|
border-radius: env(--radius-8);
|
|
6
|
+
padding: env(--space-8) 0;
|
|
7
7
|
overflow: hidden;
|
|
8
8
|
position: relative;
|
|
9
9
|
|
package/package.json
CHANGED
package/stack/stack.module.css
CHANGED
package/themes/dark.css
CHANGED
package/themes/light.css
CHANGED
package/themes.css
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
color: var(--global-foreground);
|
|
5
5
|
/**
|
|
6
6
|
* Do not edit directly
|
|
7
|
-
* Generated on Tue, 05 Oct 2021
|
|
7
|
+
* Generated on Tue, 05 Oct 2021 16:14:40 GMT
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
color: var(--global-foreground);
|
|
52
52
|
/**
|
|
53
53
|
* Do not edit directly
|
|
54
|
-
* Generated on Tue, 05 Oct 2021
|
|
54
|
+
* Generated on Tue, 05 Oct 2021 16:14:40 GMT
|
|
55
55
|
*/
|
|
56
56
|
|
|
57
57
|
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
color: var(--global-foreground);
|
|
100
100
|
/**
|
|
101
101
|
* Do not edit directly
|
|
102
|
-
* Generated on Tue, 05 Oct 2021
|
|
102
|
+
* Generated on Tue, 05 Oct 2021 16:14:40 GMT
|
|
103
103
|
*/
|
|
104
104
|
|
|
105
105
|
|