@cfx-dev/ui-components 2.0.1 → 2.0.2
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
|
+
export { Accordion, AccordionTrigger, AccordionHeader, AccordionItem, } from './Accordion';
|
package/dist/main.d.ts
CHANGED
|
@@ -11,6 +11,9 @@ export type { ValueOrGetter } from './utils/getValue';
|
|
|
11
11
|
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
|
+
export { IconButton } from './components/IconButton';
|
|
15
|
+
export { Accordion, AccordionTrigger, AccordionHeader, AccordionItem, } from './components/Accordion';
|
|
16
|
+
export { ClipboardButton, CLIPBOARD_TITLE_APPEARANCE } from './components/ClipboardButton';
|
|
14
17
|
export { Checkbox } from './components/Checkbox';
|
|
15
18
|
export { Button } from './components/Button/Button';
|
|
16
19
|
export { LinkButton } from './components/Button/LinkButton';
|
|
@@ -60,6 +63,8 @@ export { Text, TextBlock, getTextOpacity, } from './components/Text';
|
|
|
60
63
|
export { Textarea } from './components/Textarea/Textarea';
|
|
61
64
|
export { Title, TITLE_OUTLET_ID } from './components/Title/Title';
|
|
62
65
|
export { InputDropzone } from './components/InputDropzone';
|
|
66
|
+
export type { IconButtonProps } from './components/IconButton';
|
|
67
|
+
export type { ClipboardButtonProps } from './components/ClipboardButton';
|
|
63
68
|
export type { InputDropzoneProps, FileWithPath } from './components/InputDropzone';
|
|
64
69
|
export type { InputSize, InputProps, RichInputProps, } from './components/Input';
|
|
65
70
|
export type { SwitchProps } from './components/Switch';
|
package/dist/main.js
CHANGED
|
@@ -5,166 +5,176 @@ import { usePopoverController as l } from "./utils/hooks/usePopoverController.js
|
|
|
5
5
|
import { useInstance as i } from "./utils/hooks/useInstance.js";
|
|
6
6
|
import { useDynamicRef as u } from "./utils/hooks/useDynamicRef.js";
|
|
7
7
|
import { useGlobalKeyboardEvent as d } from "./utils/hooks/useGlobalKeyboardEvent.js";
|
|
8
|
-
import { useKeyboardClose as
|
|
8
|
+
import { useKeyboardClose as T } from "./utils/hooks/useKeyboardClose.js";
|
|
9
9
|
import { useWindowResize as g } from "./utils/hooks/useWindowResize.js";
|
|
10
|
-
import { useOutlet as
|
|
11
|
-
import { identity as
|
|
12
|
-
import { Linkify as
|
|
13
|
-
import { clamp as K, clamp01 as
|
|
14
|
-
import { isFalseString as
|
|
15
|
-
import { debounce as
|
|
16
|
-
import { default as X } from "./components/
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
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";
|
|
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
|
+
import { clamp as K, clamp01 as N } from "./utils/math.js";
|
|
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
|
+
import { debounce as q, throttle as J } from "./utils/execution.js";
|
|
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";
|
|
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";
|
|
69
72
|
import "./components/InputDropzone/ItemPreview.js";
|
|
70
|
-
import { OnScreenSensor as
|
|
71
|
-
import { ui as
|
|
72
|
-
import { Symbols as
|
|
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";
|
|
73
76
|
export {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
Dr as
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
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,
|
|
87
|
+
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,
|
|
102
|
+
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,
|
|
112
|
+
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,
|
|
118
|
+
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,
|
|
135
145
|
K as clamp,
|
|
136
|
-
|
|
146
|
+
N as clamp01,
|
|
137
147
|
f as clsx,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
148
|
+
q as debounce,
|
|
149
|
+
E as defaultLinkReplacer,
|
|
150
|
+
D as defaultLinkReplacerx,
|
|
151
|
+
pe as getTextOpacity,
|
|
142
152
|
m as getValue,
|
|
143
|
-
|
|
153
|
+
S as identity,
|
|
144
154
|
k as invoke,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
155
|
+
_ as isExternalUrl,
|
|
156
|
+
w as isFalseString,
|
|
157
|
+
G as isTrueString,
|
|
158
|
+
h as linkify,
|
|
159
|
+
v as linkifyx,
|
|
160
|
+
F as matchLinkNodes,
|
|
161
|
+
U as matchLinks,
|
|
152
162
|
t as mergeRefs,
|
|
153
|
-
|
|
163
|
+
A as noop,
|
|
154
164
|
Y as normalizeSlashes,
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
165
|
+
H as replaceRange,
|
|
166
|
+
C as returnFalse,
|
|
167
|
+
O as returnTrue,
|
|
168
|
+
M as splitByIndices,
|
|
159
169
|
J as throttle,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
170
|
+
de as ui,
|
|
171
|
+
W as unicodeCharAt,
|
|
172
|
+
Wr as useContextualStyle,
|
|
163
173
|
u as useDynamicRef,
|
|
164
174
|
d as useGlobalKeyboardEvent,
|
|
165
175
|
i as useInstance,
|
|
166
|
-
|
|
167
|
-
|
|
176
|
+
T as useKeyboardClose,
|
|
177
|
+
y as useOutlet,
|
|
168
178
|
l as usePopoverController,
|
|
169
179
|
g as useWindowResize
|
|
170
180
|
};
|