@activecollab/components 1.0.223 → 1.0.224
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/dist/cjs/components/IconButton/IconButton.js +1 -6
- package/dist/cjs/components/IconButton/IconButton.js.map +1 -1
- package/dist/esm/components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/esm/components/IconButton/IconButton.js +2 -7
- package/dist/esm/components/IconButton/IconButton.js.map +1 -1
- package/dist/index.js +1 -6
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -26,12 +26,7 @@ var IconButton = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
26
26
|
variant: variant,
|
|
27
27
|
size: size,
|
|
28
28
|
ref: ref
|
|
29
|
-
}, args),
|
|
30
|
-
if (! /*#__PURE__*/(0, _react.isValidElement)(child)) {
|
|
31
|
-
return null;
|
|
32
|
-
}
|
|
33
|
-
return child;
|
|
34
|
-
}));
|
|
29
|
+
}, args), children);
|
|
35
30
|
});
|
|
36
31
|
exports.IconButton = IconButton;
|
|
37
32
|
IconButton.displayName = "IconButton";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.js","names":["IconButton","forwardRef","ref","children","className","variant","size","args","classNames","
|
|
1
|
+
{"version":3,"file":"IconButton.js","names":["IconButton","forwardRef","ref","children","className","variant","size","args","classNames","displayName"],"sources":["../../../../src/components/IconButton/IconButton.tsx"],"sourcesContent":["import classNames from \"classnames\";\nimport React, { forwardRef, PropsWithChildren } from \"react\";\nimport { ButtonProps } from \"../Button\";\nimport { StyledIconButton } from \"./Styles\";\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface IconButtonProps extends ButtonProps {}\n\nexport const IconButton = forwardRef<\n HTMLButtonElement,\n PropsWithChildren<IconButtonProps>\n>(({ children, className, variant, size, ...args }, ref) => {\n return (\n <StyledIconButton\n className={classNames(\"c-btn--icon-only\", className)}\n variant={variant}\n size={size}\n ref={ref}\n {...args}\n >\n {children}\n </StyledIconButton>\n );\n});\n\nIconButton.displayName = \"IconButton\";\n"],"mappings":";;;;;;;AAAA;AACA;AAEA;AAA4C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKrC,IAAMA,UAAU,gBAAG,IAAAC,iBAAU,EAGlC,gBAAkDC,GAAG,EAAK;EAAA,IAAvDC,QAAQ,QAARA,QAAQ;IAAEC,SAAS,QAATA,SAAS;IAAEC,OAAO,QAAPA,OAAO;IAAEC,IAAI,QAAJA,IAAI;IAAKC,IAAI;EAC9C,oBACE,6BAAC,wBAAgB;IACf,SAAS,EAAE,IAAAC,mBAAU,EAAC,kBAAkB,EAAEJ,SAAS,CAAE;IACrD,OAAO,EAAEC,OAAQ;IACjB,IAAI,EAAEC,IAAK;IACX,GAAG,EAAEJ;EAAI,GACLK,IAAI,GAEPJ,QAAQ,CACQ;AAEvB,CAAC,CAAC;AAAC;AAEHH,UAAU,CAACS,WAAW,GAAG,YAAY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/IconButton/IconButton.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/IconButton/IconButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAIxC,MAAM,WAAW,eAAgB,SAAQ,WAAW;CAAG;AAEvD,eAAO,MAAM,UAAU;;2CAerB,CAAC"}
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
3
|
var _excluded = ["children", "className", "variant", "size"];
|
|
4
4
|
import classNames from "classnames";
|
|
5
|
-
import React, {
|
|
5
|
+
import React, { forwardRef } from "react";
|
|
6
6
|
import { StyledIconButton } from "./Styles";
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
@@ -18,12 +18,7 @@ export var IconButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18
18
|
variant: variant,
|
|
19
19
|
size: size,
|
|
20
20
|
ref: ref
|
|
21
|
-
}, args),
|
|
22
|
-
if (! /*#__PURE__*/isValidElement(child)) {
|
|
23
|
-
return null;
|
|
24
|
-
}
|
|
25
|
-
return child;
|
|
26
|
-
}));
|
|
21
|
+
}, args), children);
|
|
27
22
|
});
|
|
28
23
|
IconButton.displayName = "IconButton";
|
|
29
24
|
//# sourceMappingURL=IconButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.js","names":["classNames","React","
|
|
1
|
+
{"version":3,"file":"IconButton.js","names":["classNames","React","forwardRef","StyledIconButton","IconButton","ref","children","className","variant","size","args","displayName"],"sources":["../../../../src/components/IconButton/IconButton.tsx"],"sourcesContent":["import classNames from \"classnames\";\nimport React, { forwardRef, PropsWithChildren } from \"react\";\nimport { ButtonProps } from \"../Button\";\nimport { StyledIconButton } from \"./Styles\";\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface IconButtonProps extends ButtonProps {}\n\nexport const IconButton = forwardRef<\n HTMLButtonElement,\n PropsWithChildren<IconButtonProps>\n>(({ children, className, variant, size, ...args }, ref) => {\n return (\n <StyledIconButton\n className={classNames(\"c-btn--icon-only\", className)}\n variant={variant}\n size={size}\n ref={ref}\n {...args}\n >\n {children}\n </StyledIconButton>\n );\n});\n\nIconButton.displayName = \"IconButton\";\n"],"mappings":";;;AAAA,OAAOA,UAAU,MAAM,YAAY;AACnC,OAAOC,KAAK,IAAIC,UAAU,QAA2B,OAAO;AAE5D,SAASC,gBAAgB,QAAQ,UAAU;;AAE3C;;AAGA,OAAO,IAAMC,UAAU,gBAAGF,UAAU,CAGlC,gBAAkDG,GAAG,EAAK;EAAA,IAAvDC,QAAQ,QAARA,QAAQ;IAAEC,SAAS,QAATA,SAAS;IAAEC,OAAO,QAAPA,OAAO;IAAEC,IAAI,QAAJA,IAAI;IAAKC,IAAI;EAC9C,oBACE,oBAAC,gBAAgB;IACf,SAAS,EAAEV,UAAU,CAAC,kBAAkB,EAAEO,SAAS,CAAE;IACrD,OAAO,EAAEC,OAAQ;IACjB,IAAI,EAAEC,IAAK;IACX,GAAG,EAAEJ;EAAI,GACLK,IAAI,GAEPJ,QAAQ,CACQ;AAEvB,CAAC,CAAC;AAEFF,UAAU,CAACO,WAAW,GAAG,YAAY"}
|
package/dist/index.js
CHANGED
|
@@ -12412,12 +12412,7 @@
|
|
|
12412
12412
|
variant: variant,
|
|
12413
12413
|
size: size,
|
|
12414
12414
|
ref: ref
|
|
12415
|
-
}, args),
|
|
12416
|
-
if (! /*#__PURE__*/React.isValidElement(child)) {
|
|
12417
|
-
return null;
|
|
12418
|
-
}
|
|
12419
|
-
return child;
|
|
12420
|
-
}));
|
|
12415
|
+
}, args), children);
|
|
12421
12416
|
});
|
|
12422
12417
|
IconButton.displayName = "IconButton";
|
|
12423
12418
|
|