@shmidko61/lc-ui-kit 0.0.3 → 0.0.5

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 (44) hide show
  1. package/dist/accordion.cjs +1 -1
  2. package/dist/accordion.js +1 -1
  3. package/dist/box/box.d.ts +7 -4
  4. package/dist/box/box.types.d.ts +1 -1
  5. package/dist/button/button.helpers.d.ts +1 -1
  6. package/dist/flex/flex.d.ts +6 -2
  7. package/dist/flex/flex.types.d.ts +2 -2
  8. package/dist/grid/grid.d.ts +5 -1
  9. package/dist/grid/grid.types.d.ts +1 -1
  10. package/dist/icons/icons.d.ts +31 -30
  11. package/dist/icons.cjs +1 -1
  12. package/dist/icons.js +32 -36
  13. package/dist/index.cjs +1 -1
  14. package/dist/index.d.ts +1 -1
  15. package/dist/index.js +84 -90
  16. package/dist/input.cjs +1 -1
  17. package/dist/input.js +19 -19
  18. package/dist/media-card.cjs +1 -1
  19. package/dist/media-card.js +41 -42
  20. package/dist/media-gallery.cjs +1 -1
  21. package/dist/media-gallery.js +12 -12
  22. package/dist/modal.cjs +1 -1
  23. package/dist/modal.js +13 -13
  24. package/dist/pagination.cjs +1 -1
  25. package/dist/pagination.js +20 -20
  26. package/dist/shared/responsive-style/responsive-style.types.d.ts +1 -1
  27. package/dist/typography/typography.d.ts +4 -1
  28. package/dist/typography/typography.helpers.d.ts +1 -1
  29. package/dist/ui-kit-provider/ui-kit-provider.d.ts +4 -1
  30. package/package.json +3 -2
  31. package/dist/arrow-CS6d64Y4.cjs +0 -1
  32. package/dist/arrow-DBc2opRL.js +0 -5
  33. package/dist/drop-down-CdIuWbLC.cjs +0 -1
  34. package/dist/drop-down-DH2_3qXq.js +0 -5
  35. package/dist/eye-open-5zYaeyLp.cjs +0 -1
  36. package/dist/eye-open-CoTSj5cT.js +0 -5
  37. package/dist/media-picture-BN4saEVT.js +0 -6
  38. package/dist/media-picture-BmERSmsd.cjs +0 -1
  39. package/dist/telephone-DVftjRG9.cjs +0 -1
  40. package/dist/telephone-DvXakgBQ.js +0 -26
  41. package/dist/time-clock-DOwPzcx7.cjs +0 -1
  42. package/dist/time-clock-DjqcZ8tI.js +0 -5
  43. package/dist/x-mark-DId-ylR6.cjs +0 -1
  44. package/dist/x-mark-WU1eT82T.js +0 -5
