@layers-app/shared 0.4.2 → 0.4.3

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 (146) hide show
  1. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
  2. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +15 -16
  3. package/dist/components/EmojiPicker/EmojiPanel.js +6 -6
  4. package/dist/components/EmojiPicker/IconsPanel.js +11 -11
  5. package/dist/components/FormViewer/helpers/steps.d.ts.map +1 -1
  6. package/dist/components/FormViewer/helpers/steps.js +11 -11
  7. package/dist/components/MusicPlayerBar/MusicPlayerBar.d.ts +3 -0
  8. package/dist/components/MusicPlayerBar/MusicPlayerBar.d.ts.map +1 -0
  9. package/dist/components/MusicPlayerBar/MusicPlayerBar.js +239 -0
  10. package/dist/components/MusicPlayerBar/MusicPlayerBar.module.css.js +49 -0
  11. package/dist/components/MusicPlayerBar/components/HiddenAudio.d.ts +10 -0
  12. package/dist/components/MusicPlayerBar/components/HiddenAudio.d.ts.map +1 -0
  13. package/dist/components/MusicPlayerBar/components/HiddenAudio.js +35 -0
  14. package/dist/components/MusicPlayerBar/components/HoverActions.d.ts +20 -0
  15. package/dist/components/MusicPlayerBar/components/HoverActions.d.ts.map +1 -0
  16. package/dist/components/MusicPlayerBar/components/HoverActions.js +88 -0
  17. package/dist/components/MusicPlayerBar/components/MobileActionsDrawer.d.ts +18 -0
  18. package/dist/components/MusicPlayerBar/components/MobileActionsDrawer.d.ts.map +1 -0
  19. package/dist/components/MusicPlayerBar/components/MobileActionsDrawer.js +91 -0
  20. package/dist/components/MusicPlayerBar/components/MobileSpeedDrawer.d.ts +11 -0
  21. package/dist/components/MusicPlayerBar/components/MobileSpeedDrawer.d.ts.map +1 -0
  22. package/dist/components/MusicPlayerBar/components/MobileSpeedDrawer.js +38 -0
  23. package/dist/components/MusicPlayerBar/components/MobileTailControls.d.ts +11 -0
  24. package/dist/components/MusicPlayerBar/components/MobileTailControls.d.ts.map +1 -0
  25. package/dist/components/MusicPlayerBar/components/MobileTailControls.js +50 -0
  26. package/dist/components/MusicPlayerBar/components/PlayButton.d.ts +9 -0
  27. package/dist/components/MusicPlayerBar/components/PlayButton.d.ts.map +1 -0
  28. package/dist/components/MusicPlayerBar/components/PlayButton.js +28 -0
  29. package/dist/components/MusicPlayerBar/components/SpeedPopover.d.ts +11 -0
  30. package/dist/components/MusicPlayerBar/components/SpeedPopover.d.ts.map +1 -0
  31. package/dist/components/MusicPlayerBar/components/SpeedPopover.js +90 -0
  32. package/dist/components/MusicPlayerBar/components/Timer.d.ts +8 -0
  33. package/dist/components/MusicPlayerBar/components/Timer.d.ts.map +1 -0
  34. package/dist/components/MusicPlayerBar/components/Timer.js +25 -0
  35. package/dist/components/MusicPlayerBar/components/VolumePopover.d.ts +15 -0
  36. package/dist/components/MusicPlayerBar/components/VolumePopover.d.ts.map +1 -0
  37. package/dist/components/MusicPlayerBar/components/VolumePopover.js +86 -0
  38. package/dist/components/MusicPlayerBar/components/Waveform.d.ts +12 -0
  39. package/dist/components/MusicPlayerBar/components/Waveform.d.ts.map +1 -0
  40. package/dist/components/MusicPlayerBar/components/Waveform.js +47 -0
  41. package/dist/components/MusicPlayerBar/constants.d.ts +19 -0
  42. package/dist/components/MusicPlayerBar/constants.d.ts.map +1 -0
  43. package/dist/components/MusicPlayerBar/constants.js +21 -0
  44. package/dist/components/MusicPlayerBar/helpers.d.ts +11 -0
  45. package/dist/components/MusicPlayerBar/helpers.d.ts.map +1 -0
  46. package/dist/components/MusicPlayerBar/helpers.js +44 -0
  47. package/dist/components/MusicPlayerBar/hooks/useAudioPlayback.d.ts +23 -0
  48. package/dist/components/MusicPlayerBar/hooks/useAudioPlayback.d.ts.map +1 -0
  49. package/dist/components/MusicPlayerBar/hooks/useAudioPlayback.js +49 -0
  50. package/dist/components/MusicPlayerBar/hooks/useCopyFeedback.d.ts +6 -0
  51. package/dist/components/MusicPlayerBar/hooks/useCopyFeedback.d.ts.map +1 -0
  52. package/dist/components/MusicPlayerBar/hooks/useCopyFeedback.js +17 -0
  53. package/dist/components/MusicPlayerBar/hooks/useHoverPopover.d.ts +9 -0
  54. package/dist/components/MusicPlayerBar/hooks/useHoverPopover.d.ts.map +1 -0
  55. package/dist/components/MusicPlayerBar/hooks/useHoverPopover.js +18 -0
  56. package/dist/components/MusicPlayerBar/hooks/useMusicPlayerLabels.d.ts +3 -0
  57. package/dist/components/MusicPlayerBar/hooks/useMusicPlayerLabels.d.ts.map +1 -0
  58. package/dist/components/MusicPlayerBar/hooks/useMusicPlayerLabels.js +26 -0
  59. package/dist/components/MusicPlayerBar/hooks/useWaveform.d.ts +7 -0
  60. package/dist/components/MusicPlayerBar/hooks/useWaveform.d.ts.map +1 -0
  61. package/dist/components/MusicPlayerBar/hooks/useWaveform.js +28 -0
  62. package/dist/components/MusicPlayerBar/index.d.ts +3 -0
  63. package/dist/components/MusicPlayerBar/index.d.ts.map +1 -0
  64. package/dist/components/MusicPlayerBar/types.d.ts +33 -0
  65. package/dist/components/MusicPlayerBar/types.d.ts.map +1 -0
  66. package/dist/components/NavbarResizer/NavbarResizer.js +1 -1
  67. package/dist/components/OnboardingTour/OnboardingTourFooter.js +1 -1
  68. package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
  69. package/dist/components/table/hooks/useColumnsResizing.js +1 -1
  70. package/dist/helpers/isNoAccessError.d.ts +2 -0
  71. package/dist/helpers/isNoAccessError.d.ts.map +1 -0
  72. package/dist/helpers/isNoAccessError.js +7 -0
  73. package/dist/index.css +1 -1
  74. package/dist/index.d.ts +2 -2
  75. package/dist/index.d.ts.map +1 -1
  76. package/dist/index.js +109 -109
  77. package/dist/lang/locales/ui_en.json.js +6 -4
  78. package/dist/lang/locales/ui_es.json.js +8 -6
  79. package/dist/lang/locales/ui_ru.json.js +9 -7
  80. package/package.json +2 -2
  81. package/dist/assets/images/person.png.js +0 -4
  82. package/dist/assets/images/person2.png.js +0 -4
  83. package/dist/assets/images/person3.png.js +0 -4
  84. package/dist/assets/images/person4.png.js +0 -4
  85. package/dist/components/OnBoarding/OnBoardingPage.d.ts +0 -2
  86. package/dist/components/OnBoarding/OnBoardingPage.d.ts.map +0 -1
  87. package/dist/components/OnBoarding/OnBoardingPage.js +0 -80
  88. package/dist/components/OnBoarding/ProjectBoard.d.ts +0 -5
  89. package/dist/components/OnBoarding/ProjectBoard.d.ts.map +0 -1
  90. package/dist/components/OnBoarding/ProjectBoard.js +0 -141
  91. package/dist/components/OnBoarding/StepsNavBar.d.ts +0 -5
  92. package/dist/components/OnBoarding/StepsNavBar.d.ts.map +0 -1
  93. package/dist/components/OnBoarding/StepsNavBar.js +0 -21
  94. package/dist/components/OnBoarding/index.d.ts +0 -2
  95. package/dist/components/OnBoarding/index.d.ts.map +0 -1
  96. package/dist/components/OnBoarding/steps/AddTasks/AddTasksNav.d.ts +0 -3
  97. package/dist/components/OnBoarding/steps/AddTasks/AddTasksNav.d.ts.map +0 -1
  98. package/dist/components/OnBoarding/steps/AddTasks/AddTasksNav.js +0 -42
  99. package/dist/components/OnBoarding/steps/AddTasks/TasksListBoard.d.ts +0 -3
  100. package/dist/components/OnBoarding/steps/AddTasks/TasksListBoard.d.ts.map +0 -1
  101. package/dist/components/OnBoarding/steps/AddTasks/TasksListBoard.js +0 -51
  102. package/dist/components/OnBoarding/steps/CreateFirstProject.d.ts +0 -3
  103. package/dist/components/OnBoarding/steps/CreateFirstProject.d.ts.map +0 -1
  104. package/dist/components/OnBoarding/steps/CreateFirstProject.js +0 -45
  105. package/dist/components/OnBoarding/steps/DefineStatuses/DefineStatusesNav.d.ts +0 -3
  106. package/dist/components/OnBoarding/steps/DefineStatuses/DefineStatusesNav.d.ts.map +0 -1
  107. package/dist/components/OnBoarding/steps/DefineStatuses/DefineStatusesNav.js +0 -42
  108. package/dist/components/OnBoarding/steps/DefineStatuses/StatusBadge.d.ts +0 -9
  109. package/dist/components/OnBoarding/steps/DefineStatuses/StatusBadge.d.ts.map +0 -1
  110. package/dist/components/OnBoarding/steps/DefineStatuses/StatusBadge.js +0 -22
  111. package/dist/components/OnBoarding/steps/DefineStatuses/StatusesListBoard.d.ts +0 -3
  112. package/dist/components/OnBoarding/steps/DefineStatuses/StatusesListBoard.d.ts.map +0 -1
  113. package/dist/components/OnBoarding/steps/DefineStatuses/StatusesListBoard.js +0 -217
  114. package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsBoard.d.ts +0 -3
  115. package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsBoard.d.ts.map +0 -1
  116. package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsBoard.js +0 -16
  117. package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsNav.d.ts +0 -3
  118. package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsNav.d.ts.map +0 -1
  119. package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsNav.js +0 -56
  120. package/dist/components/OnBoarding/steps/DifferentLayouts/KanbanLayout.d.ts +0 -3
  121. package/dist/components/OnBoarding/steps/DifferentLayouts/KanbanLayout.d.ts.map +0 -1
  122. package/dist/components/OnBoarding/steps/DifferentLayouts/KanbanLayout.js +0 -272
  123. package/dist/components/OnBoarding/steps/DifferentLayouts/styles.module.css.js +0 -9
  124. package/dist/components/OnBoarding/steps/InviteUsers/BoardModal.d.ts +0 -3
  125. package/dist/components/OnBoarding/steps/InviteUsers/BoardModal.d.ts.map +0 -1
  126. package/dist/components/OnBoarding/steps/InviteUsers/BoardModal.js +0 -86
  127. package/dist/components/OnBoarding/steps/InviteUsers/InviteUsers.d.ts +0 -3
  128. package/dist/components/OnBoarding/steps/InviteUsers/InviteUsers.d.ts.map +0 -1
  129. package/dist/components/OnBoarding/steps/InviteUsers/InviteUsers.js +0 -26
  130. package/dist/components/OnBoarding/steps/SelectCategory/CategorySelect.d.ts +0 -9
  131. package/dist/components/OnBoarding/steps/SelectCategory/CategorySelect.d.ts.map +0 -1
  132. package/dist/components/OnBoarding/steps/SelectCategory/CategorySelect.js +0 -61
  133. package/dist/components/OnBoarding/steps/SelectCategory/SelectCategoryNav.d.ts +0 -3
  134. package/dist/components/OnBoarding/steps/SelectCategory/SelectCategoryNav.d.ts.map +0 -1
  135. package/dist/components/OnBoarding/steps/SelectCategory/SelectCategoryNav.js +0 -42
  136. package/dist/components/OnBoarding/steps/StartedStep.d.ts +0 -3
  137. package/dist/components/OnBoarding/steps/StartedStep.d.ts.map +0 -1
  138. package/dist/components/OnBoarding/steps/StartedStep.js +0 -71
  139. package/dist/components/OnBoarding/steps/Wrapper.d.ts +0 -15
  140. package/dist/components/OnBoarding/steps/Wrapper.d.ts.map +0 -1
  141. package/dist/components/OnBoarding/steps/Wrapper.js +0 -49
  142. package/dist/components/OnBoarding/steps/styles.module.css.js +0 -17
  143. package/dist/components/OnBoarding/styles.module.css.js +0 -15
  144. package/dist/store/onboarding.d.ts +0 -30
  145. package/dist/store/onboarding.d.ts.map +0 -1
  146. package/dist/store/onboarding.js +0 -53
