@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/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 g } from "./utils/hooks/useWindowResize.js";
10
- import { useOutlet as E } from "./utils/hooks/useOutlet.js";
11
- import { CLIPBOARD_TITLE_APPEARANCE as L, useClipboardComponent as B } from "./utils/hooks/useClipboardComponent.js";
12
- import { formatDate as y, formatLocaleDate as D, formatShortDate as P } from "./utils/formatDate.js";
13
- import { CURRENCY_MAP as A, FREE_PRICE_TEXT as k, formatCurrency as _ } from "./utils/formatCurrency.js";
14
- import { identity as O, invoke as h, noop as v, returnFalse as U, returnTrue as M } from "./utils/functional.js";
15
- import { Linkify as z, defaultLinkReplacer as N, defaultLinkReplacerx as V, isExternalUrl as G, linkify as Y, linkifyx as H, matchLinkNodes as K, matchLinks as W } from "./utils/links.js";
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 go } from "./utils/ui/ui.types.js";
22
- import { isInEnum as Eo } from "./utils/enum.js";
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 So } from "./components/IconButton/IconButton.js";
25
- import { Accordion as Do, AccordionContent as Po, AccordionHeader as bo, AccordionItem as Ao, AccordionTrigger as ko } from "./components/Accordion/Accordion.js";
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 wo } from "./components/Button/Button.js";
29
- import { ButtonBar as No } from "./components/Button/ButtonBar.js";
30
- import { LinkButton as Go } from "./components/Button/LinkButton.js";
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, Flyout as Te } from "./components/Flyout/Flyout.js";
43
- import { Logos as ge } from "./components/Logos/index.js";
44
- import { I as Ee } from "./cfxIcons-B4SQ4Ljd.js";
45
- import { I as Le } from "./cfxIconsBig-BLJjMT-Y.js";
46
- import { Icon as Se } from "./components/Icon/Icon.js";
47
- import { IconBig as De } 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 Fe } from "./components/Input/Input.js";
51
- import { default as he } from "./components/Input/RichInput.js";
52
- import { default as Ue } from "./components/StyledInput/StyledInput.js";
53
- import { Interactive as we } from "./components/Interactive/Interactive.js";
54
- import { Island as Ne, IslandCorner as Ve } from "./components/Island/Island.js";
55
- import { default as Ye } from "./components/Box/Box.js";
56
- import { stringPropFormater as Ke } from "./components/RSC/Box/Box.js";
57
- import { Center as Xe } from "./components/Layout/Center/Center.js";
58
- import { default as Je } from "./components/Flex/Flex.js";
59
- import { FlexAlignItemsEnum as Ze, FlexDirectionEnum as qe, FlexJustifyContentEnum as $e, FlexWrapEnum as or } from "./components/RSC/Flex/Flex.types.js";
60
- import { FlexRestricter as rr } from "./components/RSC/Flex/FlexRestricter.js";
61
- import { Pad as ar } from "./components/Layout/Pad/Pad.js";
62
- import { Page as mr } from "./components/Layout/Page/Page.js";
63
- import { R as xr } from "./Rail-CHFAf3wJ.js";
64
- import { Scrollable as lr } from "./components/Scrollable/Scrollable.js";
65
- import { VirtualScrollable as sr } from "./components/Scrollable/VirtualScrollable.js";
66
- import { Loaf as dr } from "./components/Loaf/Loaf.js";
67
- import { Modal as Tr } from "./components/Modal/Modal.js";
68
- import { NavList as gr } from "./components/NavList/NavList.js";
69
- import { OVERLAY_OUTLET_ID as Er, Overlay as Rr } from "./components/Overlay/Overlay.js";
70
- import { default as Br } from "./components/Pagination/Pagination.js";
71
- import { Popover as yr } from "./components/Popover/Popover.js";
72
- import { PremiumBadge as Pr } from "./components/PremiumBadge/PremiumBadge.js";
73
- import { Prose as Ar } from "./components/Prose/Prose.js";
74
- import { Radio as _r } from "./components/Radio/Radio.js";
75
- import { Select as Or } from "./components/Select/Select.js";
76
- import { DropdownSelect as vr } from "./components/DropdownSelect/DropdownSelect.js";
77
- import { default as Mr } from "./components/DropdownMenu/DropdownMenu.js";
78
- import { Separator as zr } from "./components/Separator/Separator.js";
79
- import { Shroud as Vr } from "./components/Shroud/Shroud.js";
80
- import { Slider as Yr } from "./components/Slider/Slider.js";
81
- import { default as Kr } from "./components/Range/Range.js";
82
- import { default as Xr } from "./components/Range/RangeInput.js";
83
- import { default as Jr } from "./components/Range/RangeWithInputs.js";
84
- import { Spacer as Zr } from "./components/Spacer/Spacer.js";
85
- import { Style as $r, useContextualStyle as ot } from "./components/Style/Style.js";
86
- import { default as rt } from "./components/Switch/Switch.js";
87
- import { ToggleGroup as at } from "./components/ToggleGroup/ToggleGroup.js";
88
- import { Tabular as mt } from "./components/Tabular/Tabular.js";
89
- import { DataTable as xt, DataTableHeaderItem as nt, DataTableRow as lt } from "./components/DataTable/DataTable.js";
90
- import { Table as st } from "./components/Table/index.js";
91
- import { default as dt } from "./components/TableResponsiveText/TableResponsiveText.js";
92
- import { DEFAULT_TEXT_COLOR as Tt, TEXT_OPACITY_MAP as It, Text as gt, TextBlock as Ct, getTextOpacity as Et, lineHeightResponsiveValueFormatter as Rt, textSizeResponsiveValueFormatter as Lt } from "./components/Text/Text.js";
93
- import { default as St } from "./components/Label/Label.js";
94
- import { Textarea as Dt } from "./components/Textarea/Textarea.js";
95
- import { default as bt } from "./components/StyledTextarea/StyledTextarea.js";
96
- import { TITLE_OUTLET_ID as kt, Title as _t, titleGetCoords as Ft, titleGetCssStyle as Ot } from "./components/Title/Title.js";
97
- import { default as vt } from "./components/InputDropzone/InputDropzone.js";
98
- import { default as Mt } from "./components/InputDropzone/ItemPreview.js";
99
- import { default as zt } from "./components/Skeleton/Skeleton.js";
100
- import { OnScreenSensor as Vt } from "./components/OnScreenSensor.js";
101
- import { Symbols as Yt } from "./components/Symbols.js";
102
- import { default as Kt } from "./components/Table/TableIconButton.js";
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
- Po as AccordionContent,
106
- bo as AccordionHeader,
105
+ Oo as AccordionContent,
106
+ _o as AccordionHeader,
107
107
  Ao as AccordionItem,
