@veeqo/transfigure 1.0.0 → 1.1.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.
Files changed (151) hide show
  1. package/dist/hooks/index.d.ts +1 -0
  2. package/dist/hooks/useUrlChange/index.d.ts +1 -0
  3. package/dist/hooks/useUrlChange/useUrlChange.d.ts +7 -0
  4. package/dist/hooks/useViewCountsHook/useViewCountsHook.d.ts +1 -1
  5. package/dist/index.cjs +1 -1
  6. package/dist/index.js +52 -50
  7. package/dist/index100.cjs +1 -19
  8. package/dist/index100.js +28 -23
  9. package/dist/index102.cjs +1 -1
  10. package/dist/index102.js +24 -2
  11. package/dist/index103.cjs +1 -1
  12. package/dist/index103.js +1 -1
  13. package/dist/index104.cjs +1 -1
  14. package/dist/index104.js +1 -1
  15. package/dist/index107.cjs +1 -13
  16. package/dist/index107.js +2 -17
  17. package/dist/index108.cjs +13 -1
  18. package/dist/index108.js +14 -33
  19. package/dist/index110.cjs +1 -7
  20. package/dist/index110.js +36 -10
  21. package/dist/index111.cjs +7 -1
  22. package/dist/index111.js +10 -63
  23. package/dist/index112.cjs +1 -1
  24. package/dist/index112.js +58 -42
  25. package/dist/index113.cjs +1 -0
  26. package/dist/index113.js +49 -0
  27. package/dist/index15.cjs +1 -1
  28. package/dist/index15.js +1 -1
  29. package/dist/index19.cjs +1 -1
  30. package/dist/index19.js +1 -1
  31. package/dist/index20.cjs +1 -1
  32. package/dist/index20.js +2 -2
  33. package/dist/index21.cjs +1 -1
  34. package/dist/index21.js +2 -2
  35. package/dist/index24.cjs +1 -1
  36. package/dist/index24.js +2 -2
  37. package/dist/index25.cjs +1 -1
  38. package/dist/index25.js +2 -2
  39. package/dist/index27.cjs +1 -1
  40. package/dist/index27.js +1 -1
  41. package/dist/index29.cjs +1 -1
  42. package/dist/index29.js +2 -2
  43. package/dist/index32.cjs +1 -1
  44. package/dist/index32.js +1 -1
  45. package/dist/index34.cjs +1 -1
  46. package/dist/index34.js +4 -4
  47. package/dist/index36.cjs +1 -1
  48. package/dist/index36.js +1 -1
  49. package/dist/index37.cjs +1 -1
  50. package/dist/index37.js +1 -1
  51. package/dist/index38.cjs +1 -1
  52. package/dist/index38.js +1 -1
  53. package/dist/index39.cjs +1 -1
  54. package/dist/index39.js +2 -2
  55. package/dist/index42.cjs +1 -1
  56. package/dist/index42.js +1 -1
  57. package/dist/index44.cjs +1 -1
  58. package/dist/index44.js +2 -2
  59. package/dist/index45.cjs +1 -1
  60. package/dist/index45.js +3 -3
  61. package/dist/index54.cjs +1 -1
  62. package/dist/index54.js +3 -3
  63. package/dist/index56.cjs +1 -1
  64. package/dist/index56.js +2 -2
  65. package/dist/index57.cjs +1 -1
  66. package/dist/index57.js +2 -2
  67. package/dist/index58.cjs +1 -1
  68. package/dist/index58.js +2 -2
  69. package/dist/index6.cjs +1 -1
  70. package/dist/index6.js +4 -4
  71. package/dist/index60.cjs +1 -1
  72. package/dist/index60.js +3 -3
  73. package/dist/index61.cjs +1 -1
  74. package/dist/index61.js +2 -2
  75. package/dist/index62.cjs +1 -1
  76. package/dist/index62.js +22 -18
  77. package/dist/index63.cjs +1 -1
  78. package/dist/index63.js +16 -26
  79. package/dist/index64.cjs +1 -1
  80. package/dist/index64.js +26 -10
  81. package/dist/index65.cjs +1 -1
  82. package/dist/index65.js +13 -326
  83. package/dist/index66.cjs +1 -1
  84. package/dist/index66.js +321 -55
  85. package/dist/index67.cjs +1 -1
  86. package/dist/index67.js +50 -47
  87. package/dist/index68.cjs +1 -1
  88. package/dist/index68.js +51 -32
  89. package/dist/index69.cjs +1 -1
  90. package/dist/index69.js +30 -24
  91. package/dist/index70.cjs +1 -1
  92. package/dist/index70.js +26 -32
  93. package/dist/index71.cjs +1 -1
  94. package/dist/index71.js +37 -12
  95. package/dist/index72.cjs +1 -1
  96. package/dist/index72.js +13 -9
  97. package/dist/index73.cjs +1 -1
  98. package/dist/index73.js +9 -17
  99. package/dist/index74.cjs +1 -1
  100. package/dist/index74.js +14 -16
  101. package/dist/index75.cjs +1 -1
  102. package/dist/index75.js +18 -49
  103. package/dist/index76.cjs +1 -1
  104. package/dist/index76.js +50 -21
  105. package/dist/index77.cjs +1 -1
  106. package/dist/index77.js +21 -7
  107. package/dist/index78.cjs +1 -1
  108. package/dist/index78.js +7 -2
  109. package/dist/index79.cjs +1 -1
  110. package/dist/index79.js +2 -9
  111. package/dist/index80.cjs +1 -3
  112. package/dist/index80.js +8 -13
  113. package/dist/index81.cjs +3 -1
  114. package/dist/index81.js +13 -8
  115. package/dist/index82.cjs +1 -11
  116. package/dist/index82.js +9 -16
  117. package/dist/index83.cjs +11 -1
  118. package/dist/index83.js +16 -41
  119. package/dist/index84.cjs +1 -1
  120. package/dist/index84.js +40 -8
  121. package/dist/index85.cjs +1 -1
  122. package/dist/index85.js +9 -118
  123. package/dist/index86.cjs +1 -1
  124. package/dist/index86.js +117 -18
  125. package/dist/index87.cjs +1 -1
  126. package/dist/index87.js +19 -13
  127. package/dist/index88.cjs +1 -104
  128. package/dist/index88.js +13 -120
  129. package/dist/index89.cjs +104 -1
  130. package/dist/index89.js +117 -65
  131. package/dist/index90.cjs +1 -1
  132. package/dist/index90.js +63 -24
  133. package/dist/index91.cjs +1 -1
  134. package/dist/index91.js +29 -2
  135. package/dist/index92.cjs +1 -1
  136. package/dist/index92.js +2 -41
  137. package/dist/index93.cjs +1 -1
  138. package/dist/index93.js +39 -9
  139. package/dist/index94.cjs +1 -1
  140. package/dist/index94.js +10 -23
  141. package/dist/index95.cjs +1 -12
  142. package/dist/index95.js +21 -16
  143. package/dist/index96.cjs +19 -1
  144. package/dist/index96.js +24 -33
  145. package/dist/index97.cjs +1 -1
  146. package/dist/index97.js +12 -26
  147. package/dist/index98.cjs +12 -1
  148. package/dist/index98.js +16 -21
  149. package/dist/index99.cjs +1 -1
  150. package/dist/index99.js +32 -14
  151. package/package.json +1 -1