@@ -1,86 +0,0 @@
1
- import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
- import { useTranslation as s } from "react-i18next";
3
- import { Modal as d, Flex as o, TextInput as c, Select as p, Button as u, Group as m, Text as i } from "@mantine/core";
4
- const x = () => {
5
- const { t: n } = s("onboarding"), r = (a) => {
6
- const t = a.option;
7
- return /* @__PURE__ */ e(m, { children: /* @__PURE__ */ l("div", { children: [
8
- /* @__PURE__ */ e(i, { children: t.label }),
9
- /* @__PURE__ */ e(i, { size: "xs", c: "dimmed", children: t.description })
10
- ] }) });
11
- };
12
- return /* @__PURE__ */ e(
13
- d,
14
- {
15
- radius: "md",
16
- withinPortal: !1,
17
- opened: !0,
18
- centered: !0,
19
- onClose: () => console.log("close"),
20
- title: n("inviteUsers.modalTitle"),
21
- styles: {
22
- inner: {
23
- position: "absolute",
24
- left: 0,
25
- top: 0
26
- }
27
- },
28
- overlayProps: {
29
- backgroundOpacity: 0.24,
30
- blur: 2,
31
- style: {
32
- position: "absolute",
33
- top: 0,
34
- left: 0,
35
- width: "100%",
36
- height: "100%"
37
- }
38
- },
39
- children: /* @__PURE__ */ l(o, { align: "start", direction: "column", gap: 24, w: "100%", children: [
40
- /* @__PURE__ */ e(
41
- c,
42
- {
43
- variant: "default",
44
- radius: "sm",
45
- w: "100%",
46
- label: "E-mail",
47
- placeholder: "example@example"
48
- }
49
- ),
50
- /* @__PURE__ */ e(
51
- p,
52
- {
53
- w: "100%",
54
- checkIconPosition: "right",
55
- label: "Role",
56
- placeholder: "Select role",
57
- data: h,
58
- renderOption: r,
59
- radius: "sm",
60
- value: "member"
61
- }
62
- ),
63
- /* @__PURE__ */ e(o, { w: "100%", justify: "flex-end", children: /* @__PURE__ */ e(u, { children: "Invite" }) })
64
- ] })
65
- }
66
- );
67
- }, h = [
68
- {
69
- value: "admin",
70
- label: "Admin",
71
- description: "Manages the workspace"
72
- },
73
- {
74
- value: "member",
75
- label: "Member",
76
- description: "Can edit documents"
77
- },
78
- {
79
- value: "guest",
80
- label: "Guest",
81
- description: "Can only view"
82
- }
83
- ];
84
- export {
85
- x as default
86
- };
@@ -1,3 +0,0 @@
1
- declare const InviteUsers: () => import("react/jsx-runtime").JSX.Element;
2
- export default InviteUsers;
3
- //# sourceMappingURL=InviteUsers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InviteUsers.d.ts","sourceRoot":"","sources":["../../../../../src/components/OnBoarding/steps/InviteUsers/InviteUsers.tsx"],"names":[],"mappings":"AAKA,QAAA,MAAM,WAAW,+CAmBhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,26 +0,0 @@
1
- import { jsx as e, Fragment as o } from "react/jsx-runtime";
2
- import { useTranslation as i } from "react-i18next";
3
- import { useOnboardingState as p } from "../../../../store/onboarding.js";
4
- import s from "../Wrapper.js";
5
- const l = () => {
6
- const { nextStep: r, prevStep: n } = p(), { t } = i("onboarding");
7
- return /* @__PURE__ */ e(
8
- s,
9
- {
10
- title: t("inviteUsers.title"),
11
- description: t("inviteUsers.description"),
12
- nextText: t("next"),
13
- prevText: t("prev"),
14
- nextButtonProps: {
15
- onClick: () => r()
16
- },
17
- prevButtonProps: {
18
- onClick: () => n()
19
- },
20
- children: /* @__PURE__ */ e(o, {})
21
- }
22
- );
23
- };
24
- export {
25
- l as default
26
- };
@@ -1,9 +0,0 @@
1
- declare const CategorySelect: ({ task, }: {
2
- task: {
3
- title: string;
4
- type: string;
5
- id: string;
6
- };
7
- }) => import("react/jsx-runtime").JSX.Element;
8
- export default CategorySelect;
9
- //# sourceMappingURL=CategorySelect.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CategorySelect.d.ts","sourceRoot":"","sources":["../../../../../src/components/OnBoarding/steps/SelectCategory/CategorySelect.tsx"],"names":[],"mappings":"AAQA,QAAA,MAAM,cAAc,GAAI,WAErB;IACD,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;CACnD,4CAkEA,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,61 +0,0 @@
1
- import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
- import { useTranslation as u } from "react-i18next";
3
- import { Menu as r, Flex as g, ActionIcon as d } from "@mantine/core";
4
- import { randomId as c } from "@mantine/hooks";
5
- import { IconCheck as f, IconBug as y, IconSquareRotated as h } from "@tabler/icons-react";
6
- import { useOnboardingState as C } from "../../../../store/onboarding.js";
7
- const j = ({
8
- task: n
9
- }) => {
10
- const { t } = u("onboarding"), { setTaskById: s } = C(), l = [
11
- {
12
- id: c(),
13
- color: "blue",
14
- icon: f,
15
- name: t("selectCategory.options.task"),
16
- type: "task",
17
- order: 1
18
- },
19
- {
20
- id: c(),
21
- color: "orange",
22
- icon: y,
23
- name: t("selectCategory.options.bug"),
24
- type: "bug",
25
- order: 2
26
- },
27
- {
28
- id: c(),
29
- color: "grape",
30
- icon: h,
31
- name: t("selectCategory.options.milestone"),
32
- type: "milestone",
33
- order: 3
34
- }
35
- ], m = (o) => {
36
- const i = l.find((p) => p.type === o);
37
- return i ? /* @__PURE__ */ e(d, { size: 16, variant: "filled", color: i.color, children: /* @__PURE__ */ e(i.icon, {}) }) : null;
38
- };
39
- return /* @__PURE__ */ a(r, { shadow: "md", position: "bottom-start", children: [
40
- /* @__PURE__ */ e(r.Target, { children: m(n.type) }),
41
- /* @__PURE__ */ e(r.Dropdown, { children: l.map((o) => /* @__PURE__ */ e(
42
- r.Item,
43
- {
44
- onClick: () => {
45
- s(n.id, {
46
- ...n,
47
- type: o.type
48
- });
49
- },
50
- children: /* @__PURE__ */ a(g, { align: "center", children: [
51
- /* @__PURE__ */ e(d, { size: 16, variant: "filled", color: o.color, children: /* @__PURE__ */ e(o.icon, {}) }),
52
- o.name
53
- ] })
54
- },
55
- o.id
56
- )) })
57
- ] });
58
- };
59
- export {
60
- j as default
61
- };
@@ -1,3 +0,0 @@
1
- declare const SelectCategoryNav: () => import("react/jsx-runtime").JSX.Element;
2
- export default SelectCategoryNav;
3
- //# sourceMappingURL=SelectCategoryNav.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectCategoryNav.d.ts","sourceRoot":"","sources":["../../../../../src/components/OnBoarding/steps/SelectCategory/SelectCategoryNav.tsx"],"names":[],"mappings":"AAQA,QAAA,MAAM,iBAAiB,+CAoCtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -1,42 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { useTranslation as m } from "react-i18next";
3
- import { Flex as u, TextInput as g } from "@mantine/core";
4
- import { useOnboardingState as d } from "../../../../store/onboarding.js";
5
- import f from "../Wrapper.js";
6
- import x from "./CategorySelect.js";
7
- const y = () => {
8
- const { nextStep: a, prevStep: i, tasksList: p, setTasksList: l } = d(), { t } = m("onboarding");
9
- return /* @__PURE__ */ e(
10
- f,
11
- {
12
- title: t("selectCategory.title"),
13
- description: t("selectCategory.description"),
14
- nextText: t("next"),
15
- prevText: t("prev"),
16
- nextButtonProps: {
17
- onClick: () => a()
18
- },
19
- prevButtonProps: {
20
- onClick: () => i()
21
- },
22
- children: /* @__PURE__ */ e(u, { align: "start", direction: "column", w: "100%", gap: 8, children: p.map((r, o, s) => /* @__PURE__ */ e(
23
- g,
24
- {
25
- leftSection: /* @__PURE__ */ e(x, { task: r }),
26
- w: "100%",
27
- variant: "default",
28
- placeholder: "Task name",
29
- value: r.title,
30
- onChange: (c) => {
31
- const n = [...s];
32
- n[o] = { ...r, title: c.target.value }, l(n);
33
- }
34
- },
35
- o
36
- )) })
37
- }
38
- );
39
- };
40
- export {
41
- y as default
42
- };
@@ -1,3 +0,0 @@
1
- declare const GettingStarted: () => import("react/jsx-runtime").JSX.Element;
2
- export default GettingStarted;
3
- //# sourceMappingURL=StartedStep.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StartedStep.d.ts","sourceRoot":"","sources":["../../../../src/components/OnBoarding/steps/StartedStep.tsx"],"names":[],"mappings":"AAmBA,QAAA,MAAM,cAAc,+CAiDnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,71 +0,0 @@
1
- import { jsxs as n, jsx as o } from "react/jsx-runtime";
2
- import { useTranslation as p } from "react-i18next";
3
- import { Radio as a, Flex as c, Select as u } from "@mantine/core";
4
- import { useOnboardingState as d } from "../../../store/onboarding.js";
5
- import b from "./Wrapper.js";
6
- const f = [
7
- "1 - 5",
8
- "6 - 10",
9
- "11 - 25",
10
- "16 - 20",
11
- "21 - 25",
12
- "26 - 35",
13
- "36 - 50",
14
- "51 - 100",
15
- "100+"
16
- ], v = () => {
17
- const {
18
- nextStep: l,
19
- communityType: t,
20
- setCommunityType: i,
21
- communityRange: s,
22
- setCommunityRange: m
23
- } = d(), { t: e } = p("onboarding");
24
- return /* @__PURE__ */ n(
25
- b,
26
- {
27
- title: e("beforeStart.title"),
28
- description: e("beforeStart.description"),
29
- nextText: e("next"),
30
- prevText: null,
31
- nextButtonProps: {
32
- onClick: () => {
33
- l();
34
- },
35
- disabled: !t
36
- },
37
- children: [
38
- /* @__PURE__ */ o(
39
- a.Group,
40
- {
41
- onChange: (r) => i(r),
42
- name: "purpose",
43
- value: t,
44
- children: /* @__PURE__ */ n(c, { align: "start", direction: "column", mt: "xs", children: [
45
- /* @__PURE__ */ o(a, { value: "team", label: e("beforeStart.team") }),
46
- /* @__PURE__ */ o(a, { value: "organization", label: e("beforeStart.organization") })
47
- ] })
48
- }
49
- ),
50
- !!t && /* @__PURE__ */ o(
51
- u,
52
- {
53
- w: "100%",
54
- size: "sm",
55
- value: s,
56
- allowDeselect: !1,
57
- onChange: (r) => m(r ?? ""),
58
- label: e("beforeStart.selectLabel", {
59
- type: t
60
- }),
61
- placeholder: e("beforeStart.selectPlaceholder"),
62
- data: f
63
- }
64
- )
65
- ]
66
- }
67
- );
68
- };
69
- export {
70
- v as default
71
- };
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import { ButtonProps } from '@mantine/core';
3
- declare const StepperWrapper: ({ children, title, description, prevButtonProps, nextButtonProps, nextText, nextIcon, prevText, prevIcon, }: {
4
- children: React.ReactNode;
5
- title: string;
6
- description?: string;
7
- prevButtonProps?: ButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>;
8
- nextButtonProps?: ButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>;
9
- nextText: string | null;
10
- nextIcon?: React.ReactNode;
11
- prevText: string | null;
12
- prevIcon?: React.ReactNode;
13
- }) => import("react/jsx-runtime").JSX.Element;
14
- export default StepperWrapper;
15
- //# sourceMappingURL=Wrapper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Wrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/OnBoarding/steps/Wrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAEL,WAAW,EAMZ,MAAM,eAAe,CAAC;AAKvB,QAAA,MAAM,cAAc,GAAI,6GAUrB;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,WAAW,GAAG,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;IAC9E,eAAe,CAAC,EAAE,WAAW,GAAG,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;IAC9E,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,4CAwCA,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,49 +0,0 @@
1
- import { jsxs as e, jsx as r } from "react/jsx-runtime";
2
- import { Card as h, Flex as l, Group as f, Title as m, Text as g, Button as o } from "@mantine/core";
3
- import { IconArrowRight as w, IconArrowLeft as z } from "@tabler/icons-react";
4
- import W from "./styles.module.css.js";
5
- const B = ({
6
- children: n,
7
- title: d,
8
- description: c,
9
- prevButtonProps: p,
10
- nextButtonProps: a,
11
- nextText: t,
12
- nextIcon: s = /* @__PURE__ */ r(w, { size: 16 }),
13
- prevText: i,
14
- prevIcon: u = /* @__PURE__ */ r(z, { size: 16 })
15
- }) => /* @__PURE__ */ e(
16
- h,
17
- {
18
- className: W.stepperWrapper,
19
- w: 400,
20
- padding: "xl",
21
- radius: "lg",
22
- withBorder: !0,
23
- children: [
24
- /* @__PURE__ */ e(l, { direction: "column", align: "start", gap: 16, children: [
25
- /* @__PURE__ */ e(f, { gap: 8, children: [
26
- /* @__PURE__ */ r(m, { fz: 32, order: 1, children: d }),
27
- /* @__PURE__ */ r(g, { fz: 14, fw: 400, children: c })
28
- ] }),
29
- n
30
- ] }),
31
- /* @__PURE__ */ e(l, { mt: 32, w: "100%", children: [
32
- i !== null && /* @__PURE__ */ r(
33
- o,
34
- {
35
- variant: "subtle",
36
- leftSection: u,
37
- fullWidth: !0,
38
- ...p,
39
- children: i
40
- }
41
- ),
42
- t !== null && /* @__PURE__ */ r(o, { rightSection: s, fullWidth: !0, ...a, children: t })
43
- ] })
44
- ]
45
- }
46
- );
47
- export {
48
- B as default
49
- };
@@ -1,17 +0,0 @@
1
- const e = "_stepperWrapper_18rxv_1", r = "_accordion_18rxv_25", t = "_content_18rxv_33", o = "_item_18rxv_41", c = "_chevron_18rxv_49", n = "_label_18rxv_63", _ = {
2
- stepperWrapper: e,
3
- accordion: r,
4
- content: t,
5
- item: o,
6
- chevron: c,
7
- label: n
8
- };
9
- export {
10
- r as accordion,
11
- c as chevron,
12
- t as content,
13
- _ as default,
14
- o as item,
15
- n as label,
16
- e as stepperWrapper
17
- };
@@ -1,15 +0,0 @@
1
- const a = "_boardContainer_3kft5_1", t = "_appShell_3kft5_19", e = "_navBar_3kft5_31", n = "_appShellHeader_3kft5_49", o = "_button_3kft5_83", _ = {
2
- boardContainer: a,
3
- appShell: t,
4
- navBar: e,
5
- appShellHeader: n,
6
- button: o
7
- };
8
- export {
9
- t as appShell,
10
- n as appShellHeader,
11
- a as boardContainer,
12
- o as button,
13
- _ as default,
14
- e as navBar
15
- };
@@ -1,30 +0,0 @@
1
- interface ITaskType {
2
- title: string;
3
- type: string;
4
- id: string;
5
- startDate?: string;
6
- endDate?: string;
7
- }
8
- interface IOnboardingState {
9
- step: number;
10
- nextStep: () => void;
11
- prevStep: () => void;
12
- communityType: string;
13
- communityRange: string;
14
- setCommunityType: (type: string) => void;
15
- setCommunityRange: (range: string) => void;
16
- projectName: string;
17
- setProjectName: (name: string) => void;
18
- membersList: string[];
19
- setMembersList: (members: string[]) => void;
20
- tasksList: ITaskType[];
21
- setTasksList: (tasks: ITaskType[]) => void;
22
- setTaskById: (id: string, task: ITaskType) => void;
23
- statusesList: string[];
24
- setStatusesList: (statuses: string[]) => void;
25
- layoutView: 'list' | 'kanban';
26
- setLayoutView: (view: 'list' | 'kanban') => void;
27
- }
28
- export declare const useOnboardingState: import("zustand").UseBoundStore<import("zustand").StoreApi<IOnboardingState>>;
29
- export {};
30
- //# sourceMappingURL=onboarding.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onboarding.d.ts","sourceRoot":"","sources":["../../src/store/onboarding.ts"],"names":[],"mappings":"AAGA,UAAU,SAAS;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,gBAAgB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,cAAc,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC5C,SAAS,EAAE,SAAS,EAAE,CAAC;IACvB,YAAY,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC;IAC3C,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACnD,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,eAAe,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC9C,UAAU,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC9B,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,KAAK,IAAI,CAAC;CAClD;AAQD,eAAO,MAAM,kBAAkB,+EA4C5B,CAAC"}
@@ -1,53 +0,0 @@
1
- import { randomId as i } from "@mantine/hooks";
2
- import { create as r } from "zustand";
3
- function a(e, t) {
4
- const s = new Date(e);
5
- return s.setDate(s.getDate() + t), s.toDateString();
6
- }
7
- const D = r((e) => ({
8
- step: 0,
9
- nextStep: () => e((t) => ({ step: t.step + 1 })),
10
- prevStep: () => e((t) => ({ step: t.step - 1 })),
11
- communityType: "",
12
- communityRange: "1 - 5",
13
- setCommunityType: (t) => e(() => ({ communityType: t })),
14
- setCommunityRange: (t) => e(() => ({ communityRange: t })),
15
- projectName: "Onboarding project",
16
- setProjectName: (t) => e(() => ({ projectName: t })),
17
- membersList: ["", "", ""],
18
- setMembersList: (t) => e(() => ({ membersList: t })),
19
- tasksList: [
20
- {
21
- title: "First task",
22
- type: "task",
23
- id: i(),
24
- startDate: (/* @__PURE__ */ new Date()).toDateString(),
25
- endDate: a(/* @__PURE__ */ new Date(), 6)
26
- },
27
- {
28
- title: "Second task",
29
- type: "task",
30
- id: i(),
31
- startDate: (/* @__PURE__ */ new Date()).toDateString(),
32
- endDate: a(/* @__PURE__ */ new Date(), 7)
33
- },
34
- {
35
- title: "Third task",
36
- type: "task",
37
- id: i(),
38
- startDate: a(/* @__PURE__ */ new Date(), 2),
39
- endDate: a(/* @__PURE__ */ new Date(), 7)
40
- }
41
- ],
42
- setTasksList: (t) => e(() => ({ tasksList: t })),
43
- setTaskById: (t, s) => e((o) => ({
44
- tasksList: o.tasksList.map((n) => n.id === t ? s : n)
45
- })),
46
- statusesList: ["First status", "Second status", "Third status"],
47
- setStatusesList: (t) => e(() => ({ statusesList: t })),
48
- layoutView: "list",
49
- setLayoutView: (t) => e(() => ({ layoutView: t }))
50
- }));
51
- export {
52
- D as useOnboardingState
53
- };