@pismo/marola 0.0.1-alpha.6 → 0.0.1-alpha.8
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/dist/{Button-W6tM-_IT.js → Button-B1umG8kJ.js} +2 -2
- package/dist/ClickAwayListener-BKznXF1d.js +106 -0
- package/dist/Portal-BcdMtRGF.js +73 -0
- package/dist/Tab-CRwnhsj5.js +254 -0
- package/dist/Tabs.module-yYcTJnj6.js +103 -0
- package/dist/assets/Input.css +1 -0
- package/dist/assets/InputSearch.css +1 -0
- package/dist/assets/PageHeader.css +1 -1
- package/dist/assets/Snackbar.css +1 -0
- package/dist/assets/Toggle.css +1 -0
- package/dist/assets/global.css +1 -1
- package/dist/components/Advice/Advice.d.ts +6 -3
- package/dist/components/Advice/Advice.js +15 -15
- package/dist/components/Button/Button.d.ts +8 -0
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/Button.stories.d.ts +60 -0
- package/dist/components/Button/Button.stories.js +40 -0
- package/dist/components/Dialog/CloseIconButton.js +9 -9
- package/dist/components/Dialog/Dialog.d.ts +3 -2
- package/dist/components/Dialog/Dialog.js +10 -9
- package/dist/components/Dialog/Dialog.stories.d.ts +343 -0
- package/dist/components/Dialog/Dialog.stories.js +59 -0
- package/dist/components/Icon/Icon.d.ts +15 -4
- package/dist/components/Icon/Icon.js +92 -6
- package/dist/components/IconButton/IconButton.js +1 -1
- package/dist/components/Input/Input.d.ts +44 -0
- package/dist/components/Input/Input.js +497 -0
- package/dist/components/Input/Input.stories.d.ts +43 -0
- package/dist/components/Input/Input.stories.js +106 -0
- package/dist/components/InputSearch/InputSearch.d.ts +11 -0
- package/dist/components/InputSearch/InputSearch.js +29 -0
- package/dist/components/InputSearch/InputSearch.stories.d.ts +22 -0
- package/dist/components/InputSearch/InputSearch.stories.js +36 -0
- package/dist/components/LoadingSpinner/LoadingSpinner.d.ts +2 -0
- package/dist/components/LoadingSpinner/LoadingSpinner.stories.d.ts +14 -0
- package/dist/components/LoadingSpinner/LoadingSpinner.stories.js +38 -0
- package/dist/components/PageHeader/PageHeader.js +25 -25
- package/dist/components/PageHeader/PageHeader.stories.js +3 -3
- package/dist/components/Pagination/Pagination.d.ts +1 -1
- package/dist/components/Pagination/Pagination.js +10 -10
- package/dist/components/Snackbar/Snackbar.d.ts +13 -0
- package/dist/components/Snackbar/Snackbar.js +622 -0
- package/dist/components/SortTooltip/SortTooltip.d.ts +1 -1
- package/dist/components/SortTooltip/SortTooltip.js +8 -8
- package/dist/components/Table/Table.d.ts +1 -1
- package/dist/components/Table/Table.js +15 -15
- package/dist/components/Tabs/Tab.js +6 -239
- package/dist/components/Tabs/TabPanel.js +18 -19
- package/dist/components/Tabs/Tabs.d.ts +2 -0
- package/dist/components/Tabs/Tabs.js +12 -8
- package/dist/components/Toggle/Toggle.d.ts +12 -0
- package/dist/components/Toggle/Toggle.js +251 -0
- package/dist/components/Toggle/Toggle.stories.d.ts +22 -0
- package/dist/components/Toggle/Toggle.stories.js +27 -0
- package/dist/components/Tooltip/Tooltip.js +558 -655
- package/dist/components/Typography/Typography.d.ts +5 -5
- package/dist/components/Typography/Typography.stories.d.ts +13 -0
- package/dist/components/Typography/Typography.stories.js +15 -15
- package/dist/components/Typography/typography.test.js +5 -8
- package/dist/{Portal-P3fPvS3-.js → index-BNWbc5Kh.js} +5709 -5776
- package/dist/{index-D2P7y2mE.js → index-CqjC7P5Y.js} +4 -3
- package/dist/main.d.ts +17 -8
- package/dist/main.js +55 -28
- package/dist/useButton-Bc8IAgyk.js +106 -0
- package/dist/useIsFocusVisible-BH4IAdcw.js +69 -0
- package/dist/useTimeout-DxF9kiZL.js +36 -0
- package/package.json +5 -4
- package/dist/ListContext-Dj2Va7Iv.js +0 -18
- package/dist/Tabs.module-BA-PC7fA.js +0 -66
- package/dist/react-CGNQ6M5x.js +0 -117
- package/dist/useButton-JpyBo5M4.js +0 -187
- package/dist/useCompoundItem-CTYi5M_E.js +0 -41
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentType, ElementType, HTMLAttributes, ReactNode } from 'react';
|
|
1
|
+
import { ComponentType, ElementType, HTMLAttributes, LabelHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
|
|
3
3
|
export type VariantType = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'body-large' | 'body-medium' | 'body' | 'body-small' | 'body-tiny' | 'quote-large' | 'quote' | 'form-input' | 'form-label' | 'form-hint' | 'form-dropdown' | 'table-header' | 'table-body' | 'table-body-secondary' | 'button' | 'link';
|
|
4
4
|
export type CommonTypographyHTMLAttributes = HTMLAttributes<HTMLParagraphElement> & HTMLAttributes<HTMLHeadingElement> & HTMLAttributes<HTMLSpanElement> & HTMLAttributes<HTMLTableCellElement>;
|
|
@@ -7,18 +7,18 @@ export type TypographyProps = {
|
|
|
7
7
|
children: ReactNode;
|
|
8
8
|
/** The HTML element to render as on the DOM */
|
|
9
9
|
element?: ElementType;
|
|
10
|
-
/**
|
|
10
|
+
/** Style to be visually displayed as */
|
|
11
11
|
variant?: VariantType;
|
|
12
12
|
/** Space seperated list of CSS classes to apply */
|
|
13
13
|
className?: string;
|
|
14
|
-
/**
|
|
14
|
+
/** Whether to apply underline text decoration */
|
|
15
15
|
underline?: boolean;
|
|
16
16
|
/** Whether to apply strikethrough text decoration */
|
|
17
17
|
strikethrough?: boolean;
|
|
18
18
|
/** Whether to set a higher 'bold' font weight */
|
|
19
19
|
bold?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
elementProps?: HTMLAttributes<CommonTypographyHTMLAttributes>;
|
|
20
|
+
/** Additional props to pass down to native HTML element e.g. dataset attributes */
|
|
21
|
+
elementProps?: HTMLAttributes<CommonTypographyHTMLAttributes> & LabelHTMLAttributes<HTMLLabelElement>;
|
|
22
22
|
/** ID that tests can use to get this component from the DOM */
|
|
23
23
|
['data-testid']?: string;
|
|
24
24
|
};
|
|
@@ -12,6 +12,19 @@ declare const meta: {
|
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
+
decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
16
|
+
children: import('react').ReactNode;
|
|
17
|
+
element?: import('react').ElementType | undefined;
|
|
18
|
+
variant?: import('./Typography').VariantType | undefined;
|
|
19
|
+
className?: string | undefined;
|
|
20
|
+
underline?: boolean | undefined;
|
|
21
|
+
strikethrough?: boolean | undefined;
|
|
22
|
+
bold?: boolean | undefined;
|
|
23
|
+
elementProps?: (import('react').HTMLAttributes<import('./Typography').CommonTypographyHTMLAttributes> & import('react').LabelHTMLAttributes<HTMLLabelElement>) | undefined;
|
|
24
|
+
"data-testid"?: string | undefined;
|
|
25
|
+
ref?: import('react').LegacyRef<import('react').ElementType | import('react').ComponentType> | undefined;
|
|
26
|
+
key?: import('react').Key | null | undefined;
|
|
27
|
+
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
15
28
|
};
|
|
16
29
|
export default meta;
|
|
17
30
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import '../../assets/global.css';
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
3
|
/* empty css */
|
|
3
|
-
import "react/jsx-runtime";
|
|
4
|
-
import "../Dialog/Backdrop.js";
|
|
5
|
-
import "../../react-CGNQ6M5x.js";
|
|
6
|
-
import { Typography as t } from "./Typography.js";
|
|
7
|
-
import "react";
|
|
8
|
-
import "../Tabs/Tabs.js";
|
|
9
|
-
import "../Tabs/Tab.js";
|
|
10
|
-
import "../Tabs/TabPanel.js";
|
|
11
|
-
import "../Table/Table.js";
|
|
12
4
|
import "../Button/Button.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import "../Dialog/Backdrop.js";
|
|
7
|
+
import { Typography as p } from "./Typography.js";
|
|
13
8
|
import "../IconButton/IconButton.js";
|
|
14
|
-
|
|
9
|
+
import "../Table/Table.js";
|
|
10
|
+
import "../Tabs/Tabs.js";
|
|
11
|
+
const c = {
|
|
15
12
|
title: "Components/Typography",
|
|
16
|
-
component:
|
|
13
|
+
component: p,
|
|
17
14
|
tags: ["autodocs"],
|
|
18
15
|
argTypes: {
|
|
19
16
|
element: {
|
|
20
17
|
options: ["span", "p", "h1", "h2", "h3", "h4", "h5", "h6", "td", "th"],
|
|
21
18
|
control: { type: "select" }
|
|
22
19
|
}
|
|
23
|
-
}
|
|
24
|
-
|
|
20
|
+
},
|
|
21
|
+
decorators: [
|
|
22
|
+
(o) => /* @__PURE__ */ t("div", { style: { margin: "1em" }, children: /* @__PURE__ */ t(o, {}) })
|
|
23
|
+
]
|
|
24
|
+
}, d = {
|
|
25
25
|
args: { children: "Example text" }
|
|
26
26
|
};
|
|
27
27
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
d as Simple,
|
|
29
|
+
c as default
|
|
30
30
|
};
|
|
@@ -3,21 +3,18 @@ var pu = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
|
|
|
3
3
|
import { jsx as L } from "react/jsx-runtime";
|
|
4
4
|
import * as St from "react";
|
|
5
5
|
import pi from "react";
|
|
6
|
-
import { r as Jo, R as rr } from "../../
|
|
6
|
+
import { r as Jo, R as rr } from "../../index-BNWbc5Kh.js";
|
|
7
7
|
import { g as fu } from "../../_commonjsHelpers-CT_km90n.js";
|
|
8
8
|
/* empty css */
|
|
9
|
+
import "../Button/Button.js";
|
|
9
10
|
import "../Dialog/Backdrop.js";
|
|
10
|
-
import "../../react-CGNQ6M5x.js";
|
|
11
11
|
import { Typography as U } from "./Typography.js";
|
|
12
|
-
import "../Tabs/Tabs.js";
|
|
13
|
-
import "../Tabs/Tab.js";
|
|
14
|
-
import "../Tabs/TabPanel.js";
|
|
15
|
-
import "../Table/Table.js";
|
|
16
|
-
import "../Button/Button.js";
|
|
17
12
|
import "../IconButton/IconButton.js";
|
|
13
|
+
import "../Table/Table.js";
|
|
14
|
+
import "../Tabs/Tabs.js";
|
|
18
15
|
import { assertClassesApplied as mu } from "../../test-utils/assertStyles.js";
|
|
19
16
|
import { d as xt, a as bu, i as H, g as vu } from "../../vi.Y_w82WR8-Df0JUamG.js";
|
|
20
|
-
var HE = pu((
|
|
17
|
+
var HE = pu((o_, pt) => {
|
|
21
18
|
var To = { exports: {} }, ae = {};
|
|
22
19
|
/**
|
|
23
20
|
* @license React
|