@layers-app/shared 0.0.38 → 0.0.39

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 (50) hide show
  1. package/dist/KanbanLayout-k814Ysrn.js +297 -0
  2. package/dist/components/AppContainer/types.d.ts +2 -0
  3. package/dist/components/CircleColorPicker/CircleColorPicker.d.ts +7 -0
  4. package/dist/components/Copyright/index.d.ts +2 -1
  5. package/dist/components/EmojiPicker/EmojiPanel.d.ts +1 -1
  6. package/dist/components/EmojiPicker/EmojiPicker.d.ts +9 -1
  7. package/dist/components/EmojiPicker/IconsPanel.d.ts +1 -1
  8. package/dist/components/EmojiPicker/custom-icons/StatusCancel.d.ts +2 -0
  9. package/dist/components/EmojiPicker/custom-icons/StatusDone.d.ts +2 -0
  10. package/dist/components/EmojiPicker/custom-icons/StatusProgress00.d.ts +2 -0
  11. package/dist/components/EmojiPicker/custom-icons/StatusProgress10.d.ts +2 -0
  12. package/dist/components/EmojiPicker/custom-icons/StatusProgress100.d.ts +2 -0
  13. package/dist/components/EmojiPicker/custom-icons/StatusProgress20.d.ts +2 -0
  14. package/dist/components/EmojiPicker/custom-icons/StatusProgress30.d.ts +2 -0
  15. package/dist/components/EmojiPicker/custom-icons/StatusProgress40.d.ts +2 -0
  16. package/dist/components/EmojiPicker/custom-icons/StatusProgress50.d.ts +2 -0
  17. package/dist/components/EmojiPicker/custom-icons/StatusProgress60.d.ts +2 -0
  18. package/dist/components/EmojiPicker/custom-icons/StatusProgress70.d.ts +2 -0
  19. package/dist/components/EmojiPicker/custom-icons/StatusProgress80.d.ts +2 -0
  20. package/dist/components/EmojiPicker/custom-icons/StatusProgress90.d.ts +2 -0
  21. package/dist/components/EmojiPicker/custom-icons/customIcons.d.ts +12 -0
  22. package/dist/components/EntityTitle/EntityTitle.d.ts +17 -0
  23. package/dist/components/FilePicker/FilePicker.d.ts +4 -3
  24. package/dist/components/NoData/NoData.d.ts +129 -22
  25. package/dist/components/ProjectIcon/ProjectIcon.d.ts +10 -1
  26. package/dist/components/UserAvatar/index.d.ts +1 -2
  27. package/dist/constants.d.ts +1 -0
  28. package/dist/emoji-categorized-CRsMUQyD.js +4 -0
  29. package/dist/helpers/filterHierarchyByTypes.d.ts +15 -0
  30. package/dist/helpers/getRandomIconColor.d.ts +1 -0
  31. package/dist/icons.min-wo13YUY4.js +4 -0
  32. package/dist/index-BHgJVazX.js +81164 -0
  33. package/dist/index.d.ts +5 -0
  34. package/dist/index.js +183 -175
  35. package/dist/index.umd.cjs +60 -1206
  36. package/dist/store/onboarding.d.ts +2 -2
  37. package/package.json +2 -2
  38. package/dist/KanbanLayout-_hW8P-S9.js +0 -287
  39. package/dist/TimeLine-DCVt4pFB.js +0 -198
  40. package/dist/components/OnBoarding/steps/DifferentLayouts/TimeLine.d.ts +0 -2
  41. package/dist/components/TemplatesModal/components/SelectedTemplate.d.ts +0 -7
  42. package/dist/components/TemplatesModal/components/Template.d.ts +0 -9
  43. package/dist/components/TemplatesModal/components/Templates.d.ts +0 -7
  44. package/dist/components/TemplatesModal/data.d.ts +0 -13
  45. package/dist/components/TemplatesModal/index.d.ts +0 -7
  46. package/dist/components/TemplatesModal/types.d.ts +0 -16
  47. package/dist/emoji-categorized-DAOdcF53.js +0 -4
  48. package/dist/icons.min-Chyr-bjL.js +0 -4
  49. package/dist/index-B17e6b8n.js +0 -67033
  50. package/dist/index.esm-Ci1yhzNS.js +0 -6814