package/dist/index.js CHANGED
@@ -1,97 +1,91 @@
1
- import { Accordion as e, AccordionItem as r, AccordionRoot as s } from "./accordion.js";
2
- import { Box as n } from "./box.js";
3
- import { Button as p, buttonSizeBorderRadius as c, buttonSizeBoxProps as l, buttonSizeClassNames as I, buttonVariantClassNames as m, buttonVariants as x } from "./button.js";
4
- import { U as d, u as T, a as b, b as u } from "./ui-kit-provider-C6Mk5g_7.js";
5
- import { Flex as k } from "./flex.js";
6
- import { Grid as g, GridItem as h } from "./grid.js";
7
- import { S as y, a as B, b as P, c as A, d as w, e as v, f as D, g as G, h as K, i as U, j as V, k as z, l as F, m as L, n as N, o as R, p as j, q as H, r as O, s as W, t as q, u as E } from "./telephone-DvXakgBQ.js";
8
- import { S as J } from "./arrow-DBc2opRL.js";
9
- import { S as Y, a as Z } from "./media-picture-BN4saEVT.js";
10
- import { S as $ } from "./eye-open-CoTSj5cT.js";
11
- import { S as ao } from "./time-clock-DjqcZ8tI.js";
12
- import { S as ro } from "./x-mark-WU1eT82T.js";
13
- import { S as to } from "./drop-down-DH2_3qXq.js";
14
- import { Input as io } from "./input.js";
15
- import { MediaCard as co } from "./media-card.js";
16
- import { MediaGallery as Io } from "./media-gallery.js";
17
- import { Pagination as xo } from "./pagination.js";
18
- import { Picture as To } from "./picture.js";
19
- import { Select as uo } from "./select.js";
20
- import { StatusBadge as ko } from "./status-badge.js";
21
- import { Switch as go } from "./switch.js";
22
- import { D as Mo, T as yo, a as Bo, b as Po, c as Ao, d as wo, e as vo, f as Do, g as Go, h as Ko, i as Uo, j as Vo, k as zo } from "./table-container-BsE-uIE1.js";
23
- import { Typography as Lo, typographyVariants as No } from "./typography.js";
24
- import { r as jo, a as Ho } from "./responsive-style.config-DFuATrIM.js";
1
+ import { Accordion as a, AccordionItem as r, AccordionRoot as n } from "./accordion.js";
2
+ import { Box as i } from "./box.js";
3
+ import { Button as s, buttonSizeBorderRadius as p, buttonSizeBoxProps as l, buttonSizeClassNames as I, buttonVariantClassNames as d, buttonVariants as m } from "./button.js";
4
+ import { U as x, u as b, a as f, b as u } from "./ui-kit-provider-C6Mk5g_7.js";
5
+ import { Flex as C } from "./flex.js";
6
+ import { Grid as S, GridItem as g } from "./grid.js";
7
+ import { ArrowCornerIcon as y, ArrowIcon as B, BurgerIcon as P, CheckIcon as A, CopyIcon as w, DropDown as v, EyeOpenIcon as D, FileIcon as G, GeoIcon as K, LockClosedIcon as U, LockOpenIcon as V, LogoutIcon as z, MailIcon as F, MediaMaxIcon as L, MediaPictureIcon as N, MediaTgIcon as R, MediaVkIcon as H, MediaWaIcon as O, NetUploadIcon as W, PaperclipIcon as j, PhoneIcon as E, PlusIcon as X, SaveIcon as q, SparkIcon as J, SparkleIcon as Q, TelephoneIcon as Y, TimeClockIcon as Z, TrashIcon as _, XMarkIcon as $ } from "./icons.js";
8
+ import { Input as eo } from "./input.js";
9
+ import { MediaCard as ro } from "./media-card.js";
10
+ import { MediaGallery as to } from "./media-gallery.js";
11
+ import { Pagination as co } from "./pagination.js";
12
+ import { Picture as po } from "./picture.js";
13
+ import { Select as Io } from "./select.js";
14
+ import { StatusBadge as To } from "./status-badge.js";
15
+ import { Switch as bo } from "./switch.js";
16
+ import { D as uo, T as ko, a as Co, b as Mo, c as So, d as go, e as ho, f as yo, g as Bo, h as Po, i as Ao, j as wo, k as vo } from "./table-container-BsE-uIE1.js";
17
+ import { Typography as Go, typographyVariants as Ko } from "./typography.js";
18
+ import { r as Vo, a as zo } from "./responsive-style.config-DFuATrIM.js";
25
19
  export {
26
- e as Accordion,
20
+ a as Accordion,
27
21
  r as AccordionItem,
28
- s as AccordionRoot,
22
+ n as AccordionRoot,
29
23
  y as ArrowCornerIcon,
30
- J as ArrowIcon,
31
- n as Box,
32
- B as BurgerIcon,
33
- p as Button,
34
- Y as CheckIcon,
35
- P as CopyIcon,
36
- Mo as DataTable,
37
- to as DropDown,
38
- $ as EyeOpenIcon,
39
- A as FileIcon,
40
- k as Flex,
41
- w as GeoIcon,
42
- g as Grid,
43
- h as GridItem,
44
- io as Input,
45
- v as LockClosedIcon,
46
- D as LockOpenIcon,
47
- G as LogoutIcon,
48
- K as MailIcon,
49
- co as MediaCard,
50
- Io as MediaGallery,
51
- U as MediaMaxIcon,
52
- Z as MediaPictureIcon,
53
- V as MediaTgIcon,
54
- z as MediaVkIcon,
55
- F as MediaWaIcon,
56
- L as NetUploadIcon,
57
- xo as Pagination,
58
- N as PaperclipIcon,
59
- R as PhoneIcon,
60
- To as Picture,
61
- j as PlusIcon,
62
- H as SaveIcon,
63
- uo as Select,
64
- O as SparkIcon,
65
- W as SparkleIcon,
66
- ko as StatusBadge,
67
- go as Switch,
68
- yo as Table,
69
- Bo as TableBody,
70
- Po as TableCaption,
71
- Ao as TableCell,
72
- wo as TableContainer,
73
- vo as TableFooter,
74
- Do as TableHead,
75
- Go as TableHeader,
76
- Ko as TableRow,
77
- Uo as TableScrollArea,
78
- Vo as TableStatus,
79
- zo as TableToolbar,
80
- q as TelephoneIcon,
81
- ao as TimeClockIcon,
82
- E as TrashIcon,
83
- Lo as Typography,
84
- d as UiKitProvider,
85
- ro as XMarkIcon,
86
- c as buttonSizeBorderRadius,
24
+ B as ArrowIcon,
25
+ i as Box,
26
+ P as BurgerIcon,
27
+ s as Button,
28
+ A as CheckIcon,
29
+ w as CopyIcon,
30
+ uo as DataTable,
31
+ v as DropDown,
32
+ D as EyeOpenIcon,
33
+ G as FileIcon,
34
+ C as Flex,
35
+ K as GeoIcon,
36
+ S as Grid,
37
+ g as GridItem,
38
+ eo as Input,
39
+ U as LockClosedIcon,
40
+ V as LockOpenIcon,
41
+ z as LogoutIcon,
42
+ F as MailIcon,
43
+ ro as MediaCard,
44
+ to as MediaGallery,
45
+ L as MediaMaxIcon,
46
+ N as MediaPictureIcon,
47
+ R as MediaTgIcon,
48
+ H as MediaVkIcon,
49
+ O as MediaWaIcon,
50
+ W as NetUploadIcon,
51
+ co as Pagination,
52
+ j as PaperclipIcon,
53
+ E as PhoneIcon,
54
+ po as Picture,
55
+ X as PlusIcon,
56
+ q as SaveIcon,
57
+ Io as Select,
58
+ J as SparkIcon,
59
+ Q as SparkleIcon,
60
+ To as StatusBadge,
61
+ bo as Switch,
62
+ ko as Table,
63
+ Co as TableBody,
64
+ Mo as TableCaption,
65
+ So as TableCell,
66
+ go as TableContainer,
67
+ ho as TableFooter,
68
+ yo as TableHead,
69
+ Bo as TableHeader,
70
+ Po as TableRow,
71
+ Ao as TableScrollArea,
72
+ wo as TableStatus,
73
+ vo as TableToolbar,
74
+ Y as TelephoneIcon,
75
+ Z as TimeClockIcon,
76
+ _ as TrashIcon,
77
+ Go as Typography,
78
+ x as UiKitProvider,
79
+ $ as XMarkIcon,
80
+ p as buttonSizeBorderRadius,
87
81
  l as buttonSizeBoxProps,
88
82
  I as buttonSizeClassNames,
89
- m as buttonVariantClassNames,
90
- x as buttonVariants,
91
- jo as responsiveBreakpointMinWidth,
92
- Ho as responsiveBreakpoints,
93
- No as typographyVariants,
94
- T as uiKitColorTokens,
95
- b as uiKitTypographyTokens,
83
+ d as buttonVariantClassNames,
84
+ m as buttonVariants,
85
+ Vo as responsiveBreakpointMinWidth,
86
+ zo as responsiveBreakpoints,
87
+ Ko as typographyVariants,
88
+ b as uiKitColorTokens,
89
+ f as uiKitTypographyTokens,
96
90
  u as useUiKitConfig
97
91
  };
