@scbt-ecom/ui 0.45.2 → 0.46.0

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.
@@ -59,6 +59,7 @@ export declare const Uncontrolled: {
59
59
  filterDisabled?: boolean;
60
60
  externalHandlers?: import('./select/Select').ExternalHandlers;
61
61
  emptyList?: (query?: string) => React.ReactNode;
62
+ reset?: string;
62
63
  } & import('react').RefAttributes<HTMLInputElement>>;
63
64
  CheckboxBase: import('react').ForwardRefExoticComponent<import('@radix-ui/react-checkbox').CheckboxProps & {
64
65
  classes?: import('./checkbox/Checkbox').CheckboxBaseClasses;
@@ -76,6 +76,10 @@ export type SelectBaseProps<Multi extends boolean> = Omit<ComboboxProps<SelectIt
76
76
  * Кастомизация отображения текста при пустом списке
77
77
  */
78
78
  emptyList?: (query?: string) => React.ReactNode;
79
+ /**
80
+ * Добавляет option который, позволяет очистить значение селекта
81
+ */
82
+ reset?: string;
79
83
  };
80
84
  export declare const SelectBase: import('react').ForwardRefExoticComponent<Omit<ComboboxProps<SelectItemOption, boolean, "li">, "className" | "onChange" | "multiple" | "by" | "virtual"> & {
81
85
  /**
@@ -138,5 +142,9 @@ export declare const SelectBase: import('react').ForwardRefExoticComponent<Omit<
138
142
  * Кастомизация отображения текста при пустом списке
139
143
  */
140
144
  emptyList?: (query?: string) => React.ReactNode;
145
+ /**
146
+ * Добавляет option который, позволяет очистить значение селекта
147
+ */
148
+ reset?: string;
141
149
  } & import('react').RefAttributes<HTMLInputElement>>;
142
150
  export {};
@@ -1,3 +1,2 @@
1
- export { isSingleOption } from './model/typeGuards';
2
1
  export { SelectBase, type SelectBaseProps } from './Select';
3
- export type { SelectItemOption } from './model';
2
+ export { type SelectItemOption, isSingleOption } from './model';
@@ -1,2 +1,2 @@
1
1
  export type * from './types';
2
- export { compareByValue } from './compareByValue';
2
+ export { isSingleOption } from './typeGuards';
@@ -2,7 +2,7 @@ import { DeepPartial } from '../../../../../types';
2
2
  import { FieldAttachment } from '../../../ui';
3
3
  type FieldAttachmentProps = React.ComponentPropsWithoutRef<typeof FieldAttachment>;
