@veeqo/transfigure 1.2.2 → 1.2.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 (76) hide show
  1. package/dist/BusinessLogic/mocks.d.ts +10 -0
  2. package/dist/index10.cjs +1 -1
  3. package/dist/index10.js +88 -78
  4. package/dist/index100.cjs +19 -1
  5. package/dist/index100.js +24 -21
  6. package/dist/index102.cjs +1 -12
  7. package/dist/index102.js +21 -16
  8. package/dist/index103.cjs +1 -1
  9. package/dist/index103.js +28 -23
  10. package/dist/index105.cjs +12 -1
  11. package/dist/index105.js +16 -24
  12. package/dist/index107.cjs +1 -1
  13. package/dist/index107.js +1 -1
  14. package/dist/index108.cjs +1 -1
  15. package/dist/index108.js +1 -1
  16. package/dist/index11.cjs +1 -1
  17. package/dist/index11.js +1 -1
  18. package/dist/index116.cjs +7 -1
  19. package/dist/index116.js +10 -47
  20. package/dist/index117.cjs +1 -7
  21. package/dist/index117.js +47 -10
  22. package/dist/index17.cjs +1 -1
  23. package/dist/index17.js +1 -1
  24. package/dist/index34.cjs +1 -1
  25. package/dist/index34.js +1 -1
  26. package/dist/index39.cjs +1 -1
  27. package/dist/index39.js +1 -1
  28. package/dist/index40.cjs +1 -1
  29. package/dist/index40.js +1 -1
  30. package/dist/index44.cjs +1 -1
  31. package/dist/index44.js +1 -1
  32. package/dist/index47.cjs +1 -1
  33. package/dist/index47.js +2 -2
  34. package/dist/index56.cjs +1 -1
  35. package/dist/index56.js +71 -71
  36. package/dist/index63.cjs +1 -1
  37. package/dist/index63.js +35 -33
  38. package/dist/index64.cjs +1 -1
  39. package/dist/index64.js +11 -10
  40. package/dist/index67.cjs +1 -1
  41. package/dist/index67.js +46 -44
  42. package/dist/index68.cjs +1 -1
  43. package/dist/index68.js +202 -201
  44. package/dist/index78.cjs +1 -1
  45. package/dist/index78.js +41 -29
  46. package/dist/index80.cjs +1 -1
  47. package/dist/index80.js +1 -1
  48. package/dist/index86.cjs +1 -1
  49. package/dist/index86.js +5 -41
  50. package/dist/index87.cjs +1 -1
  51. package/dist/index87.js +41 -9
  52. package/dist/index88.cjs +1 -1
  53. package/dist/index88.js +8 -4
  54. package/dist/index89.cjs +1 -1
  55. package/dist/index89.js +7 -7
  56. package/dist/index91.cjs +1 -1
  57. package/dist/index91.js +7 -13
  58. package/dist/index92.cjs +1 -104
  59. package/dist/index92.js +13 -120
  60. package/dist/index93.cjs +104 -1
  61. package/dist/index93.js +117 -65
  62. package/dist/index94.cjs +1 -1
  63. package/dist/index94.js +63 -24
  64. package/dist/index95.cjs +1 -1
  65. package/dist/index95.js +29 -2
  66. package/dist/index96.cjs +1 -1
  67. package/dist/index96.js +2 -41
  68. package/dist/index97.cjs +1 -1
  69. package/dist/index97.js +39 -9
  70. package/dist/index98.cjs +1 -1
  71. package/dist/index98.js +10 -6
  72. package/dist/index99.cjs +1 -19
  73. package/dist/index99.js +24 -24
  74. package/dist/mobx/Filters/Filters.d.ts +1 -1
  75. package/dist/storybookHelpers/apiMocks/views/custom_views.d.ts +45 -4
  76. package/package.json +5 -2
