design-system-silkhaus 3.7.0-beta.localeSelector.1 → 3.7.0-beta.localeSelector.2

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/app/index.js CHANGED
@@ -1,326 +1,160 @@
1
- var Y = Object.defineProperty, Z = Object.defineProperties;
2
- var O = Object.getOwnPropertyDescriptors;
3
- var S = Object.getOwnPropertySymbols;
4
- var P = Object.prototype.hasOwnProperty, V = Object.prototype.propertyIsEnumerable;
5
- var W = (s, d, a) => d in s ? Y(s, d, { enumerable: !0, configurable: !0, writable: !0, value: a }) : s[d] = a, w = (s, d) => {
6
- for (var a in d || (d = {}))
7
- P.call(d, a) && W(s, a, d[a]);
8
- if (S)
9
- for (var a of S(d))
10
- V.call(d, a) && W(s, a, d[a]);
1
+ var J = Object.defineProperty, K = Object.defineProperties;
2
+ var L = Object.getOwnPropertyDescriptors;
3
+ var C = Object.getOwnPropertySymbols;
4
+ var Q = Object.prototype.hasOwnProperty, X = Object.prototype.propertyIsEnumerable;
5
+ var I = (s, e, a) => e in s ? J(s, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : s[e] = a, x = (s, e) => {
6
+ for (var a in e || (e = {}))
7
+ Q.call(e, a) && I(s, a, e[a]);
8
+ if (C)
9
+ for (var a of C(e))
10
+ X.call(e, a) && I(s, a, e[a]);
11
11
  return s;
12
- }, _ = (s, d) => Z(s, O(d));
13
- var B = (s, d) => {
14
- var a = {};
15
- for (var t in s)
16
- P.call(s, t) && d.indexOf(t) < 0 && (a[t] = s[t]);
17
- if (s != null && S)
18
- for (var t of S(s))
19
- d.indexOf(t) < 0 && V.call(s, t) && (a[t] = s[t]);
20
- return a;
21
- };
22
- import { j as e, a as v, t as ss, c as es, p as ds, u as as, o as ts, i as rs, s as ls, r as ns, v as cs, d as os, e as is, f as us, g as xs, F as ms, A as ps, h as fs, w as hs, C as bs, l as gs, k as vs, n as ys } from "../Checkbox-Bhoxdirv.js";
23
- import A, { forwardRef as js, useState as N, useEffect as ws } from "react";
24
- const T = ({ children: s, size: d = "small" }) => /* @__PURE__ */ e.jsx(
25
- "div",
26
- {
27
- className: `ds-flex ds-items-center ds-justify-center ${d === "small" ? "ds-h-5 ds-w-5" : "ds-h-6 ds-w-6"}`,
28
- children: s
29
- }
30
- ), Ns = {
31
- primary: "ds-bg-Background-accentEggplant-100 ds-text-Text-textPrimaryDark ds-rounded-sm hover:ds-text-Text-textPrimaryDark hover:ds-bg-Background-accentEggplant-highlight hover:ds-shadow-[0px_1px_4px_0px_rgba(0,0,0,0.16)] active:ds-shadow-[0px_1px_4px_0px_rgba(0,0,0,0.16)] active:ds-bg-Background-accentEggplant-darkened focus:ds-bg-Background-accentEggplant-100 focus:ds-shadow-[0px_1px_4px_0px_rgba(0,0,0,0.16)] disabled:focus:ds-shadow-none disabled:ds-bg-Background-accentEggplant-20 ds-text-mediumFootnoteEmphasized",
32
- secondary: "ds-bg-white ds-text-black ds-rounded-sm ds-border ds-border-Fills-terciary hover:ds-bg-[#F6F8FC] hover:ds-shadow-[0px_1px_4px_0px_rgba(0,0,0,0.16)] active:ds-bg-[#F6F8FC] active:ds-shadow-[0px_1px_4px_0px_rgba(0,0,0,0.16)] focus:ds-bg-[#F6F8FC] focus:ds-shadow-[0px_1px_4px_0px_rgba(0,0,0,0.16)] disabled:ds-border disabled:ds-border-Fills-terciary disabled:ds-text-Text-tertiary disabled:ds-bg-transparent ds-text-mediumFootnoteEmphasized"
33
- }, Fs = {
34
- primary: "ds-rounded-sm ds-border ds-text-black ds-border-Fills-terciary ds-bg-[#F6F8FC] ds-shadow-[0px_1px_4px_0px_rgba(0,0,0,0.16)] ds-text-mediumFootnoteEmphasized",
35
- secondary: "ds-rounded-sm ds-bg-Background-accentEggplant-100 ds-text-Text-textPrimaryDark ds-shadow-[0px_1px_4px_0px_rgba(0,0,0,0.16)] ds-text-mediumFootnoteEmphasized"
36
- }, I = A.forwardRef(
37
- (b, y) => {
38
- var x = b, {
39
- color: s = "primary",
40
- disabled: d = !1,
41
- className: a,
42
- children: t,
43
- startIcon: i,
44
- selected: u,
45
- endIcon: l,
46
- trackingId: c,
47
- helperText: o,
48
- helpterTextClassName: f,
49
- buttonClassName: h
50
- } = x, g = B(x, [
51
- "color",
52
- "disabled",
53
- "className",
54
- "children",
55
- "startIcon",
56
- "selected",
57
- "endIcon",
58
- "trackingId",
59
- "helperText",
60
- "helpterTextClassName",
61
- "buttonClassName"
62
- ]);
63
- return /* @__PURE__ */ e.jsxs("div", { className: v("ds-flex ds-flex-col ds-gap-1", a), children: [
64
- /* @__PURE__ */ e.jsxs(
65
- "button",
66
- _(w({
67
- "data-tracking-id": c,
68
- ref: y,
69
- disabled: d,
70
- className: ss(
71
- es(
72
- { [Fs[s]]: u, [Ns[s]]: !u },
73
- "ds-px-2 ds-py-1",
74
- "ds-flex ds-w-full ds-flex-1 ds-items-center ds-justify-center ds-gap-1",
75
- h
76
- )
77
- )
78
- }, g), {
79
- children: [
80
- i && /* @__PURE__ */ e.jsx(T, { children: i }),
81
- t && /* @__PURE__ */ e.jsx("div", { children: t }),
82
- l && /* @__PURE__ */ e.jsx(T, { children: l })
83
- ]
84
- })
85
- ),
86
- o && /* @__PURE__ */ e.jsx(
87
- "div",
88
- {
89
- className: v(
90
- "ds-w-full ds-text-right ds-text-mediumFootnoteRegular",
91
- f
92
- ),
93
- children: o
94
- }
95
- )
96
- ] });
97
- }
98
- );
99
- I.displayName = "Button";
100
- const _s = js(
101
- (s, d) => {
102
- const F = s, {
103
- value: a,
104
- options: t,
105
- onSelectionChange: i = () => {
106
- },
107
- isMultiSelect: u,
108
- noDataError: l,
109
- buttonMinWidth: c,
110
- buttonWidth: o,
111
- minSelectionError: f,
112
- buttonsContainerClassName: h,
113
- buttonClassName: g
114
- } = F, y = B(F, [
115
- "value",
116
- "options",
117
- "onSelectionChange",
118
- "isMultiSelect",
119
- "noDataError",
120
- "buttonMinWidth",
121
- "buttonWidth",
122
- "minSelectionError",
123
- "buttonsContainerClassName",
124
- "buttonClassName"
125
- ]), [b, x] = N([]), [j, m] = N("");
126
- ws(() => {
127
- a && a.length ? x(a) : x([]);
128
- }, [a]);
129
- const k = (r, p) => {
130
- p.currentTarget.blur();
131
- const n = [...b], C = n.findIndex((z) => z.value === r.value);
132
- C !== -1 ? n.length > 1 ? (n.splice(C, 1), m("")) : m(f) : (n.push(r), m("")), x(n), i(n);
133
- }, D = (r, p) => {
134
- p.currentTarget.blur();
135
- const n = [r];
136
- x(n), i(n);
137
- };
138
- return /* @__PURE__ */ e.jsxs(
139
- "div",
140
- _(w({
141
- ref: d
142
- }, y), {
143
- children: [
144
- /* @__PURE__ */ e.jsx(
145
- "div",
146
- {
147
- className: v("ds-flex ds-flex-wrap ds-items-center ds-gap-2", h),
148
- children: t.length > 0 ? t.map((r, p) => r.type === "separator" ? /* @__PURE__ */ e.jsx(A.Fragment, { children: r.component ? r.component : /* @__PURE__ */ e.jsx("div", { className: "ds-h-full ds-min-h-[30px] ds-w-[1px] ds-bg-Fills-terciary" }) }, `separator-${p}`) : /* @__PURE__ */ e.jsx(A.Fragment, { children: u ? /* @__PURE__ */ e.jsx(
149
- I,
150
- {
151
- selected: b.some((n) => n.value === r.value),
152
- onClick: (n) => k(r, n),
153
- color: "secondary",
154
- style: { minWidth: c, width: o },
155
- className: g,
156
- startIcon: r.startIcon,
157
- endIcon: r.endIcon,
158
- children: r.label
159
- }
160
- ) : /* @__PURE__ */ e.jsx(
161
- I,
162
- {
163
- selected: b.some((n) => n.value === r.value),
164
- onClick: (n) => D(r, n),
165
- color: "secondary",
166
- style: { minWidth: c, width: o },
167
- className: g,
168
- startIcon: r.startIcon,
169
- endIcon: r.endIcon,
170
- children: r.label
171
- }
172
- ) }, r.value)) : /* @__PURE__ */ e.jsx("div", { className: "ds_xSmallSubheadRegular ds-p-2 ds-text-System-red", children: l })
173
- }
174
- ),
175
- j && /* @__PURE__ */ e.jsx("div", { className: "ds_xSmallSubheadRegular ds-p-2 ds-text-System-red", children: j })
176
- ]
177
- })
178
- );
179
- }
180
- );
181
- _s.displayName = "ButtonsGroupSelector";
182
- const ks = (s) => window.innerWidth < ds ? /* @__PURE__ */ e.jsx($, w({}, s)) : /* @__PURE__ */ e.jsx(U, w({}, s));
183
- ks.displayName = "Dropdown";
184
- const U = ({
12
+ }, k = (s, e) => K(s, L(e));
13
+ import { j as d, p as Y, u as Z, o as _, i as O, s as ss, r as es, v as ds, d as as, e as ls, f as ts, g as rs, a as m, F as ns, A as os, h as is, D as cs, x as us, C as fs, l as xs, k as ms, n as ps } from "../ButtonsGroupSelector-BErKnj7L.js";
14
+ import { w as ks } from "../ButtonsGroupSelector-BErKnj7L.js";
15
+ import { useState as b } from "react";
16
+ const hs = (s) => window.innerWidth < Y ? /* @__PURE__ */ d.jsx(R, x({}, s)) : /* @__PURE__ */ d.jsx(M, x({}, s));
17
+ hs.displayName = "Dropdown";
18
+ const M = ({
185
19
  placement: s = "bottom-start",
186
- trigger: d,
20
+ trigger: e,
187
21
  triggerContainerClassName: a,
188
- disabled: t,
22
+ disabled: l,
189
23
  onOpenChange: i,
190
- adjustHeight: u = !0,
191
- adjustWidth: l = !0,
192
- options: c,
193
- getSelectedValueDisplayText: o = J,
194
- placeholder: f,
195
- value: h,
196
- isMultiSelect: g,
197
- onChange: y
24
+ adjustHeight: n = !0,
25
+ adjustWidth: t = !0,
26
+ options: r,
27
+ getSelectedValueDisplayText: o = S,
28
+ placeholder: u,
29
+ value: f,
30
+ isMultiSelect: y,
31
+ onChange: w
198
32
  }) => {
199
- const [b, x] = N(), j = typeof h == "undefined" ? b : h, m = typeof h == "undefined" ? x : () => {
200
- }, [k, D] = N(!1), { refs: F, floatingStyles: r, context: p } = as({
201
- open: k,
202
- onOpenChange: (E) => {
203
- D(E), i && i(E);
33
+ const [p, N] = b(), h = typeof f == "undefined" ? p : f, c = typeof f == "undefined" ? N : () => {
34
+ }, [F, A] = b(!1), { refs: g, floatingStyles: B, context: j } = Z({
35
+ open: F,
36
+ onOpenChange: (v) => {
37
+ A(v), i && i(v);
204
38
  },
205
39
  middleware: [
206
- ts(8),
207
- rs({
40
+ _(8),
41
+ O({
208
42
  crossAxis: s.includes("-"),
209
43
  fallbackAxisSideDirection: "end"
210
44
  }),
211
- ls({ padding: 4 }),
212
- ns({
213
- apply({ availableWidth: E, availableHeight: X, elements: M }) {
214
- u && (M.floating.style.maxHeight = `${X - 4}px`), l && (M.floating.style.maxWidth = `${E - 4}px`);
45
+ ss({ padding: 4 }),
46
+ es({
47
+ apply({ availableWidth: v, availableHeight: H, elements: z }) {
48
+ n && (z.floating.style.maxHeight = `${H - 4}px`), t && (z.floating.style.maxWidth = `${v - 4}px`);
215
49
  }
216
50
  })
217
51
  ],
218
- whileElementsMounted: fs,
52
+ whileElementsMounted: is,
219
53
  placement: s
220
- }), n = cs(p), C = os(p), z = is(p), K = us(p), { getReferenceProps: L, getFloatingProps: Q } = xs([n, C, z, K]);
221
- return d || (d = /* @__PURE__ */ e.jsx(
222
- q,
54
+ }), E = ds(j), W = as(j), $ = ls(j), G = ts(j), { getReferenceProps: T, getFloatingProps: q } = rs([E, W, $, G]);
55
+ return e || (e = /* @__PURE__ */ d.jsx(
56
+ V,
223
57
  {
224
- selectedOption: R(j, c),
58
+ selectedOption: D(h, r),
225
59
  getSelectedValueDisplayText: o,
226
- placeholder: f
60
+ placeholder: u
227
61
  }
228
- )), t ? /* @__PURE__ */ e.jsx("div", { className: a, children: d }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
229
- /* @__PURE__ */ e.jsx(
62
+ )), l ? /* @__PURE__ */ d.jsx("div", { className: a, children: e }) : /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
63
+ /* @__PURE__ */ d.jsx(
230
64
  "div",
231
- _(w({
232
- className: v("ds-cursor-pointer", a),
233
- ref: F.setReference
234
- }, L()), {
235
- children: d
65
+ k(x({
66
+ className: m("ds-cursor-pointer", a),
67
+ ref: g.setReference
68
+ }, T()), {
69
+ children: e
236
70
  })
237
71
  ),
238
- k && /* @__PURE__ */ e.jsx(ms, { children: /* @__PURE__ */ e.jsx(
72
+ F && /* @__PURE__ */ d.jsx(ns, { children: /* @__PURE__ */ d.jsx(
239
73
  "div",
240
- _(w({
241
- ref: F.setFloating,
242
- style: r
243
- }, Q()), {
244
- className: v(
74
+ k(x({
75
+ ref: g.setFloating,
76
+ style: B
77
+ }, q()), {
78
+ className: m(
245
79
  "ds-z-[29999] ds-flex ds-min-w-[200px] ds-flex-col ds-gap-1 ds-rounded ds-bg-white ds-p-2 ds-shadow-md",
246
- u && "ds-overflow-y-auto",
247
- l && "ds-overflow-x-auto"
80
+ n && "ds-overflow-y-auto",
81
+ t && "ds-overflow-x-auto"
248
82
  ),
249
- children: /* @__PURE__ */ e.jsx(
250
- H,
83
+ children: /* @__PURE__ */ d.jsx(
84
+ P,
251
85
  {
252
- isMultiSelect: g,
253
- options: c,
254
- value: j,
255
- setValue: m,
256
- setIsOpen: D,
257
- onChange: y
86
+ isMultiSelect: y,
87
+ options: r,
88
+ value: h,
89
+ setValue: c,
90
+ setIsOpen: A,
91
+ onChange: w
258
92
  }
259
93
  )
260
94
  })
261
95
  ) })
262
96
  ] });
263
97
  };
264
- U.displayName = "DesktopDropdown";
265
- const $ = ({
98
+ M.displayName = "DesktopDropdown";
99
+ const R = ({
266
100
  trigger: s,
267
- triggerContainerClassName: d,
101
+ triggerContainerClassName: e,
268
102
  disabled: a,
269
- onOpenChange: t,
270
- getSelectedValueDisplayText: i = J,
271
- placeholder: u,
272
- value: l,
273
- options: c,
103
+ onOpenChange: l,
104
+ getSelectedValueDisplayText: i = S,
105
+ placeholder: n,
106
+ value: t,
107
+ options: r,
274
108
  isMultiSelect: o,
275
- onChange: f,
276
- closeButtonLabel: h = "Close"
109
+ onChange: u,
110
+ closeButtonLabel: f = "Close"
277
111
  }) => {
278
- const [g, y] = N(), b = typeof l == "undefined" ? g : l, x = typeof l == "undefined" ? y : () => {
279
- }, [j, m] = N(!1);
280
- return s || (s = /* @__PURE__ */ e.jsx(
281
- q,
112
+ const [y, w] = b(), p = typeof t == "undefined" ? y : t, N = typeof t == "undefined" ? w : () => {
113
+ }, [h, c] = b(!1);
114
+ return s || (s = /* @__PURE__ */ d.jsx(
115
+ V,
282
116
  {
283
- selectedOption: R(b, c),
117
+ selectedOption: D(p, r),
284
118
  getSelectedValueDisplayText: i,
285
- placeholder: u
119
+ placeholder: n
286
120
  }
287
- )), a ? /* @__PURE__ */ e.jsx("div", { className: d, children: s }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
288
- /* @__PURE__ */ e.jsx(
121
+ )), a ? /* @__PURE__ */ d.jsx("div", { className: e, children: s }) : /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
122
+ /* @__PURE__ */ d.jsx(
289
123
  "div",
290
124
  {
291
- className: d,
125
+ className: e,
292
126
  onClick: () => {
293
- m(!0), t && t(!0);
127
+ c(!0), l && l(!0);
294
128
  },
295
129
  children: s
296
130
  }
297
131
  ),
298
- /* @__PURE__ */ e.jsx(
299
- ps,
132
+ /* @__PURE__ */ d.jsx(
133
+ os,
300
134
  {
301
135
  animation: "slideUp",
302
- show: j,
136
+ show: h,
303
137
  handleClose: () => {
304
- m(!1), t && t(!1);
138
+ c(!1), l && l(!1);
305
139
  },
306
- contentClassName: v("ds-absolute ds-mb-0 ds-w-full"),
140
+ contentClassName: m("ds-absolute ds-mb-0 ds-w-full"),
307
141
  className: "ds-z-[29999]",
308
- children: /* @__PURE__ */ e.jsx(
309
- G,
142
+ children: /* @__PURE__ */ d.jsx(
143
+ U,
310
144
  {
311
145
  onClose: () => {
312
- m(!1), t && t(!1);
146
+ c(!1), l && l(!1);
313
147
  },
314
- closeButtonLabel: h,
315
- children: /* @__PURE__ */ e.jsx(
316
- H,
148
+ closeButtonLabel: f,
149
+ children: /* @__PURE__ */ d.jsx(
150
+ P,
317
151
  {
318
152
  isMultiSelect: o,
319
- options: c,
320
- value: b,
321
- setValue: x,
322
- setIsOpen: m,
323
- onChange: f
153
+ options: r,
154
+ value: p,
155
+ setValue: N,
156
+ setIsOpen: c,
157
+ onChange: u
324
158
  }
325
159
  )
326
160
  }
@@ -329,117 +163,117 @@ const $ = ({
329
163
  )
330
164
  ] });
331
165
  };
332
- $.displayName = "MobileDropdown";
333
- const G = ({ onClose: s, closeButtonLabel: d, children: a }) => /* @__PURE__ */ e.jsxs("div", { className: "ds-mb-0 ds-flex ds-max-h-dvh ds-w-full ds-flex-col ds-bg-white", children: [
334
- /* @__PURE__ */ e.jsxs("div", { className: "ds-flex ds-shrink-0 ds-items-center ds-justify-between ds-px-8 ds-py-4", children: [
335
- /* @__PURE__ */ e.jsx(
166
+ R.displayName = "MobileDropdown";
167
+ const U = ({ onClose: s, closeButtonLabel: e, children: a }) => /* @__PURE__ */ d.jsxs("div", { className: "ds-mb-0 ds-flex ds-max-h-dvh ds-w-full ds-flex-col ds-bg-white", children: [
168
+ /* @__PURE__ */ d.jsxs("div", { className: "ds-flex ds-shrink-0 ds-items-center ds-justify-between ds-px-8 ds-py-4", children: [
169
+ /* @__PURE__ */ d.jsx(
336
170
  "div",
337
171
  {
338
172
  onClick: s,
339
173
  className: "ds-flex ds-size-5 ds-cursor-pointer ds-items-center ds-justify-center",
340
- children: /* @__PURE__ */ e.jsx(bs, { className: "ds-size-4" })
174
+ children: /* @__PURE__ */ d.jsx(fs, { className: "ds-size-4" })
341
175
  }
342
176
  ),
343
- /* @__PURE__ */ e.jsx("div", { className: "ds-size-5" })
177
+ /* @__PURE__ */ d.jsx("div", { className: "ds-size-5" })
344
178
  ] }),
345
- /* @__PURE__ */ e.jsx("div", { className: "ds-grow ds-overflow-y-auto ds-p-4 ds-text-xSmallCalloutRegular", children: a }),
346
- /* @__PURE__ */ e.jsx("div", { className: "ds-px-8 ds-py-4", children: /* @__PURE__ */ e.jsx(
347
- gs,
179
+ /* @__PURE__ */ d.jsx("div", { className: "ds-grow ds-overflow-y-auto ds-p-4 ds-text-xSmallCalloutRegular", children: a }),
180
+ /* @__PURE__ */ d.jsx("div", { className: "ds-px-8 ds-py-4", children: /* @__PURE__ */ d.jsx(
181
+ xs,
348
182
  {
349
183
  buttonClassName: "ds-py-3",
350
184
  onClick: s,
351
- children: d
185
+ children: e
352
186
  }
353
187
  ) })
354
188
  ] });
355
- G.displayName = "MobilePopoverContentWrapper";
356
- const q = ({
189
+ U.displayName = "MobilePopoverContentWrapper";
190
+ const V = ({
357
191
  selectedOption: s,
358
- getSelectedValueDisplayText: d,
192
+ getSelectedValueDisplayText: e,
359
193
  placeholder: a
360
194
  }) => {
361
- const t = !s || Array.isArray(s) && s.length === 0 ? a || "" : d(s);
362
- return /* @__PURE__ */ e.jsx(
363
- I,
195
+ const l = !s || Array.isArray(s) && s.length === 0 ? a || "" : e(s);
196
+ return /* @__PURE__ */ d.jsx(
197
+ cs,
364
198
  {
365
199
  color: "secondary",
366
- endIcon: /* @__PURE__ */ e.jsx(hs, { className: "ds-size-4" }),
200
+ endIcon: /* @__PURE__ */ d.jsx(us, { className: "ds-size-4" }),
367
201
  buttonClassName: "ds-justify-between",
368
- children: t
202
+ children: l
369
203
  }
370
204
  );
371
- }, H = ({
205
+ }, P = ({
372
206
  options: s,
373
- isMultiSelect: d,
207
+ isMultiSelect: e,
374
208
  value: a,
375
- setValue: t,
209
+ setValue: l,
376
210
  setIsOpen: i,
377
- onChange: u
378
- }) => s && s.map((l) => /* @__PURE__ */ e.jsx(
379
- Ds,
211
+ onChange: n
212
+ }) => s && s.map((t) => /* @__PURE__ */ d.jsx(
213
+ js,
380
214
  {
381
215
  onClick: () => {
382
- let c;
383
- if (d) {
216
+ let r;
217
+ if (e) {
384
218
  const o = a || [];
385
- o.includes(l.value) ? c = o.filter((f) => f !== l.value) : c = [...o, l.value];
219
+ o.includes(t.value) ? r = o.filter((u) => u !== t.value) : r = [...o, t.value];
386
220
  } else
387
- c = l.value, i(!1);
388
- t(c), u && u(R(c, s));
221
+ r = t.value, i(!1);
222
+ l(r), n && n(D(r, s));
389
223
  },
390
- option: l,
391
- isSelected: Array.isArray(a) ? a.some((c) => c === l.value) : a === l.value,
392
- showCheckbox: d
224
+ option: t,
225
+ isSelected: Array.isArray(a) ? a.some((r) => r === t.value) : a === t.value,
226
+ showCheckbox: e
393
227
  },
394
- l.value
395
- )), Ds = ({
228
+ t.value
229
+ )), js = ({
396
230
  onClick: s,
397
- option: d,
231
+ option: e,
398
232
  isSelected: a,
399
- showCheckbox: t
400
- }) => /* @__PURE__ */ e.jsxs(
233
+ showCheckbox: l
234
+ }) => /* @__PURE__ */ d.jsxs(
401
235
  "div",
402
236
  {
403
- onClick: d.disabled ? void 0 : s,
404
- className: v(
237
+ onClick: e.disabled ? void 0 : s,
238
+ className: m(
405
239
  "ds-group ds-flex ds-min-h-[72px] ds-cursor-pointer ds-items-center ds-gap-4 ds-rounded ds-px-4 ds-py-2 ds-text-smallFootnoteEmphasized hover:ds-bg-[#F6F8FC] ds-tablet:ds-min-h-[auto] ds-tablet:ds-gap-2 ds-tablet:ds-px-2 ds-desktop:ds-text-mediumFootnoteEmphasized",
406
- !t && "ds-transition-[padding] ds-duration-300 hover:ds-px-4"
240
+ !l && "ds-transition-[padding] ds-duration-300 hover:ds-px-4"
407
241
  ),
408
242
  children: [
409
- d.thumbnailUrl && /* @__PURE__ */ e.jsx(
243
+ e.thumbnailUrl && /* @__PURE__ */ d.jsx(
410
244
  "img",
411
245
  {
412
- src: d.thumbnailUrl,
246
+ src: e.thumbnailUrl,
413
247
  className: "ds-h-14 ds-w-14 ds-shrink-0 ds-rounded ds-object-cover group-hover:ds-pr-0 ds-tablet:ds-h-6 ds-tablet:ds-w-9 ds-tablet:ds-rounded-sm"
414
248
  }
415
249
  ),
416
- d.icon,
417
- /* @__PURE__ */ e.jsx(
250
+ e.icon,
251
+ /* @__PURE__ */ d.jsx(
418
252
  "div",
419
253
  {
420
- className: v(
254
+ className: m(
421
255
  "ds-flex-grow",
422
- !t && "ds-transition-[padding] ds-duration-300 group-hover:ds-pr-0 ds-tablet:ds-pr-4"
256
+ !l && "ds-transition-[padding] ds-duration-300 group-hover:ds-pr-0 ds-tablet:ds-pr-4"
423
257
  ),
424
- children: d.label
258
+ children: e.label
425
259
  }
426
260
  ),
427
- a && !t && /* @__PURE__ */ e.jsx(vs, { className: "ds-size-4 ds-shrink-0" }),
428
- t && /* @__PURE__ */ e.jsx(
429
- ys,
261
+ a && !l && /* @__PURE__ */ d.jsx(ms, { className: "ds-size-4 ds-shrink-0" }),
262
+ l && /* @__PURE__ */ d.jsx(
263
+ ps,
430
264
  {
431
265
  isChecked: a,
432
- disabled: d.disabled
266
+ disabled: e.disabled
433
267
  }
434
268
  )
435
269
  ]
436
270
  }
437
- ), R = (s, d) => Array.isArray(s) ? d.filter((a) => s.includes(a.value)) : d.find((a) => a.value === s), J = (s) => Array.isArray(s) ? s.map((d) => d.label).join(", ") : s.label;
271
+ ), D = (s, e) => Array.isArray(s) ? e.filter((a) => s.includes(a.value)) : e.find((a) => a.value === s), S = (s) => Array.isArray(s) ? s.map((e) => e.label).join(", ") : s.label;
438
272
  export {
439
- I as Button,
440
- _s as ButtonsGroupSelector,
441
- U as DesktopDropdown,
442
- ks as Dropdown,
443
- $ as MobileDropdown,
444
- R as findOptionByValue
273
+ cs as Button,
274
+ ks as ButtonsGroupSelector,
275
+ M as DesktopDropdown,
276
+ hs as Dropdown,
277
+ R as MobileDropdown,
278
+ D as findOptionByValue
445
279
  };
package/dist/index.d.ts CHANGED
@@ -761,6 +761,8 @@ export declare const LoadingIcon: FC<{
761
761
  className?: string;
762
762
  }>;
763
763
 
764
+ export declare const LocaleSettingsModal: FC<LocaleSettingsModalProps>;
765
+
764
766
  export declare interface LocaleSettingsModalProps {
765
767
  languages?: Option_3[];
766
768
  currencies?: Option_3[];