@cfx-dev/ui-components 4.5.16 → 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.
Files changed (49) hide show
  1. package/dist/{Combination-2dfXEDc9.js → Combination-CcTTSYNP.js} +1 -1
  2. package/dist/{DropdownContent-CLtPVRZg.js → DropdownContent-MvHlrWi6.js} +4 -4
  3. package/dist/assets/all_css.css +2 -0
  4. package/dist/assets/css/DropdownSelect.css +1 -1
  5. package/dist/assets/css/Flyout.css +1 -1
  6. package/dist/assets/css/Popover.css +1 -1
  7. package/dist/assets/css/Range.css +1 -0
  8. package/dist/assets/css/RangeInput.css +1 -0
  9. package/dist/assets/css/RichInput.css +1 -1
  10. package/dist/assets/css/Select.css +1 -1
  11. package/dist/assets/css/StyledInput.css +1 -1
  12. package/dist/assets/general/global.css +1 -1
  13. package/dist/components/Checkbox/Checkbox.js +23 -23
  14. package/dist/components/DropdownContent/DropdownContent.js +1 -1
  15. package/dist/components/DropdownContent/index.js +1 -1
  16. package/dist/components/DropdownMenu/DropdownMenu.js +1 -1
  17. package/dist/components/DropdownSelect/DropdownSelect.js +1 -1
  18. package/dist/components/Flyout/Flyout.d.ts +7 -3
  19. package/dist/components/Flyout/Flyout.js +61 -48
  20. package/dist/components/Flyout/FlyoutShowcase.d.ts +5 -0
  21. package/dist/components/Flyout/FlyoutShowcase.js +28 -0
  22. package/dist/components/Flyout/index.d.ts +1 -1
  23. package/dist/components/Flyout/index.js +5 -3
  24. package/dist/components/Range/Range.d.ts +4 -0
  25. package/dist/components/Range/Range.js +90 -0
  26. package/dist/components/Range/Range.types.d.ts +9 -0
  27. package/dist/components/Range/Range.types.js +1 -0
  28. package/dist/components/Range/RangeInput.d.ts +13 -0
  29. package/dist/components/Range/RangeInput.js +78 -0
  30. package/dist/components/Range/RangeShowcase.d.ts +2 -0
  31. package/dist/components/Range/RangeShowcase.js +41 -0
  32. package/dist/components/Range/RangeWithInputs.d.ts +8 -0
  33. package/dist/components/Range/RangeWithInputs.js +81 -0
  34. package/dist/components/Range/index.d.ts +6 -0
  35. package/dist/components/Range/index.js +8 -0
  36. package/dist/components/Select/Select.js +3 -3
  37. package/dist/components/Slider/Slider.js +64 -472
  38. package/dist/components/Slider/SliderShowcase.js +6 -4
  39. package/dist/components/Switch/Switch.js +1 -1
  40. package/dist/{index-DWzyrn_L.js → index-3ctv5u9o.js} +1 -1
  41. package/dist/{index-BMU9X4M-.js → index-9LBuZ7x4.js} +7 -7
  42. package/dist/{index-DCuJlMqr.js → index-CfQtbUfi.js} +6 -6
  43. package/dist/index-D5SMGei3.js +427 -0
  44. package/dist/main.d.ts +3 -1
  45. package/dist/main.js +186 -178
  46. package/dist/styles-scss/_ui.scss +20 -17
  47. package/dist/styles-scss/global.scss +2 -0
  48. package/dist/styles-scss/tokens.scss +26 -21
  49. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -2,255 +2,263 @@ import { mergeRefs as r } from "./utils/mergeRefs.js";
2
2
  import { clsx as a } from "./utils/clsx.js";
3
3
  import { getValue as m } from "./utils/getValue.js";
4
4
  import { usePopoverController as x } from "./utils/hooks/usePopoverController.js";
5
- import { useInstance as n } from "./utils/hooks/useInstance.js";
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 g } from "./utils/hooks/useOutlet.js";
11
- import { CLIPBOARD_TITLE_APPEARANCE as B, useClipboardComponent as R } 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 v, noop as h, 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 X } from "./utils/links.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
- import { ui as no } from "./utils/ui/ui.js";
20
+ import { ui as lo } from "./utils/ui/ui.js";
21
21
  import { BorderRadiusEnum as so, ColorEnum as io, MediaQueryEnum as co, OffsetEnum as To, TextSizeEnum as Io, ZIndexEnum as Co } from "./utils/ui/ui.types.js";
