@shopito/design-system-fe 0.1.0 → 0.1.1

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.
Files changed (39) hide show
  1. package/README.md +2 -2
  2. package/dist/common/Alert/Alert.d.ts.map +1 -1
  3. package/dist/common/Avatar/Avatar.d.ts.map +1 -1
  4. package/dist/common/Badge/Badge.d.ts.map +1 -1
  5. package/dist/common/Button/Button.d.ts.map +1 -1
  6. package/dist/common/Checkbox/Checkbox.d.ts.map +1 -1
  7. package/dist/common/IconButton/IconButton.d.ts +13 -0
  8. package/dist/common/IconButton/IconButton.d.ts.map +1 -0
  9. package/dist/common/IconButton/index.d.ts +3 -0
  10. package/dist/common/IconButton/index.d.ts.map +1 -0
  11. package/dist/common/Input/Input.d.ts.map +1 -1
  12. package/dist/common/LoadingSpin/LoadingSpin.d.ts +7 -0
  13. package/dist/common/LoadingSpin/LoadingSpin.d.ts.map +1 -0
  14. package/dist/common/LoadingSpin/index.d.ts +2 -0
  15. package/dist/common/LoadingSpin/index.d.ts.map +1 -0
  16. package/dist/common/Pagination/Pagination.d.ts +1 -1
  17. package/dist/common/Pagination/Pagination.d.ts.map +1 -1
  18. package/dist/common/Select/Select.d.ts.map +1 -1
  19. package/dist/common/Spinner/Spinner.d.ts.map +1 -1
  20. package/dist/common/Stack/Stack.d.ts +11 -0
  21. package/dist/common/Stack/Stack.d.ts.map +1 -0
  22. package/dist/common/Tabs/Tabs.d.ts.map +1 -1
  23. package/dist/common/Toggle/Toggle.d.ts.map +1 -1
  24. package/dist/common/Typography/Heading.d.ts +12 -0
  25. package/dist/common/Typography/Heading.d.ts.map +1 -0
  26. package/dist/common/Typography/Text.d.ts +12 -0
  27. package/dist/common/Typography/Text.d.ts.map +1 -0
  28. package/dist/common/Typography/index.d.ts +2 -1
  29. package/dist/common/Typography/index.d.ts.map +1 -1
  30. package/dist/index.cjs +1 -1
  31. package/dist/index.cjs.map +1 -1
  32. package/dist/index.d.ts +10 -6
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +297 -433
  35. package/dist/index.js.map +1 -1
  36. package/dist/style.css +2 -2
  37. package/package.json +4 -1
  38. package/dist/common/Typography/Typography.d.ts +0 -20
  39. package/dist/common/Typography/Typography.d.ts.map +0 -1
package/dist/index.js CHANGED
@@ -1,30 +1,46 @@
1
1
  import { createContext as e, forwardRef as t, useCallback as n, useContext as r, useEffect as i, useRef as a, useState as o } from "react";
2
2
  import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
3
3
  import { createPortal as u } from "react-dom";
