@commercelayer/app-elements 0.0.36 → 0.0.37
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/{Async-11093eca.js → Async-553a36d0.js} +2 -2
- package/dist/{InputDateComponent-ed1b4761.js → InputDateComponent-5e9e808b.js} +1 -1
- package/dist/{Select-16b2f919.js → Select-1a790cf2.js} +2 -2
- package/dist/hooks/useOverlayNavigation.d.ts +27 -0
- package/dist/main-902b92e7.js +15926 -0
- package/dist/main.d.ts +3 -0
- package/dist/main.js +76 -72
- package/dist/{overrides-d3993d12.js → overrides-d70202c3.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/ui/atoms/Button.d.ts +5 -1
- package/dist/ui/atoms/Overlay.d.ts +19 -0
- package/dist/ui/resources/RelationshipSelector/Checkbox.d.ts +19 -0
- package/dist/ui/resources/RelationshipSelector/FullList.d.ts +57 -0
- package/dist/ui/resources/RelationshipSelector/index.d.ts +13 -0
- package/dist/ui/resources/RelationshipSelector/utils.d.ts +20 -0
- package/package.json +5 -3
- package/dist/main-3ac036ee.js +0 -11845
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as de from "react";
|
|
2
2
|
import le, { useRef as W, useState as a, useEffect as z, useCallback as B, forwardRef as ce } from "react";
|
|
3
|
-
import { _ as ve, a as s, h as Oe, b as O, c as Se, u as _e, S as he, d as me, s as ge } from "./overrides-
|
|
3
|
+
import { _ as ve, a as s, h as Oe, b as O, c as Se, u as _e, S as he, d as me, s as ge } from "./overrides-d70202c3.js";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
import "./main-
|
|
5
|
+
import "./main-902b92e7.js";
|
|
6
6
|
import "@commercelayer/sdk";
|
|
7
7
|
var ye = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading", "onInputChange", "filterOption"];
|
|
8
8
|
function Ce(t) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as A from "react";
|
|
2
2
|
import h, { forwardRef as ou, createElement as Qu, Component as Ku, createRef as zu } from "react";
|
|
3
|
-
import { P as Zu, r as D, a as au, t as $, b as yt, c as Oe, d as E, g as Lo, s as Ne, e as hn, f as Xu, h as yn, i as iu, j as Gu, k as Ju, l as es, m as ca, n as ts, o as la, p as rs, q as ns, u as os, v as ee, w as ze, x as mn, y as uu, z as as, A as is, B as fa, C as us, D as ss, E as cs, F as fr, I as ls, G as fs, H as ps } from "./main-
|
|
3
|
+
import { P as Zu, r as D, a as au, t as $, b as yt, c as Oe, d as E, g as Lo, s as Ne, e as hn, f as Xu, h as yn, i as iu, j as Gu, k as Ju, l as es, m as ca, n as ts, o as la, p as rs, q as ns, u as os, v as ee, w as ze, x as mn, y as uu, z as as, A as is, B as fa, C as us, D as ss, E as cs, F as fr, I as ls, G as fs, H as ps } from "./main-902b92e7.js";
|
|
4
4
|
import * as ds from "react-dom";
|
|
5
5
|
import hs, { findDOMNode as ys } from "react-dom";
|
|
6
6
|
import "@commercelayer/sdk";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as r from "react";
|
|
2
2
|
import a, { forwardRef as s } from "react";
|
|
3
|
-
import { u as m, S as p, d as c, s as i } from "./overrides-
|
|
3
|
+
import { u as m, S as p, d as c, s as i } from "./overrides-d70202c3.js";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
import "./main-
|
|
5
|
+
import "./main-902b92e7.js";
|
|
6
6
|
import "@commercelayer/sdk";
|
|
7
7
|
var l = /* @__PURE__ */ s(function(e, t) {
|
|
8
8
|
var o = m(e);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type OverlayProps } from '../ui/atoms/Overlay';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
interface OverlayNavigationOptions {
|
|
4
|
+
/**
|
|
5
|
+
* The query param to be used to control the overlay visibility.
|
|
6
|
+
**/
|
|
7
|
+
queryParam: string;
|
|
8
|
+
}
|
|
9
|
+
interface OverlayNavigation {
|
|
10
|
+
/**
|
|
11
|
+
* The overlay component.
|
|
12
|
+
**/
|
|
13
|
+
Overlay: React.FC<OverlayProps>;
|
|
14
|
+
/**
|
|
15
|
+
* Function to be used to open the overlay.
|
|
16
|
+
* It will add the query param to the URL.
|
|
17
|
+
* @param replaceHistory If true, the query param will be added without creating a new history entry.
|
|
18
|
+
**/
|
|
19
|
+
open: (replaceHistory?: boolean) => void;
|
|
20
|
+
/**
|
|
21
|
+
* Function to be used to close the overlay.
|
|
22
|
+
* It's a simple history.back() call.
|
|
23
|
+
**/
|
|
24
|
+
close: () => void;
|
|
25
|
+
}
|
|
26
|
+
export declare function useOverlayNavigation({ queryParam }: OverlayNavigationOptions): OverlayNavigation;
|
|
27
|
+
export {};
|