@cfx-dev/ui-components 4.2.21 → 4.2.23

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 (79) hide show
  1. package/dist/assets/css/Badge.css +1 -1
  2. package/dist/assets/css/Link.css +1 -1
  3. package/dist/assets/general/global.css +1 -1
  4. package/dist/components/Accordion/Accordion.js +1 -1
  5. package/dist/components/Accordion/AccordionShowcase.js +1 -1
  6. package/dist/components/Avatar/AvatarShowcase.js +1 -1
  7. package/dist/components/Badge/Badge.d.ts +9 -2
  8. package/dist/components/Badge/Badge.js +52 -25
  9. package/dist/components/Badge/BadgeShowcase.js +1 -1
  10. package/dist/components/BurgerMenu/BurgerMenu.js +1 -1
  11. package/dist/components/BurgerMenu/BurgerMenuShowcase.js +1 -1
  12. package/dist/components/Button/ButtonShowcase.js +1 -1
  13. package/dist/components/Checkbox/Checkbox.d.ts +1 -1
  14. package/dist/components/DropdownSelect/DropdownSelect.d.ts +1 -1
  15. package/dist/components/DropdownSelect/DropdownSelect.js +5 -5
  16. package/dist/components/DropdownSelect/DropdownSelectShowcase.js +1 -1
  17. package/dist/components/Icon/Icon.d.ts +1 -1
  18. package/dist/components/Icon/Icon.js +1 -1
  19. package/dist/components/IconBig/IconBig.js +1 -1
  20. package/dist/components/InfoPanel/InfoPanelShowcase.js +1 -1
  21. package/dist/components/Input/Input.d.ts +1 -1
  22. package/dist/components/Input/Input.js +6 -6
  23. package/dist/components/Input/InputShowcase.js +1 -1
  24. package/dist/components/Input/RichInput.d.ts +1 -1
  25. package/dist/components/Input/RichInput.js +4 -4
  26. package/dist/components/Island/Island.js +4 -4
  27. package/dist/components/Layout/Box/Box.d.ts +1 -1
  28. package/dist/components/Layout/Box/Box.js +1 -1
  29. package/dist/components/Layout/Flex/Flex.d.ts +1 -1
  30. package/dist/components/Layout/Flex/Flex.js +1 -1
  31. package/dist/components/Layout/Flex/index.d.ts +2 -1
  32. package/dist/components/Layout/Flex/index.js +10 -4
  33. package/dist/components/Layout/Scrollable/ScrollableShowcase.js +1 -1
  34. package/dist/components/Link/ButtonLink.js +23 -18
  35. package/dist/components/Link/Link.d.ts +3 -1
  36. package/dist/components/Link/Link.js +48 -30
  37. package/dist/components/Link/LinkShowcase.js +46 -41
  38. package/dist/components/Link/index.d.ts +1 -1
  39. package/dist/components/Link/index.js +6 -5
  40. package/dist/components/Logos/LogosShowcase.js +1 -1
  41. package/dist/components/Modal/Modal.js +1 -1
  42. package/dist/components/Select/Select.d.ts +1 -1
  43. package/dist/components/Select/Select.js +1 -1
  44. package/dist/components/Select/SelectShowcase.js +1 -1
  45. package/dist/components/Separator/Separator.d.ts +1 -1
  46. package/dist/components/Separator/Separator.js +1 -1
  47. package/dist/components/Shroud/Shroud.js +6 -6
  48. package/dist/components/Skeleton/Skeleton.d.ts +1 -1
  49. package/dist/components/Skeleton/Skeleton.js +1 -1
  50. package/dist/components/Skeleton/SkeletonShowcase.js +1 -1
  51. package/dist/components/Slider/SliderShowcase.js +1 -1
  52. package/dist/components/Spacer/Spacer.d.ts +1 -1
  53. package/dist/components/Table/Table.js +1 -1
  54. package/dist/components/Table/TableShowcase.js +1 -1
  55. package/dist/components/Tabular/Tabular.d.ts +1 -1
  56. package/dist/components/Tabular/Tabular.js +1 -1
  57. package/dist/components/Tabular/TabularShowcase.js +1 -1
  58. package/dist/components/Text/Text.js +13 -12
  59. package/dist/components/Text/Text.types.d.ts +1 -1
  60. package/dist/components/Text/TextShowcase.js +12 -15
  61. package/dist/components/Text/index.d.ts +1 -1
  62. package/dist/components/Text/index.js +9 -8
  63. package/dist/components/Title/TitleShowcase.js +1 -1
  64. package/dist/components/ToggleGroup/ToggleGroupShowcase.js +1 -1
  65. package/dist/main.d.ts +8 -7
  66. package/dist/main.js +211 -196
  67. package/dist/styles-scss/global.scss +2 -2
  68. package/dist/styles-scss/tokens.scss +0 -4
  69. package/dist/utils/color.d.ts +3 -1
  70. package/dist/utils/enum.d.ts +1 -0
  71. package/dist/utils/enum.js +6 -0
  72. package/dist/utils/ui/index.d.ts +3 -0
  73. package/dist/utils/ui/index.js +11 -0
  74. package/dist/{components → utils/ui}/ui.d.ts +2 -68
  75. package/dist/utils/ui/ui.js +68 -0
  76. package/dist/utils/ui/ui.types.d.ts +86 -0
  77. package/dist/utils/ui/ui.types.js +9 -0
  78. package/package.json +1 -1
  79. package/dist/components/ui.js +0 -73
