contentoh-components-library 21.2.101 → 21.2.103
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/atoms/GeneralButton/index.js +6 -2
- package/dist/components/atoms/Select/VersionSelect.js +2 -1
- package/dist/components/organisms/CreateVersion/RenderChilds.js +11 -11
- package/dist/components/organisms/CreateVersion/index.js +30 -89
- package/dist/components/organisms/VersionSelector/index.js +28 -2
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +69 -147
- package/dist/components/pages/ProviderProductEdition/index.js +0 -20
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +77 -67
- package/dist/components/pages/RetailerProductEdition/index.js +3 -22
- package/package.json +1 -1
- package/src/components/atoms/GeneralButton/index.js +4 -1
- package/src/components/atoms/Select/VersionSelect.js +4 -2
- package/src/components/organisms/CreateVersion/RenderChilds.js +28 -34
- package/src/components/organisms/CreateVersion/index.js +16 -36
- package/src/components/organisms/VersionSelector/index.js +18 -3
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +75 -166
- package/src/components/pages/ProviderProductEdition/index.js +0 -19
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +79 -67
- package/src/components/pages/RetailerProductEdition/index.js +0 -12
- package/src/global-files/customHooks.js +2 -2
- package/dist/assets/images/chatPopup/Spinner.gif +0 -0
- package/dist/assets/images/chatPopup/close.svg +0 -3
- package/dist/assets/images/chatPopup/defaultImage.png +0 -0
- package/dist/assets/images/chatPopup/defaultProfile.png +0 -0
- package/dist/assets/images/chatPopup/doc.svg +0 -1
- package/dist/assets/images/chatPopup/document.svg +0 -1
- package/dist/assets/images/chatPopup/iconChat.svg +0 -19
- package/dist/assets/images/chatPopup/iconPlus.svg +0 -3
- package/dist/assets/images/chatPopup/pdf.svg +0 -75
- package/dist/assets/images/chatPopup/remove.svg +0 -4
- package/dist/assets/images/chatPopup/send.svg +0 -3
- package/dist/assets/images/chatPopup/svgIcon.svg +0 -109
- package/dist/assets/images/chatPopup/upload_file.svg +0 -3
- package/dist/assets/images/chatPopup/xls.svg +0 -53
- package/dist/assets/images/customSelect/starIcon.svg +0 -14
- package/dist/assets/images/defaultImages/Spinner.gif +0 -0
- package/dist/assets/images/defaultImages/notFound.svg +0 -124
- package/dist/components/atoms/ButtonFileChooser/ButtonFileChooser.stories.js +0 -72
- package/dist/components/atoms/ButtonFileChooser/index.js +0 -118
- package/dist/components/atoms/ButtonFileChooser/styles.js +0 -20
- package/dist/components/atoms/ButtonV2/ButtonV2.stories.js +0 -66
- package/dist/components/atoms/ButtonV2/index.js +0 -111
- package/dist/components/atoms/ButtonV2/styles.js +0 -53
- package/dist/components/atoms/ChatPopUp/ChatPopUp.stories.js +0 -28
- package/dist/components/atoms/ChatPopUp/index.js +0 -841
- package/dist/components/atoms/ChatPopUp/styles.js +0 -27
- package/dist/components/atoms/ChatPopUp/utils/handlersChat.js +0 -182
- package/dist/components/atoms/CustomIcon/CustomIcon.stories.js +0 -50
- package/dist/components/atoms/CustomIcon/index.js +0 -40
- package/dist/components/atoms/CustomIcon/styles.js +0 -33
- package/dist/components/atoms/IconFile/IconFile.stories.js +0 -48
- package/dist/components/atoms/IconFile/index.js +0 -249
- package/dist/components/atoms/IconFile/styles.js +0 -23
- package/dist/components/atoms/Image/Image.stories.js +0 -73
- package/dist/components/atoms/Image/index.js +0 -76
- package/dist/components/atoms/Image/styles.js +0 -43
- package/dist/components/atoms/ImageLink/ImageLink.stories.js +0 -63
- package/dist/components/atoms/ImageLink/index.js +0 -77
- package/dist/components/atoms/ImageLink/styles.js +0 -40
- package/dist/components/atoms/ImagePreview/ImagePreview.stories.js +0 -70
- package/dist/components/atoms/ImagePreview/index.js +0 -222
- package/dist/components/atoms/ImagePreview/styles.js +0 -44
- package/dist/components/atoms/InputText/InputText.stories.js +0 -60
- package/dist/components/atoms/InputText/index.js +0 -66
- package/dist/components/atoms/InputText/styles.js +0 -32
- package/dist/components/atoms/NotFound/NotFound.stories.js +0 -36
- package/dist/components/atoms/NotFound/index.js +0 -75
- package/dist/components/atoms/NotFound/styles.js +0 -20
- package/dist/components/atoms/SelectItemV2/SelectItemV2.stories.js +0 -45
- package/dist/components/atoms/SelectItemV2/index.js +0 -46
- package/dist/components/atoms/SelectItemV2/styles.js +0 -23
- package/dist/components/atoms/Tooltip/Tooltip.stories.js +0 -66
- package/dist/components/atoms/Tooltip/index.js +0 -72
- package/dist/components/atoms/Tooltip/styles.js +0 -20
- package/dist/components/molecules/ButtonDownloadFile/DownloadFile.stories.js +0 -66
- package/dist/components/molecules/ButtonDownloadFile/index.js +0 -179
- package/dist/components/molecules/ButtonDownloadFile/styles.js +0 -23
- package/dist/components/molecules/ImageTooltip/ImageTooltip.stories.js +0 -72
- package/dist/components/molecules/ImageTooltip/index.js +0 -84
- package/dist/components/molecules/ImageTooltip/styles.js +0 -33
- package/dist/components/molecules/SelectV2/SelectV2.stories.js +0 -119
- package/dist/components/molecules/SelectV2/index.js +0 -298
- package/dist/components/molecules/SelectV2/styles.js +0 -42
- package/dist/components/organisms/Chat/Chat.stories.js +0 -215
- package/dist/components/organisms/Chat/ChatLists/ChatLists.stories.js +0 -83
- package/dist/components/organisms/Chat/ChatLists/index.js +0 -160
- package/dist/components/organisms/Chat/ChatLists/styles.js +0 -29
- package/dist/components/organisms/Chat/ContainerItems/ContainerItems.stories.js +0 -176
- package/dist/components/organisms/Chat/ContainerItems/index.js +0 -569
- package/dist/components/organisms/Chat/ContainerItems/styles.js +0 -20
- package/dist/components/organisms/Chat/ContentChat/ContentChat.stories.js +0 -142
- package/dist/components/organisms/Chat/ContentChat/index.js +0 -1422
- package/dist/components/organisms/Chat/ContentChat/styles.js +0 -20
- package/dist/components/organisms/Chat/Footer/Footer.stories.js +0 -43
- package/dist/components/organisms/Chat/Footer/index.js +0 -984
- package/dist/components/organisms/Chat/Footer/styles.js +0 -32
- package/dist/components/organisms/Chat/Header/Header.stories.js +0 -96
- package/dist/components/organisms/Chat/Header/index.js +0 -84
- package/dist/components/organisms/Chat/Header/styles.js +0 -20
- package/dist/components/organisms/Chat/index.js +0 -327
- package/dist/components/organisms/Chat/styles.js +0 -29
- package/dist/components/organisms/Modal/Modal.stories.js +0 -66
- package/dist/components/organisms/Modal/index.js +0 -95
- package/dist/components/organisms/Modal/styles.js +0 -20
- package/dist/global-files/handle_http.js +0 -383
- package/dist/global-files/utils.js +0 -472
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.Slider = exports.Container = void 0;
|
|
9
|
-
|
|
10
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
-
|
|
12
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
-
|
|
14
|
-
var _variables = require("../../../global-files/variables");
|
|
15
|
-
|
|
16
|
-
var _templateObject, _templateObject2;
|
|
17
|
-
|
|
18
|
-
var Container = _styledComponents.default.button(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: 34px;\n width: 34px;\n background-color: transparent;\n border: 1px solid #f0f0f0;\n border-radius: 50px;\n padding: 10px;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n cursor: pointer;\n &:hover {\n background-color: #f0f0f0;\n }\n .icon-chat {\n margin: 0;\n width: 15px;\n height: 15px;\n }\n"])));
|
|
19
|
-
|
|
20
|
-
exports.Container = Container;
|
|
21
|
-
|
|
22
|
-
var Slider = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n -webkit-box-shadow: 0px 0px 10px -1px rgba(0, 0, 0, 0.8);\n box-shadow: 0px 0px 10px -1px rgba(0, 0, 0, 0.8);\n z-index: 200;\n width: 425px;\n height: 600px;\n border-radius: 10px;\n background: white;\n padding: 37px 16px 17px 20px;\n position: absolute;\n right: ", "%;\n top: 3%;\n transition: right 2s ease 0;\n .image {\n display: flex;\n justify-content: center;\n align-content: center;\n background-color: #f7f7f7;\n border-radius: 10px;\n #myList {\n list-style: none;\n img {\n width: 365px;\n border-radius: 10px;\n }\n }\n }\n .close {\n background-color: #e33aa9;\n border: 3px solid white;\n height: 35px;\n width: 35px;\n border-radius: 50%;\n position: absolute;\n top: -18px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n }\n .content-chat {\n height: 495px;\n max-height: 495px;\n overflow-y: auto;\n overflow-x: hidden;\n background-color: transparent;\n font-family: sans-serif;\n font-size: 12px;\n & + * {\n margin-top: 12px;\n }\n ::-webkit-scrollbar {\n width: 0;\n }\n .cargar-mas {\n border: none;\n border-radius: 10px;\n font: normal normal normal 11px/11px sans-serif;\n letter-spacing: 0.1px;\n color: #8a6caa;\n background-color: #f7f7fc;\n padding: 5px 17px;\n margin: 0 35%;\n display: flex;\n cursor: pointer;\n white-space: nowrap;\n &:hover {\n background-color: #f0f0f0;\n }\n img {\n margin-right: 7px;\n height: 13px;\n }\n }\n #myListChat {\n list-style: none;\n margin: 0;\n padding: 0;\n height: 100%;\n overflow-y: auto;\n overflow-x: hidden;\n display: flex;\n flex-direction: column-reverse;\n gap: 3px;\n .group-date {\n display: flex;\n justify-content: center;\n align-items: center;\n hr {\n width: 120px;\n border: 0.3px solid #f0f0f0;\n }\n p {\n margin: 0 10px;\n color: #b3b3b3;\n }\n }\n li {\n width: 100%;\n padding: 5px 0;\n margin: 0;\n display: flex;\n flex-direction: row-reverse;\n justify-content: flex-start;\n flex-wrap: nowrap;\n gap: 5px;\n align-items: center;\n .tooltip-userName {\n background-color: #f0f0f0;\n padding: 6px 10px;\n color: #000000;\n font-size: 11px;\n margin-bottom: 6px;\n .MuiTooltip-arrow {\n color: #f0f0f0;\n }\n }\n\n .profile {\n display: grid;\n place-items: center;\n align-self: start;\n width: 34px;\n height: 34px;\n border-radius: 50%;\n overflow: hidden;\n img {\n width: 100%;\n height: 100%;\n border-radius: inherit;\n }\n }\n .img-file {\n margin: 0 10px;\n width: 165px;\n img {\n width: 100%;\n object-fit: contain;\n border-radius: 10px;\n }\n }\n .body-message {\n margin: 0 10px;\n border-radius: 10px;\n box-sizing: border-box;\n background-color: #f0f0f0;\n padding: 10px 10px 10px 12px;\n max-width: 280px;\n p {\n color: #262626;\n margin: 0;\n padding: 0;\n }\n a {\n text-decoration: none;\n }\n div {\n cursor: pointer;\n background-color: white;\n border-radius: 10px;\n padding: 7px 10px;\n display: flex;\n align-items: center;\n img {\n height: 20px;\n width: 20px;\n margin-right: 5px;\n }\n p {\n color: #262626 !important;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n }\n }\n .date {\n display: flex;\n align-items: center;\n white-space: nowrap;\n p {\n color: #d9d9d9;\n font-size: 9px;\n }\n }\n &.own-message {\n flex-direction: row;\n justify-content: flex-start;\n .body-message {\n background-color: #8386ee;\n p {\n margin: 0;\n padding: 0;\n color: #ffffff;\n }\n }\n }\n }\n }\n }\n .input-chat {\n display: flex;\n align-items: center;\n border-radius: 17px;\n background-color: #f7f7f7;\n padding: 10px 7px 10px 15px;\n .send-message {\n background-color: transparent;\n width: 157%;\n border: none;\n font-family: sans-serif;\n font-size: 13px;\n line-height: initial;\n color: #242424;\n ::placeholder {\n font: normal normal medium 12px/14px sans-serif;\n letter-spacing: 0.6px;\n color: #b3b3b3;\n }\n :focus {\n outline: none;\n }\n & + * {\n margin-left: 10px;\n }\n }\n .upload {\n border: none;\n background: transparent;\n cursor: pointer;\n & + * {\n margin-left: 7px;\n }\n }\n .add-picture-input {\n display: none;\n }\n .send {\n width: 35.4px;\n height: 20px;\n border: none;\n background-color: #e33aa9;\n border-radius: 50%;\n display: flex;\n justify-content: center;\n cursor: pointer;\n align-items: center;\n img {\n width: 11px;\n height: 11px;\n }\n }\n }\n"])), function (_ref) {
|
|
23
|
-
var showMenu = _ref.showMenu;
|
|
24
|
-
return showMenu ? 2 : -50;
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
exports.Slider = Slider;
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.getBD = exports.createItemBD = void 0;
|
|
9
|
-
|
|
10
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
-
|
|
12
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/asyncToGenerator"));
|
|
13
|
-
|
|
14
|
-
var _axios = _interopRequireDefault(require("axios"));
|
|
15
|
-
|
|
16
|
-
var getBD = function getBD(id_article, version_article, get_type, item_date, tokenUser) {
|
|
17
|
-
return new Promise( /*#__PURE__*/function () {
|
|
18
|
-
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(response, error) {
|
|
19
|
-
var URL, respHTTPjson, body;
|
|
20
|
-
return _regenerator.default.wrap(function _callee$(_context) {
|
|
21
|
-
while (1) {
|
|
22
|
-
switch (_context.prev = _context.next) {
|
|
23
|
-
case 0:
|
|
24
|
-
_context.prev = 0;
|
|
25
|
-
URL = "https://fc069ovhuk.execute-api.us-east-1.amazonaws.com/dev/products-chat"; // endpoint
|
|
26
|
-
|
|
27
|
-
URL += "?id_article=".concat(id_article);
|
|
28
|
-
URL += "&version_article=".concat(version_article);
|
|
29
|
-
URL += "&get_type=".concat(get_type);
|
|
30
|
-
URL += "&item_date=".concat(item_date);
|
|
31
|
-
_context.next = 8;
|
|
32
|
-
return _axios.default.get(URL, {
|
|
33
|
-
headers: {
|
|
34
|
-
// AQUI COLOCAR EL TOKEN DEL USUARIO CONECTADO
|
|
35
|
-
Authorization: tokenUser
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
case 8:
|
|
40
|
-
respHTTPjson = _context.sent;
|
|
41
|
-
|
|
42
|
-
if (!(respHTTPjson.status != 200)) {
|
|
43
|
-
_context.next = 12;
|
|
44
|
-
break;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
response({
|
|
48
|
-
message: "No fue posible llevar a cabo la operacion",
|
|
49
|
-
errorDetails: respHTTPjson.statusText
|
|
50
|
-
});
|
|
51
|
-
return _context.abrupt("return");
|
|
52
|
-
|
|
53
|
-
case 12:
|
|
54
|
-
// obtener body backend
|
|
55
|
-
body = JSON.parse(respHTTPjson.data.body); //console.log( "resHTTP body:" , body );
|
|
56
|
-
// verificar si existe error desde el backend
|
|
57
|
-
|
|
58
|
-
if (!(respHTTPjson.data.statusCode != 200)) {
|
|
59
|
-
_context.next = 16;
|
|
60
|
-
break;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
response({
|
|
64
|
-
message: body.message,
|
|
65
|
-
errorDetails: body.errorDetail
|
|
66
|
-
});
|
|
67
|
-
return _context.abrupt("return");
|
|
68
|
-
|
|
69
|
-
case 16:
|
|
70
|
-
// cuando se ejecuto bien el create ... tomar un posible message
|
|
71
|
-
response({
|
|
72
|
-
body: body
|
|
73
|
-
});
|
|
74
|
-
_context.next = 22;
|
|
75
|
-
break;
|
|
76
|
-
|
|
77
|
-
case 19:
|
|
78
|
-
_context.prev = 19;
|
|
79
|
-
_context.t0 = _context["catch"](0);
|
|
80
|
-
//console.log("error catch get items chat" , err);
|
|
81
|
-
response({
|
|
82
|
-
message: "Algo salio mal al obtener los items del chat",
|
|
83
|
-
errorDetails: _context.t0.message
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
case 22:
|
|
87
|
-
case "end":
|
|
88
|
-
return _context.stop();
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}, _callee, null, [[0, 19]]);
|
|
92
|
-
}));
|
|
93
|
-
|
|
94
|
-
return function (_x, _x2) {
|
|
95
|
-
return _ref.apply(this, arguments);
|
|
96
|
-
};
|
|
97
|
-
}());
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
exports.getBD = getBD;
|
|
101
|
-
|
|
102
|
-
var createItemBD = function createItemBD(id_article, version_article, value_type, value, tokenUser) {
|
|
103
|
-
return new Promise( /*#__PURE__*/function () {
|
|
104
|
-
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(response, error) {
|
|
105
|
-
var URL, bodyData, respHTTPjson, body;
|
|
106
|
-
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
107
|
-
while (1) {
|
|
108
|
-
switch (_context2.prev = _context2.next) {
|
|
109
|
-
case 0:
|
|
110
|
-
_context2.prev = 0;
|
|
111
|
-
URL = "https://fc069ovhuk.execute-api.us-east-1.amazonaws.com/dev/products-chat";
|
|
112
|
-
bodyData = {
|
|
113
|
-
id_article: id_article,
|
|
114
|
-
version_article: version_article,
|
|
115
|
-
value_type: value_type,
|
|
116
|
-
value: value
|
|
117
|
-
};
|
|
118
|
-
_context2.next = 5;
|
|
119
|
-
return _axios.default.post(URL, bodyData, {
|
|
120
|
-
headers: {
|
|
121
|
-
Authorization: tokenUser
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
case 5:
|
|
126
|
-
respHTTPjson = _context2.sent;
|
|
127
|
-
|
|
128
|
-
if (!(respHTTPjson.status != 200)) {
|
|
129
|
-
_context2.next = 9;
|
|
130
|
-
break;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
response({
|
|
134
|
-
message: "No fue posible llevar a cabo la operacion",
|
|
135
|
-
errorDetails: respHTTPjson.statusText
|
|
136
|
-
});
|
|
137
|
-
return _context2.abrupt("return");
|
|
138
|
-
|
|
139
|
-
case 9:
|
|
140
|
-
body = JSON.parse(respHTTPjson.data.body);
|
|
141
|
-
|
|
142
|
-
if (!(respHTTPjson.data.statusCode != 200)) {
|
|
143
|
-
_context2.next = 13;
|
|
144
|
-
break;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
response({
|
|
148
|
-
message: body.message,
|
|
149
|
-
errorDetails: body.errorDetail
|
|
150
|
-
});
|
|
151
|
-
return _context2.abrupt("return");
|
|
152
|
-
|
|
153
|
-
case 13:
|
|
154
|
-
response({
|
|
155
|
-
body: true
|
|
156
|
-
});
|
|
157
|
-
_context2.next = 19;
|
|
158
|
-
break;
|
|
159
|
-
|
|
160
|
-
case 16:
|
|
161
|
-
_context2.prev = 16;
|
|
162
|
-
_context2.t0 = _context2["catch"](0);
|
|
163
|
-
response({
|
|
164
|
-
message: "Algo salio mal al agregar el item en el chat",
|
|
165
|
-
errorDetails: _context2.t0.message
|
|
166
|
-
});
|
|
167
|
-
|
|
168
|
-
case 19:
|
|
169
|
-
case "end":
|
|
170
|
-
return _context2.stop();
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}, _callee2, null, [[0, 16]]);
|
|
174
|
-
}));
|
|
175
|
-
|
|
176
|
-
return function (_x3, _x4) {
|
|
177
|
-
return _ref2.apply(this, arguments);
|
|
178
|
-
};
|
|
179
|
-
}());
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
exports.createItemBD = createItemBD;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = exports.ButtonTest = void 0;
|
|
9
|
-
|
|
10
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
-
|
|
12
|
-
var _index = require("./index");
|
|
13
|
-
|
|
14
|
-
var _freeSolidSvgIcons = require("@fortawesome/free-solid-svg-icons");
|
|
15
|
-
|
|
16
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
-
|
|
18
|
-
var _default = {
|
|
19
|
-
title: "Components/atoms/CustomIcon",
|
|
20
|
-
component: _index.CustomIcon,
|
|
21
|
-
argTypes: {
|
|
22
|
-
type: {
|
|
23
|
-
options: [undefined, "white", "whiteS2", "pink", "gray", "purple", "black"],
|
|
24
|
-
control: {
|
|
25
|
-
type: "select"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
borderType: {
|
|
29
|
-
options: [undefined, "rectangle", "circle"],
|
|
30
|
-
control: {
|
|
31
|
-
type: "select"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
exports.default = _default;
|
|
37
|
-
|
|
38
|
-
var Template = function Template(args) {
|
|
39
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.CustomIcon, (0, _objectSpread2.default)({}, args));
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
var ButtonTest = Template.bind({});
|
|
43
|
-
exports.ButtonTest = ButtonTest;
|
|
44
|
-
ButtonTest.args = {
|
|
45
|
-
type: undefined,
|
|
46
|
-
transparent: false,
|
|
47
|
-
borderType: undefined,
|
|
48
|
-
size: "20",
|
|
49
|
-
icon: _freeSolidSvgIcons.faCamera
|
|
50
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.CustomIcon = void 0;
|
|
9
|
-
|
|
10
|
-
var _styles = require("./styles");
|
|
11
|
-
|
|
12
|
-
var _reactFontawesome = require("@fortawesome/react-fontawesome");
|
|
13
|
-
|
|
14
|
-
var _react = _interopRequireDefault(require("react"));
|
|
15
|
-
|
|
16
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
-
|
|
18
|
-
var CustomIcon = function CustomIcon(props) {
|
|
19
|
-
var id = props.id,
|
|
20
|
-
key = props.key,
|
|
21
|
-
className = props.className,
|
|
22
|
-
type = props.type,
|
|
23
|
-
transparent = props.transparent,
|
|
24
|
-
size = props.size,
|
|
25
|
-
borderType = props.borderType,
|
|
26
|
-
icon = props.icon;
|
|
27
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
28
|
-
children: icon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
29
|
-
id: id,
|
|
30
|
-
className: "container-icon " + (["white", "whiteS2", "pink", "gray", "purple", "black"].includes(type) ? type : "white") + (transparent ? " transparent " : " fill ") + className,
|
|
31
|
-
borderType: borderType,
|
|
32
|
-
size: size,
|
|
33
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFontawesome.FontAwesomeIcon, {
|
|
34
|
-
icon: icon
|
|
35
|
-
})
|
|
36
|
-
}, key) : null
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
exports.CustomIcon = CustomIcon;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.Container = void 0;
|
|
9
|
-
|
|
10
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
-
|
|
12
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
-
|
|
14
|
-
var _variables = require("../../../global-files/variables");
|
|
15
|
-
|
|
16
|
-
var _templateObject;
|
|
17
|
-
|
|
18
|
-
var Container = _styledComponents.default.i(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: fit-content;\n min-width: min-content;\n cursor: default;\n display: grid;\n place-items: center;\n font-size: ", "px;\n border-radius: ", ";\n padding: ", ";\n border: ", ";\n\n // tipos de iconos fill\n &.fill {\n &.white {\n background-color: white;\n color: #e33aa9;\n border-color: #e33aa9;\n }\n &.whiteS2 {\n background-color: white;\n color: #7b7979;\n border-color: #f0f0f0;\n }\n &.pink {\n background-color: #e33aa9;\n color: white;\n border-color: #e33aa9;\n }\n &.gray {\n background-color: #e8e5e5;\n border-color: #7b7979;\n color: #7b7979;\n }\n &.purple {\n background-color: #f7f7fc;\n color: #8a6caa;\n border-color: #8a6caa;\n }\n }\n\n // tipos de iconos transparent\n &.transparent {\n &.white {\n color: white;\n border-color: #e33aa9;\n }\n &.whiteS2 {\n color: #7b7979;\n border-color: #f0f0f0;\n }\n &.pink {\n color: #e33aa9;\n border-color: #e33aa9;\n }\n &.gray {\n color: #7b7979;\n border-color: #7b7979;\n }\n &.purple {\n color: #8a6caa;\n border-color: #8a6caa;\n }\n &.black {\n color: #262626;\n border-color: #262626;\n }\n }\n"])), function (_ref) {
|
|
19
|
-
var size = _ref.size;
|
|
20
|
-
return size ? size : "13";
|
|
21
|
-
}, function (_ref2) {
|
|
22
|
-
var borderType = _ref2.borderType;
|
|
23
|
-
return (borderType === null || borderType === void 0 ? void 0 : borderType.toLowerCase()) === "rectangle" ? "6px" : (borderType === null || borderType === void 0 ? void 0 : borderType.toLowerCase()) === "circle" ? "50%" : "0px";
|
|
24
|
-
}, function (_ref3) {
|
|
25
|
-
var borderType = _ref3.borderType;
|
|
26
|
-
return ["rectangle", "circle"].includes(borderType === null || borderType === void 0 ? void 0 : borderType.toLowerCase()) ? "5px" : "0px";
|
|
27
|
-
}, function (_ref4) {
|
|
28
|
-
var borderType = _ref4.borderType,
|
|
29
|
-
transparent = _ref4.transparent;
|
|
30
|
-
return ["rectangle", "circle"].includes(borderType === null || borderType === void 0 ? void 0 : borderType.toLowerCase()) ? "1px solid black" : "none";
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
exports.Container = Container;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = exports.ButtonTest = void 0;
|
|
9
|
-
|
|
10
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
-
|
|
12
|
-
var _index = require("./index");
|
|
13
|
-
|
|
14
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
|
|
16
|
-
var _default = {
|
|
17
|
-
title: "Components/atoms/IconFile",
|
|
18
|
-
component: _index.IconFile,
|
|
19
|
-
argTypes: {
|
|
20
|
-
type: {
|
|
21
|
-
options: [undefined, "white", "whiteS2", "pink", "gray", "purple", "black"],
|
|
22
|
-
control: {
|
|
23
|
-
type: "select"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
borderType: {
|
|
27
|
-
options: [undefined, "rectangle", "circle"],
|
|
28
|
-
control: {
|
|
29
|
-
type: "select"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
exports.default = _default;
|
|
35
|
-
|
|
36
|
-
var Template = function Template(args) {
|
|
37
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.IconFile, (0, _objectSpread2.default)({}, args));
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
var ButtonTest = Template.bind({});
|
|
41
|
-
exports.ButtonTest = ButtonTest;
|
|
42
|
-
ButtonTest.args = {
|
|
43
|
-
type: undefined,
|
|
44
|
-
transparent: false,
|
|
45
|
-
borderType: undefined,
|
|
46
|
-
size: "100",
|
|
47
|
-
ext: "doc"
|
|
48
|
-
};
|
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.IconFile = void 0;
|
|
9
|
-
|
|
10
|
-
var _styles = require("./styles");
|
|
11
|
-
|
|
12
|
-
var _freeSolidSvgIcons = require("@fortawesome/free-solid-svg-icons");
|
|
13
|
-
|
|
14
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
-
|
|
16
|
-
var _CustomIcon = require("../CustomIcon");
|
|
17
|
-
|
|
18
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
-
|
|
20
|
-
var IconFile = function IconFile(props) {
|
|
21
|
-
var _extensions$ext, _extensions$ext$icon, _extensions$ext2;
|
|
22
|
-
|
|
23
|
-
var id = props.id,
|
|
24
|
-
key = props.key,
|
|
25
|
-
className = props.className,
|
|
26
|
-
type = props.type,
|
|
27
|
-
transparent = props.transparent,
|
|
28
|
-
size = props.size,
|
|
29
|
-
borderType = props.borderType,
|
|
30
|
-
ext = props.ext;
|
|
31
|
-
var extensions = {
|
|
32
|
-
// file word
|
|
33
|
-
docx: {
|
|
34
|
-
icon: _freeSolidSvgIcons.faFileWord,
|
|
35
|
-
type: "word"
|
|
36
|
-
},
|
|
37
|
-
docm: {
|
|
38
|
-
icon: _freeSolidSvgIcons.faFileWord,
|
|
39
|
-
type: "word"
|
|
40
|
-
},
|
|
41
|
-
doc: {
|
|
42
|
-
icon: _freeSolidSvgIcons.faFileWord,
|
|
43
|
-
type: "word"
|
|
44
|
-
},
|
|
45
|
-
docs: {
|
|
46
|
-
icon: _freeSolidSvgIcons.faFileWord,
|
|
47
|
-
type: "word"
|
|
48
|
-
},
|
|
49
|
-
// file excel
|
|
50
|
-
xls: {
|
|
51
|
-
icon: _freeSolidSvgIcons.faFileExcel,
|
|
52
|
-
type: "excel"
|
|
53
|
-
},
|
|
54
|
-
xlsm: {
|
|
55
|
-
icon: _freeSolidSvgIcons.faFileExcel,
|
|
56
|
-
type: "excel"
|
|
57
|
-
},
|
|
58
|
-
xlsx: {
|
|
59
|
-
icon: _freeSolidSvgIcons.faFileExcel,
|
|
60
|
-
type: "excel"
|
|
61
|
-
},
|
|
62
|
-
tsv: {
|
|
63
|
-
icon: _freeSolidSvgIcons.faFileExcel,
|
|
64
|
-
type: "excel"
|
|
65
|
-
},
|
|
66
|
-
// file csv
|
|
67
|
-
csv: {
|
|
68
|
-
icon: _freeSolidSvgIcons.faFileCsv,
|
|
69
|
-
type: "csv"
|
|
70
|
-
},
|
|
71
|
-
// file image
|
|
72
|
-
svg: {
|
|
73
|
-
icon: _freeSolidSvgIcons.faFileImage,
|
|
74
|
-
type: "image"
|
|
75
|
-
},
|
|
76
|
-
gif: {
|
|
77
|
-
icon: _freeSolidSvgIcons.faFileImage,
|
|
78
|
-
type: "image"
|
|
79
|
-
},
|
|
80
|
-
// file pdf
|
|
81
|
-
pdf: {
|
|
82
|
-
icon: _freeSolidSvgIcons.faFilePdf,
|
|
83
|
-
type: "pdf"
|
|
84
|
-
},
|
|
85
|
-
// file power point
|
|
86
|
-
pot: {
|
|
87
|
-
icon: _freeSolidSvgIcons.faFilePowerpoint,
|
|
88
|
-
type: "powerPoint"
|
|
89
|
-
},
|
|
90
|
-
potm: {
|
|
91
|
-
icon: _freeSolidSvgIcons.faFilePowerpoint,
|
|
92
|
-
type: "powerPoint"
|
|
93
|
-
},
|
|
94
|
-
potx: {
|
|
95
|
-
icon: _freeSolidSvgIcons.faFilePowerpoint,
|
|
96
|
-
type: "powerPoint"
|
|
97
|
-
},
|
|
98
|
-
pps: {
|
|
99
|
-
icon: _freeSolidSvgIcons.faFilePowerpoint,
|
|
100
|
-
type: "powerPoint"
|
|
101
|
-
},
|
|
102
|
-
ppsm: {
|
|
103
|
-
icon: _freeSolidSvgIcons.faFilePowerpoint,
|
|
104
|
-
type: "powerPoint"
|
|
105
|
-
},
|
|
106
|
-
ppsx: {
|
|
107
|
-
icon: _freeSolidSvgIcons.faFilePowerpoint,
|
|
108
|
-
type: "powerPoint"
|
|
109
|
-
},
|
|
110
|
-
ppt: {
|
|
111
|
-
icon: _freeSolidSvgIcons.faFilePowerpoint,
|
|
112
|
-
type: "powerPoint"
|
|
113
|
-
},
|
|
114
|
-
pptm: {
|
|
115
|
-
icon: _freeSolidSvgIcons.faFilePowerpoint,
|
|
116
|
-
type: "powerPoint"
|
|
117
|
-
},
|
|
118
|
-
pptx: {
|
|
119
|
-
icon: _freeSolidSvgIcons.faFilePowerpoint,
|
|
120
|
-
type: "powerPoint"
|
|
121
|
-
},
|
|
122
|
-
// file zip
|
|
123
|
-
rar: {
|
|
124
|
-
icon: _freeSolidSvgIcons.faFileZipper,
|
|
125
|
-
type: "zip"
|
|
126
|
-
},
|
|
127
|
-
zip: {
|
|
128
|
-
icon: _freeSolidSvgIcons.faFileZipper,
|
|
129
|
-
type: "zip"
|
|
130
|
-
},
|
|
131
|
-
tar: {
|
|
132
|
-
icon: _freeSolidSvgIcons.faFileZipper,
|
|
133
|
-
type: "zip"
|
|
134
|
-
},
|
|
135
|
-
// file code
|
|
136
|
-
xml: {
|
|
137
|
-
icon: _freeSolidSvgIcons.faFileCode,
|
|
138
|
-
type: "code"
|
|
139
|
-
},
|
|
140
|
-
htm: {
|
|
141
|
-
icon: _freeSolidSvgIcons.faFileCode,
|
|
142
|
-
type: "code"
|
|
143
|
-
},
|
|
144
|
-
html: {
|
|
145
|
-
icon: _freeSolidSvgIcons.faFileCode,
|
|
146
|
-
type: "code"
|
|
147
|
-
},
|
|
148
|
-
css: {
|
|
149
|
-
icon: _freeSolidSvgIcons.faFileCode,
|
|
150
|
-
type: "code"
|
|
151
|
-
},
|
|
152
|
-
js: {
|
|
153
|
-
icon: _freeSolidSvgIcons.faFileCode,
|
|
154
|
-
type: "code"
|
|
155
|
-
},
|
|
156
|
-
jsx: {
|
|
157
|
-
icon: _freeSolidSvgIcons.faFileCode,
|
|
158
|
-
type: "code"
|
|
159
|
-
},
|
|
160
|
-
ts: {
|
|
161
|
-
icon: _freeSolidSvgIcons.faFileCode,
|
|
162
|
-
type: "code"
|
|
163
|
-
},
|
|
164
|
-
tsx: {
|
|
165
|
-
icon: _freeSolidSvgIcons.faFileCode,
|
|
166
|
-
type: "code"
|
|
167
|
-
},
|
|
168
|
-
cpp: {
|
|
169
|
-
icon: _freeSolidSvgIcons.faFileCode,
|
|
170
|
-
type: "code"
|
|
171
|
-
},
|
|
172
|
-
c: {
|
|
173
|
-
icon: _freeSolidSvgIcons.faFileCode,
|
|
174
|
-
type: "code"
|
|
175
|
-
},
|
|
176
|
-
java: {
|
|
177
|
-
icon: _freeSolidSvgIcons.faFileCode,
|
|
178
|
-
type: "code"
|
|
179
|
-
},
|
|
180
|
-
php: {
|
|
181
|
-
icon: _freeSolidSvgIcons.faFileCode,
|
|
182
|
-
type: "code"
|
|
183
|
-
},
|
|
184
|
-
json: {
|
|
185
|
-
icon: _freeSolidSvgIcons.faFileCode,
|
|
186
|
-
type: "code"
|
|
187
|
-
},
|
|
188
|
-
sql: {
|
|
189
|
-
icon: _freeSolidSvgIcons.faFileCode,
|
|
190
|
-
type: "code"
|
|
191
|
-
},
|
|
192
|
-
// file video
|
|
193
|
-
avi: {
|
|
194
|
-
icon: _freeSolidSvgIcons.faFileVideo,
|
|
195
|
-
type: "video"
|
|
196
|
-
},
|
|
197
|
-
mp4: {
|
|
198
|
-
icon: _freeSolidSvgIcons.faFileVideo,
|
|
199
|
-
type: "video"
|
|
200
|
-
},
|
|
201
|
-
mpeg: {
|
|
202
|
-
icon: _freeSolidSvgIcons.faFileVideo,
|
|
203
|
-
type: "video"
|
|
204
|
-
},
|
|
205
|
-
mpg: {
|
|
206
|
-
icon: _freeSolidSvgIcons.faFileVideo,
|
|
207
|
-
type: "video"
|
|
208
|
-
},
|
|
209
|
-
wmv: {
|
|
210
|
-
icon: _freeSolidSvgIcons.faFileVideo,
|
|
211
|
-
type: "video"
|
|
212
|
-
},
|
|
213
|
-
// file audio
|
|
214
|
-
m4a: {
|
|
215
|
-
icon: _freeSolidSvgIcons.faFileAudio,
|
|
216
|
-
type: "audio"
|
|
217
|
-
},
|
|
218
|
-
mp3: {
|
|
219
|
-
icon: _freeSolidSvgIcons.faFileAudio,
|
|
220
|
-
type: "audio"
|
|
221
|
-
},
|
|
222
|
-
wav: {
|
|
223
|
-
icon: _freeSolidSvgIcons.faFileAudio,
|
|
224
|
-
type: "audio"
|
|
225
|
-
},
|
|
226
|
-
wma: {
|
|
227
|
-
icon: _freeSolidSvgIcons.faFileAudio,
|
|
228
|
-
type: "audio"
|
|
229
|
-
}
|
|
230
|
-
};
|
|
231
|
-
var ref = (0, _react.useRef)();
|
|
232
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
233
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
234
|
-
className: className + (!type && (_extensions$ext = extensions[ext]) !== null && _extensions$ext !== void 0 && _extensions$ext.type ? " icon-" + extensions[ext].type : undefined),
|
|
235
|
-
borderType: borderType,
|
|
236
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomIcon.CustomIcon, {
|
|
237
|
-
id: id,
|
|
238
|
-
className: "icon",
|
|
239
|
-
type: type,
|
|
240
|
-
transparent: transparent,
|
|
241
|
-
borderType: borderType,
|
|
242
|
-
size: size,
|
|
243
|
-
icon: (_extensions$ext$icon = (_extensions$ext2 = extensions[ext]) === null || _extensions$ext2 === void 0 ? void 0 : _extensions$ext2.icon) !== null && _extensions$ext$icon !== void 0 ? _extensions$ext$icon : _freeSolidSvgIcons.faFileLines
|
|
244
|
-
}, key)
|
|
245
|
-
})
|
|
246
|
-
});
|
|
247
|
-
};
|
|
248
|
-
|
|
249
|
-
exports.IconFile = IconFile;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.Container = void 0;
|
|
9
|
-
|
|
10
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
-
|
|
12
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
-
|
|
14
|
-
var _variables = require("../../../global-files/variables");
|
|
15
|
-
|
|
16
|
-
var _templateObject;
|
|
17
|
-
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: fit-content;\n min-width: min-content;\n min-height: min-content;\n overflow: hidden;\n cursor: default;\n display: grid;\n place-items: center;\n padding: 0px;\n border-radius: ", ";\n border: none;\n\n // colores de acuerdo al tipo de icono\n &.icon-word .icon {\n color: #1f3780;\n border-color: #1f3780;\n }\n &.icon-excel .icon {\n color: #2d5639;\n border-color: #2d5639;\n }\n &.icon-csv .icon {\n color: #6b8e73;\n border-color: #6b8e73;\n }\n &.icon-image .icon {\n color: #ca7f4d;\n border-color: #ca7f4d;\n }\n &.icon-pdf .icon {\n color: #951a1a;\n border-color: #951a1a;\n }\n &.icon-powerPoint .icon {\n color: #ba4f19;\n border-color: #ba4f19;\n }\n &.icon-zip .icon {\n color: #b8950c;\n border-color: #b8950c;\n }\n &.icon-code .icon {\n color: #1c778e;\n border-color: #1c778e;\n }\n &.icon-video .icon {\n color: #a15bb1;\n border-color: #a15bb1;\n }\n &.icon-audio .icon {\n color: #3090e9;\n border-color: #3090e9;\n }\n &.icon-default .icon {\n color: #5e6265;\n border-color: #5e6265;\n }\n"])), function (_ref) {
|
|
19
|
-
var borderType = _ref.borderType;
|
|
20
|
-
return (borderType === null || borderType === void 0 ? void 0 : borderType.toLowerCase()) === "rectangle" ? "6px" : (borderType === null || borderType === void 0 ? void 0 : borderType.toLowerCase()) === "circle" ? "50%" : "0px";
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
exports.Container = Container;
|