@cfx-dev/ui-components 4.5.20 → 4.5.22
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 +1 -1
- package/dist/main.js +193 -192
- package/dist/utils/ui/index.d.ts +1 -1
- package/dist/utils/ui/index.js +6 -5
- package/dist/utils/ui/ui.types.d.ts +1 -0
- package/dist/utils/ui/ui.types.js +13 -3
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export { debounce, throttle, } from './utils/execution';
|
|
|
15
15
|
export type { SetTimeoutReturn } from './utils/execution';
|
|
16
16
|
export { getColor } from './utils/color';
|
|
17
17
|
export type { GetColorProps } from './utils/color';
|
|
18
|
-
export { ui, OffsetEnum, MediaQueryEnum, BorderRadiusEnum, ZIndexEnum, ColorEnum, } from './utils/ui';
|
|
18
|
+
export { ui, OffsetEnum, MediaQueryEnum, MediaQueryValuesMap, BorderRadiusEnum, ZIndexEnum, ColorEnum, } from './utils/ui';
|
|
19
19
|
export type { OffsetType, MediaQueryType, ResponsiveOffsetType, ResponsiveValueType, MPProps, BorderRadiusType, ZIndexType, ColorType, OpacityRange, } from './utils/ui';
|
|
20
20
|
export { isInEnum } from './utils/enum';
|
|
21
21
|
export { joaat32 } from './utils/joaat32';
|
package/dist/main.js
CHANGED
|
@@ -11,249 +11,250 @@ import { useOutlet as R } from "./utils/hooks/useOutlet.js";
|
|
|
11
11
|
import { CLIPBOARD_TITLE_APPEARANCE as L, useClipboardComponent as S } from "./utils/hooks/useClipboardComponent.js";
|
|
12
12
|
import { formatDate as y, formatLocaleDate as D, formatShortDate as O } from "./utils/formatDate.js";
|
|
13
13
|
import { CURRENCY_MAP as A, FREE_PRICE_TEXT as P, formatCurrency as b } from "./utils/formatCurrency.js";
|
|
14
|
-
import { identity as k, invoke as h, noop as v, returnFalse as
|
|
15
|
-
import { Linkify as w, defaultLinkReplacer as z, defaultLinkReplacerx as
|
|
16
|
-
import { clamp as
|
|
14
|
+
import { identity as k, invoke as h, noop as v, returnFalse as M, returnTrue as U } from "./utils/functional.js";
|
|
15
|
+
import { Linkify as w, defaultLinkReplacer as z, defaultLinkReplacerx as V, isExternalUrl as Y, linkify as G, linkifyx as H, matchLinkNodes as K, matchLinks as W } from "./utils/links.js";
|
|
16
|
+
import { clamp as Q, clamp01 as j, minmax as J } from "./utils/math.js";
|
|
17
17
|
import { isFalseString as q, isTrueString as $, normalizeSlashes as oo, replaceRange as eo, splitByIndices as ro, unicodeCharAt as to } from "./utils/string.js";
|
|
18
18
|
import { debounce as fo, throttle as mo } from "./utils/execution.js";
|
|
19
19
|
import { getColor as xo } from "./utils/color.js";
|
|
20
20
|
import { ui as lo } from "./utils/ui/ui.js";
|
|
21
|
-
import { BorderRadiusEnum as so, ColorEnum as io, MediaQueryEnum as co,
|
|
22
|
-
import { isInEnum as
|
|
23
|
-
import { joaat32 as
|
|
24
|
-
import { default as
|
|
25
|
-
import { Accordion as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as Uo, ButtonContent as
|
|
29
|
-
import { ButtonBar as
|
|
30
|
-
import { LinkButton as
|
|
31
|
-
import { BurgerMenuButton as
|
|
32
|
-
import { BurgerMenu as
|
|
33
|
-
import { default as jo, getLinkClassName as Jo, getLinkStyles as
|
|
34
|
-
import { default as
|
|
35
|
-
import { Avatar as
|
|
36
|
-
import { BACKDROP_OUTLET_ID as
|
|
37
|
-
import { Badge as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import { Dot as
|
|
42
|
-
import { FLYOUT_OUTLET_ID as
|
|
43
|
-
import { Logos as
|
|
44
|
-
import { I as
|
|
45
|
-
import { I as
|
|
46
|
-
import { Icon as
|
|
47
|
-
import { IconBig as
|
|
48
|
-
import { Indicator as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
21
|
+
import { BorderRadiusEnum as so, ColorEnum as io, MediaQueryEnum as co, MediaQueryValuesMap as To, OffsetEnum as Io, TextSizeEnum as Co, ZIndexEnum as Eo } from "./utils/ui/ui.types.js";
|
|
22
|
+
import { isInEnum as go } from "./utils/enum.js";
|
|
23
|
+
import { joaat32 as So } from "./utils/joaat32.js";
|
|
24
|
+
import { default as yo } from "./components/IconButton/IconButton.js";
|
|
25
|
+
import { Accordion as Oo, AccordionContent as _o, AccordionHeader as Ao, AccordionItem as Po, AccordionTrigger as bo } from "./components/Accordion/Accordion.js";
|
|
26
|
+
import { default as ko } from "./components/ClipboardButton/ClipboardButton.js";
|
|
27
|
+
import { default as vo } from "./components/Checkbox/Checkbox.js";
|
|
28
|
+
import { default as Uo, ButtonContent as No, getButtonClassName as wo } from "./components/Button/Button.js";
|
|
29
|
+
import { ButtonBar as Vo } from "./components/Button/ButtonBar.js";
|
|
30
|
+
import { LinkButton as Go } from "./components/Button/LinkButton.js";
|
|
31
|
+
import { BurgerMenuButton as Ko } from "./components/BurgerMenu/BurgerMenuButton.js";
|
|
32
|
+
import { BurgerMenu as Xo } from "./components/BurgerMenu/BurgerMenu.js";
|
|
33
|
+
import { default as jo, getLinkClassName as Jo, getLinkStyles as Zo } from "./components/Link/Link.js";
|
|
34
|
+
import { default as $o } from "./components/Link/ButtonLink.js";
|
|
35
|
+
import { Avatar as ee } from "./components/Avatar/Avatar.js";
|
|
36
|
+
import { BACKDROP_OUTLET_ID as te, default as ae } from "./components/BackdropPortal/BackdropPortal.js";
|
|
37
|
+
import { Badge as me } from "./components/Badge/Badge.js";
|
|
38
|
+
import { default as xe } from "./components/ControlBox/ControlBox.js";
|
|
39
|
+
import { default as le } from "./components/CountryFlag/CountryFlag.js";
|
|
40
|
+
import { default as se } from "./components/Decorate/Decorate.js";
|
|
41
|
+
import { Dot as de } from "./components/Dot/Dot.js";
|
|
42
|
+
import { FLYOUT_OUTLET_ID as Te, FLYOUT_ROOT_ID as Ie, FLYOUT_ROOT_SHRINK_CLASSNAME as Ce, Flyout as Ee } from "./components/Flyout/Flyout.js";
|
|
43
|
+
import { Logos as ge } from "./components/Logos/index.js";
|
|
44
|
+
import { I as Se } from "./cfxIcons-B4SQ4Ljd.js";
|
|
45
|
+
import { I as ye } from "./cfxIconsBig-BLJjMT-Y.js";
|
|
46
|
+
import { Icon as Oe } from "./components/Icon/Icon.js";
|
|
47
|
+
import { IconBig as Ae } from "./components/IconBig/IconBig.js";
|
|
48
|
+
import { Indicator as be } from "./components/Indicator/Indicator.js";
|
|
49
|
+
import { default as ke } from "./components/InfoPanel/InfoPanel.js";
|
|
50
|
+
import { default as ve } from "./components/Input/Input.js";
|
|
51
51
|
import { default as Ue } from "./components/Input/RichInput.js";
|
|
52
|
-
import { default as
|
|
53
|
-
import { Interactive as
|
|
54
|
-
import { Island as
|
|
55
|
-
import { default as
|
|
56
|
-
import { stringPropFormater as
|
|
52
|
+
import { default as we } from "./components/StyledInput/StyledInput.js";
|
|
53
|
+
import { Interactive as Ve } from "./components/Interactive/Interactive.js";
|
|
54
|
+
import { Island as Ge, IslandCorner as He } from "./components/Island/Island.js";
|
|
55
|
+
import { default as We } from "./components/Box/Box.js";
|
|
56
|
+
import { stringPropFormater as Qe } from "./components/RSC/Box/Box.js";
|
|
57
57
|
import { Center as Je } from "./components/Layout/Center/Center.js";
|
|
58
|
-
import { default as
|
|
59
|
-
import { FlexAlignItemsEnum as
|
|
60
|
-
import { FlexRestricter as
|
|
61
|
-
import { Pad as
|
|
62
|
-
import { Page as
|
|
63
|
-
import { R as
|
|
64
|
-
import { Scrollable as
|
|
65
|
-
import { VirtualScrollable as
|
|
66
|
-
import { Loaf as
|
|
67
|
-
import { Modal as
|
|
68
|
-
import { NavList as
|
|
69
|
-
import { OVERLAY_OUTLET_ID as
|
|
70
|
-
import { default as
|
|
71
|
-
import { Popover as
|
|
72
|
-
import { PremiumBadge as
|
|
73
|
-
import { Prose as
|
|
74
|
-
import { Radio as
|
|
75
|
-
import { Select as
|
|
76
|
-
import { DropdownSelect as
|
|
77
|
-
import { default as
|
|
58
|
+
import { default as qe } from "./components/Flex/Flex.js";
|
|
59
|
+
import { FlexAlignItemsEnum as or, FlexDirectionEnum as er, FlexJustifyContentEnum as rr, FlexWrapEnum as tr } from "./components/RSC/Flex/Flex.types.js";
|
|
60
|
+
import { FlexRestricter as fr } from "./components/RSC/Flex/FlexRestricter.js";
|
|
61
|
+
import { Pad as pr } from "./components/Layout/Pad/Pad.js";
|
|
62
|
+
import { Page as nr } from "./components/Layout/Page/Page.js";
|
|
63
|
+
import { R as ur } from "./Rail-CHFAf3wJ.js";
|
|
64
|
+
import { Scrollable as ir } from "./components/Scrollable/Scrollable.js";
|
|
65
|
+
import { VirtualScrollable as cr } from "./components/Scrollable/VirtualScrollable.js";
|
|
66
|
+
import { Loaf as Ir } from "./components/Loaf/Loaf.js";
|
|
67
|
+
import { Modal as Er } from "./components/Modal/Modal.js";
|
|
68
|
+
import { NavList as gr } from "./components/NavList/NavList.js";
|
|
69
|
+
import { OVERLAY_OUTLET_ID as Sr, Overlay as Br } from "./components/Overlay/Overlay.js";
|
|
70
|
+
import { default as Dr } from "./components/Pagination/Pagination.js";
|
|
71
|
+
import { Popover as _r } from "./components/Popover/Popover.js";
|
|
72
|
+
import { PremiumBadge as Pr } from "./components/PremiumBadge/PremiumBadge.js";
|
|
73
|
+
import { Prose as Fr } from "./components/Prose/Prose.js";
|
|
74
|
+
import { Radio as hr } from "./components/Radio/Radio.js";
|
|
75
|
+
import { Select as Mr } from "./components/Select/Select.js";
|
|
76
|
+
import { DropdownSelect as Nr } from "./components/DropdownSelect/DropdownSelect.js";
|
|
77
|
+
import { default as zr } from "./components/DropdownMenu/DropdownMenu.js";
|
|
78
78
|
import { Separator as Yr } from "./components/Separator/Separator.js";
|
|
79
|
-
import { Shroud as
|
|
80
|
-
import { Slider as
|
|
81
|
-
import { default as
|
|
79
|
+
import { Shroud as Hr } from "./components/Shroud/Shroud.js";
|
|
80
|
+
import { Slider as Wr } from "./components/Slider/Slider.js";
|
|
81
|
+
import { default as Qr } from "./components/Range/Range.js";
|
|
82
82
|
import { default as Jr } from "./components/Range/RangeInput.js";
|
|
83
|
-
import { default as
|
|
84
|
-
import { Spacer as
|
|
85
|
-
import { Style as
|
|
86
|
-
import { default as
|
|
87
|
-
import { ToggleGroup as
|
|
88
|
-
import { Tabular as
|
|
89
|
-
import { DataTable as
|
|
90
|
-
import { Table as
|
|
91
|
-
import { default as
|
|
92
|
-
import { DEFAULT_TEXT_COLOR as
|
|
93
|
-
import { default as
|
|
94
|
-
import { Textarea as
|
|
95
|
-
import { default as
|
|
96
|
-
import { TITLE_OUTLET_ID as
|
|
97
|
-
import { default as
|
|
98
|
-
import { default as
|
|
83
|
+
import { default as qr } from "./components/Range/RangeWithInputs.js";
|
|
84
|
+
import { Spacer as ot } from "./components/Spacer/Spacer.js";
|
|
85
|
+
import { Style as rt, useContextualStyle as tt } from "./components/Style/Style.js";
|
|
86
|
+
import { default as ft } from "./components/Switch/Switch.js";
|
|
87
|
+
import { ToggleGroup as pt } from "./components/ToggleGroup/ToggleGroup.js";
|
|
88
|
+
import { Tabular as nt } from "./components/Tabular/Tabular.js";
|
|
89
|
+
import { DataTable as ut, DataTableHeaderItem as st, DataTableRow as it } from "./components/DataTable/DataTable.js";
|
|
90
|
+
import { Table as ct } from "./components/Table/index.js";
|
|
91
|
+
import { default as It } from "./components/TableResponsiveText/TableResponsiveText.js";
|
|
92
|
+
import { DEFAULT_TEXT_COLOR as Et, TEXT_OPACITY_MAP as Rt, Text as gt, TextBlock as Lt, getTextOpacity as St, lineHeightResponsiveValueFormatter as Bt, textSizeResponsiveValueFormatter as yt } from "./components/Text/Text.js";
|
|
93
|
+
import { default as Ot } from "./components/Label/Label.js";
|
|
94
|
+
import { Textarea as At } from "./components/Textarea/Textarea.js";
|
|
95
|
+
import { default as bt } from "./components/StyledTextarea/StyledTextarea.js";
|
|
96
|
+
import { TITLE_OUTLET_ID as kt, Title as ht, titleGetCoords as vt, titleGetCssStyle as Mt } from "./components/Title/Title.js";
|
|
97
|
+
import { default as Nt } from "./components/InputDropzone/InputDropzone.js";
|
|
98
|
+
import { default as zt } from "./components/InputDropzone/ItemPreview.js";
|
|
99
99
|
import { default as Yt } from "./components/Skeleton/Skeleton.js";
|
|
100
|
-
import { OnScreenSensor as
|
|
101
|
-
import { Symbols as
|
|
102
|
-
import { default as
|
|
100
|
+
import { OnScreenSensor as Ht } from "./components/OnScreenSensor.js";
|
|
101
|
+
import { Symbols as Wt } from "./components/Symbols.js";
|
|
102
|
+
import { default as Qt } from "./components/Table/TableIconButton.js";
|
|
103
103
|
export {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
104
|
+
Oo as Accordion,
|
|
105
|
+
_o as AccordionContent,
|
|
106
|
+
Ao as AccordionHeader,
|
|
107
|
+
Po as AccordionItem,
|
|
108
|
+
bo as AccordionTrigger,
|
|
109
|
+
ee as Avatar,
|
|
110
|
+
te as BACKDROP_OUTLET_ID,
|
|
111
|
+
ae as BackdropPortal,
|
|
112
|
+
me as Badge,
|
|
113
113
|
so as BorderRadiusEnum,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
We as Box,
|
|
115
|
+
Xo as BurgerMenu,
|
|
116
|
+
Ko as BurgerMenuButton,
|
|
117
117
|
Uo as Button,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
Vo as ButtonBar,
|
|
119
|
+
No as ButtonContent,
|
|
120
|
+
$o as ButtonLink,
|
|
121
121
|
L as CLIPBOARD_TITLE_APPEARANCE,
|
|
122
122
|
A as CURRENCY_MAP,
|
|
123
123
|
Je as Center,
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
vo as Checkbox,
|
|
125
|
+
ko as ClipboardButton,
|
|
126
126
|
io as ColorEnum,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
127
|
+
xe as ControlBox,
|
|
128
|
+
le as CountryFlag,
|
|
129
|
+
Et as DEFAULT_TEXT_COLOR,
|
|
130
|
+
ut as DataTable,
|
|
131
|
+
st as DataTableHeaderItem,
|
|
132
|
+
it as DataTableRow,
|
|
133
|
+
se as Decorate,
|
|
134
|
+
de as Dot,
|
|
135
|
+
zr as DropdownMenu,
|
|
136
|
+
Nr as DropdownSelect,
|
|
137
|
+
zt as DropzoneItemPreview,
|
|
138
|
+
Te as FLYOUT_OUTLET_ID,
|
|
139
|
+
Ie as FLYOUT_ROOT_ID,
|
|
140
|
+
Ce as FLYOUT_ROOT_SHRINK_CLASSNAME,
|
|
141
141
|
P as FREE_PRICE_TEXT,
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
142
|
+
qe as Flex,
|
|
143
|
+
or as FlexAlignItemsEnum,
|
|
144
|
+
er as FlexDirectionEnum,
|
|
145
|
+
rr as FlexJustifyContentEnum,
|
|
146
|
+
fr as FlexRestricter,
|
|
147
|
+
tr as FlexWrapEnum,
|
|
148
|
+
Ee as Flyout,
|
|
149
|
+
Oe as Icon,
|
|
150
|
+
Ae as IconBig,
|
|
151
|
+
yo as IconButton,
|
|
152
|
+
Se as Icons,
|
|
153
|
+
ye as IconsBig,
|
|
154
|
+
be as Indicator,
|
|
155
|
+
ke as InfoPanel,
|
|
156
|
+
ve as Input,
|
|
157
|
+
Nt as InputDropzone,
|
|
158
|
+
Ve as Interactive,
|
|
159
|
+
Ge as Island,
|
|
160
|
+
He as IslandCorner,
|
|
161
|
+
Ot as Label,
|
|
162
162
|
jo as Link,
|
|
163
|
-
|
|
163
|
+
Go as LinkButton,
|
|
164
164
|
w as Linkify,
|
|
165
|
-
|
|
166
|
-
|
|
165
|
+
Ir as Loaf,
|
|
166
|
+
ge as Logos,
|
|
167
167
|
co as MediaQueryEnum,
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
168
|
+
To as MediaQueryValuesMap,
|
|
169
|
+
Er as Modal,
|
|
170
|
+
gr as NavList,
|
|
171
|
+
Sr as OVERLAY_OUTLET_ID,
|
|
172
|
+
Io as OffsetEnum,
|
|
173
|
+
Ht as OnScreenSensor,
|
|
174
|
+
Br as Overlay,
|
|
175
|
+
pr as Pad,
|
|
176
|
+
nr as Page,
|
|
177
|
+
Dr as Pagination,
|
|
178
|
+
_r as Popover,
|
|
179
|
+
Pr as PremiumBadge,
|
|
180
|
+
Fr as Prose,
|
|
181
|
+
hr as Radio,
|
|
182
|
+
ur as Rail,
|
|
183
|
+
Qr as Range,
|
|
183
184
|
Jr as RangeInput,
|
|
184
|
-
|
|
185
|
+
qr as RangeWithInputs,
|
|
185
186
|
Ue as RichInput,
|
|
186
|
-
|
|
187
|
-
|
|
187
|
+
ir as Scrollable,
|
|
188
|
+
Mr as Select,
|
|
188
189
|
Yr as Separator,
|
|
189
|
-
|
|
190
|
+
Hr as Shroud,
|
|
190
191
|
Yt as Skeleton,
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
192
|
+
Wr as Slider,
|
|
193
|
+
ot as Spacer,
|
|
194
|
+
rt as Style,
|
|
195
|
+
we as StyledInput,
|
|
196
|
+
bt as StyledTextarea,
|
|
197
|
+
ft as Switch,
|
|
198
|
+
Wt as Symbols,
|
|
199
|
+
Rt as TEXT_OPACITY_MAP,
|
|
200
|
+
kt as TITLE_OUTLET_ID,
|
|
201
|
+
ct as Table,
|
|
202
|
+
Qt as TableIconButton,
|
|
203
|
+
It as TableResponsiveText,
|
|
204
|
+
nt as Tabular,
|
|
205
|
+
gt as Text,
|
|
206
|
+
Lt as TextBlock,
|
|
207
|
+
Co as TextSizeEnum,
|
|
208
|
+
At as Textarea,
|
|
209
|
+
ht as Title,
|
|
210
|
+
pt as ToggleGroup,
|
|
211
|
+
cr as VirtualScrollable,
|
|
212
|
+
Eo as ZIndexEnum,
|
|
213
|
+
Q as clamp,
|
|
214
|
+
j as clamp01,
|
|
214
215
|
a as clsx,
|
|
215
216
|
fo as debounce,
|
|
216
217
|
z as defaultLinkReplacer,
|
|
217
|
-
|
|
218
|
+
V as defaultLinkReplacerx,
|
|
218
219
|
b as formatCurrency,
|
|
219
220
|
y as formatDate,
|
|
220
221
|
D as formatLocaleDate,
|
|
221
222
|
O as formatShortDate,
|
|
222
|
-
|
|
223
|
+
wo as getButtonClassName,
|
|
223
224
|
xo as getColor,
|
|
224
225
|
Jo as getLinkClassName,
|
|
225
|
-
|
|
226
|
-
|
|
226
|
+
Zo as getLinkStyles,
|
|
227
|
+
St as getTextOpacity,
|
|
227
228
|
m as getValue,
|
|
228
229
|
k as identity,
|
|
229
230
|
h as invoke,
|
|
230
|
-
|
|
231
|
+
Y as isExternalUrl,
|
|
231
232
|
q as isFalseString,
|
|
232
|
-
|
|
233
|
+
go as isInEnum,
|
|
233
234
|
$ as isTrueString,
|
|
234
|
-
|
|
235
|
-
|
|
235
|
+
So as joaat32,
|
|
236
|
+
Bt as lineHeightResponsiveValueFormatter,
|
|
236
237
|
G as linkify,
|
|
237
238
|
H as linkifyx,
|
|
238
239
|
K as matchLinkNodes,
|
|
239
240
|
W as matchLinks,
|
|
240
241
|
r as mergeRefs,
|
|
241
|
-
|
|
242
|
+
J as minmax,
|
|
242
243
|
v as noop,
|
|
243
244
|
oo as normalizeSlashes,
|
|
244
245
|
eo as replaceRange,
|
|
245
|
-
|
|
246
|
-
|
|
246
|
+
M as returnFalse,
|
|
247
|
+
U as returnTrue,
|
|
247
248
|
ro as splitByIndices,
|
|
248
|
-
|
|
249
|
-
|
|
249
|
+
Qe as stringPropFormater,
|
|
250
|
+
yt as textSizeResponsiveValueFormatter,
|
|
250
251
|
mo as throttle,
|
|
251
|
-
|
|
252
|
-
|
|
252
|
+
vt as titleGetCoords,
|
|
253
|
+
Mt as titleGetCssStyle,
|
|
253
254
|
lo as ui,
|
|
254
255
|
to as unicodeCharAt,
|
|
255
256
|
S as useClipboardComponent,
|
|
256
|
-
|
|
257
|
+
tt as useContextualStyle,
|
|
257
258
|
s as useDynamicRef,
|
|
258
259
|
d as useGlobalKeyboardEvent,
|
|
259
260
|
l as useInstance,
|
package/dist/utils/ui/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { ui } from './ui';
|
|
2
|
-
export { OffsetEnum, MediaQueryEnum, BorderRadiusEnum, ZIndexEnum, ColorEnum, TextSizeEnum, } from './ui.types';
|
|
2
|
+
export { OffsetEnum, MediaQueryEnum, MediaQueryValuesMap, BorderRadiusEnum, ZIndexEnum, ColorEnum, TextSizeEnum, } from './ui.types';
|
|
3
3
|
export type { OffsetType, MediaQueryType, ResponsiveOffsetType, ResponsiveValueType, MPProps, BorderRadiusType, ZIndexType, ColorType, TextSize, OpacityRange, } from './ui.types';
|
package/dist/utils/ui/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { ui as
|
|
2
|
-
import { BorderRadiusEnum as n, ColorEnum as o, MediaQueryEnum as E, OffsetEnum as d, TextSizeEnum as
|
|
1
|
+
import { ui as r } from "./ui.js";
|
|
2
|
+
import { BorderRadiusEnum as n, ColorEnum as o, MediaQueryEnum as E, MediaQueryValuesMap as a, OffsetEnum as d, TextSizeEnum as i, ZIndexEnum as f } from "./ui.types.js";
|
|
3
3
|
export {
|
|
4
4
|
n as BorderRadiusEnum,
|
|
5
5
|
o as ColorEnum,
|
|
6
6
|
E as MediaQueryEnum,
|
|
7
|
+
a as MediaQueryValuesMap,
|
|
7
8
|
d as OffsetEnum,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
i as TextSizeEnum,
|
|
10
|
+
f as ZIndexEnum,
|
|
11
|
+
r as ui
|
|
11
12
|
};
|
|
@@ -68,6 +68,7 @@ export declare enum MediaQueryEnum {
|
|
|
68
68
|
xlarge = "xlarge"
|
|
69
69
|
}
|
|
70
70
|
export type MediaQueryType = keyof typeof MediaQueryEnum;
|
|
71
|
+
export declare const MediaQueryValuesMap: Record<MediaQueryType, number>;
|
|
71
72
|
export type ResponsiveValueType<T = string | number> = T | {
|
|
72
73
|
[key in MediaQueryType]?: T;
|
|
73
74
|
};
|
|
@@ -1,9 +1,19 @@
|
|
|
1
|
-
var a = /* @__PURE__ */ ((l) => (l.accent = "accent", l.primary = "primary", l.secondary = "secondary", l.tertiary = "tertiary", l.green = "green", l.yellow = "yellow", l.red = "red", l.argentum = "argentum", l.aurum = "aurum", l.platinum = "platinum", l.bg = "bg", l["bg-light"] = "bg-light", l["bg-dark"] = "bg-dark", l["bg-dark-grey"] = "bg-dark-grey", l["bg-black"] = "bg-black", l))(a || {}), r = /* @__PURE__ */ ((l) => (l.xxsmall = "xxsmall", l.xsmall = "xsmall", l.small = "small", l.normal = "normal", l.medium = "medium", l.large = "large", l.xlarge = "xlarge", l.xxlarge = "xxlarge", l.xxxlarge = "xxxlarge", l))(r || {}), g = /* @__PURE__ */ ((l) => (l.none = "none", l.xxsmall = "xxsmall", l.xsmall = "xsmall", l.small = "small", l.normal = "normal", l.pill = "pill", l))(g || {}),
|
|
1
|
+
var a = /* @__PURE__ */ ((l) => (l.accent = "accent", l.primary = "primary", l.secondary = "secondary", l.tertiary = "tertiary", l.green = "green", l.yellow = "yellow", l.red = "red", l.argentum = "argentum", l.aurum = "aurum", l.platinum = "platinum", l.bg = "bg", l["bg-light"] = "bg-light", l["bg-dark"] = "bg-dark", l["bg-dark-grey"] = "bg-dark-grey", l["bg-black"] = "bg-black", l))(a || {}), r = /* @__PURE__ */ ((l) => (l.xxsmall = "xxsmall", l.xsmall = "xsmall", l.small = "small", l.normal = "normal", l.medium = "medium", l.large = "large", l.xlarge = "xlarge", l.xxlarge = "xxlarge", l.xxxlarge = "xxxlarge", l))(r || {}), g = /* @__PURE__ */ ((l) => (l.none = "none", l.xxsmall = "xxsmall", l.xsmall = "xsmall", l.small = "small", l.normal = "normal", l.pill = "pill", l))(g || {}), e = /* @__PURE__ */ ((l) => (l.zero = "zero", l.first = "first", l.second = "second", l.max = "max", l))(e || {}), x = /* @__PURE__ */ ((l) => (l.none = "none", l.hairthin = "hairthin", l.thin = "thin", l.xxsmall = "xxsmall", l.xsmall = "xsmall", l.small = "small", l.normal = "normal", l.medium = "medium", l.large = "large", l.xlarge = "xlarge", l.safezone = "safezone", l))(x || {}), i = /* @__PURE__ */ ((l) => (l.initial = "initial", l.small = "small", l["small-medium"] = "small-medium", l.medium = "medium", l["medium-large"] = "medium-large", l.large = "large", l.xlarge = "xlarge", l))(i || {});
|
|
2
|
+
const m = {
|
|
3
|
+
initial: 0,
|
|
4
|
+
small: 360,
|
|
5
|
+
"small-medium": 640,
|
|
6
|
+
medium: 1024,
|
|
7
|
+
"medium-large": 1280,
|
|
8
|
+
large: 1920,
|
|
9
|
+
xlarge: 2560
|
|
10
|
+
};
|
|
2
11
|
export {
|
|
3
12
|
g as BorderRadiusEnum,
|
|
4
13
|
a as ColorEnum,
|
|
5
14
|
i as MediaQueryEnum,
|
|
6
|
-
|
|
15
|
+
m as MediaQueryValuesMap,
|
|
16
|
+
x as OffsetEnum,
|
|
7
17
|
r as TextSizeEnum,
|
|
8
|
-
|
|
18
|
+
e as ZIndexEnum
|
|
9
19
|
};
|