@cfx-dev/ui-components 2.0.2 → 2.0.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.
@@ -1,60 +1,79 @@
1
- import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
- import o, { useState as d } from "react";
3
- import { G as R } from "../../iconBase-C6DV9qqL.js";
4
- import '../../assets/Table.css';function x(r) {
5
- return R({ tag: "svg", attr: { viewBox: "0 0 320 512" }, child: [{ tag: "path", attr: { d: "M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z" } }] })(r);
6
- }
7
- function L(r) {
8
- return R({ tag: "svg", attr: { viewBox: "0 0 320 512" }, child: [{ tag: "path", attr: { d: "M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z" } }] })(r);
9
- }
10
- const z = "_selectedRow_1jg2j_23", w = {
11
- "table-responsive": "_table-responsive_1jg2j_1",
12
- selectedRow: z
1
+ import { jsx as o, jsxs as i } from "react/jsx-runtime";
2
+ import f, { useState as m } from "react";
3
+ import O from "../Checkbox/Checkbox.js";
4
+ import j from "../IconButton/IconButton.js";
5
+ import '../../assets/Table.css';const x = "_pointer_19b0f_18", A = "_selectedRow_19b0f_22", E = "_headerContent_19b0f_40", z = "_sortButton_19b0f_47", l = {
6
+ "table-responsive": "_table-responsive_19b0f_1",
7
+ pointer: x,
8
+ selectedRow: A,
9
+ headerContent: E,
10
+ sortButton: z
13
11
  };
14
- function G({
15
- headers: r = [],
16
- data: _ = [],
17
- includeRadio: p = !1,
18
- onSelectChange: l,
19
- dataContainer: u,
20
- useSort: h = !1,
21
- sortBy: j,
22
- sortOrder: y = "asc",
23
- onSortChange: i
12
+ function F({
13
+ headers: u = [],
14
+ data: B = [],
15
+ includeRadio: r = !1,
16
+ onSelectChange: c,
17
+ dataContainer: b,
18
+ useSort: n = !1,
19
+ sortBy: k,
20
+ sortOrder: v = "asc",
21
+ onSortChange: d
24
22
  }) {
25
- const [m, f] = d(null), [b, g] = d(j), [v, B] = d(y), k = (t) => {
26
- const c = b === t && v === "asc" ? "desc" : "asc";
27
- g(t), B(c), i == null || i(t, c);
28
- }, O = o.useCallback((t) => {
29
- f(parseInt(t.target.value, 10)), l == null || l(parseInt(t.target.value, 10));
30
- }, [f, l]);
31
- return /* @__PURE__ */ e("div", { className: w.table, children: /* @__PURE__ */ n("table", { children: [
32
- /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ n("tr", { children: [
33
- p && /* @__PURE__ */ e("th", { children: "Select Row" }),
34
- r.map((t, s) => /* @__PURE__ */ n("th", { onClick: () => h && k(t), children: [
35
- t,
36
- h && b === t && /* @__PURE__ */ e("span", { children: v === "asc" ? /* @__PURE__ */ e(L, {}) : /* @__PURE__ */ e(x, {}) })
37
- ] }, `header-${s}`))
23
+ const [p, y] = m(null), [R, w] = m(k), [$, N] = m(v), _ = (e) => {
24
+ const t = R === e && $ === "asc" ? "desc" : "asc";
25
+ w(e), N(t), d == null || d(e, t);
26
+ }, h = f.useCallback(
27
+ (e, s) => {
28
+ if (typeof e == "boolean") {
29
+ const t = e ? s : null;
30
+ y(t), t !== null && (c == null || c(t));
31
+ }
32
+ },
33
+ [c]
34
+ );
35
+ return /* @__PURE__ */ o("div", { className: l.tableResponsive, children: /* @__PURE__ */ i("table", { children: [
36
+ /* @__PURE__ */ o("thead", { children: /* @__PURE__ */ i("tr", { children: [
37
+ r && /* @__PURE__ */ o("th", { "aria-label": "Select Row" }),
38
+ u.map((e, s) => /* @__PURE__ */ o(
39
+ "th",
40
+ {
41
+ className: n ? l.pointer : "",
42
+ onClick: () => n && _(e),
43
+ children: /* @__PURE__ */ i("div", { className: l.headerContent, children: [
44
+ e,
45
+ n && /* @__PURE__ */ o(
46
+ j,
47
+ {
48
+ className: l.sortButton,
49
+ color: "secondary",
50
+ name: "Sort",
51
+ onClick: n ? () => _(e) : void 0
52
+ }
53
+ )
54
+ ] })
55
+ },
56
+ `header-${s}`
57
+ ))
38
58
  ] }) }),
39
- /* @__PURE__ */ e("tbody", { children: _.map((t, s) => /* @__PURE__ */ n(
59
+ /* @__PURE__ */ o("tbody", { children: B.map((e, s) => /* @__PURE__ */ i(
40
60
  "tr",
41
61
  {
42
- className: m === s ? w.selectedRow : "",
62
+ className: `${p === s ? l.selectedRow : ""} ${r ? l.pointer : ""}`,
63
+ onClick: r ? () => h(!0, s) : void 0,
43
64
  children: [
44
- p && /* @__PURE__ */ e("td", { children: /* @__PURE__ */ e(
45
- "input",
65
+ r && /* @__PURE__ */ o("td", { children: /* @__PURE__ */ o(
66
+ O,
46
67
  {
47
- type: "radio",
48
- name: "tableRowSelect",
49
- value: s,
50
- checked: m === s,
51
- onChange: O,
52
- "aria-label": `${s}`
68
+ size: "small",
69
+ onCheckedChange: (t) => h(t, s),
70
+ "aria-label": `${s}`,
71
+ checked: p === s
53
72
  }
54
73
  ) }),
55
- t.map((c, $) => {
74
+ e.map((t, C) => {
56
75
  let a;
57
- return o.isValidElement(c) ? a = c : u ? a = o.createElement(u, { item: c }) : a = String(c), /* @__PURE__ */ e("td", { children: a }, `item-${$}`);
76
+ return f.isValidElement(t) ? a = t : b ? a = f.createElement(b, { item: t }) : a = String(t), /* @__PURE__ */ o("td", { children: a }, `item-${C}`);
58
77
  })
59
78
  ]
60
79
  },
@@ -63,5 +82,5 @@ function G({
63
82
  ] }) });
64
83
  }
65
84
  export {
66
- G as Table
85
+ F as Table
67
86
  };
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+
3
+ declare function TableShowcase(): import("react/jsx-runtime").JSX.Element;
4
+ declare const _default: React.MemoExoticComponent<typeof TableShowcase>;
5
+ export default _default;
@@ -0,0 +1,55 @@
1
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
+ import d from "react";
3
+ import { Badge as l } from "../Badge/Badge.js";
4
+ import { Flex as a } from "../Layout/Flex/Flex.js";
5
+ import "../Interactive/Interactive.js";
6
+ import { Scrollable as c } from "../Layout/Scrollable/Scrollable.js";
7
+ import "../Layout/Scrollable/VirtualScrollable.js";
8
+ import { Text as r } from "../Text/Text.js";
9
+ import { Table as o } from "./Table.js";
10
+ const i = [
11
+ [
12
+ "Cell 1",
13
+ "Cell 2",
14
+ "Cell 3",
15
+ new Date(2023, 0, 1).toLocaleDateString(),
16
+ /* @__PURE__ */ e(l, { color: "error", children: "Error" }, "1")
17
+ ],
18
+ ["Cell 4", "Cell 5", "Cell 6", new Date(2023, 1, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "2")],
19
+ ["Cell 7", "Cell 8", "Cell 9", new Date(2023, 2, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "3")],
20
+ ["Cell 4", "Cell 5", "Cell 6", new Date(2023, 1, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "2")],
21
+ ["Cell 7", "Cell 8", "Cell 9", new Date(2023, 2, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "3")],
22
+ ["Cell 4", "Cell 5", "Cell 6", new Date(2023, 1, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "2")],
23
+ ["Cell 7", "Cell 8", "Cell 9", new Date(2023, 2, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "3")],
24
+ ["Cell 4", "Cell 5", "Cell 6", new Date(2023, 1, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "2")],
25
+ ["Cell 7", "Cell 8", "Cell 9", new Date(2023, 2, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "3")],
26
+ ["Cell 4", "Cell 5", "Cell 6", new Date(2023, 1, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "2")],
27
+ ["Cell 7", "Cell 8", "Cell 9", new Date(2023, 2, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "3")],
28
+ ["Cell 4", "Cell 5", "Cell 6", new Date(2023, 1, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "2")],
29
+ ["Cell 7", "Cell 8", "Cell 9", new Date(2023, 2, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "3")]
30
+ ], n = ["Header 1", "Header 2", "Header 3", "Date", "Item"];
31
+ function C() {
32
+ return /* @__PURE__ */ t(a, { gap: "large", vertical: !0, children: [
33
+ /* @__PURE__ */ t(a, { gap: "normal", vertical: !0, children: [
34
+ /* @__PURE__ */ e(r, { children: "Table" }),
35
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(o, { includeRadio: !0, headers: n, data: i }) })
36
+ ] }),
37
+ /* @__PURE__ */ t(a, { fullWidth: !0, vertical: !0, children: [
38
+ /* @__PURE__ */ e(r, { children: "Table with scroll" }),
39
+ /* @__PURE__ */ e(
40
+ "div",
41
+ {
42
+ style: {
43
+ height: "400px",
44
+ overflow: "hidden"
45
+ },
46
+ children: /* @__PURE__ */ e(c, { children: /* @__PURE__ */ e(o, { includeRadio: !0, headers: n, data: i }) })
47
+ }
48
+ )
49
+ ] })
50
+ ] });
51
+ }
52
+ const B = d.memo(C);
53
+ export {
54
+ B as default
55
+ };
package/dist/main.d.ts CHANGED
@@ -12,7 +12,7 @@ export type { ILinkSubstitute, ILinkMatch, LinkifyProps, } from './utils/links';
12
12
  export type { OutletPosition } from './utils/hooks';
13
13
  export type { SetTimeoutReturn } from './utils/execution';
14
14
  export { IconButton } from './components/IconButton';
15
- export { Accordion, AccordionTrigger, AccordionHeader, AccordionItem, } from './components/Accordion';
15
+ export { Accordion, AccordionTrigger, AccordionHeader, AccordionItem, AccordionContent, } from './components/Accordion';
16
16
  export { ClipboardButton, CLIPBOARD_TITLE_APPEARANCE } from './components/ClipboardButton';
17
17
  export { Checkbox } from './components/Checkbox';
18
18
  export { Button } from './components/Button/Button';
package/dist/main.js CHANGED
@@ -3,155 +3,156 @@ import { clsx as f } from "./utils/clsx.js";
3
3
  import { getValue as m } from "./utils/getValue.js";
4
4
  import { usePopoverController as l } from "./utils/hooks/usePopoverController.js";
5
5
  import { useInstance as i } from "./utils/hooks/useInstance.js";
6
- import { useDynamicRef as u } from "./utils/hooks/useDynamicRef.js";
6
+ import { useDynamicRef as c } from "./utils/hooks/useDynamicRef.js";
7
7
  import { useGlobalKeyboardEvent as d } from "./utils/hooks/useGlobalKeyboardEvent.js";
8
8
  import { useKeyboardClose as T } from "./utils/hooks/useKeyboardClose.js";
9
9
  import { useWindowResize as g } from "./utils/hooks/useWindowResize.js";
10
10
  import { useOutlet as y } from "./utils/hooks/useOutlet.js";
11
- import { identity as S, invoke as k, noop as A, returnFalse as C, returnTrue as O } from "./utils/functional.js";
11
+ import { identity as S, invoke as A, noop as C, returnFalse as k, returnTrue as O } from "./utils/functional.js";
12
12
  import { Linkify as b, defaultLinkReplacer as E, defaultLinkReplacerx as D, isExternalUrl as _, linkify as h, linkifyx as v, matchLinkNodes as F, matchLinks as U } from "./utils/links.js";
13
13
  import { clamp as K, clamp01 as N } from "./utils/math.js";
14
14
  import { isFalseString as w, isTrueString as G, normalizeSlashes as Y, replaceRange as H, splitByIndices as M, unicodeCharAt as W } from "./utils/string.js";
15
15
  import { debounce as q, throttle as J } from "./utils/execution.js";
16
16
  import { default as X } from "./components/IconButton/IconButton.js";
17
- import { Accordion as $, AccordionHeader as oo, AccordionItem as ro, AccordionTrigger as eo } from "./components/Accordion/Accordion.js";
18
- import { CLIPBOARD_TITLE_APPEARANCE as po, default as fo } from "./components/ClipboardButton/ClipboardButton.js";
19
- import { default as mo } from "./components/Checkbox/Checkbox.js";
20
- import { Button as lo } from "./components/Button/Button.js";
21
- import { LinkButton as io } from "./components/Button/LinkButton.js";
17
+ import { Accordion as $, AccordionContent as oo, AccordionHeader as ro, AccordionItem as eo, AccordionTrigger as to } from "./components/Accordion/Accordion.js";
18
+ import { CLIPBOARD_TITLE_APPEARANCE as fo, default as xo } from "./components/ClipboardButton/ClipboardButton.js";
19
+ import { default as ao } from "./components/Checkbox/Checkbox.js";
20
+ import { Button as no } from "./components/Button/Button.js";
21
+ import { LinkButton as so } from "./components/Button/LinkButton.js";
22
22
  import { ButtonBar as uo } from "./components/Button/ButtonBar.js";
23
- import { Avatar as Io } from "./components/Avatar/Avatar.js";
24
- import { BACKDROP_OUTLET_ID as Lo, BackdropPortal as go } from "./components/BackdropPortal/BackdropPortal.js";
25
- import { Badge as yo } from "./components/Badge/Badge.js";
26
- import { ControlBox as So } from "./components/ControlBox/ControlBox.js";
27
- import { CountryFlag as Ao } from "./components/CountryFlag/CountryFlag.js";
28
- import { Decorate as Oo } from "./components/Decorate/Decorate.js";
29
- import { Dot as bo } from "./components/Dot/Dot.js";
30
- import { FLYOUT_OUTLET_ID as Do, Flyout as _o } from "./components/Flyout/Flyout.js";
31
- import { Logos as vo } from "./components/Logos/index.js";
32
- import { I as Uo } from "./cfxIcons-BlbKR-zU.js";
33
- import { I as Ko } from "./cfxIconsBig-CNY8zL27.js";
34
- import { Icon as Vo } from "./components/Icon/Icon.js";
35
- import { IconBig as Go } from "./components/IconBig/IconBig.js";
36
- import { Indicator as Ho } from "./components/Indicator/Indicator.js";
37
- import { default as Wo } from "./components/InfoPanel/InfoPanel.js";
38
- import { default as qo } from "./components/Input/Input.js";
39
- import { default as Qo } from "./components/Input/RichInput.js";
40
- import { Interactive as Zo } from "./components/Interactive/Interactive.js";
41
- import { Island as or } from "./components/Island/Island.js";
42
- import { Box as er } from "./components/Layout/Box/Box.js";
43
- import { Center as pr } from "./components/Layout/Center/Center.js";
44
- import { Flex as xr } from "./components/Layout/Flex/Flex.js";
45
- import { FlexRestricter as ar } from "./components/Layout/Flex/FlexRestricter.js";
46
- import { Pad as nr } from "./components/Layout/Pad/Pad.js";
47
- import { Page as sr } from "./components/Layout/Page/Page.js";
48
- import { R as cr } from "./Rail-rtPENZs2.js";
49
- import { Scrollable as Ir } from "./components/Layout/Scrollable/Scrollable.js";
50
- import { VirtualScrollable as Lr } from "./components/Layout/Scrollable/VirtualScrollable.js";
51
- import { Loaf as Br } from "./components/Loaf/Loaf.js";
52
- import { Modal as Rr } from "./components/Modal/Modal.js";
53
- import { NavList as kr } from "./components/NavList/NavList.js";
54
- import { OVERLAY_OUTLET_ID as Cr, Overlay as Or } from "./components/Overlay/Overlay.js";
55
- import { Popover as br } from "./components/Popover/Popover.js";
56
- import { PremiumBadge as Dr } from "./components/PremiumBadge/PremiumBadge.js";
57
- import { Prose as hr } from "./components/Prose/Prose.js";
58
- import { Radio as Fr } from "./components/Radio/Radio.js";
59
- import { Select as zr } from "./components/Select/Select.js";
60
- import { Separator as Nr } from "./components/Separator/Separator.js";
61
- import { Shroud as wr } from "./components/Shroud/Shroud.js";
62
- import { Spacer as Yr } from "./components/Spacer/Spacer.js";
63
- import { Style as Mr, useContextualStyle as Wr } from "./components/Style/Style.js";
64
- import { default as qr } from "./components/Switch/Switch.js";
65
- import { ToggleGroup as Qr } from "./components/ToggleGroup/ToggleGroup.js";
66
- import { Tabular as Zr } from "./components/Tabular/Tabular.js";
67
- import { Table as oe } from "./components/Table/Table.js";
68
- import { Text as ee, TextBlock as te, getTextOpacity as pe } from "./components/Text/Text.js";
69
- import { Textarea as xe } from "./components/Textarea/Textarea.js";
70
- import { TITLE_OUTLET_ID as ae, Title as le } from "./components/Title/Title.js";
71
- import { default as ie } from "./components/InputDropzone/InputDropzone.js";
23
+ import { Avatar as To } from "./components/Avatar/Avatar.js";
24
+ import { BACKDROP_OUTLET_ID as go, BackdropPortal as Bo } from "./components/BackdropPortal/BackdropPortal.js";
25
+ import { Badge as Ro } from "./components/Badge/Badge.js";
26
+ import { ControlBox as Ao } from "./components/ControlBox/ControlBox.js";
27
+ import { CountryFlag as ko } from "./components/CountryFlag/CountryFlag.js";
28
+ import { Decorate as Po } from "./components/Decorate/Decorate.js";
29
+ import { Dot as Eo } from "./components/Dot/Dot.js";
30
+ import { FLYOUT_OUTLET_ID as _o, Flyout as ho } from "./components/Flyout/Flyout.js";
31
+ import { Logos as Fo } from "./components/Logos/index.js";
32
+ import { I as zo } from "./cfxIcons-BlbKR-zU.js";
33
+ import { I as No } from "./cfxIconsBig-CNY8zL27.js";
34
+ import { Icon as wo } from "./components/Icon/Icon.js";
35
+ import { IconBig as Yo } from "./components/IconBig/IconBig.js";
36
+ import { Indicator as Mo } from "./components/Indicator/Indicator.js";
37
+ import { default as jo } from "./components/InfoPanel/InfoPanel.js";
38
+ import { default as Jo } from "./components/Input/Input.js";
39
+ import { default as Xo } from "./components/Input/RichInput.js";
40
+ import { Interactive as $o } from "./components/Interactive/Interactive.js";
41
+ import { Island as rr } from "./components/Island/Island.js";
42
+ import { Box as tr } from "./components/Layout/Box/Box.js";
43
+ import { Center as fr } from "./components/Layout/Center/Center.js";
44
+ import { Flex as mr } from "./components/Layout/Flex/Flex.js";
45
+ import { FlexRestricter as lr } from "./components/Layout/Flex/FlexRestricter.js";
46
+ import { Pad as ir } from "./components/Layout/Pad/Pad.js";
47
+ import { Page as cr } from "./components/Layout/Page/Page.js";
48
+ import { R as dr } from "./Rail-rtPENZs2.js";
49
+ import { Scrollable as Tr } from "./components/Layout/Scrollable/Scrollable.js";
50
+ import { VirtualScrollable as gr } from "./components/Layout/Scrollable/VirtualScrollable.js";
51
+ import { Loaf as yr } from "./components/Loaf/Loaf.js";
52
+ import { Modal as Sr } from "./components/Modal/Modal.js";
53
+ import { NavList as Cr } from "./components/NavList/NavList.js";
54
+ import { OVERLAY_OUTLET_ID as Or, Overlay as Pr } from "./components/Overlay/Overlay.js";
55
+ import { Popover as Er } from "./components/Popover/Popover.js";
56
+ import { PremiumBadge as _r } from "./components/PremiumBadge/PremiumBadge.js";
57
+ import { Prose as vr } from "./components/Prose/Prose.js";
58
+ import { Radio as Ur } from "./components/Radio/Radio.js";
59
+ import { Select as Kr } from "./components/Select/Select.js";
60
+ import { Separator as Vr } from "./components/Separator/Separator.js";
61
+ import { Shroud as Gr } from "./components/Shroud/Shroud.js";
62
+ import { Spacer as Hr } from "./components/Spacer/Spacer.js";
63
+ import { Style as Wr, useContextualStyle as jr } from "./components/Style/Style.js";
64
+ import { default as Jr } from "./components/Switch/Switch.js";
65
+ import { ToggleGroup as Xr } from "./components/ToggleGroup/ToggleGroup.js";
66
+ import { Tabular as $r } from "./components/Tabular/Tabular.js";
67
+ import { Table as re } from "./components/Table/Table.js";
68
+ import { Text as te, TextBlock as pe, getTextOpacity as fe } from "./components/Text/Text.js";
69
+ import { Textarea as me } from "./components/Textarea/Textarea.js";
70
+ import { TITLE_OUTLET_ID as le, Title as ne } from "./components/Title/Title.js";
71
+ import { default as se } from "./components/InputDropzone/InputDropzone.js";
72
72
  import "./components/InputDropzone/ItemPreview.js";
73
73
  import { OnScreenSensor as ue } from "./components/OnScreenSensor.js";
74
- import { ui as de } from "./components/ui.js";
75
- import { Symbols as Te } from "./components/Symbols.js";
74
+ import { ui as Ie } from "./components/ui.js";
75
+ import { Symbols as Le } from "./components/Symbols.js";
76
76
  export {
77
77
  $ as Accordion,
78
- oo as AccordionHeader,
79
- ro as AccordionItem,
80
- eo as AccordionTrigger,
81
- Io as Avatar,
82
- Lo as BACKDROP_OUTLET_ID,
83
- go as BackdropPortal,
84
- yo as Badge,
85
- er as Box,
86
- lo as Button,
78
+ oo as AccordionContent,
79
+ ro as AccordionHeader,
80
+ eo as AccordionItem,
81
+ to as AccordionTrigger,
82
+ To as Avatar,
83
+ go as BACKDROP_OUTLET_ID,
84
+ Bo as BackdropPortal,
85
+ Ro as Badge,
86
+ tr as Box,
87
+ no as Button,
87
88
  uo as ButtonBar,
88
- po as CLIPBOARD_TITLE_APPEARANCE,
89
- pr as Center,
90
- mo as Checkbox,
91
- fo as ClipboardButton,
92
- So as ControlBox,
93
- Ao as CountryFlag,
94
- Oo as Decorate,
95
- bo as Dot,
96
- Do as FLYOUT_OUTLET_ID,
97
- xr as Flex,
98
- ar as FlexRestricter,
99
- _o as Flyout,
100
- Vo as Icon,
101
- Go as IconBig,
89
+ fo as CLIPBOARD_TITLE_APPEARANCE,
90
+ fr as Center,
91
+ ao as Checkbox,
92
+ xo as ClipboardButton,
93
+ Ao as ControlBox,
94
+ ko as CountryFlag,
95
+ Po as Decorate,
96
+ Eo as Dot,
97
+ _o as FLYOUT_OUTLET_ID,
98
+ mr as Flex,
99
+ lr as FlexRestricter,
100
+ ho as Flyout,
101
+ wo as Icon,
102
+ Yo as IconBig,
102
103
  X as IconButton,
103
- Uo as Icons,
104
- Ko as IconsBig,
105
- Ho as Indicator,
106
- Wo as InfoPanel,
107
- qo as Input,
108
- ie as InputDropzone,
109
- Zo as Interactive,
110
- or as Island,
111
- io as LinkButton,
104
+ zo as Icons,
105
+ No as IconsBig,
106
+ Mo as Indicator,
107
+ jo as InfoPanel,
108
+ Jo as Input,
109
+ se as InputDropzone,
110
+ $o as Interactive,
111
+ rr as Island,
112
+ so as LinkButton,
112
113
  b as Linkify,
113
- Br as Loaf,
114
- vo as Logos,
115
- Rr as Modal,
116
- kr as NavList,
117
- Cr as OVERLAY_OUTLET_ID,
114
+ yr as Loaf,
115
+ Fo as Logos,
116
+ Sr as Modal,
117
+ Cr as NavList,
118
+ Or as OVERLAY_OUTLET_ID,
118
119
  ue as OnScreenSensor,
119
- Or as Overlay,
120
- nr as Pad,
121
- sr as Page,
122
- br as Popover,
123
- Dr as PremiumBadge,
124
- hr as Prose,
125
- Fr as Radio,
126
- cr as Rail,
127
- Qo as RichInput,
128
- Ir as Scrollable,
129
- zr as Select,
130
- Nr as Separator,
131
- wr as Shroud,
132
- Yr as Spacer,
133
- Mr as Style,
134
- qr as Switch,
135
- Te as Symbols,
136
- ae as TITLE_OUTLET_ID,
137
- oe as Table,
138
- Zr as Tabular,
139
- ee as Text,
140
- te as TextBlock,
141
- xe as Textarea,
142
- le as Title,
143
- Qr as ToggleGroup,
144
- Lr as VirtualScrollable,
120
+ Pr as Overlay,
121
+ ir as Pad,
122
+ cr as Page,
123
+ Er as Popover,
124
+ _r as PremiumBadge,
125
+ vr as Prose,
126
+ Ur as Radio,
127
+ dr as Rail,
128
+ Xo as RichInput,
129
+ Tr as Scrollable,
130
+ Kr as Select,
131
+ Vr as Separator,
132
+ Gr as Shroud,
133
+ Hr as Spacer,
134
+ Wr as Style,
135
+ Jr as Switch,
136
+ Le as Symbols,
137
+ le as TITLE_OUTLET_ID,
138
+ re as Table,
139
+ $r as Tabular,
140
+ te as Text,
141
+ pe as TextBlock,
142
+ me as Textarea,
143
+ ne as Title,
144
+ Xr as ToggleGroup,
145
+ gr as VirtualScrollable,
145
146
  K as clamp,
146
147
  N as clamp01,
147
148
  f as clsx,
148
149
  q as debounce,
149
150
  E as defaultLinkReplacer,
150
151
  D as defaultLinkReplacerx,
151
- pe as getTextOpacity,
152
+ fe as getTextOpacity,
152
153
  m as getValue,
153
154
  S as identity,
154
- k as invoke,
155
+ A as invoke,
155
156
  _ as isExternalUrl,
156
157
  w as isFalseString,
157
158
  G as isTrueString,
@@ -160,17 +161,17 @@ export {
160
161
  F as matchLinkNodes,
161
162
  U as matchLinks,
162
163
  t as mergeRefs,
163
- A as noop,
164
+ C as noop,
164
165
  Y as normalizeSlashes,
165
166
  H as replaceRange,
166
- C as returnFalse,
167
+ k as returnFalse,
167
168
  O as returnTrue,
168
169
  M as splitByIndices,
169
170
  J as throttle,
170
- de as ui,
171
+ Ie as ui,
171
172
  W as unicodeCharAt,
172
- Wr as useContextualStyle,
173
- u as useDynamicRef,
173
+ jr as useContextualStyle,
174
+ c as useDynamicRef,
174
175
  d as useGlobalKeyboardEvent,
175
176
  i as useInstance,
176
177
  T as useKeyboardClose,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cfx-dev/ui-components",
3
3
  "private": false,
4
- "version": "2.0.2",
4
+ "version": "2.0.4",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "main": "dist/main.js",
@@ -1,60 +0,0 @@
1
- import i from "react";
2
- var s = {
3
- color: void 0,
4
- size: void 0,
5
- className: void 0,
6
- style: void 0,
7
- attr: void 0
8
- }, f = i.createContext && i.createContext(s), l = function() {
9
- return l = Object.assign || function(e) {
10
- for (var n, t = 1, r = arguments.length; t < r; t++) {
11
- n = arguments[t];
12
- for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
13
- }
14
- return e;
15
- }, l.apply(this, arguments);
16
- }, y = function(e, n) {
17
- var t = {};
18
- for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && n.indexOf(r) < 0 && (t[r] = e[r]);
19
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, r = Object.getOwnPropertySymbols(e); a < r.length; a++)
20
- n.indexOf(r[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[a]) && (t[r[a]] = e[r[a]]);
21
- return t;
22
- };
23
- function m(e) {
24
- return e && e.map(function(n, t) {
25
- return i.createElement(n.tag, l({
26
- key: t
27
- }, n.attr), m(n.child));
28
- });
29
- }
30
- function h(e) {
31
- return function(n) {
32
- return i.createElement(g, l({
33
- attr: l({}, e.attr)
34
- }, n), m(e.child));
35
- };
36
- }
37
- function g(e) {
38
- var n = function(t) {
39
- var r = e.attr, a = e.size, c = e.title, d = y(e, ["attr", "size", "title"]), o = a || t.size || "1em", u;
40
- return t.className && (u = t.className), e.className && (u = (u ? u + " " : "") + e.className), i.createElement("svg", l({
41
- stroke: "currentColor",
42
- fill: "currentColor",
43
- strokeWidth: "0"
44
- }, t.attr, r, d, {
45
- className: u,
46
- style: l(l({
47
- color: e.color || t.color
48
- }, t.style), e.style),
49
- height: o,
50
- width: o,
51
- xmlns: "http://www.w3.org/2000/svg"
52
- }), c && i.createElement("title", null, c), e.children);
53
- };
54
- return f !== void 0 ? i.createElement(f.Consumer, null, function(t) {
55
- return n(t);
56
- }) : n(s);
57
- }
58
- export {
59
- h as G
60
- };