@antscorp/ama-ui 0.0.41 → 0.0.43

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/README.md CHANGED
@@ -1,50 +1,50 @@
1
- # React + TypeScript + Vite
2
-
3
- This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
-
5
- Currently, two official plugins are available:
6
-
7
- - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
- - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
-
10
- ## Expanding the ESLint configuration
11
-
12
- If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
13
-
14
- - Configure the top-level `parserOptions` property like this:
15
-
16
- ```js
17
- export default tseslint.config({
18
- languageOptions: {
19
- // other options...
20
- parserOptions: {
21
- project: ['./tsconfig.node.json', './tsconfig.app.json'],
22
- tsconfigRootDir: import.meta.dirname,
23
- },
24
- },
25
- })
26
- ```
27
-
28
- - Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
29
- - Optionally add `...tseslint.configs.stylisticTypeChecked`
30
- - Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:
31
-
32
- ```js
33
- // eslint.config.js
34
- import react from 'eslint-plugin-react'
35
-
36
- export default tseslint.config({
37
- // Set the react version
38
- settings: { react: { version: '18.3' } },
39
- plugins: {
40
- // Add the react plugin
41
- react,
42
- },
43
- rules: {
44
- // other rules...
45
- // Enable its recommended rules
46
- ...react.configs.recommended.rules,
47
- ...react.configs['jsx-runtime'].rules,
48
- },
49
- })
50
- ```
1
+ # React + TypeScript + Vite
2
+
3
+ This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
+
5
+ Currently, two official plugins are available:
6
+
7
+ - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
+ - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
+
10
+ ## Expanding the ESLint configuration
11
+
12
+ If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
13
+
14
+ - Configure the top-level `parserOptions` property like this:
15
+
16
+ ```js
17
+ export default tseslint.config({
18
+ languageOptions: {
19
+ // other options...
20
+ parserOptions: {
21
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
22
+ tsconfigRootDir: import.meta.dirname,
23
+ },
24
+ },
25
+ })
26
+ ```
27
+
28
+ - Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
29
+ - Optionally add `...tseslint.configs.stylisticTypeChecked`
30
+ - Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:
31
+
32
+ ```js
33
+ // eslint.config.js
34
+ import react from 'eslint-plugin-react'
35
+
36
+ export default tseslint.config({
37
+ // Set the react version
38
+ settings: { react: { version: '18.3' } },
39
+ plugins: {
40
+ // Add the react plugin
41
+ react,
42
+ },
43
+ rules: {
44
+ // other rules...
45
+ // Enable its recommended rules
46
+ ...react.configs.recommended.rules,
47
+ ...react.configs['jsx-runtime'].rules,
48
+ },
49
+ })
50
+ ```
package/dist/ama-ui.es.js CHANGED
@@ -9340,156 +9340,157 @@ const rb = { show: function(e4) {
9340
9340
  }, hb = (e4) => w(Up, { ...e4 }), pb = (e4) => w(oc, { ...e4 }), vb = (e4) => {
9341
9341
  const t2 = l((e5, t3) => "month" === e5 ? `Tháng ${t3}` : t3, []);
9342
9342
  return w(ud, { renderLabel: t2, ...e4 });
9343
- }, gb = (e4) => w(Gc, { ...e4 }), yb = (e4) => w(sv, { ...e4 }), bb = (e4) => w(iu, { ...e4 });
9344
- bb.Item = iu.Item;
9345
- const wb = (e4) => w(Hl, { ...e4 });
9346
- wb.dot = Hl.dot;
9347
- const Eb = (e4) => w(pc, { ...e4 });
9348
- Eb.Tab = pc.Tab;
9349
- const kb = (e4) => w(gc, { ...e4 }), Cb = (e4) => w(Ru, { ...e4 });
9350
- Cb.Panel = Ru.Panel;
9351
- const xb = (e4) => w(Id, { ...e4 }), Ob = (e4) => w(Zd, { ...e4 }), Nb = (e4) => w(Op, { ...e4 });
9352
- Nb.Item = Op.Item;
9353
- const $b = (e4) => w(Zl, { ...e4 }), _b = (e4) => w(zp, { ...e4 });
9354
- _b.Multi = zp.Multi;
9355
- const Fb = c((e4, t2) => w(ev, { ref: t2, ...e4 }));
9356
- Fb.Panel = ev.Panel;
9357
- const Sb = (e4) => w(uv, { ...e4 });
9358
- Sb.Tab = uv.Tab;
9359
- const Mb = (e4) => w(Ev, { ...e4 }), Ab = (e4) => w(ml, { ...e4 }), Lb = (e4) => w(Xg, { ...e4 });
9360
- Lb.Item = Xg.Item;
9361
- const Ib = (e4) => w(Zy, { ...e4 });
9362
- Ib.Item = Zy.Item;
9363
- const Tb = (e4) => w(Qc, { ...e4 });
9364
- Tb.Tab = Qc.Tab;
9343
+ }, gb = (e4) => w(Gc, { ...e4 }), yb = (e4) => w(qc, { ...e4 }), bb = (e4) => w(sv, { ...e4 }), wb = (e4) => w(iu, { ...e4 });
9344
+ wb.Item = iu.Item;
9345
+ const Eb = (e4) => w(Hl, { ...e4 });
9346
+ Eb.dot = Hl.dot;
9347
+ const kb = (e4) => w(pc, { ...e4 });
9348
+ kb.Tab = pc.Tab;
9349
+ const Cb = (e4) => w(gc, { ...e4 }), xb = (e4) => w(Ru, { ...e4 });
9350
+ xb.Panel = Ru.Panel;
9351
+ const Ob = (e4) => w(Id, { ...e4 }), Nb = (e4) => w(Zd, { ...e4 }), $b = (e4) => w(Op, { ...e4 });
9352
+ $b.Item = Op.Item;
9353
+ const _b = (e4) => w(Zl, { ...e4 }), Fb = (e4) => w(zp, { ...e4 });
9354
+ Fb.Multi = zp.Multi;
9355
+ const Sb = c((e4, t2) => w(ev, { ref: t2, ...e4 }));
9356
+ Sb.Panel = ev.Panel;
9357
+ const Mb = (e4) => w(uv, { ...e4 });
9358
+ Mb.Tab = uv.Tab;
9359
+ const Ab = (e4) => w(Ev, { ...e4 }), Lb = (e4) => w(ml, { ...e4 }), Ib = (e4) => w(Xg, { ...e4 });
9360
+ Ib.Item = Xg.Item;
9361
+ const Tb = (e4) => w(Zy, { ...e4 });
9362
+ Tb.Item = Zy.Item;
9363
+ const Pb = (e4) => w(Qc, { ...e4 });
9364
+ Pb.Tab = Qc.Tab;
9365
9365
  /**
9366
9366
  * @license lucide-react v0.475.0 - ISC
9367
9367
  *
9368
9368
  * This source code is licensed under the ISC license.
9369
9369
  * See the LICENSE file in the root directory of this source tree.
9370
9370
  */
