albinasoft-ui-package 1.0.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/LICENSE +21 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.modern.js +2 -0
- package/dist/index.modern.js.map +1 -0
- package/dist/index.module.js +2 -0
- package/dist/index.module.js.map +1 -0
- package/dist/index.umd.js +2 -0
- package/dist/index.umd.js.map +1 -0
- package/package.json +44 -0
- package/src/assets/css/custom/components.css +20 -0
- package/src/assets/css/custom/layout.css +89 -0
- package/src/assets/css/dark.css +2145 -0
- package/src/assets/css/main.css +26263 -0
- package/src/assets/data/countryCodes.json +1466 -0
- package/src/assets/images/albinasoft/albinasoft_logo.ico +0 -0
- package/src/assets/images/albinasoft/albinasoft_logo.png +0 -0
- package/src/assets/images/albinasoft/albinasoft_logo.svg +22 -0
- package/src/assets/images/albinasoft/albinasoft_logo_blue.svg +7 -0
- package/src/assets/images/albinasoft/albinasoft_logo_spin.gif +0 -0
- package/src/assets/images/albinasoft/albinasoft_logo_white.svg +1 -0
- package/src/assets/images/header/top-header.png +0 -0
- package/src/assets/images/header/top-image.jpg +0 -0
- package/src/components/CustomButton.tsx +73 -0
- package/src/components/CustomCheckbox.tsx +122 -0
- package/src/components/CustomDateTimePicker.tsx +127 -0
- package/src/components/CustomDivider.tsx +90 -0
- package/src/components/CustomForm.tsx +327 -0
- package/src/components/CustomInput.tsx +180 -0
- package/src/components/CustomModal.tsx +43 -0
- package/src/components/CustomRadioButton.tsx +119 -0
- package/src/components/CustomRichTextbox.tsx +123 -0
- package/src/components/CustomSelect.tsx +134 -0
- package/src/components/CustomText.tsx +199 -0
- package/src/components/CustomTextarea.tsx +131 -0
- package/src/components/CustomUploader.tsx +125 -0
- package/src/components/layout/FullScreenToggle.tsx +72 -0
- package/src/components/layout/LoginDropdown.tsx +39 -0
- package/src/components/layout/ThemeToggle.tsx +59 -0
- package/src/index.js +23 -0
package/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2024 Albinasoft
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
package/dist/index.cjs
ADDED
@@ -0,0 +1,2 @@
|
|
1
|
+
var o=function(i){var d=i.id,l=i.name,v=i.style,a=i.className,e=i.tooltip,t=i.disabled;return h(o,{id:void 0===d?void 0:d,label:i.label,name:void 0===l?void 0:l,onClick:i.onClick,style:void 0===v?void 0:v,className:void 0===a?void 0:a,tooltip:void 0===e?void 0:e,disabled:void 0!==t&&t})};exports.CustomButton=o;
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../src/index.js"],"sourcesContent":["export const CustomButton = ({\r\n id = undefined,\r\n label, // Zorunlu\r\n name = undefined,\r\n onClick, // Zorunlu\r\n style = undefined,\r\n className = undefined,\r\n tooltip = undefined,\r\n disabled = false,\r\n}) => {\r\n return (\r\n <CustomButton \r\n id={id}\r\n label={label}\r\n name={name}\r\n onClick={onClick}\r\n style={style}\r\n className={className}\r\n tooltip={tooltip}\r\n disabled={disabled}\r\n />\r\n );\r\n};"],"names":["CustomButton","_ref","_ref$id","id","_ref$name","name","_ref$style","style","_ref$className","className","_ref$tooltip","tooltip","_ref$disabled","disabled","h","_CustomButton","undefined","label","onClick"],"mappings":"AAAa,IAAAA,EAAe,SAAHC,OASnBC,EAAAD,EARFE,GACKC,EAAAH,EACLI,KACOC,EAAAL,EACPM,MAAiBC,EAAAP,EACjBQ,UAAqBC,EAAAT,EACrBU,QAAmBC,EAAAX,EACnBY,SAEA,OACIC,EAACC,EACGZ,CAAAA,QAXHa,IAAHd,OAAGc,EAASd,EAYNe,MAXHhB,EAALgB,MAYQZ,UAXJ,IAAAD,OAAGY,EAASZ,EAYRc,QAXDjB,EAAPiB,QAYQX,WAXH,IAAAD,OAAGU,EAASV,EAYTG,eAXIO,IAAHR,OAAGQ,EAASR,EAYbG,aAXEK,IAAHN,OAAGM,EAASN,EAYXG,cAXG,IAAHD,GAAQA,GAcpB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.modern.js","sources":["../src/index.js"],"sourcesContent":["export const CustomButton = ({\r\n id = undefined,\r\n label, // Zorunlu\r\n name = undefined,\r\n onClick, // Zorunlu\r\n style = undefined,\r\n className = undefined,\r\n tooltip = undefined,\r\n disabled = false,\r\n}) => {\r\n return (\r\n <CustomButton \r\n id={id}\r\n label={label}\r\n name={name}\r\n onClick={onClick}\r\n style={style}\r\n className={className}\r\n tooltip={tooltip}\r\n disabled={disabled}\r\n />\r\n );\r\n};"],"names":["CustomButton","id","label","name","onClick","style","className","tooltip","disabled","h"],"mappings":"AAAa,MAAAA,EAAeA,EACxBC,GAAAA,EACAC,QACAC,KAAAA,EACAC,UACAC,MAAAA,EACAC,UAAAA,EACAC,QAAAA,EACAC,SAAAA,GAAW,KAGPC,EAACT,EAAY,CACTC,GAAIA,EACJC,MAAOA,EACPC,KAAMA,EACNC,QAASA,EACTC,MAAOA,EACPC,UAAWA,EACXC,QAASA,EACTC,SAAUA"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
var o=function(i){var d=i.id,l=i.name,a=i.style,v=i.className,e=i.tooltip,t=i.disabled;return h(o,{id:void 0===d?void 0:d,label:i.label,name:void 0===l?void 0:l,onClick:i.onClick,style:void 0===a?void 0:a,className:void 0===v?void 0:v,tooltip:void 0===e?void 0:e,disabled:void 0!==t&&t})};export{o as CustomButton};
|
2
|
+
//# sourceMappingURL=index.module.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.module.js","sources":["../src/index.js"],"sourcesContent":["export const CustomButton = ({\r\n id = undefined,\r\n label, // Zorunlu\r\n name = undefined,\r\n onClick, // Zorunlu\r\n style = undefined,\r\n className = undefined,\r\n tooltip = undefined,\r\n disabled = false,\r\n}) => {\r\n return (\r\n <CustomButton \r\n id={id}\r\n label={label}\r\n name={name}\r\n onClick={onClick}\r\n style={style}\r\n className={className}\r\n tooltip={tooltip}\r\n disabled={disabled}\r\n />\r\n );\r\n};"],"names":["CustomButton","_ref","_ref$id","id","_ref$name","name","_ref$style","style","_ref$className","className","_ref$tooltip","tooltip","_ref$disabled","disabled","h","_CustomButton","undefined","label","onClick"],"mappings":"AAAa,IAAAA,EAAe,SAAHC,OASnBC,EAAAD,EARFE,GACKC,EAAAH,EACLI,KACOC,EAAAL,EACPM,MAAiBC,EAAAP,EACjBQ,UAAqBC,EAAAT,EACrBU,QAAmBC,EAAAX,EACnBY,SAEA,OACIC,EAACC,EACGZ,CAAAA,QAXHa,IAAHd,OAAGc,EAASd,EAYNe,MAXHhB,EAALgB,MAYQZ,UAXJ,IAAAD,OAAGY,EAASZ,EAYRc,QAXDjB,EAAPiB,QAYQX,WAXH,IAAAD,OAAGU,EAASV,EAYTG,eAXIO,IAAHR,OAAGQ,EAASR,EAYbG,aAXEK,IAAHN,OAAGM,EAASN,EAYXG,cAXG,IAAHD,GAAQA,GAcpB"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
!function(o,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports):"function"==typeof define&&define.amd?define(["exports"],i):i((o||self).albinasoftUiPackage={})}(this,function(o){var i=function(o){var e=o.id,d=o.name,t=o.style,n=o.className,l=o.tooltip,a=o.disabled;return h(i,{id:void 0===e?void 0:e,label:o.label,name:void 0===d?void 0:d,onClick:o.onClick,style:void 0===t?void 0:t,className:void 0===n?void 0:n,tooltip:void 0===l?void 0:l,disabled:void 0!==a&&a})};o.CustomButton=i});
|
2
|
+
//# sourceMappingURL=index.umd.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.umd.js","sources":["../src/index.js"],"sourcesContent":["export const CustomButton = ({\r\n id = undefined,\r\n label, // Zorunlu\r\n name = undefined,\r\n onClick, // Zorunlu\r\n style = undefined,\r\n className = undefined,\r\n tooltip = undefined,\r\n disabled = false,\r\n}) => {\r\n return (\r\n <CustomButton \r\n id={id}\r\n label={label}\r\n name={name}\r\n onClick={onClick}\r\n style={style}\r\n className={className}\r\n tooltip={tooltip}\r\n disabled={disabled}\r\n />\r\n );\r\n};"],"names":["CustomButton","_ref","_ref$id","id","_ref$name","name","_ref$style","style","_ref$className","className","_ref$tooltip","tooltip","_ref$disabled","disabled","h","_CustomButton","undefined","label","onClick"],"mappings":"6OAAa,IAAAA,EAAe,SAAHC,OASnBC,EAAAD,EARFE,GACKC,EAAAH,EACLI,KACOC,EAAAL,EACPM,MAAiBC,EAAAP,EACjBQ,UAAqBC,EAAAT,EACrBU,QAAmBC,EAAAX,EACnBY,SAEA,OACIC,EAACC,EACGZ,CAAAA,QAXHa,IAAHd,OAAGc,EAASd,EAYNe,MAXHhB,EAALgB,MAYQZ,UAXJ,IAAAD,OAAGY,EAASZ,EAYRc,QAXDjB,EAAPiB,QAYQX,WAXH,IAAAD,OAAGU,EAASV,EAYTG,eAXIO,IAAHR,OAAGQ,EAASR,EAYbG,aAXEK,IAAHN,OAAGM,EAASN,EAYXG,cAXG,IAAHD,GAAQA,GAcpB"}
|
package/package.json
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
{
|
2
|
+
"name": "albinasoft-ui-package",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"type": "module",
|
5
|
+
"source": "src/index.js",
|
6
|
+
"main": "dist/index.js",
|
7
|
+
"module": "dist/index.module.js",
|
8
|
+
"unpkg": "dist/index.umd.js",
|
9
|
+
"scripts": {
|
10
|
+
"build": "microbundle",
|
11
|
+
"dev": "microbundle watch"
|
12
|
+
},
|
13
|
+
"devDependencies": {
|
14
|
+
"microbundle": "^0.15.1"
|
15
|
+
},
|
16
|
+
"repository": {
|
17
|
+
"type": "git",
|
18
|
+
"url": "git+https://github.com/Albinasoft/albinasoft-ui-package.git"
|
19
|
+
},
|
20
|
+
"dependencies": {
|
21
|
+
"@testing-library/jest-dom": "^5.17.0",
|
22
|
+
"@testing-library/react": "^13.4.0",
|
23
|
+
"@testing-library/user-event": "^13.5.0",
|
24
|
+
"@types/jest": "^27.5.2",
|
25
|
+
"@types/node": "^16.18.119",
|
26
|
+
"@types/react": "^18.3.12",
|
27
|
+
"@types/react-dom": "^18.3.1",
|
28
|
+
"downshift": "^9.0.8",
|
29
|
+
"react": "^18.3.1",
|
30
|
+
"react-bootstrap": "^2.10.5",
|
31
|
+
"react-datepicker": "^7.5.0",
|
32
|
+
"react-dom": "^18.3.1",
|
33
|
+
"react-helmet-async": "^2.0.5",
|
34
|
+
"react-icons": "^5.3.0",
|
35
|
+
"react-multi-select-component": "^4.3.4",
|
36
|
+
"react-quill": "github:lassespilling/react-quill-2024#package",
|
37
|
+
"react-router-dom": "^6.28.0",
|
38
|
+
"react-scripts": "5.0.1",
|
39
|
+
"react-select": "^5.8.3",
|
40
|
+
"react-toastify": "^10.0.6",
|
41
|
+
"typescript": "^4.9.5",
|
42
|
+
"web-vitals": "^2.1.4"
|
43
|
+
}
|
44
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/* .modal-position-middleCenter {
|
2
|
+
display: flex;
|
3
|
+
justify-content: center;
|
4
|
+
align-items: center;
|
5
|
+
height: 100%;
|
6
|
+
}
|
7
|
+
|
8
|
+
.modal-position-topCenter {
|
9
|
+
display: flex;
|
10
|
+
justify-content: center;
|
11
|
+
align-items: flex-start;
|
12
|
+
height: 100%;
|
13
|
+
} */
|
14
|
+
|
15
|
+
.form-actions {
|
16
|
+
display: flex;
|
17
|
+
justify-content: flex-end;
|
18
|
+
gap: 10px;
|
19
|
+
}
|
20
|
+
|
@@ -0,0 +1,89 @@
|
|
1
|
+
/* Varsayılan genişlik (desktop) */
|
2
|
+
#responsive-brand {
|
3
|
+
width: 50%;
|
4
|
+
}
|
5
|
+
|
6
|
+
/* Tablet (768px ve altı için) */
|
7
|
+
@media (max-width: 768px) {
|
8
|
+
#responsive-brand {
|
9
|
+
width: 40%;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
/* Mobile L (426px ve altı için) */
|
14
|
+
@media (max-width: 426px) {
|
15
|
+
#responsive-brand {
|
16
|
+
width: 35%;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
/* Mobile M (376px ve altı için) */
|
21
|
+
@media (max-width: 376px) {
|
22
|
+
#responsive-brand {
|
23
|
+
width: 25%;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
/* Mobile S (331px ve altı için) */
|
28
|
+
@media (max-width: 331px) {
|
29
|
+
#responsive-brand {
|
30
|
+
width: 15%;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
/* Mobile XS (301px ve altı için) */
|
35
|
+
@media (max-width: 301px) {
|
36
|
+
#responsive-brand {
|
37
|
+
width: 0%;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
.loader.simple-loader {
|
42
|
+
background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dark background */
|
43
|
+
height: 100%;
|
44
|
+
width: 100%;
|
45
|
+
position: fixed;
|
46
|
+
display: flex;
|
47
|
+
align-items: center;
|
48
|
+
justify-content: center;
|
49
|
+
right: 0px;
|
50
|
+
z-index: 1250;
|
51
|
+
overflow: hidden !important;
|
52
|
+
|
53
|
+
.loader-body {
|
54
|
+
background: url('../../images/albinasoft/albinasoft_logo_blue.svg') no-repeat center center;
|
55
|
+
background-size: 10%;
|
56
|
+
width: 100%;
|
57
|
+
height: 100%;
|
58
|
+
position: relative;
|
59
|
+
animation: spin 2s linear infinite; /* Add rotation animation */
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
@keyframes spin {
|
64
|
+
from {
|
65
|
+
transform: rotate(0deg);
|
66
|
+
}
|
67
|
+
to {
|
68
|
+
transform: rotate(360deg);
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
.loading-icon {
|
73
|
+
display: inline-block;
|
74
|
+
width: 20px; /* Adjust size to fit button */
|
75
|
+
height: 20px;
|
76
|
+
background: url('../../images/albinasoft/albinasoft_logo_white.svg') no-repeat center center;
|
77
|
+
background-size: contain;
|
78
|
+
animation: spin 1s linear infinite;
|
79
|
+
}
|
80
|
+
|
81
|
+
@keyframes spin {
|
82
|
+
from {
|
83
|
+
transform: rotate(0deg);
|
84
|
+
}
|
85
|
+
to {
|
86
|
+
transform: rotate(360deg);
|
87
|
+
}
|
88
|
+
}
|
89
|
+
|