infinity-forge 3.8.8 → 3.9.1

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 (66) hide show
  1. package/dist/infinity-forge.css +0 -3
  2. package/dist/test/index.js +41 -1
  3. package/dist/test/index.js.map +1 -1
  4. package/dist/ui/components/form/index.d.ts +1 -0
  5. package/dist/ui/components/form/index.js +1 -0
  6. package/dist/ui/components/form/index.js.map +1 -1
  7. package/dist/ui/components/form/input-color/index.d.ts +2 -0
  8. package/dist/ui/components/form/input-color/index.js +35 -0
  9. package/dist/ui/components/form/input-color/index.js.map +1 -0
  10. package/dist/ui/components/form/input-color/react-input-color-lib/components/Alpha/Alpha.d.ts +5 -0
  11. package/dist/ui/components/form/input-color/react-input-color-lib/components/Alpha/Alpha.js +45 -0
  12. package/dist/ui/components/form/input-color/react-input-color-lib/components/Alpha/Alpha.js.map +1 -0
  13. package/dist/ui/components/form/input-color/react-input-color-lib/components/Alpha/Alpha.style.d.ts +6 -0
  14. package/dist/ui/components/form/input-color/react-input-color-lib/components/Alpha/Alpha.style.js +52 -0
  15. package/dist/ui/components/form/input-color/react-input-color-lib/components/Alpha/Alpha.style.js.map +1 -0
  16. package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorList/ColorList.d.ts +10 -0
  17. package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorList/ColorList.js +45 -0
  18. package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorList/ColorList.js.map +1 -0
  19. package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorList/ColorList.style.d.ts +8 -0
  20. package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorList/ColorList.style.js +64 -0
  21. package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorList/ColorList.style.js.map +1 -0
  22. package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorPicker/ColorPicker.d.ts +13 -0
  23. package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorPicker/ColorPicker.js +109 -0
  24. package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorPicker/ColorPicker.js.map +1 -0
  25. package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorPicker/ColorPicker.style.d.ts +9 -0
  26. package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorPicker/ColorPicker.style.js +58 -0
  27. package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorPicker/ColorPicker.style.js.map +1 -0
  28. package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorPicker/helper.d.ts +3 -0
  29. package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorPicker/helper.js +55 -0
  30. package/dist/ui/components/form/input-color/react-input-color-lib/components/ColorPicker/helper.js.map +1 -0
  31. package/dist/ui/components/form/input-color/react-input-color-lib/components/Hue/Hue.d.ts +7 -0
  32. package/dist/ui/components/form/input-color/react-input-color-lib/components/Hue/Hue.js +45 -0
  33. package/dist/ui/components/form/input-color/react-input-color-lib/components/Hue/Hue.js.map +1 -0
  34. package/dist/ui/components/form/input-color/react-input-color-lib/components/Hue/Hue.style.d.ts +4 -0
  35. package/dist/ui/components/form/input-color/react-input-color-lib/components/Hue/Hue.style.js +30 -0
  36. package/dist/ui/components/form/input-color/react-input-color-lib/components/Hue/Hue.style.js.map +1 -0
  37. package/dist/ui/components/form/input-color/react-input-color-lib/components/Input/Input.d.ts +16 -0
  38. package/dist/ui/components/form/input-color/react-input-color-lib/components/Input/Input.js +53 -0
  39. package/dist/ui/components/form/input-color/react-input-color-lib/components/Input/Input.js.map +1 -0
  40. package/dist/ui/components/form/input-color/react-input-color-lib/components/Input/Input.style.d.ts +5 -0
  41. package/dist/ui/components/form/input-color/react-input-color-lib/components/Input/Input.style.js +38 -0
  42. package/dist/ui/components/form/input-color/react-input-color-lib/components/Input/Input.style.js.map +1 -0
  43. package/dist/ui/components/form/input-color/react-input-color-lib/components/PresetList/PresetList.d.ts +8 -0
  44. package/dist/ui/components/form/input-color/react-input-color-lib/components/PresetList/PresetList.js +57 -0
  45. package/dist/ui/components/form/input-color/react-input-color-lib/components/PresetList/PresetList.js.map +1 -0
  46. package/dist/ui/components/form/input-color/react-input-color-lib/components/Saturation/Saturation.d.ts +7 -0
  47. package/dist/ui/components/form/input-color/react-input-color-lib/components/Saturation/Saturation.js +57 -0
  48. package/dist/ui/components/form/input-color/react-input-color-lib/components/Saturation/Saturation.js.map +1 -0
  49. package/dist/ui/components/form/input-color/react-input-color-lib/components/Saturation/Saturation.style.d.ts +5 -0
  50. package/dist/ui/components/form/input-color/react-input-color-lib/components/Saturation/Saturation.style.js +35 -0
  51. package/dist/ui/components/form/input-color/react-input-color-lib/components/Saturation/Saturation.style.js.map +1 -0
  52. package/dist/ui/components/form/input-color/react-input-color-lib/hooks/usePosition.d.ts +13 -0
  53. package/dist/ui/components/form/input-color/react-input-color-lib/hooks/usePosition.js +47 -0
  54. package/dist/ui/components/form/input-color/react-input-color-lib/hooks/usePosition.js.map +1 -0
  55. package/dist/ui/components/form/input-color/react-input-color-lib/index.d.ts +7 -0
  56. package/dist/ui/components/form/input-color/react-input-color-lib/index.js +14 -0
  57. package/dist/ui/components/form/input-color/react-input-color-lib/index.js.map +1 -0
  58. package/dist/ui/components/form/input-color/react-input-color-lib/themes.d.ts +7 -0
  59. package/dist/ui/components/form/input-color/react-input-color-lib/themes.js +24 -0
  60. package/dist/ui/components/form/input-color/react-input-color-lib/themes.js.map +1 -0
  61. package/dist/ui/components/form/input-color/react-input-color-lib/types.d.ts +39 -0
  62. package/dist/ui/components/form/input-color/react-input-color-lib/types.js +3 -0
  63. package/dist/ui/components/form/input-color/react-input-color-lib/types.js.map +1 -0
  64. package/dist/ui/components/form/input-seo/index.js +0 -3
  65. package/dist/ui/components/form/input-seo/index.js.map +1 -1
  66. 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,7 @@
