@veeqo/transfigure 0.0.1 → 0.0.4

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 (153) hide show
  1. package/README.md +2 -53
  2. package/dist/BusinessLogic/mocks.d.ts +3 -3
  3. package/dist/BusinessLogic/types.d.ts +5 -2
  4. package/dist/components/Filters/ActiveFilters/Categories/index.d.ts +2 -0
  5. package/dist/components/Filters/ActiveFilters/Variants/ActiveAsyncCheckboxFilter/ActiveAsyncCheckboxFilter.d.ts +8 -0
  6. package/dist/components/Filters/ActiveFilters/Variants/ActiveAsyncCheckboxFilter/index.d.ts +1 -0
  7. package/dist/components/Filters/ActiveFilters/Variants/ActiveAsyncRadioFilter/ActiveAsyncRadioFilter.d.ts +8 -0
  8. package/dist/components/Filters/ActiveFilters/Variants/ActiveAsyncRadioFilter/index.d.ts +1 -0
  9. package/dist/components/Filters/{Fields → ActiveFilters/Variants/ActiveFilterNumberRangeTag}/FilterNumberRangeFilter/FilterNumberRangeFilter.d.ts +1 -1
  10. package/dist/components/Filters/ActiveFilters/Variants/index.d.ts +5 -0
  11. package/dist/components/Filters/ActiveFilters/index.d.ts +2 -3
  12. package/dist/components/Filters/Fields/index.d.ts +0 -6
  13. package/dist/components/Filters/{Fields/FilterGroup → FilterGroup}/FilterGroup.d.ts +1 -1
  14. package/dist/components/Filters/FilterGroup/index.d.ts +1 -0
  15. package/dist/components/Filters/index.d.ts +1 -0
  16. package/dist/components/TableControls/TableControls.d.ts +1 -0
  17. package/dist/components/TableControls/index.d.ts +1 -0
  18. package/dist/index.cjs +1 -1
  19. package/dist/index.d.ts +1 -0
  20. package/dist/index.js +75 -75
  21. package/dist/index10.js +3 -12
  22. package/dist/index11.cjs +1 -1
  23. package/dist/index11.js +19 -19
  24. package/dist/index12.cjs +1 -1
  25. package/dist/index12.js +42 -21
  26. package/dist/index13.cjs +1 -1
  27. package/dist/index13.js +23 -38
  28. package/dist/index14.cjs +1 -1
  29. package/dist/index14.js +39 -37
  30. package/dist/index15.cjs +1 -1
  31. package/dist/index15.js +36 -54
  32. package/dist/index16.cjs +1 -1
  33. package/dist/index16.js +32 -46
  34. package/dist/index17.cjs +1 -1
  35. package/dist/index17.js +50 -42
  36. package/dist/index18.cjs +1 -1
  37. package/dist/index18.js +39 -50
  38. package/dist/index19.cjs +1 -1
  39. package/dist/index19.js +59 -37
  40. package/dist/index20.cjs +1 -1
  41. package/dist/index20.js +53 -37
  42. package/dist/index21.cjs +1 -1
  43. package/dist/index21.js +45 -53
  44. package/dist/index22.cjs +1 -1
  45. package/dist/index22.js +43 -33
  46. package/dist/index23.cjs +1 -1
  47. package/dist/index23.js +56 -57
  48. package/dist/index24.cjs +1 -1
  49. package/dist/index24.js +57 -18
  50. package/dist/index25.cjs +1 -1
  51. package/dist/index25.js +38 -31
  52. package/dist/index26.cjs +1 -1
  53. package/dist/index26.js +55 -39
  54. package/dist/index27.cjs +1 -1
  55. package/dist/index27.js +52 -34
  56. package/dist/index28.cjs +1 -1
  57. package/dist/index28.js +81 -47
  58. package/dist/index29.cjs +1 -1
  59. package/dist/index29.js +36 -107
  60. package/dist/index3.js +1 -3
  61. package/dist/index30.cjs +1 -1
  62. package/dist/index30.js +31 -31
  63. package/dist/index31.cjs +1 -1
  64. package/dist/index31.js +10 -30
  65. package/dist/index32.cjs +1 -1
  66. package/dist/index32.js +40 -14
  67. package/dist/index33.cjs +1 -1
  68. package/dist/index33.js +50 -49
  69. package/dist/index34.js +12 -11
  70. package/dist/index35.js +104 -39
  71. package/dist/index36.cjs +1 -1
  72. package/dist/index36.js +47 -24
  73. package/dist/index37.cjs +1 -1
  74. package/dist/index37.js +43 -22
  75. package/dist/index38.cjs +1 -1
  76. package/dist/index38.js +22 -27
  77. package/dist/index39.cjs +1 -1
  78. package/dist/index39.js +67 -26
  79. package/dist/index4.js +1 -8
  80. package/dist/index40.js +71 -21
  81. package/dist/index41.cjs +1 -1
  82. package/dist/index41.js +31 -18
  83. package/dist/index42.js +2 -8
  84. package/dist/index43.js +13 -1
  85. package/dist/index45.js +14 -12
  86. package/dist/index48.js +1 -3
  87. package/dist/index5.js +2 -9
  88. package/dist/index50.js +3 -12
  89. package/dist/index51.js +8 -42
  90. package/dist/index52.js +20 -35
  91. package/dist/index53.js +16 -25
  92. package/dist/index54.js +18 -27
  93. package/dist/index55.js +31 -36
  94. package/dist/index57.js +22 -32
  95. package/dist/index58.js +14 -15
  96. package/dist/index59.js +2 -10
  97. package/dist/index6.js +8 -40
  98. package/dist/index60.cjs +1 -1
  99. package/dist/index60.js +249 -232
  100. package/dist/index61.js +5 -9
  101. package/dist/index62.js +3 -9
  102. package/dist/index65.js +1 -6
  103. package/dist/index66.js +1 -4
  104. package/dist/index67.js +1 -3
  105. package/dist/index69.js +28 -23
  106. package/dist/index75.cjs +1 -1
  107. package/dist/index75.js +28 -25
  108. package/dist/index76.cjs +19 -1
  109. package/dist/index76.js +24 -19
  110. package/dist/index77.cjs +1 -19
  111. package/dist/index77.js +14 -29
  112. package/dist/index78.cjs +12 -1
  113. package/dist/index78.js +16 -16
  114. package/dist/index79.cjs +80 -1
  115. package/dist/index79.js +95 -9
  116. package/dist/index80.cjs +1 -12
  117. package/dist/index80.js +22 -16
  118. package/dist/index81.cjs +1 -80
  119. package/dist/index81.js +24 -97
  120. package/dist/index83.cjs +10 -77
  121. package/dist/index83.js +13 -93
  122. package/dist/index84.cjs +80 -1
  123. package/dist/index84.js +94 -35
  124. package/dist/index85.cjs +1 -13
  125. package/dist/index85.js +33 -16
  126. package/dist/index86.cjs +1 -7
  127. package/dist/index86.js +63 -12
  128. package/dist/index87.cjs +7 -0
  129. package/dist/index87.js +12 -0
  130. package/dist/index9.cjs +1 -1
  131. package/dist/index9.js +96 -79
  132. package/dist/mobx/Filters/Filters.d.ts +5 -0
  133. package/dist/mocks/internal/mockUseStores/index.d.ts +1 -0
  134. package/dist/mocks/internal/mockUseStores/mockUseStores.d.ts +6 -0
  135. package/dist/types.d.ts +1 -1
  136. package/package.json +4 -5
  137. package/dist/components/Filters/Fields/AsyncInlineCheckboxFilter/AsyncInlineCheckboxFilter.d.ts +0 -8
  138. package/dist/components/Filters/Fields/AsyncInlineCheckboxFilter/index.d.ts +0 -1
  139. package/dist/components/Filters/Fields/AsyncInlineRadioFilter/AsyncInlineRadioFilter.d.ts +0 -8
  140. package/dist/components/Filters/Fields/AsyncInlineRadioFilter/index.d.ts +0 -1
  141. package/dist/components/Filters/Fields/FilterGroup/index.d.ts +0 -1
  142. package/dist/components/Table/Table.d.ts +0 -1
  143. /package/dist/components/Filters/{Fields → ActiveFilters/Categories}/FilterArrayField/FilterArrayField.d.ts +0 -0
  144. /package/dist/components/Filters/{Fields → ActiveFilters/Categories}/FilterArrayField/index.d.ts +0 -0
  145. /package/dist/components/Filters/{Fields → ActiveFilters/Categories}/FilterField/FilterField.d.ts +0 -0
  146. /package/dist/components/Filters/{Fields → ActiveFilters/Categories}/FilterField/index.d.ts +0 -0
  147. /package/dist/components/Filters/ActiveFilters/{ActiveFilterArrayTag → Variants/ActiveFilterArrayTag}/ActiveFilterArrayTag.d.ts +0 -0
  148. /package/dist/components/Filters/ActiveFilters/{ActiveFilterArrayTag → Variants/ActiveFilterArrayTag}/index.d.ts +0 -0
  149. /package/dist/components/Filters/ActiveFilters/{ActiveFilterDateRangeTag → Variants/ActiveFilterDateRangeTag}/ActiveFilterDateRangeTag.d.ts +0 -0
  150. /package/dist/components/Filters/ActiveFilters/{ActiveFilterDateRangeTag → Variants/ActiveFilterDateRangeTag}/index.d.ts +0 -0
  151. /package/dist/components/Filters/ActiveFilters/{ActiveFilterNumberRangeTag → Variants/ActiveFilterNumberRangeTag}/ActiveFilterNumberRangeTag.d.ts +0 -0
  152. /package/dist/components/Filters/{Fields → ActiveFilters/Variants/ActiveFilterNumberRangeTag}/FilterNumberRangeFilter/index.d.ts +0 -0
  153. /package/dist/components/Filters/ActiveFilters/{ActiveFilterNumberRangeTag → Variants/ActiveFilterNumberRangeTag}/index.d.ts +0 -0
