@cfx-dev/ui-components 4.3.0 → 4.3.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
.cfxui__DataTable__root__49417 table{width:100%;border-collapse:collapse;border-top-left-radius:var(--border-radius-small);border-top-right-radius:var(--border-radius-small)
|
|
1
|
+
.cfxui__DataTable__root__49417 table{width:100%;border-collapse:collapse;border-top-left-radius:var(--border-radius-small);border-top-right-radius:var(--border-radius-small)}.cfxui__DataTable__root__49417 th,.cfxui__DataTable__root__49417 td{text-align:left;padding:0 calc(var(--quant) * 4);color:rgba(var(--color-primary),1);height:calc(var(--quant) * 8.75);box-sizing:border-box}.cfxui__DataTable__root__49417 td{padding:calc(var(--quant) * 1.5) calc(var(--quant) * 4)}.cfxui__DataTable__root__49417 .cfxui__DataTable__radio__8126b{padding:calc(var(--quant) * .25);width:calc(var(--quant) * 2)}.cfxui__DataTable__root__49417 .cfxui__DataTable__radio__8126b .cfxui__DataTable__radioContent__9c8cc{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.cfxui__DataTable__root__49417 .cfxui__DataTable__pointer__91cb4{cursor:pointer}.cfxui__DataTable__root__49417 .cfxui__DataTable__selectedRow__39a1c{background-color:rgba(var(--color-secondary),.4);box-shadow:0 -1px rgba(var(--color-primary),1) inset}.cfxui__DataTable__root__49417 .cfxui__DataTable__headerText__aa726{letter-spacing:1px!important}.cfxui__DataTable__root__49417 th{position:sticky;top:0;z-index:0;background-color:rgba(var(--color-bg-light),1)}.cfxui__DataTable__root__49417 th .cfxui__DataTable__headerContent__1c65d{display:flex;align-items:center;flex-direction:row}.cfxui__DataTable__root__49417 th .cfxui__DataTable__headerContent__1c65d .cfxui__DataTable__iconButton__51252{margin-left:var(--offset-medium)}.cfxui__DataTable__root__49417 tr{box-shadow:0 -1px rgba(var(--color-bg-light),1) inset;box-sizing:border-box}.cfxui__DataTable__root__49417 tr:hover{background-color:rgba(var(--color-secondary),.2)}.cfxui__DataTable__root__49417 tr:hover:not(.cfxui__DataTable__selectedRow__39a1c){box-shadow:none}.cfxui__DataTable__hidden__41ce8{visibility:hidden}
|
|
@@ -9,10 +9,10 @@ function b(l) {
|
|
|
9
9
|
checked: o = !1,
|
|
10
10
|
isPlaceholder: s,
|
|
11
11
|
disabled: r = !1,
|
|
12
|
-
className:
|
|
13
|
-
...
|
|
12
|
+
className: t,
|
|
13
|
+
...a
|
|
14
14
|
} = l;
|
|
15
|
-
return /* @__PURE__ */ e(f, { width: 2, px: 0, pl: 4, className: i(p.tableCellCheckbox,
|
|
15
|
+
return /* @__PURE__ */ e(f, { width: 2, px: 0, pl: 4, className: i(p.tableCellCheckbox, t), ...a, children: !s && /* @__PURE__ */ e(c, { disabled: r, size: "small", checked: o }) });
|
|
16
16
|
}
|
|
17
17
|
const u = m.memo(b);
|
|
18
18
|
export {
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
1
|
+
import { default as Body } from './TableBody';
|
|
2
|
+
import { default as Cell } from './TableCell';
|
|
3
|
+
import { default as Header } from './TableHeader';
|
|
4
|
+
import { default as Root } from './TableRoot';
|
|
5
|
+
import { default as Row } from './TableRow';
|
|
6
6
|
|
|
7
7
|
export declare const Table: {
|
|
8
|
-
Root: typeof
|
|
9
|
-
Header: typeof
|
|
10
|
-
Body: typeof
|
|
11
|
-
Row: typeof
|
|
12
|
-
Cell: typeof
|
|
8
|
+
Root: typeof Root;
|
|
9
|
+
Header: typeof Header;
|
|
10
|
+
Body: typeof Body;
|
|
11
|
+
Row: typeof Row;
|
|
12
|
+
Cell: typeof Cell;
|
|
13
13
|
CellCheckbox: import('react').MemoExoticComponent<(props: import('./TableCellCheckbox').TableCellCheckboxProps) => import("react/jsx-runtime").JSX.Element>;
|
|
14
|
+
IconButton: import('react').MemoExoticComponent<(props: import('../IconButton').IconButtonProps) => import("react/jsx-runtime").JSX.Element>;
|
|
14
15
|
};
|
|
15
16
|
export { default as TableIconButton } from './TableIconButton';
|
|
16
17
|
export type { TableRootProps } from './TableRoot';
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import o from "./TableBody.js";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const
|
|
9
|
-
Root:
|
|
10
|
-
Header:
|
|
2
|
+
import r from "./TableCell.js";
|
|
3
|
+
import e from "./TableCellCheckbox.js";
|
|
4
|
+
import t from "./TableHeader.js";
|
|
5
|
+
import m from "./TableIconButton.js";
|
|
6
|
+
import l from "./TableRoot.js";
|
|
7
|
+
import a from "./TableRow.js";
|
|
8
|
+
const d = {
|
|
9
|
+
Root: l,
|
|
10
|
+
Header: t,
|
|
11
11
|
Body: o,
|
|
12
|
-
Row:
|
|
13
|
-
Cell:
|
|
14
|
-
CellCheckbox:
|
|
12
|
+
Row: a,
|
|
13
|
+
Cell: r,
|
|
14
|
+
CellCheckbox: e,
|
|
15
|
+
IconButton: m
|
|
15
16
|
};
|
|
16
17
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
d as Table,
|
|
19
|
+
m as TableIconButton
|
|
19
20
|
};
|
package/dist/main.d.ts
CHANGED
|
@@ -114,7 +114,7 @@ export { Tabular } from './components/Tabular';
|
|
|
114
114
|
export type { TabularProps, TabularItem, TabularRootProps, } from './components/Tabular';
|
|
115
115
|
export { DataTable, DataTableHeaderItem, DataTableRow, } from './components/DataTable';
|
|
116
116
|
export type { DataTableHeaderType, DataTableProps, DataTableRowType, DataTableContainerType, DataTableHeaderItemProps, DataTableRowProps, } from './components/DataTable';
|
|
117
|
-
export { Table } from './components/Table';
|
|
117
|
+
export { Table, TableIconButton, } from './components/Table';
|
|
118
118
|
export type { TableRootProps, TableBodyProps, TableHeaderProps, TableCellProps, TableRowProps, } from './components/Table';
|
|
119
119
|
export { TextSizeEnum, Text, TextBlock, getTextOpacity, DEFAULT_TEXT_COLOR, TEXT_OPACITY_MAP, textSizeResponsiveValueFormatter, } from './components/Text';
|
|
120
120
|
export type { TextSize, TextWeight, TextOpacity, TextAs, TextLetterSpacing, TextProps, TextColorProps, TextFamaly, } from './components/Text';
|
package/dist/main.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { mergeRefs as e } from "./utils/mergeRefs.js";
|
|
2
2
|
import { clsx as a } from "./utils/clsx.js";
|
|
3
|
-
import { getValue as
|
|
3
|
+
import { getValue as m } from "./utils/getValue.js";
|
|
4
4
|
import { usePopoverController as x } from "./utils/hooks/usePopoverController.js";
|
|
5
5
|
import { useInstance as l } from "./utils/hooks/useInstance.js";
|
|
6
6
|
import { useDynamicRef as s } 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 C } from "./utils/hooks/useWindowResize.js";
|
|
10
|
-
import { useOutlet as
|
|
10
|
+
import { useOutlet as B } from "./utils/hooks/useOutlet.js";
|
|
11
11
|
import { CLIPBOARD_TITLE_APPEARANCE as L, useClipboardComponent as S } from "./utils/hooks/useClipboardComponent.js";
|
|
12
|
-
import { identity as R, invoke as k, noop as A, returnFalse as D, returnTrue as
|
|
13
|
-
import { Linkify as
|
|
12
|
+
import { identity as R, invoke as k, noop as A, returnFalse as D, returnTrue as b } from "./utils/functional.js";
|
|
13
|
+
import { Linkify as P, defaultLinkReplacer as F, defaultLinkReplacerx as _, isExternalUrl as v, linkify as h, linkifyx as U, matchLinkNodes as z, matchLinks as w } from "./utils/links.js";
|
|
14
14
|
import { clamp as N, clamp01 as G, minmax as V } from "./utils/math.js";
|
|
15
15
|
import { isFalseString as Y, isTrueString as H, normalizeSlashes as W, replaceRange as X, splitByIndices as J, unicodeCharAt as Q } from "./utils/string.js";
|
|
16
16
|
import { debounce as j, throttle as q } from "./utils/execution.js";
|
|
17
17
|
import { getColor as oo } from "./utils/color.js";
|
|
18
18
|
import { ui as eo } from "./utils/ui/ui.js";
|
|
19
|
-
import { BorderRadiusEnum as ao, ColorEnum as
|
|
19
|
+
import { BorderRadiusEnum as ao, ColorEnum as fo, MediaQueryEnum as mo, OffsetEnum as po, TextSizeEnum as xo, ZIndexEnum as no } from "./utils/ui/ui.types.js";
|
|
20
20
|
import { isInEnum as uo } from "./utils/enum.js";
|
|
21
21
|
import { default as io } from "./components/IconButton/IconButton.js";
|
|
22
|
-
import { Accordion as To, AccordionContent as Io, AccordionHeader as Co, AccordionItem as go, AccordionTrigger as
|
|
22
|
+
import { Accordion as To, AccordionContent as Io, AccordionHeader as Co, AccordionItem as go, AccordionTrigger as Bo } from "./components/Accordion/Accordion.js";
|
|
23
23
|
import { default as Lo } from "./components/ClipboardButton/ClipboardButton.js";
|
|
24
24
|
import { default as yo } from "./components/Checkbox/Checkbox.js";
|
|
25
25
|
import { default as ko, ButtonContent as Ao, getButtonClassName as Do } from "./components/Button/Button.js";
|
|
26
|
-
import { ButtonBar as
|
|
26
|
+
import { ButtonBar as Oo } from "./components/Button/ButtonBar.js";
|
|
27
27
|
import { LinkButton as Fo } from "./components/Button/LinkButton.js";
|
|
28
28
|
import { BurgerMenuButton as vo } from "./components/BurgerMenu/BurgerMenuButton.js";
|
|
29
29
|
import { BurgerMenu as Uo } from "./components/BurgerMenu/BurgerMenu.js";
|
|
@@ -36,19 +36,19 @@ import { default as jo } from "./components/ControlBox/ControlBox.js";
|
|
|
36
36
|
import { default as $o } from "./components/CountryFlag/CountryFlag.js";
|
|
37
37
|
import { default as rr } from "./components/Decorate/Decorate.js";
|
|
38
38
|
import { Dot as tr } from "./components/Dot/Dot.js";
|
|
39
|
-
import { FLYOUT_OUTLET_ID as
|
|
39
|
+
import { FLYOUT_OUTLET_ID as fr, Flyout as mr } from "./components/Flyout/Flyout.js";
|
|
40
40
|
import { Logos as xr } from "./components/Logos/index.js";
|
|
41
41
|
import { I as lr } from "./cfxIcons-B9nzO6TW.js";
|
|
42
42
|
import { I as sr } from "./cfxIconsBig-BLJjMT-Y.js";
|
|
43
43
|
import { Icon as dr } from "./components/Icon/Icon.js";
|
|
44
44
|
import { IconBig as Tr } from "./components/IconBig/IconBig.js";
|
|
45
45
|
import { Indicator as Cr } from "./components/Indicator/Indicator.js";
|
|
46
|
-
import { default as
|
|
46
|
+
import { default as Br } from "./components/InfoPanel/InfoPanel.js";
|
|
47
47
|
import { default as Lr } from "./components/Input/Input.js";
|
|
48
48
|
import { default as yr } from "./components/Input/RichInput.js";
|
|
49
49
|
import { Interactive as kr } from "./components/Interactive/Interactive.js";
|
|
50
|
-
import { Island as Dr, IslandCorner as
|
|
51
|
-
import { default as
|
|
50
|
+
import { Island as Dr, IslandCorner as br } from "./components/Island/Island.js";
|
|
51
|
+
import { default as Pr, stringPropFormater as Fr } from "./components/Layout/Box/Box.js";
|
|
52
52
|
import { Center as vr } from "./components/Layout/Center/Center.js";
|
|
53
53
|
import { default as Ur } from "./components/Layout/Flex/Flex.js";
|
|
54
54
|
import { FlexAlignItemsEnum as wr, FlexDirectionEnum as Mr, FlexJustifyContentEnum as Nr, FlexWrapEnum as Gr } from "./components/Layout/Flex/Flex.types.js";
|
|
@@ -60,19 +60,19 @@ import { Scrollable as jr } from "./components/Layout/Scrollable/Scrollable.js";
|
|
|
60
60
|
import { VirtualScrollable as $r } from "./components/Layout/Scrollable/VirtualScrollable.js";
|
|
61
61
|
import { Loaf as re } from "./components/Loaf/Loaf.js";
|
|
62
62
|
import { Modal as te } from "./components/Modal/Modal.js";
|
|
63
|
-
import { NavList as
|
|
63
|
+
import { NavList as fe } from "./components/NavList/NavList.js";
|
|
64
64
|
import { OVERLAY_OUTLET_ID as pe, Overlay as xe } from "./components/Overlay/Overlay.js";
|
|
65
65
|
import { Popover as le } from "./components/Popover/Popover.js";
|
|
66
66
|
import { PremiumBadge as se } from "./components/PremiumBadge/PremiumBadge.js";
|
|
67
67
|
import { Prose as de } from "./components/Prose/Prose.js";
|
|
68
68
|
import { Radio as Te } from "./components/Radio/Radio.js";
|
|
69
69
|
import { Select as Ce } from "./components/Select/Select.js";
|
|
70
|
-
import { DropdownSelect as
|
|
70
|
+
import { DropdownSelect as Be } from "./components/DropdownSelect/DropdownSelect.js";
|
|
71
71
|
import { Separator as Le } from "./components/Separator/Separator.js";
|
|
72
72
|
import { Shroud as ye } from "./components/Shroud/Shroud.js";
|
|
73
73
|
import { Slider as ke } from "./components/Slider/Slider.js";
|
|
74
74
|
import { Spacer as De } from "./components/Spacer/Spacer.js";
|
|
75
|
-
import { Style as
|
|
75
|
+
import { Style as Oe, useContextualStyle as Pe } from "./components/Style/Style.js";
|
|
76
76
|
import { default as _e } from "./components/Switch/Switch.js";
|
|
77
77
|
import { ToggleGroup as he } from "./components/ToggleGroup/ToggleGroup.js";
|
|
78
78
|
import { Tabular as ze } from "./components/Tabular/Tabular.js";
|
|
@@ -81,34 +81,35 @@ import { Table as Ke } from "./components/Table/index.js";
|
|
|
81
81
|
import { DEFAULT_TEXT_COLOR as He, TEXT_OPACITY_MAP as We, Text as Xe, TextBlock as Je, getTextOpacity as Qe, textSizeResponsiveValueFormatter as Ze } from "./components/Text/Text.js";
|
|
82
82
|
import { Textarea as qe } from "./components/Textarea/Textarea.js";
|
|
83
83
|
import { TITLE_OUTLET_ID as ot, Title as rt, titleGetCoords as et, titleGetCssStyle as tt } from "./components/Title/Title.js";
|
|
84
|
-
import { default as
|
|
84
|
+
import { default as ft } from "./components/InputDropzone/InputDropzone.js";
|
|
85
85
|
import { default as pt } from "./components/InputDropzone/ItemPreview.js";
|
|
86
86
|
import { default as nt } from "./components/Skeleton/Skeleton.js";
|
|
87
87
|
import { OnScreenSensor as ut } from "./components/OnScreenSensor.js";
|
|
88
88
|
import { Symbols as it } from "./components/Symbols.js";
|
|
89
|
+
import { default as ct } from "./components/Table/TableIconButton.js";
|
|
89
90
|
export {
|
|
90
91
|
To as Accordion,
|
|
91
92
|
Io as AccordionContent,
|
|
92
93
|
Co as AccordionHeader,
|
|
93
94
|
go as AccordionItem,
|
|
94
|
-
|
|
95
|
+
Bo as AccordionTrigger,
|
|
95
96
|
Yo as Avatar,
|
|
96
97
|
Wo as BACKDROP_OUTLET_ID,
|
|
97
98
|
Xo as BackdropPortal,
|
|
98
99
|
Qo as Badge,
|
|
99
100
|
ao as BorderRadiusEnum,
|
|
100
|
-
|
|
101
|
+
Pr as Box,
|
|
101
102
|
Uo as BurgerMenu,
|
|
102
103
|
vo as BurgerMenuButton,
|
|
103
104
|
ko as Button,
|
|
104
|
-
|
|
105
|
+
Oo as ButtonBar,
|
|
105
106
|
Ao as ButtonContent,
|
|
106
107
|
Vo as ButtonLink,
|
|
107
108
|
L as CLIPBOARD_TITLE_APPEARANCE,
|
|
108
109
|
vr as Center,
|
|
109
110
|
yo as Checkbox,
|
|
110
111
|
Lo as ClipboardButton,
|
|
111
|
-
|
|
112
|
+
fo as ColorEnum,
|
|
112
113
|
jo as ControlBox,
|
|
113
114
|
$o as CountryFlag,
|
|
114
115
|
He as DEFAULT_TEXT_COLOR,
|
|
@@ -117,36 +118,36 @@ export {
|
|
|
117
118
|
Ge as DataTableRow,
|
|
118
119
|
rr as Decorate,
|
|
119
120
|
tr as Dot,
|
|
120
|
-
|
|
121
|
+
Be as DropdownSelect,
|
|
121
122
|
pt as DropzoneItemPreview,
|
|
122
|
-
|
|
123
|
+
fr as FLYOUT_OUTLET_ID,
|
|
123
124
|
Ur as Flex,
|
|
124
125
|
wr as FlexAlignItemsEnum,
|
|
125
126
|
Mr as FlexDirectionEnum,
|
|
126
127
|
Nr as FlexJustifyContentEnum,
|
|
127
128
|
Kr as FlexRestricter,
|
|
128
129
|
Gr as FlexWrapEnum,
|
|
129
|
-
|
|
130
|
+
mr as Flyout,
|
|
130
131
|
dr as Icon,
|
|
131
132
|
Tr as IconBig,
|
|
132
133
|
io as IconButton,
|
|
133
134
|
lr as Icons,
|
|
134
135
|
sr as IconsBig,
|
|
135
136
|
Cr as Indicator,
|
|
136
|
-
|
|
137
|
+
Br as InfoPanel,
|
|
137
138
|
Lr as Input,
|
|
138
|
-
|
|
139
|
+
ft as InputDropzone,
|
|
139
140
|
kr as Interactive,
|
|
140
141
|
Dr as Island,
|
|
141
|
-
|
|
142
|
+
br as IslandCorner,
|
|
142
143
|
wo as Link,
|
|
143
144
|
Fo as LinkButton,
|
|
144
|
-
|
|
145
|
+
P as Linkify,
|
|
145
146
|
re as Loaf,
|
|
146
147
|
xr as Logos,
|
|
147
|
-
|
|
148
|
+
mo as MediaQueryEnum,
|
|
148
149
|
te as Modal,
|
|
149
|
-
|
|
150
|
+
fe as NavList,
|
|
150
151
|
pe as OVERLAY_OUTLET_ID,
|
|
151
152
|
po as OffsetEnum,
|
|
152
153
|
ut as OnScreenSensor,
|
|
@@ -166,12 +167,13 @@ export {
|
|
|
166
167
|
nt as Skeleton,
|
|
167
168
|
ke as Slider,
|
|
168
169
|
De as Spacer,
|
|
169
|
-
|
|
170
|
+
Oe as Style,
|
|
170
171
|
_e as Switch,
|
|
171
172
|
it as Symbols,
|
|
172
173
|
We as TEXT_OPACITY_MAP,
|
|
173
174
|
ot as TITLE_OUTLET_ID,
|
|
174
175
|
Ke as Table,
|
|
176
|
+
ct as TableIconButton,
|
|
175
177
|
ze as Tabular,
|
|
176
178
|
Xe as Text,
|
|
177
179
|
Je as TextBlock,
|
|
@@ -192,7 +194,7 @@ export {
|
|
|
192
194
|
Mo as getLinkClassName,
|
|
193
195
|
No as getLinkStyles,
|
|
194
196
|
Qe as getTextOpacity,
|
|
195
|
-
|
|
197
|
+
m as getValue,
|
|
196
198
|
R as identity,
|
|
197
199
|
k as invoke,
|
|
198
200
|
v as isExternalUrl,
|
|
@@ -209,7 +211,7 @@ export {
|
|
|
209
211
|
W as normalizeSlashes,
|
|
210
212
|
X as replaceRange,
|
|
211
213
|
D as returnFalse,
|
|
212
|
-
|
|
214
|
+
b as returnTrue,
|
|
213
215
|
J as splitByIndices,
|
|
214
216
|
Fr as stringPropFormater,
|
|
215
217
|
Ze as textSizeResponsiveValueFormatter,
|
|
@@ -219,12 +221,12 @@ export {
|
|
|
219
221
|
eo as ui,
|
|
220
222
|
Q as unicodeCharAt,
|
|
221
223
|
S as useClipboardComponent,
|
|
222
|
-
|
|
224
|
+
Pe as useContextualStyle,
|
|
223
225
|
s as useDynamicRef,
|
|
224
226
|
d as useGlobalKeyboardEvent,
|
|
225
227
|
l as useInstance,
|
|
226
228
|
T as useKeyboardClose,
|
|
227
|
-
|
|
229
|
+
B as useOutlet,
|
|
228
230
|
x as usePopoverController,
|
|
229
231
|
C as useWindowResize
|
|
230
232
|
};
|