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.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Color, BetterCoreProviderConfig, DeepPartialRecord,
|
|
2
|
-
export { AnyOtherString, AssetName, AssetsConfig, Color, ColorName, ColorTheme, Colors, Country, DeepPartialRecord, ExcludeOptions, IconName, IconsConfig, LoaderConfig, LoaderName, OmitProps, PartialRecord, PickAllRequired, PickValue, Styles, Theme, ThemeConfig, colorThemeControls, countries, darkenColor, desaturateColor, eventPreventDefault, eventPreventStop, eventStopPropagation, formatPhoneNumber, generateRandomString, getPluralWord, lightenColor, loaderControls, saturateColor, useBooleanState, useDebounceState, useLoader, useLoaderControls, useTheme } from 'react-better-core';
|
|
1
|
+
import { Color, BetterCoreProviderConfig, DeepPartialRecord, OmitProps, BetterCoreConfig, IconName, AnyOtherString, PartialRecord, AssetName, LoaderName, PickValue, Country } from 'react-better-core';
|
|
2
|
+
export { API, APIConfigItem, APIResponse, AnyOtherString, AssetName, AssetsConfig, Color, ColorName, ColorTheme, Colors, Country, DeepPartialRecord, ExcludeOptions, HttpHeaders as HttpHeader, HttpMethod, IconName, IconsConfig, LoaderConfig, LoaderName, OmitProps, PartialRecord, PickAllRequired, PickValue, Styles, Theme, ThemeConfig, Unsubscribe, UrlQuery, colorThemeControls, countries, darkenColor, desaturateColor, eventPreventDefault, eventPreventStop, eventStopPropagation, formatPhoneNumber, generateApi, generateEventEmitter, generateRandomString, getPluralWord, lightenColor, loaderControls, saturateColor, useBooleanState, useDebounceState, useLoader, useLoaderControls, useTheme } from 'react-better-core';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { ComponentProps, ReactNode } from 'react';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Color, BetterCoreProviderConfig, DeepPartialRecord,
|
|
2
|
-
export { AnyOtherString, AssetName, AssetsConfig, Color, ColorName, ColorTheme, Colors, Country, DeepPartialRecord, ExcludeOptions, IconName, IconsConfig, LoaderConfig, LoaderName, OmitProps, PartialRecord, PickAllRequired, PickValue, Styles, Theme, ThemeConfig, colorThemeControls, countries, darkenColor, desaturateColor, eventPreventDefault, eventPreventStop, eventStopPropagation, formatPhoneNumber, generateRandomString, getPluralWord, lightenColor, loaderControls, saturateColor, useBooleanState, useDebounceState, useLoader, useLoaderControls, useTheme } from 'react-better-core';
|
|
1
|
+
import { Color, BetterCoreProviderConfig, DeepPartialRecord, OmitProps, BetterCoreConfig, IconName, AnyOtherString, PartialRecord, AssetName, LoaderName, PickValue, Country } from 'react-better-core';
|
|
2
|
+
export { API, APIConfigItem, APIResponse, AnyOtherString, AssetName, AssetsConfig, Color, ColorName, ColorTheme, Colors, Country, DeepPartialRecord, ExcludeOptions, HttpHeaders as HttpHeader, HttpMethod, IconName, IconsConfig, LoaderConfig, LoaderName, OmitProps, PartialRecord, PickAllRequired, PickValue, Styles, Theme, ThemeConfig, Unsubscribe, UrlQuery, colorThemeControls, countries, darkenColor, desaturateColor, eventPreventDefault, eventPreventStop, eventStopPropagation, formatPhoneNumber, generateApi, generateEventEmitter, generateRandomString, getPluralWord, lightenColor, loaderControls, saturateColor, useBooleanState, useDebounceState, useLoader, useLoaderControls, useTheme } from 'react-better-core';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { ComponentProps, ReactNode } from 'react';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
package/dist/index.js
CHANGED
|
@@ -69,6 +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: () => import_react_better_core30.generateApi,
|
|
73
|
+
generateEventEmitter: () => import_react_better_core30.generateEventEmitter,
|
|
72
74
|
generateLocalStorage: () => generateLocalStorage,
|
|
73
75
|
generateRandomString: () => import_react_better_core30.generateRandomString,
|
|
74
76
|
getBrowser: () => getBrowser,
|
|
@@ -959,7 +961,7 @@ function useComponentInputFieldDateProps(props, holderRef, disabled) {
|
|
|
959
961
|
);
|
|
960
962
|
const insideInputFieldComponentProps = (0, import_react.useMemo)(
|
|
961
963
|
() => ({
|
|
962
|
-
border:
|
|
964
|
+
border: `${theme2.styles.borderWidth}px solid ${isFocused ? theme2.colors.primary : theme2.colors.border}`,
|
|
963
965
|
borderTop: "none",
|
|
964
966
|
opacity: !isOpen ? 0 : void 0,
|
|
965
967
|
pointerEvents: !isOpen ? "none" : void 0,
|
|
@@ -1480,7 +1482,7 @@ Image.profileImage = (0, import_react4.forwardRef)(function ProfileImage({ size
|
|
|
1480
1482
|
Div_default.row,
|
|
1481
1483
|
{
|
|
1482
1484
|
backgroundColor: backgroundColor ?? theme2.colors.backgroundSecondary,
|
|
1483
|
-
border: `solid
|
|
1485
|
+
border: `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}`,
|
|
1484
1486
|
borderRadius: 999,
|
|
1485
1487
|
alignItems: "center",
|
|
1486
1488
|
justifyContent: "center",
|
|
@@ -1495,7 +1497,7 @@ Image.profileImage = (0, import_react4.forwardRef)(function ProfileImage({ size
|
|
|
1495
1497
|
{
|
|
1496
1498
|
width: size,
|
|
1497
1499
|
height: size,
|
|
1498
|
-
border: `solid
|
|
1500
|
+
border: `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}`,
|
|
1499
1501
|
borderRadius: 999,
|
|
1500
1502
|
objectFit: "cover",
|
|
1501
1503
|
ref,
|
|
@@ -1793,7 +1795,7 @@ DivComponent.box = (0, import_react8.forwardRef)(function Box({
|
|
|
1793
1795
|
{
|
|
1794
1796
|
color: isActive ? theme2.colors.base : void 0,
|
|
1795
1797
|
backgroundColor: isActive ? readyActiveColor : theme2.colors.backgroundContent,
|
|
1796
|
-
border:
|
|
1798
|
+
border: `${theme2.styles.borderWidth}px solid ${isActive ? readyActiveColor : theme2.colors.border}`,
|
|
1797
1799
|
borderRadius: theme2.styles.borderRadius,
|
|
1798
1800
|
borderColorHover: withClick && !isActive ? readyActiveColor : void 0,
|
|
1799
1801
|
filterHover: withClick && isActive ? "brightness(0.9)" : void 0,
|
|
@@ -1807,8 +1809,8 @@ DivComponent.box = (0, import_react8.forwardRef)(function Box({
|
|
|
1807
1809
|
Div2,
|
|
1808
1810
|
{
|
|
1809
1811
|
backgroundColor: headerBackgroundColor,
|
|
1810
|
-
borderTopLeftRadius: props.borderTopLeftRadius ?? props.borderRadius ?? theme2.styles.borderRadius -
|
|
1811
|
-
borderTopRightRadius: props.borderTopRightRadius ?? props.borderRadius ?? theme2.styles.borderRadius -
|
|
1812
|
+
borderTopLeftRadius: props.borderTopLeftRadius ?? props.borderRadius ?? theme2.styles.borderRadius - theme2.styles.borderWidth,
|
|
1813
|
+
borderTopRightRadius: props.borderTopRightRadius ?? props.borderRadius ?? theme2.styles.borderRadius - theme2.styles.borderWidth,
|
|
1812
1814
|
marginInline: -theme2.styles.space,
|
|
1813
1815
|
marginTop: -theme2.styles.space,
|
|
1814
1816
|
marginBottom: theme2.styles.space,
|
|
@@ -1835,7 +1837,7 @@ DivComponent.box = (0, import_react8.forwardRef)(function Box({
|
|
|
1835
1837
|
marginBottom: theme2.styles.space
|
|
1836
1838
|
}
|
|
1837
1839
|
),
|
|
1838
|
-
/* @__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, {}) })
|
|
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, { width: theme2.styles.borderWidth }) })
|
|
1839
1841
|
]
|
|
1840
1842
|
}
|
|
1841
1843
|
),
|
|
@@ -1997,7 +1999,7 @@ var ButtonElement = import_styled_components6.default.button.withConfig({
|
|
|
1997
1999
|
background-color: ${(props) => props.theme.colors.primary};
|
|
1998
2000
|
border: none;
|
|
1999
2001
|
border-radius: ${(props) => props.theme.styles.borderRadius}px;
|
|
2000
|
-
padding: ${(props) => props.isSmall ? `${props.theme.styles.gap +
|
|
2002
|
+
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`};
|
|
2001
2003
|
user-select: none;
|
|
2002
2004
|
flex-shrink: 0;
|
|
2003
2005
|
transition: ${(props) => props.theme.styles.transition};
|
|
@@ -2019,7 +2021,7 @@ var ButtonElement = import_styled_components6.default.button.withConfig({
|
|
|
2019
2021
|
|
|
2020
2022
|
&.secondary {
|
|
2021
2023
|
padding-block: ${(props) => props.isSmall ? props.theme.styles.gap : (props.theme.styles.space + props.theme.styles.gap) / 2}px;
|
|
2022
|
-
border: solid
|
|
2024
|
+
border: solid ${(props) => props.theme.styles.borderWidth}px ${(props) => props.theme.colors.border};
|
|
2023
2025
|
background-color: ${(props) => props.theme.colors.backgroundContent};
|
|
2024
2026
|
background-image: none;
|
|
2025
2027
|
|
|
@@ -2491,7 +2493,7 @@ var ModalComponent = (0, import_react11.forwardRef)(function Modal({
|
|
|
2491
2493
|
]
|
|
2492
2494
|
}
|
|
2493
2495
|
),
|
|
2494
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Divider_default.horizontal, {})
|
|
2496
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Divider_default.horizontal, { width: theme2.styles.borderWidth })
|
|
2495
2497
|
] }) : /* @__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 }) }) }),
|
|
2496
2498
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Div_default, { padding: title ? theme2.styles.space : void 0, children })
|
|
2497
2499
|
]
|
|
@@ -3094,7 +3096,8 @@ function BetterHtmlProvider({ config, ...props }) {
|
|
|
3094
3096
|
...assets,
|
|
3095
3097
|
...config?.assets
|
|
3096
3098
|
},
|
|
3097
|
-
loaders: config?.loaders
|
|
3099
|
+
loaders: config?.loaders,
|
|
3100
|
+
devMode: config?.devMode
|
|
3098
3101
|
}),
|
|
3099
3102
|
[config]
|
|
3100
3103
|
);
|
|
@@ -3482,7 +3485,7 @@ ChipComponent.colored = (0, import_react16.forwardRef)(function Colored({ color,
|
|
|
3482
3485
|
{
|
|
3483
3486
|
color: colorTheme === "light" ? (0, import_react_better_core15.darkenColor)(readyColor, 0.7) : (0, import_react_better_core15.lightenColor)(readyColor, 0.7),
|
|
3484
3487
|
backgroundColor: readyColor + "40",
|
|
3485
|
-
border:
|
|
3488
|
+
border: `${theme2.styles.borderWidth}px solid ${readyColor}`,
|
|
3486
3489
|
ref,
|
|
3487
3490
|
...props
|
|
3488
3491
|
}
|
|
@@ -3801,7 +3804,7 @@ var DropdownComponent = (0, import_react18.forwardRef)(function Dropdown({
|
|
|
3801
3804
|
{
|
|
3802
3805
|
width: "100%",
|
|
3803
3806
|
backgroundColor: theme2.colors.backgroundContent,
|
|
3804
|
-
border: `solid
|
|
3807
|
+
border: `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}`,
|
|
3805
3808
|
borderColor: isFocused ? theme2.colors.primary : void 0,
|
|
3806
3809
|
borderBottom: "none",
|
|
3807
3810
|
borderTopLeftRadius: theme2.styles.borderRadius,
|
|
@@ -3848,7 +3851,7 @@ var DropdownComponent = (0, import_react18.forwardRef)(function Dropdown({
|
|
|
3848
3851
|
width: "100%",
|
|
3849
3852
|
maxHeight: 300,
|
|
3850
3853
|
backgroundColor: theme2.colors.backgroundContent,
|
|
3851
|
-
border:
|
|
3854
|
+
border: `${theme2.styles.borderWidth}px solid ${isFocused ? theme2.colors.primary : theme2.colors.border}`,
|
|
3852
3855
|
borderTop: "none",
|
|
3853
3856
|
borderBottomLeftRadius: theme2.styles.borderRadius,
|
|
3854
3857
|
borderBottomRightRadius: theme2.styles.borderRadius,
|
|
@@ -4114,7 +4117,7 @@ function Calendar({ value, minDate, maxDate, onChange }) {
|
|
|
4114
4117
|
justifyContent: "center",
|
|
4115
4118
|
backgroundColor: isSelected ? theme2.colors.primary : theme2.colors.backgroundContent,
|
|
4116
4119
|
filterHover: day && !isDisabled ? "brightness(0.9)" : void 0,
|
|
4117
|
-
border:
|
|
4120
|
+
border: `${theme2.styles.borderWidth}px solid ${isToday ? theme2.colors.primary : theme2.colors.primary + "00"}`,
|
|
4118
4121
|
borderRadius: theme2.styles.borderRadius / 2,
|
|
4119
4122
|
padding: theme2.styles.space / 2,
|
|
4120
4123
|
cursor: day ? !isDisabled ? "pointer" : "not-allowed" : void 0,
|
|
@@ -4191,7 +4194,7 @@ var InputElement = import_styled_components11.default.input.withConfig({
|
|
|
4191
4194
|
line-height: 20px;
|
|
4192
4195
|
color: ${(props) => props.theme.colors.textPrimary};
|
|
4193
4196
|
background: ${(props) => props.theme.colors.backgroundContent};
|
|
4194
|
-
border:
|
|
4197
|
+
border: ${(props) => props.theme.styles.borderWidth}px solid ${(props) => props.theme.colors.border};
|
|
4195
4198
|
border-radius: ${(props) => props.theme.styles.borderRadius}px;
|
|
4196
4199
|
border-top-left-radius: ${(props) => props.withPrefix ? 0 : void 0};
|
|
4197
4200
|
border-bottom-left-radius: ${(props) => props.withPrefix ? 0 : void 0};
|
|
@@ -4270,7 +4273,7 @@ var InputElement = import_styled_components11.default.input.withConfig({
|
|
|
4270
4273
|
}
|
|
4271
4274
|
|
|
4272
4275
|
&.react-better-html-dropdown {
|
|
4273
|
-
padding-right: ${(props) => props.theme.styles.space + 16 + props.theme.styles.space -
|
|
4276
|
+
padding-right: ${(props) => props.theme.styles.space + 16 + props.theme.styles.space - props.theme.styles.borderWidth}px;
|
|
4274
4277
|
|
|
4275
4278
|
&.react-better-html-dropdown-multiselect {
|
|
4276
4279
|
border-top: none;
|
|
@@ -4314,12 +4317,12 @@ var TextareaElement = import_styled_components11.default.textarea.withConfig({
|
|
|
4314
4317
|
line-height: 20px;
|
|
4315
4318
|
color: ${(props) => props.theme.colors.textPrimary};
|
|
4316
4319
|
background: ${(props) => props.theme.colors.backgroundContent};
|
|
4317
|
-
border:
|
|
4320
|
+
border: ${(props) => props.theme.styles.borderWidth}px solid ${(props) => props.theme.colors.border};
|
|
4318
4321
|
border-radius: ${(props) => props.theme.styles.borderRadius}px;
|
|
4319
4322
|
outline: none;
|
|
4320
4323
|
padding: ${(props) => `${(props.theme.styles.gap + props.theme.styles.space) / 2}px ${props.theme.styles.space}px`};
|
|
4321
|
-
padding-left: ${(props) => props.withLeftIcon ? `${props.theme.styles.space + 16 + props.theme.styles.space -
|
|
4322
|
-
padding-right: ${(props) => props.withRightIcon ? `${props.theme.styles.space + 16 + props.theme.styles.space -
|
|
4324
|
+
padding-left: ${(props) => props.withLeftIcon ? `${props.theme.styles.space + 16 + props.theme.styles.space - props.theme.styles.borderWidth}px` : void 0};
|
|
4325
|
+
padding-right: ${(props) => props.withRightIcon ? `${props.theme.styles.space + 16 + props.theme.styles.space - props.theme.styles.borderWidth}px` : void 0};
|
|
4323
4326
|
resize: vertical;
|
|
4324
4327
|
transition: border-color ${(props) => props.theme.styles.transition};
|
|
4325
4328
|
|
|
@@ -4405,7 +4408,7 @@ var InputFieldComponent = (0, import_react21.forwardRef)(function InputField({
|
|
|
4405
4408
|
{
|
|
4406
4409
|
alignItems: "center",
|
|
4407
4410
|
justifyContent: "center",
|
|
4408
|
-
border:
|
|
4411
|
+
border: `${theme2.styles.borderWidth}px solid ${theme2.colors.border}`,
|
|
4409
4412
|
borderRight: "none",
|
|
4410
4413
|
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)),
|
|
4411
4414
|
borderTopLeftRadius: theme2.styles.borderRadius,
|
|
@@ -4422,8 +4425,8 @@ var InputFieldComponent = (0, import_react21.forwardRef)(function InputField({
|
|
|
4422
4425
|
{
|
|
4423
4426
|
name: leftIcon,
|
|
4424
4427
|
position: "absolute",
|
|
4425
|
-
top: (props.type === "date" || props.type === "time" || props.type === "datetime-local" ? 48 :
|
|
4426
|
-
left: theme2.styles.space +
|
|
4428
|
+
top: ((props.type === "date" || props.type === "time" || props.type === "datetime-local" ? 48 : 44) + theme2.styles.borderWidth * 2) / 2,
|
|
4429
|
+
left: theme2.styles.space + theme2.styles.borderWidth,
|
|
4427
4430
|
transform: "translateY(-50%)",
|
|
4428
4431
|
pointerEvents: "none",
|
|
4429
4432
|
zIndex: leftIconZIndex
|
|
@@ -4454,8 +4457,8 @@ var InputFieldComponent = (0, import_react21.forwardRef)(function InputField({
|
|
|
4454
4457
|
{
|
|
4455
4458
|
icon: rightIcon,
|
|
4456
4459
|
position: "absolute",
|
|
4457
|
-
top:
|
|
4458
|
-
right: theme2.styles.space +
|
|
4460
|
+
top: (44 + theme2.styles.borderWidth * 2) / 2,
|
|
4461
|
+
right: theme2.styles.space + theme2.styles.borderWidth - theme2.styles.space / 2,
|
|
4459
4462
|
transform: "translateY(-50%)",
|
|
4460
4463
|
onClick: onClickRightIcon
|
|
4461
4464
|
}
|
|
@@ -4464,8 +4467,8 @@ var InputFieldComponent = (0, import_react21.forwardRef)(function InputField({
|
|
|
4464
4467
|
{
|
|
4465
4468
|
name: rightIcon,
|
|
4466
4469
|
position: "absolute",
|
|
4467
|
-
top:
|
|
4468
|
-
right: theme2.styles.space +
|
|
4470
|
+
top: (44 + theme2.styles.borderWidth * 2) / 2,
|
|
4471
|
+
right: theme2.styles.space + theme2.styles.borderWidth,
|
|
4469
4472
|
transform: "translateY(-50%)",
|
|
4470
4473
|
pointerEvents: "none"
|
|
4471
4474
|
}
|
|
@@ -4478,7 +4481,7 @@ var InputFieldComponent = (0, import_react21.forwardRef)(function InputField({
|
|
|
4478
4481
|
{
|
|
4479
4482
|
alignItems: "center",
|
|
4480
4483
|
justifyContent: "center",
|
|
4481
|
-
border:
|
|
4484
|
+
border: `${theme2.styles.borderWidth}px solid ${theme2.colors.border}`,
|
|
4482
4485
|
borderLeft: "none",
|
|
4483
4486
|
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)),
|
|
4484
4487
|
borderTopRightRadius: theme2.styles.borderRadius,
|
|
@@ -4535,8 +4538,8 @@ InputFieldComponent.multiline = (0, import_react21.forwardRef)(function Multilin
|
|
|
4535
4538
|
{
|
|
4536
4539
|
name: leftIcon,
|
|
4537
4540
|
position: "absolute",
|
|
4538
|
-
top:
|
|
4539
|
-
left: theme2.styles.space +
|
|
4541
|
+
top: (44 + theme2.styles.borderWidth * 2) / 2,
|
|
4542
|
+
left: theme2.styles.space + theme2.styles.borderWidth,
|
|
4540
4543
|
transform: "translateY(-50%)",
|
|
4541
4544
|
pointerEvents: "none"
|
|
4542
4545
|
}
|
|
@@ -4564,8 +4567,8 @@ InputFieldComponent.multiline = (0, import_react21.forwardRef)(function Multilin
|
|
|
4564
4567
|
{
|
|
4565
4568
|
icon: rightIcon,
|
|
4566
4569
|
position: "absolute",
|
|
4567
|
-
top:
|
|
4568
|
-
right: theme2.styles.space +
|
|
4570
|
+
top: (44 + theme2.styles.borderWidth * 2) / 2,
|
|
4571
|
+
right: theme2.styles.space + theme2.styles.borderWidth - theme2.styles.space / 2,
|
|
4569
4572
|
transform: "translateY(-50%)",
|
|
4570
4573
|
onClick: onClickRightIcon
|
|
4571
4574
|
}
|
|
@@ -4574,8 +4577,8 @@ InputFieldComponent.multiline = (0, import_react21.forwardRef)(function Multilin
|
|
|
4574
4577
|
{
|
|
4575
4578
|
name: rightIcon,
|
|
4576
4579
|
position: "absolute",
|
|
4577
|
-
top:
|
|
4578
|
-
right: theme2.styles.space +
|
|
4580
|
+
top: (44 + theme2.styles.borderWidth * 2) / 2,
|
|
4581
|
+
right: theme2.styles.space + theme2.styles.borderWidth,
|
|
4579
4582
|
transform: "translateY(-50%)",
|
|
4580
4583
|
pointerEvents: "none"
|
|
4581
4584
|
}
|
|
@@ -5242,7 +5245,7 @@ var InputElement2 = import_styled_components12.default.input.withConfig({
|
|
|
5242
5245
|
width: ${componentSize}px;
|
|
5243
5246
|
height: ${componentSize}px;
|
|
5244
5247
|
background-color: ${(props) => props.theme.colors.backgroundContent};
|
|
5245
|
-
border:
|
|
5248
|
+
border: ${(props) => props.theme.styles.borderWidth}px solid ${(props) => props.theme.colors.border};
|
|
5246
5249
|
border-radius: ${(props) => props.theme.styles.borderRadius / 2}px;
|
|
5247
5250
|
cursor: pointer;
|
|
5248
5251
|
transition: ${(props) => props.theme.styles.transition};
|
|
@@ -5558,7 +5561,7 @@ var FormComponent = (0, import_react23.forwardRef)(function Form({
|
|
|
5558
5561
|
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: [
|
|
5559
5562
|
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: [
|
|
5560
5563
|
child,
|
|
5561
|
-
index < import_react23.Children.toArray(children).length - 1 && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Divider_default.horizontal, {})
|
|
5564
|
+
index < import_react23.Children.toArray(children).length - 1 && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Divider_default.horizontal, { width: theme2.styles.borderWidth })
|
|
5562
5565
|
] }, index)) : children }) : children,
|
|
5563
5566
|
submitButtonText && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
5564
5567
|
Div_default.row,
|
|
@@ -5878,45 +5881,45 @@ var TableStyledComponent = import_styled_components13.default.table.withConfig({
|
|
|
5878
5881
|
|
|
5879
5882
|
thead {
|
|
5880
5883
|
tr:first-child {
|
|
5881
|
-
border-top-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
5882
|
-
border-top-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
5884
|
+
border-top-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5885
|
+
border-top-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5883
5886
|
|
|
5884
5887
|
th:first-child {
|
|
5885
|
-
border-top-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
5888
|
+
border-top-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5886
5889
|
}
|
|
5887
5890
|
|
|
5888
5891
|
th:last-child {
|
|
5889
|
-
border-top-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
5892
|
+
border-top-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5890
5893
|
}
|
|
5891
5894
|
}
|
|
5892
5895
|
}
|
|
5893
5896
|
|
|
5894
5897
|
tbody {
|
|
5895
5898
|
tr:last-child {
|
|
5896
|
-
border-bottom-left-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 -
|
|
5897
|
-
border-bottom-right-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 -
|
|
5899
|
+
border-bottom-left-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5900
|
+
border-bottom-right-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5898
5901
|
|
|
5899
5902
|
td:first-child {
|
|
5900
|
-
border-bottom-left-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 -
|
|
5903
|
+
border-bottom-left-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5901
5904
|
}
|
|
5902
5905
|
|
|
5903
5906
|
td:last-child {
|
|
5904
|
-
border-bottom-right-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 -
|
|
5907
|
+
border-bottom-right-radius: ${(props) => props.containsOverflowComponents && !props.withFooter ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5905
5908
|
}
|
|
5906
5909
|
}
|
|
5907
5910
|
}
|
|
5908
5911
|
|
|
5909
5912
|
tfoot {
|
|
5910
5913
|
tr:last-child {
|
|
5911
|
-
border-bottom-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
5912
|
-
border-bottom-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
5914
|
+
border-bottom-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5915
|
+
border-bottom-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5913
5916
|
|
|
5914
5917
|
td:first-child {
|
|
5915
|
-
border-bottom-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
5918
|
+
border-bottom-left-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5916
5919
|
}
|
|
5917
5920
|
|
|
5918
5921
|
td:last-child {
|
|
5919
|
-
border-bottom-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 -
|
|
5922
|
+
border-bottom-right-radius: ${(props) => props.containsOverflowComponents ? `${props.theme.styles.borderRadius * 2 - props.theme.styles.borderWidth}px` : void 0};
|
|
5920
5923
|
}
|
|
5921
5924
|
}
|
|
5922
5925
|
}
|
|
@@ -5966,7 +5969,8 @@ var TableStyledComponent = import_styled_components13.default.table.withConfig({
|
|
|
5966
5969
|
}
|
|
5967
5970
|
|
|
5968
5971
|
td {
|
|
5969
|
-
border-top:
|
|
5972
|
+
border-top: ${(props) => props.theme.styles.borderWidth}px solid
|
|
5973
|
+
${(props) => props.theme.colors.border + (props.colorTheme === "light" ? "60" : "40")};
|
|
5970
5974
|
padding: ${(props) => props.theme.styles.gap}px ${(props) => props.theme.styles.space}px;
|
|
5971
5975
|
|
|
5972
5976
|
&.noData {
|
|
@@ -6370,25 +6374,21 @@ var TableComponent = (0, import_react27.forwardRef)(function Table({
|
|
|
6370
6374
|
(0, import_react27.useEffect)(() => {
|
|
6371
6375
|
onChangeFilterDataValue?.(dataAfterFilter);
|
|
6372
6376
|
}, [onChangeFilterDataValue, dataAfterFilter]);
|
|
6373
|
-
(0, import_react27.useImperativeHandle)(
|
|
6374
|
-
|
|
6375
|
-
|
|
6376
|
-
|
|
6377
|
-
|
|
6378
|
-
|
|
6379
|
-
|
|
6380
|
-
|
|
6381
|
-
};
|
|
6382
|
-
},
|
|
6383
|
-
[currentPage, setCurrentPage, pageCountInternal, setCheckedItems]
|
|
6384
|
-
);
|
|
6377
|
+
(0, import_react27.useImperativeHandle)(ref, () => {
|
|
6378
|
+
return {
|
|
6379
|
+
currentPage,
|
|
6380
|
+
setCurrentPage,
|
|
6381
|
+
pagesCount: pageCountInternal,
|
|
6382
|
+
setCheckedItems
|
|
6383
|
+
};
|
|
6384
|
+
}, [currentPage, setCurrentPage, pageCountInternal, setCheckedItems]);
|
|
6385
6385
|
const withFooter = pageSize !== void 0 && pageCountInternal > 1;
|
|
6386
6386
|
const mobileFooterBreakingPoint = mediaQuery.size700 && pageCountInternal > maximumVisiblePages / 1.4;
|
|
6387
6387
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
|
|
6388
6388
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
6389
6389
|
Div_default,
|
|
6390
6390
|
{
|
|
6391
|
-
border:
|
|
6391
|
+
border: `${theme2.styles.borderWidth}px solid ${theme2.colors.border}`,
|
|
6392
6392
|
borderRadius: theme2.styles.borderRadius * 2,
|
|
6393
6393
|
overflow: !containsOverflowComponents ? "auto" : void 0,
|
|
6394
6394
|
...props,
|
|
@@ -6754,7 +6754,7 @@ var Arrow = (0, import_react28.memo)(function Arrow2(props) {
|
|
|
6754
6754
|
}),
|
|
6755
6755
|
[props, theme2]
|
|
6756
6756
|
);
|
|
6757
|
-
const borderWidth =
|
|
6757
|
+
const borderWidth = theme2.styles.borderWidth;
|
|
6758
6758
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
6759
6759
|
Div_default,
|
|
6760
6760
|
{
|
|
@@ -6874,17 +6874,13 @@ var TooltipComponent = (0, import_react28.forwardRef)(function Tooltip({
|
|
|
6874
6874
|
if (!disabled) return;
|
|
6875
6875
|
closeTooltip();
|
|
6876
6876
|
}, [disabled]);
|
|
6877
|
-
(0, import_react28.useImperativeHandle)(
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
};
|
|
6885
|
-
},
|
|
6886
|
-
[isOpen, openTooltip, closeTooltip]
|
|
6887
|
-
);
|
|
6877
|
+
(0, import_react28.useImperativeHandle)(ref, () => {
|
|
6878
|
+
return {
|
|
6879
|
+
isOpen,
|
|
6880
|
+
open: openTooltip,
|
|
6881
|
+
close: closeTooltip
|
|
6882
|
+
};
|
|
6883
|
+
}, [isOpen, openTooltip, closeTooltip]);
|
|
6888
6884
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
6889
6885
|
Div_default,
|
|
6890
6886
|
{
|
|
@@ -7008,7 +7004,7 @@ TooltipComponent.item = (0, import_react28.forwardRef)(function Item({
|
|
|
7008
7004
|
});
|
|
7009
7005
|
TooltipComponent.divider = (0, import_react28.forwardRef)(function DividerComponent(props, ref) {
|
|
7010
7006
|
const theme2 = (0, import_react_better_core26.useTheme)();
|
|
7011
|
-
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Divider_default.horizontal, { marginBlock: theme2.styles.gap, ...props, ref });
|
|
7007
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Divider_default.horizontal, { width: theme2.styles.borderWidth, marginBlock: theme2.styles.gap, ...props, ref });
|
|
7012
7008
|
});
|
|
7013
7009
|
TooltipComponent.sectionTitle = (0, import_react28.forwardRef)(function SectionTitle({ text, ...props }, ref) {
|
|
7014
7010
|
const theme2 = (0, import_react_better_core26.useTheme)();
|
|
@@ -7125,16 +7121,12 @@ var TabsComponent = (0, import_react29.forwardRef)(function Tabs({ tabs, name, a
|
|
|
7125
7121
|
);
|
|
7126
7122
|
};
|
|
7127
7123
|
}, []);
|
|
7128
|
-
(0, import_react29.useImperativeHandle)(
|
|
7129
|
-
|
|
7130
|
-
|
|
7131
|
-
|
|
7132
|
-
|
|
7133
|
-
|
|
7134
|
-
};
|
|
7135
|
-
},
|
|
7136
|
-
[selectedTab, onClickTab]
|
|
7137
|
-
);
|
|
7124
|
+
(0, import_react29.useImperativeHandle)(ref, () => {
|
|
7125
|
+
return {
|
|
7126
|
+
selectedTab,
|
|
7127
|
+
selectTab: onClickTab
|
|
7128
|
+
};
|
|
7129
|
+
}, [selectedTab, onClickTab]);
|
|
7138
7130
|
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(Div_default.column, { width: "100%", gap: theme2.styles.space, ...props, children: [
|
|
7139
7131
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(Div_default, { position: "relative", className: "react-better-html-no-scrollbar", overflowY: "auto", children: [
|
|
7140
7132
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Div_default.row, { position: "relative", width: "fit-content", gap: tabsGap, userSelect: "none", children: tabs.map((tab) => {
|
|
@@ -7148,7 +7140,7 @@ var TabsComponent = (0, import_react29.forwardRef)(function Tabs({ tabs, name, a
|
|
|
7148
7140
|
borderRadius: style === "box" ? theme2.styles.borderRadius : void 0,
|
|
7149
7141
|
borderTopLeftRadius: style === "borderRadiusTop" ? theme2.styles.borderRadius : void 0,
|
|
7150
7142
|
borderTopRightRadius: style === "borderRadiusTop" ? theme2.styles.borderRadius : void 0,
|
|
7151
|
-
border: style === "box" ?
|
|
7143
|
+
border: style === "box" ? `${theme2.styles.borderWidth}px solid ${selected ? "transparent" : theme2.colors.border}` : void 0,
|
|
7152
7144
|
filterHover: colorTheme === "dark" ? style === "box" ? "brightness(1.2)" : "brightness(2)" : "brightness(0.9)",
|
|
7153
7145
|
paddingInline: theme2.styles.space,
|
|
7154
7146
|
paddingBlock: theme2.styles.gap,
|
|
@@ -7343,7 +7335,7 @@ var FoldableComponent = (0, import_react30.forwardRef)(function Foldable({
|
|
|
7343
7335
|
]
|
|
7344
7336
|
}
|
|
7345
7337
|
),
|
|
7346
|
-
/* @__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, {}) }),
|
|
7338
|
+
/* @__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 }) }),
|
|
7347
7339
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
7348
7340
|
Div_default,
|
|
7349
7341
|
{
|
|
@@ -7364,7 +7356,7 @@ FoldableComponent.box = (0, import_react30.forwardRef)(function Box3({ ...props
|
|
|
7364
7356
|
FoldableComponent,
|
|
7365
7357
|
{
|
|
7366
7358
|
backgroundColor: theme2.colors.backgroundContent,
|
|
7367
|
-
border:
|
|
7359
|
+
border: `${theme2.styles.borderWidth}px solid ${theme2.colors.border}`,
|
|
7368
7360
|
borderRadius: theme2.styles.borderRadius,
|
|
7369
7361
|
headerPaddingBlock: (theme2.styles.gap + theme2.styles.space) / 2,
|
|
7370
7362
|
headerPaddingInline: theme2.styles.space,
|
|
@@ -7639,7 +7631,7 @@ var SideMenuComponent = function SideMenu({
|
|
|
7639
7631
|
top: topSpace,
|
|
7640
7632
|
left: 0,
|
|
7641
7633
|
backgroundColor: readyBackgroundColor,
|
|
7642
|
-
borderRight: `solid
|
|
7634
|
+
borderRight: `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}`,
|
|
7643
7635
|
transform: !mediaQuery.size1000 || sideMenuIsOpenMobile ? "translateX(0)" : "translateX(-100%)",
|
|
7644
7636
|
paddingTop: paddingTop ?? (logoAssetName || logoUrl ? theme2.styles.gap : theme2.styles.space),
|
|
7645
7637
|
transition: mediaQuery.size1000 ? !isCollapsed ? `transform ${theme2.styles.transition}` : "none" : theme2.styles.transition,
|
|
@@ -7707,7 +7699,7 @@ var SideMenuComponent = function SideMenu({
|
|
|
7707
7699
|
readyBottomItems && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
7708
7700
|
Div_default.column,
|
|
7709
7701
|
{
|
|
7710
|
-
borderTop: mediaQuery.size1000 ? `solid
|
|
7702
|
+
borderTop: mediaQuery.size1000 ? `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}` : void 0,
|
|
7711
7703
|
gap: theme2.styles.gap / 2,
|
|
7712
7704
|
marginTop: "auto",
|
|
7713
7705
|
paddingTop: mediaQuery.size1000 ? theme2.styles.space : void 0,
|
|
@@ -7729,7 +7721,7 @@ var SideMenuComponent = function SideMenu({
|
|
|
7729
7721
|
isCollapsable && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
7730
7722
|
Div_default,
|
|
7731
7723
|
{
|
|
7732
|
-
borderTop: `solid
|
|
7724
|
+
borderTop: `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}`,
|
|
7733
7725
|
marginTop: !readyBottomItems ? "auto" : void 0,
|
|
7734
7726
|
paddingInline: theme2.styles.space,
|
|
7735
7727
|
paddingBlock: theme2.styles.space,
|
|
@@ -7767,7 +7759,7 @@ var SideMenuComponent = function SideMenu({
|
|
|
7767
7759
|
top: theme2.styles.space,
|
|
7768
7760
|
left: "100%",
|
|
7769
7761
|
backgroundColor: readyBackgroundColor,
|
|
7770
|
-
border: `solid
|
|
7762
|
+
border: `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}`,
|
|
7771
7763
|
borderLeft: "none",
|
|
7772
7764
|
borderTopRightRadius: theme2.styles.borderRadius,
|
|
7773
7765
|
borderBottomRightRadius: theme2.styles.borderRadius,
|
|
@@ -7926,6 +7918,8 @@ var SideMenu_default = SideMenu2;
|
|
|
7926
7918
|
eventStopPropagation,
|
|
7927
7919
|
filterHover,
|
|
7928
7920
|
formatPhoneNumber,
|
|
7921
|
+
generateApi,
|
|
7922
|
+
generateEventEmitter,
|
|
7929
7923
|
generateLocalStorage,
|
|
7930
7924
|
generateRandomString,
|
|
7931
7925
|
getBrowser,
|