108
- ko as AccordionTrigger,
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
- Ye as Box,
114
+ Ke as Box,
115
115
  Wo as BurgerMenu,
116
116
  Ho as BurgerMenuButton,
117
117
  Uo as Button,
118
- No as ButtonBar,
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
- Xe as Center,
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
- Tt as DEFAULT_TEXT_COLOR,
130
- xt as DataTable,
131
- nt as DataTableHeaderItem,
132
- lt as DataTableRow,
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
- Mr as DropdownMenu,
136
- vr as DropdownSelect,
137
- Mt as DropzoneItemPreview,
135
+ wr as DropdownMenu,
136
+ Mr as DropdownSelect,
137
+ wt as DropzoneItemPreview,
138
138
  ce as FLYOUT_OUTLET_ID,
139
- k as FREE_PRICE_TEXT,
140
- Je as Flex,
141
- Ze as FlexAlignItemsEnum,
142
- qe as FlexDirectionEnum,
143
- $e as FlexJustifyContentEnum,
144
- rr as FlexRestricter,
145
- or as FlexWrapEnum,
146
- Te as Flyout,
147
- Se as Icon,
148
- De as IconBig,
149
- So as IconButton,
150
- Ee as Icons,
151
- Le as IconsBig,
152
- be as Indicator,
153
- ke as InfoPanel,
154
- Fe as Input,
155
- vt as InputDropzone,
156
- we as Interactive,
157
- Ne as Island,
158
- Ve as IslandCorner,
159
- St as Label,
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
- Go as LinkButton,
162
- z as Linkify,
163
- dr as Loaf,
164
- ge as Logos,
163
+ Vo as LinkButton,
164
+ w as Linkify,
165
+ Tr as Loaf,
166
+ Re as Logos,
165
167
  co as MediaQueryEnum,
