@vitality-ds/components 5.7.0-alpha.8 → 5.7.0

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.
Files changed (39) hide show
  1. package/dist/AuditTrail/components/AuditItem/index.spec.js +1 -1
  2. package/dist/Breadcrumbs/components/Breadcrumb/index.js +1 -1
  3. package/dist/Button/components/ButtonIcon/styles/BaseButtonIcon.styles.js +1 -1
  4. package/dist/Callout/constants.js +2 -3
  5. package/dist/Callout/styles/BaseCalloutIconContainer.styles.js +1 -1
  6. package/dist/Dialog/components/DialogHeader/index.js +1 -3
  7. package/dist/IconButton/styles/BaseIconButton.styles.js +1 -0
  8. package/dist/Input/Select/components/ClearButton/index.js +1 -1
  9. package/dist/LucideProvider/index.js +1 -1
  10. package/dist/StatusBadge/components/StatusBadgeIcon/styles/BaseStatusBadge.styles.js +19 -0
  11. package/dist/Table/components/Cells/RowActions/styles/BaseIconButtonCell.styles.js +3 -0
  12. package/dist/Toaster/components/Toast/index.js +1 -0
  13. package/dist/components/src/AuditTrail/components/IconAvatar/types.d.ts +2 -2
  14. package/dist/components/src/AuditTrail/logic.d.ts +1 -2
  15. package/dist/components/src/AuditTrail/types.d.ts +2 -2
  16. package/dist/components/src/Button/components/ButtonIcon/styled.d.ts +1 -1
  17. package/dist/components/src/Button/components/ButtonIcon/styles/BaseButtonIcon.styles.d.ts +1 -1
  18. package/dist/components/src/Callout/types.d.ts +2 -2
  19. package/dist/components/src/Dialog/types.d.ts +2 -2
  20. package/dist/components/src/IconButton/styled.d.ts +2 -0
  21. package/dist/components/src/IconButton/styles/BaseIconButton.styles.d.ts +1 -0
  22. package/dist/components/src/Input/PasswordInput/types.d.ts +2 -2
  23. package/dist/components/src/helpers/test/findSVGs.d.ts +3 -2
  24. package/dist/esm/AuditTrail/components/AuditItem/index.spec.js +1 -1
  25. package/dist/esm/Breadcrumbs/components/Breadcrumb/index.js +1 -1
  26. package/dist/esm/Button/components/ButtonIcon/styles/BaseButtonIcon.styles.js +1 -1
  27. package/dist/esm/Callout/constants.js +2 -2
  28. package/dist/esm/Callout/styles/BaseCalloutIconContainer.styles.js +1 -1
  29. package/dist/esm/Dialog/components/DialogHeader/index.js +1 -3
  30. package/dist/esm/IconButton/styles/BaseIconButton.styles.js +1 -0
  31. package/dist/esm/Input/Select/components/ClearButton/index.js +1 -1
  32. package/dist/esm/LucideProvider/index.js +1 -1
  33. package/dist/esm/StatusBadge/components/StatusBadgeIcon/styles/BaseStatusBadge.styles.js +19 -0
  34. package/dist/esm/Table/components/Cells/RowActions/styles/BaseIconButtonCell.styles.js +3 -0
  35. package/dist/esm/Toaster/components/Toast/index.js +1 -0
  36. package/dist/esm/helpers/test/findSVGs.js +17 -7
  37. package/dist/helpers/test/findSVGs.js +17 -7
  38. package/dist/tsconfig.tsbuildinfo +1 -1
  39. package/package.json +5 -5
@@ -3,8 +3,8 @@
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
5
5
  var _react = require("@testing-library/react");
6
- var _lucideReact = require("lucide-react");
7
6
  var _icons = require("@vitality-ds/icons");
7
+ var _lucideReact = require("lucide-react");
8
8
  var _react2 = _interopRequireDefault(require("react"));
9
9
  var _test = require("../../../helpers/test");
10
10
  var _index = _interopRequireDefault(require("./index"));
@@ -33,7 +33,7 @@ function Breadcrumb(_ref) {
33
33
  href: href,
34
34
  target: target
35
35
  }, text), isLastItem ? null : /*#__PURE__*/_react["default"].createElement(_lucideReact.ChevronRight, {
36
- size: "1em"
36
+ size: "0.875rem"
37
37
  }));
