react-better-html 1.1.162 → 1.1.164

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
@@ -1,5 +1,5 @@
1
1
  // src/components/Div.tsx
2
- import { forwardRef as forwardRef4, memo as memo9, useCallback as useCallback5 } from "react";
2
+ import { forwardRef as forwardRef6, memo as memo11, useCallback as useCallback5 } from "react";
3
3
  import styled7 from "styled-components";
4
4
 
5
5
  // src/constants.ts
@@ -9,6 +9,7 @@ var isMobileDevice = /Mobi|Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Op
9
9
 
10
10
  // src/utils/hooks.ts
11
11
  import { useCallback as useCallback4, useEffect as useEffect5, useMemo as useMemo3, useRef as useRef2, useState as useState3 } from "react";
12
+ import { createSearchParams, useInRouterContext, useNavigate, useSearchParams } from "react-router-dom";
12
13
 
13
14
  // src/constants/css.ts
14
15
  var cssProps = {
@@ -1546,10 +1547,7 @@ var alertsPlugin = (options) => ({
1546
1547
  });
1547
1548
 
1548
1549
  // src/plugins/reactRouterDom.ts
1549
- import * as reactRouterDomLib from "react-router-dom";
1550
- var defaultReactRouterDomPluginOptions = {
1551
- reactRouterDomLib
1552
- };
1550
+ var defaultReactRouterDomPluginOptions = {};
1553
1551
  var reactRouterDomPlugin = (options) => ({
1554
1552
  name: "react-router-dom",
1555
1553
  initialize: () => {
@@ -3060,15 +3058,14 @@ function useUrlQuery() {
3060
3058
  "`useUrlQuery` hook requires the `react-router-dom` plugin to be added to the `plugins` prop in `<BetterHtmlProvider>`."
3061
3059
  );
3062
3060
  }
3063
- const reactRouterDomPluginConfig = reactRouterDomPlugin2.getConfig();
3064
- const isInRouterContext = reactRouterDomPluginConfig.reactRouterDomLib.useInRouterContext();
3061
+ const isInRouterContext = useInRouterContext();
3065
3062
  if (!isInRouterContext) {
3066
3063
  throw new Error(
3067
3064
  "`useUrlQuery` hook must be used inside a React Router context. Make sure your component is wrapped in a `<BrowserRouter>`, or another Router component."
3068
3065
  );
3069
3066
  }
3070
- const navigate = reactRouterDomPluginConfig.reactRouterDomLib.useNavigate();
3071
- const [searchParams] = reactRouterDomPluginConfig.reactRouterDomLib.useSearchParams();
3067
+ const navigate = useNavigate();
3068
+ const [searchParams] = useSearchParams();
3072
3069
  const setQuery = useCallback4(
3073
3070
  (query, keepHistory = true) => {
3074
3071
  const currentSearchParams = {};
@@ -3077,7 +3074,7 @@ function useUrlQuery() {
3077
3074
  });
3078
3075
  navigate(
3079
3076
  {
3080
- search: reactRouterDomPluginConfig.reactRouterDomLib.createSearchParams({
3077
+ search: createSearchParams({
3081
3078
  ...currentSearchParams,
3082
3079
  ...Object.fromEntries(Object.entries(query).map(([key, value]) => [key, value.toString()]))
3083
3080
  }).toString()
@@ -3111,8 +3108,117 @@ function useUrlQuery() {
3111
3108
  };
3112
3109
  }
3113
3110
 
3111
+ // src/components/Divider.tsx
3112
+ import { forwardRef as forwardRef4, memo as memo9 } from "react";
3113
+ import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
3114
+ var Divider_default = {
3115
+ vertical: memo9(
3116
+ forwardRef4(function Divider({ width = 1, backgroundColor, height, ...props }, ref) {
3117
+ const theme2 = useTheme();
3118
+ return /* @__PURE__ */ jsx9(
3119
+ Div_default,
3120
+ {
3121
+ width,
3122
+ height: height ?? "100%",
3123
+ flexShrink: 0,
3124
+ backgroundColor: backgroundColor ?? theme2.colors.border,
3125
+ ...props,
3126
+ ref
3127
+ }
3128
+ );
3129
+ })
3130
+ ),
3131
+ horizontal: memo9(
3132
+ forwardRef4(function Divider2({ width = 1, backgroundColor, text, textFontSize, textColor, ...props }, ref) {
3133
+ const theme2 = useTheme();
3134
+ return /* @__PURE__ */ jsxs5(Div_default.row, { width: "100%", alignItems: "center", gap: text ? theme2.styles.space : void 0, ...props, ref, children: [
3135
+ /* @__PURE__ */ jsx9(Div_default, { flex: 1, height: width, flexShrink: 0, backgroundColor: backgroundColor ?? theme2.colors.border }),
3136
+ text && /* @__PURE__ */ jsx9(Text_default, { fontSize: textFontSize, color: textColor ?? theme2.colors.textSecondary, children: text }),
3137
+ /* @__PURE__ */ jsx9(Div_default, { flex: 1, height: width, flexShrink: 0, backgroundColor: backgroundColor ?? theme2.colors.border })
3138
+ ] });
3139
+ })
3140
+ )
3141
+ };
3142
+
3143
+ // src/components/PageHeader.tsx
3144
+ import { forwardRef as forwardRef5, memo as memo10 } from "react";
3145
+ import { jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
3146
+ var PageHeaderComponent = forwardRef5(function PageHeader({
3147
+ imageUrl,
3148
+ imageSize = 60,
3149
+ title,
3150
+ titleAs,
3151
+ titleColor,
3152
+ titleRightElement,
3153
+ description,
3154
+ descriptionColor,
3155
+ textAlign,
3156
+ rightElement,
3157
+ lightMode,
3158
+ marginBottom
3159
+ }, ref) {
3160
+ const theme2 = useTheme();
3161
+ const { app } = useBetterHtmlContextInternal();
3162
+ const mediaQuery = useMediaQuery();
3163
+ return /* @__PURE__ */ jsxs6(
3164
+ Div_default.row,
3165
+ {
3166
+ alignItems: "center",
3167
+ gap: theme2.styles.space,
3168
+ marginBottom: marginBottom ?? theme2.styles.space * 2,
3169
+ ref,
3170
+ children: [
3171
+ imageUrl && /* @__PURE__ */ jsx10(Image_default.profileImage, { src: imageUrl, size: imageSize ?? (mediaQuery.size600 ? 46 : 60) }),
3172
+ /* @__PURE__ */ jsxs6(
3173
+ Div_default.column,
3174
+ {
3175
+ alignItems: textAlign === "center" ? "center" : textAlign === "right" ? "flex-end" : void 0,
3176
+ flex: 1,
3177
+ gap: theme2.styles.gap / 2,
3178
+ children: [
3179
+ /* @__PURE__ */ jsxs6(
3180
+ Div_default.row,
3181
+ {
3182
+ alignItems: "center",
3183
+ justifyContent: textAlign === "center" ? "center" : textAlign === "right" ? "flex-end" : void 0,
3184
+ gap: theme2.styles.space,
3185
+ children: [
3186
+ /* @__PURE__ */ jsx10(
3187
+ Text_default,
3188
+ {
3189
+ as: titleAs ?? "h1",
3190
+ textAlign,
3191
+ color: titleColor ?? (lightMode ? theme2.colors.base : theme2.colors.textPrimary),
3192
+ children: title
3193
+ }
3194
+ ),
3195
+ titleRightElement
3196
+ ]
3197
+ }
3198
+ ),
3199
+ description && /* @__PURE__ */ jsx10(
3200
+ Text_default,
3201
+ {
3202
+ maxWidth: !mediaQuery.size600 ? app.contentMaxWidth * 0.6 : void 0,
3203
+ textAlign,
3204
+ color: descriptionColor ?? (lightMode ? theme2.colors.base : theme2.colors.textSecondary),
3205
+ opacity: lightMode ? 0.7 : void 0,
3206
+ children: description
3207
+ }
3208
+ )
3209
+ ]
3210
+ }
3211
+ ),
3212
+ rightElement
3213
+ ]
3214
+ }
3215
+ );
3216
+ });
3217
+ var PageHeader2 = memo10(PageHeaderComponent);
3218
+ var PageHeader_default = PageHeader2;
3219
+
3114
3220
  // src/components/Div.tsx
3115
- import { jsx as jsx9 } from "react/jsx-runtime";
3221
+ import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
3116
3222
  var DivStyledComponent = styled7.div.withConfig({
3117
3223
  shouldForwardProp: (prop) => !["normalStyle", "hoverStyle"].includes(prop)
3118
3224
  })`
@@ -3122,7 +3228,7 @@ var DivStyledComponent = styled7.div.withConfig({
3122
3228
  ${(props) => props.hoverStyle}
3123
3229
  }
3124
3230
  `;
3125
- var DivComponent = forwardRef4(function Div({
3231
+ var DivComponent = forwardRef6(function Div({
3126
3232
  as = "div",
3127
3233
  value,
3128
3234
  isTabAccessed,
@@ -3157,7 +3263,7 @@ var DivComponent = forwardRef4(function Div({
3157
3263
  },
3158
3264
  [onKeyDown, isTabAccessed]
3159
3265
  );
3160
- return /* @__PURE__ */ jsx9(
3266
+ return /* @__PURE__ */ jsx11(
3161
3267
  DivStyledComponent,
3162
3268
  {
3163
3269
  as,
@@ -3175,9 +3281,9 @@ var DivComponent = forwardRef4(function Div({
3175
3281
  }
3176
3282
  );
3177
3283
  });
3178
- DivComponent.row = forwardRef4(function Row({ flexReverse, invertFlexDirection, ...props }, ref) {
3284
+ DivComponent.row = forwardRef6(function Row({ flexReverse, invertFlexDirection, ...props }, ref) {
3179
3285
  const reverseSuffix = flexReverse ? "-reverse" : "";
3180
- return /* @__PURE__ */ jsx9(
3286
+ return /* @__PURE__ */ jsx11(
3181
3287
  DivComponent,
3182
3288
  {
3183
3289
  display: "flex",
@@ -3187,9 +3293,9 @@ DivComponent.row = forwardRef4(function Row({ flexReverse, invertFlexDirection,
3187
3293
  }
3188
3294
  );
3189
3295
  });
3190
- DivComponent.column = forwardRef4(function Column({ flexReverse, invertFlexDirection, ...props }, ref) {
3296
+ DivComponent.column = forwardRef6(function Column({ flexReverse, invertFlexDirection, ...props }, ref) {
3191
3297
  const reverseSuffix = flexReverse ? "-reverse" : "";
3192
- return /* @__PURE__ */ jsx9(
3298
+ return /* @__PURE__ */ jsx11(
3193
3299
  DivComponent,
3194
3300
  {
3195
3301
  display: "flex",
@@ -3199,13 +3305,29 @@ DivComponent.column = forwardRef4(function Column({ flexReverse, invertFlexDirec
3199
3305
  }
3200
3306
  );
3201
3307
  });
3202
- DivComponent.grid = forwardRef4(function Grid(props, ref) {
3203
- return /* @__PURE__ */ jsx9(DivComponent, { display: "grid", ref, ...props });
3308
+ DivComponent.grid = forwardRef6(function Grid(props, ref) {
3309
+ return /* @__PURE__ */ jsx11(DivComponent, { display: "grid", ref, ...props });
3204
3310
  });
3205
- DivComponent.box = forwardRef4(function Box2({ isActive, ...props }, ref) {
3311
+ DivComponent.box = forwardRef6(function Box2({
3312
+ imageUrl,
3313
+ imageSize,
3314
+ title,
3315
+ titleAs,
3316
+ titleColor,
3317
+ titleRightElement,
3318
+ description,
3319
+ descriptionColor,
3320
+ textAlign,
3321
+ rightElement,
3322
+ lightMode,
3323
+ headerBackgroundColor,
3324
+ isActive,
3325
+ children,
3326
+ ...props
3327
+ }, ref) {
3206
3328
  const theme2 = useTheme();
3207
3329
  const withClick = props.onClick || props.onClickWithValue;
3208
- return /* @__PURE__ */ jsx9(
3330
+ return /* @__PURE__ */ jsxs7(
3209
3331
  DivComponent,
3210
3332
  {
3211
3333
  color: isActive ? theme2.colors.base : void 0,
@@ -3215,57 +3337,61 @@ DivComponent.box = forwardRef4(function Box2({ isActive, ...props }, ref) {
3215
3337
  borderColorHover: withClick && !isActive ? theme2.colors.primary : void 0,
3216
3338
  filterHover: withClick && isActive ? "brightness(0.9)" : void 0,
3217
3339
  cursor: withClick ? "pointer" : void 0,
3218
- paddingBlock: theme2.styles.gap,
3340
+ paddingBlock: title ? theme2.styles.space : theme2.styles.gap,
3219
3341
  paddingInline: theme2.styles.space,
3220
3342
  ref,
3221
- ...props
3343
+ ...props,
3344
+ children: [
3345
+ title && /* @__PURE__ */ jsxs7(
3346
+ Div2,
3347
+ {
3348
+ backgroundColor: headerBackgroundColor,
3349
+ borderTopLeftRadius: props.borderTopLeftRadius ?? props.borderRadius ?? theme2.styles.borderRadius - 1,
3350
+ borderTopRightRadius: props.borderTopRightRadius ?? props.borderRadius ?? theme2.styles.borderRadius - 1,
3351
+ marginInline: -theme2.styles.space,
3352
+ marginTop: -theme2.styles.space,
3353
+ marginBottom: theme2.styles.space,
3354
+ paddingInline: theme2.styles.space,
3355
+ paddingTop: theme2.styles.space,
3356
+ children: [
3357
+ /* @__PURE__ */ jsx11(
3358
+ PageHeader_default,
3359
+ {
3360
+ imageUrl,
3361
+ imageSize,
3362
+ title,
3363
+ titleAs,
3364
+ titleColor,
3365
+ titleRightElement,
3366
+ description,
3367
+ descriptionColor,
3368
+ textAlign,
3369
+ rightElement,
3370
+ lightMode,
3371
+ marginBottom: theme2.styles.space
3372
+ }
3373
+ ),
3374
+ /* @__PURE__ */ jsx11(Div2, { width: `calc(100% + ${theme2.styles.space * 2}px)`, marginLeft: -theme2.styles.space, children: /* @__PURE__ */ jsx11(Divider_default.horizontal, {}) })
3375
+ ]
3376
+ }
3377
+ ),
3378
+ children
3379
+ ]
3222
3380
  }
3223
3381
  );
3224
3382
  });
3225
- var Div2 = memo9(DivComponent);
3383
+ var Div2 = memo11(DivComponent);
3226
3384
  Div2.row = DivComponent.row;
3227
3385
  Div2.column = DivComponent.column;
3228
3386
  Div2.grid = DivComponent.grid;
3229
3387
  Div2.box = DivComponent.box;
3230
3388
  var Div_default = Div2;
3231
3389
 
3232
- // src/components/Divider.tsx
3233
- import { forwardRef as forwardRef5, memo as memo10 } from "react";
3234
- import { jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
3235
- var Divider_default = {
3236
- vertical: memo10(
3237
- forwardRef5(function Divider({ width = 1, backgroundColor, height, ...props }, ref) {
3238
- const theme2 = useTheme();
3239
- return /* @__PURE__ */ jsx10(
3240
- Div_default,
3241
- {
3242
- width,
3243
- height: height ?? "100%",
3244
- flexShrink: 0,
3245
- backgroundColor: backgroundColor ?? theme2.colors.border,
3246
- ...props,
3247
- ref
3248
- }
3249
- );
3250
- })
3251
- ),
3252
- horizontal: memo10(
3253
- forwardRef5(function Divider2({ width = 1, backgroundColor, text, textFontSize, textColor, ...props }, ref) {
3254
- const theme2 = useTheme();
3255
- return /* @__PURE__ */ jsxs5(Div_default.row, { width: "100%", alignItems: "center", gap: text ? theme2.styles.space : void 0, ...props, ref, children: [
3256
- /* @__PURE__ */ jsx10(Div_default, { flex: 1, height: width, flexShrink: 0, backgroundColor: backgroundColor ?? theme2.colors.border }),
3257
- text && /* @__PURE__ */ jsx10(Text_default, { fontSize: textFontSize, color: textColor ?? theme2.colors.textSecondary, children: text }),
3258
- /* @__PURE__ */ jsx10(Div_default, { flex: 1, height: width, flexShrink: 0, backgroundColor: backgroundColor ?? theme2.colors.border })
3259
- ] });
3260
- })
3261
- )
3262
- };
3263
-
3264
3390
  // src/components/Modal.tsx
3265
- import { memo as memo11, useCallback as useCallback6, forwardRef as forwardRef6, useImperativeHandle, useRef as useRef3, useState as useState4 } from "react";
3391
+ import { memo as memo12, useCallback as useCallback6, forwardRef as forwardRef7, useImperativeHandle, useRef as useRef3, useState as useState4 } from "react";
3266
3392
  import { createPortal } from "react-dom";
3267
3393
  import styled8 from "styled-components";
3268
- import { Fragment as Fragment2, jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
3394
+ import { Fragment as Fragment2, jsx as jsx12, jsxs as jsxs8 } from "react/jsx-runtime";
3269
3395
  var DialogStylesElement = styled8.dialog.withConfig({
3270
3396
  shouldForwardProp: (prop) => !["theme", "colorTheme", "opacity"].includes(prop)
3271
3397
  })`
@@ -3306,7 +3432,7 @@ var DialogStylesElement = styled8.dialog.withConfig({
3306
3432
  }
3307
3433
  }
3308
3434
  `;
3309
- var ModalComponent = forwardRef6(function Modal({
3435
+ var ModalComponent = forwardRef7(function Modal({
3310
3436
  maxWidth,
3311
3437
  title,
3312
3438
  titleColor,
@@ -3371,7 +3497,7 @@ var ModalComponent = forwardRef6(function Modal({
3371
3497
  [onClickOpen, onClickClose, isOpened]
3372
3498
  );
3373
3499
  return createPortal(
3374
- /* @__PURE__ */ jsx11(
3500
+ /* @__PURE__ */ jsx12(
3375
3501
  DialogStylesElement,
3376
3502
  {
3377
3503
  theme: theme2,
@@ -3380,7 +3506,7 @@ var ModalComponent = forwardRef6(function Modal({
3380
3506
  onClose: onClickClose,
3381
3507
  onKeyDown,
3382
3508
  ref: dialogRef,
3383
- children: isOpenedLate ? /* @__PURE__ */ jsx11(
3509
+ children: isOpenedLate ? /* @__PURE__ */ jsx12(
3384
3510
  Div_default.column,
3385
3511
  {
3386
3512
  position: "relative",
@@ -3394,7 +3520,7 @@ var ModalComponent = forwardRef6(function Modal({
3394
3520
  transform: `translateY(${theme2.styles.space}px)`,
3395
3521
  transition: theme2.styles.transition,
3396
3522
  animation: isOpened ? "fadeInAnimation 0.2s ease forwards" : "fadeOutAnimation 0.2s ease forwards",
3397
- children: /* @__PURE__ */ jsxs6(
3523
+ children: /* @__PURE__ */ jsxs8(
3398
3524
  Div_default,
3399
3525
  {
3400
3526
  position: "relative",
@@ -3402,12 +3528,11 @@ var ModalComponent = forwardRef6(function Modal({
3402
3528
  minHeight: 32 + theme2.styles.space * 2,
3403
3529
  backgroundColor: theme2.colors.backgroundBase,
3404
3530
  borderRadius: theme2.styles.borderRadius * 2,
3405
- paddingInline: !title ? theme2.styles.space + theme2.styles.gap : void 0,
3406
- paddingBlock: !title ? theme2.styles.space : void 0,
3531
+ padding: !title ? theme2.styles.space : void 0,
3407
3532
  overflow,
3408
3533
  children: [
3409
- title ? /* @__PURE__ */ jsxs6(Fragment2, { children: [
3410
- /* @__PURE__ */ jsxs6(
3534
+ title ? /* @__PURE__ */ jsxs8(Fragment2, { children: [
3535
+ /* @__PURE__ */ jsxs8(
3411
3536
  Div_default.row,
3412
3537
  {
3413
3538
  alignItems: "center",
@@ -3415,12 +3540,12 @@ var ModalComponent = forwardRef6(function Modal({
3415
3540
  backgroundColor: headerBackgroundColor,
3416
3541
  borderTopLeftRadius: theme2.styles.borderRadius * 2 - 1,
3417
3542
  borderTopRightRadius: theme2.styles.borderRadius * 2 - 1,
3418
- paddingInline: theme2.styles.space + theme2.styles.gap,
3543
+ paddingInline: theme2.styles.space,
3419
3544
  paddingBlock: theme2.styles.space,
3420
3545
  transition: theme2.styles.transition,
3421
3546
  children: [
3422
- /* @__PURE__ */ jsxs6(Div_default.column, { flex: 1, gap: theme2.styles.gap / 2, children: [
3423
- /* @__PURE__ */ jsx11(
3547
+ /* @__PURE__ */ jsxs8(Div_default.column, { flex: 1, gap: theme2.styles.gap / 2, children: [
3548
+ /* @__PURE__ */ jsx12(
3424
3549
  Text_default,
3425
3550
  {
3426
3551
  as: "h1",
@@ -3429,7 +3554,7 @@ var ModalComponent = forwardRef6(function Modal({
3429
3554
  children: title
3430
3555
  }
3431
3556
  ),
3432
- description && /* @__PURE__ */ jsx11(
3557
+ description && /* @__PURE__ */ jsx12(
3433
3558
  Text_default,
3434
3559
  {
3435
3560
  color: descriptionColor ?? theme2.colors.textSecondary,
@@ -3438,7 +3563,7 @@ var ModalComponent = forwardRef6(function Modal({
3438
3563
  }
3439
3564
  )
3440
3565
  ] }),
3441
- !withoutCloseButton && /* @__PURE__ */ jsx11(
3566
+ !withoutCloseButton && /* @__PURE__ */ jsx12(
3442
3567
  Button_default.icon,
3443
3568
  {
3444
3569
  icon: "XMark",
@@ -3451,16 +3576,9 @@ var ModalComponent = forwardRef6(function Modal({
3451
3576
  ]
3452
3577
  }
3453
3578
  ),
3454
- /* @__PURE__ */ jsx11(Divider_default.horizontal, {})
3455
- ] }) : /* @__PURE__ */ jsx11(Fragment2, { children: !withoutCloseButton && /* @__PURE__ */ jsx11(Div_default, { position: "absolute", top: theme2.styles.space, right: theme2.styles.space, children: /* @__PURE__ */ jsx11(Button_default.icon, { icon: "XMark", onClick: onClickClose }) }) }),
3456
- /* @__PURE__ */ jsx11(
3457
- Div_default,
3458
- {
3459
- paddingInline: title ? theme2.styles.space + theme2.styles.gap : void 0,
3460
- paddingBlock: title ? theme2.styles.space : void 0,
3461
- children
3462
- }
3463
- )
3579
+ /* @__PURE__ */ jsx12(Divider_default.horizontal, {})
3580
+ ] }) : /* @__PURE__ */ jsx12(Fragment2, { children: !withoutCloseButton && /* @__PURE__ */ jsx12(Div_default, { position: "absolute", top: theme2.styles.space, right: theme2.styles.space, children: /* @__PURE__ */ jsx12(Button_default.icon, { icon: "XMark", onClick: onClickClose }) }) }),
3581
+ /* @__PURE__ */ jsx12(Div_default, { padding: title ? theme2.styles.space : void 0, children })
3464
3582
  ]
3465
3583
  }
3466
3584
  )
@@ -3471,7 +3589,7 @@ var ModalComponent = forwardRef6(function Modal({
3471
3589
  document.body
3472
3590
  );
3473
3591
  });
3474
- ModalComponent.confirmation = forwardRef6(function Confirmation({ message, continueButtonLoaderName, onContinue, onCancel, ...props }, ref) {
3592
+ ModalComponent.confirmation = forwardRef7(function Confirmation({ message, continueButtonLoaderName, onContinue, onCancel, ...props }, ref) {
3475
3593
  const theme2 = useTheme();
3476
3594
  const modalRef = useRef3(null);
3477
3595
  const onCancelElement = useCallback6(() => {
@@ -3483,9 +3601,9 @@ ModalComponent.confirmation = forwardRef6(function Confirmation({ message, conti
3483
3601
  modalRef.current?.close();
3484
3602
  }, [onContinue]);
3485
3603
  useImperativeHandle(ref, () => modalRef.current, []);
3486
- return /* @__PURE__ */ jsxs6(ModalComponent, { title: "Are you sure?", maxWidth: 660, ...props, ref: modalRef, children: [
3487
- /* @__PURE__ */ jsx11(Text_default, { color: theme2.colors.textSecondary, children: message ?? "Do you really want to continue? This action may be irreversible." }),
3488
- /* @__PURE__ */ jsxs6(
3604
+ return /* @__PURE__ */ jsxs8(ModalComponent, { title: "Are you sure?", maxWidth: 660, ...props, ref: modalRef, children: [
3605
+ /* @__PURE__ */ jsx12(Text_default, { color: theme2.colors.textSecondary, children: message ?? "Do you really want to continue? This action may be irreversible." }),
3606
+ /* @__PURE__ */ jsxs8(
3489
3607
  Div_default.row,
3490
3608
  {
3491
3609
  alignItems: "center",
@@ -3493,14 +3611,14 @@ ModalComponent.confirmation = forwardRef6(function Confirmation({ message, conti
3493
3611
  gap: theme2.styles.gap,
3494
3612
  marginTop: theme2.styles.space * 2,
3495
3613
  children: [
3496
- /* @__PURE__ */ jsx11(Button_default.secondary, { text: "Cancel", onClick: onCancelElement }),
3497
- /* @__PURE__ */ jsx11(Button_default, { text: "Continue", loaderName: continueButtonLoaderName, onClick: onContinueElement })
3614
+ /* @__PURE__ */ jsx12(Button_default.secondary, { text: "Cancel", onClick: onCancelElement }),
3615
+ /* @__PURE__ */ jsx12(Button_default, { text: "Continue", loaderName: continueButtonLoaderName, onClick: onContinueElement })
3498
3616
  ]
3499
3617
  }
3500
3618
  )
3501
3619
  ] });
3502
3620
  });
3503
- ModalComponent.destructive = forwardRef6(function Destructive2({ message, deleteButtonLoaderName, onDelete, onCancel, ...props }, ref) {
3621
+ ModalComponent.destructive = forwardRef7(function Destructive2({ message, deleteButtonLoaderName, onDelete, onCancel, ...props }, ref) {
3504
3622
  const theme2 = useTheme();
3505
3623
  const modalRef = useRef3(null);
3506
3624
  const onCancelElement = useCallback6(() => {
@@ -3512,9 +3630,9 @@ ModalComponent.destructive = forwardRef6(function Destructive2({ message, delete
3512
3630
  modalRef.current?.close();
3513
3631
  }, [onDelete]);
3514
3632
  useImperativeHandle(ref, () => modalRef.current, []);
3515
- return /* @__PURE__ */ jsxs6(ModalComponent, { title: "Are you sure?", maxWidth: 660, ...props, ref: modalRef, children: [
3516
- /* @__PURE__ */ jsx11(Text_default, { color: theme2.colors.textSecondary, children: message ?? "Do you really want to continue with the deleting of the item? This action may be irreversible." }),
3517
- /* @__PURE__ */ jsxs6(
3633
+ return /* @__PURE__ */ jsxs8(ModalComponent, { title: "Are you sure?", maxWidth: 660, ...props, ref: modalRef, children: [
3634
+ /* @__PURE__ */ jsx12(Text_default, { color: theme2.colors.textSecondary, children: message ?? "Do you really want to continue with the deleting of the item? This action may be irreversible." }),
3635
+ /* @__PURE__ */ jsxs8(
3518
3636
  Div_default.row,
3519
3637
  {
3520
3638
  alignItems: "center",
@@ -3522,8 +3640,8 @@ ModalComponent.destructive = forwardRef6(function Destructive2({ message, delete
3522
3640
  gap: theme2.styles.gap,
3523
3641
  marginTop: theme2.styles.space * 2,
3524
3642
  children: [
3525
- /* @__PURE__ */ jsx11(Button_default.secondary, { text: "Cancel", onClick: onCancelElement }),
3526
- /* @__PURE__ */ jsx11(
3643
+ /* @__PURE__ */ jsx12(Button_default.secondary, { text: "Cancel", onClick: onCancelElement }),
3644
+ /* @__PURE__ */ jsx12(
3527
3645
  Button_default.destructive,
3528
3646
  {
3529
3647
  icon: "trash",
@@ -3537,18 +3655,18 @@ ModalComponent.destructive = forwardRef6(function Destructive2({ message, delete
3537
3655
  )
3538
3656
  ] });
3539
3657
  });
3540
- var Modal2 = memo11(ModalComponent);
3658
+ var Modal2 = memo12(ModalComponent);
3541
3659
  Modal2.confirmation = ModalComponent.confirmation;
3542
3660
  Modal2.destructive = ModalComponent.destructive;
3543
3661
  var Modal_default = Modal2;
3544
3662
 
3545
3663
  // src/components/PageHolder.tsx
3546
- import { forwardRef as forwardRef7, memo as memo12 } from "react";
3547
- import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
3548
- var PageHolderComponent = forwardRef7(function PageHolder({ noMaxContentWidth, children, ...props }, ref) {
3664
+ import { forwardRef as forwardRef8, memo as memo13 } from "react";
3665
+ import { jsx as jsx13, jsxs as jsxs9 } from "react/jsx-runtime";
3666
+ var PageHolderComponent = forwardRef8(function PageHolder({ noMaxContentWidth, children, ...props }, ref) {
3549
3667
  const theme2 = useTheme();
3550
3668
  const { app } = useBetterHtmlContextInternal();
3551
- return /* @__PURE__ */ jsx12(
3669
+ return /* @__PURE__ */ jsx13(
3552
3670
  Div_default,
3553
3671
  {
3554
3672
  as: "main",
@@ -3562,7 +3680,7 @@ var PageHolderComponent = forwardRef7(function PageHolder({ noMaxContentWidth, c
3562
3680
  }
3563
3681
  );
3564
3682
  });
3565
- PageHolderComponent.center = forwardRef7(function Center({
3683
+ PageHolderComponent.center = forwardRef8(function Center({
3566
3684
  pageBackgroundColor,
3567
3685
  pageBackgroundImage,
3568
3686
  contentMaxWidth,
@@ -3578,7 +3696,7 @@ PageHolderComponent.center = forwardRef7(function Center({
3578
3696
  const { app } = useBetterHtmlContextInternal();
3579
3697
  const breakingPoint = mediaQuery.size1000;
3580
3698
  const withSideComponent = sideComponent && !breakingPoint;
3581
- return /* @__PURE__ */ jsxs7(
3699
+ return /* @__PURE__ */ jsxs9(
3582
3700
  Div_default.row,
3583
3701
  {
3584
3702
  position: "relative",
@@ -3589,7 +3707,7 @@ PageHolderComponent.center = forwardRef7(function Center({
3589
3707
  backgroundColor: pageBackgroundColor,
3590
3708
  backgroundImage: pageBackgroundImage,
3591
3709
  children: [
3592
- behindComponent && /* @__PURE__ */ jsx12(
3710
+ behindComponent && /* @__PURE__ */ jsx13(
3593
3711
  Div_default,
3594
3712
  {
3595
3713
  position: "fixed",
@@ -3602,8 +3720,8 @@ PageHolderComponent.center = forwardRef7(function Center({
3602
3720
  children: behindComponent
3603
3721
  }
3604
3722
  ),
3605
- sideComponentPosition === "left" && withSideComponent && /* @__PURE__ */ jsx12(Div_default, { width: "50%" }),
3606
- /* @__PURE__ */ jsx12(Div_default.column, { position: "relative", width: `${withSideComponent ? 50 : 100}%`, alignItems: "center", zIndex: 2, children: /* @__PURE__ */ jsx12(
3723
+ sideComponentPosition === "left" && withSideComponent && /* @__PURE__ */ jsx13(Div_default, { width: "50%" }),
3724
+ /* @__PURE__ */ jsx13(Div_default.column, { position: "relative", width: `${withSideComponent ? 50 : 100}%`, alignItems: "center", zIndex: 2, children: /* @__PURE__ */ jsx13(
3607
3725
  Div_default.box,
3608
3726
  {
3609
3727
  width: `calc(100% - ${theme2.styles.space * 2}px)`,
@@ -3615,8 +3733,8 @@ PageHolderComponent.center = forwardRef7(function Center({
3615
3733
  children
3616
3734
  }
3617
3735
  ) }),
3618
- sideComponentPosition === "right" && withSideComponent && /* @__PURE__ */ jsx12(Div_default, { width: "50%" }),
3619
- withSideComponent && /* @__PURE__ */ jsx12(
3736
+ sideComponentPosition === "right" && withSideComponent && /* @__PURE__ */ jsx13(Div_default, { width: "50%" }),
3737
+ withSideComponent && /* @__PURE__ */ jsx13(
3620
3738
  Div_default,
3621
3739
  {
3622
3740
  position: "fixed",
@@ -3632,85 +3750,10 @@ PageHolderComponent.center = forwardRef7(function Center({
3632
3750
  }
3633
3751
  );
3634
3752
  });
3635
- var PageHolder2 = memo12(PageHolderComponent);
3753
+ var PageHolder2 = memo13(PageHolderComponent);
3636
3754
  PageHolder2.center = PageHolderComponent.center;
3637
3755
  var PageHolder_default = PageHolder2;
3638
3756
 
3639
- // src/components/PageHeader.tsx
3640
- import { forwardRef as forwardRef8, memo as memo13 } from "react";
3641
- import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
3642
- var PageHeaderComponent = forwardRef8(function PageHeader({
3643
- imageUrl,
3644
- imageSize = 60,
3645
- title,
3646
- titleAs,
3647
- titleRightElement,
3648
- description,
3649
- textAlign,
3650
- rightElement,
3651
- lightMode,
3652
- marginBottom
3653
- }, ref) {
3654
- const theme2 = useTheme();
3655
- const { app } = useBetterHtmlContextInternal();
3656
- const mediaQuery = useMediaQuery();
3657
- return /* @__PURE__ */ jsxs8(
3658
- Div_default.row,
3659
- {
3660
- alignItems: "center",
3661
- gap: theme2.styles.space,
3662
- marginBottom: marginBottom ?? theme2.styles.space * 2,
3663
- ref,
3664
- children: [
3665
- imageUrl && /* @__PURE__ */ jsx13(Image_default.profileImage, { src: imageUrl, size: imageSize ?? (mediaQuery.size600 ? 46 : 60) }),
3666
- /* @__PURE__ */ jsxs8(
3667
- Div_default.column,
3668
- {
3669
- alignItems: textAlign === "center" ? "center" : textAlign === "right" ? "flex-end" : void 0,
3670
- flex: 1,
3671
- gap: theme2.styles.gap / 2,
3672
- children: [
3673
- /* @__PURE__ */ jsxs8(
3674
- Div_default.row,
3675
- {
3676
- alignItems: "center",
3677
- justifyContent: textAlign === "center" ? "center" : textAlign === "right" ? "flex-end" : void 0,
3678
- gap: theme2.styles.space,
3679
- children: [
3680
- /* @__PURE__ */ jsx13(
3681
- Text_default,
3682
- {
3683
- as: titleAs ?? "h1",
3684
- textAlign,
3685
- color: lightMode ? theme2.colors.base : theme2.colors.textPrimary,
3686
- children: title
3687
- }
3688
- ),
3689
- titleRightElement
3690
- ]
3691
- }
3692
- ),
3693
- description && /* @__PURE__ */ jsx13(
3694
- Text_default,
3695
- {
3696
- maxWidth: !mediaQuery.size600 ? app.contentMaxWidth * 0.6 : void 0,
3697
- textAlign,
3698
- color: lightMode ? theme2.colors.base : theme2.colors.textSecondary,
3699
- opacity: lightMode ? 0.7 : void 0,
3700
- children: description
3701
- }
3702
- )
3703
- ]
3704
- }
3705
- ),
3706
- rightElement
3707
- ]
3708
- }
3709
- );
3710
- });
3711
- var PageHeader2 = memo13(PageHeaderComponent);
3712
- var PageHeader_default = PageHeader2;
3713
-
3714
3757
  // src/components/Chip.tsx
3715
3758
  import { forwardRef as forwardRef9, memo as memo14 } from "react";
3716
3759
 
@@ -5520,10 +5563,10 @@ var decryptString = (text) => {
5520
5563
 
5521
5564
  // src/components/Label.tsx
5522
5565
  import { memo as memo15 } from "react";
5523
- import { jsxs as jsxs9 } from "react/jsx-runtime";
5566
+ import { jsxs as jsxs10 } from "react/jsx-runtime";
5524
5567
  function Label({ text, required, isError, color, htmlFor }) {
5525
5568
  const theme2 = useTheme();
5526
- return /* @__PURE__ */ jsxs9(
5569
+ return /* @__PURE__ */ jsxs10(
5527
5570
  Text_default,
5528
5571
  {
5529
5572
  as: "label",
@@ -5535,7 +5578,7 @@ function Label({ text, required, isError, color, htmlFor }) {
5535
5578
  "aria-required": required,
5536
5579
  children: [
5537
5580
  text,
5538
- required && /* @__PURE__ */ jsxs9(Text_default, { as: "span", fontSize: 16, color: theme2.colors.error, children: [
5581
+ required && /* @__PURE__ */ jsxs10(Text_default, { as: "span", fontSize: 16, color: theme2.colors.error, children: [
5539
5582
  " ",
5540
5583
  "*"
5541
5584
  ] })
@@ -5547,7 +5590,7 @@ var Label_default = memo15(Label);
5547
5590
 
5548
5591
  // src/components/Dropdown.tsx
5549
5592
  import { forwardRef as forwardRef10, Fragment as Fragment3, memo as memo16, useCallback as useCallback7, useEffect as useEffect6, useMemo as useMemo4, useRef as useRef4, useState as useState5 } from "react";
5550
- import { Fragment as Fragment4, jsx as jsx15, jsxs as jsxs10 } from "react/jsx-runtime";
5593
+ import { Fragment as Fragment4, jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
5551
5594
  var DropdownComponent = forwardRef10(function Dropdown({
5552
5595
  label,
5553
5596
  labelColor,
@@ -5674,13 +5717,13 @@ var DropdownComponent = forwardRef10(function Dropdown({
5674
5717
  );
5675
5718
  const selectedOption = useMemo4(() => options.find((option) => option.value === value), [options, value]);
5676
5719
  const renderedOptions = useMemo4(
5677
- () => /* @__PURE__ */ jsxs10(Fragment4, { children: [
5720
+ () => /* @__PURE__ */ jsxs11(Fragment4, { children: [
5678
5721
  renderOptionDivider ? renderOptionDivider(void 0, filteredOptions[0], -1, 0) : void 0,
5679
5722
  filteredOptions.map((option, index) => {
5680
5723
  const isSelected = option.value === value;
5681
5724
  const isDisabled = option.disabled;
5682
5725
  const isFocused2 = index === focusedOptionIndex;
5683
- return /* @__PURE__ */ jsxs10(Fragment3, { children: [
5726
+ return /* @__PURE__ */ jsxs11(Fragment3, { children: [
5684
5727
  /* @__PURE__ */ jsx15(
5685
5728
  Div_default,
5686
5729
  {
@@ -5746,7 +5789,7 @@ var DropdownComponent = forwardRef10(function Dropdown({
5746
5789
  const displayValue = withSearch && isFocused ? searchQuery : selectedOption?.label ?? "";
5747
5790
  const withClearButton = isOpen && selectedOption;
5748
5791
  const readyPlaceholder = placeholder ? placeholder : `Select an ${label?.toLowerCase() ?? "option"}`;
5749
- return /* @__PURE__ */ jsx15(Div_default.column, { width: "100%", position: "relative", userSelect: "none", ...props, children: /* @__PURE__ */ jsxs10(Div_default.row, { position: "relative", width: "100%", children: [
5792
+ return /* @__PURE__ */ jsx15(Div_default.column, { width: "100%", position: "relative", userSelect: "none", ...props, children: /* @__PURE__ */ jsxs11(Div_default.row, { position: "relative", width: "100%", children: [
5750
5793
  /* @__PURE__ */ jsx15(
5751
5794
  InputField_default,
5752
5795
  {
@@ -5804,7 +5847,7 @@ var DropdownComponent = forwardRef10(function Dropdown({
5804
5847
  ref: inputRef
5805
5848
  }
5806
5849
  ),
5807
- /* @__PURE__ */ jsxs10(
5850
+ /* @__PURE__ */ jsxs11(
5808
5851
  Div_default.row,
5809
5852
  {
5810
5853
  position: "absolute",
@@ -5853,7 +5896,7 @@ var DropdownComponent = forwardRef10(function Dropdown({
5853
5896
  DropdownComponent.countries = forwardRef10(function Countries({ ...props }, ref) {
5854
5897
  const theme2 = useTheme();
5855
5898
  const renderOption = useCallback7(
5856
- (option, index, isSelected) => /* @__PURE__ */ jsxs10(Div_default.row, { alignItems: "center", gap: theme2.styles.gap, children: [
5899
+ (option, index, isSelected) => /* @__PURE__ */ jsxs11(Div_default.row, { alignItems: "center", gap: theme2.styles.gap, children: [
5857
5900
  /* @__PURE__ */ jsx15(Image_default, { src: `https://flagcdn.com/w80/${option.data?.code.toString().toLowerCase()}.webp`, width: 20 }),
5858
5901
  /* @__PURE__ */ jsx15(Text_default, { children: option.label })
5859
5902
  ] }),
@@ -5889,7 +5932,7 @@ var Dropdown_default = Dropdown2;
5889
5932
  // src/components/Calendar.tsx
5890
5933
  import { useCallback as useCallback8, useMemo as useMemo5, useState as useState6, memo as memo17, useEffect as useEffect7, useId } from "react";
5891
5934
  import styled9 from "styled-components";
5892
- import { jsx as jsx16, jsxs as jsxs11 } from "react/jsx-runtime";
5935
+ import { jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
5893
5936
  var getMonthName = (month, short = false) => {
5894
5937
  return [
5895
5938
  short ? "Jan" : "January",
@@ -6003,12 +6046,12 @@ function Calendar({ value, minDate, maxDate, onChange }) {
6003
6046
  setCurrentMonth(date.getMonth());
6004
6047
  setCurrentYear(date.getFullYear());
6005
6048
  }, [value]);
6006
- return /* @__PURE__ */ jsxs11(Div_default.column, { width: "100%", maxWidth: 320, gap: theme2.styles.gap, padding: theme2.styles.space / 2, userSelect: "none", children: [
6007
- /* @__PURE__ */ jsxs11(Div_default.row, { width: "100%", justifyContent: "space-between", alignItems: "center", children: [
6049
+ return /* @__PURE__ */ jsxs12(Div_default.column, { width: "100%", maxWidth: 320, gap: theme2.styles.gap, padding: theme2.styles.space / 2, userSelect: "none", children: [
6050
+ /* @__PURE__ */ jsxs12(Div_default.row, { width: "100%", justifyContent: "space-between", alignItems: "center", children: [
6008
6051
  /* @__PURE__ */ jsx16(Button_default.icon, { icon: "chevronLeft", onClick: onClickPreviousMonthButton }),
6009
- /* @__PURE__ */ jsxs11(Div_default.row, { alignItems: "center", gap: 4, children: [
6052
+ /* @__PURE__ */ jsxs12(Div_default.row, { alignItems: "center", gap: 4, children: [
6010
6053
  /* @__PURE__ */ jsx16(Text_default, { fontWeight: 700, children: getMonthName(currentMonth) }),
6011
- /* @__PURE__ */ jsx16(SelectWrapperComponent, { children: /* @__PURE__ */ jsxs11(Div_default.row, { position: "relative", alignItems: "center", gap: 2, children: [
6054
+ /* @__PURE__ */ jsx16(SelectWrapperComponent, { children: /* @__PURE__ */ jsxs12(Div_default.row, { position: "relative", alignItems: "center", gap: 2, children: [
6012
6055
  /* @__PURE__ */ jsx16(Text_default, { fontWeight: 700, children: currentYear }),
6013
6056
  /* @__PURE__ */ jsx16(Icon_default, { name: "chevronDown", size: 12 }),
6014
6057
  /* @__PURE__ */ jsx16(
@@ -6025,14 +6068,14 @@ function Calendar({ value, minDate, maxDate, onChange }) {
6025
6068
  ] }),
6026
6069
  /* @__PURE__ */ jsx16(Button_default.icon, { icon: "chevronRight", onClick: onClickNextMonthButton })
6027
6070
  ] }),
6028
- /* @__PURE__ */ jsxs11(Div_default.grid, { width: "100%", gridTemplateColumns: "repeat(7, 1fr)", gap: theme2.styles.gap / 2, children: [
6071
+ /* @__PURE__ */ jsxs12(Div_default.grid, { width: "100%", gridTemplateColumns: "repeat(7, 1fr)", gap: theme2.styles.gap / 2, children: [
6029
6072
  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)),
6030
6073
  days.map((day, index) => {
6031
6074
  const thisDayDate = new Date(currentYear, currentMonth, day);
6032
6075
  const isSelected = day !== void 0 && day === currentDate?.getDate() && currentMonth === currentDate.getMonth() && currentYear === currentDate.getFullYear();
6033
6076
  const isWeekend = thisDayDate.getDay() === 6 || thisDayDate.getDay() === 0;
6034
6077
  const isDisabled = minDate && thisDayDate.getTime() < minDate.getTime() || maxDate && thisDayDate.getTime() > maxDate.getTime();
6035
- return /* @__PURE__ */ jsxs11(
6078
+ return /* @__PURE__ */ jsxs12(
6036
6079
  Div_default.row,
6037
6080
  {
6038
6081
  position: "relative",
@@ -6076,7 +6119,7 @@ function Calendar({ value, minDate, maxDate, onChange }) {
6076
6119
  );
6077
6120
  })
6078
6121
  ] }),
6079
- /* @__PURE__ */ jsxs11(Div_default.row, { width: "100%", justifyContent: "space-between", alignItems: "center", children: [
6122
+ /* @__PURE__ */ jsxs12(Div_default.row, { width: "100%", justifyContent: "space-between", alignItems: "center", children: [
6080
6123
  /* @__PURE__ */ jsx16(Div_default, { isTabAccessed: true, cursor: "pointer", onClick: onClickClear, children: /* @__PURE__ */ jsx16(
6081
6124
  Text_default,
6082
6125
  {
@@ -6103,7 +6146,7 @@ function Calendar({ value, minDate, maxDate, onChange }) {
6103
6146
  var Calendar_default = memo17(Calendar);
6104
6147
 
6105
6148
  // src/components/InputField.tsx
6106
- import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
6149
+ import { jsx as jsx17, jsxs as jsxs13 } from "react/jsx-runtime";
6107
6150
  var buttonWidth = 50;
6108
6151
  var colorPickerSpacing = 4;
6109
6152
  var colorPickerColorWidth = 12 + 27 + colorPickerSpacing;
@@ -6321,9 +6364,9 @@ var InputFieldComponent = forwardRef11(function InputField({
6321
6364
  onChangeValue?.(debouncedValue);
6322
6365
  }, [withDebounce, onChangeValue, debouncedValue]);
6323
6366
  const readyId = id ?? internalId;
6324
- return /* @__PURE__ */ jsxs12(Div_default.column, { width: "100%", gap: theme2.styles.gap / 2, ...styledComponentStylesWithExcluded, children: [
6367
+ return /* @__PURE__ */ jsxs13(Div_default.column, { width: "100%", gap: theme2.styles.gap / 2, ...styledComponentStylesWithExcluded, children: [
6325
6368
  label && /* @__PURE__ */ jsx17(Label_default, { text: label, color: labelColor, required, isError: !!errorText, htmlFor: readyId }),
6326
- /* @__PURE__ */ jsxs12(Div_default.row, { alignItems: "stretch", width: "100%", children: [
6369
+ /* @__PURE__ */ jsxs13(Div_default.row, { alignItems: "stretch", width: "100%", children: [
6327
6370
  prefix && /* @__PURE__ */ jsx17(
6328
6371
  Div_default.row,
6329
6372
  {
@@ -6338,7 +6381,7 @@ var InputFieldComponent = forwardRef11(function InputField({
6338
6381
  children: prefix
6339
6382
  }
6340
6383
  ),
6341
- /* @__PURE__ */ jsxs12(Div_default, { position: "relative", width: "100%", height: "fit-content", ref: holderRef, children: [
6384
+ /* @__PURE__ */ jsxs13(Div_default, { position: "relative", width: "100%", height: "fit-content", ref: holderRef, children: [
6342
6385
  leftIcon && /* @__PURE__ */ jsx17(
6343
6386
  Icon_default,
6344
6387
  {
@@ -6448,9 +6491,9 @@ InputFieldComponent.multiline = forwardRef11(function Multiline({
6448
6491
  [onChange, onChangeValue]
6449
6492
  );
6450
6493
  const readyId = id ?? internalId;
6451
- return /* @__PURE__ */ jsxs12(Div_default.column, { gap: theme2.styles.gap / 2, children: [
6494
+ return /* @__PURE__ */ jsxs13(Div_default.column, { gap: theme2.styles.gap / 2, children: [
6452
6495
  label && /* @__PURE__ */ jsx17(Label_default, { text: label, required, isError: !!errorText, htmlFor: readyId }),
6453
- /* @__PURE__ */ jsxs12(Div_default, { position: "relative", width: "100%", children: [
6496
+ /* @__PURE__ */ jsxs13(Div_default, { position: "relative", width: "100%", children: [
6454
6497
  leftIcon && /* @__PURE__ */ jsx17(
6455
6498
  Icon_default,
6456
6499
  {
@@ -6594,7 +6637,7 @@ InputFieldComponent.phoneNumber = forwardRef11(function PhoneNumber({ label, val
6594
6637
  const [dropdownValue, setDropdownValue] = useState7();
6595
6638
  const [inputFieldValue, setInputFieldValue] = useState7(value?.toString() ?? "");
6596
6639
  const renderOption = useCallback9(
6597
- (option, index, isSelected) => /* @__PURE__ */ jsxs12(Div_default.row, { alignItems: "center", gap: theme2.styles.gap, children: [
6640
+ (option, index, isSelected) => /* @__PURE__ */ jsxs13(Div_default.row, { alignItems: "center", gap: theme2.styles.gap, children: [
6598
6641
  /* @__PURE__ */ jsx17(Image_default, { src: `https://flagcdn.com/w80/${option.data?.code.toString().toLowerCase()}.webp`, width: 20 }),
6599
6642
  /* @__PURE__ */ jsx17(Text_default, { children: option.label })
6600
6643
  ] }),
@@ -6639,7 +6682,7 @@ InputFieldComponent.phoneNumber = forwardRef11(function PhoneNumber({ label, val
6639
6682
  setInputFieldValue(newValue.slice(country?.phoneNumberExtension.length + 1));
6640
6683
  }, [value]);
6641
6684
  const readyId = id ?? internalId;
6642
- return /* @__PURE__ */ jsxs12(Div_default.column, { width: "100%", gap: theme2.styles.gap / 2, children: [
6685
+ return /* @__PURE__ */ jsxs13(Div_default.column, { width: "100%", gap: theme2.styles.gap / 2, children: [
6643
6686
  label && /* @__PURE__ */ jsx17(
6644
6687
  Label_default,
6645
6688
  {
@@ -6650,7 +6693,7 @@ InputFieldComponent.phoneNumber = forwardRef11(function PhoneNumber({ label, val
6650
6693
  htmlFor: readyId
6651
6694
  }
6652
6695
  ),
6653
- /* @__PURE__ */ jsxs12(Div_default.row, { children: [
6696
+ /* @__PURE__ */ jsxs13(Div_default.row, { children: [
6654
6697
  /* @__PURE__ */ jsx17(
6655
6698
  Dropdown_default,
6656
6699
  {
@@ -6785,9 +6828,9 @@ InputFieldComponent.dateTime = forwardRef11(function DateTime({ minDate, maxDate
6785
6828
  overflow: "hidden",
6786
6829
  userSelect: "none",
6787
6830
  ...insideInputFieldComponentProps,
6788
- children: /* @__PURE__ */ jsxs12(Div_default.row, { gap: theme2.styles.space, children: [
6831
+ children: /* @__PURE__ */ jsxs13(Div_default.row, { gap: theme2.styles.space, children: [
6789
6832
  /* @__PURE__ */ jsx17(Calendar_default, { value: internalValue, minDate, maxDate, onChange }),
6790
- /* @__PURE__ */ jsxs12(
6833
+ /* @__PURE__ */ jsxs13(
6791
6834
  Div_default.row,
6792
6835
  {
6793
6836
  height: 276,
@@ -6796,7 +6839,7 @@ InputFieldComponent.dateTime = forwardRef11(function DateTime({ minDate, maxDate
6796
6839
  paddingBottom: theme2.styles.space / 2,
6797
6840
  paddingRight: theme2.styles.space / 2,
6798
6841
  children: [
6799
- /* @__PURE__ */ jsxs12(Div_default, { height: "100%", children: [
6842
+ /* @__PURE__ */ jsxs13(Div_default, { height: "100%", children: [
6800
6843
  /* @__PURE__ */ jsx17(Text_default, { fontSize: 14, fontWeight: 700, textAlign: "center", marginBottom: theme2.styles.gap / 2, children: "H" }),
6801
6844
  /* @__PURE__ */ jsx17(
6802
6845
  Div_default,
@@ -6830,7 +6873,7 @@ InputFieldComponent.dateTime = forwardRef11(function DateTime({ minDate, maxDate
6830
6873
  }
6831
6874
  )
6832
6875
  ] }),
6833
- /* @__PURE__ */ jsxs12(Div_default, { height: "100%", children: [
6876
+ /* @__PURE__ */ jsxs13(Div_default, { height: "100%", children: [
6834
6877
  /* @__PURE__ */ jsx17(Text_default, { fontSize: 14, fontWeight: 700, textAlign: "center", marginBottom: theme2.styles.gap / 2, children: "M" }),
6835
6878
  /* @__PURE__ */ jsx17(
6836
6879
  Div_default,
@@ -6927,7 +6970,7 @@ InputFieldComponent.time = forwardRef11(function Time({ ...props }, ref) {
6927
6970
  overflowY: "auto",
6928
6971
  userSelect: "none",
6929
6972
  ...insideInputFieldComponentProps,
6930
- children: /* @__PURE__ */ jsxs12(Div_default.row, { height: "100%", children: [
6973
+ children: /* @__PURE__ */ jsxs13(Div_default.row, { height: "100%", children: [
6931
6974
  /* @__PURE__ */ jsx17(
6932
6975
  Div_default,
6933
6976
  {
@@ -7052,7 +7095,7 @@ var InputField_default = InputField2;
7052
7095
  // src/components/ToggleInput.tsx
7053
7096
  import { forwardRef as forwardRef12, useCallback as useCallback10, useId as useId3, useState as useState8 } from "react";
7054
7097
  import styled11 from "styled-components";
7055
- import { jsx as jsx18, jsxs as jsxs13 } from "react/jsx-runtime";
7098
+ import { jsx as jsx18, jsxs as jsxs14 } from "react/jsx-runtime";
7056
7099
  var componentSize = 26;
7057
7100
  var switchComponentBallGap = 3;
7058
7101
  var switchComponentMouseDownDifference = 4;
@@ -7183,10 +7226,10 @@ var ToggleInputComponent = forwardRef12(function ToggleInput({
7183
7226
  onChange?.(newIsChecked, value);
7184
7227
  }, [checked, controlledChecked, onChange, value]);
7185
7228
  const readyId = id ?? internalId;
7186
- return /* @__PURE__ */ jsxs13(Div_default.column, { gap: theme2.styles.gap, ...styledComponentStylesWithExcluded, children: [
7229
+ return /* @__PURE__ */ jsxs14(Div_default.column, { gap: theme2.styles.gap, ...styledComponentStylesWithExcluded, children: [
7187
7230
  label && /* @__PURE__ */ jsx18(Label_default, { text: label, color: labelColor, required, isError: !!errorText, htmlFor: readyId }),
7188
- /* @__PURE__ */ jsxs13(Div_default.row, { alignItems: "center", gap: theme2.styles.gap, children: [
7189
- /* @__PURE__ */ jsxs13(Div_default.row, { position: "relative", alignItems: "center", children: [
7231
+ /* @__PURE__ */ jsxs14(Div_default.row, { alignItems: "center", gap: theme2.styles.gap, children: [
7232
+ /* @__PURE__ */ jsxs14(Div_default.row, { position: "relative", alignItems: "center", children: [
7190
7233
  /* @__PURE__ */ jsx18(
7191
7234
  InputElement2,
7192
7235
  {
@@ -7231,15 +7274,15 @@ var ToggleInputComponent = forwardRef12(function ToggleInput({
7231
7274
  }
7232
7275
  ) : void 0
7233
7276
  ] }),
7234
- text ? /* @__PURE__ */ jsxs13(Text_default, { color, userSelect: "none", cursor: "pointer", onClick: onClickText, children: [
7277
+ text ? /* @__PURE__ */ jsxs14(Text_default, { color, userSelect: "none", cursor: "pointer", onClick: onClickText, children: [
7235
7278
  text,
7236
- required && !label && /* @__PURE__ */ jsxs13(Text_default, { as: "span", fontSize: 16, color: theme2.colors.error, children: [
7279
+ required && !label && /* @__PURE__ */ jsxs14(Text_default, { as: "span", fontSize: 16, color: theme2.colors.error, children: [
7237
7280
  " ",
7238
7281
  "*"
7239
7282
  ] })
7240
- ] }) : textAdvanced ? /* @__PURE__ */ jsxs13(Div_default.row, { userSelect: "none", cursor: "pointer", onClick: onClickText, children: [
7283
+ ] }) : textAdvanced ? /* @__PURE__ */ jsxs14(Div_default.row, { userSelect: "none", cursor: "pointer", onClick: onClickText, children: [
7241
7284
  textAdvanced,
7242
- required && !label && /* @__PURE__ */ jsxs13(Text_default, { as: "span", fontSize: 16, color: theme2.colors.error, marginLeft: 4, children: [
7285
+ required && !label && /* @__PURE__ */ jsxs14(Text_default, { as: "span", fontSize: 16, color: theme2.colors.error, marginLeft: 4, children: [
7243
7286
  " ",
7244
7287
  "*"
7245
7288
  ] })
@@ -7294,7 +7337,7 @@ var ToggleInput_default = {
7294
7337
  onChange?.(newIsChecked, value);
7295
7338
  }, [disabled, checked, onChange, controlledChecked, value]);
7296
7339
  const readyId = id ?? internalId;
7297
- return /* @__PURE__ */ jsxs13(Div_default.column, { width: "fit-content", gap: theme2.styles.gap, ...styledComponentStylesWithExcluded, children: [
7340
+ return /* @__PURE__ */ jsxs14(Div_default.column, { width: "fit-content", gap: theme2.styles.gap, ...styledComponentStylesWithExcluded, children: [
7298
7341
  label && /* @__PURE__ */ jsx18(Label_default, { text: label, color: labelColor, required, isError: !!errorText, htmlFor: readyId }),
7299
7342
  /* @__PURE__ */ jsx18(
7300
7343
  Div_default.row,
@@ -7345,7 +7388,7 @@ var ToggleInput_default = {
7345
7388
 
7346
7389
  // src/components/Form.tsx
7347
7390
  import { Children, forwardRef as forwardRef13, Fragment as Fragment5, memo as memo19, useMemo as useMemo7 } from "react";
7348
- import { jsx as jsx19, jsxs as jsxs14 } from "react/jsx-runtime";
7391
+ import { jsx as jsx19, jsxs as jsxs15 } from "react/jsx-runtime";
7349
7392
  var FormComponent = forwardRef13(function Form({
7350
7393
  form,
7351
7394
  submitButtonText,
@@ -7373,12 +7416,12 @@ var FormComponent = forwardRef13(function Form({
7373
7416
  }, [form]);
7374
7417
  const SubmitButtonTag = isDestructive ? Button_default.destructive : Button_default;
7375
7418
  const submitButtonIsDisabledFinal = submitButtonIsDisabled || submitButtonIsDisabledInternal;
7376
- return /* @__PURE__ */ jsx19(Div_default, { width: "100%", ...props, children: /* @__PURE__ */ jsxs14("form", { onSubmit: onSubmit ?? form?.onSubmit, ref, children: [
7377
- 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__ */ jsxs14(Fragment5, { children: [
7419
+ return /* @__PURE__ */ jsx19(Div_default, { width: "100%", ...props, children: /* @__PURE__ */ jsxs15("form", { onSubmit: onSubmit ?? form?.onSubmit, ref, children: [
7420
+ 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: [
7378
7421
  child,
7379
7422
  index < Children.toArray(children).length - 1 && /* @__PURE__ */ jsx19(Divider_default.horizontal, {})
7380
7423
  ] }, index)) : children }) : children,
7381
- submitButtonText && /* @__PURE__ */ jsxs14(
7424
+ submitButtonText && /* @__PURE__ */ jsxs15(
7382
7425
  Div_default.row,
7383
7426
  {
7384
7427
  alignItems: "center",
@@ -7409,13 +7452,13 @@ var Form_default = Form2;
7409
7452
 
7410
7453
  // src/components/FormRow.tsx
7411
7454
  import { forwardRef as forwardRef14, memo as memo20 } from "react";
7412
- import { jsx as jsx20, jsxs as jsxs15 } from "react/jsx-runtime";
7455
+ import { jsx as jsx20, jsxs as jsxs16 } from "react/jsx-runtime";
7413
7456
  var FormRowComponent = forwardRef14(function FormRow({ oneItemOnly, noBreakingPoint, asColumn, gap, children, ...props }, ref) {
7414
7457
  const theme2 = useTheme();
7415
7458
  const mediaQuery = useMediaQuery();
7416
7459
  const breakingPoint = asColumn ?? (!noBreakingPoint ? mediaQuery.size900 : false);
7417
7460
  const readyGap = breakingPoint || noBreakingPoint && mediaQuery.size900 ? theme2.styles.gap : theme2.styles.space * 2;
7418
- return /* @__PURE__ */ jsxs15(Div_default.row, { alignItems: "center", gap: gap ?? readyGap, invertFlexDirection: breakingPoint, ...props, ref, children: [
7461
+ return /* @__PURE__ */ jsxs16(Div_default.row, { alignItems: "center", gap: gap ?? readyGap, invertFlexDirection: breakingPoint, ...props, ref, children: [
7419
7462
  children,
7420
7463
  oneItemOnly && /* @__PURE__ */ jsx20(Div_default, { width: "100%" })
7421
7464
  ] });
@@ -7436,16 +7479,16 @@ FormRowComponent.withTitle = forwardRef14(function WithTitle({
7436
7479
  const theme2 = useTheme();
7437
7480
  const mediaQuery = useMediaQuery();
7438
7481
  const titleGap = theme2.styles.space;
7439
- return /* @__PURE__ */ jsxs15(FormRowComponent, { ...props, ref, children: [
7440
- /* @__PURE__ */ jsxs15(Div_default.row, { width: "100%", alignItems: "center", gap: titleGap, children: [
7482
+ return /* @__PURE__ */ jsxs16(FormRowComponent, { ...props, ref, children: [
7483
+ /* @__PURE__ */ jsxs16(Div_default.row, { width: "100%", alignItems: "center", gap: titleGap, children: [
7441
7484
  icon && /* @__PURE__ */ jsx20(Icon_default, { name: icon }),
7442
- /* @__PURE__ */ jsxs15(Div_default.column, { flex: 1, gap: theme2.styles.gap / 2, children: [
7485
+ /* @__PURE__ */ jsxs16(Div_default.column, { flex: 1, gap: theme2.styles.gap / 2, children: [
7443
7486
  /* @__PURE__ */ jsx20(Text_default, { as: "h3", children: title }),
7444
7487
  description && /* @__PURE__ */ jsx20(Text_default, { color: theme2.colors.textSecondary, children: description })
7445
7488
  ] }),
7446
7489
  isLoading && /* @__PURE__ */ jsx20(Div_default, { width: 26 - titleGap })
7447
7490
  ] }),
7448
- /* @__PURE__ */ jsxs15(
7491
+ /* @__PURE__ */ jsxs16(
7449
7492
  Div_default.row,
7450
7493
  {
7451
7494
  position: "relative",
@@ -7466,7 +7509,7 @@ FormRowComponent.withTitle = forwardRef14(function WithTitle({
7466
7509
  }
7467
7510
  ),
7468
7511
  children,
7469
- withActions && /* @__PURE__ */ jsxs15(Div_default.row, { alignItems: "center", gap: theme2.styles.gap, children: [
7512
+ withActions && /* @__PURE__ */ jsxs16(Div_default.row, { alignItems: "center", gap: theme2.styles.gap, children: [
7470
7513
  onClickReset && /* @__PURE__ */ jsx20(Button_default.icon, { icon: "XMark", loaderName: resetButtonLoaderName, onClick: onClickReset }),
7471
7514
  /* @__PURE__ */ jsx20(Button_default.icon, { icon: "check", loaderName: saveButtonLoaderName, onClick: onClickSave })
7472
7515
  ] })
@@ -7481,7 +7524,7 @@ var FormRow_default = FormRow2;
7481
7524
 
7482
7525
  // src/components/ColorThemeSwitch.tsx
7483
7526
  import { memo as memo21, useEffect as useEffect9 } from "react";
7484
- import { jsx as jsx21, jsxs as jsxs16 } from "react/jsx-runtime";
7527
+ import { jsx as jsx21, jsxs as jsxs17 } from "react/jsx-runtime";
7485
7528
  var ColorThemeSwitchComponent = function ColorThemeSwitch({
7486
7529
  withMoon,
7487
7530
  className,
@@ -7523,7 +7566,7 @@ var ColorThemeSwitchComponent = function ColorThemeSwitch({
7523
7566
  };
7524
7567
  ColorThemeSwitchComponent.withText = function WithText({ withMoon, className, ...props }) {
7525
7568
  const theme2 = useTheme();
7526
- return /* @__PURE__ */ jsxs16(Div_default.row, { width: "fit-content", alignItems: "center", gap: theme2.styles.gap, userSelect: "none", ...props, children: [
7569
+ return /* @__PURE__ */ jsxs17(Div_default.row, { width: "fit-content", alignItems: "center", gap: theme2.styles.gap, userSelect: "none", ...props, children: [
7527
7570
  /* @__PURE__ */ jsx21(Text_default, { children: "Light" }),
7528
7571
  /* @__PURE__ */ jsx21(ColorThemeSwitchComponent, { withMoon, className }),
7529
7572
  /* @__PURE__ */ jsx21(Text_default, { children: "Dark" })
@@ -7546,7 +7589,7 @@ import {
7546
7589
  Fragment as Fragment6
7547
7590
  } from "react";
7548
7591
  import styled12, { css as css2 } from "styled-components";
7549
- import { Fragment as Fragment7, jsx as jsx22, jsxs as jsxs17 } from "react/jsx-runtime";
7592
+ import { Fragment as Fragment7, jsx as jsx22, jsxs as jsxs18 } from "react/jsx-runtime";
7550
7593
  var defaultImageWidth = 160;
7551
7594
  var maximumVisiblePages = 11;
7552
7595
  var TableStyledComponent = styled12.table.withConfig({
@@ -8075,7 +8118,7 @@ var TableComponent = forwardRef15(function Table({
8075
8118
  );
8076
8119
  const withFooter = pageSize !== void 0 && pageCountInternal > 1;
8077
8120
  const mobileFooterBreakingPoint = mediaQuery.size700 && pageCountInternal > maximumVisiblePages / 1.4;
8078
- return /* @__PURE__ */ jsxs17(Fragment7, { children: [
8121
+ return /* @__PURE__ */ jsxs18(Fragment7, { children: [
8079
8122
  /* @__PURE__ */ jsx22(
8080
8123
  Div_default,
8081
8124
  {
@@ -8084,7 +8127,7 @@ var TableComponent = forwardRef15(function Table({
8084
8127
  overflow: !containsOverflowComponents ? "auto" : void 0,
8085
8128
  ...props,
8086
8129
  ref: wrapperComponentRef,
8087
- children: /* @__PURE__ */ jsxs17(
8130
+ children: /* @__PURE__ */ jsxs18(
8088
8131
  TableStyledComponent,
8089
8132
  {
8090
8133
  isStriped,
@@ -8102,7 +8145,7 @@ var TableComponent = forwardRef15(function Table({
8102
8145
  minWidth: column.minWidth,
8103
8146
  maxWidth: column.maxWidth,
8104
8147
  textAlign: column.align,
8105
- children: /* @__PURE__ */ jsxs17(
8148
+ children: /* @__PURE__ */ jsxs18(
8106
8149
  Div_default.row,
8107
8150
  {
8108
8151
  width: "100%",
@@ -8133,7 +8176,7 @@ var TableComponent = forwardRef15(function Table({
8133
8176
  },
8134
8177
  column.type + column.label + index
8135
8178
  )) }) }),
8136
- /* @__PURE__ */ jsx22("tbody", { children: isLoading ? /* @__PURE__ */ jsx22("tr", { className: "withoutHover", children: /* @__PURE__ */ jsx22("td", { className: "noData", colSpan: columns.length, children: /* @__PURE__ */ jsx22(Loader_default.box, {}) }) }) : dataAfterPagination.length > 0 ? dataAfterPagination.map((item, rowIndex) => /* @__PURE__ */ jsxs17(Fragment6, { children: [
8179
+ /* @__PURE__ */ jsx22("tbody", { children: isLoading ? /* @__PURE__ */ jsx22("tr", { className: "withoutHover", children: /* @__PURE__ */ jsx22("td", { className: "noData", colSpan: columns.length, children: /* @__PURE__ */ jsx22(Loader_default.box, {}) }) }) : dataAfterPagination.length > 0 ? dataAfterPagination.map((item, rowIndex) => /* @__PURE__ */ jsxs18(Fragment6, { children: [
8137
8180
  /* @__PURE__ */ jsx22(
8138
8181
  "tr",
8139
8182
  {
@@ -8155,7 +8198,7 @@ var TableComponent = forwardRef15(function Table({
8155
8198
  ),
8156
8199
  expandedRows[rowIndex] && /* @__PURE__ */ jsx22("tr", { className: "withoutHover isExpandRow", children: /* @__PURE__ */ jsx22("td", { colSpan: columns.length, children: renderExpandedRow(item, rowIndex) }) })
8157
8200
  ] }, JSON.stringify(item) + rowIndex)) : /* @__PURE__ */ jsx22("tr", { className: "withoutHover", children: /* @__PURE__ */ jsx22("td", { className: "noData", colSpan: columns.length, children: /* @__PURE__ */ jsx22(Text_default.unknown, { children: noDataItemsMessage }) }) }) }),
8158
- withFooter && /* @__PURE__ */ jsx22("tfoot", { children: /* @__PURE__ */ jsx22("tr", { className: "isFooter", children: /* @__PURE__ */ jsx22("td", { colSpan: columns.length, children: /* @__PURE__ */ jsxs17(
8201
+ withFooter && /* @__PURE__ */ jsx22("tfoot", { children: /* @__PURE__ */ jsx22("tr", { className: "isFooter", children: /* @__PURE__ */ jsx22("td", { colSpan: columns.length, children: /* @__PURE__ */ jsxs18(
8159
8202
  Div_default.column,
8160
8203
  {
8161
8204
  position: "relative",
@@ -8164,7 +8207,7 @@ var TableComponent = forwardRef15(function Table({
8164
8207
  flexReverse: true,
8165
8208
  gap: theme2.styles.gap / 2,
8166
8209
  children: [
8167
- /* @__PURE__ */ jsxs17(
8210
+ /* @__PURE__ */ jsxs18(
8168
8211
  Text_default,
8169
8212
  {
8170
8213
  position: mobileFooterBreakingPoint ? "relative" : "absolute",
@@ -8179,7 +8222,7 @@ var TableComponent = forwardRef15(function Table({
8179
8222
  ]
8180
8223
  }
8181
8224
  ),
8182
- /* @__PURE__ */ jsxs17(Div_default.row, { alignItems: "center", justifyContent: "center", gap: theme2.styles.gap * 2, children: [
8225
+ /* @__PURE__ */ jsxs18(Div_default.row, { alignItems: "center", justifyContent: "center", gap: theme2.styles.gap * 2, children: [
8183
8226
  pageCountInternal > maximumVisiblePages && /* @__PURE__ */ jsx22(
8184
8227
  Button_default.icon,
8185
8228
  {
@@ -8268,12 +8311,12 @@ var TableComponent = forwardRef15(function Table({
8268
8311
  submitButtonText: "Filter",
8269
8312
  cancelButtonText: "Clear",
8270
8313
  onClickCancel: openedFilterData ? onClickCancelFormFilter : void 0,
8271
- children: /* @__PURE__ */ jsxs17(FormRow_default, { children: [
8314
+ children: /* @__PURE__ */ jsxs18(FormRow_default, { children: [
8272
8315
  /* @__PURE__ */ jsx22(InputField_default, { type: "number", label: "Min", ...filterForm.getInputFieldProps("min") }),
8273
8316
  /* @__PURE__ */ jsx22(InputField_default, { type: "number", label: "Max", ...filterForm.getInputFieldProps("max") })
8274
8317
  ] })
8275
8318
  }
8276
- ) : openedFilterColumn.filter === "date" || openedFilterColumn.filter === "date-time" ? /* @__PURE__ */ jsxs17(
8319
+ ) : openedFilterColumn.filter === "date" || openedFilterColumn.filter === "date-time" ? /* @__PURE__ */ jsxs18(
8277
8320
  Form_default,
8278
8321
  {
8279
8322
  form: filterForm,
@@ -8282,14 +8325,14 @@ var TableComponent = forwardRef15(function Table({
8282
8325
  cancelButtonText: "Clear",
8283
8326
  onClickCancel: openedFilterData ? onClickCancelFormFilter : void 0,
8284
8327
  children: [
8285
- /* @__PURE__ */ jsx22(FormRow_default, { children: openedFilterColumn.filter === "date" ? /* @__PURE__ */ jsxs17(Fragment7, { children: [
8328
+ /* @__PURE__ */ jsx22(FormRow_default, { children: openedFilterColumn.filter === "date" ? /* @__PURE__ */ jsxs18(Fragment7, { children: [
8286
8329
  /* @__PURE__ */ jsx22(InputField_default.date, { label: "Min", ...filterForm.getInputFieldProps("min") }),
8287
8330
  /* @__PURE__ */ jsx22(InputField_default.date, { label: "Max", ...filterForm.getInputFieldProps("max") })
8288
- ] }) : /* @__PURE__ */ jsxs17(Fragment7, { children: [
8331
+ ] }) : /* @__PURE__ */ jsxs18(Fragment7, { children: [
8289
8332
  /* @__PURE__ */ jsx22(InputField_default.dateTime, { label: "Min", ...filterForm.getInputFieldProps("min") }),
8290
8333
  /* @__PURE__ */ jsx22(InputField_default.dateTime, { label: "Max", ...filterForm.getInputFieldProps("max") })
8291
8334
  ] }) }),
8292
- openedFilterColumn.presets && /* @__PURE__ */ jsxs17(Div_default.column, { gap: theme2.styles.gap / 2, children: [
8335
+ openedFilterColumn.presets && /* @__PURE__ */ jsxs18(Div_default.column, { gap: theme2.styles.gap / 2, children: [
8293
8336
  /* @__PURE__ */ jsx22(Label_default, { text: "Presets" }),
8294
8337
  /* @__PURE__ */ jsx22(Div_default.row, { alignItems: "center", flexWrap: "wrap", gap: theme2.styles.gap, children: openedFilterColumn.presets.map((preset) => /* @__PURE__ */ jsx22(
8295
8338
  Button_default.secondary,
@@ -8304,13 +8347,13 @@ var TableComponent = forwardRef15(function Table({
8304
8347
  ] })
8305
8348
  ]
8306
8349
  }
8307
- ) : openedFilterColumn.filter === "list" ? /* @__PURE__ */ jsxs17(
8350
+ ) : openedFilterColumn.filter === "list" ? /* @__PURE__ */ jsxs18(
8308
8351
  Form_default,
8309
8352
  {
8310
8353
  gap: theme2.styles.space,
8311
8354
  submitButtonText: "Filter",
8312
8355
  cancelButtonText: "Clear",
8313
- renderActionButtons: /* @__PURE__ */ jsxs17(Div_default.row, { marginRight: "auto", alignItems: "center", gap: theme2.styles.gap, children: [
8356
+ renderActionButtons: /* @__PURE__ */ jsxs18(Div_default.row, { marginRight: "auto", alignItems: "center", gap: theme2.styles.gap, children: [
8314
8357
  /* @__PURE__ */ jsx22(
8315
8358
  Button_default.secondary,
8316
8359
  {
@@ -8341,7 +8384,7 @@ var TableComponent = forwardRef15(function Table({
8341
8384
  ...filterForm.getInputFieldProps("search")
8342
8385
  }
8343
8386
  ) }),
8344
- /* @__PURE__ */ jsxs17(Div_default.column, { gap: theme2.styles.gap / 2, children: [
8387
+ /* @__PURE__ */ jsxs18(Div_default.column, { gap: theme2.styles.gap / 2, children: [
8345
8388
  /* @__PURE__ */ jsx22(Label_default, { text: "Possible values" }),
8346
8389
  /* @__PURE__ */ jsx22(Div_default.row, { flexWrap: "wrap", gap: theme2.styles.gap, children: possibleFilterListValues.length > 0 ? possibleFilterListValues.map((value) => {
8347
8390
  const isActive = filterListSelectedItems?.includes(value.value);
@@ -8351,9 +8394,9 @@ var TableComponent = forwardRef15(function Table({
8351
8394
  isActive,
8352
8395
  value: value.value,
8353
8396
  onClickWithValue: onClickFilterListItem,
8354
- children: /* @__PURE__ */ jsxs17(Div_default.row, { alignItems: "center", gap: theme2.styles.gap / 2, children: [
8397
+ children: /* @__PURE__ */ jsxs18(Div_default.row, { alignItems: "center", gap: theme2.styles.gap / 2, children: [
8355
8398
  /* @__PURE__ */ jsx22(Text_default, { children: value.label ?? value.value }),
8356
- openedFilterColumn.withTotalNumber && /* @__PURE__ */ jsxs17(
8399
+ openedFilterColumn.withTotalNumber && /* @__PURE__ */ jsxs18(
8357
8400
  Text_default,
8358
8401
  {
8359
8402
  fontSize: 14,
@@ -8385,7 +8428,7 @@ var Table_default = Table2;
8385
8428
  // src/components/Tooltip.tsx
8386
8429
  import { memo as memo23, useCallback as useCallback12, useRef as useRef7, useState as useState10, useEffect as useEffect11, forwardRef as forwardRef16, useImperativeHandle as useImperativeHandle3, useMemo as useMemo9 } from "react";
8387
8430
  import styled13, { css as css3 } from "styled-components";
8388
- import { jsx as jsx23, jsxs as jsxs18 } from "react/jsx-runtime";
8431
+ import { jsx as jsx23, jsxs as jsxs19 } from "react/jsx-runtime";
8389
8432
  var tooltipContainerStyle = (props) => ({
8390
8433
  top: css3`
8391
8434
  bottom: calc(100% + ${props.gap}px + ${props.arrowSize}px);
@@ -8621,7 +8664,7 @@ var TooltipComponent = forwardRef16(function Tooltip({
8621
8664
  },
8622
8665
  [isOpen, openTooltip, closeTooltip]
8623
8666
  );
8624
- return /* @__PURE__ */ jsxs18(
8667
+ return /* @__PURE__ */ jsxs19(
8625
8668
  Div_default,
8626
8669
  {
8627
8670
  position: "relative",
@@ -8653,7 +8696,7 @@ var TooltipComponent = forwardRef16(function Tooltip({
8653
8696
  isOpen,
8654
8697
  role: "tooltip",
8655
8698
  ref: tooltipContainerRef,
8656
- children: (isOpen || isOpenLate) && /* @__PURE__ */ jsxs18(Div_default, { position: "relative", ref: contentRef, children: [
8699
+ children: (isOpen || isOpenLate) && /* @__PURE__ */ jsxs19(Div_default, { position: "relative", ref: contentRef, children: [
8657
8700
  /* @__PURE__ */ jsx23(
8658
8701
  Div_default.box,
8659
8702
  {
@@ -8714,7 +8757,7 @@ TooltipComponent.item = forwardRef16(function Item({
8714
8757
  onClickWithValue
8715
8758
  }, ref) {
8716
8759
  const theme2 = useTheme();
8717
- return /* @__PURE__ */ jsxs18(
8760
+ return /* @__PURE__ */ jsxs19(
8718
8761
  Div_default.row,
8719
8762
  {
8720
8763
  alignItems: "center",
@@ -8733,7 +8776,7 @@ TooltipComponent.item = forwardRef16(function Item({
8733
8776
  ref,
8734
8777
  children: [
8735
8778
  icon && /* @__PURE__ */ jsx23(Icon_default, { name: icon, color: iconColor ?? (!isActive ? theme2.colors.textSecondary : void 0) }),
8736
- /* @__PURE__ */ jsxs18(Div_default.column, { flex: 1, gap: theme2.styles.gap / 2, children: [
8779
+ /* @__PURE__ */ jsxs19(Div_default.column, { flex: 1, gap: theme2.styles.gap / 2, children: [
8737
8780
  /* @__PURE__ */ jsx23(Text_default, { fontWeight: isActive ? 700 : void 0, color: textColor ?? theme2.colors.textPrimary, children: text }),
8738
8781
  description && /* @__PURE__ */ jsx23(Text_default, { fontSize: 14, color: theme2.colors.textSecondary, children: description })
8739
8782
  ] })
@@ -8769,7 +8812,7 @@ var Tooltip_default = Tooltip2;
8769
8812
 
8770
8813
  // src/components/Tabs.tsx
8771
8814
  import { forwardRef as forwardRef17, memo as memo24, useCallback as useCallback13, useEffect as useEffect12, useImperativeHandle as useImperativeHandle4, useMemo as useMemo10, useRef as useRef8, useState as useState11 } from "react";
8772
- import { jsx as jsx24, jsxs as jsxs19 } from "react/jsx-runtime";
8815
+ import { jsx as jsx24, jsxs as jsxs20 } from "react/jsx-runtime";
8773
8816
  var tabBottomLineWidth = 2;
8774
8817
  var tabDotSize = 6;
8775
8818
  var defaultTabName = "tab";
@@ -8868,11 +8911,11 @@ var TabsComponent = forwardRef17(function Tabs({ tabs, name, accentColor, style
8868
8911
  },
8869
8912
  [selectedTab, onClickTab]
8870
8913
  );
8871
- return /* @__PURE__ */ jsxs19(Div_default.column, { width: "100%", gap: theme2.styles.space, ...props, children: [
8872
- /* @__PURE__ */ jsxs19(Div_default, { position: "relative", className: "react-better-html-no-scrollbar", overflowY: "auto", children: [
8914
+ return /* @__PURE__ */ jsxs20(Div_default.column, { width: "100%", gap: theme2.styles.space, ...props, children: [
8915
+ /* @__PURE__ */ jsxs20(Div_default, { position: "relative", className: "react-better-html-no-scrollbar", overflowY: "auto", children: [
8873
8916
  /* @__PURE__ */ jsx24(Div_default.row, { position: "relative", width: "fit-content", gap: tabsGap, userSelect: "none", children: tabs.map((tab) => {
8874
8917
  const selected = tab === selectedTab;
8875
- return /* @__PURE__ */ jsxs19(
8918
+ return /* @__PURE__ */ jsxs20(
8876
8919
  Div_default,
8877
8920
  {
8878
8921
  position: "relative",
@@ -8960,7 +9003,7 @@ var Tabs_default = Tabs2;
8960
9003
 
8961
9004
  // src/components/Foldable.tsx
8962
9005
  import { forwardRef as forwardRef18, memo as memo25, useCallback as useCallback14, useEffect as useEffect13, useImperativeHandle as useImperativeHandle5, useRef as useRef9, useState as useState12 } from "react";
8963
- import { jsx as jsx25, jsxs as jsxs20 } from "react/jsx-runtime";
9006
+ import { jsx as jsx25, jsxs as jsxs21 } from "react/jsx-runtime";
8964
9007
  var animationDurationClose = 0.15;
8965
9008
  var animationDurationOpen = animationDurationClose * 2;
8966
9009
  var FoldableComponent = forwardRef18(function Foldable({
@@ -9029,8 +9072,8 @@ var FoldableComponent = forwardRef18(function Foldable({
9029
9072
  },
9030
9073
  [open, close, toggleOpen, isOpen]
9031
9074
  );
9032
- return /* @__PURE__ */ jsxs20(Div_default.column, { width: "100%", ...props, children: [
9033
- renderHeader ? renderHeader(isOpen, toggleOpen) : /* @__PURE__ */ jsxs20(
9075
+ return /* @__PURE__ */ jsxs21(Div_default.column, { width: "100%", ...props, children: [
9076
+ renderHeader ? renderHeader(isOpen, toggleOpen) : /* @__PURE__ */ jsxs21(
9034
9077
  Div_default.row,
9035
9078
  {
9036
9079
  width: "100%",
@@ -9042,10 +9085,10 @@ var FoldableComponent = forwardRef18(function Foldable({
9042
9085
  onClick: toggleOpen,
9043
9086
  userSelect: "none",
9044
9087
  children: [
9045
- /* @__PURE__ */ jsxs20(Div_default.row, { flex: 1, alignItems: "center", gap: theme2.styles.space, children: [
9088
+ /* @__PURE__ */ jsxs21(Div_default.row, { flex: 1, alignItems: "center", gap: theme2.styles.space, children: [
9046
9089
  icon && /* @__PURE__ */ jsx25(Icon_default, { name: icon, size: 20, flexShrink: 0 }),
9047
9090
  image && /* @__PURE__ */ jsx25(Image_default.profileImage, { name: image, size: 24, flexShrink: 0 }),
9048
- /* @__PURE__ */ jsxs20(Div_default.column, { gap: theme2.styles.gap / 2, children: [
9091
+ /* @__PURE__ */ jsxs21(Div_default.column, { gap: theme2.styles.gap / 2, children: [
9049
9092
  title && /* @__PURE__ */ jsx25(Text_default, { as: "h3", fontWeight: 700, lineHeight: "20px", children: title }),
9050
9093
  description && /* @__PURE__ */ jsx25(Text_default, { color: theme2.colors.textSecondary, children: description })
9051
9094
  ] })