@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.cjs +19 -64
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +19 -64
- package/dist/index.js.map +1 -1
- package/dist/src/components/modal.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3713,49 +3713,21 @@ Input.displayName = "Input";
|
|
|
3713
3713
|
const ALERT_CONFIG = {
|
|
3714
3714
|
warning: {
|
|
3715
3715
|
titleColor: "var(--text-warning-primary)",
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
inset: "12.5%",
|
|
3720
|
-
src: "https://www.figma.com/api/mcp/asset/7052a092-a432-4e8c-b559-6b51d28d878f"
|
|
3721
|
-
},
|
|
3722
|
-
{
|
|
3723
|
-
inset: "22.5%",
|
|
3724
|
-
src: "https://www.figma.com/api/mcp/asset/a291a1b2-06c8-455c-8e21-29755aa05c57"
|
|
3725
|
-
},
|
|
3726
|
-
{
|
|
3727
|
-
inset: "28.57% 30.71% 32.86% 30.71%",
|
|
3728
|
-
src: "https://www.figma.com/api/mcp/asset/a22c7520-55fe-4003-ba78-65dab40b9e23"
|
|
3729
|
-
}
|
|
3730
|
-
]
|
|
3716
|
+
solidBg: "#f0b100",
|
|
3717
|
+
boxShadow: "0 0 0 8px rgba(240,177,0,0.2), 0 0 0 20px rgba(240,177,0,0.08)",
|
|
3718
|
+
Icon: react.Warning
|
|
3731
3719
|
},
|
|
3732
3720
|
success: {
|
|
3733
3721
|
titleColor: "var(--text-success-primary)",
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
inset: "12.77%",
|
|
3738
|
-
src: "https://www.figma.com/api/mcp/asset/5878ce35-4f9a-4203-97a8-70a2f17b182c"
|
|
3739
|
-
},
|
|
3740
|
-
{
|
|
3741
|
-
inset: "22.55%",
|
|
3742
|
-
src: "https://www.figma.com/api/mcp/asset/cea74180-b261-4db7-8712-6d32c4ccdeaf"
|
|
3743
|
-
}
|
|
3744
|
-
]
|
|
3722
|
+
solidBg: "#00c951",
|
|
3723
|
+
boxShadow: "0 0 0 8px rgba(0,201,81,0.2), 0 0 0 20px rgba(0,201,81,0.08)",
|
|
3724
|
+
Icon: react.Check
|
|
3745
3725
|
},
|
|
3746
3726
|
danger: {
|
|
3747
3727
|
titleColor: "var(--text-danger-primary)",
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
inset: "12.77%",
|
|
3752
|
-
src: "https://www.figma.com/api/mcp/asset/10090345-ae32-4fc4-aff6-cba04ea93700"
|
|
3753
|
-
},
|
|
3754
|
-
{
|
|
3755
|
-
inset: "22.55%",
|
|
3756
|
-
src: "https://www.figma.com/api/mcp/asset/3aa1156e-e48b-411f-ab98-93e1da98ecc1"
|
|
3757
|
-
}
|
|
3758
|
-
]
|
|
3728
|
+
solidBg: "#fb2c36",
|
|
3729
|
+
boxShadow: "0 0 0 8px rgba(251,44,54,0.2), 0 0 0 20px rgba(251,44,54,0.08)",
|
|
3730
|
+
Icon: react.X
|
|
3759
3731
|
}
|
|
3760
3732
|
};
|
|
3761
3733
|
function Modal({
|
|
@@ -3834,39 +3806,22 @@ function AlertBody({
|
|
|
3834
3806
|
title,
|
|
3835
3807
|
description
|
|
3836
3808
|
}) {
|
|
3809
|
+
const { Icon, titleColor, solidBg, boxShadow } = config;
|
|
3837
3810
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center gap-4 text-center", children: [
|
|
3838
|
-
/* @__PURE__ */ jsxRuntime.
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
),
|
|
3847
|
-
config.layers.map((layer) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3848
|
-
"div",
|
|
3849
|
-
{
|
|
3850
|
-
className: "absolute",
|
|
3851
|
-
style: { inset: layer.inset },
|
|
3852
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3853
|
-
"img",
|
|
3854
|
-
{
|
|
3855
|
-
alt: "",
|
|
3856
|
-
className: "absolute inset-0 size-full",
|
|
3857
|
-
src: layer.src
|
|
3858
|
-
}
|
|
3859
|
-
)
|
|
3860
|
-
},
|
|
3861
|
-
layer.src
|
|
3862
|
-
))
|
|
3863
|
-
] }),
|
|
3811
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center size-[100px]", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3812
|
+
"div",
|
|
3813
|
+
{
|
|
3814
|
+
className: "flex items-center justify-center size-[56px] rounded-full",
|
|
3815
|
+
style: { backgroundColor: solidBg, boxShadow },
|
|
3816
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: 40, color: "white" })
|
|
3817
|
+
}
|
|
3818
|
+
) }),
|
|
3864
3819
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center gap-2", children: [
|
|
3865
3820
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3866
3821
|
"p",
|
|
3867
3822
|
{
|
|
3868
3823
|
className: "text-[18px] leading-7 font-bold",
|
|
3869
|
-
style: { color:
|
|
3824
|
+
style: { color: titleColor },
|
|
3870
3825
|
children: title
|
|
3871
3826
|
}
|
|
3872
3827
|
),
|