@sarunyu/system-one 4.9.10 → 4.9.12
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 +55 -65
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +54 -64
- package/dist/index.js.map +1 -1
- package/dist/src/components/modal.d.ts.map +1 -1
- package/dist/src/index.d.ts +42 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/llms.txt +19 -0
- package/package.json +1 -1
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
|
-
|
|
3698
|
-
|
|
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
|
-
|
|
3716
|
-
|
|
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
|
-
|
|
3730
|
-
|
|
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__ */
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
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:
|
|
3805
|
+
style: { color: titleColor },
|
|
3851
3806
|
children: title
|
|
3852
3807
|
}
|
|
3853
3808
|
),
|
|
@@ -5899,6 +5854,40 @@ const TimeInput = forwardRef(
|
|
|
5899
5854
|
}
|
|
5900
5855
|
);
|
|
5901
5856
|
TimeInput.displayName = "TimeInput";
|
|
5857
|
+
const index = {
|
|
5858
|
+
Button,
|
|
5859
|
+
Badge,
|
|
5860
|
+
Alert,
|
|
5861
|
+
Card,
|
|
5862
|
+
Checkbox,
|
|
5863
|
+
Toggle,
|
|
5864
|
+
Radio,
|
|
5865
|
+
Chip,
|
|
5866
|
+
DateInput,
|
|
5867
|
+
Dropdown,
|
|
5868
|
+
DropdownMultiple,
|
|
5869
|
+
Input,
|
|
5870
|
+
Modal,
|
|
5871
|
+
Notification,
|
|
5872
|
+
Toast,
|
|
5873
|
+
ToastStack,
|
|
5874
|
+
Toaster,
|
|
5875
|
+
BottomSheet,
|
|
5876
|
+
OptionList,
|
|
5877
|
+
SearchInput,
|
|
5878
|
+
Tab,
|
|
5879
|
+
TabGroup,
|
|
5880
|
+
Tag,
|
|
5881
|
+
StatusTag,
|
|
5882
|
+
Table,
|
|
5883
|
+
TableRow,
|
|
5884
|
+
TableHeaderCell,
|
|
5885
|
+
TableCell,
|
|
5886
|
+
TextArea,
|
|
5887
|
+
TimeInput,
|
|
5888
|
+
cn,
|
|
5889
|
+
useIsMobile
|
|
5890
|
+
};
|
|
5902
5891
|
export {
|
|
5903
5892
|
Alert,
|
|
5904
5893
|
Badge,
|
|
@@ -5931,6 +5920,7 @@ export {
|
|
|
5931
5920
|
Toaster,
|
|
5932
5921
|
Toggle,
|
|
5933
5922
|
cn,
|
|
5923
|
+
index as default,
|
|
5934
5924
|
useIsMobile
|
|
5935
5925
|
};
|
|
5936
5926
|
//# sourceMappingURL=index.js.map
|