@cagatayfdn/flora-components 0.0.162 → 0.0.163

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,13 +1,14 @@
1
1
  import { j as n } from "../../jsx-runtime-BcAkpsdy.js";
2
- import { c as i } from "../../index-BHf7G3IG.js";
3
- import x from "../Icon/index.js";
4
- import '../../IconBox.css';const a = "_iconBox_jz84k_2", t = "_iconBox__primary_jz84k_2", m = "_iconBox__secondary_jz84k_2", c = {
5
- iconBox: a,
6
- iconBox__primary: t,
2
+ import { c as t } from "../../index-BHf7G3IG.js";
3
+ import a from "../Icon/index.js";
4
+ import '../../IconBox.css';const x = "_iconBox_jz84k_2", e = "_iconBox__primary_jz84k_2", m = "_iconBox__secondary_jz84k_2", c = {
5
+ iconBox: x,
6
+ iconBox__primary: e,
7
7
  iconBox__secondary: m
8
- }, p = ({ icon: s, onClick: _, type: o = "secondary", className: r }) => /* @__PURE__ */ n.jsx("button", { className: i(c.iconBox, r, {
9
- [c[`iconBox__${o}`]]: o
10
- }), onClick: _, children: /* @__PURE__ */ n.jsx(x, { name: s }) });
8
+ }, j = ({ icon: s, onClick: _, isDisabled: r, type: o = "secondary", className: i }) => /* @__PURE__ */ n.jsx("button", { className: t(c.iconBox, i, {
9
+ [c[`iconBox__${o}`]]: o,
10
+ "pointer-events-none opacity-50": r
11
+ }), onClick: _, children: /* @__PURE__ */ n.jsx(a, { name: s }) });
11
12
  export {
12
- p as default
13
+ j as default
13
14
  };
package/dist/index.d.mts CHANGED
@@ -734,12 +734,13 @@ export { i18n }
734
734
 
735
735
  export declare const Icon: (props: IconProps) => JSX.Element;
736
736
 
737
- export declare const IconBox: ({ icon, onClick, type, className }: IconBoxProps) => JSX_2.Element;
737
+ export declare const IconBox: ({ icon, onClick, isDisabled, type, className }: IconBoxProps) => JSX_2.Element;
738
738
 
739
739
  export declare type IconBoxProps = {
740
740
  icon: FloraIcons;
741
741
  onClick?: () => void;
742
742
  type?: "primary" | "secondary";
743
+ isDisabled?: boolean;
743
744
  className?: string;
744
745
  };
745
746
 
package/dist/index.d.ts CHANGED
@@ -734,12 +734,13 @@ export { i18n }
734
734
 
735
735
  export declare const Icon: (props: IconProps) => JSX.Element;
736
736
 
737
- export declare const IconBox: ({ icon, onClick, type, className }: IconBoxProps) => JSX_2.Element;
737
+ export declare const IconBox: ({ icon, onClick, isDisabled, type, className }: IconBoxProps) => JSX_2.Element;
738
738
 
739
739
  export declare type IconBoxProps = {
740
740
  icon: FloraIcons;
741
741
  onClick?: () => void;
742
742
  type?: "primary" | "secondary";
743
+ isDisabled?: boolean;
743
744
  className?: string;
744
745
  };
745
746
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cagatayfdn/flora-components",
3
- "version": "0.0.162",
3
+ "version": "0.0.163",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",