22
- import { isInEnum as go } from "./utils/enum.js";
23
- import { joaat32 as Bo } 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";
22
+ import { isInEnum as Ro } from "./utils/enum.js";
23
+ import { joaat32 as Lo } from "./utils/joaat32.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
- import { default as vo } 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";
27
+ import { default as ho } from "./components/Checkbox/Checkbox.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
- import { BurgerMenu as Xo } from "./components/BurgerMenu/BurgerMenu.js";
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";
34
34
  import { default as qo } from "./components/Link/ButtonLink.js";
35
35
  import { Avatar as oe } from "./components/Avatar/Avatar.js";
36
36
  import { BACKDROP_OUTLET_ID as re, default as te } from "./components/BackdropPortal/BackdropPortal.js";
37
37
  import { Badge as fe } from "./components/Badge/Badge.js";
38
38
  import { default as pe } from "./components/ControlBox/ControlBox.js";
39
- import { default as le } from "./components/CountryFlag/CountryFlag.js";
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 Ce } from "./components/Logos/index.js";
44
- import { I as ge } from "./cfxIcons-B4SQ4Ljd.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
45
  import { I as Be } 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 ve } 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 We } 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 nr } 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 Cr } from "./components/NavList/NavList.js";
69
- import { OVERLAY_OUTLET_ID as gr, Overlay as Lr } from "./components/Overlay/Overlay.js";
70
- import { default as Rr } 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 hr } 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 { Spacer as Kr } from "./components/Spacer/Spacer.js";
82
- import { Style as Wr, useContextualStyle as jr } from "./components/Style/Style.js";
83
- import { default as Qr } from "./components/Switch/Switch.js";
84
- import { ToggleGroup as qr } from "./components/ToggleGroup/ToggleGroup.js";
85
- import { Tabular as ot } from "./components/Tabular/Tabular.js";
86
- import { DataTable as rt, DataTableHeaderItem as tt, DataTableRow as at } from "./components/DataTable/DataTable.js";
87
- import { Table as mt } from "./components/Table/index.js";
88
- import { default as xt } from "./components/TableResponsiveText/TableResponsiveText.js";
89
- import { DEFAULT_TEXT_COLOR as nt, TEXT_OPACITY_MAP as ut, Text as st, TextBlock as it, getTextOpacity as dt, lineHeightResponsiveValueFormatter as ct, textSizeResponsiveValueFormatter as Tt } from "./components/Text/Text.js";
90
- import { default as Ct } from "./components/Label/Label.js";
91
- import { Textarea as gt } from "./components/Textarea/Textarea.js";
92
- import { default as Bt } from "./components/StyledTextarea/StyledTextarea.js";
93
- import { TITLE_OUTLET_ID as St, Title as yt, titleGetCoords as Dt, titleGetCssStyle as Pt } from "./components/Title/Title.js";
94
- import { default as At } from "./components/InputDropzone/InputDropzone.js";
95
- import { default as _t } from "./components/InputDropzone/ItemPreview.js";
96
- import { default as Ot } from "./components/Skeleton/Skeleton.js";
97
- import { OnScreenSensor as ht } from "./components/OnScreenSensor.js";
98
- import { Symbols as Mt } from "./components/Symbols.js";
99
- import { default as zt } from "./components/Table/TableIconButton.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";
100
103
  export {
101
104
  Do as Accordion,
102
- Po as AccordionContent,
103
- bo as AccordionHeader,
105
+ Oo as AccordionContent,
106
+ _o as AccordionHeader,
104
107
  Ao as AccordionItem,
105
- ko as AccordionTrigger,
108
+ Po as AccordionTrigger,
106
109
  oe as Avatar,
107
110
  re as BACKDROP_OUTLET_ID,
108
111
  te as BackdropPortal,
109
112
  fe as Badge,
110
113
  so as BorderRadiusEnum,
111
- Ye as Box,
112
- Xo as BurgerMenu,
114
+ Ke as Box,
115
+ Wo as BurgerMenu,
113
116
  Ho as BurgerMenuButton,
114
117
  Uo as Button,
115
- No as ButtonBar,
118
+ zo as ButtonBar,
116
119
  Mo as ButtonContent,
117
120
  qo as ButtonLink,
118
- B as CLIPBOARD_TITLE_APPEARANCE,
121
+ L as CLIPBOARD_TITLE_APPEARANCE,
119
122
  A as CURRENCY_MAP,
120
- We as Center,
121
- vo as Checkbox,
123
+ Je as Center,
124
+ ho as Checkbox,
122
125
  Fo as ClipboardButton,
123
126
  io as ColorEnum,
124
127
  pe as ControlBox,
125
- le as CountryFlag,
126
- nt as DEFAULT_TEXT_COLOR,
127
- rt as DataTable,
128
- tt as DataTableHeaderItem,
129
- at as DataTableRow,
128
+ ne as CountryFlag,
129
+ Ct as DEFAULT_TEXT_COLOR,
130
+ lt as DataTable,
131
+ ut as DataTableHeaderItem,
132
+ st as DataTableRow,
130
133
  ue as Decorate,
131
134
  ie as Dot,
132
- Mr as DropdownMenu,
133
- hr as DropdownSelect,
134
- _t as DropzoneItemPreview,
135
+ wr as DropdownMenu,
136
+ Mr as DropdownSelect,
137
+ wt as DropzoneItemPreview,
135
138
  ce as FLYOUT_OUTLET_ID,
136
- k as FREE_PRICE_TEXT,
137
- Je as Flex,
138
- Ze as FlexAlignItemsEnum,
139
- qe as FlexDirectionEnum,
140
- $e as FlexJustifyContentEnum,
141
- rr as FlexRestricter,
142
- or as FlexWrapEnum,
143
- Te as Flyout,
144
- Se as Icon,
145
- De as IconBig,
146
- So as IconButton,
147
- ge as Icons,
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,
148
153
  Be as IconsBig,
149
- be as Indicator,
150
- ke as InfoPanel,
151
- Fe as Input,
152
- At as InputDropzone,
153
- we as Interactive,
154
- Ne as Island,
155
- Ve as IslandCorner,
156
- Ct as Label,
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,
157
162
  jo as Link,
158
- Go as LinkButton,
159
- z as Linkify,
160
- dr as Loaf,
161
- Ce as Logos,
163
+ Vo as LinkButton,
164
+ w as Linkify,
165
+ Tr as Loaf,
166
+ Re as Logos,
162
167
  co as MediaQueryEnum,
163
- Tr as Modal,
164
- Cr as NavList,
165
- gr as OVERLAY_OUTLET_ID,
168
+ Cr as Modal,
169
+ Rr as NavList,
170
+ Lr as OVERLAY_OUTLET_ID,
166
171
  To as OffsetEnum,
167
- ht as OnScreenSensor,
168
- Lr as Overlay,
169
- ar as Pad,
170
- mr as Page,
171
- Rr as Pagination,
172
- yr as Popover,
173
- Pr as PremiumBadge,
174
- Ar as Prose,
175
- _r as Radio,
176
- xr as Rail,
177
- ve as RichInput,
178
- nr as Scrollable,
179
- Or as Select,
180
- zr as Separator,
181
- Vr as Shroud,
182
- Ot as Skeleton,
183
- Yr as Slider,
184
- Kr as Spacer,
185
- Wr as Style,
186
- Ue as StyledInput,
187
- Bt as StyledTextarea,
188
- Qr as Switch,
189
- Mt as Symbols,
190
- ut as TEXT_OPACITY_MAP,
191
- St as TITLE_OUTLET_ID,
192
- mt as Table,
193
- zt as TableIconButton,
194
- xt as TableResponsiveText,
195
- ot as Tabular,
196
- st as Text,
197
- it 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,
198
206
  Io as TextSizeEnum,
199
- gt as Textarea,
200
- yt as Title,
201
- qr as ToggleGroup,
202
- sr as VirtualScrollable,
207
+ _t as Textarea,
208
+ kt as Title,
209
+ mt as ToggleGroup,
210
+ dr as VirtualScrollable,
203
211
  Co as ZIndexEnum,
204
212
  j as clamp,
205
213
  J as clamp01,
206
214
  a as clsx,
207
215
  fo as debounce,
208
- N as defaultLinkReplacer,
209
- V as defaultLinkReplacerx,
210
- _ as formatCurrency,
216
+ z as defaultLinkReplacer,
217
+ Y as defaultLinkReplacerx,
218
+ b as formatCurrency,
211
219
  y as formatDate,
212
220
  D as formatLocaleDate,
213
- P as formatShortDate,
214
- wo as getButtonClassName,
221
+ O as formatShortDate,
222
+ No as getButtonClassName,
215
223
  xo as getColor,
216
224
  Jo as getLinkClassName,
217
225
  Qo as getLinkStyles,
218
- dt as getTextOpacity,
226
+ Lt as getTextOpacity,
219
227
  m as getValue,
220
- O as identity,
221
- v as invoke,
222
- G as isExternalUrl,
228
+ k as identity,
229
+ h as invoke,
230
+ V as isExternalUrl,
223
231
  q as isFalseString,
224
- go as isInEnum,
232
+ Ro as isInEnum,
225
233
  $ as isTrueString,
226
- Bo as joaat32,
227
- ct as lineHeightResponsiveValueFormatter,
228
- Y as linkify,
234
+ Lo as joaat32,
235
+ St as lineHeightResponsiveValueFormatter,
236
+ G as linkify,
229
237
  H as linkifyx,
230
238
  K as matchLinkNodes,
231
- X as matchLinks,
239
+ W as matchLinks,
232
240
  r as mergeRefs,
233
241
  Q as minmax,
234
- h as noop,
242
+ v as noop,
235
243
  oo as normalizeSlashes,
236
244
  eo as replaceRange,
237
245
  U as returnFalse,
238
246
  M as returnTrue,
239
247
  ro as splitByIndices,
240
- Ke as stringPropFormater,
241
- Tt as textSizeResponsiveValueFormatter,
248
+ Xe as stringPropFormater,
249
+ Bt as textSizeResponsiveValueFormatter,
242
250
  mo as throttle,
243
- Dt as titleGetCoords,
244
- Pt as titleGetCssStyle,
245
- no as ui,
251
+ ht as titleGetCoords,
252
+ vt as titleGetCssStyle,
253
+ lo as ui,
246
254
  to as unicodeCharAt,
247
- R as useClipboardComponent,
248
- jr as useContextualStyle,
255
+ S as useClipboardComponent,
256
+ rt as useContextualStyle,
249
257
  s as useDynamicRef,
250
258
  d as useGlobalKeyboardEvent,
251
- n as useInstance,
259
+ l as useInstance,
252
260
  T as useKeyboardClose,
253
- g as useOutlet,
261
+ R as useOutlet,
254
262
  x as usePopoverController,
255
263
  C as useWindowResize
256
264
  };
