@cfx-dev/ui-components 2.0.0 → 2.0.2
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/Accordion.css +1 -0
- package/dist/assets/global.css +1 -1
- package/dist/components/Accordion/Accordion.d.ts +26 -0
- package/dist/components/Accordion/Accordion.js +120 -0
- package/dist/components/Accordion/AccordionShowcase.d.ts +5 -0
- package/dist/components/Accordion/AccordionShowcase.js +60 -0
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Accordion/index.js +7 -0
- package/dist/components/ClipboardButton/index.d.ts +2 -0
- package/dist/components/ClipboardButton/index.js +5 -1
- package/dist/main.d.ts +5 -0
- package/dist/main.js +157 -147
- package/dist/styles-scss/global.scss +1 -0
- package/dist/styles-scss/tokens.scss +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React, PropsWithChildren } from 'react';
|
|
2
|
+
import { IconName } from '../Icon';
|
|
3
|
+
|
|
4
|
+
export interface AccordionContextProps {
|
|
5
|
+
openItems: Set<string>;
|
|
6
|
+
toggleItem: (id: string) => void;
|
|
7
|
+
}
|
|
8
|
+
export interface AccordionProps {
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const Accordion: React.FC<PropsWithChildren<AccordionProps>>;
|
|
12
|
+
export declare const AccordionItem: React.FC<React.PropsWithChildren<{
|
|
13
|
+
id: string;
|
|
14
|
+
}>>;
|
|
15
|
+
export declare const AccordionHeader: React.FC<React.PropsWithChildren>;
|
|
16
|
+
interface AccordionTriggerProps {
|
|
17
|
+
id: string;
|
|
18
|
+
text: string;
|
|
19
|
+
iconLeft?: IconName;
|
|
20
|
+
}
|
|
21
|
+
export declare const AccordionTrigger: React.FC<AccordionTriggerProps>;
|
|
22
|
+
interface AccordionContentProps {
|
|
23
|
+
id: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const AccordionContent: React.FC<React.PropsWithChildren<AccordionContentProps>>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { jsx as e, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import w, { createContext as D, useState as p, useContext as A, useEffect as U } from "react";
|
|
3
|
+
import { Icon as C } from "../Icon/Icon.js";
|
|
4
|
+
import { Flex as x } from "../Layout/Flex/Flex.js";
|
|
5
|
+
import { Text as I } from "../Text/Text.js";
|
|
6
|
+
import { clsx as u } from "../../utils/clsx.js";
|
|
7
|
+
import '../../assets/Accordion.css';const b = "_root_44hi4_1", S = "_item_44hi4_5", F = "_header_44hi4_5", N = "_triggerContainer_44hi4_10", y = "_iconFlip_44hi4_23", T = "_iconUp_44hi4_26", R = "_iconDown_44hi4_29", $ = "_iconLeft_44hi4_32", k = "_iconRight_44hi4_36", E = "_content_44hi4_49", L = "_open_44hi4_56", O = "_iconSlideUp_44hi4_1", j = "_iconSlideDown_44hi4_1", o = {
|
|
8
|
+
root: b,
|
|
9
|
+
item: S,
|
|
10
|
+
header: F,
|
|
11
|
+
triggerContainer: N,
|
|
12
|
+
iconFlip: y,
|
|
13
|
+
iconUp: T,
|
|
14
|
+
iconDown: R,
|
|
15
|
+
iconLeft: $,
|
|
16
|
+
iconRight: k,
|
|
17
|
+
content: E,
|
|
18
|
+
open: L,
|
|
19
|
+
iconSlideUp: O,
|
|
20
|
+
iconSlideDown: j
|
|
21
|
+
}, g = D(void 0), q = function({
|
|
22
|
+
children: t,
|
|
23
|
+
className: n
|
|
24
|
+
}) {
|
|
25
|
+
const [c, s] = p(/* @__PURE__ */ new Set()), a = w.useCallback((i) => {
|
|
26
|
+
s((m) => {
|
|
27
|
+
const r = new Set(m);
|
|
28
|
+
return r.has(i) ? r.delete(i) : r.add(i), r;
|
|
29
|
+
});
|
|
30
|
+
}, []), h = w.useMemo(() => ({
|
|
31
|
+
openItems: c,
|
|
32
|
+
toggleItem: a
|
|
33
|
+
}), [c, a]);
|
|
34
|
+
return /* @__PURE__ */ e(g.Provider, { value: h, children: /* @__PURE__ */ e("div", { className: u(o.root, n), role: "presentation", children: t }) });
|
|
35
|
+
}, B = function({
|
|
36
|
+
children: t,
|
|
37
|
+
id: n
|
|
38
|
+
}) {
|
|
39
|
+
return /* @__PURE__ */ e("div", { className: o.item, id: n, role: "region", "aria-labelledby": `${n}-header`, children: t });
|
|
40
|
+
}, G = function({
|
|
41
|
+
children: t
|
|
42
|
+
}) {
|
|
43
|
+
return /* @__PURE__ */ e("div", { className: o.header, children: t });
|
|
44
|
+
}, J = function({
|
|
45
|
+
text: t,
|
|
46
|
+
id: n,
|
|
47
|
+
iconLeft: c
|
|
48
|
+
}) {
|
|
49
|
+
const s = A(g);
|
|
50
|
+
if (!s)
|
|
51
|
+
throw new Error("AccordionTrigger must be used within an Accordion");
|
|
52
|
+
const {
|
|
53
|
+
toggleItem: a,
|
|
54
|
+
openItems: h
|
|
55
|
+
} = s, i = h.has(n), [m, r] = p(!1), [_, v] = p(i ? "UpChevron" : "DownChevron");
|
|
56
|
+
return U(() => {
|
|
57
|
+
const d = setTimeout(() => {
|
|
58
|
+
v(i ? "UpChevron" : "DownChevron"), r(!1);
|
|
59
|
+
}, 300);
|
|
60
|
+
return r(!0), () => clearTimeout(d);
|
|
61
|
+
}, [i]), /* @__PURE__ */ f(
|
|
62
|
+
"div",
|
|
63
|
+
{
|
|
64
|
+
className: o.triggerContainer,
|
|
65
|
+
onClick: () => a(n),
|
|
66
|
+
onKeyDown: (d) => {
|
|
67
|
+
(d.key === "Enter" || d.key === " ") && a(n);
|
|
68
|
+
},
|
|
69
|
+
role: "button",
|
|
70
|
+
tabIndex: 0,
|
|
71
|
+
"aria-expanded": i,
|
|
72
|
+
"aria-controls": `${n}-content`,
|
|
73
|
+
id: `${n}-header`,
|
|
74
|
+
children: [
|
|
75
|
+
/* @__PURE__ */ f(x, { centered: !0, children: [
|
|
76
|
+
c && /* @__PURE__ */ e(C, { name: c, className: o.iconLeft }),
|
|
77
|
+
/* @__PURE__ */ e(I, { size: "xxsmall", children: t })
|
|
78
|
+
] }),
|
|
79
|
+
/* @__PURE__ */ e(x, { centered: !0, children: /* @__PURE__ */ e(
|
|
80
|
+
C,
|
|
81
|
+
{
|
|
82
|
+
className: u(o.iconRight, {
|
|
83
|
+
[o.iconFlip]: m,
|
|
84
|
+
[o.iconUp]: _ === "UpChevron",
|
|
85
|
+
[o.iconDown]: _ === "DownChevron"
|
|
86
|
+
}),
|
|
87
|
+
name: _
|
|
88
|
+
}
|
|
89
|
+
) })
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
}, Q = function({
|
|
94
|
+
children: t,
|
|
95
|
+
id: n
|
|
96
|
+
}) {
|
|
97
|
+
const c = A(g);
|
|
98
|
+
if (!c)
|
|
99
|
+
throw new Error("AccordionContent must be used within an Accordion");
|
|
100
|
+
const {
|
|
101
|
+
openItems: s
|
|
102
|
+
} = c;
|
|
103
|
+
return /* @__PURE__ */ e(
|
|
104
|
+
"div",
|
|
105
|
+
{
|
|
106
|
+
className: u(o.content, { [o.open]: s.has(n) }),
|
|
107
|
+
id: `${n}-content`,
|
|
108
|
+
role: "region",
|
|
109
|
+
"aria-labelledby": `${n}-header`,
|
|
110
|
+
children: /* @__PURE__ */ e(I, { color: "secondary", size: "xxsmall", children: t })
|
|
111
|
+
}
|
|
112
|
+
);
|
|
113
|
+
};
|
|
114
|
+
export {
|
|
115
|
+
q as Accordion,
|
|
116
|
+
Q as AccordionContent,
|
|
117
|
+
G as AccordionHeader,
|
|
118
|
+
B as AccordionItem,
|
|
119
|
+
J as AccordionTrigger
|
|
120
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import a from "react";
|
|
3
|
+
import { Flex as c } from "../Layout/Flex/Flex.js";
|
|
4
|
+
import { Text as d } from "../Text/Text.js";
|
|
5
|
+
import { Accordion as l, AccordionItem as i, AccordionHeader as o, AccordionTrigger as n, AccordionContent as r } from "./Accordion.js";
|
|
6
|
+
function h() {
|
|
7
|
+
return /* @__PURE__ */ e(c, { fullWidth: !0, vertical: !0, children: /* @__PURE__ */ t(c, { fullWidth: !0, vertical: !0, children: [
|
|
8
|
+
/* @__PURE__ */ e(d, { size: "large", children: "Accordion" }),
|
|
9
|
+
/* @__PURE__ */ t(l, { children: [
|
|
10
|
+
/* @__PURE__ */ t(i, { id: "item1", children: [
|
|
11
|
+
/* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(
|
|
12
|
+
n,
|
|
13
|
+
{
|
|
14
|
+
id: "item1",
|
|
15
|
+
text: "Will I get banned from GTA:O?",
|
|
16
|
+
iconLeft: "MoreInfo"
|
|
17
|
+
}
|
|
18
|
+
) }),
|
|
19
|
+
/* @__PURE__ */ e(r, { id: "item1", children: "Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it." })
|
|
20
|
+
] }),
|
|
21
|
+
/* @__PURE__ */ t(i, { id: "item2", children: [
|
|
22
|
+
/* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(
|
|
23
|
+
n,
|
|
24
|
+
{
|
|
25
|
+
id: "item2",
|
|
26
|
+
text: "Can I cheat on FiveM?",
|
|
27
|
+
iconLeft: "MoreInfo"
|
|
28
|
+
}
|
|
29
|
+
) }),
|
|
30
|
+
/* @__PURE__ */ e(r, { id: "item2", children: "Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned!" })
|
|
31
|
+
] }),
|
|
32
|
+
/* @__PURE__ */ t(i, { id: "item3", children: [
|
|
33
|
+
/* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(
|
|
34
|
+
n,
|
|
35
|
+
{
|
|
36
|
+
id: "item3",
|
|
37
|
+
text: "Is this accordion any good?",
|
|
38
|
+
iconLeft: "MoreInfo"
|
|
39
|
+
}
|
|
40
|
+
) }),
|
|
41
|
+
/* @__PURE__ */ e(r, { id: "item3", children: "Obviously!" })
|
|
42
|
+
] }),
|
|
43
|
+
/* @__PURE__ */ t(i, { id: "item4", children: [
|
|
44
|
+
/* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(
|
|
45
|
+
n,
|
|
46
|
+
{
|
|
47
|
+
id: "item4",
|
|
48
|
+
text: "Who said?",
|
|
49
|
+
iconLeft: "MoreInfo"
|
|
50
|
+
}
|
|
51
|
+
) }),
|
|
52
|
+
/* @__PURE__ */ e(r, { id: "item4", children: "Me!" })
|
|
53
|
+
] })
|
|
54
|
+
] })
|
|
55
|
+
] }) });
|
|
56
|
+
}
|
|
57
|
+
const b = a.memo(h);
|
|
58
|
+
export {
|
|
59
|
+
b as default
|
|
60
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Accordion, AccordionTrigger, AccordionHeader, AccordionItem, } from './Accordion';
|
package/dist/main.d.ts
CHANGED
|
@@ -11,6 +11,9 @@ export type { ValueOrGetter } from './utils/getValue';
|
|
|
11
11
|
export type { ILinkSubstitute, ILinkMatch, LinkifyProps, } from './utils/links';
|
|
12
12
|
export type { OutletPosition } from './utils/hooks';
|
|
13
13
|
export type { SetTimeoutReturn } from './utils/execution';
|
|
14
|
+
export { IconButton } from './components/IconButton';
|
|
15
|
+
export { Accordion, AccordionTrigger, AccordionHeader, AccordionItem, } from './components/Accordion';
|
|
16
|
+
export { ClipboardButton, CLIPBOARD_TITLE_APPEARANCE } from './components/ClipboardButton';
|
|
14
17
|
export { Checkbox } from './components/Checkbox';
|
|
15
18
|
export { Button } from './components/Button/Button';
|
|
16
19
|
export { LinkButton } from './components/Button/LinkButton';
|
|
@@ -60,6 +63,8 @@ export { Text, TextBlock, getTextOpacity, } from './components/Text';
|
|
|
60
63
|
export { Textarea } from './components/Textarea/Textarea';
|
|
61
64
|
export { Title, TITLE_OUTLET_ID } from './components/Title/Title';
|
|
62
65
|
export { InputDropzone } from './components/InputDropzone';
|
|
66
|
+
export type { IconButtonProps } from './components/IconButton';
|
|
67
|
+
export type { ClipboardButtonProps } from './components/ClipboardButton';
|
|
63
68
|
export type { InputDropzoneProps, FileWithPath } from './components/InputDropzone';
|
|
64
69
|
export type { InputSize, InputProps, RichInputProps, } from './components/Input';
|
|
65
70
|
export type { SwitchProps } from './components/Switch';
|
package/dist/main.js
CHANGED
|
@@ -5,166 +5,176 @@ import { usePopoverController as l } from "./utils/hooks/usePopoverController.js
|
|
|
5
5
|
import { useInstance as i } from "./utils/hooks/useInstance.js";
|
|
6
6
|
import { useDynamicRef as u } from "./utils/hooks/useDynamicRef.js";
|
|
7
7
|
import { useGlobalKeyboardEvent as d } from "./utils/hooks/useGlobalKeyboardEvent.js";
|
|
8
|
-
import { useKeyboardClose as
|
|
8
|
+
import { useKeyboardClose as T } from "./utils/hooks/useKeyboardClose.js";
|
|
9
9
|
import { useWindowResize as g } from "./utils/hooks/useWindowResize.js";
|
|
10
|
-
import { useOutlet as
|
|
11
|
-
import { identity as
|
|
12
|
-
import { Linkify as
|
|
13
|
-
import { clamp as K, clamp01 as
|
|
14
|
-
import { isFalseString as
|
|
15
|
-
import { debounce as
|
|
16
|
-
import { default as X } from "./components/
|
|
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 {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
10
|
+
import { useOutlet as y } from "./utils/hooks/useOutlet.js";
|
|
11
|
+
import { identity as S, invoke as k, noop as A, returnFalse as C, returnTrue as O } from "./utils/functional.js";
|
|
12
|
+
import { Linkify as b, defaultLinkReplacer as E, defaultLinkReplacerx as D, isExternalUrl as _, linkify as h, linkifyx as v, matchLinkNodes as F, matchLinks as U } from "./utils/links.js";
|
|
13
|
+
import { clamp as K, clamp01 as N } from "./utils/math.js";
|
|
14
|
+
import { isFalseString as w, isTrueString as G, normalizeSlashes as Y, replaceRange as H, splitByIndices as M, unicodeCharAt as W } from "./utils/string.js";
|
|
15
|
+
import { debounce as q, throttle as J } from "./utils/execution.js";
|
|
16
|
+
import { default as X } from "./components/IconButton/IconButton.js";
|
|
17
|
+
import { Accordion as $, AccordionHeader as oo, AccordionItem as ro, AccordionTrigger as eo } from "./components/Accordion/Accordion.js";
|
|
18
|
+
import { CLIPBOARD_TITLE_APPEARANCE as po, default as fo } from "./components/ClipboardButton/ClipboardButton.js";
|
|
19
|
+
import { default as mo } from "./components/Checkbox/Checkbox.js";
|
|
20
|
+
import { Button as lo } from "./components/Button/Button.js";
|
|
21
|
+
import { LinkButton as io } from "./components/Button/LinkButton.js";
|
|
22
|
+
import { ButtonBar as uo } from "./components/Button/ButtonBar.js";
|
|
23
|
+
import { Avatar as Io } from "./components/Avatar/Avatar.js";
|
|
24
|
+
import { BACKDROP_OUTLET_ID as Lo, BackdropPortal as go } from "./components/BackdropPortal/BackdropPortal.js";
|
|
25
|
+
import { Badge as yo } from "./components/Badge/Badge.js";
|
|
26
|
+
import { ControlBox as So } from "./components/ControlBox/ControlBox.js";
|
|
27
|
+
import { CountryFlag as Ao } from "./components/CountryFlag/CountryFlag.js";
|
|
28
|
+
import { Decorate as Oo } from "./components/Decorate/Decorate.js";
|
|
29
|
+
import { Dot as bo } from "./components/Dot/Dot.js";
|
|
30
|
+
import { FLYOUT_OUTLET_ID as Do, Flyout as _o } from "./components/Flyout/Flyout.js";
|
|
31
|
+
import { Logos as vo } from "./components/Logos/index.js";
|
|
32
|
+
import { I as Uo } from "./cfxIcons-BlbKR-zU.js";
|
|
33
|
+
import { I as Ko } from "./cfxIconsBig-CNY8zL27.js";
|
|
34
|
+
import { Icon as Vo } from "./components/Icon/Icon.js";
|
|
35
|
+
import { IconBig as Go } from "./components/IconBig/IconBig.js";
|
|
36
|
+
import { Indicator as Ho } from "./components/Indicator/Indicator.js";
|
|
37
|
+
import { default as Wo } from "./components/InfoPanel/InfoPanel.js";
|
|
38
|
+
import { default as qo } from "./components/Input/Input.js";
|
|
39
|
+
import { default as Qo } from "./components/Input/RichInput.js";
|
|
40
|
+
import { Interactive as Zo } from "./components/Interactive/Interactive.js";
|
|
41
|
+
import { Island as or } from "./components/Island/Island.js";
|
|
42
|
+
import { Box as er } from "./components/Layout/Box/Box.js";
|
|
43
|
+
import { Center as pr } from "./components/Layout/Center/Center.js";
|
|
44
|
+
import { Flex as xr } from "./components/Layout/Flex/Flex.js";
|
|
45
|
+
import { FlexRestricter as ar } from "./components/Layout/Flex/FlexRestricter.js";
|
|
46
|
+
import { Pad as nr } from "./components/Layout/Pad/Pad.js";
|
|
47
|
+
import { Page as sr } from "./components/Layout/Page/Page.js";
|
|
48
|
+
import { R as cr } from "./Rail-rtPENZs2.js";
|
|
49
|
+
import { Scrollable as Ir } from "./components/Layout/Scrollable/Scrollable.js";
|
|
50
|
+
import { VirtualScrollable as Lr } from "./components/Layout/Scrollable/VirtualScrollable.js";
|
|
51
|
+
import { Loaf as Br } from "./components/Loaf/Loaf.js";
|
|
52
|
+
import { Modal as Rr } from "./components/Modal/Modal.js";
|
|
53
|
+
import { NavList as kr } from "./components/NavList/NavList.js";
|
|
54
|
+
import { OVERLAY_OUTLET_ID as Cr, Overlay as Or } from "./components/Overlay/Overlay.js";
|
|
55
|
+
import { Popover as br } from "./components/Popover/Popover.js";
|
|
56
|
+
import { PremiumBadge as Dr } from "./components/PremiumBadge/PremiumBadge.js";
|
|
57
|
+
import { Prose as hr } from "./components/Prose/Prose.js";
|
|
58
|
+
import { Radio as Fr } from "./components/Radio/Radio.js";
|
|
59
|
+
import { Select as zr } from "./components/Select/Select.js";
|
|
60
|
+
import { Separator as Nr } from "./components/Separator/Separator.js";
|
|
61
|
+
import { Shroud as wr } from "./components/Shroud/Shroud.js";
|
|
62
|
+
import { Spacer as Yr } from "./components/Spacer/Spacer.js";
|
|
63
|
+
import { Style as Mr, useContextualStyle as Wr } from "./components/Style/Style.js";
|
|
64
|
+
import { default as qr } from "./components/Switch/Switch.js";
|
|
65
|
+
import { ToggleGroup as Qr } from "./components/ToggleGroup/ToggleGroup.js";
|
|
66
|
+
import { Tabular as Zr } from "./components/Tabular/Tabular.js";
|
|
67
|
+
import { Table as oe } from "./components/Table/Table.js";
|
|
68
|
+
import { Text as ee, TextBlock as te, getTextOpacity as pe } from "./components/Text/Text.js";
|
|
69
|
+
import { Textarea as xe } from "./components/Textarea/Textarea.js";
|
|
70
|
+
import { TITLE_OUTLET_ID as ae, Title as le } from "./components/Title/Title.js";
|
|
71
|
+
import { default as ie } from "./components/InputDropzone/InputDropzone.js";
|
|
69
72
|
import "./components/InputDropzone/ItemPreview.js";
|
|
70
|
-
import { OnScreenSensor as
|
|
71
|
-
import { ui as
|
|
72
|
-
import { Symbols as
|
|
73
|
+
import { OnScreenSensor as ue } from "./components/OnScreenSensor.js";
|
|
74
|
+
import { ui as de } from "./components/ui.js";
|
|
75
|
+
import { Symbols as Te } from "./components/Symbols.js";
|
|
73
76
|
export {
|
|
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
|
-
Dr as
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
77
|
+
$ as Accordion,
|
|
78
|
+
oo as AccordionHeader,
|
|
79
|
+
ro as AccordionItem,
|
|
80
|
+
eo as AccordionTrigger,
|
|
81
|
+
Io as Avatar,
|
|
82
|
+
Lo as BACKDROP_OUTLET_ID,
|
|
83
|
+
go as BackdropPortal,
|
|
84
|
+
yo as Badge,
|
|
85
|
+
er as Box,
|
|
86
|
+
lo as Button,
|
|
87
|
+
uo as ButtonBar,
|
|
88
|
+
po as CLIPBOARD_TITLE_APPEARANCE,
|
|
89
|
+
pr as Center,
|
|
90
|
+
mo as Checkbox,
|
|
91
|
+
fo as ClipboardButton,
|
|
92
|
+
So as ControlBox,
|
|
93
|
+
Ao as CountryFlag,
|
|
94
|
+
Oo as Decorate,
|
|
95
|
+
bo as Dot,
|
|
96
|
+
Do as FLYOUT_OUTLET_ID,
|
|
97
|
+
xr as Flex,
|
|
98
|
+
ar as FlexRestricter,
|
|
99
|
+
_o as Flyout,
|
|
100
|
+
Vo as Icon,
|
|
101
|
+
Go as IconBig,
|
|
102
|
+
X as IconButton,
|
|
103
|
+
Uo as Icons,
|
|
104
|
+
Ko as IconsBig,
|
|
105
|
+
Ho as Indicator,
|
|
106
|
+
Wo as InfoPanel,
|
|
107
|
+
qo as Input,
|
|
108
|
+
ie as InputDropzone,
|
|
109
|
+
Zo as Interactive,
|
|
110
|
+
or as Island,
|
|
111
|
+
io as LinkButton,
|
|
112
|
+
b as Linkify,
|
|
113
|
+
Br as Loaf,
|
|
114
|
+
vo as Logos,
|
|
115
|
+
Rr as Modal,
|
|
116
|
+
kr as NavList,
|
|
117
|
+
Cr as OVERLAY_OUTLET_ID,
|
|
118
|
+
ue as OnScreenSensor,
|
|
119
|
+
Or as Overlay,
|
|
120
|
+
nr as Pad,
|
|
121
|
+
sr as Page,
|
|
122
|
+
br as Popover,
|
|
123
|
+
Dr as PremiumBadge,
|
|
124
|
+
hr as Prose,
|
|
125
|
+
Fr as Radio,
|
|
126
|
+
cr as Rail,
|
|
127
|
+
Qo as RichInput,
|
|
128
|
+
Ir as Scrollable,
|
|
129
|
+
zr as Select,
|
|
130
|
+
Nr as Separator,
|
|
131
|
+
wr as Shroud,
|
|
132
|
+
Yr as Spacer,
|
|
133
|
+
Mr as Style,
|
|
134
|
+
qr as Switch,
|
|
135
|
+
Te as Symbols,
|
|
136
|
+
ae as TITLE_OUTLET_ID,
|
|
137
|
+
oe as Table,
|
|
138
|
+
Zr as Tabular,
|
|
139
|
+
ee as Text,
|
|
140
|
+
te as TextBlock,
|
|
141
|
+
xe as Textarea,
|
|
142
|
+
le as Title,
|
|
143
|
+
Qr as ToggleGroup,
|
|
144
|
+
Lr as VirtualScrollable,
|
|
135
145
|
K as clamp,
|
|
136
|
-
|
|
146
|
+
N as clamp01,
|
|
137
147
|
f as clsx,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
148
|
+
q as debounce,
|
|
149
|
+
E as defaultLinkReplacer,
|
|
150
|
+
D as defaultLinkReplacerx,
|
|
151
|
+
pe as getTextOpacity,
|
|
142
152
|
m as getValue,
|
|
143
|
-
|
|
153
|
+
S as identity,
|
|
144
154
|
k as invoke,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
155
|
+
_ as isExternalUrl,
|
|
156
|
+
w as isFalseString,
|
|
157
|
+
G as isTrueString,
|
|
158
|
+
h as linkify,
|
|
159
|
+
v as linkifyx,
|
|
160
|
+
F as matchLinkNodes,
|
|
161
|
+
U as matchLinks,
|
|
152
162
|
t as mergeRefs,
|
|
153
|
-
|
|
163
|
+
A as noop,
|
|
154
164
|
Y as normalizeSlashes,
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
165
|
+
H as replaceRange,
|
|
166
|
+
C as returnFalse,
|
|
167
|
+
O as returnTrue,
|
|
168
|
+
M as splitByIndices,
|
|
159
169
|
J as throttle,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
170
|
+
de as ui,
|
|
171
|
+
W as unicodeCharAt,
|
|
172
|
+
Wr as useContextualStyle,
|
|
163
173
|
u as useDynamicRef,
|
|
164
174
|
d as useGlobalKeyboardEvent,
|
|
165
175
|
i as useInstance,
|
|
166
|
-
|
|
167
|
-
|
|
176
|
+
T as useKeyboardClose,
|
|
177
|
+
y as useOutlet,
|
|
168
178
|
l as usePopoverController,
|
|
169
179
|
g as useWindowResize
|
|
170
180
|
};
|
|
@@ -117,6 +117,11 @@ $control-heights: (
|
|
|
117
117
|
@include ui.define-color-token('input-disabled-border', ui.color('bg-light'));
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
+
@mixin accordion-tokens() {
|
|
121
|
+
@include ui.define-color-token('accordion-border-color', ui.color('secondary', 'pure', .1));
|
|
122
|
+
@include ui.define-color-token('accordion-background', ui.color('bg'));
|
|
123
|
+
}
|
|
124
|
+
|
|
120
125
|
@mixin select-tokens() {
|
|
121
126
|
@include ui.define-color-token('interactive-list-background', ui.color('bg-light'));
|
|
122
127
|
@include ui.define-color-token('interactive-list-item-background', transparent);
|