react-better-html 1.1.232 → 1.1.234
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +86 -92
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +87 -93
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -17,7 +17,9 @@ 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
|
|
21
23
|
} from "react-better-core";
|
|
22
24
|
|
|
23
25
|
// src/components/BetterHtmlProvider.tsx
|
|
@@ -888,7 +890,7 @@ function useComponentInputFieldDateProps(props, holderRef, disabled) {
|
|
|
888
890
|
);
|
|
889
891
|
const insideInputFieldComponentProps = useMemo(
|
|
890
892
|
() => ({
|
|
891
|
-
border:
|
|
893
|
+
border: `${theme2.styles.borderWidth}px solid ${isFocused ? theme2.colors.primary : theme2.colors.border}`,
|
|
892
894
|
borderTop: "none",
|
|
893
895
|
opacity: !isOpen ? 0 : void 0,
|
|
894
896
|
pointerEvents: !isOpen ? "none" : void 0,
|
|
@@ -1409,7 +1411,7 @@ Image.profileImage = forwardRef3(function ProfileImage({ size = 40, letters, let
|
|
|
1409
1411
|
Div_default.row,
|
|
1410
1412
|
{
|
|
1411
1413
|
backgroundColor: backgroundColor ?? theme2.colors.backgroundSecondary,
|
|
1412
|
-
border: `solid
|
|
1414
|
+
border: `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}`,
|
|
1413
1415
|
borderRadius: 999,
|
|
1414
1416
|
alignItems: "center",
|
|
1415
1417
|
justifyContent: "center",
|
|
@@ -1424,7 +1426,7 @@ Image.profileImage = forwardRef3(function ProfileImage({ size = 40, letters, let
|
|
|
1424
1426
|
{
|
|
1425
1427
|
width: size,
|
|
1426
1428
|
height: size,
|
|
1427
|
-
border: `solid
|
|
1429
|
+
border: `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}`,
|
|
1428
1430
|
borderRadius: 999,
|
|
1429
1431
|
objectFit: "cover",
|
|
1430
1432
|
ref,
|
|
@@ -1722,7 +1724,7 @@ DivComponent.box = forwardRef6(function Box({
|
|
|
1722
1724
|
{
|
|
1723
1725
|
color: isActive ? theme2.colors.base : void 0,
|
|
1724
1726
|
backgroundColor: isActive ? readyActiveColor : theme2.colors.backgroundContent,
|
|
1725
|
-
border:
|
|
1727
|
+
border: `${theme2.styles.borderWidth}px solid ${isActive ? readyActiveColor : theme2.colors.border}`,
|
|
1726
1728
|
borderRadius: theme2.styles.borderRadius,
|
|
1727
1729
|
borderColorHover: withClick && !isActive ? readyActiveColor : void 0,
|
|
1728
1730
|
filterHover: withClick && isActive ? "brightness(0.9)" : void 0,
|
|
@@ -1736,8 +1738,8 @@ DivComponent.box = forwardRef6(function Box({
|
|
|
1736
1738
|
Div2,
|
|
1737
1739
|
{
|
|
1738
1740
|
backgroundColor: headerBackgroundColor,
|
|
1739
|
-
borderTopLeftRadius: props.borderTopLeftRadius ?? props.borderRadius ?? theme2.styles.borderRadius -
|
|
1740
|
-
borderTopRightRadius: props.borderTopRightRadius ?? props.borderRadius ?? theme2.styles.borderRadius -
|
|
1741
|
+
borderTopLeftRadius: props.borderTopLeftRadius ?? props.borderRadius ?? theme2.styles.borderRadius - theme2.styles.borderWidth,
|
|
1742
|
+
borderTopRightRadius: props.borderTopRightRadius ?? props.borderRadius ?? theme2.styles.borderRadius - theme2.styles.borderWidth,
|
|
1741
1743
|
marginInline: -theme2.styles.space,
|
|
1742
1744
|
marginTop: -theme2.styles.space,
|
|
1743
1745
|
marginBottom: theme2.styles.space,
|
|
@@ -1764,7 +1766,7 @@ DivComponent.box = forwardRef6(function Box({
|
|
|
1764
1766
|
marginBottom: theme2.styles.space
|
|
1765
1767
|
}
|
|
1766
1768
|
),
|
|
1767
|
-
/* @__PURE__ */ jsx6(Div2, { width: `calc(100% + ${theme2.styles.space * 2}px)`, marginLeft: -theme2.styles.space, children: /* @__PURE__ */ jsx6(Divider_default.horizontal, {}) })
|
|
1769
|
+
/* @__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
1770
|
]
|
|
1769
1771
|
}
|
|
1770
1772
|
),
|
|
@@ -1930,7 +1932,7 @@ var ButtonElement = styled6.button.withConfig({
|
|
|
1930
1932
|
background-color: ${(props) => props.theme.colors.primary};
|
|
1931
1933
|
border: none;
|
|
1932
1934
|
border-radius: ${(props) => props.theme.styles.borderRadius}px;
|
|
1933
|
-
padding: ${(props) => props.isSmall ? `${props.theme.styles.gap +
|
|
1935
|
+
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
1936
|
user-select: none;
|
|
1935
1937
|
flex-shrink: 0;
|
|
1936
1938
|
transition: ${(props) => props.theme.styles.transition};
|
|
@@ -1952,7 +1954,7 @@ var ButtonElement = styled6.button.withConfig({
|
|
|
1952
1954
|
|
|
1953
1955
|
&.secondary {
|
|
1954
1956
|
padding-block: ${(props) => props.isSmall ? props.theme.styles.gap : (props.theme.styles.space + props.theme.styles.gap) / 2}px;
|
|
1955
|
-
border: solid
|
|
1957
|
+
border: solid ${(props) => props.theme.styles.borderWidth}px ${(props) => props.theme.colors.border};
|
|
1956
1958
|
background-color: ${(props) => props.theme.colors.backgroundContent};
|
|
1957
1959
|
background-image: none;
|
|
1958
1960
|
|
|
@@ -2428,7 +2430,7 @@ var ModalComponent = forwardRef7(function Modal({
|
|
|
2428
2430
|
]
|
|
2429
2431
|
}
|
|
2430
2432
|
),
|
|
2431
|
-
/* @__PURE__ */ jsx9(Divider_default.horizontal, {})
|
|
2433
|
+
/* @__PURE__ */ jsx9(Divider_default.horizontal, { width: theme2.styles.borderWidth })
|
|
2432
2434
|
] }) : /* @__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
2435
|
/* @__PURE__ */ jsx9(Div_default, { padding: title ? theme2.styles.space : void 0, children })
|
|
2434
2436
|
]
|
|
@@ -3031,7 +3033,8 @@ function BetterHtmlProvider({ config, ...props }) {
|
|
|
3031
3033
|
...assets,
|
|
3032
3034
|
...config?.assets
|
|
3033
3035
|
},
|
|
3034
|
-
loaders: config?.loaders
|
|
3036
|
+
loaders: config?.loaders,
|
|
3037
|
+
devMode: config?.devMode
|
|
3035
3038
|
}),
|
|
3036
3039
|
[config]
|
|
3037
3040
|
);
|
|
@@ -3419,7 +3422,7 @@ ChipComponent.colored = forwardRef9(function Colored({ color, withWhiteBackgroun
|
|
|
3419
3422
|
{
|
|
3420
3423
|
color: colorTheme === "light" ? darkenColor(readyColor, 0.7) : lightenColor(readyColor, 0.7),
|
|
3421
3424
|
backgroundColor: readyColor + "40",
|
|
3422
|
-
border:
|
|
3425
|
+
border: `${theme2.styles.borderWidth}px solid ${readyColor}`,
|
|
3423
3426
|
ref,
|
|
3424
3427
|
...props
|
|
3425
3428
|
}
|
|
@@ -3752,7 +3755,7 @@ var DropdownComponent = forwardRef10(function Dropdown({
|
|
|
3752
3755
|
{
|
|
3753
3756
|
width: "100%",
|
|
3754
3757
|
backgroundColor: theme2.colors.backgroundContent,
|
|
3755
|
-
border: `solid
|
|
3758
|
+
border: `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}`,
|
|
3756
3759
|
borderColor: isFocused ? theme2.colors.primary : void 0,
|
|
3757
3760
|
borderBottom: "none",
|
|
3758
3761
|
borderTopLeftRadius: theme2.styles.borderRadius,
|
|
@@ -3799,7 +3802,7 @@ var DropdownComponent = forwardRef10(function Dropdown({
|
|
|
3799
3802
|
width: "100%",
|
|
3800
3803
|
maxHeight: 300,
|
|
3801
3804
|
backgroundColor: theme2.colors.backgroundContent,
|
|
3802
|
-
border:
|
|
3805
|
+
border: `${theme2.styles.borderWidth}px solid ${isFocused ? theme2.colors.primary : theme2.colors.border}`,
|
|
3803
3806
|
borderTop: "none",
|
|
3804
3807
|
borderBottomLeftRadius: theme2.styles.borderRadius,
|
|
3805
3808
|
borderBottomRightRadius: theme2.styles.borderRadius,
|
|
@@ -4065,7 +4068,7 @@ function Calendar({ value, minDate, maxDate, onChange }) {
|
|
|
4065
4068
|
justifyContent: "center",
|
|
4066
4069
|
backgroundColor: isSelected ? theme2.colors.primary : theme2.colors.backgroundContent,
|
|
4067
4070
|
filterHover: day && !isDisabled ? "brightness(0.9)" : void 0,
|
|
4068
|
-
border:
|
|
4071
|
+
border: `${theme2.styles.borderWidth}px solid ${isToday ? theme2.colors.primary : theme2.colors.primary + "00"}`,
|
|
4069
4072
|
borderRadius: theme2.styles.borderRadius / 2,
|
|
4070
4073
|
padding: theme2.styles.space / 2,
|
|
4071
4074
|
cursor: day ? !isDisabled ? "pointer" : "not-allowed" : void 0,
|
|
@@ -4142,7 +4145,7 @@ var InputElement = styled10.input.withConfig({
|
|
|
4142
4145
|
line-height: 20px;
|
|
4143
4146
|
color: ${(props) => props.theme.colors.textPrimary};
|
|
4144
4147
|
background: ${(props) => props.theme.colors.backgroundContent};
|
|
4145
|
-
border:
|
|
4148
|
+
border: ${(props) => props.theme.styles.borderWidth}px solid ${(props) => props.theme.colors.border};
|
|
4146
4149
|
border-radius: ${(props) => props.theme.styles.borderRadius}px;
|
|
4147
4150
|
border-top-left-radius: ${(props) => props.withPrefix ? 0 : void 0};
|
|
4148
4151
|
border-bottom-left-radius: ${(props) => props.withPrefix ? 0 : void 0};
|
|
@@ -4221,7 +4224,7 @@ var InputElement = styled10.input.withConfig({
|
|
|
4221
4224
|
}
|
|
4222
4225
|
|
|
4223
4226
|
&.react-better-html-dropdown {
|
|
4224
|
-
padding-right: ${(props) => props.theme.styles.space + 16 + props.theme.styles.space -
|
|
4227
|
+
padding-right: ${(props) => props.theme.styles.space + 16 + props.theme.styles.space - props.theme.styles.borderWidth}px;
|
|
4225
4228
|
|
|
4226
4229
|
&.react-better-html-dropdown-multiselect {
|
|
4227
4230
|
border-top: none;
|
|
@@ -4265,12 +4268,12 @@ var TextareaElement = styled10.textarea.withConfig({
|
|
|
4265
4268
|
line-height: 20px;
|
|
4266
4269
|
color: ${(props) => props.theme.colors.textPrimary};
|
|
4267
4270
|
background: ${(props) => props.theme.colors.backgroundContent};
|
|
4268
|
-
border:
|
|
4271
|
+
border: ${(props) => props.theme.styles.borderWidth}px solid ${(props) => props.theme.colors.border};
|
|
4269
4272
|
border-radius: ${(props) => props.theme.styles.borderRadius}px;
|
|
4270
4273
|
outline: none;
|
|
4271
4274
|
padding: ${(props) => `${(props.theme.styles.gap + props.theme.styles.space) / 2}px ${props.theme.styles.space}px`};
|
|
4272
|
-
padding-left: ${(props) => props.withLeftIcon ? `${props.theme.styles.space + 16 + props.theme.styles.space -
|
|
4273
|
-
padding-right: ${(props) => props.withRightIcon ? `${props.theme.styles.space + 16 + props.theme.styles.space -
|
|
4275
|
+
padding-left: ${(props) => props.withLeftIcon ? `${props.theme.styles.space + 16 + props.theme.styles.space - props.theme.styles.borderWidth}px` : void 0};
|
|
4276
|
+
padding-right: ${(props) => props.withRightIcon ? `${props.theme.styles.space + 16 + props.theme.styles.space - props.theme.styles.borderWidth}px` : void 0};
|
|
4274
4277
|
resize: vertical;
|
|
4275
4278
|
transition: border-color ${(props) => props.theme.styles.transition};
|
|
4276
4279
|
|
|
@@ -4356,7 +4359,7 @@ var InputFieldComponent = forwardRef11(function InputField({
|
|
|
4356
4359
|
{
|
|
4357
4360
|
alignItems: "center",
|
|
4358
4361
|
justifyContent: "center",
|
|
4359
|
-
border:
|
|
4362
|
+
border: `${theme2.styles.borderWidth}px solid ${theme2.colors.border}`,
|
|
4360
4363
|
borderRight: "none",
|
|
4361
4364
|
backgroundColor: prefixBackgroundColor ?? (colorTheme === "light" ? darkenColor2(theme2.colors.backgroundContent, 0.03) : lightenColor2(theme2.colors.backgroundContent, 0.1)),
|
|
4362
4365
|
borderTopLeftRadius: theme2.styles.borderRadius,
|
|
@@ -4373,8 +4376,8 @@ var InputFieldComponent = forwardRef11(function InputField({
|
|
|
4373
4376
|
{
|
|
4374
4377
|
name: leftIcon,
|
|
4375
4378
|
position: "absolute",
|
|
4376
|
-
top: (props.type === "date" || props.type === "time" || props.type === "datetime-local" ? 48 :
|
|
4377
|
-
left: theme2.styles.space +
|
|
4379
|
+
top: ((props.type === "date" || props.type === "time" || props.type === "datetime-local" ? 48 : 44) + theme2.styles.borderWidth * 2) / 2,
|
|
4380
|
+
left: theme2.styles.space + theme2.styles.borderWidth,
|
|
4378
4381
|
transform: "translateY(-50%)",
|
|
4379
4382
|
pointerEvents: "none",
|
|
4380
4383
|
zIndex: leftIconZIndex
|
|
@@ -4405,8 +4408,8 @@ var InputFieldComponent = forwardRef11(function InputField({
|
|
|
4405
4408
|
{
|
|
4406
4409
|
icon: rightIcon,
|
|
4407
4410
|
position: "absolute",
|
|
4408
|
-
top:
|
|
4409
|
-
right: theme2.styles.space +
|
|
4411
|
+
top: (44 + theme2.styles.borderWidth * 2) / 2,
|
|
4412
|
+
right: theme2.styles.space + theme2.styles.borderWidth - theme2.styles.space / 2,
|
|
4410
4413
|
transform: "translateY(-50%)",
|
|
4411
4414
|
onClick: onClickRightIcon
|
|
4412
4415
|
}
|
|
@@ -4415,8 +4418,8 @@ var InputFieldComponent = forwardRef11(function InputField({
|
|
|
4415
4418
|
{
|
|
4416
4419
|
name: rightIcon,
|
|
4417
4420
|
position: "absolute",
|
|
4418
|
-
top:
|
|
4419
|
-
right: theme2.styles.space +
|
|
4421
|
+
top: (44 + theme2.styles.borderWidth * 2) / 2,
|
|
4422
|
+
right: theme2.styles.space + theme2.styles.borderWidth,
|
|
4420
4423
|
transform: "translateY(-50%)",
|
|
4421
4424
|
pointerEvents: "none"
|
|
4422
4425
|
}
|
|
@@ -4429,7 +4432,7 @@ var InputFieldComponent = forwardRef11(function InputField({
|
|
|
4429
4432
|
{
|
|
4430
4433
|
alignItems: "center",
|
|
4431
4434
|
justifyContent: "center",
|
|
4432
|
-
border:
|
|
4435
|
+
border: `${theme2.styles.borderWidth}px solid ${theme2.colors.border}`,
|
|
4433
4436
|
borderLeft: "none",
|
|
4434
4437
|
backgroundColor: suffixBackgroundColor ?? (colorTheme === "light" ? darkenColor2(theme2.colors.backgroundContent, 0.03) : lightenColor2(theme2.colors.backgroundContent, 0.1)),
|
|
4435
4438
|
borderTopRightRadius: theme2.styles.borderRadius,
|
|
@@ -4486,8 +4489,8 @@ InputFieldComponent.multiline = forwardRef11(function Multiline({
|
|
|
4486
4489
|
{
|
|
4487
4490
|
name: leftIcon,
|
|
4488
4491
|
position: "absolute",
|
|
4489
|
-
top:
|
|
4490
|
-
left: theme2.styles.space +
|
|
4492
|
+
top: (44 + theme2.styles.borderWidth * 2) / 2,
|
|
4493
|
+
left: theme2.styles.space + theme2.styles.borderWidth,
|
|
4491
4494
|
transform: "translateY(-50%)",
|
|
4492
4495
|
pointerEvents: "none"
|
|
4493
4496
|
}
|
|
@@ -4515,8 +4518,8 @@ InputFieldComponent.multiline = forwardRef11(function Multiline({
|
|
|
4515
4518
|
{
|
|
4516
4519
|
icon: rightIcon,
|
|
4517
4520
|
position: "absolute",
|
|
4518
|
-
top:
|
|
4519
|
-
right: theme2.styles.space +
|
|
4521
|
+
top: (44 + theme2.styles.borderWidth * 2) / 2,
|
|
4522
|
+
right: theme2.styles.space + theme2.styles.borderWidth - theme2.styles.space / 2,
|
|
4520
4523
|
transform: "translateY(-50%)",
|
|
4521
4524
|
onClick: onClickRightIcon
|
|
4522
4525
|
}
|
|
@@ -4525,8 +4528,8 @@ InputFieldComponent.multiline = forwardRef11(function Multiline({
|
|
|
4525
4528
|
{
|
|
4526
4529
|
name: rightIcon,
|
|
4527
4530
|
position: "absolute",
|
|
4528
|
-
top:
|
|
4529
|
-
right: theme2.styles.space +
|
|
4531
|
+
top: (44 + theme2.styles.borderWidth * 2) / 2,
|
|
4532
|
+
right: theme2.styles.space + theme2.styles.borderWidth,
|
|
4530
4533
|
transform: "translateY(-50%)",
|
|
4531
4534
|
pointerEvents: "none"
|
|
4532
4535
|
}
|
|
@@ -5193,7 +5196,7 @@ var InputElement2 = styled11.input.withConfig({
|
|
|
5193
5196
|
width: ${componentSize}px;
|
|
5194
5197
|
height: ${componentSize}px;
|
|
5195
5198
|
background-color: ${(props) => props.theme.colors.backgroundContent};
|
|
5196
|
-
border:
|
|
5199
|
+
border: ${(props) => props.theme.styles.borderWidth}px solid ${(props) => props.theme.colors.border};
|
|
5197
5200
|
border-radius: ${(props) => props.theme.styles.borderRadius / 2}px;
|
|
5198
5201
|
cursor: pointer;
|
|
5199
5202
|
transition: ${(props) => props.theme.styles.transition};
|
|
@@ -5509,7 +5512,7 @@ var FormComponent = forwardRef13(function Form({
|
|
|
5509
5512
|
return /* @__PURE__ */ jsx19(Div_default, { width: "100%", ...props, children: /* @__PURE__ */ jsxs16("form", { name, onSubmit: onSubmit ?? form?.onSubmit, ref, children: [
|
|
5510
5513
|
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: [
|
|
5511
5514
|
child,
|
|
5512
|
-
index < Children.toArray(children).length - 1 && /* @__PURE__ */ jsx19(Divider_default.horizontal, {})
|
|
5515
|
+
index < Children.toArray(children).length - 1 && /* @__PURE__ */ jsx19(Divider_default.horizontal, { width: theme2.styles.borderWidth })
|
|
5513
5516
|
] }, index)) : children }) : children,
|
|
5514
5517
|
submitButtonText && /* @__PURE__ */ jsxs16(
|
|
5515
5518
|
Div_default.row,
|
|
@@ -5839,45 +5842,45 @@ var TableStyledComponent = styled12.table.withConfig({
|
|
|
5839
5842
|
|
|
5840
5843
|
thead {
|
|
5841
5844
|
tr:first-child {
|
|
5842
|
-
border-top-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
5843
|
-
border-top-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
5845
|
+
border-top-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5846
|
+
border-top-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5844
5847
|
|
|
5845
5848
|
th:first-child {
|
|
5846
|
-
border-top-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
5849
|
+
border-top-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5847
5850
|
}
|
|
5848
5851
|
|
|
5849
5852
|
th:last-child {
|
|
5850
|
-
border-top-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
5853
|
+
border-top-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5851
5854
|
}
|
|
5852
5855
|
}
|
|
5853
5856
|
}
|
|
5854
5857
|
|
|
5855
5858
|
tbody {
|
|
5856
5859
|
tr:last-child {
|
|
5857
|
-
border-bottom-left-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 -
|
|
5858
|
-
border-bottom-right-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 -
|
|
5860
|
+
border-bottom-left-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5861
|
+
border-bottom-right-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5859
5862
|
|
|
5860
5863
|
td:first-child {
|
|
5861
|
-
border-bottom-left-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 -
|
|
5864
|
+
border-bottom-left-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5862
5865
|
}
|
|
5863
5866
|
|
|
5864
5867
|
td:last-child {
|
|
5865
|
-
border-bottom-right-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 -
|
|
5868
|
+
border-bottom-right-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5866
5869
|
}
|
|
5867
5870
|
}
|
|
5868
5871
|
}
|
|
5869
5872
|
|
|
5870
5873
|
tfoot {
|
|
5871
5874
|
tr:last-child {
|
|
5872
|
-
border-bottom-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
5873
|
-
border-bottom-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
5875
|
+
border-bottom-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5876
|
+
border-bottom-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5874
5877
|
|
|
5875
5878
|
td:first-child {
|
|
5876
|
-
border-bottom-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
5879
|
+
border-bottom-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5877
5880
|
}
|
|
5878
5881
|
|
|
5879
5882
|
td:last-child {
|
|
5880
|
-
border-bottom-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
5883
|
+
border-bottom-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5881
5884
|
}
|
|
5882
5885
|
}
|
|
5883
5886
|
}
|
|
@@ -5927,7 +5930,8 @@ var TableStyledComponent = styled12.table.withConfig({
|
|
|
5927
5930
|
}
|
|
5928
5931
|
|
|
5929
5932
|
td {
|
|
5930
|
-
border-top:
|
|
5933
|
+
border-top: ${(props) => props.theme.styles.borderWidth}px solid
|
|
5934
|
+
${(props) => props.theme.colors.border + (props.colorTheme === "light" ? "60" : "40")};
|
|
5931
5935
|
padding: ${(props) => props.theme.styles.gap}px ${(props) => props.theme.styles.space}px;
|
|
5932
5936
|
|
|
5933
5937
|
&.noData {
|
|
@@ -6331,25 +6335,21 @@ var TableComponent = forwardRef15(function Table({
|
|
|
6331
6335
|
useEffect12(() => {
|
|
6332
6336
|
onChangeFilterDataValue?.(dataAfterFilter);
|
|
6333
6337
|
}, [onChangeFilterDataValue, dataAfterFilter]);
|
|
6334
|
-
useImperativeHandle2(
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
};
|
|
6343
|
-
},
|
|
6344
|
-
[currentPage, setCurrentPage, pageCountInternal, setCheckedItems]
|
|
6345
|
-
);
|
|
6338
|
+
useImperativeHandle2(ref, () => {
|
|
6339
|
+
return {
|
|
6340
|
+
currentPage,
|
|
6341
|
+
setCurrentPage,
|
|
6342
|
+
pagesCount: pageCountInternal,
|
|
6343
|
+
setCheckedItems
|
|
6344
|
+
};
|
|
6345
|
+
}, [currentPage, setCurrentPage, pageCountInternal, setCheckedItems]);
|
|
6346
6346
|
const withFooter = pageSize !== void 0 && pageCountInternal > 1;
|
|
6347
6347
|
const mobileFooterBreakingPoint = mediaQuery.size700 && pageCountInternal > maximumVisiblePages / 1.4;
|
|
6348
6348
|
return /* @__PURE__ */ jsxs20(Fragment7, { children: [
|
|
6349
6349
|
/* @__PURE__ */ jsx23(
|
|
6350
6350
|
Div_default,
|
|
6351
6351
|
{
|
|
6352
|
-
border:
|
|
6352
|
+
border: `${theme2.styles.borderWidth}px solid ${theme2.colors.border}`,
|
|
6353
6353
|
borderRadius: theme2.styles.borderRadius * 2,
|
|
6354
6354
|
overflow: !containsOverflowComponents ? "auto" : void 0,
|
|
6355
6355
|
...props,
|
|
@@ -6715,7 +6715,7 @@ var Arrow = memo24(function Arrow2(props) {
|
|
|
6715
6715
|
}),
|
|
6716
6716
|
[props, theme2]
|
|
6717
6717
|
);
|
|
6718
|
-
const borderWidth =
|
|
6718
|
+
const borderWidth = theme2.styles.borderWidth;
|
|
6719
6719
|
return /* @__PURE__ */ jsx24(
|
|
6720
6720
|
Div_default,
|
|
6721
6721
|
{
|
|
@@ -6835,17 +6835,13 @@ var TooltipComponent = forwardRef16(function Tooltip({
|
|
|
6835
6835
|
if (!disabled) return;
|
|
6836
6836
|
closeTooltip();
|
|
6837
6837
|
}, [disabled]);
|
|
6838
|
-
useImperativeHandle3(
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
};
|
|
6846
|
-
},
|
|
6847
|
-
[isOpen, openTooltip, closeTooltip]
|
|
6848
|
-
);
|
|
6838
|
+
useImperativeHandle3(ref, () => {
|
|
6839
|
+
return {
|
|
6840
|
+
isOpen,
|
|
6841
|
+
open: openTooltip,
|
|
6842
|
+
close: closeTooltip
|
|
6843
|
+
};
|
|
6844
|
+
}, [isOpen, openTooltip, closeTooltip]);
|
|
6849
6845
|
return /* @__PURE__ */ jsxs21(
|
|
6850
6846
|
Div_default,
|
|
6851
6847
|
{
|
|
@@ -6969,7 +6965,7 @@ TooltipComponent.item = forwardRef16(function Item({
|
|
|
6969
6965
|
});
|
|
6970
6966
|
TooltipComponent.divider = forwardRef16(function DividerComponent(props, ref) {
|
|
6971
6967
|
const theme2 = useTheme26();
|
|
6972
|
-
return /* @__PURE__ */ jsx24(Divider_default.horizontal, { marginBlock: theme2.styles.gap, ...props, ref });
|
|
6968
|
+
return /* @__PURE__ */ jsx24(Divider_default.horizontal, { width: theme2.styles.borderWidth, marginBlock: theme2.styles.gap, ...props, ref });
|
|
6973
6969
|
});
|
|
6974
6970
|
TooltipComponent.sectionTitle = forwardRef16(function SectionTitle({ text, ...props }, ref) {
|
|
6975
6971
|
const theme2 = useTheme26();
|
|
@@ -7086,16 +7082,12 @@ var TabsComponent = forwardRef17(function Tabs({ tabs, name, accentColor, style
|
|
|
7086
7082
|
);
|
|
7087
7083
|
};
|
|
7088
7084
|
}, []);
|
|
7089
|
-
useImperativeHandle4(
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
};
|
|
7096
|
-
},
|
|
7097
|
-
[selectedTab, onClickTab]
|
|
7098
|
-
);
|
|
7085
|
+
useImperativeHandle4(ref, () => {
|
|
7086
|
+
return {
|
|
7087
|
+
selectedTab,
|
|
7088
|
+
selectTab: onClickTab
|
|
7089
|
+
};
|
|
7090
|
+
}, [selectedTab, onClickTab]);
|
|
7099
7091
|
return /* @__PURE__ */ jsxs22(Div_default.column, { width: "100%", gap: theme2.styles.space, ...props, children: [
|
|
7100
7092
|
/* @__PURE__ */ jsxs22(Div_default, { position: "relative", className: "react-better-html-no-scrollbar", overflowY: "auto", children: [
|
|
7101
7093
|
/* @__PURE__ */ jsx25(Div_default.row, { position: "relative", width: "fit-content", gap: tabsGap, userSelect: "none", children: tabs.map((tab) => {
|
|
@@ -7109,7 +7101,7 @@ var TabsComponent = forwardRef17(function Tabs({ tabs, name, accentColor, style
|
|
|
7109
7101
|
borderRadius: style === "box" ? theme2.styles.borderRadius : void 0,
|
|
7110
7102
|
borderTopLeftRadius: style === "borderRadiusTop" ? theme2.styles.borderRadius : void 0,
|
|
7111
7103
|
borderTopRightRadius: style === "borderRadiusTop" ? theme2.styles.borderRadius : void 0,
|
|
7112
|
-
border: style === "box" ?
|
|
7104
|
+
border: style === "box" ? `${theme2.styles.borderWidth}px solid ${selected ? "transparent" : theme2.colors.border}` : void 0,
|
|
7113
7105
|
filterHover: colorTheme === "dark" ? style === "box" ? "brightness(1.2)" : "brightness(2)" : "brightness(0.9)",
|
|
7114
7106
|
paddingInline: theme2.styles.space,
|
|
7115
7107
|
paddingBlock: theme2.styles.gap,
|
|
@@ -7304,7 +7296,7 @@ var FoldableComponent = forwardRef18(function Foldable({
|
|
|
7304
7296
|
]
|
|
7305
7297
|
}
|
|
7306
7298
|
),
|
|
7307
|
-
/* @__PURE__ */ jsx26(Div_default, { height: isOpen ? 1 : 0, opacity: isOpen ? 1 : 0, transition: theme2.styles.transition, children: /* @__PURE__ */ jsx26(Divider_default.horizontal, {}) }),
|
|
7299
|
+
/* @__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 }) }),
|
|
7308
7300
|
/* @__PURE__ */ jsx26(
|
|
7309
7301
|
Div_default,
|
|
7310
7302
|
{
|
|
@@ -7325,7 +7317,7 @@ FoldableComponent.box = forwardRef18(function Box3({ ...props }, ref) {
|
|
|
7325
7317
|
FoldableComponent,
|
|
7326
7318
|
{
|
|
7327
7319
|
backgroundColor: theme2.colors.backgroundContent,
|
|
7328
|
-
border:
|
|
7320
|
+
border: `${theme2.styles.borderWidth}px solid ${theme2.colors.border}`,
|
|
7329
7321
|
borderRadius: theme2.styles.borderRadius,
|
|
7330
7322
|
headerPaddingBlock: (theme2.styles.gap + theme2.styles.space) / 2,
|
|
7331
7323
|
headerPaddingInline: theme2.styles.space,
|
|
@@ -7605,7 +7597,7 @@ var SideMenuComponent = function SideMenu({
|
|
|
7605
7597
|
top: topSpace,
|
|
7606
7598
|
left: 0,
|
|
7607
7599
|
backgroundColor: readyBackgroundColor,
|
|
7608
|
-
borderRight: `solid
|
|
7600
|
+
borderRight: `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}`,
|
|
7609
7601
|
transform: !mediaQuery.size1000 || sideMenuIsOpenMobile ? "translateX(0)" : "translateX(-100%)",
|
|
7610
7602
|
paddingTop: paddingTop ?? (logoAssetName || logoUrl ? theme2.styles.gap : theme2.styles.space),
|
|
7611
7603
|
transition: mediaQuery.size1000 ? !isCollapsed ? `transform ${theme2.styles.transition}` : "none" : theme2.styles.transition,
|
|
@@ -7673,7 +7665,7 @@ var SideMenuComponent = function SideMenu({
|
|
|
7673
7665
|
readyBottomItems && /* @__PURE__ */ jsx27(
|
|
7674
7666
|
Div_default.column,
|
|
7675
7667
|
{
|
|
7676
|
-
borderTop: mediaQuery.size1000 ? `solid
|
|
7668
|
+
borderTop: mediaQuery.size1000 ? `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}` : void 0,
|
|
7677
7669
|
gap: theme2.styles.gap / 2,
|
|
7678
7670
|
marginTop: "auto",
|
|
7679
7671
|
paddingTop: mediaQuery.size1000 ? theme2.styles.space : void 0,
|
|
@@ -7695,7 +7687,7 @@ var SideMenuComponent = function SideMenu({
|
|
|
7695
7687
|
isCollapsable && /* @__PURE__ */ jsx27(
|
|
7696
7688
|
Div_default,
|
|
7697
7689
|
{
|
|
7698
|
-
borderTop: `solid
|
|
7690
|
+
borderTop: `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}`,
|
|
7699
7691
|
marginTop: !readyBottomItems ? "auto" : void 0,
|
|
7700
7692
|
paddingInline: theme2.styles.space,
|
|
7701
7693
|
paddingBlock: theme2.styles.space,
|
|
@@ -7733,7 +7725,7 @@ var SideMenuComponent = function SideMenu({
|
|
|
7733
7725
|
top: theme2.styles.space,
|
|
7734
7726
|
left: "100%",
|
|
7735
7727
|
backgroundColor: readyBackgroundColor,
|
|
7736
|
-
border: `solid
|
|
7728
|
+
border: `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}`,
|
|
7737
7729
|
borderLeft: "none",
|
|
7738
7730
|
borderTopRightRadius: theme2.styles.borderRadius,
|
|
7739
7731
|
borderBottomRightRadius: theme2.styles.borderRadius,
|
|
@@ -7891,6 +7883,8 @@ export {
|
|
|
7891
7883
|
eventStopPropagation,
|
|
7892
7884
|
filterHover,
|
|
7893
7885
|
formatPhoneNumber,
|
|
7886
|
+
generateApi,
|
|
7887
|
+
generateEventEmitter,
|
|
7894
7888
|
generateLocalStorage,
|
|
7895
7889
|
generateRandomString,
|
|
7896
7890
|
getBrowser,
|