@viasat/beam-react 2.2.0 → 2.8.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/assets/ActionList.css +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/RadioButton.css +1 -1
- package/assets/Search.Results.css +1 -0
- package/assets/card.css +1 -1
- package/assets/panel.css +1 -0
- package/chunks/ActionList.Group.B4PX5SKS.js +111 -0
- package/chunks/ActionList.Group.C2R56u2A.js +1 -0
- package/chunks/ActionList.Item.5Y-SwzjK.js +1 -0
- package/chunks/{ActionList.Item.Dg_KHGsm.js → ActionList.Item.BFcT86lS.js} +3 -2
- package/chunks/Search.Results.Item.CLmMBPz1.js +41 -0
- package/chunks/Search.Results.Item.Dkh2yo4p.js +1 -0
- package/chunks/card.module.8KnCe1uR.js +1 -0
- package/chunks/{card.module.Dy87qmTH.js → card.module.ByBYpexJ.js} +12 -6
- package/chunks/dom.DGM-dxLe.js +21 -0
- package/chunks/dom.zgzOBFUw.js +1 -0
- package/chunks/{form.context.B1PXIJNq.js → form.context.B26th8Od.js} +1 -1
- package/chunks/{form.context.CNWjF5qA.js → form.context.CfsTSQpm.js} +1 -1
- package/chunks/panel.module.DbEoAg1J.js +1 -0
- package/chunks/panel.module.RGiUyC84.js +30 -0
- package/chunks/tokens.BD_71qmL.js +19 -0
- package/chunks/tokens.Bc11gmpN.js +1 -0
- package/index.cjs.js +1 -1
- package/index.es.js +17 -15
- package/lib/ActionList/ActionList.Group.cjs.js +1 -1
- package/lib/ActionList/ActionList.Group.d.ts +7 -4
- package/lib/ActionList/ActionList.Group.es.js +2 -2
- package/lib/ActionList/ActionList.IconButton.cjs.js +1 -1
- package/lib/ActionList/ActionList.IconButton.es.js +1 -1
- package/lib/ActionList/ActionList.Item.cjs.js +1 -1
- package/lib/ActionList/ActionList.Item.es.js +3 -3
- package/lib/ActionList/ActionList.cjs.js +1 -1
- package/lib/ActionList/ActionList.d.ts +1 -1
- package/lib/ActionList/ActionList.es.js +54 -54
- package/lib/ActionList/useActionListChildren.cjs.js +1 -1
- package/lib/ActionList/useActionListChildren.es.js +2 -2
- package/lib/Autocomplete/Autocomplete.cjs.js +1 -1
- package/lib/Autocomplete/Autocomplete.es.js +1 -1
- package/lib/Autocomplete/AutocompleteDropdown.cjs.js +1 -1
- package/lib/Autocomplete/AutocompleteDropdown.es.js +1 -1
- package/lib/Autocomplete/useAutocompleteA11y.cjs.js +1 -1
- package/lib/Autocomplete/useAutocompleteA11y.es.js +1 -1
- package/lib/Autocomplete/useAutocompleteDropdown.cjs.js +1 -1
- package/lib/Autocomplete/useAutocompleteDropdown.es.js +1 -1
- package/lib/Box/utils.cjs.js +1 -0
- package/lib/Box/utils.d.ts +6 -0
- package/lib/Box/utils.es.js +12 -0
- package/lib/Button/Button.cjs.js +1 -1
- package/lib/Button/Button.es.js +1 -1
- package/lib/Card/Card.Body.cjs.js +1 -1
- package/lib/Card/Card.Body.es.js +1 -1
- package/lib/Card/Card.Content.cjs.js +1 -1
- package/lib/Card/Card.Content.es.js +12 -17
- package/lib/Card/Card.Footer.cjs.js +1 -1
- package/lib/Card/Card.Footer.d.ts +1 -1
- package/lib/Card/Card.Footer.es.js +1 -1
- package/lib/Card/Card.Header.cjs.js +1 -1
- package/lib/Card/Card.Header.es.js +1 -1
- package/lib/Card/Card.Media.cjs.js +1 -1
- package/lib/Card/Card.Media.es.js +1 -1
- package/lib/Card/Card.cjs.js +1 -1
- package/lib/Card/Card.d.ts +61 -18
- package/lib/Card/Card.es.js +181 -82
- package/lib/Card/CardContext.cjs.js +1 -1
- package/lib/Card/CardContext.d.ts +10 -8
- package/lib/Card/CardContext.es.js +7 -12
- package/lib/Card/CardGroup.cjs.js +1 -0
- package/lib/Card/CardGroup.d.ts +55 -0
- package/lib/Card/CardGroup.es.js +67 -0
- package/lib/Card/card.utils.cjs.js +1 -0
- package/lib/Card/card.utils.d.ts +7 -0
- package/lib/Card/card.utils.es.js +14 -0
- package/lib/Card/index.cjs.js +1 -1
- package/lib/Card/index.d.ts +9 -1
- package/lib/Card/index.es.js +4 -2
- package/lib/Card/useCardGroup.cjs.js +1 -0
- package/lib/Card/useCardGroup.d.ts +27 -0
- package/lib/Card/useCardGroup.es.js +42 -0
- package/lib/Card/useCardGroupValue.cjs.js +1 -0
- package/lib/Card/useCardGroupValue.d.ts +14 -0
- package/lib/Card/useCardGroupValue.es.js +29 -0
- package/lib/Checkbox/Checkbox.cjs.js +1 -1
- package/lib/Checkbox/Checkbox.es.js +1 -1
- package/lib/Dialog/Dialog.Trigger.cjs.js +1 -1
- package/lib/Dialog/Dialog.Trigger.es.js +7 -6
- package/lib/EmptyState/EmptyState.cjs.js +1 -1
- package/lib/EmptyState/EmptyState.es.js +1 -1
- package/lib/FileUpload/FileUpload.List.Item.cjs.js +1 -1
- package/lib/FileUpload/FileUpload.List.Item.es.js +20 -20
- package/lib/FileUpload/FileUpload.cjs.js +1 -1
- package/lib/FileUpload/FileUpload.es.js +1 -1
- package/lib/FloatingUI/index.cjs.js +1 -1
- package/lib/FloatingUI/index.d.ts +1 -0
- package/lib/FloatingUI/index.es.js +7 -5
- package/lib/FloatingUI/useBlur.cjs.js +1 -0
- package/lib/FloatingUI/useBlur.d.ts +8 -0
- package/lib/FloatingUI/useBlur.es.js +15 -0
- package/lib/FloatingUI/useTyping.cjs.js +1 -0
- package/lib/FloatingUI/useTyping.d.ts +10 -0
- package/lib/FloatingUI/useTyping.es.js +42 -0
- package/lib/Form/Form.cjs.js +1 -1
- package/lib/Form/Form.es.js +1 -1
- package/lib/Form/contexts/form.context.cjs.js +1 -1
- package/lib/Form/contexts/form.context.es.js +1 -1
- package/lib/Form/contexts/index.cjs.js +1 -1
- package/lib/Form/contexts/index.es.js +1 -1
- package/lib/Form/hooks/index.cjs.js +1 -1
- package/lib/Form/hooks/index.es.js +1 -1
- package/lib/Form/hooks/useFieldValidator.hook.cjs.js +1 -1
- package/lib/Form/hooks/useFieldValidator.hook.es.js +2 -2
- package/lib/HelperText/HelperText.cjs.js +1 -1
- package/lib/HelperText/HelperText.es.js +1 -1
- package/lib/HelperText/index.cjs.js +1 -1
- package/lib/HelperText/index.es.js +1 -1
- package/lib/InputChoiceGroup/InputChoiceGroup.cjs.js +1 -1
- package/lib/InputChoiceGroup/InputChoiceGroup.es.js +1 -1
- package/lib/Label/Label.cjs.js +1 -1
- package/lib/Label/Label.es.js +1 -1
- package/lib/Link/Link.cjs.js +1 -1
- package/lib/Link/Link.es.js +6 -6
- package/lib/NativeSelect/NativeSelect.cjs.js +1 -1
- package/lib/NativeSelect/NativeSelect.es.js +1 -1
- package/lib/Popover/Popover.cjs.js +1 -1
- package/lib/Popover/Popover.es.js +1 -1
- package/lib/Popover/Popover.trigger.cjs.js +1 -1
- package/lib/Popover/Popover.trigger.es.js +7 -6
- package/lib/Popover/Popover.utils.cjs.js +1 -1
- package/lib/Popover/Popover.utils.es.js +1 -1
- package/lib/ProgressBar/ProgressBar.cjs.js +1 -1
- package/lib/ProgressBar/ProgressBar.es.js +1 -1
- package/lib/RadioButton/RadioButton.cjs.js +1 -1
- package/lib/RadioButton/RadioButton.es.js +1 -1
- package/lib/Select/Select.cjs.js +1 -1
- package/lib/Select/Select.es.js +1 -1
- package/lib/Select/SelectDropdown.cjs.js +1 -1
- package/lib/Select/SelectDropdown.es.js +1 -1
- package/lib/Select/useSelectA11y.cjs.js +1 -1
- package/lib/Select/useSelectA11y.es.js +1 -1
- package/lib/SideNav/SideNavActionListGroup.cjs.js +1 -1
- package/lib/SideNav/SideNavActionListGroup.es.js +1 -1
- package/lib/SideNav/SideNavActionListItem.cjs.js +1 -1
- package/lib/SideNav/SideNavActionListItem.es.js +1 -1
- package/lib/SideNav/SideNavActionListItemExpandable.cjs.js +1 -1
- package/lib/SideNav/SideNavActionListItemExpandable.es.js +1 -1
- package/lib/SideNav/SideNavActionListItemFlyout.cjs.js +1 -1
- package/lib/SideNav/SideNavActionListItemFlyout.es.js +1 -1
- package/lib/Slider/DualSlider.cjs.js +1 -1
- package/lib/Slider/DualSlider.d.ts +1 -1
- package/lib/Slider/DualSlider.es.js +73 -72
- package/lib/Slider/SingleSlider.cjs.js +1 -1
- package/lib/Slider/SingleSlider.d.ts +1 -1
- package/lib/Slider/SingleSlider.es.js +52 -51
- package/lib/Slider/Slider.Error.cjs.js +1 -1
- package/lib/Slider/Slider.Error.es.js +1 -1
- package/lib/Slider/Slider.Thumb.cjs.js +1 -1
- package/lib/Slider/Slider.Thumb.es.js +1 -1
- package/lib/Slider/Slider.cjs.js +1 -1
- package/lib/Slider/Slider.d.ts +1 -3
- package/lib/Slider/Slider.es.js +13 -11
- package/lib/Slider/Slider.types.d.ts +1 -1
- package/lib/Slider/hooks/useSliderBase.cjs.js +1 -1
- package/lib/Slider/hooks/useSliderBase.es.js +1 -1
- package/lib/Switch/Switch.cjs.js +1 -1
- package/lib/Switch/Switch.es.js +1 -1
- package/lib/Tabs/Tabs.Group.cjs.js +1 -1
- package/lib/Tabs/Tabs.Group.es.js +1 -1
- package/lib/TextArea/TextArea.cjs.js +1 -1
- package/lib/TextArea/TextArea.es.js +1 -1
- package/lib/TextField/TextField.cjs.js +1 -1
- package/lib/TextField/TextField.es.js +1 -1
- package/lib/Tooltip/Tooltip.cjs.js +1 -1
- package/lib/Tooltip/Tooltip.es.js +9 -9
- package/lib/_Options/useSelectValue.cjs.js +1 -1
- package/lib/_Options/useSelectValue.es.js +1 -1
- package/lib/index.cjs.js +1 -1
- package/lib/index.es.js +18 -16
- package/lib/wip/Panel/Panel.Body.cjs.js +1 -0
- package/lib/wip/Panel/Panel.Body.d.ts +11 -0
- package/lib/wip/Panel/Panel.Body.es.js +17 -0
- package/lib/wip/Panel/Panel.Footer.Actions.cjs.js +1 -0
- package/lib/wip/Panel/Panel.Footer.Actions.d.ts +17 -0
- package/lib/wip/Panel/Panel.Footer.Actions.es.js +22 -0
- package/lib/wip/Panel/Panel.Footer.cjs.js +1 -0
- package/lib/wip/Panel/Panel.Footer.d.ts +20 -0
- package/lib/wip/Panel/Panel.Footer.es.js +24 -0
- package/lib/wip/Panel/Panel.Header.ContentAfter.cjs.js +1 -0
- package/lib/wip/Panel/Panel.Header.ContentAfter.d.ts +11 -0
- package/lib/wip/Panel/Panel.Header.ContentAfter.es.js +17 -0
- package/lib/wip/Panel/Panel.Header.ContentBefore.cjs.js +1 -0
- package/lib/wip/Panel/Panel.Header.ContentBefore.d.ts +11 -0
- package/lib/wip/Panel/Panel.Header.ContentBefore.es.js +17 -0
- package/lib/wip/Panel/Panel.Header.Description.cjs.js +1 -0
- package/lib/wip/Panel/Panel.Header.Description.d.ts +11 -0
- package/lib/wip/Panel/Panel.Header.Description.es.js +17 -0
- package/lib/wip/Panel/Panel.Header.Heading.cjs.js +1 -0
- package/lib/wip/Panel/Panel.Header.Heading.d.ts +11 -0
- package/lib/wip/Panel/Panel.Header.Heading.es.js +17 -0
- package/lib/wip/Panel/Panel.Header.Row.cjs.js +1 -0
- package/lib/wip/Panel/Panel.Header.Row.d.ts +11 -0
- package/lib/wip/Panel/Panel.Header.Row.es.js +29 -0
- package/lib/wip/Panel/Panel.Header.Subheader.cjs.js +1 -0
- package/lib/wip/Panel/Panel.Header.Subheader.d.ts +11 -0
- package/lib/wip/Panel/Panel.Header.Subheader.es.js +17 -0
- package/lib/wip/Panel/Panel.Header.cjs.js +1 -0
- package/lib/wip/Panel/Panel.Header.d.ts +40 -0
- package/lib/wip/Panel/Panel.Header.es.js +34 -0
- package/lib/wip/Panel/Panel.cjs.js +1 -0
- package/lib/wip/Panel/Panel.context.cjs.js +1 -0
- package/lib/wip/Panel/Panel.context.d.ts +16 -0
- package/lib/wip/Panel/Panel.context.es.js +11 -0
- package/lib/wip/Panel/Panel.d.ts +45 -0
- package/lib/wip/Panel/Panel.es.js +43 -0
- package/lib/wip/Panel/Panel.types.cjs.js +1 -0
- package/lib/wip/Panel/Panel.types.d.ts +71 -0
- package/lib/wip/Panel/Panel.types.es.js +1 -0
- package/lib/wip/Panel/index.cjs.js +1 -0
- package/lib/wip/Panel/index.d.ts +12 -0
- package/lib/wip/Panel/index.es.js +4 -0
- package/lib/wip/Search/Search.Results.Item.cjs.js +1 -0
- package/lib/wip/Search/Search.Results.Item.d.ts +8 -0
- package/lib/wip/Search/Search.Results.Item.es.js +12 -0
- package/lib/wip/Search/Search.Results.cjs.js +1 -0
- package/lib/wip/Search/Search.Results.d.ts +12 -0
- package/lib/wip/Search/Search.Results.es.js +19 -0
- package/lib/wip/Search/Search.cjs.js +1 -0
- package/lib/wip/Search/Search.d.ts +88 -0
- package/lib/wip/Search/Search.es.js +157 -0
- package/lib/wip/Search/SearchDropdown.cjs.js +1 -0
- package/lib/wip/Search/SearchDropdown.d.ts +19 -0
- package/lib/wip/Search/SearchDropdown.es.js +71 -0
- package/lib/wip/Search/index.cjs.js +1 -0
- package/lib/wip/Search/index.d.ts +1 -0
- package/lib/wip/Search/index.es.js +4 -0
- package/lib/wip/Search/useSearchDropdown.cjs.js +1 -0
- package/lib/wip/Search/useSearchDropdown.d.ts +875 -0
- package/lib/wip/Search/useSearchDropdown.es.js +92 -0
- package/lib/wip/index.cjs.js +1 -1
- package/lib/wip/index.d.ts +2 -0
- package/lib/wip/index.es.js +6 -1
- package/package.json +6 -6
- package/utils/hooks/index.cjs.js +1 -1
- package/utils/hooks/index.d.ts +1 -0
- package/utils/hooks/index.es.js +33 -31
- package/utils/hooks/useDebounced.cjs.js +1 -0
- package/utils/hooks/useDebounced.d.ts +5 -0
- package/utils/hooks/useDebounced.es.js +18 -0
- package/utils/hooks/useEffectAfterMount.cjs.js +1 -0
- package/utils/hooks/useEffectAfterMount.d.ts +2 -0
- package/utils/hooks/useEffectAfterMount.es.js +14 -0
- package/utils/hooks/useInteractiveProps.cjs.js +1 -0
- package/utils/hooks/useInteractiveProps.d.ts +24 -0
- package/utils/hooks/useInteractiveProps.es.js +31 -0
- package/chunks/ActionList.Group.Bv9vgU22.js +0 -1
- package/chunks/ActionList.Group.DuNxYNZQ.js +0 -107
- package/chunks/ActionList.Item.D7Rg5iMb.js +0 -1
- package/chunks/card.module.BG9mkRao.js +0 -1
- package/chunks/dom.CVmkHCnh.js +0 -21
- package/chunks/dom.PCrm8EUc.js +0 -1
- package/chunks/tokens.Bgac_JPh.js +0 -1
- package/chunks/tokens.CXaNS8Cf.js +0 -13
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsxs as i, Fragment as l, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import n from "clsx";
|
|
3
|
+
import { g as c } from "../../../chunks/classNames.DNsS4J__.js";
|
|
4
|
+
import "../../../chunks/constants.BBi77pmH.js";
|
|
5
|
+
import { Divider as p } from "../../Divider/Divider.es.js";
|
|
6
|
+
import { Actions as f } from "./Panel.Footer.Actions.es.js";
|
|
7
|
+
import { s as x } from "../../../chunks/panel.module.RGiUyC84.js";
|
|
8
|
+
const { subElementClassPrefix: N } = c("panel"), d = `${N}footer`, o = ({
|
|
9
|
+
children: r,
|
|
10
|
+
divider: t = !0,
|
|
11
|
+
className: e,
|
|
12
|
+
...m
|
|
13
|
+
}) => {
|
|
14
|
+
const a = n(x[d], e);
|
|
15
|
+
return /* @__PURE__ */ i(l, { children: [
|
|
16
|
+
t && /* @__PURE__ */ s(p, {}),
|
|
17
|
+
/* @__PURE__ */ s("footer", { className: a, ...m, children: r })
|
|
18
|
+
] });
|
|
19
|
+
};
|
|
20
|
+
o.displayName = "Panel.Footer";
|
|
21
|
+
o.Actions = f;
|
|
22
|
+
export {
|
|
23
|
+
o as Footer
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),l=require("clsx"),o=require("../../../chunks/classNames.DAeKwerT.js");require("../../../chunks/constants.hwjHOsvT.js");const c=require("../../../chunks/panel.module.DbEoAg1J.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;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React, ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export interface PanelHeaderContentAfterProps extends ComponentPropsWithoutRef<'div'> {
|
|
3
|
+
/**
|
|
4
|
+
* Specify the content after the heading
|
|
5
|
+
*/
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const ContentAfter: {
|
|
9
|
+
({ children, className: _className, ...props }: PanelHeaderContentAfterProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import o from "clsx";
|
|
3
|
+
import { g as m } from "../../../chunks/classNames.DNsS4J__.js";
|
|
4
|
+
import "../../../chunks/constants.BBi77pmH.js";
|
|
5
|
+
import { s as n } from "../../../chunks/panel.module.RGiUyC84.js";
|
|
6
|
+
const { subElementClassPrefix: l } = m("panel"), c = `${l}header`, f = ({
|
|
7
|
+
children: s,
|
|
8
|
+
className: e,
|
|
9
|
+
...t
|
|
10
|
+
}) => {
|
|
11
|
+
const a = o(n[`${c}__content-after`], e);
|
|
12
|
+
return /* @__PURE__ */ r("div", { className: a, ...t, children: s });
|
|
13
|
+
};
|
|
14
|
+
f.displayName = "Panel.Header.ContentAfter";
|
|
15
|
+
export {
|
|
16
|
+
f as ContentAfter
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),a=require("clsx"),l=require("../../../chunks/classNames.DAeKwerT.js");require("../../../chunks/constants.hwjHOsvT.js");const c=require("../../../chunks/panel.module.DbEoAg1J.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;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React, ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export interface PanelHeaderContentBeforeProps extends ComponentPropsWithoutRef<'div'> {
|
|
3
|
+
/**
|
|
4
|
+
* Specify the content before the heading
|
|
5
|
+
*/
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const ContentBefore: {
|
|
9
|
+
({ children, className: _className, ...props }: PanelHeaderContentBeforeProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import a from "clsx";
|
|
3
|
+
import { g as m } from "../../../chunks/classNames.DNsS4J__.js";
|
|
4
|
+
import "../../../chunks/constants.BBi77pmH.js";
|
|
5
|
+
import { s as n } from "../../../chunks/panel.module.RGiUyC84.js";
|
|
6
|
+
const { subElementClassPrefix: l } = m("panel"), c = `${l}header`, f = ({
|
|
7
|
+
children: e,
|
|
8
|
+
className: s,
|
|
9
|
+
...o
|
|
10
|
+
}) => {
|
|
11
|
+
const t = a(n[`${c}__content-before`], s);
|
|
12
|
+
return /* @__PURE__ */ r("div", { className: t, ...o, children: e });
|
|
13
|
+
};
|
|
14
|
+
f.displayName = "Panel.Header.ContentBefore";
|
|
15
|
+
export {
|
|
16
|
+
f as ContentBefore
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),n=require("clsx"),c=require("../../../chunks/classNames.DAeKwerT.js");require("../../../chunks/constants.hwjHOsvT.js");const l=require("../../../chunks/panel.module.DbEoAg1J.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;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React, ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export interface PanelHeaderDescriptionProps extends ComponentPropsWithoutRef<'div'> {
|
|
3
|
+
/**
|
|
4
|
+
* Specify the description content
|
|
5
|
+
*/
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const Description: {
|
|
9
|
+
({ children, className: _className, ...props }: PanelHeaderDescriptionProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import t from "clsx";
|
|
3
|
+
import { g as i } from "../../../chunks/classNames.DNsS4J__.js";
|
|
4
|
+
import "../../../chunks/constants.BBi77pmH.js";
|
|
5
|
+
import { s as m } from "../../../chunks/panel.module.RGiUyC84.js";
|
|
6
|
+
const { subElementClassPrefix: l } = i("panel"), n = `${l}header`, p = ({
|
|
7
|
+
children: s,
|
|
8
|
+
className: e,
|
|
9
|
+
...r
|
|
10
|
+
}) => {
|
|
11
|
+
const a = t(m[`${n}__description`], e);
|
|
12
|
+
return /* @__PURE__ */ o("div", { className: a, ...r, children: s });
|
|
13
|
+
};
|
|
14
|
+
p.displayName = "Panel.Header.Description";
|
|
15
|
+
export {
|
|
16
|
+
p as Description
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),l=require("clsx"),i=require("../../../chunks/classNames.DAeKwerT.js");require("../../../chunks/constants.hwjHOsvT.js");const c=require("../../../chunks/panel.module.DbEoAg1J.js"),{subElementClassPrefix:o}=i.getBEMClassNames("panel"),u=`${o}header`,e=({children:s,className:a,...n})=>{const r=l(c.styles[`${u}__heading`],a);return t.jsx("div",{className:r,...n,children:s})};e.displayName="Panel.Header.Heading";exports.Heading=e;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React, ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export interface PanelHeaderHeadingProps extends ComponentPropsWithoutRef<'div'> {
|
|
3
|
+
/**
|
|
4
|
+
* Specify the heading content
|
|
5
|
+
*/
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const Heading: {
|
|
9
|
+
({ children, className: _className, ...props }: PanelHeaderHeadingProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import o from "clsx";
|
|
3
|
+
import { g as t } from "../../../chunks/classNames.DNsS4J__.js";
|
|
4
|
+
import "../../../chunks/constants.BBi77pmH.js";
|
|
5
|
+
import { s as i } from "../../../chunks/panel.module.RGiUyC84.js";
|
|
6
|
+
const { subElementClassPrefix: l } = t("panel"), n = `${l}header`, p = ({
|
|
7
|
+
children: s,
|
|
8
|
+
className: e,
|
|
9
|
+
...a
|
|
10
|
+
}) => {
|
|
11
|
+
const r = o(i[`${n}__heading`], e);
|
|
12
|
+
return /* @__PURE__ */ m("div", { className: r, ...a, children: s });
|
|
13
|
+
};
|
|
14
|
+
p.displayName = "Panel.Header.Heading";
|
|
15
|
+
export {
|
|
16
|
+
p as Heading
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),d=require("clsx"),m=require("../../../chunks/classNames.DAeKwerT.js");require("../../../chunks/constants.hwjHOsvT.js");const _=require("../../CloseButton/CloseButton.cjs.js"),b=require("./Panel.context.cjs.js"),l=require("../../../chunks/panel.module.DbEoAg1J.js"),{subElementClassPrefix:x}=m.getBEMClassNames("panel"),t=`${x}header`,o=({children:a,className:n,...r})=>{const{dismissible:i,closeButtonAriaLabel:c,onOpenChange:e}=b.usePanelContext(),u=d(l.styles[`${t}__row`],n);return s.jsxs("div",{className:u,...r,children:[a,i&&s.jsx("div",{className:l.styles[`${t}__close-button`],children:s.jsx(_.CloseButton,{"aria-label":c,onClick:()=>e==null?void 0:e(!1),size:"lg"})})]})};o.displayName="Panel.Header.Row";exports.Row=o;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React, ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export interface PanelHeaderRowProps extends ComponentPropsWithoutRef<'div'> {
|
|
3
|
+
/**
|
|
4
|
+
* Specify the content for the header row
|
|
5
|
+
*/
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const Row: {
|
|
9
|
+
({ children, className: _className, ...props }: PanelHeaderRowProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import p from "clsx";
|
|
3
|
+
import { g as d } from "../../../chunks/classNames.DNsS4J__.js";
|
|
4
|
+
import "../../../chunks/constants.BBi77pmH.js";
|
|
5
|
+
import { CloseButton as f } from "../../CloseButton/CloseButton.es.js";
|
|
6
|
+
import { usePanelContext as b } from "./Panel.context.es.js";
|
|
7
|
+
import { s as o } from "../../../chunks/panel.module.RGiUyC84.js";
|
|
8
|
+
const { subElementClassPrefix: u } = d("panel"), a = `${u}header`, x = ({
|
|
9
|
+
children: l,
|
|
10
|
+
className: t,
|
|
11
|
+
...r
|
|
12
|
+
}) => {
|
|
13
|
+
const { dismissible: i, closeButtonAriaLabel: m, onOpenChange: s } = b(), c = p(o[`${a}__row`], t);
|
|
14
|
+
return /* @__PURE__ */ n("div", { className: c, ...r, children: [
|
|
15
|
+
l,
|
|
16
|
+
i && /* @__PURE__ */ e("div", { className: o[`${a}__close-button`], children: /* @__PURE__ */ e(
|
|
17
|
+
f,
|
|
18
|
+
{
|
|
19
|
+
"aria-label": m,
|
|
20
|
+
onClick: () => s == null ? void 0 : s(!1),
|
|
21
|
+
size: "lg"
|
|
22
|
+
}
|
|
23
|
+
) })
|
|
24
|
+
] });
|
|
25
|
+
};
|
|
26
|
+
x.displayName = "Panel.Header.Row";
|
|
27
|
+
export {
|
|
28
|
+
x as Row
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),n=require("clsx"),u=require("../../../chunks/classNames.DAeKwerT.js");require("../../../chunks/constants.hwjHOsvT.js");const c=require("../../../chunks/panel.module.DbEoAg1J.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;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React, ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export interface PanelHeaderSubheaderProps extends ComponentPropsWithoutRef<'div'> {
|
|
3
|
+
/**
|
|
4
|
+
* Specify the subheader content
|
|
5
|
+
*/
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const Subheader: {
|
|
9
|
+
({ children, className: _className, ...props }: PanelHeaderSubheaderProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import o from "clsx";
|
|
3
|
+
import { g as t } from "../../../chunks/classNames.DNsS4J__.js";
|
|
4
|
+
import "../../../chunks/constants.BBi77pmH.js";
|
|
5
|
+
import { s as l } from "../../../chunks/panel.module.RGiUyC84.js";
|
|
6
|
+
const { subElementClassPrefix: i } = t("panel"), n = `${i}header`, p = ({
|
|
7
|
+
children: s,
|
|
8
|
+
className: e,
|
|
9
|
+
...a
|
|
10
|
+
}) => {
|
|
11
|
+
const r = o(l[`${n}__subheader`], e);
|
|
12
|
+
return /* @__PURE__ */ m("div", { className: r, ...a, children: s });
|
|
13
|
+
};
|
|
14
|
+
p.displayName = "Panel.Header.Subheader";
|
|
15
|
+
export {
|
|
16
|
+
p as Subheader
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),l=require("clsx"),o=require("../../../chunks/classNames.DAeKwerT.js");require("../../../chunks/constants.hwjHOsvT.js");const _=require("../../Divider/Divider.cjs.js"),c=require("./Panel.Header.Row.cjs.js"),d=require("./Panel.Header.ContentBefore.cjs.js"),u=require("./Panel.Header.Heading.cjs.js"),P=require("./Panel.Header.ContentAfter.cjs.js"),b=require("./Panel.Header.Description.cjs.js"),p=require("./Panel.Header.Subheader.cjs.js"),q=require("../../../chunks/panel.module.DbEoAg1J.js"),{subElementClassPrefix:H}=o.getBEMClassNames("panel"),m=`${H}header`,e=({children:n,divider:a=!0,className:i,...t})=>{const s=l(q.styles[m],i);return r.jsxs(r.Fragment,{children:[r.jsx("header",{className:s,...t,children:n}),a&&r.jsx(_.Divider,{})]})};e.displayName="Panel.Header";e.Row=c.Row;e.ContentBefore=d.ContentBefore;e.Heading=u.Heading;e.Description=b.Description;e.ContentAfter=P.ContentAfter;e.Subheader=p.Subheader;exports.Header=e;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { default as React, ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export interface PanelHeaderProps extends ComponentPropsWithoutRef<'header'> {
|
|
3
|
+
/**
|
|
4
|
+
* Specify the content for the panel header
|
|
5
|
+
*/
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Whether to show a divider below the header
|
|
9
|
+
* @default true
|
|
10
|
+
*/
|
|
11
|
+
divider?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const Header: {
|
|
14
|
+
({ children, divider, className: _className, ...props }: PanelHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
Row: {
|
|
17
|
+
({ children, className: _className, ...props }: import('./Panel.Header.Row').PanelHeaderRowProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
ContentBefore: {
|
|
21
|
+
({ children, className: _className, ...props }: import('./Panel.Header.ContentBefore').PanelHeaderContentBeforeProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
Heading: {
|
|
25
|
+
({ children, className: _className, ...props }: import('./Panel.Header.Heading').PanelHeaderHeadingProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
displayName: string;
|
|
27
|
+
};
|
|
28
|
+
Description: {
|
|
29
|
+
({ children, className: _className, ...props }: import('./Panel.Header.Description').PanelHeaderDescriptionProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
displayName: string;
|
|
31
|
+
};
|
|
32
|
+
ContentAfter: {
|
|
33
|
+
({ children, className: _className, ...props }: import('./Panel.Header.ContentAfter').PanelHeaderContentAfterProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
displayName: string;
|
|
35
|
+
};
|
|
36
|
+
Subheader: {
|
|
37
|
+
({ children, className: _className, ...props }: import('./Panel.Header.Subheader').PanelHeaderSubheaderProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
displayName: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsxs as i, Fragment as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import p from "clsx";
|
|
3
|
+
import { g as f } from "../../../chunks/classNames.DNsS4J__.js";
|
|
4
|
+
import "../../../chunks/constants.BBi77pmH.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 g } from "./Panel.Header.ContentAfter.es.js";
|
|
10
|
+
import { Description as h } from "./Panel.Header.Description.es.js";
|
|
11
|
+
import { Subheader as u } from "./Panel.Header.Subheader.es.js";
|
|
12
|
+
import { s as x } from "../../../chunks/panel.module.RGiUyC84.js";
|
|
13
|
+
const { subElementClassPrefix: b } = f("panel"), H = `${b}header`, e = ({
|
|
14
|
+
children: o,
|
|
15
|
+
divider: t = !0,
|
|
16
|
+
className: m,
|
|
17
|
+
...s
|
|
18
|
+
}) => {
|
|
19
|
+
const a = p(x[H], m);
|
|
20
|
+
return /* @__PURE__ */ i(n, { children: [
|
|
21
|
+
/* @__PURE__ */ r("header", { className: a, ...s, children: o }),
|
|
22
|
+
t && /* @__PURE__ */ r(l, {})
|
|
23
|
+
] });
|
|
24
|
+
};
|
|
25
|
+
e.displayName = "Panel.Header";
|
|
26
|
+
e.Row = d;
|
|
27
|
+
e.ContentBefore = c;
|
|
28
|
+
e.Heading = C;
|
|
29
|
+
e.Description = h;
|
|
30
|
+
e.ContentAfter = g;
|
|
31
|
+
e.Subheader = u;
|
|
32
|
+
export {
|
|
33
|
+
e as Header
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),m=require("clsx"),q=require("../../../chunks/classNames.DAeKwerT.js");require("../../../chunks/constants.hwjHOsvT.js");const x=require("./Panel.context.cjs.js"),$=require("./Panel.Header.cjs.js"),b=require("./Panel.Body.cjs.js"),N=require("./Panel.Footer.cjs.js"),e=require("../../../chunks/panel.module.DbEoAg1J.js"),{baseClassNamePrefix:s}=q.getBEMClassNames("panel"),l=({children:r,className:o,padding:i="md",onOpenChange:c,open:g,size:n,dismissible:u=!0,closeButtonAriaLabel:_="Close panel",kind:d="inline",position:a,...P})=>{const p=m(e.styles[s],e.styles[`${s}--${d}`],n&&e.styles[`${s}--size-${n}`],e.styles[`${s}--padding-${i}`],a&&e.styles[`${s}--position-${a}`],o),y={dismissible:u,closeButtonAriaLabel:_,onOpenChange:c};return t.jsx(x.PanelContext.Provider,{value:y,children:t.jsx("aside",{className:p,...P,children:r})})};l.displayName="Panel";l.Header=$.Header;l.Body=b.Body;l.Footer=N.Footer;exports.Panel=l;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),n=t.createContext(void 0),o=()=>{const e=t.useContext(n);if(!e)throw new Error("Panel subcomponents must be used within a Panel component");return e};exports.PanelContext=n;exports.usePanelContext=o;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface PanelContextValue {
|
|
2
|
+
/**
|
|
3
|
+
* Whether to show a dismissible button
|
|
4
|
+
*/
|
|
5
|
+
dismissible?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Aria label for the dismissible button
|
|
8
|
+
*/
|
|
9
|
+
closeButtonAriaLabel?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Callback when panel open state changes
|
|
12
|
+
*/
|
|
13
|
+
onOpenChange?: (open: boolean) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const PanelContext: import('react').Context<PanelContextValue | undefined>;
|
|
16
|
+
export declare const usePanelContext: () => PanelContextValue;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createContext as e, useContext as n } from "react";
|
|
2
|
+
const o = e(void 0), s = () => {
|
|
3
|
+
const t = n(o);
|
|
4
|
+
if (!t)
|
|
5
|
+
throw new Error("Panel subcomponents must be used within a Panel component");
|
|
6
|
+
return t;
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
o as PanelContext,
|
|
10
|
+
s as usePanelContext
|
|
11
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { PanelProps } from './Panel.types';
|
|
2
|
+
export declare const Panel: {
|
|
3
|
+
({ children, className: _className, padding, onOpenChange, open, size, dismissible, closeButtonAriaLabel, kind, position, ...props }: PanelProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
displayName: string;
|
|
5
|
+
Header: {
|
|
6
|
+
({ children, divider, className: _className, ...props }: import('./Panel.Header').PanelHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
Row: {
|
|
9
|
+
({ children, className: _className, ...props }: import('./Panel.Header.Row').PanelHeaderRowProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
ContentBefore: {
|
|
13
|
+
({ children, className: _className, ...props }: import('./Panel.Header.ContentBefore').PanelHeaderContentBeforeProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
Heading: {
|
|
17
|
+
({ children, className: _className, ...props }: import('./Panel.Header.Heading').PanelHeaderHeadingProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
Description: {
|
|
21
|
+
({ children, className: _className, ...props }: import('./Panel.Header.Description').PanelHeaderDescriptionProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
ContentAfter: {
|
|
25
|
+
({ children, className: _className, ...props }: import('./Panel.Header.ContentAfter').PanelHeaderContentAfterProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
displayName: string;
|
|
27
|
+
};
|
|
28
|
+
Subheader: {
|
|
29
|
+
({ children, className: _className, ...props }: import('./Panel.Header.Subheader').PanelHeaderSubheaderProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
displayName: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
Body: {
|
|
34
|
+
({ children, className: _className, ...props }: import('./Panel.Body').PanelBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
displayName: string;
|
|
36
|
+
};
|
|
37
|
+
Footer: {
|
|
38
|
+
({ children, divider, className: _className, ...props }: import('./Panel.Footer').PanelFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
displayName: string;
|
|
40
|
+
Actions: {
|
|
41
|
+
({ layout, children, className: _className, ...props }: import('./Panel.Footer.Actions').PanelFooterActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
displayName: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import N from "clsx";
|
|
3
|
+
import { g as P } from "../../../chunks/classNames.DNsS4J__.js";
|
|
4
|
+
import "../../../chunks/constants.BBi77pmH.js";
|
|
5
|
+
import { PanelContext as u } from "./Panel.context.es.js";
|
|
6
|
+
import { Header as y } from "./Panel.Header.es.js";
|
|
7
|
+
import { Body as C } from "./Panel.Body.es.js";
|
|
8
|
+
import { Footer as g } from "./Panel.Footer.es.js";
|
|
9
|
+
import { s as e } from "../../../chunks/panel.module.RGiUyC84.js";
|
|
10
|
+
const { baseClassNamePrefix: o } = P("panel"), r = ({
|
|
11
|
+
children: m,
|
|
12
|
+
className: i,
|
|
13
|
+
padding: l = "md",
|
|
14
|
+
onOpenChange: n,
|
|
15
|
+
open: B,
|
|
16
|
+
size: a,
|
|
17
|
+
dismissible: p = !0,
|
|
18
|
+
closeButtonAriaLabel: d = "Close panel",
|
|
19
|
+
kind: c = "inline",
|
|
20
|
+
position: s,
|
|
21
|
+
...f
|
|
22
|
+
}) => {
|
|
23
|
+
const $ = N(
|
|
24
|
+
e[o],
|
|
25
|
+
e[`${o}--${c}`],
|
|
26
|
+
a && e[`${o}--size-${a}`],
|
|
27
|
+
e[`${o}--padding-${l}`],
|
|
28
|
+
s && e[`${o}--position-${s}`],
|
|
29
|
+
i
|
|
30
|
+
), x = {
|
|
31
|
+
dismissible: p,
|
|
32
|
+
closeButtonAriaLabel: d,
|
|
33
|
+
onOpenChange: n
|
|
34
|
+
};
|
|
35
|
+
return /* @__PURE__ */ t(u.Provider, { value: x, children: /* @__PURE__ */ t("aside", { className: $, ...f, children: m }) });
|
|
36
|
+
};
|
|
37
|
+
r.displayName = "Panel";
|
|
38
|
+
r.Header = y;
|
|
39
|
+
r.Body = C;
|
|
40
|
+
r.Footer = g;
|
|
41
|
+
export {
|
|
42
|
+
r as Panel
|
|
43
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export type PanelKind = 'inline' | 'overlay';
|
|
3
|
+
export type PanelPosition = 'start' | 'end' | 'bottom' | 'full';
|
|
4
|
+
export type PanelModalType = 'nonModal' | 'isModal' | 'alert';
|
|
5
|
+
export type PanelSize = 'sm' | 'md' | 'lg' | 'full' | 'custom';
|
|
6
|
+
export type PanelPadding = 'sm' | 'md';
|
|
7
|
+
interface BasePanelProps extends ComponentPropsWithoutRef<'aside'> {
|
|
8
|
+
/**
|
|
9
|
+
* Specify the content of the Panel
|
|
10
|
+
*/
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Specify if the Panel is open (controlled)
|
|
14
|
+
*/
|
|
15
|
+
open?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Callback when Panel open state changes
|
|
18
|
+
*/
|
|
19
|
+
onOpenChange?: (open: boolean) => void;
|
|
20
|
+
/**
|
|
21
|
+
* Specify the size of the Panel
|
|
22
|
+
* @default 'md'
|
|
23
|
+
*/
|
|
24
|
+
size?: PanelSize;
|
|
25
|
+
/**
|
|
26
|
+
* Specify the horizontal padding
|
|
27
|
+
* sm=1rem, md=1.5rem
|
|
28
|
+
* @default 'md'
|
|
29
|
+
*/
|
|
30
|
+
padding?: PanelPadding;
|
|
31
|
+
/**
|
|
32
|
+
* Whether to show a dismissible button
|
|
33
|
+
* @default true
|
|
34
|
+
*/
|
|
35
|
+
dismissible?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Aria label for the dismissible button
|
|
38
|
+
* @default 'Close panel'
|
|
39
|
+
*/
|
|
40
|
+
closeButtonAriaLabel?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface InlinePanelProps extends BasePanelProps {
|
|
43
|
+
/**
|
|
44
|
+
* Specify the Panel as inline
|
|
45
|
+
*/
|
|
46
|
+
kind?: 'inline';
|
|
47
|
+
/**
|
|
48
|
+
* Specify the position of the Panel
|
|
49
|
+
* For inline: 'bottom'
|
|
50
|
+
*/
|
|
51
|
+
position?: 'bottom';
|
|
52
|
+
}
|
|
53
|
+
export interface OverlayPanelProps extends BasePanelProps {
|
|
54
|
+
/**
|
|
55
|
+
* Specify the Panel as overlay
|
|
56
|
+
*/
|
|
57
|
+
kind: 'overlay';
|
|
58
|
+
/**
|
|
59
|
+
* Specify the position of the Panel
|
|
60
|
+
* For overlay: 'start' | 'end' | 'bottom' | 'full'
|
|
61
|
+
* @default 'end'
|
|
62
|
+
*/
|
|
63
|
+
position?: PanelPosition;
|
|
64
|
+
/**
|
|
65
|
+
* Specify the modal type (overlay only)
|
|
66
|
+
* @default 'nonModal'
|
|
67
|
+
*/
|
|
68
|
+
modalType?: PanelModalType;
|
|
69
|
+
}
|
|
70
|
+
export type PanelProps = InlinePanelProps | OverlayPanelProps;
|
|
71
|
+
export type { PanelHeaderProps } from './Panel.Header';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Panel.cjs.js");exports.Panel=e.Panel;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { Panel } from './Panel';
|
|
2
|
+
export type { PanelProps, InlinePanelProps, OverlayPanelProps, PanelKind, PanelPosition, PanelModalType, PanelSize, PanelPadding, } from './Panel.types';
|
|
3
|
+
export type { PanelHeaderProps } from './Panel.Header';
|
|
4
|
+
export type { PanelHeaderRowProps } from './Panel.Header.Row';
|
|
5
|
+
export type { PanelHeaderContentBeforeProps } from './Panel.Header.ContentBefore';
|
|
6
|
+
export type { PanelHeaderHeadingProps } from './Panel.Header.Heading';
|
|
7
|
+
export type { PanelHeaderDescriptionProps } from './Panel.Header.Description';
|
|
8
|
+
export type { PanelHeaderContentAfterProps } from './Panel.Header.ContentAfter';
|
|
9
|
+
export type { PanelHeaderSubheaderProps } from './Panel.Header.Subheader';
|
|
10
|
+
export type { PanelBodyProps } from './Panel.Body';
|
|
11
|
+
export type { PanelFooterProps } from './Panel.Footer';
|
|
12
|
+
export type { PanelFooterActionsProps } from './Panel.Footer.Actions';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("react/jsx-runtime");require("react");require("../../../chunks/classNames.DAeKwerT.js");require("../../../chunks/constants.hwjHOsvT.js");require("clsx");const e=require("../../../chunks/Search.Results.Item.Dkh2yo4p.js");require("../../ActionList/ActionList.cjs.js");exports.SearchResultsItem=e.SearchResultsItem;exports.SearchResultsItemComponent=e.SearchResultsItemComponent;exports.default=e.SearchResultsItem;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ActionListItemProps } from '../../ActionList/ActionList.Item';
|
|
3
|
+
export interface SearchResultsItemProps extends ActionListItemProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const SearchResultsItemComponent: React.ForwardRefExoticComponent<SearchResultsItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export declare const SearchResultsItem: typeof SearchResultsItemComponent;
|
|
8
|
+
export default SearchResultsItem;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "../../../chunks/classNames.DNsS4J__.js";
|
|
4
|
+
import "../../../chunks/constants.BBi77pmH.js";
|
|
5
|
+
import "clsx";
|
|
6
|
+
import { S as i, a as S, S as l } from "../../../chunks/Search.Results.Item.CLmMBPz1.js";
|
|
7
|
+
import "../../ActionList/ActionList.es.js";
|
|
8
|
+
export {
|
|
9
|
+
i as SearchResultsItem,
|
|
10
|
+
S as SearchResultsItemComponent,
|
|
11
|
+
l as default
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("react/jsx-runtime"),u=require("../../../chunks/classNames.DAeKwerT.js");require("../../../chunks/constants.hwjHOsvT.js");const i=require("clsx"),s=require("../../../chunks/Search.Results.Item.Dkh2yo4p.js"),o=require("../../ActionList/ActionList.cjs.js"),{baseClassNamePrefix:n}=u.getBEMClassNames("search"),t=({children:r,...c})=>{const a=i.clsx(s.styles[`${n}__results`]);return l.jsx(o.ActionList.Group,{className:a,...c,children:r})},e=t;e.Item=s.SearchResultsItem;e.displayName="Search.Results";exports.SearchResults=e;exports.SearchResultsComponent=t;exports.default=e;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { default as Item } from './Search.Results.Item';
|
|
3
|
+
import { ActionListGroupProps } from '../../ActionList/ActionList.Group';
|
|
4
|
+
export interface SearchResultsProps extends ActionListGroupProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
noResults?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const SearchResultsComponent: React.FC<SearchResultsProps>;
|
|
9
|
+
export declare const SearchResults: typeof SearchResultsComponent & {
|
|
10
|
+
Item: typeof Item;
|
|
11
|
+
};
|
|
12
|
+
export default SearchResults;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { g as a } from "../../../chunks/classNames.DNsS4J__.js";
|
|
3
|
+
import "../../../chunks/constants.BBi77pmH.js";
|
|
4
|
+
import { clsx as m } from "clsx";
|
|
5
|
+
import { s as c, S as l } from "../../../chunks/Search.Results.Item.CLmMBPz1.js";
|
|
6
|
+
import { ActionList as i } from "../../ActionList/ActionList.es.js";
|
|
7
|
+
const { baseClassNamePrefix: p } = a("search"), n = ({ children: t, ...e }) => {
|
|
8
|
+
const r = m(
|
|
9
|
+
c[`${p}__results`]
|
|
10
|
+
);
|
|
11
|
+
return /* @__PURE__ */ o(i.Group, { className: r, ...e, children: t });
|
|
12
|
+
}, s = n;
|
|
13
|
+
s.Item = l;
|
|
14
|
+
s.displayName = "Search.Results";
|
|
15
|
+
export {
|
|
16
|
+
s as SearchResults,
|
|
17
|
+
n as SearchResultsComponent,
|
|
18
|
+
s as default
|
|
19
|
+
};
|