@simpoobusiness/sdk 2.0.85 → 2.0.86

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 (46) hide show
  1. package/README.md +9 -3
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/assets/icons/calendar.d.ts +6 -0
  4. package/dist/assets/icons/index.d.ts +11 -0
  5. package/dist/assets/icons/info.d.ts +5 -0
  6. package/dist/assets/icons/trash.d.ts +5 -0
  7. package/dist/assets/icons.d.ts +1 -0
  8. package/dist/assets/images/calendar.d.ts +6 -0
  9. package/dist/components/atoms/date-range-display.d.ts +2 -0
  10. package/dist/components/atoms/datePicker.d.ts +24 -0
  11. package/dist/components/atoms/dateRangePicker.d.ts +7 -0
  12. package/dist/components/layouts/report-layout.d.ts +7 -0
  13. package/dist/components/modals/cash-breakdown.d.ts +6 -0
  14. package/dist/components/modals/payment-method-details.d.ts +6 -0
  15. package/dist/components/modals/sales-channel-details.d.ts +6 -0
  16. package/dist/components/molecule/empty/itemEmpty.d.ts +9 -0
  17. package/dist/components/molecule/empty/norecord-found.d.ts +8 -0
  18. package/dist/components/molecule/radial-chart.d.ts +4 -0
  19. package/dist/components/molecule/tabs.d.ts +2 -1
  20. package/dist/components/molecule/usermanagement/donutChart.d.ts +21 -0
  21. package/dist/components/ui/button.d.ts +1 -1
  22. package/dist/components/ui/calendar.d.ts +9 -0
  23. package/dist/components/ui/chart.d.ts +62 -0
  24. package/dist/components/ui/progress.d.ts +4 -0
  25. package/dist/components/widgets/reports/sales-report/SalesReport.d.ts +1 -0
  26. package/dist/components/widgets/reports/sales-report/customers-summary.d.ts +5 -0
  27. package/dist/components/widgets/reports/sales-report/payment-methods.d.ts +5 -0
  28. package/dist/components/widgets/reports/sales-report/sales-bar-chart.d.ts +5 -0
  29. package/dist/components/widgets/reports/sales-report/sales-by-category.d.ts +5 -0
  30. package/dist/components/widgets/reports/sales-report/sales-by-employees.d.ts +5 -0
  31. package/dist/components/widgets/reports/sales-report/sales-channels.d.ts +5 -0
  32. package/dist/components/widgets/reports/sales-report/sales-invoice-tab.d.ts +5 -0
  33. package/dist/components/widgets/reports/sales-report/sales-item-tab.d.ts +5 -0
  34. package/dist/components/widgets/reports/sales-report/sales-overview.d.ts +5 -0
  35. package/dist/components/widgets/reports/sales-report/sales-report-tabs.d.ts +5 -0
  36. package/dist/embed.d.ts +2 -0
  37. package/dist/index.d.ts +1 -0
  38. package/dist/simpoo-sdk.css +1 -1
  39. package/dist/simpoo-sdk.js +40 -40
  40. package/dist/simpoo-sdk.js.map +1 -1
  41. package/dist/store/actions/utility.d.ts +5 -0
  42. package/dist/store/index.d.ts +6 -0
  43. package/dist/store/reducers/reports.d.ts +5 -0
  44. package/package.json +19 -13
  45. package/dist/assets/image-placeholdere1821db1b147e2aa.png +0 -0
  46. package/dist/assets/placeholder-image94ba15ea00cc66fe.svg +0 -4
@@ -1,3 +1,8 @@
1
+ import { IDate } from "../../components/atoms/dateRangePicker";
2
+ export declare const formatDate: (dateString: string) => string;
1
3
  export declare function formatToCurrency(value: number, currency?: string, locale?: string): string;
2
4
  export declare function addCommasToNumber(number?: number | null): string;
5
+ export declare function formatNumber(amount?: number): string | 0;
3
6
  export declare function currencySymbol(): any;
7
+ export declare function getDateRangeType(dateRange: IDate): string;
8
+ export declare const timeframe: (dateRange: IDate) => string;
@@ -11,6 +11,9 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
11
11
  fetchingItem: boolean;
12
12
  canBeDeletedFields: ItemData;
13
13
  };
14
+ reports: {
15
+ dateRangeValue: any;
16
+ };
14
17
  }, import("@reduxjs/toolkit").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("@reduxjs/toolkit").StoreEnhancer<{
15
18
  dispatch: import("@reduxjs/toolkit").ThunkDispatch<{
16
19
  app: {
@@ -25,6 +28,9 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
25
28
  fetchingItem: boolean;
26
29
  canBeDeletedFields: ItemData;
27
30
  };
31
+ reports: {
32
+ dateRangeValue: any;
33
+ };
28
34
  }, undefined, import("@reduxjs/toolkit").UnknownAction>;
29
35
  }>, import("@reduxjs/toolkit").StoreEnhancer]>>;
30
36
  export type AppStore = typeof store;
