@cfx-dev/ui-components 2.1.18 → 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.
@@ -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}}
@@ -1 +1 @@
1
- ._tableIcon_1yah3_1._iconButton_1yah3_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_1yah3_1._iconButton_1yah3_1{transition:background-color .25s ease,color .25s ease,opacity .25s ease,outline-offset 0s,outline 0s}._tableIcon_1yah3_1._iconButton_1yah3_1:hover{color:rgba(var(--color-primary),1);background-color:var(--color-button-linked-hover-background)}._tableIcon_1yah3_1._iconButton_1yah3_1:not(:disabled):active{transform:none;opacity:.8}._root_1yah3_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_1yah3_21 th,._root_1yah3_21 td{text-align:left;padding:0 calc(var(--quant) * .75);color:#fff;height:calc(var(--quant) * 8.75);box-sizing:border-box}._root_1yah3_21 td{padding:calc(var(--quant) * 1.5) calc(var(--quant) * .75)}._root_1yah3_21 ._radio_1yah3_38{padding:calc(var(--quant) * .25)}._root_1yah3_21 ._radio_1yah3_38 ._radioContent_1yah3_41{width:100%;height:100%;display:flex;align-items:center;justify-content:center}._root_1yah3_21 ._pointer_1yah3_48{cursor:pointer}._root_1yah3_21 ._selectedRow_1yah3_51{background-color:rgba(var(--color-secondary),.4);box-shadow:0 -1px rgba(var(--color-primary),1) inset}._root_1yah3_21 th{position:sticky;top:0;z-index:0;background-color:rgba(var(--color-bg-light),1)}._root_1yah3_21 th ._headerContent_1yah3_61{display:flex;align-items:center;flex-direction:row}._root_1yah3_21 th ._headerContent_1yah3_61 ._iconButton_1yah3_1{margin-left:var(--offset-medium)}._root_1yah3_21 tr{box-shadow:0 -1px rgba(var(--color-bg-light),1) inset;box-sizing:border-box}._root_1yah3_21 tr:hover{background-color:rgba(var(--color-secondary),.2)}._root_1yah3_21 tr:hover:not(._selectedRow_1yah3_51){box-shadow:none}
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}
@@ -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,5 @@
1
+ import { default as React } from 'react';
2
+
3
+ declare function SkeletonShowcase(): import("react/jsx-runtime").JSX.Element;
4
+ declare const _default: React.MemoExoticComponent<typeof SkeletonShowcase>;
5
+ export default _default;
@@ -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';
@@ -0,0 +1,4 @@
1
+ import { default as t } from "./Skeleton.js";
2
+ export {
3
+ t as Skeleton
4
+ };
@@ -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
- import { jsx as t, jsxs as p } from "react/jsx-runtime";
2
- import a, { useState as k } from "react";
3
- import v from "../Checkbox/Checkbox.js";
4
- import I from "../IconButton/IconButton.js";
5
- import { Text as T } from "../Text/Text.js";
6
- import { clsx as y } from "../../utils/clsx.js";
7
- import '../../assets/Table.css';const $ = "_tableIcon_1yah3_1", j = "_iconButton_1yah3_1", z = "_root_1yah3_21", A = "_radio_1yah3_38", E = "_radioContent_1yah3_41", O = "_pointer_1yah3_48", S = "_selectedRow_1yah3_51", F = "_headerContent_1yah3_61", c = {
8
- tableIcon: $,
9
- iconButton: j,
10
- root: z,
11
- radio: A,
12
- radioContent: E,
13
- pointer: O,
14
- selectedRow: S,
15
- headerContent: F
1
+ import { jsx as t, jsxs as C } from "react/jsx-runtime";
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 H(r) {
18
+ function q(r) {
18
19
  const {
19
20
  className: e,
20
21
  color: o = "inherit"
21
- } = r, n = y(c.tableIcon, c.iconButton, e);
22
- return /* @__PURE__ */ t(I, { ...r, className: n, color: o });
22
+ } = r, i = p(n.tableIcon, n.iconButton, e);
23
+ return /* @__PURE__ */ t(T, { ...r, className: i, color: o });
23
24
  }
24
- function V(r) {
25
+ function D(r) {
25
26
  const {
26
27
  item: e,
27
28
  onSortClick: o
28
- } = r, n = a.useCallback(() => {
29
+ } = r, i = c.useCallback(() => {
29
30
  o && o(e.sortKey || e.text);
30
- }, [e.sortKey, e.text, o]), b = y(c.headerContent, {
31
- [c.sortable]: e.sortable,
32
- [c.empty]: !e.text
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 ? c.pointer : void 0,
38
- onClick: e.sortable ? n : void 0,
39
- children: /* @__PURE__ */ p("div", { className: b, children: [
40
- /* @__PURE__ */ t(T, { color: "secondary", weight: "bold", uppercase: !0, size: "xxsmall", children: e.text }),
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
- H,
43
+ q,
43
44
  {
44
45
  name: "Sort",
45
- onClick: n
46
+ onClick: i
46
47
  }
47
48
  )
48
49
  ] })
49
50
  }
50
51
  );
51
52
  }
52
- function q(r) {
53
+ function G(r) {
53
54
  const {
54
55
  index: e,
55
56
  includeRadio: o = !1,
56
- selectedRow: n,
57
- item: b,
58
- dataContainer: h,
59
- onSelectChange: i
60
- } = r, u = a.useCallback((l) => {
61
- i(
62
- l ? e : null
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
- }, [i, e]), _ = a.useCallback(() => {
65
- i(e);
66
- }, [i, e]), f = y({
67
- [c.selectedRow]: n === e,
68
- [c.pointer]: o
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
- return /* @__PURE__ */ p(
72
+ return /* @__PURE__ */ C(
71
73
  "tr",
72
74
  {
73
75
  className: f,
74
- onClick: o ? _ : void 0,
76
+ onClick: o ? b : void 0,
75
77
  children: [
76
- o && /* @__PURE__ */ t("td", { className: c.radio, children: /* @__PURE__ */ t("div", { className: c.radioContent, children: /* @__PURE__ */ t(
77
- v,
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: n === e
84
+ checked: l === e
83
85
  }
84
86
  ) }) }),
85
- b.map((l, C) => {
86
- let m;
87
- return a.isValidElement(l) ? m = l : h ? m = a.createElement(h, { item: l }) : m = String(l), /* @__PURE__ */ t("td", { children: m }, `item-${C}`);
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 P({
96
+ function U({
95
97
  headers: r = [],
96
98
  data: e = [],
97
99
  includeRadio: o = !1,
98
- onSelectChange: n,
99
- dataContainer: b,
100
- selectedRow: h = null,
101
- sortBy: i,
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, l] = k(h), [C, m] = k(i), [w, x] = k(u), R = a.useCallback((s) => {
106
- const N = C === s && w === "asc" ? "desc" : "asc";
107
- m(s), x(N), _ == null || _(s, N);
108
- }, [_, C, w]), B = a.useCallback(
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 d = s === f ? null : s;
111
- l(d), n == null || n(d);
113
+ const m = s === f ? null : s;
114
+ a(m), l == null || l(m);
112
115
  },
113
- [n, f]
116
+ [l, f]
114
117
  );
115
- return a.useEffect(() => {
116
- l(h);
117
- }, [h]), a.useEffect(() => {
118
- m(i);
119
- }, [i]), a.useEffect(() => {
120
- x(u);
121
- }, [u]), /* @__PURE__ */ t("div", { className: c.root, children: /* @__PURE__ */ p("table", { children: [
122
- /* @__PURE__ */ t("thead", { children: /* @__PURE__ */ p("tr", { children: [
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: [
125
+ /* @__PURE__ */ t("thead", { children: /* @__PURE__ */ C("tr", { children: [
123
126
  o && /* @__PURE__ */ t("th", { "aria-label": "Select Row" }),
124
- r.map((s, d) => /* @__PURE__ */ t(
125
- V,
127
+ r.map((s, m) => /* @__PURE__ */ t(
128
+ D,
126
129
  {
127
130
  item: s,
128
- onSortClick: R
131
+ onSortClick: v
129
132
  },
130
- `header-${d}`
133
+ `header-${m}`
131
134
  ))
132
135
  ] }) }),
133
- /* @__PURE__ */ t("tbody", { children: e.map((s, d) => /* @__PURE__ */ t(
134
- q,
136
+ /* @__PURE__ */ t("tbody", { children: e.map((s, m) => /* @__PURE__ */ t(
137
+ G,
135
138
  {
136
- index: d,
139
+ index: m,
137
140
  item: s,
138
141
  includeRadio: o,
142
+ loading: i,
139
143
  selectedRow: f,
140
- onSelectChange: B,
141
- dataContainer: b
144
+ onSelectChange: y,
145
+ dataContainer: k
142
146
  },
143
- `row-${d}`
147
+ `row-${m}`
144
148
  )) })
145
149
  ] }) });
146
150
  }
147
151
  export {
148
- P as Table,
149
- V as TableHeaderItem,
150
- H as TableIconButton
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 type TextSize = 'xxsmall' | 'xsmall' | 'small' | 'normal' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge';
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 R, useClipboardComponent as S } from "./utils/hooks/useClipboardComponent.js";
12
- import { identity as A, invoke as k, noop as O, returnFalse as P, returnTrue as E } from "./utils/functional.js";
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 Ro, BackdropPortal as So } from "./components/BackdropPortal/BackdropPortal.js";
27
- import { Badge as Ao } from "./components/Badge/Badge.js";
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 Rr } from "./components/Layout/Scrollable/VirtualScrollable.js";
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 kr } from "./components/Modal/Modal.js";
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 { OnScreenSensor as Be } from "./components/OnScreenSensor.js";
76
- import { ui as Ce } from "./components/ui.js";
77
- import { Symbols as Re } from "./components/Symbols.js";
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
- Ro as BACKDROP_OUTLET_ID,
86
- So as BackdropPortal,
87
- Ao as Badge,
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
- R as CLIPBOARD_TITLE_APPEARANCE,
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
- kr as Modal,
119
+ Ar as Modal,
119
120
  Pr as NavList,
120
121
  Dr as OVERLAY_OUTLET_ID,
121
- Be as OnScreenSensor,
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
- Re as Symbols,
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
- Rr as VirtualScrollable,
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
- A as identity,
159
- k as invoke,
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
- Ce as ui,
177
+ ye as ui,
176
178
  J as unicodeCharAt,
177
- S as useClipboardComponent,
179
+ R as useClipboardComponent,
178
180
  Xr as useContextualStyle,
179
181
  u as useDynamicRef,
180
182
  d as useGlobalKeyboardEvent,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cfx-dev/ui-components",
3
3
  "private": false,
4
- "version": "2.1.18",
4
+ "version": "2.1.19",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "main": "dist/main.js",