wimui 0.37.4 → 0.39.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/components/data-display/SwipeAction/SwipeAction.cjs +1 -1
- package/dist/components/data-display/SwipeAction/SwipeAction.js +32 -40
- package/dist/components/data-display/SwipeAction/SwipeableList.cjs +1 -1
- package/dist/components/data-display/SwipeAction/SwipeableList.d.ts +6 -1
- package/dist/components/data-display/SwipeAction/SwipeableList.js +22 -5
- package/dist/data-display-core.d.ts +2 -0
- package/dist/data-display.cjs +1 -1
- package/dist/data-display.js +13 -12
- package/dist/i18n/generated/keys.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +50 -49
- package/dist/llms-full.txt +20 -6
- package/dist/llms.txt +3 -1
- package/dist/locales/en/common.json +4 -2
- package/dist/locales/ja/common.json +4 -2
- package/dist/locales/pt/common.json +4 -2
- package/dist/styles.css +1 -1
- package/dist/wimui.umd.css +1 -1
- package/dist/wimui.umd.js +5 -5
- 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,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../node_modules/@radix-ui/react-slot/dist/index.cjs"),n=require("../../media/Icon/Icon.cjs"),r=require("./swipe-action.module.cjs"),i=require("./SwipeableList.cjs");let a=require("react");a=e.__toESM(a,1);let o=require("classnames");o=e.__toESM(o,1);let s=require("react/jsx-runtime");var c=a.default.forwardRef(({as:e=`div`,leftActions:c=[],rightActions:l=[],children:u,asChild:d=!1,id:f,closeOnAction:p=!0,className:m,...h},g)=>{let _=(0,a.useId)(),v=f||_,y=i.useSwipeableList(),[b,x]=(0,a.useState)(0),[S,C]=(0,a.useState)(!1),w=(0,a.useRef)(0),T=(0,a.useRef)(0),E=(0,a.useRef)(null);(0,a.useImperativeHandle)(g,()=>({close:()=>{x(0),y?.reportClose(v)}}));let D=(0,a.useRef)(!1);(0,a.useEffect)(()=>{if(S){D.current=!0;return}if(D.current){let e=setTimeout(()=>{D.current=!1},100);return()=>clearTimeout(e)}y?.openedId&&y.openedId!==v&&x(0)},[y?.openedId,v,S]);let O=c.length*80,k=l.length*80,A=e=>{w.current=`touches`in e?e.touches[0].clientX:e.clientX,T.current=b,C(!0)},j=e=>{if(!S)return;let t=(`touches`in e?e.touches[0].clientX:e.clientX)-w.current,n=T.current+t;Math.abs(t)>5&&y?.openedId!==v&&y?.reportOpen(v),n>O&&(n=O+(n-O)*.3),n<-k&&(n=-k+(n+k)*.3),x(n)},M=()=>{S&&(C(!1),b>O/2?(x(O),y?.reportOpen(v)):b<-k/2?(x(-k),y?.reportOpen(v)):(x(0),y?.reportClose(v)))},N=d?t.Root:`div
|
|
2
|
+
const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../node_modules/@radix-ui/react-slot/dist/index.cjs"),n=require("../../media/Icon/Icon.cjs"),r=require("./swipe-action.module.cjs"),i=require("./SwipeableList.cjs");let a=require("react");a=e.__toESM(a,1);let o=require("classnames");o=e.__toESM(o,1);let s=require("react/jsx-runtime");var c=a.default.forwardRef(({as:e=`div`,leftActions:c=[],rightActions:l=[],children:u,asChild:d=!1,id:f,closeOnAction:p=!0,className:m,...h},g)=>{let _=(0,a.useId)(),v=f||_,y=i.useSwipeableList(),[b,x]=(0,a.useState)(0),[S,C]=(0,a.useState)(!1),w=(0,a.useRef)(0),T=(0,a.useRef)(0),E=(0,a.useRef)(null);(0,a.useImperativeHandle)(g,()=>({close:()=>{x(0),y?.reportClose(v)}}));let D=(0,a.useRef)(!1);(0,a.useEffect)(()=>{if(S){D.current=!0;return}if(D.current){let e=setTimeout(()=>{D.current=!1},100);return()=>clearTimeout(e)}y?.openedId&&y.openedId!==v&&x(0)},[y?.openedId,v,S]);let O=c.length*80,k=l.length*80,A=e=>{w.current=`touches`in e?e.touches[0].clientX:e.clientX,T.current=b,C(!0)},j=e=>{if(!S)return;let t=(`touches`in e?e.touches[0].clientX:e.clientX)-w.current,n=T.current+t;Math.abs(t)>5&&y?.openedId!==v&&y?.reportOpen(v),n>O&&(n=O+(n-O)*.3),n<-k&&(n=-k+(n+k)*.3),x(n)},M=()=>{S&&(C(!1),b>O/2?(x(O),y?.reportOpen(v)):b<-k/2?(x(-k),y?.reportOpen(v)):(x(0),y?.reportClose(v)))},N=d?t.Root:`div`,P=(0,a.useRef)(null),F=O>0||k>0,I=e=>{let t=e===`left`?O:-k;b!==t&&x(t),y?.reportOpen(v)},L=e=>{let t=e.relatedTarget;t&&E.current?.contains(t)||b!==0&&!S&&(x(0),y?.reportClose(v))},R=(e,t)=>{e.onClick(),p&&(x(0),y?.reportClose(v),document.activeElement===t.currentTarget&&P.current?.focus())},z=(e,t,i)=>(0,s.jsx)(`div`,{className:(0,o.default)(r.default.actions,r.default[e]),style:{width:i},children:t.map((t,i)=>(0,s.jsxs)(`button`,{className:(0,o.default)(r.default.action,t.intent&&r.default[t.intent]),style:{backgroundColor:t.color},onFocus:()=>I(e),onClick:e=>R(t,e),type:`button`,children:[(0,s.jsx)(n.Icon,{name:t.icon,size:`md`}),(0,s.jsx)(`span`,{className:r.default.label,children:t.label})]},i))});return(0,s.jsxs)(e,{ref:E,className:(0,o.default)(`wim-swipe-action`,r.default.container,m),onMouseLeave:M,onBlur:L,...h,children:[(0,s.jsx)(N,{ref:P,className:r.default.content,tabIndex:F?-1:void 0,style:{transform:`translateX(${b}px)`,transition:S?`none`:`transform 0.4s cubic-bezier(0.16, 1, 0.3, 1)`},onTouchStart:A,onTouchMove:j,onTouchEnd:M,onMouseDown:A,onMouseMove:j,onMouseUp:M,children:u}),O>0&&z(`left`,c,O),k>0&&z(`right`,l,k)]})});c.displayName=`SwipeAction`,exports.SwipeAction=c;
|
|
@@ -38,53 +38,43 @@ var p = i.forwardRef(({ as: i = "div", leftActions: p = [], rightActions: m = []
|
|
|
38
38
|
Math.abs(t) > 5 && w?.openedId !== C && w?.reportOpen(C), n > N && (n = N + (n - N) * .3), n < -P && (n = -P + (n + P) * .3), E(n);
|
|
39
39
|
}, L = () => {
|
|
40
40
|
D && (O(!1), T > N / 2 ? (E(N), w?.reportOpen(C)) : T < -P / 2 ? (E(-P), w?.reportOpen(C)) : (E(0), w?.reportClose(C)));
|
|
41
|
-
}, R = g ? e : "div"
|
|
41
|
+
}, R = g ? e : "div", z = c(null), B = N > 0 || P > 0, V = (e) => {
|
|
42
|
+
let t = e === "left" ? N : -P;
|
|
43
|
+
T !== t && E(t), w?.reportOpen(C);
|
|
44
|
+
}, H = (e) => {
|
|
45
|
+
let t = e.relatedTarget;
|
|
46
|
+
t && j.current?.contains(t) || T !== 0 && !D && (E(0), w?.reportClose(C));
|
|
47
|
+
}, U = (e, t) => {
|
|
48
|
+
e.onClick(), v && (E(0), w?.reportClose(C), document.activeElement === t.currentTarget && z.current?.focus());
|
|
49
|
+
}, W = (e, r, i) => /* @__PURE__ */ d("div", {
|
|
50
|
+
className: u(n.actions, n[e]),
|
|
51
|
+
style: { width: i },
|
|
52
|
+
children: r.map((r, i) => /* @__PURE__ */ f("button", {
|
|
53
|
+
className: u(n.action, r.intent && n[r.intent]),
|
|
54
|
+
style: { backgroundColor: r.color },
|
|
55
|
+
onFocus: () => V(e),
|
|
56
|
+
onClick: (e) => U(r, e),
|
|
57
|
+
type: "button",
|
|
58
|
+
children: [/* @__PURE__ */ d(t, {
|
|
59
|
+
name: r.icon,
|
|
60
|
+
size: "md"
|
|
61
|
+
}), /* @__PURE__ */ d("span", {
|
|
62
|
+
className: n.label,
|
|
63
|
+
children: r.label
|
|
64
|
+
})]
|
|
65
|
+
}, i))
|
|
66
|
+
});
|
|
42
67
|
return /* @__PURE__ */ f(i, {
|
|
43
68
|
ref: j,
|
|
44
69
|
className: u("wim-swipe-action", n.container, y),
|
|
45
70
|
onMouseLeave: L,
|
|
71
|
+
onBlur: H,
|
|
46
72
|
...b,
|
|
47
73
|
children: [
|
|
48
|
-
N > 0 && /* @__PURE__ */ d("div", {
|
|
49
|
-
className: u(n.actions, n.left),
|
|
50
|
-
style: { width: N },
|
|
51
|
-
children: p.map((e, r) => /* @__PURE__ */ f("button", {
|
|
52
|
-
className: u(n.action, e.intent && n[e.intent]),
|
|
53
|
-
style: { backgroundColor: e.color },
|
|
54
|
-
onClick: () => {
|
|
55
|
-
e.onClick(), v && (E(0), w?.reportClose(C));
|
|
56
|
-
},
|
|
57
|
-
type: "button",
|
|
58
|
-
children: [/* @__PURE__ */ d(t, {
|
|
59
|
-
name: e.icon,
|
|
60
|
-
size: "md"
|
|
61
|
-
}), /* @__PURE__ */ d("span", {
|
|
62
|
-
className: n.label,
|
|
63
|
-
children: e.label
|
|
64
|
-
})]
|
|
65
|
-
}, r))
|
|
66
|
-
}),
|
|
67
|
-
P > 0 && /* @__PURE__ */ d("div", {
|
|
68
|
-
className: u(n.actions, n.right),
|
|
69
|
-
style: { width: P },
|
|
70
|
-
children: m.map((e, r) => /* @__PURE__ */ f("button", {
|
|
71
|
-
className: u(n.action, e.intent && n[e.intent]),
|
|
72
|
-
style: { backgroundColor: e.color },
|
|
73
|
-
onClick: () => {
|
|
74
|
-
e.onClick(), v && (E(0), w?.reportClose(C));
|
|
75
|
-
},
|
|
76
|
-
type: "button",
|
|
77
|
-
children: [/* @__PURE__ */ d(t, {
|
|
78
|
-
name: e.icon,
|
|
79
|
-
size: "md"
|
|
80
|
-
}), /* @__PURE__ */ d("span", {
|
|
81
|
-
className: n.label,
|
|
82
|
-
children: e.label
|
|
83
|
-
})]
|
|
84
|
-
}, r))
|
|
85
|
-
}),
|
|
86
74
|
/* @__PURE__ */ d(R, {
|
|
75
|
+
ref: z,
|
|
87
76
|
className: n.content,
|
|
77
|
+
tabIndex: B ? -1 : void 0,
|
|
88
78
|
style: {
|
|
89
79
|
transform: `translateX(${T}px)`,
|
|
90
80
|
transition: D ? "none" : "transform 0.4s cubic-bezier(0.16, 1, 0.3, 1)"
|
|
@@ -96,7 +86,9 @@ var p = i.forwardRef(({ as: i = "div", leftActions: p = [], rightActions: m = []
|
|
|
96
86
|
onMouseMove: I,
|
|
97
87
|
onMouseUp: L,
|
|
98
88
|
children: h
|
|
99
|
-
})
|
|
89
|
+
}),
|
|
90
|
+
N > 0 && W("left", p, N),
|
|
91
|
+
P > 0 && W("right", m, P)
|
|
100
92
|
]
|
|
101
93
|
});
|
|
102
94
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e=require("../../../_virtual/_rolldown/runtime.cjs");let t=require("react");t=e.__toESM(t,1);let n=require("classnames");n=e.__toESM(n,1)
|
|
2
|
+
const e=require("../../../_virtual/_rolldown/runtime.cjs");let t=require("react");t=e.__toESM(t,1);let n=require("classnames");n=e.__toESM(n,1);let r=require("react/jsx-runtime");var i=(0,t.createContext)(null),a=()=>(0,t.useContext)(i),o=({children:e,exclusive:a=!0,className:o})=>{let[s,c]=(0,t.useState)(null),l=(0,t.useCallback)(e=>{a&&c(e)},[a]),u=(0,t.useCallback)(e=>{a&&c(t=>t===e?null:t)},[a]);return(0,r.jsx)(i.Provider,{value:{openedId:s,reportOpen:l,reportClose:u},children:(0,r.jsx)(`div`,{className:(0,n.default)(`wim-swipeable-list`,o),children:e})})};exports.SwipeableList=o,exports.useSwipeableList=a;
|
|
@@ -6,9 +6,14 @@ interface SwipeableListContextValue {
|
|
|
6
6
|
}
|
|
7
7
|
export declare const useSwipeableList: () => SwipeableListContextValue | null;
|
|
8
8
|
export interface SwipeableListProps {
|
|
9
|
+
/** The `SwipeAction` rows to coordinate */
|
|
9
10
|
children: React.ReactNode;
|
|
10
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* If true (default), only one row can be open at a time — opening a row, by swipe
|
|
13
|
+
* or by keyboard focus on its actions, closes the others.
|
|
14
|
+
*/
|
|
11
15
|
exclusive?: boolean;
|
|
16
|
+
/** Additional CSS class */
|
|
12
17
|
className?: string;
|
|
13
18
|
}
|
|
14
19
|
/**
|
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { createContext as e,
|
|
3
|
-
import "classnames";
|
|
4
|
-
import "react/jsx-runtime";
|
|
2
|
+
import { createContext as e, useCallback as t, useContext as n, useState as r } from "react";
|
|
3
|
+
import i from "classnames";
|
|
4
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/data-display/SwipeAction/SwipeableList.tsx
|
|
6
|
-
var
|
|
6
|
+
var o = e(null), s = () => n(o), c = ({ children: e, exclusive: n = !0, className: s }) => {
|
|
7
|
+
let [c, l] = r(null), u = t((e) => {
|
|
8
|
+
n && l(e);
|
|
9
|
+
}, [n]), d = t((e) => {
|
|
10
|
+
n && l((t) => t === e ? null : t);
|
|
11
|
+
}, [n]);
|
|
12
|
+
return /* @__PURE__ */ a(o.Provider, {
|
|
13
|
+
value: {
|
|
14
|
+
openedId: c,
|
|
15
|
+
reportOpen: u,
|
|
16
|
+
reportClose: d
|
|
17
|
+
},
|
|
18
|
+
children: /* @__PURE__ */ a("div", {
|
|
19
|
+
className: i("wim-swipeable-list", s),
|
|
20
|
+
children: e
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
};
|
|
7
24
|
//#endregion
|
|
8
|
-
export {
|
|
25
|
+
export { c as SwipeableList, s as useSwipeableList };
|
|
@@ -23,6 +23,8 @@ export * from './components/data-display/FAQSection/FAQSection';
|
|
|
23
23
|
export * from './components/data-display/InfiniteScroll/InfiniteScroll';
|
|
24
24
|
export * from './components/data-display/SortableList/SortableList';
|
|
25
25
|
export * from './components/data-display/SwipeAction/SwipeAction';
|
|
26
|
+
export { SwipeableList } from './components/data-display/SwipeAction/SwipeableList';
|
|
27
|
+
export type { SwipeableListProps } from './components/data-display/SwipeAction/SwipeableList';
|
|
26
28
|
export * from './components/data-display/PullToRefresh/PullToRefresh';
|
|
27
29
|
export * from './components/data-display/JsonViewer/JsonViewer';
|
|
28
30
|
export * from './components/data-display/CalendarHeatmap/CalendarHeatmap';
|
package/dist/data-display.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./components/data-display/Card/Card.cjs"),t=require("./components/data-display/Badge/Badge.cjs"),n=require("./components/data-display/Calendar/Calendar.cjs"),r=require("./components/data-display/Chip/Chip.cjs"),i=require("./components/data-display/VirtualList/VirtualList.cjs"),a=require("./components/data-display/TreeView/TreeView.cjs"),o=require("./components/data-display/Tag/Tag.cjs"),s=require("./components/data-display/Accordion/Accordion.cjs"),c=require("./components/data-display/Avatar/Avatar.cjs"),l=require("./components/data-display/AvatarGroup/AvatarGroup.cjs"),u=require("./components/data-display/Calendar/RangeCalendar.cjs"),d=require("./components/data-display/Carousel/Carousel.cjs"),f=require("./components/data-display/Table/useTableSort.cjs"),p=require("./components/data-display/Table/Table.cjs"),m=require("./components/data-display/DataGrid/DataGrid.cjs"),h=require("./components/data-display/DescriptionList/DescriptionList.cjs"),g=require("./components/data-display/EmptyState/EmptyState.cjs"),_=require("./components/data-display/Kanban/Kanban.cjs"),v=require("./components/data-display/List/List.cjs"),y=require("./components/data-display/Marquee/Marquee.cjs"),b=require("./components/data-display/Stats/Stats.cjs"),x=require("./components/data-display/Timeline/Timeline.cjs"),S=require("./components/data-display/FAQSection/FAQSection.cjs"),C=require("./components/data-display/InfiniteScroll/InfiniteScroll.cjs"),w=require("./components/data-display/SortableList/SortableList.cjs"),T=require("./components/data-display/SwipeAction/
|
|
2
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./components/data-display/Card/Card.cjs"),t=require("./components/data-display/Badge/Badge.cjs"),n=require("./components/data-display/Calendar/Calendar.cjs"),r=require("./components/data-display/Chip/Chip.cjs"),i=require("./components/data-display/VirtualList/VirtualList.cjs"),a=require("./components/data-display/TreeView/TreeView.cjs"),o=require("./components/data-display/Tag/Tag.cjs"),s=require("./components/data-display/Accordion/Accordion.cjs"),c=require("./components/data-display/Avatar/Avatar.cjs"),l=require("./components/data-display/AvatarGroup/AvatarGroup.cjs"),u=require("./components/data-display/Calendar/RangeCalendar.cjs"),d=require("./components/data-display/Carousel/Carousel.cjs"),f=require("./components/data-display/Table/useTableSort.cjs"),p=require("./components/data-display/Table/Table.cjs"),m=require("./components/data-display/DataGrid/DataGrid.cjs"),h=require("./components/data-display/DescriptionList/DescriptionList.cjs"),g=require("./components/data-display/EmptyState/EmptyState.cjs"),_=require("./components/data-display/Kanban/Kanban.cjs"),v=require("./components/data-display/List/List.cjs"),y=require("./components/data-display/Marquee/Marquee.cjs"),b=require("./components/data-display/Stats/Stats.cjs"),x=require("./components/data-display/Timeline/Timeline.cjs"),S=require("./components/data-display/FAQSection/FAQSection.cjs"),C=require("./components/data-display/InfiniteScroll/InfiniteScroll.cjs"),w=require("./components/data-display/SortableList/SortableList.cjs"),T=require("./components/data-display/SwipeAction/SwipeableList.cjs"),E=require("./components/data-display/SwipeAction/SwipeAction.cjs"),D=require("./components/data-display/PullToRefresh/PullToRefresh.cjs"),O=require("./components/data-display/JsonViewer/JsonViewer.cjs"),k=require("./components/data-display/CalendarHeatmap/CalendarHeatmap.cjs"),A=require("./components/data-display/Reaction/Reaction.cjs"),j=require("./components/data-display/Leaderboard/Leaderboard.cjs"),M=require("./components/data-display/RelativeTime/RelativeTime.cjs"),N=require("./components/data-display/Comment/Comment.cjs"),P=require("./components/data-display/Countdown/Countdown.cjs"),F=require("./components/data-display/Presence/Presence.cjs"),I=require("./components/data-display/Barcode/Barcode.cjs");exports.Accordion=s.Accordion,exports.AccordionContent=s.AccordionContent,exports.AccordionItem=s.AccordionItem,exports.AccordionTrigger=s.AccordionTrigger,exports.Avatar=c.Avatar,exports.AvatarGroup=l.AvatarGroup,exports.Badge=t.Badge,exports.Barcode=I.Barcode,exports.Calendar=n.Calendar,exports.CalendarHeatmap=k.CalendarHeatmap,exports.Card=e.Card,exports.CardBody=e.CardBody,exports.CardFooter=e.CardFooter,exports.CardHeader=e.CardHeader,exports.Carousel=d.Carousel,exports.Chip=r.Chip,exports.Comment=N.Comment,exports.Countdown=P.Countdown,exports.DataGrid=m.DataGrid,exports.DescriptionList=h.DescriptionList,exports.DescriptionListDetails=h.DescriptionListDetails,exports.DescriptionListItem=h.DescriptionListItem,exports.DescriptionListTerm=h.DescriptionListTerm,exports.EmptyState=g.EmptyState,exports.FAQSection=S.FAQSection,exports.InfiniteScroll=C.InfiniteScroll,exports.JsonViewer=O.JsonViewer,exports.Kanban=_.Kanban,exports.KanbanBoard=_.KanbanBoard,exports.KanbanCard=_.KanbanCard,exports.KanbanColumn=_.KanbanColumn,exports.Leaderboard=j.Leaderboard,exports.List=v.List,exports.ListItem=v.ListItem,exports.Marquee=y.Marquee,exports.Presence=F.Presence,exports.PullToRefresh=D.PullToRefresh,exports.RangeCalendar=u.RangeCalendar,exports.Reaction=A.Reaction,exports.RelativeTime=M.RelativeTime,exports.SortableList=w.SortableList,exports.SortableListDragHandle=w.SortableListDragHandle,exports.SortableListItem=w.SortableListItem,exports.Stats=b.Stats,exports.StatsDescription=b.StatsDescription,exports.StatsLabel=b.StatsLabel,exports.StatsTrend=b.StatsTrend,exports.StatsValue=b.StatsValue,exports.SwipeAction=E.SwipeAction,exports.SwipeableList=T.SwipeableList,exports.Table=p.Table,exports.TableBody=p.TableBody,exports.TableCell=p.TableCell,exports.TableFooter=p.TableFooter,exports.TableHead=p.TableHead,exports.TableHeader=p.TableHeader,exports.TableRow=p.TableRow,exports.Tag=o.Tag,exports.Timeline=x.Timeline,exports.TimelineConnector=x.TimelineConnector,exports.TimelineContent=x.TimelineContent,exports.TimelineItem=x.TimelineItem,exports.TimelineOppositeContent=x.TimelineOppositeContent,exports.TimelinePoint=x.TimelinePoint,exports.TimelineSeparator=x.TimelineSeparator,exports.TreeView=a.TreeView,exports.TreeViewItem=a.TreeViewItem,exports.VirtualList=i.VirtualList,exports.getNextSortDirection=f.getNextSortDirection,exports.useTableSort=f.useTableSort;
|
package/dist/data-display.js
CHANGED
|
@@ -24,15 +24,16 @@ import { Timeline as K, TimelineConnector as q, TimelineContent as J, TimelineIt
|
|
|
24
24
|
import { FAQSection as $ } from "./components/data-display/FAQSection/FAQSection.js";
|
|
25
25
|
import { InfiniteScroll as ee } from "./components/data-display/InfiniteScroll/InfiniteScroll.js";
|
|
26
26
|
import { SortableList as te, SortableListDragHandle as ne, SortableListItem as re } from "./components/data-display/SortableList/SortableList.js";
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
|
|
27
|
+
import { SwipeableList as ie } from "./components/data-display/SwipeAction/SwipeableList.js";
|
|
28
|
+
import { SwipeAction as ae } from "./components/data-display/SwipeAction/SwipeAction.js";
|
|
29
|
+
import { PullToRefresh as oe } from "./components/data-display/PullToRefresh/PullToRefresh.js";
|
|
30
|
+
import { JsonViewer as se } from "./components/data-display/JsonViewer/JsonViewer.js";
|
|
31
|
+
import { CalendarHeatmap as ce } from "./components/data-display/CalendarHeatmap/CalendarHeatmap.js";
|
|
32
|
+
import { Reaction as le } from "./components/data-display/Reaction/Reaction.js";
|
|
33
|
+
import { Leaderboard as ue } from "./components/data-display/Leaderboard/Leaderboard.js";
|
|
34
|
+
import { RelativeTime as de } from "./components/data-display/RelativeTime/RelativeTime.js";
|
|
35
|
+
import { Comment as fe } from "./components/data-display/Comment/Comment.js";
|
|
36
|
+
import { Countdown as pe } from "./components/data-display/Countdown/Countdown.js";
|
|
37
|
+
import { Presence as me } from "./components/data-display/Presence/Presence.js";
|
|
38
|
+
import { Barcode as he } from "./components/data-display/Barcode/Barcode.js";
|
|
39
|
+
export { d as Accordion, f as AccordionContent, p as AccordionItem, m as AccordionTrigger, h as Avatar, g as AvatarGroup, i as Badge, he as Barcode, a as Calendar, ce as CalendarHeatmap, e as Card, t as CardBody, n as CardFooter, r as CardHeader, v as Carousel, o as Chip, fe as Comment, pe as Countdown, O as DataGrid, k as DescriptionList, A as DescriptionListDetails, j as DescriptionListItem, M as DescriptionListTerm, N as EmptyState, $ as FAQSection, ee as InfiniteScroll, se as JsonViewer, P as Kanban, F as KanbanBoard, I as KanbanCard, L as KanbanColumn, ue as Leaderboard, R as List, z as ListItem, B as Marquee, me as Presence, oe as PullToRefresh, _ as RangeCalendar, le as Reaction, de as RelativeTime, te as SortableList, ne as SortableListDragHandle, re as SortableListItem, V as Stats, H as StatsDescription, U as StatsLabel, W as StatsTrend, G as StatsValue, ae as SwipeAction, ie as SwipeableList, x as Table, S as TableBody, C as TableCell, w as TableFooter, T as TableHead, E as TableHeader, D as TableRow, u as Tag, K as Timeline, q as TimelineConnector, J as TimelineContent, Y as TimelineItem, X as TimelineOppositeContent, Z as TimelinePoint, Q as TimelineSeparator, c as TreeView, l as TreeViewItem, s as VirtualList, y as getNextSortDirection, b as useTableSort };
|