reactive-bulma 4.1.0 → 4.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/style.css +1 -0
- package/dist/components/atoms/Block/index.d.ts +4 -0
- package/dist/components/atoms/Block/index.js +18 -0
- package/dist/components/atoms/Block/index.stories.d.ts +8 -0
- package/dist/components/atoms/Block/index.test.d.ts +0 -0
- package/dist/components/atoms/Box/index.d.ts +4 -0
- package/dist/components/atoms/Box/index.js +18 -0
- package/dist/components/atoms/Box/index.stories.d.ts +8 -0
- package/dist/components/atoms/Box/index.test.d.ts +0 -0
- package/dist/components/atoms/BreadcrumbItem/index.d.ts +4 -0
- package/dist/components/atoms/BreadcrumbItem/index.js +44 -0
- package/dist/components/atoms/BreadcrumbItem/index.stories.d.ts +6 -0
- package/dist/components/atoms/BreadcrumbItem/index.test.d.ts +0 -0
- package/dist/components/atoms/Button/index.d.ts +4 -0
- package/dist/components/atoms/Button/index.js +49 -0
- package/dist/components/atoms/Button/index.stories.d.ts +14 -0
- package/dist/components/atoms/Button/index.test.d.ts +0 -0
- package/dist/components/atoms/Checkbox/index.d.ts +4 -0
- package/dist/components/atoms/Checkbox/index.js +49 -0
- package/dist/components/atoms/Checkbox/index.stories.d.ts +9 -0
- package/dist/components/atoms/Checkbox/index.test.d.ts +0 -0
- package/dist/components/atoms/Column/index.d.ts +4 -0
- package/dist/components/atoms/Column/index.js +31 -0
- package/dist/components/atoms/Column/index.stories.d.ts +8 -0
- package/dist/components/atoms/Column/index.test.d.ts +0 -0
- package/dist/components/atoms/Delete/index.d.ts +4 -0
- package/dist/components/atoms/Delete/index.js +26 -0
- package/dist/components/atoms/Delete/index.stories.d.ts +6 -0
- package/dist/components/atoms/Delete/index.test.d.ts +0 -0
- package/dist/components/atoms/DropdownItem/index.d.ts +4 -0
- package/dist/components/atoms/DropdownItem/index.js +37 -0
- package/dist/components/atoms/DropdownItem/index.stories.d.ts +5 -0
- package/dist/components/atoms/DropdownItem/index.test.d.ts +0 -0
- package/dist/components/atoms/DropdownTrigger/index.d.ts +4 -0
- package/dist/components/atoms/DropdownTrigger/index.js +53 -0
- package/dist/components/atoms/DropdownTrigger/index.stories.d.ts +5 -0
- package/dist/components/atoms/DropdownTrigger/index.test.d.ts +0 -0
- package/dist/components/atoms/File/index.d.ts +4 -0
- package/dist/components/atoms/File/index.js +73 -0
- package/dist/components/atoms/File/index.stories.d.ts +13 -0
- package/dist/components/atoms/File/index.test.d.ts +0 -0
- package/dist/components/atoms/Icon/index.d.ts +4 -0
- package/dist/components/atoms/Icon/index.js +88 -0
- package/dist/components/atoms/Icon/index.stories.d.ts +12 -0
- package/dist/components/atoms/Icon/index.test.d.ts +0 -0
- package/dist/components/atoms/Image/index.d.ts +4 -0
- package/dist/components/atoms/Image/index.js +44 -0
- package/dist/components/atoms/Image/index.stories.d.ts +8 -0
- package/dist/components/atoms/Image/index.test.d.ts +0 -0
- package/dist/components/atoms/Input/index.d.ts +4 -0
- package/dist/components/atoms/Input/index.js +50 -0
- package/dist/components/atoms/Input/index.stories.d.ts +15 -0
- package/dist/components/atoms/Input/index.test.d.ts +0 -0
- package/dist/components/atoms/LevelHeader/index.d.ts +4 -0
- package/dist/components/atoms/LevelHeader/index.js +26 -0
- package/dist/components/atoms/LevelHeader/index.stories.d.ts +6 -0
- package/dist/components/atoms/LevelHeader/index.test.d.ts +0 -0
- package/dist/components/atoms/MenuItem/index.d.ts +4 -0
- package/dist/components/atoms/MenuItem/index.js +30 -0
- package/dist/components/atoms/MenuItem/index.stories.d.ts +6 -0
- package/dist/components/atoms/MenuItem/index.test.d.ts +0 -0
- package/dist/components/atoms/NavBarItem/index.d.ts +4 -0
- package/dist/components/atoms/NavBarItem/index.js +30 -0
- package/dist/components/atoms/NavBarItem/index.stories.d.ts +5 -0
- package/dist/components/atoms/NavBarItem/index.test.d.ts +0 -0
- package/dist/components/atoms/PaginationItem/index.d.ts +4 -0
- package/dist/components/atoms/PaginationItem/index.js +37 -0
- package/dist/components/atoms/PaginationItem/index.stories.d.ts +8 -0
- package/dist/components/atoms/PaginationItem/index.test.d.ts +0 -0
- package/dist/components/atoms/ProgressBar/index.d.ts +4 -0
- package/dist/components/atoms/ProgressBar/index.js +36 -0
- package/dist/components/atoms/ProgressBar/index.stories.d.ts +10 -0
- package/dist/components/atoms/ProgressBar/index.test.d.ts +0 -0
- package/dist/components/atoms/RadioButton/index.d.ts +4 -0
- package/dist/components/atoms/RadioButton/index.js +71 -0
- package/dist/components/atoms/RadioButton/index.stories.d.ts +8 -0
- package/dist/components/atoms/RadioButton/index.test.d.ts +0 -0
- package/dist/components/atoms/Select/index.d.ts +4 -0
- package/dist/components/atoms/Select/index.js +64 -0
- package/dist/components/atoms/Select/index.stories.d.ts +9 -0
- package/dist/components/atoms/Select/index.test.d.ts +0 -0
- package/dist/components/atoms/TabItem/index.d.ts +4 -0
- package/dist/components/atoms/TabItem/index.js +44 -0
- package/dist/components/atoms/TabItem/index.stories.d.ts +6 -0
- package/dist/components/atoms/TabItem/index.test.d.ts +0 -0
- package/dist/components/atoms/TableCell/index.d.ts +4 -0
- package/dist/components/atoms/TableCell/index.js +24 -0
- package/dist/components/atoms/TableCell/index.stories.d.ts +5 -0
- package/dist/components/atoms/TableCell/index.test.d.ts +0 -0
- package/dist/components/atoms/TableHeadCell/index.d.ts +4 -0
- package/dist/components/atoms/TableHeadCell/index.js +24 -0
- package/dist/components/atoms/TableHeadCell/index.stories.d.ts +5 -0
- package/dist/components/atoms/TableHeadCell/index.test.d.ts +0 -0
- package/dist/components/atoms/Tag/index.d.ts +4 -0
- package/dist/components/atoms/Tag/index.js +87 -0
- package/dist/components/atoms/Tag/index.stories.d.ts +13 -0
- package/dist/components/atoms/Tag/index.test.d.ts +0 -0
- package/dist/components/atoms/TextArea/index.d.ts +4 -0
- package/dist/components/atoms/TextArea/index.js +60 -0
- package/dist/components/atoms/TextArea/index.stories.d.ts +14 -0
- package/dist/components/atoms/TextArea/index.test.d.ts +0 -0
- package/dist/components/atoms/Tile/index.d.ts +4 -0
- package/dist/components/atoms/Tile/index.js +46 -0
- package/dist/components/atoms/Tile/index.stories.d.ts +9 -0
- package/dist/components/atoms/Tile/index.test.d.ts +0 -0
- package/dist/components/atoms/Title/index.d.ts +4 -0
- package/dist/components/atoms/Title/index.js +25 -0
- package/dist/components/atoms/Title/index.stories.d.ts +10 -0
- package/dist/components/atoms/Title/index.test.d.ts +0 -0
- package/dist/components/atoms/index.d.ts +27 -0
- package/dist/components/atoms/index.js +56 -0
- package/dist/components/molecules/Breadcrumbs/index.d.ts +4 -0
- package/dist/components/molecules/Breadcrumbs/index.js +63 -0
- package/dist/components/molecules/Breadcrumbs/index.stories.d.ts +8 -0
- package/dist/components/molecules/Breadcrumbs/index.test.d.ts +0 -0
- package/dist/components/molecules/ButtonGroup/index.d.ts +4 -0
- package/dist/components/molecules/ButtonGroup/index.js +58 -0
- package/dist/components/molecules/ButtonGroup/index.stories.d.ts +8 -0
- package/dist/components/molecules/ButtonGroup/index.test.d.ts +0 -0
- package/dist/components/molecules/ColumnGroup/index.d.ts +4 -0
- package/dist/components/molecules/ColumnGroup/index.js +55 -0
- package/dist/components/molecules/ColumnGroup/index.stories.d.ts +10 -0
- package/dist/components/molecules/ColumnGroup/index.test.d.ts +0 -0
- package/dist/components/molecules/Dropdown/index.d.ts +4 -0
- package/dist/components/molecules/Dropdown/index.js +72 -0
- package/dist/components/molecules/Dropdown/index.stories.d.ts +6 -0
- package/dist/components/molecules/Dropdown/index.test.d.ts +0 -0
- package/dist/components/molecules/Footer/index.d.ts +4 -0
- package/dist/components/molecules/Footer/index.js +51 -0
- package/dist/components/molecules/Footer/index.stories.d.ts +8 -0
- package/dist/components/molecules/Footer/index.test.d.ts +0 -0
- package/dist/components/molecules/InputControl/index.d.ts +4 -0
- package/dist/components/molecules/InputControl/index.js +59 -0
- package/dist/components/molecules/InputControl/index.stories.d.ts +11 -0
- package/dist/components/molecules/InputControl/index.test.d.ts +0 -0
- package/dist/components/molecules/LevelItem/index.d.ts +4 -0
- package/dist/components/molecules/LevelItem/index.js +40 -0
- package/dist/components/molecules/LevelItem/index.stories.d.ts +7 -0
- package/dist/components/molecules/LevelItem/index.test.d.ts +0 -0
- package/dist/components/molecules/Media/index.d.ts +4 -0
- package/dist/components/molecules/Media/index.js +35 -0
- package/dist/components/molecules/Media/index.stories.d.ts +10 -0
- package/dist/components/molecules/Media/index.test.d.ts +0 -0
- package/dist/components/molecules/Menu/index.d.ts +4 -0
- package/dist/components/molecules/Menu/index.js +41 -0
- package/dist/components/molecules/Menu/index.stories.d.ts +6 -0
- package/dist/components/molecules/Menu/index.test.d.ts +0 -0
- package/dist/components/molecules/MenuList/index.d.ts +4 -0
- package/dist/components/molecules/MenuList/index.js +39 -0
- package/dist/components/molecules/MenuList/index.stories.d.ts +6 -0
- package/dist/components/molecules/MenuList/index.test.d.ts +0 -0
- package/dist/components/molecules/Message/index.d.ts +4 -0
- package/dist/components/molecules/Message/index.js +47 -0
- package/dist/components/molecules/Message/index.stories.d.ts +9 -0
- package/dist/components/molecules/Message/index.test.d.ts +0 -0
- package/dist/components/molecules/Modal/index.d.ts +4 -0
- package/dist/components/molecules/Modal/index.js +61 -0
- package/dist/components/molecules/Modal/index.stories.d.ts +7 -0
- package/dist/components/molecules/Modal/index.test.d.ts +0 -0
- package/dist/components/molecules/NavBarBrand/index.d.ts +4 -0
- package/dist/components/molecules/NavBarBrand/index.js +48 -0
- package/dist/components/molecules/NavBarBrand/index.stories.d.ts +7 -0
- package/dist/components/molecules/NavBarBrand/index.test.d.ts +0 -0
- package/dist/components/molecules/NavBarDropdown/index.d.ts +4 -0
- package/dist/components/molecules/NavBarDropdown/index.js +85 -0
- package/dist/components/molecules/NavBarDropdown/index.stories.d.ts +10 -0
- package/dist/components/molecules/NavBarDropdown/index.test.d.ts +0 -0
- package/dist/components/molecules/Notification/index.d.ts +4 -0
- package/dist/components/molecules/Notification/index.js +37 -0
- package/dist/components/molecules/Notification/index.stories.d.ts +8 -0
- package/dist/components/molecules/Notification/index.test.d.ts +0 -0
- package/dist/components/molecules/Pagination/index.d.ts +4 -0
- package/dist/components/molecules/Pagination/index.js +109 -0
- package/dist/components/molecules/Pagination/index.stories.d.ts +12 -0
- package/dist/components/molecules/Pagination/index.test.d.ts +0 -0
- package/dist/components/molecules/PanelBlock/index.d.ts +4 -0
- package/dist/components/molecules/PanelBlock/index.js +60 -0
- package/dist/components/molecules/PanelBlock/index.stories.d.ts +8 -0
- package/dist/components/molecules/PanelBlock/index.test.d.ts +0 -0
- package/dist/components/molecules/PanelTabs/index.d.ts +4 -0
- package/dist/components/molecules/PanelTabs/index.js +32 -0
- package/dist/components/molecules/PanelTabs/index.stories.d.ts +7 -0
- package/dist/components/molecules/PanelTabs/index.test.d.ts +0 -0
- package/dist/components/molecules/Section/index.d.ts +4 -0
- package/dist/components/molecules/Section/index.js +23 -0
- package/dist/components/molecules/Section/index.stories.d.ts +8 -0
- package/dist/components/molecules/Section/index.test.d.ts +0 -0
- package/dist/components/molecules/TableRow/index.d.ts +4 -0
- package/dist/components/molecules/TableRow/index.js +41 -0
- package/dist/components/molecules/TableRow/index.stories.d.ts +7 -0
- package/dist/components/molecules/TableRow/index.test.d.ts +0 -0
- package/dist/components/molecules/Tabs/index.d.ts +4 -0
- package/dist/components/molecules/Tabs/index.js +44 -0
- package/dist/components/molecules/Tabs/index.stories.d.ts +13 -0
- package/dist/components/molecules/Tabs/index.test.d.ts +0 -0
- package/dist/components/molecules/TileBox/index.d.ts +4 -0
- package/dist/components/molecules/TileBox/index.js +51 -0
- package/dist/components/molecules/TileBox/index.stories.d.ts +8 -0
- package/dist/components/molecules/TileBox/index.test.d.ts +0 -0
- package/dist/components/molecules/index.d.ts +22 -0
- package/dist/components/molecules/index.js +46 -0
- package/dist/components/organisms/Card/index.d.ts +4 -0
- package/dist/components/organisms/Card/index.js +87 -0
- package/dist/components/organisms/Card/index.stories.d.ts +8 -0
- package/dist/components/organisms/Card/index.test.d.ts +0 -0
- package/dist/components/organisms/FormField/index.d.ts +4 -0
- package/dist/components/organisms/FormField/index.js +76 -0
- package/dist/components/organisms/FormField/index.stories.d.ts +11 -0
- package/dist/components/organisms/FormField/index.test.d.ts +0 -0
- package/dist/components/organisms/Hero/index.d.ts +4 -0
- package/dist/components/organisms/Hero/index.js +37 -0
- package/dist/components/organisms/Hero/index.stories.d.ts +12 -0
- package/dist/components/organisms/Hero/index.test.d.ts +0 -0
- package/dist/components/organisms/Level/index.d.ts +4 -0
- package/dist/components/organisms/Level/index.js +42 -0
- package/dist/components/organisms/Level/index.stories.d.ts +9 -0
- package/dist/components/organisms/Level/index.test.d.ts +0 -0
- package/dist/components/organisms/NavBar/index.d.ts +4 -0
- package/dist/components/organisms/NavBar/index.js +83 -0
- package/dist/components/organisms/NavBar/index.stories.d.ts +11 -0
- package/dist/components/organisms/NavBar/index.test.d.ts +0 -0
- package/dist/components/organisms/Panel/index.d.ts +4 -0
- package/dist/components/organisms/Panel/index.js +39 -0
- package/dist/components/organisms/Panel/index.stories.d.ts +11 -0
- package/dist/components/organisms/Panel/index.test.d.ts +0 -0
- package/dist/components/organisms/Table/index.d.ts +4 -0
- package/dist/components/organisms/Table/index.js +65 -0
- package/dist/components/organisms/Table/index.stories.d.ts +15 -0
- package/dist/components/organisms/Table/index.test.d.ts +0 -0
- package/dist/components/organisms/TileGroup/index.d.ts +4 -0
- package/dist/components/organisms/TileGroup/index.js +55 -0
- package/dist/components/organisms/TileGroup/index.stories.d.ts +8 -0
- package/dist/components/organisms/TileGroup/index.test.d.ts +0 -0
- package/dist/components/organisms/index.d.ts +8 -0
- package/dist/components/organisms/index.js +18 -0
- package/dist/functions/generators.d.ts +4 -0
- package/dist/functions/generators.js +12 -0
- package/dist/functions/jest.d.ts +2 -0
- package/dist/functions/parsers.d.ts +14 -0
- package/dist/functions/parsers.js +19 -0
- package/dist/functions/tests/generators.test.d.ts +1 -0
- package/dist/functions/tests/parsers.test.d.ts +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +116 -0
- package/dist/interfaces/atomProps.d.ts +305 -0
- package/dist/interfaces/atomProps.js +1 -0
- package/dist/interfaces/commonProps.d.ts +25 -0
- package/dist/interfaces/commonProps.js +1 -0
- package/dist/interfaces/functionProps.d.ts +16 -0
- package/dist/interfaces/functionProps.js +1 -0
- package/dist/interfaces/moleculeProps.d.ts +231 -0
- package/dist/interfaces/moleculeProps.js +1 -0
- package/dist/interfaces/organismProps.d.ts +112 -0
- package/dist/interfaces/organismProps.js +1 -0
- package/dist/types/domTypes.d.ts +16 -0
- package/dist/types/domTypes.js +4 -0
- package/dist/types/styleTypes.d.ts +19 -0
- package/dist/types/styleTypes.js +1 -0
- package/package.json +4 -2
@@ -0,0 +1,47 @@
|
|
1
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as u, parseTestId as g } from "../../../functions/parsers.js";
|
3
|
+
import p from "../../atoms/Delete/index.js";
|
4
|
+
const C = ({
|
5
|
+
testId: d = null,
|
6
|
+
cssClasses: n = null,
|
7
|
+
style: m = null,
|
8
|
+
headerText: a = null,
|
9
|
+
bodyText: i,
|
10
|
+
deleteButton: l = null,
|
11
|
+
color: o = null,
|
12
|
+
size: c = null
|
13
|
+
}) => {
|
14
|
+
const t = u(["message", o, c, n]), s = d ?? g({ tag: "message", parsedClasses: t });
|
15
|
+
return /* @__PURE__ */ r(
|
16
|
+
"article",
|
17
|
+
{
|
18
|
+
"data-testid": s,
|
19
|
+
className: t,
|
20
|
+
style: m ?? void 0,
|
21
|
+
children: [
|
22
|
+
a && /* @__PURE__ */ r(
|
23
|
+
"section",
|
24
|
+
{
|
25
|
+
"data-testid": `${s}-header`,
|
26
|
+
className: "message-header",
|
27
|
+
children: [
|
28
|
+
/* @__PURE__ */ e("p", { children: a }),
|
29
|
+
l ? /* @__PURE__ */ e(p, { ...l }) : null
|
30
|
+
]
|
31
|
+
}
|
32
|
+
),
|
33
|
+
/* @__PURE__ */ e(
|
34
|
+
"section",
|
35
|
+
{
|
36
|
+
"data-testid": `${s}-body`,
|
37
|
+
className: "message-body",
|
38
|
+
children: i
|
39
|
+
}
|
40
|
+
)
|
41
|
+
]
|
42
|
+
}
|
43
|
+
);
|
44
|
+
};
|
45
|
+
export {
|
46
|
+
C as default
|
47
|
+
};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as Message } from '.';
|
3
|
+
declare const _default: Meta<typeof Message>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').MessageProps>;
|
6
|
+
export declare const WithHeader: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').MessageProps>;
|
7
|
+
export declare const Colored: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').MessageProps>;
|
8
|
+
export declare const LargeSize: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').MessageProps>;
|
9
|
+
export declare const WithDeleteButton: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').MessageProps>;
|
File without changes
|
@@ -0,0 +1,61 @@
|
|
1
|
+
import { jsxs as b, jsx as s } from "react/jsx-runtime";
|
2
|
+
import { useState as k } from "react";
|
3
|
+
import { parseClasses as d, parseTestId as n } from "../../../functions/parsers.js";
|
4
|
+
const T = ({
|
5
|
+
testId: c = null,
|
6
|
+
containerTestId: i = null,
|
7
|
+
cssClasses: m = null,
|
8
|
+
containerCssClasses: r = null,
|
9
|
+
style: u = null,
|
10
|
+
containerStyle: p = null,
|
11
|
+
children: a = null,
|
12
|
+
onCloseClick: l = null
|
13
|
+
}) => {
|
14
|
+
const [C, f] = k(!0), t = d([
|
15
|
+
"modal",
|
16
|
+
"is-active",
|
17
|
+
r
|
18
|
+
]), g = i ?? n({ tag: "modal", parsedClasses: t }), e = d(["modal-content", m]), I = c ?? n({ tag: "modal-content", parsedClasses: e }), o = () => {
|
19
|
+
l && l(), f(!1);
|
20
|
+
};
|
21
|
+
return a && C && /* @__PURE__ */ b(
|
22
|
+
"section",
|
23
|
+
{
|
24
|
+
"data-testid": g,
|
25
|
+
className: t,
|
26
|
+
style: p ?? void 0,
|
27
|
+
children: [
|
28
|
+
/* @__PURE__ */ s(
|
29
|
+
"section",
|
30
|
+
{
|
31
|
+
"data-testid": "test-modal-background",
|
32
|
+
className: "modal-background",
|
33
|
+
"aria-hidden": "true",
|
34
|
+
onClick: o
|
35
|
+
}
|
36
|
+
),
|
37
|
+
/* @__PURE__ */ s(
|
38
|
+
"section",
|
39
|
+
{
|
40
|
+
"data-testid": I,
|
41
|
+
className: e,
|
42
|
+
style: u ?? void 0,
|
43
|
+
children: a
|
44
|
+
}
|
45
|
+
),
|
46
|
+
/* @__PURE__ */ s(
|
47
|
+
"button",
|
48
|
+
{
|
49
|
+
"data-testid": "test-modal-close",
|
50
|
+
className: "modal-close is-large",
|
51
|
+
"aria-label": "close",
|
52
|
+
onClick: o
|
53
|
+
}
|
54
|
+
)
|
55
|
+
]
|
56
|
+
}
|
57
|
+
);
|
58
|
+
};
|
59
|
+
export {
|
60
|
+
T as default
|
61
|
+
};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as Modal } from '.';
|
3
|
+
declare const _default: Meta<typeof Modal>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').ModalProps>;
|
6
|
+
export declare const ImageExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').ModalProps>;
|
7
|
+
export declare const ButtonGroupExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').ModalProps>;
|
File without changes
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import { jsxs as s, jsx as a } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as n, parseTestId as t } from "../../../functions/parsers.js";
|
3
|
+
import b from "../../atoms/Image/index.js";
|
4
|
+
import B from "../../atoms/NavBarItem/index.js";
|
5
|
+
const I = ({
|
6
|
+
testId: d = null,
|
7
|
+
cssClasses: l = null,
|
8
|
+
style: i = null,
|
9
|
+
brandConfig: o,
|
10
|
+
isBurgerActive: u = !1
|
11
|
+
}) => {
|
12
|
+
const r = n(["navbar-brand", l]), c = d ?? t({ tag: "navbar-brand", parsedClasses: r }), e = n([
|
13
|
+
"navbar-burger",
|
14
|
+
u ? "is-active" : null
|
15
|
+
]), m = t({
|
16
|
+
tag: "navbar-burger",
|
17
|
+
parsedClasses: e
|
18
|
+
}), { children: p, ...v } = o;
|
19
|
+
return /* @__PURE__ */ s(
|
20
|
+
"section",
|
21
|
+
{
|
22
|
+
"data-testid": c,
|
23
|
+
className: r,
|
24
|
+
style: i ?? void 0,
|
25
|
+
children: [
|
26
|
+
/* @__PURE__ */ a(B, { ...v, children: /* @__PURE__ */ a(b, { ...p }) }),
|
27
|
+
/* @__PURE__ */ s(
|
28
|
+
"a",
|
29
|
+
{
|
30
|
+
role: "button",
|
31
|
+
"data-testid": m,
|
32
|
+
className: e,
|
33
|
+
"aria-label": "menu",
|
34
|
+
"aria-expanded": "false",
|
35
|
+
children: [
|
36
|
+
/* @__PURE__ */ a("span", { "aria-hidden": "true" }),
|
37
|
+
/* @__PURE__ */ a("span", { "aria-hidden": "true" }),
|
38
|
+
/* @__PURE__ */ a("span", { "aria-hidden": "true" })
|
39
|
+
]
|
40
|
+
}
|
41
|
+
)
|
42
|
+
]
|
43
|
+
}
|
44
|
+
);
|
45
|
+
};
|
46
|
+
export {
|
47
|
+
I as default
|
48
|
+
};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as NavBarBrand } from '.';
|
3
|
+
declare const _default: Meta<typeof NavBarBrand>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').NavBarBrandProps>;
|
6
|
+
export declare const BurgerMenuExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').NavBarBrandProps>;
|
7
|
+
export declare const ActiveBurgerMenuExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').NavBarBrandProps>;
|
File without changes
|
@@ -0,0 +1,85 @@
|
|
1
|
+
import { jsxs as B, jsx as r } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as n, parseTestId as o } from "../../../functions/parsers.js";
|
3
|
+
import C from "../../atoms/NavBarItem/index.js";
|
4
|
+
import { generateKey as l } from "../../../functions/generators.js";
|
5
|
+
const D = (a) => a === "divider" ? /* @__PURE__ */ r(
|
6
|
+
"hr",
|
7
|
+
{
|
8
|
+
className: "navbar-divider"
|
9
|
+
},
|
10
|
+
`navbar-dropdown-divider-${l()}`
|
11
|
+
) : /* @__PURE__ */ r(
|
12
|
+
C,
|
13
|
+
{
|
14
|
+
...a
|
15
|
+
},
|
16
|
+
`navbar-dropdown-item-${l()}`
|
17
|
+
), j = ({
|
18
|
+
testId: a = null,
|
19
|
+
containerTestId: d = null,
|
20
|
+
cssClasses: t = null,
|
21
|
+
containerCssClasses: i = null,
|
22
|
+
style: p = null,
|
23
|
+
containerStyle: v = null,
|
24
|
+
text: c,
|
25
|
+
items: m,
|
26
|
+
position: u = null,
|
27
|
+
isActive: w = !1,
|
28
|
+
isHoverable: b = !1,
|
29
|
+
hasDropdownUp: h = !1,
|
30
|
+
hasBoxedMenu: f = !1
|
31
|
+
}) => {
|
32
|
+
const e = n([
|
33
|
+
"navbar-item",
|
34
|
+
"has-dropdown",
|
35
|
+
u,
|
36
|
+
w ? "is-active" : null,
|
37
|
+
b ? "is-hoverable" : null,
|
38
|
+
h ? "has-dropdown-up" : null,
|
39
|
+
i
|
40
|
+
]), g = d ?? o({
|
41
|
+
tag: "navbar-dropdown-container",
|
42
|
+
parsedClasses: e,
|
43
|
+
rules: [
|
44
|
+
{ regExp: /navbar-item|has-dropdown/gm, replacer: "" },
|
45
|
+
{ regExp: /is-|has-/gm, replacer: "-" }
|
46
|
+
]
|
47
|
+
}), s = n([
|
48
|
+
"navbar-dropdown",
|
49
|
+
f ? "is-boxed" : null,
|
50
|
+
t
|
51
|
+
]), x = a ?? o({
|
52
|
+
tag: "navbar-dropdown",
|
53
|
+
parsedClasses: s
|
54
|
+
});
|
55
|
+
return /* @__PURE__ */ B(
|
56
|
+
"section",
|
57
|
+
{
|
58
|
+
"data-testid": g,
|
59
|
+
className: e,
|
60
|
+
style: v ?? void 0,
|
61
|
+
children: [
|
62
|
+
/* @__PURE__ */ r(
|
63
|
+
"a",
|
64
|
+
{
|
65
|
+
className: "navbar-link",
|
66
|
+
"aria-hidden": "true",
|
67
|
+
children: c
|
68
|
+
}
|
69
|
+
),
|
70
|
+
/* @__PURE__ */ r(
|
71
|
+
"section",
|
72
|
+
{
|
73
|
+
"data-testid": x,
|
74
|
+
className: s,
|
75
|
+
style: p ?? void 0,
|
76
|
+
children: m.map(D)
|
77
|
+
}
|
78
|
+
)
|
79
|
+
]
|
80
|
+
}
|
81
|
+
);
|
82
|
+
};
|
83
|
+
export {
|
84
|
+
j as default
|
85
|
+
};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as NavBarDropdown } from '.';
|
3
|
+
declare const _default: Meta<typeof NavBarDropdown>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').NavBarDropdownProps>;
|
6
|
+
export declare const OpenState: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').NavBarDropdownProps>;
|
7
|
+
export declare const Hoverable: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').NavBarDropdownProps>;
|
8
|
+
export declare const HasDividerItems: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').NavBarDropdownProps>;
|
9
|
+
export declare const HasBoxedMenu: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').NavBarDropdownProps>;
|
10
|
+
export declare const InverseDropdown: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').NavBarDropdownProps>;
|
File without changes
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { jsxs as c, jsx as u } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as f, parseTestId as d } from "../../../functions/parsers.js";
|
3
|
+
import m from "../../atoms/Delete/index.js";
|
4
|
+
const g = ({
|
5
|
+
testId: t = null,
|
6
|
+
cssClasses: i = null,
|
7
|
+
style: n = null,
|
8
|
+
children: o = null,
|
9
|
+
deleteButton: s = null,
|
10
|
+
color: a = null,
|
11
|
+
isLightColor: e = null
|
12
|
+
}) => {
|
13
|
+
const l = f([
|
14
|
+
"notification",
|
15
|
+
a,
|
16
|
+
e ? "is-light" : null,
|
17
|
+
i
|
18
|
+
]), r = t ?? d({
|
19
|
+
tag: "notification",
|
20
|
+
parsedClasses: l
|
21
|
+
});
|
22
|
+
return /* @__PURE__ */ c(
|
23
|
+
"section",
|
24
|
+
{
|
25
|
+
"data-testid": r,
|
26
|
+
className: l,
|
27
|
+
style: n ?? void 0,
|
28
|
+
children: [
|
29
|
+
s ? /* @__PURE__ */ u(m, { ...s }) : null,
|
30
|
+
o
|
31
|
+
]
|
32
|
+
}
|
33
|
+
);
|
34
|
+
};
|
35
|
+
export {
|
36
|
+
g as default
|
37
|
+
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as Notification } from '.';
|
3
|
+
declare const _default: Meta<typeof Notification>;
|
4
|
+
export default _default;
|
5
|
+
export declare const WithParagraph: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').NotificationProps>;
|
6
|
+
export declare const Colored: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').NotificationProps>;
|
7
|
+
export declare const WithDeleteButton: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').NotificationProps>;
|
8
|
+
export declare const LigthColored: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').NotificationProps>;
|
File without changes
|
@@ -0,0 +1,109 @@
|
|
1
|
+
import { jsxs as d, jsx as s } from "react/jsx-runtime";
|
2
|
+
import m from "react";
|
3
|
+
import { parseClasses as c, parseTestId as g } from "../../../functions/parsers.js";
|
4
|
+
import o from "../../atoms/PaginationItem/index.js";
|
5
|
+
import { generateKey as k } from "../../../functions/generators.js";
|
6
|
+
const f = (n) => n ? /* @__PURE__ */ s("li", { children: /* @__PURE__ */ s(
|
7
|
+
"span",
|
8
|
+
{
|
9
|
+
"aria-hidden": "true",
|
10
|
+
className: "pagination-ellipsis",
|
11
|
+
children: "…"
|
12
|
+
}
|
13
|
+
) }) : null, C = (n) => {
|
14
|
+
if (!n) return null;
|
15
|
+
const a = c([
|
16
|
+
n.cssClasses,
|
17
|
+
n.isDisabled ? "is-disabled" : null
|
18
|
+
]);
|
19
|
+
return /* @__PURE__ */ s(
|
20
|
+
"a",
|
21
|
+
{
|
22
|
+
className: a,
|
23
|
+
onClick: n.onClick ?? void 0,
|
24
|
+
"aria-hidden": "true",
|
25
|
+
children: n.text
|
26
|
+
}
|
27
|
+
);
|
28
|
+
}, F = (n, a, e) => n.map((t, i, { length: l }) => {
|
29
|
+
const r = l - e - 1;
|
30
|
+
if (i === 0)
|
31
|
+
return /* @__PURE__ */ d(m.Fragment, { children: [
|
32
|
+
/* @__PURE__ */ s(o, { ...t }),
|
33
|
+
f(a)
|
34
|
+
] }, "first-pagination-item");
|
35
|
+
if (!a || i > e && i < r)
|
36
|
+
return /* @__PURE__ */ s(
|
37
|
+
o,
|
38
|
+
{
|
39
|
+
...t
|
40
|
+
},
|
41
|
+
`pagination-item-${k()}`
|
42
|
+
);
|
43
|
+
if (i === --l)
|
44
|
+
return /* @__PURE__ */ d(m.Fragment, { children: [
|
45
|
+
f(a),
|
46
|
+
/* @__PURE__ */ s(o, { ...t })
|
47
|
+
] }, "last-pagination-item");
|
48
|
+
}), w = ({
|
49
|
+
testId: n = null,
|
50
|
+
containerTestId: a = null,
|
51
|
+
cssClasses: e = null,
|
52
|
+
containerCssClasses: t = null,
|
53
|
+
style: i = null,
|
54
|
+
containerStyle: l = null,
|
55
|
+
pages: r,
|
56
|
+
ellipsisItems: h = 0,
|
57
|
+
showPreviousPageButton: x = {
|
58
|
+
text: "Previous",
|
59
|
+
cssClasses: "pagination-previous"
|
60
|
+
},
|
61
|
+
showNextPageButton: N = {
|
62
|
+
text: "Next page",
|
63
|
+
cssClasses: "pagination-next"
|
64
|
+
},
|
65
|
+
hasEllipsis: v = !1,
|
66
|
+
isRounded: P = !1,
|
67
|
+
alignment: b = null,
|
68
|
+
size: y = null
|
69
|
+
}) => {
|
70
|
+
const p = c([
|
71
|
+
"pagination",
|
72
|
+
P ? "is-rounded" : null,
|
73
|
+
y,
|
74
|
+
b,
|
75
|
+
e
|
76
|
+
]), T = n ?? g({
|
77
|
+
tag: "pagination",
|
78
|
+
parsedClasses: p
|
79
|
+
}), u = c([
|
80
|
+
"pagination-list",
|
81
|
+
t
|
82
|
+
]), j = a ?? g({ tag: "pagination-list", parsedClasses: u });
|
83
|
+
return /* @__PURE__ */ d(
|
84
|
+
"nav",
|
85
|
+
{
|
86
|
+
"data-testid": T,
|
87
|
+
className: p,
|
88
|
+
style: l ?? void 0,
|
89
|
+
role: "navigation",
|
90
|
+
"aria-label": "pagination",
|
91
|
+
children: [
|
92
|
+
C(x),
|
93
|
+
C(N),
|
94
|
+
/* @__PURE__ */ s(
|
95
|
+
"ul",
|
96
|
+
{
|
97
|
+
"data-testid": j,
|
98
|
+
className: u,
|
99
|
+
style: i ?? void 0,
|
100
|
+
children: F(r, v, h)
|
101
|
+
}
|
102
|
+
)
|
103
|
+
]
|
104
|
+
}
|
105
|
+
);
|
106
|
+
};
|
107
|
+
export {
|
108
|
+
w as default
|
109
|
+
};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as Pagination } from '.';
|
3
|
+
declare const _default: Meta<typeof Pagination>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').PaginationProps>;
|
6
|
+
export declare const Centered: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').PaginationProps>;
|
7
|
+
export declare const CustomNavigationButtons: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').PaginationProps>;
|
8
|
+
export declare const DisabledNavigationButtons: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').PaginationProps>;
|
9
|
+
export declare const NoNavigationButtons: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').PaginationProps>;
|
10
|
+
export declare const FifteenItems: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').PaginationProps>;
|
11
|
+
export declare const Showing3ItemsLessWithEllipsis: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').PaginationProps>;
|
12
|
+
export declare const Showing6ItemsLessWithEllipsis: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').PaginationProps>;
|
File without changes
|
@@ -0,0 +1,60 @@
|
|
1
|
+
import { jsx as l, jsxs as f } from "react/jsx-runtime";
|
2
|
+
import C from "react";
|
3
|
+
import I from "../InputControl/index.js";
|
4
|
+
import B from "../../atoms/Button/index.js";
|
5
|
+
import { parseClasses as d, parseTestId as p } from "../../../functions/parsers.js";
|
6
|
+
import h from "../../atoms/Icon/index.js";
|
7
|
+
const v = ({ type: o, props: n }, s, t, a, c) => {
|
8
|
+
switch (o) {
|
9
|
+
case "icon": {
|
10
|
+
const e = d(["panel-icon", t]), r = s ?? p({ tag: "panel-icon", parsedClasses: e });
|
11
|
+
return /* @__PURE__ */ f(C.Fragment, { children: [
|
12
|
+
/* @__PURE__ */ l(
|
13
|
+
"span",
|
14
|
+
{
|
15
|
+
"data-testid": r,
|
16
|
+
className: e,
|
17
|
+
style: a ?? void 0,
|
18
|
+
children: /* @__PURE__ */ l(h, { ...n })
|
19
|
+
}
|
20
|
+
),
|
21
|
+
c
|
22
|
+
] });
|
23
|
+
}
|
24
|
+
case "control":
|
25
|
+
return /* @__PURE__ */ l(I, { ...n });
|
26
|
+
case "button":
|
27
|
+
return /* @__PURE__ */ l(B, { ...n });
|
28
|
+
}
|
29
|
+
}, L = ({
|
30
|
+
testId: o = null,
|
31
|
+
containerTestId: n = null,
|
32
|
+
cssClasses: s = null,
|
33
|
+
containerCssClasses: t = null,
|
34
|
+
style: a = null,
|
35
|
+
containerStyle: c = null,
|
36
|
+
config: e,
|
37
|
+
blockText: r = null,
|
38
|
+
isActive: u = !1,
|
39
|
+
onClick: m
|
40
|
+
}) => {
|
41
|
+
const i = d([
|
42
|
+
"panel-block",
|
43
|
+
u ? "is-active" : null,
|
44
|
+
t
|
45
|
+
]), k = n ?? p({ tag: "panel-block", parsedClasses: i });
|
46
|
+
return /* @__PURE__ */ l(
|
47
|
+
"a",
|
48
|
+
{
|
49
|
+
"data-testid": k,
|
50
|
+
className: i,
|
51
|
+
style: c ?? void 0,
|
52
|
+
"aria-hidden": "true",
|
53
|
+
onClick: m ?? void 0,
|
54
|
+
children: v(e, o, s, a, r)
|
55
|
+
}
|
56
|
+
);
|
57
|
+
};
|
58
|
+
export {
|
59
|
+
L as default
|
60
|
+
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as PanelBlock } from '.';
|
3
|
+
import { PanelBlockProps } from '../../../interfaces/moleculeProps';
|
4
|
+
declare const _default: Meta<typeof PanelBlock>;
|
5
|
+
export default _default;
|
6
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PanelBlockProps>;
|
7
|
+
export declare const ControlExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PanelBlockProps>;
|
8
|
+
export declare const ButtonExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PanelBlockProps>;
|
File without changes
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as o, parseTestId as d } from "../../../functions/parsers.js";
|
3
|
+
import { generateKey as c } from "../../../functions/generators.js";
|
4
|
+
const v = ({
|
5
|
+
testId: t = null,
|
6
|
+
cssClasses: l = null,
|
7
|
+
style: n = null,
|
8
|
+
tabList: i
|
9
|
+
}) => {
|
10
|
+
const e = o(["panel-tabs", l]), r = t ?? d({ tag: "panel-tabs", parsedClasses: e });
|
11
|
+
return /* @__PURE__ */ a(
|
12
|
+
"section",
|
13
|
+
{
|
14
|
+
"data-testid": r,
|
15
|
+
className: e,
|
16
|
+
style: n ?? void 0,
|
17
|
+
children: i.map((s) => /* @__PURE__ */ a(
|
18
|
+
"a",
|
19
|
+
{
|
20
|
+
className: s.isActive ? "is-active" : void 0,
|
21
|
+
"aria-hidden": "true",
|
22
|
+
onClick: s.onClick ?? void 0,
|
23
|
+
children: s.text
|
24
|
+
},
|
25
|
+
`tab-item-${c()}`
|
26
|
+
))
|
27
|
+
}
|
28
|
+
);
|
29
|
+
};
|
30
|
+
export {
|
31
|
+
v as default
|
32
|
+
};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as PanelTabs } from '.';
|
3
|
+
import { PanelTabsProps } from '../../../interfaces/moleculeProps';
|
4
|
+
declare const _default: Meta<typeof PanelTabs>;
|
5
|
+
export default _default;
|
6
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PanelTabsProps>;
|
7
|
+
export declare const LastTabIsActive: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PanelTabsProps>;
|
File without changes
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as i, parseTestId as r } from "../../../functions/parsers.js";
|
3
|
+
const u = ({
|
4
|
+
testId: e = null,
|
5
|
+
cssClasses: t = null,
|
6
|
+
style: l = null,
|
7
|
+
content: n,
|
8
|
+
size: o = null
|
9
|
+
}) => {
|
10
|
+
const s = i(["section", o, t]), a = e ?? r({ tag: "section", parsedClasses: s });
|
11
|
+
return /* @__PURE__ */ c(
|
12
|
+
"section",
|
13
|
+
{
|
14
|
+
"data-testid": a,
|
15
|
+
className: s,
|
16
|
+
style: l ?? void 0,
|
17
|
+
children: n
|
18
|
+
}
|
19
|
+
);
|
20
|
+
};
|
21
|
+
export {
|
22
|
+
u as default
|
23
|
+
};
|