@veeqo/transfigure 0.0.10 → 0.0.11
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/index102.cjs +7 -1
- package/dist/index102.js +10 -42
- package/dist/index103.cjs +1 -7
- package/dist/index103.js +42 -10
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +1 -1
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +1 -1
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +43 -43
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +1 -1
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +1 -1
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +18 -18
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +5 -6
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +2 -2
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +2 -2
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +28 -23
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +23 -28
- package/dist/index91.cjs +78 -10
- package/dist/index91.js +92 -13
- package/dist/index92.cjs +10 -78
- package/dist/index92.js +13 -92
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +63 -19
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +18 -7
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +7 -63
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +60 -26
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +29 -62
- package/package.json +1 -1
package/dist/index102.cjs
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("styled-components"),e=require("@veeqo/ui"),a=t=>t&&t.__esModule?t:{default:t},i=a(o),s=i.default(e.BaseContainer)`
|
|
2
|
+
padding: ${e.theme.sizes.sm};
|
|
3
|
+
// This calculation limits the height to a max of 100% of the viewport and uses offset as the position of the CTA button
|
|
4
|
+
// with an additional sizes.base offset at the bottom.
|
|
5
|
+
max-height: calc(100vh ${({offset:t})=>t&&`- ${t}px`} - ${e.theme.sizes.base});
|
|
6
|
+
overflow-y: auto;
|
|
7
|
+
`;exports.AdaptiveStyledContainer=s;
|
package/dist/index102.js
CHANGED
|
@@ -1,44 +1,12 @@
|
|
|
1
|
-
import "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} = t;
|
|
11
|
-
return "translate3d(" + (r ? Math.round(r) : 0) + "px, " + (e ? Math.round(e) : 0) + "px, 0)";
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
Scale: {
|
|
15
|
-
toString(t) {
|
|
16
|
-
if (!t)
|
|
17
|
-
return;
|
|
18
|
-
const {
|
|
19
|
-
scaleX: r,
|
|
20
|
-
scaleY: e
|
|
21
|
-
} = t;
|
|
22
|
-
return "scaleX(" + r + ") scaleY(" + e + ")";
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
Transform: {
|
|
26
|
-
toString(t) {
|
|
27
|
-
if (t)
|
|
28
|
-
return [n.Translate.toString(t), n.Scale.toString(t)].join(" ");
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
Transition: {
|
|
32
|
-
toString(t) {
|
|
33
|
-
let {
|
|
34
|
-
property: r,
|
|
35
|
-
duration: e,
|
|
36
|
-
easing: i
|
|
37
|
-
} = t;
|
|
38
|
-
return r + " " + e + "ms " + i;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
});
|
|
1
|
+
import o from "styled-components";
|
|
2
|
+
import { theme as e, BaseContainer as i } from "@veeqo/ui";
|
|
3
|
+
const h = o(i)`
|
|
4
|
+
padding: ${e.sizes.sm};
|
|
5
|
+
// This calculation limits the height to a max of 100% of the viewport and uses offset as the position of the CTA button
|
|
6
|
+
// with an additional sizes.base offset at the bottom.
|
|
7
|
+
max-height: calc(100vh ${({ offset: t }) => t && `- ${t}px`} - ${e.sizes.base});
|
|
8
|
+
overflow-y: auto;
|
|
9
|
+
`;
|
|
42
10
|
export {
|
|
43
|
-
|
|
11
|
+
h as AdaptiveStyledContainer
|
|
44
12
|
};
|
package/dist/index103.cjs
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
padding: ${e.theme.sizes.sm};
|
|
3
|
-
// This calculation limits the height to a max of 100% of the viewport and uses offset as the position of the CTA button
|
|
4
|
-
// with an additional sizes.base offset at the bottom.
|
|
5
|
-
max-height: calc(100vh ${({offset:t})=>t&&`- ${t}px`} - ${e.theme.sizes.base});
|
|
6
|
-
overflow-y: auto;
|
|
7
|
-
`;exports.AdaptiveStyledContainer=s;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react");const n=Object.freeze({Translate:{toString(t){if(!t)return;const{x:e,y:r}=t;return"translate3d("+(e?Math.round(e):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(t){if(!t)return;const{scaleX:e,scaleY:r}=t;return"scaleX("+e+") scaleY("+r+")"}},Transform:{toString(t){if(t)return[n.Translate.toString(t),n.Scale.toString(t)].join(" ")}},Transition:{toString(t){let{property:e,duration:r,easing:i}=t;return e+" "+r+"ms "+i}}});exports.CSS=n;
|
package/dist/index103.js
CHANGED
|
@@ -1,12 +1,44 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import "react";
|
|
2
|
+
const n = /* @__PURE__ */ Object.freeze({
|
|
3
|
+
Translate: {
|
|
4
|
+
toString(t) {
|
|
5
|
+
if (!t)
|
|
6
|
+
return;
|
|
7
|
+
const {
|
|
8
|
+
x: r,
|
|
9
|
+
y: e
|
|
10
|
+
} = t;
|
|
11
|
+
return "translate3d(" + (r ? Math.round(r) : 0) + "px, " + (e ? Math.round(e) : 0) + "px, 0)";
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
Scale: {
|
|
15
|
+
toString(t) {
|
|
16
|
+
if (!t)
|
|
17
|
+
return;
|
|
18
|
+
const {
|
|
19
|
+
scaleX: r,
|
|
20
|
+
scaleY: e
|
|
21
|
+
} = t;
|
|
22
|
+
return "scaleX(" + r + ") scaleY(" + e + ")";
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
Transform: {
|
|
26
|
+
toString(t) {
|
|
27
|
+
if (t)
|
|
28
|
+
return [n.Translate.toString(t), n.Scale.toString(t)].join(" ");
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
Transition: {
|
|
32
|
+
toString(t) {
|
|
33
|
+
let {
|
|
34
|
+
property: r,
|
|
35
|
+
duration: e,
|
|
36
|
+
easing: i
|
|
37
|
+
} = t;
|
|
38
|
+
return r + " " + e + "ms " + i;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
});
|
|
10
42
|
export {
|
|
11
|
-
|
|
43
|
+
n as CSS
|
|
12
44
|
};
|
package/dist/index20.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),l=require("react"),b=require("mobx-react"),r=require("@veeqo/ui"),F=require("./index63.cjs"),R=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),l=require("react"),b=require("mobx-react"),r=require("@veeqo/ui"),F=require("./index63.cjs"),R=require("./index94.cjs"),h=require("./index57.cjs"),x=b.observer(({filterData:i})=>{const{Filters:{numberRangeFilters:o,clearNumberRangeFilter:u,setNumberRangeFilter:d}}=h.useStores(),e=o.get(i.id),[s,a]=l.useState(e),c=l.useCallback(()=>{const n=new F.NumberRangeFilter({filterId:i.id});return e&&(e.gte&&n.setGte(e.gte),e.lte&&n.setLte(e.lte)),n},[i.id,e]);l.useEffect(()=>{const n=c();a(n)},[c,e]);const g=()=>{u(i.id)},m=()=>{!e||!s||d({numberRange:e,lte:s.lte,gte:s.gte})};return t.jsx(r.FilterTag,{shouldCloseOnClickAway:!0,header:t.jsx("div",{children:"Edit filter (style and semant me pls)"}),label:i.label,text:(e==null?void 0:e.filterLabel)||"Loading...",content:t.jsx(r.BaseContainer,{style:{padding:r.theme.sizes.md},children:t.jsx(R.FilterNumberRangeFilter,{data:i,editedValue:s,setEditedValue:a})}),footer:t.jsx(r.BaseContainer,{style:{padding:r.theme.sizes.sm,width:"200px"},children:t.jsxs(r.Stack,{direction:"horizontal",alignX:"end",children:[t.jsx(r.Button,{variant:"default",size:"sm",onClick:g,children:"Clear"}),t.jsx(r.Button,{variant:"primary",size:"sm",onClick:m,children:"Apply"})]})})})});exports.ActiveFilterNumberRangeTag=x;
|
package/dist/index20.js
CHANGED
|
@@ -3,7 +3,7 @@ import { useState as b, useCallback as f, useEffect as h } from "react";
|
|
|
3
3
|
import { observer as R } from "mobx-react";
|
|
4
4
|
import { FilterTag as v, BaseContainer as o, theme as a, Stack as y, Button as d } from "@veeqo/ui";
|
|
5
5
|
import { NumberRangeFilter as C } from "./index63.js";
|
|
6
|
-
import { FilterNumberRangeFilter as N } from "./
|
|
6
|
+
import { FilterNumberRangeFilter as N } from "./index94.js";
|
|
7
7
|
import { useStores as w } from "./index57.js";
|
|
8
8
|
const j = R(
|
|
9
9
|
({ filterData: r }) => {
|
package/dist/index31.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("mobx-react"),n=require("@veeqo/ui"),o=require("./index7.cjs"),u=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("mobx-react"),n=require("@veeqo/ui"),o=require("./index7.cjs"),u=require("./index87.cjs"),c=require("./index32.cjs"),a=s.observer(()=>{const{GROUP_MAP:t}=o.useBusinessLogic();return e.jsx(u.AdaptiveHeightContainer,{style:{minWidth:"360px"},children:e.jsx(n.Stack,{alignX:"stretch",children:Array.from(t).map(([r,i])=>e.jsx(c.FilterGroup,{data:i},r))})})});exports.FiltersList=a;
|
package/dist/index31.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { observer as e } from "mobx-react";
|
|
3
3
|
import { Stack as m } from "@veeqo/ui";
|
|
4
4
|
import { useBusinessLogic as s } from "./index7.js";
|
|
5
|
-
import { AdaptiveHeightContainer as p } from "./
|
|
5
|
+
import { AdaptiveHeightContainer as p } from "./index87.js";
|
|
6
6
|
import { FilterGroup as n } from "./index32.js";
|
|
7
7
|
const u = e(() => {
|
|
8
8
|
const { GROUP_MAP: t } = s();
|
package/dist/index33.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),c=require("react"),u=require("@veeqo/ui"),Y=require("mobx-react")
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),c=require("react"),u=require("@veeqo/ui"),Y=require("mobx-react"),$=require("./index60.cjs"),z=require("./index58.cjs"),G=require("./index37.cjs"),J=require("./index40.cjs"),K=require("./index52.cjs"),Q=require("./index7.cjs"),X=require("./index57.cjs"),Z=require("./index86.cjs"),b=Y.observer(({view:e,viewTabSlotValueMap:l,isLoadingTableData:y})=>{const{VIEW_TYPE:L,SEARCH_FILTER_ID:d}=Q.useBusinessLogic(),{Filters:{activeViewId:f,initFiltersFromView:w,discardChanges:m,initFromUrl:h,filters:F,setFilter:S},Views:{draftViewsMap:j},Notifications:{notify:N}}=X.useStores(),{viewsMap:g,defaultCustomViewId:E,isLoading:R}=z.useViews(),{isLoading:T,isValidating:P}=$.useCustomViews({type:L}),[s,k]=c.useState(null),A=o=>{const x=F.get(d);if(g.has(o)){const r=g.get(o);r&&(w(r),m(!0),h())}else{const r=j.get(o);r?(w(r),m(!0),h()):N({type:"error",text:"Failed to load view"})}x&&S(d,x)},n=(e==null?void 0:e.id)===f,t=e.originalView!==void 0,V=e.originalView===void 0,B=(l==null?void 0:l.get(`${e==null?void 0:e.id}`))||void 0,a=(e==null?void 0:e.label)||"",I=R||P||T,D=c.useRef(!1);!I&&!D.current&&n&&e.id===E&&s&&(D.current=!0,s&&f===e.id&&window.requestAnimationFrame(()=>{var o;(o=s.parentElement)==null||o.scrollBy({behavior:"smooth",left:s.offsetLeft})}));const p=c.useMemo(()=>t?"draft":e.editable?"saved":"fixed",[t,e.editable]),{actions:{create:{handleSaveDraft:M},menu:{toggleDropdown:C},delete:{closeDeleteConfirmation:_,handleDelete:O,handleDeleteDraftView:q}},state:{shouldShowDeleteConfirmation:H},actions:U,state:v}=K.useDropdownManager(e),W=c.useMemo(()=>{if(V)return C;if(t)return q},[q,t,V,C]);return i.jsxs(i.Fragment,{children:[i.jsx(u.ViewTab,{colourPalette:u.theme.colors.secondary.blue,className:"act-react-listing-custom-view",active:n,id:e==null?void 0:e.id,name:a,type:p,count:y?i.jsx(u.Loader,{type:"ThreeDots",width:12,height:12,color:n?"#fff":u.theme.colors.neutral.ink.dark}):B,onClick:A,subAction:W,ariaContext:"orders",ref:k,"aria-controls":"options-dropdown","aria-expanded":v.shouldShowDropdown,"aria-haspopup":"dialog"},e==null?void 0:e.id),i.jsx(Z.Confirmation,{shouldShow:H,viewName:a,onCancel:_,onDelete:O}),i.jsx(G.PillNotifications,{tabType:p,isActive:n,initialViewName:a,shouldShowCreateViewNotification:t,handleSaveDraft:M}),i.jsx(J.ViewDropdowns,{referenceElement:s,tab:e,...U,...v})]})});exports.ViewTab=b;
|
package/dist/index33.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as G, useRef as J, useMemo as
|
|
3
|
-
import { ViewTab as K, theme as
|
|
1
|
+
import { jsxs as Y, Fragment as z, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useState as G, useRef as J, useMemo as F } from "react";
|
|
3
|
+
import { ViewTab as K, theme as L, Loader as M } from "@veeqo/ui";
|
|
4
4
|
import { observer as Q } from "mobx-react";
|
|
5
5
|
import { useCustomViews as X } from "./index60.js";
|
|
6
6
|
import { useViews as Z } from "./index58.js";
|
|
@@ -9,71 +9,71 @@ import { ViewDropdowns as ee } from "./index40.js";
|
|
|
9
9
|
import { useDropdownManager as ie } from "./index52.js";
|
|
10
10
|
import { useBusinessLogic as oe } from "./index7.js";
|
|
11
11
|
import { useStores as re } from "./index57.js";
|
|
12
|
-
import { Confirmation as te } from "./
|
|
13
|
-
const ge = Q(({ view: e, viewTabSlotValueMap: l, isLoadingTableData:
|
|
14
|
-
const { VIEW_TYPE:
|
|
15
|
-
Filters: { activeViewId: a, initFiltersFromView: f, discardChanges: m, initFromUrl: u, filters:
|
|
16
|
-
Views: { draftViewsMap:
|
|
17
|
-
Notifications: { notify:
|
|
18
|
-
} = re(), { viewsMap: w, defaultCustomViewId:
|
|
19
|
-
const
|
|
12
|
+
import { Confirmation as te } from "./index86.js";
|
|
13
|
+
const ge = Q(({ view: e, viewTabSlotValueMap: l, isLoadingTableData: y }) => {
|
|
14
|
+
const { VIEW_TYPE: x, SEARCH_FILTER_ID: d } = oe(), {
|
|
15
|
+
Filters: { activeViewId: a, initFiltersFromView: f, discardChanges: m, initFromUrl: u, filters: E, setFilter: N },
|
|
16
|
+
Views: { draftViewsMap: S },
|
|
17
|
+
Notifications: { notify: T }
|
|
18
|
+
} = re(), { viewsMap: w, defaultCustomViewId: k, isLoading: A } = Z(), { isLoading: R, isValidating: I } = X({ type: x }), [o, P] = G(null), _ = (i) => {
|
|
19
|
+
const v = E.get(d);
|
|
20
20
|
if (w.has(i)) {
|
|
21
21
|
const t = w.get(i);
|
|
22
22
|
t && (f(t), m(!0), u());
|
|
23
23
|
} else {
|
|
24
|
-
const t =
|
|
25
|
-
t ? (f(t), m(!0), u()) :
|
|
24
|
+
const t = S.get(i);
|
|
25
|
+
t ? (f(t), m(!0), u()) : T({
|
|
26
26
|
type: "error",
|
|
27
27
|
text: "Failed to load view"
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
}, n = (e == null ? void 0 : e.id) === a, r = e.originalView !== void 0, p = e.originalView === void 0,
|
|
32
|
-
!
|
|
30
|
+
v && N(d, v);
|
|
31
|
+
}, n = (e == null ? void 0 : e.id) === a, r = e.originalView !== void 0, p = e.originalView === void 0, j = (l == null ? void 0 : l.get(`${e == null ? void 0 : e.id}`)) || void 0, c = (e == null ? void 0 : e.label) || "", B = A || I || R, h = J(!1);
|
|
32
|
+
!B && !h.current && n && e.id === k && o && (h.current = !0, o && a === e.id && window.requestAnimationFrame(() => {
|
|
33
33
|
var i;
|
|
34
34
|
(i = o.parentElement) == null || i.scrollBy({
|
|
35
35
|
behavior: "smooth",
|
|
36
36
|
left: o.offsetLeft
|
|
37
37
|
});
|
|
38
38
|
}));
|
|
39
|
-
const
|
|
39
|
+
const g = F(() => r ? "draft" : e.editable ? "saved" : "fixed", [r, e.editable]), {
|
|
40
40
|
actions: {
|
|
41
|
-
create: { handleSaveDraft:
|
|
42
|
-
menu: { toggleDropdown:
|
|
43
|
-
delete: { closeDeleteConfirmation:
|
|
41
|
+
create: { handleSaveDraft: $ },
|
|
42
|
+
menu: { toggleDropdown: V },
|
|
43
|
+
delete: { closeDeleteConfirmation: q, handleDelete: H, handleDeleteDraftView: D }
|
|
44
44
|
},
|
|
45
|
-
state: { shouldShowDeleteConfirmation:
|
|
46
|
-
actions:
|
|
47
|
-
state:
|
|
48
|
-
} = ie(e),
|
|
49
|
-
if (p) return
|
|
50
|
-
if (r) return
|
|
51
|
-
}, [
|
|
52
|
-
return /* @__PURE__ */
|
|
45
|
+
state: { shouldShowDeleteConfirmation: O },
|
|
46
|
+
actions: U,
|
|
47
|
+
state: C
|
|
48
|
+
} = ie(e), W = F(() => {
|
|
49
|
+
if (p) return V;
|
|
50
|
+
if (r) return D;
|
|
51
|
+
}, [D, r, p, V]);
|
|
52
|
+
return /* @__PURE__ */ Y(z, { children: [
|
|
53
53
|
/* @__PURE__ */ s(
|
|
54
54
|
K,
|
|
55
55
|
{
|
|
56
|
-
colourPalette:
|
|
56
|
+
colourPalette: L.colors.secondary.blue,
|
|
57
57
|
className: "act-react-listing-custom-view",
|
|
58
58
|
active: n,
|
|
59
59
|
id: e == null ? void 0 : e.id,
|
|
60
60
|
name: c,
|
|
61
|
-
type:
|
|
62
|
-
count:
|
|
61
|
+
type: g,
|
|
62
|
+
count: y ? /* @__PURE__ */ s(
|
|
63
63
|
M,
|
|
64
64
|
{
|
|
65
65
|
type: "ThreeDots",
|
|
66
66
|
width: 12,
|
|
67
67
|
height: 12,
|
|
68
|
-
color: n ? "#fff" :
|
|
68
|
+
color: n ? "#fff" : L.colors.neutral.ink.dark
|
|
69
69
|
}
|
|
70
|
-
) :
|
|
71
|
-
onClick:
|
|
72
|
-
subAction:
|
|
70
|
+
) : j,
|
|
71
|
+
onClick: _,
|
|
72
|
+
subAction: W,
|
|
73
73
|
ariaContext: "orders",
|
|
74
|
-
ref:
|
|
74
|
+
ref: P,
|
|
75
75
|
"aria-controls": "options-dropdown",
|
|
76
|
-
"aria-expanded":
|
|
76
|
+
"aria-expanded": C.shouldShowDropdown,
|
|
77
77
|
"aria-haspopup": "dialog"
|
|
78
78
|
},
|
|
79
79
|
e == null ? void 0 : e.id
|
|
@@ -81,23 +81,23 @@ const ge = Q(({ view: e, viewTabSlotValueMap: l, isLoadingTableData: x }) => {
|
|
|
81
81
|
/* @__PURE__ */ s(
|
|
82
82
|
te,
|
|
83
83
|
{
|
|
84
|
-
shouldShow:
|
|
84
|
+
shouldShow: O,
|
|
85
85
|
viewName: c,
|
|
86
|
-
onCancel:
|
|
87
|
-
onDelete:
|
|
86
|
+
onCancel: q,
|
|
87
|
+
onDelete: H
|
|
88
88
|
}
|
|
89
89
|
),
|
|
90
90
|
/* @__PURE__ */ s(
|
|
91
91
|
b,
|
|
92
92
|
{
|
|
93
|
-
tabType:
|
|
93
|
+
tabType: g,
|
|
94
94
|
isActive: n,
|
|
95
95
|
initialViewName: c,
|
|
96
96
|
shouldShowCreateViewNotification: r,
|
|
97
|
-
handleSaveDraft:
|
|
97
|
+
handleSaveDraft: $
|
|
98
98
|
}
|
|
99
99
|
),
|
|
100
|
-
/* @__PURE__ */ s(ee, { referenceElement: o, tab: e, ...
|
|
100
|
+
/* @__PURE__ */ s(ee, { referenceElement: o, tab: e, ...U, ...C })
|
|
101
101
|
] });
|
|
102
102
|
});
|
|
103
103
|
export {
|
package/dist/index39.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("react"),s=require("@veeqo/ui"),h=require("mobx-react"),n=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("react"),s=require("@veeqo/ui"),h=require("mobx-react"),n=require("./index91.cjs"),u=require("./index56.cjs"),g=s.theme.colors.secondary.blue.base,v=h.observer(({onDiscard:i,viewName:t,onSaveDraft:c})=>{const{saveChanges:o,isSubmitting:r}=u.usePersistUnsavedChanges(),[d,a]=l.useState(!1);return e.jsx(n.Notification,{children:e.jsx(n.Container,{className:"act-react-listing-custom-notification-unsaved-changes",children:e.jsxs(s.Stack,{direction:"horizontal",alignY:"center",children:[e.jsx(n.Glyph,{name:"attention",color:g}),e.jsxs(n.Wrap,{children:[e.jsx(n.Text,{variant:"body",margin:"0 4px 0 0",children:"You have unsaved changes to"}),e.jsx(n.Bold,{variant:"bodyBoldDark",children:`'${t}'`})]}),e.jsx(n.Button,{className:"act-react-listing-custom-notification-unsaved-changes-discard",onClick:i,size:"sm",children:"Discard changes"}),e.jsxs(s.AnimatedDropdown,{reversed:!0,shouldShowDropdown:d,onClickAway:()=>a(!1),cta:e.jsx(n.Button,{className:"act-react-listing-custom-notification-unsaved-changes-toggle-dropdown",variant:"primary",onClick:()=>a(!0),size:"sm",dropdown:!0,children:"Save changes"}),children:[e.jsx(n.Item,{onClick:c,className:"act-react-listing-custom-notification-unsaved-changes-create-new-view",children:e.jsx(n.Text,{variant:"body",children:"Create new view"})}),e.jsxs(n.Item,{onClick:o,disabled:r,className:"act-react-listing-custom-notification-unsaved-changes-save-to-existing-view",children:[e.jsx(n.Text,{variant:"body",margin:"0 4px 0 0",children:"Save changes to"}),e.jsx(n.Text,{variant:"bodyBoldDark",children:t})]})]})]})})})});exports.UnsavedChangesPill=v;
|
package/dist/index39.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as m } from "react";
|
|
3
3
|
import { Stack as g, theme as u, AnimatedDropdown as v } from "@veeqo/ui";
|
|
4
4
|
import { observer as p } from "mobx-react";
|
|
5
|
-
import { Notification as f, Container as w, Glyph as C, Wrap as b, Text as a, Bold as y, Button as o, Item as r } from "./
|
|
5
|
+
import { Notification as f, Container as w, Glyph as C, Wrap as b, Text as a, Bold as y, Button as o, Item as r } from "./index91.js";
|
|
6
6
|
import { usePersistUnsavedChanges as k } from "./index56.js";
|
|
7
7
|
const S = u.colors.secondary.blue.base, A = p(
|
|
8
8
|
({
|
package/dist/index41.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("react"),m=require("mobx-react"),s=require("@veeqo/ui"),c=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("react"),m=require("mobx-react"),s=require("@veeqo/ui"),c=require("./index92.cjs"),q=require("./index38.cjs"),S=require("./index58.cjs"),f=require("./index59.cjs"),p=require("./index34.cjs"),l=require("./index33.cjs"),C=require("./index57.cjs"),a=require("./index10.cjs"),b=m.observer(({viewTabSlotValueMap:n,isLoadingTableData:o})=>{const{Views:{draftViewsList:d}}=C.useStores(),{viewsArray:w,fixedViews:x}=S.useViews(),[t,i]=u.useState(!1),[h,V]=u.useState(null),j=()=>i(!1);return f.useViewUrlChange(),e.jsxs(e.Fragment,{children:[e.jsxs(s.ViewsContainer,{onClickMenu:()=>i(!0),ariaMenuControls:"views-menu",ariaMenuExpanded:t,ref:V,children:[w.map(r=>e.jsx(a.ErrorBoundary,{children:e.jsx(l.ViewTab,{view:r,viewTabSlotValueMap:n,isLoadingTableData:o})},r.id)),d.map(r=>e.jsx(a.ErrorBoundary,{children:e.jsx(l.ViewTab,{view:r,viewTabSlotValueMap:n,isLoadingTableData:o})},r.id))]}),t&&e.jsx(s.Popover,{id:"views-menu",anchorElement:h,placement:"bottom",onShouldClose:()=>i(!1),children:e.jsxs(s.Card.Surface,{children:[e.jsx(c.FixedViews,{children:x.map(r=>e.jsx(s.Text,{variant:"placeholder",children:r.label},r.id||r.label))}),e.jsx(q.SortableViews,{}),e.jsx(c.Divider,{}),e.jsx(p.CreateView,{hideActionsPopover:j})]})})]})});exports.ViewList=b;
|
package/dist/index41.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as i, Fragment as w, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as m } from "react";
|
|
3
3
|
import { observer as V } from "mobx-react";
|
|
4
4
|
import { ViewsContainer as v, Popover as x, Card as C, Text as S } from "@veeqo/ui";
|
|
5
|
-
import { FixedViews as A, Divider as E } from "./
|
|
5
|
+
import { FixedViews as A, Divider as E } from "./index92.js";
|
|
6
6
|
import { SortableViews as L } from "./index38.js";
|
|
7
7
|
import { useViews as M } from "./index58.js";
|
|
8
8
|
import { useViewUrlChange as b } from "./index59.js";
|
package/dist/index43.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),C=require("./index77.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),C=require("./index77.cjs"),m=require("@veeqo/ui"),D=require("./index78.cjs"),N=require("mobx-react"),_=require("./index7.cjs"),j=require("./index48.cjs"),p=require("./index57.cjs"),v=require("./index58.cjs"),M=require("./index47.cjs"),y=N.observer(({columnDefinitions:b,pinnedRightColumnIds:n=[],pinnedLeftColumnIds:t=[]})=>{var d;const{DEFAULT_HIDDEN_COLUMNS:T,DEFAULT_VISIBLE_COLUMNS:g}=_.useBusinessLogic(),l=[...t,...n],i=T.filter(o=>!l.includes(o)),a=g.filter(o=>!l.includes(o)),E=[...i,...a],{closeModal:S,isModalOpen:q,openModal:A}=j.useModal(),{Filters:{activeViewId:c}}=p.useStores(),{viewsMap:L,isLoading:h}=v.useViews();if(!c||h)return null;const e=L.get(c),u=Array.isArray((d=e==null?void 0:e.columns)==null?void 0:d.columnIds),r=u?e.columns.columnIds:a,x=u?E.filter(o=>!r.includes(o)):i;return s.jsxs(s.Fragment,{children:[s.jsx(m.Tooltip,{text:e!=null&&e.editable?"Table management":"Go to a custom view to use Table management",children:s.jsx(m.Button,{"aria-label":"Open table management",onClick:()=>A(M.ModalId.ORDERS_TABLE_MANAGEMENT),size:"sm",iconSlot:s.jsx(D.TableManagementGlyph,{}),disabled:!(e!=null&&e.editable)})}),q(M.ModalId.ORDERS_TABLE_MANAGEMENT)&&s.jsx(C.TableManagementModal,{pinnedRightColumnIds:n,pinnedLeftColumnIds:t,visibleColumns:r,hiddenColumns:x,columnDefintions:b,onClose:S})]})});exports.TableManagement=y;
|
package/dist/index43.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as L, Fragment as N, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { TableManagementModal as S } from "./index77.js";
|
|
3
|
-
import { Tooltip as _, Button as
|
|
4
|
-
import { TableManagementGlyph as
|
|
5
|
-
import { observer as
|
|
6
|
-
import { useBusinessLogic as
|
|
7
|
-
import { useModal as
|
|
8
|
-
import { useStores as
|
|
9
|
-
import { useViews as
|
|
3
|
+
import { Tooltip as _, Button as h } from "@veeqo/ui";
|
|
4
|
+
import { TableManagementGlyph as v } from "./index78.js";
|
|
5
|
+
import { observer as O } from "mobx-react";
|
|
6
|
+
import { useBusinessLogic as B } from "./index7.js";
|
|
7
|
+
import { useModal as I } from "./index48.js";
|
|
8
|
+
import { useStores as x } from "./index57.js";
|
|
9
|
+
import { useViews as y } from "./index58.js";
|
|
10
10
|
import { ModalId as u } from "./index47.js";
|
|
11
|
-
const
|
|
11
|
+
const q = O(({ columnDefinitions: p, pinnedRightColumnIds: n = [], pinnedLeftColumnIds: t = [] }) => {
|
|
12
12
|
var d;
|
|
13
|
-
const { DEFAULT_HIDDEN_COLUMNS: M, DEFAULT_VISIBLE_COLUMNS: b } =
|
|
14
|
-
if (!a) return null;
|
|
15
|
-
const o = g.get(a), r = Array.isArray((d = o == null ? void 0 : o.columns) == null ? void 0 : d.columnIds), c = r ? o.columns.columnIds : m,
|
|
13
|
+
const { DEFAULT_HIDDEN_COLUMNS: M, DEFAULT_VISIBLE_COLUMNS: b } = B(), i = [...t, ...n], l = M.filter((e) => !i.includes(e)), m = b.filter((e) => !i.includes(e)), f = [...l, ...m], { closeModal: T, isModalOpen: E, openModal: A } = I(), { Filters: { activeViewId: a } } = x(), { viewsMap: g, isLoading: C } = y();
|
|
14
|
+
if (!a || C) return null;
|
|
15
|
+
const o = g.get(a), r = Array.isArray((d = o == null ? void 0 : o.columns) == null ? void 0 : d.columnIds), c = r ? o.columns.columnIds : m, D = r ? f.filter(
|
|
16
16
|
(e) => !c.includes(e)
|
|
17
|
-
) :
|
|
18
|
-
return /* @__PURE__ */
|
|
17
|
+
) : l;
|
|
18
|
+
return /* @__PURE__ */ L(N, { children: [
|
|
19
19
|
/* @__PURE__ */ s(
|
|
20
20
|
_,
|
|
21
21
|
{
|
|
22
22
|
text: o != null && o.editable ? "Table management" : "Go to a custom view to use Table management",
|
|
23
23
|
children: /* @__PURE__ */ s(
|
|
24
|
-
|
|
24
|
+
h,
|
|
25
25
|
{
|
|
26
26
|
"aria-label": "Open table management",
|
|
27
27
|
onClick: () => A(u.ORDERS_TABLE_MANAGEMENT),
|
|
28
28
|
size: "sm",
|
|
29
|
-
iconSlot: /* @__PURE__ */ s(
|
|
29
|
+
iconSlot: /* @__PURE__ */ s(v, {}),
|
|
30
30
|
disabled: !(o != null && o.editable)
|
|
31
31
|
}
|
|
32
32
|
)
|
|
@@ -38,7 +38,7 @@ const H = v(({ columnDefinitions: p, pinnedRightColumnIds: n = [], pinnedLeftCol
|
|
|
38
38
|
pinnedRightColumnIds: n,
|
|
39
39
|
pinnedLeftColumnIds: t,
|
|
40
40
|
visibleColumns: c,
|
|
41
|
-
hiddenColumns:
|
|
41
|
+
hiddenColumns: D,
|
|
42
42
|
columnDefintions: p,
|
|
43
43
|
onClose: T
|
|
44
44
|
}
|
|
@@ -46,5 +46,5 @@ const H = v(({ columnDefinitions: p, pinnedRightColumnIds: n = [], pinnedLeftCol
|
|
|
46
46
|
] });
|
|
47
47
|
});
|
|
48
48
|
export {
|
|
49
|
-
|
|
49
|
+
q as TableManagement
|
|
50
50
|
};
|
package/dist/index45.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var n=(e=>(e.TEXT="text",e.NUMBER="number",e.CHECKBOX="checkbox",e.RADIO="radio",e.DATE_RANGE="date_range",e.NUMBER_RANGE="number_range",e))(n||{});const O={revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateOnMount:!1};exports.FilterChoiceValue=n;exports.SWR_HOOK_OPTIONS=O;
|
package/dist/index45.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
var
|
|
2
|
-
const
|
|
1
|
+
var a = /* @__PURE__ */ ((n) => (n.TEXT = "text", n.NUMBER = "number", n.CHECKBOX = "checkbox", n.RADIO = "radio", n.DATE_RANGE = "date_range", n.NUMBER_RANGE = "number_range", n))(a || {});
|
|
2
|
+
const O = {
|
|
3
3
|
revalidateOnFocus: !1,
|
|
4
4
|
revalidateOnReconnect: !1,
|
|
5
|
-
revalidateOnMount: !1
|
|
6
|
-
revalidateIfStale: !1
|
|
5
|
+
revalidateOnMount: !1
|
|
7
6
|
};
|
|
8
7
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
a as FilterChoiceValue,
|
|
9
|
+
O as SWR_HOOK_OPTIONS
|
|
11
10
|
};
|
package/dist/index79.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("@veeqo/ui"),s=require("@dnd-kit/sortable"),a=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("@veeqo/ui"),s=require("@dnd-kit/sortable"),a=require("./index95.cjs"),l=require("./index96.cjs"),c=require("./index82.cjs"),u=require("./index83.cjs"),d=require("./index80.cjs"),m=({id:r,title:n,columns:i})=>e.jsxs(o.Stack,{spacing:"sm",alignX:"stretch",children:[e.jsx(d.StickyText,{variant:"bodyBold",children:n}),e.jsx(s.SortableContext,{id:r,items:i,strategy:s.verticalListSortingStrategy,children:e.jsx(l.DroppableArea,{id:r,spacing:"sm",alignX:"stretch",children:i.map(t=>e.jsx(a.SortableItem,{id:t.id,children:e.jsx(c.ColumnItem,{column:t,isHidden:r===u.ColumnGroupIds.Hidden})},t.id))})})]});exports.ColumnGroup=m;
|
package/dist/index79.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { Stack as n } from "@veeqo/ui";
|
|
3
3
|
import { SortableContext as p, verticalListSortingStrategy as a } from "@dnd-kit/sortable";
|
|
4
|
-
import { SortableItem as s } from "./
|
|
5
|
-
import { DroppableArea as d } from "./
|
|
4
|
+
import { SortableItem as s } from "./index95.js";
|
|
5
|
+
import { DroppableArea as d } from "./index96.js";
|
|
6
6
|
import { ColumnItem as l } from "./index82.js";
|
|
7
7
|
import { ColumnGroupIds as c } from "./index83.js";
|
|
8
8
|
import { StickyText as f } from "./index80.js";
|
package/dist/index81.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),e=require("@dnd-kit/core"),S=require("@dnd-kit/sortable"),h=require("./index80.cjs"),q=require("@veeqo/ui"),C=require("./index48.cjs"),E=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),e=require("@dnd-kit/core"),S=require("@dnd-kit/sortable"),h=require("./index80.cjs"),q=require("@veeqo/ui"),C=require("./index48.cjs"),E=require("./index97.cjs"),p=require("./index98.cjs"),A=require("./index10.cjs"),b=require("./index47.cjs"),x={droppable:{strategy:e.MeasuringStrategy.Always}},M={sideEffects:e.defaultDropAnimationSideEffects({styles:{active:{opacity:"0.5"}}})},j=({items:o,setItems:s,children:a,renderDragOverlay:n})=>{const{closeModal:i,openModal:l}=C.useModal(),c=e.useSensors(e.useSensor(e.PointerSensor),e.useSensor(e.KeyboardSensor,{coordinateGetter:S.sortableKeyboardCoordinates})),{activeId:t,handleDragCancel:d,handleDragEnd:u,handleDragOver:g,handleDragStart:D}=E.useDragHandlers({items:o,setItems:s}),{collisionDetectionStrategy:y}=p.useCollisionDetectionStrategy({items:o});return r.jsx(A.ErrorBoundary,{errorComponent:r.jsx(q.Alert,{variant:"error",title:"An error occurred",rightActions:[{label:"Reload",onClick:()=>{i(),l(b.ModalId.ORDERS_TABLE_MANAGEMENT)}}]}),children:r.jsxs(e.DndContext,{sensors:c,measuring:x,collisionDetection:y,onDragStart:D,onDragOver:g,onDragEnd:u,onDragCancel:d,children:[a,r.jsx(h.DndDragOverlayDialog,{open:!0,children:r.jsx(e.DragOverlay,{dropAnimation:M,zIndex:2001,children:t&&n?n(t):null})})]})})};exports.DndContainer=j;
|
package/dist/index81.js
CHANGED
|
@@ -4,8 +4,8 @@ import { sortableKeyboardCoordinates as M } from "@dnd-kit/sortable";
|
|
|
4
4
|
import { DndDragOverlayDialog as v } from "./index80.js";
|
|
5
5
|
import { Alert as b } from "@veeqo/ui";
|
|
6
6
|
import { useModal as x } from "./index48.js";
|
|
7
|
-
import { useDragHandlers as O } from "./
|
|
8
|
-
import { useCollisionDetectionStrategy as I } from "./
|
|
7
|
+
import { useDragHandlers as O } from "./index97.js";
|
|
8
|
+
import { useCollisionDetectionStrategy as I } from "./index98.js";
|
|
9
9
|
import { ErrorBoundary as R } from "./index10.js";
|
|
10
10
|
import { ModalId as j } from "./index47.js";
|
|
11
11
|
const B = {
|
package/dist/index86.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("@veeqo/ui"),r=({shouldShow:a,viewName:n,onCancel:t,onDelete:o})=>e.jsx(i.Modal,{headerTitle:`Delete '${n}' view?`,"data-testid":"act-react-listing-custom-confirmation-popup",variant:"sm",shouldShow:a,onClose:t,rightActions:[{className:"act-react-listing-custom-confirmation-popup-cancel",label:"Cancel",onClick:t,variant:"default"},{className:"act-react-listing-custom-confirmation-popup-delete",label:"Delete",onClick:o,variant:"primaryDestructive"}],showHeaderCloseButton:!0,children:e.jsx(i.Text,{variant:"body",children:"This cannot be undone."})});exports.Confirmation=r;
|
package/dist/index86.js
CHANGED
|
@@ -1,26 +1,31 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Modal as n, Text as r } from "@veeqo/ui";
|
|
3
|
+
const s = ({ shouldShow: a, viewName: i, onCancel: t, onDelete: o }) => /* @__PURE__ */ e(
|
|
4
|
+
n,
|
|
5
|
+
{
|
|
6
|
+
headerTitle: `Delete '${i}' view?`,
|
|
7
|
+
"data-testid": "act-react-listing-custom-confirmation-popup",
|
|
8
|
+
variant: "sm",
|
|
9
|
+
shouldShow: a,
|
|
10
|
+
onClose: t,
|
|
11
|
+
rightActions: [
|
|
12
|
+
{
|
|
13
|
+
className: "act-react-listing-custom-confirmation-popup-cancel",
|
|
14
|
+
label: "Cancel",
|
|
15
|
+
onClick: t,
|
|
16
|
+
variant: "default"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
className: "act-react-listing-custom-confirmation-popup-delete",
|
|
20
|
+
label: "Delete",
|
|
21
|
+
onClick: o,
|
|
22
|
+
variant: "primaryDestructive"
|
|
15
23
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
22
|
-
}, []), /* @__PURE__ */ p(v, { style: s, className: f, offset: i, ref: r, children: o });
|
|
23
|
-
};
|
|
24
|
+
],
|
|
25
|
+
showHeaderCloseButton: !0,
|
|
26
|
+
children: /* @__PURE__ */ e(r, { variant: "body", children: "This cannot be undone." })
|
|
27
|
+
}
|
|
28
|
+
);
|
|
24
29
|
export {
|
|
25
|
-
|
|
30
|
+
s as Confirmation
|
|
26
31
|
};
|
package/dist/index87.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),n=require("react"),l=require("./index102.cjs"),v=({children:i,style:o,className:c})=>{const r=n.useRef(null),[u,f]=n.useState(0);return n.useEffect(()=>{const e=r.current,s=()=>{if(e){const{top:a}=e.getBoundingClientRect();f(a)}};s();const t=new ResizeObserver(s);return e&&t.observe(e),()=>{e&&t.unobserve(e),t.disconnect()}},[]),d.jsx(l.AdaptiveStyledContainer,{style:o,className:c,offset:u,ref:r,children:i})};exports.AdaptiveHeightContainer=v;
|