neatkit 0.15.2 → 0.15.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/{Button-pinr6Woy.cjs → Button-BFzmvlPf.cjs} +1 -1
- package/dist/{Button-DdxB1ps7.js → Button-DWXBKx8l.js} +1 -1
- package/dist/Button.cjs +1 -1
- package/dist/Button.js +1 -1
- package/dist/Checkbox.cjs +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/Icon-B6hhU2zd.cjs +1 -0
- package/dist/{Icon-DK4tkZtF.js → Icon-DaTbmJhr.js} +161 -99
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +1 -1
- package/dist/Input.cjs +1 -1
- package/dist/Input.js +1 -1
- package/dist/Markdown.cjs +1 -1
- package/dist/Markdown.js +1 -1
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +1 -1
- package/dist/Select.cjs +1 -1
- package/dist/Select.js +1 -1
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +1 -1
- package/dist/Table-BZPeUQjF.cjs +1 -0
- package/dist/{Table-DdTjtnRE.js → Table-iVR2Oob_.js} +91 -89
- package/dist/Table.cjs +1 -1
- package/dist/Table.js +1 -1
- package/dist/components/Icon/icons/BinaryIcon.d.ts +11 -0
- package/dist/components/Icon/icons/TrashIcon.d.ts +11 -0
- package/dist/components/Icon/utils/registry.d.ts +2 -0
- package/dist/components/Table/Table.d.ts +6 -0
- package/dist/components/Table/index.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/Icon-CgQ62bgw.cjs +0 -1
- package/dist/Table-DBkiHOd0.cjs +0 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as a, jsxs as R } from "react/jsx-runtime";
|
|
3
3
|
import { createContext as V, forwardRef as _, Children as L, isValidElement as j, Fragment as A, createElement as Y, cloneElement as E, useRef as y, useContext as X, useState as B, useEffect as $, useCallback as q } from "react";
|
|
4
4
|
import { a as G } from "./reference-CXMr27nM.js";
|
|
5
5
|
import { S as J } from "./Surface-vEFsZC12.js";
|
|
6
|
-
import { B as Q } from "./Button-
|
|
6
|
+
import { B as Q } from "./Button-DWXBKx8l.js";
|
|
7
7
|
import { T as U } from "./Tooltip-4RWCnb2Q.js";
|
|
8
|
-
const
|
|
8
|
+
const T = V("body"), I = _(function(l, e) {
|
|
9
9
|
const {
|
|
10
10
|
align: t = "left",
|
|
11
11
|
children: i,
|
|
12
|
-
className:
|
|
12
|
+
className: o,
|
|
13
13
|
scope: c = "col",
|
|
14
14
|
sticky: f = !1,
|
|
15
15
|
...s
|
|
16
16
|
} = l;
|
|
17
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ a(
|
|
18
18
|
"th",
|
|
19
19
|
{
|
|
20
20
|
...s,
|
|
21
21
|
ref: e,
|
|
22
|
-
className: ["nk-table__header-cell",
|
|
22
|
+
className: ["nk-table__header-cell", o].filter(Boolean).join(" "),
|
|
23
23
|
"data-align": t,
|
|
24
24
|
"data-sticky": f || void 0,
|
|
25
25
|
scope: c,
|
|
@@ -44,7 +44,7 @@ function W(n) {
|
|
|
44
44
|
label: t,
|
|
45
45
|
...i
|
|
46
46
|
} = n;
|
|
47
|
-
return /* @__PURE__ */
|
|
47
|
+
return /* @__PURE__ */ a(U, { content: t, children: /* @__PURE__ */ a(
|
|
48
48
|
Q,
|
|
49
49
|
{
|
|
50
50
|
...i,
|
|
@@ -62,13 +62,13 @@ function D(n) {
|
|
|
62
62
|
function e(t) {
|
|
63
63
|
t.stopPropagation();
|
|
64
64
|
}
|
|
65
|
-
return /* @__PURE__ */
|
|
65
|
+
return /* @__PURE__ */ a(
|
|
66
66
|
"td",
|
|
67
67
|
{
|
|
68
68
|
className: "nk-table__cell nk-table__action-cell",
|
|
69
69
|
"data-align": "right",
|
|
70
70
|
onClick: e,
|
|
71
|
-
children: l.length > 0 ? /* @__PURE__ */
|
|
71
|
+
children: l.length > 0 ? /* @__PURE__ */ a("span", { className: "nk-table__action-list", children: l.map((t) => /* @__PURE__ */ Y(W, { ...t, key: t.label })) }) : null
|
|
72
72
|
}
|
|
73
73
|
);
|
|
74
74
|
}
|
|
@@ -77,34 +77,34 @@ const Z = _(
|
|
|
77
77
|
const {
|
|
78
78
|
children: t,
|
|
79
79
|
className: i,
|
|
80
|
-
emptyColumnCount:
|
|
80
|
+
emptyColumnCount: o = 1,
|
|
81
81
|
emptyMessage: c,
|
|
82
82
|
...f
|
|
83
|
-
} = l, s = !H(t), m = Number.isFinite(
|
|
84
|
-
return /* @__PURE__ */
|
|
83
|
+
} = l, s = !H(t), m = Number.isFinite(o) ? Math.max(1, Math.floor(o)) : 1;
|
|
84
|
+
return /* @__PURE__ */ a(
|
|
85
85
|
"tbody",
|
|
86
86
|
{
|
|
87
87
|
...f,
|
|
88
88
|
ref: e,
|
|
89
89
|
className: ["nk-table__body", i].filter(Boolean).join(" "),
|
|
90
90
|
children: s && c !== void 0 ? /* @__PURE__ */ R("tr", { className: "nk-table__row", children: [
|
|
91
|
-
/* @__PURE__ */
|
|
91
|
+
/* @__PURE__ */ a(
|
|
92
92
|
"td",
|
|
93
93
|
{
|
|
94
94
|
"aria-hidden": "true",
|
|
95
95
|
className: "nk-table__cell nk-table__overscroll-start-cell"
|
|
96
96
|
}
|
|
97
97
|
),
|
|
98
|
-
/* @__PURE__ */
|
|
98
|
+
/* @__PURE__ */ a(
|
|
99
99
|
"td",
|
|
100
100
|
{
|
|
101
101
|
className: "nk-table__cell nk-table__empty-cell",
|
|
102
102
|
colSpan: m,
|
|
103
|
-
children: /* @__PURE__ */
|
|
103
|
+
children: /* @__PURE__ */ a("div", { className: "nk-table__empty-content", children: c })
|
|
104
104
|
}
|
|
105
105
|
),
|
|
106
|
-
/* @__PURE__ */
|
|
107
|
-
] }) : /* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ a(D, { actions: [] })
|
|
107
|
+
] }) : /* @__PURE__ */ a(T.Provider, { value: "body", children: t })
|
|
108
108
|
}
|
|
109
109
|
);
|
|
110
110
|
}
|
|
@@ -121,23 +121,23 @@ const K = _(
|
|
|
121
121
|
const {
|
|
122
122
|
align: t = "left",
|
|
123
123
|
children: i,
|
|
124
|
-
className:
|
|
124
|
+
className: o,
|
|
125
125
|
format: c,
|
|
126
126
|
title: f,
|
|
127
127
|
truncate: s,
|
|
128
128
|
value: m,
|
|
129
|
-
...
|
|
130
|
-
} = l, { rowTrigger: r, ...d } =
|
|
129
|
+
...p
|
|
130
|
+
} = l, { rowTrigger: r, ...d } = p, h = ee(m, i, c), u = s === void 0 ? void 0 : { maxWidth: s }, k = f ?? (s === void 0 ? void 0 : te(h));
|
|
131
131
|
return /* @__PURE__ */ R(
|
|
132
132
|
"td",
|
|
133
133
|
{
|
|
134
134
|
...d,
|
|
135
135
|
ref: e,
|
|
136
|
-
className: ["nk-table__cell",
|
|
136
|
+
className: ["nk-table__cell", o].filter(Boolean).join(" "),
|
|
137
137
|
"data-align": t,
|
|
138
138
|
title: k,
|
|
139
139
|
children: [
|
|
140
|
-
(r == null ? void 0 : r.kind) === "link" && r.linkProperties ? /* @__PURE__ */
|
|
140
|
+
(r == null ? void 0 : r.kind) === "link" && r.linkProperties ? /* @__PURE__ */ a(
|
|
141
141
|
"a",
|
|
142
142
|
{
|
|
143
143
|
ref: r.reference,
|
|
@@ -151,7 +151,7 @@ const K = _(
|
|
|
151
151
|
target: r.linkProperties.target
|
|
152
152
|
}
|
|
153
153
|
) : null,
|
|
154
|
-
(r == null ? void 0 : r.kind) === "button" ? /* @__PURE__ */
|
|
154
|
+
(r == null ? void 0 : r.kind) === "button" ? /* @__PURE__ */ a(
|
|
155
155
|
"button",
|
|
156
156
|
{
|
|
157
157
|
ref: r.reference,
|
|
@@ -161,34 +161,34 @@ const K = _(
|
|
|
161
161
|
type: "button"
|
|
162
162
|
}
|
|
163
163
|
) : null,
|
|
164
|
-
s !== void 0 ? /* @__PURE__ */
|
|
164
|
+
s !== void 0 ? /* @__PURE__ */ a("span", { className: "nk-table__truncated-content", style: u, children: h }) : h
|
|
165
165
|
]
|
|
166
166
|
}
|
|
167
167
|
);
|
|
168
168
|
}
|
|
169
169
|
), ne = _(
|
|
170
170
|
function(l, e) {
|
|
171
|
-
const { children: t, className: i, ...
|
|
172
|
-
return /* @__PURE__ */
|
|
171
|
+
const { children: t, className: i, ...o } = l;
|
|
172
|
+
return /* @__PURE__ */ a(
|
|
173
173
|
"tfoot",
|
|
174
174
|
{
|
|
175
|
-
...
|
|
175
|
+
...o,
|
|
176
176
|
ref: e,
|
|
177
177
|
className: ["nk-table__foot", i].filter(Boolean).join(" "),
|
|
178
|
-
children: /* @__PURE__ */
|
|
178
|
+
children: /* @__PURE__ */ a(T.Provider, { value: "foot", children: t })
|
|
179
179
|
}
|
|
180
180
|
);
|
|
181
181
|
}
|
|
182
182
|
), le = _(
|
|
183
183
|
function(l, e) {
|
|
184
|
-
const { children: t, className: i, ...
|
|
185
|
-
return /* @__PURE__ */
|
|
184
|
+
const { children: t, className: i, ...o } = l;
|
|
185
|
+
return /* @__PURE__ */ a(
|
|
186
186
|
"thead",
|
|
187
187
|
{
|
|
188
|
-
...
|
|
188
|
+
...o,
|
|
189
189
|
ref: e,
|
|
190
190
|
className: ["nk-table__head", i].filter(Boolean).join(" "),
|
|
191
|
-
children: /* @__PURE__ */
|
|
191
|
+
children: /* @__PURE__ */ a(T.Provider, { value: "head", children: t })
|
|
192
192
|
}
|
|
193
193
|
);
|
|
194
194
|
}
|
|
@@ -204,7 +204,7 @@ const K = _(
|
|
|
204
204
|
"textarea",
|
|
205
205
|
"video[controls]",
|
|
206
206
|
"[contenteditable]:not([contenteditable='false'])"
|
|
207
|
-
].join(","),
|
|
207
|
+
].join(","), ae = /* @__PURE__ */ new Set([
|
|
208
208
|
"button",
|
|
209
209
|
"checkbox",
|
|
210
210
|
"combobox",
|
|
@@ -231,11 +231,11 @@ const K = _(
|
|
|
231
231
|
"treegrid",
|
|
232
232
|
"treeitem"
|
|
233
233
|
]);
|
|
234
|
-
function
|
|
234
|
+
function oe(n, l) {
|
|
235
235
|
var t;
|
|
236
236
|
let e = n;
|
|
237
237
|
for (; e && e !== l; ) {
|
|
238
|
-
if (e.matches(re) || (((t = e.getAttribute("role")) == null ? void 0 : t.split(/\s+/)) ?? []).some((
|
|
238
|
+
if (e.matches(re) || (((t = e.getAttribute("role")) == null ? void 0 : t.split(/\s+/)) ?? []).some((o) => ae.has(o)))
|
|
239
239
|
return !0;
|
|
240
240
|
e = e.parentElement;
|
|
241
241
|
}
|
|
@@ -243,8 +243,8 @@ function ae(n, l) {
|
|
|
243
243
|
}
|
|
244
244
|
function ie(n, l) {
|
|
245
245
|
let e = !1;
|
|
246
|
-
function t(
|
|
247
|
-
return L.map(
|
|
246
|
+
function t(o) {
|
|
247
|
+
return L.map(o, (c) => j(c) ? c.type === A ? E(
|
|
248
248
|
c,
|
|
249
249
|
void 0,
|
|
250
250
|
t(
|
|
@@ -259,15 +259,15 @@ function ie(n, l) {
|
|
|
259
259
|
return { attached: e, content: i };
|
|
260
260
|
}
|
|
261
261
|
const ce = _(function(l, e) {
|
|
262
|
-
const { children: t, className: i, ...
|
|
263
|
-
return /* @__PURE__ */
|
|
262
|
+
const { children: t, className: i, ...o } = l;
|
|
263
|
+
return /* @__PURE__ */ a(
|
|
264
264
|
I,
|
|
265
265
|
{
|
|
266
|
-
...
|
|
266
|
+
...o,
|
|
267
267
|
ref: e,
|
|
268
268
|
align: "right",
|
|
269
269
|
className: ["nk-table__action-header-cell", i].filter(Boolean).join(" "),
|
|
270
|
-
children: t ?? /* @__PURE__ */
|
|
270
|
+
children: t ?? /* @__PURE__ */ a("span", { className: "nk-table__visually-hidden", children: "Row actions" })
|
|
271
271
|
}
|
|
272
272
|
);
|
|
273
273
|
}), se = _(
|
|
@@ -275,22 +275,22 @@ const ce = _(function(l, e) {
|
|
|
275
275
|
const {
|
|
276
276
|
"aria-label": t,
|
|
277
277
|
actions: i,
|
|
278
|
-
children:
|
|
278
|
+
children: o,
|
|
279
279
|
className: c,
|
|
280
280
|
download: f,
|
|
281
281
|
href: s,
|
|
282
282
|
hrefLang: m,
|
|
283
|
-
onClick:
|
|
283
|
+
onClick: p,
|
|
284
284
|
onNavigate: r,
|
|
285
285
|
rel: d,
|
|
286
|
-
target:
|
|
286
|
+
target: h,
|
|
287
287
|
...u
|
|
288
|
-
} = l, k = y(null),
|
|
288
|
+
} = l, k = y(null), v = X(T), g = s !== void 0 || p !== void 0, S = (t == null ? void 0 : t.trim()) || (s !== void 0 ? "Open row" : "Activate row");
|
|
289
289
|
function P(b) {
|
|
290
290
|
k.current = b;
|
|
291
291
|
}
|
|
292
|
-
let
|
|
293
|
-
s !== void 0 ?
|
|
292
|
+
let C;
|
|
293
|
+
s !== void 0 ? C = {
|
|
294
294
|
ariaLabel: S,
|
|
295
295
|
kind: "link",
|
|
296
296
|
linkProperties: {
|
|
@@ -299,28 +299,28 @@ const ce = _(function(l, e) {
|
|
|
299
299
|
hrefLang: m,
|
|
300
300
|
onNavigate: r,
|
|
301
301
|
rel: d,
|
|
302
|
-
target:
|
|
302
|
+
target: h
|
|
303
303
|
},
|
|
304
304
|
reference: P
|
|
305
|
-
} :
|
|
305
|
+
} : p !== void 0 && (C = {
|
|
306
306
|
ariaLabel: S,
|
|
307
307
|
kind: "button",
|
|
308
|
-
onClick:
|
|
308
|
+
onClick: p,
|
|
309
309
|
reference: P
|
|
310
310
|
});
|
|
311
|
-
const O =
|
|
311
|
+
const O = C ? ie(o, C) : { content: o };
|
|
312
312
|
function z(b) {
|
|
313
313
|
if (b.defaultPrevented) return;
|
|
314
314
|
const w = b.target;
|
|
315
|
-
if (!(w instanceof Element) ||
|
|
316
|
-
const
|
|
317
|
-
if (!
|
|
318
|
-
const x =
|
|
315
|
+
if (!(w instanceof Element) || oe(w, b.currentTarget)) return;
|
|
316
|
+
const N = k.current;
|
|
317
|
+
if (!N) return;
|
|
318
|
+
const x = N.ownerDocument.defaultView;
|
|
319
319
|
if (!x) {
|
|
320
|
-
|
|
320
|
+
N.click();
|
|
321
321
|
return;
|
|
322
322
|
}
|
|
323
|
-
|
|
323
|
+
N.dispatchEvent(new x.MouseEvent("click", {
|
|
324
324
|
altKey: b.altKey,
|
|
325
325
|
bubbles: !0,
|
|
326
326
|
button: b.button,
|
|
@@ -333,13 +333,13 @@ const ce = _(function(l, e) {
|
|
|
333
333
|
shiftKey: b.shiftKey
|
|
334
334
|
}));
|
|
335
335
|
}
|
|
336
|
-
const F =
|
|
336
|
+
const F = v === "head" ? /* @__PURE__ */ a(ce, {}) : /* @__PURE__ */ a(D, { actions: i ?? [] }), M = v === "head" ? /* @__PURE__ */ a(
|
|
337
337
|
"th",
|
|
338
338
|
{
|
|
339
339
|
"aria-hidden": "true",
|
|
340
340
|
className: "nk-table__header-cell nk-table__overscroll-start-cell"
|
|
341
341
|
}
|
|
342
|
-
) : /* @__PURE__ */
|
|
342
|
+
) : /* @__PURE__ */ a(
|
|
343
343
|
"td",
|
|
344
344
|
{
|
|
345
345
|
"aria-hidden": "true",
|
|
@@ -351,10 +351,10 @@ const ce = _(function(l, e) {
|
|
|
351
351
|
{
|
|
352
352
|
...u,
|
|
353
353
|
ref: e,
|
|
354
|
-
"aria-label":
|
|
354
|
+
"aria-label": g ? void 0 : t,
|
|
355
355
|
className: ["nk-table__row", c].filter(Boolean).join(" "),
|
|
356
|
-
"data-interactive":
|
|
357
|
-
onClick:
|
|
356
|
+
"data-interactive": g || void 0,
|
|
357
|
+
onClick: g ? z : void 0,
|
|
358
358
|
children: [
|
|
359
359
|
M,
|
|
360
360
|
O.content,
|
|
@@ -365,25 +365,25 @@ const ce = _(function(l, e) {
|
|
|
365
365
|
}
|
|
366
366
|
);
|
|
367
367
|
function de() {
|
|
368
|
-
const n = y(null), l = y(null), [e, t] = B(!1), [i,
|
|
368
|
+
const n = y(null), l = y(null), [e, t] = B(!1), [i, o] = B(!1);
|
|
369
369
|
$(() => {
|
|
370
370
|
const f = n.current, s = l.current;
|
|
371
371
|
if (!f || !s) return;
|
|
372
|
-
const m = f,
|
|
372
|
+
const m = f, p = s;
|
|
373
373
|
function r() {
|
|
374
374
|
const k = m.scrollWidth > m.clientWidth;
|
|
375
|
-
t(k), k ||
|
|
375
|
+
t(k), k || o(!1);
|
|
376
376
|
}
|
|
377
377
|
r();
|
|
378
378
|
const d = m.ownerDocument.defaultView;
|
|
379
379
|
d == null || d.addEventListener("resize", r);
|
|
380
|
-
const
|
|
381
|
-
return u == null || u.observe(m), u == null || u.observe(
|
|
380
|
+
const h = d == null ? void 0 : d.ResizeObserver, u = h ? new h(r) : void 0;
|
|
381
|
+
return u == null || u.observe(m), u == null || u.observe(p), () => {
|
|
382
382
|
d == null || d.removeEventListener("resize", r), u == null || u.disconnect();
|
|
383
383
|
};
|
|
384
384
|
}, []);
|
|
385
385
|
function c(f) {
|
|
386
|
-
|
|
386
|
+
o(e && f.currentTarget.scrollLeft > 1);
|
|
387
387
|
}
|
|
388
388
|
return {
|
|
389
389
|
containerReference: n,
|
|
@@ -397,40 +397,42 @@ const ue = _(function(l, e) {
|
|
|
397
397
|
const {
|
|
398
398
|
"aria-label": t,
|
|
399
399
|
children: i,
|
|
400
|
-
className:
|
|
400
|
+
className: o,
|
|
401
401
|
containerClassName: c,
|
|
402
402
|
frame: f = "outline",
|
|
403
|
-
|
|
403
|
+
spacing: s = "standard",
|
|
404
|
+
...m
|
|
404
405
|
} = l, {
|
|
405
|
-
containerReference:
|
|
406
|
-
contentReference:
|
|
407
|
-
isScrollable:
|
|
408
|
-
isScrolled:
|
|
409
|
-
handleScroll:
|
|
410
|
-
} = de(),
|
|
406
|
+
containerReference: p,
|
|
407
|
+
contentReference: r,
|
|
408
|
+
isScrollable: d,
|
|
409
|
+
isScrolled: h,
|
|
410
|
+
handleScroll: u
|
|
411
|
+
} = de(), k = t ? `${t} scroll area` : "Scrollable table", v = q(
|
|
411
412
|
(g) => {
|
|
412
|
-
|
|
413
|
+
r.current = g, G(e, g);
|
|
413
414
|
},
|
|
414
|
-
[
|
|
415
|
+
[r, e]
|
|
415
416
|
);
|
|
416
|
-
return /* @__PURE__ */
|
|
417
|
+
return /* @__PURE__ */ a(
|
|
417
418
|
J,
|
|
418
419
|
{
|
|
419
|
-
ref:
|
|
420
|
-
"aria-label":
|
|
420
|
+
ref: p,
|
|
421
|
+
"aria-label": d ? k : void 0,
|
|
421
422
|
className: ["nk-table", c].filter(Boolean).join(" "),
|
|
422
423
|
"data-frame": f,
|
|
423
|
-
"data-scrolled":
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
424
|
+
"data-scrolled": h || void 0,
|
|
425
|
+
"data-spacing": s,
|
|
426
|
+
onScroll: u,
|
|
427
|
+
role: d ? "region" : void 0,
|
|
428
|
+
tabIndex: d ? 0 : void 0,
|
|
429
|
+
children: /* @__PURE__ */ a(
|
|
428
430
|
"table",
|
|
429
431
|
{
|
|
430
|
-
...
|
|
431
|
-
ref:
|
|
432
|
+
...m,
|
|
433
|
+
ref: v,
|
|
432
434
|
"aria-label": t,
|
|
433
|
-
className: ["nk-table__element",
|
|
435
|
+
className: ["nk-table__element", o].filter(Boolean).join(" "),
|
|
434
436
|
children: i
|
|
435
437
|
}
|
|
436
438
|
)
|
package/dist/Table.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Table-
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Table-BZPeUQjF.cjs");exports.default=e.Table;
|
package/dist/Table.js
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IconGraphicProps } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Renders a binary icon.
|
|
4
|
+
*
|
|
5
|
+
* @param props - The SVG properties applied to the icon.
|
|
6
|
+
* @param forwardedReference - The reference assigned to the rendered SVG.
|
|
7
|
+
*
|
|
8
|
+
* @returns The rendered icon SVG.
|
|
9
|
+
*/
|
|
10
|
+
declare const _default: import("react").ForwardRefExoticComponent<Omit<IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IconGraphicProps } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Renders a trash icon.
|
|
4
|
+
*
|
|
5
|
+
* @param props - The SVG properties applied to the icon.
|
|
6
|
+
* @param forwardedReference - The reference assigned to the rendered SVG.
|
|
7
|
+
*
|
|
8
|
+
* @returns The rendered icon SVG.
|
|
9
|
+
*/
|
|
10
|
+
declare const _default: import("react").ForwardRefExoticComponent<Omit<IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
11
|
+
export default _default;
|
|
@@ -9,6 +9,7 @@ export declare const iconGraphics: {
|
|
|
9
9
|
readonly google: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
10
10
|
readonly microsoft: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
11
11
|
readonly bing: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
12
|
+
readonly binary: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
12
13
|
readonly apple: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
13
14
|
readonly twitter: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
14
15
|
readonly facebook: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
@@ -51,6 +52,7 @@ export declare const iconGraphics: {
|
|
|
51
52
|
readonly file: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
52
53
|
readonly image: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
53
54
|
readonly tag: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
55
|
+
readonly trash: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
54
56
|
readonly ruble: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
55
57
|
readonly key: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
56
58
|
readonly gear: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
@@ -16,6 +16,8 @@ export type { TableRowProps } from "./components/TableRow";
|
|
|
16
16
|
export type { TableCellAlignment, TableCellValue } from "./utils/cell";
|
|
17
17
|
/** A type representing the outer frame applied around a Table. */
|
|
18
18
|
export type TableFrame = "none" | "outline";
|
|
19
|
+
/** A type representing the vertical spacing applied inside Table cells. */
|
|
20
|
+
export type TableSpacing = "compact" | "standard";
|
|
19
21
|
/** A type representing the complete compound Table component. */
|
|
20
22
|
type TableComponent = typeof TableRoot & {
|
|
21
23
|
/** The body section containing Table data rows. */
|
|
@@ -39,6 +41,8 @@ export type TableProps = Omit<TableHTMLAttributes<HTMLTableElement>, "frame"> &
|
|
|
39
41
|
containerClassName?: string;
|
|
40
42
|
/** The outer border and corner treatment applied around the Table. */
|
|
41
43
|
frame?: TableFrame;
|
|
44
|
+
/** The vertical cell padding: standard (8px) or compact (4px). */
|
|
45
|
+
spacing?: TableSpacing;
|
|
42
46
|
};
|
|
43
47
|
/**
|
|
44
48
|
* Renders a semantic Table inside a keyboard-scrollable surface.
|
|
@@ -55,6 +59,8 @@ declare const TableRoot: import("react").ForwardRefExoticComponent<Omit<TableHTM
|
|
|
55
59
|
containerClassName?: string;
|
|
56
60
|
/** The outer border and corner treatment applied around the Table. */
|
|
57
61
|
frame?: TableFrame;
|
|
62
|
+
/** The vertical cell padding: standard (8px) or compact (4px). */
|
|
63
|
+
spacing?: TableSpacing;
|
|
58
64
|
} & import("react").RefAttributes<HTMLTableElement>>;
|
|
59
65
|
/** The compound Table component and its semantic subcomponents. */
|
|
60
66
|
declare const Table: TableComponent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default } from "./Table";
|
|
2
|
-
export type { TableBodyProps, TableCellAlignment, TableCellProps, TableCellValue, TableFootProps, TableFrame, TableHeaderCellProps, TableHeadProps, TableProps, TableRowAction, TableRowProps, } from "./Table";
|
|
2
|
+
export type { TableBodyProps, TableCellAlignment, TableCellProps, TableCellValue, TableFootProps, TableFrame, TableHeaderCellProps, TableHeadProps, TableProps, TableRowAction, TableRowProps, TableSpacing, } from "./Table";
|