g-zenith 0.3.0 → 0.3.3
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.css +84 -84
- package/dist/index.css.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/index.css
CHANGED
|
@@ -1,87 +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
|
-
}
|
|
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
|
+
}
|
|
56
13
|
|
|
57
|
-
.
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
border:
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
border-radius:
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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
86
|
|
|
87
87
|
/*# sourceMappingURL=index.css.map */
|
package/dist/index.css.map
CHANGED
|
@@ -1 +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 {\
|
|
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 {\n width: 20rem;\n height: 3rem;\n padding: 0.2rem 0 0 0.5rem;\n font-size: 1rem;\n border-radius: 0.3rem;\n outline: none;\n border: 1px solid gray;\n}\n\n.md {\n width: 15rem;\n height: 2.5rem;\n padding: 0.2rem 0 0 0.5rem;\n font-size: 0.9rem;\n border-radius: 0.3rem;\n outline: none;\n border: 1px solid gray;\n}\n\n.sm {\n width: 10rem;\n height: 2rem;\n padding: 0.2rem 0 0 0.5rem;\n font-size: 0.8rem;\n border-radius: 0.3rem;\n outline: none;\n border: 1px solid gray;\n}\n"]}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/components/Button/Button.tsx","../src/components/Input/Input.tsx"],"sourcesContent":["import \"./style.css\";\
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/components/Button/Button.tsx","../src/components/Input/Input.tsx"],"sourcesContent":["import \"./style.css\";\n\nimport React, { ButtonHTMLAttributes } from \"react\";\n\nexport interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {\n variant?: \"primary\" | \"danger\" | \"warning\" | \"dark\" | \"light\" | \"success\";\n size?: \"sm\" | \"md\" | \"lg\";\n}\n\nconst Button: React.FC<ButtonProps> = ({\n variant = \"primary\",\n size = \"sm\",\n children,\n ...props\n}: ButtonProps) => {\n const className = `button ${variant} ${size} ${props.className}`.trim();\n return (\n <div>\n <button type=\"button\" className={className} {...props}>\n {children}\n </button>\n </div>\n );\n};\n\nexport default Button;\n","import \"./style.css\";\n\nimport React, { InputHTMLAttributes } from \"react\";\n\nexport interface InputProps extends Omit<\n InputHTMLAttributes<HTMLInputElement>,\n \"size\"\n> {\n size?: \"sm\" | \"md\" | \"lg\";\n}\n\nconst Input: React.FC<InputProps> = ({\n size = \"sm\",\n children,\n ...props\n}: InputProps) => {\n const className = `input ${size} ${props.className}`.trim();\n return (\n <div>\n <input type=\"input\" className={className} {...props} />\n </div>\n );\n};\n\nexport default Input;\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.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../src/components/Button/Button.tsx","../src/components/Input/Input.tsx"],"sourcesContent":["import \"./style.css\";\
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../src/components/Button/Button.tsx","../src/components/Input/Input.tsx"],"sourcesContent":["import \"./style.css\";\n\nimport React, { ButtonHTMLAttributes } from \"react\";\n\nexport interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {\n variant?: \"primary\" | \"danger\" | \"warning\" | \"dark\" | \"light\" | \"success\";\n size?: \"sm\" | \"md\" | \"lg\";\n}\n\nconst Button: React.FC<ButtonProps> = ({\n variant = \"primary\",\n size = \"sm\",\n children,\n ...props\n}: ButtonProps) => {\n const className = `button ${variant} ${size} ${props.className}`.trim();\n return (\n <div>\n <button type=\"button\" className={className} {...props}>\n {children}\n </button>\n </div>\n );\n};\n\nexport default Button;\n","import \"./style.css\";\n\nimport React, { InputHTMLAttributes } from \"react\";\n\nexport interface InputProps extends Omit<\n InputHTMLAttributes<HTMLInputElement>,\n \"size\"\n> {\n size?: \"sm\" | \"md\" | \"lg\";\n}\n\nconst Input: React.FC<InputProps> = ({\n size = \"sm\",\n children,\n ...props\n}: InputProps) => {\n const className = `input ${size} ${props.className}`.trim();\n return (\n <div>\n <input type=\"input\" className={className} {...props} />\n </div>\n );\n};\n\nexport default Input;\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,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "g-zenith",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.3.3",
|
|
4
|
+
"description": "A simple react UI library",
|
|
5
|
+
"author": "Giorgi Gogua",
|
|
5
6
|
"source": "src/index.ts",
|
|
6
7
|
"main": "./dist/index.js",
|
|
7
8
|
"module": "./dist/index.mjs",
|