@szymonpiatek/designsystem 0.0.10 → 0.0.11

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.js CHANGED
@@ -33,6 +33,7 @@ import CreditCardOutlinedIcon from '@mui/icons-material/CreditCardOutlined';
33
33
  import LocalShippingOutlinedIcon from '@mui/icons-material/LocalShippingOutlined';
34
34
  import GridViewIcon from '@mui/icons-material/GridView';
35
35
  import ViewListIcon from '@mui/icons-material/ViewList';
36
+ import ThumbUpIcon from '@mui/icons-material/ThumbUp';
36
37
  import ThumbUpOutlinedIcon from '@mui/icons-material/ThumbUpOutlined';
37
38
  import ReplyIcon from '@mui/icons-material/Reply';
38
39
  import { createPortal } from 'react-dom';
@@ -524,6 +525,87 @@ var CheckboxInput = forwardRef(
524
525
  }
525
526
  );
526
527
  CheckboxInput.displayName = "CheckboxInput";
528
+ var radioSizeMap = {
529
+ sm: "14px",
530
+ md: "16px",
531
+ lg: "20px"
532
+ };
533
+ var labelFontSizeMap2 = {
534
+ sm: "0.75rem",
535
+ md: "0.875rem",
536
+ lg: "1rem"
537
+ };
538
+ var checkedColor2 = (theme, error) => error ? theme.palette.error.main : theme.palette.primary.main;
539
+ var Circle = styled("span")(({ theme, $size, $error, $disabled }) => ({
540
+ position: "relative",
541
+ flexShrink: 0,
542
+ width: radioSizeMap[$size],
543
+ height: radioSizeMap[$size],
544
+ borderRadius: "50%",
545
+ border: "1px solid",
546
+ borderColor: $disabled ? theme.palette.action.disabled : $error ? theme.palette.error.main : theme.palette.divider,
547
+ backgroundColor: $disabled ? theme.palette.action.disabledBackground : theme.palette.background.paper,
548
+ transition: "border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease",
549
+ display: "inline-flex",
550
+ alignItems: "center",
551
+ justifyContent: "center",
552
+ ...!$disabled && {
553
+ "label:hover &": {
554
+ borderColor: $error ? theme.palette.error.dark : theme.palette.text.secondary
555
+ },
556
+ "label:has(input:checked) &": {
557
+ borderColor: checkedColor2(theme, $error),
558
+ backgroundColor: checkedColor2(theme, $error)
559
+ },
560
+ "label:has(input:focus-visible) &": {
561
+ boxShadow: `0 0 0 3px ${checkedColor2(theme, $error)}33`
562
+ }
563
+ }
564
+ }));
565
+ var HiddenInput2 = styled("input")({
566
+ position: "absolute",
567
+ width: 1,
568
+ height: 1,
569
+ margin: -1,
570
+ overflow: "hidden",
571
+ clip: "rect(0 0 0 0)",
572
+ whiteSpace: "nowrap",
573
+ borderWidth: 0
574
+ });
575
+ var Row2 = styled("label")(({ theme }) => ({
576
+ display: "inline-flex",
577
+ alignItems: "center",
578
+ gap: "0.5rem",
579
+ cursor: "inherit",
580
+ fontFamily: theme.typography.fontFamily
581
+ }));
582
+ var LabelText2 = styled("span")(
583
+ ({ theme, $size, $disabled, $error }) => ({
584
+ fontSize: labelFontSizeMap2[$size],
585
+ fontWeight: 400,
586
+ color: $disabled ? theme.palette.action.disabled : $error ? theme.palette.error.main : theme.palette.text.primary,
587
+ userSelect: "none"
588
+ })
589
+ );
590
+ var Root5 = styled("span")(({ $disabled }) => ({
591
+ display: "inline-flex",
592
+ flexDirection: "column",
593
+ cursor: $disabled ? "not-allowed" : "pointer"
594
+ }));
595
+ var RadioInput = forwardRef(
596
+ ({ label, helperText, error = false, size = "md", disabled = false, id, ...rest }, ref) => {
597
+ const autoId = useId();
598
+ const inputId = id ?? autoId;
599
+ return /* @__PURE__ */ jsxs(Root5, { $disabled: disabled, children: [
600
+ /* @__PURE__ */ jsxs(Row2, { htmlFor: inputId, children: [
601
+ /* @__PURE__ */ jsx(Circle, { $size: size, $error: error, $disabled: disabled, children: /* @__PURE__ */ jsx(HiddenInput2, { ref, id: inputId, type: "radio", disabled, ...rest }) }),
602
+ label && /* @__PURE__ */ jsx(LabelText2, { $size: size, $disabled: disabled, $error: error, children: label })
603
+ ] }),
604
+ helperText && /* @__PURE__ */ jsx(HelperText, { error, children: helperText })
605
+ ] });
606
+ }
607
+ );
608
+ RadioInput.displayName = "RadioInput";
527
609
  var formatSize = (bytes) => {
528
610
  if (bytes < 1024) return `${bytes} B`;
529
611
  if (bytes < 1024 ** 2) return `${(bytes / 1024).toFixed(1)} KB`;
@@ -534,11 +616,11 @@ var CloudUploadIcon = ({ size }) => /* @__PURE__ */ jsx(CloudUploadMuiIcon, { "a
534
616
  var FileDocIcon = ({ size }) => /* @__PURE__ */ jsx(InsertDriveFileIcon, { "aria-hidden": true, style: { fontSize: size } });
535
617
  var TrashIcon = ({ size = 12 }) => /* @__PURE__ */ jsx(DeleteOutlinedIcon, { "aria-hidden": true, style: { fontSize: size } });
536
618
  var XIcon = () => /* @__PURE__ */ jsx(CloseIcon, { "aria-hidden": true, style: { fontSize: 11 } });
537
- var Root5 = styled("div")(({ $fullWidth }) => ({
619
+ var Root6 = styled("div")(({ $fullWidth }) => ({
538
620
  display: $fullWidth ? "block" : "inline-block",
539
621
  width: $fullWidth ? "100%" : "auto"
540
622
  }));
541
- var HiddenInput2 = styled("input")({
623
+ var HiddenInput3 = styled("input")({
542
624
  position: "absolute",
543
625
  width: 1,
544
626
  height: 1,
@@ -1012,7 +1094,7 @@ var FileInput = forwardRef(
1012
1094
  const ds = dropzoneSizes[size];
1013
1095
  const compactLabel = hasFiles ? files.length === 1 ? files[0].name : filesSelectedLabel(files.length) : noFileLabel;
1014
1096
  const hiddenInput = /* @__PURE__ */ jsx(
1015
- HiddenInput2,
1097
+ HiddenInput3,
1016
1098
  {
1017
1099
  ref: assignRef,
1018
1100
  id: inputId,
@@ -1024,7 +1106,7 @@ var FileInput = forwardRef(
1024
1106
  }
1025
1107
  );
1026
1108
  if (variant === "dropzone") {
1027
- return /* @__PURE__ */ jsxs(Root5, { $fullWidth: fullWidth, children: [
1109
+ return /* @__PURE__ */ jsxs(Root6, { $fullWidth: fullWidth, children: [
1028
1110
  label && /* @__PURE__ */ jsx(Label, { htmlFor: inputId, error, size, children: label }),
1029
1111
  /* @__PURE__ */ jsxs(
1030
1112
  DropzoneArea,
@@ -1152,7 +1234,7 @@ var FileInput = forwardRef(
1152
1234
  helperText && /* @__PURE__ */ jsx(HelperText, { error, children: helperText })
1153
1235
  ] });
1154
1236
  }
1155
- return /* @__PURE__ */ jsxs(Root5, { $fullWidth: fullWidth, children: [
1237
+ return /* @__PURE__ */ jsxs(Root6, { $fullWidth: fullWidth, children: [
1156
1238
  label && /* @__PURE__ */ jsx(Label, { htmlFor: inputId, error, size, children: label }),
1157
1239
  /* @__PURE__ */ jsxs(
1158
1240
  CompactWrapper,
@@ -1271,7 +1353,7 @@ var triggerColors = (theme, error, open) => ({
1271
1353
  borderColor: error ? theme.palette.error.dark : theme.palette.text.secondary
1272
1354
  }
1273
1355
  });
1274
- var Root6 = styled("div")(({ $fullWidth }) => ({
1356
+ var Root7 = styled("div")(({ $fullWidth }) => ({
1275
1357
  display: $fullWidth ? "block" : "inline-block",
1276
1358
  width: $fullWidth ? "100%" : "auto",
1277
1359
  position: "relative"
@@ -1388,7 +1470,7 @@ var BaseSelectInput = ({
1388
1470
  }, [isOpen, close]);
1389
1471
  const selectedLabel = options.find((o) => o.value === value)?.label;
1390
1472
  const defaultTriggerContent = /* @__PURE__ */ jsx("span", { style: { opacity: selectedLabel ? 1 : 0.5 }, children: selectedLabel ?? placeholder });
1391
- return /* @__PURE__ */ jsxs(Root6, { $fullWidth: fullWidth, ref: rootRef, children: [
1473
+ return /* @__PURE__ */ jsxs(Root7, { $fullWidth: fullWidth, ref: rootRef, children: [
1392
1474
  label && /* @__PURE__ */ jsx(Label, { htmlFor: inputId, error, size, children: label }),
1393
1475
  /* @__PURE__ */ jsxs(
1394
1476
  Trigger,
@@ -1668,7 +1750,7 @@ var borderColors = (theme, error) => ({
1668
1750
  boxShadow: `0 0 0 3px ${error ? theme.palette.error.main : theme.palette.primary.main}33`
1669
1751
  }
1670
1752
  });
1671
- var Root7 = styled("div")(({ $fullWidth }) => ({
1753
+ var Root8 = styled("div")(({ $fullWidth }) => ({
1672
1754
  display: $fullWidth ? "block" : "inline-block",
1673
1755
  width: $fullWidth ? "100%" : "auto"
1674
1756
  }));
@@ -1709,7 +1791,7 @@ var TextareaInput = forwardRef(
1709
1791
  }, ref) => {
1710
1792
  const autoId = useId();
1711
1793
  const inputId = id ?? autoId;
1712
- return /* @__PURE__ */ jsxs(Root7, { $fullWidth: fullWidth, children: [
1794
+ return /* @__PURE__ */ jsxs(Root8, { $fullWidth: fullWidth, children: [
1713
1795
  label && /* @__PURE__ */ jsx(Label, { htmlFor: inputId, error, size, children: label }),
1714
1796
  /* @__PURE__ */ jsx(
1715
1797
  StyledTextarea,
@@ -3347,7 +3429,7 @@ var wrapperColors = (theme, error, focused) => ({
3347
3429
  borderColor: !focused ? error ? theme.palette.error.dark : theme.palette.text.secondary : void 0
3348
3430
  }
3349
3431
  });
3350
- var Root8 = styled("div")(({ $fullWidth }) => ({
3432
+ var Root9 = styled("div")(({ $fullWidth }) => ({
3351
3433
  display: $fullWidth ? "block" : "inline-block",
3352
3434
  width: $fullWidth ? "100%" : "auto"
3353
3435
  }));
@@ -3603,7 +3685,7 @@ var PhoneInput = forwardRef(
3603
3685
  return () => document.removeEventListener("mousedown", handler);
3604
3686
  }, [isOpen, close]);
3605
3687
  const derivedPlaceholder = placeholder ?? (activeCountry.minLength === activeCountry.maxLength ? `${activeCountry.maxLength} ${digitsLabel}` : `${activeCountry.minLength}\u2013${activeCountry.maxLength} ${digitsLabel}`);
3606
- return /* @__PURE__ */ jsxs(Root8, { $fullWidth: fullWidth, ref: rootRef, children: [
3688
+ return /* @__PURE__ */ jsxs(Root9, { $fullWidth: fullWidth, ref: rootRef, children: [
3607
3689
  label && /* @__PURE__ */ jsx(Label, { htmlFor: inputId, error, size, children: label }),
3608
3690
  /* @__PURE__ */ jsxs(
3609
3691
  InputWrapper2,
@@ -3715,19 +3797,19 @@ function getActiveColor(color, theme) {
3715
3797
  return theme.palette.primary.main;
3716
3798
  }
3717
3799
  }
3718
- var Root9 = styled("span")(({ $disabled }) => ({
3800
+ var Root10 = styled("span")(({ $disabled }) => ({
3719
3801
  display: "inline-flex",
3720
3802
  flexDirection: "column",
3721
3803
  cursor: $disabled ? "not-allowed" : "pointer"
3722
3804
  }));
3723
- var Row2 = styled("label")(({ $placement }) => ({
3805
+ var Row3 = styled("label")(({ $placement }) => ({
3724
3806
  display: "inline-flex",
3725
3807
  alignItems: "center",
3726
3808
  flexDirection: $placement === "start" ? "row-reverse" : "row",
3727
3809
  gap: "0.5rem",
3728
3810
  cursor: "inherit"
3729
3811
  }));
3730
- var HiddenInput3 = styled("input")({
3812
+ var HiddenInput4 = styled("input")({
3731
3813
  position: "absolute",
3732
3814
  width: 1,
3733
3815
  height: 1,
@@ -3778,7 +3860,7 @@ var Thumb = styled("span", {
3778
3860
  transform: "scale(1.1)"
3779
3861
  }
3780
3862
  }));
3781
- var LabelText2 = styled("span")(
3863
+ var LabelText3 = styled("span")(
3782
3864
  ({ theme, $size, $disabled, $error }) => ({
3783
3865
  fontSize: FONT_S[$size],
3784
3866
  color: $disabled ? theme.palette.action.disabled : $error ? theme.palette.error.main : theme.palette.text.primary,
@@ -3800,11 +3882,11 @@ var SwitchInput = forwardRef(
3800
3882
  }, ref) => {
3801
3883
  const autoId = useId();
3802
3884
  const inputId = id ?? autoId;
3803
- return /* @__PURE__ */ jsxs(Root9, { $disabled: disabled, children: [
3804
- /* @__PURE__ */ jsxs(Row2, { htmlFor: inputId, $placement: labelPlacement, children: [
3885
+ return /* @__PURE__ */ jsxs(Root10, { $disabled: disabled, children: [
3886
+ /* @__PURE__ */ jsxs(Row3, { htmlFor: inputId, $placement: labelPlacement, children: [
3805
3887
  /* @__PURE__ */ jsxs(Track, { $size: size, $color: color, $error: error, $disabled: disabled, children: [
3806
3888
  /* @__PURE__ */ jsx(
3807
- HiddenInput3,
3889
+ HiddenInput4,
3808
3890
  {
3809
3891
  ref,
3810
3892
  id: inputId,
@@ -3816,7 +3898,7 @@ var SwitchInput = forwardRef(
3816
3898
  ),
3817
3899
  /* @__PURE__ */ jsx(Thumb, { $size: size })
3818
3900
  ] }),
3819
- label && /* @__PURE__ */ jsx(LabelText2, { $size: size, $disabled: disabled, $error: error, children: label })
3901
+ label && /* @__PURE__ */ jsx(LabelText3, { $size: size, $disabled: disabled, $error: error, children: label })
3820
3902
  ] }),
3821
3903
  helperText && /* @__PURE__ */ jsx(HelperText, { error, children: helperText })
3822
3904
  ] });
@@ -3826,7 +3908,7 @@ SwitchInput.displayName = "SwitchInput";
3826
3908
  var switchColors = ["primary", "secondary", "success", "danger"];
3827
3909
  var TRACK_H2 = { sm: "0.25rem", md: "0.375rem", lg: "0.5rem" };
3828
3910
  var THUMB_S2 = { sm: "0.875rem", md: "1.125rem", lg: "1.375rem" };
3829
- var Root10 = styled("div")({
3911
+ var Root11 = styled("div")({
3830
3912
  display: "flex",
3831
3913
  flexDirection: "column",
3832
3914
  gap: "0.5rem",
@@ -3859,7 +3941,7 @@ var Fill = styled("div")(({ theme, $left, $width }) => ({
3859
3941
  width: `${$width}%`,
3860
3942
  pointerEvents: "none"
3861
3943
  }));
3862
- var HiddenInput4 = styled("input", {
3944
+ var HiddenInput5 = styled("input", {
3863
3945
  shouldForwardProp: (p) => !["$size", "$disabled"].includes(p)
3864
3946
  })(({ theme, $disabled }) => ({
3865
3947
  position: "absolute",
@@ -3949,7 +4031,7 @@ var RangeSlider = forwardRef(
3949
4031
  const loP = pct(lo, min, max);
3950
4032
  const hiP = pct(hi, min, max);
3951
4033
  const valueLabel = range ? `${formatValue2(lo)} \u2013 ${formatValue2(hi)}` : formatValue2(lo);
3952
- return /* @__PURE__ */ jsxs(Root10, { ref, ...props, children: [
4034
+ return /* @__PURE__ */ jsxs(Root11, { ref, ...props, children: [
3953
4035
  (label || showValue) && /* @__PURE__ */ jsxs(LabelRow, { children: [
3954
4036
  label && /* @__PURE__ */ jsx("span", { children: label }),
3955
4037
  showValue && /* @__PURE__ */ jsx("span", { children: valueLabel })
@@ -3958,7 +4040,7 @@ var RangeSlider = forwardRef(
3958
4040
  /* @__PURE__ */ jsx(Fill, { $left: range ? loP : 0, $width: range ? hiP - loP : loP }),
3959
4041
  range ? /* @__PURE__ */ jsxs(Fragment, { children: [
3960
4042
  /* @__PURE__ */ jsx(
3961
- HiddenInput4,
4043
+ HiddenInput5,
3962
4044
  {
3963
4045
  id: `${inputId}-lo`,
3964
4046
  type: "range",
@@ -3977,7 +4059,7 @@ var RangeSlider = forwardRef(
3977
4059
  ),
3978
4060
  /* @__PURE__ */ jsx(ThumbVisual, { $size: size, $pct: loP, $disabled: disabled }),
3979
4061
  /* @__PURE__ */ jsx(
3980
- HiddenInput4,
4062
+ HiddenInput5,
3981
4063
  {
3982
4064
  id: `${inputId}-hi`,
3983
4065
  type: "range",
@@ -3997,7 +4079,7 @@ var RangeSlider = forwardRef(
3997
4079
  /* @__PURE__ */ jsx(ThumbVisual, { $size: size, $pct: hiP, $disabled: disabled })
3998
4080
  ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
3999
4081
  /* @__PURE__ */ jsx(
4000
- HiddenInput4,
4082
+ HiddenInput5,
4001
4083
  {
4002
4084
  id: inputId,
4003
4085
  type: "range",
@@ -4079,7 +4161,7 @@ var inputColors2 = (theme, error) => ({
4079
4161
  boxShadow: `0 0 0 3px ${error ? theme.palette.error.main : theme.palette.primary.main}33`
4080
4162
  }
4081
4163
  });
4082
- var Root11 = styled("div")(({ $fullWidth }) => ({
4164
+ var Root12 = styled("div")(({ $fullWidth }) => ({
4083
4165
  display: $fullWidth ? "block" : "inline-block",
4084
4166
  width: $fullWidth ? "100%" : "auto",
4085
4167
  position: "relative"
@@ -4474,7 +4556,7 @@ var DateTimePicker = forwardRef(
4474
4556
  const showCalendar = mode !== "time";
4475
4557
  const showTime = mode !== "date";
4476
4558
  const needsConfirm = mode !== "date";
4477
- return /* @__PURE__ */ jsxs(Root11, { ref: rootRef, $fullWidth: fullWidth, children: [
4559
+ return /* @__PURE__ */ jsxs(Root12, { ref: rootRef, $fullWidth: fullWidth, children: [
4478
4560
  label && /* @__PURE__ */ jsx(Label, { htmlFor: inputId, error, size, children: label }),
4479
4561
  /* @__PURE__ */ jsxs(
4480
4562
  InputWrapper3,
@@ -4966,6 +5048,34 @@ function SectionHeading({
4966
5048
  ] });
4967
5049
  }
4968
5050
  var sectionHeadingAligns = ["center", "left", "right"];
5051
+ var StyledSeparator = styled("hr", {
5052
+ shouldForwardProp: (prop) => prop !== "$orientation"
5053
+ })(({ theme, $orientation }) => ({
5054
+ border: "none",
5055
+ margin: 0,
5056
+ flexShrink: 0,
5057
+ ...$orientation === "horizontal" ? {
5058
+ width: "100%",
5059
+ height: "1px",
5060
+ backgroundColor: theme.palette.divider
5061
+ } : {
5062
+ width: "1px",
5063
+ height: "100%",
5064
+ alignSelf: "stretch",
5065
+ backgroundColor: theme.palette.divider
5066
+ }
5067
+ }));
5068
+ function Separator({ orientation = "horizontal", ...rest }) {
5069
+ return /* @__PURE__ */ jsx(
5070
+ StyledSeparator,
5071
+ {
5072
+ $orientation: orientation,
5073
+ role: "separator",
5074
+ "aria-orientation": orientation,
5075
+ ...rest
5076
+ }
5077
+ );
5078
+ }
4969
5079
  var shimmer = keyframes$1`
4970
5080
  0% { background-position: -200% 0; }
4971
5081
  100% { background-position: 200% 0; }
@@ -5028,7 +5138,7 @@ var spin = keyframes$1`to { transform: rotate(360deg); }`;
5028
5138
  var fade = keyframes$1`0%,100%{opacity:.15} 50%{opacity:1}`;
5029
5139
  var scalePulse = keyframes$1`0%,100%{transform:scale(0.6);opacity:.4} 50%{transform:scale(1);opacity:1}`;
5030
5140
  var barAnim = keyframes$1`0%,100%{transform:scaleY(.4);opacity:.5} 50%{transform:scaleY(1);opacity:1}`;
5031
- var Root12 = styled("span", {
5141
+ var Root13 = styled("span", {
5032
5142
  shouldForwardProp: (p) => !["$size", "$color"].includes(p)
5033
5143
  })(({ theme, $size, $color }) => {
5034
5144
  const colorMap = {
@@ -5117,7 +5227,7 @@ function Spinner3({
5117
5227
  ...props
5118
5228
  }) {
5119
5229
  const Inner5 = VARIANTS[variant];
5120
- return /* @__PURE__ */ jsx(Root12, { $size: size, $color: color, role: "status", "aria-label": label, ...props, children: /* @__PURE__ */ jsx(Inner5, {}) });
5230
+ return /* @__PURE__ */ jsx(Root13, { $size: size, $color: color, role: "status", "aria-label": label, ...props, children: /* @__PURE__ */ jsx(Inner5, {}) });
5121
5231
  }
5122
5232
  var spinnerVariants = ["ring", "dots", "pulse", "bars"];
5123
5233
  var spinnerSizes = ["xs", "sm", "md", "lg", "xl"];
@@ -5243,7 +5353,7 @@ var FONT_MAP = {
5243
5353
  lg: "1.125rem",
5244
5354
  xl: "1.5rem"
5245
5355
  };
5246
- var Root13 = styled("div")({ position: "relative", display: "inline-flex", flexShrink: 0 });
5356
+ var Root14 = styled("div")({ position: "relative", display: "inline-flex", flexShrink: 0 });
5247
5357
  var Label2 = styled("div", {
5248
5358
  shouldForwardProp: (p) => p !== "$size"
5249
5359
  })(({ theme, $size }) => ({
@@ -5297,7 +5407,7 @@ function ProgressCircle({
5297
5407
  const { color, gradient } = useStrokeColor(variant, gradientId);
5298
5408
  const trackColor = theme.palette.mode === "dark" ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.08)";
5299
5409
  return /* @__PURE__ */ jsxs(
5300
- Root13,
5410
+ Root14,
5301
5411
  {
5302
5412
  role: "progressbar",
5303
5413
  "aria-valuenow": value,
@@ -5654,7 +5764,7 @@ var PRESET_MAP = {
5654
5764
  "3/4": 3 / 4,
5655
5765
  "2/3": 2 / 3
5656
5766
  };
5657
- var Root14 = styled("div")({
5767
+ var Root15 = styled("div")({
5658
5768
  position: "relative",
5659
5769
  width: "100%",
5660
5770
  aspectRatio: "var(--ar)",
@@ -5670,7 +5780,7 @@ var AspectRatio = forwardRef(
5670
5780
  ({ ratio = "16/9", children, style, ...props }, ref) => {
5671
5781
  const numericRatio = typeof ratio === "string" ? PRESET_MAP[ratio] ?? 16 / 9 : ratio;
5672
5782
  return /* @__PURE__ */ jsx(
5673
- Root14,
5783
+ Root15,
5674
5784
  {
5675
5785
  ref,
5676
5786
  style: { "--ar": String(numericRatio), ...style },
@@ -5698,7 +5808,7 @@ var Placeholder2 = styled("div")(({ theme }) => ({
5698
5808
  }));
5699
5809
  var CategoryCardImage = ({ src, alt }) => /* @__PURE__ */ jsx(AspectRatio, { ratio: "4/3", children: src ? /* @__PURE__ */ jsx(Img, { src, alt }) : /* @__PURE__ */ jsx(Placeholder2, { "aria-label": alt, children: /* @__PURE__ */ jsx(ImageIcon, { style: { fontSize: 48 } }) }) });
5700
5810
  CategoryCardImage.displayName = "CategoryCardImage";
5701
- var Root15 = styled("div")({
5811
+ var Root16 = styled("div")({
5702
5812
  display: "flex",
5703
5813
  flexDirection: "column",
5704
5814
  gap: "0.25rem"
@@ -5720,7 +5830,7 @@ var CategoryCardInfo = ({
5720
5830
  name,
5721
5831
  count,
5722
5832
  countLabel = "produkt\xF3w"
5723
- }) => /* @__PURE__ */ jsxs(Root15, { children: [
5833
+ }) => /* @__PURE__ */ jsxs(Root16, { children: [
5724
5834
  /* @__PURE__ */ jsx(Name, { children: name }),
5725
5835
  count !== void 0 && /* @__PURE__ */ jsxs(Count, { children: [
5726
5836
  count,
@@ -5729,7 +5839,7 @@ var CategoryCardInfo = ({
5729
5839
  ] })
5730
5840
  ] });
5731
5841
  CategoryCardInfo.displayName = "CategoryCardInfo";
5732
- var Root16 = styled(Card)(({ theme }) => ({
5842
+ var Root17 = styled(Card)(({ theme }) => ({
5733
5843
  display: "flex",
5734
5844
  flexDirection: "column",
5735
5845
  overflow: "hidden",
@@ -5755,14 +5865,14 @@ var CategoryCard = forwardRef(
5755
5865
  /* @__PURE__ */ jsx(ImageWrap, { children: /* @__PURE__ */ jsx(CategoryCardImage, { src: imageUrl, alt: imageAlt ?? name }) }),
5756
5866
  /* @__PURE__ */ jsx(CategoryCardInfo, { name, count })
5757
5867
  ] });
5758
- return /* @__PURE__ */ jsx(Root16, { ref, variant: "default", padding: "md", rounded: "lg", ...props, children: href ? /* @__PURE__ */ jsx(CardLink, { href, children: content }) : content });
5868
+ return /* @__PURE__ */ jsx(Root17, { ref, variant: "default", padding: "md", rounded: "lg", ...props, children: href ? /* @__PURE__ */ jsx(CardLink, { href, children: content }) : content });
5759
5869
  }
5760
5870
  );
5761
5871
  CategoryCard.displayName = "CategoryCard";
5762
5872
  function deriveInitials(name) {
5763
5873
  return name.split(/\s+/).filter(Boolean).slice(0, 2).map((p) => p[0]?.toUpperCase() ?? "").join("");
5764
5874
  }
5765
- var Root17 = styled(Card)({
5875
+ var Root18 = styled(Card)({
5766
5876
  display: "flex",
5767
5877
  alignItems: "center",
5768
5878
  justifyContent: "space-between",
@@ -5828,7 +5938,7 @@ var ProfileCard = forwardRef(
5828
5938
  }, ref) => {
5829
5939
  const resolvedInitials = initials ?? deriveInitials(name);
5830
5940
  const imgSize = sizeMap5[avatarSize] ?? "4rem";
5831
- return /* @__PURE__ */ jsxs(Root17, { ref, variant: cardVariant, padding: "lg", rounded: "lg", ...props, children: [
5941
+ return /* @__PURE__ */ jsxs(Root18, { ref, variant: cardVariant, padding: "lg", rounded: "lg", ...props, children: [
5832
5942
  /* @__PURE__ */ jsxs(Identity, { children: [
5833
5943
  avatarUrl ? /* @__PURE__ */ jsx(AvatarImg, { src: avatarUrl, alt: name, style: { width: imgSize, height: imgSize } }) : /* @__PURE__ */ jsx(Avatar, { initials: resolvedInitials, size: avatarSize, color: avatarColor }),
5834
5944
  /* @__PURE__ */ jsxs(TextBlock, { children: [
@@ -5848,7 +5958,7 @@ var FONT_SIZE = {
5848
5958
  lg: "1.5rem",
5849
5959
  xl: "2rem"
5850
5960
  };
5851
- var Root18 = styled("div")({
5961
+ var Root19 = styled("div")({
5852
5962
  display: "inline-flex",
5853
5963
  flexDirection: "column",
5854
5964
  gap: "0.25rem"
@@ -5929,7 +6039,7 @@ var Price = forwardRef(
5929
6039
  const onSale = originalPrice !== void 0 && originalPrice > price;
5930
6040
  const discount = onSale ? calcDiscount(price, originalPrice) : 0;
5931
6041
  const showOmnibus = lowestPrice !== void 0;
5932
- return /* @__PURE__ */ jsxs(Root18, { ref, ...props, children: [
6042
+ return /* @__PURE__ */ jsxs(Root19, { ref, ...props, children: [
5933
6043
  /* @__PURE__ */ jsxs(PriceRow, { children: [
5934
6044
  /* @__PURE__ */ jsx(
5935
6045
  Current,
@@ -5986,7 +6096,7 @@ function calcTimeLeft(target) {
5986
6096
  function pad(n) {
5987
6097
  return String(n).padStart(2, "0");
5988
6098
  }
5989
- var Root19 = styled("div", {
6099
+ var Root20 = styled("div", {
5990
6100
  shouldForwardProp: (prop) => prop !== "$variant"
5991
6101
  })(({ theme, $variant }) => ({
5992
6102
  display: "inline-flex",
@@ -6081,11 +6191,11 @@ var CountdownTimer = forwardRef(
6081
6191
  return () => clearInterval(id);
6082
6192
  }, [targetDate, onExpire]);
6083
6193
  if (!timeLeft) {
6084
- return /* @__PURE__ */ jsx(Root19, { ref, $variant: variant, ...props, children: /* @__PURE__ */ jsx(TimerLabel, { $variant: variant, children: expiredLabel }) });
6194
+ return /* @__PURE__ */ jsx(Root20, { ref, $variant: variant, ...props, children: /* @__PURE__ */ jsx(TimerLabel, { $variant: variant, children: expiredLabel }) });
6085
6195
  }
6086
6196
  const parts = [timeLeft.days, timeLeft.hours, timeLeft.minutes, timeLeft.seconds];
6087
6197
  return /* @__PURE__ */ jsxs(
6088
- Root19,
6198
+ Root20,
6089
6199
  {
6090
6200
  ref,
6091
6201
  $variant: variant,
@@ -6108,7 +6218,7 @@ var CountdownTimer = forwardRef(
6108
6218
  );
6109
6219
  CountdownTimer.displayName = "CountdownTimer";
6110
6220
  var countdownTimerVariants = ["inline", "card", "banner"];
6111
- var Root20 = styled(Card)({
6221
+ var Root21 = styled(Card)({
6112
6222
  display: "flex",
6113
6223
  flexDirection: "column",
6114
6224
  height: "100%",
@@ -6146,7 +6256,7 @@ var DealCard = forwardRef(
6146
6256
  onAddToCart,
6147
6257
  ...props
6148
6258
  }, ref) => {
6149
- return /* @__PURE__ */ jsxs(Root20, { ref, variant: "default", padding: "md", rounded: "lg", ...props, children: [
6259
+ return /* @__PURE__ */ jsxs(Root21, { ref, variant: "default", padding: "md", rounded: "lg", ...props, children: [
6150
6260
  /* @__PURE__ */ jsx(ImageWrap2, { children: /* @__PURE__ */ jsx(ProductCardImage, { src: imageUrl, alt: imageAlt ?? name }) }),
6151
6261
  /* @__PURE__ */ jsx(Name3, { children: name }),
6152
6262
  /* @__PURE__ */ jsx(
@@ -6251,7 +6361,7 @@ var MetaRow = styled("div", {
6251
6361
  color: $inverted ? "rgba(255,255,255,0.75)" : theme.palette.text.secondary,
6252
6362
  fontFamily: theme.typography.fontFamily
6253
6363
  }));
6254
- var Separator = styled("span")({
6364
+ var Separator2 = styled("span")({
6255
6365
  userSelect: "none"
6256
6366
  });
6257
6367
  var PostCardMeta = ({
@@ -6263,7 +6373,7 @@ var PostCardMeta = ({
6263
6373
  if (!date && !author) return null;
6264
6374
  return /* @__PURE__ */ jsxs(MetaRow, { $inverted: inverted, children: [
6265
6375
  date && /* @__PURE__ */ jsx("span", { children: formatDate(date, locale) }),
6266
- date && author && /* @__PURE__ */ jsx(Separator, { children: "\xB7" }),
6376
+ date && author && /* @__PURE__ */ jsx(Separator2, { children: "\xB7" }),
6267
6377
  author && /* @__PURE__ */ jsx("span", { children: author })
6268
6378
  ] });
6269
6379
  };
@@ -6428,7 +6538,7 @@ var postCardVariants = [
6428
6538
  "featured",
6429
6539
  "compact"
6430
6540
  ];
6431
- var Row3 = styled("div")({
6541
+ var Row4 = styled("div")({
6432
6542
  display: "flex",
6433
6543
  alignItems: "baseline",
6434
6544
  gap: "0.25rem"
@@ -6453,7 +6563,7 @@ var Period = styled("span")(({ theme }) => ({
6453
6563
  fontSize: "0.875rem",
6454
6564
  color: theme.palette.text.secondary
6455
6565
  }));
6456
- var PricingCardPrice = ({ price, currency, period }) => /* @__PURE__ */ jsxs(Row3, { children: [
6566
+ var PricingCardPrice = ({ price, currency, period }) => /* @__PURE__ */ jsxs(Row4, { children: [
6457
6567
  currency && /* @__PURE__ */ jsx(Currency, { children: currency }),
6458
6568
  /* @__PURE__ */ jsx(Amount, { children: price }),
6459
6569
  period && /* @__PURE__ */ jsx(Period, { children: period })
@@ -6491,7 +6601,7 @@ var PricingCardFeatureList = ({ features }) => /* @__PURE__ */ jsx(List, { child
6491
6601
  ] }, i);
6492
6602
  }) });
6493
6603
  PricingCardFeatureList.displayName = "PricingCardFeatureList";
6494
- var Root21 = styled(Card)({
6604
+ var Root22 = styled(Card)({
6495
6605
  display: "flex",
6496
6606
  flexDirection: "column",
6497
6607
  height: "100%"
@@ -6573,7 +6683,7 @@ var PricingCard = forwardRef(
6573
6683
  }, ref) => {
6574
6684
  const resolvedCardVariant = cardVariant ?? (popular ? "gradient-primary" : "default");
6575
6685
  const resolvedCtaVariant = ctaVariant ?? (popular ? "primary" : "ghost");
6576
- return /* @__PURE__ */ jsxs(Root21, { ref, variant: resolvedCardVariant, padding: "lg", rounded: "lg", ...props, children: [
6686
+ return /* @__PURE__ */ jsxs(Root22, { ref, variant: resolvedCardVariant, padding: "lg", rounded: "lg", ...props, children: [
6577
6687
  /* @__PURE__ */ jsxs(NameRow, { children: [
6578
6688
  /* @__PURE__ */ jsx(Name4, { children: name }),
6579
6689
  popular && /* @__PURE__ */ jsx(Badge2, { variant: popularBadgeVariant, children: popularLabel })
@@ -6594,7 +6704,7 @@ var sizeMap6 = {
6594
6704
  md: "1.25rem",
6595
6705
  lg: "1.5rem"
6596
6706
  };
6597
- var Root22 = styled("div")(({ theme }) => ({
6707
+ var Root23 = styled("div")(({ theme }) => ({
6598
6708
  display: "inline-flex",
6599
6709
  alignItems: "center",
6600
6710
  gap: "0.5rem",
@@ -6629,7 +6739,7 @@ var Rating = forwardRef(
6629
6739
  ({ value, max = 5, readonly = true, size = "md", label, count, onChange, ...props }, ref) => {
6630
6740
  const roundedValue = Math.round(value);
6631
6741
  const meta = label ?? (count !== void 0 ? `(${count})` : void 0);
6632
- return /* @__PURE__ */ jsxs(Root22, { ref, "aria-label": `Ocena ${value} z ${max}`, ...props, children: [
6742
+ return /* @__PURE__ */ jsxs(Root23, { ref, "aria-label": `Ocena ${value} z ${max}`, ...props, children: [
6633
6743
  /* @__PURE__ */ jsx(
6634
6744
  Stars,
6635
6745
  {
@@ -6699,7 +6809,7 @@ var ProductCardImage = ({
6699
6809
  badge && /* @__PURE__ */ jsx(BadgeSlot, { children: /* @__PURE__ */ jsx(Badge2, { variant: badgeVariant, children: badge }) })
6700
6810
  ] });
6701
6811
  ProductCardImage.displayName = "ProductCardImage";
6702
- var Root23 = styled(Card)({
6812
+ var Root24 = styled(Card)({
6703
6813
  display: "flex",
6704
6814
  flexDirection: "column",
6705
6815
  height: "100%",
@@ -6740,7 +6850,7 @@ var ProductCard = forwardRef(
6740
6850
  disabledButton = false,
6741
6851
  hideButton = false,
6742
6852
  ...props
6743
- }, ref) => /* @__PURE__ */ jsxs(Root23, { ref, variant: "default", padding: "md", rounded: "lg", ...props, children: [
6853
+ }, ref) => /* @__PURE__ */ jsxs(Root24, { ref, variant: "default", padding: "md", rounded: "lg", ...props, children: [
6744
6854
  /* @__PURE__ */ jsx(AspectRatio, { ratio: imageRatio, style: { margin: "-1.5rem -1.5rem 1rem", width: "calc(100% + 3rem)" }, children: /* @__PURE__ */ jsx(
6745
6855
  ProductCardImage,
6746
6856
  {
@@ -6874,7 +6984,7 @@ var ProductCardHorizontal = forwardRef(
6874
6984
  ] }) }) })
6875
6985
  );
6876
6986
  ProductCardHorizontal.displayName = "ProductCardHorizontal";
6877
- var Root24 = styled(Card, {
6987
+ var Root25 = styled(Card, {
6878
6988
  shouldForwardProp: (prop) => prop !== "$align"
6879
6989
  })(({ $align }) => ({
6880
6990
  textAlign: $align,
@@ -6904,7 +7014,7 @@ var Description3 = styled("p")(({ theme }) => ({
6904
7014
  lineHeight: 1.5
6905
7015
  }));
6906
7016
  var StatCard = forwardRef(
6907
- ({ stat, cardVariant = "default", align = "center", ...props }, ref) => /* @__PURE__ */ jsxs(Root24, { ref, variant: cardVariant, padding: "lg", rounded: "lg", $align: align, ...props, children: [
7017
+ ({ stat, cardVariant = "default", align = "center", ...props }, ref) => /* @__PURE__ */ jsxs(Root25, { ref, variant: cardVariant, padding: "lg", rounded: "lg", $align: align, ...props, children: [
6908
7018
  /* @__PURE__ */ jsx(Value2, { children: stat.value }),
6909
7019
  /* @__PURE__ */ jsx(Label3, { children: stat.label }),
6910
7020
  stat.description && /* @__PURE__ */ jsx(Description3, { children: stat.description })
@@ -6934,7 +7044,7 @@ var TeamMemberAvatar = ({
6934
7044
  return /* @__PURE__ */ jsx(Avatar, { initials: initials ?? deriveInitials2(name), size: "xl", color: avatarColor });
6935
7045
  };
6936
7046
  TeamMemberAvatar.displayName = "TeamMemberAvatar";
6937
- var Root25 = styled("div")({ minWidth: 0 });
7047
+ var Root26 = styled("div")({ minWidth: 0 });
6938
7048
  var Name7 = styled("h3")(({ theme }) => ({
6939
7049
  margin: 0,
6940
7050
  color: theme.palette.text.primary,
@@ -6950,12 +7060,12 @@ var Role = styled("p")(({ theme }) => ({
6950
7060
  fontSize: "0.875rem",
6951
7061
  lineHeight: 1.5
6952
7062
  }));
6953
- var TeamMemberInfo = ({ name, role }) => /* @__PURE__ */ jsxs(Root25, { children: [
7063
+ var TeamMemberInfo = ({ name, role }) => /* @__PURE__ */ jsxs(Root26, { children: [
6954
7064
  /* @__PURE__ */ jsx(Name7, { children: name }),
6955
7065
  role && /* @__PURE__ */ jsx(Role, { children: role })
6956
7066
  ] });
6957
7067
  TeamMemberInfo.displayName = "TeamMemberInfo";
6958
- var Root26 = styled(Card)(({ theme }) => ({
7068
+ var Root27 = styled(Card)(({ theme }) => ({
6959
7069
  display: "flex",
6960
7070
  alignItems: "center",
6961
7071
  gap: "1rem",
@@ -6968,7 +7078,7 @@ var Root26 = styled(Card)(({ theme }) => ({
6968
7078
  }
6969
7079
  }));
6970
7080
  var TeamMemberCard = forwardRef(
6971
- ({ member, cardVariant = "default", ...props }, ref) => /* @__PURE__ */ jsxs(Root26, { ref, variant: cardVariant, padding: "lg", rounded: "lg", ...props, children: [
7081
+ ({ member, cardVariant = "default", ...props }, ref) => /* @__PURE__ */ jsxs(Root27, { ref, variant: cardVariant, padding: "lg", rounded: "lg", ...props, children: [
6972
7082
  /* @__PURE__ */ jsx(
6973
7083
  TeamMemberAvatar,
6974
7084
  {
@@ -7005,7 +7115,7 @@ var Quote = styled("blockquote")(({ theme }) => ({
7005
7115
  }));
7006
7116
  var TestimonialQuote = ({ quote }) => /* @__PURE__ */ jsx(Quote, { children: quote });
7007
7117
  TestimonialQuote.displayName = "TestimonialQuote";
7008
- var Root27 = styled("div")({
7118
+ var Root28 = styled("div")({
7009
7119
  display: "flex",
7010
7120
  alignItems: "center",
7011
7121
  gap: "0.75rem"
@@ -7039,7 +7149,7 @@ var TestimonialAuthor = ({
7039
7149
  authorRole,
7040
7150
  authorAvatarUrl,
7041
7151
  authorInitials
7042
- }) => /* @__PURE__ */ jsxs(Root27, { children: [
7152
+ }) => /* @__PURE__ */ jsxs(Root28, { children: [
7043
7153
  authorAvatarUrl ? /* @__PURE__ */ jsx(AvatarImg2, { src: authorAvatarUrl, alt: authorName }) : /* @__PURE__ */ jsx(Avatar, { initials: authorInitials ?? deriveInitials3(authorName), size: "md", color: "primary" }),
7044
7154
  /* @__PURE__ */ jsxs(Info, { children: [
7045
7155
  /* @__PURE__ */ jsx(Name8, { children: authorName }),
@@ -7047,14 +7157,14 @@ var TestimonialAuthor = ({
7047
7157
  ] })
7048
7158
  ] });
7049
7159
  TestimonialAuthor.displayName = "TestimonialAuthor";
7050
- var Root28 = styled(Card)({
7160
+ var Root29 = styled(Card)({
7051
7161
  display: "flex",
7052
7162
  flexDirection: "column",
7053
7163
  gap: "1.25rem",
7054
7164
  height: "100%"
7055
7165
  });
7056
7166
  var TestimonialCard = forwardRef(
7057
- ({ testimonial, cardVariant = "default", ...props }, ref) => /* @__PURE__ */ jsxs(Root28, { ref, variant: cardVariant, padding: "lg", rounded: "lg", ...props, children: [
7167
+ ({ testimonial, cardVariant = "default", ...props }, ref) => /* @__PURE__ */ jsxs(Root29, { ref, variant: cardVariant, padding: "lg", rounded: "lg", ...props, children: [
7058
7168
  testimonial.rating && /* @__PURE__ */ jsx(Rating, { value: testimonial.rating, readonly: true, size: "sm" }),
7059
7169
  /* @__PURE__ */ jsx(TestimonialQuote, { quote: testimonial.quote }),
7060
7170
  /* @__PURE__ */ jsx(
@@ -7069,7 +7179,7 @@ var TestimonialCard = forwardRef(
7069
7179
  ] })
7070
7180
  );
7071
7181
  TestimonialCard.displayName = "TestimonialCard";
7072
- var Root29 = styled("div")(({ theme }) => ({
7182
+ var Root30 = styled("div")(({ theme }) => ({
7073
7183
  position: "relative",
7074
7184
  padding: "1.5rem",
7075
7185
  borderRadius: "1rem",
@@ -7134,7 +7244,7 @@ var Expiry = styled("p")(({ theme }) => ({
7134
7244
  color: theme.palette.text.disabled
7135
7245
  }));
7136
7246
  var VoucherCard = forwardRef(
7137
- ({ code, discount, description, expiresAt, copied = false, onCopy, ...props }, ref) => /* @__PURE__ */ jsxs(Root29, { ref, ...props, children: [
7247
+ ({ code, discount, description, expiresAt, copied = false, onCopy, ...props }, ref) => /* @__PURE__ */ jsxs(Root30, { ref, ...props, children: [
7138
7248
  /* @__PURE__ */ jsxs(Header, { children: [
7139
7249
  /* @__PURE__ */ jsx(LocalOfferIcon, { style: { fontSize: 20 }, color: "primary" }),
7140
7250
  /* @__PURE__ */ jsx(Discount, { children: discount })
@@ -7243,7 +7353,7 @@ var RemoveBtn = styled("button")(({ theme }) => ({
7243
7353
  }
7244
7354
  }));
7245
7355
  var Tbody = styled("tbody")({});
7246
- var Row4 = styled("tr", {
7356
+ var Row5 = styled("tr", {
7247
7357
  shouldForwardProp: (p) => p !== "$diff"
7248
7358
  })(({ theme, $diff }) => ({
7249
7359
  backgroundColor: $diff ? theme.palette.mode === "dark" ? "rgba(255,255,255,0.03)" : "rgba(0,0,0,0.02)" : "transparent",
@@ -7320,7 +7430,7 @@ function CompareTool({
7320
7430
  ] }) }),
7321
7431
  /* @__PURE__ */ jsx(Tbody, { children: specKeys.map((key) => {
7322
7432
  const diff = highlightDifferences && isDiff(key, products);
7323
- return /* @__PURE__ */ jsxs(Row4, { $diff: diff, children: [
7433
+ return /* @__PURE__ */ jsxs(Row5, { $diff: diff, children: [
7324
7434
  /* @__PURE__ */ jsx(LabelCell, { as: "th", scope: "row", children: specLabels[key] ?? key }),
7325
7435
  products.map((p) => {
7326
7436
  const val = p.specs[key];
@@ -7332,7 +7442,7 @@ function CompareTool({
7332
7442
  ] }) });
7333
7443
  }
7334
7444
  var spin2 = keyframes`to { transform: rotate(360deg); }`;
7335
- var Root30 = styled("div")({
7445
+ var Root31 = styled("div")({
7336
7446
  display: "flex",
7337
7447
  flexDirection: "column",
7338
7448
  gap: "0.5rem"
@@ -7479,7 +7589,7 @@ function CouponInput({
7479
7589
  if (e.key === "Enter") handleApply();
7480
7590
  };
7481
7591
  if (appliedCode) {
7482
- return /* @__PURE__ */ jsxs(Root30, { className, children: [
7592
+ return /* @__PURE__ */ jsxs(Root31, { className, children: [
7483
7593
  /* @__PURE__ */ jsxs(AppliedRow, { role: "status", "aria-label": `Kod rabatowy ${appliedCode} zastosowany`, children: [
7484
7594
  /* @__PURE__ */ jsx(AppliedCode, { children: appliedCode }),
7485
7595
  onRemove && /* @__PURE__ */ jsx(
@@ -7498,7 +7608,7 @@ function CouponInput({
7498
7608
  ] })
7499
7609
  ] });
7500
7610
  }
7501
- return /* @__PURE__ */ jsxs(Root30, { className, children: [
7611
+ return /* @__PURE__ */ jsxs(Root31, { className, children: [
7502
7612
  /* @__PURE__ */ jsxs(InputRow, { $hasError: Boolean(error), $applied: false, children: [
7503
7613
  /* @__PURE__ */ jsx(
7504
7614
  Input,
@@ -7530,7 +7640,7 @@ function CouponInput({
7530
7640
  error && /* @__PURE__ */ jsx(Message, { $type: "error", id: errorId, role: "alert", children: error })
7531
7641
  ] });
7532
7642
  }
7533
- var Root31 = styled("div")({
7643
+ var Root32 = styled("div")({
7534
7644
  display: "flex",
7535
7645
  flexDirection: "column",
7536
7646
  gap: "0.5rem"
@@ -7578,7 +7688,7 @@ var Desc = styled("div")(({ theme }) => ({
7578
7688
  marginTop: "0.125rem"
7579
7689
  }));
7580
7690
  var PaymentMethodSelector = forwardRef(
7581
- ({ methods, value, onChange, label = "Metoda p\u0142atno\u015Bci", disabled, ...props }, ref) => /* @__PURE__ */ jsxs(Root31, { ref, ...props, children: [
7691
+ ({ methods, value, onChange, label = "Metoda p\u0142atno\u015Bci", disabled, ...props }, ref) => /* @__PURE__ */ jsxs(Root32, { ref, ...props, children: [
7582
7692
  /* @__PURE__ */ jsx(GroupLabel, { children: label }),
7583
7693
  methods.map((method) => {
7584
7694
  const selected = value === method.id;
@@ -7605,7 +7715,7 @@ var PaymentMethodSelector = forwardRef(
7605
7715
  ] })
7606
7716
  );
7607
7717
  PaymentMethodSelector.displayName = "PaymentMethodSelector";
7608
- var Root32 = styled("div")({
7718
+ var Root33 = styled("div")({
7609
7719
  display: "grid",
7610
7720
  gap: "0.75rem"
7611
7721
  });
@@ -7643,7 +7753,7 @@ var ProductGallery = forwardRef(
7643
7753
  if (!activeImage) {
7644
7754
  return null;
7645
7755
  }
7646
- return /* @__PURE__ */ jsxs(Root32, { ref, ...props, children: [
7756
+ return /* @__PURE__ */ jsxs(Root33, { ref, ...props, children: [
7647
7757
  /* @__PURE__ */ jsx(AspectRatio, { ratio: imageRatio, children: /* @__PURE__ */ jsx(MainImage, { src: activeImage.src, alt: activeImage.alt }) }),
7648
7758
  images.length > 1 && /* @__PURE__ */ jsx(Thumbnails, { children: images.map((image, index) => /* @__PURE__ */ jsx(
7649
7759
  ThumbnailButton,
@@ -7661,7 +7771,7 @@ var ProductGallery = forwardRef(
7661
7771
  }
7662
7772
  );
7663
7773
  ProductGallery.displayName = "ProductGallery";
7664
- var Root33 = styled("div")(({ theme, $variant }) => ({
7774
+ var Root34 = styled("div")(({ theme, $variant }) => ({
7665
7775
  display: "flex",
7666
7776
  alignItems: "center",
7667
7777
  justifyContent: "center",
@@ -7681,14 +7791,14 @@ var Link = styled("a")(({ theme }) => ({
7681
7791
  textUnderlineOffset: "0.2em"
7682
7792
  }));
7683
7793
  var PromoStrip = forwardRef(
7684
- ({ message, actionLabel, href, variant = "info", ...props }, ref) => /* @__PURE__ */ jsxs(Root33, { ref, $variant: variant, ...props, children: [
7794
+ ({ message, actionLabel, href, variant = "info", ...props }, ref) => /* @__PURE__ */ jsxs(Root34, { ref, $variant: variant, ...props, children: [
7685
7795
  /* @__PURE__ */ jsx("span", { children: message }),
7686
7796
  actionLabel && href && /* @__PURE__ */ jsx(Link, { href, children: actionLabel })
7687
7797
  ] })
7688
7798
  );
7689
7799
  PromoStrip.displayName = "PromoStrip";
7690
7800
  var promoStripVariants = ["info", "success", "warning"];
7691
- var Root34 = styled("div")(({ theme }) => ({
7801
+ var Root35 = styled("div")(({ theme }) => ({
7692
7802
  display: "inline-grid",
7693
7803
  gridTemplateColumns: "2.25rem 3rem 2.25rem",
7694
7804
  alignItems: "center",
@@ -7724,7 +7834,7 @@ var QuantitySelector = forwardRef(
7724
7834
  ({ value, min = 1, max = 99, step = 1, disabled = false, onChange, ...props }, ref) => {
7725
7835
  const decrease = Math.max(min, value - step);
7726
7836
  const increase = Math.min(max, value + step);
7727
- return /* @__PURE__ */ jsxs(Root34, { ref, "aria-label": "Wybierz ilo\u015B\u0107", ...props, children: [
7837
+ return /* @__PURE__ */ jsxs(Root35, { ref, "aria-label": "Wybierz ilo\u015B\u0107", ...props, children: [
7728
7838
  /* @__PURE__ */ jsx(
7729
7839
  Control,
7730
7840
  {
@@ -7750,7 +7860,7 @@ var QuantitySelector = forwardRef(
7750
7860
  }
7751
7861
  );
7752
7862
  QuantitySelector.displayName = "QuantitySelector";
7753
- var Root35 = styled("div")({
7863
+ var Root36 = styled("div")({
7754
7864
  display: "flex",
7755
7865
  flexDirection: "column",
7756
7866
  gap: "0.5rem"
@@ -7808,7 +7918,7 @@ var Price2 = styled("div", {
7808
7918
  whiteSpace: "nowrap"
7809
7919
  }));
7810
7920
  var ShippingSelector = forwardRef(
7811
- ({ options, value, onChange, label = "Metoda dostawy", disabled, ...props }, ref) => /* @__PURE__ */ jsxs(Root35, { ref, ...props, children: [
7921
+ ({ options, value, onChange, label = "Metoda dostawy", disabled, ...props }, ref) => /* @__PURE__ */ jsxs(Root36, { ref, ...props, children: [
7812
7922
  /* @__PURE__ */ jsx(GroupLabel2, { children: label }),
7813
7923
  options.map((opt) => {
7814
7924
  const selected = value === opt.id;
@@ -7845,7 +7955,7 @@ var DEFAULT_SORT_OPTIONS = [
7845
7955
  { value: "price-asc", label: "Cena rosn\u0105co" },
7846
7956
  { value: "price-desc", label: "Cena malej\u0105co" }
7847
7957
  ];
7848
- var Root36 = styled("div")(({ theme }) => ({
7958
+ var Root37 = styled("div")(({ theme }) => ({
7849
7959
  display: "flex",
7850
7960
  alignItems: "center",
7851
7961
  justifyContent: "space-between",
@@ -7919,7 +8029,7 @@ var SortBar = forwardRef(
7919
8029
  ...props
7920
8030
  }, ref) => {
7921
8031
  const resolvedLabel = totalLabel ?? (total !== void 0 ? `Znaleziono ${total} produkt\xF3w` : void 0);
7922
- return /* @__PURE__ */ jsxs(Root36, { ref, ...props, children: [
8032
+ return /* @__PURE__ */ jsxs(Root37, { ref, ...props, children: [
7923
8033
  resolvedLabel && /* @__PURE__ */ jsx(TotalLabel, { children: resolvedLabel }),
7924
8034
  /* @__PURE__ */ jsxs(Controls, { children: [
7925
8035
  sortOptions.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -7972,7 +8082,7 @@ function getDefaultLabel(status, count) {
7972
8082
  return "Dost\u0119pny na zam\xF3wienie";
7973
8083
  }
7974
8084
  }
7975
- var Root37 = styled("div", {
8085
+ var Root38 = styled("div", {
7976
8086
  shouldForwardProp: (p) => p !== "$color" && p !== "$size"
7977
8087
  })(({ theme, $color, $size }) => {
7978
8088
  const colorMap = {
@@ -8013,7 +8123,7 @@ var StockStatus = forwardRef(
8013
8123
  ({ status, count, label, showIcon = true, size = "md", ...props }, ref) => {
8014
8124
  const color = COLOR_MAP[status];
8015
8125
  const text = label ?? getDefaultLabel(status, count);
8016
- return /* @__PURE__ */ jsxs(Root37, { ref, $color: color, $size: size, role: "status", "aria-label": text, ...props, children: [
8126
+ return /* @__PURE__ */ jsxs(Root38, { ref, $color: color, $size: size, role: "status", "aria-label": text, ...props, children: [
8017
8127
  showIcon && /* @__PURE__ */ jsx(Dot2, { $color: color, "aria-hidden": "true" }),
8018
8128
  /* @__PURE__ */ jsx("span", { children: text })
8019
8129
  ] });
@@ -8027,7 +8137,7 @@ var stockStatusValues = [
8027
8137
  "preorder",
8028
8138
  "backorder"
8029
8139
  ];
8030
- var Root38 = styled("div")({
8140
+ var Root39 = styled("div")({
8031
8141
  display: "flex",
8032
8142
  flexDirection: "column",
8033
8143
  gap: "0.5rem"
@@ -8096,7 +8206,7 @@ var Select2 = styled("select")(({ theme }) => ({
8096
8206
  }
8097
8207
  }));
8098
8208
  var VariantSelector = forwardRef(
8099
- ({ label, options, value, onChange, mode = "button", disabled, ...props }, ref) => /* @__PURE__ */ jsxs(Root38, { ref, ...props, children: [
8209
+ ({ label, options, value, onChange, mode = "button", disabled, ...props }, ref) => /* @__PURE__ */ jsxs(Root39, { ref, ...props, children: [
8100
8210
  /* @__PURE__ */ jsxs(Label4, { children: [
8101
8211
  label,
8102
8212
  value && mode !== "swatch" && /* @__PURE__ */ jsx("span", { style: { fontWeight: 400, marginLeft: "0.375rem" }, children: options.find((o) => o.value === value)?.label })
@@ -8133,7 +8243,7 @@ var variantSelectorModes = ["button", "swatch", "dropdown"];
8133
8243
  function deriveInitials4(name) {
8134
8244
  return name.split(" ").filter(Boolean).slice(0, 2).map((p) => p[0]).join("").toUpperCase();
8135
8245
  }
8136
- var Root39 = styled("div")({
8246
+ var Root40 = styled("div")({
8137
8247
  display: "flex",
8138
8248
  alignItems: "center",
8139
8249
  gap: "0.75rem"
@@ -8179,7 +8289,7 @@ var DateText = styled("time")(({ theme }) => ({
8179
8289
  color: theme.palette.text.secondary
8180
8290
  }));
8181
8291
  function CommentMeta({ author, date }) {
8182
- return /* @__PURE__ */ jsxs(Root39, { children: [
8292
+ return /* @__PURE__ */ jsxs(Root40, { children: [
8183
8293
  author.avatarUrl ? /* @__PURE__ */ jsx(AvatarImg3, { src: author.avatarUrl, alt: author.name }) : /* @__PURE__ */ jsx(Avatar, { initials: deriveInitials4(author.name), size: "md", color: "primary" }),
8184
8294
  /* @__PURE__ */ jsxs(Info4, { children: [
8185
8295
  /* @__PURE__ */ jsxs(NameRow2, { children: [
@@ -8202,12 +8312,12 @@ function CommentBody({ content }) {
8202
8312
  return /* @__PURE__ */ jsx(Text, { children: content });
8203
8313
  }
8204
8314
  CommentBody.displayName = "CommentBody";
8205
- var Root40 = styled("div")({
8315
+ var Root41 = styled("div")({
8206
8316
  display: "flex",
8207
8317
  alignItems: "center",
8208
8318
  gap: "0.25rem"
8209
8319
  });
8210
- var ActionButton = styled("button")(({ theme }) => ({
8320
+ var ActionButton = styled("button")(({ theme, $isLiked }) => ({
8211
8321
  display: "inline-flex",
8212
8322
  alignItems: "center",
8213
8323
  gap: "0.375rem",
@@ -8216,10 +8326,10 @@ var ActionButton = styled("button")(({ theme }) => ({
8216
8326
  border: "none",
8217
8327
  borderRadius: theme.shape.borderRadius,
8218
8328
  cursor: "pointer",
8219
- color: theme.palette.text.secondary,
8329
+ color: $isLiked ? theme.palette.primary.main : theme.palette.text.secondary,
8220
8330
  fontFamily: theme.typography.fontFamily,
8221
8331
  fontSize: "0.8125rem",
8222
- fontWeight: 500,
8332
+ fontWeight: $isLiked ? 600 : 500,
8223
8333
  lineHeight: 1,
8224
8334
  transition: "background-color 150ms ease, color 150ms ease",
8225
8335
  "&:hover": {
@@ -8231,13 +8341,29 @@ var ActionButton = styled("button")(({ theme }) => ({
8231
8341
  outlineOffset: "2px"
8232
8342
  }
8233
8343
  }));
8234
- function CommentActions({ commentId, likesCount, onLike, onReply }) {
8235
- return /* @__PURE__ */ jsxs(Root40, { children: [
8236
- /* @__PURE__ */ jsxs(ActionButton, { type: "button", "aria-label": "Lubi\u0119 to", onClick: () => onLike?.(commentId), children: [
8237
- /* @__PURE__ */ jsx(ThumbUpOutlinedIcon, { style: { fontSize: "0.9375rem" }, "aria-hidden": "true" }),
8238
- typeof likesCount === "number" && /* @__PURE__ */ jsx("span", { children: likesCount }),
8239
- "Lubi\u0119 to"
8240
- ] }),
8344
+ function CommentActions({
8345
+ commentId,
8346
+ likesCount,
8347
+ isLiked,
8348
+ onLike,
8349
+ onReply
8350
+ }) {
8351
+ return /* @__PURE__ */ jsxs(Root41, { children: [
8352
+ /* @__PURE__ */ jsxs(
8353
+ ActionButton,
8354
+ {
8355
+ type: "button",
8356
+ "aria-label": "Lubi\u0119 to",
8357
+ "aria-pressed": !!isLiked,
8358
+ $isLiked: isLiked,
8359
+ onClick: () => onLike?.(commentId),
8360
+ children: [
8361
+ isLiked ? /* @__PURE__ */ jsx(ThumbUpIcon, { style: { fontSize: "0.9375rem" }, "aria-hidden": "true" }) : /* @__PURE__ */ jsx(ThumbUpOutlinedIcon, { style: { fontSize: "0.9375rem" }, "aria-hidden": "true" }),
8362
+ typeof likesCount === "number" && /* @__PURE__ */ jsx("span", { children: likesCount }),
8363
+ "Lubi\u0119 to"
8364
+ ]
8365
+ }
8366
+ ),
8241
8367
  /* @__PURE__ */ jsxs(ActionButton, { type: "button", "aria-label": "Odpowiedz", onClick: () => onReply?.(commentId), children: [
8242
8368
  /* @__PURE__ */ jsx(ReplyIcon, { style: { fontSize: "0.9375rem" }, "aria-hidden": "true" }),
8243
8369
  "Odpowiedz"
@@ -8245,7 +8371,7 @@ function CommentActions({ commentId, likesCount, onLike, onReply }) {
8245
8371
  ] });
8246
8372
  }
8247
8373
  CommentActions.displayName = "CommentActions";
8248
- var Root41 = styled("div", {
8374
+ var Root42 = styled("div", {
8249
8375
  shouldForwardProp: (p) => p !== "$depth"
8250
8376
  })(({ theme, $depth }) => ({
8251
8377
  display: "flex",
@@ -8258,7 +8384,7 @@ var Root41 = styled("div", {
8258
8384
  }
8259
8385
  }));
8260
8386
  var CommentCard = forwardRef(
8261
- ({ comment, depth = 0, onLike, onReply, ...props }, ref) => /* @__PURE__ */ jsxs(Root41, { ref, $depth: depth, ...props, children: [
8387
+ ({ comment, depth = 0, onLike, onReply, ...props }, ref) => /* @__PURE__ */ jsxs(Root42, { ref, $depth: depth, ...props, children: [
8262
8388
  /* @__PURE__ */ jsx(CommentMeta, { author: comment.author, date: comment.date }),
8263
8389
  /* @__PURE__ */ jsx(CommentBody, { content: comment.content }),
8264
8390
  /* @__PURE__ */ jsx(
@@ -8266,6 +8392,7 @@ var CommentCard = forwardRef(
8266
8392
  {
8267
8393
  commentId: comment.id,
8268
8394
  likesCount: comment.likesCount,
8395
+ isLiked: comment.isLiked,
8269
8396
  onLike,
8270
8397
  onReply
8271
8398
  }
@@ -8273,7 +8400,7 @@ var CommentCard = forwardRef(
8273
8400
  ] })
8274
8401
  );
8275
8402
  CommentCard.displayName = "CommentCard";
8276
- var Root42 = styled("div")(({ theme }) => ({
8403
+ var Root43 = styled("div")(({ theme }) => ({
8277
8404
  borderBottom: `1px solid ${theme.palette.divider}`
8278
8405
  }));
8279
8406
  var Trigger2 = styled("button")(({ theme }) => ({
@@ -8321,7 +8448,7 @@ var PanelInner = styled("p")(({ theme }) => ({
8321
8448
  var FaqItem = forwardRef(
8322
8449
  ({ item, defaultOpen = false, ...props }, ref) => {
8323
8450
  const [open, setOpen] = useState(defaultOpen);
8324
- return /* @__PURE__ */ jsxs(Root42, { ref, ...props, children: [
8451
+ return /* @__PURE__ */ jsxs(Root43, { ref, ...props, children: [
8325
8452
  /* @__PURE__ */ jsxs(Trigger2, { type: "button", "aria-expanded": open, onClick: () => setOpen((prev) => !prev), children: [
8326
8453
  item.question,
8327
8454
  /* @__PURE__ */ jsx(ChevronIcon2, { $open: open, "aria-hidden": "true" })
@@ -8397,7 +8524,7 @@ var FeatureItem = forwardRef(
8397
8524
  }
8398
8525
  );
8399
8526
  FeatureItem.displayName = "FeatureItem";
8400
- var Root43 = styled("div")({
8527
+ var Root44 = styled("div")({
8401
8528
  display: "flex",
8402
8529
  flexDirection: "column",
8403
8530
  alignItems: "center",
@@ -8445,7 +8572,7 @@ var Description6 = styled("p")(({ theme }) => ({
8445
8572
  maxWidth: "18rem"
8446
8573
  }));
8447
8574
  var ProcessStep = forwardRef(
8448
- ({ step, title, description, icon, ...props }, ref) => /* @__PURE__ */ jsxs(Root43, { ref, ...props, children: [
8575
+ ({ step, title, description, icon, ...props }, ref) => /* @__PURE__ */ jsxs(Root44, { ref, ...props, children: [
8449
8576
  /* @__PURE__ */ jsx(StepBadge, { "aria-hidden": "true", children: icon ? /* @__PURE__ */ jsx(IconWrapper2, { children: icon }) : /* @__PURE__ */ jsx(StepNumber, { children: step }) }),
8450
8577
  /* @__PURE__ */ jsx(Title3, { children: title }),
8451
8578
  description && /* @__PURE__ */ jsx(Description6, { children: description })
@@ -8707,7 +8834,7 @@ var timelineItemStatuses = [
8707
8834
  "pending",
8708
8835
  "error"
8709
8836
  ];
8710
- var Root44 = styled("div")({
8837
+ var Root45 = styled("div")({
8711
8838
  position: "relative",
8712
8839
  width: "100%",
8713
8840
  overflow: "hidden",
@@ -8817,7 +8944,7 @@ function Carousel({
8817
8944
  }, [prev, next]);
8818
8945
  if (!count) return null;
8819
8946
  return /* @__PURE__ */ jsxs("div", { className, children: [
8820
- /* @__PURE__ */ jsxs(Root44, { "aria-roledescription": "carousel", children: [
8947
+ /* @__PURE__ */ jsxs(Root45, { "aria-roledescription": "carousel", children: [
8821
8948
  /* @__PURE__ */ jsx(Track4, { $index: index, "aria-live": "polite", children: slides.map((slide, i) => /* @__PURE__ */ jsx(
8822
8949
  Slide,
8823
8950
  {
@@ -9225,7 +9352,7 @@ var Current2 = styled("span")(({ theme }) => ({
9225
9352
  color: theme.palette.text.primary,
9226
9353
  fontWeight: 600
9227
9354
  }));
9228
- var Separator2 = styled("span")(({ theme }) => ({
9355
+ var Separator3 = styled("span")(({ theme }) => ({
9229
9356
  color: theme.palette.text.disabled
9230
9357
  }));
9231
9358
  var Breadcrumbs = forwardRef(
@@ -9233,7 +9360,7 @@ var Breadcrumbs = forwardRef(
9233
9360
  const isLast = index === items.length - 1;
9234
9361
  return /* @__PURE__ */ jsxs("li", { children: [
9235
9362
  item.href && !isLast ? /* @__PURE__ */ jsx(Link2, { href: item.href, children: item.label }) : /* @__PURE__ */ jsx(Current2, { "aria-current": isLast ? "page" : void 0, children: item.label }),
9236
- !isLast && /* @__PURE__ */ jsxs(Separator2, { "aria-hidden": "true", children: [
9363
+ !isLast && /* @__PURE__ */ jsxs(Separator3, { "aria-hidden": "true", children: [
9237
9364
  " ",
9238
9365
  separator
9239
9366
  ] })
@@ -9420,7 +9547,7 @@ var PaginationBar = ({
9420
9547
  ] });
9421
9548
  };
9422
9549
  PaginationBar.displayName = "PaginationBar";
9423
- var Root45 = styled("div", {
9550
+ var Root46 = styled("div", {
9424
9551
  shouldForwardProp: (p) => p !== "$variant"
9425
9552
  })(({ theme, $variant }) => ({
9426
9553
  width: "100%",
@@ -9530,7 +9657,7 @@ var Accordion = forwardRef(
9530
9657
  if (controlledKeys === void 0) setInternalKeys(next);
9531
9658
  onChange?.(next);
9532
9659
  };
9533
- return /* @__PURE__ */ jsx(Root45, { ref, $variant: variant, ...props, children: items.map((item) => {
9660
+ return /* @__PURE__ */ jsx(Root46, { ref, $variant: variant, ...props, children: items.map((item) => {
9534
9661
  const isOpen = openKeys.includes(item.key);
9535
9662
  const panelId = `accordion-panel-${item.key}`;
9536
9663
  const triggerId = `accordion-trigger-${item.key}`;
@@ -9565,7 +9692,7 @@ var ICONS = {
9565
9692
  warning: /* @__PURE__ */ jsx(WarningAmberOutlinedIcon, { "aria-hidden": true, style: { fontSize: 20 } }),
9566
9693
  error: /* @__PURE__ */ jsx(ErrorOutlineOutlinedIcon, { "aria-hidden": true, style: { fontSize: 20 } })
9567
9694
  };
9568
- var Root46 = styled("div", {
9695
+ var Root47 = styled("div", {
9569
9696
  shouldForwardProp: (prop) => prop !== "$severity"
9570
9697
  })(({ theme, $severity }) => {
9571
9698
  const palette = {
@@ -9615,7 +9742,7 @@ var CloseButton2 = styled("button")(({ theme }) => ({
9615
9742
  }
9616
9743
  }));
9617
9744
  var Alert = forwardRef(
9618
- ({ severity = "info", title, children, onClose, icon, ...props }, ref) => /* @__PURE__ */ jsxs(Root46, { ref, role: "alert", $severity: severity, ...props, children: [
9745
+ ({ severity = "info", title, children, onClose, icon, ...props }, ref) => /* @__PURE__ */ jsxs(Root47, { ref, role: "alert", $severity: severity, ...props, children: [
9619
9746
  /* @__PURE__ */ jsx(IconSlot2, { children: icon ?? ICONS[severity] }),
9620
9747
  /* @__PURE__ */ jsxs(Body, { children: [
9621
9748
  title && /* @__PURE__ */ jsx(Title5, { children: title }),
@@ -9773,7 +9900,7 @@ var MenuItemIcon = styled("span")({
9773
9900
  width: "1rem",
9774
9901
  height: "1rem"
9775
9902
  });
9776
- var Separator3 = styled("hr")(({ theme }) => ({
9903
+ var Separator4 = styled("hr")(({ theme }) => ({
9777
9904
  margin: "0.25rem 0",
9778
9905
  border: "none",
9779
9906
  borderTop: `1px solid ${theme.palette.divider}`
@@ -9843,7 +9970,7 @@ var ContextMenu = forwardRef(
9843
9970
  $x: pos.x,
9844
9971
  $y: pos.y,
9845
9972
  children: items.map(
9846
- (item) => item.separator ? /* @__PURE__ */ jsx(Separator3, { role: "separator" }, item.key) : /* @__PURE__ */ jsxs(
9973
+ (item) => item.separator ? /* @__PURE__ */ jsx(Separator4, { role: "separator" }, item.key) : /* @__PURE__ */ jsxs(
9847
9974
  MenuItem,
9848
9975
  {
9849
9976
  role: "menuitem",
@@ -9865,7 +9992,7 @@ var ContextMenu = forwardRef(
9865
9992
  }
9866
9993
  );
9867
9994
  ContextMenu.displayName = "ContextMenu";
9868
- var Root47 = styled("div")(({ theme }) => ({
9995
+ var Root48 = styled("div")(({ theme }) => ({
9869
9996
  display: "flex",
9870
9997
  flexDirection: "column",
9871
9998
  alignItems: "center",
@@ -9893,7 +10020,7 @@ var Description8 = styled("p")(({ theme }) => ({
9893
10020
  maxWidth: "28rem"
9894
10021
  }));
9895
10022
  var EmptyState = forwardRef(
9896
- ({ icon, title, description, action, ...props }, ref) => /* @__PURE__ */ jsxs(Root47, { ref, ...props, children: [
10023
+ ({ icon, title, description, action, ...props }, ref) => /* @__PURE__ */ jsxs(Root48, { ref, ...props, children: [
9897
10024
  /* @__PURE__ */ jsx(IconWrap3, { "aria-hidden": true, children: icon ?? /* @__PURE__ */ jsx(InboxOutlinedIcon, {}) }),
9898
10025
  /* @__PURE__ */ jsxs("div", { children: [
9899
10026
  /* @__PURE__ */ jsx(Title6, { children: title }),
@@ -9913,7 +10040,7 @@ var FONT_SIZE2 = {
9913
10040
  md: "0.9375rem",
9914
10041
  lg: "1rem"
9915
10042
  };
9916
- var Root48 = styled("ul", {
10043
+ var Root49 = styled("ul", {
9917
10044
  shouldForwardProp: (p) => p !== "$variant"
9918
10045
  })(({ theme, $variant }) => ({
9919
10046
  listStyle: "none",
@@ -10008,7 +10135,7 @@ var SuffixWrap = styled("span")({
10008
10135
  var List4 = forwardRef(
10009
10136
  ({ items, size = "md", variant = "default", dividers = true, ...props }, ref) => {
10010
10137
  const effectiveVariant = !dividers && variant === "default" ? "default" : variant;
10011
- return /* @__PURE__ */ jsx(Root48, { ref, $variant: effectiveVariant, role: "list", ...props, children: items.map((item) => /* @__PURE__ */ jsxs(
10138
+ return /* @__PURE__ */ jsx(Root49, { ref, $variant: effectiveVariant, role: "list", ...props, children: items.map((item) => /* @__PURE__ */ jsxs(
10012
10139
  Item3,
10013
10140
  {
10014
10141
  role: "listitem",
@@ -10047,7 +10174,7 @@ var speedDuration = {
10047
10174
  normal: "20s",
10048
10175
  fast: "10s"
10049
10176
  };
10050
- var Root49 = styled("div")({
10177
+ var Root50 = styled("div")({
10051
10178
  overflow: "hidden",
10052
10179
  width: "100%",
10053
10180
  userSelect: "none"
@@ -10078,7 +10205,7 @@ var Marquee = forwardRef(
10078
10205
  /* @__PURE__ */ jsx(ItemWrap, { $gap: gapValue, "aria-hidden": "false", children }),
10079
10206
  /* @__PURE__ */ jsx(ItemWrap, { $gap: gapValue, "aria-hidden": "true", children })
10080
10207
  ] });
10081
- return /* @__PURE__ */ jsx(Root49, { ref, ...props, children: /* @__PURE__ */ jsx(Track5, { $direction: direction, $speed: speed, $pauseOnHover: pauseOnHover, $gap: gapValue, children: content }) });
10208
+ return /* @__PURE__ */ jsx(Root50, { ref, ...props, children: /* @__PURE__ */ jsx(Track5, { $direction: direction, $speed: speed, $pauseOnHover: pauseOnHover, $gap: gapValue, children: content }) });
10082
10209
  }
10083
10210
  );
10084
10211
  Marquee.displayName = "Marquee";
@@ -10234,7 +10361,167 @@ function Modal({
10234
10361
  );
10235
10362
  }
10236
10363
  var modalSizes = ["sm", "md", "lg", "xl", "full"];
10237
- var Root50 = styled("div")({ width: "100%" });
10364
+ var fadeIn4 = keyframes$1`from { opacity: 0; } to { opacity: 1; }`;
10365
+ var slideInLeft = keyframes$1`from { transform: translateX(-100%); } to { transform: translateX(0); }`;
10366
+ var slideInRight = keyframes$1`from { transform: translateX(100%); } to { transform: translateX(0); }`;
10367
+ var slideInTop = keyframes$1`from { transform: translateY(-100%); } to { transform: translateY(0); }`;
10368
+ var slideInBottom = keyframes$1`from { transform: translateY(100%); } to { transform: translateY(0); }`;
10369
+ var SLIDE_ANIMATION = {
10370
+ left: slideInLeft,
10371
+ right: slideInRight,
10372
+ top: slideInTop,
10373
+ bottom: slideInBottom
10374
+ };
10375
+ var SIZE_MAP3 = {
10376
+ sm: "16rem",
10377
+ md: "24rem",
10378
+ lg: "32rem",
10379
+ full: "100%"
10380
+ };
10381
+ var Backdrop2 = styled("div")(({ theme }) => ({
10382
+ position: "fixed",
10383
+ inset: 0,
10384
+ backgroundColor: theme.palette.mode === "dark" ? "rgba(0,0,0,0.7)" : "rgba(0,0,0,0.5)",
10385
+ zIndex: 1300,
10386
+ animation: `${fadeIn4} 200ms ease`
10387
+ }));
10388
+ var Panel2 = styled("div", {
10389
+ shouldForwardProp: (prop) => prop !== "$position" && prop !== "$size"
10390
+ })(({ theme, $position, $size }) => {
10391
+ const isVertical = $position === "left" || $position === "right";
10392
+ const size = SIZE_MAP3[$size];
10393
+ return {
10394
+ position: "fixed",
10395
+ backgroundColor: theme.palette.background.paper,
10396
+ border: `1px solid ${theme.palette.divider}`,
10397
+ boxShadow: theme.shadows[8],
10398
+ display: "flex",
10399
+ flexDirection: "column",
10400
+ zIndex: 1301,
10401
+ animation: `${SLIDE_ANIMATION[$position]} 250ms cubic-bezier(0.4, 0, 0.2, 1)`,
10402
+ ...isVertical ? {
10403
+ top: 0,
10404
+ bottom: 0,
10405
+ [$position]: 0,
10406
+ width: $size === "full" ? "100%" : size,
10407
+ maxWidth: "100vw"
10408
+ } : {
10409
+ left: 0,
10410
+ right: 0,
10411
+ [$position]: 0,
10412
+ height: $size === "full" ? "100%" : size,
10413
+ maxHeight: "100vh"
10414
+ }
10415
+ };
10416
+ });
10417
+ var Header3 = styled("div")(({ theme }) => ({
10418
+ display: "flex",
10419
+ alignItems: "center",
10420
+ justifyContent: "space-between",
10421
+ padding: "1.25rem 1.5rem",
10422
+ borderBottom: `1px solid ${theme.palette.divider}`,
10423
+ flexShrink: 0
10424
+ }));
10425
+ var Title8 = styled("h2")(({ theme }) => ({
10426
+ margin: 0,
10427
+ fontFamily: theme.typography.fontFamily,
10428
+ fontSize: "1.125rem",
10429
+ fontWeight: 700,
10430
+ color: theme.palette.text.primary,
10431
+ lineHeight: 1.4
10432
+ }));
10433
+ var CloseButton4 = styled("button")(({ theme }) => ({
10434
+ appearance: "none",
10435
+ border: "none",
10436
+ background: "none",
10437
+ cursor: "pointer",
10438
+ display: "flex",
10439
+ alignItems: "center",
10440
+ justifyContent: "center",
10441
+ width: "2rem",
10442
+ height: "2rem",
10443
+ borderRadius: "0.375rem",
10444
+ color: theme.palette.text.secondary,
10445
+ flexShrink: 0,
10446
+ transition: "background-color 150ms ease, color 150ms ease",
10447
+ "&:hover": {
10448
+ backgroundColor: theme.palette.action.hover,
10449
+ color: theme.palette.text.primary
10450
+ },
10451
+ "&:focus-visible": {
10452
+ outline: `3px solid ${theme.palette.primary.main}`,
10453
+ outlineOffset: "2px"
10454
+ }
10455
+ }));
10456
+ var Body3 = styled("div")(({ theme }) => ({
10457
+ padding: "1.5rem",
10458
+ overflowY: "auto",
10459
+ flex: 1,
10460
+ fontFamily: theme.typography.fontFamily,
10461
+ color: theme.palette.text.primary
10462
+ }));
10463
+ var Footer5 = styled("div")(({ theme }) => ({
10464
+ padding: "1rem 1.5rem",
10465
+ borderTop: `1px solid ${theme.palette.divider}`,
10466
+ display: "flex",
10467
+ justifyContent: "flex-end",
10468
+ gap: "0.75rem",
10469
+ flexShrink: 0
10470
+ }));
10471
+ function Sheet({
10472
+ open,
10473
+ onClose,
10474
+ title,
10475
+ children,
10476
+ footer,
10477
+ position = "right",
10478
+ size = "md",
10479
+ closeOnBackdrop = true,
10480
+ hideCloseButton = false
10481
+ }) {
10482
+ useEffect(() => {
10483
+ if (!open) return;
10484
+ const prev = document.body.style.overflow;
10485
+ document.body.style.overflow = "hidden";
10486
+ return () => {
10487
+ document.body.style.overflow = prev;
10488
+ };
10489
+ }, [open]);
10490
+ useEffect(() => {
10491
+ if (!open) return;
10492
+ const handleKey = (e) => {
10493
+ if (e.key === "Escape") onClose();
10494
+ };
10495
+ document.addEventListener("keydown", handleKey);
10496
+ return () => document.removeEventListener("keydown", handleKey);
10497
+ }, [open, onClose]);
10498
+ if (!open) return null;
10499
+ return createPortal(
10500
+ /* @__PURE__ */ jsx(Backdrop2, { "aria-hidden": "false", onClick: closeOnBackdrop ? onClose : void 0, children: /* @__PURE__ */ jsxs(
10501
+ Panel2,
10502
+ {
10503
+ role: "dialog",
10504
+ "aria-modal": "true",
10505
+ "aria-labelledby": title ? "sheet-title" : void 0,
10506
+ $position: position,
10507
+ $size: size,
10508
+ onClick: (e) => e.stopPropagation(),
10509
+ children: [
10510
+ (title || !hideCloseButton) && /* @__PURE__ */ jsxs(Header3, { children: [
10511
+ title ? /* @__PURE__ */ jsx(Title8, { id: "sheet-title", children: title }) : /* @__PURE__ */ jsx("span", {}),
10512
+ !hideCloseButton && /* @__PURE__ */ jsx(CloseButton4, { "aria-label": "Zamknij", onClick: onClose, children: /* @__PURE__ */ jsx(CloseIcon, { "aria-hidden": true, style: { fontSize: 16 } }) })
10513
+ ] }),
10514
+ children && /* @__PURE__ */ jsx(Body3, { children }),
10515
+ footer && /* @__PURE__ */ jsx(Footer5, { children: footer })
10516
+ ]
10517
+ }
10518
+ ) }),
10519
+ document.body
10520
+ );
10521
+ }
10522
+ var sheetPositions = ["left", "right", "top", "bottom"];
10523
+ var sheetSizes = ["sm", "md", "lg", "full"];
10524
+ var Root51 = styled("div")({ width: "100%" });
10238
10525
  var TabList = styled("div", {
10239
10526
  shouldForwardProp: (prop) => prop !== "$variant"
10240
10527
  })(({ theme, $variant }) => ({
@@ -10300,7 +10587,7 @@ var TabButton = styled("button", {
10300
10587
  }
10301
10588
  }
10302
10589
  }));
10303
- var Panel2 = styled("div")(({ theme }) => ({
10590
+ var Panel3 = styled("div")(({ theme }) => ({
10304
10591
  paddingTop: "1.25rem",
10305
10592
  fontFamily: theme.typography.fontFamily,
10306
10593
  color: theme.palette.text.primary
@@ -10314,7 +10601,7 @@ var Tabs = forwardRef(
10314
10601
  onChange?.(key);
10315
10602
  };
10316
10603
  const activeTab = tabs.find((t) => t.key === activeKey);
10317
- return /* @__PURE__ */ jsxs(Root50, { ref, ...props, children: [
10604
+ return /* @__PURE__ */ jsxs(Root51, { ref, ...props, children: [
10318
10605
  /* @__PURE__ */ jsx(TabList, { role: "tablist", $variant: variant, children: tabs.map((tab) => /* @__PURE__ */ jsx(
10319
10606
  TabButton,
10320
10607
  {
@@ -10333,7 +10620,7 @@ var Tabs = forwardRef(
10333
10620
  tab.key
10334
10621
  )) }),
10335
10622
  activeTab && /* @__PURE__ */ jsx(
10336
- Panel2,
10623
+ Panel3,
10337
10624
  {
10338
10625
  role: "tabpanel",
10339
10626
  id: `tabpanel-${activeTab.key}`,
@@ -10346,7 +10633,7 @@ var Tabs = forwardRef(
10346
10633
  );
10347
10634
  Tabs.displayName = "Tabs";
10348
10635
  var tabsVariants = ["underline", "pills", "bordered"];
10349
- var Root51 = styled("div")(({ theme }) => ({
10636
+ var Root52 = styled("div")(({ theme }) => ({
10350
10637
  display: "grid",
10351
10638
  gridTemplateColumns: "4.5rem 1fr",
10352
10639
  gap: "0.875rem",
@@ -10362,7 +10649,7 @@ var ImageWrap4 = styled("div")(({ theme }) => ({
10362
10649
  flexShrink: 0
10363
10650
  }));
10364
10651
  var Info5 = styled("div")({ display: "grid", gap: "0.5rem" });
10365
- var Row5 = styled("div")({
10652
+ var Row6 = styled("div")({
10366
10653
  display: "flex",
10367
10654
  alignItems: "center",
10368
10655
  justifyContent: "space-between",
@@ -10398,14 +10685,14 @@ var CartDrawerItem = ({
10398
10685
  imageAlt,
10399
10686
  onQuantityChange,
10400
10687
  onRemove
10401
- }) => /* @__PURE__ */ jsxs(Root51, { children: [
10688
+ }) => /* @__PURE__ */ jsxs(Root52, { children: [
10402
10689
  /* @__PURE__ */ jsx(ImageWrap4, { children: /* @__PURE__ */ jsx(ProductCardImage, { src: imageUrl, alt: imageAlt ?? name }) }),
10403
10690
  /* @__PURE__ */ jsxs(Info5, { children: [
10404
- /* @__PURE__ */ jsxs(Row5, { children: [
10691
+ /* @__PURE__ */ jsxs(Row6, { children: [
10405
10692
  /* @__PURE__ */ jsx(Name12, { children: name }),
10406
10693
  /* @__PURE__ */ jsx(Price3, { children: price })
10407
10694
  ] }),
10408
- /* @__PURE__ */ jsxs(Row5, { children: [
10695
+ /* @__PURE__ */ jsxs(Row6, { children: [
10409
10696
  /* @__PURE__ */ jsx(
10410
10697
  QuantitySelector,
10411
10698
  {
@@ -10426,7 +10713,7 @@ var Overlay3 = styled("div")(({ $open }) => ({
10426
10713
  backgroundColor: "rgba(0,0,0,0.36)",
10427
10714
  zIndex: 1200
10428
10715
  }));
10429
- var Panel3 = styled("aside")(({ theme }) => ({
10716
+ var Panel4 = styled("aside")(({ theme }) => ({
10430
10717
  position: "absolute",
10431
10718
  top: 0,
10432
10719
  right: 0,
@@ -10438,14 +10725,14 @@ var Panel3 = styled("aside")(({ theme }) => ({
10438
10725
  boxShadow: theme.shadows[5],
10439
10726
  fontFamily: theme.typography.fontFamily
10440
10727
  }));
10441
- var Header3 = styled("div")(({ theme }) => ({
10728
+ var Header4 = styled("div")(({ theme }) => ({
10442
10729
  display: "flex",
10443
10730
  alignItems: "center",
10444
10731
  justifyContent: "space-between",
10445
10732
  padding: "1rem 1.25rem",
10446
10733
  borderBottom: `1px solid ${theme.palette.divider}`
10447
10734
  }));
10448
- var Title8 = styled("h2")(({ theme }) => ({
10735
+ var Title9 = styled("h2")(({ theme }) => ({
10449
10736
  margin: 0,
10450
10737
  fontSize: "1.125rem",
10451
10738
  color: theme.palette.text.primary
@@ -10463,13 +10750,13 @@ var Items = styled("div")({
10463
10750
  padding: "1rem 1.25rem",
10464
10751
  overflow: "auto"
10465
10752
  });
10466
- var Row6 = styled("div")({
10753
+ var Row7 = styled("div")({
10467
10754
  display: "flex",
10468
10755
  alignItems: "center",
10469
10756
  justifyContent: "space-between",
10470
10757
  gap: "0.75rem"
10471
10758
  });
10472
- var Footer5 = styled("div")(({ theme }) => ({
10759
+ var Footer6 = styled("div")(({ theme }) => ({
10473
10760
  display: "grid",
10474
10761
  gap: "1rem",
10475
10762
  marginTop: "auto",
@@ -10489,9 +10776,9 @@ var CartDrawer = forwardRef(
10489
10776
  onQuantityChange,
10490
10777
  onRemove,
10491
10778
  ...props
10492
- }, ref) => /* @__PURE__ */ jsx(Overlay3, { $open: open, children: /* @__PURE__ */ jsxs(Panel3, { ref, "aria-hidden": !open, "aria-label": title, ...props, children: [
10493
- /* @__PURE__ */ jsxs(Header3, { children: [
10494
- /* @__PURE__ */ jsx(Title8, { children: title }),
10779
+ }, ref) => /* @__PURE__ */ jsx(Overlay3, { $open: open, children: /* @__PURE__ */ jsxs(Panel4, { ref, "aria-hidden": !open, "aria-label": title, ...props, children: [
10780
+ /* @__PURE__ */ jsxs(Header4, { children: [
10781
+ /* @__PURE__ */ jsx(Title9, { children: title }),
10495
10782
  /* @__PURE__ */ jsx(IconButton, { type: "button", "aria-label": closeLabel, onClick: onClose, children: "\xD7" })
10496
10783
  ] }),
10497
10784
  /* @__PURE__ */ jsx(Items, { children: items.map((item) => /* @__PURE__ */ jsx(
@@ -10503,8 +10790,8 @@ var CartDrawer = forwardRef(
10503
10790
  },
10504
10791
  item.id
10505
10792
  )) }),
10506
- /* @__PURE__ */ jsxs(Footer5, { children: [
10507
- /* @__PURE__ */ jsxs(Row6, { children: [
10793
+ /* @__PURE__ */ jsxs(Footer6, { children: [
10794
+ /* @__PURE__ */ jsxs(Row7, { children: [
10508
10795
  /* @__PURE__ */ jsx("strong", { children: "Suma" }),
10509
10796
  /* @__PURE__ */ jsx("strong", { children: subtotal })
10510
10797
  ] }),
@@ -10513,7 +10800,7 @@ var CartDrawer = forwardRef(
10513
10800
  ] }) })
10514
10801
  );
10515
10802
  CartDrawer.displayName = "CartDrawer";
10516
- var Root52 = styled("aside")(({ theme }) => ({
10803
+ var Root53 = styled("aside")(({ theme }) => ({
10517
10804
  display: "grid",
10518
10805
  gap: "1.5rem",
10519
10806
  width: "100%",
@@ -10524,13 +10811,13 @@ var Root52 = styled("aside")(({ theme }) => ({
10524
10811
  backgroundColor: theme.palette.background.paper,
10525
10812
  fontFamily: theme.typography.fontFamily
10526
10813
  }));
10527
- var Header4 = styled("div")({
10814
+ var Header5 = styled("div")({
10528
10815
  display: "flex",
10529
10816
  alignItems: "center",
10530
10817
  justifyContent: "space-between",
10531
10818
  gap: "1rem"
10532
10819
  });
10533
- var Title9 = styled("h2")(({ theme }) => ({
10820
+ var Title10 = styled("h2")(({ theme }) => ({
10534
10821
  margin: 0,
10535
10822
  color: theme.palette.text.primary,
10536
10823
  fontSize: "1.125rem"
@@ -10605,9 +10892,9 @@ var FilterSidebar = forwardRef(
10605
10892
  onPriceRangeChange,
10606
10893
  onClear,
10607
10894
  ...props
10608
- }, ref) => /* @__PURE__ */ jsxs(Root52, { ref, "aria-label": "Filtry produkt\xF3w", ...props, children: [
10609
- /* @__PURE__ */ jsxs(Header4, { children: [
10610
- /* @__PURE__ */ jsx(Title9, { children: "Filtry" }),
10895
+ }, ref) => /* @__PURE__ */ jsxs(Root53, { ref, "aria-label": "Filtry produkt\xF3w", ...props, children: [
10896
+ /* @__PURE__ */ jsxs(Header5, { children: [
10897
+ /* @__PURE__ */ jsx(Title10, { children: "Filtry" }),
10611
10898
  onClear && /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "sm", onClick: onClear, children: "Wyczy\u015B\u0107" })
10612
10899
  ] }),
10613
10900
  priceRange && /* @__PURE__ */ jsxs(Group, { children: [
@@ -10648,7 +10935,7 @@ var FilterSidebar = forwardRef(
10648
10935
  ] })
10649
10936
  );
10650
10937
  FilterSidebar.displayName = "FilterSidebar";
10651
- var Root53 = styled("li")({
10938
+ var Root54 = styled("li")({
10652
10939
  display: "grid",
10653
10940
  gridTemplateColumns: "3.5rem 1fr auto",
10654
10941
  alignItems: "center",
@@ -10692,7 +10979,7 @@ var OrderSummaryItem = ({
10692
10979
  imageAlt,
10693
10980
  quantity,
10694
10981
  meta
10695
- }) => /* @__PURE__ */ jsxs(Root53, { children: [
10982
+ }) => /* @__PURE__ */ jsxs(Root54, { children: [
10696
10983
  /* @__PURE__ */ jsx(ImageWrap5, { children: /* @__PURE__ */ jsx(ProductCardImage, { src: imageUrl, alt: imageAlt ?? String(name) }) }),
10697
10984
  /* @__PURE__ */ jsxs(Info6, { children: [
10698
10985
  /* @__PURE__ */ jsx(Name13, { children: name }),
@@ -10708,7 +10995,7 @@ var OrderSummaryItem = ({
10708
10995
  /* @__PURE__ */ jsx(Price4, { children: price })
10709
10996
  ] });
10710
10997
  OrderSummaryItem.displayName = "OrderSummaryItem";
10711
- var Root54 = styled("div", {
10998
+ var Root55 = styled("div", {
10712
10999
  shouldForwardProp: (prop) => prop !== "$total"
10713
11000
  })(({ theme, $total }) => ({
10714
11001
  display: "flex",
@@ -10720,13 +11007,13 @@ var Root54 = styled("div", {
10720
11007
  fontWeight: $total ? 800 : 400,
10721
11008
  "& dt, & dd": { margin: 0 }
10722
11009
  }));
10723
- var OrderSummaryRow = ({ label, value, total = false }) => /* @__PURE__ */ jsxs(Root54, { as: "div", $total: total, children: [
11010
+ var OrderSummaryRow = ({ label, value, total = false }) => /* @__PURE__ */ jsxs(Root55, { as: "div", $total: total, children: [
10724
11011
  /* @__PURE__ */ jsx("dt", { children: label }),
10725
11012
  /* @__PURE__ */ jsx("dd", { children: value })
10726
11013
  ] });
10727
11014
  OrderSummaryRow.displayName = "OrderSummaryRow";
10728
- var Root55 = styled(Card)({ display: "grid", gap: "1rem" });
10729
- var Title10 = styled("h2")(({ theme }) => ({
11015
+ var Root56 = styled(Card)({ display: "grid", gap: "1rem" });
11016
+ var Title11 = styled("h2")(({ theme }) => ({
10730
11017
  margin: 0,
10731
11018
  fontFamily: theme.typography.fontFamily,
10732
11019
  fontSize: "1.125rem",
@@ -10767,8 +11054,8 @@ var OrderSummary = forwardRef(
10767
11054
  ctaLabel = "Przejd\u017A do kasy",
10768
11055
  onCheckout,
10769
11056
  ...props
10770
- }, ref) => /* @__PURE__ */ jsxs(Root55, { ref, variant: "default", padding: "lg", rounded: "lg", ...props, children: [
10771
- /* @__PURE__ */ jsx(Title10, { children: title }),
11057
+ }, ref) => /* @__PURE__ */ jsxs(Root56, { ref, variant: "default", padding: "lg", rounded: "lg", ...props, children: [
11058
+ /* @__PURE__ */ jsx(Title11, { children: title }),
10772
11059
  items.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
10773
11060
  /* @__PURE__ */ jsx(SectionTitle, { children: itemsTitle }),
10774
11061
  /* @__PURE__ */ jsx(ItemList, { children: items.map((item) => /* @__PURE__ */ jsx(OrderSummaryItem, { ...item }, item.id)) }),
@@ -10787,7 +11074,7 @@ var OrderSummary = forwardRef(
10787
11074
  ] })
10788
11075
  );
10789
11076
  OrderSummary.displayName = "OrderSummary";
10790
- var Root56 = styled("div")(({ theme }) => ({
11077
+ var Root57 = styled("div")(({ theme }) => ({
10791
11078
  fontFamily: theme.typography.fontFamily
10792
11079
  }));
10793
11080
  var Grid2 = styled("div", {
@@ -10822,7 +11109,7 @@ var ScrollTrack = styled("div")({
10822
11109
  }
10823
11110
  });
10824
11111
  var RelatedProducts = forwardRef(
10825
- ({ products, title = "Podobne produkty", layout = "grid", columns = 4, ...props }, ref) => /* @__PURE__ */ jsxs(Root56, { ref, ...props, children: [
11112
+ ({ products, title = "Podobne produkty", layout = "grid", columns = 4, ...props }, ref) => /* @__PURE__ */ jsxs(Root57, { ref, ...props, children: [
10826
11113
  /* @__PURE__ */ jsx(SectionHeading, { title, align: "left", style: { marginBottom: "1.5rem" } }),
10827
11114
  layout === "scroll" ? /* @__PURE__ */ jsx(ScrollTrack, { children: products.map((product, i) => /* @__PURE__ */ jsx(ProductCard, { ...product }, product.name + i)) }) : /* @__PURE__ */ jsx(Grid2, { $columns: columns, children: products.map((product, i) => /* @__PURE__ */ jsx(ProductCard, { ...product }, product.name + i)) })
10828
11115
  ] })
@@ -10838,7 +11125,7 @@ var Card2 = styled("div")(({ theme }) => ({
10838
11125
  gap: "0.75rem",
10839
11126
  fontFamily: theme.typography.fontFamily
10840
11127
  }));
10841
- var Header5 = styled("div")({
11128
+ var Header6 = styled("div")({
10842
11129
  display: "flex",
10843
11130
  alignItems: "flex-start",
10844
11131
  gap: "0.875rem"
@@ -10857,7 +11144,7 @@ var ReviewDate = styled("div")(({ theme }) => ({
10857
11144
  color: theme.palette.text.secondary,
10858
11145
  marginTop: "0.125rem"
10859
11146
  }));
10860
- var Title11 = styled("div")(({ theme }) => ({
11147
+ var Title12 = styled("div")(({ theme }) => ({
10861
11148
  fontSize: "0.9375rem",
10862
11149
  fontWeight: 700,
10863
11150
  color: theme.palette.text.primary
@@ -10876,7 +11163,7 @@ var HelpfulRow = styled("div")(({ theme }) => ({
10876
11163
  color: theme.palette.text.secondary
10877
11164
  }));
10878
11165
  var ReviewItem = ({ review }) => /* @__PURE__ */ jsxs(Card2, { children: [
10879
- /* @__PURE__ */ jsxs(Header5, { children: [
11166
+ /* @__PURE__ */ jsxs(Header6, { children: [
10880
11167
  /* @__PURE__ */ jsx(Avatar, { initials: review.author.slice(0, 2).toUpperCase(), size: "sm" }),
10881
11168
  /* @__PURE__ */ jsxs(AuthorInfo, { children: [
10882
11169
  /* @__PURE__ */ jsxs(AuthorName, { children: [
@@ -10893,7 +11180,7 @@ var ReviewItem = ({ review }) => /* @__PURE__ */ jsxs(Card2, { children: [
10893
11180
  ] }),
10894
11181
  /* @__PURE__ */ jsx(Rating, { value: review.rating, size: "sm", readonly: true })
10895
11182
  ] }),
10896
- review.title && /* @__PURE__ */ jsx(Title11, { children: review.title }),
11183
+ review.title && /* @__PURE__ */ jsx(Title12, { children: review.title }),
10897
11184
  /* @__PURE__ */ jsx(Content3, { children: review.content }),
10898
11185
  review.helpfulCount !== void 0 && /* @__PURE__ */ jsxs(HelpfulRow, { children: [
10899
11186
  /* @__PURE__ */ jsx(ThumbUpOutlinedIcon, { "aria-hidden": true, style: { fontSize: 14 } }),
@@ -10902,7 +11189,7 @@ var ReviewItem = ({ review }) => /* @__PURE__ */ jsxs(Card2, { children: [
10902
11189
  ] })
10903
11190
  ] });
10904
11191
  ReviewItem.displayName = "ReviewItem";
10905
- var Root57 = styled("div")(({ theme }) => ({
11192
+ var Root58 = styled("div")(({ theme }) => ({
10906
11193
  display: "flex",
10907
11194
  alignItems: "center",
10908
11195
  gap: "2rem",
@@ -10964,7 +11251,7 @@ var ReviewSummary = ({
10964
11251
  ratingDistribution
10965
11252
  }) => {
10966
11253
  const totalDist = ratingDistribution ? Object.values(ratingDistribution).reduce((a, b) => a + b, 0) : 0;
10967
- return /* @__PURE__ */ jsxs(Root57, { children: [
11254
+ return /* @__PURE__ */ jsxs(Root58, { children: [
10968
11255
  /* @__PURE__ */ jsxs(AverageBlock, { children: [
10969
11256
  /* @__PURE__ */ jsx(Score, { children: averageRating.toFixed(1) }),
10970
11257
  /* @__PURE__ */ jsx(Rating, { value: averageRating, size: "sm", readonly: true }),
@@ -10988,7 +11275,7 @@ var ReviewSummary = ({
10988
11275
  ] });
10989
11276
  };
10990
11277
  ReviewSummary.displayName = "ReviewSummary";
10991
- var Root58 = styled("div")(({ theme }) => ({
11278
+ var Root59 = styled("div")(({ theme }) => ({
10992
11279
  fontFamily: theme.typography.fontFamily
10993
11280
  }));
10994
11281
  var ReviewList = styled("div")({
@@ -11004,7 +11291,7 @@ var ReviewSection = forwardRef(
11004
11291
  title = "Opinie klient\xF3w",
11005
11292
  ratingDistribution,
11006
11293
  ...props
11007
- }, ref) => /* @__PURE__ */ jsxs(Root58, { ref, ...props, children: [
11294
+ }, ref) => /* @__PURE__ */ jsxs(Root59, { ref, ...props, children: [
11008
11295
  /* @__PURE__ */ jsx(SectionHeading, { title, align: "left", style: { marginBottom: "1.5rem" } }),
11009
11296
  averageRating !== void 0 && /* @__PURE__ */ jsx("div", { style: { marginBottom: "2rem" }, children: /* @__PURE__ */ jsx(
11010
11297
  ReviewSummary,
@@ -11061,13 +11348,12 @@ var CommentSection = forwardRef(
11061
11348
  ({
11062
11349
  title = "Komentarze",
11063
11350
  comments,
11064
- maxWidth = "xl",
11065
11351
  onLike,
11066
11352
  onReply,
11067
11353
  ...rest
11068
11354
  }, ref) => {
11069
11355
  const total = countTotal(comments);
11070
- return /* @__PURE__ */ jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxs(Container, { maxWidth, children: [
11356
+ return /* @__PURE__ */ jsxs(Section, { ref, ...rest, children: [
11071
11357
  /* @__PURE__ */ jsxs(Heading, { children: [
11072
11358
  title,
11073
11359
  /* @__PURE__ */ jsxs(CommentCount, { children: [
@@ -11089,7 +11375,7 @@ var CommentSection = forwardRef(
11089
11375
  reply.id
11090
11376
  )) })
11091
11377
  ] }, comment.id)) })
11092
- ] }) });
11378
+ ] });
11093
11379
  }
11094
11380
  );
11095
11381
  CommentSection.displayName = "CommentSection";
@@ -11102,12 +11388,11 @@ var FaqSection = forwardRef(
11102
11388
  description,
11103
11389
  items,
11104
11390
  headingAlign = "center",
11105
- maxWidth = "xl",
11106
11391
  defaultOpenIndex,
11107
11392
  ...rest
11108
11393
  }, ref) => {
11109
11394
  const hasHeading = Boolean(title || description);
11110
- return /* @__PURE__ */ jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxs(Container, { maxWidth, children: [
11395
+ return /* @__PURE__ */ jsxs(Section, { ref, ...rest, children: [
11111
11396
  hasHeading && /* @__PURE__ */ jsx(SectionHeading, { title: title ?? "", description, align: headingAlign }),
11112
11397
  /* @__PURE__ */ jsx(List6, { $hasHeading: hasHeading, children: items.map((item, index) => /* @__PURE__ */ jsx(
11113
11398
  FaqItem,
@@ -11117,7 +11402,7 @@ var FaqSection = forwardRef(
11117
11402
  },
11118
11403
  `${item.question}-${index}`
11119
11404
  )) })
11120
- ] }) });
11405
+ ] });
11121
11406
  }
11122
11407
  );
11123
11408
  FaqSection.displayName = "FaqSection";
@@ -11144,11 +11429,10 @@ var FeatureGrid = forwardRef(
11144
11429
  columns = 3,
11145
11430
  cardVariant = "default",
11146
11431
  itemLayout = "card",
11147
- maxWidth = "xl",
11148
11432
  ...rest
11149
11433
  }, ref) => {
11150
11434
  const hasHeading = Boolean(title || description);
11151
- return /* @__PURE__ */ jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxs(Container, { maxWidth, children: [
11435
+ return /* @__PURE__ */ jsxs(Section, { ref, ...rest, children: [
11152
11436
  hasHeading && /* @__PURE__ */ jsx(SectionHeading, { title: title ?? "", description, align: headingAlign }),
11153
11437
  /* @__PURE__ */ jsx(Grid3, { $columns: columns, $hasHeading: hasHeading, $iconLeft: itemLayout === "icon-left", children: features.map((feature, index) => /* @__PURE__ */ jsx(
11154
11438
  FeatureItem,
@@ -11159,7 +11443,7 @@ var FeatureGrid = forwardRef(
11159
11443
  },
11160
11444
  `${feature.title}-${index}`
11161
11445
  )) })
11162
- ] }) });
11446
+ ] });
11163
11447
  }
11164
11448
  );
11165
11449
  FeatureGrid.displayName = "FeatureGrid";
@@ -11189,11 +11473,10 @@ var LogoCloud = forwardRef(
11189
11473
  variant = "plain",
11190
11474
  monochrome = true,
11191
11475
  logoHeight = 40,
11192
- maxWidth = "xl",
11193
11476
  ...rest
11194
11477
  }, ref) => {
11195
11478
  const hasHeading = Boolean(title || description);
11196
- return /* @__PURE__ */ jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxs(Container, { maxWidth, children: [
11479
+ return /* @__PURE__ */ jsxs(Section, { ref, ...rest, children: [
11197
11480
  hasHeading && title && /* @__PURE__ */ jsx(SectionHeading, { title, description, align: headingAlign }),
11198
11481
  hasHeading && !title && description && /* @__PURE__ */ jsx(SectionHeading, { title: description, align: headingAlign, as: "h2" }),
11199
11482
  /* @__PURE__ */ jsx(Grid4, { $columns: columns, $hasHeading: hasHeading, children: logos.map((logo) => {
@@ -11209,7 +11492,7 @@ var LogoCloud = forwardRef(
11209
11492
  key
11210
11493
  );
11211
11494
  }) })
11212
- ] }) });
11495
+ ] });
11213
11496
  }
11214
11497
  );
11215
11498
  LogoCloud.displayName = "LogoCloud";
@@ -11291,7 +11574,6 @@ var NewsletterSection = forwardRef(
11291
11574
  headingAlign = "center",
11292
11575
  layout = "centered",
11293
11576
  cardVariant = "default",
11294
- maxWidth = "xl",
11295
11577
  onSubmit,
11296
11578
  ...rest
11297
11579
  }, ref) => {
@@ -11322,7 +11604,7 @@ var NewsletterSection = forwardRef(
11322
11604
  ] }),
11323
11605
  privacyNote && /* @__PURE__ */ jsx(PrivacyNote, { children: privacyNote })
11324
11606
  ] });
11325
- return /* @__PURE__ */ jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsx(Container, { maxWidth, children: /* @__PURE__ */ jsx(Card, { variant: cardVariant, padding: "xl", rounded: "lg", children: isCentered ? /* @__PURE__ */ jsxs(CenteredInner, { children: [
11607
+ return /* @__PURE__ */ jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsx(Card, { variant: cardVariant, padding: "xl", rounded: "lg", children: isCentered ? /* @__PURE__ */ jsxs(CenteredInner, { children: [
11326
11608
  /* @__PURE__ */ jsx(
11327
11609
  SectionHeading,
11328
11610
  {
@@ -11335,7 +11617,7 @@ var NewsletterSection = forwardRef(
11335
11617
  ] }) : /* @__PURE__ */ jsxs(SplitInner, { children: [
11336
11618
  /* @__PURE__ */ jsx(SectionHeading, { title: title ?? "", description, align: "left" }),
11337
11619
  formNode
11338
- ] }) }) }) });
11620
+ ] }) }) });
11339
11621
  }
11340
11622
  );
11341
11623
  NewsletterSection.displayName = "NewsletterSection";
@@ -11450,11 +11732,10 @@ var StatsSection = forwardRef(
11450
11732
  columns = 3,
11451
11733
  cardVariant = "default",
11452
11734
  statAlign = "center",
11453
- maxWidth = "xl",
11454
11735
  ...rest
11455
11736
  }, ref) => {
11456
11737
  const hasHeading = Boolean(title || description);
11457
- return /* @__PURE__ */ jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxs(Container, { maxWidth, children: [
11738
+ return /* @__PURE__ */ jsxs(Section, { ref, ...rest, children: [
11458
11739
  hasHeading && /* @__PURE__ */ jsx(SectionHeading, { title: title ?? "", description, align: headingAlign }),
11459
11740
  /* @__PURE__ */ jsx(Grid6, { $columns: columns, $hasHeading: hasHeading, children: stats.map((stat, index) => /* @__PURE__ */ jsx(
11460
11741
  StatCard,
@@ -11465,7 +11746,7 @@ var StatsSection = forwardRef(
11465
11746
  },
11466
11747
  `${stat.label}-${index}`
11467
11748
  )) })
11468
- ] }) });
11749
+ ] });
11469
11750
  }
11470
11751
  );
11471
11752
  StatsSection.displayName = "StatsSection";
@@ -11492,11 +11773,10 @@ var TeamSection = forwardRef(
11492
11773
  headingAlign = "center",
11493
11774
  columns = 3,
11494
11775
  cardVariant = "default",
11495
- maxWidth = "xl",
11496
11776
  ...rest
11497
11777
  }, ref) => {
11498
11778
  const hasHeading = Boolean(title || description);
11499
- return /* @__PURE__ */ jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxs(Container, { maxWidth, children: [
11779
+ return /* @__PURE__ */ jsxs(Section, { ref, ...rest, children: [
11500
11780
  hasHeading && title && /* @__PURE__ */ jsx(SectionHeading, { title, description, align: headingAlign }),
11501
11781
  hasHeading && !title && description && /* @__PURE__ */ jsx(SectionHeading, { title: description, align: headingAlign, as: "h2" }),
11502
11782
  /* @__PURE__ */ jsx(Grid7, { $columns: columns, $hasHeading: hasHeading, children: members.map((member) => /* @__PURE__ */ jsx(
@@ -11507,7 +11787,7 @@ var TeamSection = forwardRef(
11507
11787
  },
11508
11788
  `${member.name}-${member.role}`
11509
11789
  )) })
11510
- ] }) });
11790
+ ] });
11511
11791
  }
11512
11792
  );
11513
11793
  TeamSection.displayName = "TeamSection";
@@ -11534,11 +11814,10 @@ var TestimonialsSection = forwardRef(
11534
11814
  headingAlign = "center",
11535
11815
  columns = 3,
11536
11816
  cardVariant = "default",
11537
- maxWidth = "xl",
11538
11817
  ...rest
11539
11818
  }, ref) => {
11540
11819
  const hasHeading = Boolean(title || description);
11541
- return /* @__PURE__ */ jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxs(Container, { maxWidth, children: [
11820
+ return /* @__PURE__ */ jsxs(Section, { ref, ...rest, children: [
11542
11821
  hasHeading && /* @__PURE__ */ jsx(SectionHeading, { title: title ?? "", description, align: headingAlign }),
11543
11822
  /* @__PURE__ */ jsx(Grid8, { $columns: columns, $hasHeading: hasHeading, children: testimonials.map((testimonial, index) => /* @__PURE__ */ jsx(
11544
11823
  TestimonialCard,
@@ -11548,12 +11827,12 @@ var TestimonialsSection = forwardRef(
11548
11827
  },
11549
11828
  `${testimonial.authorName}-${index}`
11550
11829
  )) })
11551
- ] }) });
11830
+ ] });
11552
11831
  }
11553
11832
  );
11554
11833
  TestimonialsSection.displayName = "TestimonialsSection";
11555
11834
  var testimonialsSectionColumns = [1, 2, 3];
11556
- var fadeIn4 = keyframes$1`
11835
+ var fadeIn5 = keyframes$1`
11557
11836
  from { opacity: 0; }
11558
11837
  to { opacity: 1; }
11559
11838
  `;
@@ -11561,7 +11840,7 @@ var slideDown = keyframes$1`
11561
11840
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
11562
11841
  to { opacity: 1; transform: translateY(0) scale(1); }
11563
11842
  `;
11564
- var Backdrop2 = styled("div")({
11843
+ var Backdrop3 = styled("div")({
11565
11844
  position: "fixed",
11566
11845
  inset: 0,
11567
11846
  zIndex: 1500,
@@ -11570,7 +11849,7 @@ var Backdrop2 = styled("div")({
11570
11849
  alignItems: "flex-start",
11571
11850
  justifyContent: "center",
11572
11851
  padding: "8vh 1rem 1rem",
11573
- animation: `${fadeIn4} 150ms ease`
11852
+ animation: `${fadeIn5} 150ms ease`
11574
11853
  });
11575
11854
  var Dialog2 = styled("div")(({ theme }) => ({
11576
11855
  width: "100%",
@@ -11700,7 +11979,7 @@ var EmptyState2 = styled("div")(({ theme }) => ({
11700
11979
  fontSize: "0.9375rem",
11701
11980
  color: theme.palette.text.secondary
11702
11981
  }));
11703
- var Footer6 = styled("div")(({ theme }) => ({
11982
+ var Footer7 = styled("div")(({ theme }) => ({
11704
11983
  display: "flex",
11705
11984
  gap: "1.25rem",
11706
11985
  padding: "0.5rem 1rem",
@@ -11793,7 +12072,7 @@ function CommandPalette({
11793
12072
  let globalIndex = 0;
11794
12073
  return createPortal(
11795
12074
  /* @__PURE__ */ jsx(
11796
- Backdrop2,
12075
+ Backdrop3,
11797
12076
  {
11798
12077
  role: "presentation",
11799
12078
  onClick: (e) => {
@@ -11855,7 +12134,7 @@ function CommandPalette({
11855
12134
  );
11856
12135
  })
11857
12136
  ] }, group.id)) }),
11858
- /* @__PURE__ */ jsxs(Footer6, { id: `${id}-hint`, "aria-hidden": "true", children: [
12137
+ /* @__PURE__ */ jsxs(Footer7, { id: `${id}-hint`, "aria-hidden": "true", children: [
11859
12138
  /* @__PURE__ */ jsxs(FooterHint, { children: [
11860
12139
  /* @__PURE__ */ jsx(Kbd, { children: "\u2191" }),
11861
12140
  /* @__PURE__ */ jsx(Kbd, { children: "\u2193" }),
@@ -11929,7 +12208,7 @@ var TopRow = styled("div")({
11929
12208
  flexWrap: "wrap"
11930
12209
  });
11931
12210
  var TextBlock2 = styled("div")({ flex: 1, minWidth: "16rem" });
11932
- var Title12 = styled("p")(({ theme }) => ({
12211
+ var Title13 = styled("p")(({ theme }) => ({
11933
12212
  margin: "0 0 0.25rem",
11934
12213
  fontFamily: theme.typography.fontFamily,
11935
12214
  fontSize: "1rem",
@@ -11990,7 +12269,7 @@ var TextButton = styled(BaseButton)(({ theme }) => ({
11990
12269
  padding: "0.5625rem 0.5rem",
11991
12270
  "&:hover": { color: theme.palette.text.primary }
11992
12271
  }));
11993
- var Panel4 = styled("div")(({ theme }) => ({
12272
+ var Panel5 = styled("div")(({ theme }) => ({
11994
12273
  borderTop: `1px solid ${theme.palette.divider}`,
11995
12274
  paddingTop: "1rem",
11996
12275
  display: "flex",
@@ -12094,7 +12373,7 @@ function CookieConsent({
12094
12373
  /* @__PURE__ */ jsx(Bar2, { role: "region", "aria-label": "Zgoda na pliki cookie", "aria-live": "polite", children: /* @__PURE__ */ jsxs(Inner4, { children: [
12095
12374
  /* @__PURE__ */ jsxs(TopRow, { children: [
12096
12375
  /* @__PURE__ */ jsxs(TextBlock2, { children: [
12097
- /* @__PURE__ */ jsx(Title12, { children: title }),
12376
+ /* @__PURE__ */ jsx(Title13, { children: title }),
12098
12377
  /* @__PURE__ */ jsxs(Description9, { children: [
12099
12378
  description,
12100
12379
  privacyPolicyLabel && privacyPolicyHref && /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -12118,7 +12397,7 @@ function CookieConsent({
12118
12397
  /* @__PURE__ */ jsx(PrimaryButton, { type: "button", onClick: handleAcceptAll, children: acceptAllLabel })
12119
12398
  ] })
12120
12399
  ] }),
12121
- expanded && /* @__PURE__ */ jsxs(Panel4, { id: `${id}-panel`, role: "group", "aria-label": "Kategorie plik\xF3w cookie", children: [
12400
+ expanded && /* @__PURE__ */ jsxs(Panel5, { id: `${id}-panel`, role: "group", "aria-label": "Kategorie plik\xF3w cookie", children: [
12122
12401
  categories.map((cat) => /* @__PURE__ */ jsxs(CategoryRow, { children: [
12123
12402
  /* @__PURE__ */ jsxs(CategoryText, { children: [
12124
12403
  /* @__PURE__ */ jsx(CategoryLabel, { children: cat.label }),
@@ -12145,7 +12424,7 @@ function CookieConsent({
12145
12424
  );
12146
12425
  }
12147
12426
  var defaultCookieCategories = DEFAULT_CATEGORIES;
12148
- var Root59 = styled("footer")(({ theme }) => ({
12427
+ var Root60 = styled("footer")(({ theme }) => ({
12149
12428
  width: "100%",
12150
12429
  backgroundColor: theme.palette.background.paper,
12151
12430
  borderTop: `1px solid ${theme.palette.divider}`
@@ -12273,7 +12552,7 @@ var SOCIAL_ICONS = {
12273
12552
  /* @__PURE__ */ jsx("polygon", { fill: "white", points: "9.75 15.02 15.5 12 9.75 8.98 9.75 15.02" })
12274
12553
  ] })
12275
12554
  };
12276
- function Footer7({
12555
+ function Footer8({
12277
12556
  logo,
12278
12557
  description,
12279
12558
  columns = [],
@@ -12283,7 +12562,7 @@ function Footer7({
12283
12562
  style
12284
12563
  }) {
12285
12564
  const colCount = columns.length;
12286
- return /* @__PURE__ */ jsx(Root59, { style, children: /* @__PURE__ */ jsxs(Container, { maxWidth, style: { paddingTop: "3rem", paddingBottom: "2rem" }, children: [
12565
+ return /* @__PURE__ */ jsx(Root60, { style, children: /* @__PURE__ */ jsxs(Container, { maxWidth, style: { paddingTop: "3rem", paddingBottom: "2rem" }, children: [
12287
12566
  (logo || description || colCount > 0) && /* @__PURE__ */ jsxs(TopRow2, { style: { "--col-count": colCount }, children: [
12288
12567
  (logo || description) && /* @__PURE__ */ jsxs(BrandBlock, { children: [
12289
12568
  logo,
@@ -12310,7 +12589,7 @@ function Footer7({
12310
12589
  ] })
12311
12590
  ] }) });
12312
12591
  }
12313
- var Root60 = styled("header", {
12592
+ var Root61 = styled("header", {
12314
12593
  shouldForwardProp: (p) => p !== "$sticky" && p !== "$variant"
12315
12594
  })(({ theme, $sticky, $variant }) => ({
12316
12595
  position: $sticky ? "sticky" : "relative",
@@ -12422,7 +12701,7 @@ function Navbar({
12422
12701
  style
12423
12702
  }) {
12424
12703
  const [mobileOpen, setMobileOpen] = useState(false);
12425
- return /* @__PURE__ */ jsxs(Root60, { $sticky: sticky, $variant: variant, style, children: [
12704
+ return /* @__PURE__ */ jsxs(Root61, { $sticky: sticky, $variant: variant, style, children: [
12426
12705
  /* @__PURE__ */ jsxs(
12427
12706
  Container,
12428
12707
  {
@@ -12545,7 +12824,30 @@ var MyThemeProvider = ({
12545
12824
  children
12546
12825
  ] });
12547
12826
  };
12827
+ function toggleLikeInTree(items, id) {
12828
+ return items.map((comment) => {
12829
+ if (comment.id === id) {
12830
+ const isLiked = !comment.isLiked;
12831
+ return {
12832
+ ...comment,
12833
+ isLiked,
12834
+ likesCount: comment.likesCount !== void 0 ? comment.likesCount + (isLiked ? 1 : -1) : void 0
12835
+ };
12836
+ }
12837
+ if (comment.replies?.length) {
12838
+ return { ...comment, replies: toggleLikeInTree(comment.replies, id) };
12839
+ }
12840
+ return comment;
12841
+ });
12842
+ }
12843
+ function useCommentLikes(initialComments) {
12844
+ const [comments, setComments] = useState(initialComments);
12845
+ const onLike = useCallback((commentId) => {
12846
+ setComments((prev) => toggleLikeInTree(prev, commentId));
12847
+ }, []);
12848
+ return { comments, onLike };
12849
+ }
12548
12850
 
12549
- export { Accordion, Alert, Article, AspectRatio, Avatar, BackToTop, Badge2 as Badge, BaseInput, BaseSelectInput, Box2 as Box, Breadcrumbs, Button, Card, Carousel, CartButton, CartDrawer, CartDrawerItem as CartDrawerItemComponent, CategoryCard, CategoryCardImage, CategoryCardInfo, CheckboxInput, CommandPalette, CommentActions, CommentBody, CommentCard, CommentMeta, CommentSection, CompareTool, Container, ContextMenu, CookieConsent, CountdownTimer, CountryFlag, CouponInput, DateTimePicker, DealCard, EmailInput, EmptyState, FaqItem, FaqSection, FeatureGrid, FeatureItem, FileInput, FilterSidebar, Footer7 as Footer, Image, Lightbox, List4 as List, LogoCloud, LogoTile, Main, Marquee, Modal, MultiSelectInput, MyThemeProvider, Navbar, NewsletterSection, NumberInput, OrderSummary, OrderSummaryItem as OrderSummaryItemComponent, OrderSummaryRow, PaginationBar, PaginationButton, PaginationEllipsis, Partners, PasswordInput, PaymentMethodSelector, PhoneInput, PostCard, PostCardImage, PostCardMeta, Price, PricingCard, PricingCardFeatureList, PricingCardPrice, PricingSection, ProcessSection, ProcessStep, ProductCard, ProductCardHorizontal, ProductCardImage, ProductGallery, ProfileCard, ProgressBar, ProgressCircle, PromoStrip, Prose, QuantitySelector, RangeSlider, Rating, RelatedProducts, ReviewItem, ReviewSection, ReviewSummary, SearchInput, Section, SectionHeading, SelectInput, ShippingSelector, Skeleton, SortBar, Spinner3 as Spinner, StatCard, StatsSection, StockStatus, SwitchInput, Tabs, TeamMemberAvatar, TeamMemberCard, TeamMemberInfo, TeamSection, TestimonialAuthor, TestimonialCard, TestimonialQuote, TestimonialsSection, TextInput, TextareaInput, Timeline, VariantSelector, VideoPlayer, VoucherCard, WishlistButton, accordionVariants, alertSeverities, aspectRatioPresets, avatarColors, avatarSizes, backToTopPositions, backToTopVariants, badgeVariants, cardPaddings, cardRoundeds, cardVariants, countdownTimerVariants, createMyTheme, dateTimePickerModes, defaultCookieCategories, featureGridColumns, listSizes, listVariants, logoCloudColumns, logoCloudVariants, logoTileVariants, marqueeDirections, marqueeSpeeds, modalSizes, myTheme, newsletterLayouts, postCardVariants, priceSizes, progressBarSizes, progressBarVariants, progressCircleSizes, progressCircleVariants, promoStripVariants, rangeSliderSizes, relatedProductsLayouts, sectionHeadingAligns, skeletonVariants, spinnerColors, spinnerSizes, spinnerVariants, statsSectionColumns, stockStatusValues, switchColors, tabsVariants, teamSectionColumns, testimonialsSectionColumns, themeDark, themeHighContrast, themeLight, timelineItemStatuses, timelineVariants, variantSelectorModes };
12851
+ export { Accordion, Alert, Article, AspectRatio, Avatar, BackToTop, Badge2 as Badge, BaseInput, BaseSelectInput, Box2 as Box, Breadcrumbs, Button, Card, Carousel, CartButton, CartDrawer, CartDrawerItem as CartDrawerItemComponent, CategoryCard, CategoryCardImage, CategoryCardInfo, CheckboxInput, CommandPalette, CommentActions, CommentBody, CommentCard, CommentMeta, CommentSection, CompareTool, Container, ContextMenu, CookieConsent, CountdownTimer, CountryFlag, CouponInput, DateTimePicker, DealCard, EmailInput, EmptyState, FaqItem, FaqSection, FeatureGrid, FeatureItem, FileInput, FilterSidebar, Footer8 as Footer, Image, Lightbox, List4 as List, LogoCloud, LogoTile, Main, Marquee, Modal, MultiSelectInput, MyThemeProvider, Navbar, NewsletterSection, NumberInput, OrderSummary, OrderSummaryItem as OrderSummaryItemComponent, OrderSummaryRow, PaginationBar, PaginationButton, PaginationEllipsis, Partners, PasswordInput, PaymentMethodSelector, PhoneInput, PostCard, PostCardImage, PostCardMeta, Price, PricingCard, PricingCardFeatureList, PricingCardPrice, PricingSection, ProcessSection, ProcessStep, ProductCard, ProductCardHorizontal, ProductCardImage, ProductGallery, ProfileCard, ProgressBar, ProgressCircle, PromoStrip, Prose, QuantitySelector, RadioInput, RangeSlider, Rating, RelatedProducts, ReviewItem, ReviewSection, ReviewSummary, SearchInput, Section, SectionHeading, SelectInput, Separator, Sheet, ShippingSelector, Skeleton, SortBar, Spinner3 as Spinner, StatCard, StatsSection, StockStatus, SwitchInput, Tabs, TeamMemberAvatar, TeamMemberCard, TeamMemberInfo, TeamSection, TestimonialAuthor, TestimonialCard, TestimonialQuote, TestimonialsSection, TextInput, TextareaInput, Timeline, VariantSelector, VideoPlayer, VoucherCard, WishlistButton, accordionVariants, alertSeverities, aspectRatioPresets, avatarColors, avatarSizes, backToTopPositions, backToTopVariants, badgeVariants, cardPaddings, cardRoundeds, cardVariants, countdownTimerVariants, createMyTheme, dateTimePickerModes, defaultCookieCategories, featureGridColumns, listSizes, listVariants, logoCloudColumns, logoCloudVariants, logoTileVariants, marqueeDirections, marqueeSpeeds, modalSizes, myTheme, newsletterLayouts, postCardVariants, priceSizes, progressBarSizes, progressBarVariants, progressCircleSizes, progressCircleVariants, promoStripVariants, rangeSliderSizes, relatedProductsLayouts, sectionHeadingAligns, sheetPositions, sheetSizes, skeletonVariants, spinnerColors, spinnerSizes, spinnerVariants, statsSectionColumns, stockStatusValues, switchColors, tabsVariants, teamSectionColumns, testimonialsSectionColumns, themeDark, themeHighContrast, themeLight, timelineItemStatuses, timelineVariants, useCommentLikes, variantSelectorModes };
12550
12852
  //# sourceMappingURL=index.js.map
12551
12853
  //# sourceMappingURL=index.js.map