@veeqo/transfigure 0.0.15 → 0.0.17
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/index28.cjs +1 -1
- package/dist/index28.js +1 -1
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +1 -1
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +1 -1
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +1 -1
- package/dist/index38.cjs +1 -1
- package/dist/index38.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 +1 -1
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +74 -68
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +22 -24
- package/dist/index82.cjs +1 -19
- package/dist/index82.js +14 -23
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +24 -22
- package/dist/index84.cjs +19 -1
- package/dist/index84.js +23 -14
- package/dist/index85.cjs +1 -12
- package/dist/index85.js +13 -16
- package/dist/index86.cjs +104 -1
- package/dist/index86.js +120 -13
- package/dist/index87.cjs +1 -104
- package/dist/index87.js +65 -117
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +24 -63
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +2 -29
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +41 -2
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +9 -39
- package/dist/index92.cjs +12 -1
- package/dist/index92.js +16 -8
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +1 -1
- package/dist/index95.cjs +80 -1
- package/dist/index95.js +94 -35
- package/dist/index96.cjs +1 -80
- package/dist/index96.js +35 -94
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +1 -1
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +1 -1
- package/dist/storybookHelpers/apiMocks/custom_views.d.ts +36 -2
- package/package.json +1 -1
package/dist/index28.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),d=require("react"),_=require("mobx-react"),j=require("lodash/debounce"),r=require("@veeqo/ui"),L=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),d=require("react"),_=require("mobx-react"),j=require("lodash/debounce"),r=require("@veeqo/ui"),L=require("./index96.cjs"),R=require("./index63.cjs"),p=require("./index7.cjs"),y=require("./index57.cjs"),v=i=>i&&i.__esModule?i:{default:i},k=v(j),I=_.observer(({field:i})=>{var M;const{FILTERS_DEBOUCE_INTERVAL_MS:f}=p.useBusinessLogic(),{Filters:{numberRangeFilters:u,setNumberRangeFilter:x,clearNumberRangeFilter:F}}=y.useStores(),e=u.get(i.id),[o,g]=d.useState({gte:(e==null?void 0:e.gte)??0,lte:(e==null?void 0:e.lte)??100});if(!((M=i.options)!=null&&M.length))return null;const b=()=>{const l=new R.NumberRangeFilter({filterId:i.id});return u.set(i.id,l),l},c=d.useCallback(k.default(({numberRange:l,lte:t,gte:n})=>{x({numberRange:l,lte:t,gte:n})},f),[x]),h=()=>{g({gte:0,lte:100}),F(i.id)},S=(l,t)=>{let n=new R.NumberRangeFilter({filterId:i.id});if(e||(n=b()),!Array.isArray(t)||t.length!==2)return;const[s,m]=t;g({gte:s,lte:m}),c(e?{numberRange:e,lte:m,gte:s}:{numberRange:n,lte:m,gte:s})},N=l=>{if(e||b(),!e)return;const t=Number(l);if(t>e.lteMax)return;let{lte:n}=e,{gte:s}=e;t>=e.gteMin&&t<=e.lteMax&&(s=t),(!e.lte||t>=e.lte)&&(n=e.lteMax),g({gte:s,lte:n}),c({numberRange:e,lte:n,gte:s})},C=l=>{if(e||b(),!e)return;const t=Number(l);if(t<e.gteMin)return;let{lte:n}=e,{gte:s}=e;t>=e.gteMin&&t<=e.lteMax&&(n=t),(!e.gte||t<=e.gte)&&(s=e.gteMin),g({gte:s,lte:n}),c({numberRange:e,lte:n,gte:s})},q=[o.gte,o.lte];return a.jsxs(r.Stack,{spacing:"xs",alignX:"stretch",children:[a.jsx(r.Button,{variant:"link",onClick:h,children:"Clear"}),a.jsxs(r.Stack,{direction:"horizontal",children:[a.jsx(r.TextField,{label:e==null?void 0:e.gteMinLabel,type:"number",min:e==null?void 0:e.gteMin,max:e==null?void 0:e.lteMax,value:o.gte.toString(),onChange:N}),a.jsx(r.TextField,{label:e==null?void 0:e.lteMaxLabel,type:"number",min:e==null?void 0:e.gteMin,max:e==null?void 0:e.lteMax,value:o.lte.toString(),onChange:C})]}),a.jsx(L.MUISlider,{value:q,onChange:S,min:e==null?void 0:e.gteMin,max:e==null?void 0:e.lteMax,valueLabelDisplay:"auto"})]})});exports.NumberRangeFilter=I;
|
package/dist/index28.js
CHANGED
|
@@ -3,7 +3,7 @@ import { useState as y, useCallback as I } from "react";
|
|
|
3
3
|
import { observer as k } from "mobx-react";
|
|
4
4
|
import E from "lodash/debounce";
|
|
5
5
|
import { Stack as c, Button as _, TextField as p } from "@veeqo/ui";
|
|
6
|
-
import { MUISlider as A } from "./
|
|
6
|
+
import { MUISlider as A } from "./index96.js";
|
|
7
7
|
import { NumberRangeFilter as h } from "./index63.js";
|
|
8
8
|
import { useBusinessLogic as B } from "./index7.js";
|
|
9
9
|
import { useStores as T } from "./index57.js";
|
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("./index83.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 "./index83.js";
|
|
6
6
|
import { FilterGroup as n } from "./index32.js";
|
|
7
7
|
const u = e(() => {
|
|
8
8
|
const { GROUP_MAP: t } = s();
|
package/dist/index36.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./index84.cjs"),g=require("./index48.cjs"),j=require("./index47.cjs"),M=({tab:i,onMakeDefault:l,onEdit:n,onDuplicate:s,onDelete:o,shouldShowDropdown:a,handleCloseDropdown:c})=>{const{openModal:r}=g.useModal(),d=()=>{r(j.ModalId.ORDERS_TABLE_MANAGEMENT),c()},m=i.label!=="Picking In Progress"&&i.editable,u=i.default!==!1&&i.editable,p=i.editable,b=i.editable;return a?e.jsxs(t.MenuItems,{children:[u&&e.jsx(t.Item,{onClick:l,className:"act-react-listing-custom-view-make-default-menu-item",children:"Make default view"}),b&&e.jsx(t.Item,{onClick:n,className:"act-react-listing-custom-view-edit-menu-item",role:"option",children:"Edit"}),e.jsx(t.Item,{onClick:s,className:"act-react-listing-custom-view-duplicate-menu-item",role:"option",children:"Duplicate"}),m&&e.jsx(t.Item,{onClick:o,className:"act-react-listing-custom-view-delete-menu-item",role:"option",children:"Delete"}),p&&e.jsxs(e.Fragment,{children:[e.jsx(t.Divider,{}),e.jsx(t.Item,{onClick:d,role:"option",children:"Table management"})]})]}):null};exports.OptionsDropdown=M;
|
package/dist/index36.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as t, jsx as i, Fragment as f } from "react/jsx-runtime";
|
|
2
|
-
import { MenuItems as M, Item as l, Divider as h } from "./
|
|
2
|
+
import { MenuItems as M, Item as l, Divider as h } from "./index84.js";
|
|
3
3
|
import { useModal as k } from "./index48.js";
|
|
4
4
|
import { ModalId as T } from "./index47.js";
|
|
5
5
|
const N = ({
|
package/dist/index37.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("react-transition-group"),f=require("mobx-react"),x=require("./index58.cjs"),v=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("react-transition-group"),f=require("mobx-react"),x=require("./index58.cjs"),v=require("./index79.cjs"),g=require("./index39.cjs"),h=require("./index57.cjs"),S=f.observer(({tabType:i,isActive:n,shouldShowCreateViewNotification:c,handleSaveDraft:s})=>{var r;const{Filters:{hasUnsavedChanges:l,discardChanges:u,activeViewId:t}}=h.useStores(),d=window.location.pathname==="/orders"?"orders":"variants",{viewsMap:m}=x.useViews(),o=t&&((r=m.get(t))==null?void 0:r.label)||"failure";return e.jsxs(e.Fragment,{children:[e.jsx(a.CSSTransition,{in:i==="draft"&&n&&c,timeout:200,classNames:"notification",unmountOnExit:!0,children:e.jsx(v.InfoPill,{onClick:s,mainEntityLabelPlural:d})}),i!=="fixed"&&o&&e.jsx(a.CSSTransition,{in:l&&n&&i==="saved",timeout:200,classNames:"notification",unmountOnExit:!0,children:e.jsx(g.UnsavedChangesPill,{viewName:o,onDiscard:()=>u(),onSaveDraft:s})})]})});exports.PillNotifications=S;
|
package/dist/index37.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as u, Fragment as p, jsx as i } from "react/jsx-runtime";
|
|
|
2
2
|
import { CSSTransition as a } from "react-transition-group";
|
|
3
3
|
import { observer as h } from "mobx-react";
|
|
4
4
|
import { useViews as v } from "./index58.js";
|
|
5
|
-
import { InfoPill as w } from "./
|
|
5
|
+
import { InfoPill as w } from "./index79.js";
|
|
6
6
|
import { UnsavedChangesPill as x } from "./index39.js";
|
|
7
7
|
import { useStores as g } from "./index57.js";
|
|
8
8
|
const F = h(
|
package/dist/index38.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),d=require("react"),m=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),d=require("react"),m=require("./index82.cjs"),g=require("./index60.cjs"),S=require("./index58.cjs"),b=require("./index3.cjs"),y=require("./index7.cjs"),V=require("./index57.cjs"),p=require("./index10.cjs"),q=()=>{const{VIEW_TYPE:n}=y.useBusinessLogic(),{sortedCustomViews:s,isLoading:u}=S.useViews(),{mutate:a}=g.useCustomViews({type:n}),[c,t]=d.useState(s),{Notifications:{notify:l}}=V.useStores(),w=async o=>{t(o);const r=o.map(e=>e.id);try{await b.patchCurrentUser({user_setting_attributes:{custom_view_positions:{order:r}}}),await a(e=>({...e,settings:{...e.settings,custom_view_positions:{...e.settings.custom_view_positions,order:r}}}),{revalidate:!1})}catch{t(s),l({type:"error",text:"Failed to update order of views"})}};return u||!s.length?null:i.jsx(p.ErrorBoundary,{children:i.jsx(m.LegacySortableViews,{views:c,onChange:w,className:"act-sortable-views"})})};exports.SortableViews=q;
|
package/dist/index38.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { useState as f } from "react";
|
|
3
|
-
import { LegacySortableViews as l } from "./
|
|
3
|
+
import { LegacySortableViews as l } from "./index82.js";
|
|
4
4
|
import { useCustomViews as w } from "./index60.js";
|
|
5
5
|
import { useViews as d } from "./index58.js";
|
|
6
6
|
import { patchCurrentUser as g } from "./index3.js";
|
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 o=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:t=[],pinnedLeftColumnIds:l=[]})=>{var d;const{DEFAULT_HIDDEN_COLUMNS:T,DEFAULT_VISIBLE_COLUMNS:g}=_.useBusinessLogic(),n=[...l,...t],i=T.filter(s=>!n.includes(s)),a=g.filter(s=>!n.includes(s)),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.filter(s
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=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:t=[],pinnedLeftColumnIds:l=[]})=>{var d;const{DEFAULT_HIDDEN_COLUMNS:T,DEFAULT_VISIBLE_COLUMNS:g}=_.useBusinessLogic(),n=[...l,...t],i=T.filter(s=>!n.includes(s)),a=g.filter(s=>!n.includes(s)),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.filter(s=>!n.includes(s)):a,x=u?E.filter(s=>!r.includes(s)):i;return o.jsxs(o.Fragment,{children:[o.jsx(m.Tooltip,{text:e!=null&&e.editable?"Table management":"Go to a custom view to use Table management",children:o.jsx(m.Button,{"aria-label":"Open table management",onClick:()=>A(M.ModalId.ORDERS_TABLE_MANAGEMENT),size:"sm",iconSlot:o.jsx(D.TableManagementGlyph,{}),disabled:!(e!=null&&e.editable)})}),q(M.ModalId.ORDERS_TABLE_MANAGEMENT)&&o.jsx(C.TableManagementModal,{pinnedRightColumnIds:t,pinnedLeftColumnIds:l,visibleColumns:r,hiddenColumns:x,columnDefintions:b,onClose:S})]})});exports.TableManagement=y;
|
package/dist/index43.js
CHANGED
|
@@ -12,7 +12,7 @@ const q = O(({ columnDefinitions: p, pinnedRightColumnIds: t = [], pinnedLeftCol
|
|
|
12
12
|
var d;
|
|
13
13
|
const { DEFAULT_HIDDEN_COLUMNS: M, DEFAULT_VISIBLE_COLUMNS: f } = B(), n = [...i, ...t], l = M.filter((e) => !n.includes(e)), m = f.filter((e) => !n.includes(e)), b = [...l, ...m], { closeModal: T, isModalOpen: E, openModal: A } = I(), { Filters: { activeViewId: a } } = x(), { viewsMap: g, isLoading: C } = y();
|
|
14
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.filter((e) => n.includes(e)) : m, D = r ? b.filter(
|
|
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.filter((e) => !n.includes(e)) : m, D = r ? b.filter(
|
|
16
16
|
(e) => !c.includes(e)
|
|
17
17
|
) : l;
|
|
18
18
|
return /* @__PURE__ */ L(N, { children: [
|
package/dist/index77.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("@veeqo/ui"),s=require("react"),w=require("@veeqo/components"),S=require("./index85.cjs"),i=require("./index86.cjs"),T=require("./index87.cjs"),V=require("./index88.cjs"),n=require("./index89.cjs"),D=require("./index78.cjs"),H=require("./index90.cjs"),j=require("./index91.cjs"),{Glyph:O}=w.VeeqoCommon,$=({onClose:u,columnDefintions:G,hiddenColumns:d,visibleColumns:m,pinnedLeftColumnIds:y,pinnedRightColumnIds:f})=>{const[c,p]=s.useState(""),a=s.useMemo(()=>new Map(G.map(r=>[r.id,r])),[]),[o,g]=s.useState(()=>({[n.ColumnGroupIds.Hidden]:d,[n.ColumnGroupIds.Visible]:m})),I=s.useMemo(()=>{const r=o[n.ColumnGroupIds.Visible].map(t=>a.get(`${t}`));return j.filterColumnsBySearch(r,c)},[o,a,c]),v=s.useMemo(()=>{const r=o[n.ColumnGroupIds.Hidden].map(t=>a.get(`${t}`));return j.filterColumnsBySearch(r,c)},[o,a,c]),{isSavingColumns:h,saveColumns:M}=H.usePersistColumns({pinnedLeftColumnIds:y,pinnedRightColumnIds:f}),q=()=>{p(""),g({[n.ColumnGroupIds.Hidden]:d,[n.ColumnGroupIds.Visible]:m})},x=s.useCallback(r=>{if(p(r),!r){const t=new Set([...d,...m]);g(b=>({[n.ColumnGroupIds.Hidden]:b[n.ColumnGroupIds.Hidden].filter(C=>t.has(`${C}`)),[n.ColumnGroupIds.Visible]:b[n.ColumnGroupIds.Visible].filter(C=>t.has(`${C}`))}))}},[d,m]),k=s.useCallback(r=>{const t=a.get(`${r}`);return t?e.jsx(V.ColumnItem,{column:t,isDragOverlay:!0}):null},[a]);return e.jsx(l.Modal,{variant:"lg",style:{overflowY:"hidden"},shouldShow:!0,onClose:()=>u==null?void 0:u(),headerSlot:e.jsxs(i.HeaderContainer,{children:[e.jsxs(l.Stack,{direction:"horizontal",alignX:"between",alignY:"center",children:[e.jsxs(l.Stack,{direction:"horizontal",alignX:"start",alignY:"center",spacing:"sm",children:[e.jsx(D.TableManagementGlyph,{height:32,width:32}),e.jsx(l.Text,{variant:"headingLarge",as:"h1",children:"Table management"})]}),e.jsx(l.Button,{"aria-label":"Close modal",onClick:u,variant:"flat",iconSlot:e.jsx(O,{name:"close"})})]}),e.jsxs(l.Text,{variant:"subheadingMedium",children:["Show, hide, or change the order of the columns in the view, so you always see the data that's most important to you. Learn more with our"," ",e.jsx(l.Anchor,{href:"#",target:"_blank",children:"help guide (TODO)"}),"."]}),e.jsx(l.Text,{variant:"headingSmall",children:"Column management"}),e.jsx(i.ColumnSearch,{name:"column-search-query",placeholder:"Search",value:c,onChange:x,onClearClick:()=>x(""),fill:"100%"})]}),leftActions:[{label:"Reset",onClick:q,variant:"default",disabled:h}],rightActions:[{label:"Cancel",onClick:u,variant:"default",disabled:h},{label:"Save",onClick:()=>M({visibleColumns:o[n.ColumnGroupIds.Visible]}),variant:"primary",disabled:h,loading:h}],children:e.jsx(l.Stack,{spacing:"md",alignX:"stretch",children:e.jsx(l.Stack,{spacing:4,alignX:"stretch",children:e.jsx(T.DndContainer,{items:o,setItems:g,renderDragOverlay:k,children:e.jsx(i.Container,{children:e.jsxs(i.ColumnGroupsGrid,{columns:2,spacing:"xl",children:[e.jsx(S.ColumnGroup,{id:n.ColumnGroupIds.Visible,title:"Shown columns:",columns:I}),e.jsx(i.VerticalSeparator,{children:e.jsx(i.VerticalText,{children:"Drag & Drop columns"})}),e.jsx(S.ColumnGroup,{id:n.ColumnGroupIds.Hidden,title:"Hidden columns:",columns:v})]})})})})})})};exports.TableManagementModal=$;
|
package/dist/index77.js
CHANGED
|
@@ -1,84 +1,90 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { Modal as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { VeeqoCommon as
|
|
5
|
-
import { ColumnGroup as
|
|
6
|
-
import { Container as
|
|
7
|
-
import { DndContainer as
|
|
8
|
-
import { ColumnItem as
|
|
9
|
-
import { ColumnGroupIds as
|
|
10
|
-
import { TableManagementGlyph as
|
|
11
|
-
import { usePersistColumns as
|
|
12
|
-
import { filterColumnsBySearch as
|
|
13
|
-
const { Glyph:
|
|
1
|
+
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { Modal as O, Stack as h, Text as p, Button as X, Anchor as A } from "@veeqo/ui";
|
|
3
|
+
import { useState as v, useMemo as f, useCallback as y } from "react";
|
|
4
|
+
import { VeeqoCommon as I } from "@veeqo/components";
|
|
5
|
+
import { ColumnGroup as w } from "./index85.js";
|
|
6
|
+
import { Container as Y, ColumnGroupsGrid as j, VerticalSeparator as z, VerticalText as B, HeaderContainer as L, ColumnSearch as Q } from "./index86.js";
|
|
7
|
+
import { DndContainer as R } from "./index87.js";
|
|
8
|
+
import { ColumnItem as q } from "./index88.js";
|
|
9
|
+
import { ColumnGroupIds as n } from "./index89.js";
|
|
10
|
+
import { TableManagementGlyph as P } from "./index78.js";
|
|
11
|
+
import { usePersistColumns as _ } from "./index90.js";
|
|
12
|
+
import { filterColumnsBySearch as V } from "./index91.js";
|
|
13
|
+
const { Glyph: E } = I, te = ({
|
|
14
14
|
onClose: l,
|
|
15
|
-
columnDefintions:
|
|
16
|
-
hiddenColumns:
|
|
17
|
-
visibleColumns:
|
|
18
|
-
pinnedLeftColumnIds:
|
|
19
|
-
pinnedRightColumnIds:
|
|
15
|
+
columnDefintions: k,
|
|
16
|
+
hiddenColumns: s,
|
|
17
|
+
visibleColumns: m,
|
|
18
|
+
pinnedLeftColumnIds: D,
|
|
19
|
+
pinnedRightColumnIds: H
|
|
20
20
|
}) => {
|
|
21
|
-
const [o,
|
|
22
|
-
() => new Map(
|
|
21
|
+
const [o, b] = v(""), i = f(
|
|
22
|
+
() => new Map(k.map((a) => [a.id, a])),
|
|
23
23
|
[]
|
|
24
|
-
), [
|
|
25
|
-
[
|
|
26
|
-
[
|
|
27
|
-
})), M =
|
|
28
|
-
const
|
|
29
|
-
return
|
|
30
|
-
}, [
|
|
31
|
-
const
|
|
32
|
-
return
|
|
33
|
-
}, [
|
|
34
|
-
|
|
35
|
-
[
|
|
36
|
-
[
|
|
24
|
+
), [t, u] = v(() => ({
|
|
25
|
+
[n.Hidden]: s,
|
|
26
|
+
[n.Visible]: m
|
|
27
|
+
})), M = f(() => {
|
|
28
|
+
const a = t[n.Visible].map((r) => i.get(`${r}`));
|
|
29
|
+
return V(a, o);
|
|
30
|
+
}, [t, i, o]), x = f(() => {
|
|
31
|
+
const a = t[n.Hidden].map((r) => i.get(`${r}`));
|
|
32
|
+
return V(a, o);
|
|
33
|
+
}, [t, i, o]), { isSavingColumns: d, saveColumns: G } = _({ pinnedLeftColumnIds: D, pinnedRightColumnIds: H }), T = () => {
|
|
34
|
+
b(""), u({
|
|
35
|
+
[n.Hidden]: s,
|
|
36
|
+
[n.Visible]: m
|
|
37
37
|
});
|
|
38
|
-
}, C =
|
|
39
|
-
(
|
|
40
|
-
|
|
38
|
+
}, C = y(
|
|
39
|
+
(a) => {
|
|
40
|
+
if (b(a), !a) {
|
|
41
|
+
const r = /* @__PURE__ */ new Set([...s, ...m]);
|
|
42
|
+
u((S) => ({
|
|
43
|
+
[n.Hidden]: S[n.Hidden].filter((g) => r.has(`${g}`)),
|
|
44
|
+
[n.Visible]: S[n.Visible].filter((g) => r.has(`${g}`))
|
|
45
|
+
}));
|
|
46
|
+
}
|
|
41
47
|
},
|
|
42
|
-
[]
|
|
43
|
-
),
|
|
44
|
-
(
|
|
45
|
-
const
|
|
46
|
-
return
|
|
48
|
+
[s, m]
|
|
49
|
+
), $ = y(
|
|
50
|
+
(a) => {
|
|
51
|
+
const r = i.get(`${a}`);
|
|
52
|
+
return r ? /* @__PURE__ */ e(q, { column: r, isDragOverlay: !0 }) : null;
|
|
47
53
|
},
|
|
48
|
-
[
|
|
54
|
+
[i]
|
|
49
55
|
);
|
|
50
56
|
return /* @__PURE__ */ e(
|
|
51
|
-
|
|
57
|
+
O,
|
|
52
58
|
{
|
|
53
59
|
variant: "lg",
|
|
54
60
|
style: { overflowY: "hidden" },
|
|
55
61
|
shouldShow: !0,
|
|
56
62
|
onClose: () => l == null ? void 0 : l(),
|
|
57
|
-
headerSlot: /* @__PURE__ */
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
-
/* @__PURE__ */
|
|
60
|
-
/* @__PURE__ */ e(
|
|
61
|
-
/* @__PURE__ */ e(
|
|
63
|
+
headerSlot: /* @__PURE__ */ c(L, { children: [
|
|
64
|
+
/* @__PURE__ */ c(h, { direction: "horizontal", alignX: "between", alignY: "center", children: [
|
|
65
|
+
/* @__PURE__ */ c(h, { direction: "horizontal", alignX: "start", alignY: "center", spacing: "sm", children: [
|
|
66
|
+
/* @__PURE__ */ e(P, { height: 32, width: 32 }),
|
|
67
|
+
/* @__PURE__ */ e(p, { variant: "headingLarge", as: "h1", children: "Table management" })
|
|
62
68
|
] }),
|
|
63
69
|
/* @__PURE__ */ e(
|
|
64
|
-
|
|
70
|
+
X,
|
|
65
71
|
{
|
|
66
72
|
"aria-label": "Close modal",
|
|
67
73
|
onClick: l,
|
|
68
74
|
variant: "flat",
|
|
69
|
-
iconSlot: /* @__PURE__ */ e(
|
|
75
|
+
iconSlot: /* @__PURE__ */ e(E, { name: "close" })
|
|
70
76
|
}
|
|
71
77
|
)
|
|
72
78
|
] }),
|
|
73
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ c(p, { variant: "subheadingMedium", children: [
|
|
74
80
|
"Show, hide, or change the order of the columns in the view, so you always see the data that's most important to you. Learn more with our",
|
|
75
81
|
" ",
|
|
76
|
-
/* @__PURE__ */ e(
|
|
82
|
+
/* @__PURE__ */ e(A, { href: "#", target: "_blank", children: "help guide (TODO)" }),
|
|
77
83
|
"."
|
|
78
84
|
] }),
|
|
79
|
-
/* @__PURE__ */ e(
|
|
85
|
+
/* @__PURE__ */ e(p, { variant: "headingSmall", children: "Column management" }),
|
|
80
86
|
/* @__PURE__ */ e(
|
|
81
|
-
|
|
87
|
+
Q,
|
|
82
88
|
{
|
|
83
89
|
name: "column-search-query",
|
|
84
90
|
placeholder: "Search",
|
|
@@ -92,9 +98,9 @@ const { Glyph: P } = A, ae = ({
|
|
|
92
98
|
leftActions: [
|
|
93
99
|
{
|
|
94
100
|
label: "Reset",
|
|
95
|
-
onClick:
|
|
101
|
+
onClick: T,
|
|
96
102
|
variant: "default",
|
|
97
|
-
disabled:
|
|
103
|
+
disabled: d
|
|
98
104
|
}
|
|
99
105
|
],
|
|
100
106
|
rightActions: [
|
|
@@ -102,32 +108,32 @@ const { Glyph: P } = A, ae = ({
|
|
|
102
108
|
label: "Cancel",
|
|
103
109
|
onClick: l,
|
|
104
110
|
variant: "default",
|
|
105
|
-
disabled:
|
|
111
|
+
disabled: d
|
|
106
112
|
},
|
|
107
113
|
{
|
|
108
114
|
label: "Save",
|
|
109
|
-
onClick: () =>
|
|
115
|
+
onClick: () => G({ visibleColumns: t[n.Visible] }),
|
|
110
116
|
variant: "primary",
|
|
111
|
-
disabled:
|
|
112
|
-
loading:
|
|
117
|
+
disabled: d,
|
|
118
|
+
loading: d
|
|
113
119
|
}
|
|
114
120
|
],
|
|
115
|
-
children: /* @__PURE__ */ e(
|
|
121
|
+
children: /* @__PURE__ */ e(h, { spacing: "md", alignX: "stretch", children: /* @__PURE__ */ e(h, { spacing: 4, alignX: "stretch", children: /* @__PURE__ */ e(R, { items: t, setItems: u, renderDragOverlay: $, children: /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ c(j, { columns: 2, spacing: "xl", children: [
|
|
116
122
|
/* @__PURE__ */ e(
|
|
117
|
-
|
|
123
|
+
w,
|
|
118
124
|
{
|
|
119
|
-
id:
|
|
125
|
+
id: n.Visible,
|
|
120
126
|
title: "Shown columns:",
|
|
121
127
|
columns: M
|
|
122
128
|
}
|
|
123
129
|
),
|
|
124
|
-
/* @__PURE__ */ e(
|
|
130
|
+
/* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(B, { children: "Drag & Drop columns" }) }),
|
|
125
131
|
/* @__PURE__ */ e(
|
|
126
|
-
|
|
132
|
+
w,
|
|
127
133
|
{
|
|
128
|
-
id:
|
|
134
|
+
id: n.Hidden,
|
|
129
135
|
title: "Hidden columns:",
|
|
130
|
-
columns:
|
|
136
|
+
columns: x
|
|
131
137
|
}
|
|
132
138
|
)
|
|
133
139
|
] }) }) }) }) })
|
|
@@ -135,5 +141,5 @@ const { Glyph: P } = A, ae = ({
|
|
|
135
141
|
);
|
|
136
142
|
};
|
|
137
143
|
export {
|
|
138
|
-
|
|
144
|
+
te as TableManagementModal
|
|
139
145
|
};
|
package/dist/index79.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"),t=require("./index95.cjs"),a=i.theme.colors.secondary.blue.base,o=({mainEntityLabelPlural:r="",onClick:n})=>e.jsx(t.Notification,{className:"act-react-listing-custom-notification-new-draft",children:e.jsx(t.Pill,{children:e.jsxs(i.Stack,{direction:"horizontal",alignY:"center",children:[e.jsx(t.Glyph,{name:"info",color:a}),e.jsxs(t.Wrap,{children:[e.jsx(t.Text,{variant:"body",margin:"0 4px 0 0",children:"You are currently in a"}),e.jsx(t.Bold,{variant:"bodyBoldDark",children:"draft view"}),e.jsx(t.Hint,{variant:"hintText",children:`Apply filters and create a custom view of your ${r.toLowerCase()}`})]}),e.jsx(t.Button,{className:"act-react-listing-custom-notification-save-draft-btn",variant:"primary",onClick:n,size:"sm",children:"Create view"})]})})});exports.InfoPill=o;
|
package/dist/index79.js
CHANGED
|
@@ -1,26 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}, []), /* @__PURE__ */ p(v, { style: s, className: f, offset: i, ref: r, children: o });
|
|
23
|
-
};
|
|
1
|
+
import { jsx as t, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { Stack as e, theme as o } from "@veeqo/ui";
|
|
3
|
+
import { Notification as n, Pill as c, Glyph as l, Wrap as s, Text as d, Bold as m, Hint as f, Button as h } from "./index95.js";
|
|
4
|
+
const p = o.colors.secondary.blue.base, x = ({ mainEntityLabelPlural: r = "", onClick: a }) => /* @__PURE__ */ t(n, { className: "act-react-listing-custom-notification-new-draft", children: /* @__PURE__ */ t(c, { children: /* @__PURE__ */ i(e, { direction: "horizontal", alignY: "center", children: [
|
|
5
|
+
/* @__PURE__ */ t(l, { name: "info", color: p }),
|
|
6
|
+
/* @__PURE__ */ i(s, { children: [
|
|
7
|
+
/* @__PURE__ */ t(d, { variant: "body", margin: "0 4px 0 0", children: "You are currently in a" }),
|
|
8
|
+
/* @__PURE__ */ t(m, { variant: "bodyBoldDark", children: "draft view" }),
|
|
9
|
+
/* @__PURE__ */ t(f, { variant: "hintText", children: `Apply filters and create a custom view of your ${r.toLowerCase()}` })
|
|
10
|
+
] }),
|
|
11
|
+
/* @__PURE__ */ t(
|
|
12
|
+
h,
|
|
13
|
+
{
|
|
14
|
+
className: "act-react-listing-custom-notification-save-draft-btn",
|
|
15
|
+
variant: "primary",
|
|
16
|
+
onClick: a,
|
|
17
|
+
size: "sm",
|
|
18
|
+
children: "Create view"
|
|
19
|
+
}
|
|
20
|
+
)
|
|
21
|
+
] }) }) });
|
|
24
22
|
export {
|
|
25
|
-
|
|
23
|
+
x as InfoPill
|
|
26
24
|
};
|
package/dist/index82.cjs
CHANGED
|
@@ -1,19 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
margin: ${e.theme.sizes.xs};
|
|
3
|
-
min-width: 180px;
|
|
4
|
-
justify-content: flex-start;
|
|
5
|
-
font-size: ${e.theme.text.body.fontSize};
|
|
6
|
-
|
|
7
|
-
&:hover {
|
|
8
|
-
background-color: ${e.theme.colors.neutral.grey.lightest};
|
|
9
|
-
color: ${e.theme.colors.secondary.blue.base};
|
|
10
|
-
cursor: pointer;
|
|
11
|
-
}
|
|
12
|
-
`,n=o.default(e.Card.Surface).attrs(()=>({role:"listbox",elevation:4}))`
|
|
13
|
-
margin-top: ${e.theme.sizes.xs};
|
|
14
|
-
background-color: white;
|
|
15
|
-
`,l=o.default.hr`
|
|
16
|
-
width: 100%;
|
|
17
|
-
border-top: 1px solid ${e.theme.colors.neutral.grey.dark};
|
|
18
|
-
margin: 0;
|
|
19
|
-
`;exports.Divider=l;exports.Item=i;exports.MenuItems=n;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),l=require("./index97.cjs"),o=e=>i.jsx(l.StyledSortableViews,{...e,onChange:t=>{t.filter(r=>{var n;return(n=r.children)==null?void 0:n.length}).length||e.onChange(t)}});exports.LegacySortableViews=o;
|
package/dist/index82.js
CHANGED
|
@@ -1,26 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { StyledSortableViews as i } from "./index97.js";
|
|
3
|
+
const h = (e) => /* @__PURE__ */ o(
|
|
4
|
+
i,
|
|
5
|
+
{
|
|
6
|
+
...e,
|
|
7
|
+
onChange: (t) => {
|
|
8
|
+
t.filter((n) => {
|
|
9
|
+
var r;
|
|
10
|
+
return (r = n.children) == null ? void 0 : r.length;
|
|
11
|
+
}).length || e.onChange(t);
|
|
12
|
+
}
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
margin-top: ${o.sizes.xs};
|
|
16
|
-
background-color: white;
|
|
17
|
-
`, l = t.hr`
|
|
18
|
-
width: 100%;
|
|
19
|
-
border-top: 1px solid ${o.colors.neutral.grey.dark};
|
|
20
|
-
margin: 0;
|
|
21
|
-
`;
|
|
14
|
+
);
|
|
22
15
|
export {
|
|
23
|
-
|
|
24
|
-
n as Item,
|
|
25
|
-
a as MenuItems
|
|
16
|
+
h as LegacySortableViews
|
|
26
17
|
};
|
package/dist/index83.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;
|
package/dist/index83.js
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as a, useState as d, useEffect as m } from "react";
|
|
3
|
+
import { AdaptiveStyledContainer as v } from "./index102.js";
|
|
4
|
+
const R = ({
|
|
5
|
+
children: o,
|
|
6
|
+
style: s,
|
|
7
|
+
className: f
|
|
8
|
+
}) => {
|
|
9
|
+
const r = a(null), [i, c] = d(0);
|
|
10
|
+
return m(() => {
|
|
11
|
+
const e = r.current, n = () => {
|
|
12
|
+
if (e) {
|
|
13
|
+
const { top: u } = e.getBoundingClientRect();
|
|
14
|
+
c(u);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
n();
|
|
18
|
+
const t = new ResizeObserver(n);
|
|
19
|
+
return e && t.observe(e), () => {
|
|
20
|
+
e && t.unobserve(e), t.disconnect();
|
|
21
|
+
};
|
|
22
|
+
}, []), /* @__PURE__ */ p(v, { style: s, className: f, offset: i, ref: r, children: o });
|
|
23
|
+
};
|
|
22
24
|
export {
|
|
23
|
-
|
|
25
|
+
R as AdaptiveHeightContainer
|
|
24
26
|
};
|
package/dist/index84.cjs
CHANGED
|
@@ -1 +1,19 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("styled-components"),e=require("@veeqo/ui"),s=t=>t&&t.__esModule?t:{default:t},o=s(r),i=o.default(e.Button).attrs(()=>({role:"option",variant:"flat"}))`
|
|
2
|
+
margin: ${e.theme.sizes.xs};
|
|
3
|
+
min-width: 180px;
|
|
4
|
+
justify-content: flex-start;
|
|
5
|
+
font-size: ${e.theme.text.body.fontSize};
|
|
6
|
+
|
|
7
|
+
&:hover {
|
|
8
|
+
background-color: ${e.theme.colors.neutral.grey.lightest};
|
|
9
|
+
color: ${e.theme.colors.secondary.blue.base};
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
}
|
|
12
|
+
`,n=o.default(e.Card.Surface).attrs(()=>({role:"listbox",elevation:4}))`
|
|
13
|
+
margin-top: ${e.theme.sizes.xs};
|
|
14
|
+
background-color: white;
|
|
15
|
+
`,l=o.default.hr`
|
|
16
|
+
width: 100%;
|
|
17
|
+
border-top: 1px solid ${e.theme.colors.neutral.grey.dark};
|
|
18
|
+
margin: 0;
|
|
19
|
+
`;exports.Divider=l;exports.Item=i;exports.MenuItems=n;
|