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,88 @@
|
|
1
|
+
import { jsx as i, jsxs as E } from "react/jsx-runtime";
|
2
|
+
import { IconSizeEnum as N } from "../../../types/domTypes.js";
|
3
|
+
import { parseClasses as p, parseTestId as u } from "../../../functions/parsers.js";
|
4
|
+
const T = (s, n) => {
|
5
|
+
const e = n ? `icon-text-${n}` : "icon-text", t = u({
|
6
|
+
tag: "icon-container",
|
7
|
+
parsedClasses: (n == null ? void 0 : n.toString()) ?? "",
|
8
|
+
rules: [
|
9
|
+
{
|
10
|
+
regExp: /has-text/gm,
|
11
|
+
replacer: ""
|
12
|
+
}
|
13
|
+
]
|
14
|
+
});
|
15
|
+
return /* @__PURE__ */ i(
|
16
|
+
"span",
|
17
|
+
{
|
18
|
+
"data-testid": t,
|
19
|
+
className: e,
|
20
|
+
children: s
|
21
|
+
}
|
22
|
+
);
|
23
|
+
}, S = ({
|
24
|
+
testId: s = null,
|
25
|
+
containerTestId: n = null,
|
26
|
+
cssClasses: e = null,
|
27
|
+
containerCssClasses: t = null,
|
28
|
+
style: g = null,
|
29
|
+
containerStyle: C = null,
|
30
|
+
iconLabel: x,
|
31
|
+
text: a = null,
|
32
|
+
color: r = null,
|
33
|
+
size: l = null,
|
34
|
+
colorMode: c = null,
|
35
|
+
isSpinning: I = !1,
|
36
|
+
position: f = null
|
37
|
+
}) => {
|
38
|
+
const $ = p([
|
39
|
+
"icon",
|
40
|
+
r,
|
41
|
+
l,
|
42
|
+
f,
|
43
|
+
t
|
44
|
+
]), d = p([
|
45
|
+
"mdi",
|
46
|
+
`mdi-${x}`,
|
47
|
+
c ? `mdi-${c}` : null,
|
48
|
+
I ? "mdi-spin" : null,
|
49
|
+
l ? `mdi-${N[l]}px` : "mdi-24px",
|
50
|
+
e
|
51
|
+
]), o = n ?? u({
|
52
|
+
tag: "icon",
|
53
|
+
parsedClasses: d,
|
54
|
+
rules: [
|
55
|
+
{
|
56
|
+
regExp: /mdi-|mdi--/gm,
|
57
|
+
replacer: ""
|
58
|
+
},
|
59
|
+
{
|
60
|
+
regExp: /mdi /gm,
|
61
|
+
replacer: "-"
|
62
|
+
}
|
63
|
+
],
|
64
|
+
separator: "-"
|
65
|
+
}), h = s ?? `${o}-i`, m = /* @__PURE__ */ E(
|
66
|
+
"span",
|
67
|
+
{
|
68
|
+
"data-testid": o,
|
69
|
+
className: $,
|
70
|
+
style: C ?? void 0,
|
71
|
+
children: [
|
72
|
+
/* @__PURE__ */ i(
|
73
|
+
"i",
|
74
|
+
{
|
75
|
+
"data-testid": h,
|
76
|
+
className: d,
|
77
|
+
style: g ?? void 0
|
78
|
+
}
|
79
|
+
),
|
80
|
+
a ? /* @__PURE__ */ i("span", { children: a }) : null
|
81
|
+
]
|
82
|
+
}
|
83
|
+
);
|
84
|
+
return a ? T(m, r) : m;
|
85
|
+
};
|
86
|
+
export {
|
87
|
+
S as default
|
88
|
+
};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as Icon } from '.';
|
3
|
+
import { IconProps } from '../../../interfaces/atomProps';
|
4
|
+
declare const _default: Meta<typeof Icon>;
|
5
|
+
export default _default;
|
6
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, IconProps>;
|
7
|
+
export declare const TextIncluded: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, IconProps>;
|
8
|
+
export declare const UsingOtherIcon: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, IconProps>;
|
9
|
+
export declare const Colored: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, IconProps>;
|
10
|
+
export declare const WithBigSize: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, IconProps>;
|
11
|
+
export declare const DarkMode: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, IconProps>;
|
12
|
+
export declare const Spinning: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, IconProps>;
|
File without changes
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as a, parseTestId as f } from "../../../functions/parsers.js";
|
3
|
+
const T = ({
|
4
|
+
testId: t = null,
|
5
|
+
containerTestId: n = null,
|
6
|
+
cssClasses: i = null,
|
7
|
+
containerCssClasses: o = null,
|
8
|
+
style: d = null,
|
9
|
+
containerStyle: m = null,
|
10
|
+
src: r,
|
11
|
+
alt: u = null,
|
12
|
+
fixedSize: g = null,
|
13
|
+
isRounded: c = !1
|
14
|
+
}) => {
|
15
|
+
const s = a([
|
16
|
+
"image",
|
17
|
+
g,
|
18
|
+
o
|
19
|
+
]), p = a([
|
20
|
+
c ? "is-rounded" : null,
|
21
|
+
i
|
22
|
+
]), e = n ?? f({ tag: "image", parsedClasses: s }), C = t ?? `${e}-img`;
|
23
|
+
return /* @__PURE__ */ l(
|
24
|
+
"figure",
|
25
|
+
{
|
26
|
+
"data-testid": e,
|
27
|
+
className: s,
|
28
|
+
style: m ?? void 0,
|
29
|
+
children: /* @__PURE__ */ l(
|
30
|
+
"img",
|
31
|
+
{
|
32
|
+
"data-testid": C,
|
33
|
+
className: p,
|
34
|
+
style: d ?? void 0,
|
35
|
+
src: r,
|
36
|
+
alt: u ?? void 0
|
37
|
+
}
|
38
|
+
)
|
39
|
+
}
|
40
|
+
);
|
41
|
+
};
|
42
|
+
export {
|
43
|
+
T as default
|
44
|
+
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as Image } from '.';
|
3
|
+
declare const _default: Meta<typeof Image>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ImageProps>;
|
6
|
+
export declare const WithFixedStyle: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ImageProps>;
|
7
|
+
export declare const IsRounded: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ImageProps>;
|
8
|
+
export declare const CustomStyle: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ImageProps>;
|
File without changes
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import { jsx as h } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as I, parseTestId as g } from "../../../functions/parsers.js";
|
3
|
+
const T = ({
|
4
|
+
testId: n = null,
|
5
|
+
cssClasses: s = null,
|
6
|
+
style: e = null,
|
7
|
+
type: u,
|
8
|
+
text: t = null,
|
9
|
+
placeholder: a = null,
|
10
|
+
isDisabled: d = !1,
|
11
|
+
isReadonly: o = !1,
|
12
|
+
color: i = null,
|
13
|
+
size: r = null,
|
14
|
+
isRounded: p = null,
|
15
|
+
isHovered: c = null,
|
16
|
+
isFocused: f = null,
|
17
|
+
onClick: v = null,
|
18
|
+
onChange: m = null
|
19
|
+
}) => {
|
20
|
+
const l = I([
|
21
|
+
"input",
|
22
|
+
i,
|
23
|
+
r,
|
24
|
+
p ? "is-rounded" : null,
|
25
|
+
c ? "is-hovered" : null,
|
26
|
+
f ? "is-focused" : null,
|
27
|
+
s
|
28
|
+
]), C = n ?? g({
|
29
|
+
tag: "input",
|
30
|
+
parsedClasses: l
|
31
|
+
});
|
32
|
+
return /* @__PURE__ */ h(
|
33
|
+
"input",
|
34
|
+
{
|
35
|
+
"data-testid": C,
|
36
|
+
type: u,
|
37
|
+
placeholder: a ?? void 0,
|
38
|
+
defaultValue: t ?? void 0,
|
39
|
+
disabled: d,
|
40
|
+
readOnly: o,
|
41
|
+
className: l,
|
42
|
+
style: e ?? void 0,
|
43
|
+
onClick: v ?? void 0,
|
44
|
+
onChange: m ?? void 0
|
45
|
+
}
|
46
|
+
);
|
47
|
+
};
|
48
|
+
export {
|
49
|
+
T as default
|
50
|
+
};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as Input } from '.';
|
3
|
+
import { InputProps } from '../../../interfaces/atomProps';
|
4
|
+
declare const _default: Meta<typeof Input>;
|
5
|
+
export default _default;
|
6
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, InputProps>;
|
7
|
+
export declare const WithPlaceholder: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, InputProps>;
|
8
|
+
export declare const WithText: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, InputProps>;
|
9
|
+
export declare const Colored: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, InputProps>;
|
10
|
+
export declare const WithBigSize: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, InputProps>;
|
11
|
+
export declare const Rounded: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, InputProps>;
|
12
|
+
export declare const Hovered: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, InputProps>;
|
13
|
+
export declare const Focused: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, InputProps>;
|
14
|
+
export declare const Disabled: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, InputProps>;
|
15
|
+
export declare const ReadOnly: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, InputProps>;
|
File without changes
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { jsxs as i, jsx as l } from "react/jsx-runtime";
|
2
|
+
import { parseTestId as n } from "../../../functions/parsers.js";
|
3
|
+
const m = ({
|
4
|
+
testId: a = null,
|
5
|
+
cssClasses: e = null,
|
6
|
+
style: s = null,
|
7
|
+
header: t,
|
8
|
+
value: d
|
9
|
+
}) => {
|
10
|
+
const r = a ?? n({ tag: "level-header", parsedClasses: e ?? "" });
|
11
|
+
return /* @__PURE__ */ i(
|
12
|
+
"section",
|
13
|
+
{
|
14
|
+
"data-testid": r,
|
15
|
+
className: e ?? void 0,
|
16
|
+
style: s ?? void 0,
|
17
|
+
children: [
|
18
|
+
/* @__PURE__ */ l("p", { className: "heading", children: t }),
|
19
|
+
/* @__PURE__ */ l("p", { className: "title", children: d })
|
20
|
+
]
|
21
|
+
}
|
22
|
+
);
|
23
|
+
};
|
24
|
+
export {
|
25
|
+
m as default
|
26
|
+
};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as LevelHeader } from '.';
|
3
|
+
declare const _default: Meta<typeof LevelHeader>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').LevelHeaderProps>;
|
6
|
+
export declare const NumericExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').LevelHeaderProps>;
|
File without changes
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as d, parseTestId as i } from "../../../functions/parsers.js";
|
3
|
+
const I = ({
|
4
|
+
testId: s = null,
|
5
|
+
cssClasses: t = null,
|
6
|
+
style: l = null,
|
7
|
+
text: n,
|
8
|
+
isActive: a = null,
|
9
|
+
onClick: m = null
|
10
|
+
}) => {
|
11
|
+
const e = d([
|
12
|
+
"menuItem",
|
13
|
+
a ? "is-active" : null,
|
14
|
+
t
|
15
|
+
]), u = s ?? i({ tag: "menuItem", parsedClasses: e });
|
16
|
+
return /* @__PURE__ */ r(
|
17
|
+
"a",
|
18
|
+
{
|
19
|
+
"data-testid": u,
|
20
|
+
className: e,
|
21
|
+
style: l ?? void 0,
|
22
|
+
"aria-hidden": "true",
|
23
|
+
onClick: m ?? void 0,
|
24
|
+
children: n
|
25
|
+
}
|
26
|
+
);
|
27
|
+
};
|
28
|
+
export {
|
29
|
+
I as default
|
30
|
+
};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as MenuItem } from '.';
|
3
|
+
declare const _default: Meta<typeof MenuItem>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').MenuItemProps>;
|
6
|
+
export declare const Active: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').MenuItemProps>;
|
File without changes
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as d, parseTestId as m } from "../../../functions/parsers.js";
|
3
|
+
const c = ({
|
4
|
+
testId: s = null,
|
5
|
+
cssClasses: e = null,
|
6
|
+
style: t = null,
|
7
|
+
children: l,
|
8
|
+
isActive: r = !1,
|
9
|
+
onClick: n = null
|
10
|
+
}) => {
|
11
|
+
const a = d([
|
12
|
+
"navbar-item",
|
13
|
+
r ? "is-active" : null,
|
14
|
+
e
|
15
|
+
]), i = s ?? m({ tag: "navbar-item", parsedClasses: a });
|
16
|
+
return /* @__PURE__ */ o(
|
17
|
+
"a",
|
18
|
+
{
|
19
|
+
"data-testid": i,
|
20
|
+
className: a,
|
21
|
+
style: t ?? void 0,
|
22
|
+
"aria-hidden": "true",
|
23
|
+
onClick: n ?? void 0,
|
24
|
+
children: l
|
25
|
+
}
|
26
|
+
);
|
27
|
+
};
|
28
|
+
export {
|
29
|
+
c as default
|
30
|
+
};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as NavBarItem } from '.';
|
3
|
+
declare const _default: Meta<typeof NavBarItem>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').NavBarItemProps>;
|
File without changes
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as u, parseTestId as g } from "../../../functions/parsers.js";
|
3
|
+
const C = ({
|
4
|
+
testId: e = null,
|
5
|
+
cssClasses: s = null,
|
6
|
+
style: l = null,
|
7
|
+
text: n,
|
8
|
+
labelText: i = "Page",
|
9
|
+
currentLabelText: r = "Go to page",
|
10
|
+
isSelected: a = null,
|
11
|
+
onClick: o = null
|
12
|
+
}) => {
|
13
|
+
const t = u([
|
14
|
+
"pagination-link",
|
15
|
+
a ? "is-current" : null,
|
16
|
+
s
|
17
|
+
]), p = e ?? g({
|
18
|
+
tag: "pagination-link",
|
19
|
+
parsedClasses: t
|
20
|
+
});
|
21
|
+
return /* @__PURE__ */ d(
|
22
|
+
"a",
|
23
|
+
{
|
24
|
+
"data-testid": p,
|
25
|
+
className: t,
|
26
|
+
style: l ?? void 0,
|
27
|
+
"aria-label": `${a ? r : i} ${n}`,
|
28
|
+
"aria-current": a ? "page" : void 0,
|
29
|
+
"aria-hidden": "true",
|
30
|
+
onClick: o ?? void 0,
|
31
|
+
children: n
|
32
|
+
}
|
33
|
+
);
|
34
|
+
};
|
35
|
+
export {
|
36
|
+
C as default
|
37
|
+
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as PaginationItem } from '.';
|
3
|
+
declare const _default: Meta<typeof PaginationItem>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').PaginationItemProps>;
|
6
|
+
export declare const Selected: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').PaginationItemProps>;
|
7
|
+
export declare const CustomLabelText: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').PaginationItemProps>;
|
8
|
+
export declare const SelectedWithCustomLabelText: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').PaginationItemProps>;
|
File without changes
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as g, parseTestId as f } from "../../../functions/parsers.js";
|
3
|
+
const C = ({
|
4
|
+
testId: t = null,
|
5
|
+
cssClasses: l = null,
|
6
|
+
style: a = null,
|
7
|
+
value: s = 0,
|
8
|
+
max: r = 100,
|
9
|
+
color: p = "is-primary",
|
10
|
+
size: d = null,
|
11
|
+
isLoading: e = !1
|
12
|
+
}) => {
|
13
|
+
const n = s > r || s < 0 ? 0 : s, o = g([
|
14
|
+
"progress",
|
15
|
+
p,
|
16
|
+
d,
|
17
|
+
l
|
18
|
+
]), i = t ?? f({
|
19
|
+
tag: "progress",
|
20
|
+
parsedClasses: o
|
21
|
+
});
|
22
|
+
return /* @__PURE__ */ c(
|
23
|
+
"progress",
|
24
|
+
{
|
25
|
+
"data-testid": i,
|
26
|
+
className: o,
|
27
|
+
style: a ?? void 0,
|
28
|
+
value: e ? void 0 : s,
|
29
|
+
max: r,
|
30
|
+
children: `${e ? 0 : n}%`
|
31
|
+
}
|
32
|
+
);
|
33
|
+
};
|
34
|
+
export {
|
35
|
+
C as default
|
36
|
+
};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as ProgressBar } from '.';
|
3
|
+
declare const _default: Meta<typeof ProgressBar>;
|
4
|
+
export default _default;
|
5
|
+
export declare const Basic: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ProgressBarProps>;
|
6
|
+
export declare const HalfValue: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ProgressBarProps>;
|
7
|
+
export declare const Colored: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ProgressBarProps>;
|
8
|
+
export declare const MaxBeyond100: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ProgressBarProps>;
|
9
|
+
export declare const LargeSize: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ProgressBarProps>;
|
10
|
+
export declare const Loading: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ProgressBarProps>;
|
File without changes
|
@@ -0,0 +1,71 @@
|
|
1
|
+
import { jsx as u, jsxs as c } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as m, parseTestId as p } from "../../../functions/parsers.js";
|
3
|
+
const C = (s, t) => {
|
4
|
+
const {
|
5
|
+
testId: a = null,
|
6
|
+
label: n,
|
7
|
+
name: o,
|
8
|
+
isChecked: l = !1,
|
9
|
+
isDisabled: e = !1,
|
10
|
+
style: d = null,
|
11
|
+
onChange: i
|
12
|
+
} = s, r = a ?? `test-radio-button-item-${t}`;
|
13
|
+
return /* @__PURE__ */ c(
|
14
|
+
"label",
|
15
|
+
{
|
16
|
+
className: "radio",
|
17
|
+
children: [
|
18
|
+
/* @__PURE__ */ u(
|
19
|
+
"input",
|
20
|
+
{
|
21
|
+
"data-testid": r,
|
22
|
+
type: "radio",
|
23
|
+
style: d ?? void 0,
|
24
|
+
name: o,
|
25
|
+
defaultChecked: l,
|
26
|
+
disabled: e,
|
27
|
+
onChange: i
|
28
|
+
}
|
29
|
+
),
|
30
|
+
n
|
31
|
+
]
|
32
|
+
},
|
33
|
+
t
|
34
|
+
);
|
35
|
+
}, b = ({
|
36
|
+
containerTestId: s = null,
|
37
|
+
containerCssClasses: t = null,
|
38
|
+
containerStyle: a = null,
|
39
|
+
options: n,
|
40
|
+
name: o,
|
41
|
+
onChange: l = null
|
42
|
+
}) => {
|
43
|
+
const e = m([
|
44
|
+
"control",
|
45
|
+
t
|
46
|
+
]), d = s ?? p({
|
47
|
+
tag: "container-",
|
48
|
+
parsedClasses: e
|
49
|
+
});
|
50
|
+
return /* @__PURE__ */ u(
|
51
|
+
"section",
|
52
|
+
{
|
53
|
+
"data-testid": d,
|
54
|
+
className: e,
|
55
|
+
style: a ?? void 0,
|
56
|
+
children: n.map(
|
57
|
+
(i, r) => C(
|
58
|
+
{
|
59
|
+
...i,
|
60
|
+
name: o,
|
61
|
+
onChange: l ?? void 0
|
62
|
+
},
|
63
|
+
r
|
64
|
+
)
|
65
|
+
)
|
66
|
+
}
|
67
|
+
);
|
68
|
+
};
|
69
|
+
export {
|
70
|
+
b as default
|
71
|
+
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
import { default as RadioButton } from '.';
|
3
|
+
declare const _default: Meta<typeof RadioButton>;
|
4
|
+
export default _default;
|
5
|
+
export declare const BasicExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').RadioButtonProps>;
|
6
|
+
export declare const SeveralOptions: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').RadioButtonProps>;
|
7
|
+
export declare const OneOptionSelected: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').RadioButtonProps>;
|
8
|
+
export declare const AllOptionsDisabled: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').RadioButtonProps>;
|
File without changes
|
@@ -0,0 +1,64 @@
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as k, parseTestId as x } from "../../../functions/parsers.js";
|
3
|
+
const j = ({
|
4
|
+
testId: n = null,
|
5
|
+
containerTestId: a = null,
|
6
|
+
cssClasses: o = null,
|
7
|
+
containerCssClasses: i = null,
|
8
|
+
style: d = null,
|
9
|
+
containerStyle: c = null,
|
10
|
+
options: u = [],
|
11
|
+
showOptions: r = 1,
|
12
|
+
isMultiple: s = !1,
|
13
|
+
color: p = null,
|
14
|
+
size: m = null,
|
15
|
+
isRounded: f = null,
|
16
|
+
isHovered: h = null,
|
17
|
+
isFocused: v = null,
|
18
|
+
onClick: C = null
|
19
|
+
}) => {
|
20
|
+
const t = k([
|
21
|
+
"select",
|
22
|
+
p,
|
23
|
+
m,
|
24
|
+
s ? "is-multiple" : null,
|
25
|
+
f ? "is-rounded" : null,
|
26
|
+
h ? "is-hovered" : null,
|
27
|
+
v ? "is-focused" : null,
|
28
|
+
i
|
29
|
+
]), l = n ?? x({
|
30
|
+
tag: "select",
|
31
|
+
parsedClasses: t
|
32
|
+
}), S = a ?? `${l}-container`;
|
33
|
+
return /* @__PURE__ */ e(
|
34
|
+
"section",
|
35
|
+
{
|
36
|
+
"data-testid": S,
|
37
|
+
className: t,
|
38
|
+
style: c ?? void 0,
|
39
|
+
children: /* @__PURE__ */ e(
|
40
|
+
"select",
|
41
|
+
{
|
42
|
+
"data-testid": l,
|
43
|
+
className: o ?? void 0,
|
44
|
+
style: d ?? void 0,
|
45
|
+
multiple: s,
|
46
|
+
size: r,
|
47
|
+
children: u.map(({ id: I, name: T, selected: $ }, g) => /* @__PURE__ */ e(
|
48
|
+
"option",
|
49
|
+
{
|
50
|
+
"data-testid": `${l}-option-${g}`,
|
51
|
+
defaultChecked: $ ?? !1,
|
52
|
+
onClick: C ?? void 0,
|
53
|
+
children: T
|
54
|
+
},
|
55
|
+
I.toString()
|
56
|
+
))
|
57
|
+
}
|
58
|
+
)
|
59
|
+
}
|
60
|
+
);
|
61
|
+
};
|
62
|
+
export {
|
63
|
+
j as default
|
64
|
+
};
|