@orion-ds/react 4.2.5 → 4.2.8
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/Alert/Alert.d.ts.map +1 -1
- package/dist/components/Alert/Alert.module.css +1 -1
- package/dist/components/Alert/Alert.stories.d.ts +2 -1
- package/dist/components/Alert/Alert.stories.d.ts.map +1 -1
- package/dist/components/Alert/Alert.types.d.ts +1 -1
- package/dist/components/Alert/Alert.types.d.ts.map +1 -1
- package/dist/components/Badge/Badge.module.css +1 -1
- package/dist/components/Badge/Badge.stories.d.ts +2 -2
- package/dist/components/Badge/Badge.stories.d.ts.map +1 -1
- package/dist/components/Badge/Badge.types.d.ts +2 -2
- package/dist/components/Badge/Badge.types.d.ts.map +1 -1
- package/dist/components/Button/Button.module.css +1 -1
- package/dist/components/Card/Card.module.css +1 -1
- package/dist/components/Card/Card.stories.d.ts +1 -1
- package/dist/components/Card/Card.stories.d.ts.map +1 -1
- package/dist/components/Card/Card.types.d.ts +1 -1
- package/dist/components/Card/Card.types.d.ts.map +1 -1
- package/dist/components/Chip/Chip.module.css +1 -1
- package/dist/components/Chip/Chip.stories.d.ts +1 -1
- package/dist/components/Chip/Chip.stories.d.ts.map +1 -1
- package/dist/components/Chip/Chip.types.d.ts +1 -1
- package/dist/components/Chip/Chip.types.d.ts.map +1 -1
- package/dist/components/Field/Field.module.css +1 -1
- package/dist/components/Field/Field.stories.d.ts +5 -0
- package/dist/components/Field/Field.stories.d.ts.map +1 -1
- package/dist/components/SearchInput/SearchInput.module.css +1 -1
- package/dist/components/Select/Select.module.css +1 -1
- package/dist/components/Textarea/Textarea.module.css +1 -1
- package/dist/index10.cjs +1 -1
- package/dist/index10.mjs +1 -1
- package/dist/index100.cjs +1 -1
- package/dist/index100.mjs +33 -24
- package/dist/index101.cjs +1 -1
- package/dist/index101.mjs +23 -43
- package/dist/index102.cjs +1 -1
- package/dist/index102.mjs +28 -30
- package/dist/index103.cjs +1 -1
- package/dist/index103.mjs +40 -28
- package/dist/index104.cjs +1 -1
- package/dist/index104.mjs +53 -16
- package/dist/index105.cjs +1 -1
- package/dist/index105.mjs +62 -64
- package/dist/index106.cjs +1 -1
- package/dist/index106.mjs +30 -52
- package/dist/index107.cjs +1 -1
- package/dist/index107.mjs +20 -42
- package/dist/index108.cjs +1 -1
- package/dist/index108.mjs +18 -30
- package/dist/index109.cjs +1 -1
- package/dist/index109.mjs +30 -24
- package/dist/index11.cjs +1 -1
- package/dist/index11.mjs +1 -1
- package/dist/index110.cjs +1 -1
- package/dist/index110.mjs +29 -27
- package/dist/index111.cjs +1 -1
- package/dist/index111.mjs +46 -18
- package/dist/index112.cjs +1 -1
- package/dist/index112.mjs +52 -14
- package/dist/index113.cjs +1 -1
- package/dist/index113.mjs +28 -50
- package/dist/index114.cjs +1 -1
- package/dist/index114.mjs +44 -53
- package/dist/index115.cjs +1 -1
- package/dist/index115.mjs +12 -62
- package/dist/index116.cjs +1 -1
- package/dist/index116.mjs +30 -33
- package/dist/index117.cjs +1 -1
- package/dist/index117.mjs +32 -30
- package/dist/index118.cjs +1 -1
- package/dist/index118.mjs +33 -18
- package/dist/index119.cjs +1 -1
- package/dist/index119.mjs +30 -56
- package/dist/index12.cjs +1 -1
- package/dist/index12.mjs +1 -1
- package/dist/index120.cjs +1 -1
- package/dist/index120.mjs +35 -38
- package/dist/index121.cjs +1 -1
- package/dist/index121.mjs +36 -20
- package/dist/index122.cjs +1 -1
- package/dist/index122.mjs +20 -40
- package/dist/index123.cjs +1 -1
- package/dist/index123.mjs +14 -76
- package/dist/index124.cjs +1 -1
- package/dist/index124.mjs +27 -52
- package/dist/index125.cjs +1 -1
- package/dist/index125.mjs +16 -28
- package/dist/index126.cjs +1 -1
- package/dist/index126.mjs +37 -66
- package/dist/index127.cjs +1 -1
- package/dist/index127.mjs +28 -30
- package/dist/index128.cjs +1 -1
- package/dist/index128.mjs +24 -32
- package/dist/index129.cjs +1 -1
- package/dist/index129.mjs +28 -45
- package/dist/index13.cjs +1 -1
- package/dist/index13.mjs +1 -1
- package/dist/index130.cjs +1 -1
- package/dist/index130.mjs +28 -42
- package/dist/index131.cjs +1 -1
- package/dist/index131.mjs +28 -28
- package/dist/index132.cjs +1 -1
- package/dist/index132.mjs +42 -30
- package/dist/index133.cjs +1 -1
- package/dist/index133.mjs +52 -24
- package/dist/index134.cjs +1 -1
- package/dist/index134.mjs +36 -12
- package/dist/index135.cjs +1 -1
- package/dist/index135.mjs +50 -234
- package/dist/index136.cjs +1 -1
- package/dist/index136.mjs +19 -34
- package/dist/index137.cjs +1 -1
- package/dist/index137.mjs +153 -42
- package/dist/index138.cjs +1 -1
- package/dist/index138.mjs +216 -168
- package/dist/index139.cjs +1 -1
- package/dist/index139.mjs +29 -186
- package/dist/index14.cjs +1 -1
- package/dist/index14.mjs +1 -1
- package/dist/index140.cjs +1 -1
- package/dist/index140.mjs +43 -29
- package/dist/index141.cjs +1 -1
- package/dist/index141.mjs +44 -90
- package/dist/index142.cjs +1 -1
- package/dist/index142.mjs +17 -53
- package/dist/index143.cjs +1 -1
- package/dist/index143.mjs +46 -66
- package/dist/index144.cjs +1 -1
- package/dist/index144.mjs +64 -124
- package/dist/index145.cjs +1 -1
- package/dist/index145.mjs +30 -108
- package/dist/index146.cjs +1 -1
- package/dist/index146.mjs +40 -111
- package/dist/index147.cjs +1 -1
- package/dist/index147.mjs +32 -122
- package/dist/index148.cjs +1 -1
- package/dist/index148.mjs +56 -214
- package/dist/index149.cjs +1 -1
- package/dist/index149.mjs +62 -22
- package/dist/index15.cjs +1 -1
- package/dist/index15.mjs +1 -1
- package/dist/index150.cjs +1 -1
- package/dist/index150.mjs +42 -36
- package/dist/index151.cjs +1 -1
- package/dist/index151.mjs +24 -12
- package/dist/index152.cjs +1 -1
- package/dist/index152.mjs +40 -28
- package/dist/index153.cjs +1 -1
- package/dist/index153.mjs +20 -46
- package/dist/index154.cjs +1 -1
- package/dist/index154.mjs +76 -38
- package/dist/index155.cjs +1 -1
- package/dist/index155.mjs +67 -36
- package/dist/index156.cjs +1 -1
- package/dist/index156.mjs +65 -18
- package/dist/index157.cjs +1 -1
- package/dist/index157.mjs +40 -62
- package/dist/index158.cjs +1 -1
- package/dist/index158.mjs +234 -18
- package/dist/index159.cjs +1 -1
- package/dist/index159.mjs +34 -68
- package/dist/index16.cjs +1 -1
- package/dist/index16.mjs +1 -1
- package/dist/index160.cjs +1 -1
- package/dist/index160.mjs +44 -21
- package/dist/index161.cjs +1 -1
- package/dist/index161.mjs +170 -106
- package/dist/index162.cjs +1 -1
- package/dist/index162.mjs +186 -34
- package/dist/index163.cjs +1 -1
- package/dist/index163.mjs +29 -29
- package/dist/index164.cjs +1 -1
- package/dist/index164.mjs +90 -18
- package/dist/index165.cjs +1 -1
- package/dist/index165.mjs +52 -36
- package/dist/index166.cjs +1 -1
- package/dist/index166.mjs +66 -28
- package/dist/index167.cjs +1 -1
- package/dist/index167.mjs +124 -46
- package/dist/index168.cjs +1 -1
- package/dist/index168.mjs +108 -22
- package/dist/index169.cjs +1 -1
- package/dist/index169.mjs +111 -40
- package/dist/index17.cjs +1 -1
- package/dist/index17.mjs +1 -1
- package/dist/index170.cjs +1 -1
- package/dist/index170.mjs +122 -20
- package/dist/index171.cjs +1 -1
- package/dist/index171.mjs +214 -42
- package/dist/index172.cjs +1 -1
- package/dist/index172.mjs +106 -64
- package/dist/index173.cjs +1 -1
- package/dist/index173.mjs +22 -55
- package/dist/index174.cjs +1 -1
- package/dist/index174.mjs +16 -24
- package/dist/index175.cjs +1 -1
- package/dist/index175.mjs +64 -44
- package/dist/index176.cjs +1 -1
- package/dist/index176.mjs +18 -28
- package/dist/index177.cjs +1 -1
- package/dist/index177.mjs +57 -33
- package/dist/index178.cjs +1 -1
- package/dist/index178.mjs +12 -32
- package/dist/index179.cjs +1 -1
- package/dist/index179.mjs +38 -46
- package/dist/index18.cjs +1 -1
- package/dist/index18.mjs +1 -1
- package/dist/index180.cjs +1 -1
- package/dist/index180.mjs +26 -57
- package/dist/index181.cjs +1 -1
- package/dist/index181.mjs +45 -27
- package/dist/index182.cjs +1 -1
- package/dist/index182.mjs +17 -17
- package/dist/index183.cjs +1 -1
- package/dist/index183.mjs +17 -17
- 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 +1 -1
- package/dist/index24.cjs +1 -1
- package/dist/index24.mjs +1 -1
- package/dist/index25.cjs +1 -1
- package/dist/index25.mjs +2 -2
- 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/index29.cjs +1 -1
- package/dist/index29.mjs +1 -1
- package/dist/index3.cjs +1 -1
- package/dist/index3.mjs +2 -2
- 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/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 +1 -1
- 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/index60.cjs +1 -1
- package/dist/index60.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 +1 -1
- package/dist/index63.cjs +1 -1
- package/dist/index63.mjs +1 -1
- 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 +1 -1
- package/dist/index73.cjs +1 -1
- package/dist/index73.mjs +1 -1
- package/dist/index74.cjs +1 -1
- package/dist/index74.mjs +2 -2
- 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 +31 -30
- package/dist/index80.cjs +1 -1
- package/dist/index80.mjs +1 -1
- package/dist/index81.cjs +1 -1
- package/dist/index81.mjs +1 -1
- 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/index97.cjs +1 -1
- package/dist/index97.mjs +24 -154
- package/dist/index98.cjs +1 -1
- package/dist/index98.mjs +46 -218
- package/dist/index99.cjs +1 -1
- package/dist/index99.mjs +55 -40
- package/dist/styles.css +9 -9
- package/package.json +1 -1
package/dist/index145.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_container_6zd5k_12",r="_disabled_6zd5k_18",_="_labelWrapper_6zd5k_26",d="_input_6zd5k_43",o="_radio_6zd5k_55",t="_dot_6zd5k_76",s="_sm_6zd5k_90",l="_md_6zd5k_100",a="_lg_6zd5k_110",n="_error_6zd5k_181",i="_label_6zd5k_26",c="_required_6zd5k_214",p="_helperText_6zd5k_220",u="_errorMessage_6zd5k_238",b={container:e,disabled:r,labelWrapper:_,input:d,radio:o,dot:t,sm:s,md:l,lg:a,error:n,label:i,required:c,helperText:p,errorMessage:u};exports.container=e;exports.default=b;exports.disabled=r;exports.dot=t;exports.error=n;exports.errorMessage=u;exports.helperText=p;exports.input=d;exports.label=i;exports.labelWrapper=_;exports.lg=a;exports.md=l;exports.radio=o;exports.required=c;exports.sm=s;
|
package/dist/index145.mjs
CHANGED
|
@@ -1,111 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
audioBlob: i,
|
|
17
|
-
error: s,
|
|
18
|
-
startRecording: h,
|
|
19
|
-
stopRecording: u,
|
|
20
|
-
cancelRecording: N,
|
|
21
|
-
reset: l,
|
|
22
|
-
isSupported: f
|
|
23
|
-
} = S({
|
|
24
|
-
maxDuration: m,
|
|
25
|
-
onRecordingComplete: d,
|
|
26
|
-
onError: (g) => console.error("Recording error:", g)
|
|
27
|
-
}), p = () => {
|
|
28
|
-
o ? u() : i ? (d?.(i), l()) : h();
|
|
29
|
-
}, B = () => {
|
|
30
|
-
N(), v?.();
|
|
31
|
-
};
|
|
32
|
-
return f ? s ? /* @__PURE__ */ c(
|
|
33
|
-
"div",
|
|
34
|
-
{
|
|
35
|
-
className: [e.voiceRecorder, a].filter(Boolean).join(" "),
|
|
36
|
-
...n,
|
|
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 e = "_container_6zd5k_12", _ = "_disabled_6zd5k_18", r = "_labelWrapper_6zd5k_26", d = "_input_6zd5k_43", o = "_radio_6zd5k_55", s = "_dot_6zd5k_76", t = "_sm_6zd5k_90", n = "_md_6zd5k_100", a = "_lg_6zd5k_110", l = "_error_6zd5k_181", c = "_label_6zd5k_26", i = "_required_6zd5k_214", k = "_helperText_6zd5k_220", z = "_errorMessage_6zd5k_238", p = {
|
|
2
|
+
container: e,
|
|
3
|
+
disabled: _,
|
|
4
|
+
labelWrapper: r,
|
|
5
|
+
input: d,
|
|
6
|
+
radio: o,
|
|
7
|
+
dot: s,
|
|
8
|
+
sm: t,
|
|
9
|
+
md: n,
|
|
10
|
+
lg: a,
|
|
11
|
+
error: l,
|
|
12
|
+
label: c,
|
|
13
|
+
required: i,
|
|
14
|
+
helperText: k,
|
|
15
|
+
errorMessage: z
|
|
107
16
|
};
|
|
108
|
-
z.displayName = "ChatVoiceRecorder";
|
|
109
17
|
export {
|
|
110
|
-
|
|
18
|
+
e as container,
|
|
19
|
+
p as default,
|
|
20
|
+
_ as disabled,
|
|
21
|
+
s as dot,
|
|
22
|
+
l as error,
|
|
23
|
+
z as errorMessage,
|
|
24
|
+
k as helperText,
|
|
25
|
+
d as input,
|
|
26
|
+
c as label,
|
|
27
|
+
r as labelWrapper,
|
|
28
|
+
a as lg,
|
|
29
|
+
n as md,
|
|
30
|
+
o as radio,
|
|
31
|
+
i as required,
|
|
32
|
+
t as sm
|
|
111
33
|
};
|
package/dist/index146.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="_list_7tqqq_5",e="_bordered_7tqqq_12",_="_divided_7tqqq_18",q="_item_7tqqq_18",c="_sm_7tqqq_37",s="_md_7tqqq_43",d="_lg_7tqqq_47",i="_interactive_7tqqq_54",n="_disabled_7tqqq_58",o="_selectable_7tqqq_72",l="_selected_7tqqq_81",r="_leading_7tqqq_96",a="_content_7tqqq_120",m="_primary_7tqqq_128",b="_secondary_7tqqq_136",g="_trailing_7tqqq_153",y="_checkmark_7tqqq_161",u="_customItem_7tqqq_174",v="_empty_7tqqq_179",p={list:t,bordered:e,divided:_,item:q,sm:c,md:s,lg:d,interactive:i,disabled:n,selectable:o,selected:l,leading:r,content:a,primary:m,secondary:b,trailing:g,checkmark:y,customItem:u,empty:v};exports.bordered=e;exports.checkmark=y;exports.content=a;exports.customItem=u;exports.default=p;exports.disabled=n;exports.divided=_;exports.empty=v;exports.interactive=i;exports.item=q;exports.leading=r;exports.lg=d;exports.list=t;exports.md=s;exports.primary=m;exports.secondary=b;exports.selectable=o;exports.selected=l;exports.sm=c;exports.trailing=g;
|
package/dist/index146.mjs
CHANGED
|
@@ -1,114 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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 t = "_list_7tqqq_5", e = "_bordered_7tqqq_12", q = "_divided_7tqqq_18", _ = "_item_7tqqq_18", c = "_sm_7tqqq_37", s = "_md_7tqqq_43", n = "_lg_7tqqq_47", d = "_interactive_7tqqq_54", i = "_disabled_7tqqq_58", o = "_selectable_7tqqq_72", a = "_selected_7tqqq_81", l = "_leading_7tqqq_96", r = "_content_7tqqq_120", m = "_primary_7tqqq_128", y = "_secondary_7tqqq_136", b = "_trailing_7tqqq_153", g = "_checkmark_7tqqq_161", p = "_customItem_7tqqq_174", k = "_empty_7tqqq_179", v = {
|
|
2
|
+
list: t,
|
|
3
|
+
bordered: e,
|
|
4
|
+
divided: q,
|
|
5
|
+
item: _,
|
|
6
|
+
sm: c,
|
|
7
|
+
md: s,
|
|
8
|
+
lg: n,
|
|
9
|
+
interactive: d,
|
|
10
|
+
disabled: i,
|
|
11
|
+
selectable: o,
|
|
12
|
+
selected: a,
|
|
13
|
+
leading: l,
|
|
14
|
+
content: r,
|
|
15
|
+
primary: m,
|
|
16
|
+
secondary: y,
|
|
17
|
+
trailing: b,
|
|
18
|
+
checkmark: g,
|
|
19
|
+
customItem: p,
|
|
20
|
+
empty: k
|
|
110
21
|
};
|
|
111
|
-
P.displayName = "ChatFileUpload";
|
|
112
22
|
export {
|
|
113
|
-
|
|
23
|
+
e as bordered,
|
|
24
|
+
g as checkmark,
|
|
25
|
+
r as content,
|
|
26
|
+
p as customItem,
|
|
27
|
+
v as default,
|
|
28
|
+
i as disabled,
|
|
29
|
+
q as divided,
|
|
30
|
+
k as empty,
|
|
31
|
+
d as interactive,
|
|
32
|
+
_ as item,
|
|
33
|
+
l as leading,
|
|
34
|
+
n as lg,
|
|
35
|
+
t as list,
|
|
36
|
+
s as md,
|
|
37
|
+
m as primary,
|
|
38
|
+
y as secondary,
|
|
39
|
+
o as selectable,
|
|
40
|
+
a as selected,
|
|
41
|
+
c as sm,
|
|
42
|
+
b as trailing
|
|
114
43
|
};
|
package/dist/index147.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_trigger_1vu5m_2",t="_triggerName_1vu5m_25",o="_chevron_1vu5m_33",r="_chevronOpen_1vu5m_39",n="_content_1vu5m_44",_="_activeWorkspace_1vu5m_52",c="_orgName_1vu5m_62",g="_orgMeta_1vu5m_67",a="_actionButtons_1vu5m_73",m="_dividerWrapper_1vu5m_79",s="_sectionLabel_1vu5m_84",i="_orgList_1vu5m_93",v="_orgItem_1vu5m_101",u="_orgItemName_1vu5m_115",p="_orgItemRole_1vu5m_120",l={trigger:e,triggerName:t,chevron:o,chevronOpen:r,content:n,activeWorkspace:_,orgName:c,orgMeta:g,actionButtons:a,dividerWrapper:m,sectionLabel:s,orgList:i,orgItem:v,orgItemName:u,orgItemRole:p};exports.actionButtons=a;exports.activeWorkspace=_;exports.chevron=o;exports.chevronOpen=r;exports.content=n;exports.default=l;exports.dividerWrapper=m;exports.orgItem=v;exports.orgItemName=u;exports.orgItemRole=p;exports.orgList=i;exports.orgMeta=g;exports.orgName=c;exports.sectionLabel=s;exports.trigger=e;exports.triggerName=t;
|
package/dist/index147.mjs
CHANGED
|
@@ -1,125 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return /* @__PURE__ */ e(P, { size: 18 });
|
|
18
|
-
}
|
|
19
|
-
}, $ = ({
|
|
20
|
-
attachment: d,
|
|
21
|
-
removable: h = !1,
|
|
22
|
-
onRemove: a,
|
|
23
|
-
onClick: n,
|
|
24
|
-
className: s,
|
|
25
|
-
...c
|
|
26
|
-
}) => {
|
|
27
|
-
const { type: p, name: i, url: l, content: v, language: b, size: f, duration: m, thumbnail: g } = d;
|
|
28
|
-
switch (p) {
|
|
29
|
-
case "image":
|
|
30
|
-
if (l)
|
|
31
|
-
return /* @__PURE__ */ o("div", { className: s, style: { position: "relative" }, ...c, children: [
|
|
32
|
-
/* @__PURE__ */ e(
|
|
33
|
-
C,
|
|
34
|
-
{
|
|
35
|
-
src: l,
|
|
36
|
-
alt: i,
|
|
37
|
-
thumbnail: g,
|
|
38
|
-
onClick: n
|
|
39
|
-
}
|
|
40
|
-
),
|
|
41
|
-
h && a && /* @__PURE__ */ e(
|
|
42
|
-
"button",
|
|
43
|
-
{
|
|
44
|
-
className: t.attachmentPreviewRemove,
|
|
45
|
-
onClick: (r) => {
|
|
46
|
-
r.stopPropagation(), a();
|
|
47
|
-
},
|
|
48
|
-
"aria-label": `Remove ${i}`,
|
|
49
|
-
style: {
|
|
50
|
-
position: "absolute",
|
|
51
|
-
top: 4,
|
|
52
|
-
right: 4,
|
|
53
|
-
background: "var(--surface-base)"
|
|
54
|
-
},
|
|
55
|
-
children: /* @__PURE__ */ e(u, { size: 14 })
|
|
56
|
-
}
|
|
57
|
-
)
|
|
58
|
-
] });
|
|
59
|
-
break;
|
|
60
|
-
case "audio":
|
|
61
|
-
if (l)
|
|
62
|
-
return /* @__PURE__ */ o("div", { className: s, style: { position: "relative" }, ...c, children: [
|
|
63
|
-
/* @__PURE__ */ e(N, { src: l, duration: m, title: i }),
|
|
64
|
-
h && a && /* @__PURE__ */ e(
|
|
65
|
-
"button",
|
|
66
|
-
{
|
|
67
|
-
className: t.attachmentPreviewRemove,
|
|
68
|
-
onClick: (r) => {
|
|
69
|
-
r.stopPropagation(), a();
|
|
70
|
-
},
|
|
71
|
-
"aria-label": `Remove ${i}`,
|
|
72
|
-
children: /* @__PURE__ */ e(u, { size: 14 })
|
|
73
|
-
}
|
|
74
|
-
)
|
|
75
|
-
] });
|
|
76
|
-
break;
|
|
77
|
-
case "code":
|
|
78
|
-
if (v)
|
|
79
|
-
return /* @__PURE__ */ e(
|
|
80
|
-
I,
|
|
81
|
-
{
|
|
82
|
-
code: v,
|
|
83
|
-
language: b,
|
|
84
|
-
className: s,
|
|
85
|
-
...c
|
|
86
|
-
}
|
|
87
|
-
);
|
|
88
|
-
break;
|
|
89
|
-
}
|
|
90
|
-
return /* @__PURE__ */ o(
|
|
91
|
-
"div",
|
|
92
|
-
{
|
|
93
|
-
className: [t.attachmentPreview, s].filter(Boolean).join(" "),
|
|
94
|
-
onClick: n,
|
|
95
|
-
role: n ? "button" : void 0,
|
|
96
|
-
tabIndex: n ? 0 : void 0,
|
|
97
|
-
...c,
|
|
98
|
-
children: [
|
|
99
|
-
/* @__PURE__ */ e("div", { className: t.attachmentPreviewIcon, children: x(p) }),
|
|
100
|
-
/* @__PURE__ */ o("div", { className: t.attachmentPreviewInfo, children: [
|
|
101
|
-
/* @__PURE__ */ e("span", { className: t.attachmentPreviewName, children: i }),
|
|
102
|
-
f && /* @__PURE__ */ o("span", { className: t.attachmentPreviewMeta, children: [
|
|
103
|
-
k(f),
|
|
104
|
-
m && ` · ${Math.floor(m / 60)}:${(m % 60).toString().padStart(2, "0")}`
|
|
105
|
-
] })
|
|
106
|
-
] }),
|
|
107
|
-
h && a && /* @__PURE__ */ e(
|
|
108
|
-
"button",
|
|
109
|
-
{
|
|
110
|
-
className: t.attachmentPreviewRemove,
|
|
111
|
-
onClick: (r) => {
|
|
112
|
-
r.stopPropagation(), a();
|
|
113
|
-
},
|
|
114
|
-
"aria-label": `Remove ${i}`,
|
|
115
|
-
children: /* @__PURE__ */ e(u, { size: 14 })
|
|
116
|
-
}
|
|
117
|
-
)
|
|
118
|
-
]
|
|
119
|
-
}
|
|
120
|
-
);
|
|
1
|
+
const e = "_trigger_1vu5m_2", t = "_triggerName_1vu5m_25", o = "_chevron_1vu5m_33", r = "_chevronOpen_1vu5m_39", _ = "_content_1vu5m_44", n = "_activeWorkspace_1vu5m_52", c = "_orgName_1vu5m_62", m = "_orgMeta_1vu5m_67", s = "_actionButtons_1vu5m_73", g = "_dividerWrapper_1vu5m_79", a = "_sectionLabel_1vu5m_84", v = "_orgList_1vu5m_93", i = "_orgItem_1vu5m_101", u = "_orgItemName_1vu5m_115", p = "_orgItemRole_1vu5m_120", I = {
|
|
2
|
+
trigger: e,
|
|
3
|
+
triggerName: t,
|
|
4
|
+
chevron: o,
|
|
5
|
+
chevronOpen: r,
|
|
6
|
+
content: _,
|
|
7
|
+
activeWorkspace: n,
|
|
8
|
+
orgName: c,
|
|
9
|
+
orgMeta: m,
|
|
10
|
+
actionButtons: s,
|
|
11
|
+
dividerWrapper: g,
|
|
12
|
+
sectionLabel: a,
|
|
13
|
+
orgList: v,
|
|
14
|
+
orgItem: i,
|
|
15
|
+
orgItemName: u,
|
|
16
|
+
orgItemRole: p
|
|
121
17
|
};
|
|
122
|
-
$.displayName = "ChatAttachment";
|
|
123
18
|
export {
|
|
124
|
-
|
|
19
|
+
s as actionButtons,
|
|
20
|
+
n as activeWorkspace,
|
|
21
|
+
o as chevron,
|
|
22
|
+
r as chevronOpen,
|
|
23
|
+
_ as content,
|
|
24
|
+
I as default,
|
|
25
|
+
g as dividerWrapper,
|
|
26
|
+
i as orgItem,
|
|
27
|
+
u as orgItemName,
|
|
28
|
+
p as orgItemRole,
|
|
29
|
+
v as orgList,
|
|
30
|
+
m as orgMeta,
|
|
31
|
+
c as orgName,
|
|
32
|
+
a as sectionLabel,
|
|
33
|
+
e as trigger,
|
|
34
|
+
t as triggerName
|
|
125
35
|
};
|
package/dist/index148.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i="_quickActions_1iws7_8",o="_fixed_1iws7_12",n="_fabTrigger_1iws7_54",t="_fabTriggerIcon_1iws7_81",c="_fabTriggerIconRotate_1iws7_88",e="_fabActions_1iws7_92",_="_open_1iws7_103",a="_fabAction_1iws7_92",s="_fabActionIcon_1iws7_136",r="_fabActionLabel_1iws7_144",b="_bar_1iws7_154",A="_barAction_1iws7_165",u="_barActionIcon_1iws7_183",f="_barActionLabel_1iws7_191",g="_menuTrigger_1iws7_208",m="_menu_1iws7_208",w="_menuSlide_1iws7_1",l="_menuAction_1iws7_250",p="_menuActionIcon_1iws7_269",I="_menuActionLabel_1iws7_278",d="_actionDisabled_1iws7_301",T="_shortcut_1iws7_311",L={quickActions:i,fixed:o,"position-bottom-right":"_position-bottom-right_1iws7_17","position-bottom-left":"_position-bottom-left_1iws7_22","position-bottom-center":"_position-bottom-center_1iws7_27","position-top-right":"_position-top-right_1iws7_33","position-top-left":"_position-top-left_1iws7_38","variant-fab":"_variant-fab_1iws7_47",fabTrigger:n,fabTriggerIcon:t,fabTriggerIconRotate:c,fabActions:e,open:_,fabAction:a,fabActionIcon:s,fabActionLabel:r,"variant-bar":"_variant-bar_1iws7_154",bar:b,barAction:A,barActionIcon:u,barActionLabel:f,"variant-menu":"_variant-menu_1iws7_201",menuTrigger:g,menu:m,menuSlide:w,menuAction:l,menuActionIcon:p,menuActionLabel:I,"action-primary":"_action-primary_1iws7_289","action-danger":"_action-danger_1iws7_293",actionDisabled:d,shortcut:T};exports.actionDisabled=d;exports.bar=b;exports.barAction=A;exports.barActionIcon=u;exports.barActionLabel=f;exports.default=L;exports.fabAction=a;exports.fabActionIcon=s;exports.fabActionLabel=r;exports.fabActions=e;exports.fabTrigger=n;exports.fabTriggerIcon=t;exports.fabTriggerIconRotate=c;exports.fixed=o;exports.menu=m;exports.menuAction=l;exports.menuActionIcon=p;exports.menuActionLabel=I;exports.menuSlide=w;exports.menuTrigger=g;exports.open=_;exports.quickActions=i;exports.shortcut=T;
|