react-better-html 1.1.241 → 1.1.243

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
@@ -1967,7 +1967,9 @@ var Loader_default = Loader2;
1967
1967
  // src/components/Button.tsx
1968
1968
  import { jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
1969
1969
  var ButtonElement = styled6.button.withConfig({
1970
- shouldForwardProp: (prop) => !["theme", "colorTheme", "style", "hoverStyle", "isSmall", "withText", "isLoading"].includes(prop)
1970
+ shouldForwardProp: (prop) => !["theme", "colorTheme", "style", "hoverStyle", "isSmall", "withText", "isLoading", "withNoBorder"].includes(
1971
+ prop
1972
+ )
1971
1973
  })`
1972
1974
  display: block;
1973
1975
  position: relative;
@@ -1997,7 +1999,11 @@ var ButtonElement = styled6.button.withConfig({
1997
1999
  }
1998
2000
 
1999
2001
  &.secondary:hover {
2000
- border-color: ${props.theme.colors.primary};
2002
+ ${props.withNoBorder ? css`
2003
+ filter: ${props.colorTheme === "dark" ? "brightness(1.2)" : "brightness(0.9)"};
2004
+ ` : css`
2005
+ border-color: ${props.theme.colors.primary};
2006
+ `}
2001
2007
  }
2002
2008
  ` : ""}
2003
2009
 
