@commercelayer/app-elements 1.5.0 → 1.6.0

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/main.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aq as i, a_ as b, ar as p, as as c, at as l, au as d, av as g, aw as m, ax as S, a$ as I, ay as k, az as T, ah as D, b0 as R, b1 as C, b2 as y, aA as A, ak as H, al as h, aB as P, aC as F, be as B, bf as f, bh as v, bj as L, bl as O, bp as G, br as N, bw as V, bz as w, bB as x, bI as E, bK as M, bM as J, bP as U, bT as W, bU as Y, aD as Z, aE as $, bg as j, bi as q, bk as z, bm as K, bo as Q, bq as X, bs as _, bt as aa, bu as ea, bv as sa, bx as ta, by as ra, bA as oa, bC as na, bJ as ua, bL as ia, bN as ba, bO as pa, bQ as ca, bR as la, bS as da, b3 as ga, b4 as ma, b5 as Sa, b6 as Ia, an as ka, b7 as Ta, aF as Da, b8 as Ra, b9 as Ca, aG as ya, aH as Aa, aI as Ha, ba as ha, bX as Pa, bY as Fa, bZ as Ba, b_ as fa, b$ as va, c0 as La, c1 as Oa, c2 as Ga, c3 as Na, bb as Va, aJ as wa, aK as xa, aL as Ea, aM as Ma, aO as Ja, aP as Ua, aQ as Wa, aR as Ya, aW as Za, aS as $a, bc as ja, aX as qa, aY as za, aT as Ka, aZ as Qa, aU as Xa, bd as _a, ao as ae, aV as ee, a2 as se, a1 as te, bD as re, bn as oe, W as ne, a3 as ue, a4 as ie, a5 as be, c5 as pe, c6 as ce, bE as le, Y as de, Z as ge, c7 as me, c8 as Se, c9 as Ie, ca as ke, cb as Te, cc as De, a6 as Re, a7 as Ce, cd as ye, ce as Ae, cf as He, a8 as he, a9 as Pe, S as Fe, aa as Be, ab as fe, U as ve, bF as Le, bG as Oe, bH as Ge, T as Ne, V as Ve, bV as we, $ as xe, a0 as Ee, ac as Me, ai as Je, aj as Ue, ad as We, ae as Ye, af as Ze, ag as $e, c4 as je, am as qe, ap as ze, bW as Ke, aN as Qe } from "./main-e00db212.js";
1
+ import { aq as i, a_ as b, ar as p, as as c, at as l, au as d, av as g, aw as m, ax as S, a$ as I, ay as k, az as T, ah as D, b0 as R, b1 as C, b2 as y, aA as A, ak as H, al as h, aB as P, aC as F, be as B, bf as f, bh as v, bj as L, bl as O, bp as G, br as N, bw as V, bz as w, bB as x, bI as E, bK as M, bM as J, bP as U, bT as W, bU as Y, aD as Z, aE as $, bg as j, bi as q, bk as z, bm as K, bo as Q, bq as X, bs as _, bt as aa, bu as ea, bv as sa, bx as ta, by as ra, bA as oa, bC as na, bJ as ua, bL as ia, bN as ba, bO as pa, bQ as ca, bR as la, bS as da, b3 as ga, b4 as ma, b5 as Sa, b6 as Ia, an as ka, b7 as Ta, aF as Da, b8 as Ra, b9 as Ca, aG as ya, aH as Aa, aI as Ha, ba as ha, bX as Pa, bY as Fa, bZ as Ba, b_ as fa, b$ as va, c0 as La, c1 as Oa, c2 as Ga, c3 as Na, bb as Va, aJ as wa, aK as xa, aL as Ea, aM as Ma, aO as Ja, aP as Ua, aQ as Wa, aR as Ya, aW as Za, aS as $a, bc as ja, aX as qa, aY as za, aT as Ka, aZ as Qa, aU as Xa, bd as _a, ao as ae, aV as ee, a2 as se, a1 as te, bD as re, bn as oe, W as ne, a3 as ue, a4 as ie, a5 as be, c5 as pe, c6 as ce, bE as le, Y as de, Z as ge, c7 as me, c8 as Se, c9 as Ie, ca as ke, cb as Te, cc as De, a6 as Re, a7 as Ce, cd as ye, ce as Ae, cf as He, a8 as he, a9 as Pe, S as Fe, aa as Be, ab as fe, U as ve, bF as Le, bG as Oe, bH as Ge, T as Ne, V as Ve, bV as we, $ as xe, a0 as Ee, ac as Me, ai as Je, aj as Ue, ad as We, ae as Ye, af as Ze, ag as $e, c4 as je, am as qe, ap as ze, bW as Ke, aN as Qe } from "./main-6ef1aaed.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  import "@commercelayer/sdk";
@@ -14,11 +14,22 @@ export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
14
14
  * Footer will render in a dedicated section below the main content.
15
15
  */
16
16
  footer?: React.ReactNode;
17
+ /**
18
+ * Set the overflow behavior. In most of the cases you might want to keep overflow visible,
19
+ * but when you have inner content with hover effects you might want to set overflow to hidden.
20
+ */
21
+ overflow: 'visible' | 'hidden';
22
+ /**
23
+ * Set a gray background color
24
+ */
25
+ backgroundColor?: 'light';
17
26
  }
18
27
  /** Card is a flexible component used to group and display content in a clear and concise format. */
