@cagatayfdn/flora-components 0.0.158 → 0.0.159
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,13 @@
|
|
|
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:
|
|
7
|
-
iconBox__secondary:
|
|
8
|
-
},
|
|
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,
|
|
7
|
+
iconBox__secondary: m
|
|
8
|
+
}, p = ({ icon: s, onClick: _, type: o = "secondary", className: r }) => /* @__PURE__ */ n.jsx("button", { className: i(c.iconBox, r, {
|
|
9
9
|
[c[`iconBox__${o}`]]: o
|
|
10
|
-
}), onClick: _, children: /* @__PURE__ */ n.jsx(
|
|
10
|
+
}), onClick: _, children: /* @__PURE__ */ n.jsx(x, { name: s }) });
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
p as default
|
|
13
13
|
};
|
package/dist/index.d.mts
CHANGED
|
@@ -730,12 +730,13 @@ export { i18n }
|
|
|
730
730
|
|
|
731
731
|
export declare const Icon: (props: IconProps) => JSX.Element;
|
|
732
732
|
|
|
733
|
-
export declare const IconBox: ({ icon, onClick, type }: IconBoxProps) => JSX_2.Element;
|
|
733
|
+
export declare const IconBox: ({ icon, onClick, type, className }: IconBoxProps) => JSX_2.Element;
|
|
734
734
|
|
|
735
735
|
export declare type IconBoxProps = {
|
|
736
736
|
icon: FloraIcons;
|
|
737
737
|
onClick?: () => void;
|
|
738
738
|
type?: "primary" | "secondary";
|
|
739
|
+
className?: string;
|
|
739
740
|
};
|
|
740
741
|
|
|
741
742
|
export declare type IconProps = {
|
package/dist/index.d.ts
CHANGED
|
@@ -730,12 +730,13 @@ export { i18n }
|
|
|
730
730
|
|
|
731
731
|
export declare const Icon: (props: IconProps) => JSX.Element;
|
|
732
732
|
|
|
733
|
-
export declare const IconBox: ({ icon, onClick, type }: IconBoxProps) => JSX_2.Element;
|
|
733
|
+
export declare const IconBox: ({ icon, onClick, type, className }: IconBoxProps) => JSX_2.Element;
|
|
734
734
|
|
|
735
735
|
export declare type IconBoxProps = {
|
|
736
736
|
icon: FloraIcons;
|
|
737
737
|
onClick?: () => void;
|
|
738
738
|
type?: "primary" | "secondary";
|
|
739
|
+
className?: string;
|
|
739
740
|
};
|
|
740
741
|
|
|
741
742
|
export declare type IconProps = {
|