@szymonpiatek/designsystem 0.0.9 → 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.cjs CHANGED
@@ -35,6 +35,7 @@ var CreditCardOutlinedIcon = require('@mui/icons-material/CreditCardOutlined');
35
35
  var LocalShippingOutlinedIcon = require('@mui/icons-material/LocalShippingOutlined');
36
36
  var GridViewIcon = require('@mui/icons-material/GridView');
37
37
  var ViewListIcon = require('@mui/icons-material/ViewList');
38
+ var ThumbUpIcon = require('@mui/icons-material/ThumbUp');
38
39
  var ThumbUpOutlinedIcon = require('@mui/icons-material/ThumbUpOutlined');
39
40
  var ReplyIcon = require('@mui/icons-material/Reply');
40
41
  var reactDom = require('react-dom');
@@ -79,6 +80,7 @@ var CreditCardOutlinedIcon__default = /*#__PURE__*/_interopDefault(CreditCardOut
79
80
  var LocalShippingOutlinedIcon__default = /*#__PURE__*/_interopDefault(LocalShippingOutlinedIcon);
80
81
  var GridViewIcon__default = /*#__PURE__*/_interopDefault(GridViewIcon);
81
82
  var ViewListIcon__default = /*#__PURE__*/_interopDefault(ViewListIcon);
83
+ var ThumbUpIcon__default = /*#__PURE__*/_interopDefault(ThumbUpIcon);
82
84
  var ThumbUpOutlinedIcon__default = /*#__PURE__*/_interopDefault(ThumbUpOutlinedIcon);
83
85
  var ReplyIcon__default = /*#__PURE__*/_interopDefault(ReplyIcon);
84
86
  var KeyboardDoubleArrowLeftIcon__default = /*#__PURE__*/_interopDefault(KeyboardDoubleArrowLeftIcon);
@@ -569,6 +571,87 @@ var CheckboxInput = react.forwardRef(
569
571
  }
570
572
  );
571
573
  CheckboxInput.displayName = "CheckboxInput";
