@layers-app/shared 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/dist/assets/svg/flags/es.svg.js +4 -0
  2. package/dist/assets/svg/flags/ru.svg.js +4 -0
  3. package/dist/assets/svg/flags/us.svg.js +4 -0
  4. package/dist/assets/svg/globeIcon.svg.js +5 -0
  5. package/dist/assets/svg/socials/github.svg.js +5 -0
  6. package/dist/assets/svg/socials/instagram.svg.js +5 -0
  7. package/dist/assets/svg/socials/x.svg.js +5 -0
  8. package/dist/assets/svg/socials/youtube.svg.js +5 -0
  9. package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
  10. package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +30 -30
  11. package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
  12. package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
  13. package/dist/components/AppContainer/hooks/useAppContainer.js +45 -42
  14. package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
  15. package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +1 -0
  16. package/dist/components/AppContainer/types.d.ts +1 -0
  17. package/dist/components/AppContainer/types.d.ts.map +1 -1
  18. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts.map +1 -1
  19. package/dist/components/FilePicker/FilePicker.d.ts +33 -2
  20. package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
  21. package/dist/components/FilePicker/FilePicker.js +161 -110
  22. package/dist/components/FilePicker/FilePicker.module.css.js +9 -7
  23. package/dist/components/FilePicker/FilePickerGoogleDrive.d.ts +22 -0
  24. package/dist/components/FilePicker/FilePickerGoogleDrive.d.ts.map +1 -0
  25. package/dist/components/FilePicker/FilePickerGoogleDrive.js +86 -0
  26. package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
  27. package/dist/components/FilePicker/FilePickerUnsplash.js +69 -52
  28. package/dist/components/FormViewer/hooks/useFormGlobalTheme.js +15 -15
  29. package/dist/components/FormViewer/hooks/useInterpolateText.js +3 -3
  30. package/dist/components/FormViewer/store/formStore.js +3 -3
  31. package/dist/components/FormViewer/store/selectors.js +1 -1
  32. package/dist/components/GroupAvatar/index.d.ts +1 -0
  33. package/dist/components/GroupAvatar/index.d.ts.map +1 -1
  34. package/dist/components/GroupAvatar/index.js +9 -8
  35. package/dist/components/ImageCropper/ImageCropper.d.ts +19 -0
  36. package/dist/components/ImageCropper/ImageCropper.d.ts.map +1 -0
  37. package/dist/components/ImageCropper/ImageCropper.js +356 -0
  38. package/dist/components/ImageCropper/ImageCropper.module.css.js +51 -0
  39. package/dist/components/ImageCropper/cropUtils.d.ts +22 -0
  40. package/dist/components/ImageCropper/cropUtils.d.ts.map +1 -0
  41. package/dist/components/ImageCropper/cropUtils.js +42 -0
  42. package/dist/components/ImageCropper/index.d.ts +4 -0
  43. package/dist/components/ImageCropper/index.d.ts.map +1 -0
  44. package/dist/components/ImageCropper/useCropInteraction.d.ts +28 -0
  45. package/dist/components/ImageCropper/useCropInteraction.d.ts.map +1 -0
  46. package/dist/components/ImageCropper/useCropInteraction.js +76 -0
  47. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts +21 -0
  48. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts.map +1 -0
  49. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.js +73 -0
  50. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +19 -0
  51. package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.d.ts +6 -0
  52. package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.d.ts.map +1 -0
  53. package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.js +60 -0
  54. package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.d.ts +6 -0
  55. package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.d.ts.map +1 -0
  56. package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.js +21 -0
  57. package/dist/components/IntegrationFlowAnimation/icons/NotionIcon.d.ts +6 -0
  58. package/dist/components/IntegrationFlowAnimation/icons/NotionIcon.d.ts.map +1 -0
  59. package/dist/components/IntegrationFlowAnimation/icons/NotionIcon.js +35 -0
  60. package/dist/components/IntegrationFlowAnimation/icons/index.d.ts +4 -0
  61. package/dist/components/IntegrationFlowAnimation/icons/index.d.ts.map +1 -0
  62. package/dist/components/IntegrationFlowAnimation/index.d.ts +5 -0
  63. package/dist/components/IntegrationFlowAnimation/index.d.ts.map +1 -0
  64. package/dist/components/LanguagePicker/LanguagePicker.d.ts +2 -1
  65. package/dist/components/LanguagePicker/LanguagePicker.d.ts.map +1 -1
  66. package/dist/components/LanguagePicker/LanguagePicker.js +26 -22
  67. package/dist/components/MediaLibrary/MediaLibrary.d.ts +3 -0
  68. package/dist/components/MediaLibrary/MediaLibrary.d.ts.map +1 -0
  69. package/dist/components/MediaLibrary/MediaLibrary.js +93 -0
  70. package/dist/components/MediaLibrary/MediaLibrary.module.css.js +17 -0
  71. package/dist/components/MediaLibrary/MediaLibraryBreadcrumbs.d.ts +8 -0
  72. package/dist/components/MediaLibrary/MediaLibraryBreadcrumbs.d.ts.map +1 -0
  73. package/dist/components/MediaLibrary/MediaLibraryBreadcrumbs.js +22 -0
  74. package/dist/components/MediaLibrary/MediaLibraryBrowser.d.ts +12 -0
  75. package/dist/components/MediaLibrary/MediaLibraryBrowser.d.ts.map +1 -0
  76. package/dist/components/MediaLibrary/MediaLibraryBrowser.js +52 -0
  77. package/dist/components/MediaLibrary/MediaLibraryRow.d.ts +9 -0
  78. package/dist/components/MediaLibrary/MediaLibraryRow.d.ts.map +1 -0
  79. package/dist/components/MediaLibrary/MediaLibraryRow.js +29 -0
  80. package/dist/components/MediaLibrary/index.d.ts +4 -0
  81. package/dist/components/MediaLibrary/index.d.ts.map +1 -0
  82. package/dist/components/MediaLibrary/types.d.ts +31 -0
  83. package/dist/components/MediaLibrary/types.d.ts.map +1 -0
  84. package/dist/components/NoData/NoData.d.ts +6 -1
  85. package/dist/components/NoData/NoData.d.ts.map +1 -1
  86. package/dist/components/NoData/NoData.js +85 -82
  87. package/dist/components/SettingsSection/index.d.ts +12 -0
  88. package/dist/components/SettingsSection/index.d.ts.map +1 -0
  89. package/dist/components/SettingsSection/index.js +36 -0
  90. package/dist/components/SettingsSection/styles.module.css.js +7 -0
  91. package/dist/components/SocialLinkRow/index.d.ts +11 -0
  92. package/dist/components/SocialLinkRow/index.d.ts.map +1 -0
  93. package/dist/components/SocialLinkRow/index.js +109 -0
  94. package/dist/components/SortableList/components/SortableItem/SortableItem.js +3 -3
  95. package/dist/components/StorageUsageProgress/index.js +26 -24
  96. package/dist/components/TimezonePicker/index.d.ts +9 -0
  97. package/dist/components/TimezonePicker/index.d.ts.map +1 -0
  98. package/dist/components/TimezonePicker/index.js +90 -0
  99. package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts.map +1 -1
  100. package/dist/components/WorkspaceMenu/WorkspaceItem.js +18 -17
  101. package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts.map +1 -1
  102. package/dist/components/WorkspaceMenu/WorkspaceMenu.js +70 -69
  103. package/dist/components/modals/RemoveConfirmModal.js +1 -1
  104. package/dist/components/table/components/TableHeaders.js +3 -3
  105. package/dist/components/table/components/TablePanel.js +1 -1
  106. package/dist/components/table/helpers/columns.js +3 -3
  107. package/dist/components/table/hooks/TableProvider.js +3 -3
  108. package/dist/components/table/selectors.js +6 -6
  109. package/dist/helpers/getFileType.d.ts +1 -2
  110. package/dist/helpers/getFileType.d.ts.map +1 -1
  111. package/dist/helpers/getFileType.js +5 -6
  112. package/dist/helpers/showNotifications.d.ts +14 -3
  113. package/dist/helpers/showNotifications.d.ts.map +1 -1
  114. package/dist/helpers/showNotifications.js +152 -61
  115. package/dist/helpers/showNotifications.module.css.js +29 -0
  116. package/dist/helpers/timezones.d.ts +12 -0
  117. package/dist/helpers/timezones.d.ts.map +1 -0
  118. package/dist/helpers/timezones.js +59 -0
  119. package/dist/hooks/useNumberQueryParam.js +3 -3
  120. package/dist/hooks/useVideoUploadGuard.d.ts +2 -0
  121. package/dist/hooks/useVideoUploadGuard.d.ts.map +1 -0
  122. package/dist/hooks/useVideoUploadGuard.js +24 -0
  123. package/dist/index.css +1 -1
  124. package/dist/index.d.ts +10 -1
  125. package/dist/index.d.ts.map +1 -1
  126. package/dist/index.js +449 -406
  127. package/dist/lang/locales/ui_en.json.js +24 -22
  128. package/dist/lang/locales/ui_es.json.js +20 -18
  129. package/dist/lang/locales/ui_ru.json.js +20 -18
  130. package/dist/lib/contentImport/index.d.ts +4 -0
  131. package/dist/lib/contentImport/index.d.ts.map +1 -0
  132. package/dist/lib/contentImport/lexicalSerializer.d.ts +19 -0
  133. package/dist/lib/contentImport/lexicalSerializer.d.ts.map +1 -0
  134. package/dist/lib/contentImport/lexicalSerializer.js +215 -0
  135. package/dist/lib/contentImport/types.d.ts +161 -0
  136. package/dist/lib/contentImport/types.d.ts.map +1 -0
  137. package/dist/lib/contentImport/utils.d.ts +35 -0
  138. package/dist/lib/contentImport/utils.d.ts.map +1 -0
  139. package/dist/lib/contentImport/utils.js +145 -0
  140. package/dist/node_modules/countries-and-timezones/esm/index.js +4031 -0
  141. package/dist/store/plansModal.d.ts.map +1 -1
  142. package/dist/store/plansModal.js +8 -7
  143. package/dist/utils/formatStorage.d.ts +7 -1
  144. package/dist/utils/formatStorage.d.ts.map +1 -1
  145. package/dist/utils/formatStorage.js +10 -5
  146. package/dist/utils/getCroppedBlob.d.ts +3 -0
  147. package/dist/utils/getCroppedBlob.d.ts.map +1 -0
  148. package/dist/utils/getCroppedBlob.js +21 -0
  149. package/package.json +1 -1
  150. package/dist/assets/images/flags/es.svg.js +0 -4
  151. package/dist/assets/images/flags/ru.svg.js +0 -4
  152. package/dist/assets/images/flags/us.svg.js +0 -4
  153. package/dist/components/PaymentSuccess/PaymentSuccess.d.ts +0 -2
  154. package/dist/components/PaymentSuccess/PaymentSuccess.d.ts.map +0 -1
  155. package/dist/components/PaymentSuccess/PaymentSuccess.js +0 -41