19
28
  export declare const Card: import("./SkeletonTemplate").SkeletonTemplateComponent<{
20
29
  gap?: "1" | "4" | "6" | undefined;
21
30
  footer?: React.ReactNode;
31
+ overflow: 'visible' | 'hidden';
32
+ backgroundColor?: "light" | undefined;
22
33
  defaultChecked?: boolean | undefined;
23
34
  defaultValue?: string | number | readonly string[] | undefined;
24
35
  suppressContentEditableWarning?: boolean | undefined;
@@ -1,5 +1,11 @@
1
1
  /// <reference types="react" />
2
- export type HrProps = Omit<React.HTMLProps<HTMLHRElement>, 'children'>;
2
+ export type HrProps = Omit<React.HTMLProps<HTMLHRElement>, 'children'> & {
3
+ /**
4
+ * The variant of the horizontal rule.
5
+ * @default solid
6
+ */
7
+ variant?: 'solid' | 'dashed';
8
+ };
3
9
  /**
4
10
  * This component wraps an [`<hr>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/hr) HTML element.
5
11
  * <span type='info'>All the props are directly sent to the horizontal rule element.</span>
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { type InputCheckboxProps } from './InputCheckbox';
3
- export interface HookedInputCheckboxProps extends InputCheckboxProps {
3
+ export interface HookedInputCheckboxProps extends Omit<InputCheckboxProps, 'onChange' | 'checked' | 'feedback' | 'defaultValue' | 'defaultChecked'> {
4
4
  /**
5
5
  * field name to match hook-form state
6
6
  */
@@ -1,5 +1,4 @@
1
- import { type InputWrapperBaseProps } from '../../internals/InputWrapper';
2
- import { type ReactNode } from 'react';
1
+ import { type ComponentProps, type ReactNode } from 'react';
3
2
  interface OptionItem {
4
3
  /**
5
4
  * Item identifier, must be unique and will be used for the onChange callback
@@ -10,37 +9,6 @@ interface OptionItem {
10
9
  */
11
10
  content: ReactNode;
12
11
  }
13
- export interface InputRadioGroupProps extends Pick<InputWrapperBaseProps, 'feedback' | 'hint'> {
14
- /**
15
- * Text to be displayed on top of the list
16
- */
17
- title?: string;
18
- /**
19
- * Input name, will be used to set the html name for all radios
20
- */
21
- name: string;
22
- /**
23
- * List of options to render as radio
24
- */
25
- options: OptionItem[];
26
- /**
27
- * Default value
28
- */
29
- defaultValue?: string;
30
- /**
31
- * Callback triggered when the user update the selection
32
- */
33
- onChange?: (selected: string | undefined) => void;
34
- /**
35
- * Show input element
36
- */
37
- showInput?: boolean;
38
- /**
39
- * Define how the item options are rendered
40
- * @default list
41
- */
42
- viewMode?: 'list' | 'inline' | 'grid';
43
- }
44
12
  export declare const InputRadioGroup: import('../../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
45
13
  title?: string | undefined;
46
14
  name: string;
@@ -57,4 +25,5 @@ export declare const InputRadioGroup: import('../../atoms/SkeletonTemplate').Ske
57
25
  delayMs?: number | undefined;
58
26
  isLoading?: boolean | undefined;
59
27
  }>;
28
+ export type InputRadioGroupProps = ComponentProps<typeof InputRadioGroup>;
60
29
  export {};
@@ -1,9 +1,13 @@
1
+ import { type ResourceShipmentParcels } from '../resources/ResourceShipmentParcels';
2
+ type Shipment = Parameters<typeof ResourceShipmentParcels>[0]['shipment'];
3
+ type Parcel = NonNullable<Shipment['parcels']>[number];
1
4
  export declare const parcelWithoutTracking1: import("@commercelayer/sdk/lib/cjs/resources/parcels").Parcel;
2
5
  export declare const parcelWithoutTracking2: import("@commercelayer/sdk/lib/cjs/resources/parcels").Parcel;
3
6
  export declare const parcelWithTracking1: import("@commercelayer/sdk/lib/cjs/resources/parcels").Parcel;
4
7
  export declare const parcelWithTracking2: import("@commercelayer/sdk/lib/cjs/resources/parcels").Parcel;
5
8
  export declare const parcelWithTracking3: import("@commercelayer/sdk/lib/cjs/resources/parcels").Parcel;
6
9
  export declare const parcelWithoutTrackingDetails1: import("@commercelayer/sdk/lib/cjs/resources/parcels").Parcel;
10
+ export declare const parcelWithCustomsInfo: Parcel;
7
11
  export declare const shipmentWithoutTracking: import("@commercelayer/sdk/lib/cjs/resources/shipments").Shipment;
8
12
  export declare const shipmentWithStatusDifferentFromPacking: import("@commercelayer/sdk/lib/cjs/resources/shipments").Shipment;
9
13
  export declare const shipmentHasBeenPurchased: import("@commercelayer/sdk/lib/cjs/resources/shipments").Shipment;
@@ -13,3 +17,5 @@ export declare const shipmentWithMultipleParcelsSingleTracking: import("@commerc
13
17
  export declare const shipmentWithMultipleParcelsMultipleTrackings: import("@commercelayer/sdk/lib/cjs/resources/shipments").Shipment;
14
18
  export declare const shipmentWithoutTrackingDetails: import("@commercelayer/sdk/lib/cjs/resources/shipments").Shipment;
15
19
  export declare const shipmentWithoutParcels: import("@commercelayer/sdk/lib/cjs/resources/shipments").Shipment;
20
+ export declare const shipmentWithCustomsInfo: import("@commercelayer/sdk/lib/cjs/resources/shipments").Shipment;
21
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercelayer/app-elements",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "files": [