9371
- const Pb = (e4) => e4.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Rb = (...e4) => e4.filter((e5, t2, n2) => Boolean(e5) && "" !== e5.trim() && n2.indexOf(e5) === t2).join(" ").trim();
9372
- var jb = { 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" };
9371
+ const Rb = (e4) => e4.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jb = (...e4) => e4.filter((e5, t2, n2) => Boolean(e5) && "" !== e5.trim() && n2.indexOf(e5) === t2).join(" ").trim();
9372
+ var Db = { 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" };
9373
9373
  /**
9374
9374
  * @license lucide-react v0.475.0 - ISC
9375
9375
  *
9376
9376
  * This source code is licensed under the ISC license.
9377
9377
  * See the LICENSE file in the root directory of this source tree.
9378
9378
  */
9379
- const Db = c(({ color: e4 = "currentColor", size: t2 = 24, strokeWidth: n2 = 2, absoluteStrokeWidth: r2, className: i2 = "", children: o2, iconNode: a2, ...l2 }, s2) => h("svg", { ref: s2, ...jb, width: t2, height: t2, stroke: e4, strokeWidth: r2 ? 24 * Number(n2) / Number(t2) : n2, className: Rb("lucide", i2), ...l2 }, [...a2.map(([e5, t3]) => h(e5, t3)), ...Array.isArray(o2) ? o2 : [o2]])), Vb = ((e4, t2) => {
9380
- const n2 = c(({ className: n3, ...r2 }, i2) => h(Db, { ref: i2, iconNode: t2, className: Rb(`lucide-${Pb(e4)}`, n3), ...r2 }));
9379
+ const Vb = c(({ color: e4 = "currentColor", size: t2 = 24, strokeWidth: n2 = 2, absoluteStrokeWidth: r2, className: i2 = "", children: o2, iconNode: a2, ...l2 }, s2) => h("svg", { ref: s2, ...Db, width: t2, height: t2, stroke: e4, strokeWidth: r2 ? 24 * Number(n2) / Number(t2) : n2, className: jb("lucide", i2), ...l2 }, [...a2.map(([e5, t3]) => h(e5, t3)), ...Array.isArray(o2) ? o2 : [o2]])), Zb = ((e4, t2) => {
9380
+ const n2 = c(({ className: n3, ...r2 }, i2) => h(Vb, { ref: i2, iconNode: t2, className: jb(`lucide-${Rb(e4)}`, n3), ...r2 }));
9381
9381
  return n2.displayName = `${e4}`, n2;
9382
- })("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" }]]), Zb = (e4) => {
9382
+ })("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" }]]), Bb = (e4) => {
9383
9383
  const t2 = i(() => {
9384
- if ("empty" === e4.status) return w(Vb, { size: 90, style: { color: "var(--adm-color-primary)" } });
9384
+ if ("empty" === e4.status) return w(Zb, { size: 90, style: { color: "var(--adm-color-primary)" } });
9385
9385
  }, [e4.status]);
9386
9386
  return w(Rd, { image: t2, ...e4 });
9387
- }, Bb = (e4) => w(Iy, { ...e4 });
9387
+ }, Wb = (e4) => w(Iy, { ...e4 });
9388
9388
  /**
9389
9389
  * @license lucide-react v0.475.0 - ISC
9390
9390
  *
9391
9391
  * This source code is licensed under the ISC license.
9392
9392
  * See the LICENSE file in the root directory of this source tree.
9393
9393
  */