package/dist/input.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),b=require("react"),S=require("./eye-open-5zYaeyLp.cjs"),l=require("./responsive-style.config-B2m9jVlX.cjs"),g=require("./typography.cjs");function _(r,o){return r&&typeof r!="boolean"?r:o}const f="w-full rounded-[8px] border border-transparent bg-[var(--color-background-subtle)] px-4 text-[14px] font-normal leading-[120%] text-[var(--color-text-primary)] outline-none transition-colors placeholder:text-[var(--color-text-secondary)] focus-visible:border-[var(--color-primary-accent)] focus-visible:ring-2 focus-visible:ring-[color-mix(in_srgb,var(--color-primary-accent)_35%,transparent)] disabled:cursor-not-allowed disabled:opacity-50 [font-family:var(--font-family)] [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none";function I({className:r,containerClassName:o,disabled:s,error:d=!1,helperText:m,id:h,label:p,leftIcon:n,rightIcon:j,variant:u="default",...a}){const w=b.useId(),i=h??w,[y,k]=b.useState(!1),t=!!d,x=_(d,m),N=u==="textarea",v=u==="password",c=v?e.jsx("button",{"aria-label":y?"Скрыть значение":"Показать значение",disabled:s,type:"button",onClick:()=>k(q=>!q),children:e.jsx(S.SvgEyeOpen,{})}):j;return e.jsxs("div",{className:l.cn("grid w-full gap-2",o),children:[p?e.jsx(g.Typography,{as:"label",color:"--color-text-secondary",htmlFor:i,variant:"b3",children:p}):null,e.jsxs("div",{className:"relative w-full",children:[n&&e.jsx("span",{className:"pointer-events-none absolute left-4 top-1/2 flex -translate-y-1/2 text-[var(--color-text-secondary)] [&_svg]:size-5",children:n}),N?e.jsx("textarea",{...a,"aria-invalid":t||a["aria-invalid"],className:l.cn(f,"min-h-[109px] resize-y px-4 py-3",t&&"border-[var(--color-secondary-accent-2)] focus-visible:ring-[var(--color-secondary-accent-2)]",n&&"pl-12",r),disabled:s,id:i}):e.jsx("input",{...a,"aria-invalid":t||a["aria-invalid"],className:l.cn(f,"min-h-[42px] py-3",t&&"border-[var(--color-secondary-accent-2)] focus-visible:ring-[var(--color-secondary-accent-2)]",n&&"pl-12",c&&"pr-12",r),disabled:s,id:i,type:v&&!y?"password":a.type??"text"}),c&&e.jsx("span",{className:"absolute right-2 top-1/2 flex -translate-y-1/2 text-[var(--color-text-secondary)] [&_svg]:size-5",children:c})]}),x?e.jsx(g.Typography,{as:"p",color:t?"--color-secondary-accent-2":"--color-text-secondary",variant:"b3",children:x}):null]})}exports.Input=I;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),b=require("react"),I=require("./icons.cjs"),l=require("./responsive-style.config-B2m9jVlX.cjs"),g=require("./typography.cjs");function _(r,n){return r&&typeof r!="boolean"?r:n}const f="w-full rounded-[8px] border border-transparent bg-[var(--color-background-subtle)] px-4 text-[14px] font-normal leading-[120%] text-[var(--color-text-primary)] outline-none transition-colors placeholder:text-[var(--color-text-secondary)] focus-visible:border-[var(--color-primary-accent)] focus-visible:ring-2 focus-visible:ring-[color-mix(in_srgb,var(--color-primary-accent)_35%,transparent)] disabled:cursor-not-allowed disabled:opacity-50 [font-family:var(--font-family)] [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none";function P({className:r,containerClassName:n,disabled:s,error:d=!1,helperText:m,id:h,label:p,leftIcon:o,rightIcon:j,variant:u="default",...a}){const w=b.useId(),i=h??w,[x,k]=b.useState(!1),t=!!d,y=_(d,m),N=u==="textarea",v=u==="password",c=v?e.jsx("button",{"aria-label":x?"Скрыть значение":"Показать значение",disabled:s,type:"button",onClick:()=>k(q=>!q),children:e.jsx(I.EyeOpenIcon,{})}):j;return e.jsxs("div",{className:l.cn("grid w-full gap-2",n),children:[p?e.jsx(g.Typography,{as:"label",color:"--color-text-secondary",htmlFor:i,variant:"b3",children:p}):null,e.jsxs("div",{className:"relative w-full",children:[o&&e.jsx("span",{className:"pointer-events-none absolute left-4 top-1/2 flex -translate-y-1/2 text-[var(--color-text-secondary)] [&_svg]:size-5",children:o}),N?e.jsx("textarea",{...a,"aria-invalid":t||a["aria-invalid"],className:l.cn(f,"min-h-[109px] resize-y px-4 py-3",t&&"border-[var(--color-secondary-accent-2)] focus-visible:ring-[var(--color-secondary-accent-2)]",o&&"pl-12",r),disabled:s,id:i}):e.jsx("input",{...a,"aria-invalid":t||a["aria-invalid"],className:l.cn(f,"min-h-[42px] py-3",t&&"border-[var(--color-secondary-accent-2)] focus-visible:ring-[var(--color-secondary-accent-2)]",o&&"pl-12",c&&"pr-12",r),disabled:s,id:i,type:v&&!x?"password":a.type??"text"}),c&&e.jsx("span",{className:"absolute right-2 top-1/2 flex -translate-y-1/2 text-[var(--color-text-secondary)] [&_svg]:size-5",children:c})]}),y?e.jsx(g.Typography,{as:"p",color:t?"--color-secondary-accent-2":"--color-text-secondary",variant:"b3",children:y}):null]})}exports.Input=P;
package/dist/input.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { jsxs as x, jsx as e } from "react/jsx-runtime";
2
- import { useId as I, useState as P } from "react";
3
- import { S } from "./eye-open-CoTSj5cT.js";
2
+ import { useId as z, useState as P } from "react";
3
+ import { EyeOpenIcon as j } from "./icons.js";
4
4
  import { c as l } from "./responsive-style.config-DFuATrIM.js";
5
5
  import { Typography as b } from "./typography.js";
