@cfx-dev/ui-components 4.5.17 → 4.5.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/assets/css/Flyout.css +1 -1
- package/dist/assets/css/Popover.css +1 -1
- package/dist/assets/general/global.css +1 -1
- package/dist/components/Flyout/Flyout.d.ts +7 -3
- package/dist/components/Flyout/Flyout.js +61 -48
- package/dist/components/Flyout/FlyoutShowcase.d.ts +5 -0
- package/dist/components/Flyout/FlyoutShowcase.js +28 -0
- package/dist/components/Flyout/index.d.ts +1 -1
- package/dist/components/Flyout/index.js +5 -3
- package/dist/main.d.ts +1 -1
- package/dist/main.js +176 -174
- package/dist/styles-scss/_ui.scss +1 -0
- package/dist/styles-scss/global.scss +2 -0
- package/dist/styles-scss/tokens.scss +26 -21
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -6,28 +6,28 @@ 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
|
-
import { useWindowResize as
|
|
10
|
-
import { useOutlet as
|
|
11
|
-
import { CLIPBOARD_TITLE_APPEARANCE as L, useClipboardComponent as
|
|
12
|
-
import { formatDate as y, formatLocaleDate as D, formatShortDate as
|
|
13
|
-
import { CURRENCY_MAP as A, FREE_PRICE_TEXT as
|
|
14
|
-
import { identity as
|
|
15
|
-
import { Linkify as
|
|
9
|
+
import { useWindowResize as C } from "./utils/hooks/useWindowResize.js";
|
|
10
|
+
import { useOutlet as R } from "./utils/hooks/useOutlet.js";
|
|
11
|
+
import { CLIPBOARD_TITLE_APPEARANCE as L, useClipboardComponent as S } from "./utils/hooks/useClipboardComponent.js";
|
|
12
|
+
import { formatDate as y, formatLocaleDate as D, formatShortDate as O } from "./utils/formatDate.js";
|
|
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 U, returnTrue as M } from "./utils/functional.js";
|
|
15
|
+
import { Linkify as w, defaultLinkReplacer as z, defaultLinkReplacerx as Y, isExternalUrl as V, linkify as G, linkifyx as H, matchLinkNodes as K, matchLinks as W } from "./utils/links.js";
|
|
16
16
|
import { clamp as j, clamp01 as J, minmax as Q } 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, OffsetEnum as To, TextSizeEnum as Io, ZIndexEnum as
|
|
22
|
-
import { isInEnum as
|
|
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
|
+
import { isInEnum as Ro } from "./utils/enum.js";
|
|
23
23
|
import { joaat32 as Lo } from "./utils/joaat32.js";
|
|
24
|
-
import { default as
|
|
25
|
-
import { Accordion as Do, AccordionContent as
|
|
24
|
+
import { default as Bo } from "./components/IconButton/IconButton.js";
|
|
25
|
+
import { Accordion as Do, AccordionContent as Oo, AccordionHeader as _o, AccordionItem as Ao, AccordionTrigger as Po } from "./components/Accordion/Accordion.js";
|
|
26
26
|
import { default as Fo } from "./components/ClipboardButton/ClipboardButton.js";
|
|
27
27
|
import { default as ho } from "./components/Checkbox/Checkbox.js";
|
|
28
|
-
import { default as Uo, ButtonContent as Mo, getButtonClassName as
|
|
29
|
-
import { ButtonBar as
|
|
30
|
-
import { LinkButton as
|
|
28
|
+
import { default as Uo, ButtonContent as Mo, getButtonClassName as No } from "./components/Button/Button.js";
|
|
29
|
+
import { ButtonBar as zo } from "./components/Button/ButtonBar.js";
|
|
30
|
+
import { LinkButton as Vo } from "./components/Button/LinkButton.js";
|
|
31
31
|
import { BurgerMenuButton as Ho } from "./components/BurgerMenu/BurgerMenuButton.js";
|
|
32
32
|
import { BurgerMenu as Wo } from "./components/BurgerMenu/BurgerMenu.js";
|
|
33
33
|
import { default as jo, getLinkClassName as Jo, getLinkStyles as Qo } from "./components/Link/Link.js";
|
|
@@ -39,199 +39,201 @@ import { default as pe } from "./components/ControlBox/ControlBox.js";
|
|
|
39
39
|
import { default as ne } from "./components/CountryFlag/CountryFlag.js";
|
|
40
40
|
import { default as ue } from "./components/Decorate/Decorate.js";
|
|
41
41
|
import { Dot as ie } from "./components/Dot/Dot.js";
|
|
42
|
-
import { FLYOUT_OUTLET_ID as ce,
|
|
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
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import { Interactive as
|
|
54
|
-
import { Island as
|
|
55
|
-
import { default as
|
|
56
|
-
import { stringPropFormater as
|
|
57
|
-
import { Center as
|
|
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
|
|
78
|
-
import { Separator as
|
|
79
|
-
import { Shroud as
|
|
80
|
-
import { Slider as
|
|
81
|
-
import { default as
|
|
82
|
-
import { default as
|
|
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
|
|
99
|
-
import { default as
|
|
100
|
-
import { OnScreenSensor as
|
|
101
|
-
import { Symbols as
|
|
102
|
-
import { default as
|
|
42
|
+
import { FLYOUT_OUTLET_ID as ce, FLYOUT_ROOT_ID as Te, FLYOUT_ROOT_SHRINK_CLASSNAME as Ie, Flyout as Ce } from "./components/Flyout/Flyout.js";
|
|
43
|
+
import { Logos as Re } from "./components/Logos/index.js";
|
|
44
|
+
import { I as Le } from "./cfxIcons-B4SQ4Ljd.js";
|
|
45
|
+
import { I as Be } from "./cfxIconsBig-BLJjMT-Y.js";
|
|
46
|
+
import { Icon as De } from "./components/Icon/Icon.js";
|
|
47
|
+
import { IconBig as _e } from "./components/IconBig/IconBig.js";
|
|
48
|
+
import { Indicator as Pe } from "./components/Indicator/Indicator.js";
|
|
49
|
+
import { default as Fe } from "./components/InfoPanel/InfoPanel.js";
|
|
50
|
+
import { default as he } from "./components/Input/Input.js";
|
|
51
|
+
import { default as Ue } from "./components/Input/RichInput.js";
|
|
52
|
+
import { default as Ne } from "./components/StyledInput/StyledInput.js";
|
|
53
|
+
import { Interactive as ze } from "./components/Interactive/Interactive.js";
|
|
54
|
+
import { Island as Ve, IslandCorner as Ge } from "./components/Island/Island.js";
|
|
55
|
+
import { default as Ke } from "./components/Box/Box.js";
|
|
56
|
+
import { stringPropFormater as Xe } from "./components/RSC/Box/Box.js";
|
|
57
|
+
import { Center as Je } from "./components/Layout/Center/Center.js";
|
|
58
|
+
import { default as Ze } from "./components/Flex/Flex.js";
|
|
59
|
+
import { FlexAlignItemsEnum as $e, FlexDirectionEnum as or, FlexJustifyContentEnum as er, FlexWrapEnum as rr } from "./components/RSC/Flex/Flex.types.js";
|
|
60
|
+
import { FlexRestricter as ar } from "./components/RSC/Flex/FlexRestricter.js";
|
|
61
|
+
import { Pad as mr } from "./components/Layout/Pad/Pad.js";
|
|
62
|
+
import { Page as xr } from "./components/Layout/Page/Page.js";
|
|
63
|
+
import { R as lr } from "./Rail-CHFAf3wJ.js";
|
|
64
|
+
import { Scrollable as sr } from "./components/Scrollable/Scrollable.js";
|
|
65
|
+
import { VirtualScrollable as dr } from "./components/Scrollable/VirtualScrollable.js";
|
|
66
|
+
import { Loaf as Tr } from "./components/Loaf/Loaf.js";
|
|
67
|
+
import { Modal as Cr } from "./components/Modal/Modal.js";
|
|
68
|
+
import { NavList as Rr } from "./components/NavList/NavList.js";
|
|
69
|
+
import { OVERLAY_OUTLET_ID as Lr, Overlay as Sr } from "./components/Overlay/Overlay.js";
|
|
70
|
+
import { default as yr } from "./components/Pagination/Pagination.js";
|
|
71
|
+
import { Popover as Or } from "./components/Popover/Popover.js";
|
|
72
|
+
import { PremiumBadge as Ar } from "./components/PremiumBadge/PremiumBadge.js";
|
|
73
|
+
import { Prose as br } from "./components/Prose/Prose.js";
|
|
74
|
+
import { Radio as kr } from "./components/Radio/Radio.js";
|
|
75
|
+
import { Select as vr } from "./components/Select/Select.js";
|
|
76
|
+
import { DropdownSelect as Mr } from "./components/DropdownSelect/DropdownSelect.js";
|
|
77
|
+
import { default as wr } from "./components/DropdownMenu/DropdownMenu.js";
|
|
78
|
+
import { Separator as Yr } from "./components/Separator/Separator.js";
|
|
79
|
+
import { Shroud as Gr } from "./components/Shroud/Shroud.js";
|
|
80
|
+
import { Slider as Kr } from "./components/Slider/Slider.js";
|
|
81
|
+
import { default as Xr } from "./components/Range/Range.js";
|
|
82
|
+
import { default as Jr } from "./components/Range/RangeInput.js";
|
|
83
|
+
import { default as Zr } from "./components/Range/RangeWithInputs.js";
|
|
84
|
+
import { Spacer as $r } from "./components/Spacer/Spacer.js";
|
|
85
|
+
import { Style as et, useContextualStyle as rt } from "./components/Style/Style.js";
|
|
86
|
+
import { default as at } from "./components/Switch/Switch.js";
|
|
87
|
+
import { ToggleGroup as mt } from "./components/ToggleGroup/ToggleGroup.js";
|
|
88
|
+
import { Tabular as xt } from "./components/Tabular/Tabular.js";
|
|
89
|
+
import { DataTable as lt, DataTableHeaderItem as ut, DataTableRow as st } from "./components/DataTable/DataTable.js";
|
|
90
|
+
import { Table as dt } from "./components/Table/index.js";
|
|
91
|
+
import { default as Tt } from "./components/TableResponsiveText/TableResponsiveText.js";
|
|
92
|
+
import { DEFAULT_TEXT_COLOR as Ct, TEXT_OPACITY_MAP as Et, Text as Rt, TextBlock as gt, getTextOpacity as Lt, lineHeightResponsiveValueFormatter as St, textSizeResponsiveValueFormatter as Bt } from "./components/Text/Text.js";
|
|
93
|
+
import { default as Dt } from "./components/Label/Label.js";
|
|
94
|
+
import { Textarea as _t } from "./components/Textarea/Textarea.js";
|
|
95
|
+
import { default as Pt } from "./components/StyledTextarea/StyledTextarea.js";
|
|
96
|
+
import { TITLE_OUTLET_ID as Ft, Title as kt, titleGetCoords as ht, titleGetCssStyle as vt } from "./components/Title/Title.js";
|
|
97
|
+
import { default as Mt } from "./components/InputDropzone/InputDropzone.js";
|
|
98
|
+
import { default as wt } from "./components/InputDropzone/ItemPreview.js";
|
|
99
|
+
import { default as Yt } from "./components/Skeleton/Skeleton.js";
|
|
100
|
+
import { OnScreenSensor as Gt } from "./components/OnScreenSensor.js";
|
|
101
|
+
import { Symbols as Kt } from "./components/Symbols.js";
|
|
102
|
+
import { default as Xt } from "./components/Table/TableIconButton.js";
|
|
103
103
|
export {
|
|
104
104
|
Do as Accordion,
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
Oo as AccordionContent,
|
|
106
|
+
_o as AccordionHeader,
|
|
107
107
|
Ao as AccordionItem,
|
|
108
|
-
|
|
108
|
+
Po as AccordionTrigger,
|
|
109
109
|
oe as Avatar,
|
|
110
110
|
re as BACKDROP_OUTLET_ID,
|
|
111
111
|
te as BackdropPortal,
|
|
112
112
|
fe as Badge,
|
|
113
113
|
so as BorderRadiusEnum,
|
|
114
|
-
|
|
114
|
+
Ke as Box,
|
|
115
115
|
Wo as BurgerMenu,
|
|
116
116
|
Ho as BurgerMenuButton,
|
|
117
117
|
Uo as Button,
|
|
118
|
-
|
|
118
|
+
zo as ButtonBar,
|
|
119
119
|
Mo as ButtonContent,
|
|
120
120
|
qo as ButtonLink,
|
|
121
121
|
L as CLIPBOARD_TITLE_APPEARANCE,
|
|
122
122
|
A as CURRENCY_MAP,
|
|
123
|
-
|
|
123
|
+
Je as Center,
|
|
124
124
|
ho as Checkbox,
|
|
125
125
|
Fo as ClipboardButton,
|
|
126
126
|
io as ColorEnum,
|
|
127
127
|
pe as ControlBox,
|
|
128
128
|
ne as CountryFlag,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
129
|
+
Ct as DEFAULT_TEXT_COLOR,
|
|
130
|
+
lt as DataTable,
|
|
131
|
+
ut as DataTableHeaderItem,
|
|
132
|
+
st as DataTableRow,
|
|
133
133
|
ue as Decorate,
|
|
134
134
|
ie as Dot,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
135
|
+
wr as DropdownMenu,
|
|
136
|
+
Mr as DropdownSelect,
|
|
137
|
+
wt as DropzoneItemPreview,
|
|
138
138
|
ce as FLYOUT_OUTLET_ID,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
$e as
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
139
|
+
Te as FLYOUT_ROOT_ID,
|
|
140
|
+
Ie as FLYOUT_ROOT_SHRINK_CLASSNAME,
|
|
141
|
+
P as FREE_PRICE_TEXT,
|
|
142
|
+
Ze as Flex,
|
|
143
|
+
$e as FlexAlignItemsEnum,
|
|
144
|
+
or as FlexDirectionEnum,
|
|
145
|
+
er as FlexJustifyContentEnum,
|
|
146
|
+
ar as FlexRestricter,
|
|
147
|
+
rr as FlexWrapEnum,
|
|
148
|
+
Ce as Flyout,
|
|
149
|
+
De as Icon,
|
|
150
|
+
_e as IconBig,
|
|
151
|
+
Bo as IconButton,
|
|
152
|
+
Le as Icons,
|
|
153
|
+
Be as IconsBig,
|
|
154
|
+
Pe as Indicator,
|
|
155
|
+
Fe as InfoPanel,
|
|
156
|
+
he as Input,
|
|
157
|
+
Mt as InputDropzone,
|
|
158
|
+
ze as Interactive,
|
|
159
|
+
Ve as Island,
|
|
160
|
+
Ge as IslandCorner,
|
|
161
|
+
Dt as Label,
|
|
160
162
|
jo as Link,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
Vo as LinkButton,
|
|
164
|
+
w as Linkify,
|
|
165
|
+
Tr as Loaf,
|
|
166
|
+
Re as Logos,
|
|
165
167
|
co as MediaQueryEnum,
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
168
|
+
Cr as Modal,
|
|
169
|
+
Rr as NavList,
|
|
170
|
+
Lr as OVERLAY_OUTLET_ID,
|
|
169
171
|
To as OffsetEnum,
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
172
|
+
Gt as OnScreenSensor,
|
|
173
|
+
Sr as Overlay,
|
|
174
|
+
mr as Pad,
|
|
175
|
+
xr as Page,
|
|
176
|
+
yr as Pagination,
|
|
177
|
+
Or as Popover,
|
|
178
|
+
Ar as PremiumBadge,
|
|
179
|
+
br as Prose,
|
|
180
|
+
kr as Radio,
|
|
181
|
+
lr as Rail,
|
|
182
|
+
Xr as Range,
|
|
183
|
+
Jr as RangeInput,
|
|
184
|
+
Zr as RangeWithInputs,
|
|
185
|
+
Ue as RichInput,
|
|
186
|
+
sr as Scrollable,
|
|
187
|
+
vr as Select,
|
|
188
|
+
Yr as Separator,
|
|
189
|
+
Gr as Shroud,
|
|
190
|
+
Yt as Skeleton,
|
|
191
|
+
Kr as Slider,
|
|
192
|
+
$r as Spacer,
|
|
193
|
+
et as Style,
|
|
194
|
+
Ne as StyledInput,
|
|
195
|
+
Pt as StyledTextarea,
|
|
196
|
+
at as Switch,
|
|
197
|
+
Kt as Symbols,
|
|
198
|
+
Et as TEXT_OPACITY_MAP,
|
|
199
|
+
Ft as TITLE_OUTLET_ID,
|
|
200
|
+
dt as Table,
|
|
201
|
+
Xt as TableIconButton,
|
|
202
|
+
Tt as TableResponsiveText,
|
|
203
|
+
xt as Tabular,
|
|
204
|
+
Rt as Text,
|
|
205
|
+
gt as TextBlock,
|
|
204
206
|
Io as TextSizeEnum,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
207
|
+
_t as Textarea,
|
|
208
|
+
kt as Title,
|
|
209
|
+
mt as ToggleGroup,
|
|
210
|
+
dr as VirtualScrollable,
|
|
211
|
+
Co as ZIndexEnum,
|
|
210
212
|
j as clamp,
|
|
211
213
|
J as clamp01,
|
|
212
214
|
a as clsx,
|
|
213
215
|
fo as debounce,
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
216
|
+
z as defaultLinkReplacer,
|
|
217
|
+
Y as defaultLinkReplacerx,
|
|
218
|
+
b as formatCurrency,
|
|
217
219
|
y as formatDate,
|
|
218
220
|
D as formatLocaleDate,
|
|
219
|
-
|
|
220
|
-
|
|
221
|
+
O as formatShortDate,
|
|
222
|
+
No as getButtonClassName,
|
|
221
223
|
xo as getColor,
|
|
222
224
|
Jo as getLinkClassName,
|
|
223
225
|
Qo as getLinkStyles,
|
|
224
|
-
|
|
226
|
+
Lt as getTextOpacity,
|
|
225
227
|
m as getValue,
|
|
226
|
-
|
|
228
|
+
k as identity,
|
|
227
229
|
h as invoke,
|
|
228
|
-
|
|
230
|
+
V as isExternalUrl,
|
|
229
231
|
q as isFalseString,
|
|
230
|
-
|
|
232
|
+
Ro as isInEnum,
|
|
231
233
|
$ as isTrueString,
|
|
232
234
|
Lo as joaat32,
|
|
233
|
-
|
|
234
|
-
|
|
235
|
+
St as lineHeightResponsiveValueFormatter,
|
|
236
|
+
G as linkify,
|
|
235
237
|
H as linkifyx,
|
|
236
238
|
K as matchLinkNodes,
|
|
237
239
|
W as matchLinks,
|
|
@@ -243,20 +245,20 @@ export {
|
|
|
243
245
|
U as returnFalse,
|
|
244
246
|
M as returnTrue,
|
|
245
247
|
ro as splitByIndices,
|
|
246
|
-
|
|
247
|
-
|
|
248
|
+
Xe as stringPropFormater,
|
|
249
|
+
Bt as textSizeResponsiveValueFormatter,
|
|
248
250
|
mo as throttle,
|
|
249
|
-
|
|
250
|
-
|
|
251
|
+
ht as titleGetCoords,
|
|
252
|
+
vt as titleGetCssStyle,
|
|
251
253
|
lo as ui,
|
|
252
254
|
to as unicodeCharAt,
|
|
253
|
-
|
|
254
|
-
|
|
255
|
+
S as useClipboardComponent,
|
|
256
|
+
rt as useContextualStyle,
|
|
255
257
|
s as useDynamicRef,
|
|
256
258
|
d as useGlobalKeyboardEvent,
|
|
257
259
|
l as useInstance,
|
|
258
260
|
T as useKeyboardClose,
|
|
259
|
-
|
|
261
|
+
R as useOutlet,
|
|
260
262
|
x as usePopoverController,
|
|
261
|
-
|
|
263
|
+
C as useWindowResize
|
|
262
264
|
};
|
|
@@ -42,16 +42,6 @@
|
|
|
42
42
|
|
|
43
43
|
// font size is responsive, and one size in different media queries can have different values
|
|
44
44
|
@mixin text-tokens() {
|
|
45
|
-
@include ui.define-font-size('xxxsmall', ui.q(1.5), 1.5);
|
|
46
|
-
@include ui.define-font-size('xxsmall', ui.q(1.5), 1.5);
|
|
47
|
-
@include ui.define-font-size('xsmall', ui.q(1.75), 1.5);
|
|
48
|
-
@include ui.define-font-size('small', ui.q(2), 1.5);
|
|
49
|
-
@include ui.define-font-size('normal', ui.q(2), 1.5);
|
|
50
|
-
@include ui.define-font-size('medium', ui.q(2.5), 1.2);
|
|
51
|
-
@include ui.define-font-size('large', ui.q(3), 1.2);
|
|
52
|
-
@include ui.define-font-size('xlarge', ui.q(4), 1.2);
|
|
53
|
-
@include ui.define-font-size('xxlarge', ui.q(5), 1.2);
|
|
54
|
-
@include ui.define-font-size('xxxlarge', ui.q(7), 1.2);
|
|
55
45
|
@include ui.def('font-weight-thin', 100);
|
|
56
46
|
@include ui.def('font-weight-small', 300);
|
|
57
47
|
@include ui.def('font-weight-normal', 400);
|
|
@@ -73,6 +63,19 @@
|
|
|
73
63
|
@include ui.def('text-opacity-75', 0.75);
|
|
74
64
|
@include ui.define-color-token('text-a75', ui.color('primary', $alpha: 0.75));
|
|
75
65
|
|
|
66
|
+
// Mobile font sizes
|
|
67
|
+
@include ui.define-font-size('xxxsmall', ui.q(1.5), 1.5);
|
|
68
|
+
@include ui.define-font-size('xxsmall', ui.q(1.5), 1.5);
|
|
69
|
+
@include ui.define-font-size('xsmall', ui.q(1.75), 1.5);
|
|
70
|
+
@include ui.define-font-size('small', ui.q(2), 1.5);
|
|
71
|
+
@include ui.define-font-size('normal', ui.q(2), 1.5);
|
|
72
|
+
@include ui.define-font-size('medium', ui.q(2.5), 1.2);
|
|
73
|
+
@include ui.define-font-size('large', ui.q(3), 1.2);
|
|
74
|
+
@include ui.define-font-size('xlarge', ui.q(4), 1.2);
|
|
75
|
+
@include ui.define-font-size('xxlarge', ui.q(5), 1.2);
|
|
76
|
+
@include ui.define-font-size('xxxlarge', ui.q(7), 1.2);
|
|
77
|
+
|
|
78
|
+
// Tablet font sizes
|
|
76
79
|
@include ui.media-min('medium') {
|
|
77
80
|
@include ui.define-font-size('xxxsmall', ui.q(1.5), 1.5);
|
|
78
81
|
@include ui.define-font-size('xxsmall', ui.q(1.5), 1.5);
|
|
@@ -86,6 +89,7 @@
|
|
|
86
89
|
@include ui.define-font-size('xxxlarge', ui.q(7), 1.2);
|
|
87
90
|
}
|
|
88
91
|
|
|
92
|
+
// Desktop font sizes
|
|
89
93
|
@include ui.media-min('large') {
|
|
90
94
|
@include ui.define-font-size('xxxsmall', ui.q(1.5), 1.5);
|
|
91
95
|
@include ui.define-font-size('xxsmall', ui.q(1.75), 1.5);
|
|
@@ -99,6 +103,7 @@
|
|
|
99
103
|
@include ui.define-font-size('xxxlarge', ui.q(7.5), 1.2);
|
|
100
104
|
}
|
|
101
105
|
|
|
106
|
+
// Large Desktop font sizes - same as desktop
|
|
102
107
|
@include ui.media-min('xlg') {
|
|
103
108
|
@include ui.define-font-size('xxxsmall', ui.q(1.5), 1.5);
|
|
104
109
|
@include ui.define-font-size('xxsmall', ui.q(1.75), 1.5);
|
|
@@ -337,6 +342,17 @@
|
|
|
337
342
|
@include ui.define-color-token('separator-background', ui.color('secondary', $alpha: 0.2));
|
|
338
343
|
}
|
|
339
344
|
|
|
345
|
+
@mixin flyout-tokens() {
|
|
346
|
+
@include ui.define-color-token('flyout-holder-border', ui.color('primary', 100, 0.25));
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
@mixin shadow-tokens() {
|
|
350
|
+
@include ui.define-color-token('shadow-small', rgba(0, 0, 0, 0.5));
|
|
351
|
+
@include ui.def('shadow-small', 0 ui.q(0.25) ui.q(0.75) ui.color-token('shadow-small'));
|
|
352
|
+
@include ui.define-color-token('shadow-large', rgba(0, 0, 0, 0.5));
|
|
353
|
+
@include ui.def('shadow-large', 0 ui.q(2) ui.q(8) ui.q(0.25) ui.color-token('shadow-large'));
|
|
354
|
+
}
|
|
355
|
+
|
|
340
356
|
/**
|
|
341
357
|
* LEGACY
|
|
342
358
|
* Look for usages by searching for `ui.color-token('name')`
|
|
@@ -345,13 +361,6 @@
|
|
|
345
361
|
@include ui.define-color-token('li-marker', ui.color('main', 950, 0.75));
|
|
346
362
|
@include ui.define-color-token('kbd-border', ui.color('main', 300));
|
|
347
363
|
@include ui.define-color-token('kbd-background', ui.color('main', 200));
|
|
348
|
-
@include ui.define-color-token('shadow-small', rgba(0, 0, 0, 0.5));
|
|
349
|
-
@include ui.def('shadow-small', 0 2.5px 5px ui.color-token('shadow-small'));
|
|
350
|
-
@include ui.define-color-token('shadow-large', rgba(0, 0, 0, 0.5));
|
|
351
|
-
@include ui.def('shadow-large', 0 ui.q(2) ui.q(8) 2px ui.color-token('shadow-large'));
|
|
352
|
-
|
|
353
|
-
// TODO: add text warning, success and error
|
|
354
|
-
|
|
355
364
|
@include ui.define-color-token('link-hover-decoration', ui.color('primary', 950));
|
|
356
365
|
@include ui.define-color-token('scrollbar', ui.color('secondary', $alpha: 0.4));
|
|
357
366
|
@include ui.define-color-token('scrollbar-hover', ui.color('secondary', $alpha: 0.6));
|
|
@@ -370,10 +379,6 @@
|
|
|
370
379
|
@include ui.define-color-token('checkbox-border', ui.color('main', 950, 0.25));
|
|
371
380
|
@include ui.define-color-token('checkbox-background', ui.color('main', 950, 0.1));
|
|
372
381
|
@include ui.define-color-token('checkbox-hover-background', ui.color('main', 950, 0.05));
|
|
373
|
-
@include ui.define-color-token('flyout-backdrop-background', ui.color('main', 100, 0.9));
|
|
374
|
-
@include ui.define-color-token('flyout-holder-border', ui.color('main', 100, 0.25));
|
|
375
|
-
@include ui.define-color-token('flyout-holder-blur-background', ui.color('main', 50, 0.75));
|
|
376
|
-
@include ui.define-color-token('flyout-holder-unblur-background', ui.color('main'));
|
|
377
382
|
@include ui.define-color-token('indicator-bright', ui.color('primary'));
|
|
378
383
|
@include ui.define-color-token('indicator-dim', transparent);
|
|
379
384
|
@include ui.define-color-token('island-border', ui.color('main', 50, 0.25));
|