@@ -37,6 +37,16 @@
37
37
  @return calc(var(--quant) * #{$multiplier});
38
38
  }
39
39
 
40
+ $controlHeightsMap: (
41
+ 'xxsmall': q(1.5),
42
+ 'xsmall': q(3),
43
+ 'small': q(4),
44
+ 'normal': q(6),
45
+ 'large': q(7),
46
+ 'xlarge': q(10),
47
+ 'xxlarge': q(12.5),
48
+ );
49
+
40
50
  @function control-height($size: 'normal') {
41
51
  @return var(--control-height-#{$size});
42
52
  }
@@ -77,6 +87,15 @@
77
87
  line-height: var(--line-height-#{$size});
78
88
  }
79
89
 
90
+ $borderRadiusMap: (
91
+ 'none': 0px,
92
+ 'xxsmall': q(0.25),
93
+ 'xsmall': q(0.5),
94
+ 'small': q(0.75),
95
+ 'normal': q(1.5),
96
+ 'pill': 9999px,
97
+ );
98
+
80
99
  @function border-radius($size: 'normal') {
81
100
  @return var(--border-radius-#{$size});
82
101
  }
@@ -348,6 +367,7 @@ $zindexMap: (
348
367
  'zero': 0,
349
368
  'first': 1,
350
369
  'second': 2,
370
+ 'flyout': 1000,
351
371
  'max': 9000,
352
372
  );
353
373
 
@@ -411,20 +431,3 @@ $mpMap: (
411
431
  pb: padding-bottom,
412
432
  pl: padding-left,
413
433
  );
414
- $controlHeightsMap: (
415
- 'xxsmall': q(1.5),
416
- 'xsmall': q(3),
417
- 'small': q(4),
418
- 'normal': q(6),
419
- 'large': q(7),
420
- 'xlarge': q(10),
421
- 'xxlarge': q(12.5),
422
- );
423
- $borderRadiusMap: (
424
- 'none': 0px,
425
- 'xxsmall': q(0.25),
426
- 'xsmall': q(0.5),
427
- 'small': q(0.75),
428
- 'normal': q(1.5),
429
- 'pill': 9999px,
430
- );
@@ -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.16",
4
+ "version": "4.5.18",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "main": "dist/main.js",