@cfx-dev/ui-components 0.0.19 → 0.0.20
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.js +4 -4
- 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.js +21 -21
- 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.js +10 -10
- package/dist/components/Select/Select.js +652 -663
- package/dist/components/Shroud/Shroud.js +16 -16
- 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.js +2 -2
- 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 +12 -22
- package/dist/main.js +143 -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 -0
- package/dist/utils/hooks.js +100 -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,25 +1,13 @@
|
|
|
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, useOutletAfter, useOutletBefore, } 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
|
-
clsx: typeof clsx;
|
|
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';
|
|
23
11
|
export { Checkbox } from './components/Checkbox/Checkbox';
|
|
24
12
|
export { Button } from './components/Button/Button';
|
|
25
13
|
export { LinkButton } from './components/Button/LinkButton';
|
|
@@ -65,7 +53,9 @@ export { Tabular } from './components/Tabular/Tabular';
|
|
|
65
53
|
export { Text, TextBlock } from './components/Text/Text';
|
|
66
54
|
export { Textarea } from './components/Textarea/Textarea';
|
|
67
55
|
export { Title } from './components/Title/Title';
|
|
68
|
-
export {
|
|
56
|
+
export { InputDropzone } from './components/InputDropzone/InputDropzone';
|
|
57
|
+
export type { InputDropzoneProps, FileWithPath } from './components/InputDropzone/InputDropzone';
|
|
58
|
+
export { Icons, BrandIcon } from './style-guide/Icons/Icons';
|
|
69
59
|
export { OnScreenSensor } from './components/OnScreenSensor';
|
|
70
60
|
export { ui } from './components/ui';
|
|
71
61
|
export { Symbols } from './components/Symbols';
|
package/dist/main.js
CHANGED
|
@@ -1,124 +1,145 @@
|
|
|
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 f } from "./utils/getValue.js";
|
|
4
|
+
import { useDynamicRef as a, useGlobalKeyboardEvent as l, useInstance as n, useKeyboardClose as i, useOutlet as s, useOutletAfter as u, useOutletBefore as c, useWindowResize as d } from "./utils/hooks.js";
|
|
5
|
+
import { identity as y, invoke as B, noop as I, returnFalse as k, returnTrue as g } from "./utils/functional.js";
|
|
6
|
+
import { Linkify as b, defaultLinkReplacer as h, defaultLinkReplacerx as L, isExternalUrl as v, linkify as C, linkifyx as P, matchLinkNodes as T, matchLinks as F } from "./utils/links.js";
|
|
7
|
+
import { clamp as D, clamp01 as z } from "./utils/math.js";
|
|
8
|
+
import { isFalseString as w, isTrueString as E, normalizeSlashes as K, replaceRange as N, splitByIndices as V, unicodeCharAt as G } from "./utils/string.js";
|
|
9
|
+
import { Checkbox as U } from "./components/Checkbox/Checkbox.js";
|
|
10
|
+
import { Button as j } from "./components/Button/Button.js";
|
|
11
|
+
import { LinkButton as H } from "./components/Button/LinkButton.js";
|
|
12
|
+
import { ButtonBar as Q } from "./components/Button/ButtonBar.js";
|
|
13
|
+
import { Avatar as Y } from "./components/Avatar/Avatar.js";
|
|
14
|
+
import { BackdropPortal as _ } from "./components/BackdropPortal/BackdropPortal.js";
|
|
15
|
+
import { Badge as rr } from "./components/Badge/Badge.js";
|
|
16
|
+
import { ControlBox as er } from "./components/ControlBox/ControlBox.js";
|
|
17
|
+
import { CountryFlag as pr } from "./components/CountryFlag/CountryFlag.js";
|
|
18
|
+
import { Decorate as fr } from "./components/Decorate/Decorate.js";
|
|
19
|
+
import { Dot as ar } from "./components/Dot/Dot.js";
|
|
20
|
+
import { Flyout as nr } 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 Sr } from "./components/InfoPanel/InfoPanel.js";
|
|
24
|
+
import { Input as Br } from "./components/Input/Input.js";
|
|
25
|
+
import { RichInput as kr } from "./components/Input/RichInput.js";
|
|
26
|
+
import { Interactive as Rr } from "./components/Interactive/Interactive.js";
|
|
27
|
+
import { Island as hr } from "./components/Island/Island.js";
|
|
28
|
+
import { Box as vr } from "./components/Layout/Box/Box.js";
|
|
29
|
+
import { Center as Pr } from "./components/Layout/Center/Center.js";
|
|
30
|
+
import { Flex as Fr } from "./components/Layout/Flex/Flex.js";
|
|
31
|
+
import { FlexRestricter as Dr } from "./components/Layout/Flex/FlexRestricter.js";
|
|
32
|
+
import { Pad as Ar } from "./components/Layout/Pad/Pad.js";
|
|
33
|
+
import { Page as Er } from "./components/Layout/Page/Page.js";
|
|
34
|
+
import { Scrollable as Nr } from "./components/Layout/Scrollable/Scrollable.js";
|
|
35
|
+
import { VirtualScrollable as Gr } from "./components/Layout/Scrollable/VirtualScrollable.js";
|
|
36
|
+
import { Loaf as Ur } from "./components/Loaf/Loaf.js";
|
|
37
|
+
import { Modal as jr } from "./components/Modal/Modal.js";
|
|
38
|
+
import { NavList as Hr } from "./components/NavList/NavList.js";
|
|
39
|
+
import { Overlay as Qr } from "./components/Overlay/Overlay.js";
|
|
40
|
+
import { Popover as Yr } from "./components/Popover/Popover.js";
|
|
41
|
+
import { PremiumBadge as _r } from "./components/PremiumBadge/PremiumBadge.js";
|
|
42
|
+
import { Prose as ro } from "./components/Prose/Prose.js";
|
|
43
|
+
import { Radio as eo } from "./components/Radio/Radio.js";
|
|
44
|
+
import { Select as po } from "./components/Select/Select.js";
|
|
45
|
+
import { Separator as fo } from "./components/Separator/Separator.js";
|
|
46
|
+
import { Shroud as ao } from "./components/Shroud/Shroud.js";
|
|
47
|
+
import { Spacer as no } from "./components/Spacer/Spacer.js";
|
|
48
|
+
import { Style as so, useContextualStyle as uo } from "./components/Style/Style.js";
|
|
49
|
+
import { Switch as So } from "./components/Switch/Switch.js";
|
|
50
|
+
import { Tabular as Bo } from "./components/Tabular/Tabular.js";
|
|
51
|
+
import { Text as ko, TextBlock as go } from "./components/Text/Text.js";
|
|
52
|
+
import { Textarea as bo } from "./components/Textarea/Textarea.js";
|
|
53
|
+
import { Title as Lo } from "./components/Title/Title.js";
|
|
54
|
+
import { InputDropzone as Co } from "./components/InputDropzone/InputDropzone.js";
|
|
55
|
+
import { B as To, I as Fo } from "./Icons-BlBKvJD8.js";
|
|
56
|
+
import { OnScreenSensor as Do } from "./components/OnScreenSensor.js";
|
|
57
|
+
import { ui as Ao } from "./components/ui.js";
|
|
58
|
+
import { Symbols as Eo } 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
|
+
Y as Avatar,
|
|
61
|
+
_ as BackdropPortal,
|
|
62
|
+
rr as Badge,
|
|
63
|
+
vr as Box,
|
|
64
|
+
To as BrandIcon,
|
|
65
|
+
j as Button,
|
|
66
|
+
Q as ButtonBar,
|
|
67
|
+
Pr as Center,
|
|
68
|
+
U as Checkbox,
|
|
69
|
+
er as ControlBox,
|
|
70
|
+
pr as CountryFlag,
|
|
71
|
+
fr as Decorate,
|
|
72
|
+
ar as Dot,
|
|
73
|
+
Fr as Flex,
|
|
74
|
+
Dr as FlexRestricter,
|
|
75
|
+
nr as Flyout,
|
|
76
|
+
sr as Icon,
|
|
77
|
+
Fo as Icons,
|
|
78
|
+
cr as Indicator,
|
|
79
|
+
Sr as InfoPanel,
|
|
80
|
+
Br as Input,
|
|
81
|
+
Co as InputDropzone,
|
|
82
|
+
Rr as Interactive,
|
|
83
|
+
hr as Island,
|
|
84
|
+
H as LinkButton,
|
|
85
|
+
b as Linkify,
|
|
86
|
+
Ur as Loaf,
|
|
87
|
+
jr as Modal,
|
|
88
|
+
Hr as NavList,
|
|
89
|
+
Do as OnScreenSensor,
|
|
90
|
+
Qr as Overlay,
|
|
91
|
+
Ar as Pad,
|
|
92
|
+
Er as Page,
|
|
93
|
+
Yr as Popover,
|
|
94
|
+
_r as PremiumBadge,
|
|
95
|
+
ro as Prose,
|
|
96
|
+
eo as Radio,
|
|
97
|
+
kr as RichInput,
|
|
98
|
+
Nr as Scrollable,
|
|
99
|
+
po as Select,
|
|
100
|
+
fo as Separator,
|
|
101
|
+
ao as Shroud,
|
|
102
|
+
no as Spacer,
|
|
103
|
+
so as Style,
|
|
104
|
+
So as Switch,
|
|
105
|
+
Eo as Symbols,
|
|
106
|
+
Bo as Tabular,
|
|
107
|
+
ko as Text,
|
|
108
|
+
go as TextBlock,
|
|
109
|
+
bo as Textarea,
|
|
110
|
+
Lo as Title,
|
|
111
|
+
Gr as VirtualScrollable,
|
|
112
|
+
D as clamp,
|
|
113
|
+
z as clamp01,
|
|
114
|
+
p as clsx,
|
|
115
|
+
h as defaultLinkReplacer,
|
|
116
|
+
L as defaultLinkReplacerx,
|
|
117
|
+
f as getValue,
|
|
118
|
+
y as identity,
|
|
119
|
+
B as invoke,
|
|
120
|
+
v as isExternalUrl,
|
|
121
|
+
w as isFalseString,
|
|
122
|
+
E as isTrueString,
|
|
123
|
+
C as linkify,
|
|
124
|
+
P as linkifyx,
|
|
125
|
+
T as matchLinkNodes,
|
|
126
|
+
F as matchLinks,
|
|
127
|
+
e as mergeRefs,
|
|
128
|
+
I as noop,
|
|
129
|
+
K as normalizeSlashes,
|
|
130
|
+
N as replaceRange,
|
|
131
|
+
k as returnFalse,
|
|
132
|
+
g as returnTrue,
|
|
133
|
+
V as splitByIndices,
|
|
134
|
+
Ao as ui,
|
|
135
|
+
G as unicodeCharAt,
|
|
136
|
+
uo as useContextualStyle,
|
|
137
|
+
a as useDynamicRef,
|
|
138
|
+
l as useGlobalKeyboardEvent,
|
|
139
|
+
n as useInstance,
|
|
140
|
+
i as useKeyboardClose,
|
|
141
|
+
s as useOutlet,
|
|
142
|
+
u as useOutletAfter,
|
|
143
|
+
c as useOutletBefore,
|
|
144
|
+
d as useWindowResize
|
|
124
145
|
};
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { jsxs as l, Fragment as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
const r = [
|
|
3
|
+
{
|
|
4
|
+
name: "$bg",
|
|
5
|
+
colorValue: "#ffffff"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
name: "$fg",
|
|
9
|
+
colorValue: "#161923"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
name: ".color-1",
|
|
13
|
+
colorValue: "#b71c1c"
|
|
14
|
+
},
|
|
15
|
+
// darken(#F44336, 30%)
|
|
16
|
+
{
|
|
17
|
+
name: ".color-2",
|
|
18
|
+
colorValue: "#2e7d32"
|
|
19
|
+
},
|
|
20
|
+
// darken(#4CAF50, 30%)
|
|
21
|
+
{
|
|
22
|
+
name: ".color-3",
|
|
23
|
+
colorValue: "#c6ff00"
|
|
24
|
+
},
|
|
25
|
+
// darken(#FFEB3B, 30%)
|
|
26
|
+
{
|
|
27
|
+
name: ".color-4",
|
|
28
|
+
colorValue: "#2962ff"
|
|
29
|
+
},
|
|
30
|
+
// darken(#42A5F5, 30%)
|
|
31
|
+
{
|
|
32
|
+
name: ".color-5",
|
|
33
|
+
colorValue: "#0277bd"
|
|
34
|
+
},
|
|
35
|
+
// darken(#03A9F4, 30%)
|
|
36
|
+
{
|
|
37
|
+
name: ".color-6",
|
|
38
|
+
colorValue: "#6a1b9a"
|
|
39
|
+
},
|
|
40
|
+
// darken(#9C27B0, 30%)
|
|
41
|
+
{
|
|
42
|
+
name: ".color-8",
|
|
43
|
+
colorValue: "#d84315"
|
|
44
|
+
},
|
|
45
|
+
// darken(#FF5722, 30%)
|
|
46
|
+
{
|
|
47
|
+
name: ".color-9",
|
|
48
|
+
colorValue: "#6d6d6d"
|
|
49
|
+
}
|
|
50
|
+
// darken(#9E9E9E, 30%)
|
|
51
|
+
], i = function() {
|
|
52
|
+
return /* @__PURE__ */ l(a, { children: [
|
|
53
|
+
/* @__PURE__ */ e("h1", { children: " Light Theme " }),
|
|
54
|
+
/* @__PURE__ */ e(
|
|
55
|
+
"div",
|
|
56
|
+
{
|
|
57
|
+
style: {
|
|
58
|
+
display: "grid",
|
|
59
|
+
gridTemplateColumns: "repeat(auto-fill, minmax(100px, 1fr))",
|
|
60
|
+
gap: "20px",
|
|
61
|
+
padding: "20px"
|
|
62
|
+
},
|
|
63
|
+
children: r.map((o) => /* @__PURE__ */ e(
|
|
64
|
+
"div",
|
|
65
|
+
{
|
|
66
|
+
style: {
|
|
67
|
+
backgroundColor: o.colorValue,
|
|
68
|
+
color: "#FFF",
|
|
69
|
+
display: "flex",
|
|
70
|
+
flexDirection: "column",
|
|
71
|
+
justifyContent: "center",
|
|
72
|
+
alignItems: "center",
|
|
73
|
+
height: "100px",
|
|
74
|
+
borderRadius: "8px",
|
|
75
|
+
boxShadow: "0 4px 8px rgba(0, 0, 0, 0.1)",
|
|
76
|
+
padding: "10px",
|
|
77
|
+
position: "relative"
|
|
78
|
+
},
|
|
79
|
+
children: /* @__PURE__ */ l(
|
|
80
|
+
"div",
|
|
81
|
+
{
|
|
82
|
+
style: {
|
|
83
|
+
position: "absolute",
|
|
84
|
+
bottom: "-50px",
|
|
85
|
+
textAlign: "center",
|
|
86
|
+
padding: "5px 10px",
|
|
87
|
+
color: "#FFF"
|
|
88
|
+
},
|
|
89
|
+
children: [
|
|
90
|
+
/* @__PURE__ */ e("span", { children: o.name }),
|
|
91
|
+
/* @__PURE__ */ e("br", {}),
|
|
92
|
+
/* @__PURE__ */ e("span", { children: o.colorValue })
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
)
|
|
96
|
+
},
|
|
97
|
+
o.name
|
|
98
|
+
))
|
|
99
|
+
}
|
|
100
|
+
)
|
|
101
|
+
] });
|
|
102
|
+
};
|
|
103
|
+
export {
|
|
104
|
+
i as default
|
|
105
|
+
};
|