reactive-bulma 4.3.27 → 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.
Files changed (96) hide show
  1. package/README.md +1 -0
  2. package/dist/assets/reactive-bulma.css +1 -1
  3. package/dist/components/atoms/BreadcrumbItem/index.js +58 -34
  4. package/dist/components/atoms/BreadcrumbItem/index.stories.d.ts +1 -0
  5. package/dist/components/atoms/Button/index.js +76 -38
  6. package/dist/components/atoms/Button/index.stories.d.ts +5 -0
  7. package/dist/components/atoms/Checkbox/index.js +47 -40
  8. package/dist/components/atoms/Column/index.js +22 -21
  9. package/dist/components/atoms/Delete/index.js +22 -17
  10. package/dist/components/atoms/GridCell/index.d.ts +4 -0
  11. package/dist/components/atoms/GridCell/index.js +40 -0
  12. package/dist/components/atoms/GridCell/index.stories.d.ts +5 -0
  13. package/dist/components/atoms/GridCell/index.test.d.ts +0 -0
  14. package/dist/components/atoms/Icon/index.js +54 -57
  15. package/dist/components/atoms/Image/index.js +28 -27
  16. package/dist/components/atoms/Image/index.stories.d.ts +1 -0
  17. package/dist/components/atoms/NavBarItem/index.js +7 -7
  18. package/dist/components/atoms/ProgressBar/index.js +25 -24
  19. package/dist/components/atoms/RadioButton/index.js +53 -73
  20. package/dist/components/atoms/Select/index.js +72 -54
  21. package/dist/components/atoms/TabItem/index.js +34 -30
  22. package/dist/components/atoms/TableCell/index.js +20 -15
  23. package/dist/components/atoms/TableCell/index.stories.d.ts +1 -0
  24. package/dist/components/atoms/TableHeadCell/index.js +22 -14
  25. package/dist/components/atoms/TableHeadCell/index.stories.d.ts +1 -0
  26. package/dist/components/atoms/Tag/index.js +36 -69
  27. package/dist/components/atoms/Tag/index.stories.d.ts +0 -3
  28. package/dist/components/atoms/TagWithAddon/index.d.ts +4 -0
  29. package/dist/components/atoms/TagWithAddon/index.js +91 -0
  30. package/dist/components/atoms/TagWithAddon/index.stories.d.ts +11 -0
  31. package/dist/components/atoms/TagWithAddon/index.test.d.ts +0 -0
  32. package/dist/components/atoms/Tile/index.js +31 -29
  33. package/dist/components/atoms/Title/index.js +28 -16
  34. package/dist/components/atoms/index.d.ts +2 -0
  35. package/dist/components/atoms/index.js +36 -32
  36. package/dist/components/molecules/Breadcrumbs/index.js +48 -49
  37. package/dist/components/molecules/CheckboxGroup/index.d.ts +4 -0
  38. package/dist/components/molecules/CheckboxGroup/index.js +34 -0
  39. package/dist/components/molecules/CheckboxGroup/index.stories.d.ts +5 -0
  40. package/dist/components/molecules/CheckboxGroup/index.test.d.ts +0 -0
  41. package/dist/components/molecules/ColumnGroup/index.js +41 -37
  42. package/dist/components/molecules/Dropdown/index.js +58 -49
  43. package/dist/components/molecules/Dropdown/index.stories.d.ts +3 -0
  44. package/dist/components/molecules/FormFieldInput/index.js +68 -85
  45. package/dist/components/molecules/FormFieldInput/index.stories.d.ts +1 -3
  46. package/dist/components/molecules/Grid/index.d.ts +4 -0
  47. package/dist/components/molecules/Grid/index.js +86 -0
  48. package/dist/components/molecules/Grid/index.stories.d.ts +12 -0
  49. package/dist/components/molecules/Grid/index.test.d.ts +0 -0
  50. package/dist/components/molecules/InputControl/index.js +92 -47
  51. package/dist/components/molecules/InputControl/index.stories.d.ts +2 -0
  52. package/dist/components/molecules/Menu/index.js +32 -29
  53. package/dist/components/molecules/MenuList/index.js +33 -30
  54. package/dist/components/molecules/Message/index.js +32 -26
  55. package/dist/components/molecules/NavBarBrand/index.js +1 -1
  56. package/dist/components/molecules/NavBarDropdown/index.js +55 -57
  57. package/dist/components/molecules/NavBarDropdown/index.stories.d.ts +2 -0
  58. package/dist/components/molecules/Notification/index.js +26 -25
  59. package/dist/components/molecules/Pagination/index.js +91 -81
  60. package/dist/components/molecules/Pagination/index.stories.d.ts +2 -0
  61. package/dist/components/molecules/Section/index.js +18 -13
  62. package/dist/components/molecules/TableRow/index.js +41 -32
  63. package/dist/components/molecules/TableRow/index.stories.d.ts +1 -0
  64. package/dist/components/molecules/Tabs/index.js +36 -32
  65. package/dist/components/molecules/TagList/index.d.ts +4 -0
  66. package/dist/components/molecules/TagList/index.js +31 -0
  67. package/dist/components/molecules/TagList/index.stories.d.ts +5 -0
  68. package/dist/components/molecules/TagList/index.test.d.ts +0 -0
  69. package/dist/components/molecules/TileBox/index.js +1 -1
  70. package/dist/components/molecules/index.d.ts +3 -0
  71. package/dist/components/molecules/index.js +26 -20
  72. package/dist/components/organisms/Card/index.js +84 -72
  73. package/dist/components/organisms/FormField/index.js +54 -57
  74. package/dist/components/organisms/FormField/index.stories.d.ts +2 -0
  75. package/dist/components/organisms/Hero/index.js +26 -20
  76. package/dist/components/organisms/Level/index.js +43 -30
  77. package/dist/components/organisms/NavBar/index.js +65 -57
  78. package/dist/components/organisms/Panel/index.js +33 -27
  79. package/dist/components/organisms/Table/index.js +2 -2
  80. package/dist/components/organisms/Table/index.stories.d.ts +1 -0
  81. package/dist/components/organisms/TileGroup/index.js +31 -36
  82. package/dist/constants/classes.d.ts +34 -0
  83. package/dist/constants/classes.js +37 -0
  84. package/dist/constants/regExp.d.ts +18 -0
  85. package/dist/constants/regExp.js +23 -0
  86. package/dist/functions/parsers.js +5 -4
  87. package/dist/index.js +104 -94
  88. package/dist/interfaces/atomProps.d.ts +62 -31
  89. package/dist/interfaces/commonProps.d.ts +5 -0
  90. package/dist/interfaces/moleculeProps.d.ts +67 -22
  91. package/dist/interfaces/moleculeProps.js +1 -1
  92. package/dist/interfaces/organismProps.d.ts +35 -5
  93. package/dist/types/domTypes.d.ts +4 -3
  94. package/dist/types/domTypes.js +2 -2
  95. package/dist/types/styleTypes.d.ts +28 -18
  96. package/package.json +23 -22
