@viasat/beam-react 2.42.0 → 2.43.1
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/assets/FloatingUI.css +1 -1
- package/assets/Search.css +1 -1
- package/assets/TextField.css +1 -1
- package/assets/combobox.css +1 -1
- package/assets/panel.css +1 -1
- package/chunks/FloatingUI.arrow.DDrTOpE-.js +1 -0
- package/chunks/{FloatingUI.arrow.90ecVA1X.js → FloatingUI.arrow.DGlk005P.js} +8 -7
- package/chunks/panel.module.BzLGa7GY.js +1 -0
- package/chunks/{panel.module.CnHWv4EZ.js → panel.module.CgFBtvbR.js} +6 -6
- package/lib/Autocomplete/AutocompleteDropdown.cjs.js +1 -1
- package/lib/Autocomplete/AutocompleteDropdown.es.js +1 -1
- package/lib/FloatingUI/FloatingUI.arrow.cjs.js +1 -1
- package/lib/FloatingUI/FloatingUI.arrow.es.js +1 -1
- package/lib/FloatingUI/FloatingUI.content.cjs.js +1 -1
- package/lib/FloatingUI/FloatingUI.content.es.js +1 -1
- package/lib/Search/SearchDropdown.cjs.js +1 -1
- package/lib/Search/SearchDropdown.es.js +1 -1
- package/lib/Select/SelectDropdown.cjs.js +1 -1
- package/lib/Select/SelectDropdown.es.js +1 -1
- package/lib/_Options/OptionChips.cjs.js +1 -1
- package/lib/_Options/OptionChips.es.js +3 -2
- package/lib/wip/Panel/Footer/Panel.Footer.Actions.cjs.js +1 -1
- package/lib/wip/Panel/Footer/Panel.Footer.Actions.d.ts +1 -1
- package/lib/wip/Panel/Footer/Panel.Footer.Actions.es.js +1 -1
- package/lib/wip/Panel/Footer/Panel.Footer.cjs.js +1 -1
- package/lib/wip/Panel/Footer/Panel.Footer.d.ts +1 -1
- package/lib/wip/Panel/Footer/Panel.Footer.es.js +21 -20
- package/lib/wip/Panel/Header/Panel.Header.ContentAfter.cjs.js +1 -1
- package/lib/wip/Panel/Header/Panel.Header.ContentAfter.d.ts +1 -1
- package/lib/wip/Panel/Header/Panel.Header.ContentAfter.es.js +1 -1
- package/lib/wip/Panel/Header/Panel.Header.ContentBefore.cjs.js +1 -1
- package/lib/wip/Panel/Header/Panel.Header.ContentBefore.d.ts +1 -1
- package/lib/wip/Panel/Header/Panel.Header.ContentBefore.es.js +1 -1
- package/lib/wip/Panel/Header/Panel.Header.Description.cjs.js +1 -1
- package/lib/wip/Panel/Header/Panel.Header.Description.d.ts +1 -1
- package/lib/wip/Panel/Header/Panel.Header.Description.es.js +1 -1
- package/lib/wip/Panel/Header/Panel.Header.Heading.cjs.js +1 -1
- package/lib/wip/Panel/Header/Panel.Header.Heading.d.ts +1 -1
- package/lib/wip/Panel/Header/Panel.Header.Heading.es.js +1 -1
- package/lib/wip/Panel/Header/Panel.Header.Row.cjs.js +1 -1
- package/lib/wip/Panel/Header/Panel.Header.Row.es.js +1 -1
- package/lib/wip/Panel/Header/Panel.Header.Subheader.cjs.js +1 -1
- package/lib/wip/Panel/Header/Panel.Header.Subheader.es.js +1 -1
- package/lib/wip/Panel/Header/Panel.Header.cjs.js +1 -1
- package/lib/wip/Panel/Header/Panel.Header.d.ts +1 -1
- package/lib/wip/Panel/Header/Panel.Header.es.js +35 -34
- package/lib/wip/Panel/Panel.Body.cjs.js +1 -1
- package/lib/wip/Panel/Panel.Body.d.ts +1 -1
- package/lib/wip/Panel/Panel.Body.es.js +16 -14
- package/lib/wip/Panel/Panel.Inline.cjs.js +1 -1
- package/lib/wip/Panel/Panel.Inline.d.ts +3 -3
- package/lib/wip/Panel/Panel.Inline.es.js +4 -4
- package/lib/wip/Panel/Panel.Overlay.cjs.js +1 -1
- package/lib/wip/Panel/Panel.Overlay.d.ts +3 -3
- package/lib/wip/Panel/Panel.Overlay.es.js +83 -80
- package/lib/wip/Panel/Panel.ResizeHandle.cjs.js +1 -1
- package/lib/wip/Panel/Panel.ResizeHandle.es.js +1 -1
- package/lib/wip/Panel/Panel.cjs.js +1 -1
- package/lib/wip/Panel/Panel.context.d.ts +12 -1
- package/lib/wip/Panel/Panel.d.ts +2 -2
- package/lib/wip/Panel/Panel.es.js +135 -120
- package/lib/wip/Panel/Panel.helpers.cjs.js +1 -1
- package/lib/wip/Panel/Panel.helpers.d.ts +3 -3
- package/lib/wip/Panel/Panel.helpers.es.js +19 -19
- package/lib/wip/Panel/Panel.types.d.ts +94 -92
- package/lib/wip/Panel/index.d.ts +1 -1
- package/package.json +6 -6
- package/chunks/FloatingUI.arrow.DR8hzVDP.js +0 -1
- package/chunks/panel.module.BVmRxZHo.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),x=require("clsx"),b=require("../../../../chunks/classNames.DC8Ra4sw.js");require("../../../../chunks/constants.CgMu0_1M.js");const C=require("../../../Divider/Divider.cjs.js"),P=require("../../../Box/Box.cjs.js"),m=require("../Panel.helpers.cjs.js"),q=require("../Panel.context.cjs.js"),v=require("./Panel.Footer.Actions.cjs.js"),g=require("../../../../chunks/panel.module.BzLGa7GY.js"),{subElementClassPrefix:p}=b.getBEMClassNames("panel"),D=`${p}footer`,o=({children:r,className:s,divider:t=!0,dividerColor:i,backgroundColor:n,...l})=>{const{backgroundColor:c,dividerColor:a}=q.usePanelContext(),_=i??a??m.DEFAULT_PANEL_DIVIDER_COLOR,u=n??c,d=x(g.styles[D],s);return e.jsxs(e.Fragment,{children:[t&&e.jsx(C.Divider,{borderColor:_}),e.jsx(P.Box,{as:"footer",className:d,backgroundColor:u,...l,children:r})]})};o.displayName="Panel.Footer";o.Actions=v.Actions;exports.Footer=o;
|
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { g
|
|
1
|
+
import { jsxs as f, Fragment as C, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import x from "clsx";
|
|
3
|
+
import { g } from "../../../../chunks/classNames.ZWNk1hey.js";
|
|
4
4
|
import "../../../../chunks/constants.Cruz2A1w.js";
|
|
5
|
-
import { Divider as
|
|
6
|
-
import { Box as
|
|
7
|
-
import { DEFAULT_PANEL_DIVIDER_COLOR as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
5
|
+
import { Divider as u } from "../../../Divider/Divider.es.js";
|
|
6
|
+
import { Box as v } from "../../../Box/Box.es.js";
|
|
7
|
+
import { DEFAULT_PANEL_DIVIDER_COLOR as D } from "../Panel.helpers.es.js";
|
|
8
|
+
import { usePanelContext as b } from "../Panel.context.es.js";
|
|
9
|
+
import { Actions as E } from "./Panel.Footer.Actions.es.js";
|
|
10
|
+
import { s as N } from "../../../../chunks/panel.module.CgFBtvbR.js";
|
|
11
|
+
const { subElementClassPrefix: A } = g("panel"), B = `${A}footer`, r = ({
|
|
11
12
|
children: s,
|
|
12
13
|
className: t,
|
|
13
14
|
divider: e = !0,
|
|
14
|
-
dividerColor: m
|
|
15
|
-
backgroundColor:
|
|
16
|
-
...
|
|
15
|
+
dividerColor: m,
|
|
16
|
+
backgroundColor: i,
|
|
17
|
+
...l
|
|
17
18
|
}) => {
|
|
18
|
-
const
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
-
e && /* @__PURE__ */ o(
|
|
19
|
+
const { backgroundColor: a, dividerColor: n } = b(), c = m ?? n ?? D, p = i ?? a, d = x(N[B], t);
|
|
20
|
+
return /* @__PURE__ */ f(C, { children: [
|
|
21
|
+
e && /* @__PURE__ */ o(u, { borderColor: c }),
|
|
21
22
|
/* @__PURE__ */ o(
|
|
22
|
-
|
|
23
|
+
v,
|
|
23
24
|
{
|
|
24
25
|
as: "footer",
|
|
25
|
-
className:
|
|
26
|
-
backgroundColor:
|
|
27
|
-
...
|
|
26
|
+
className: d,
|
|
27
|
+
backgroundColor: p,
|
|
28
|
+
...l,
|
|
28
29
|
children: s
|
|
29
30
|
}
|
|
30
31
|
)
|
|
31
32
|
] });
|
|
32
33
|
};
|
|
33
34
|
r.displayName = "Panel.Footer";
|
|
34
|
-
r.Actions =
|
|
35
|
+
r.Actions = E;
|
|
35
36
|
export {
|
|
36
37
|
r as Footer
|
|
37
38
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),l=require("clsx"),o=require("../../../../chunks/classNames.DC8Ra4sw.js");require("../../../../chunks/constants.CgMu0_1M.js");const c=require("../../../../chunks/panel.module.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),l=require("clsx"),o=require("../../../../chunks/classNames.DC8Ra4sw.js");require("../../../../chunks/constants.CgMu0_1M.js");const c=require("../../../../chunks/panel.module.BzLGa7GY.js"),{subElementClassPrefix:i}=o.getBEMClassNames("panel"),u=`${i}header`,e=({children:s,className:t,...n})=>{const r=l(c.styles[`${u}__content-after`],t);return a.jsx("div",{className:r,...n,children:s})};e.displayName="Panel.Header.ContentAfter";exports.ContentAfter=e;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React, ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
export interface PanelHeaderContentAfterProps extends ComponentPropsWithoutRef<'div'> {
|
|
3
3
|
/**
|
|
4
|
-
* Specify the content after the heading
|
|
4
|
+
* Specify the content shown after the heading
|
|
5
5
|
*/
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
}
|
|
@@ -2,7 +2,7 @@ import { jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import o from "clsx";
|
|
3
3
|
import { g as m } from "../../../../chunks/classNames.ZWNk1hey.js";
|
|
4
4
|
import "../../../../chunks/constants.Cruz2A1w.js";
|
|
5
|
-
import { s as n } from "../../../../chunks/panel.module.
|
|
5
|
+
import { s as n } from "../../../../chunks/panel.module.CgFBtvbR.js";
|
|
6
6
|
const { subElementClassPrefix: l } = m("panel"), c = `${l}header`, f = ({
|
|
7
7
|
children: s,
|
|
8
8
|
className: e,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),a=require("clsx"),l=require("../../../../chunks/classNames.DC8Ra4sw.js");require("../../../../chunks/constants.CgMu0_1M.js");const c=require("../../../../chunks/panel.module.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),a=require("clsx"),l=require("../../../../chunks/classNames.DC8Ra4sw.js");require("../../../../chunks/constants.CgMu0_1M.js");const c=require("../../../../chunks/panel.module.BzLGa7GY.js"),{subElementClassPrefix:i}=l.getBEMClassNames("panel"),u=`${i}header`,e=({children:s,className:t,...n})=>{const r=a(c.styles[`${u}__content-before`],t);return o.jsx("div",{className:r,...n,children:s})};e.displayName="Panel.Header.ContentBefore";exports.ContentBefore=e;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React, ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
export interface PanelHeaderContentBeforeProps extends ComponentPropsWithoutRef<'div'> {
|
|
3
3
|
/**
|
|
4
|
-
* Specify the content before the heading
|
|
4
|
+
* Specify the content shown before the heading
|
|
5
5
|
*/
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
}
|
|
@@ -2,7 +2,7 @@ import { jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import a from "clsx";
|
|
3
3
|
import { g as m } from "../../../../chunks/classNames.ZWNk1hey.js";
|
|
4
4
|
import "../../../../chunks/constants.Cruz2A1w.js";
|
|
5
|
-
import { s as n } from "../../../../chunks/panel.module.
|
|
5
|
+
import { s as n } from "../../../../chunks/panel.module.CgFBtvbR.js";
|
|
6
6
|
const { subElementClassPrefix: l } = m("panel"), c = `${l}header`, f = ({
|
|
7
7
|
children: e,
|
|
8
8
|
className: s,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),n=require("clsx"),c=require("../../../../chunks/classNames.DC8Ra4sw.js");require("../../../../chunks/constants.CgMu0_1M.js");const l=require("../../../../chunks/panel.module.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),n=require("clsx"),c=require("../../../../chunks/classNames.DC8Ra4sw.js");require("../../../../chunks/constants.CgMu0_1M.js");const l=require("../../../../chunks/panel.module.BzLGa7GY.js"),{subElementClassPrefix:o}=c.getBEMClassNames("panel"),u=`${o}header`,e=({children:s,className:r,...t})=>{const a=n(l.styles[`${u}__description`],r);return i.jsx("div",{className:a,...t,children:s})};e.displayName="Panel.Header.Description";exports.Description=e;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React, ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
export interface PanelHeaderDescriptionProps extends ComponentPropsWithoutRef<'div'> {
|
|
3
3
|
/**
|
|
4
|
-
* Specify the description
|
|
4
|
+
* Specify the content for the header description
|
|
5
5
|
*/
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
}
|
|
@@ -2,7 +2,7 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import t from "clsx";
|
|
3
3
|
import { g as i } from "../../../../chunks/classNames.ZWNk1hey.js";
|
|
4
4
|
import "../../../../chunks/constants.Cruz2A1w.js";
|
|
5
|
-
import { s as m } from "../../../../chunks/panel.module.
|
|
5
|
+
import { s as m } from "../../../../chunks/panel.module.CgFBtvbR.js";
|
|
6
6
|
const { subElementClassPrefix: l } = i("panel"), n = `${l}header`, p = ({
|
|
7
7
|
children: s,
|
|
8
8
|
className: e,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react/jsx-runtime"),o=require("react"),g=require("clsx"),m=require("../../../../chunks/classNames.DC8Ra4sw.js");require("../../../../chunks/constants.CgMu0_1M.js");const q=require("../../../../chunks/FloatingUI.context.B15Tz_4h.js"),b=require("../Panel.context.cjs.js"),x=require("../../../../utils/hooks/useId.cjs.js"),I=require("../../../../chunks/panel.module.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react/jsx-runtime"),o=require("react"),g=require("clsx"),m=require("../../../../chunks/classNames.DC8Ra4sw.js");require("../../../../chunks/constants.CgMu0_1M.js");const q=require("../../../../chunks/FloatingUI.context.B15Tz_4h.js"),b=require("../Panel.context.cjs.js"),x=require("../../../../utils/hooks/useId.cjs.js"),I=require("../../../../chunks/panel.module.BzLGa7GY.js"),{subElementClassPrefix:y}=m.getBEMClassNames("panel"),P=`${y}header`,a=({children:r,className:i,id:c,...l})=>{const u=x.useId(),e=c??u,d=g(I.styles[`${P}__heading`],i),t=o.useContext(b.PanelContext),n=o.useContext(q.BmFloatingUIContext),s=(t==null?void 0:t.kind)==="overlay"?n==null?void 0:n.setLabelId:void 0;return o.useLayoutEffect(()=>{if(!(!s||!e))return s(e),()=>s(void 0)},[e,s]),_.jsx("div",{id:e,className:d,...l,children:r})};a.displayName="Panel.Header.Heading";exports.Heading=a;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React, ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
export interface PanelHeaderHeadingProps extends ComponentPropsWithoutRef<'div'> {
|
|
3
3
|
/**
|
|
4
|
-
* Specify the heading
|
|
4
|
+
* Specify the content for the heading
|
|
5
5
|
*/
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
}
|
|
@@ -6,7 +6,7 @@ import "../../../../chunks/constants.Cruz2A1w.js";
|
|
|
6
6
|
import { B as g } from "../../../../chunks/FloatingUI.context.Dl4Y1y1z.js";
|
|
7
7
|
import { PanelContext as x } from "../Panel.context.es.js";
|
|
8
8
|
import { useId as I } from "../../../../utils/hooks/useId.es.js";
|
|
9
|
-
import { s as b } from "../../../../chunks/panel.module.
|
|
9
|
+
import { s as b } from "../../../../chunks/panel.module.CgFBtvbR.js";
|
|
10
10
|
const { subElementClassPrefix: v } = u("panel"), y = `${v}header`, C = ({
|
|
11
11
|
children: a,
|
|
12
12
|
className: m,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("clsx"),b=require("../../../../chunks/classNames.DC8Ra4sw.js");require("../../../../chunks/constants.CgMu0_1M.js");const m=require("../../../CloseButton/CloseButton.cjs.js"),_=require("../../../Tooltip/Tooltip.cjs.js"),p=require("../Panel.context.cjs.js"),t=require("../../../../chunks/panel.module.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("clsx"),b=require("../../../../chunks/classNames.DC8Ra4sw.js");require("../../../../chunks/constants.CgMu0_1M.js");const m=require("../../../CloseButton/CloseButton.cjs.js"),_=require("../../../Tooltip/Tooltip.cjs.js"),p=require("../Panel.context.cjs.js"),t=require("../../../../chunks/panel.module.BzLGa7GY.js"),{subElementClassPrefix:x}=b.getBEMClassNames("panel"),l=`${x}header`,o=({children:n,className:r,...a})=>{const{dismissible:i,closeButtonAriaLabel:s,requestClose:c}=p.usePanelContext(),u=d(t.styles[`${l}__row`],r);return e.jsxs("div",{className:u,...a,children:[n,i&&e.jsx("div",{className:t.styles[`${l}__close-button`],children:e.jsx(_.Tooltip,{text:s,placement:"bottom",portalled:!0,role:{enabled:!1},children:e.jsx(m.CloseButton,{"aria-label":s,onClick:()=>c("closeButton"),size:"lg"})})})]})};o.displayName="Panel.Header.Row";exports.Row=o;
|
|
@@ -5,7 +5,7 @@ import "../../../../chunks/constants.Cruz2A1w.js";
|
|
|
5
5
|
import { CloseButton as f } from "../../../CloseButton/CloseButton.es.js";
|
|
6
6
|
import { Tooltip as u } from "../../../Tooltip/Tooltip.es.js";
|
|
7
7
|
import { usePanelContext as b } from "../Panel.context.es.js";
|
|
8
|
-
import { s as o } from "../../../../chunks/panel.module.
|
|
8
|
+
import { s as o } from "../../../../chunks/panel.module.CgFBtvbR.js";
|
|
9
9
|
const { subElementClassPrefix: x } = d("panel"), t = `${x}header`, C = ({
|
|
10
10
|
children: l,
|
|
11
11
|
className: r,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),n=require("clsx"),u=require("../../../../chunks/classNames.DC8Ra4sw.js");require("../../../../chunks/constants.CgMu0_1M.js");const c=require("../../../../chunks/panel.module.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),n=require("clsx"),u=require("../../../../chunks/classNames.DC8Ra4sw.js");require("../../../../chunks/constants.CgMu0_1M.js");const c=require("../../../../chunks/panel.module.BzLGa7GY.js"),{subElementClassPrefix:o}=u.getBEMClassNames("panel"),i=`${o}header`,e=({children:s,className:a,...r})=>{const t=n(c.styles[`${i}__subheader`],a);return l.jsx("div",{className:t,...r,children:s})};e.displayName="Panel.Header.Subheader";exports.Subheader=e;
|
|
@@ -2,7 +2,7 @@ import { jsx as m } from "react/jsx-runtime";
|
|
|
2
2
|
import o from "clsx";
|
|
3
3
|
import { g as t } from "../../../../chunks/classNames.ZWNk1hey.js";
|
|
4
4
|
import "../../../../chunks/constants.Cruz2A1w.js";
|
|
5
|
-
import { s as l } from "../../../../chunks/panel.module.
|
|
5
|
+
import { s as l } from "../../../../chunks/panel.module.CgFBtvbR.js";
|
|
6
6
|
const { subElementClassPrefix: i } = t("panel"), n = `${i}header`, p = ({
|
|
7
7
|
children: s,
|
|
8
8
|
className: e,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),P=require("clsx"),b=require("../../../../chunks/classNames.DC8Ra4sw.js");require("../../../../chunks/constants.CgMu0_1M.js");const H=require("../../../Divider/Divider.cjs.js"),C=require("../../../Box/Box.cjs.js"),p=require("../Panel.helpers.cjs.js"),q=require("../Panel.context.cjs.js"),x=require("./Panel.Header.Row.cjs.js"),g=require("./Panel.Header.ContentBefore.cjs.js"),w=require("./Panel.Header.Heading.cjs.js"),D=require("./Panel.Header.ContentAfter.cjs.js"),m=require("./Panel.Header.Description.cjs.js"),v=require("./Panel.Header.Subheader.cjs.js"),B=require("../../../../chunks/panel.module.BzLGa7GY.js"),{subElementClassPrefix:f}=b.getBEMClassNames("panel"),h=`${f}header`,e=({children:n,className:o,divider:a=!0,dividerColor:i,backgroundColor:t,...s})=>{const{backgroundColor:l,dividerColor:_}=q.usePanelContext(),d=i??_??p.DEFAULT_PANEL_DIVIDER_COLOR,c=t??l,u=P(B.styles[h],o);return r.jsxs(r.Fragment,{children:[r.jsx(C.Box,{as:"header",className:u,backgroundColor:c,...s,children:n}),a&&r.jsx(H.Divider,{borderColor:d})]})};e.displayName="Panel.Header";e.Row=x.Row;e.ContentBefore=g.ContentBefore;e.Heading=w.Heading;e.Description=m.Description;e.ContentAfter=D.ContentAfter;e.Subheader=v.Subheader;exports.Header=e;
|
|
@@ -7,7 +7,7 @@ export interface PanelHeaderProps extends ComponentPropsWithoutRef<'header'> {
|
|
|
7
7
|
*/
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Specify whether to show a divider below the header
|
|
11
11
|
* @default true
|
|
12
12
|
*/
|
|
13
13
|
divider?: boolean;
|
|
@@ -1,47 +1,48 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { g as
|
|
1
|
+
import { jsxs as c, Fragment as C, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import g from "clsx";
|
|
3
|
+
import { g as x } from "../../../../chunks/classNames.ZWNk1hey.js";
|
|
4
4
|
import "../../../../chunks/constants.Cruz2A1w.js";
|
|
5
|
-
import { Divider as
|
|
6
|
-
import { Box as
|
|
7
|
-
import { DEFAULT_PANEL_DIVIDER_COLOR as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
5
|
+
import { Divider as u } from "../../../Divider/Divider.es.js";
|
|
6
|
+
import { Box as D } from "../../../Box/Box.es.js";
|
|
7
|
+
import { DEFAULT_PANEL_DIVIDER_COLOR as b } from "../Panel.helpers.es.js";
|
|
8
|
+
import { usePanelContext as v } from "../Panel.context.es.js";
|
|
9
|
+
import { Row as B } from "./Panel.Header.Row.es.js";
|
|
10
|
+
import { ContentBefore as h } from "./Panel.Header.ContentBefore.es.js";
|
|
11
|
+
import { Heading as E } from "./Panel.Header.Heading.es.js";
|
|
12
|
+
import { ContentAfter as N } from "./Panel.Header.ContentAfter.es.js";
|
|
13
|
+
import { Description as A } from "./Panel.Header.Description.es.js";
|
|
14
|
+
import { Subheader as H } from "./Panel.Header.Subheader.es.js";
|
|
15
|
+
import { s as P } from "../../../../chunks/panel.module.CgFBtvbR.js";
|
|
16
|
+
const { subElementClassPrefix: R } = x("panel"), L = `${R}header`, o = ({
|
|
16
17
|
children: e,
|
|
17
18
|
className: t,
|
|
18
|
-
divider:
|
|
19
|
-
dividerColor:
|
|
20
|
-
backgroundColor:
|
|
21
|
-
...
|
|
19
|
+
divider: s = !0,
|
|
20
|
+
dividerColor: m,
|
|
21
|
+
backgroundColor: i,
|
|
22
|
+
...n
|
|
22
23
|
}) => {
|
|
23
|
-
const
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
|
|
24
|
+
const { backgroundColor: a, dividerColor: l } = v(), d = m ?? l ?? b, p = i ?? a, f = g(P[L], t);
|
|
25
|
+
return /* @__PURE__ */ c(C, { children: [
|
|
26
|
+
/* @__PURE__ */ r(
|
|
27
|
+
D,
|
|
27
28
|
{
|
|
28
29
|
as: "header",
|
|
29
|
-
className:
|
|
30
|
-
backgroundColor:
|
|
31
|
-
...
|
|
30
|
+
className: f,
|
|
31
|
+
backgroundColor: p,
|
|
32
|
+
...n,
|
|
32
33
|
children: e
|
|
33
34
|
}
|
|
34
35
|
),
|
|
35
|
-
|
|
36
|
+
s && /* @__PURE__ */ r(u, { borderColor: d })
|
|
36
37
|
] });
|
|
37
38
|
};
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
o.displayName = "Panel.Header";
|
|
40
|
+
o.Row = B;
|
|
41
|
+
o.ContentBefore = h;
|
|
42
|
+
o.Heading = E;
|
|
43
|
+
o.Description = A;
|
|
44
|
+
o.ContentAfter = N;
|
|
45
|
+
o.Subheader = H;
|
|
45
46
|
export {
|
|
46
|
-
|
|
47
|
+
o as Header
|
|
47
48
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),i=require("clsx"),d=require("../../../chunks/classNames.DC8Ra4sw.js");require("../../../chunks/constants.CgMu0_1M.js");const x=require("../../Box/Box.cjs.js"),b=require("./Panel.context.cjs.js"),m=require("../../../chunks/panel.module.BzLGa7GY.js"),{subElementClassPrefix:B}=d.getBEMClassNames("panel"),y=`${B}body`,e=({children:s,className:o,backgroundColor:t,tabIndex:n=0,...r})=>{const{backgroundColor:l}=b.usePanelContext(),a=t??l,c=i(m.styles[y],o);return u.jsx(x.Box,{className:c,backgroundColor:a,tabIndex:n,...r,children:s})};e.displayName="Panel.Body";exports.Body=e;
|
|
@@ -11,6 +11,6 @@ export interface PanelBodyProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
11
11
|
backgroundColor?: BoxBackgroundColor;
|
|
12
12
|
}
|
|
13
13
|
export declare const Body: {
|
|
14
|
-
({ children, className: _className, backgroundColor, ...props }: PanelBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
({ children, className: _className, backgroundColor, tabIndex, ...props }: PanelBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
displayName: string;
|
|
16
16
|
};
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { g as
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import c from "clsx";
|
|
3
|
+
import { g as p } from "../../../chunks/classNames.ZWNk1hey.js";
|
|
4
4
|
import "../../../chunks/constants.Cruz2A1w.js";
|
|
5
|
-
import { Box as
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
import { Box as i } from "../../Box/Box.es.js";
|
|
6
|
+
import { usePanelContext as d } from "./Panel.context.es.js";
|
|
7
|
+
import { s as f } from "../../../chunks/panel.module.CgFBtvbR.js";
|
|
8
|
+
const { subElementClassPrefix: x } = p("panel"), C = `${x}body`, g = ({
|
|
9
|
+
children: o,
|
|
10
|
+
className: s,
|
|
11
|
+
backgroundColor: r,
|
|
12
|
+
tabIndex: t = 0,
|
|
13
|
+
...e
|
|
12
14
|
}) => {
|
|
13
|
-
const r =
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
+
const { backgroundColor: a } = d(), m = r ?? a, l = c(f[C], s);
|
|
16
|
+
return /* @__PURE__ */ n(i, { className: l, backgroundColor: m, tabIndex: t, ...e, children: o });
|
|
15
17
|
};
|
|
16
|
-
|
|
18
|
+
g.displayName = "Panel.Body";
|
|
17
19
|
export {
|
|
18
|
-
|
|
20
|
+
g as Body
|
|
19
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),b=require("@floating-ui/react"),F=require("../../../chunks/classNames.DC8Ra4sw.js");require("../../../chunks/constants.CgMu0_1M.js");const R=require("./Panel.context.cjs.js"),h=require("../../FloatingUI/FloatingUI.root.cjs.js"),w=require("../../../chunks/FloatingUI.context.B15Tz_4h.js"),j=require("./Panel.Divider.cjs.js"),U=require("./Panel.ResizeHandle.cjs.js"),N=require("./Panel.useResize.cjs.js"),y=require("../../../chunks/panel.module.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),b=require("@floating-ui/react"),F=require("../../../chunks/classNames.DC8Ra4sw.js");require("../../../chunks/constants.CgMu0_1M.js");const R=require("./Panel.context.cjs.js"),h=require("../../FloatingUI/FloatingUI.root.cjs.js"),w=require("../../../chunks/FloatingUI.context.B15Tz_4h.js"),j=require("./Panel.Divider.cjs.js"),U=require("./Panel.ResizeHandle.cjs.js"),N=require("./Panel.useResize.cjs.js"),y=require("../../../chunks/panel.module.BzLGa7GY.js"),{baseClassNamePrefix:v}=F.getBEMClassNames("panel"),C=({children:a,panelClassName:l,inlineWrapperClassName:r,resolvedPosition:n,dividerBefore:o,dividerInner:c,dividerAfter:u,alwaysVisible:i,skipMountAnimation:_,dividerColor:t,resizeConfig:s,cssVarStyle:x,...d})=>{const{context:p,transitionConfig:g,refs:I}=w.useBmFloatingUIContext(),{isMounted:f,status:P}=b.useTransitionStatus(p,g),m=(i||_)&&P==="initial"?"open":P,{handleRef:q}=N.usePanelResize({resizeConfig:s,position:n,floatingRef:I.floating});return f?e.jsxs(e.Fragment,{children:[o&&e.jsx(j.InlineDivider,{position:n,dividerColor:t}),e.jsx("div",{ref:I.setFloating,className:r,"data-position":n,"data-status":m,style:x,children:e.jsxs("div",{className:y.styles[`${v}__inline-wrapper-content`],children:[c&&e.jsx(j.InlineDivider,{position:n,dividerColor:t}),e.jsxs("aside",{...d,className:l,children:[a,s&&e.jsx(U.PanelResizeHandle,{ref:q})]})]})}),u&&e.jsx(j.InlineDivider,{position:n,dividerColor:t})]}):null},D=({contextValue:a,panelClassName:l,inlineWrapperClassName:r,resolvedPosition:n,dividerBefore:o,dividerInner:c,dividerAfter:u,open:i,transitionConfig:_,dividerColor:t,children:s,resizeConfig:x,cssVarStyle:d,skipMountAnimation:p,...g})=>e.jsx(R.PanelContext.Provider,{value:a,children:e.jsx(h.FloatingUIRoot,{open:i??!0,portalled:!1,transitionConfig:_,children:e.jsx(C,{panelClassName:l,inlineWrapperClassName:r,resolvedPosition:n,dividerBefore:o,dividerInner:c,dividerAfter:u,dividerColor:t,alwaysVisible:i===void 0,skipMountAnimation:p,resizeConfig:x,cssVarStyle:d,...g,children:s})})});exports.InlinePanel=D;
|
|
@@ -14,10 +14,10 @@ type InlinePanelProps = {
|
|
|
14
14
|
children: React.ReactNode;
|
|
15
15
|
dividerColor?: PanelDividerColor;
|
|
16
16
|
resizeConfig?: PanelResizeConfig;
|
|
17
|
-
/** Forwarded from Panel: CSS custom-property
|
|
18
|
-
|
|
17
|
+
/** Forwarded from Panel: CSS custom-property overrides (`--bm-comp-panel-width` / `-height`). */
|
|
18
|
+
cssVarStyle?: React.CSSProperties;
|
|
19
19
|
/** Forwarded from Panel: when true, suppress the slide-in animation on this mount. */
|
|
20
20
|
skipMountAnimation?: boolean;
|
|
21
21
|
} & React.ComponentPropsWithoutRef<'aside'>;
|
|
22
|
-
export declare const InlinePanel: ({ contextValue, panelClassName, inlineWrapperClassName, resolvedPosition, dividerBefore, dividerInner, dividerAfter, open, transitionConfig, dividerColor, children, resizeConfig,
|
|
22
|
+
export declare const InlinePanel: ({ contextValue, panelClassName, inlineWrapperClassName, resolvedPosition, dividerBefore, dividerInner, dividerAfter, open, transitionConfig, dividerColor, children, resizeConfig, cssVarStyle, skipMountAnimation, ...props }: InlinePanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
export {};
|
|
@@ -8,7 +8,7 @@ import { a as j } from "../../../chunks/FloatingUI.context.Dl4Y1y1z.js";
|
|
|
8
8
|
import { InlineDivider as h } from "./Panel.Divider.es.js";
|
|
9
9
|
import { PanelResizeHandle as B } from "./Panel.ResizeHandle.es.js";
|
|
10
10
|
import { usePanelResize as M } from "./Panel.useResize.es.js";
|
|
11
|
-
import { s as S } from "../../../chunks/panel.module.
|
|
11
|
+
import { s as S } from "../../../chunks/panel.module.CgFBtvbR.js";
|
|
12
12
|
const { baseClassNamePrefix: _ } = P("panel"), z = ({
|
|
13
13
|
children: i,
|
|
14
14
|
panelClassName: o,
|
|
@@ -21,7 +21,7 @@ const { baseClassNamePrefix: _ } = P("panel"), z = ({
|
|
|
21
21
|
skipMountAnimation: f,
|
|
22
22
|
dividerColor: a,
|
|
23
23
|
resizeConfig: s,
|
|
24
|
-
|
|
24
|
+
cssVarStyle: c,
|
|
25
25
|
...u
|
|
26
26
|
}) => {
|
|
27
27
|
const {
|
|
@@ -70,7 +70,7 @@ const { baseClassNamePrefix: _ } = P("panel"), z = ({
|
|
|
70
70
|
dividerColor: a,
|
|
71
71
|
children: s,
|
|
72
72
|
resizeConfig: c,
|
|
73
|
-
|
|
73
|
+
cssVarStyle: u,
|
|
74
74
|
skipMountAnimation: d,
|
|
75
75
|
...g
|
|
76
76
|
}) => /* @__PURE__ */ t(U.Provider, { value: i, children: /* @__PURE__ */ t(
|
|
@@ -92,7 +92,7 @@ const { baseClassNamePrefix: _ } = P("panel"), z = ({
|
|
|
92
92
|
alwaysVisible: e === void 0,
|
|
93
93
|
skipMountAnimation: d,
|
|
94
94
|
resizeConfig: c,
|
|
95
|
-
|
|
95
|
+
cssVarStyle: u,
|
|
96
96
|
...g,
|
|
97
97
|
children: s
|
|
98
98
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),N=require("clsx"),I=require("react"),S=require("../../../chunks/classNames.DC8Ra4sw.js");require("../../../chunks/constants.CgMu0_1M.js");const h=require("./Panel.context.cjs.js"),w=require("./Panel.helpers.cjs.js"),k=require("../../FloatingUI/FloatingUI.root.cjs.js"),D=require("../../FloatingUI/FloatingUI.content.cjs.js"),z=require("../../../chunks/FloatingUI.context.B15Tz_4h.js"),$=require("./Panel.Divider.cjs.js"),A=require("./Panel.ResizeHandle.cjs.js"),B=require("./Panel.useResize.cjs.js"),f=require("../../../chunks/panel.module.BzLGa7GY.js"),{baseClassNamePrefix:g,variable:j}=S.getBEMClassNames("panel");function H(s,n,e){if(!(!s&&!n&&!e))return{...s,...n,...e?{[j("offset-x")]:e.x,[j("offset-y")]:e.y}:null}}const R=({children:s,panelClassName:n,resolvedPosition:e,showDivider:_,dividerColor:l,resizeConfig:o,floatingOffset:d,overlayDividerClassName:P,isBlocking:c,cssVarStyle:v,skipMountAnimation:x,container:r,style:q,...b})=>{const{refs:y}=z.useBmFloatingUIContext(),{handleRef:i}=B.usePanelResize({resizeConfig:o,position:e,floatingRef:y.floating,requireMount:!0,container:r}),t=H(q,v,d),m=I.useMemo(()=>c?r?{lockScroll:!1}:!0:{lockScroll:!1},[c,r]);return a.jsxs(D.Content,{className:n,skipFloatingStyles:!0,overlay:m,...b,style:t,"data-position":e,...x?{"data-status":"open"}:{},children:[s,_&&a.jsx($.InlineDivider,{position:e,className:P,dividerColor:l}),o&&a.jsx(A.PanelResizeHandle,{ref:i})]})},E=({contextValue:s,panelClassName:n,resolvedPosition:e,showDivider:_,modalType:l,closeOnOutsidePress:o,floatingOffset:d,open:P,onOpenChange:c,transitionConfig:v,dividerColor:x,children:r,resizeConfig:q,cssVarStyle:b,skipMountAnimation:y,container:i,triggerRef:t,...m})=>{const p=l==="isModal"||l==="alert",C=I.useCallback(u=>{const F=(t==null?void 0:t.current)??null;return!(F&&u.target instanceof Node&&F.contains(u.target))},[t]),U=I.useMemo(()=>{const u=w.getPanelDismissConfig(l,o);return!t||!(l==="isModal"||l!=="alert"&&(o??!0))?u:{...u??{},outsidePress:C}},[l,o,t,C]),M=N(f.styles[`${g}__overlay-divider`],f.styles[`${g}__overlay-divider--${e}`]);return a.jsx(h.PanelContext.Provider,{value:s,children:a.jsx(k.FloatingUIRoot,{open:P,onOpenChange:c,portalled:i?{root:i}:!0,transitionConfig:v,dismiss:U,focusConfiguration:p?!0:{modal:!1,closeOnFocusOut:!1},children:a.jsx(R,{panelClassName:n,resolvedPosition:e,showDivider:_,dividerColor:x,floatingOffset:d,overlayDividerClassName:M,isBlocking:p,resizeConfig:q,cssVarStyle:b,skipMountAnimation:y,container:i,...m,role:l==="alert"?"alertdialog":"dialog","aria-modal":p||void 0,children:r})})})};exports.OverlayPanel=E;
|
|
@@ -17,8 +17,8 @@ type OverlayPanelProps = {
|
|
|
17
17
|
children: React.ReactNode;
|
|
18
18
|
dividerColor?: PanelDividerColor;
|
|
19
19
|
resizeConfig?: PanelResizeConfig;
|
|
20
|
-
/** Forwarded from Panel: CSS custom-property
|
|
21
|
-
|
|
20
|
+
/** Forwarded from Panel: CSS custom-property overrides (`--bm-comp-panel-width` / `-height`). */
|
|
21
|
+
cssVarStyle?: CSSProperties;
|
|
22
22
|
/** Forwarded from Panel: when true, suppress the slide-in animation on this mount. */
|
|
23
23
|
skipMountAnimation?: boolean;
|
|
24
24
|
/**
|
|
@@ -35,5 +35,5 @@ type OverlayPanelProps = {
|
|
|
35
35
|
*/
|
|
36
36
|
triggerRef?: RefObject<HTMLElement | null>;
|
|
37
37
|
} & ComponentPropsWithoutRef<'aside'>;
|
|
38
|
-
export declare const OverlayPanel: ({ contextValue, panelClassName, resolvedPosition, showDivider, modalType, closeOnOutsidePress, floatingOffset, open, onOpenChange, transitionConfig, dividerColor, children, resizeConfig,
|
|
38
|
+
export declare const OverlayPanel: ({ contextValue, panelClassName, resolvedPosition, showDivider, modalType, closeOnOutsidePress, floatingOffset, open, onOpenChange, transitionConfig, dividerColor, children, resizeConfig, cssVarStyle, skipMountAnimation, container, triggerRef, ...props }: OverlayPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
39
|
export {};
|