@commercelayer/app-elements 5.0.2 → 5.1.1
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/{CodeEditorComponent-BnnAwJp3.js → CodeEditorComponent-B85NVKWi.js} +1 -1
- package/dist/{InputDateComponent-CtefanSx.js → InputDateComponent-RRYnk3aL.js} +1 -1
- package/dist/i18n.d-DjhkQkb1.js +1 -0
- package/dist/{main-B-l6mxcU.js → main-xq_bVVhw.js} +49 -45
- package/dist/main.js +1 -1
- package/dist/providers/I18NProvider.d.ts +0 -9
- package/dist/ui/forms/Input/Input.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { u as Ee, j as se, I as $e } from "./main-
|
|
2
|
+
import { u as Ee, j as se, I as $e } from "./main-xq_bVVhw.js";
|
|
3
3
|
import V, { memo as ce, useState as U, useEffect as I, useRef as w, useCallback as ue, forwardRef as Ce } from "react";
|
|
4
4
|
function Ie(e, t, r) {
|
|
5
5
|
return t in e ? Object.defineProperty(e, t, {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var Kr = Object.defineProperty;
|
|
3
3
|
var Vr = (o, a, t) => a in o ? Kr(o, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[a] = t;
|
|
4
4
|
var w = (o, a, t) => Vr(o, typeof a != "symbol" ? a + "" : a, t);
|
|
5
|
-
import { c as G, t as k, m as dt, a as pt, b as he, d as fe, n as ft, e as He, g as fr, f as Ur, h as qr, s as rt, i as hr, k as jr, l as mr, o as vr, p as $r, q as Gr, r as At, v as Xr, w as zr, x as Ht, y as Zr, j as ne, z as Pe, A as be, B as kt, C as Pt, D as Dr, E as Tt, F as gr, G as Jr, H as Se, J as Wt, K as en, L as tn, M as rn, N as nn, O as nt, I as an, P as on, Q as sn, R as ln, S as cn } from "./main-
|
|
5
|
+
import { c as G, t as k, m as dt, a as pt, b as he, d as fe, n as ft, e as He, g as fr, f as Ur, h as qr, s as rt, i as hr, k as jr, l as mr, o as vr, p as $r, q as Gr, r as At, v as Xr, w as zr, x as Ht, y as Zr, j as ne, z as Pe, A as be, B as kt, C as Pt, D as Dr, E as Tt, F as gr, G as Jr, H as Se, J as Wt, K as en, L as tn, M as rn, N as nn, O as nt, I as an, P as on, Q as sn, R as ln, S as cn } from "./main-xq_bVVhw.js";
|
|
6
6
|
import * as M from "react";
|
|
7
7
|
import f, { useLayoutEffect as wr, useEffect as Nt, cloneElement as yr, createRef as Me, Component as X, useRef as Mt, useCallback as un, createElement as dn, forwardRef as pn } from "react";
|
|
8
8
|
import * as fn from "react-dom";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";
|
|
@@ -20093,7 +20093,7 @@ const Z5 = ["en-US", "it-IT"], Rte = ({
|
|
|
20093
20093
|
}, [a]), i == null || i != null && !i.isInitialized ? /* @__PURE__ */ u.jsx(x5, {}) : /* @__PURE__ */ u.jsx(TW, { i18n: i, children: t });
|
|
20094
20094
|
}, bz = async (t, e) => (await Mt.use(
|
|
20095
20095
|
gz(
|
|
20096
|
-
async (a) => await JW(/* @__PURE__ */ Object.assign({ "../locales/en.ts": () => import("./en-CMwZXuxY.js"), "../locales/it.ts": () => import("./it-rC7h-ZsW.js") }), `../locales/${yz(a)}.ts`, 3)
|
|
20096
|
+
async (a) => await JW(/* @__PURE__ */ Object.assign({ "../locales/en.ts": () => import("./en-CMwZXuxY.js"), "../locales/i18n.d.ts": () => import("./i18n.d-DjhkQkb1.js"), "../locales/it.ts": () => import("./it-rC7h-ZsW.js") }), `../locales/${yz(a)}.ts`, 3)
|
|
20097
20097
|
)
|
|
20098
20098
|
).use(LW).init({
|
|
20099
20099
|
load: "languageOnly",
|
|
@@ -21604,49 +21604,52 @@ const Ko = O(
|
|
|
21604
21604
|
inline: i,
|
|
21605
21605
|
suffix: o,
|
|
21606
21606
|
...l
|
|
21607
|
-
}, c) =>
|
|
21608
|
-
|
|
21609
|
-
|
|
21610
|
-
|
|
21611
|
-
|
|
21612
|
-
|
|
21613
|
-
|
|
21614
|
-
|
|
21615
|
-
|
|
21616
|
-
|
|
21617
|
-
|
|
21607
|
+
}, c) => {
|
|
21608
|
+
const d = /* @__PURE__ */ u.jsx(
|
|
21609
|
+
"input",
|
|
21610
|
+
{
|
|
21611
|
+
...l,
|
|
21612
|
+
"data-lpignore": l.autoComplete === "off" && "true",
|
|
21613
|
+
"data-1p-ignore": l.autoComplete === "off" && !0,
|
|
21614
|
+
"data-form-type": l.autoComplete === "off" && "other",
|
|
21615
|
+
id: l.id ?? l.name,
|
|
21616
|
+
className: L(
|
|
21617
|
+
e,
|
|
21618
|
+
"block w-full px-4 py-2.5 font-medium",
|
|
21619
|
+
"rounded outline-0",
|
|
21618
21620
|
{
|
|
21619
|
-
|
|
21620
|
-
"
|
|
21621
|
-
|
|
21622
|
-
|
|
21623
|
-
id: l.id ?? l.name,
|
|
21624
|
-
className: L(
|
|
21625
|
-
e,
|
|
21626
|
-
"block w-full px-4 py-2.5 font-medium",
|
|
21627
|
-
"rounded outline-0",
|
|
21628
|
-
{
|
|
21629
|
-
"[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none !pr-12": o != null,
|
|
21630
|
-
"!bg-white": l.autoComplete === "off"
|
|
21631
|
-
},
|
|
21632
|
-
Ia(s)
|
|
21633
|
-
),
|
|
21634
|
-
type: t,
|
|
21635
|
-
ref: c
|
|
21636
|
-
}
|
|
21621
|
+
"[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none !pr-12": o != null,
|
|
21622
|
+
"!bg-white": l.autoComplete === "off"
|
|
21623
|
+
},
|
|
21624
|
+
Ia(s)
|
|
21637
21625
|
),
|
|
21638
|
-
|
|
21639
|
-
|
|
21640
|
-
|
|
21641
|
-
|
|
21642
|
-
|
|
21643
|
-
|
|
21644
|
-
|
|
21645
|
-
|
|
21646
|
-
|
|
21647
|
-
|
|
21648
|
-
|
|
21649
|
-
|
|
21626
|
+
type: t,
|
|
21627
|
+
ref: c
|
|
21628
|
+
}
|
|
21629
|
+
);
|
|
21630
|
+
return t === "hidden" ? d : /* @__PURE__ */ u.jsx(
|
|
21631
|
+
Vt,
|
|
21632
|
+
{
|
|
21633
|
+
label: a,
|
|
21634
|
+
hint: n,
|
|
21635
|
+
feedback: s,
|
|
21636
|
+
name: l.id ?? l.name,
|
|
21637
|
+
inline: i,
|
|
21638
|
+
children: /* @__PURE__ */ u.jsxs("div", { className: "relative", children: [
|
|
21639
|
+
d,
|
|
21640
|
+
o != null && /* @__PURE__ */ u.jsx(
|
|
21641
|
+
I,
|
|
21642
|
+
{
|
|
21643
|
+
size: "small",
|
|
21644
|
+
weight: "semibold",
|
|
21645
|
+
className: "absolute right-4 top-1/2 -translate-y-1/2",
|
|
21646
|
+
children: o
|
|
21647
|
+
}
|
|
21648
|
+
)
|
|
21649
|
+
] })
|
|
21650
|
+
}
|
|
21651
|
+
);
|
|
21652
|
+
}
|
|
21650
21653
|
);
|
|
21651
21654
|
Ko.displayName = "Input";
|
|
21652
21655
|
function wt({ name: t, ...e }) {
|
|
@@ -29971,7 +29974,7 @@ function dK(t) {
|
|
|
29971
29974
|
);
|
|
29972
29975
|
}
|
|
29973
29976
|
const mK = ro(
|
|
29974
|
-
async () => await import("./CodeEditorComponent-
|
|
29977
|
+
async () => await import("./CodeEditorComponent-B85NVKWi.js").then((t) => ({
|
|
29975
29978
|
default: t.CodeEditor
|
|
29976
29979
|
}))
|
|
29977
29980
|
), ng = O(
|
|
@@ -30862,7 +30865,7 @@ function lg({
|
|
|
30862
30865
|
}
|
|
30863
30866
|
lg.displayName = "InputCurrencyRange";
|
|
30864
30867
|
const jK = ro(
|
|
30865
|
-
async () => await import("./InputDateComponent-
|
|
30868
|
+
async () => await import("./InputDateComponent-RRYnk3aL.js").then((t) => ({
|
|
30866
30869
|
default: t.InputDateComponent
|
|
30867
30870
|
}))
|
|
30868
30871
|
), Dr = O(
|
|
@@ -35116,7 +35119,8 @@ const Ree = ve(({ parcel: t, rate: e, showEstimatedDelivery: a = !1, onRemove: n
|
|
|
35116
35119
|
e == null || z(e) ? null : [
|
|
35117
35120
|
e,
|
|
35118
35121
|
{
|
|
35119
|
-
fields: ["id", "name"]
|
|
35122
|
+
fields: ["id", "name"],
|
|
35123
|
+
pageSize: 25
|
|
35120
35124
|
}
|
|
35121
35125
|
]
|
|
35122
35126
|
), { Overlay: i, show: o } = gq(), { canUser: l } = tt();
|
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { aI as s, bm as t, bn as o, aJ as r, aK as c, aL as n, aM as u, aN as i, aO as d, aP as l, aQ as p, bo as b, aR as g, bL as m, aS as S, aT as I, at as k, bp as T, bq as R, br as D, bs as y, aU as h, ax as C, ay as A, bE as P, aV as H, aW as F, bt as v, bM as f, bN as B, bO as L, bQ as O, bS as E, bV as N, bY as G, b_ as w, c3 as M, c5 as V, ca as x, cf as W, ch as U, cj as J, cl as Y, cn as X, cr as Z, cs as j, ct as q, aX as z, aB as K, aY as Q, bP as _, bR as $, bT as aa, bW as ea, bX as sa, bZ as ta, b$ as oa, c0 as ra, c1 as ca, c2 as na, c4 as ua, c6 as ia, cb as da, cg as la, ci as pa, ck as ba, cm as ga, co as ma, cp as Sa, cq as Ia, bu as ka, bv as Ta, bw as Ra, bx as Da, bF as ya, aG as ha, by as Ca, aZ as Aa, bz as Pa, bA as Ha, a_ as Fa, a$ as va, b0 as fa, b1 as Ba, bB as La, cx as Oa, cy as Ea, cA as Na, cB as Ga, cC as wa, cD as Ma, cE as Va, cF as xa, cH as Wa, cI as Ua, cJ as Ja, bG as Ya, b2 as Xa, bH as Za, b3 as ja, b4 as qa, b5 as za, b6 as Ka, b8 as Qa, b9 as _a, ba as $a, bb as ae, bc as ee, bh as se, bd as te, bI as oe, bi as re, bj as ce, be as ne, bk as ue, bf as ie, bJ as de, aH as le, bK as pe, bl as be, bg as ge, aD as me, a8 as Se, aw as Ie, bC as ke, bD as Te, X as Re, Y as De, a7 as ye, aF as he, c8 as Ce, bU as Ae, Z as Pe, _ as He, $ as Fe, a9 as ve, aa as fe, ac as Be, cM as Le, cN as Oe, c9 as Ee, a0 as Ne, a1 as Ge, a2 as we, cO as Me, cP as Ve, cQ as xe, cR as We, cS as Ue, ad as Je, ae as Ye, cG as Xe, cT as Ze, cw as je, ab as qe, cU as ze, cV as Ke, cW as Qe, af as _e, ag as $e, cX as as, cY as es, cZ as ss, aj as ts, ak as os, T as rs, ah as cs, ai as ns, aA as us, V as is, cc as ds, cd as ls, ce as ps, a3 as bs, U as gs, W as ms, a4 as Ss, cu as Is, a5 as ks, aC as Ts, a6 as Rs, al as Ds, am as ys, au as hs, av as Cs, an as As, ao as Ps, ap as Hs, c7 as Fs, aq as vs, ar as fs, as as Bs, cz as Ls, cK as Os, cL as Es, az as Ns, u as Gs, aE as ws, cv as Ms, b7 as Vs } from "./main-
|
|
2
|
+
import { aI as s, bm as t, bn as o, aJ as r, aK as c, aL as n, aM as u, aN as i, aO as d, aP as l, aQ as p, bo as b, aR as g, bL as m, aS as S, aT as I, at as k, bp as T, bq as R, br as D, bs as y, aU as h, ax as C, ay as A, bE as P, aV as H, aW as F, bt as v, bM as f, bN as B, bO as L, bQ as O, bS as E, bV as N, bY as G, b_ as w, c3 as M, c5 as V, ca as x, cf as W, ch as U, cj as J, cl as Y, cn as X, cr as Z, cs as j, ct as q, aX as z, aB as K, aY as Q, bP as _, bR as $, bT as aa, bW as ea, bX as sa, bZ as ta, b$ as oa, c0 as ra, c1 as ca, c2 as na, c4 as ua, c6 as ia, cb as da, cg as la, ci as pa, ck as ba, cm as ga, co as ma, cp as Sa, cq as Ia, bu as ka, bv as Ta, bw as Ra, bx as Da, bF as ya, aG as ha, by as Ca, aZ as Aa, bz as Pa, bA as Ha, a_ as Fa, a$ as va, b0 as fa, b1 as Ba, bB as La, cx as Oa, cy as Ea, cA as Na, cB as Ga, cC as wa, cD as Ma, cE as Va, cF as xa, cH as Wa, cI as Ua, cJ as Ja, bG as Ya, b2 as Xa, bH as Za, b3 as ja, b4 as qa, b5 as za, b6 as Ka, b8 as Qa, b9 as _a, ba as $a, bb as ae, bc as ee, bh as se, bd as te, bI as oe, bi as re, bj as ce, be as ne, bk as ue, bf as ie, bJ as de, aH as le, bK as pe, bl as be, bg as ge, aD as me, a8 as Se, aw as Ie, bC as ke, bD as Te, X as Re, Y as De, a7 as ye, aF as he, c8 as Ce, bU as Ae, Z as Pe, _ as He, $ as Fe, a9 as ve, aa as fe, ac as Be, cM as Le, cN as Oe, c9 as Ee, a0 as Ne, a1 as Ge, a2 as we, cO as Me, cP as Ve, cQ as xe, cR as We, cS as Ue, ad as Je, ae as Ye, cG as Xe, cT as Ze, cw as je, ab as qe, cU as ze, cV as Ke, cW as Qe, af as _e, ag as $e, cX as as, cY as es, cZ as ss, aj as ts, ak as os, T as rs, ah as cs, ai as ns, aA as us, V as is, cc as ds, cd as ls, ce as ps, a3 as bs, U as gs, W as ms, a4 as Ss, cu as Is, a5 as ks, aC as Ts, a6 as Rs, al as Ds, am as ys, au as hs, av as Cs, an as As, ao as Ps, ap as Hs, c7 as Fs, aq as vs, ar as fs, as as Bs, cz as Ls, cK as Os, cL as Es, az as Ns, u as Gs, aE as ws, cv as Ms, b7 as Vs } from "./main-xq_bVVhw.js";
|
|
3
3
|
export {
|
|
4
4
|
s as A,
|
|
5
5
|
t as ActionButtons,
|
|
@@ -1,17 +1,8 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
|
-
import { default as en } from '../locales/en';
|
|
3
2
|
export { t } from 'i18next';
|
|
4
3
|
export { Trans, useTranslation } from 'react-i18next';
|
|
5
4
|
export declare const i18nLocales: readonly ["en-US", "it-IT"];
|
|
6
5
|
export type I18NLocale = (typeof i18nLocales)[number];
|
|
7
|
-
declare module 'i18next' {
|
|
8
|
-
interface CustomTypeOptions {
|
|
9
|
-
defaultNS: 'translation';
|
|
10
|
-
resources: {
|
|
11
|
-
translation: typeof en;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
6
|
interface I18NProviderProps {
|
|
16
7
|
/** Optional locale to use for i18n translations that will override the locale set in the user's token. */
|
|
17
8
|
enforcedLocaleCode?: I18NLocale;
|
|
@@ -3,7 +3,7 @@ export interface InputProps extends InputWrapperBaseProps, Omit<React.InputHTMLA
|
|
|
3
3
|
/**
|
|
4
4
|
* Controlled type
|
|
5
5
|
*/
|
|
6
|
-
type?: 'text' | 'number' | 'password' | 'tel' | 'url' | 'email';
|
|
6
|
+
type?: 'text' | 'number' | 'password' | 'tel' | 'url' | 'email' | 'hidden';
|
|
7
7
|
/**
|
|
8
8
|
* Optional CSS class names used for the input element
|
|
9
9
|
*/
|