6
- function j(a, n) {
7
- return a && typeof a != "boolean" ? a : n;
6
+ function C(r, n) {
7
+ return r && typeof r != "boolean" ? r : n;
8
8
  }
9
9
  const f = "w-full rounded-[8px] border border-transparent bg-[var(--color-background-subtle)] px-4 text-[14px] font-normal leading-[120%] text-[var(--color-text-primary)] outline-none transition-colors placeholder:text-[var(--color-text-secondary)] focus-visible:border-[var(--color-primary-accent)] focus-visible:ring-2 focus-visible:ring-[color-mix(in_srgb,var(--color-primary-accent)_35%,transparent)] disabled:cursor-not-allowed disabled:opacity-50 [font-family:var(--font-family)] [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none";
10
- function F({
11
- className: a,
10
+ function M({
11
+ className: r,
12
12
  containerClassName: n,
13
13
  disabled: i,
14
14
  error: d = !1,
@@ -18,33 +18,33 @@ function F({
18
18
  leftIcon: t,
19
19
  rightIcon: w,
20
20
  variant: u = "default",
21
- ...r
21
+ ...a
22
22
  }) {
23
- const k = I(), s = h ?? k, [v, N] = P(!1), o = !!d, y = j(d, g), _ = u === "textarea", m = u === "password", c = m ? /* @__PURE__ */ e(
23
+ const k = z(), s = h ?? k, [v, N] = P(!1), o = !!d, y = C(d, g), I = u === "textarea", m = u === "password", c = m ? /* @__PURE__ */ e(
24
24
  "button",
25
25
  {
26
26
  "aria-label": v ? "Скрыть значение" : "Показать значение",
27
27
  disabled: i,
28
28
  type: "button",
29
- onClick: () => N((z) => !z),
30
- children: /* @__PURE__ */ e(S, {})
29
+ onClick: () => N((_) => !_),
30
+ children: /* @__PURE__ */ e(j, {})
31
31
  }
32
32
  ) : w;
33
33
  return /* @__PURE__ */ x("div", { className: l("grid w-full gap-2", n), children: [
34
34
  p ? /* @__PURE__ */ e(b, { as: "label", color: "--color-text-secondary", htmlFor: s, variant: "b3", children: p }) : null,
35
35
  /* @__PURE__ */ x("div", { className: "relative w-full", children: [
36
36
  t && /* @__PURE__ */ e("span", { className: "pointer-events-none absolute left-4 top-1/2 flex -translate-y-1/2 text-[var(--color-text-secondary)] [&_svg]:size-5", children: t }),
37
- _ ? /* @__PURE__ */ e(
37
+ I ? /* @__PURE__ */ e(
38
38
  "textarea",
39
39
  {
40
- ...r,
41
- "aria-invalid": o || r["aria-invalid"],
40
+ ...a,
41
+ "aria-invalid": o || a["aria-invalid"],
42
42
  className: l(
43
43
  f,
44
44
  "min-h-[109px] resize-y px-4 py-3",
45
45
  o && "border-[var(--color-secondary-accent-2)] focus-visible:ring-[var(--color-secondary-accent-2)]",
46
46
  t && "pl-12",
47
- a
47
+ r
48
48
  ),
49
49
  disabled: i,
50
50
  id: s
@@ -52,19 +52,19 @@ function F({
52
52
  ) : /* @__PURE__ */ e(
53
53
  "input",
54
54
  {
55
- ...r,
56
- "aria-invalid": o || r["aria-invalid"],
55
+ ...a,
56
+ "aria-invalid": o || a["aria-invalid"],
57
57
  className: l(
58
58
  f,
59
59
  "min-h-[42px] py-3",
60
60
  o && "border-[var(--color-secondary-accent-2)] focus-visible:ring-[var(--color-secondary-accent-2)]",
61
61
  t && "pl-12",
62
62
  c && "pr-12",
63
- a
63
+ r
64
64
  ),
65
65
  disabled: i,
66
66
  id: s,
67
- type: m && !v ? "password" : r.type ?? "text"
67
+ type: m && !v ? "password" : a.type ?? "text"
68
68
  }
69
69
  ),
70
70
  c && /* @__PURE__ */ e("span", { className: "absolute right-2 top-1/2 flex -translate-y-1/2 text-[var(--color-text-secondary)] [&_svg]:size-5", children: c })
@@ -81,5 +81,5 @@ function F({
81
81
  ] });
82
82
  }
83
83
  export {
84
- F as Input
84
+ M as Input
85
85
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("./responsive-style.config-B2m9jVlX.cjs"),o=require("./media-picture-BmERSmsd.cjs"),u=require("./x-mark-DId-ylR6.cjs"),x=require("./typography.cjs");function p({isPicked:r}){return e.jsx("span",{className:c.cn("absolute right-[4px] top-[4px] inline-flex size-[20px] items-center justify-center rounded-full ",r?" bg-[var(--color-primary-accent)] text-[var(--color-background-default)]":"bg-[var(--color-background-default)] text-transparent"),"aria-hidden":"true",children:e.jsx(o.SvgCheck,{className:"size-[18px]"})})}function s({fileName:r,imgUrl:n,children:t}){return e.jsxs("div",{className:"relative flex aspect-square w-full items-center justify-center rounded-[8px] overflow-hidden bg-[var(--color-background-subtle)]",children:[n?e.jsx("img",{className:"w-full object-contain",src:n,alt:r}):e.jsx(o.SvgMediaPicture,{className:"size-[40px] text-[var(--color-text-secondary)]"}),t]})}function b({className:r,fileName:n,imgUrl:t,isPicked:a=!1,onSubmit:i}){return e.jsx("button",{type:"button",className:c.cn("block w-full overflow-hidden rounded-[10px] border border-[var(--color-primary-accent)] outline-none transition-colors focus-visible:ring-2 focus-visible:ring-[color-mix(in_srgb,var(--color-primary-accent)_35%,transparent)]",r),onClick:i,children:e.jsx(s,{fileName:n,imgUrl:t,children:e.jsx(p,{isPicked:a})})})}function f({fileName:r,onDelete:n}){return e.jsxs("div",{className:"flex justify-between items-center gap-[8px]",children:[e.jsx(x.Typography,{variant:"b3",children:r}),n?e.jsx("button",{type:"button","aria-label":`Удалить ${r}`,onClick:n,children:e.jsx(u.SvgXMark,{className:"size-[16px]"})}):null]})}function j({className:r,fileName:n,imgUrl:t,onDelete:a}){return e.jsxs("div",{className:c.cn("flex flex-col w-full gap-[4px] rounded-[10px] bg-[var(--color-background-subtle)] p-[4px]",r),children:[e.jsx(s,{fileName:n,imgUrl:t}),e.jsx(f,{fileName:n,onDelete:a})]})}function v({className:r,fileName:n,imgUrl:t,isPicked:a,onDelete:i,onSubmit:l,variant:d}){return d==="img-pick"?e.jsx(b,{className:r,fileName:n,imgUrl:t,isPicked:a,onSubmit:l}):e.jsx(j,{className:r,fileName:n,imgUrl:t,onDelete:i})}exports.MediaCard=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("./responsive-style.config-B2m9jVlX.cjs"),i=require("./icons.cjs"),u=require("./typography.cjs");function x({isPicked:r}){return e.jsx("span",{className:o.cn("absolute right-[4px] top-[4px] inline-flex size-[20px] items-center justify-center rounded-full ",r?" bg-[var(--color-primary-accent)] text-[var(--color-background-default)]":"bg-[var(--color-background-default)] text-transparent"),"aria-hidden":"true",children:e.jsx(i.CheckIcon,{className:"size-[18px]"})})}function s({fileName:r,imgUrl:n,children:t}){return e.jsxs("div",{className:"relative flex aspect-square w-full items-center justify-center rounded-[8px] overflow-hidden bg-[var(--color-background-subtle)]",children:[n?e.jsx("img",{className:"w-full object-contain",src:n,alt:r}):e.jsx(i.MediaPictureIcon,{className:"size-[40px] text-[var(--color-text-secondary)]"}),t]})}function p({className:r,fileName:n,imgUrl:t,isPicked:a=!1,onSubmit:c}){return e.jsx("button",{type:"button",className:o.cn("block w-full overflow-hidden rounded-[10px] border border-[var(--color-primary-accent)] outline-none transition-colors focus-visible:ring-2 focus-visible:ring-[color-mix(in_srgb,var(--color-primary-accent)_35%,transparent)]",r),onClick:c,children:e.jsx(s,{fileName:n,imgUrl:t,children:e.jsx(x,{isPicked:a})})})}function b({fileName:r,onDelete:n}){return e.jsxs("div",{className:"flex justify-between items-center gap-[8px]",children:[e.jsx(u.Typography,{variant:"b3",children:r}),n?e.jsx("button",{type:"button","aria-label":`Удалить ${r}`,onClick:n,children:e.jsx(i.XMarkIcon,{className:"size-[16px]"})}):null]})}function f({className:r,fileName:n,imgUrl:t,onDelete:a}){return e.jsxs("div",{className:o.cn("flex flex-col w-full gap-[4px] rounded-[10px] bg-[var(--color-background-subtle)] p-[4px]",r),children:[e.jsx(s,{fileName:n,imgUrl:t}),e.jsx(b,{fileName:n,onDelete:a})]})}function j({className:r,fileName:n,imgUrl:t,isPicked:a,onDelete:c,onSubmit:l,variant:d}){return d==="img-pick"?e.jsx(p,{className:r,fileName:n,imgUrl:t,isPicked:a,onSubmit:l}):e.jsx(f,{className:r,fileName:n,imgUrl:t,onDelete:c})}exports.MediaCard=j;
@@ -1,13 +1,12 @@
1
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
2
- import { c } from "./responsive-style.config-DFuATrIM.js";
3
- import { S as u, a as p } from "./media-picture-BN4saEVT.js";
4
- import { S as f } from "./x-mark-WU1eT82T.js";
1
+ import { jsx as r, jsxs as c } from "react/jsx-runtime";
2
+ import { c as i } from "./responsive-style.config-DFuATrIM.js";
3
+ import { CheckIcon as u, MediaPictureIcon as p, XMarkIcon as f } from "./icons.js";
5
4
  import { Typography as b } from "./typography.js";
6
5
  function x({ isPicked: e }) {
7
6
  return /* @__PURE__ */ r(
8
7
  "span",
9
8
  {
10
- className: c(
9
+ className: i(
11
10
  "absolute right-[4px] top-[4px] inline-flex size-[20px] items-center justify-center rounded-full ",
12
11
  e ? " bg-[var(--color-primary-accent)] text-[var(--color-background-default)]" : "bg-[var(--color-background-default)] text-transparent"
13
12
  ),
@@ -16,89 +15,89 @@ function x({ isPicked: e }) {
16
15
  }
17
16
  );
18
17
  }
19
- function l({ fileName: e, imgUrl: a, children: t }) {
20
- return /* @__PURE__ */ i("div", { className: "relative flex aspect-square w-full items-center justify-center rounded-[8px] overflow-hidden bg-[var(--color-background-subtle)]", children: [
21
- a ? /* @__PURE__ */ r("img", { className: "w-full object-contain", src: a, alt: e }) : /* @__PURE__ */ r(p, { className: "size-[40px] text-[var(--color-text-secondary)]" }),
22
- t
18
+ function l({ fileName: e, imgUrl: n, children: a }) {
19
+ return /* @__PURE__ */ c("div", { className: "relative flex aspect-square w-full items-center justify-center rounded-[8px] overflow-hidden bg-[var(--color-background-subtle)]", children: [
20
+ n ? /* @__PURE__ */ r("img", { className: "w-full object-contain", src: n, alt: e }) : /* @__PURE__ */ r(p, { className: "size-[40px] text-[var(--color-text-secondary)]" }),
21
+ a
23
22
  ] });
24
23
  }
25
24
  function m({
26
25
  className: e,
27
- fileName: a,
28
- imgUrl: t,
29
- isPicked: n = !1,
30
- onSubmit: o
26
+ fileName: n,
27
+ imgUrl: a,
28
+ isPicked: o = !1,
29
+ onSubmit: t
31
30
  }) {
32
31
  return /* @__PURE__ */ r(
33
32
  "button",
34
33
  {
35
34
  type: "button",
36
- className: c(
35
+ className: i(
37
36
  "block w-full overflow-hidden rounded-[10px] border border-[var(--color-primary-accent)] outline-none transition-colors focus-visible:ring-2 focus-visible:ring-[color-mix(in_srgb,var(--color-primary-accent)_35%,transparent)]",
38
37
  e
39
38
  ),
40
- onClick: o,
41
- children: /* @__PURE__ */ r(l, { fileName: a, imgUrl: t, children: /* @__PURE__ */ r(x, { isPicked: n }) })
39
+ onClick: t,
40
+ children: /* @__PURE__ */ r(l, { fileName: n, imgUrl: a, children: /* @__PURE__ */ r(x, { isPicked: o }) })
42
41
  }
43
42
  );
44
43
  }
45
44
  function v({
46
45
  fileName: e,
47
- onDelete: a
46
+ onDelete: n
48
47
  }) {
49
- return /* @__PURE__ */ i("div", { className: "flex justify-between items-center gap-[8px]", children: [
48
+ return /* @__PURE__ */ c("div", { className: "flex justify-between items-center gap-[8px]", children: [
50
49
  /* @__PURE__ */ r(b, { variant: "b3", children: e }),
51
- a ? /* @__PURE__ */ r("button", { type: "button", "aria-label": `Удалить ${e}`, onClick: a, children: /* @__PURE__ */ r(f, { className: "size-[16px]" }) }) : null
50
+ n ? /* @__PURE__ */ r("button", { type: "button", "aria-label": `Удалить ${e}`, onClick: n, children: /* @__PURE__ */ r(f, { className: "size-[16px]" }) }) : null
52
51
  ] });
53
52
  }
54
53
  function g({
55
54
  className: e,
56
- fileName: a,
57
- imgUrl: t,
58
- onDelete: n
55
+ fileName: n,
56
+ imgUrl: a,
57
+ onDelete: o
59
58
  }) {
60
- return /* @__PURE__ */ i(
59
+ return /* @__PURE__ */ c(
61
60
  "div",
62
61
  {
63
- className: c(
62
+ className: i(
64
63
  "flex flex-col w-full gap-[4px] rounded-[10px] bg-[var(--color-background-subtle)] p-[4px]",
65
64
  e
66
65
  ),
67
66
  children: [
68
- /* @__PURE__ */ r(l, { fileName: a, imgUrl: t }),
69
- /* @__PURE__ */ r(v, { fileName: a, onDelete: n })
67
+ /* @__PURE__ */ r(l, { fileName: n, imgUrl: a }),
68
+ /* @__PURE__ */ r(v, { fileName: n, onDelete: o })
70
69
  ]
71
70
  }
72
71
  );
73
72
  }
74
- function M({
73
+ function w({
75
74
  className: e,
76
- fileName: a,
77
- imgUrl: t,
78
- isPicked: n,
79
- onDelete: o,
80
- onSubmit: s,
81
- variant: d
75
+ fileName: n,
76
+ imgUrl: a,
77
+ isPicked: o,
78
+ onDelete: t,
79
+ onSubmit: d,
80
+ variant: s
82
81
  }) {
83
- return d === "img-pick" ? /* @__PURE__ */ r(
82
+ return s === "img-pick" ? /* @__PURE__ */ r(
84
83
  m,
85
84
  {
86
85
  className: e,
87
- fileName: a,
88
- imgUrl: t,
89
- isPicked: n,
90
- onSubmit: s
86
+ fileName: n,
87
+ imgUrl: a,
88
+ isPicked: o,
89
+ onSubmit: d
91
90
  }
92
91
  ) : /* @__PURE__ */ r(
93
92
  g,
94
93
  {
95
94
  className: e,
96
- fileName: a,
97
- imgUrl: t,
98
- onDelete: o
95
+ fileName: n,
96
+ imgUrl: a,
97
+ onDelete: t
99
98
  }
100
99
  );
101
100
  }
102
101
  export {
103
- M as MediaCard
102
+ w as MediaCard
104
103
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),q=require("./grid.cjs"),C=require("./time-clock-DOwPzcx7.cjs"),N=require("./media-card.cjs"),p=require("./responsive-style.config-B2m9jVlX.cjs"),s=require("./typography.cjs");function P({itemsCount:e,maxHeight:n,scrollable:l,scrollThreshold:a}){return{maxHeightValue:M(n??420),shouldUseScroll:l??e>a}}function k({columns:e,gap:n,lg:l,md:a,xl:t}){return{cols:e??4,gap:n??8,md:c(a),lg:c(l),xl:c(t)}}function c(e){if(e)return{cols:e.columns,gap:e.gap}}function M(e){return typeof e=="number"?`${e}px`:e}function T({className:e,columns:n,errorMessage:l,emptyMessage:a="В галерее пока нет изображений.",gap:t,gridClassName:g,items:i,isLoading:d=!1,lg:x,maxHeight:y,md:h,onSubmit:m,scrollable:f,scrollThreshold:v=6,xl:j,...S}){const{maxHeightValue:b,shouldUseScroll:u}=P({itemsCount:i.length,maxHeight:y,scrollable:f,scrollThreshold:v}),G=k({columns:n,gap:t,lg:x,md:h,xl:j});return r.jsxs("div",{className:p.cn("grid gap-[12px]",e),...S,children:[d?r.jsxs("div",{className:"flex items-center gap-[8px] text-[var(--color-text-secondary)]",children:[r.jsx(C.SvgTimeClock,{className:"size-[16px] animate-spin"}),r.jsx(s.Typography,{as:"span",variant:"b3",children:"Загружаем галерею..."})]}):null,l?r.jsx(s.Typography,{as:"p",color:"--color-secondary-accent-2",variant:"b3",children:l}):null,i.length>0?r.jsx(q.Grid,{...G,className:p.cn(u&&"overflow-y-auto rounded-[12px] bg-[var(--color-background-subtle)] p-[8px]",g),style:u?{maxHeight:b}:void 0,children:i.map(o=>r.jsx(N.MediaCard,{fileName:o.fileName,imgUrl:o.imgUrl,isPicked:o.isPicked,variant:"img-pick",onSubmit:()=>m?.(o)},o.id))}):null,!d&&i.length===0?r.jsx(s.Typography,{as:"p",color:"--color-text-secondary",variant:"b3",children:a}):null]})}exports.MediaGallery=T;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),q=require("./grid.cjs"),N=require("./icons.cjs"),P=require("./media-card.cjs"),p=require("./responsive-style.config-B2m9jVlX.cjs"),c=require("./typography.cjs");function C({itemsCount:e,maxHeight:l,scrollable:n,scrollThreshold:o}){return{maxHeightValue:T(l??420),shouldUseScroll:n??e>o}}function M({columns:e,gap:l,lg:n,md:o,xl:s}){return{cols:e??4,gap:l??8,md:t(o),lg:t(n),xl:t(s)}}function t(e){if(e)return{cols:e.columns,gap:e.gap}}function T(e){return typeof e=="number"?`${e}px`:e}function k({className:e,columns:l,errorMessage:n,emptyMessage:o="В галерее пока нет изображений.",gap:s,gridClassName:g,items:i,isLoading:d=!1,lg:x,maxHeight:y,md:h,onSubmit:m,scrollable:f,scrollThreshold:v=6,xl:j,...b}){const{maxHeightValue:S,shouldUseScroll:u}=C({itemsCount:i.length,maxHeight:y,scrollable:f,scrollThreshold:v}),G=M({columns:l,gap:s,lg:x,md:h,xl:j});return r.jsxs("div",{className:p.cn("grid gap-[12px]",e),...b,children:[d?r.jsxs("div",{className:"flex items-center gap-[8px] text-[var(--color-text-secondary)]",children:[r.jsx(N.TimeClockIcon,{className:"size-[16px] animate-spin"}),r.jsx(c.Typography,{as:"span",variant:"b3",children:"Загружаем галерею..."})]}):null,n?r.jsx(c.Typography,{as:"p",color:"--color-secondary-accent-2",variant:"b3",children:n}):null,i.length>0?r.jsx(q.Grid,{...G,className:p.cn(u&&"overflow-y-auto rounded-[12px] bg-[var(--color-background-subtle)] p-[8px]",g),style:u?{maxHeight:S}:void 0,children:i.map(a=>r.jsx(P.MediaCard,{fileName:a.fileName,imgUrl:a.imgUrl,isPicked:a.isPicked,variant:"img-pick",onSubmit:()=>m?.(a)},a.id))}):null,!d&&i.length===0?r.jsx(c.Typography,{as:"p",color:"--color-text-secondary",variant:"b3",children:o}):null]})}exports.MediaGallery=k;
@@ -1,6 +1,6 @@
1
1
  import { jsxs as m, jsx as o } from "react/jsx-runtime";
2
2
  import { Grid as k } from "./grid.js";
3
- import { S as C } from "./time-clock-DjqcZ8tI.js";
3
+ import { TimeClockIcon as C } from "./icons.js";
4
4
  import { MediaCard as U } from "./media-card.js";
5
5
  import { c as u } from "./responsive-style.config-DFuATrIM.js";
6
6
  import { Typography as c } from "./typography.js";
@@ -40,7 +40,7 @@ function s(r) {
40
40
  function j(r) {
41
41
  return typeof r == "number" ? `${r}px` : r;
42
42
  }
43
- function q({
43
+ function $({
44
44
  className: r,
45
45
  columns: e,
46
46
  errorMessage: l,
@@ -54,17 +54,17 @@ function q({
54
54
  md: h,
55
55
  onSubmit: y,
56
56
  scrollable: v,
57
- scrollThreshold: S = 6,
58
- xl: b,
59
- ...G
57
+ scrollThreshold: b = 6,
58
+ xl: G,
59
+ ...N
60
60
  }) {
61
- const { maxHeightValue: N, shouldUseScroll: p } = H({
61
+ const { maxHeightValue: P, shouldUseScroll: p } = H({
62
62
  itemsCount: i.length,
63
63
  maxHeight: x,
64
64
  scrollable: v,
65
- scrollThreshold: S
66
- }), P = M({ columns: e, gap: t, lg: f, md: h, xl: b });
67
- return /* @__PURE__ */ m("div", { className: u("grid gap-[12px]", r), ...G, children: [
65
+ scrollThreshold: b
66
+ }), S = M({ columns: e, gap: t, lg: f, md: h, xl: G });
67
+ return /* @__PURE__ */ m("div", { className: u("grid gap-[12px]", r), ...N, children: [
68
68
  d ? /* @__PURE__ */ m("div", { className: "flex items-center gap-[8px] text-[var(--color-text-secondary)]", children: [
69
69
  /* @__PURE__ */ o(C, { className: "size-[16px] animate-spin" }),
70
70
  /* @__PURE__ */ o(c, { as: "span", variant: "b3", children: "Загружаем галерею..." })
@@ -73,12 +73,12 @@ function q({
73
73
  i.length > 0 ? /* @__PURE__ */ o(
74
74
  k,
75
75
  {
76
- ...P,
76
+ ...S,
77
77
  className: u(
78
78
  p && "overflow-y-auto rounded-[12px] bg-[var(--color-background-subtle)] p-[8px]",
79
79
  g
80
80
  ),
81
- style: p ? { maxHeight: N } : void 0,
81
+ style: p ? { maxHeight: P } : void 0,
82
82
  children: i.map((n) => /* @__PURE__ */ o(
83
83
  U,
84
84
  {
@@ -96,5 +96,5 @@ function q({
96
96
  ] });
97
97
  }
98
98
  export {
99
- q as MediaGallery
99
+ $ as MediaGallery
100
100
  };
package/dist/modal.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),s=require("react-aria"),O=require("react-stately"),k=require("react"),B=require("./box.cjs"),j=require("./button.cjs"),b=require("./flex.cjs"),S=require("./x-mark-DId-ylR6.cjs"),y=require("./responsive-style.config-B2m9jVlX.cjs");function x({children:e,className:o,closeButtonSlot:a,contentWrapperProps:l,isDismissable:i=!0,overlayBackground:u="rgb(0 0 0 / 40%)",overlayBlur:d=4,portalContainer:g,state:t,style:p,...n}){const c=k.useRef(null),{modalProps:P,underlayProps:M}=s.useModalOverlay({...n,isDismissable:i},t,c);if(!t.isOpen)return null;const h=M,f=P,q=l?.className,m=R(d),F={backdropFilter:m,WebkitBackdropFilter:m,...h.style};return r.jsx(s.Overlay,{portalContainer:g,children:r.jsx(s.FocusScope,{contain:!0,restoreFocus:!0,autoFocus:!0,children:r.jsx(b.Flex,{...h,align:"center",bg:u,height:"100dvh",justify:"center",p:{px:16,py:16},position:{type:"fixed",top:0,right:0,bottom:0,left:0,zIndex:50},style:F,width:"100%",children:r.jsx("div",{...f,className:y.cn("size-full outline-none",f.className),ref:c,children:r.jsxs(B.Box,{bg:"transparent",className:y.cn("relative size-full overflow-y-auto",o),height:"100dvh",style:p,width:"100%",...n,children:[i?N(t.close,a):null,r.jsx(b.Flex,{align:"center",height:"100%",justify:"center",width:"100%",...l,className:y.cn(q),children:e})]})})})})})}function v({children:e,customTrigger:o,defaultOpen:a,isOpen:l,label:i="Открыть",onOpenChange:u,triggerButtonProps:d,...g}){const t=O.useOverlayTriggerState({defaultOpen:a,isOpen:l,onOpenChange:u}),{triggerProps:p}=s.useOverlayTrigger({type:"dialog"},t),n=T(p),c=o?o({close:t.close,open:t.open,state:t,triggerProps:n}):r.jsx(j.Button,{...d,...n,type:"button",onClick:t.open,children:i});return r.jsxs(r.Fragment,{children:[c,r.jsx(x,{state:t,...g,children:e(t.close)})]})}const z=Object.assign(x,{Trigger:v});function N(e,o){return o?o(e):r.jsx(j.Button,{"aria-label":"Закрыть модальное окно",p:10,position:{type:"absolute",right:20,top:20,zIndex:1},size:"md",type:"button",variant:"secondary",onClick:e,children:r.jsx(S.SvgXMark,{})})}function R(e){return typeof e=="number"?`blur(${e}px)`:e}function T(e){const o={...e};return delete o.onPress,s.mergeProps(o)}exports.Modal=z;exports.ModalRoot=x;exports.ModalTrigger=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),s=require("react-aria"),O=require("react-stately"),B=require("react"),k=require("./box.cjs"),j=require("./button.cjs"),b=require("./flex.cjs"),z=require("./icons.cjs"),y=require("./responsive-style.config-B2m9jVlX.cjs");function h({children:e,className:o,closeButtonSlot:a,contentWrapperProps:l,isDismissable:i=!0,overlayBackground:u="rgb(0 0 0 / 40%)",overlayBlur:d=4,portalContainer:g,state:t,style:p,...n}){const c=B.useRef(null),{modalProps:P,underlayProps:q}=s.useModalOverlay({...n,isDismissable:i},t,c);if(!t.isOpen)return null;const x=q,f=P,M=l?.className,m=S(d),F={backdropFilter:m,WebkitBackdropFilter:m,...x.style};return r.jsx(s.Overlay,{portalContainer:g,children:r.jsx(s.FocusScope,{contain:!0,restoreFocus:!0,autoFocus:!0,children:r.jsx(b.Flex,{...x,align:"center",bg:u,height:"100dvh",justify:"center",p:{px:16,py:16},position:{type:"fixed",top:0,right:0,bottom:0,left:0,zIndex:50},style:F,width:"100%",children:r.jsx("div",{...f,className:y.cn("size-full outline-none",f.className),ref:c,children:r.jsxs(k.Box,{bg:"transparent",className:y.cn("relative size-full overflow-y-auto",o),height:"100dvh",style:p,width:"100%",...n,children:[i?R(t.close,a):null,r.jsx(b.Flex,{align:"center",height:"100%",justify:"center",width:"100%",...l,className:y.cn(M),children:e})]})})})})})}function v({children:e,customTrigger:o,defaultOpen:a,isOpen:l,label:i="Открыть",onOpenChange:u,triggerButtonProps:d,...g}){const t=O.useOverlayTriggerState({defaultOpen:a,isOpen:l,onOpenChange:u}),{triggerProps:p}=s.useOverlayTrigger({type:"dialog"},t),n=T(p),c=o?o({close:t.close,open:t.open,state:t,triggerProps:n}):r.jsx(j.Button,{...d,...n,type:"button",onClick:t.open,children:i});return r.jsxs(r.Fragment,{children:[c,r.jsx(h,{state:t,...g,children:e(t.close)})]})}const N=Object.assign(h,{Trigger:v});function R(e,o){return o?o(e):r.jsx(j.Button,{"aria-label":"Закрыть модальное окно",p:10,position:{type:"absolute",right:20,top:20,zIndex:1},size:"md",type:"button",variant:"secondary",onClick:e,children:r.jsx(z.XMarkIcon,{})})}function S(e){return typeof e=="number"?`blur(${e}px)`:e}function T(e){const o={...e};return delete o.onPress,s.mergeProps(o)}exports.Modal=N;exports.ModalRoot=h;exports.ModalTrigger=v;
package/dist/modal.js CHANGED
@@ -1,26 +1,26 @@
1
1
  import { jsx as t, jsxs as b, Fragment as z } from "react/jsx-runtime";
2
2
  import { useModalOverlay as B, Overlay as N, FocusScope as j, useOverlayTrigger as M, mergeProps as w } from "react-aria";
3
3
  import { useOverlayTriggerState as C } from "react-stately";
4
- import { useRef as S } from "react";
5
- import { Box as D } from "./box.js";
4
+ import { useRef as D } from "react";
5
+ import { Box as I } from "./box.js";
6
6
  import { Button as v } from "./button.js";
7
7
  import { Flex as h } from "./flex.js";
8
- import { S as R } from "./x-mark-WU1eT82T.js";
8
+ import { XMarkIcon as R } from "./icons.js";
9
9
  import { c as m } from "./responsive-style.config-DFuATrIM.js";
10
10
  function x({
11
11
  children: e,
12
12
  className: o,
13
- closeButtonSlot: a,
13
+ closeButtonSlot: c,
14
14
  contentWrapperProps: i,
15
15
  isDismissable: l = !0,
16
- overlayBackground: c = "rgb(0 0 0 / 40%)",
16
+ overlayBackground: a = "rgb(0 0 0 / 40%)",
17
17
  overlayBlur: u = 4,
18
18
  portalContainer: p,
19
19
  state: r,
20
20
  style: d,
21
21
  ...n
22
22
  }) {
23
- const s = S(null), { modalProps: P, underlayProps: F } = B(
23
+ const s = D(null), { modalProps: P, underlayProps: F } = B(
24
24
  { ...n, isDismissable: l },
25
25
  r,
26
26
  s
@@ -37,7 +37,7 @@ function x({
37
37
  {
38
38
  ...g,
39
39
  align: "center",
40
- bg: c,
40
+ bg: a,
41
41
  height: "100dvh",
42
42
  justify: "center",
43
43
  p: { px: 16, py: 16 },
@@ -51,7 +51,7 @@ function x({
51
51
  className: m("size-full outline-none", f.className),
52
52
  ref: s,
53
53
  children: /* @__PURE__ */ b(
54
- D,
54
+ I,
55
55
  {
56
56
  bg: "transparent",
57
57
  className: m("relative size-full overflow-y-auto", o),
@@ -60,7 +60,7 @@ function x({
60
60
  width: "100%",
61
61
  ...n,
62
62
  children: [
63
- l ? I(r.close, a) : null,
63
+ l ? S(r.close, c) : null,
64
64
  /* @__PURE__ */ t(
65
65
  h,
66
66
  {
@@ -84,14 +84,14 @@ function x({
84
84
  function T({
85
85
  children: e,
86
86
  customTrigger: o,
87
- defaultOpen: a,
87
+ defaultOpen: c,
88
88
  isOpen: i,
89
89
  label: l = "Открыть",
90
- onOpenChange: c,
90
+ onOpenChange: a,
91
91
  triggerButtonProps: u,
92
92
  ...p
93
93
  }) {
94
- const r = C({ defaultOpen: a, isOpen: i, onOpenChange: c }), { triggerProps: d } = M({ type: "dialog" }, r), n = W(d), s = o ? o({
94
+ const r = C({ defaultOpen: c, isOpen: i, onOpenChange: a }), { triggerProps: d } = M({ type: "dialog" }, r), n = W(d), s = o ? o({
95
95
  close: r.close,
96
96
  open: r.open,
97
97
  state: r,
@@ -114,7 +114,7 @@ function T({
114
114
  const L = Object.assign(x, {
115
115
  Trigger: T
116
116
  });
117
- function I(e, o) {
117
+ function S(e, o) {
118
118
  return o ? o(e) : /* @__PURE__ */ t(
119
119
  v,
120
120
  {