@@ -1,44 +1,68 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { parseClasses as r, parseTestId as s } from "../../../functions/parsers.js";
3
- const f = ({
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: d = null,
6
- cssClasses: n = null,
7
- containerCssClasses: e = null,
8
- style: m = null,
9
- containerStyle: c = null,
10
- text: u,
11
- isActiveItem: i = null,
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 o = r([
15
- "breadcrumb-item-container",
16
- i ? "is-active" : null,
17
- e
18
- ]), t = r(["breadcrumbItem", n]), I = d ?? s({
19
- tag: "breadcrumb-item-container",
20
- parsedClasses: e ?? ""
21
- }), p = l ?? s({ tag: "breadcrumbItem", parsedClasses: t });
22
- return /* @__PURE__ */ a(
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": I,
26
- className: o,
27
- style: c ?? void 0,
28
- children: /* @__PURE__ */ a(
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
- f as default
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 v } from "react/jsx-runtime";
2
- import { parseClasses as h, parseTestId as x } from "../../../functions/parsers.js";
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: t = null,
6
- style: e = null,
7
- type: n = "button",
8
- text: a = null,
9
- isDisabled: u = !1,
10
- color: o = null,
11
- isLightColor: i = !1,
12
- isInvertedColor: d = !1,
13
- isOutlined: r = !1,
14
- isRounded: f = !1,
15
- isLoading: c = !1,
16
- isStatic: b = !1,
17
- isSelected: p = !1,
18
- size: m = null,
19
- onClick: C = null
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 l = h([
22
- "button",
23
- o,
24
- i ? "is-light" : null,
25
- d ? "is-inverted" : null,
26
- r ? "is-outlined" : null,
27
- f ? "is-rounded" : null,
28
- c ? "is-loading" : null,
29
- b ? "is-static" : null,
30
- p ? "is-selected" : null,
31
- m,
32
- t
33
- ]), g = s ?? x({ tag: "button", parsedClasses: l });
34
- return /* @__PURE__ */ v(
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": g,
38
- type: n,
39
- className: l,
40
- style: e ?? void 0,
41
- disabled: u ?? !1,
42
- onClick: C ?? void 0,
43
- children: a
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 y, jsx as t } from "react/jsx-runtime";
2
- import { parseClasses as f, parseTestId as c } from "../../../functions/parsers.js";
3
- const l = (e) => e ? "-with-component" : "", v = ({
4
- testId: e = null,
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: a = null,
7
- containerCssClasses: n = null,
8
- style: d = null,
9
- containerStyle: i = null,
10
- label: s = null,
11
- isChecked: r,
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: p = !1,
14
- onClick: x,
15
- onChange: k,
16
- onBlur: b
14
+ isDisabled: x = !1,
15
+ onClick: k,
16
+ onChange: u,
17
+ onBlur: m
17
18
  }) => {
18
- const u = f([
19
- "checkbox",
20
- n
21
- ]), C = o ?? c({
22
- tag: "checkbox-container",
23
- parsedClasses: l(s)
24
- }), m = e ?? c({
25
- tag: "checkbox",
26
- parsedClasses: l(s)
27
- });
28
- return /* @__PURE__ */ y(
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": C,
32
- className: u,
33
- style: i ?? void 0,
38
+ "data-testid": f,
39
+ className: b,
40
+ style: r ?? void 0,
34
41
  children: [
35
- /* @__PURE__ */ t(
42
+ /* @__PURE__ */ l(
36
43
  "input",
37
44
  {
38
- "data-testid": m,
45
+ "data-testid": y,
39
46
  type: "checkbox",
40
47
  name: h,
41
- className: a ?? void 0,
42
- style: d ?? void 0,
43
- defaultChecked: r,
44
- disabled: p,
45
- onClick: x,
46
- onChange: k,
47
- onBlur: b
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__ */ t("p", { style: {
57
+ /* @__PURE__ */ l("p", { style: {
51
58
  display: "inline-block",
52
59
  marginLeft: "5px"
53
- }, children: s })
60
+ }, children: e })
54
61
  ]
55
62
  }
56
63
  );
57
64
  };
58
65
  export {
59
- v as default
66
+ I as default
60
67
  };
@@ -1,31 +1,32 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { parseClasses as c, parseTestId as d } from "../../../functions/parsers.js";
3
- const f = ({
4
- testId: s = null,
5
- cssClasses: n = null,
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: o = null,
8
- size: t = null,
9
- offset: a = null,
10
- isNarrow: u = !1
8
+ children: m = null,
9
+ size: s = null,
10
+ offset: n = null,
11
+ isNarrow: r = !1
11
12
  }) => {
12
- const l = c([
13
- "column",
14
- t,
15
- a,
16
- u ? "is-narrow" : null,
17
- n
18
- ]), r = s ?? d({ tag: "column", parsedClasses: l });
19
- return /* @__PURE__ */ m(
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": r,
23
- className: l,
23
+ "data-testid": c,
24
+ className: t,
24
25
  style: e ?? void 0,
25
- children: o
26
+ children: m
26
27
  }
27
28
  );
28
29
  };
29
30
  export {
30
- f as default
31
+ O as default
31
32
  };
@@ -1,26 +1,31 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { parseClasses as r, parseTestId as u } from "../../../functions/parsers.js";
3
- const c = ({
4
- testId: s = null,
5
- cssClasses: l = null,
6
- style: t = null,
7
- size: a = null,
8
- onClick: d = null
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 e = r(["delete", a, l]), o = s ?? u({
11
- tag: "delete",
12
- parsedClasses: e
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__ */ n(
19
+ return /* @__PURE__ */ r(
15
20
  "button",
16
21
  {
17
- "data-testid": o,
18
- className: e,
19
- style: t ?? void 0,
20
- onClick: d ?? void 0
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
- c as default
30
+ f as default
26
31
  };
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { GridCellProps } from '../../../interfaces/atomProps';
3
+ declare const GridCell: React.FC<GridCellProps>;
4
+ export default GridCell;
@@ -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