@pismo/marola 1.0.0-beta.41 → 1.0.0-beta.43

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.
@@ -0,0 +1,10 @@
1
+ import './assets/Popover.css';
2
+ const o = "_popover_n95k7_1", p = {
3
+ popover: o,
4
+ "popover-header": "_popover-header_n95k7_6",
5
+ "popover-footer": "_popover-footer_n95k7_10",
6
+ "popover-body": "_popover-body_n95k7_14"
7
+ };
8
+ export {
9
+ p as s
10
+ };
@@ -10,6 +10,7 @@ import { Adornment as v } from "./components/Adornment/Adornment.js";
10
10
  import "./components/Dialog/Dialog.js";
11
11
  import "./components/IconButton/IconButton.js";
12
12
  import "./components/Select/Select.js";
13
+ import "./components/Popover/Popover.js";
13
14
  import "./components/Table/Table.js";
14
15
  import "./components/Tabs/Tabs.js";
15
16
  import { s as y } from "./Group-B80_u5Q1.js";
@@ -59,7 +60,7 @@ const I = "_chip_1wvod_61", P = "_chip__adornment_1wvod_116", z = "_chip__remove
59
60
  children: _
60
61
  }
61
62
  )) : /* @__PURE__ */ i("span", { "data-testid": t["data-testid"], ref: d, className: e, children: _ });