package/dist/main.d.ts CHANGED
@@ -13,6 +13,9 @@ export { debounce, throttle, } from './utils/execution';
13
13
  export type { SetTimeoutReturn } from './utils/execution';
14
14
  export { getColor } from './utils/color';
15
15
  export type { GetColorProps } from './utils/color';
16
+ export { ui, OffsetEnum, MediaQueryEnum, BorderRadiusEnum, ZIndexEnum, ColorEnum, } from './utils/ui';
17
+ export type { OffsetType, MediaQueryType, ResponsiveOffsetType, ResponsiveValueType, MPProps, BorderRadiusType, ZIndexType, ColorType, } from './utils/ui';
18
+ export { isInEnum } from './utils/enum';
16
19
  export { IconButton } from './components/IconButton';
17
20
  export type { IconButtonProps, IconButtonAreaSize } from './components/IconButton';
18
21
  export { Accordion, AccordionTrigger, AccordionHeader, AccordionItem, AccordionContent, } from './components/Accordion';
@@ -25,7 +28,7 @@ export { Button, ButtonContent, getButtonClassName, ButtonBar, LinkButton, } fro
25
28
  export type { ButtonProps, ButtonTheme, ButtonBarProps, LinkButtonProps, } from './components/Button';
26
29
  export { BurgerMenu, BurgerMenuButton } from './components/BurgerMenu';
27
30
  export type { BurgerMenuItem, BurgerMenuProps, BurgerMenuButtonProps, } from './components/BurgerMenu';
28
- export { Link, ButtonLink, getLinkClassName, } from './components/Link';
31
+ export { Link, ButtonLink, getLinkClassName, getLinkStyles, } from './components/Link';
29
32
  export type { LinkProps, LinkBaseProps } from './components/Link';
30
33
  export { Avatar } from './components/Avatar';
31
34
  export type { AvatarProps, AvatarSize } from './components/Avatar';
@@ -65,8 +68,8 @@ export { Box, flexPropFormater } from './components/Layout/Box';
65
68
  export type { BoxProps } from './components/Layout/Box';
66
69
  export { Center } from './components/Layout/Center';
67
70
  export type { CenterProps } from './components/Layout/Center';
68
- export { Flex, FlexRestricter } from './components/Layout/Flex';
69
- export type { FlexType, FlexProps, FlexRestricterProps, FlexAlignItemsType, FlexAlignItemsEnum, FlexDirectionType, FlexDirectionEnum, FlexJustifyContentType, FlexJustifyContentEnum, FlexWrapType, FlexWrapEnum, } from './components/Layout/Flex';
71
+ export { Flex, FlexRestricter, FlexAlignItemsEnum, FlexDirectionEnum, FlexJustifyContentEnum, FlexWrapEnum, } from './components/Layout/Flex';
72
+ export type { FlexType, FlexProps, FlexRestricterProps, FlexAlignItemsType, FlexDirectionType, FlexJustifyContentType, FlexWrapType, } from './components/Layout/Flex';
70
73
  export { Pad } from './components/Layout/Pad';
71
74
  export type { PadProps } from './components/Layout/Pad';
72
75
  export { Page } from './components/Layout/Page';
@@ -111,8 +114,8 @@ export { Tabular } from './components/Tabular';
111
114
  export type { TabularProps, TabularItem, TabularRootProps, } from './components/Tabular';
112
115
  export { Table, TableIconButton, TableHeaderItem, TableRow, } from './components/Table';
113
116
  export type { TableHeaderType, TableProps, TableRowType, TableDataContainerType, TableHeaderItemProps, TableRowProps, } from './components/Table';
114
- export { Text, TextBlock, getTextOpacity, DEFAULT_TEXT_COLOR, TEXT_OPACITY_MAP, textSizeResponsiveValueFormatter, } from './components/Text';
115
- export type { TextSizeEnum, TextSize, TextWeight, TextOpacity, TextAs, TextLetterSpacing, TextProps, TextColorProps, TextFamaly, } from './components/Text';
117
+ export { TextSizeEnum, Text, TextBlock, getTextOpacity, DEFAULT_TEXT_COLOR, TEXT_OPACITY_MAP, textSizeResponsiveValueFormatter, } from './components/Text';
118
+ export type { TextSize, TextWeight, TextOpacity, TextAs, TextLetterSpacing, TextProps, TextColorProps, TextFamaly, } from './components/Text';
116
119
  export { Textarea } from './components/Textarea';
117
120
  export type { TextareaProps } from './components/Textarea';
118
121
  export { TITLE_OUTLET_ID, titleGetCssStyle, titleGetCoords, Title, } from './components/Title';
@@ -124,5 +127,3 @@ export type { SkeletonProps } from './components/Skeleton';
124
127
  export { OnScreenSensor } from './components/OnScreenSensor';
