@trafilea/afrodita-components 4.0.2-beta.1 → 4.0.2-beta.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.
@@ -6322,13 +6322,13 @@ var TAGS = {
6322
6322
  tag: newStyled.span(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n display: inline-block;\n text-transform: ", ";\n "], ["\n display: inline-block;\n text-transform: ", ";\n "])), function (props) { return (props.allCaps ? 'uppercase' : ''); }),
6323
6323
  };
6324
6324
  var Text$3 = function (_a) {
6325
- var variant = _a.variant, children = _a.children, size = _a.size, weight = _a.weight, allProps = __rest(_a, ["variant", "children", "size", "weight"]);
6325
+ var variant = _a.variant, children = _a.children, allProps = __rest(_a, ["variant", "children"]);
6326
6326
  var theme = useTheme();
6327
6327
  var Tag = useMemo(function () { return TAGS[variant] || 'p'; }, [variant]);
6328
- var props = useMemo(function () {
6328
+ var _b = useMemo(function () {
6329
6329
  var _a;
6330
6330
  return (__assign(__assign({}, ((_a = DEFAULTS === null || DEFAULTS === void 0 ? void 0 : DEFAULTS[variant]) !== null && _a !== void 0 ? _a : {})), allProps));
6331
- }, [variant, allProps]);
6331
+ }, [variant, allProps]), size = _b.size, weight = _b.weight, props = __rest(_b, ["size", "weight"]);
6332
6332
  var commonCSS = useMemo(function () {
6333
6333
  var _a, _b;
6334
6334
  // These are the common style inside a `variant`.
package/build/index.js CHANGED
@@ -6330,13 +6330,13 @@ var TAGS = {
6330
6330
  tag: newStyled.span(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n display: inline-block;\n text-transform: ", ";\n "], ["\n display: inline-block;\n text-transform: ", ";\n "])), function (props) { return (props.allCaps ? 'uppercase' : ''); }),
6331
6331
  };
6332
6332
  var Text$3 = function (_a) {
6333
- var variant = _a.variant, children = _a.children, size = _a.size, weight = _a.weight, allProps = __rest(_a, ["variant", "children", "size", "weight"]);
6333
+ var variant = _a.variant, children = _a.children, allProps = __rest(_a, ["variant", "children"]);
6334
6334
  var theme = useTheme();
6335
6335
  var Tag = React.useMemo(function () { return TAGS[variant] || 'p'; }, [variant]);
6336
- var props = React.useMemo(function () {
6336
+ var _b = React.useMemo(function () {
6337
6337
  var _a;
6338
6338
  return (__assign(__assign({}, ((_a = DEFAULTS === null || DEFAULTS === void 0 ? void 0 : DEFAULTS[variant]) !== null && _a !== void 0 ? _a : {})), allProps));
6339
- }, [variant, allProps]);
6339
+ }, [variant, allProps]), size = _b.size, weight = _b.weight, props = __rest(_b, ["size", "weight"]);
6340
6340
  var commonCSS = React.useMemo(function () {
6341
6341
  var _a, _b;
6342
6342
  // These are the common style inside a `variant`.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Trafilea's Design System",
4
4
  "author": "Trafilea",
5
5
  "repository": "https://github.com/trafilea/afrodita-components",
6
- "version": "4.0.2-beta.1",
6
+ "version": "4.0.2-beta.2",
7
7
  "private": false,
8
8
  "main": "build/index.js",
9
9
  "style": "build/index.css",