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.mjs
CHANGED
|
@@ -17,7 +17,10 @@ import {
|
|
|
17
17
|
useBooleanState as useBooleanState9,
|
|
18
18
|
useDebounceState as useDebounceState3,
|
|
19
19
|
loaderControls,
|
|
20
|
-
colorThemeControls as colorThemeControls2
|
|
20
|
+
colorThemeControls as colorThemeControls2,
|
|
21
|
+
generateApi,
|
|
22
|
+
generateEventEmitter,
|
|
23
|
+
log
|
|
21
24
|
} from "react-better-core";
|
|
22
25
|
|
|
23
26
|
// src/components/BetterHtmlProvider.tsx
|
|
@@ -888,7 +891,7 @@ function useComponentInputFieldDateProps(props, holderRef, disabled) {
|
|
|
888
891
|
);
|
|
889
892
|
const insideInputFieldComponentProps = useMemo(
|
|
890
893
|
() => ({
|
|
891
|
-
border:
|
|
894
|
+
border: `${theme2.styles.borderWidth}px solid ${isFocused ? theme2.colors.primary : theme2.colors.border}`,
|
|
892
895
|
borderTop: "none",
|
|
893
896
|
opacity: !isOpen ? 0 : void 0,
|
|
894
897
|
pointerEvents: !isOpen ? "none" : void 0,
|
|
@@ -1409,7 +1412,7 @@ Image.profileImage = forwardRef3(function ProfileImage({ size = 40, letters, let
|
|
|
1409
1412
|
Div_default.row,
|
|
1410
1413
|
{
|
|
1411
1414
|
backgroundColor: backgroundColor ?? theme2.colors.backgroundSecondary,
|
|
1412
|
-
border: `solid
|
|
1415
|
+
border: `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}`,
|
|
1413
1416
|
borderRadius: 999,
|
|
1414
1417
|
alignItems: "center",
|
|
1415
1418
|
justifyContent: "center",
|
|
@@ -1424,7 +1427,7 @@ Image.profileImage = forwardRef3(function ProfileImage({ size = 40, letters, let
|
|
|
1424
1427
|
{
|
|
1425
1428
|
width: size,
|
|
1426
1429
|
height: size,
|
|
1427
|
-
border: `solid
|
|
1430
|
+
border: `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}`,
|
|
1428
1431
|
borderRadius: 999,
|
|
1429
1432
|
objectFit: "cover",
|
|
1430
1433
|
ref,
|
|
@@ -1722,7 +1725,7 @@ DivComponent.box = forwardRef6(function Box({
|
|
|
1722
1725
|
{
|
|
1723
1726
|
color: isActive ? theme2.colors.base : void 0,
|
|
1724
1727
|
backgroundColor: isActive ? readyActiveColor : theme2.colors.backgroundContent,
|
|
1725
|
-
border:
|
|
1728
|
+
border: `${theme2.styles.borderWidth}px solid ${isActive ? readyActiveColor : theme2.colors.border}`,
|
|
1726
1729
|
borderRadius: theme2.styles.borderRadius,
|
|
1727
1730
|
borderColorHover: withClick && !isActive ? readyActiveColor : void 0,
|
|
1728
1731
|
filterHover: withClick && isActive ? "brightness(0.9)" : void 0,
|
|
@@ -1736,8 +1739,8 @@ DivComponent.box = forwardRef6(function Box({
|
|
|
1736
1739
|
Div2,
|
|
1737
1740
|
{
|
|
1738
1741
|
backgroundColor: headerBackgroundColor,
|
|
1739
|
-
borderTopLeftRadius: props.borderTopLeftRadius ?? props.borderRadius ?? theme2.styles.borderRadius -
|
|
1740
|
-
borderTopRightRadius: props.borderTopRightRadius ?? props.borderRadius ?? theme2.styles.borderRadius -
|
|
1742
|
+
borderTopLeftRadius: props.borderTopLeftRadius ?? props.borderRadius ?? theme2.styles.borderRadius - theme2.styles.borderWidth,
|
|
1743
|
+
borderTopRightRadius: props.borderTopRightRadius ?? props.borderRadius ?? theme2.styles.borderRadius - theme2.styles.borderWidth,
|
|
1741
1744
|
marginInline: -theme2.styles.space,
|
|
1742
1745
|
marginTop: -theme2.styles.space,
|
|
1743
1746
|
marginBottom: theme2.styles.space,
|
|
@@ -1764,7 +1767,7 @@ DivComponent.box = forwardRef6(function Box({
|
|
|
1764
1767
|
marginBottom: theme2.styles.space
|
|
1765
1768
|
}
|
|
1766
1769
|
),
|
|
1767
|
-
/* @__PURE__ */ jsx6(Div2, { width: `calc(100% + ${theme2.styles.space * 2}px)`, marginLeft: -theme2.styles.space, children: /* @__PURE__ */ jsx6(Divider_default.horizontal, {}) })
|
|
1770
|
+
/* @__PURE__ */ jsx6(Div2, { width: `calc(100% + ${theme2.styles.space * 2}px)`, marginLeft: -theme2.styles.space, children: /* @__PURE__ */ jsx6(Divider_default.horizontal, { width: theme2.styles.borderWidth }) })
|
|
1768
1771
|
]
|
|
1769
1772
|
}
|
|
1770
1773
|
),
|
|
@@ -1930,7 +1933,7 @@ var ButtonElement = styled6.button.withConfig({
|
|
|
1930
1933
|
background-color: ${(props) => props.theme.colors.primary};
|
|
1931
1934
|
border: none;
|
|
1932
1935
|
border-radius: ${(props) => props.theme.styles.borderRadius}px;
|
|
1933
|
-
padding: ${(props) => props.isSmall ? `${props.theme.styles.gap +
|
|
1936
|
+
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`};
|
|
1934
1937
|
user-select: none;
|
|
1935
1938
|
flex-shrink: 0;
|
|
1936
1939
|
transition: ${(props) => props.theme.styles.transition};
|
|
@@ -1952,7 +1955,7 @@ var ButtonElement = styled6.button.withConfig({
|
|
|
1952
1955
|
|
|
1953
1956
|
&.secondary {
|
|
1954
1957
|
padding-block: ${(props) => props.isSmall ? props.theme.styles.gap : (props.theme.styles.space + props.theme.styles.gap) / 2}px;
|
|
1955
|
-
border: solid
|
|
1958
|
+
border: solid ${(props) => props.theme.styles.borderWidth}px ${(props) => props.theme.colors.border};
|
|
1956
1959
|
background-color: ${(props) => props.theme.colors.backgroundContent};
|
|
1957
1960
|
background-image: none;
|
|
1958
1961
|
|
|
@@ -2428,7 +2431,7 @@ var ModalComponent = forwardRef7(function Modal({
|
|
|
2428
2431
|
]
|
|
2429
2432
|
}
|
|
2430
2433
|
),
|
|
2431
|
-
/* @__PURE__ */ jsx9(Divider_default.horizontal, {})
|
|
2434
|
+
/* @__PURE__ */ jsx9(Divider_default.horizontal, { width: theme2.styles.borderWidth })
|
|
2432
2435
|
] }) : /* @__PURE__ */ jsx9(Fragment, { children: !withoutCloseButton && /* @__PURE__ */ jsx9(Div_default, { position: "absolute", top: theme2.styles.space, right: theme2.styles.space, zIndex: 10, children: /* @__PURE__ */ jsx9(Button_default.icon, { icon: "XMark", iconColor: titleColor, onClick: onClickClose }) }) }),
|
|
2433
2436
|
/* @__PURE__ */ jsx9(Div_default, { padding: title ? theme2.styles.space : void 0, children })
|
|
2434
2437
|
]
|
|
@@ -3001,8 +3004,7 @@ function BetterHtmlProviderInternal({ config, plugins, children }) {
|
|
|
3001
3004
|
tabsWithDots,
|
|
3002
3005
|
setTabsWithDots
|
|
3003
3006
|
}
|
|
3004
|
-
}
|
|
3005
|
-
devMode: config?.devMode
|
|
3007
|
+
}
|
|
3006
3008
|
}),
|
|
3007
3009
|
[config, alerts, sideMenuIsCollapsed, sideMenuIsOpenMobile, plugins, tabGroups, tabsWithDots]
|
|
3008
3010
|
);
|
|
@@ -3032,7 +3034,8 @@ function BetterHtmlProvider({ config, ...props }) {
|
|
|
3032
3034
|
...assets,
|
|
3033
3035
|
...config?.assets
|
|
3034
3036
|
},
|
|
3035
|
-
loaders: config?.loaders
|
|
3037
|
+
loaders: config?.loaders,
|
|
3038
|
+
devMode: config?.devMode
|
|
3036
3039
|
}),
|
|
3037
3040
|
[config]
|
|
3038
3041
|
);
|
|
@@ -3041,8 +3044,7 @@ function BetterHtmlProvider({ config, ...props }) {
|
|
|
3041
3044
|
app: config?.app,
|
|
3042
3045
|
sideMenuIsCollapsed: config?.sideMenuIsCollapsed,
|
|
3043
3046
|
sideMenuIsOpenMobile: config?.sideMenuIsOpenMobile,
|
|
3044
|
-
components: config?.components
|
|
3045
|
-
devMode: config?.devMode
|
|
3047
|
+
components: config?.components
|
|
3046
3048
|
}),
|
|
3047
3049
|
[config]
|
|
3048
3050
|
);
|
|
@@ -3202,12 +3204,6 @@ function findClosestNumber(numbers, target) {
|
|
|
3202
3204
|
}
|
|
3203
3205
|
return closest;
|
|
3204
3206
|
}
|
|
3205
|
-
var constructQuery = (query) => {
|
|
3206
|
-
if (!query) return "";
|
|
3207
|
-
return Object.entries(query).filter(([_, queryVale]) => queryVale !== void 0 && queryVale !== null).map(
|
|
3208
|
-
([queryName, queryVale]) => typeof queryVale === "object" ? queryVale.map((value) => `${queryName}=${value}`) : [`${queryName}=${queryVale}`]
|
|
3209
|
-
).flat().join("&");
|
|
3210
|
-
};
|
|
3211
3207
|
|
|
3212
3208
|
// src/utils/localStorage.ts
|
|
3213
3209
|
function generateLocalStorage() {
|
|
@@ -3274,180 +3270,6 @@ function generateLocalStorage() {
|
|
|
3274
3270
|
};
|
|
3275
3271
|
}
|
|
3276
3272
|
|
|
3277
|
-
// src/utils/logger.ts
|
|
3278
|
-
var textColors = {
|
|
3279
|
-
black: "#111111",
|
|
3280
|
-
red: "#f83e4b",
|
|
3281
|
-
green: "#5ac53a",
|
|
3282
|
-
yellow: "#f8d770",
|
|
3283
|
-
blue: "#3d6fdf",
|
|
3284
|
-
magenta: "#9648eb",
|
|
3285
|
-
cyan: "#53b2c8",
|
|
3286
|
-
white: "#f8f8f8"
|
|
3287
|
-
};
|
|
3288
|
-
var backgroundColors = {
|
|
3289
|
-
black: "#111111",
|
|
3290
|
-
red: "#f83e4b",
|
|
3291
|
-
green: "#5ac53a",
|
|
3292
|
-
yellow: "#f8d770",
|
|
3293
|
-
blue: "#3d6fdf",
|
|
3294
|
-
magenta: "#9648eb",
|
|
3295
|
-
cyan: "#53b2c8",
|
|
3296
|
-
white: "#f8f8f8"
|
|
3297
|
-
};
|
|
3298
|
-
var logTypes = {
|
|
3299
|
-
info: "cyan",
|
|
3300
|
-
success: "green",
|
|
3301
|
-
warn: "yellow",
|
|
3302
|
-
error: "red"
|
|
3303
|
-
};
|
|
3304
|
-
function getCssString(options) {
|
|
3305
|
-
const color = options.color ? textColors[options.color] : void 0;
|
|
3306
|
-
const backgroundColor = options.backgroundColor ? backgroundColors[options.backgroundColor] : void 0;
|
|
3307
|
-
const fontWeight = options.bold ? "bold" : "normal";
|
|
3308
|
-
return `${color ? `color: ${color};` : ""}${backgroundColor ? `background-color: ${backgroundColor};` : ""}${fontWeight ? `font-weight: ${fontWeight};` : ""}`;
|
|
3309
|
-
}
|
|
3310
|
-
function logText(text, options) {
|
|
3311
|
-
if (externalBetterHtmlContextValue?.devMode !== true) return;
|
|
3312
|
-
console.log(`%c${text}`, getCssString(options ?? {}));
|
|
3313
|
-
}
|
|
3314
|
-
var log = {
|
|
3315
|
-
...Object.entries(logTypes).reduce(
|
|
3316
|
-
(previousValue, [logType, color]) => {
|
|
3317
|
-
previousValue[logType] = (text = "", bold) => {
|
|
3318
|
-
logText(text, {
|
|
3319
|
-
color,
|
|
3320
|
-
bold
|
|
3321
|
-
});
|
|
3322
|
-
};
|
|
3323
|
-
return previousValue;
|
|
3324
|
-
},
|
|
3325
|
-
{}
|
|
3326
|
-
),
|
|
3327
|
-
/** @description Default log function */
|
|
3328
|
-
log: (text, options) => {
|
|
3329
|
-
logText(text, options);
|
|
3330
|
-
},
|
|
3331
|
-
/** @description Logs the value in pretty json format */
|
|
3332
|
-
json: (jsonObject, options) => {
|
|
3333
|
-
logText(JSON.stringify(jsonObject, null, 4), options);
|
|
3334
|
-
},
|
|
3335
|
-
/** @description Logs a -=-= pattern */
|
|
3336
|
-
divider: (color) => {
|
|
3337
|
-
logText("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-", {
|
|
3338
|
-
color
|
|
3339
|
-
});
|
|
3340
|
-
},
|
|
3341
|
-
trace: () => {
|
|
3342
|
-
if (externalBetterHtmlContextValue?.devMode !== true) return;
|
|
3343
|
-
console.trace();
|
|
3344
|
-
}
|
|
3345
|
-
};
|
|
3346
|
-
|
|
3347
|
-
// src/utils/api.ts
|
|
3348
|
-
var methodInitiateToString = {
|
|
3349
|
-
GET: "GET request to ",
|
|
3350
|
-
PUT: "PUT request to ",
|
|
3351
|
-
POST: "POST request to ",
|
|
3352
|
-
PATCH: "PATCH request to ",
|
|
3353
|
-
DELETE: "DELETE request to ",
|
|
3354
|
-
HEAD: "HEAD request to ",
|
|
3355
|
-
OPTIONS: "OPTIONS request to ",
|
|
3356
|
-
TRACE: "TRACE request to ",
|
|
3357
|
-
CONNECT: "CONNECT request to "
|
|
3358
|
-
};
|
|
3359
|
-
var methodResponseToString = {
|
|
3360
|
-
GET: "GET request from ",
|
|
3361
|
-
PUT: "PUT request from ",
|
|
3362
|
-
POST: "POST request from ",
|
|
3363
|
-
PATCH: "PATCH request from ",
|
|
3364
|
-
DELETE: "DELETE request from ",
|
|
3365
|
-
HEAD: "HEAD request from ",
|
|
3366
|
-
OPTIONS: "OPTIONS request from",
|
|
3367
|
-
TRACE: "TRACE request from ",
|
|
3368
|
-
CONNECT: "CONNECT request from"
|
|
3369
|
-
};
|
|
3370
|
-
function generateApi(config, apiConfig, getHeaders) {
|
|
3371
|
-
return async function apiCall(name, payload = {}) {
|
|
3372
|
-
if (!apiConfig[name]) {
|
|
3373
|
-
return Promise.reject(
|
|
3374
|
-
new Error(`Endpoint ${name.toString()} is not defined in the \`generateApi\` function.`, {
|
|
3375
|
-
cause: "generateApi.apiConfig.missingEndpoint"
|
|
3376
|
-
})
|
|
3377
|
-
);
|
|
3378
|
-
}
|
|
3379
|
-
const baseURL = config.baseUrl;
|
|
3380
|
-
const path = `${apiConfig[name].path}${payload.path?.length ? `/${payload.path.join("/")}` : ""}`;
|
|
3381
|
-
const query = constructQuery(payload.query);
|
|
3382
|
-
const url = `${baseURL}${path}${query ? `?${query}` : ""}`;
|
|
3383
|
-
const requestHeaders = {
|
|
3384
|
-
"Content-Type": apiConfig[name].bodyWithFormData ? "multipart/form-data" : "application/json",
|
|
3385
|
-
...getHeaders ? Object.entries(getHeaders).reduce((previousValue, [key, value]) => {
|
|
3386
|
-
if (apiConfig[name].includeHeaders?.includes(key)) {
|
|
3387
|
-
previousValue[key] = value?.();
|
|
3388
|
-
}
|
|
3389
|
-
return previousValue;
|
|
3390
|
-
}, {}) : {}
|
|
3391
|
-
};
|
|
3392
|
-
const body = payload.body;
|
|
3393
|
-
const bodyAsFormData = new FormData();
|
|
3394
|
-
if (body && apiConfig[name].bodyWithFormData) {
|
|
3395
|
-
Object.entries(body).forEach(([key, value]) => {
|
|
3396
|
-
bodyAsFormData.append(key, value);
|
|
3397
|
-
});
|
|
3398
|
-
}
|
|
3399
|
-
const readyBody = JSON.stringify((apiConfig[name].bodyWithFormData ? bodyAsFormData : body) ?? {});
|
|
3400
|
-
log.log(`Initiate ${methodInitiateToString[apiConfig[name].method]} ${url} - ${name.toString()}`, {
|
|
3401
|
-
color: "magenta"
|
|
3402
|
-
});
|
|
3403
|
-
return await call(
|
|
3404
|
-
() => fetch(url, {
|
|
3405
|
-
method: apiConfig[name].method,
|
|
3406
|
-
body: apiConfig[name].method !== "GET" ? readyBody : void 0,
|
|
3407
|
-
headers: requestHeaders
|
|
3408
|
-
})
|
|
3409
|
-
);
|
|
3410
|
-
async function call(callAction) {
|
|
3411
|
-
const response = await callAction();
|
|
3412
|
-
const responseJson = await response.json();
|
|
3413
|
-
log.log(`Response ${methodResponseToString[apiConfig[name].method]} ${url} - ${name.toString()}`, {
|
|
3414
|
-
color: "blue"
|
|
3415
|
-
});
|
|
3416
|
-
return {
|
|
3417
|
-
data: responseJson,
|
|
3418
|
-
headers: response.headers,
|
|
3419
|
-
statusCode: response.status,
|
|
3420
|
-
statusText: response.statusText,
|
|
3421
|
-
url: response.url,
|
|
3422
|
-
ok: response.ok,
|
|
3423
|
-
redirected: response.redirected
|
|
3424
|
-
};
|
|
3425
|
-
}
|
|
3426
|
-
};
|
|
3427
|
-
}
|
|
3428
|
-
|
|
3429
|
-
// src/utils/eventEmitter.ts
|
|
3430
|
-
function generateEventEmitter() {
|
|
3431
|
-
const eventEmitter = new EventTarget();
|
|
3432
|
-
return {
|
|
3433
|
-
emit: (name, data) => {
|
|
3434
|
-
const event = new CustomEvent(name.toString(), {
|
|
3435
|
-
detail: data
|
|
3436
|
-
});
|
|
3437
|
-
eventEmitter.dispatchEvent(event);
|
|
3438
|
-
},
|
|
3439
|
-
listen: (name, callback) => {
|
|
3440
|
-
const listener = (event) => {
|
|
3441
|
-
callback?.(event.detail);
|
|
3442
|
-
};
|
|
3443
|
-
eventEmitter.addEventListener(name.toString(), listener);
|
|
3444
|
-
return () => {
|
|
3445
|
-
eventEmitter.removeEventListener(name.toString(), listener);
|
|
3446
|
-
};
|
|
3447
|
-
}
|
|
3448
|
-
};
|
|
3449
|
-
}
|
|
3450
|
-
|
|
3451
3273
|
// src/components/PageHolder.tsx
|
|
3452
3274
|
import { forwardRef as forwardRef8, memo as memo13 } from "react";
|
|
3453
3275
|
import { useTheme as useTheme14 } from "react-better-core";
|
|
@@ -3601,7 +3423,7 @@ ChipComponent.colored = forwardRef9(function Colored({ color, withWhiteBackgroun
|
|
|
3601
3423
|
{
|
|
3602
3424
|
color: colorTheme === "light" ? darkenColor(readyColor, 0.7) : lightenColor(readyColor, 0.7),
|
|
3603
3425
|
backgroundColor: readyColor + "40",
|
|
3604
|
-
border:
|
|
3426
|
+
border: `${theme2.styles.borderWidth}px solid ${readyColor}`,
|
|
3605
3427
|
ref,
|
|
3606
3428
|
...props
|
|
3607
3429
|
}
|
|
@@ -3934,7 +3756,7 @@ var DropdownComponent = forwardRef10(function Dropdown({
|
|
|
3934
3756
|
{
|
|
3935
3757
|
width: "100%",
|
|
3936
3758
|
backgroundColor: theme2.colors.backgroundContent,
|
|
3937
|
-
border: `solid
|
|
3759
|
+
border: `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}`,
|
|
3938
3760
|
borderColor: isFocused ? theme2.colors.primary : void 0,
|
|
3939
3761
|
borderBottom: "none",
|
|
3940
3762
|
borderTopLeftRadius: theme2.styles.borderRadius,
|
|
@@ -3981,7 +3803,7 @@ var DropdownComponent = forwardRef10(function Dropdown({
|
|
|
3981
3803
|
width: "100%",
|
|
3982
3804
|
maxHeight: 300,
|
|
3983
3805
|
backgroundColor: theme2.colors.backgroundContent,
|
|
3984
|
-
border:
|
|
3806
|
+
border: `${theme2.styles.borderWidth}px solid ${isFocused ? theme2.colors.primary : theme2.colors.border}`,
|
|
3985
3807
|
borderTop: "none",
|
|
3986
3808
|
borderBottomLeftRadius: theme2.styles.borderRadius,
|
|
3987
3809
|
borderBottomRightRadius: theme2.styles.borderRadius,
|
|
@@ -4247,7 +4069,7 @@ function Calendar({ value, minDate, maxDate, onChange }) {
|
|
|
4247
4069
|
justifyContent: "center",
|
|
4248
4070
|
backgroundColor: isSelected ? theme2.colors.primary : theme2.colors.backgroundContent,
|
|
4249
4071
|
filterHover: day && !isDisabled ? "brightness(0.9)" : void 0,
|
|
4250
|
-
border:
|
|
4072
|
+
border: `${theme2.styles.borderWidth}px solid ${isToday ? theme2.colors.primary : theme2.colors.primary + "00"}`,
|
|
4251
4073
|
borderRadius: theme2.styles.borderRadius / 2,
|
|
4252
4074
|
padding: theme2.styles.space / 2,
|
|
4253
4075
|
cursor: day ? !isDisabled ? "pointer" : "not-allowed" : void 0,
|
|
@@ -4324,7 +4146,7 @@ var InputElement = styled10.input.withConfig({
|
|
|
4324
4146
|
line-height: 20px;
|
|
4325
4147
|
color: ${(props) => props.theme.colors.textPrimary};
|
|
4326
4148
|
background: ${(props) => props.theme.colors.backgroundContent};
|
|
4327
|
-
border:
|
|
4149
|
+
border: ${(props) => props.theme.styles.borderWidth}px solid ${(props) => props.theme.colors.border};
|
|
4328
4150
|
border-radius: ${(props) => props.theme.styles.borderRadius}px;
|
|
4329
4151
|
border-top-left-radius: ${(props) => props.withPrefix ? 0 : void 0};
|
|
4330
4152
|
border-bottom-left-radius: ${(props) => props.withPrefix ? 0 : void 0};
|
|
@@ -4403,7 +4225,7 @@ var InputElement = styled10.input.withConfig({
|
|
|
4403
4225
|
}
|
|
4404
4226
|
|
|
4405
4227
|
&.react-better-html-dropdown {
|
|
4406
|
-
padding-right: ${(props) => props.theme.styles.space + 16 + props.theme.styles.space -
|
|
4228
|
+
padding-right: ${(props) => props.theme.styles.space + 16 + props.theme.styles.space - props.theme.styles.borderWidth}px;
|
|
4407
4229
|
|
|
4408
4230
|
&.react-better-html-dropdown-multiselect {
|
|
4409
4231
|
border-top: none;
|
|
@@ -4447,12 +4269,12 @@ var TextareaElement = styled10.textarea.withConfig({
|
|
|
4447
4269
|
line-height: 20px;
|
|
4448
4270
|
color: ${(props) => props.theme.colors.textPrimary};
|
|
4449
4271
|
background: ${(props) => props.theme.colors.backgroundContent};
|
|
4450
|
-
border:
|
|
4272
|
+
border: ${(props) => props.theme.styles.borderWidth}px solid ${(props) => props.theme.colors.border};
|
|
4451
4273
|
border-radius: ${(props) => props.theme.styles.borderRadius}px;
|
|
4452
4274
|
outline: none;
|
|
4453
4275
|
padding: ${(props) => `${(props.theme.styles.gap + props.theme.styles.space) / 2}px ${props.theme.styles.space}px`};
|
|
4454
|
-
padding-left: ${(props) => props.withLeftIcon ? `${props.theme.styles.space + 16 + props.theme.styles.space -
|
|
4455
|
-
padding-right: ${(props) => props.withRightIcon ? `${props.theme.styles.space + 16 + props.theme.styles.space -
|
|
4276
|
+
padding-left: ${(props) => props.withLeftIcon ? `${props.theme.styles.space + 16 + props.theme.styles.space - props.theme.styles.borderWidth}px` : void 0};
|
|
4277
|
+
padding-right: ${(props) => props.withRightIcon ? `${props.theme.styles.space + 16 + props.theme.styles.space - props.theme.styles.borderWidth}px` : void 0};
|
|
4456
4278
|
resize: vertical;
|
|
4457
4279
|
transition: border-color ${(props) => props.theme.styles.transition};
|
|
4458
4280
|
|
|
@@ -4538,7 +4360,7 @@ var InputFieldComponent = forwardRef11(function InputField({
|
|
|
4538
4360
|
{
|
|
4539
4361
|
alignItems: "center",
|
|
4540
4362
|
justifyContent: "center",
|
|
4541
|
-
border:
|
|
4363
|
+
border: `${theme2.styles.borderWidth}px solid ${theme2.colors.border}`,
|
|
4542
4364
|
borderRight: "none",
|
|
4543
4365
|
backgroundColor: prefixBackgroundColor ?? (colorTheme === "light" ? darkenColor2(theme2.colors.backgroundContent, 0.03) : lightenColor2(theme2.colors.backgroundContent, 0.1)),
|
|
4544
4366
|
borderTopLeftRadius: theme2.styles.borderRadius,
|
|
@@ -4555,8 +4377,8 @@ var InputFieldComponent = forwardRef11(function InputField({
|
|
|
4555
4377
|
{
|
|
4556
4378
|
name: leftIcon,
|
|
4557
4379
|
position: "absolute",
|
|
4558
|
-
top: (props.type === "date" || props.type === "time" || props.type === "datetime-local" ? 48 :
|
|
4559
|
-
left: theme2.styles.space +
|
|
4380
|
+
top: ((props.type === "date" || props.type === "time" || props.type === "datetime-local" ? 48 : 44) + theme2.styles.borderWidth * 2) / 2,
|
|
4381
|
+
left: theme2.styles.space + theme2.styles.borderWidth,
|
|
4560
4382
|
transform: "translateY(-50%)",
|
|
4561
4383
|
pointerEvents: "none",
|
|
4562
4384
|
zIndex: leftIconZIndex
|
|
@@ -4587,8 +4409,8 @@ var InputFieldComponent = forwardRef11(function InputField({
|
|
|
4587
4409
|
{
|
|
4588
4410
|
icon: rightIcon,
|
|
4589
4411
|
position: "absolute",
|
|
4590
|
-
top:
|
|
4591
|
-
right: theme2.styles.space +
|
|
4412
|
+
top: (44 + theme2.styles.borderWidth * 2) / 2,
|
|
4413
|
+
right: theme2.styles.space + theme2.styles.borderWidth - theme2.styles.space / 2,
|
|
4592
4414
|
transform: "translateY(-50%)",
|
|
4593
4415
|
onClick: onClickRightIcon
|
|
4594
4416
|
}
|
|
@@ -4597,8 +4419,8 @@ var InputFieldComponent = forwardRef11(function InputField({
|
|
|
4597
4419
|
{
|
|
4598
4420
|
name: rightIcon,
|
|
4599
4421
|
position: "absolute",
|
|
4600
|
-
top:
|
|
4601
|
-
right: theme2.styles.space +
|
|
4422
|
+
top: (44 + theme2.styles.borderWidth * 2) / 2,
|
|
4423
|
+
right: theme2.styles.space + theme2.styles.borderWidth,
|
|
4602
4424
|
transform: "translateY(-50%)",
|
|
4603
4425
|
pointerEvents: "none"
|
|
4604
4426
|
}
|
|
@@ -4611,7 +4433,7 @@ var InputFieldComponent = forwardRef11(function InputField({
|
|
|
4611
4433
|
{
|
|
4612
4434
|
alignItems: "center",
|
|
4613
4435
|
justifyContent: "center",
|
|
4614
|
-
border:
|
|
4436
|
+
border: `${theme2.styles.borderWidth}px solid ${theme2.colors.border}`,
|
|
4615
4437
|
borderLeft: "none",
|
|
4616
4438
|
backgroundColor: suffixBackgroundColor ?? (colorTheme === "light" ? darkenColor2(theme2.colors.backgroundContent, 0.03) : lightenColor2(theme2.colors.backgroundContent, 0.1)),
|
|
4617
4439
|
borderTopRightRadius: theme2.styles.borderRadius,
|
|
@@ -4668,8 +4490,8 @@ InputFieldComponent.multiline = forwardRef11(function Multiline({
|
|
|
4668
4490
|
{
|
|
4669
4491
|
name: leftIcon,
|
|
4670
4492
|
position: "absolute",
|
|
4671
|
-
top:
|
|
4672
|
-
left: theme2.styles.space +
|
|
4493
|
+
top: (44 + theme2.styles.borderWidth * 2) / 2,
|
|
4494
|
+
left: theme2.styles.space + theme2.styles.borderWidth,
|
|
4673
4495
|
transform: "translateY(-50%)",
|
|
4674
4496
|
pointerEvents: "none"
|
|
4675
4497
|
}
|
|
@@ -4697,8 +4519,8 @@ InputFieldComponent.multiline = forwardRef11(function Multiline({
|
|
|
4697
4519
|
{
|
|
4698
4520
|
icon: rightIcon,
|
|
4699
4521
|
position: "absolute",
|
|
4700
|
-
top:
|
|
4701
|
-
right: theme2.styles.space +
|
|
4522
|
+
top: (44 + theme2.styles.borderWidth * 2) / 2,
|
|
4523
|
+
right: theme2.styles.space + theme2.styles.borderWidth - theme2.styles.space / 2,
|
|
4702
4524
|
transform: "translateY(-50%)",
|
|
4703
4525
|
onClick: onClickRightIcon
|
|
4704
4526
|
}
|
|
@@ -4707,8 +4529,8 @@ InputFieldComponent.multiline = forwardRef11(function Multiline({
|
|
|
4707
4529
|
{
|
|
4708
4530
|
name: rightIcon,
|
|
4709
4531
|
position: "absolute",
|
|
4710
|
-
top:
|
|
4711
|
-
right: theme2.styles.space +
|
|
4532
|
+
top: (44 + theme2.styles.borderWidth * 2) / 2,
|
|
4533
|
+
right: theme2.styles.space + theme2.styles.borderWidth,
|
|
4712
4534
|
transform: "translateY(-50%)",
|
|
4713
4535
|
pointerEvents: "none"
|
|
4714
4536
|
}
|
|
@@ -5375,7 +5197,7 @@ var InputElement2 = styled11.input.withConfig({
|
|
|
5375
5197
|
width: ${componentSize}px;
|
|
5376
5198
|
height: ${componentSize}px;
|
|
5377
5199
|
background-color: ${(props) => props.theme.colors.backgroundContent};
|
|
5378
|
-
border:
|
|
5200
|
+
border: ${(props) => props.theme.styles.borderWidth}px solid ${(props) => props.theme.colors.border};
|
|
5379
5201
|
border-radius: ${(props) => props.theme.styles.borderRadius / 2}px;
|
|
5380
5202
|
cursor: pointer;
|
|
5381
5203
|
transition: ${(props) => props.theme.styles.transition};
|
|
@@ -5691,7 +5513,7 @@ var FormComponent = forwardRef13(function Form({
|
|
|
5691
5513
|
return /* @__PURE__ */ jsx19(Div_default, { width: "100%", ...props, children: /* @__PURE__ */ jsxs16("form", { name, onSubmit: onSubmit ?? form?.onSubmit, ref, children: [
|
|
5692
5514
|
gap !== void 0 || withDividers ? /* @__PURE__ */ jsx19(Div_default.column, { gap: gap ?? (withDividers ? theme2.styles.space : theme2.styles.gap), children: withDividers ? Children.toArray(children).map((child, index) => /* @__PURE__ */ jsxs16(Fragment5, { children: [
|
|
5693
5515
|
child,
|
|
5694
|
-
index < Children.toArray(children).length - 1 && /* @__PURE__ */ jsx19(Divider_default.horizontal, {})
|
|
5516
|
+
index < Children.toArray(children).length - 1 && /* @__PURE__ */ jsx19(Divider_default.horizontal, { width: theme2.styles.borderWidth })
|
|
5695
5517
|
] }, index)) : children }) : children,
|
|
5696
5518
|
submitButtonText && /* @__PURE__ */ jsxs16(
|
|
5697
5519
|
Div_default.row,
|
|
@@ -6021,45 +5843,45 @@ var TableStyledComponent = styled12.table.withConfig({
|
|
|
6021
5843
|
|
|
6022
5844
|
thead {
|
|
6023
5845
|
tr:first-child {
|
|
6024
|
-
border-top-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
6025
|
-
border-top-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
5846
|
+
border-top-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5847
|
+
border-top-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
6026
5848
|
|
|
6027
5849
|
th:first-child {
|
|
6028
|
-
border-top-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
5850
|
+
border-top-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
6029
5851
|
}
|
|
6030
5852
|
|
|
6031
5853
|
th:last-child {
|
|
6032
|
-
border-top-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
5854
|
+
border-top-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
6033
5855
|
}
|
|
6034
5856
|
}
|
|
6035
5857
|
}
|
|
6036
5858
|
|
|
6037
5859
|
tbody {
|
|
6038
5860
|
tr:last-child {
|
|
6039
|
-
border-bottom-left-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 -
|
|
6040
|
-
border-bottom-right-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 -
|
|
5861
|
+
border-bottom-left-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5862
|
+
border-bottom-right-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
6041
5863
|
|
|
6042
5864
|
td:first-child {
|
|
6043
|
-
border-bottom-left-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 -
|
|
5865
|
+
border-bottom-left-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
6044
5866
|
}
|
|
6045
5867
|
|
|
6046
5868
|
td:last-child {
|
|
6047
|
-
border-bottom-right-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 -
|
|
5869
|
+
border-bottom-right-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
6048
5870
|
}
|
|
6049
5871
|
}
|
|
6050
5872
|
}
|
|
6051
5873
|
|
|
6052
5874
|
tfoot {
|
|
6053
5875
|
tr:last-child {
|
|
6054
|
-
border-bottom-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
6055
|
-
border-bottom-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
5876
|
+
border-bottom-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5877
|
+
border-bottom-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
6056
5878
|
|
|
6057
5879
|
td:first-child {
|
|
6058
|
-
border-bottom-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
5880
|
+
border-bottom-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
6059
5881
|
}
|
|
6060
5882
|
|
|
6061
5883
|
td:last-child {
|
|
6062
|
-
border-bottom-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
5884
|
+
border-bottom-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
6063
5885
|
}
|
|
6064
5886
|
}
|
|
6065
5887
|
}
|
|
@@ -6109,7 +5931,8 @@ var TableStyledComponent = styled12.table.withConfig({
|
|
|
6109
5931
|
}
|
|
6110
5932
|
|
|
6111
5933
|
td {
|
|
6112
|
-
border-top:
|
|
5934
|
+
border-top: ${(props) => props.theme.styles.borderWidth}px solid
|
|
5935
|
+
${(props) => props.theme.colors.border + (props.colorTheme === "light" ? "60" : "40")};
|
|
6113
5936
|
padding: ${(props) => props.theme.styles.gap}px ${(props) => props.theme.styles.space}px;
|
|
6114
5937
|
|
|
6115
5938
|
&.noData {
|
|
@@ -6513,25 +6336,21 @@ var TableComponent = forwardRef15(function Table({
|
|
|
6513
6336
|
useEffect12(() => {
|
|
6514
6337
|
onChangeFilterDataValue?.(dataAfterFilter);
|
|
6515
6338
|
}, [onChangeFilterDataValue, dataAfterFilter]);
|
|
6516
|
-
useImperativeHandle2(
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
|
|
6521
|
-
|
|
6522
|
-
|
|
6523
|
-
|
|
6524
|
-
};
|
|
6525
|
-
},
|
|
6526
|
-
[currentPage, setCurrentPage, pageCountInternal, setCheckedItems]
|
|
6527
|
-
);
|
|
6339
|
+
useImperativeHandle2(ref, () => {
|
|
6340
|
+
return {
|
|
6341
|
+
currentPage,
|
|
6342
|
+
setCurrentPage,
|
|
6343
|
+
pagesCount: pageCountInternal,
|
|
6344
|
+
setCheckedItems
|
|
6345
|
+
};
|
|
6346
|
+
}, [currentPage, setCurrentPage, pageCountInternal, setCheckedItems]);
|
|
6528
6347
|
const withFooter = pageSize !== void 0 && pageCountInternal > 1;
|
|
6529
6348
|
const mobileFooterBreakingPoint = mediaQuery.size700 && pageCountInternal > maximumVisiblePages / 1.4;
|
|
6530
6349
|
return /* @__PURE__ */ jsxs20(Fragment7, { children: [
|
|
6531
6350
|
/* @__PURE__ */ jsx23(
|
|
6532
6351
|
Div_default,
|
|
6533
6352
|
{
|
|
6534
|
-
border:
|
|
6353
|
+
border: `${theme2.styles.borderWidth}px solid ${theme2.colors.border}`,
|
|
6535
6354
|
borderRadius: theme2.styles.borderRadius * 2,
|
|
6536
6355
|
overflow: !containsOverflowComponents ? "auto" : void 0,
|
|
6537
6356
|
...props,
|
|
@@ -6897,7 +6716,7 @@ var Arrow = memo24(function Arrow2(props) {
|
|
|
6897
6716
|
}),
|
|
6898
6717
|
[props, theme2]
|
|
6899
6718
|
);
|
|
6900
|
-
const borderWidth =
|
|
6719
|
+
const borderWidth = theme2.styles.borderWidth;
|
|
6901
6720
|
return /* @__PURE__ */ jsx24(
|
|
6902
6721
|
Div_default,
|
|
6903
6722
|
{
|
|
@@ -7017,17 +6836,13 @@ var TooltipComponent = forwardRef16(function Tooltip({
|
|
|
7017
6836
|
if (!disabled) return;
|
|
7018
6837
|
closeTooltip();
|
|
7019
6838
|
}, [disabled]);
|
|
7020
|
-
useImperativeHandle3(
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
};
|
|
7028
|
-
},
|
|
7029
|
-
[isOpen, openTooltip, closeTooltip]
|
|
7030
|
-
);
|
|
6839
|
+
useImperativeHandle3(ref, () => {
|
|
6840
|
+
return {
|
|
6841
|
+
isOpen,
|
|
6842
|
+
open: openTooltip,
|
|
6843
|
+
close: closeTooltip
|
|
6844
|
+
};
|
|
6845
|
+
}, [isOpen, openTooltip, closeTooltip]);
|
|
7031
6846
|
return /* @__PURE__ */ jsxs21(
|
|
7032
6847
|
Div_default,
|
|
7033
6848
|
{
|
|
@@ -7151,7 +6966,7 @@ TooltipComponent.item = forwardRef16(function Item({
|
|
|
7151
6966
|
});
|
|
7152
6967
|
TooltipComponent.divider = forwardRef16(function DividerComponent(props, ref) {
|
|
7153
6968
|
const theme2 = useTheme26();
|
|
7154
|
-
return /* @__PURE__ */ jsx24(Divider_default.horizontal, { marginBlock: theme2.styles.gap, ...props, ref });
|
|
6969
|
+
return /* @__PURE__ */ jsx24(Divider_default.horizontal, { width: theme2.styles.borderWidth, marginBlock: theme2.styles.gap, ...props, ref });
|
|
7155
6970
|
});
|
|
7156
6971
|
TooltipComponent.sectionTitle = forwardRef16(function SectionTitle({ text, ...props }, ref) {
|
|
7157
6972
|
const theme2 = useTheme26();
|
|
@@ -7268,16 +7083,12 @@ var TabsComponent = forwardRef17(function Tabs({ tabs, name, accentColor, style
|
|
|
7268
7083
|
);
|
|
7269
7084
|
};
|
|
7270
7085
|
}, []);
|
|
7271
|
-
useImperativeHandle4(
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
|
|
7277
|
-
};
|
|
7278
|
-
},
|
|
7279
|
-
[selectedTab, onClickTab]
|
|
7280
|
-
);
|
|
7086
|
+
useImperativeHandle4(ref, () => {
|
|
7087
|
+
return {
|
|
7088
|
+
selectedTab,
|
|
7089
|
+
selectTab: onClickTab
|
|
7090
|
+
};
|
|
7091
|
+
}, [selectedTab, onClickTab]);
|
|
7281
7092
|
return /* @__PURE__ */ jsxs22(Div_default.column, { width: "100%", gap: theme2.styles.space, ...props, children: [
|
|
7282
7093
|
/* @__PURE__ */ jsxs22(Div_default, { position: "relative", className: "react-better-html-no-scrollbar", overflowY: "auto", children: [
|
|
7283
7094
|
/* @__PURE__ */ jsx25(Div_default.row, { position: "relative", width: "fit-content", gap: tabsGap, userSelect: "none", children: tabs.map((tab) => {
|
|
@@ -7291,7 +7102,7 @@ var TabsComponent = forwardRef17(function Tabs({ tabs, name, accentColor, style
|
|
|
7291
7102
|
borderRadius: style === "box" ? theme2.styles.borderRadius : void 0,
|
|
7292
7103
|
borderTopLeftRadius: style === "borderRadiusTop" ? theme2.styles.borderRadius : void 0,
|
|
7293
7104
|
borderTopRightRadius: style === "borderRadiusTop" ? theme2.styles.borderRadius : void 0,
|
|
7294
|
-
border: style === "box" ?
|
|
7105
|
+
border: style === "box" ? `${theme2.styles.borderWidth}px solid ${selected ? "transparent" : theme2.colors.border}` : void 0,
|
|
7295
7106
|
filterHover: colorTheme === "dark" ? style === "box" ? "brightness(1.2)" : "brightness(2)" : "brightness(0.9)",
|
|
7296
7107
|
paddingInline: theme2.styles.space,
|
|
7297
7108
|
paddingBlock: theme2.styles.gap,
|
|
@@ -7486,7 +7297,7 @@ var FoldableComponent = forwardRef18(function Foldable({
|
|
|
7486
7297
|
]
|
|
7487
7298
|
}
|
|
7488
7299
|
),
|
|
7489
|
-
/* @__PURE__ */ jsx26(Div_default, { height: isOpen ? 1 : 0, opacity: isOpen ? 1 : 0, transition: theme2.styles.transition, children: /* @__PURE__ */ jsx26(Divider_default.horizontal, {}) }),
|
|
7300
|
+
/* @__PURE__ */ jsx26(Div_default, { height: isOpen ? 1 : 0, opacity: isOpen ? 1 : 0, transition: theme2.styles.transition, children: /* @__PURE__ */ jsx26(Divider_default.horizontal, { width: theme2.styles.borderWidth }) }),
|
|
7490
7301
|
/* @__PURE__ */ jsx26(
|
|
7491
7302
|
Div_default,
|
|
7492
7303
|
{
|
|
@@ -7507,7 +7318,7 @@ FoldableComponent.box = forwardRef18(function Box3({ ...props }, ref) {
|
|
|
7507
7318
|
FoldableComponent,
|
|
7508
7319
|
{
|
|
7509
7320
|
backgroundColor: theme2.colors.backgroundContent,
|
|
7510
|
-
border:
|
|
7321
|
+
border: `${theme2.styles.borderWidth}px solid ${theme2.colors.border}`,
|
|
7511
7322
|
borderRadius: theme2.styles.borderRadius,
|
|
7512
7323
|
headerPaddingBlock: (theme2.styles.gap + theme2.styles.space) / 2,
|
|
7513
7324
|
headerPaddingInline: theme2.styles.space,
|
|
@@ -7787,7 +7598,7 @@ var SideMenuComponent = function SideMenu({
|
|
|
7787
7598
|
top: topSpace,
|
|
7788
7599
|
left: 0,
|
|
7789
7600
|
backgroundColor: readyBackgroundColor,
|
|
7790
|
-
borderRight: `solid
|
|
7601
|
+
borderRight: `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}`,
|
|
7791
7602
|
transform: !mediaQuery.size1000 || sideMenuIsOpenMobile ? "translateX(0)" : "translateX(-100%)",
|
|
7792
7603
|
paddingTop: paddingTop ?? (logoAssetName || logoUrl ? theme2.styles.gap : theme2.styles.space),
|
|
7793
7604
|
transition: mediaQuery.size1000 ? !isCollapsed ? `transform ${theme2.styles.transition}` : "none" : theme2.styles.transition,
|
|
@@ -7855,7 +7666,7 @@ var SideMenuComponent = function SideMenu({
|
|
|
7855
7666
|
readyBottomItems && /* @__PURE__ */ jsx27(
|
|
7856
7667
|
Div_default.column,
|
|
7857
7668
|
{
|
|
7858
|
-
borderTop: mediaQuery.size1000 ? `solid
|
|
7669
|
+
borderTop: mediaQuery.size1000 ? `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}` : void 0,
|
|
7859
7670
|
gap: theme2.styles.gap / 2,
|
|
7860
7671
|
marginTop: "auto",
|
|
7861
7672
|
paddingTop: mediaQuery.size1000 ? theme2.styles.space : void 0,
|
|
@@ -7877,7 +7688,7 @@ var SideMenuComponent = function SideMenu({
|
|
|
7877
7688
|
isCollapsable && /* @__PURE__ */ jsx27(
|
|
7878
7689
|
Div_default,
|
|
7879
7690
|
{
|
|
7880
|
-
borderTop: `solid
|
|
7691
|
+
borderTop: `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}`,
|
|
7881
7692
|
marginTop: !readyBottomItems ? "auto" : void 0,
|
|
7882
7693
|
paddingInline: theme2.styles.space,
|
|
7883
7694
|
paddingBlock: theme2.styles.space,
|
|
@@ -7915,7 +7726,7 @@ var SideMenuComponent = function SideMenu({
|
|
|
7915
7726
|
top: theme2.styles.space,
|
|
7916
7727
|
left: "100%",
|
|
7917
7728
|
backgroundColor: readyBackgroundColor,
|
|
7918
|
-
border: `solid
|
|
7729
|
+
border: `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}`,
|
|
7919
7730
|
borderLeft: "none",
|
|
7920
7731
|
borderTopRightRadius: theme2.styles.borderRadius,
|
|
7921
7732
|
borderBottomRightRadius: theme2.styles.borderRadius,
|
|
@@ -8084,6 +7895,7 @@ export {
|
|
|
8084
7895
|
lightenColor4 as lightenColor,
|
|
8085
7896
|
loaderControls,
|
|
8086
7897
|
localStoragePlugin,
|
|
7898
|
+
log,
|
|
8087
7899
|
reactRouterDomPlugin,
|
|
8088
7900
|
saturateColor,
|
|
8089
7901
|
sideMenuControls,
|