@antscorp/ama-ui 0.0.23 → 0.0.24
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/ama-ui.es.js +64 -63
- package/dist/ama-ui.es.js.map +1 -1
- package/dist/index.d.ts +6 -0
- package/package.json +1 -1
package/dist/ama-ui.es.js
CHANGED
|
@@ -5722,109 +5722,110 @@ const Hf = { show: function(e3) {
|
|
|
5722
5722
|
}, Uf = (e3) => y(ed, { ...e3 }), Yf = (e3) => y(Cl, { ...e3 }), Gf = (e3) => {
|
|
5723
5723
|
const t2 = s((e4, t3) => "month" === e4 ? `Tháng ${t3}` : t3, []);
|
|
5724
5724
|
return y(Jc, { renderLabel: t2, ...e3 });
|
|
5725
|
-
}, Xf = (e3) => y(
|
|
5726
|
-
|
|
5727
|
-
const
|
|
5728
|
-
|
|
5729
|
-
const
|
|
5730
|
-
|
|
5731
|
-
const
|
|
5732
|
-
|
|
5733
|
-
const
|
|
5734
|
-
|
|
5735
|
-
const
|
|
5736
|
-
|
|
5737
|
-
const
|
|
5738
|
-
|
|
5739
|
-
const
|
|
5740
|
-
|
|
5741
|
-
const
|
|
5742
|
-
|
|
5743
|
-
const
|
|
5744
|
-
|
|
5745
|
-
const
|
|
5746
|
-
|
|
5725
|
+
}, Xf = (e3) => y(hc, { ...e3 }), Qf = (e3) => y(hd, { ...e3 }), Jf = (e3) => y(_c, { ...e3 });
|
|
5726
|
+
Jf.Item = _c.Item;
|
|
5727
|
+
const em = (e3) => y(Ts, { ...e3 });
|
|
5728
|
+
em.dot = Ts.dot;
|
|
5729
|
+
const tm = (e3) => y(Ll, { ...e3 });
|
|
5730
|
+
tm.Tab = Ll.Tab;
|
|
5731
|
+
const nm = (e3) => y(Fl, { ...e3 }), rm = (e3) => y(Oc, { ...e3 });
|
|
5732
|
+
rm.Panel = Oc.Panel;
|
|
5733
|
+
const om = (e3) => y(pu, { ...e3 }), im = (e3) => y(Eu, { ...e3 }), am = (e3) => y(Au, { ...e3 });
|
|
5734
|
+
am.Item = Au.Item;
|
|
5735
|
+
const sm = (e3) => y(Os, { ...e3 }), lm = (e3) => y(Xu, { ...e3 });
|
|
5736
|
+
lm.Multi = Xu.Multi;
|
|
5737
|
+
const cm = c((e3, t2) => y(sd, { ref: t2, ...e3 }));
|
|
5738
|
+
cm.Panel = sd.Panel;
|
|
5739
|
+
const um = (e3) => y(vd, { ...e3 });
|
|
5740
|
+
um.Tab = vd.Tab;
|
|
5741
|
+
const dm = (e3) => y(bd, { ...e3 }), fm = (e3) => y(Qa, { ...e3 }), mm = (e3) => y(xf, { ...e3 });
|
|
5742
|
+
mm.Item = xf.Item;
|
|
5743
|
+
const hm = (e3) => y(Ff, { ...e3 });
|
|
5744
|
+
hm.Item = Ff.Item;
|
|
5745
|
+
const pm = (e3) => y(gc, { ...e3 });
|
|
5746
|
+
pm.Tab = gc.Tab;
|
|
5747
5747
|
/**
|
|
5748
5748
|
* @license lucide-react v0.475.0 - ISC
|
|
5749
5749
|
*
|
|
5750
5750
|
* This source code is licensed under the ISC license.
|
|
5751
5751
|
* See the LICENSE file in the root directory of this source tree.
|
|
5752
5752
|
*/
|
|
5753
|
-
const
|
|
5754
|
-
var
|
|
5753
|
+
const vm = (...e3) => e3.filter((e4, t2, n2) => Boolean(e4) && "" !== e4.trim() && n2.indexOf(e4) === t2).join(" ").trim();
|
|
5754
|
+
var gm = { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" };
|
|
5755
5755
|
/**
|
|
5756
5756
|
* @license lucide-react v0.475.0 - ISC
|
|
5757
5757
|
*
|
|
5758
5758
|
* This source code is licensed under the ISC license.
|
|
5759
5759
|
* See the LICENSE file in the root directory of this source tree.
|
|
5760
5760
|
*/
|
|
5761
|
-
const
|
|
5761
|
+
const ym = c(({ color: e3 = "currentColor", size: t2 = 24, strokeWidth: n2 = 2, absoluteStrokeWidth: r2, className: o2 = "", children: i2, iconNode: a2, ...s2 }, l2) => m("svg", { ref: l2, ...gm, width: t2, height: t2, stroke: e3, strokeWidth: r2 ? 24 * Number(n2) / Number(t2) : n2, className: vm("lucide", o2), ...s2 }, [...a2.map(([e4, t3]) => m(e4, t3)), ...Array.isArray(i2) ? i2 : [i2]])), bm = ((e3, t2) => {
|
|
5762
5762
|
const n2 = c(({ className: n3, ...r2 }, o2) => {
|
|
5763
|
-
return m(
|
|
5763
|
+
return m(ym, { ref: o2, iconNode: t2, className: vm(`lucide-${i2 = e3, i2.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase()}`, n3), ...r2 });
|
|
5764
5764
|
var i2;
|
|
5765
5765
|
});
|
|
5766
5766
|
return n2.displayName = `${e3}`, n2;
|
|
5767
|
-
})("Inbox", [["polyline", { points: "22 12 16 12 14 15 10 15 8 12 2 12", key: "o97t9d" }], ["path", { d: "M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z", key: "oot6mr" }]]),
|
|
5767
|
+
})("Inbox", [["polyline", { points: "22 12 16 12 14 15 10 15 8 12 2 12", key: "o97t9d" }], ["path", { d: "M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z", key: "oot6mr" }]]), wm = (e3) => {
|
|
5768
5768
|
const t2 = o(() => {
|
|
5769
|
-
if ("empty" === e3.status) return y(
|
|
5769
|
+
if ("empty" === e3.status) return y(bm, { size: 90, style: { color: "var(--adm-color-primary)" } });
|
|
5770
5770
|
}, [e3.status]);
|
|
5771
5771
|
return y(yu, { image: t2, ...e3 });
|
|
5772
|
-
},
|
|
5772
|
+
}, Em = (e3) => y(If, { ...e3 });
|
|
5773
5773
|
/**
|
|
5774
5774
|
* @license lucide-react v0.475.0 - ISC
|
|
5775
5775
|
*
|
|
5776
5776
|
* This source code is licensed under the ISC license.
|
|
5777
5777
|
* See the LICENSE file in the root directory of this source tree.
|
|
5778
5778
|
*/
|
|
5779
|
-
|
|
5780
|
-
const
|
|
5781
|
-
|
|
5782
|
-
const
|
|
5783
|
-
const
|
|
5779
|
+
Em.Item = If.Item;
|
|
5780
|
+
const km = (e3) => y(ud, { ...e3 }), _m = (e3) => y(ms, { ...e3 });
|
|
5781
|
+
_m.show = ms.show;
|
|
5782
|
+
const Cm = (e3) => y(xd, { ...e3 }), xm = (e3) => y(Ls, { ...e3 }), Om = (e3) => y(sc, { ...e3 }), $m = (e3) => y(kf, { ...e3 });
|
|
5783
|
+
const Sm = "${label} is not a valid ${type}", Mm = "${label} không phải là một ${type} hợp lệ", Nm = function(e3, t2) {
|
|
5784
5784
|
return function e4(t3, n2) {
|
|
5785
5785
|
if ("object" != typeof t3 || "object" != typeof n2 || Array.isArray(t3) || Array.isArray(n2)) return void 0 !== n2 ? n2 : t3;
|
|
5786
5786
|
const r2 = {};
|
|
5787
5787
|
for (const o2 in t3) t3.hasOwnProperty(o2) && (r2[o2] = e4(t3[o2], n2[o2]));
|
|
5788
5788
|
return r2;
|
|
5789
5789
|
}(e3, t2);
|
|
5790
|
-
}({ locale: "en", common: { confirm: "Confirm", cancel: "Cancel", loading: "Loading", close: "Close" }, Calendar: { title: "Date selection", confirm: "Confirm", start: "start", end: "end", today: "today", markItems: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], yearAndMonth: "${year}/${month}" }, Cascader: { placeholder: "Selecting" }, Dialog: { ok: "OK" }, DatePicker: { tillNow: "Till Now" }, ErrorBlock: { default: { title: "Oops, something went wrong", description: "Please wait a minute and try again" }, busy: { title: "Oops, not loading", description: "Try to refresh the page" }, disconnected: { title: "Network is busy", description: "Try to refresh the page" }, empty: { title: "Hmm, couldn't find that...", description: "Want to try a new search?" } }, Form: { required: "Required", optional: "Optional", defaultValidateMessages: { default: "Field validation error for ${label}", required: "Please enter ${label}", enum: "${label} must be one of [${enum}]", whitespace: "${label} cannot be a blank character", date: { format: "${label} date format is invalid", parse: "${label} cannot be converted to a date", invalid: "${label} is an invalid date" }, types: { string:
|
|
5790
|
+
}({ locale: "en", common: { confirm: "Confirm", cancel: "Cancel", loading: "Loading", close: "Close" }, Calendar: { title: "Date selection", confirm: "Confirm", start: "start", end: "end", today: "today", markItems: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], yearAndMonth: "${year}/${month}" }, Cascader: { placeholder: "Selecting" }, Dialog: { ok: "OK" }, DatePicker: { tillNow: "Till Now" }, ErrorBlock: { default: { title: "Oops, something went wrong", description: "Please wait a minute and try again" }, busy: { title: "Oops, not loading", description: "Try to refresh the page" }, disconnected: { title: "Network is busy", description: "Try to refresh the page" }, empty: { title: "Hmm, couldn't find that...", description: "Want to try a new search?" } }, Form: { required: "Required", optional: "Optional", defaultValidateMessages: { default: "Field validation error for ${label}", required: "Please enter ${label}", enum: "${label} must be one of [${enum}]", whitespace: "${label} cannot be a blank character", date: { format: "${label} date format is invalid", parse: "${label} cannot be converted to a date", invalid: "${label} is an invalid date" }, types: { string: Sm, method: Sm, array: Sm, object: Sm, number: Sm, date: Sm, boolean: Sm, integer: Sm, float: Sm, regexp: Sm, email: Sm, url: Sm, hex: Sm }, string: { len: "${label} must be ${len} characters", min: "${label} must be at least ${min} characters", max: "${label} must be up to ${max} characters", range: "${label} must be between ${min}-${max} characters" }, number: { len: "${label} must be equal to ${len}", min: "${label} must be minimum ${min}", max: "${label} must be maximum ${max}", range: "${label} must be between ${min}-${max}" }, array: { len: "Must be ${len} ${label}", min: "At least ${min} ${label}", max: "At most ${max} ${label}", range: "The amount of ${label} must be between ${min}-${max}" }, pattern: { mismatch: "${label} does not match the pattern ${pattern}" } } }, ImageUploader: { uploading: "Uploading...", upload: "Upload" }, InfiniteScroll: { noMore: "No more", failedToLoad: "Failed to load", retry: "Retry" }, Input: { clear: "clear" }, Mask: { name: "Mask" }, Modal: { ok: "OK" }, PasscodeInput: { name: "Passcode Input" }, PullToRefresh: { pulling: "Scroll down to refresh", canRelease: "Release to refresh immediately", complete: "Refresh successful" }, SearchBar: { name: "Search Bar" }, Slider: { name: "Slider" }, Stepper: { decrease: "decrease", increase: "increase" }, Switch: { name: "Switch" }, Selector: { name: "Selector" } }, { locale: "vi-VN", common: { confirm: "Chắc chắn", cancel: "Hủy", loading: "Đang tải", close: "Đóng" }, Calendar: { title: "Chọn ngày", confirm: "Xác nhận", start: "Bắt đầu", end: "Kết thúc", today: "Hôm nay", markItems: ["Một", "Hai", "Ba", "Bốn", "Năm", "Sáu", "Ngày"], yearAndMonth: "Tháng ${month} năm ${year}" }, Cascader: { placeholder: "Vui lòng lựa chọn" }, Dialog: { ok: "OK" }, DatePicker: { tillNow: "Đến nay" }, ErrorBlock: { default: { title: "Trang đang gặp một số vấn đề nhỏ", description: "Đợi chút rồi thử" }, busy: { title: "Ùn tắc phía trước", description: "Thử quét mới" }, disconnected: { title: "Mạng đang bận", description: "Chạm khẽ để chỉnh sửa" }, empty: { title: "Không tìm thấy thứ bạn cần", description: "Tìm cái khác" } }, Form: { required: "Bắt buộc", optional: "Tùy chọn", defaultValidateMessages: { default: "Lỗi xác thực trường ${label}", required: "Vui lòng nhập ${label}", enum: "${label} phải là một trong [${enum}]", whitespace: "${label} không được là ký tự trống", date: { format: "${label}Định dạng ngày tháng không còn hiệu lực", parse: "${label} Không thể chuyển đổi thành ngày", invalid: "${label} là một ngày không hợp lệ" }, types: { string: Mm, method: Mm, array: Mm, object: Mm, number: Mm, date: Mm, boolean: Mm, integer: Mm, float: Mm, regexp: Mm, email: Mm, url: Mm, hex: Mm }, string: { len: "${label} phải là ${len} ký tự", min: "${label} tối thiểu ${min} ký tự", max: "${label} tối đa ${max} ký tự", range: "${label} phải ở giữa chữ ${min} - ${max}" }, number: { len: "${label} phải bằng ${len}", min: "${label} giá trị tối thiểu là ${min}", max: "${label} giá trị tối đa là ${max}", range: "${label} phải ở giữa ${min} - ${max}" }, array: { len: "Phải là ${len} chiếc ${label}", min: "Tối thiểu ${min} chiếc ${label}", max: "Tối đa ${max} chiếc ${label}", range: "${label} số lượng phải ở giữa ${min} - ${max}" }, pattern: { mismatch: "${label} không khớp với mẫu ${pattern}" } } }, ImageUploader: { uploading: "Đang tải lên...", upload: "Tải lên" }, InfiniteScroll: { noMore: "Hết rồi bạn ơi", failedToLoad: "Tải xuống thất bại", retry: "Tải lại" }, Input: { clear: "Xóa" }, Mask: { name: "Nền tối" }, Modal: { ok: "OK" }, PasscodeInput: { name: "Khung nhập mật khẩu" }, PullToRefresh: { pulling: "Kéo xuống để làm mới", canRelease: "Thả ra để làm mới", complete: "Làm mới thành công" }, SearchBar: { name: "Khung tìm kiếm" }, Slider: { name: "Thanh nhập liệu trượt" }, Stepper: { decrease: "Giảm", increase: "Tăng" }, Switch: { name: "Bật tắt" }, Selector: { name: "Chọn nhóm" } }), Tm = { ...Nm, common: { ...Nm.common, confirm: "Xác nhận" }, ErrorBlock: { ...Nm.ErrorBlock, empty: { title: "Không có dữ liệu", description: "Hiện tại không có dữ liệu, xin vui lòng thử lại sau." } } }, Am = (e3) => {
|
|
5791
5791
|
const { children: t2, ...n2 } = e3;
|
|
5792
|
-
return y(M, { ...n2, locale:
|
|
5792
|
+
return y(M, { ...n2, locale: Tm, children: t2 });
|
|
5793
5793
|
};
|
|
5794
5794
|
export {
|
|
5795
|
-
|
|
5795
|
+
_m as ActionSheet,
|
|
5796
5796
|
ps as AutoCenter,
|
|
5797
5797
|
Kf as Avatar,
|
|
5798
|
-
|
|
5798
|
+
em as Badge,
|
|
5799
5799
|
qf as Button,
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5800
|
+
tm as CapsuleTabs,
|
|
5801
|
+
nm as Card,
|
|
5802
|
+
rm as Collapse,
|
|
5803
|
+
Am as ConfigProvider,
|
|
5804
5804
|
Gf as DatePicker,
|
|
5805
5805
|
Yf as Divider,
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5806
|
+
xm as DotLoading,
|
|
5807
|
+
om as Ellipsis,
|
|
5808
|
+
wm as ErrorBlock,
|
|
5809
|
+
im as FloatingPanel,
|
|
5810
|
+
am as Grid,
|
|
5811
|
+
sm as Image,
|
|
5812
|
+
lm as ImageViewer,
|
|
5813
|
+
cm as IndexBar,
|
|
5814
|
+
km as InfiniteScroll,
|
|
5815
|
+
Qf as Input,
|
|
5816
|
+
um as JumboTabs,
|
|
5817
|
+
Jf as List,
|
|
5818
|
+
dm as NavBar,
|
|
5819
|
+
Xf as Picker,
|
|
5820
|
+
Cm as PullToRefresh,
|
|
5821
|
+
fm as SafeArea,
|
|
5822
|
+
$m as Segmented,
|
|
5823
|
+
mm as SideBar,
|
|
5823
5824
|
Uf as Space,
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5825
|
+
Om as SpinLoading,
|
|
5826
|
+
Em as Swiper,
|
|
5827
|
+
hm as TabBar,
|
|
5828
|
+
pm as Tabs,
|
|
5828
5829
|
Hf as Toast
|
|
5829
5830
|
};
|
|
5830
5831
|
//# sourceMappingURL=ama-ui.es.js.map
|