@manufac/react-components-potli 1.0.2

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 (32) hide show
  1. package/dist/index.js +2 -0
  2. package/dist/index.js.LICENSE.txt +37 -0
  3. package/dist/tsc/components/CustomEventTimelineChart/index.js +133 -0
  4. package/dist/tsc/components/CustomEventTimelineChart/index.js.map +1 -0
  5. package/dist/tsc/components/CustomEventTimelineChart/index.stories.js +16 -0
  6. package/dist/tsc/components/CustomEventTimelineChart/index.stories.js.map +1 -0
  7. package/dist/tsc/components/CustomEventTimelineChart/utils.js +38 -0
  8. package/dist/tsc/components/CustomEventTimelineChart/utils.js.map +1 -0
  9. package/dist/tsc/components/CustomTable/index.js +33 -0
  10. package/dist/tsc/components/CustomTable/index.js.map +1 -0
  11. package/dist/tsc/components/CustomTable/index.stories.js +48 -0
  12. package/dist/tsc/components/CustomTable/index.stories.js.map +1 -0
  13. package/dist/tsc/components/CustomTable/utils.js +46 -0
  14. package/dist/tsc/components/CustomTable/utils.js.map +1 -0
  15. package/dist/tsc/index.js +3 -0
  16. package/dist/tsc/index.js.map +1 -0
  17. package/dist/tsc/tsconfig.tsbuildinfo +1 -0
  18. package/dist/types/components/CustomEventTimelineChart/index.d.ts +8 -0
  19. package/dist/types/components/CustomEventTimelineChart/index.d.ts.map +1 -0
  20. package/dist/types/components/CustomEventTimelineChart/index.stories.d.ts +7 -0
  21. package/dist/types/components/CustomEventTimelineChart/index.stories.d.ts.map +1 -0
  22. package/dist/types/components/CustomEventTimelineChart/utils.d.ts +9 -0
  23. package/dist/types/components/CustomEventTimelineChart/utils.d.ts.map +1 -0
  24. package/dist/types/components/CustomTable/index.d.ts +11 -0
  25. package/dist/types/components/CustomTable/index.d.ts.map +1 -0
  26. package/dist/types/components/CustomTable/index.stories.d.ts +6 -0
  27. package/dist/types/components/CustomTable/index.stories.d.ts.map +1 -0
  28. package/dist/types/components/CustomTable/utils.d.ts +18 -0
  29. package/dist/types/components/CustomTable/utils.d.ts.map +1 -0
  30. package/dist/types/index.d.ts +3 -0
  31. package/dist/types/index.d.ts.map +1 -0
  32. package/package.json +57 -0
