reactive-bulma 4.1.0 → 4.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (259) hide show
  1. package/dist/assets/style.css +1 -0
  2. package/dist/components/atoms/Block/index.d.ts +4 -0
  3. package/dist/components/atoms/Block/index.js +18 -0
  4. package/dist/components/atoms/Block/index.stories.d.ts +8 -0
  5. package/dist/components/atoms/Block/index.test.d.ts +0 -0
  6. package/dist/components/atoms/Box/index.d.ts +4 -0
  7. package/dist/components/atoms/Box/index.js +18 -0
  8. package/dist/components/atoms/Box/index.stories.d.ts +8 -0
  9. package/dist/components/atoms/Box/index.test.d.ts +0 -0
  10. package/dist/components/atoms/BreadcrumbItem/index.d.ts +4 -0
  11. package/dist/components/atoms/BreadcrumbItem/index.js +44 -0
  12. package/dist/components/atoms/BreadcrumbItem/index.stories.d.ts +6 -0
  13. package/dist/components/atoms/BreadcrumbItem/index.test.d.ts +0 -0
  14. package/dist/components/atoms/Button/index.d.ts +4 -0
  15. package/dist/components/atoms/Button/index.js +49 -0
  16. package/dist/components/atoms/Button/index.stories.d.ts +14 -0
  17. package/dist/components/atoms/Button/index.test.d.ts +0 -0
  18. package/dist/components/atoms/Checkbox/index.d.ts +4 -0
  19. package/dist/components/atoms/Checkbox/index.js +49 -0
  20. package/dist/components/atoms/Checkbox/index.stories.d.ts +9 -0
  21. package/dist/components/atoms/Checkbox/index.test.d.ts +0 -0
  22. package/dist/components/atoms/Column/index.d.ts +4 -0
  23. package/dist/components/atoms/Column/index.js +31 -0
  24. package/dist/components/atoms/Column/index.stories.d.ts +8 -0
  25. package/dist/components/atoms/Column/index.test.d.ts +0 -0
  26. package/dist/components/atoms/Delete/index.d.ts +4 -0
  27. package/dist/components/atoms/Delete/index.js +26 -0
  28. package/dist/components/atoms/Delete/index.stories.d.ts +6 -0
  29. package/dist/components/atoms/Delete/index.test.d.ts +0 -0
  30. package/dist/components/atoms/DropdownItem/index.d.ts +4 -0
  31. package/dist/components/atoms/DropdownItem/index.js +37 -0
  32. package/dist/components/atoms/DropdownItem/index.stories.d.ts +5 -0
  33. package/dist/components/atoms/DropdownItem/index.test.d.ts +0 -0
  34. package/dist/components/atoms/DropdownTrigger/index.d.ts +4 -0
  35. package/dist/components/atoms/DropdownTrigger/index.js +53 -0
  36. package/dist/components/atoms/DropdownTrigger/index.stories.d.ts +5 -0
  37. package/dist/components/atoms/DropdownTrigger/index.test.d.ts +0 -0
  38. package/dist/components/atoms/File/index.d.ts +4 -0
  39. package/dist/components/atoms/File/index.js +73 -0
  40. package/dist/components/atoms/File/index.stories.d.ts +13 -0
  41. package/dist/components/atoms/File/index.test.d.ts +0 -0
  42. package/dist/components/atoms/Icon/index.d.ts +4 -0
  43. package/dist/components/atoms/Icon/index.js +88 -0
  44. package/dist/components/atoms/Icon/index.stories.d.ts +12 -0
  45. package/dist/components/atoms/Icon/index.test.d.ts +0 -0
  46. package/dist/components/atoms/Image/index.d.ts +4 -0
  47. package/dist/components/atoms/Image/index.js +44 -0
  48. package/dist/components/atoms/Image/index.stories.d.ts +8 -0
  49. package/dist/components/atoms/Image/index.test.d.ts +0 -0
  50. package/dist/components/atoms/Input/index.d.ts +4 -0
  51. package/dist/components/atoms/Input/index.js +50 -0
  52. package/dist/components/atoms/Input/index.stories.d.ts +15 -0
  53. package/dist/components/atoms/Input/index.test.d.ts +0 -0
  54. package/dist/components/atoms/LevelHeader/index.d.ts +4 -0
  55. package/dist/components/atoms/LevelHeader/index.js +26 -0
  56. package/dist/components/atoms/LevelHeader/index.stories.d.ts +6 -0
  57. package/dist/components/atoms/LevelHeader/index.test.d.ts +0 -0
  58. package/dist/components/atoms/MenuItem/index.d.ts +4 -0
  59. package/dist/components/atoms/MenuItem/index.js +30 -0
  60. package/dist/components/atoms/MenuItem/index.stories.d.ts +6 -0
  61. package/dist/components/atoms/MenuItem/index.test.d.ts +0 -0
  62. package/dist/components/atoms/NavBarItem/index.d.ts +4 -0
  63. package/dist/components/atoms/NavBarItem/index.js +30 -0
  64. package/dist/components/atoms/NavBarItem/index.stories.d.ts +5 -0
  65. package/dist/components/atoms/NavBarItem/index.test.d.ts +0 -0
  66. package/dist/components/atoms/PaginationItem/index.d.ts +4 -0
  67. package/dist/components/atoms/PaginationItem/index.js +37 -0
  68. package/dist/components/atoms/PaginationItem/index.stories.d.ts +8 -0
  69. package/dist/components/atoms/PaginationItem/index.test.d.ts +0 -0
  70. package/dist/components/atoms/ProgressBar/index.d.ts +4 -0
  71. package/dist/components/atoms/ProgressBar/index.js +36 -0
  72. package/dist/components/atoms/ProgressBar/index.stories.d.ts +10 -0
  73. package/dist/components/atoms/ProgressBar/index.test.d.ts +0 -0
  74. package/dist/components/atoms/RadioButton/index.d.ts +4 -0
  75. package/dist/components/atoms/RadioButton/index.js +71 -0
  76. package/dist/components/atoms/RadioButton/index.stories.d.ts +8 -0
  77. package/dist/components/atoms/RadioButton/index.test.d.ts +0 -0
  78. package/dist/components/atoms/Select/index.d.ts +4 -0
  79. package/dist/components/atoms/Select/index.js +64 -0
  80. package/dist/components/atoms/Select/index.stories.d.ts +9 -0
  81. package/dist/components/atoms/Select/index.test.d.ts +0 -0
  82. package/dist/components/atoms/TabItem/index.d.ts +4 -0
  83. package/dist/components/atoms/TabItem/index.js +44 -0
  84. package/dist/components/atoms/TabItem/index.stories.d.ts +6 -0
  85. package/dist/components/atoms/TabItem/index.test.d.ts +0 -0
  86. package/dist/components/atoms/TableCell/index.d.ts +4 -0
  87. package/dist/components/atoms/TableCell/index.js +24 -0
  88. package/dist/components/atoms/TableCell/index.stories.d.ts +5 -0
  89. package/dist/components/atoms/TableCell/index.test.d.ts +0 -0
  90. package/dist/components/atoms/TableHeadCell/index.d.ts +4 -0
  91. package/dist/components/atoms/TableHeadCell/index.js +24 -0
  92. package/dist/components/atoms/TableHeadCell/index.stories.d.ts +5 -0
  93. package/dist/components/atoms/TableHeadCell/index.test.d.ts +0 -0
  94. package/dist/components/atoms/Tag/index.d.ts +4 -0
  95. package/dist/components/atoms/Tag/index.js +87 -0
  96. package/dist/components/atoms/Tag/index.stories.d.ts +13 -0
  97. package/dist/components/atoms/Tag/index.test.d.ts +0 -0
  98. package/dist/components/atoms/TextArea/index.d.ts +4 -0
  99. package/dist/components/atoms/TextArea/index.js +60 -0
  100. package/dist/components/atoms/TextArea/index.stories.d.ts +14 -0
  101. package/dist/components/atoms/TextArea/index.test.d.ts +0 -0
  102. package/dist/components/atoms/Tile/index.d.ts +4 -0
  103. package/dist/components/atoms/Tile/index.js +46 -0
  104. package/dist/components/atoms/Tile/index.stories.d.ts +9 -0
  105. package/dist/components/atoms/Tile/index.test.d.ts +0 -0
  106. package/dist/components/atoms/Title/index.d.ts +4 -0
  107. package/dist/components/atoms/Title/index.js +25 -0
  108. package/dist/components/atoms/Title/index.stories.d.ts +10 -0
  109. package/dist/components/atoms/Title/index.test.d.ts +0 -0
  110. package/dist/components/atoms/index.d.ts +27 -0
  111. package/dist/components/atoms/index.js +56 -0
  112. package/dist/components/molecules/Breadcrumbs/index.d.ts +4 -0
  113. package/dist/components/molecules/Breadcrumbs/index.js +63 -0
  114. package/dist/components/molecules/Breadcrumbs/index.stories.d.ts +8 -0
  115. package/dist/components/molecules/Breadcrumbs/index.test.d.ts +0 -0
  116. package/dist/components/molecules/ButtonGroup/index.d.ts +4 -0
  117. package/dist/components/molecules/ButtonGroup/index.js +58 -0
  118. package/dist/components/molecules/ButtonGroup/index.stories.d.ts +8 -0
  119. package/dist/components/molecules/ButtonGroup/index.test.d.ts +0 -0
  120. package/dist/components/molecules/ColumnGroup/index.d.ts +4 -0
  121. package/dist/components/molecules/ColumnGroup/index.js +55 -0
  122. package/dist/components/molecules/ColumnGroup/index.stories.d.ts +10 -0
  123. package/dist/components/molecules/ColumnGroup/index.test.d.ts +0 -0
  124. package/dist/components/molecules/Dropdown/index.d.ts +4 -0
  125. package/dist/components/molecules/Dropdown/index.js +72 -0
  126. package/dist/components/molecules/Dropdown/index.stories.d.ts +6 -0
  127. package/dist/components/molecules/Dropdown/index.test.d.ts +0 -0
  128. package/dist/components/molecules/Footer/index.d.ts +4 -0
  129. package/dist/components/molecules/Footer/index.js +51 -0
  130. package/dist/components/molecules/Footer/index.stories.d.ts +8 -0
  131. package/dist/components/molecules/Footer/index.test.d.ts +0 -0
  132. package/dist/components/molecules/InputControl/index.d.ts +4 -0
  133. package/dist/components/molecules/InputControl/index.js +59 -0
  134. package/dist/components/molecules/InputControl/index.stories.d.ts +11 -0
  135. package/dist/components/molecules/InputControl/index.test.d.ts +0 -0
  136. package/dist/components/molecules/LevelItem/index.d.ts +4 -0
  137. package/dist/components/molecules/LevelItem/index.js +40 -0
  138. package/dist/components/molecules/LevelItem/index.stories.d.ts +7 -0
  139. package/dist/components/molecules/LevelItem/index.test.d.ts +0 -0
  140. package/dist/components/molecules/Media/index.d.ts +4 -0
  141. package/dist/components/molecules/Media/index.js +35 -0
  142. package/dist/components/molecules/Media/index.stories.d.ts +10 -0
  143. package/dist/components/molecules/Media/index.test.d.ts +0 -0
  144. package/dist/components/molecules/Menu/index.d.ts +4 -0
  145. package/dist/components/molecules/Menu/index.js +41 -0
  146. package/dist/components/molecules/Menu/index.stories.d.ts +6 -0
  147. package/dist/components/molecules/Menu/index.test.d.ts +0 -0
  148. package/dist/components/molecules/MenuList/index.d.ts +4 -0
  149. package/dist/components/molecules/MenuList/index.js +39 -0
  150. package/dist/components/molecules/MenuList/index.stories.d.ts +6 -0
  151. package/dist/components/molecules/MenuList/index.test.d.ts +0 -0
  152. package/dist/components/molecules/Message/index.d.ts +4 -0
  153. package/dist/components/molecules/Message/index.js +47 -0
  154. package/dist/components/molecules/Message/index.stories.d.ts +9 -0
  155. package/dist/components/molecules/Message/index.test.d.ts +0 -0
  156. package/dist/components/molecules/Modal/index.d.ts +4 -0
  157. package/dist/components/molecules/Modal/index.js +61 -0
  158. package/dist/components/molecules/Modal/index.stories.d.ts +7 -0
  159. package/dist/components/molecules/Modal/index.test.d.ts +0 -0
  160. package/dist/components/molecules/NavBarBrand/index.d.ts +4 -0
  161. package/dist/components/molecules/NavBarBrand/index.js +48 -0
  162. package/dist/components/molecules/NavBarBrand/index.stories.d.ts +7 -0
  163. package/dist/components/molecules/NavBarBrand/index.test.d.ts +0 -0
  164. package/dist/components/molecules/NavBarDropdown/index.d.ts +4 -0
  165. package/dist/components/molecules/NavBarDropdown/index.js +85 -0
  166. package/dist/components/molecules/NavBarDropdown/index.stories.d.ts +10 -0
  167. package/dist/components/molecules/NavBarDropdown/index.test.d.ts +0 -0
  168. package/dist/components/molecules/Notification/index.d.ts +4 -0
  169. package/dist/components/molecules/Notification/index.js +37 -0
  170. package/dist/components/molecules/Notification/index.stories.d.ts +8 -0
  171. package/dist/components/molecules/Notification/index.test.d.ts +0 -0
  172. package/dist/components/molecules/Pagination/index.d.ts +4 -0
  173. package/dist/components/molecules/Pagination/index.js +109 -0
  174. package/dist/components/molecules/Pagination/index.stories.d.ts +12 -0
  175. package/dist/components/molecules/Pagination/index.test.d.ts +0 -0
  176. package/dist/components/molecules/PanelBlock/index.d.ts +4 -0
  177. package/dist/components/molecules/PanelBlock/index.js +60 -0
  178. package/dist/components/molecules/PanelBlock/index.stories.d.ts +8 -0
  179. package/dist/components/molecules/PanelBlock/index.test.d.ts +0 -0
  180. package/dist/components/molecules/PanelTabs/index.d.ts +4 -0
  181. package/dist/components/molecules/PanelTabs/index.js +32 -0
  182. package/dist/components/molecules/PanelTabs/index.stories.d.ts +7 -0
  183. package/dist/components/molecules/PanelTabs/index.test.d.ts +0 -0
  184. package/dist/components/molecules/Section/index.d.ts +4 -0
  185. package/dist/components/molecules/Section/index.js +23 -0
  186. package/dist/components/molecules/Section/index.stories.d.ts +8 -0
  187. package/dist/components/molecules/Section/index.test.d.ts +0 -0
  188. package/dist/components/molecules/TableRow/index.d.ts +4 -0
  189. package/dist/components/molecules/TableRow/index.js +41 -0
  190. package/dist/components/molecules/TableRow/index.stories.d.ts +7 -0
  191. package/dist/components/molecules/TableRow/index.test.d.ts +0 -0
  192. package/dist/components/molecules/Tabs/index.d.ts +4 -0
  193. package/dist/components/molecules/Tabs/index.js +44 -0
  194. package/dist/components/molecules/Tabs/index.stories.d.ts +13 -0
  195. package/dist/components/molecules/Tabs/index.test.d.ts +0 -0
  196. package/dist/components/molecules/TileBox/index.d.ts +4 -0
  197. package/dist/components/molecules/TileBox/index.js +51 -0
  198. package/dist/components/molecules/TileBox/index.stories.d.ts +9 -0
  199. package/dist/components/molecules/TileBox/index.test.d.ts +0 -0
  200. package/dist/components/molecules/index.d.ts +22 -0
  201. package/dist/components/molecules/index.js +46 -0
  202. package/dist/components/organisms/Card/index.d.ts +4 -0
  203. package/dist/components/organisms/Card/index.js +87 -0
  204. package/dist/components/organisms/Card/index.stories.d.ts +8 -0
  205. package/dist/components/organisms/Card/index.test.d.ts +0 -0
  206. package/dist/components/organisms/FormField/index.d.ts +4 -0
  207. package/dist/components/organisms/FormField/index.js +76 -0
  208. package/dist/components/organisms/FormField/index.stories.d.ts +11 -0
  209. package/dist/components/organisms/FormField/index.test.d.ts +0 -0
  210. package/dist/components/organisms/Hero/index.d.ts +4 -0
  211. package/dist/components/organisms/Hero/index.js +37 -0
  212. package/dist/components/organisms/Hero/index.stories.d.ts +12 -0
  213. package/dist/components/organisms/Hero/index.test.d.ts +0 -0
  214. package/dist/components/organisms/Level/index.d.ts +4 -0
  215. package/dist/components/organisms/Level/index.js +42 -0
  216. package/dist/components/organisms/Level/index.stories.d.ts +9 -0
  217. package/dist/components/organisms/Level/index.test.d.ts +0 -0
  218. package/dist/components/organisms/NavBar/index.d.ts +4 -0
  219. package/dist/components/organisms/NavBar/index.js +83 -0
  220. package/dist/components/organisms/NavBar/index.stories.d.ts +11 -0
  221. package/dist/components/organisms/NavBar/index.test.d.ts +0 -0
  222. package/dist/components/organisms/Panel/index.d.ts +4 -0
  223. package/dist/components/organisms/Panel/index.js +39 -0
  224. package/dist/components/organisms/Panel/index.stories.d.ts +11 -0
  225. package/dist/components/organisms/Panel/index.test.d.ts +0 -0
  226. package/dist/components/organisms/Table/index.d.ts +4 -0
  227. package/dist/components/organisms/Table/index.js +65 -0
  228. package/dist/components/organisms/Table/index.stories.d.ts +15 -0
  229. package/dist/components/organisms/Table/index.test.d.ts +0 -0
  230. package/dist/components/organisms/TileGroup/index.d.ts +4 -0
  231. package/dist/components/organisms/TileGroup/index.js +55 -0
  232. package/dist/components/organisms/TileGroup/index.stories.d.ts +8 -0
  233. package/dist/components/organisms/TileGroup/index.test.d.ts +0 -0
  234. package/dist/components/organisms/index.d.ts +8 -0
  235. package/dist/components/organisms/index.js +18 -0
  236. package/dist/functions/generators.d.ts +4 -0
  237. package/dist/functions/generators.js +12 -0
  238. package/dist/functions/jest.d.ts +2 -0
  239. package/dist/functions/parsers.d.ts +14 -0
  240. package/dist/functions/parsers.js +19 -0
  241. package/dist/functions/tests/generators.test.d.ts +1 -0
  242. package/dist/functions/tests/parsers.test.d.ts +1 -0
  243. package/dist/index.d.ts +3 -0
  244. package/dist/index.js +116 -0
  245. package/dist/interfaces/atomProps.d.ts +305 -0
  246. package/dist/interfaces/atomProps.js +1 -0
  247. package/dist/interfaces/commonProps.d.ts +25 -0
  248. package/dist/interfaces/commonProps.js +1 -0
  249. package/dist/interfaces/functionProps.d.ts +16 -0
  250. package/dist/interfaces/functionProps.js +1 -0
  251. package/dist/interfaces/moleculeProps.d.ts +229 -0
  252. package/dist/interfaces/moleculeProps.js +1 -0
  253. package/dist/interfaces/organismProps.d.ts +112 -0
  254. package/dist/interfaces/organismProps.js +1 -0
  255. package/dist/types/domTypes.d.ts +16 -0
  256. package/dist/types/domTypes.js +4 -0
  257. package/dist/types/styleTypes.d.ts +19 -0
  258. package/dist/types/styleTypes.js +1 -0
  259. package/package.json +7 -5
