@manufac/react-components-potli 1.0.2 → 1.0.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.
@@ -0,0 +1,9 @@
1
+ import type { ColorPaletteKey } from "./utils";
2
+ import type { SelectProps } from "@mantine/core";
3
+ import type { JSX } from "react";
4
+ interface ColorPaletteSelectProps extends Omit<SelectProps, "data" | "renderOption"> {
5
+ value: ColorPaletteKey;
6
+ }
7
+ export declare function CustomColorSelect(props: ColorPaletteSelectProps): JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,57 @@
1
+ import type { ComboboxItem, ComboboxLikeRenderOptionInput } from "@mantine/core";
2
+ import type { JSX } from "react";
3
+ interface ColorPaletteOptionItem extends ComboboxItem {
4
+ groupName?: string;
5
+ }
6
+ export declare const ColorSchemeMap: {
7
+ readonly Categorical: {
8
+ readonly "color-scheme-category-10": readonly string[];
9
+ readonly "color-scheme-accent": readonly string[];
10
+ readonly "color-scheme-dark-2": readonly string[];
11
+ readonly "color-scheme-observable-10": readonly string[];
12
+ readonly "color-scheme-paired": readonly string[];
13
+ readonly "color-scheme-set-1": readonly string[];
14
+ readonly "color-scheme-set-2": readonly string[];
15
+ readonly "color-scheme-tableau-10": readonly string[];
16
+ };
17
+ readonly SequentialSingleHue: {
18
+ readonly "color-scheme-blues": readonly string[];
19
+ readonly "color-scheme-greens": readonly string[];
20
+ readonly "color-scheme-greys": readonly string[];
21
+ readonly "color-scheme-oranges": readonly string[];
22
+ readonly "color-scheme-purples": readonly string[];
23
+ readonly "color-scheme-reds": readonly string[];
24
+ };
25
+ readonly SequentialMultiHue: {
26
+ readonly "color-scheme-yellow-orange-brown": readonly string[];
27
+ readonly "color-scheme-yellow-orange-red": readonly string[];
28
+ readonly "color-scheme-orange-red": readonly string[];
29
+ readonly "color-scheme-purple-blue-green": readonly string[];
30
+ readonly "color-scheme-blue-purple": readonly string[];
31
+ };
32
+ readonly Diverging: {
33
+ readonly "color-scheme-brown-blue-green": readonly string[];
34
+ readonly "color-scheme-purple-green": readonly string[];
35
+ readonly "color-scheme-pink-yellow-green": readonly string[];
36
+ readonly "color-scheme-purple-orange": readonly string[];
37
+ readonly "color-scheme-red-blue": readonly string[];
38
+ readonly "color-scheme-red-grey": readonly string[];
39
+ readonly "color-scheme-red-yellow-blue": readonly string[];
40
+ readonly "color-scheme-red-yellow-green": readonly string[];
41
+ readonly "color-scheme-spectral": readonly string[];
42
+ };
43
+ };
44
+ export type ColorPaletteKey = keyof typeof ColorSchemeMap.Categorical | keyof typeof ColorSchemeMap.SequentialSingleHue | keyof typeof ColorSchemeMap.SequentialMultiHue | keyof typeof ColorSchemeMap.Diverging;
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 {};
57
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
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,3 +1,4 @@
1
1
  export * from "./components/CustomEventTimelineChart";
2
2
  export * from "./components/CustomTable";
3
+ export * from "./components/CustomColorPalette";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC"}
package/package.json CHANGED
@@ -1,57 +1,63 @@
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
- }
1
+ {
2
+ "name": "@manufac/react-components-potli",
3
+ "version": "1.0.4",
4
+ "license": "UNLICENSED",
5
+ "exports": {
6
+ "import": "./dist/index.js",
7
+ "types": "./dist/types/index.d.ts"
8
+ },
9
+ "main": "dist/index.js",
10
+ "module": "dist/index.js",
11
+ "types": "dist/types/index.d.ts",
12
+ "files": [
13
+ "dist"
14
+ ],
15
+ "scripts": {
16
+ "build": "yarn compile && yarn bundle",
17
+ "build:sb": "storybook build",
18
+ "bundle": "webpack --config webpack.config.js --env production",
19
+ "compile": "tsc",
20
+ "lint": "eslint --fix --cache",
21
+ "pretty": "prettier --cache --write . && sort-package-json",
22
+ "start": "storybook dev -p 6006"
23
+ },
24
+ "dependencies": {
25
+ "@mantine/hooks": "^8.3.8",
26
+ "@tabler/icons-react": "^3.31.0",
27
+ "@tanstack/react-table": "^8.21.3",
28
+ "d3-scale-chromatic": "^3.1.0",
29
+ "echarts": "^6.0.0"
30
+ },
31
+ "devDependencies": {
32
+ "@faker-js/faker": "^10.1.0",
33
+ "@mantine/core": "^8.3.1",
34
+ "@manufac/eslint-config": "^5.5.0",
35
+ "@manufac/prettier-config": "^1.7.0",
36
+ "@storybook/addon-docs": "^10.0.8",
37
+ "@storybook/addon-webpack5-compiler-swc": "^4.0.2",
38
+ "@storybook/react-webpack5": "^10.0.8",
39
+ "@types/d3-scale-chromatic": "^3.1.0",
40
+ "@types/react": "^19.2.6",
41
+ "@types/react-dom": "^19.2.3",
42
+ "@vueless/storybook-dark-mode": "^10.0.3",
43
+ "eslint": "^9.39.1",
44
+ "eslint-plugin-storybook": "^10.0.8",
45
+ "prettier": "^3.6.2",
46
+ "react": "^19.1.0",
47
+ "react-dom": "^19.1.0",
48
+ "sort-package-json": "^3.0.0",
49
+ "storybook": "^10.0.8",
50
+ "ts-loader": "^9.5.4",
51
+ "typescript": "^5.9.3",
52
+ "webpack": "^5.103.0",
53
+ "webpack-cli": "^6.0.1"
54
+ },
55
+ "peerDependencies": {
56
+ "@mantine/core": "^8.3.1",
57
+ "react": ">=19",
58
+ "react-dom": ">=19"
59
+ },
60
+ "publishConfig": {
61
+ "access": "public"
62
+ }
63
+ }