@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
@@ -0,0 +1,88 @@
1
+ import { jsxs as h, jsx as o } from "react/jsx-runtime";
2
+ import { Download01Icon as A, Tick02Icon as g, Link02Icon as x, Delete03Icon as C } from "@hugeicons/core-free-icons";
3
+ import { HugeiconsIcon as k } from "@hugeicons/react";
4
+ import { Tooltip as D, ActionIcon as w } from "@mantine/core";
5
+ import m from "../MusicPlayerBar.module.css.js";
6
+ function l({
7
+ label: n,
8
+ ariaLabel: r,
9
+ tooltipDisabled: i,
10
+ icon: e,
11
+ iconColor: t,
12
+ onClick: c
13
+ }) {
14
+ return /* @__PURE__ */ o(D, { label: n, disabled: i, withArrow: !0, children: /* @__PURE__ */ o("div", { className: m.hoverActionItem, children: /* @__PURE__ */ o(
15
+ w,
16
+ {
17
+ variant: "transparent",
18
+ size: 28,
19
+ "aria-label": r,
20
+ onClick: c,
21
+ className: m.actionIconBtn,
22
+ children: /* @__PURE__ */ o(k, { icon: e, size: 16, color: t })
23
+ }
24
+ ) }) });
25
+ }
26
+ function H({
27
+ disable: n,
28
+ linkCopied: r,
29
+ showDownload: i,
30
+ showCopyLink: e,
31
+ showDelete: t,
32
+ hasDelete: c,
33
+ tooltipsDisabled: a,
34
+ downloadLabel: s,
35
+ copyLinkLabel: v,
36
+ deleteLabel: p,
37
+ onDownload: b,
38
+ onCopyLink: d,
39
+ onDelete: u,
40
+ extraActions: I
41
+ }) {
42
+ return /* @__PURE__ */ h(
43
+ "div",
44
+ {
45
+ className: m.hoverActions,
46
+ onPointerDown: (f) => f.stopPropagation(),
47
+ children: [
48
+ i && /* @__PURE__ */ o(
49
+ l,
50
+ {
51
+ label: s,
52
+ ariaLabel: s,
53
+ tooltipDisabled: a,
54
+ icon: A,
55
+ iconColor: "var(--mantine-color-gray-text)",
56
+ onClick: b
57
+ }
58
+ ),
59
+ e && /* @__PURE__ */ o(
60
+ l,
61
+ {
62
+ label: v,
63
+ ariaLabel: v,
64
+ tooltipDisabled: a,
65
+ icon: r ? g : x,
66
+ iconColor: r ? "var(--mantine-color-green-6)" : "var(--mantine-color-gray-text)",
67
+ onClick: d
68
+ }
69
+ ),
70
+ t && c && !n && /* @__PURE__ */ o(
71
+ l,
72
+ {
73
+ label: p,
74
+ ariaLabel: "remove-music-block",
75
+ tooltipDisabled: a,
76
+ icon: C,
77
+ iconColor: "var(--mantine-color-red-5)",
78
+ onClick: u
79
+ }
80
+ ),
81
+ I
82
+ ]
83
+ }
84
+ );
85
+ }
86
+ export {
87
+ H as HoverActions
88
+ };
@@ -0,0 +1,18 @@
1
+ type Props = {
2
+ opened: boolean;
3
+ title: string;
4
+ linkCopied: boolean;
5
+ showDownload: boolean;
6
+ showCopyLink: boolean;
7
+ showDelete: boolean;
8
+ downloadLabel: string;
9
+ copyLinkLabel: string;
10
+ deleteLabel: string;
11
+ onDownload: (e: React.MouseEvent) => void;
12
+ onCopyLink: (e: React.MouseEvent) => void;
13
+ onDelete: () => void;
14
+ onClose: () => void;
15
+ };
16
+ export declare function MobileActionsDrawer({ opened, title, linkCopied, showDownload, showCopyLink, showDelete, downloadLabel, copyLinkLabel, deleteLabel, onDownload, onCopyLink, onDelete, onClose, }: Props): import("react/jsx-runtime").JSX.Element;
17
+ export {};
18
+ //# sourceMappingURL=MobileActionsDrawer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MobileActionsDrawer.d.ts","sourceRoot":"","sources":["../../../../src/components/MusicPlayerBar/components/MobileActionsDrawer.tsx"],"names":[],"mappings":"AASA,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAC1C,UAAU,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAC1C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EACN,KAAK,EACL,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,aAAa,EACb,aAAa,EACb,WAAW,EACX,UAAU,EACV,UAAU,EACV,QAAQ,EACR,OAAO,GACR,EAAE,KAAK,2CAyEP"}
@@ -0,0 +1,91 @@
1
+ import { jsx as t, jsxs as y } from "react/jsx-runtime";
2
+ import { Download01Icon as k, Tick02Icon as v, Link02Icon as x, Delete03Icon as j } from "@hugeicons/core-free-icons";
3
+ import { HugeiconsIcon as i } from "@hugeicons/react";
4
+ import { Drawer as I, Stack as g, Button as e } from "@mantine/core";
5
+ function W({
6
+ opened: n,
7
+ title: c,
8
+ linkCopied: l,
9
+ showDownload: a,
10
+ showCopyLink: u,
11
+ showDelete: f,
12
+ downloadLabel: m,
13
+ copyLinkLabel: d,
14
+ deleteLabel: s,
15
+ onDownload: p,
16
+ onCopyLink: b,
17
+ onDelete: h,
18
+ onClose: o
19
+ }) {
20
+ return /* @__PURE__ */ t(I, { opened: n, onClose: o, position: "bottom", title: c, children: /* @__PURE__ */ y(g, { gap: 4, p: 0, children: [
21
+ a && /* @__PURE__ */ t(
22
+ e,
23
+ {
24
+ type: "button",
25
+ variant: "subtle",
26
+ color: "gray",
27
+ fullWidth: !0,
28
+ justify: "flex-start",
29
+ onClick: (r) => {
30
+ o(), p(r);
31
+ },
32
+ leftSection: /* @__PURE__ */ t(
33
+ i,
34
+ {
35
+ icon: k,
36
+ size: 16,
37
+ color: "var(--mantine-color-dimmed)"
38
+ }
39
+ ),
40
+ children: m
41
+ }
42
+ ),
43
+ u && /* @__PURE__ */ t(
44
+ e,
45
+ {
46
+ type: "button",
47
+ variant: "subtle",
48
+ color: "gray",
49
+ fullWidth: !0,
50
+ justify: "flex-start",
51
+ onClick: (r) => {
52
+ o(), b(r);
53
+ },
54
+ leftSection: /* @__PURE__ */ t(
55
+ i,
56
+ {
57
+ icon: l ? v : x,
58
+ size: 16,
59
+ color: "var(--mantine-color-dimmed)"
60
+ }
61
+ ),
62
+ children: d
63
+ }
64
+ ),
65
+ f && /* @__PURE__ */ t(
66
+ e,
67
+ {
68
+ type: "button",
69
+ variant: "subtle",
70
+ color: "red",
71
+ fullWidth: !0,
72
+ justify: "flex-start",
73
+ onClick: () => {
74
+ o(), h();
75
+ },
76
+ leftSection: /* @__PURE__ */ t(
77
+ i,
78
+ {
79
+ icon: j,
80
+ size: 16,
81
+ color: "var(--mantine-color-red-6)"
82
+ }
83
+ ),
84
+ children: s
85
+ }
86
+ )
87
+ ] }) });
88
+ }
89
+ export {
90
+ W as MobileActionsDrawer
91
+ };
@@ -0,0 +1,11 @@
1
+ type Props = {
2
+ opened: boolean;
3
+ rates: readonly number[];
4
+ currentIndex: number;
5
+ title: string;
6
+ onSelect: (index: number) => void;
7
+ onClose: () => void;
8
+ };
9
+ export declare function MobileSpeedDrawer({ opened, rates, currentIndex, title, onSelect, onClose, }: Props): import("react/jsx-runtime").JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=MobileSpeedDrawer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MobileSpeedDrawer.d.ts","sourceRoot":"","sources":["../../../../src/components/MusicPlayerBar/components/MobileSpeedDrawer.tsx"],"names":[],"mappings":"AAIA,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,KAAK,EACL,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,OAAO,GACR,EAAE,KAAK,2CA6BP"}
@@ -0,0 +1,38 @@
1
+ import { jsx as t, jsxs as m } from "react/jsx-runtime";
2
+ import { Tick02Icon as s } from "@hugeicons/core-free-icons";
3
+ import { HugeiconsIcon as a } from "@hugeicons/react";
4
+ import { Drawer as f, Stack as d, Button as h } from "@mantine/core";
5
+ function k({
6
+ opened: e,
7
+ rates: c,
8
+ currentIndex: l,
9
+ title: p,
10
+ onSelect: u,
11
+ onClose: o
12
+ }) {
13
+ return /* @__PURE__ */ t(f, { opened: e, onClose: o, position: "bottom", title: p, children: /* @__PURE__ */ t(d, { gap: 4, p: 0, children: c.map((r, i) => {
14
+ const n = i === l;
15
+ return /* @__PURE__ */ m(
16
+ h,
17
+ {
18
+ type: "button",
19
+ variant: "subtle",
20
+ color: n ? void 0 : "gray",
21
+ fullWidth: !0,
22
+ justify: "flex-start",
23
+ onClick: () => {
24
+ u(i), o();
25
+ },
26
+ rightSection: n ? /* @__PURE__ */ t(a, { icon: s, size: 16 }) : null,
27
+ children: [
28
+ r,
29
+ "x"
30
+ ]
31
+ },
32
+ r
33
+ );
34
+ }) }) });
35
+ }
36
+ export {
37
+ k as MobileSpeedDrawer
38
+ };
@@ -0,0 +1,11 @@
1
+ type Props = {
2
+ currentRate: number;
3
+ showMore: boolean;
4
+ speedLabel: string;
5
+ moreLabel: string;
6
+ onOpenSpeedDrawer: () => void;
7
+ onOpenActionsDrawer: () => void;
8
+ };
9
+ export declare function MobileTailControls({ currentRate, showMore, speedLabel, moreLabel, onOpenSpeedDrawer, onOpenActionsDrawer, }: Props): import("react/jsx-runtime").JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=MobileTailControls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MobileTailControls.d.ts","sourceRoot":"","sources":["../../../../src/components/MusicPlayerBar/components/MobileTailControls.tsx"],"names":[],"mappings":"AAMA,KAAK,KAAK,GAAG;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,mBAAmB,EAAE,MAAM,IAAI,CAAC;CACjC,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,EACjC,WAAW,EACX,QAAQ,EACR,UAAU,EACV,SAAS,EACT,iBAAiB,EACjB,mBAAmB,GACpB,EAAE,KAAK,2CA4BP"}
@@ -0,0 +1,50 @@
1
+ import { jsxs as o, jsx as r } from "react/jsx-runtime";
2
+ import { MoreHorizontalIcon as s } from "@hugeicons/core-free-icons";
3
+ import { HugeiconsIcon as m } from "@hugeicons/react";
4
+ import { UnstyledButton as p, ActionIcon as d } from "@mantine/core";
5
+ import i from "../MusicPlayerBar.module.css.js";
6
+ function y({
7
+ currentRate: t,
8
+ showMore: e,
9
+ speedLabel: l,
10
+ moreLabel: n,
11
+ onOpenSpeedDrawer: a,
12
+ onOpenActionsDrawer: c
13
+ }) {
14
+ return /* @__PURE__ */ o("div", { className: i.tail, children: [
15
+ /* @__PURE__ */ o(
16
+ p,
17
+ {
18
+ type: "button",
19
+ className: i.speedTrigger,
20
+ "aria-label": l,
21
+ onClick: a,
22
+ children: [
23
+ t,
24
+ "x"
25
+ ]
26
+ }
27
+ ),
28
+ e && /* @__PURE__ */ r(
29
+ d,
30
+ {
31
+ variant: "subtle",
32
+ color: "gray",
33
+ size: 28,
34
+ "aria-label": n,
35
+ onClick: c,
36
+ children: /* @__PURE__ */ r(
37
+ m,
38
+ {
39
+ icon: s,
40
+ size: 20,
41
+ color: "var(--mantine-color-gray-text)"
42
+ }
43
+ )
44
+ }
45
+ )
46
+ ] });
47
+ }
48
+ export {
49
+ y as MobileTailControls
50
+ };
@@ -0,0 +1,9 @@
1
+ type Props = {
2
+ playing: boolean;
3
+ onToggle: () => void;
4
+ playLabel: string;
5
+ pauseLabel: string;
6
+ };
7
+ export declare function PlayButton({ playing, onToggle, playLabel, pauseLabel }: Props): import("react/jsx-runtime").JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=PlayButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlayButton.d.ts","sourceRoot":"","sources":["../../../../src/components/MusicPlayerBar/components/PlayButton.tsx"],"names":[],"mappings":"AAMA,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,wBAAgB,UAAU,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,EAAE,KAAK,2CAgB7E"}
@@ -0,0 +1,28 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { PauseIcon as c, PlayIcon as e } from "@hugeicons/core-free-icons";
3
+ import { HugeiconsIcon as m } from "@hugeicons/react";
4
+ import { ActionIcon as a } from "@mantine/core";
5
+ import l from "../MusicPlayerBar.module.css.js";
6
+ function y({ playing: o, onToggle: i, playLabel: n, pauseLabel: t }) {
7
+ return /* @__PURE__ */ r(
8
+ a,
9
+ {
10
+ size: 28,
11
+ radius: 8,
12
+ onClick: i,
13
+ className: l.playBtn,
14
+ "aria-label": o ? t : n,
15
+ children: /* @__PURE__ */ r(
16
+ m,
17
+ {
18
+ icon: o ? c : e,
19
+ size: 16,
20
+ color: "var(--mantine-color-white)"
21
+ }
22
+ )
23
+ }
24
+ );
25
+ }
26
+ export {
27
+ y as PlayButton
28
+ };
@@ -0,0 +1,11 @@
1
+ import type { HoverPopover } from '../hooks/useHoverPopover';
2
+ type Props = {
3
+ popover: HoverPopover;
4
+ rates: readonly number[];
5
+ currentIndex: number;
6
+ label: string;
7
+ onSelect: (index: number) => void;
8
+ };
9
+ export declare function SpeedPopover({ popover, rates, currentIndex, label, onSelect, }: Props): import("react/jsx-runtime").JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=SpeedPopover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpeedPopover.d.ts","sourceRoot":"","sources":["../../../../src/components/MusicPlayerBar/components/SpeedPopover.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAI7D,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,YAAY,CAAC;IACtB,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,KAAK,EACL,YAAY,EACZ,KAAK,EACL,QAAQ,GACT,EAAE,KAAK,2CAuEP"}
@@ -0,0 +1,90 @@
1
+ import { jsxs as r, jsx as n } from "react/jsx-runtime";
2
+ import { Popover as t, UnstyledButton as p, Stack as u, Text as m, Box as x } from "@mantine/core";
3
+ import o from "../MusicPlayerBar.module.css.js";
4
+ function C({
5
+ popover: e,
6
+ rates: l,
7
+ currentIndex: i,
8
+ label: a,
9
+ onSelect: f
10
+ }) {
11
+ const h = l[i] ?? 1;
12
+ return /* @__PURE__ */ r(
13
+ t,
14
+ {
15
+ opened: e.opened,
16
+ position: "top-end",
17
+ offset: 6,
18
+ withinPortal: !0,
19
+ trapFocus: !1,
20
+ returnFocus: !1,
21
+ classNames: { dropdown: o.speedDropdown },
22
+ children: [
23
+ /* @__PURE__ */ n(t.Target, { children: /* @__PURE__ */ r(
24
+ p,
25
+ {
26
+ onMouseEnter: e.open,
27
+ onMouseLeave: e.close,
28
+ className: o.speedTrigger,
29
+ "aria-label": a,
30
+ "aria-haspopup": "listbox",
31
+ "aria-expanded": e.opened,
32
+ children: [
33
+ h,
34
+ "x"
35
+ ]
36
+ }
37
+ ) }),
38
+ /* @__PURE__ */ n(t.Dropdown, { children: /* @__PURE__ */ r(
39
+ u,
40
+ {
41
+ gap: 6,
42
+ onMouseEnter: e.cancelClose,
43
+ onMouseLeave: e.close,
44
+ children: [
45
+ /* @__PURE__ */ n(m, { className: o.speedLabel, children: a }),
46
+ /* @__PURE__ */ n(
47
+ x,
48
+ {
49
+ role: "listbox",
50
+ "aria-label": a,
51
+ style: { display: "flex", alignItems: "center", gap: 2 },
52
+ children: l.map((c, d) => {
53
+ const s = d === i;
54
+ return /* @__PURE__ */ n(
55
+ p,
56
+ {
57
+ role: "option",
58
+ "aria-selected": s,
59
+ onClick: () => {
60
+ f(d), e.setOpened(!1);
61
+ },
62
+ className: `${o.speedChip} ${s ? o.speedChipActive : ""}`,
63
+ children: /* @__PURE__ */ r(
64
+ m,
65
+ {
66
+ fz: 14,
67
+ fw: s ? 600 : 400,
68
+ c: s ? "var(--mantine-primary-color-filled)" : "var(--mantine-color-text)",
69
+ children: [
70
+ c,
71
+ "x"
72
+ ]
73
+ }
74
+ )
75
+ },
76
+ c
77
+ );
78
+ })
79
+ }
80
+ )
81
+ ]
82
+ }
83
+ ) })
84
+ ]
85
+ }
86
+ );
87
+ }
88
+ export {
89
+ C as SpeedPopover
90
+ };
@@ -0,0 +1,8 @@
1
+ type Props = {
2
+ currentTime: number;
3
+ duration: number;
4
+ label: string;
5
+ };
6
+ export declare function Timer({ currentTime, duration, label }: Props): import("react/jsx-runtime").JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=Timer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Timer.d.ts","sourceRoot":"","sources":["../../../../src/components/MusicPlayerBar/components/Timer.tsx"],"names":[],"mappings":"AAMA,KAAK,KAAK,GAAG;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,wBAAgB,KAAK,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,KAAK,2CAa5D"}
@@ -0,0 +1,25 @@
1
+ import { jsxs as e } from "react/jsx-runtime";
2
+ import { Text as i } from "@mantine/core";
3
+ import { formatTime as r } from "../helpers.js";
4
+ import a from "../MusicPlayerBar.module.css.js";
5
+ function c({ currentTime: m, duration: t, label: o }) {
6
+ return /* @__PURE__ */ e(
7
+ i,
8
+ {
9
+ component: "time",
10
+ fz: 14,
11
+ lh: "20px",
12
+ c: "var(--mantine-color-text)",
13
+ className: a.timer,
14
+ "aria-label": o,
15
+ children: [
16
+ r(m),
17
+ " / ",
18
+ r(t)
19
+ ]
20
+ }
21
+ );
22
+ }
23
+ export {
24
+ c as Timer
25
+ };
@@ -0,0 +1,15 @@
1
+ import type { HoverPopover } from '../hooks/useHoverPopover';
2
+ type Props = {
3
+ popover: HoverPopover;
4
+ volume: number;
5
+ muted: boolean;
6
+ isTouchTablet: boolean;
7
+ muteLabel: string;
8
+ unmuteLabel: string;
9
+ volumeLabel: string;
10
+ onToggleMute: () => void;
11
+ onVolumeChange: (value: number) => void;
12
+ };
13
+ export declare function VolumePopover({ popover, volume, muted, isTouchTablet, muteLabel, unmuteLabel, volumeLabel, onToggleMute, onVolumeChange, }: Props): import("react/jsx-runtime").JSX.Element;
14
+ export {};
15
+ //# sourceMappingURL=VolumePopover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VolumePopover.d.ts","sourceRoot":"","sources":["../../../../src/components/MusicPlayerBar/components/VolumePopover.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAI7D,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,YAAY,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC,CAAC;AAEF,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,MAAM,EACN,KAAK,EACL,aAAa,EACb,SAAS,EACT,WAAW,EACX,WAAW,EACX,YAAY,EACZ,cAAc,GACf,EAAE,KAAK,2CAiEP"}
@@ -0,0 +1,86 @@
1
+ import { jsxs as p, jsx as o } from "react/jsx-runtime";
2
+ import { HugeiconsIcon as g } from "@hugeicons/react";
3
+ import { Popover as s, ActionIcon as w, Slider as v } from "@mantine/core";
4
+ import { pickVolumeIcon as x } from "../helpers.js";
5
+ import l from "../MusicPlayerBar.module.css.js";
6
+ function y({
7
+ popover: e,
8
+ volume: n,
9
+ muted: r,
10
+ isTouchTablet: i,
11
+ muteLabel: a,
12
+ unmuteLabel: t,
13
+ volumeLabel: c,
14
+ onToggleMute: d,
15
+ onVolumeChange: m
16
+ }) {
17
+ const u = x(n, r), f = r ? 0 : n, h = r || n === 0 ? t : a;
18
+ return /* @__PURE__ */ p(
19
+ s,
20
+ {
21
+ opened: e.opened,
22
+ onChange: e.setOpened,
23
+ position: "right",
24
+ offset: 4,
25
+ withinPortal: !0,
26
+ trapFocus: !1,
27
+ returnFocus: !1,
28
+ classNames: { dropdown: l.ghostDropdown },
29
+ children: [
30
+ /* @__PURE__ */ o(s.Target, { children: /* @__PURE__ */ o(
31
+ w,
32
+ {
33
+ variant: "subtle",
34
+ color: "gray",
35
+ size: 28,
36
+ "aria-label": h,
37
+ onMouseEnter: i ? void 0 : e.open,
38
+ onMouseLeave: i ? void 0 : e.close,
39
+ onClick: () => {
40
+ if (i && !e.opened) {
41
+ e.setOpened(!0);
42
+ return;
43
+ }
44
+ d();
45
+ },
46
+ children: /* @__PURE__ */ o(
47
+ g,
48
+ {
49
+ icon: u,
50
+ size: 20,
51
+ color: "var(--mantine-color-dimmed)"
52
+ }
53
+ )
54
+ }
55
+ ) }),
56
+ /* @__PURE__ */ o(s.Dropdown, { children: /* @__PURE__ */ o(
57
+ "div",
58
+ {
59
+ className: l.volumeDropdown,
60
+ onMouseEnter: e.cancelClose,
61
+ onMouseLeave: e.close,
62
+ children: e.opened && /* @__PURE__ */ o(
63
+ v,
64
+ {
65
+ min: 0,
66
+ max: 1,
67
+ step: 0.01,
68
+ value: f,
69
+ onChange: m,
70
+ label: null,
71
+ w: 57,
72
+ size: 2,
73
+ "data-testid": "music-volume-slider",
74
+ className: l.volumeSlider,
75
+ "aria-label": c
76
+ }
77
+ )
78
+ }
79
+ ) })
80
+ ]
81
+ }
82
+ );
83
+ }
84
+ export {
85
+ y as VolumePopover
86
+ };
@@ -0,0 +1,12 @@
1
+ type Props = {
2
+ clipRef: React.MutableRefObject<HTMLDivElement | null>;
3
+ heights: number[];
4
+ activeBar: number;
5
+ currentTime: number;
6
+ duration: number;
7
+ label: string;
8
+ onSeek: (ratio: number) => void;
9
+ };
10
+ export declare function Waveform({ clipRef, heights, activeBar, currentTime, duration, label, onSeek, }: Props): import("react/jsx-runtime").JSX.Element;
11
+ export {};
12
+ //# sourceMappingURL=Waveform.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Waveform.d.ts","sourceRoot":"","sources":["../../../../src/components/MusicPlayerBar/components/Waveform.tsx"],"names":[],"mappings":"AAIA,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACvD,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC,CAAC;AAEF,wBAAgB,QAAQ,CAAC,EACvB,OAAO,EACP,OAAO,EACP,SAAS,EACT,WAAW,EACX,QAAQ,EACR,KAAK,EACL,MAAM,GACP,EAAE,KAAK,2CAsCP"}