125
128
  export type { OnScreenSensorProps } from './components/OnScreenSensor';
126
129
  export { Symbols } from './components/Symbols';
127
- export { ui } from './components/ui';
128
- export type { OffsetType, OffsetEnum, MediaQueryType, MediaQueryEnum, ResponsiveOffsetType, ResponsiveValueType, MPProps, BorderRadiusEnum, BorderRadiusType, ZIndexEnum, ZIndexType, } from './components/ui';
package/dist/main.js CHANGED
@@ -1,213 +1,228 @@
1
1
  import { mergeRefs as e } from "./utils/mergeRefs.js";
2
- import { clsx as f } from "./utils/clsx.js";
3
- import { getValue as a } from "./utils/getValue.js";
2
+ import { clsx as m } from "./utils/clsx.js";
3
+ import { getValue as p } 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";
6
- import { useDynamicRef as u } from "./utils/hooks/useDynamicRef.js";
5
+ import { useInstance as l } from "./utils/hooks/useInstance.js";
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 B } from "./utils/hooks/useWindowResize.js";
10
- import { useOutlet as L } from "./utils/hooks/useOutlet.js";
11
- import { CLIPBOARD_TITLE_APPEARANCE as S, useClipboardComponent as R } from "./utils/hooks/useClipboardComponent.js";
12
- import { identity as y, invoke as A, noop as P, returnFalse as b, returnTrue as O } from "./utils/functional.js";
13
- import { Linkify as _, defaultLinkReplacer as D, defaultLinkReplacerx as v, isExternalUrl as F, linkify as h, linkifyx as U, matchLinkNodes as w, matchLinks as z } from "./utils/links.js";
14
- import { clamp as G, clamp01 as M } from "./utils/math.js";
15
- import { isFalseString as K, isTrueString as Y, normalizeSlashes as H, replaceRange as X, splitByIndices as W, unicodeCharAt as j } from "./utils/string.js";
16
- import { debounce as J, throttle as Q } from "./utils/execution.js";
9
+ import { useWindowResize as C } from "./utils/hooks/useWindowResize.js";
10
+ import { useOutlet as E } from "./utils/hooks/useOutlet.js";
11
+ import { CLIPBOARD_TITLE_APPEARANCE as L, useClipboardComponent as S } from "./utils/hooks/useClipboardComponent.js";
12
+ import { identity as R, invoke as k, noop as A, returnFalse as O, returnTrue as P } from "./utils/functional.js";
13
+ import { Linkify as D, defaultLinkReplacer as F, defaultLinkReplacerx as _, isExternalUrl as v, linkify as h, linkifyx as U, matchLinkNodes as z, matchLinks as w } from "./utils/links.js";
14
+ import { clamp as N, clamp01 as G } from "./utils/math.js";
15
+ import { isFalseString as K, isTrueString as Y, normalizeSlashes as H, replaceRange as W, splitByIndices as X, unicodeCharAt as J } from "./utils/string.js";
16
+ import { debounce as Z, throttle as j } from "./utils/execution.js";
17
17
  import { getColor as $ } from "./utils/color.js";
