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,83 @@
|
|
1
|
+
import { jsxs as d, jsx as s } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as h, parseTestId as B } from "../../../functions/parsers.js";
|
3
|
+
import $ from "../../atoms/NavBarItem/index.js";
|
4
|
+
import { generateKey as o } from "../../../functions/generators.js";
|
5
|
+
import "react";
|
6
|
+
import f from "../../molecules/NavBarBrand/index.js";
|
7
|
+
import x from "../../molecules/NavBarDropdown/index.js";
|
8
|
+
const p = (l, a, e) => l ? /* @__PURE__ */ s(
|
9
|
+
"section",
|
10
|
+
{
|
11
|
+
"data-testid": `${e}-${a}`,
|
12
|
+
className: `navbar-${a}`,
|
13
|
+
children: l.itemList.map(
|
14
|
+
(r) => r.children !== void 0 ? /* @__PURE__ */ s(
|
15
|
+
$,
|
16
|
+
{
|
17
|
+
...r
|
18
|
+
},
|
19
|
+
`navbar-section${a}-${o()}`
|
20
|
+
) : /* @__PURE__ */ s(
|
21
|
+
x,
|
22
|
+
{
|
23
|
+
...r
|
24
|
+
},
|
25
|
+
`navbar-section${a}-${o()}`
|
26
|
+
)
|
27
|
+
)
|
28
|
+
}
|
29
|
+
) : null, D = ({
|
30
|
+
testId: l = null,
|
31
|
+
cssClasses: a = null,
|
32
|
+
style: e = null,
|
33
|
+
brandConfig: r = null,
|
34
|
+
itemsAtStart: v = null,
|
35
|
+
itemsAtEnd: c = null,
|
36
|
+
fixedPosition: i = null,
|
37
|
+
color: m = null,
|
38
|
+
isTransparent: u = !1,
|
39
|
+
isSpaced: b = !1,
|
40
|
+
hasShadow: N = !1
|
41
|
+
}) => {
|
42
|
+
const t = h([
|
43
|
+
"navbar",
|
44
|
+
i,
|
45
|
+
m,
|
46
|
+
u ? "is-transparent" : null,
|
47
|
+
b ? "is-spaced" : null,
|
48
|
+
N ? "has-shadow" : null,
|
49
|
+
a
|
50
|
+
]), n = l ?? B({
|
51
|
+
tag: "navbar",
|
52
|
+
parsedClasses: t,
|
53
|
+
rules: [
|
54
|
+
{ regExp: /is-|has-/gm, replacer: "-" },
|
55
|
+
{ regExp: /navbar/gm, replacer: "" }
|
56
|
+
]
|
57
|
+
});
|
58
|
+
return /* @__PURE__ */ d(
|
59
|
+
"nav",
|
60
|
+
{
|
61
|
+
"data-testid": n,
|
62
|
+
className: t,
|
63
|
+
style: e ?? void 0,
|
64
|
+
children: [
|
65
|
+
r ? /* @__PURE__ */ s(
|
66
|
+
"section",
|
67
|
+
{
|
68
|
+
"data-testid": "navbar-brand",
|
69
|
+
className: "navbar-brand",
|
70
|
+
children: /* @__PURE__ */ s(f, { ...r })
|
71
|
+
}
|
72
|
+
) : null,
|
73
|
+
/* @__PURE__ */ d("section", { className: "navbar-menu", children: [
|
74
|
+
p(v, "start", n),
|
75
|
+
p(c, "end", n)
|
76
|
+
] })
|
77
|
+
]
|
78
|
+
}
|
79
|
+
);
|
80
|
+
};
|
81
|
+
export {
|
82
|
+
D as default
|
83
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as NavBar } from '.';
|
3
|
+
declare const _default: Meta<typeof NavBar>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').NavBarProps>;
|
6
|
+
export declare const WithADropdownAtStart: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').NavBarProps>;
|
7
|
+
export declare const WithDropdownsAtStartAndEnd: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').NavBarProps>;
|
8
|
+
export declare const Spaced: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').NavBarProps>;
|
9
|
+
export declare const WithShadow: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').NavBarProps>;
|
10
|
+
export declare const Colored: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').NavBarProps>;
|
11
|
+
export declare const Transparent: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').NavBarProps>;
|
File without changes
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import { jsxs as c, jsx as l } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as d, parseTestId as u } from "../../../functions/parsers.js";
|
3
|
+
import { generateKey as f } from "../../../functions/generators.js";
|
4
|
+
import "react";
|
5
|
+
import g from "../../molecules/PanelBlock/index.js";
|
6
|
+
import h from "../../molecules/PanelTabs/index.js";
|
7
|
+
const x = (e) => /* @__PURE__ */ l("p", { className: "panel-heading", children: e }), N = ({
|
8
|
+
testId: e = null,
|
9
|
+
cssClasses: n = null,
|
10
|
+
style: t = null,
|
11
|
+
headerText: r,
|
12
|
+
panelTabs: a = null,
|
13
|
+
blockList: o,
|
14
|
+
color: p = null
|
15
|
+
}) => {
|
16
|
+
const s = d(["panel", p, n]), m = e ?? u({ tag: "panel", parsedClasses: s });
|
17
|
+
return /* @__PURE__ */ c(
|
18
|
+
"article",
|
19
|
+
{
|
20
|
+
"data-testid": m,
|
21
|
+
className: s,
|
22
|
+
style: t ?? void 0,
|
23
|
+
children: [
|
24
|
+
x(r),
|
25
|
+
a ? /* @__PURE__ */ l(h, { ...a }) : null,
|
26
|
+
o.map((i) => /* @__PURE__ */ l(
|
27
|
+
g,
|
28
|
+
{
|
29
|
+
...i
|
30
|
+
},
|
31
|
+
`panel-block-item-${f()}`
|
32
|
+
))
|
33
|
+
]
|
34
|
+
}
|
35
|
+
);
|
36
|
+
};
|
37
|
+
export {
|
38
|
+
N as default
|
39
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as Panel } from '.';
|
3
|
+
import { PanelProps } from '../../../interfaces/organismProps';
|
4
|
+
declare const _default: Meta<typeof Panel>;
|
5
|
+
export default _default;
|
6
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PanelProps>;
|
7
|
+
export declare const FistTabIsActive: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PanelProps>;
|
8
|
+
export declare const SeveralLinkBlocks: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PanelProps>;
|
9
|
+
export declare const HasAnActiveLink: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PanelProps>;
|
10
|
+
export declare const Colored: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PanelProps>;
|
11
|
+
export declare const SeveralElementBlocks: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PanelProps>;
|
File without changes
|
@@ -0,0 +1,65 @@
|
|
1
|
+
import { jsx as e, jsxs as y } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as C, parseTestId as w } from "../../../functions/parsers.js";
|
3
|
+
import x from "../../atoms/TableHeadCell/index.js";
|
4
|
+
import { generateKey as i } from "../../../functions/generators.js";
|
5
|
+
import "react";
|
6
|
+
import g from "../../molecules/TableRow/index.js";
|
7
|
+
const n = (t, a) => /* @__PURE__ */ e("tr", { children: a.map((s) => /* @__PURE__ */ e(
|
8
|
+
x,
|
9
|
+
{
|
10
|
+
...s
|
11
|
+
},
|
12
|
+
`table-${t}-item-${i()}`
|
13
|
+
)) }), K = ({
|
14
|
+
testId: t = null,
|
15
|
+
cssClasses: a = null,
|
16
|
+
style: s = null,
|
17
|
+
head: b,
|
18
|
+
body: m,
|
19
|
+
foot: r = null,
|
20
|
+
isBordered: c = !1,
|
21
|
+
isStriped: f = !1,
|
22
|
+
isNarrow: p = !1,
|
23
|
+
isHoverable: u = !1,
|
24
|
+
isFullwidth: h = !1,
|
25
|
+
isContained: T = !1
|
26
|
+
}) => {
|
27
|
+
const d = C([
|
28
|
+
"table",
|
29
|
+
c ? "is-bordered" : null,
|
30
|
+
f ? "is-striped" : null,
|
31
|
+
p ? "is-narrow" : null,
|
32
|
+
u ? "is-hoverable" : null,
|
33
|
+
h ? "is-fullwidth" : null,
|
34
|
+
a
|
35
|
+
]), l = t ?? w({ tag: "table", parsedClasses: d }), o = () => /* @__PURE__ */ y(
|
36
|
+
"table",
|
37
|
+
{
|
38
|
+
"data-testid": l,
|
39
|
+
className: d,
|
40
|
+
style: s ?? void 0,
|
41
|
+
children: [
|
42
|
+
/* @__PURE__ */ e("thead", { "data-testid": `${l}-head`, children: n("head", b) }),
|
43
|
+
/* @__PURE__ */ e("tbody", { "data-testid": `${l}-body`, children: m.map(($) => /* @__PURE__ */ e(
|
44
|
+
g,
|
45
|
+
{
|
46
|
+
...$
|
47
|
+
},
|
48
|
+
`table-body-item-${i()}`
|
49
|
+
)) }),
|
50
|
+
r ? /* @__PURE__ */ e("tfoot", { "data-testid": `${l}-foot`, children: n("foot", r) }) : null
|
51
|
+
]
|
52
|
+
}
|
53
|
+
);
|
54
|
+
return T ? /* @__PURE__ */ e(
|
55
|
+
"section",
|
56
|
+
{
|
57
|
+
"data-testid": `${l}-container`,
|
58
|
+
className: "table-container",
|
59
|
+
children: /* @__PURE__ */ e(o, {})
|
60
|
+
}
|
61
|
+
) : /* @__PURE__ */ e(o, {});
|
62
|
+
};
|
63
|
+
export {
|
64
|
+
K as default
|
65
|
+
};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as Table } from '.';
|
3
|
+
import { TableProps } from '../../../interfaces/organismProps';
|
4
|
+
declare const _default: Meta<typeof Table>;
|
5
|
+
export default _default;
|
6
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, TableProps>;
|
7
|
+
export declare const FirstRowCellIsHeader: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, TableProps>;
|
8
|
+
export declare const LotsOfRows: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, TableProps>;
|
9
|
+
export declare const SelectedRows: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, TableProps>;
|
10
|
+
export declare const Bordered: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, TableProps>;
|
11
|
+
export declare const Striped: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, TableProps>;
|
12
|
+
export declare const Narrow: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, TableProps>;
|
13
|
+
export declare const FullWidth: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, TableProps>;
|
14
|
+
export declare const AllPropertiesApplied: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, TableProps>;
|
15
|
+
export declare const Scrollable: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, TableProps>;
|
File without changes
|
@@ -0,0 +1,55 @@
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as d, parseTestId as c } from "../../../functions/parsers.js";
|
3
|
+
import o from "../../atoms/Tile/index.js";
|
4
|
+
import { generateKey as f } from "../../../functions/generators.js";
|
5
|
+
const T = ({
|
6
|
+
testId: i = null,
|
7
|
+
cssClasses: e = null,
|
8
|
+
style: p = null,
|
9
|
+
context: r = "is-ancestor",
|
10
|
+
size: l = null,
|
11
|
+
isVertical: s = !1,
|
12
|
+
groupConfig: a
|
13
|
+
}) => {
|
14
|
+
const u = d([
|
15
|
+
"tileGroup",
|
16
|
+
r,
|
17
|
+
l,
|
18
|
+
s ? "is-vertical" : null,
|
19
|
+
e
|
20
|
+
]), m = i ?? c({
|
21
|
+
tag: "tileGroup",
|
22
|
+
parsedClasses: u,
|
23
|
+
rules: [
|
24
|
+
{
|
25
|
+
regExp: /tileGroup/gm,
|
26
|
+
replacer: ""
|
27
|
+
},
|
28
|
+
{
|
29
|
+
regExp: /is-/gm,
|
30
|
+
replacer: "-"
|
31
|
+
}
|
32
|
+
]
|
33
|
+
});
|
34
|
+
return /* @__PURE__ */ t(
|
35
|
+
o,
|
36
|
+
{
|
37
|
+
testId: m,
|
38
|
+
cssClasses: e ?? void 0,
|
39
|
+
style: p ?? void 0,
|
40
|
+
context: r,
|
41
|
+
size: l ?? void 0,
|
42
|
+
isVertical: s,
|
43
|
+
children: a.map((n) => /* @__PURE__ */ t(
|
44
|
+
o,
|
45
|
+
{
|
46
|
+
...n
|
47
|
+
},
|
48
|
+
`tile-item-${f()}`
|
49
|
+
))
|
50
|
+
}
|
51
|
+
);
|
52
|
+
};
|
53
|
+
export {
|
54
|
+
T as default
|
55
|
+
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as TileGroup } from '.';
|
3
|
+
declare const _default: Meta<typeof TileGroup>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').TileGroupProps>;
|
6
|
+
export declare const ThreeEqualColumns: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').TileGroupProps>;
|
7
|
+
export declare const ThreeUnequalColumns: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').TileGroupProps>;
|
8
|
+
export declare const ThreeColumnsInHalfScreen: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/organismProps').TileGroupProps>;
|
File without changes
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export { default as FormField } from './FormField';
|
2
|
+
export { default as Panel } from './Panel';
|
3
|
+
export { default as Level } from './Level';
|
4
|
+
export { default as Hero } from './Hero';
|
5
|
+
export { default as TileGroup } from './TileGroup';
|
6
|
+
export { default as NavBar } from './NavBar';
|
7
|
+
export { default as Card } from './Card';
|
8
|
+
export { default as Table } from './Table';
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { default as r } from "./FormField/index.js";
|
2
|
+
import { default as f } from "./Panel/index.js";
|
3
|
+
import { default as l } from "./Level/index.js";
|
4
|
+
import { default as m } from "./Hero/index.js";
|
5
|
+
import { default as u } from "./TileGroup/index.js";
|
6
|
+
import { default as x } from "./NavBar/index.js";
|
7
|
+
import { default as v } from "./Card/index.js";
|
8
|
+
import { default as T } from "./Table/index.js";
|
9
|
+
export {
|
10
|
+
v as Card,
|
11
|
+
r as FormField,
|
12
|
+
m as Hero,
|
13
|
+
l as Level,
|
14
|
+
x as NavBar,
|
15
|
+
f as Panel,
|
16
|
+
T as Table,
|
17
|
+
u as TileGroup
|
18
|
+
};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { GenericObjectProps } from '../interfaces/commonProps';
|
2
|
+
import { CreateObjArrayProps } from '../interfaces/functionProps';
|
3
|
+
export declare const generateKey: (max?: number, min?: number) => string;
|
4
|
+
export declare const createObjArray: <ImportedProps>({ numberOfItems, externalParser }?: CreateObjArrayProps) => ImportedProps[] | GenericObjectProps[];
|
@@ -0,0 +1,12 @@
|
|
1
|
+
const a = (e = 5e3, t = 1) => {
|
2
|
+
e = Math.floor(e), t = Math.ceil(t);
|
3
|
+
const r = new Uint32Array(1);
|
4
|
+
return window.crypto.getRandomValues(r), Math.floor(r[0] * (e - t) + t).toString();
|
5
|
+
}, n = ({
|
6
|
+
numberOfItems: e = 3,
|
7
|
+
externalParser: t
|
8
|
+
} = {}) => Array(e).fill(null).map((r, o) => t ? t(o) : { text: `${++o}` });
|
9
|
+
export {
|
10
|
+
n as createObjArray,
|
11
|
+
a as generateKey
|
12
|
+
};
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { ParseTestIdProps } from '../interfaces/functionProps';
|
2
|
+
/**
|
3
|
+
* @param { Array<string | null> } _classes `Required`. Array of classNames on `string` (or `null`) values
|
4
|
+
* @returns { string } A single string product of merge all classNames, separated by spaces
|
5
|
+
*/
|
6
|
+
export declare const parseClasses: (_classes: Array<string | null | undefined>) => string;
|
7
|
+
/**
|
8
|
+
* @param { ParseTestIdProps } config Configuration object
|
9
|
+
* @param { string } config.tag `Required`. Component tag used between to build the final testId string.
|
10
|
+
* @param { string } config.parsedClasses `Required`. A single string of previously parsed classes what will be joined with `tag` property.
|
11
|
+
* @param { { regExp?: RegExp, replacer?: string }[] } config.rules Optional. An array of objects used with a regular expression to check each case and a replacer for each one, giving oportunity to handle specific cases of component class names.
|
12
|
+
* @returns A single string product of merge all classNames, separated by `separator` value
|
13
|
+
*/
|
14
|
+
export declare const parseTestId: (config: ParseTestIdProps) => string;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
const a = (e) => e.filter((r) => r).join(" "), l = (e) => {
|
2
|
+
let r = e.parsedClasses;
|
3
|
+
if (e.rules)
|
4
|
+
for (const s of e.rules)
|
5
|
+
r = r.replace(
|
6
|
+
s.regExp,
|
7
|
+
s.replacer
|
8
|
+
);
|
9
|
+
else
|
10
|
+
r = r.replace(`${e.tag}`, "").replace(/is-/gm, "-");
|
11
|
+
return `test-${e.tag}${r.replace(
|
12
|
+
/ /gm,
|
13
|
+
e.separator ?? ""
|
14
|
+
)}`;
|
15
|
+
};
|
16
|
+
export {
|
17
|
+
a as parseClasses,
|
18
|
+
l as parseTestId
|
19
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
import { default as o } from "./components/atoms/Button/index.js";
|
2
|
+
import { default as t } from "./components/atoms/Column/index.js";
|
3
|
+
import { default as l } from "./components/atoms/ProgressBar/index.js";
|
4
|
+
import { default as d } from "./components/atoms/Block/index.js";
|
5
|
+
import { default as p } from "./components/atoms/Tag/index.js";
|
6
|
+
import { default as x } from "./components/atoms/Box/index.js";
|
7
|
+
import { default as i } from "./components/atoms/Title/index.js";
|
8
|
+
import { default as T } from "./components/atoms/Icon/index.js";
|
9
|
+
import { default as b } from "./components/atoms/Input/index.js";
|
10
|
+
import { default as g } from "./components/atoms/TextArea/index.js";
|
11
|
+
import { default as C } from "./components/atoms/Delete/index.js";
|
12
|
+
import { default as P } from "./components/atoms/Select/index.js";
|
13
|
+
import { default as D } from "./components/atoms/File/index.js";
|
14
|
+
import { default as F } from "./components/atoms/Checkbox/index.js";
|
15
|
+
import { default as k } from "./components/atoms/RadioButton/index.js";
|
16
|
+
import { default as H } from "./components/atoms/BreadcrumbItem/index.js";
|
17
|
+
import { default as S } from "./components/atoms/DropdownTrigger/index.js";
|
18
|
+
import { default as A } from "./components/atoms/DropdownItem/index.js";
|
19
|
+
import { default as q } from "./components/atoms/MenuItem/index.js";
|
20
|
+
import { default as z } from "./components/atoms/Image/index.js";
|
21
|
+
import { default as J } from "./components/atoms/PaginationItem/index.js";
|
22
|
+
import { default as O } from "./components/atoms/TabItem/index.js";
|
23
|
+
import { default as U } from "./components/atoms/LevelHeader/index.js";
|
24
|
+
import { default as W } from "./components/atoms/Tile/index.js";
|
25
|
+
import { default as Y } from "./components/atoms/NavBarItem/index.js";
|
26
|
+
import { default as _ } from "./components/atoms/TableHeadCell/index.js";
|
27
|
+
import { default as ee } from "./components/atoms/TableCell/index.js";
|
28
|
+
import { default as oe } from "./components/molecules/ButtonGroup/index.js";
|
29
|
+
import { default as te } from "./components/molecules/ColumnGroup/index.js";
|
30
|
+
import { default as le } from "./components/molecules/Notification/index.js";
|
31
|
+
import { default as de } from "./components/molecules/Breadcrumbs/index.js";
|
32
|
+
import { default as pe } from "./components/molecules/Dropdown/index.js";
|
33
|
+
import { default as xe } from "./components/molecules/Message/index.js";
|
34
|
+
import { default as ie } from "./components/molecules/Menu/index.js";
|
35
|
+
import { default as Te } from "./components/molecules/MenuList/index.js";
|
36
|
+
import { default as be } from "./components/molecules/Pagination/index.js";
|
37
|
+
import { default as ge } from "./components/molecules/Modal/index.js";
|
38
|
+
import { default as Ce } from "./components/molecules/Tabs/index.js";
|
39
|
+
import { default as Pe } from "./components/molecules/InputControl/index.js";
|
40
|
+
import { default as De } from "./components/molecules/PanelBlock/index.js";
|
41
|
+
import { default as Fe } from "./components/molecules/PanelTabs/index.js";
|
42
|
+
import { default as ke } from "./components/molecules/LevelItem/index.js";
|
43
|
+
import { default as He } from "./components/molecules/TileBox/index.js";
|
44
|
+
import { default as Se } from "./components/molecules/Footer/index.js";
|
45
|
+
import { default as Ae } from "./components/molecules/Media/index.js";
|
46
|
+
import { default as qe } from "./components/molecules/Section/index.js";
|
47
|
+
import { default as ze } from "./components/molecules/NavBarBrand/index.js";
|
48
|
+
import { default as Je } from "./components/molecules/NavBarDropdown/index.js";
|
49
|
+
import { default as Oe } from "./components/molecules/TableRow/index.js";
|
50
|
+
import { default as Ue } from "./components/organisms/FormField/index.js";
|
51
|
+
import { default as We } from "./components/organisms/Panel/index.js";
|
52
|
+
import { default as Ye } from "./components/organisms/Level/index.js";
|
53
|
+
import { default as _e } from "./components/organisms/Hero/index.js";
|
54
|
+
import { default as ea } from "./components/organisms/TileGroup/index.js";
|
55
|
+
import { default as oa } from "./components/organisms/NavBar/index.js";
|
56
|
+
import { default as ta } from "./components/organisms/Card/index.js";
|
57
|
+
import { default as la } from "./components/organisms/Table/index.js";
|
58
|
+
export {
|
59
|
+
d as Block,
|
60
|
+
x as Box,
|
61
|
+
H as BreadcrumbItem,
|
62
|
+
de as Breadcrumbs,
|
63
|
+
o as Button,
|
64
|
+
oe as ButtonGroup,
|
65
|
+
ta as Card,
|
66
|
+
F as Checkbox,
|
67
|
+
t as Column,
|
68
|
+
te as ColumnGroup,
|
69
|
+
C as Delete,
|
70
|
+
pe as Dropdown,
|
71
|
+
A as DropdownItem,
|
72
|
+
S as DropdownTrigger,
|
73
|
+
D as File,
|
74
|
+
Se as Footer,
|
75
|
+
Ue as FormField,
|
76
|
+
_e as Hero,
|
77
|
+
T as Icon,
|
78
|
+
z as Image,
|
79
|
+
b as Input,
|
80
|
+
Pe as InputControl,
|
81
|
+
Ye as Level,
|
82
|
+
U as LevelHeader,
|
83
|
+
ke as LevelItem,
|
84
|
+
Ae as Media,
|
85
|
+
ie as Menu,
|
86
|
+
q as MenuItem,
|
87
|
+
Te as MenuList,
|
88
|
+
xe as Message,
|
89
|
+
ge as Modal,
|
90
|
+
oa as NavBar,
|
91
|
+
ze as NavBarBrand,
|
92
|
+
Je as NavBarDropdown,
|
93
|
+
Y as NavBarItem,
|
94
|
+
le as Notification,
|
95
|
+
be as Pagination,
|
96
|
+
J as PaginationItem,
|
97
|
+
We as Panel,
|
98
|
+
De as PanelBlock,
|
99
|
+
Fe as PanelTabs,
|
100
|
+
l as ProgressBar,
|
101
|
+
k as RadioButton,
|
102
|
+
qe as Section,
|
103
|
+
P as Select,
|
104
|
+
O as TabItem,
|
105
|
+
la as Table,
|
106
|
+
ee as TableCell,
|
107
|
+
_ as TableHeadCell,
|
108
|
+
Oe as TableRow,
|
109
|
+
Ce as Tabs,
|
110
|
+
p as Tag,
|
111
|
+
g as TextArea,
|
112
|
+
W as Tile,
|
113
|
+
He as TileBox,
|
114
|
+
ea as TileGroup,
|
115
|
+
i as Title
|
116
|
+
};
|