574
+ var radioSizeMap = {
575
+ sm: "14px",
576
+ md: "16px",
577
+ lg: "20px"
578
+ };
579
+ var labelFontSizeMap2 = {
580
+ sm: "0.75rem",
581
+ md: "0.875rem",
582
+ lg: "1rem"
583
+ };
584
+ var checkedColor2 = (theme, error) => error ? theme.palette.error.main : theme.palette.primary.main;
585
+ var Circle = styles.styled("span")(({ theme, $size, $error, $disabled }) => ({
586
+ position: "relative",
587
+ flexShrink: 0,
588
+ width: radioSizeMap[$size],
589
+ height: radioSizeMap[$size],
590
+ borderRadius: "50%",
591
+ border: "1px solid",
592
+ borderColor: $disabled ? theme.palette.action.disabled : $error ? theme.palette.error.main : theme.palette.divider,
593
+ backgroundColor: $disabled ? theme.palette.action.disabledBackground : theme.palette.background.paper,
594
+ transition: "border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease",
595
+ display: "inline-flex",
596
+ alignItems: "center",
597
+ justifyContent: "center",
598
+ ...!$disabled && {
599
+ "label:hover &": {
600
+ borderColor: $error ? theme.palette.error.dark : theme.palette.text.secondary
601
+ },
602
+ "label:has(input:checked) &": {
603
+ borderColor: checkedColor2(theme, $error),
604
+ backgroundColor: checkedColor2(theme, $error)
605
+ },
606
+ "label:has(input:focus-visible) &": {
607
+ boxShadow: `0 0 0 3px ${checkedColor2(theme, $error)}33`
608
+ }
609
+ }
610
+ }));
611
+ var HiddenInput2 = styles.styled("input")({
612
+ position: "absolute",
613
+ width: 1,
614
+ height: 1,
615
+ margin: -1,
616
+ overflow: "hidden",
617
+ clip: "rect(0 0 0 0)",
618
+ whiteSpace: "nowrap",
619
+ borderWidth: 0
620
+ });
621
+ var Row2 = styles.styled("label")(({ theme }) => ({
622
+ display: "inline-flex",
623
+ alignItems: "center",
624
+ gap: "0.5rem",
625
+ cursor: "inherit",
626
+ fontFamily: theme.typography.fontFamily
627
+ }));
628
+ var LabelText2 = styles.styled("span")(
629
+ ({ theme, $size, $disabled, $error }) => ({
630
+ fontSize: labelFontSizeMap2[$size],
631
+ fontWeight: 400,
632
+ color: $disabled ? theme.palette.action.disabled : $error ? theme.palette.error.main : theme.palette.text.primary,
633
+ userSelect: "none"
634
+ })
635
+ );
636
+ var Root5 = styles.styled("span")(({ $disabled }) => ({
637
+ display: "inline-flex",
638
+ flexDirection: "column",
639
+ cursor: $disabled ? "not-allowed" : "pointer"
640
+ }));
641
+ var RadioInput = react.forwardRef(
642
+ ({ label, helperText, error = false, size = "md", disabled = false, id, ...rest }, ref) => {
643
+ const autoId = react.useId();
644
+ const inputId = id ?? autoId;
645
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root5, { $disabled: disabled, children: [
646
+ /* @__PURE__ */ jsxRuntime.jsxs(Row2, { htmlFor: inputId, children: [
647
+ /* @__PURE__ */ jsxRuntime.jsx(Circle, { $size: size, $error: error, $disabled: disabled, children: /* @__PURE__ */ jsxRuntime.jsx(HiddenInput2, { ref, id: inputId, type: "radio", disabled, ...rest }) }),
648
+ label && /* @__PURE__ */ jsxRuntime.jsx(LabelText2, { $size: size, $disabled: disabled, $error: error, children: label })
649
+ ] }),
650
+ helperText && /* @__PURE__ */ jsxRuntime.jsx(HelperText, { error, children: helperText })
651
+ ] });
652
+ }
653
+ );
654
+ RadioInput.displayName = "RadioInput";
572
655
  var formatSize = (bytes) => {
573
656
  if (bytes < 1024) return `${bytes} B`;
574
657
  if (bytes < 1024 ** 2) return `${(bytes / 1024).toFixed(1)} KB`;
@@ -579,11 +662,11 @@ var CloudUploadIcon = ({ size }) => /* @__PURE__ */ jsxRuntime.jsx(CloudUploadMu
579
662
  var FileDocIcon = ({ size }) => /* @__PURE__ */ jsxRuntime.jsx(InsertDriveFileIcon__default.default, { "aria-hidden": true, style: { fontSize: size } });
580
663
  var TrashIcon = ({ size = 12 }) => /* @__PURE__ */ jsxRuntime.jsx(DeleteOutlinedIcon__default.default, { "aria-hidden": true, style: { fontSize: size } });
581
664
  var XIcon = () => /* @__PURE__ */ jsxRuntime.jsx(CloseIcon__default.default, { "aria-hidden": true, style: { fontSize: 11 } });
582
- var Root5 = styles.styled("div")(({ $fullWidth }) => ({
665
+ var Root6 = styles.styled("div")(({ $fullWidth }) => ({
583
666
  display: $fullWidth ? "block" : "inline-block",
584
667
  width: $fullWidth ? "100%" : "auto"
585
668
  }));
586
- var HiddenInput2 = styles.styled("input")({
669
+ var HiddenInput3 = styles.styled("input")({
587
670
  position: "absolute",
588
671
  width: 1,
589
672
  height: 1,
@@ -1057,7 +1140,7 @@ var FileInput = react.forwardRef(
1057
1140
  const ds = dropzoneSizes[size];
1058
1141
  const compactLabel = hasFiles ? files.length === 1 ? files[0].name : filesSelectedLabel(files.length) : noFileLabel;
1059
1142
  const hiddenInput = /* @__PURE__ */ jsxRuntime.jsx(
1060
- HiddenInput2,
1143
+ HiddenInput3,
1061
1144
  {
1062
1145
  ref: assignRef,
1063
1146
  id: inputId,
@@ -1069,7 +1152,7 @@ var FileInput = react.forwardRef(
1069
1152
  }
1070
1153
  );
1071
1154
  if (variant === "dropzone") {
1072
- return /* @__PURE__ */ jsxRuntime.jsxs(Root5, { $fullWidth: fullWidth, children: [
1155
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root6, { $fullWidth: fullWidth, children: [
1073
1156
  label && /* @__PURE__ */ jsxRuntime.jsx(Label, { htmlFor: inputId, error, size, children: label }),
1074
1157
  /* @__PURE__ */ jsxRuntime.jsxs(
1075
1158
  DropzoneArea,
@@ -1197,7 +1280,7 @@ var FileInput = react.forwardRef(
1197
1280
  helperText && /* @__PURE__ */ jsxRuntime.jsx(HelperText, { error, children: helperText })
1198
1281
  ] });
1199
1282
  }
1200
- return /* @__PURE__ */ jsxRuntime.jsxs(Root5, { $fullWidth: fullWidth, children: [
1283
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root6, { $fullWidth: fullWidth, children: [
1201
1284
  label && /* @__PURE__ */ jsxRuntime.jsx(Label, { htmlFor: inputId, error, size, children: label }),
1202
1285
  /* @__PURE__ */ jsxRuntime.jsxs(
1203
1286
  CompactWrapper,
@@ -1316,7 +1399,7 @@ var triggerColors = (theme, error, open) => ({
1316
1399
  borderColor: error ? theme.palette.error.dark : theme.palette.text.secondary
1317
1400
  }
1318
1401
  });
1319
- var Root6 = styles.styled("div")(({ $fullWidth }) => ({
1402
+ var Root7 = styles.styled("div")(({ $fullWidth }) => ({
1320
1403
  display: $fullWidth ? "block" : "inline-block",
1321
1404
  width: $fullWidth ? "100%" : "auto",
1322
1405
  position: "relative"
@@ -1433,7 +1516,7 @@ var BaseSelectInput = ({
1433
1516
  }, [isOpen, close]);
1434
1517
  const selectedLabel = options.find((o) => o.value === value)?.label;
1435
1518
  const defaultTriggerContent = /* @__PURE__ */ jsxRuntime.jsx("span", { style: { opacity: selectedLabel ? 1 : 0.5 }, children: selectedLabel ?? placeholder });
1436
- return /* @__PURE__ */ jsxRuntime.jsxs(Root6, { $fullWidth: fullWidth, ref: rootRef, children: [
1519
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root7, { $fullWidth: fullWidth, ref: rootRef, children: [
1437
1520
  label && /* @__PURE__ */ jsxRuntime.jsx(Label, { htmlFor: inputId, error, size, children: label }),
1438
1521
  /* @__PURE__ */ jsxRuntime.jsxs(
1439
1522
  Trigger,
@@ -1713,7 +1796,7 @@ var borderColors = (theme, error) => ({
1713
1796
  boxShadow: `0 0 0 3px ${error ? theme.palette.error.main : theme.palette.primary.main}33`
1714
1797
  }
1715
1798
  });
1716
- var Root7 = styles.styled("div")(({ $fullWidth }) => ({
1799
+ var Root8 = styles.styled("div")(({ $fullWidth }) => ({
1717
1800
  display: $fullWidth ? "block" : "inline-block",
1718
1801
  width: $fullWidth ? "100%" : "auto"
1719
1802
  }));
@@ -1754,7 +1837,7 @@ var TextareaInput = react.forwardRef(
1754
1837
  }, ref) => {
1755
1838
  const autoId = react.useId();
1756
1839
  const inputId = id ?? autoId;
1757
- return /* @__PURE__ */ jsxRuntime.jsxs(Root7, { $fullWidth: fullWidth, children: [
1840
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root8, { $fullWidth: fullWidth, children: [
1758
1841
  label && /* @__PURE__ */ jsxRuntime.jsx(Label, { htmlFor: inputId, error, size, children: label }),
1759
1842
  /* @__PURE__ */ jsxRuntime.jsx(
1760
1843
  StyledTextarea,
@@ -3392,7 +3475,7 @@ var wrapperColors = (theme, error, focused) => ({
3392
3475
  borderColor: !focused ? error ? theme.palette.error.dark : theme.palette.text.secondary : void 0
3393
3476
  }
3394
3477
  });
3395
- var Root8 = styles.styled("div")(({ $fullWidth }) => ({
3478
+ var Root9 = styles.styled("div")(({ $fullWidth }) => ({
3396
3479
  display: $fullWidth ? "block" : "inline-block",
3397
3480
  width: $fullWidth ? "100%" : "auto"
3398
3481
  }));
@@ -3648,7 +3731,7 @@ var PhoneInput = react.forwardRef(
3648
3731
  return () => document.removeEventListener("mousedown", handler);
3649
3732
  }, [isOpen, close]);
3650
3733
  const derivedPlaceholder = placeholder ?? (activeCountry.minLength === activeCountry.maxLength ? `${activeCountry.maxLength} ${digitsLabel}` : `${activeCountry.minLength}\u2013${activeCountry.maxLength} ${digitsLabel}`);
3651
- return /* @__PURE__ */ jsxRuntime.jsxs(Root8, { $fullWidth: fullWidth, ref: rootRef, children: [
3734
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root9, { $fullWidth: fullWidth, ref: rootRef, children: [
3652
3735
  label && /* @__PURE__ */ jsxRuntime.jsx(Label, { htmlFor: inputId, error, size, children: label }),
3653
3736
  /* @__PURE__ */ jsxRuntime.jsxs(
3654
3737
  InputWrapper2,
@@ -3760,19 +3843,19 @@ function getActiveColor(color, theme) {
3760
3843
  return theme.palette.primary.main;
3761
3844
  }
3762
3845
  }
3763
- var Root9 = styles.styled("span")(({ $disabled }) => ({
3846
+ var Root10 = styles.styled("span")(({ $disabled }) => ({
3764
3847
  display: "inline-flex",
3765
3848
  flexDirection: "column",
3766
3849
  cursor: $disabled ? "not-allowed" : "pointer"
3767
3850
  }));
3768
- var Row2 = styles.styled("label")(({ $placement }) => ({
3851
+ var Row3 = styles.styled("label")(({ $placement }) => ({
3769
3852
  display: "inline-flex",
3770
3853
  alignItems: "center",
3771
3854
  flexDirection: $placement === "start" ? "row-reverse" : "row",
3772
3855
  gap: "0.5rem",
3773
3856
  cursor: "inherit"
3774
3857
  }));
3775
- var HiddenInput3 = styles.styled("input")({
3858
+ var HiddenInput4 = styles.styled("input")({
3776
3859
  position: "absolute",
3777
3860
  width: 1,
3778
3861
  height: 1,
@@ -3823,7 +3906,7 @@ var Thumb = styles.styled("span", {
3823
3906
  transform: "scale(1.1)"
3824
3907
  }
3825
3908
  }));
3826
- var LabelText2 = styles.styled("span")(
3909
+ var LabelText3 = styles.styled("span")(
3827
3910
  ({ theme, $size, $disabled, $error }) => ({
3828
3911
  fontSize: FONT_S[$size],
3829
3912
  color: $disabled ? theme.palette.action.disabled : $error ? theme.palette.error.main : theme.palette.text.primary,
@@ -3845,11 +3928,11 @@ var SwitchInput = react.forwardRef(
3845
3928
  }, ref) => {
3846
3929
  const autoId = react.useId();
3847
3930
  const inputId = id ?? autoId;
3848
- return /* @__PURE__ */ jsxRuntime.jsxs(Root9, { $disabled: disabled, children: [
3849
- /* @__PURE__ */ jsxRuntime.jsxs(Row2, { htmlFor: inputId, $placement: labelPlacement, children: [
3931
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root10, { $disabled: disabled, children: [
3932
+ /* @__PURE__ */ jsxRuntime.jsxs(Row3, { htmlFor: inputId, $placement: labelPlacement, children: [
3850
3933
  /* @__PURE__ */ jsxRuntime.jsxs(Track, { $size: size, $color: color, $error: error, $disabled: disabled, children: [
3851
3934
  /* @__PURE__ */ jsxRuntime.jsx(
3852
- HiddenInput3,
3935
+ HiddenInput4,
3853
3936
  {
3854
3937
  ref,
3855
3938
  id: inputId,
@@ -3861,7 +3944,7 @@ var SwitchInput = react.forwardRef(
3861
3944
  ),
3862
3945
  /* @__PURE__ */ jsxRuntime.jsx(Thumb, { $size: size })
3863
3946
  ] }),
3864
- label && /* @__PURE__ */ jsxRuntime.jsx(LabelText2, { $size: size, $disabled: disabled, $error: error, children: label })
3947
+ label && /* @__PURE__ */ jsxRuntime.jsx(LabelText3, { $size: size, $disabled: disabled, $error: error, children: label })
3865
3948
  ] }),
3866
3949
  helperText && /* @__PURE__ */ jsxRuntime.jsx(HelperText, { error, children: helperText })
3867
3950
  ] });
@@ -3871,7 +3954,7 @@ SwitchInput.displayName = "SwitchInput";
3871
3954
  var switchColors = ["primary", "secondary", "success", "danger"];
3872
3955
  var TRACK_H2 = { sm: "0.25rem", md: "0.375rem", lg: "0.5rem" };
3873
3956
  var THUMB_S2 = { sm: "0.875rem", md: "1.125rem", lg: "1.375rem" };
3874
- var Root10 = styles.styled("div")({
3957
+ var Root11 = styles.styled("div")({
3875
3958
  display: "flex",
3876
3959
  flexDirection: "column",
3877
3960
  gap: "0.5rem",
@@ -3904,7 +3987,7 @@ var Fill = styles.styled("div")(({ theme, $left, $width }) => ({
3904
3987
  width: `${$width}%`,
3905
3988
  pointerEvents: "none"
3906
3989
  }));
3907
- var HiddenInput4 = styles.styled("input", {
3990
+ var HiddenInput5 = styles.styled("input", {
3908
3991
  shouldForwardProp: (p) => !["$size", "$disabled"].includes(p)
3909
3992
  })(({ theme, $disabled }) => ({
3910
3993
  position: "absolute",
@@ -3994,7 +4077,7 @@ var RangeSlider = react.forwardRef(
3994
4077
  const loP = pct(lo, min, max);
3995
4078
  const hiP = pct(hi, min, max);
3996
4079
  const valueLabel = range ? `${formatValue2(lo)} \u2013 ${formatValue2(hi)}` : formatValue2(lo);
3997
- return /* @__PURE__ */ jsxRuntime.jsxs(Root10, { ref, ...props, children: [
4080
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root11, { ref, ...props, children: [
3998
4081
  (label || showValue) && /* @__PURE__ */ jsxRuntime.jsxs(LabelRow, { children: [
3999
4082
  label && /* @__PURE__ */ jsxRuntime.jsx("span", { children: label }),
4000
4083
  showValue && /* @__PURE__ */ jsxRuntime.jsx("span", { children: valueLabel })
@@ -4003,7 +4086,7 @@ var RangeSlider = react.forwardRef(
4003
4086
  /* @__PURE__ */ jsxRuntime.jsx(Fill, { $left: range ? loP : 0, $width: range ? hiP - loP : loP }),
4004
4087
  range ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
4005
4088
  /* @__PURE__ */ jsxRuntime.jsx(
4006
- HiddenInput4,
4089
+ HiddenInput5,
4007
4090
  {
4008
4091
  id: `${inputId}-lo`,
4009
4092
  type: "range",
@@ -4022,7 +4105,7 @@ var RangeSlider = react.forwardRef(
4022
4105
  ),
4023
4106
  /* @__PURE__ */ jsxRuntime.jsx(ThumbVisual, { $size: size, $pct: loP, $disabled: disabled }),
4024
4107
  /* @__PURE__ */ jsxRuntime.jsx(
4025
- HiddenInput4,
4108
+ HiddenInput5,
4026
4109
  {
4027
4110
  id: `${inputId}-hi`,
4028
4111
  type: "range",
@@ -4042,7 +4125,7 @@ var RangeSlider = react.forwardRef(
4042
4125
  /* @__PURE__ */ jsxRuntime.jsx(ThumbVisual, { $size: size, $pct: hiP, $disabled: disabled })
4043
4126
  ] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
4044
4127
  /* @__PURE__ */ jsxRuntime.jsx(
4045
- HiddenInput4,
4128
+ HiddenInput5,
4046
4129
  {
4047
4130
  id: inputId,
4048
4131
  type: "range",
@@ -4124,7 +4207,7 @@ var inputColors2 = (theme, error) => ({
4124
4207
  boxShadow: `0 0 0 3px ${error ? theme.palette.error.main : theme.palette.primary.main}33`
4125
4208
  }
4126
4209
  });
4127
- var Root11 = styles.styled("div")(({ $fullWidth }) => ({
4210
+ var Root12 = styles.styled("div")(({ $fullWidth }) => ({
4128
4211
  display: $fullWidth ? "block" : "inline-block",
4129
4212
  width: $fullWidth ? "100%" : "auto",
4130
4213
  position: "relative"
@@ -4519,7 +4602,7 @@ var DateTimePicker = react.forwardRef(
4519
4602
  const showCalendar = mode !== "time";
4520
4603
  const showTime = mode !== "date";
4521
4604
  const needsConfirm = mode !== "date";
4522
- return /* @__PURE__ */ jsxRuntime.jsxs(Root11, { ref: rootRef, $fullWidth: fullWidth, children: [
4605
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root12, { ref: rootRef, $fullWidth: fullWidth, children: [
4523
4606
  label && /* @__PURE__ */ jsxRuntime.jsx(Label, { htmlFor: inputId, error, size, children: label }),
4524
4607
  /* @__PURE__ */ jsxRuntime.jsxs(
4525
4608
  InputWrapper3,
@@ -5011,6 +5094,34 @@ function SectionHeading({
5011
5094
  ] });
5012
5095
  }
5013
5096
  var sectionHeadingAligns = ["center", "left", "right"];
5097
+ var StyledSeparator = styles.styled("hr", {
5098
+ shouldForwardProp: (prop) => prop !== "$orientation"
5099
+ })(({ theme, $orientation }) => ({
5100
+ border: "none",
5101
+ margin: 0,
5102
+ flexShrink: 0,
5103
+ ...$orientation === "horizontal" ? {
5104
+ width: "100%",
5105
+ height: "1px",
5106
+ backgroundColor: theme.palette.divider
5107
+ } : {
5108
+ width: "1px",
5109
+ height: "100%",
5110
+ alignSelf: "stretch",
5111
+ backgroundColor: theme.palette.divider
5112
+ }
5113
+ }));
5114
+ function Separator({ orientation = "horizontal", ...rest }) {
5115
+ return /* @__PURE__ */ jsxRuntime.jsx(
5116
+ StyledSeparator,
5117
+ {
5118
+ $orientation: orientation,
5119
+ role: "separator",
5120
+ "aria-orientation": orientation,
5121
+ ...rest
5122
+ }
5123
+ );
5124
+ }
5014
5125
  var shimmer = react$1.keyframes`
5015
5126
  0% { background-position: -200% 0; }
5016
5127
  100% { background-position: 200% 0; }
@@ -5073,7 +5184,7 @@ var spin = react$1.keyframes`to { transform: rotate(360deg); }`;
5073
5184
  var fade = react$1.keyframes`0%,100%{opacity:.15} 50%{opacity:1}`;
5074
5185
  var scalePulse = react$1.keyframes`0%,100%{transform:scale(0.6);opacity:.4} 50%{transform:scale(1);opacity:1}`;
5075
5186
  var barAnim = react$1.keyframes`0%,100%{transform:scaleY(.4);opacity:.5} 50%{transform:scaleY(1);opacity:1}`;
5076
- var Root12 = styles.styled("span", {
5187
+ var Root13 = styles.styled("span", {
5077
5188
  shouldForwardProp: (p) => !["$size", "$color"].includes(p)
5078
5189
  })(({ theme, $size, $color }) => {
5079
5190
  const colorMap = {
@@ -5162,7 +5273,7 @@ function Spinner3({
5162
5273
  ...props
5163
5274
  }) {
5164
5275
  const Inner5 = VARIANTS[variant];
5165
- return /* @__PURE__ */ jsxRuntime.jsx(Root12, { $size: size, $color: color, role: "status", "aria-label": label, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(Inner5, {}) });
5276
+ return /* @__PURE__ */ jsxRuntime.jsx(Root13, { $size: size, $color: color, role: "status", "aria-label": label, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(Inner5, {}) });
5166
5277
  }
5167
5278
  var spinnerVariants = ["ring", "dots", "pulse", "bars"];
5168
5279
  var spinnerSizes = ["xs", "sm", "md", "lg", "xl"];
@@ -5288,7 +5399,7 @@ var FONT_MAP = {
5288
5399
  lg: "1.125rem",
5289
5400
  xl: "1.5rem"
5290
5401
  };
5291
- var Root13 = styles.styled("div")({ position: "relative", display: "inline-flex", flexShrink: 0 });
5402
+ var Root14 = styles.styled("div")({ position: "relative", display: "inline-flex", flexShrink: 0 });
5292
5403
  var Label2 = styles.styled("div", {
5293
5404
  shouldForwardProp: (p) => p !== "$size"
5294
5405
  })(({ theme, $size }) => ({
@@ -5342,7 +5453,7 @@ function ProgressCircle({
5342
5453
  const { color, gradient } = useStrokeColor(variant, gradientId);
5343
5454
  const trackColor = theme.palette.mode === "dark" ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.08)";
5344
5455
  return /* @__PURE__ */ jsxRuntime.jsxs(
5345
- Root13,
5456
+ Root14,
5346
5457
  {
5347
5458
  role: "progressbar",
5348
5459
  "aria-valuenow": value,
@@ -5699,7 +5810,7 @@ var PRESET_MAP = {
5699
5810
  "3/4": 3 / 4,
5700
5811
  "2/3": 2 / 3
5701
5812
  };
5702
- var Root14 = styles.styled("div")({
5813
+ var Root15 = styles.styled("div")({
5703
5814
  position: "relative",
5704
5815
  width: "100%",
5705
5816
  aspectRatio: "var(--ar)",
@@ -5715,7 +5826,7 @@ var AspectRatio = react.forwardRef(
5715
5826
  ({ ratio = "16/9", children, style, ...props }, ref) => {
5716
5827
  const numericRatio = typeof ratio === "string" ? PRESET_MAP[ratio] ?? 16 / 9 : ratio;
5717
5828
  return /* @__PURE__ */ jsxRuntime.jsx(
5718
- Root14,
5829
+ Root15,
5719
5830
  {
5720
5831
  ref,
5721
5832
  style: { "--ar": String(numericRatio), ...style },
@@ -5743,7 +5854,7 @@ var Placeholder2 = styles.styled("div")(({ theme }) => ({
5743
5854
  }));
5744
5855
  var CategoryCardImage = ({ src, alt }) => /* @__PURE__ */ jsxRuntime.jsx(AspectRatio, { ratio: "4/3", children: src ? /* @__PURE__ */ jsxRuntime.jsx(Img, { src, alt }) : /* @__PURE__ */ jsxRuntime.jsx(Placeholder2, { "aria-label": alt, children: /* @__PURE__ */ jsxRuntime.jsx(ImageIcon__default.default, { style: { fontSize: 48 } }) }) });
5745
5856
  CategoryCardImage.displayName = "CategoryCardImage";
5746
- var Root15 = styles.styled("div")({
5857
+ var Root16 = styles.styled("div")({
5747
5858
  display: "flex",
5748
5859
  flexDirection: "column",
5749
5860
  gap: "0.25rem"
@@ -5765,7 +5876,7 @@ var CategoryCardInfo = ({
5765
5876
  name,
5766
5877
  count,
5767
5878
  countLabel = "produkt\xF3w"
5768
- }) => /* @__PURE__ */ jsxRuntime.jsxs(Root15, { children: [
5879
+ }) => /* @__PURE__ */ jsxRuntime.jsxs(Root16, { children: [
5769
5880
  /* @__PURE__ */ jsxRuntime.jsx(Name, { children: name }),
5770
5881
  count !== void 0 && /* @__PURE__ */ jsxRuntime.jsxs(Count, { children: [
5771
5882
  count,
@@ -5774,7 +5885,7 @@ var CategoryCardInfo = ({
5774
5885
  ] })
5775
5886
  ] });
5776
5887
  CategoryCardInfo.displayName = "CategoryCardInfo";
5777
- var Root16 = styles.styled(Card)(({ theme }) => ({
5888
+ var Root17 = styles.styled(Card)(({ theme }) => ({
5778
5889
  display: "flex",
5779
5890
  flexDirection: "column",
5780
5891
  overflow: "hidden",
@@ -5800,14 +5911,14 @@ var CategoryCard = react.forwardRef(
5800
5911
  /* @__PURE__ */ jsxRuntime.jsx(ImageWrap, { children: /* @__PURE__ */ jsxRuntime.jsx(CategoryCardImage, { src: imageUrl, alt: imageAlt ?? name }) }),
5801
5912
  /* @__PURE__ */ jsxRuntime.jsx(CategoryCardInfo, { name, count })
5802
5913
  ] });
5803
- return /* @__PURE__ */ jsxRuntime.jsx(Root16, { ref, variant: "default", padding: "md", rounded: "lg", ...props, children: href ? /* @__PURE__ */ jsxRuntime.jsx(CardLink, { href, children: content }) : content });
5914
+ return /* @__PURE__ */ jsxRuntime.jsx(Root17, { ref, variant: "default", padding: "md", rounded: "lg", ...props, children: href ? /* @__PURE__ */ jsxRuntime.jsx(CardLink, { href, children: content }) : content });
5804
5915
  }
5805
5916
  );
5806
5917
  CategoryCard.displayName = "CategoryCard";
5807
5918
  function deriveInitials(name) {
5808
5919
  return name.split(/\s+/).filter(Boolean).slice(0, 2).map((p) => p[0]?.toUpperCase() ?? "").join("");
5809
5920
  }
5810
- var Root17 = styles.styled(Card)({
5921
+ var Root18 = styles.styled(Card)({
5811
5922
  display: "flex",
5812
5923
  alignItems: "center",
5813
5924
  justifyContent: "space-between",
@@ -5873,7 +5984,7 @@ var ProfileCard = react.forwardRef(
5873
5984
  }, ref) => {
5874
5985
  const resolvedInitials = initials ?? deriveInitials(name);
5875
5986
  const imgSize = sizeMap5[avatarSize] ?? "4rem";
5876
- return /* @__PURE__ */ jsxRuntime.jsxs(Root17, { ref, variant: cardVariant, padding: "lg", rounded: "lg", ...props, children: [
5987
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root18, { ref, variant: cardVariant, padding: "lg", rounded: "lg", ...props, children: [
5877
5988
  /* @__PURE__ */ jsxRuntime.jsxs(Identity, { children: [
5878
5989
  avatarUrl ? /* @__PURE__ */ jsxRuntime.jsx(AvatarImg, { src: avatarUrl, alt: name, style: { width: imgSize, height: imgSize } }) : /* @__PURE__ */ jsxRuntime.jsx(Avatar, { initials: resolvedInitials, size: avatarSize, color: avatarColor }),
5879
5990
  /* @__PURE__ */ jsxRuntime.jsxs(TextBlock, { children: [
@@ -5893,7 +6004,7 @@ var FONT_SIZE = {
5893
6004
  lg: "1.5rem",
5894
6005
  xl: "2rem"
5895
6006
  };
5896
- var Root18 = styles.styled("div")({
6007
+ var Root19 = styles.styled("div")({
5897
6008
  display: "inline-flex",
5898
6009
  flexDirection: "column",
5899
6010
  gap: "0.25rem"
@@ -5974,7 +6085,7 @@ var Price = react.forwardRef(
5974
6085
  const onSale = originalPrice !== void 0 && originalPrice > price;
5975
6086
  const discount = onSale ? calcDiscount(price, originalPrice) : 0;
5976
6087
  const showOmnibus = lowestPrice !== void 0;
5977
- return /* @__PURE__ */ jsxRuntime.jsxs(Root18, { ref, ...props, children: [
6088
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root19, { ref, ...props, children: [
5978
6089
  /* @__PURE__ */ jsxRuntime.jsxs(PriceRow, { children: [
5979
6090
  /* @__PURE__ */ jsxRuntime.jsx(
5980
6091
  Current,
@@ -6031,7 +6142,7 @@ function calcTimeLeft(target) {
6031
6142
  function pad(n) {
6032
6143
  return String(n).padStart(2, "0");
6033
6144
  }
6034
- var Root19 = styles.styled("div", {
6145
+ var Root20 = styles.styled("div", {
6035
6146
  shouldForwardProp: (prop) => prop !== "$variant"
6036
6147
  })(({ theme, $variant }) => ({
6037
6148
  display: "inline-flex",
@@ -6126,11 +6237,11 @@ var CountdownTimer = react.forwardRef(
6126
6237
  return () => clearInterval(id);
6127
6238
  }, [targetDate, onExpire]);
6128
6239
  if (!timeLeft) {
6129
- return /* @__PURE__ */ jsxRuntime.jsx(Root19, { ref, $variant: variant, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(TimerLabel, { $variant: variant, children: expiredLabel }) });
6240
+ return /* @__PURE__ */ jsxRuntime.jsx(Root20, { ref, $variant: variant, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(TimerLabel, { $variant: variant, children: expiredLabel }) });
6130
6241
  }
6131
6242
  const parts = [timeLeft.days, timeLeft.hours, timeLeft.minutes, timeLeft.seconds];
6132
6243
  return /* @__PURE__ */ jsxRuntime.jsxs(
6133
- Root19,
6244
+ Root20,
6134
6245
  {
6135
6246
  ref,
6136
6247
  $variant: variant,
@@ -6153,7 +6264,7 @@ var CountdownTimer = react.forwardRef(
6153
6264
  );
6154
6265
  CountdownTimer.displayName = "CountdownTimer";
6155
6266
  var countdownTimerVariants = ["inline", "card", "banner"];
6156
- var Root20 = styles.styled(Card)({
6267
+ var Root21 = styles.styled(Card)({
6157
6268
  display: "flex",
6158
6269
  flexDirection: "column",
6159
6270
  height: "100%",
@@ -6191,7 +6302,7 @@ var DealCard = react.forwardRef(
6191
6302
  onAddToCart,
6192
6303
  ...props
6193
6304
  }, ref) => {
6194
- return /* @__PURE__ */ jsxRuntime.jsxs(Root20, { ref, variant: "default", padding: "md", rounded: "lg", ...props, children: [
6305
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root21, { ref, variant: "default", padding: "md", rounded: "lg", ...props, children: [
6195
6306
  /* @__PURE__ */ jsxRuntime.jsx(ImageWrap2, { children: /* @__PURE__ */ jsxRuntime.jsx(ProductCardImage, { src: imageUrl, alt: imageAlt ?? name }) }),
6196
6307
  /* @__PURE__ */ jsxRuntime.jsx(Name3, { children: name }),
6197
6308
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -6296,7 +6407,7 @@ var MetaRow = styles.styled("div", {
6296
6407
  color: $inverted ? "rgba(255,255,255,0.75)" : theme.palette.text.secondary,
6297
6408
  fontFamily: theme.typography.fontFamily
6298
6409
  }));
6299
- var Separator = styles.styled("span")({
6410
+ var Separator2 = styles.styled("span")({
6300
6411
  userSelect: "none"
6301
6412
  });
6302
6413
  var PostCardMeta = ({
@@ -6308,7 +6419,7 @@ var PostCardMeta = ({
6308
6419
  if (!date && !author) return null;
6309
6420
  return /* @__PURE__ */ jsxRuntime.jsxs(MetaRow, { $inverted: inverted, children: [
6310
6421
  date && /* @__PURE__ */ jsxRuntime.jsx("span", { children: formatDate(date, locale) }),
6311
- date && author && /* @__PURE__ */ jsxRuntime.jsx(Separator, { children: "\xB7" }),
6422
+ date && author && /* @__PURE__ */ jsxRuntime.jsx(Separator2, { children: "\xB7" }),
6312
6423
  author && /* @__PURE__ */ jsxRuntime.jsx("span", { children: author })
6313
6424
  ] });
6314
6425
  };
@@ -6473,7 +6584,7 @@ var postCardVariants = [
6473
6584
  "featured",
6474
6585
  "compact"
6475
6586
  ];
6476
- var Row3 = styles.styled("div")({
6587
+ var Row4 = styles.styled("div")({
6477
6588
  display: "flex",
6478
6589
  alignItems: "baseline",
6479
6590
  gap: "0.25rem"
@@ -6498,7 +6609,7 @@ var Period = styles.styled("span")(({ theme }) => ({
6498
6609
  fontSize: "0.875rem",
6499
6610
  color: theme.palette.text.secondary
6500
6611
  }));
6501
- var PricingCardPrice = ({ price, currency, period }) => /* @__PURE__ */ jsxRuntime.jsxs(Row3, { children: [
6612
+ var PricingCardPrice = ({ price, currency, period }) => /* @__PURE__ */ jsxRuntime.jsxs(Row4, { children: [
6502
6613
  currency && /* @__PURE__ */ jsxRuntime.jsx(Currency, { children: currency }),
6503
6614
  /* @__PURE__ */ jsxRuntime.jsx(Amount, { children: price }),
6504
6615
  period && /* @__PURE__ */ jsxRuntime.jsx(Period, { children: period })
@@ -6536,7 +6647,7 @@ var PricingCardFeatureList = ({ features }) => /* @__PURE__ */ jsxRuntime.jsx(Li
6536
6647
  ] }, i);
6537
6648
  }) });
6538
6649
  PricingCardFeatureList.displayName = "PricingCardFeatureList";
6539
- var Root21 = styles.styled(Card)({
6650
+ var Root22 = styles.styled(Card)({
6540
6651
  display: "flex",
6541
6652
  flexDirection: "column",
6542
6653
  height: "100%"
@@ -6618,7 +6729,7 @@ var PricingCard = react.forwardRef(
6618
6729
  }, ref) => {
6619
6730
  const resolvedCardVariant = cardVariant ?? (popular ? "gradient-primary" : "default");
6620
6731
  const resolvedCtaVariant = ctaVariant ?? (popular ? "primary" : "ghost");
6621
- return /* @__PURE__ */ jsxRuntime.jsxs(Root21, { ref, variant: resolvedCardVariant, padding: "lg", rounded: "lg", ...props, children: [
6732
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root22, { ref, variant: resolvedCardVariant, padding: "lg", rounded: "lg", ...props, children: [
6622
6733
  /* @__PURE__ */ jsxRuntime.jsxs(NameRow, { children: [
6623
6734
  /* @__PURE__ */ jsxRuntime.jsx(Name4, { children: name }),
6624
6735
  popular && /* @__PURE__ */ jsxRuntime.jsx(Badge2, { variant: popularBadgeVariant, children: popularLabel })
@@ -6639,7 +6750,7 @@ var sizeMap6 = {
6639
6750
  md: "1.25rem",
6640
6751
  lg: "1.5rem"
6641
6752
  };
6642
- var Root22 = styles.styled("div")(({ theme }) => ({
6753
+ var Root23 = styles.styled("div")(({ theme }) => ({
6643
6754
  display: "inline-flex",
6644
6755
  alignItems: "center",
6645
6756
  gap: "0.5rem",
@@ -6674,7 +6785,7 @@ var Rating = react.forwardRef(
6674
6785
  ({ value, max = 5, readonly = true, size = "md", label, count, onChange, ...props }, ref) => {
6675
6786
  const roundedValue = Math.round(value);
6676
6787
  const meta = label ?? (count !== void 0 ? `(${count})` : void 0);
6677
- return /* @__PURE__ */ jsxRuntime.jsxs(Root22, { ref, "aria-label": `Ocena ${value} z ${max}`, ...props, children: [
6788
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root23, { ref, "aria-label": `Ocena ${value} z ${max}`, ...props, children: [
6678
6789
  /* @__PURE__ */ jsxRuntime.jsx(
6679
6790
  Stars,
6680
6791
  {
@@ -6744,7 +6855,7 @@ var ProductCardImage = ({
6744
6855
  badge && /* @__PURE__ */ jsxRuntime.jsx(BadgeSlot, { children: /* @__PURE__ */ jsxRuntime.jsx(Badge2, { variant: badgeVariant, children: badge }) })
6745
6856
  ] });
6746
6857
  ProductCardImage.displayName = "ProductCardImage";
6747
- var Root23 = styles.styled(Card)({
6858
+ var Root24 = styles.styled(Card)({
6748
6859
  display: "flex",
6749
6860
  flexDirection: "column",
6750
6861
  height: "100%",
@@ -6785,7 +6896,7 @@ var ProductCard = react.forwardRef(
6785
6896
  disabledButton = false,
6786
6897
  hideButton = false,
6787
6898
  ...props
6788
- }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root23, { ref, variant: "default", padding: "md", rounded: "lg", ...props, children: [
6899
+ }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root24, { ref, variant: "default", padding: "md", rounded: "lg", ...props, children: [
6789
6900
  /* @__PURE__ */ jsxRuntime.jsx(AspectRatio, { ratio: imageRatio, style: { margin: "-1.5rem -1.5rem 1rem", width: "calc(100% + 3rem)" }, children: /* @__PURE__ */ jsxRuntime.jsx(
6790
6901
  ProductCardImage,
6791
6902
  {
@@ -6919,7 +7030,7 @@ var ProductCardHorizontal = react.forwardRef(
6919
7030
  ] }) }) })
6920
7031
  );
6921
7032
  ProductCardHorizontal.displayName = "ProductCardHorizontal";
6922
- var Root24 = styles.styled(Card, {
7033
+ var Root25 = styles.styled(Card, {
6923
7034
  shouldForwardProp: (prop) => prop !== "$align"
6924
7035
  })(({ $align }) => ({
6925
7036
  textAlign: $align,
@@ -6949,7 +7060,7 @@ var Description3 = styles.styled("p")(({ theme }) => ({
6949
7060
  lineHeight: 1.5
6950
7061
  }));
6951
7062
  var StatCard = react.forwardRef(
6952
- ({ stat, cardVariant = "default", align = "center", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root24, { ref, variant: cardVariant, padding: "lg", rounded: "lg", $align: align, ...props, children: [
7063
+ ({ stat, cardVariant = "default", align = "center", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root25, { ref, variant: cardVariant, padding: "lg", rounded: "lg", $align: align, ...props, children: [
6953
7064
  /* @__PURE__ */ jsxRuntime.jsx(Value2, { children: stat.value }),
6954
7065
  /* @__PURE__ */ jsxRuntime.jsx(Label3, { children: stat.label }),
6955
7066
  stat.description && /* @__PURE__ */ jsxRuntime.jsx(Description3, { children: stat.description })
@@ -6979,7 +7090,7 @@ var TeamMemberAvatar = ({
6979
7090
  return /* @__PURE__ */ jsxRuntime.jsx(Avatar, { initials: initials ?? deriveInitials2(name), size: "xl", color: avatarColor });
6980
7091
  };
6981
7092
  TeamMemberAvatar.displayName = "TeamMemberAvatar";
6982
- var Root25 = styles.styled("div")({ minWidth: 0 });
7093
+ var Root26 = styles.styled("div")({ minWidth: 0 });
6983
7094
  var Name7 = styles.styled("h3")(({ theme }) => ({
6984
7095
  margin: 0,
6985
7096
  color: theme.palette.text.primary,
@@ -6995,12 +7106,12 @@ var Role = styles.styled("p")(({ theme }) => ({
6995
7106
  fontSize: "0.875rem",
6996
7107
  lineHeight: 1.5
6997
7108
  }));
6998
- var TeamMemberInfo = ({ name, role }) => /* @__PURE__ */ jsxRuntime.jsxs(Root25, { children: [
7109
+ var TeamMemberInfo = ({ name, role }) => /* @__PURE__ */ jsxRuntime.jsxs(Root26, { children: [
6999
7110
  /* @__PURE__ */ jsxRuntime.jsx(Name7, { children: name }),
7000
7111
  role && /* @__PURE__ */ jsxRuntime.jsx(Role, { children: role })
7001
7112
  ] });
7002
7113
  TeamMemberInfo.displayName = "TeamMemberInfo";
7003
- var Root26 = styles.styled(Card)(({ theme }) => ({
7114
+ var Root27 = styles.styled(Card)(({ theme }) => ({
7004
7115
  display: "flex",
7005
7116
  alignItems: "center",
7006
7117
  gap: "1rem",
@@ -7013,7 +7124,7 @@ var Root26 = styles.styled(Card)(({ theme }) => ({
7013
7124
  }
7014
7125
  }));
7015
7126
  var TeamMemberCard = react.forwardRef(
7016
- ({ member, cardVariant = "default", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root26, { ref, variant: cardVariant, padding: "lg", rounded: "lg", ...props, children: [
7127
+ ({ member, cardVariant = "default", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root27, { ref, variant: cardVariant, padding: "lg", rounded: "lg", ...props, children: [
7017
7128
  /* @__PURE__ */ jsxRuntime.jsx(
7018
7129
  TeamMemberAvatar,
7019
7130
  {
@@ -7050,7 +7161,7 @@ var Quote = styles.styled("blockquote")(({ theme }) => ({
7050
7161
  }));
7051
7162
  var TestimonialQuote = ({ quote }) => /* @__PURE__ */ jsxRuntime.jsx(Quote, { children: quote });
7052
7163
  TestimonialQuote.displayName = "TestimonialQuote";
7053
- var Root27 = styles.styled("div")({
7164
+ var Root28 = styles.styled("div")({
7054
7165
  display: "flex",
7055
7166
  alignItems: "center",
7056
7167
  gap: "0.75rem"
@@ -7084,7 +7195,7 @@ var TestimonialAuthor = ({
7084
7195
  authorRole,
7085
7196
  authorAvatarUrl,
7086
7197
  authorInitials
7087
- }) => /* @__PURE__ */ jsxRuntime.jsxs(Root27, { children: [
7198
+ }) => /* @__PURE__ */ jsxRuntime.jsxs(Root28, { children: [
7088
7199
  authorAvatarUrl ? /* @__PURE__ */ jsxRuntime.jsx(AvatarImg2, { src: authorAvatarUrl, alt: authorName }) : /* @__PURE__ */ jsxRuntime.jsx(Avatar, { initials: authorInitials ?? deriveInitials3(authorName), size: "md", color: "primary" }),
7089
7200
  /* @__PURE__ */ jsxRuntime.jsxs(Info, { children: [
7090
7201
  /* @__PURE__ */ jsxRuntime.jsx(Name8, { children: authorName }),
@@ -7092,14 +7203,14 @@ var TestimonialAuthor = ({
7092
7203
  ] })
7093
7204
  ] });
7094
7205
  TestimonialAuthor.displayName = "TestimonialAuthor";
7095
- var Root28 = styles.styled(Card)({
7206
+ var Root29 = styles.styled(Card)({
7096
7207
  display: "flex",
7097
7208
  flexDirection: "column",
7098
7209
  gap: "1.25rem",
7099
7210
  height: "100%"
7100
7211
  });
7101
7212
  var TestimonialCard = react.forwardRef(
7102
- ({ testimonial, cardVariant = "default", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root28, { ref, variant: cardVariant, padding: "lg", rounded: "lg", ...props, children: [
7213
+ ({ testimonial, cardVariant = "default", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root29, { ref, variant: cardVariant, padding: "lg", rounded: "lg", ...props, children: [
7103
7214
  testimonial.rating && /* @__PURE__ */ jsxRuntime.jsx(Rating, { value: testimonial.rating, readonly: true, size: "sm" }),
7104
7215
  /* @__PURE__ */ jsxRuntime.jsx(TestimonialQuote, { quote: testimonial.quote }),
7105
7216
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -7114,7 +7225,7 @@ var TestimonialCard = react.forwardRef(
7114
7225
  ] })
7115
7226
  );
7116
7227
  TestimonialCard.displayName = "TestimonialCard";
7117
- var Root29 = styles.styled("div")(({ theme }) => ({
7228
+ var Root30 = styles.styled("div")(({ theme }) => ({
7118
7229
  position: "relative",
7119
7230
  padding: "1.5rem",
7120
7231
  borderRadius: "1rem",
@@ -7179,7 +7290,7 @@ var Expiry = styles.styled("p")(({ theme }) => ({
7179
7290
  color: theme.palette.text.disabled
7180
7291
  }));
7181
7292
  var VoucherCard = react.forwardRef(
7182
- ({ code, discount, description, expiresAt, copied = false, onCopy, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root29, { ref, ...props, children: [
7293
+ ({ code, discount, description, expiresAt, copied = false, onCopy, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root30, { ref, ...props, children: [
7183
7294
  /* @__PURE__ */ jsxRuntime.jsxs(Header, { children: [
7184
7295
  /* @__PURE__ */ jsxRuntime.jsx(LocalOfferIcon__default.default, { style: { fontSize: 20 }, color: "primary" }),
7185
7296
  /* @__PURE__ */ jsxRuntime.jsx(Discount, { children: discount })
@@ -7288,7 +7399,7 @@ var RemoveBtn = styles.styled("button")(({ theme }) => ({
7288
7399
  }
7289
7400
  }));
7290
7401
  var Tbody = styles.styled("tbody")({});
7291
- var Row4 = styles.styled("tr", {
7402
+ var Row5 = styles.styled("tr", {
7292
7403
  shouldForwardProp: (p) => p !== "$diff"
7293
7404
  })(({ theme, $diff }) => ({
7294
7405
  backgroundColor: $diff ? theme.palette.mode === "dark" ? "rgba(255,255,255,0.03)" : "rgba(0,0,0,0.02)" : "transparent",
@@ -7365,7 +7476,7 @@ function CompareTool({
7365
7476
  ] }) }),
7366
7477
  /* @__PURE__ */ jsxRuntime.jsx(Tbody, { children: specKeys.map((key) => {
7367
7478
  const diff = highlightDifferences && isDiff(key, products);
7368
- return /* @__PURE__ */ jsxRuntime.jsxs(Row4, { $diff: diff, children: [
7479
+ return /* @__PURE__ */ jsxRuntime.jsxs(Row5, { $diff: diff, children: [
7369
7480
  /* @__PURE__ */ jsxRuntime.jsx(LabelCell, { as: "th", scope: "row", children: specLabels[key] ?? key }),
7370
7481
  products.map((p) => {
7371
7482
  const val = p.specs[key];
@@ -7377,7 +7488,7 @@ function CompareTool({
7377
7488
  ] }) });
7378
7489
  }
7379
7490
  var spin2 = styles.keyframes`to { transform: rotate(360deg); }`;
7380
- var Root30 = styles.styled("div")({
7491
+ var Root31 = styles.styled("div")({
7381
7492
  display: "flex",
7382
7493
  flexDirection: "column",
7383
7494
  gap: "0.5rem"
@@ -7524,7 +7635,7 @@ function CouponInput({
7524
7635
  if (e.key === "Enter") handleApply();
7525
7636
  };
7526
7637
  if (appliedCode) {
7527
- return /* @__PURE__ */ jsxRuntime.jsxs(Root30, { className, children: [
7638
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root31, { className, children: [
7528
7639
  /* @__PURE__ */ jsxRuntime.jsxs(AppliedRow, { role: "status", "aria-label": `Kod rabatowy ${appliedCode} zastosowany`, children: [
7529
7640
  /* @__PURE__ */ jsxRuntime.jsx(AppliedCode, { children: appliedCode }),
7530
7641
  onRemove && /* @__PURE__ */ jsxRuntime.jsx(
@@ -7543,7 +7654,7 @@ function CouponInput({
7543
7654
  ] })
7544
7655
  ] });
7545
7656
  }
7546
- return /* @__PURE__ */ jsxRuntime.jsxs(Root30, { className, children: [
7657
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root31, { className, children: [
7547
7658
  /* @__PURE__ */ jsxRuntime.jsxs(InputRow, { $hasError: Boolean(error), $applied: false, children: [
7548
7659
  /* @__PURE__ */ jsxRuntime.jsx(
7549
7660
  Input,
@@ -7575,7 +7686,7 @@ function CouponInput({
7575
7686
  error && /* @__PURE__ */ jsxRuntime.jsx(Message, { $type: "error", id: errorId, role: "alert", children: error })
7576
7687
  ] });
7577
7688
  }
7578
- var Root31 = styles.styled("div")({
7689
+ var Root32 = styles.styled("div")({
7579
7690
  display: "flex",
7580
7691
  flexDirection: "column",
7581
7692
  gap: "0.5rem"
@@ -7623,7 +7734,7 @@ var Desc = styles.styled("div")(({ theme }) => ({
7623
7734
  marginTop: "0.125rem"
7624
7735
  }));
7625
7736
  var PaymentMethodSelector = react.forwardRef(
7626
- ({ methods, value, onChange, label = "Metoda p\u0142atno\u015Bci", disabled, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root31, { ref, ...props, children: [
7737
+ ({ methods, value, onChange, label = "Metoda p\u0142atno\u015Bci", disabled, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root32, { ref, ...props, children: [
7627
7738
  /* @__PURE__ */ jsxRuntime.jsx(GroupLabel, { children: label }),
7628
7739
  methods.map((method) => {
7629
7740
  const selected = value === method.id;
@@ -7650,7 +7761,7 @@ var PaymentMethodSelector = react.forwardRef(
7650
7761
  ] })
7651
7762
  );
7652
7763
  PaymentMethodSelector.displayName = "PaymentMethodSelector";
7653
- var Root32 = styles.styled("div")({
7764
+ var Root33 = styles.styled("div")({
7654
7765
  display: "grid",
7655
7766
  gap: "0.75rem"
7656
7767
  });
@@ -7688,7 +7799,7 @@ var ProductGallery = react.forwardRef(
7688
7799
  if (!activeImage) {
7689
7800
  return null;
7690
7801
  }
7691
- return /* @__PURE__ */ jsxRuntime.jsxs(Root32, { ref, ...props, children: [
7802
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root33, { ref, ...props, children: [
7692
7803
  /* @__PURE__ */ jsxRuntime.jsx(AspectRatio, { ratio: imageRatio, children: /* @__PURE__ */ jsxRuntime.jsx(MainImage, { src: activeImage.src, alt: activeImage.alt }) }),
7693
7804
  images.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(Thumbnails, { children: images.map((image, index) => /* @__PURE__ */ jsxRuntime.jsx(
7694
7805
  ThumbnailButton,
@@ -7706,7 +7817,7 @@ var ProductGallery = react.forwardRef(
7706
7817
  }
7707
7818
  );
7708
7819
  ProductGallery.displayName = "ProductGallery";
7709
- var Root33 = styles.styled("div")(({ theme, $variant }) => ({
7820
+ var Root34 = styles.styled("div")(({ theme, $variant }) => ({
7710
7821
  display: "flex",
7711
7822
  alignItems: "center",
7712
7823
  justifyContent: "center",
@@ -7726,14 +7837,14 @@ var Link = styles.styled("a")(({ theme }) => ({
7726
7837
  textUnderlineOffset: "0.2em"
7727
7838
  }));
7728
7839
  var PromoStrip = react.forwardRef(
7729
- ({ message, actionLabel, href, variant = "info", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root33, { ref, $variant: variant, ...props, children: [
7840
+ ({ message, actionLabel, href, variant = "info", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root34, { ref, $variant: variant, ...props, children: [
7730
7841
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: message }),
7731
7842
  actionLabel && href && /* @__PURE__ */ jsxRuntime.jsx(Link, { href, children: actionLabel })
7732
7843
  ] })
7733
7844
  );
7734
7845
  PromoStrip.displayName = "PromoStrip";
7735
7846
  var promoStripVariants = ["info", "success", "warning"];
7736
- var Root34 = styles.styled("div")(({ theme }) => ({
7847
+ var Root35 = styles.styled("div")(({ theme }) => ({
7737
7848
  display: "inline-grid",
7738
7849
  gridTemplateColumns: "2.25rem 3rem 2.25rem",
7739
7850
  alignItems: "center",
@@ -7769,7 +7880,7 @@ var QuantitySelector = react.forwardRef(
7769
7880
  ({ value, min = 1, max = 99, step = 1, disabled = false, onChange, ...props }, ref) => {
7770
7881
  const decrease = Math.max(min, value - step);
7771
7882
  const increase = Math.min(max, value + step);
7772
- return /* @__PURE__ */ jsxRuntime.jsxs(Root34, { ref, "aria-label": "Wybierz ilo\u015B\u0107", ...props, children: [
7883
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root35, { ref, "aria-label": "Wybierz ilo\u015B\u0107", ...props, children: [
7773
7884
  /* @__PURE__ */ jsxRuntime.jsx(
7774
7885
  Control,
7775
7886
  {
@@ -7795,7 +7906,7 @@ var QuantitySelector = react.forwardRef(
7795
7906
  }
7796
7907
  );
7797
7908
  QuantitySelector.displayName = "QuantitySelector";
7798
- var Root35 = styles.styled("div")({
7909
+ var Root36 = styles.styled("div")({
7799
7910
  display: "flex",
7800
7911
  flexDirection: "column",
7801
7912
  gap: "0.5rem"
@@ -7853,7 +7964,7 @@ var Price2 = styles.styled("div", {
7853
7964
  whiteSpace: "nowrap"
7854
7965
  }));
7855
7966
  var ShippingSelector = react.forwardRef(
7856
- ({ options, value, onChange, label = "Metoda dostawy", disabled, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root35, { ref, ...props, children: [
7967
+ ({ options, value, onChange, label = "Metoda dostawy", disabled, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root36, { ref, ...props, children: [
7857
7968
  /* @__PURE__ */ jsxRuntime.jsx(GroupLabel2, { children: label }),
7858
7969
  options.map((opt) => {
7859
7970
  const selected = value === opt.id;
@@ -7890,7 +8001,7 @@ var DEFAULT_SORT_OPTIONS = [
7890
8001
  { value: "price-asc", label: "Cena rosn\u0105co" },
7891
8002
  { value: "price-desc", label: "Cena malej\u0105co" }
7892
8003
  ];
7893
- var Root36 = styles.styled("div")(({ theme }) => ({
8004
+ var Root37 = styles.styled("div")(({ theme }) => ({
7894
8005
  display: "flex",
7895
8006
  alignItems: "center",
7896
8007
  justifyContent: "space-between",
@@ -7964,7 +8075,7 @@ var SortBar = react.forwardRef(
7964
8075
  ...props
7965
8076
  }, ref) => {
7966
8077
  const resolvedLabel = totalLabel ?? (total !== void 0 ? `Znaleziono ${total} produkt\xF3w` : void 0);
7967
- return /* @__PURE__ */ jsxRuntime.jsxs(Root36, { ref, ...props, children: [
8078
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root37, { ref, ...props, children: [
7968
8079
  resolvedLabel && /* @__PURE__ */ jsxRuntime.jsx(TotalLabel, { children: resolvedLabel }),
7969
8080
  /* @__PURE__ */ jsxRuntime.jsxs(Controls, { children: [
7970
8081
  sortOptions.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
@@ -8017,7 +8128,7 @@ function getDefaultLabel(status, count) {
8017
8128
  return "Dost\u0119pny na zam\xF3wienie";
8018
8129
  }
8019
8130
  }
8020
- var Root37 = styles.styled("div", {
8131
+ var Root38 = styles.styled("div", {
8021
8132
  shouldForwardProp: (p) => p !== "$color" && p !== "$size"
8022
8133
  })(({ theme, $color, $size }) => {
8023
8134
  const colorMap = {
@@ -8058,7 +8169,7 @@ var StockStatus = react.forwardRef(
8058
8169
  ({ status, count, label, showIcon = true, size = "md", ...props }, ref) => {
8059
8170
  const color = COLOR_MAP[status];
8060
8171
  const text = label ?? getDefaultLabel(status, count);
8061
- return /* @__PURE__ */ jsxRuntime.jsxs(Root37, { ref, $color: color, $size: size, role: "status", "aria-label": text, ...props, children: [
8172
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root38, { ref, $color: color, $size: size, role: "status", "aria-label": text, ...props, children: [
8062
8173
  showIcon && /* @__PURE__ */ jsxRuntime.jsx(Dot2, { $color: color, "aria-hidden": "true" }),
8063
8174
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: text })
8064
8175
  ] });
@@ -8072,7 +8183,7 @@ var stockStatusValues = [
8072
8183
  "preorder",
8073
8184
  "backorder"
8074
8185
  ];
8075
- var Root38 = styles.styled("div")({
8186
+ var Root39 = styles.styled("div")({
8076
8187
  display: "flex",
8077
8188
  flexDirection: "column",
8078
8189
  gap: "0.5rem"
@@ -8141,7 +8252,7 @@ var Select2 = styles.styled("select")(({ theme }) => ({
8141
8252
  }
8142
8253
  }));
8143
8254
  var VariantSelector = react.forwardRef(
8144
- ({ label, options, value, onChange, mode = "button", disabled, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root38, { ref, ...props, children: [
8255
+ ({ label, options, value, onChange, mode = "button", disabled, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root39, { ref, ...props, children: [
8145
8256
  /* @__PURE__ */ jsxRuntime.jsxs(Label4, { children: [
8146
8257
  label,
8147
8258
  value && mode !== "swatch" && /* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontWeight: 400, marginLeft: "0.375rem" }, children: options.find((o) => o.value === value)?.label })
@@ -8178,7 +8289,7 @@ var variantSelectorModes = ["button", "swatch", "dropdown"];
8178
8289
  function deriveInitials4(name) {
8179
8290
  return name.split(" ").filter(Boolean).slice(0, 2).map((p) => p[0]).join("").toUpperCase();
8180
8291
  }
8181
- var Root39 = styles.styled("div")({
8292
+ var Root40 = styles.styled("div")({
8182
8293
  display: "flex",
8183
8294
  alignItems: "center",
8184
8295
  gap: "0.75rem"
@@ -8224,7 +8335,7 @@ var DateText = styles.styled("time")(({ theme }) => ({
8224
8335
  color: theme.palette.text.secondary
8225
8336
  }));
8226
8337
  function CommentMeta({ author, date }) {
8227
- return /* @__PURE__ */ jsxRuntime.jsxs(Root39, { children: [
8338
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root40, { children: [
8228
8339
  author.avatarUrl ? /* @__PURE__ */ jsxRuntime.jsx(AvatarImg3, { src: author.avatarUrl, alt: author.name }) : /* @__PURE__ */ jsxRuntime.jsx(Avatar, { initials: deriveInitials4(author.name), size: "md", color: "primary" }),
8229
8340
  /* @__PURE__ */ jsxRuntime.jsxs(Info4, { children: [
8230
8341
  /* @__PURE__ */ jsxRuntime.jsxs(NameRow2, { children: [
@@ -8247,12 +8358,12 @@ function CommentBody({ content }) {
8247
8358
  return /* @__PURE__ */ jsxRuntime.jsx(Text, { children: content });
8248
8359
  }
8249
8360
  CommentBody.displayName = "CommentBody";
8250
- var Root40 = styles.styled("div")({
8361
+ var Root41 = styles.styled("div")({
8251
8362
  display: "flex",
8252
8363
  alignItems: "center",
8253
8364
  gap: "0.25rem"
8254
8365
  });
8255
- var ActionButton = styles.styled("button")(({ theme }) => ({
8366
+ var ActionButton = styles.styled("button")(({ theme, $isLiked }) => ({
8256
8367
  display: "inline-flex",
8257
8368
  alignItems: "center",
8258
8369
  gap: "0.375rem",
@@ -8261,10 +8372,10 @@ var ActionButton = styles.styled("button")(({ theme }) => ({
8261
8372
  border: "none",
8262
8373
  borderRadius: theme.shape.borderRadius,
8263
8374
  cursor: "pointer",
8264
- color: theme.palette.text.secondary,
8375
+ color: $isLiked ? theme.palette.primary.main : theme.palette.text.secondary,
8265
8376
  fontFamily: theme.typography.fontFamily,
8266
8377
  fontSize: "0.8125rem",
8267
- fontWeight: 500,
8378
+ fontWeight: $isLiked ? 600 : 500,
8268
8379
  lineHeight: 1,
8269
8380
  transition: "background-color 150ms ease, color 150ms ease",
8270
8381
  "&:hover": {
@@ -8276,13 +8387,29 @@ var ActionButton = styles.styled("button")(({ theme }) => ({
8276
8387
  outlineOffset: "2px"
8277
8388
  }
8278
8389
  }));
8279
- function CommentActions({ commentId, likesCount, onLike, onReply }) {
8280
- return /* @__PURE__ */ jsxRuntime.jsxs(Root40, { children: [
8281
- /* @__PURE__ */ jsxRuntime.jsxs(ActionButton, { type: "button", "aria-label": "Lubi\u0119 to", onClick: () => onLike?.(commentId), children: [
8282
- /* @__PURE__ */ jsxRuntime.jsx(ThumbUpOutlinedIcon__default.default, { style: { fontSize: "0.9375rem" }, "aria-hidden": "true" }),
8283
- typeof likesCount === "number" && /* @__PURE__ */ jsxRuntime.jsx("span", { children: likesCount }),
8284
- "Lubi\u0119 to"
8285
- ] }),
8390
+ function CommentActions({
8391
+ commentId,
8392
+ likesCount,
8393
+ isLiked,
8394
+ onLike,
8395
+ onReply
8396
+ }) {
8397
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root41, { children: [
8398
+ /* @__PURE__ */ jsxRuntime.jsxs(
8399
+ ActionButton,
8400
+ {
8401
+ type: "button",
8402
+ "aria-label": "Lubi\u0119 to",
8403
+ "aria-pressed": !!isLiked,
8404
+ $isLiked: isLiked,
8405
+ onClick: () => onLike?.(commentId),
8406
+ children: [
8407
+ isLiked ? /* @__PURE__ */ jsxRuntime.jsx(ThumbUpIcon__default.default, { style: { fontSize: "0.9375rem" }, "aria-hidden": "true" }) : /* @__PURE__ */ jsxRuntime.jsx(ThumbUpOutlinedIcon__default.default, { style: { fontSize: "0.9375rem" }, "aria-hidden": "true" }),
8408
+ typeof likesCount === "number" && /* @__PURE__ */ jsxRuntime.jsx("span", { children: likesCount }),
8409
+ "Lubi\u0119 to"
8410
+ ]
8411
+ }
8412
+ ),
8286
8413
  /* @__PURE__ */ jsxRuntime.jsxs(ActionButton, { type: "button", "aria-label": "Odpowiedz", onClick: () => onReply?.(commentId), children: [
8287
8414
  /* @__PURE__ */ jsxRuntime.jsx(ReplyIcon__default.default, { style: { fontSize: "0.9375rem" }, "aria-hidden": "true" }),
8288
8415
  "Odpowiedz"
@@ -8290,7 +8417,7 @@ function CommentActions({ commentId, likesCount, onLike, onReply }) {
8290
8417
  ] });
8291
8418
  }
8292
8419
  CommentActions.displayName = "CommentActions";
8293
- var Root41 = styles.styled("div", {
8420
+ var Root42 = styles.styled("div", {
8294
8421
  shouldForwardProp: (p) => p !== "$depth"
8295
8422
  })(({ theme, $depth }) => ({
8296
8423
  display: "flex",
@@ -8303,7 +8430,7 @@ var Root41 = styles.styled("div", {
8303
8430
  }
8304
8431
  }));
8305
8432
  var CommentCard = react.forwardRef(
8306
- ({ comment, depth = 0, onLike, onReply, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root41, { ref, $depth: depth, ...props, children: [
8433
+ ({ comment, depth = 0, onLike, onReply, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root42, { ref, $depth: depth, ...props, children: [
8307
8434
  /* @__PURE__ */ jsxRuntime.jsx(CommentMeta, { author: comment.author, date: comment.date }),
8308
8435
  /* @__PURE__ */ jsxRuntime.jsx(CommentBody, { content: comment.content }),
8309
8436
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -8311,6 +8438,7 @@ var CommentCard = react.forwardRef(
8311
8438
  {
8312
8439
  commentId: comment.id,
8313
8440
  likesCount: comment.likesCount,
8441
+ isLiked: comment.isLiked,
8314
8442
  onLike,
8315
8443
  onReply
8316
8444
  }
@@ -8318,7 +8446,7 @@ var CommentCard = react.forwardRef(
8318
8446
  ] })
8319
8447
  );
8320
8448
  CommentCard.displayName = "CommentCard";
8321
- var Root42 = styles.styled("div")(({ theme }) => ({
8449
+ var Root43 = styles.styled("div")(({ theme }) => ({
8322
8450
  borderBottom: `1px solid ${theme.palette.divider}`
8323
8451
  }));
8324
8452
  var Trigger2 = styles.styled("button")(({ theme }) => ({
@@ -8366,7 +8494,7 @@ var PanelInner = styles.styled("p")(({ theme }) => ({
8366
8494
  var FaqItem = react.forwardRef(
8367
8495
  ({ item, defaultOpen = false, ...props }, ref) => {
8368
8496
  const [open, setOpen] = react.useState(defaultOpen);
8369
- return /* @__PURE__ */ jsxRuntime.jsxs(Root42, { ref, ...props, children: [
8497
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root43, { ref, ...props, children: [
8370
8498
  /* @__PURE__ */ jsxRuntime.jsxs(Trigger2, { type: "button", "aria-expanded": open, onClick: () => setOpen((prev) => !prev), children: [
8371
8499
  item.question,
8372
8500
  /* @__PURE__ */ jsxRuntime.jsx(ChevronIcon2, { $open: open, "aria-hidden": "true" })
@@ -8442,7 +8570,7 @@ var FeatureItem = react.forwardRef(
8442
8570
  }
8443
8571
  );
8444
8572
  FeatureItem.displayName = "FeatureItem";
8445
- var Root43 = styles.styled("div")({
8573
+ var Root44 = styles.styled("div")({
8446
8574
  display: "flex",
8447
8575
  flexDirection: "column",
8448
8576
  alignItems: "center",
@@ -8490,7 +8618,7 @@ var Description6 = styles.styled("p")(({ theme }) => ({
8490
8618
  maxWidth: "18rem"
8491
8619
  }));
8492
8620
  var ProcessStep = react.forwardRef(
8493
- ({ step, title, description, icon, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root43, { ref, ...props, children: [
8621
+ ({ step, title, description, icon, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root44, { ref, ...props, children: [
8494
8622
  /* @__PURE__ */ jsxRuntime.jsx(StepBadge, { "aria-hidden": "true", children: icon ? /* @__PURE__ */ jsxRuntime.jsx(IconWrapper2, { children: icon }) : /* @__PURE__ */ jsxRuntime.jsx(StepNumber, { children: step }) }),
8495
8623
  /* @__PURE__ */ jsxRuntime.jsx(Title3, { children: title }),
8496
8624
  description && /* @__PURE__ */ jsxRuntime.jsx(Description6, { children: description })
@@ -8752,7 +8880,7 @@ var timelineItemStatuses = [
8752
8880
  "pending",
8753
8881
  "error"
8754
8882
  ];
8755
- var Root44 = styles.styled("div")({
8883
+ var Root45 = styles.styled("div")({
8756
8884
  position: "relative",
8757
8885
  width: "100%",
8758
8886
  overflow: "hidden",
@@ -8862,7 +8990,7 @@ function Carousel({
8862
8990
  }, [prev, next]);
8863
8991
  if (!count) return null;
8864
8992
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className, children: [
8865
- /* @__PURE__ */ jsxRuntime.jsxs(Root44, { "aria-roledescription": "carousel", children: [
8993
+ /* @__PURE__ */ jsxRuntime.jsxs(Root45, { "aria-roledescription": "carousel", children: [
8866
8994
  /* @__PURE__ */ jsxRuntime.jsx(Track4, { $index: index, "aria-live": "polite", children: slides.map((slide, i) => /* @__PURE__ */ jsxRuntime.jsx(
8867
8995
  Slide,
8868
8996
  {
@@ -9270,7 +9398,7 @@ var Current2 = styles.styled("span")(({ theme }) => ({
9270
9398
  color: theme.palette.text.primary,
9271
9399
  fontWeight: 600
9272
9400
  }));
9273
- var Separator2 = styles.styled("span")(({ theme }) => ({
9401
+ var Separator3 = styles.styled("span")(({ theme }) => ({
9274
9402
  color: theme.palette.text.disabled
9275
9403
  }));
9276
9404
  var Breadcrumbs = react.forwardRef(
@@ -9278,7 +9406,7 @@ var Breadcrumbs = react.forwardRef(
9278
9406
  const isLast = index === items.length - 1;
9279
9407
  return /* @__PURE__ */ jsxRuntime.jsxs("li", { children: [
9280
9408
  item.href && !isLast ? /* @__PURE__ */ jsxRuntime.jsx(Link2, { href: item.href, children: item.label }) : /* @__PURE__ */ jsxRuntime.jsx(Current2, { "aria-current": isLast ? "page" : void 0, children: item.label }),
9281
- !isLast && /* @__PURE__ */ jsxRuntime.jsxs(Separator2, { "aria-hidden": "true", children: [
9409
+ !isLast && /* @__PURE__ */ jsxRuntime.jsxs(Separator3, { "aria-hidden": "true", children: [
9282
9410
  " ",
9283
9411
  separator
9284
9412
  ] })
@@ -9465,7 +9593,7 @@ var PaginationBar = ({
9465
9593
  ] });
9466
9594
  };
9467
9595
  PaginationBar.displayName = "PaginationBar";
9468
- var Root45 = styles.styled("div", {
9596
+ var Root46 = styles.styled("div", {
9469
9597
  shouldForwardProp: (p) => p !== "$variant"
9470
9598
  })(({ theme, $variant }) => ({
9471
9599
  width: "100%",
@@ -9575,7 +9703,7 @@ var Accordion = react.forwardRef(
9575
9703
  if (controlledKeys === void 0) setInternalKeys(next);
9576
9704
  onChange?.(next);
9577
9705
  };
9578
- return /* @__PURE__ */ jsxRuntime.jsx(Root45, { ref, $variant: variant, ...props, children: items.map((item) => {
9706
+ return /* @__PURE__ */ jsxRuntime.jsx(Root46, { ref, $variant: variant, ...props, children: items.map((item) => {
9579
9707
  const isOpen = openKeys.includes(item.key);
9580
9708
  const panelId = `accordion-panel-${item.key}`;
9581
9709
  const triggerId = `accordion-trigger-${item.key}`;
@@ -9610,7 +9738,7 @@ var ICONS = {
9610
9738
  warning: /* @__PURE__ */ jsxRuntime.jsx(WarningAmberOutlinedIcon__default.default, { "aria-hidden": true, style: { fontSize: 20 } }),
9611
9739
  error: /* @__PURE__ */ jsxRuntime.jsx(ErrorOutlineOutlinedIcon__default.default, { "aria-hidden": true, style: { fontSize: 20 } })
9612
9740
  };
9613
- var Root46 = styles.styled("div", {
9741
+ var Root47 = styles.styled("div", {
9614
9742
  shouldForwardProp: (prop) => prop !== "$severity"
9615
9743
  })(({ theme, $severity }) => {
9616
9744
  const palette = {
@@ -9660,7 +9788,7 @@ var CloseButton2 = styles.styled("button")(({ theme }) => ({
9660
9788
  }
9661
9789
  }));
9662
9790
  var Alert = react.forwardRef(
9663
- ({ severity = "info", title, children, onClose, icon, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root46, { ref, role: "alert", $severity: severity, ...props, children: [
9791
+ ({ severity = "info", title, children, onClose, icon, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root47, { ref, role: "alert", $severity: severity, ...props, children: [
9664
9792
  /* @__PURE__ */ jsxRuntime.jsx(IconSlot2, { children: icon ?? ICONS[severity] }),
9665
9793
  /* @__PURE__ */ jsxRuntime.jsxs(Body, { children: [
9666
9794
  title && /* @__PURE__ */ jsxRuntime.jsx(Title5, { children: title }),
@@ -9818,7 +9946,7 @@ var MenuItemIcon = styles.styled("span")({
9818
9946
  width: "1rem",
9819
9947
  height: "1rem"
9820
9948
  });
9821
- var Separator3 = styles.styled("hr")(({ theme }) => ({
9949
+ var Separator4 = styles.styled("hr")(({ theme }) => ({
9822
9950
  margin: "0.25rem 0",
9823
9951
  border: "none",
9824
9952
  borderTop: `1px solid ${theme.palette.divider}`
@@ -9888,7 +10016,7 @@ var ContextMenu = react.forwardRef(
9888
10016
  $x: pos.x,
9889
10017
  $y: pos.y,
9890
10018
  children: items.map(
9891
- (item) => item.separator ? /* @__PURE__ */ jsxRuntime.jsx(Separator3, { role: "separator" }, item.key) : /* @__PURE__ */ jsxRuntime.jsxs(
10019
+ (item) => item.separator ? /* @__PURE__ */ jsxRuntime.jsx(Separator4, { role: "separator" }, item.key) : /* @__PURE__ */ jsxRuntime.jsxs(
9892
10020
  MenuItem,
9893
10021
  {
9894
10022
  role: "menuitem",
@@ -9910,7 +10038,7 @@ var ContextMenu = react.forwardRef(
9910
10038
  }
9911
10039
  );
9912
10040
  ContextMenu.displayName = "ContextMenu";
9913
- var Root47 = styles.styled("div")(({ theme }) => ({
10041
+ var Root48 = styles.styled("div")(({ theme }) => ({
9914
10042
  display: "flex",
9915
10043
  flexDirection: "column",
9916
10044
  alignItems: "center",
@@ -9938,7 +10066,7 @@ var Description8 = styles.styled("p")(({ theme }) => ({
9938
10066
  maxWidth: "28rem"
9939
10067
  }));
9940
10068
  var EmptyState = react.forwardRef(
9941
- ({ icon, title, description, action, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root47, { ref, ...props, children: [
10069
+ ({ icon, title, description, action, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root48, { ref, ...props, children: [
9942
10070
  /* @__PURE__ */ jsxRuntime.jsx(IconWrap3, { "aria-hidden": true, children: icon ?? /* @__PURE__ */ jsxRuntime.jsx(InboxOutlinedIcon__default.default, {}) }),
9943
10071
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
9944
10072
  /* @__PURE__ */ jsxRuntime.jsx(Title6, { children: title }),
@@ -9958,7 +10086,7 @@ var FONT_SIZE2 = {
9958
10086
  md: "0.9375rem",
9959
10087
  lg: "1rem"
9960
10088
  };
9961
- var Root48 = styles.styled("ul", {
10089
+ var Root49 = styles.styled("ul", {
9962
10090
  shouldForwardProp: (p) => p !== "$variant"
9963
10091
  })(({ theme, $variant }) => ({
9964
10092
  listStyle: "none",
@@ -10053,7 +10181,7 @@ var SuffixWrap = styles.styled("span")({
10053
10181
  var List4 = react.forwardRef(
10054
10182
  ({ items, size = "md", variant = "default", dividers = true, ...props }, ref) => {
10055
10183
  const effectiveVariant = !dividers && variant === "default" ? "default" : variant;
10056
- return /* @__PURE__ */ jsxRuntime.jsx(Root48, { ref, $variant: effectiveVariant, role: "list", ...props, children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(
10184
+ return /* @__PURE__ */ jsxRuntime.jsx(Root49, { ref, $variant: effectiveVariant, role: "list", ...props, children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(
10057
10185
  Item3,
10058
10186
  {
10059
10187
  role: "listitem",
@@ -10092,7 +10220,7 @@ var speedDuration = {
10092
10220
  normal: "20s",
10093
10221
  fast: "10s"
10094
10222
  };
10095
- var Root49 = styles.styled("div")({
10223
+ var Root50 = styles.styled("div")({
10096
10224
  overflow: "hidden",
10097
10225
  width: "100%",
10098
10226
  userSelect: "none"
@@ -10123,7 +10251,7 @@ var Marquee = react.forwardRef(
10123
10251
  /* @__PURE__ */ jsxRuntime.jsx(ItemWrap, { $gap: gapValue, "aria-hidden": "false", children }),
10124
10252
  /* @__PURE__ */ jsxRuntime.jsx(ItemWrap, { $gap: gapValue, "aria-hidden": "true", children })
10125
10253
  ] });
10126
- return /* @__PURE__ */ jsxRuntime.jsx(Root49, { ref, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(Track5, { $direction: direction, $speed: speed, $pauseOnHover: pauseOnHover, $gap: gapValue, children: content }) });
10254
+ return /* @__PURE__ */ jsxRuntime.jsx(Root50, { ref, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(Track5, { $direction: direction, $speed: speed, $pauseOnHover: pauseOnHover, $gap: gapValue, children: content }) });
10127
10255
  }
10128
10256
  );
10129
10257
  Marquee.displayName = "Marquee";
@@ -10279,7 +10407,167 @@ function Modal({
10279
10407
  );
10280
10408
  }
10281
10409
  var modalSizes = ["sm", "md", "lg", "xl", "full"];
10282
- var Root50 = styles.styled("div")({ width: "100%" });
10410
+ var fadeIn4 = react$1.keyframes`from { opacity: 0; } to { opacity: 1; }`;
10411
+ var slideInLeft = react$1.keyframes`from { transform: translateX(-100%); } to { transform: translateX(0); }`;
10412
+ var slideInRight = react$1.keyframes`from { transform: translateX(100%); } to { transform: translateX(0); }`;
10413
+ var slideInTop = react$1.keyframes`from { transform: translateY(-100%); } to { transform: translateY(0); }`;
10414
+ var slideInBottom = react$1.keyframes`from { transform: translateY(100%); } to { transform: translateY(0); }`;
10415
+ var SLIDE_ANIMATION = {
10416
+ left: slideInLeft,
10417
+ right: slideInRight,
10418
+ top: slideInTop,
10419
+ bottom: slideInBottom
10420
+ };
10421
+ var SIZE_MAP3 = {
10422
+ sm: "16rem",
10423
+ md: "24rem",
10424
+ lg: "32rem",
10425
+ full: "100%"
10426
+ };
10427
+ var Backdrop2 = styles.styled("div")(({ theme }) => ({
10428
+ position: "fixed",
10429
+ inset: 0,
10430
+ backgroundColor: theme.palette.mode === "dark" ? "rgba(0,0,0,0.7)" : "rgba(0,0,0,0.5)",
10431
+ zIndex: 1300,
10432
+ animation: `${fadeIn4} 200ms ease`
10433
+ }));
10434
+ var Panel2 = styles.styled("div", {
10435
+ shouldForwardProp: (prop) => prop !== "$position" && prop !== "$size"
10436
+ })(({ theme, $position, $size }) => {
10437
+ const isVertical = $position === "left" || $position === "right";
10438
+ const size = SIZE_MAP3[$size];
10439
+ return {
10440
+ position: "fixed",
10441
+ backgroundColor: theme.palette.background.paper,
10442
+ border: `1px solid ${theme.palette.divider}`,
10443
+ boxShadow: theme.shadows[8],
10444
+ display: "flex",
10445
+ flexDirection: "column",
10446
+ zIndex: 1301,
10447
+ animation: `${SLIDE_ANIMATION[$position]} 250ms cubic-bezier(0.4, 0, 0.2, 1)`,
10448
+ ...isVertical ? {
10449
+ top: 0,
10450
+ bottom: 0,
10451
+ [$position]: 0,
10452
+ width: $size === "full" ? "100%" : size,
10453
+ maxWidth: "100vw"
10454
+ } : {
10455
+ left: 0,
10456
+ right: 0,
10457
+ [$position]: 0,
10458
+ height: $size === "full" ? "100%" : size,
10459
+ maxHeight: "100vh"
10460
+ }
10461
+ };
10462
+ });
10463
+ var Header3 = styles.styled("div")(({ theme }) => ({
10464
+ display: "flex",
10465
+ alignItems: "center",
10466
+ justifyContent: "space-between",
10467
+ padding: "1.25rem 1.5rem",
10468
+ borderBottom: `1px solid ${theme.palette.divider}`,
10469
+ flexShrink: 0
10470
+ }));
10471
+ var Title8 = styles.styled("h2")(({ theme }) => ({
10472
+ margin: 0,
10473
+ fontFamily: theme.typography.fontFamily,
10474
+ fontSize: "1.125rem",
10475
+ fontWeight: 700,
10476
+ color: theme.palette.text.primary,
10477
+ lineHeight: 1.4
10478
+ }));
10479
+ var CloseButton4 = styles.styled("button")(({ theme }) => ({
10480
+ appearance: "none",
10481
+ border: "none",
10482
+ background: "none",
10483
+ cursor: "pointer",
10484
+ display: "flex",
10485
+ alignItems: "center",
10486
+ justifyContent: "center",
10487
+ width: "2rem",
10488
+ height: "2rem",
10489
+ borderRadius: "0.375rem",
10490
+ color: theme.palette.text.secondary,
10491
+ flexShrink: 0,
10492
+ transition: "background-color 150ms ease, color 150ms ease",
10493
+ "&:hover": {
10494
+ backgroundColor: theme.palette.action.hover,
10495
+ color: theme.palette.text.primary
10496
+ },
10497
+ "&:focus-visible": {
10498
+ outline: `3px solid ${theme.palette.primary.main}`,
10499
+ outlineOffset: "2px"
10500
+ }
10501
+ }));
10502
+ var Body3 = styles.styled("div")(({ theme }) => ({
10503
+ padding: "1.5rem",
10504
+ overflowY: "auto",
10505
+ flex: 1,
10506
+ fontFamily: theme.typography.fontFamily,
10507
+ color: theme.palette.text.primary
10508
+ }));
10509
+ var Footer5 = styles.styled("div")(({ theme }) => ({
10510
+ padding: "1rem 1.5rem",
10511
+ borderTop: `1px solid ${theme.palette.divider}`,
10512
+ display: "flex",
10513
+ justifyContent: "flex-end",
10514
+ gap: "0.75rem",
10515
+ flexShrink: 0
10516
+ }));
10517
+ function Sheet({
10518
+ open,
10519
+ onClose,
10520
+ title,
10521
+ children,
10522
+ footer,
10523
+ position = "right",
10524
+ size = "md",
10525
+ closeOnBackdrop = true,
10526
+ hideCloseButton = false
10527
+ }) {
10528
+ react.useEffect(() => {
10529
+ if (!open) return;
10530
+ const prev = document.body.style.overflow;
10531
+ document.body.style.overflow = "hidden";
10532
+ return () => {
10533
+ document.body.style.overflow = prev;
10534
+ };
10535
+ }, [open]);
10536
+ react.useEffect(() => {
10537
+ if (!open) return;
10538
+ const handleKey = (e) => {
10539
+ if (e.key === "Escape") onClose();
10540
+ };
10541
+ document.addEventListener("keydown", handleKey);
10542
+ return () => document.removeEventListener("keydown", handleKey);
10543
+ }, [open, onClose]);
10544
+ if (!open) return null;
10545
+ return reactDom.createPortal(
10546
+ /* @__PURE__ */ jsxRuntime.jsx(Backdrop2, { "aria-hidden": "false", onClick: closeOnBackdrop ? onClose : void 0, children: /* @__PURE__ */ jsxRuntime.jsxs(
10547
+ Panel2,
10548
+ {
10549
+ role: "dialog",
10550
+ "aria-modal": "true",
10551
+ "aria-labelledby": title ? "sheet-title" : void 0,
10552
+ $position: position,
10553
+ $size: size,
10554
+ onClick: (e) => e.stopPropagation(),
10555
+ children: [
10556
+ (title || !hideCloseButton) && /* @__PURE__ */ jsxRuntime.jsxs(Header3, { children: [
10557
+ title ? /* @__PURE__ */ jsxRuntime.jsx(Title8, { id: "sheet-title", children: title }) : /* @__PURE__ */ jsxRuntime.jsx("span", {}),
10558
+ !hideCloseButton && /* @__PURE__ */ jsxRuntime.jsx(CloseButton4, { "aria-label": "Zamknij", onClick: onClose, children: /* @__PURE__ */ jsxRuntime.jsx(CloseIcon__default.default, { "aria-hidden": true, style: { fontSize: 16 } }) })
10559
+ ] }),
10560
+ children && /* @__PURE__ */ jsxRuntime.jsx(Body3, { children }),
10561
+ footer && /* @__PURE__ */ jsxRuntime.jsx(Footer5, { children: footer })
10562
+ ]
10563
+ }
10564
+ ) }),
10565
+ document.body
10566
+ );
10567
+ }
10568
+ var sheetPositions = ["left", "right", "top", "bottom"];
10569
+ var sheetSizes = ["sm", "md", "lg", "full"];
10570
+ var Root51 = styles.styled("div")({ width: "100%" });
10283
10571
  var TabList = styles.styled("div", {
10284
10572
  shouldForwardProp: (prop) => prop !== "$variant"
10285
10573
  })(({ theme, $variant }) => ({
@@ -10345,7 +10633,7 @@ var TabButton = styles.styled("button", {
10345
10633
  }
10346
10634
  }
10347
10635
  }));
10348
- var Panel2 = styles.styled("div")(({ theme }) => ({
10636
+ var Panel3 = styles.styled("div")(({ theme }) => ({
10349
10637
  paddingTop: "1.25rem",
10350
10638
  fontFamily: theme.typography.fontFamily,
10351
10639
  color: theme.palette.text.primary
@@ -10359,7 +10647,7 @@ var Tabs = react.forwardRef(
10359
10647
  onChange?.(key);
10360
10648
  };
10361
10649
  const activeTab = tabs.find((t) => t.key === activeKey);
10362
- return /* @__PURE__ */ jsxRuntime.jsxs(Root50, { ref, ...props, children: [
10650
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root51, { ref, ...props, children: [
10363
10651
  /* @__PURE__ */ jsxRuntime.jsx(TabList, { role: "tablist", $variant: variant, children: tabs.map((tab) => /* @__PURE__ */ jsxRuntime.jsx(
10364
10652
  TabButton,
10365
10653
  {
@@ -10378,7 +10666,7 @@ var Tabs = react.forwardRef(
10378
10666
  tab.key
10379
10667
  )) }),
10380
10668
  activeTab && /* @__PURE__ */ jsxRuntime.jsx(
10381
- Panel2,
10669
+ Panel3,
10382
10670
  {
10383
10671
  role: "tabpanel",
10384
10672
  id: `tabpanel-${activeTab.key}`,
@@ -10391,7 +10679,7 @@ var Tabs = react.forwardRef(
10391
10679
  );
10392
10680
  Tabs.displayName = "Tabs";
10393
10681
  var tabsVariants = ["underline", "pills", "bordered"];
10394
- var Root51 = styles.styled("div")(({ theme }) => ({
10682
+ var Root52 = styles.styled("div")(({ theme }) => ({
10395
10683
  display: "grid",
10396
10684
  gridTemplateColumns: "4.5rem 1fr",
10397
10685
  gap: "0.875rem",
@@ -10407,7 +10695,7 @@ var ImageWrap4 = styles.styled("div")(({ theme }) => ({
10407
10695
  flexShrink: 0
10408
10696
  }));
10409
10697
  var Info5 = styles.styled("div")({ display: "grid", gap: "0.5rem" });
10410
- var Row5 = styles.styled("div")({
10698
+ var Row6 = styles.styled("div")({
10411
10699
  display: "flex",
10412
10700
  alignItems: "center",
10413
10701
  justifyContent: "space-between",
@@ -10443,14 +10731,14 @@ var CartDrawerItem = ({
10443
10731
  imageAlt,
10444
10732
  onQuantityChange,
10445
10733
  onRemove
10446
- }) => /* @__PURE__ */ jsxRuntime.jsxs(Root51, { children: [
10734
+ }) => /* @__PURE__ */ jsxRuntime.jsxs(Root52, { children: [
10447
10735
  /* @__PURE__ */ jsxRuntime.jsx(ImageWrap4, { children: /* @__PURE__ */ jsxRuntime.jsx(ProductCardImage, { src: imageUrl, alt: imageAlt ?? name }) }),
10448
10736
  /* @__PURE__ */ jsxRuntime.jsxs(Info5, { children: [
10449
- /* @__PURE__ */ jsxRuntime.jsxs(Row5, { children: [
10737
+ /* @__PURE__ */ jsxRuntime.jsxs(Row6, { children: [
10450
10738
  /* @__PURE__ */ jsxRuntime.jsx(Name12, { children: name }),
10451
10739
  /* @__PURE__ */ jsxRuntime.jsx(Price3, { children: price })
10452
10740
  ] }),
10453
- /* @__PURE__ */ jsxRuntime.jsxs(Row5, { children: [
10741
+ /* @__PURE__ */ jsxRuntime.jsxs(Row6, { children: [
10454
10742
  /* @__PURE__ */ jsxRuntime.jsx(
10455
10743
  QuantitySelector,
10456
10744
  {
@@ -10471,7 +10759,7 @@ var Overlay3 = styles.styled("div")(({ $open }) => ({
10471
10759
  backgroundColor: "rgba(0,0,0,0.36)",
10472
10760
  zIndex: 1200
10473
10761
  }));
10474
- var Panel3 = styles.styled("aside")(({ theme }) => ({
10762
+ var Panel4 = styles.styled("aside")(({ theme }) => ({
10475
10763
  position: "absolute",
10476
10764
  top: 0,
10477
10765
  right: 0,
@@ -10483,14 +10771,14 @@ var Panel3 = styles.styled("aside")(({ theme }) => ({
10483
10771
  boxShadow: theme.shadows[5],
10484
10772
  fontFamily: theme.typography.fontFamily
10485
10773
  }));
10486
- var Header3 = styles.styled("div")(({ theme }) => ({
10774
+ var Header4 = styles.styled("div")(({ theme }) => ({
10487
10775
  display: "flex",
10488
10776
  alignItems: "center",
10489
10777
  justifyContent: "space-between",
10490
10778
  padding: "1rem 1.25rem",
10491
10779
  borderBottom: `1px solid ${theme.palette.divider}`
10492
10780
  }));
10493
- var Title8 = styles.styled("h2")(({ theme }) => ({
10781
+ var Title9 = styles.styled("h2")(({ theme }) => ({
10494
10782
  margin: 0,
10495
10783
  fontSize: "1.125rem",
10496
10784
  color: theme.palette.text.primary
@@ -10508,13 +10796,13 @@ var Items = styles.styled("div")({
10508
10796
  padding: "1rem 1.25rem",
10509
10797
  overflow: "auto"
10510
10798
  });
10511
- var Row6 = styles.styled("div")({
10799
+ var Row7 = styles.styled("div")({
10512
10800
  display: "flex",
10513
10801
  alignItems: "center",
10514
10802
  justifyContent: "space-between",
10515
10803
  gap: "0.75rem"
10516
10804
  });
10517
- var Footer5 = styles.styled("div")(({ theme }) => ({
10805
+ var Footer6 = styles.styled("div")(({ theme }) => ({
10518
10806
  display: "grid",
10519
10807
  gap: "1rem",
10520
10808
  marginTop: "auto",
@@ -10534,9 +10822,9 @@ var CartDrawer = react.forwardRef(
10534
10822
  onQuantityChange,
10535
10823
  onRemove,
10536
10824
  ...props
10537
- }, ref) => /* @__PURE__ */ jsxRuntime.jsx(Overlay3, { $open: open, children: /* @__PURE__ */ jsxRuntime.jsxs(Panel3, { ref, "aria-hidden": !open, "aria-label": title, ...props, children: [
10538
- /* @__PURE__ */ jsxRuntime.jsxs(Header3, { children: [
10539
- /* @__PURE__ */ jsxRuntime.jsx(Title8, { children: title }),
10825
+ }, ref) => /* @__PURE__ */ jsxRuntime.jsx(Overlay3, { $open: open, children: /* @__PURE__ */ jsxRuntime.jsxs(Panel4, { ref, "aria-hidden": !open, "aria-label": title, ...props, children: [
10826
+ /* @__PURE__ */ jsxRuntime.jsxs(Header4, { children: [
10827
+ /* @__PURE__ */ jsxRuntime.jsx(Title9, { children: title }),
10540
10828
  /* @__PURE__ */ jsxRuntime.jsx(IconButton, { type: "button", "aria-label": closeLabel, onClick: onClose, children: "\xD7" })
10541
10829
  ] }),
10542
10830
  /* @__PURE__ */ jsxRuntime.jsx(Items, { children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
@@ -10548,8 +10836,8 @@ var CartDrawer = react.forwardRef(
10548
10836
  },
10549
10837
  item.id
10550
10838
  )) }),
10551
- /* @__PURE__ */ jsxRuntime.jsxs(Footer5, { children: [
10552
- /* @__PURE__ */ jsxRuntime.jsxs(Row6, { children: [
10839
+ /* @__PURE__ */ jsxRuntime.jsxs(Footer6, { children: [
10840
+ /* @__PURE__ */ jsxRuntime.jsxs(Row7, { children: [
10553
10841
  /* @__PURE__ */ jsxRuntime.jsx("strong", { children: "Suma" }),
10554
10842
  /* @__PURE__ */ jsxRuntime.jsx("strong", { children: subtotal })
10555
10843
  ] }),
@@ -10558,7 +10846,7 @@ var CartDrawer = react.forwardRef(
10558
10846
  ] }) })
10559
10847
  );
10560
10848
  CartDrawer.displayName = "CartDrawer";
10561
- var Root52 = styles.styled("aside")(({ theme }) => ({
10849
+ var Root53 = styles.styled("aside")(({ theme }) => ({
10562
10850
  display: "grid",
10563
10851
  gap: "1.5rem",
10564
10852
  width: "100%",
@@ -10569,13 +10857,13 @@ var Root52 = styles.styled("aside")(({ theme }) => ({
10569
10857
  backgroundColor: theme.palette.background.paper,
10570
10858
  fontFamily: theme.typography.fontFamily
10571
10859
  }));
10572
- var Header4 = styles.styled("div")({
10860
+ var Header5 = styles.styled("div")({
10573
10861
  display: "flex",
10574
10862
  alignItems: "center",
10575
10863
  justifyContent: "space-between",
10576
10864
  gap: "1rem"
10577
10865
  });
10578
- var Title9 = styles.styled("h2")(({ theme }) => ({
10866
+ var Title10 = styles.styled("h2")(({ theme }) => ({
10579
10867
  margin: 0,
10580
10868
  color: theme.palette.text.primary,
10581
10869
  fontSize: "1.125rem"
@@ -10650,9 +10938,9 @@ var FilterSidebar = react.forwardRef(
10650
10938
  onPriceRangeChange,
10651
10939
  onClear,
10652
10940
  ...props
10653
- }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root52, { ref, "aria-label": "Filtry produkt\xF3w", ...props, children: [
10654
- /* @__PURE__ */ jsxRuntime.jsxs(Header4, { children: [
10655
- /* @__PURE__ */ jsxRuntime.jsx(Title9, { children: "Filtry" }),
10941
+ }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root53, { ref, "aria-label": "Filtry produkt\xF3w", ...props, children: [
10942
+ /* @__PURE__ */ jsxRuntime.jsxs(Header5, { children: [
10943
+ /* @__PURE__ */ jsxRuntime.jsx(Title10, { children: "Filtry" }),
10656
10944
  onClear && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "ghost", size: "sm", onClick: onClear, children: "Wyczy\u015B\u0107" })
10657
10945
  ] }),
10658
10946
  priceRange && /* @__PURE__ */ jsxRuntime.jsxs(Group, { children: [
@@ -10693,7 +10981,7 @@ var FilterSidebar = react.forwardRef(
10693
10981
  ] })
10694
10982
  );
10695
10983
  FilterSidebar.displayName = "FilterSidebar";
10696
- var Root53 = styles.styled("li")({
10984
+ var Root54 = styles.styled("li")({
10697
10985
  display: "grid",
10698
10986
  gridTemplateColumns: "3.5rem 1fr auto",
10699
10987
  alignItems: "center",
@@ -10737,7 +11025,7 @@ var OrderSummaryItem = ({
10737
11025
  imageAlt,
10738
11026
  quantity,
10739
11027
  meta
10740
- }) => /* @__PURE__ */ jsxRuntime.jsxs(Root53, { children: [
11028
+ }) => /* @__PURE__ */ jsxRuntime.jsxs(Root54, { children: [
10741
11029
  /* @__PURE__ */ jsxRuntime.jsx(ImageWrap5, { children: /* @__PURE__ */ jsxRuntime.jsx(ProductCardImage, { src: imageUrl, alt: imageAlt ?? String(name) }) }),
10742
11030
  /* @__PURE__ */ jsxRuntime.jsxs(Info6, { children: [
10743
11031
  /* @__PURE__ */ jsxRuntime.jsx(Name13, { children: name }),
@@ -10753,7 +11041,7 @@ var OrderSummaryItem = ({
10753
11041
  /* @__PURE__ */ jsxRuntime.jsx(Price4, { children: price })
10754
11042
  ] });
10755
11043
  OrderSummaryItem.displayName = "OrderSummaryItem";
10756
- var Root54 = styles.styled("div", {
11044
+ var Root55 = styles.styled("div", {
10757
11045
  shouldForwardProp: (prop) => prop !== "$total"
10758
11046
  })(({ theme, $total }) => ({
10759
11047
  display: "flex",
@@ -10765,13 +11053,13 @@ var Root54 = styles.styled("div", {
10765
11053
  fontWeight: $total ? 800 : 400,
10766
11054
  "& dt, & dd": { margin: 0 }
10767
11055
  }));
10768
- var OrderSummaryRow = ({ label, value, total = false }) => /* @__PURE__ */ jsxRuntime.jsxs(Root54, { as: "div", $total: total, children: [
11056
+ var OrderSummaryRow = ({ label, value, total = false }) => /* @__PURE__ */ jsxRuntime.jsxs(Root55, { as: "div", $total: total, children: [
10769
11057
  /* @__PURE__ */ jsxRuntime.jsx("dt", { children: label }),
10770
11058
  /* @__PURE__ */ jsxRuntime.jsx("dd", { children: value })
10771
11059
  ] });
10772
11060
  OrderSummaryRow.displayName = "OrderSummaryRow";
10773
- var Root55 = styles.styled(Card)({ display: "grid", gap: "1rem" });
10774
- var Title10 = styles.styled("h2")(({ theme }) => ({
11061
+ var Root56 = styles.styled(Card)({ display: "grid", gap: "1rem" });
11062
+ var Title11 = styles.styled("h2")(({ theme }) => ({
10775
11063
  margin: 0,
10776
11064
  fontFamily: theme.typography.fontFamily,
10777
11065
  fontSize: "1.125rem",
@@ -10812,8 +11100,8 @@ var OrderSummary = react.forwardRef(
10812
11100
  ctaLabel = "Przejd\u017A do kasy",
10813
11101
  onCheckout,
10814
11102
  ...props
10815
- }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root55, { ref, variant: "default", padding: "lg", rounded: "lg", ...props, children: [
10816
- /* @__PURE__ */ jsxRuntime.jsx(Title10, { children: title }),
11103
+ }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root56, { ref, variant: "default", padding: "lg", rounded: "lg", ...props, children: [
11104
+ /* @__PURE__ */ jsxRuntime.jsx(Title11, { children: title }),
10817
11105
  items.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
10818
11106
  /* @__PURE__ */ jsxRuntime.jsx(SectionTitle, { children: itemsTitle }),
10819
11107
  /* @__PURE__ */ jsxRuntime.jsx(ItemList, { children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(OrderSummaryItem, { ...item }, item.id)) }),
@@ -10832,7 +11120,7 @@ var OrderSummary = react.forwardRef(
10832
11120
  ] })
10833
11121
  );
10834
11122
  OrderSummary.displayName = "OrderSummary";
10835
- var Root56 = styles.styled("div")(({ theme }) => ({
11123
+ var Root57 = styles.styled("div")(({ theme }) => ({
10836
11124
  fontFamily: theme.typography.fontFamily
10837
11125
  }));
10838
11126
  var Grid2 = styles.styled("div", {
@@ -10867,7 +11155,7 @@ var ScrollTrack = styles.styled("div")({
10867
11155
  }
10868
11156
  });
10869
11157
  var RelatedProducts = react.forwardRef(
10870
- ({ products, title = "Podobne produkty", layout = "grid", columns = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root56, { ref, ...props, children: [
11158
+ ({ products, title = "Podobne produkty", layout = "grid", columns = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root57, { ref, ...props, children: [
10871
11159
  /* @__PURE__ */ jsxRuntime.jsx(SectionHeading, { title, align: "left", style: { marginBottom: "1.5rem" } }),
10872
11160
  layout === "scroll" ? /* @__PURE__ */ jsxRuntime.jsx(ScrollTrack, { children: products.map((product, i) => /* @__PURE__ */ jsxRuntime.jsx(ProductCard, { ...product }, product.name + i)) }) : /* @__PURE__ */ jsxRuntime.jsx(Grid2, { $columns: columns, children: products.map((product, i) => /* @__PURE__ */ jsxRuntime.jsx(ProductCard, { ...product }, product.name + i)) })
10873
11161
  ] })
@@ -10883,7 +11171,7 @@ var Card2 = styles.styled("div")(({ theme }) => ({
10883
11171
  gap: "0.75rem",
10884
11172
  fontFamily: theme.typography.fontFamily
10885
11173
  }));
10886
- var Header5 = styles.styled("div")({
11174
+ var Header6 = styles.styled("div")({
10887
11175
  display: "flex",
10888
11176
  alignItems: "flex-start",
10889
11177
  gap: "0.875rem"
@@ -10902,7 +11190,7 @@ var ReviewDate = styles.styled("div")(({ theme }) => ({
10902
11190
  color: theme.palette.text.secondary,
10903
11191
  marginTop: "0.125rem"
10904
11192
  }));
10905
- var Title11 = styles.styled("div")(({ theme }) => ({
11193
+ var Title12 = styles.styled("div")(({ theme }) => ({
10906
11194
  fontSize: "0.9375rem",
10907
11195
  fontWeight: 700,
10908
11196
  color: theme.palette.text.primary
@@ -10921,7 +11209,7 @@ var HelpfulRow = styles.styled("div")(({ theme }) => ({
10921
11209
  color: theme.palette.text.secondary
10922
11210
  }));
10923
11211
  var ReviewItem = ({ review }) => /* @__PURE__ */ jsxRuntime.jsxs(Card2, { children: [
10924
- /* @__PURE__ */ jsxRuntime.jsxs(Header5, { children: [
11212
+ /* @__PURE__ */ jsxRuntime.jsxs(Header6, { children: [
10925
11213
  /* @__PURE__ */ jsxRuntime.jsx(Avatar, { initials: review.author.slice(0, 2).toUpperCase(), size: "sm" }),
10926
11214
  /* @__PURE__ */ jsxRuntime.jsxs(AuthorInfo, { children: [
10927
11215
  /* @__PURE__ */ jsxRuntime.jsxs(AuthorName, { children: [
@@ -10938,7 +11226,7 @@ var ReviewItem = ({ review }) => /* @__PURE__ */ jsxRuntime.jsxs(Card2, { childr
10938
11226
  ] }),
10939
11227
  /* @__PURE__ */ jsxRuntime.jsx(Rating, { value: review.rating, size: "sm", readonly: true })
10940
11228
  ] }),
10941
- review.title && /* @__PURE__ */ jsxRuntime.jsx(Title11, { children: review.title }),
11229
+ review.title && /* @__PURE__ */ jsxRuntime.jsx(Title12, { children: review.title }),
10942
11230
  /* @__PURE__ */ jsxRuntime.jsx(Content3, { children: review.content }),
10943
11231
  review.helpfulCount !== void 0 && /* @__PURE__ */ jsxRuntime.jsxs(HelpfulRow, { children: [
10944
11232
  /* @__PURE__ */ jsxRuntime.jsx(ThumbUpOutlinedIcon__default.default, { "aria-hidden": true, style: { fontSize: 14 } }),
@@ -10947,7 +11235,7 @@ var ReviewItem = ({ review }) => /* @__PURE__ */ jsxRuntime.jsxs(Card2, { childr
10947
11235
  ] })
10948
11236
  ] });
10949
11237
  ReviewItem.displayName = "ReviewItem";
10950
- var Root57 = styles.styled("div")(({ theme }) => ({
11238
+ var Root58 = styles.styled("div")(({ theme }) => ({
10951
11239
  display: "flex",
10952
11240
  alignItems: "center",
10953
11241
  gap: "2rem",
@@ -11009,7 +11297,7 @@ var ReviewSummary = ({
11009
11297
  ratingDistribution
11010
11298
  }) => {
11011
11299
  const totalDist = ratingDistribution ? Object.values(ratingDistribution).reduce((a, b) => a + b, 0) : 0;
11012
- return /* @__PURE__ */ jsxRuntime.jsxs(Root57, { children: [
11300
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root58, { children: [
11013
11301
  /* @__PURE__ */ jsxRuntime.jsxs(AverageBlock, { children: [
11014
11302
  /* @__PURE__ */ jsxRuntime.jsx(Score, { children: averageRating.toFixed(1) }),
11015
11303
  /* @__PURE__ */ jsxRuntime.jsx(Rating, { value: averageRating, size: "sm", readonly: true }),
@@ -11033,7 +11321,7 @@ var ReviewSummary = ({
11033
11321
  ] });
11034
11322
  };
11035
11323
  ReviewSummary.displayName = "ReviewSummary";
11036
- var Root58 = styles.styled("div")(({ theme }) => ({
11324
+ var Root59 = styles.styled("div")(({ theme }) => ({
11037
11325
  fontFamily: theme.typography.fontFamily
11038
11326
  }));
11039
11327
  var ReviewList = styles.styled("div")({
@@ -11049,7 +11337,7 @@ var ReviewSection = react.forwardRef(
11049
11337
  title = "Opinie klient\xF3w",
11050
11338
  ratingDistribution,
11051
11339
  ...props
11052
- }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root58, { ref, ...props, children: [
11340
+ }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root59, { ref, ...props, children: [
11053
11341
  /* @__PURE__ */ jsxRuntime.jsx(SectionHeading, { title, align: "left", style: { marginBottom: "1.5rem" } }),
11054
11342
  averageRating !== void 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { style: { marginBottom: "2rem" }, children: /* @__PURE__ */ jsxRuntime.jsx(
11055
11343
  ReviewSummary,
@@ -11106,13 +11394,12 @@ var CommentSection = react.forwardRef(
11106
11394
  ({
11107
11395
  title = "Komentarze",
11108
11396
  comments,
11109
- maxWidth = "xl",
11110
11397
  onLike,
11111
11398
  onReply,
11112
11399
  ...rest
11113
11400
  }, ref) => {
11114
11401
  const total = countTotal(comments);
11115
- return /* @__PURE__ */ jsxRuntime.jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { maxWidth, children: [
11402
+ return /* @__PURE__ */ jsxRuntime.jsxs(Section, { ref, ...rest, children: [
11116
11403
  /* @__PURE__ */ jsxRuntime.jsxs(Heading, { children: [
11117
11404
  title,
11118
11405
  /* @__PURE__ */ jsxRuntime.jsxs(CommentCount, { children: [
@@ -11134,7 +11421,7 @@ var CommentSection = react.forwardRef(
11134
11421
  reply.id
11135
11422
  )) })
11136
11423
  ] }, comment.id)) })
11137
- ] }) });
11424
+ ] });
11138
11425
  }
11139
11426
  );
11140
11427
  CommentSection.displayName = "CommentSection";
@@ -11147,12 +11434,11 @@ var FaqSection = react.forwardRef(
11147
11434
  description,
11148
11435
  items,
11149
11436
  headingAlign = "center",
11150
- maxWidth = "xl",
11151
11437
  defaultOpenIndex,
11152
11438
  ...rest
11153
11439
  }, ref) => {
11154
11440
  const hasHeading = Boolean(title || description);
11155
- return /* @__PURE__ */ jsxRuntime.jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { maxWidth, children: [
11441
+ return /* @__PURE__ */ jsxRuntime.jsxs(Section, { ref, ...rest, children: [
11156
11442
  hasHeading && /* @__PURE__ */ jsxRuntime.jsx(SectionHeading, { title: title ?? "", description, align: headingAlign }),
11157
11443
  /* @__PURE__ */ jsxRuntime.jsx(List6, { $hasHeading: hasHeading, children: items.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(
11158
11444
  FaqItem,
@@ -11162,7 +11448,7 @@ var FaqSection = react.forwardRef(
11162
11448
  },
11163
11449
  `${item.question}-${index}`
11164
11450
  )) })
11165
- ] }) });
11451
+ ] });
11166
11452
  }
11167
11453
  );
11168
11454
  FaqSection.displayName = "FaqSection";
@@ -11189,11 +11475,10 @@ var FeatureGrid = react.forwardRef(
11189
11475
  columns = 3,
11190
11476
  cardVariant = "default",
11191
11477
  itemLayout = "card",
11192
- maxWidth = "xl",
11193
11478
  ...rest
11194
11479
  }, ref) => {
11195
11480
  const hasHeading = Boolean(title || description);
11196
- return /* @__PURE__ */ jsxRuntime.jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { maxWidth, children: [
11481
+ return /* @__PURE__ */ jsxRuntime.jsxs(Section, { ref, ...rest, children: [
11197
11482
  hasHeading && /* @__PURE__ */ jsxRuntime.jsx(SectionHeading, { title: title ?? "", description, align: headingAlign }),
11198
11483
  /* @__PURE__ */ jsxRuntime.jsx(Grid3, { $columns: columns, $hasHeading: hasHeading, $iconLeft: itemLayout === "icon-left", children: features.map((feature, index) => /* @__PURE__ */ jsxRuntime.jsx(
11199
11484
  FeatureItem,
@@ -11204,7 +11489,7 @@ var FeatureGrid = react.forwardRef(
11204
11489
  },
11205
11490
  `${feature.title}-${index}`
11206
11491
  )) })
11207
- ] }) });
11492
+ ] });
11208
11493
  }
11209
11494
  );
11210
11495
  FeatureGrid.displayName = "FeatureGrid";
@@ -11234,11 +11519,10 @@ var LogoCloud = react.forwardRef(
11234
11519
  variant = "plain",
11235
11520
  monochrome = true,
11236
11521
  logoHeight = 40,
11237
- maxWidth = "xl",
11238
11522
  ...rest
11239
11523
  }, ref) => {
11240
11524
  const hasHeading = Boolean(title || description);
11241
- return /* @__PURE__ */ jsxRuntime.jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { maxWidth, children: [
11525
+ return /* @__PURE__ */ jsxRuntime.jsxs(Section, { ref, ...rest, children: [
11242
11526
  hasHeading && title && /* @__PURE__ */ jsxRuntime.jsx(SectionHeading, { title, description, align: headingAlign }),
11243
11527
  hasHeading && !title && description && /* @__PURE__ */ jsxRuntime.jsx(SectionHeading, { title: description, align: headingAlign, as: "h2" }),
11244
11528
  /* @__PURE__ */ jsxRuntime.jsx(Grid4, { $columns: columns, $hasHeading: hasHeading, children: logos.map((logo) => {
@@ -11254,7 +11538,7 @@ var LogoCloud = react.forwardRef(
11254
11538
  key
11255
11539
  );
11256
11540
  }) })
11257
- ] }) });
11541
+ ] });
11258
11542
  }
11259
11543
  );
11260
11544
  LogoCloud.displayName = "LogoCloud";
@@ -11336,7 +11620,6 @@ var NewsletterSection = react.forwardRef(
11336
11620
  headingAlign = "center",
11337
11621
  layout = "centered",
11338
11622
  cardVariant = "default",
11339
- maxWidth = "xl",
11340
11623
  onSubmit,
11341
11624
  ...rest
11342
11625
  }, ref) => {
@@ -11367,7 +11650,7 @@ var NewsletterSection = react.forwardRef(
11367
11650
  ] }),
11368
11651
  privacyNote && /* @__PURE__ */ jsxRuntime.jsx(PrivacyNote, { children: privacyNote })
11369
11652
  ] });
11370
- return /* @__PURE__ */ jsxRuntime.jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(Container, { maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(Card, { variant: cardVariant, padding: "xl", rounded: "lg", children: isCentered ? /* @__PURE__ */ jsxRuntime.jsxs(CenteredInner, { children: [
11653
+ return /* @__PURE__ */ jsxRuntime.jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(Card, { variant: cardVariant, padding: "xl", rounded: "lg", children: isCentered ? /* @__PURE__ */ jsxRuntime.jsxs(CenteredInner, { children: [
11371
11654
  /* @__PURE__ */ jsxRuntime.jsx(
11372
11655
  SectionHeading,
11373
11656
  {
@@ -11380,7 +11663,7 @@ var NewsletterSection = react.forwardRef(
11380
11663
  ] }) : /* @__PURE__ */ jsxRuntime.jsxs(SplitInner, { children: [
11381
11664
  /* @__PURE__ */ jsxRuntime.jsx(SectionHeading, { title: title ?? "", description, align: "left" }),
11382
11665
  formNode
11383
- ] }) }) }) });
11666
+ ] }) }) });
11384
11667
  }
11385
11668
  );
11386
11669
  NewsletterSection.displayName = "NewsletterSection";
@@ -11495,11 +11778,10 @@ var StatsSection = react.forwardRef(
11495
11778
  columns = 3,
11496
11779
  cardVariant = "default",
11497
11780
  statAlign = "center",
11498
- maxWidth = "xl",
11499
11781
  ...rest
11500
11782
  }, ref) => {
11501
11783
  const hasHeading = Boolean(title || description);
11502
- return /* @__PURE__ */ jsxRuntime.jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { maxWidth, children: [
11784
+ return /* @__PURE__ */ jsxRuntime.jsxs(Section, { ref, ...rest, children: [
11503
11785
  hasHeading && /* @__PURE__ */ jsxRuntime.jsx(SectionHeading, { title: title ?? "", description, align: headingAlign }),
11504
11786
  /* @__PURE__ */ jsxRuntime.jsx(Grid6, { $columns: columns, $hasHeading: hasHeading, children: stats.map((stat, index) => /* @__PURE__ */ jsxRuntime.jsx(
11505
11787
  StatCard,
@@ -11510,7 +11792,7 @@ var StatsSection = react.forwardRef(
11510
11792
  },
11511
11793
  `${stat.label}-${index}`
11512
11794
  )) })
11513
- ] }) });
11795
+ ] });
11514
11796
  }
11515
11797
  );
11516
11798
  StatsSection.displayName = "StatsSection";
@@ -11537,11 +11819,10 @@ var TeamSection = react.forwardRef(
11537
11819
  headingAlign = "center",
11538
11820
  columns = 3,
11539
11821
  cardVariant = "default",
11540
- maxWidth = "xl",
11541
11822
  ...rest
11542
11823
  }, ref) => {
11543
11824
  const hasHeading = Boolean(title || description);
11544
- return /* @__PURE__ */ jsxRuntime.jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { maxWidth, children: [
11825
+ return /* @__PURE__ */ jsxRuntime.jsxs(Section, { ref, ...rest, children: [
11545
11826
  hasHeading && title && /* @__PURE__ */ jsxRuntime.jsx(SectionHeading, { title, description, align: headingAlign }),
11546
11827
  hasHeading && !title && description && /* @__PURE__ */ jsxRuntime.jsx(SectionHeading, { title: description, align: headingAlign, as: "h2" }),
11547
11828
  /* @__PURE__ */ jsxRuntime.jsx(Grid7, { $columns: columns, $hasHeading: hasHeading, children: members.map((member) => /* @__PURE__ */ jsxRuntime.jsx(
@@ -11552,7 +11833,7 @@ var TeamSection = react.forwardRef(
11552
11833
  },
11553
11834
  `${member.name}-${member.role}`
11554
11835
  )) })
11555
- ] }) });
11836
+ ] });
11556
11837
  }
11557
11838
  );
11558
11839
  TeamSection.displayName = "TeamSection";
@@ -11579,11 +11860,10 @@ var TestimonialsSection = react.forwardRef(
11579
11860
  headingAlign = "center",
11580
11861
  columns = 3,
11581
11862
  cardVariant = "default",
11582
- maxWidth = "xl",
11583
11863
  ...rest
11584
11864
  }, ref) => {
11585
11865
  const hasHeading = Boolean(title || description);
11586
- return /* @__PURE__ */ jsxRuntime.jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { maxWidth, children: [
11866
+ return /* @__PURE__ */ jsxRuntime.jsxs(Section, { ref, ...rest, children: [
11587
11867
  hasHeading && /* @__PURE__ */ jsxRuntime.jsx(SectionHeading, { title: title ?? "", description, align: headingAlign }),
11588
11868
  /* @__PURE__ */ jsxRuntime.jsx(Grid8, { $columns: columns, $hasHeading: hasHeading, children: testimonials.map((testimonial, index) => /* @__PURE__ */ jsxRuntime.jsx(
11589
11869
  TestimonialCard,
@@ -11593,12 +11873,12 @@ var TestimonialsSection = react.forwardRef(
11593
11873
  },
11594
11874
  `${testimonial.authorName}-${index}`
11595
11875
  )) })
11596
- ] }) });
11876
+ ] });
11597
11877
  }
11598
11878
  );
11599
11879
  TestimonialsSection.displayName = "TestimonialsSection";
11600
11880
  var testimonialsSectionColumns = [1, 2, 3];
11601
- var fadeIn4 = react$1.keyframes`
11881
+ var fadeIn5 = react$1.keyframes`
11602
11882
  from { opacity: 0; }
11603
11883
  to { opacity: 1; }
11604
11884
  `;
@@ -11606,7 +11886,7 @@ var slideDown = react$1.keyframes`
11606
11886
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
11607
11887
  to { opacity: 1; transform: translateY(0) scale(1); }
11608
11888
  `;
11609
- var Backdrop2 = styles.styled("div")({
11889
+ var Backdrop3 = styles.styled("div")({
11610
11890
  position: "fixed",
11611
11891
  inset: 0,
11612
11892
  zIndex: 1500,
@@ -11615,7 +11895,7 @@ var Backdrop2 = styles.styled("div")({
11615
11895
  alignItems: "flex-start",
11616
11896
  justifyContent: "center",
11617
11897
  padding: "8vh 1rem 1rem",
11618
- animation: `${fadeIn4} 150ms ease`
11898
+ animation: `${fadeIn5} 150ms ease`
11619
11899
  });
11620
11900
  var Dialog2 = styles.styled("div")(({ theme }) => ({
11621
11901
  width: "100%",
@@ -11745,7 +12025,7 @@ var EmptyState2 = styles.styled("div")(({ theme }) => ({
11745
12025
  fontSize: "0.9375rem",
11746
12026
  color: theme.palette.text.secondary
11747
12027
  }));
11748
- var Footer6 = styles.styled("div")(({ theme }) => ({
12028
+ var Footer7 = styles.styled("div")(({ theme }) => ({
11749
12029
  display: "flex",
11750
12030
  gap: "1.25rem",
11751
12031
  padding: "0.5rem 1rem",
@@ -11838,7 +12118,7 @@ function CommandPalette({
11838
12118
  let globalIndex = 0;
11839
12119
  return reactDom.createPortal(
11840
12120
  /* @__PURE__ */ jsxRuntime.jsx(
11841
- Backdrop2,
12121
+ Backdrop3,
11842
12122
  {
11843
12123
  role: "presentation",
11844
12124
  onClick: (e) => {
@@ -11900,7 +12180,7 @@ function CommandPalette({
11900
12180
  );
11901
12181
  })
11902
12182
  ] }, group.id)) }),
11903
- /* @__PURE__ */ jsxRuntime.jsxs(Footer6, { id: `${id}-hint`, "aria-hidden": "true", children: [
12183
+ /* @__PURE__ */ jsxRuntime.jsxs(Footer7, { id: `${id}-hint`, "aria-hidden": "true", children: [
11904
12184
  /* @__PURE__ */ jsxRuntime.jsxs(FooterHint, { children: [
11905
12185
  /* @__PURE__ */ jsxRuntime.jsx(Kbd, { children: "\u2191" }),
11906
12186
  /* @__PURE__ */ jsxRuntime.jsx(Kbd, { children: "\u2193" }),
@@ -11974,7 +12254,7 @@ var TopRow = styles.styled("div")({
11974
12254
  flexWrap: "wrap"
11975
12255
  });
11976
12256
  var TextBlock2 = styles.styled("div")({ flex: 1, minWidth: "16rem" });
11977
- var Title12 = styles.styled("p")(({ theme }) => ({
12257
+ var Title13 = styles.styled("p")(({ theme }) => ({
11978
12258
  margin: "0 0 0.25rem",
11979
12259
  fontFamily: theme.typography.fontFamily,
11980
12260
  fontSize: "1rem",
@@ -12035,7 +12315,7 @@ var TextButton = styles.styled(BaseButton)(({ theme }) => ({
12035
12315
  padding: "0.5625rem 0.5rem",
12036
12316
  "&:hover": { color: theme.palette.text.primary }
12037
12317
  }));
12038
- var Panel4 = styles.styled("div")(({ theme }) => ({
12318
+ var Panel5 = styles.styled("div")(({ theme }) => ({
12039
12319
  borderTop: `1px solid ${theme.palette.divider}`,
12040
12320
  paddingTop: "1rem",
12041
12321
  display: "flex",
@@ -12139,7 +12419,7 @@ function CookieConsent({
12139
12419
  /* @__PURE__ */ jsxRuntime.jsx(Bar2, { role: "region", "aria-label": "Zgoda na pliki cookie", "aria-live": "polite", children: /* @__PURE__ */ jsxRuntime.jsxs(Inner4, { children: [
12140
12420
  /* @__PURE__ */ jsxRuntime.jsxs(TopRow, { children: [
12141
12421
  /* @__PURE__ */ jsxRuntime.jsxs(TextBlock2, { children: [
12142
- /* @__PURE__ */ jsxRuntime.jsx(Title12, { children: title }),
12422
+ /* @__PURE__ */ jsxRuntime.jsx(Title13, { children: title }),
12143
12423
  /* @__PURE__ */ jsxRuntime.jsxs(Description9, { children: [
12144
12424
  description,
12145
12425
  privacyPolicyLabel && privacyPolicyHref && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
@@ -12163,7 +12443,7 @@ function CookieConsent({
12163
12443
  /* @__PURE__ */ jsxRuntime.jsx(PrimaryButton, { type: "button", onClick: handleAcceptAll, children: acceptAllLabel })
12164
12444
  ] })
12165
12445
  ] }),
12166
- expanded && /* @__PURE__ */ jsxRuntime.jsxs(Panel4, { id: `${id}-panel`, role: "group", "aria-label": "Kategorie plik\xF3w cookie", children: [
12446
+ expanded && /* @__PURE__ */ jsxRuntime.jsxs(Panel5, { id: `${id}-panel`, role: "group", "aria-label": "Kategorie plik\xF3w cookie", children: [
12167
12447
  categories.map((cat) => /* @__PURE__ */ jsxRuntime.jsxs(CategoryRow, { children: [
12168
12448
  /* @__PURE__ */ jsxRuntime.jsxs(CategoryText, { children: [
12169
12449
  /* @__PURE__ */ jsxRuntime.jsx(CategoryLabel, { children: cat.label }),
@@ -12190,7 +12470,7 @@ function CookieConsent({
12190
12470
  );
12191
12471
  }
12192
12472
  var defaultCookieCategories = DEFAULT_CATEGORIES;
12193
- var Root59 = styles.styled("footer")(({ theme }) => ({
12473
+ var Root60 = styles.styled("footer")(({ theme }) => ({
12194
12474
  width: "100%",
12195
12475
  backgroundColor: theme.palette.background.paper,
12196
12476
  borderTop: `1px solid ${theme.palette.divider}`
@@ -12318,7 +12598,7 @@ var SOCIAL_ICONS = {
12318
12598
  /* @__PURE__ */ jsxRuntime.jsx("polygon", { fill: "white", points: "9.75 15.02 15.5 12 9.75 8.98 9.75 15.02" })
12319
12599
  ] })
12320
12600
  };
12321
- function Footer7({
12601
+ function Footer8({
12322
12602
  logo,
12323
12603
  description,
12324
12604
  columns = [],
@@ -12328,7 +12608,7 @@ function Footer7({
12328
12608
  style
12329
12609
  }) {
12330
12610
  const colCount = columns.length;
12331
- return /* @__PURE__ */ jsxRuntime.jsx(Root59, { style, children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { maxWidth, style: { paddingTop: "3rem", paddingBottom: "2rem" }, children: [
12611
+ return /* @__PURE__ */ jsxRuntime.jsx(Root60, { style, children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { maxWidth, style: { paddingTop: "3rem", paddingBottom: "2rem" }, children: [
12332
12612
  (logo || description || colCount > 0) && /* @__PURE__ */ jsxRuntime.jsxs(TopRow2, { style: { "--col-count": colCount }, children: [
12333
12613
  (logo || description) && /* @__PURE__ */ jsxRuntime.jsxs(BrandBlock, { children: [
12334
12614
  logo,
@@ -12355,7 +12635,7 @@ function Footer7({
12355
12635
  ] })
12356
12636
  ] }) });
12357
12637
  }
12358
- var Root60 = styles.styled("header", {
12638
+ var Root61 = styles.styled("header", {
12359
12639
  shouldForwardProp: (p) => p !== "$sticky" && p !== "$variant"
12360
12640
  })(({ theme, $sticky, $variant }) => ({
12361
12641
  position: $sticky ? "sticky" : "relative",
@@ -12467,7 +12747,7 @@ function Navbar({
12467
12747
  style
12468
12748
  }) {
12469
12749
  const [mobileOpen, setMobileOpen] = react.useState(false);
12470
- return /* @__PURE__ */ jsxRuntime.jsxs(Root60, { $sticky: sticky, $variant: variant, style, children: [
12750
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root61, { $sticky: sticky, $variant: variant, style, children: [
12471
12751
  /* @__PURE__ */ jsxRuntime.jsxs(
12472
12752
  Container,
12473
12753
  {
@@ -12514,8 +12794,10 @@ var themeBase = {
12514
12794
  info: { main: "#1976d2", dark: "#1565c0", light: "#42a5f5", contrastText: "#ffffff" }
12515
12795
  }
12516
12796
  };
12517
- var themeLight = styles.createTheme(themeBase, {
12797
+ var themeLight = styles.createTheme({
12798
+ ...themeBase,
12518
12799
  palette: {
12800
+ ...themeBase.palette,
12519
12801
  mode: "light",
12520
12802
  primary: { main: "#1976d2", dark: "#1565c0", light: "#42a5f5", contrastText: "#ffffff" },
12521
12803
  secondary: { main: "#6b7280", dark: "#4b5563", light: "#9ca3af", contrastText: "#ffffff" },
@@ -12523,8 +12805,10 @@ var themeLight = styles.createTheme(themeBase, {
12523
12805
  background: { default: "#ffffff", paper: "#f5f5f5" }
12524
12806
  }
12525
12807
  });
12526
- var themeDark = styles.createTheme(themeBase, {
12808
+ var themeDark = styles.createTheme({
12809
+ ...themeBase,
12527
12810
  palette: {
12811
+ ...themeBase.palette,
12528
12812
  mode: "dark",
12529
12813
  primary: { main: "#90caf9", dark: "#42a5f5", light: "#bbdefb", contrastText: "#0d1b2a" },
12530
12814
  secondary: { main: "#9ca3af", dark: "#6b7280", light: "#d1d5db", contrastText: "#111827" },
@@ -12532,8 +12816,10 @@ var themeDark = styles.createTheme(themeBase, {
12532
12816
  background: { default: "#121212", paper: "#1e1e1e" }
12533
12817
  }
12534
12818
  });
12535
- var themeHighContrast = styles.createTheme(themeBase, {
12819
+ var themeHighContrast = styles.createTheme({
12820
+ ...themeBase,
12536
12821
  palette: {
12822
+ ...themeBase.palette,
12537
12823
  mode: "dark",
12538
12824
  primary: { main: "#ffffff", dark: "#e0e0e0", light: "#ffffff", contrastText: "#000000" },
12539
12825
  secondary: { main: "#ffff00", dark: "#cccc00", light: "#ffff66", contrastText: "#000000" },
@@ -12584,6 +12870,29 @@ var MyThemeProvider = ({
12584
12870
  children
12585
12871
  ] });
12586
12872
  };
12873
+ function toggleLikeInTree(items, id) {
12874
+ return items.map((comment) => {
12875
+ if (comment.id === id) {
12876
+ const isLiked = !comment.isLiked;
12877
+ return {
12878
+ ...comment,
12879
+ isLiked,
12880
+ likesCount: comment.likesCount !== void 0 ? comment.likesCount + (isLiked ? 1 : -1) : void 0
12881
+ };
12882
+ }
12883
+ if (comment.replies?.length) {
12884
+ return { ...comment, replies: toggleLikeInTree(comment.replies, id) };
12885
+ }
12886
+ return comment;
12887
+ });
12888
+ }
12889
+ function useCommentLikes(initialComments) {
12890
+ const [comments, setComments] = react.useState(initialComments);
12891
+ const onLike = react.useCallback((commentId) => {
12892
+ setComments((prev) => toggleLikeInTree(prev, commentId));
12893
+ }, []);
12894
+ return { comments, onLike };
12895
+ }
12587
12896
 
12588
12897
  exports.Accordion = Accordion;
12589
12898
  exports.Alert = Alert;
@@ -12629,7 +12938,7 @@ exports.FeatureGrid = FeatureGrid;
12629
12938
  exports.FeatureItem = FeatureItem;
12630
12939
  exports.FileInput = FileInput;
12631
12940
  exports.FilterSidebar = FilterSidebar;
12632
- exports.Footer = Footer7;
12941
+ exports.Footer = Footer8;
12633
12942
  exports.Image = Image;
12634
12943
  exports.Lightbox = Lightbox;
12635
12944
  exports.List = List4;
@@ -12673,6 +12982,7 @@ exports.ProgressCircle = ProgressCircle;
12673
12982
  exports.PromoStrip = PromoStrip;
12674
12983
  exports.Prose = Prose;
12675
12984
  exports.QuantitySelector = QuantitySelector;
12985
+ exports.RadioInput = RadioInput;
12676
12986
  exports.RangeSlider = RangeSlider;
12677
12987
  exports.Rating = Rating;
12678
12988
  exports.RelatedProducts = RelatedProducts;
@@ -12683,6 +12993,8 @@ exports.SearchInput = SearchInput;
12683
12993
  exports.Section = Section;
12684
12994
  exports.SectionHeading = SectionHeading;
12685
12995
  exports.SelectInput = SelectInput;
12996
+ exports.Separator = Separator;
12997
+ exports.Sheet = Sheet;
12686
12998
  exports.ShippingSelector = ShippingSelector;
12687
12999
  exports.Skeleton = Skeleton;
12688
13000
  exports.SortBar = SortBar;
@@ -12743,6 +13055,8 @@ exports.promoStripVariants = promoStripVariants;
12743
13055
  exports.rangeSliderSizes = rangeSliderSizes;
12744
13056
  exports.relatedProductsLayouts = relatedProductsLayouts;
12745
13057
  exports.sectionHeadingAligns = sectionHeadingAligns;
13058
+ exports.sheetPositions = sheetPositions;
13059
+ exports.sheetSizes = sheetSizes;
12746
13060
  exports.skeletonVariants = skeletonVariants;
12747
13061
  exports.spinnerColors = spinnerColors;
12748
13062
  exports.spinnerSizes = spinnerSizes;
@@ -12758,6 +13072,7 @@ exports.themeHighContrast = themeHighContrast;
12758
13072
  exports.themeLight = themeLight;
12759
13073
  exports.timelineItemStatuses = timelineItemStatuses;
12760
13074
  exports.timelineVariants = timelineVariants;
13075
+ exports.useCommentLikes = useCommentLikes;
12761
13076
  exports.variantSelectorModes = variantSelectorModes;
12762
13077
  //# sourceMappingURL=index.cjs.map
12763
13078
  //# sourceMappingURL=index.cjs.map