@fangzsx/component-library 0.0.39 → 0.0.40

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,24 @@
1
+ const c = "#1D252D", n = "#404A58", s = "#566376", t = "#8996A9", o = "#C4CBD4", r = "#E6EAED", e = "#F4F7F9", E = "#053E72", F = "#0B6B9F", y = "#27A4E8", a = "#C8EDFE", i = "#E6F6FF", g = "#055C56", p = "#E6FEEE", m = "#8E3007", C = "#FFF9F0", D = "#800711", d = "#FFECEB", A = "#fff", B = {
2
+ grey800: c,
3
+ grey700: n,
4
+ grey600: s,
5
+ grey400: t,
6
+ grey200: o,
7
+ grey100: r,
8
+ grey50: e,
9
+ primary800: E,
10
+ primary700: F,
11
+ primary500: y,
12
+ primary100: a,
13
+ primary50: i,
14
+ secondary800: g,
15
+ secondary50: p,
16
+ warning800: m,
17
+ warning50: C,
18
+ destructive800: D,
19
+ destructive50: d,
20
+ white: A
21
+ };
22
+ export {
23
+ B as c
24
+ };
@@ -3,7 +3,7 @@ import { c as E } from "../../createSvgIcon-C0YrvByi.js";
3
3
  import { Stack as w, Popper as $, ClickAwayListener as D, Paper as U } from "@mui/material";
4
4
  import * as C from "react";
5
5
  import { useState as Z } from "react";
6
- import { C as G, B as b } from "../../index-CdcRS0lC.js";
6
+ import { C as G, B as b } from "../../index-D9x5yU0s.js";
7
7
  import { g as V, a as A, c as l, P as r } from "../../generateUtilityClasses-BCID9NF1.js";
8
8
  import { u as H, s as B, c as T, a as h, m as v } from "../../DefaultPropsProvider-DVX_ssOt.js";
9
9
  import { c as I, a as F } from "../../useTimeout-UzNJH-cm.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as o, jsxs as i } from "react/jsx-runtime";
2
2
  import { ErrorOutline as d, CheckCircle as a, InfoOutlined as m, WarningAmber as h } from "@mui/icons-material";
3
3
  import { Card as g, Box as c, Typography as e } from "@mui/material";
