infinity-forge 3.8.8 → 3.8.9
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/infinity-forge.css +0 -3
- package/dist/test/index.js +41 -1
- package/dist/test/index.js.map +1 -1
- package/dist/ui/components/form/index.d.ts +1 -0
- package/dist/ui/components/form/index.js +1 -0
- package/dist/ui/components/form/index.js.map +1 -1
- package/dist/ui/components/form/input-color/index.d.ts +2 -0
- package/dist/ui/components/form/input-color/index.js +35 -0
- package/dist/ui/components/form/input-color/index.js.map +1 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/Alpha/Alpha.d.ts +5 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/Alpha/Alpha.js +45 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/Alpha/Alpha.js.map +1 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/Alpha/Alpha.style.d.ts +6 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/Alpha/Alpha.style.js +52 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/Alpha/Alpha.style.js.map +1 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorList/ColorList.d.ts +10 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorList/ColorList.js +45 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorList/ColorList.js.map +1 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorList/ColorList.style.d.ts +8 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorList/ColorList.style.js +64 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorList/ColorList.style.js.map +1 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorPicker/ColorPicker.d.ts +13 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorPicker/ColorPicker.js +109 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorPicker/ColorPicker.js.map +1 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorPicker/ColorPicker.style.d.ts +9 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorPicker/ColorPicker.style.js +58 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorPicker/ColorPicker.style.js.map +1 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorPicker/helper.d.ts +3 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorPicker/helper.js +55 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorPicker/helper.js.map +1 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/Hue/Hue.d.ts +7 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/Hue/Hue.js +45 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/Hue/Hue.js.map +1 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/Hue/Hue.style.d.ts +4 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/Hue/Hue.style.js +30 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/Hue/Hue.style.js.map +1 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/Input/Input.d.ts +16 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/Input/Input.js +53 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/Input/Input.js.map +1 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/Input/Input.style.d.ts +5 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/Input/Input.style.js +38 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/Input/Input.style.js.map +1 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/PresetList/PresetList.d.ts +8 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/PresetList/PresetList.js +57 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/PresetList/PresetList.js.map +1 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/Saturation/Saturation.d.ts +7 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/Saturation/Saturation.js +57 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/Saturation/Saturation.js.map +1 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/Saturation/Saturation.style.d.ts +5 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/Saturation/Saturation.style.js +35 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/components/Saturation/Saturation.style.js.map +1 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/hooks/usePosition.d.ts +13 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/hooks/usePosition.js +47 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/hooks/usePosition.js.map +1 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/index.d.ts +7 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/index.js +14 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/index.js.map +1 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/themes.d.ts +7 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/themes.js +24 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/themes.js.map +1 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/types.d.ts +39 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/types.js +3 -0
- package/dist/ui/components/form/input-color/react-input-color-lib/types.js.map +1 -0
- package/package.json +2 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ColorPicker = exports.initColor = exports.themes = void 0;
|
|
7
|
+
var ColorPicker_1 = __importDefault(require("./components/ColorPicker/ColorPicker.js"));
|
|
8
|
+
exports.ColorPicker = ColorPicker_1.default;
|
|
9
|
+
var themes_1 = __importDefault(require("./themes.js"));
|
|
10
|
+
exports.themes = themes_1.default;
|
|
11
|
+
var helper_1 = require("./components/ColorPicker/helper.js");
|
|
12
|
+
Object.defineProperty(exports, "initColor", { enumerable: true, get: function () { return helper_1.initColor; } });
|
|
13
|
+
exports.default = ColorPicker_1.default;
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ui/components/form/input-color/react-input-color-lib/index.tsx"],"names":[],"mappings":";;;;;;AAAA,qFAA+D;AAiB7D,sBAjBK,qBAAW,CAiBL;AAhBb,oDAA8B;AAc5B,iBAdK,gBAAM,CAcL;AAbR,0DAA4D;AAc1D,0FAdO,kBAAS,OAcP;AAeX,kBAAe,qBAAW,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var theme = {
|
|
4
|
+
light: {
|
|
5
|
+
background: '#fff',
|
|
6
|
+
inputBackground: '#f4f4f4',
|
|
7
|
+
color: '#262626',
|
|
8
|
+
borderColor: '#D4D4D4',
|
|
9
|
+
borderRadius: '4px',
|
|
10
|
+
boxShadow: '0px 8px 16px rgba(0, 0, 0, 0.1)',
|
|
11
|
+
width: '280px'
|
|
12
|
+
},
|
|
13
|
+
dark: {
|
|
14
|
+
background: 'rgba(40, 40, 40, 0.95)',
|
|
15
|
+
inputBackground: '#454545',
|
|
16
|
+
color: '#E3E3E3',
|
|
17
|
+
borderRadius: '4px',
|
|
18
|
+
borderColor: '#575657',
|
|
19
|
+
boxShadow: '0px 8px 16px rgba(0, 0, 0, 0.1)',
|
|
20
|
+
width: '280px'
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.default = theme;
|
|
24
|
+
//# sourceMappingURL=themes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"themes.js","sourceRoot":"","sources":["../../../../../../src/ui/components/form/input-color/react-input-color-lib/themes.ts"],"names":[],"mappings":";;AAOA,IAAM,KAAK,GAAW;IACpB,KAAK,EAAE;QACL,UAAU,EAAE,MAAM;QAClB,eAAe,EAAE,SAAS;QAC1B,KAAK,EAAE,SAAS;QAChB,WAAW,EAAE,SAAS;QACtB,YAAY,EAAE,KAAK;QACnB,SAAS,EAAE,iCAAiC;QAC5C,KAAK,EAAE,OAAO;KACf;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,wBAAwB;QACpC,eAAe,EAAE,SAAS;QAC1B,KAAK,EAAE,SAAS;QAChB,YAAY,EAAE,KAAK;QACnB,WAAW,EAAE,SAAS;QACtB,SAAS,EAAE,iCAAiC;QAC5C,KAAK,EAAE,OAAO;KACf;CACF,CAAC;AAEF,kBAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export type HslColor = {
|
|
2
|
+
h: number;
|
|
3
|
+
s: number;
|
|
4
|
+
l: number;
|
|
5
|
+
a: number;
|
|
6
|
+
};
|
|
7
|
+
export type HsvColor = {
|
|
8
|
+
h: number;
|
|
9
|
+
s: number;
|
|
10
|
+
v: number;
|
|
11
|
+
a: number;
|
|
12
|
+
};
|
|
13
|
+
export type RgbColor = {
|
|
14
|
+
r: number;
|
|
15
|
+
g: number;
|
|
16
|
+
b: number;
|
|
17
|
+
a: number;
|
|
18
|
+
};
|
|
19
|
+
export type Alpha = {
|
|
20
|
+
a: number;
|
|
21
|
+
};
|
|
22
|
+
export type Color = string | RgbColor | HslColor | HsvColor;
|
|
23
|
+
export type ColorObject = {
|
|
24
|
+
hex: string;
|
|
25
|
+
rgb: RgbColor;
|
|
26
|
+
hsl: HslColor;
|
|
27
|
+
hsv: HsvColor;
|
|
28
|
+
alpha: number;
|
|
29
|
+
};
|
|
30
|
+
export type ColorCombination = 'analogous' | 'monochromatic' | 'splitcomplement' | 'triad' | 'tetrad' | 'complement';
|
|
31
|
+
export type Theme = {
|
|
32
|
+
background?: string;
|
|
33
|
+
inputBackground?: string;
|
|
34
|
+
color?: string;
|
|
35
|
+
borderColor?: string;
|
|
36
|
+
borderRadius?: string;
|
|
37
|
+
boxShadow?: string;
|
|
38
|
+
width?: string;
|
|
39
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/ui/components/form/input-color/react-input-color-lib/types.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "infinity-forge",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.9",
|
|
4
4
|
"description": "codie Library",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"module": "./dist/index",
|
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
"sharp": "^0.33.4",
|
|
72
72
|
"styled-components": "^6.1.13",
|
|
73
73
|
"swagger-generator-codie": "^0.0.8",
|
|
74
|
+
"tinycolor2": "^1.6.0",
|
|
74
75
|
"yup": "^1.4.0",
|
|
75
76
|
"zustand": "^4.5.2"
|
|
76
77
|
}
|