@@ -2095,6 +2101,7 @@ var ButtonComponent = function Button(buttonProps) {
2095
2101
  isSmall,
2096
2102
  withText: text !== void 0,
2097
2103
  isLoading: isLoadingElement,
2104
+ withNoBorder: theme2.styles.borderWidth === 0,
2098
2105
  disabled,
2099
2106
  to: href,
2100
2107
  href,
@@ -3511,7 +3518,7 @@ import {
3511
3518
  useTheme as useTheme19,
3512
3519
  useBetterCoreContext as useBetterCoreContext7
3513
3520
  } from "react-better-core";
3514
- import styled10 from "styled-components";
3521
+ import styled10, { css as css2 } from "styled-components";
3515
3522
 
3516
3523
  // src/components/Label.tsx
3517
3524
  import { memo as memo15 } from "react";
@@ -3583,6 +3590,7 @@ var DropdownComponent = forwardRef10(function Dropdown(dropdownProps, ref) {
3583
3590
  const {
3584
3591
  label,
3585
3592
  labelFontFamily,
3593
+ labelFontSize,
3586
3594
  labelLetterSpacing,
3587
3595
  labelTextTransform,
3588
3596
  labelColor,
@@ -3826,6 +3834,7 @@ var DropdownComponent = forwardRef10(function Dropdown(dropdownProps, ref) {
3826
3834
  {
3827
3835
  label,
3828
3836
  labelFontFamily,
3837
+ labelFontSize,
3829
3838
  labelLetterSpacing,
3830
3839
  labelTextTransform,
3831
3840
  labelColor,
@@ -4239,7 +4248,17 @@ var colorPickerSpacing = 4;
4239
4248
  var colorPickerColorWidth = 12 + 27 + colorPickerSpacing;
4240
4249
  var colorPickerValueWidth = 12 + 74 + colorPickerSpacing;
4241
4250
  var InputElement = styled10.input.withConfig({
4242
- shouldForwardProp: (prop) => !["theme", "withLeftIcon", "withRightIcon", "withPrefix", "withSuffix", "style", "hoverStyle"].includes(prop)
4251
+ shouldForwardProp: (prop) => ![
4252
+ "theme",
4253
+ "colorTheme",
4254
+ "withLeftIcon",
4255
+ "withRightIcon",
4256
+ "withPrefix",
4257
+ "withSuffix",
4258
+ "style",
4259
+ "hoverStyle",
4260
+ "withNoBorder"
4261
+ ].includes(prop)
4243
4262
  })`
4244
4263
  position: relative;
4245
4264
  width: 100%;
@@ -4265,7 +4284,11 @@ var InputElement = styled10.input.withConfig({
4265
4284
  }
4266
4285
 
4267
4286
  &:focus {
4268
- border-color: ${(props) => props.theme.colors.primary};
4287
+ ${(props) => props.withNoBorder ? css2`
4288
+ filter: ${props.colorTheme === "dark" ? "brightness(1.2)" : "brightness(0.9)"};
4289
+ ` : css2`
4290
+ border-color: ${props.theme.colors.primary};
4291
+ `}
4269
4292
  }
4270
4293
 
4271
4294
  &:disabled {
@@ -4361,7 +4384,7 @@ var InputElement = styled10.input.withConfig({
4361
4384
  }
4362
4385
  `;
4363
4386
  var TextareaElement = styled10.textarea.withConfig({
4364
- shouldForwardProp: (prop) => !["theme", "withLeftIcon", "withRightIcon", "style", "hoverStyle"].includes(prop)
4387
+ shouldForwardProp: (prop) => !["theme", "colorTheme", "withLeftIcon", "withRightIcon", "style", "hoverStyle", "withNoBorder"].includes(prop)
4365
4388
  })`
4366
4389
  width: 100%;
4367
4390
  min-height: 3lh;
@@ -4384,9 +4407,11 @@ var TextareaElement = styled10.textarea.withConfig({
4384
4407
  color: ${(props) => props.theme.colors.textSecondary}80;
4385
4408
  }
4386
4409
 
4387
- &:focus {
4388
- border-color: ${(props) => props.theme.colors.primary};
4389
- }
4410
+ ${(props) => props.withNoBorder ? css2`
4411
+ filter: ${props.colorTheme === "dark" ? "brightness(1.2)" : "brightness(0.9)"};
4412
+ ` : css2`
4413
+ border-color: ${props.theme.colors.primary};
4414
+ `}
4390
4415
 
4391
4416
  ${(props) => props.style}
4392
4417
 
@@ -4401,6 +4426,7 @@ var InputFieldComponent = forwardRef11(function InputField(inputFieldProps, ref)
4401
4426
  const {
4402
4427
  label,
4403
4428
  labelFontFamily,
4429
+ labelFontSize,
4404
4430
  labelLetterSpacing,
4405
4431
  labelTextTransform,
4406
4432
  labelColor,
@@ -4466,6 +4492,7 @@ var InputFieldComponent = forwardRef11(function InputField(inputFieldProps, ref)
4466
4492
  {
4467
4493
  text: label,
4468
4494
  fontFamily: labelFontFamily,
4495
+ fontSize: labelFontSize,
4469
4496
  letterSpacing: labelLetterSpacing,
4470
4497
  textTransform: labelTextTransform,
4471
4498
  color: labelColor,
@@ -4508,6 +4535,7 @@ var InputFieldComponent = forwardRef11(function InputField(inputFieldProps, ref)
4508
4535
  InputElement,
4509
4536
  {
4510
4537
  theme: theme2,
4538
+ colorTheme,
4511
4539
  withLeftIcon: leftIcon !== void 0,
4512
4540
  withRightIcon: rightIcon !== void 0,
4513
4541
  withPrefix: prefix !== void 0,
@@ -4518,6 +4546,7 @@ var InputFieldComponent = forwardRef11(function InputField(inputFieldProps, ref)
4518
4546
  onChange: onChangeElement,
4519
4547
  style,
4520
4548
  hoverStyle,
4549
+ withNoBorder: theme2.styles.borderWidth === 0,
4521
4550
  ...restProps,
4522
4551
  ...dataProps,
4523
4552
  ...ariaProps,
@@ -4580,6 +4609,7 @@ InputFieldComponent.multiline = forwardRef11(function Multiline(inputFieldProps,
4580
4609
  const {
4581
4610
  label,
4582
4611
  labelFontFamily,
4612
+ labelFontSize,
4583
4613
  labelLetterSpacing,
4584
4614
  labelTextTransform,
4585
4615
  labelColor,
@@ -4601,6 +4631,7 @@ InputFieldComponent.multiline = forwardRef11(function Multiline(inputFieldProps,
4601
4631
  );
4602
4632
  const theme2 = useTheme19();
4603
4633
  const internalId = useId2();
4634
+ const { colorTheme } = useBetterCoreContext7();
4604
4635
  const { style, hoverStyle, restProps } = useComponentPropsGrouper(props);
4605
4636
  const dataProps = useComponentPropsWithPrefix(restProps, "data");
4606
4637
  const ariaProps = useComponentPropsWithPrefix(restProps, "aria");
@@ -4618,6 +4649,7 @@ InputFieldComponent.multiline = forwardRef11(function Multiline(inputFieldProps,
4618
4649
  {
4619
4650
  text: label,
4620
4651
  fontFamily: labelFontFamily,
4652
+ fontSize: labelFontSize,
4621
4653
  letterSpacing: labelLetterSpacing,
4622
4654
  textTransform: labelTextTransform,
4623
4655
  color: labelColor,
@@ -4642,6 +4674,7 @@ InputFieldComponent.multiline = forwardRef11(function Multiline(inputFieldProps,
4642
4674
  TextareaElement,
4643
4675
  {
4644
4676
  theme: theme2,
4677
+ colorTheme,
4645
4678
  withLeftIcon: leftIcon !== void 0,
4646
4679
  withRightIcon: rightIcon !== void 0,
4647
4680
  required,
@@ -4650,6 +4683,7 @@ InputFieldComponent.multiline = forwardRef11(function Multiline(inputFieldProps,
4650
4683
  id: readyId,
4651
4684
  style,
4652
4685
  hoverStyle,
4686
+ withNoBorder: theme2.styles.borderWidth === 0,
4653
4687
  ...restProps,
4654
4688
  ...dataProps,
4655
4689
  ...ariaProps,
@@ -4785,6 +4819,7 @@ InputFieldComponent.phoneNumber = forwardRef11(function PhoneNumber(inputFieldPr
4785
4819
  const {
4786
4820
  label,
4787
4821
  labelFontFamily,
4822
+ labelFontSize,
4788
4823
  labelLetterSpacing,
4789
4824
  labelTextTransform,
4790
4825
  labelColor,
@@ -4857,6 +4892,7 @@ InputFieldComponent.phoneNumber = forwardRef11(function PhoneNumber(inputFieldPr
4857
4892
  {
4858
4893
  text: readyLabel,
4859
4894
  fontFamily: betterHtmlContextInternal.components.inputField?.style?.phoneNumber?.labelFontFamily ?? labelFontFamily,
4895
+ fontSize: betterHtmlContextInternal.components.inputField?.style?.phoneNumber?.labelFontSize ?? labelFontSize,
4860
4896
  letterSpacing: betterHtmlContextInternal.components.inputField?.style?.phoneNumber?.labelLetterSpacing ?? labelLetterSpacing,
4861
4897
  textTransform: betterHtmlContextInternal.components.inputField?.style?.phoneNumber?.labelTextTransform ?? labelTextTransform,
4862
4898
  color: betterHtmlContextInternal.components.inputField?.style?.phoneNumber?.labelColor ?? labelColor,
@@ -5399,19 +5435,19 @@ var InputField_default = InputField2;
5399
5435
 
5400
5436
  // src/components/ToggleInput.tsx
5401
5437
  import { forwardRef as forwardRef12, useCallback as useCallback11, useId as useId3, useState as useState8 } from "react";
5402
- import { useBooleanState as useBooleanState6, useTheme as useTheme20 } from "react-better-core";
5403
- import styled11 from "styled-components";
5438
+ import { useBetterCoreContext as useBetterCoreContext8, useBooleanState as useBooleanState6, useTheme as useTheme20 } from "react-better-core";
5439
+ import styled11, { css as css3 } from "styled-components";
5404
5440
  import { jsx as jsx18, jsxs as jsxs15 } from "react/jsx-runtime";
5405
5441
  var componentSize = 26;
5406
5442
  var switchComponentBallGap = 3;
5407
5443
  var switchComponentMouseDownDifference = 4;
5408
5444
  var InputElement2 = styled11.input.withConfig({
5409
- shouldForwardProp: (prop) => !["theme", "style", "hoverStyle"].includes(prop)
5445
+ shouldForwardProp: (prop) => !["theme", "colorTheme", "style", "hoverStyle", "size", "withNoBorder"].includes(prop)
5410
5446
  })`
5411
5447
  position: relative;
5412
5448
  appearance: none;
5413
- width: ${componentSize}px;
5414
- height: ${componentSize}px;
5449
+ width: ${(props) => props.size ?? componentSize}px;
5450
+ height: ${(props) => props.size ?? componentSize}px;
5415
5451
  background-color: ${(props) => props.theme.colors.backgroundContent};
5416
5452
  border: ${(props) => props.theme.styles.borderWidth}px solid ${(props) => props.theme.colors.border};
5417
5453
  border-radius: ${(props) => props.theme.styles.borderRadius / 2}px;
@@ -5436,7 +5472,11 @@ var InputElement2 = styled11.input.withConfig({
5436
5472
  ${(props) => props.style}
5437
5473
 
5438
5474
  &:hover {
5439
- border-color: ${(props) => props.theme.colors.primary};
5475
+ ${(props) => props.withNoBorder ? css3`
5476
+ filter: ${props.colorTheme === "dark" ? "brightness(1.2)" : "brightness(0.9)"};
5477
+ ` : css3`
5478
+ border-color: ${props.theme.colors.primary};
5479
+ `}
5440
5480
 
5441
5481
  ${(props) => props.hoverStyle}
5442
5482
  }
@@ -5497,17 +5537,20 @@ var SwitchElement = styled11.div.withConfig({
5497
5537
  var ToggleInputComponent = forwardRef12(function ToggleInput({
5498
5538
  label,
5499
5539
  labelFontFamily,
5540
+ labelFontSize,
5500
5541
  labelLetterSpacing,
5501
5542
  labelTextTransform,
5502
5543
  labelColor,
5503
5544
  labelGap,
5504
5545
  text,
5505
5546
  textFontFamily,
5547
+ textFontSize,
5506
5548
  textLetterSpacing,
5507
5549
  textTextTransform,
5508
5550
  textAdvanced,
5509
5551
  errorText,
5510
5552
  infoText,
5553
+ size,
5511
5554
  value,
5512
5555
  onChange,
5513
5556
  checked: controlledChecked,
@@ -5518,6 +5561,7 @@ var ToggleInputComponent = forwardRef12(function ToggleInput({
5518
5561
  }, ref) {
5519
5562
  const theme2 = useTheme20();
5520
5563
  const internalId = useId3();
5564
+ const { colorTheme } = useBetterCoreContext8();
5521
5565
  const { style, hoverStyle, excludeStyle, restProps } = useComponentPropsGrouper(props, true);
5522
5566
  const dataProps = useComponentPropsWithPrefix(restProps, "data");
5523
5567
  const ariaProps = useComponentPropsWithPrefix(restProps, "aria");
@@ -5543,6 +5587,7 @@ var ToggleInputComponent = forwardRef12(function ToggleInput({
5543
5587
  {
5544
5588
  text: label,
5545
5589
  fontFamily: labelFontFamily,
5590
+ fontSize: labelFontSize,
5546
5591
  letterSpacing: labelLetterSpacing,
5547
5592
  textTransform: labelTextTransform,
5548
5593
  color: labelColor,
@@ -5557,6 +5602,9 @@ var ToggleInputComponent = forwardRef12(function ToggleInput({
5557
5602
  InputElement2,
5558
5603
  {
5559
5604
  theme: theme2,
5605
+ colorTheme,
5606
+ size,
5607
+ withNoBorder: theme2.styles.borderWidth === 0,
5560
5608
  type: props.type ?? "checkbox",
5561
5609
  checked,
5562
5610
  onChange: onChangeElement,
@@ -5602,6 +5650,7 @@ var ToggleInputComponent = forwardRef12(function ToggleInput({
5602
5650
  Text_default,
5603
5651
  {
5604
5652
  fontFamily: textFontFamily,
5653
+ fontSize: textFontSize,
5605
5654
  letterSpacing: textLetterSpacing,
5606
5655
  textTransform: textTextTransform,
5607
5656
  color,
@@ -5658,6 +5707,7 @@ var ToggleInput_default = {
5658
5707
  const {
5659
5708
  label,
5660
5709
  labelFontFamily,
5710
+ labelFontSize,
5661
5711
  labelLetterSpacing,
5662
5712
  labelTextTransform,
5663
5713
  labelColor,
@@ -5695,6 +5745,7 @@ var ToggleInput_default = {
5695
5745
  {
5696
5746
  text: label,
5697
5747
  fontFamily: labelFontFamily,
5748
+ fontSize: labelFontSize,
5698
5749
  letterSpacing: labelLetterSpacing,
5699
5750
  textTransform: labelTextTransform,
5700
5751
  color: labelColor,
@@ -5987,8 +6038,8 @@ import {
5987
6038
  useEffect as useEffect12,
5988
6039
  Fragment as Fragment6
5989
6040
  } from "react";
5990
- import { darkenColor as darkenColor3, useBetterCoreContext as useBetterCoreContext8, useTheme as useTheme25 } from "react-better-core";
5991
- import styled12, { css as css2 } from "styled-components";
6041
+ import { darkenColor as darkenColor3, useBetterCoreContext as useBetterCoreContext9, useTheme as useTheme25 } from "react-better-core";
6042
+ import styled12, { css as css4 } from "styled-components";
5992
6043
 
5993
6044
  // src/components/Pagination.tsx
5994
6045
  import { memo as memo22, useCallback as useCallback13, useEffect as useEffect11, useMemo as useMemo8, useState as useState10 } from "react";
@@ -6188,13 +6239,13 @@ var TableStyledComponent = styled12.table.withConfig({
6188
6239
  }
6189
6240
  }
6190
6241
 
6191
- ${(props) => props.isStriped ? css2`
6242
+ ${(props) => props.isStriped ? css4`
6192
6243
  &:nth-child(even) {
6193
6244
  background-color: ${props.theme.colors.backgroundSecondary};
6194
6245
  }
6195
6246
  ` : ""}
6196
6247
 
6197
- ${(props) => props.withHover ? css2`
6248
+ ${(props) => props.withHover ? css4`
6198
6249
  transition: ${props.theme.styles.transition};
6199
6250
 
6200
6251
  &:not(.isHeader):not(.isFooter):not(.withoutHover):hover {
@@ -6277,7 +6328,7 @@ var TableComponent = forwardRef15(function Table({
6277
6328
  }, ref) {
6278
6329
  const theme2 = useTheme25();
6279
6330
  const mediaQuery = useMediaQuery();
6280
- const { colorTheme } = useBetterCoreContext8();
6331
+ const { colorTheme } = useBetterCoreContext9();
6281
6332
  const filterModalRef = useRef6(null);
6282
6333
  const readyColumns = useMemo9(() => columns.filter((column) => !column.hidden), [columns]);
6283
6334
  const columnsRef = useRef6(readyColumns);
@@ -6885,56 +6936,56 @@ var Table_default = Table2;
6885
6936
  // src/components/Tooltip.tsx
6886
6937
  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";
6887
6938
  import { useTheme as useTheme26 } from "react-better-core";
6888
- import styled13, { css as css3 } from "styled-components";
6939
+ import styled13, { css as css5 } from "styled-components";
6889
6940
  import { jsx as jsx24, jsxs as jsxs21 } from "react/jsx-runtime";
6890
6941
  var tooltipContainerStyle = (props) => ({
6891
- top: css3`
6942
+ top: css5`
6892
6943
  bottom: calc(100% + ${props.gap}px + ${props.arrowSize}px);
6893
6944
  ${props.align === "center" ? "left: 50%;" : props.align === "left" ? "left: 0;" : "right: 0;"}
6894
6945
  `,
6895
- bottom: css3`
6946
+ bottom: css5`
6896
6947
  top: calc(100% + ${props.gap}px + ${props.arrowSize}px);
6897
6948
  ${props.align === "center" ? "left: 50%;" : props.align === "left" ? "left: 0;" : "right: 0;"};
6898
6949
  `,
6899
- left: css3`
6950
+ left: css5`
6900
6951
  ${props.align === "center" ? "top: 50%;" : props.align === "top" ? "top: 0;" : "bottom: 0;"};
6901
6952
  right: calc(100% + ${props.gap}px + ${props.arrowSize}px);
6902
6953
  `,
6903
- right: css3`
6954
+ right: css5`
6904
6955
  ${props.align === "center" ? "top: 50%;" : props.align === "top" ? "top: 0;" : "bottom: 0;"};
6905
6956
  left: calc(100% + ${props.gap}px + ${props.arrowSize}px);
6906
6957
  `
6907
6958
  });
6908
6959
  var tooltipPositionStyle = (props) => ({
6909
6960
  top: {
6910
- opened: css3`
6961
+ opened: css5`
6911
6962
  transform: translateX(${props.align === "center" ? "-50%" : "0"});
6912
6963
  `,
6913
- closed: css3`
6964
+ closed: css5`
6914
6965
  transform: translateX(${props.align === "center" ? "-50%" : "0"}) translateY(${props.theme.styles.gap}px);
6915
6966
  `
6916
6967
  },
6917
6968
  bottom: {
6918
- opened: css3`
6969
+ opened: css5`
6919
6970
  transform: translateX(${props.align === "center" ? "-50%" : "0"});
6920
6971
  `,
6921
- closed: css3`
6972
+ closed: css5`
6922
6973
  transform: translateX(${props.align === "center" ? "-50%" : "0"}) translateY(-${props.theme.styles.gap}px);
6923
6974
  `
6924
6975
  },
6925
6976
  left: {
6926
- opened: css3`
6977
+ opened: css5`
6927
6978
  transform: translateY(${props.align === "center" ? "-50%" : "0"});
6928
6979
  `,
6929
- closed: css3`
6980
+ closed: css5`
6930
6981
  transform: translateX(${props.theme.styles.gap}px) translateY(${props.align === "center" ? "-50%" : "0"});
6931
6982
  `
6932
6983
  },
6933
6984
  right: {
6934
- opened: css3`
6985
+ opened: css5`
6935
6986
  transform: translateY(${props.align === "center" ? "-50%" : "0"});
6936
6987
  `,
6937
- closed: css3`
6988
+ closed: css5`
6938
6989
  transform: translateX(-${props.theme.styles.gap}px) translateY(${props.align === "center" ? "-50%" : "0"});
6939
6990
  `
6940
6991
  }
@@ -7282,7 +7333,7 @@ var Tooltip_default = Tooltip2;
7282
7333
 
7283
7334
  // src/components/Tabs.tsx
7284
7335
  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";
7285
- import { useBetterCoreContext as useBetterCoreContext9, useTheme as useTheme27 } from "react-better-core";
7336
+ import { useBetterCoreContext as useBetterCoreContext10, useTheme as useTheme27 } from "react-better-core";
7286
7337
  import { jsx as jsx25, jsxs as jsxs22 } from "react/jsx-runtime";
7287
7338
  var tabBottomLineWidth = 2;
7288
7339
  var tabDotSize = 6;
@@ -7292,7 +7343,7 @@ var TabsComponent = forwardRef17(function Tabs({ tabs, name, accentColor, style
7292
7343
  const theme2 = useTheme27();
7293
7344
  const urlQuery = reactRouterDomPlugin2 ? useUrlQuery() : void 0;
7294
7345
  const { componentsState } = useBetterHtmlContextInternal();
7295
- const { colorTheme } = useBetterCoreContext9();
7346
+ const { colorTheme } = useBetterCoreContext10();
7296
7347
  const firstRenderPassedRef = useRef8(false);
7297
7348
  const tabsRef = useRef8({});
7298
7349
  const [selectedTab, setSelectedTab] = useState13(() => {
@@ -7626,7 +7677,7 @@ import { createContext as createContext2, memo as memo27, useCallback as useCall
7626
7677
  import {
7627
7678
  calculateColorContrast,
7628
7679
  lightenColor as lightenColor3,
7629
- useBetterCoreContext as useBetterCoreContext10,
7680
+ useBetterCoreContext as useBetterCoreContext11,
7630
7681
  useBooleanState as useBooleanState8,
7631
7682
  useTheme as useTheme29
7632
7683
  } from "react-better-core";
@@ -7659,7 +7710,7 @@ var MenuItemComponent = memo27(function MenuItemComponent2({
7659
7710
  const mediaQuery = useMediaQuery();
7660
7711
  const location = reactRouterDomPluginConfig.useLocation();
7661
7712
  const { components, sideMenuIsCollapsed, setSideMenuIsCollapsed } = useBetterHtmlContextInternal();
7662
- const { colorTheme } = useBetterCoreContext10();
7713
+ const { colorTheme } = useBetterCoreContext11();
7663
7714
  const { activeItem, setActiveItem } = useSideMenuContext();
7664
7715
  const [isOpened, setIsOpened] = useBooleanState8();
7665
7716
  const isCollapsed = sideMenuIsCollapsed && !mediaQuery.size1000;