@cfx-dev/ui-components 4.2.20 → 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.d.ts +1 -7
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/AccordionShowcase.js +1 -1
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Avatar/AvatarShowcase.js +1 -1
- package/dist/components/BackdropPortal/BackdropPortal.d.ts +2 -0
- package/dist/components/BackdropPortal/BackdropPortal.js +7 -5
- package/dist/components/BackdropPortal/index.d.ts +2 -0
- package/dist/components/BackdropPortal/index.js +5 -0
- 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/Badge/index.d.ts +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/ClipboardButton/ClipboardButton.d.ts +3 -3
- package/dist/components/ClipboardButton/ClipboardButton.js +10 -9
- package/dist/components/ControlBox/ControlBox.d.ts +2 -0
- package/dist/components/ControlBox/ControlBox.js +10 -9
- package/dist/components/ControlBox/index.d.ts +2 -0
- package/dist/components/ControlBox/index.js +4 -0
- package/dist/components/CountryFlag/CountryFlag.d.ts +2 -0
- package/dist/components/CountryFlag/CountryFlag.js +14 -13
- package/dist/components/CountryFlag/index.d.ts +2 -0
- package/dist/components/CountryFlag/index.js +4 -0
- package/dist/components/Decorate/Decorate.d.ts +2 -0
- package/dist/components/Decorate/Decorate.js +15 -14
- package/dist/components/Decorate/index.d.ts +2 -0
- package/dist/components/Decorate/index.js +4 -0
- package/dist/components/DropdownSelect/DropdownSelect.d.ts +1 -1
- package/dist/components/DropdownSelect/DropdownSelect.js +801 -1039
- package/dist/components/DropdownSelect/DropdownSelectShowcase.js +1 -1
- package/dist/components/DropdownSelect/index.d.ts +1 -0
- package/dist/components/Flyout/Flyout.d.ts +2 -1
- package/dist/components/Flyout/index.d.ts +2 -0
- package/dist/components/Flyout/index.js +5 -0
- 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/IconButton/IconButton.d.ts +2 -3
- package/dist/components/IconButton/index.d.ts +1 -1
- package/dist/components/Indicator/index.d.ts +2 -0
- package/dist/components/Indicator/index.js +4 -0
- 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/Input/index.d.ts +1 -1
- package/dist/components/InputDropzone/index.d.ts +3 -3
- package/dist/components/InputDropzone/index.js +3 -3
- package/dist/components/Interactive/index.d.ts +2 -0
- package/dist/components/Interactive/index.js +4 -0
- package/dist/components/Island/Island.js +4 -4
- package/dist/components/Island/index.d.ts +2 -0
- package/dist/components/Island/index.js +5 -0
- package/dist/components/Layout/Box/Box.d.ts +2 -1
- package/dist/components/Layout/Box/Box.js +3 -2
- package/dist/components/Layout/Box/index.d.ts +2 -0
- package/dist/components/Layout/Box/index.js +5 -0
- package/dist/components/Layout/Center/index.d.ts +2 -0
- package/dist/components/Layout/Center/index.js +4 -0
- package/dist/components/Layout/Flex/Flex.d.ts +4 -4
- package/dist/components/Layout/Flex/Flex.js +1 -1
- package/dist/components/Layout/Flex/Flex.types.d.ts +7 -0
- package/dist/components/Layout/Flex/Flex.types.js +6 -5
- package/dist/components/Layout/Flex/index.d.ts +6 -0
- package/dist/components/Layout/Flex/index.js +12 -0
- package/dist/components/Layout/Pad/index.d.ts +2 -0
- package/dist/components/Layout/Pad/index.js +4 -0
- package/dist/components/Layout/Page/index.d.ts +2 -0
- package/dist/components/Layout/Page/index.js +4 -0
- 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/Loaf/index.d.ts +2 -0
- package/dist/components/Loaf/index.js +4 -0
- package/dist/components/Logos/LogosShowcase.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/NavList/index.d.ts +2 -0
- package/dist/components/NavList/index.js +4 -0
- package/dist/components/Overlay/index.d.ts +2 -0
- package/dist/components/Overlay/index.js +5 -0
- package/dist/components/PremiumBadge/index.d.ts +2 -0
- package/dist/components/PremiumBadge/index.js +4 -0
- package/dist/components/Prose/Prose.d.ts +1 -2
- package/dist/components/Prose/index.d.ts +2 -0
- package/dist/components/Prose/index.js +4 -0
- package/dist/components/Radio/index.d.ts +2 -0
- package/dist/components/Radio/index.js +4 -0
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/Select.js +2 -2
- 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/Separator/index.d.ts +2 -0
- package/dist/components/Separator/index.js +4 -0
- package/dist/components/Shroud/Shroud.js +6 -6
- package/dist/components/Shroud/index.d.ts +2 -0
- package/dist/components/Shroud/index.js +4 -0
- package/dist/components/Skeleton/Skeleton.d.ts +2 -2
- package/dist/components/Skeleton/Skeleton.js +1 -1
- package/dist/components/Skeleton/SkeletonShowcase.js +1 -1
- package/dist/components/Skeleton/index.d.ts +1 -0
- package/dist/components/Slider/Slider.js +294 -374
- package/dist/components/Slider/SliderShowcase.js +1 -1
- package/dist/components/Spacer/Spacer.d.ts +1 -1
- package/dist/components/Spacer/index.d.ts +2 -0
- package/dist/components/Spacer/index.js +4 -0
- package/dist/components/Style/index.d.ts +2 -0
- package/dist/components/Style/index.js +5 -0
- package/dist/components/Table/Table.d.ts +13 -4
- package/dist/components/Table/Table.js +3 -2
- package/dist/components/Table/TableShowcase.js +1 -1
- package/dist/components/Table/index.d.ts +2 -2
- package/dist/components/Table/index.js +5 -2
- 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 +3 -2
- package/dist/components/Text/TextShowcase.js +12 -15
- package/dist/components/Text/index.d.ts +2 -2
- package/dist/components/Text/index.js +9 -8
- package/dist/components/Textarea/index.d.ts +2 -0
- package/dist/components/Textarea/index.js +4 -0
- package/dist/components/Title/Title.d.ts +5 -4
- package/dist/components/Title/Title.js +4 -2
- package/dist/components/Title/TitleShowcase.js +1 -1
- package/dist/components/Title/index.d.ts +2 -0
- package/dist/components/Title/index.js +7 -0
- package/dist/components/ToggleGroup/ToggleGroupShowcase.js +1 -1
- package/dist/index-AweK2ufS.js +171 -0
- package/dist/{index-DBus3GoO.js → index-Bz27DCHt.js} +2 -2
- package/dist/main.d.ts +93 -69
- package/dist/main.js +217 -191
- 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/index-CjTSD6zB.js +0 -161
package/dist/main.js
CHANGED
|
@@ -1,201 +1,227 @@
|
|
|
1
|
-
import { mergeRefs as
|
|
2
|
-
import { clsx as
|
|
3
|
-
import { getValue as
|
|
4
|
-
import { usePopoverController as
|
|
5
|
-
import { useInstance as
|
|
1
|
+
import { mergeRefs as e } from "./utils/mergeRefs.js";
|
|
2
|
+
import { clsx as m } from "./utils/clsx.js";
|
|
3
|
+
import { getValue as p } from "./utils/getValue.js";
|
|
4
|
+
import { usePopoverController as x } from "./utils/hooks/usePopoverController.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
|
-
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
|
|
16
|
-
import { debounce as
|
|
17
|
-
import { getColor as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { default as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
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 "./components/
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
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
|
+
import { getColor as $ } from "./utils/color.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 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
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
xe as
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
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,
|
|
191
|
+
$ as getColor,
|
|
192
|
+
wo as getLinkClassName,
|
|
193
|
+
We as getTextOpacity,
|
|
194
|
+
p as getValue,
|
|
195
|
+
y as identity,
|
|
174
196
|
A as invoke,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
z as
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
197
|
+
v as isExternalUrl,
|
|
198
|
+
K as isFalseString,
|
|
199
|
+
lo as isInEnum,
|
|
200
|
+
Y as isTrueString,
|
|
201
|
+
h as linkify,
|
|
202
|
+
U as linkifyx,
|
|
203
|
+
z as matchLinkNodes,
|
|
204
|
+
w as matchLinks,
|
|
205
|
+
e as mergeRefs,
|
|
206
|
+
k as noop,
|
|
207
|
+
H as normalizeSlashes,
|
|
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,
|
|
191
217
|
J as unicodeCharAt,
|
|
192
|
-
|
|
193
|
-
|
|
218
|
+
S as useClipboardComponent,
|
|
219
|
+
Pe as useContextualStyle,
|
|
194
220
|
s as useDynamicRef,
|
|
195
221
|
d as useGlobalKeyboardEvent,
|
|
196
|
-
|
|
222
|
+
l as useInstance,
|
|
197
223
|
T as useKeyboardClose,
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
224
|
+
E as useOutlet,
|
|
225
|
+
x as usePopoverController,
|
|
226
|
+
C as useWindowResize
|
|
201
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
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { clsx as d } from "../clsx.js";
|
|
2
|
+
var g;
|
|
3
|
+
((t) => {
|
|
4
|
+
function i(e = 1) {
|
|
5
|
+
return `calc(var(--quant) * ${e})`;
|
|
6
|
+
}
|
|
7
|
+
t.q = i;
|
|
8
|
+
function u(e) {
|
|
9
|
+
return `var(--offset-${e})`;
|
|
10
|
+
}
|
|
11
|
+
t.offset = u;
|
|
12
|
+
function b(e = "normal") {
|
|
13
|
+
return `var(--font-size-${e})`;
|
|
14
|
+
}
|
|
15
|
+
t.fontSize = b;
|
|
16
|
+
function m(e = "first") {
|
|
17
|
+
return `var(--zindex-${e})`;
|
|
18
|
+
}
|
|
19
|
+
t.zindex = m;
|
|
20
|
+
function y(e = "normal") {
|
|
21
|
+
return `var(--line-height-${e})`;
|
|
22
|
+
}
|
|
23
|
+
t.lineHeight = y;
|
|
24
|
+
function h(e = "normal") {
|
|
25
|
+
return `var(--border-radius-${e})`;
|
|
26
|
+
}
|
|
27
|
+
t.borderRadius = h;
|
|
28
|
+
function x(e, r, o = 1) {
|
|
29
|
+
let n = r;
|
|
30
|
+
return n === "pure" && (n = ""), typeof n == "number" && (n = `${n}`), `rgba(var(--color-${e}${n ? `-${n}` : ""}), ${o})`;
|
|
31
|
+
}
|
|
32
|
+
t.color = x, ((e) => {
|
|
33
|
+
e.fullWidth = "util-full-width", e.fullHeight = "util-full-height", e.flexGrow = "util-flex-grow", e.flexNoShrink = "util-flex-no-shrink", e.userSelectableText = "util-text-selectable", e.zIndex9000 = "util-z-index-9000";
|
|
34
|
+
})(t.cls || (t.cls = {})), t.pc = (e) => `${e}%`, t.px = (e) => `${e}px`, t.ch = (e) => `${e}ch`, t.em = (e) => `${e}em`, t.rem = (e) => `${e}rem`, t.vh = (e) => `${e}vh`, t.vw = (e) => `${e}vw`, t.url = (e) => `url(${e})`;
|
|
35
|
+
function f(e) {
|
|
36
|
+
return e == null ? "" : typeof e == "number" ? i(e) : e.toString();
|
|
37
|
+
}
|
|
38
|
+
t.defaultResponsiveValueFormatter = f;
|
|
39
|
+
function $(e, r, o = f) {
|
|
40
|
+
return r == null ? {} : typeof r == "object" && !Array.isArray(r) ? Object.entries(r).reduce((n, [s, l]) => (n[`--${e}-${s}`] = o(l), n), {}) : {
|
|
41
|
+
[`--${e}-initial`]: o(r)
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
t.getResponsiveStyles = $;
|
|
45
|
+
function a(e, r) {
|
|
46
|
+
return r == null ? "" : typeof r == "object" && !Array.isArray(r) ? d(Object.keys(r).map((o) => `ui-${e}-${o}`)) : `ui-${e}-initial`;
|
|
47
|
+
}
|
|
48
|
+
t.getResponsiveClassnames = a;
|
|
49
|
+
function R(e, r, o = f) {
|
|
50
|
+
return r == null ? [] : typeof r == "object" && !Array.isArray(r) ? Object.entries(r).reduce((n, [s, l]) => (n.push(`${e}-${s}-${o(l)}`), n), []) : [`${e}-initial-${o(r)}`];
|
|
51
|
+
}
|
|
52
|
+
t.getResponsiveFlatClassnames = R;
|
|
53
|
+
function c(e) {
|
|
54
|
+
return typeof e == "number" ? i(e) : u(e);
|
|
55
|
+
}
|
|
56
|
+
t.offsetResponsiveValueFormatter = c, t.getOffsetStyles = (e, r) => $(e, r, c);
|
|
57
|
+
function p(e, r) {
|
|
58
|
+
return Object.entries(e).reduce((o, [n, s]) => (Object.assign(o, r(n, s)), o), {});
|
|
59
|
+
}
|
|
60
|
+
t.callAllMPProps = p, t.getAllMPStyles = (e) => p(e, t.getOffsetStyles), t.getAllMPClassnames = (e) => d(
|
|
61
|
+
Object.entries(e).map(
|
|
62
|
+
([r, o]) => a(r, o)
|
|
63
|
+
)
|
|
64
|
+
);
|
|
65
|
+
})(g || (g = {}));
|
|
66
|
+
export {
|
|
67
|
+
g as ui
|
|
68
|
+
};
|