@@ -0,0 +1,297 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { useTranslation } from "react-i18next";
3
+ import { Flex, Text, ActionIcon, Divider, Box, Avatar, Skeleton } from "@mantine/core";
4
+ import "react";
5
+ import { IconCheck, IconBug, IconSquareRotated, IconPlus, IconCalendarEvent, IconEqual } from "@tabler/icons-react";
6
+ import "react-router-dom";
7
+ import { randomId } from "@mantine/hooks";
8
+ import "@tanstack/react-query";
9
+ import "query-string";
10
+ import "@mantine/form";
11
+ import "@mantine/dropzone";
12
+ import "@mantine/notifications";
13
+ import "lodash-es";
14
+ import { u as useOnboardingState, S as StatusBadge } from "./index-BHgJVazX.js";
15
+ import "react-dom";
16
+ import "draggable-ui";
17
+ import "@mantine/modals";
18
+ import "i18next";
19
+ import "framer-motion";
20
+ import "@mantine/dates";
21
+ const column = "_column_1trmk_1";
22
+ const card = "_card_1trmk_6";
23
+ const styles = {
24
+ column,
25
+ card
26
+ };
27
+ const KanbanLayout = () => {
28
+ const { tasksList, statusesList } = useOnboardingState();
29
+ const today = /* @__PURE__ */ new Date();
30
+ const getPlusDays = (prop) => {
31
+ const plusThreeDays = new Date(today);
32
+ plusThreeDays.setDate(plusThreeDays.getDate() + (3 + prop));
33
+ return plusThreeDays.toDateString();
34
+ };
35
+ const { t } = useTranslation("onboarding");
36
+ const defaultTypes = [
37
+ {
38
+ id: randomId(),
39
+ color: "blue",
40
+ icon: IconCheck,
41
+ name: t("selectCategory.options.task"),
42
+ type: "task",
43
+ order: 1
44
+ },
45
+ {
46
+ id: randomId(),
47
+ color: "orange",
48
+ icon: IconBug,
49
+ name: t("selectCategory.options.bug"),
50
+ type: "bug",
51
+ order: 2
52
+ },
53
+ {
54
+ id: randomId(),
55
+ color: "grape",
56
+ icon: IconSquareRotated,
57
+ name: t("selectCategory.options.milestone"),
58
+ type: "milestone",
59
+ order: 3
60
+ }
61
+ ];
62
+ const getCurrentType = (type) => {
63
+ const current = defaultTypes.find((t2) => t2.type === type);
64
+ if (!current) return null;
65
+ return /* @__PURE__ */ jsx(ActionIcon, { size: 16, variant: "filled", color: current.color, children: /* @__PURE__ */ jsx(current.icon, {}) });
66
+ };
67
+ return /* @__PURE__ */ jsxs(Flex, { gap: 13, align: "start", w: "100%", children: [
68
+ /* @__PURE__ */ jsxs(
69
+ Flex,
70
+ {
71
+ gap: 11,
72
+ p: 7,
73
+ direction: "column",
74
+ w: 340,
75
+ className: styles.column,
76
+ children: [
77
+ /* @__PURE__ */ jsxs(Flex, { w: "100%", justify: "space-between", children: [
78
+ /* @__PURE__ */ jsxs(Flex, { gap: 14, align: "center", children: [
79
+ /* @__PURE__ */ jsx(StatusBadge, { color: "#228BE6", title: statusesList[0] }),
80
+ /* @__PURE__ */ jsxs(Text, { c: "#868E96", fz: 14, children: [
81
+ "(",
82
+ t("defineStatuses.tasks"),
83
+ ": ",
84
+ tasksList.length,
85
+ ")"
86
+ ] })
87
+ ] }),
88
+ /* @__PURE__ */ jsx(ActionIcon, { variant: "subtle", size: 18, children: /* @__PURE__ */ jsx(IconPlus, {}) })
89
+ ] }),
90
+ /* @__PURE__ */ jsx(Divider, { w: "100%" }),
91
+ tasksList.map((task, idx) => /* @__PURE__ */ jsxs(
92
+ Flex,
93
+ {
94
+ gap: 0,
95
+ direction: "column",
96
+ align: "start",
97
+ justify: "space-between",
98
+ w: "100%",
99
+ h: 105,
100
+ className: styles.card,
101
+ px: 14,
102
+ py: 9,
103
+ children: [
104
+ /* @__PURE__ */ jsxs(Box, { children: [
105
+ /* @__PURE__ */ jsx(Text, { fz: 18, fw: 400, children: task.title }),
106
+ /* @__PURE__ */ jsxs(Flex, { align: "center", children: [
107
+ /* @__PURE__ */ jsx(IconCalendarEvent, { color: "#495057", size: 13 }),
108
+ /* @__PURE__ */ jsx(Text, { fz: 16, c: "#495057", children: getPlusDays(idx) })
109
+ ] })
110
+ ] }),
111
+ /* @__PURE__ */ jsxs(Flex, { justify: "space-between", w: "100%", children: [
112
+ /* @__PURE__ */ jsxs(Flex, { children: [
113
+ getCurrentType(task.type),
114
+ /* @__PURE__ */ jsxs(Text, { fz: 13, children: [
115
+ "DEMO-",
116
+ idx + 1
117
+ ] })
118
+ ] }),
119
+ /* @__PURE__ */ jsxs(Flex, { children: [
120
+ /* @__PURE__ */ jsx(IconEqual, { color: "#F59F00", size: 16 }),
121
+ /* @__PURE__ */ jsx(
122
+ Avatar,
123
+ {
124
+ variant: "filled",
125
+ color: "#228BE6",
126
+ radius: "xl",
127
+ size: 24
128
+ }
129
+ )
130
+ ] })
131
+ ] })
132
+ ]
133
+ },
134
+ task.id
135
+ ))
136
+ ]
137
+ }
138
+ ),
139
+ /* @__PURE__ */ jsxs(
140
+ Flex,
141
+ {
142
+ gap: 11,
143
+ p: 7,
144
+ direction: "column",
145
+ w: 340,
146
+ className: styles.column,
147
+ children: [
148
+ /* @__PURE__ */ jsxs(Flex, { w: "100%", justify: "space-between", children: [
149
+ /* @__PURE__ */ jsxs(Flex, { gap: 14, align: "center", children: [
150
+ /* @__PURE__ */ jsx(StatusBadge, { color: "#12B886", title: statusesList[1] }),
151
+ /* @__PURE__ */ jsxs(Text, { c: "#868E96", fz: 14, children: [
152
+ "(",
153
+ t("defineStatuses.tasks"),
154
+ ": 2)"
155
+ ] })
156
+ ] }),
157
+ /* @__PURE__ */ jsx(ActionIcon, { variant: "subtle", size: 18, children: /* @__PURE__ */ jsx(IconPlus, {}) })
158
+ ] }),
159
+ /* @__PURE__ */ jsx(Divider, { w: "100%" }),
160
+ Array(2).fill(0).map((_, idx) => /* @__PURE__ */ jsxs(
161
+ Flex,
162
+ {
163
+ gap: 0,
164
+ direction: "column",
165
+ align: "start",
166
+ justify: "space-between",
167
+ w: "100%",
168
+ h: 105,
169
+ className: styles.card,
170
+ px: 14,
171
+ py: 9,
172
+ children: [
173
+ /* @__PURE__ */ jsxs(Box, { children: [
174
+ /* @__PURE__ */ jsx(
175
+ Skeleton,
176
+ {
177
+ animate: false,
178
+ mb: 15,
179
+ w: idx === 0 ? 128 : 172,
180
+ h: 18
181
+ }
182
+ ),
183
+ /* @__PURE__ */ jsxs(Flex, { align: "center", children: [
184
+ /* @__PURE__ */ jsx(IconCalendarEvent, { color: "#495057", size: 13 }),
185
+ /* @__PURE__ */ jsx(Skeleton, { animate: false, w: idx === 0 ? 52 : 63, h: 12 })
186
+ ] })
187
+ ] }),
188
+ /* @__PURE__ */ jsxs(Flex, { justify: "space-between", w: "100%", children: [
189
+ /* @__PURE__ */ jsxs(Flex, { children: [
190
+ /* @__PURE__ */ jsx(ActionIcon, { size: 16, variant: "filled", color: "#ADB5BD", children: /* @__PURE__ */ jsx(IconCheck, {}) }),
191
+ /* @__PURE__ */ jsxs(Text, { c: "#ADB5BD", fz: 13, children: [
192
+ "DEMO-",
193
+ idx + 4
194
+ ] })
195
+ ] }),
196
+ /* @__PURE__ */ jsxs(Flex, { children: [
197
+ /* @__PURE__ */ jsx(IconEqual, { color: "#F59F00", size: 16 }),
198
+ /* @__PURE__ */ jsx(
199
+ Avatar,
200
+ {
201
+ variant: "filled",
202
+ color: "#228BE6",
203
+ radius: "xl",
204
+ size: 24
205
+ }
206
+ )
207
+ ] })
208
+ ] })
209
+ ]
210
+ },
211
+ idx
212
+ ))
213
+ ]
214
+ }
215
+ ),
216
+ /* @__PURE__ */ jsxs(
217
+ Flex,
218
+ {
219
+ gap: 11,
220
+ p: 7,
221
+ direction: "column",
222
+ w: 340,
223
+ className: styles.column,
224
+ children: [
225
+ /* @__PURE__ */ jsxs(Flex, { w: "100%", justify: "space-between", children: [
226
+ /* @__PURE__ */ jsxs(Flex, { gap: 14, align: "center", children: [
227
+ /* @__PURE__ */ jsx(StatusBadge, { color: "#FA5252", title: statusesList[2] }),
228
+ /* @__PURE__ */ jsxs(Text, { c: "#868E96", fz: 14, children: [
229
+ "(",
230
+ t("defineStatuses.tasks"),
231
+ ": 2)"
232
+ ] })
233
+ ] }),
234
+ /* @__PURE__ */ jsx(ActionIcon, { variant: "subtle", size: 18, children: /* @__PURE__ */ jsx(IconPlus, {}) })
235
+ ] }),
236
+ /* @__PURE__ */ jsx(Divider, { w: "100%" }),
237
+ Array(2).fill(0).map((_, idx) => /* @__PURE__ */ jsxs(
238
+ Flex,
239
+ {
240
+ gap: 0,
241
+ direction: "column",
242
+ align: "start",
243
+ justify: "space-between",
244
+ w: "100%",
245
+ h: 105,
246
+ className: styles.card,
247
+ px: 14,
248
+ py: 9,
249
+ children: [
250
+ /* @__PURE__ */ jsxs(Box, { children: [
251
+ /* @__PURE__ */ jsx(
252
+ Skeleton,
253
+ {
254
+ animate: false,
255
+ mb: 15,
256
+ w: idx === 0 ? 266 : 150,
257
+ h: 18
258
+ }
259
+ ),
260
+ /* @__PURE__ */ jsxs(Flex, { align: "center", children: [
261
+ /* @__PURE__ */ jsx(IconCalendarEvent, { color: "#495057", size: 13 }),
262
+ /* @__PURE__ */ jsx(Skeleton, { animate: false, w: idx === 0 ? 72 : 46, h: 12 })
263
+ ] })
264
+ ] }),
265
+ /* @__PURE__ */ jsxs(Flex, { justify: "space-between", w: "100%", children: [
266
+ /* @__PURE__ */ jsxs(Flex, { children: [
267
+ /* @__PURE__ */ jsx(ActionIcon, { size: 16, variant: "filled", color: "#ADB5BD", children: /* @__PURE__ */ jsx(IconCheck, {}) }),
268
+ /* @__PURE__ */ jsxs(Text, { c: "#ADB5BD", fz: 13, children: [
269
+ "DEMO-",
270
+ idx + 6
271
+ ] })
272
+ ] }),
273
+ /* @__PURE__ */ jsxs(Flex, { children: [
274
+ /* @__PURE__ */ jsx(IconEqual, { color: "#F59F00", size: 16 }),
275
+ /* @__PURE__ */ jsx(
276
+ Avatar,
277
+ {
278
+ variant: "filled",
279
+ color: "#228BE6",
280
+ radius: "xl",
281
+ size: 24
282
+ }
283
+ )
284
+ ] })
285
+ ] })
286
+ ]
287
+ },
288
+ idx
289
+ ))
290
+ ]
291
+ }
292
+ )
293
+ ] });
294
+ };
295
+ export {
296
+ KanbanLayout as default
297
+ };
@@ -7,6 +7,8 @@ export type ToolDef = {
7
7
  icon: ReactNode;
8
8
  path: string;
9
9
  onClick?: () => void;
10
+ withBackButton?: boolean;
11
+ entityName?: string;
10
12
  };
