@longline/aqua-ui 1.0.54 → 1.0.55

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.
@@ -18,9 +18,14 @@ interface IProps {
18
18
  * @default false
19
19
  */
20
20
  rounded?: boolean;
21
+ /**
22
+ * If set, draws a checkered background to show transparent gradients.
23
+ * @default false
24
+ */
25
+ checkered?: boolean;
21
26
  }
22
27
  /**
23
28
  * A `Gradient` draws a bar filled with a horizontal gradient, defined as an array of `IGradientStop`.
24
29
  */
25
- declare const Gradient: ({ thickness, ...props }: IProps) => React.JSX.Element;
30
+ declare const Gradient: ({ thickness, checkered, ...props }: IProps) => React.JSX.Element;
26
31
  export { Gradient };
@@ -29,17 +29,17 @@ import styled, { css } from 'styled-components';
29
29
  var GradientBase = function (props) {
30
30
  return React.createElement("div", { className: props.className });
31
31
  };
32
- var GradientStyled = styled(GradientBase)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n height: ", "px;\n background: linear-gradient(to right, ", ");\n ", "\n"], ["\n position: relative;\n height: ", "px;\n background: linear-gradient(to right, ", ");\n ", "\n"
32
+ var GradientStyled = styled(GradientBase)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n position: relative;\n height: ", "px;\n ", "\n ", "\n ", "\n"], ["\n position: relative;\n height: ", "px;\n ", "\n ", "\n ", "\n"
33
33
  /**
34
34
  * A `Gradient` draws a bar filled with a horizontal gradient, defined as an array of `IGradientStop`.
35
35
  */
36
- ])), function (p) { return p.thickness; }, function (p) { return p.gradientStops.map(function (gs) { return "".concat(gs.color, " ").concat(gs.pos * 100, "%"); }).join(', '); }, function (p) { return p.rounded && css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: ", "px;\n "], ["\n border-radius: ", "px;\n "])), p.thickness / 2); });
36
+ ])), function (p) { return p.thickness; }, function (p) { return p.checkered && css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background: \n linear-gradient(to right, ", "),\n repeating-conic-gradient(#808080 0% 25%, #fff 0% 50%) 50% / 10px 10px;\n "], ["\n background: \n linear-gradient(to right, ", "),\n repeating-conic-gradient(#808080 0% 25%, #fff 0% 50%) 50% / 10px 10px;\n "])), p.gradientStops.map(function (gs) { return "".concat(gs.color, " ").concat(gs.pos * 100, "%"); }).join(', ')); }, function (p) { return !p.checkered && css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background: \n linear-gradient(to right, ", ");\n "], ["\n background: \n linear-gradient(to right, ", ");\n "])), p.gradientStops.map(function (gs) { return "".concat(gs.color, " ").concat(gs.pos * 100, "%"); }).join(', ')); }, function (p) { return p.rounded && css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-radius: ", "px;\n "], ["\n border-radius: ", "px;\n "])), p.thickness / 2); });
37
37
  /**
38
38
  * A `Gradient` draws a bar filled with a horizontal gradient, defined as an array of `IGradientStop`.
39
39
  */
40
40
  var Gradient = function (_a) {
41
- var _b = _a.thickness, thickness = _b === void 0 ? 5 : _b, props = __rest(_a, ["thickness"]);
42
- return React.createElement(GradientStyled, __assign({ thickness: thickness }, props));
41
+ var _b = _a.thickness, thickness = _b === void 0 ? 5 : _b, _c = _a.checkered, checkered = _c === void 0 ? false : _c, props = __rest(_a, ["thickness", "checkered"]);
42
+ return React.createElement(GradientStyled, __assign({ thickness: thickness, checkered: checkered }, props));
43
43
  };
44
44
  export { Gradient };
45
- var templateObject_1, templateObject_2;
45
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longline/aqua-ui",
3
- "version": "1.0.54",
3
+ "version": "1.0.55",
4
4
  "description": "AquaUI",
5
5
  "author": "Alexander van Oostenrijk / Longline Environment",
6
6
  "license": "Commercial",