@layers-app/shared 0.2.3 → 0.2.4

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 (35) hide show
  1. package/dist/components/AppContainer/AppContainer.d.ts +1 -1
  2. package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
  3. package/dist/components/AppContainer/AppContainer.js +31 -23
  4. package/dist/components/AppContainer/hooks/useAppContainerStore.d.ts.map +1 -1
  5. package/dist/components/AppContainer/hooks/useAppContainerStore.js +12 -9
  6. package/dist/components/AppContainer/types.d.ts +1 -0
  7. package/dist/components/AppContainer/types.d.ts.map +1 -1
  8. package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
  9. package/dist/components/EmojiPicker/EmojiPanel.js +50 -49
  10. package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
  11. package/dist/components/EmojiPicker/IconsPanel.js +79 -78
  12. package/dist/components/FilePicker/FilePicker.d.ts +2 -3
  13. package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
  14. package/dist/components/FilePicker/FilePicker.js +88 -122
  15. package/dist/components/FilePicker/FilePickerGiphy.d.ts +1 -3
  16. package/dist/components/FilePicker/FilePickerGiphy.d.ts.map +1 -1
  17. package/dist/components/FilePicker/FilePickerGiphy.js +43 -44
  18. package/dist/components/FilePicker/FilePickerLink.d.ts +2 -3
  19. package/dist/components/FilePicker/FilePickerLink.d.ts.map +1 -1
  20. package/dist/components/FilePicker/FilePickerLink.js +21 -21
  21. package/dist/components/FilePicker/FilePickerUnsplash.d.ts +1 -3
  22. package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
  23. package/dist/components/FilePicker/FilePickerUnsplash.js +45 -46
  24. package/dist/components/FilePicker/FilePickerUpload.d.ts +3 -3
  25. package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
  26. package/dist/components/FilePicker/FilePickerUpload.js +49 -43
  27. package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
  28. package/dist/components/NavMenu/components/NavMenuItem.js +6 -5
  29. package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts +2 -2
  30. package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts.map +1 -1
  31. package/dist/components/WorkspaceMenu/WorkspaceMenu.js +100 -103
  32. package/dist/lang/locales/ui_en.json.js +20 -12
  33. package/dist/lang/locales/ui_es.json.js +18 -10
  34. package/dist/lang/locales/ui_ru.json.js +24 -16
  35. package/package.json +1 -1