@@ -0,0 +1,5 @@
1
+ export declare const setDateRange: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "reports/setDateRange">;
2
+ declare const _default: import("@reduxjs/toolkit").Reducer<{
3
+ dateRangeValue: any;
4
+ }>;
5
+ export default _default;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "2.0.85",
6
+ "version": "2.0.86",
7
7
  "types": "dist/index.d.ts",
8
8
  "unpkg": "dist/simpoo-sdk.js",
9
9
  "jsdelivr": "dist/simpoo-sdk.js",
@@ -19,17 +19,6 @@
19
19
  "author": "",
20
20
  "license": "MIT",
21
21
  "description": "Simpoo SDK for embedding simpooBusiness inventory widgets into any web app",
22
- "scripts": {
23
- "clean": "rimraf dist",
24
- "typecheck": "tsc --noEmit",
25
- "build": "npm run clean && npm run build:types && npm run build:bundle",
26
- "build:bundle": "cross-env NODE_ENV=production rollup -c --bundleConfigAsCjs",
27
- "docs": "typedoc --out docs src/embed.tsx",
28
- "build:watch": "cross-env NODE_ENV=production rollup -c --bundleConfigAsCjs -w ",
29
- "dev": "npm run build:watch",
30
- "build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist --incremental --project tsconfig.build.json",
31
- "publish:npm": "npm publish --access public"
32
- },
33
22
  "devDependencies": {
34
23
  "@rollup/plugin-commonjs": "^28.0.6",
35
24
  "@rollup/plugin-node-resolve": "^16.0.1",
@@ -39,6 +28,7 @@
39
28
  "@types/axios": "^0.9.36",
40
29
  "@types/react": "^19.1.9",
41
30
  "@types/react-collapse": "^5.0.4",
31
+ "@types/react-date-range": "^1.4.10",
42
32
  "@types/react-dom": "^19.1.7",
43
33
  "autoprefixer": "^10.4.22",
44
34
  "cross-env": "^7.0.3",
@@ -68,6 +58,7 @@
68
58
  "@radix-ui/react-dropdown-menu": "^2.1.15",
69
59
  "@radix-ui/react-hover-card": "^1.1.14",
70
60
  "@radix-ui/react-popover": "^1.1.14",
61
+ "@radix-ui/react-progress": "^1.1.8",
71
62
  "@radix-ui/react-scroll-area": "^1.2.9",
72
63
  "@radix-ui/react-select": "^2.2.5",
73
64
  "@radix-ui/react-separator": "^1.1.7",
@@ -81,18 +72,33 @@
81
72
  "class-variance-authority": "^0.7.1",
82
73
  "clsx": "^2.1.1",
83
74
  "cmdk": "^1.1.1",
75
+ "date-fns": "^4.1.0",
84
76
  "lucide-react": "^0.525.0",
85
77
  "moment": "^2.30.1",
86
78
  "react-collapse": "^5.1.1",
79
+ "react-date-range": "^2.0.1",
80
+ "react-day-picker": "^9.14.0",
87
81
  "react-dnd": "^16.0.1",
88
82
  "react-dnd-html5-backend": "^16.0.1",
89
83
  "react-loader-spinner": "^6.1.6",
90
84
  "react-redux": "^9.2.0",
91
85
  "react-tag-input": "^6.10.6",
86
+ "recharts": "^2.12.7",
92
87
  "sonner": "^2.0.7",
93
88
  "tailwind-merge": "^3.3.1",
94
89
  "tslib": "^2.8.1",
95
90
  "tw-animate-css": "^1.3.6",
96
91
  "use-debounce": "^10.0.5"
92
+ },
93
+ "scripts": {
94
+ "clean": "rimraf dist",
95
+ "typecheck": "tsc --noEmit",
96
+ "build": "npm run clean && npm run build:types && npm run build:bundle",
97
+ "build:bundle": "cross-env NODE_ENV=production rollup -c --bundleConfigAsCjs",
98
+ "docs": "typedoc --out docs src/embed.tsx",
99
+ "build:watch": "cross-env NODE_ENV=production rollup -c --bundleConfigAsCjs -w ",
100
+ "dev": "npm run build:watch",
101
+ "build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist --incremental --project tsconfig.build.json",
102
+ "publish:npm": "npm publish --access public"
97
103
  }
98
- }
104
+ }
@@ -1,4 +0,0 @@
1
- <svg width="120" height="120" viewBox="0 0 120 120" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <rect width="120" height="120" rx="12" fill="#E1E3EA"/>
3
- <path d="M40.1667 85.5H79.8333C82.9629 85.5 85.5 82.9629 85.5 79.8333V40.1667C85.5 37.0371 82.9629 34.5 79.8333 34.5H40.1667C37.0371 34.5 34.5 37.0371 34.5 40.1667V79.8333C34.5 82.9629 37.0371 85.5 40.1667 85.5ZM40.1667 85.5L71.3333 54.3333L85.5 68.5M54.3333 50.0833C54.3333 52.4305 52.4305 54.3333 50.0833 54.3333C47.7361 54.3333 45.8333 52.4305 45.8333 50.0833C45.8333 47.7361 47.7361 45.8333 50.0833 45.8333C52.4305 45.8333 54.3333 47.7361 54.3333 50.0833Z" stroke="#5E6278" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>
4
- </svg>