@cfx-dev/ui-components 4.3.17 → 4.3.18
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/components/Label/Label.d.ts +5 -0
- package/dist/components/Label/Label.js +20 -0
- package/dist/components/Label/index.d.ts +2 -0
- package/dist/components/Label/index.js +4 -0
- package/dist/components/Text/Text.d.ts +3 -7
- package/dist/components/Text/Text.types.d.ts +3 -0
- package/dist/components/Text/index.d.ts +1 -1
- package/dist/main.d.ts +3 -1
- package/dist/main.js +38 -36
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Text as s } from "../Text/Text.js";
|
|
3
|
+
import "../../utils/ui/ui.js";
|
|
4
|
+
function m(r) {
|
|
5
|
+
const {
|
|
6
|
+
children: t,
|
|
7
|
+
...o
|
|
8
|
+
} = r;
|
|
9
|
+
return /* @__PURE__ */ e(
|
|
10
|
+
s,
|
|
11
|
+
{
|
|
12
|
+
as: "label",
|
|
13
|
+
...o,
|
|
14
|
+
children: t
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
m as default
|
|
20
|
+
};
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TextOpacity, TextProps, ResponsiveTextSize } from './Text.types';
|
|
1
|
+
import { TextOpacity, ResponsiveTextSize, TextPropsWithRef } from './Text.types';
|
|
3
2
|
|
|
4
3
|
export declare const textSizeResponsiveValueFormatter: (val: ResponsiveTextSize) => string;
|
|
5
4
|
export declare const lineHeightResponsiveValueFormatter: (val: ResponsiveTextSize) => string;
|
|
6
5
|
export declare const TEXT_OPACITY_MAP: Record<TextOpacity, number | string>;
|
|
7
6
|
export declare const getTextOpacity: (opacity?: TextOpacity, otherwise?: string | number) => string | number;
|
|
8
7
|
export declare const DEFAULT_TEXT_COLOR = "primary";
|
|
9
|
-
export declare function Text(props:
|
|
10
|
-
|
|
11
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export declare function TextBlock(props: TextProps & {
|
|
8
|
+
export declare function Text(props: TextPropsWithRef): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function TextBlock(props: TextPropsWithRef & {
|
|
13
10
|
asDiv?: undefined;
|
|
14
|
-
ref?: React.Ref<HTMLElement>;
|
|
15
11
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Text, TextBlock, TEXT_OPACITY_MAP, DEFAULT_TEXT_COLOR, getTextOpacity, textSizeResponsiveValueFormatter, } from './Text';
|
|
2
2
|
export { TextSizeEnum } from '../../utils/ui';
|
|
3
|
-
export type { TextSize, TextWeight, TextOpacity, TextAs, TextLetterSpacing, TextProps, TextColorProps, ResponsiveTextSize, TextFamaly, } from './Text.types';
|
|
3
|
+
export type { TextSize, TextWeight, TextOpacity, TextAs, TextLetterSpacing, TextProps, TextColorProps, ResponsiveTextSize, TextFamaly, TextPropsWithRef, } from './Text.types';
|
package/dist/main.d.ts
CHANGED
|
@@ -126,7 +126,9 @@ export type { TableRootProps, TableBodyProps, TableHeaderProps, TableCellProps,
|
|
|
126
126
|
export { TableResponsiveText } from './components/TableResponsiveText';
|
|
127
127
|
export type { TableResponsiveTextProps } from './components/TableResponsiveText';
|
|
128
128
|
export { TextSizeEnum, Text, TextBlock, getTextOpacity, DEFAULT_TEXT_COLOR, TEXT_OPACITY_MAP, textSizeResponsiveValueFormatter, } from './components/Text';
|
|
129
|
-
export type { TextSize, TextWeight, TextOpacity, TextAs, TextLetterSpacing, TextProps, TextColorProps, TextFamaly, } from './components/Text';
|
|
129
|
+
export type { TextSize, TextWeight, TextOpacity, TextAs, TextLetterSpacing, TextProps, TextColorProps, TextFamaly, TextPropsWithRef, } from './components/Text';
|
|
130
|
+
export { Label } from './components/Label';
|
|
131
|
+
export type { LabelProps } from './components/Label';
|
|
130
132
|
export { Textarea } from './components/Textarea';
|
|
131
133
|
export type { TextareaProps } from './components/Textarea';
|
|
132
134
|
export { TITLE_OUTLET_ID, titleGetCssStyle, titleGetCoords, Title, } from './components/Title';
|
package/dist/main.js
CHANGED
|
@@ -8,9 +8,9 @@ import { useGlobalKeyboardEvent as d } from "./utils/hooks/useGlobalKeyboardEven
|
|
|
8
8
|
import { useKeyboardClose as T } from "./utils/hooks/useKeyboardClose.js";
|
|
9
9
|
import { useWindowResize as C } from "./utils/hooks/useWindowResize.js";
|
|
10
10
|
import { useOutlet as g } from "./utils/hooks/useOutlet.js";
|
|
11
|
-
import { CLIPBOARD_TITLE_APPEARANCE as
|
|
11
|
+
import { CLIPBOARD_TITLE_APPEARANCE as B, useClipboardComponent as R } from "./utils/hooks/useClipboardComponent.js";
|
|
12
12
|
import { formatDate as D, formatLocaleDate as y, formatShortDate as P } from "./utils/formatDate.js";
|
|
13
|
-
import { CURRENCY_MAP as
|
|
13
|
+
import { CURRENCY_MAP as A, FREE_PRICE_TEXT as k, formatCurrency as _ } from "./utils/formatCurrency.js";
|
|
14
14
|
import { identity as F, invoke as v, noop as h, returnFalse as U, returnTrue as M } from "./utils/functional.js";
|
|
15
15
|
import { Linkify as z, defaultLinkReplacer as N, defaultLinkReplacerx as G, isExternalUrl as V, linkify as Y, linkifyx as K, matchLinkNodes as X, matchLinks as H } from "./utils/links.js";
|
|
16
16
|
import { clamp as j, clamp01 as J, minmax as Q } from "./utils/math.js";
|
|
@@ -20,9 +20,9 @@ import { getColor as xo } from "./utils/color.js";
|
|
|
20
20
|
import { ui as lo } from "./utils/ui/ui.js";
|
|
21
21
|
import { BorderRadiusEnum as so, ColorEnum as io, MediaQueryEnum as co, OffsetEnum as To, TextSizeEnum as Io, ZIndexEnum as Co } from "./utils/ui/ui.types.js";
|
|
22
22
|
import { isInEnum as go } from "./utils/enum.js";
|
|
23
|
-
import { joaat32 as
|
|
23
|
+
import { joaat32 as Bo } from "./utils/joaat32.js";
|
|
24
24
|
import { default as So } from "./components/IconButton/IconButton.js";
|
|
25
|
-
import { Accordion as yo, AccordionContent as Po, AccordionHeader as
|
|
25
|
+
import { Accordion as yo, AccordionContent as Po, AccordionHeader as bo, AccordionItem as Ao, AccordionTrigger as ko } from "./components/Accordion/Accordion.js";
|
|
26
26
|
import { default as Oo } from "./components/ClipboardButton/ClipboardButton.js";
|
|
27
27
|
import { default as vo } from "./components/Checkbox/Checkbox.js";
|
|
28
28
|
import { default as Uo, ButtonContent as Mo, getButtonClassName as wo } from "./components/Button/Button.js";
|
|
@@ -42,10 +42,10 @@ import { Dot as ir } from "./components/Dot/Dot.js";
|
|
|
42
42
|
import { FLYOUT_OUTLET_ID as cr, Flyout as Tr } from "./components/Flyout/Flyout.js";
|
|
43
43
|
import { Logos as Cr } from "./components/Logos/index.js";
|
|
44
44
|
import { I as gr } from "./cfxIcons-B9nzO6TW.js";
|
|
45
|
-
import { I as
|
|
45
|
+
import { I as Br } from "./cfxIconsBig-BLJjMT-Y.js";
|
|
46
46
|
import { Icon as Sr } from "./components/Icon/Icon.js";
|
|
47
47
|
import { IconBig as yr } from "./components/IconBig/IconBig.js";
|
|
48
|
-
import { Indicator as
|
|
48
|
+
import { Indicator as br } from "./components/Indicator/Indicator.js";
|
|
49
49
|
import { default as kr } from "./components/InfoPanel/InfoPanel.js";
|
|
50
50
|
import { default as Or } from "./components/Input/Input.js";
|
|
51
51
|
import { default as vr } from "./components/Input/RichInput.js";
|
|
@@ -66,11 +66,11 @@ import { Loaf as se } from "./components/Loaf/Loaf.js";
|
|
|
66
66
|
import { Modal as de } from "./components/Modal/Modal.js";
|
|
67
67
|
import { NavList as Te } from "./components/NavList/NavList.js";
|
|
68
68
|
import { OVERLAY_OUTLET_ID as Ce, Overlay as Ee } from "./components/Overlay/Overlay.js";
|
|
69
|
-
import { default as
|
|
69
|
+
import { default as Le } from "./components/Pagination/Pagination.js";
|
|
70
70
|
import { Popover as Re } from "./components/Popover/Popover.js";
|
|
71
71
|
import { PremiumBadge as De } from "./components/PremiumBadge/PremiumBadge.js";
|
|
72
72
|
import { Prose as Pe } from "./components/Prose/Prose.js";
|
|
73
|
-
import { Radio as
|
|
73
|
+
import { Radio as Ae } from "./components/Radio/Radio.js";
|
|
74
74
|
import { Select as _e } from "./components/Select/Select.js";
|
|
75
75
|
import { DropdownSelect as Fe } from "./components/DropdownSelect/DropdownSelect.js";
|
|
76
76
|
import { default as he } from "./components/DropdownMenu/DropdownMenu.js";
|
|
@@ -86,19 +86,20 @@ import { DataTable as ot, DataTableHeaderItem as rt, DataTableRow as et } from "
|
|
|
86
86
|
import { Table as at } from "./components/Table/index.js";
|
|
87
87
|
import { default as mt } from "./components/TableResponsiveText/TableResponsiveText.js";
|
|
88
88
|
import { DEFAULT_TEXT_COLOR as xt, TEXT_OPACITY_MAP as nt, Text as lt, TextBlock as ut, getTextOpacity as st, textSizeResponsiveValueFormatter as it } from "./components/Text/Text.js";
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import { default as St } from "./components/InputDropzone/
|
|
93
|
-
import { default as yt } from "./components/
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
89
|
+
import { default as ct } from "./components/Label/Label.js";
|
|
90
|
+
import { Textarea as It } from "./components/Textarea/Textarea.js";
|
|
91
|
+
import { TITLE_OUTLET_ID as Et, Title as gt, titleGetCoords as Lt, titleGetCssStyle as Bt } from "./components/Title/Title.js";
|
|
92
|
+
import { default as St } from "./components/InputDropzone/InputDropzone.js";
|
|
93
|
+
import { default as yt } from "./components/InputDropzone/ItemPreview.js";
|
|
94
|
+
import { default as bt } from "./components/Skeleton/Skeleton.js";
|
|
95
|
+
import { OnScreenSensor as kt } from "./components/OnScreenSensor.js";
|
|
96
|
+
import { Symbols as Ot } from "./components/Symbols.js";
|
|
97
|
+
import { default as vt } from "./components/Table/TableIconButton.js";
|
|
97
98
|
export {
|
|
98
99
|
yo as Accordion,
|
|
99
100
|
Po as AccordionContent,
|
|
100
|
-
|
|
101
|
-
|
|
101
|
+
bo as AccordionHeader,
|
|
102
|
+
Ao as AccordionItem,
|
|
102
103
|
ko as AccordionTrigger,
|
|
103
104
|
or as Avatar,
|
|
104
105
|
er as BACKDROP_OUTLET_ID,
|
|
@@ -112,8 +113,8 @@ export {
|
|
|
112
113
|
No as ButtonBar,
|
|
113
114
|
Mo as ButtonContent,
|
|
114
115
|
qo as ButtonLink,
|
|
115
|
-
|
|
116
|
-
|
|
116
|
+
B as CLIPBOARD_TITLE_APPEARANCE,
|
|
117
|
+
A as CURRENCY_MAP,
|
|
117
118
|
Xr as Center,
|
|
118
119
|
vo as Checkbox,
|
|
119
120
|
Oo as ClipboardButton,
|
|
@@ -128,7 +129,7 @@ export {
|
|
|
128
129
|
ir as Dot,
|
|
129
130
|
he as DropdownMenu,
|
|
130
131
|
Fe as DropdownSelect,
|
|
131
|
-
|
|
132
|
+
yt as DropzoneItemPreview,
|
|
132
133
|
cr as FLYOUT_OUTLET_ID,
|
|
133
134
|
k as FREE_PRICE_TEXT,
|
|
134
135
|
Wr as Flex,
|
|
@@ -142,14 +143,15 @@ export {
|
|
|
142
143
|
yr as IconBig,
|
|
143
144
|
So as IconButton,
|
|
144
145
|
gr as Icons,
|
|
145
|
-
|
|
146
|
-
|
|
146
|
+
Br as IconsBig,
|
|
147
|
+
br as Indicator,
|
|
147
148
|
kr as InfoPanel,
|
|
148
149
|
Or as Input,
|
|
149
|
-
|
|
150
|
+
St as InputDropzone,
|
|
150
151
|
Ur as Interactive,
|
|
151
152
|
wr as Island,
|
|
152
153
|
zr as IslandCorner,
|
|
154
|
+
ct as Label,
|
|
153
155
|
jo as Link,
|
|
154
156
|
Vo as LinkButton,
|
|
155
157
|
z as Linkify,
|
|
@@ -160,38 +162,38 @@ export {
|
|
|
160
162
|
Te as NavList,
|
|
161
163
|
Ce as OVERLAY_OUTLET_ID,
|
|
162
164
|
To as OffsetEnum,
|
|
163
|
-
|
|
165
|
+
kt as OnScreenSensor,
|
|
164
166
|
Ee as Overlay,
|
|
165
167
|
ee as Pad,
|
|
166
168
|
ae as Page,
|
|
167
|
-
|
|
169
|
+
Le as Pagination,
|
|
168
170
|
Re as Popover,
|
|
169
171
|
De as PremiumBadge,
|
|
170
172
|
Pe as Prose,
|
|
171
|
-
|
|
173
|
+
Ae as Radio,
|
|
172
174
|
me as Rail,
|
|
173
175
|
vr as RichInput,
|
|
174
176
|
xe as Scrollable,
|
|
175
177
|
_e as Select,
|
|
176
178
|
Me as Separator,
|
|
177
179
|
ze as Shroud,
|
|
178
|
-
|
|
180
|
+
bt as Skeleton,
|
|
179
181
|
Ge as Slider,
|
|
180
182
|
Ye as Spacer,
|
|
181
183
|
Xe as Style,
|
|
182
184
|
je as Switch,
|
|
183
|
-
|
|
185
|
+
Ot as Symbols,
|
|
184
186
|
nt as TEXT_OPACITY_MAP,
|
|
185
|
-
|
|
187
|
+
Et as TITLE_OUTLET_ID,
|
|
186
188
|
at as Table,
|
|
187
|
-
|
|
189
|
+
vt as TableIconButton,
|
|
188
190
|
mt as TableResponsiveText,
|
|
189
191
|
qe as Tabular,
|
|
190
192
|
lt as Text,
|
|
191
193
|
ut as TextBlock,
|
|
192
194
|
Io as TextSizeEnum,
|
|
193
|
-
|
|
194
|
-
|
|
195
|
+
It as Textarea,
|
|
196
|
+
gt as Title,
|
|
195
197
|
Qe as ToggleGroup,
|
|
196
198
|
le as VirtualScrollable,
|
|
197
199
|
Co as ZIndexEnum,
|
|
@@ -217,7 +219,7 @@ export {
|
|
|
217
219
|
q as isFalseString,
|
|
218
220
|
go as isInEnum,
|
|
219
221
|
$ as isTrueString,
|
|
220
|
-
|
|
222
|
+
Bo as joaat32,
|
|
221
223
|
Y as linkify,
|
|
222
224
|
K as linkifyx,
|
|
223
225
|
X as matchLinkNodes,
|
|
@@ -233,8 +235,8 @@ export {
|
|
|
233
235
|
Yr as stringPropFormater,
|
|
234
236
|
it as textSizeResponsiveValueFormatter,
|
|
235
237
|
mo as throttle,
|
|
236
|
-
|
|
237
|
-
|
|
238
|
+
Lt as titleGetCoords,
|
|
239
|
+
Bt as titleGetCssStyle,
|
|
238
240
|
lo as ui,
|
|
239
241
|
to as unicodeCharAt,
|
|
240
242
|
R as useClipboardComponent,
|