@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.
- package/dist/ReactToastify.css +1 -1
- package/dist/components/IconBox/IconBox.js +10 -9
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { j as n } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
-
import { c as
|
|
3
|
-
import
|
|
4
|
-
import '../../IconBox.css';const
|
|
5
|
-
iconBox:
|
|
6
|
-
iconBox__primary:
|
|
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
|
-
},
|
|
9
|
-
[c[`iconBox__${o}`]]: o
|
|
10
|
-
|
|
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
|
-
|
|
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
|
|