@@ -1,98 +1,95 @@
1
- import { jsx as e, Fragment as S, jsxs as n } from "react/jsx-runtime";
2
- import { useState as A } from "react";
3
- import { useTranslation as u } from "react-i18next";
4
- import { Link as z } from "react-router-dom";
5
- import { Setting07Icon as L, UserMultiple02Icon as K, Add01Icon as T } from "@hugeicons/core-free-icons";
6
- import { HugeiconsIcon as k } from "@hugeicons/react";
7
- import { Flex as a, Menu as m, Tooltip as P, Text as d, Stack as p, Box as h, Button as b, ScrollArea as U, Progress as B } from "@mantine/core";
8
- import { useMenu as D } from "../../hooks/useMenu.js";
9
- import { formatStorage as M } from "../../utils/formatStorage.js";
10
- import { Logotype as F } from "../Logotype.js";
11
- import { WorkspaceAvatar as y } from "../WorkspaceAvatar/WorkspaceAvatar.js";
12
- import { Numbers as O } from "../table/helpers/formatters.js";
13
- import { WorkspaceItem as H } from "./WorkspaceItem.js";
14
- const oe = ({
1
+ import { jsx as e, Fragment as M, jsxs as n } from "react/jsx-runtime";
2
+ import { useState as N } from "react";
3
+ import { useTranslation as h } from "react-i18next";
4
+ import { Link as b } from "react-router-dom";
5
+ import { Setting07Icon as j, UserMultiple02Icon as A, Add01Icon as K } from "@hugeicons/core-free-icons";
6
+ import { HugeiconsIcon as g } from "@hugeicons/react";
7
+ import { Flex as l, Menu as p, Tooltip as T, Text as m, Stack as a, Box as f, Button as k, ScrollArea as P, Progress as U } from "@mantine/core";
8
+ import { useMenu as B } from "../../hooks/useMenu.js";
9
+ import { formatStorage as z } from "../../utils/formatStorage.js";
10
+ import { Logotype as D } from "../Logotype.js";
11
+ import { WorkspaceAvatar as S } from "../WorkspaceAvatar/WorkspaceAvatar.js";
12
+ import { Numbers as F } from "../table/helpers/formatters.js";
13
+ import { WorkspaceItem as O } from "./WorkspaceItem.js";
14
+ const ne = ({
15
15
  children: r,
16
- onCreate: s,
17
- onClick: t,
16
+ onCreate: i,
17
+ onClick: s,
18
18
  active: o,
19
- items: i,
20
- workspaceLink: c,
21
- settingsLink: l,
19
+ items: c,
20
+ workspaceLink: t,
21
+ settingsLink: y,
22
22
  membersLink: x,
23
- canEditWorkspace: I,
24
- isAnonym: C,
23
+ isAnonym: I,
25
24
  publicMode: W
26
25
  }) => {
27
- const { t: N } = u("workspaceMenu"), { isMobile: w } = D(), [j, f] = A(!1);
28
- return C || W ? /* @__PURE__ */ e(a, { w: "100%", justify: w ? "start" : "center", children: /* @__PURE__ */ e("a", { href: "/", children: /* @__PURE__ */ e(
29
- F,
26
+ const { t: C } = h("workspaceMenu"), { isMobile: u } = B(), [L, d] = N(!1);
27
+ return I || W ? /* @__PURE__ */ e(l, { w: "100%", justify: u ? "start" : "center", children: /* @__PURE__ */ e("a", { href: "/", children: /* @__PURE__ */ e(
28
+ D,
30
29
  {
31
- minified: !w,
32
- w: w ? 65 : 24,
30
+ minified: !u,
31
+ w: u ? 65 : 24,
33
32
  isLink: !1
34
33
  }
35
- ) }) }) : /* @__PURE__ */ e(S, { children: /* @__PURE__ */ n(
36
- m,
34
+ ) }) }) : /* @__PURE__ */ e(M, { children: /* @__PURE__ */ n(
35
+ p,
37
36
  {
38
- opened: j,
39
- onChange: f,
37
+ opened: L,
38
+ onChange: d,
40
39
  position: "right-start",
41
40
  keepMounted: !1,
42
41
  clickOutsideEvents: ["mousedown", "click"],
43
42
  offset: 17,
44
43
  children: [
45
- /* @__PURE__ */ e(m.Target, { children: r ?? /* @__PURE__ */ n(a, { onClick: () => f((g) => !g), children: [
46
- /* @__PURE__ */ e(y, { size: 30, workspace: o }),
47
- /* @__PURE__ */ e(a, { justify: "space-between", align: "center", w: "100%", miw: 0, children: /* @__PURE__ */ e(P, { label: o.workspaceName, children: /* @__PURE__ */ e(d, { size: "md", truncate: !0, children: o?.workspaceName || N("noName") }) }) })
44
+ /* @__PURE__ */ e(p.Target, { children: r ?? /* @__PURE__ */ n(l, { onClick: () => d((w) => !w), children: [
45
+ /* @__PURE__ */ e(S, { size: 30, workspace: o }),
46
+ /* @__PURE__ */ e(l, { justify: "space-between", align: "center", w: "100%", miw: 0, children: /* @__PURE__ */ e(T, { label: o.workspaceName, children: /* @__PURE__ */ e(m, { size: "md", truncate: !0, children: o?.workspaceName || C("noName") }) }) })
48
47
  ] }) }),
49
- /* @__PURE__ */ e(m.Dropdown, { w: 310, children: /* @__PURE__ */ n(p, { gap: 6, children: [
48
+ /* @__PURE__ */ e(p.Dropdown, { w: 310, children: /* @__PURE__ */ n(a, { gap: 6, children: [
50
49
  /* @__PURE__ */ e(
51
- $,
50
+ E,
52
51
  {
53
52
  active: o,
54
- workspaceLink: c,
55
- settingsLink: l,
53
+ workspaceLink: t,
54
+ settingsLink: y,
56
55
  membersLink: x,
57
- canEditWorkspace: I,
58
- onClose: () => f(!1)
56
+ onClose: () => d(!1)
59
57
  }
60
58
  ),
61
- /* @__PURE__ */ e(h, { px: 4, children: /* @__PURE__ */ e(m.Divider, {}) }),
59
+ /* @__PURE__ */ e(f, { px: 4, children: /* @__PURE__ */ e(p.Divider, {}) }),
62
60
  /* @__PURE__ */ e(
63
- E,
61
+ $,
64
62
  {
65
- onCreate: s,
66
- onClick: t,
67
- items: i.filter(
68
- (g) => g.workspaceId !== o?.workspaceId
63
+ onCreate: i,
64
+ onClick: s,
65
+ items: c.filter(
66
+ (w) => w.workspaceId !== o?.workspaceId
69
67
  ),
70
- onClose: () => f(!1)
68
+ onClose: () => d(!1)
71
69
  }
72
70
  )
73
71
  ] }) })
74
72
  ]
75
73
  }
76
74
  ) });
77
- }, $ = ({
75
+ }, E = ({
78
76
  active: r,
79
- workspaceLink: s,
80
- settingsLink: t,
77
+ workspaceLink: i,
78
+ settingsLink: s,
81
79
  membersLink: o,
82
- canEditWorkspace: i,
83
80
  onClose: c
84
81
  }) => {
85
- const { t: l } = u("workspaceMenu");
86
- return /* @__PURE__ */ n(p, { p: 4, pb: 5, gap: 12, children: [
87
- /* @__PURE__ */ n(a, { gap: 12, children: [
88
- /* @__PURE__ */ e(y, { size: 48, workspace: r }),
89
- /* @__PURE__ */ n(p, { gap: 0, miw: 0, children: [
90
- /* @__PURE__ */ e(d, { truncate: !0, size: "md", fw: 500, c: "var(--mantine-color-bright", children: r.workspaceName || l("noName") }),
91
- /* @__PURE__ */ e(d, { c: "gray", size: "sm", fw: 500, component: "span", children: /* @__PURE__ */ n(a, { gap: 8, component: "span", children: [
92
- r.totalMembers ? /* @__PURE__ */ n(S, { children: [
93
- l("member", { count: r.totalMembers }),
82
+ const { t } = h("workspaceMenu");
83
+ return /* @__PURE__ */ n(a, { p: 4, pb: 5, gap: 12, children: [
84
+ /* @__PURE__ */ n(l, { gap: 12, children: [
85
+ /* @__PURE__ */ e(S, { size: 48, workspace: r }),
86
+ /* @__PURE__ */ n(a, { gap: 0, miw: 0, children: [
87
+ /* @__PURE__ */ e(m, { truncate: !0, size: "md", fw: 500, c: "var(--mantine-color-bright)", children: r.workspaceName || t("noName") }),
88
+ /* @__PURE__ */ e(m, { c: "gray", size: "sm", fw: 500, component: "span", children: /* @__PURE__ */ n(l, { gap: 8, component: "span", children: [
89
+ r.totalMembers ? /* @__PURE__ */ n(M, { children: [
90
+ t("member", { count: r.totalMembers }),
94
91
  /* @__PURE__ */ e(
95
- h,
92
+ f,
96
93
  {
97
94
  w: 2,
98
95
  h: 2,
@@ -102,73 +99,73 @@ const oe = ({
102
99
  }
103
100
  )
104
101
  ] }) : null,
105
- l(`plans.${r.plan}`)
102
+ t(`plans.${r.plan}`)
106
103
  ] }) })
107
104
  ] })
108
105
  ] }),
109
- /* @__PURE__ */ e(q, { active: r }),
110
- /* @__PURE__ */ n(a, { children: [
106
+ /* @__PURE__ */ e(H, { active: r }),
107
+ /* @__PURE__ */ n(l, { children: [
111
108
  /* @__PURE__ */ e(
112
- b,
109
+ k,
113
110
  {
114
111
  flex: 1,
115
- component: z,
112
+ component: b,
116
113
  variant: "default",
117
114
  size: "sm",
118
- leftSection: /* @__PURE__ */ e(k, { size: 16, icon: L }),
119
- to: i ? s ?? "" : t ?? "",
115
+ leftSection: /* @__PURE__ */ e(g, { size: 16, icon: j }),
116
+ to: i ?? s ?? "",
120
117
  onClick: c,
121
- children: l("settings")
118
+ children: t("settings")
122
119
  }
123
120
  ),
124
121
  /* @__PURE__ */ e(
125
- b,
122
+ k,
126
123
  {
127
124
  flex: 1,
128
- component: z,
125
+ component: b,
129
126
  variant: "default",
130
127
  size: "sm",
131
- leftSection: /* @__PURE__ */ e(k, { size: 16, icon: K }),
128
+ leftSection: /* @__PURE__ */ e(g, { size: 16, icon: A }),
132
129
  to: o ?? "",
133
130
  onClick: c,
134
- children: l("members")
131
+ children: t("members")
135
132
  }
136
133
  )
137
134
  ] })
138
135
  ] });
139
- }, q = ({
136
+ }, H = ({
140
137
  active: r
141
138
  }) => {
142
- const { t: s } = u("workspaceMenu"), t = (r?.storageUsedKb || 0) / (r?.storageLimitKb || 1), o = O.formatPercents(t);
143
- return /* @__PURE__ */ n(p, { gap: 4, w: "100%", children: [
144
- /* @__PURE__ */ n(a, { justify: "space-between", children: [
145
- /* @__PURE__ */ n(d, { size: "sm", fw: 500, children: [
146
- s("usedStorage"),
139
+ const { t: i } = h("workspaceMenu"), s = (r?.storageUsedKb || 0) / (r?.storageLimitKb || 1), o = F.formatPercents(s);
140
+ return /* @__PURE__ */ n(a, { gap: 4, w: "100%", children: [
141
+ /* @__PURE__ */ n(l, { justify: "space-between", children: [
142
+ /* @__PURE__ */ n(m, { size: "sm", fw: 500, children: [
143
+ i("usedStorage"),
147
144
  ": ",
148
145
  o
149
146
  ] }),
150
- /* @__PURE__ */ n(d, { size: "sm", fw: 500, c: "gray", children: [
151
- M(r?.storageUsedKb),
147
+ /* @__PURE__ */ n(m, { size: "sm", fw: 500, c: "gray", children: [
148
+ z(r?.storageUsedKb),
152
149
  " ",
153
- s("of"),
150
+ i("of"),
154
151
  " ",
155
- M(r?.storageLimitKb)
152
+ z(r?.storageLimitKb)
156
153
  ] })
157
154
  ] }),
158
- /* @__PURE__ */ e(B, { h: 4, value: t * 100 })
155
+ /* @__PURE__ */ e(U, { h: 4, value: s * 100 })
159
156
  ] });
160
- }, E = ({
157
+ }, $ = ({
161
158
  onCreate: r,
162
- onClick: s,
163
- items: t,
159
+ onClick: i,
160
+ items: s,
164
161
  onClose: o
165
162
  }) => {
166
- const { t: i } = u("workspaceMenu");
167
- return /* @__PURE__ */ n(p, { gap: 12, children: [
168
- t?.length > 0 && /* @__PURE__ */ n(p, { gap: 6, children: [
169
- /* @__PURE__ */ e(m.Label, { fw: 600, px: 4, py: 5, fz: "sm", children: i("switchWorkspace") }),
170
- /* @__PURE__ */ e(h, { w: "100%", children: /* @__PURE__ */ e(
171
- U.Autosize,
163
+ const { t: c } = h("workspaceMenu");
164
+ return /* @__PURE__ */ n(a, { gap: 12, children: [
165
+ s?.length > 0 && /* @__PURE__ */ n(a, { gap: 6, children: [
166
+ /* @__PURE__ */ e(p.Label, { fw: 600, px: 4, py: 5, fz: "sm", children: c("switchWorkspace") }),
167
+ /* @__PURE__ */ e(f, { w: "100%", children: /* @__PURE__ */ e(
168
+ P.Autosize,
172
169
  {
173
170
  mah: 200,
174
171
  w: "100%",
@@ -180,19 +177,19 @@ const oe = ({
180
177
  minWidth: 0
181
178
  }
182
179
  },
183
- children: /* @__PURE__ */ e(p, { gap: 6, miw: 0, children: t.map((c) => /* @__PURE__ */ e(
184
- H,
180
+ children: /* @__PURE__ */ e(a, { gap: 6, miw: 0, children: s.map((t) => /* @__PURE__ */ e(
181
+ O,
185
182
  {
186
- workspace: c,
187
- onClick: s
183
+ workspace: t,
184
+ onClick: i
188
185
  },
189
- c.workspaceId
186
+ t.workspaceId
190
187
  )) })
191
188
  }
192
189
  ) })
193
190
  ] }),
194
- /* @__PURE__ */ e(h, { p: 4, pt: 0, children: /* @__PURE__ */ e(
195
- b,
191
+ /* @__PURE__ */ e(f, { p: 4, pt: 0, children: /* @__PURE__ */ e(
192
+ k,
196
193
  {
197
194
  fullWidth: !0,
198
195
  variant: "default",
@@ -200,13 +197,13 @@ const oe = ({
200
197
  onClick: () => {
201
198
  r?.(), o?.();
202
199
  },
203
- leftSection: /* @__PURE__ */ e(k, { icon: T, size: 16 }),
204
- children: i("newWorkspace")
200
+ leftSection: /* @__PURE__ */ e(g, { icon: K, size: 16 }),
201
+ children: c("newWorkspace")
205
202
  }
206
203
  ) })
207
204
  ] });
208
205
  };
209
206
  export {
210
- $ as ActiveWorkspace,
211
- oe as WorkspaceMenu
207
+ E as ActiveWorkspace,
208
+ ne as WorkspaceMenu
212
209
  };
@@ -1,21 +1,29 @@
1
- const e = { searchResults: "Search results", icons: "Icons", searchNoResults: "No results found", chooseColor: "Choose color", categories: { activity: "Activities", custom: "Custom", flags: "Flags", foods: "Food and drinks", frequent: "Recent", nature: "Animals and nature", objects: "Objects", people: "Emotions and people", places: "Travel and places", symbols: "Symbols" } }, o = { label: "Image", change: "Change", description: "You can upload images up to 256×256 and up to 5mb." }, a = { colorGradients: "Colors and gradients", jamesWebbTelescope: "Telescope", nasaArchive: "Planet", theIndianEdition: "Cyberpunk", theMetMuseum: "Museum", theMetMuseumPatterns: "Pattern", theMetMuseumJapanesePrints: "Nature", rijkmuseum: "Black hole" }, n = { gallery: "Gallery", upload: "Upload", uploadFile: "Upload file", maxFileSize: "Images wider than 1600px are recommended. Maximum file size: 5MB.", link: "Link", searchImages: "Search Image", pasteLink: "Paste an image link...", submitLink: "Apply", worksWithAnyImage: "Works with any image from the Internet", searchImage: "Search for an image...", noResult: "No image found for your query.", change: "Change cover", invalidLink: "Invalid link", position: "Reposition", dragSave: "Save position", dragCancel: "Cancel" }, t = { color: "Color", background: "Background", colors: { standard: "Standard", gray: "Gray", brown: "Brown", orange: "Orange", yellow: "Yellow", green: "Green", blue: "Blue", purple: "Purple", pink: "Pink", red: "Red" } }, s = { save: "Save" }, r = { download: "Download", zoomOut: "Zoom out", zoomIn: "Zoom in", close: "Close", fileError: "Upload failed. Please try again." }, l = { day_one: "{{count}} day ago", day_other: "{{count}} days ago", hour_one: "{{count}} hour ago", hour_other: "{{count}} hours ago", minute_one: "{{count}} minute ago", minute_other: "{{count}} minutes ago", second_one: "{{count}} second ago", second_other: "{{count}} seconds ago", justNow: "just now", shortDay: "{{count}}d ago.", shortHour: "{{count}}h ago.", shortMinute: "{{count}}m ago.", shortSecond: "{{count}}s ago.", shortJustNow: "now." }, u = {
1
+ const e = { searchResults: "Search results", icons: "Icons", searchNoResults: "No results found", chooseColor: "Choose color", categories: { activity: "Activities", custom: "Custom", flags: "Flags", foods: "Food and drinks", frequent: "Recent", nature: "Animals and nature", objects: "Objects", people: "Emotions and people", places: "Travel and places", symbols: "Symbols" } }, o = { label: "Image", change: "Change", description: "You can upload images up to 256×256 and up to 5mb." }, a = { colorGradients: "Colors and gradients", jamesWebbTelescope: "Telescope", nasaArchive: "Planet", theIndianEdition: "Cyberpunk", theMetMuseum: "Museum", theMetMuseumPatterns: "Pattern", theMetMuseumJapanesePrints: "Nature", rijkmuseum: "Black hole" }, s = { gallery: "Gallery", upload: "Upload", uploadFile: "Upload file", maxFileSize: "Images wider than 1600px are recommended. Maximum file size: 5MB.", link: "Link", searchImages: "Search Image", pasteLink: "Paste an image link...", submitLink: "Apply", worksWithAnyImage: "Works with any image from the Internet", searchImage: "Search for an image...", noResult: "No image found for your query.", change: "Change cover", invalidLink: "Invalid link", position: "Reposition", dragSave: "Save position", dragCancel: "Cancel" }, r = { color: "Color", background: "Background", colors: { standard: "Standard", gray: "Gray", brown: "Brown", orange: "Orange", yellow: "Yellow", green: "Green", blue: "Blue", purple: "Purple", pink: "Pink", red: "Red" } }, n = { save: "Save" }, i = "Remove", t = "Error", l = "Drag images here or click to select files", c = { dropFileHere: { image: "Drag images here or click to select files", video: "Drag videos here or click to select files", audio: "Drag audio files here or click to select files", file: "Drag files here or click to select files" }, description: { image: "Images wider than 1600px are recommended. Maximum file size: {{maxSize}}MB.", video: "Maximum file size: {{maxSize}}MB.", audio: "Maximum file size: {{maxSize}}MB.", file: "Maximum file size: {{maxSize}}MB." }, errors: { typeIsNotAllowed: "This file type is not supported", shouldNotExceed: "File size should not exceed 5 MB.", doNotUploadMoreThanSingleFile: "Please upload no more than one file." } }, u = { download: "Download", zoomOut: "Zoom out", zoomIn: "Zoom in", close: "Close", fileError: "Upload failed. Please try again." }, d = { day_one: "{{count}} day ago", day_other: "{{count}} days ago", hour_one: "{{count}} hour ago", hour_other: "{{count}} hours ago", minute_one: "{{count}} minute ago", minute_other: "{{count}} minutes ago", second_one: "{{count}} second ago", second_other: "{{count}} seconds ago", justNow: "just now", shortDay: "{{count}}d ago.", shortHour: "{{count}}h ago.", shortMinute: "{{count}}m ago.", shortSecond: "{{count}}s ago.", shortJustNow: "now." }, m = {
2
2
  emojiPicker: e,
3
3
  uploadImage: o,
4
4
  coverGroups: a,
5
- changeCover: n,
6
- colorPicker: t,
7
- customDrawer: s,
8
- gallery: r,
9
- relativeTime: l
5
+ changeCover: s,
6
+ colorPicker: r,
7
+ customDrawer: n,
8
+ remove: i,
9
+ errorMessage: t,
10
+ dropFileHere: l,
11
+ filePicker: c,
12
+ gallery: u,
13
+ relativeTime: d
10
14
  };
11
15
  export {
12
- n as changeCover,
13
- t as colorPicker,
16
+ s as changeCover,
17
+ r as colorPicker,
14
18
  a as coverGroups,
15
- s as customDrawer,
16
- u as default,
19
+ n as customDrawer,
20
+ m as default,
21
+ l as dropFileHere,
17
22
  e as emojiPicker,
18
- r as gallery,
19
- l as relativeTime,
23
+ t as errorMessage,
24
+ c as filePicker,
25
+ u as gallery,
26
+ d as relativeTime,
27
+ i as remove,
20
28
  o as uploadImage
21
29
  };
@@ -1,21 +1,29 @@
1
- const e = { searchResults: "Resultados de búsqueda", icons: "Iconos", searchNoResults: "No se encontraron resultados", chooseColor: "Elegir color", categories: { activity: "Actividades", custom: "Personalizado", flags: "Banderas", foods: "Comida y bebidas", frequent: "Usados frecuentemente", nature: "Animales y naturaleza", objects: "Objetos", people: "Emociones y personas", places: "Viajes y lugares", symbols: "Símbolos" } }, a = { label: "Imagen", change: "Cambiar", description: "Puedes subir imágenes de hasta 256×256 y hasta 5 MB." }, o = { colorGradients: "Colores y degradados", jamesWebbTelescope: "Telescopio", nasaArchive: "Planeta", theIndianEdition: "Cyberpunk", theMetMuseum: "Museo", theMetMuseumPatterns: "Patrón", theMetMuseumJapanesePrints: "Naturaleza", rijkmuseum: "Agujero negro" }, r = { gallery: "Galería", upload: "Subir", uploadFile: "Subir archivo", maxFileSize: "Se recomiendan imágenes de más de 1600px de ancho. Tamaño máximo de archivo: 5MB.", link: "Enlace", searchImages: "Buscar imagen", pasteLink: "Pegar enlace de imagen...", submitLink: "Aplicar", worksWithAnyImage: "Funciona con cualquier imagen de Internet", searchImage: "Buscar imagen...", noResult: "No se encontró ninguna imagen para tu búsqueda.", change: "Cambiar portada", invalidLink: "Enlace inválido", position: "Reposicionar", dragSave: "Guardar posición", dragCancel: "Cancelar" }, n = { color: "Color", background: "Fondo", colors: { standard: "Estándar", gray: "Gris", brown: "Marrón", orange: "Naranja", yellow: "Amarillo", green: "Verde", blue: "Azul", purple: "Púrpura", pink: "Rosa", red: "Rojo" } }, s = { save: "Guardar" }, c = { download: "Descargar", zoomOut: "Alejar", zoomIn: "Acercar", close: "Cerrar", fileError: "La carga falló. Por favor, inténtalo de nuevo." }, t = { day_one: "hace {{count}} día", day_other: "hace {{count}} días", hour_one: "hace {{count}} hora", hour_other: "hace {{count}} horas", minute_one: "hace {{count}} minuto", minute_other: "hace {{count}} minutos", second_one: "hace {{count}} segundo", second_other: "hace {{count}} segundos", justNow: "ahora mismo", shortDay: "hace {{count}}d.", shortHour: "hace {{count}}h.", shortMinute: "hace {{count}}m.", shortSecond: "hace {{count}}s.", shortJustNow: "ahora." }, i = {
1
+ const e = { searchResults: "Resultados de búsqueda", icons: "Iconos", searchNoResults: "No se encontraron resultados", chooseColor: "Elegir color", categories: { activity: "Actividades", custom: "Personalizado", flags: "Banderas", foods: "Comida y bebidas", frequent: "Usados frecuentemente", nature: "Animales y naturaleza", objects: "Objetos", people: "Emociones y personas", places: "Viajes y lugares", symbols: "Símbolos" } }, a = { label: "Imagen", change: "Cambiar", description: "Puedes subir imágenes de hasta 256×256 y hasta 5 MB." }, o = { colorGradients: "Colores y degradados", jamesWebbTelescope: "Telescopio", nasaArchive: "Planeta", theIndianEdition: "Cyberpunk", theMetMuseum: "Museo", theMetMuseumPatterns: "Patrón", theMetMuseumJapanesePrints: "Naturaleza", rijkmuseum: "Agujero negro" }, r = { gallery: "Galería", upload: "Subir", uploadFile: "Subir archivo", maxFileSize: "Se recomiendan imágenes de más de 1600px de ancho. Tamaño máximo de archivo: 5MB.", link: "Enlace", searchImages: "Buscar imagen", pasteLink: "Pegar enlace de imagen...", submitLink: "Aplicar", worksWithAnyImage: "Funciona con cualquier imagen de Internet", searchImage: "Buscar imagen...", noResult: "No se encontró ninguna imagen para tu búsqueda.", change: "Cambiar portada", invalidLink: "Enlace inválido", position: "Reposicionar", dragSave: "Guardar posición", dragCancel: "Cancelar" }, s = { color: "Color", background: "Fondo", colors: { standard: "Estándar", gray: "Gris", brown: "Marrón", orange: "Naranja", yellow: "Amarillo", green: "Verde", blue: "Azul", purple: "Púrpura", pink: "Rosa", red: "Rojo" } }, n = { save: "Guardar" }, c = "Eliminar", i = "Error", t = "Arrastra imágenes aquí o haz clic para seleccionar archivos", l = { dropFileHere: { image: "Arrastra imágenes aquí o haz clic para seleccionar archivos", video: "Arrastra videos aquí o haz clic para seleccionar archivos", audio: "Arrastra archivos de audio aquí o haz clic para seleccionar archivos", file: "Arrastra archivos aquí o haz clic para seleccionar archivos" }, description: { image: "Se recomiendan imágenes de más de 1600px de ancho. Tamaño máximo de archivo: {{maxSize}}MB.", video: "Tamaño máximo de archivo: {{maxSize}}MB.", audio: "Tamaño máximo de archivo: {{maxSize}}MB.", file: "Tamaño máximo de archivo: {{maxSize}}MB." }, errors: { typeIsNotAllowed: "Este tipo de archivo no es compatible", shouldNotExceed: "El tamaño del archivo no debe exceder 5 MB.", doNotUploadMoreThanSingleFile: "Por favor, carga no más de un archivo." } }, d = { download: "Descargar", zoomOut: "Alejar", zoomIn: "Acercar", close: "Cerrar", fileError: "La carga falló. Por favor, inténtalo de nuevo." }, u = { day_one: "hace {{count}} día", day_other: "hace {{count}} días", hour_one: "hace {{count}} hora", hour_other: "hace {{count}} horas", minute_one: "hace {{count}} minuto", minute_other: "hace {{count}} minutos", second_one: "hace {{count}} segundo", second_other: "hace {{count}} segundos", justNow: "ahora mismo", shortDay: "hace {{count}}d.", shortHour: "hace {{count}}h.", shortMinute: "hace {{count}}m.", shortSecond: "hace {{count}}s.", shortJustNow: "ahora." }, m = {
2
2
  emojiPicker: e,
3
3
  uploadImage: a,
4
4
  coverGroups: o,
5
5
  changeCover: r,
6
- colorPicker: n,
7
- customDrawer: s,
8
- gallery: c,
9
- relativeTime: t
6
+ colorPicker: s,
7
+ customDrawer: n,
8
+ remove: c,
9
+ errorMessage: i,
10
+ dropFileHere: t,
11
+ filePicker: l,
12
+ gallery: d,
13
+ relativeTime: u
10
14
  };
11
15
  export {
12
16
  r as changeCover,
13
- n as colorPicker,
17
+ s as colorPicker,
14
18
  o as coverGroups,
15
- s as customDrawer,
16
- i as default,
19
+ n as customDrawer,
20
+ m as default,
21
+ t as dropFileHere,
17
22
  e as emojiPicker,
18
- c as gallery,
19
- t as relativeTime,
23
+ i as errorMessage,
24
+ l as filePicker,
25
+ d as gallery,
26
+ u as relativeTime,
27
+ c as remove,
20
28
  a as uploadImage
21
29
  };
@@ -1,21 +1,29 @@
1
- const o = { searchResults: "Результаты поиска", searchNoResults: "Результаты не найдены", icons: "Иконки", chooseColor: "Выбрать цвет", categories: { activity: "Активности", custom: "Свои", flags: "Флаги", foods: "Еда и напитки", frequent: "Часто используемые", nature: "Животные и природа", objects: "Предметы", people: "Эмоции и люди", places: "Путешествия и места", symbols: "Символы" } }, e = { colorGradients: "Цвета и градиенты", jamesWebbTelescope: "Телескоп", nasaArchive: "Планета", theIndianEdition: "Киберпанк", theMetMuseum: "Музей", theMetMuseumPatterns: "Паттерн", theMetMuseumJapanesePrints: "Природа", rijkmuseum: "Черная дыра" }, n = { gallery: "Галерея", upload: "Загрузить", uploadFile: "Загрузить файл", maxFileSize: "Рекомендуются изображения шире 1600px. Максимальный размер файла: 5МБ.", link: "Ссылка", searchImages: "Поиск изображения", pasteLink: "Вставьте ссылку на изображение...", submitLink: "Применить", worksWithAnyImage: "Работает с любыми изображениями из Интернета", searchImage: "Поиск изображения...", noResult: "По вашему запросу изображений не найдено", change: "Изменить обложку", invalidLink: "Неверная ссылка", position: "Изменить Позицию", dragSave: "Сохранить", dragCancel: "Отменить" }, t = { label: "Изображение", change: "Изменить", description: "Вы можете загружать изображения размером до 256×256 и весом до 5 МБ." }, s = { color: "Цвет", background: "Подложка", colors: { standard: "Стандартный", gray: "Серый", brown: "Коричневый", orange: "Оранжевый", yellow: "Желтый", green: "Зеленый", blue: "Синий", purple: "Фиолетовый", pink: "Розовый", red: "Красный" } }, c = { save: "Сохранить" }, u = { download: "Скачать", zoomOut: "Уменьшить", zoomIn: "Приблизить", close: "Закрыть", fileError: "Загрузка не удалась. Попробуйте снова." }, r = { day_one: "{{count}} день назад", day_few: "{{count}} дня назад", day_many: "{{count}} дней назад", day_other: "{{count}} дней назад", hour_one: "{{count}} час назад", hour_few: "{{count}} часа назад", hour_many: "{{count}} часов назад", hour_other: "{{count}} часов назад", minute_one: "{{count}} минута назад", minute_few: "{{count}} минуты назад", minute_many: "{{count}} минут назад", minute_other: "{{count}} минут назад", second_one: "{{count}} секунда назад", second_few: "{{count}} секунды назад", second_many: "{{count}} секунд назад", second_other: "{{count}} секунд назад", justNow: "только что", shortDay: "{{count}}д назад.", shortHour: "{{count}}ч назад.", shortMinute: "{{count}}м назад.", shortSecond: "{{count}}с назад.", shortJustNow: "сейчас." }, a = {
2
- emojiPicker: o,
3
- coverGroups: e,
4
- changeCover: n,
5
- uploadImage: t,
1
+ const e = { searchResults: "Результаты поиска", searchNoResults: "Результаты не найдены", icons: "Иконки", chooseColor: "Выбрать цвет", categories: { activity: "Активности", custom: "Свои", flags: "Флаги", foods: "Еда и напитки", frequent: "Часто используемые", nature: "Животные и природа", objects: "Предметы", people: "Эмоции и люди", places: "Путешествия и места", symbols: "Символы" } }, o = { colorGradients: "Цвета и градиенты", jamesWebbTelescope: "Телескоп", nasaArchive: "Планета", theIndianEdition: "Киберпанк", theMetMuseum: "Музей", theMetMuseumPatterns: "Паттерн", theMetMuseumJapanesePrints: "Природа", rijkmuseum: "Черная дыра" }, t = { gallery: "Галерея", upload: "Загрузить", uploadFile: "Загрузить файл", maxFileSize: "Рекомендуются изображения шире 1600px. Максимальный размер файла: 5МБ.", link: "Ссылка", searchImages: "Поиск изображения", pasteLink: "Вставьте ссылку на изображение...", submitLink: "Применить", worksWithAnyImage: "Работает с любыми изображениями из Интернета", searchImage: "Поиск изображения...", noResult: "По вашему запросу изображений не найдено", change: "Изменить обложку", invalidLink: "Неверная ссылка", position: "Изменить Позицию", dragSave: "Сохранить", dragCancel: "Отменить" }, n = { label: "Изображение", change: "Изменить", description: "Вы можете загружать изображения размером до 256×256 и весом до 5 МБ." }, s = { color: "Цвет", background: "Подложка", colors: { standard: "Стандартный", gray: "Серый", brown: "Коричневый", orange: "Оранжевый", yellow: "Желтый", green: "Зеленый", blue: "Синий", purple: "Фиолетовый", pink: "Розовый", red: "Красный" } }, r = { save: "Сохранить" }, c = "Удалить", a = "Ошибка", u = "Перетащите изображения сюда или нажмите, чтобы выбрать файлы", i = { dropFileHere: { image: "Перетащите изображения сюда или нажмите, чтобы выбрать файлы", video: "Перетащите видео сюда или нажмите, чтобы выбрать файлы", audio: "Перетащите аудио файлы сюда или нажмите, чтобы выбрать файлы", file: "Перетащите файлы сюда или нажмите, чтобы выбрать файлы" }, description: { image: "Рекомендуются изображения шире 1600px. Максимальный размер файла: {{maxSize}}МБ.", video: "Максимальный размер файла: {{maxSize}}МБ.", audio: "Максимальный размер файла: {{maxSize}}МБ.", file: "Максимальный размер файла: {{maxSize}}МБ." }, errors: { typeIsNotAllowed: "Этот тип файла не поддерживается", shouldNotExceed: "Размер файла не должен превышать 5 МБ.", doNotUploadMoreThanSingleFile: "Пожалуйста, загрузите не более одного файла." } }, l = { download: "Скачать", zoomOut: "Уменьшить", zoomIn: "Приблизить", close: "Закрыть", fileError: "Загрузка не удалась. Попробуйте снова." }, d = { day_one: "{{count}} день назад", day_few: "{{count}} дня назад", day_many: "{{count}} дней назад", day_other: "{{count}} дней назад", hour_one: "{{count}} час назад", hour_few: "{{count}} часа назад", hour_many: "{{count}} часов назад", hour_other: "{{count}} часов назад", minute_one: "{{count}} минута назад", minute_few: "{{count}} минуты назад", minute_many: "{{count}} минут назад", minute_other: "{{count}} минут назад", second_one: "{{count}} секунда назад", second_few: "{{count}} секунды назад", second_many: "{{count}} секунд назад", second_other: "{{count}} секунд назад", justNow: "только что", shortDay: "{{count}}д назад.", shortHour: "{{count}}ч назад.", shortMinute: "{{count}}м назад.", shortSecond: "{{count}}с назад.", shortJustNow: "сейчас." }, m = {
2
+ emojiPicker: e,
3
+ coverGroups: o,
4
+ changeCover: t,
5
+ uploadImage: n,
6
6
  colorPicker: s,
7
- customDrawer: c,
8
- gallery: u,
9
- relativeTime: r
7
+ customDrawer: r,
8
+ remove: c,
9
+ errorMessage: a,
10
+ dropFileHere: u,
11
+ filePicker: i,
12
+ gallery: l,
13
+ relativeTime: d
10
14
  };
11
15
  export {
12
- n as changeCover,
16
+ t as changeCover,
13
17
  s as colorPicker,
14
- e as coverGroups,
15
- c as customDrawer,
16
- a as default,
17
- o as emojiPicker,
18
- u as gallery,
19
- r as relativeTime,
20
- t as uploadImage
18
+ o as coverGroups,
19
+ r as customDrawer,
20
+ m as default,
21
+ u as dropFileHere,
22
+ e as emojiPicker,
23
+ a as errorMessage,
24
+ i as filePicker,
25
+ l as gallery,
26
+ d as relativeTime,
27
+ c as remove,
28
+ n as uploadImage
21
29
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layers-app/shared",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Shared components, hooks, and utilities for Layers application",
5
5
  "files": [
6
6
  "dist",