react-material-design 0.0.0-stage → 0.5.0
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 +12 -2
- package/dist/_virtual/_rolldown/runtime.cjs +1 -0
- package/dist/components/Button/context.cjs +1 -0
- package/dist/components/Button/context.d.ts +29 -0
- package/dist/components/Button/context.js +41 -0
- package/dist/components/Button/default/index.cjs +1 -0
- package/dist/components/Button/default/index.d.ts +26 -0
- package/dist/components/Button/default/index.js +22 -0
- package/dist/components/Button/default/render.cjs +1 -0
- package/dist/components/Button/default/render.d.ts +3 -0
- package/dist/components/Button/default/render.js +203 -0
- package/dist/components/Button/default/style.css +1 -0
- package/dist/components/Button/group/index.cjs +1 -0
- package/dist/components/Button/group/index.d.ts +2 -0
- package/dist/components/Button/group/index.js +1 -0
- package/dist/components/Button/group/render.cjs +1 -0
- package/dist/components/Button/group/render.d.ts +49 -0
- package/dist/components/Button/group/render.js +100 -0
- package/dist/components/Button/group/style.css +1 -0
- package/dist/components/Button/icon/index.cjs +1 -0
- package/dist/components/Button/icon/index.d.ts +22 -0
- package/dist/components/Button/icon/index.js +23 -0
- package/dist/components/Button/icon/render.cjs +1 -0
- package/dist/components/Button/icon/render.d.ts +4 -0
- package/dist/components/Button/icon/render.js +178 -0
- package/dist/components/Button/icon/style.css +1 -0
- package/dist/components/Button/index.cjs +1 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Button/index.js +55 -0
- package/dist/components/Button/split/index.cjs +1 -0
- package/dist/components/Button/split/index.d.ts +6 -0
- package/dist/components/Button/split/index.js +33 -0
- package/dist/components/Button/split/style.css +1 -0
- package/dist/components/Button/types.d.ts +19 -0
- package/dist/components/Card/index.d.ts +1 -0
- package/dist/components/Chip/index.cjs +1 -0
- package/dist/components/Chip/index.d.ts +50 -0
- package/dist/components/Chip/index.js +156 -0
- package/dist/components/Chip/style.css +1 -0
- package/dist/components/ContextMenu/index.cjs +1 -0
- package/dist/components/ContextMenu/index.d.ts +2 -0
- package/dist/components/ContextMenu/index.js +19 -0
- package/dist/components/ContextMenu/render.cjs +1 -0
- package/dist/components/ContextMenu/render.d.ts +4 -0
- package/dist/components/ContextMenu/render.js +59 -0
- package/dist/components/Dialog/Dialog.cjs +1 -0
- package/dist/components/Dialog/Dialog.d.ts +23 -0
- package/dist/components/Dialog/Dialog.js +182 -0
- package/dist/components/Dialog/DialogActions.cjs +1 -0
- package/dist/components/Dialog/DialogActions.d.ts +3 -0
- package/dist/components/Dialog/DialogActions.js +17 -0
- package/dist/components/Dialog/index.cjs +1 -0
- package/dist/components/Dialog/index.d.ts +4 -0
- package/dist/components/Dialog/index.js +3 -0
- package/dist/components/Dialog/style.css +1 -0
- package/dist/components/Divider/index.cjs +1 -0
- package/dist/components/Divider/index.d.ts +6 -0
- package/dist/components/Divider/index.js +29 -0
- package/dist/components/Divider/style.css +1 -0
- package/dist/components/Font/index.d.ts +9 -0
- package/dist/components/Icon/Icon.cjs +1 -0
- package/dist/components/Icon/Icon.d.ts +18 -0
- package/dist/components/Icon/Icon.js +47 -0
- package/dist/components/Icon/index.cjs +1 -0
- package/dist/components/Icon/index.d.ts +2 -0
- package/dist/components/Icon/index.js +1 -0
- package/dist/components/Icon/style.css +1 -0
- package/dist/components/Menu/Menu.cjs +1 -0
- package/dist/components/Menu/Menu.d.ts +4 -0
- package/dist/components/Menu/Menu.js +10 -0
- package/dist/components/Menu/Menu.render.cjs +1 -0
- package/dist/components/Menu/Menu.render.d.ts +15 -0
- package/dist/components/Menu/Menu.render.js +55 -0
- package/dist/components/Menu/MenuContainer.cjs +1 -0
- package/dist/components/Menu/MenuContainer.d.ts +7 -0
- package/dist/components/Menu/MenuContainer.js +46 -0
- package/dist/components/Menu/MenuGroup.cjs +1 -0
- package/dist/components/Menu/MenuGroup.d.ts +11 -0
- package/dist/components/Menu/MenuGroup.js +34 -0
- package/dist/components/Menu/MenuGroup.render.cjs +1 -0
- package/dist/components/Menu/MenuGroup.render.d.ts +6 -0
- package/dist/components/Menu/MenuGroup.render.js +31 -0
- package/dist/components/Menu/MenuItem.cjs +1 -0
- package/dist/components/Menu/MenuItem.d.ts +19 -0
- package/dist/components/Menu/MenuItem.js +30 -0
- package/dist/components/Menu/MenuItem.render.cjs +1 -0
- package/dist/components/Menu/MenuItem.render.d.ts +7 -0
- package/dist/components/Menu/MenuItem.render.js +75 -0
- package/dist/components/Menu/index.cjs +1 -0
- package/dist/components/Menu/index.d.ts +3 -0
- package/dist/components/Menu/index.js +4 -0
- package/dist/components/Menu/style.css +1 -0
- package/dist/components/Menubar/MenuSection.d.ts +8 -0
- package/dist/components/Menubar/index.cjs +1 -0
- package/dist/components/Menubar/index.d.ts +2 -0
- package/dist/components/Menubar/index.js +19 -0
- package/dist/components/Menubar/render.cjs +1 -0
- package/dist/components/Menubar/render.d.ts +3 -0
- package/dist/components/Menubar/render.js +58 -0
- package/dist/components/Menubar/style.css +1 -0
- package/dist/components/NumberField/NumberField.cjs +1 -0
- package/dist/components/NumberField/NumberField.d.ts +2 -0
- package/dist/components/NumberField/NumberField.js +19 -0
- package/dist/components/NumberField/NumberField.render.cjs +1 -0
- package/dist/components/NumberField/NumberField.render.d.ts +10 -0
- package/dist/components/NumberField/NumberField.render.js +268 -0
- package/dist/components/NumberField/index.cjs +1 -0
- package/dist/components/NumberField/index.d.ts +2 -0
- package/dist/components/NumberField/index.js +1 -0
- package/dist/components/NumberField/style.css +1 -0
- package/dist/components/ProgressIndicator/index.d.ts +9 -0
- package/dist/components/Select/Option.cjs +1 -0
- package/dist/components/Select/Option.d.ts +10 -0
- package/dist/components/Select/Option.js +24 -0
- package/dist/components/Select/Select.cjs +1 -0
- package/dist/components/Select/Select.d.ts +32 -0
- package/dist/components/Select/Select.js +265 -0
- package/dist/components/Select/index.cjs +1 -0
- package/dist/components/Select/index.d.ts +4 -0
- package/dist/components/Select/index.js +3 -0
- package/dist/components/Select/style.css +1 -0
- package/dist/components/Slider/Slider.cjs +1 -0
- package/dist/components/Slider/Slider.d.ts +26 -0
- package/dist/components/Slider/Slider.js +342 -0
- package/dist/components/Slider/index.cjs +1 -0
- package/dist/components/Slider/index.d.ts +1 -0
- package/dist/components/Slider/index.js +1 -0
- package/dist/components/Slider/style.css +1 -0
- package/dist/components/TextField/TextField.cjs +1 -0
- package/dist/components/TextField/TextField.d.ts +2 -0
- package/dist/components/TextField/TextField.js +19 -0
- package/dist/components/TextField/TextField.render.cjs +1 -0
- package/dist/components/TextField/TextField.render.d.ts +19 -0
- package/dist/components/TextField/TextField.render.js +159 -0
- package/dist/components/TextField/index.cjs +1 -0
- package/dist/components/TextField/index.d.ts +2 -0
- package/dist/components/TextField/index.js +1 -0
- package/dist/components/TextField/style.css +1 -0
- package/dist/components/Theme/Theme.cjs +4 -0
- package/dist/components/Theme/Theme.d.ts +14 -0
- package/dist/components/Theme/Theme.js +183 -0
- package/dist/components/Theme/index.cjs +1 -0
- package/dist/components/Theme/index.d.ts +1 -0
- package/dist/components/Theme/index.js +1 -0
- package/dist/components/Theme/style.css +1 -0
- package/dist/components/Theme/types.d.ts +29 -0
- package/dist/components/Toolbar/Toolbar.cjs +1 -0
- package/dist/components/Toolbar/Toolbar.d.ts +3 -0
- package/dist/components/Toolbar/Toolbar.js +19 -0
- package/dist/components/Toolbar/Toolbar.render.cjs +1 -0
- package/dist/components/Toolbar/Toolbar.render.d.ts +14 -0
- package/dist/components/Toolbar/Toolbar.render.js +64 -0
- package/dist/components/Toolbar/index.cjs +1 -0
- package/dist/components/Toolbar/index.d.ts +2 -0
- package/dist/components/Toolbar/index.js +1 -0
- package/dist/components/Toolbar/style.css +1 -0
- package/dist/components/Tooltip/Tooltip.cjs +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +12 -0
- package/dist/components/Tooltip/Tooltip.js +52 -0
- package/dist/components/Tooltip/index.cjs +1 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/Tooltip/index.js +1 -0
- package/dist/components/Tooltip/style.css +1 -0
- package/dist/components/containers/FilledField/index.cjs +1 -0
- package/dist/components/containers/FilledField/index.d.ts +9 -0
- package/dist/components/containers/FilledField/index.js +40 -0
- package/dist/components/containers/FilledField/style.css +1 -0
- package/dist/components/containers/OutlinedField/index.cjs +1 -0
- package/dist/components/containers/OutlinedField/index.d.ts +9 -0
- package/dist/components/containers/OutlinedField/index.js +59 -0
- package/dist/components/containers/OutlinedField/style.css +1 -0
- package/dist/components/misc/FloatingElement/index.cjs +1 -0
- package/dist/components/misc/FloatingElement/index.d.ts +17 -0
- package/dist/components/misc/FloatingElement/index.js +106 -0
- package/dist/components/misc/FloatingElement/style.css +1 -0
- package/dist/components/misc/OrderedCollection/index.cjs +1 -0
- package/dist/components/misc/OrderedCollection/index.d.ts +27 -0
- package/dist/components/misc/OrderedCollection/index.js +98 -0
- package/dist/components/misc/OrderedCollection/style.css +1 -0
- package/dist/components/misc/Polymorphic.cjs +1 -0
- package/dist/components/misc/Polymorphic.d.ts +15 -0
- package/dist/components/misc/Polymorphic.js +51 -0
- package/dist/components/misc/StateLayer/index.cjs +1 -0
- package/dist/components/misc/StateLayer/index.d.ts +7 -0
- package/dist/components/misc/StateLayer/index.js +67 -0
- package/dist/components/misc/StateLayer/style.css +1 -0
- package/dist/components/misc/Transitionable/index.cjs +1 -0
- package/dist/components/misc/Transitionable/index.d.ts +6 -0
- package/dist/components/misc/Transitionable/index.js +54 -0
- package/dist/components/misc/Transitionable/style.css +1 -0
- package/dist/components/types.cjs +1 -0
- package/dist/components/types.d.ts +20 -0
- package/dist/components/types.js +13 -0
- package/dist/hooks/useFloating/autoUpdate.cjs +1 -0
- package/dist/hooks/useFloating/autoUpdate.d.ts +9 -0
- package/dist/hooks/useFloating/autoUpdate.js +64 -0
- package/dist/hooks/useFloating/index.cjs +1 -0
- package/dist/hooks/useFloating/index.d.ts +30 -0
- package/dist/hooks/useFloating/index.js +97 -0
- package/dist/hooks/useFloating/middleware/flip.cjs +1 -0
- package/dist/hooks/useFloating/middleware/flip.d.ts +2 -0
- package/dist/hooks/useFloating/middleware/flip.js +88 -0
- package/dist/hooks/useFloating/middleware/offset.cjs +1 -0
- package/dist/hooks/useFloating/middleware/offset.d.ts +2 -0
- package/dist/hooks/useFloating/middleware/offset.js +42 -0
- package/dist/hooks/useFloating/middleware/shift.cjs +1 -0
- package/dist/hooks/useFloating/middleware/shift.d.ts +2 -0
- package/dist/hooks/useFloating/middleware/shift.js +11 -0
- package/dist/hooks/useFloating/middleware/size.cjs +1 -0
- package/dist/hooks/useFloating/middleware/size.d.ts +6 -0
- package/dist/hooks/useFloating/middleware/size.js +7 -0
- package/dist/hooks/useFloating/utils.cjs +1 -0
- package/dist/hooks/useFloating/utils.d.ts +22 -0
- package/dist/hooks/useFloating/utils.js +145 -0
- package/dist/layouts/Content.cjs +1 -0
- package/dist/layouts/Content.d.ts +3 -0
- package/dist/layouts/Content.js +17 -0
- package/dist/layouts/Page/index.cjs +1 -0
- package/dist/layouts/Page/index.d.ts +7 -0
- package/dist/layouts/Page/index.js +135 -0
- package/dist/layouts/Page/style.css +1 -0
- package/dist/layouts/Panes/Pane.cjs +1 -0
- package/dist/layouts/Panes/Pane.d.ts +11 -0
- package/dist/layouts/Panes/Pane.js +27 -0
- package/dist/layouts/Panes/Pane.render.cjs +1 -0
- package/dist/layouts/Panes/Pane.render.d.ts +6 -0
- package/dist/layouts/Panes/Pane.render.js +36 -0
- package/dist/layouts/Panes/Panes.cjs +1 -0
- package/dist/layouts/Panes/Panes.d.ts +28 -0
- package/dist/layouts/Panes/Panes.js +182 -0
- package/dist/layouts/Panes/index.cjs +1 -0
- package/dist/layouts/Panes/index.d.ts +2 -0
- package/dist/layouts/Panes/index.js +3 -0
- package/dist/layouts/Panes/style.css +1 -0
- package/dist/layouts/Tabs/Tab.d.ts +13 -0
- package/dist/layouts/Tabs/Tabs.d.ts +9 -0
- package/dist/layouts/Tabs/index.cjs +1 -0
- package/dist/layouts/Tabs/index.d.ts +1 -0
- package/dist/layouts/Tabs/index.js +0 -0
- package/dist/layouts/Toolbox/index.cjs +1 -0
- package/dist/layouts/Toolbox/index.d.ts +5 -0
- package/dist/layouts/Toolbox/index.js +129 -0
- package/dist/layouts/Toolbox/style.css +1 -0
- package/dist/style/motions.d.ts +37 -0
- package/dist/style/shapes/12_sided_cookie.d.ts +3 -0
- package/dist/style/shapes/4_leaf_clover.d.ts +3 -0
- package/dist/style/shapes/4_sided_cookie.d.ts +3 -0
- package/dist/style/shapes/6_sided_cookie.d.ts +3 -0
- package/dist/style/shapes/7_sided_cookie.d.ts +3 -0
- package/dist/style/shapes/8_leaf_clover.d.ts +3 -0
- package/dist/style/shapes/9_sided_cookie.d.ts +3 -0
- package/dist/style/shapes/arch.d.ts +3 -0
- package/dist/style/shapes/arrow.d.ts +3 -0
- package/dist/style/shapes/boom.d.ts +3 -0
- package/dist/style/shapes/bun.d.ts +3 -0
- package/dist/style/shapes/burst.d.ts +3 -0
- package/dist/style/shapes/circle.d.ts +3 -0
- package/dist/style/shapes/clamshell.d.ts +3 -0
- package/dist/style/shapes/diamond.d.ts +3 -0
- package/dist/style/shapes/fan.d.ts +3 -0
- package/dist/style/shapes/flower.d.ts +3 -0
- package/dist/style/shapes/gem.d.ts +3 -0
- package/dist/style/shapes/ghost_ish.d.ts +3 -0
- package/dist/style/shapes/heart.d.ts +3 -0
- package/dist/style/shapes/index.d.ts +109 -0
- package/dist/style/shapes/oval.d.ts +3 -0
- package/dist/style/shapes/pentagon.d.ts +3 -0
- package/dist/style/shapes/pill.d.ts +3 -0
- package/dist/style/shapes/pixel_circle.d.ts +3 -0
- package/dist/style/shapes/pixel_triangle.d.ts +3 -0
- package/dist/style/shapes/puffy.d.ts +3 -0
- package/dist/style/shapes/puffy_diamond.d.ts +3 -0
- package/dist/style/shapes/semicircle.d.ts +3 -0
- package/dist/style/shapes/slanted.d.ts +3 -0
- package/dist/style/shapes/soft_boom.d.ts +3 -0
- package/dist/style/shapes/soft_burst.d.ts +3 -0
- package/dist/style/shapes/square.d.ts +3 -0
- package/dist/style/shapes/sunny.d.ts +3 -0
- package/dist/style/shapes/triangle.d.ts +3 -0
- package/dist/style/shapes/very_sunny.d.ts +3 -0
- package/dist/style/symbols.d.ts +2 -0
- package/dist/utils/dom.cjs +1 -0
- package/dist/utils/dom.d.ts +2 -0
- package/dist/utils/dom.js +53 -0
- package/dist/utils/hooks.cjs +1 -0
- package/dist/utils/hooks.d.ts +17 -0
- package/dist/utils/hooks.js +9 -0
- package/dist/utils/index.cjs +1 -0
- package/dist/utils/index.d.ts +44 -0
- package/dist/utils/index.js +74 -0
- package/package.json +169 -4
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { useTheme as e } from "../Theme/Theme.js";
|
|
2
|
+
import ee from "../Button/context.js";
|
|
3
|
+
import { IconProvider as te, convertIconDefinition as ne } from "../Icon/Icon.js";
|
|
4
|
+
import { shallowEqual as re, waitAnimationNameEndEvent as ie } from "../../utils/index.js";
|
|
5
|
+
import t from "../misc/OrderedCollection/index.js";
|
|
6
|
+
import n from "../Divider/index.js";
|
|
7
|
+
import { getComponentSizeName as ae } from "../types.js";
|
|
8
|
+
import oe from "../Button/default/index.js";
|
|
9
|
+
import r from "../Button/icon/index.js";
|
|
10
|
+
import './style.css';/* empty css */
|
|
11
|
+
import { c as i } from "react/compiler-runtime";
|
|
12
|
+
import se from "classnames";
|
|
13
|
+
import { useEffect as ce, useEffectEvent as a, useId as o, useRef as s, useState as le } from "react";
|
|
14
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
15
|
+
import { createPortal as ue } from "react-dom";
|
|
16
|
+
import { useElementEventListener as de, useResizeObserver as fe } from "react-dom-event-hooks";
|
|
17
|
+
//#region lib/components/Dialog/Dialog.tsx
|
|
18
|
+
function u(u) {
|
|
19
|
+
let p = i(74), m = o(), { setDialogState: h, dialogsContainer: g } = e("Dialog"), _ = s(null), v = s(null), y;
|
|
20
|
+
p[0] === Symbol.for("react.memo_cache_sentinel") ? (y = [], p[0] = y) : y = p[0];
|
|
21
|
+
let [b, _e] = le(y), x;
|
|
22
|
+
p[1] === b ? x = p[2] : (x = b.filter(ge), p[1] = b, p[2] = x);
|
|
23
|
+
let S = x, C;
|
|
24
|
+
p[3] === b ? C = p[4] : (C = b.filter(he), p[3] = b, p[4] = C);
|
|
25
|
+
let w = C, T;
|
|
26
|
+
p[5] === Symbol.for("react.memo_cache_sentinel") ? (T = ["Content", "DialogAction"], p[5] = T) : T = p[5];
|
|
27
|
+
let ve = T, E;
|
|
28
|
+
p[6] === Symbol.for("react.memo_cache_sentinel") ? (E = {
|
|
29
|
+
default: "text",
|
|
30
|
+
icon: "standard"
|
|
31
|
+
}, p[6] = E) : E = p[6];
|
|
32
|
+
let ye = E, D;
|
|
33
|
+
p[7] !== u.fullscreen || p[8] !== u.icon ? (D = u.fullscreen ? null : ne(u.icon), p[7] = u.fullscreen, p[8] = u.icon, p[9] = D) : D = p[9];
|
|
34
|
+
let O = D, k;
|
|
35
|
+
p[10] === Symbol.for("react.memo_cache_sentinel") ? (k = (e) => {
|
|
36
|
+
e.filter((e) => e.borderBoxSize.forEach((e) => {
|
|
37
|
+
v.current?.checkVisibility() && (v.current.style.setProperty("--modal-width", `${e.inlineSize}px`), v.current.style.setProperty("--modal-height", `${e.blockSize}px`));
|
|
38
|
+
}));
|
|
39
|
+
}, p[10] = k) : k = p[10];
|
|
40
|
+
let { saveRef: A } = fe(k), { saveRef: j } = de("scroll", f), M;
|
|
41
|
+
p[11] !== m || p[12] !== h ? (M = () => {
|
|
42
|
+
h(m, !0), _.current?.classList.remove("close"), _.current?.classList.add("open"), _.current?.showModal();
|
|
43
|
+
}, p[11] = m, p[12] = h, p[13] = M) : M = p[13];
|
|
44
|
+
let N = a(M), P;
|
|
45
|
+
p[14] !== m || p[15] !== h ? (P = async () => {
|
|
46
|
+
h(m, !1), _.current?.classList.remove("open"), _.current?.classList.add("close"), await ie(v.current, d), _.current?.classList.remove("close"), _.current?.close();
|
|
47
|
+
}, p[14] = m, p[15] = h, p[16] = P) : P = p[16];
|
|
48
|
+
let F = a(P), I;
|
|
49
|
+
p[17] === u ? I = p[18] : (I = (e) => {
|
|
50
|
+
e.stopPropagation(), u.onClose?.();
|
|
51
|
+
}, p[17] = u, p[18] = I);
|
|
52
|
+
let L = I, R;
|
|
53
|
+
p[19] === u ? R = p[20] : (R = (e) => {
|
|
54
|
+
e.code.toLowerCase().includes("escape") && (e.stopPropagation(), e.preventDefault(), u.onClose?.());
|
|
55
|
+
}, p[19] = u, p[20] = R);
|
|
56
|
+
let z = R, B;
|
|
57
|
+
p[21] !== F || p[22] !== N || p[23] !== u.open ? (B = () => {
|
|
58
|
+
u.open ? N() : F();
|
|
59
|
+
}, p[21] = F, p[22] = N, p[23] = u.open, p[24] = B) : B = p[24];
|
|
60
|
+
let V;
|
|
61
|
+
if (p[25] === u.open ? V = p[26] : (V = [u.open], p[25] = u.open, p[26] = V), ce(B, V), !g) return null;
|
|
62
|
+
let be = u.headline, H = u.fullscreen ? "dialog" : "alertdialog", U;
|
|
63
|
+
p[27] !== u.fullscreen || p[28] !== u.headline || p[29] !== u.icon || p[30] !== u.size ? (U = se("modal", !u.fullscreen && u.size ? ae(u.size) : void 0, {
|
|
64
|
+
fullscreen: u.fullscreen,
|
|
65
|
+
headline: u.headline,
|
|
66
|
+
icon: !u.fullscreen && u.icon
|
|
67
|
+
}), p[27] = u.fullscreen, p[28] = u.headline, p[29] = u.icon, p[30] = u.size, p[31] = U) : U = p[31];
|
|
68
|
+
let W;
|
|
69
|
+
p[32] !== O || p[33] !== u.buttonLabel || p[34] !== u.fullscreen || p[35] !== u.headline || p[36] !== u.onButtonClick || p[37] !== u.onClose || p[38] !== u.supportingText ? (W = u.fullscreen ? /* @__PURE__ */ l("div", {
|
|
70
|
+
className: "header",
|
|
71
|
+
children: [
|
|
72
|
+
/* @__PURE__ */ c(r, {
|
|
73
|
+
className: "icon",
|
|
74
|
+
color: "standard",
|
|
75
|
+
icon: "close",
|
|
76
|
+
onClick: u.onClose
|
|
77
|
+
}),
|
|
78
|
+
/* @__PURE__ */ c("span", {
|
|
79
|
+
className: "headline",
|
|
80
|
+
children: u.headline
|
|
81
|
+
}),
|
|
82
|
+
/* @__PURE__ */ c(oe, {
|
|
83
|
+
className: "action",
|
|
84
|
+
color: "text",
|
|
85
|
+
label: u.buttonLabel,
|
|
86
|
+
onClick: u.onButtonClick
|
|
87
|
+
})
|
|
88
|
+
]
|
|
89
|
+
}) : /* @__PURE__ */ l("div", {
|
|
90
|
+
className: "description",
|
|
91
|
+
children: [
|
|
92
|
+
O && /* @__PURE__ */ c(te, {
|
|
93
|
+
size: 24,
|
|
94
|
+
children: O
|
|
95
|
+
}),
|
|
96
|
+
u.headline && /* @__PURE__ */ c("span", {
|
|
97
|
+
className: "headline",
|
|
98
|
+
children: u.headline
|
|
99
|
+
}),
|
|
100
|
+
/* @__PURE__ */ c("span", {
|
|
101
|
+
className: "supporting-text",
|
|
102
|
+
children: u.supportingText
|
|
103
|
+
})
|
|
104
|
+
]
|
|
105
|
+
}), p[32] = O, p[33] = u.buttonLabel, p[34] = u.fullscreen, p[35] = u.headline, p[36] = u.onButtonClick, p[37] = u.onClose, p[38] = u.supportingText, p[39] = W) : W = p[39];
|
|
106
|
+
let G;
|
|
107
|
+
p[40] !== S || p[41] !== u.fullscreen ? (G = !u.fullscreen && S && /* @__PURE__ */ c(n, {}), p[40] = S, p[41] = u.fullscreen, p[42] = G) : G = p[42];
|
|
108
|
+
let K;
|
|
109
|
+
p[43] !== S || p[44] !== j ? (K = !!S && /* @__PURE__ */ c("div", {
|
|
110
|
+
ref: j,
|
|
111
|
+
className: "content",
|
|
112
|
+
children: S.map(me)
|
|
113
|
+
}), p[43] = S, p[44] = j, p[45] = K) : K = p[45];
|
|
114
|
+
let q;
|
|
115
|
+
p[46] !== S || p[47] !== u.fullscreen ? (q = !u.fullscreen && S && /* @__PURE__ */ c(n, {}), p[46] = S, p[47] = u.fullscreen, p[48] = q) : q = p[48];
|
|
116
|
+
let J;
|
|
117
|
+
p[49] !== w || p[50] !== u.fullscreen ? (J = !u.fullscreen && w && /* @__PURE__ */ c("div", {
|
|
118
|
+
className: "actions",
|
|
119
|
+
children: /* @__PURE__ */ c(ee, {
|
|
120
|
+
color: ye,
|
|
121
|
+
children: w.map(pe)
|
|
122
|
+
})
|
|
123
|
+
}), p[49] = w, p[50] = u.fullscreen, p[51] = J) : J = p[51];
|
|
124
|
+
let Y;
|
|
125
|
+
p[52] !== A || p[53] !== W || p[54] !== G || p[55] !== K || p[56] !== q || p[57] !== J ? (Y = /* @__PURE__ */ l("div", {
|
|
126
|
+
ref: A,
|
|
127
|
+
className: "container",
|
|
128
|
+
children: [
|
|
129
|
+
W,
|
|
130
|
+
G,
|
|
131
|
+
K,
|
|
132
|
+
q,
|
|
133
|
+
J
|
|
134
|
+
]
|
|
135
|
+
}), p[52] = A, p[53] = W, p[54] = G, p[55] = K, p[56] = q, p[57] = J, p[58] = Y) : Y = p[58];
|
|
136
|
+
let X;
|
|
137
|
+
p[59] !== U || p[60] !== Y ? (X = /* @__PURE__ */ c("div", {
|
|
138
|
+
ref: v,
|
|
139
|
+
className: U,
|
|
140
|
+
children: Y
|
|
141
|
+
}), p[59] = U, p[60] = Y, p[61] = X) : X = p[61];
|
|
142
|
+
let Z;
|
|
143
|
+
p[62] === u.children ? Z = p[63] : (Z = /* @__PURE__ */ c(t, {
|
|
144
|
+
name: "Dialog",
|
|
145
|
+
childName: ve,
|
|
146
|
+
onChildrenChange: _e,
|
|
147
|
+
compareChild: re,
|
|
148
|
+
children: u.children
|
|
149
|
+
}), p[62] = u.children, p[63] = Z);
|
|
150
|
+
let Q;
|
|
151
|
+
p[64] !== L || p[65] !== z || p[66] !== u.headline || p[67] !== H || p[68] !== X || p[69] !== Z ? (Q = /* @__PURE__ */ l("dialog", {
|
|
152
|
+
ref: _,
|
|
153
|
+
className: "Dialog",
|
|
154
|
+
onClose: L,
|
|
155
|
+
onKeyDown: z,
|
|
156
|
+
"aria-label": be,
|
|
157
|
+
role: H,
|
|
158
|
+
children: [X, Z]
|
|
159
|
+
}), p[64] = L, p[65] = z, p[66] = u.headline, p[67] = H, p[68] = X, p[69] = Z, p[70] = Q) : Q = p[70];
|
|
160
|
+
let $;
|
|
161
|
+
return p[71] !== g || p[72] !== Q ? ($ = ue(Q, g), p[71] = g, p[72] = Q, p[73] = $) : $ = p[73], $;
|
|
162
|
+
}
|
|
163
|
+
function pe(e) {
|
|
164
|
+
return e.children;
|
|
165
|
+
}
|
|
166
|
+
function me(e) {
|
|
167
|
+
return e.children;
|
|
168
|
+
}
|
|
169
|
+
function d(e) {
|
|
170
|
+
return /^dialog-\w+-container-close$/.test(e);
|
|
171
|
+
}
|
|
172
|
+
function f(e) {
|
|
173
|
+
e.target instanceof HTMLDivElement && (e.target.scrollTop ? e.target?.classList.add("on-scroll") : e.target?.classList.remove("on-scroll"));
|
|
174
|
+
}
|
|
175
|
+
function he(e) {
|
|
176
|
+
return e.orderedCollectionName === "DialogAction";
|
|
177
|
+
}
|
|
178
|
+
function ge(e) {
|
|
179
|
+
return e.orderedCollectionName === "Content";
|
|
180
|
+
}
|
|
181
|
+
//#endregion
|
|
182
|
+
export { u as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("../misc/OrderedCollection/index.cjs");let t=require("react/compiler-runtime"),n=require("react"),r=require("react/jsx-runtime");function i(i){let a=(0,t.c)(5),o=(0,n.useId)(),s;a[0]===i.children?s=a[1]:(s={children:i.children},a[0]=i.children,a[1]=s);let c=s,l;return a[2]!==c||a[3]!==o?(l=(0,r.jsx)(e.OrderedCollectionChild,{name:`DialogAction`,id:o,content:c}),a[2]=c,a[3]=o,a[4]=l):l=a[4],l}exports.default=i;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OrderedCollectionChild as e } from "../misc/OrderedCollection/index.js";
|
|
2
|
+
import { c as t } from "react/compiler-runtime";
|
|
3
|
+
import { useId as n } from "react";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
//#region lib/components/Dialog/DialogActions.tsx
|
|
6
|
+
function i(i) {
|
|
7
|
+
let a = t(5), o = n(), s;
|
|
8
|
+
a[0] === i.children ? s = a[1] : (s = { children: i.children }, a[0] = i.children, a[1] = s);
|
|
9
|
+
let c = s, l;
|
|
10
|
+
return a[2] !== c || a[3] !== o ? (l = /* @__PURE__ */ r(e, {
|
|
11
|
+
name: "DialogAction",
|
|
12
|
+
id: o,
|
|
13
|
+
content: c
|
|
14
|
+
}), a[2] = c, a[3] = o, a[4] = l) : l = a[4], l;
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { i as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./Dialog.cjs"),t=require("./DialogActions.cjs");exports.DialogActions=t.default,exports.default=e.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@keyframes dialog-backdrop-open{0%{opacity:0}to{opacity:.4}}@keyframes dialog-backdrop-close{0%{opacity:.4}to{opacity:0}}@supports not (width:calc-size(auto, size)){@keyframes dialog-basic-container-open{0%{opacity:0;height:0}to{height:var(--modal-height);opacity:1}}@keyframes dialog-basic-container-close{0%{height:var(--modal-height);opacity:1}to{height:calc(var(--modal-height) / 100 * 20);opacity:0}}}@supports (width:calc-size(auto, size)){@keyframes dialog-basic-container-open{0%{opacity:0;height:0}to{height:calc-size(auto, size);opacity:1}}@keyframes dialog-basic-container-close{0%{height:calc-size(auto, size);pacity:1}to{height:calc-size(auto, size / 100 * 20);opacity:0}}}@keyframes dialog-fullscreen-container-open{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}@keyframes dialog-fullscreen-container-close{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(100%)}}@keyframes dialog-basic-content-open{0%{opacity:0}to{opacity:1}}@keyframes dialog-basic-content-close{0%{opacity:1}to{opacity:0}}.Dialog{width:100dvw;height:100dvh;max-width:unset;max-height:unset;box-sizing:border-box;transform-origin:top;background-color:#0000;border:none;outline:none;margin:0;padding:0;position:fixed;overflow:hidden}.Dialog[open]{justify-content:center;align-items:center;display:flex}.Dialog:before{background-color:var(--md-sys-color-scrim);content:"";z-index:-1;position:fixed;inset:0}.Dialog::backdrop{opacity:0}.Dialog.open:before{animation:dialog-backdrop-open var(--md-sys-motion-spring-expressive-default-effects-duration) var(--md-sys-motion-spring-expressive-default-effects-easing) forwards}.Dialog.open>.modal:not(.fullscreen){animation:dialog-basic-container-open var(--md-sys-motion-spring-expressive-default-spatial-duration) var(--md-sys-motion-spring-expressive-default-spatial-easing) forwards}.Dialog.open>.modal:not(.fullscreen)>.container{animation:dialog-basic-content-open var(--md-sys-motion-spring-expressive-slow-spatial-duration) var(--md-sys-motion-spring-expressive-slow-spatial-easing) forwards}.Dialog.open>.modal.fullscreen{animation:dialog-fullscreen-container-open var(--md-sys-motion-spring-standard-slow-spatial-duration) var(--md-sys-motion-spring-standard-slow-spatial-easing) forwards}.Dialog.close:before{animation:dialog-backdrop-close var(--md-sys-motion-spring-expressive-default-effects-duration) var(--md-sys-motion-spring-expressive-default-effects-easing) forwards}.Dialog.close>.modal:not(.fullscreen){animation:dialog-basic-container-close var(--md-sys-motion-spring-expressive-default-spatial-duration) var(--md-sys-motion-spring-expressive-default-spatial-easing) forwards}.Dialog.close>.modal:not(.fullscreen)>.container{animation:dialog-basic-content-close var(--md-sys-motion-spring-expressive-fast-effects-duration) var(--md-sys-motion-spring-expressive-fast-effects-easing) forwards}.Dialog.close>.modal.fullscreen{animation:dialog-fullscreen-container-close var(--md-sys-motion-spring-standard-slow-spatial-duration) var(--md-sys-motion-spring-standard-slow-spatial-easing) forwards}.Dialog>.modal{color:var(--md-sys-color-on-surface-variant);overflow:hidden}.Dialog>.modal:not(.fullscreen){background-color:var(--md-comp-dialog-container-color);border-radius:var(--md-comp-dialog-container-shape);min-width:280px;max-width:560px;max-height:calc(100dvh - 32px);box-shadow:var(--md-comp-dialog-container-elevation)}.Dialog>.modal:not(.fullscreen).extra-small{width:280px}.Dialog>.modal:not(.fullscreen).small{width:350px}.Dialog>.modal:not(.fullscreen).medium{width:420px}.Dialog>.modal:not(.fullscreen).large{width:490px}.Dialog>.modal:not(.fullscreen).extra-large{width:560px}.Dialog>.modal:not(.fullscreen).headline.icon>.container>.description>.headline{align-self:center}.Dialog>.modal:not(.fullscreen)>.container{box-sizing:border-box;flex-direction:column;gap:24px;max-height:calc(100dvh - 32px);padding:24px;display:flex}.Dialog>.modal:not(.fullscreen)>.container>.description{flex-direction:column;gap:16px;display:flex}.Dialog>.modal:not(.fullscreen)>.container>.description>.Icon{color:var(--md-comp-dialog-with-icon-icon-color);align-self:center}.Dialog>.modal:not(.fullscreen)>.container>.description>.headline{font-family:var(--md-comp-dialog-headline-font);font-weight:var(--md-comp-dialog-headline-weight);font-size:var(--md-comp-dialog-headline-size);letter-spacing:var(--md-comp-dialog-headline-tracking);line-height:var(--md-comp-dialog-headline-line-height);font-variation-settings:"wght" var(--md-comp-dialog-headline-wght), "GRAD" var(--md-comp-dialog-headline-grad), "wdth" var(--md-comp-dialog-headline-wdth), "ROND" var(--md-comp-dialog-headline-rond), "opsz" var(--md-comp-dialog-headline-opsz), "CRSV" var(--md-comp-dialog-headline-crsv), "slnt" var(--md-comp-dialog-headline-slnt), "FILL" var(--md-comp-dialog-headline-fill), "HEXP" var(--md-comp-dialog-headline-hexp);color:var(--md-comp-dialog-headline-color)}.Dialog>.modal:not(.fullscreen)>.container>.description>.supporting-text{font-family:var(--md-comp-dialog-supporting-text-font);font-weight:var(--md-comp-dialog-supporting-text-weight);font-size:var(--md-comp-dialog-supporting-text-size);letter-spacing:var(--md-comp-dialog-supporting-text-tracking);line-height:var(--md-comp-dialog-supporting-text-line-height);font-variation-settings:"wght" var(--md-comp-dialog-supporting-text-wght), "GRAD" var(--md-comp-dialog-supporting-text-grad), "wdth" var(--md-comp-dialog-supporting-text-wdth), "ROND" var(--md-comp-dialog-supporting-text-rond), "opsz" var(--md-comp-dialog-supporting-text-opsz), "CRSV" var(--md-comp-dialog-supporting-text-crsv), "slnt" var(--md-comp-dialog-supporting-text-slnt), "FILL" var(--md-comp-dialog-supporting-text-fill), "HEXP" var(--md-comp-dialog-supporting-text-hexp);color:var(--md-comp-dialog-supporting-text-color)}.Dialog>.modal:not(.fullscreen)>.container>.content{overflow:auto}.Dialog>.modal:not(.fullscreen)>.container>.Divider{margin:0;margin-block:-6px}.Dialog>.modal:not(.fullscreen)>.container>.actions{justify-content:flex-end;gap:8px;display:flex}.Dialog>.modal:not(.fullscreen)>.container>.actions>.Button{color:var(--md-comp-dialog-action-label-text-color)}.Dialog>.modal.fullscreen{background-color:var(--md-comp-full-screen-dialog-container-color);border-radius:var(--md-comp-full-screen-dialog-container-shape);box-shadow:var(--md-comp-full-screen-dialog-container-elevation);position:fixed;inset:0}.Dialog>.modal.fullscreen>.container{flex-direction:column;display:flex;position:fixed;inset:0}.Dialog>.modal.fullscreen>.container.on-scroll>.header{box-shadow:var(--md-comp-full-screen-dialog-header-on-scroll-container-elevation)}.Dialog>.modal.fullscreen>.container>.header{flex:0 0 var(--md-comp-full-screen-dialog-header-container-height);height:var(--md-comp-full-screen-dialog-header-container-height);background-color:var(--md-comp-full-screen-dialog-header-container-color);box-shadow:var(--md-comp-full-screen-dialog-header-container-elevation);transition:background-color var(--md-sys-motion-spring-expressive-fast-effects-duration) var(--md-sys-motion-spring-expressive-fast-effects-easing), box-shadow var(--md-sys-motion-spring-expressive-fast-effects-duration) var(--md-sys-motion-spring-expressive-fast-effects-easing);align-items:center;gap:8px;padding-inline:8px;display:flex}.Dialog>.modal.fullscreen>.container>.header>.icon{--md-comp-icon-size:var(--md-comp-full-screen-dialog-header-icon-size);border-radius:var(--md-sys-shape-corner-full);color:var(--md-comp-full-screen-dialog-header-icon-color)}.Dialog>.modal.fullscreen>.container>.header>.headline{font-family:var(--md-comp-full-screen-dialog-header-headline-font);font-weight:var(--md-comp-full-screen-dialog-header-headline-weight);font-size:var(--md-comp-full-screen-dialog-header-headline-size);letter-spacing:var(--md-comp-full-screen-dialog-header-headline-tracking);line-height:var(--md-comp-full-screen-dialog-header-headline-line-height);font-variation-settings:"wght" var(--md-comp-full-screen-dialog-header-headline-wght), "GRAD" var(--md-comp-full-screen-dialog-header-headline-grad), "wdth" var(--md-comp-full-screen-dialog-header-headline-wdth), "ROND" var(--md-comp-full-screen-dialog-header-headline-rond), "opsz" var(--md-comp-full-screen-dialog-header-headline-opsz), "CRSV" var(--md-comp-full-screen-dialog-header-headline-crsv), "slnt" var(--md-comp-full-screen-dialog-header-headline-slnt), "FILL" var(--md-comp-full-screen-dialog-header-headline-fill), "HEXP" var(--md-comp-full-screen-dialog-header-headline-hexp);color:var(--md-comp-full-screen-dialog-header-headline-color);flex:1}.Dialog>.modal.fullscreen>.container>.header>.headline:before{content:"";vertical-align:middle}.Dialog>.modal.fullscreen>.container>.header>.action{font-family:var(--md-comp-full-screen-dialog-header-action-label-text-font);font-weight:var(--md-comp-full-screen-dialog-header-action-label-text-weight);font-size:var(--md-comp-full-screen-dialog-header-action-label-text-size);letter-spacing:var(--md-comp-full-screen-dialog-header-action-label-text-tracking);line-height:var(--md-comp-full-screen-dialog-header-action-label-text-line-height);font-variation-settings:"wght" var(--md-comp-full-screen-dialog-header-action-label-text-wght), "GRAD" var(--md-comp-full-screen-dialog-header-action-label-text-grad), "wdth" var(--md-comp-full-screen-dialog-header-action-label-text-wdth), "ROND" var(--md-comp-full-screen-dialog-header-action-label-text-rond), "opsz" var(--md-comp-full-screen-dialog-header-action-label-text-opsz), "CRSV" var(--md-comp-full-screen-dialog-header-action-label-text-crsv), "slnt" var(--md-comp-full-screen-dialog-header-action-label-text-slnt), "FILL" var(--md-comp-full-screen-dialog-header-action-label-text-fill), "HEXP" var(--md-comp-full-screen-dialog-header-action-label-text-hexp);color:var(--md-comp-full-screen-dialog-header-action-label-text-color)}.Dialog>.modal.fullscreen>.container>.content{padding:12px 24px;flex:1;padding-bottom:24px;overflow:auto}.Dialog>.content-hide{display:none}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});require('./style.css');const e=require("../../_virtual/_rolldown/runtime.cjs");;/* empty css */let t=require("react/compiler-runtime"),n=require("classnames");n=e.__toESM(n,1);let r=require("react/jsx-runtime");function i(e){let i=(0,t.c)(10),a;i[0]!==e.className||i[1]!==e.vertical?(a=(0,n.default)(`Divider`,{vertical:e.vertical},e.className),i[0]=e.className,i[1]=e.vertical,i[2]=a):a=i[2];let o;i[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,r.jsx)(`div`,{className:`line`}),i[3]=o):o=i[3];let s;i[4]===e.text?s=i[5]:(s=e.text&&(0,r.jsx)(`span`,{className:`text`,children:e.text}),i[4]=e.text,i[5]=s);let c;i[6]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,r.jsx)(`div`,{className:`line`}),i[6]=c):c=i[6];let l;return i[7]!==a||i[8]!==s?(l=(0,r.jsxs)(`div`,{className:a,children:[o,s,c]}),i[7]=a,i[8]=s,i[9]=l):l=i[9],l}exports.default=i;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import './style.css';/* empty css */
|
|
2
|
+
import { c as e } from "react/compiler-runtime";
|
|
3
|
+
import t from "classnames";
|
|
4
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
|
+
//#region lib/components/Divider/index.tsx
|
|
6
|
+
function i(i) {
|
|
7
|
+
let a = e(10), o;
|
|
8
|
+
a[0] !== i.className || a[1] !== i.vertical ? (o = t("Divider", { vertical: i.vertical }, i.className), a[0] = i.className, a[1] = i.vertical, a[2] = o) : o = a[2];
|
|
9
|
+
let s;
|
|
10
|
+
a[3] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ n("div", { className: "line" }), a[3] = s) : s = a[3];
|
|
11
|
+
let c;
|
|
12
|
+
a[4] === i.text ? c = a[5] : (c = i.text && /* @__PURE__ */ n("span", {
|
|
13
|
+
className: "text",
|
|
14
|
+
children: i.text
|
|
15
|
+
}), a[4] = i.text, a[5] = c);
|
|
16
|
+
let l;
|
|
17
|
+
a[6] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ n("div", { className: "line" }), a[6] = l) : l = a[6];
|
|
18
|
+
let u;
|
|
19
|
+
return a[7] !== o || a[8] !== c ? (u = /* @__PURE__ */ r("div", {
|
|
20
|
+
className: o,
|
|
21
|
+
children: [
|
|
22
|
+
s,
|
|
23
|
+
c,
|
|
24
|
+
l
|
|
25
|
+
]
|
|
26
|
+
}), a[7] = o, a[8] = c, a[9] = u) : u = a[9], u;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { i as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.Divider{align-self:stretch;align-items:center;display:flex}.Divider .line{background-color:var(--md-comp-divider-color);transition:background-color .25s}.Divider .text{color:var(--md-sys-color-on-surface-variant);font-family:var(--md-sys-typescale-label-large-font);font-weight:var(--md-sys-typescale-label-large-weight);font-size:var(--md-sys-typescale-label-large-size);letter-spacing:var(--md-sys-typescale-label-large-tracking);line-height:var(--md-sys-typescale-label-large-line-height);font-variation-settings:"wght" var(--md-sys-typescale-label-large-wght), "GRAD" var(--md-sys-typescale-label-large-grad), "wdth" var(--md-sys-typescale-label-large-wdth), "ROND" var(--md-sys-typescale-label-large-rond), "opsz" var(--md-sys-typescale-label-large-opsz), "CRSV" var(--md-sys-typescale-label-large-crsv), "slnt" var(--md-sys-typescale-label-large-slnt), "FILL" var(--md-sys-typescale-label-large-fill), "HEXP" var(--md-sys-typescale-label-large-hexp);transition:color .25s}.Divider:not(.vertical){margin:8px}.Divider:not(.vertical) .line{height:var(--md-comp-divider-thickness);flex:auto}.Divider.vertical{flex-direction:column}.Divider.vertical .line{width:var(--md-comp-divider-thickness);flex:auto}.Divider.vertical .text{writing-mode:vertical-rl;text-orientation:upright;margin:8px 0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require('./style.css');const e=require("../../_virtual/_rolldown/runtime.cjs");;/* empty css */let t=require("react/compiler-runtime"),n=require("classnames");n=e.__toESM(n,1);let r=require("react");r=e.__toESM(r,1);let i=require("react/jsx-runtime");require("material-symbols/index.css");function a(e){return typeof e==`string`?(0,i.jsx)(c,{name:e}):r.default.isValidElement(e)?e:null}var o=(0,r.createContext)(null),s=()=>(0,r.useContext)(o);function c(e){let t=s(),a=typeof e.size==`number`?`${e.size}px`:e.size,o=e.opticalSize??(typeof e.size==`string`?parseFloat(e.size):e.size),c=e.emphasis===`low`?-25:e.emphasis===`high`?200:void 0,l=t?.emphasis===`low`?-25:t?.emphasis===`high`?200:void 0,u=(0,r.useMemo)(()=>({[(t?t.type:e.type)??`outlined`]:!0,fill:t?t.fill:e.fill}),[t,e.fill,e.type]),d=(0,r.useMemo)(()=>({"--md-comp-icon-size":t?typeof t.size==`number`?`${t.size}px`:t.size:a,"--md-comp-icon-weight":t?t.weight:e.weight,"--md-comp-icon-grade":t?l:c,"--md-comp-icon-optical-size":t?t.opticalSize:o}),[t,l,c,o,e.weight,a]);return(0,i.jsx)(`span`,{className:(0,n.default)(`Icon`,u,e.className),style:d,children:e.name})}function l(e){let n=(0,t.c)(2),r;return n[0]===e?r=n[1]:(r=(0,i.jsx)(o.Provider,{value:e,children:e.children}),n[0]=e,n[1]=r),r}exports.IconProvider=l,exports.convertIconDefinition=a,exports.default=c,exports.useIconContext=s;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { MaterialSymbol } from 'material-symbols';
|
|
3
|
+
export interface IconProps {
|
|
4
|
+
name: MaterialSymbol;
|
|
5
|
+
type?: "outlined" | "rounded" | "sharp";
|
|
6
|
+
fill?: boolean;
|
|
7
|
+
emphasis?: "low" | "normal" | "high";
|
|
8
|
+
size?: number;
|
|
9
|
+
opticalSize?: number;
|
|
10
|
+
weight?: number;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
export type IconDefinition = MaterialSymbol | React.ReactElement<IconProps> | null | undefined;
|
|
14
|
+
export type IconContextData = Omit<IconProps, "name" | "className">;
|
|
15
|
+
export declare function convertIconDefinition(icon: IconDefinition): React.JSX.Element | null;
|
|
16
|
+
export declare const useIconContext: () => IconContextData | null;
|
|
17
|
+
export default function Icon(props: IconProps): React.JSX.Element;
|
|
18
|
+
export declare function IconProvider(props: React.PropsWithChildren<IconContextData>): React.JSX.Element;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import './style.css';/* empty css */
|
|
2
|
+
import { c as e } from "react/compiler-runtime";
|
|
3
|
+
import t from "classnames";
|
|
4
|
+
import n, { createContext as r, useContext as i, useMemo as a } from "react";
|
|
5
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
6
|
+
import "material-symbols/index.css";
|
|
7
|
+
//#region lib/components/Icon/Icon.tsx
|
|
8
|
+
function s(e) {
|
|
9
|
+
return typeof e == "string" ? /* @__PURE__ */ o(u, { name: e }) : n.isValidElement(e) ? e : null;
|
|
10
|
+
}
|
|
11
|
+
var c = r(null), l = () => i(c);
|
|
12
|
+
function u(e) {
|
|
13
|
+
let n = l(), r = typeof e.size == "number" ? `${e.size}px` : e.size, i = e.opticalSize ?? (typeof e.size == "string" ? parseFloat(e.size) : e.size), s = e.emphasis === "low" ? -25 : e.emphasis === "high" ? 200 : void 0, c = n?.emphasis === "low" ? -25 : n?.emphasis === "high" ? 200 : void 0, u = a(() => ({
|
|
14
|
+
[(n ? n.type : e.type) ?? "outlined"]: !0,
|
|
15
|
+
fill: n ? n.fill : e.fill
|
|
16
|
+
}), [
|
|
17
|
+
n,
|
|
18
|
+
e.fill,
|
|
19
|
+
e.type
|
|
20
|
+
]), d = a(() => ({
|
|
21
|
+
"--md-comp-icon-size": n ? typeof n.size == "number" ? `${n.size}px` : n.size : r,
|
|
22
|
+
"--md-comp-icon-weight": n ? n.weight : e.weight,
|
|
23
|
+
"--md-comp-icon-grade": n ? c : s,
|
|
24
|
+
"--md-comp-icon-optical-size": n ? n.opticalSize : i
|
|
25
|
+
}), [
|
|
26
|
+
n,
|
|
27
|
+
c,
|
|
28
|
+
s,
|
|
29
|
+
i,
|
|
30
|
+
e.weight,
|
|
31
|
+
r
|
|
32
|
+
]);
|
|
33
|
+
return /* @__PURE__ */ o("span", {
|
|
34
|
+
className: t("Icon", u, e.className),
|
|
35
|
+
style: d,
|
|
36
|
+
children: e.name
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function d(t) {
|
|
40
|
+
let n = e(2), r;
|
|
41
|
+
return n[0] === t ? r = n[1] : (r = /* @__PURE__ */ o(c.Provider, {
|
|
42
|
+
value: t,
|
|
43
|
+
children: t.children
|
|
44
|
+
}), n[0] = t, n[1] = r), r;
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
export { d as IconProvider, s as convertIconDefinition, u as default, l as useIconContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./Icon.cjs");exports.default=e.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Icon.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.Icon.outlined{font-family:Material Symbols Outlined}.Icon.rounded{font-family:Material Symbols Rounded}.Icon.sharp{font-family:Material Symbols Sharp}.Icon.fill{font-variation-settings:"FILL" 1, "GRAD" var(--md-comp-icon-grade), "wght" var(--md-comp-icon-weight), "opsz" var(--md-comp-icon-optical-size)}.Icon:not(.fill){font-variation-settings:"FILL" 0, "GRAD" var(--md-comp-icon-grade), "wght" var(--md-comp-icon-weight), "opsz" var(--md-comp-icon-optical-size)}.Icon{color:rgba(from var(--md-comp-icon-color,transparent) r g b/var(--md-comp-icon-opacity,0));font-style:normal;font-size:var(--md-comp-icon-size);font-weight:var(--md-comp-icon-weight);letter-spacing:normal;text-transform:none;white-space:nowrap;word-wrap:normal;-moz-font-feature-settings:"liga";-webkit-font-feature-settings:"liga";font-feature-settings:"liga";-moz-osx-font-smoothing:grayscale;user-select:none;transition:font-variation-settings var(--md-comp-icon-spring-duration) var(--md-comp-icon-spring-easing), color var(--md-comp-icon-spring-duration) var(--md-comp-icon-spring-easing);direction:ltr;line-height:1}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./Menu.render.cjs");let t=require("react/compiler-runtime"),n=require("react/jsx-runtime");function r(r){let i=(0,t.c)(2),a;return i[0]===r?a=i[1]:(a=(0,n.jsx)(e.default,{...r}),i[0]=r,i[1]=a),a}exports.default=r;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "./Menu.render.js";
|
|
2
|
+
import { c as t } from "react/compiler-runtime";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
//#region lib/components/Menu/Menu.tsx
|
|
5
|
+
function r(r) {
|
|
6
|
+
let i = t(2), a;
|
|
7
|
+
return i[0] === r ? a = i[1] : (a = /* @__PURE__ */ n(e, { ...r }), i[0] = r, i[1] = a), a;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { r as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require('./style.css');const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../misc/OrderedCollection/index.cjs"),n=require("./MenuContainer.cjs"),r=require("./MenuGroup.render.cjs");;/* empty css */let i=require("classnames");i=e.__toESM(i,1);let a=require("react"),o=require("react/jsx-runtime"),s=require("react-dom-event-hooks");function c(e){let c=(0,a.useId)(),{ref:l,color:u=e.menuProps?.color??`standard`,layout:d=e.menuProps?.layout??`standard`,density:f=e.menuProps?.density??0,groups:p,menuProps:m,...h}=e,[g,_]=(0,a.useState)([]),v=p??g,[y,b]=(0,a.useState)(0),x=(0,a.useMemo)(()=>m??{color:u,layout:d,density:f,classNames:e.className},[u,f,d,m,e.className]),S=(0,a.useMemo)(()=>(0,o.jsx)(r.MenuGroupsRender,{groups:v,menuProps:x}),[v,x]),C=(0,a.useMemo)(()=>d===`standard`?(0,o.jsx)(`div`,{className:`MenuGroup container`,children:S}):S,[d,S]),{saveRef:w}=(0,s.useResizeObserver)(([e])=>b(e.borderBoxSize.at(0)?.blockSize??0));return(0,o.jsxs)(`div`,{...(0,a.useMemo)(()=>t.cleanOrderedCollectionProps(h),[h]),ref:l,className:(0,i.default)(`Menu`,{SubMenu:e.groups?.length,[`${d}-layout`]:!0,[`${u}-color`]:!0,[`density${f}`]:f},e.className),"data-key":e.id??c,style:{"--menu-height":`${y}px`},children:[!!v.length&&C,(0,o.jsx)(`div`,{ref:w,className:`size-ref`,children:C}),!p&&(0,o.jsx)(n.default,{setGroups:_,children:e.children})]})}exports.default=c;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MenuGroupData } from './MenuGroup';
|
|
2
|
+
import { OrderedCollectionChildData } from '../misc/OrderedCollection';
|
|
3
|
+
import { HTMLAttributes, PropsWithChildren, Ref } from 'react';
|
|
4
|
+
export interface MenuPropsBase {
|
|
5
|
+
color?: "standard" | "vibrant";
|
|
6
|
+
layout?: "standard" | "grouped";
|
|
7
|
+
density?: 0 | -1 | -2 | -3;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface MenuProps extends Omit<HTMLAttributes<HTMLDivElement>, "color">, MenuPropsBase {
|
|
11
|
+
ref?: Ref<HTMLDivElement>;
|
|
12
|
+
menuProps?: MenuProps;
|
|
13
|
+
groups?: OrderedCollectionChildData<MenuGroupData>[];
|
|
14
|
+
}
|
|
15
|
+
export default function MenuRender(props: PropsWithChildren<MenuProps>): import('react').JSX.Element;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { cleanOrderedCollectionProps as e } from "../misc/OrderedCollection/index.js";
|
|
2
|
+
import t from "./MenuContainer.js";
|
|
3
|
+
import { MenuGroupsRender as n } from "./MenuGroup.render.js";
|
|
4
|
+
import './style.css';/* empty css */
|
|
5
|
+
import r from "classnames";
|
|
6
|
+
import { useId as i, useMemo as a, useState as o } from "react";
|
|
7
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
|
+
import { useResizeObserver as l } from "react-dom-event-hooks";
|
|
9
|
+
//#region lib/components/Menu/Menu.render.tsx
|
|
10
|
+
function u(u) {
|
|
11
|
+
let d = i(), { ref: f, color: p = u.menuProps?.color ?? "standard", layout: m = u.menuProps?.layout ?? "standard", density: h = u.menuProps?.density ?? 0, groups: g, menuProps: _, ...v } = u, [y, b] = o([]), x = g ?? y, [S, C] = o(0), w = a(() => _ ?? {
|
|
12
|
+
color: p,
|
|
13
|
+
layout: m,
|
|
14
|
+
density: h,
|
|
15
|
+
classNames: u.className
|
|
16
|
+
}, [
|
|
17
|
+
p,
|
|
18
|
+
h,
|
|
19
|
+
m,
|
|
20
|
+
_,
|
|
21
|
+
u.className
|
|
22
|
+
]), T = a(() => /* @__PURE__ */ s(n, {
|
|
23
|
+
groups: x,
|
|
24
|
+
menuProps: w
|
|
25
|
+
}), [x, w]), E = a(() => m === "standard" ? /* @__PURE__ */ s("div", {
|
|
26
|
+
className: "MenuGroup container",
|
|
27
|
+
children: T
|
|
28
|
+
}) : T, [m, T]), { saveRef: D } = l(([e]) => C(e.borderBoxSize.at(0)?.blockSize ?? 0));
|
|
29
|
+
return /* @__PURE__ */ c("div", {
|
|
30
|
+
...a(() => e(v), [v]),
|
|
31
|
+
ref: f,
|
|
32
|
+
className: r("Menu", {
|
|
33
|
+
SubMenu: u.groups?.length,
|
|
34
|
+
[`${m}-layout`]: !0,
|
|
35
|
+
[`${p}-color`]: !0,
|
|
36
|
+
[`density${h}`]: h
|
|
37
|
+
}, u.className),
|
|
38
|
+
"data-key": u.id ?? d,
|
|
39
|
+
style: { "--menu-height": `${S}px` },
|
|
40
|
+
children: [
|
|
41
|
+
!!x.length && E,
|
|
42
|
+
/* @__PURE__ */ s("div", {
|
|
43
|
+
ref: D,
|
|
44
|
+
className: "size-ref",
|
|
45
|
+
children: E
|
|
46
|
+
}),
|
|
47
|
+
!g && /* @__PURE__ */ s(t, {
|
|
48
|
+
setGroups: b,
|
|
49
|
+
children: u.children
|
|
50
|
+
})
|
|
51
|
+
]
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
//#endregion
|
|
55
|
+
export { u as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("../../utils/index.cjs"),t=require("../misc/OrderedCollection/index.cjs");let n=require("react/compiler-runtime"),r=require("react"),i=require("react/jsx-runtime");function a(a){let c=(0,n.c)(15),{setGroups:l}=a,u;c[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=[],c[0]=u):u=c[0];let[d,f]=(0,r.useState)(u),p;c[1]===d?p=c[2]:(p=d.filter(s),c[1]=d,c[2]=p);let m=p,h;c[3]===m?h=c[4]:(h={id:`__default`,orderedCollectionName:`MenuGroup`,items:m},c[3]=m,c[4]=h);let g=h,_;c[5]===d?_=c[6]:(_=d.filter(o),c[5]=d,c[6]=_);let v=_,y,b;c[7]!==g||c[8]!==v||c[9]!==l?(y=()=>{g.items.length?l([g,...v]):l(v)},b=[g,v,l],c[7]=g,c[8]=v,c[9]=l,c[10]=y,c[11]=b):(y=c[10],b=c[11]),(0,r.useEffect)(y,b);let x;c[12]===Symbol.for(`react.memo_cache_sentinel`)?(x=[`MenuItem`,`MenuGroup`],c[12]=x):x=c[12];let S;return c[13]===a.children?S=c[14]:(S=(0,i.jsx)(t.default,{name:`Menu`,childName:x,onChildrenChange:f,compareChild:e.shallowEqual,children:a.children}),c[13]=a.children,c[14]=S),S}function o(e){return e.orderedCollectionName===`MenuGroup`}function s(e){return e.orderedCollectionName===`MenuItem`}exports.default=a;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MenuGroupData } from './MenuGroup';
|
|
2
|
+
import { OrderedCollectionChildData } from '../misc/OrderedCollection';
|
|
3
|
+
import { PropsWithChildren } from 'react';
|
|
4
|
+
export interface MenuContainerData {
|
|
5
|
+
setGroups: (groups: OrderedCollectionChildData<MenuGroupData>[]) => void;
|
|
6
|
+
}
|
|
7
|
+
export default function MenuContainer(props: PropsWithChildren<MenuContainerData>): import('react').JSX.Element;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { shallowEqual as e } from "../../utils/index.js";
|
|
2
|
+
import t from "../misc/OrderedCollection/index.js";
|
|
3
|
+
import { c as n } from "react/compiler-runtime";
|
|
4
|
+
import { useEffect as r, useState as i } from "react";
|
|
5
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
6
|
+
//#region lib/components/Menu/MenuContainer.tsx
|
|
7
|
+
function o(o) {
|
|
8
|
+
let l = n(15), { setGroups: u } = o, d;
|
|
9
|
+
l[0] === Symbol.for("react.memo_cache_sentinel") ? (d = [], l[0] = d) : d = l[0];
|
|
10
|
+
let [f, p] = i(d), m;
|
|
11
|
+
l[1] === f ? m = l[2] : (m = f.filter(c), l[1] = f, l[2] = m);
|
|
12
|
+
let h = m, g;
|
|
13
|
+
l[3] === h ? g = l[4] : (g = {
|
|
14
|
+
id: "__default",
|
|
15
|
+
orderedCollectionName: "MenuGroup",
|
|
16
|
+
items: h
|
|
17
|
+
}, l[3] = h, l[4] = g);
|
|
18
|
+
let _ = g, v;
|
|
19
|
+
l[5] === f ? v = l[6] : (v = f.filter(s), l[5] = f, l[6] = v);
|
|
20
|
+
let y = v, b, x;
|
|
21
|
+
l[7] !== _ || l[8] !== y || l[9] !== u ? (b = () => {
|
|
22
|
+
_.items.length ? u([_, ...y]) : u(y);
|
|
23
|
+
}, x = [
|
|
24
|
+
_,
|
|
25
|
+
y,
|
|
26
|
+
u
|
|
27
|
+
], l[7] = _, l[8] = y, l[9] = u, l[10] = b, l[11] = x) : (b = l[10], x = l[11]), r(b, x);
|
|
28
|
+
let S;
|
|
29
|
+
l[12] === Symbol.for("react.memo_cache_sentinel") ? (S = ["MenuItem", "MenuGroup"], l[12] = S) : S = l[12];
|
|
30
|
+
let C;
|
|
31
|
+
return l[13] === o.children ? C = l[14] : (C = /* @__PURE__ */ a(t, {
|
|
32
|
+
name: "Menu",
|
|
33
|
+
childName: S,
|
|
34
|
+
onChildrenChange: p,
|
|
35
|
+
compareChild: e,
|
|
36
|
+
children: o.children
|
|
37
|
+
}), l[13] = o.children, l[14] = C), C;
|
|
38
|
+
}
|
|
39
|
+
function s(e) {
|
|
40
|
+
return e.orderedCollectionName === "MenuGroup";
|
|
41
|
+
}
|
|
42
|
+
function c(e) {
|
|
43
|
+
return e.orderedCollectionName === "MenuItem";
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
export { o as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("../../utils/index.cjs"),t=require("../misc/OrderedCollection/index.cjs");let n=require("react/compiler-runtime"),r=require("react"),i=require("react/jsx-runtime");function a(a){let o=(0,n.c)(13),s=(0,r.useId)(),c;o[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=[],o[0]=c):c=o[0];let[l,u]=(0,r.useState)(c),d;o[1]!==l||o[2]!==s||o[3]!==a.label?(d={id:s,label:a.label,items:l},o[1]=l,o[2]=s,o[3]=a.label,o[4]=d):d=o[4];let f=d,p;o[5]!==f||o[6]!==s?(p=(0,i.jsx)(t.OrderedCollectionChild,{name:`MenuGroup`,id:s,content:f}),o[5]=f,o[6]=s,o[7]=p):p=o[7];let m;o[8]===a.children?m=o[9]:(m=(0,i.jsx)(t.default,{name:`MenuGroup`,childName:`MenuItem`,onChildrenChange:u,compareChild:e.shallowEqual,children:a.children}),o[8]=a.children,o[9]=m);let h;return o[10]!==p||o[11]!==m?(h=(0,i.jsxs)(i.Fragment,{children:[p,m]}),o[10]=p,o[11]=m,o[12]=h):h=o[12],h}exports.default=a;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MenuItemData } from './MenuItem';
|
|
2
|
+
import { OrderedCollectionChildData } from '../misc/OrderedCollection';
|
|
3
|
+
import { PropsWithChildren } from 'react';
|
|
4
|
+
export interface MenuGroupProps {
|
|
5
|
+
label?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface MenuGroupData extends MenuGroupProps {
|
|
8
|
+
id: string;
|
|
9
|
+
items: OrderedCollectionChildData<MenuItemData>[];
|
|
10
|
+
}
|
|
11
|
+
export default function MenuGroup(props: PropsWithChildren<MenuGroupProps>): import('react').JSX.Element;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { shallowEqual as e } from "../../utils/index.js";
|
|
2
|
+
import t, { OrderedCollectionChild as n } from "../misc/OrderedCollection/index.js";
|
|
3
|
+
import { c as r } from "react/compiler-runtime";
|
|
4
|
+
import { useId as i, useState as a } from "react";
|
|
5
|
+
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
|
+
//#region lib/components/Menu/MenuGroup.tsx
|
|
7
|
+
function l(l) {
|
|
8
|
+
let u = r(13), d = i(), f;
|
|
9
|
+
u[0] === Symbol.for("react.memo_cache_sentinel") ? (f = [], u[0] = f) : f = u[0];
|
|
10
|
+
let [p, m] = a(f), h;
|
|
11
|
+
u[1] !== p || u[2] !== d || u[3] !== l.label ? (h = {
|
|
12
|
+
id: d,
|
|
13
|
+
label: l.label,
|
|
14
|
+
items: p
|
|
15
|
+
}, u[1] = p, u[2] = d, u[3] = l.label, u[4] = h) : h = u[4];
|
|
16
|
+
let g = h, _;
|
|
17
|
+
u[5] !== g || u[6] !== d ? (_ = /* @__PURE__ */ s(n, {
|
|
18
|
+
name: "MenuGroup",
|
|
19
|
+
id: d,
|
|
20
|
+
content: g
|
|
21
|
+
}), u[5] = g, u[6] = d, u[7] = _) : _ = u[7];
|
|
22
|
+
let v;
|
|
23
|
+
u[8] === l.children ? v = u[9] : (v = /* @__PURE__ */ s(t, {
|
|
24
|
+
name: "MenuGroup",
|
|
25
|
+
childName: "MenuItem",
|
|
26
|
+
onChildrenChange: m,
|
|
27
|
+
compareChild: e,
|
|
28
|
+
children: l.children
|
|
29
|
+
}), u[8] = l.children, u[9] = v);
|
|
30
|
+
let y;
|
|
31
|
+
return u[10] !== _ || u[11] !== v ? (y = /* @__PURE__ */ c(o, { children: [_, v] }), u[10] = _, u[11] = v, u[12] = y) : y = u[12], y;
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { l as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("../Divider/index.cjs"),t=require("./MenuItem.render.cjs");let n=require("react"),r=require("react/jsx-runtime");function i(i){let{groups:a,menuProps:o}=i;return a.map((i,a)=>o.layout===`standard`?(0,r.jsxs)(n.Fragment,{children:[!!a&&(0,r.jsx)(e.default,{}),i.label&&(0,r.jsx)(`div`,{className:`label`,children:i.label}),i.items.map(e=>(0,r.jsx)(t.default,{item:e,menuProps:o},e.id))]},i.id):(0,r.jsxs)(`div`,{className:`MenuGroup`,"data-menu-group-id":i.id,children:[i.label&&(0,r.jsx)(`div`,{className:`label`,children:i.label}),i.items.map(e=>(0,r.jsx)(t.default,{item:e,menuProps:o},e.id))]},i.id))}exports.MenuGroupsRender=i;
|