react-better-html 1.1.225 → 1.1.226

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.mjs CHANGED
@@ -1939,16 +1939,16 @@ var ButtonElement = styled6.button.withConfig({
1939
1939
  opacity: 0.6;
1940
1940
  cursor: not-allowed;
1941
1941
  ` : !props.isLoading ? css`
1942
- cursor: pointer;
1942
+ cursor: pointer;
1943
1943
 
1944
- &:not(.secondary):hover {
1945
- filter: ${props.colorTheme === "dark" ? "brightness(1.2)" : "brightness(0.9)"};
1946
- }
1944
+ &:not(.secondary):hover {
1945
+ filter: ${props.colorTheme === "dark" ? "brightness(1.2)" : "brightness(0.9)"};
1946
+ }
1947
1947
 
1948
- &.secondary:hover {
1949
- border-color: ${props.theme.colors.primary};
1950
- }
1951
- ` : ""}
1948
+ &.secondary:hover {
1949
+ border-color: ${props.theme.colors.primary};
1950
+ }
1951
+ ` : ""}
1952
1952
 
1953
1953
  &.secondary {
1954
1954
  padding-block: ${(props) => props.isSmall ? props.theme.styles.gap : (props.theme.styles.space + props.theme.styles.gap) / 2}px;
@@ -2007,14 +2007,22 @@ var ButtonComponent = function Button({
2007
2007
  },
2008
2008
  [onClick, onClickWithValue, value]
2009
2009
  );
2010
- const iconComponent = icon ? /* @__PURE__ */ jsx8(Div_default.row, { height: 20, alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ jsx8(
2011
- Icon_default,
2010
+ const iconComponent = icon ? /* @__PURE__ */ jsx8(
2011
+ Div_default.row,
2012
2012
  {
2013
- name: icon,
2014
- color: iconColor ?? props.color ?? theme2.colors.base,
2015
- size: iconSize ?? parseInt(style.fontSize?.toString() ?? "16")
2013
+ height: iconSize ?? parseInt(style.fontSize?.toString() ?? "16"),
2014
+ alignItems: "center",
2015
+ justifyContent: "center",
2016
+ children: /* @__PURE__ */ jsx8(
2017
+ Icon_default,
2018
+ {
2019
+ name: icon,
2020
+ color: iconColor ?? props.color ?? theme2.colors.base,
2021
+ size: iconSize ?? parseInt(style.fontSize?.toString() ?? "16")
2022
+ }
2023
+ )
2016
2024
  }
2017
- ) }) : void 0;
2025
+ ) : void 0;
2018
2026
  const imageComponent = image ? /* @__PURE__ */ jsx8(
2019
2027
  Image_default,
2020
2028
  {
@@ -2119,17 +2127,17 @@ ButtonComponent.destructive = function Destructive(props) {
2119
2127
  }
2120
2128
  );
2121
2129
  };
2122
- ButtonComponent.icon = function Icon3({ size = 16, backgroundButtonColor, ...props }) {
2130
+ ButtonComponent.icon = function Icon3({ size = 16, buttonSize, backgroundButtonColor, ...props }) {
2123
2131
  const theme2 = useTheme9();
2124
2132
  const betterHtmlContext2 = useBetterHtmlContextInternal();
2125
- const buttonSize = size + theme2.styles.space;
2133
+ const readyButtonSize = buttonSize ?? size + theme2.styles.space;
2126
2134
  const backgroundButtonColorReady = backgroundButtonColor ?? theme2.colors.textPrimary;
2127
2135
  return /* @__PURE__ */ jsx8(
2128
2136
  ButtonComponent,
2129
2137
  {
2130
2138
  ...betterHtmlContext2.components.button?.style?.icon,
2131
- width: buttonSize,
2132
- height: buttonSize,
2139
+ width: readyButtonSize,
2140
+ height: readyButtonSize,
2133
2141
  color: theme2.colors.textPrimary,
2134
2142
  backgroundColor: backgroundButtonColorReady + "00",
2135
2143
  backgroundImage: "none",
@@ -3337,10 +3345,12 @@ var PageHolder_default = PageHolder2;
3337
3345
  // src/components/Chip.tsx
3338
3346
  import { forwardRef as forwardRef9, memo as memo14, useCallback as useCallback7 } from "react";
3339
3347
  import { darkenColor, lightenColor, useBetterCoreContext as useBetterCoreContext6, useTheme as useTheme15 } from "react-better-core";
3340
- import { jsx as jsx14 } from "react/jsx-runtime";
3348
+ import { jsx as jsx14, jsxs as jsxs10 } from "react/jsx-runtime";
3341
3349
  var borderRadiusOffset = 1.3;
3342
3350
  var ChipComponent = forwardRef9(function Chip({
3343
3351
  text,
3352
+ beforeText,
3353
+ afterText,
3344
3354
  color,
3345
3355
  backgroundColor,
3346
3356
  borderRadius,
@@ -3371,7 +3381,11 @@ var ChipComponent = forwardRef9(function Chip({
3371
3381
  cursor: onClick || onClickWithValue ? "pointer" : void 0,
3372
3382
  ...props,
3373
3383
  ref,
3374
- children: /* @__PURE__ */ jsx14(Text_default, { color: color ?? theme2.colors.textPrimary, children: text })
3384
+ children: /* @__PURE__ */ jsxs10(Div_default.row, { height: "100%", alignItems: "center", gap: theme2.styles.gap, children: [
3385
+ beforeText,
3386
+ typeof text === "string" ? /* @__PURE__ */ jsx14(Text_default, { color: color ?? theme2.colors.textPrimary, children: text }) : text,
3387
+ afterText
3388
+ ] })
3375
3389
  }
3376
3390
  );
3377
3391
  });
@@ -3419,10 +3433,10 @@ import styled10 from "styled-components";
3419
3433
  // src/components/Label.tsx
3420
3434
  import { memo as memo15 } from "react";
3421
3435
  import { useTheme as useTheme16 } from "react-better-core";
3422
- import { jsxs as jsxs10 } from "react/jsx-runtime";
3436
+ import { jsxs as jsxs11 } from "react/jsx-runtime";
3423
3437
  function Label({ text, required, isError, color, htmlFor }) {
3424
3438
  const theme2 = useTheme16();
3425
- return /* @__PURE__ */ jsxs10(
3439
+ return /* @__PURE__ */ jsxs11(
3426
3440
  Text_default,
3427
3441
  {
3428
3442
  as: "label",
@@ -3434,7 +3448,7 @@ function Label({ text, required, isError, color, htmlFor }) {
3434
3448
  "aria-required": required,
3435
3449
  children: [
3436
3450
  text,
3437
- required && /* @__PURE__ */ jsxs10(Text_default, { as: "span", fontSize: 16, color: theme2.colors.error, children: [
3451
+ required && /* @__PURE__ */ jsxs11(Text_default, { as: "span", fontSize: 16, color: theme2.colors.error, children: [
3438
3452
  " ",
3439
3453
  "*"
3440
3454
  ] })
@@ -3453,7 +3467,7 @@ import {
3453
3467
  countries,
3454
3468
  useTheme as useTheme17
3455
3469
  } from "react-better-core";
3456
- import { Fragment as Fragment4, jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
3470
+ import { Fragment as Fragment4, jsx as jsx15, jsxs as jsxs12 } from "react/jsx-runtime";
3457
3471
  import { createElement as createElement2 } from "react";
3458
3472
  var DropdownComponent = forwardRef10(function Dropdown({
3459
3473
  label,
@@ -3604,13 +3618,13 @@ var DropdownComponent = forwardRef10(function Dropdown({
3604
3618
  [options, value]
3605
3619
  );
3606
3620
  const renderedOptions = useMemo4(
3607
- () => /* @__PURE__ */ jsxs11(Fragment4, { children: [
3621
+ () => /* @__PURE__ */ jsxs12(Fragment4, { children: [
3608
3622
  renderOptionDivider ? renderOptionDivider(void 0, filteredOptions[0], -1, 0) : void 0,
3609
3623
  filteredOptions.map((option, index) => {
3610
3624
  const isSelected = withMultiselect ? Array.isArray(value) ? value.includes(option.value) : false : option.value === value;
3611
3625
  const isDisabled = option.disabled;
3612
3626
  const isFocused2 = index === focusedOptionIndex;
3613
- return /* @__PURE__ */ jsxs11(Fragment3, { children: [
3627
+ return /* @__PURE__ */ jsxs12(Fragment3, { children: [
3614
3628
  /* @__PURE__ */ jsx15(
3615
3629
  Div_default,
3616
3630
  {
@@ -3726,10 +3740,25 @@ var DropdownComponent = forwardRef10(function Dropdown({
3726
3740
  transition: theme2.styles.transition,
3727
3741
  children: /* @__PURE__ */ jsx15(Div_default.row, { width: "100%", flexWrap: "wrap", gap: theme2.styles.gap, children: selectedOption.map((option) => {
3728
3742
  const ChipComponentTag = !option.renderType || option.renderType === "default" || option.renderType === "chip" ? Chip_default : option.renderType === "chip.colored" ? Chip_default.colored : Chip_default;
3743
+ const withXButton = isFocused || isOpen;
3729
3744
  return /* @__PURE__ */ createElement2(
3730
3745
  ChipComponentTag,
3731
3746
  {
3732
3747
  text: option.label,
3748
+ afterText: withXButton && /* @__PURE__ */ jsx15(
3749
+ Button_default.icon,
3750
+ {
3751
+ icon: "XMark",
3752
+ color: theme2.colors.textSecondary,
3753
+ size: 14,
3754
+ buttonSize: 20,
3755
+ value: option,
3756
+ onClickWithValue: onClickOption
3757
+ }
3758
+ ),
3759
+ height: 20 + theme2.styles.gap,
3760
+ paddingRight: withXButton ? theme2.styles.gap / 2 : void 0,
3761
+ transition: "none",
3733
3762
  ...option.renderType === "chip" || option.renderType === "chip.colored" ? option.chipProps : [],
3734
3763
  withWhiteBackground: option.renderType === "chip.colored",
3735
3764
  key: JSON.stringify(option)
@@ -3738,7 +3767,7 @@ var DropdownComponent = forwardRef10(function Dropdown({
3738
3767
  }) })
3739
3768
  }
3740
3769
  ) : void 0,
3741
- insideInputFieldAfterComponent: /* @__PURE__ */ jsxs11(Fragment4, { children: [
3770
+ insideInputFieldAfterComponent: /* @__PURE__ */ jsxs12(Fragment4, { children: [
3742
3771
  /* @__PURE__ */ jsx15(
3743
3772
  Div_default,
3744
3773
  {
@@ -3764,7 +3793,7 @@ var DropdownComponent = forwardRef10(function Dropdown({
3764
3793
  children: isLoadingDebouncedSearchQuery || debounceIsLoading ? /* @__PURE__ */ jsx15(Div_default, { padding: `${theme2.styles.space / 2}px ${theme2.styles.space + theme2.styles.gap}px`, children: /* @__PURE__ */ jsx15(Loader_default.text, {}) }) : filteredOptions.length ? /* @__PURE__ */ jsx15(Fragment4, { children: (withoutRenderingOptionsWhenClosed ? isOpen || isOpenLate : true) ? renderedOptions : void 0 }) : /* @__PURE__ */ jsx15(Div_default, { padding: `${theme2.styles.space / 2}px ${theme2.styles.space + theme2.styles.gap}px`, children: /* @__PURE__ */ jsx15(Text_default.unknown, { textAlign: "left", children: debounceMinimumSymbolsRequired !== void 0 && searchQuery.length < debounceMinimumSymbolsRequired ? `Enter at least ${debounceMinimumSymbolsRequired} characters` : "No options" }) })
3765
3794
  }
3766
3795
  ),
3767
- /* @__PURE__ */ jsxs11(
3796
+ /* @__PURE__ */ jsxs12(
3768
3797
  Div_default.row,
3769
3798
  {
3770
3799
  position: "absolute",
@@ -3823,7 +3852,7 @@ var DropdownComponent = forwardRef10(function Dropdown({
3823
3852
  DropdownComponent.countries = forwardRef10(function Countries({ ...props }, ref) {
3824
3853
  const theme2 = useTheme17();
3825
3854
  const renderOption = useCallback8(
3826
- (option, index, isSelected) => /* @__PURE__ */ jsxs11(Div_default.row, { alignItems: "center", gap: theme2.styles.gap, children: [
3855
+ (option, index, isSelected) => /* @__PURE__ */ jsxs12(Div_default.row, { alignItems: "center", gap: theme2.styles.gap, children: [
3827
3856
  /* @__PURE__ */ jsx15(Image_default, { src: `https://flagcdn.com/w80/${option.data?.code.toString().toLowerCase()}.webp`, width: 20 }),
3828
3857
  /* @__PURE__ */ jsx15(Text_default, { children: option.label })
3829
3858
  ] }),
@@ -3860,7 +3889,7 @@ var Dropdown_default = Dropdown2;
3860
3889
  import { useCallback as useCallback9, useMemo as useMemo5, useState as useState6, memo as memo17, useEffect as useEffect8, useId } from "react";
3861
3890
  import { useTheme as useTheme18 } from "react-better-core";
3862
3891
  import styled9 from "styled-components";
3863
- import { jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
3892
+ import { jsx as jsx16, jsxs as jsxs13 } from "react/jsx-runtime";
3864
3893
  var getMonthName = (month, short = false) => {
3865
3894
  return [
3866
3895
  short ? "Jan" : "January",
@@ -3974,12 +4003,12 @@ function Calendar({ value, minDate, maxDate, onChange }) {
3974
4003
  setCurrentMonth(date.getMonth());
3975
4004
  setCurrentYear(date.getFullYear());
3976
4005
  }, [value]);
3977
- return /* @__PURE__ */ jsxs12(Div_default.column, { width: "100%", maxWidth: 320, gap: theme2.styles.gap, padding: theme2.styles.space / 2, userSelect: "none", children: [
3978
- /* @__PURE__ */ jsxs12(Div_default.row, { width: "100%", justifyContent: "space-between", alignItems: "center", children: [
4006
+ return /* @__PURE__ */ jsxs13(Div_default.column, { width: "100%", maxWidth: 320, gap: theme2.styles.gap, padding: theme2.styles.space / 2, userSelect: "none", children: [
4007
+ /* @__PURE__ */ jsxs13(Div_default.row, { width: "100%", justifyContent: "space-between", alignItems: "center", children: [
3979
4008
  /* @__PURE__ */ jsx16(Button_default.icon, { icon: "chevronLeft", onClick: onClickPreviousMonthButton }),
3980
- /* @__PURE__ */ jsxs12(Div_default.row, { alignItems: "center", gap: 4, children: [
4009
+ /* @__PURE__ */ jsxs13(Div_default.row, { alignItems: "center", gap: 4, children: [
3981
4010
  /* @__PURE__ */ jsx16(Text_default, { fontWeight: 700, children: getMonthName(currentMonth) }),
3982
- /* @__PURE__ */ jsx16(SelectWrapperComponent, { children: /* @__PURE__ */ jsxs12(Div_default.row, { position: "relative", alignItems: "center", gap: 2, children: [
4011
+ /* @__PURE__ */ jsx16(SelectWrapperComponent, { children: /* @__PURE__ */ jsxs13(Div_default.row, { position: "relative", alignItems: "center", gap: 2, children: [
3983
4012
  /* @__PURE__ */ jsx16(Text_default, { fontWeight: 700, children: currentYear }),
3984
4013
  /* @__PURE__ */ jsx16(Icon_default, { name: "chevronDown", size: 12 }),
3985
4014
  /* @__PURE__ */ jsx16(
@@ -3996,7 +4025,7 @@ function Calendar({ value, minDate, maxDate, onChange }) {
3996
4025
  ] }),
3997
4026
  /* @__PURE__ */ jsx16(Button_default.icon, { icon: "chevronRight", onClick: onClickNextMonthButton })
3998
4027
  ] }),
3999
- /* @__PURE__ */ jsxs12(Div_default.grid, { width: "100%", gridTemplateColumns: "repeat(7, 1fr)", gap: theme2.styles.gap / 2, children: [
4028
+ /* @__PURE__ */ jsxs13(Div_default.grid, { width: "100%", gridTemplateColumns: "repeat(7, 1fr)", gap: theme2.styles.gap / 2, children: [
4000
4029
  weekDaysIndex.map((day) => /* @__PURE__ */ jsx16(Div_default.row, { alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ jsx16(Text_default, { fontSize: 14, fontWeight: 700, textAlign: "center", children: getWeekDayName(day, true) }) }, day)),
4001
4030
  days.map((day, index) => {
4002
4031
  const thisDayDate = new Date(currentYear, currentMonth, day);
@@ -4004,7 +4033,7 @@ function Calendar({ value, minDate, maxDate, onChange }) {
4004
4033
  const isToday = thisDayDate.getDate() === (/* @__PURE__ */ new Date()).getDate() && thisDayDate.getMonth() === (/* @__PURE__ */ new Date()).getMonth() && thisDayDate.getFullYear() === (/* @__PURE__ */ new Date()).getFullYear();
4005
4034
  const isWeekend = thisDayDate.getDay() === 6 || thisDayDate.getDay() === 0;
4006
4035
  const isDisabled = minDate && thisDayDate.getTime() < minDate.getTime() || maxDate && thisDayDate.getTime() > maxDate.getTime();
4007
- return /* @__PURE__ */ jsxs12(
4036
+ return /* @__PURE__ */ jsxs13(
4008
4037
  Div_default.row,
4009
4038
  {
4010
4039
  position: "relative",
@@ -4049,7 +4078,7 @@ function Calendar({ value, minDate, maxDate, onChange }) {
4049
4078
  );
4050
4079
  })
4051
4080
  ] }),
4052
- /* @__PURE__ */ jsxs12(Div_default.row, { width: "100%", justifyContent: "space-between", alignItems: "center", children: [
4081
+ /* @__PURE__ */ jsxs13(Div_default.row, { width: "100%", justifyContent: "space-between", alignItems: "center", children: [
4053
4082
  /* @__PURE__ */ jsx16(Div_default, { isTabAccessed: true, cursor: "pointer", onClick: onClickClear, children: /* @__PURE__ */ jsx16(
4054
4083
  Text_default,
4055
4084
  {
@@ -4076,7 +4105,7 @@ function Calendar({ value, minDate, maxDate, onChange }) {
4076
4105
  var Calendar_default = memo17(Calendar);
4077
4106
 
4078
4107
  // src/components/InputField.tsx
4079
- import { jsx as jsx17, jsxs as jsxs13 } from "react/jsx-runtime";
4108
+ import { jsx as jsx17, jsxs as jsxs14 } from "react/jsx-runtime";
4080
4109
  var buttonWidth = 50;
4081
4110
  var colorPickerSpacing = 4;
4082
4111
  var colorPickerColorWidth = 12 + 27 + colorPickerSpacing;
@@ -4297,9 +4326,9 @@ var InputFieldComponent = forwardRef11(function InputField({
4297
4326
  onChangeValue?.(debouncedValue);
4298
4327
  }, [withDebounce, onChangeValue, debouncedValue]);
4299
4328
  const readyId = id ?? internalId;
4300
- return /* @__PURE__ */ jsxs13(Div_default.column, { width: "100%", gap: theme2.styles.gap / 2, ...excludeStyle, children: [
4329
+ return /* @__PURE__ */ jsxs14(Div_default.column, { width: "100%", gap: theme2.styles.gap / 2, ...excludeStyle, children: [
4301
4330
  label && /* @__PURE__ */ jsx17(Label_default, { text: label, color: labelColor, required, isError: !!errorText, htmlFor: readyId }),
4302
- /* @__PURE__ */ jsxs13(Div_default.row, { alignItems: "stretch", width: "100%", children: [
4331
+ /* @__PURE__ */ jsxs14(Div_default.row, { alignItems: "stretch", width: "100%", children: [
4303
4332
  prefix && /* @__PURE__ */ jsx17(
4304
4333
  Div_default.row,
4305
4334
  {
@@ -4314,9 +4343,9 @@ var InputFieldComponent = forwardRef11(function InputField({
4314
4343
  children: prefix
4315
4344
  }
4316
4345
  ),
4317
- /* @__PURE__ */ jsxs13(Div_default, { position: "relative", width: "100%", height: "fit-content", ref: holderRef, children: [
4346
+ /* @__PURE__ */ jsxs14(Div_default, { position: "relative", width: "100%", height: "fit-content", ref: holderRef, children: [
4318
4347
  insideInputFieldBeforeComponent,
4319
- /* @__PURE__ */ jsxs13(Div_default, { position: "relative", width: "100%", height: "fit-content", children: [
4348
+ /* @__PURE__ */ jsxs14(Div_default, { position: "relative", width: "100%", height: "fit-content", children: [
4320
4349
  leftIcon && /* @__PURE__ */ jsx17(
4321
4350
  Icon_default,
4322
4351
  {
@@ -4427,9 +4456,9 @@ InputFieldComponent.multiline = forwardRef11(function Multiline({
4427
4456
  [onChange, onChangeValue]
4428
4457
  );
4429
4458
  const readyId = id ?? internalId;
4430
- return /* @__PURE__ */ jsxs13(Div_default.column, { gap: theme2.styles.gap / 2, children: [
4459
+ return /* @__PURE__ */ jsxs14(Div_default.column, { gap: theme2.styles.gap / 2, children: [
4431
4460
  label && /* @__PURE__ */ jsx17(Label_default, { text: label, required, isError: !!errorText, htmlFor: readyId }),
4432
- /* @__PURE__ */ jsxs13(Div_default, { position: "relative", width: "100%", children: [
4461
+ /* @__PURE__ */ jsxs14(Div_default, { position: "relative", width: "100%", children: [
4433
4462
  leftIcon && /* @__PURE__ */ jsx17(
4434
4463
  Icon_default,
4435
4464
  {
@@ -4574,7 +4603,7 @@ InputFieldComponent.phoneNumber = forwardRef11(function PhoneNumber({ label, val
4574
4603
  const [dropdownValue, setDropdownValue] = useState7();
4575
4604
  const [inputFieldValue, setInputFieldValue] = useState7(value?.toString() ?? "");
4576
4605
  const renderOption = useCallback10(
4577
- (option, index, isSelected) => /* @__PURE__ */ jsxs13(Div_default.row, { alignItems: "center", gap: theme2.styles.gap, children: [
4606
+ (option, index, isSelected) => /* @__PURE__ */ jsxs14(Div_default.row, { alignItems: "center", gap: theme2.styles.gap, children: [
4578
4607
  /* @__PURE__ */ jsx17(Image_default, { src: `https://flagcdn.com/w80/${option.data?.code.toString().toLowerCase()}.webp`, width: 20 }),
4579
4608
  /* @__PURE__ */ jsx17(Text_default, { children: option.label })
4580
4609
  ] }),
@@ -4626,7 +4655,7 @@ InputFieldComponent.phoneNumber = forwardRef11(function PhoneNumber({ label, val
4626
4655
  setInputFieldValue(newValue.slice(country?.phoneNumberExtension.length + 1));
4627
4656
  }, [value]);
4628
4657
  const readyId = id ?? internalId;
4629
- return /* @__PURE__ */ jsxs13(Div_default.column, { width: "100%", gap: theme2.styles.gap / 2, children: [
4658
+ return /* @__PURE__ */ jsxs14(Div_default.column, { width: "100%", gap: theme2.styles.gap / 2, children: [
4630
4659
  label && /* @__PURE__ */ jsx17(
4631
4660
  Label_default,
4632
4661
  {
@@ -4637,7 +4666,7 @@ InputFieldComponent.phoneNumber = forwardRef11(function PhoneNumber({ label, val
4637
4666
  htmlFor: readyId
4638
4667
  }
4639
4668
  ),
4640
- /* @__PURE__ */ jsxs13(Div_default.row, { children: [
4669
+ /* @__PURE__ */ jsxs14(Div_default.row, { children: [
4641
4670
  /* @__PURE__ */ jsx17(
4642
4671
  Dropdown_default,
4643
4672
  {
@@ -4772,9 +4801,9 @@ InputFieldComponent.dateTime = forwardRef11(function DateTime({ minDate, maxDate
4772
4801
  overflow: "hidden",
4773
4802
  userSelect: "none",
4774
4803
  ...insideInputFieldComponentProps,
4775
- children: /* @__PURE__ */ jsxs13(Div_default.row, { gap: theme2.styles.space, children: [
4804
+ children: /* @__PURE__ */ jsxs14(Div_default.row, { gap: theme2.styles.space, children: [
4776
4805
  /* @__PURE__ */ jsx17(Calendar_default, { value: internalValue, minDate, maxDate, onChange }),
4777
- /* @__PURE__ */ jsxs13(
4806
+ /* @__PURE__ */ jsxs14(
4778
4807
  Div_default.row,
4779
4808
  {
4780
4809
  height: 276,
@@ -4783,7 +4812,7 @@ InputFieldComponent.dateTime = forwardRef11(function DateTime({ minDate, maxDate
4783
4812
  paddingBottom: theme2.styles.space / 2,
4784
4813
  paddingRight: theme2.styles.space / 2,
4785
4814
  children: [
4786
- /* @__PURE__ */ jsxs13(Div_default, { height: "100%", children: [
4815
+ /* @__PURE__ */ jsxs14(Div_default, { height: "100%", children: [
4787
4816
  /* @__PURE__ */ jsx17(Text_default, { fontSize: 14, fontWeight: 700, textAlign: "center", marginBottom: theme2.styles.gap / 2, children: "H" }),
4788
4817
  /* @__PURE__ */ jsx17(
4789
4818
  Div_default,
@@ -4817,7 +4846,7 @@ InputFieldComponent.dateTime = forwardRef11(function DateTime({ minDate, maxDate
4817
4846
  }
4818
4847
  )
4819
4848
  ] }),
4820
- /* @__PURE__ */ jsxs13(Div_default, { height: "100%", children: [
4849
+ /* @__PURE__ */ jsxs14(Div_default, { height: "100%", children: [
4821
4850
  /* @__PURE__ */ jsx17(Text_default, { fontSize: 14, fontWeight: 700, textAlign: "center", marginBottom: theme2.styles.gap / 2, children: "M" }),
4822
4851
  /* @__PURE__ */ jsx17(
4823
4852
  Div_default,
@@ -4914,7 +4943,7 @@ InputFieldComponent.time = forwardRef11(function Time({ ...props }, ref) {
4914
4943
  overflowY: "auto",
4915
4944
  userSelect: "none",
4916
4945
  ...insideInputFieldComponentProps,
4917
- children: /* @__PURE__ */ jsxs13(Div_default.row, { height: "100%", children: [
4946
+ children: /* @__PURE__ */ jsxs14(Div_default.row, { height: "100%", children: [
4918
4947
  /* @__PURE__ */ jsx17(
4919
4948
  Div_default,
4920
4949
  {
@@ -5041,7 +5070,7 @@ var InputField_default = InputField2;
5041
5070
  import { forwardRef as forwardRef12, useCallback as useCallback11, useId as useId3, useState as useState8 } from "react";
5042
5071
  import { useBooleanState as useBooleanState6, useTheme as useTheme20 } from "react-better-core";
5043
5072
  import styled11 from "styled-components";
5044
- import { jsx as jsx18, jsxs as jsxs14 } from "react/jsx-runtime";
5073
+ import { jsx as jsx18, jsxs as jsxs15 } from "react/jsx-runtime";
5045
5074
  var componentSize = 26;
5046
5075
  var switchComponentBallGap = 3;
5047
5076
  var switchComponentMouseDownDifference = 4;
@@ -5170,10 +5199,10 @@ var ToggleInputComponent = forwardRef12(function ToggleInput({
5170
5199
  onChange?.(newIsChecked, value);
5171
5200
  }, [checked, controlledChecked, onChange, value]);
5172
5201
  const readyId = id ?? internalId;
5173
- return /* @__PURE__ */ jsxs14(Div_default.column, { gap: theme2.styles.gap, ...excludeStyle, children: [
5202
+ return /* @__PURE__ */ jsxs15(Div_default.column, { gap: theme2.styles.gap, ...excludeStyle, children: [
5174
5203
  label && /* @__PURE__ */ jsx18(Label_default, { text: label, color: labelColor, required, isError: !!errorText, htmlFor: readyId }),
5175
- /* @__PURE__ */ jsxs14(Div_default.row, { alignItems: "center", gap: theme2.styles.gap, children: [
5176
- /* @__PURE__ */ jsxs14(Div_default.row, { position: "relative", alignItems: "center", children: [
5204
+ /* @__PURE__ */ jsxs15(Div_default.row, { alignItems: "center", gap: theme2.styles.gap, children: [
5205
+ /* @__PURE__ */ jsxs15(Div_default.row, { position: "relative", alignItems: "center", children: [
5177
5206
  /* @__PURE__ */ jsx18(
5178
5207
  InputElement2,
5179
5208
  {
@@ -5219,15 +5248,15 @@ var ToggleInputComponent = forwardRef12(function ToggleInput({
5219
5248
  }
5220
5249
  ) : void 0
5221
5250
  ] }),
5222
- text ? /* @__PURE__ */ jsxs14(Text_default, { color, userSelect: "none", cursor: "pointer", onClick: onClickText, children: [
5251
+ text ? /* @__PURE__ */ jsxs15(Text_default, { color, userSelect: "none", cursor: "pointer", onClick: onClickText, children: [
5223
5252
  text,
5224
- required && !label && /* @__PURE__ */ jsxs14(Text_default, { as: "span", fontSize: 16, color: theme2.colors.error, children: [
5253
+ required && !label && /* @__PURE__ */ jsxs15(Text_default, { as: "span", fontSize: 16, color: theme2.colors.error, children: [
5225
5254
  " ",
5226
5255
  "*"
5227
5256
  ] })
5228
- ] }) : textAdvanced ? /* @__PURE__ */ jsxs14(Div_default.row, { userSelect: "none", cursor: "pointer", onClick: onClickText, children: [
5257
+ ] }) : textAdvanced ? /* @__PURE__ */ jsxs15(Div_default.row, { userSelect: "none", cursor: "pointer", onClick: onClickText, children: [
5229
5258
  textAdvanced,
5230
- required && !label && /* @__PURE__ */ jsxs14(Text_default, { as: "span", fontSize: 16, color: theme2.colors.error, marginLeft: 4, children: [
5259
+ required && !label && /* @__PURE__ */ jsxs15(Text_default, { as: "span", fontSize: 16, color: theme2.colors.error, marginLeft: 4, children: [
5231
5260
  " ",
5232
5261
  "*"
5233
5262
  ] })
@@ -5280,7 +5309,7 @@ var ToggleInput_default = {
5280
5309
  onChange?.(newIsChecked, value);
5281
5310
  }, [disabled, checked, onChange, controlledChecked, value]);
5282
5311
  const readyId = id ?? internalId;
5283
- return /* @__PURE__ */ jsxs14(Div_default.column, { width: "fit-content", gap: theme2.styles.gap, ...excludeStyle, children: [
5312
+ return /* @__PURE__ */ jsxs15(Div_default.column, { width: "fit-content", gap: theme2.styles.gap, ...excludeStyle, children: [
5284
5313
  label && /* @__PURE__ */ jsx18(Label_default, { text: label, color: labelColor, required, isError: !!errorText, htmlFor: readyId }),
5285
5314
  /* @__PURE__ */ jsx18(
5286
5315
  Div_default.row,
@@ -5333,7 +5362,7 @@ var ToggleInput_default = {
5333
5362
  // src/components/Form.tsx
5334
5363
  import { Children, forwardRef as forwardRef13, Fragment as Fragment5, memo as memo19, useMemo as useMemo7 } from "react";
5335
5364
  import { useTheme as useTheme21 } from "react-better-core";
5336
- import { jsx as jsx19, jsxs as jsxs15 } from "react/jsx-runtime";
5365
+ import { jsx as jsx19, jsxs as jsxs16 } from "react/jsx-runtime";
5337
5366
  var FormComponent = forwardRef13(function Form({
5338
5367
  form,
5339
5368
  name,
@@ -5366,12 +5395,12 @@ var FormComponent = forwardRef13(function Form({
5366
5395
  }, [form]);
5367
5396
  const SubmitButtonTag = isDestructive ? Button_default.destructive : Button_default;
5368
5397
  const submitButtonIsDisabledFinal = submitButtonIsDisabled || submitButtonIsDisabledInternal;
5369
- return /* @__PURE__ */ jsx19(Div_default, { width: "100%", ...props, children: /* @__PURE__ */ jsxs15("form", { name, onSubmit: onSubmit ?? form?.onSubmit, ref, children: [
5370
- 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__ */ jsxs15(Fragment5, { children: [
5398
+ return /* @__PURE__ */ jsx19(Div_default, { width: "100%", ...props, children: /* @__PURE__ */ jsxs16("form", { name, onSubmit: onSubmit ?? form?.onSubmit, ref, children: [
5399
+ 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: [
5371
5400
  child,
5372
5401
  index < Children.toArray(children).length - 1 && /* @__PURE__ */ jsx19(Divider_default.horizontal, {})
5373
5402
  ] }, index)) : children }) : children,
5374
- submitButtonText && /* @__PURE__ */ jsxs15(
5403
+ submitButtonText && /* @__PURE__ */ jsxs16(
5375
5404
  Div_default.row,
5376
5405
  {
5377
5406
  alignItems: "center",
@@ -5413,13 +5442,13 @@ var Form_default = Form2;
5413
5442
  // src/components/FormRow.tsx
5414
5443
  import { forwardRef as forwardRef14, memo as memo20 } from "react";
5415
5444
  import { useTheme as useTheme22 } from "react-better-core";
5416
- import { jsx as jsx20, jsxs as jsxs16 } from "react/jsx-runtime";
5445
+ import { jsx as jsx20, jsxs as jsxs17 } from "react/jsx-runtime";
5417
5446
  var FormRowComponent = forwardRef14(function FormRow({ oneItemOnly, noBreakingPoint, asColumn, gap, children, ...props }, ref) {
5418
5447
  const theme2 = useTheme22();
5419
5448
  const mediaQuery = useMediaQuery();
5420
5449
  const breakingPoint = asColumn ?? (!noBreakingPoint ? mediaQuery.size900 : false);
5421
5450
  const readyGap = breakingPoint || noBreakingPoint && mediaQuery.size900 ? theme2.styles.gap : theme2.styles.space * 2;
5422
- return /* @__PURE__ */ jsxs16(Div_default.row, { alignItems: "center", gap: gap ?? readyGap, invertFlexDirection: breakingPoint, ...props, ref, children: [
5451
+ return /* @__PURE__ */ jsxs17(Div_default.row, { alignItems: "center", gap: gap ?? readyGap, invertFlexDirection: breakingPoint, ...props, ref, children: [
5423
5452
  children,
5424
5453
  oneItemOnly && /* @__PURE__ */ jsx20(Div_default, { width: "100%" })
5425
5454
  ] });
@@ -5445,13 +5474,13 @@ FormRowComponent.withTitle = forwardRef14(function WithTitle({
5445
5474
  const theme2 = useTheme22();
5446
5475
  const mediaQuery = useMediaQuery();
5447
5476
  const titleGap = theme2.styles.space;
5448
- return /* @__PURE__ */ jsxs16(FormRowComponent, { ...props, ref, children: [
5449
- /* @__PURE__ */ jsxs16(Div_default.row, { width: "100%", alignItems: "center", gap: titleGap, children: [
5477
+ return /* @__PURE__ */ jsxs17(FormRowComponent, { ...props, ref, children: [
5478
+ /* @__PURE__ */ jsxs17(Div_default.row, { width: "100%", alignItems: "center", gap: titleGap, children: [
5450
5479
  icon && /* @__PURE__ */ jsx20(Icon_default, { name: icon }),
5451
- /* @__PURE__ */ jsxs16(Div_default.column, { flex: 1, gap: theme2.styles.gap / 2, children: [
5452
- /* @__PURE__ */ jsxs16(Text_default, { as: titleAs, fontSize: titleFontSize, children: [
5480
+ /* @__PURE__ */ jsxs17(Div_default.column, { flex: 1, gap: theme2.styles.gap / 2, children: [
5481
+ /* @__PURE__ */ jsxs17(Text_default, { as: titleAs, fontSize: titleFontSize, children: [
5453
5482
  title,
5454
- required && /* @__PURE__ */ jsxs16(Text_default, { as: "span", fontSize: 16, color: theme2.colors.error, children: [
5483
+ required && /* @__PURE__ */ jsxs17(Text_default, { as: "span", fontSize: 16, color: theme2.colors.error, children: [
5455
5484
  " ",
5456
5485
  "*"
5457
5486
  ] })
@@ -5460,7 +5489,7 @@ FormRowComponent.withTitle = forwardRef14(function WithTitle({
5460
5489
  ] }),
5461
5490
  isLoading && /* @__PURE__ */ jsx20(Div_default, { width: 26 - titleGap })
5462
5491
  ] }),
5463
- /* @__PURE__ */ jsxs16(
5492
+ /* @__PURE__ */ jsxs17(
5464
5493
  Div_default.row,
5465
5494
  {
5466
5495
  position: "relative",
@@ -5482,7 +5511,7 @@ FormRowComponent.withTitle = forwardRef14(function WithTitle({
5482
5511
  }
5483
5512
  ),
5484
5513
  children,
5485
- withActions && /* @__PURE__ */ jsxs16(Div_default.row, { alignItems: "center", gap: theme2.styles.gap, children: [
5514
+ withActions && /* @__PURE__ */ jsxs17(Div_default.row, { alignItems: "center", gap: theme2.styles.gap, children: [
5486
5515
  onClickReset && /* @__PURE__ */ jsx20(Button_default.icon, { icon: "XMark", loaderName: resetButtonLoaderName, onClick: onClickReset }),
5487
5516
  /* @__PURE__ */ jsx20(Button_default.icon, { icon: "check", loaderName: saveButtonLoaderName, onClick: onClickSave })
5488
5517
  ] })
@@ -5498,7 +5527,7 @@ var FormRow_default = FormRow2;
5498
5527
  // src/components/ColorThemeSwitch.tsx
5499
5528
  import { memo as memo21, useCallback as useCallback12, useEffect as useEffect10, useState as useState9 } from "react";
5500
5529
  import { useTheme as useTheme23 } from "react-better-core";
5501
- import { jsx as jsx21, jsxs as jsxs17 } from "react/jsx-runtime";
5530
+ import { jsx as jsx21, jsxs as jsxs18 } from "react/jsx-runtime";
5502
5531
  var ColorThemeSwitchComponent = function ColorThemeSwitch({
5503
5532
  withMoon,
5504
5533
  className,
@@ -5539,7 +5568,7 @@ var ColorThemeSwitchComponent = function ColorThemeSwitch({
5539
5568
  };
5540
5569
  ColorThemeSwitchComponent.withText = function WithText({ withMoon, className, ...props }) {
5541
5570
  const theme2 = useTheme23();
5542
- return /* @__PURE__ */ jsxs17(Div_default.row, { width: "fit-content", alignItems: "center", gap: theme2.styles.gap, userSelect: "none", ...props, children: [
5571
+ return /* @__PURE__ */ jsxs18(Div_default.row, { width: "fit-content", alignItems: "center", gap: theme2.styles.gap, userSelect: "none", ...props, children: [
5543
5572
  /* @__PURE__ */ jsx21(Text_default, { children: "Light" }),
5544
5573
  /* @__PURE__ */ jsx21(ColorThemeSwitchComponent, { withMoon, className }),
5545
5574
  /* @__PURE__ */ jsx21(Text_default, { children: "Dark" })
@@ -5567,7 +5596,7 @@ import styled12, { css as css2 } from "styled-components";
5567
5596
  // src/components/Pagination.tsx
5568
5597
  import { memo as memo22, useCallback as useCallback13, useEffect as useEffect11, useMemo as useMemo8, useState as useState10 } from "react";
5569
5598
  import { useTheme as useTheme24 } from "react-better-core";
5570
- import { jsx as jsx22, jsxs as jsxs18 } from "react/jsx-runtime";
5599
+ import { jsx as jsx22, jsxs as jsxs19 } from "react/jsx-runtime";
5571
5600
  var PaginationComponent = function Pagination({
5572
5601
  currentPage = 1,
5573
5602
  itemsLength = 0,
@@ -5614,7 +5643,7 @@ var PaginationComponent = function Pagination({
5614
5643
  setCurrentPage(currentPage);
5615
5644
  }, [currentPage]);
5616
5645
  const mobileFooterBreakingPoint = mediaQuery.size700 && pageCountInternal > maximumVisiblePages2 / 1.4;
5617
- return /* @__PURE__ */ jsxs18(Div_default.row, { alignItems: "center", justifyContent: "center", gap: theme2.styles.gap * 2, children: [
5646
+ return /* @__PURE__ */ jsxs19(Div_default.row, { alignItems: "center", justifyContent: "center", gap: theme2.styles.gap * 2, children: [
5618
5647
  pageCountInternal > maximumVisiblePages2 && /* @__PURE__ */ jsx22(
5619
5648
  Button_default.icon,
5620
5649
  {
@@ -5679,7 +5708,7 @@ var Pagination2 = memo22(PaginationComponent);
5679
5708
  var Pagination_default = Pagination2;
5680
5709
 
5681
5710
  // src/components/Table.tsx
5682
- import { Fragment as Fragment7, jsx as jsx23, jsxs as jsxs19 } from "react/jsx-runtime";
5711
+ import { Fragment as Fragment7, jsx as jsx23, jsxs as jsxs20 } from "react/jsx-runtime";
5683
5712
  var defaultImageWidth = 160;
5684
5713
  var maximumVisiblePages = 11;
5685
5714
  var TableStyledComponent = styled12.table.withConfig({
@@ -6205,7 +6234,7 @@ var TableComponent = forwardRef15(function Table({
6205
6234
  );
6206
6235
  const withFooter = pageSize !== void 0 && pageCountInternal > 1;
6207
6236
  const mobileFooterBreakingPoint = mediaQuery.size700 && pageCountInternal > maximumVisiblePages / 1.4;
6208
- return /* @__PURE__ */ jsxs19(Fragment7, { children: [
6237
+ return /* @__PURE__ */ jsxs20(Fragment7, { children: [
6209
6238
  /* @__PURE__ */ jsx23(
6210
6239
  Div_default,
6211
6240
  {
@@ -6214,7 +6243,7 @@ var TableComponent = forwardRef15(function Table({
6214
6243
  overflow: !containsOverflowComponents ? "auto" : void 0,
6215
6244
  ...props,
6216
6245
  ref: wrapperComponentRef,
6217
- children: /* @__PURE__ */ jsxs19(
6246
+ children: /* @__PURE__ */ jsxs20(
6218
6247
  TableStyledComponent,
6219
6248
  {
6220
6249
  isStriped,
@@ -6232,7 +6261,7 @@ var TableComponent = forwardRef15(function Table({
6232
6261
  minWidth: column.minWidth,
6233
6262
  maxWidth: column.maxWidth,
6234
6263
  textAlign: column.align,
6235
- children: /* @__PURE__ */ jsxs19(
6264
+ children: /* @__PURE__ */ jsxs20(
6236
6265
  Div_default.row,
6237
6266
  {
6238
6267
  width: "100%",
@@ -6265,7 +6294,7 @@ var TableComponent = forwardRef15(function Table({
6265
6294
  )) }) }),
6266
6295
  /* @__PURE__ */ jsx23("tbody", { children: isLoading ? /* @__PURE__ */ jsx23("tr", { className: "withoutHover", children: /* @__PURE__ */ jsx23("td", { className: "noData", colSpan: readyColumns.length, children: /* @__PURE__ */ jsx23(Loader_default.box, {}) }) }) : dataAfterPagination.length > 0 ? dataAfterPagination.map((item, rowIndex) => {
6267
6296
  const realRowIndex = rowIndex + (pageSize ? (currentPage - 1) * pageSize : 0);
6268
- return /* @__PURE__ */ jsxs19(Fragment6, { children: [
6297
+ return /* @__PURE__ */ jsxs20(Fragment6, { children: [
6269
6298
  /* @__PURE__ */ jsx23(
6270
6299
  "tr",
6271
6300
  {
@@ -6288,7 +6317,7 @@ var TableComponent = forwardRef15(function Table({
6288
6317
  expandedRows[realRowIndex] && /* @__PURE__ */ jsx23("tr", { className: "withoutHover isExpandRow", children: /* @__PURE__ */ jsx23("td", { colSpan: readyColumns.length, children: renderExpandedRow(item, realRowIndex) }) })
6289
6318
  ] }, JSON.stringify(item) + realRowIndex);
6290
6319
  }) : /* @__PURE__ */ jsx23("tr", { className: "withoutHover", children: /* @__PURE__ */ jsx23("td", { className: "noData", colSpan: readyColumns.length, children: /* @__PURE__ */ jsx23(Text_default.unknown, { children: noDataItemsMessage }) }) }) }),
6291
- withFooter && /* @__PURE__ */ jsx23("tfoot", { children: /* @__PURE__ */ jsx23("tr", { className: "isFooter", children: /* @__PURE__ */ jsx23("td", { colSpan: readyColumns.length, children: /* @__PURE__ */ jsxs19(
6320
+ withFooter && /* @__PURE__ */ jsx23("tfoot", { children: /* @__PURE__ */ jsx23("tr", { className: "isFooter", children: /* @__PURE__ */ jsx23("td", { colSpan: readyColumns.length, children: /* @__PURE__ */ jsxs20(
6292
6321
  Div_default.column,
6293
6322
  {
6294
6323
  position: "relative",
@@ -6297,7 +6326,7 @@ var TableComponent = forwardRef15(function Table({
6297
6326
  flexReverse: true,
6298
6327
  gap: theme2.styles.gap / 2,
6299
6328
  children: [
6300
- /* @__PURE__ */ jsxs19(
6329
+ /* @__PURE__ */ jsxs20(
6301
6330
  Text_default,
6302
6331
  {
6303
6332
  position: mobileFooterBreakingPoint ? "relative" : "absolute",
@@ -6345,12 +6374,12 @@ var TableComponent = forwardRef15(function Table({
6345
6374
  submitButtonText: "Filter",
6346
6375
  cancelButtonText: "Clear",
6347
6376
  onClickCancel: openedFilterData ? onClickCancelFormFilter : void 0,
6348
- children: /* @__PURE__ */ jsxs19(FormRow_default, { children: [
6377
+ children: /* @__PURE__ */ jsxs20(FormRow_default, { children: [
6349
6378
  /* @__PURE__ */ jsx23(InputField_default, { type: "number", label: "Min", ...filterForm.getInputFieldProps("min") }),
6350
6379
  /* @__PURE__ */ jsx23(InputField_default, { type: "number", label: "Max", ...filterForm.getInputFieldProps("max") })
6351
6380
  ] })
6352
6381
  }
6353
- ) : openedFilterColumn.filter === "date" || openedFilterColumn.filter === "date-time" ? /* @__PURE__ */ jsxs19(
6382
+ ) : openedFilterColumn.filter === "date" || openedFilterColumn.filter === "date-time" ? /* @__PURE__ */ jsxs20(
6354
6383
  Form_default,
6355
6384
  {
6356
6385
  form: filterForm,
@@ -6359,14 +6388,14 @@ var TableComponent = forwardRef15(function Table({
6359
6388
  cancelButtonText: "Clear",
6360
6389
  onClickCancel: openedFilterData ? onClickCancelFormFilter : void 0,
6361
6390
  children: [
6362
- /* @__PURE__ */ jsx23(FormRow_default, { children: openedFilterColumn.filter === "date" ? /* @__PURE__ */ jsxs19(Fragment7, { children: [
6391
+ /* @__PURE__ */ jsx23(FormRow_default, { children: openedFilterColumn.filter === "date" ? /* @__PURE__ */ jsxs20(Fragment7, { children: [
6363
6392
  /* @__PURE__ */ jsx23(InputField_default.date, { label: "Min", ...filterForm.getInputFieldProps("min") }),
6364
6393
  /* @__PURE__ */ jsx23(InputField_default.date, { label: "Max", ...filterForm.getInputFieldProps("max") })
6365
- ] }) : /* @__PURE__ */ jsxs19(Fragment7, { children: [
6394
+ ] }) : /* @__PURE__ */ jsxs20(Fragment7, { children: [
6366
6395
  /* @__PURE__ */ jsx23(InputField_default.dateTime, { label: "Min", ...filterForm.getInputFieldProps("min") }),
6367
6396
  /* @__PURE__ */ jsx23(InputField_default.dateTime, { label: "Max", ...filterForm.getInputFieldProps("max") })
6368
6397
  ] }) }),
6369
- openedFilterColumn.presets && /* @__PURE__ */ jsxs19(Div_default.column, { gap: theme2.styles.gap / 2, children: [
6398
+ openedFilterColumn.presets && /* @__PURE__ */ jsxs20(Div_default.column, { gap: theme2.styles.gap / 2, children: [
6370
6399
  /* @__PURE__ */ jsx23(Label_default, { text: "Presets" }),
6371
6400
  /* @__PURE__ */ jsx23(Div_default.row, { alignItems: "center", flexWrap: "wrap", gap: theme2.styles.gap, children: openedFilterColumn.presets.map((preset) => /* @__PURE__ */ jsx23(
6372
6401
  Button_default.secondary,
@@ -6381,13 +6410,13 @@ var TableComponent = forwardRef15(function Table({
6381
6410
  ] })
6382
6411
  ]
6383
6412
  }
6384
- ) : openedFilterColumn.filter === "list" ? /* @__PURE__ */ jsxs19(
6413
+ ) : openedFilterColumn.filter === "list" ? /* @__PURE__ */ jsxs20(
6385
6414
  Form_default,
6386
6415
  {
6387
6416
  gap: theme2.styles.space,
6388
6417
  submitButtonText: "Filter",
6389
6418
  cancelButtonText: "Clear",
6390
- renderActionButtons: /* @__PURE__ */ jsxs19(Div_default.row, { marginRight: "auto", alignItems: "center", gap: theme2.styles.gap, children: [
6419
+ renderActionButtons: /* @__PURE__ */ jsxs20(Div_default.row, { marginRight: "auto", alignItems: "center", gap: theme2.styles.gap, children: [
6391
6420
  /* @__PURE__ */ jsx23(
6392
6421
  Button_default.secondary,
6393
6422
  {
@@ -6418,7 +6447,7 @@ var TableComponent = forwardRef15(function Table({
6418
6447
  ...filterForm.getInputFieldProps("search")
6419
6448
  }
6420
6449
  ) }),
6421
- /* @__PURE__ */ jsxs19(Div_default.column, { gap: theme2.styles.gap / 2, children: [
6450
+ /* @__PURE__ */ jsxs20(Div_default.column, { gap: theme2.styles.gap / 2, children: [
6422
6451
  /* @__PURE__ */ jsx23(Label_default, { text: "Possible values" }),
6423
6452
  /* @__PURE__ */ jsx23(Div_default.row, { flexWrap: "wrap", gap: theme2.styles.gap, children: possibleFilterListValues.length > 0 ? possibleFilterListValues.map((value) => {
6424
6453
  const isActive = filterListSelectedItems?.includes(value.value);
@@ -6428,9 +6457,9 @@ var TableComponent = forwardRef15(function Table({
6428
6457
  isActive,
6429
6458
  value: value.value,
6430
6459
  onClickWithValue: onClickFilterListItem,
6431
- children: /* @__PURE__ */ jsxs19(Div_default.row, { alignItems: "center", gap: theme2.styles.gap / 2, children: [
6460
+ children: /* @__PURE__ */ jsxs20(Div_default.row, { alignItems: "center", gap: theme2.styles.gap / 2, children: [
6432
6461
  /* @__PURE__ */ jsx23(Text_default, { children: value.label || value.value }),
6433
- openedFilterColumn.withTotalNumber && /* @__PURE__ */ jsxs19(
6462
+ openedFilterColumn.withTotalNumber && /* @__PURE__ */ jsxs20(
6434
6463
  Text_default,
6435
6464
  {
6436
6465
  fontSize: 14,
@@ -6463,7 +6492,7 @@ var Table_default = Table2;
6463
6492
  import { memo as memo24, useCallback as useCallback15, useRef as useRef7, useState as useState12, useEffect as useEffect13, forwardRef as forwardRef16, useImperativeHandle as useImperativeHandle3, useMemo as useMemo10 } from "react";
6464
6493
  import { useTheme as useTheme26 } from "react-better-core";
6465
6494
  import styled13, { css as css3 } from "styled-components";
6466
- import { jsx as jsx24, jsxs as jsxs20 } from "react/jsx-runtime";
6495
+ import { jsx as jsx24, jsxs as jsxs21 } from "react/jsx-runtime";
6467
6496
  var tooltipContainerStyle = (props) => ({
6468
6497
  top: css3`
6469
6498
  bottom: calc(100% + ${props.gap}px + ${props.arrowSize}px);
@@ -6706,7 +6735,7 @@ var TooltipComponent = forwardRef16(function Tooltip({
6706
6735
  },
6707
6736
  [isOpen, openTooltip, closeTooltip]
6708
6737
  );
6709
- return /* @__PURE__ */ jsxs20(
6738
+ return /* @__PURE__ */ jsxs21(
6710
6739
  Div_default,
6711
6740
  {
6712
6741
  position: "relative",
@@ -6739,7 +6768,7 @@ var TooltipComponent = forwardRef16(function Tooltip({
6739
6768
  isOpen,
6740
6769
  role: "tooltip",
6741
6770
  ref: tooltipContainerRef,
6742
- children: (isOpen || isOpenLate) && /* @__PURE__ */ jsxs20(Div_default, { position: "relative", ref: contentRef, children: [
6771
+ children: (isOpen || isOpenLate) && /* @__PURE__ */ jsxs21(Div_default, { position: "relative", ref: contentRef, children: [
6743
6772
  /* @__PURE__ */ jsx24(
6744
6773
  Div_default.box,
6745
6774
  {
@@ -6800,7 +6829,7 @@ TooltipComponent.item = forwardRef16(function Item({
6800
6829
  onClickWithValue
6801
6830
  }, ref) {
6802
6831
  const theme2 = useTheme26();
6803
- return /* @__PURE__ */ jsxs20(
6832
+ return /* @__PURE__ */ jsxs21(
6804
6833
  Div_default.row,
6805
6834
  {
6806
6835
  alignItems: "center",
@@ -6819,7 +6848,7 @@ TooltipComponent.item = forwardRef16(function Item({
6819
6848
  ref,
6820
6849
  children: [
6821
6850
  icon && /* @__PURE__ */ jsx24(Icon_default, { name: icon, color: iconColor ?? (!isActive ? theme2.colors.textSecondary : void 0) }),
6822
- /* @__PURE__ */ jsxs20(Div_default.column, { flex: 1, gap: theme2.styles.gap / 2, children: [
6851
+ /* @__PURE__ */ jsxs21(Div_default.column, { flex: 1, gap: theme2.styles.gap / 2, children: [
6823
6852
  /* @__PURE__ */ jsx24(Text_default, { fontWeight: isActive ? 700 : void 0, color: textColor ?? theme2.colors.textPrimary, children: text }),
6824
6853
  description && /* @__PURE__ */ jsx24(Text_default, { fontSize: 14, color: theme2.colors.textSecondary, children: description })
6825
6854
  ] })
@@ -6856,7 +6885,7 @@ var Tooltip_default = Tooltip2;
6856
6885
  // src/components/Tabs.tsx
6857
6886
  import { forwardRef as forwardRef17, memo as memo25, useCallback as useCallback16, useEffect as useEffect14, useImperativeHandle as useImperativeHandle4, useMemo as useMemo11, useRef as useRef8, useState as useState13 } from "react";
6858
6887
  import { useBetterCoreContext as useBetterCoreContext9, useTheme as useTheme27 } from "react-better-core";
6859
- import { jsx as jsx25, jsxs as jsxs21 } from "react/jsx-runtime";
6888
+ import { jsx as jsx25, jsxs as jsxs22 } from "react/jsx-runtime";
6860
6889
  var tabBottomLineWidth = 2;
6861
6890
  var tabDotSize = 6;
6862
6891
  var defaultTabName = "tab";
@@ -6956,11 +6985,11 @@ var TabsComponent = forwardRef17(function Tabs({ tabs, name, accentColor, style
6956
6985
  },
6957
6986
  [selectedTab, onClickTab]
6958
6987
  );
6959
- return /* @__PURE__ */ jsxs21(Div_default.column, { width: "100%", gap: theme2.styles.space, ...props, children: [
6960
- /* @__PURE__ */ jsxs21(Div_default, { position: "relative", className: "react-better-html-no-scrollbar", overflowY: "auto", children: [
6988
+ return /* @__PURE__ */ jsxs22(Div_default.column, { width: "100%", gap: theme2.styles.space, ...props, children: [
6989
+ /* @__PURE__ */ jsxs22(Div_default, { position: "relative", className: "react-better-html-no-scrollbar", overflowY: "auto", children: [
6961
6990
  /* @__PURE__ */ jsx25(Div_default.row, { position: "relative", width: "fit-content", gap: tabsGap, userSelect: "none", children: tabs.map((tab) => {
6962
6991
  const selected = tab === selectedTab;
6963
- return /* @__PURE__ */ jsxs21(
6992
+ return /* @__PURE__ */ jsxs22(
6964
6993
  Div_default,
6965
6994
  {
6966
6995
  position: "relative",
@@ -7049,7 +7078,7 @@ var Tabs_default = Tabs2;
7049
7078
  // src/components/Foldable.tsx
7050
7079
  import { forwardRef as forwardRef18, memo as memo26, useCallback as useCallback17, useEffect as useEffect15, useImperativeHandle as useImperativeHandle5, useRef as useRef9, useState as useState14 } from "react";
7051
7080
  import { useBooleanState as useBooleanState7, useTheme as useTheme28 } from "react-better-core";
7052
- import { jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
7081
+ import { jsx as jsx26, jsxs as jsxs23 } from "react/jsx-runtime";
7053
7082
  var animationDurationClose = 0.15;
7054
7083
  var animationDurationOpen = animationDurationClose * 2;
7055
7084
  var FoldableComponent = forwardRef18(function Foldable({
@@ -7119,8 +7148,8 @@ var FoldableComponent = forwardRef18(function Foldable({
7119
7148
  isOpen
7120
7149
  };
7121
7150
  }, [open, close, toggleOpen, isOpen]);
7122
- return /* @__PURE__ */ jsxs22(Div_default.column, { width: "100%", ...props, children: [
7123
- renderHeader ? renderHeader(isOpen, toggleOpen) : /* @__PURE__ */ jsxs22(
7151
+ return /* @__PURE__ */ jsxs23(Div_default.column, { width: "100%", ...props, children: [
7152
+ renderHeader ? renderHeader(isOpen, toggleOpen) : /* @__PURE__ */ jsxs23(
7124
7153
  Div_default.row,
7125
7154
  {
7126
7155
  width: "100%",
@@ -7132,11 +7161,11 @@ var FoldableComponent = forwardRef18(function Foldable({
7132
7161
  onClick: toggleOpen,
7133
7162
  userSelect: "none",
7134
7163
  children: [
7135
- /* @__PURE__ */ jsxs22(Div_default.row, { flex: 1, alignItems: "center", gap: theme2.styles.space, children: [
7164
+ /* @__PURE__ */ jsxs23(Div_default.row, { flex: 1, alignItems: "center", gap: theme2.styles.space, children: [
7136
7165
  icon && /* @__PURE__ */ jsx26(Icon_default, { name: icon, size: 20, flexShrink: 0 }),
7137
7166
  image && /* @__PURE__ */ jsx26(Image_default.profileImage, { name: image, size: 24, flexShrink: 0 }),
7138
- /* @__PURE__ */ jsxs22(Div_default.column, { gap: theme2.styles.gap / 2, children: [
7139
- title && /* @__PURE__ */ jsxs22(Div_default.row, { alignItems: "center", gap: theme2.styles.space, children: [
7167
+ /* @__PURE__ */ jsxs23(Div_default.column, { gap: theme2.styles.gap / 2, children: [
7168
+ title && /* @__PURE__ */ jsxs23(Div_default.row, { alignItems: "center", gap: theme2.styles.space, children: [
7140
7169
  /* @__PURE__ */ jsx26(
7141
7170
  Text_default,
7142
7171
  {
@@ -7206,7 +7235,7 @@ import {
7206
7235
  useBooleanState as useBooleanState8,
7207
7236
  useTheme as useTheme29
7208
7237
  } from "react-better-core";
7209
- import { Fragment as Fragment8, jsx as jsx27, jsxs as jsxs23 } from "react/jsx-runtime";
7238
+ import { Fragment as Fragment8, jsx as jsx27, jsxs as jsxs24 } from "react/jsx-runtime";
7210
7239
  var tabDotSize2 = 6;
7211
7240
  var sideMenuContext = createContext2(void 0);
7212
7241
  var SideMenuContextProvider = sideMenuContext.Provider;
@@ -7261,7 +7290,7 @@ var MenuItemComponent = memo27(function MenuItemComponent2({ item, backgroundCol
7261
7290
  const content = /* @__PURE__ */ jsx27(
7262
7291
  Tooltip_default,
7263
7292
  {
7264
- content: /* @__PURE__ */ jsxs23(Div_default.row, { alignItems: "center", gap: theme2.styles.gap, children: [
7293
+ content: /* @__PURE__ */ jsxs24(Div_default.row, { alignItems: "center", gap: theme2.styles.gap, children: [
7265
7294
  /* @__PURE__ */ jsx27(Text_default, { whiteSpace: "nowrap", children: item.text }),
7266
7295
  item.children && /* @__PURE__ */ jsx27(Icon_default, { name: "chevronDown", color: theme2.colors.textSecondary, size: 14 })
7267
7296
  ] }),
@@ -7270,7 +7299,7 @@ var MenuItemComponent = memo27(function MenuItemComponent2({ item, backgroundCol
7270
7299
  childrenWrapperWidth: "100%",
7271
7300
  disabled: !isCollapsed,
7272
7301
  position: "right",
7273
- children: /* @__PURE__ */ jsxs23(
7302
+ children: /* @__PURE__ */ jsxs24(
7274
7303
  Div_default.row,
7275
7304
  {
7276
7305
  alignItems: "center",
@@ -7351,9 +7380,9 @@ var MenuItemComponent = memo27(function MenuItemComponent2({ item, backgroundCol
7351
7380
  setIsOpened.setFalse();
7352
7381
  }, [isCollapsed]);
7353
7382
  const LinkComponentTag = components.button?.tagReplacement?.linkComponent ?? "a";
7354
- return /* @__PURE__ */ jsxs23(Div_default, { width: "100%", children: [
7383
+ return /* @__PURE__ */ jsxs24(Div_default, { width: "100%", children: [
7355
7384
  item.href ? /* @__PURE__ */ jsx27(LinkComponentTag, { to: item.href, href: item.href, onClick: onClickElement, children: content }) : content,
7356
- item.children && /* @__PURE__ */ jsxs23(
7385
+ item.children && /* @__PURE__ */ jsxs24(
7357
7386
  Div_default.column,
7358
7387
  {
7359
7388
  position: "relative",
@@ -7373,7 +7402,7 @@ var MenuItemComponent = memo27(function MenuItemComponent2({ item, backgroundCol
7373
7402
  },
7374
7403
  child.text
7375
7404
  )),
7376
- /* @__PURE__ */ jsxs23(
7405
+ /* @__PURE__ */ jsxs24(
7377
7406
  Div_default,
7378
7407
  {
7379
7408
  position: "absolute",
@@ -7456,7 +7485,7 @@ var SideMenuComponent = function SideMenu({
7456
7485
  const sideMenuCollapsedWidth = theme2.styles.space + theme2.styles.space * 2 + 16 + theme2.styles.space;
7457
7486
  const readyBackgroundColor = backgroundColor ?? theme2.colors.backgroundContent;
7458
7487
  const logoSize = sideMenuCollapsedWidth - theme2.styles.space * 2;
7459
- return /* @__PURE__ */ jsx27(SideMenuContextProvider, { value: contextValue, children: /* @__PURE__ */ jsxs23(
7488
+ return /* @__PURE__ */ jsx27(SideMenuContextProvider, { value: contextValue, children: /* @__PURE__ */ jsxs24(
7460
7489
  Div_default.column,
7461
7490
  {
7462
7491
  position: "fixed",
@@ -7472,9 +7501,9 @@ var SideMenuComponent = function SideMenu({
7472
7501
  userSelect: "none",
7473
7502
  zIndex: 10,
7474
7503
  children: [
7475
- /* @__PURE__ */ jsxs23(Div_default.column, { width: "100%", height: "100%", gap: theme2.styles.space, children: [
7476
- (logoAssetName || logoUrl || withCloseButton && mediaQuery.size1000) && /* @__PURE__ */ jsxs23(Div_default.row, { alignItems: "center", paddingInline: theme2.styles.space, children: [
7477
- (logoAssetName || logoUrl) && /* @__PURE__ */ jsx27(LinkComponentTag, { to: "/", href: "/", onClick: onClickXButton, children: /* @__PURE__ */ jsxs23(
7504
+ /* @__PURE__ */ jsxs24(Div_default.column, { width: "100%", height: "100%", gap: theme2.styles.space, children: [
7505
+ (logoAssetName || logoUrl || withCloseButton && mediaQuery.size1000) && /* @__PURE__ */ jsxs24(Div_default.row, { alignItems: "center", paddingInline: theme2.styles.space, children: [
7506
+ (logoAssetName || logoUrl) && /* @__PURE__ */ jsx27(LinkComponentTag, { to: "/", href: "/", onClick: onClickXButton, children: /* @__PURE__ */ jsxs24(
7478
7507
  Div_default.row,
7479
7508
  {
7480
7509
  alignItems: "center",
@@ -7510,7 +7539,7 @@ var SideMenuComponent = function SideMenu({
7510
7539
  ) }),
7511
7540
  withCloseButton && mediaQuery.size1000 && /* @__PURE__ */ jsx27(Button_default.icon, { icon: "XMark", marginLeft: "auto", onClick: onClickXButton })
7512
7541
  ] }),
7513
- !isLoading ? /* @__PURE__ */ jsxs23(Fragment8, { children: [
7542
+ !isLoading ? /* @__PURE__ */ jsxs24(Fragment8, { children: [
7514
7543
  /* @__PURE__ */ jsx27(
7515
7544
  Div_default.column,
7516
7545
  {
@@ -7629,7 +7658,7 @@ SideMenuComponent.pageHolder = function SideMenuPageHolder({ outsideComponent, .
7629
7658
  const { components, sideMenuIsCollapsed } = useBetterHtmlContextInternal();
7630
7659
  const sideMenuWidth = components.sideMenu?.width ?? defaultSideMenuWidth;
7631
7660
  const sideMenuCollapsedWidth = theme2.styles.space + theme2.styles.space * 2 + 16 + theme2.styles.space;
7632
- return /* @__PURE__ */ jsxs23(
7661
+ return /* @__PURE__ */ jsxs24(
7633
7662
  Div_default,
7634
7663
  {
7635
7664
  position: "relative",
@@ -7648,7 +7677,7 @@ SideMenuComponent.burgerButton = function BurgerButton() {
7648
7677
  const { sideMenuIsOpenMobile, setSideMenuIsOpenMobile } = useBetterHtmlContextInternal();
7649
7678
  const [isHovered, setIsHovered] = useBooleanState8();
7650
7679
  const width = 2;
7651
- return /* @__PURE__ */ jsxs23(
7680
+ return /* @__PURE__ */ jsxs24(
7652
7681
  Div_default,
7653
7682
  {
7654
7683
  position: "relative",