reactive-bulma 4.3.28 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/assets/reactive-bulma.css +1 -1
- package/dist/components/atoms/BreadcrumbItem/index.js +58 -34
- package/dist/components/atoms/BreadcrumbItem/index.stories.d.ts +1 -0
- package/dist/components/atoms/Button/index.js +76 -38
- package/dist/components/atoms/Button/index.stories.d.ts +5 -0
- package/dist/components/atoms/Checkbox/index.js +47 -40
- package/dist/components/atoms/Column/index.js +22 -21
- package/dist/components/atoms/Delete/index.js +22 -17
- package/dist/components/atoms/GridCell/index.d.ts +4 -0
- package/dist/components/atoms/GridCell/index.js +40 -0
- package/dist/components/atoms/GridCell/index.stories.d.ts +5 -0
- package/dist/components/atoms/GridCell/index.test.d.ts +0 -0
- package/dist/components/atoms/Icon/index.js +54 -57
- package/dist/components/atoms/Image/index.js +28 -27
- package/dist/components/atoms/Image/index.stories.d.ts +1 -0
- package/dist/components/atoms/NavBarItem/index.js +7 -7
- package/dist/components/atoms/ProgressBar/index.js +25 -24
- package/dist/components/atoms/RadioButton/index.js +53 -73
- package/dist/components/atoms/Select/index.js +72 -54
- package/dist/components/atoms/TabItem/index.js +34 -30
- package/dist/components/atoms/TableCell/index.js +20 -15
- package/dist/components/atoms/TableCell/index.stories.d.ts +1 -0
- package/dist/components/atoms/TableHeadCell/index.js +22 -14
- package/dist/components/atoms/TableHeadCell/index.stories.d.ts +1 -0
- package/dist/components/atoms/Tag/index.js +36 -69
- package/dist/components/atoms/Tag/index.stories.d.ts +0 -3
- package/dist/components/atoms/TagWithAddon/index.d.ts +4 -0
- package/dist/components/atoms/TagWithAddon/index.js +91 -0
- package/dist/components/atoms/TagWithAddon/index.stories.d.ts +11 -0
- package/dist/components/atoms/TagWithAddon/index.test.d.ts +0 -0
- package/dist/components/atoms/Tile/index.js +31 -29
- package/dist/components/atoms/Title/index.js +28 -16
- package/dist/components/atoms/index.d.ts +2 -0
- package/dist/components/atoms/index.js +36 -32
- package/dist/components/molecules/Breadcrumbs/index.js +48 -49
- package/dist/components/molecules/CheckboxGroup/index.d.ts +4 -0
- package/dist/components/molecules/CheckboxGroup/index.js +34 -0
- package/dist/components/molecules/CheckboxGroup/index.stories.d.ts +5 -0
- package/dist/components/molecules/CheckboxGroup/index.test.d.ts +0 -0
- package/dist/components/molecules/ColumnGroup/index.js +41 -37
- package/dist/components/molecules/Dropdown/index.js +58 -49
- package/dist/components/molecules/Dropdown/index.stories.d.ts +3 -0
- package/dist/components/molecules/FormFieldInput/index.js +68 -85
- package/dist/components/molecules/FormFieldInput/index.stories.d.ts +1 -3
- package/dist/components/molecules/Grid/index.d.ts +4 -0
- package/dist/components/molecules/Grid/index.js +86 -0
- package/dist/components/molecules/Grid/index.stories.d.ts +12 -0
- package/dist/components/molecules/Grid/index.test.d.ts +0 -0
- package/dist/components/molecules/InputControl/index.js +92 -47
- package/dist/components/molecules/InputControl/index.stories.d.ts +2 -0
- package/dist/components/molecules/Menu/index.js +32 -29
- package/dist/components/molecules/MenuList/index.js +33 -30
- package/dist/components/molecules/Message/index.js +32 -26
- package/dist/components/molecules/NavBarBrand/index.js +1 -1
- package/dist/components/molecules/NavBarDropdown/index.js +55 -57
- package/dist/components/molecules/NavBarDropdown/index.stories.d.ts +2 -0
- package/dist/components/molecules/Notification/index.js +26 -25
- package/dist/components/molecules/Pagination/index.js +91 -81
- package/dist/components/molecules/Pagination/index.stories.d.ts +2 -0
- package/dist/components/molecules/Section/index.js +18 -13
- package/dist/components/molecules/TableRow/index.js +41 -32
- package/dist/components/molecules/TableRow/index.stories.d.ts +1 -0
- package/dist/components/molecules/Tabs/index.js +36 -32
- package/dist/components/molecules/TagList/index.d.ts +4 -0
- package/dist/components/molecules/TagList/index.js +31 -0
- package/dist/components/molecules/TagList/index.stories.d.ts +5 -0
- package/dist/components/molecules/TagList/index.test.d.ts +0 -0
- package/dist/components/molecules/TileBox/index.js +1 -1
- package/dist/components/molecules/index.d.ts +3 -0
- package/dist/components/molecules/index.js +26 -20
- package/dist/components/organisms/Card/index.js +84 -72
- package/dist/components/organisms/FormField/index.js +54 -57
- package/dist/components/organisms/FormField/index.stories.d.ts +2 -0
- package/dist/components/organisms/Hero/index.js +26 -20
- package/dist/components/organisms/Level/index.js +43 -30
- package/dist/components/organisms/NavBar/index.js +65 -57
- package/dist/components/organisms/Panel/index.js +33 -27
- package/dist/components/organisms/Table/index.js +2 -2
- package/dist/components/organisms/Table/index.stories.d.ts +1 -0
- package/dist/components/organisms/TileGroup/index.js +31 -36
- package/dist/constants/classes.d.ts +34 -0
- package/dist/constants/classes.js +37 -0
- package/dist/constants/regExp.d.ts +18 -0
- package/dist/constants/regExp.js +23 -0
- package/dist/functions/parsers.js +5 -4
- package/dist/index.js +104 -94
- package/dist/interfaces/atomProps.d.ts +62 -31
- package/dist/interfaces/commonProps.d.ts +5 -0
- package/dist/interfaces/moleculeProps.d.ts +67 -22
- package/dist/interfaces/moleculeProps.js +1 -1
- package/dist/interfaces/organismProps.d.ts +35 -5
- package/dist/types/domTypes.d.ts +4 -3
- package/dist/types/domTypes.js +2 -2
- package/dist/types/styleTypes.d.ts +28 -18
- package/package.json +18 -17
|
@@ -1,44 +1,68 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { jsxs as g, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as e } from "react";
|
|
3
|
+
import { parseClasses as i, parseTestId as p } from "../../../functions/parsers.js";
|
|
4
|
+
import j from "../Icon/index.js";
|
|
5
|
+
const y = ({
|
|
4
6
|
testId: l = null,
|
|
5
|
-
containerTestId:
|
|
6
|
-
cssClasses:
|
|
7
|
-
containerCssClasses:
|
|
8
|
-
style:
|
|
9
|
-
containerStyle:
|
|
10
|
-
text:
|
|
11
|
-
|
|
7
|
+
containerTestId: t = null,
|
|
8
|
+
cssClasses: d = null,
|
|
9
|
+
containerCssClasses: r = null,
|
|
10
|
+
style: u = null,
|
|
11
|
+
containerStyle: I = null,
|
|
12
|
+
text: n,
|
|
13
|
+
icon: m = null,
|
|
14
|
+
isActiveItem: o = null,
|
|
12
15
|
onClick: b = null
|
|
13
16
|
}) => {
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
const f = e(
|
|
18
|
+
() => i([
|
|
19
|
+
"breadcrumb-item-container",
|
|
20
|
+
o ? "is-active" : null,
|
|
21
|
+
r
|
|
22
|
+
]),
|
|
23
|
+
[o, r]
|
|
24
|
+
), a = e(
|
|
25
|
+
() => i(["breadcrumbItem", d]),
|
|
26
|
+
[d]
|
|
27
|
+
), h = e(
|
|
28
|
+
() => t ?? p({
|
|
29
|
+
tag: "breadcrumb-item-container",
|
|
30
|
+
parsedClasses: r ?? ""
|
|
31
|
+
}),
|
|
32
|
+
[t, r]
|
|
33
|
+
), s = e(
|
|
34
|
+
() => l ?? p({
|
|
35
|
+
tag: "breadcrumbItem",
|
|
36
|
+
parsedClasses: a
|
|
37
|
+
}),
|
|
38
|
+
[l, a]
|
|
39
|
+
), v = e(
|
|
40
|
+
() => /* @__PURE__ */ g(
|
|
41
|
+
"a",
|
|
42
|
+
{
|
|
43
|
+
"data-testid": s,
|
|
44
|
+
className: a,
|
|
45
|
+
style: u ?? void 0,
|
|
46
|
+
"aria-hidden": "true",
|
|
47
|
+
onClick: b ?? void 0,
|
|
48
|
+
children: [
|
|
49
|
+
m ? /* @__PURE__ */ c(j, { ...m }) : null,
|
|
50
|
+
n
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
[s, a, u, b, m, n]
|
|
55
|
+
);
|
|
56
|
+
return /* @__PURE__ */ c(
|
|
23
57
|
"li",
|
|
24
58
|
{
|
|
25
|
-
"data-testid":
|
|
26
|
-
className:
|
|
27
|
-
style:
|
|
28
|
-
children:
|
|
29
|
-
"a",
|
|
30
|
-
{
|
|
31
|
-
"data-testid": p,
|
|
32
|
-
className: t,
|
|
33
|
-
style: m ?? void 0,
|
|
34
|
-
"aria-hidden": "true",
|
|
35
|
-
onClick: b ?? void 0,
|
|
36
|
-
children: u
|
|
37
|
-
}
|
|
38
|
-
)
|
|
59
|
+
"data-testid": h,
|
|
60
|
+
className: f,
|
|
61
|
+
style: I ?? void 0,
|
|
62
|
+
children: v
|
|
39
63
|
}
|
|
40
64
|
);
|
|
41
65
|
};
|
|
42
66
|
export {
|
|
43
|
-
|
|
67
|
+
y as default
|
|
44
68
|
};
|
|
@@ -4,3 +4,4 @@ declare const _default: Meta<typeof BreadcrumbItem>;
|
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const BasicExample: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').BreadcrumbItemProps>;
|
|
6
6
|
export declare const IsActiveItem: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').BreadcrumbItemProps>;
|
|
7
|
+
export declare const WithIcon: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').BreadcrumbItemProps>;
|
|
@@ -1,46 +1,84 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
1
|
+
import { jsx as $ } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as L } from "react";
|
|
3
|
+
import { COMMON_CLASSES as l } from "../../../constants/classes.js";
|
|
4
|
+
import { parseClasses as U, parseTestId as c } from "../../../functions/parsers.js";
|
|
3
5
|
const j = ({
|
|
4
6
|
testId: s = null,
|
|
5
|
-
cssClasses:
|
|
6
|
-
style:
|
|
7
|
-
type:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
7
|
+
cssClasses: e = null,
|
|
8
|
+
style: f = null,
|
|
9
|
+
type: O = "button",
|
|
10
|
+
isAnAnchor: v = !1,
|
|
11
|
+
anchorHref: A = null,
|
|
12
|
+
text: o = null,
|
|
13
|
+
isDisabled: r = !1,
|
|
14
|
+
color: n = null,
|
|
15
|
+
colorMode: u = null,
|
|
16
|
+
isInvertedColor: m = !1,
|
|
17
|
+
isOutlined: E = !1,
|
|
18
|
+
isRounded: I = !1,
|
|
19
|
+
isLoading: d = !1,
|
|
20
|
+
isStatic: N = !1,
|
|
21
|
+
isSelected: S = !1,
|
|
22
|
+
isFullWidth: T = !1,
|
|
23
|
+
isResponsive: b = !1,
|
|
24
|
+
size: t = null,
|
|
25
|
+
onClick: p = null
|
|
20
26
|
}) => {
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
const C = "button", a = L(
|
|
28
|
+
() => U([
|
|
29
|
+
C,
|
|
30
|
+
n ? `${l.IS}${n}` : null,
|
|
31
|
+
u ? `${l.IS}${u}` : null,
|
|
32
|
+
m ? l.INVERTED : null,
|
|
33
|
+
E ? l.OUTLINED : null,
|
|
34
|
+
I ? l.ROUNDED : null,
|
|
35
|
+
d ? l.LOADING : null,
|
|
36
|
+
N ? l.STATIC : null,
|
|
37
|
+
S ? l.SELECTED : null,
|
|
38
|
+
T ? l.FULL_WIDTH : null,
|
|
39
|
+
b ? l.RESPONSIVE : null,
|
|
40
|
+
t ? `${l.IS}${t}` : null,
|
|
41
|
+
e
|
|
42
|
+
]),
|
|
43
|
+
[
|
|
44
|
+
n,
|
|
45
|
+
u,
|
|
46
|
+
m,
|
|
47
|
+
E,
|
|
48
|
+
I,
|
|
49
|
+
d,
|
|
50
|
+
N,
|
|
51
|
+
S,
|
|
52
|
+
T,
|
|
53
|
+
b,
|
|
54
|
+
t,
|
|
55
|
+
e
|
|
56
|
+
]
|
|
57
|
+
), D = L(
|
|
58
|
+
() => s ?? c({ tag: C, parsedClasses: a }),
|
|
59
|
+
[s, a]
|
|
60
|
+
);
|
|
61
|
+
return v ? /* @__PURE__ */ $(
|
|
62
|
+
"a",
|
|
63
|
+
{
|
|
64
|
+
"data-testid": D,
|
|
65
|
+
className: a,
|
|
66
|
+
style: f ?? void 0,
|
|
67
|
+
"aria-disabled": r,
|
|
68
|
+
href: A ?? void 0,
|
|
69
|
+
onClick: p ?? void 0,
|
|
70
|
+
children: o
|
|
71
|
+
}
|
|
72
|
+
) : /* @__PURE__ */ $(
|
|
35
73
|
"button",
|
|
36
74
|
{
|
|
37
|
-
"data-testid":
|
|
38
|
-
type:
|
|
39
|
-
className:
|
|
40
|
-
style:
|
|
41
|
-
disabled:
|
|
42
|
-
onClick:
|
|
43
|
-
children:
|
|
75
|
+
"data-testid": D,
|
|
76
|
+
type: O,
|
|
77
|
+
className: a,
|
|
78
|
+
style: f ?? void 0,
|
|
79
|
+
disabled: r,
|
|
80
|
+
onClick: p ?? void 0,
|
|
81
|
+
children: o
|
|
44
82
|
}
|
|
45
83
|
);
|
|
46
84
|
};
|
|
@@ -4,11 +4,16 @@ declare const _default: Meta<typeof Button>;
|
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const NoText: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ButtonProps>;
|
|
6
6
|
export declare const WithText: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ButtonProps>;
|
|
7
|
+
export declare const AsAnAnchor: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ButtonProps>;
|
|
7
8
|
export declare const Colored: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ButtonProps>;
|
|
9
|
+
export declare const LightColor: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ButtonProps>;
|
|
10
|
+
export declare const DarkColor: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ButtonProps>;
|
|
8
11
|
export declare const InvertedColor: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ButtonProps>;
|
|
9
12
|
export declare const OutlinedColor: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ButtonProps>;
|
|
10
13
|
export declare const Rounded: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ButtonProps>;
|
|
11
14
|
export declare const LoadingState: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ButtonProps>;
|
|
12
15
|
export declare const LargeSize: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ButtonProps>;
|
|
16
|
+
export declare const FullWidth: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ButtonProps>;
|
|
17
|
+
export declare const Responsive: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ButtonProps>;
|
|
13
18
|
export declare const Disabled: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ButtonProps>;
|
|
14
19
|
export declare const Static: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ButtonProps>;
|
|
@@ -1,60 +1,67 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { jsxs as C, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as t } from "react";
|
|
3
|
+
import { parseClasses as g, parseTestId as n } from "../../../functions/parsers.js";
|
|
4
|
+
const a = (s) => s ? "-with-component" : "", I = ({
|
|
5
|
+
testId: s = null,
|
|
5
6
|
containerTestId: o = null,
|
|
6
|
-
cssClasses:
|
|
7
|
-
containerCssClasses:
|
|
8
|
-
style:
|
|
9
|
-
containerStyle:
|
|
10
|
-
label:
|
|
11
|
-
isChecked:
|
|
7
|
+
cssClasses: d = null,
|
|
8
|
+
containerCssClasses: c = null,
|
|
9
|
+
style: i = null,
|
|
10
|
+
containerStyle: r = null,
|
|
11
|
+
label: e = null,
|
|
12
|
+
isChecked: p,
|
|
12
13
|
name: h,
|
|
13
|
-
isDisabled:
|
|
14
|
-
onClick:
|
|
15
|
-
onChange:
|
|
16
|
-
onBlur:
|
|
14
|
+
isDisabled: x = !1,
|
|
15
|
+
onClick: k,
|
|
16
|
+
onChange: u,
|
|
17
|
+
onBlur: m
|
|
17
18
|
}) => {
|
|
18
|
-
const
|
|
19
|
-
"checkbox",
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
19
|
+
const b = t(
|
|
20
|
+
() => g(["checkbox", c]),
|
|
21
|
+
[c]
|
|
22
|
+
), f = t(
|
|
23
|
+
() => o ?? n({
|
|
24
|
+
tag: "checkbox-container",
|
|
25
|
+
parsedClasses: a(e)
|
|
26
|
+
}),
|
|
27
|
+
[o, e]
|
|
28
|
+
), y = t(
|
|
29
|
+
() => s ?? n({
|
|
30
|
+
tag: "checkbox",
|
|
31
|
+
parsedClasses: a(e)
|
|
32
|
+
}),
|
|
33
|
+
[s, e]
|
|
34
|
+
);
|
|
35
|
+
return /* @__PURE__ */ C(
|
|
29
36
|
"label",
|
|
30
37
|
{
|
|
31
|
-
"data-testid":
|
|
32
|
-
className:
|
|
33
|
-
style:
|
|
38
|
+
"data-testid": f,
|
|
39
|
+
className: b,
|
|
40
|
+
style: r ?? void 0,
|
|
34
41
|
children: [
|
|
35
|
-
/* @__PURE__ */
|
|
42
|
+
/* @__PURE__ */ l(
|
|
36
43
|
"input",
|
|
37
44
|
{
|
|
38
|
-
"data-testid":
|
|
45
|
+
"data-testid": y,
|
|
39
46
|
type: "checkbox",
|
|
40
47
|
name: h,
|
|
41
|
-
className:
|
|
42
|
-
style:
|
|
43
|
-
defaultChecked:
|
|
44
|
-
disabled:
|
|
45
|
-
onClick:
|
|
46
|
-
onChange:
|
|
47
|
-
onBlur:
|
|
48
|
+
className: d ?? void 0,
|
|
49
|
+
style: i ?? void 0,
|
|
50
|
+
defaultChecked: p,
|
|
51
|
+
disabled: x,
|
|
52
|
+
onClick: k,
|
|
53
|
+
onChange: u,
|
|
54
|
+
onBlur: m
|
|
48
55
|
}
|
|
49
56
|
),
|
|
50
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ l("p", { style: {
|
|
51
58
|
display: "inline-block",
|
|
52
59
|
marginLeft: "5px"
|
|
53
|
-
}, children:
|
|
60
|
+
}, children: e })
|
|
54
61
|
]
|
|
55
62
|
}
|
|
56
63
|
);
|
|
57
64
|
};
|
|
58
65
|
export {
|
|
59
|
-
|
|
66
|
+
I as default
|
|
60
67
|
};
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { COMMON_CLASSES as l } from "../../../constants/classes.js";
|
|
3
|
+
import { parseClasses as p, parseTestId as C } from "../../../functions/parsers.js";
|
|
4
|
+
const O = ({
|
|
5
|
+
testId: a = null,
|
|
6
|
+
cssClasses: u = null,
|
|
6
7
|
style: e = null,
|
|
7
|
-
children:
|
|
8
|
-
size:
|
|
9
|
-
offset:
|
|
10
|
-
isNarrow:
|
|
8
|
+
children: m = null,
|
|
9
|
+
size: s = null,
|
|
10
|
+
offset: n = null,
|
|
11
|
+
isNarrow: r = !1
|
|
11
12
|
}) => {
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
]),
|
|
19
|
-
return /* @__PURE__ */
|
|
13
|
+
const o = "column", t = p([
|
|
14
|
+
o,
|
|
15
|
+
s ? `${l.IS}${s}` : null,
|
|
16
|
+
n ? `${l.OFFSET}${n}` : null,
|
|
17
|
+
r ? `${l.NARROW}` : null,
|
|
18
|
+
u
|
|
19
|
+
]), c = a ?? C({ tag: o, parsedClasses: t });
|
|
20
|
+
return /* @__PURE__ */ d(
|
|
20
21
|
"section",
|
|
21
22
|
{
|
|
22
|
-
"data-testid":
|
|
23
|
-
className:
|
|
23
|
+
"data-testid": c,
|
|
24
|
+
className: t,
|
|
24
25
|
style: e ?? void 0,
|
|
25
|
-
children:
|
|
26
|
+
children: m
|
|
26
27
|
}
|
|
27
28
|
);
|
|
28
29
|
};
|
|
29
30
|
export {
|
|
30
|
-
|
|
31
|
+
O as default
|
|
31
32
|
};
|
|
@@ -1,26 +1,31 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { COMMON_CLASSES as u } from "../../../constants/classes.js";
|
|
3
|
+
import { parseClasses as m, parseTestId as p } from "../../../functions/parsers.js";
|
|
4
|
+
const f = ({
|
|
5
|
+
testId: t = null,
|
|
6
|
+
cssClasses: a = null,
|
|
7
|
+
style: o = null,
|
|
8
|
+
size: e = null,
|
|
9
|
+
onClick: n = null
|
|
9
10
|
}) => {
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
const s = "delete", l = m([
|
|
12
|
+
s,
|
|
13
|
+
e ? `${u.IS}${e}` : null,
|
|
14
|
+
a
|
|
15
|
+
]), d = t ?? p({
|
|
16
|
+
tag: s,
|
|
17
|
+
parsedClasses: l
|
|
13
18
|
});
|
|
14
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ r(
|
|
15
20
|
"button",
|
|
16
21
|
{
|
|
17
|
-
"data-testid":
|
|
18
|
-
className:
|
|
19
|
-
style:
|
|
20
|
-
onClick:
|
|
22
|
+
"data-testid": d,
|
|
23
|
+
className: l,
|
|
24
|
+
style: o ?? void 0,
|
|
25
|
+
onClick: n ?? void 0
|
|
21
26
|
}
|
|
22
27
|
);
|
|
23
28
|
};
|
|
24
29
|
export {
|
|
25
|
-
|
|
30
|
+
f as default
|
|
26
31
|
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { COMMON_CLASSES as m } from "../../../constants/classes.js";
|
|
3
|
+
import { parseClasses as f, parseTestId as p } from "../../../functions/parsers.js";
|
|
4
|
+
const M = ({
|
|
5
|
+
testId: a = null,
|
|
6
|
+
cssClasses: d = null,
|
|
7
|
+
style: o = null,
|
|
8
|
+
children: C = null,
|
|
9
|
+
position: l = null,
|
|
10
|
+
colStart: s = null,
|
|
11
|
+
rowStart: e = null,
|
|
12
|
+
colStartFromEnd: n = null,
|
|
13
|
+
rowStartFromEnd: u = null,
|
|
14
|
+
colSpan: i = null,
|
|
15
|
+
rowSpan: r = null
|
|
16
|
+
}) => {
|
|
17
|
+
const t = f([
|
|
18
|
+
"cell",
|
|
19
|
+
l ? `${m.IS}${l}` : null,
|
|
20
|
+
s ? `is-col-start-${s}` : null,
|
|
21
|
+
e ? `is-row-start-${e}` : null,
|
|
22
|
+
n ? `is-col-from-end-${n}` : null,
|
|
23
|
+
u ? `is-row-from-end-${u}` : null,
|
|
24
|
+
i ? `is-col-span-${i}` : null,
|
|
25
|
+
r ? `is-row-span-${r}` : null,
|
|
26
|
+
d
|
|
27
|
+
]), $ = a ?? p({ tag: "cell", parsedClasses: t });
|
|
28
|
+
return /* @__PURE__ */ c(
|
|
29
|
+
"section",
|
|
30
|
+
{
|
|
31
|
+
"data-testid": $,
|
|
32
|
+
className: t,
|
|
33
|
+
style: o ?? void 0,
|
|
34
|
+
children: C
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
M as default
|
|
40
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { default as GridCell } from '.';
|
|
3
|
+
declare const _default: Meta<typeof GridCell>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const BasicExample: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').GridCellProps>;
|
|
File without changes
|