@cfx-dev/ui-components 4.2.21 → 4.2.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/css/Badge.css +1 -1
- package/dist/assets/css/Link.css +1 -1
- package/dist/assets/general/global.css +1 -1
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/AccordionShowcase.js +1 -1
- package/dist/components/Avatar/AvatarShowcase.js +1 -1
- package/dist/components/Badge/Badge.d.ts +9 -2
- package/dist/components/Badge/Badge.js +52 -25
- package/dist/components/Badge/BadgeShowcase.js +1 -1
- package/dist/components/BurgerMenu/BurgerMenu.js +1 -1
- package/dist/components/BurgerMenu/BurgerMenuShowcase.js +1 -1
- package/dist/components/Button/ButtonShowcase.js +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/DropdownSelect/DropdownSelect.d.ts +1 -1
- package/dist/components/DropdownSelect/DropdownSelect.js +5 -5
- package/dist/components/DropdownSelect/DropdownSelectShowcase.js +1 -1
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/Icon.js +1 -1
- package/dist/components/IconBig/IconBig.js +1 -1
- package/dist/components/InfoPanel/InfoPanelShowcase.js +1 -1
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/Input.js +6 -6
- package/dist/components/Input/InputShowcase.js +1 -1
- package/dist/components/Input/RichInput.d.ts +1 -1
- package/dist/components/Input/RichInput.js +4 -4
- package/dist/components/Island/Island.js +4 -4
- package/dist/components/Layout/Box/Box.d.ts +1 -1
- package/dist/components/Layout/Box/Box.js +1 -1
- package/dist/components/Layout/Flex/Flex.d.ts +1 -1
- package/dist/components/Layout/Flex/Flex.js +1 -1
- package/dist/components/Layout/Flex/index.d.ts +2 -1
- package/dist/components/Layout/Flex/index.js +10 -4
- package/dist/components/Layout/Scrollable/ScrollableShowcase.js +1 -1
- package/dist/components/Link/ButtonLink.js +23 -18
- package/dist/components/Link/Link.d.ts +3 -1
- package/dist/components/Link/Link.js +48 -30
- package/dist/components/Link/LinkShowcase.js +46 -41
- package/dist/components/Link/index.d.ts +1 -1
- package/dist/components/Link/index.js +6 -5
- package/dist/components/Logos/LogosShowcase.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Select/SelectShowcase.js +1 -1
- package/dist/components/Separator/Separator.d.ts +1 -1
- package/dist/components/Separator/Separator.js +1 -1
- package/dist/components/Shroud/Shroud.js +6 -6
- package/dist/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/components/Skeleton/Skeleton.js +1 -1
- package/dist/components/Skeleton/SkeletonShowcase.js +1 -1
- package/dist/components/Slider/SliderShowcase.js +1 -1
- package/dist/components/Spacer/Spacer.d.ts +1 -1
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/TableShowcase.js +1 -1
- package/dist/components/Tabular/Tabular.d.ts +1 -1
- package/dist/components/Tabular/Tabular.js +1 -1
- package/dist/components/Tabular/TabularShowcase.js +1 -1
- package/dist/components/Text/Text.js +13 -12
- package/dist/components/Text/Text.types.d.ts +1 -1
- package/dist/components/Text/TextShowcase.js +12 -15
- package/dist/components/Text/index.d.ts +1 -1
- package/dist/components/Text/index.js +9 -8
- package/dist/components/Title/TitleShowcase.js +1 -1
- package/dist/components/ToggleGroup/ToggleGroupShowcase.js +1 -1
- package/dist/main.d.ts +7 -6
- package/dist/main.js +208 -194
- package/dist/styles-scss/global.scss +2 -2
- package/dist/styles-scss/tokens.scss +0 -4
- package/dist/utils/color.d.ts +3 -1
- package/dist/utils/enum.d.ts +1 -0
- package/dist/utils/enum.js +6 -0
- package/dist/utils/ui/index.d.ts +3 -0
- package/dist/utils/ui/index.js +11 -0
- package/dist/{components → utils/ui}/ui.d.ts +2 -68
- package/dist/utils/ui/ui.js +68 -0
- package/dist/utils/ui/ui.types.d.ts +86 -0
- package/dist/utils/ui/ui.types.js +9 -0
- package/package.json +1 -1
- 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';
|
|
@@ -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,
|
|
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 {
|
|
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,227 @@
|
|
|
1
1
|
import { mergeRefs as e } from "./utils/mergeRefs.js";
|
|
2
|
-
import { clsx as
|
|
3
|
-
import { getValue as
|
|
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
|
|
6
|
-
import { useDynamicRef as
|
|
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
|
|
10
|
-
import { useOutlet as
|
|
11
|
-
import { CLIPBOARD_TITLE_APPEARANCE as
|
|
12
|
-
import { identity as y, invoke as A, noop as
|
|
13
|
-
import { Linkify as
|
|
14
|
-
import { clamp as
|
|
15
|
-
import { isFalseString as K, isTrueString as Y, normalizeSlashes as H, replaceRange as
|
|
16
|
-
import { debounce as
|
|
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 y, invoke as A, noop as k, 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 {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { default as so } from "./components/
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import { default as
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
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 yo, ButtonContent as Ao, getButtonClassName as ko } 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 } from "./components/Link/Link.js";
|
|
31
|
+
import { default as No } from "./components/Link/ButtonLink.js";
|
|
32
|
+
import { Avatar as Vo } from "./components/Avatar/Avatar.js";
|
|
33
|
+
import { BACKDROP_OUTLET_ID as Yo, default as Ho } from "./components/BackdropPortal/BackdropPortal.js";
|
|
34
|
+
import { Badge as Xo } from "./components/Badge/Badge.js";
|
|
35
|
+
import { default as Qo } from "./components/ControlBox/ControlBox.js";
|
|
36
|
+
import { default as jo } from "./components/CountryFlag/CountryFlag.js";
|
|
37
|
+
import { default as $o } from "./components/Decorate/Decorate.js";
|
|
38
|
+
import { Dot as rr } from "./components/Dot/Dot.js";
|
|
39
|
+
import { FLYOUT_OUTLET_ID as tr, Flyout as mr } from "./components/Flyout/Flyout.js";
|
|
40
|
+
import { Logos as pr } from "./components/Logos/index.js";
|
|
41
|
+
import { I as xr } from "./cfxIcons-BNd1WgpX.js";
|
|
42
|
+
import { I as lr } from "./cfxIconsBig-BLJjMT-Y.js";
|
|
43
|
+
import { Icon as sr } from "./components/Icon/Icon.js";
|
|
44
|
+
import { IconBig as dr } from "./components/IconBig/IconBig.js";
|
|
45
|
+
import { Indicator as Tr } from "./components/Indicator/Indicator.js";
|
|
46
|
+
import { default as Cr } from "./components/InfoPanel/InfoPanel.js";
|
|
47
|
+
import { default as Er } from "./components/Input/Input.js";
|
|
48
|
+
import { default as Lr } from "./components/Input/RichInput.js";
|
|
49
|
+
import { Interactive as Rr } from "./components/Interactive/Interactive.js";
|
|
50
|
+
import { Island as Ar, IslandCorner as kr } from "./components/Island/Island.js";
|
|
51
|
+
import { Box as Pr, flexPropFormater as br } from "./components/Layout/Box/Box.js";
|
|
52
|
+
import { Center as Fr } from "./components/Layout/Center/Center.js";
|
|
53
|
+
import { Flex as vr } from "./components/Layout/Flex/Flex.js";
|
|
54
|
+
import { FlexAlignItemsEnum as Ur, FlexDirectionEnum as zr, FlexJustifyContentEnum as wr, FlexWrapEnum as Mr } from "./components/Layout/Flex/Flex.types.js";
|
|
55
|
+
import { FlexRestricter as Gr } from "./components/Layout/Flex/FlexRestricter.js";
|
|
56
|
+
import { Pad as Kr } from "./components/Layout/Pad/Pad.js";
|
|
57
|
+
import { Page as Hr } from "./components/Layout/Page/Page.js";
|
|
58
|
+
import { R as Xr } from "./Rail-DcVowhML.js";
|
|
59
|
+
import { Scrollable as Qr } from "./components/Layout/Scrollable/Scrollable.js";
|
|
60
|
+
import { VirtualScrollable as jr } from "./components/Layout/Scrollable/VirtualScrollable.js";
|
|
61
|
+
import { Loaf as $r } from "./components/Loaf/Loaf.js";
|
|
62
|
+
import { Modal as re } from "./components/Modal/Modal.js";
|
|
63
|
+
import { NavList as te } from "./components/NavList/NavList.js";
|
|
64
|
+
import { OVERLAY_OUTLET_ID as fe, Overlay as pe } from "./components/Overlay/Overlay.js";
|
|
65
|
+
import { Popover as xe } from "./components/Popover/Popover.js";
|
|
66
|
+
import { PremiumBadge as le } from "./components/PremiumBadge/PremiumBadge.js";
|
|
67
|
+
import { Prose as se } from "./components/Prose/Prose.js";
|
|
68
|
+
import { Radio as de } from "./components/Radio/Radio.js";
|
|
69
|
+
import { Select as Te } from "./components/Select/Select.js";
|
|
70
|
+
import { DropdownSelect as Ce } from "./components/DropdownSelect/DropdownSelect.js";
|
|
71
|
+
import { Separator as Ee } from "./components/Separator/Separator.js";
|
|
72
|
+
import { Shroud as Le } 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 Oe, useContextualStyle as Pe } from "./components/Style/Style.js";
|
|
76
|
+
import { default as De } from "./components/Switch/Switch.js";
|
|
77
|
+
import { ToggleGroup as _e } from "./components/ToggleGroup/ToggleGroup.js";
|
|
78
|
+
import { Tabular as he } from "./components/Tabular/Tabular.js";
|
|
79
|
+
import { Table as ze, TableHeaderItem as we, TableIconButton as Me, TableRow as Ne } from "./components/Table/Table.js";
|
|
80
|
+
import { DEFAULT_TEXT_COLOR as Ve, TEXT_OPACITY_MAP as Ke, Text as Ye, TextBlock as He, getTextOpacity as We, textSizeResponsiveValueFormatter as Xe } from "./components/Text/Text.js";
|
|
81
|
+
import { Textarea as Qe } from "./components/Textarea/Textarea.js";
|
|
82
|
+
import { TITLE_OUTLET_ID as je, Title as qe, titleGetCoords as $e, titleGetCssStyle as ot } from "./components/Title/Title.js";
|
|
83
|
+
import { default as et } from "./components/InputDropzone/InputDropzone.js";
|
|
84
|
+
import { default as mt } from "./components/InputDropzone/ItemPreview.js";
|
|
85
|
+
import { default as pt } from "./components/Skeleton/Skeleton.js";
|
|
86
|
+
import { OnScreenSensor as xt } from "./components/OnScreenSensor.js";
|
|
87
|
+
import { Symbols as lt } from "./components/Symbols.js";
|
|
85
88
|
export {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
Tr as
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
ze as
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
89
|
+
co as Accordion,
|
|
90
|
+
To as AccordionContent,
|
|
91
|
+
Io as AccordionHeader,
|
|
92
|
+
Co as AccordionItem,
|
|
93
|
+
Bo as AccordionTrigger,
|
|
94
|
+
Vo as Avatar,
|
|
95
|
+
Yo as BACKDROP_OUTLET_ID,
|
|
96
|
+
Ho as BackdropPortal,
|
|
97
|
+
Xo as Badge,
|
|
98
|
+
to as BorderRadiusEnum,
|
|
99
|
+
Pr as Box,
|
|
100
|
+
ho as BurgerMenu,
|
|
101
|
+
_o as BurgerMenuButton,
|
|
102
|
+
yo as Button,
|
|
103
|
+
Po as ButtonBar,
|
|
104
|
+
Ao as ButtonContent,
|
|
105
|
+
No as ButtonLink,
|
|
106
|
+
L as CLIPBOARD_TITLE_APPEARANCE,
|
|
107
|
+
Fr as Center,
|
|
108
|
+
So as Checkbox,
|
|
109
|
+
go as ClipboardButton,
|
|
110
|
+
mo as ColorEnum,
|
|
111
|
+
Qo as ControlBox,
|
|
112
|
+
jo as CountryFlag,
|
|
113
|
+
Ve as DEFAULT_TEXT_COLOR,
|
|
114
|
+
$o as Decorate,
|
|
115
|
+
rr as Dot,
|
|
116
|
+
Ce as DropdownSelect,
|
|
117
|
+
mt as DropzoneItemPreview,
|
|
118
|
+
tr as FLYOUT_OUTLET_ID,
|
|
119
|
+
vr as Flex,
|
|
120
|
+
Ur as FlexAlignItemsEnum,
|
|
121
|
+
zr as FlexDirectionEnum,
|
|
122
|
+
wr as FlexJustifyContentEnum,
|
|
123
|
+
Gr as FlexRestricter,
|
|
124
|
+
Mr as FlexWrapEnum,
|
|
125
|
+
mr as Flyout,
|
|
126
|
+
sr as Icon,
|
|
127
|
+
dr as IconBig,
|
|
128
|
+
so as IconButton,
|
|
129
|
+
xr as Icons,
|
|
130
|
+
lr as IconsBig,
|
|
131
|
+
Tr as Indicator,
|
|
132
|
+
Cr as InfoPanel,
|
|
133
|
+
Er as Input,
|
|
134
|
+
et as InputDropzone,
|
|
135
|
+
Rr as Interactive,
|
|
136
|
+
Ar as Island,
|
|
137
|
+
kr as IslandCorner,
|
|
138
|
+
zo as Link,
|
|
139
|
+
Do as LinkButton,
|
|
140
|
+
D as Linkify,
|
|
141
|
+
$r as Loaf,
|
|
142
|
+
pr as Logos,
|
|
143
|
+
fo as MediaQueryEnum,
|
|
144
|
+
re as Modal,
|
|
145
|
+
te as NavList,
|
|
146
|
+
fe as OVERLAY_OUTLET_ID,
|
|
147
|
+
po as OffsetEnum,
|
|
148
|
+
xt as OnScreenSensor,
|
|
149
|
+
pe as Overlay,
|
|
150
|
+
Kr as Pad,
|
|
151
|
+
Hr as Page,
|
|
152
|
+
xe as Popover,
|
|
153
|
+
le as PremiumBadge,
|
|
154
|
+
se as Prose,
|
|
155
|
+
de as Radio,
|
|
156
|
+
Xr as Rail,
|
|
157
|
+
Lr as RichInput,
|
|
158
|
+
Qr as Scrollable,
|
|
159
|
+
Te as Select,
|
|
160
|
+
Ee as Separator,
|
|
161
|
+
Le as Shroud,
|
|
162
|
+
pt as Skeleton,
|
|
163
|
+
Re as Slider,
|
|
164
|
+
Ae as Spacer,
|
|
165
|
+
Oe as Style,
|
|
166
|
+
De as Switch,
|
|
167
|
+
lt as Symbols,
|
|
168
|
+
Ke as TEXT_OPACITY_MAP,
|
|
169
|
+
je as TITLE_OUTLET_ID,
|
|
170
|
+
ze as Table,
|
|
171
|
+
we as TableHeaderItem,
|
|
172
|
+
Me as TableIconButton,
|
|
173
|
+
Ne as TableRow,
|
|
174
|
+
he as Tabular,
|
|
175
|
+
Ye as Text,
|
|
176
|
+
He as TextBlock,
|
|
177
|
+
ao as TextSizeEnum,
|
|
178
|
+
Qe as Textarea,
|
|
179
|
+
qe as Title,
|
|
180
|
+
_e as ToggleGroup,
|
|
181
|
+
jr 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
|
+
br as flexPropFormater,
|
|
190
|
+
ko as getButtonClassName,
|
|
178
191
|
$ as getColor,
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
192
|
+
wo as getLinkClassName,
|
|
193
|
+
We as getTextOpacity,
|
|
194
|
+
p as getValue,
|
|
182
195
|
y as identity,
|
|
183
196
|
A as invoke,
|
|
184
|
-
|
|
197
|
+
v as isExternalUrl,
|
|
185
198
|
K as isFalseString,
|
|
199
|
+
lo as isInEnum,
|
|
186
200
|
Y as isTrueString,
|
|
187
201
|
h as linkify,
|
|
188
202
|
U as linkifyx,
|
|
189
|
-
|
|
190
|
-
|
|
203
|
+
z as matchLinkNodes,
|
|
204
|
+
w as matchLinks,
|
|
191
205
|
e as mergeRefs,
|
|
192
|
-
|
|
206
|
+
k as noop,
|
|
193
207
|
H as normalizeSlashes,
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
208
|
+
W as replaceRange,
|
|
209
|
+
O as returnFalse,
|
|
210
|
+
P as returnTrue,
|
|
211
|
+
X as splitByIndices,
|
|
212
|
+
Xe as textSizeResponsiveValueFormatter,
|
|
213
|
+
j as throttle,
|
|
214
|
+
$e as titleGetCoords,
|
|
215
|
+
ot as titleGetCssStyle,
|
|
216
|
+
ro as ui,
|
|
217
|
+
J as unicodeCharAt,
|
|
218
|
+
S as useClipboardComponent,
|
|
219
|
+
Pe as useContextualStyle,
|
|
220
|
+
s as useDynamicRef,
|
|
207
221
|
d as useGlobalKeyboardEvent,
|
|
208
|
-
|
|
222
|
+
l as useInstance,
|
|
209
223
|
T as useKeyboardClose,
|
|
210
|
-
|
|
224
|
+
E as useOutlet,
|
|
211
225
|
x as usePopoverController,
|
|
212
|
-
|
|
226
|
+
C as useWindowResize
|
|
213
227
|
};
|
|
@@ -53,7 +53,7 @@ body {
|
|
|
53
53
|
|
|
54
54
|
a {
|
|
55
55
|
display: inline-flex;
|
|
56
|
-
color: ui.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
|
|
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
|
}
|
package/dist/utils/color.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isInEnum<T extends string>(value: string, keys: Record<T, T>): value is T;
|
|
@@ -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
|
-
|
|
2
|
-
|
|
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
|