@pushwoosh/dumb-components 1.0.75 → 1.0.76

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/dumb-components",
3
- "version": "1.0.75",
3
+ "version": "1.0.76",
4
4
  "description": "React components to build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -88,11 +88,13 @@ function getColor(color) {
88
88
  const Txt = styled.span.withConfig({
89
89
  displayName: "Txt",
90
90
  componentId: "sc-nm71u5-0"
91
- })(["", " ", ""], ({
91
+ })(["", " ", " ", ""], ({
92
92
  $color
93
93
  }) => $color && `color: ${$color};`, ({
94
94
  $variant
95
- }) => $variant && variants[$variant]);
95
+ }) => $variant && variants[$variant], ({
96
+ $opacity
97
+ }) => $opacity !== undefined && `opacity: ${$opacity};`);
96
98
  export function renderToReact(ast, context) {
97
99
  return renderNodesToArray(ast, context, (tagNode, children, key) => {
98
100
  const TagName = tagNode.name;