4
- import { c as n } from "../../colors-CyChpKWu.js";
4
+ import { c as n } from "../../colors-BVcu3WVm.js";
5
5
  const y = {
6
6
  warning: { icon: h, color: "#f59e0b" },
7
7
  info: { icon: m, color: n.primary500 },
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
- import "../../colors-CyChpKWu.js";
3
- import { B as p } from "../../index-CdcRS0lC.js";
2
+ import "../../colors-BVcu3WVm.js";
3
+ import { B as p } from "../../index-D9x5yU0s.js";
4
4
  export {
5
5
  p as Button
6
6
  };
@@ -2,7 +2,7 @@ import { jsxs as d, jsx as r, Fragment as y } from "react/jsx-runtime";
2
2
  import { ExpandMoreOutlined as C } from "@mui/icons-material";
3
3
  import { Box as I, IconButton as v, Menu as M, MenuItem as k, ListItemIcon as w, ListItemText as j } from "@mui/material";
4
4
  import { useState as B } from "react";
5
- import { c as t } from "../../colors-CyChpKWu.js";
5
+ import { c as t } from "../../colors-BVcu3WVm.js";
6
6
  function L({
7
7
  items: h,
8
8
  activeItemId: e,
@@ -1,7 +1,7 @@
1
1
  import { jsx as n, jsxs as i } from "react/jsx-runtime";
2
2
  import { ErrorOutline as C, CheckCircle as f, InfoOutlineRounded as g, WarningAmberRounded as x } from "@mui/icons-material";
3
3
  import { Card as m, Box as e, Typography as t } from "@mui/material";
4
- import { c as o } from "../../colors-CyChpKWu.js";
4
+ import { c as o } from "../../colors-BVcu3WVm.js";
5
5
  const b = {
6
6
  warning: { titleColor: o.warning800, bgColor: o.warning50, icon: x, iconColor: "#f59e0b" },
7
7
  info: { titleColor: o.primary800, bgColor: o.primary50, icon: g, iconColor: "#f59e0b" },
@@ -3,7 +3,7 @@ import { C as M } from "../../Close-pjIlDyCW.js";
3
3
  import { c as P } from "../../createSvgIcon-C0YrvByi.js";
4
4
  import { FormControl as T, FormLabel as U, Box as l, Stack as V, Typography as a, IconButton as E, FormHelperText as q } from "@mui/material";
5
5
  import { useState as y, useRef as G, useCallback as J } from "react";
6
- import { c as e } from "../../colors-CyChpKWu.js";
6
+ import { c as e } from "../../colors-BVcu3WVm.js";
7
7
  const K = P(/* @__PURE__ */ o("path", {
8
8
  d: "M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-4.86 8.86-3 3.87L9 13.14 6 17h12z"
9
9
  }), "ImageOutlined");
@@ -25,7 +25,7 @@ function or({
25
25
  disabled: n = !1,
26
26
  onChange: p
27
27
  }) {
28
- const [k, h] = y(!1), [u, D] = y(null), [R, w] = y(""), d = G(null), C = m * 1024 * 1024, S = s.map((r) => `.${r}`).join(","), j = s.map(
28
+ const [k, h] = y(!1), [u, w] = y(null), [R, D] = y(""), d = G(null), C = m * 1024 * 1024, S = s.map((r) => `.${r}`).join(","), j = s.map(
29
29
  (r) => `image/${r === "jpg" ? "jpeg" : r}`
30
30
  ), I = J(
31
31
  function(r) {
@@ -40,7 +40,7 @@ function or({
40
40
  }
41
41
  const O = new FileReader();
42
42
  O.onload = function(g) {
43
- D(g.target?.result), w(r.name), p?.(r, "");
43
+ w(g.target?.result), D(r.name), p?.(r, "");
44
44
  }, O.readAsDataURL(r);
45
45
  },
46
46
  [j, C, m, s, p]
@@ -61,7 +61,7 @@ function or({
61
61
  I(r.target.files?.[0] ?? null);
62
62
  }
63
63
  function B(r) {
64
- r.stopPropagation(), D(null), w(""), p?.(null, ""), d.current && (d.current.value = "");
64
+ r.stopPropagation(), w(null), D(""), p?.(null, ""), d.current && (d.current.value = "");
65
65
  }
66
66
  const f = !!v || x && !u, $ = v || (x && !u ? `${i} can't be empty` : ""), { baseName: A, extension: H } = Q(R);
67
67
  return /* @__PURE__ */ t(T, { fullWidth: !0, error: f, disabled: n, children: [
@@ -96,7 +96,7 @@ function or({
96
96
  p: u ? 1.5 : 4,
97
97
  textAlign: "center",
98
98
  cursor: n ? "default" : "pointer",
99
- bgcolor: n ? "action.disabledBackground" : k ? e.primary500 : e.grey50,
99
+ bgcolor: n ? "action.disabledBackground" : k ? e.primary500 : e.white,
100
100
  transition: "all 0.2s ease",
101
101
  opacity: n ? 0.6 : 1,
102
102
  "&:hover": n ? {} : {
@@ -1,5 +1,5 @@
1
1
  import { jsx as d, jsxs as x } from "react/jsx-runtime";
2
- import { B as A } from "../../index-CdcRS0lC.js";
2
+ import { B as A } from "../../index-D9x5yU0s.js";
3
3
  import * as u from "react";
4
4
  import { g as m, a as f, P as e } from "../../generateUtilityClasses-BCID9NF1.js";
5
5
  import { u as C, s as g, c as y, a as b } from "../../DefaultPropsProvider-DVX_ssOt.js";
@@ -2,7 +2,7 @@ import { jsxs as B, jsx as o } from "react/jsx-runtime";
2
2
  import { Close as D, LocalOffer as I } from "@mui/icons-material";
3
3
  import { Box as c, Chip as S, IconButton as A, Typography as h, TextField as R, InputAdornment as T, CircularProgress as W, Button as k } from "@mui/material";
4
4
  import { useState as w, useRef as O, useEffect as P, useCallback as n } from "react";
5
- import { c as r } from "../../colors-CyChpKWu.js";
5
+ import { c as r } from "../../colors-BVcu3WVm.js";
6
6
  function K({
7
7
  value: e,
8
8
  onChange: d,
@@ -1,5 +1,5 @@
1
1
  import { jsx as c, jsxs as U } from "react/jsx-runtime";
2
- import { c as P } from "./colors-CyChpKWu.js";
2
+ import { c as P } from "./colors-BVcu3WVm.js";
3
3
  import * as k from "react";
4
4
  import { g as G, a as _, c as i, P as t } from "./generateUtilityClasses-BCID9NF1.js";
5
5
  import { u as A, s as f, c as R, a as H, m as O, b as so, r as lo } from "./DefaultPropsProvider-DVX_ssOt.js";
package/dist/main.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { AppBarPublic as e } from "./components/AppBarPublic/index.js";
2
2
  import { Banner as p } from "./components/Banner/index.js";
3
- import { B as m } from "./index-CdcRS0lC.js";
3
+ import { B as m } from "./index-D9x5yU0s.js";
4
4
  import { CheckBox as a } from "./components/Checkbox/index.js";
5
5
  import { ScrollableDialog as d } from "./components/Dialog/index.js";
6
6
  import { CheckboxGroup as l } from "./components/CheckboxGroup/index.js";
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fangzsx/component-library",
3
3
  "author": "Jay Gilbert Garzon",
4
4
  "private": false,
5
- "version": "0.0.39",
5
+ "version": "0.0.40",
6
6
  "type": "module",
7
7
  "main": "dist/main.js",
8
8
  "types": "dist/main.d.ts",
@@ -1,23 +0,0 @@
1
- const c = "#1D252D", n = "#404A58", r = "#566376", s = "#8996A9", o = "#C4CBD4", t = "#E6EAED", E = "#F4F7F9", F = "#053E72", e = "#0B6B9F", y = "#27A4E8", a = "#C8EDFE", g = "#E6F6FF", i = "#055C56", p = "#E6FEEE", m = "#8E3007", C = "#FFF9F0", D = "#800711", d = "#FFECEB", A = {
2
- grey800: c,
3
- grey700: n,
4
- grey600: r,
5
- grey400: s,
6
- grey200: o,
7
- grey100: t,
8
- grey50: E,
9
- primary800: F,
10
- primary700: e,
11
- primary500: y,
12
- primary100: a,
13
- primary50: g,
14
- secondary800: i,
15
- secondary50: p,
16
- warning800: m,
17
- warning50: C,
18
- destructive800: D,
19
- destructive50: d
20
- };
21
- export {
22
- A as c
23
- };