reactive-bulma 4.1.0 → 4.1.2
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 +9 -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 +229 -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 +7 -5
@@ -0,0 +1,58 @@
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
2
|
+
import g from "../../atoms/Button/index.js";
|
3
|
+
import { parseClasses as b, parseTestId as h } from "../../../functions/parsers.js";
|
4
|
+
import { generateKey as C } from "../../../functions/generators.js";
|
5
|
+
const S = ({
|
6
|
+
testId: r = null,
|
7
|
+
cssClasses: a = null,
|
8
|
+
style: n = null,
|
9
|
+
buttonList: u,
|
10
|
+
isAttached: p = !1,
|
11
|
+
position: s = "left"
|
12
|
+
}) => {
|
13
|
+
const o = b([
|
14
|
+
"buttons",
|
15
|
+
p ? "has-addons" : null,
|
16
|
+
!s || s === "left" ? null : `is-${s}`,
|
17
|
+
a
|
18
|
+
]), d = r ?? h({
|
19
|
+
tag: "buttons",
|
20
|
+
parsedClasses: o,
|
21
|
+
rules: [
|
22
|
+
{
|
23
|
+
regExp: /has-|is-/gm,
|
24
|
+
replacer: "-"
|
25
|
+
},
|
26
|
+
{
|
27
|
+
regExp: /buttons/gm,
|
28
|
+
replacer: ""
|
29
|
+
}
|
30
|
+
]
|
31
|
+
});
|
32
|
+
return /* @__PURE__ */ l(
|
33
|
+
"section",
|
34
|
+
{
|
35
|
+
"data-testid": d,
|
36
|
+
className: o,
|
37
|
+
style: n ?? void 0,
|
38
|
+
children: u.map((t, x, c) => {
|
39
|
+
const e = c.some(
|
40
|
+
({ isSelected: f }) => f
|
41
|
+
), m = e && t.isSelected || !e, i = {
|
42
|
+
...t,
|
43
|
+
color: m ? t.color : void 0
|
44
|
+
};
|
45
|
+
return /* @__PURE__ */ l(
|
46
|
+
g,
|
47
|
+
{
|
48
|
+
...i
|
49
|
+
},
|
50
|
+
`button-group-item-${C()}`
|
51
|
+
);
|
52
|
+
})
|
53
|
+
}
|
54
|
+
);
|
55
|
+
};
|
56
|
+
export {
|
57
|
+
S as default
|
58
|
+
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as ButtonGroup } from '.';
|
3
|
+
declare const _default: Meta<typeof ButtonGroup>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicGroup: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').ButtonGroupProps>;
|
6
|
+
export declare const AttachedButtons: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').ButtonGroupProps>;
|
7
|
+
export declare const RightPositioned: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').ButtonGroupProps>;
|
8
|
+
export declare const OneSelectedButton: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').ButtonGroupProps>;
|
File without changes
|
@@ -0,0 +1,55 @@
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as d, parseTestId as C } from "../../../functions/parsers.js";
|
3
|
+
import f from "../../atoms/Column/index.js";
|
4
|
+
import { generateKey as v } from "../../../functions/generators.js";
|
5
|
+
const G = (l) => {
|
6
|
+
switch (l) {
|
7
|
+
case null:
|
8
|
+
return "is-gapless";
|
9
|
+
case void 0:
|
10
|
+
return "is-3";
|
11
|
+
default:
|
12
|
+
return l;
|
13
|
+
}
|
14
|
+
}, I = ({
|
15
|
+
testId: l = null,
|
16
|
+
cssClasses: n = null,
|
17
|
+
style: t = null,
|
18
|
+
listOfColumns: u,
|
19
|
+
isMobileLayout: o = null,
|
20
|
+
isMultiline: r = null,
|
21
|
+
isVerticallyCentered: i = null,
|
22
|
+
isHorizontallyCentered: a = null,
|
23
|
+
gap: m = void 0
|
24
|
+
}) => {
|
25
|
+
const s = d([
|
26
|
+
"columns",
|
27
|
+
r ? "is-multiline" : null,
|
28
|
+
o ? "is-mobile" : null,
|
29
|
+
i ? "is-vcentered" : null,
|
30
|
+
a ? "is-centered" : null,
|
31
|
+
G(m),
|
32
|
+
n
|
33
|
+
]), c = l ?? C({
|
34
|
+
tag: "columns",
|
35
|
+
parsedClasses: s
|
36
|
+
});
|
37
|
+
return /* @__PURE__ */ e(
|
38
|
+
"section",
|
39
|
+
{
|
40
|
+
"data-testid": c,
|
41
|
+
className: s,
|
42
|
+
style: t ?? void 0,
|
43
|
+
children: u.map((p) => /* @__PURE__ */ e(
|
44
|
+
f,
|
45
|
+
{
|
46
|
+
...p
|
47
|
+
},
|
48
|
+
`column-group-item-${v()}`
|
49
|
+
))
|
50
|
+
}
|
51
|
+
);
|
52
|
+
};
|
53
|
+
export {
|
54
|
+
I as default
|
55
|
+
};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as ColumnGroup } from '.';
|
3
|
+
declare const _default: Meta<typeof ColumnGroup>;
|
4
|
+
export default _default;
|
5
|
+
export declare const FewColumns: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').ColumnGroupProps>;
|
6
|
+
export declare const SeveralColumns: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').ColumnGroupProps>;
|
7
|
+
export declare const MultilineMode: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').ColumnGroupProps>;
|
8
|
+
export declare const CenteredInHorizontalMode: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').ColumnGroupProps>;
|
9
|
+
export declare const NoGapBetweenColumns: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').ColumnGroupProps>;
|
10
|
+
export declare const MobileMode: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').ColumnGroupProps>;
|
File without changes
|
@@ -0,0 +1,72 @@
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
2
|
+
import { useState as w } from "react";
|
3
|
+
import { parseClasses as f, parseTestId as v } from "../../../functions/parsers.js";
|
4
|
+
import I from "../../atoms/DropdownTrigger/index.js";
|
5
|
+
import s from "../../atoms/DropdownItem/index.js";
|
6
|
+
import { generateKey as t } from "../../../functions/generators.js";
|
7
|
+
const h = (o) => /* @__PURE__ */ e("section", { className: "dropdown-content", children: o.map((n, r) => o.length > 1 && r === 0 ? /* @__PURE__ */ e(
|
8
|
+
s,
|
9
|
+
{
|
10
|
+
...n
|
11
|
+
},
|
12
|
+
`dropdown-item-${t()}`
|
13
|
+
) : /* @__PURE__ */ l("section", { children: [
|
14
|
+
/* @__PURE__ */ e(
|
15
|
+
s,
|
16
|
+
{
|
17
|
+
type: "divider",
|
18
|
+
itemText: "divider"
|
19
|
+
},
|
20
|
+
`dropdown-item-${t()}-divider`
|
21
|
+
),
|
22
|
+
/* @__PURE__ */ e(
|
23
|
+
s,
|
24
|
+
{
|
25
|
+
...n
|
26
|
+
},
|
27
|
+
`dropdown-item-${t()}`
|
28
|
+
)
|
29
|
+
] }, `dropdown-item-${t()}-section`)) }), y = ({
|
30
|
+
testId: o = null,
|
31
|
+
cssClasses: n = null,
|
32
|
+
style: r = null,
|
33
|
+
inputText: d,
|
34
|
+
dropdownPointer: i = "dropdown-menu",
|
35
|
+
listOfItems: c
|
36
|
+
}) => {
|
37
|
+
const [m, a] = w(!1), p = f([
|
38
|
+
"dropdown",
|
39
|
+
m ? "is-active" : null,
|
40
|
+
n
|
41
|
+
]), u = o ?? v({ tag: "dropdown", parsedClasses: p });
|
42
|
+
return /* @__PURE__ */ l(
|
43
|
+
"section",
|
44
|
+
{
|
45
|
+
"data-testid": u,
|
46
|
+
className: p,
|
47
|
+
style: r ?? void 0,
|
48
|
+
children: [
|
49
|
+
/* @__PURE__ */ e(
|
50
|
+
I,
|
51
|
+
{
|
52
|
+
menuText: d,
|
53
|
+
dropdownPointer: i,
|
54
|
+
onClick: () => a(!m)
|
55
|
+
}
|
56
|
+
),
|
57
|
+
/* @__PURE__ */ e(
|
58
|
+
"section",
|
59
|
+
{
|
60
|
+
className: "dropdown-menu",
|
61
|
+
id: i,
|
62
|
+
role: "menu",
|
63
|
+
children: h(c)
|
64
|
+
}
|
65
|
+
)
|
66
|
+
]
|
67
|
+
}
|
68
|
+
);
|
69
|
+
};
|
70
|
+
export {
|
71
|
+
y as default
|
72
|
+
};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as Dropdown } from '.';
|
3
|
+
declare const _default: Meta<typeof Dropdown>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').DropdownProps>;
|
6
|
+
export declare const AllItemsAreLinks: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').DropdownProps>;
|
File without changes
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as o, parseTestId as n } from "../../../functions/parsers.js";
|
3
|
+
const x = ({
|
4
|
+
testId: l = null,
|
5
|
+
containerTestId: r = null,
|
6
|
+
cssClasses: a = null,
|
7
|
+
containerCssClasses: c = null,
|
8
|
+
style: d = null,
|
9
|
+
containerStyle: i = null,
|
10
|
+
content: p,
|
11
|
+
isContentCentered: f = !1
|
12
|
+
}) => {
|
13
|
+
const e = o(["footer", c]), t = o([
|
14
|
+
"content",
|
15
|
+
f ? "has-text-centered" : null,
|
16
|
+
a
|
17
|
+
]), u = r ?? n({ tag: "footer", parsedClasses: e }), C = l ?? n({
|
18
|
+
tag: "content",
|
19
|
+
parsedClasses: t,
|
20
|
+
rules: [
|
21
|
+
{
|
22
|
+
regExp: /is-|has-/gm,
|
23
|
+
replacer: "-"
|
24
|
+
},
|
25
|
+
{
|
26
|
+
regExp: /content/gm,
|
27
|
+
replacer: ""
|
28
|
+
}
|
29
|
+
]
|
30
|
+
});
|
31
|
+
return /* @__PURE__ */ s(
|
32
|
+
"section",
|
33
|
+
{
|
34
|
+
"data-testid": u,
|
35
|
+
className: e,
|
36
|
+
style: i ?? void 0,
|
37
|
+
children: /* @__PURE__ */ s(
|
38
|
+
"section",
|
39
|
+
{
|
40
|
+
"data-testid": C,
|
41
|
+
className: t,
|
42
|
+
style: d ?? void 0,
|
43
|
+
children: p
|
44
|
+
}
|
45
|
+
)
|
46
|
+
}
|
47
|
+
);
|
48
|
+
};
|
49
|
+
export {
|
50
|
+
x as default
|
51
|
+
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as Footer } from '.';
|
3
|
+
declare const _default: Meta<typeof Footer>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').FooterProps>;
|
6
|
+
export declare const BulmaExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').FooterProps>;
|
7
|
+
export declare const Centered: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').FooterProps>;
|
8
|
+
export declare const WithCustomComponent: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').FooterProps>;
|
File without changes
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import { jsxs as x, jsx as a } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as h, parseTestId as v } from "../../../functions/parsers.js";
|
3
|
+
import I from "../../atoms/Icon/index.js";
|
4
|
+
import j from "../../atoms/Input/index.js";
|
5
|
+
const n = (l) => l ? /* @__PURE__ */ a(I, { ...l }) : null, y = ({
|
6
|
+
testId: l = null,
|
7
|
+
cssClasses: u = null,
|
8
|
+
style: d = null,
|
9
|
+
inputConfig: s,
|
10
|
+
leftIcon: e = null,
|
11
|
+
rightIcon: r = null,
|
12
|
+
size: o = null,
|
13
|
+
isLoading: p = null,
|
14
|
+
isExpanded: i = null
|
15
|
+
}) => {
|
16
|
+
const t = h([
|
17
|
+
"control",
|
18
|
+
o,
|
19
|
+
e ? "has-icons-left" : null,
|
20
|
+
r ? "has-icons-right" : null,
|
21
|
+
p ? "is-loading" : null,
|
22
|
+
i ? "is-expanded" : null,
|
23
|
+
u
|
24
|
+
]), c = l ?? v({
|
25
|
+
tag: "control",
|
26
|
+
parsedClasses: t,
|
27
|
+
rules: [
|
28
|
+
{
|
29
|
+
regExp: /has-|is-/gm,
|
30
|
+
replacer: "-"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
regExp: /control/gm,
|
34
|
+
replacer: ""
|
35
|
+
}
|
36
|
+
]
|
37
|
+
}), m = {
|
38
|
+
...s,
|
39
|
+
size: o ?? (s == null ? void 0 : s.size)
|
40
|
+
};
|
41
|
+
return /* @__PURE__ */ x(
|
42
|
+
"section",
|
43
|
+
{
|
44
|
+
"data-testid": c,
|
45
|
+
className: t,
|
46
|
+
style: d ?? void 0,
|
47
|
+
children: [
|
48
|
+
/* @__PURE__ */ a(j, { ...m }),
|
49
|
+
n(e ? { ...e, position: "is-left" } : void 0),
|
50
|
+
n(
|
51
|
+
r ? { ...r, position: "is-right" } : void 0
|
52
|
+
)
|
53
|
+
]
|
54
|
+
}
|
55
|
+
);
|
56
|
+
};
|
57
|
+
export {
|
58
|
+
y as default
|
59
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as InputControl } from '.';
|
3
|
+
import { InputControlProps } from '../../../interfaces/moleculeProps';
|
4
|
+
declare const _default: Meta<typeof InputControl>;
|
5
|
+
export default _default;
|
6
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, InputControlProps>;
|
7
|
+
export declare const WithLeftIcon: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, InputControlProps>;
|
8
|
+
export declare const WithBothIcons: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, InputControlProps>;
|
9
|
+
export declare const ErrorState: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, InputControlProps>;
|
10
|
+
export declare const BigSize: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, InputControlProps>;
|
11
|
+
export declare const LoadingState: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, InputControlProps>;
|
File without changes
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as i, parseTestId as o } from "../../../functions/parsers.js";
|
3
|
+
const d = ({
|
4
|
+
testId: l = null,
|
5
|
+
cssClasses: s = null,
|
6
|
+
style: t = null,
|
7
|
+
content: r,
|
8
|
+
isCentered: a = !1
|
9
|
+
}) => {
|
10
|
+
const e = i([
|
11
|
+
"level-item",
|
12
|
+
a ? "has-text-centered" : null,
|
13
|
+
s
|
14
|
+
]), m = l ?? o({
|
15
|
+
tag: "level-item",
|
16
|
+
parsedClasses: e,
|
17
|
+
rules: [
|
18
|
+
{
|
19
|
+
regExp: /is-|has-/gm,
|
20
|
+
replacer: "-"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
regExp: /level-item/gm,
|
24
|
+
replacer: ""
|
25
|
+
}
|
26
|
+
]
|
27
|
+
});
|
28
|
+
return /* @__PURE__ */ n(
|
29
|
+
"section",
|
30
|
+
{
|
31
|
+
"data-testid": m,
|
32
|
+
className: e,
|
33
|
+
style: t ?? void 0,
|
34
|
+
children: r
|
35
|
+
}
|
36
|
+
);
|
37
|
+
};
|
38
|
+
export {
|
39
|
+
d as default
|
40
|
+
};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as LevelItem } from '.';
|
3
|
+
declare const _default: Meta<typeof LevelItem>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').LevelItemProps>;
|
6
|
+
export declare const TitleAsContent: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').LevelItemProps>;
|
7
|
+
export declare const LevelHeaderAsContent: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').LevelItemProps>;
|
File without changes
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { jsxs as c, jsx as m } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as o, parseTestId as u } from "../../../functions/parsers.js";
|
3
|
+
const t = (e, s, l) => e ? /* @__PURE__ */ m(
|
4
|
+
"section",
|
5
|
+
{
|
6
|
+
"data-testid": `${l}-${s}`,
|
7
|
+
className: `media-${s}`,
|
8
|
+
children: e
|
9
|
+
}
|
10
|
+
) : null, h = ({
|
11
|
+
testId: e = null,
|
12
|
+
cssClasses: s = null,
|
13
|
+
style: l = null,
|
14
|
+
leftContent: i = null,
|
15
|
+
centerContent: n = null,
|
16
|
+
rightContent: r = null
|
17
|
+
}) => {
|
18
|
+
const d = o(["media", s]), a = e ?? u({ tag: "media", parsedClasses: d });
|
19
|
+
return /* @__PURE__ */ c(
|
20
|
+
"article",
|
21
|
+
{
|
22
|
+
"data-testid": a,
|
23
|
+
className: d,
|
24
|
+
style: l ?? void 0,
|
25
|
+
children: [
|
26
|
+
t(i, "left", a),
|
27
|
+
t(n, "content", a),
|
28
|
+
t(r, "right", a)
|
29
|
+
]
|
30
|
+
}
|
31
|
+
);
|
32
|
+
};
|
33
|
+
export {
|
34
|
+
h as default
|
35
|
+
};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as Media } from '.';
|
3
|
+
import { MediaProps } from '../../../interfaces/moleculeProps';
|
4
|
+
declare const _default: Meta<typeof Media>;
|
5
|
+
export default _default;
|
6
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, MediaProps>;
|
7
|
+
export declare const WithInputAsContent: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, MediaProps>;
|
8
|
+
export declare const WithAButtonGroup: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, MediaProps>;
|
9
|
+
export declare const WithADeleteButton: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, MediaProps>;
|
10
|
+
export declare const WithMediaComponentInSecondLevel: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, MediaProps>;
|
File without changes
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
2
|
+
import u from "react";
|
3
|
+
import c from "../MenuList/index.js";
|
4
|
+
import { parseClasses as d, parseTestId as p } from "../../../functions/parsers.js";
|
5
|
+
import { generateKey as s } from "../../../functions/generators.js";
|
6
|
+
const C = ({
|
7
|
+
testId: l = null,
|
8
|
+
cssClasses: m = null,
|
9
|
+
style: n = null,
|
10
|
+
menuSections: r
|
11
|
+
}) => {
|
12
|
+
const t = d(["menu", m]), i = l ?? p({ tag: "menu", parsedClasses: t });
|
13
|
+
return /* @__PURE__ */ e(
|
14
|
+
"aside",
|
15
|
+
{
|
16
|
+
"data-testid": i,
|
17
|
+
className: t,
|
18
|
+
style: n ?? void 0,
|
19
|
+
children: r.map((a) => /* @__PURE__ */ o(u.Fragment, { children: [
|
20
|
+
/* @__PURE__ */ e(
|
21
|
+
"p",
|
22
|
+
{
|
23
|
+
className: "menu-label",
|
24
|
+
children: a.label
|
25
|
+
},
|
26
|
+
`section-label-${s()}`
|
27
|
+
),
|
28
|
+
/* @__PURE__ */ e(
|
29
|
+
c,
|
30
|
+
{
|
31
|
+
itemList: a.itemList
|
32
|
+
},
|
33
|
+
`section-menu-list-${s()}`
|
34
|
+
)
|
35
|
+
] }, `section-${s()}`))
|
36
|
+
}
|
37
|
+
);
|
38
|
+
};
|
39
|
+
export {
|
40
|
+
C as default
|
41
|
+
};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as Menu } from '.';
|
3
|
+
declare const _default: Meta<typeof Menu>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').MenuProps>;
|
6
|
+
export declare const WithSecondLevel: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').MenuProps>;
|
File without changes
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import { jsx as s, jsxs as d } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as p, parseTestId as b } from "../../../functions/parsers.js";
|
3
|
+
import t from "../../atoms/MenuItem/index.js";
|
4
|
+
import { generateKey as l } from "../../../functions/generators.js";
|
5
|
+
const T = ({
|
6
|
+
testId: u = null,
|
7
|
+
cssClasses: n = null,
|
8
|
+
style: r = null,
|
9
|
+
itemList: m
|
10
|
+
}) => {
|
11
|
+
const i = p(["menu-list", n]), a = u ?? b({ tag: "menu-list", parsedClasses: i });
|
12
|
+
return /* @__PURE__ */ s(
|
13
|
+
"ul",
|
14
|
+
{
|
15
|
+
"data-testid": a,
|
16
|
+
className: i,
|
17
|
+
style: r ?? void 0,
|
18
|
+
children: m.map((e) => "subListTitle" in e ? /* @__PURE__ */ d("li", { children: [
|
19
|
+
/* @__PURE__ */ s(t, { ...e.subListTitle }),
|
20
|
+
/* @__PURE__ */ s("ul", { children: e.subItems.map((o) => /* @__PURE__ */ s(
|
21
|
+
t,
|
22
|
+
{
|
23
|
+
...o
|
24
|
+
},
|
25
|
+
`sub-list-menu-sub-item-${l()}`
|
26
|
+
)) })
|
27
|
+
] }, `sub-list-menu-item-${l()}`) : /* @__PURE__ */ s(
|
28
|
+
t,
|
29
|
+
{
|
30
|
+
...e
|
31
|
+
},
|
32
|
+
`sub-list-item-${l()}`
|
33
|
+
))
|
34
|
+
}
|
35
|
+
);
|
36
|
+
};
|
37
|
+
export {
|
38
|
+
T as default
|
39
|
+
};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as MenuList } from '.';
|
3
|
+
declare const _default: Meta<typeof MenuList>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').MenuListProps>;
|
6
|
+
export declare const ListAndSublist: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/moleculeProps').MenuListProps>;
|
File without changes
|