9394
- Bb.Item = Iy.Item;
9395
- const Wb = (e4) => w(rv, { ...e4 }), zb = (e4) => w(_l, { ...e4 });
9396
- zb.show = _l.show;
9397
- const qb = (e4) => w(Iv, { ...e4 }), Hb = (e4) => w(zg, { ...e4 }), Ub = (e4) => w(Ny, { ...e4 });
9398
- Ub.Step = Ny.Step;
9399
- const Kb = (e4) => w(xv, { ...e4 }), Gb = (e4) => w(qy, { ...e4 }), Yb = (e4) => w(ab, { ...e4 }), Xb = (e4) => w(cb, { ...e4 }), Qb = (e4) => w(Cu, { ...e4 });
9400
- Qb.optionSkeleton = Cu.optionSkeleton, Qb.prompt = Cu.prompt;
9401
- const Jb = (e4) => w(bu, { ...e4 });
9402
- Jb.optionSkeleton = bu.optionSkeleton;
9403
- const ew = (e4) => w(su, { ...e4 });
9404
- ew.Item = su.Item;
9405
- const tw = c((e4, t2) => w(Iu, { ref: t2, ...e4 }));
9406
- tw.Group = Iu.Group;
9407
- const nw = c((e4, t2) => w(Kv, { ref: t2, ...e4 })), rw = (e4) => w(Cp, { ...e4 });
9408
- rw.Item = Cp.Item, rw.useForm = Cp.useForm, rw.useWatch = Cp.useWatch;
9409
- const iw = (e4) => w(Kg, { ...e4 }), ow = (e4) => w(Dv, { ...e4 });
9410
- ow.Group = Dv.Group;
9411
- const aw = (e4) => w(Bv, { ...e4 }), lw = (e4) => w(yy, { ...e4 }), sw = (e4) => w(Ey, { ...e4 }), cw = (e4) => w(jy, { ...e4 }), uw = (e4) => w(Ky, { ...e4 }), dw = yv, fw = (e4) => {
9394
+ Wb.Item = Iy.Item;
9395
+ const zb = (e4) => w(rv, { ...e4 }), qb = (e4) => w(_l, { ...e4 });
9396
+ qb.show = _l.show;
9397
+ const Hb = (e4) => w(Iv, { ...e4 }), Ub = (e4) => w(zg, { ...e4 }), Kb = (e4) => w(Ny, { ...e4 });
9398
+ Kb.Step = Ny.Step;
9399
+ const Gb = (e4) => w(xv, { ...e4 }), Yb = (e4) => w(qy, { ...e4 }), Xb = (e4) => w(ab, { ...e4 }), Qb = (e4) => w(cb, { ...e4 }), Jb = (e4) => w(Cu, { ...e4 });
9400
+ Jb.optionSkeleton = Cu.optionSkeleton, Jb.prompt = Cu.prompt;
9401
+ const ew = (e4) => w(bu, { ...e4 });
9402
+ ew.optionSkeleton = bu.optionSkeleton;
9403
+ const tw = (e4) => w(su, { ...e4 });
9404
+ tw.Item = su.Item;
9405
+ const nw = c((e4, t2) => w(Iu, { ref: t2, ...e4 }));
9406
+ nw.Group = Iu.Group;
9407
+ const rw = c((e4, t2) => w(Kv, { ref: t2, ...e4 })), iw = (e4) => w(Cp, { ...e4 });
9408
+ iw.Item = Cp.Item, iw.useForm = Cp.useForm, iw.useWatch = Cp.useWatch;
9409
+ const ow = (e4) => w(Kg, { ...e4 }), aw = (e4) => w(Dv, { ...e4 });
9410
+ aw.Group = Dv.Group;
9411
+ const lw = (e4) => w(Bv, { ...e4 }), sw = (e4) => w(yy, { ...e4 }), cw = (e4) => w(Ey, { ...e4 }), uw = (e4) => w(jy, { ...e4 }), dw = (e4) => w(Ky, { ...e4 }), fw = yv, mw = (e4) => {
9412
9412
  const n2 = B(Fv, e4), r2 = { width: `${n2.percent}%` }, i2 = true === n2.text ? `${n2.percent}%` : "function" == typeof n2.text ? n2.text(n2.percent) : n2.text;
9413
9413
  return Z(n2, t.createElement("div", { className: V(_v, n2.rounded && `${_v}-rounded`) }, t.createElement("div", { className: `${_v}-trail` }, t.createElement("div", { className: `${_v}-fill`, style: r2 })), nu(i2) && t.createElement("div", { className: `${_v}-text` }, i2)));
9414
- }, mw = (e4) => w(Zo, { ...e4 }), hw = (e4) => w(vp, { ...e4 });
9415
- hw.Menu = vp.Menu;
9416
- const pw = (e4) => w(dl, { ...e4 }), vw = (e4) => w(Nu, { ...e4 }), gw = (e4) => w(Mv, { ...e4 }), yw = (e4) => w($v, { ...e4 }), bw = (e4) => w(qv, { ...e4 }), ww = (e4) => w(pu, { ...e4 });
9417
- ww.Title = pu.Title, ww.Paragraph = pu.Paragraph;
9418
- const Ew = "${label} is not a valid ${type}", kw = "${label} không phải là một ${type} hợp lệ", Cw = function(e4, t2) {
9414
+ }, hw = (e4) => w(Zo, { ...e4 }), pw = (e4) => w(vp, { ...e4 });
9415
+ pw.Menu = vp.Menu;
9416
+ const vw = (e4) => w(dl, { ...e4 }), gw = (e4) => w(Nu, { ...e4 }), yw = (e4) => w(Mv, { ...e4 }), bw = (e4) => w($v, { ...e4 }), ww = (e4) => w(qv, { ...e4 }), Ew = (e4) => w(pu, { ...e4 });
9417
+ Ew.Title = pu.Title, Ew.Paragraph = pu.Paragraph;
9418
+ const kw = "${label} is not a valid ${type}", Cw = "${label} không phải là một ${type} hợp lệ", xw = function(e4, t2) {
9419
9419
  return function e5(t3, n2) {
9420
9420
  if ("object" != typeof t3 || "object" != typeof n2 || Array.isArray(t3) || Array.isArray(n2)) return void 0 !== n2 ? n2 : t3;
9421
9421
  const r2 = {};
9422
9422
  for (const i2 in t3) t3.hasOwnProperty(i2) && (r2[i2] = e5(t3[i2], n2[i2]));
9423
9423
  return r2;
9424
9424
  }(e4, t2);
9425
- }({ 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: Ew, method: Ew, array: Ew, object: Ew, number: Ew, date: Ew, boolean: Ew, integer: Ew, float: Ew, regexp: Ew, email: Ew, url: Ew, hex: Ew }, 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: kw, method: kw, array: kw, object: kw, number: kw, date: kw, boolean: kw, integer: kw, float: kw, regexp: kw, email: kw, url: kw, hex: kw }, 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" } }), xw = { ...Cw, common: { ...Cw.common, confirm: "Xác nhận" }, ErrorBlock: { ...Cw.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." } }, Modal: { ok: "Đồng ý" } }, Ow = (e4) => {
9425
+ }({ 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: kw, method: kw, array: kw, object: kw, number: kw, date: kw, boolean: kw, integer: kw, float: kw, regexp: kw, email: kw, url: kw, hex: kw }, 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: Cw, method: Cw, array: Cw, object: Cw, number: Cw, date: Cw, boolean: Cw, integer: Cw, float: Cw, regexp: Cw, email: Cw, url: Cw, hex: Cw }, 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" } }), Ow = { ...xw, common: { ...xw.common, confirm: "Xác nhận" }, ErrorBlock: { ...xw.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." } }, Modal: { ok: "Đồng ý" } }, Nw = (e4) => {
9426
9426
  const { children: t2, ...n2 } = e4;
9427
- return w(A, { ...n2, locale: xw, children: t2 });
9427
+ return w(A, { locale: Ow, ...n2, children: t2 });
9428
9428
  };
