@layers-app/shared 0.0.37 → 0.0.38

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 (38) hide show
  1. package/dist/{KanbanLayout-VHRhOh9W.js → KanbanLayout-_hW8P-S9.js} +1 -1
  2. package/dist/{TimeLine-BByQEycM.js → TimeLine-DCVt4pFB.js} +3 -3
  3. package/dist/components/ColorPicker/ColorPicker.d.ts +4 -0
  4. package/dist/components/CommentsPanel/components/CommentActionMenu.d.ts +6 -0
  5. package/dist/components/CommentsPanel/components/CommentsUploadFilesPreview.d.ts +2 -1
  6. package/dist/components/Copyright/index.d.ts +9 -0
  7. package/dist/components/Logotype.d.ts +4 -2
  8. package/dist/components/NotPublicPanel/NotPublicPanel.d.ts +1 -2
  9. package/dist/components/SearchFilters/SearchFilters.d.ts +4 -2
  10. package/dist/components/SearchFilters/components/Type.d.ts +3 -2
  11. package/dist/components/SearchFilters/types.d.ts +1 -1
  12. package/dist/components/TemplatesModal/components/SelectedTemplate.d.ts +7 -0
  13. package/dist/components/TemplatesModal/components/Template.d.ts +9 -0
  14. package/dist/components/TemplatesModal/components/Templates.d.ts +7 -0
  15. package/dist/components/TemplatesModal/data.d.ts +13 -0
  16. package/dist/components/TemplatesModal/index.d.ts +7 -0
  17. package/dist/components/TemplatesModal/types.d.ts +16 -0
  18. package/dist/components/table/api.d.ts +5 -7
  19. package/dist/components/table/components/TableRow.d.ts +4 -5
  20. package/dist/components/table/components/TableRows.d.ts +4 -5
  21. package/dist/components/table/components/TableSkeleton.d.ts +4 -4
  22. package/dist/components/table/helpers/columns.d.ts +2 -9
  23. package/dist/components/table/hooks/TableProvider.d.ts +6 -8
  24. package/dist/components/table/hooks/useCreateTable.d.ts +6 -8
  25. package/dist/components/table/hooks/useTableStore.d.ts +6 -8
  26. package/dist/components/table/selectors.d.ts +529 -2734
  27. package/dist/components/table/store.d.ts +11 -26
  28. package/dist/components/table/types.d.ts +4 -9
  29. package/dist/{index-De7pQ4GG.js → index-B17e6b8n.js} +19124 -18538
  30. package/dist/index.d.ts +3 -0
  31. package/dist/{index.esm-CKK13a1d.js → index.esm-Ci1yhzNS.js} +1 -1
  32. package/dist/index.js +165 -176
  33. package/dist/index.umd.cjs +286 -226
  34. package/dist/store/accessOptionsControl.d.ts +6 -0
  35. package/dist/utils/getPlanBadgeColor.d.ts +6 -0
  36. package/dist/utils/queryParams.d.ts +2 -0
  37. package/package.json +2 -2
  38. package/dist/components/table/helpers/filter.d.ts +0 -52
@@ -0,0 +1,6 @@
1
+ interface AccessOptionsControl {
2
+ opened: boolean;
3
+ }
4
+ export declare const useAccessOptionsControl: import('zustand').UseBoundStore<import('zustand').StoreApi<AccessOptionsControl>>;
5
+ export declare const toggleAccessOptionsControl: (value: boolean) => void;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Returns the appropriate color for a plan badge based on the plan type
3
+ * @param plan - The plan type (FREE, PAID, BUSINESS, ENTERPRISE)
4
+ * @returns The color code for the badge
5
+ */
6
+ export declare const getPlanBadgeColor: (plan: string) => string;
@@ -0,0 +1,2 @@
1
+ export declare const addQueryParam: (key: string, value: string) => void;
2
+ export declare const removeQueryParam: (key: string) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layers-app/shared",
3
- "version": "0.0.37",
3
+ "version": "0.0.38",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -47,6 +47,6 @@
47
47
  "react-i18next": "^15.0.2",
48
48
  "react-joyride": "^2.8.2",
49
49
  "react-router-dom": "^7.5.2",
50
- "zustand": "^4.5.4"
50
+ "zustand": "^5.0.3"
51
51
  }
52
52
  }
@@ -1,52 +0,0 @@
1
- import { TableColumnType } from '../types';
2
- export type TableFilterValue = Date | string | number | boolean | null | undefined;
3
- export type TableFilterComparisonFunction = (a: TableFilterValue, b: TableFilterValue) => boolean;
4
- export interface TableFilterComparisonOption {
5
- value: string;
6
- label: string;
7
- function: TableFilterComparisonFunction;
8
- }
9
- export type TableFilterSettings = {
10
- default: TableFilterComparisonOption;
11
- options: TableFilterComparisonOption[];
12
- formatter: (value: TableFilterValue) => string;
13
- };
14
- export declare const dateComparisonSettings: {
15
- readonly is: {
16
- readonly label: "is";
17
- readonly function: (a: Date | null, b: Date | null) => boolean;
18
- };
19
- readonly isNot: {
20
- readonly label: "is not";
21
- readonly function: (a: Date | null, b: Date | null) => boolean;
22
- };
23
- readonly isAfter: {
24
- readonly label: "is after";
25
- readonly function: (a: Date | null, b: Date | null) => boolean;
26
- };
27
- readonly isOnOrAfter: {
28
- readonly label: "is on or after";
29
- readonly function: (a: Date | null, b: Date | null) => boolean;
30
- };
31
- readonly isBefore: {
32
- readonly label: "is before";
33
- readonly function: (a: Date | null, b: Date | null) => boolean;
34
- };
35
- readonly isOnOrBefore: {
36
- readonly label: "is on or before";
37
- readonly function: (a: Date | null, b: Date | null) => boolean;
38
- };
39
- readonly isEmpty: {
40
- readonly label: "is empty";
41
- readonly function: (a: Date | null) => a is null;
42
- };
43
- readonly isNotEmpty: {
44
- readonly label: "is not empty";
45
- readonly function: (a: Date | null) => a is Date;
46
- };
47
- };
48
- export declare const dateComparativeOptions: {
49
- value: string;
50
- label: "is" | "is not empty" | "is not" | "is empty" | "is after" | "is on or after" | "is before" | "is on or before";
51
- }[];
52
- export declare const getTableFilterSettings: (columnType?: TableColumnType) => TableFilterSettings;