166
- Tr as Modal,
167
- gr as NavList,
168
- Er as OVERLAY_OUTLET_ID,
168
+ Cr as Modal,
169
+ Rr as NavList,
170
+ Lr as OVERLAY_OUTLET_ID,
169
171
  To as OffsetEnum,
170
- Vt as OnScreenSensor,
171
- Rr as Overlay,
172
- ar as Pad,
173
- mr as Page,
174
- Br as Pagination,
175
- yr as Popover,
176
- Pr as PremiumBadge,
177
- Ar as Prose,
178
- _r as Radio,
179
- xr as Rail,
180
- Kr as Range,
181
- Xr as RangeInput,
182
- Jr as RangeWithInputs,
183
- he as RichInput,
184
- lr as Scrollable,
185
- Or as Select,
186
- zr as Separator,
187
- Vr as Shroud,
188
- zt as Skeleton,
189
- Yr as Slider,
190
- Zr as Spacer,
191
- $r as Style,
192
- Ue as StyledInput,
193
- bt as StyledTextarea,
194
- rt as Switch,
195
- Yt as Symbols,
196
- It as TEXT_OPACITY_MAP,
197
- kt as TITLE_OUTLET_ID,
198
- st as Table,
199
- Kt as TableIconButton,
200
- dt as TableResponsiveText,
201
- mt as Tabular,
202
- gt as Text,
203
- Ct as TextBlock,
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
- Dt as Textarea,
206
- _t as Title,
207
- at as ToggleGroup,
208
- sr as VirtualScrollable,
209
- go as ZIndexEnum,
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
- N as defaultLinkReplacer,
215
- V as defaultLinkReplacerx,
216
- _ as formatCurrency,
216
+ z as defaultLinkReplacer,
217
+ Y as defaultLinkReplacerx,
218
+ b as formatCurrency,
217
219
  y as formatDate,
218
220
  D as formatLocaleDate,
219
- P as formatShortDate,
220
- wo as getButtonClassName,
221
+ O as formatShortDate,
222
+ No as getButtonClassName,
221
223
  xo as getColor,
222
224
  Jo as getLinkClassName,
223
225
  Qo as getLinkStyles,
224
- Et as getTextOpacity,
226
+ Lt as getTextOpacity,
225
227
  m as getValue,
226
- O as identity,
228
+ k as identity,
227
229
  h as invoke,
228
- G as isExternalUrl,
230
+ V as isExternalUrl,
229
231
  q as isFalseString,
230
- Eo as isInEnum,
232
+ Ro as isInEnum,
231
233
  $ as isTrueString,
232
234
  Lo as joaat32,
233
- Rt as lineHeightResponsiveValueFormatter,
234
- Y as linkify,
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
- Ke as stringPropFormater,
247
- Lt as textSizeResponsiveValueFormatter,
248
+ Xe as stringPropFormater,
249
+ Bt as textSizeResponsiveValueFormatter,
248
250
  mo as throttle,
249
- Ft as titleGetCoords,
250
- Ot as titleGetCssStyle,
251
+ ht as titleGetCoords,
252
+ vt as titleGetCssStyle,
251
253
  lo as ui,
252
254
  to as unicodeCharAt,
253
- B as useClipboardComponent,
254
- ot as useContextualStyle,
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
- E as useOutlet,
261
+ R as useOutlet,
260
262
  x as usePopoverController,
261
- g as useWindowResize
263
+ C as useWindowResize
262
264
  };
@@ -367,6 +367,7 @@ $zindexMap: (
367
367
  'zero': 0,
368
368
  'first': 1,
369
369
  'second': 2,
370
+ 'flyout': 1000,
370
371
  'max': 9000,
371
372
  );
372
373
 
@@ -33,6 +33,8 @@ body {
33
33
  @include tokens.separator-tokens;
34
34
  @include tokens.zindex-tokens;
35
35
  @include tokens.text-tokens;
36
+ @include tokens.flyout-tokens;
37
+ @include tokens.shadow-tokens;
36
38
 
37
39
  // initiat fonts
38
40
  @include typography.font-HelveticaNow;
@@ -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));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cfx-dev/ui-components",
3
3
  "private": false,
4
- "version": "4.5.17",
4
+ "version": "4.5.18",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "main": "dist/main.js",