@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.
- 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 +8 -7
- package/dist/main.js +211 -196
- 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';
|
|
@@ -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,
|
|
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,228 @@
|
|
|
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
|
|
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 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 {
|
|
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 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
+
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
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
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
|
-
|
|
190
|
-
|
|
204
|
+
z as matchLinkNodes,
|
|
205
|
+
w as matchLinks,
|
|
191
206
|
e as mergeRefs,
|
|
192
|
-
|
|
207
|
+
A as noop,
|
|
193
208
|
H as normalizeSlashes,
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
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
|
-
|
|
223
|
+
l as useInstance,
|
|
209
224
|
T as useKeyboardClose,
|
|
210
|
-
|
|
225
|
+
E as useOutlet,
|
|
211
226
|
x as usePopoverController,
|
|
212
|
-
|
|
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
|
|
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
|