@@ -6,6 +6,7 @@ export * from './usePersistUnsavedChanges';
6
6
  export * from './useStores';
7
7
  export * from './useViews';
8
8
  export * from './useViewUrlChange';
9
+ export * from './useUrlChange';
9
10
  export * from './useCustomViews';
10
11
  export * from './useColumns';
11
12
  export * from './useUrlParams';
@@ -0,0 +1 @@
1
+ export { useUrlChange } from './useUrlChange';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This hook should be used when filters are being on a page that does not incorporate Views functionality.
3
+ * It should be mounted at the top level of the page, if the <ViewsList /> component isn't rendered.
4
+ *
5
+ * An extended version of the hook can be found in useViewUrlChange() which is mounted inside <ViewsList />
6
+ */
7
+ export declare const useUrlChange: () => void;
@@ -9,7 +9,7 @@ export type PaginationType = {
9
9
  export type ResponseType = {
10
10
  meta: PaginationType;
11
11
  };
12
- export declare const useViewCounts: (viewId: string) => {
12
+ export declare const useViewCounts: () => {
13
13
  viewCounts: string | undefined;
14
14
  error: any;
15
15
  isLoadingViewCounts: boolean;
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index2.cjs"),o=require("./index3.cjs"),n=require("./index4.cjs"),a=require("./index5.cjs"),c=require("./index6.cjs"),u=require("./index7.cjs"),l=require("./index8.cjs"),F=require("./index9.cjs"),d=require("./index10.cjs"),q=require("./index11.cjs"),g=require("./index12.cjs"),w=require("./index13.cjs"),A=require("./index14.cjs"),V=require("./index15.cjs"),C=require("./index16.cjs"),p=require("./index17.cjs"),v=require("./index18.cjs"),b=require("./index19.cjs"),h=require("./index20.cjs"),R=require("./index21.cjs"),m=require("./index22.cjs"),T=require("./index23.cjs"),D=require("./index24.cjs"),M=require("./index25.cjs"),y=require("./index26.cjs"),S=require("./index27.cjs"),P=require("./index28.cjs"),N=require("./index29.cjs"),O=require("./index30.cjs"),L=require("./index31.cjs"),U=require("./index32.cjs"),B=require("./index33.cjs"),f=require("./index34.cjs"),k=require("./index35.cjs"),I=require("./index36.cjs"),x=require("./index37.cjs"),H=require("./index38.cjs"),E=require("./index39.cjs"),_=require("./index40.cjs"),G=require("./index41.cjs"),W=require("./index42.cjs"),X=require("./index43.cjs"),$=require("./index44.cjs"),J=require("./index45.cjs"),e=require("./index46.cjs"),r=require("./index47.cjs"),K=require("./index48.cjs"),j=require("./index49.cjs"),z=require("./index50.cjs"),Q=require("./index51.cjs"),i=require("./index52.cjs"),t=require("./index53.cjs"),Y=require("./index54.cjs"),Z=require("./index55.cjs"),ee=require("./index56.cjs"),re=require("./index57.cjs"),ie=require("./index58.cjs"),te=require("./index59.cjs"),se=require("./index60.cjs"),oe=require("./index61.cjs"),ne=require("./index62.cjs"),ae=require("./index63.cjs"),ce=require("./index64.cjs"),ue=require("./index65.cjs"),le=require("./index66.cjs"),Fe=require("./index67.cjs"),de=require("./index68.cjs"),qe=require("./index69.cjs"),ge=require("./index70.cjs"),we=require("./index71.cjs"),Ae=require("./index72.cjs"),Ve=require("./index73.cjs"),Ce=require("./index74.cjs"),pe=require("./index75.cjs"),ve=require("./index76.cjs"),be=require("./index77.cjs");exports.deleteCustomView=s.deleteCustomView;exports.patchCurrentUser=o.patchCurrentUser;exports.patchCustomView=n.patchCustomView;exports.createCustomView=a.createCustomView;exports.axios=c.axios;exports.useBusinessLogic=u.useBusinessLogic;exports.BusinessLogicManager=l.BusinessLogicManager;exports.setMockedBusinessLogic=F.setMockedBusinessLogic;exports.ErrorBoundary=d.ErrorBoundary;exports.SearchBar=q.SearchBar;exports.TableControls=g.TableControls;exports.ToastsManager=w.ToastsManager;exports.ActiveFilters=A.ActiveFilters;exports.FilterArrayField=V.FilterArrayField;exports.FilterField=C.FilterField;exports.ActiveFilterTag=p.ActiveFilterTag;exports.ActiveFilterArrayTag=v.ActiveFilterArrayTag;exports.ActiveFilterDateRangeTag=b.ActiveFilterDateRangeTag;exports.ActiveFilterNumberRangeTag=h.ActiveFilterNumberRangeTag;exports.ActiveAsyncRadioFilter=R.ActiveAsyncRadioFilter;exports.ActiveFilterFooter=m.ActiveFilterFooter;exports.ActiveFilterHeader=T.ActiveFilterHeader;exports.AsyncCheckboxFilter=D.AsyncCheckboxFilter;exports.AsyncRadioFilter=M.AsyncRadioFilter;exports.CheckboxFilter=y.CheckboxFilter;exports.DateRangeFilter=S.DateRangeFilter;exports.MultipleFieldFilter=P.MultipleFieldFilter;exports.NumberRangeFilter=N.NumberRangeFilter;exports.RadioFilter=O.RadioFilter;exports.FiltersDropdown=L.FiltersDropdown;exports.FiltersList=U.FiltersList;exports.FilterGroup=B.FilterGroup;exports.ViewTab=f.ViewTab;exports.CreateView=k.CreateView;exports.EditDropdown=I.EditDropdown;exports.OptionsDropdown=x.OptionsDropdown;exports.PillNotifications=H.PillNotifications;exports.SortableViews=E.SortableViews;exports.UnsavedChangesPill=_.UnsavedChangesPill;exports.ViewDropdowns=G.ViewDropdowns;exports.ViewList=W.ViewList;exports.SHARING_OPTIONS=X.SHARING_OPTIONS;exports.TableManagement=$.TableManagement;exports.RefreshButton=J.RefreshButton;exports.DateOptionMap=e.DateOptionMap;exports.DateValue=e.DateValue;exports.FilterChoiceValue=r.FilterChoiceValue;exports.SWR_HOOK_OPTIONS=r.SWR_HOOK_OPTIONS;exports.ModalProvider=K.ModalProvider;exports.ModalId=j.ModalId;exports.useModal=z.useModal;exports.withCSRF=Q.withCSRF;exports.onlyJSON=i.onlyJSON;exports.vndAPI=i.vndAPI;exports.fetcherV1=t.fetcherV1;exports.fetcherV2=t.fetcherV2;exports.useDropdownManager=Y.useDropdownManager;exports.useDuplicateActiveView=Z.useDuplicateActiveView;exports.useFilterArrayLabel=ee.useFilterArrayLabel;exports.useFilterLabel=re.useFilterLabel;exports.usePersistUnsavedChanges=ie.usePersistUnsavedChanges;exports.useStores=te.useStores;exports.useViews=se.useViews;exports.useViewUrlChange=oe.useViewUrlChange;exports.useCustomViews=ne.useCustomViews;exports.useColumns=ae.useColumns;exports.useUrlParams=ce.useUrlParams;exports.Filters=ue.Filters;exports.NumberRangeFilterClass=le.NumberRangeFilter;exports.RangeFilter=Fe.RangeFilter;exports.Views=de.Views;exports.Notifications=qe.Notifications;exports.Table=ge.Table;exports.MobXProvider=we.MobXProvider;exports.getAsyncOptions=Ae.getAsyncOptions;exports.getFetcherFunction=Ve.getFetcherFunction;exports.isValidDateRange=Ce.isValidDateRange;exports.viewsAdapter=pe.viewsAdapter;exports.createAllView=ve.createAllView;exports.mockUseStores=be.mockUseStores;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index2.cjs"),o=require("./index3.cjs"),n=require("./index4.cjs"),a=require("./index5.cjs"),c=require("./index6.cjs"),u=require("./index7.cjs"),l=require("./index8.cjs"),F=require("./index9.cjs"),d=require("./index10.cjs"),q=require("./index11.cjs"),g=require("./index12.cjs"),w=require("./index13.cjs"),A=require("./index14.cjs"),V=require("./index15.cjs"),C=require("./index16.cjs"),p=require("./index17.cjs"),h=require("./index18.cjs"),v=require("./index19.cjs"),b=require("./index20.cjs"),R=require("./index21.cjs"),m=require("./index22.cjs"),T=require("./index23.cjs"),D=require("./index24.cjs"),M=require("./index25.cjs"),y=require("./index26.cjs"),S=require("./index27.cjs"),P=require("./index28.cjs"),N=require("./index29.cjs"),O=require("./index30.cjs"),U=require("./index31.cjs"),L=require("./index32.cjs"),B=require("./index33.cjs"),f=require("./index34.cjs"),k=require("./index35.cjs"),I=require("./index36.cjs"),x=require("./index37.cjs"),H=require("./index38.cjs"),E=require("./index39.cjs"),_=require("./index40.cjs"),G=require("./index41.cjs"),W=require("./index42.cjs"),X=require("./index43.cjs"),$=require("./index44.cjs"),J=require("./index45.cjs"),e=require("./index46.cjs"),r=require("./index47.cjs"),K=require("./index48.cjs"),j=require("./index49.cjs"),z=require("./index50.cjs"),Q=require("./index51.cjs"),i=require("./index52.cjs"),t=require("./index53.cjs"),Y=require("./index54.cjs"),Z=require("./index55.cjs"),ee=require("./index56.cjs"),re=require("./index57.cjs"),ie=require("./index58.cjs"),te=require("./index59.cjs"),se=require("./index60.cjs"),oe=require("./index61.cjs"),ne=require("./index62.cjs"),ae=require("./index63.cjs"),ce=require("./index64.cjs"),ue=require("./index65.cjs"),le=require("./index66.cjs"),Fe=require("./index67.cjs"),de=require("./index68.cjs"),qe=require("./index69.cjs"),ge=require("./index70.cjs"),we=require("./index71.cjs"),Ae=require("./index72.cjs"),Ve=require("./index73.cjs"),Ce=require("./index74.cjs"),pe=require("./index75.cjs"),he=require("./index76.cjs"),ve=require("./index77.cjs"),be=require("./index78.cjs");exports.deleteCustomView=s.deleteCustomView;exports.patchCurrentUser=o.patchCurrentUser;exports.patchCustomView=n.patchCustomView;exports.createCustomView=a.createCustomView;exports.axios=c.axios;exports.useBusinessLogic=u.useBusinessLogic;exports.BusinessLogicManager=l.BusinessLogicManager;exports.setMockedBusinessLogic=F.setMockedBusinessLogic;exports.ErrorBoundary=d.ErrorBoundary;exports.SearchBar=q.SearchBar;exports.TableControls=g.TableControls;exports.ToastsManager=w.ToastsManager;exports.ActiveFilters=A.ActiveFilters;exports.FilterArrayField=V.FilterArrayField;exports.FilterField=C.FilterField;exports.ActiveFilterTag=p.ActiveFilterTag;exports.ActiveFilterArrayTag=h.ActiveFilterArrayTag;exports.ActiveFilterDateRangeTag=v.ActiveFilterDateRangeTag;exports.ActiveFilterNumberRangeTag=b.ActiveFilterNumberRangeTag;exports.ActiveAsyncRadioFilter=R.ActiveAsyncRadioFilter;exports.ActiveFilterFooter=m.ActiveFilterFooter;exports.ActiveFilterHeader=T.ActiveFilterHeader;exports.AsyncCheckboxFilter=D.AsyncCheckboxFilter;exports.AsyncRadioFilter=M.AsyncRadioFilter;exports.CheckboxFilter=y.CheckboxFilter;exports.DateRangeFilter=S.DateRangeFilter;exports.MultipleFieldFilter=P.MultipleFieldFilter;exports.NumberRangeFilter=N.NumberRangeFilter;exports.RadioFilter=O.RadioFilter;exports.FiltersDropdown=U.FiltersDropdown;exports.FiltersList=L.FiltersList;exports.FilterGroup=B.FilterGroup;exports.ViewTab=f.ViewTab;exports.CreateView=k.CreateView;exports.EditDropdown=I.EditDropdown;exports.OptionsDropdown=x.OptionsDropdown;exports.PillNotifications=H.PillNotifications;exports.SortableViews=E.SortableViews;exports.UnsavedChangesPill=_.UnsavedChangesPill;exports.ViewDropdowns=G.ViewDropdowns;exports.ViewList=W.ViewList;exports.SHARING_OPTIONS=X.SHARING_OPTIONS;exports.TableManagement=$.TableManagement;exports.RefreshButton=J.RefreshButton;exports.DateOptionMap=e.DateOptionMap;exports.DateValue=e.DateValue;exports.FilterChoiceValue=r.FilterChoiceValue;exports.SWR_HOOK_OPTIONS=r.SWR_HOOK_OPTIONS;exports.ModalProvider=K.ModalProvider;exports.ModalId=j.ModalId;exports.useModal=z.useModal;exports.withCSRF=Q.withCSRF;exports.onlyJSON=i.onlyJSON;exports.vndAPI=i.vndAPI;exports.fetcherV1=t.fetcherV1;exports.fetcherV2=t.fetcherV2;exports.useDropdownManager=Y.useDropdownManager;exports.useDuplicateActiveView=Z.useDuplicateActiveView;exports.useFilterArrayLabel=ee.useFilterArrayLabel;exports.useFilterLabel=re.useFilterLabel;exports.usePersistUnsavedChanges=ie.usePersistUnsavedChanges;exports.useStores=te.useStores;exports.useViews=se.useViews;exports.useViewUrlChange=oe.useViewUrlChange;exports.useUrlChange=ne.useUrlChange;exports.useCustomViews=ae.useCustomViews;exports.useColumns=ce.useColumns;exports.useUrlParams=ue.useUrlParams;exports.Filters=le.Filters;exports.NumberRangeFilterClass=Fe.NumberRangeFilter;exports.RangeFilter=de.RangeFilter;exports.Views=qe.Views;exports.Notifications=ge.Notifications;exports.Table=we.Table;exports.MobXProvider=Ae.MobXProvider;exports.getAsyncOptions=Ve.getAsyncOptions;exports.getFetcherFunction=Ce.getFetcherFunction;exports.isValidDateRange=pe.isValidDateRange;exports.viewsAdapter=he.viewsAdapter;exports.createAllView=ve.createAllView;exports.mockUseStores=be.mockUseStores;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { deleteCustomView as o } from "./index2.js";
2
2
  import { patchCurrentUser as p } from "./index3.js";
3
- import { patchCustomView as m } from "./index4.js";
3
+ import { patchCustomView as i } from "./index4.js";
4
4
  import { createCustomView as x } from "./index5.js";
5
5
  import { axios as s } from "./index6.js";
6
6
  import { useBusinessLogic as n } from "./index7.js";
@@ -8,14 +8,14 @@ import { BusinessLogicManager as F } from "./index8.js";
8
8
  import { setMockedBusinessLogic as d } from "./index9.js";
9
9
  import { ErrorBoundary as w } from "./index10.js";
10
10
  import { SearchBar as V } from "./index11.js";
11
- import { TableControls as v } from "./index12.js";
12
- import { ToastsManager as b } from "./index13.js";
11
+ import { TableControls as h } from "./index12.js";
12
+ import { ToastsManager as R } from "./index13.js";
13
13
  import { ActiveFilters as D } from "./index14.js";
14
14
  import { FilterArrayField as T } from "./index15.js";
15
15
  import { FilterField as O } from "./index16.js";
16
16
  import { ActiveFilterTag as y } from "./index17.js";
17
17
  import { ActiveFilterArrayTag as L } from "./index18.js";
18
- import { ActiveFilterDateRangeTag as U } from "./index19.js";
18
+ import { ActiveFilterDateRangeTag as B } from "./index19.js";
19
19
  import { ActiveFilterNumberRangeTag as k } from "./index20.js";
20
20
  import { ActiveAsyncRadioFilter as _ } from "./index21.js";
21
21
  import { ActiveFilterFooter as G } from "./index22.js";
@@ -27,7 +27,7 @@ import { DateRangeFilter as Z } from "./index27.js";
27
27
  import { MultipleFieldFilter as rr } from "./index28.js";
28
28
  import { NumberRangeFilter as or } from "./index29.js";
29
29
  import { RadioFilter as pr } from "./index30.js";
30
- import { FiltersDropdown as mr } from "./index31.js";
30
+ import { FiltersDropdown as ir } from "./index31.js";
31
31
  import { FiltersList as xr } from "./index32.js";
32
32
  import { FilterGroup as sr } from "./index33.js";
33
33
  import { ViewTab as nr } from "./index34.js";
@@ -35,14 +35,14 @@ import { CreateView as Fr } from "./index35.js";
35
35
  import { EditDropdown as dr } from "./index36.js";
36
36
  import { OptionsDropdown as wr } from "./index37.js";
37
37
  import { PillNotifications as Vr } from "./index38.js";
38
- import { SortableViews as vr } from "./index39.js";
39
- import { UnsavedChangesPill as br } from "./index40.js";
38
+ import { SortableViews as hr } from "./index39.js";
39
+ import { UnsavedChangesPill as Rr } from "./index40.js";
40
40
  import { ViewDropdowns as Dr } from "./index41.js";
41
41
  import { ViewList as Tr } from "./index42.js";
42
42
  import { SHARING_OPTIONS as Or } from "./index43.js";
43
43
  import { TableManagement as yr } from "./index44.js";
44
44
  import { RefreshButton as Lr } from "./index45.js";
45
- import { DateOptionMap as Ur, DateValue as Ir } from "./index46.js";
45
+ import { DateOptionMap as Br, DateValue as Ir } from "./index46.js";
46
46
  import { FilterChoiceValue as Hr, SWR_HOOK_OPTIONS as _r } from "./index47.js";
47
47
  import { ModalProvider as Gr } from "./index48.js";
48
48
  import { ModalId as Kr } from "./index49.js";
@@ -52,32 +52,33 @@ import { onlyJSON as Qr, vndAPI as Yr } from "./index52.js";
52
52
  import { fetcherV1 as $r, fetcherV2 as re } from "./index53.js";
53
53
  import { useDropdownManager as oe } from "./index54.js";
54
54
  import { useDuplicateActiveView as pe } from "./index55.js";
55
- import { useFilterArrayLabel as me } from "./index56.js";
55
+ import { useFilterArrayLabel as ie } from "./index56.js";
56
56
  import { useFilterLabel as xe } from "./index57.js";
57
57
  import { usePersistUnsavedChanges as se } from "./index58.js";
58
58
  import { useStores as ne } from "./index59.js";
59
59
  import { useViews as Fe } from "./index60.js";
60
60
  import { useViewUrlChange as de } from "./index61.js";
61
- import { useCustomViews as we } from "./index62.js";
62
- import { useColumns as Ve } from "./index63.js";
63
- import { useUrlParams as ve } from "./index64.js";
64
- import { Filters as be } from "./index65.js";
65
- import { NumberRangeFilter as De } from "./index66.js";
66
- import { RangeFilter as Te } from "./index67.js";
67
- import { Views as Oe } from "./index68.js";
68
- import { Notifications as ye } from "./index69.js";
69
- import { Table as Le } from "./index70.js";
70
- import { MobXProvider as Ue } from "./index71.js";
71
- import { getAsyncOptions as ke } from "./index72.js";
72
- import { getFetcherFunction as _e } from "./index73.js";
73
- import { isValidDateRange as Ge } from "./index74.js";
74
- import { viewsAdapter as Ke } from "./index75.js";
75
- import { createAllView as Xe } from "./index76.js";
76
- import { mockUseStores as qe } from "./index77.js";
61
+ import { useUrlChange as we } from "./index62.js";
62
+ import { useCustomViews as Ve } from "./index63.js";
63
+ import { useColumns as he } from "./index64.js";
64
+ import { useUrlParams as Re } from "./index65.js";
65
+ import { Filters as De } from "./index66.js";
66
+ import { NumberRangeFilter as Te } from "./index67.js";
67
+ import { RangeFilter as Oe } from "./index68.js";
68
+ import { Views as ye } from "./index69.js";
69
+ import { Notifications as Le } from "./index70.js";
70
+ import { Table as Be } from "./index71.js";
71
+ import { MobXProvider as ke } from "./index72.js";
72
+ import { getAsyncOptions as _e } from "./index73.js";
73
+ import { getFetcherFunction as Ge } from "./index74.js";
74
+ import { isValidDateRange as Ke } from "./index75.js";
75
+ import { viewsAdapter as Xe } from "./index76.js";
76
+ import { createAllView as qe } from "./index77.js";
77
+ import { mockUseStores as Qe } from "./index78.js";
77
78
  export {
78
79
  _ as ActiveAsyncRadioFilter,
79
80
  L as ActiveFilterArrayTag,
80
- U as ActiveFilterDateRangeTag,
81
+ B as ActiveFilterDateRangeTag,
81
82
  G as ActiveFilterFooter,
82
83
  K as ActiveFilterHeader,
83
84
  k as ActiveFilterNumberRangeTag,
@@ -88,7 +89,7 @@ export {
88
89
  F as BusinessLogicManager,
89
90
  Q as CheckboxFilter,
90
91
  Fr as CreateView,
91
- Ur as DateOptionMap,
92
+ Br as DateOptionMap,
92
93
  Z as DateRangeFilter,
93
94
  Ir as DateValue,
94
95
  dr as EditDropdown,
@@ -97,62 +98,63 @@ export {
97
98
  Hr as FilterChoiceValue,
98
99
  O as FilterField,
99
100
  sr as FilterGroup,
100
- be as Filters,
101
- mr as FiltersDropdown,
101
+ De as Filters,
102
+ ir as FiltersDropdown,
102
103
  xr as FiltersList,
103
- Ue as MobXProvider,
104
+ ke as MobXProvider,
104
105
  Kr as ModalId,
105
106
  Gr as ModalProvider,
106
107
  rr as MultipleFieldFilter,
107
- ye as Notifications,
108
+ Le as Notifications,
108
109
  or as NumberRangeFilter,
109
- De as NumberRangeFilterClass,
110
+ Te as NumberRangeFilterClass,
110
111
  wr as OptionsDropdown,
111
112
  Vr as PillNotifications,
112
113
  pr as RadioFilter,
113
- Te as RangeFilter,
114
+ Oe as RangeFilter,
114
115
  Lr as RefreshButton,
115
116
  Or as SHARING_OPTIONS,
116
117
  _r as SWR_HOOK_OPTIONS,
117
118
  V as SearchBar,
118
- vr as SortableViews,
119
- Le as Table,
120
- v as TableControls,
119
+ hr as SortableViews,
120
+ Be as Table,
121
+ h as TableControls,
121
122
  yr as TableManagement,
122
- b as ToastsManager,
123
- br as UnsavedChangesPill,
123
+ R as ToastsManager,
124
+ Rr as UnsavedChangesPill,
124
125
  Dr as ViewDropdowns,
125
126
  Tr as ViewList,
126
127
  nr as ViewTab,
127
- Oe as Views,
128
+ ye as Views,
128
129
  s as axios,
129
- Xe as createAllView,
130
+ qe as createAllView,
130
131
  x as createCustomView,
131
132
  o as deleteCustomView,
132
133
  $r as fetcherV1,
133
134
  re as fetcherV2,
134
- ke as getAsyncOptions,
135
- _e as getFetcherFunction,
136
- Ge as isValidDateRange,
137
- qe as mockUseStores,
135
+ _e as getAsyncOptions,
136
+ Ge as getFetcherFunction,
137
+ Ke as isValidDateRange,
138
+ Qe as mockUseStores,
138
139
  Qr as onlyJSON,
139
140
  p as patchCurrentUser,
140
- m as patchCustomView,
141
+ i as patchCustomView,
141
142
  d as setMockedBusinessLogic,
142
143
  n as useBusinessLogic,
143
- Ve as useColumns,
144
- we as useCustomViews,
144
+ he as useColumns,
145
+ Ve as useCustomViews,
145
146
  oe as useDropdownManager,
146
147
  pe as useDuplicateActiveView,
147
- me as useFilterArrayLabel,
148
+ ie as useFilterArrayLabel,
148
149
  xe as useFilterLabel,
149
150
  Xr as useModal,
150
151
  se as usePersistUnsavedChanges,
151
152
  ne as useStores,
152
- ve as useUrlParams,
153
+ we as useUrlChange,
154
+ Re as useUrlParams,
153
155
  de as useViewUrlChange,
154
156
  Fe as useViews,
155
- Ke as viewsAdapter,
157
+ Xe as viewsAdapter,
156
158
  Yr as vndAPI,
157
159
  qr as withCSRF
158
160
  };
package/dist/index100.cjs CHANGED
@@ -1,19 +1 @@
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;
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/index100.js CHANGED
@@ -1,26 +1,31 @@
1
- import t from "styled-components";
2
- import { theme as o, Card as r, Button as e } from "@veeqo/ui";
3
- const n = t(e).attrs(() => ({ role: "option", variant: "flat" }))`
4
- margin: ${o.sizes.xs};
5
- min-width: 180px;
6
- justify-content: flex-start;
7
- font-size: ${o.text.body.fontSize};
8
-
9
- &:hover {
10
- background-color: ${o.colors.neutral.grey.lightest};
11
- color: ${o.colors.secondary.blue.base};
12
- cursor: pointer;
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"
23
+ }
24
+ ],
25
+ showHeaderCloseButton: !0,
26
+ children: /* @__PURE__ */ e(r, { variant: "body", children: "This cannot be undone." })
13
27
  }
14
- `, a = t(r.Surface).attrs(() => ({ role: "listbox", elevation: 4 }))`
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
- `;
28
+ );
22
29
  export {
23
- l as Divider,
24
- n as Item,
25
- a as MenuItems
30
+ s as Confirmation
26
31
  };
package/dist/index102.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=r=>r instanceof Error;exports.isError=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),n=require("react"),l=require("./index111.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/index102.js CHANGED
@@ -1,4 +1,26 @@
1
- const o = (r) => r instanceof Error;
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 "./index111.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
+ };
2
24
  export {
3
- o as isError
25
+ R as AdaptiveHeightContainer
4
26
  };
package/dist/index103.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("@dnd-kit/sortable"),g=require("@dnd-kit/utilities"),b=require("./index88.cjs"),f=({id:t,children:r})=>{const{attributes:s,listeners:o,setNodeRef:i,transform:n,transition:a,isDragging:l}=c.useSortable({id:t}),u={transform:g.CSS.Transform.toString(n),transition:a,cursor:"grab",outlineOffset:"-1px"};return e.jsxs("div",{ref:i,style:u,...s,...o,children:[r,l&&e.jsx(b.DraggingOverlay,{})]})};exports.SortableItem=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("@dnd-kit/sortable"),g=require("@dnd-kit/utilities"),b=require("./index89.cjs"),f=({id:t,children:r})=>{const{attributes:s,listeners:o,setNodeRef:i,transform:n,transition:a,isDragging:l}=c.useSortable({id:t}),u={transform:g.CSS.Transform.toString(n),transition:a,cursor:"grab",outlineOffset:"-1px"};return e.jsxs("div",{ref:i,style:u,...s,...o,children:[r,l&&e.jsx(b.DraggingOverlay,{})]})};exports.SortableItem=f;
package/dist/index103.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsxs as f, jsx as g } from "react/jsx-runtime";
2
2
  import { useSortable as l } from "@dnd-kit/sortable";
3
3
  import { CSS as p } from "@dnd-kit/utilities";
4
- import { DraggingOverlay as c } from "./index88.js";
4
+ import { DraggingOverlay as c } from "./index89.js";
5
5
  const d = ({ id: r, children: t }) => {
6
6
  const { attributes: o, listeners: s, setNodeRef: e, transform: i, transition: n, isDragging: m } = l({
7
7
  id: r
package/dist/index104.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),c=require("@dnd-kit/core"),s=require("./index88.cjs"),l=({id:e,children:r,...t})=>{const{setNodeRef:o}=c.useDroppable({id:e});return a.createElement(s.DroppableAreaStack,{...t,key:e,ref:o},r)};exports.DroppableArea=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),c=require("@dnd-kit/core"),s=require("./index89.cjs"),l=({id:e,children:r,...t})=>{const{setNodeRef:o}=c.useDroppable({id:e});return a.createElement(s.DroppableAreaStack,{...t,key:e,ref:o},r)};exports.DroppableArea=l;
package/dist/index104.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createElement as p } from "react";
2
2
  import { useDroppable as a } from "@dnd-kit/core";
3
- import { DroppableAreaStack as m } from "./index88.js";
3
+ import { DroppableAreaStack as m } from "./index89.js";
4
4
  const n = ({ id: e, children: r, ...o }) => {
5
5
  const { setNodeRef: t } = a({ id: e });
6
6
  return /* @__PURE__ */ p(m, { ...o, key: e, ref: t }, r);
package/dist/index107.cjs CHANGED
@@ -1,13 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@veeqo/components"),o=require("@veeqo/ui"),s=require("styled-components"),l=e=>e&&e.__esModule?e:{default:e},r=l(s),{SortableViews:i}=t.VeeqoUI,n=r.default(i)`
2
- .rst__rowTitle {
3
- span {
4
- white-space: nowrap;
5
- overflow: hidden;
6
- text-overflow: ellipsis;
7
- }
8
- }
9
-
10
- .rst__rowTitle > div:first-child {
11
- gap: ${o.theme.sizes.sm};
12
- }
13
- `;exports.StyledSortableViews=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=r=>r instanceof Error;exports.isError=e;
package/dist/index107.js CHANGED
@@ -1,19 +1,4 @@
1
- import { VeeqoUI as e } from "@veeqo/components";
2
- import { theme as o } from "@veeqo/ui";
3
- import t from "styled-components";
4
- const { SortableViews: r } = e, p = t(r)`
5
- .rst__rowTitle {
6
- span {
7
- white-space: nowrap;
8
- overflow: hidden;
9
- text-overflow: ellipsis;
10
- }
11
- }
12
-
13
- .rst__rowTitle > div:first-child {
14
- gap: ${o.sizes.sm};
15
- }
16
- `;
1
+ const o = (r) => r instanceof Error;
17
2
  export {
18
- p as StyledSortableViews
3
+ o as isError
19
4
  };
package/dist/index108.cjs CHANGED
@@ -1 +1,13 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@veeqo/ui"),o=require("@material-ui/core/styles"),t=require("@material-ui/core/Slider"),l=e=>e&&e.__esModule?e:{default:e},i=l(t),a=o.withStyles({root:{color:r.theme.colors.secondary.blue.base,height:4},thumb:{height:20,width:20,backgroundColor:"#fff",border:"3px solid currentColor",marginTop:-8,marginLeft:-10,"&:focus, &:hover, &$active":{boxShadow:"inherit"}},valueLabel:{left:"calc(-50% - 1px)"},track:{height:4,borderRadius:4,backgroundColor:r.theme.colors.secondary.blue.light,opacity:1},rail:{height:4,borderRadius:4,backgroundColor:r.theme.colors.neutral.grey.dark,opacity:1}})(i.default);exports.MUISlider=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@veeqo/components"),o=require("@veeqo/ui"),s=require("styled-components"),l=e=>e&&e.__esModule?e:{default:e},r=l(s),{SortableViews:i}=t.VeeqoUI,n=r.default(i)`
2
+ .rst__rowTitle {
3
+ span {
4
+ white-space: nowrap;
5
+ overflow: hidden;
6
+ text-overflow: ellipsis;
7
+ }
8
+ }
9
+
10
+ .rst__rowTitle > div:first-child {
11
+ gap: ${o.theme.sizes.sm};
12
+ }
13
+ `;exports.StyledSortableViews=n;
package/dist/index108.js CHANGED
@@ -1,38 +1,19 @@
1
+ import { VeeqoUI as e } from "@veeqo/components";
1
2
  import { theme as o } from "@veeqo/ui";
2
- import { withStyles as r } from "@material-ui/core/styles";
3
- import e from "@material-ui/core/Slider";
4
- const l = r({
5
- root: {
6
- color: o.colors.secondary.blue.base,
7
- height: 4
8
- },
9
- thumb: {
10
- height: 20,
11
- width: 20,
12
- backgroundColor: "#fff",
13
- border: "3px solid currentColor",
14
- marginTop: -8,
15
- marginLeft: -10,
16
- "&:focus, &:hover, &$active": {
17
- boxShadow: "inherit"
3
+ import t from "styled-components";
4
+ const { SortableViews: r } = e, p = t(r)`
5
+ .rst__rowTitle {
6
+ span {
7
+ white-space: nowrap;
8
+ overflow: hidden;
9
+ text-overflow: ellipsis;
18
10
  }
19
- },
20
- valueLabel: {
21
- left: "calc(-50% - 1px)"
22
- },
23
- track: {
24
- height: 4,
25
- borderRadius: 4,
26
- backgroundColor: o.colors.secondary.blue.light,
27
- opacity: 1
28
- },
29
- rail: {
30
- height: 4,
31
- borderRadius: 4,
32
- backgroundColor: o.colors.neutral.grey.dark,
33
- opacity: 1
34
11
  }
35
- })(e);
12
+
13
+ .rst__rowTitle > div:first-child {
14
+ gap: ${o.sizes.sm};
15
+ }
16
+ `;
36
17
  export {
37
- l as MUISlider
18
+ p as StyledSortableViews
38
19
  };
package/dist/index110.cjs CHANGED
@@ -1,7 +1 @@
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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@veeqo/ui"),o=require("@material-ui/core/styles"),t=require("@material-ui/core/Slider"),l=e=>e&&e.__esModule?e:{default:e},i=l(t),a=o.withStyles({root:{color:r.theme.colors.secondary.blue.base,height:4},thumb:{height:20,width:20,backgroundColor:"#fff",border:"3px solid currentColor",marginTop:-8,marginLeft:-10,"&:focus, &:hover, &$active":{boxShadow:"inherit"}},valueLabel:{left:"calc(-50% - 1px)"},track:{height:4,borderRadius:4,backgroundColor:r.theme.colors.secondary.blue.light,opacity:1},rail:{height:4,borderRadius:4,backgroundColor:r.theme.colors.neutral.grey.dark,opacity:1}})(i.default);exports.MUISlider=a;
package/dist/index110.js CHANGED
@@ -1,12 +1,38 @@
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
- `;
1
+ import { theme as o } from "@veeqo/ui";
2
+ import { withStyles as r } from "@material-ui/core/styles";
3
+ import e from "@material-ui/core/Slider";
4
+ const l = r({
5
+ root: {
6
+ color: o.colors.secondary.blue.base,
7
+ height: 4
8
+ },
9
+ thumb: {
10
+ height: 20,
11
+ width: 20,
12
+ backgroundColor: "#fff",
13
+ border: "3px solid currentColor",
14
+ marginTop: -8,
15
+ marginLeft: -10,
16
+ "&:focus, &:hover, &$active": {
17
+ boxShadow: "inherit"
18
+ }
19
+ },
20
+ valueLabel: {
21
+ left: "calc(-50% - 1px)"
22
+ },
23
+ track: {
24
+ height: 4,
25
+ borderRadius: 4,
26
+ backgroundColor: o.colors.secondary.blue.light,
27
+ opacity: 1
28
+ },
29
+ rail: {
30
+ height: 4,
31
+ borderRadius: 4,
32
+ backgroundColor: o.colors.neutral.grey.dark,
33
+ opacity: 1
34
+ }
35
+ })(e);
10
36
  export {
11
- h as AdaptiveStyledContainer
37
+ l as MUISlider
12
38
  };
