@pismo/marola 1.0.3 → 1.0.5

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,29 @@
1
+ import './assets/Dialog.css';
2
+ const _ = "_dialog_2iy7w_78", y = "_dialog__backdrop_2iy7w_88", a = "_dialog__panel_2iy7w_96", o = "_dialog__title_2iy7w_113", i = "_dialog__subtitle_2iy7w_120", p = "_dialog__divider_2iy7w_124", t = "_dialog__actions_2iy7w_138", g = {
3
+ "u-typography-h1": "_u-typography-h1_2iy7w_1",
4
+ "u-typography-h2": "_u-typography-h2_2iy7w_8",
5
+ "u-typography-h3": "_u-typography-h3_2iy7w_15",
6
+ "u-typography-h4": "_u-typography-h4_2iy7w_22",
7
+ "u-typography-h5": "_u-typography-h5_2iy7w_29",
8
+ "u-typography-h6": "_u-typography-h6_2iy7w_36",
9
+ "u-typography-base": "_u-typography-base_2iy7w_43",
10
+ "u-typography-base--xxl": "_u-typography-base--xxl_2iy7w_49",
11
+ "u-typography-base--xl": "_u-typography-base--xl_2iy7w_53",
12
+ "u-typography-base--lg": "_u-typography-base--lg_2iy7w_57",
13
+ "u-typography-base--sm": "_u-typography-base--sm_2iy7w_61",
14
+ "u-typography-base--bold": "_u-typography-base--bold_2iy7w_65",
15
+ "u-typography-base--strikethrough": "_u-typography-base--strikethrough_2iy7w_68",
16
+ "u-typography-base--underlined": "_u-typography-base--underlined_2iy7w_71",
17
+ "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_2iy7w_74",
18
+ dialog: _,
19
+ dialog__backdrop: y,
20
+ dialog__panel: a,
21
+ dialog__title: o,
22
+ dialog__subtitle: i,
23
+ dialog__divider: p,
24
+ "dialog__close-icon": "_dialog__close-icon_2iy7w_128",
25
+ dialog__actions: t
26
+ };
27
+ export {
28
+ g as s
29
+ };
@@ -1 +1 @@
1
- ._u-typography-h1_1vpwu_1{font-size:var(--heading-font-size-1);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-1);margin:0}._u-typography-h2_1vpwu_8{font-size:var(--heading-font-size-2);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-2);margin:0}._u-typography-h3_1vpwu_15{font-size:var(--heading-font-size-3);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-3);margin:0}._u-typography-h4_1vpwu_22{font-size:var(--heading-font-size-4);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-4);margin:0}._u-typography-h5_1vpwu_29{font-size:var(--heading-font-size-5);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-5);margin:0}._u-typography-h6_1vpwu_36{font-size:var(--heading-font-size-6);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-6);margin:0}._u-typography-base_1vpwu_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_1vpwu_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_1vpwu_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_1vpwu_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_1vpwu_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_1vpwu_65{font-weight:var(--base-bold)}._u-typography-base--strikethrough_1vpwu_68{text-decoration:line-through}._u-typography-base--underlined_1vpwu_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_1vpwu_74{text-decoration:underline line-through}._dialog_1vpwu_78{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1300;display:flex;align-items:center;justify-content:center;-webkit-box-align:center;-webkit-box-pack:center}._dialog__backdrop_1vpwu_88{position:fixed;z-index:-1;width:100%;height:100%;background-color:rgb(var(--black-100-rgb),.05);-webkit-tap-highlight-color:transparent}._dialog__panel_1vpwu_96{position:relative;display:flex;flex-direction:column;gap:8px;width:680px;padding:2rem;overflow:hidden;font-weight:500;color:var(--gray-90);text-align:start;background-color:var(--white-100);border:1px solid rgb(218,226,237);border-radius:8px;box-shadow:0 10px 20px rgb(var(--black-100-rgb),.2)}._dialog__title_1vpwu_112{display:flex;gap:.75rem;align-items:center;margin-bottom:1rem;color:#3f3d4be0}._dialog__subtitle_1vpwu_119{margin-top:1rem;color:#3f3d4be0}._dialog__divider_1vpwu_123{width:100%;border-top:1px solid var(--gray-10)}._dialog__close-icon_1vpwu_127{position:absolute;top:34px;right:32px;padding:0;margin:0;cursor:pointer;background:none;border:none}._dialog__actions_1vpwu_137{display:flex;gap:.5rem;justify-content:flex-end;margin-top:1.5rem}._dialog__actions_1vpwu_137 button{padding:0 1.5rem}._dialog__actions_1vpwu_137 button [class*=_u-typography-base]{font-weight:700}._dialog__actions_1vpwu_137 button[class*=_button--secondary]{color:#3f3d4be0}
1
+ ._u-typography-h1_2iy7w_1{font-size:var(--heading-font-size-1);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-1);margin:0}._u-typography-h2_2iy7w_8{font-size:var(--heading-font-size-2);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-2);margin:0}._u-typography-h3_2iy7w_15{font-size:var(--heading-font-size-3);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-3);margin:0}._u-typography-h4_2iy7w_22{font-size:var(--heading-font-size-4);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-4);margin:0}._u-typography-h5_2iy7w_29{font-size:var(--heading-font-size-5);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-5);margin:0}._u-typography-h6_2iy7w_36{font-size:var(--heading-font-size-6);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-6);margin:0}._u-typography-base_2iy7w_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_2iy7w_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_2iy7w_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_2iy7w_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_2iy7w_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_2iy7w_65{font-weight:var(--base-bold)}._u-typography-base--strikethrough_2iy7w_68{text-decoration:line-through}._u-typography-base--underlined_2iy7w_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_2iy7w_74{text-decoration:underline line-through}._dialog_2iy7w_78{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1300;display:flex;align-items:center;justify-content:center;-webkit-box-align:center;-webkit-box-pack:center}._dialog__backdrop_2iy7w_88{position:fixed;z-index:-1;width:100%;height:100%;background-color:rgb(var(--black-100-rgb),.05);-webkit-tap-highlight-color:transparent}._dialog__panel_2iy7w_96{position:relative;display:flex;flex-direction:column;gap:8px;width:680px;max-height:100%;padding:2rem;overflow:auto;font-weight:500;color:var(--gray-90);text-align:start;background-color:var(--white-100);border:1px solid rgb(218,226,237);border-radius:8px;box-shadow:0 10px 20px rgb(var(--black-100-rgb),.2)}._dialog__title_2iy7w_113{display:flex;gap:.75rem;align-items:center;margin-bottom:1rem;color:#3f3d4be0}._dialog__subtitle_2iy7w_120{margin-top:1rem;color:#3f3d4be0}._dialog__divider_2iy7w_124{width:100%;border-top:1px solid var(--gray-10)}._dialog__close-icon_2iy7w_128{position:absolute;top:34px;right:32px;padding:0;margin:0;cursor:pointer;background:none;border:none}._dialog__actions_2iy7w_138{display:flex;gap:.5rem;justify-content:flex-end;margin-top:1.5rem}._dialog__actions_2iy7w_138 button{padding:0 1.5rem}._dialog__actions_2iy7w_138 button [class*=_u-typography-base]{font-weight:700}._dialog__actions_2iy7w_138 button[class*=_button--secondary]{color:#3f3d4be0}
@@ -4,7 +4,7 @@ declare const meta: {
4
4
  title: string;
5
5
  component: import('react').ForwardRefExoticComponent<import('./Chip').ChipProps & import('react').RefAttributes<unknown>>;
6
6
  tags: string[];
7
- decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
7
+ decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
8
8
  label: import('react').ReactNode;
9
9
  loading?: boolean | undefined;
10
10
  leftAdornment?: import('../Adornment/Adornment').AdornmentProps | undefined;
@@ -5,7 +5,7 @@ declare const meta: {
5
5
  title: string;
6
6
  component: ({ open, onClose, title, subtitle, content, cancelAction, confirmAction, confirmLabel, cancelLabel, }: ConfirmationDialogProps) => import("react/jsx-runtime").JSX.Element;
7
7
  tags: string[];
8
- decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
8
+ decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
9
9
  open: boolean;
10
10
  onClose: () => void;
11
11
  title?: import('react').ReactNode;
@@ -1,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { s as t } from "../../Dialog.module-W7UCXlf3.js";
2
+ import { s as t } from "../../Dialog.module-Duis5XWM.js";
3
3
  const i = ({ children: s }) => /* @__PURE__ */ o("div", { className: t.dialog__actions, children: s });
4
4
  export {
5
5
  i as default
@@ -1,7 +1,7 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import { forwardRef as s } from "react";
3
3
  import { c as t } from "../../clsx-DB4S2d7J.js";
4
- import { s as m } from "../../Dialog.module-W7UCXlf3.js";
4
+ import { s as m } from "../../Dialog.module-Duis5XWM.js";
5
5
  const l = s(
6
6
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
7
7
  ({ ownerState: e, ...r }, o) => /* @__PURE__ */ a("div", { ...r, className: t(m.dialog__backdrop, r.className), ref: o })
@@ -1,6 +1,6 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { Icon as i } from "../Icon/Icon.js";
3
- import { s as r } from "../../Dialog.module-W7UCXlf3.js";
3
+ import { s as r } from "../../Dialog.module-Duis5XWM.js";
4
4
  import { B as s } from "../../Button-BAljjMv3.js";
5
5
  const n = ({ handleOnClose: t }) => /* @__PURE__ */ o(
6
6
  s,
@@ -4,7 +4,7 @@ import ie from "./Actions.js";
4
4
  import ae from "./Backdrop.js";
5
5
  import le from "./CloseIconButton.js";
6
6
  import ce from "./Content.js";
7
- import { s as z } from "../../Dialog.module-W7UCXlf3.js";
7
+ import { s as z } from "../../Dialog.module-Duis5XWM.js";
8
8
  import ee from "./DialogTitle.js";
9
9
  import { u as te, P as i, f as de, b as C, g as ue, a as fe, _ as pe, c as G, d as be, e as he } from "../../useSlotProps-C_I1kEHr.js";
10
10
  import * as f from "react";
@@ -10,7 +10,7 @@ declare const meta: {
10
10
  Actions: import('react').FunctionComponent<import('./Actions').DialogActionProps>;
11
11
  };
12
12
  tags: string[];
13
- decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
13
+ decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
14
14
  color?: string | undefined;
15
15
  ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
16
16
  children: import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>> & import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<unknown>>;
@@ -347,3 +347,4 @@ export default meta;
347
347
  type Story = StoryObj<typeof meta>;
348
348
  export declare const Simple: Story;
349
349
  export declare const WithIcon: Story;
350
+ export declare const WithLargeContent: Story;
@@ -1,7 +1,7 @@
1
1
  import { jsxs as l, Fragment as s, jsx as e } from "react/jsx-runtime";
2
2
  import { Icon as d } from "../Icon/Icon.js";
3
3
  import { Typography as i } from "../Typography/Typography.js";
4
- import { s as r } from "../../Dialog.module-W7UCXlf3.js";
4
+ import { s as r } from "../../Dialog.module-Duis5XWM.js";
5
5
  const g = ({ title: o, subTitle: t, icon: a }) => /* @__PURE__ */ l(s, { children: [
6
6
  /* @__PURE__ */ l(
7
7
  i,
@@ -8,7 +8,7 @@ declare const meta: {
8
8
  parameters: {
9
9
  layout: string;
10
10
  };
11
- decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
11
+ decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
12
12
  children: import('react').ReactNode;
13
13
  title: import('react').ReactNode;
14
14
  style?: import('react').CSSProperties | undefined;
@@ -6,11 +6,11 @@ export type SingleInputProps = InputHTMLAttributes<HTMLInputElement> & {
6
6
  /** Label text */
7
7
  label?: string;
8
8
  /** Info message text */
9
- infoMessage?: string;
9
+ infoMessage?: React.ReactNode;
10
10
  /** Show the field layout as an error */
11
11
  error?: boolean;
12
12
  /** Error message text, if has "errorMessage", the "error" props will be "true" */
13
- errorMessage?: string;
13
+ errorMessage?: React.ReactNode;
14
14
  /** If "true", a "textarea" element is rendered. */
15
15
  multiline?: false;
16
16
  /** Left icon element */
@@ -6,9 +6,9 @@ export declare const InputSearch: import('react').ForwardRefExoticComponent<(Omi
6
6
  ref?: ForwardedRef<HTMLInputElement> | undefined;
7
7
  } & import('react').InputHTMLAttributes<HTMLInputElement> & {
8
8
  label?: string | undefined;
9
- infoMessage?: string | undefined;
9
+ infoMessage?: import('react').ReactNode;
10
10
  error?: boolean | undefined;
11
- errorMessage?: string | undefined;
11
+ errorMessage?: import('react').ReactNode;
12
12
  multiline?: false | undefined;
13
13
  leftIcon?: import('react').ReactNode;
14
14
  rightIcon?: import('react').ReactNode;
@@ -7,9 +7,9 @@ declare const meta: {
7
7
  ref?: import('react').ForwardedRef<HTMLInputElement> | undefined;
8
8
  } & import('react').InputHTMLAttributes<HTMLInputElement> & {
9
9
  label?: string | undefined;
10
- infoMessage?: string | undefined;
10
+ infoMessage?: import('react').ReactNode;
11
11
  error?: boolean | undefined;
12
- errorMessage?: string | undefined;
12
+ errorMessage?: import('react').ReactNode;
13
13
  multiline?: false | undefined;
14
14
  leftIcon?: import('react').ReactNode;
15
15
  rightIcon?: import('react').ReactNode;
@@ -4,7 +4,7 @@ declare const meta: {
4
4
  title: string;
5
5
  component: ({ invert, classNames }: import('./LoadingSpinner').LoadingSpinnerProps) => import("react/jsx-runtime").JSX.Element;
6
6
  tags: string[];
7
- decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
7
+ decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
8
8
  invert?: boolean | undefined;
9
9
  classNames?: string | undefined;
10
10
  }>) => import("react/jsx-runtime").JSX.Element)[];
@@ -25,7 +25,7 @@ declare const meta: {
25
25
  };
26
26
  };
27
27
  tags: string[];
28
- decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
28
+ decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
29
29
  [x: string]: any;
30
30
  }>) => import("react/jsx-runtime").JSX.Element)[];
31
31
  };
@@ -27,11 +27,11 @@ export type SelectProps = {
27
27
  onChange?: (value: string | null, event?: React.SyntheticEvent<Element, Event> | null) => void;
28
28
  fullWidth?: boolean;
29
29
  /** Info message text */
30
- infoMessage?: string;
30
+ infoMessage?: React.ReactNode;
31
31
  /** Show the field layout as an error */
32
32
  error?: boolean;
33
33
  /** Error message text, if has "errorMessage", the "error" props will be "true" */
34
- errorMessage?: string;
34
+ errorMessage?: React.ReactNode;
35
35
  /** CSS classes to be applied on the info message element */
36
36
  classNameInfoMessage?: string;
37
37
  /** CSS classes to be applied on the error message element */
@@ -5,7 +5,7 @@ declare const meta: {
5
5
  title: string;
6
6
  component: ({ snackbarMessage, variant, autoHideDuration, open, onClose, onClosed, classNameWrapper, "data-testid": dataTestId, }: SnackbarProps) => import("react/jsx-runtime").JSX.Element;
7
7
  tags: string[];
8
- decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
8
+ decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
9
9
  accept?: string | undefined;
10
10
  alt?: string | undefined;
11
11
  autoComplete?: import('react').HTMLInputAutoCompleteAttribute | undefined;
@@ -6,7 +6,7 @@ declare const meta: {
6
6
  title: string;
7
7
  component: import('react').ForwardRefExoticComponent<ToggleGroupProps & import('react').RefAttributes<HTMLFieldSetElement>>;
8
8
  tags: string[];
9
- decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
9
+ decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
10
10
  legend?: import('react').ReactNode;
11
11
  error?: import('react').ReactNode;
12
12
  children: import('react').ReactElement<import('./Toggle.tsx').ToggleGroupItemProps<string | number>, string | import('react').JSXElementConstructor<any>>[];
@@ -8,7 +8,7 @@ declare const meta: {
8
8
  parameters: {
9
9
  layout: string;
10
10
  };
11
- decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
11
+ decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
12
12
  children: import('react').ReactNode;
13
13
  title: import('react').ReactNode;
14
14
  open?: boolean | undefined;
@@ -12,7 +12,7 @@ declare const meta: {
12
12
  };
13
13
  };
14
14
  };
15
- decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
15
+ decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
16
16
  children: import('react').ReactNode;
17
17
  element?: import('react').ElementType | undefined;
18
18
  variant?: import('./Typography').VariantType | undefined;
@@ -12,7 +12,7 @@ declare const meta: {
12
12
  };
13
13
  };
14
14
  tags: string[];
15
- decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
15
+ decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
16
16
  [x: string]: any;
17
17
  }>) => import("react/jsx-runtime").JSX.Element)[];
18
18
  };
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.3",
4
+ "version": "1.0.5",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -1,29 +0,0 @@
1
- import './assets/Dialog.css';
2
- const _ = "_dialog_1vpwu_78", p = "_dialog__backdrop_1vpwu_88", a = "_dialog__panel_1vpwu_96", o = "_dialog__title_1vpwu_112", u = "_dialog__subtitle_1vpwu_119", t = "_dialog__divider_1vpwu_123", y = "_dialog__actions_1vpwu_137", g = {
3
- "u-typography-h1": "_u-typography-h1_1vpwu_1",
4
- "u-typography-h2": "_u-typography-h2_1vpwu_8",
5
- "u-typography-h3": "_u-typography-h3_1vpwu_15",
6
- "u-typography-h4": "_u-typography-h4_1vpwu_22",
7
- "u-typography-h5": "_u-typography-h5_1vpwu_29",
8
- "u-typography-h6": "_u-typography-h6_1vpwu_36",
9
- "u-typography-base": "_u-typography-base_1vpwu_43",
10
- "u-typography-base--xxl": "_u-typography-base--xxl_1vpwu_49",
11
- "u-typography-base--xl": "_u-typography-base--xl_1vpwu_53",
12
- "u-typography-base--lg": "_u-typography-base--lg_1vpwu_57",
13
- "u-typography-base--sm": "_u-typography-base--sm_1vpwu_61",
14
- "u-typography-base--bold": "_u-typography-base--bold_1vpwu_65",
15
- "u-typography-base--strikethrough": "_u-typography-base--strikethrough_1vpwu_68",
16
- "u-typography-base--underlined": "_u-typography-base--underlined_1vpwu_71",
17
- "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1vpwu_74",
18
- dialog: _,
19
- dialog__backdrop: p,
20
- dialog__panel: a,
21
- dialog__title: o,
22
- dialog__subtitle: u,
23
- dialog__divider: t,
24
- "dialog__close-icon": "_dialog__close-icon_1vpwu_127",
25
- dialog__actions: y
26
- };
27
- export {
28
- g as s
29
- };