@viasat/beam-react 2.21.1 → 2.23.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.
Files changed (68) hide show
  1. package/assets/Search.css +1 -1
  2. package/assets/panel.css +1 -1
  3. package/chunks/Search.Results.BM9NkYBp.js +1 -0
  4. package/chunks/Search.Results.wKBufUSo.js +64 -0
  5. package/chunks/{panel.module.a_gaicKX.js → panel.module.DCpj0tSX.js} +1 -1
  6. package/lib/Alert/Alert.figma.d.ts +1 -0
  7. package/lib/Switch/Switch.figma.d.ts +1 -0
  8. package/lib/Tooltip/Tooltip.figma.d.ts +1 -0
  9. package/lib/wip/Panel/Panel.Body.cjs.js +1 -1
  10. package/lib/wip/Panel/Panel.Body.d.ts +6 -1
  11. package/lib/wip/Panel/Panel.Body.es.js +11 -9
  12. package/lib/wip/Panel/Panel.Divider.cjs.js +1 -0
  13. package/lib/wip/Panel/Panel.Divider.d.ts +6 -0
  14. package/lib/wip/Panel/Panel.Divider.es.js +18 -0
  15. package/lib/wip/Panel/Panel.Footer.Actions.cjs.js +1 -1
  16. package/lib/wip/Panel/Panel.Footer.Actions.es.js +1 -1
  17. package/lib/wip/Panel/Panel.Footer.cjs.js +1 -1
  18. package/lib/wip/Panel/Panel.Footer.d.ts +12 -1
  19. package/lib/wip/Panel/Panel.Footer.es.js +28 -15
  20. package/lib/wip/Panel/Panel.Header.ContentAfter.cjs.js +1 -1
  21. package/lib/wip/Panel/Panel.Header.ContentAfter.es.js +1 -1
  22. package/lib/wip/Panel/Panel.Header.ContentBefore.cjs.js +1 -1
  23. package/lib/wip/Panel/Panel.Header.ContentBefore.es.js +1 -1
  24. package/lib/wip/Panel/Panel.Header.Description.cjs.js +1 -1
  25. package/lib/wip/Panel/Panel.Header.Description.es.js +1 -1
  26. package/lib/wip/Panel/Panel.Header.Heading.cjs.js +1 -1
  27. package/lib/wip/Panel/Panel.Header.Heading.es.js +1 -1
  28. package/lib/wip/Panel/Panel.Header.Row.cjs.js +1 -1
  29. package/lib/wip/Panel/Panel.Header.Row.es.js +1 -1
  30. package/lib/wip/Panel/Panel.Header.Subheader.cjs.js +1 -1
  31. package/lib/wip/Panel/Panel.Header.Subheader.es.js +1 -1
  32. package/lib/wip/Panel/Panel.Header.cjs.js +1 -1
  33. package/lib/wip/Panel/Panel.Header.d.ts +12 -1
  34. package/lib/wip/Panel/Panel.Header.es.js +37 -24
  35. package/lib/wip/Panel/Panel.Inline.cjs.js +1 -1
  36. package/lib/wip/Panel/Panel.Inline.d.ts +3 -6
  37. package/lib/wip/Panel/Panel.Inline.es.js +62 -70
  38. package/lib/wip/Panel/Panel.Overlay.cjs.js +1 -1
  39. package/lib/wip/Panel/Panel.Overlay.d.ts +3 -2
  40. package/lib/wip/Panel/Panel.Overlay.es.js +23 -22
  41. package/lib/wip/Panel/Panel.cjs.js +1 -1
  42. package/lib/wip/Panel/Panel.d.ts +4 -4
  43. package/lib/wip/Panel/Panel.es.js +69 -60
  44. package/lib/wip/Panel/Panel.helpers.cjs.js +1 -1
  45. package/lib/wip/Panel/Panel.helpers.d.ts +2 -1
  46. package/lib/wip/Panel/Panel.helpers.es.js +8 -7
  47. package/lib/wip/Panel/Panel.types.cjs.js +1 -1
  48. package/lib/wip/Panel/Panel.types.d.ts +11 -1
  49. package/lib/wip/Panel/Panel.types.es.js +5 -1
  50. package/lib/wip/Search/Search.Results.Item.cjs.js +1 -1
  51. package/lib/wip/Search/Search.Results.Item.d.ts +6 -6
  52. package/lib/wip/Search/Search.Results.Item.es.js +5 -6
  53. package/lib/wip/Search/Search.Results.ViewAll.cjs.js +1 -1
  54. package/lib/wip/Search/Search.Results.ViewAll.d.ts +7 -7
  55. package/lib/wip/Search/Search.Results.ViewAll.es.js +2 -2
  56. package/lib/wip/Search/Search.Results.cjs.js +1 -1
  57. package/lib/wip/Search/Search.Results.es.js +3 -5
  58. package/lib/wip/Search/Search.cjs.js +1 -1
  59. package/lib/wip/Search/Search.d.ts +17 -8
  60. package/lib/wip/Search/Search.es.js +175 -157
  61. package/lib/wip/Search/SearchDropdown.cjs.js +1 -1
  62. package/lib/wip/Search/SearchDropdown.es.js +25 -24
  63. package/lib/wip/Search/index.d.ts +4 -1
  64. package/package.json +6 -6
  65. package/chunks/Search.Results.CFA_KEdP.js +0 -1
  66. package/chunks/Search.Results.DVf6WKnI.js +0 -68
  67. package/lib/wip/Search/Search.Results.d.ts +0 -15
  68. package/chunks/{panel.module.DGxSyRdA.js → panel.module.DJLJpnm_.js} +2 -2
@@ -1,34 +1,47 @@
1
- import { jsxs as i, Fragment as n, jsx as e } from "react/jsx-runtime";
2
- import p from "clsx";
3
- import { g as f } from "../../../chunks/classNames.BTJmrO_L.js";
1
+ import { jsxs as p, Fragment as f, jsx as o } from "react/jsx-runtime";
2
+ import l from "clsx";
3
+ import { g as d } from "../../../chunks/classNames.BTJmrO_L.js";
4
4
  import "../../../chunks/constants.CKKGf1-i.js";
