react-better-html 1.1.233 → 1.1.235
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +3 -270
- package/dist/index.d.ts +3 -270
- package/dist/index.js +88 -278
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +89 -277
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -69,8 +69,8 @@ __export(index_exports, {
|
|
|
69
69
|
eventStopPropagation: () => import_react_better_core30.eventStopPropagation,
|
|
70
70
|
filterHover: () => filterHover,
|
|
71
71
|
formatPhoneNumber: () => import_react_better_core30.formatPhoneNumber,
|
|
72
|
-
generateApi: () => generateApi,
|
|
73
|
-
generateEventEmitter: () => generateEventEmitter,
|
|
72
|
+
generateApi: () => import_react_better_core30.generateApi,
|
|
73
|
+
generateEventEmitter: () => import_react_better_core30.generateEventEmitter,
|
|
74
74
|
generateLocalStorage: () => generateLocalStorage,
|
|
75
75
|
generateRandomString: () => import_react_better_core30.generateRandomString,
|
|
76
76
|
getBrowser: () => getBrowser,
|
|
@@ -80,6 +80,7 @@ __export(index_exports, {
|
|
|
80
80
|
lightenColor: () => import_react_better_core30.lightenColor,
|
|
81
81
|
loaderControls: () => import_react_better_core30.loaderControls,
|
|
82
82
|
localStoragePlugin: () => localStoragePlugin,
|
|
83
|
+
log: () => import_react_better_core30.log,
|
|
83
84
|
reactRouterDomPlugin: () => reactRouterDomPlugin,
|
|
84
85
|
saturateColor: () => import_react_better_core30.saturateColor,
|
|
85
86
|
sideMenuControls: () => sideMenuControls,
|
|
@@ -961,7 +962,7 @@ function useComponentInputFieldDateProps(props, holderRef, disabled) {
|
|
|
961
962
|
);
|
|
962
963
|
const insideInputFieldComponentProps = (0, import_react.useMemo)(
|
|
963
964
|
() => ({
|
|
964
|
-
border:
|
|
965
|
+
border: `${theme2.styles.borderWidth}px solid ${isFocused ? theme2.colors.primary : theme2.colors.border}`,
|
|
965
966
|
borderTop: "none",
|
|
966
967
|
opacity: !isOpen ? 0 : void 0,
|
|
967
968
|
pointerEvents: !isOpen ? "none" : void 0,
|
|
@@ -1482,7 +1483,7 @@ Image.profileImage = (0, import_react4.forwardRef)(function ProfileImage({ size
|
|
|
1482
1483
|
Div_default.row,
|
|
1483
1484
|
{
|
|
1484
1485
|
backgroundColor: backgroundColor ?? theme2.colors.backgroundSecondary,
|
|
1485
|
-
border: `solid
|
|
1486
|
+
border: `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}`,
|
|
1486
1487
|
borderRadius: 999,
|
|
1487
1488
|
alignItems: "center",
|
|
1488
1489
|
justifyContent: "center",
|
|
@@ -1497,7 +1498,7 @@ Image.profileImage = (0, import_react4.forwardRef)(function ProfileImage({ size
|
|
|
1497
1498
|
{
|
|
1498
1499
|
width: size,
|
|
1499
1500
|
height: size,
|
|
1500
|
-
border: `solid
|
|
1501
|
+
border: `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}`,
|
|
1501
1502
|
borderRadius: 999,
|
|
1502
1503
|
objectFit: "cover",
|
|
1503
1504
|
ref,
|
|
@@ -1795,7 +1796,7 @@ DivComponent.box = (0, import_react8.forwardRef)(function Box({
|
|
|
1795
1796
|
{
|
|
1796
1797
|
color: isActive ? theme2.colors.base : void 0,
|
|
1797
1798
|
backgroundColor: isActive ? readyActiveColor : theme2.colors.backgroundContent,
|
|
1798
|
-
border:
|
|
1799
|
+
border: `${theme2.styles.borderWidth}px solid ${isActive ? readyActiveColor : theme2.colors.border}`,
|
|
1799
1800
|
borderRadius: theme2.styles.borderRadius,
|
|
1800
1801
|
borderColorHover: withClick && !isActive ? readyActiveColor : void 0,
|
|
1801
1802
|
filterHover: withClick && isActive ? "brightness(0.9)" : void 0,
|
|
@@ -1809,8 +1810,8 @@ DivComponent.box = (0, import_react8.forwardRef)(function Box({
|
|
|
1809
1810
|
Div2,
|
|
1810
1811
|
{
|
|
1811
1812
|
backgroundColor: headerBackgroundColor,
|
|
1812
|
-
borderTopLeftRadius: props.borderTopLeftRadius ?? props.borderRadius ?? theme2.styles.borderRadius -
|
|
1813
|
-
borderTopRightRadius: props.borderTopRightRadius ?? props.borderRadius ?? theme2.styles.borderRadius -
|
|
1813
|
+
borderTopLeftRadius: props.borderTopLeftRadius ?? props.borderRadius ?? theme2.styles.borderRadius - theme2.styles.borderWidth,
|
|
1814
|
+
borderTopRightRadius: props.borderTopRightRadius ?? props.borderRadius ?? theme2.styles.borderRadius - theme2.styles.borderWidth,
|
|
1814
1815
|
marginInline: -theme2.styles.space,
|
|
1815
1816
|
marginTop: -theme2.styles.space,
|
|
1816
1817
|
marginBottom: theme2.styles.space,
|
|
@@ -1837,7 +1838,7 @@ DivComponent.box = (0, import_react8.forwardRef)(function Box({
|
|
|
1837
1838
|
marginBottom: theme2.styles.space
|
|
1838
1839
|
}
|
|
1839
1840
|
),
|
|
1840
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Div2, { width: `calc(100% + ${theme2.styles.space * 2}px)`, marginLeft: -theme2.styles.space, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Divider_default.horizontal, {}) })
|
|
1841
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Div2, { width: `calc(100% + ${theme2.styles.space * 2}px)`, marginLeft: -theme2.styles.space, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Divider_default.horizontal, { width: theme2.styles.borderWidth }) })
|
|
1841
1842
|
]
|
|
1842
1843
|
}
|
|
1843
1844
|
),
|
|
@@ -1999,7 +2000,7 @@ var ButtonElement = import_styled_components6.default.button.withConfig({
|
|
|
1999
2000
|
background-color: ${(props) => props.theme.colors.primary};
|
|
2000
2001
|
border: none;
|
|
2001
2002
|
border-radius: ${(props) => props.theme.styles.borderRadius}px;
|
|
2002
|
-
padding: ${(props) => props.isSmall ? `${props.theme.styles.gap +
|
|
2003
|
+
padding: ${(props) => props.isSmall ? `${props.theme.styles.gap + props.theme.styles.borderWidth}px ${props.theme.styles.space}px` : `${(props.theme.styles.gap + props.theme.styles.space) / 2 + props.theme.styles.borderWidth}px ${props.theme.styles.space + (props.withText ? props.theme.styles.gap : 0)}px`};
|
|
2003
2004
|
user-select: none;
|
|
2004
2005
|
flex-shrink: 0;
|
|
2005
2006
|
transition: ${(props) => props.theme.styles.transition};
|
|
@@ -2021,7 +2022,7 @@ var ButtonElement = import_styled_components6.default.button.withConfig({
|
|
|
2021
2022
|
|
|
2022
2023
|
&.secondary {
|
|
2023
2024
|
padding-block: ${(props) => props.isSmall ? props.theme.styles.gap : (props.theme.styles.space + props.theme.styles.gap) / 2}px;
|
|
2024
|
-
border: solid
|
|
2025
|
+
border: solid ${(props) => props.theme.styles.borderWidth}px ${(props) => props.theme.colors.border};
|
|
2025
2026
|
background-color: ${(props) => props.theme.colors.backgroundContent};
|
|
2026
2027
|
background-image: none;
|
|
2027
2028
|
|
|
@@ -2493,7 +2494,7 @@ var ModalComponent = (0, import_react11.forwardRef)(function Modal({
|
|
|
2493
2494
|
]
|
|
2494
2495
|
}
|
|
2495
2496
|
),
|
|
2496
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Divider_default.horizontal, {})
|
|
2497
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Divider_default.horizontal, { width: theme2.styles.borderWidth })
|
|
2497
2498
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, { children: !withoutCloseButton && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Div_default, { position: "absolute", top: theme2.styles.space, right: theme2.styles.space, zIndex: 10, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Button_default.icon, { icon: "XMark", iconColor: titleColor, onClick: onClickClose }) }) }),
|
|
2498
2499
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Div_default, { padding: title ? theme2.styles.space : void 0, children })
|
|
2499
2500
|
]
|
|
@@ -3066,8 +3067,7 @@ function BetterHtmlProviderInternal({ config, plugins, children }) {
|
|
|
3066
3067
|
tabsWithDots,
|
|
3067
3068
|
setTabsWithDots
|
|
3068
3069
|
}
|
|
3069
|
-
}
|
|
3070
|
-
devMode: config?.devMode
|
|
3070
|
+
}
|
|
3071
3071
|
}),
|
|
3072
3072
|
[config, alerts, sideMenuIsCollapsed, sideMenuIsOpenMobile, plugins, tabGroups, tabsWithDots]
|
|
3073
3073
|
);
|
|
@@ -3097,7 +3097,8 @@ function BetterHtmlProvider({ config, ...props }) {
|
|
|
3097
3097
|
...assets,
|
|
3098
3098
|
...config?.assets
|
|
3099
3099
|
},
|
|
3100
|
-
loaders: config?.loaders
|
|
3100
|
+
loaders: config?.loaders,
|
|
3101
|
+
devMode: config?.devMode
|
|
3101
3102
|
}),
|
|
3102
3103
|
[config]
|
|
3103
3104
|
);
|
|
@@ -3106,8 +3107,7 @@ function BetterHtmlProvider({ config, ...props }) {
|
|
|
3106
3107
|
app: config?.app,
|
|
3107
3108
|
sideMenuIsCollapsed: config?.sideMenuIsCollapsed,
|
|
3108
3109
|
sideMenuIsOpenMobile: config?.sideMenuIsOpenMobile,
|
|
3109
|
-
components: config?.components
|
|
3110
|
-
devMode: config?.devMode
|
|
3110
|
+
components: config?.components
|
|
3111
3111
|
}),
|
|
3112
3112
|
[config]
|
|
3113
3113
|
);
|
|
@@ -3267,12 +3267,6 @@ function findClosestNumber(numbers, target) {
|
|
|
3267
3267
|
}
|
|
3268
3268
|
return closest;
|
|
3269
3269
|
}
|
|
3270
|
-
var constructQuery = (query) => {
|
|
3271
|
-
if (!query) return "";
|
|
3272
|
-
return Object.entries(query).filter(([_, queryVale]) => queryVale !== void 0 && queryVale !== null).map(
|
|
3273
|
-
([queryName, queryVale]) => typeof queryVale === "object" ? queryVale.map((value) => `${queryName}=${value}`) : [`${queryName}=${queryVale}`]
|
|
3274
|
-
).flat().join("&");
|
|
3275
|
-
};
|
|
3276
3270
|
|
|
3277
3271
|
// src/utils/localStorage.ts
|
|
3278
3272
|
function generateLocalStorage() {
|
|
@@ -3339,180 +3333,6 @@ function generateLocalStorage() {
|
|
|
3339
3333
|
};
|
|
3340
3334
|
}
|
|
3341
3335
|
|
|
3342
|
-
// src/utils/logger.ts
|
|
3343
|
-
var textColors = {
|
|
3344
|
-
black: "#111111",
|
|
3345
|
-
red: "#f83e4b",
|
|
3346
|
-
green: "#5ac53a",
|
|
3347
|
-
yellow: "#f8d770",
|
|
3348
|
-
blue: "#3d6fdf",
|
|
3349
|
-
magenta: "#9648eb",
|
|
3350
|
-
cyan: "#53b2c8",
|
|
3351
|
-
white: "#f8f8f8"
|
|
3352
|
-
};
|
|
3353
|
-
var backgroundColors = {
|
|
3354
|
-
black: "#111111",
|
|
3355
|
-
red: "#f83e4b",
|
|
3356
|
-
green: "#5ac53a",
|
|
3357
|
-
yellow: "#f8d770",
|
|
3358
|
-
blue: "#3d6fdf",
|
|
3359
|
-
magenta: "#9648eb",
|
|
3360
|
-
cyan: "#53b2c8",
|
|
3361
|
-
white: "#f8f8f8"
|
|
3362
|
-
};
|
|
3363
|
-
var logTypes = {
|
|
3364
|
-
info: "cyan",
|
|
3365
|
-
success: "green",
|
|
3366
|
-
warn: "yellow",
|
|
3367
|
-
error: "red"
|
|
3368
|
-
};
|
|
3369
|
-
function getCssString(options) {
|
|
3370
|
-
const color = options.color ? textColors[options.color] : void 0;
|
|
3371
|
-
const backgroundColor = options.backgroundColor ? backgroundColors[options.backgroundColor] : void 0;
|
|
3372
|
-
const fontWeight = options.bold ? "bold" : "normal";
|
|
3373
|
-
return `${color ? `color: ${color};` : ""}${backgroundColor ? `background-color: ${backgroundColor};` : ""}${fontWeight ? `font-weight: ${fontWeight};` : ""}`;
|
|
3374
|
-
}
|
|
3375
|
-
function logText(text, options) {
|
|
3376
|
-
if (externalBetterHtmlContextValue?.devMode !== true) return;
|
|
3377
|
-
console.log(`%c${text}`, getCssString(options ?? {}));
|
|
3378
|
-
}
|
|
3379
|
-
var log = {
|
|
3380
|
-
...Object.entries(logTypes).reduce(
|
|
3381
|
-
(previousValue, [logType, color]) => {
|
|
3382
|
-
previousValue[logType] = (text = "", bold) => {
|
|
3383
|
-
logText(text, {
|
|
3384
|
-
color,
|
|
3385
|
-
bold
|
|
3386
|
-
});
|
|
3387
|
-
};
|
|
3388
|
-
return previousValue;
|
|
3389
|
-
},
|
|
3390
|
-
{}
|
|
3391
|
-
),
|
|
3392
|
-
/** @description Default log function */
|
|
3393
|
-
log: (text, options) => {
|
|
3394
|
-
logText(text, options);
|
|
3395
|
-
},
|
|
3396
|
-
/** @description Logs the value in pretty json format */
|
|
3397
|
-
json: (jsonObject, options) => {
|
|
3398
|
-
logText(JSON.stringify(jsonObject, null, 4), options);
|
|
3399
|
-
},
|
|
3400
|
-
/** @description Logs a -=-= pattern */
|
|
3401
|
-
divider: (color) => {
|
|
3402
|
-
logText("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-", {
|
|
3403
|
-
color
|
|
3404
|
-
});
|
|
3405
|
-
},
|
|
3406
|
-
trace: () => {
|
|
3407
|
-
if (externalBetterHtmlContextValue?.devMode !== true) return;
|
|
3408
|
-
console.trace();
|
|
3409
|
-
}
|
|
3410
|
-
};
|
|
3411
|
-
|
|
3412
|
-
// src/utils/api.ts
|
|
3413
|
-
var methodInitiateToString = {
|
|
3414
|
-
GET: "GET request to ",
|
|
3415
|
-
PUT: "PUT request to ",
|
|
3416
|
-
POST: "POST request to ",
|
|
3417
|
-
PATCH: "PATCH request to ",
|
|
3418
|
-
DELETE: "DELETE request to ",
|
|
3419
|
-
HEAD: "HEAD request to ",
|
|
3420
|
-
OPTIONS: "OPTIONS request to ",
|
|
3421
|
-
TRACE: "TRACE request to ",
|
|
3422
|
-
CONNECT: "CONNECT request to "
|
|
3423
|
-
};
|
|
3424
|
-
var methodResponseToString = {
|
|
3425
|
-
GET: "GET request from ",
|
|
3426
|
-
PUT: "PUT request from ",
|
|
3427
|
-
POST: "POST request from ",
|
|
3428
|
-
PATCH: "PATCH request from ",
|
|
3429
|
-
DELETE: "DELETE request from ",
|
|
3430
|
-
HEAD: "HEAD request from ",
|
|
3431
|
-
OPTIONS: "OPTIONS request from",
|
|
3432
|
-
TRACE: "TRACE request from ",
|
|
3433
|
-
CONNECT: "CONNECT request from"
|
|
3434
|
-
};
|
|
3435
|
-
function generateApi(config, apiConfig, getHeaders) {
|
|
3436
|
-
return async function apiCall(name, payload = {}) {
|
|
3437
|
-
if (!apiConfig[name]) {
|
|
3438
|
-
return Promise.reject(
|
|
3439
|
-
new Error(`Endpoint ${name.toString()} is not defined in the \`generateApi\` function.`, {
|
|
3440
|
-
cause: "generateApi.apiConfig.missingEndpoint"
|
|
3441
|
-
})
|
|
3442
|
-
);
|
|
3443
|
-
}
|
|
3444
|
-
const baseURL = config.baseUrl;
|
|
3445
|
-
const path = `${apiConfig[name].path}${payload.path?.length ? `/${payload.path.join("/")}` : ""}`;
|
|
3446
|
-
const query = constructQuery(payload.query);
|
|
3447
|
-
const url = `${baseURL}${path}${query ? `?${query}` : ""}`;
|
|
3448
|
-
const requestHeaders = {
|
|
3449
|
-
"Content-Type": apiConfig[name].bodyWithFormData ? "multipart/form-data" : "application/json",
|
|
3450
|
-
...getHeaders ? Object.entries(getHeaders).reduce((previousValue, [key, value]) => {
|
|
3451
|
-
if (apiConfig[name].includeHeaders?.includes(key)) {
|
|
3452
|
-
previousValue[key] = value?.();
|
|
3453
|
-
}
|
|
3454
|
-
return previousValue;
|
|
3455
|
-
}, {}) : {}
|
|
3456
|
-
};
|
|
3457
|
-
const body = payload.body;
|
|
3458
|
-
const bodyAsFormData = new FormData();
|
|
3459
|
-
if (body && apiConfig[name].bodyWithFormData) {
|
|
3460
|
-
Object.entries(body).forEach(([key, value]) => {
|
|
3461
|
-
bodyAsFormData.append(key, value);
|
|
3462
|
-
});
|
|
3463
|
-
}
|
|
3464
|
-
const readyBody = JSON.stringify((apiConfig[name].bodyWithFormData ? bodyAsFormData : body) ?? {});
|
|
3465
|
-
log.log(`Initiate ${methodInitiateToString[apiConfig[name].method]} ${url} - ${name.toString()}`, {
|
|
3466
|
-
color: "magenta"
|
|
3467
|
-
});
|
|
3468
|
-
return await call(
|
|
3469
|
-
() => fetch(url, {
|
|
3470
|
-
method: apiConfig[name].method,
|
|
3471
|
-
body: apiConfig[name].method !== "GET" ? readyBody : void 0,
|
|
3472
|
-
headers: requestHeaders
|
|
3473
|
-
})
|
|
3474
|
-
);
|
|
3475
|
-
async function call(callAction) {
|
|
3476
|
-
const response = await callAction();
|
|
3477
|
-
const responseJson = await response.json();
|
|
3478
|
-
log.log(`Response ${methodResponseToString[apiConfig[name].method]} ${url} - ${name.toString()}`, {
|
|
3479
|
-
color: "blue"
|
|
3480
|
-
});
|
|
3481
|
-
return {
|
|
3482
|
-
data: responseJson,
|
|
3483
|
-
headers: response.headers,
|
|
3484
|
-
statusCode: response.status,
|
|
3485
|
-
statusText: response.statusText,
|
|
3486
|
-
url: response.url,
|
|
3487
|
-
ok: response.ok,
|
|
3488
|
-
redirected: response.redirected
|
|
3489
|
-
};
|
|
3490
|
-
}
|
|
3491
|
-
};
|
|
3492
|
-
}
|
|
3493
|
-
|
|
3494
|
-
// src/utils/eventEmitter.ts
|
|
3495
|
-
function generateEventEmitter() {
|
|
3496
|
-
const eventEmitter = new EventTarget();
|
|
3497
|
-
return {
|
|
3498
|
-
emit: (name, data) => {
|
|
3499
|
-
const event = new CustomEvent(name.toString(), {
|
|
3500
|
-
detail: data
|
|
3501
|
-
});
|
|
3502
|
-
eventEmitter.dispatchEvent(event);
|
|
3503
|
-
},
|
|
3504
|
-
listen: (name, callback) => {
|
|
3505
|
-
const listener = (event) => {
|
|
3506
|
-
callback?.(event.detail);
|
|
3507
|
-
};
|
|
3508
|
-
eventEmitter.addEventListener(name.toString(), listener);
|
|
3509
|
-
return () => {
|
|
3510
|
-
eventEmitter.removeEventListener(name.toString(), listener);
|
|
3511
|
-
};
|
|
3512
|
-
}
|
|
3513
|
-
};
|
|
3514
|
-
}
|
|
3515
|
-
|
|
3516
3336
|
// src/components/PageHolder.tsx
|
|
3517
3337
|
var import_react15 = require("react");
|
|
3518
3338
|
var import_react_better_core14 = require("react-better-core");
|
|
@@ -3666,7 +3486,7 @@ ChipComponent.colored = (0, import_react16.forwardRef)(function Colored({ color,
|
|
|
3666
3486
|
{
|
|
3667
3487
|
color: colorTheme === "light" ? (0, import_react_better_core15.darkenColor)(readyColor, 0.7) : (0, import_react_better_core15.lightenColor)(readyColor, 0.7),
|
|
3668
3488
|
backgroundColor: readyColor + "40",
|
|
3669
|
-
border:
|
|
3489
|
+
border: `${theme2.styles.borderWidth}px solid ${readyColor}`,
|
|
3670
3490
|
ref,
|
|
3671
3491
|
...props
|
|
3672
3492
|
}
|
|
@@ -3985,7 +3805,7 @@ var DropdownComponent = (0, import_react18.forwardRef)(function Dropdown({
|
|
|
3985
3805
|
{
|
|
3986
3806
|
width: "100%",
|
|
3987
3807
|
backgroundColor: theme2.colors.backgroundContent,
|
|
3988
|
-
border: `solid
|
|
3808
|
+
border: `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}`,
|
|
3989
3809
|
borderColor: isFocused ? theme2.colors.primary : void 0,
|
|
3990
3810
|
borderBottom: "none",
|
|
3991
3811
|
borderTopLeftRadius: theme2.styles.borderRadius,
|
|
@@ -4032,7 +3852,7 @@ var DropdownComponent = (0, import_react18.forwardRef)(function Dropdown({
|
|
|
4032
3852
|
width: "100%",
|
|
4033
3853
|
maxHeight: 300,
|
|
4034
3854
|
backgroundColor: theme2.colors.backgroundContent,
|
|
4035
|
-
border:
|
|
3855
|
+
border: `${theme2.styles.borderWidth}px solid ${isFocused ? theme2.colors.primary : theme2.colors.border}`,
|
|
4036
3856
|
borderTop: "none",
|
|
4037
3857
|
borderBottomLeftRadius: theme2.styles.borderRadius,
|
|
4038
3858
|
borderBottomRightRadius: theme2.styles.borderRadius,
|
|
@@ -4298,7 +4118,7 @@ function Calendar({ value, minDate, maxDate, onChange }) {
|
|
|
4298
4118
|
justifyContent: "center",
|
|
4299
4119
|
backgroundColor: isSelected ? theme2.colors.primary : theme2.colors.backgroundContent,
|
|
4300
4120
|
filterHover: day && !isDisabled ? "brightness(0.9)" : void 0,
|
|
4301
|
-
border:
|
|
4121
|
+
border: `${theme2.styles.borderWidth}px solid ${isToday ? theme2.colors.primary : theme2.colors.primary + "00"}`,
|
|
4302
4122
|
borderRadius: theme2.styles.borderRadius / 2,
|
|
4303
4123
|
padding: theme2.styles.space / 2,
|
|
4304
4124
|
cursor: day ? !isDisabled ? "pointer" : "not-allowed" : void 0,
|
|
@@ -4375,7 +4195,7 @@ var InputElement = import_styled_components11.default.input.withConfig({
|
|
|
4375
4195
|
line-height: 20px;
|
|
4376
4196
|
color: ${(props) => props.theme.colors.textPrimary};
|
|
4377
4197
|
background: ${(props) => props.theme.colors.backgroundContent};
|
|
4378
|
-
border:
|
|
4198
|
+
border: ${(props) => props.theme.styles.borderWidth}px solid ${(props) => props.theme.colors.border};
|
|
4379
4199
|
border-radius: ${(props) => props.theme.styles.borderRadius}px;
|
|
4380
4200
|
border-top-left-radius: ${(props) => props.withPrefix ? 0 : void 0};
|
|
4381
4201
|
border-bottom-left-radius: ${(props) => props.withPrefix ? 0 : void 0};
|
|
@@ -4454,7 +4274,7 @@ var InputElement = import_styled_components11.default.input.withConfig({
|
|
|
4454
4274
|
}
|
|
4455
4275
|
|
|
4456
4276
|
&.react-better-html-dropdown {
|
|
4457
|
-
padding-right: ${(props) => props.theme.styles.space + 16 + props.theme.styles.space -
|
|
4277
|
+
padding-right: ${(props) => props.theme.styles.space + 16 + props.theme.styles.space - props.theme.styles.borderWidth}px;
|
|
4458
4278
|
|
|
4459
4279
|
&.react-better-html-dropdown-multiselect {
|
|
4460
4280
|
border-top: none;
|
|
@@ -4498,12 +4318,12 @@ var TextareaElement = import_styled_components11.default.textarea.withConfig({
|
|
|
4498
4318
|
line-height: 20px;
|
|
4499
4319
|
color: ${(props) => props.theme.colors.textPrimary};
|
|
4500
4320
|
background: ${(props) => props.theme.colors.backgroundContent};
|
|
4501
|
-
border:
|
|
4321
|
+
border: ${(props) => props.theme.styles.borderWidth}px solid ${(props) => props.theme.colors.border};
|
|
4502
4322
|
border-radius: ${(props) => props.theme.styles.borderRadius}px;
|
|
4503
4323
|
outline: none;
|
|
4504
4324
|
padding: ${(props) => `${(props.theme.styles.gap + props.theme.styles.space) / 2}px ${props.theme.styles.space}px`};
|
|
4505
|
-
padding-left: ${(props) => props.withLeftIcon ? `${props.theme.styles.space + 16 + props.theme.styles.space -
|
|
4506
|
-
padding-right: ${(props) => props.withRightIcon ? `${props.theme.styles.space + 16 + props.theme.styles.space -
|
|
4325
|
+
padding-left: ${(props) => props.withLeftIcon ? `${props.theme.styles.space + 16 + props.theme.styles.space - props.theme.styles.borderWidth}px` : void 0};
|
|
4326
|
+
padding-right: ${(props) => props.withRightIcon ? `${props.theme.styles.space + 16 + props.theme.styles.space - props.theme.styles.borderWidth}px` : void 0};
|
|
4507
4327
|
resize: vertical;
|
|
4508
4328
|
transition: border-color ${(props) => props.theme.styles.transition};
|
|
4509
4329
|
|
|
@@ -4589,7 +4409,7 @@ var InputFieldComponent = (0, import_react21.forwardRef)(function InputField({
|
|
|
4589
4409
|
{
|
|
4590
4410
|
alignItems: "center",
|
|
4591
4411
|
justifyContent: "center",
|
|
4592
|
-
border:
|
|
4412
|
+
border: `${theme2.styles.borderWidth}px solid ${theme2.colors.border}`,
|
|
4593
4413
|
borderRight: "none",
|
|
4594
4414
|
backgroundColor: prefixBackgroundColor ?? (colorTheme === "light" ? (0, import_react_better_core19.darkenColor)(theme2.colors.backgroundContent, 0.03) : (0, import_react_better_core19.lightenColor)(theme2.colors.backgroundContent, 0.1)),
|
|
4595
4415
|
borderTopLeftRadius: theme2.styles.borderRadius,
|
|
@@ -4606,8 +4426,8 @@ var InputFieldComponent = (0, import_react21.forwardRef)(function InputField({
|
|
|
4606
4426
|
{
|
|
4607
4427
|
name: leftIcon,
|
|
4608
4428
|
position: "absolute",
|
|
4609
|
-
top: (props.type === "date" || props.type === "time" || props.type === "datetime-local" ? 48 :
|
|
4610
|
-
left: theme2.styles.space +
|
|
4429
|
+
top: ((props.type === "date" || props.type === "time" || props.type === "datetime-local" ? 48 : 44) + theme2.styles.borderWidth * 2) / 2,
|
|
4430
|
+
left: theme2.styles.space + theme2.styles.borderWidth,
|
|
4611
4431
|
transform: "translateY(-50%)",
|
|
4612
4432
|
pointerEvents: "none",
|
|
4613
4433
|
zIndex: leftIconZIndex
|
|
@@ -4638,8 +4458,8 @@ var InputFieldComponent = (0, import_react21.forwardRef)(function InputField({
|
|
|
4638
4458
|
{
|
|
4639
4459
|
icon: rightIcon,
|
|
4640
4460
|
position: "absolute",
|
|
4641
|
-
top:
|
|
4642
|
-
right: theme2.styles.space +
|
|
4461
|
+
top: (44 + theme2.styles.borderWidth * 2) / 2,
|
|
4462
|
+
right: theme2.styles.space + theme2.styles.borderWidth - theme2.styles.space / 2,
|
|
4643
4463
|
transform: "translateY(-50%)",
|
|
4644
4464
|
onClick: onClickRightIcon
|
|
4645
4465
|
}
|
|
@@ -4648,8 +4468,8 @@ var InputFieldComponent = (0, import_react21.forwardRef)(function InputField({
|
|
|
4648
4468
|
{
|
|
4649
4469
|
name: rightIcon,
|
|
4650
4470
|
position: "absolute",
|
|
4651
|
-
top:
|
|
4652
|
-
right: theme2.styles.space +
|
|
4471
|
+
top: (44 + theme2.styles.borderWidth * 2) / 2,
|
|
4472
|
+
right: theme2.styles.space + theme2.styles.borderWidth,
|
|
4653
4473
|
transform: "translateY(-50%)",
|
|
4654
4474
|
pointerEvents: "none"
|
|
4655
4475
|
}
|
|
@@ -4662,7 +4482,7 @@ var InputFieldComponent = (0, import_react21.forwardRef)(function InputField({
|
|
|
4662
4482
|
{
|
|
4663
4483
|
alignItems: "center",
|
|
4664
4484
|
justifyContent: "center",
|
|
4665
|
-
border:
|
|
4485
|
+
border: `${theme2.styles.borderWidth}px solid ${theme2.colors.border}`,
|
|
4666
4486
|
borderLeft: "none",
|
|
4667
4487
|
backgroundColor: suffixBackgroundColor ?? (colorTheme === "light" ? (0, import_react_better_core19.darkenColor)(theme2.colors.backgroundContent, 0.03) : (0, import_react_better_core19.lightenColor)(theme2.colors.backgroundContent, 0.1)),
|
|
4668
4488
|
borderTopRightRadius: theme2.styles.borderRadius,
|
|
@@ -4719,8 +4539,8 @@ InputFieldComponent.multiline = (0, import_react21.forwardRef)(function Multilin
|
|
|
4719
4539
|
{
|
|
4720
4540
|
name: leftIcon,
|
|
4721
4541
|
position: "absolute",
|
|
4722
|
-
top:
|
|
4723
|
-
left: theme2.styles.space +
|
|
4542
|
+
top: (44 + theme2.styles.borderWidth * 2) / 2,
|
|
4543
|
+
left: theme2.styles.space + theme2.styles.borderWidth,
|
|
4724
4544
|
transform: "translateY(-50%)",
|
|
4725
4545
|
pointerEvents: "none"
|
|
4726
4546
|
}
|
|
@@ -4748,8 +4568,8 @@ InputFieldComponent.multiline = (0, import_react21.forwardRef)(function Multilin
|
|
|
4748
4568
|
{
|
|
4749
4569
|
icon: rightIcon,
|
|
4750
4570
|
position: "absolute",
|
|
4751
|
-
top:
|
|
4752
|
-
right: theme2.styles.space +
|
|
4571
|
+
top: (44 + theme2.styles.borderWidth * 2) / 2,
|
|
4572
|
+
right: theme2.styles.space + theme2.styles.borderWidth - theme2.styles.space / 2,
|
|
4753
4573
|
transform: "translateY(-50%)",
|
|
4754
4574
|
onClick: onClickRightIcon
|
|
4755
4575
|
}
|
|
@@ -4758,8 +4578,8 @@ InputFieldComponent.multiline = (0, import_react21.forwardRef)(function Multilin
|
|
|
4758
4578
|
{
|
|
4759
4579
|
name: rightIcon,
|
|
4760
4580
|
position: "absolute",
|
|
4761
|
-
top:
|
|
4762
|
-
right: theme2.styles.space +
|
|
4581
|
+
top: (44 + theme2.styles.borderWidth * 2) / 2,
|
|
4582
|
+
right: theme2.styles.space + theme2.styles.borderWidth,
|
|
4763
4583
|
transform: "translateY(-50%)",
|
|
4764
4584
|
pointerEvents: "none"
|
|
4765
4585
|
}
|
|
@@ -5426,7 +5246,7 @@ var InputElement2 = import_styled_components12.default.input.withConfig({
|
|
|
5426
5246
|
width: ${componentSize}px;
|
|
5427
5247
|
height: ${componentSize}px;
|
|
5428
5248
|
background-color: ${(props) => props.theme.colors.backgroundContent};
|
|
5429
|
-
border:
|
|
5249
|
+
border: ${(props) => props.theme.styles.borderWidth}px solid ${(props) => props.theme.colors.border};
|
|
5430
5250
|
border-radius: ${(props) => props.theme.styles.borderRadius / 2}px;
|
|
5431
5251
|
cursor: pointer;
|
|
5432
5252
|
transition: ${(props) => props.theme.styles.transition};
|
|
@@ -5742,7 +5562,7 @@ var FormComponent = (0, import_react23.forwardRef)(function Form({
|
|
|
5742
5562
|
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Div_default, { width: "100%", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("form", { name, onSubmit: onSubmit ?? form?.onSubmit, ref, children: [
|
|
5743
5563
|
gap !== void 0 || withDividers ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Div_default.column, { gap: gap ?? (withDividers ? theme2.styles.space : theme2.styles.gap), children: withDividers ? import_react23.Children.toArray(children).map((child, index) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_react23.Fragment, { children: [
|
|
5744
5564
|
child,
|
|
5745
|
-
index < import_react23.Children.toArray(children).length - 1 && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Divider_default.horizontal, {})
|
|
5565
|
+
index < import_react23.Children.toArray(children).length - 1 && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Divider_default.horizontal, { width: theme2.styles.borderWidth })
|
|
5746
5566
|
] }, index)) : children }) : children,
|
|
5747
5567
|
submitButtonText && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
5748
5568
|
Div_default.row,
|
|
@@ -6062,45 +5882,45 @@ var TableStyledComponent = import_styled_components13.default.table.withConfig({
|
|
|
6062
5882
|
|
|
6063
5883
|
thead {
|
|
6064
5884
|
tr:first-child {
|
|
6065
|
-
border-top-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
6066
|
-
border-top-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
5885
|
+
border-top-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5886
|
+
border-top-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
6067
5887
|
|
|
6068
5888
|
th:first-child {
|
|
6069
|
-
border-top-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
5889
|
+
border-top-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
6070
5890
|
}
|
|
6071
5891
|
|
|
6072
5892
|
th:last-child {
|
|
6073
|
-
border-top-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
5893
|
+
border-top-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
6074
5894
|
}
|
|
6075
5895
|
}
|
|
6076
5896
|
}
|
|
6077
5897
|
|
|
6078
5898
|
tbody {
|
|
6079
5899
|
tr:last-child {
|
|
6080
|
-
border-bottom-left-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 -
|
|
6081
|
-
border-bottom-right-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 -
|
|
5900
|
+
border-bottom-left-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5901
|
+
border-bottom-right-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
6082
5902
|
|
|
6083
5903
|
td:first-child {
|
|
6084
|
-
border-bottom-left-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 -
|
|
5904
|
+
border-bottom-left-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
6085
5905
|
}
|
|
6086
5906
|
|
|
6087
5907
|
td:last-child {
|
|
6088
|
-
border-bottom-right-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 -
|
|
5908
|
+
border-bottom-right-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
6089
5909
|
}
|
|
6090
5910
|
}
|
|
6091
5911
|
}
|
|
6092
5912
|
|
|
6093
5913
|
tfoot {
|
|
6094
5914
|
tr:last-child {
|
|
6095
|
-
border-bottom-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
6096
|
-
border-bottom-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
5915
|
+
border-bottom-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5916
|
+
border-bottom-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
6097
5917
|
|
|
6098
5918
|
td:first-child {
|
|
6099
|
-
border-bottom-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
5919
|
+
border-bottom-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
6100
5920
|
}
|
|
6101
5921
|
|
|
6102
5922
|
td:last-child {
|
|
6103
|
-
border-bottom-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
5923
|
+
border-bottom-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
6104
5924
|
}
|
|
6105
5925
|
}
|
|
6106
5926
|
}
|
|
@@ -6150,7 +5970,8 @@ var TableStyledComponent = import_styled_components13.default.table.withConfig({
|
|
|
6150
5970
|
}
|
|
6151
5971
|
|
|
6152
5972
|
td {
|
|
6153
|
-
border-top:
|
|
5973
|
+
border-top: ${(props) => props.theme.styles.borderWidth}px solid
|
|
5974
|
+
${(props) => props.theme.colors.border + (props.colorTheme === "light" ? "60" : "40")};
|
|
6154
5975
|
padding: ${(props) => props.theme.styles.gap}px ${(props) => props.theme.styles.space}px;
|
|
6155
5976
|
|
|
6156
5977
|
&.noData {
|
|
@@ -6554,25 +6375,21 @@ var TableComponent = (0, import_react27.forwardRef)(function Table({
|
|
|
6554
6375
|
(0, import_react27.useEffect)(() => {
|
|
6555
6376
|
onChangeFilterDataValue?.(dataAfterFilter);
|
|
6556
6377
|
}, [onChangeFilterDataValue, dataAfterFilter]);
|
|
6557
|
-
(0, import_react27.useImperativeHandle)(
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
|
|
6562
|
-
|
|
6563
|
-
|
|
6564
|
-
|
|
6565
|
-
};
|
|
6566
|
-
},
|
|
6567
|
-
[currentPage, setCurrentPage, pageCountInternal, setCheckedItems]
|
|
6568
|
-
);
|
|
6378
|
+
(0, import_react27.useImperativeHandle)(ref, () => {
|
|
6379
|
+
return {
|
|
6380
|
+
currentPage,
|
|
6381
|
+
setCurrentPage,
|
|
6382
|
+
pagesCount: pageCountInternal,
|
|
6383
|
+
setCheckedItems
|
|
6384
|
+
};
|
|
6385
|
+
}, [currentPage, setCurrentPage, pageCountInternal, setCheckedItems]);
|
|
6569
6386
|
const withFooter = pageSize !== void 0 && pageCountInternal > 1;
|
|
6570
6387
|
const mobileFooterBreakingPoint = mediaQuery.size700 && pageCountInternal > maximumVisiblePages / 1.4;
|
|
6571
6388
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
|
|
6572
6389
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
6573
6390
|
Div_default,
|
|
6574
6391
|
{
|
|
6575
|
-
border:
|
|
6392
|
+
border: `${theme2.styles.borderWidth}px solid ${theme2.colors.border}`,
|
|
6576
6393
|
borderRadius: theme2.styles.borderRadius * 2,
|
|
6577
6394
|
overflow: !containsOverflowComponents ? "auto" : void 0,
|
|
6578
6395
|
...props,
|
|
@@ -6938,7 +6755,7 @@ var Arrow = (0, import_react28.memo)(function Arrow2(props) {
|
|
|
6938
6755
|
}),
|
|
6939
6756
|
[props, theme2]
|
|
6940
6757
|
);
|
|
6941
|
-
const borderWidth =
|
|
6758
|
+
const borderWidth = theme2.styles.borderWidth;
|
|
6942
6759
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
6943
6760
|
Div_default,
|
|
6944
6761
|
{
|
|
@@ -7058,17 +6875,13 @@ var TooltipComponent = (0, import_react28.forwardRef)(function Tooltip({
|
|
|
7058
6875
|
if (!disabled) return;
|
|
7059
6876
|
closeTooltip();
|
|
7060
6877
|
}, [disabled]);
|
|
7061
|
-
(0, import_react28.useImperativeHandle)(
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
|
|
7068
|
-
};
|
|
7069
|
-
},
|
|
7070
|
-
[isOpen, openTooltip, closeTooltip]
|
|
7071
|
-
);
|
|
6878
|
+
(0, import_react28.useImperativeHandle)(ref, () => {
|
|
6879
|
+
return {
|
|
6880
|
+
isOpen,
|
|
6881
|
+
open: openTooltip,
|
|
6882
|
+
close: closeTooltip
|
|
6883
|
+
};
|
|
6884
|
+
}, [isOpen, openTooltip, closeTooltip]);
|
|
7072
6885
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
7073
6886
|
Div_default,
|
|
7074
6887
|
{
|
|
@@ -7192,7 +7005,7 @@ TooltipComponent.item = (0, import_react28.forwardRef)(function Item({
|
|
|
7192
7005
|
});
|
|
7193
7006
|
TooltipComponent.divider = (0, import_react28.forwardRef)(function DividerComponent(props, ref) {
|
|
7194
7007
|
const theme2 = (0, import_react_better_core26.useTheme)();
|
|
7195
|
-
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Divider_default.horizontal, { marginBlock: theme2.styles.gap, ...props, ref });
|
|
7008
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Divider_default.horizontal, { width: theme2.styles.borderWidth, marginBlock: theme2.styles.gap, ...props, ref });
|
|
7196
7009
|
});
|
|
7197
7010
|
TooltipComponent.sectionTitle = (0, import_react28.forwardRef)(function SectionTitle({ text, ...props }, ref) {
|
|
7198
7011
|
const theme2 = (0, import_react_better_core26.useTheme)();
|
|
@@ -7309,16 +7122,12 @@ var TabsComponent = (0, import_react29.forwardRef)(function Tabs({ tabs, name, a
|
|
|
7309
7122
|
);
|
|
7310
7123
|
};
|
|
7311
7124
|
}, []);
|
|
7312
|
-
(0, import_react29.useImperativeHandle)(
|
|
7313
|
-
|
|
7314
|
-
|
|
7315
|
-
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
};
|
|
7319
|
-
},
|
|
7320
|
-
[selectedTab, onClickTab]
|
|
7321
|
-
);
|
|
7125
|
+
(0, import_react29.useImperativeHandle)(ref, () => {
|
|
7126
|
+
return {
|
|
7127
|
+
selectedTab,
|
|
7128
|
+
selectTab: onClickTab
|
|
7129
|
+
};
|
|
7130
|
+
}, [selectedTab, onClickTab]);
|
|
7322
7131
|
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(Div_default.column, { width: "100%", gap: theme2.styles.space, ...props, children: [
|
|
7323
7132
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(Div_default, { position: "relative", className: "react-better-html-no-scrollbar", overflowY: "auto", children: [
|
|
7324
7133
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Div_default.row, { position: "relative", width: "fit-content", gap: tabsGap, userSelect: "none", children: tabs.map((tab) => {
|
|
@@ -7332,7 +7141,7 @@ var TabsComponent = (0, import_react29.forwardRef)(function Tabs({ tabs, name, a
|
|
|
7332
7141
|
borderRadius: style === "box" ? theme2.styles.borderRadius : void 0,
|
|
7333
7142
|
borderTopLeftRadius: style === "borderRadiusTop" ? theme2.styles.borderRadius : void 0,
|
|
7334
7143
|
borderTopRightRadius: style === "borderRadiusTop" ? theme2.styles.borderRadius : void 0,
|
|
7335
|
-
border: style === "box" ?
|
|
7144
|
+
border: style === "box" ? `${theme2.styles.borderWidth}px solid ${selected ? "transparent" : theme2.colors.border}` : void 0,
|
|
7336
7145
|
filterHover: colorTheme === "dark" ? style === "box" ? "brightness(1.2)" : "brightness(2)" : "brightness(0.9)",
|
|
7337
7146
|
paddingInline: theme2.styles.space,
|
|
7338
7147
|
paddingBlock: theme2.styles.gap,
|
|
@@ -7527,7 +7336,7 @@ var FoldableComponent = (0, import_react30.forwardRef)(function Foldable({
|
|
|
7527
7336
|
]
|
|
7528
7337
|
}
|
|
7529
7338
|
),
|
|
7530
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Div_default, { height: isOpen ? 1 : 0, opacity: isOpen ? 1 : 0, transition: theme2.styles.transition, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Divider_default.horizontal, {}) }),
|
|
7339
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Div_default, { height: isOpen ? 1 : 0, opacity: isOpen ? 1 : 0, transition: theme2.styles.transition, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Divider_default.horizontal, { width: theme2.styles.borderWidth }) }),
|
|
7531
7340
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
7532
7341
|
Div_default,
|
|
7533
7342
|
{
|
|
@@ -7548,7 +7357,7 @@ FoldableComponent.box = (0, import_react30.forwardRef)(function Box3({ ...props
|
|
|
7548
7357
|
FoldableComponent,
|
|
7549
7358
|
{
|
|
7550
7359
|
backgroundColor: theme2.colors.backgroundContent,
|
|
7551
|
-
border:
|
|
7360
|
+
border: `${theme2.styles.borderWidth}px solid ${theme2.colors.border}`,
|
|
7552
7361
|
borderRadius: theme2.styles.borderRadius,
|
|
7553
7362
|
headerPaddingBlock: (theme2.styles.gap + theme2.styles.space) / 2,
|
|
7554
7363
|
headerPaddingInline: theme2.styles.space,
|
|
@@ -7823,7 +7632,7 @@ var SideMenuComponent = function SideMenu({
|
|
|
7823
7632
|
top: topSpace,
|
|
7824
7633
|
left: 0,
|
|
7825
7634
|
backgroundColor: readyBackgroundColor,
|
|
7826
|
-
borderRight: `solid
|
|
7635
|
+
borderRight: `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}`,
|
|
7827
7636
|
transform: !mediaQuery.size1000 || sideMenuIsOpenMobile ? "translateX(0)" : "translateX(-100%)",
|
|
7828
7637
|
paddingTop: paddingTop ?? (logoAssetName || logoUrl ? theme2.styles.gap : theme2.styles.space),
|
|
7829
7638
|
transition: mediaQuery.size1000 ? !isCollapsed ? `transform ${theme2.styles.transition}` : "none" : theme2.styles.transition,
|
|
@@ -7891,7 +7700,7 @@ var SideMenuComponent = function SideMenu({
|
|
|
7891
7700
|
readyBottomItems && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
7892
7701
|
Div_default.column,
|
|
7893
7702
|
{
|
|
7894
|
-
borderTop: mediaQuery.size1000 ? `solid
|
|
7703
|
+
borderTop: mediaQuery.size1000 ? `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}` : void 0,
|
|
7895
7704
|
gap: theme2.styles.gap / 2,
|
|
7896
7705
|
marginTop: "auto",
|
|
7897
7706
|
paddingTop: mediaQuery.size1000 ? theme2.styles.space : void 0,
|
|
@@ -7913,7 +7722,7 @@ var SideMenuComponent = function SideMenu({
|
|
|
7913
7722
|
isCollapsable && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
7914
7723
|
Div_default,
|
|
7915
7724
|
{
|
|
7916
|
-
borderTop: `solid
|
|
7725
|
+
borderTop: `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}`,
|
|
7917
7726
|
marginTop: !readyBottomItems ? "auto" : void 0,
|
|
7918
7727
|
paddingInline: theme2.styles.space,
|
|
7919
7728
|
paddingBlock: theme2.styles.space,
|
|
@@ -7951,7 +7760,7 @@ var SideMenuComponent = function SideMenu({
|
|
|
7951
7760
|
top: theme2.styles.space,
|
|
7952
7761
|
left: "100%",
|
|
7953
7762
|
backgroundColor: readyBackgroundColor,
|
|
7954
|
-
border: `solid
|
|
7763
|
+
border: `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}`,
|
|
7955
7764
|
borderLeft: "none",
|
|
7956
7765
|
borderTopRightRadius: theme2.styles.borderRadius,
|
|
7957
7766
|
borderBottomRightRadius: theme2.styles.borderRadius,
|
|
@@ -8121,6 +7930,7 @@ var SideMenu_default = SideMenu2;
|
|
|
8121
7930
|
lightenColor,
|
|
8122
7931
|
loaderControls,
|
|
8123
7932
|
localStoragePlugin,
|
|
7933
|
+
log,
|
|
8124
7934
|
reactRouterDomPlugin,
|
|
8125
7935
|
saturateColor,
|
|
8126
7936
|
sideMenuControls,
|