package/dist/index62.js CHANGED
@@ -23,9 +23,7 @@ class L {
23
23
  });
24
24
  s(this, "clear", () => {
25
25
  this.filterType = void 0;
26
- const {
27
- DEFAULT_DATE_RANGE: t
28
- } = c.getBusinessLogic();
26
+ const { DEFAULT_DATE_RANGE: t } = c.getBusinessLogic();
29
27
  t && this.setDates(t.start, t.end);
30
28
  });
31
29
  p(this, {
@@ -39,15 +37,11 @@ class L {
39
37
  setDates: l,
40
38
  clear: l
41
39
  });
42
- const e = t && t !== "CUSTOM" ? a(t) : null, {
43
- DEFAULT_DATE_RANGE: r
44
- } = c.getBusinessLogic();
40
+ const e = t && t !== "CUSTOM" ? a(t) : null, { DEFAULT_DATE_RANGE: r } = c.getBusinessLogic();
45
41
  this.filterType = t, this.gte = (e == null ? void 0 : e.start) ?? r.start, this.lte = (e == null ? void 0 : e.end) ?? r.end;
46
42
  }
47
43
  get filterSelection() {
48
- const {
49
- DEFAULT_DATE_PRESET: t
50
- } = c.getBusinessLogic();
44
+ const { DEFAULT_DATE_PRESET: t } = c.getBusinessLogic();
51
45
  return this.filterType ? f.get(this.filterType) ?? t : t;
52
46
  }
