@youngonesworks/ui 0.1.17 → 0.1.18

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,10 +6,11 @@ export interface ActionIconProps {
6
6
  type?: 'button' | 'submit' | 'reset' | undefined;
7
7
  styleVariant?: 'default' | 'transparent' | 'small' | 'round';
8
8
  onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
9
- icon: ReactNode;
9
+ icon?: ReactNode;
10
10
  iconSize?: number;
11
11
  strokeWidth?: number;
12
12
  className?: string;
13
+ children?: ReactNode;
13
14
  /**
14
15
  * @deprecated Can be removed and replaced by iconSize
15
16
  */
@@ -19,5 +20,5 @@ export interface ActionIconProps {
19
20
  */
20
21
  height?: string;
21
22
  }
22
- declare const ActionIcon: import("react").ForwardRefExoticComponent<ActionIconProps & import("react").RefAttributes<HTMLButtonElement>>;
23
+ declare const ActionIcon: React.ForwardRefExoticComponent<ActionIconProps & React.RefAttributes<HTMLButtonElement>>;
23
24
  export { ActionIcon };
package/dist/index.cjs CHANGED
@@ -102933,10 +102933,10 @@ const ActionIcon = (0, react.forwardRef)(({ title, disabled = false, styleVarian
102933
102933
  "data-tooltip-id": title,
102934
102934
  "data-tooltip-content": title,
102935
102935
  ...props,
102936
- children: formatIcon(icon, {
102936
+ children: icon ? formatIcon(icon, {
102937
102937
  stroke: strokeWidth,
102938
102938
  size: iconSize
102939
- })
102939
+ }) : props.children
102940
102940
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(M, {
102941
102941
  id: title,
102942
102942
  className: "z-[99]"