@cfx-dev/ui-components 2.1.17 → 2.1.19
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/assets/Skeleton.css +1 -0
- package/dist/assets/Table.css +1 -1
- package/dist/components/IconButton/IconButton.d.ts +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts +11 -0
- package/dist/components/Skeleton/Skeleton.js +29 -0
- package/dist/components/Skeleton/SkeletonShowcase.d.ts +5 -0
- package/dist/components/Skeleton/SkeletonShowcase.js +54 -0
- package/dist/components/Skeleton/index.d.ts +1 -0
- package/dist/components/Skeleton/index.js +4 -0
- package/dist/components/Table/Table.d.ts +2 -1
- package/dist/components/Table/Table.js +85 -81
- package/dist/components/Text/Text.types.d.ts +12 -1
- package/dist/components/Text/Text.types.js +4 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.js +23 -21
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._skeleton_49zbt_1{display:inline-block;background-color:rgba(var(--color-bg-light),1);border-radius:var(--border-radius-xsmall);animation:_shimmer_49zbt_1 1.5s infinite linear}@keyframes _shimmer_49zbt_1{0%{opacity:0}50%{opacity:100%}to{opacity:0}}
|
package/dist/assets/Table.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._tableIcon_xresd_1._iconButton_xresd_1{width:calc(var(--quant) * 6);height:calc(var(--quant) * 6);display:inline-flex;align-items:center;justify-content:center;color:rgba(var(--color-secondary),1)}._tableIcon_xresd_1._iconButton_xresd_1{transition:background-color .25s ease,color .25s ease,opacity .25s ease,outline-offset 0s,outline 0s}._tableIcon_xresd_1._iconButton_xresd_1:hover{color:rgba(var(--color-primary),1);background-color:var(--color-button-linked-hover-background)}._tableIcon_xresd_1._iconButton_xresd_1:not(:disabled):active{transform:none;opacity:.8}._root_xresd_21 table{width:100%;border-collapse:collapse;border-top-left-radius:var(--border-radius-small);border-top-right-radius:var(--border-radius-small);overflow:hidden}._root_xresd_21 th,._root_xresd_21 td{text-align:left;padding:0 calc(var(--quant) * .75);color:#fff;height:calc(var(--quant) * 8.75);box-sizing:border-box}._root_xresd_21 td{padding:calc(var(--quant) * 1.5) calc(var(--quant) * .75)}._root_xresd_21 ._radio_xresd_38{padding:calc(var(--quant) * .25)}._root_xresd_21 ._radio_xresd_38 ._radioContent_xresd_41{width:100%;height:100%;display:flex;align-items:center;justify-content:center}._root_xresd_21 ._pointer_xresd_48{cursor:pointer}._root_xresd_21 ._selectedRow_xresd_51{background-color:rgba(var(--color-secondary),.4);box-shadow:0 -1px rgba(var(--color-primary),1) inset}._root_xresd_21 th{position:sticky;top:0;z-index:0;background-color:rgba(var(--color-bg-light),1)}._root_xresd_21 th ._headerContent_xresd_61{display:flex;align-items:center;flex-direction:row}._root_xresd_21 th ._headerContent_xresd_61 ._iconButton_xresd_1{margin-left:var(--offset-medium)}._root_xresd_21 tr{box-shadow:0 -1px rgba(var(--color-bg-light),1) inset;box-sizing:border-box}._root_xresd_21 tr:hover{background-color:rgba(var(--color-secondary),.2)}._root_xresd_21 tr:hover:not(._selectedRow_xresd_51){box-shadow:none}._hidden_xresd_80{visibility:hidden}
|
|
@@ -8,7 +8,7 @@ export interface IconButtonProps extends TextColorProps {
|
|
|
8
8
|
name: IconName;
|
|
9
9
|
size?: IconSize;
|
|
10
10
|
areaSize?: IconButtonAreaSize;
|
|
11
|
-
onClick?: () => void;
|
|
11
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
12
12
|
className?: string;
|
|
13
13
|
disabled?: boolean;
|
|
14
14
|
ariaLabel?: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TextSize } from '../Text';
|
|
3
|
+
|
|
4
|
+
interface SkeletonProps {
|
|
5
|
+
width?: string;
|
|
6
|
+
height?: TextSize | string;
|
|
7
|
+
borderRadius?: string;
|
|
8
|
+
}
|
|
9
|
+
declare function Skeleton({ width, height, borderRadius, }: SkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const _default: React.MemoExoticComponent<typeof Skeleton>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import n from "react";
|
|
3
|
+
import { TextSizeEnum as l } from "../Text/Text.types.js";
|
|
4
|
+
import '../../assets/Skeleton.css';const r = "_skeleton_49zbt_1", i = "_shimmer_49zbt_1", f = {
|
|
5
|
+
skeleton: r,
|
|
6
|
+
shimmer: i
|
|
7
|
+
};
|
|
8
|
+
function _({
|
|
9
|
+
width: o = "100%",
|
|
10
|
+
height: e = "20px",
|
|
11
|
+
borderRadius: s = "4px"
|
|
12
|
+
}) {
|
|
13
|
+
let t = e;
|
|
14
|
+
return e in l && (t = `var(--font-size-${e})`), /* @__PURE__ */ m(
|
|
15
|
+
"div",
|
|
16
|
+
{
|
|
17
|
+
className: f.skeleton,
|
|
18
|
+
style: {
|
|
19
|
+
width: o,
|
|
20
|
+
height: t,
|
|
21
|
+
borderRadius: s
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
const p = n.memo(_);
|
|
27
|
+
export {
|
|
28
|
+
p as default
|
|
29
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import u, { useState as n, useEffect as f } from "react";
|
|
3
|
+
import { Badge as t } from "../Badge/Badge.js";
|
|
4
|
+
import { Button as x } from "../Button/Button.js";
|
|
5
|
+
import "../Button/LinkButton.js";
|
|
6
|
+
import { Flex as d } from "../Layout/Flex/Flex.js";
|
|
7
|
+
import { Text as r } from "../Text/Text.js";
|
|
8
|
+
import c from "./Skeleton.js";
|
|
9
|
+
import { Table as p } from "../Table/Table.js";
|
|
10
|
+
const g = [
|
|
11
|
+
{ text: "Header 1" },
|
|
12
|
+
{ text: "Header 2" },
|
|
13
|
+
{ text: "Header 3" },
|
|
14
|
+
{ text: "Date" },
|
|
15
|
+
{ text: "Item" }
|
|
16
|
+
];
|
|
17
|
+
function S() {
|
|
18
|
+
const [l, a] = n(!0), [m, s] = n([]), o = () => {
|
|
19
|
+
a(!0);
|
|
20
|
+
const h = setTimeout(() => {
|
|
21
|
+
s([
|
|
22
|
+
["Cell 1", "Cell 2", "Cell 3", new Date(2023, 0, 1).toLocaleDateString(), /* @__PURE__ */ e(t, { children: "Error" }, "1")],
|
|
23
|
+
["Cell 4", "Cell 5", "Cell 6", new Date(2023, 1, 1).toLocaleDateString(), /* @__PURE__ */ e(t, { children: "Badge" }, "2")],
|
|
24
|
+
["Cell 7", "Cell 8", "Cell 9", new Date(2023, 2, 1).toLocaleDateString(), /* @__PURE__ */ e(t, { children: "Badge" }, "3")]
|
|
25
|
+
]), a(!1);
|
|
26
|
+
}, 5e3);
|
|
27
|
+
return () => clearTimeout(h);
|
|
28
|
+
};
|
|
29
|
+
return f(() => {
|
|
30
|
+
o();
|
|
31
|
+
}, []), /* @__PURE__ */ i(d, { gap: "large", vertical: !0, children: [
|
|
32
|
+
/* @__PURE__ */ e(r, { children: "Skeleton within Table" }),
|
|
33
|
+
/* @__PURE__ */ e(d, { gap: "normal", vertical: !0, children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
34
|
+
p,
|
|
35
|
+
{
|
|
36
|
+
loading: l,
|
|
37
|
+
includeRadio: !0,
|
|
38
|
+
headers: g,
|
|
39
|
+
data: l ? Array(3).fill(Array(5).fill(/* @__PURE__ */ e(c, { width: "100%", height: "normal", borderRadius: "4px" }))) : m
|
|
40
|
+
}
|
|
41
|
+
) }) }),
|
|
42
|
+
/* @__PURE__ */ e(r, { children: "Skeleton in Text" }),
|
|
43
|
+
/* @__PURE__ */ i(r, { children: [
|
|
44
|
+
"This is a ",
|
|
45
|
+
/* @__PURE__ */ e(c, { width: "200px", height: "normal" }),
|
|
46
|
+
" in Text"
|
|
47
|
+
] }),
|
|
48
|
+
/* @__PURE__ */ e(x, { theme: "secondary", onClick: o, text: "Restart Timer" })
|
|
49
|
+
] });
|
|
50
|
+
}
|
|
51
|
+
const R = u.memo(S);
|
|
52
|
+
export {
|
|
53
|
+
R as default
|
|
54
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Skeleton } from './Skeleton';
|
|
@@ -20,6 +20,7 @@ export interface TableProps {
|
|
|
20
20
|
headers: TableHeaderType[];
|
|
21
21
|
data: TableRowType[];
|
|
22
22
|
includeRadio?: boolean;
|
|
23
|
+
loading?: boolean;
|
|
23
24
|
onSelectChange?: (rowIndex: number | null) => void;
|
|
24
25
|
dataContainer?: DataContainerType;
|
|
25
26
|
selectedRow?: number | null;
|
|
@@ -27,5 +28,5 @@ export interface TableProps {
|
|
|
27
28
|
sortOrder?: 'asc' | 'desc';
|
|
28
29
|
onSortChange?: (sortBy: string, sortOrder: 'asc' | 'desc') => void;
|
|
29
30
|
}
|
|
30
|
-
export declare function Table({ headers, data, includeRadio, onSelectChange, dataContainer, selectedRow: outerSelectedRow, sortBy: outerSortBy, sortOrder: outerSortOrder, onSortChange, }: TableProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare function Table({ headers, data, includeRadio, loading, onSelectChange, dataContainer, selectedRow: outerSelectedRow, sortBy: outerSortBy, sortOrder: outerSortOrder, onSortChange, }: TableProps): import("react/jsx-runtime").JSX.Element;
|
|
31
32
|
export {};
|
|
@@ -1,151 +1,155 @@
|
|
|
1
1
|
import { jsx as t, jsxs as C } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { Text as
|
|
6
|
-
import { clsx as
|
|
7
|
-
import '../../assets/Table.css';const
|
|
8
|
-
tableIcon:
|
|
9
|
-
iconButton:
|
|
10
|
-
root:
|
|
11
|
-
radio:
|
|
12
|
-
radioContent:
|
|
13
|
-
pointer:
|
|
14
|
-
selectedRow:
|
|
15
|
-
headerContent:
|
|
2
|
+
import c, { useState as w } from "react";
|
|
3
|
+
import I from "../Checkbox/Checkbox.js";
|
|
4
|
+
import T from "../IconButton/IconButton.js";
|
|
5
|
+
import { Text as $ } from "../Text/Text.js";
|
|
6
|
+
import { clsx as p } from "../../utils/clsx.js";
|
|
7
|
+
import '../../assets/Table.css';const j = "_tableIcon_xresd_1", z = "_iconButton_xresd_1", A = "_root_xresd_21", E = "_radio_xresd_38", O = "_radioContent_xresd_41", S = "_pointer_xresd_48", F = "_selectedRow_xresd_51", H = "_headerContent_xresd_61", V = "_hidden_xresd_80", n = {
|
|
8
|
+
tableIcon: j,
|
|
9
|
+
iconButton: z,
|
|
10
|
+
root: A,
|
|
11
|
+
radio: E,
|
|
12
|
+
radioContent: O,
|
|
13
|
+
pointer: S,
|
|
14
|
+
selectedRow: F,
|
|
15
|
+
headerContent: H,
|
|
16
|
+
hidden: V
|
|
16
17
|
};
|
|
17
|
-
function
|
|
18
|
+
function q(r) {
|
|
18
19
|
const {
|
|
19
20
|
className: e,
|
|
20
21
|
color: o = "inherit"
|
|
21
|
-
} = r,
|
|
22
|
-
return /* @__PURE__ */ t(
|
|
22
|
+
} = r, i = p(n.tableIcon, n.iconButton, e);
|
|
23
|
+
return /* @__PURE__ */ t(T, { ...r, className: i, color: o });
|
|
23
24
|
}
|
|
24
|
-
function
|
|
25
|
+
function D(r) {
|
|
25
26
|
const {
|
|
26
27
|
item: e,
|
|
27
28
|
onSortClick: o
|
|
28
|
-
} = r,
|
|
29
|
+
} = r, i = c.useCallback(() => {
|
|
29
30
|
o && o(e.sortKey || e.text);
|
|
30
|
-
}, [e.sortKey, e.text, o]),
|
|
31
|
-
[
|
|
32
|
-
[
|
|
31
|
+
}, [e.sortKey, e.text, o]), l = p(n.headerContent, {
|
|
32
|
+
[n.sortable]: e.sortable,
|
|
33
|
+
[n.empty]: !e.text
|
|
33
34
|
});
|
|
34
35
|
return /* @__PURE__ */ t(
|
|
35
36
|
"th",
|
|
36
37
|
{
|
|
37
|
-
className: e.sortable ?
|
|
38
|
-
onClick: e.sortable ?
|
|
39
|
-
children: /* @__PURE__ */ C("div", { className:
|
|
40
|
-
/* @__PURE__ */ t(
|
|
38
|
+
className: e.sortable ? n.pointer : void 0,
|
|
39
|
+
onClick: e.sortable ? i : void 0,
|
|
40
|
+
children: /* @__PURE__ */ C("div", { className: l, children: [
|
|
41
|
+
/* @__PURE__ */ t($, { color: "secondary", weight: "bold", uppercase: !0, size: "xxsmall", children: e.text }),
|
|
41
42
|
!!e.sortable && /* @__PURE__ */ t(
|
|
42
|
-
|
|
43
|
+
q,
|
|
43
44
|
{
|
|
44
45
|
name: "Sort",
|
|
45
|
-
onClick:
|
|
46
|
+
onClick: i
|
|
46
47
|
}
|
|
47
48
|
)
|
|
48
49
|
] })
|
|
49
50
|
}
|
|
50
51
|
);
|
|
51
52
|
}
|
|
52
|
-
function
|
|
53
|
+
function G(r) {
|
|
53
54
|
const {
|
|
54
55
|
index: e,
|
|
55
56
|
includeRadio: o = !1,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
loading: i,
|
|
58
|
+
selectedRow: l,
|
|
59
|
+
item: k,
|
|
60
|
+
dataContainer: _,
|
|
61
|
+
onSelectChange: d
|
|
62
|
+
} = r, u = c.useCallback((a) => {
|
|
63
|
+
d(
|
|
64
|
+
a ? e : null
|
|
63
65
|
);
|
|
64
|
-
}, [
|
|
65
|
-
|
|
66
|
-
}, [
|
|
67
|
-
[
|
|
68
|
-
[
|
|
66
|
+
}, [d, e]), b = c.useCallback(() => {
|
|
67
|
+
d(e);
|
|
68
|
+
}, [d, e]), f = p({
|
|
69
|
+
[n.selectedRow]: l === e,
|
|
70
|
+
[n.pointer]: o
|
|
69
71
|
});
|
|
70
72
|
return /* @__PURE__ */ C(
|
|
71
73
|
"tr",
|
|
72
74
|
{
|
|
73
75
|
className: f,
|
|
74
|
-
onClick: o ?
|
|
76
|
+
onClick: o ? b : void 0,
|
|
75
77
|
children: [
|
|
76
|
-
o && /* @__PURE__ */ t("td", { className:
|
|
77
|
-
|
|
78
|
+
o && /* @__PURE__ */ t("td", { className: p(n.radio, { [n.hidden]: i }), children: /* @__PURE__ */ t("div", { className: n.radioContent, children: /* @__PURE__ */ t(
|
|
79
|
+
I,
|
|
78
80
|
{
|
|
79
81
|
size: "small",
|
|
80
82
|
onCheckedChange: u,
|
|
81
83
|
"aria-label": `${e}`,
|
|
82
|
-
checked:
|
|
84
|
+
checked: l === e
|
|
83
85
|
}
|
|
84
86
|
) }) }),
|
|
85
|
-
|
|
86
|
-
let
|
|
87
|
-
return
|
|
87
|
+
k.map((a, x) => {
|
|
88
|
+
let h;
|
|
89
|
+
return c.isValidElement(a) ? h = a : _ ? h = c.createElement(_, { item: a }) : h = String(a), /* @__PURE__ */ t("td", { children: h }, `item-${x}`);
|
|
88
90
|
})
|
|
89
91
|
]
|
|
90
92
|
},
|
|
91
93
|
`row-${e}`
|
|
92
94
|
);
|
|
93
95
|
}
|
|
94
|
-
function
|
|
96
|
+
function U({
|
|
95
97
|
headers: r = [],
|
|
96
98
|
data: e = [],
|
|
97
99
|
includeRadio: o = !1,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
loading: i = !1,
|
|
101
|
+
onSelectChange: l,
|
|
102
|
+
dataContainer: k,
|
|
103
|
+
selectedRow: _ = null,
|
|
104
|
+
sortBy: d,
|
|
102
105
|
sortOrder: u = "asc",
|
|
103
|
-
onSortChange:
|
|
106
|
+
onSortChange: b
|
|
104
107
|
}) {
|
|
105
|
-
const [f,
|
|
106
|
-
const
|
|
107
|
-
|
|
108
|
-
}, [
|
|
108
|
+
const [f, a] = w(_), [x, h] = w(d), [N, R] = w(u), v = c.useCallback((s) => {
|
|
109
|
+
const B = x === s && N === "asc" ? "desc" : "asc";
|
|
110
|
+
h(s), R(B), b == null || b(s, B);
|
|
111
|
+
}, [b, x, N]), y = c.useCallback(
|
|
109
112
|
(s) => {
|
|
110
|
-
const
|
|
111
|
-
|
|
113
|
+
const m = s === f ? null : s;
|
|
114
|
+
a(m), l == null || l(m);
|
|
112
115
|
},
|
|
113
|
-
[
|
|
116
|
+
[l, f]
|
|
114
117
|
);
|
|
115
|
-
return
|
|
116
|
-
|
|
117
|
-
}, [
|
|
118
|
-
|
|
119
|
-
}, [
|
|
120
|
-
|
|
121
|
-
}, [u]), /* @__PURE__ */ t("div", { className:
|
|
118
|
+
return c.useEffect(() => {
|
|
119
|
+
a(_);
|
|
120
|
+
}, [_]), c.useEffect(() => {
|
|
121
|
+
h(d);
|
|
122
|
+
}, [d]), c.useEffect(() => {
|
|
123
|
+
R(u);
|
|
124
|
+
}, [u]), /* @__PURE__ */ t("div", { className: n.root, children: /* @__PURE__ */ C("table", { children: [
|
|
122
125
|
/* @__PURE__ */ t("thead", { children: /* @__PURE__ */ C("tr", { children: [
|
|
123
126
|
o && /* @__PURE__ */ t("th", { "aria-label": "Select Row" }),
|
|
124
|
-
r.map((s,
|
|
125
|
-
|
|
127
|
+
r.map((s, m) => /* @__PURE__ */ t(
|
|
128
|
+
D,
|
|
126
129
|
{
|
|
127
130
|
item: s,
|
|
128
|
-
onSortClick:
|
|
131
|
+
onSortClick: v
|
|
129
132
|
},
|
|
130
|
-
`header-${
|
|
133
|
+
`header-${m}`
|
|
131
134
|
))
|
|
132
135
|
] }) }),
|
|
133
|
-
/* @__PURE__ */ t("tbody", { children: e.map((s,
|
|
134
|
-
|
|
136
|
+
/* @__PURE__ */ t("tbody", { children: e.map((s, m) => /* @__PURE__ */ t(
|
|
137
|
+
G,
|
|
135
138
|
{
|
|
136
|
-
index:
|
|
139
|
+
index: m,
|
|
137
140
|
item: s,
|
|
138
141
|
includeRadio: o,
|
|
142
|
+
loading: i,
|
|
139
143
|
selectedRow: f,
|
|
140
|
-
onSelectChange:
|
|
141
|
-
dataContainer:
|
|
144
|
+
onSelectChange: y,
|
|
145
|
+
dataContainer: k
|
|
142
146
|
},
|
|
143
|
-
`row-${
|
|
147
|
+
`row-${m}`
|
|
144
148
|
)) })
|
|
145
149
|
] }) });
|
|
146
150
|
}
|
|
147
151
|
export {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
152
|
+
U as Table,
|
|
153
|
+
D as TableHeaderItem,
|
|
154
|
+
q as TableIconButton
|
|
151
155
|
};
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import { GetColorProps } from '../../utils/color';
|
|
2
2
|
|
|
3
|
-
export
|
|
3
|
+
export declare enum TextSizeEnum {
|
|
4
|
+
xxsmall = "xxsmall",
|
|
5
|
+
xsmall = "xsmall",
|
|
6
|
+
small = "small",
|
|
7
|
+
normal = "normal",
|
|
8
|
+
medium = "medium",
|
|
9
|
+
large = "large",
|
|
10
|
+
xlarge = "xlarge",
|
|
11
|
+
xxlarge = "xxlarge",
|
|
12
|
+
xxxlarge = "xxxlarge"
|
|
13
|
+
}
|
|
14
|
+
export type TextSize = keyof typeof TextSizeEnum;
|
|
4
15
|
export type TextWeight = 'thin' | 'normal' | 'bold' | 'bolder';
|
|
5
16
|
export type TextOpacity = '0' | '25' | '50' | '75' | '100';
|
|
6
17
|
export type TextAs = 'span' | 'div' | 'p' | 'label' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var a = /* @__PURE__ */ ((l) => (l.xxsmall = "xxsmall", l.xsmall = "xsmall", l.small = "small", l.normal = "normal", l.medium = "medium", l.large = "large", l.xlarge = "xlarge", l.xxlarge = "xxlarge", l.xxxlarge = "xxxlarge", l))(a || {});
|
|
2
|
+
export {
|
|
3
|
+
a as TextSizeEnum
|
|
4
|
+
};
|
package/dist/main.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ export { Text, TextBlock, getTextOpacity, } from './components/Text';
|
|
|
65
65
|
export { Textarea } from './components/Textarea/Textarea';
|
|
66
66
|
export { Title, TITLE_OUTLET_ID } from './components/Title/Title';
|
|
67
67
|
export { InputDropzone } from './components/InputDropzone';
|
|
68
|
+
export { Skeleton } from './components/Skeleton';
|
|
68
69
|
export type { ButtonProps, ButtonTheme } from './components/Button/Button';
|
|
69
70
|
export type { TitleProps, FixedOn } from './components/Title/Title';
|
|
70
71
|
export type { IconButtonProps } from './components/IconButton';
|
package/dist/main.js
CHANGED
|
@@ -8,8 +8,8 @@ import { useGlobalKeyboardEvent as d } from "./utils/hooks/useGlobalKeyboardEven
|
|
|
8
8
|
import { useKeyboardClose as T } from "./utils/hooks/useKeyboardClose.js";
|
|
9
9
|
import { useWindowResize as B } from "./utils/hooks/useWindowResize.js";
|
|
10
10
|
import { useOutlet as C } from "./utils/hooks/useOutlet.js";
|
|
11
|
-
import { CLIPBOARD_TITLE_APPEARANCE as
|
|
12
|
-
import { identity as
|
|
11
|
+
import { CLIPBOARD_TITLE_APPEARANCE as y, useClipboardComponent as R } from "./utils/hooks/useClipboardComponent.js";
|
|
12
|
+
import { identity as k, invoke as A, noop as O, returnFalse as P, returnTrue as E } from "./utils/functional.js";
|
|
13
13
|
import { Linkify as _, defaultLinkReplacer as h, defaultLinkReplacerx as v, isExternalUrl as F, linkify as U, linkifyx as z, matchLinkNodes as K, matchLinks as N } from "./utils/links.js";
|
|
14
14
|
import { clamp as w, clamp01 as G } from "./utils/math.js";
|
|
15
15
|
import { isFalseString as H, isTrueString as M, normalizeSlashes as W, replaceRange as j, splitByIndices as q, unicodeCharAt as J } from "./utils/string.js";
|
|
@@ -23,8 +23,8 @@ import { Button as co } from "./components/Button/Button.js";
|
|
|
23
23
|
import { LinkButton as To } from "./components/Button/LinkButton.js";
|
|
24
24
|
import { ButtonBar as Bo } from "./components/Button/ButtonBar.js";
|
|
25
25
|
import { Avatar as Co } from "./components/Avatar/Avatar.js";
|
|
26
|
-
import { BACKDROP_OUTLET_ID as
|
|
27
|
-
import { Badge as
|
|
26
|
+
import { BACKDROP_OUTLET_ID as yo, BackdropPortal as Ro } from "./components/BackdropPortal/BackdropPortal.js";
|
|
27
|
+
import { Badge as ko } from "./components/Badge/Badge.js";
|
|
28
28
|
import { ControlBox as Oo } from "./components/ControlBox/ControlBox.js";
|
|
29
29
|
import { CountryFlag as Eo } from "./components/CountryFlag/CountryFlag.js";
|
|
30
30
|
import { Decorate as _o } from "./components/Decorate/Decorate.js";
|
|
@@ -49,9 +49,9 @@ import { Pad as dr } from "./components/Layout/Pad/Pad.js";
|
|
|
49
49
|
import { Page as Tr } from "./components/Layout/Page/Page.js";
|
|
50
50
|
import { R as Br } from "./Rail-nVRissv6.js";
|
|
51
51
|
import { Scrollable as Cr } from "./components/Layout/Scrollable/Scrollable.js";
|
|
52
|
-
import { VirtualScrollable as
|
|
52
|
+
import { VirtualScrollable as yr } from "./components/Layout/Scrollable/VirtualScrollable.js";
|
|
53
53
|
import { Loaf as br } from "./components/Loaf/Loaf.js";
|
|
54
|
-
import { Modal as
|
|
54
|
+
import { Modal as Ar } from "./components/Modal/Modal.js";
|
|
55
55
|
import { NavList as Pr } from "./components/NavList/NavList.js";
|
|
56
56
|
import { OVERLAY_OUTLET_ID as Dr, Overlay as _r } from "./components/Overlay/Overlay.js";
|
|
57
57
|
import { Popover as vr } from "./components/Popover/Popover.js";
|
|
@@ -72,9 +72,10 @@ import { Textarea as se } from "./components/Textarea/Textarea.js";
|
|
|
72
72
|
import { TITLE_OUTLET_ID as ce, Title as de } from "./components/Title/Title.js";
|
|
73
73
|
import { default as Te } from "./components/InputDropzone/InputDropzone.js";
|
|
74
74
|
import "./components/InputDropzone/ItemPreview.js";
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
75
|
+
import { default as Be } from "./components/Skeleton/Skeleton.js";
|
|
76
|
+
import { OnScreenSensor as Ce } from "./components/OnScreenSensor.js";
|
|
77
|
+
import { ui as ye } from "./components/ui.js";
|
|
78
|
+
import { Symbols as be } from "./components/Symbols.js";
|
|
78
79
|
export {
|
|
79
80
|
po as Accordion,
|
|
80
81
|
fo as AccordionContent,
|
|
@@ -82,13 +83,13 @@ export {
|
|
|
82
83
|
mo as AccordionItem,
|
|
83
84
|
ao as AccordionTrigger,
|
|
84
85
|
Co as Avatar,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
yo as BACKDROP_OUTLET_ID,
|
|
87
|
+
Ro as BackdropPortal,
|
|
88
|
+
ko as Badge,
|
|
88
89
|
mr as Box,
|
|
89
90
|
co as Button,
|
|
90
91
|
Bo as ButtonBar,
|
|
91
|
-
|
|
92
|
+
y as CLIPBOARD_TITLE_APPEARANCE,
|
|
92
93
|
lr as Center,
|
|
93
94
|
so as Checkbox,
|
|
94
95
|
no as ClipboardButton,
|
|
@@ -115,10 +116,10 @@ export {
|
|
|
115
116
|
_ as Linkify,
|
|
116
117
|
br as Loaf,
|
|
117
118
|
No as Logos,
|
|
118
|
-
|
|
119
|
+
Ar as Modal,
|
|
119
120
|
Pr as NavList,
|
|
120
121
|
Dr as OVERLAY_OUTLET_ID,
|
|
121
|
-
|
|
122
|
+
Ce as OnScreenSensor,
|
|
122
123
|
_r as Overlay,
|
|
123
124
|
dr as Pad,
|
|
124
125
|
Tr as Page,
|
|
@@ -132,10 +133,11 @@ export {
|
|
|
132
133
|
Gr as Select,
|
|
133
134
|
Hr as Separator,
|
|
134
135
|
Wr as Shroud,
|
|
136
|
+
Be as Skeleton,
|
|
135
137
|
qr as Spacer,
|
|
136
138
|
Qr as Style,
|
|
137
139
|
$r as Switch,
|
|
138
|
-
|
|
140
|
+
be as Symbols,
|
|
139
141
|
ce as TITLE_OUTLET_ID,
|
|
140
142
|
fe as Table,
|
|
141
143
|
xe as TableIconButton,
|
|
@@ -145,7 +147,7 @@ export {
|
|
|
145
147
|
se as Textarea,
|
|
146
148
|
de as Title,
|
|
147
149
|
re as ToggleGroup,
|
|
148
|
-
|
|
150
|
+
yr as VirtualScrollable,
|
|
149
151
|
w as clamp,
|
|
150
152
|
G as clamp01,
|
|
151
153
|
f as clsx,
|
|
@@ -155,8 +157,8 @@ export {
|
|
|
155
157
|
oo as getColor,
|
|
156
158
|
ne as getTextOpacity,
|
|
157
159
|
m as getValue,
|
|
158
|
-
|
|
159
|
-
|
|
160
|
+
k as identity,
|
|
161
|
+
A as invoke,
|
|
160
162
|
F as isExternalUrl,
|
|
161
163
|
H as isFalseString,
|
|
162
164
|
M as isTrueString,
|
|
@@ -172,9 +174,9 @@ export {
|
|
|
172
174
|
E as returnTrue,
|
|
173
175
|
q as splitByIndices,
|
|
174
176
|
Z as throttle,
|
|
175
|
-
|
|
177
|
+
ye as ui,
|
|
176
178
|
J as unicodeCharAt,
|
|
177
|
-
|
|
179
|
+
R as useClipboardComponent,
|
|
178
180
|
Xr as useContextualStyle,
|
|
179
181
|
u as useDynamicRef,
|
|
180
182
|
d as useGlobalKeyboardEvent,
|