@@ -1,94 +1,111 @@
1
- import { jsxs as c, jsx as o } from "react/jsx-runtime";
2
- import { useState as l, useMemo as x, useEffect as f, useCallback as S } from "react";
3
- import { useTranslation as P } from "react-i18next";
4
- import { Search01Icon as z } from "@hugeicons/core-free-icons";
5
- import { HugeiconsIcon as L } from "@hugeicons/react";
6
- import { Stack as b, TextInput as T, Loader as j, Box as C, SimpleGrid as D, AspectRatio as M, Button as q } from "@mantine/core";
7
- import { useDebouncedValue as w, useDebouncedCallback as B } from "@mantine/hooks";
1
+ import { jsxs as a, jsx as t } from "react/jsx-runtime";
2
+ import { useState as m, useMemo as z, useEffect as k, useCallback as T } from "react";
3
+ import { useTranslation as L } from "react-i18next";
4
+ import { Search01Icon as j } from "@hugeicons/core-free-icons";
5
+ import { HugeiconsIcon as B } from "@hugeicons/react";
6
+ import { Stack as C, TextInput as D, Loader as M, Box as c, SimpleGrid as N, AspectRatio as _, Text as b, Button as q } from "@mantine/core";
7
+ import { useDebouncedValue as w, useDebouncedCallback as A } from "@mantine/hooks";
8
8
  import { NoData as F } from "../NoData/NoData.js";
