@fangzsx/component-library 0.0.7 → 0.0.9

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.
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ type BannerProps = {
4
+ type: "warning" | "info" | "success" | "error";
5
+ withIcon: boolean;
6
+ title: string;
7
+ description: string | ReactNode;
8
+ };
9
+ export declare function Banner(props: BannerProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,37 @@
1
+ import { jsx as o, jsxs as i } from "react/jsx-runtime";
2
+ import { ErrorOutline as d, CheckCircle as a, InfoOutlined as m, WarningAmber as h } from "@mui/icons-material";
3
+ import { Card as g, Box as c, Typography as e } from "@mui/material";
4
+ import { c as n } from "../../colors-BYtTt7gN.js";
5
+ const y = {
6
+ warning: { icon: h, color: "#f59e0b" },
7
+ info: { icon: m, color: n.primary500 },
8
+ success: { icon: a, color: "#10b981" },
9
+ error: { icon: d, color: "#ef4444" }
10
+ };
11
+ function I(t) {
12
+ const { type: l, withIcon: p, title: s, description: f } = t, r = y[l], x = r.icon;
13
+ return /* @__PURE__ */ o(
14
+ g,
15
+ {
16
+ sx: {
17
+ display: "flex",
18
+ borderLeft: `10px solid ${r.color}`,
19
+ backgroundColor: "white",
20
+ borderRadius: "5px",
21
+ py: 1.5,
22
+ px: 2,
23
+ boxShadow: 2
24
+ },
25
+ children: /* @__PURE__ */ i(c, { display: "flex", alignItems: "center", gap: 2, children: [
26
+ p && /* @__PURE__ */ o(x, { sx: { color: r.color, fontSize: "24px", mt: 0.25 } }),
27
+ /* @__PURE__ */ i(c, { children: [
28
+ /* @__PURE__ */ o(e, { sx: { fontWeight: 700, fontSize: "14px", color: n.grey800, mb: 0.5 }, children: s }),
29
+ /* @__PURE__ */ o(e, { sx: { color: n.grey600, fontSize: "14px" }, children: f })
30
+ ] })
31
+ ] })
32
+ }
33
+ );
34
+ }
35
+ export {
36
+ I as Banner
37
+ };
@@ -1,3 +1,7 @@
1
1
  import { ButtonProps } from '@mui/material/Button';
2
2
 
3
- export declare function Button(props: ButtonProps): import("react/jsx-runtime").JSX.Element;
3
+ interface CustomButtonProps extends Omit<ButtonProps, 'color'> {
4
+ color?: string;
5
+ }
6
+ export declare function Button(props: CustomButtonProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -1,5 +1,6 @@
1
1
  import "react/jsx-runtime";
2
- import { B as m } from "../../index-DP5i7LPc.js";
2
+ import "../../colors-BYtTt7gN.js";
3
+ import { B as p } from "../../index-DGepNtNg.js";
3
4
  export {
4
- m as Button
5
+ p as Button
5
6
  };
@@ -0,0 +1,3 @@
1
+ import { CheckboxProps } from '@mui/material/Checkbox';
2
+
3
+ export declare function CheckBox(props: CheckboxProps): import("react/jsx-runtime").JSX.Element;