@snack-uikit/icons 0.26.5-preview-76bcef09.0 → 0.26.5-preview-b8beb2db.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.
@@ -6,11 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.Sprite = void 0;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const react_1 = require("react");
9
- const utils_1 = require("@snack-uikit/utils");
10
9
  exports.Sprite = (0, react_1.memo)(function Sprite(props) {
11
- if (!(0, utils_1.isBrowser)()) {
12
- return null;
13
- }
14
10
  return (0, jsx_runtime_1.jsx)("div", {
15
11
  "data-test-id": props['data-test-id'],
16
12
  style: {
@@ -1,9 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { memo } from 'react';
3
- import { isBrowser } from '@snack-uikit/utils';
4
3
  export const Sprite = memo(function Sprite(props) {
5
- if (!isBrowser()) {
6
- return null;
7
- }
8
4
  return (_jsx("div", { "data-test-id": props['data-test-id'], style: { display: 'none' }, dangerouslySetInnerHTML: { __html: props.content } }));
9
5
  });
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "title": "Icons",
7
- "version": "0.26.5-preview-76bcef09.0",
7
+ "version": "0.26.5-preview-b8beb2db.0",
8
8
  "sideEffects": [
9
9
  "*.svg",
10
10
  "*.css",
@@ -56,5 +56,5 @@
56
56
  "svg-sprite": "2.0.2",
57
57
  "svgo": "3.1.0"
58
58
  },
59
- "gitHead": "f319535e21d641f07f7f7f20ae249d94b7586544"
59
+ "gitHead": "a9dd04b575451d7955fd4cdcf5bf3a116501f244"
60
60
  }
package/src/Sprite.tsx CHANGED
@@ -1,17 +1,11 @@
1
1
  import { memo } from 'react';
2
2
 
3
- import { isBrowser } from '@snack-uikit/utils';
4
-
5
3
  type SpriteProps = {
6
4
  content: string;
7
5
  'data-test-id'?: string;
8
6
  };
9
7
 
10
8
  export const Sprite = memo(function Sprite(props: SpriteProps) {
11
- if (!isBrowser()) {
12
- return null;
13
- }
14
-
15
9
  return (
16
10
  <div
17
11
  data-test-id={props['data-test-id']}