@rockshin/tao-ui 0.0.10 → 0.0.11
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/component-manifest.json +764 -0
- package/dist/components/breadcrumb/breadcrumb.css +4 -0
- package/dist/components/breadcrumb/breadcrumb.js +8 -6
- package/dist/components/checkbox/checkbox.js +4 -0
- package/dist/components/date-picker/calendar/calendar-grid.js +21 -17
- package/dist/components/date-picker/calendar/calendar-header.js +8 -0
- package/dist/components/date-picker/calendar/month-grid.js +1 -1
- package/dist/components/date-picker/calendar/time-panel.js +36 -41
- package/dist/components/date-picker/date-picker.css +30 -16
- package/dist/components/date-picker/date-picker.js +240 -223
- package/dist/components/date-picker/range-picker.js +25 -2
- package/dist/components/drawer/drawer.js +2 -0
- package/dist/components/dropdown/dropdown.js +2 -1
- package/dist/components/menu/menu-render.js +6 -3
- package/dist/components/modal/confirm-dialog.js +9 -1
- package/dist/components/modal/modal.js +2 -0
- package/dist/components/pagination/pagination.js +56 -64
- package/dist/components/scroll-area/scroll-area.css +3 -0
- package/dist/components/scroll-area/scroll-area.js +6 -2
- package/dist/components/select/mobile-select.css +4 -0
- package/dist/components/select/mobile-select.js +9 -4
- package/dist/components/select/select.js +6 -0
- package/dist/components/spinner/spinner.js +2 -1
- package/dist/components/splitter/splitter.js +165 -149
- package/dist/components/switch/switch.js +2 -0
- package/dist/components/table/table.css +14 -0
- package/dist/components/table/table.js +14 -14
- package/dist/components/tabs/tabs.js +84 -87
- package/dist/components/tag/tag.js +1 -0
- package/dist/components/textarea/textarea.css +21 -3
- package/dist/docs/component-doc.d.ts +28 -0
- package/dist/docs/component-doc.js +0 -0
- package/dist/docs/component-docs.d.ts +147 -0
- package/dist/docs/component-docs.js +70 -0
- package/dist/docs/components/breadcrumb.doc.d.ts +23 -0
- package/dist/docs/components/breadcrumb.doc.js +53 -0
- package/dist/docs/components/button.doc.d.ts +29 -0
- package/dist/docs/components/button.doc.js +62 -0
- package/dist/docs/components/checkbox.doc.d.ts +23 -0
- package/dist/docs/components/checkbox.doc.js +60 -0
- package/dist/docs/components/collapsible.doc.d.ts +18 -0
- package/dist/docs/components/collapsible.doc.js +39 -0
- package/dist/docs/components/context-menu.doc.d.ts +18 -0
- package/dist/docs/components/context-menu.doc.js +40 -0
- package/dist/docs/components/date-picker.doc.d.ts +18 -0
- package/dist/docs/components/date-picker.doc.js +43 -0
- package/dist/docs/components/drawer.doc.d.ts +18 -0
- package/dist/docs/components/drawer.doc.js +42 -0
- package/dist/docs/components/dropdown.doc.d.ts +18 -0
- package/dist/docs/components/dropdown.doc.js +42 -0
- package/dist/docs/components/form-actions.doc.d.ts +17 -0
- package/dist/docs/components/form-actions.doc.js +35 -0
- package/dist/docs/components/form-field.doc.d.ts +17 -0
- package/dist/docs/components/form-field.doc.js +39 -0
- package/dist/docs/components/form-layout.doc.d.ts +16 -0
- package/dist/docs/components/form-layout.doc.js +31 -0
- package/dist/docs/components/form-section.doc.d.ts +17 -0
- package/dist/docs/components/form-section.doc.js +38 -0
- package/dist/docs/components/headless-input-number.doc.d.ts +16 -0
- package/dist/docs/components/headless-input-number.doc.js +36 -0
- package/dist/docs/components/input-number.doc.d.ts +18 -0
- package/dist/docs/components/input-number.doc.js +41 -0
- package/dist/docs/components/input.doc.d.ts +17 -0
- package/dist/docs/components/input.doc.js +38 -0
- package/dist/docs/components/modal.doc.d.ts +18 -0
- package/dist/docs/components/modal.doc.js +43 -0
- package/dist/docs/components/pagination.doc.d.ts +17 -0
- package/dist/docs/components/pagination.doc.js +37 -0
- package/dist/docs/components/radio.doc.d.ts +18 -0
- package/dist/docs/components/radio.doc.js +43 -0
- package/dist/docs/components/range-picker.doc.d.ts +17 -0
- package/dist/docs/components/range-picker.doc.js +39 -0
- package/dist/docs/components/scroll-area.doc.d.ts +17 -0
- package/dist/docs/components/scroll-area.doc.js +36 -0
- package/dist/docs/components/select.doc.d.ts +18 -0
- package/dist/docs/components/select.doc.js +43 -0
- package/dist/docs/components/spinner.doc.d.ts +18 -0
- package/dist/docs/components/spinner.doc.js +36 -0
- package/dist/docs/components/splitter.doc.d.ts +17 -0
- package/dist/docs/components/splitter.doc.js +36 -0
- package/dist/docs/components/stack.doc.d.ts +16 -0
- package/dist/docs/components/stack.doc.js +31 -0
- package/dist/docs/components/switch.doc.d.ts +17 -0
- package/dist/docs/components/switch.doc.js +35 -0
- package/dist/docs/components/table.doc.d.ts +18 -0
- package/dist/docs/components/table.doc.js +46 -0
- package/dist/docs/components/tabs.doc.d.ts +18 -0
- package/dist/docs/components/tabs.doc.js +39 -0
- package/dist/docs/components/tag.doc.d.ts +18 -0
- package/dist/docs/components/tag.doc.js +41 -0
- package/dist/docs/components/tao-provider.doc.d.ts +22 -0
- package/dist/docs/components/tao-provider.doc.js +60 -0
- package/dist/docs/components/textarea.doc.d.ts +17 -0
- package/dist/docs/components/textarea.doc.js +35 -0
- package/dist/docs/index.d.ts +2 -0
- package/dist/docs/index.js +1 -0
- package/dist/index.d.ts +35 -33
- package/dist/index.js +2 -0
- package/dist/provider/tao-provider.js +92 -49
- package/dist/theme/theme.css +46 -46
- package/dist/theme/tokens.d.ts +4 -0
- package/dist/theme/tokens.js +108 -0
- package/llms.txt +402 -45
- package/package.json +4 -1
|
@@ -30,7 +30,8 @@ function CollapseIcon(t0) {
|
|
|
30
30
|
height: "12",
|
|
31
31
|
viewBox: "0 0 12 12",
|
|
32
32
|
fill: "none",
|
|
33
|
-
"aria-hidden": true,
|
|
33
|
+
"aria-hidden": "true",
|
|
34
|
+
focusable: "false",
|
|
34
35
|
"data-tao-collapse-direction": direction,
|
|
35
36
|
children: t1
|
|
36
37
|
});
|
|
@@ -43,43 +44,46 @@ function Panel(_props) {
|
|
|
43
44
|
return null;
|
|
44
45
|
}
|
|
45
46
|
function Splitter(t0) {
|
|
46
|
-
const $ = c(
|
|
47
|
+
const $ = c(64);
|
|
47
48
|
const { orientation: t1, onResize, onResizeEnd, onResizeStart, className, classNames, styles, children } = t0;
|
|
48
49
|
const orientation = void 0 === t1 ? "horizontal" : t1;
|
|
49
50
|
const containerRef = useRef(null);
|
|
50
|
-
let
|
|
51
|
-
let panels;
|
|
51
|
+
let t2;
|
|
52
52
|
if ($[0] !== children) {
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
const nextPanels = [];
|
|
54
|
+
const nextPanelChildren = [];
|
|
55
55
|
const childArray = Array.isArray(children) ? children : [
|
|
56
56
|
children
|
|
57
57
|
];
|
|
58
|
-
for (const child of childArray)if (child && "object" == typeof child && "type" in child
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
for (const child of childArray)if (child && "object" == typeof child && "type" in child) {
|
|
59
|
+
const panelChild = child;
|
|
60
|
+
if (panelChild.type === Panel && panelChild.props) {
|
|
61
|
+
nextPanels.push(panelChild.props);
|
|
62
|
+
nextPanelChildren.push(panelChild.props.children);
|
|
63
|
+
}
|
|
61
64
|
}
|
|
65
|
+
t2 = {
|
|
66
|
+
panels: nextPanels,
|
|
67
|
+
panelChildren: nextPanelChildren
|
|
68
|
+
};
|
|
62
69
|
$[0] = children;
|
|
63
|
-
$[1] =
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
panelChildren = $[1];
|
|
67
|
-
panels = $[2];
|
|
68
|
-
}
|
|
70
|
+
$[1] = t2;
|
|
71
|
+
} else t2 = $[1];
|
|
72
|
+
const { panels, panelChildren } = t2;
|
|
69
73
|
const panelCount = panels.length;
|
|
70
74
|
const isHorizontal = "horizontal" === orientation;
|
|
71
|
-
let
|
|
72
|
-
if ($[
|
|
73
|
-
|
|
74
|
-
$[
|
|
75
|
-
} else
|
|
76
|
-
const [sizes, setSizes] = useState(
|
|
75
|
+
let t3;
|
|
76
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
77
|
+
t3 = [];
|
|
78
|
+
$[2] = t3;
|
|
79
|
+
} else t3 = $[2];
|
|
80
|
+
const [sizes, setSizes] = useState(t3);
|
|
77
81
|
const [containerSize, setContainerSize] = useState(0);
|
|
78
82
|
const initialized = useRef(false);
|
|
79
|
-
let t3;
|
|
80
83
|
let t4;
|
|
81
|
-
|
|
82
|
-
|
|
84
|
+
let t5;
|
|
85
|
+
if ($[3] !== isHorizontal) {
|
|
86
|
+
t4 = ()=>{
|
|
83
87
|
const el = containerRef.current;
|
|
84
88
|
if (!el) return;
|
|
85
89
|
const observer = new ResizeObserver((entries)=>{
|
|
@@ -91,20 +95,21 @@ function Splitter(t0) {
|
|
|
91
95
|
observer.observe(el);
|
|
92
96
|
return ()=>observer.disconnect();
|
|
93
97
|
};
|
|
94
|
-
|
|
98
|
+
t5 = [
|
|
95
99
|
isHorizontal
|
|
96
100
|
];
|
|
97
|
-
$[
|
|
98
|
-
$[
|
|
99
|
-
$[
|
|
101
|
+
$[3] = isHorizontal;
|
|
102
|
+
$[4] = t4;
|
|
103
|
+
$[5] = t5;
|
|
100
104
|
} else {
|
|
101
|
-
|
|
102
|
-
|
|
105
|
+
t4 = $[4];
|
|
106
|
+
t5 = $[5];
|
|
103
107
|
}
|
|
104
|
-
useEffect(
|
|
105
|
-
let
|
|
106
|
-
|
|
107
|
-
|
|
108
|
+
useEffect(t4, t5);
|
|
109
|
+
let t6;
|
|
110
|
+
let t7;
|
|
111
|
+
if ($[6] !== containerSize || $[7] !== panelCount || $[8] !== panels || $[9] !== sizes.length) {
|
|
112
|
+
t6 = ()=>{
|
|
108
113
|
if (containerSize <= 0 || 0 === panelCount) return;
|
|
109
114
|
if (initialized.current && sizes.length === panelCount) return;
|
|
110
115
|
const draggerSpace = (panelCount - 1) * 1;
|
|
@@ -131,26 +136,27 @@ function Splitter(t0) {
|
|
|
131
136
|
setSizes(newSizes);
|
|
132
137
|
initialized.current = true;
|
|
133
138
|
};
|
|
134
|
-
|
|
135
|
-
$[8] = panelCount;
|
|
136
|
-
$[9] = panels;
|
|
137
|
-
$[10] = sizes.length;
|
|
138
|
-
$[11] = t5;
|
|
139
|
-
} else t5 = $[11];
|
|
140
|
-
let t6;
|
|
141
|
-
if ($[12] !== containerSize || $[13] !== panelCount) {
|
|
142
|
-
t6 = [
|
|
139
|
+
t7 = [
|
|
143
140
|
containerSize,
|
|
144
|
-
panelCount
|
|
141
|
+
panelCount,
|
|
142
|
+
panels,
|
|
143
|
+
sizes.length
|
|
145
144
|
];
|
|
146
|
-
$[
|
|
147
|
-
$[
|
|
148
|
-
$[
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
145
|
+
$[6] = containerSize;
|
|
146
|
+
$[7] = panelCount;
|
|
147
|
+
$[8] = panels;
|
|
148
|
+
$[9] = sizes.length;
|
|
149
|
+
$[10] = t6;
|
|
150
|
+
$[11] = t7;
|
|
151
|
+
} else {
|
|
152
|
+
t6 = $[10];
|
|
153
|
+
t7 = $[11];
|
|
154
|
+
}
|
|
155
|
+
useEffect(t6, t7);
|
|
156
|
+
let t8;
|
|
157
|
+
let t9;
|
|
158
|
+
if ($[12] !== containerSize || $[13] !== panelCount || $[14] !== panels || $[15] !== sizes) {
|
|
159
|
+
t8 = ()=>{
|
|
154
160
|
if (!initialized.current || sizes.length !== panelCount) return;
|
|
155
161
|
const draggerSpace_0 = (panelCount - 1) * 1;
|
|
156
162
|
const available_0 = containerSize - draggerSpace_0;
|
|
@@ -167,17 +173,27 @@ function Splitter(t0) {
|
|
|
167
173
|
}
|
|
168
174
|
if (changed) setSizes(next);
|
|
169
175
|
};
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
176
|
+
t9 = [
|
|
177
|
+
containerSize,
|
|
178
|
+
panelCount,
|
|
179
|
+
panels,
|
|
180
|
+
sizes
|
|
181
|
+
];
|
|
182
|
+
$[12] = containerSize;
|
|
183
|
+
$[13] = panelCount;
|
|
184
|
+
$[14] = panels;
|
|
185
|
+
$[15] = sizes;
|
|
186
|
+
$[16] = t8;
|
|
187
|
+
$[17] = t9;
|
|
188
|
+
} else {
|
|
189
|
+
t8 = $[16];
|
|
190
|
+
t9 = $[17];
|
|
191
|
+
}
|
|
192
|
+
useEffect(t8, t9);
|
|
177
193
|
const dragging = useRef(null);
|
|
178
|
-
let
|
|
179
|
-
if ($[
|
|
180
|
-
|
|
194
|
+
let t10;
|
|
195
|
+
if ($[18] !== containerSize || $[19] !== isHorizontal || $[20] !== onResize || $[21] !== onResizeEnd || $[22] !== onResizeStart || $[23] !== panelCount || $[24] !== panels || $[25] !== sizes) {
|
|
196
|
+
t10 = (index, e)=>{
|
|
181
197
|
e.preventDefault();
|
|
182
198
|
const pos = isHorizontal ? e.clientX : e.clientY;
|
|
183
199
|
dragging.current = {
|
|
@@ -232,20 +248,20 @@ function Splitter(t0) {
|
|
|
232
248
|
document.addEventListener("pointermove", handleMove);
|
|
233
249
|
document.addEventListener("pointerup", handleUp);
|
|
234
250
|
};
|
|
235
|
-
$[
|
|
236
|
-
$[
|
|
237
|
-
$[
|
|
238
|
-
$[
|
|
239
|
-
$[
|
|
240
|
-
$[
|
|
241
|
-
$[
|
|
242
|
-
$[
|
|
243
|
-
$[
|
|
244
|
-
} else
|
|
245
|
-
const handleDragStart =
|
|
246
|
-
let
|
|
247
|
-
if ($[
|
|
248
|
-
|
|
251
|
+
$[18] = containerSize;
|
|
252
|
+
$[19] = isHorizontal;
|
|
253
|
+
$[20] = onResize;
|
|
254
|
+
$[21] = onResizeEnd;
|
|
255
|
+
$[22] = onResizeStart;
|
|
256
|
+
$[23] = panelCount;
|
|
257
|
+
$[24] = panels;
|
|
258
|
+
$[25] = sizes;
|
|
259
|
+
$[26] = t10;
|
|
260
|
+
} else t10 = $[26];
|
|
261
|
+
const handleDragStart = t10;
|
|
262
|
+
let t11;
|
|
263
|
+
if ($[27] !== containerSize || $[28] !== onResize || $[29] !== onResizeEnd || $[30] !== panelCount || $[31] !== panels) {
|
|
264
|
+
t11 = (index_0, direction)=>{
|
|
249
265
|
const draggerSpace_2 = (panelCount - 1) * 1;
|
|
250
266
|
const available_2 = containerSize - draggerSpace_2;
|
|
251
267
|
const targetIdx = "start" === direction ? index_0 : index_0 + 1;
|
|
@@ -270,17 +286,17 @@ function Splitter(t0) {
|
|
|
270
286
|
return next_1;
|
|
271
287
|
});
|
|
272
288
|
};
|
|
273
|
-
$[
|
|
274
|
-
$[
|
|
275
|
-
$[
|
|
276
|
-
$[
|
|
277
|
-
$[
|
|
278
|
-
$[
|
|
279
|
-
} else
|
|
280
|
-
const handleCollapse =
|
|
281
|
-
let
|
|
282
|
-
if ($[
|
|
283
|
-
|
|
289
|
+
$[27] = containerSize;
|
|
290
|
+
$[28] = onResize;
|
|
291
|
+
$[29] = onResizeEnd;
|
|
292
|
+
$[30] = panelCount;
|
|
293
|
+
$[31] = panels;
|
|
294
|
+
$[32] = t11;
|
|
295
|
+
} else t11 = $[32];
|
|
296
|
+
const handleCollapse = t11;
|
|
297
|
+
let t12;
|
|
298
|
+
if ($[33] !== panels) {
|
|
299
|
+
t12 = function(index_1) {
|
|
284
300
|
const leftPanel = panels[index_1];
|
|
285
301
|
const rightPanel = panels[index_1 + 1];
|
|
286
302
|
let startCollapsible = false;
|
|
@@ -298,48 +314,48 @@ function Splitter(t0) {
|
|
|
298
314
|
end: endCollapsible
|
|
299
315
|
};
|
|
300
316
|
};
|
|
301
|
-
$[
|
|
302
|
-
$[
|
|
303
|
-
} else
|
|
304
|
-
const getDraggerCollapse =
|
|
317
|
+
$[33] = panels;
|
|
318
|
+
$[34] = t12;
|
|
319
|
+
} else t12 = $[34];
|
|
320
|
+
const getDraggerCollapse = t12;
|
|
305
321
|
if (sizes.length !== panelCount) {
|
|
306
|
-
const
|
|
307
|
-
let t12;
|
|
308
|
-
if ($[37] !== className || $[38] !== t11) {
|
|
309
|
-
t12 = cx(t11, className);
|
|
310
|
-
$[37] = className;
|
|
311
|
-
$[38] = t11;
|
|
312
|
-
$[39] = t12;
|
|
313
|
-
} else t12 = $[39];
|
|
314
|
-
const t13 = styles?.root;
|
|
322
|
+
const t13 = classNames?.root;
|
|
315
323
|
let t14;
|
|
316
|
-
if ($[
|
|
317
|
-
t14 =
|
|
324
|
+
if ($[35] !== className || $[36] !== t13) {
|
|
325
|
+
t14 = cx(t13, className);
|
|
326
|
+
$[35] = className;
|
|
327
|
+
$[36] = t13;
|
|
328
|
+
$[37] = t14;
|
|
329
|
+
} else t14 = $[37];
|
|
330
|
+
const t15 = styles?.root;
|
|
331
|
+
let t16;
|
|
332
|
+
if ($[38] !== orientation || $[39] !== t14 || $[40] !== t15) {
|
|
333
|
+
t16 = /*#__PURE__*/ jsx("div", {
|
|
318
334
|
ref: containerRef,
|
|
319
335
|
"data-tao-splitter": "",
|
|
320
336
|
"data-tao-orientation": orientation,
|
|
321
|
-
className:
|
|
322
|
-
style:
|
|
337
|
+
className: t14,
|
|
338
|
+
style: t15
|
|
323
339
|
});
|
|
324
|
-
$[
|
|
325
|
-
$[
|
|
326
|
-
$[
|
|
327
|
-
$[
|
|
328
|
-
} else
|
|
329
|
-
return
|
|
340
|
+
$[38] = orientation;
|
|
341
|
+
$[39] = t14;
|
|
342
|
+
$[40] = t15;
|
|
343
|
+
$[41] = t16;
|
|
344
|
+
} else t16 = $[41];
|
|
345
|
+
return t16;
|
|
330
346
|
}
|
|
331
|
-
const
|
|
332
|
-
let t12;
|
|
333
|
-
if ($[44] !== className || $[45] !== t11) {
|
|
334
|
-
t12 = cx(t11, className);
|
|
335
|
-
$[44] = className;
|
|
336
|
-
$[45] = t11;
|
|
337
|
-
$[46] = t12;
|
|
338
|
-
} else t12 = $[46];
|
|
339
|
-
const t13 = styles?.root;
|
|
347
|
+
const t13 = classNames?.root;
|
|
340
348
|
let t14;
|
|
341
|
-
if ($[
|
|
342
|
-
t14 =
|
|
349
|
+
if ($[42] !== className || $[43] !== t13) {
|
|
350
|
+
t14 = cx(t13, className);
|
|
351
|
+
$[42] = className;
|
|
352
|
+
$[43] = t13;
|
|
353
|
+
$[44] = t14;
|
|
354
|
+
} else t14 = $[44];
|
|
355
|
+
const t15 = styles?.root;
|
|
356
|
+
let t16;
|
|
357
|
+
if ($[45] !== classNames?.dragger || $[46] !== classNames?.panel || $[47] !== getDraggerCollapse || $[48] !== handleCollapse || $[49] !== handleDragStart || $[50] !== isHorizontal || $[51] !== orientation || $[52] !== panelChildren || $[53] !== panelCount || $[54] !== panels || $[55] !== sizes || $[56] !== styles?.dragger || $[57] !== styles?.panel) {
|
|
358
|
+
t16 = panels.map((panel, i_2)=>{
|
|
343
359
|
const sizeStyle = isHorizontal ? {
|
|
344
360
|
width: sizes[i_2],
|
|
345
361
|
flexShrink: 0,
|
|
@@ -414,38 +430,38 @@ function Splitter(t0) {
|
|
|
414
430
|
]
|
|
415
431
|
}, i_2);
|
|
416
432
|
});
|
|
417
|
-
$[
|
|
418
|
-
$[
|
|
419
|
-
$[
|
|
420
|
-
$[
|
|
421
|
-
$[
|
|
422
|
-
$[
|
|
423
|
-
$[
|
|
424
|
-
$[
|
|
425
|
-
$[
|
|
426
|
-
$[
|
|
427
|
-
$[
|
|
428
|
-
$[
|
|
429
|
-
$[
|
|
430
|
-
$[
|
|
431
|
-
} else
|
|
432
|
-
let
|
|
433
|
-
if ($[
|
|
434
|
-
|
|
433
|
+
$[45] = classNames?.dragger;
|
|
434
|
+
$[46] = classNames?.panel;
|
|
435
|
+
$[47] = getDraggerCollapse;
|
|
436
|
+
$[48] = handleCollapse;
|
|
437
|
+
$[49] = handleDragStart;
|
|
438
|
+
$[50] = isHorizontal;
|
|
439
|
+
$[51] = orientation;
|
|
440
|
+
$[52] = panelChildren;
|
|
441
|
+
$[53] = panelCount;
|
|
442
|
+
$[54] = panels;
|
|
443
|
+
$[55] = sizes;
|
|
444
|
+
$[56] = styles?.dragger;
|
|
445
|
+
$[57] = styles?.panel;
|
|
446
|
+
$[58] = t16;
|
|
447
|
+
} else t16 = $[58];
|
|
448
|
+
let t17;
|
|
449
|
+
if ($[59] !== orientation || $[60] !== t14 || $[61] !== t15 || $[62] !== t16) {
|
|
450
|
+
t17 = /*#__PURE__*/ jsx("div", {
|
|
435
451
|
ref: containerRef,
|
|
436
452
|
"data-tao-splitter": "",
|
|
437
453
|
"data-tao-orientation": orientation,
|
|
438
|
-
className:
|
|
439
|
-
style:
|
|
440
|
-
children:
|
|
454
|
+
className: t14,
|
|
455
|
+
style: t15,
|
|
456
|
+
children: t16
|
|
441
457
|
});
|
|
442
|
-
$[
|
|
443
|
-
$[
|
|
444
|
-
$[
|
|
445
|
-
$[
|
|
446
|
-
$[
|
|
447
|
-
} else
|
|
448
|
-
return
|
|
458
|
+
$[59] = orientation;
|
|
459
|
+
$[60] = t14;
|
|
460
|
+
$[61] = t15;
|
|
461
|
+
$[62] = t16;
|
|
462
|
+
$[63] = t17;
|
|
463
|
+
} else t17 = $[63];
|
|
464
|
+
return t17;
|
|
449
465
|
}
|
|
450
466
|
Splitter.Panel = Panel;
|
|
451
467
|
export { Panel, Splitter };
|
|
@@ -126,6 +126,8 @@ function LoadingIcon() {
|
|
|
126
126
|
let t0;
|
|
127
127
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
128
128
|
t0 = /*#__PURE__*/ jsx("svg", {
|
|
129
|
+
"aria-hidden": "true",
|
|
130
|
+
focusable: "false",
|
|
129
131
|
"data-tao-switch-loading": "",
|
|
130
132
|
viewBox: "0 0 24 24",
|
|
131
133
|
fill: "none",
|
|
@@ -122,8 +122,13 @@
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
[data-tao-table-header-title] {
|
|
125
|
+
color: inherit;
|
|
126
|
+
font: inherit;
|
|
127
|
+
background: none;
|
|
128
|
+
border: 0;
|
|
125
129
|
align-items: center;
|
|
126
130
|
gap: 2px;
|
|
131
|
+
padding: 0;
|
|
127
132
|
display: inline-flex;
|
|
128
133
|
}
|
|
129
134
|
|
|
@@ -133,6 +138,10 @@
|
|
|
133
138
|
user-select: none;
|
|
134
139
|
}
|
|
135
140
|
|
|
141
|
+
[data-tao-table-header-title]:disabled {
|
|
142
|
+
cursor: default;
|
|
143
|
+
}
|
|
144
|
+
|
|
136
145
|
[data-tao-table-header-title][data-tao-sortable]:hover {
|
|
137
146
|
color: var(--tao-color-text);
|
|
138
147
|
}
|
|
@@ -191,13 +200,18 @@
|
|
|
191
200
|
[data-tao-table-filter-option] {
|
|
192
201
|
align-items: center;
|
|
193
202
|
gap: var(--tao-padding-xs);
|
|
203
|
+
width: 100%;
|
|
194
204
|
padding: var(--tao-padding-xxs) var(--tao-padding-xs);
|
|
195
205
|
border-radius: var(--tao-radius-sm);
|
|
196
206
|
cursor: pointer;
|
|
197
207
|
font-size: var(--tao-font-size-sm);
|
|
208
|
+
font-family: var(--tao-font-family);
|
|
209
|
+
text-align: start;
|
|
198
210
|
color: var(--tao-color-text);
|
|
199
211
|
transition: background-color var(--tao-motion-duration-fast)
|
|
200
212
|
var(--tao-motion-ease-out);
|
|
213
|
+
background: none;
|
|
214
|
+
border: 0;
|
|
201
215
|
display: flex;
|
|
202
216
|
}
|
|
203
217
|
|
|
@@ -65,7 +65,8 @@ function SortIcon(t0) {
|
|
|
65
65
|
height: "14",
|
|
66
66
|
viewBox: "0 0 14 14",
|
|
67
67
|
fill: "none",
|
|
68
|
-
"aria-hidden": true,
|
|
68
|
+
"aria-hidden": "true",
|
|
69
|
+
focusable: "false",
|
|
69
70
|
children: [
|
|
70
71
|
t3,
|
|
71
72
|
t5
|
|
@@ -100,7 +101,8 @@ function FilterIcon(t0) {
|
|
|
100
101
|
height: "14",
|
|
101
102
|
viewBox: "0 0 14 14",
|
|
102
103
|
fill: "none",
|
|
103
|
-
"aria-hidden": true,
|
|
104
|
+
"aria-hidden": "true",
|
|
105
|
+
focusable: "false",
|
|
104
106
|
children: /*#__PURE__*/ jsx("path", {
|
|
105
107
|
d: "M2 3h10L8.5 7.5V11L5.5 12V7.5L2 3Z",
|
|
106
108
|
stroke: "currentColor",
|
|
@@ -137,7 +139,8 @@ function LoadingSpinner() {
|
|
|
137
139
|
height: "24",
|
|
138
140
|
viewBox: "0 0 24 24",
|
|
139
141
|
fill: "none",
|
|
140
|
-
"aria-hidden": true,
|
|
142
|
+
"aria-hidden": "true",
|
|
143
|
+
focusable: "false",
|
|
141
144
|
children: [
|
|
142
145
|
/*#__PURE__*/ jsx("circle", {
|
|
143
146
|
cx: "12",
|
|
@@ -169,7 +172,8 @@ function CheckIcon() {
|
|
|
169
172
|
height: "12",
|
|
170
173
|
viewBox: "0 0 12 12",
|
|
171
174
|
fill: "none",
|
|
172
|
-
"aria-hidden": true,
|
|
175
|
+
"aria-hidden": "true",
|
|
176
|
+
focusable: "false",
|
|
173
177
|
children: /*#__PURE__*/ jsx("path", {
|
|
174
178
|
d: "M2.5 6L5 8.5L9.5 3.5",
|
|
175
179
|
stroke: "currentColor",
|
|
@@ -258,9 +262,11 @@ function FilterDropdown(t0) {
|
|
|
258
262
|
children: [
|
|
259
263
|
filters.map((f)=>{
|
|
260
264
|
const checked = activeValues.includes(f.value);
|
|
261
|
-
return /*#__PURE__*/ jsxs("
|
|
265
|
+
return /*#__PURE__*/ jsxs("button", {
|
|
266
|
+
type: "button",
|
|
262
267
|
"data-tao-table-filter-option": "",
|
|
263
268
|
onClick: ()=>toggle(f.value),
|
|
269
|
+
"aria-pressed": checked,
|
|
264
270
|
children: [
|
|
265
271
|
/*#__PURE__*/ jsx("span", {
|
|
266
272
|
"data-tao-table-filter-check": "",
|
|
@@ -950,20 +956,14 @@ function Table(t0) {
|
|
|
950
956
|
className: resolvedClassNames["header.content"],
|
|
951
957
|
style: resolvedStyles["header.content"],
|
|
952
958
|
children: [
|
|
953
|
-
/*#__PURE__*/ jsxs("
|
|
959
|
+
/*#__PURE__*/ jsxs("button", {
|
|
960
|
+
type: "button",
|
|
954
961
|
"data-tao-table-header-title": "",
|
|
955
962
|
"data-tao-sortable": hasSorter || void 0,
|
|
956
963
|
className: resolvedClassNames["header.title"],
|
|
957
964
|
style: resolvedStyles["header.title"],
|
|
965
|
+
disabled: !hasSorter,
|
|
958
966
|
onClick: hasSorter ? ()=>handleSort(colKey_2, col_9) : void 0,
|
|
959
|
-
role: hasSorter ? "button" : void 0,
|
|
960
|
-
tabIndex: hasSorter ? 0 : void 0,
|
|
961
|
-
onKeyDown: hasSorter ? (e_0)=>{
|
|
962
|
-
if ("Enter" === e_0.key || " " === e_0.key) {
|
|
963
|
-
e_0.preventDefault();
|
|
964
|
-
handleSort(colKey_2, col_9);
|
|
965
|
-
}
|
|
966
|
-
} : void 0,
|
|
967
967
|
children: [
|
|
968
968
|
col_9.title,
|
|
969
969
|
hasSorter && /*#__PURE__*/ jsx(SortIcon, {
|