53
47
  get filterLabel() {
package/dist/index65.js CHANGED
@@ -1,11 +1,6 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import { Provider as s } from "mobx-react";
3
- const n = ({
4
- children: i,
5
- Filters: o,
6
- Views: r,
7
- Notifications: t
8
- }) => /* @__PURE__ */ e(s, { Filters: o, Views: r, Notifications: t, children: i });
3
+ const n = ({ children: i, Filters: o, Views: r, Notifications: t }) => /* @__PURE__ */ e(s, { Filters: o, Views: r, Notifications: t, children: i });
9
4
  export {
10
5
  n as MobXProvider
11
6
  };
package/dist/index66.js CHANGED
@@ -1,8 +1,5 @@
1
1
  import o from "lodash/get";
2
- const u = ({
3
- data: t,
4
- config: r
5
- }) => !r || !t ? [] : t.map((e) => {
2
+ const u = ({ data: t, config: r }) => !r || !t ? [] : t.map((e) => {
6
3
  const l = o(e, r.labelProperty), n = o(e, r.valueProperty);
7
4
  return {
8
5
  label: l,
package/dist/index67.js CHANGED
@@ -1,7 +1,5 @@
1
1
  import { fetcherV1 as t, fetcherV2 as c } from "./index50.js";
2
- const h = ({
3
- fetcherName: r
4
- }) => {
2
+ const h = ({ fetcherName: r }) => {
5
3
  let e;
6
4
  switch (r) {
7
5
  case "fetcherV1":
package/dist/index69.js CHANGED
@@ -6,33 +6,38 @@ const R = ({
6
6
  view: r,
7
7
  canUpdateCustomViews: f
8
8
  }) => {
9
- const {
10
- DATE_RANGE_FILTERS: s,
11
- NUMBER_RANGE_FILTERS: n
12
- } = c.getBusinessLogic();
9
+ const { DATE_RANGE_FILTERS: s, NUMBER_RANGE_FILTERS: n } = c.getBusinessLogic();
13
10
  return {
14
11
  id: r.id,
15
12
  label: r.title,
16
13
  filterMaps: {
17
- filters: new Map(Object.entries(r.filters.filter || {}).filter(([e, t]) => !Array.isArray(t) && !s.includes(e) && !n.includes(e)).map(([e, t]) => [e, t])),
18
- arrayFilters: new Map(Object.entries(r.filters.filter || {}).filter(([, e]) => Array.isArray(e)).map(([e, t]) => [e, t])),
19
- rangeFilters: new Map(Object.entries(r.filters.filter || {}).filter(([e]) => s.includes(e)).map(([e, t]) => {
20
- let i;
21
- if (typeof t == "string")
22
- i = new a(t);
23
- else {
24
- i = new a("CUSTOM");
25
- const o = l(t.gte), p = l(t.lte);
26
- i.setDates(o, p);
27
- }
28
- return [e, i];
29
- })),
30
- numberRangeFilters: new Map(Object.entries(r.filters.filter || {}).filter(([e]) => n.includes(e)).map(([e, t]) => {
31
- const i = new m({
32
- filterId: e
33
- });
34
- return t.lte !== void 0 && i.setLte(Number(t.lte)), t.gte !== void 0 && i.setGte(Number(t.gte)), [e, i];
35
- }))
14
+ filters: new Map(
15
+ Object.entries(r.filters.filter || {}).filter(
16
+ ([e, t]) => !Array.isArray(t) && !s.includes(e) && !n.includes(e)
17
+ ).map(([e, t]) => [e, t])
18
+ ),
19
+ arrayFilters: new Map(
20
+ Object.entries(r.filters.filter || {}).filter(([, e]) => Array.isArray(e)).map(([e, t]) => [e, t])
21
+ ),
22
+ rangeFilters: new Map(
23
+ Object.entries(r.filters.filter || {}).filter(([e]) => s.includes(e)).map(([e, t]) => {
24
+ let i;
25
+ if (typeof t == "string")
26
+ i = new a(t);
27
+ else {
28
+ i = new a("CUSTOM");
29
+ const o = l(t.gte), p = l(t.lte);
30
+ i.setDates(o, p);
31
+ }
32
+ return [e, i];
33
+ })
34
+ ),
35
+ numberRangeFilters: new Map(
36
+ Object.entries(r.filters.filter || {}).filter(([e]) => n.includes(e)).map(([e, t]) => {
37
+ const i = new m({ filterId: e });
38
+ return t.lte !== void 0 && i.setLte(Number(t.lte)), t.gte !== void 0 && i.setGte(Number(t.gte)), [e, i];
39
+ })
40
+ )
36
41
  },
37
42
  page: r.filters.page,
38
43
  editable: r.editable && f,
package/dist/index75.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),n=require("react"),l=require("./index86.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;
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/index75.js CHANGED
@@ -1,28 +1,31 @@
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 "./index86.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 {
14
- top: u
15
- } = e.getBoundingClientRect();
16
- c(u);
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"
17
23
  }
18
- };
19
- n();
20
- const t = new ResizeObserver(n);
21
- return e && t.observe(e), () => {
22
- e && t.unobserve(e), t.disconnect();
23
- };
24
- }, []), /* @__PURE__ */ p(v, { style: s, className: f, offset: i, ref: r, children: o });
25
- };
24
+ ],
25
+ showHeaderCloseButton: !0,
26
+ children: /* @__PURE__ */ e(r, { variant: "body", children: "This cannot be undone." })
27
+ }
28
+ );
26
29
  export {
27
- R as AdaptiveHeightContainer
30
+ s as Confirmation
28
31
  };
package/dist/index76.cjs CHANGED
@@ -1 +1,19 @@
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;
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;
package/dist/index76.js CHANGED
@@ -1,21 +1,26 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { Modal as n, Text as r } from "@veeqo/ui";
3
- const s = ({
4
- shouldShow: a,
5
- viewName: i,
6
- onCancel: t,
7
- onDelete: o
8
- }) => /* @__PURE__ */ e(n, { headerTitle: `Delete '${i}' view?`, "data-testid": "act-react-listing-custom-confirmation-popup", variant: "sm", shouldShow: a, onClose: t, rightActions: [{
9
- className: "act-react-listing-custom-confirmation-popup-cancel",
10
- label: "Cancel",
11
- onClick: t,
12
- variant: "default"
13
- }, {
14
- className: "act-react-listing-custom-confirmation-popup-delete",
15
- label: "Delete",
16
- onClick: o,
17
- variant: "primaryDestructive"
18
- }], showHeaderCloseButton: !0, children: /* @__PURE__ */ e(r, { variant: "body", children: "This cannot be undone." }) });
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;
13
+ }
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
+ `;
19
22
  export {
20
- s as Confirmation
23
+ l as Divider,
24
+ n as Item,
25
+ a as MenuItems
21
26
  };
package/dist/index77.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 i=require("react/jsx-runtime"),l=require("./index83.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/index77.js CHANGED
@@ -1,32 +1,17 @@
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(() => ({
4
- role: "option",
5
- variant: "flat"
6
- }))`
7
- margin: ${o.sizes.xs};
8
- min-width: 180px;
9
- justify-content: flex-start;
10
- font-size: ${o.text.body.fontSize};
11
-
12
- &:hover {
13
- background-color: ${o.colors.neutral.grey.lightest};
14
- color: ${o.colors.secondary.blue.base};
15
- cursor: pointer;
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { StyledSortableViews as i } from "./index83.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
+ }
16
13
  }
