wimui 0.37.4 → 0.38.0
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.d.ts +28 -7
- package/dist/components/ai/VoiceVisualizer/VoiceVisualizer.js +115 -60
- package/dist/components/ai/VoiceVisualizer/voice-visualizer.module.cjs +1 -1
- package/dist/components/ai/VoiceVisualizer/voice-visualizer.module.js +7 -6
- package/dist/components/data-display/DataGrid/datagrid.module.cjs +1 -1
- package/dist/components/data-display/DataGrid/datagrid.module.js +1 -1
- package/dist/llms-full.txt +13 -5
- 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,
|
|
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=typeof window<`u`?n.useLayoutEffect:n.useEffect,o=100,s=.05,c=4,l=3,u=24,d=24,f=1.2,p=40,m=(e,t)=>e.length===0?Array.from({length:t},()=>s):e.length===1||t===1?Array.from({length:t},()=>e[0]):Array.from({length:t},(n,r)=>{let i=r*(e.length-1)/(t-1),a=Math.floor(i),o=Math.min(e.length-1,a+1);return e[a]+(e[o]-e[a])*(i-a)}),h=n.default.forwardRef(({mode:e=`bars`,data:h,isActive:g=!0,disabled:_=!1,progress:v,barCount:y=`auto`,height:b=40,className:x,sentiment:S=`neutral`,style:C,ariaLabel:w,"aria-label":T,...E},D)=>{let O=g&&!h,k=w??(typeof T==`string`?T:void 0),A=(0,n.useId)(),j=e===`bars`&&y===`auto`,M=b===`fill`,[N,P]=(0,n.useState)(null),F=(0,n.useRef)(null),I=(0,n.useCallback)(e=>{F.current=e,typeof D==`function`?D(e):D&&(D.current=e)},[D]);a(()=>{let e=F.current;if(!e||!j&&!M||typeof ResizeObserver>`u`)return;let t=()=>{let t=e.getBoundingClientRect();P(e=>e&&e.w===t.width&&e.h===t.height?e:{w:t.width,h:t.height})};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[j,M]);let L=b===`fill`?N&&N.h>0?N.h:p:b,R=y===`auto`?N&&N.w>0?Math.max(1,Math.floor((N.w+l)/7)):u:y,z=h&&v!==void 0?Math.min(1,Math.max(0,v)):void 0,B=R*c+(R-1)*l,V=(0,n.useMemo)(()=>{let e=h?y===`auto`?m(h,R):h:void 0;return Array.from({length:R},(t,n)=>{let r=O?1:e?Math.min(1,Math.max(s,e[n]??s)):s,i=r*L;return{x:n*7-B/2,barH:i,norm:r,isPlayed:z===void 0||(n+.5)/R<=z}})},[h,y,R,L,O,B,z]),H=(0,n.useMemo)(()=>!h||h.length<2?null:h.map((e,t)=>{let n=t/(h.length-1)*o,r=L*(1-Math.min(1,Math.max(0,e)));return`${n.toFixed(2)},${r.toFixed(2)}`}).join(` `),[h,L]),U=(0,n.useMemo)(()=>Array.from({length:80},(e,t)=>{let n=t/79*o*2,r=L/2-L*.22*Math.sin(t/79*4*Math.PI);return`${n.toFixed(2)},${r.toFixed(2)}`}).join(` `),[L]);return(0,i.jsxs)(`svg`,{ref:I,viewBox:e===`waveform`?`0 0 ${o} ${L}`:void 0,width:`100%`,height:b===`fill`?`100%`:b,preserveAspectRatio:e===`waveform`?`none`:void 0,className:(0,r.default)(`wim-voice-visualizer`,t.default.root,t.default[e],t.default[S],g&&t.default.active,_&&t.default.disabled,x),style:{height:b===`fill`?`100%`:`${b}px`,...C},...E,role:k?`img`:void 0,"aria-label":k,"aria-hidden":!k||void 0,children:[e===`bars`&&(0,i.jsx)(`svg`,{x:`50%`,y:0,width:1,height:L,overflow:`visible`,children:V.map(({x:e,barH:n,norm:a,isPlayed:o},l)=>(0,i.jsx)(`rect`,{className:(0,r.default)(t.default.bar,O&&t.default.idle,!o&&t.default.unplayed),style:O?{"--delay":`${(-(l%d/d)*f).toFixed(3)}s`}:void 0,x:e,y:a>s?L-n:L*.45,width:c,height:a>s?n:L*.1,rx:c/2},l))}),e===`waveform`&&z!==void 0&&H&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`defs`,{children:(0,i.jsx)(`clipPath`,{id:A,children:(0,i.jsx)(`rect`,{x:0,y:0,width:z*o,height:L})})}),(0,i.jsx)(`polyline`,{className:(0,r.default)(t.default.wave,t.default.unplayed),points:H,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,i.jsx)(`polyline`,{className:t.default.wave,points:H,clipPath:`url(#${A})`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),e===`waveform`&&(z===void 0||!H)&&(0,i.jsx)(`g`,{className:(0,r.default)(t.default.waveGroup,O&&t.default.idle),style:{overflow:`hidden`},children:(0,i.jsx)(`polyline`,{className:t.default.wave,points:H??U,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`})})]})});h.displayName=`VoiceVisualizer`,exports.VoiceVisualizer=h;
|
|
@@ -6,15 +6,35 @@ export interface VoiceVisualizerProps extends React.ComponentPropsWithoutRef<"sv
|
|
|
6
6
|
/**
|
|
7
7
|
* Normalized amplitude values (0–1) per slot.
|
|
8
8
|
* When omitted, a looping idle animation plays.
|
|
9
|
-
* For bars: one value per bar
|
|
9
|
+
* For bars: one value per bar (with `barCount="auto"` the values are resampled to the bar count).
|
|
10
|
+
* For waveform: time-domain samples.
|
|
10
11
|
*/
|
|
11
12
|
data?: readonly number[];
|
|
12
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* Whether audio is live (recording or playing). When false the visualizer holds still
|
|
15
|
+
* at full strength — a finished recording is not dimmed. Use `disabled` to dim it.
|
|
16
|
+
*/
|
|
13
17
|
isActive?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Dims the visualizer to show that no audio can be captured or played
|
|
20
|
+
* (e.g. microphone permission not granted)
|
|
21
|
+
*/
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Playback position (0–1) of a recorded clip. The part before it is drawn in the
|
|
25
|
+
* sentiment color and the rest in a neutral color. Has effect only with `data`.
|
|
26
|
+
*/
|
|
27
|
+
progress?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Number of bars — bars mode only. `"auto"` fits as many bars as the width allows
|
|
30
|
+
* (bar width and gap stay fixed); a number draws that many bars as a centered cluster.
|
|
31
|
+
*/
|
|
32
|
+
barCount?: number | "auto";
|
|
33
|
+
/**
|
|
34
|
+
* Rendered height in pixels, or `"fill"` to follow the parent's height
|
|
35
|
+
* (the parent needs a definite height)
|
|
36
|
+
*/
|
|
37
|
+
height?: number | "fill";
|
|
18
38
|
/** Additional CSS class */
|
|
19
39
|
className?: string;
|
|
20
40
|
/** Sentiment context for coloring (default 'neutral') */
|
|
@@ -30,7 +50,8 @@ export interface VoiceVisualizerProps extends React.ComponentPropsWithoutRef<"sv
|
|
|
30
50
|
* In bars mode it shows animated vertical bars; in waveform mode it shows
|
|
31
51
|
* a smooth time-domain waveform. Both modes accept live amplitude data from
|
|
32
52
|
* the Web Audio API AnalyserNode, and fall back to a looping idle animation
|
|
33
|
-
* when no data is provided.
|
|
53
|
+
* when no data is provided. With `progress` it shows how far a recorded clip
|
|
54
|
+
* has been played.
|
|
34
55
|
*
|
|
35
56
|
* Composition Contract:
|
|
36
57
|
* - Managed by: App consumption
|
|
@@ -1,73 +1,128 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import e from "./voice-visualizer.module.js";
|
|
3
|
-
import t, {
|
|
4
|
-
import
|
|
5
|
-
import { jsx as
|
|
3
|
+
import t, { useCallback as n, useEffect as r, useId as i, useLayoutEffect as a, useMemo as o, useRef as s, useState as c } from "react";
|
|
4
|
+
import l from "classnames";
|
|
5
|
+
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/ai/VoiceVisualizer/VoiceVisualizer.tsx
|
|
7
|
-
var
|
|
8
|
-
let
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
var p = typeof window < "u" ? a : r, m = 100, h = .05, g = 4, _ = 3, v = 24, y = 24, b = 1.2, x = 40, S = (e, t) => e.length === 0 ? Array.from({ length: t }, () => h) : e.length === 1 || t === 1 ? Array.from({ length: t }, () => e[0]) : Array.from({ length: t }, (n, r) => {
|
|
8
|
+
let i = r * (e.length - 1) / (t - 1), a = Math.floor(i), o = Math.min(e.length - 1, a + 1);
|
|
9
|
+
return e[a] + (e[o] - e[a]) * (i - a);
|
|
10
|
+
}), C = t.forwardRef(({ mode: t = "bars", data: r, isActive: a = !0, disabled: C = !1, progress: w, barCount: T = "auto", height: E = 40, className: D, sentiment: O = "neutral", style: k, ariaLabel: A, "aria-label": j, ...M }, N) => {
|
|
11
|
+
let P = a && !r, F = A ?? (typeof j == "string" ? j : void 0), I = i(), L = t === "bars" && T === "auto", R = E === "fill", [z, B] = c(null), V = s(null), H = n((e) => {
|
|
12
|
+
V.current = e, typeof N == "function" ? N(e) : N && (N.current = e);
|
|
13
|
+
}, [N]);
|
|
14
|
+
p(() => {
|
|
15
|
+
let e = V.current;
|
|
16
|
+
if (!e || !L && !R || typeof ResizeObserver > "u") return;
|
|
17
|
+
let t = () => {
|
|
18
|
+
let t = e.getBoundingClientRect();
|
|
19
|
+
B((e) => e && e.w === t.width && e.h === t.height ? e : {
|
|
20
|
+
w: t.width,
|
|
21
|
+
h: t.height
|
|
22
|
+
});
|
|
14
23
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
t();
|
|
25
|
+
let n = new ResizeObserver(t);
|
|
26
|
+
return n.observe(e), () => n.disconnect();
|
|
27
|
+
}, [L, R]);
|
|
28
|
+
let U = E === "fill" ? z && z.h > 0 ? z.h : x : E, W = T === "auto" ? z && z.w > 0 ? Math.max(1, Math.floor((z.w + _) / 7)) : v : T, G = r && w !== void 0 ? Math.min(1, Math.max(0, w)) : void 0, K = W * g + (W - 1) * _, q = o(() => {
|
|
29
|
+
let e = r ? T === "auto" ? S(r, W) : r : void 0;
|
|
30
|
+
return Array.from({ length: W }, (t, n) => {
|
|
31
|
+
let r = P ? 1 : e ? Math.min(1, Math.max(h, e[n] ?? h)) : h, i = r * U;
|
|
32
|
+
return {
|
|
33
|
+
x: n * 7 - K / 2,
|
|
34
|
+
barH: i,
|
|
35
|
+
norm: r,
|
|
36
|
+
isPlayed: G === void 0 || (n + .5) / W <= G
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
}, [
|
|
40
|
+
r,
|
|
41
|
+
T,
|
|
42
|
+
W,
|
|
43
|
+
U,
|
|
44
|
+
P,
|
|
45
|
+
K,
|
|
46
|
+
G
|
|
47
|
+
]), J = o(() => !r || r.length < 2 ? null : r.map((e, t) => {
|
|
48
|
+
let n = t / (r.length - 1) * m, i = U * (1 - Math.min(1, Math.max(0, e)));
|
|
49
|
+
return `${n.toFixed(2)},${i.toFixed(2)}`;
|
|
50
|
+
}).join(" "), [r, U]), Y = o(() => Array.from({ length: 80 }, (e, t) => {
|
|
51
|
+
let n = t / 79 * m * 2, r = U / 2 - U * .22 * Math.sin(t / 79 * 4 * Math.PI);
|
|
23
52
|
return `${n.toFixed(2)},${r.toFixed(2)}`;
|
|
24
|
-
}).join(" "), [
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return /* @__PURE__ */ a("svg", {
|
|
29
|
-
ref: b,
|
|
30
|
-
viewBox: t === "waveform" ? `0 0 ${o} ${p}` : void 0,
|
|
53
|
+
}).join(" "), [U]);
|
|
54
|
+
return /* @__PURE__ */ f("svg", {
|
|
55
|
+
ref: H,
|
|
56
|
+
viewBox: t === "waveform" ? `0 0 ${m} ${U}` : void 0,
|
|
31
57
|
width: "100%",
|
|
32
|
-
height:
|
|
58
|
+
height: E === "fill" ? "100%" : E,
|
|
33
59
|
preserveAspectRatio: t === "waveform" ? "none" : void 0,
|
|
34
|
-
className:
|
|
60
|
+
className: l("wim-voice-visualizer", e.root, e[t], e[O], a && e.active, C && e.disabled, D),
|
|
35
61
|
style: {
|
|
36
|
-
height: `${
|
|
37
|
-
...
|
|
62
|
+
height: E === "fill" ? "100%" : `${E}px`,
|
|
63
|
+
...k
|
|
38
64
|
},
|
|
39
|
-
...
|
|
40
|
-
role:
|
|
41
|
-
"aria-label":
|
|
42
|
-
"aria-hidden": !
|
|
43
|
-
children: [
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
...M,
|
|
66
|
+
role: F ? "img" : void 0,
|
|
67
|
+
"aria-label": F,
|
|
68
|
+
"aria-hidden": !F || void 0,
|
|
69
|
+
children: [
|
|
70
|
+
t === "bars" && /* @__PURE__ */ d("svg", {
|
|
71
|
+
x: "50%",
|
|
72
|
+
y: 0,
|
|
73
|
+
width: 1,
|
|
74
|
+
height: U,
|
|
75
|
+
overflow: "visible",
|
|
76
|
+
children: q.map(({ x: t, barH: n, norm: r, isPlayed: i }, a) => /* @__PURE__ */ d("rect", {
|
|
77
|
+
className: l(e.bar, P && e.idle, !i && e.unplayed),
|
|
78
|
+
style: P ? { "--delay": `${(-(a % y / y) * b).toFixed(3)}s` } : void 0,
|
|
79
|
+
x: t,
|
|
80
|
+
y: r > h ? U - n : U * .45,
|
|
81
|
+
width: g,
|
|
82
|
+
height: r > h ? n : U * .1,
|
|
83
|
+
rx: g / 2
|
|
84
|
+
}, a))
|
|
85
|
+
}),
|
|
86
|
+
t === "waveform" && G !== void 0 && J && /* @__PURE__ */ f(u, { children: [
|
|
87
|
+
/* @__PURE__ */ d("defs", { children: /* @__PURE__ */ d("clipPath", {
|
|
88
|
+
id: I,
|
|
89
|
+
children: /* @__PURE__ */ d("rect", {
|
|
90
|
+
x: 0,
|
|
91
|
+
y: 0,
|
|
92
|
+
width: G * m,
|
|
93
|
+
height: U
|
|
94
|
+
})
|
|
95
|
+
}) }),
|
|
96
|
+
/* @__PURE__ */ d("polyline", {
|
|
97
|
+
className: l(e.wave, e.unplayed),
|
|
98
|
+
points: J,
|
|
99
|
+
fill: "none",
|
|
100
|
+
strokeLinecap: "round",
|
|
101
|
+
strokeLinejoin: "round"
|
|
102
|
+
}),
|
|
103
|
+
/* @__PURE__ */ d("polyline", {
|
|
104
|
+
className: e.wave,
|
|
105
|
+
points: J,
|
|
106
|
+
clipPath: `url(#${I})`,
|
|
107
|
+
fill: "none",
|
|
108
|
+
strokeLinecap: "round",
|
|
109
|
+
strokeLinejoin: "round"
|
|
110
|
+
})
|
|
111
|
+
] }),
|
|
112
|
+
t === "waveform" && (G === void 0 || !J) && /* @__PURE__ */ d("g", {
|
|
113
|
+
className: l(e.waveGroup, P && e.idle),
|
|
114
|
+
style: { overflow: "hidden" },
|
|
115
|
+
children: /* @__PURE__ */ d("polyline", {
|
|
116
|
+
className: e.wave,
|
|
117
|
+
points: J ?? Y,
|
|
118
|
+
fill: "none",
|
|
119
|
+
strokeLinecap: "round",
|
|
120
|
+
strokeLinejoin: "round"
|
|
121
|
+
})
|
|
67
122
|
})
|
|
68
|
-
|
|
123
|
+
]
|
|
69
124
|
});
|
|
70
125
|
});
|
|
71
|
-
|
|
126
|
+
C.displayName = "VoiceVisualizer";
|
|
72
127
|
//#endregion
|
|
73
|
-
export {
|
|
128
|
+
export { C as VoiceVisualizer };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var e=`
|
|
2
|
+
var e=`_root_1jub7_3`,t=`_active_1jub7_9`,n=`_disabled_1jub7_12`,r=`_wave_1jub7_16`,i=`_positive_1jub7_22`,a=`_caution_1jub7_25`,o=`_negative_1jub7_28`,s=`_informative_1jub7_31`,c=`_bar_1jub7_35`,l=`_idle_1jub7_41`,u=`_unplayed_1jub7_48`,d=`_waveGroup_1jub7_58`,f={root:e,active:t,disabled:n,wave:r,positive:i,caution:a,negative:o,informative:s,bar:c,idle:l,"voice-bar-idle":`_voice-bar-idle_1jub7_1`,unplayed:u,waveGroup:d,"voice-wave-scroll":`_voice-wave-scroll_1jub7_1`};exports.active=t,exports.bar=c,exports.caution=a,exports.default=f,exports.disabled=n,exports.idle=l,exports.informative=s,exports.negative=o,exports.positive=i,exports.root=e,exports.unplayed=u,exports.wave=r,exports.waveGroup=d;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
//#region src/components/ai/VoiceVisualizer/voice-visualizer.module.scss
|
|
3
|
-
var e = "
|
|
3
|
+
var e = "_root_1jub7_3", t = "_active_1jub7_9", n = "_disabled_1jub7_12", r = "_wave_1jub7_16", i = "_positive_1jub7_22", a = "_caution_1jub7_25", o = "_negative_1jub7_28", s = "_informative_1jub7_31", c = "_bar_1jub7_35", l = "_idle_1jub7_41", u = "_unplayed_1jub7_48", d = "_waveGroup_1jub7_58", f = {
|
|
4
4
|
root: e,
|
|
5
5
|
active: t,
|
|
6
|
-
|
|
6
|
+
disabled: n,
|
|
7
7
|
wave: r,
|
|
8
8
|
positive: i,
|
|
9
9
|
caution: a,
|
|
@@ -11,9 +11,10 @@ var e = "_root_1osrn_3", t = "_active_1osrn_9", n = "_muted_1osrn_12", r = "_wav
|
|
|
11
11
|
informative: s,
|
|
12
12
|
bar: c,
|
|
13
13
|
idle: l,
|
|
14
|
-
"voice-bar-idle": "_voice-bar-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
"voice-bar-idle": "_voice-bar-idle_1jub7_1",
|
|
15
|
+
unplayed: u,
|
|
16
|
+
waveGroup: d,
|
|
17
|
+
"voice-wave-scroll": "_voice-wave-scroll_1jub7_1"
|
|
17
18
|
};
|
|
18
19
|
//#endregion
|
|
19
|
-
export { t as active, c as bar, a as caution,
|
|
20
|
+
export { t as active, c as bar, a as caution, f as default, n as disabled, l as idle, s as informative, o as negative, i as positive, e as root, u as unplayed, r as wave, d as waveGroup };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var e=`
|
|
2
|
+
var e=`_root_yu9b1_4`,t=`_container_yu9b1_4`,n=`_footer_yu9b1_4`,r=`_mobileCard_yu9b1_60`,i=`_cellFixed_yu9b1_60`,a=`_mobileCardMd_yu9b1_103`,o=`_info_yu9b1_140`,s=`_pagination_yu9b1_150`,c=`_paginationContent_yu9b1_160`,l=`_loading_yu9b1_163`,u=`_loader_yu9b1_167`,d=`_table_yu9b1_185`,f=`_tableContainer_yu9b1_189`,p=`_cellFixedLeftLast_yu9b1_64`,m=`_cellFixedRightFirst_yu9b1_220`,h=`_selectionInfo_yu9b1_233`,g=`_empty_yu9b1_239`,_={root:e,container:t,footer:n,mobileCard:r,cellFixed:i,mobileCardMd:a,info:o,pagination:s,paginationContent:c,loading:l,loader:u,table:d,tableContainer:f,cellFixedLeftLast:p,cellFixedRightFirst:m,selectionInfo:h,empty:g};exports.cellFixed=i,exports.cellFixedLeftLast=p,exports.cellFixedRightFirst=m,exports.container=t,exports.default=_,exports.empty=g,exports.footer=n,exports.info=o,exports.loader=u,exports.loading=l,exports.mobileCard=r,exports.mobileCardMd=a,exports.pagination=s,exports.paginationContent=c,exports.root=e,exports.selectionInfo=h,exports.table=d,exports.tableContainer=f;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
//#region src/components/data-display/DataGrid/datagrid.module.scss
|
|
3
|
-
var e = "
|
|
3
|
+
var e = "_root_yu9b1_4", t = "_container_yu9b1_4", n = "_footer_yu9b1_4", r = "_mobileCard_yu9b1_60", i = "_cellFixed_yu9b1_60", a = "_mobileCardMd_yu9b1_103", o = "_info_yu9b1_140", s = "_pagination_yu9b1_150", c = "_paginationContent_yu9b1_160", l = "_loading_yu9b1_163", u = "_loader_yu9b1_167", d = "_table_yu9b1_185", f = "_tableContainer_yu9b1_189", p = "_cellFixedLeftLast_yu9b1_64", m = "_cellFixedRightFirst_yu9b1_220", h = "_selectionInfo_yu9b1_233", g = "_empty_yu9b1_239", _ = {
|
|
4
4
|
root: e,
|
|
5
5
|
container: t,
|
|
6
6
|
footer: n,
|
package/dist/llms-full.txt
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## What this is
|
|
6
6
|
|
|
7
|
-
**wimui** v0.
|
|
7
|
+
**wimui** v0.38.0 — 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
|
|
|
@@ -3376,10 +3376,18 @@ written in the markdown. Default `"2xl"` keeps the historical mapping
|
|
|
3376
3376
|
- `mode: "bars" | "waveform"` = "bars" — Visualization style
|
|
3377
3377
|
- `data: unknown` — Normalized amplitude values (0–1) per slot.
|
|
3378
3378
|
When omitted, a looping idle animation plays.
|
|
3379
|
-
For bars: one value per bar
|
|
3380
|
-
|
|
3381
|
-
- `
|
|
3382
|
-
|
|
3379
|
+
For bars: one value per bar (with `barCount="auto"` the values are resampled to the bar count).
|
|
3380
|
+
For waveform: time-domain samples.
|
|
3381
|
+
- `isActive: boolean` = true — Whether audio is live (recording or playing). When false the visualizer holds still
|
|
3382
|
+
at full strength — a finished recording is not dimmed. Use `disabled` to dim it.
|
|
3383
|
+
- `disabled: boolean` = false — Dims the visualizer to show that no audio can be captured or played
|
|
3384
|
+
(e.g. microphone permission not granted)
|
|
3385
|
+
- `progress: number` — Playback position (0–1) of a recorded clip. The part before it is drawn in the
|
|
3386
|
+
sentiment color and the rest in a neutral color. Has effect only with `data`.
|
|
3387
|
+
- `barCount: number | "auto"` = "auto" — Number of bars — bars mode only. `"auto"` fits as many bars as the width allows
|
|
3388
|
+
(bar width and gap stay fixed); a number draws that many bars as a centered cluster.
|
|
3389
|
+
- `height: number | "fill"` = 40 — Rendered height in pixels, or `"fill"` to follow the parent's height
|
|
3390
|
+
(the parent needs a definite height)
|
|
3383
3391
|
- `className: string` — Additional CSS class
|
|
3384
3392
|
- `sentiment: "neutral" | "positive" | "caution" | "negative" | "informative"` = "neutral" — Sentiment context for coloring (default 'neutral')
|
|
3385
3393
|
- `ariaLabel: string` — Accessible label describing the audio; when omitted the visualizer is
|
package/dist/llms.txt
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## What this is
|
|
6
6
|
|
|
7
|
-
**wimui** v0.
|
|
7
|
+
**wimui** v0.38.0 — 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
|
|