38
38
  }
39
39
  var _default = exports["default"] = Breadcrumb;
@@ -13,7 +13,7 @@ var _default = exports["default"] = (0, _system.css)({
13
13
  height: "$$size",
14
14
  opacity: 0.8,
15
15
  verticalAlign: "text-bottom",
16
- "altGlyph, circle, ellipse, path, polygon, polyline, rect, text, textPath, tref, tspan,": {
16
+ "altGlyph, line, circle, ellipse, path, polygon, polyline, rect, text, textPath, tref, tspan,": {
17
17
  stroke: "currentColor"
18
18
  }
19
19
  },
@@ -4,9 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DEFAULT_CONTENT = void 0;
7
+ var _icons = require("@vitality-ds/icons");
7
8
  var _lucideReact = require("lucide-react");
8
- // import { GentuLogo } from "@vitality-ds/icons";
9
-
10
9
  // eslint-disable-next-line import/prefer-default-export
11
10
  var DEFAULT_CONTENT = exports.DEFAULT_CONTENT = {
12
11
  success: {
@@ -45,7 +44,7 @@ var DEFAULT_CONTENT = exports.DEFAULT_CONTENT = {
45
44
  iconColor: "$colors$accent10"
46
45
  },
47
46
  brand: {
48
- icon: _lucideReact.Info,
47
+ icon: _icons.GentuLogo,
49
48
  title: "Brand",
50
49
  titleColor: "$colors$brand10",
51
50
  spinnerColor: "brand",
@@ -11,7 +11,7 @@ var _default = exports["default"] = (0, _system.css)({
11
11
  variants: {
12
12
  topNudge: {
13
13
  "default": {
14
- marginTop: ".25rem"
14
+ marginTop: "0.25rem"
15
15
  },
16
16
  blockCompact: {
17
17
  marginTop: "0.15rem"
@@ -36,9 +36,7 @@ function DialogHeader(_ref) {
36
36
  size: "compact",
37
37
  onClick: closeButtonOnClick,
38
38
  tooltipContent: "Close Dialog",
39
- icon: /*#__PURE__*/_react["default"].createElement(_lucideReact.X, {
40
- color: "gray"
41
- })
39
+ icon: /*#__PURE__*/_react["default"].createElement(_lucideReact.X, null)
42
40
  })));
43
41
  }
44
42
  var _default = exports["default"] = DialogHeader;
@@ -30,6 +30,7 @@ var _default = exports["default"] = (0, _system.css)({
30
30
  alignSelf: "center",
31
31
  svg: {
32
32
  pointerEvents: "none",
33
+ color: "$$iconColor",
33
34
  verticalAlign: "middle",
34
35
  width: "1rem",
35
36
  height: "1rem",
@@ -10,7 +10,7 @@ var _react = _interopRequireDefault(require("react"));
10
10
  var _styled = require("./styled");
11
11
  function CustomClearButton(innerProps) {
12
12
  return /*#__PURE__*/_react["default"].createElement(_styled.BaseClearButton, innerProps, /*#__PURE__*/_react["default"].createElement(_lucideReact.X, {
13
- size: "1em",
13
+ size: "1rem",
14
14
  color: "currentColor"
15
15
  }));
16
16
  }
@@ -10,7 +10,7 @@ var _react = _interopRequireDefault(require("react"));
10
10
  function LucideProvider(_ref) {
11
11
  var _ref$config = _ref.config,
12
12
  config = _ref$config === void 0 ? {
13
- size: 20
13
+ size: 16
14
14
  } : _ref$config,
15
15
  children = _ref.children;
16
16
  return /*#__PURE__*/_react["default"].createElement(_lucideReact.LucideProvider, config, children);
@@ -11,9 +11,28 @@ var _default = exports["default"] = (0, _system.css)({
11
11
  svg: {
12
12
  width: "1em",
13
13
  height: "1em",
14
+ color: "currentColor",
15
+ circle: {
16
+ stroke: "currentColor"
17
+ },
18
+ ellipse: {
19
+ stroke: "currentColor"
20
+ },
21
+ line: {
22
+ stroke: "currentColor"
23
+ },
14
24
  path: {
15
25
  stroke: "currentColor"
16
26
  },
27
+ polygon: {
28
+ stroke: "currentColor"
29
+ },
30
+ polyline: {
31
+ stroke: "currentColor"
32
+ },
33
+ rect: {
34
+ stroke: "currentColor"
35
+ },
17
36
  // Todo: find out why icons require top margin reset
18
37
  marginTop: 0
19
38
  }
@@ -7,6 +7,9 @@ exports["default"] = void 0;
7
7
  var _system = require("@vitality-ds/system");
8
8
  var _default = exports["default"] = (0, _system.css)({
9
9
  opacity: 1,
10
+ "&:not(:last-child)": {
11
+ marginRight: "$sm"
12
+ },
10
13
  "@bp2": {
11
14
  opacity: 0
12
15
  }
@@ -24,6 +24,7 @@ function Toast(_ref) {
24
24
  return /*#__PURE__*/_react["default"].createElement(_styled.BaseToast, {
25
25
  type: type
26
26
  }, !hideIcon && /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(IconComponent, {
27
+ size: "1rem",
27
28
  className: "icon"
28
29
  })), /*#__PURE__*/_react["default"].createElement(_styled.BaseContent, null, title && /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
29
30
  variant: "display200"
@@ -1,4 +1,4 @@
1
- import type { LucideIcon } from "lucide-react";
1
+ /// <reference types="react" />
2
2
  export declare type IconAvatarProps = {
3
- icon: LucideIcon;
3
+ icon: React.FunctionComponent;
4
4
  };
@@ -1,5 +1,4 @@
1
- import type { LucideIcon } from "lucide-react";
2
1
  import { GetTimesResponseType } from "./types";
3
2
  export declare const getTimes: (timestamp: string) => GetTimesResponseType;
4
- export declare const getBrand: (name: string) => LucideIcon;
3
+ export declare const getBrand: (name: string) => React.FunctionComponent | undefined;
5
4
  export declare const getInitials: (name: string, forcedInitials: string) => string;
@@ -1,5 +1,5 @@
1
+ /// <reference types="react" />
1
2
  import { ExcludedProps } from "@vitality-ds/system";
2
- import type { LucideIcon } from "lucide-react";
3
3
  import { ACTIONS } from "./constants";
4
4
  export declare type PrepositionType = "by" | "to" | "from" | "for" | null;
5
5
  export declare type GetTimesResponseType = {
@@ -11,7 +11,7 @@ export declare type GetTimesResponseType = {
11
11
  export declare type ActionPropsType = {
12
12
  actionName: string;
13
13
  preposition: PrepositionType;
14
- fallbackIcon: LucideIcon;
14
+ fallbackIcon: React.FunctionComponent;
15
15
  forceIcon: boolean;
16
16
  };
17
17
  declare type AuditTrailItemCommonProps = {
@@ -6,7 +6,7 @@ declare const ButtonIcon: import("@stitches/react/types/styled-component").Style
6
6
  height: string;
7
7
  opacity: number;
8
8
  verticalAlign: string;
9
- "altGlyph, circle, ellipse, path, polygon, polyline, rect, text, textPath, tref, tspan,": {
9
+ "altGlyph, line, circle, ellipse, path, polygon, polyline, rect, text, textPath, tref, tspan,": {
10
10
  stroke: string;
11
11
  };
12
12
  };
@@ -6,7 +6,7 @@ declare const _default: import("@stitches/react/types/styled-component").CssComp
6
6
  height: string;
7
7
  opacity: number;
8
8
  verticalAlign: string;
9
- "altGlyph, circle, ellipse, path, polygon, polyline, rect, text, textPath, tref, tspan,": {
9
+ "altGlyph, line, circle, ellipse, path, polygon, polyline, rect, text, textPath, tref, tspan,": {
10
10
  stroke: string;
11
11
  };
12
12
  };
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps, ExcludedProps, VariantProps } from "@vitality-ds/system";
2
- import { LucideIcon } from "lucide-react";
2
+ import type { LucideIcon } from "lucide-react";
3
3
  import React from "react";
4
4
  import { ButtonPrimitiveProps } from "../Button/primitives/types";
5
5
  import { ButtonProps } from "../Button/types";
@@ -19,7 +19,7 @@ export declare type SeverityKeys = valueof<RemoveBreakPointVariants<SeverityVari
19
19
  export declare type DefaultContent = {
20
20
  title: string;
21
21
  titleColor: TypographyProps["color"];
22
- icon: LucideIcon;
22
+ icon: LucideIcon | React.FunctionComponent;
23
23
  spinnerColor: ButtonPrimitiveProps["spinnerColor"];
24
24
  iconColor: string;
25
25
  };
@@ -6,7 +6,7 @@ import { valueof } from "../helpers/logic/type-helpers";
6
6
  declare type AllowedVariantKeys = "custom" | "transactional" | "passive" | "warning" | "destructive" | "acknowledgement";
7
7
  declare type VariantOptionType = {
8
8
  titleIcon: boolean;
9
- forcedIcon: LucideIcon | null;
9
+ forcedIcon: React.FunctionComponent | null;
10
10
  actionsAllowed: boolean;
11
11
  primaryActionVariant: valueof<Pick<ButtonProps, "appearance">>;
12
12
  primaryActionText: string | boolean;
@@ -32,7 +32,7 @@ export declare type HeaderPropsType = {
32
32
  /**
33
33
  * The icon shown to the left of the title. title and subtitle pushed against left padding if not provided.
34
34
  */
35
- icon?: LucideIcon;
35
+ icon?: LucideIcon | React.FunctionComponent;
36
36
  /**
37
37
  * The function run when the close button is pressed. By passing this function to this prop the close button is rendered, otherwise the button is not rendered.
38
38
  */
@@ -10,6 +10,7 @@ export declare const BaseIconButton: import("@stitches/react/types/styled-compon
10
10
  alignSelf: string;
11
11
  svg: {
12
12
  pointerEvents: string;
13
+ color: string;
13
14
  verticalAlign: string;
14
15
  width: string;
15
16
  height: string;
@@ -866,6 +867,7 @@ export declare const BaseIconButtonLink: import("@stitches/react/types/styled-co
866
867
  alignSelf: string;
867
868
  svg: {
868
869
  pointerEvents: string;
870
+ color: string;
869
871
  verticalAlign: string;
870
872
  width: string;
871
873
  height: string;
@@ -10,6 +10,7 @@ declare const _default: import("@stitches/react/types/styled-component").CssComp
10
10
  alignSelf: string;
11
11
  svg: {
12
12
  pointerEvents: string;
13
+ color: string;
13
14
  verticalAlign: string;
14
15
  width: string;
15
16
  height: string;
@@ -1,5 +1,5 @@
1
- import { LucideProps } from "lucide-react";
2
- import React from "react";
1
+ import type { LucideProps } from "lucide-react";
2
+ import type React from "react";
3
3
  import { valueof } from "../../helpers/logic/type-helpers";
4
4
  import { TooltipProps } from "../../Tooltip/types";
5
5
  import { TextInputProps } from "../TextInput/types";
@@ -1,8 +1,9 @@
1
+ import React from "react";
1
2
  /**
2
3
  * RTL doesn't let you search directly though a component because it only considers what is rendered. because of this we can either apply a test id 🤮
3
4
  * @param container
4
- * @param IconFunctionComponent
5
+ * @param IconComponent
5
6
  * @returns an array of all matching elements within that test container
6
7
  */
7
- declare const findSVGs: (container: any, IconFunctionComponent: any) => any;
8
+ declare const findSVGs: (container: HTMLElement, IconComponent: React.ElementType) => NodeListOf<Element>;
8
9
  export default findSVGs;
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import { render, screen } from "@testing-library/react";
3
- import { CircleUser, Link2, Plus } from "lucide-react";
4
3
  import { GentuLogo } from "@vitality-ds/icons";
4
+ import { CircleUser, Link2, Plus } from "lucide-react";
5
5
  import React from "react";
6
6
  import { findSVGs } from "../../../helpers/test";
7
7
  import AuditItem from "./index";
@@ -26,7 +26,7 @@ function Breadcrumb(_ref) {
26
26
  href: href,
27
27
  target: target
28
28
  }, text), isLastItem ? null : /*#__PURE__*/React.createElement(ChevronRight, {
29
- size: "1em"
29
+ size: "0.875rem"
30
30
  }));
31
31
  }
32
32
  export default Breadcrumb;
@@ -7,7 +7,7 @@ export default css({
7
7
  height: "$$size",
8
8
  opacity: 0.8,
9
9
  verticalAlign: "text-bottom",
10
- "altGlyph, circle, ellipse, path, polygon, polyline, rect, text, textPath, tref, tspan,": {
10
+ "altGlyph, line, circle, ellipse, path, polygon, polyline, rect, text, textPath, tref, tspan,": {
11
11
  stroke: "currentColor"
12
12
  }
13
13
  },
@@ -1,4 +1,4 @@
1
- // import { GentuLogo } from "@vitality-ds/icons";
1
+ import { GentuLogo } from "@vitality-ds/icons";
2
2
  import { CircleAlert, CircleCheck, Info, TriangleAlert } from "lucide-react";
3
3
  // eslint-disable-next-line import/prefer-default-export
4
4
  export var DEFAULT_CONTENT = {
@@ -38,7 +38,7 @@ export var DEFAULT_CONTENT = {
38
38
  iconColor: "$colors$accent10"
39
39
  },
40
40
  brand: {
41
- icon: Info,
41
+ icon: GentuLogo,
42
42
  title: "Brand",
43
43
  titleColor: "$colors$brand10",
44
44
  spinnerColor: "brand",
@@ -6,7 +6,7 @@ export default css({
6
6
  variants: {
7
7
  topNudge: {
8
8
  "default": {
9
- marginTop: ".25rem"
9
+ marginTop: "0.25rem"
10
10
  },
11
11
  blockCompact: {
12
12
  marginTop: "0.15rem"
@@ -29,9 +29,7 @@ function DialogHeader(_ref) {
29
29
  size: "compact",
30
30
  onClick: closeButtonOnClick,
31
31
  tooltipContent: "Close Dialog",
32
- icon: /*#__PURE__*/React.createElement(X, {
33
- color: "gray"
34
- })
32
+ icon: /*#__PURE__*/React.createElement(X, null)
35
33
  })));
36
34
  }
37
35
  export default DialogHeader;
@@ -24,6 +24,7 @@ export default css({
24
24
  alignSelf: "center",
25
25
  svg: {
26
26
  pointerEvents: "none",
27
+ color: "$$iconColor",
27
28
  verticalAlign: "middle",
28
29
  width: "1rem",
29
30
  height: "1rem",
@@ -3,7 +3,7 @@ import React from "react";
3
3
  import { BaseClearButton } from "./styled";
4
4
  function CustomClearButton(innerProps) {
5
5
  return /*#__PURE__*/React.createElement(BaseClearButton, innerProps, /*#__PURE__*/React.createElement(X, {
6
- size: "1em",
6
+ size: "1rem",
7
7
  color: "currentColor"
8
8
  }));
9
9
  }
@@ -3,7 +3,7 @@ import React from "react";
3
3
  function LucideProvider(_ref) {
4
4
  var _ref$config = _ref.config,
5
5
  config = _ref$config === void 0 ? {
6
- size: 20
6
+ size: 16
7
7
  } : _ref$config,
8
8
  children = _ref.children;
9
9
  return /*#__PURE__*/React.createElement(BaseLucideProvider, config, children);
@@ -5,9 +5,28 @@ export default css({
5
5
  svg: {
6
6
  width: "1em",
7
7
  height: "1em",
8
+ color: "currentColor",
9
+ circle: {
10
+ stroke: "currentColor"
11
+ },
12
+ ellipse: {
13
+ stroke: "currentColor"
14
+ },
15
+ line: {
16
+ stroke: "currentColor"
17
+ },
8
18
  path: {
9
19
  stroke: "currentColor"
10
20
  },
21
+ polygon: {
22
+ stroke: "currentColor"
23
+ },
24
+ polyline: {
25
+ stroke: "currentColor"
26
+ },
27
+ rect: {
28
+ stroke: "currentColor"
29
+ },
11
30
  // Todo: find out why icons require top margin reset
12
31
  marginTop: 0
13
32
  }
@@ -1,6 +1,9 @@
1
1
  import { css } from "@vitality-ds/system";
2
2
  export default css({
3
3
  opacity: 1,
4
+ "&:not(:last-child)": {
5
+ marginRight: "$sm"
6
+ },
4
7
  "@bp2": {
5
8
  opacity: 0
6
9
  }
@@ -15,6 +15,7 @@ function Toast(_ref) {
15
15
  return /*#__PURE__*/React.createElement(BaseToast, {
16
16
  type: type
17
17
  }, !hideIcon && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(IconComponent, {
18
+ size: "1rem",
18
19
  className: "icon"
19
20
  })), /*#__PURE__*/React.createElement(BaseContent, null, title && /*#__PURE__*/React.createElement(Typography, {
20
21
  variant: "display200"
@@ -1,14 +1,24 @@
1
+ import { render } from "@testing-library/react";
2
+ import React from "react";
3
+
1
4
  /**
2
5
  * RTL doesn't let you search directly though a component because it only considers what is rendered. because of this we can either apply a test id 🤮
3
6
  * @param container
4
- * @param IconFunctionComponent
7
+ * @param IconComponent
5
8
  * @returns an array of all matching elements within that test container
6
9
  */
7
- var findSVGs = function findSVGs(container, IconFunctionComponent) {
8
- var pathChildren = IconFunctionComponent({}).props.children;
9
- if (Array.isArray(pathChildren)) {
10
- return container.querySelectorAll("path[d=\"".concat(pathChildren[0].props.d, "\"]"));
11
- }
12
- return container.querySelectorAll("path[d=\"".concat(pathChildren.props.d, "\"]"));
10
+ var findSVGs = function findSVGs(container, IconComponent) {
11
+ var probe = document.createElement("div");
12
+ document.body.appendChild(probe);
13
+ var _render = render(/*#__PURE__*/React.createElement(IconComponent), {
14
+ container: probe
15
+ }),
16
+ unmount = _render.unmount;
17
+ var firstPath = probe.querySelector("path");
18
+ var d = firstPath === null || firstPath === void 0 ? void 0 : firstPath.getAttribute("d");
19
+ unmount();
20
+ probe.remove();
21
+ if (!d) return container.querySelectorAll("path[data-no-match]");
22
+ return container.querySelectorAll("path[d=\"".concat(d, "\"]"));
13
23
  };
14
24
  export default findSVGs;
@@ -1,20 +1,30 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports["default"] = void 0;
8
+ var _react = require("@testing-library/react");
9
+ var _react2 = _interopRequireDefault(require("react"));
7
10
  /**
8
11
  * RTL doesn't let you search directly though a component because it only considers what is rendered. because of this we can either apply a test id 🤮
9
12
  * @param container
10
- * @param IconFunctionComponent
13
+ * @param IconComponent
11
14
  * @returns an array of all matching elements within that test container
12
15
  */
13
- var findSVGs = function findSVGs(container, IconFunctionComponent) {
14
- var pathChildren = IconFunctionComponent({}).props.children;
15
- if (Array.isArray(pathChildren)) {
16
- return container.querySelectorAll("path[d=\"".concat(pathChildren[0].props.d, "\"]"));
17
- }
18
- return container.querySelectorAll("path[d=\"".concat(pathChildren.props.d, "\"]"));
16
+ var findSVGs = function findSVGs(container, IconComponent) {
17
+ var probe = document.createElement("div");
18
+ document.body.appendChild(probe);
19
+ var _render = (0, _react.render)(/*#__PURE__*/_react2["default"].createElement(IconComponent), {
20
+ container: probe
21
+ }),
22
+ unmount = _render.unmount;
23
+ var firstPath = probe.querySelector("path");
24
+ var d = firstPath === null || firstPath === void 0 ? void 0 : firstPath.getAttribute("d");
25
+ unmount();
26
+ probe.remove();
27
+ if (!d) return container.querySelectorAll("path[data-no-match]");
28
+ return container.querySelectorAll("path[d=\"".concat(d, "\"]"));
19
29
  };
20
30
  var _default = exports["default"] = findSVGs;