@cfx-dev/ui-components 2.1.1 → 2.1.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.
- package/dist/main.d.ts +2 -0
- package/dist/main.js +137 -135
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -7,10 +7,12 @@ export { isExternalUrl, matchLinks, matchLinkNodes, defaultLinkReplacerx, defaul
|
|
|
7
7
|
export { clamp01, clamp, } from './utils/math';
|
|
8
8
|
export { unicodeCharAt, splitByIndices, replaceRange, normalizeSlashes, isTrueString, isFalseString, } from './utils/string';
|
|
9
9
|
export { debounce, throttle, } from './utils/execution';
|
|
10
|
+
export { getColor } from './utils/color';
|
|
10
11
|
export type { ValueOrGetter } from './utils/getValue';
|
|
11
12
|
export type { ILinkSubstitute, ILinkMatch, LinkifyProps, } from './utils/links';
|
|
12
13
|
export type { OutletPosition } from './utils/hooks';
|
|
13
14
|
export type { SetTimeoutReturn } from './utils/execution';
|
|
15
|
+
export type { GetColorProps } from './utils/color';
|
|
14
16
|
export { IconButton } from './components/IconButton';
|
|
15
17
|
export { Accordion, AccordionTrigger, AccordionHeader, AccordionItem, AccordionContent, } from './components/Accordion';
|
|
16
18
|
export { ClipboardButton, CLIPBOARD_TITLE_APPEARANCE } from './components/ClipboardButton';
|
package/dist/main.js
CHANGED
|
@@ -6,153 +6,155 @@ import { useInstance as i } from "./utils/hooks/useInstance.js";
|
|
|
6
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
|
-
import { useWindowResize as
|
|
9
|
+
import { useWindowResize as L } from "./utils/hooks/useWindowResize.js";
|
|
10
10
|
import { useOutlet as y } from "./utils/hooks/useOutlet.js";
|
|
11
|
-
import { identity as S, invoke as
|
|
11
|
+
import { identity as S, invoke as C, noop as A, 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
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { default as ao } from "./components/
|
|
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 { I as No } from "./
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import { default as Jo } from "./components/
|
|
39
|
-
import { default as Xo } from "./components/Input/
|
|
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 {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
16
|
+
import { getColor as X } from "./utils/color.js";
|
|
17
|
+
import { default as $ } from "./components/IconButton/IconButton.js";
|
|
18
|
+
import { Accordion as ro, AccordionContent as eo, AccordionHeader as to, AccordionItem as po, AccordionTrigger as fo } from "./components/Accordion/Accordion.js";
|
|
19
|
+
import { CLIPBOARD_TITLE_APPEARANCE as mo, default as ao } from "./components/ClipboardButton/ClipboardButton.js";
|
|
20
|
+
import { default as no } from "./components/Checkbox/Checkbox.js";
|
|
21
|
+
import { Button as so } from "./components/Button/Button.js";
|
|
22
|
+
import { LinkButton as uo } from "./components/Button/LinkButton.js";
|
|
23
|
+
import { ButtonBar as To } from "./components/Button/ButtonBar.js";
|
|
24
|
+
import { Avatar as Lo } from "./components/Avatar/Avatar.js";
|
|
25
|
+
import { BACKDROP_OUTLET_ID as yo, BackdropPortal as Ro } from "./components/BackdropPortal/BackdropPortal.js";
|
|
26
|
+
import { Badge as Co } from "./components/Badge/Badge.js";
|
|
27
|
+
import { ControlBox as ko } from "./components/ControlBox/ControlBox.js";
|
|
28
|
+
import { CountryFlag as Po } from "./components/CountryFlag/CountryFlag.js";
|
|
29
|
+
import { Decorate as Eo } from "./components/Decorate/Decorate.js";
|
|
30
|
+
import { Dot as _o } from "./components/Dot/Dot.js";
|
|
31
|
+
import { FLYOUT_OUTLET_ID as vo, Flyout as Fo } from "./components/Flyout/Flyout.js";
|
|
32
|
+
import { Logos as zo } from "./components/Logos/index.js";
|
|
33
|
+
import { I as No } from "./cfxIcons-BlbKR-zU.js";
|
|
34
|
+
import { I as wo } from "./cfxIconsBig-CNY8zL27.js";
|
|
35
|
+
import { Icon as Yo } from "./components/Icon/Icon.js";
|
|
36
|
+
import { IconBig as Mo } from "./components/IconBig/IconBig.js";
|
|
37
|
+
import { Indicator as jo } from "./components/Indicator/Indicator.js";
|
|
38
|
+
import { default as Jo } from "./components/InfoPanel/InfoPanel.js";
|
|
39
|
+
import { default as Xo } from "./components/Input/Input.js";
|
|
40
|
+
import { default as $o } from "./components/Input/RichInput.js";
|
|
41
|
+
import { Interactive as rr } from "./components/Interactive/Interactive.js";
|
|
42
|
+
import { Island as tr } from "./components/Island/Island.js";
|
|
43
|
+
import { Box as fr } from "./components/Layout/Box/Box.js";
|
|
44
|
+
import { Center as mr } from "./components/Layout/Center/Center.js";
|
|
45
|
+
import { Flex as lr } from "./components/Layout/Flex/Flex.js";
|
|
46
|
+
import { FlexRestricter as ir } from "./components/Layout/Flex/FlexRestricter.js";
|
|
47
|
+
import { Pad as cr } from "./components/Layout/Pad/Pad.js";
|
|
48
|
+
import { Page as dr } from "./components/Layout/Page/Page.js";
|
|
49
|
+
import { R as Tr } from "./Rail-rtPENZs2.js";
|
|
50
|
+
import { Scrollable as Lr } from "./components/Layout/Scrollable/Scrollable.js";
|
|
51
|
+
import { VirtualScrollable as yr } from "./components/Layout/Scrollable/VirtualScrollable.js";
|
|
52
|
+
import { Loaf as Sr } from "./components/Loaf/Loaf.js";
|
|
53
|
+
import { Modal as Ar } from "./components/Modal/Modal.js";
|
|
54
|
+
import { NavList as Or } from "./components/NavList/NavList.js";
|
|
55
|
+
import { OVERLAY_OUTLET_ID as br, Overlay as Er } from "./components/Overlay/Overlay.js";
|
|
56
|
+
import { Popover as _r } from "./components/Popover/Popover.js";
|
|
57
|
+
import { PremiumBadge as vr } from "./components/PremiumBadge/PremiumBadge.js";
|
|
58
|
+
import { Prose as Ur } from "./components/Prose/Prose.js";
|
|
59
|
+
import { Radio as Kr } from "./components/Radio/Radio.js";
|
|
60
|
+
import { Select as Vr } from "./components/Select/Select.js";
|
|
61
|
+
import { Separator as Gr } from "./components/Separator/Separator.js";
|
|
62
|
+
import { Shroud as Hr } from "./components/Shroud/Shroud.js";
|
|
63
|
+
import { Spacer as Wr } from "./components/Spacer/Spacer.js";
|
|
64
|
+
import { Style as qr, useContextualStyle as Jr } from "./components/Style/Style.js";
|
|
65
|
+
import { default as Xr } from "./components/Switch/Switch.js";
|
|
66
|
+
import { ToggleGroup as $r } from "./components/ToggleGroup/ToggleGroup.js";
|
|
67
|
+
import { Tabular as re } from "./components/Tabular/Tabular.js";
|
|
68
|
+
import { Table as te } from "./components/Table/Table.js";
|
|
69
|
+
import { Text as fe, TextBlock as xe, getTextOpacity as me } from "./components/Text/Text.js";
|
|
70
|
+
import { Textarea as le } from "./components/Textarea/Textarea.js";
|
|
71
|
+
import { TITLE_OUTLET_ID as ie, Title as se } from "./components/Title/Title.js";
|
|
72
|
+
import { default as ue } from "./components/InputDropzone/InputDropzone.js";
|
|
72
73
|
import "./components/InputDropzone/ItemPreview.js";
|
|
73
|
-
import { OnScreenSensor as
|
|
74
|
-
import { ui as
|
|
75
|
-
import { Symbols as
|
|
74
|
+
import { OnScreenSensor as Ie } from "./components/OnScreenSensor.js";
|
|
75
|
+
import { ui as ge } from "./components/ui.js";
|
|
76
|
+
import { Symbols as Be } from "./components/Symbols.js";
|
|
76
77
|
export {
|
|
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
|
-
|
|
78
|
+
ro as Accordion,
|
|
79
|
+
eo as AccordionContent,
|
|
80
|
+
to as AccordionHeader,
|
|
81
|
+
po as AccordionItem,
|
|
82
|
+
fo as AccordionTrigger,
|
|
83
|
+
Lo as Avatar,
|
|
84
|
+
yo as BACKDROP_OUTLET_ID,
|
|
85
|
+
Ro as BackdropPortal,
|
|
86
|
+
Co as Badge,
|
|
87
|
+
fr as Box,
|
|
88
|
+
so as Button,
|
|
89
|
+
To as ButtonBar,
|
|
90
|
+
mo as CLIPBOARD_TITLE_APPEARANCE,
|
|
91
|
+
mr as Center,
|
|
92
|
+
no as Checkbox,
|
|
93
|
+
ao as ClipboardButton,
|
|
94
|
+
ko as ControlBox,
|
|
95
|
+
Po as CountryFlag,
|
|
96
|
+
Eo as Decorate,
|
|
97
|
+
_o as Dot,
|
|
98
|
+
vo as FLYOUT_OUTLET_ID,
|
|
99
|
+
lr as Flex,
|
|
100
|
+
ir as FlexRestricter,
|
|
101
|
+
Fo as Flyout,
|
|
102
|
+
Yo as Icon,
|
|
103
|
+
Mo as IconBig,
|
|
104
|
+
$ as IconButton,
|
|
105
|
+
No as Icons,
|
|
106
|
+
wo as IconsBig,
|
|
107
|
+
jo as Indicator,
|
|
108
|
+
Jo as InfoPanel,
|
|
109
|
+
Xo as Input,
|
|
110
|
+
ue as InputDropzone,
|
|
111
|
+
rr as Interactive,
|
|
112
|
+
tr as Island,
|
|
113
|
+
uo as LinkButton,
|
|
113
114
|
b as Linkify,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
115
|
+
Sr as Loaf,
|
|
116
|
+
zo as Logos,
|
|
117
|
+
Ar as Modal,
|
|
118
|
+
Or as NavList,
|
|
119
|
+
br as OVERLAY_OUTLET_ID,
|
|
120
|
+
Ie as OnScreenSensor,
|
|
121
|
+
Er as Overlay,
|
|
122
|
+
cr as Pad,
|
|
123
|
+
dr as Page,
|
|
124
|
+
_r as Popover,
|
|
125
|
+
vr as PremiumBadge,
|
|
126
|
+
Ur as Prose,
|
|
127
|
+
Kr as Radio,
|
|
128
|
+
Tr as Rail,
|
|
129
|
+
$o as RichInput,
|
|
130
|
+
Lr as Scrollable,
|
|
131
|
+
Vr as Select,
|
|
132
|
+
Gr as Separator,
|
|
133
|
+
Hr as Shroud,
|
|
134
|
+
Wr as Spacer,
|
|
135
|
+
qr as Style,
|
|
136
|
+
Xr as Switch,
|
|
137
|
+
Be as Symbols,
|
|
138
|
+
ie as TITLE_OUTLET_ID,
|
|
139
|
+
te as Table,
|
|
140
|
+
re as Tabular,
|
|
141
|
+
fe as Text,
|
|
142
|
+
xe as TextBlock,
|
|
143
|
+
le as Textarea,
|
|
144
|
+
se as Title,
|
|
145
|
+
$r as ToggleGroup,
|
|
146
|
+
yr as VirtualScrollable,
|
|
146
147
|
K as clamp,
|
|
147
148
|
N as clamp01,
|
|
148
149
|
f as clsx,
|
|
149
150
|
q as debounce,
|
|
150
151
|
E as defaultLinkReplacer,
|
|
151
152
|
D as defaultLinkReplacerx,
|
|
152
|
-
|
|
153
|
+
X as getColor,
|
|
154
|
+
me as getTextOpacity,
|
|
153
155
|
m as getValue,
|
|
154
156
|
S as identity,
|
|
155
|
-
|
|
157
|
+
C as invoke,
|
|
156
158
|
_ as isExternalUrl,
|
|
157
159
|
w as isFalseString,
|
|
158
160
|
G as isTrueString,
|
|
@@ -161,21 +163,21 @@ export {
|
|
|
161
163
|
F as matchLinkNodes,
|
|
162
164
|
U as matchLinks,
|
|
163
165
|
t as mergeRefs,
|
|
164
|
-
|
|
166
|
+
A as noop,
|
|
165
167
|
Y as normalizeSlashes,
|
|
166
168
|
H as replaceRange,
|
|
167
169
|
k as returnFalse,
|
|
168
170
|
O as returnTrue,
|
|
169
171
|
M as splitByIndices,
|
|
170
172
|
J as throttle,
|
|
171
|
-
|
|
173
|
+
ge as ui,
|
|
172
174
|
W as unicodeCharAt,
|
|
173
|
-
|
|
175
|
+
Jr as useContextualStyle,
|
|
174
176
|
c as useDynamicRef,
|
|
175
177
|
d as useGlobalKeyboardEvent,
|
|
176
178
|
i as useInstance,
|
|
177
179
|
T as useKeyboardClose,
|
|
178
180
|
y as useOutlet,
|
|
179
181
|
l as usePopoverController,
|
|
180
|
-
|
|
182
|
+
L as useWindowResize
|
|
181
183
|
};
|