11
13
  export type AppContainerProps = {
12
14
  content?: ReactNode;
@@ -0,0 +1,7 @@
1
+ import { ColorPickerProps, MenuProps } from '@mantine/core';
2
+ export declare const CircleColorPicker: ({ value, onChange, menuProps, colorPickerProps, }: {
3
+ value: string;
4
+ onChange: (value: string) => void;
5
+ menuProps?: MenuProps;
6
+ colorPickerProps?: ColorPickerProps;
7
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,10 @@
1
1
  import { default as React } from 'react';
2
+ import { ButtonProps } from '@mantine/core';
2
3
  interface CopyrightProps {
3
4
  className?: string;
4
5
  color?: string;
5
6
  title?: string;
6
- absolute?: boolean;
7
+ size?: ButtonProps['size'];
7
8
  }
8
9
  export declare const Copyright: React.FC<CopyrightProps>;
9
10
  export {};
@@ -1,5 +1,5 @@
1
1
  import { EmojiPickerProps } from '../..';
2
- export declare const EmojiPanel: ({ locales, onChange, onClose, setRandomIcon, }: Pick<EmojiPickerProps, "locales" | "value" | "onChange"> & {
2
+ export declare const EmojiPanel: ({ locales, onChange, onClose, setRandomIcon, querySearch, }: Pick<EmojiPickerProps, "locales" | "value" | "onChange" | "querySearch"> & {
3
3
  onClose: () => void;
4
4
  setRandomIcon: (icon: string) => void;
5
5
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,7 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import { FloatingPosition, PopoverProps } from '@mantine/core';
3
3
  export type EmojiPickerProps = {
4
+ project?: string;
4
5
  value?: string | null;
5
6
  onChange?: (v: string) => void;
6
7
  position?: FloatingPosition;
@@ -9,7 +10,14 @@ export type EmojiPickerProps = {
9
10
  showIcons?: boolean;
10
11
  showColors?: boolean;
11
12
  showEmojis?: boolean;
13
+ querySearch?: string;
12
14
  defaultActiveTab?: string | null;
15
+ /** Controls how the popover opens. 'click' preserves current behavior; 'realtime' opens only when typing matches triggerRegex. */
16
+ openWhen?: 'click' | 'realtime';
17
+ /** Regex used to detect a live trigger (default matches ":" plus at least one non-space, non-":" char). */
18
+ triggerRegex?: RegExp;
19
+ /** Monotonically increasing counter updated by the parent on each keypress; used to detect real-time typing. */
20
+ typingSeq?: number;
13
21
  };
14
22
  export type EmojiPickerLocales = {
15
23
  emojis?: string;
@@ -20,4 +28,4 @@ export type EmojiPickerLocales = {
20
28
  icons?: string;
21
29
  emojiCategory?: Record<string, string>;
22
30
  };
23
- export declare const EmojiPicker: ({ value, children, onChange, position, popoverProps, showIcons, showColors, defaultActiveTab, showEmojis, locales: _locales, }: PropsWithChildren<EmojiPickerProps>) => import("react/jsx-runtime").JSX.Element;
31
+ export declare const EmojiPicker: ({ project, value, querySearch, children, onChange, position, popoverProps, showIcons, showColors, defaultActiveTab, showEmojis, locales: _locales, openWhen, triggerRegex, typingSeq, }: PropsWithChildren<EmojiPickerProps>) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import { EmojiPickerProps } from './EmojiPicker';
2
- export declare const IconsPanel: import('react').MemoExoticComponent<({ showColors, locales, onChange, value, onClose, }: Pick<EmojiPickerProps, "locales" | "showColors" | "value" | "onChange"> & {
2
+ export declare const IconsPanel: import('react').MemoExoticComponent<({ showColors, locales, onChange, value, onClose, project, }: Pick<EmojiPickerProps, "locales" | "showColors" | "value" | "onChange" | "project"> & {
3
3
  onClose: () => void;
4
4
  }) => import("react/jsx-runtime").JSX.Element>;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const StatusCancel: ({ color, ...props }: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const StatusDone: ({ color, ...props }: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const StatusProgress00: ({ color, ...props }: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const StatusProgress10: ({ color, ...props }: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const StatusProgress100: ({ color, ...props }: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const StatusProgress20: ({ color, ...props }: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const StatusProgress30: ({ color, ...props }: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const StatusProgress40: ({ color, ...props }: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const StatusProgress50: ({ color, ...props }: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const StatusProgress60: ({ color, ...props }: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const StatusProgress70: ({ color, ...props }: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const StatusProgress80: ({ color, ...props }: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const StatusProgress90: ({ color, ...props }: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { ComponentType, SVGProps } from 'react';
2
+ type CustomIconData = {
3
+ name: string;
4
+ component: ComponentType<SVGProps<SVGSVGElement>>;
5
+ category: string;
6
+ tags: string[];
7
+ };
8
+ export declare const customIconsData: CustomIconData[];
9
+ export declare const customIcons: {
10
+ [k: string]: ComponentType<SVGProps<SVGSVGElement>>;
11
+ };
12
+ export {};
@@ -0,0 +1,17 @@
1
+ declare global {
2
+ interface Window {
3
+ isTitleFocused: boolean;
4
+ }
5
+ }
6
+ export declare const EntityTitle: ({ lock, title, handleTitle, placeholder, error, isReadOnly, accessEdit, nowrap, maxLength, fw, }: {
7
+ title: string;
8
+ lock?: boolean;
9
+ handleTitle?: (title: string) => void;
10
+ placeholder?: string;
11
+ error?: boolean;
12
+ isReadOnly?: boolean;
13
+ accessEdit?: boolean;
14
+ nowrap?: boolean;
15
+ maxLength?: number;
16
+ fw?: number;
17
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,12 +1,12 @@
1
1
  import { PropsWithChildren } from 'react';
2
- import { FloatingPosition, PopoverProps } from '@mantine/core';
2
+ import { FlexProps, FloatingPosition, PopoverProps } from '@mantine/core';
3
3
  import { DropzoneProps, FileWithPath } from '@mantine/dropzone';
4
4
  import { FilePickerLocales, FileType, ImagePickerGalleryCollection } from './types';
5
5
  declare const baseTabsList: readonly ["gallery", "upload", "link", "unsplash", "giphy"];
6
6
  type TabType = (typeof baseTabsList)[number];
7
7
  export type FilePickerProps = PropsWithChildren<{
8
8
  onChange?: (v: string) => void;
9
- onRemove?: () => void;
9
+ onRemove?: (e: React.MouseEvent<HTMLButtonElement>) => void;
10
10
  onUpload?: (files: FileWithPath[], setOpened: (state: boolean) => void) => void;
11
11
  uploading?: boolean;
12
12
  showTabs?: readonly TabType[];
@@ -22,6 +22,7 @@ export type FilePickerProps = PropsWithChildren<{
22
22
  locales?: FilePickerLocales;
23
23
  type?: FileType;
24
24
  isValidMediaUrl?: (url: string) => boolean;
25
+ targetProps?: FlexProps;
25
26
  }>;
26
- export declare const FilePicker: ({ onChange, onRemove, onUpload, uploading, showTabs, children, width, position, readOnly, hasImage, giphyToken, unsplashClientId, type, galleryCollection, isValidMediaUrl, popoverProps, dropZoneProps, locales, }: PropsWithChildren<FilePickerProps>) => import("react/jsx-runtime").JSX.Element;
27
+ export declare const FilePicker: ({ onChange, onRemove, onUpload, uploading, showTabs, children, width, position, readOnly, hasImage, giphyToken, unsplashClientId, type, galleryCollection, isValidMediaUrl, popoverProps, dropZoneProps, targetProps, locales, }: PropsWithChildren<FilePickerProps>) => import("react/jsx-runtime").JSX.Element;
27
28
  export {};
@@ -1,26 +1,132 @@
1
1
  import { FC, ReactNode } from 'react';
2
2
  import { ButtonProps, PolymorphicComponentProps, StackProps, TextProps, TitleProps } from '@mantine/core';
3
3
  export declare const illustrationMap: {
4
- empty: FC<import('react').SVGProps<SVGSVGElement>>;
5
- noAccess: FC<import('react').SVGProps<SVGSVGElement>>;
6
- trash: FC<import('react').SVGProps<SVGSVGElement>>;
7
- noImage: FC<import('react').SVGProps<SVGSVGElement>>;
8
- noResults: FC<import('react').SVGProps<SVGSVGElement>>;
9
- noTasks: FC<import('react').SVGProps<SVGSVGElement>>;
10
- noComments: FC<import('react').SVGProps<SVGSVGElement>>;
11
- noData: FC<import('react').SVGProps<SVGSVGElement>>;
12
- emptyFolder: FC<import('react').SVGProps<SVGSVGElement>>;
13
- noTaskResults: FC<import('react').SVGProps<SVGSVGElement>>;
14
- noSearchResults: FC<import('react').SVGProps<SVGSVGElement>>;
15
- noMembers: FC<import('react').SVGProps<SVGSVGElement>>;
16
- noGroups: FC<import('react').SVGProps<SVGSVGElement>>;
17
- noNotifications: FC<import('react').SVGProps<SVGSVGElement>>;
18
- noWorkspaces: FC<import('react').SVGProps<SVGSVGElement>>;
19
- paymentSuccess: FC<import('react').SVGProps<SVGSVGElement>>;
20
- notSuccessMan: FC<import('react').SVGProps<SVGSVGElement>>;
21
- alertMan: FC<import('react').SVGProps<SVGSVGElement>>;
22
- '404': FC<import('react').SVGProps<SVGSVGElement>>;
23
- '500': FC<import('react').SVGProps<SVGSVGElement>>;
4
+ empty: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
5
+ title?: string;
6
+ titleId?: string;
7
+ desc?: string;
8
+ descId?: string;
9
+ }>;
10
+ noAccess: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
11
+ title?: string;
12
+ titleId?: string;
13
+ desc?: string;
14
+ descId?: string;
15
+ }>;
16
+ trash: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
17
+ title?: string;
18
+ titleId?: string;
19
+ desc?: string;
20
+ descId?: string;
21
+ }>;
22
+ noImage: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
23
+ title?: string;
24
+ titleId?: string;
25
+ desc?: string;
26
+ descId?: string;
27
+ }>;
28
+ noResults: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
29
+ title?: string;
30
+ titleId?: string;
31
+ desc?: string;
32
+ descId?: string;
33
+ }>;
34
+ noTasks: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
35
+ title?: string;
36
+ titleId?: string;
37
+ desc?: string;
38
+ descId?: string;
39
+ }>;
40
+ noComments: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
41
+ title?: string;
42
+ titleId?: string;
43
+ desc?: string;
44
+ descId?: string;
45
+ }>;
46
+ noData: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
47
+ title?: string;
48
+ titleId?: string;
49
+ desc?: string;
50
+ descId?: string;
51
+ }>;
52
+ emptyFolder: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
53
+ title?: string;
54
+ titleId?: string;
55
+ desc?: string;
56
+ descId?: string;
57
+ }>;
58
+ noTaskResults: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
59
+ title?: string;
60
+ titleId?: string;
61
+ desc?: string;
62
+ descId?: string;
63
+ }>;
64
+ noSearchResults: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
65
+ title?: string;
66
+ titleId?: string;
67
+ desc?: string;
68
+ descId?: string;
69
+ }>;
70
+ noMembers: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
71
+ title?: string;
72
+ titleId?: string;
73
+ desc?: string;
74
+ descId?: string;
75
+ }>;
76
+ noGroups: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
77
+ title?: string;
78
+ titleId?: string;
79
+ desc?: string;
80
+ descId?: string;
81
+ }>;
82
+ noNotifications: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
83
+ title?: string;
84
+ titleId?: string;
85
+ desc?: string;
86
+ descId?: string;
87
+ }>;
88
+ noWorkspaces: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
89
+ title?: string;
90
+ titleId?: string;
91
+ desc?: string;
92
+ descId?: string;
93
+ }>;
94
+ paymentSuccess: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
95
+ title?: string;
96
+ titleId?: string;
97
+ desc?: string;
98
+ descId?: string;
99
+ }>;
100
+ notSuccessMan: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
101
+ title?: string;
102
+ titleId?: string;
103
+ desc?: string;
104
+ descId?: string;
105
+ }>;
106
+ noAnswers: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
107
+ title?: string;
108
+ titleId?: string;
109
+ desc?: string;
110
+ descId?: string;
111
+ }>;
112
+ alertMan: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
113
+ title?: string;
114
+ titleId?: string;
115
+ desc?: string;
116
+ descId?: string;
117
+ }>;
118
+ '404': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
119
+ title?: string;
120
+ titleId?: string;
121
+ desc?: string;
122
+ descId?: string;
123
+ }>;
124
+ '500': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
125
+ title?: string;
126
+ titleId?: string;
127
+ desc?: string;
128
+ descId?: string;
129
+ }>;
24
130
  };
25
131
  export type IllustrationType = keyof typeof illustrationMap | string;
26
132
  export type NoDataProps = {
@@ -31,7 +137,8 @@ export type NoDataProps = {
31
137
  buttons?: PolymorphicComponentProps<'button', ButtonProps>[];
32
138
  illustration?: IllustrationType;
33
139
  size?: number;
34
- width?: number;
35
- height?: number;
140
+ width?: number | string;
141
+ height?: number | string;
142
+ showDots?: boolean;
36
143
  } & StackProps;
37
144
  export declare const NoData: FC<NoDataProps>;