@mirohq/design-system-icons 1.46.0 → 1.46.1-reactdismissablelayer.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.
package/dist/main.js CHANGED
@@ -4,52 +4,26 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var react = require('react');
5
5
  var designSystemBaseIcon = require('@mirohq/design-system-base-icon');
6
6
  var designSystemUseLocalStorage = require('@mirohq/design-system-use-local-storage');
7
- var designSystemUtils = require('@mirohq/design-system-utils');
8
7
  var designSystemPrimitive = require('@mirohq/design-system-primitive');
9
8
  var designSystemStitches = require('@mirohq/design-system-stitches');
9
+ var designSystemUtils = require('@mirohq/design-system-utils');
10
10
 
11
- const BaseStyledIcon = designSystemStitches.styled(designSystemPrimitive.Primitive.svg, {
11
+ const StyledIcon = designSystemStitches.styled(designSystemPrimitive.Primitive.svg, {
12
12
  display: "inline-flex",
13
13
  verticalAlign: "text-bottom",
14
14
  forcedColorAdjust: "auto",
15
15
  variants: {
16
16
  ...designSystemBaseIcon.styles,
17
- color: designSystemUtils.mapKeysToVariants(designSystemStitches.theme.colors, "color")
17
+ color: designSystemUtils.mapKeysToVariants(designSystemStitches.theme.colors, "color"),
18
+ debug: {
19
+ true: {
20
+ color: "#06D834 !important"
21
+ },
22
+ false: {}
23
+ }
18
24
  }
19
25
  });
20
26
 
21
- const DEBUG_COLOR = "#06D834";
22
- const DEBUG_STORAGE_KEY = "MIRO_DS_DEBUG_ICON";
23
- function isDebugFlagEnabled(debugProp) {
24
- var _a;
25
- if (debugProp === true) return true;
26
- if (typeof window === "undefined") return false;
27
- try {
28
- return JSON.parse((_a = window.localStorage.getItem(DEBUG_STORAGE_KEY)) != null ? _a : "false") === true;
29
- } catch {
30
- return false;
31
- }
32
- }
33
- const StyledIcon = react.forwardRef(
34
- ({ debug, ...props }, forwardedRef) => {
35
- const internalRef = react.useRef(null);
36
- react.useLayoutEffect(() => {
37
- const el = internalRef.current;
38
- if (el == null || !isDebugFlagEnabled(debug)) return;
39
- el.style.setProperty("color", DEBUG_COLOR, "important");
40
- el.style.setProperty("fill", DEBUG_COLOR, "important");
41
- return () => {
42
- el.style.removeProperty("color");
43
- el.style.removeProperty("fill");
44
- };
45
- }, [debug]);
46
- return react.createElement(BaseStyledIcon, {
47
- ...props,
48
- ref: designSystemUtils.mergeRefs([internalRef, forwardedRef])
49
- });
50
- }
51
- );
52
-
53
27
  const IconActivitySparkle = react.forwardRef(
54
28
  ({ size = "medium", ...props }, forwardRef2) => {
55
29
  const [debug] = designSystemUseLocalStorage.useLocalStorage("DEBUG_ICON", false);
@@ -630,26 +604,6 @@ const IconAndroidShare = react.forwardRef(
630
604
  );
631
605
  IconAndroidShare[designSystemBaseIcon.iconSymbol] = true;
632
606
 
633
- const IconAngleSlash = react.forwardRef(
634
- ({ size = "medium", ...props }, forwardRef2) => {
635
- const [debug] = designSystemUseLocalStorage.useLocalStorage("DEBUG_ICON", false);
636
- return react.createElement(
637
- StyledIcon,
638
- {
639
- ...props,
640
- debug,
641
- "aria-hidden": true,
642
- size,
643
- viewBox: "0 0 24 24",
644
- fill: "none",
645
- ref: forwardRef2
646
- },
647
- /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "currentColor", d: "M15.032 4 11 20H9l4-16h2.032Z" })
648
- );
649
- }
650
- );
651
- IconAngleSlash[designSystemBaseIcon.iconSymbol] = true;
652
-
653
607
  const IconArrowArcLeft = react.forwardRef(
654
608
  ({ size = "medium", ...props }, forwardRef2) => {
655
609
  const [debug] = designSystemUseLocalStorage.useLocalStorage("DEBUG_ICON", false);
@@ -18144,7 +18098,6 @@ exports.IconAlignmentScale = IconAlignmentScale;
18144
18098
  exports.IconAltText = IconAltText;
18145
18099
  exports.IconAltTextUnderline = IconAltTextUnderline;
18146
18100
  exports.IconAndroidShare = IconAndroidShare;
18147
- exports.IconAngleSlash = IconAngleSlash;
18148
18101
  exports.IconArrowArcLeft = IconArrowArcLeft;
18149
18102
  exports.IconArrowArcRight = IconArrowArcRight;
18150
18103
  exports.IconArrowBendUpLeft = IconArrowBendUpLeft;