@commercelayer/app-elements 1.9.4 → 1.9.6

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.
@@ -1,4 +1,4 @@
1
- import { P as xa, r as O, a as Ln, t as F, b as Ct, c as Te, d as T, g as Mr, _ as Kt, s as He, e as lr, f as Sa, h as Y, i as R, j as N, k, l as C, m as I, n as Oa, o as dr, p as Fn, q as Ta, u as Ea, v as _a, w as Zr, x as Pa, y as zr, z as Na, A as Ia, B as Ya, C as Hn, D as ae, E as nt, F as Ft, G as fr, H as xr, I as Ra, J as Xr, K as Aa, L as La, M as Fa, N as Ht, O as qe, Q as Ha, R as Ba, X as ja } from "./main-a94293e5.js";
1
+ import { P as xa, r as O, a as Ln, t as F, b as Ct, c as Te, d as T, g as Mr, _ as Kt, s as He, e as lr, f as Sa, h as Y, i as R, j as N, k, l as C, m as I, n as Oa, o as dr, p as Fn, q as Ta, u as Ea, v as _a, w as Zr, x as Pa, y as zr, z as Na, A as Ia, B as Ya, C as Hn, D as ae, E as nt, F as Ft, G as fr, H as xr, I as Ra, J as Xr, K as Aa, L as La, M as Fa, N as Ht, O as qe, Q as Ha, R as Ba, X as ja } from "./main-75a0d091.js";
2
2
  import * as U from "react";
3
3
  import h, { forwardRef as Bn, createElement as Ua, Component as Va, createRef as Wa } from "react";
4
4
  import * as Qa from "react-dom";
@@ -0,0 +1,19 @@
1
+ declare const unitsOfWeight: readonly ["gr", "lb", "oz"];
2
+ declare const unitsOfWeightNames: {
3
+ readonly gr: "Grams";
4
+ readonly lb: "Pounds";
5
+ readonly oz: "Ounces";
6
+ };
7
+ export type UnitOfWeight = (typeof unitsOfWeight)[number];
8
+ type UnitOfWeightLabel = (typeof unitsOfWeightNames)[keyof typeof unitsOfWeightNames];
9
+ interface UnitOfWeightForSelect {
10
+ label: UnitOfWeightLabel;
11
+ value: UnitOfWeight;
12
+ }
13
+ /**
14
+ * Get a units of weight list suitable for select options usage
15
+ * @returns an array of objects with `value` and `label` props
16
+ */
17
+ export declare const getUnitsOfWeightForSelect: () => UnitOfWeightForSelect[];
18
+ export declare function getUnitOfWeightName(unitOfWeight: UnitOfWeight): UnitOfWeightLabel;
19
+ export {};
@@ -0,0 +1 @@
1
+ export {};