package/dist/index99.js CHANGED
@@ -1,26 +1,26 @@
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
- `;
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 "./index116.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
- l as Divider,
24
- n as Item,
25
- a as MenuItems
25
+ R as AdaptiveHeightContainer
26
26
  };
@@ -48,7 +48,7 @@ export declare class Filters {
48
48
  getFiltersForGroup: (groupId: string) => Record<string, string | string[] | NumberRangeFilter | RangeFilter | undefined>;
49
49
  get hasActiveFilters(): boolean;
50
50
  get activeFilterKeysList(): string[];
51
- get queryParamsObject(): URLSearchParams;
51
+ get queryParamsObject(): Record<string, string | object>;
52
52
  get queryParams(): string;
53
53
  initFiltersFromView: (props: TransformedView) => void;
54
54
  initFromUrl: (shouldUseViewIdFromURL?: boolean) => void;
@@ -13,8 +13,9 @@ export declare const custom_views: {
13
13
  due_date?: undefined;
14
14
  shoe_size?: undefined;
15
15
  max_products?: undefined;
16
- order_number?: undefined;
16
+ search?: undefined;
17
17
  product_count?: undefined;
18
+ brand_ids?: undefined;
18
19
  };
19
20
  page?: undefined;
20
21
  };
@@ -39,8 +40,9 @@ export declare const custom_views: {
39
40
  due_date?: undefined;
40
41
  shoe_size?: undefined;
41
42
  max_products?: undefined;
42
- order_number?: undefined;
43
+ search?: undefined;
43
44
  product_count?: undefined;
45
+ brand_ids?: undefined;
44
46
  };
45
47
  page?: undefined;
46
48
  };
@@ -64,7 +66,9 @@ export declare const custom_views: {
64
66
  due_date: string;
65
67
  shoe_size: string;
66
68
  max_products: string;
67
- order_number: string;
69
+ search: {
70
+ order_number: string;
71
+ };
68
72
  product_count: {
69
73
  gte: string;
70
74
  };
@@ -72,6 +76,7 @@ export declare const custom_views: {
72
76
  created?: undefined;
73
77
  mergeable?: undefined;
74
78
  pick_status?: undefined;
79
+ brand_ids?: undefined;
75
80
  };
76
81
  };
77
82
  created_at: string;
@@ -94,7 +99,42 @@ export declare const custom_views: {
94
99
  due_date: string;
95
100
  shoe_size: string;
96
101
  max_products: string;
97
- order_number: string;
102
+ search: {
103
+ order_number: string;
104
+ };
105
+ product_count: {
106
+ gte: string;
107
+ };
108
+ brand_ids: string[];
109
+ status?: undefined;
110
+ created?: undefined;
111
+ mergeable?: undefined;
112
+ pick_status?: undefined;
113
+ };
114
+ };
115
+ created_at: string;
116
+ updated_at: string;
117
+ editable: boolean;
118
+ company_id: number;
119
+ columns: {
120
+ columnIds?: undefined;
121
+ };
122
+ } | {
123
+ id: string;
124
+ title: string;
125
+ user_id: number;
126
+ shared: boolean;
127
+ filters: {
128
+ page: {
129
+ size: number;
130
+ };
131
+ filter: {
132
+ due_date: string;
133
+ shoe_size: string;
134
+ max_products: string;
135
+ search: {
136
+ order_number: string;
137
+ };
98
138
  product_count: {
99
139
  gte: string;
100
140
  };
@@ -102,6 +142,7 @@ export declare const custom_views: {
102
142
  created?: undefined;
103
143
  mergeable?: undefined;
104
144
  pick_status?: undefined;
145
+ brand_ids?: undefined;
105
146
  };
106
147
  };
107
148
  created_at: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veeqo/transfigure",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "main": "dist/index.cjs",
@@ -55,7 +55,8 @@
55
55
  "react-use": "^15.3.8",
56
56
  "styled-components": "^5.1.1",
57
57
  "swr": "^2.0.4",
58
- "uid": "^2.0.2"
58
+ "uid": "^2.0.2",
59
+ "qs": "^6.10.3"
59
60
  },
60
61
  "optionalDependencies": {
61
62
  "@rollup/rollup-linux-x64-gnu": "4.6.1"
@@ -93,6 +94,7 @@
93
94
  "@typescript-eslint/parser": "^8.37.0",
94
95
  "@veeqo/components": "6.1.1",
95
96
  "@veeqo/ui": "13.10.0",
97
+ "qs": "^6.10.3",
96
98
  "@vitejs/plugin-react": "^4.3.4",
97
99
  "@vitest/browser": "^3.1.2",
98
100
  "@vitest/coverage-v8": "^3.1.2",
@@ -141,6 +143,7 @@
141
143
  "vite-css-modules": "^1.8.6",
142
144
  "vite-plugin-dts": "^4.5.3",
143
145
  "vite-plugin-eslint": "^1.8.1",
146
+ "@types/qs": "^6.9.7",
144
147
  "vite-plugin-externalize-deps": "^0.9.0",
145
148
  "vitest": "^3.1.2"
146
149
  },