@@ -0,0 +1,8 @@
1
+ import type { EventTimelineDatum } from "./utils";
2
+ import type { JSX } from "react";
3
+ export interface EventTimelineChartProps {
4
+ theme?: "light" | "dark";
5
+ data: EventTimelineDatum[];
6
+ }
7
+ export declare function EventTimelineChart({ theme, data }: EventTimelineChartProps): JSX.Element;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/CustomEventTimelineChart/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAIlD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAMjC,MAAM,WAAW,uBAAuB;IACtC,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACzB,IAAI,EAAE,kBAAkB,EAAE,CAAC;CAC5B;AAGD,wBAAgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CAwIxF"}
@@ -0,0 +1,7 @@
1
+ import { EventTimelineChart } from ".";
2
+ import type { EventTimelineChartProps } from ".";
3
+ import type { Meta } from "@storybook/react-webpack5";
4
+ declare const _default: Meta<typeof EventTimelineChart>;
5
+ export default _default;
6
+ export declare const Template: (args: EventTimelineChartProps) => import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=index.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/CustomEventTimelineChart/index.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,GAAG,CAAC;AAGvC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,GAAG,CAAC;AACjD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;wBAQjD,IAAI,CAAC,OAAO,kBAAkB,CAAC;AANpC,wBAMqC;AAErC,eAAO,MAAM,QAAQ,GAAI,MAAM,uBAAuB,4CAQrD,CAAC"}
@@ -0,0 +1,9 @@
1
+ export interface EventTimelineDatum {
2
+ start: string;
3
+ end: string;
4
+ event: string;
5
+ icon: string;
6
+ color?: string;
7
+ }
8
+ export declare const DummyData: EventTimelineDatum[];
9
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/CustomEventTimelineChart/utils.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAGD,eAAO,MAAM,SAAS,EAAE,kBAAkB,EAoCzC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { ColumnDef } from "@tanstack/react-table";
2
+ import type { JSX } from "react";
3
+ interface CustomTableProps<T> {
4
+ isLoading: boolean;
5
+ error: Error | null;
6
+ data: T[];
7
+ columns: ColumnDef<T>[];
8
+ }
9
+ export declare function CustomTable<T>({ data, isLoading, error, columns, }: CustomTableProps<T>): JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/CustomTable/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAgB,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC,UAAU,gBAAgB,CAAC,CAAC;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;CACzB;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,EAC7B,IAAI,EACJ,SAAS,EACT,KAAK,EACL,OAAO,GACR,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,OAAO,CAoDnC"}
@@ -0,0 +1,6 @@
1
+ import { CustomTable } from ".";
2
+ import type { Meta, StoryObj } from "@storybook/react-webpack5";
3
+ declare const _default: Meta<typeof CustomTable>;
4
+ export default _default;
5
+ export declare const Default: StoryObj<typeof CustomTable>;
6
+ //# sourceMappingURL=index.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/CustomTable/index.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,GAAG,CAAC;AAEhC,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;wBAqD3D,IAAI,CAAC,OAAO,WAAW,CAAC;AAT7B,wBAS8B;AAE9B,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,OAAO,WAAW,CAIhD,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { Row } from "@tanstack/react-table";
2
+ import type { JSX } from "react";
3
+ export declare const Sort: {
4
+ readonly Ascending: "asc";
5
+ readonly Descending: "desc";
6
+ readonly Default: "default";
7
+ };
8
+ type SortType = (typeof Sort)[keyof typeof Sort];
9
+ export declare function getSortingIcon(sortOrder: SortType, canSort: boolean): JSX.Element | undefined;
10
+ export interface GetTableBodyParams<T> {
11
+ isLoading: boolean;
12
+ error?: Error | null;
13
+ tableRows: Row<T>[];
14
+ columnCount: number;
15
+ }
16
+ export declare function getTableBody<T>({ isLoading, error, tableRows, columnCount, }: GetTableBodyParams<T>): JSX.Element | JSX.Element[];
17
+ export {};
18
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/CustomTable/utils.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC,eAAO,MAAM,IAAI;;;;CAIP,CAAC;AACX,KAAK,QAAQ,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,OAAO,IAAI,CAAC,CAAC;AAQjD,wBAAgB,cAAc,CAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,GAAG,CAAC,OAAO,GAAG,SAAS,CAQ7F;AAED,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,EAC9B,SAAS,EACT,KAAK,EACL,SAAS,EACT,WAAW,GACZ,EAAE,kBAAkB,CAAC,CAAC,CAAC,+BAgDvB"}
@@ -0,0 +1,3 @@
1
+ export * from "./components/CustomEventTimelineChart";
2
+ export * from "./components/CustomTable";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,0BAA0B,CAAC"}
package/package.json ADDED
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "@manufac/react-components-potli",
3
+ "version": "1.0.2",
4
+ "license": "UNLICENSED",
5
+ "exports": {
6
+ "import": "./dist/index.js"
7
+ },
8
+ "main": "dist/index.js",
9
+ "module": "dist/index.js",
10
+ "types": "dist/types/index.d.ts",
11
+ "files": [
12
+ "dist"
13
+ ],
14
+ "scripts": {
15
+ "build": "yarn compile && yarn bundle",
16
+ "build:sb": "storybook build",
17
+ "bundle": "webpack --config webpack.config.js --env production",
18
+ "compile": "tsc",
19
+ "lint": "eslint --fix --cache",
20
+ "pretty": "prettier --cache --write . && sort-package-json",
21
+ "start": "storybook dev -p 6006"
22
+ },
23
+ "dependencies": {
24
+ "@mantine/core": "^8.3.1",
25
+ "@mantine/hooks": "^8.3.8",
26
+ "@tabler/icons-react": "^3.31.0",
27
+ "@tanstack/react-table": "^8.21.3",
28
+ "echarts": "^6.0.0"
29
+ },
30
+ "devDependencies": {
31
+ "@faker-js/faker": "^10.1.0",
32
+ "@manufac/eslint-config": "^5.5.0",
33
+ "@manufac/prettier-config": "^1.7.0",
34
+ "@storybook/addon-docs": "^10.0.8",
35
+ "@storybook/addon-webpack5-compiler-swc": "^4.0.2",
36
+ "@storybook/react-webpack5": "^10.0.8",
37
+ "@types/react": "^19.2.6",
38
+ "@types/react-dom": "^19.2.3",
39
+ "@vueless/storybook-dark-mode": "^10.0.3",
40
+ "eslint": "^9.39.1",
41
+ "eslint-plugin-storybook": "^10.0.8",
42
+ "prettier": "^3.6.2",
43
+ "react": "^19.1.0",
44
+ "react-dom": "^19.1.0",
45
+ "sort-package-json": "^3.0.0",
46
+ "storybook": "^10.0.8",
47
+ "ts-loader": "^9.5.4",
48
+ "typescript": "^5.9.3",
49
+ "webpack": "^5.103.0",
50
+ "webpack-cli": "^6.0.1"
51
+ },
52
+ "peerDependencies": {
53
+ "react": ">=19",
54
+ "react-dom": ">=19"
55
+ },
56
+ "access": "public"
57
+ }