@caseparts-org/caseblocks 0.0.94 → 0.0.95

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.
@@ -1,4 +1,3 @@
1
- import { default as React } from 'react';
2
1
  import { HideAtProps } from '../HideAt';
3
2
  type IconSet = "fa-kit" | "fa-solid" | "fa-regular" | "fa-light" | "fa-thin" | "fa-brands";
4
3
  type IconVariant = "fa-sharp" | "fa-duotone" | "fa-sharp-duotone";
@@ -7,7 +6,6 @@ interface IconProps extends React.HTMLAttributes<HTMLSpanElement>, HideAtProps {
7
6
  iconKey: `${IconSet} ${string}` | `${IconVariant} ${IconSet} ${string}`;
8
7
  size?: "sm" | "md" | "lg";
9
8
  colorToken?: IconColorToken;
10
- debugSizes?: boolean;
11
9
  }
12
- export declare function Icon({ iconKey, size, hideAt, className, colorToken, debugSizes, ...otherProps }: IconProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function Icon({ iconKey, size, hideAt, className, colorToken, ...otherProps }: IconProps): import("react/jsx-runtime").JSX.Element;
13
11
  export {};
@@ -1,12 +1,11 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import l from "react";
3
- import { c as _ } from "../../clsx-OuTLNxxd.js";
4
- import { getHideAtStyles as p } from "../HideAt.js";
5
- import '../../assets/Icon.css';const f = "_wrapper_1xeu5_15", r = {
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { c as n } from "../../clsx-OuTLNxxd.js";
3
+ import { getHideAtStyles as a } from "../HideAt.js";
4
+ import '../../assets/Icon.css';const t = "_wrapper_1xeu5_15", o = {
6
5
  "icon-sm": "_icon-sm_1xeu5_1",
7
6
  "icon-md": "_icon-md_1xeu5_5",
8
7
  "icon-lg": "_icon-lg_1xeu5_9",
9
- wrapper: f,
8
+ wrapper: t,
10
9
  "iconColor-inherit": "_iconColor-inherit_1xeu5_38",
11
10
  "iconColor-default": "_iconColor-default_1xeu5_39",
12
11
  "iconColor-default-inverted": "_iconColor-default-inverted_1xeu5_40",
@@ -15,44 +14,29 @@ import '../../assets/Icon.css';const f = "_wrapper_1xeu5_15", r = {
15
14
  "iconColor-error-warning": "_iconColor-error-warning_1xeu5_43",
16
15
  "iconColor-success": "_iconColor-success_1xeu5_44"
17
16
  };
18
- function h({
19
- iconKey: n,
17
+ function x({
18
+ iconKey: e,
20
19
  size: i = "md",
21
- hideAt: a,
22
- className: s,
23
- colorToken: u = "inherit",
24
- debugSizes: c = !1,
25
- ...d
20
+ hideAt: c,
21
+ className: _,
22
+ colorToken: l = "inherit",
23
+ ...s
26
24
  }) {
27
- const e = l.useRef(null);
28
- return l.useEffect(() => {
29
- if (c && e.current) {
30
- const o = getComputedStyle(e.current);
31
- console.log("[Icon debugSizes]", {
32
- width: o.width,
33
- height: o.height,
34
- iconSize: o.getPropertyValue("--icon-size"),
35
- iconPadding: o.getPropertyValue("--icon-padding"),
36
- iconWrapperSize: o.getPropertyValue("--icon-wrapper-size"),
37
- fontSize: o.fontSize
38
- });
39
- }
40
- }, [c, i, n]), /* @__PURE__ */ t(
25
+ return /* @__PURE__ */ r(
41
26
  "span",
42
27
  {
43
- ref: e,
44
- className: _(
45
- r.wrapper,
46
- r[`icon-${i}`],
47
- r[`iconColor-${u}`],
48
- p(a),
49
- s
28
+ className: n(
29
+ o.wrapper,
30
+ o[`icon-${i}`],
31
+ o[`iconColor-${l}`],
32
+ a(c),
33
+ _
50
34
  ),
51
- ...d,
52
- children: /* @__PURE__ */ t("i", { className: _(n), "aria-hidden": "true" })
35
+ ...s,
36
+ children: /* @__PURE__ */ r("i", { className: n(e), "aria-hidden": "true" })
53
37
  }
54
38
  );
55
39
  }
56
40
  export {
57
- h as Icon
41
+ x as Icon
58
42
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.94",
4
+ "version": "0.0.95",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",