@cfx-dev/ui-components 5.0.26 → 5.0.27
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/all_css.css +1 -0
- package/dist/assets/css/Lightbox.css +1 -0
- package/dist/components/Lightbox/Lightbox.d.ts +9 -0
- package/dist/components/Lightbox/Lightbox.js +172 -0
- package/dist/components/Lightbox/LightboxShowcase.d.ts +6 -0
- package/dist/components/Lightbox/LightboxShowcase.js +137 -0
- package/dist/components/Lightbox/index.d.ts +2 -0
- package/dist/components/Lightbox/index.js +4 -0
- package/dist/components/Lightbox/types.d.ts +51 -0
- package/dist/components/Lightbox/types.js +1 -0
- package/dist/embla-carousel-react.esm-BE464U1q.js +1252 -0
- package/dist/main.d.ts +2 -1
- package/dist/main.js +225 -224
- package/dist/utils/contexts/AnalyticsContext/AnalyticsContext.d.ts +15 -2
- package/dist/utils/contexts/AnalyticsContext/AnalyticsContext.js +9 -3
- package/dist/utils/contexts/AnalyticsContext/index.d.ts +2 -2
- package/dist/utils/contexts/AnalyticsContext/index.js +8 -7
- package/dist/utils/contexts/AnalyticsContext/useSiteLinkClick.js +12 -12
- package/dist/utils/hooks/useBodyScrollLock.d.ts +1 -0
- package/dist/utils/hooks/useBodyScrollLock.js +9 -0
- package/dist/utils/hooks/useCarousel.js +17 -1264
- package/dist/utils/hooks/useKeyboardArrows.d.ts +5 -0
- package/dist/utils/hooks/useKeyboardArrows.js +13 -0
- package/dist/utils/hooks/useLightbox.d.ts +21 -0
- package/dist/utils/hooks/useLightbox.js +80 -0
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ export { mergeRefs } from './utils/mergeRefs';
|
|
|
2
2
|
export { clsx } from './utils/clsx';
|
|
3
3
|
export { getValue } from './utils/getValue';
|
|
4
4
|
export type { ValueOrGetter } from './utils/getValue';
|
|
5
|
-
export { AnalyticsContext, AnalyticsProvider, useAnalytics, useSiteLinkClick, } from './utils/contexts/AnalyticsContext';
|
|
5
|
+
export { AnalyticsContext, AnalyticsProvider, useAnalytics, useSiteLinkClick, SITE_LINK_CLICK_EVENT_NAME, } from './utils/contexts/AnalyticsContext';
|
|
6
|
+
export type { ParamsFromElementEventType } from './utils/contexts/AnalyticsContext';
|
|
6
7
|
export { MediaQueryContext, MediaQueryContextProvider, useMediaQuery, } from './utils/contexts/MediaQueryContext';
|
|
7
8
|
export type { MediaQueryContextValueType } from './utils/contexts/MediaQueryContext';
|
|
8
9
|
export { createStoreContext } from './utils/contexts/StoreContext';
|
package/dist/main.js
CHANGED
|
@@ -1,287 +1,288 @@
|
|
|
1
1
|
import { mergeRefs as r } from "./utils/mergeRefs.js";
|
|
2
2
|
import { clsx as a } from "./utils/clsx.js";
|
|
3
3
|
import { getValue as m } from "./utils/getValue.js";
|
|
4
|
-
import { default as x } from "./utils/contexts/AnalyticsContext/AnalyticsContext.js";
|
|
5
|
-
import { AnalyticsProvider as
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
4
|
+
import { default as x, SITE_LINK_CLICK_EVENT_NAME as l } from "./utils/contexts/AnalyticsContext/AnalyticsContext.js";
|
|
5
|
+
import { AnalyticsProvider as u } from "./utils/contexts/AnalyticsContext/AnalyticsProvider.js";
|
|
6
|
+
import { default as i } from "./utils/contexts/AnalyticsContext/useAnalytics.js";
|
|
7
|
+
import { default as c } from "./utils/contexts/AnalyticsContext/useSiteLinkClick.js";
|
|
8
|
+
import { default as C } from "./utils/contexts/MediaQueryContext/MediaQueryContext.js";
|
|
9
|
+
import { default as E } from "./utils/contexts/MediaQueryContext/MediaQueryContextProvider.js";
|
|
10
10
|
import { default as S } from "./utils/contexts/MediaQueryContext/useMediaQuery.js";
|
|
11
|
-
import { default as
|
|
12
|
-
import { formatBytes as
|
|
13
|
-
import { truncateWithEllipsis as
|
|
11
|
+
import { default as g } from "./utils/contexts/StoreContext/StoreContext.js";
|
|
12
|
+
import { formatBytes as _ } from "./utils/formatBytes.js";
|
|
13
|
+
import { truncateWithEllipsis as B } from "./utils/truncateWithEllipsis.js";
|
|
14
14
|
import { usePopoverController as O } from "./utils/hooks/usePopoverController.js";
|
|
15
|
-
import { useInstance as
|
|
16
|
-
import { useDynamicRef as
|
|
17
|
-
import { useGlobalKeyboardEvent as
|
|
18
|
-
import { useKeyboardClose as
|
|
19
|
-
import { useWindowResize as
|
|
15
|
+
import { useInstance as k } from "./utils/hooks/useInstance.js";
|
|
16
|
+
import { useDynamicRef as F } from "./utils/hooks/useDynamicRef.js";
|
|
17
|
+
import { useGlobalKeyboardEvent as M } from "./utils/hooks/useGlobalKeyboardEvent.js";
|
|
18
|
+
import { useKeyboardClose as N } from "./utils/hooks/useKeyboardClose.js";
|
|
19
|
+
import { useWindowResize as V } from "./utils/hooks/useWindowResize.js";
|
|
20
20
|
import { useOutlet as z } from "./utils/hooks/useOutlet.js";
|
|
21
21
|
import { CLIPBOARD_TITLE_APPEARANCE as Y, useClipboardComponent as Q } from "./utils/hooks/useClipboardComponent.js";
|
|
22
|
-
import { formatDate as H, formatLocaleDate as
|
|
23
|
-
import { CURRENCY_MAP as
|
|
24
|
-
import { identity as
|
|
25
|
-
import { Linkify as
|
|
26
|
-
import { clamp as
|
|
27
|
-
import { isFalseString as
|
|
28
|
-
import { debounce as
|
|
22
|
+
import { formatDate as H, formatLocaleDate as W, formatShortDate as X } from "./utils/formatDate.js";
|
|
23
|
+
import { CURRENCY_MAP as J, FREE_PRICE_TEXT as Z, formatCurrency as q } from "./utils/formatCurrency.js";
|
|
24
|
+
import { identity as ee, invoke as oe, noop as re, returnFalse as te, returnTrue as ae } from "./utils/functional.js";
|
|
25
|
+
import { Linkify as me, defaultLinkReplacer as pe, defaultLinkReplacerx as xe, isExternalUrl as le, linkify as ne, linkifyx as ue, matchLinkNodes as se, matchLinks as ie } from "./utils/links.js";
|
|
26
|
+
import { clamp as ce, clamp01 as Te, minmax as Ce } from "./utils/math.js";
|
|
27
|
+
import { isFalseString as Ee, isTrueString as Le, normalizeSlashes as Se, replaceRange as Re, splitByIndices as ge, unicodeCharAt as ye } from "./utils/string.js";
|
|
28
|
+
import { debounce as Ae, throttle as Be } from "./utils/execution.js";
|
|
29
29
|
import { getColor as Oe } from "./utils/color.js";
|
|
30
|
-
import { ui as
|
|
31
|
-
import { BorderRadiusEnum as
|
|
30
|
+
import { ui as ke } from "./utils/ui/ui.js";
|
|
31
|
+
import { BorderRadiusEnum as Fe, ColorEnum as ve, MediaQueryEnum as Me, MediaQueryValuesMap as he, OffsetEnum as Ne, SpacerEnum as Ue, SpacingEnum as Ve, TextSizeEnum as we, ZIndexEnum as ze } from "./utils/ui/ui.types.js";
|
|
32
32
|
import { isInEnum as Ye } from "./utils/enum.js";
|
|
33
33
|
import { joaat32 as Ge } from "./utils/joaat32.js";
|
|
34
|
-
import { default as
|
|
35
|
-
import { Accordion as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { ButtonBar as
|
|
40
|
-
import { LinkButton as
|
|
41
|
-
import { BurgerMenuButton as
|
|
42
|
-
import { BurgerMenu as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { Avatar as
|
|
46
|
-
import { BACKDROP_OUTLET_ID as
|
|
34
|
+
import { default as We } from "./components/IconButton/IconButton.js";
|
|
35
|
+
import { Accordion as je, AccordionContent as Je, AccordionHeader as Ze, AccordionItem as qe, AccordionTrigger as $e } from "./components/Accordion/Accordion.js";
|
|
36
|
+
import { default as oo } from "./components/ClipboardButton/ClipboardButton.js";
|
|
37
|
+
import { default as to } from "./components/Checkbox/Checkbox.js";
|
|
38
|
+
import { default as fo, ButtonContent as mo, getButtonClassName as po } from "./components/Button/Button.js";
|
|
39
|
+
import { ButtonBar as lo } from "./components/Button/ButtonBar.js";
|
|
40
|
+
import { LinkButton as uo } from "./components/Button/LinkButton.js";
|
|
41
|
+
import { BurgerMenuButton as io } from "./components/BurgerMenu/BurgerMenuButton.js";
|
|
42
|
+
import { BurgerMenu as To } from "./components/BurgerMenu/BurgerMenu.js";
|
|
43
|
+
import { default as Io, getLinkClassName as Eo, getLinkStyles as Lo } from "./components/Link/Link.js";
|
|
44
|
+
import { default as Ro } from "./components/Link/ButtonLink.js";
|
|
45
|
+
import { Avatar as yo } from "./components/Avatar/Avatar.js";
|
|
46
|
+
import { BACKDROP_OUTLET_ID as Ao, default as Bo } from "./components/BackdropPortal/BackdropPortal.js";
|
|
47
47
|
import { Badge as Oo } from "./components/Badge/Badge.js";
|
|
48
|
-
import { default as
|
|
49
|
-
import { C as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { Dot as
|
|
53
|
-
import { FLYOUT_OUTLET_ID as zo, FLYOUT_ROOT_ID as
|
|
48
|
+
import { default as ko } from "./components/Carousel/Carousel.js";
|
|
49
|
+
import { C as Fo } from "./CarouselControls-CJ3tupLr.js";
|
|
50
|
+
import { default as Mo } from "./components/ControlBox/ControlBox.js";
|
|
51
|
+
import { default as No } from "./components/Decorate/Decorate.js";
|
|
52
|
+
import { Dot as Vo } from "./components/Dot/Dot.js";
|
|
53
|
+
import { FLYOUT_OUTLET_ID as zo, FLYOUT_ROOT_ID as Ko, FLYOUT_ROOT_SHRINK_CLASSNAME as Yo, Flyout as Qo } from "./components/Flyout/Flyout.js";
|
|
54
54
|
import { Logos as Ho } from "./components/Logos/index.js";
|
|
55
|
-
import { I as
|
|
56
|
-
import { I as
|
|
57
|
-
import { Icon as
|
|
58
|
-
import { Indicator as
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as
|
|
61
|
-
import { default as
|
|
62
|
-
import { default as
|
|
63
|
-
import { Interactive as
|
|
64
|
-
import { Island as
|
|
65
|
-
import { default as
|
|
66
|
-
import { stringPropFormater as
|
|
67
|
-
import { Center as
|
|
55
|
+
import { I as Xo } from "./cfxIcons-B2ocwAjm.js";
|
|
56
|
+
import { I as Jo } from "./cfxIconsXLarge-C9n01-rM.js";
|
|
57
|
+
import { Icon as qo } from "./components/Icon/Icon.js";
|
|
58
|
+
import { Indicator as er } from "./components/Indicator/Indicator.js";
|
|
59
|
+
import { default as rr } from "./components/InfoPanel/InfoPanel.js";
|
|
60
|
+
import { default as ar } from "./components/Input/Input.js";
|
|
61
|
+
import { default as mr } from "./components/Input/RichInput.js";
|
|
62
|
+
import { default as xr } from "./components/StyledInput/StyledInput.js";
|
|
63
|
+
import { Interactive as nr } from "./components/Interactive/Interactive.js";
|
|
64
|
+
import { Island as sr, IslandCorner as ir } from "./components/Island/Island.js";
|
|
65
|
+
import { default as cr } from "./components/Box/Box.js";
|
|
66
|
+
import { stringPropFormater as Cr } from "./components/RSC/Box/Box.js";
|
|
67
|
+
import { Center as Er } from "./components/Layout/Center/Center.js";
|
|
68
68
|
import { default as Sr } from "./components/Flex/Flex.js";
|
|
69
|
-
import { FlexAlignItemsEnum as
|
|
69
|
+
import { FlexAlignItemsEnum as gr, FlexDirectionEnum as yr, FlexJustifyContentEnum as _r, FlexWrapEnum as Ar } from "./components/RSC/Flex/Flex.types.js";
|
|
70
70
|
import { FlexRestricter as Dr } from "./components/RSC/Flex/FlexRestricter.js";
|
|
71
|
-
import { Pad as
|
|
72
|
-
import { Page as
|
|
73
|
-
import { R as
|
|
71
|
+
import { Pad as Pr } from "./components/Layout/Pad/Pad.js";
|
|
72
|
+
import { Page as br } from "./components/Layout/Page/Page.js";
|
|
73
|
+
import { R as vr } from "./Rail-CHFAf3wJ.js";
|
|
74
74
|
import { Scrollable as hr } from "./components/Scrollable/Scrollable.js";
|
|
75
75
|
import { VirtualScrollable as Ur } from "./components/Scrollable/VirtualScrollable.js";
|
|
76
76
|
import { Loaf as wr } from "./components/Loaf/Loaf.js";
|
|
77
|
-
import { Modal as
|
|
77
|
+
import { Modal as Kr } from "./components/Modal/Modal.js";
|
|
78
78
|
import { NavList as Qr } from "./components/NavList/NavList.js";
|
|
79
|
-
import { OVERLAY_OUTLET_ID as Hr, Overlay as
|
|
80
|
-
import { default as
|
|
81
|
-
import { Popover as
|
|
82
|
-
import { PremiumBadge as
|
|
83
|
-
import { Prose as
|
|
84
|
-
import { Radio as
|
|
85
|
-
import { Select as
|
|
86
|
-
import { DropdownSelect as
|
|
87
|
-
import { default as
|
|
88
|
-
import { Separator as
|
|
89
|
-
import { Shroud as
|
|
90
|
-
import { Slider as
|
|
91
|
-
import { default as
|
|
92
|
-
import { default as
|
|
79
|
+
import { OVERLAY_OUTLET_ID as Hr, Overlay as Wr } from "./components/Overlay/Overlay.js";
|
|
80
|
+
import { default as jr } from "./components/Pagination/Pagination.js";
|
|
81
|
+
import { Popover as Zr } from "./components/Popover/Popover.js";
|
|
82
|
+
import { PremiumBadge as $r } from "./components/PremiumBadge/PremiumBadge.js";
|
|
83
|
+
import { Prose as ot } from "./components/Prose/Prose.js";
|
|
84
|
+
import { Radio as tt } from "./components/Radio/Radio.js";
|
|
85
|
+
import { Select as ft } from "./components/Select/Select.js";
|
|
86
|
+
import { DropdownSelect as pt } from "./components/DropdownSelect/DropdownSelect.js";
|
|
87
|
+
import { default as lt } from "./components/DropdownMenu/DropdownMenu.js";
|
|
88
|
+
import { Separator as ut } from "./components/Separator/Separator.js";
|
|
89
|
+
import { Shroud as it } from "./components/Shroud/Shroud.js";
|
|
90
|
+
import { Slider as ct } from "./components/Slider/Slider.js";
|
|
91
|
+
import { default as Ct } from "./components/Range/Range.js";
|
|
92
|
+
import { default as Et } from "./components/Range/RangeInput.js";
|
|
93
93
|
import { default as St } from "./components/Range/RangeWithInputs.js";
|
|
94
|
-
import { Spacer as
|
|
95
|
-
import { Style as
|
|
94
|
+
import { Spacer as gt } from "./components/Spacer/Spacer.js";
|
|
95
|
+
import { Style as _t, useContextualStyle as At } from "./components/Style/Style.js";
|
|
96
96
|
import { default as Dt } from "./components/Switch/Switch.js";
|
|
97
|
-
import { ToggleGroup as
|
|
98
|
-
import { Tabular as
|
|
99
|
-
import { DataTable as
|
|
97
|
+
import { ToggleGroup as Pt } from "./components/ToggleGroup/ToggleGroup.js";
|
|
98
|
+
import { Tabular as bt } from "./components/Tabular/Tabular.js";
|
|
99
|
+
import { DataTable as vt, DataTableHeaderItem as Mt, DataTableRow as ht } from "./components/DataTable/DataTable.js";
|
|
100
100
|
import { Table as Ut } from "./components/Table/index.js";
|
|
101
101
|
import { default as wt } from "./components/TableResponsiveText/TableResponsiveText.js";
|
|
102
|
-
import { DEFAULT_TEXT_COLOR as
|
|
103
|
-
import { default as
|
|
104
|
-
import { Textarea as
|
|
105
|
-
import { default as
|
|
106
|
-
import { TITLE_OUTLET_ID as
|
|
107
|
-
import { default as
|
|
108
|
-
import { default as
|
|
109
|
-
import { default as
|
|
110
|
-
import { OnScreenSensor as
|
|
111
|
-
import { Symbols as
|
|
112
|
-
import { default as
|
|
102
|
+
import { DEFAULT_TEXT_COLOR as Kt, TEXT_OPACITY_MAP as Yt, Text as Qt, TextBlock as Gt, getTextOpacity as Ht, lineHeightResponsiveValueFormatter as Wt, textSizeResponsiveValueFormatter as Xt } from "./components/Text/Text.js";
|
|
103
|
+
import { default as Jt } from "./components/Label/Label.js";
|
|
104
|
+
import { Textarea as qt } from "./components/Textarea/Textarea.js";
|
|
105
|
+
import { default as ea } from "./components/StyledTextarea/StyledTextarea.js";
|
|
106
|
+
import { TITLE_OUTLET_ID as ra, Title as ta, titleGetCoords as aa, titleGetCssStyle as fa } from "./components/Title/Title.js";
|
|
107
|
+
import { default as pa } from "./components/InputDropzone/InputDropzone.js";
|
|
108
|
+
import { default as la } from "./components/InputDropzone/ItemPreview.js";
|
|
109
|
+
import { default as ua } from "./components/Skeleton/Skeleton.js";
|
|
110
|
+
import { OnScreenSensor as ia } from "./components/OnScreenSensor.js";
|
|
111
|
+
import { Symbols as ca } from "./components/Symbols.js";
|
|
112
|
+
import { default as Ca } from "./components/Table/TableIconButton.js";
|
|
113
113
|
export {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
114
|
+
je as Accordion,
|
|
115
|
+
Je as AccordionContent,
|
|
116
|
+
Ze as AccordionHeader,
|
|
117
|
+
qe as AccordionItem,
|
|
118
|
+
$e as AccordionTrigger,
|
|
119
119
|
x as AnalyticsContext,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
120
|
+
u as AnalyticsProvider,
|
|
121
|
+
yo as Avatar,
|
|
122
|
+
Ao as BACKDROP_OUTLET_ID,
|
|
123
|
+
Bo as BackdropPortal,
|
|
124
124
|
Oo as Badge,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
125
|
+
Fe as BorderRadiusEnum,
|
|
126
|
+
cr as Box,
|
|
127
|
+
To as BurgerMenu,
|
|
128
|
+
io as BurgerMenuButton,
|
|
129
|
+
fo as Button,
|
|
130
|
+
lo as ButtonBar,
|
|
131
|
+
mo as ButtonContent,
|
|
132
|
+
Ro as ButtonLink,
|
|
133
133
|
Y as CLIPBOARD_TITLE_APPEARANCE,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
134
|
+
J as CURRENCY_MAP,
|
|
135
|
+
ko as Carousel,
|
|
136
|
+
Fo as CarouselControls,
|
|
137
|
+
Er as Center,
|
|
138
|
+
to as Checkbox,
|
|
139
|
+
oo as ClipboardButton,
|
|
140
|
+
ve as ColorEnum,
|
|
141
|
+
Mo as ControlBox,
|
|
142
|
+
Kt as DEFAULT_TEXT_COLOR,
|
|
143
|
+
vt as DataTable,
|
|
144
|
+
Mt as DataTableHeaderItem,
|
|
145
145
|
ht as DataTableRow,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
146
|
+
No as Decorate,
|
|
147
|
+
Vo as Dot,
|
|
148
|
+
lt as DropdownMenu,
|
|
149
|
+
pt as DropdownSelect,
|
|
150
|
+
la as DropzoneItemPreview,
|
|
151
151
|
zo as FLYOUT_OUTLET_ID,
|
|
152
|
-
|
|
152
|
+
Ko as FLYOUT_ROOT_ID,
|
|
153
153
|
Yo as FLYOUT_ROOT_SHRINK_CLASSNAME,
|
|
154
|
-
|
|
154
|
+
Z as FREE_PRICE_TEXT,
|
|
155
155
|
Sr as Flex,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
gr as FlexAlignItemsEnum,
|
|
157
|
+
yr as FlexDirectionEnum,
|
|
158
|
+
_r as FlexJustifyContentEnum,
|
|
159
159
|
Dr as FlexRestricter,
|
|
160
|
-
|
|
160
|
+
Ar as FlexWrapEnum,
|
|
161
161
|
Qo as Flyout,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
162
|
+
qo as Icon,
|
|
163
|
+
We as IconButton,
|
|
164
|
+
Xo as Icons,
|
|
165
|
+
Jo as IconsXLarge,
|
|
166
|
+
er as Indicator,
|
|
167
|
+
rr as InfoPanel,
|
|
168
|
+
ar as Input,
|
|
169
|
+
pa as InputDropzone,
|
|
170
|
+
nr as Interactive,
|
|
171
|
+
sr as Island,
|
|
172
|
+
ir as IslandCorner,
|
|
173
|
+
Jt as Label,
|
|
174
|
+
Io as Link,
|
|
175
|
+
uo as LinkButton,
|
|
176
|
+
me as Linkify,
|
|
177
177
|
wr as Loaf,
|
|
178
178
|
Ho as Logos,
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
C as MediaQueryContext,
|
|
180
|
+
E as MediaQueryContextProvider,
|
|
181
|
+
Me as MediaQueryEnum,
|
|
182
182
|
he as MediaQueryValuesMap,
|
|
183
|
-
|
|
183
|
+
Kr as Modal,
|
|
184
184
|
Qr as NavList,
|
|
185
185
|
Hr as OVERLAY_OUTLET_ID,
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
186
|
+
Ne as OffsetEnum,
|
|
187
|
+
ia as OnScreenSensor,
|
|
188
|
+
Wr as Overlay,
|
|
189
|
+
Pr as Pad,
|
|
190
|
+
br as Page,
|
|
191
|
+
jr as Pagination,
|
|
192
|
+
Zr as Popover,
|
|
193
|
+
$r as PremiumBadge,
|
|
194
|
+
ot as Prose,
|
|
195
|
+
tt as Radio,
|
|
196
|
+
vr as Rail,
|
|
197
|
+
Ct as Range,
|
|
198
|
+
Et as RangeInput,
|
|
199
199
|
St as RangeWithInputs,
|
|
200
|
-
|
|
200
|
+
mr as RichInput,
|
|
201
|
+
l as SITE_LINK_CLICK_EVENT_NAME,
|
|
201
202
|
hr as Scrollable,
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
203
|
+
ft as Select,
|
|
204
|
+
ut as Separator,
|
|
205
|
+
it as Shroud,
|
|
206
|
+
ua as Skeleton,
|
|
207
|
+
ct as Slider,
|
|
208
|
+
gt as Spacer,
|
|
208
209
|
Ue as SpacerEnum,
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
210
|
+
Ve as SpacingEnum,
|
|
211
|
+
_t as Style,
|
|
212
|
+
xr as StyledInput,
|
|
213
|
+
ea as StyledTextarea,
|
|
213
214
|
Dt as Switch,
|
|
214
|
-
|
|
215
|
+
ca as Symbols,
|
|
215
216
|
Yt as TEXT_OPACITY_MAP,
|
|
216
|
-
|
|
217
|
+
ra as TITLE_OUTLET_ID,
|
|
217
218
|
Ut as Table,
|
|
218
|
-
|
|
219
|
+
Ca as TableIconButton,
|
|
219
220
|
wt as TableResponsiveText,
|
|
220
|
-
|
|
221
|
+
bt as Tabular,
|
|
221
222
|
Qt as Text,
|
|
222
223
|
Gt as TextBlock,
|
|
223
224
|
we as TextSizeEnum,
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
225
|
+
qt as Textarea,
|
|
226
|
+
ta as Title,
|
|
227
|
+
Pt as ToggleGroup,
|
|
227
228
|
Ur as VirtualScrollable,
|
|
228
229
|
ze as ZIndexEnum,
|
|
229
|
-
|
|
230
|
-
|
|
230
|
+
ce as clamp,
|
|
231
|
+
Te as clamp01,
|
|
231
232
|
a as clsx,
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
233
|
+
g as createStoreContext,
|
|
234
|
+
Ae as debounce,
|
|
235
|
+
pe as defaultLinkReplacer,
|
|
236
|
+
xe as defaultLinkReplacerx,
|
|
237
|
+
_ as formatBytes,
|
|
238
|
+
q as formatCurrency,
|
|
238
239
|
H as formatDate,
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
240
|
+
W as formatLocaleDate,
|
|
241
|
+
X as formatShortDate,
|
|
242
|
+
po as getButtonClassName,
|
|
242
243
|
Oe as getColor,
|
|
243
|
-
|
|
244
|
-
|
|
244
|
+
Eo as getLinkClassName,
|
|
245
|
+
Lo as getLinkStyles,
|
|
245
246
|
Ht as getTextOpacity,
|
|
246
247
|
m as getValue,
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
248
|
+
ee as identity,
|
|
249
|
+
oe as invoke,
|
|
250
|
+
le as isExternalUrl,
|
|
251
|
+
Ee as isFalseString,
|
|
251
252
|
Ye as isInEnum,
|
|
252
|
-
|
|
253
|
+
Le as isTrueString,
|
|
253
254
|
Ge as joaat32,
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
255
|
+
Wt as lineHeightResponsiveValueFormatter,
|
|
256
|
+
ne as linkify,
|
|
257
|
+
ue as linkifyx,
|
|
258
|
+
se as matchLinkNodes,
|
|
259
|
+
ie as matchLinks,
|
|
259
260
|
r as mergeRefs,
|
|
260
|
-
|
|
261
|
-
|
|
261
|
+
Ce as minmax,
|
|
262
|
+
re as noop,
|
|
262
263
|
Se as normalizeSlashes,
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
264
|
+
Re as replaceRange,
|
|
265
|
+
te as returnFalse,
|
|
266
|
+
ae as returnTrue,
|
|
267
|
+
ge as splitByIndices,
|
|
268
|
+
Cr as stringPropFormater,
|
|
269
|
+
Xt as textSizeResponsiveValueFormatter,
|
|
270
|
+
Be as throttle,
|
|
271
|
+
aa as titleGetCoords,
|
|
272
|
+
fa as titleGetCssStyle,
|
|
273
|
+
B as truncateWithEllipsis,
|
|
274
|
+
ke as ui,
|
|
275
|
+
ye as unicodeCharAt,
|
|
276
|
+
i as useAnalytics,
|
|
276
277
|
Q as useClipboardComponent,
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
278
|
+
At as useContextualStyle,
|
|
279
|
+
F as useDynamicRef,
|
|
280
|
+
M as useGlobalKeyboardEvent,
|
|
281
|
+
k as useInstance,
|
|
282
|
+
N as useKeyboardClose,
|
|
282
283
|
S as useMediaQuery,
|
|
283
284
|
z as useOutlet,
|
|
284
285
|
O as usePopoverController,
|
|
285
|
-
|
|
286
|
-
|
|
286
|
+
c as useSiteLinkClick,
|
|
287
|
+
V as useWindowResize
|
|
287
288
|
};
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
|
|
3
|
+
export declare const SITE_LINK_CLICK_EVENT_NAME = "site_link_click";
|
|
4
|
+
export interface ParamsFromElementEventType {
|
|
5
|
+
tagName: string;
|
|
6
|
+
text: string;
|
|
7
|
+
id?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface AnalyticsEventProperties {
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
3
13
|
export type AnalyticsEvent = {
|
|
14
|
+
action: typeof SITE_LINK_CLICK_EVENT_NAME;
|
|
15
|
+
properties: ParamsFromElementEventType;
|
|
16
|
+
} | {
|
|
4
17
|
action: string;
|
|
5
|
-
properties?:
|
|
18
|
+
properties?: AnalyticsEventProperties;
|
|
6
19
|
};
|
|
7
20
|
export type AnalyticsContextValue = {
|
|
8
21
|
trackEvent: (event: AnalyticsEvent) => void;
|
|
9
|
-
getParamsFromElementEvent: (event: React.MouseEvent<HTMLElement>) =>
|
|
22
|
+
getParamsFromElementEvent: (event: React.MouseEvent<HTMLElement>) => ParamsFromElementEventType;
|
|
10
23
|
};
|
|
11
24
|
declare const AnalyticsContext: React.Context<AnalyticsContextValue>;
|
|
12
25
|
export default AnalyticsContext;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import t from "react";
|
|
2
|
-
const a = t.createContext({
|
|
2
|
+
const a = "site_link_click", o = t.createContext({
|
|
3
3
|
trackEvent: () => {
|
|
4
4
|
},
|
|
5
|
-
getParamsFromElementEvent: () => ({
|
|
5
|
+
getParamsFromElementEvent: () => ({
|
|
6
|
+
tagName: "",
|
|
7
|
+
text: "",
|
|
8
|
+
id: void 0,
|
|
9
|
+
className: void 0
|
|
10
|
+
})
|
|
6
11
|
});
|
|
7
12
|
export {
|
|
8
|
-
a as
|
|
13
|
+
a as SITE_LINK_CLICK_EVENT_NAME,
|
|
14
|
+
o as default
|
|
9
15
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { default as AnalyticsContext } from './AnalyticsContext';
|
|
1
|
+
import { default as AnalyticsContext, SITE_LINK_CLICK_EVENT_NAME, ParamsFromElementEventType } from './AnalyticsContext';
|
|
2
2
|
import { AnalyticsProvider } from './AnalyticsProvider';
|
|
3
3
|
import { default as useAnalytics } from './useAnalytics';
|
|
4
4
|
import { default as useSiteLinkClick } from './useSiteLinkClick';
|
|
5
5
|
|
|
6
|
-
export { AnalyticsContext, AnalyticsProvider, useAnalytics, useSiteLinkClick, };
|
|
6
|
+
export { AnalyticsContext, AnalyticsProvider, useAnalytics, useSiteLinkClick, ParamsFromElementEventType, SITE_LINK_CLICK_EVENT_NAME, };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { default as o } from "./AnalyticsContext.js";
|
|
2
|
-
import { AnalyticsProvider as
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
1
|
+
import { default as o, SITE_LINK_CLICK_EVENT_NAME as r } from "./AnalyticsContext.js";
|
|
2
|
+
import { AnalyticsProvider as s } from "./AnalyticsProvider.js";
|
|
3
|
+
import { default as i } from "./useAnalytics.js";
|
|
4
|
+
import { default as n } from "./useSiteLinkClick.js";
|
|
5
5
|
export {
|
|
6
6
|
o as AnalyticsContext,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
s as AnalyticsProvider,
|
|
8
|
+
r as SITE_LINK_CLICK_EVENT_NAME,
|
|
9
|
+
i as useAnalytics,
|
|
10
|
+
n as useSiteLinkClick
|
|
10
11
|
};
|