@pismo/marola 0.0.1-alpha.6 → 0.0.1-alpha.7
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/assets/Input.css +1 -0
- package/dist/assets/Snackbar.css +1 -0
- package/dist/assets/Toggle.css +1 -0
- 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/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/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.js +12 -12
- package/dist/components/Tabs/Tab.js +2 -2
- package/dist/components/Tabs/TabPanel.js +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Toggle/Toggle.d.ts +14 -0
- package/dist/components/Toggle/Toggle.js +256 -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 +16 -8
- package/dist/main.js +47 -27
- 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/react-CGNQ6M5x.js +0 -117
- package/dist/useButton-JpyBo5M4.js +0 -187
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import '../../assets/global.css';
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import "../Button/Button.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import "../Dialog/Backdrop.js";
|
|
7
|
+
import "../Typography/Typography.js";
|
|
8
|
+
import "../IconButton/IconButton.js";
|
|
9
|
+
import { LoadingSpinner as i } from "./LoadingSpinner.js";
|
|
10
|
+
import "../Table/Table.js";
|
|
11
|
+
import "../Tabs/Tabs.js";
|
|
12
|
+
const g = {
|
|
13
|
+
title: "Components/LoadingSpinner",
|
|
14
|
+
component: i,
|
|
15
|
+
tags: ["autodocs"],
|
|
16
|
+
decorators: [
|
|
17
|
+
(o) => /* @__PURE__ */ t(
|
|
18
|
+
"div",
|
|
19
|
+
{
|
|
20
|
+
style: {
|
|
21
|
+
backgroundColor: "#423755",
|
|
22
|
+
width: "5em",
|
|
23
|
+
height: "5em",
|
|
24
|
+
display: "flex",
|
|
25
|
+
justifyContent: "center",
|
|
26
|
+
alignItems: "center"
|
|
27
|
+
},
|
|
28
|
+
children: /* @__PURE__ */ t(o, {})
|
|
29
|
+
}
|
|
30
|
+
)
|
|
31
|
+
]
|
|
32
|
+
}, f = {
|
|
33
|
+
args: {}
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
f as Simple,
|
|
37
|
+
g as default
|
|
38
|
+
};
|
|
@@ -29,7 +29,7 @@ export type PaginationProps = {
|
|
|
29
29
|
language?: PaginationLanguages;
|
|
30
30
|
t?: PaginationTranslations;
|
|
31
31
|
} & PaginationParams & PaginationCommonProps;
|
|
32
|
-
export declare const
|
|
32
|
+
export declare const paginationDefaultTranslations: {
|
|
33
33
|
[key in PaginationLanguages]: PaginationTranslations;
|
|
34
34
|
};
|
|
35
35
|
export declare const Pagination: (props: PaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../../assets/Pagination.css';
|
|
2
2
|
import { jsxs as x, jsx as i, Fragment as M } from "react/jsx-runtime";
|
|
3
3
|
import { c as C } from "../../clsx-DB4S2d7J.js";
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
4
|
+
import { _ as O, a as S } from "../../objectWithoutPropertiesLoose-D7Cp0Pg_.js";
|
|
5
|
+
import { u as A } from "../../useControlled-CCMYYdCM.js";
|
|
6
6
|
const E = ["boundaryCount", "componentName", "count", "defaultPage", "disabled", "hideNextButton", "hidePrevButton", "onChange", "page", "showFirstButton", "showLastButton", "siblingCount"];
|
|
7
7
|
function $(e = {}) {
|
|
8
8
|
const {
|
|
@@ -18,7 +18,7 @@ function $(e = {}) {
|
|
|
18
18
|
showFirstButton: p = !1,
|
|
19
19
|
showLastButton: f = !1,
|
|
20
20
|
siblingCount: u = 1
|
|
21
|
-
} = e, d =
|
|
21
|
+
} = e, d = O(e, E), [r, k] = A({
|
|
22
22
|
controlled: o,
|
|
23
23
|
default: b,
|
|
24
24
|
name: _,
|
|
@@ -26,10 +26,10 @@ function $(e = {}) {
|
|
|
26
26
|
}), N = (n, l) => {
|
|
27
27
|
o || k(l), t && t(n, l);
|
|
28
28
|
}, v = (n, l) => {
|
|
29
|
-
const
|
|
29
|
+
const F = l - n + 1;
|
|
30
30
|
return Array.from({
|
|
31
|
-
length:
|
|
32
|
-
}, (W,
|
|
31
|
+
length: F
|
|
32
|
+
}, (W, I) => n + I);
|
|
33
33
|
}, j = v(1, Math.min(a, s)), P = v(Math.max(s - a + 1, a + 1), s), w = Math.max(
|
|
34
34
|
Math.min(
|
|
35
35
|
// Natural start
|
|
@@ -76,7 +76,7 @@ function $(e = {}) {
|
|
|
76
76
|
default:
|
|
77
77
|
return null;
|
|
78
78
|
}
|
|
79
|
-
},
|
|
79
|
+
}, D = L.map((n) => typeof n == "number" ? {
|
|
80
80
|
onClick: (l) => {
|
|
81
81
|
N(l, n);
|
|
82
82
|
},
|
|
@@ -94,8 +94,8 @@ function $(e = {}) {
|
|
|
94
94
|
selected: !1,
|
|
95
95
|
disabled: h || n.indexOf("ellipsis") === -1 && (n === "next" || n === "last" ? r >= s : r <= 1)
|
|
96
96
|
});
|
|
97
|
-
return
|
|
98
|
-
items:
|
|
97
|
+
return S({
|
|
98
|
+
items: D
|
|
99
99
|
}, d);
|
|
100
100
|
}
|
|
101
101
|
const R = "_pagination_9gf1w_1", g = {
|
|
@@ -215,5 +215,5 @@ const R = "_pagination_9gf1w_1", g = {
|
|
|
215
215
|
};
|
|
216
216
|
export {
|
|
217
217
|
J as Pagination,
|
|
218
|
-
T as
|
|
218
|
+
T as paginationDefaultTranslations
|
|
219
219
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
type SnackbarProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
4
|
+
open?: boolean;
|
|
5
|
+
'data-testid'?: string;
|
|
6
|
+
classNameWrapper?: string;
|
|
7
|
+
color?: 'success' | 'error' | 'attention';
|
|
8
|
+
snackbarMessage: string;
|
|
9
|
+
autoHideDuration?: number | 5000;
|
|
10
|
+
onClose?: () => void;
|
|
11
|
+
};
|
|
12
|
+
export declare const Snackbar: ({ snackbarMessage, color, autoHideDuration, open, onClose, classNameWrapper, "data-testid": dataTestId, }: SnackbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|