@cfx-dev/ui-components 0.0.19 → 0.0.21
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/Combination-Dp_plIQU.js +793 -0
- package/dist/{Icons-B26SczGZ.js → Icons-BlBKvJD8.js} +40 -98
- package/dist/{Rail-BCY3h7eP.js → Rail-CCuyJpf6.js} +11 -11
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/assets/InputDropzone.css +1 -0
- package/dist/assets/ItemPreview.css +1 -0
- package/dist/assets/Table.css +1 -0
- package/dist/components/BackdropPortal/BackdropPortal.d.ts +1 -0
- package/dist/components/BackdropPortal/BackdropPortal.js +9 -7
- package/dist/components/Badge/Badge.d.ts +2 -2
- package/dist/components/Button/Button.d.ts +2 -1
- package/dist/components/Button/Button.js +27 -25
- package/dist/components/Button/ButtonBar.d.ts +0 -1
- package/dist/components/Button/LinkButton.js +13 -13
- package/dist/components/Flyout/Flyout.d.ts +1 -0
- package/dist/components/Flyout/Flyout.js +28 -27
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/RichInput.js +2 -2
- package/dist/components/InputDropzone/InputDropzone.d.ts +14 -0
- package/dist/components/InputDropzone/InputDropzone.js +1103 -0
- package/dist/components/InputDropzone/ItemPreview.d.ts +8 -0
- package/dist/components/InputDropzone/ItemPreview.js +24 -0
- package/dist/components/Layout/Scrollable/Rail.js +3 -3
- package/dist/components/Layout/Scrollable/Scrollable.js +2 -2
- package/dist/components/Layout/Scrollable/VirtualScrollable.js +3 -4
- package/dist/components/Modal/Modal.d.ts +0 -2
- package/dist/components/Modal/Modal.js +3 -3
- package/dist/components/NavList/NavList.js +5 -5
- package/dist/components/OnScreenSensor.js +6 -6
- package/dist/components/Overlay/Overlay.d.ts +1 -0
- package/dist/components/Overlay/Overlay.js +16 -15
- package/dist/components/Select/Select.js +652 -663
- package/dist/components/Shroud/Shroud.js +20 -19
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Table/Table.d.ts +17 -0
- package/dist/components/Table/Table.js +61 -0
- package/dist/components/Tabular/Tabular.d.ts +1 -1
- package/dist/components/Text/Text.types.d.ts +0 -1
- package/dist/components/Title/Title.d.ts +1 -0
- package/dist/components/Title/Title.js +26 -25
- package/dist/{extends-Dk_bSU3E.js → extends-hS2Bh-Yp.js} +1 -2
- package/dist/{index-C75OpfGQ.js → index-2hJuj4UN.js} +2018 -2526
- package/dist/index-DQMInta3.js +663 -0
- package/dist/index.esm-BkynlSN6.js +72 -0
- package/dist/main.d.ts +17 -26
- package/dist/main.js +145 -122
- package/dist/{medium-Dc7QRuE0.js → medium-JVtzoF2c.js} +3 -3
- package/dist/style-guide/Colours/DarkThemeSwatches.d.ts +2 -0
- package/dist/style-guide/Colours/DarkThemeSwatches.js +110 -0
- package/dist/style-guide/Colours/LightThemeSwatches.d.ts +2 -0
- package/dist/style-guide/Colours/LightThemeSwatches.js +105 -0
- package/dist/style-guide/Colours/Swatches.d.ts +6 -0
- package/dist/style-guide/Colours/Swatches.js +48 -0
- package/dist/style-guide/Icons/IconDisplayGrid.d.ts +2 -0
- package/dist/style-guide/Icons/IconDisplayGrid.js +42 -0
- package/dist/style-guide/Icons/Icons.js +7 -0
- package/dist/tslib.es6-CBKHJX9H.js +151 -0
- package/dist/utils/functional.js +19 -6
- package/dist/utils/hooks.d.ts +2 -1
- package/dist/utils/hooks.js +77 -10
- package/dist/utils/links.js +1128 -12
- package/dist/utils/math.js +8 -3
- package/dist/utils/mergeRefs.d.ts +1 -1
- package/dist/utils/mergeRefs.js +2 -2
- package/dist/utils/outlet.js +19 -4
- package/dist/utils/string.js +42 -7
- package/package.json +7 -13
- package/dist/Combination-Dj-a6dCZ.js +0 -1462
- package/dist/components/Icons.js +0 -6
- package/dist/functional-C0pE183N.js +0 -30
- package/dist/hooks-GAujvL7d.js +0 -86
- package/dist/links-CgOD-Vfj.js +0 -1142
- package/dist/math-i2ceybzU.js +0 -16
- package/dist/outlet-B11a3Kgw.js +0 -27
- package/dist/string-NVxCUbqk.js +0 -54
- package/dist/tslib.es6-Dd_EkEfR.js +0 -48
- /package/dist/{components → style-guide/Icons}/Icons.d.ts +0 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import l from "react";
|
|
2
|
+
var d = {
|
|
3
|
+
color: void 0,
|
|
4
|
+
size: void 0,
|
|
5
|
+
className: void 0,
|
|
6
|
+
style: void 0,
|
|
7
|
+
attr: void 0
|
|
8
|
+
}, f = l.createContext && l.createContext(d), c = function() {
|
|
9
|
+
return c = Object.assign || function(t) {
|
|
10
|
+
for (var r, e = 1, n = arguments.length; e < n; e++) {
|
|
11
|
+
r = arguments[e];
|
|
12
|
+
for (var a in r) Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
|
|
13
|
+
}
|
|
14
|
+
return t;
|
|
15
|
+
}, c.apply(this, arguments);
|
|
16
|
+
}, v = function(t, r) {
|
|
17
|
+
var e = {};
|
|
18
|
+
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && r.indexOf(n) < 0 && (e[n] = t[n]);
|
|
19
|
+
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, n = Object.getOwnPropertySymbols(t); a < n.length; a++)
|
|
20
|
+
r.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[a]) && (e[n[a]] = t[n[a]]);
|
|
21
|
+
return e;
|
|
22
|
+
};
|
|
23
|
+
function m(t) {
|
|
24
|
+
return t && t.map(function(r, e) {
|
|
25
|
+
return l.createElement(r.tag, c({
|
|
26
|
+
key: e
|
|
27
|
+
}, r.attr), m(r.child));
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function o(t) {
|
|
31
|
+
return function(r) {
|
|
32
|
+
return l.createElement(h, c({
|
|
33
|
+
attr: c({}, t.attr)
|
|
34
|
+
}, r), m(t.child));
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function h(t) {
|
|
38
|
+
var r = function(e) {
|
|
39
|
+
var n = t.attr, a = t.size, u = t.title, g = v(t, ["attr", "size", "title"]), s = a || e.size || "1em", i;
|
|
40
|
+
return e.className && (i = e.className), t.className && (i = (i ? i + " " : "") + t.className), l.createElement("svg", c({
|
|
41
|
+
stroke: "currentColor",
|
|
42
|
+
fill: "currentColor",
|
|
43
|
+
strokeWidth: "0"
|
|
44
|
+
}, e.attr, n, g, {
|
|
45
|
+
className: i,
|
|
46
|
+
style: c(c({
|
|
47
|
+
color: t.color || e.color
|
|
48
|
+
}, e.style), t.style),
|
|
49
|
+
height: s,
|
|
50
|
+
width: s,
|
|
51
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
52
|
+
}), u && l.createElement("title", null, u), t.children);
|
|
53
|
+
};
|
|
54
|
+
return f !== void 0 ? l.createElement(f.Consumer, null, function(e) {
|
|
55
|
+
return r(e);
|
|
56
|
+
}) : r(d);
|
|
57
|
+
}
|
|
58
|
+
function w(t) {
|
|
59
|
+
return o({ tag: "svg", attr: { viewBox: "0 0 640 512" }, child: [{ tag: "path", attr: { d: "M48 0C21.53 0 0 21.53 0 48v64c0 8.84 7.16 16 16 16h80V48C96 21.53 74.47 0 48 0zm208 412.57V352h288V96c0-52.94-43.06-96-96-96H111.59C121.74 13.41 128 29.92 128 48v368c0 38.87 34.65 69.65 74.75 63.12C234.22 474 256 444.46 256 412.57zM288 384v32c0 52.93-43.06 96-96 96h336c61.86 0 112-50.14 112-112 0-8.84-7.16-16-16-16H288z" } }] })(t);
|
|
60
|
+
}
|
|
61
|
+
function O(t) {
|
|
62
|
+
return o({ tag: "svg", attr: { viewBox: "0 0 320 512" }, child: [{ tag: "path", attr: { d: "M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z" } }] })(t);
|
|
63
|
+
}
|
|
64
|
+
function x(t) {
|
|
65
|
+
return o({ tag: "svg", attr: { viewBox: "0 0 320 512" }, child: [{ tag: "path", attr: { d: "M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z" } }] })(t);
|
|
66
|
+
}
|
|
67
|
+
export {
|
|
68
|
+
x as F,
|
|
69
|
+
o as G,
|
|
70
|
+
O as a,
|
|
71
|
+
w as b
|
|
72
|
+
};
|
package/dist/main.d.ts
CHANGED
|
@@ -1,37 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import * as outlet from './utils/outlet';
|
|
10
|
-
import * as string from './utils/string';
|
|
1
|
+
export { mergeRefs } from './utils/mergeRefs';
|
|
2
|
+
export { clsx } from './utils/clsx';
|
|
3
|
+
export { getValue } from './utils/getValue';
|
|
4
|
+
export { useInstance, useDynamicRef, useGlobalKeyboardEvent, useKeyboardClose, useWindowResize, useOutlet, } from './utils/hooks';
|
|
5
|
+
export { noop, returnTrue, returnFalse, identity, invoke, } from './utils/functional';
|
|
6
|
+
export { isExternalUrl, matchLinks, matchLinkNodes, defaultLinkReplacerx, defaultLinkReplacer, linkifyx, linkify, Linkify, } from './utils/links';
|
|
7
|
+
export { clamp01, clamp, } from './utils/math';
|
|
8
|
+
export { unicodeCharAt, splitByIndices, replaceRange, normalizeSlashes, isTrueString, isFalseString, } from './utils/string';
|
|
11
9
|
export type { ValueOrGetter } from './utils/getValue';
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
getValue: typeof getValue;
|
|
15
|
-
mergeRefs: typeof mergeRefs;
|
|
16
|
-
functional: typeof functional;
|
|
17
|
-
hooks: typeof hooks;
|
|
18
|
-
links: typeof links;
|
|
19
|
-
math: typeof math;
|
|
20
|
-
outlet: typeof outlet;
|
|
21
|
-
string: typeof string;
|
|
22
|
-
};
|
|
10
|
+
export type { ILinkSubstitute, ILinkMatch, LinkifyProps, } from './utils/links';
|
|
11
|
+
export type { OutletPosition } from './utils/hooks';
|
|
23
12
|
export { Checkbox } from './components/Checkbox/Checkbox';
|
|
24
13
|
export { Button } from './components/Button/Button';
|
|
25
14
|
export { LinkButton } from './components/Button/LinkButton';
|
|
26
15
|
export { ButtonBar } from './components/Button/ButtonBar';
|
|
27
16
|
export { Avatar } from './components/Avatar/Avatar';
|
|
28
|
-
export { BackdropPortal } from './components/BackdropPortal/BackdropPortal';
|
|
17
|
+
export { BackdropPortal, BACKDROP_OUTLET_ID } from './components/BackdropPortal/BackdropPortal';
|
|
29
18
|
export { Badge } from './components/Badge/Badge';
|
|
30
19
|
export { ControlBox } from './components/ControlBox/ControlBox';
|
|
31
20
|
export { CountryFlag } from './components/CountryFlag/CountryFlag';
|
|
32
21
|
export { Decorate } from './components/Decorate/Decorate';
|
|
33
22
|
export { Dot } from './components/Dot/Dot';
|
|
34
|
-
export { Flyout } from './components/Flyout/Flyout';
|
|
23
|
+
export { Flyout, FLYOUT_OUTLET_ID } from './components/Flyout/Flyout';
|
|
35
24
|
export { Icon } from './components/Icon/Icon';
|
|
36
25
|
export { Indicator } from './components/Indicator/Indicator';
|
|
37
26
|
export { InfoPanel } from './components/InfoPanel/InfoPanel';
|
|
@@ -50,7 +39,7 @@ export { VirtualScrollable } from './components/Layout/Scrollable/VirtualScrolla
|
|
|
50
39
|
export { Loaf } from './components/Loaf/Loaf';
|
|
51
40
|
export { Modal } from './components/Modal/Modal';
|
|
52
41
|
export { NavList } from './components/NavList/NavList';
|
|
53
|
-
export { Overlay } from './components/Overlay/Overlay';
|
|
42
|
+
export { Overlay, OVERLAY_OUTLET_ID } from './components/Overlay/Overlay';
|
|
54
43
|
export { Popover } from './components/Popover/Popover';
|
|
55
44
|
export { PremiumBadge } from './components/PremiumBadge/PremiumBadge';
|
|
56
45
|
export { Prose } from './components/Prose/Prose';
|
|
@@ -64,8 +53,10 @@ export { Switch } from './components/Switch/Switch';
|
|
|
64
53
|
export { Tabular } from './components/Tabular/Tabular';
|
|
65
54
|
export { Text, TextBlock } from './components/Text/Text';
|
|
66
55
|
export { Textarea } from './components/Textarea/Textarea';
|
|
67
|
-
export { Title } from './components/Title/Title';
|
|
68
|
-
export {
|
|
56
|
+
export { Title, TITLE_OUTLET_ID } from './components/Title/Title';
|
|
57
|
+
export { InputDropzone } from './components/InputDropzone/InputDropzone';
|
|
58
|
+
export type { InputDropzoneProps, FileWithPath } from './components/InputDropzone/InputDropzone';
|
|
59
|
+
export { Icons, BrandIcon } from './style-guide/Icons/Icons';
|
|
69
60
|
export { OnScreenSensor } from './components/OnScreenSensor';
|
|
70
61
|
export { ui } from './components/ui';
|
|
71
62
|
export { Symbols } from './components/Symbols';
|
package/dist/main.js
CHANGED
|
@@ -1,124 +1,147 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { getValue as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
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 { B as
|
|
56
|
-
import { OnScreenSensor as
|
|
57
|
-
import { ui as
|
|
58
|
-
import { Symbols as
|
|
59
|
-
const I = {
|
|
60
|
-
clsx: o,
|
|
61
|
-
getValue: t,
|
|
62
|
-
mergeRefs: f,
|
|
63
|
-
functional: r,
|
|
64
|
-
hooks: e,
|
|
65
|
-
links: m,
|
|
66
|
-
math: p,
|
|
67
|
-
outlet: x,
|
|
68
|
-
string: a
|
|
69
|
-
};
|
|
1
|
+
import { mergeRefs as e } from "./utils/mergeRefs.js";
|
|
2
|
+
import { clsx as p } from "./utils/clsx.js";
|
|
3
|
+
import { getValue as m } from "./utils/getValue.js";
|
|
4
|
+
import { useDynamicRef as a, useGlobalKeyboardEvent as n, useInstance as l, useKeyboardClose as i, useOutlet as s, useWindowResize as u } from "./utils/hooks.js";
|
|
5
|
+
import { identity as d, invoke as I, noop as T, returnFalse as L, returnTrue as S } from "./utils/functional.js";
|
|
6
|
+
import { Linkify as B, defaultLinkReplacer as k, defaultLinkReplacerx as R, isExternalUrl as O, linkify as g, linkifyx as D, matchLinkNodes as b, matchLinks as h } from "./utils/links.js";
|
|
7
|
+
import { clamp as E, clamp01 as P } from "./utils/math.js";
|
|
8
|
+
import { isFalseString as v, isTrueString as F, normalizeSlashes as U, replaceRange as A, splitByIndices as z, unicodeCharAt as K } from "./utils/string.js";
|
|
9
|
+
import { Checkbox as w } from "./components/Checkbox/Checkbox.js";
|
|
10
|
+
import { Button as Y } from "./components/Button/Button.js";
|
|
11
|
+
import { LinkButton as M } from "./components/Button/LinkButton.js";
|
|
12
|
+
import { ButtonBar as j } from "./components/Button/ButtonBar.js";
|
|
13
|
+
import { Avatar as H } from "./components/Avatar/Avatar.js";
|
|
14
|
+
import { BACKDROP_OUTLET_ID as Q, BackdropPortal as X } from "./components/BackdropPortal/BackdropPortal.js";
|
|
15
|
+
import { Badge as $ } from "./components/Badge/Badge.js";
|
|
16
|
+
import { ControlBox as or } from "./components/ControlBox/ControlBox.js";
|
|
17
|
+
import { CountryFlag as tr } from "./components/CountryFlag/CountryFlag.js";
|
|
18
|
+
import { Decorate as xr } from "./components/Decorate/Decorate.js";
|
|
19
|
+
import { Dot as fr } from "./components/Dot/Dot.js";
|
|
20
|
+
import { FLYOUT_OUTLET_ID as nr, Flyout as lr } from "./components/Flyout/Flyout.js";
|
|
21
|
+
import { Icon as sr } from "./components/Icon/Icon.js";
|
|
22
|
+
import { Indicator as cr } from "./components/Indicator/Indicator.js";
|
|
23
|
+
import { InfoPanel as Ir } from "./components/InfoPanel/InfoPanel.js";
|
|
24
|
+
import { Input as Lr } from "./components/Input/Input.js";
|
|
25
|
+
import { RichInput as yr } from "./components/Input/RichInput.js";
|
|
26
|
+
import { Interactive as kr } from "./components/Interactive/Interactive.js";
|
|
27
|
+
import { Island as Or } from "./components/Island/Island.js";
|
|
28
|
+
import { Box as Dr } from "./components/Layout/Box/Box.js";
|
|
29
|
+
import { Center as hr } from "./components/Layout/Center/Center.js";
|
|
30
|
+
import { Flex as Er } from "./components/Layout/Flex/Flex.js";
|
|
31
|
+
import { FlexRestricter as _r } from "./components/Layout/Flex/FlexRestricter.js";
|
|
32
|
+
import { Pad as Fr } from "./components/Layout/Pad/Pad.js";
|
|
33
|
+
import { Page as Ar } from "./components/Layout/Page/Page.js";
|
|
34
|
+
import { Scrollable as Kr } from "./components/Layout/Scrollable/Scrollable.js";
|
|
35
|
+
import { VirtualScrollable as wr } from "./components/Layout/Scrollable/VirtualScrollable.js";
|
|
36
|
+
import { Loaf as Yr } from "./components/Loaf/Loaf.js";
|
|
37
|
+
import { Modal as Mr } from "./components/Modal/Modal.js";
|
|
38
|
+
import { NavList as jr } from "./components/NavList/NavList.js";
|
|
39
|
+
import { OVERLAY_OUTLET_ID as Hr, Overlay as Jr } from "./components/Overlay/Overlay.js";
|
|
40
|
+
import { Popover as Xr } from "./components/Popover/Popover.js";
|
|
41
|
+
import { PremiumBadge as $r } from "./components/PremiumBadge/PremiumBadge.js";
|
|
42
|
+
import { Prose as oo } from "./components/Prose/Prose.js";
|
|
43
|
+
import { Radio as to } from "./components/Radio/Radio.js";
|
|
44
|
+
import { Select as xo } from "./components/Select/Select.js";
|
|
45
|
+
import { Separator as fo } from "./components/Separator/Separator.js";
|
|
46
|
+
import { Shroud as no } from "./components/Shroud/Shroud.js";
|
|
47
|
+
import { Spacer as io } from "./components/Spacer/Spacer.js";
|
|
48
|
+
import { Style as uo, useContextualStyle as co } from "./components/Style/Style.js";
|
|
49
|
+
import { Switch as To } from "./components/Switch/Switch.js";
|
|
50
|
+
import { Tabular as So } from "./components/Tabular/Tabular.js";
|
|
51
|
+
import { Text as Bo, TextBlock as ko } from "./components/Text/Text.js";
|
|
52
|
+
import { Textarea as Oo } from "./components/Textarea/Textarea.js";
|
|
53
|
+
import { TITLE_OUTLET_ID as Do, Title as bo } from "./components/Title/Title.js";
|
|
54
|
+
import { InputDropzone as Co } from "./components/InputDropzone/InputDropzone.js";
|
|
55
|
+
import { B as Po, I as _o } from "./Icons-BlBKvJD8.js";
|
|
56
|
+
import { OnScreenSensor as Fo } from "./components/OnScreenSensor.js";
|
|
57
|
+
import { ui as Ao } from "./components/ui.js";
|
|
58
|
+
import { Symbols as Ko } from "./components/Symbols.js";
|
|
70
59
|
export {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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
|
-
|
|
60
|
+
H as Avatar,
|
|
61
|
+
Q as BACKDROP_OUTLET_ID,
|
|
62
|
+
X as BackdropPortal,
|
|
63
|
+
$ as Badge,
|
|
64
|
+
Dr as Box,
|
|
65
|
+
Po as BrandIcon,
|
|
66
|
+
Y as Button,
|
|
67
|
+
j as ButtonBar,
|
|
68
|
+
hr as Center,
|
|
69
|
+
w as Checkbox,
|
|
70
|
+
or as ControlBox,
|
|
71
|
+
tr as CountryFlag,
|
|
72
|
+
xr as Decorate,
|
|
73
|
+
fr as Dot,
|
|
74
|
+
nr as FLYOUT_OUTLET_ID,
|
|
75
|
+
Er as Flex,
|
|
76
|
+
_r as FlexRestricter,
|
|
77
|
+
lr as Flyout,
|
|
78
|
+
sr as Icon,
|
|
79
|
+
_o as Icons,
|
|
80
|
+
cr as Indicator,
|
|
81
|
+
Ir as InfoPanel,
|
|
82
|
+
Lr as Input,
|
|
83
|
+
Co as InputDropzone,
|
|
84
|
+
kr as Interactive,
|
|
85
|
+
Or as Island,
|
|
86
|
+
M as LinkButton,
|
|
87
|
+
B as Linkify,
|
|
88
|
+
Yr as Loaf,
|
|
89
|
+
Mr as Modal,
|
|
90
|
+
jr as NavList,
|
|
91
|
+
Hr as OVERLAY_OUTLET_ID,
|
|
92
|
+
Fo as OnScreenSensor,
|
|
93
|
+
Jr as Overlay,
|
|
94
|
+
Fr as Pad,
|
|
95
|
+
Ar as Page,
|
|
96
|
+
Xr as Popover,
|
|
97
|
+
$r as PremiumBadge,
|
|
98
|
+
oo as Prose,
|
|
99
|
+
to as Radio,
|
|
100
|
+
yr as RichInput,
|
|
101
|
+
Kr as Scrollable,
|
|
102
|
+
xo as Select,
|
|
103
|
+
fo as Separator,
|
|
104
|
+
no as Shroud,
|
|
105
|
+
io as Spacer,
|
|
106
|
+
uo as Style,
|
|
107
|
+
To as Switch,
|
|
108
|
+
Ko as Symbols,
|
|
109
|
+
Do as TITLE_OUTLET_ID,
|
|
110
|
+
So as Tabular,
|
|
111
|
+
Bo as Text,
|
|
112
|
+
ko as TextBlock,
|
|
113
|
+
Oo as Textarea,
|
|
114
|
+
bo as Title,
|
|
115
|
+
wr as VirtualScrollable,
|
|
116
|
+
E as clamp,
|
|
117
|
+
P as clamp01,
|
|
118
|
+
p as clsx,
|
|
119
|
+
k as defaultLinkReplacer,
|
|
120
|
+
R as defaultLinkReplacerx,
|
|
121
|
+
m as getValue,
|
|
122
|
+
d as identity,
|
|
123
|
+
I as invoke,
|
|
124
|
+
O as isExternalUrl,
|
|
125
|
+
v as isFalseString,
|
|
126
|
+
F as isTrueString,
|
|
127
|
+
g as linkify,
|
|
128
|
+
D as linkifyx,
|
|
129
|
+
b as matchLinkNodes,
|
|
130
|
+
h as matchLinks,
|
|
131
|
+
e as mergeRefs,
|
|
132
|
+
T as noop,
|
|
133
|
+
U as normalizeSlashes,
|
|
134
|
+
A as replaceRange,
|
|
135
|
+
L as returnFalse,
|
|
136
|
+
S as returnTrue,
|
|
137
|
+
z as splitByIndices,
|
|
138
|
+
Ao as ui,
|
|
139
|
+
K as unicodeCharAt,
|
|
140
|
+
co as useContextualStyle,
|
|
141
|
+
a as useDynamicRef,
|
|
142
|
+
n as useGlobalKeyboardEvent,
|
|
143
|
+
l as useInstance,
|
|
144
|
+
i as useKeyboardClose,
|
|
145
|
+
s as useOutlet,
|
|
146
|
+
u as useWindowResize
|
|
124
147
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
2
|
import { useState as g } from "react";
|
|
3
|
-
import { _ as p } from "./tslib.es6-
|
|
3
|
+
import { _ as p } from "./tslib.es6-CBKHJX9H.js";
|
|
4
4
|
function o(e, u) {
|
|
5
5
|
return typeof e == "function" ? e(u) : e && (e.current = u), e;
|
|
6
6
|
}
|
|
@@ -112,7 +112,7 @@ function w(e) {
|
|
|
112
112
|
return u.options = p({ async: !0, ssr: !1 }, e), u;
|
|
113
113
|
}
|
|
114
114
|
export {
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
w as a,
|
|
116
|
+
k as c,
|
|
117
117
|
b as u
|
|
118
118
|
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { jsxs as a, Fragment as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
const r = [
|
|
3
|
+
{
|
|
4
|
+
name: "$bg",
|
|
5
|
+
colorValue: "#161923"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
name: "$fg",
|
|
9
|
+
colorValue: "#fffff0"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
name: "primary",
|
|
13
|
+
colorValue: "#e50448"
|
|
14
|
+
},
|
|
15
|
+
// #f50551 darkened by 10%
|
|
16
|
+
{
|
|
17
|
+
name: ".color-1",
|
|
18
|
+
colorValue: "#ff6659"
|
|
19
|
+
},
|
|
20
|
+
// #F44336 lightened by 30%
|
|
21
|
+
{
|
|
22
|
+
name: ".color-2",
|
|
23
|
+
colorValue: "#83e176"
|
|
24
|
+
},
|
|
25
|
+
// #4CAF50 lightened by 30%
|
|
26
|
+
{
|
|
27
|
+
name: ".color-3",
|
|
28
|
+
colorValue: "#ffff99"
|
|
29
|
+
},
|
|
30
|
+
// #FFEB3B lightened by 30%
|
|
31
|
+
{
|
|
32
|
+
name: ".color-4",
|
|
33
|
+
colorValue: "#8acfff"
|
|
34
|
+
},
|
|
35
|
+
// #42A5F5 lightened by 30%
|
|
36
|
+
{
|
|
37
|
+
name: ".color-5",
|
|
38
|
+
colorValue: "#80d4ff"
|
|
39
|
+
},
|
|
40
|
+
// #03A9F4 lightened by 30%
|
|
41
|
+
{
|
|
42
|
+
name: ".color-6",
|
|
43
|
+
colorValue: "#e1a3e0"
|
|
44
|
+
},
|
|
45
|
+
// #9C27B0 lightened by 30%
|
|
46
|
+
{
|
|
47
|
+
name: ".color-8",
|
|
48
|
+
colorValue: "#ff8a66"
|
|
49
|
+
},
|
|
50
|
+
// #FF5722 lightened by 30%
|
|
51
|
+
{
|
|
52
|
+
name: ".color-9",
|
|
53
|
+
colorValue: "#cccccc"
|
|
54
|
+
}
|
|
55
|
+
// #9E9E9E lightened by 30%
|
|
56
|
+
], i = function() {
|
|
57
|
+
return /* @__PURE__ */ a(l, { children: [
|
|
58
|
+
/* @__PURE__ */ e("h1", { children: " Dark Theme " }),
|
|
59
|
+
/* @__PURE__ */ e(
|
|
60
|
+
"div",
|
|
61
|
+
{
|
|
62
|
+
style: {
|
|
63
|
+
display: "grid",
|
|
64
|
+
gridTemplateColumns: "repeat(auto-fill, minmax(100px, 1fr))",
|
|
65
|
+
gap: "20px",
|
|
66
|
+
padding: "20px"
|
|
67
|
+
},
|
|
68
|
+
children: r.map((o) => /* @__PURE__ */ e(
|
|
69
|
+
"div",
|
|
70
|
+
{
|
|
71
|
+
style: {
|
|
72
|
+
backgroundColor: o.colorValue,
|
|
73
|
+
color: "#FFF",
|
|
74
|
+
display: "flex",
|
|
75
|
+
flexDirection: "column",
|
|
76
|
+
justifyContent: "center",
|
|
77
|
+
alignItems: "center",
|
|
78
|
+
height: "100px",
|
|
79
|
+
borderRadius: "8px",
|
|
80
|
+
boxShadow: "0 4px 8px rgba(0, 0, 0, 0.1)",
|
|
81
|
+
padding: "10px",
|
|
82
|
+
position: "relative"
|
|
83
|
+
},
|
|
84
|
+
children: /* @__PURE__ */ a(
|
|
85
|
+
"div",
|
|
86
|
+
{
|
|
87
|
+
style: {
|
|
88
|
+
position: "absolute",
|
|
89
|
+
bottom: "-50px",
|
|
90
|
+
textAlign: "center",
|
|
91
|
+
padding: "5px 10px",
|
|
92
|
+
color: "#FFF"
|
|
93
|
+
},
|
|
94
|
+
children: [
|
|
95
|
+
/* @__PURE__ */ e("span", { children: o.name }),
|
|
96
|
+
/* @__PURE__ */ e("br", {}),
|
|
97
|
+
/* @__PURE__ */ e("span", { children: o.colorValue })
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
)
|
|
101
|
+
},
|
|
102
|
+
o.name
|
|
103
|
+
))
|
|
104
|
+
}
|
|
105
|
+
)
|
|
106
|
+
] });
|
|
107
|
+
};
|
|
108
|
+
export {
|
|
109
|
+
i as default
|
|
110
|
+
};
|