@cfx-dev/ui-components 0.0.5
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/LICENSE +21 -0
- package/README.md +17 -0
- package/dist/Button.module-Z6njvP9Z.js +17 -0
- package/dist/Combination-AG9vHdSx.js +1478 -0
- package/dist/Icons-B26SczGZ.js +162 -0
- package/dist/Rail-DoYzqKk4.js +89 -0
- package/dist/assets/Avatar.css +1 -0
- package/dist/assets/Badge.css +1 -0
- package/dist/assets/Box.css +1 -0
- package/dist/assets/Button.css +1 -0
- package/dist/assets/Center.css +1 -0
- package/dist/assets/Checkbox.css +1 -0
- package/dist/assets/ControlBox.css +1 -0
- package/dist/assets/CountryFlag.css +1 -0
- package/dist/assets/Decorate.css +1 -0
- package/dist/assets/Dot.css +1 -0
- package/dist/assets/Flex.css +1 -0
- package/dist/assets/FlexRestricter.css +1 -0
- package/dist/assets/Flyout.css +1 -0
- package/dist/assets/Icon.css +1 -0
- package/dist/assets/Indicator.css +1 -0
- package/dist/assets/InfoPanel.css +1 -0
- package/dist/assets/Input.css +1 -0
- package/dist/assets/Interactive.css +1 -0
- package/dist/assets/Island.css +1 -0
- package/dist/assets/Loaf.css +1 -0
- package/dist/assets/Modal.css +1 -0
- package/dist/assets/NavList.css +1 -0
- package/dist/assets/Overlay.css +1 -0
- package/dist/assets/Pad.css +1 -0
- package/dist/assets/Page.css +1 -0
- package/dist/assets/Popover.css +1 -0
- package/dist/assets/PremiumBadge.css +1 -0
- package/dist/assets/Prose.css +1 -0
- package/dist/assets/Radio.css +1 -0
- package/dist/assets/Rail.css +1 -0
- package/dist/assets/RichInput.css +1 -0
- package/dist/assets/Select.css +1 -0
- package/dist/assets/Separator.css +1 -0
- package/dist/assets/Shroud.css +1 -0
- package/dist/assets/Spacer.css +1 -0
- package/dist/assets/Switch.css +1 -0
- package/dist/assets/Tabular.css +1 -0
- package/dist/assets/Text.css +1 -0
- package/dist/assets/Textarea.css +1 -0
- package/dist/assets/Title.css +1 -0
- package/dist/assets/global.css +1 -0
- package/dist/assets/themes.css +1 -0
- package/dist/components/Avatar/Avatar.d.ts +8 -0
- package/dist/components/Avatar/Avatar.js +22 -0
- package/dist/components/BackdropPortal/BackdropPortal.d.ts +6 -0
- package/dist/components/BackdropPortal/BackdropPortal.js +11 -0
- package/dist/components/Badge/Badge.d.ts +9 -0
- package/dist/components/Badge/Badge.js +18 -0
- package/dist/components/Button/Button.d.ts +22 -0
- package/dist/components/Button/Button.js +56 -0
- package/dist/components/Button/ButtonBar.d.ts +6 -0
- package/dist/components/Button/ButtonBar.js +13 -0
- package/dist/components/Checkbox/Checkbox.d.ts +12 -0
- package/dist/components/Checkbox/Checkbox.js +42 -0
- package/dist/components/ControlBox/ControlBox.d.ts +9 -0
- package/dist/components/ControlBox/ControlBox.js +19 -0
- package/dist/components/CountryFlag/CountryFlag.d.ts +9 -0
- package/dist/components/CountryFlag/CountryFlag.js +21 -0
- package/dist/components/Decorate/Decorate.d.ts +9 -0
- package/dist/components/Decorate/Decorate.js +20 -0
- package/dist/components/Dot/Dot.d.ts +6 -0
- package/dist/components/Dot/Dot.js +14 -0
- package/dist/components/Flyout/Flyout.d.ts +17 -0
- package/dist/components/Flyout/Flyout.js +60 -0
- package/dist/components/Icon/Icon.d.ts +11 -0
- package/dist/components/Icon/Icon.js +24 -0
- package/dist/components/Icons.d.ts +38 -0
- package/dist/components/Icons.js +6 -0
- package/dist/components/Indicator/Indicator.d.ts +6 -0
- package/dist/components/Indicator/Indicator.js +19 -0
- package/dist/components/InfoPanel/InfoPanel.d.ts +13 -0
- package/dist/components/InfoPanel/InfoPanel.js +34 -0
- package/dist/components/Input/Input.d.ts +37 -0
- package/dist/components/Input/Input.js +96 -0
- package/dist/components/Input/RichInput.d.ts +18 -0
- package/dist/components/Input/RichInput.js +63 -0
- package/dist/components/Interactive/Interactive.d.ts +6 -0
- package/dist/components/Interactive/Interactive.js +18 -0
- package/dist/components/Island/Island.d.ts +26 -0
- package/dist/components/Island/Island.js +34 -0
- package/dist/components/Layout/Box/Box.d.ts +21 -0
- package/dist/components/Layout/Box/Box.js +38 -0
- package/dist/components/Layout/Center/Center.d.ts +9 -0
- package/dist/components/Layout/Center/Center.js +22 -0
- package/dist/components/Layout/Flex/Flex.d.ts +26 -0
- package/dist/components/Layout/Flex/Flex.js +75 -0
- package/dist/components/Layout/Flex/FlexRestricter.d.ts +12 -0
- package/dist/components/Layout/Flex/FlexRestricter.js +20 -0
- package/dist/components/Layout/Pad/Pad.d.ts +15 -0
- package/dist/components/Layout/Pad/Pad.js +36 -0
- package/dist/components/Layout/Page/Page.d.ts +8 -0
- package/dist/components/Layout/Page/Page.js +21 -0
- package/dist/components/Layout/Scrollable/Rail.d.ts +13 -0
- package/dist/components/Layout/Scrollable/Rail.js +10 -0
- package/dist/components/Layout/Scrollable/Scrollable.d.ts +14 -0
- package/dist/components/Layout/Scrollable/Scrollable.js +89 -0
- package/dist/components/Layout/Scrollable/VirtualScrollable.d.ts +11 -0
- package/dist/components/Layout/Scrollable/VirtualScrollable.js +426 -0
- package/dist/components/Loaf/Loaf.d.ts +12 -0
- package/dist/components/Loaf/Loaf.js +27 -0
- package/dist/components/Modal/Modal.d.ts +18 -0
- package/dist/components/Modal/Modal.js +42 -0
- package/dist/components/NavList/NavList.d.ts +14 -0
- package/dist/components/NavList/NavList.js +33 -0
- package/dist/components/OnScreenSensor.d.ts +5 -0
- package/dist/components/OnScreenSensor.js +26 -0
- package/dist/components/Overlay/Overlay.d.ts +20 -0
- package/dist/components/Overlay/Overlay.js +28 -0
- package/dist/components/Popover/Popover.d.ts +12 -0
- package/dist/components/Popover/Popover.js +40 -0
- package/dist/components/PremiumBadge/PremiumBadge.d.ts +15 -0
- package/dist/components/PremiumBadge/PremiumBadge.js +38 -0
- package/dist/components/Prose/Prose.d.ts +6 -0
- package/dist/components/Prose/Prose.js +12 -0
- package/dist/components/Radio/Radio.d.ts +12 -0
- package/dist/components/Radio/Radio.js +45 -0
- package/dist/components/Select/Select.d.ts +16 -0
- package/dist/components/Select/Select.js +3293 -0
- package/dist/components/Separator/Separator.d.ts +8 -0
- package/dist/components/Separator/Separator.js +29 -0
- package/dist/components/Shroud/Shroud.d.ts +6 -0
- package/dist/components/Shroud/Shroud.js +41 -0
- package/dist/components/Spacer/Spacer.d.ts +5 -0
- package/dist/components/Spacer/Spacer.js +26 -0
- package/dist/components/Style/Style.d.ts +12 -0
- package/dist/components/Style/Style.js +23 -0
- package/dist/components/Switch/Switch.d.ts +17 -0
- package/dist/components/Switch/Switch.js +65 -0
- package/dist/components/Symbols.d.ts +5 -0
- package/dist/components/Symbols.js +7 -0
- package/dist/components/Tabular/Tabular.d.ts +30 -0
- package/dist/components/Tabular/Tabular.js +64 -0
- package/dist/components/Text/Text.d.ts +8 -0
- package/dist/components/Text/Text.js +61 -0
- package/dist/components/Text/Text.types.d.ts +33 -0
- package/dist/components/Text/Text.types.js +1 -0
- package/dist/components/Textarea/Textarea.d.ts +15 -0
- package/dist/components/Textarea/Textarea.js +57 -0
- package/dist/components/Title/Title.d.ts +13 -0
- package/dist/components/Title/Title.js +113 -0
- package/dist/components/outlets.d.ts +10 -0
- package/dist/components/outlets.js +7 -0
- package/dist/components/ui.d.ts +28 -0
- package/dist/components/ui.js +29 -0
- package/dist/functional-C0pE183N.js +30 -0
- package/dist/hooks-Bv1kQUpO.js +65 -0
- package/dist/index-C75OpfGQ.js +19577 -0
- package/dist/links-CgOD-Vfj.js +1142 -0
- package/dist/main.d.ts +68 -0
- package/dist/main.js +118 -0
- package/dist/math-i2ceybzU.js +16 -0
- package/dist/medium-Dc7QRuE0.js +118 -0
- package/dist/outlet-C4wpavcH.js +25 -0
- package/dist/outlets-BsMV5obW.js +13 -0
- package/dist/string-NVxCUbqk.js +54 -0
- package/dist/styles-scss/_colors.scss +211 -0
- package/dist/styles-scss/_ui.scss +195 -0
- package/dist/styles-scss/global.scss +71 -0
- package/dist/styles-scss/themes/dark.scss +24 -0
- package/dist/styles-scss/themes/light.scss +54 -0
- package/dist/styles-scss/themes.scss +2 -0
- package/dist/styles-scss/tokens.scss +274 -0
- package/dist/tslib.es6-Dd_EkEfR.js +48 -0
- package/dist/utils/clsx.d.ts +7 -0
- package/dist/utils/clsx.js +14 -0
- package/dist/utils/functional.d.ts +5 -0
- package/dist/utils/functional.js +8 -0
- package/dist/utils/getValue.d.ts +2 -0
- package/dist/utils/getValue.js +6 -0
- package/dist/utils/hooks.d.ts +13 -0
- package/dist/utils/hooks.js +9 -0
- package/dist/utils/links.d.ts +27 -0
- package/dist/utils/links.js +14 -0
- package/dist/utils/math.d.ts +2 -0
- package/dist/utils/math.js +5 -0
- package/dist/utils/mergeRefs.d.ts +3 -0
- package/dist/utils/mergeRefs.js +10 -0
- package/dist/utils/outlet.d.ts +4 -0
- package/dist/utils/outlet.js +6 -0
- package/dist/utils/string.d.ts +6 -0
- package/dist/utils/string.js +9 -0
- package/package.json +82 -0
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { clsx } from './utils/clsx';
|
|
2
|
+
import { getValue } from './utils/getValue';
|
|
3
|
+
import { default as mergeRefs } from './utils/mergeRefs';
|
|
4
|
+
|
|
5
|
+
import * as functional from './utils/functional';
|
|
6
|
+
import * as hooks from './utils/hooks';
|
|
7
|
+
import * as links from './utils/links';
|
|
8
|
+
import * as math from './utils/math';
|
|
9
|
+
import * as outlet from './utils/outlet';
|
|
10
|
+
import * as string from './utils/string';
|
|
11
|
+
export declare const utils: {
|
|
12
|
+
clsx: typeof clsx;
|
|
13
|
+
getValue: typeof getValue;
|
|
14
|
+
mergeRefs: typeof mergeRefs;
|
|
15
|
+
functional: typeof functional;
|
|
16
|
+
hooks: typeof hooks;
|
|
17
|
+
links: typeof links;
|
|
18
|
+
math: typeof math;
|
|
19
|
+
outlet: typeof outlet;
|
|
20
|
+
string: typeof string;
|
|
21
|
+
};
|
|
22
|
+
export { Checkbox } from './components/Checkbox/Checkbox';
|
|
23
|
+
export { Button } from './components/Button/Button';
|
|
24
|
+
export { ButtonBar } from './components/Button/ButtonBar';
|
|
25
|
+
export { Avatar } from './components/Avatar/Avatar';
|
|
26
|
+
export { BackdropPortal } from './components/BackdropPortal/BackdropPortal';
|
|
27
|
+
export { Badge } from './components/Badge/Badge';
|
|
28
|
+
export { ControlBox } from './components/ControlBox/ControlBox';
|
|
29
|
+
export { CountryFlag } from './components/CountryFlag/CountryFlag';
|
|
30
|
+
export { Decorate } from './components/Decorate/Decorate';
|
|
31
|
+
export { Dot } from './components/Dot/Dot';
|
|
32
|
+
export { Flyout } from './components/Flyout/Flyout';
|
|
33
|
+
export { Icon } from './components/Icon/Icon';
|
|
34
|
+
export { Indicator } from './components/Indicator/Indicator';
|
|
35
|
+
export { InfoPanel } from './components/InfoPanel/InfoPanel';
|
|
36
|
+
export { Input } from './components/Input/Input';
|
|
37
|
+
export { RichInput } from './components/Input/RichInput';
|
|
38
|
+
export { Interactive } from './components/Interactive/Interactive';
|
|
39
|
+
export { Island } from './components/Island/Island';
|
|
40
|
+
export { Box } from './components/Layout/Box/Box';
|
|
41
|
+
export { Center } from './components/Layout/Center/Center';
|
|
42
|
+
export { Flex } from './components/Layout/Flex/Flex';
|
|
43
|
+
export { Pad } from './components/Layout/Pad/Pad';
|
|
44
|
+
export { Page } from './components/Layout/Page/Page';
|
|
45
|
+
export { Scrollable } from './components/Layout/Scrollable/Scrollable';
|
|
46
|
+
export { Loaf } from './components/Loaf/Loaf';
|
|
47
|
+
export { Modal } from './components/Modal/Modal';
|
|
48
|
+
export { NavList } from './components/NavList/NavList';
|
|
49
|
+
export { Overlay } from './components/Overlay/Overlay';
|
|
50
|
+
export { Popover } from './components/Popover/Popover';
|
|
51
|
+
export { PremiumBadge } from './components/PremiumBadge/PremiumBadge';
|
|
52
|
+
export { Prose } from './components/Prose/Prose';
|
|
53
|
+
export { Radio } from './components/Radio/Radio';
|
|
54
|
+
export { Select } from './components/Select/Select';
|
|
55
|
+
export { Separator } from './components/Separator/Separator';
|
|
56
|
+
export { Shroud } from './components/Shroud/Shroud';
|
|
57
|
+
export { Spacer } from './components/Spacer/Spacer';
|
|
58
|
+
export { Style } from './components/Style/Style';
|
|
59
|
+
export { Switch } from './components/Switch/Switch';
|
|
60
|
+
export { Tabular } from './components/Tabular/Tabular';
|
|
61
|
+
export { Text } from './components/Text/Text';
|
|
62
|
+
export { Textarea } from './components/Textarea/Textarea';
|
|
63
|
+
export { Title } from './components/Title/Title';
|
|
64
|
+
export { Icons, BrandIcon } from './components/Icons';
|
|
65
|
+
export * as outlets from './components/outlets';
|
|
66
|
+
export { OnScreenSensor } from './components/OnScreenSensor';
|
|
67
|
+
export { ui } from './components/ui';
|
|
68
|
+
export { Symbols } from './components/Symbols';
|
package/dist/main.js
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { clsx as o } from "./utils/clsx.js";
|
|
2
|
+
import { f as r } from "./functional-C0pE183N.js";
|
|
3
|
+
import { getValue as t } from "./utils/getValue.js";
|
|
4
|
+
import { h as e } from "./hooks-Bv1kQUpO.js";
|
|
5
|
+
import { l as m } from "./links-CgOD-Vfj.js";
|
|
6
|
+
import { m as p } from "./math-i2ceybzU.js";
|
|
7
|
+
import f from "./utils/mergeRefs.js";
|
|
8
|
+
import { o as x } from "./outlet-C4wpavcH.js";
|
|
9
|
+
import { s as a } from "./string-NVxCUbqk.js";
|
|
10
|
+
import { Checkbox as P } from "./components/Checkbox/Checkbox.js";
|
|
11
|
+
import { Button as y } from "./components/Button/Button.js";
|
|
12
|
+
import { ButtonBar as k } from "./components/Button/ButtonBar.js";
|
|
13
|
+
import { Avatar as T } from "./components/Avatar/Avatar.js";
|
|
14
|
+
import { BackdropPortal as R } from "./components/BackdropPortal/BackdropPortal.js";
|
|
15
|
+
import { Badge as L } from "./components/Badge/Badge.js";
|
|
16
|
+
import { ControlBox as w } from "./components/ControlBox/ControlBox.js";
|
|
17
|
+
import { CountryFlag as M } from "./components/CountryFlag/CountryFlag.js";
|
|
18
|
+
import { Decorate as V } from "./components/Decorate/Decorate.js";
|
|
19
|
+
import { Dot as q } from "./components/Dot/Dot.js";
|
|
20
|
+
import { Flyout as E } from "./components/Flyout/Flyout.js";
|
|
21
|
+
import { Icon as H } from "./components/Icon/Icon.js";
|
|
22
|
+
import { Indicator as K } from "./components/Indicator/Indicator.js";
|
|
23
|
+
import { InfoPanel as U } from "./components/InfoPanel/InfoPanel.js";
|
|
24
|
+
import { Input as X } from "./components/Input/Input.js";
|
|
25
|
+
import { RichInput as Z } from "./components/Input/RichInput.js";
|
|
26
|
+
import { Interactive as $ } from "./components/Interactive/Interactive.js";
|
|
27
|
+
import { Island as ro } from "./components/Island/Island.js";
|
|
28
|
+
import { Box as eo } from "./components/Layout/Box/Box.js";
|
|
29
|
+
import { Center as po } from "./components/Layout/Center/Center.js";
|
|
30
|
+
import { Flex as xo } from "./components/Layout/Flex/Flex.js";
|
|
31
|
+
import { Pad as lo } from "./components/Layout/Pad/Pad.js";
|
|
32
|
+
import { Page as so } from "./components/Layout/Page/Page.js";
|
|
33
|
+
import { Scrollable as co } from "./components/Layout/Scrollable/Scrollable.js";
|
|
34
|
+
import { Loaf as Bo } from "./components/Loaf/Loaf.js";
|
|
35
|
+
import { Modal as So } from "./components/Modal/Modal.js";
|
|
36
|
+
import { NavList as ho } from "./components/NavList/NavList.js";
|
|
37
|
+
import { Overlay as vo } from "./components/Overlay/Overlay.js";
|
|
38
|
+
import { Popover as bo } from "./components/Popover/Popover.js";
|
|
39
|
+
import { PremiumBadge as Co } from "./components/PremiumBadge/PremiumBadge.js";
|
|
40
|
+
import { Prose as Fo } from "./components/Prose/Prose.js";
|
|
41
|
+
import { Radio as Do } from "./components/Radio/Radio.js";
|
|
42
|
+
import { Select as Oo } from "./components/Select/Select.js";
|
|
43
|
+
import { Separator as Ao } from "./components/Separator/Separator.js";
|
|
44
|
+
import { Shroud as No } from "./components/Shroud/Shroud.js";
|
|
45
|
+
import { Spacer as jo } from "./components/Spacer/Spacer.js";
|
|
46
|
+
import { Style as zo } from "./components/Style/Style.js";
|
|
47
|
+
import { Switch as Go } from "./components/Switch/Switch.js";
|
|
48
|
+
import { Tabular as Jo } from "./components/Tabular/Tabular.js";
|
|
49
|
+
import { Text as Qo } from "./components/Text/Text.js";
|
|
50
|
+
import { Textarea as Wo } from "./components/Textarea/Textarea.js";
|
|
51
|
+
import { Title as Yo } from "./components/Title/Title.js";
|
|
52
|
+
import { B as _o, I as $o } from "./Icons-B26SczGZ.js";
|
|
53
|
+
import { o as rr } from "./outlets-BsMV5obW.js";
|
|
54
|
+
import { OnScreenSensor as er } from "./components/OnScreenSensor.js";
|
|
55
|
+
import { ui as pr } from "./components/ui.js";
|
|
56
|
+
import { Symbols as xr } from "./components/Symbols.js";
|
|
57
|
+
const S = {
|
|
58
|
+
clsx: o,
|
|
59
|
+
getValue: t,
|
|
60
|
+
mergeRefs: f,
|
|
61
|
+
functional: r,
|
|
62
|
+
hooks: e,
|
|
63
|
+
links: m,
|
|
64
|
+
math: p,
|
|
65
|
+
outlet: x,
|
|
66
|
+
string: a
|
|
67
|
+
};
|
|
68
|
+
export {
|
|
69
|
+
T as Avatar,
|
|
70
|
+
R as BackdropPortal,
|
|
71
|
+
L as Badge,
|
|
72
|
+
eo as Box,
|
|
73
|
+
_o as BrandIcon,
|
|
74
|
+
y as Button,
|
|
75
|
+
k as ButtonBar,
|
|
76
|
+
po as Center,
|
|
77
|
+
P as Checkbox,
|
|
78
|
+
w as ControlBox,
|
|
79
|
+
M as CountryFlag,
|
|
80
|
+
V as Decorate,
|
|
81
|
+
q as Dot,
|
|
82
|
+
xo as Flex,
|
|
83
|
+
E as Flyout,
|
|
84
|
+
H as Icon,
|
|
85
|
+
$o as Icons,
|
|
86
|
+
K as Indicator,
|
|
87
|
+
U as InfoPanel,
|
|
88
|
+
X as Input,
|
|
89
|
+
$ as Interactive,
|
|
90
|
+
ro as Island,
|
|
91
|
+
Bo as Loaf,
|
|
92
|
+
So as Modal,
|
|
93
|
+
ho as NavList,
|
|
94
|
+
er as OnScreenSensor,
|
|
95
|
+
vo as Overlay,
|
|
96
|
+
lo as Pad,
|
|
97
|
+
so as Page,
|
|
98
|
+
bo as Popover,
|
|
99
|
+
Co as PremiumBadge,
|
|
100
|
+
Fo as Prose,
|
|
101
|
+
Do as Radio,
|
|
102
|
+
Z as RichInput,
|
|
103
|
+
co as Scrollable,
|
|
104
|
+
Oo as Select,
|
|
105
|
+
Ao as Separator,
|
|
106
|
+
No as Shroud,
|
|
107
|
+
jo as Spacer,
|
|
108
|
+
zo as Style,
|
|
109
|
+
Go as Switch,
|
|
110
|
+
xr as Symbols,
|
|
111
|
+
Jo as Tabular,
|
|
112
|
+
Qo as Text,
|
|
113
|
+
Wo as Textarea,
|
|
114
|
+
Yo as Title,
|
|
115
|
+
rr as outlets,
|
|
116
|
+
pr as ui,
|
|
117
|
+
S as utils
|
|
118
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function a(t) {
|
|
2
|
+
return t < 0 ? 0 : t > 1 ? 1 : t;
|
|
3
|
+
}
|
|
4
|
+
function n(t, e, r) {
|
|
5
|
+
return Math.min(r, Math.max(e, t));
|
|
6
|
+
}
|
|
7
|
+
const o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8
|
+
__proto__: null,
|
|
9
|
+
clamp: n,
|
|
10
|
+
clamp01: a
|
|
11
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
12
|
+
export {
|
|
13
|
+
n as a,
|
|
14
|
+
a as c,
|
|
15
|
+
o as m
|
|
16
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
import { useState as g } from "react";
|
|
3
|
+
import { _ as p } from "./tslib.es6-Dd_EkEfR.js";
|
|
4
|
+
function o(e, u) {
|
|
5
|
+
return typeof e == "function" ? e(u) : e && (e.current = u), e;
|
|
6
|
+
}
|
|
7
|
+
function E(e, u) {
|
|
8
|
+
var n = g(function() {
|
|
9
|
+
return {
|
|
10
|
+
// value
|
|
11
|
+
value: e,
|
|
12
|
+
// last callback
|
|
13
|
+
callback: u,
|
|
14
|
+
// "memoized" public interface
|
|
15
|
+
facade: {
|
|
16
|
+
get current() {
|
|
17
|
+
return n.value;
|
|
18
|
+
},
|
|
19
|
+
set current(r) {
|
|
20
|
+
var c = n.value;
|
|
21
|
+
c !== r && (n.value = r, n.callback(r, c));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
})[0];
|
|
26
|
+
return n.callback = u, n.facade;
|
|
27
|
+
}
|
|
28
|
+
var M = typeof window < "u" ? l.useLayoutEffect : l.useEffect, v = /* @__PURE__ */ new WeakMap();
|
|
29
|
+
function b(e, u) {
|
|
30
|
+
var n = E(null, function(r) {
|
|
31
|
+
return e.forEach(function(c) {
|
|
32
|
+
return o(c, r);
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
return M(function() {
|
|
36
|
+
var r = v.get(n);
|
|
37
|
+
if (r) {
|
|
38
|
+
var c = new Set(r), i = new Set(e), t = n.current;
|
|
39
|
+
c.forEach(function(a) {
|
|
40
|
+
i.has(a) || o(a, null);
|
|
41
|
+
}), i.forEach(function(a) {
|
|
42
|
+
c.has(a) || o(a, t);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
v.set(n, e);
|
|
46
|
+
}, [e]), n;
|
|
47
|
+
}
|
|
48
|
+
function d(e) {
|
|
49
|
+
return e;
|
|
50
|
+
}
|
|
51
|
+
function h(e, u) {
|
|
52
|
+
u === void 0 && (u = d);
|
|
53
|
+
var n = [], r = !1, c = {
|
|
54
|
+
read: function() {
|
|
55
|
+
if (r)
|
|
56
|
+
throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
57
|
+
return n.length ? n[n.length - 1] : e;
|
|
58
|
+
},
|
|
59
|
+
useMedium: function(i) {
|
|
60
|
+
var t = u(i, r);
|
|
61
|
+
return n.push(t), function() {
|
|
62
|
+
n = n.filter(function(a) {
|
|
63
|
+
return a !== t;
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
},
|
|
67
|
+
assignSyncMedium: function(i) {
|
|
68
|
+
for (r = !0; n.length; ) {
|
|
69
|
+
var t = n;
|
|
70
|
+
n = [], t.forEach(i);
|
|
71
|
+
}
|
|
72
|
+
n = {
|
|
73
|
+
push: function(a) {
|
|
74
|
+
return i(a);
|
|
75
|
+
},
|
|
76
|
+
filter: function() {
|
|
77
|
+
return n;
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
},
|
|
81
|
+
assignMedium: function(i) {
|
|
82
|
+
r = !0;
|
|
83
|
+
var t = [];
|
|
84
|
+
if (n.length) {
|
|
85
|
+
var a = n;
|
|
86
|
+
n = [], a.forEach(i), t = n;
|
|
87
|
+
}
|
|
88
|
+
var m = function() {
|
|
89
|
+
var f = t;
|
|
90
|
+
t = [], f.forEach(i);
|
|
91
|
+
}, s = function() {
|
|
92
|
+
return Promise.resolve().then(m);
|
|
93
|
+
};
|
|
94
|
+
s(), n = {
|
|
95
|
+
push: function(f) {
|
|
96
|
+
t.push(f), s();
|
|
97
|
+
},
|
|
98
|
+
filter: function(f) {
|
|
99
|
+
return t = t.filter(f), n;
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
return c;
|
|
105
|
+
}
|
|
106
|
+
function k(e, u) {
|
|
107
|
+
return u === void 0 && (u = d), h(e, u);
|
|
108
|
+
}
|
|
109
|
+
function w(e) {
|
|
110
|
+
e === void 0 && (e = {});
|
|
111
|
+
var u = h(null);
|
|
112
|
+
return u.options = p({ async: !0, ssr: !1 }, e), u;
|
|
113
|
+
}
|
|
114
|
+
export {
|
|
115
|
+
k as a,
|
|
116
|
+
w as c,
|
|
117
|
+
b as u
|
|
118
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { $ as o } from "./index-C75OpfGQ.js";
|
|
2
|
+
function n(t) {
|
|
3
|
+
const e = document.getElementById(t);
|
|
4
|
+
if (!e)
|
|
5
|
+
throw new Error(`Tried to attach outlet to the DOM node #${t}, but there is no such`);
|
|
6
|
+
return ({
|
|
7
|
+
children: r
|
|
8
|
+
}) => o.createPortal(r, e);
|
|
9
|
+
}
|
|
10
|
+
function a() {
|
|
11
|
+
const t = document.createElement("div");
|
|
12
|
+
return document.body.appendChild(t), ({
|
|
13
|
+
children: e
|
|
14
|
+
}) => o.createPortal(e, t);
|
|
15
|
+
}
|
|
16
|
+
const u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
17
|
+
__proto__: null,
|
|
18
|
+
attachOutlet: n,
|
|
19
|
+
createOutlet: a
|
|
20
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
21
|
+
export {
|
|
22
|
+
n as a,
|
|
23
|
+
a as c,
|
|
24
|
+
u as o
|
|
25
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { c as t } from "./outlet-C4wpavcH.js";
|
|
2
|
+
const e = t(), o = t(), l = t(), s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
|
+
__proto__: null,
|
|
4
|
+
AfterTitleOutlet: l,
|
|
5
|
+
PreTitleOutlet: e,
|
|
6
|
+
TitleOutlet: o
|
|
7
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
8
|
+
export {
|
|
9
|
+
l as A,
|
|
10
|
+
e as P,
|
|
11
|
+
o as T,
|
|
12
|
+
s as o
|
|
13
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
function h(t, e) {
|
|
2
|
+
const n = t.charCodeAt(e);
|
|
3
|
+
let r;
|
|
4
|
+
return n >= 55296 && n <= 56319 && t.length > e + 1 && (r = t.charCodeAt(e + 1), r >= 56320 && r <= 57343) ? t.substring(e, e + 2) : t[e];
|
|
5
|
+
}
|
|
6
|
+
function b(t, e) {
|
|
7
|
+
return t[e];
|
|
8
|
+
}
|
|
9
|
+
function S(t, e) {
|
|
10
|
+
return t - e;
|
|
11
|
+
}
|
|
12
|
+
function d(t, e, n = !1) {
|
|
13
|
+
const r = n ? h : b, a = e.filter((s, g, p) => p.lastIndexOf(s) !== g ? !1 : s < t.length && s > 0).sort(S);
|
|
14
|
+
if (a.length === 0)
|
|
15
|
+
return /* @__PURE__ */ new Map([[0, t]]);
|
|
16
|
+
const o = /* @__PURE__ */ new Map();
|
|
17
|
+
let l = "", i = 0, u = 0, c = 0, f = 0;
|
|
18
|
+
for (; u < t.length; ) {
|
|
19
|
+
const s = r(t, u);
|
|
20
|
+
l += s, u += s.length, i += 1, a[c] === i && (o.set(f, l), l = "", f = a[c], c += 1);
|
|
21
|
+
}
|
|
22
|
+
return l && o.set(f, l), o;
|
|
23
|
+
}
|
|
24
|
+
function A(t, e, n, r) {
|
|
25
|
+
const a = t.substring(0, n), o = t.substring(r);
|
|
26
|
+
return `${a}${e}${o}`;
|
|
27
|
+
}
|
|
28
|
+
function C(t) {
|
|
29
|
+
return t.replace(/\\/g, "/");
|
|
30
|
+
}
|
|
31
|
+
function I(t) {
|
|
32
|
+
return !!t || t === "true" || t === "1";
|
|
33
|
+
}
|
|
34
|
+
function P(t) {
|
|
35
|
+
return !t || t === "false" || t === "0";
|
|
36
|
+
}
|
|
37
|
+
const _ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
38
|
+
__proto__: null,
|
|
39
|
+
isFalseString: P,
|
|
40
|
+
isTrueString: I,
|
|
41
|
+
normalizeSlashes: C,
|
|
42
|
+
replaceRange: A,
|
|
43
|
+
splitByIndices: d,
|
|
44
|
+
unicodeCharAt: h
|
|
45
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
46
|
+
export {
|
|
47
|
+
d as a,
|
|
48
|
+
P as b,
|
|
49
|
+
I as i,
|
|
50
|
+
C as n,
|
|
51
|
+
A as r,
|
|
52
|
+
_ as s,
|
|
53
|
+
h as u
|
|
54
|
+
};
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
@use "sass:list";
|
|
3
|
+
|
|
4
|
+
@function get-luminance($color) {
|
|
5
|
+
$colors: (
|
|
6
|
+
'red': red($color),
|
|
7
|
+
'green': green($color),
|
|
8
|
+
'blue': blue($color)
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
@each $name, $value in $colors {
|
|
12
|
+
$adjusted: 0;
|
|
13
|
+
$value: math.div($value, 255);
|
|
14
|
+
|
|
15
|
+
@if $value < 0.03928 {
|
|
16
|
+
$value: math.div($value, 12.92);
|
|
17
|
+
} @else {
|
|
18
|
+
$value: math.div($value + .055, 1.055);
|
|
19
|
+
$value: math.pow($value, 2.4);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
$colors: map-merge($colors, ($name: $value));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@return (map-get($colors, 'red') * .2126) + (map-get($colors, 'green') * .7152) + (map-get($colors, 'blue') * .0722);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@function interpolate($c1, $c2, $f) {
|
|
29
|
+
$c1r: red($c1);
|
|
30
|
+
$c1g: green($c1);
|
|
31
|
+
$c1b: blue($c1);
|
|
32
|
+
|
|
33
|
+
$c2r: red($c2);
|
|
34
|
+
$c2g: green($c2);
|
|
35
|
+
$c2b: blue($c2);
|
|
36
|
+
|
|
37
|
+
@return rgb(
|
|
38
|
+
$c1r + $f * ($c2r - $c1r),
|
|
39
|
+
$c1g + $f * ($c2g - $c1g),
|
|
40
|
+
$c1b + $f * ($c2b - $c1b),
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@function set-luminance($color, $lum) {
|
|
45
|
+
$itersLeft: 20;
|
|
46
|
+
$low: rgb(0, 0, 0);
|
|
47
|
+
$high: rgb(255, 255, 255);
|
|
48
|
+
|
|
49
|
+
@if get-luminance($color) > $lum {
|
|
50
|
+
$high: $color;
|
|
51
|
+
} @else {
|
|
52
|
+
$low: $color;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
$mid: interpolate($low, $high, .5);
|
|
56
|
+
$lm: get-luminance($mid);
|
|
57
|
+
|
|
58
|
+
@while math.abs($lum - $lm) >= 1e-7 and $itersLeft > 0 {
|
|
59
|
+
$itersLeft: $itersLeft - 1;
|
|
60
|
+
|
|
61
|
+
$mid: interpolate($low, $high, .5);
|
|
62
|
+
$lm: get-luminance($mid);
|
|
63
|
+
|
|
64
|
+
@if $lm > $lum {
|
|
65
|
+
$high: $mid;
|
|
66
|
+
} @else {
|
|
67
|
+
$low: $mid;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@return $mid;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@function color-triplet($color) {
|
|
75
|
+
@return #{red($color)}, #{green($color)}, #{blue($color)};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
// LAB <-> RGB
|
|
80
|
+
$oneThird: math.div(1, 3);
|
|
81
|
+
$_16OVER116: math.div(16, 116);
|
|
82
|
+
$_1OVER2P4: math.div(1, 2.4);
|
|
83
|
+
|
|
84
|
+
@function rgb2lab($color) {
|
|
85
|
+
$r: math.div(red($color), 255);
|
|
86
|
+
$g: math.div(green($color), 255);
|
|
87
|
+
$b: math.div(blue($color), 255);
|
|
88
|
+
|
|
89
|
+
@if $r > 0.04045 {
|
|
90
|
+
$r: math.pow(math.div($r + 0.055, 1.055), 2.4);
|
|
91
|
+
} @else {
|
|
92
|
+
$r: math.div($r, 12.92);
|
|
93
|
+
}
|
|
94
|
+
@if $g > 0.04045 {
|
|
95
|
+
$g: math.pow(math.div($g + 0.055, 1.055), 2.4);
|
|
96
|
+
} @else {
|
|
97
|
+
$g: math.div($g, 12.92);
|
|
98
|
+
}
|
|
99
|
+
@if $b > 0.04045 {
|
|
100
|
+
$b: math.pow(math.div($b + 0.055, 1.055), 2.4);
|
|
101
|
+
} @else {
|
|
102
|
+
$b: math.div($b, 12.92);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
$x: math.div($r * 0.4124 + $g * 0.3576 + $b * 0.1805, 0.95047);
|
|
106
|
+
$y: math.div($r * 0.2126 + $g * 0.7152 + $b * 0.0722, 1.00000);
|
|
107
|
+
$z: math.div($r * 0.0193 + $g * 0.1192 + $b * 0.9505, 1.08883);
|
|
108
|
+
|
|
109
|
+
@if $x > 0.008856 {
|
|
110
|
+
$x: math.pow($x, $oneThird);
|
|
111
|
+
} @else {
|
|
112
|
+
$x: (7.787 * $x) + $_16OVER116;
|
|
113
|
+
}
|
|
114
|
+
@if $y > 0.008856 {
|
|
115
|
+
$y: math.pow($y, $oneThird);
|
|
116
|
+
} @else {
|
|
117
|
+
$y: (7.787 * $y) + $_16OVER116;
|
|
118
|
+
}
|
|
119
|
+
@if $z > 0.008856 {
|
|
120
|
+
$z: math.pow($z, $oneThird);
|
|
121
|
+
} @else {
|
|
122
|
+
$z: (7.787 * $z) + $_16OVER116;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@return (
|
|
126
|
+
'L': (116 * $y) - 16,
|
|
127
|
+
'a': 500 * ($x - $y),
|
|
128
|
+
'b': 200 * ($y - $z),
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@function lab2rgb($lab) {
|
|
133
|
+
$y: math.div(map-get($lab, 'L') + 16, 116);
|
|
134
|
+
$x: math.div(map-get($lab, 'a'), 500) + $y;
|
|
135
|
+
$z: $y - math.div(map-get($lab, 'b'), 200);
|
|
136
|
+
|
|
137
|
+
$x3: math.pow($x, 3);
|
|
138
|
+
$y3: math.pow($y, 3);
|
|
139
|
+
$z3: math.pow($z, 3);
|
|
140
|
+
|
|
141
|
+
@if $x3 > 0.008856 {
|
|
142
|
+
$x: $x3;
|
|
143
|
+
} @else {
|
|
144
|
+
$x: math.div($x - $_16OVER116 , 7.787);
|
|
145
|
+
}
|
|
146
|
+
@if $y3 > 0.008856 {
|
|
147
|
+
$y: $y3;
|
|
148
|
+
} @else {
|
|
149
|
+
$y: math.div($y - $_16OVER116 , 7.787);
|
|
150
|
+
}
|
|
151
|
+
@if $z3 > 0.008856 {
|
|
152
|
+
$z: $z3;
|
|
153
|
+
} @else {
|
|
154
|
+
$z: math.div($z - $_16OVER116 , 7.787);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
$x: $x * 0.95047;
|
|
158
|
+
$y: $y * 1.00000;
|
|
159
|
+
$z: $z * 1.08883;
|
|
160
|
+
|
|
161
|
+
$r: $x * 3.2406 + $y * -1.5372 + $z * -0.4986;
|
|
162
|
+
$g: $x * -0.9689 + $y * 1.8758 + $z * 0.0415;
|
|
163
|
+
$b: $x * 0.0557 + $y * -0.2040 + $z * 1.0570;
|
|
164
|
+
|
|
165
|
+
@if $r > 0.0031308 {
|
|
166
|
+
$r: 1.055 * math.pow($r, $_1OVER2P4) - 0.055;
|
|
167
|
+
} @else {
|
|
168
|
+
$r: 12.92 * $r;
|
|
169
|
+
}
|
|
170
|
+
@if $g > 0.0031308 {
|
|
171
|
+
$g: 1.055 * math.pow($g, $_1OVER2P4) - 0.055;
|
|
172
|
+
} @else {
|
|
173
|
+
$g: 12.92 * $g;
|
|
174
|
+
}
|
|
175
|
+
@if $b > 0.0031308 {
|
|
176
|
+
$b: 1.055 * math.pow($b, $_1OVER2P4) - 0.055;
|
|
177
|
+
} @else {
|
|
178
|
+
$b: 12.92 * $b;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
@return rgb(
|
|
182
|
+
math.clamp(0, $r, 1) * 255,
|
|
183
|
+
math.clamp(0, $g, 1) * 255,
|
|
184
|
+
math.clamp(0, $b, 1) * 255,
|
|
185
|
+
);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
@function lab-gradient($s, $e, $start, $stop) {
|
|
189
|
+
$lst: ();
|
|
190
|
+
|
|
191
|
+
@for $i from $start to $stop {
|
|
192
|
+
$lst: list.append($lst, lab-gradient-step($s, $e, $i, $stop));
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
@return $lst;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
@function lab-gradient-step($s, $e, $i, $stop) {
|
|
199
|
+
$s: rgb2lab($s);
|
|
200
|
+
$e: rgb2lab($e);
|
|
201
|
+
|
|
202
|
+
$a: math.div($i, $stop - 1);
|
|
203
|
+
$ia: 1 - $a;
|
|
204
|
+
|
|
205
|
+
@return lab2rgb((
|
|
206
|
+
'L': $ia * map-get($s, 'L') + $a * map-get($e, 'L'),
|
|
207
|
+
'a': $ia * map-get($s, 'a') + $a * map-get($e, 'a'),
|
|
208
|
+
'b': $ia * map-get($s, 'b') + $a * map-get($e, 'b'),
|
|
209
|
+
));
|
|
210
|
+
}
|
|
211
|
+
|