4
- //#region src/components/common/Button/Button.tsx
5
- var d = {
6
- primary: "bg-primary-600 text-white hover:bg-primary-700 active:bg-primary-800 focus-visible:ring-primary-500",
7
- secondary: "bg-gray-100 text-gray-900 hover:bg-gray-200 active:bg-gray-300 focus-visible:ring-gray-400",
8
- outline: "border border-gray-300 bg-white text-gray-700 hover:bg-gray-50 active:bg-gray-100 focus-visible:ring-gray-400",
9
- ghost: "bg-transparent text-gray-700 hover:bg-gray-100 active:bg-gray-200 focus-visible:ring-gray-400",
10
- danger: "bg-danger-600 text-white hover:bg-danger-700 active:bg-danger-800 focus-visible:ring-danger-500"
11
- }, f = {
12
- xs: "h-7 px-2.5 text-xs gap-1",
13
- sm: "h-8 px-3 text-sm gap-1.5",
14
- md: "h-10 px-4 text-sm gap-2",
15
- lg: "h-11 px-5 text-base gap-2"
16
- }, p = t(({ variant: e = "primary", size: t = "md", loading: n = !1, fullWidth: r = !1, disabled: i, children: a, className: o = "", ...s }, u) => /* @__PURE__ */ l("button", {
4
+ //#region \0rolldown/runtime.js
5
+ var d = Object.create, f = Object.defineProperty, p = Object.getOwnPropertyDescriptor, m = Object.getOwnPropertyNames, h = Object.getPrototypeOf, g = Object.prototype.hasOwnProperty, _ = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), v = (e, t, n, r) => {
6
+ if (t && typeof t == "object" || typeof t == "function") for (var i = m(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !g.call(e, s) && s !== n && f(e, s, {
7
+ get: ((e) => t[e]).bind(null, s),
8
+ enumerable: !(r = p(t, s)) || r.enumerable
9
+ });
10
+ return e;
11
+ }, y = /* @__PURE__ */ ((e, t, n) => (n = e == null ? {} : d(h(e)), v(t || !e || !e.__esModule ? f(n, "default", {
12
+ value: e,
13
+ enumerable: !0
14
+ }) : n, e)))((/* @__PURE__ */ _(((e, t) => {
15
+ (function() {
16
+ var e = {}.hasOwnProperty;
17
+ function n() {
18
+ for (var e = "", t = 0; t < arguments.length; t++) {
19
+ var n = arguments[t];
20
+ n && (e = i(e, r(n)));
21
+ }
22
+ return e;
23
+ }
24
+ function r(t) {
25
+ if (typeof t == "string" || typeof t == "number") return t;
26
+ if (typeof t != "object") return "";
27
+ if (Array.isArray(t)) return n.apply(null, t);
28
+ if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]")) return t.toString();
29
+ var r = "";
30
+ for (var a in t) e.call(t, a) && t[a] && (r = i(r, a));
31
+ return r;
32
+ }
33
+ function i(e, t) {
34
+ return t ? e ? e + " " + t : e + t : e;
35
+ }
36
+ t !== void 0 && t.exports ? (n.default = n, t.exports = n) : typeof define == "function" && typeof define.amd == "object" && define.amd ? define("classnames", [], function() {
37
+ return n;
38
+ }) : window.classNames = n;
39
+ })();
40
+ })))(), 1), b = t(({ variant: e = "primary", size: t = "md", loading: n = !1, fullWidth: r = !1, disabled: i, children: a, className: o = "", ...s }, u) => /* @__PURE__ */ l("button", {
17
41
  ref: u,
18
42
  disabled: i || n,
19
- className: [
20
- "inline-flex items-center justify-center rounded-md font-medium transition-colors",
21
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
22
- "disabled:pointer-events-none disabled:opacity-50",
23
- d[e],
24
- f[t],
25
- r ? "w-full" : "",
26
- o
27
- ].filter(Boolean).join(" "),
43
+ className: (0, y.default)("btn", e && `btn-${e}`, t && `btn-${t}`, r && "w-full", o),
28
44
  ...s,
29
45
  children: [n && /* @__PURE__ */ l("svg", {
30
46
  className: "animate-spin h-4 w-4 shrink-0",
@@ -45,66 +61,85 @@ var d = {
45
61
  })]
46
62
  }), a]
47
63
  }));
48
- p.displayName = "Button";
64
+ b.displayName = "Button";
65
+ //#endregion
66
+ //#region src/components/common/LoadingSpin/LoadingSpin.tsx
67
+ var x = ({ size: e = "md" }) => /* @__PURE__ */ l("svg", {
68
+ className: (0, y.default)("loading-spin", `loading-spin-${e}`),
69
+ xmlns: "http://www.w3.org/2000/svg",
70
+ fill: "none",
71
+ viewBox: "0 0 24 24",
72
+ children: [/* @__PURE__ */ c("circle", {
73
+ className: "opacity-25",
74
+ cx: "12",
75
+ cy: "12",
76
+ r: "10",
77
+ stroke: "currentColor",
78
+ strokeWidth: "4"
79
+ }), /* @__PURE__ */ c("path", {
80
+ className: "opacity-75",
81
+ fill: "currentColor",
82
+ d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"
83
+ })]
84
+ }), S = t(({ icon: e, label: t, variant: n = "ghost", size: r = "md", loading: i = !1, disabled: a, className: o = "", ...s }, l) => /* @__PURE__ */ c("button", {
85
+ ref: l,
86
+ disabled: a || i,
87
+ "aria-label": t,
88
+ title: t,
89
+ className: (0, y.default)("icon-button", `icon-button-${n}`, `icon-button-${r}`, o),
90
+ ...s,
91
+ children: i ? /* @__PURE__ */ c(x, { size: r }) : e
92
+ }));
93
+ S.displayName = "IconButton";
49
94
  //#endregion
50
95
  //#region src/components/common/Input/Input.tsx
51
- var m = t(({ label: e, error: t, hint: n, leftIcon: r, rightIcon: i, fullWidth: a = !1, className: o = "", id: s, ...u }, d) => {
96
+ var C = t(({ label: e, error: t, hint: n, leftIcon: r, rightIcon: i, fullWidth: a = !1, className: o = "", id: s, ...u }, d) => {
52
97
  let f = s ?? e?.toLowerCase().replace(/\s+/g, "-");
53
98
  return /* @__PURE__ */ l("div", {
54
99
  className: a ? "w-full" : "inline-block",
55
100
  children: [
56
101
  e && /* @__PURE__ */ c("label", {
57
102
  htmlFor: f,
58
- className: "block text-sm font-medium text-gray-700 mb-1",
103
+ className: "input-label",
59
104
  children: e
60
105
  }),
61
106
  /* @__PURE__ */ l("div", {
62
107
  className: "relative",
63
108
  children: [
64
109
  r && /* @__PURE__ */ c("span", {
65
- className: "absolute left-3 top-1/2 -translate-y-1/2 text-gray-400 pointer-events-none",
110
+ className: "left-icon",
66
111
  children: r
67
112
  }),
68
113
  /* @__PURE__ */ c("input", {
69
114
  ref: d,
70
115
  id: f,
71
- className: [
72
- "h-10 rounded-md border bg-white px-3 text-sm text-gray-900 placeholder:text-gray-400",
73
- "transition-colors outline-none",
74
- "focus:border-primary-500 focus:ring-2 focus:ring-primary-500/20",
75
- "disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-500",
76
- t ? "border-danger-500 focus:border-danger-500 focus:ring-danger-500/20" : "border-gray-300",
77
- r ? "pl-9" : "",
78
- i ? "pr-9" : "",
79
- a ? "w-full" : "",
80
- o
81
- ].filter(Boolean).join(" "),
116
+ className: (0, y.default)("input", t && "has-error", !!r && "with-left-icon", !!i && "with-right-icon", a && "w-full", o),
82
117
  ...u
83
118
  }),
84
119
  i && /* @__PURE__ */ c("span", {
85
- className: "absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 pointer-events-none",
120
+ className: "right-icon",
86
121
  children: i
87
122
  })
88
123
  ]
89
124
  }),
90
125
  (t || n) && /* @__PURE__ */ c("p", {
91
- className: `mt-1 text-xs ${t ? "text-danger-600" : "text-gray-500"}`,
126
+ className: (0, y.default)("helper-text", t && "has-error"),
92
127
  children: t ?? n
93
128
  })
94
129
  ]
95
130
  });
96
131
  });
97
- m.displayName = "Input";
132
+ C.displayName = "Input";
98
133
  //#endregion
99
134
  //#region src/components/common/Select/Select.tsx
100
- var h = t(({ label: e, error: t, hint: n, options: r, placeholder: i, fullWidth: a = !1, className: o = "", id: s, ...u }, d) => {
135
+ var w = t(({ label: e, error: t, hint: n, options: r, placeholder: i, fullWidth: a = !1, className: o = "", id: s, ...u }, d) => {
101
136
  let f = s ?? e?.toLowerCase().replace(/\s+/g, "-");
102
137
  return /* @__PURE__ */ l("div", {
103
- className: a ? "w-full" : "inline-block",
138
+ className: (0, y.default)("select-wrapper", a && "w-full"),
104
139
  children: [
105
140
  e && /* @__PURE__ */ c("label", {
106
141
  htmlFor: f,
107
- className: "block text-sm font-medium text-gray-700 mb-1",
142
+ className: "select-label",
108
143
  children: e
109
144
  }),
110
145
  /* @__PURE__ */ l("div", {
@@ -112,15 +147,7 @@ var h = t(({ label: e, error: t, hint: n, options: r, placeholder: i, fullWidth:
112
147
  children: [/* @__PURE__ */ l("select", {
113
148
  ref: d,
114
149
  id: f,
115
- className: [
116
- "h-10 rounded-md border bg-white px-3 pr-8 text-sm text-gray-900",
117
- "appearance-none transition-colors outline-none",
118
- "focus:border-primary-500 focus:ring-2 focus:ring-primary-500/20",
119
- "disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-500",
120
- t ? "border-danger-500 focus:border-danger-500 focus:ring-danger-500/20" : "border-gray-300",
121
- a ? "w-full" : "",
122
- o
123
- ].filter(Boolean).join(" "),
150
+ className: (0, y.default)("select", t && "has-error", a && "w-full", o),
124
151
  ...u,
125
152
  children: [i && /* @__PURE__ */ c("option", {
126
153
  value: "",
@@ -132,7 +159,7 @@ var h = t(({ label: e, error: t, hint: n, options: r, placeholder: i, fullWidth:
132
159
  children: e.label
133
160
  }, e.value))]
134
161
  }), /* @__PURE__ */ c("span", {
135
- className: "pointer-events-none absolute right-2.5 top-1/2 -translate-y-1/2 text-gray-400",
162
+ className: "select-chevron-icon",
136
163
  children: /* @__PURE__ */ c("svg", {
137
164
  xmlns: "http://www.w3.org/2000/svg",
138
165
  fill: "none",
@@ -149,127 +176,69 @@ var h = t(({ label: e, error: t, hint: n, options: r, placeholder: i, fullWidth:
149
176
  })]
150
177
  }),
151
178
  (t || n) && /* @__PURE__ */ c("p", {
152
- className: `mt-1 text-xs ${t ? "text-danger-600" : "text-gray-500"}`,
179
+ className: (0, y.default)("select-helper", t && "has-error"),
153
180
  children: t ?? n
154
181
  })
155
182
  ]
156
183
  });
157
184
  });
158
- h.displayName = "Select";
185
+ w.displayName = "Select";
159
186
  //#endregion
160
- //#region src/components/common/Typography/Typography.tsx
161
- var g = {
162
- 1: "text-4xl font-bold tracking-tight",
163
- 2: "text-3xl font-bold tracking-tight",
164
- 3: "text-2xl font-semibold",
165
- 4: "text-xl font-semibold",
166
- 5: "text-lg font-medium",
167
- 6: "text-base font-medium"
168
- }, _ = {
169
- body: "text-base",
170
- "body-sm": "text-sm",
171
- caption: "text-xs",
172
- overline: "text-xs font-semibold uppercase tracking-wider",
173
- code: "font-mono text-sm bg-gray-100 px-1.5 py-0.5 rounded"
174
- }, v = {
175
- default: "text-gray-900",
176
- muted: "text-gray-500",
177
- primary: "text-primary-600",
178
- success: "text-success-600",
179
- warning: "text-warning-600",
180
- danger: "text-danger-600",
181
- inherit: ""
182
- };
183
- function y({ as: e, level: t = 1, color: n = "default", className: r = "", children: i, ...a }) {
184
- return /* @__PURE__ */ c(e ?? `h${t}`, {
185
- className: [
186
- g[t],
187
- v[n],
188
- r
189
- ].filter(Boolean).join(" "),
190
- ...a,
191
- children: i
192
- });
193
- }
194
- function b({ variant: e = "body", color: t = "default", as: n = "p", className: r = "", children: i, ...a }) {
195
- return /* @__PURE__ */ c(n, {
196
- className: [
197
- _[e],
198
- v[t],
199
- r
200
- ].filter(Boolean).join(" "),
201
- ...a,
202
- children: i
203
- });
204
- }
187
+ //#region src/components/common/Typography/Heading.tsx
188
+ var T = ({ as: e, level: t = 1, color: n = "default", className: r = "", children: i, ...a }) => /* @__PURE__ */ c(e ?? `h${t}`, {
189
+ className: (0, y.default)(`text-color-${n}`, `heading-size-${t}`, r),
190
+ ...a,
191
+ children: i
192
+ }), E = ({ variant: e = "body", color: t = "default", as: n = "p", className: r = "", children: i, ...a }) => /* @__PURE__ */ c(n, {
193
+ className: (0, y.default)(`text-color-${t}`, `text-variant-${e}`, r),
194
+ ...a,
195
+ children: i
196
+ });
205
197
  //#endregion
206
198
  //#region src/components/common/Badge/Badge.tsx
207
- var x = {
208
- default: "bg-gray-100 text-gray-700",
209
- primary: "bg-primary-100 text-primary-700",
210
- success: "bg-success-50 text-success-700",
211
- warning: "bg-warning-50 text-warning-700",
212
- danger: "bg-danger-50 text-danger-700",
213
- outline: "border border-gray-300 text-gray-700 bg-transparent"
214
- }, S = {
215
- default: "bg-gray-500",
216
- primary: "bg-primary-500",
217
- success: "bg-success-500",
218
- warning: "bg-warning-500",
219
- danger: "bg-danger-500",
220
- outline: "bg-gray-400"
221
- }, C = {
222
- sm: "px-2 py-0.5 text-xs",
223
- md: "px-2.5 py-1 text-xs"
224
- };
225
- function w({ variant: e = "default", size: t = "md", dot: n = !1, className: r = "", children: i, ...a }) {
199
+ function D({ variant: e = "default", size: t = "md", dot: n = !1, className: r, children: i, ...a }) {
226
200
  return /* @__PURE__ */ l("span", {
227
- className: [
228
- "inline-flex items-center gap-1.5 rounded-full font-medium",
229
- x[e],
230
- C[t],
231
- r
232
- ].filter(Boolean).join(" "),
201
+ className: (0, y.default)("badge", `badge-${e}`, `badge-${t}`, r),
233
202
  ...a,
234
- children: [n && /* @__PURE__ */ c("span", { className: `inline-block w-1.5 h-1.5 rounded-full ${S[e]}` }), i]
203
+ children: [n && /* @__PURE__ */ c("span", { className: (0, y.default)("badge-dot", `badge-dot-${e}`) }), i]
235
204
  });
236
205
  }
237
206
  //#endregion
238
207
  //#region src/components/common/Card/Card.tsx
239
- var T = {
208
+ var O = {
240
209
  none: "",
241
210
  sm: "p-4",
242
211
  md: "p-6",
243
212
  lg: "p-8"
244
213
  };
245
- function E({ children: e, padding: t = "md", shadow: n = !0, border: r = !0, className: i = "", ...a }) {
214
+ function k({ children: e, padding: t = "md", shadow: n = !0, border: r = !0, className: i = "", ...a }) {
246
215
  return /* @__PURE__ */ c("div", {
247
216
  className: [
248
217
  "bg-white rounded-xl overflow-hidden",
249
218
  r ? "border border-gray-200" : "",
250
219
  n ? "shadow-sm" : "",
251
- T[t],
220
+ O[t],
252
221
  i
253
222
  ].filter(Boolean).join(" "),
254
223
  ...a,
255
224
  children: e
256
225
  });
257
226
  }
258
- function D({ children: e, className: t = "", ...n }) {
227
+ function A({ children: e, className: t = "", ...n }) {
259
228
  return /* @__PURE__ */ c("div", {
260
229
  className: ["px-6 py-4 border-b border-gray-100", t].filter(Boolean).join(" "),
261
230
  ...n,
262
231
  children: e
263
232
  });
264
233
  }
265
- function O({ children: e, className: t = "", ...n }) {
234
+ function ee({ children: e, className: t = "", ...n }) {
266
235
  return /* @__PURE__ */ c("div", {
267
236
  className: ["p-6", t].filter(Boolean).join(" "),
268
237
  ...n,
269
238
  children: e
270
239
  });
271
240
  }
272
- function ee({ children: e, className: t = "", ...n }) {
241
+ function te({ children: e, className: t = "", ...n }) {
273
242
  return /* @__PURE__ */ c("div", {
274
243
  className: ["px-6 py-4 border-t border-gray-100 bg-gray-50", t].filter(Boolean).join(" "),
275
244
  ...n,
@@ -278,28 +247,13 @@ function ee({ children: e, className: t = "", ...n }) {
278
247
  }
279
248
  //#endregion
280
249
  //#region src/components/common/Spinner/Spinner.tsx
281
- var te = {
282
- xs: "w-3 h-3 border-[1.5px]",
283
- sm: "w-4 h-4 border-2",
284
- md: "w-6 h-6 border-2",
285
- lg: "w-8 h-8 border-[3px]",
286
- xl: "w-12 h-12 border-4"
287
- }, ne = {
288
- primary: "border-primary-200 border-t-primary-600",
289
- white: "border-white/30 border-t-white",
290
- gray: "border-gray-200 border-t-gray-600"
291
- };
292
- function re({ size: e = "md", color: t = "primary", label: n = "Loading…", className: r = "", ...i }) {
250
+ function j({ size: e = "md", color: t = "primary", label: n = "Loading…", className: r = "", ...i }) {
293
251
  return /* @__PURE__ */ l("span", {
294
252
  role: "status",
295
253
  "aria-label": n,
296
- className: ["inline-block", r].filter(Boolean).join(" "),
254
+ className: (0, y.default)("spinner-wrapper", r),
297
255
  ...i,
298
- children: [/* @__PURE__ */ c("span", { className: [
299
- "block rounded-full animate-spin",
300
- te[e],
301
- ne[t]
302
- ].join(" ") }), /* @__PURE__ */ c("span", {
256
+ children: [/* @__PURE__ */ c("span", { className: (0, y.default)("spinner", `spinner-${e}`, `spinner-${t}`) }), /* @__PURE__ */ c("span", {
303
257
  className: "sr-only",
304
258
  children: n
305
259
  })]
@@ -307,53 +261,32 @@ function re({ size: e = "md", color: t = "primary", label: n = "Loading…", cla
307
261
  }
308
262
  //#endregion
309
263
  //#region src/components/common/Alert/Alert.tsx
310
- var k = {
311
- info: {
312
- container: "bg-primary-50 border-primary-200 text-primary-800",
313
- icon: "text-primary-500",
314
- iconPath: /* @__PURE__ */ c("path", {
315
- strokeLinecap: "round",
316
- strokeLinejoin: "round",
317
- d: "M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"
318
- })
319
- },
320
- success: {
321
- container: "bg-success-50 border-success-200 text-success-800",
322
- icon: "text-success-500",
323
- iconPath: /* @__PURE__ */ c("path", {
324
- strokeLinecap: "round",
325
- strokeLinejoin: "round",
326
- d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
327
- })
328
- },
329
- warning: {
330
- container: "bg-warning-50 border-warning-200 text-warning-800",
331
- icon: "text-warning-500",
332
- iconPath: /* @__PURE__ */ c("path", {
333
- strokeLinecap: "round",
334
- strokeLinejoin: "round",
335
- d: "M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"
336
- })
337
- },
338
- danger: {
339
- container: "bg-danger-50 border-danger-200 text-danger-800",
340
- icon: "text-danger-500",
341
- iconPath: /* @__PURE__ */ c("path", {
342
- strokeLinecap: "round",
343
- strokeLinejoin: "round",
344
- d: "M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z"
345
- })
346
- }
264
+ var M = {
265
+ info: /* @__PURE__ */ c("path", {
266
+ strokeLinecap: "round",
267
+ strokeLinejoin: "round",
268
+ d: "M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"
269
+ }),
270
+ success: /* @__PURE__ */ c("path", {
271
+ strokeLinecap: "round",
272
+ strokeLinejoin: "round",
273
+ d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
274
+ }),
275
+ warning: /* @__PURE__ */ c("path", {
276
+ strokeLinecap: "round",
277
+ strokeLinejoin: "round",
278
+ d: "M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"
279
+ }),
280
+ danger: /* @__PURE__ */ c("path", {
281
+ strokeLinecap: "round",
282
+ strokeLinejoin: "round",
283
+ d: "M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z"
284
+ })
347
285
  };
348
- function A({ variant: e = "info", title: t, children: n, onClose: r, className: i = "", ...a }) {
349
- let o = k[e];
286
+ function ne({ variant: e = "info", title: t, children: n, onClose: r, className: i = "", ...a }) {
350
287
  return /* @__PURE__ */ l("div", {
351
288
  role: "alert",
352
- className: [
353
- "flex gap-3 rounded-lg border p-4",
354
- o.container,
355
- i
356
- ].filter(Boolean).join(" "),
289
+ className: (0, y.default)("alert", `alert-${e}`, i),
357
290
  ...a,
358
291
  children: [
359
292
  /* @__PURE__ */ c("svg", {
@@ -362,22 +295,22 @@ function A({ variant: e = "info", title: t, children: n, onClose: r, className:
362
295
  viewBox: "0 0 24 24",
363
296
  strokeWidth: 1.5,
364
297
  stroke: "currentColor",
365
- className: `w-5 h-5 shrink-0 mt-0.5 ${o.icon}`,
366
- children: o.iconPath
298
+ className: (0, y.default)("alert-icon", `alert-icon-${e}`),
299
+ children: M[e]
367
300
  }),
368
301
  /* @__PURE__ */ l("div", {
369
302
  className: "flex-1 min-w-0",
370
303
  children: [t && /* @__PURE__ */ c("p", {
371
- className: "font-semibold text-sm mb-0.5",
304
+ className: "alert-title",
372
305
  children: t
373
306
  }), /* @__PURE__ */ c("div", {
374
- className: "text-sm",
307
+ className: "alert-text",
375
308
  children: n
376
309
  })]
377
310
  }),
378
311
  r && /* @__PURE__ */ c("button", {
379
312
  onClick: r,
380
- className: "shrink-0 opacity-60 hover:opacity-100 transition-opacity",
313
+ className: "alert-close-btn",
381
314
  "aria-label": "Close",
382
315
  children: /* @__PURE__ */ c("svg", {
383
316
  xmlns: "http://www.w3.org/2000/svg",
@@ -398,14 +331,14 @@ function A({ variant: e = "info", title: t, children: n, onClose: r, className:
398
331
  }
399
332
  //#endregion
400
333
  //#region src/components/common/Modal/Modal.tsx
401
- var j = {
334
+ var re = {
402
335
  sm: "max-w-sm",
403
336
  md: "max-w-md",
404
337
  lg: "max-w-lg",
405
338
  xl: "max-w-xl",
406
339
  full: "max-w-full mx-4"
407
340
  };
408
- function M({ open: e, onClose: t, title: n, children: r, footer: o, size: s = "md", closeOnBackdrop: d = !0 }) {
341
+ function ie({ open: e, onClose: t, title: n, children: r, footer: o, size: s = "md", closeOnBackdrop: d = !0 }) {
409
342
  let f = a(null);
410
343
  return i(() => {
411
344
  if (!e) return;
@@ -429,7 +362,7 @@ function M({ open: e, onClose: t, title: n, children: r, footer: o, size: s = "m
429
362
  role: "dialog",
430
363
  "aria-modal": "true",
431
364
  "aria-labelledby": n ? "modal-title" : void 0,
432
- className: ["relative w-full bg-white rounded-xl shadow-xl flex flex-col max-h-[90vh]", j[s]].join(" "),
365
+ className: ["relative w-full bg-white rounded-xl shadow-xl flex flex-col max-h-[90vh]", re[s]].join(" "),
433
366
  children: [
434
367
  n && /* @__PURE__ */ l("div", {
435
368
  className: "flex items-center justify-between px-6 py-4 border-b border-gray-100 shrink-0",
@@ -473,35 +406,30 @@ function M({ open: e, onClose: t, title: n, children: r, footer: o, size: s = "m
473
406
  var N = t(({ label: e, description: t, error: n, indeterminate: r, className: i = "", id: a, ...o }, s) => {
474
407
  let u = a ?? e?.toLowerCase().replace(/\s+/g, "-");
475
408
  return /* @__PURE__ */ l("div", {
476
- className: ["flex gap-3", i].filter(Boolean).join(" "),
409
+ className: (0, y.default)("checkbox-wrapper", i),
477
410
  children: [/* @__PURE__ */ c("div", {
478
- className: "flex items-center h-5",
411
+ className: "checkbox-wrapper-inner",
479
412
  children: /* @__PURE__ */ c("input", {
480
413
  ref: (e) => {
481
414
  e && (e.indeterminate = r ?? !1), typeof s == "function" ? s(e) : s && (s.current = e);
482
415
  },
483
416
  id: u,
484
417
  type: "checkbox",
485
- className: [
486
- "w-4 h-4 rounded border-gray-300 text-primary-600",
487
- "focus:ring-2 focus:ring-primary-500 focus:ring-offset-1",
488
- "disabled:cursor-not-allowed disabled:opacity-50",
489
- n ? "border-danger-500" : ""
490
- ].filter(Boolean).join(" "),
418
+ className: (0, y.default)("checkbox", n && "has-error"),
491
419
  ...o
492
420
  })
493
421
  }), (e || t) && /* @__PURE__ */ l("div", { children: [
494
422
  e && /* @__PURE__ */ c("label", {
495
423
  htmlFor: u,
496
- className: "text-sm font-medium text-gray-900 cursor-pointer",
424
+ className: "checkbox-label",
497
425
  children: e
498
426
  }),
499
427
  t && /* @__PURE__ */ c("p", {
500
- className: "text-xs text-gray-500 mt-0.5",
428
+ className: "checkbox-description",
501
429
  children: t
502
430
  }),
503
431
  n && /* @__PURE__ */ c("p", {
504
- className: "text-xs text-danger-600 mt-0.5",
432
+ className: "checkbox-error",
505
433
  children: n
506
434
  })
507
435
  ] })]
@@ -510,33 +438,13 @@ var N = t(({ label: e, description: t, error: n, indeterminate: r, className: i
510
438
  N.displayName = "Checkbox";
511
439
  //#endregion
512
440
  //#region src/components/common/Toggle/Toggle.tsx
513
- var ie = {
514
- sm: {
515
- wrapper: "w-8 h-4",
516
- thumb: "w-3 h-3 top-0.5 left-0.5",
517
- checkedTranslate: "peer-checked:translate-x-4"
518
- },
519
- md: {
520
- wrapper: "w-11 h-6",
521
- thumb: "w-5 h-5 top-0.5 left-0.5",
522
- checkedTranslate: "peer-checked:translate-x-5"
523
- },
524
- lg: {
525
- wrapper: "w-14 h-7",
526
- thumb: "w-6 h-6 top-0.5 left-0.5",
527
- checkedTranslate: "peer-checked:translate-x-7"
528
- }
529
- }, P = t(({ label: e, description: t, size: n = "md", className: r = "", id: i, ...a }, o) => {
530
- let s = i ?? e?.toLowerCase().replace(/\s+/g, "-"), { wrapper: u, thumb: d, checkedTranslate: f } = ie[n];
441
+ var P = t(({ label: e, description: t, size: n = "md", className: r = "", id: i, ...a }, o) => {
442
+ let s = i ?? e?.toLowerCase().replace(/\s+/g, "-");
531
443
  return /* @__PURE__ */ l("label", {
532
444
  htmlFor: s,
533
- className: [
534
- "inline-flex items-start gap-3 cursor-pointer select-none",
535
- a.disabled ? "cursor-not-allowed opacity-50" : "",
536
- r
537
- ].filter(Boolean).join(" "),
445
+ className: (0, y.default)("toggle", a.disabled && "toggle-disabled", r),
538
446
  children: [/* @__PURE__ */ l("div", {
539
- className: `relative shrink-0 mt-0.5 ${u}`,
447
+ className: (0, y.default)("toggle-wrapper", `toggle-wrapper-${n}`),
540
448
  children: [
541
449
  /* @__PURE__ */ c("input", {
542
450
  ref: o,
@@ -546,14 +454,14 @@ var ie = {
546
454
  className: "sr-only peer",
547
455
  ...a
548
456
  }),
549
- /* @__PURE__ */ c("div", { className: "absolute inset-0 rounded-full bg-gray-200 peer-checked:bg-primary-600 transition-colors duration-200 peer-focus-visible:ring-2 peer-focus-visible:ring-primary-500 peer-focus-visible:ring-offset-2" }),
550
- /* @__PURE__ */ c("div", { className: `absolute ${d} rounded-full bg-white shadow-sm transition-transform duration-200 ${f}` })
457
+ /* @__PURE__ */ c("div", { className: "toggle-track" }),
458
+ /* @__PURE__ */ c("div", { className: (0, y.default)("toggle-thumb", `toggle-thumb-${n}`) })
551
459
  ]
552
460
  }), (e || t) && /* @__PURE__ */ l("div", { children: [e && /* @__PURE__ */ c("span", {
553
- className: "text-sm font-medium text-gray-900 block",
461
+ className: "toggle-label",
554
462
  children: e
555
463
  }), t && /* @__PURE__ */ c("span", {
556
- className: "text-xs text-gray-500 mt-0.5 block",
464
+ className: "toggle-description",
557
465
  children: t
558
466
  })] })]
559
467
  });
@@ -561,16 +469,6 @@ var ie = {
561
469
  P.displayName = "Toggle";
562
470
  //#endregion
563
471
  //#region src/components/common/Avatar/Avatar.tsx
564
- var ae = {
565
- xs: "w-6 h-6 text-xs",
566
- sm: "w-8 h-8 text-sm",
567
- md: "w-10 h-10 text-sm",
568
- lg: "w-12 h-12 text-base",
569
- xl: "w-16 h-16 text-lg"
570
- };
571
- function oe(e) {
572
- return e.split(" ").slice(0, 2).map((e) => e[0]).join("").toUpperCase();
573
- }
574
472
  var F = [
575
473
  "bg-red-500",
576
474
  "bg-orange-500",
@@ -582,19 +480,18 @@ var F = [
582
480
  "bg-violet-500",
583
481
  "bg-pink-500"
584
482
  ];
585
- function se(e) {
586
- let t = 0;
587
- for (let n = 0; n < e.length; n++) t += e.charCodeAt(n);
588
- return F[t % F.length];
589
- }
590
- function ce({ src: e, alt: t, name: n, size: r = "md", className: i = "", ...a }) {
483
+ function ae({ src: e, alt: t, name: n, size: r = "md", className: i, ...a }) {
591
484
  let o = [
592
- "inline-flex items-center justify-center rounded-full overflow-hidden shrink-0 font-medium text-white",
593
- ae[r],
485
+ "avatar",
486
+ `avatar-${r}`,
594
487
  i
595
- ].filter(Boolean).join(" ");
488
+ ], s = (e) => {
489
+ let t = 0;
490
+ for (let n = 0; n < e.length; n++) t += e.charCodeAt(n);
491
+ return F[t % F.length];
492
+ }, l = (e) => e.split(" ").slice(0, 2).map((e) => e[0]).join("").toUpperCase();
596
493
  return e ? /* @__PURE__ */ c("span", {
597
- className: o,
494
+ className: (0, y.default)(o),
598
495
  ...a,
599
496
  children: /* @__PURE__ */ c("img", {
600
497
  src: e,
@@ -602,12 +499,12 @@ function ce({ src: e, alt: t, name: n, size: r = "md", className: i = "", ...a }
602
499
  className: "w-full h-full object-cover"
603
500
  })
604
501
  }) : n ? /* @__PURE__ */ c("span", {
605
- className: `${o} ${se(n)}`,
502
+ className: (0, y.default)(o, s(n)),
606
503
  "aria-label": n,
607
504
  ...a,
608
- children: oe(n)
505
+ children: l(n)
609
506
  }) : /* @__PURE__ */ c("span", {
610
- className: `${o} bg-gray-200 text-gray-500`,
507
+ className: (0, y.default)(o, "avatar-fallback"),
611
508
  ...a,
612
509
  children: /* @__PURE__ */ c("svg", {
613
510
  xmlns: "http://www.w3.org/2000/svg",
@@ -630,7 +527,7 @@ function L() {
630
527
  if (!e) throw Error("Tabs subcomponents must be used inside <Tabs>");
631
528
  return e;
632
529
  }
633
- function R({ defaultTab: e, variant: t = "underline", className: n = "", children: r, ...i }) {
530
+ function oe({ defaultTab: e, variant: t = "underline", className: n = "", children: r, ...i }) {
634
531
  let [a, s] = o(e);
635
532
  return /* @__PURE__ */ c(I.Provider, {
636
533
  value: {
@@ -645,104 +542,71 @@ function R({ defaultTab: e, variant: t = "underline", className: n = "", childre
645
542
  })
646
543
  });
647
544
  }
648
- function z({ children: e, className: t = "", ...n }) {
545
+ function se({ children: e, className: t = "", ...n }) {
649
546
  let { variant: r } = L();
650
547
  return /* @__PURE__ */ c("div", {
651
548
  role: "tablist",
652
- className: [{
653
- underline: "flex border-b border-gray-200 gap-1",
654
- pills: "flex gap-1 bg-gray-100 p-1 rounded-lg",
655
- bordered: "flex gap-0 border border-gray-200 rounded-lg overflow-hidden"
656
- }[r], t].filter(Boolean).join(" "),
549
+ className: (0, y.default)("tablist", `tablist-${r}`, t),
657
550
  ...n,
658
551
  children: e
659
552
  });
660
553
  }
661
- function B({ id: e, children: t, className: n = "", ...r }) {
662
- let { activeTab: i, setActiveTab: a, variant: o } = L(), s = i === e, l = {
663
- underline: {
664
- active: "text-primary-600 border-b-2 border-primary-600 -mb-px",
665
- inactive: "text-gray-500 hover:text-gray-700 border-b-2 border-transparent -mb-px"
666
- },
667
- pills: {
668
- active: "bg-white text-gray-900 shadow-sm rounded-md",
669
- inactive: "text-gray-600 hover:text-gray-900 rounded-md"
670
- },
671
- bordered: {
672
- active: "bg-primary-50 text-primary-700 border-r border-gray-200 last:border-r-0",
673
- inactive: "text-gray-600 hover:bg-gray-50 border-r border-gray-200 last:border-r-0"
674
- }
675
- };
554
+ function R({ id: e, children: t, className: n = "", ...r }) {
555
+ let { activeTab: i, setActiveTab: a, variant: o } = L(), s = i === e;
676
556
  return /* @__PURE__ */ c("button", {
677
557
  role: "tab",
678
558
  "aria-selected": s,
679
559
  "aria-controls": `tabpanel-${e}`,
680
560
  id: `tab-${e}`,
681
561
  onClick: () => a(e),
682
- className: [
683
- "inline-flex items-center px-4 py-2 text-sm font-medium transition-colors outline-none focus-visible:ring-2 focus-visible:ring-primary-500 whitespace-nowrap",
684
- s ? l[o].active : l[o].inactive,
685
- n
686
- ].filter(Boolean).join(" "),
562
+ className: (0, y.default)("tabs", `tabs-${o}`, `tabs-${s ? "active" : "inactive"}`, n),
687
563
  ...r,
688
564
  children: t
689
565
  });
690
566
  }
691
- function V({ id: e, children: t, className: n = "", ...r }) {
567
+ function z({ id: e, children: t, className: n = "", ...r }) {
692
568
  let { activeTab: i } = L();
693
569
  return i === e ? /* @__PURE__ */ c("div", {
694
570
  role: "tabpanel",
695
571
  id: `tabpanel-${e}`,
696
572
  "aria-labelledby": `tab-${e}`,
697
- className: ["pt-4", n].filter(Boolean).join(" "),
573
+ className: (0, y.default)("tabpanel", n),
698
574
  ...r,
699
575
  children: t
700
576
  }) : null;
701
577
  }
702
578
  //#endregion
703
579
  //#region src/components/common/Pagination/Pagination.tsx
704
- function H(e, t) {
705
- return Array.from({ length: t - e + 1 }, (t, n) => e + n);
706
- }
707
- function U(e, t, n) {
708
- if (t <= n * 2 + 5) return H(1, t);
580
+ var B = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n), V = (e, t, n) => {
581
+ if (t <= n * 2 + 5) return B(1, t);
709
582
  let r = Math.max(e - n, 1), i = Math.min(e + n, t), a = r > 2, o = i < t - 1;
710
583
  return !a && o ? [
711
- ...H(1, 3 + n * 2),
584
+ ...B(1, 3 + n * 2),
712
585
  "…",
713
586
  t
714
587
  ] : a && !o ? [
715
588
  1,
716
589
  "…",
717
- ...H(t - (2 + n * 2), t)
590
+ ...B(t - (2 + n * 2), t)
718
591
  ] : [
719
592
  1,
720
593
  "…",
721
- ...H(r, i),
594
+ ...B(r, i),
722
595
  "…",
723
596
  t
724
597
  ];
725
- }
726
- function W({ active: e, disabled: t, children: n, ...r }) {
727
- return /* @__PURE__ */ c("button", {
728
- disabled: t,
729
- className: [
730
- "inline-flex items-center justify-center w-9 h-9 rounded-md text-sm font-medium transition-colors",
731
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500",
732
- "disabled:pointer-events-none disabled:opacity-40",
733
- e ? "bg-primary-600 text-white" : "bg-white border border-gray-300 text-gray-700 hover:bg-gray-50"
734
- ].join(" "),
735
- ...r,
736
- children: n
737
- });
738
- }
739
- function G({ page: e, totalPages: t, onPageChange: n, siblingsCount: r = 1 }) {
740
- let i = U(e, t, r);
598
+ }, H = ({ active: e, disabled: t, children: n, ...r }) => /* @__PURE__ */ c("button", {
599
+ disabled: t,
600
+ className: (0, y.default)("pagination-button", `pagination-button-${e ? "active" : "inactive"}`),
601
+ ...r,
602
+ children: n
603
+ }), U = ({ page: e, totalPages: t, onPageChange: n, siblingsCount: r = 1 }) => {
604
+ let i = V(e, t, r);
741
605
  return /* @__PURE__ */ l("nav", {
742
606
  "aria-label": "Pagination",
743
- className: "flex items-center gap-1",
607
+ className: "pagination",
744
608
  children: [
745
- /* @__PURE__ */ c(W, {
609
+ /* @__PURE__ */ c(H, {
746
610
  disabled: e <= 1,
747
611
  onClick: () => n(e - 1),
748
612
  "aria-label": "Previous page",
@@ -761,16 +625,16 @@ function G({ page: e, totalPages: t, onPageChange: n, siblingsCount: r = 1 }) {
761
625
  })
762
626
  }),
763
627
  i.map((t, r) => t === "…" ? /* @__PURE__ */ c("span", {
764
- className: "w-9 h-9 flex items-center justify-center text-gray-400 text-sm",
628
+ className: "pagination-dots",
765
629
  children: "…"
766
- }, `dots-${r}`) : /* @__PURE__ */ c(W, {
630
+ }, `dots-${r}`) : /* @__PURE__ */ c(H, {
767
631
  active: t === e,
768
632
  onClick: () => n(t),
769
633
  "aria-label": `Page ${t}`,
770
634
  "aria-current": t === e ? "page" : void 0,
771
635
  children: t
772
636
  }, t)),
773
- /* @__PURE__ */ c(W, {
637
+ /* @__PURE__ */ c(H, {
774
638
  disabled: e >= t,
775
639
  onClick: () => n(e + 1),
776
640
  "aria-label": "Next page",
@@ -790,10 +654,10 @@ function G({ page: e, totalPages: t, onPageChange: n, siblingsCount: r = 1 }) {
790
654
  })
791
655
  ]
792
656
  });
793
- }
657
+ };
794
658
  //#endregion
795
659
  //#region src/components/Header/Header.tsx
796
- function K({ trigger: e, items: t, onSelect: n, getKey: r, renderItem: i }) {
660
+ function W({ trigger: e, items: t, onSelect: n, getKey: r, renderItem: i }) {
797
661
  let [s, u] = o(!1), d = a(null), f = () => u(!1);
798
662
  return /* @__PURE__ */ l("div", {
799
663
  ref: d,
@@ -828,7 +692,7 @@ function K({ trigger: e, items: t, onSelect: n, getKey: r, renderItem: i }) {
828
692
  })]
829
693
  });
830
694
  }
831
- function le() {
695
+ function G() {
832
696
  return /* @__PURE__ */ c("svg", {
833
697
  xmlns: "http://www.w3.org/2000/svg",
834
698
  fill: "none",
@@ -843,8 +707,8 @@ function le() {
843
707
  })
844
708
  });
845
709
  }
846
- function ue({ logo: e, searchPlaceholder: t = "Hledat produkty…", onSearch: n, cartItemCount: r = 0, onCartClick: i, isLoggedIn: a = !1, customerName: u, onCustomerClick: d, currencies: f = [], selectedCurrency: p, onCurrencyChange: h, locales: g = [], selectedLocale: _, onLocaleChange: v, rightSlot: y }) {
847
- let [b, x] = o(""), S = f.find((e) => e.code === p), C = g.find((e) => e.code === _);
710
+ function K({ logo: e, searchPlaceholder: t = "Hledat produkty…", onSearch: n, cartItemCount: r = 0, onCartClick: i, isLoggedIn: a = !1, customerName: u, onCustomerClick: d, currencies: f = [], selectedCurrency: p, onCurrencyChange: m, locales: h = [], selectedLocale: g, onLocaleChange: _, rightSlot: v }) {
711
+ let [y, b] = o(""), x = f.find((e) => e.code === p), S = h.find((e) => e.code === g);
848
712
  return /* @__PURE__ */ c("header", {
849
713
  className: "bg-white border-b border-gray-200 sticky top-0 z-40",
850
714
  children: /* @__PURE__ */ l("div", {
@@ -859,18 +723,18 @@ function ue({ logo: e, searchPlaceholder: t = "Hledat produkty…", onSearch: n,
859
723
  }),
860
724
  /* @__PURE__ */ c("div", {
861
725
  className: "flex-1 max-w-xl",
862
- children: /* @__PURE__ */ c(m, {
726
+ children: /* @__PURE__ */ c(C, {
863
727
  fullWidth: !0,
864
728
  placeholder: t,
865
- value: b,
866
- onChange: (e) => x(e.target.value),
729
+ value: y,
730
+ onChange: (e) => b(e.target.value),
867
731
  onKeyDown: (e) => {
868
- e.key === "Enter" && n?.(b);
732
+ e.key === "Enter" && n?.(y);
869
733
  },
870
- leftIcon: /* @__PURE__ */ c(le, {}),
871
- rightIcon: b ? /* @__PURE__ */ c("button", {
734
+ leftIcon: /* @__PURE__ */ c(G, {}),
735
+ rightIcon: y ? /* @__PURE__ */ c("button", {
872
736
  onClick: () => {
873
- x(""), n?.("");
737
+ b(""), n?.("");
874
738
  },
875
739
  className: "hover:text-gray-600 transition-colors",
876
740
  "aria-label": "Clear search",
@@ -893,21 +757,21 @@ function ue({ logo: e, searchPlaceholder: t = "Hledat produkty…", onSearch: n,
893
757
  /* @__PURE__ */ l("div", {
894
758
  className: "flex items-center gap-1 shrink-0 ml-auto",
895
759
  children: [
896
- f.length > 0 && /* @__PURE__ */ c(K, {
760
+ f.length > 0 && /* @__PURE__ */ c(W, {
897
761
  trigger: /* @__PURE__ */ l("button", {
898
762
  className: "flex items-center gap-1 px-2 py-1.5 rounded-md text-sm text-gray-600 hover:bg-gray-50 transition-colors font-medium",
899
763
  children: [
900
- /* @__PURE__ */ c("span", { children: S?.symbol ?? p }),
764
+ /* @__PURE__ */ c("span", { children: x?.symbol ?? p }),
901
765
  /* @__PURE__ */ c("span", {
902
766
  className: "text-xs text-gray-400",
903
- children: S?.code ?? p
767
+ children: x?.code ?? p
904
768
  }),
905
769
  /* @__PURE__ */ c(q, { className: "w-3 h-3 text-gray-400" })
906
770
  ]
907
771
  }),
908
772
  items: f,
909
773
  getKey: (e) => e.code,
910
- onSelect: (e) => h?.(e.code),
774
+ onSelect: (e) => m?.(e.code),
911
775
  renderItem: (e) => /* @__PURE__ */ l("span", {
912
776
  className: "flex items-center gap-2",
913
777
  children: [/* @__PURE__ */ c("span", {
@@ -916,24 +780,24 @@ function ue({ logo: e, searchPlaceholder: t = "Hledat produkty…", onSearch: n,
916
780
  }), /* @__PURE__ */ c("span", { children: e.label })]
917
781
  })
918
782
  }),
919
- g.length > 0 && /* @__PURE__ */ c(K, {
783
+ h.length > 0 && /* @__PURE__ */ c(W, {
920
784
  trigger: /* @__PURE__ */ l("button", {
921
785
  className: "flex items-center gap-1 px-2 py-1.5 rounded-md text-sm text-gray-600 hover:bg-gray-50 transition-colors",
922
786
  children: [
923
- C?.flag && /* @__PURE__ */ c("span", {
787
+ S?.flag && /* @__PURE__ */ c("span", {
924
788
  className: "text-base leading-none",
925
- children: C.flag
789
+ children: S.flag
926
790
  }),
927
791
  /* @__PURE__ */ c("span", {
928
792
  className: "font-medium uppercase",
929
- children: C?.code ?? _
793
+ children: S?.code ?? g
930
794
  }),
931
795
  /* @__PURE__ */ c(q, { className: "w-3 h-3 text-gray-400" })
932
796
  ]
933
797
  }),
934
- items: g,
798
+ items: h,
935
799
  getKey: (e) => e.code,
936
- onSelect: (e) => v?.(e.code),
800
+ onSelect: (e) => _?.(e.code),
937
801
  renderItem: (e) => /* @__PURE__ */ l("span", {
938
802
  className: "flex items-center gap-2",
939
803
  children: [e.flag && /* @__PURE__ */ c("span", {
@@ -942,7 +806,7 @@ function ue({ logo: e, searchPlaceholder: t = "Hledat produkty…", onSearch: n,
942
806
  }), /* @__PURE__ */ c("span", { children: e.label })]
943
807
  })
944
808
  }),
945
- (f.length > 0 || g.length > 0) && /* @__PURE__ */ c("div", { className: "w-px h-5 bg-gray-200 mx-1" }),
809
+ (f.length > 0 || h.length > 0) && /* @__PURE__ */ c("div", { className: "w-px h-5 bg-gray-200 mx-1" }),
946
810
  /* @__PURE__ */ c("button", {
947
811
  onClick: d,
948
812
  className: "flex items-center gap-1.5 px-2.5 py-1.5 rounded-md text-sm text-gray-600 hover:bg-gray-50 transition-colors",
@@ -953,7 +817,7 @@ function ue({ logo: e, searchPlaceholder: t = "Hledat produkty…", onSearch: n,
953
817
  }), u && /* @__PURE__ */ c("span", {
954
818
  className: "hidden sm:block font-medium max-w-32 truncate",
955
819
  children: u
956
- })] }) : /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c(de, { className: "w-5 h-5" }), /* @__PURE__ */ c("span", {
820
+ })] }) : /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c(ce, { className: "w-5 h-5" }), /* @__PURE__ */ c("span", {
957
821
  className: "hidden sm:block font-medium",
958
822
  children: "Přihlásit se"
959
823
  })] })
@@ -963,7 +827,7 @@ function ue({ logo: e, searchPlaceholder: t = "Hledat produkty…", onSearch: n,
963
827
  className: "relative flex items-center gap-1.5 px-2.5 py-1.5 rounded-md text-sm text-gray-600 hover:bg-gray-50 transition-colors",
964
828
  "aria-label": `Cart, ${r} items`,
965
829
  children: [
966
- /* @__PURE__ */ c(fe, { className: "w-5 h-5" }),
830
+ /* @__PURE__ */ c(le, { className: "w-5 h-5" }),
967
831
  /* @__PURE__ */ c("span", {
968
832
  className: "hidden sm:block font-medium",
969
833
  children: "Košík"
@@ -974,7 +838,7 @@ function ue({ logo: e, searchPlaceholder: t = "Hledat produkty…", onSearch: n,
974
838
  })
975
839
  ]
976
840
  }),
977
- y
841
+ v
978
842
  ]
979
843
  })
980
844
  ]
@@ -996,7 +860,7 @@ function q({ className: e }) {
996
860
  })
997
861
  });
998
862
  }
999
- function de({ className: e }) {
863
+ function ce({ className: e }) {
1000
864
  return /* @__PURE__ */ c("svg", {
1001
865
  xmlns: "http://www.w3.org/2000/svg",
1002
866
  fill: "none",
@@ -1011,7 +875,7 @@ function de({ className: e }) {
1011
875
  })
1012
876
  });
1013
877
  }
1014
- function fe({ className: e }) {
878
+ function le({ className: e }) {
1015
879
  return /* @__PURE__ */ c("svg", {
1016
880
  xmlns: "http://www.w3.org/2000/svg",
1017
881
  fill: "none",
@@ -1092,7 +956,7 @@ function J({ node: e, activeId: t, onSelect: n, showCounts: r, depth: i, default
1092
956
  function Y(e, t) {
1093
957
  return !t || !e.children ? !1 : e.children.some((e) => e.id === t || Y(e, t));
1094
958
  }
1095
- function pe({ categories: e, activeId: t, onSelect: n, showCounts: r = !0, defaultExpandAll: i = !1, className: a = "", ...o }) {
959
+ function ue({ categories: e, activeId: t, onSelect: n, showCounts: r = !0, defaultExpandAll: i = !1, className: a = "", ...o }) {
1096
960
  let s = (e) => n?.(e);
1097
961
  return /* @__PURE__ */ c("nav", {
1098
962
  "aria-label": "Category navigation",
@@ -1114,7 +978,7 @@ function pe({ categories: e, activeId: t, onSelect: n, showCounts: r = !0, defau
1114
978
  }
1115
979
  //#endregion
1116
980
  //#region src/components/MegaMenu/MegaMenu.tsx
1117
- function me({ item: e, onNavigate: t, onClose: n }) {
981
+ function de({ item: e, onNavigate: t, onClose: n }) {
1118
982
  return e.columns?.length ? /* @__PURE__ */ c("div", {
1119
983
  className: "absolute left-0 right-0 top-full z-50 bg-white border-b border-gray-200 shadow-lg",
1120
984
  children: /* @__PURE__ */ l("div", {
@@ -1177,7 +1041,7 @@ function me({ item: e, onNavigate: t, onClose: n }) {
1177
1041
  })
1178
1042
  }) : null;
1179
1043
  }
1180
- function he({ items: e, activeId: t, onNavigate: n }) {
1044
+ function fe({ items: e, activeId: t, onNavigate: n }) {
1181
1045
  let [r, i] = o(null), s = a(null), u = (e) => {
1182
1046
  s.current && clearTimeout(s.current), i(e);
1183
1047
  }, d = () => {
@@ -1240,7 +1104,7 @@ function he({ items: e, activeId: t, onNavigate: n }) {
1240
1104
  }), p?.columns?.length && /* @__PURE__ */ c("div", {
1241
1105
  onMouseEnter: f,
1242
1106
  onMouseLeave: d,
1243
- children: /* @__PURE__ */ c(me, {
1107
+ children: /* @__PURE__ */ c(de, {
1244
1108
  item: p,
1245
1109
  onNavigate: (e) => n?.(e),
1246
1110
  onClose: () => i(null)
@@ -1250,7 +1114,7 @@ function he({ items: e, activeId: t, onNavigate: n }) {
1250
1114
  }
1251
1115
  //#endregion
1252
1116
  //#region src/components/BannerCarousel/BannerCarousel.tsx
1253
- function ge({ banners: e, autoPlay: t = !0, autoPlayInterval: r = 5e3, arrows: u = !0, dots: d = !0, className: f = "", aspectRatio: p = "3 / 1" }) {
1117
+ function pe({ banners: e, autoPlay: t = !0, autoPlayInterval: r = 5e3, arrows: u = !0, dots: d = !0, className: f = "", aspectRatio: p = "3 / 1" }) {
1254
1118
  let [m, h] = o(0), [g, _] = o(!1), v = a(null), y = a(null), b = e.length, x = n((e) => {
1255
1119
  h((e % b + b) % b);
1256
1120
  }, [b]), S = () => x(m - 1), C = n(() => x(m + 1), [m, x]);
@@ -1390,7 +1254,7 @@ function ge({ banners: e, autoPlay: t = !0, autoPlayInterval: r = 5e3, arrows: u
1390
1254
  }
1391
1255
  //#endregion
1392
1256
  //#region src/components/ProductCard/ProductCard.tsx
1393
- function _e({ filled: e }) {
1257
+ function me({ filled: e }) {
1394
1258
  return /* @__PURE__ */ c("svg", {
1395
1259
  xmlns: "http://www.w3.org/2000/svg",
1396
1260
  viewBox: "0 0 24 24",
@@ -1403,7 +1267,7 @@ function _e({ filled: e }) {
1403
1267
  })
1404
1268
  });
1405
1269
  }
1406
- function ve({ value: e, count: t }) {
1270
+ function he({ value: e, count: t }) {
1407
1271
  return /* @__PURE__ */ l("div", {
1408
1272
  className: "flex items-center gap-1",
1409
1273
  children: [/* @__PURE__ */ c("div", {
@@ -1414,7 +1278,7 @@ function ve({ value: e, count: t }) {
1414
1278
  3,
1415
1279
  4,
1416
1280
  5
1417
- ].map((t) => /* @__PURE__ */ c(_e, { filled: t <= Math.round(e) }, t))
1281
+ ].map((t) => /* @__PURE__ */ c(me, { filled: t <= Math.round(e) }, t))
1418
1282
  }), t !== void 0 && /* @__PURE__ */ l("span", {
1419
1283
  className: "text-xs text-gray-400",
1420
1284
  children: [
@@ -1425,18 +1289,18 @@ function ve({ value: e, count: t }) {
1425
1289
  })]
1426
1290
  });
1427
1291
  }
1428
- function ye(e) {
1292
+ function ge(e) {
1429
1293
  let t = e.toLowerCase();
1430
1294
  return t === "sale" || t === "akce" ? "danger" : t === "new" || t === "nové" ? "primary" : t === "hot" ? "warning" : "default";
1431
1295
  }
1432
1296
  function X(e, t = "Kč") {
1433
1297
  return `${e.toLocaleString("cs-CZ")} ${t}`;
1434
1298
  }
1435
- function be(e, t) {
1299
+ function _e(e, t) {
1436
1300
  return Math.round((1 - t / e) * 100);
1437
1301
  }
1438
1302
  function Z({ product: e, onAddToCart: t, onWishlistToggle: n, isWishlisted: r = !1, onProductClick: i, size: a = "default", className: s = "" }) {
1439
- let [u, d] = o(!1), [f, m] = o(!1), h = e.originalPrice !== void 0 && e.originalPrice > e.price;
1303
+ let [u, d] = o(!1), [f, p] = o(!1), m = e.originalPrice !== void 0 && e.originalPrice > e.price;
1440
1304
  return /* @__PURE__ */ l("article", {
1441
1305
  className: [
1442
1306
  "group relative flex flex-col bg-white rounded-xl border border-gray-200",
@@ -1459,10 +1323,10 @@ function Z({ product: e, onAddToCart: t, onWishlistToggle: n, isWishlisted: r =
1459
1323
  }),
1460
1324
  e.badge && /* @__PURE__ */ c("div", {
1461
1325
  className: "absolute top-2 left-2",
1462
- children: /* @__PURE__ */ c(w, {
1463
- variant: ye(e.badge),
1326
+ children: /* @__PURE__ */ c(D, {
1327
+ variant: ge(e.badge),
1464
1328
  size: "sm",
1465
- children: e.badge === "sale" && h ? `-${be(e.originalPrice, e.price)}%` : e.badge
1329
+ children: e.badge === "sale" && m ? `-${_e(e.originalPrice, e.price)}%` : e.badge
1466
1330
  })
1467
1331
  }),
1468
1332
  e.inStock === !1 && /* @__PURE__ */ c("div", {
@@ -1498,14 +1362,14 @@ function Z({ product: e, onAddToCart: t, onWishlistToggle: n, isWishlisted: r =
1498
1362
  }),
1499
1363
  /* @__PURE__ */ c("div", {
1500
1364
  className: ["absolute bottom-0 left-0 right-0 p-2 transition-transform duration-200", u ? "translate-y-0" : "translate-y-full"].join(" "),
1501
- children: /* @__PURE__ */ c(p, {
1365
+ children: /* @__PURE__ */ c(b, {
1502
1366
  variant: "primary",
1503
1367
  size: "sm",
1504
1368
  fullWidth: !0,
1505
1369
  loading: !1,
1506
1370
  disabled: e.inStock === !1,
1507
1371
  onClick: (n) => {
1508
- n.stopPropagation(), t?.(e), m(!0), setTimeout(() => m(!1), 1500);
1372
+ n.stopPropagation(), t?.(e), p(!0), setTimeout(() => p(!1), 1500);
1509
1373
  },
1510
1374
  className: "shadow-lg",
1511
1375
  children: f ? /* @__PURE__ */ l("span", {
@@ -1545,7 +1409,7 @@ function Z({ product: e, onAddToCart: t, onWishlistToggle: n, isWishlisted: r =
1545
1409
  className: `font-medium text-gray-900 leading-snug line-clamp-2 group-hover:text-primary-600 transition-colors ${a === "compact" ? "text-xs" : "text-sm"}`,
1546
1410
  children: e.name
1547
1411
  }),
1548
- e.rating !== void 0 && /* @__PURE__ */ c(ve, {
1412
+ e.rating !== void 0 && /* @__PURE__ */ c(he, {
1549
1413
  value: e.rating,
1550
1414
  count: e.reviewCount
1551
1415
  }),
@@ -1554,7 +1418,7 @@ function Z({ product: e, onAddToCart: t, onWishlistToggle: n, isWishlisted: r =
1554
1418
  children: [/* @__PURE__ */ c("span", {
1555
1419
  className: `font-bold text-gray-900 ${a === "compact" ? "text-base" : "text-lg"}`,
1556
1420
  children: X(e.price, e.currency)
1557
- }), h && /* @__PURE__ */ c("span", {
1421
+ }), m && /* @__PURE__ */ c("span", {
1558
1422
  className: "text-sm text-gray-400 line-through",
1559
1423
  children: X(e.originalPrice, e.currency)
1560
1424
  })]
@@ -1570,7 +1434,7 @@ var Q = {
1570
1434
  3: "grid-cols-2 md:grid-cols-3",
1571
1435
  4: "grid-cols-2 sm:grid-cols-3 lg:grid-cols-4",
1572
1436
  5: "grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5"
1573
- }, xe = [
1437
+ }, ve = [
1574
1438
  {
1575
1439
  value: "newest",
1576
1440
  label: "Nejnovější"
@@ -1592,7 +1456,7 @@ var Q = {
1592
1456
  label: "Bestsellery"
1593
1457
  }
1594
1458
  ];
1595
- function Se() {
1459
+ function ye() {
1596
1460
  return /* @__PURE__ */ l("div", {
1597
1461
  className: "rounded-xl border border-gray-100 overflow-hidden animate-pulse",
1598
1462
  children: [/* @__PURE__ */ c("div", { className: "aspect-4/3 bg-gray-200" }), /* @__PURE__ */ l("div", {
@@ -1605,10 +1469,10 @@ function Se() {
1605
1469
  })]
1606
1470
  });
1607
1471
  }
1608
- function Ce({ products: e, totalCount: t, page: n = 1, onPageChange: r, perPage: i = 20, columns: a = 4, sortOptions: o = xe, selectedSort: s, onSortChange: u, activeFilters: d = [], onRemoveFilter: f, onClearFilters: p, loading: m = !1, emptyState: g, onAddToCart: _, onWishlistToggle: v, onProductClick: y, wishlisted: b = [], className: x = "" }) {
1609
- let S = t ? Math.ceil(t / i) : void 0, C = a >= 5 ? "compact" : "default";
1472
+ function be({ products: e, totalCount: t, page: n = 1, onPageChange: r, perPage: i = 20, columns: a = 4, sortOptions: o = ve, selectedSort: s, onSortChange: u, activeFilters: d = [], onRemoveFilter: f, onClearFilters: p, loading: m = !1, emptyState: h, onAddToCart: g, onWishlistToggle: _, onProductClick: v, wishlisted: y = [], className: b = "" }) {
1473
+ let x = t ? Math.ceil(t / i) : void 0, S = a >= 5 ? "compact" : "default";
1610
1474
  return /* @__PURE__ */ l("div", {
1611
- className: ["w-full", x].filter(Boolean).join(" "),
1475
+ className: ["w-full", b].filter(Boolean).join(" "),
1612
1476
  children: [
1613
1477
  /* @__PURE__ */ l("div", {
1614
1478
  className: "flex flex-wrap items-center justify-between gap-3 mb-4",
@@ -1649,7 +1513,7 @@ function Ce({ products: e, totalCount: t, page: n = 1, onPageChange: r, perPage:
1649
1513
  children: "Zrušit vše"
1650
1514
  })
1651
1515
  ]
1652
- }), /* @__PURE__ */ c(h, {
1516
+ }), /* @__PURE__ */ c(w, {
1653
1517
  options: o,
1654
1518
  value: s ?? "",
1655
1519
  onChange: (e) => u?.(e.target.value),
@@ -1659,10 +1523,10 @@ function Ce({ products: e, totalCount: t, page: n = 1, onPageChange: r, perPage:
1659
1523
  }),
1660
1524
  m ? /* @__PURE__ */ c("div", {
1661
1525
  className: `grid gap-4 ${Q[a]}`,
1662
- children: Array.from({ length: i > 12 ? 12 : i }).map((e, t) => /* @__PURE__ */ c(Se, {}, t))
1526
+ children: Array.from({ length: i > 12 ? 12 : i }).map((e, t) => /* @__PURE__ */ c(ye, {}, t))
1663
1527
  }) : e.length === 0 ? /* @__PURE__ */ c("div", {
1664
1528
  className: "py-16 text-center",
1665
- children: g ?? /* @__PURE__ */ l("div", {
1529
+ children: h ?? /* @__PURE__ */ l("div", {
1666
1530
  className: "space-y-2",
1667
1531
  children: [
1668
1532
  /* @__PURE__ */ c("p", {
@@ -1688,18 +1552,18 @@ function Ce({ products: e, totalCount: t, page: n = 1, onPageChange: r, perPage:
1688
1552
  className: `grid gap-4 ${Q[a]}`,
1689
1553
  children: e.map((e) => /* @__PURE__ */ c(Z, {
1690
1554
  product: e,
1691
- size: C,
1692
- onAddToCart: _,
1693
- onWishlistToggle: v,
1694
- onProductClick: y,
1695
- isWishlisted: b.includes(e.id)
1555
+ size: S,
1556
+ onAddToCart: g,
1557
+ onWishlistToggle: _,
1558
+ onProductClick: v,
1559
+ isWishlisted: y.includes(e.id)
1696
1560
  }, e.id))
1697
1561
  }),
1698
- S && S > 1 && r && /* @__PURE__ */ c("div", {
1562
+ x && x > 1 && r && /* @__PURE__ */ c("div", {
1699
1563
  className: "flex justify-center mt-8",
1700
- children: /* @__PURE__ */ c(G, {
1564
+ children: /* @__PURE__ */ c(U, {
1701
1565
  page: n,
1702
- totalPages: S,
1566
+ totalPages: x,
1703
1567
  onPageChange: r
1704
1568
  })
1705
1569
  })
@@ -1708,14 +1572,14 @@ function Ce({ products: e, totalCount: t, page: n = 1, onPageChange: r, perPage:
1708
1572
  }
1709
1573
  //#endregion
1710
1574
  //#region src/components/CallToAction/CallToAction.tsx
1711
- var we = {
1575
+ var xe = {
1712
1576
  default: "bg-gray-50 border border-gray-200",
1713
1577
  primary: "bg-primary-600",
1714
1578
  dark: "bg-gray-900",
1715
1579
  gradient: "bg-linear-to-br from-primary-600 via-primary-700 to-violet-700",
1716
1580
  outline: "bg-white border-2 border-primary-600",
1717
1581
  image: "relative overflow-hidden"
1718
- }, Te = {
1582
+ }, Se = {
1719
1583
  default: {
1720
1584
  eyebrow: "text-primary-600",
1721
1585
  title: "text-gray-900",
@@ -1746,7 +1610,7 @@ var we = {
1746
1610
  title: "text-white",
1747
1611
  description: "text-white/80"
1748
1612
  }
1749
- }, Ee = {
1613
+ }, Ce = {
1750
1614
  sm: {
1751
1615
  wrapper: "px-6 py-6 rounded-xl",
1752
1616
  title: "text-xl font-bold",
@@ -1771,7 +1635,7 @@ var we = {
1771
1635
  description: "text-xl",
1772
1636
  eyebrow: "text-sm"
1773
1637
  }
1774
- }, De = {
1638
+ }, we = {
1775
1639
  left: {
1776
1640
  wrapper: "items-start text-left",
1777
1641
  actions: "justify-start"
@@ -1785,53 +1649,53 @@ var we = {
1785
1649
  actions: "justify-end"
1786
1650
  }
1787
1651
  };
1788
- function Oe({ eyebrow: e, title: t, description: n, actions: r = [], align: i = "center", layout: a = "stacked", size: o = "md", variant: s = "default", background: u, backgroundImage: d, media: f, className: m = "", style: h }) {
1789
- let g = Te[s], _ = Ee[o], v = De[i], y = a === "inline", b = {
1652
+ function Te({ eyebrow: e, title: t, description: n, actions: r = [], align: i = "center", layout: a = "stacked", size: o = "md", variant: s = "default", background: u, backgroundImage: d, media: f, className: p = "", style: m }) {
1653
+ let h = Se[s], g = Ce[o], _ = we[i], v = a === "inline", y = {
1790
1654
  ...u ? { background: u } : {},
1791
1655
  ...d ? {
1792
1656
  backgroundImage: `url(${d})`,
1793
1657
  backgroundSize: "cover",
1794
1658
  backgroundPosition: "center"
1795
1659
  } : {},
1796
- ...h
1660
+ ...m
1797
1661
  };
1798
1662
  return /* @__PURE__ */ l("div", {
1799
1663
  className: [
1800
1664
  "w-full",
1801
- we[s],
1802
- _.wrapper,
1803
- m
1665
+ xe[s],
1666
+ g.wrapper,
1667
+ p
1804
1668
  ].filter(Boolean).join(" "),
1805
- style: Object.keys(b).length ? b : void 0,
1669
+ style: Object.keys(y).length ? y : void 0,
1806
1670
  children: [(s === "image" || d) && /* @__PURE__ */ c("div", { className: "absolute inset-0 bg-black/50" }), /* @__PURE__ */ l("div", {
1807
- className: `relative ${y ? "flex flex-wrap items-center justify-between gap-6" : `flex flex-col gap-4 ${v.wrapper}`}`,
1671
+ className: `relative ${v ? "flex flex-wrap items-center justify-between gap-6" : `flex flex-col gap-4 ${_.wrapper}`}`,
1808
1672
  children: [
1809
1673
  /* @__PURE__ */ l("div", {
1810
- className: `flex flex-col gap-2 ${y ? "flex-1 min-w-0" : v.wrapper}`,
1674
+ className: `flex flex-col gap-2 ${v ? "flex-1 min-w-0" : _.wrapper}`,
1811
1675
  children: [
1812
1676
  e && /* @__PURE__ */ c("p", {
1813
- className: `font-semibold uppercase tracking-widest ${_.eyebrow} ${g.eyebrow}`,
1677
+ className: `font-semibold uppercase tracking-widest ${g.eyebrow} ${h.eyebrow}`,
1814
1678
  children: e
1815
1679
  }),
1816
1680
  /* @__PURE__ */ c("h2", {
1817
- className: `${_.title} ${g.title}`,
1681
+ className: `${g.title} ${h.title}`,
1818
1682
  children: t
1819
1683
  }),
1820
1684
  n && /* @__PURE__ */ c("p", {
1821
- className: `max-w-2xl ${_.description} ${g.description}`,
1685
+ className: `max-w-2xl ${g.description} ${h.description}`,
1822
1686
  children: n
1823
1687
  })
1824
1688
  ]
1825
1689
  }),
1826
- f && !y && /* @__PURE__ */ c("div", {
1690
+ f && !v && /* @__PURE__ */ c("div", {
1827
1691
  className: "mt-2",
1828
1692
  children: f
1829
1693
  }),
1830
1694
  r.length > 0 && /* @__PURE__ */ c("div", {
1831
- className: `flex flex-wrap gap-3 ${y ? "shrink-0" : v.actions}`,
1695
+ className: `flex flex-wrap gap-3 ${v ? "shrink-0" : _.actions}`,
1832
1696
  children: r.map((e, t) => {
1833
- let n = /* @__PURE__ */ c(p, {
1834
- variant: e.variant ?? (t === 0 ? ke(s) : "outline"),
1697
+ let n = /* @__PURE__ */ c(b, {
1698
+ variant: e.variant ?? (t === 0 ? Ee(s) : "outline"),
1835
1699
  size: e.size ?? (o === "sm" ? "sm" : o === "xl" ? "lg" : "md"),
1836
1700
  onClick: e.onClick,
1837
1701
  children: e.label
@@ -1847,12 +1711,12 @@ function Oe({ eyebrow: e, title: t, description: n, actions: r = [], align: i =
1847
1711
  })]
1848
1712
  });
1849
1713
  }
1850
- function ke(e) {
1714
+ function Ee(e) {
1851
1715
  return e === "default" || e === "outline" ? "primary" : "secondary";
1852
1716
  }
1853
1717
  //#endregion
1854
1718
  //#region src/components/Footer/Footer.tsx
1855
- function Ae() {
1719
+ function $() {
1856
1720
  return /* @__PURE__ */ c("svg", {
1857
1721
  xmlns: "http://www.w3.org/2000/svg",
1858
1722
  fill: "none",
@@ -1867,7 +1731,7 @@ function Ae() {
1867
1731
  })
1868
1732
  });
1869
1733
  }
1870
- function je() {
1734
+ function De() {
1871
1735
  return /* @__PURE__ */ c("svg", {
1872
1736
  xmlns: "http://www.w3.org/2000/svg",
1873
1737
  fill: "none",
@@ -1882,7 +1746,7 @@ function je() {
1882
1746
  })
1883
1747
  });
1884
1748
  }
1885
- function Me() {
1749
+ function Oe() {
1886
1750
  return /* @__PURE__ */ l("svg", {
1887
1751
  xmlns: "http://www.w3.org/2000/svg",
1888
1752
  fill: "none",
@@ -1901,7 +1765,7 @@ function Me() {
1901
1765
  })]
1902
1766
  });
1903
1767
  }
1904
- function Ne() {
1768
+ function ke() {
1905
1769
  return /* @__PURE__ */ c("svg", {
1906
1770
  xmlns: "http://www.w3.org/2000/svg",
1907
1771
  fill: "none",
@@ -1916,7 +1780,7 @@ function Ne() {
1916
1780
  })
1917
1781
  });
1918
1782
  }
1919
- function Pe() {
1783
+ function Ae() {
1920
1784
  return /* @__PURE__ */ c("svg", {
1921
1785
  xmlns: "http://www.w3.org/2000/svg",
1922
1786
  viewBox: "0 0 24 24",
@@ -1925,7 +1789,7 @@ function Pe() {
1925
1789
  children: /* @__PURE__ */ c("path", { d: "M24 12.073C24 5.405 18.627 0 12 0S0 5.405 0 12.073C0 18.1 4.388 23.094 10.125 24v-8.437H7.078v-3.49h3.047V9.41c0-3.025 1.792-4.697 4.533-4.697 1.312 0 2.686.236 2.686.236v2.97h-1.513c-1.491 0-1.956.93-1.956 1.886v2.267h3.328l-.532 3.49h-2.796V24C19.612 23.094 24 18.1 24 12.073z" })
1926
1790
  });
1927
1791
  }
1928
- function $() {
1792
+ function je() {
1929
1793
  return /* @__PURE__ */ c("svg", {
1930
1794
  xmlns: "http://www.w3.org/2000/svg",
1931
1795
  viewBox: "0 0 24 24",
@@ -1934,7 +1798,7 @@ function $() {
1934
1798
  children: /* @__PURE__ */ c("path", { d: "M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm6.406-11.845a1.44 1.44 0 100 2.881 1.44 1.44 0 000-2.881z" })
1935
1799
  });
1936
1800
  }
1937
- function Fe() {
1801
+ function Me() {
1938
1802
  return /* @__PURE__ */ c("svg", {
1939
1803
  xmlns: "http://www.w3.org/2000/svg",
1940
1804
  viewBox: "0 0 24 24",
@@ -1943,7 +1807,7 @@ function Fe() {
1943
1807
  children: /* @__PURE__ */ c("path", { d: "M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" })
1944
1808
  });
1945
1809
  }
1946
- function Ie() {
1810
+ function Ne() {
1947
1811
  return /* @__PURE__ */ c("svg", {
1948
1812
  xmlns: "http://www.w3.org/2000/svg",
1949
1813
  viewBox: "0 0 24 24",
@@ -1952,7 +1816,7 @@ function Ie() {
1952
1816
  children: /* @__PURE__ */ c("path", { d: "M23.498 6.186a3.016 3.016 0 00-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 00.502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 002.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 002.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z" })
1953
1817
  });
1954
1818
  }
1955
- function Le() {
1819
+ function Pe() {
1956
1820
  return /* @__PURE__ */ c("svg", {
1957
1821
  xmlns: "http://www.w3.org/2000/svg",
1958
1822
  viewBox: "0 0 24 24",
@@ -1961,34 +1825,34 @@ function Le() {
1961
1825
  children: /* @__PURE__ */ c("path", { d: "M19.59 6.69a4.83 4.83 0 01-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 01-2.88 2.5 2.89 2.89 0 01-2.89-2.89 2.89 2.89 0 012.89-2.89c.28 0 .54.04.79.1V9.01a6.33 6.33 0 00-.79-.05 6.34 6.34 0 00-6.34 6.34 6.34 6.34 0 006.34 6.34 6.34 6.34 0 006.33-6.34V8.69a8.18 8.18 0 004.78 1.52V6.76a4.85 4.85 0 01-1.01-.07z" })
1962
1826
  });
1963
1827
  }
1964
- var Re = {
1965
- facebook: Pe,
1966
- instagram: $,
1967
- twitter: Fe,
1968
- youtube: Ie,
1969
- tiktok: Le
1970
- }, ze = {
1971
- phone: Ae,
1972
- email: je,
1973
- address: Me,
1974
- hours: Ne
1828
+ var Fe = {
1829
+ facebook: Ae,
1830
+ instagram: je,
1831
+ twitter: Me,
1832
+ youtube: Ne,
1833
+ tiktok: Pe
1834
+ }, Ie = {
1835
+ phone: $,
1836
+ email: De,
1837
+ address: Oe,
1838
+ hours: ke
1975
1839
  };
1976
- function Be(e) {
1840
+ function Le(e) {
1977
1841
  if (!e) return null;
1978
1842
  if (typeof e == "string") {
1979
- let t = ze[e];
1843
+ let t = Ie[e];
1980
1844
  return t ? /* @__PURE__ */ c(t, {}) : null;
1981
1845
  }
1982
1846
  return e;
1983
1847
  }
1984
- function Ve(e) {
1848
+ function Re(e) {
1985
1849
  if (typeof e == "string") {
1986
- let t = Re[e];
1850
+ let t = Fe[e];
1987
1851
  return t ? /* @__PURE__ */ c(t, {}) : null;
1988
1852
  }
1989
1853
  return e;
1990
1854
  }
1991
- function He({ logo: e, tagline: t, contactHeading: n = "Kontakty", contacts: r = [], linkGroups: i = [], socialLinks: a = [], copyright: o, bottomLinks: s = [], className: u = "" }) {
1855
+ function ze({ logo: e, tagline: t, contactHeading: n = "Kontakty", contacts: r = [], linkGroups: i = [], socialLinks: a = [], copyright: o, bottomLinks: s = [], className: u = "" }) {
1992
1856
  let d = (/* @__PURE__ */ new Date()).getFullYear();
1993
1857
  return /* @__PURE__ */ l("footer", {
1994
1858
  className: ["bg-gray-900 text-gray-300", u].filter(Boolean).join(" "),
@@ -2013,7 +1877,7 @@ function He({ logo: e, tagline: t, contactHeading: n = "Kontakty", contacts: r =
2013
1877
  }), /* @__PURE__ */ c("ul", {
2014
1878
  className: "space-y-3",
2015
1879
  children: r.map((e, t) => {
2016
- let n = Be(e.icon), r = /* @__PURE__ */ l("div", {
1880
+ let n = Le(e.icon), r = /* @__PURE__ */ l("div", {
2017
1881
  className: "flex items-start gap-2.5",
2018
1882
  children: [n && /* @__PURE__ */ c("span", {
2019
1883
  className: "mt-0.5 text-primary-400",
@@ -2038,7 +1902,7 @@ function He({ logo: e, tagline: t, contactHeading: n = "Kontakty", contacts: r =
2038
1902
  href: e.href,
2039
1903
  "aria-label": e.label,
2040
1904
  className: "w-8 h-8 flex items-center justify-center rounded-lg bg-gray-800 text-gray-400 hover:bg-primary-600 hover:text-white transition-colors",
2041
- children: Ve(e.icon)
1905
+ children: Re(e.icon)
2042
1906
  }, t))
2043
1907
  })
2044
1908
  ]
@@ -2084,6 +1948,6 @@ function He({ logo: e, tagline: t, contactHeading: n = "Kontakty", contacts: r =
2084
1948
  });
2085
1949
  }
2086
1950
  //#endregion
2087
- export { A as Alert, ce as Avatar, w as Badge, ge as BannerCarousel, p as Button, Oe as CallToAction, E as Card, O as CardBody, ee as CardFooter, D as CardHeader, pe as CategoryTree, N as Checkbox, He as Footer, ue as Header, y as Heading, m as Input, he as MegaMenu, M as Modal, G as Pagination, Z as ProductCard, Ce as ProductGrid, h as Select, re as Spinner, B as Tab, z as TabList, V as TabPanel, R as Tabs, b as Text, P as Toggle };
1951
+ export { ne as Alert, ae as Avatar, D as Badge, pe as BannerCarousel, b as Button, Te as CallToAction, k as Card, ee as CardBody, te as CardFooter, A as CardHeader, ue as CategoryTree, N as Checkbox, ze as Footer, K as Header, T as Heading, S as IconButton, C as Input, x as LoadingSpin, fe as MegaMenu, ie as Modal, U as Pagination, Z as ProductCard, be as ProductGrid, w as Select, j as Spinner, R as Tab, se as TabList, z as TabPanel, oe as Tabs, E as Text, P as Toggle };
2088
1952
 
2089
1953
  //# sourceMappingURL=index.js.map