4
4
  export type SelectItemOption = {
5
- value: string;
5
+ value: string | null;
6
6
  label: string;
7
7
  helperText?: string;
8
8
  disabled?: boolean;
@@ -19,4 +19,5 @@ export declare const baseDefaultMessages: {
19
19
  VALUE_OUT_OF_RANGE: <T extends Primitive>(range: T[]) => string;
20
20
  DATE_MIN: (min: Date | string) => string;
21
21
  DATE_MAX: (max: Date | string) => string;
22
+ INVALID_URL: () => string;
22
23
  };
@@ -5,6 +5,7 @@ import { getPhoneSchema } from './phone.validators';
5
5
  import { getSelectSchema } from './select.validators';
6
6
  import { getStringSchema } from './string.validators';
7
7
  import { getUnionSchema } from './union.validators';
8
+ import { getUrlSchema } from './url.validators';
8
9
  export declare const baseValidationSchemas: {
9
10
  getStringSchema: typeof getStringSchema;
10
11
  getEmailSchema: typeof getEmailSchema;
@@ -13,4 +14,5 @@ export declare const baseValidationSchemas: {
13
14
  getPhoneSchema: typeof getPhoneSchema;
14
15
  getDateSchema: typeof getDateSchema;
15
16
  getUnionSchema: typeof getUnionSchema;
17
+ getUrlSchema: typeof getUrlSchema;
16
18
  };
@@ -0,0 +1,28 @@
1
+ export type UrlValidationOptions<Required extends boolean> = {
2
+ /**
3
+ * указывает что поле обязательное
4
+ * @default true
5
+ */
6
+ required?: Required;
7
+ /**
8
+ * Регулярное выражение для проверки email на валидность
9
+ */
10
+ regexp?: RegExp;
11
+ message?: {
12
+ min?: string;
13
+ invalid?: string;
14
+ };
15
+ };
16
+ /**
17
+ * Схема валидации обязательного поля ссылки
18
+ */
19
+ declare const getUrlRequired: (props?: Omit<UrlValidationOptions<true>, "required">) => import('zod').ZodDefault<import('zod').ZodString>;
20
+ type UrlRequiredSchema = ReturnType<typeof getUrlRequired>;
21
+ /**
22
+ * Схема валидации опционального поля ссылки
23
+ */
24
+ declare const getUrlOptional: (props?: Omit<UrlValidationOptions<false>, "required">) => import('zod').ZodEffects<import('zod').ZodOptional<import('zod').ZodEffects<import('zod').ZodString, string, string>>, string | undefined, string | undefined>;
25
+ type UrlOptionalSchema = ReturnType<typeof getUrlOptional>;
26
+ export declare function getUrlSchema(props?: UrlValidationOptions<true>): UrlRequiredSchema;
27
+ export declare function getUrlSchema(props?: UrlValidationOptions<false>): UrlOptionalSchema;
28
+ export {};
@@ -13,6 +13,7 @@ export declare const zodValidators: {
13
13
  getPhoneSchema: typeof import('./base/phone.validators').getPhoneSchema;
14
14
  getDateSchema: typeof import('./base/date.validators').getDateSchema;
15
15
  getUnionSchema: typeof import('./base/union.validators').getUnionSchema;
16
+ getUrlSchema: typeof import('./base/url.validators').getUrlSchema;
16
17
  };
17
18
  dadata: {
18
19
  getFioSchema: typeof import('./dadata').getFioSchema;
package/dist/ui.js CHANGED
@@ -1,9 +1,9 @@
1
- import { j as o, c as B, R as z, B as F, u as M, f as V, g as L, h as G, i as v, k as N, l as H, m as K, n as g, o as O, A as $, H as k, I as w, p as q, q as y, D as U, r as W, s as Y } from "./index-MT92CfvO.js";
2
- import { d as Tt, t as It, e as Ct, C as St, v as _t, K as At, L as Rt, N as Dt, P as Pt, a as Et, S as Bt, w as zt, U as Ft, b as Mt, x as Vt } from "./index-MT92CfvO.js";
1
+ import { j as o, c as B, R as z, B as F, u as M, f as V, g as L, h as G, i as v, k as N, l as H, m as K, n as g, o as O, A as $, H as k, I as w, p as q, q as y, D as U, r as W, s as Y } from "./index-BrkPKCF9.js";
2
+ import { d as It, t as At, e as Ct, C as St, v as _t, K as Rt, L as Dt, N as Pt, P as Et, a as Bt, S as zt, w as Ft, U as Mt, b as Vt } from "./index-BrkPKCF9.js";
3
3
  import * as x from "react";
4
4
  import { forwardRef as J, useEffect as Q } from "react";
5
5
  import { c as d } from "./typeGuards-yOWv7RXH.js";
6
- import { D as Gt, d as Ht, f as Kt, b as Ot, a as $t } from "./utils-Dx_j5QL2.js";
6
+ import { D as Gt, d as Ht, f as Kt, b as Ot, a as $t } from "./utils-SIizw_5C.js";
7
7
  import { createPortal as X } from "react-dom";
8
8
  const Z = B(
9
9
  "group flex items-center justify-center cursor-pointer rounded-full outline-offset-[3px] outline-transparent outline-2 transition duration-12 active:scale-[0.97] disabled:pointer-events-none",
@@ -26,22 +26,22 @@ const Z = B(
26
26
  }
27
27
  }
28
28
  ), bt = J(
29
- ({ size: e, intent: r, children: i, classes: a, type: t = "button", ...l }, n) => /* @__PURE__ */ o.jsx("button", { ref: n, type: t, className: d(Z({ intent: r, size: e }), a == null ? void 0 : a.button), ...l, children: /* @__PURE__ */ o.jsx("span", { className: d(a == null ? void 0 : a.icon), children: i }) })
30
- ), ft = ({ className: e }) => /* @__PURE__ */ o.jsx("div", { className: d("skeleton-apply h-full w-full", e) }), xt = ({ isVisible: e, classes: r, children: i, buttonProps: a }) => /* @__PURE__ */ o.jsxs(
29
+ ({ size: r, intent: e, children: i, classes: a, type: t = "button", ...l }, n) => /* @__PURE__ */ o.jsx("button", { ref: n, type: t, className: d(Z({ intent: e, size: r }), a == null ? void 0 : a.button), ...l, children: /* @__PURE__ */ o.jsx("span", { className: d(a == null ? void 0 : a.icon), children: i }) })
30
+ ), ft = ({ className: r }) => /* @__PURE__ */ o.jsx("div", { className: d("skeleton-apply h-full w-full", r) }), xt = ({ isVisible: r, classes: e, children: i, buttonProps: a }) => /* @__PURE__ */ o.jsxs(
31
31
  z,
32
32
  {
33
33
  className: d(
34
34
  "fixed bottom-0 left-1/2 z-[60] w-full max-w-[604px] -translate-x-1/2 translate-y-0 rounded-t-lg bg-color-white px-6 py-4 shadow-[0px_-6px_8px_0px_#2929290A] transition-transform duration-1000 desktop:hidden",
35
- { "translate-y-[100%]": !e },
36
- r == null ? void 0 : r.root
35
+ { "translate-y-[100%]": !r },
36
+ e == null ? void 0 : e.root
37
37
  ),
38
38
  children: [
39
39
  i,
40
- /* @__PURE__ */ o.jsx(F, { size: "lg", className: d("m-auto w-full", r == null ? void 0 : r.button), ...a, children: "Оформить заявку" })
40
+ /* @__PURE__ */ o.jsx(F, { size: "lg", className: d("m-auto w-full", e == null ? void 0 : e.button), ...a, children: "Оформить заявку" })
41
41
  ]
42
42
  }
43
- ), vt = ({ topContent: e, bottomContent: r, progress: i, maxPercent: a = 100, classes: t }) => /* @__PURE__ */ o.jsxs("div", { className: d("flex w-full flex-col", t == null ? void 0 : t.root), children: [
44
- e && /* @__PURE__ */ o.jsx("div", { className: d("mb-2 flex justify-between gap-5", t == null ? void 0 : t.topContent), children: e }),
43
+ ), vt = ({ topContent: r, bottomContent: e, progress: i, maxPercent: a = 100, classes: t }) => /* @__PURE__ */ o.jsxs("div", { className: d("flex w-full flex-col", t == null ? void 0 : t.root), children: [
44
+ r && /* @__PURE__ */ o.jsx("div", { className: d("mb-2 flex justify-between gap-5", t == null ? void 0 : t.topContent), children: r }),
45
45
  /* @__PURE__ */ o.jsxs("div", { className: d("relative h-2 w-[328xp] rounded-md bg-color-blue-grey-100 desktop:w-[524px]", t == null ? void 0 : t.progressBar), children: [
46
46
  /* @__PURE__ */ o.jsx(
47
47
  "div",
@@ -61,12 +61,12 @@ const Z = B(
61
61
  }
62
62
  )
63
63
  ] }),
64
- r && /* @__PURE__ */ o.jsx("div", { className: d("mt-2 flex justify-between gap-5", t == null ? void 0 : t.bottomContent), children: r })
64
+ e && /* @__PURE__ */ o.jsx("div", { className: d("mt-2 flex justify-between gap-5", t == null ? void 0 : t.bottomContent), children: e })
65
65
  ] });
66
66
  var s = "Tabs", [tt, gt] = L(s, [
67
67
  N
68
- ]), T = N(), [et, h] = tt(s), I = x.forwardRef(
69
- (e, r) => {
68
+ ]), T = N(), [rt, h] = tt(s), I = x.forwardRef(
69
+ (r, e) => {
70
70
  const {
71
71
  __scopeTabs: i,
72
72
  value: a,
@@ -76,13 +76,13 @@ var s = "Tabs", [tt, gt] = L(s, [
76
76
  dir: u,
77
77
  activationMode: b = "automatic",
78
78
  ...m
79
- } = e, c = M(u), [p, f] = V({
79
+ } = r, c = M(u), [p, f] = V({
80
80
  prop: a,
81
81
  onChange: t,
82
82
  defaultProp: l
83
83
  });
84
84
  return /* @__PURE__ */ o.jsx(
85
- et,
85
+ rt,
86
86
  {
87
87
  scope: i,
88
88
  baseId: G(),
@@ -97,7 +97,7 @@ var s = "Tabs", [tt, gt] = L(s, [
97
97
  dir: c,
98
98
  "data-orientation": n,
99
99
  ...m,
100
- ref: r
100
+ ref: e
101
101
  }
102
102
  )
103
103
  }
@@ -105,9 +105,9 @@ var s = "Tabs", [tt, gt] = L(s, [
105
105
  }
106
106
  );
107
107
  I.displayName = s;
108
- var C = "TabsList", S = x.forwardRef(
109
- (e, r) => {
110
- const { __scopeTabs: i, loop: a = !0, ...t } = e, l = h(C, i), n = T(i);
108
+ var A = "TabsList", C = x.forwardRef(
109
+ (r, e) => {
110
+ const { __scopeTabs: i, loop: a = !0, ...t } = r, l = h(A, i), n = T(i);
111
111
  return /* @__PURE__ */ o.jsx(
112
112
  H,
113
113
  {
@@ -122,17 +122,17 @@ var C = "TabsList", S = x.forwardRef(
122
122
  role: "tablist",
123
123
  "aria-orientation": l.orientation,
124
124
  ...t,
125
- ref: r
125
+ ref: e
126
126
  }
127
127
  )
128
128
  }
129
129
  );
130
130
  }
131
131
  );
132
- S.displayName = C;
133
- var _ = "TabsTrigger", A = x.forwardRef(
134
- (e, r) => {
135
- const { __scopeTabs: i, value: a, disabled: t = !1, ...l } = e, n = h(_, i), u = T(i), b = P(n.baseId, a), m = E(n.baseId, a), c = a === n.value;
132
+ C.displayName = A;
133
+ var S = "TabsTrigger", _ = x.forwardRef(
134
+ (r, e) => {
135
+ const { __scopeTabs: i, value: a, disabled: t = !1, ...l } = r, n = h(S, i), u = T(i), b = P(n.baseId, a), m = E(n.baseId, a), c = a === n.value;
136
136
  return /* @__PURE__ */ o.jsx(
137
137
  K,
138
138
  {
@@ -152,14 +152,14 @@ var _ = "TabsTrigger", A = x.forwardRef(
152
152
  disabled: t,
153
153
  id: b,
154
154
  ...l,
155
- ref: r,
156
- onMouseDown: g(e.onMouseDown, (p) => {
155
+ ref: e,
156
+ onMouseDown: g(r.onMouseDown, (p) => {
157
157
  !t && p.button === 0 && p.ctrlKey === !1 ? n.onValueChange(a) : p.preventDefault();
158
158
  }),
159
- onKeyDown: g(e.onKeyDown, (p) => {
159
+ onKeyDown: g(r.onKeyDown, (p) => {
160
160
  [" ", "Enter"].includes(p.key) && n.onValueChange(a);
161
161
  }),
162
- onFocus: g(e.onFocus, () => {
162
+ onFocus: g(r.onFocus, () => {
163
163
  const p = n.activationMode !== "manual";
164
164
  !c && !t && p && n.onValueChange(a);
165
165
  })
@@ -169,10 +169,10 @@ var _ = "TabsTrigger", A = x.forwardRef(
169
169
  );
170
170
  }
171
171
  );
172
- A.displayName = _;
172
+ _.displayName = S;
173
173
  var R = "TabsContent", D = x.forwardRef(
174
- (e, r) => {
175
- const { __scopeTabs: i, value: a, forceMount: t, children: l, ...n } = e, u = h(R, i), b = P(u.baseId, a), m = E(u.baseId, a), c = a === u.value, p = x.useRef(c);
174
+ (r, e) => {
175
+ const { __scopeTabs: i, value: a, forceMount: t, children: l, ...n } = r, u = h(R, i), b = P(u.baseId, a), m = E(u.baseId, a), c = a === u.value, p = x.useRef(c);
176
176
  return x.useEffect(() => {
177
177
  const f = requestAnimationFrame(() => p.current = !1);
178
178
  return () => cancelAnimationFrame(f);
@@ -187,9 +187,9 @@ var R = "TabsContent", D = x.forwardRef(
187
187
  id: m,
188
188
  tabIndex: 0,
189
189
  ...n,
190
- ref: r,
190
+ ref: e,
191
191
  style: {
192
- ...e.style,
192
+ ...r.style,
193
193
  animationDuration: p.current ? "0s" : void 0
194
194
  },
195
195
  children: f && l
@@ -198,24 +198,24 @@ var R = "TabsContent", D = x.forwardRef(
198
198
  }
199
199
  );
200
200
  D.displayName = R;
201
- function P(e, r) {
202
- return `${e}-trigger-${r}`;
201
+ function P(r, e) {
202
+ return `${r}-trigger-${e}`;
203
203
  }
204
- function E(e, r) {
205
- return `${e}-content-${r}`;
204
+ function E(r, e) {
205
+ return `${r}-content-${e}`;
206
206
  }
207
- var rt = I, ot = S, at = A, j = D;
208
- const it = ({ classes: e, contents: r }) => /* @__PURE__ */ o.jsx("div", { className: d("flex flex-col gap-4", e == null ? void 0 : e.contentsWrapper), children: r == null ? void 0 : r.map(({ id: i, body: a, accordion: t }) => t && (t != null && t.title) ? /* @__PURE__ */ o.jsx(j, { value: i, className: d("py-8", e == null ? void 0 : e.content), children: /* @__PURE__ */ o.jsx($, { label: t == null ? void 0 : t.title, children: a }) }, i) : /* @__PURE__ */ o.jsx(j, { value: i, className: d("py-8", e == null ? void 0 : e.content), children: a }, i)) }), st = ({ renderContent: e, defaultActiveTabId: r = "1", value: i, onChangeTab: a, classes: t }) => {
207
+ var et = I, ot = C, at = _, j = D;
208
+ const it = ({ classes: r, contents: e }) => /* @__PURE__ */ o.jsx("div", { className: d("flex flex-col gap-4", r == null ? void 0 : r.contentsWrapper), children: e == null ? void 0 : e.map(({ id: i, body: a, accordion: t }) => t && (t != null && t.title) ? /* @__PURE__ */ o.jsx(j, { value: i, className: d("py-8", r == null ? void 0 : r.content), children: /* @__PURE__ */ o.jsx($, { label: t == null ? void 0 : t.title, children: a }) }, i) : /* @__PURE__ */ o.jsx(j, { value: i, className: d("py-8", r == null ? void 0 : r.content), children: a }, i)) }), st = ({ renderContent: r, defaultActiveTabId: e = "1", value: i, onChangeTab: a, classes: t }) => {
209
209
  var l;
210
210
  return /* @__PURE__ */ o.jsxs(
211
- rt,
211
+ et,
212
212
  {
213
213
  value: i,
214
214
  onValueChange: a,
215
- defaultValue: r,
215
+ defaultValue: e,
216
216
  className: d("flex flex-col", t == null ? void 0 : t.root),
217
217
  children: [
218
- /* @__PURE__ */ o.jsx(ot, { className: d("flex items-center gap-4", t == null ? void 0 : t.list), children: (l = e == null ? void 0 : e.triggers) == null ? void 0 : l.map(({ id: n, label: u }) => /* @__PURE__ */ o.jsx(
218
+ /* @__PURE__ */ o.jsx(ot, { className: d("flex items-center gap-4", t == null ? void 0 : t.list), children: (l = r == null ? void 0 : r.triggers) == null ? void 0 : l.map(({ id: n, label: u }) => /* @__PURE__ */ o.jsx(
219
219
  at,
220
220
  {
221
221
  value: n,
@@ -227,7 +227,7 @@ const it = ({ classes: e, contents: r }) => /* @__PURE__ */ o.jsx("div", { class
227
227
  },
228
228
  n
229
229
  )) }),
230
- /* @__PURE__ */ o.jsx(it, { contents: e == null ? void 0 : e.contents, classes: t == null ? void 0 : t.tabContent })
230
+ /* @__PURE__ */ o.jsx(it, { contents: r == null ? void 0 : r.contents, classes: t == null ? void 0 : t.tabContent })
231
231
  ]
232
232
  }
233
233
  );
@@ -241,19 +241,19 @@ const it = ({ classes: e, contents: r }) => /* @__PURE__ */ o.jsx("div", { class
241
241
  animate: { opacity: 1, scale: 1 },
242
242
  exit: { opacity: 0, scale: 0 },
243
243
  transition: { duration: 0.3, ease: "easeInOut" }
244
- }, lt = ({ title: e, closeModal: r, classes: i }) => /* @__PURE__ */ o.jsxs("div", { className: d("flex items-start justify-between gap-4", i == null ? void 0 : i.header), children: [
245
- e && /* @__PURE__ */ o.jsx(k, { as: "h3", className: d("flex-1 text-color-dark", i == null ? void 0 : i.title), children: e }),
244
+ }, lt = ({ title: r, closeModal: e, classes: i }) => /* @__PURE__ */ o.jsxs("div", { className: d("flex items-start justify-between gap-4", i == null ? void 0 : i.header), children: [
245
+ r && /* @__PURE__ */ o.jsx(k, { as: "h3", className: d("flex-1 text-color-dark", i == null ? void 0 : i.title), children: r }),
246
246
  /* @__PURE__ */ o.jsx(
247
247
  w,
248
248
  {
249
- onClick: r,
249
+ onClick: e,
250
250
  name: "general/close",
251
251
  className: d("size-8 cursor-pointer text-icon-dark-hover", i == null ? void 0 : i.icon)
252
252
  }
253
253
  )
254
254
  ] }), ht = ({
255
- title: e,
256
- children: r,
255
+ title: r,
256
+ children: e,
257
257
  isModalOpen: i,
258
258
  isPortal: a = !0,
259
259
  portalContainer: t = ((u) => (u = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : u.body)(),
@@ -286,65 +286,65 @@ const it = ({ classes: e, contents: r }) => /* @__PURE__ */ o.jsx("div", { class
286
286
  "data-test-id": "modal",
287
287
  ...dt,
288
288
  children: [
289
- /* @__PURE__ */ o.jsx(lt, { title: e, closeModal: l, classes: n == null ? void 0 : n.modalHeader }),
290
- /* @__PURE__ */ o.jsx("div", { className: d("mt-4", n == null ? void 0 : n.content), children: r })
289
+ /* @__PURE__ */ o.jsx(lt, { title: r, closeModal: l, classes: n == null ? void 0 : n.modalHeader }),
290
+ /* @__PURE__ */ o.jsx("div", { className: d("mt-4", n == null ? void 0 : n.content), children: e })
291
291
  ]
292
292
  }
293
293
  )
294
294
  }
295
295
  ) });
296
296
  return /* @__PURE__ */ o.jsx(o.Fragment, { children: a ? X(b, t) : b });
297
- }, yt = ({ maxToastViewLimit: e = 2, toastDuration: r = 5e3 }) => {
297
+ }, yt = ({ maxToastViewLimit: r = 2, toastDuration: e = 5e3 }) => {
298
298
  const { toasts: i } = U();
299
299
  return Q(() => {
300
- i.filter((a) => a.visible).filter((a, t) => t >= e).forEach((a) => W.dismiss(a.id));
301
- }, [e, i]), /* @__PURE__ */ o.jsx(
300
+ i.filter((a) => a.visible).filter((a, t) => t >= r).forEach((a) => W.dismiss(a.id));
301
+ }, [r, i]), /* @__PURE__ */ o.jsx(
302
302
  Y,
303
303
  {
304
304
  position: "top-center",
305
305
  toastOptions: {
306
- duration: r
306
+ duration: e
307
307
  }
308
308
  }
309
309
  );
310
- }, jt = ({ linksList: e }) => /* @__PURE__ */ o.jsx("div", { "aria-label": "Breadcrumb", className: "flex max-w-[840px] items-center gap-2", children: e.map((r) => /* @__PURE__ */ o.jsx(o.Fragment, { children: "path" in r ? /* @__PURE__ */ o.jsxs(
310
+ }, jt = ({ linksList: r }) => /* @__PURE__ */ o.jsx("div", { "aria-label": "Breadcrumb", className: "flex max-w-[840px] items-center gap-2", children: r.map((e) => /* @__PURE__ */ o.jsx(o.Fragment, { children: "path" in e ? /* @__PURE__ */ o.jsxs(
311
311
  "div",
312
312
  {
313
313
  className: d(
314
314
  "flex items-center gap-1 rounded-sm border-2 border-solid border-transparent px-1 focus-within:border-primary-focus",
315
- { "pointer-events-none !border-transparent": r == null ? void 0 : r.isDisabled }
315
+ { "pointer-events-none !border-transparent": e == null ? void 0 : e.isDisabled }
316
316
  ),
317
317
  children: [
318
318
  /* @__PURE__ */ o.jsx(
319
319
  "a",
320
320
  {
321
- href: r.path,
321
+ href: e.path,
322
322
  target: "_blank",
323
323
  rel: "noreferrer",
324
324
  className: d(
325
325
  "desk-body-regular-m text-color-primary-default outline-none hover:text-color-primary-hover focus:text-color-primary-default",
326
- { "!text-color-disabled": r == null ? void 0 : r.isDisabled }
326
+ { "!text-color-disabled": e == null ? void 0 : e.isDisabled }
327
327
  ),
328
- children: r.label
328
+ children: e.label
329
329
  }
330
330
  ),
331
331
  /* @__PURE__ */ o.jsx(
332
332
  w,
333
333
  {
334
334
  name: "arrows/arrowRight",
335
- className: d("size-4 text-icon-primary-default", { "!text-icon-disabled": r == null ? void 0 : r.isDisabled })
335
+ className: d("size-4 text-icon-primary-default", { "!text-icon-disabled": e == null ? void 0 : e.isDisabled })
336
336
  }
337
337
  )
338
338
  ]
339
339
  }
340
- ) : /* @__PURE__ */ o.jsx("div", { "aria-current": "page", className: "desk-body-regular-m text-color-blue-grey-600", children: r.label }) })) });
340
+ ) : /* @__PURE__ */ o.jsx("div", { "aria-current": "page", className: "desk-body-regular-m text-color-blue-grey-600", children: e.label }) })) }), Nt = (r) => !!r && !Array.isArray(r);
341
341
  export {
342
342
  $ as Accordion,
343
- Tt as Badge,
343
+ It as Badge,
344
344
  jt as Breadcrumbs,
345
345
  F as Button,
346
346
  bt as ButtonIcon,
347
- It as Calendar,
347
+ At as Calendar,
348
348
  Ct as Controlled,
349
349
  St as CustomLink,
350
350
  Gt as DATE_VISIBLE_PATTERN,
@@ -352,25 +352,25 @@ export {
352
352
  k as Heading,
353
353
  _t as Hint,
354
354
  w as Icon,
355
- At as KeyboardShortcuts,
356
- Rt as Loader,
355
+ Rt as KeyboardShortcuts,
356
+ Dt as Loader,
357
357
  ht as Modal,
358
- Dt as Notification,
358
+ Pt as Notification,
359
359
  yt as NotificationProvider,
360
- Pt as PhoneView,
361
- Et as Popover,
360
+ Et as PhoneView,
361
+ Bt as Popover,
362
362
  vt as ProgressBar,
363
363
  z as ResponsiveContainer,
364
- Bt as Section,
364
+ zt as Section,
365
365
  ft as Skeleton,
366
- zt as Slot,
366
+ Ft as Slot,
367
367
  st as TabsSwitcher,
368
- Ft as Uncontrolled,
369
- Mt as brandLogos,
368
+ Mt as Uncontrolled,
369
+ Vt as brandLogos,
370
370
  Ht as defaultClassNames,
371
371
  Kt as formatDateToLocaleString,
372
372
  Ot as formatDateToMonthString,
373
373
  $t as formatDateToYearString,
374
- Vt as isSingleOption
374
+ Nt as isSingleOption
375
375
  };
376
376
  //# sourceMappingURL=ui.js.map