@manufac/react-components-potli 1.0.3 → 1.0.5
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.
- package/dist/index.js +1 -1
- package/dist/tsc/components/CustomColorPalette/index.js +2 -1
- package/dist/tsc/components/CustomColorPalette/index.js.map +1 -1
- package/dist/tsc/components/CustomColorPalette/index.stories.js +7 -0
- package/dist/tsc/components/CustomColorPalette/index.stories.js.map +1 -0
- package/dist/tsc/components/CustomColorPalette/utils.js +51 -0
- package/dist/tsc/components/CustomColorPalette/utils.js.map +1 -1
- package/dist/tsc/components/CustomTable/index.js +22 -11
- package/dist/tsc/components/CustomTable/index.js.map +1 -1
- package/dist/tsc/components/CustomTable/index.stories.js +7 -0
- package/dist/tsc/components/CustomTable/index.stories.js.map +1 -1
- package/dist/tsc/components/CustomTable/utils.js +12 -1
- package/dist/tsc/components/CustomTable/utils.js.map +1 -1
- package/dist/tsc/tsconfig.tsbuildinfo +1 -1
- package/dist/types/components/CustomColorPalette/index.d.ts +6 -4
- package/dist/types/components/CustomColorPalette/index.d.ts.map +1 -1
- package/dist/types/components/CustomColorPalette/index.stories.d.ts +6 -0
- package/dist/types/components/CustomColorPalette/index.stories.d.ts.map +1 -0
- package/dist/types/components/CustomColorPalette/utils.d.ts +16 -0
- package/dist/types/components/CustomColorPalette/utils.d.ts.map +1 -1
- package/dist/types/components/CustomTable/index.d.ts.map +1 -1
- package/dist/types/components/CustomTable/index.stories.d.ts.map +1 -1
- package/dist/types/components/CustomTable/utils.d.ts +3 -1
- package/dist/types/components/CustomTable/utils.d.ts.map +1 -1
- package/package.json +4 -2
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type { ColorPaletteKey } from "./utils";
|
|
2
|
+
import type { SelectProps } from "@mantine/core";
|
|
1
3
|
import type { JSX } from "react";
|
|
2
|
-
|
|
3
|
-
value
|
|
4
|
-
placeholder?: string;
|
|
4
|
+
interface ColorPaletteSelectProps extends Omit<SelectProps, "data" | "renderOption"> {
|
|
5
|
+
value: ColorPaletteKey;
|
|
5
6
|
}
|
|
6
|
-
export declare function CustomColorSelect(props:
|
|
7
|
+
export declare function CustomColorSelect(props: ColorPaletteSelectProps): JSX.Element;
|
|
8
|
+
export {};
|
|
7
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/CustomColorPalette/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/CustomColorPalette/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC,UAAU,uBAAwB,SAAQ,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,cAAc,CAAC;IAClF,KAAK,EAAE,eAAe,CAAC;CACxB;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CAS7E"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CustomColorSelect } from ".";
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-webpack5";
|
|
3
|
+
declare const _default: Meta<typeof CustomColorSelect>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Template: StoryObj<typeof CustomColorSelect>;
|
|
6
|
+
//# sourceMappingURL=index.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/CustomColorPalette/index.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAC;AACtC,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;wBAK3D,IAAI,CAAC,OAAO,iBAAiB,CAAC;AAHnC,wBAGoC;AAEpC,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAAC,OAAO,iBAAiB,CAAM,CAAC"}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import type { ComboboxItem, ComboboxLikeRenderOptionInput } from "@mantine/core";
|
|
2
|
+
import type { JSX } from "react";
|
|
3
|
+
interface ColorPaletteOptionItem extends ComboboxItem {
|
|
4
|
+
groupName?: string;
|
|
5
|
+
}
|
|
1
6
|
export declare const ColorSchemeMap: {
|
|
2
7
|
readonly Categorical: {
|
|
3
8
|
readonly "color-scheme-category-10": readonly string[];
|
|
@@ -38,4 +43,15 @@ export declare const ColorSchemeMap: {
|
|
|
38
43
|
};
|
|
39
44
|
export type ColorPaletteKey = keyof typeof ColorSchemeMap.Categorical | keyof typeof ColorSchemeMap.SequentialSingleHue | keyof typeof ColorSchemeMap.SequentialMultiHue | keyof typeof ColorSchemeMap.Diverging;
|
|
40
45
|
export declare const ColorPalette: Record<ColorPaletteKey, readonly string[]>;
|
|
46
|
+
export declare const ColorSchemeLabels: Record<ColorPaletteKey, string>;
|
|
47
|
+
export declare const ColorOptions: {
|
|
48
|
+
group: string;
|
|
49
|
+
items: {
|
|
50
|
+
value: string;
|
|
51
|
+
label: string;
|
|
52
|
+
groupName: string;
|
|
53
|
+
}[];
|
|
54
|
+
}[];
|
|
55
|
+
export declare function colorPaletteItem({ option, }: ComboboxLikeRenderOptionInput<ColorPaletteOptionItem>): JSX.Element;
|
|
56
|
+
export {};
|
|
41
57
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/CustomColorPalette/utils.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/CustomColorPalette/utils.tsx"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EAAE,YAAY,EAAE,6BAA6B,EAAE,MAAM,eAAe,CAAC;AACjF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC,UAAU,sBAAuB,SAAQ,YAAY;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCjB,CAAC;AAEX,MAAM,MAAM,eAAe,GACvB,MAAM,OAAO,cAAc,CAAC,WAAW,GACvC,MAAM,OAAO,cAAc,CAAC,mBAAmB,GAC/C,MAAM,OAAO,cAAc,CAAC,kBAAkB,GAC9C,MAAM,OAAO,cAAc,CAAC,SAAS,CAAC;AAE1C,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,eAAe,EAAE,SAAS,MAAM,EAAE,CAKnE,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CA6B7D,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;GAWvB,CAAC;AAEH,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,GACP,EAAE,6BAA6B,CAAC,sBAAsB,CAAC,GAAG,GAAG,CAAC,OAAO,CAcrE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/CustomTable/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/CustomTable/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAgB,SAAS,EAAsB,MAAM,uBAAuB,CAAC;AACzF,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,CAqEnC"}
|
|
@@ -1 +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;
|
|
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;wBA4D3D,IAAI,CAAC,OAAO,WAAW,CAAC;AAT7B,wBAS8B;AAE9B,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,OAAO,WAAW,CAIhD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Row } from "@tanstack/react-table";
|
|
1
|
+
import type { Row, Column, FilterFn, RowData } from "@tanstack/react-table";
|
|
2
2
|
import type { JSX } from "react";
|
|
3
3
|
export declare const Sort: {
|
|
4
4
|
readonly Ascending: "asc";
|
|
@@ -14,5 +14,7 @@ export interface GetTableBodyParams<T> {
|
|
|
14
14
|
columnCount: number;
|
|
15
15
|
}
|
|
16
16
|
export declare function getTableBody<T>({ isLoading, error, tableRows, columnCount, }: GetTableBodyParams<T>): JSX.Element | JSX.Element[];
|
|
17
|
+
export declare function getColumnFilterInput<T>(column: Column<T>): JSX.Element | null;
|
|
18
|
+
export declare const FuzzyFilter: FilterFn<RowData>;
|
|
17
19
|
export {};
|
|
18
20
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/CustomTable/utils.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/CustomTable/utils.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAC5E,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;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,OAAO,GAAG,IAAI,CAY7E;AAID,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,OAAO,CASzC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manufac/react-components-potli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"exports": {
|
|
6
6
|
"import": "./dist/index.js",
|
|
@@ -22,15 +22,16 @@
|
|
|
22
22
|
"start": "storybook dev -p 6006"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@mantine/core": "^8.3.1",
|
|
26
25
|
"@mantine/hooks": "^8.3.8",
|
|
27
26
|
"@tabler/icons-react": "^3.31.0",
|
|
27
|
+
"@tanstack/match-sorter-utils": "^8.19.4",
|
|
28
28
|
"@tanstack/react-table": "^8.21.3",
|
|
29
29
|
"d3-scale-chromatic": "^3.1.0",
|
|
30
30
|
"echarts": "^6.0.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@faker-js/faker": "^10.1.0",
|
|
34
|
+
"@mantine/core": "^8.3.1",
|
|
34
35
|
"@manufac/eslint-config": "^5.5.0",
|
|
35
36
|
"@manufac/prettier-config": "^1.7.0",
|
|
36
37
|
"@storybook/addon-docs": "^10.0.8",
|
|
@@ -53,6 +54,7 @@
|
|
|
53
54
|
"webpack-cli": "^6.0.1"
|
|
54
55
|
},
|
|
55
56
|
"peerDependencies": {
|
|
57
|
+
"@mantine/core": "^8.3.1",
|
|
56
58
|
"react": ">=19",
|
|
57
59
|
"react-dom": ">=19"
|
|
58
60
|
},
|