17
- `, a = t(r.Surface).attrs(() => ({
18
- role: "listbox",
19
- elevation: 4
20
- }))`
21
- margin-top: ${o.sizes.xs};
22
- background-color: white;
23
- `, l = t.hr`
24
- width: 100%;
25
- border-top: 1px solid ${o.colors.neutral.grey.dark};
26
- margin: 0;
27
- `;
14
+ );
28
15
  export {
29
- l as Divider,
30
- n as Item,
31
- a as MenuItems
16
+ h as LegacySortableViews
32
17
  };
package/dist/index78.cjs CHANGED
@@ -1 +1,12 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("@veeqo/ui"),t=require("./index83.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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("styled-components"),t=require("@veeqo/ui"),o=e=>e&&e.__esModule?e:{default:e},r=o(i),d=r.default(t.BaseContainer)`
2
+ display: flex;
3
+ flex-direction: column;
4
+ padding: 8px;
5
+ padding-left: 35px;
6
+ margin: 8px;
7
+ background-color: ${t.theme.colors.neutral.grey.lightest};
8
+ `,l=r.default.hr`
9
+ width: 100%;
10
+ border-top: 1px solid ${t.theme.colors.neutral.grey.dark};
11
+ margin: 0 0 4px 0;
12
+ `;exports.Divider=l;exports.FixedViews=d;
package/dist/index78.js CHANGED
@@ -1,18 +1,18 @@
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 "./index83.js";
4
- const p = o.colors.secondary.blue.base, x = ({
5
- mainEntityLabelPlural: r = "",
6
- onClick: a
7
- }) => /* @__PURE__ */ t(n, { className: "act-react-listing-custom-notification-new-draft", children: /* @__PURE__ */ t(c, { children: /* @__PURE__ */ i(e, { direction: "horizontal", alignY: "center", children: [
8
- /* @__PURE__ */ t(l, { name: "info", color: p }),
9
- /* @__PURE__ */ i(s, { children: [
10
- /* @__PURE__ */ t(d, { variant: "body", margin: "0 4px 0 0", children: "You are currently in a" }),
11
- /* @__PURE__ */ t(m, { variant: "bodyBoldDark", children: "draft view" }),
12
- /* @__PURE__ */ t(f, { variant: "hintText", children: `Apply filters and create a custom view of your ${r.toLowerCase()}` })
13
- ] }),
14
- /* @__PURE__ */ t(h, { className: "act-react-listing-custom-notification-save-draft-btn", variant: "primary", onClick: a, size: "sm", children: "Create view" })
15
- ] }) }) });
1
+ import r from "styled-components";
2
+ import { theme as o, BaseContainer as e } from "@veeqo/ui";
3
+ const d = r(e)`
4
+ display: flex;
5
+ flex-direction: column;
6
+ padding: 8px;
7
+ padding-left: 35px;
8
+ margin: 8px;
9
+ background-color: ${o.colors.neutral.grey.lightest};
10
+ `, l = r.hr`
11
+ width: 100%;
12
+ border-top: 1px solid ${o.colors.neutral.grey.dark};
13
+ margin: 0 0 4px 0;
14
+ `;
16
15
  export {
17
- x as InfoPill
16
+ l as Divider,
17
+ d as FixedViews
18
18
  };
package/dist/index79.cjs CHANGED
@@ -1 +1,80 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),l=require("./index85.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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("styled-components"),e=require("@veeqo/ui"),a=require("@veeqo/components"),r=t=>t&&t.__esModule?t:{default:t},o=r(i),{Glyph:l}=a.VeeqoCommon,s=o.default(e.BaseContainer)`
2
+ display: flex;
3
+ position: fixed;
4
+ width: 100vw;
5
+ left: 0;
6
+ bottom: 24px;
7
+ z-index: 18;
8
+
9
+ &.notification-enter {
10
+ opacity: 0;
11
+ transform: translateY(-16px);
12
+ }
13
+
14
+ &.notification-enter-active {
15
+ opacity: 1;
16
+ transform: translateY(0);
17
+ transition: 350ms ease;
18
+ }
19
+
20
+ &.notification-exit {
21
+ opacity: 0;
22
+ transform: translateY(16px);
23
+ transition: 350ms ease;
24
+ }
25
+ pointer-events: none;
26
+ `,c=o.default(e.BaseContainer)`
27
+ display: inline-flex;
28
+ flex-direction: row;
29
+ align-items: center;
30
+ padding: 20px 24px 24px 24px;
31
+ border-radius: 4px;
32
+ margin: 0 auto;
33
+ background-color: #fff;
34
+ box-shadow: ${e.theme.shadows.lg};
35
+ pointer-events: all;
36
+ `;o.default(e.Banner)`
37
+ display: inline-flex;
38
+ flex-direction: row;
39
+ align-items: center;
40
+ margin: 0 auto;
41
+ background-color: #fff;
42
+ box-shadow: ${e.theme.shadows.lg};
43
+ pointer-events: all;
44
+ `;const d=o.default(e.Button)`
45
+ margin-right: 16px;
46
+ `;o.default(e.Text)`
47
+ line-height: 20px;
48
+ `;const n=o.default(e.Text)`
49
+ margin: ${t=>t.margin?t.margin:""};
50
+ color: ${t=>t.color};
51
+ `,f=o.default(e.Text)`
52
+ margin-right: 8px;
53
+ color: ${t=>t.color};
54
+ `,p=o.default(l)``,x=o.default(e.BaseContainer)`
55
+ display: flex;
56
+ flex-direction: row;
57
+ align-items: flex-end;
58
+ flex-grow: 2;
59
+ margin-left: 24px;
60
+ margin-right: 24px;
61
+ `,u=o.default.button`
62
+ display: flex;
63
+ flex-direction: row;
64
+ width: 100%;
65
+ padding: 12px 16px;
66
+ cursor: pointer;
67
+
68
+ & > ${n} {
69
+ white-space: nowrap;
70
+ user-select: none;
71
+ }
72
+
73
+ &:hover {
74
+ background-color: ${e.theme.colors.neutral.grey.lightest};
75
+ }
76
+
77
+ &:hover > ${n} {
78
+ color: ${e.theme.colors.secondary.blue.base};
79
+ }
80
+ `;exports.Bold=f;exports.Button=d;exports.Container=c;exports.Glyph=p;exports.Item=u;exports.Notification=s;exports.Text=n;exports.Wrap=x;
package/dist/index79.js CHANGED
@@ -1,11 +1,97 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { StyledSortableViews as i } from "./index85.js";
3
- const h = (e) => /* @__PURE__ */ o(i, { ...e, onChange: (t) => {
4
- t.filter((n) => {
5
- var r;
6
- return (r = n.children) == null ? void 0 : r.length;
7
- }).length || e.onChange(t);
8
- } });
1
+ import o from "styled-components";
2
+ import { BaseContainer as n, theme as e, Text as i, Button as a, Banner as l } from "@veeqo/ui";
3
+ import { VeeqoCommon as s } from "@veeqo/components";
4
+ const { Glyph: c } = s, f = o(n)`
5
+ display: flex;
6
+ position: fixed;
7
+ width: 100vw;
8
+ left: 0;
9
+ bottom: 24px;
10
+ z-index: 18;
11
+
12
+ &.notification-enter {
13
+ opacity: 0;
14
+ transform: translateY(-16px);
15
+ }
16
+
17
+ &.notification-enter-active {
18
+ opacity: 1;
19
+ transform: translateY(0);
20
+ transition: 350ms ease;
21
+ }
22
+
23
+ &.notification-exit {
24
+ opacity: 0;
25
+ transform: translateY(16px);
26
+ transition: 350ms ease;
27
+ }
28
+ pointer-events: none;
29
+ `, m = o(n)`
30
+ display: inline-flex;
31
+ flex-direction: row;
32
+ align-items: center;
33
+ padding: 20px 24px 24px 24px;
34
+ border-radius: 4px;
35
+ margin: 0 auto;
36
+ background-color: #fff;
37
+ box-shadow: ${e.shadows.lg};
38
+ pointer-events: all;
39
+ `;
40
+ o(l)`
41
+ display: inline-flex;
42
+ flex-direction: row;
43
+ align-items: center;
44
+ margin: 0 auto;
45
+ background-color: #fff;
46
+ box-shadow: ${e.shadows.lg};
47
+ pointer-events: all;
48
+ `;
49
+ const g = o(a)`
50
+ margin-right: 16px;
51
+ `;
52
+ o(i)`
53
+ line-height: 20px;
54
+ `;
55
+ const r = o(i)`
56
+ margin: ${(t) => t.margin ? t.margin : ""};
57
+ color: ${(t) => t.color};
58
+ `, h = o(i)`
59
+ margin-right: 8px;
60
+ color: ${(t) => t.color};
61
+ `, u = o(c)``, w = o(n)`
62
+ display: flex;
63
+ flex-direction: row;
64
+ align-items: flex-end;
65
+ flex-grow: 2;
66
+ margin-left: 24px;
67
+ margin-right: 24px;
68
+ `, y = o.button`
69
+ display: flex;
70
+ flex-direction: row;
71
+ width: 100%;
72
+ padding: 12px 16px;
73
+ cursor: pointer;
74
+
75
+ & > ${r} {
76
+ white-space: nowrap;
77
+ user-select: none;
78
+ }
79
+
80
+ &:hover {
81
+ background-color: ${e.colors.neutral.grey.lightest};
82
+ }
83
+
84
+ &:hover > ${r} {
85
+ color: ${e.colors.secondary.blue.base};
86
+ }
87
+ `;
9
88
  export {
10
- h as LegacySortableViews
89
+ h as Bold,
90
+ g as Button,
91
+ m as Container,
92
+ u as Glyph,
93
+ y as Item,
94
+ f as Notification,
95
+ r as Text,
96
+ w as Wrap
11
97
  };
package/dist/index80.cjs CHANGED
@@ -1,12 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("styled-components"),t=require("@veeqo/ui"),o=e=>e&&e.__esModule?e:{default:e},r=o(i),d=r.default(t.BaseContainer)`
2
- display: flex;
3
- flex-direction: column;
4
- padding: 8px;
5
- padding-left: 35px;
6
- margin: 8px;
7
- background-color: ${t.theme.colors.neutral.grey.lightest};
8
- `,l=r.default.hr`
9
- width: 100%;
10
- border-top: 1px solid ${t.theme.colors.neutral.grey.dark};
11
- margin: 0 0 4px 0;
12
- `;exports.Divider=l;exports.FixedViews=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("@veeqo/ui"),t=require("./index84.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/index80.js CHANGED
@@ -1,18 +1,24 @@
1
- import r from "styled-components";
2
- import { theme as o, BaseContainer as e } from "@veeqo/ui";
3
- const d = r(e)`
4
- display: flex;
5
- flex-direction: column;
6
- padding: 8px;
7
- padding-left: 35px;
8
- margin: 8px;
9
- background-color: ${o.colors.neutral.grey.lightest};
10
- `, l = r.hr`
11
- width: 100%;
12
- border-top: 1px solid ${o.colors.neutral.grey.dark};
13
- margin: 0 0 4px 0;
14
- `;
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 "./index84.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
+ ] }) }) });
15
22
  export {
16
- l as Divider,
17
- d as FixedViews
23
+ x as InfoPill
18
24
  };