@wonderflow/react-components 2.38.1-next.1 → 2.38.1-next.2

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.
@@ -46,16 +46,16 @@
46
46
  /* Types */
47
47
 
48
48
  &[data-button-kind='primary'] {
49
- background-color: var(--cta-default);
49
+ background: var(--cta-default);
50
50
  color: var(--cta-foreground);
51
51
 
52
52
  &:is(:active) {
53
- background-color: var(--cta-dark);
53
+ background: var(--cta-dark);
54
54
  }
55
55
 
56
- &[aria-pressed='true'],
57
- &[aria-pressed='true']:active {
58
- background-color: hsl(env(--color-red-50));
56
+ &:where([aria-pressed='true']),
57
+ &:where([aria-pressed='true']:active) {
58
+ background: hsl(env(--color-red-50));
59
59
  color: hsl(env(--color-support-white));
60
60
  }
61
61
  }
@@ -69,33 +69,36 @@
69
69
  &:is(:active) {
70
70
 
71
71
  @mixin vibrancy-hover;
72
+
73
+ color: var(--global-vibrancy-foreground);
72
74
  }
73
75
 
74
- &[aria-pressed='true'],
75
- &[aria-pressed='true']:active {
76
- background-color: var(--dimmed-7);
76
+ &:where([aria-pressed='true']),
77
+ &:where([aria-pressed='true']:active) {
77
78
  color: var(--dimmed-0);
79
+ background: var(--dimmed-7);
78
80
  }
79
81
  }
80
82
 
81
83
  &[data-button-kind='flat'] {
82
- color: var(--global-foreground);
84
+ color: var(--global-vibrancy-foreground);
83
85
 
84
86
  &:is(:active) {
85
87
 
86
88
  @mixin vibrancy-hover;
87
89
  }
88
90
 
89
- &:is(:hover, :focus):not(:active) {
91
+ &:is(:hover, :focus) {
90
92
 
91
93
  @mixin vibrancy;
92
94
 
93
95
  color: var(--global-vibrancy-foreground);
94
96
  }
95
97
 
96
- &[aria-pressed='true'],
97
- &[aria-pressed='true']:active {
98
- background-color: var(--global-vibrancy-background-hover);
98
+ &:where([aria-pressed='true']),
99
+ &:where([aria-pressed='true']:is(:active, :focus)) {
100
+ color: var(--dimmed-0);
101
+ background: var(--dimmed-7);
99
102
  }
100
103
  }
101
104
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wonderflow/react-components",
3
3
  "description": "UI components from Wonderflow's Wanda design system",
4
- "version": "2.38.1-next.1",
4
+ "version": "2.38.1-next.2",
5
5
  "author": "Wonderflow",
6
6
  "license": "MIT",
7
7
  "main": "index.js",
package/themes/dark.css CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 29 Nov 2021 13:14:41 GMT
3
+ * Generated on Mon, 29 Nov 2021 15:20:06 GMT
4
4
  */
5
5
 
6
6
  :root {
package/themes/light.css CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 29 Nov 2021 13:14:41 GMT
3
+ * Generated on Mon, 29 Nov 2021 15:20:06 GMT
4
4
  */
5
5
 
6
6
  :root {
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 Mon, 29 Nov 2021 13:14:41 GMT
7
+ * Generated on Mon, 29 Nov 2021 15:20:06 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 Mon, 29 Nov 2021 13:14:41 GMT
54
+ * Generated on Mon, 29 Nov 2021 15:20:06 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 Mon, 29 Nov 2021 13:14:41 GMT
102
+ * Generated on Mon, 29 Nov 2021 15:20:06 GMT
103
103
  */
104
104
 
105
105
 
@@ -21,7 +21,7 @@ const scaleAnimation = {
21
21
  }
22
22
  }
23
23
  };
24
- export const ToggleButton = forwardRef(({ className, restingIcon, pressedIcon, dimension, kind, disabled, pressed = false, onClick, ...props }, forwardedRef) => {
24
+ export const ToggleButton = forwardRef(({ className, restingIcon, pressedIcon, dimension, kind, disabled, iconColor, pressed = false, onClick, ...props }, forwardedRef) => {
25
25
  const [isPressed, setIsPressed] = useState(pressed);
26
26
  const [firstRender, setFirstRender] = useState(true);
27
27
  useEffect(() => {
@@ -7,20 +7,34 @@
7
7
  &[aria-pressed='true'] {
8
8
  box-shadow:
9
9
  0 0 0 var(--border-width) var(--border-color),
10
- 0 0 0 var(--border-width) var(--border-color),
11
- inset 0 0 0 calc(var(--border-width) / 2) hsl(0deg 0% 0% / 20%);
10
+ 0 0 0 var(--border-width) var(--border-color);
12
11
  }
13
12
 
14
13
  &[data-button-kind='primary'] {
15
14
  --border-color: hsl(env(--color-red-30) / 25%);
15
+
16
+ &[aria-pressed='true'] {
17
+ color: var(--cta-default);
18
+ background: none;
19
+ }
16
20
  }
17
21
 
18
22
  &[data-button-kind='secondary'] {
19
23
  --border-color: var(--dimmed-2);
24
+
25
+ &[aria-pressed='true'] {
26
+ color: var(--global-vibrancy-foreground);
27
+ background: none;
28
+ }
20
29
  }
21
30
 
22
31
  &[data-button-kind='flat'] {
23
32
  --border-color: var(--dimmed-2);
33
+
34
+ &[aria-pressed='true'] {
35
+ color: var(--global-vibrancy-foreground);
36
+ background: none;
37
+ }
24
38
  }
25
39
 
26
40
  &[data-button-dimension='small'] {