1
+ import { Theme } from './types.js';
2
+ type Themes = {
3
+ light: Theme;
4
+ dark: Theme;
5
+ };
6
+ declare const theme: Themes;
7
+ export default theme;
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -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":""}
@@ -25,14 +25,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.InputSeo = void 0;
27
27
  var jsx_runtime_1 = require("react/jsx-runtime");
28
- var formik_1 = require("formik");
29
28
  var input_meta_image_1 = require("./input-meta-image/index.js");
30
29
  var ui_1 = require("../../../../ui/index.js");
31
30
  var S = __importStar(require("./styles.js"));
32
31
  function InputSeo(props) {
33
- var values = (0, formik_1.useFormikContext)().values;
34
32
  var groupName = props.group ? props.group + '.' : '';
35
- // const valuesPreview = props.group ? getIn(values, props.group) : values
36
33
  return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'InputSeo', children: (0, jsx_runtime_1.jsxs)(S.InputSeo, { className: 'input_seo', children: [(0, jsx_runtime_1.jsxs)("h3", { children: [(0, jsx_runtime_1.jsxs)("svg", { width: '20', height: '20', viewBox: '0 0 20 20', fill: 'none', xmlns: 'http://www.w3.org/2000/svg', children: [(0, jsx_runtime_1.jsx)("g", { clipPath: 'url(#clip0_4_20)', children: (0, jsx_runtime_1.jsx)("path", { d: 'M19.2187 4.63546C19.6502 4.63546 20 4.28573 20 3.85421V0.781249C20 0.355987 19.654 0 19.2187 0H16.1458C15.7144 0 15.3645 0.349731 15.3645 0.781249C15.3645 1.21277 15.7144 1.5625 16.1458 1.5625H17.3326L15.3517 3.54339C13.788 1.36383 11.2785 0 8.46358 0C3.78585 0 0 3.78539 0 8.46358C0 13.141 3.78539 16.9272 8.46358 16.9272C10.4619 16.9272 12.354 16.2388 13.8704 14.9753L18.6663 19.7712C18.9714 20.0763 19.4661 20.0763 19.7711 19.7712C20.0763 19.4661 20.0763 18.9714 19.7711 18.6663L14.9753 13.8704C17.1318 11.2825 17.4624 7.77678 16.1636 4.94124L18.4375 2.66738V3.85406C18.4375 4.28558 18.7872 4.63546 19.2187 4.63546ZM8.46358 1.5625C10.8684 1.5625 12.9895 2.79922 14.2253 4.66979L9.99998 8.89509L7.47954 6.37465C7.17436 6.06963 6.67983 6.06963 6.37465 6.37465L1.96457 10.7847C0.36087 6.30797 3.69598 1.5625 8.46358 1.5625ZM8.46358 15.3645C6.05864 15.3645 3.93768 14.1278 2.70187 12.2572L6.92717 8.03191L9.44761 10.5523C9.75264 10.8575 10.2473 10.8575 10.5523 10.5523L14.9624 6.14226C16.5663 10.619 13.2312 15.3645 8.46358 15.3645Z', fill: '#2A2A2A' }) }), (0, jsx_runtime_1.jsx)("defs", { children: (0, jsx_runtime_1.jsx)("clipPath", { id: 'clip0_4_20', children: (0, jsx_runtime_1.jsx)("rect", { width: '20', height: '20', fill: 'white' }) }) })] }), "SEO"] }), (0, jsx_runtime_1.jsxs)("div", { className: 'content', children: [!props.disableMetaImage && (0, jsx_runtime_1.jsx)(input_meta_image_1.InputMetaImage, { name: "".concat(groupName, "metaImage") }), (0, jsx_runtime_1.jsx)(ui_1.Input, { name: "".concat(groupName, "metaTitle"), label: 'SEO Title', className: 'font-16', maxLength: 60 }), (0, jsx_runtime_1.jsx)(ui_1.Textarea, { rows: 2, name: "".concat(groupName, "metaDescription"), label: 'Meta Description', maxLength: 160 })] })] }) }));