9429
9429
  export {
9430
- zb as ActionSheet,
9430
+ qb as ActionSheet,
9431
9431
  Sl as AutoCenter,
9432
9432
  ub as Avatar,
9433
- wb as Badge,
9433
+ Eb as Badge,
9434
9434
  mb as Button,
9435
- Eb as CapsuleTabs,
9436
- kb as Card,
9437
- Qb as Cascader,
9438
- Jb as CascaderView,
9439
- vw as CenterPopup,
9440
- ew as CheckList,
9441
- tw as Checkbox,
9442
- Cb as Collapse,
9443
- Ow as ConfigProvider,
9435
+ kb as CapsuleTabs,
9436
+ Cb as Card,
9437
+ Jb as Cascader,
9438
+ ew as CascaderView,
9439
+ gw as CenterPopup,
9440
+ tw as CheckList,
9441
+ nw as Checkbox,
9442
+ xb as Collapse,
9443
+ Nw as ConfigProvider,
9444
9444
  vb as DatePicker,
9445
9445
  yd as Dialog,
9446
9446
  pb as Divider,
9447
9447
  db as DotLoading,
9448
- xb as Ellipsis,
9449
- Zb as ErrorBlock,
9450
- Ob as FloatingPanel,
9451
- Xb as Footer,
9452
- rw as Form,
9453
- Nb as Grid,
9454
- $b as Image,
9455
- _b as ImageViewer,
9456
- Fb as IndexBar,
9457
- Wb as InfiniteScroll,
9458
- yb as Input,
9459
- Sb as JumboTabs,
9460
- bb as List,
9461
- mw as Mask,
9462
- dw as Modal,
9463
- Mb as NavBar,
9464
- Kb as PageIndicator,
9465
- yw as PasscodeInput,
9448
+ Ob as Ellipsis,
9449
+ Bb as ErrorBlock,
9450
+ Nb as FloatingPanel,
9451
+ Qb as Footer,
9452
+ iw as Form,
9453
+ $b as Grid,
9454
+ _b as Image,
9455
+ Fb as ImageViewer,
9456
+ Sb as IndexBar,
9457
+ zb as InfiniteScroll,
9458
+ bb as Input,
9459
+ Mb as JumboTabs,
9460
+ wb as List,
9461
+ hw as Mask,
9462
+ fw as Modal,
9463
+ Ab as NavBar,
9464
+ Gb as PageIndicator,
9465
+ bw as PasscodeInput,
9466
9466
  gb as Picker,
9467
- hw as Popover,
9468
- pw as Popup,
9469
- fw as ProgressBar,
9470
- gw as ProgressCircle,
9471
- qb as PullToRefresh,
9472
- ow as Radio,
9473
- aw as Rate,
9474
- bw as Result,
9475
- Ab as SafeArea,
9476
- nw as SearchBar,
9477
- Hb as Segmented,
9478
- iw as Selector,
9479
- Lb as SideBar,
9480
- ww as Skeleton,
9481
- lw as Slider,
9467
+ yb as PickerView,
9468
+ pw as Popover,
9469
+ vw as Popup,
9470
+ mw as ProgressBar,
9471
+ yw as ProgressCircle,
9472
+ Hb as PullToRefresh,
9473
+ aw as Radio,
9474
+ lw as Rate,
9475
+ ww as Result,
9476
+ Lb as SafeArea,
9477
+ rw as SearchBar,
9478
+ Ub as Segmented,
9479
+ ow as Selector,
9480
+ Ib as SideBar,
9481
+ Ew as Skeleton,
9482
+ sw as Slider,
9482
9483
  hb as Space,
9483
9484
  fb as SpinLoading,
9484
- sw as Stepper,
9485
- Ub as Steps,
9486
- Bb as Swiper,
9487
- cw as Switch,
9488
- Ib as TabBar,
9489
- Tb as Tabs,
9490
- Gb as Tag,
9491
- uw as TextArea,
9485
+ cw as Stepper,
9486
+ Kb as Steps,
9487
+ Wb as Swiper,
9488
+ uw as Switch,
9489
+ Tb as TabBar,
9490
+ Pb as Tabs,
9491
+ Yb as Tag,
9492
+ dw as TextArea,
9492
9493
  rb as Toast,
9493
- Yb as WaterMark
9494
+ Xb as WaterMark
9494
9495
  };
9495
9496
  //# sourceMappingURL=ama-ui.es.js.map