package/dist/index111.cjs CHANGED
@@ -1 +1,7 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),p=require("mobx-react"),l=require("@veeqo/ui"),v=require("./index108.cjs"),y=p.observer(({data:m,editedValue:t,setEditedValue:c})=>{var b;if(!((b=m.options)!=null&&b.length))return null;const[u,x]=m.options,i=Number(u.value),a=Number(x.value),h=(s,n)=>{if(!Array.isArray(n)||n.length!==2||!t)return;const[e,j]=n,g=t==null?void 0:t.clone();g.setGte(e),g.setLte(j),c(g)},o={gte:(t==null?void 0:t.gte)||0,lte:(t==null?void 0:t.lte)||100},M=s=>{if(!t)return;const n=t.clone(),e=Number(s);e>n.lteMax||(e>=n.gteMin&&e<=n.lteMax&&n.setGte(e),(!n.lte||e>=n.lte)&&n.setLte(n.lteMax),c(n))},f=s=>{if(!t)return;const n=t.clone(),e=Number(s);e<n.gteMin||(e>=n.gteMin&&e<=n.lteMax&&n.setLte(e),(!n.gte||e<=n.gte)&&n.setGte(n.gteMin),c(n))},S=[o.gte,o.lte];return r.jsxs(l.Stack,{spacing:"xs",alignX:"stretch",children:[r.jsxs(l.Stack,{direction:"horizontal",children:[r.jsx(l.TextField,{label:u.label,type:"number",min:i,max:a,value:o.gte.toString(),onChange:M}),r.jsx(l.TextField,{label:x.label,type:"number",min:i,max:a,value:o.lte.toString(),onChange:f})]}),r.jsx(v.MUISlider,{value:S,onChange:h,min:i,max:a,valueLabelDisplay:"auto"})]})});exports.FilterNumberRangeFilter=y;
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;