18
- import { default as ro } from "./components/IconButton/IconButton.js";
19
- import { Accordion as to, AccordionContent as fo, AccordionHeader as po, AccordionItem as ao, AccordionTrigger as mo } from "./components/Accordion/Accordion.js";
20
- import { default as lo } from "./components/ClipboardButton/ClipboardButton.js";
21
- import { default as so } from "./components/Checkbox/Checkbox.js";
22
- import { Button as io, ButtonContent as co, getButtonClassName as To } from "./components/Button/Button.js";
23
- import { ButtonBar as Bo } from "./components/Button/ButtonBar.js";
24
- import { LinkButton as Lo } from "./components/Button/LinkButton.js";
25
- import { BurgerMenuButton as So } from "./components/BurgerMenu/BurgerMenuButton.js";
26
- import { BurgerMenu as ko } from "./components/BurgerMenu/BurgerMenu.js";
27
- import { default as Ao, getLinkClassName as Po } from "./components/Link/Link.js";
28
- import { default as Oo } from "./components/Link/ButtonLink.js";
29
- import { Avatar as _o } from "./components/Avatar/Avatar.js";
30
- import { BACKDROP_OUTLET_ID as vo, default as Fo } from "./components/BackdropPortal/BackdropPortal.js";
31
- import { Badge as Uo } from "./components/Badge/Badge.js";
32
- import { default as zo } from "./components/ControlBox/ControlBox.js";
33
- import { default as Go } from "./components/CountryFlag/CountryFlag.js";
34
- import { default as Vo } from "./components/Decorate/Decorate.js";
35
- import { Dot as Yo } from "./components/Dot/Dot.js";
36
- import { FLYOUT_OUTLET_ID as Xo, Flyout as Wo } from "./components/Flyout/Flyout.js";
37
- import { Logos as qo } from "./components/Logos/index.js";
38
- import { I as Qo } from "./cfxIcons-BNd1WgpX.js";
39
- import { I as $o } from "./cfxIconsBig-BLJjMT-Y.js";
40
- import { Icon as rr } from "./components/Icon/Icon.js";
41
- import { IconBig as tr } from "./components/IconBig/IconBig.js";
42
- import { Indicator as pr } from "./components/Indicator/Indicator.js";
43
- import { default as mr } from "./components/InfoPanel/InfoPanel.js";
44
- import { default as lr } from "./components/Input/Input.js";
45
- import { default as sr } from "./components/Input/RichInput.js";
46
- import { Interactive as ir } from "./components/Interactive/Interactive.js";
47
- import { Island as cr, IslandCorner as Tr } from "./components/Island/Island.js";
48
- import { Box as Br, flexPropFormater as Cr } from "./components/Layout/Box/Box.js";
49
- import { Center as gr } from "./components/Layout/Center/Center.js";
50
- import { Flex as Rr } from "./components/Layout/Flex/Flex.js";
51
- import { FlexRestricter as yr } from "./components/Layout/Flex/FlexRestricter.js";
52
- import { Pad as Pr } from "./components/Layout/Pad/Pad.js";
53
- import { Page as Or } from "./components/Layout/Page/Page.js";
54
- import { R as _r } from "./Rail-DcVowhML.js";
55
- import { Scrollable as vr } from "./components/Layout/Scrollable/Scrollable.js";
56
- import { VirtualScrollable as hr } from "./components/Layout/Scrollable/VirtualScrollable.js";
57
- import { Loaf as wr } from "./components/Loaf/Loaf.js";
58
- import { Modal as Nr } from "./components/Modal/Modal.js";
59
- import { NavList as Mr } from "./components/NavList/NavList.js";
60
- import { OVERLAY_OUTLET_ID as Kr, Overlay as Yr } from "./components/Overlay/Overlay.js";
61
- import { Popover as Xr } from "./components/Popover/Popover.js";
62
- import { PremiumBadge as jr } from "./components/PremiumBadge/PremiumBadge.js";
63
- import { Prose as Jr } from "./components/Prose/Prose.js";
64
- import { Radio as Zr } from "./components/Radio/Radio.js";
65
- import { Select as oe } from "./components/Select/Select.js";
66
- import { DropdownSelect as ee } from "./components/DropdownSelect/DropdownSelect.js";
67
- import { Separator as fe } from "./components/Separator/Separator.js";
68
- import { Shroud as ae } from "./components/Shroud/Shroud.js";
69
- import { Slider as xe } from "./components/Slider/Slider.js";
70
- import { Spacer as ne } from "./components/Spacer/Spacer.js";
71
- import { Style as ue, useContextualStyle as ie } from "./components/Style/Style.js";
72
- import { default as ce } from "./components/Switch/Switch.js";
73
- import { ToggleGroup as Ie } from "./components/ToggleGroup/ToggleGroup.js";
74
- import { Tabular as Ce } from "./components/Tabular/Tabular.js";
75
- import { Table as ge, TableHeaderItem as Se, TableIconButton as Re, TableRow as ke } from "./components/Table/Table.js";
76
- import { DEFAULT_TEXT_COLOR as Ae, TEXT_OPACITY_MAP as Pe, Text as be, TextBlock as Oe, getTextOpacity as Ee, textSizeResponsiveValueFormatter as _e } from "./components/Text/Text.js";
77
- import { ui as ve } from "./components/ui.js";
78
- import { Textarea as he } from "./components/Textarea/Textarea.js";
79
- import { TITLE_OUTLET_ID as we, Title as ze, titleGetCoords as Ne, titleGetCssStyle as Ge } from "./components/Title/Title.js";
80
- import { default as Ve } from "./components/InputDropzone/InputDropzone.js";
81
- import { default as Ye } from "./components/InputDropzone/ItemPreview.js";
82
- import { default as Xe } from "./components/Skeleton/Skeleton.js";
83
- import { OnScreenSensor as je } from "./components/OnScreenSensor.js";
84
- import { Symbols as Je } from "./components/Symbols.js";
18
+ import { ui as ro } from "./utils/ui/ui.js";
19
+ import { BorderRadiusEnum as to, ColorEnum as mo, MediaQueryEnum as fo, OffsetEnum as po, TextSizeEnum as ao, ZIndexEnum as xo } from "./utils/ui/ui.types.js";
20
+ import { isInEnum as lo } from "./utils/enum.js";
21
+ import { default as so } from "./components/IconButton/IconButton.js";
22
+ import { Accordion as co, AccordionContent as To, AccordionHeader as Io, AccordionItem as Co, AccordionTrigger as Bo } from "./components/Accordion/Accordion.js";
23
+ import { default as go } from "./components/ClipboardButton/ClipboardButton.js";
24
+ import { default as So } from "./components/Checkbox/Checkbox.js";
25
+ import { Button as Ro, ButtonContent as ko, getButtonClassName as Ao } from "./components/Button/Button.js";
26
+ import { ButtonBar as Po } from "./components/Button/ButtonBar.js";
27
+ import { LinkButton as Do } from "./components/Button/LinkButton.js";
28
+ import { BurgerMenuButton as _o } from "./components/BurgerMenu/BurgerMenuButton.js";
29
+ import { BurgerMenu as ho } from "./components/BurgerMenu/BurgerMenu.js";
30
+ import { default as zo, getLinkClassName as wo, getLinkStyles as Mo } from "./components/Link/Link.js";
31
+ import { default as Go } from "./components/Link/ButtonLink.js";
32
+ import { Avatar as Ko } from "./components/Avatar/Avatar.js";
33
+ import { BACKDROP_OUTLET_ID as Ho, default as Wo } from "./components/BackdropPortal/BackdropPortal.js";
34
+ import { Badge as Jo } from "./components/Badge/Badge.js";
35
+ import { default as Zo } from "./components/ControlBox/ControlBox.js";
36
+ import { default as qo } from "./components/CountryFlag/CountryFlag.js";
37
+ import { default as or } from "./components/Decorate/Decorate.js";
38
+ import { Dot as er } from "./components/Dot/Dot.js";
39
+ import { FLYOUT_OUTLET_ID as mr, Flyout as fr } from "./components/Flyout/Flyout.js";
40
+ import { Logos as ar } from "./components/Logos/index.js";
41
+ import { I as nr } from "./cfxIcons-BNd1WgpX.js";
42
+ import { I as ur } from "./cfxIconsBig-BLJjMT-Y.js";
43
+ import { Icon as ir } from "./components/Icon/Icon.js";
44
+ import { IconBig as cr } from "./components/IconBig/IconBig.js";
45
+ import { Indicator as Ir } from "./components/Indicator/Indicator.js";
46
+ import { default as Br } from "./components/InfoPanel/InfoPanel.js";
47
+ import { default as gr } from "./components/Input/Input.js";
48
+ import { default as Sr } from "./components/Input/RichInput.js";
49
+ import { Interactive as Rr } from "./components/Interactive/Interactive.js";
50
+ import { Island as Ar, IslandCorner as Or } from "./components/Island/Island.js";
51
+ import { Box as br, flexPropFormater as Dr } from "./components/Layout/Box/Box.js";
52
+ import { Center as _r } from "./components/Layout/Center/Center.js";
53
+ import { Flex as hr } from "./components/Layout/Flex/Flex.js";
54
+ import { FlexAlignItemsEnum as zr, FlexDirectionEnum as wr, FlexJustifyContentEnum as Mr, FlexWrapEnum as Nr } from "./components/Layout/Flex/Flex.types.js";
55
+ import { FlexRestricter as Vr } from "./components/Layout/Flex/FlexRestricter.js";
56
+ import { Pad as Yr } from "./components/Layout/Pad/Pad.js";
57
+ import { Page as Wr } from "./components/Layout/Page/Page.js";
58
+ import { R as Jr } from "./Rail-DcVowhML.js";
59
+ import { Scrollable as Zr } from "./components/Layout/Scrollable/Scrollable.js";
60
+ import { VirtualScrollable as qr } from "./components/Layout/Scrollable/VirtualScrollable.js";
61
+ import { Loaf as oe } from "./components/Loaf/Loaf.js";
62
+ import { Modal as ee } from "./components/Modal/Modal.js";
63
+ import { NavList as me } from "./components/NavList/NavList.js";
64
+ import { OVERLAY_OUTLET_ID as pe, Overlay as ae } from "./components/Overlay/Overlay.js";
65
+ import { Popover as ne } from "./components/Popover/Popover.js";
66
+ import { PremiumBadge as ue } from "./components/PremiumBadge/PremiumBadge.js";
67
+ import { Prose as ie } from "./components/Prose/Prose.js";
68
+ import { Radio as ce } from "./components/Radio/Radio.js";
69
+ import { Select as Ie } from "./components/Select/Select.js";
70
+ import { DropdownSelect as Be } from "./components/DropdownSelect/DropdownSelect.js";
71
+ import { Separator as ge } from "./components/Separator/Separator.js";
72
+ import { Shroud as Se } from "./components/Shroud/Shroud.js";
73
+ import { Slider as Re } from "./components/Slider/Slider.js";
74
+ import { Spacer as Ae } from "./components/Spacer/Spacer.js";
75
+ import { Style as Pe, useContextualStyle as be } from "./components/Style/Style.js";
76
+ import { default as Fe } from "./components/Switch/Switch.js";
77
+ import { ToggleGroup as ve } from "./components/ToggleGroup/ToggleGroup.js";
78
+ import { Tabular as Ue } from "./components/Tabular/Tabular.js";
79
+ import { Table as we, TableHeaderItem as Me, TableIconButton as Ne, TableRow as Ge } from "./components/Table/Table.js";
80
+ import { DEFAULT_TEXT_COLOR as Ke, TEXT_OPACITY_MAP as Ye, Text as He, TextBlock as We, getTextOpacity as Xe, textSizeResponsiveValueFormatter as Je } from "./components/Text/Text.js";
81
+ import { Textarea as Ze } from "./components/Textarea/Textarea.js";
82
+ import { TITLE_OUTLET_ID as qe, Title as $e, titleGetCoords as ot, titleGetCssStyle as rt } from "./components/Title/Title.js";
83
+ import { default as tt } from "./components/InputDropzone/InputDropzone.js";
84
+ import { default as ft } from "./components/InputDropzone/ItemPreview.js";
85
+ import { default as at } from "./components/Skeleton/Skeleton.js";
86
+ import { OnScreenSensor as nt } from "./components/OnScreenSensor.js";
87
+ import { Symbols as ut } from "./components/Symbols.js";
85
88
  export {
86
- to as Accordion,
87
- fo as AccordionContent,
88
- po as AccordionHeader,
89
- ao as AccordionItem,
90
- mo as AccordionTrigger,
91
- _o as Avatar,
92
- vo as BACKDROP_OUTLET_ID,
93
- Fo as BackdropPortal,
94
- Uo as Badge,
95
- Br as Box,
96
- ko as BurgerMenu,
97
- So as BurgerMenuButton,
98
- io as Button,
99
- Bo as ButtonBar,
100
- co as ButtonContent,
101
- Oo as ButtonLink,
102
- S as CLIPBOARD_TITLE_APPEARANCE,
103
- gr as Center,
104
- so as Checkbox,
105
- lo as ClipboardButton,
106
- zo as ControlBox,
107
- Go as CountryFlag,
108
- Ae as DEFAULT_TEXT_COLOR,
109
- Vo as Decorate,
110
- Yo as Dot,
111
- ee as DropdownSelect,
112
- Ye as DropzoneItemPreview,
113
- Xo as FLYOUT_OUTLET_ID,
114
- Rr as Flex,
115
- yr as FlexRestricter,
116
- Wo as Flyout,
117
- rr as Icon,
118
- tr as IconBig,
119
- ro as IconButton,
120
- Qo as Icons,
121
- $o as IconsBig,
122
- pr as Indicator,
123
- mr as InfoPanel,
124
- lr as Input,
125
- Ve as InputDropzone,
126
- ir as Interactive,
127
- cr as Island,
128
- Tr as IslandCorner,
129
- Ao as Link,
130
- Lo as LinkButton,
131
- _ as Linkify,
132
- wr as Loaf,
133
- qo as Logos,
134
- Nr as Modal,
135
- Mr as NavList,
136
- Kr as OVERLAY_OUTLET_ID,
137
- je as OnScreenSensor,
138
- Yr as Overlay,
139
- Pr as Pad,
140
- Or as Page,
141
- Xr as Popover,
142
- jr as PremiumBadge,
143
- Jr as Prose,
144
- Zr as Radio,
145
- _r as Rail,
146
- sr as RichInput,
147
- vr as Scrollable,
148
- oe as Select,
149
- fe as Separator,
150
- ae as Shroud,
151
- Xe as Skeleton,
152
- xe as Slider,
153
- ne as Spacer,
154
- ue as Style,
155
- ce as Switch,
156
- Je as Symbols,
157
- Pe as TEXT_OPACITY_MAP,
158
- we as TITLE_OUTLET_ID,
159
- ge as Table,
160
- Se as TableHeaderItem,
161
- Re as TableIconButton,
162
- ke as TableRow,
163
- Ce as Tabular,
164
- be as Text,
165
- Oe as TextBlock,
166
- he as Textarea,
167
- ze as Title,
168
- Ie as ToggleGroup,
169
- hr as VirtualScrollable,
170
- G as clamp,
171
- M as clamp01,
172
- f as clsx,
173
- J as debounce,
174
- D as defaultLinkReplacer,
175
- v as defaultLinkReplacerx,
176
- Cr as flexPropFormater,
177
- To as getButtonClassName,
89
+ co as Accordion,
90
+ To as AccordionContent,
91
+ Io as AccordionHeader,
92
+ Co as AccordionItem,
93
+ Bo as AccordionTrigger,
94
+ Ko as Avatar,
95
+ Ho as BACKDROP_OUTLET_ID,
96
+ Wo as BackdropPortal,
97
+ Jo as Badge,
98
+ to as BorderRadiusEnum,
99
+ br as Box,
100
+ ho as BurgerMenu,
101
+ _o as BurgerMenuButton,
102
+ Ro as Button,
103
+ Po as ButtonBar,
104
+ ko as ButtonContent,
105
+ Go as ButtonLink,
106
+ L as CLIPBOARD_TITLE_APPEARANCE,
107
+ _r as Center,
108
+ So as Checkbox,
109
+ go as ClipboardButton,
110
+ mo as ColorEnum,
111
+ Zo as ControlBox,
112
+ qo as CountryFlag,
113
+ Ke as DEFAULT_TEXT_COLOR,
114
+ or as Decorate,
115
+ er as Dot,
116
+ Be as DropdownSelect,
117
+ ft as DropzoneItemPreview,
118
+ mr as FLYOUT_OUTLET_ID,
119
+ hr as Flex,
120
+ zr as FlexAlignItemsEnum,
121
+ wr as FlexDirectionEnum,
122
+ Mr as FlexJustifyContentEnum,
123
+ Vr as FlexRestricter,
124
+ Nr as FlexWrapEnum,
125
+ fr as Flyout,
126
+ ir as Icon,
127
+ cr as IconBig,
128
+ so as IconButton,
129
+ nr as Icons,
130
+ ur as IconsBig,
131
+ Ir as Indicator,
132
+ Br as InfoPanel,
133
+ gr as Input,
134
+ tt as InputDropzone,
135
+ Rr as Interactive,
136
+ Ar as Island,
137
+ Or as IslandCorner,
138
+ zo as Link,
139
+ Do as LinkButton,
140
+ D as Linkify,
141
+ oe as Loaf,
142
+ ar as Logos,
143
+ fo as MediaQueryEnum,
144
+ ee as Modal,
145
+ me as NavList,
146
+ pe as OVERLAY_OUTLET_ID,
147
+ po as OffsetEnum,
148
+ nt as OnScreenSensor,
149
+ ae as Overlay,
150
+ Yr as Pad,
151
+ Wr as Page,
152
+ ne as Popover,
153
+ ue as PremiumBadge,
154
+ ie as Prose,
155
+ ce as Radio,
156
+ Jr as Rail,
157
+ Sr as RichInput,
158
+ Zr as Scrollable,
159
+ Ie as Select,
160
+ ge as Separator,
161
+ Se as Shroud,
162
+ at as Skeleton,
163
+ Re as Slider,
164
+ Ae as Spacer,
165
+ Pe as Style,
166
+ Fe as Switch,
167
+ ut as Symbols,
168
+ Ye as TEXT_OPACITY_MAP,
169
+ qe as TITLE_OUTLET_ID,
170
+ we as Table,
171
+ Me as TableHeaderItem,
172
+ Ne as TableIconButton,
173
+ Ge as TableRow,
174
+ Ue as Tabular,
175
+ He as Text,
176
+ We as TextBlock,
177
+ ao as TextSizeEnum,
178
+ Ze as Textarea,
179
+ $e as Title,
180
+ ve as ToggleGroup,
181
+ qr as VirtualScrollable,
182
+ xo as ZIndexEnum,
183
+ N as clamp,
184
+ G as clamp01,
185
+ m as clsx,
186
+ Z as debounce,
187
+ F as defaultLinkReplacer,
188
+ _ as defaultLinkReplacerx,
189
+ Dr as flexPropFormater,
190
+ Ao as getButtonClassName,
178
191
  $ as getColor,
179
- Po as getLinkClassName,
180
- Ee as getTextOpacity,
181
- a as getValue,
182
- y as identity,
183
- A as invoke,
184
- F as isExternalUrl,
192
+ wo as getLinkClassName,
193
+ Mo as getLinkStyles,
194
+ Xe as getTextOpacity,
195
+ p as getValue,
196
+ R as identity,
197
+ k as invoke,
198
+ v as isExternalUrl,
185
199
  K as isFalseString,
200
+ lo as isInEnum,
186
201
  Y as isTrueString,
187
202
  h as linkify,
188
203
  U as linkifyx,
189
- w as matchLinkNodes,
190
- z as matchLinks,
204
+ z as matchLinkNodes,
205
+ w as matchLinks,
191
206
  e as mergeRefs,
192
- P as noop,
207
+ A as noop,
193
208
  H as normalizeSlashes,
194
- X as replaceRange,
195
- b as returnFalse,
196
- O as returnTrue,
197
- W as splitByIndices,
198
- _e as textSizeResponsiveValueFormatter,
199
- Q as throttle,
200
- Ne as titleGetCoords,
201
- Ge as titleGetCssStyle,
202
- ve as ui,
203
- j as unicodeCharAt,
204
- R as useClipboardComponent,
205
- ie as useContextualStyle,
206
- u as useDynamicRef,
209
+ W as replaceRange,
210
+ O as returnFalse,
211
+ P as returnTrue,
212
+ X as splitByIndices,
213
+ Je as textSizeResponsiveValueFormatter,
214
+ j as throttle,
215
+ ot as titleGetCoords,
216
+ rt as titleGetCssStyle,
217
+ ro as ui,
218
+ J as unicodeCharAt,
219
+ S as useClipboardComponent,
220
+ be as useContextualStyle,
221
+ s as useDynamicRef,
207
222
  d as useGlobalKeyboardEvent,
208
- n as useInstance,
223
+ l as useInstance,
209
224
  T as useKeyboardClose,
210
- L as useOutlet,
225
+ E as useOutlet,
211
226
  x as usePopoverController,
212
- B as useWindowResize
227
+ C as useWindowResize
213
228
  };