62
- }), O = u((t, d) => {
63
+ }), Q = u((t, d) => {
63
64
  const {
64
65
  label: _,
65
66
  className: o,
@@ -113,7 +114,7 @@ const I = "_chip_1wvod_61", P = "_chip__adornment_1wvod_116", z = "_chip__remove
113
114
  "row-item--clickable": "_row-item--clickable_8z1a0_13",
114
115
  "row-item--disabled": "_row-item--disabled_8z1a0_19",
115
116
  "row-item__content": "_row-item__content_8z1a0_22"
116
- }, Q = u((t, d) => {
117
+ }, V = u((t, d) => {
117
118
  const { children: _, leftAdornment: o, disabled: r, onClick: a, buttons: s, ariaLabel: e, className: g } = t, m = l(o == null ? void 0 : o.className, h["row-item__adornment"]), w = {
118
119
  onClick: (p) => {
119
120
  r || a && a(p);
@@ -149,7 +150,7 @@ const I = "_chip_1wvod_61", P = "_chip__adornment_1wvod_116", z = "_chip__remove
149
150
  ]
150
151
  }
151
152
  );
152
- }), V = u((t, d) => {
153
+ }), X = u((t, d) => {
153
154
  const { text: _, isSelected: o = !1, value: r, onChange: a, disabled: s } = t;
154
155
  return /* @__PURE__ */ k(
155
156
  "label",
@@ -181,7 +182,7 @@ const I = "_chip_1wvod_61", P = "_chip__adornment_1wvod_116", z = "_chip__remove
181
182
  );
182
183
  });
183
184
  export {
184
- O as C,
185
- Q as R,
186
- V as T
185
+ Q as C,
186
+ V as R,
187
+ X as T
187
188
  };
@@ -0,0 +1 @@
1
+ ._popover_n95k7_1{background-color:#fff;border-radius:.375rem;box-shadow:0 0 10px #0003}._popover-header_n95k7_6{padding:1rem .5rem;border-bottom:1px solid var(--gray-5)}._popover-footer_n95k7_10{padding:1rem .5rem;border-top:1px solid var(--gray-5)}._popover-body_n95k7_14{padding:1rem .5rem}
@@ -6,10 +6,11 @@ import "../Icon/Icon.js";
6
6
  import "../Typography/Typography.js";
7
7
  import "../Input/Input.js";
8
8
  import "../Button/Button.js";
9
- import { C as l } from "../../Toggle-Dl-yPy8S.js";
9
+ import { C as n } from "../../Toggle-CJvN6vqW.js";
10
10
  import "../Dialog/Dialog.js";
11
11
  import "../IconButton/IconButton.js";
12
12
  import "../Select/Select.js";
13
+ import "../Popover/Popover.js";
13
14
  import "../Skeleton/Skeleton.js";
14
15
  import "../Table/Table.js";
15
16
  import "../Tabs/Tabs.js";
@@ -17,5 +18,5 @@ import "../../Group-B80_u5Q1.js";
17
18
  import "../../contexts/SnackbarProvider/SnackbarProvider.js";
18
19
  import "../../Button-BAljjMv3.js";
19
20
  export {
20
- l as Chip
21
+ n as Chip
21
22
  };
@@ -0,0 +1,32 @@
1
+ import { PopupOffsetOptions, PopupPlacement } from '@mui/base/Unstable_Popup';
2
+
3
+ export type PopoverProps = {
4
+ /** An HTML element or a function that returns either. */
5
+ anchorRef?: Element;
6
+ /** Boolean to open. */
7
+ open?: boolean;
8
+ /** React Node. */
9
+ children: React.ReactNode;
10
+ /** Determines where to place the popup relative to the trigger element. */
11
+ placement?: PopupPlacement;
12
+ /** Distance between a popup and the trigger element */
13
+ offset?: PopupOffsetOptions;
14
+ /** Class name */
15
+ className?: string;
16
+ /** Id to be applied as `data-testid` on the root element */
17
+ 'data-testid'?: string;
18
+ /** Callback fired when a "click away" event is detected. */
19
+ onClickAway?: (event: MouseEvent | TouchEvent) => void;
20
+ };
21
+ export declare const Popover: {
22
+ ({ anchorRef, open, children, placement, className, offset, "data-testid": dataTestId, onClickAway, }: PopoverProps): import("react/jsx-runtime").JSX.Element;
23
+ Header: ({ children }: {
24
+ children: import('react').ReactNode;
25
+ }) => import("react/jsx-runtime").JSX.Element;
26
+ Footer: ({ children }: {
27
+ children: import('react').ReactNode;
28
+ }) => import("react/jsx-runtime").JSX.Element;
29
+ Body: ({ children }: {
30
+ children: import('react').ReactNode;
31
+ }) => import("react/jsx-runtime").JSX.Element;
32
+ };
@@ -0,0 +1,24 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { c as f } from "../../clsx-DB4S2d7J.js";
3
+ import { s as v } from "../../Popover.module-B4boCutS.js";
4
+ import { PopoverBody as l } from "./PopoverBody.js";
5
+ import { PopoverFooter as n } from "./PopoverFooter.js";
6
+ import { PopoverHeader as P } from "./PopoverHeader.js";
7
+ import { P as y } from "../../Popup-Ck3XlWMq.js";
8
+ import { C as h } from "../../ClickAwayListener-DbEYZpyh.js";
9
+ const r = ({
10
+ anchorRef: t,
11
+ open: m,
12
+ children: p,
13
+ placement: i,
14
+ className: s,
15
+ offset: a,
16
+ "data-testid": d,
17
+ onClickAway: e
18
+ }) => /* @__PURE__ */ o(h, { onClickAway: (c) => e ? e(c) : void 0, children: /* @__PURE__ */ o(y, { offset: a, placement: i, open: m, anchor: t, children: /* @__PURE__ */ o("div", { "data-testid": d, className: f(v.popover, s), children: p }) }) });
19
+ r.Header = P;
20
+ r.Footer = n;
21
+ r.Body = l;
22
+ export {
23
+ r as Popover
24
+ };
@@ -0,0 +1,34 @@
1
+ import { PopoverProps } from './Popover';
2
+ import { StoryObj } from '@storybook/react';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: {
7
+ ({ anchorRef, open, children, placement, className, offset, "data-testid": dataTestId, onClickAway, }: PopoverProps): import("react/jsx-runtime").JSX.Element;
8
+ Header: ({ children }: {
9
+ children: import('react').ReactNode;
10
+ }) => import("react/jsx-runtime").JSX.Element;
11
+ Footer: ({ children }: {
12
+ children: import('react').ReactNode;
13
+ }) => import("react/jsx-runtime").JSX.Element;
14
+ Body: ({ children }: {
15
+ children: import('react').ReactNode;
16
+ }) => import("react/jsx-runtime").JSX.Element;
17
+ };
18
+ parameters: {
19
+ docs: {
20
+ source: {
21
+ language: string;
22
+ format: boolean;
23
+ code: string;
24
+ };
25
+ };
26
+ };
27
+ tags: string[];
28
+ decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
29
+ [x: string]: any;
30
+ }>) => import("react/jsx-runtime").JSX.Element)[];
31
+ };
32
+ export default meta;
33
+ type Story = StoryObj<typeof meta>;
34
+ export declare const Provider: Story;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ type PopoverBodyProps = {
3
+ children: React.ReactNode;
4
+ };
5
+ export declare const PopoverBody: ({ children }: PopoverBodyProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { s } from "../../Popover.module-B4boCutS.js";
3
+ const t = ({ children: o }) => /* @__PURE__ */ r("div", { className: s["popover-body"], children: o });
4
+ export {
5
+ t as PopoverBody
6
+ };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ type PopoverFooterProps = {
3
+ children: React.ReactNode;
4
+ };
5
+ export declare const PopoverFooter: ({ children }: PopoverFooterProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { s as e } from "../../Popover.module-B4boCutS.js";
3
+ const p = ({ children: o }) => /* @__PURE__ */ r("div", { className: e["popover-footer"], children: o });
4
+ export {
5
+ p as PopoverFooter
6
+ };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ type PopoverHeaderProps = {
3
+ children: React.ReactNode;
4
+ };
5
+ export declare const PopoverHeader: ({ children }: PopoverHeaderProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { s as o } from "../../Popover.module-B4boCutS.js";
3
+ const t = ({ children: r }) => /* @__PURE__ */ e("div", { className: o["popover-header"], children: r });
4
+ export {
5
+ t as PopoverHeader
6
+ };
@@ -1,6 +1,6 @@
1
1
  import '../../assets/ResultWithChips.css';
2
2
  import { jsxs as i, jsx as e } from "react/jsx-runtime";
3
- import { C as t } from "../../Toggle-Dl-yPy8S.js";
3
+ import { C as t } from "../../Toggle-CJvN6vqW.js";
4
4
  const r = "_container_hgp0p_1", o = "_label_hgp0p_17", a = {
5
5
  container: r,
6
6
  "chip-item-wrapper": "_chip-item-wrapper_hgp0p_8",
@@ -6,15 +6,16 @@ import "../Icon/Icon.js";
6
6
  import "../Typography/Typography.js";
7
7
  import "../Input/Input.js";
8
8
  import "../Button/Button.js";
9
- import { R as b, R as c } from "../../Toggle-Dl-yPy8S.js";
9
+ import { R as c, R as g } from "../../Toggle-CJvN6vqW.js";
10
10
  import "../Dialog/Dialog.js";
11
11
  import "../IconButton/IconButton.js";
12
12
  import "../Select/Select.js";
13
+ import "../Popover/Popover.js";
13
14
  import "../Table/Table.js";
14
15
  import "../Tabs/Tabs.js";
15
16
  import "../../Group-B80_u5Q1.js";
16
17
  import "../../contexts/SnackbarProvider/SnackbarProvider.js";
17
18
  export {
18
- b as RowItem,
19
- c as default
19
+ c as RowItem,
20
+ g as default
20
21
  };
@@ -5,14 +5,15 @@ import "../Icon/Icon.js";
5
5
  import "../Typography/Typography.js";
6
6
  import "../Input/Input.js";
7
7
  import "../Button/Button.js";
8
- import { T as c } from "../../Toggle-Dl-yPy8S.js";
8
+ import { T as g } from "../../Toggle-CJvN6vqW.js";
9
9
  import "../Dialog/Dialog.js";
10
10
  import "../IconButton/IconButton.js";
11
11
  import "../Select/Select.js";
12
+ import "../Popover/Popover.js";
12
13
  import "../Table/Table.js";
13
14
  import "../Tabs/Tabs.js";
14
15
  import "../../Group-B80_u5Q1.js";
15
16
  import "../../contexts/SnackbarProvider/SnackbarProvider.js";
16
17
  export {
17
- c as default
18
+ g as default
18
19
  };
@@ -1,4 +1,4 @@
1
- import { T as e } from "../../Toggle-Dl-yPy8S.js";
1
+ import { T as e } from "../../Toggle-CJvN6vqW.js";
2
2
  import { G as p } from "../../Group-B80_u5Q1.js";
3
3
  export {
4
4
  p as ToggleGroup,
package/dist/main.d.ts CHANGED
@@ -17,6 +17,7 @@ export * from './components/InputSearch/InputSearch';
17
17
  export * from './components/LoadingSpinner/LoadingSpinner';
18
18
  export * from './components/PageHeader/PageHeader';
19
19
  export * from './components/Pagination/Pagination';
20
+ export * from './components/Popover/Popover';
20
21
  export * from './components/ResultWithChips/ResultWithChips';
21
22
  export * from './components/RowItem/RowItem';
22
23
  export * from './components/Select/Select';
package/dist/main.js CHANGED
@@ -3,38 +3,39 @@ import { Advice as p } from "./components/Advice/Advice.js";
3
3
  import { Autocomplete as f } from "./components/Autocomplete/Autocomplete.js";
4
4
  import { Button as x } from "./components/Button/Button.js";
5
5
  import { Checkbox as l } from "./components/Checkbox/Checkbox.js";
6
- import { C as T, R as s, T as c } from "./Toggle-Dl-yPy8S.js";
6
+ import { C as T, R as s, T as c } from "./Toggle-CJvN6vqW.js";
7
7
  import { Dialog as u } from "./components/Dialog/Dialog.js";
8
8
  import { EllipsisTooltip as d } from "./components/EllipsisTooltip/EllipsisTooltip.js";
9
9
  import { Icon as k } from "./components/Icon/Icon.js";
10
10
  import { IconButton as C } from "./components/IconButton/IconButton.js";
11
11
  import { Input as D } from "./components/Input/Input.js";
12
- import { InputSearch as A } from "./components/InputSearch/InputSearch.js";
13
- import { LoadingSpinner as v } from "./components/LoadingSpinner/LoadingSpinner.js";
12
+ import { InputSearch as v } from "./components/InputSearch/InputSearch.js";
13
+ import { LoadingSpinner as A } from "./components/LoadingSpinner/LoadingSpinner.js";
14
14
  import { PageHeader as G } from "./components/PageHeader/PageHeader.js";
15
15
  import { Pagination as H, paginationDefaultTranslations as w } from "./components/Pagination/Pagination.js";
16
- import { ResultWithChips as L } from "./components/ResultWithChips/ResultWithChips.js";
17
- import { Select as O, SelectOption as W } from "./components/Select/Select.js";
18
- import { Skeleton as q, SkeletonCircle as z, SkeletonTable as F } from "./components/Skeleton/Skeleton.js";
19
- import { Snackbar as K } from "./components/Snackbar/Snackbar.js";
20
- import { SortTooltip as Q, sortTooltipDefaultTranslations as U } from "./components/SortTooltip/SortTooltip.js";
21
- import { Stepper as X } from "./components/Stepper/Stepper.js";
22
- import { StepperNavigator as Z } from "./components/StepperNavigator/StepperNavigator.js";
23
- import { TBody as $, THead as oo, Table as ro, Td as eo, Th as to, Tr as po } from "./components/Table/Table.js";
24
- import { Tabs as fo } from "./components/Tabs/Tabs.js";
25
- import { TextDisplay as xo } from "./components/TextDisplay/TextDisplay.js";
26
- import { Toggle as lo } from "./components/Toggle/Toggle.js";
27
- import { G as To } from "./Group-B80_u5Q1.js";
28
- import { Tooltip as co } from "./components/Tooltip/Tooltip.js";
29
- import { Text as uo, Typography as So } from "./components/Typography/Typography.js";
30
- import { SnackbarContext as ko, SnackbarProvider as ho, useSnackbar as Co } from "./contexts/SnackbarProvider/SnackbarProvider.js";
31
- import { default as Do } from "./components/Dialog/DialogTitle.js";
16
+ import { Popover as L } from "./components/Popover/Popover.js";
17
+ import { ResultWithChips as O } from "./components/ResultWithChips/ResultWithChips.js";
18
+ import { Select as j, SelectOption as q } from "./components/Select/Select.js";
19
+ import { Skeleton as F, SkeletonCircle as J, SkeletonTable as K } from "./components/Skeleton/Skeleton.js";
20
+ import { Snackbar as Q } from "./components/Snackbar/Snackbar.js";
21
+ import { SortTooltip as V, sortTooltipDefaultTranslations as X } from "./components/SortTooltip/SortTooltip.js";
22
+ import { Stepper as Z } from "./components/Stepper/Stepper.js";
23
+ import { StepperNavigator as $ } from "./components/StepperNavigator/StepperNavigator.js";
24
+ import { TBody as ro, THead as eo, Table as to, Td as po, Th as ao, Tr as fo } from "./components/Table/Table.js";
25
+ import { Tabs as xo } from "./components/Tabs/Tabs.js";
26
+ import { TextDisplay as lo } from "./components/TextDisplay/TextDisplay.js";
27
+ import { Toggle as To } from "./components/Toggle/Toggle.js";
28
+ import { G as co } from "./Group-B80_u5Q1.js";
29
+ import { Tooltip as uo } from "./components/Tooltip/Tooltip.js";
30
+ import { Text as bo, Typography as ko } from "./components/Typography/Typography.js";
31
+ import { SnackbarContext as Co, SnackbarProvider as Io, useSnackbar as Do } from "./contexts/SnackbarProvider/SnackbarProvider.js";
32
+ import { default as vo } from "./components/Dialog/DialogTitle.js";
32
33
  import { default as Ao } from "./components/Dialog/Content.js";
33
- import { default as vo } from "./components/Dialog/Actions.js";
34
- import { Tab as Go } from "./components/Tabs/Tab.js";
35
- import { TabPanel as Ho } from "./components/Tabs/TabPanel.js";
34
+ import { default as Go } from "./components/Dialog/Actions.js";
35
+ import { Tab as Ho } from "./components/Tabs/Tab.js";
36
+ import { TabPanel as Eo } from "./components/Tabs/TabPanel.js";
36
37
  export {
37
- vo as Actions,
38
+ Go as Actions,
38
39
  e as Adornment,
39
40
  p as Advice,
40
41
  f as Autocomplete,
@@ -43,45 +44,46 @@ export {
43
44
  T as Chip,
44
45
  Ao as Content,
45
46
  u as Dialog,
46
- Do as DialogTitle,
47
+ vo as DialogTitle,
47
48
  d as EllipsisTooltip,
48
49
  k as Icon,
49
50
  C as IconButton,
50
51
  D as Input,
51
- A as InputSearch,
52
- v as LoadingSpinner,
52
+ v as InputSearch,
53
+ A as LoadingSpinner,
53
54
  G as PageHeader,
54
55
  H as Pagination,
55
- L as ResultWithChips,
56
+ L as Popover,
57
+ O as ResultWithChips,
56
58
  s as RowItem,
57
- O as Select,
58
- W as SelectOption,
59
- q as Skeleton,
60
- z as SkeletonCircle,
61
- F as SkeletonTable,
62
- K as Snackbar,
63
- ko as SnackbarContext,
64
- ho as SnackbarProvider,
65
- Q as SortTooltip,
66
- X as Stepper,
67
- Z as StepperNavigator,
68
- $ as TBody,
69
- oo as THead,
70
- Go as Tab,
71
- Ho as TabPanel,
72
- ro as Table,
73
- fo as Tabs,
74
- eo as Td,
75
- uo as Text,
76
- xo as TextDisplay,
77
- to as Th,
78
- lo as Toggle,
79
- To as ToggleGroup,
59
+ j as Select,
60
+ q as SelectOption,
61
+ F as Skeleton,
62
+ J as SkeletonCircle,
63
+ K as SkeletonTable,
64
+ Q as Snackbar,
65
+ Co as SnackbarContext,
66
+ Io as SnackbarProvider,
67
+ V as SortTooltip,
68
+ Z as Stepper,
69
+ $ as StepperNavigator,
70
+ ro as TBody,
71
+ eo as THead,
72
+ Ho as Tab,
73
+ Eo as TabPanel,
74
+ to as Table,
75
+ xo as Tabs,
76
+ po as Td,
77
+ bo as Text,
78
+ lo as TextDisplay,
79
+ ao as Th,
80
+ To as Toggle,
81
+ co as ToggleGroup,
80
82
  c as ToggleGroupItem,
81
- co as Tooltip,
82
- po as Tr,
83
- So as Typography,
83
+ uo as Tooltip,
84
+ fo as Tr,
85
+ ko as Typography,
84
86
  w as paginationDefaultTranslations,
85
- U as sortTooltipDefaultTranslations,
86
- Co as useSnackbar
87
+ X as sortTooltipDefaultTranslations,
88
+ Do as useSnackbar
87
89
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pismo/marola",
3
3
  "description": "CDX tribe component library",
4
- "version": "1.0.0-beta.41",
4
+ "version": "1.0.0-beta.43",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",