bianic-ui 1.0.0-beta.3 → 1.0.0-beta.31
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/cjs/index.js +373 -897
- package/dist/cjs/lib.css +1 -1
- package/dist/cjs/types/components/Alert/Alert.d.ts +11 -6
- package/dist/cjs/types/components/Button/configs.d.ts +0 -6
- package/dist/cjs/types/components/Button/index.d.ts +5 -1
- package/dist/cjs/types/components/Forms/DropdownItem/Default.d.ts +3 -1
- package/dist/cjs/types/components/Forms/SelectInput/SelectedInput.d.ts +1 -1
- package/dist/cjs/types/components/Modal/Modal.d.ts +2 -1
- package/dist/cjs/types/components/TabMenu/TabMenu.d.ts +10 -0
- package/dist/cjs/types/components/TabMenu/configs.d.ts +27 -0
- package/dist/cjs/types/components/TabMenu/index.d.ts +1 -0
- package/dist/cjs/types/components/TagLabel/TagLabelBlockSimulation.d.ts +15 -0
- package/dist/cjs/types/components/TagLabel/configs.d.ts +40 -651
- package/dist/cjs/types/components/TagLabel/index.d.ts +21 -7
- package/dist/cjs/types/components/Tooltip/configs.d.ts +20 -0
- package/dist/cjs/types/components/Tooltip/index.d.ts +4 -1
- package/dist/cjs/types/components/index.d.ts +1 -0
- package/dist/cjs/types/stories/Form/SelectInput/SelectInput.Simulation.stories.d.ts +0 -1
- package/dist/cjs/types/stories/TabMenu/TabMenu.stories.d.ts +14 -0
- package/dist/cjs/types/stories/{Tooltip.stories.d.ts → Tooltip/Tooltip.stories.d.ts} +2 -1
- package/dist/cjs/types/utility/helper.d.ts +3 -0
- package/dist/esm/index.js +373 -898
- package/dist/esm/lib.css +1 -1
- package/dist/esm/types/components/Alert/Alert.d.ts +11 -6
- package/dist/esm/types/components/Button/configs.d.ts +0 -6
- package/dist/esm/types/components/Button/index.d.ts +5 -1
- package/dist/esm/types/components/Forms/DropdownItem/Default.d.ts +3 -1
- package/dist/esm/types/components/Forms/SelectInput/SelectedInput.d.ts +1 -1
- package/dist/esm/types/components/Modal/Modal.d.ts +2 -1
- package/dist/esm/types/components/TabMenu/TabMenu.d.ts +10 -0
- package/dist/esm/types/components/TabMenu/configs.d.ts +27 -0
- package/dist/esm/types/components/TabMenu/index.d.ts +1 -0
- package/dist/esm/types/components/TagLabel/TagLabelBlockSimulation.d.ts +15 -0
- package/dist/esm/types/components/TagLabel/configs.d.ts +40 -651
- package/dist/esm/types/components/TagLabel/index.d.ts +21 -7
- package/dist/esm/types/components/Tooltip/configs.d.ts +20 -0
- package/dist/esm/types/components/Tooltip/index.d.ts +4 -1
- package/dist/esm/types/components/index.d.ts +1 -0
- package/dist/esm/types/stories/Form/SelectInput/SelectInput.Simulation.stories.d.ts +0 -1
- package/dist/esm/types/stories/TabMenu/TabMenu.stories.d.ts +14 -0
- package/dist/esm/types/stories/{Tooltip.stories.d.ts → Tooltip/Tooltip.stories.d.ts} +2 -1
- package/dist/esm/types/utility/helper.d.ts +3 -0
- package/dist/index.d.ts +55 -19
- package/package.json +5 -2
- package/src/style/color.css +12 -0
- package/src/style/scrollbar.css +10 -1
- package/tailwind.config.js +21 -0
- package/dist/cjs/types/components/Modal/config.d.ts +0 -59
- package/dist/cjs/types/components/Tab/config.d.ts +0 -33
- package/dist/cjs/types/components/TagLabel/CloseIcon.d.ts +0 -11
- package/dist/cjs/types/components/TagLabel/Medium/TbCheck.d.ts +0 -2
- package/dist/cjs/types/components/TagLabel/Medium/TbCheckBlack.d.ts +0 -2
- package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleBlack.d.ts +0 -6
- package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleBlue.d.ts +0 -2
- package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleGray.d.ts +0 -2
- package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleGreen.d.ts +0 -2
- package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleRed.d.ts +0 -2
- package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleTeal.d.ts +0 -2
- package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleWhite.d.ts +0 -2
- package/dist/cjs/types/components/TagLabel/Medium/TbCloseAbleYellow.d.ts +0 -2
- package/dist/cjs/types/components/TagLabel/Medium/TbCloseable.d.ts +0 -6
- package/dist/cjs/types/components/TagLabel/Small/TbCheckBlackSmall.d.ts +0 -2
- package/dist/cjs/types/components/TagLabel/Small/TbCheckWhiteSmall.d.ts +0 -2
- package/dist/cjs/types/components/TagLabel/Small/TbCloseAbleBlackSmall.d.ts +0 -2
- package/dist/cjs/types/components/TagLabel/Small/TbCloseAbleGraySmall.d.ts +0 -2
- package/dist/cjs/types/components/TagLabel/Small/TbCloseAbleWhiteSmall.d.ts +0 -6
- package/dist/cjs/types/stories/Scrollbar/Scrollbar.stories.d.ts +0 -13
- package/dist/cjs/types/stories/TagLabel.stories.d.ts +0 -16
- package/dist/esm/types/components/Modal/config.d.ts +0 -59
- package/dist/esm/types/components/Tab/config.d.ts +0 -33
- package/dist/esm/types/components/TagLabel/CloseIcon.d.ts +0 -11
- package/dist/esm/types/components/TagLabel/Medium/TbCheck.d.ts +0 -2
- package/dist/esm/types/components/TagLabel/Medium/TbCheckBlack.d.ts +0 -2
- package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleBlack.d.ts +0 -6
- package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleBlue.d.ts +0 -2
- package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleGray.d.ts +0 -2
- package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleGreen.d.ts +0 -2
- package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleRed.d.ts +0 -2
- package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleTeal.d.ts +0 -2
- package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleWhite.d.ts +0 -2
- package/dist/esm/types/components/TagLabel/Medium/TbCloseAbleYellow.d.ts +0 -2
- package/dist/esm/types/components/TagLabel/Medium/TbCloseable.d.ts +0 -6
- package/dist/esm/types/components/TagLabel/Small/TbCheckBlackSmall.d.ts +0 -2
- package/dist/esm/types/components/TagLabel/Small/TbCheckWhiteSmall.d.ts +0 -2
- package/dist/esm/types/components/TagLabel/Small/TbCloseAbleBlackSmall.d.ts +0 -2
- package/dist/esm/types/components/TagLabel/Small/TbCloseAbleGraySmall.d.ts +0 -2
- package/dist/esm/types/components/TagLabel/Small/TbCloseAbleWhiteSmall.d.ts +0 -6
- package/dist/esm/types/stories/Scrollbar/Scrollbar.stories.d.ts +0 -13
- package/dist/esm/types/stories/TagLabel.stories.d.ts +0 -16
package/dist/cjs/index.js
CHANGED
|
@@ -88,7 +88,7 @@ function IconBase(props) {
|
|
|
88
88
|
// THIS FILE IS AUTO GENERATED
|
|
89
89
|
function TbAlertTriangle (props) {
|
|
90
90
|
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":"2","strokeLinecap":"round","strokeLinejoin":"round"},"child":[{"tag":"path","attr":{"d":"M12 9v4"},"child":[]},{"tag":"path","attr":{"d":"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0z"},"child":[]},{"tag":"path","attr":{"d":"M12 16h.01"},"child":[]}]})(props);
|
|
91
|
-
}function TbCheck
|
|
91
|
+
}function TbCheck (props) {
|
|
92
92
|
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":"2","strokeLinecap":"round","strokeLinejoin":"round"},"child":[{"tag":"path","attr":{"d":"M5 12l5 5l10 -10"},"child":[]}]})(props);
|
|
93
93
|
}function TbChevronDown (props) {
|
|
94
94
|
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":"2","strokeLinecap":"round","strokeLinejoin":"round"},"child":[{"tag":"path","attr":{"d":"M6 9l6 6l6 -6"},"child":[]}]})(props);
|
|
@@ -155,7 +155,7 @@ var AlertConfig = {
|
|
|
155
155
|
ContainerIcon: 'bg-bia-green',
|
|
156
156
|
close: 'text-bia-green',
|
|
157
157
|
icon: {
|
|
158
|
-
true: TbCheck
|
|
158
|
+
true: TbCheck,
|
|
159
159
|
false: '',
|
|
160
160
|
},
|
|
161
161
|
},
|
|
@@ -246,38 +246,80 @@ var textClasses = {
|
|
|
246
246
|
'tiny-text-bold': 'text-size-tiny font-bold font-["Arial"]',
|
|
247
247
|
};
|
|
248
248
|
|
|
249
|
+
var childrenElement = function (element) {
|
|
250
|
+
if (element === undefined)
|
|
251
|
+
return '';
|
|
252
|
+
// if (typeof element === 'object') return '';
|
|
253
|
+
return element;
|
|
254
|
+
};
|
|
255
|
+
var validUnion = function (value, union) {
|
|
256
|
+
return union.includes(value) ? value : union[0];
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
var variantUnion$2 = [
|
|
260
|
+
'normal-text',
|
|
261
|
+
'large-text',
|
|
262
|
+
'large-text-semibold',
|
|
263
|
+
'medium-text',
|
|
264
|
+
'medium-text-semibold',
|
|
265
|
+
'caption',
|
|
266
|
+
'caption-semibold',
|
|
267
|
+
'normal-text-semilight',
|
|
268
|
+
'normal-text-semibold',
|
|
269
|
+
'normal-text-bold',
|
|
270
|
+
'small-text',
|
|
271
|
+
'small-text-semibold',
|
|
272
|
+
'tiny-text',
|
|
273
|
+
'tiny-text-bold',
|
|
274
|
+
'script',
|
|
275
|
+
'link',
|
|
276
|
+
];
|
|
249
277
|
function Text(_a) {
|
|
250
278
|
var _b = _a.extended, extended = _b === void 0 ? '' : _b, variant = _a.variant, children = _a.children;
|
|
251
|
-
|
|
279
|
+
var validatedVariant = validUnion(variant, variantUnion$2);
|
|
280
|
+
return (React.createElement("span", { className: "text ".concat(textClasses[validatedVariant], " ").concat(extended) }, childrenElement(children)));
|
|
252
281
|
}
|
|
253
282
|
Text.defaultProps = {
|
|
254
283
|
extended: '',
|
|
255
284
|
};
|
|
256
285
|
|
|
257
286
|
function Alert(_a) {
|
|
258
|
-
var
|
|
259
|
-
var
|
|
287
|
+
var _b = _a.title, title = _b === void 0 ? '' : _b, caption = _a.caption, _c = _a.variant, variant = _c === void 0 ? 'base' : _c, _d = _a.visible, visible = _d === void 0 ? true : _d, _e = _a.setVisible, setVisible = _e === void 0 ? function () { } : _e, _f = _a.visibleIcon, visibleIcon = _f === void 0 ? true : _f, _g = _a.visibleClose, visibleClose = _g === void 0 ? false : _g;
|
|
288
|
+
var validateVariant = validUnion(variant, [
|
|
289
|
+
'base',
|
|
290
|
+
'info',
|
|
291
|
+
'success',
|
|
292
|
+
'warning',
|
|
293
|
+
'danger',
|
|
294
|
+
]);
|
|
295
|
+
var IconComponent = AlertConfig[validateVariant].icon[visibleIcon ? 'true' : 'false'];
|
|
260
296
|
var IconX = AlertConfig[visibleClose ? 'true' : 'false'];
|
|
261
297
|
var handleCloseAlert = function () {
|
|
262
298
|
setVisible(false);
|
|
263
299
|
};
|
|
264
|
-
return (visible && (React.createElement("div", { className: "flex flex-col w-full" },
|
|
265
|
-
React.createElement("div", { className: "w-full ".concat(AlertConfig[
|
|
300
|
+
return (visible && (React.createElement("div", { className: "alert-container flex flex-col w-full" },
|
|
301
|
+
React.createElement("div", { className: "alert-body w-full ".concat(AlertConfig[validateVariant].bg, " rounded-[5px]") },
|
|
266
302
|
React.createElement("div", { className: "flex w-full" },
|
|
267
|
-
React.createElement("div", { className: "accent flex items-center py-[10px]" },
|
|
268
|
-
React.createElement("div", { className: "left-0 w-[3px] h-full ".concat(AlertConfig[
|
|
269
|
-
React.createElement("div", { className: "content w-full flex py-[10px] pe-[10px] items-start" },
|
|
270
|
-
React.createElement("div", { className: "icon-area flex ps-[10px]" }, IconComponent && typeof IconComponent === 'function' && (React.createElement("div", { className: "flex p-[7px] ".concat(AlertConfig[
|
|
303
|
+
React.createElement("div", { className: "alert-accent flex items-center py-[10px]" },
|
|
304
|
+
React.createElement("div", { className: "left-0 w-[3px] h-full ".concat(AlertConfig[validateVariant].vBar, " rounded-r-[10px]") })),
|
|
305
|
+
React.createElement("div", { className: "alert-content w-full flex py-[10px] pe-[10px] items-start" },
|
|
306
|
+
React.createElement("div", { className: "icon-area flex ps-[10px]" }, IconComponent && typeof IconComponent === 'function' && (React.createElement("div", { className: "flex p-[7px] ".concat(AlertConfig[validateVariant].ContainerIcon, " items-center justify-center rounded-radius-full") },
|
|
271
307
|
React.createElement(IconComponent, { size: 20, color: "white" })))),
|
|
272
|
-
React.createElement("div", { className: "flex w-full justify-between" },
|
|
273
|
-
React.createElement("div", { className: "flex ps-[10px] text-area flex-col ".concat(visibleClose ? 'mr-[10px]' : '', " ").concat(visibleIcon ? '' : 'ml-[-10px]') },
|
|
308
|
+
React.createElement("div", { className: "content-area flex w-full justify-between" },
|
|
309
|
+
React.createElement("div", { className: "text-area flex ps-[10px] text-area flex-col ".concat(visibleClose ? 'mr-[10px]' : '', " ").concat(visibleIcon ? '' : 'ml-[-10px]') },
|
|
274
310
|
React.createElement("div", { className: "flex justify-between" },
|
|
275
311
|
React.createElement(Text, { variant: "normal-text-semibold" }, title)),
|
|
276
312
|
React.createElement(Text, { variant: "small-text" }, caption)),
|
|
277
|
-
|
|
313
|
+
IconX && typeof IconX === 'function' && (React.createElement("div", { className: "closable-area flex " },
|
|
314
|
+
React.createElement(IconX, { className: "cursor-pointer ".concat(AlertConfig[validateVariant].hover, " ").concat(AlertConfig[validateVariant].active, " ").concat(AlertConfig[validateVariant].focus, " ").concat(AlertConfig[validateVariant].close), onClick: function () { return handleCloseAlert(); }, tabIndex: 0 }))))))))));
|
|
278
315
|
}
|
|
279
316
|
Alert.defaultProps = {
|
|
280
|
-
title:
|
|
317
|
+
title: '',
|
|
318
|
+
variant: 'base',
|
|
319
|
+
visible: true,
|
|
320
|
+
setVisible: function () { },
|
|
321
|
+
visibleIcon: true,
|
|
322
|
+
visibleClose: false,
|
|
281
323
|
};
|
|
282
324
|
|
|
283
325
|
/******************************************************************************
|
|
@@ -335,7 +377,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
335
377
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
336
378
|
};
|
|
337
379
|
|
|
338
|
-
var radiusConfig = {
|
|
380
|
+
var radiusConfig$1 = {
|
|
339
381
|
default: {
|
|
340
382
|
sm: 'rounded-radius-sm focus-visible:rounded-radius-sm',
|
|
341
383
|
md: 'rounded-radius-md focus-visible:rounded-radius-md',
|
|
@@ -349,20 +391,20 @@ var radiusConfig = {
|
|
|
349
391
|
tn: 'rounded-radius-full focus-visible:rounded-radius-full',
|
|
350
392
|
},
|
|
351
393
|
};
|
|
352
|
-
var sizeConfig$
|
|
353
|
-
lg: 'py-[10.5px] px-[13px] h-[48px] flex items-center justify-center gap-[10px]',
|
|
354
|
-
md: ' px-[11px] py-[9px] h-[40px] flex items-center justify-center gap-[5px] ',
|
|
355
|
-
sm: 'px-[8px] py-[6px] h-[30px] flex items-center justify-center gap-[5px] ',
|
|
356
|
-
tn: 'px-[4px] py-[2px] h-[22px] flex items-center justify-center gap-[3px]',
|
|
394
|
+
var sizeConfig$b = {
|
|
395
|
+
lg: 'py-[10.5px] px-[13px] h-[48px] flex items-center justify-center gap-[10px] text-size-md',
|
|
396
|
+
md: ' px-[11px] py-[9px] h-[40px] flex items-center justify-center gap-[5px] text-size-base',
|
|
397
|
+
sm: 'px-[8px] py-[6px] h-[30px] flex items-center justify-center gap-[5px] text-size-sm',
|
|
398
|
+
tn: 'px-[4px] py-[2px] h-[22px] flex items-center justify-center gap-[3px] text-size-tiny',
|
|
357
399
|
};
|
|
358
|
-
var iconOnlySizeConfig = {
|
|
400
|
+
var iconOnlySizeConfig$1 = {
|
|
359
401
|
lg: 'p-[13px] flex items-center justify-center gap-[10px]',
|
|
360
402
|
md: ' p-[11px] flex items-center justify-center gap-[5px]',
|
|
361
403
|
sm: 'p-[8px] flex items-center justify-center gap-[5px] ',
|
|
362
404
|
tn: 'p-[4px] flex items-center justify-center gap-[3px]',
|
|
363
405
|
};
|
|
364
406
|
var shadow = 'shadow-[0px_6px_18px_1px_rgba(188,199,237,0.5)] disabled:shadow-none active:shadow-none';
|
|
365
|
-
var variantConfig$
|
|
407
|
+
var variantConfig$2 = {
|
|
366
408
|
default: "\n text-primary-black \n bg-bia-grey \n active:bg-bia-grey-dark-10 \n hover:bg-bia-grey-hover \n disabled:bg-bia-grey-disabled \n disabled:text-bia-grey-active \n disabled:cursor-not-allowed \n focus-visible:outline \n focus-visible:outline-offset-0 \n focus-visible:outline-bia-blue-light-50\n focus-visible:outline-[3px] \n focus-visible:rounded-md\n shadow-[0px_6px_18px_1px_#BCC7ED80] ".concat(shadow),
|
|
367
409
|
primary: "\n text-primary-white \n bg-bia-blue \n active:bg-bia-blue-dark-10 \n hover:bg-bia-blue-hover \n disabled:bg-bia-blue-disabled \n disabled:text-bia-blue-light-90 \n disabled:cursor-not-allowed \n focus-visible:outline\n focus-visible:outline-offset-0\n focus-visible:outline-bia-blue-light-50 \n focus-visible:outline-[3px] \n focus-visible:rounded-md\n shadow-bia-blue-disabled ".concat(shadow),
|
|
368
410
|
info: "\n text-primary-white \n bg-bia-teal \n active:bg-bia-teal-dark-10 \n hover:bg-bia-teal-hover \n disabled:bg-bia-teal-light-50 \n disabled:text-bia-teal-light-90 \n disabled:cursor-not-allowed \n focus-visible:outline \n focus-visible:outline-offset-0\n focus-visible:outline-bia-teal-light-50 \n focus-visible:outline-[3px] \n focus-visible:rounded-md \n shadow-bia-teal-disabled ".concat(shadow),
|
|
@@ -380,12 +422,38 @@ var variantConfig$1 = {
|
|
|
380
422
|
'danger-outlined': "\n text-bia-red \n border-solid \n border \n border-bia-red \n bg-primary-white \n active:text-bia-red-dark-10 \n active:border-bia-red-active \n active:bg-bia-red-light-90 \n active:border-bia-red-disabled \n hover:text-bia-red-hover \n hover:border-bia-red-hover \n disabled:cursor-not-allowed \n disabled:border-[1px]\n disabled:border-bia-red-light-50 \n disabled:text-bia-red-light-50\n focus-visible:outline-none \n focus-visible:outline-offset-0 \n focus-visible:outline-[3px] \n focus-visible:rounded-md \n focus-visible:outline-bia-red-light-50 \n focus-visible:border-none \n \n ",
|
|
381
423
|
};
|
|
382
424
|
|
|
425
|
+
var variantUnion$1 = [
|
|
426
|
+
'default',
|
|
427
|
+
'danger',
|
|
428
|
+
'info',
|
|
429
|
+
'link',
|
|
430
|
+
'primary',
|
|
431
|
+
'subtle',
|
|
432
|
+
'subtle-link',
|
|
433
|
+
'success',
|
|
434
|
+
'warning',
|
|
435
|
+
'default-outlined',
|
|
436
|
+
'danger-outlined',
|
|
437
|
+
'info-outlined',
|
|
438
|
+
'primary-outlined',
|
|
439
|
+
'success-outlined',
|
|
440
|
+
'warning-outlined',
|
|
441
|
+
];
|
|
442
|
+
var radiusUnion = ['default', 'full-rounded'];
|
|
443
|
+
var sizeUnion$4 = ['md', 'lg', 'sm', 'tn'];
|
|
383
444
|
function Button(_a) {
|
|
384
|
-
var label = _a.label, _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c, _d = _a.radius, radius = _d === void 0 ? 'default' : _d, _e = _a.size, size = _e === void 0 ? 'md' : _e, _f = _a.variant, variant = _f === void 0 ? 'default' : _f, _g = _a.iconLeft, iconLeft = _g === void 0 ? null : _g, _h = _a.iconRight, iconRight = _h === void 0 ? null : _h, props = __rest(_a, ["label", "className", "disabled", "radius", "size", "variant", "iconLeft", "iconRight"]);
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
445
|
+
var label = _a.label, _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c, _d = _a.radius, radius = _d === void 0 ? 'default' : _d, _e = _a.size, size = _e === void 0 ? 'md' : _e, _f = _a.variant, variant = _f === void 0 ? 'default' : _f, _g = _a.iconLeft, iconLeft = _g === void 0 ? null : _g, _h = _a.iconRight, iconRight = _h === void 0 ? null : _h, _j = _a.left, left = _j === void 0 ? null : _j, _k = _a.right, right = _k === void 0 ? null : _k, props = __rest(_a, ["label", "className", "disabled", "radius", "size", "variant", "iconLeft", "iconRight", "left", "right"]);
|
|
446
|
+
var validatedVariant = validUnion(variant, variantUnion$1);
|
|
447
|
+
var validatedSize = validUnion(size, sizeUnion$4);
|
|
448
|
+
var validatedRadius = validUnion(radius, radiusUnion);
|
|
449
|
+
var sizeClass = label
|
|
450
|
+
? sizeConfig$b[validatedSize]
|
|
451
|
+
: iconOnlySizeConfig$1[validatedSize];
|
|
452
|
+
var classString = "\n ".concat(variantConfig$2[validatedVariant], " \n ").concat(sizeClass, " \n ").concat(radiusConfig$1[validatedRadius][validatedSize], " \n ").concat(className, "\n ");
|
|
453
|
+
return (React.createElement("button", __assign({ type: "button", className: "button flex justify-center items-center font-semibold ".concat(classString), disabled: disabled }, props),
|
|
454
|
+
childrenElement(iconLeft || left),
|
|
455
|
+
childrenElement(label),
|
|
456
|
+
childrenElement(iconRight || right)));
|
|
389
457
|
}
|
|
390
458
|
Button.defaultProps = {
|
|
391
459
|
label: null,
|
|
@@ -396,6 +464,8 @@ Button.defaultProps = {
|
|
|
396
464
|
variant: 'default',
|
|
397
465
|
iconLeft: null,
|
|
398
466
|
iconRight: null,
|
|
467
|
+
left: null,
|
|
468
|
+
right: null,
|
|
399
469
|
};
|
|
400
470
|
|
|
401
471
|
var AvatarConfig = {
|
|
@@ -495,7 +565,7 @@ Badge.defaultProps = {
|
|
|
495
565
|
color: undefined,
|
|
496
566
|
};
|
|
497
567
|
|
|
498
|
-
var variantConfig = {
|
|
568
|
+
var variantConfig$1 = {
|
|
499
569
|
black: {
|
|
500
570
|
bg: 'bg-primary-black',
|
|
501
571
|
active: 'active:bg-bia-coolgrey-dark-30 active:rounded-sm',
|
|
@@ -531,11 +601,11 @@ var variantConfig = {
|
|
|
531
601
|
function Banner(_a) {
|
|
532
602
|
var children = _a.children, _b = _a.closeable, closeable = _b === void 0 ? true : _b, _c = _a.variant, variant = _c === void 0 ? 'black' : _c, open = _a.open, onClose = _a.onClose;
|
|
533
603
|
if (open) {
|
|
534
|
-
return (React.createElement("div", { className: "w-full h-[42px] py-[22px] text-size-base font-semibold flex justify-center items-center text-white relative ".concat(variantConfig[variant].bg) },
|
|
604
|
+
return (React.createElement("div", { className: "w-full h-[42px] py-[22px] text-size-base font-semibold flex justify-center items-center text-white relative ".concat(variantConfig$1[variant].bg) },
|
|
535
605
|
React.createElement("div", { className: "w-full flex justify-center items-center gap-[10px]" },
|
|
536
606
|
React.createElement("div", { className: "font-semibold font-segoe text-[14px] leading-[21px]" }, children),
|
|
537
|
-
React.createElement("div", { className: "flex items-center justify-center" }, closeable && (React.createElement("button", { className: "ml-auto text-xs outline-2 text-white absolute right-4 w-[18px] h-[18px] flex justify-center items-center ".concat(variantConfig[variant].focus), type: "button", onClick: function () { return onClose(false); } },
|
|
538
|
-
React.createElement(TbX, { className: "text-[18px] ".concat(variantConfig[variant].hover, " ").concat(variantConfig[variant].active) })))))));
|
|
607
|
+
React.createElement("div", { className: "flex items-center justify-center" }, closeable && (React.createElement("button", { className: "ml-auto text-xs outline-2 text-white absolute right-4 w-[18px] h-[18px] flex justify-center items-center ".concat(variantConfig$1[variant].focus), type: "button", onClick: function () { return onClose(false); } },
|
|
608
|
+
React.createElement(TbX, { className: "text-[18px] ".concat(variantConfig$1[variant].hover, " ").concat(variantConfig$1[variant].active) })))))));
|
|
539
609
|
}
|
|
540
610
|
}
|
|
541
611
|
Banner.defaultProps = {
|
|
@@ -1421,7 +1491,7 @@ Divider.defaultProps = {
|
|
|
1421
1491
|
classname: '',
|
|
1422
1492
|
};
|
|
1423
1493
|
|
|
1424
|
-
var sizeConfig$
|
|
1494
|
+
var sizeConfig$a = {
|
|
1425
1495
|
md: {
|
|
1426
1496
|
fieldSize: 'text-size-base p-2.5 font-[350] h-10',
|
|
1427
1497
|
iconPosition: 'right-[10px]',
|
|
@@ -1455,7 +1525,7 @@ var styleConfig = {
|
|
|
1455
1525
|
function ValidationIcon(_a) {
|
|
1456
1526
|
var isValid = _a.isValid, iconSize = _a.iconSize;
|
|
1457
1527
|
if (isValid) {
|
|
1458
|
-
return (React.createElement(TbCheck
|
|
1528
|
+
return (React.createElement(TbCheck, { className: "text-bia-green", style: { fontSize: iconSize } }));
|
|
1459
1529
|
}
|
|
1460
1530
|
return React.createElement(TbX, { className: "text-bia-red", style: { fontSize: iconSize } });
|
|
1461
1531
|
}
|
|
@@ -1476,7 +1546,7 @@ function TextInput(_a) {
|
|
|
1476
1546
|
var descText = _a.descText, _b = _a.disabled, disabled = _b === void 0 ? false : _b, icon = _a.icon, _c = _a.id, id = _c === void 0 ? '' : _c, _d = _a.size, size = _d === void 0 ? 'md' : _d, _e = _a.isValid, isValid = _e === void 0 ? false : _e, label = _a.label, _f = _a.placeholder, placeholder = _f === void 0 ? '' : _f, _g = _a.readOnly, readOnly = _g === void 0 ? false : _g, _h = _a.required, required = _h === void 0 ? false : _h, _j = _a.variant, variant = _j === void 0 ? 'text' : _j, _k = _a.value, value = _k === void 0 ? '' : _k, _l = _a.onChange, onChange = _l === void 0 ? function () { } : _l;
|
|
1477
1547
|
var _m = React.useState(false), isShow = _m[0], setIsShow = _m[1];
|
|
1478
1548
|
var _o = styleConfig[variant], fieldStyle = _o.fieldStyle, iconStyle = _o.iconStyle;
|
|
1479
|
-
var _p = sizeConfig$
|
|
1549
|
+
var _p = sizeConfig$a[size], iconSize = _p.iconSize, fieldSize = _p.fieldSize, iconPosition = _p.iconPosition;
|
|
1480
1550
|
var typeVariant = variant;
|
|
1481
1551
|
if (variant === 'password')
|
|
1482
1552
|
typeVariant = isShow ? 'text' : 'password';
|
|
@@ -1488,9 +1558,9 @@ function TextInput(_a) {
|
|
|
1488
1558
|
descColor = 'text-bia-red';
|
|
1489
1559
|
var bottomBorderColor = 'hover:border-b-bia-blue focus:border-b-bia-blue';
|
|
1490
1560
|
if (!disabled && isExistValidation && isValid)
|
|
1491
|
-
bottomBorderColor = 'border-b-bia-green';
|
|
1561
|
+
bottomBorderColor = 'hover:border-b-bia-green focus:border-b-bia-green';
|
|
1492
1562
|
if (!disabled && isExistValidation && !isValid)
|
|
1493
|
-
bottomBorderColor = 'border-b-bia-red';
|
|
1563
|
+
bottomBorderColor = 'hover:border-b-bia-red focus:border-b-bia-red';
|
|
1494
1564
|
var iconElement = null;
|
|
1495
1565
|
if (!disabled && isExistValidation)
|
|
1496
1566
|
iconElement = React.createElement(ValidationIcon, { isValid: isValid, iconSize: iconSize });
|
|
@@ -1533,7 +1603,7 @@ TextInputSimulation.defaultProps = {
|
|
|
1533
1603
|
};
|
|
1534
1604
|
|
|
1535
1605
|
// Desc: Radio button size configuration
|
|
1536
|
-
var sizeConfig$
|
|
1606
|
+
var sizeConfig$9 = {
|
|
1537
1607
|
md: {
|
|
1538
1608
|
checkSize: 'w-[22px] h-[22px]',
|
|
1539
1609
|
labelSize: 'text-size-base',
|
|
@@ -1544,14 +1614,16 @@ var sizeConfig$8 = {
|
|
|
1544
1614
|
},
|
|
1545
1615
|
};
|
|
1546
1616
|
|
|
1617
|
+
var sizeUnion$3 = ['md', 'sm'];
|
|
1547
1618
|
function Radio(_a) {
|
|
1548
1619
|
var label = _a.label, _b = _a.size, size = _b === void 0 ? 'md' : _b, id = _a.id, _c = _a.onClick, onClick = _c === void 0 ? function () { } : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.checked, checked = _e === void 0 ? false : _e;
|
|
1549
|
-
var
|
|
1620
|
+
var validatedSize = validUnion(size, sizeUnion$3);
|
|
1621
|
+
var _f = sizeConfig$9[validatedSize], checkSize = _f.checkSize, labelSize = _f.labelSize;
|
|
1550
1622
|
return (React.createElement("div", { className: "flex items-center" },
|
|
1551
1623
|
React.createElement("div", { className: "bg-white rounded-full flex flex-shrink-0 justify-center items-center relative ".concat(checkSize) },
|
|
1552
1624
|
React.createElement("input", { id: id, "aria-labelledby": "label1", type: "radio", className: "peer checkbox box-content appearance-none focus:opacity-100 focus:ring-1 focus:ring-offset-2 checked:disabled:border-bia-blue-disabled focus:ring-bia-blue focus:outline-none rounded-full border-bia-coolgrey-light-50 checked:border-bia-blue hover:border-bia-blue-hover disabled:border-bia-grey-dark-10 border-2 absolute cursor-pointer w-full h-full", onClick: function (e) { return onClick(e); }, checked: checked, disabled: disabled }),
|
|
1553
1625
|
React.createElement("div", { className: "check-icon flex text-bia-grey group justify-center border-2 border-primary-white peer-disabled:bg-bia-grey-light-80 peer-disabled:border-transparent peer-disabled:peer-checked:border-primary-white peer-checked:peer-disabled:bg-bia-blue-disabled peer-checked:hover:border-bia-blue-hover peer-checked:bg-bia-blue peer-checked:peer-hover:bg-bia-blue-hover outline-2 peer-checked:hover:outline-bia-blue-hover outline-bia-blue rounded-full w-full h-full z-1" })),
|
|
1554
|
-
React.createElement("label", { htmlFor: id, className: "ml-2 leading-4 font-[350] ".concat(labelSize), style: { color: disabled ? '#8C8CA6' : '#2f2f2f' } }, label)));
|
|
1626
|
+
React.createElement("label", { htmlFor: id, className: "ml-2 leading-4 font-[350] ".concat(labelSize), style: { color: disabled ? '#8C8CA6' : '#2f2f2f' } }, childrenElement(label))));
|
|
1555
1627
|
}
|
|
1556
1628
|
Radio.defaultProps = {
|
|
1557
1629
|
label: '',
|
|
@@ -1562,7 +1634,7 @@ Radio.defaultProps = {
|
|
|
1562
1634
|
checked: false,
|
|
1563
1635
|
};
|
|
1564
1636
|
|
|
1565
|
-
var sizeConfig$
|
|
1637
|
+
var sizeConfig$8 = {
|
|
1566
1638
|
md: {
|
|
1567
1639
|
inputClass: 'text-size-base font-[350] min-h-10',
|
|
1568
1640
|
},
|
|
@@ -1574,7 +1646,7 @@ var sizeConfig$7 = {
|
|
|
1574
1646
|
function TextArea(_a) {
|
|
1575
1647
|
var descText = _a.descText, _b = _a.disabled, disabled = _b === void 0 ? false : _b, id = _a.id, _c = _a.size, size = _c === void 0 ? 'md' : _c, label = _a.label, _d = _a.placeholder, placeholder = _d === void 0 ? '' : _d, required = _a.required, rows = _a.rows, props = __rest(_a, ["descText", "disabled", "id", "size", "label", "placeholder", "required", "rows"]);
|
|
1576
1648
|
var inputRow = rows !== null && rows !== void 0 ? rows : 4;
|
|
1577
|
-
var inputClass = sizeConfig$
|
|
1649
|
+
var inputClass = sizeConfig$8[size].inputClass;
|
|
1578
1650
|
return (React.createElement("div", { className: "field-group w-full flex flex-col" },
|
|
1579
1651
|
React.createElement("label", { htmlFor: id, className: "label text-xs pb-2 font-semibold" },
|
|
1580
1652
|
label,
|
|
@@ -1594,7 +1666,7 @@ TextArea.defaultProps = {
|
|
|
1594
1666
|
rows: 4,
|
|
1595
1667
|
};
|
|
1596
1668
|
|
|
1597
|
-
var sizeConfig$
|
|
1669
|
+
var sizeConfig$7 = {
|
|
1598
1670
|
md: {
|
|
1599
1671
|
checkClass: 'w-[22px] h-[22px]',
|
|
1600
1672
|
labelClass: 'text-size-base font-[350]',
|
|
@@ -1605,16 +1677,17 @@ var sizeConfig$6 = {
|
|
|
1605
1677
|
},
|
|
1606
1678
|
};
|
|
1607
1679
|
|
|
1680
|
+
var sizeUnion$2 = ['md', 'sm'];
|
|
1608
1681
|
function Checkbox(_a) {
|
|
1609
|
-
var _b = _a.disabled, disabled = _b === void 0 ? false : _b, id = _a.id
|
|
1610
|
-
var _f = sizeConfig$
|
|
1682
|
+
var _b = _a.disabled, disabled = _b === void 0 ? false : _b, id = _a.id, _c = _a.size, size = _c === void 0 ? 'md' : _c, _d = _a.checked, checked = _d === void 0 ? false : _d, label = _a.label, _e = _a.onChange, onChange = _e === void 0 ? function () { } : _e, value = _a.value;
|
|
1683
|
+
var _f = sizeConfig$7[validUnion(size, sizeUnion$2)], checkClass = _f.checkClass, labelClass = _f.labelClass;
|
|
1611
1684
|
return (React.createElement("div", { className: "flex items-center" },
|
|
1612
1685
|
React.createElement("div", { className: "bg-white rounded-full flex flex-shrink-0 justify-center items-center relative ".concat(checkClass) },
|
|
1613
1686
|
React.createElement("input", { id: id, type: "checkbox", className: "peer checkbox box-content appearance-none focus-visible:opacity-100 focus-visible:ring-1 focus-visible:ring-offset-2 focus-visible:ring-bia-blue focus-visible:outline-none rounded-full border-bia-coolgrey-light-50 checked:border-bia-blue disabled:border-bia-coolgrey-light-50 hover:border-bia-blue-hover disabled:checked:border-bia-blue-light-50 border-2 absolute cursor-pointer w-full h-full", checked: checked, onChange: function (e) { return onChange(e); }, disabled: disabled, value: value }),
|
|
1614
1687
|
React.createElement("div", { className: "check-icon flex text-bia-grey group justify-center peer-checked:border-2 peer-checked:border-primary-white peer-checked:hover:border-bia-blue-hover peer-checked:bg-bia-blue peer-checked:peer-hover:bg-bia-blue-hover outline-2 peer-checked:hover:outline-bia-blue-hover outline-bia-blue peer-disabled:bg-bia-grey-light-80 peer-disabled:peer-checked:outline-bia-blue-light-50 peer-disabled:peer-checked:bg-bia-blue-light-50 rounded-full w-full h-full z-1" },
|
|
1615
1688
|
React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", className: " fill-bia-grey-dark-10 peer-checked:group-[]:fill-primary-white peer-checked:peer-hover:group-[]:fill-primary-white peer-hover:group-[]:fill-bia-blue-hover peer-disabled:group-[]:fill-bia-grey-dark-10 peer-disabled:peer-checked:group-[]:fill-primary-white", viewBox: "-5 -7 24 24", width: "24" },
|
|
1616
1689
|
React.createElement("path", { d: "M5.486 9.73a.997.997 0 0 1-.707-.292L.537 5.195A1 1 0 1 1 1.95 3.78l3.535 3.535L11.85.952a1 1 0 0 1 1.415 1.414L6.193 9.438a.997.997 0 0 1-.707.292z" })))),
|
|
1617
|
-
React.createElement("label", { htmlFor: id, className: "ml-2 leading-4 text-grey-800 ".concat(labelClass), style: { color: disabled ? '#8C8CA6' : '' } }, label)));
|
|
1690
|
+
React.createElement("label", { htmlFor: id, className: "ml-2 leading-4 text-grey-800 ".concat(labelClass), style: { color: disabled ? '#8C8CA6' : '' } }, childrenElement(label))));
|
|
1618
1691
|
}
|
|
1619
1692
|
Checkbox.defaultProps = {
|
|
1620
1693
|
disabled: false,
|
|
@@ -1660,7 +1733,7 @@ CheckboxSimulation.defaultProps = {
|
|
|
1660
1733
|
size: 'md',
|
|
1661
1734
|
};
|
|
1662
1735
|
|
|
1663
|
-
var sizeConfig$
|
|
1736
|
+
var sizeConfig$6 = {
|
|
1664
1737
|
md: {
|
|
1665
1738
|
searchSize: 'text-size-base p-2.5 font-[350] h-10',
|
|
1666
1739
|
iconSize: 'right-[10px]',
|
|
@@ -1671,7 +1744,7 @@ var sizeConfig$5 = {
|
|
|
1671
1744
|
},
|
|
1672
1745
|
};
|
|
1673
1746
|
|
|
1674
|
-
var sizeConfig$
|
|
1747
|
+
var sizeConfig$5 = {
|
|
1675
1748
|
md: {
|
|
1676
1749
|
container: 'text-size-base font-[350] py-[3px] first:pt-[8px] last:pb-[8px]',
|
|
1677
1750
|
item: 'min-h-[34px] p-2.5',
|
|
@@ -1684,18 +1757,20 @@ var sizeConfig$4 = {
|
|
|
1684
1757
|
|
|
1685
1758
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
1686
1759
|
function DefaultDropdownItem(_a) {
|
|
1687
|
-
var _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.label, label = _c === void 0 ? '' : _c, _d = _a.onClick, onClick = _d === void 0 ? function () { } : _d, _e = _a.size, size = _e === void 0 ? 'md' : _e, isSelected = _a.isSelected, options = _a.options;
|
|
1760
|
+
var _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.label, label = _c === void 0 ? '' : _c, _d = _a.onClick, onClick = _d === void 0 ? function () { } : _d, _e = _a.size, size = _e === void 0 ? 'md' : _e, isSelected = _a.isSelected, options = _a.options, caption = _a.caption;
|
|
1688
1761
|
var _f = React.useState(false), isHovered = _f[0], setisHovered = _f[1];
|
|
1689
1762
|
var _g = React.useState(false), isHoveredSubMenu = _g[0], setIsHoveredSubMenu = _g[1];
|
|
1690
1763
|
var isOpenDropdown = isHovered || isHoveredSubMenu;
|
|
1691
1764
|
var selectedClass = isSelected ? 'font-semibold' : 'font-normal';
|
|
1692
|
-
var _h = sizeConfig$
|
|
1765
|
+
var _h = sizeConfig$5[size], containerClass = _h.container, item = _h.item;
|
|
1693
1766
|
var itemClass = "".concat(item, " ").concat(selectedClass, " ").concat(className);
|
|
1694
1767
|
var isExistSubDropdown = options.length !== 0;
|
|
1695
1768
|
return (React.createElement("div", { className: "w-full relative focus-visible:outline-bia-blue-light-50 ".concat(containerClass), tabIndex: 0, role: "button", onClick: function (e) { return onClick(e); }, onMouseEnter: function () { return setisHovered(true); }, onMouseLeave: function () { return setisHovered(false); }, onKeyDown: function () { } },
|
|
1696
|
-
React.createElement("div", { className: "hover:bg-bia-blue-light-90 active:bg-bia-blue-light-80 select-none ".concat(itemClass) },
|
|
1697
|
-
|
|
1698
|
-
|
|
1769
|
+
React.createElement("div", { className: "hover:bg-bia-blue-light-90 active:bg-bia-blue-light-80 select-none flex flex-col ".concat(itemClass) },
|
|
1770
|
+
React.createElement("span", null,
|
|
1771
|
+
label,
|
|
1772
|
+
isExistSubDropdown && (React.createElement(TbChevronRight, { className: "float-right text-bia-grey" }))),
|
|
1773
|
+
React.createElement(Text, { variant: "small-text", extended: "text-bia-coolgrey" }, caption)),
|
|
1699
1774
|
isOpenDropdown && options && isExistSubDropdown && (React.createElement("div", { className: "absolute z-50 top-0 right-0 translate-x-full border w-full bg-primary-white border-bia-grey-dark-10 rounded-md shadow-lg", onMouseEnter: function () { return setIsHoveredSubMenu(true); }, onMouseLeave: function () { return setIsHoveredSubMenu(false); } }, options.map(function (option) { return (React.createElement(DefaultDropdownItem, { label: option.label, size: size, options: option.options })); })))));
|
|
1700
1775
|
}
|
|
1701
1776
|
DefaultDropdownItem.defaultProps = {
|
|
@@ -1704,13 +1779,15 @@ DefaultDropdownItem.defaultProps = {
|
|
|
1704
1779
|
size: 'md',
|
|
1705
1780
|
options: [],
|
|
1706
1781
|
isSelected: false,
|
|
1782
|
+
caption: '',
|
|
1707
1783
|
};
|
|
1708
1784
|
|
|
1709
|
-
|
|
1785
|
+
var sizeUnion$1 = ['md', 'sm'];
|
|
1710
1786
|
function SelectInput(_a) {
|
|
1711
|
-
var descText = _a.descText, _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.size, size = _c === void 0 ? 'md' : _c, id = _a.id, label = _a.label, options = _a.options, _d = _a.required, required = _d === void 0 ? false : _d, selected = _a.selected, setSelected = _a.setSelected;
|
|
1787
|
+
var descText = _a.descText, _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.size, size = _c === void 0 ? 'md' : _c, id = _a.id, label = _a.label, options = _a.options, _d = _a.required, required = _d === void 0 ? false : _d, selected = _a.selected, setSelected = _a.setSelected, props = __rest(_a, ["descText", "disabled", "size", "id", "label", "options", "required", "selected", "setSelected"]);
|
|
1712
1788
|
var _e = React.useState(false), isOpen = _e[0], setIsOpen = _e[1];
|
|
1713
|
-
var
|
|
1789
|
+
var validatedSize = validUnion(size, sizeUnion$1);
|
|
1790
|
+
var _f = sizeConfig$6[validatedSize], searchSize = _f.searchSize, iconSize = _f.iconSize;
|
|
1714
1791
|
var inputRef = React.useRef(null);
|
|
1715
1792
|
var handleOutsideClick = function (e) {
|
|
1716
1793
|
if (inputRef.current && !inputRef.current.contains(e.target)) {
|
|
@@ -1723,21 +1800,21 @@ function SelectInput(_a) {
|
|
|
1723
1800
|
document.removeEventListener('mousedown', handleOutsideClick);
|
|
1724
1801
|
};
|
|
1725
1802
|
});
|
|
1726
|
-
return (React.createElement("div", { className: "field-group w-full flex
|
|
1727
|
-
React.createElement("label", { htmlFor: id, className: "label text-xs
|
|
1728
|
-
label,
|
|
1803
|
+
return (React.createElement("div", { className: "field-group flex w-full flex-col", ref: inputRef },
|
|
1804
|
+
React.createElement("label", { htmlFor: id, className: "label pb-2 text-xs font-semibold" },
|
|
1805
|
+
childrenElement(label),
|
|
1729
1806
|
required && React.createElement("span", { className: "p-1 text-bia-red" }, "*")),
|
|
1730
|
-
React.createElement("div", { className: "group w-full
|
|
1731
|
-
React.createElement("input", { className: "field
|
|
1732
|
-
React.createElement("div", { className: "absolute inset-y-0
|
|
1733
|
-
isOpen && (React.createElement("div", { className: "absolute
|
|
1807
|
+
React.createElement("div", { className: "group relative w-full" },
|
|
1808
|
+
React.createElement("input", __assign({ className: "field peer w-full cursor-pointer rounded border border-bia-grey-dark-10 bg-primary-white pe-8 focus-visible:outline-none enabled:hover:rounded-b-none enabled:hover:border-b-bia-blue enabled:focus:rounded-b-none enabled:focus:border-b-bia-blue disabled:bg-bia-grey-light-80 disabled:text-bia-coolgrey ".concat(searchSize), onClick: function () { return setIsOpen(!isOpen); }, value: selected === null || selected === void 0 ? void 0 : selected.label, readOnly: true, id: id, disabled: disabled }, props)),
|
|
1809
|
+
React.createElement("div", { className: "pointer-events-none absolute inset-y-0 flex items-center pl-3 text-bia-coolgrey peer-disabled:text-bia-coolgrey-light-50 ".concat(iconSize) }, isOpen ? (React.createElement(TbChevronUp, { className: "" })) : (React.createElement(TbChevronDown, { className: "" }))),
|
|
1810
|
+
isOpen && (React.createElement("div", { className: "absolute z-10 w-full rounded-b-md border border-bia-grey-dark-10 bg-primary-white shadow-lg" }, options.map(function (option) {
|
|
1734
1811
|
var isSelected = selected && selected.id && option.id === selected.id;
|
|
1735
|
-
return (React.createElement(DefaultDropdownItem, { label: option.label, size:
|
|
1812
|
+
return (React.createElement(DefaultDropdownItem, { label: option.label, caption: option.caption, size: validatedSize, isSelected: isSelected, onClick: function () {
|
|
1736
1813
|
setSelected(option);
|
|
1737
1814
|
setIsOpen(false);
|
|
1738
1815
|
} }));
|
|
1739
1816
|
})))),
|
|
1740
|
-
React.createElement("span", { className: "desc
|
|
1817
|
+
React.createElement("span", { className: "desc mt-2 text-xs text-primary-cool" }, descText)));
|
|
1741
1818
|
}
|
|
1742
1819
|
SelectInput.defaultProps = {
|
|
1743
1820
|
descText: '',
|
|
@@ -1755,33 +1832,39 @@ function SelectInputSimulation(_a) {
|
|
|
1755
1832
|
var _c = React.useState({
|
|
1756
1833
|
id: 1,
|
|
1757
1834
|
label: 'Mohammed Salah',
|
|
1835
|
+
caption: 'Liverpool',
|
|
1758
1836
|
}), selected = _c[0], setSelected = _c[1];
|
|
1759
1837
|
var optionData = [
|
|
1760
1838
|
{
|
|
1761
1839
|
id: 1,
|
|
1762
1840
|
label: 'Mohammed Salah',
|
|
1841
|
+
caption: 'Liverpool',
|
|
1763
1842
|
},
|
|
1764
1843
|
{
|
|
1765
1844
|
id: 2,
|
|
1766
1845
|
label: 'Cristiono Ronaldo',
|
|
1846
|
+
caption: 'Manchester United',
|
|
1767
1847
|
},
|
|
1768
1848
|
{
|
|
1769
1849
|
id: 3,
|
|
1770
1850
|
label: 'Vinicius Junior',
|
|
1851
|
+
caption: 'Real Madrid',
|
|
1771
1852
|
},
|
|
1772
1853
|
{
|
|
1773
1854
|
id: 4,
|
|
1774
1855
|
label: 'Lionel Messi',
|
|
1856
|
+
caption: 'Paris Saint Germain',
|
|
1775
1857
|
},
|
|
1776
1858
|
{
|
|
1777
1859
|
id: 5,
|
|
1778
1860
|
label: 'Ricardo Kaka',
|
|
1861
|
+
caption: 'AC Milan',
|
|
1779
1862
|
},
|
|
1780
1863
|
];
|
|
1781
|
-
return (React.createElement(SelectInput, { label: "Input Select", descText: "Deskripsi Input Select", options: optionData, selected: selected, setSelected: setSelected, size: size, id: "demo-id" }));
|
|
1864
|
+
return (React.createElement(SelectInput, { label: "Input Select", descText: "Deskripsi Input Select", options: optionData, selected: selected, setSelected: setSelected, size: size, placeholder: '-- Select Player --', id: "demo-id" }));
|
|
1782
1865
|
}
|
|
1783
1866
|
|
|
1784
|
-
var sizeConfig$
|
|
1867
|
+
var sizeConfig$4 = {
|
|
1785
1868
|
md: {
|
|
1786
1869
|
iconClass: 'right-[10px]',
|
|
1787
1870
|
iconSize: '18',
|
|
@@ -1800,7 +1883,7 @@ var sizeConfig$3 = {
|
|
|
1800
1883
|
function LiveSearch(_a) {
|
|
1801
1884
|
var descText = _a.descText, _b = _a.disabled, disabled = _b === void 0 ? false : _b, id = _a.id, _c = _a.size, size = _c === void 0 ? 'md' : _c, label = _a.label, placeholder = _a.placeholder, _d = _a.required, required = _d === void 0 ? false : _d, options = _a.options, setValue = _a.setValue, value = _a.value;
|
|
1802
1885
|
var _e = React.useState(false), isOpen = _e[0], setIsOpen = _e[1];
|
|
1803
|
-
var _f = sizeConfig$
|
|
1886
|
+
var _f = sizeConfig$4[size], iconClass = _f.iconClass, iconSize = _f.iconSize, inputClass = _f.inputClass;
|
|
1804
1887
|
var inputRef = React.useRef(null);
|
|
1805
1888
|
var handleOutsideClick = function (e) {
|
|
1806
1889
|
if (inputRef.current && !inputRef.current.contains(e.target)) {
|
|
@@ -1846,7 +1929,7 @@ LiveSearch.defaultProps = {
|
|
|
1846
1929
|
value: {},
|
|
1847
1930
|
};
|
|
1848
1931
|
|
|
1849
|
-
var sizeConfig$
|
|
1932
|
+
var sizeConfig$3 = {
|
|
1850
1933
|
md: {
|
|
1851
1934
|
containerSize: 'w-[42px] h-[22px]',
|
|
1852
1935
|
checkSize: 'p-2',
|
|
@@ -1861,7 +1944,7 @@ var sizeConfig$2 = {
|
|
|
1861
1944
|
|
|
1862
1945
|
function Toggle(_a) {
|
|
1863
1946
|
var _b = _a.label, label = _b === void 0 ? '' : _b, _c = _a.size, size = _c === void 0 ? 'md' : _c, _d = _a.onClick, onClick = _d === void 0 ? function () { } : _d, _e = _a.checked, checked = _e === void 0 ? false : _e, _f = _a.id, id = _f === void 0 ? '' : _f, _g = _a.disabled, disabled = _g === void 0 ? false : _g;
|
|
1864
|
-
var _h = sizeConfig$
|
|
1947
|
+
var _h = sizeConfig$3[size], containerSize = _h.containerSize, checkSize = _h.checkSize, labelClass = _h.labelClass;
|
|
1865
1948
|
return (React.createElement("div", { className: "flex items-center" },
|
|
1866
1949
|
React.createElement("div", { className: "".concat(containerSize, " rounded-full py-[2px] flex flex-shrink-0 ").concat(checked ? 'justify-end' : 'justify-start', " items-center relative cursor-pointer"), onClick: onClick, onKeyDown: function () { }, role: "checkbox", tabIndex: 0, "aria-checked": checked },
|
|
1867
1950
|
React.createElement("input", { id: id, checked: checked, disabled: disabled, className: "".concat(checkSize, " peer checkbox appearance-none opacity-100 focus:ring-1 focus:ring-offset-2 focus:ring-bia-blue focus:outline-none rounded-full border-bia-grey checked:border-bia-blue bg-primary-white checked:bg-bia-blue checked:hover:bg-bia-blue-hover cursor-pointer hover:border-bia-blue-hover peer-hover:border-bia-blue-hover disabled:bg-bia-grey-light-80 disabled:checked:bg-bia-blue-light-50 disabled:border-none border-2 absolute w-full h-full"), type: "checkbox" }),
|
|
@@ -1887,7 +1970,7 @@ var roundedConfig = {
|
|
|
1887
1970
|
sm: 'first:rounded-l-radius-sm last:rounded-r-radius-lg',
|
|
1888
1971
|
tn: 'first:rounded-l-radius-tn last:rounded-r-radius-tn',
|
|
1889
1972
|
};
|
|
1890
|
-
var sizeConfig$
|
|
1973
|
+
var sizeConfig$2 = {
|
|
1891
1974
|
lg: 'text-size-md leading-[23.94px] px-[13px] py-[10.5px]',
|
|
1892
1975
|
md: 'text-size-base leading-[21px] px-[11px] py-[9px]',
|
|
1893
1976
|
sm: 'text-size-sm leading-[15.96px] px-[7px] py-[5px]',
|
|
@@ -1897,7 +1980,7 @@ var sizeConfig$1 = {
|
|
|
1897
1980
|
function SegmentButtonItem(_a) {
|
|
1898
1981
|
var _b = _a.selected, selected = _b === void 0 ? false : _b, size = _a.size, children = _a.children, disabled = _a.disabled, onClick = _a.onClick;
|
|
1899
1982
|
var isSelected = selected ? 'selected' : 'notSelected';
|
|
1900
|
-
return (React.createElement("button", { type: "button", onClick: onClick, disabled: disabled, className: "focus-visible:z-50 focus-visible:outline focus-visible:-outline-offset-1 focus-visible:outline-[3px] focus-visible:outline-bia-blue-light-50 border-[1px] border-l-0 first:border-l-[1px] border-bia-grey-dark-10 group:last:border-l-0 disabled:bg-bia-grey-light-80 disabled:text-bia-grey-dark-10 disabled:cursor-not-allowed ".concat(isSelectedConfig[isSelected], " ").concat(roundedConfig[size], " ").concat(sizeConfig$
|
|
1983
|
+
return (React.createElement("button", { type: "button", onClick: onClick, disabled: disabled, className: "focus-visible:z-50 focus-visible:outline focus-visible:-outline-offset-1 focus-visible:outline-[3px] focus-visible:outline-bia-blue-light-50 border-[1px] border-l-0 first:border-l-[1px] border-bia-grey-dark-10 group:last:border-l-0 disabled:bg-bia-grey-light-80 disabled:text-bia-grey-dark-10 disabled:cursor-not-allowed ".concat(isSelectedConfig[isSelected], " ").concat(roundedConfig[size], " ").concat(sizeConfig$2[size]) }, children));
|
|
1901
1984
|
}
|
|
1902
1985
|
|
|
1903
1986
|
function SegmentButtonGroup(_a) {
|
|
@@ -1940,13 +2023,13 @@ function SegmentButtonSimulation(_a) {
|
|
|
1940
2023
|
return (React.createElement(SegmentButtonItem, { selected: activeButton === index, size: size, disabled: disabled, onClick: function () { return handleClick(index); } },
|
|
1941
2024
|
React.createElement("div", { className: "flex items-center justify-center" },
|
|
1942
2025
|
React.createElement("div", { className: "mt-[1px] mr-[5px]" },
|
|
1943
|
-
React.createElement(TbCheck
|
|
2026
|
+
React.createElement(TbCheck, null)),
|
|
1944
2027
|
content)));
|
|
1945
2028
|
})));
|
|
1946
2029
|
}
|
|
1947
2030
|
|
|
1948
2031
|
function Modal(_a) {
|
|
1949
|
-
var size = _a.size, title = _a.title, open = _a.open, onClose = _a.onClose, rest = __rest(_a, ["size", "title", "open", "onClose"]);
|
|
2032
|
+
var size = _a.size, title = _a.title, open = _a.open, zIndex = _a.zIndex, onClose = _a.onClose, rest = __rest(_a, ["size", "title", "open", "zIndex", "onClose"]);
|
|
1950
2033
|
var modalSize;
|
|
1951
2034
|
if (size === 'sm') {
|
|
1952
2035
|
modalSize = 'w-[300px]';
|
|
@@ -1968,12 +2051,12 @@ function Modal(_a) {
|
|
|
1968
2051
|
if (open) {
|
|
1969
2052
|
return (
|
|
1970
2053
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events
|
|
1971
|
-
React.createElement("div", { className: "fixed inset-0 flex
|
|
1972
|
-
React.createElement("div", { className: "modal flex flex-col gap-[20px]
|
|
2054
|
+
React.createElement("div", { className: "fixed inset-0 flex items-center justify-center bg-bia-black-transparent-75", style: { zIndex: !zIndex && isNaN(zIndex) ? 'auto' : zIndex }, id: "wrapper", onClick: handleClose },
|
|
2055
|
+
React.createElement("div", { className: "modal flex flex-col gap-[20px] rounded-[5px] bg-white p-[20px] ".concat(modalSize) },
|
|
1973
2056
|
React.createElement("div", { className: "flex justify-between" },
|
|
1974
|
-
React.createElement("div", { className: "
|
|
1975
|
-
React.createElement("button", { type: "button", title: "button", className: "
|
|
1976
|
-
React.createElement(TbX, { className: "text-bia-coolgrey
|
|
2057
|
+
React.createElement("div", { className: " w-[260px] text-wrap font-humnst777 text-[18px] font-bold leading-[21.85px] text-primary-black" }, title),
|
|
2058
|
+
React.createElement("button", { type: "button", title: "button", className: "flex h-[22px] w-[22px] cursor-pointer items-center justify-center rounded-radius-full bg-bia-grey-light-50 hover:bg-bia-grey-light-30", onClick: function () { return onClose(); } },
|
|
2059
|
+
React.createElement(TbX, { className: "text-[14px] text-bia-coolgrey" }))),
|
|
1977
2060
|
React.createElement("div", { className: "flex flex-col gap-[20px]" }, rest.children))));
|
|
1978
2061
|
}
|
|
1979
2062
|
return null;
|
|
@@ -1982,7 +2065,7 @@ Modal.defaultProps = {
|
|
|
1982
2065
|
title: null,
|
|
1983
2066
|
};
|
|
1984
2067
|
|
|
1985
|
-
var sizeConfig = {
|
|
2068
|
+
var sizeConfig$1 = {
|
|
1986
2069
|
md: 'w-[38px] h-[40px] text-[14px] font-semibold',
|
|
1987
2070
|
sm: 'w-[29px] h-[30px] mt-1 text-[12px] font-normal',
|
|
1988
2071
|
};
|
|
@@ -2032,7 +2115,7 @@ function PaginationBar(_a) {
|
|
|
2032
2115
|
};
|
|
2033
2116
|
return (React.createElement("div", { className: "flex w-screen max-w-4xl ".concat(positionConfig[position], " gap-[5px]") },
|
|
2034
2117
|
React.createElement(Button, { variant: "subtle-link", size: "md", type: "button", onClick: function () { return handlePageChange(currentPage - 1); }, className: "cursor-pointer", iconLeft: leftArrow }),
|
|
2035
|
-
showedPages.map(function (page) { return (React.createElement(Button, { key: page, variant: currentPage === page ? 'default' : 'subtle-link', size: "md", type: "button", onClick: function () { return handlePageChange(page); }, className: "cursor-pointer ".concat(sizeConfig[size]), label: page.toString() })); }),
|
|
2118
|
+
showedPages.map(function (page) { return (React.createElement(Button, { key: page, variant: currentPage === page ? 'default' : 'subtle-link', size: "md", type: "button", onClick: function () { return handlePageChange(page); }, className: "cursor-pointer ".concat(sizeConfig$1[size]), label: page.toString() })); }),
|
|
2036
2119
|
React.createElement(Button, { variant: "subtle-link", size: "md", type: "button", onClick: function () { return handlePageChange(currentPage + 1); }, className: "cursor-pointer", iconLeft: rightArrow })));
|
|
2037
2120
|
}
|
|
2038
2121
|
|
|
@@ -2122,7 +2205,7 @@ Popover.defaultProps = {
|
|
|
2122
2205
|
var config = {
|
|
2123
2206
|
success: {
|
|
2124
2207
|
container: 'border-bia-green',
|
|
2125
|
-
content: React.createElement(TbCheck
|
|
2208
|
+
content: React.createElement(TbCheck, { className: "text-[38px] text-bia-green" }),
|
|
2126
2209
|
},
|
|
2127
2210
|
failed: {
|
|
2128
2211
|
container: 'border-bia-red',
|
|
@@ -2318,6 +2401,60 @@ Tab.defaultProps = {
|
|
|
2318
2401
|
card: false,
|
|
2319
2402
|
};
|
|
2320
2403
|
|
|
2404
|
+
var radiusConfig = {
|
|
2405
|
+
none: '',
|
|
2406
|
+
all: 'rounded-radius-sm',
|
|
2407
|
+
top: 'rounded-t-radius-sm',
|
|
2408
|
+
right: 'rounded-tr-radius-sm',
|
|
2409
|
+
left: 'rounded-tl-radius-sm',
|
|
2410
|
+
};
|
|
2411
|
+
var variantConfig = {
|
|
2412
|
+
default: 'py-[7px] ps-[15px] pe-[10px] gap-[10px]',
|
|
2413
|
+
alternative: 'pt-[4px] pb-[4.8px] px-[20px] relative',
|
|
2414
|
+
};
|
|
2415
|
+
var defaultConfigs = {
|
|
2416
|
+
true: 'cursor-default bg-bia-grey-light-80 hover:bg-bia-coolgrey-light-90 text-primary-black ',
|
|
2417
|
+
false: 'cursor-pointer bg-bia-grey hover:bg-bia-grey-light-50 text-bia-coolgrey-dark-10',
|
|
2418
|
+
};
|
|
2419
|
+
var defaultButtonConfigs = {
|
|
2420
|
+
true: 'text-primary-black',
|
|
2421
|
+
false: 'text-primary-black',
|
|
2422
|
+
};
|
|
2423
|
+
var alternativeConfigs = {
|
|
2424
|
+
true: 'cursor-default bg-primary-white text-primary-black overflow-hidden',
|
|
2425
|
+
false: 'cursor-pointer bg-bia-verdantgreen-dark-40 hover:bg-bia-verdantgreen-dark-50 text-primary-white overflow-hidden',
|
|
2426
|
+
};
|
|
2427
|
+
var alternativeButtonConfigs = {
|
|
2428
|
+
true: 'absolute px-[5px] opacity-0 hover:opacity-100 grid-cols-2 gap-[2px] bg-gradient-to-l from-primary-white from-50% to-primary-white/[.0] inset-y-0 right-0',
|
|
2429
|
+
false: ' absolute px-[5px] opacity-0 hover:opacity-100 grid-cols-2 gap-[2px] bg-gradient-to-l from-bia-verdantgreen-dark-50 from-50% to-bia-verdantgreen-dark-50/[.0] inset-y-0 right-0',
|
|
2430
|
+
};
|
|
2431
|
+
|
|
2432
|
+
var TabMenu = function (_a) {
|
|
2433
|
+
var variant = _a.variant, _b = _a.text, text = _b === void 0 ? '' : _b, _c = _a.rounded, rounded = _c === void 0 ? 'none' : _c, _d = _a.isActive, isActive = _d === void 0 ? false : _d, _e = _a.onClose, onClose = _e === void 0 ? function () { } : _e, rest = __rest(_a, ["variant", "text", "rounded", "isActive", "onClose"]);
|
|
2434
|
+
// valiated parameter
|
|
2435
|
+
var validatedVariant = validUnion(variant, [
|
|
2436
|
+
'default',
|
|
2437
|
+
'alternative',
|
|
2438
|
+
]);
|
|
2439
|
+
var validatedRadius = validUnion(rounded, ['none', 'all', 'top', 'right', 'left']);
|
|
2440
|
+
var usedBaseConfig;
|
|
2441
|
+
var usedButtonConfig;
|
|
2442
|
+
if (validatedVariant === 'alternative') {
|
|
2443
|
+
usedBaseConfig = alternativeConfigs[isActive];
|
|
2444
|
+
usedButtonConfig = alternativeButtonConfigs[isActive];
|
|
2445
|
+
}
|
|
2446
|
+
else {
|
|
2447
|
+
usedBaseConfig = defaultConfigs[isActive];
|
|
2448
|
+
usedButtonConfig = defaultButtonConfigs[isActive];
|
|
2449
|
+
}
|
|
2450
|
+
return (React.createElement("div", __assign({ className: "tab-menu flex flex-row text-size-tiny font-normal ".concat(radiusConfig[validatedRadius], " ").concat(variantConfig[validatedVariant], " ").concat(usedBaseConfig, " ") }, rest),
|
|
2451
|
+
text,
|
|
2452
|
+
React.createElement("div", { className: "grid ".concat(usedButtonConfig, " ") },
|
|
2453
|
+
validatedVariant === 'alternative' && React.createElement("div", { className: "order-first" }),
|
|
2454
|
+
React.createElement("button", { className: "order-last", onClick: onClose },
|
|
2455
|
+
React.createElement(TbX, { size: 14 })))));
|
|
2456
|
+
};
|
|
2457
|
+
|
|
2321
2458
|
var colAlign = {
|
|
2322
2459
|
middle: 'justify-center',
|
|
2323
2460
|
right: 'justify-end',
|
|
@@ -2410,845 +2547,180 @@ TableDemo.defaultProps = {
|
|
|
2410
2547
|
tableSize: 'md',
|
|
2411
2548
|
};
|
|
2412
2549
|
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
function TbCheckBlackSmall() {
|
|
2424
|
-
return (React.createElement("svg", { width: "8", height: "6", viewBox: "0 0 8 6", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
2425
|
-
React.createElement("path", { d: "M3.11607 5.75906C3.0395 5.75922 2.96365 5.74425 2.89288 5.71502C2.82211 5.68579 2.7578 5.64287 2.70366 5.58873L0.229157 3.11365C0.173406 3.05988 0.128922 2.99554 0.0983007 2.92439C0.0676795 2.85325 0.0515342 2.77671 0.050807 2.69926C0.0500797 2.62181 0.064785 2.54498 0.0940648 2.47327C0.123345 2.40156 0.166613 2.3364 0.221344 2.28159C0.276076 2.22679 0.341175 2.18343 0.412843 2.15404C0.484511 2.12466 0.561312 2.10985 0.638767 2.11047C0.716221 2.11108 0.792777 2.12712 0.863967 2.15764C0.935157 2.18816 0.999557 2.23256 1.05341 2.28823L3.11549 4.35031L6.82841 0.638564C6.93779 0.529107 7.08617 0.467584 7.24091 0.467529C7.39565 0.467475 7.54408 0.528893 7.65353 0.638272C7.76299 0.747652 7.82451 0.896034 7.82457 1.05077C7.82462 1.20552 7.7632 1.35394 7.65382 1.4634L3.52849 5.58873C3.47434 5.64287 3.41004 5.68579 3.33927 5.71502C3.26849 5.74425 3.19265 5.75922 3.11607 5.75906Z", fill: "#2F2F2F" })));
|
|
2426
|
-
}
|
|
2427
|
-
|
|
2428
|
-
function TbCloseAbleBlack(_a) {
|
|
2429
|
-
var color = _a.color;
|
|
2430
|
-
return (React.createElement("svg", { width: "18.1", height: "18.1", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
2431
|
-
React.createElement("rect", { width: "18", height: "18", rx: "9", fill: "#DADEEB" }),
|
|
2432
|
-
React.createElement("rect", { width: "18", height: "18", rx: "9", fill: "black", fillOpacity: "0.3" }),
|
|
2433
|
-
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.9118 5.91256C13.1396 5.68475 13.1396 5.31541 12.9118 5.0876C12.684 4.8598 12.3147 4.8598 12.0869 5.0876L8.99935 8.17512L5.91183 5.0876C5.68402 4.8598 5.31468 4.8598 5.08687 5.0876C4.85906 5.31541 4.85906 5.68475 5.08687 5.91256L8.17439 9.00008L5.08687 12.0876C4.85906 12.3154 4.85906 12.6848 5.08687 12.9126C5.31468 13.1404 5.68402 13.1404 5.91183 12.9126L8.99935 9.82504L12.0869 12.9126C12.3147 13.1404 12.684 13.1404 12.9118 12.9126C13.1396 12.6848 13.1396 12.3154 12.9118 12.0876L9.82431 9.00008L12.9118 5.91256Z", fill: color })));
|
|
2434
|
-
}
|
|
2435
|
-
|
|
2436
|
-
function TbCheckWhiteSmall() {
|
|
2437
|
-
return (React.createElement("svg", { width: "8", height: "6", viewBox: "0 0 8 6", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
2438
|
-
React.createElement("path", { d: "M3.11607 5.75906C3.0395 5.75922 2.96365 5.74425 2.89288 5.71502C2.82211 5.68579 2.7578 5.64287 2.70366 5.58873L0.229157 3.11365C0.173406 3.05988 0.128922 2.99554 0.0983007 2.92439C0.0676795 2.85325 0.0515342 2.77671 0.050807 2.69926C0.0500797 2.62181 0.064785 2.54498 0.0940648 2.47327C0.123345 2.40156 0.166613 2.3364 0.221344 2.28159C0.276076 2.22679 0.341175 2.18343 0.412843 2.15404C0.484511 2.12466 0.561312 2.10985 0.638767 2.11047C0.716221 2.11108 0.792777 2.12712 0.863967 2.15764C0.935157 2.18816 0.999557 2.23256 1.05341 2.28823L3.11549 4.35031L6.82841 0.638564C6.93779 0.529107 7.08617 0.467584 7.24091 0.467529C7.39565 0.467475 7.54408 0.528893 7.65353 0.638272C7.76299 0.747652 7.82451 0.896034 7.82457 1.05077C7.82462 1.20552 7.7632 1.35394 7.65382 1.4634L3.52849 5.58873C3.47434 5.64287 3.41004 5.68579 3.33927 5.71502C3.26849 5.74425 3.19265 5.75922 3.11607 5.75906Z", fill: "white" })));
|
|
2439
|
-
}
|
|
2440
|
-
|
|
2441
|
-
function TbCloseAbleBlackSmall() {
|
|
2442
|
-
return (React.createElement("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
2443
|
-
React.createElement("rect", { width: "12", height: "12", rx: "6", fill: "#DADEEB" }),
|
|
2444
|
-
React.createElement("rect", { width: "12", height: "12", rx: "6", fill: "black", fillOpacity: "0.3" }),
|
|
2445
|
-
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.60984 3.94171C8.76171 3.78984 8.76171 3.54361 8.60984 3.39173C8.45797 3.23986 8.21174 3.23986 8.05987 3.39173L6.00152 5.45008L3.94317 3.39173C3.7913 3.23986 3.54507 3.23986 3.3932 3.39173C3.24133 3.54361 3.24133 3.78984 3.3932 3.94171L5.45155 6.00005L3.3932 8.0584C3.24133 8.21027 3.24133 8.4565 3.3932 8.60837C3.54507 8.76024 3.7913 8.76024 3.94317 8.60837L6.00152 6.55003L8.05987 8.60837C8.21174 8.76024 8.45797 8.76024 8.60984 8.60837C8.76171 8.4565 8.76171 8.21027 8.60984 8.0584L6.55149 6.00005L8.60984 3.94171Z", fill: "white" })));
|
|
2446
|
-
}
|
|
2447
|
-
|
|
2448
|
-
function TbCloseAbleWhiteSmall(_a) {
|
|
2449
|
-
var color = _a.color;
|
|
2450
|
-
return (React.createElement("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
2451
|
-
React.createElement("rect", { width: "12", height: "12", rx: "6", fill: "white", fillOpacity: "0.5" }),
|
|
2452
|
-
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.60984 3.94171C8.76171 3.78984 8.76171 3.54361 8.60984 3.39174C8.45797 3.23986 8.21174 3.23986 8.05987 3.39174L6.00152 5.45008L3.94317 3.39174C3.7913 3.23986 3.54507 3.23986 3.3932 3.39174C3.24133 3.54361 3.24133 3.78984 3.3932 3.94171L5.45155 6.00005L3.3932 8.0584C3.24133 8.21027 3.24133 8.4565 3.3932 8.60837C3.54507 8.76024 3.7913 8.76024 3.94317 8.60837L6.00152 6.55003L8.05987 8.60837C8.21174 8.76024 8.45797 8.76024 8.60984 8.60837C8.76171 8.4565 8.76171 8.21027 8.60984 8.0584L6.55149 6.00005L8.60984 3.94171Z", fill: color })));
|
|
2453
|
-
}
|
|
2454
|
-
|
|
2455
|
-
function TbCloseAbleGraySmall() {
|
|
2456
|
-
return (React.createElement("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
2457
|
-
React.createElement("rect", { width: "12", height: "12", rx: "6", fill: "#DADEEB" }),
|
|
2458
|
-
React.createElement("rect", { width: "12", height: "12", rx: "6", fill: "black", fillOpacity: "0.3" }),
|
|
2459
|
-
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.60984 3.94171C8.76171 3.78984 8.76171 3.54361 8.60984 3.39173C8.45797 3.23986 8.21174 3.23986 8.05987 3.39173L6.00152 5.45008L3.94317 3.39173C3.7913 3.23986 3.54507 3.23986 3.3932 3.39173C3.24133 3.54361 3.24133 3.78984 3.3932 3.94171L5.45155 6.00005L3.3932 8.0584C3.24133 8.21027 3.24133 8.4565 3.3932 8.60837C3.54507 8.76024 3.7913 8.76024 3.94317 8.60837L6.00152 6.55003L8.05987 8.60837C8.21174 8.76024 8.45797 8.76024 8.60984 8.60837C8.76171 8.4565 8.76171 8.21027 8.60984 8.0584L6.55149 6.00005L8.60984 3.94171Z", fill: "white" })));
|
|
2460
|
-
}
|
|
2461
|
-
|
|
2462
|
-
function TbCloseable(_a) {
|
|
2463
|
-
var color = _a.color;
|
|
2464
|
-
return (React.createElement("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
2465
|
-
React.createElement("rect", { width: "18", height: "18", rx: "9", fill: "white", fillOpacity: "0.5" }),
|
|
2466
|
-
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.9118 5.91256C13.1396 5.68475 13.1396 5.31541 12.9118 5.0876C12.684 4.8598 12.3147 4.8598 12.0869 5.0876L8.99935 8.17512L5.91183 5.0876C5.68402 4.8598 5.31468 4.8598 5.08687 5.0876C4.85906 5.31541 4.85906 5.68475 5.08687 5.91256L8.17439 9.00008L5.08687 12.0876C4.85906 12.3154 4.85906 12.6848 5.08687 12.9126C5.31468 13.1404 5.68402 13.1404 5.91183 12.9126L8.99935 9.82504L12.0869 12.9126C12.3147 13.1404 12.684 13.1404 12.9118 12.9126C13.1396 12.6848 13.1396 12.3154 12.9118 12.0876L9.82431 9.00008L12.9118 5.91256Z", fill: color })));
|
|
2467
|
-
}
|
|
2468
|
-
|
|
2469
|
-
var TagLabelConfig = {
|
|
2470
|
-
default: {
|
|
2471
|
-
md: {
|
|
2472
|
-
iconColor: 'text-white',
|
|
2473
|
-
XColor: 'text-bia-coolgrey',
|
|
2474
|
-
XcolorV: 'text-primary-black',
|
|
2475
|
-
label: {
|
|
2476
|
-
bg: 'bg-bia-grey-light-50',
|
|
2477
|
-
text: 'text-[#2F2F2F] font-normal text-[14px] leading-[18px]',
|
|
2478
|
-
padding: 'px-[10px] py-[7px] ',
|
|
2479
|
-
radius: 'rounded-[50px]',
|
|
2480
|
-
Xicon: '',
|
|
2481
|
-
},
|
|
2482
|
-
closeable: {
|
|
2483
|
-
bg: 'bg-bia-grey-light-50',
|
|
2484
|
-
text: 'text-[#2F2F2F] font-normal text-[14px] leading-[18px]',
|
|
2485
|
-
padding: 'px-[10px] py-[7px] ',
|
|
2486
|
-
radius: 'rounded-[50px]',
|
|
2487
|
-
Xicon: TbCloseAbleBlack,
|
|
2488
|
-
},
|
|
2489
|
-
icon: {
|
|
2490
|
-
bg: 'bg-bia-grey-light-50',
|
|
2491
|
-
text: 'text-[#2F2F2F] text-[18.67px]',
|
|
2492
|
-
padding: 'p-[7px] ',
|
|
2493
|
-
radius: 'rounded-[50px]',
|
|
2494
|
-
Xicon: TbCheckBlack,
|
|
2495
|
-
},
|
|
2496
|
-
},
|
|
2497
|
-
sm: {
|
|
2498
|
-
iconColor: 'text-white',
|
|
2499
|
-
XColor: 'text-bia-coolgrey',
|
|
2500
|
-
XcolorV: 'text-primary-black',
|
|
2501
|
-
label: {
|
|
2502
|
-
bg: "bg-bia-grey-light-50",
|
|
2503
|
-
text: "text-[#2F2F2F] font-normal text-[12px] leading-[15.96px]",
|
|
2504
|
-
padding: "px-[10px] py-[5px] ",
|
|
2505
|
-
radius: "rounded-[12px]",
|
|
2506
|
-
Xicon: '',
|
|
2507
|
-
},
|
|
2508
|
-
closeable: {
|
|
2509
|
-
bg: "bg-bia-grey-light-50",
|
|
2510
|
-
text: "text-[#2F2F2F] font-normal text-[12px] leading-[15.96px]",
|
|
2511
|
-
padding: "px-[10px] py-[2px]",
|
|
2512
|
-
radius: "rounded-[12px]",
|
|
2513
|
-
Xicon: TbCloseAbleBlackSmall,
|
|
2514
|
-
},
|
|
2515
|
-
icon: {
|
|
2516
|
-
bg: "bg-bia-grey-light-50",
|
|
2517
|
-
text: "text-[#2F2F2F] text-[13.06px]",
|
|
2518
|
-
padding: "p-[4px]",
|
|
2519
|
-
radius: "rounded-[12px]",
|
|
2520
|
-
Xicon: TbCheckBlackSmall,
|
|
2521
|
-
},
|
|
2522
|
-
},
|
|
2523
|
-
tn: {
|
|
2524
|
-
iconColor: 'text-white',
|
|
2525
|
-
XColor: 'text-bia-coolgrey',
|
|
2526
|
-
XcolorV: 'text-primary-black',
|
|
2527
|
-
label: {
|
|
2528
|
-
bg: "bg-bia-grey-light-50",
|
|
2529
|
-
text: "text-[#2F2F2F] font-normal text-[12px] leading-[13px]",
|
|
2530
|
-
padding: "px-[8px] py-[2px]",
|
|
2531
|
-
radius: "rounded-[12px]",
|
|
2532
|
-
Xicon: '',
|
|
2533
|
-
},
|
|
2534
|
-
closeable: {
|
|
2535
|
-
bg: "bg-bia-grey-light-50",
|
|
2536
|
-
text: "text-[#2F2F2F] font-normal text-[12px] leading-[13px]",
|
|
2537
|
-
padding: "px-[8px] py-[2px]",
|
|
2538
|
-
radius: "rounded-[12px]",
|
|
2539
|
-
Xicon: TbCloseAbleBlackSmall,
|
|
2540
|
-
},
|
|
2541
|
-
icon: {
|
|
2542
|
-
bg: "bg-bia-grey-light-50",
|
|
2543
|
-
text: "text-[#2F2F2F] text-[11.2px]",
|
|
2544
|
-
padding: "p-[3px]",
|
|
2545
|
-
radius: "rounded-[12px]",
|
|
2546
|
-
Xicon: TbCheckBlackSmall,
|
|
2547
|
-
},
|
|
2548
|
-
},
|
|
2549
|
-
},
|
|
2550
|
-
blue: {
|
|
2551
|
-
md: {
|
|
2552
|
-
iconColor: 'text-bia-blue',
|
|
2553
|
-
XColor: 'text-bia-blue-light-50',
|
|
2554
|
-
XcolorV: 'text-white',
|
|
2555
|
-
label: {
|
|
2556
|
-
bg: "bg-bia-blue",
|
|
2557
|
-
text: "text-[#FFFFFF] font-normal text-[14px] leading-[18px]",
|
|
2558
|
-
padding: "px-[10px] py-[7px] ",
|
|
2559
|
-
radius: "rounded-[50px]",
|
|
2560
|
-
Xicon: '',
|
|
2561
|
-
},
|
|
2562
|
-
closeable: {
|
|
2563
|
-
bg: "bg-bia-blue",
|
|
2564
|
-
text: "text-[#FFFFFF] font-normal text-[14px] leading-[18px]",
|
|
2565
|
-
padding: "px-[10px] py-[7px] ",
|
|
2566
|
-
radius: "rounded-[50px]",
|
|
2567
|
-
Xicon: TbCloseable,
|
|
2568
|
-
},
|
|
2569
|
-
icon: {
|
|
2570
|
-
bg: "bg-bia-blue",
|
|
2571
|
-
text: "text-[#FFFFFF] text-[18.67px]",
|
|
2572
|
-
padding: "p-[7px] ",
|
|
2573
|
-
radius: "rounded-[50px]",
|
|
2574
|
-
Xicon: TbCheck,
|
|
2575
|
-
},
|
|
2576
|
-
},
|
|
2577
|
-
sm: {
|
|
2578
|
-
iconColor: 'text-bia-blue',
|
|
2579
|
-
XColor: 'text-white',
|
|
2580
|
-
XcolorV: 'text-white',
|
|
2581
|
-
label: {
|
|
2582
|
-
bg: "bg-bia-blue",
|
|
2583
|
-
text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
|
|
2584
|
-
padding: "px-[10px] py-[2px]",
|
|
2585
|
-
radius: "rounded-[12px]",
|
|
2586
|
-
Xicon: '',
|
|
2587
|
-
},
|
|
2588
|
-
closeable: {
|
|
2589
|
-
bg: "bg-bia-blue",
|
|
2590
|
-
text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
|
|
2591
|
-
padding: "px-[10px] py-[2px] ",
|
|
2592
|
-
radius: "rounded-[12px]",
|
|
2593
|
-
Xicon: TbCloseAbleWhiteSmall,
|
|
2594
|
-
},
|
|
2595
|
-
icon: {
|
|
2596
|
-
bg: "bg-bia-blue",
|
|
2597
|
-
text: "text-[#FFF] text-[13.06px]",
|
|
2598
|
-
padding: "p-[4px] ",
|
|
2599
|
-
radius: "rounded-[12px]",
|
|
2600
|
-
Xicon: TbCheckWhiteSmall,
|
|
2601
|
-
},
|
|
2602
|
-
},
|
|
2603
|
-
tn: {
|
|
2604
|
-
iconColor: 'text-bia-blue',
|
|
2605
|
-
XColor: 'text-white',
|
|
2606
|
-
XcolorV: 'text-white',
|
|
2607
|
-
label: {
|
|
2608
|
-
bg: "bg-bia-blue",
|
|
2609
|
-
text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
|
|
2610
|
-
padding: "px-[8px] py-[2px]",
|
|
2611
|
-
radius: "rounded-[12px]",
|
|
2612
|
-
Xicon: '',
|
|
2613
|
-
},
|
|
2614
|
-
closeable: {
|
|
2615
|
-
bg: "bg-bia-blue",
|
|
2616
|
-
text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
|
|
2617
|
-
padding: "px-[8px] py-[2px]",
|
|
2618
|
-
radius: "rounded-[12px]",
|
|
2619
|
-
Xicon: TbCloseAbleWhiteSmall,
|
|
2620
|
-
},
|
|
2621
|
-
icon: {
|
|
2622
|
-
bg: "bg-bia-blue",
|
|
2623
|
-
text: "text-[#FFF] text-[13.06px]",
|
|
2624
|
-
padding: "p-[3px]",
|
|
2625
|
-
radius: "rounded-[12px]",
|
|
2626
|
-
Xicon: TbCheckWhiteSmall,
|
|
2627
|
-
},
|
|
2628
|
-
},
|
|
2629
|
-
},
|
|
2630
|
-
teal: {
|
|
2631
|
-
md: {
|
|
2632
|
-
iconColor: 'text-bia-teal',
|
|
2633
|
-
XColor: 'text-bia-teal-light-50',
|
|
2634
|
-
XcolorV: 'text-white',
|
|
2635
|
-
label: {
|
|
2636
|
-
bg: "bg-bia-teal",
|
|
2637
|
-
text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
|
|
2638
|
-
padding: "px-[10px] py-[7px] ",
|
|
2639
|
-
radius: "rounded-[50px]",
|
|
2640
|
-
Xicon: '',
|
|
2641
|
-
},
|
|
2642
|
-
closeable: {
|
|
2643
|
-
bg: "bg-bia-teal",
|
|
2644
|
-
text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
|
|
2645
|
-
padding: "px-[10px] py-[7px] ",
|
|
2646
|
-
radius: "rounded-[50px]",
|
|
2647
|
-
Xicon: TbCloseable,
|
|
2648
|
-
},
|
|
2649
|
-
icon: {
|
|
2650
|
-
bg: "bg-bia-teal",
|
|
2651
|
-
text: "text-[#FFF] text-[18.67px]",
|
|
2652
|
-
padding: "p-[7px] ",
|
|
2653
|
-
radius: "rounded-[50px]",
|
|
2654
|
-
Xicon: TbCheck,
|
|
2655
|
-
},
|
|
2656
|
-
},
|
|
2657
|
-
sm: {
|
|
2658
|
-
iconColor: 'text-bia-teal',
|
|
2659
|
-
XColor: 'text-white',
|
|
2660
|
-
XcolorV: 'text-white',
|
|
2661
|
-
label: {
|
|
2662
|
-
bg: "bg-bia-teal",
|
|
2663
|
-
text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
|
|
2664
|
-
padding: "px-[10px] py-[2px]",
|
|
2665
|
-
radius: "rounded-[12px]",
|
|
2666
|
-
Xicon: '',
|
|
2667
|
-
},
|
|
2668
|
-
closeable: {
|
|
2669
|
-
bg: "bg-bia-teal",
|
|
2670
|
-
text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
|
|
2671
|
-
padding: "px-[10px] py-[2px]",
|
|
2672
|
-
radius: "rounded-[12px]",
|
|
2673
|
-
Xicon: TbCloseAbleWhiteSmall,
|
|
2674
|
-
},
|
|
2675
|
-
icon: {
|
|
2676
|
-
bg: "bg-bia-teal",
|
|
2677
|
-
text: "text-[#FFF] text-[13.06px]",
|
|
2678
|
-
padding: "p-[4px]",
|
|
2679
|
-
radius: "rounded-[12px]",
|
|
2680
|
-
Xicon: TbCheckWhiteSmall,
|
|
2681
|
-
},
|
|
2682
|
-
},
|
|
2683
|
-
tn: {
|
|
2684
|
-
iconColor: 'text-bia-teal',
|
|
2685
|
-
XColor: 'text-white',
|
|
2686
|
-
XcolorV: 'text-white',
|
|
2687
|
-
label: {
|
|
2688
|
-
bg: "bg-bia-teal",
|
|
2689
|
-
text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
|
|
2690
|
-
padding: "px-[8px] py-[2px]",
|
|
2691
|
-
radius: "rounded-[12px]",
|
|
2692
|
-
Xicon: '',
|
|
2693
|
-
},
|
|
2694
|
-
closeable: {
|
|
2695
|
-
bg: "bg-bia-teal",
|
|
2696
|
-
text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
|
|
2697
|
-
padding: "px-[8px] py-[2px]",
|
|
2698
|
-
radius: "rounded-[12px]",
|
|
2699
|
-
Xicon: TbCloseAbleWhiteSmall,
|
|
2700
|
-
},
|
|
2701
|
-
icon: {
|
|
2702
|
-
bg: "bg-bia-teal",
|
|
2703
|
-
text: "text-[#FFF] text-[11.2px]",
|
|
2704
|
-
padding: "p-[3px] ",
|
|
2705
|
-
radius: "rounded-[12px]",
|
|
2706
|
-
Xicon: TbCheckWhiteSmall,
|
|
2707
|
-
},
|
|
2708
|
-
},
|
|
2709
|
-
},
|
|
2710
|
-
green: {
|
|
2711
|
-
md: {
|
|
2712
|
-
iconColor: 'text-bia-green',
|
|
2713
|
-
XColor: 'text-bia-green-light-50',
|
|
2714
|
-
XcolorV: 'text-white',
|
|
2715
|
-
label: {
|
|
2716
|
-
bg: "bg-bia-green",
|
|
2717
|
-
text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
|
|
2718
|
-
padding: "px-[10px] py-[7px] ",
|
|
2719
|
-
radius: "rounded-[50px]",
|
|
2720
|
-
Xicon: '',
|
|
2721
|
-
},
|
|
2722
|
-
closeable: {
|
|
2723
|
-
bg: "bg-bia-green",
|
|
2724
|
-
text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
|
|
2725
|
-
padding: "px-[10px] py-[7px] ",
|
|
2726
|
-
radius: "rounded-[50px]",
|
|
2727
|
-
Xicon: TbCloseable,
|
|
2728
|
-
},
|
|
2729
|
-
icon: {
|
|
2730
|
-
bg: "bg-bia-green",
|
|
2731
|
-
text: "text-[#FFF] text-[18.67px]",
|
|
2732
|
-
padding: "p-[7px] ",
|
|
2733
|
-
radius: "rounded-[50px]",
|
|
2734
|
-
Xicon: TbCheck,
|
|
2735
|
-
},
|
|
2736
|
-
},
|
|
2737
|
-
sm: {
|
|
2738
|
-
iconColor: 'text-bia-green',
|
|
2739
|
-
XColor: 'text-white',
|
|
2740
|
-
XcolorV: 'text-white',
|
|
2741
|
-
label: {
|
|
2742
|
-
bg: "bg-bia-green",
|
|
2743
|
-
text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
|
|
2744
|
-
padding: "px-[10px] py-[2px]",
|
|
2745
|
-
radius: "rounded-[12px]",
|
|
2746
|
-
Xicon: '',
|
|
2747
|
-
},
|
|
2748
|
-
closeable: {
|
|
2749
|
-
bg: "bg-bia-green",
|
|
2750
|
-
text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
|
|
2751
|
-
padding: "px-[10px] py-[2px]",
|
|
2752
|
-
radius: "rounded-[12px]",
|
|
2753
|
-
Xicon: TbCloseAbleWhiteSmall,
|
|
2754
|
-
},
|
|
2755
|
-
icon: {
|
|
2756
|
-
bg: "bg-bia-green",
|
|
2757
|
-
text: "text-[#FFF] text-[13.06px]",
|
|
2758
|
-
padding: "p-[4px] ",
|
|
2759
|
-
radius: "rounded-[12px]",
|
|
2760
|
-
Xicon: TbCheckWhiteSmall,
|
|
2761
|
-
},
|
|
2762
|
-
},
|
|
2763
|
-
tn: {
|
|
2764
|
-
iconColor: 'text-bia-green',
|
|
2765
|
-
XColor: 'text-white',
|
|
2766
|
-
XcolorV: 'text-white',
|
|
2767
|
-
label: {
|
|
2768
|
-
bg: "bg-bia-green",
|
|
2769
|
-
text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
|
|
2770
|
-
padding: "px-[8px] py-[2px] ",
|
|
2771
|
-
radius: "rounded-[12px]",
|
|
2772
|
-
Xicon: '',
|
|
2773
|
-
},
|
|
2774
|
-
closeable: {
|
|
2775
|
-
bg: "bg-bia-green",
|
|
2776
|
-
text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
|
|
2777
|
-
padding: "px-[8px] py-[2px] ",
|
|
2778
|
-
radius: "rounded-[12px]",
|
|
2779
|
-
Xicon: TbCloseAbleWhiteSmall,
|
|
2780
|
-
},
|
|
2781
|
-
icon: {
|
|
2782
|
-
bg: "bg-bia-green",
|
|
2783
|
-
text: "text-[#FFF] text-[11.2px]",
|
|
2784
|
-
padding: "p-[3px] ",
|
|
2785
|
-
radius: "rounded-[12px]",
|
|
2786
|
-
Xicon: TbCheckWhiteSmall,
|
|
2787
|
-
},
|
|
2788
|
-
},
|
|
2789
|
-
},
|
|
2790
|
-
yellow: {
|
|
2791
|
-
md: {
|
|
2792
|
-
iconColor: 'text-bia-orange',
|
|
2793
|
-
XColor: 'text-bia-orange-light-50',
|
|
2794
|
-
XcolorV: 'text-white',
|
|
2795
|
-
label: {
|
|
2796
|
-
bg: "bg-[#FF7B00]",
|
|
2797
|
-
text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
|
|
2798
|
-
padding: "px-[10px] py-[7px] ",
|
|
2799
|
-
radius: "rounded-[50px]",
|
|
2800
|
-
Xicon: '',
|
|
2801
|
-
},
|
|
2802
|
-
closeable: {
|
|
2803
|
-
bg: "bg-[#FF7B00]",
|
|
2804
|
-
text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
|
|
2805
|
-
padding: "px-[10px] py-[7px] ",
|
|
2806
|
-
radius: "rounded-[50px]",
|
|
2807
|
-
Xicon: TbCloseable,
|
|
2808
|
-
},
|
|
2809
|
-
icon: {
|
|
2810
|
-
bg: "bg-[#FF7B00]",
|
|
2811
|
-
text: "text-[#FFF] text-[18.67px]",
|
|
2812
|
-
padding: "p-[7px] ",
|
|
2813
|
-
radius: "rounded-[50px]",
|
|
2814
|
-
Xicon: TbCheck,
|
|
2815
|
-
},
|
|
2816
|
-
},
|
|
2817
|
-
sm: {
|
|
2818
|
-
iconColor: 'text-bia-orange',
|
|
2819
|
-
XColor: 'text-white',
|
|
2820
|
-
XcolorV: 'text-white',
|
|
2821
|
-
label: {
|
|
2822
|
-
bg: "bg-[#FF7B00]",
|
|
2823
|
-
text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
|
|
2824
|
-
padding: "px-[10px] py-[2px]",
|
|
2825
|
-
radius: "rounded-[12px]",
|
|
2826
|
-
Xicon: '',
|
|
2827
|
-
},
|
|
2828
|
-
closeable: {
|
|
2829
|
-
bg: "bg-[#FF7B00]",
|
|
2830
|
-
text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
|
|
2831
|
-
padding: "px-[10px] py-[2px]",
|
|
2832
|
-
radius: "rounded-[12px]",
|
|
2833
|
-
Xicon: TbCloseAbleWhiteSmall,
|
|
2834
|
-
},
|
|
2835
|
-
icon: {
|
|
2836
|
-
bg: "bg-[#FF7B00]",
|
|
2837
|
-
text: "text-[#FFF] text-[13.06px]",
|
|
2838
|
-
padding: "p-[4px]",
|
|
2839
|
-
radius: "rounded-[12px]",
|
|
2840
|
-
Xicon: TbCheckWhiteSmall,
|
|
2841
|
-
},
|
|
2842
|
-
},
|
|
2843
|
-
tn: {
|
|
2844
|
-
iconColor: 'text-bia-orange',
|
|
2845
|
-
XColor: 'text-white',
|
|
2846
|
-
XcolorV: 'text-white',
|
|
2847
|
-
label: {
|
|
2848
|
-
bg: "bg-[#FF7B00]",
|
|
2849
|
-
text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
|
|
2850
|
-
padding: "px-[8px] py-[2px]",
|
|
2851
|
-
radius: "rounded-[12px]",
|
|
2852
|
-
Xicon: '',
|
|
2853
|
-
},
|
|
2854
|
-
closeable: {
|
|
2855
|
-
bg: "bg-[#FF7B00]",
|
|
2856
|
-
text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
|
|
2857
|
-
padding: "px-[8px] py-[2px] ",
|
|
2858
|
-
radius: "rounded-[12px]",
|
|
2859
|
-
Xicon: TbCloseAbleWhiteSmall,
|
|
2860
|
-
},
|
|
2861
|
-
icon: {
|
|
2862
|
-
bg: "bg-[#FF7B00]",
|
|
2863
|
-
text: "text-[#FFF] text-[11.2px]",
|
|
2864
|
-
padding: "p-[3px] ",
|
|
2865
|
-
radius: "rounded-[12px]",
|
|
2866
|
-
Xicon: TbCheckWhiteSmall,
|
|
2867
|
-
},
|
|
2868
|
-
},
|
|
2869
|
-
},
|
|
2870
|
-
red: {
|
|
2871
|
-
md: {
|
|
2872
|
-
iconColor: 'text-bia-red',
|
|
2873
|
-
XColor: 'text-bia-red-light-50',
|
|
2874
|
-
XcolorV: 'text-white',
|
|
2875
|
-
label: {
|
|
2876
|
-
bg: "bg-bia-red",
|
|
2877
|
-
text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
|
|
2878
|
-
padding: "px-[10px] py-[7px] ",
|
|
2879
|
-
radius: "rounded-[50px]",
|
|
2880
|
-
Xicon: '',
|
|
2881
|
-
},
|
|
2882
|
-
closeable: {
|
|
2883
|
-
bg: "bg-bia-red",
|
|
2884
|
-
text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
|
|
2885
|
-
padding: "px-[10px] py-[7px] ",
|
|
2886
|
-
radius: "rounded-[50px]",
|
|
2887
|
-
Xicon: TbCloseable,
|
|
2888
|
-
},
|
|
2889
|
-
icon: {
|
|
2890
|
-
bg: "bg-bia-red",
|
|
2891
|
-
text: "text-[#FFF] text-[18.67px]",
|
|
2892
|
-
padding: "p-[7px]",
|
|
2893
|
-
radius: "rounded-[50px]",
|
|
2894
|
-
Xicon: TbCheck,
|
|
2895
|
-
},
|
|
2896
|
-
},
|
|
2897
|
-
sm: {
|
|
2898
|
-
iconColor: 'text-bia-red',
|
|
2899
|
-
XColor: 'text-white',
|
|
2900
|
-
XcolorV: 'text-white',
|
|
2901
|
-
label: {
|
|
2902
|
-
bg: "bg-bia-red",
|
|
2903
|
-
text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
|
|
2904
|
-
padding: "px-[10px] py-[2px]",
|
|
2905
|
-
radius: "rounded-[12px]",
|
|
2906
|
-
Xicon: '',
|
|
2907
|
-
},
|
|
2908
|
-
closeable: {
|
|
2909
|
-
bg: "bg-bia-red",
|
|
2910
|
-
text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
|
|
2911
|
-
padding: "px-[10px] py-[2px] ",
|
|
2912
|
-
radius: "rounded-[12px]",
|
|
2913
|
-
Xicon: TbCloseAbleWhiteSmall,
|
|
2914
|
-
},
|
|
2915
|
-
icon: {
|
|
2916
|
-
bg: "bg-bia-red",
|
|
2917
|
-
text: "text-[#FFF] text-[13.06px]",
|
|
2918
|
-
padding: "p-[4px] ",
|
|
2919
|
-
radius: "rounded-[12px]",
|
|
2920
|
-
Xicon: TbCheckWhiteSmall,
|
|
2921
|
-
},
|
|
2922
|
-
},
|
|
2923
|
-
tn: {
|
|
2924
|
-
iconColor: 'text-bia-red',
|
|
2925
|
-
XColor: 'text-white',
|
|
2926
|
-
XcolorV: 'text-white',
|
|
2927
|
-
label: {
|
|
2928
|
-
bg: "bg-bia-red",
|
|
2929
|
-
text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
|
|
2930
|
-
padding: "px-[8px] py-[2px] ",
|
|
2931
|
-
radius: "rounded-[12px]",
|
|
2932
|
-
Xicon: '',
|
|
2933
|
-
},
|
|
2934
|
-
closeable: {
|
|
2935
|
-
bg: "bg-bia-red",
|
|
2936
|
-
text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
|
|
2937
|
-
padding: "px-[8px] py-[2px] ",
|
|
2938
|
-
radius: "rounded-[12px]",
|
|
2939
|
-
Xicon: TbCloseAbleWhiteSmall,
|
|
2940
|
-
},
|
|
2941
|
-
icon: {
|
|
2942
|
-
bg: "bg-bia-red",
|
|
2943
|
-
text: "text-[#FFF] text-[11.2px]",
|
|
2944
|
-
padding: "p-[3px] ",
|
|
2945
|
-
radius: "rounded-[12px]",
|
|
2946
|
-
Xicon: TbCheckWhiteSmall,
|
|
2947
|
-
},
|
|
2948
|
-
},
|
|
2949
|
-
},
|
|
2950
|
-
black: {
|
|
2951
|
-
md: {
|
|
2952
|
-
iconColor: 'text-[#2f2f2f]',
|
|
2953
|
-
XColor: 'text-bia-coolgrey',
|
|
2954
|
-
XcolorV: 'text-white',
|
|
2955
|
-
label: {
|
|
2956
|
-
bg: "bg-primary-black",
|
|
2957
|
-
text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
|
|
2958
|
-
padding: "px-[10px] py-[7px] ",
|
|
2959
|
-
radius: "rounded-[50px]",
|
|
2960
|
-
Xicon: '',
|
|
2961
|
-
},
|
|
2962
|
-
closeable: {
|
|
2963
|
-
bg: "bg-primary-black",
|
|
2964
|
-
text: "text-[#FFF] font-normal text-[14px] leading-[18px]",
|
|
2965
|
-
padding: "px-[10px] py-[7px] ",
|
|
2966
|
-
radius: "rounded-[50px]",
|
|
2967
|
-
Xicon: TbCloseable,
|
|
2968
|
-
},
|
|
2969
|
-
icon: {
|
|
2970
|
-
bg: "bg-primary-black",
|
|
2971
|
-
text: "text-[#FFF] text-[18.67px]",
|
|
2972
|
-
padding: "p-[7px] ",
|
|
2973
|
-
radius: "rounded-[50px]",
|
|
2974
|
-
Xicon: TbCheck,
|
|
2975
|
-
},
|
|
2976
|
-
},
|
|
2977
|
-
sm: {
|
|
2978
|
-
iconColor: 'text-[#2f2f2f]',
|
|
2979
|
-
XColor: 'text-white',
|
|
2980
|
-
XcolorV: 'text-white',
|
|
2981
|
-
label: {
|
|
2982
|
-
bg: "bg-primary-black",
|
|
2983
|
-
text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
|
|
2984
|
-
padding: "px-[10px] py-[2px] ",
|
|
2985
|
-
radius: "rounded-[12px]",
|
|
2986
|
-
Xicon: '',
|
|
2987
|
-
},
|
|
2988
|
-
closeable: {
|
|
2989
|
-
bg: "bg-primary-black",
|
|
2990
|
-
text: "text-[#FFF] font-normal text-[12px] leading-[15.96px]",
|
|
2991
|
-
padding: "px-[10px] py-[2px] ",
|
|
2992
|
-
radius: "rounded-[12px]",
|
|
2993
|
-
Xicon: TbCloseAbleWhiteSmall,
|
|
2994
|
-
},
|
|
2995
|
-
icon: {
|
|
2996
|
-
bg: "bg-primary-black",
|
|
2997
|
-
text: "text-[#FFF] text-[13.06px]",
|
|
2998
|
-
padding: "p-[4px] ",
|
|
2999
|
-
radius: "rounded-[12px]",
|
|
3000
|
-
Xicon: TbCheckWhiteSmall,
|
|
3001
|
-
},
|
|
3002
|
-
},
|
|
3003
|
-
tn: {
|
|
3004
|
-
iconColor: 'text-[#2f2f2f]',
|
|
3005
|
-
XColor: 'text-white',
|
|
3006
|
-
XcolorV: 'text-white',
|
|
3007
|
-
label: {
|
|
3008
|
-
bg: "bg-primary-black",
|
|
3009
|
-
text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
|
|
3010
|
-
padding: "px-[8px] py-[2px] ",
|
|
3011
|
-
radius: "rounded-[12px]",
|
|
3012
|
-
Xicon: '',
|
|
3013
|
-
},
|
|
3014
|
-
closeable: {
|
|
3015
|
-
bg: "bg-primary-black",
|
|
3016
|
-
text: "text-[#FFF] font-normal text-[12px] leading-[13px]",
|
|
3017
|
-
padding: "px-[8px] py-[2px] ",
|
|
3018
|
-
radius: "rounded-[12px]",
|
|
3019
|
-
Xicon: TbCloseAbleWhiteSmall,
|
|
3020
|
-
},
|
|
3021
|
-
icon: {
|
|
3022
|
-
bg: "bg-primary-black",
|
|
3023
|
-
text: "text-[#FFF] text-[11.2px]",
|
|
3024
|
-
padding: "p-[3px] ",
|
|
3025
|
-
radius: "rounded-[12px]",
|
|
3026
|
-
Xicon: TbCheckWhiteSmall,
|
|
3027
|
-
},
|
|
3028
|
-
},
|
|
3029
|
-
},
|
|
3030
|
-
white: {
|
|
3031
|
-
md: {
|
|
3032
|
-
iconColor: 'text-white',
|
|
3033
|
-
XColor: 'text-bia-grey-dark-30 group-focus:outline-2',
|
|
3034
|
-
XcolorV: 'text-primary-black',
|
|
3035
|
-
label: {
|
|
3036
|
-
bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
|
|
3037
|
-
text: "text-[#2F2F2F] font-normal text-[14px] leading-[18px]",
|
|
3038
|
-
padding: "px-[10px] py-[7px] ",
|
|
3039
|
-
radius: "rounded-[50px]",
|
|
3040
|
-
Xicon: '',
|
|
3041
|
-
},
|
|
3042
|
-
closeable: {
|
|
3043
|
-
bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
|
|
3044
|
-
text: "text-[#2F2F2F] font-normal text-[14px] leading-[18px]",
|
|
3045
|
-
padding: "px-[10px] py-[7px] ",
|
|
3046
|
-
radius: "rounded-[50px]",
|
|
3047
|
-
Xicon: TbCloseAbleBlack,
|
|
3048
|
-
},
|
|
3049
|
-
icon: {
|
|
3050
|
-
bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
|
|
3051
|
-
text: "text-[#2F2F2F] text-[18.67px]",
|
|
3052
|
-
padding: "p-[7px]",
|
|
3053
|
-
radius: "rounded-[50px]",
|
|
3054
|
-
Xicon: TbCheckBlack,
|
|
3055
|
-
},
|
|
3056
|
-
},
|
|
3057
|
-
sm: {
|
|
3058
|
-
iconColor: 'text-white',
|
|
3059
|
-
XColor: 'text-bia-grey-dark-30 group-focus:outline-2',
|
|
3060
|
-
XcolorV: 'text-primary-black',
|
|
3061
|
-
label: {
|
|
3062
|
-
bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
|
|
3063
|
-
text: "text-[#2F2F2F] font-normal text-[12px] leading-[15.96px]",
|
|
3064
|
-
padding: "px-[10px] py-[2px] ",
|
|
3065
|
-
radius: "rounded-[12px]",
|
|
3066
|
-
Xicon: '',
|
|
3067
|
-
},
|
|
3068
|
-
closeable: {
|
|
3069
|
-
bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
|
|
3070
|
-
text: "text-[#2F2F2F] font-normal text-[12px] leading-[15.96px]",
|
|
3071
|
-
padding: "px-[10px] py-[2px] ",
|
|
3072
|
-
radius: "rounded-[12px]",
|
|
3073
|
-
Xicon: TbCloseAbleGraySmall,
|
|
3074
|
-
},
|
|
3075
|
-
icon: {
|
|
3076
|
-
bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
|
|
3077
|
-
text: "text-[#2F2F2F] text-[6.53px]",
|
|
3078
|
-
padding: "p-[4px] ",
|
|
3079
|
-
radius: "rounded-[12px]",
|
|
3080
|
-
Xicon: TbCheckBlackSmall,
|
|
3081
|
-
},
|
|
3082
|
-
},
|
|
3083
|
-
tn: {
|
|
3084
|
-
iconColor: 'text-white',
|
|
3085
|
-
XColor: 'text-bia-grey-dark-30 group-focus:outline-2',
|
|
3086
|
-
XcolorV: 'text-primary-black',
|
|
3087
|
-
label: {
|
|
3088
|
-
bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
|
|
3089
|
-
text: "text-[#2F2F2F] font-normal text-[12px] leading-[13px]",
|
|
3090
|
-
padding: "px-[8px] py-[2px] ",
|
|
3091
|
-
radius: "rounded-[12px]",
|
|
3092
|
-
Xicon: '',
|
|
3093
|
-
},
|
|
3094
|
-
closeable: {
|
|
3095
|
-
bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
|
|
3096
|
-
text: "text-[#2F2F2F] font-normal text-[12px] leading-[13px]",
|
|
3097
|
-
padding: "px-[8px] py-[2px] ",
|
|
3098
|
-
radius: "rounded-[12px]",
|
|
3099
|
-
Xicon: TbCloseAbleGraySmall,
|
|
3100
|
-
},
|
|
3101
|
-
icon: {
|
|
3102
|
-
bg: "bg-primary-white border-[1px] border-bia-grey-dark-10",
|
|
3103
|
-
text: "text-[#2F2F2F] text-[11.2px]",
|
|
3104
|
-
padding: "p-[3px] ",
|
|
3105
|
-
radius: "rounded-[12px]",
|
|
3106
|
-
Xicon: TbCheckBlackSmall,
|
|
3107
|
-
},
|
|
3108
|
-
},
|
|
3109
|
-
},
|
|
2550
|
+
var colorConfig = {
|
|
2551
|
+
default: 'bg-bia-grey-light-50 text-primary-black',
|
|
2552
|
+
blue: 'bg-bia-blue text-primary-white',
|
|
2553
|
+
teal: 'bg-bia-teal text-primary-white',
|
|
2554
|
+
green: 'bg-bia-green text-primary-white',
|
|
2555
|
+
yellow: 'bg-bia-yellow text-primary-white',
|
|
2556
|
+
red: 'bg-bia-red text-primary-white',
|
|
2557
|
+
black: 'bg-primary-black text-primary-white',
|
|
2558
|
+
white: 'bg-primary-white text-primary-black border border-primary-black',
|
|
3110
2559
|
};
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
if (size === 'tn') {
|
|
3116
|
-
iconSize = '10';
|
|
3117
|
-
}
|
|
3118
|
-
else if (size === 'sm') {
|
|
3119
|
-
iconSize = '10';
|
|
3120
|
-
}
|
|
3121
|
-
else {
|
|
3122
|
-
iconSize = '14';
|
|
3123
|
-
}
|
|
3124
|
-
return (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: iconSize, height: iconSize, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "icon icon-tabler icons-tabler-outline icon-tabler-x" },
|
|
3125
|
-
React.createElement("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
|
|
3126
|
-
React.createElement("path", { d: "M18 6l-12 12" }),
|
|
3127
|
-
React.createElement("path", { d: "M6 6l12 12" })));
|
|
3128
|
-
}
|
|
3129
|
-
CloseIcon.defaultProps = {
|
|
3130
|
-
size: 'md',
|
|
2560
|
+
var sizeConfig = {
|
|
2561
|
+
md: 'px-[10px] py-[7px] h-[34px] text-size-base',
|
|
2562
|
+
sm: 'px-[10px] py-[4px] h-[22px] text-size-sm',
|
|
2563
|
+
tn: 'px-[8px] py-[2px] h-[18px] text-size-sm',
|
|
3131
2564
|
};
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
2565
|
+
var iconOnlySizeConfig = {
|
|
2566
|
+
md: 'p-[7px]',
|
|
2567
|
+
sm: 'p-[4px]',
|
|
2568
|
+
tn: 'p-[2px]',
|
|
2569
|
+
};
|
|
2570
|
+
var closeColorConfig = {
|
|
2571
|
+
default: 'bg-bia-grey-dark-30 text-primary-white',
|
|
2572
|
+
blue: 'bg-bia-white-transparent-50 text-bia-blue',
|
|
2573
|
+
teal: 'bg-bia-white-transparent-50 text-bia-teal',
|
|
2574
|
+
green: 'bg-bia-white-transparent-50 text-bia-green',
|
|
2575
|
+
yellow: 'bg-bia-white-transparent-50 text-bia-yellow',
|
|
2576
|
+
red: 'bg-bia-white-transparent-50 text-bia-red',
|
|
2577
|
+
black: 'bg-bia-white-transparent-50 text-primary-black',
|
|
2578
|
+
white: 'bg-bia-grey-dark-30 text-primary-white',
|
|
2579
|
+
};
|
|
2580
|
+
var closeSizeConfig = {
|
|
2581
|
+
md: 'w-[18px] h-[18px] text-[14px]',
|
|
2582
|
+
sm: 'w-[12px] h-[12px] text-[9.33px]',
|
|
2583
|
+
tn: 'w-[12px] h-[12px] text-[9.33px]',
|
|
2584
|
+
};
|
|
2585
|
+
var rightPaddingConfig = {
|
|
2586
|
+
md: 'pr-[8px]',
|
|
2587
|
+
sm: 'pr-[5px]',
|
|
2588
|
+
tn: 'pr-[3px]',
|
|
2589
|
+
};
|
|
2590
|
+
|
|
2591
|
+
var colorUnion = [
|
|
2592
|
+
'default',
|
|
2593
|
+
'blue',
|
|
2594
|
+
'teal',
|
|
2595
|
+
'green',
|
|
2596
|
+
'yellow',
|
|
2597
|
+
'red',
|
|
2598
|
+
'black',
|
|
2599
|
+
'white',
|
|
2600
|
+
'custom',
|
|
2601
|
+
];
|
|
2602
|
+
var sizeUnion = ['md', 'sm', 'tn'];
|
|
2603
|
+
var variantUnion = ['label', 'icon', 'closeable'];
|
|
2604
|
+
var TagLabel = function (_a) {
|
|
2605
|
+
var color = _a.color, _b = _a.size, size = _b === void 0 ? 'md' : _b, variant = _a.variant, closeHandler = _a.closeHandler, open = _a.open, text = _a.text, leftIcon = _a.leftIcon, rightIcon = _a.rightIcon; _a.left; _a.right; var bgColor = _a.bgColor, textColor = _a.textColor, isBlock = _a.isBlock, maxWidth = _a.maxWidth, isDark = _a.isDark, props = __rest(_a, ["color", "size", "variant", "closeHandler", "open", "text", "leftIcon", "rightIcon", "left", "right", "bgColor", "textColor", "isBlock", "maxWidth", "isDark"]);
|
|
2606
|
+
var validatedColor = validUnion(color, colorUnion);
|
|
2607
|
+
var validatedSize = validUnion(size, sizeUnion);
|
|
2608
|
+
var validatedVariant = validUnion(variant, variantUnion);
|
|
2609
|
+
var containerRef = React.useRef(null);
|
|
2610
|
+
var _c = React.useState(null), sizeCount = _c[0], setSizeCount = _c[1];
|
|
2611
|
+
React.useEffect(function () {
|
|
2612
|
+
if (variant === 'icon') {
|
|
2613
|
+
// Get the size of the icon
|
|
2614
|
+
// and set the size of the container
|
|
2615
|
+
// to the one with the biggest size (width or height icon)
|
|
2616
|
+
// in order to make the container square
|
|
2617
|
+
var rect = containerRef.current.getBoundingClientRect();
|
|
2618
|
+
var width = rect.width;
|
|
2619
|
+
var height = rect.height;
|
|
2620
|
+
if (width > height)
|
|
2621
|
+
setSizeCount(width);
|
|
2622
|
+
else
|
|
2623
|
+
setSizeCount(height);
|
|
3186
2624
|
}
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
var
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
React.createElement(
|
|
3215
|
-
}
|
|
2625
|
+
}, []);
|
|
2626
|
+
var defaultIconSize = validatedSize === 'md' ? 'text-xl' : 'text-sm';
|
|
2627
|
+
var roundedClass = validatedVariant === 'icon' ? 'rounded-full' : 'rounded-[50px]';
|
|
2628
|
+
var sizeClass = validatedVariant === 'icon'
|
|
2629
|
+
? iconOnlySizeConfig[validatedSize]
|
|
2630
|
+
: sizeConfig[validatedSize];
|
|
2631
|
+
var isCloseableClass = validatedVariant === 'closeable' && rightPaddingConfig[validatedSize];
|
|
2632
|
+
var colorClass = validatedColor === 'custom'
|
|
2633
|
+
? "bg-bia-".concat(bgColor, " text-bia-").concat(textColor)
|
|
2634
|
+
: colorConfig[validatedColor];
|
|
2635
|
+
var blockclass = isBlock && validatedVariant !== 'icon' ? 'w-full' : "w-fit";
|
|
2636
|
+
var maxWidthStyle = !isBlock ? maxWidth + 'px' : '';
|
|
2637
|
+
var textClass = isBlock ? 'text-center' : 'text-left';
|
|
2638
|
+
var containerClass = "".concat(sizeClass, " ").concat(colorClass, " ").concat(roundedClass, " ").concat(isCloseableClass, " ").concat(blockclass);
|
|
2639
|
+
var closeColor = validatedColor === 'custom'
|
|
2640
|
+
? isDark
|
|
2641
|
+
? "bg-bia-white-transparent-50 text-bia-".concat(bgColor)
|
|
2642
|
+
: "bg-bia-grey-dark-30 text-bia-".concat(bgColor)
|
|
2643
|
+
: closeColorConfig[validatedColor];
|
|
2644
|
+
var closeClass = "".concat(closeColor, " ").concat(closeSizeConfig[validatedSize]);
|
|
2645
|
+
return (open && (React.createElement("div", __assign({ className: "tag-label flex items-center gap-x-[5px] text-size-base ".concat(containerClass), style: {
|
|
2646
|
+
maxWidth: maxWidthStyle,
|
|
2647
|
+
} }, props),
|
|
2648
|
+
leftIcon && (React.createElement("div", { style: {
|
|
2649
|
+
width: sizeCount + 'px',
|
|
2650
|
+
height: sizeCount + 'px',
|
|
2651
|
+
}, className: "flex items-center justify-center", ref: containerRef }, leftIcon ||
|
|
2652
|
+
(validatedVariant === 'icon' && (React.createElement(TbCheck, { className: defaultIconSize }))))),
|
|
2653
|
+
validatedVariant !== 'icon' && text && (React.createElement("span", { className: "w-full truncate pb-[2px] ".concat(textClass) }, text)),
|
|
2654
|
+
validatedVariant === 'label' && rightIcon && (React.createElement("div", { className: "block" },
|
|
2655
|
+
" ",
|
|
2656
|
+
rightIcon,
|
|
2657
|
+
" ")),
|
|
2658
|
+
validatedVariant === 'closeable' && (React.createElement("button", { type: "button", onClick: closeHandler, className: "flex aspect-square items-center justify-center rounded-full pt-[1px] ".concat(closeClass) },
|
|
2659
|
+
React.createElement(TbX, null))))));
|
|
2660
|
+
};
|
|
3216
2661
|
TagLabel.defaultProps = {
|
|
3217
2662
|
variant: 'default',
|
|
3218
2663
|
size: 'sm',
|
|
3219
2664
|
open: true,
|
|
3220
2665
|
closeHandler: function () { },
|
|
3221
|
-
rightIcon: null,
|
|
3222
2666
|
leftIcon: null,
|
|
2667
|
+
rightIcon: null,
|
|
2668
|
+
left: null,
|
|
2669
|
+
right: null,
|
|
2670
|
+
bgColor: null,
|
|
2671
|
+
textColor: null,
|
|
2672
|
+
isBlock: false,
|
|
2673
|
+
maxWidth: 300,
|
|
2674
|
+
isDark: false,
|
|
3223
2675
|
};
|
|
3224
2676
|
|
|
3225
2677
|
var classConfig = {
|
|
3226
2678
|
top: {
|
|
3227
|
-
tooltipContainer: 'bottom-[
|
|
2679
|
+
tooltipContainer: 'bottom-[calc(100%+5px)] left-1/2 -translate-x-1/2',
|
|
3228
2680
|
triangleContainer: 'left-0 -bottom-[4px] flex justify-center w-full h-auto',
|
|
3229
2681
|
triangleShape: 'border-l-[8px] border-l-transparent border-t-[5px] border-t-primary-black border-r-[8px] border-r-transparent',
|
|
3230
2682
|
},
|
|
3231
2683
|
right: {
|
|
3232
|
-
tooltipContainer: 'left-[
|
|
2684
|
+
tooltipContainer: 'left-[calc(100%+5px)] top-1/2 -translate-y-1/2',
|
|
3233
2685
|
triangleContainer: '-left-[4px] bottom-0 flex items-center w-auto h-full',
|
|
3234
2686
|
triangleShape: 'border-t-[8px] border-t-transparent border-r-[5px] border-r-primary-black border-b-[8px] border-b-transparent',
|
|
3235
2687
|
},
|
|
3236
2688
|
bottom: {
|
|
3237
|
-
tooltipContainer: 'top-[
|
|
2689
|
+
tooltipContainer: 'top-[calc(100%+5px)] left-1/2 -translate-x-1/2',
|
|
3238
2690
|
triangleContainer: 'left-0 -top-[4px] flex justify-center w-full h-auto',
|
|
3239
2691
|
triangleShape: 'border-l-[8px] border-l-transparent border-b-[5px] border-b-primary-black border-r-[8px] border-r-transparent',
|
|
3240
2692
|
},
|
|
3241
2693
|
left: {
|
|
3242
|
-
tooltipContainer: 'right-[
|
|
2694
|
+
tooltipContainer: 'right-[calc(100%+5px)] top-1/2 -translate-y-1/2',
|
|
3243
2695
|
triangleContainer: '-right-[4px] bottom-0 flex items-center w-auto h-full',
|
|
3244
2696
|
triangleShape: 'border-t-[8px] border-t-transparent border-l-[5px] border-l-primary-black border-b-[8px] border-b-transparent',
|
|
3245
2697
|
},
|
|
2698
|
+
'top-right': {
|
|
2699
|
+
tooltipContainer: 'bottom-[calc(100%+5px)] right-0',
|
|
2700
|
+
triangleContainer: 'left-0 -bottom-[4px] flex justify-center w-full h-auto',
|
|
2701
|
+
triangleShape: 'border-l-[8px] border-l-transparent border-t-[5px] border-t-primary-black border-r-[8px] border-r-transparent',
|
|
2702
|
+
},
|
|
2703
|
+
'top-left': {
|
|
2704
|
+
tooltipContainer: 'bottom-[calc(100%+5px)] left-0',
|
|
2705
|
+
triangleContainer: 'left-0 -bottom-[4px] flex justify-center w-full h-auto',
|
|
2706
|
+
triangleShape: 'border-l-[8px] border-l-transparent border-t-[5px] border-t-primary-black border-r-[8px] border-r-transparent',
|
|
2707
|
+
},
|
|
2708
|
+
'bottom-right': {
|
|
2709
|
+
tooltipContainer: 'top-[calc(100%+5px)] right-0',
|
|
2710
|
+
triangleContainer: 'left-0 -top-[4px] flex justify-center w-full h-auto',
|
|
2711
|
+
triangleShape: 'border-l-[8px] border-l-transparent border-b-[5px] border-b-primary-black border-r-[8px] border-r-transparent',
|
|
2712
|
+
},
|
|
2713
|
+
'bottom-left': {
|
|
2714
|
+
tooltipContainer: 'top-[calc(100%+5px)] left-0',
|
|
2715
|
+
triangleContainer: 'left-0 -top-[4px] flex justify-center w-full h-auto',
|
|
2716
|
+
triangleShape: 'border-l-[8px] border-l-transparent border-b-[5px] border-b-primary-black border-r-[8px] border-r-transparent',
|
|
2717
|
+
},
|
|
3246
2718
|
};
|
|
3247
2719
|
|
|
3248
2720
|
function Tooltip(props) {
|
|
3249
|
-
var children = props.children, content = props.content, delay = props.delay, _a = props.direction, direction = _a === void 0 ? 'top' : _a;
|
|
2721
|
+
var children = props.children, content = props.content, delay = props.delay, _a = props.direction, direction = _a === void 0 ? 'top' : _a, _b = props.maxWidth, maxWidth = _b === void 0 ? '300px' : _b;
|
|
3250
2722
|
var timeout;
|
|
3251
|
-
var
|
|
2723
|
+
var _c = React.useState(false), active = _c[0], setActive = _c[1];
|
|
3252
2724
|
var showTip = function () {
|
|
3253
2725
|
timeout = setTimeout(function () {
|
|
3254
2726
|
setActive(true);
|
|
@@ -3258,26 +2730,29 @@ function Tooltip(props) {
|
|
|
3258
2730
|
clearInterval(timeout);
|
|
3259
2731
|
setActive(false);
|
|
3260
2732
|
};
|
|
3261
|
-
var
|
|
3262
|
-
return (React.createElement("div", { className: "Tooltip-Wrapper relative
|
|
2733
|
+
var _d = classConfig[direction], tooltipContainer = _d.tooltipContainer; _d.triangleContainer; _d.triangleShape;
|
|
2734
|
+
return (React.createElement("div", { className: "Tooltip-Wrapper relative flex flex-col w-full h-fit", onMouseEnter: showTip, onMouseLeave: hideTip },
|
|
3263
2735
|
children,
|
|
3264
|
-
active && (React.createElement("div", { className: "Tooltip
|
|
3265
|
-
content
|
|
3266
|
-
React.createElement("div", { className: "absolute ".concat(triangleContainer) },
|
|
3267
|
-
React.createElement("div", { className: "w-0 h-0 ".concat(triangleShape) }))))));
|
|
2736
|
+
active && (React.createElement("div", { className: "Tooltip absolute px-[7px] py-[4px] text-size-sm bg-primary-black text-primary-white z-50 whitespace-nowrap rounded-[4px] ".concat(tooltipContainer), style: { maxWidth: maxWidth } },
|
|
2737
|
+
React.createElement("p", { className: " whitespace-pre-wrap break-words" }, content)))));
|
|
3268
2738
|
}
|
|
3269
2739
|
Tooltip.defaultProps = {
|
|
3270
2740
|
delay: 400,
|
|
3271
2741
|
direction: 'top',
|
|
2742
|
+
maxWidth: '300px',
|
|
3272
2743
|
};
|
|
3273
2744
|
Tooltip.defaultProps = {};
|
|
3274
2745
|
|
|
3275
2746
|
function ScrollbarSimulation() {
|
|
3276
|
-
return (React.createElement("div", { className: "
|
|
2747
|
+
return (React.createElement("div", { className: "flex gap-5" },
|
|
2748
|
+
React.createElement("div", { className: "w-64 aspect-square overflow-y-auto p-5 text-justify" }, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin porta ac augue ac porta. Nunc ac pretium odio. Integer auctor viverra malesuada. Nullam id consectetur orci. Praesent lobortis enim fermentum lacus convallis, vitae vestibulum lorem accumsan. Donec ac magna tristique, fermentum nulla at, faucibus magna. Nulla facilisi. Ut vehicula pulvinar nulla vitae suscipit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Vivamus pulvinar, dolor a fringilla eleifend, metus arcu condimentum nisl, ut ultricies massa elit nec urna. Nam aliquam vestibulum ullamcorper. Aliquam ac ex sapien. Nam in interdum metus. Cras fringilla est nisl, ut pharetra sapien placerat non. Sed finibus elementum ipsum id interdum. Proin condimentum consequat tortor, ac aliquam urna. Donec tincidunt nunc eu est tristique aliquam. In a enim sit amet turpis sodales cursus. Donec in hendrerit odio. Vestibulum pretium, lectus nec vehicula iaculis, velit nisl laoreet enim, eget iaculis nibh neque et risus. Morbi aliquam malesuada mi in rhoncus."),
|
|
2749
|
+
React.createElement("div", { className: "h-64 aspect-square overflow-x-auto overflow-y-clip p-5 text-justify" }, "Loremipsumdolorsitamet,consecteturadipiscingelit.Proinportaac augueacporta.Nuncacpretiumodio.Integerauctorviverramalesuada. Nullamidconsecteturorci.Praesentlobortisenimfermentumlacus convallis,vitaevestibulumloremaccumsan.Donecacmagnatristique, fermentumnullaat,faucibusmagna.Nullafacilisi.Utvehiculapulvinar nullavitaesuscipit.Vestibulumanteipsumprimisinfaucibusorci luctusetultricesposuerecubiliacurae;Vivamuspulvinar,dolora fringillaeleifend,metusarcucondimentumnisl,utultriciesmassaelit necurna.Namaliquamvestibulumullamcorper.Aliquamacexsapien.Nam in interdum metus. Cras fringilla est nisl, ut pharetra sapien placerat non. Sed finibus elementum ipsum id interdum. Proin condimentum consequat tortor, ac aliquam urna. Donec tincidunt nunc eu est tristique aliquam. In a enim sit amet turpis sodales cursus. Donec in hendrerit odio. Vestibulum pretium, lectus nec vehicula iaculis, velit nisl laoreet enim, eget iaculis nibh neque et risus. Morbi aliquam malesuada mi in rhoncus.")));
|
|
3277
2750
|
}
|
|
3278
2751
|
|
|
3279
2752
|
function HiddenScrollbarSimulation() {
|
|
3280
|
-
return (React.createElement("div", { className: "
|
|
2753
|
+
return (React.createElement("div", { className: "flex gap-5" },
|
|
2754
|
+
React.createElement("div", { className: "w-64 aspect-square overflow-y-auto p-5 scrollbar-hidden text-justify" }, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin porta ac augue ac porta. Nunc ac pretium odio. Integer auctor viverra malesuada. Nullam id consectetur orci. Praesent lobortis enim fermentum lacus convallis, vitae vestibulum lorem accumsan. Donec ac magna tristique, fermentum nulla at, faucibus magna. Nulla facilisi. Ut vehicula pulvinar nulla vitae suscipit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Vivamus pulvinar, dolor a fringilla eleifend, metus arcu condimentum nisl, ut ultricies massa elit nec urna. Nam aliquam vestibulum ullamcorper. Aliquam ac ex sapien. Nam in interdum metus. Cras fringilla est nisl, ut pharetra sapien placerat non. Sed finibus elementum ipsum id interdum. Proin condimentum consequat tortor, ac aliquam urna. Donec tincidunt nunc eu est tristique aliquam. In a enim sit amet turpis sodales cursus. Donec in hendrerit odio. Vestibulum pretium, lectus nec vehicula iaculis, velit nisl laoreet enim, eget iaculis nibh neque et risus. Morbi aliquam malesuada mi in rhoncus."),
|
|
2755
|
+
React.createElement("div", { className: "h-64 aspect-square overflow-x-auto overflow-y-clip p-5 scrollbar-hidden text-justify" }, "Loremipsumdolorsitamet,consecteturadipiscingelit.Proinportaac augueacporta.Nuncacpretiumodio.Integerauctorviverramalesuada. Nullamidconsecteturorci.Praesentlobortisenimfermentumlacus convallis,vitaevestibulumloremaccumsan.Donecacmagnatristique, fermentumnullaat,faucibusmagna.Nullafacilisi.Utvehiculapulvinar nullavitaesuscipit.Vestibulumanteipsumprimisinfaucibusorci luctusetultricesposuerecubiliacurae;Vivamuspulvinar,dolora fringillaeleifend,metusarcucondimentumnisl,utultriciesmassaelit necurna.Namaliquamvestibulumullamcorper.Aliquamacexsapien.Nam ininterdummetus.Crasfringillaestnisl,utpharetrasapienplaceratnon. Sedfinibuselementumipsumidinterdum.Proincondimentumconsequat tortor,acaliquamurna.Donectinciduntnunceuesttristiquealiquam. Inaenimsitametturpissodalescursus.Donecinhendreritodio. Vestibulumpretium,lectusnecvehiculaiaculis,velitnisllaoreet enim,egetiaculisnibhnequeetrisus.Morbialiquammalesuadamiin rhoncus.")));
|
|
3281
2756
|
}
|
|
3282
2757
|
|
|
3283
2758
|
exports.Accordions = Accordions;
|
|
@@ -3314,6 +2789,7 @@ exports.SelectInputSimulation = SelectInputSimulation;
|
|
|
3314
2789
|
exports.Slider = Slider;
|
|
3315
2790
|
exports.Spinner = Spinner;
|
|
3316
2791
|
exports.Tab = Tab;
|
|
2792
|
+
exports.TabMenu = TabMenu;
|
|
3317
2793
|
exports.Table = Table;
|
|
3318
2794
|
exports.TableBody = TableBody;
|
|
3319
2795
|
exports.TableCol = TableCol;
|