giorgi-gogua-library 0.1.0 → 0.3.0
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/components/Button/Button.d.ts +8 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Input/Input.d.ts +7 -0
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/index.css +87 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +55 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +54 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +32 -14
- package/dist/index.modern.mjs +0 -2
- package/dist/index.modern.mjs.map +0 -1
- package/dist/index.umd.js +0 -2
- package/dist/index.umd.js.map +0 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "./style.css";
|
|
2
|
+
import React, { ButtonHTMLAttributes } from "react";
|
|
3
|
+
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
variant?: "primary" | "danger" | "warning" | "dark" | "light" | "success";
|
|
5
|
+
size?: "sm" | "md" | "lg";
|
|
6
|
+
}
|
|
7
|
+
declare const Button: React.FC<ButtonProps>;
|
|
8
|
+
export default Button;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "./style.css";
|
|
2
|
+
import React, { InputHTMLAttributes } from "react";
|
|
3
|
+
export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
4
|
+
size?: "sm" | "md" | "lg";
|
|
5
|
+
}
|
|
6
|
+
declare const Input: React.FC<InputProps>;
|
|
7
|
+
export default Input;
|
package/dist/index.css
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
.primary {
|
|
2
|
+
color: white;
|
|
3
|
+
background-color: rgb(46, 149, 209);
|
|
4
|
+
border: none;
|
|
5
|
+
border-radius: 5px;
|
|
6
|
+
}
|
|
7
|
+
.success {
|
|
8
|
+
color: white;
|
|
9
|
+
background-color: rgb(77, 177, 77);
|
|
10
|
+
border: none;
|
|
11
|
+
border-radius: 5px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.danger {
|
|
15
|
+
color: white;
|
|
16
|
+
background-color: red;
|
|
17
|
+
border: none;
|
|
18
|
+
border-radius: 5px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.dark {
|
|
22
|
+
color: white;
|
|
23
|
+
background-color: black;
|
|
24
|
+
border: none;
|
|
25
|
+
border-radius: 5px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.warning {
|
|
29
|
+
color: black;
|
|
30
|
+
background-color: orange;
|
|
31
|
+
border: none;
|
|
32
|
+
border-radius: 5px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.light {
|
|
36
|
+
color: black;
|
|
37
|
+
background-color: light;
|
|
38
|
+
border: none;
|
|
39
|
+
border-radius: 5px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.sm {
|
|
43
|
+
width: 5rem;
|
|
44
|
+
height: 2.5rem;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.md {
|
|
48
|
+
width: 7rem;
|
|
49
|
+
height: 3rem;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.lg {
|
|
53
|
+
width: 9rem;
|
|
54
|
+
height: 3.5rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.lg {
|
|
58
|
+
width: 20rem;
|
|
59
|
+
height: 3rem;
|
|
60
|
+
padding: 0.2rem 0 0 0.5rem;
|
|
61
|
+
font-size: 1rem;
|
|
62
|
+
border-radius: 0.3rem;
|
|
63
|
+
outline: none;
|
|
64
|
+
border: 1px solid gray;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.md {
|
|
68
|
+
width: 15rem;
|
|
69
|
+
height: 2.5rem;
|
|
70
|
+
padding: 0.2rem 0 0 0.5rem;
|
|
71
|
+
font-size: 0.9rem;
|
|
72
|
+
border-radius: 0.3rem;
|
|
73
|
+
outline: none;
|
|
74
|
+
border: 1px solid gray;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.sm {
|
|
78
|
+
width: 10rem;
|
|
79
|
+
height: 2rem;
|
|
80
|
+
padding: 0.2rem 0 0 0.5rem;
|
|
81
|
+
font-size: 0.8rem;
|
|
82
|
+
border-radius: 0.3rem;
|
|
83
|
+
outline: none;
|
|
84
|
+
border: 1px solid gray;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/*# sourceMappingURL=index.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["style.css"],"names":[],"mappings":"AAAA;EACE,YAAY;EACZ,mCAAmC;EACnC,YAAY;EACZ,kBAAkB;AACpB;AACA;EACE,YAAY;EACZ,kCAAkC;EAClC,YAAY;EACZ,kBAAkB;AACpB;;AAEA;EACE,YAAY;EACZ,qBAAqB;EACrB,YAAY;EACZ,kBAAkB;AACpB;;AAEA;EACE,YAAY;EACZ,uBAAuB;EACvB,YAAY;EACZ,kBAAkB;AACpB;;AAEA;EACE,YAAY;EACZ,wBAAwB;EACxB,YAAY;EACZ,kBAAkB;AACpB;;AAEA;EACE,YAAY;EACZ,uBAAuB;EACvB,YAAY;EACZ,kBAAkB;AACpB;;AAEA;EACE,WAAW;EACX,cAAc;AAChB;;AAEA;EACE,WAAW;EACX,YAAY;AACd;;AAEA;EACE,WAAW;EACX,cAAc;AAChB;;AAtDA;EACE,YAAY;EACZ,YAAY;EACZ,0BAA0B;EAC1B,eAAe;EACf,qBAAqB;EACrB,aAAa;EACb,sBAAsB;AACxB;;AAEA;EACE,YAAY;EACZ,cAAc;EACd,0BAA0B;EAC1B,iBAAiB;EACjB,qBAAqB;EACrB,aAAa;EACb,sBAAsB;AACxB;;AAEA;EACE,YAAY;EACZ,YAAY;EACZ,0BAA0B;EAC1B,iBAAiB;EACjB,qBAAqB;EACrB,aAAa;EACb,sBAAsB;AACxB","file":"index.css","sourcesContent":[".lg {\r\n width: 20rem;\r\n height: 3rem;\r\n padding: 0.2rem 0 0 0.5rem;\r\n font-size: 1rem;\r\n border-radius: 0.3rem;\r\n outline: none;\r\n border: 1px solid gray;\r\n}\r\n\r\n.md {\r\n width: 15rem;\r\n height: 2.5rem;\r\n padding: 0.2rem 0 0 0.5rem;\r\n font-size: 0.9rem;\r\n border-radius: 0.3rem;\r\n outline: none;\r\n border: 1px solid gray;\r\n}\r\n\r\n.sm {\r\n width: 10rem;\r\n height: 2rem;\r\n padding: 0.2rem 0 0 0.5rem;\r\n font-size: 0.8rem;\r\n border-radius: 0.3rem;\r\n outline: none;\r\n border: 1px solid gray;\r\n}\r\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export { default as Button } from "./components/Button";
|
|
2
|
+
export { default as Input } from "./components/Input";
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,57 @@
|
|
|
1
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
1
2
|
|
|
3
|
+
function _extends() {
|
|
4
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
5
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
6
|
+
var t = arguments[e];
|
|
7
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
8
|
+
}
|
|
9
|
+
return n;
|
|
10
|
+
}, _extends.apply(null, arguments);
|
|
11
|
+
}
|
|
12
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
13
|
+
if (null == r) return {};
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
16
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
17
|
+
t[n] = r[n];
|
|
18
|
+
}
|
|
19
|
+
return t;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
var _excluded$1 = ["variant", "size", "children"];
|
|
23
|
+
var Button = function Button(_ref) {
|
|
24
|
+
var _ref$variant = _ref.variant,
|
|
25
|
+
variant = _ref$variant === void 0 ? "primary" : _ref$variant,
|
|
26
|
+
_ref$size = _ref.size,
|
|
27
|
+
size = _ref$size === void 0 ? "sm" : _ref$size,
|
|
28
|
+
children = _ref.children,
|
|
29
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
30
|
+
var className = ("button " + variant + " " + size + " " + props.className).trim();
|
|
31
|
+
return jsxRuntime.jsx("div", {
|
|
32
|
+
children: jsxRuntime.jsx("button", _extends({
|
|
33
|
+
type: "button",
|
|
34
|
+
className: className
|
|
35
|
+
}, props, {
|
|
36
|
+
children: children
|
|
37
|
+
}))
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
var _excluded = ["size", "children"];
|
|
42
|
+
var Input = function Input(_ref) {
|
|
43
|
+
var _ref$size = _ref.size,
|
|
44
|
+
size = _ref$size === void 0 ? "sm" : _ref$size,
|
|
45
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
46
|
+
var className = ("input " + size + " " + props.className).trim();
|
|
47
|
+
return jsxRuntime.jsx("div", {
|
|
48
|
+
children: jsxRuntime.jsx("input", _extends({
|
|
49
|
+
type: "input",
|
|
50
|
+
className: className
|
|
51
|
+
}, props))
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
exports.Button = Button;
|
|
56
|
+
exports.Input = Input;
|
|
2
57
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/components/Button/Button.tsx","../src/components/Input/Input.tsx"],"sourcesContent":["import \"./style.css\";\r\n\r\nimport React, { ButtonHTMLAttributes } from \"react\";\r\n\r\nexport interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {\r\n variant?: \"primary\" | \"danger\" | \"warning\" | \"dark\" | \"light\" | \"success\";\r\n size?: \"sm\" | \"md\" | \"lg\";\r\n}\r\n\r\nconst Button: React.FC<ButtonProps> = ({\r\n variant = \"primary\",\r\n size = \"sm\",\r\n children,\r\n ...props\r\n}: ButtonProps) => {\r\n const className = `button ${variant} ${size} ${props.className}`.trim();\r\n return (\r\n <div>\r\n <button type=\"button\" className={className} {...props}>\r\n {children}\r\n </button>\r\n </div>\r\n );\r\n};\r\n\r\nexport default Button;\r\n","import \"./style.css\";\r\n\r\nimport React, { InputHTMLAttributes } from \"react\";\r\n\r\nexport interface InputProps extends Omit<\r\n InputHTMLAttributes<HTMLInputElement>,\r\n \"size\"\r\n> {\r\n size?: \"sm\" | \"md\" | \"lg\";\r\n}\r\n\r\nconst Input: React.FC<InputProps> = ({\r\n size = \"sm\",\r\n children,\r\n ...props\r\n}: InputProps) => {\r\n const className = `input ${size} ${props.className}`.trim();\r\n return (\r\n <div>\r\n <input type=\"input\" className={className} {...props} />\r\n </div>\r\n );\r\n};\r\n\r\nexport default Input;\r\n"],"names":["Button","_ref","_ref$variant","variant","_ref$size","size","children","props","_objectWithoutPropertiesLoose","_excluded","className","trim","_jsx","_extends","type","Input"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AASA,IAAMA,MAAM,GAA0B,SAAhCA,MAAMA,CAAAC,IAAA,EAKM;AAAA,EAAA,IAAAC,YAAA,GAAAD,IAAA,CAJhBE,OAAO;AAAPA,IAAAA,OAAO,GAAAD,YAAA,KAAG,KAAA,CAAA,GAAA,SAAS,GAAAA,YAAA;IAAAE,SAAA,GAAAH,IAAA,CACnBI,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAG,KAAA,CAAA,GAAA,IAAI,GAAAA,SAAA;IACXE,QAAQ,GAAAL,IAAA,CAARK,QAAQ;AACLC,IAAAA,KAAK,GAAAC,6BAAA,CAAAP,IAAA,EAAAQ,WAAA,CAAA,CAAA;AAER,EAAA,IAAMC,SAAS,GAAG,CAAUP,SAAAA,GAAAA,OAAO,GAAIE,GAAAA,GAAAA,IAAI,GAAIE,GAAAA,GAAAA,KAAK,CAACG,SAAS,EAAGC,IAAI,EAAE,CAAA;EACvE,OACEC,cACE,CAAA,KAAA,EAAA;AAAAN,IAAAA,QAAA,EAAAM,cAAA,CAAA,QAAA,EAAAC,QAAA,CAAA;AAAQC,MAAAA,IAAI,EAAC,QAAQ;AAACJ,MAAAA,SAAS,EAAEA,SAAAA;AAAS,KAAA,EAAMH,KAAK,EAAA;AAAAD,MAAAA,QAAA,EAClDA,QAAAA;KACM,CAAA,CAAA;AAAA,GAAA,CACL,CAAA;AAEV;;;ACZA,IAAMS,KAAK,GAAyB,SAA9BA,KAAKA,CAAAd,IAAA,EAIM;AAAA,EAAA,IAAAG,SAAA,GAAAH,IAAA,CAHfI,IAAI,CAAA;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAG,KAAA,CAAA,GAAA,IAAI,GAAAA,SAAA,CAAA;IAERG,KAAK,GAAAC,6BAAA,CAAAP,IAAA,EAAAQ,SAAA,EAAA;EAER,IAAMC,SAAS,GAAG,CAAA,QAAA,GAASL,IAAI,GAAA,GAAA,GAAIE,KAAK,CAACG,SAAS,EAAGC,IAAI,EAAE,CAAA;EAC3D,OACEC,cAAA,CAAA,KAAA,EAAA;AAAAN,IAAAA,QAAA,EACEM,cAAO,CAAA,OAAA,EAAAC,QAAA,CAAA;AAAAC,MAAAA,IAAI,EAAC,OAAO;AAACJ,MAAAA,SAAS,EAAEA,SAAAA;AAAS,KAAA,EAAMH,KAAK,CAAI,CAAA;AAAA,GAAA,CACnD,CAAA;AAEV;;;;;"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,56 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
1
2
|
|
|
3
|
+
function _extends() {
|
|
4
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
5
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
6
|
+
var t = arguments[e];
|
|
7
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
8
|
+
}
|
|
9
|
+
return n;
|
|
10
|
+
}, _extends.apply(null, arguments);
|
|
11
|
+
}
|
|
12
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
13
|
+
if (null == r) return {};
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
16
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
17
|
+
t[n] = r[n];
|
|
18
|
+
}
|
|
19
|
+
return t;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
var _excluded$1 = ["variant", "size", "children"];
|
|
23
|
+
var Button = function Button(_ref) {
|
|
24
|
+
var _ref$variant = _ref.variant,
|
|
25
|
+
variant = _ref$variant === void 0 ? "primary" : _ref$variant,
|
|
26
|
+
_ref$size = _ref.size,
|
|
27
|
+
size = _ref$size === void 0 ? "sm" : _ref$size,
|
|
28
|
+
children = _ref.children,
|
|
29
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
30
|
+
var className = ("button " + variant + " " + size + " " + props.className).trim();
|
|
31
|
+
return jsx("div", {
|
|
32
|
+
children: jsx("button", _extends({
|
|
33
|
+
type: "button",
|
|
34
|
+
className: className
|
|
35
|
+
}, props, {
|
|
36
|
+
children: children
|
|
37
|
+
}))
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
var _excluded = ["size", "children"];
|
|
42
|
+
var Input = function Input(_ref) {
|
|
43
|
+
var _ref$size = _ref.size,
|
|
44
|
+
size = _ref$size === void 0 ? "sm" : _ref$size,
|
|
45
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
46
|
+
var className = ("input " + size + " " + props.className).trim();
|
|
47
|
+
return jsx("div", {
|
|
48
|
+
children: jsx("input", _extends({
|
|
49
|
+
type: "input",
|
|
50
|
+
className: className
|
|
51
|
+
}, props))
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export { Button, Input };
|
|
2
56
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../src/components/Button/Button.tsx","../src/components/Input/Input.tsx"],"sourcesContent":["import \"./style.css\";\r\n\r\nimport React, { ButtonHTMLAttributes } from \"react\";\r\n\r\nexport interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {\r\n variant?: \"primary\" | \"danger\" | \"warning\" | \"dark\" | \"light\" | \"success\";\r\n size?: \"sm\" | \"md\" | \"lg\";\r\n}\r\n\r\nconst Button: React.FC<ButtonProps> = ({\r\n variant = \"primary\",\r\n size = \"sm\",\r\n children,\r\n ...props\r\n}: ButtonProps) => {\r\n const className = `button ${variant} ${size} ${props.className}`.trim();\r\n return (\r\n <div>\r\n <button type=\"button\" className={className} {...props}>\r\n {children}\r\n </button>\r\n </div>\r\n );\r\n};\r\n\r\nexport default Button;\r\n","import \"./style.css\";\r\n\r\nimport React, { InputHTMLAttributes } from \"react\";\r\n\r\nexport interface InputProps extends Omit<\r\n InputHTMLAttributes<HTMLInputElement>,\r\n \"size\"\r\n> {\r\n size?: \"sm\" | \"md\" | \"lg\";\r\n}\r\n\r\nconst Input: React.FC<InputProps> = ({\r\n size = \"sm\",\r\n children,\r\n ...props\r\n}: InputProps) => {\r\n const className = `input ${size} ${props.className}`.trim();\r\n return (\r\n <div>\r\n <input type=\"input\" className={className} {...props} />\r\n </div>\r\n );\r\n};\r\n\r\nexport default Input;\r\n"],"names":["Button","_ref","_ref$variant","variant","_ref$size","size","children","props","_objectWithoutPropertiesLoose","_excluded","className","trim","_jsx","_extends","type","Input"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AASA,IAAMA,MAAM,GAA0B,SAAhCA,MAAMA,CAAAC,IAAA,EAKM;AAAA,EAAA,IAAAC,YAAA,GAAAD,IAAA,CAJhBE,OAAO;AAAPA,IAAAA,OAAO,GAAAD,YAAA,KAAG,KAAA,CAAA,GAAA,SAAS,GAAAA,YAAA;IAAAE,SAAA,GAAAH,IAAA,CACnBI,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAG,KAAA,CAAA,GAAA,IAAI,GAAAA,SAAA;IACXE,QAAQ,GAAAL,IAAA,CAARK,QAAQ;AACLC,IAAAA,KAAK,GAAAC,6BAAA,CAAAP,IAAA,EAAAQ,WAAA,CAAA,CAAA;AAER,EAAA,IAAMC,SAAS,GAAG,CAAUP,SAAAA,GAAAA,OAAO,GAAIE,GAAAA,GAAAA,IAAI,GAAIE,GAAAA,GAAAA,KAAK,CAACG,SAAS,EAAGC,IAAI,EAAE,CAAA;EACvE,OACEC,GACE,CAAA,KAAA,EAAA;AAAAN,IAAAA,QAAA,EAAAM,GAAA,CAAA,QAAA,EAAAC,QAAA,CAAA;AAAQC,MAAAA,IAAI,EAAC,QAAQ;AAACJ,MAAAA,SAAS,EAAEA,SAAAA;AAAS,KAAA,EAAMH,KAAK,EAAA;AAAAD,MAAAA,QAAA,EAClDA,QAAAA;KACM,CAAA,CAAA;AAAA,GAAA,CACL,CAAA;AAEV;;;ACZA,IAAMS,KAAK,GAAyB,SAA9BA,KAAKA,CAAAd,IAAA,EAIM;AAAA,EAAA,IAAAG,SAAA,GAAAH,IAAA,CAHfI,IAAI,CAAA;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAG,KAAA,CAAA,GAAA,IAAI,GAAAA,SAAA,CAAA;IAERG,KAAK,GAAAC,6BAAA,CAAAP,IAAA,EAAAQ,SAAA,EAAA;EAER,IAAMC,SAAS,GAAG,CAAA,QAAA,GAASL,IAAI,GAAA,GAAA,GAAIE,KAAK,CAACG,SAAS,EAAGC,IAAI,EAAE,CAAA;EAC3D,OACEC,GAAA,CAAA,KAAA,EAAA;AAAAN,IAAAA,QAAA,EACEM,GAAO,CAAA,OAAA,EAAAC,QAAA,CAAA;AAAAC,MAAAA,IAAI,EAAC,OAAO;AAACJ,MAAAA,SAAS,EAAEA,SAAAA;AAAS,KAAA,EAAMH,KAAK,CAAI,CAAA;AAAA,GAAA,CACnD,CAAA;AAEV;;;;"}
|
package/package.json
CHANGED
|
@@ -1,28 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "giorgi-gogua-library",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Professional React TypeScript library",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"module": "dist/index.mjs",
|
|
8
|
-
"types": "dist/index.d.ts",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.mjs",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"style": "./dist/index.css",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.mjs",
|
|
14
|
+
"require": "./dist/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./dist/index.css": "./dist/index.css"
|
|
17
|
+
},
|
|
9
18
|
"files": [
|
|
10
19
|
"dist"
|
|
11
20
|
],
|
|
12
21
|
"scripts": {
|
|
13
|
-
"
|
|
14
|
-
"
|
|
22
|
+
"clean": "rimraf dist",
|
|
23
|
+
"prebuild": "npm run clean",
|
|
24
|
+
"build": "microbundle --jsx-import-source react --no-compress --format modern,esm,cjs --css-bundle index.css",
|
|
25
|
+
"dev": "microbundle watch --jsx-import-source react --format modern,esm,cjs"
|
|
15
26
|
},
|
|
16
27
|
"peerDependencies": {
|
|
17
|
-
"react": "
|
|
18
|
-
"react-dom": "
|
|
28
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
29
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
19
30
|
},
|
|
20
31
|
"devDependencies": {
|
|
21
|
-
"react": "^19.
|
|
22
|
-
"react-dom": "^19.
|
|
23
|
-
"@types/react": "^19.2.9",
|
|
24
|
-
"@types/react-dom": "^19.2.3",
|
|
32
|
+
"@types/react": "^19.0.0",
|
|
33
|
+
"@types/react-dom": "^19.0.0",
|
|
25
34
|
"microbundle": "^0.15.1",
|
|
26
|
-
"
|
|
35
|
+
"react": "^19.0.0",
|
|
36
|
+
"react-dom": "^19.0.0",
|
|
37
|
+
"rimraf": "^5.0.10",
|
|
38
|
+
"typescript": "^5.7.0"
|
|
39
|
+
},
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public"
|
|
42
|
+
},
|
|
43
|
+
"engines": {
|
|
44
|
+
"node": ">=16"
|
|
27
45
|
}
|
|
28
46
|
}
|
package/dist/index.modern.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.modern.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.umd.js
DELETED
package/dist/index.umd.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|