wimui 0.37.2 → 0.37.4
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/ai/VoiceVisualizer/VoiceVisualizer.cjs +1 -1
- package/dist/components/ai/VoiceVisualizer/VoiceVisualizer.js +43 -36
- package/dist/components/ai/VoiceVisualizer/voice-visualizer.module.cjs +1 -1
- package/dist/components/ai/VoiceVisualizer/voice-visualizer.module.js +10 -11
- package/dist/components/charts/GanttChart/gantt-chart.module.cjs +1 -1
- package/dist/components/charts/GanttChart/gantt-chart.module.js +1 -1
- package/dist/components/feedback/Snackbar/snackbar.module.cjs +1 -1
- package/dist/components/feedback/Snackbar/snackbar.module.js +7 -7
- package/dist/llms-full.txt +1 -1
- package/dist/llms.txt +1 -1
- package/dist/styles.css +1 -1
- package/dist/wimui.umd.css +1 -1
- package/dist/wimui.umd.js +2 -2
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("./voice-visualizer.module.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("classnames");r=e.__toESM(r,1);let i=require("react/jsx-runtime");var a=100,o=.05,s=n.default.forwardRef(({mode:e=`bars`,data:
|
|
2
|
+
const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("./voice-visualizer.module.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("classnames");r=e.__toESM(r,1);let i=require("react/jsx-runtime");var a=100,o=.05,s=4,c=3,l=n.default.forwardRef(({mode:e=`bars`,data:l,isActive:u=!0,barCount:d=24,height:f=40,className:p,sentiment:m=`neutral`,style:h,ariaLabel:g,"aria-label":_,...v},y)=>{let b=u&&!l,x=g??(typeof _==`string`?_:void 0),S=d*s+(d-1)*c,C=(0,n.useMemo)(()=>Array.from({length:d},(e,t)=>{let n=b?1:l?Math.min(1,Math.max(o,l[t]??o)):o,r=n*f;return{x:t*7-S/2,barH:r,norm:n}}),[l,d,f,b,S]),w=(0,n.useMemo)(()=>!l||l.length<2?null:l.map((e,t)=>{let n=t/(l.length-1)*a,r=f*(1-Math.min(1,Math.max(0,e)));return`${n.toFixed(2)},${r.toFixed(2)}`}).join(` `),[l,f]),T=(0,n.useMemo)(()=>Array.from({length:80},(e,t)=>{let n=t/79*a*2,r=f/2-f*.22*Math.sin(t/79*4*Math.PI);return`${n.toFixed(2)},${r.toFixed(2)}`}).join(` `),[f]);return(0,i.jsxs)(`svg`,{ref:y,viewBox:e===`waveform`?`0 0 ${a} ${f}`:void 0,width:`100%`,height:f,preserveAspectRatio:e===`waveform`?`none`:void 0,className:(0,r.default)(`wim-voice-visualizer`,t.default.root,t.default[e],t.default[m],u&&t.default.active,!u&&t.default.muted,p),style:{height:`${f}px`,...h},...v,role:x?`img`:void 0,"aria-label":x,"aria-hidden":!x||void 0,children:[e===`bars`&&(0,i.jsx)(`svg`,{x:`50%`,y:0,width:1,height:f,overflow:`visible`,children:C.map(({x:e,barH:n,norm:a},c)=>(0,i.jsx)(`rect`,{className:(0,r.default)(t.default.bar,b&&t.default.idle),style:b?{"--delay":`${(c/d*.5).toFixed(3)}s`}:void 0,x:e,y:a>o?f-n:f*.45,width:s,height:a>o?n:f*.1,rx:s/2},c))}),e===`waveform`&&(0,i.jsx)(`g`,{className:(0,r.default)(t.default.waveGroup,b&&t.default.idle),style:{overflow:`hidden`},children:(0,i.jsx)(`polyline`,{className:t.default.wave,points:w??T,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`})})]})});l.displayName=`VoiceVisualizer`,exports.VoiceVisualizer=l;
|
|
@@ -4,56 +4,63 @@ import t, { useMemo as n } from "react";
|
|
|
4
4
|
import r from "classnames";
|
|
5
5
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/ai/VoiceVisualizer/VoiceVisualizer.tsx
|
|
7
|
-
var o = 100, s = .05, c = t.forwardRef(({ mode: t = "bars", data:
|
|
8
|
-
let
|
|
9
|
-
let n =
|
|
7
|
+
var o = 100, s = .05, c = 4, l = 3, u = t.forwardRef(({ mode: t = "bars", data: u, isActive: d = !0, barCount: f = 24, height: p = 40, className: m, sentiment: h = "neutral", style: g, ariaLabel: _, "aria-label": v, ...y }, b) => {
|
|
8
|
+
let x = d && !u, S = _ ?? (typeof v == "string" ? v : void 0), C = f * c + (f - 1) * l, w = n(() => Array.from({ length: f }, (e, t) => {
|
|
9
|
+
let n = x ? 1 : u ? Math.min(1, Math.max(s, u[t] ?? s)) : s, r = n * p;
|
|
10
10
|
return {
|
|
11
|
-
x: t *
|
|
11
|
+
x: t * 7 - C / 2,
|
|
12
12
|
barH: r,
|
|
13
13
|
norm: n
|
|
14
14
|
};
|
|
15
15
|
}), [
|
|
16
|
-
c,
|
|
17
16
|
u,
|
|
18
|
-
|
|
17
|
+
f,
|
|
18
|
+
p,
|
|
19
19
|
x,
|
|
20
|
-
|
|
21
|
-
]),
|
|
22
|
-
let n = t / (
|
|
20
|
+
C
|
|
21
|
+
]), T = n(() => !u || u.length < 2 ? null : u.map((e, t) => {
|
|
22
|
+
let n = t / (u.length - 1) * o, r = p * (1 - Math.min(1, Math.max(0, e)));
|
|
23
23
|
return `${n.toFixed(2)},${r.toFixed(2)}`;
|
|
24
|
-
}).join(" "), [
|
|
25
|
-
let n = t / 79 * o * 2, r =
|
|
24
|
+
}).join(" "), [u, p]), E = n(() => Array.from({ length: 80 }, (e, t) => {
|
|
25
|
+
let n = t / 79 * o * 2, r = p / 2 - p * .22 * Math.sin(t / 79 * 4 * Math.PI);
|
|
26
26
|
return `${n.toFixed(2)},${r.toFixed(2)}`;
|
|
27
|
-
}).join(" "), [
|
|
27
|
+
}).join(" "), [p]);
|
|
28
28
|
return /* @__PURE__ */ a("svg", {
|
|
29
|
-
ref:
|
|
30
|
-
viewBox: `0 0 ${o} ${
|
|
29
|
+
ref: b,
|
|
30
|
+
viewBox: t === "waveform" ? `0 0 ${o} ${p}` : void 0,
|
|
31
31
|
width: "100%",
|
|
32
|
-
height:
|
|
33
|
-
preserveAspectRatio: "none",
|
|
34
|
-
className: r("wim-voice-visualizer", e.root, e[t], e[
|
|
32
|
+
height: p,
|
|
33
|
+
preserveAspectRatio: t === "waveform" ? "none" : void 0,
|
|
34
|
+
className: r("wim-voice-visualizer", e.root, e[t], e[h], d && e.active, !d && e.muted, m),
|
|
35
35
|
style: {
|
|
36
|
-
height: `${
|
|
37
|
-
...
|
|
36
|
+
height: `${p}px`,
|
|
37
|
+
...g
|
|
38
38
|
},
|
|
39
|
-
...
|
|
40
|
-
role:
|
|
41
|
-
"aria-label":
|
|
42
|
-
"aria-hidden": !
|
|
43
|
-
children: [t === "bars" &&
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
39
|
+
...y,
|
|
40
|
+
role: S ? "img" : void 0,
|
|
41
|
+
"aria-label": S,
|
|
42
|
+
"aria-hidden": !S || void 0,
|
|
43
|
+
children: [t === "bars" && /* @__PURE__ */ i("svg", {
|
|
44
|
+
x: "50%",
|
|
45
|
+
y: 0,
|
|
46
|
+
width: 1,
|
|
47
|
+
height: p,
|
|
48
|
+
overflow: "visible",
|
|
49
|
+
children: w.map(({ x: t, barH: n, norm: a }, o) => /* @__PURE__ */ i("rect", {
|
|
50
|
+
className: r(e.bar, x && e.idle),
|
|
51
|
+
style: x ? { "--delay": `${(o / f * .5).toFixed(3)}s` } : void 0,
|
|
52
|
+
x: t,
|
|
53
|
+
y: a > s ? p - n : p * .45,
|
|
54
|
+
width: c,
|
|
55
|
+
height: a > s ? n : p * .1,
|
|
56
|
+
rx: c / 2
|
|
57
|
+
}, o))
|
|
58
|
+
}), t === "waveform" && /* @__PURE__ */ i("g", {
|
|
59
|
+
className: r(e.waveGroup, x && e.idle),
|
|
53
60
|
style: { overflow: "hidden" },
|
|
54
61
|
children: /* @__PURE__ */ i("polyline", {
|
|
55
62
|
className: e.wave,
|
|
56
|
-
points:
|
|
63
|
+
points: T ?? E,
|
|
57
64
|
fill: "none",
|
|
58
65
|
strokeLinecap: "round",
|
|
59
66
|
strokeLinejoin: "round"
|
|
@@ -61,6 +68,6 @@ var o = 100, s = .05, c = t.forwardRef(({ mode: t = "bars", data: c, isActive: l
|
|
|
61
68
|
})]
|
|
62
69
|
});
|
|
63
70
|
});
|
|
64
|
-
|
|
71
|
+
u.displayName = "VoiceVisualizer";
|
|
65
72
|
//#endregion
|
|
66
|
-
export {
|
|
73
|
+
export { u as VoiceVisualizer };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var e=`
|
|
2
|
+
var e=`_root_1osrn_3`,t=`_active_1osrn_9`,n=`_muted_1osrn_12`,r=`_wave_1osrn_16`,i=`_positive_1osrn_22`,a=`_caution_1osrn_25`,o=`_negative_1osrn_28`,s=`_informative_1osrn_31`,c=`_bar_1osrn_35`,l=`_idle_1osrn_41`,u=`_waveGroup_1osrn_54`,d={root:e,active:t,muted:n,wave:r,positive:i,caution:a,negative:o,informative:s,bar:c,idle:l,"voice-bar-idle":`_voice-bar-idle_1osrn_1`,waveGroup:u,"voice-wave-scroll":`_voice-wave-scroll_1osrn_1`};exports.active=t,exports.bar=c,exports.caution=a,exports.default=d,exports.idle=l,exports.informative=s,exports.muted=n,exports.negative=o,exports.positive=i,exports.root=e,exports.wave=r,exports.waveGroup=u;
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
//#region src/components/ai/VoiceVisualizer/voice-visualizer.module.scss
|
|
3
|
-
var e = "
|
|
3
|
+
var e = "_root_1osrn_3", t = "_active_1osrn_9", n = "_muted_1osrn_12", r = "_wave_1osrn_16", i = "_positive_1osrn_22", a = "_caution_1osrn_25", o = "_negative_1osrn_28", s = "_informative_1osrn_31", c = "_bar_1osrn_35", l = "_idle_1osrn_41", u = "_waveGroup_1osrn_54", d = {
|
|
4
4
|
root: e,
|
|
5
5
|
active: t,
|
|
6
6
|
muted: n,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
informative: c,
|
|
7
|
+
wave: r,
|
|
8
|
+
positive: i,
|
|
9
|
+
caution: a,
|
|
10
|
+
negative: o,
|
|
11
|
+
informative: s,
|
|
12
|
+
bar: c,
|
|
14
13
|
idle: l,
|
|
15
|
-
"voice-bar-idle": "_voice-bar-
|
|
14
|
+
"voice-bar-idle": "_voice-bar-idle_1osrn_1",
|
|
16
15
|
waveGroup: u,
|
|
17
|
-
"voice-wave-scroll": "_voice-wave-
|
|
16
|
+
"voice-wave-scroll": "_voice-wave-scroll_1osrn_1"
|
|
18
17
|
};
|
|
19
18
|
//#endregion
|
|
20
|
-
export { t as active,
|
|
19
|
+
export { t as active, c as bar, a as caution, d as default, l as idle, s as informative, n as muted, o as negative, i as positive, e as root, r as wave, u as waveGroup };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var e=`
|
|
2
|
+
var e=`_root_1hh92_4`,t=`_layout_1hh92_23`,n=`_labelPanel_1hh92_28`,r=`_labelRow_1hh92_40`,i=`_labelText_1hh92_49`,a=`_timelineScroll_1hh92_55`,o=`_header_1hh92_74`,s=`_headerCell_1hh92_81`,c=`_body_1hh92_103`,l=`_row_1hh92_109`,u=`_bar_1hh92_115`,d=`_clickable_1hh92_129`,f=`_progress_1hh92_138`,p={root:e,layout:t,labelPanel:n,labelRow:r,labelText:i,timelineScroll:a,header:o,headerCell:s,body:c,row:l,bar:u,clickable:d,progress:f};exports.bar=u,exports.body=c,exports.clickable=d,exports.default=p,exports.header=o,exports.headerCell=s,exports.labelPanel=n,exports.labelRow=r,exports.labelText=i,exports.layout=t,exports.progress=f,exports.root=e,exports.row=l,exports.timelineScroll=a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
//#region src/components/charts/GanttChart/gantt-chart.module.scss
|
|
3
|
-
var e = "
|
|
3
|
+
var e = "_root_1hh92_4", t = "_layout_1hh92_23", n = "_labelPanel_1hh92_28", r = "_labelRow_1hh92_40", i = "_labelText_1hh92_49", a = "_timelineScroll_1hh92_55", o = "_header_1hh92_74", s = "_headerCell_1hh92_81", c = "_body_1hh92_103", l = "_row_1hh92_109", u = "_bar_1hh92_115", d = "_clickable_1hh92_129", f = "_progress_1hh92_138", p = {
|
|
4
4
|
root: e,
|
|
5
5
|
layout: t,
|
|
6
6
|
labelPanel: n,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var e=`
|
|
2
|
+
var e=`_wrapper_102ll_3`,t=`_root_102ll_41`,n=`_hasCloseButton_102ll_58`,r=`_visible_102ll_72`,i=`_content_102ll_76`,a=`_icon_102ll_82`,o=`_message_102ll_90`,s=`_actions_102ll_95`,c=`_actionButton_102ll_101`,l=`_closeButton_102ll_105`,u=`_success_102ll_133`,d=`_danger_102ll_138`,f=`_warning_102ll_143`,p=`_info_102ll_149`,m={wrapper:e,"top-left":`_top-left_102ll_11`,"top-center":`_top-center_102ll_16`,"top-right":`_top-right_102ll_21`,"bottom-left":`_bottom-left_102ll_26`,"bottom-center":`_bottom-center_102ll_31`,"bottom-right":`_bottom-right_102ll_36`,root:t,hasCloseButton:n,visible:r,content:i,icon:a,message:o,actions:s,actionButton:c,closeButton:l,success:u,danger:d,warning:f,info:p};exports.actionButton=c,exports.actions=s,exports.closeButton=l,exports.content=i,exports.danger=d,exports.default=m,exports.hasCloseButton=n,exports.icon=a,exports.info=p,exports.message=o,exports.root=t,exports.success=u,exports.visible=r,exports.warning=f,exports.wrapper=e;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
//#region src/components/feedback/Snackbar/snackbar.module.scss
|
|
3
|
-
var e = "
|
|
3
|
+
var e = "_wrapper_102ll_3", t = "_root_102ll_41", n = "_hasCloseButton_102ll_58", r = "_visible_102ll_72", i = "_content_102ll_76", a = "_icon_102ll_82", o = "_message_102ll_90", s = "_actions_102ll_95", c = "_actionButton_102ll_101", l = "_closeButton_102ll_105", u = "_success_102ll_133", d = "_danger_102ll_138", f = "_warning_102ll_143", p = "_info_102ll_149", m = {
|
|
4
4
|
wrapper: e,
|
|
5
|
-
"top-left": "_top-
|
|
6
|
-
"top-center": "_top-
|
|
7
|
-
"top-right": "_top-
|
|
8
|
-
"bottom-left": "_bottom-
|
|
9
|
-
"bottom-center": "_bottom-
|
|
10
|
-
"bottom-right": "_bottom-
|
|
5
|
+
"top-left": "_top-left_102ll_11",
|
|
6
|
+
"top-center": "_top-center_102ll_16",
|
|
7
|
+
"top-right": "_top-right_102ll_21",
|
|
8
|
+
"bottom-left": "_bottom-left_102ll_26",
|
|
9
|
+
"bottom-center": "_bottom-center_102ll_31",
|
|
10
|
+
"bottom-right": "_bottom-right_102ll_36",
|
|
11
11
|
root: t,
|
|
12
12
|
hasCloseButton: n,
|
|
13
13
|
visible: r,
|
package/dist/llms-full.txt
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## What this is
|
|
6
6
|
|
|
7
|
-
**wimui** v0.37.
|
|
7
|
+
**wimui** v0.37.4 — a React 19 component library: 225 documented components across 10 categories, with design tokens, dark mode, i18n (en/ja/pt-BR) and WAI-ARIA compliant a11y. Peer deps: react ^19, react-dom ^19 (plus optional peers for specific components — see package.json).
|
|
8
8
|
|
|
9
9
|
## Install & required setup
|
|
10
10
|
|
package/dist/llms.txt
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## What this is
|
|
6
6
|
|
|
7
|
-
**wimui** v0.37.
|
|
7
|
+
**wimui** v0.37.4 — a React 19 component library: 225 documented components across 10 categories, with design tokens, dark mode, i18n (en/ja/pt-BR) and WAI-ARIA compliant a11y. Peer deps: react ^19, react-dom ^19 (plus optional peers for specific components — see package.json).
|
|
8
8
|
|
|
9
9
|
## Install & required setup
|
|
10
10
|
|