@sarunyu/system-one 4.9.9 → 4.9.11

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/index.js CHANGED
@@ -3694,49 +3694,21 @@ Input.displayName = "Input";
3694
3694
  const ALERT_CONFIG = {
3695
3695
  warning: {
3696
3696
  titleColor: "var(--text-warning-primary)",
3697
- background: "https://www.figma.com/api/mcp/asset/f4ca68ad-5732-4124-9ff4-cfb69330cc02",
3698
- layers: [
3699
- {
3700
- inset: "12.5%",
3701
- src: "https://www.figma.com/api/mcp/asset/7052a092-a432-4e8c-b559-6b51d28d878f"
3702
- },
3703
- {
3704
- inset: "22.5%",
3705
- src: "https://www.figma.com/api/mcp/asset/a291a1b2-06c8-455c-8e21-29755aa05c57"
3706
- },
3707
- {
3708
- inset: "28.57% 30.71% 32.86% 30.71%",
3709
- src: "https://www.figma.com/api/mcp/asset/a22c7520-55fe-4003-ba78-65dab40b9e23"
3710
- }
3711
- ]
3697
+ solidBg: "#f0b100",
3698
+ boxShadow: "0 0 0 8px rgba(240,177,0,0.2), 0 0 0 20px rgba(240,177,0,0.08)",
3699
+ Icon: Warning
3712
3700
  },
3713
3701
  success: {
3714
3702
  titleColor: "var(--text-success-primary)",
3715
- background: "https://www.figma.com/api/mcp/asset/2a865e6f-8a92-4496-88b5-71ac99e2c385",
3716
- layers: [
3717
- {
3718
- inset: "12.77%",
3719
- src: "https://www.figma.com/api/mcp/asset/5878ce35-4f9a-4203-97a8-70a2f17b182c"
3720
- },
3721
- {
3722
- inset: "22.55%",
3723
- src: "https://www.figma.com/api/mcp/asset/cea74180-b261-4db7-8712-6d32c4ccdeaf"
3724
- }
3725
- ]
3703
+ solidBg: "#00c951",
3704
+ boxShadow: "0 0 0 8px rgba(0,201,81,0.2), 0 0 0 20px rgba(0,201,81,0.08)",
3705
+ Icon: Check
3726
3706
  },
3727
3707
  danger: {
3728
3708
  titleColor: "var(--text-danger-primary)",
3729
- background: "https://www.figma.com/api/mcp/asset/c7a65595-684e-4a04-b7fd-d443951f680a",
3730
- layers: [
3731
- {
3732
- inset: "12.77%",
3733
- src: "https://www.figma.com/api/mcp/asset/10090345-ae32-4fc4-aff6-cba04ea93700"
3734
- },
3735
- {
3736
- inset: "22.55%",
3737
- src: "https://www.figma.com/api/mcp/asset/3aa1156e-e48b-411f-ab98-93e1da98ecc1"
3738
- }
3739
- ]
3709
+ solidBg: "#fb2c36",
3710
+ boxShadow: "0 0 0 8px rgba(251,44,54,0.2), 0 0 0 20px rgba(251,44,54,0.08)",
3711
+ Icon: X
3740
3712
  }
3741
3713
  };
3742
3714
  function Modal({
@@ -3815,39 +3787,22 @@ function AlertBody({
3815
3787
  title,
3816
3788
  description
3817
3789
  }) {
3790
+ const { Icon, titleColor, solidBg, boxShadow } = config;
3818
3791
  return /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-4 text-center", children: [
3819
- /* @__PURE__ */ jsxs("div", { className: "relative size-[100px]", children: [
3820
- /* @__PURE__ */ jsx(
3821
- "img",
3822
- {
3823
- alt: "",
3824
- className: "absolute inset-0 size-full",
3825
- src: config.background
3826
- }
3827
- ),
3828
- config.layers.map((layer) => /* @__PURE__ */ jsx(
3829
- "div",
3830
- {
3831
- className: "absolute",
3832
- style: { inset: layer.inset },
3833
- children: /* @__PURE__ */ jsx(
3834
- "img",
3835
- {
3836
- alt: "",
3837
- className: "absolute inset-0 size-full",
3838
- src: layer.src
3839
- }
3840
- )
3841
- },
3842
- layer.src
3843
- ))
3844
- ] }),
3792
+ /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center size-[100px]", children: /* @__PURE__ */ jsx(
3793
+ "div",
3794
+ {
3795
+ className: "flex items-center justify-center size-[56px] rounded-full",
3796
+ style: { backgroundColor: solidBg, boxShadow },
3797
+ children: /* @__PURE__ */ jsx(Icon, { size: 40, color: "white" })
3798
+ }
3799
+ ) }),
3845
3800
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-2", children: [
3846
3801
  /* @__PURE__ */ jsx(
3847
3802
  "p",
3848
3803
  {
3849
3804
  className: "text-[18px] leading-7 font-bold",
3850
- style: { color: config.titleColor },
3805
+ style: { color: titleColor },
3851
3806
  children: title
3852
3807
  }
3853
3808
  ),