5
- import { Divider as l } from "../../Divider/Divider.es.js";
6
- import { Row as d } from "./Panel.Header.Row.es.js";
7
- import { ContentBefore as c } from "./Panel.Header.ContentBefore.es.js";
8
- import { Heading as C } from "./Panel.Header.Heading.es.js";
9
- import { ContentAfter as b } from "./Panel.Header.ContentAfter.es.js";
10
- import { Description as g } from "./Panel.Header.Description.es.js";
11
- import { Subheader as h } from "./Panel.Header.Subheader.es.js";
12
- import { s as u } from "../../../chunks/panel.module.DGxSyRdA.js";
13
- const { subElementClassPrefix: x } = f("panel"), H = `${x}header`, r = ({
14
- children: o,
5
+ import { Divider as c } from "../../Divider/Divider.es.js";
6
+ import { Box as C } from "../../Box/Box.es.js";
7
+ import { DEFAULT_PANEL_DIVIDER_COLOR as x } from "./Panel.helpers.es.js";
8
+ import { Row as D } from "./Panel.Header.Row.es.js";
9
+ import { ContentBefore as b } from "./Panel.Header.ContentBefore.es.js";
10
+ import { Heading as g } from "./Panel.Header.Heading.es.js";
11
+ import { ContentAfter as h } from "./Panel.Header.ContentAfter.es.js";
12
+ import { Description as u } from "./Panel.Header.Description.es.js";
13
+ import { Subheader as E } from "./Panel.Header.Subheader.es.js";
14
+ import { s as N } from "../../../chunks/panel.module.DJLJpnm_.js";
15
+ const { subElementClassPrefix: A } = d("panel"), B = `${A}header`, r = ({
16
+ children: e,
15
17
  className: t,
16
18
  divider: m = !0,
17
- ...s
19
+ dividerColor: s = x,
20
+ backgroundColor: a,
21
+ ...i
18
22
  }) => {
19
- const a = p(u[H], t);
20
- return /* @__PURE__ */ i(n, { children: [
21
- /* @__PURE__ */ e("header", { className: a, ...s, children: o }),
22
- m && /* @__PURE__ */ e(l, { borderColor: "01" })
23
+ const n = l(N[B], t);
24
+ return /* @__PURE__ */ p(f, { children: [
25
+ /* @__PURE__ */ o(
26
+ C,
27
+ {
28
+ as: "header",
29
+ className: n,
30
+ backgroundColor: a,
31
+ ...i,
32
+ children: e
33
+ }
34
+ ),
35
+ m && /* @__PURE__ */ o(c, { borderColor: s })
23
36
  ] });
24
37
  };
25
38
  r.displayName = "Panel.Header";
26
- r.Row = d;
27
- r.ContentBefore = c;
28
- r.Heading = C;
29
- r.Description = g;
30
- r.ContentAfter = b;
31
- r.Subheader = h;
39
+ r.Row = D;
40
+ r.ContentBefore = b;
41
+ r.Heading = g;
42
+ r.Description = u;
43
+ r.ContentAfter = h;
44
+ r.Subheader = E;
32
45
  export {
33
46
  r as Header
34
47
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),p=require("@floating-ui/react"),I=require("../../../chunks/classNames.DAeKwerT.js");require("../../../chunks/constants.hwjHOsvT.js");const b=require("./Panel.context.cjs.js"),q=require("../../FloatingUI/FloatingUI.root.cjs.js"),v=require("../../../chunks/FloatingUI.context.B15Tz_4h.js"),f=require("../../Divider/Divider.cjs.js"),C=require("../../../chunks/panel.module.a_gaicKX.js"),{baseClassNamePrefix:F}=I.getBEMClassNames("panel"),a=({position:n,className:i})=>e.jsx(f.Divider,{borderColor:"01",orientation:n==="bottom"?"horizontal":"vertical",className:i}),U=({children:n,panelClassName:i,inlineWrapperClassName:o,resolvedPosition:t,dividerBefore:r,dividerInner:l,dividerAfter:c,alwaysVisible:s,...u})=>{const{context:d,transitionConfig:x,refs:g}=v.useBmFloatingUIContext(),{isMounted:j,status:_}=p.useTransitionStatus(d,x),m=s&&_==="initial"?"open":_;return j?e.jsxs(e.Fragment,{children:[r&&e.jsx(a,{position:t}),e.jsx("div",{ref:g.setFloating,className:o,"data-position":t,"data-status":m,children:e.jsxs("div",{className:C.styles[`${F}__inline-wrapper-content`],children:[l&&e.jsx(a,{position:t}),e.jsx("aside",{...u,className:i,children:n})]})}),c&&e.jsx(a,{position:t})]}):null},h=({contextValue:n,panelClassName:i,inlineWrapperClassName:o,resolvedPosition:t,dividerBefore:r,dividerInner:l,dividerAfter:c,open:s,transitionConfig:u,children:d,...x})=>e.jsx(b.PanelContext.Provider,{value:n,children:e.jsx(q.FloatingUIRoot,{open:s??!0,portalled:!1,transitionConfig:u,children:e.jsx(U,{panelClassName:i,inlineWrapperClassName:o,resolvedPosition:t,dividerBefore:r,dividerInner:l,dividerAfter:c,alwaysVisible:s===void 0,...x,children:d})})});exports.InlineDivider=a;exports.InlinePanel=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("@floating-ui/react"),q=require("../../../chunks/classNames.DAeKwerT.js");require("../../../chunks/constants.hwjHOsvT.js");const b=require("./Panel.context.cjs.js"),f=require("../../FloatingUI/FloatingUI.root.cjs.js"),F=require("../../../chunks/FloatingUI.context.B15Tz_4h.js"),d=require("./Panel.Divider.cjs.js"),P=require("../../../chunks/panel.module.DCpj0tSX.js"),{baseClassNamePrefix:U}=q.getBEMClassNames("panel"),N=({children:s,panelClassName:a,inlineWrapperClassName:l,resolvedPosition:n,dividerBefore:r,dividerInner:o,dividerAfter:c,alwaysVisible:i,dividerColor:t,...u})=>{const{context:x,transitionConfig:_,refs:p}=F.useBmFloatingUIContext(),{isMounted:I,status:g}=m.useTransitionStatus(x,_),j=i&&g==="initial"?"open":g;return I?e.jsxs(e.Fragment,{children:[r&&e.jsx(d.InlineDivider,{position:n,dividerColor:t}),e.jsx("div",{ref:p.setFloating,className:l,"data-position":n,"data-status":j,children:e.jsxs("div",{className:P.styles[`${U}__inline-wrapper-content`],children:[o&&e.jsx(d.InlineDivider,{position:n,dividerColor:t}),e.jsx("aside",{...u,className:a,children:s})]})}),c&&e.jsx(d.InlineDivider,{position:n,dividerColor:t})]}):null},h=({contextValue:s,panelClassName:a,inlineWrapperClassName:l,resolvedPosition:n,dividerBefore:r,dividerInner:o,dividerAfter:c,open:i,transitionConfig:t,dividerColor:u,children:x,..._})=>e.jsx(b.PanelContext.Provider,{value:s,children:e.jsx(f.FloatingUIRoot,{open:i??!0,portalled:!1,transitionConfig:t,children:e.jsx(N,{panelClassName:a,inlineWrapperClassName:l,resolvedPosition:n,dividerBefore:r,dividerInner:o,dividerAfter:c,dividerColor:u,alwaysVisible:i===void 0,..._,children:x})})});exports.InlinePanel=h;
@@ -1,10 +1,6 @@
1
1
  import { UseTransitionStylesProps } from '@floating-ui/react';
2
- import { PanelPosition } from './Panel.types';
2
+ import { PanelDividerColor, PanelPosition } from './Panel.types';
3
3
  import { PanelContextValue } from './Panel.context';
4
- export declare const InlineDivider: ({ position, className, }: {
5
- position?: PanelPosition;
6
- className?: string;
7
- }) => import("react/jsx-runtime").JSX.Element;
8
4
  type InlinePanelProps = {
9
5
  contextValue: PanelContextValue;
10
6
  panelClassName: string;
@@ -16,6 +12,7 @@ type InlinePanelProps = {
16
12
  open?: boolean;
17
13
  transitionConfig: UseTransitionStylesProps;
18
14
  children: React.ReactNode;
15
+ dividerColor?: PanelDividerColor;
19
16
  } & React.ComponentPropsWithoutRef<'aside'>;
20
- export declare const InlinePanel: ({ contextValue, panelClassName, inlineWrapperClassName, resolvedPosition, dividerBefore, dividerInner, dividerAfter, open, transitionConfig, children, ...props }: InlinePanelProps) => import("react/jsx-runtime").JSX.Element;
17
+ export declare const InlinePanel: ({ contextValue, panelClassName, inlineWrapperClassName, resolvedPosition, dividerBefore, dividerInner, dividerAfter, open, transitionConfig, dividerColor, children, ...props }: InlinePanelProps) => import("react/jsx-runtime").JSX.Element;
21
18
  export {};
@@ -1,93 +1,85 @@
1
- import { jsx as t, jsxs as u, Fragment as h } from "react/jsx-runtime";
2
- import { useTransitionStatus as I } from "@floating-ui/react";
3
- import { g as v } from "../../../chunks/classNames.BTJmrO_L.js";
1
+ import { jsx as t, jsxs as g, Fragment as C } from "react/jsx-runtime";
2
+ import { useTransitionStatus as N } from "@floating-ui/react";
3
+ import { g as F } from "../../../chunks/classNames.BTJmrO_L.js";
4
4
  import "../../../chunks/constants.CKKGf1-i.js";
5
- import { PanelContext as N } from "./Panel.context.es.js";
6
- import { FloatingUIRoot as b } from "../../FloatingUI/FloatingUI.root.es.js";
7
- import { a as F } from "../../../chunks/FloatingUI.context.Dl4Y1y1z.js";
8
- import { Divider as w } from "../../Divider/Divider.es.js";
9
- import { s as U } from "../../../chunks/panel.module.DGxSyRdA.js";
10
- const { baseClassNamePrefix: j } = v("panel"), f = ({
11
- position: n,
12
- className: i
13
- }) => /* @__PURE__ */ t(
14
- w,
15
- {
16
- borderColor: "01",
17
- orientation: n === "bottom" ? "horizontal" : "vertical",
18
- className: i
19
- }
20
- ), y = ({
21
- children: n,
22
- panelClassName: i,
23
- inlineWrapperClassName: e,
24
- resolvedPosition: o,
5
+ import { PanelContext as w } from "./Panel.context.es.js";
6
+ import { FloatingUIRoot as U } from "../../FloatingUI/FloatingUI.root.es.js";
7
+ import { a as b } from "../../../chunks/FloatingUI.context.Dl4Y1y1z.js";
8
+ import { InlineDivider as u } from "./Panel.Divider.es.js";
9
+ import { s as j } from "../../../chunks/panel.module.DJLJpnm_.js";
10
+ const { baseClassNamePrefix: y } = F("panel"), B = ({
11
+ children: i,
12
+ panelClassName: e,
13
+ inlineWrapperClassName: o,
14
+ resolvedPosition: n,
25
15
  dividerBefore: r,
26
- dividerInner: s,
27
- dividerAfter: l,
28
- alwaysVisible: a,
29
- ...m
16
+ dividerInner: l,
17
+ dividerAfter: m,
18
+ alwaysVisible: s,
19
+ dividerColor: a,
20
+ ...p
30
21
  }) => {
31
22
  const {
32
- context: p,
33
- transitionConfig: c,
34
- refs: g
35
- } = F(), { isMounted: x, status: d } = I(
36
- p,
37
- c
38
- ), C = a && d === "initial" ? "open" : d;
39
- return x ? /* @__PURE__ */ u(h, { children: [
40
- r && /* @__PURE__ */ t(f, { position: o }),
23
+ context: c,
24
+ transitionConfig: f,
25
+ refs: x
26
+ } = b(), { isMounted: I, status: d } = N(
27
+ c,
28
+ f
29
+ ), h = s && d === "initial" ? "open" : d;
30
+ return I ? /* @__PURE__ */ g(C, { children: [
31
+ r && /* @__PURE__ */ t(u, { position: n, dividerColor: a }),
41
32
  /* @__PURE__ */ t(
42
33
  "div",
43
34
  {
44
- ref: g.setFloating,
45
- className: e,
46
- "data-position": o,
47
- "data-status": C,
48
- children: /* @__PURE__ */ u("div", { className: U[`${j}__inline-wrapper-content`], children: [
49
- s && /* @__PURE__ */ t(f, { position: o }),
50
- /* @__PURE__ */ t("aside", { ...m, className: i, children: n })
35
+ ref: x.setFloating,
36
+ className: o,
37
+ "data-position": n,
38
+ "data-status": h,
39
+ children: /* @__PURE__ */ g("div", { className: j[`${y}__inline-wrapper-content`], children: [
40
+ l && /* @__PURE__ */ t(u, { position: n, dividerColor: a }),
41
+ /* @__PURE__ */ t("aside", { ...p, className: e, children: i })
51
42
  ] })
52
43
  }
53
44
  ),
54
- l && /* @__PURE__ */ t(f, { position: o })
45
+ m && /* @__PURE__ */ t(u, { position: n, dividerColor: a })
55
46
  ] }) : null;
56
- }, T = ({
57
- contextValue: n,
58
- panelClassName: i,
59
- inlineWrapperClassName: e,
60
- resolvedPosition: o,
47
+ }, V = ({
48
+ contextValue: i,
49
+ panelClassName: e,
50
+ inlineWrapperClassName: o,
51
+ resolvedPosition: n,
61
52
  dividerBefore: r,
62
- dividerInner: s,
63
- dividerAfter: l,
64
- open: a,
65
- transitionConfig: m,
66
- children: p,
67
- ...c
68
- }) => /* @__PURE__ */ t(N.Provider, { value: n, children: /* @__PURE__ */ t(
69
- b,
53
+ dividerInner: l,
54
+ dividerAfter: m,
55
+ open: s,
56
+ transitionConfig: a,
57
+ dividerColor: p,
58
+ children: c,
59
+ ...f
60
+ }) => /* @__PURE__ */ t(w.Provider, { value: i, children: /* @__PURE__ */ t(
61
+ U,
70
62
  {
71
- open: a ?? !0,
63
+ open: s ?? !0,
72
64
  portalled: !1,
73
- transitionConfig: m,
65
+ transitionConfig: a,
74
66
  children: /* @__PURE__ */ t(
75
- y,
67
+ B,
76
68
  {
77
- panelClassName: i,
78
- inlineWrapperClassName: e,
79
- resolvedPosition: o,
69
+ panelClassName: e,
70
+ inlineWrapperClassName: o,
71
+ resolvedPosition: n,
80
72
  dividerBefore: r,
81
- dividerInner: s,
82
- dividerAfter: l,
83
- alwaysVisible: a === void 0,
84
- ...c,
85
- children: p
73
+ dividerInner: l,
74
+ dividerAfter: m,
75
+ dividerColor: p,
76
+ alwaysVisible: s === void 0,
77
+ ...f,
78
+ children: c
86
79
  }
87
80
  )
88
81
  }
89
82
  ) });
90
83
  export {
91
- f as InlineDivider,
92
- T as InlinePanel
84
+ V as InlinePanel
93
85
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),q=require("clsx"),x=require("../../../chunks/classNames.DAeKwerT.js");require("../../../chunks/constants.hwjHOsvT.js");const b=require("./Panel.context.cjs.js"),f=require("./Panel.helpers.cjs.js"),p=require("../../FloatingUI/FloatingUI.root.cjs.js"),y=require("../../FloatingUI/FloatingUI.content.cjs.js"),C=require("./Panel.Inline.cjs.js"),n=require("../../../chunks/panel.module.a_gaicKX.js"),{baseClassNamePrefix:a}=x.getBEMClassNames("panel"),F=({contextValue:t,panelClassName:r,resolvedPosition:l,showDivider:o,modalType:e,closeOnOutsidePress:c,open:u,onOpenChange:_,transitionConfig:d,children:g,...v})=>{const s=e==="isModal"||e==="alert",m=f.getPanelDismissConfig(e,c),P=q(n.styles[`${a}__overlay-divider`],n.styles[`${a}__overlay-divider--${l}`]);return i.jsx(b.PanelContext.Provider,{value:t,children:i.jsx(p.FloatingUIRoot,{open:u,onOpenChange:_,portalled:!0,transitionConfig:d,dismiss:m,focusConfiguration:s?!0:{modal:!1,closeOnFocusOut:!1},children:i.jsxs(y.Content,{className:r,skipFloatingStyles:!0,overlay:s,...v,role:e==="alert"?"alertdialog":"dialog","aria-modal":s||void 0,"data-position":l,children:[g,o&&i.jsx(C.InlineDivider,{position:l,className:P})]})})})};exports.OverlayPanel=F;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),x=require("clsx"),b=require("../../../chunks/classNames.DAeKwerT.js");require("../../../chunks/constants.hwjHOsvT.js");const f=require("./Panel.context.cjs.js"),p=require("./Panel.helpers.cjs.js"),y=require("../../FloatingUI/FloatingUI.root.cjs.js"),C=require("../../FloatingUI/FloatingUI.content.cjs.js"),F=require("./Panel.Divider.cjs.js"),a=require("../../../chunks/panel.module.DCpj0tSX.js"),{baseClassNamePrefix:n}=b.getBEMClassNames("panel"),j=({contextValue:r,panelClassName:t,resolvedPosition:l,showDivider:o,modalType:e,closeOnOutsidePress:c,open:u,onOpenChange:_,transitionConfig:d,dividerColor:g,children:v,...m})=>{const s=e==="isModal"||e==="alert",P=p.getPanelDismissConfig(e,c),q=x(a.styles[`${n}__overlay-divider`],a.styles[`${n}__overlay-divider--${l}`]);return i.jsx(f.PanelContext.Provider,{value:r,children:i.jsx(y.FloatingUIRoot,{open:u,onOpenChange:_,portalled:!0,transitionConfig:d,dismiss:P,focusConfiguration:s?!0:{modal:!1,closeOnFocusOut:!1},children:i.jsxs(C.Content,{className:t,skipFloatingStyles:!0,overlay:s,...m,role:e==="alert"?"alertdialog":"dialog","aria-modal":s||void 0,"data-position":l,children:[v,o&&i.jsx(F.InlineDivider,{position:l,className:q,dividerColor:g})]})})})};exports.OverlayPanel=j;
@@ -1,5 +1,5 @@
1
1
  import { UseTransitionStylesProps } from '@floating-ui/react';
2
- import { PanelModalType, PanelPosition } from './Panel.types';
2
+ import { PanelDividerColor, PanelModalType, PanelPosition } from './Panel.types';
3
3
  import { PanelContextValue } from './Panel.context';
4
4
  import { FloatingUIProps } from '../../FloatingUI/FloatingUI.context';
5
5
  type OverlayPanelProps = {
@@ -13,6 +13,7 @@ type OverlayPanelProps = {
13
13
  onOpenChange?: FloatingUIProps['onOpenChange'];
14
14
  transitionConfig: UseTransitionStylesProps;
15
15
  children: React.ReactNode;
16
+ dividerColor?: PanelDividerColor;
16
17
  } & React.ComponentPropsWithoutRef<'aside'>;
17
- export declare const OverlayPanel: ({ contextValue, panelClassName, resolvedPosition, showDivider, modalType, closeOnOutsidePress, open, onOpenChange, transitionConfig, children, ...props }: OverlayPanelProps) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const OverlayPanel: ({ contextValue, panelClassName, resolvedPosition, showDivider, modalType, closeOnOutsidePress, open, onOpenChange, transitionConfig, dividerColor, children, ...props }: OverlayPanelProps) => import("react/jsx-runtime").JSX.Element;
18
19
  export {};
@@ -1,14 +1,14 @@
1
- import { jsx as s, jsxs as C } from "react/jsx-runtime";
2
- import x from "clsx";
3
- import { g as N } from "../../../chunks/classNames.BTJmrO_L.js";
1
+ import { jsx as s, jsxs as x } from "react/jsx-runtime";
2
+ import N from "clsx";
3
+ import { g as y } from "../../../chunks/classNames.BTJmrO_L.js";
4
4
  import "../../../chunks/constants.CKKGf1-i.js";
5
- import { PanelContext as y } from "./Panel.context.es.js";
6
- import { getPanelDismissConfig as _ } from "./Panel.helpers.es.js";
7
- import { FloatingUIRoot as h } from "../../FloatingUI/FloatingUI.root.es.js";
8
- import { Content as D } from "../../FloatingUI/FloatingUI.content.es.js";
9
- import { InlineDivider as F } from "./Panel.Inline.es.js";
10
- import { s as a } from "../../../chunks/panel.module.DGxSyRdA.js";
11
- const { baseClassNamePrefix: e } = N("panel"), R = ({
5
+ import { PanelContext as _ } from "./Panel.context.es.js";
6
+ import { getPanelDismissConfig as h } from "./Panel.helpers.es.js";
7
+ import { FloatingUIRoot as D } from "../../FloatingUI/FloatingUI.root.es.js";
8
+ import { Content as F } from "../../FloatingUI/FloatingUI.content.es.js";
9
+ import { InlineDivider as O } from "./Panel.Divider.es.js";
10
+ import { s as a } from "../../../chunks/panel.module.DJLJpnm_.js";
11
+ const { baseClassNamePrefix: e } = y("panel"), S = ({
12
12
  contextValue: t,
13
13
  panelClassName: l,
14
14
  resolvedPosition: r,
@@ -18,35 +18,36 @@ const { baseClassNamePrefix: e } = N("panel"), R = ({
18
18
  open: f,
19
19
  onOpenChange: c,
20
20
  transitionConfig: d,
21
- children: p,
22
- ...g
21
+ dividerColor: p,
22
+ children: g,
23
+ ...v
23
24
  }) => {
24
- const i = o === "isModal" || o === "alert", v = _(o, n), u = x(
25
+ const i = o === "isModal" || o === "alert", u = h(o, n), C = N(
25
26
  a[`${e}__overlay-divider`],
26
27
  a[`${e}__overlay-divider--${r}`]
27
28
  );
28
- return /* @__PURE__ */ s(y.Provider, { value: t, children: /* @__PURE__ */ s(
29
- h,
29
+ return /* @__PURE__ */ s(_.Provider, { value: t, children: /* @__PURE__ */ s(
30
+ D,
30
31
  {
31
32
  open: f,
32
33
  onOpenChange: c,
33
34
  portalled: !0,
34
35
  transitionConfig: d,
35
- dismiss: v,
36
+ dismiss: u,
36
37
  focusConfiguration: i ? !0 : { modal: !1, closeOnFocusOut: !1 },
37
- children: /* @__PURE__ */ C(
38
- D,
38
+ children: /* @__PURE__ */ x(
39
+ F,
39
40
  {
40
41
  className: l,
41
42
  skipFloatingStyles: !0,
42
43
  overlay: i,
43
- ...g,
44
+ ...v,
44
45
  role: o === "alert" ? "alertdialog" : "dialog",
45
46
  "aria-modal": i || void 0,
46
47
  "data-position": r,
47
48
  children: [
48
- p,
49
- m && /* @__PURE__ */ s(F, { position: r, className: u })
49
+ g,
50
+ m && /* @__PURE__ */ s(O, { position: r, className: C, dividerColor: p })
50
51
  ]
51
52
  }
52
53
  )
@@ -54,5 +55,5 @@ const { baseClassNamePrefix: e } = N("panel"), R = ({
54
55
  ) });
55
56
  };
56
57
  export {
57
- R as OverlayPanel
58
+ S as OverlayPanel
58
59
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("react/jsx-runtime"),f=require("clsx"),q=require("react"),S=require("../../../chunks/classNames.DAeKwerT.js");require("../../../chunks/constants.hwjHOsvT.js");const j=require("./Panel.Header.cjs.js"),B=require("./Panel.Body.cjs.js"),F=require("./Panel.Footer.cjs.js"),i=require("./Panel.helpers.cjs.js"),H=require("./Panel.Inline.cjs.js"),T=require("./Panel.Overlay.cjs.js"),e=require("../../../chunks/panel.module.a_gaicKX.js"),{baseClassNamePrefix:s}=S.getBEMClassNames("panel"),l=({children:u,className:b,padding:C="md",onOpenChange:g,open:_,size:o,dismissible:d=!0,closeButtonAriaLabel:P="Close panel",kind:r="inline",position:t,divider:$=!0,isAnimated:p=!0,onBeforeClose:h,modalType:n,...c})=>{process.env.NODE_ENV!=="production"&&n==="alert"&&d&&console.warn('Panel: `dismissible` is ignored when `modalType="alert"`. The close button is always hidden.'),process.env.NODE_ENV!=="production"&&c.closeOnOutsidePress&&n!=="nonModal"&&n!==void 0&&console.warn('Panel: `closeOnOutsidePress` has no effect when `modalType` is not `"nonModal"`.');const N=n==="alert"?!1:d,a=i.getResolvedPanelPosition(t),v=f(e.styles[s],e.styles[`${s}--${r}`],o&&e.styles[`${s}--size-${o}`],e.styles[`${s}--padding-${C}`],e.styles[`${s}--position-${a}`],b),M=f(e.styles[`${s}__inline-wrapper`],o==="full"&&e.styles[`${s}__inline-wrapper--full`]),{requestClose:y,handleOverlayOpenChange:x}=i.usePanelClose(h,g),m=q.useMemo(()=>({kind:r,dismissible:N,closeButtonAriaLabel:P,position:t,requestClose:y}),[r,N,P,t,y]),{showDivider:D,dividerBefore:E,dividerInner:I,dividerAfter:R}=i.getPanelDividerState($,a),w=q.useMemo(()=>({duration:p?i.PANEL_TRANSITION_DURATION_MS:0}),[p]);return r==="inline"?O.jsx(H.InlinePanel,{contextValue:m,panelClassName:v,inlineWrapperClassName:M,resolvedPosition:a,dividerBefore:E,dividerInner:I,dividerAfter:R,open:_,transitionConfig:w,...c,children:u}):O.jsx(T.OverlayPanel,{contextValue:m,panelClassName:v,resolvedPosition:a,showDivider:D,modalType:n,open:_,onOpenChange:x,transitionConfig:w,...c,children:u})};l.displayName="Panel";l.Header=j.Header;l.Body=B.Body;l.Footer=F.Footer;exports.Panel=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("react/jsx-runtime"),q=require("clsx"),b=require("react"),B=require("../../../chunks/classNames.DAeKwerT.js");require("../../../chunks/constants.hwjHOsvT.js");const A=require("./Panel.Header.cjs.js"),F=require("./Panel.Body.cjs.js"),H=require("./Panel.Footer.cjs.js"),i=require("./Panel.helpers.cjs.js"),T=require("./Panel.Inline.cjs.js"),V=require("./Panel.Overlay.cjs.js"),e=require("../../../chunks/panel.module.DCpj0tSX.js"),{baseClassNamePrefix:s}=B.getBEMClassNames("panel"),a=({children:u,className:C,padding:g="md",onOpenChange:h,open:_,size:r,dismissible:d=!0,closeButtonAriaLabel:P="Close panel",kind:o="inline",position:t,divider:$=!0,dividerColor:p,isAnimated:N=!0,onBeforeClose:M,modalType:n,...c})=>{process.env.NODE_ENV!=="production"&&n==="alert"&&d&&console.warn('Panel: `dismissible` is ignored when `modalType="alert"`. The close button is always hidden.'),process.env.NODE_ENV!=="production"&&c.closeOnOutsidePress&&n!=="nonModal"&&n!==void 0&&console.warn('Panel: `closeOnOutsidePress` has no effect when `modalType` is not `"nonModal"`.');const y=n==="alert"?!1:d,l=i.getResolvedPanelPosition(t),x=r&&(l!=="bottom"||r==="full"),m=q(e.styles[s],e.styles[`${s}--${o}`],x&&e.styles[`${s}--size-${r}`],e.styles[`${s}--padding-${g}`],e.styles[`${s}--position-${l}`],C),D=q(e.styles[`${s}__inline-wrapper`],r==="full"&&e.styles[`${s}__inline-wrapper--full`]),{requestClose:f,handleOverlayOpenChange:E}=i.usePanelClose(M,h),v=b.useMemo(()=>({kind:o,dismissible:y,closeButtonAriaLabel:P,position:t,requestClose:f}),[o,y,P,t,f]),{showDivider:I,dividerBefore:S,dividerInner:R,dividerAfter:j}=i.getPanelDividerState($,l),w=b.useMemo(()=>({duration:N?i.PANEL_TRANSITION_DURATION_MS:0}),[N]);return o==="inline"?O.jsx(T.InlinePanel,{contextValue:v,panelClassName:m,inlineWrapperClassName:D,resolvedPosition:l,dividerBefore:S,dividerInner:R,dividerAfter:j,dividerColor:p,open:_,transitionConfig:w,...c,children:u}):O.jsx(V.OverlayPanel,{contextValue:v,panelClassName:m,resolvedPosition:l,showDivider:I,dividerColor:p,modalType:n,open:_,onOpenChange:E,transitionConfig:w,...c,children:u})};a.displayName="Panel";a.Header=A.Header;a.Body=F.Body;a.Footer=H.Footer;exports.Panel=a;
@@ -1,9 +1,9 @@
1
1
  import { PanelProps } from './Panel.types';
2
2
  export declare const Panel: {
3
- ({ children, className: _className, padding, onOpenChange, open, size, dismissible, closeButtonAriaLabel, kind, position, divider, isAnimated, onBeforeClose, modalType, ...panelProps }: PanelProps): JSX.Element;
3
+ ({ children, className: _className, padding, onOpenChange, open, size, dismissible, closeButtonAriaLabel, kind, position, divider, dividerColor, isAnimated, onBeforeClose, modalType, ...panelProps }: PanelProps): JSX.Element;
4
4
  displayName: string;
5
5
  Header: {
6
- ({ children, className: _className, divider, ...props }: import('./Panel.Header').PanelHeaderProps): import("react/jsx-runtime").JSX.Element;
6
+ ({ children, className: _className, divider, dividerColor, backgroundColor, ...props }: import('./Panel.Header').PanelHeaderProps): import("react/jsx-runtime").JSX.Element;
7
7
  displayName: string;
8
8
  Row: {
9
9
  ({ children, className: _className, ...props }: import('./Panel.Header.Row').PanelHeaderRowProps): import("react/jsx-runtime").JSX.Element;
@@ -31,11 +31,11 @@ export declare const Panel: {
31
31
  };
32
32
  };
33
33
  Body: {
34
- ({ children, className: _className, ...props }: import('./Panel.Body').PanelBodyProps): import("react/jsx-runtime").JSX.Element;
34
+ ({ children, className: _className, backgroundColor, ...props }: import('./Panel.Body').PanelBodyProps): import("react/jsx-runtime").JSX.Element;
35
35
  displayName: string;
36
36
  };
37
37
  Footer: {
38
- ({ children, className: _className, divider, ...props }: import('./Panel.Footer').PanelFooterProps): import("react/jsx-runtime").JSX.Element;
38
+ ({ children, className: _className, divider, dividerColor, backgroundColor, ...props }: import('./Panel.Footer').PanelFooterProps): import("react/jsx-runtime").JSX.Element;
39
39
  displayName: string;
40
40
  Actions: {
41
41
  ({ layout, children, className: _className, ...props }: import('./Panel.Footer.Actions').PanelFooterActionsProps): import("react/jsx-runtime").JSX.Element;
@@ -1,92 +1,101 @@
1
- import { jsx as C } from "react/jsx-runtime";
2
- import $ from "clsx";
3
- import { useMemo as g } from "react";
1
+ import { jsx as $ } from "react/jsx-runtime";
2
+ import g from "clsx";
3
+ import { useMemo as h } from "react";
4
4
  import { g as R } from "../../../chunks/classNames.BTJmrO_L.js";
5
5
  import "../../../chunks/constants.CKKGf1-i.js";
6
- import { Header as S } from "./Panel.Header.es.js";
7
- import { Body as V } from "./Panel.Body.es.js";
8
- import { Footer as A } from "./Panel.Footer.es.js";
9
- import { usePanelClose as F, getPanelDividerState as H, PANEL_TRANSITION_DURATION_MS as T, getResolvedPanelPosition as j } from "./Panel.helpers.es.js";
10
- import { InlinePanel as q } from "./Panel.Inline.es.js";
11
- import { OverlayPanel as U } from "./Panel.Overlay.es.js";
12
- import { s as e } from "../../../chunks/panel.module.DGxSyRdA.js";
13
- const { baseClassNamePrefix: o } = R("panel"), i = ({
6
+ import { Header as V } from "./Panel.Header.es.js";
7
+ import { Body as F } from "./Panel.Body.es.js";
8
+ import { Footer as H } from "./Panel.Footer.es.js";
9
+ import { usePanelClose as T, getPanelDividerState as j, PANEL_TRANSITION_DURATION_MS as q, getResolvedPanelPosition as U } from "./Panel.helpers.es.js";
10
+ import { InlinePanel as W } from "./Panel.Inline.es.js";
11
+ import { OverlayPanel as G } from "./Panel.Overlay.es.js";
12
+ import { s as e } from "../../../chunks/panel.module.DJLJpnm_.js";
13
+ const { baseClassNamePrefix: o } = R("panel"), l = ({
14
14
  children: m,
15
15
  className: _,
16
- padding: h = "md",
17
- onOpenChange: w,
18
- open: d,
19
- size: t,
20
- dismissible: f = !0,
21
- closeButtonAriaLabel: p = "Close panel",
22
- kind: r = "inline",
16
+ padding: w = "md",
17
+ onOpenChange: y,
18
+ open: p,
19
+ size: r,
20
+ dismissible: d = !0,
21
+ closeButtonAriaLabel: f = "Close panel",
22
+ kind: t = "inline",
23
23
  position: a,
24
24
  divider: D = !0,
25
- isAnimated: c = !0,
25
+ dividerColor: c,
26
+ isAnimated: u = !0,
26
27
  onBeforeClose: E,
27
28
  modalType: s,
28
- ...l
29
+ ...i
29
30
  }) => {
30
- process.env.NODE_ENV !== "production" && s === "alert" && f && console.warn(
31
+ process.env.NODE_ENV !== "production" && s === "alert" && d && console.warn(
31
32
  'Panel: `dismissible` is ignored when `modalType="alert"`. The close button is always hidden.'
32
- ), process.env.NODE_ENV !== "production" && l.closeOnOutsidePress && s !== "nonModal" && s !== void 0 && console.warn(
33
+ ), process.env.NODE_ENV !== "production" && i.closeOnOutsidePress && s !== "nonModal" && s !== void 0 && console.warn(
33
34
  'Panel: `closeOnOutsidePress` has no effect when `modalType` is not `"nonModal"`.'
34
35
  );
35
- const u = s === "alert" ? !1 : f, n = j(a), N = $(
36
+ const N = s === "alert" ? !1 : d, n = U(a), x = r && (n !== "bottom" || r === "full"), P = g(
36
37
  e[o],
37
- e[`${o}--${r}`],
38
- t && e[`${o}--size-${t}`],
39
- e[`${o}--padding-${h}`],
38
+ e[`${o}--${t}`],
39
+ x && e[`${o}--size-${r}`],
40
+ e[`${o}--padding-${w}`],
40
41
  e[`${o}--position-${n}`],
41
42
  _
42
- ), x = $(
43
+ ), I = g(
43
44
  e[`${o}__inline-wrapper`],
44
- t === "full" && e[`${o}__inline-wrapper--full`]
45
- ), { requestClose: v, handleOverlayOpenChange: y } = F(
45
+ r === "full" && e[`${o}__inline-wrapper--full`]
46
+ ), { requestClose: v, handleOverlayOpenChange: M } = T(
46
47
  E,
47
- w
48
- ), P = g(
49
- () => ({ kind: r, dismissible: u, closeButtonAriaLabel: p, position: a, requestClose: v }),
50
- [r, u, p, a, v]
51
- ), { showDivider: I, dividerBefore: M, dividerInner: b, dividerAfter: B } = H(D, n), O = g(
52
- () => ({ duration: c ? T : 0 }),
53
- [c]
48
+ y
49
+ ), O = h(
50
+ () => ({
51
+ kind: t,
52
+ dismissible: N,
53
+ closeButtonAriaLabel: f,
54
+ position: a,
55
+ requestClose: v
56
+ }),
57
+ [t, N, f, a, v]
58
+ ), { showDivider: b, dividerBefore: S, dividerInner: A, dividerAfter: B } = j(D, n), C = h(
59
+ () => ({ duration: u ? q : 0 }),
60
+ [u]
54
61
  );
55
- return r === "inline" ? /* @__PURE__ */ C(
56
- q,
62
+ return t === "inline" ? /* @__PURE__ */ $(
63
+ W,
57
64
  {
58
- contextValue: P,
59
- panelClassName: N,
60
- inlineWrapperClassName: x,
65
+ contextValue: O,
66
+ panelClassName: P,
67
+ inlineWrapperClassName: I,
61
68
  resolvedPosition: n,
62
- dividerBefore: M,
63
- dividerInner: b,
69
+ dividerBefore: S,
70
+ dividerInner: A,
64
71
  dividerAfter: B,
65
- open: d,
66
- transitionConfig: O,
67
- ...l,
72
+ dividerColor: c,
73
+ open: p,
74
+ transitionConfig: C,
75
+ ...i,
68
76
  children: m
69
77
  }
70
- ) : /* @__PURE__ */ C(
71
- U,
78
+ ) : /* @__PURE__ */ $(
79
+ G,
72
80
  {
73
- contextValue: P,
74
- panelClassName: N,
81
+ contextValue: O,
82
+ panelClassName: P,
75
83
  resolvedPosition: n,
76
- showDivider: I,
84
+ showDivider: b,
85
+ dividerColor: c,
77
86
  modalType: s,
78
- open: d,
79
- onOpenChange: y,
80
- transitionConfig: O,
81
- ...l,
87
+ open: p,
88
+ onOpenChange: M,
89
+ transitionConfig: C,
90
+ ...i,
82
91
  children: m
83
92
  }
84
93
  );
85
94
  };
86
- i.displayName = "Panel";
87
- i.Header = S;
88
- i.Body = V;
89
- i.Footer = A;
95
+ l.displayName = "Panel";
96
+ l.Header = V;
97
+ l.Body = F;
98
+ l.Footer = H;
90
99
  export {
91
- i as Panel
100
+ l as Panel
92
101
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),d=400,f=t=>t||"end",P=(t,s)=>{const e=t&&s!=="full";return{showDivider:e,dividerBefore:e&&s!=="start"&&s!=="bottom",dividerInner:e&&s==="bottom",dividerAfter:e&&s==="start"}},a=(t,s)=>{if(t!=="isModal")return t==="alert"?{escapeKey:!1,outsidePress:!1}:{escapeKey:!1,outsidePress:s??!1}},v=t=>t==="escape-key"?"escapeKey":t==="outside-press"?"outsidePress":"programmatic",N=(t,s)=>{const e=u.useCallback(i=>{if(!t){s==null||s(!1);return}const r=t(i);r instanceof Promise?r.then(l=>{l&&(s==null||s(!1))}).catch(()=>{}):r&&(s==null||s(!1))},[t,s]),c=u.useCallback((i,r,l)=>{i?s==null||s(!0):e(v(l))},[s,e]);return{requestClose:e,handleOverlayOpenChange:c}};exports.PANEL_TRANSITION_DURATION_MS=d;exports.getPanelDismissConfig=a;exports.getPanelDividerState=P;exports.getResolvedPanelPosition=f;exports.usePanelClose=N;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),d=400,f="01",P=t=>t||"end",a=(t,s)=>{const e=t&&s!=="full";return{showDivider:e,dividerBefore:e&&s!=="start"&&s!=="bottom",dividerInner:e&&s==="bottom",dividerAfter:e&&s==="start"}},D=(t,s)=>{if(t!=="isModal")return t==="alert"?{escapeKey:!1,outsidePress:!1}:{escapeKey:!1,outsidePress:s??!1}},_=t=>t==="escape-key"?"escapeKey":t==="outside-press"?"outsidePress":"programmatic",v=(t,s)=>{const e=c.useCallback(i=>{if(!t){s==null||s(!1);return}const r=t(i);r instanceof Promise?r.then(l=>{l&&(s==null||s(!1))}).catch(()=>{}):r&&(s==null||s(!1))},[t,s]),u=c.useCallback((i,r,l)=>{i?s==null||s(!0):e(_(l))},[s,e]);return{requestClose:e,handleOverlayOpenChange:u}};exports.DEFAULT_PANEL_DIVIDER_COLOR=f;exports.PANEL_TRANSITION_DURATION_MS=d;exports.getPanelDismissConfig=D;exports.getPanelDividerState=a;exports.getResolvedPanelPosition=P;exports.usePanelClose=v;
@@ -1,6 +1,7 @@
1
1
  import { OpenChangeReason } from '@floating-ui/react';
2
- import { PanelCloseReason, PanelModalType, PanelPosition, PanelProps } from './Panel.types';
2
+ import { PanelCloseReason, PanelDividerColor, PanelModalType, PanelPosition, PanelProps } from './Panel.types';
3
3
  export declare const PANEL_TRANSITION_DURATION_MS = 400;
4
+ export declare const DEFAULT_PANEL_DIVIDER_COLOR: PanelDividerColor;
4
5
  export declare const getResolvedPanelPosition: (position?: PanelPosition) => PanelPosition;
5
6
  export declare const getPanelDividerState: (divider: boolean, position?: PanelPosition) => {
6
7
  showDivider: boolean;
@@ -1,5 +1,5 @@
1
1
  import { useCallback as c } from "react";
2
- const P = 400, v = (t) => t || "end", m = (t, s) => {
2
+ const P = 400, v = "01", m = (t) => t || "end", D = (t, s) => {
3
3
  const r = t && s !== "full";
4
4
  return {
5
5
  showDivider: r,
@@ -9,10 +9,10 @@ const P = 400, v = (t) => t || "end", m = (t, s) => {
9
9
  dividerInner: r && s === "bottom",
10
10
  dividerAfter: r && s === "start"
11
11
  };
12
- }, a = (t, s) => {
12
+ }, _ = (t, s) => {
13
13
  if (t !== "isModal")
14
14
  return t === "alert" ? { escapeKey: !1, outsidePress: !1 } : { escapeKey: !1, outsidePress: s ?? !1 };
15
- }, u = (t) => t === "escape-key" ? "escapeKey" : t === "outside-press" ? "outsidePress" : "programmatic", y = (t, s) => {
15
+ }, u = (t) => t === "escape-key" ? "escapeKey" : t === "outside-press" ? "outsidePress" : "programmatic", a = (t, s) => {
16
16
  const r = c(
17
17
  (i) => {
18
18
  if (!t) {
@@ -35,9 +35,10 @@ const P = 400, v = (t) => t || "end", m = (t, s) => {
35
35
  return { requestClose: r, handleOverlayOpenChange: f };
36
36
  };
37
37
  export {
38
+ v as DEFAULT_PANEL_DIVIDER_COLOR,
38
39
  P as PANEL_TRANSITION_DURATION_MS,
39
- a as getPanelDismissConfig,
40
- m as getPanelDividerState,
41
- v as getResolvedPanelPosition,
42
- y as usePanelClose
40
+ _ as getPanelDismissConfig,
41
+ D as getPanelDividerState,
42
+ m as getResolvedPanelPosition,
43
+ a as usePanelClose
43
44
  };