@@ -53,7 +53,7 @@ body {
53
53
 
54
54
  a {
55
55
  display: inline-flex;
56
- color: ui.color-token('anchor-color');
56
+ color: ui.color('tertiary');
57
57
  cursor: pointer;
58
58
  text-decoration: underline;
59
59
  border-radius: ui.border-radius('xxsmall');
@@ -64,7 +64,7 @@ a {
64
64
  text-decoration-color: currentColor;
65
65
 
66
66
  &:hover {
67
- text-decoration-color: ui.color-token('anchor-decoration-color-hover');
67
+ text-decoration-color: ui.color('tertiary', $alpha: 0.5);
68
68
  }
69
69
 
70
70
  &:focus-visible:not(:active):not(:hover) {
@@ -30,10 +30,6 @@
30
30
  }
31
31
 
32
32
  @mixin anchor-tokens() {
33
- @include ui.define-color-token('anchor-color', ui.color('tertiary'));
34
- @include ui.define-color-token('anchor-decoration-color-hover', ui.color('tertiary', $alpha: .5));
35
- @include ui.define-color-token('anchor-secondary-color', ui.color('secondary'));
36
- @include ui.define-color-token('anchor-secondary-decoration-color-hover', ui.color('secondary', $alpha: .5));
37
33
  @include ui.define-color-token('anchor-focus-outline', ui.color('primary', $alpha: .5));
38
34
  @include ui.def('anchor-outline-size', ui.q(.25));
39
35
  }
@@ -1,6 +1,8 @@
1
+ import { ColorType } from './ui';
2
+
1
3
  export interface GetColorProps {
2
4
  colorToken?: string;
3
- color?: string;
5
+ color?: ColorType | 'inherit';
4
6
  opacity?: number | string;
5
7
  luminance?: number;
6
8
  }
@@ -0,0 +1 @@
1
+ export declare function isInEnum<T extends string>(value: string, keys: Record<T, T>): value is T;
@@ -0,0 +1,6 @@
1
+ function r(n, i) {
2
+ return n in i;
3
+ }
4
+ export {
5
+ r as isInEnum
6
+ };
@@ -0,0 +1,3 @@
1
+ export { ui } from './ui';
2
+ export { OffsetEnum, MediaQueryEnum, BorderRadiusEnum, ZIndexEnum, ColorEnum, TextSizeEnum, } from './ui.types';
3
+ export type { OffsetType, MediaQueryType, ResponsiveOffsetType, ResponsiveValueType, MPProps, BorderRadiusType, ZIndexType, ColorType, TextSize, } from './ui.types';
@@ -0,0 +1,11 @@
1
+ import { ui as m } from "./ui.js";
2
+ import { BorderRadiusEnum as n, ColorEnum as o, MediaQueryEnum as E, OffsetEnum as d, TextSizeEnum as f, ZIndexEnum as i } from "./ui.types.js";
3
+ export {
4
+ n as BorderRadiusEnum,
5
+ o as ColorEnum,
6
+ E as MediaQueryEnum,
7
+ d as OffsetEnum,
8
+ f as TextSizeEnum,
9
+ i as ZIndexEnum,
10
+ m as ui
11
+ };
@@ -1,71 +1,5 @@
1
- export declare enum TextSizeEnum {
2
- xxsmall = "xxsmall",
3
- xsmall = "xsmall",
4
- small = "small",
5
- normal = "normal",
6
- medium = "medium",
7
- large = "large",
8
- xlarge = "xlarge",
9
- xxlarge = "xxlarge",
10
- xxxlarge = "xxxlarge"
11
- }
12
- export type TextSize = keyof typeof TextSizeEnum;
13
- export declare enum BorderRadiusEnum {
14
- none = "none",
15
- xxsmall = "xxsmall",
16
- xsmall = "xsmall",
17
- small = "small",
18
- normal = "normal",
19
- pill = "pill"
20
- }
21
- export type BorderRadiusType = keyof typeof BorderRadiusEnum;
22
- export declare enum ZIndexEnum {
23
- zero = "zero",
24
- first = "first",
25
- second = "second",
26
- max = "max"
27
- }
28
- export type ZIndexType = keyof typeof ZIndexEnum;
29
- export declare enum OffsetEnum {
30
- none = "none",
31
- hairthin = "hairthin",
32
- thin = "thin",
33
- xxsmall = "xxsmall",
34
- xsmall = "xsmall",
35
- small = "small",
36
- normal = "normal",
37
- medium = "medium",
38
- large = "large",
39
- xlarge = "xlarge",
40
- safezone = "safezone"
41
- }
42
- export type OffsetType = keyof typeof OffsetEnum;
43
- export declare enum MediaQueryEnum {
44
- initial = "initial",
45
- small = "small",
46
- 'small-medium' = "small-medium",
47
- medium = "medium",
48
- 'medium-large' = "medium-large",
49
- large = "large",
50
- xlarge = "xlarge"
51
- }
52
- export type MediaQueryType = keyof typeof MediaQueryEnum;
53
- export type ResponsiveValueType<T = string | number> = T | {
54
- [key in MediaQueryType]?: T;
55
- };
56
- export type ResponsiveOffsetType = ResponsiveValueType<OffsetType | number>;
57
- export interface MPProps {
58
- m?: ResponsiveOffsetType;
59
- mt?: ResponsiveOffsetType;
60
- mr?: ResponsiveOffsetType;
61
- mb?: ResponsiveOffsetType;
62
- ml?: ResponsiveOffsetType;
63
- p?: ResponsiveOffsetType;
64
- pt?: ResponsiveOffsetType;
65
- pr?: ResponsiveOffsetType;
66
- pb?: ResponsiveOffsetType;
67
- pl?: ResponsiveOffsetType;
68
- }
1
+ import { BorderRadiusType, MPProps, OffsetType, ResponsiveOffsetType, ResponsiveValueType, TextSize, ZIndexType } from './ui.types';
2
+
69
3
  export declare namespace ui {
70
4
  /**
71
5
  * Returns CSS value of quant value with applied multiplier