@szymonpiatek/designsystem 0.0.5 → 0.0.6
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 +172 -232
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -5
- package/dist/index.d.ts +1 -5
- package/dist/index.js +5 -45
- package/dist/index.js.map +1 -1
- package/package.json +5 -18
- package/dist/ssr/EmotionRegistry.cjs +0 -71
- package/dist/ssr/EmotionRegistry.cjs.map +0 -1
- package/dist/ssr/EmotionRegistry.js +0 -46
- package/dist/ssr/EmotionRegistry.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var react = require('react');
|
|
4
4
|
var styles = require('@mui/material/styles');
|
|
5
5
|
var CircularProgress = require('@mui/material/CircularProgress');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -21,7 +21,7 @@ var ChevronLeftIcon = require('@mui/icons-material/ChevronLeft');
|
|
|
21
21
|
var ChevronRightIcon = require('@mui/icons-material/ChevronRight');
|
|
22
22
|
var KeyboardArrowUpIcon = require('@mui/icons-material/KeyboardArrowUp');
|
|
23
23
|
var KeyboardArrowDownIcon = require('@mui/icons-material/KeyboardArrowDown');
|
|
24
|
-
var react = require('@emotion/react');
|
|
24
|
+
var react$1 = require('@emotion/react');
|
|
25
25
|
var ArticleIcon = require('@mui/icons-material/Article');
|
|
26
26
|
var CheckCircleOutlinedIcon = require('@mui/icons-material/CheckCircleOutlined');
|
|
27
27
|
var HighlightOffIcon = require('@mui/icons-material/HighlightOff');
|
|
@@ -31,30 +31,9 @@ var KeyboardDoubleArrowRightIcon = require('@mui/icons-material/KeyboardDoubleAr
|
|
|
31
31
|
var ArrowForwardIcon = require('@mui/icons-material/ArrowForward');
|
|
32
32
|
var MenuIcon = require('@mui/icons-material/Menu');
|
|
33
33
|
var CssBaseline = require('@mui/material/CssBaseline');
|
|
34
|
-
var navigation = require('next/navigation');
|
|
35
|
-
var createCache = require('@emotion/cache');
|
|
36
34
|
|
|
37
35
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
38
36
|
|
|
39
|
-
function _interopNamespace(e) {
|
|
40
|
-
if (e && e.__esModule) return e;
|
|
41
|
-
var n = Object.create(null);
|
|
42
|
-
if (e) {
|
|
43
|
-
Object.keys(e).forEach(function (k) {
|
|
44
|
-
if (k !== 'default') {
|
|
45
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
46
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
47
|
-
enumerable: true,
|
|
48
|
-
get: function () { return e[k]; }
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
n.default = e;
|
|
54
|
-
return Object.freeze(n);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
58
37
|
var CircularProgress__default = /*#__PURE__*/_interopDefault(CircularProgress);
|
|
59
38
|
var ExpandMoreIcon__default = /*#__PURE__*/_interopDefault(ExpandMoreIcon);
|
|
60
39
|
var FileUploadIcon__default = /*#__PURE__*/_interopDefault(FileUploadIcon);
|
|
@@ -80,7 +59,6 @@ var KeyboardDoubleArrowRightIcon__default = /*#__PURE__*/_interopDefault(Keyboar
|
|
|
80
59
|
var ArrowForwardIcon__default = /*#__PURE__*/_interopDefault(ArrowForwardIcon);
|
|
81
60
|
var MenuIcon__default = /*#__PURE__*/_interopDefault(MenuIcon);
|
|
82
61
|
var CssBaseline__default = /*#__PURE__*/_interopDefault(CssBaseline);
|
|
83
|
-
var createCache__default = /*#__PURE__*/_interopDefault(createCache);
|
|
84
62
|
|
|
85
63
|
// src/components/atoms/buttons/Button/Button.tsx
|
|
86
64
|
var sizeMap = {
|
|
@@ -153,7 +131,7 @@ var IconSlot = styles.styled("span")({
|
|
|
153
131
|
var Spinner = styles.styled("span")({
|
|
154
132
|
display: "inline-flex"
|
|
155
133
|
});
|
|
156
|
-
var Button =
|
|
134
|
+
var Button = react.forwardRef(
|
|
157
135
|
({
|
|
158
136
|
variant = "primary",
|
|
159
137
|
size = "md",
|
|
@@ -297,7 +275,7 @@ var Adornment = styles.styled("span")(({ theme }) => ({
|
|
|
297
275
|
color: theme.palette.text.secondary,
|
|
298
276
|
flexShrink: 0
|
|
299
277
|
}));
|
|
300
|
-
var BaseInput =
|
|
278
|
+
var BaseInput = react.forwardRef(
|
|
301
279
|
({
|
|
302
280
|
label,
|
|
303
281
|
helperText,
|
|
@@ -310,7 +288,7 @@ var BaseInput = React.forwardRef(
|
|
|
310
288
|
id,
|
|
311
289
|
...rest
|
|
312
290
|
}, ref) => {
|
|
313
|
-
const autoId =
|
|
291
|
+
const autoId = react.useId();
|
|
314
292
|
const inputId = id ?? autoId;
|
|
315
293
|
return /* @__PURE__ */ jsxRuntime.jsxs(Root, { $fullWidth: fullWidth, children: [
|
|
316
294
|
label && /* @__PURE__ */ jsxRuntime.jsx(Label, { htmlFor: inputId, error, size, children: label }),
|
|
@@ -421,7 +399,7 @@ var Root2 = styles.styled("span")(({ $disabled }) => ({
|
|
|
421
399
|
flexDirection: "column",
|
|
422
400
|
cursor: $disabled ? "not-allowed" : "pointer"
|
|
423
401
|
}));
|
|
424
|
-
var CheckboxInput =
|
|
402
|
+
var CheckboxInput = react.forwardRef(
|
|
425
403
|
({
|
|
426
404
|
label,
|
|
427
405
|
helperText,
|
|
@@ -432,10 +410,10 @@ var CheckboxInput = React.forwardRef(
|
|
|
432
410
|
id,
|
|
433
411
|
...rest
|
|
434
412
|
}, ref) => {
|
|
435
|
-
const autoId =
|
|
413
|
+
const autoId = react.useId();
|
|
436
414
|
const inputId = id ?? autoId;
|
|
437
|
-
const innerRef =
|
|
438
|
-
|
|
415
|
+
const innerRef = react.useRef(null);
|
|
416
|
+
react.useEffect(() => {
|
|
439
417
|
if (innerRef.current) {
|
|
440
418
|
innerRef.current.indeterminate = indeterminate;
|
|
441
419
|
}
|
|
@@ -865,7 +843,7 @@ var FileActionBtn = styles.styled("button")(({
|
|
|
865
843
|
"&:disabled": { opacity: 0.5, cursor: "not-allowed" }
|
|
866
844
|
};
|
|
867
845
|
});
|
|
868
|
-
var FileInput =
|
|
846
|
+
var FileInput = react.forwardRef(
|
|
869
847
|
({
|
|
870
848
|
label,
|
|
871
849
|
helperText,
|
|
@@ -893,11 +871,11 @@ var FileInput = React.forwardRef(
|
|
|
893
871
|
onChange,
|
|
894
872
|
...rest
|
|
895
873
|
}, ref) => {
|
|
896
|
-
const autoId =
|
|
874
|
+
const autoId = react.useId();
|
|
897
875
|
const inputId = id ?? autoId;
|
|
898
|
-
const innerRef =
|
|
899
|
-
const [files, setFiles] =
|
|
900
|
-
const [isDragging, setIsDragging] =
|
|
876
|
+
const innerRef = react.useRef(null);
|
|
877
|
+
const [files, setFiles] = react.useState([]);
|
|
878
|
+
const [isDragging, setIsDragging] = react.useState(false);
|
|
901
879
|
const assignRef = (node) => {
|
|
902
880
|
innerRef.current = node;
|
|
903
881
|
if (typeof ref === "function") ref(node);
|
|
@@ -1154,7 +1132,7 @@ var filterEmailString = (value) => {
|
|
|
1154
1132
|
const domain = value.slice(atIdx + 1).replace(/@/g, "").replace(/[^a-zA-Z0-9.-]/g, "");
|
|
1155
1133
|
return `${local}@${domain}`;
|
|
1156
1134
|
};
|
|
1157
|
-
var EmailInput =
|
|
1135
|
+
var EmailInput = react.forwardRef(
|
|
1158
1136
|
({ onKeyDown, onPaste, ...props }, ref) => {
|
|
1159
1137
|
const handleKeyDown = (e) => {
|
|
1160
1138
|
onKeyDown?.(e);
|
|
@@ -1296,13 +1274,13 @@ var BaseSelectInput = ({
|
|
|
1296
1274
|
id
|
|
1297
1275
|
}) => {
|
|
1298
1276
|
const checkSelected = isSelected ?? ((option) => option.value === value);
|
|
1299
|
-
const autoId =
|
|
1277
|
+
const autoId = react.useId();
|
|
1300
1278
|
const inputId = id ?? autoId;
|
|
1301
1279
|
const listboxId = `${inputId}-listbox`;
|
|
1302
|
-
const [internalOpen, setInternalOpen] =
|
|
1280
|
+
const [internalOpen, setInternalOpen] = react.useState(false);
|
|
1303
1281
|
const isOpen = controlledOpen ?? internalOpen;
|
|
1304
|
-
const rootRef =
|
|
1305
|
-
const close =
|
|
1282
|
+
const rootRef = react.useRef(null);
|
|
1283
|
+
const close = react.useCallback(() => {
|
|
1306
1284
|
setInternalOpen(false);
|
|
1307
1285
|
onOpenChange?.(false);
|
|
1308
1286
|
}, [onOpenChange]);
|
|
@@ -1316,7 +1294,7 @@ var BaseSelectInput = ({
|
|
|
1316
1294
|
onSelect?.(option, close);
|
|
1317
1295
|
}
|
|
1318
1296
|
};
|
|
1319
|
-
|
|
1297
|
+
react.useEffect(() => {
|
|
1320
1298
|
if (!isOpen) return;
|
|
1321
1299
|
const handleMouseDown = (e) => {
|
|
1322
1300
|
if (rootRef.current && !rootRef.current.contains(e.target)) {
|
|
@@ -1370,7 +1348,7 @@ var BaseSelectInput = ({
|
|
|
1370
1348
|
] });
|
|
1371
1349
|
};
|
|
1372
1350
|
BaseSelectInput.displayName = "BaseSelectInput";
|
|
1373
|
-
var NumberInput =
|
|
1351
|
+
var NumberInput = react.forwardRef(
|
|
1374
1352
|
(props, ref) => /* @__PURE__ */ jsxRuntime.jsx(BaseInput, { ref, type: "number", ...props })
|
|
1375
1353
|
);
|
|
1376
1354
|
NumberInput.displayName = "NumberInput";
|
|
@@ -1474,9 +1452,9 @@ var ToggleButton = styles.styled("button")(({ theme }) => ({
|
|
|
1474
1452
|
}));
|
|
1475
1453
|
var EyeIcon = () => /* @__PURE__ */ jsxRuntime.jsx(VisibilityIcon__default.default, { "aria-hidden": true, sx: { fontSize: "1em" } });
|
|
1476
1454
|
var EyeOffIcon = () => /* @__PURE__ */ jsxRuntime.jsx(VisibilityOffIcon__default.default, { "aria-hidden": true, sx: { fontSize: "1em" } });
|
|
1477
|
-
var PasswordInput =
|
|
1455
|
+
var PasswordInput = react.forwardRef(
|
|
1478
1456
|
({ disabled, showPasswordLabel = "Poka\u017C has\u0142o", hidePasswordLabel = "Ukryj has\u0142o", ...props }, ref) => {
|
|
1479
|
-
const [show, setShow] =
|
|
1457
|
+
const [show, setShow] = react.useState(false);
|
|
1480
1458
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1481
1459
|
BaseInput,
|
|
1482
1460
|
{
|
|
@@ -1516,10 +1494,10 @@ var ClearButton = styles.styled("button")(({ theme }) => ({
|
|
|
1516
1494
|
}));
|
|
1517
1495
|
var SearchIcon = () => /* @__PURE__ */ jsxRuntime.jsx(SearchMuiIcon__default.default, { "aria-hidden": true, sx: { fontSize: "1em" } });
|
|
1518
1496
|
var XIcon2 = () => /* @__PURE__ */ jsxRuntime.jsx(CloseIcon__default.default, { "aria-hidden": true, sx: { fontSize: "1em" } });
|
|
1519
|
-
var SearchInput =
|
|
1497
|
+
var SearchInput = react.forwardRef(
|
|
1520
1498
|
({ value, onChange, onClear, clearAriaLabel = "Wyczy\u015B\u0107", ...props }, forwardedRef) => {
|
|
1521
|
-
const innerRef =
|
|
1522
|
-
const attachRef =
|
|
1499
|
+
const innerRef = react.useRef(null);
|
|
1500
|
+
const attachRef = react.useCallback(
|
|
1523
1501
|
(el) => {
|
|
1524
1502
|
innerRef.current = el;
|
|
1525
1503
|
if (typeof forwardedRef === "function") forwardedRef(el);
|
|
@@ -1529,7 +1507,7 @@ var SearchInput = React.forwardRef(
|
|
|
1529
1507
|
[forwardedRef]
|
|
1530
1508
|
);
|
|
1531
1509
|
const isControlled = value !== void 0;
|
|
1532
|
-
const [localValue, setLocalValue] =
|
|
1510
|
+
const [localValue, setLocalValue] = react.useState("");
|
|
1533
1511
|
const hasValue = isControlled ? !!value : !!localValue;
|
|
1534
1512
|
const handleChange = (e) => {
|
|
1535
1513
|
if (!isControlled) setLocalValue(e.target.value);
|
|
@@ -1635,7 +1613,7 @@ var StyledTextarea = styles.styled("textarea")(({ theme, $size, $fullWidth, $err
|
|
|
1635
1613
|
color: theme.palette.text.disabled
|
|
1636
1614
|
}
|
|
1637
1615
|
}));
|
|
1638
|
-
var TextareaInput =
|
|
1616
|
+
var TextareaInput = react.forwardRef(
|
|
1639
1617
|
({
|
|
1640
1618
|
label,
|
|
1641
1619
|
helperText,
|
|
@@ -1647,7 +1625,7 @@ var TextareaInput = React.forwardRef(
|
|
|
1647
1625
|
id,
|
|
1648
1626
|
...rest
|
|
1649
1627
|
}, ref) => {
|
|
1650
|
-
const autoId =
|
|
1628
|
+
const autoId = react.useId();
|
|
1651
1629
|
const inputId = id ?? autoId;
|
|
1652
1630
|
return /* @__PURE__ */ jsxRuntime.jsxs(Root5, { $fullWidth: fullWidth, children: [
|
|
1653
1631
|
label && /* @__PURE__ */ jsxRuntime.jsx(Label, { htmlFor: inputId, error, size, children: label }),
|
|
@@ -3425,7 +3403,7 @@ var EmptyMessage = styles.styled("p")(({ theme }) => ({
|
|
|
3425
3403
|
fontSize: "0.875rem",
|
|
3426
3404
|
color: theme.palette.text.secondary
|
|
3427
3405
|
}));
|
|
3428
|
-
var PhoneInput =
|
|
3406
|
+
var PhoneInput = react.forwardRef(
|
|
3429
3407
|
({
|
|
3430
3408
|
value,
|
|
3431
3409
|
defaultValue = "",
|
|
@@ -3447,30 +3425,30 @@ var PhoneInput = React.forwardRef(
|
|
|
3447
3425
|
countrySearchAriaLabel = "Szukaj kraju",
|
|
3448
3426
|
digitsLabel = "cyfr"
|
|
3449
3427
|
}, ref) => {
|
|
3450
|
-
const autoId =
|
|
3428
|
+
const autoId = react.useId();
|
|
3451
3429
|
const inputId = id ?? autoId;
|
|
3452
3430
|
const listboxId = `${inputId}-listbox`;
|
|
3453
|
-
const initialCountry =
|
|
3431
|
+
const initialCountry = react.useMemo(
|
|
3454
3432
|
() => COUNTRIES.find((c) => c.flagCode === defaultCountry) ?? DEFAULT_COUNTRY,
|
|
3455
3433
|
[defaultCountry]
|
|
3456
3434
|
);
|
|
3457
|
-
const [selectedCountry, setSelectedCountry] =
|
|
3458
|
-
const [isOpen, setIsOpen] =
|
|
3459
|
-
const [searchQuery, setSearchQuery] =
|
|
3460
|
-
const [focused, setFocused] =
|
|
3435
|
+
const [selectedCountry, setSelectedCountry] = react.useState(initialCountry);
|
|
3436
|
+
const [isOpen, setIsOpen] = react.useState(false);
|
|
3437
|
+
const [searchQuery, setSearchQuery] = react.useState("");
|
|
3438
|
+
const [focused, setFocused] = react.useState(false);
|
|
3461
3439
|
const isControlled = value !== void 0;
|
|
3462
|
-
const [internalValue, setInternalValue] =
|
|
3440
|
+
const [internalValue, setInternalValue] = react.useState(defaultValue);
|
|
3463
3441
|
const phoneValue = isControlled ? value : internalValue;
|
|
3464
|
-
const rootRef =
|
|
3465
|
-
const searchRef =
|
|
3466
|
-
const filteredCountries =
|
|
3442
|
+
const rootRef = react.useRef(null);
|
|
3443
|
+
const searchRef = react.useRef(null);
|
|
3444
|
+
const filteredCountries = react.useMemo(() => {
|
|
3467
3445
|
const q = searchQuery.toLowerCase().trim();
|
|
3468
3446
|
if (!q) return COUNTRIES;
|
|
3469
3447
|
return COUNTRIES.filter(
|
|
3470
3448
|
(c) => c.country.toLowerCase().includes(q) || c.flagCode.toLowerCase().includes(q) || c.dialCode.includes(q)
|
|
3471
3449
|
);
|
|
3472
3450
|
}, [searchQuery]);
|
|
3473
|
-
const close =
|
|
3451
|
+
const close = react.useCallback(() => {
|
|
3474
3452
|
setIsOpen(false);
|
|
3475
3453
|
setSearchQuery("");
|
|
3476
3454
|
}, []);
|
|
@@ -3502,7 +3480,7 @@ var PhoneInput = React.forwardRef(
|
|
|
3502
3480
|
if (e.ctrlKey || e.metaKey || e.altKey || e.key.length > 1) return;
|
|
3503
3481
|
if (!/^\d$/.test(e.key)) e.preventDefault();
|
|
3504
3482
|
};
|
|
3505
|
-
|
|
3483
|
+
react.useEffect(() => {
|
|
3506
3484
|
if (!isOpen) return;
|
|
3507
3485
|
const handler = (e) => {
|
|
3508
3486
|
if (rootRef.current && !rootRef.current.contains(e.target)) close();
|
|
@@ -3606,7 +3584,7 @@ var PhoneInput = React.forwardRef(
|
|
|
3606
3584
|
}
|
|
3607
3585
|
);
|
|
3608
3586
|
PhoneInput.displayName = "PhoneInput";
|
|
3609
|
-
var TextInput =
|
|
3587
|
+
var TextInput = react.forwardRef(
|
|
3610
3588
|
({ type = "text", ...rest }, ref) => /* @__PURE__ */ jsxRuntime.jsx(BaseInput, { ref, type, ...rest })
|
|
3611
3589
|
);
|
|
3612
3590
|
TextInput.displayName = "TextInput";
|
|
@@ -3697,7 +3675,7 @@ var LabelText2 = styles.styled("span")(
|
|
|
3697
3675
|
fontFamily: theme.typography.fontFamily
|
|
3698
3676
|
})
|
|
3699
3677
|
);
|
|
3700
|
-
var SwitchInput =
|
|
3678
|
+
var SwitchInput = react.forwardRef(
|
|
3701
3679
|
({
|
|
3702
3680
|
label,
|
|
3703
3681
|
helperText,
|
|
@@ -3709,7 +3687,7 @@ var SwitchInput = React.forwardRef(
|
|
|
3709
3687
|
id,
|
|
3710
3688
|
...rest
|
|
3711
3689
|
}, ref) => {
|
|
3712
|
-
const autoId =
|
|
3690
|
+
const autoId = react.useId();
|
|
3713
3691
|
const inputId = id ?? autoId;
|
|
3714
3692
|
return /* @__PURE__ */ jsxRuntime.jsxs(Root7, { $disabled: disabled, children: [
|
|
3715
3693
|
/* @__PURE__ */ jsxRuntime.jsxs(Row2, { htmlFor: inputId, $placement: labelPlacement, children: [
|
|
@@ -3813,7 +3791,7 @@ function pct(value, min, max) {
|
|
|
3813
3791
|
function clamp(v, min, max) {
|
|
3814
3792
|
return Math.min(max, Math.max(min, v));
|
|
3815
3793
|
}
|
|
3816
|
-
var RangeSlider =
|
|
3794
|
+
var RangeSlider = react.forwardRef(
|
|
3817
3795
|
({
|
|
3818
3796
|
min = 0,
|
|
3819
3797
|
max = 100,
|
|
@@ -3830,9 +3808,9 @@ var RangeSlider = React.forwardRef(
|
|
|
3830
3808
|
id,
|
|
3831
3809
|
...props
|
|
3832
3810
|
}, ref) => {
|
|
3833
|
-
const autoId =
|
|
3811
|
+
const autoId = react.useId();
|
|
3834
3812
|
const inputId = id ?? autoId;
|
|
3835
|
-
const getInitial =
|
|
3813
|
+
const getInitial = react.useCallback(() => {
|
|
3836
3814
|
if (range) {
|
|
3837
3815
|
const dv2 = defaultValue ?? controlledValue;
|
|
3838
3816
|
return dv2 ?? [min, max];
|
|
@@ -3840,7 +3818,7 @@ var RangeSlider = React.forwardRef(
|
|
|
3840
3818
|
const dv = defaultValue ?? controlledValue;
|
|
3841
3819
|
return [dv ?? min, max];
|
|
3842
3820
|
}, [range, defaultValue, controlledValue, min, max]);
|
|
3843
|
-
const [internal, setInternal] =
|
|
3821
|
+
const [internal, setInternal] = react.useState(getInitial);
|
|
3844
3822
|
const [lo, hi] = controlledValue !== void 0 ? range ? controlledValue : [controlledValue, max] : internal;
|
|
3845
3823
|
const emit = (next) => {
|
|
3846
3824
|
setInternal(next);
|
|
@@ -4234,7 +4212,7 @@ function IconChevronDown() {
|
|
|
4234
4212
|
function IconX() {
|
|
4235
4213
|
return /* @__PURE__ */ jsxRuntime.jsx(CloseIcon__default.default, { "aria-hidden": "true", style: { fontSize: 14 } });
|
|
4236
4214
|
}
|
|
4237
|
-
var DateTimePicker =
|
|
4215
|
+
var DateTimePicker = react.forwardRef(
|
|
4238
4216
|
({
|
|
4239
4217
|
value,
|
|
4240
4218
|
defaultValue,
|
|
@@ -4251,26 +4229,26 @@ var DateTimePicker = React.forwardRef(
|
|
|
4251
4229
|
max,
|
|
4252
4230
|
id
|
|
4253
4231
|
}, ref) => {
|
|
4254
|
-
const autoId =
|
|
4232
|
+
const autoId = react.useId();
|
|
4255
4233
|
const inputId = id ?? autoId;
|
|
4256
|
-
const rootRef =
|
|
4234
|
+
const rootRef = react.useRef(null);
|
|
4257
4235
|
const isControlled = value !== void 0;
|
|
4258
|
-
const [internalDate, setInternalDate] =
|
|
4236
|
+
const [internalDate, setInternalDate] = react.useState(defaultValue ?? null);
|
|
4259
4237
|
const selectedDate = isControlled ? value ?? null : internalDate;
|
|
4260
|
-
const [open, setOpen] =
|
|
4238
|
+
const [open, setOpen] = react.useState(false);
|
|
4261
4239
|
const today = /* @__PURE__ */ new Date();
|
|
4262
|
-
const [viewYear, setViewYear] =
|
|
4263
|
-
const [viewMonth, setViewMonth] =
|
|
4264
|
-
const [hours, setHours] =
|
|
4265
|
-
const [minutes, setMinutes] =
|
|
4266
|
-
const [hourInput, setHourInput] =
|
|
4240
|
+
const [viewYear, setViewYear] = react.useState(selectedDate?.getFullYear() ?? today.getFullYear());
|
|
4241
|
+
const [viewMonth, setViewMonth] = react.useState(selectedDate?.getMonth() ?? today.getMonth());
|
|
4242
|
+
const [hours, setHours] = react.useState(selectedDate?.getHours() ?? 12);
|
|
4243
|
+
const [minutes, setMinutes] = react.useState(selectedDate?.getMinutes() ?? 0);
|
|
4244
|
+
const [hourInput, setHourInput] = react.useState(
|
|
4267
4245
|
String(selectedDate?.getHours() ?? 12).padStart(2, "0")
|
|
4268
4246
|
);
|
|
4269
|
-
const [minInput, setMinInput] =
|
|
4247
|
+
const [minInput, setMinInput] = react.useState(
|
|
4270
4248
|
String(selectedDate?.getMinutes() ?? 0).padStart(2, "0")
|
|
4271
4249
|
);
|
|
4272
|
-
const [draftDate, setDraftDate] =
|
|
4273
|
-
const calendarDays =
|
|
4250
|
+
const [draftDate, setDraftDate] = react.useState(null);
|
|
4251
|
+
const calendarDays = react.useMemo(
|
|
4274
4252
|
() => buildCalendarDays(viewYear, viewMonth),
|
|
4275
4253
|
[viewYear, viewMonth]
|
|
4276
4254
|
);
|
|
@@ -4289,7 +4267,7 @@ var DateTimePicker = React.forwardRef(
|
|
|
4289
4267
|
}
|
|
4290
4268
|
setOpen(true);
|
|
4291
4269
|
};
|
|
4292
|
-
const commit =
|
|
4270
|
+
const commit = react.useCallback(
|
|
4293
4271
|
(d) => {
|
|
4294
4272
|
if (!isControlled) setInternalDate(d);
|
|
4295
4273
|
onChange?.(d);
|
|
@@ -4364,7 +4342,7 @@ var DateTimePicker = React.forwardRef(
|
|
|
4364
4342
|
setMinutes(val);
|
|
4365
4343
|
setMinInput(String(val).padStart(2, "0"));
|
|
4366
4344
|
};
|
|
4367
|
-
|
|
4345
|
+
react.useEffect(() => {
|
|
4368
4346
|
if (!open) return;
|
|
4369
4347
|
const handler = (e) => {
|
|
4370
4348
|
if (rootRef.current && !rootRef.current.contains(e.target)) setOpen(false);
|
|
@@ -4372,7 +4350,7 @@ var DateTimePicker = React.forwardRef(
|
|
|
4372
4350
|
document.addEventListener("mousedown", handler);
|
|
4373
4351
|
return () => document.removeEventListener("mousedown", handler);
|
|
4374
4352
|
}, [open]);
|
|
4375
|
-
|
|
4353
|
+
react.useEffect(() => {
|
|
4376
4354
|
if (!open) return;
|
|
4377
4355
|
const handler = (e) => {
|
|
4378
4356
|
if (e.key === "Escape") setOpen(false);
|
|
@@ -4701,7 +4679,7 @@ var StyledCard = styles.styled("div", {
|
|
|
4701
4679
|
borderRadius: roundedMap[$rounded],
|
|
4702
4680
|
...getVariantStyles($variant, theme)
|
|
4703
4681
|
}));
|
|
4704
|
-
var Card =
|
|
4682
|
+
var Card = react.forwardRef(
|
|
4705
4683
|
({ variant = "default", padding = "md", rounded = "lg", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(StyledCard, { ref, $variant: variant, $padding: padding, $rounded: rounded, ...props })
|
|
4706
4684
|
);
|
|
4707
4685
|
Card.displayName = "Card";
|
|
@@ -4890,7 +4868,7 @@ function SectionHeading({
|
|
|
4890
4868
|
] });
|
|
4891
4869
|
}
|
|
4892
4870
|
var sectionHeadingAligns = ["center", "left", "right"];
|
|
4893
|
-
var shimmer = react.keyframes`
|
|
4871
|
+
var shimmer = react$1.keyframes`
|
|
4894
4872
|
0% { background-position: -200% 0; }
|
|
4895
4873
|
100% { background-position: 200% 0; }
|
|
4896
4874
|
`;
|
|
@@ -4948,10 +4926,10 @@ var SIZE_MAP = {
|
|
|
4948
4926
|
lg: "2rem",
|
|
4949
4927
|
xl: "3rem"
|
|
4950
4928
|
};
|
|
4951
|
-
var spin = react.keyframes`to { transform: rotate(360deg); }`;
|
|
4952
|
-
var fade = react.keyframes`0%,100%{opacity:.15} 50%{opacity:1}`;
|
|
4953
|
-
var scalePulse = react.keyframes`0%,100%{transform:scale(0.6);opacity:.4} 50%{transform:scale(1);opacity:1}`;
|
|
4954
|
-
var barAnim = react.keyframes`0%,100%{transform:scaleY(.4);opacity:.5} 50%{transform:scaleY(1);opacity:1}`;
|
|
4929
|
+
var spin = react$1.keyframes`to { transform: rotate(360deg); }`;
|
|
4930
|
+
var fade = react$1.keyframes`0%,100%{opacity:.15} 50%{opacity:1}`;
|
|
4931
|
+
var scalePulse = react$1.keyframes`0%,100%{transform:scale(0.6);opacity:.4} 50%{transform:scale(1);opacity:1}`;
|
|
4932
|
+
var barAnim = react$1.keyframes`0%,100%{transform:scaleY(.4);opacity:.5} 50%{transform:scaleY(1);opacity:1}`;
|
|
4955
4933
|
var Root10 = styles.styled("span", {
|
|
4956
4934
|
shouldForwardProp: (p) => !["$size", "$color"].includes(p)
|
|
4957
4935
|
})(({ theme, $size, $color }) => {
|
|
@@ -5052,7 +5030,7 @@ var HEIGHT_MAP = {
|
|
|
5052
5030
|
md: "0.75rem",
|
|
5053
5031
|
lg: "1.25rem"
|
|
5054
5032
|
};
|
|
5055
|
-
var stripeAnim = react.keyframes`from{background-position:1rem 0}to{background-position:0 0}`;
|
|
5033
|
+
var stripeAnim = react$1.keyframes`from{background-position:1rem 0}to{background-position:0 0}`;
|
|
5056
5034
|
function getFillColor(variant, theme) {
|
|
5057
5035
|
switch (variant) {
|
|
5058
5036
|
case "success":
|
|
@@ -5210,7 +5188,7 @@ function ProgressCircle({
|
|
|
5210
5188
|
children,
|
|
5211
5189
|
...props
|
|
5212
5190
|
}) {
|
|
5213
|
-
const gradientId =
|
|
5191
|
+
const gradientId = react.useId().replace(/:/g, "");
|
|
5214
5192
|
const px = PX_MAP[size];
|
|
5215
5193
|
const stroke = thickness ?? Math.max(3, px * 0.09);
|
|
5216
5194
|
const r = (px - stroke) / 2;
|
|
@@ -5343,7 +5321,7 @@ var StyledBox = styles.styled("div")(
|
|
|
5343
5321
|
return css;
|
|
5344
5322
|
}
|
|
5345
5323
|
);
|
|
5346
|
-
var Box2 =
|
|
5324
|
+
var Box2 = react.forwardRef(
|
|
5347
5325
|
({ direction = "row", wrap = "nowrap", gap = 0, cols, rows, children, ...rest }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
5348
5326
|
StyledBox,
|
|
5349
5327
|
{
|
|
@@ -5380,7 +5358,7 @@ var StyledContainer = styles.styled("div")(({ theme, $maxWidth }) => ({
|
|
|
5380
5358
|
paddingRight: "2rem"
|
|
5381
5359
|
}
|
|
5382
5360
|
}));
|
|
5383
|
-
var Container =
|
|
5361
|
+
var Container = react.forwardRef(
|
|
5384
5362
|
({ maxWidth = "xl", children, ...rest }, ref) => /* @__PURE__ */ jsxRuntime.jsx(StyledContainer, { ref, $maxWidth: maxWidth, ...rest, children })
|
|
5385
5363
|
);
|
|
5386
5364
|
Container.displayName = "Container";
|
|
@@ -5392,8 +5370,11 @@ var StyledSection = styles.styled("section")(({ theme }) => ({
|
|
|
5392
5370
|
paddingBottom: "3rem"
|
|
5393
5371
|
}
|
|
5394
5372
|
}));
|
|
5395
|
-
var Section =
|
|
5373
|
+
var Section = react.forwardRef(({ children, ...rest }, ref) => /* @__PURE__ */ jsxRuntime.jsx(StyledSection, { ref, ...rest, children }));
|
|
5396
5374
|
Section.displayName = "Section";
|
|
5375
|
+
var StyledMain = styles.styled("main")({});
|
|
5376
|
+
var Main = react.forwardRef(({ children, ...rest }, ref) => /* @__PURE__ */ jsxRuntime.jsx(StyledMain, { ref, ...rest, children }));
|
|
5377
|
+
Main.displayName = "Main";
|
|
5397
5378
|
var getTypographyStyles = (theme) => ({
|
|
5398
5379
|
fontFamily: theme.typography.fontFamily,
|
|
5399
5380
|
"& h1": { fontSize: "2.25rem", fontWeight: 500, letterSpacing: "-0.025em" },
|
|
@@ -5549,16 +5530,11 @@ var getHeaderSpacingStyles = () => ({
|
|
|
5549
5530
|
var spacingStyles = {
|
|
5550
5531
|
"& > * + *": { marginTop: "1.5rem" }
|
|
5551
5532
|
};
|
|
5552
|
-
var StyledMain = styles.styled("main")(({ theme }) => ({
|
|
5553
|
-
...getTypographyStyles(theme)
|
|
5554
|
-
}));
|
|
5555
|
-
var Main = React.forwardRef(({ children, ...rest }, ref) => /* @__PURE__ */ jsxRuntime.jsx(StyledMain, { ref, ...rest, children }));
|
|
5556
|
-
Main.displayName = "Main";
|
|
5557
5533
|
var StyledProse = styles.styled("div")(({ theme }) => ({
|
|
5558
5534
|
...getTypographyStyles(theme),
|
|
5559
5535
|
...spacingStyles
|
|
5560
5536
|
}));
|
|
5561
|
-
var Prose =
|
|
5537
|
+
var Prose = react.forwardRef(({ children, ...rest }, ref) => /* @__PURE__ */ jsxRuntime.jsx(StyledProse, { ref, ...rest, children }));
|
|
5562
5538
|
Prose.displayName = "Prose";
|
|
5563
5539
|
var StyledArticle = styles.styled("article")(({ theme }) => ({
|
|
5564
5540
|
maxWidth: "56rem",
|
|
@@ -5568,7 +5544,7 @@ var StyledArticle = styles.styled("article")(({ theme }) => ({
|
|
|
5568
5544
|
...getHeaderSpacingStyles(),
|
|
5569
5545
|
...spacingStyles
|
|
5570
5546
|
}));
|
|
5571
|
-
var Article =
|
|
5547
|
+
var Article = react.forwardRef(({ children, ...rest }, ref) => /* @__PURE__ */ jsxRuntime.jsx(StyledArticle, { ref, ...rest, children }));
|
|
5572
5548
|
Article.displayName = "Article";
|
|
5573
5549
|
var sizeMap4 = {
|
|
5574
5550
|
sm: "1rem",
|
|
@@ -5606,7 +5582,7 @@ var Meta = styles.styled("span")(({ theme }) => ({
|
|
|
5606
5582
|
fontSize: "0.875rem",
|
|
5607
5583
|
color: theme.palette.text.secondary
|
|
5608
5584
|
}));
|
|
5609
|
-
var Rating =
|
|
5585
|
+
var Rating = react.forwardRef(
|
|
5610
5586
|
({ value, max = 5, readonly = true, size = "md", label, count, onChange, ...props }, ref) => {
|
|
5611
5587
|
const roundedValue = Math.round(value);
|
|
5612
5588
|
const meta = label ?? (count !== void 0 ? `(${count})` : void 0);
|
|
@@ -5662,7 +5638,7 @@ var Root13 = styles.styled("div")({
|
|
|
5662
5638
|
objectFit: "cover"
|
|
5663
5639
|
}
|
|
5664
5640
|
});
|
|
5665
|
-
var AspectRatio =
|
|
5641
|
+
var AspectRatio = react.forwardRef(
|
|
5666
5642
|
({ ratio = "16/9", children, style, ...props }, ref) => {
|
|
5667
5643
|
const numericRatio = typeof ratio === "string" ? PRESET_MAP[ratio] ?? 16 / 9 : ratio;
|
|
5668
5644
|
const paddingBottom = `${1 / numericRatio * 100}%`;
|
|
@@ -5744,7 +5720,7 @@ function formatPrice(amount, currency, locale) {
|
|
|
5744
5720
|
function calcDiscount(price, original) {
|
|
5745
5721
|
return Math.round((1 - price / original) * 100);
|
|
5746
5722
|
}
|
|
5747
|
-
var Price =
|
|
5723
|
+
var Price = react.forwardRef(
|
|
5748
5724
|
({
|
|
5749
5725
|
price,
|
|
5750
5726
|
originalPrice,
|
|
@@ -5836,7 +5812,7 @@ var Footer = styles.styled("div")({
|
|
|
5836
5812
|
marginTop: "auto",
|
|
5837
5813
|
paddingTop: "1rem"
|
|
5838
5814
|
});
|
|
5839
|
-
var ProductCard =
|
|
5815
|
+
var ProductCard = react.forwardRef(
|
|
5840
5816
|
({
|
|
5841
5817
|
name,
|
|
5842
5818
|
imageUrl,
|
|
@@ -5917,7 +5893,7 @@ var PostCardImage = ({
|
|
|
5917
5893
|
className,
|
|
5918
5894
|
style
|
|
5919
5895
|
}) => {
|
|
5920
|
-
const [imgError, setImgError] =
|
|
5896
|
+
const [imgError, setImgError] = react.useState(false);
|
|
5921
5897
|
const showPlaceholder = !src || imgError;
|
|
5922
5898
|
return /* @__PURE__ */ jsxRuntime.jsxs(ImageWrapper, { $ar: toAspectRatioCss(aspectRatio), className, style, children: [
|
|
5923
5899
|
showPlaceholder ? /* @__PURE__ */ jsxRuntime.jsx(Placeholder2, { children: /* @__PURE__ */ jsxRuntime.jsx(FileTextIcon, {}) }) : /* @__PURE__ */ jsxRuntime.jsx(Img, { src, alt, onError: () => setImgError(true) }),
|
|
@@ -6080,7 +6056,7 @@ var FeaturedImageWrapper = styles.styled("div")({
|
|
|
6080
6056
|
aspectRatio: "auto"
|
|
6081
6057
|
}
|
|
6082
6058
|
});
|
|
6083
|
-
var PostCard =
|
|
6059
|
+
var PostCard = react.forwardRef(
|
|
6084
6060
|
({
|
|
6085
6061
|
title,
|
|
6086
6062
|
excerpt,
|
|
@@ -6231,7 +6207,7 @@ function CheckIcon3() {
|
|
|
6231
6207
|
function XIcon3() {
|
|
6232
6208
|
return /* @__PURE__ */ jsxRuntime.jsx(HighlightOffIcon__default.default, { "aria-hidden": "true", style: { fontSize: 16, flexShrink: 0 } });
|
|
6233
6209
|
}
|
|
6234
|
-
var PricingCard =
|
|
6210
|
+
var PricingCard = react.forwardRef(
|
|
6235
6211
|
({
|
|
6236
6212
|
name,
|
|
6237
6213
|
price,
|
|
@@ -6305,7 +6281,7 @@ var Description3 = styles.styled("p")(({ theme }) => ({
|
|
|
6305
6281
|
color: theme.palette.text.secondary,
|
|
6306
6282
|
lineHeight: 1.5
|
|
6307
6283
|
}));
|
|
6308
|
-
var StatCard =
|
|
6284
|
+
var StatCard = react.forwardRef(
|
|
6309
6285
|
({ stat, cardVariant = "default", align = "center", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root17, { ref, variant: cardVariant, padding: "lg", rounded: "lg", $align: align, ...props, children: [
|
|
6310
6286
|
/* @__PURE__ */ jsxRuntime.jsx(Value, { children: stat.value }),
|
|
6311
6287
|
/* @__PURE__ */ jsxRuntime.jsx(Label3, { children: stat.label }),
|
|
@@ -6367,7 +6343,7 @@ var AuthorRole = styles.styled("p")(({ theme }) => ({
|
|
|
6367
6343
|
fontSize: "0.8125rem",
|
|
6368
6344
|
color: theme.palette.text.secondary
|
|
6369
6345
|
}));
|
|
6370
|
-
var TestimonialCard =
|
|
6346
|
+
var TestimonialCard = react.forwardRef(
|
|
6371
6347
|
({ testimonial, cardVariant = "default", ...props }, ref) => {
|
|
6372
6348
|
const initials = testimonial.authorInitials ?? testimonial.authorName.split(" ").filter(Boolean).slice(0, 2).map((p) => p[0]).join("").toUpperCase();
|
|
6373
6349
|
return /* @__PURE__ */ jsxRuntime.jsxs(Root18, { ref, variant: cardVariant, padding: "lg", rounded: "lg", ...props, children: [
|
|
@@ -6427,7 +6403,7 @@ function getInitials(member) {
|
|
|
6427
6403
|
}
|
|
6428
6404
|
return member.name.split(" ").filter(Boolean).slice(0, 2).map((part) => part[0]).join("").toUpperCase();
|
|
6429
6405
|
}
|
|
6430
|
-
var TeamMemberCard =
|
|
6406
|
+
var TeamMemberCard = react.forwardRef(
|
|
6431
6407
|
({ member, cardVariant = "default", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root19, { ref, variant: cardVariant, padding: "lg", rounded: "lg", ...props, children: [
|
|
6432
6408
|
member.avatarUrl ? /* @__PURE__ */ jsxRuntime.jsx(AvatarImage2, { src: member.avatarUrl, alt: member.avatarAlt ?? member.name }) : /* @__PURE__ */ jsxRuntime.jsx(Avatar, { initials: getInitials(member), size: "xl", color: member.avatarColor ?? "primary" }),
|
|
6433
6409
|
/* @__PURE__ */ jsxRuntime.jsxs(Content, { children: [
|
|
@@ -6746,7 +6722,7 @@ function CouponInput({
|
|
|
6746
6722
|
successMessage,
|
|
6747
6723
|
className
|
|
6748
6724
|
}) {
|
|
6749
|
-
const id =
|
|
6725
|
+
const id = react.useId();
|
|
6750
6726
|
const errorId = `${id}-error`;
|
|
6751
6727
|
const successId = `${id}-success`;
|
|
6752
6728
|
const isDisabled = disabled || loading;
|
|
@@ -6834,9 +6810,9 @@ var ThumbnailButton = styles.styled("button")(({ theme, $active }) => ({
|
|
|
6834
6810
|
var ThumbnailImage = styles.styled("img")({
|
|
6835
6811
|
objectFit: "cover"
|
|
6836
6812
|
});
|
|
6837
|
-
var ProductGallery =
|
|
6813
|
+
var ProductGallery = react.forwardRef(
|
|
6838
6814
|
({ images, selectedIndex, onSelect, ...props }, ref) => {
|
|
6839
|
-
const [internalIndex, setInternalIndex] =
|
|
6815
|
+
const [internalIndex, setInternalIndex] = react.useState(0);
|
|
6840
6816
|
const activeIndex = selectedIndex ?? internalIndex;
|
|
6841
6817
|
const activeImage = images[activeIndex] ?? images[0];
|
|
6842
6818
|
const handleSelect = (index) => {
|
|
@@ -6883,7 +6859,7 @@ var Link = styles.styled("a")(({ theme }) => ({
|
|
|
6883
6859
|
textDecoration: "underline",
|
|
6884
6860
|
textUnderlineOffset: "0.2em"
|
|
6885
6861
|
}));
|
|
6886
|
-
var PromoStrip =
|
|
6862
|
+
var PromoStrip = react.forwardRef(
|
|
6887
6863
|
({ message, actionLabel, href, variant = "info", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root22, { ref, $variant: variant, ...props, children: [
|
|
6888
6864
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: message }),
|
|
6889
6865
|
actionLabel && href && /* @__PURE__ */ jsxRuntime.jsx(Link, { href, children: actionLabel })
|
|
@@ -6923,7 +6899,7 @@ var Value2 = styles.styled("span")(({ theme }) => ({
|
|
|
6923
6899
|
borderRight: `1px solid ${theme.palette.divider}`,
|
|
6924
6900
|
fontWeight: 600
|
|
6925
6901
|
}));
|
|
6926
|
-
var QuantitySelector =
|
|
6902
|
+
var QuantitySelector = react.forwardRef(
|
|
6927
6903
|
({ value, min = 1, max = 99, step = 1, disabled = false, onChange, ...props }, ref) => {
|
|
6928
6904
|
const decrease = Math.max(min, value - step);
|
|
6929
6905
|
const increase = Math.min(max, value + step);
|
|
@@ -7011,7 +6987,7 @@ var Dot2 = styles.styled("span", {
|
|
|
7011
6987
|
flexShrink: 0
|
|
7012
6988
|
};
|
|
7013
6989
|
});
|
|
7014
|
-
var StockStatus =
|
|
6990
|
+
var StockStatus = react.forwardRef(
|
|
7015
6991
|
({ status, count, label, showIcon = true, size = "md", ...props }, ref) => {
|
|
7016
6992
|
const color = COLOR_MAP[status];
|
|
7017
6993
|
const text = label ?? getDefaultLabel(status, count);
|
|
@@ -7074,9 +7050,9 @@ var PanelInner = styles.styled("p")(({ theme }) => ({
|
|
|
7074
7050
|
fontSize: "0.9375rem",
|
|
7075
7051
|
lineHeight: 1.7
|
|
7076
7052
|
}));
|
|
7077
|
-
var FaqItem =
|
|
7053
|
+
var FaqItem = react.forwardRef(
|
|
7078
7054
|
({ item, defaultOpen = false, ...props }, ref) => {
|
|
7079
|
-
const [open, setOpen] =
|
|
7055
|
+
const [open, setOpen] = react.useState(defaultOpen);
|
|
7080
7056
|
return /* @__PURE__ */ jsxRuntime.jsxs(Root25, { ref, ...props, children: [
|
|
7081
7057
|
/* @__PURE__ */ jsxRuntime.jsxs(Trigger2, { type: "button", "aria-expanded": open, onClick: () => setOpen((prev) => !prev), children: [
|
|
7082
7058
|
item.question,
|
|
@@ -7132,7 +7108,7 @@ var Description4 = styles.styled("p")(({ theme }) => ({
|
|
|
7132
7108
|
color: theme.palette.text.secondary,
|
|
7133
7109
|
lineHeight: 1.6
|
|
7134
7110
|
}));
|
|
7135
|
-
var FeatureItem2 =
|
|
7111
|
+
var FeatureItem2 = react.forwardRef(
|
|
7136
7112
|
({ feature, cardVariant = "default", layout = "card", ...props }, ref) => {
|
|
7137
7113
|
if (layout === "icon-left") {
|
|
7138
7114
|
return /* @__PURE__ */ jsxRuntime.jsxs(IconLeftRoot, { ref, ...props, children: [
|
|
@@ -7200,7 +7176,7 @@ var Description5 = styles.styled("p")(({ theme }) => ({
|
|
|
7200
7176
|
lineHeight: 1.6,
|
|
7201
7177
|
maxWidth: "18rem"
|
|
7202
7178
|
}));
|
|
7203
|
-
var ProcessStep =
|
|
7179
|
+
var ProcessStep = react.forwardRef(
|
|
7204
7180
|
({ step, title, description, icon, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Root26, { ref, ...props, children: [
|
|
7205
7181
|
/* @__PURE__ */ jsxRuntime.jsx(StepBadge, { "aria-hidden": "true", children: icon ? /* @__PURE__ */ jsxRuntime.jsx(IconWrapper2, { children: icon }) : /* @__PURE__ */ jsxRuntime.jsx(StepNumber, { children: step }) }),
|
|
7206
7182
|
/* @__PURE__ */ jsxRuntime.jsx(Title3, { children: title }),
|
|
@@ -7284,7 +7260,7 @@ function renderLogo(logo, monochrome, logoHeight) {
|
|
|
7284
7260
|
}
|
|
7285
7261
|
);
|
|
7286
7262
|
}
|
|
7287
|
-
var LogoTile =
|
|
7263
|
+
var LogoTile = react.forwardRef(
|
|
7288
7264
|
({ logo, variant = "plain", monochrome = true, logoHeight = 40, ...props }, ref) => {
|
|
7289
7265
|
const content = renderLogo(logo, monochrome, logoHeight);
|
|
7290
7266
|
if (logo.href) {
|
|
@@ -7441,7 +7417,7 @@ function TimelineItemComponent({
|
|
|
7441
7417
|
] })
|
|
7442
7418
|
] });
|
|
7443
7419
|
}
|
|
7444
|
-
var Timeline =
|
|
7420
|
+
var Timeline = react.forwardRef(
|
|
7445
7421
|
({ items, variant = "default", align: _align = "left", ...props }, ref) => {
|
|
7446
7422
|
const compact = variant === "compact";
|
|
7447
7423
|
return /* @__PURE__ */ jsxRuntime.jsx(List, { ref, "aria-label": "O\u015B czasu", ...props, children: items.map((item, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -7547,23 +7523,23 @@ function Carousel({
|
|
|
7547
7523
|
loop = true,
|
|
7548
7524
|
className
|
|
7549
7525
|
}) {
|
|
7550
|
-
const [index, setIndex] =
|
|
7551
|
-
const timerRef =
|
|
7526
|
+
const [index, setIndex] = react.useState(0);
|
|
7527
|
+
const timerRef = react.useRef(null);
|
|
7552
7528
|
const count = slides.length;
|
|
7553
|
-
const prev =
|
|
7529
|
+
const prev = react.useCallback(() => {
|
|
7554
7530
|
setIndex((i) => loop ? (i - 1 + count) % count : Math.max(0, i - 1));
|
|
7555
7531
|
}, [count, loop]);
|
|
7556
|
-
const next =
|
|
7532
|
+
const next = react.useCallback(() => {
|
|
7557
7533
|
setIndex((i) => loop ? (i + 1) % count : Math.min(count - 1, i + 1));
|
|
7558
7534
|
}, [count, loop]);
|
|
7559
|
-
|
|
7535
|
+
react.useEffect(() => {
|
|
7560
7536
|
if (!autoPlay) return;
|
|
7561
7537
|
timerRef.current = setInterval(next, autoPlayInterval);
|
|
7562
7538
|
return () => {
|
|
7563
7539
|
if (timerRef.current) clearInterval(timerRef.current);
|
|
7564
7540
|
};
|
|
7565
7541
|
}, [autoPlay, autoPlayInterval, next]);
|
|
7566
|
-
|
|
7542
|
+
react.useEffect(() => {
|
|
7567
7543
|
const handleKey = (e) => {
|
|
7568
7544
|
if (e.key === "ArrowLeft") prev();
|
|
7569
7545
|
if (e.key === "ArrowRight") next();
|
|
@@ -7684,8 +7660,8 @@ function VideoPlayer({
|
|
|
7684
7660
|
}
|
|
7685
7661
|
) }) });
|
|
7686
7662
|
}
|
|
7687
|
-
var fadeIn = react.keyframes`from { opacity: 0; } to { opacity: 1; }`;
|
|
7688
|
-
var zoomIn = react.keyframes`from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); }`;
|
|
7663
|
+
var fadeIn = react$1.keyframes`from { opacity: 0; } to { opacity: 1; }`;
|
|
7664
|
+
var zoomIn = react$1.keyframes`from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); }`;
|
|
7689
7665
|
var Grid = styles.styled("div", {
|
|
7690
7666
|
shouldForwardProp: (prop) => !["$columns", "$gap"].includes(prop)
|
|
7691
7667
|
})(({ $columns, $gap }) => ({
|
|
@@ -7828,19 +7804,19 @@ var Counter = styles.styled("span")({
|
|
|
7828
7804
|
pointerEvents: "none"
|
|
7829
7805
|
});
|
|
7830
7806
|
function Lightbox({ images, columns = 3, gap = 8, className }) {
|
|
7831
|
-
const [activeIndex, setActiveIndex] =
|
|
7807
|
+
const [activeIndex, setActiveIndex] = react.useState(null);
|
|
7832
7808
|
const isOpen = activeIndex !== null;
|
|
7833
7809
|
const count = images.length;
|
|
7834
|
-
const close =
|
|
7835
|
-
const prev =
|
|
7810
|
+
const close = react.useCallback(() => setActiveIndex(null), []);
|
|
7811
|
+
const prev = react.useCallback(
|
|
7836
7812
|
() => setActiveIndex((i) => i === null ? null : (i - 1 + count) % count),
|
|
7837
7813
|
[count]
|
|
7838
7814
|
);
|
|
7839
|
-
const next =
|
|
7815
|
+
const next = react.useCallback(
|
|
7840
7816
|
() => setActiveIndex((i) => i === null ? null : (i + 1) % count),
|
|
7841
7817
|
[count]
|
|
7842
7818
|
);
|
|
7843
|
-
|
|
7819
|
+
react.useEffect(() => {
|
|
7844
7820
|
if (!isOpen) return;
|
|
7845
7821
|
const handler = (e) => {
|
|
7846
7822
|
if (e.key === "Escape") close();
|
|
@@ -7944,7 +7920,7 @@ var Current2 = styles.styled("span")(({ theme }) => ({
|
|
|
7944
7920
|
var Separator2 = styles.styled("span")(({ theme }) => ({
|
|
7945
7921
|
color: theme.palette.text.disabled
|
|
7946
7922
|
}));
|
|
7947
|
-
var Breadcrumbs =
|
|
7923
|
+
var Breadcrumbs = react.forwardRef(
|
|
7948
7924
|
({ items, separator = "/", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(Nav, { ref, "aria-label": "\u015Acie\u017Cka nawigacji", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(List2, { children: items.map((item, index) => {
|
|
7949
7925
|
const isLast = index === items.length - 1;
|
|
7950
7926
|
return /* @__PURE__ */ jsxRuntime.jsxs("li", { children: [
|
|
@@ -7998,7 +7974,7 @@ var StyledButton2 = styles.styled("button")(({ theme, $isActive, $size }) => ({
|
|
|
7998
7974
|
pointerEvents: "none"
|
|
7999
7975
|
}
|
|
8000
7976
|
}));
|
|
8001
|
-
var PaginationButton =
|
|
7977
|
+
var PaginationButton = react.forwardRef(
|
|
8002
7978
|
({ onClick, isActive = false, disabled = false, size = "md", children, "aria-label": ariaLabel }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
8003
7979
|
StyledButton2,
|
|
8004
7980
|
{
|
|
@@ -8222,7 +8198,7 @@ var PanelContent = styles.styled("div")(({ theme }) => ({
|
|
|
8222
8198
|
fontSize: "0.9375rem",
|
|
8223
8199
|
lineHeight: 1.7
|
|
8224
8200
|
}));
|
|
8225
|
-
var Accordion =
|
|
8201
|
+
var Accordion = react.forwardRef(
|
|
8226
8202
|
({
|
|
8227
8203
|
items,
|
|
8228
8204
|
defaultOpenKeys = [],
|
|
@@ -8232,7 +8208,7 @@ var Accordion = React.forwardRef(
|
|
|
8232
8208
|
variant = "default",
|
|
8233
8209
|
...props
|
|
8234
8210
|
}, ref) => {
|
|
8235
|
-
const [internalKeys, setInternalKeys] =
|
|
8211
|
+
const [internalKeys, setInternalKeys] = react.useState(defaultOpenKeys);
|
|
8236
8212
|
const openKeys = controlledKeys ?? internalKeys;
|
|
8237
8213
|
const toggle = (key, disabled) => {
|
|
8238
8214
|
if (disabled) return;
|
|
@@ -8275,8 +8251,8 @@ var Accordion = React.forwardRef(
|
|
|
8275
8251
|
);
|
|
8276
8252
|
Accordion.displayName = "Accordion";
|
|
8277
8253
|
var accordionVariants = ["default", "bordered", "separated"];
|
|
8278
|
-
var fadeIn2 = react.keyframes`from{opacity:0;transform:translateY(0.5rem)}to{opacity:1;transform:translateY(0)}`;
|
|
8279
|
-
var fadeOut = react.keyframes`from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(0.5rem)}`;
|
|
8254
|
+
var fadeIn2 = react$1.keyframes`from{opacity:0;transform:translateY(0.5rem)}to{opacity:1;transform:translateY(0)}`;
|
|
8255
|
+
var fadeOut = react$1.keyframes`from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(0.5rem)}`;
|
|
8280
8256
|
var POSITION_MAP = {
|
|
8281
8257
|
"bottom-right": { right: "1.5rem", bottom: "1.5rem" },
|
|
8282
8258
|
"bottom-left": { left: "1.5rem", bottom: "1.5rem" },
|
|
@@ -8336,9 +8312,9 @@ function BackToTop({
|
|
|
8336
8312
|
label = "Wr\xF3\u0107 na g\xF3r\u0119",
|
|
8337
8313
|
scrollTarget
|
|
8338
8314
|
}) {
|
|
8339
|
-
const [visible, setVisible] =
|
|
8340
|
-
const getTarget =
|
|
8341
|
-
|
|
8315
|
+
const [visible, setVisible] = react.useState(false);
|
|
8316
|
+
const getTarget = react.useCallback(() => scrollTarget ? scrollTarget() : window, [scrollTarget]);
|
|
8317
|
+
react.useEffect(() => {
|
|
8342
8318
|
const target = getTarget();
|
|
8343
8319
|
const onScroll = () => {
|
|
8344
8320
|
const scrollY = target instanceof Window ? target.scrollY : target.scrollTop;
|
|
@@ -8436,12 +8412,12 @@ function clampToViewport(x, y, el) {
|
|
|
8436
8412
|
y: Math.min(y, window.innerHeight - h - MENU_MARGIN)
|
|
8437
8413
|
};
|
|
8438
8414
|
}
|
|
8439
|
-
var ContextMenu =
|
|
8415
|
+
var ContextMenu = react.forwardRef(
|
|
8440
8416
|
({ items, children, disabled = false, ...props }, ref) => {
|
|
8441
|
-
const [pos, setPos] =
|
|
8442
|
-
const menuRef =
|
|
8443
|
-
const close =
|
|
8444
|
-
const handleContextMenu =
|
|
8417
|
+
const [pos, setPos] = react.useState(null);
|
|
8418
|
+
const menuRef = react.useRef(null);
|
|
8419
|
+
const close = react.useCallback(() => setPos(null), []);
|
|
8420
|
+
const handleContextMenu = react.useCallback(
|
|
8445
8421
|
(e) => {
|
|
8446
8422
|
if (disabled) return;
|
|
8447
8423
|
e.preventDefault();
|
|
@@ -8449,7 +8425,7 @@ var ContextMenu = React.forwardRef(
|
|
|
8449
8425
|
},
|
|
8450
8426
|
[disabled]
|
|
8451
8427
|
);
|
|
8452
|
-
|
|
8428
|
+
react.useEffect(() => {
|
|
8453
8429
|
if (!pos) return;
|
|
8454
8430
|
if (menuRef.current) {
|
|
8455
8431
|
const clamped = clampToViewport(pos.x, pos.y, menuRef.current);
|
|
@@ -8616,7 +8592,7 @@ var SuffixWrap = styles.styled("span")({
|
|
|
8616
8592
|
display: "flex",
|
|
8617
8593
|
alignItems: "center"
|
|
8618
8594
|
});
|
|
8619
|
-
var List3 =
|
|
8595
|
+
var List3 = react.forwardRef(
|
|
8620
8596
|
({ items, size = "md", variant = "default", dividers = true, ...props }, ref) => {
|
|
8621
8597
|
const effectiveVariant = !dividers && variant === "default" ? "default" : variant;
|
|
8622
8598
|
return /* @__PURE__ */ jsxRuntime.jsx(Root29, { ref, $variant: effectiveVariant, role: "list", ...props, children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -8682,7 +8658,7 @@ var ItemWrap = styles.styled("div", {
|
|
|
8682
8658
|
flexShrink: 0,
|
|
8683
8659
|
gap: $gap
|
|
8684
8660
|
}));
|
|
8685
|
-
var Marquee =
|
|
8661
|
+
var Marquee = react.forwardRef(
|
|
8686
8662
|
({ children, direction = "left", speed = "normal", pauseOnHover = true, gap = "2rem", ...props }, ref) => {
|
|
8687
8663
|
const gapValue = typeof gap === "number" ? `${gap}px` : gap;
|
|
8688
8664
|
const content = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -8695,8 +8671,8 @@ var Marquee = React.forwardRef(
|
|
|
8695
8671
|
Marquee.displayName = "Marquee";
|
|
8696
8672
|
var marqueeDirections = ["left", "right"];
|
|
8697
8673
|
var marqueeSpeeds = ["slow", "normal", "fast"];
|
|
8698
|
-
var fadeIn3 = react.keyframes`from { opacity: 0; } to { opacity: 1; }`;
|
|
8699
|
-
var slideUp = react.keyframes`from { opacity: 0; transform: translateY(1rem) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); }`;
|
|
8674
|
+
var fadeIn3 = react$1.keyframes`from { opacity: 0; } to { opacity: 1; }`;
|
|
8675
|
+
var slideUp = react$1.keyframes`from { opacity: 0; transform: translateY(1rem) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); }`;
|
|
8700
8676
|
var SIZE_MAP2 = {
|
|
8701
8677
|
sm: "24rem",
|
|
8702
8678
|
md: "32rem",
|
|
@@ -8799,8 +8775,8 @@ function Modal({
|
|
|
8799
8775
|
closeOnBackdrop = true,
|
|
8800
8776
|
hideCloseButton = false
|
|
8801
8777
|
}) {
|
|
8802
|
-
const dialogRef =
|
|
8803
|
-
|
|
8778
|
+
const dialogRef = react.useRef(null);
|
|
8779
|
+
react.useEffect(() => {
|
|
8804
8780
|
if (!open) return;
|
|
8805
8781
|
const prev = document.body.style.overflow;
|
|
8806
8782
|
document.body.style.overflow = "hidden";
|
|
@@ -8808,7 +8784,7 @@ function Modal({
|
|
|
8808
8784
|
document.body.style.overflow = prev;
|
|
8809
8785
|
};
|
|
8810
8786
|
}, [open]);
|
|
8811
|
-
|
|
8787
|
+
react.useEffect(() => {
|
|
8812
8788
|
if (!open) return;
|
|
8813
8789
|
const handleKey = (e) => {
|
|
8814
8790
|
if (e.key === "Escape") onClose();
|
|
@@ -8816,7 +8792,7 @@ function Modal({
|
|
|
8816
8792
|
document.addEventListener("keydown", handleKey);
|
|
8817
8793
|
return () => document.removeEventListener("keydown", handleKey);
|
|
8818
8794
|
}, [open, onClose]);
|
|
8819
|
-
|
|
8795
|
+
react.useEffect(() => {
|
|
8820
8796
|
if (open) dialogRef.current?.focus();
|
|
8821
8797
|
}, [open]);
|
|
8822
8798
|
if (!open) return null;
|
|
@@ -8916,9 +8892,9 @@ var Panel2 = styles.styled("div")(({ theme }) => ({
|
|
|
8916
8892
|
fontFamily: theme.typography.fontFamily,
|
|
8917
8893
|
color: theme.palette.text.primary
|
|
8918
8894
|
}));
|
|
8919
|
-
var Tabs =
|
|
8895
|
+
var Tabs = react.forwardRef(
|
|
8920
8896
|
({ tabs, defaultActiveKey, activeKey: controlledKey, onChange, variant = "underline", ...props }, ref) => {
|
|
8921
|
-
const [internalKey, setInternalKey] =
|
|
8897
|
+
const [internalKey, setInternalKey] = react.useState(defaultActiveKey ?? tabs[0]?.key ?? "");
|
|
8922
8898
|
const activeKey = controlledKey ?? internalKey;
|
|
8923
8899
|
const handleSelect = (key) => {
|
|
8924
8900
|
if (controlledKey === void 0) setInternalKey(key);
|
|
@@ -9053,7 +9029,7 @@ var Footer4 = styles.styled("div")(({ theme }) => ({
|
|
|
9053
9029
|
padding: "1rem 1.25rem",
|
|
9054
9030
|
borderTop: `1px solid ${theme.palette.divider}`
|
|
9055
9031
|
}));
|
|
9056
|
-
var CartDrawer =
|
|
9032
|
+
var CartDrawer = react.forwardRef(
|
|
9057
9033
|
({
|
|
9058
9034
|
open,
|
|
9059
9035
|
title = "Koszyk",
|
|
@@ -9178,7 +9154,7 @@ function renderOptions(options, selected, onToggle) {
|
|
|
9178
9154
|
option.count !== void 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { children: option.count })
|
|
9179
9155
|
] }, option.value));
|
|
9180
9156
|
}
|
|
9181
|
-
var FilterSidebar =
|
|
9157
|
+
var FilterSidebar = react.forwardRef(
|
|
9182
9158
|
({
|
|
9183
9159
|
categories = [],
|
|
9184
9160
|
colors = [],
|
|
@@ -9322,7 +9298,7 @@ var TotalRow = styles.styled(Row5)(({ theme }) => ({
|
|
|
9322
9298
|
fontSize: "1rem",
|
|
9323
9299
|
fontWeight: 800
|
|
9324
9300
|
}));
|
|
9325
|
-
var OrderSummary =
|
|
9301
|
+
var OrderSummary = react.forwardRef(
|
|
9326
9302
|
({
|
|
9327
9303
|
title = "Podsumowanie zam\xF3wienia",
|
|
9328
9304
|
items = [],
|
|
@@ -9391,7 +9367,7 @@ OrderSummary.displayName = "OrderSummary";
|
|
|
9391
9367
|
var List4 = styles.styled("div")(({ $hasHeading }) => ({
|
|
9392
9368
|
marginTop: $hasHeading ? "2.5rem" : 0
|
|
9393
9369
|
}));
|
|
9394
|
-
var FaqSection =
|
|
9370
|
+
var FaqSection = react.forwardRef(
|
|
9395
9371
|
({
|
|
9396
9372
|
title = "Najcz\u0119\u015Bciej zadawane pytania",
|
|
9397
9373
|
description,
|
|
@@ -9430,7 +9406,7 @@ var Grid2 = styles.styled("div", {
|
|
|
9430
9406
|
gridTemplateColumns: `repeat(${$columns}, minmax(0, 1fr))`
|
|
9431
9407
|
}
|
|
9432
9408
|
}));
|
|
9433
|
-
var FeatureGrid =
|
|
9409
|
+
var FeatureGrid = react.forwardRef(
|
|
9434
9410
|
({
|
|
9435
9411
|
title,
|
|
9436
9412
|
description,
|
|
@@ -9474,7 +9450,7 @@ var Grid3 = styles.styled("div", {
|
|
|
9474
9450
|
gridTemplateColumns: `repeat(${$columns}, minmax(0, 1fr))`
|
|
9475
9451
|
}
|
|
9476
9452
|
}));
|
|
9477
|
-
var LogoCloud =
|
|
9453
|
+
var LogoCloud = react.forwardRef(
|
|
9478
9454
|
({
|
|
9479
9455
|
title = "Zaufali nam",
|
|
9480
9456
|
description,
|
|
@@ -9575,7 +9551,7 @@ var SuccessMessage = styles.styled("p")(({ theme }) => ({
|
|
|
9575
9551
|
fontFamily: theme.typography.fontFamily,
|
|
9576
9552
|
textAlign: "center"
|
|
9577
9553
|
}));
|
|
9578
|
-
var NewsletterSection =
|
|
9554
|
+
var NewsletterSection = react.forwardRef(
|
|
9579
9555
|
({
|
|
9580
9556
|
title = "B\u0105d\u017A na bie\u017C\u0105co",
|
|
9581
9557
|
description = "Zapisz si\u0119 do newslettera i otrzymuj najnowsze informacje prosto na swoj\u0105 skrzynk\u0119.",
|
|
@@ -9590,8 +9566,8 @@ var NewsletterSection = React.forwardRef(
|
|
|
9590
9566
|
onSubmit,
|
|
9591
9567
|
...rest
|
|
9592
9568
|
}, ref) => {
|
|
9593
|
-
const [email, setEmail] =
|
|
9594
|
-
const [submitted, setSubmitted] =
|
|
9569
|
+
const [email, setEmail] = react.useState("");
|
|
9570
|
+
const [submitted, setSubmitted] = react.useState(false);
|
|
9595
9571
|
const handleSubmit = (e) => {
|
|
9596
9572
|
e.preventDefault();
|
|
9597
9573
|
if (!email) return;
|
|
@@ -9708,7 +9684,7 @@ function ArrowIcon() {
|
|
|
9708
9684
|
function ProcessSection({ title, description, steps, ...props }) {
|
|
9709
9685
|
return /* @__PURE__ */ jsxRuntime.jsx(Section3, { ...props, children: /* @__PURE__ */ jsxRuntime.jsxs(Inner2, { children: [
|
|
9710
9686
|
(title || description) && /* @__PURE__ */ jsxRuntime.jsx(SectionHeading, { title: title ?? "", description, align: "center" }),
|
|
9711
|
-
/* @__PURE__ */ jsxRuntime.jsx(StepsRow, { children: steps.map((step, i) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9687
|
+
/* @__PURE__ */ jsxRuntime.jsx(StepsRow, { children: steps.map((step, i) => /* @__PURE__ */ jsxRuntime.jsxs(react.Fragment, { children: [
|
|
9712
9688
|
/* @__PURE__ */ jsxRuntime.jsx(StepWrapper, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9713
9689
|
ProcessStep,
|
|
9714
9690
|
{
|
|
@@ -9736,7 +9712,7 @@ var Grid5 = styles.styled("div", {
|
|
|
9736
9712
|
gridTemplateColumns: `repeat(${$columns}, minmax(0, 1fr))`
|
|
9737
9713
|
}
|
|
9738
9714
|
}));
|
|
9739
|
-
var StatsSection =
|
|
9715
|
+
var StatsSection = react.forwardRef(
|
|
9740
9716
|
({
|
|
9741
9717
|
title,
|
|
9742
9718
|
description,
|
|
@@ -9779,7 +9755,7 @@ var Grid6 = styles.styled("div", {
|
|
|
9779
9755
|
gridTemplateColumns: `repeat(${$columns}, minmax(0, 1fr))`
|
|
9780
9756
|
}
|
|
9781
9757
|
}));
|
|
9782
|
-
var TeamSection =
|
|
9758
|
+
var TeamSection = react.forwardRef(
|
|
9783
9759
|
({
|
|
9784
9760
|
title = "Nasz zesp\xF3\u0142",
|
|
9785
9761
|
description,
|
|
@@ -9821,7 +9797,7 @@ var Grid7 = styles.styled("div", {
|
|
|
9821
9797
|
gridTemplateColumns: `repeat(${$columns}, minmax(0, 1fr))`
|
|
9822
9798
|
}
|
|
9823
9799
|
}));
|
|
9824
|
-
var TestimonialsSection =
|
|
9800
|
+
var TestimonialsSection = react.forwardRef(
|
|
9825
9801
|
({
|
|
9826
9802
|
title = "Co m\xF3wi\u0105 nasi klienci",
|
|
9827
9803
|
description,
|
|
@@ -9848,11 +9824,11 @@ var TestimonialsSection = React.forwardRef(
|
|
|
9848
9824
|
);
|
|
9849
9825
|
TestimonialsSection.displayName = "TestimonialsSection";
|
|
9850
9826
|
var testimonialsSectionColumns = [1, 2, 3];
|
|
9851
|
-
var fadeIn4 = react.keyframes`
|
|
9827
|
+
var fadeIn4 = react$1.keyframes`
|
|
9852
9828
|
from { opacity: 0; }
|
|
9853
9829
|
to { opacity: 1; }
|
|
9854
9830
|
`;
|
|
9855
|
-
var slideDown = react.keyframes`
|
|
9831
|
+
var slideDown = react$1.keyframes`
|
|
9856
9832
|
from { opacity: 0; transform: translateY(-8px) scale(0.98); }
|
|
9857
9833
|
to { opacity: 1; transform: translateY(0) scale(1); }
|
|
9858
9834
|
`;
|
|
@@ -10031,14 +10007,14 @@ function CommandPalette({
|
|
|
10031
10007
|
emptyLabel = "Brak wynik\xF3w dla podanej frazy.",
|
|
10032
10008
|
onSelect
|
|
10033
10009
|
}) {
|
|
10034
|
-
const id =
|
|
10035
|
-
const [query, setQuery] =
|
|
10036
|
-
const [activeIndex, setActiveIndex] =
|
|
10037
|
-
const inputRef =
|
|
10038
|
-
const activeItemRef =
|
|
10010
|
+
const id = react.useId();
|
|
10011
|
+
const [query, setQuery] = react.useState("");
|
|
10012
|
+
const [activeIndex, setActiveIndex] = react.useState(0);
|
|
10013
|
+
const inputRef = react.useRef(null);
|
|
10014
|
+
const activeItemRef = react.useRef(null);
|
|
10039
10015
|
const filtered = filterGroups(groups, query);
|
|
10040
10016
|
const flat = flatItems(filtered);
|
|
10041
|
-
const handleSelect =
|
|
10017
|
+
const handleSelect = react.useCallback(
|
|
10042
10018
|
(item) => {
|
|
10043
10019
|
item.onSelect?.();
|
|
10044
10020
|
onSelect?.(item);
|
|
@@ -10046,20 +10022,20 @@ function CommandPalette({
|
|
|
10046
10022
|
},
|
|
10047
10023
|
[onSelect, onClose]
|
|
10048
10024
|
);
|
|
10049
|
-
|
|
10025
|
+
react.useEffect(() => {
|
|
10050
10026
|
if (open) {
|
|
10051
10027
|
setQuery("");
|
|
10052
10028
|
setActiveIndex(0);
|
|
10053
10029
|
setTimeout(() => inputRef.current?.focus(), 0);
|
|
10054
10030
|
}
|
|
10055
10031
|
}, [open]);
|
|
10056
|
-
|
|
10032
|
+
react.useEffect(() => {
|
|
10057
10033
|
setActiveIndex(0);
|
|
10058
10034
|
}, [query]);
|
|
10059
|
-
|
|
10035
|
+
react.useEffect(() => {
|
|
10060
10036
|
activeItemRef.current?.scrollIntoView?.({ block: "nearest" });
|
|
10061
10037
|
}, [activeIndex]);
|
|
10062
|
-
|
|
10038
|
+
react.useEffect(() => {
|
|
10063
10039
|
const handler = (e) => {
|
|
10064
10040
|
if (!open) return;
|
|
10065
10041
|
if (e.key === "Escape") {
|
|
@@ -10194,7 +10170,7 @@ var DEFAULT_CATEGORIES = [
|
|
|
10194
10170
|
defaultEnabled: false
|
|
10195
10171
|
}
|
|
10196
10172
|
];
|
|
10197
|
-
var slideUp2 = react.keyframes`
|
|
10173
|
+
var slideUp2 = react$1.keyframes`
|
|
10198
10174
|
from { opacity: 0; transform: translateY(100%); }
|
|
10199
10175
|
to { opacity: 1; transform: translateY(0); }
|
|
10200
10176
|
`;
|
|
@@ -10367,9 +10343,9 @@ function CookieConsent({
|
|
|
10367
10343
|
privacyPolicyLabel,
|
|
10368
10344
|
privacyPolicyHref
|
|
10369
10345
|
}) {
|
|
10370
|
-
const id =
|
|
10371
|
-
const [expanded, setExpanded] =
|
|
10372
|
-
const [prefs, setPrefs] =
|
|
10346
|
+
const id = react.useId();
|
|
10347
|
+
const [expanded, setExpanded] = react.useState(false);
|
|
10348
|
+
const [prefs, setPrefs] = react.useState(
|
|
10373
10349
|
() => Object.fromEntries(categories.map((c) => [c.id, c.defaultEnabled ?? false]))
|
|
10374
10350
|
);
|
|
10375
10351
|
if (!open) return null;
|
|
@@ -10725,7 +10701,7 @@ function Navbar({
|
|
|
10725
10701
|
sticky = false,
|
|
10726
10702
|
variant = "filled"
|
|
10727
10703
|
}) {
|
|
10728
|
-
const [mobileOpen, setMobileOpen] =
|
|
10704
|
+
const [mobileOpen, setMobileOpen] = react.useState(false);
|
|
10729
10705
|
return /* @__PURE__ */ jsxRuntime.jsxs(Root35, { $sticky: sticky, $variant: variant, children: [
|
|
10730
10706
|
/* @__PURE__ */ jsxRuntime.jsxs(Inner5, { children: [
|
|
10731
10707
|
logo && /* @__PURE__ */ jsxRuntime.jsx(LogoSlot, { children: logo }),
|
|
@@ -10834,7 +10810,7 @@ var MyThemeProvider = ({
|
|
|
10834
10810
|
disableCssBaseline = false,
|
|
10835
10811
|
children
|
|
10836
10812
|
}) => {
|
|
10837
|
-
const resolvedTheme =
|
|
10813
|
+
const resolvedTheme = react.useMemo(() => {
|
|
10838
10814
|
if (theme) return theme;
|
|
10839
10815
|
switch (mode) {
|
|
10840
10816
|
case "dark":
|
|
@@ -10851,41 +10827,6 @@ var MyThemeProvider = ({
|
|
|
10851
10827
|
children
|
|
10852
10828
|
] });
|
|
10853
10829
|
};
|
|
10854
|
-
function EmotionRegistry({ children }) {
|
|
10855
|
-
const [{ cache, flush }] = React__namespace.useState(() => {
|
|
10856
|
-
const c = createCache__default.default({ key: "css", prepend: true });
|
|
10857
|
-
c.compat = true;
|
|
10858
|
-
const prevInsert = c.insert.bind(c);
|
|
10859
|
-
let inserted = [];
|
|
10860
|
-
c.insert = (...args) => {
|
|
10861
|
-
const serialized = args[1];
|
|
10862
|
-
if (c.inserted[serialized.name] === void 0) {
|
|
10863
|
-
inserted.push(serialized.name);
|
|
10864
|
-
}
|
|
10865
|
-
return prevInsert(...args);
|
|
10866
|
-
};
|
|
10867
|
-
return {
|
|
10868
|
-
cache: c,
|
|
10869
|
-
flush: () => {
|
|
10870
|
-
const s = inserted;
|
|
10871
|
-
inserted = [];
|
|
10872
|
-
return s;
|
|
10873
|
-
}
|
|
10874
|
-
};
|
|
10875
|
-
});
|
|
10876
|
-
navigation.useServerInsertedHTML(() => {
|
|
10877
|
-
const names = flush();
|
|
10878
|
-
if (!names.length) return null;
|
|
10879
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10880
|
-
"style",
|
|
10881
|
-
{
|
|
10882
|
-
"data-emotion": `${cache.key} ${names.join(" ")}`,
|
|
10883
|
-
dangerouslySetInnerHTML: { __html: names.map((n) => cache.inserted[n]).join("") }
|
|
10884
|
-
}
|
|
10885
|
-
);
|
|
10886
|
-
});
|
|
10887
|
-
return /* @__PURE__ */ jsxRuntime.jsx(react.CacheProvider, { value: cache, children });
|
|
10888
|
-
}
|
|
10889
10830
|
|
|
10890
10831
|
exports.Accordion = Accordion;
|
|
10891
10832
|
exports.Article = Article;
|
|
@@ -10911,7 +10852,6 @@ exports.CountryFlag = CountryFlag;
|
|
|
10911
10852
|
exports.CouponInput = CouponInput;
|
|
10912
10853
|
exports.DateTimePicker = DateTimePicker;
|
|
10913
10854
|
exports.EmailInput = EmailInput;
|
|
10914
|
-
exports.EmotionRegistry = EmotionRegistry;
|
|
10915
10855
|
exports.FaqItem = FaqItem;
|
|
10916
10856
|
exports.FaqSection = FaqSection;
|
|
10917
10857
|
exports.FeatureGrid = FeatureGrid;
|