37
34
  }
38
35
  exports.InputSeo = InputSeo;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/input-seo/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAgD;AAEhD,uDAAmD;AACnD,2BAAyD;AAEzD,0CAA6B;AAO7B,SAAgB,QAAQ,CAAC,KAAoB;IACnC,IAAA,MAAM,GAAK,IAAA,yBAAgB,GAAE,OAAvB,CAAuB;IAErC,IAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,CAAA;IAC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AAC,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,CAAA;IAEtD,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,UAAU,YACpB,wBAAC,CAAC,CAAC,QAAQ,IAAC,SAAS,EAAC,WAAW,aAC/B,2CACE,iCAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,4BAA4B,aAC5F,8BAAG,QAAQ,EAAC,kBAAkB,YAC5B,iCACE,CAAC,EAAC,ygCAAygC,EAC3gC,IAAI,EAAC,SAAS,GACd,GACA,EACJ,2CACE,qCAAU,EAAE,EAAC,YAAY,YACvB,iCAAM,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,IAAI,EAAC,OAAO,GAAG,GACnC,GACN,IACH,WAEH,EAEL,iCAAK,SAAS,EAAC,SAAS,aACrB,CAAC,KAAK,CAAC,gBAAgB,IAAI,uBAAC,iCAAc,IAAC,IAAI,EAAE,UAAG,SAAS,cAAW,GAAI,EAE7E,uBAAC,UAAK,IAAC,IAAI,EAAE,UAAG,SAAS,cAAW,EAAE,KAAK,EAAC,WAAW,EAAC,SAAS,EAAC,SAAS,EAAC,SAAS,EAAE,EAAE,GAAI,EAE7F,uBAAC,aAAQ,IAAC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,UAAG,SAAS,oBAAiB,EAAE,KAAK,EAAC,kBAAkB,EAAC,SAAS,EAAE,GAAG,GAAI,IAC/F,IACK,GACP,CACT,CAAA;AACH,CAAC;AAlCD,4BAkCC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "infinity-forge",
3
- "version": "3.8.8",
3
+ "version": "3.9.1",
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
  }