@orion-ds/react 4.2.8 → 4.2.9
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.
- package/dist/components/Accordion/Accordion.module.css +1 -1
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Card/Card.module.css +1 -1
- package/dist/components/Card/Card.stories.d.ts.map +1 -1
- package/dist/components/Card/Card.types.d.ts +2 -0
- package/dist/components/Card/Card.types.d.ts.map +1 -1
- package/dist/components/CodeEditor/CodeEditor.d.ts.map +1 -1
- package/dist/components/CodeEditor/CodeEditor.types.d.ts.map +1 -1
- package/dist/components/NavTree/NavTree.d.ts.map +1 -1
- package/dist/components/NavTree/NavTree.module.css +1 -1
- package/dist/components/NavTree/NavTree.stories.d.ts.map +1 -1
- package/dist/components/NavTree/NavTree.types.d.ts +2 -2
- package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/components/SearchInput/SearchInput.module.css +1 -1
- package/dist/components/SearchInput/SearchInput.stories.d.ts +1 -0
- package/dist/components/SearchInput/SearchInput.stories.d.ts.map +1 -1
- package/dist/components/SearchInput/SearchInput.types.d.ts +5 -1
- package/dist/components/SearchInput/SearchInput.types.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.module.css +1 -1
- package/dist/components/Tabs/Tabs.types.d.ts +6 -0
- package/dist/components/Tabs/Tabs.types.d.ts.map +1 -1
- package/dist/components/UserMenu/UserMenu.d.ts.map +1 -1
- package/dist/components/WorkspaceSwitcher/WorkspaceSwitcher.d.ts.map +1 -1
- package/dist/components/WorkspaceSwitcher/WorkspaceSwitcher.types.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/examples/LandingPage.example.d.ts.map +1 -1
- package/dist/hooks/useTheme.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index10.cjs +1 -1
- package/dist/index10.mjs +1 -1
- package/dist/index100.cjs +1 -1
- package/dist/index100.mjs +62 -33
- package/dist/index101.cjs +1 -1
- package/dist/index101.mjs +16 -24
- package/dist/index102.cjs +1 -1
- package/dist/index102.mjs +28 -26
- package/dist/index103.cjs +1 -1
- package/dist/index103.mjs +30 -40
- package/dist/index104.cjs +1 -1
- package/dist/index104.mjs +40 -53
- package/dist/index105.cjs +1 -1
- package/dist/index105.mjs +36 -62
- package/dist/index106.cjs +1 -1
- package/dist/index106.mjs +53 -29
- package/dist/index107.cjs +1 -1
- package/dist/index107.mjs +46 -20
- package/dist/index108.cjs +1 -1
- package/dist/index108.mjs +14 -18
- package/dist/index109.cjs +1 -1
- package/dist/index109.mjs +28 -30
- package/dist/index11.cjs +1 -1
- package/dist/index11.mjs +1 -1
- package/dist/index110.cjs +1 -1
- package/dist/index110.mjs +65 -30
- package/dist/index111.cjs +1 -1
- package/dist/index111.mjs +24 -46
- package/dist/index112.cjs +1 -1
- package/dist/index112.mjs +35 -52
- package/dist/index113.cjs +1 -1
- package/dist/index113.mjs +30 -28
- package/dist/index114.cjs +1 -1
- package/dist/index114.mjs +32 -44
- package/dist/index115.cjs +1 -1
- package/dist/index115.mjs +57 -12
- package/dist/index116.cjs +1 -1
- package/dist/index116.mjs +18 -30
- package/dist/index117.cjs +1 -1
- package/dist/index117.mjs +12 -32
- package/dist/index118.cjs +1 -1
- package/dist/index118.mjs +64 -33
- package/dist/index119.cjs +1 -1
- package/dist/index119.mjs +28 -30
- package/dist/index12.cjs +1 -1
- package/dist/index12.mjs +1 -1
- package/dist/index120.cjs +1 -1
- package/dist/index120.mjs +32 -35
- package/dist/index121.cjs +1 -1
- package/dist/index121.mjs +76 -36
- package/dist/index122.cjs +1 -1
- package/dist/index122.mjs +33 -20
- package/dist/index123.cjs +1 -1
- package/dist/index123.mjs +40 -14
- package/dist/index124.cjs +1 -1
- package/dist/index124.mjs +53 -27
- package/dist/index125.cjs +1 -1
- package/dist/index125.mjs +42 -18
- package/dist/index126.cjs +1 -1
- package/dist/index126.mjs +19 -37
- package/dist/index127.cjs +1 -1
- package/dist/index127.mjs +37 -29
- package/dist/index128.cjs +1 -1
- package/dist/index128.mjs +28 -24
- package/dist/index129.cjs +1 -1
- package/dist/index129.mjs +36 -28
- package/dist/index13.cjs +1 -1
- package/dist/index13.mjs +1 -1
- package/dist/index130.cjs +1 -1
- package/dist/index130.mjs +18 -28
- package/dist/index131.cjs +1 -1
- package/dist/index131.mjs +18 -28
- package/dist/index132.cjs +1 -1
- package/dist/index132.mjs +234 -42
- package/dist/index133.cjs +1 -1
- package/dist/index133.mjs +34 -53
- package/dist/index134.cjs +1 -1
- package/dist/index134.mjs +44 -37
- package/dist/index135.cjs +1 -1
- package/dist/index135.mjs +170 -50
- package/dist/index136.cjs +1 -1
- package/dist/index136.mjs +186 -19
- package/dist/index137.cjs +1 -1
- package/dist/index137.mjs +27 -153
- package/dist/index138.cjs +1 -1
- package/dist/index138.mjs +88 -216
- package/dist/index139.cjs +1 -1
- package/dist/index139.mjs +53 -29
- package/dist/index14.cjs +1 -1
- package/dist/index14.mjs +1 -1
- package/dist/index140.cjs +1 -1
- package/dist/index140.mjs +66 -42
- package/dist/index141.cjs +1 -1
- package/dist/index141.mjs +124 -44
- package/dist/index142.cjs +1 -1
- package/dist/index142.mjs +108 -16
- package/dist/index143.cjs +1 -1
- package/dist/index143.mjs +111 -46
- package/dist/index144.cjs +1 -1
- package/dist/index144.mjs +122 -64
- package/dist/index145.cjs +1 -1
- package/dist/index145.mjs +214 -30
- package/dist/index146.cjs +1 -1
- package/dist/index146.mjs +41 -39
- package/dist/index147.cjs +1 -1
- package/dist/index147.mjs +27 -32
- package/dist/index149.cjs +1 -1
- package/dist/index149.mjs +46 -62
- package/dist/index15.cjs +1 -1
- package/dist/index15.mjs +1 -1
- package/dist/index150.cjs +1 -1
- package/dist/index150.mjs +24 -42
- package/dist/index151.cjs +1 -1
- package/dist/index151.mjs +24 -24
- package/dist/index152.cjs +1 -1
- package/dist/index152.mjs +20 -40
- package/dist/index153.cjs +1 -1
- package/dist/index153.mjs +24 -18
- package/dist/index154.cjs +1 -1
- package/dist/index154.mjs +28 -76
- package/dist/index155.cjs +1 -1
- package/dist/index155.mjs +39 -66
- package/dist/index156.cjs +1 -1
- package/dist/index156.mjs +22 -65
- package/dist/index157.cjs +1 -1
- package/dist/index157.mjs +63 -39
- package/dist/index158.cjs +1 -1
- package/dist/index158.mjs +12 -234
- package/dist/index159.cjs +1 -1
- package/dist/index159.mjs +34 -34
- package/dist/index16.cjs +1 -1
- package/dist/index16.mjs +73 -69
- package/dist/index160.cjs +1 -1
- package/dist/index160.mjs +21 -44
- package/dist/index161.cjs +1 -1
- package/dist/index161.mjs +42 -170
- package/dist/index162.cjs +1 -1
- package/dist/index162.mjs +21 -186
- package/dist/index163.cjs +1 -1
- package/dist/index163.mjs +29 -29
- package/dist/index164.cjs +1 -1
- package/dist/index164.mjs +44 -90
- package/dist/index165.cjs +1 -1
- package/dist/index165.mjs +63 -53
- package/dist/index166.cjs +1 -1
- package/dist/index166.mjs +28 -66
- package/dist/index167.cjs +1 -1
- package/dist/index167.mjs +20 -124
- package/dist/index168.cjs +1 -1
- package/dist/index168.mjs +67 -108
- package/dist/index169.cjs +1 -1
- package/dist/index169.mjs +30 -111
- package/dist/index17.cjs +1 -1
- package/dist/index17.mjs +1 -1
- package/dist/index170.cjs +1 -1
- package/dist/index170.mjs +24 -122
- package/dist/index171.cjs +1 -1
- package/dist/index171.mjs +44 -214
- package/dist/index172.cjs +1 -1
- package/dist/index172.mjs +46 -106
- package/dist/index173.cjs +1 -1
- package/dist/index173.mjs +28 -22
- package/dist/index174.cjs +1 -1
- package/dist/index174.mjs +106 -18
- package/dist/index175.cjs +1 -1
- package/dist/index175.mjs +52 -64
- package/dist/index176.cjs +1 -1
- package/dist/index176.mjs +45 -18
- package/dist/index177.cjs +1 -1
- package/dist/index177.mjs +36 -55
- package/dist/index178.cjs +1 -1
- package/dist/index178.mjs +55 -12
- package/dist/index179.cjs +1 -1
- package/dist/index179.mjs +50 -38
- package/dist/index18.cjs +1 -1
- package/dist/index18.mjs +1 -1
- package/dist/index180.cjs +1 -1
- package/dist/index180.mjs +29 -25
- package/dist/index181.cjs +1 -1
- package/dist/index181.mjs +52 -45
- package/dist/index185.cjs +1 -1
- package/dist/index185.mjs +1 -1
- package/dist/index19.cjs +1 -1
- package/dist/index19.mjs +2 -2
- package/dist/index20.cjs +1 -1
- package/dist/index20.mjs +14 -14
- package/dist/index21.cjs +1 -1
- package/dist/index21.mjs +1 -1
- package/dist/index22.cjs +1 -1
- package/dist/index22.mjs +1 -1
- package/dist/index23.cjs +1 -1
- package/dist/index23.mjs +56 -36
- package/dist/index24.cjs +1 -1
- package/dist/index24.mjs +1 -1
- package/dist/index25.cjs +1 -1
- package/dist/index25.mjs +1 -1
- package/dist/index26.cjs +1 -1
- package/dist/index26.mjs +1 -1
- package/dist/index27.cjs +1 -1
- package/dist/index27.mjs +1 -1
- package/dist/index28.cjs +1 -1
- package/dist/index28.mjs +1 -1
- package/dist/index30.cjs +1 -1
- package/dist/index30.mjs +1 -1
- package/dist/index31.cjs +1 -1
- package/dist/index31.mjs +1 -1
- package/dist/index32.cjs +1 -1
- package/dist/index32.mjs +1 -1
- package/dist/index33.cjs +1 -1
- package/dist/index33.mjs +1 -1
- package/dist/index34.cjs +1 -1
- package/dist/index34.mjs +1 -1
- package/dist/index35.cjs +1 -1
- package/dist/index35.mjs +1 -1
- package/dist/index36.cjs +1 -1
- package/dist/index36.mjs +1 -1
- package/dist/index37.cjs +1 -1
- package/dist/index37.mjs +1 -1
- package/dist/index38.cjs +1 -1
- package/dist/index38.mjs +1 -1
- package/dist/index39.cjs +1 -1
- package/dist/index39.mjs +1 -1
- package/dist/index40.cjs +1 -1
- package/dist/index40.mjs +1 -1
- package/dist/index42.cjs +1 -1
- package/dist/index42.mjs +1 -1
- package/dist/index43.cjs +1 -1
- package/dist/index43.mjs +1 -1
- package/dist/index44.cjs +1 -1
- package/dist/index44.mjs +1 -1
- package/dist/index46.cjs +1 -1
- package/dist/index46.mjs +1 -1
- package/dist/index47.cjs +1 -1
- package/dist/index47.mjs +1 -1
- package/dist/index48.mjs +95 -31
- package/dist/index49.cjs +1 -1
- package/dist/index49.mjs +1 -1
- package/dist/index5.cjs +1 -1
- package/dist/index5.mjs +1 -1
- package/dist/index50.cjs +1 -1
- package/dist/index50.mjs +1 -1
- package/dist/index51.cjs +1 -1
- package/dist/index51.mjs +1 -1
- package/dist/index52.cjs +1 -1
- package/dist/index52.mjs +1 -1
- package/dist/index53.cjs +1 -1
- package/dist/index53.mjs +82 -78
- package/dist/index54.cjs +1 -1
- package/dist/index54.mjs +1 -1
- package/dist/index55.cjs +1 -1
- package/dist/index55.mjs +1 -1
- package/dist/index56.cjs +1 -1
- package/dist/index56.mjs +1 -1
- package/dist/index57.cjs +1 -1
- package/dist/index57.mjs +1 -1
- package/dist/index58.cjs +1 -1
- package/dist/index58.mjs +1 -1
- package/dist/index59.cjs +1 -1
- package/dist/index59.mjs +1 -1
- package/dist/index6.cjs +1 -1
- package/dist/index6.mjs +1 -1
- package/dist/index61.cjs +1 -1
- package/dist/index61.mjs +1 -1
- package/dist/index62.cjs +1 -1
- package/dist/index62.mjs +42 -39
- package/dist/index64.cjs +1 -1
- package/dist/index64.mjs +1 -1
- package/dist/index65.cjs +1 -1
- package/dist/index65.mjs +1 -1
- package/dist/index66.cjs +1 -1
- package/dist/index66.mjs +1 -1
- package/dist/index67.cjs +1 -1
- package/dist/index67.mjs +1 -1
- package/dist/index68.cjs +1 -1
- package/dist/index68.mjs +1 -1
- package/dist/index69.cjs +1 -1
- package/dist/index69.mjs +1 -1
- package/dist/index7.cjs +1 -1
- package/dist/index7.mjs +1 -1
- package/dist/index70.cjs +1 -1
- package/dist/index70.mjs +1 -1
- package/dist/index71.cjs +1 -1
- package/dist/index71.mjs +1 -1
- package/dist/index72.cjs +1 -1
- package/dist/index72.mjs +17 -15
- package/dist/index73.cjs +1 -1
- package/dist/index73.mjs +1 -1
- package/dist/index76.cjs +1 -1
- package/dist/index76.mjs +1 -1
- package/dist/index77.cjs +1 -1
- package/dist/index77.mjs +1 -1
- package/dist/index78.cjs +1 -1
- package/dist/index78.mjs +1 -1
- package/dist/index79.cjs +1 -1
- package/dist/index79.mjs +1 -1
- package/dist/index8.cjs +1 -1
- package/dist/index8.mjs +1 -1
- package/dist/index80.cjs +1 -1
- package/dist/index80.mjs +1 -1
- package/dist/index81.cjs +1 -1
- package/dist/index81.mjs +21 -3
- package/dist/index82.cjs +1 -1
- package/dist/index82.mjs +2 -2
- package/dist/index9.cjs +1 -1
- package/dist/index9.mjs +1 -1
- package/dist/index94.mjs +3 -1
- package/dist/index97.cjs +1 -1
- package/dist/index97.mjs +154 -24
- package/dist/index98.cjs +1 -1
- package/dist/index98.mjs +218 -46
- package/dist/index99.cjs +1 -1
- package/dist/index99.mjs +30 -55
- package/dist/styles.css +6 -5
- package/dist/theme.css +1 -0
- package/dist/tokens/brands.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index166.mjs
CHANGED
|
@@ -1,69 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const [d, l] = g(!1), [p, v] = g(!1), c = () => {
|
|
16
|
-
o ? o() : n && l(!0);
|
|
17
|
-
}, I = (t) => {
|
|
18
|
-
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), c());
|
|
19
|
-
}, w = () => {
|
|
20
|
-
v(!0);
|
|
21
|
-
};
|
|
22
|
-
return p ? /* @__PURE__ */ f(
|
|
23
|
-
"div",
|
|
24
|
-
{
|
|
25
|
-
className: [a.imagePreview, a.attachmentPreview, m].filter(Boolean).join(" "),
|
|
26
|
-
...s,
|
|
27
|
-
children: [
|
|
28
|
-
/* @__PURE__ */ e("div", { className: a.attachmentPreviewIcon, children: /* @__PURE__ */ e(P, { size: 20 }) }),
|
|
29
|
-
/* @__PURE__ */ e("span", { className: a.attachmentPreviewName, children: "Image failed to load" })
|
|
30
|
-
]
|
|
31
|
-
}
|
|
32
|
-
) : /* @__PURE__ */ f(u, { children: [
|
|
33
|
-
/* @__PURE__ */ e(
|
|
34
|
-
"div",
|
|
35
|
-
{
|
|
36
|
-
className: [a.imagePreview, m].filter(Boolean).join(" "),
|
|
37
|
-
onClick: c,
|
|
38
|
-
onKeyDown: I,
|
|
39
|
-
role: "button",
|
|
40
|
-
tabIndex: 0,
|
|
41
|
-
"aria-label": r,
|
|
42
|
-
...s,
|
|
43
|
-
children: /* @__PURE__ */ e(
|
|
44
|
-
"img",
|
|
45
|
-
{
|
|
46
|
-
src: h || i,
|
|
47
|
-
alt: r,
|
|
48
|
-
className: a.imagePreviewImg,
|
|
49
|
-
onError: w,
|
|
50
|
-
loading: "lazy"
|
|
51
|
-
}
|
|
52
|
-
)
|
|
53
|
-
}
|
|
54
|
-
),
|
|
55
|
-
n && /* @__PURE__ */ e(
|
|
56
|
-
y,
|
|
57
|
-
{
|
|
58
|
-
src: i,
|
|
59
|
-
alt: r,
|
|
60
|
-
isOpen: d,
|
|
61
|
-
onClose: () => l(!1)
|
|
62
|
-
}
|
|
63
|
-
)
|
|
64
|
-
] });
|
|
1
|
+
const _ = "_backdrop_35vfn_8", o = "_fadeIn_35vfn_1", n = "_modal_35vfn_32", s = "_slideUp_35vfn_1", t = "_sm_35vfn_67", f = "_md_35vfn_71", l = "_lg_35vfn_75", d = "_xl_35vfn_79", e = "_full_35vfn_83", c = "_header_35vfn_93", a = "_closeButton_35vfn_105", v = "_body_35vfn_145", r = "_footer_35vfn_153", m = {
|
|
2
|
+
backdrop: _,
|
|
3
|
+
fadeIn: o,
|
|
4
|
+
modal: n,
|
|
5
|
+
slideUp: s,
|
|
6
|
+
sm: t,
|
|
7
|
+
md: f,
|
|
8
|
+
lg: l,
|
|
9
|
+
xl: d,
|
|
10
|
+
full: e,
|
|
11
|
+
header: c,
|
|
12
|
+
closeButton: a,
|
|
13
|
+
body: v,
|
|
14
|
+
footer: r
|
|
65
15
|
};
|
|
66
|
-
x.displayName = "ChatImagePreview";
|
|
67
16
|
export {
|
|
68
|
-
|
|
17
|
+
_ as backdrop,
|
|
18
|
+
v as body,
|
|
19
|
+
a as closeButton,
|
|
20
|
+
m as default,
|
|
21
|
+
o as fadeIn,
|
|
22
|
+
r as footer,
|
|
23
|
+
e as full,
|
|
24
|
+
c as header,
|
|
25
|
+
l as lg,
|
|
26
|
+
f as md,
|
|
27
|
+
n as modal,
|
|
28
|
+
s as slideUp,
|
|
29
|
+
t as sm,
|
|
30
|
+
d as xl
|
|
69
31
|
};
|
package/dist/index167.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n="_backdrop_18ya7_9",o="_dialog_18ya7_32",i="_icon_18ya7_70",c="_iconInfo_18ya7_81",t="_iconWarning_18ya7_86",a="_iconDanger_18ya7_91",_="_title_18ya7_100",e="_description_18ya7_109",s="_actions_18ya7_121",r={backdrop:n,dialog:o,icon:i,iconInfo:c,iconWarning:t,iconDanger:a,title:_,description:e,actions:s};exports.actions=s;exports.backdrop=n;exports.default=r;exports.description=e;exports.dialog=o;exports.icon=i;exports.iconDanger=a;exports.iconInfo=c;exports.iconWarning=t;exports.title=_;
|
package/dist/index167.mjs
CHANGED
|
@@ -1,127 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
...T
|
|
12
|
-
}) => {
|
|
13
|
-
const [c, f] = h(!1), [t, u] = h(0), [a, k] = h(v || 0), n = M(null), N = s(() => {
|
|
14
|
-
const e = n.current;
|
|
15
|
-
e && !isNaN(e.duration) && isFinite(e.duration) && k(e.duration);
|
|
16
|
-
}, []), b = s(() => {
|
|
17
|
-
const e = n.current;
|
|
18
|
-
e && u(e.currentTime);
|
|
19
|
-
}, []), C = s(() => {
|
|
20
|
-
f(!1), u(0);
|
|
21
|
-
}, []), D = s(() => {
|
|
22
|
-
const e = n.current;
|
|
23
|
-
e && (c ? e.pause() : e.play().catch(() => {
|
|
24
|
-
f(!1);
|
|
25
|
-
}), f(!c));
|
|
26
|
-
}, [c]), x = s(
|
|
27
|
-
(e) => {
|
|
28
|
-
const l = n.current;
|
|
29
|
-
if (!l || !a) return;
|
|
30
|
-
const d = e.currentTarget.getBoundingClientRect(), P = (e.clientX - d.left) / d.width * a;
|
|
31
|
-
l.currentTime = P, u(P);
|
|
32
|
-
},
|
|
33
|
-
[a]
|
|
34
|
-
), A = s(
|
|
35
|
-
(e) => {
|
|
36
|
-
const l = n.current;
|
|
37
|
-
if (!l || !a) return;
|
|
38
|
-
const d = 5;
|
|
39
|
-
let i = t;
|
|
40
|
-
switch (e.key) {
|
|
41
|
-
case "ArrowRight":
|
|
42
|
-
case "ArrowUp":
|
|
43
|
-
e.preventDefault(), i = Math.min(t + d, a);
|
|
44
|
-
break;
|
|
45
|
-
case "ArrowLeft":
|
|
46
|
-
case "ArrowDown":
|
|
47
|
-
e.preventDefault(), i = Math.max(t - d, 0);
|
|
48
|
-
break;
|
|
49
|
-
case "Home":
|
|
50
|
-
e.preventDefault(), i = 0;
|
|
51
|
-
break;
|
|
52
|
-
case "End":
|
|
53
|
-
e.preventDefault(), i = a;
|
|
54
|
-
break;
|
|
55
|
-
default:
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
l.currentTime = i, u(i);
|
|
59
|
-
},
|
|
60
|
-
[t, a]
|
|
61
|
-
), E = a > 0 ? t / a * 100 : 0;
|
|
62
|
-
return R(() => () => {
|
|
63
|
-
const e = n.current;
|
|
64
|
-
e && e.pause();
|
|
65
|
-
}, []), /* @__PURE__ */ p(
|
|
66
|
-
"div",
|
|
67
|
-
{
|
|
68
|
-
className: [o.audioPlayer, w].filter(Boolean).join(" "),
|
|
69
|
-
...T,
|
|
70
|
-
children: [
|
|
71
|
-
/* @__PURE__ */ r(
|
|
72
|
-
"audio",
|
|
73
|
-
{
|
|
74
|
-
ref: n,
|
|
75
|
-
src: g,
|
|
76
|
-
onLoadedMetadata: N,
|
|
77
|
-
onTimeUpdate: b,
|
|
78
|
-
onEnded: C,
|
|
79
|
-
preload: "metadata"
|
|
80
|
-
}
|
|
81
|
-
),
|
|
82
|
-
/* @__PURE__ */ r(
|
|
83
|
-
"button",
|
|
84
|
-
{
|
|
85
|
-
className: o.audioPlayerButton,
|
|
86
|
-
onClick: D,
|
|
87
|
-
"aria-label": c ? "Pause" : "Play",
|
|
88
|
-
children: c ? /* @__PURE__ */ r(j, { size: 16 }) : /* @__PURE__ */ r(B, { size: 16 })
|
|
89
|
-
}
|
|
90
|
-
),
|
|
91
|
-
/* @__PURE__ */ p("div", { className: o.audioPlayerProgress, children: [
|
|
92
|
-
y && /* @__PURE__ */ r("span", { className: o.attachmentPreviewName, children: y }),
|
|
93
|
-
/* @__PURE__ */ r(
|
|
94
|
-
"div",
|
|
95
|
-
{
|
|
96
|
-
className: o.audioPlayerTrack,
|
|
97
|
-
onClick: x,
|
|
98
|
-
onKeyDown: A,
|
|
99
|
-
role: "slider",
|
|
100
|
-
"aria-label": "Audio progress",
|
|
101
|
-
"aria-valuemin": 0,
|
|
102
|
-
"aria-valuemax": a,
|
|
103
|
-
"aria-valuenow": t,
|
|
104
|
-
"aria-valuetext": `${m(t)} of ${m(a)}`,
|
|
105
|
-
tabIndex: 0,
|
|
106
|
-
children: /* @__PURE__ */ r(
|
|
107
|
-
"div",
|
|
108
|
-
{
|
|
109
|
-
className: o.audioPlayerFill,
|
|
110
|
-
style: { width: `${E}%` }
|
|
111
|
-
}
|
|
112
|
-
)
|
|
113
|
-
}
|
|
114
|
-
),
|
|
115
|
-
/* @__PURE__ */ p("div", { className: o.audioPlayerTime, children: [
|
|
116
|
-
/* @__PURE__ */ r("span", { children: m(t) }),
|
|
117
|
-
/* @__PURE__ */ r("span", { children: m(a) })
|
|
118
|
-
] })
|
|
119
|
-
] })
|
|
120
|
-
]
|
|
121
|
-
}
|
|
122
|
-
);
|
|
1
|
+
const n = "_backdrop_18ya7_9", o = "_dialog_18ya7_32", c = "_icon_18ya7_70", i = "_iconInfo_18ya7_81", _ = "_iconWarning_18ya7_86", a = "_iconDanger_18ya7_91", t = "_title_18ya7_100", s = "_description_18ya7_109", r = "_actions_18ya7_121", e = {
|
|
2
|
+
backdrop: n,
|
|
3
|
+
dialog: o,
|
|
4
|
+
icon: c,
|
|
5
|
+
iconInfo: i,
|
|
6
|
+
iconWarning: _,
|
|
7
|
+
iconDanger: a,
|
|
8
|
+
title: t,
|
|
9
|
+
description: s,
|
|
10
|
+
actions: r
|
|
123
11
|
};
|
|
124
|
-
L.displayName = "ChatAudioPlayer";
|
|
125
12
|
export {
|
|
126
|
-
|
|
13
|
+
r as actions,
|
|
14
|
+
n as backdrop,
|
|
15
|
+
e as default,
|
|
16
|
+
s as description,
|
|
17
|
+
o as dialog,
|
|
18
|
+
c as icon,
|
|
19
|
+
a as iconDanger,
|
|
20
|
+
i as iconInfo,
|
|
21
|
+
_ as iconWarning,
|
|
22
|
+
t as title
|
|
127
23
|
};
|
package/dist/index168.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_notificationCenter_1i45p_8",t="_header_1i45p_23",i="_headerTitle_1i45p_31",o="_badge_1i45p_41",n="_headerActions_1i45p_52",_="_headerAction_1i45p_52",c="_content_1i45p_76",r="_group_1i45p_80",a="_groupTitle_1i45p_84",s="_item_1i45p_99",m="_itemClickable_1i45p_113",p="_itemRead_1i45p_122",d="_itemLeft_1i45p_126",l="_itemAvatar_1i45p_130",A="_itemIcon_1i45p_137",f="_itemContent_1i45p_171",g="_itemHeader_1i45p_176",u="_itemTitle_1i45p_182",T="_unreadDot_1i45p_189",h="_itemMessage_1i45p_197",C="_itemTime_1i45p_209",b="_itemActions_1i45p_217",y="_itemAction_1i45p_217",v="_empty_1i45p_252",M="_loading_1i45p_271",P="_spinner_1i45p_278",k="_spin_1i45p_278",D="_footer_1i45p_297",H="_footerAction_1i45p_306",I="_footerActionPrimary_1i45p_321",L={notificationCenter:e,header:t,headerTitle:i,badge:o,headerActions:n,headerAction:_,content:c,group:r,groupTitle:a,item:s,itemClickable:m,itemRead:p,itemLeft:d,itemAvatar:l,itemIcon:A,"icon-info":"_icon-info_1i45p_146","icon-success":"_icon-success_1i45p_151","icon-warning":"_icon-warning_1i45p_156","icon-error":"_icon-error_1i45p_161","icon-default":"_icon-default_1i45p_166",itemContent:f,itemHeader:g,itemTitle:u,unreadDot:T,itemMessage:h,itemTime:C,itemActions:b,itemAction:y,empty:v,loading:M,spinner:P,spin:k,footer:D,footerAction:H,footerActionPrimary:I};exports.badge=o;exports.content=c;exports.default=L;exports.empty=v;exports.footer=D;exports.footerAction=H;exports.footerActionPrimary=I;exports.group=r;exports.groupTitle=a;exports.header=t;exports.headerAction=_;exports.headerActions=n;exports.headerTitle=i;exports.item=s;exports.itemAction=y;exports.itemActions=b;exports.itemAvatar=l;exports.itemClickable=m;exports.itemContent=f;exports.itemHeader=g;exports.itemIcon=A;exports.itemLeft=d;exports.itemMessage=h;exports.itemRead=p;exports.itemTime=C;exports.itemTitle=u;exports.loading=M;exports.notificationCenter=e;exports.spin=k;exports.spinner=P;exports.unreadDot=T;
|
package/dist/index168.mjs
CHANGED
|
@@ -1,111 +1,70 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
children: [
|
|
38
|
-
/* @__PURE__ */ r("div", { className: e.voiceRecorderInfo, children: /* @__PURE__ */ r(
|
|
39
|
-
"span",
|
|
40
|
-
{
|
|
41
|
-
className: [
|
|
42
|
-
e.voiceRecorderLabel,
|
|
43
|
-
e.voiceRecorderError
|
|
44
|
-
].join(" "),
|
|
45
|
-
children: s
|
|
46
|
-
}
|
|
47
|
-
) }),
|
|
48
|
-
/* @__PURE__ */ r(
|
|
49
|
-
"button",
|
|
50
|
-
{
|
|
51
|
-
className: e.inputButton,
|
|
52
|
-
onClick: l,
|
|
53
|
-
"aria-label": "Try again",
|
|
54
|
-
children: /* @__PURE__ */ r(t, { size: 20 })
|
|
55
|
-
}
|
|
56
|
-
)
|
|
57
|
-
]
|
|
58
|
-
}
|
|
59
|
-
) : /* @__PURE__ */ c(
|
|
60
|
-
"div",
|
|
61
|
-
{
|
|
62
|
-
className: [e.voiceRecorder, a].filter(Boolean).join(" "),
|
|
63
|
-
...n,
|
|
64
|
-
children: [
|
|
65
|
-
/* @__PURE__ */ r(
|
|
66
|
-
"button",
|
|
67
|
-
{
|
|
68
|
-
className: [
|
|
69
|
-
e.voiceRecorderButton,
|
|
70
|
-
!o && !i && e.voiceRecorderButtonIdle
|
|
71
|
-
].filter(Boolean).join(" "),
|
|
72
|
-
onClick: p,
|
|
73
|
-
"aria-label": o ? "Stop recording" : i ? "Send recording" : "Start recording",
|
|
74
|
-
children: o ? /* @__PURE__ */ r(b, { size: 20 }) : i ? /* @__PURE__ */ r(C, { size: 20 }) : /* @__PURE__ */ r(j, { size: 20 })
|
|
75
|
-
}
|
|
76
|
-
),
|
|
77
|
-
/* @__PURE__ */ c("div", { className: e.voiceRecorderInfo, children: [
|
|
78
|
-
/* @__PURE__ */ r("span", { className: e.voiceRecorderDuration, children: k(R) }),
|
|
79
|
-
/* @__PURE__ */ r("span", { className: e.voiceRecorderLabel, children: o ? "Recording..." : i ? "Recording ready" : "Click to record" })
|
|
80
|
-
] }),
|
|
81
|
-
o && /* @__PURE__ */ c("div", { className: e.voiceRecorderWaveform, children: [
|
|
82
|
-
/* @__PURE__ */ r("div", { className: e.voiceRecorderBar }),
|
|
83
|
-
/* @__PURE__ */ r("div", { className: e.voiceRecorderBar }),
|
|
84
|
-
/* @__PURE__ */ r("div", { className: e.voiceRecorderBar }),
|
|
85
|
-
/* @__PURE__ */ r("div", { className: e.voiceRecorderBar }),
|
|
86
|
-
/* @__PURE__ */ r("div", { className: e.voiceRecorderBar })
|
|
87
|
-
] }),
|
|
88
|
-
(o || i) && /* @__PURE__ */ r("div", { className: e.voiceRecorderActions, children: /* @__PURE__ */ r(
|
|
89
|
-
"button",
|
|
90
|
-
{
|
|
91
|
-
className: e.inputButton,
|
|
92
|
-
onClick: B,
|
|
93
|
-
"aria-label": "Cancel recording",
|
|
94
|
-
children: /* @__PURE__ */ r(t, { size: 20 })
|
|
95
|
-
}
|
|
96
|
-
) })
|
|
97
|
-
]
|
|
98
|
-
}
|
|
99
|
-
) : /* @__PURE__ */ r(
|
|
100
|
-
"div",
|
|
101
|
-
{
|
|
102
|
-
className: [e.voiceRecorder, a].filter(Boolean).join(" "),
|
|
103
|
-
...n,
|
|
104
|
-
children: /* @__PURE__ */ r("div", { className: e.voiceRecorderInfo, children: /* @__PURE__ */ r("span", { className: e.voiceRecorderLabel, children: "Voice recording is not supported in this browser" }) })
|
|
105
|
-
}
|
|
106
|
-
);
|
|
1
|
+
const t = "_notificationCenter_1i45p_8", i = "_header_1i45p_23", e = "_headerTitle_1i45p_31", o = "_badge_1i45p_41", _ = "_headerActions_1i45p_52", n = "_headerAction_1i45p_52", c = "_content_1i45p_76", s = "_group_1i45p_80", r = "_groupTitle_1i45p_84", a = "_item_1i45p_99", p = "_itemClickable_1i45p_113", m = "_itemRead_1i45p_122", d = "_itemLeft_1i45p_126", l = "_itemAvatar_1i45p_130", A = "_itemIcon_1i45p_137", f = "_itemContent_1i45p_171", g = "_itemHeader_1i45p_176", u = "_itemTitle_1i45p_182", h = "_unreadDot_1i45p_189", T = "_itemMessage_1i45p_197", C = "_itemTime_1i45p_209", y = "_itemActions_1i45p_217", b = "_itemAction_1i45p_217", k = "_empty_1i45p_252", v = "_loading_1i45p_271", D = "_spinner_1i45p_278", H = "_spin_1i45p_278", I = "_footer_1i45p_297", L = "_footerAction_1i45p_306", M = "_footerActionPrimary_1i45p_321", P = {
|
|
2
|
+
notificationCenter: t,
|
|
3
|
+
header: i,
|
|
4
|
+
headerTitle: e,
|
|
5
|
+
badge: o,
|
|
6
|
+
headerActions: _,
|
|
7
|
+
headerAction: n,
|
|
8
|
+
content: c,
|
|
9
|
+
group: s,
|
|
10
|
+
groupTitle: r,
|
|
11
|
+
item: a,
|
|
12
|
+
itemClickable: p,
|
|
13
|
+
itemRead: m,
|
|
14
|
+
itemLeft: d,
|
|
15
|
+
itemAvatar: l,
|
|
16
|
+
itemIcon: A,
|
|
17
|
+
"icon-info": "_icon-info_1i45p_146",
|
|
18
|
+
"icon-success": "_icon-success_1i45p_151",
|
|
19
|
+
"icon-warning": "_icon-warning_1i45p_156",
|
|
20
|
+
"icon-error": "_icon-error_1i45p_161",
|
|
21
|
+
"icon-default": "_icon-default_1i45p_166",
|
|
22
|
+
itemContent: f,
|
|
23
|
+
itemHeader: g,
|
|
24
|
+
itemTitle: u,
|
|
25
|
+
unreadDot: h,
|
|
26
|
+
itemMessage: T,
|
|
27
|
+
itemTime: C,
|
|
28
|
+
itemActions: y,
|
|
29
|
+
itemAction: b,
|
|
30
|
+
empty: k,
|
|
31
|
+
loading: v,
|
|
32
|
+
spinner: D,
|
|
33
|
+
spin: H,
|
|
34
|
+
footer: I,
|
|
35
|
+
footerAction: L,
|
|
36
|
+
footerActionPrimary: M
|
|
107
37
|
};
|
|
108
|
-
z.displayName = "ChatVoiceRecorder";
|
|
109
38
|
export {
|
|
110
|
-
|
|
39
|
+
o as badge,
|
|
40
|
+
c as content,
|
|
41
|
+
P as default,
|
|
42
|
+
k as empty,
|
|
43
|
+
I as footer,
|
|
44
|
+
L as footerAction,
|
|
45
|
+
M as footerActionPrimary,
|
|
46
|
+
s as group,
|
|
47
|
+
r as groupTitle,
|
|
48
|
+
i as header,
|
|
49
|
+
n as headerAction,
|
|
50
|
+
_ as headerActions,
|
|
51
|
+
e as headerTitle,
|
|
52
|
+
a as item,
|
|
53
|
+
b as itemAction,
|
|
54
|
+
y as itemActions,
|
|
55
|
+
l as itemAvatar,
|
|
56
|
+
p as itemClickable,
|
|
57
|
+
f as itemContent,
|
|
58
|
+
g as itemHeader,
|
|
59
|
+
A as itemIcon,
|
|
60
|
+
d as itemLeft,
|
|
61
|
+
T as itemMessage,
|
|
62
|
+
m as itemRead,
|
|
63
|
+
C as itemTime,
|
|
64
|
+
u as itemTitle,
|
|
65
|
+
v as loading,
|
|
66
|
+
t as notificationCenter,
|
|
67
|
+
H as spin,
|
|
68
|
+
D as spinner,
|
|
69
|
+
h as unreadDot
|
|
111
70
|
};
|
package/dist/index169.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_container_1e3cp_8",r="_labelWrapper_1e3cp_16",c="_percentage_1e3cp_25",n="_track_1e3cp_31",t="_bar_1e3cp_40",_="_sm_1e3cp_50",a="_md_1e3cp_54",s="_lg_1e3cp_58",o="_primary_1e3cp_66",p="_success_1e3cp_70",i="_warning_1e3cp_74",l="_error_1e3cp_78",m="_info_1e3cp_82",g="_indeterminate_1e3cp_90",d={container:e,labelWrapper:r,percentage:c,track:n,bar:t,sm:_,md:a,lg:s,primary:o,success:p,warning:i,error:l,info:m,indeterminate:g};exports.bar=t;exports.container=e;exports.default=d;exports.error=l;exports.indeterminate=g;exports.info=m;exports.labelWrapper=r;exports.lg=s;exports.md=a;exports.percentage=c;exports.primary=o;exports.sm=_;exports.success=p;exports.track=n;exports.warning=i;
|
package/dist/index169.mjs
CHANGED
|
@@ -1,114 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const [U, f] = I(!1), i = W(null), c = a(
|
|
17
|
-
(e) => {
|
|
18
|
-
if (!e || e.length === 0) return;
|
|
19
|
-
const o = [];
|
|
20
|
-
Array.from(e).forEach((t) => {
|
|
21
|
-
if (r && t.size > r) {
|
|
22
|
-
console.warn(
|
|
23
|
-
`File ${t.name} exceeds max size of ${g(r)}`
|
|
24
|
-
);
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
const j = s.includes("*/*"), w = s.flatMap((n) => (n.endsWith("/*"), n));
|
|
28
|
-
if (!(j || w.some((n) => {
|
|
29
|
-
if (n.endsWith("/*")) {
|
|
30
|
-
const x = n.split("/")[0];
|
|
31
|
-
return t.type.startsWith(`${x}/`);
|
|
32
|
-
}
|
|
33
|
-
return t.type === n || t.name.endsWith(n);
|
|
34
|
-
}))) {
|
|
35
|
-
console.warn(`File ${t.name} type not accepted`);
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
o.push(t);
|
|
39
|
-
}), o.length > 0 && h?.(o);
|
|
40
|
-
},
|
|
41
|
-
[s, r, h]
|
|
42
|
-
), C = a((e) => {
|
|
43
|
-
e.preventDefault(), e.stopPropagation(), f(!0);
|
|
44
|
-
}, []), k = a((e) => {
|
|
45
|
-
e.preventDefault(), e.stopPropagation(), f(!1);
|
|
46
|
-
}, []), F = a(
|
|
47
|
-
(e) => {
|
|
48
|
-
e.preventDefault(), e.stopPropagation(), f(!1);
|
|
49
|
-
const { files: o } = e.dataTransfer;
|
|
50
|
-
c(o);
|
|
51
|
-
},
|
|
52
|
-
[c]
|
|
53
|
-
), N = a(
|
|
54
|
-
(e) => {
|
|
55
|
-
c(e.target.files), i.current && (i.current.value = "");
|
|
56
|
-
},
|
|
57
|
-
[c]
|
|
58
|
-
), u = a(() => {
|
|
59
|
-
i.current?.click();
|
|
60
|
-
}, []), b = a(
|
|
61
|
-
(e) => {
|
|
62
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), u());
|
|
63
|
-
},
|
|
64
|
-
[u]
|
|
65
|
-
);
|
|
66
|
-
return /* @__PURE__ */ d(
|
|
67
|
-
"div",
|
|
68
|
-
{
|
|
69
|
-
className: [
|
|
70
|
-
l.fileUpload,
|
|
71
|
-
U && l.fileUploadDragging,
|
|
72
|
-
v
|
|
73
|
-
].filter(Boolean).join(" "),
|
|
74
|
-
onDragOver: C,
|
|
75
|
-
onDragLeave: k,
|
|
76
|
-
onDrop: F,
|
|
77
|
-
onClick: u,
|
|
78
|
-
onKeyDown: b,
|
|
79
|
-
role: "button",
|
|
80
|
-
tabIndex: 0,
|
|
81
|
-
"aria-label": "Upload files",
|
|
82
|
-
...y,
|
|
83
|
-
children: [
|
|
84
|
-
/* @__PURE__ */ p(
|
|
85
|
-
"input",
|
|
86
|
-
{
|
|
87
|
-
ref: i,
|
|
88
|
-
type: "file",
|
|
89
|
-
accept: s.join(","),
|
|
90
|
-
multiple: m,
|
|
91
|
-
onChange: N,
|
|
92
|
-
style: { display: "none" },
|
|
93
|
-
"aria-hidden": "true"
|
|
94
|
-
}
|
|
95
|
-
),
|
|
96
|
-
D || /* @__PURE__ */ d(A, { children: [
|
|
97
|
-
/* @__PURE__ */ p("div", { className: l.fileUploadIcon, children: /* @__PURE__ */ p($, { size: 32 }) }),
|
|
98
|
-
/* @__PURE__ */ d("div", { className: l.fileUploadText, children: [
|
|
99
|
-
/* @__PURE__ */ p("strong", { children: "Click to upload" }),
|
|
100
|
-
" or drag and drop"
|
|
101
|
-
] }),
|
|
102
|
-
/* @__PURE__ */ d("div", { className: l.fileUploadHint, children: [
|
|
103
|
-
"Max file size: ",
|
|
104
|
-
g(r)
|
|
105
|
-
] })
|
|
106
|
-
] })
|
|
107
|
-
]
|
|
108
|
-
}
|
|
109
|
-
);
|
|
1
|
+
const e = "_container_1e3cp_8", c = "_labelWrapper_1e3cp_16", _ = "_percentage_1e3cp_25", r = "_track_1e3cp_31", n = "_bar_1e3cp_40", t = "_sm_1e3cp_50", s = "_md_1e3cp_54", a = "_lg_1e3cp_58", p = "_primary_1e3cp_66", o = "_success_1e3cp_70", i = "_warning_1e3cp_74", m = "_error_1e3cp_78", l = "_info_1e3cp_82", g = "_indeterminate_1e3cp_90", d = {
|
|
2
|
+
container: e,
|
|
3
|
+
labelWrapper: c,
|
|
4
|
+
percentage: _,
|
|
5
|
+
track: r,
|
|
6
|
+
bar: n,
|
|
7
|
+
sm: t,
|
|
8
|
+
md: s,
|
|
9
|
+
lg: a,
|
|
10
|
+
primary: p,
|
|
11
|
+
success: o,
|
|
12
|
+
warning: i,
|
|
13
|
+
error: m,
|
|
14
|
+
info: l,
|
|
15
|
+
indeterminate: g
|
|
110
16
|
};
|
|
111
|
-
P.displayName = "ChatFileUpload";
|
|
112
17
|
export {
|
|
113
|
-
|
|
18
|
+
n as bar,
|
|
19
|
+
e as container,
|
|
20
|
+
d as default,
|
|
21
|
+
m as error,
|
|
22
|
+
g as indeterminate,
|
|
23
|
+
l as info,
|
|
24
|
+
c as labelWrapper,
|
|
25
|
+
a as lg,
|
|
26
|
+
s as md,
|
|
27
|
+
_ as percentage,
|
|
28
|
+
p as primary,
|
|
29
|
+
t as sm,
|
|
30
|
+
o as success,
|
|
31
|
+
r as track,
|
|
32
|
+
i as warning
|
|
114
33
|
};
|
package/dist/index17.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),l=require("react"),tt=require("./index18.cjs"),q=require("lucide-react"),p=require("./index83.cjs"),r=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),l=require("react"),tt=require("./index18.cjs"),q=require("lucide-react"),p=require("./index83.cjs"),r=require("./index115.cjs"),et=parseInt(p.spacing[6],10),rt=parseInt(p.spacing[4],10),st=parseInt(p.spacing[6],10),lt=parseInt(p.spacing[8],10),T=l.forwardRef(({items:n,variant:_="editorial",aspectRatio:B="16/9",peek:D=!0,autoScroll:R=!1,autoScrollInterval:j=5e3,gap:i="md",align:I="edge",alignOffset:S,showNavigation:$=!0,showPagination:w=!1,onSlideChange:W,renderNavigation:N,highlightActive:y=!1,loop:x=!1,className:z,...H},F)=>{const s=l.useRef(null),[K,J]=l.useState(!1),[Q,U]=l.useState(!0),[f,V]=l.useState(0),M=l.useRef(0),u=l.useCallback(()=>i==="sm"?rt:i==="lg"?lt:st,[i]),d=l.useCallback(t=>{const e=t.children[0];return e?e.offsetWidth:0},[]),v=l.useCallback(()=>{if(!s.current)return;const{scrollLeft:t,scrollWidth:e,clientWidth:c}=s.current,h=d(s.current),g=u(),b=t>=e-c-1,m=t<=1;J(!m),U(!b);let o;if(b)o=n.length-1;else{const L=Math.round(t/(h+g));o=Math.min(Math.max(0,L),n.length-1)}o!==M.current&&(M.current=o,V(o),W?.(o))},[i,n.length,W,u,d]),C=l.useCallback(t=>{if(!s.current)return;const{scrollLeft:e,scrollWidth:c,clientWidth:h}=s.current,g=d(s.current),b=u(),m=g+b,o=e<=1,L=e>=c-h-1;if(x){if(t==="right"&&L){s.current.scrollTo({left:0,behavior:"smooth"});return}if(t==="left"&&o){s.current.scrollTo({left:c-h,behavior:"smooth"});return}}s.current.scrollBy({left:t==="left"?-m:m,behavior:"smooth"})},[i,x,u,d]),k=l.useCallback(t=>{if(!s.current)return;const e=d(s.current),c=u();s.current.scrollTo({left:t*(e+c),behavior:"smooth"})},[u,d]);l.useEffect(()=>{const t=s.current;if(t)return v(),t.addEventListener("scroll",v),()=>{t.removeEventListener("scroll",v)}},[v]),l.useEffect(()=>{if(!R||n.length<=1)return;const t=setInterval(()=>{const e=(f+1)%n.length;k(e)},j);return()=>clearInterval(t)},[R,j,f,n.length,k]);const P=I==="container"&&S!==void 0,E=P?Math.max(0,S-et):0,X=i==="sm"?r.default.gapSm:i==="lg"?r.default.gapLg:r.default.gapMd,Y=I==="container"?r.default.trackContainer:r.default.trackEdge,Z=[r.default.carousel,D&&r.default.peek,y&&r.default.highlightActive,X,z].filter(Boolean).join(" "),O=[r.default.track,Y].filter(Boolean).join(" "),G=x&&n.length>1,A={canScrollLeft:G||K,canScrollRight:G||Q,scrollLeft:()=>C("left"),scrollRight:()=>C("right"),activeIndex:f,totalItems:n.length};return a.jsxs("div",{ref:F,className:Z,...H,children:[a.jsx("div",{ref:s,className:O,style:P?{scrollPaddingInlineStart:S}:void 0,role:"region","aria-label":"Carousel",children:n.map((t,e)=>{const c=e===0,g=e===f&&y;return a.jsx(tt.CarouselCard,{item:t,aspectRatio:B,variant:_,className:g?r.default.cardHighlighted:void 0,style:c&&E>0?{marginLeft:E}:void 0},t.title||e)})}),$&&n.length>1&&(N?N(A):a.jsxs("div",{className:r.default.navigation,children:[a.jsx("button",{type:"button",className:r.default.navButton,onClick:()=>C("left"),disabled:!A.canScrollLeft,"aria-label":"Previous",children:a.jsx(q.ChevronLeft,{size:24})}),a.jsx("button",{type:"button",className:r.default.navButton,onClick:()=>C("right"),disabled:!A.canScrollRight,"aria-label":"Next",children:a.jsx(q.ChevronRight,{size:24})})]})),w&&n.length>1&&a.jsx("div",{className:r.default.pagination,children:n.map((t,e)=>a.jsx("button",{type:"button",className:`${r.default.dot} ${e===f?r.default.dotActive:""}`,onClick:()=>k(e),"aria-label":`Go to slide ${e+1}`},e))})]})});T.displayName="Carousel";exports.Carousel=T;
|
package/dist/index17.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { forwardRef as et, useRef as j, useState as k, useCallback as f, useEffe
|
|
|
3
3
|
import { CarouselCard as nt } from "./index18.mjs";
|
|
4
4
|
import { ChevronLeft as ot, ChevronRight as st } from "lucide-react";
|
|
5
5
|
import { spacing as b } from "./index83.mjs";
|
|
6
|
-
import e from "./
|
|
6
|
+
import e from "./index115.mjs";
|
|
7
7
|
const lt = parseInt(b[6], 10), ct = parseInt(b[4], 10), at = parseInt(b[6], 10), it = parseInt(b[8], 10), dt = et(
|
|
8
8
|
({
|
|
9
9
|
items: o,
|