9
- import { FilePickerSkeletonLoader as N } from "./FilePickerSkeletonLoader.js";
10
- import { useUnsplashPhotos as Q } from "./api/unsplashApi.js";
11
- import R from "./FilePicker.module.css.js";
12
- const k = (n) => (n || []).reduce((s, t) => (s[t.id] = t, s), {}), K = ({
13
- onChange: n,
9
+ import { FilePickerSkeletonLoader as Q } from "./FilePickerSkeletonLoader.js";
10
+ import { useUnsplashPhotos as R } from "./api/unsplashApi.js";
11
+ import y from "./FilePicker.module.css.js";
12
+ const x = (l) => (l || []).reduce((s, o) => (s[o.id] = o, s), {}), X = ({
13
+ onChange: l,
14
14
  clientId: s
15
15
  }) => {
16
- const { t } = P("ui"), [m, y] = l(""), [u] = w(m, 800), [I, p] = l(1), [d, h] = l({}), { data: r, isLoading: a } = Q(
16
+ const { t: o } = L("ui"), [u, v] = m(""), [h] = w(u, 800), [I, p] = m(1), [d, g] = m({}), { data: r, isLoading: n } = R(
17
17
  {
18
- query: u,
18
+ query: h,
19
19
  page: I,
20
20
  per_page: 24,
21
21
  order_by: "popular"
22
22
  },
23
23
  s
24
- ), i = x(
25
- () => Object.values({ ...d, ...k(r?.items) }),
24
+ ), i = z(
25
+ () => Object.values({ ...d, ...x(r?.items) }),
26
26
  [d, r?.items]
27
- ), g = B(() => {
27
+ ), f = A(() => {
28
28
  setTimeout(() => {
29
- h((e) => ({ ...e, ...k(r?.items) }));
29
+ g((e) => ({ ...e, ...x(r?.items) }));
30
30
  }, 0);
31
31
  }, 100);
32
- f(() => {
33
- g();
34
- }, [r?.items, g]), f(() => {
35
- h({});
36
- }, [u]);
37
- const v = S(
32
+ k(() => {
33
+ f();
34
+ }, [r?.items, f]), k(() => {
35
+ g({});
36
+ }, [h]);
37
+ const S = T(
38
38
  (e) => {
39
- y(e.currentTarget.value), p(1);
39
+ v(e.currentTarget.value), p(1);
40
40
  },
41
41
  []
42
42
  );
43
- return /* @__PURE__ */ c(b, { gap: "sm", children: [
44
- /* @__PURE__ */ o(
45
- T,
43
+ return /* @__PURE__ */ a(C, { gap: "sm", children: [
44
+ /* @__PURE__ */ t(
45
+ D,
46
46
  {
47
- leftSection: a ? /* @__PURE__ */ o(j, { size: 16 }) : /* @__PURE__ */ o(L, { size: 16, icon: z }),
47
+ leftSection: n ? /* @__PURE__ */ t(M, { size: 16 }) : /* @__PURE__ */ t(B, { size: 16, icon: j }),
48
48
  maxLength: 50,
49
- placeholder: t("changeCover.searchImage"),
49
+ placeholder: o("changeCover.searchImage"),
50
50
  "data-autofocus": !0,
51
- value: m,
52
- onChange: v
51
+ value: u,
52
+ onChange: S
53
53
  }
54
54
  ),
55
- /* @__PURE__ */ c(C, { mah: 300, w: "100%", style: { overflowY: "auto" }, children: [
56
- !!i.length && /* @__PURE__ */ c(b, { gap: 8, children: [
57
- /* @__PURE__ */ o(D, { cols: 4, spacing: 10, children: i.map((e) => /* @__PURE__ */ o(
58
- M,
59
- {
60
- onClick: () => n?.(e.urls.regular),
61
- ratio: 120 / 65,
62
- className: R.itemImage,
63
- style: {
64
- backgroundImage: `url(${e.urls.small})`
55
+ /* @__PURE__ */ a(c, { mah: 300, w: "100%", style: { overflowY: "auto" }, children: [
56
+ !!i.length && /* @__PURE__ */ a(C, { gap: 8, children: [
57
+ /* @__PURE__ */ t(N, { cols: 4, spacing: 10, children: i.map((e) => /* @__PURE__ */ a(c, { children: [
58
+ /* @__PURE__ */ t(
59
+ _,
60
+ {
61
+ onClick: () => l?.(e.urls.regular),
62
+ ratio: 120 / 65,
63
+ className: y.itemImage,
64
+ style: {
65
+ backgroundImage: `url(${e.urls.small})`
66
+ }
65
67
  }
66
- },
67
- e.id
68
- )) }),
69
- r?.hasMore && /* @__PURE__ */ o(
68
+ ),
69
+ /* @__PURE__ */ t(c, { className: y.imageAuthor, children: /* @__PURE__ */ a(b, { truncate: !0, c: "gray", size: "xs", children: [
70
+ o("changeCover.photoBy"),
71
+ " ",
72
+ /* @__PURE__ */ t(
73
+ b,
74
+ {
75
+ component: "a",
76
+ inherit: !0,
77
+ href: e.user.links.html,
78
+ target: "_blank",
79
+ rel: "noopener noreferrer",
80
+ onClick: (P) => P.stopPropagation(),
81
+ children: e.user.name
82
+ }
83
+ )
84
+ ] }) })
85
+ ] }, e.id)) }),
86
+ r?.hasMore && /* @__PURE__ */ t(
70
87
  q,
71
88
  {
72
89
  variant: "subtle",
73
- loading: a,
90
+ loading: n,
74
91
  onClick: () => p((e) => e + 1),
75
- children: t("loadMore")
92
+ children: o("loadMore")
76
93
  }
77
94
  )
78
95
  ] }),
79
- !i.length && !a && /* @__PURE__ */ o(C, { pb: 16, children: /* @__PURE__ */ o(
96
+ !i.length && !n && /* @__PURE__ */ t(c, { pb: 16, children: /* @__PURE__ */ t(
80
97
  F,
81
98
  {
82
99
  size: 120,
83
100
  illustration: "noImage",
84
- description: t("changeCover.noResult"),
101
+ description: o("changeCover.noResult"),
85
102
  titleProps: { size: "xs", c: "dimmed" }
86
103
  }
87
104
  ) }),
88
- !i.length && a && /* @__PURE__ */ o(N, {})
105
+ !i.length && n && /* @__PURE__ */ t(Q, {})
89
106
  ] })
90
107
  ] });
91
108
  };
92
109
  export {
93
- K as FilePickerUnsplash
110
+ X as FilePickerUnsplash
94
111
  };
@@ -1,6 +1,6 @@
1
1
  import { useMemo as r } from "react";
2
2
  import { generateColors as a } from "@mantine/colors-generator";
3
- import { createTheme as d, Flex as u, ActionIcon as l, ThemeIcon as m, Card as f, InputError as c, Progress as p, Select as x, NumberInput as z, Textarea as b, TextInput as P, Button as h, Text as R, Title as T, DEFAULT_THEME as g } from "@mantine/core";
3
+ import { createTheme as d, DEFAULT_THEME as u, Flex as l, ActionIcon as m, ThemeIcon as f, Card as c, InputError as p, Progress as x, Select as z, NumberInput as b, Textarea as P, TextInput as h, Button as R, Text as T, Title as g } from "@mantine/core";
4
4
  import { DateInput as y } from "@mantine/dates";
5
5
  import { scopeCustomCss as F } from "../helpers/cssScoping.js";
6
6
  import { useFormViewerStore as I } from "../store/formStore.js";
@@ -9,7 +9,7 @@ const B = ({ innerId: t }) => {
9
9
  const { useStore: s } = I(), e = s(S), i = r(() => {
10
10
  const n = a(e?.primaryColor || ""), o = "custom";
11
11
  return d({
12
- ...g,
12
+ ...u,
13
13
  fontFamily: `"${e.font?.fontFamily || "Roboto"}", sans-serif`,
14
14
  // fontWeight: theme.font?.fontWeight,
15
15
  headings: {
@@ -22,7 +22,7 @@ const B = ({ innerId: t }) => {
22
22
  },
23
23
  defaultRadius: e.borderRadius,
24
24
  components: {
25
- Title: T.extend({
25
+ Title: g.extend({
26
26
  defaultProps: {
27
27
  style: {
28
28
  fontFamily: e.title?.fontFamily,
@@ -30,7 +30,7 @@ const B = ({ innerId: t }) => {
30
30
  }
31
31
  }
32
32
  }),
33
- Text: R.extend({
33
+ Text: T.extend({
34
34
  defaultProps: {
35
35
  style: {
36
36
  fontFamily: e.font?.fontFamily,
@@ -38,7 +38,7 @@ const B = ({ innerId: t }) => {
38
38
  }
39
39
  }
40
40
  }),
41
- Button: h.extend({
41
+ Button: R.extend({
42
42
  defaultProps: {
43
43
  color: o,
44
44
  size: e.size,
@@ -46,7 +46,7 @@ const B = ({ innerId: t }) => {
46
46
  radius: e.borderRadius
47
47
  }
48
48
  }),
49
- TextInput: P.extend({
49
+ TextInput: h.extend({
50
50
  defaultProps: {
51
51
  radius: e.borderRadius,
52
52
  color: o,
@@ -60,60 +60,60 @@ const B = ({ innerId: t }) => {
60
60
  size: e.size
61
61
  }
62
62
  }),
63
- Textarea: b.extend({
63
+ Textarea: P.extend({
64
64
  defaultProps: {
65
65
  radius: e.borderRadius,
66
66
  color: o,
67
67
  size: e.size
68
68
  }
69
69
  }),
70
- NumberInput: z.extend({
70
+ NumberInput: b.extend({
71
71
  defaultProps: {
72
72
  radius: e.borderRadius,
73
73
  color: o,
74
74
  size: e.size
75
75
  }
76
76
  }),
77
- Select: x.extend({
77
+ Select: z.extend({
78
78
  defaultProps: {
79
79
  radius: e.borderRadius,
80
80
  color: o,
81
81
  size: e.size
82
82
  }
83
83
  }),
84
- Progress: p.extend({
84
+ Progress: x.extend({
85
85
  defaultProps: {
86
86
  radius: e.borderRadius,
87
87
  color: o,
88
88
  size: e.size
89
89
  }
90
90
  }),
91
- InputError: c.extend({
91
+ InputError: p.extend({
92
92
  defaultProps: {
93
93
  color: o,
94
94
  size: e.size
95
95
  }
96
96
  }),
97
- Card: f.extend({
97
+ Card: c.extend({
98
98
  defaultProps: {
99
99
  radius: e.borderRadius
100
100
  }
101
101
  }),
102
- ThemeIcon: m.extend({
102
+ ThemeIcon: f.extend({
103
103
  defaultProps: {
104
104
  radius: e.borderRadius,
105
105
  color: o,
106
106
  size: e.size
107
107
  }
108
108
  }),
109
- ActionIcon: l.extend({
109
+ ActionIcon: m.extend({
110
110
  defaultProps: {
111
111
  radius: e.borderRadius,
112
112
  color: o,
113
113
  size: e.size
114
114
  }
115
115
  }),
116
- Flex: u.extend({
116
+ Flex: l.extend({
117
117
  defaultProps: {
118
118
  align: "center",
119
119
  gap: 8
@@ -1,14 +1,14 @@
1
- import { useMemo as m, useCallback as d } from "react";
1
+ import { useCallback as m, useMemo as d } from "react";
2
2
  import { isValid as f } from "date-fns";
3
3
  import { useFormViewerStore as v } from "../store/formStore.js";
4
4
  import { controlsReselect as h } from "../store/selectors.js";
5
5
  import { useSteps as g } from "./useCreateFormContext.js";
6
6
  const N = (i, o = !1) => {
7
7
  const a = b();
8
- return m(() => o ? i || "" : a(i), [o, a, i]);
8
+ return d(() => o ? i || "" : a(i), [o, a, i]);
9
9
  }, b = () => {
10
10
  const { form: i } = g(), { useStore: o } = v(), a = o(h);
11
- return d(
11
+ return m(
12
12
  (u) => {
13
13
  const p = a.reduce(
14
14
  (t, e) => {
@@ -1,5 +1,5 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
- import { useState as a, useLayoutEffect as d, createContext as S, useContext as v } from "react";
2
+ import { useState as a, useLayoutEffect as d, useContext as S, createContext as v } from "react";
3
3
  import { create as w } from "zustand";
4
4
  import { createFormStoreApi as x } from "./formStoreApi.js";
5
5
  const b = () => {
@@ -40,7 +40,7 @@ const b = () => {
40
40
  useStore: e,
41
41
  api: x(e)
42
42
  };
43
- }, u = S(null), P = ({
43
+ }, u = v(null), P = ({
44
44
  children: e,
45
45
  editing: t = !1,
46
46
  preview: o = !1,
@@ -70,7 +70,7 @@ const b = () => {
70
70
  r.api
71
71
  ]), /* @__PURE__ */ p(u.Provider, { value: r, children: m ? e : null });
72
72
  }, A = () => {
73
- const t = v(u) || window.globalFormStore;
73
+ const t = S(u) || window.globalFormStore;
74
74
  if (!t)
75
75
  throw new Error(
76
76
  "useFormViewerStore must be used within a FormStoreProvider"
@@ -1,7 +1,7 @@
1
1
  import { createSelector as s } from "@reduxjs/toolkit";
2
2
  import { isEqual as y } from "lodash-es";
3
3
  import { DEFAULT_THEME as v } from "../constants/defaultTheme.js";
4
- import { mergeTheme as d, sortSteps as g } from "../helpers/helpers.js";
4
+ import { sortSteps as g, mergeTheme as d } from "../helpers/helpers.js";
5
5
  import { getFirstStep as B } from "../helpers/steps.js";
6
6
  const D = v, M = s(
7
7
  [(t) => t.config.theme],
@@ -4,6 +4,7 @@ export interface GroupAvatarProps extends Omit<AvatarProps, 'src'>, Omit<React.C
4
4
  groupId?: string;
5
5
  groupName?: string;
6
6
  size?: number | string;
7
+ textSize?: number | string;
7
8
  }
8
9
  export declare const GroupAvatar: import("react").ForwardRefExoticComponent<GroupAvatarProps & import("react").RefAttributes<HTMLDivElement>>;
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/GroupAvatar/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAK5C,MAAM,WAAW,gBACf,SAAQ,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,EAC9B,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,MAAM,WAAW,CAAC;IAChE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,WAAW,6GAgBvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/GroupAvatar/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAK5C,MAAM,WAAW,gBACf,SAAQ,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,EAC9B,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,MAAM,WAAW,CAAC;IAChE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAED,eAAO,MAAM,WAAW,6GAiBvB,CAAC"}
@@ -1,14 +1,15 @@
1
- import { jsx as p } from "react/jsx-runtime";
2
- import { forwardRef as f } from "react";
3
- import i from "../../assets/svg/group_default_icon.svg.js";
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { forwardRef as p } from "react";
3
+ import f from "../../assets/svg/group_default_icon.svg.js";
4
4
  import { UserAvatar as u } from "../UserAvatar/index.js";
5
- const s = f(
6
- ({ groupIcon: r, groupId: a, groupName: o, size: t = 24, ...m }, e) => /* @__PURE__ */ p(
5
+ const n = p(
6
+ ({ groupIcon: r, groupId: a, groupName: o, size: t = 24, ...m }, e) => /* @__PURE__ */ i(
7
7
  u,
8
8
  {
9
9
  ref: e,
10
+ variant: "light",
10
11
  user: {
11
- avatar: r || i,
12
+ avatar: r || f,
12
13
  id: a || "",
13
14
  name: o,
14
15
  email: ""
@@ -18,7 +19,7 @@ const s = f(
18
19
  }
19
20
  )
20
21
  );
21
- s.displayName = "GroupAvatar";
22
+ n.displayName = "GroupAvatar";
22
23
  export {
23
- s as GroupAvatar
24
+ n as GroupAvatar
24
25
  };
@@ -0,0 +1,19 @@
1
+ export interface ImageCropperProps {
2
+ src: string;
3
+ variant?: 'square' | 'rounded';
4
+ aspectRatio?: number;
5
+ minSize?: number;
6
+ maxSize?: number;
7
+ onCropComplete?: (croppedImage: Blob) => void;
8
+ onCropDataChange?: (data: CropData) => void;
9
+ }
10
+ export interface CropData {
11
+ x: number;
12
+ y: number;
13
+ width: number;
14
+ height: number;
15
+ scale: number;
16
+ }
17
+ export declare const ImageCropper: ({ src, variant, aspectRatio, minSize, maxSize, onCropComplete, onCropDataChange, }: ImageCropperProps) => import("react/jsx-runtime").JSX.Element;
18
+ export default ImageCropper;
19
+ //# sourceMappingURL=ImageCropper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImageCropper.d.ts","sourceRoot":"","sources":["../../../src/components/ImageCropper/ImageCropper.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,CAAC,YAAY,EAAE,IAAI,KAAK,IAAI,CAAC;IAC9C,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;CAC7C;AAED,MAAM,WAAW,QAAQ;IACvB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AASD,eAAO,MAAM,YAAY,GAAI,oFAQ1B,iBAAiB,4CAuiBnB,CAAC;AAEF,eAAe,YAAY,CAAC"}