@@ -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,4 @@
1
+ import { default as React } from 'react';
2
+ import { ImageProps } from '../../../interfaces/atomProps';
3
+ declare const Image: React.FC<ImageProps>;
4
+ export default Image;
@@ -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,4 @@
1
+ import { default as React } from 'react';
2
+ import { InputProps } from '../../../interfaces/atomProps';
3
+ declare const Input: React.FC<InputProps>;
4
+ export default Input;
@@ -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,4 @@
1
+ import { default as React } from 'react';
2
+ import { LevelHeaderProps } from '../../../interfaces/atomProps';
3
+ declare const LevelHeader: React.FC<LevelHeaderProps>;
4
+ export default LevelHeader;
@@ -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>;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { MenuItemProps } from '../../../interfaces/atomProps';
3
+ declare const MenuItem: React.FC<MenuItemProps>;
4
+ export default MenuItem;
@@ -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,4 @@
1
+ import { default as React } from 'react';
2
+ import { NavBarItemProps } from '../../../interfaces/atomProps';
3
+ declare const NavBarItem: React.FC<NavBarItemProps>;
4
+ export default NavBarItem;
@@ -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>;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { PaginationItemProps } from '../../../interfaces/atomProps';
3
+ declare const PaginationItem: React.FC<PaginationItemProps>;
4
+ export default PaginationItem;
@@ -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>;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { ProgressBarProps } from '../../../interfaces/atomProps';
3
+ declare const ProgressBar: React.FC<ProgressBarProps>;
4
+ export default ProgressBar;
@@ -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>;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { RadioButtonProps } from '../../../interfaces/atomProps';
3
+ declare const RadioButton: React.FC<RadioButtonProps>;
4
+ export default RadioButton;
@@ -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>;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { SelectProps } from '../../../interfaces/atomProps';
3
+ declare const Select: React.FC<SelectProps>;
4
+ export default Select;
@@ -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
+ };