this.gui 1.0.11 → 1.0.13

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 (266) hide show
  1. package/package.json +5 -2
  2. package/src/App.jsx +31 -0
  3. package/src/MDXEditor.jsx +32 -0
  4. package/src/MdxProvider.jsx +20 -0
  5. package/src/Theme.jsx +28 -0
  6. package/src/components/CodeBlock.jsx +22 -0
  7. package/src/components/ComponentFactory.jsx +36 -0
  8. package/src/components/ComponentRegistry.js +21 -0
  9. package/src/index.mdx +154 -0
  10. package/src/main.jsx +18 -0
  11. package/src/scripts/generateComponents.js +166 -0
  12. package/src/scripts/logASCIIArt.js +12 -0
  13. package/src/scripts/postinstall.js +64 -0
  14. package/src/scripts/verifyMolecules.js +158 -0
  15. package/src/scripts/verify_and_install_atoms.js +211 -0
  16. package/src/stories/Atoms/Alert/Alert.css +29 -0
  17. package/src/stories/Atoms/Alert/Alert.jsx +41 -0
  18. package/src/stories/Atoms/Alert/Alert.stories.jsx +41 -0
  19. package/src/stories/Atoms/Audio/Audio.css +29 -0
  20. package/src/stories/Atoms/Audio/Audio.jsx +41 -0
  21. package/src/stories/Atoms/Audio/Audio.stories.jsx +41 -0
  22. package/src/stories/Atoms/Badge/Badge.css +29 -0
  23. package/src/stories/Atoms/Badge/Badge.jsx +41 -0
  24. package/src/stories/Atoms/Badge/Badge.stories.jsx +41 -0
  25. package/src/stories/Atoms/Button/Button.css +70 -0
  26. package/src/stories/Atoms/Button/Button.jsx +98 -0
  27. package/src/stories/Atoms/Button/Button.stories.jsx +54 -0
  28. package/src/stories/Atoms/Caption/Caption.css +29 -0
  29. package/src/stories/Atoms/Caption/Caption.jsx +41 -0
  30. package/src/stories/Atoms/Caption/Caption.stories.jsx +41 -0
  31. package/src/stories/Atoms/Checkbox/Checkbox.css +29 -0
  32. package/src/stories/Atoms/Checkbox/Checkbox.jsx +41 -0
  33. package/src/stories/Atoms/Checkbox/Checkbox.stories.jsx +41 -0
  34. package/src/stories/Atoms/Container/Container.css +29 -0
  35. package/src/stories/Atoms/Container/Container.jsx +41 -0
  36. package/src/stories/Atoms/Container/Container.stories.jsx +41 -0
  37. package/src/stories/Atoms/Divider/Divider.css +29 -0
  38. package/src/stories/Atoms/Divider/Divider.jsx +41 -0
  39. package/src/stories/Atoms/Divider/Divider.stories.jsx +41 -0
  40. package/src/stories/Atoms/Heading/Heading.css +29 -0
  41. package/src/stories/Atoms/Heading/Heading.jsx +41 -0
  42. package/src/stories/Atoms/Heading/Heading.stories.jsx +41 -0
  43. package/src/stories/Atoms/Icon/Icon.css +48 -0
  44. package/src/stories/Atoms/Icon/Icon.jsx +51 -0
  45. package/src/stories/Atoms/Icon/Icon.stories.jsx +72 -0
  46. package/src/stories/Atoms/Image/Image.css +29 -0
  47. package/src/stories/Atoms/Image/Image.jsx +41 -0
  48. package/src/stories/Atoms/Image/Image.stories.jsx +41 -0
  49. package/src/stories/Atoms/Label/Label.css +29 -0
  50. package/src/stories/Atoms/Label/Label.jsx +41 -0
  51. package/src/stories/Atoms/Label/Label.stories.jsx +41 -0
  52. package/src/stories/Atoms/Link/Link.css +29 -0
  53. package/src/stories/Atoms/Link/Link.jsx +41 -0
  54. package/src/stories/Atoms/Link/Link.stories.jsx +41 -0
  55. package/src/stories/Atoms/Loader/Loader.css +29 -0
  56. package/src/stories/Atoms/Loader/Loader.jsx +41 -0
  57. package/src/stories/Atoms/Loader/Loader.stories.jsx +41 -0
  58. package/src/stories/Atoms/Paragraph/Paragraph.css +29 -0
  59. package/src/stories/Atoms/Paragraph/Paragraph.jsx +41 -0
  60. package/src/stories/Atoms/Paragraph/Paragraph.stories.jsx +41 -0
  61. package/src/stories/Atoms/ProgressBar/ProgressBar.css +29 -0
  62. package/src/stories/Atoms/ProgressBar/ProgressBar.jsx +41 -0
  63. package/src/stories/Atoms/ProgressBar/ProgressBar.stories.jsx +41 -0
  64. package/src/stories/Atoms/RadioButton/RadioButton.css +29 -0
  65. package/src/stories/Atoms/RadioButton/RadioButton.jsx +41 -0
  66. package/src/stories/Atoms/RadioButton/RadioButton.stories.jsx +41 -0
  67. package/src/stories/Atoms/RangeInput/RangeInput.css +29 -0
  68. package/src/stories/Atoms/RangeInput/RangeInput.jsx +41 -0
  69. package/src/stories/Atoms/RangeInput/RangeInput.stories.jsx +41 -0
  70. package/src/stories/Atoms/Select/Select.css +29 -0
  71. package/src/stories/Atoms/Select/Select.jsx +41 -0
  72. package/src/stories/Atoms/Select/Select.stories.jsx +41 -0
  73. package/src/stories/Atoms/Slider/Slider.css +29 -0
  74. package/src/stories/Atoms/Slider/Slider.jsx +41 -0
  75. package/src/stories/Atoms/Slider/Slider.stories.jsx +41 -0
  76. package/src/stories/Atoms/Snackbar/Snackbar.css +29 -0
  77. package/src/stories/Atoms/Snackbar/Snackbar.jsx +41 -0
  78. package/src/stories/Atoms/Snackbar/Snackbar.stories.jsx +41 -0
  79. package/src/stories/Atoms/Spacer/Spacer.css +29 -0
  80. package/src/stories/Atoms/Spacer/Spacer.jsx +41 -0
  81. package/src/stories/Atoms/Spacer/Spacer.stories.jsx +41 -0
  82. package/src/stories/Atoms/Spinner/Spinner.css +29 -0
  83. package/src/stories/Atoms/Spinner/Spinner.jsx +41 -0
  84. package/src/stories/Atoms/Spinner/Spinner.stories.jsx +41 -0
  85. package/src/stories/Atoms/Tag/Tag.css +29 -0
  86. package/src/stories/Atoms/Tag/Tag.jsx +41 -0
  87. package/src/stories/Atoms/Tag/Tag.stories.jsx +41 -0
  88. package/src/stories/Atoms/TextArea/TextArea.css +29 -0
  89. package/src/stories/Atoms/TextArea/TextArea.jsx +41 -0
  90. package/src/stories/Atoms/TextArea/TextArea.stories.jsx +41 -0
  91. package/src/stories/Atoms/TextInput/TextInput.css +29 -0
  92. package/src/stories/Atoms/TextInput/TextInput.jsx +41 -0
  93. package/src/stories/Atoms/TextInput/TextInput.stories.jsx +41 -0
  94. package/src/stories/Atoms/Toggle/Toggle.css +29 -0
  95. package/src/stories/Atoms/Toggle/Toggle.jsx +41 -0
  96. package/src/stories/Atoms/Toggle/Toggle.stories.jsx +41 -0
  97. package/src/stories/Atoms/Tooltip/Tooltip.css +29 -0
  98. package/src/stories/Atoms/Tooltip/Tooltip.jsx +41 -0
  99. package/src/stories/Atoms/Tooltip/Tooltip.stories.jsx +41 -0
  100. package/src/stories/Atoms/Video/Video.css +29 -0
  101. package/src/stories/Atoms/Video/Video.jsx +41 -0
  102. package/src/stories/Atoms/Video/Video.stories.jsx +41 -0
  103. package/src/stories/Atoms/index.js +65 -0
  104. package/src/stories/Atoms/meta_Atoms.js +46 -0
  105. package/src/stories/Components.js +198 -0
  106. package/src/stories/Components.md +189 -0
  107. package/src/stories/Getting Started.mdx +239 -0
  108. package/src/stories/Layouts/Grid/Grid.css +4 -0
  109. package/src/stories/Layouts/Grid/Grid.jsx +15 -0
  110. package/src/stories/Layouts/Grid/Grid.stories.jsx +26 -0
  111. package/src/stories/Layouts/Layout.js +28 -0
  112. package/src/stories/MDX.mdx +118 -0
  113. package/src/stories/Miscellaneous/Miscellaneous.js +24 -0
  114. package/src/stories/Molecules/Accordion/Accordion.css +4 -0
  115. package/src/stories/Molecules/Accordion/Accordion.jsx +25 -0
  116. package/src/stories/Molecules/Accordion/Accordion.stories.jsx +20 -0
  117. package/src/stories/Molecules/AudioPlayer/AudioPlayer.css +4 -0
  118. package/src/stories/Molecules/AudioPlayer/AudioPlayer.jsx +25 -0
  119. package/src/stories/Molecules/AudioPlayer/AudioPlayer.stories.jsx +20 -0
  120. package/src/stories/Molecules/AvatarWithName/AvatarWithName.css +4 -0
  121. package/src/stories/Molecules/AvatarWithName/AvatarWithName.jsx +25 -0
  122. package/src/stories/Molecules/AvatarWithName/AvatarWithName.stories.jsx +20 -0
  123. package/src/stories/Molecules/Breadcrumbs/Breadcrumbs.css +4 -0
  124. package/src/stories/Molecules/Breadcrumbs/Breadcrumbs.jsx +25 -0
  125. package/src/stories/Molecules/Breadcrumbs/Breadcrumbs.stories.jsx +20 -0
  126. package/src/stories/Molecules/ButtonGroup/ButtonGroup.css +4 -0
  127. package/src/stories/Molecules/ButtonGroup/ButtonGroup.jsx +25 -0
  128. package/src/stories/Molecules/ButtonGroup/ButtonGroup.stories.jsx +20 -0
  129. package/src/stories/Molecules/Card/Card.css +4 -0
  130. package/src/stories/Molecules/Card/Card.jsx +25 -0
  131. package/src/stories/Molecules/Card/Card.stories.jsx +20 -0
  132. package/src/stories/Molecules/ComparisonTable/ComparisonTable.css +4 -0
  133. package/src/stories/Molecules/ComparisonTable/ComparisonTable.jsx +25 -0
  134. package/src/stories/Molecules/ComparisonTable/ComparisonTable.stories.jsx +20 -0
  135. package/src/stories/Molecules/DataTable/DataTable.css +4 -0
  136. package/src/stories/Molecules/DataTable/DataTable.jsx +25 -0
  137. package/src/stories/Molecules/DataTable/DataTable.stories.jsx +20 -0
  138. package/src/stories/Molecules/FileUpload/FileUpload.css +4 -0
  139. package/src/stories/Molecules/FileUpload/FileUpload.jsx +25 -0
  140. package/src/stories/Molecules/FileUpload/FileUpload.stories.jsx +20 -0
  141. package/src/stories/Molecules/FormField/FormField.css +4 -0
  142. package/src/stories/Molecules/FormField/FormField.jsx +25 -0
  143. package/src/stories/Molecules/FormField/FormField.stories.jsx +20 -0
  144. package/src/stories/Molecules/Header/Header.css +35 -0
  145. package/src/stories/Molecules/Header/Header.jsx +76 -0
  146. package/src/stories/Molecules/Header/Header.stories.jsx +28 -0
  147. package/src/stories/Molecules/IconButton/IconButton.css +4 -0
  148. package/src/stories/Molecules/IconButton/IconButton.jsx +25 -0
  149. package/src/stories/Molecules/IconButton/IconButton.stories.jsx +20 -0
  150. package/src/stories/Molecules/ImageWithCaption/ImageWithCaption.css +4 -0
  151. package/src/stories/Molecules/ImageWithCaption/ImageWithCaption.jsx +25 -0
  152. package/src/stories/Molecules/ImageWithCaption/ImageWithCaption.stories.jsx +20 -0
  153. package/src/stories/Molecules/InputGroup/InputGroup.css +4 -0
  154. package/src/stories/Molecules/InputGroup/InputGroup.jsx +25 -0
  155. package/src/stories/Molecules/InputGroup/InputGroup.stories.jsx +20 -0
  156. package/src/stories/Molecules/InputWithLabel/InputWithLabel.css +4 -0
  157. package/src/stories/Molecules/InputWithLabel/InputWithLabel.jsx +25 -0
  158. package/src/stories/Molecules/InputWithLabel/InputWithLabel.stories.jsx +20 -0
  159. package/src/stories/Molecules/List/List.css +4 -0
  160. package/src/stories/Molecules/List/List.jsx +25 -0
  161. package/src/stories/Molecules/List/List.stories.jsx +20 -0
  162. package/src/stories/Molecules/MediaCard/MediaCard.css +4 -0
  163. package/src/stories/Molecules/MediaCard/MediaCard.jsx +25 -0
  164. package/src/stories/Molecules/MediaCard/MediaCard.stories.jsx +20 -0
  165. package/src/stories/Molecules/Modal/Modal.css +4 -0
  166. package/src/stories/Molecules/Modal/Modal.jsx +25 -0
  167. package/src/stories/Molecules/Modal/Modal.stories.jsx +20 -0
  168. package/src/stories/Molecules/Molecules.js +44 -0
  169. package/src/stories/Molecules/Navbar/Navbar.css +87 -0
  170. package/src/stories/Molecules/Navbar/Navbar.jsx +87 -0
  171. package/src/stories/Molecules/Navbar/Navbar.stories.jsx +20 -0
  172. package/src/stories/Molecules/Notification/Notification.css +4 -0
  173. package/src/stories/Molecules/Notification/Notification.jsx +25 -0
  174. package/src/stories/Molecules/Notification/Notification.stories.jsx +20 -0
  175. package/src/stories/Molecules/PricingTable/PricingTable.css +4 -0
  176. package/src/stories/Molecules/PricingTable/PricingTable.jsx +25 -0
  177. package/src/stories/Molecules/PricingTable/PricingTable.stories.jsx +20 -0
  178. package/src/stories/Molecules/SearchBar/SearchBar.css +4 -0
  179. package/src/stories/Molecules/SearchBar/SearchBar.jsx +25 -0
  180. package/src/stories/Molecules/SearchBar/SearchBar.stories.jsx +20 -0
  181. package/src/stories/Molecules/SelectTheme/SelectTheme.css +25 -0
  182. package/src/stories/Molecules/SelectTheme/SelectTheme.jsx +44 -0
  183. package/src/stories/Molecules/SelectTheme/SelectTheme.stories.jsx +25 -0
  184. package/src/stories/Molecules/Sidebar/Sidebar.css +4 -0
  185. package/src/stories/Molecules/Sidebar/Sidebar.jsx +25 -0
  186. package/src/stories/Molecules/Sidebar/Sidebar.stories.jsx +20 -0
  187. package/src/stories/Molecules/VideoWithDescription/VideoWithDescription.css +4 -0
  188. package/src/stories/Molecules/VideoWithDescription/VideoWithDescription.jsx +25 -0
  189. package/src/stories/Molecules/VideoWithDescription/VideoWithDescription.stories.jsx +20 -0
  190. package/src/stories/Molecules/index.js +57 -0
  191. package/src/stories/Organisms/Organisms.js +39 -0
  192. package/src/stories/Organisms/Profile/UserFriends/UserFriends.context.jsx +15 -0
  193. package/src/stories/Organisms/Profile/UserFriends/UserFriends.css +4 -0
  194. package/src/stories/Organisms/Profile/UserFriends/UserFriends.jsx +13 -0
  195. package/src/stories/Organisms/Profile/UserFriends/UserFriends.stories.jsx +26 -0
  196. package/src/stories/Organisms/Profile/UserPosts/UserPosts.context.jsx +15 -0
  197. package/src/stories/Organisms/Profile/UserPosts/UserPosts.css +4 -0
  198. package/src/stories/Organisms/Profile/UserPosts/UserPosts.jsx +13 -0
  199. package/src/stories/Organisms/Profile/UserPosts/UserPosts.stories.jsx +26 -0
  200. package/src/stories/Organisms/Profile/UserProfile/UserProfile.context.jsx +15 -0
  201. package/src/stories/Organisms/Profile/UserProfile/UserProfile.css +4 -0
  202. package/src/stories/Organisms/Profile/UserProfile/UserProfile.jsx +13 -0
  203. package/src/stories/Organisms/Profile/UserProfile/UserProfile.stories.jsx +26 -0
  204. package/src/stories/Pages/Page/Page.css +69 -0
  205. package/src/stories/Pages/Page/Page.jsx +69 -0
  206. package/src/stories/Pages/Page/Page.stories.js +26 -0
  207. package/src/stories/Pages/Page/Pages.js +31 -0
  208. package/src/stories/Templates/Templates.js +27 -0
  209. package/src/stories/assets/accessibility.png +0 -0
  210. package/src/stories/assets/accessibility.svg +1 -0
  211. package/src/stories/assets/addon-library.png +0 -0
  212. package/src/stories/assets/assets.png +0 -0
  213. package/src/stories/assets/avif-test-image.avif +0 -0
  214. package/src/stories/assets/context.png +0 -0
  215. package/src/stories/assets/discord.svg +1 -0
  216. package/src/stories/assets/docs.png +0 -0
  217. package/src/stories/assets/figma-plugin.png +0 -0
  218. package/src/stories/assets/github.svg +1 -0
  219. package/src/stories/assets/share.png +0 -0
  220. package/src/stories/assets/styling.png +0 -0
  221. package/src/stories/assets/testing.png +0 -0
  222. package/src/stories/assets/theming.png +0 -0
  223. package/src/stories/assets/tutorials.svg +1 -0
  224. package/src/stories/assets/youtube.svg +1 -0
  225. package/src/styles/Header.modules.css +32 -0
  226. package/src/styles/global.css +59 -0
  227. package/src/themes/ThemeProvider.jsx +36 -0
  228. package/src/themes/Themes.js +44 -0
  229. package/src/themes/dark.js +22 -0
  230. package/src/themes/light.js +22 -0
  231. package/src/themes/typ/Readme.md +4 -0
  232. package/src/themes/typ/github/open-sans-v17-latin-ext_latin-700.woff2 +0 -0
  233. package/src/themes/typ/github/open-sans-v17-latin-ext_latin-700italic.woff2 +0 -0
  234. package/src/themes/typ/github/open-sans-v17-latin-ext_latin-italic.woff2 +0 -0
  235. package/src/themes/typ/github/open-sans-v17-latin-ext_latin-regular.woff2 +0 -0
  236. package/src/themes/typ/github.css +416 -0
  237. package/src/themes/typ/gothic/GUST e-foundry License.txt +29 -0
  238. package/src/themes/typ/gothic/didact-gothic-c-ext.woff2 +0 -0
  239. package/src/themes/typ/gothic/didact-gothic-c.woff2 +0 -0
  240. package/src/themes/typ/gothic/texgyreadventor-bold.woff +0 -0
  241. package/src/themes/typ/gothic/texgyreadventor-bolditalic.woff +0 -0
  242. package/src/themes/typ/gothic/texgyreadventor-italic.woff +0 -0
  243. package/src/themes/typ/gothic/texgyreadventor-regular.woff +0 -0
  244. package/src/themes/typ/gothic.css +410 -0
  245. package/src/themes/typ/newsprint/pt-serif-v11-latin-700.woff2 +0 -0
  246. package/src/themes/typ/newsprint/pt-serif-v11-latin-700italic.woff2 +0 -0
  247. package/src/themes/typ/newsprint/pt-serif-v11-latin-italic.woff2 +0 -0
  248. package/src/themes/typ/newsprint/pt-serif-v11-latin-regular.woff2 +0 -0
  249. package/src/themes/typ/newsprint.css +622 -0
  250. package/src/themes/typ/night/codeblock.dark.css +113 -0
  251. package/src/themes/typ/night/credit.html +1 -0
  252. package/src/themes/typ/night/cursor.png +0 -0
  253. package/src/themes/typ/night/cursor@2x.png +0 -0
  254. package/src/themes/typ/night/mermaid.dark.css +7 -0
  255. package/src/themes/typ/night/sourcemode.dark.css +38 -0
  256. package/src/themes/typ/night.css +1032 -0
  257. package/src/themes/typ/pixyll/lato-v14-latin-300.woff +0 -0
  258. package/src/themes/typ/pixyll/lato-v14-latin-300italic.woff +0 -0
  259. package/src/themes/typ/pixyll/lato-v14-latin-900.woff +0 -0
  260. package/src/themes/typ/pixyll/lato-v14-latin-900italic.woff +0 -0
  261. package/src/themes/typ/pixyll/merriweather-v19-latin-300.woff +0 -0
  262. package/src/themes/typ/pixyll/merriweather-v19-latin-300italic.woff +0 -0
  263. package/src/themes/typ/pixyll/merriweather-v19-latin-700.woff +0 -0
  264. package/src/themes/typ/pixyll/merriweather-v19-latin-700italic.woff +0 -0
  265. package/src/themes/typ/pixyll.css +528 -0
  266. package/src/themes/typ/whitey.css +299 -0
@@ -0,0 +1,70 @@
1
+ /* Base styles */
2
+ .button {
3
+ display: inline-block;
4
+ padding: var(--button-padding, 12px 24px);
5
+ border-radius: var(--button-border-radius, 8px);
6
+ font-family: 'Roboto', sans-serif; /* Inheriting global font */
7
+ font-size: var(--button-font-size, 16px); /* Increased for better readability */
8
+ cursor: pointer;
9
+ transition: background-color 0.3s ease, box-shadow 0.3s ease;
10
+ text-align: center;
11
+ border: 1px solid transparent;
12
+ box-shadow: var(--button-box-shadow, 0 2px 8px rgba(0, 0, 0, 0.15));
13
+ margin-right: 10px; /* Spacing between buttons */
14
+ }
15
+
16
+ /* Primary button */
17
+ .button--primary {
18
+ background-color: var(--button-primary-bg-color, #691500); /* Deep green */
19
+ color: var(--button-primary-text-color, #3c0a0a);
20
+ border-color: var(--button-primary-border-color, #3f887c);
21
+ }
22
+
23
+ .button--primary:hover {
24
+ background-color: var(--button-primary-hover-bg-color, #dee4e3);
25
+ box-shadow: var(--button-primary-hover-box-shadow, 0 6px 10px rgba(0, 0, 0, 0.2));
26
+ }
27
+
28
+ /* Secondary button */
29
+ .button--secondary {
30
+ background-color: var(--button-secondary-bg-color, #fff);
31
+ color: var(--button-secondary-text-color, #00695c);
32
+ border-color: var(--button-secondary-border-color, #00695c);
33
+ }
34
+
35
+ .button--secondary:hover {
36
+ background-color: var(--button-secondary-hover-bg-color, #f0f0f0);
37
+ box-shadow: var(--button-secondary-hover-box-shadow, 0 6px 10px rgba(0, 0, 0, 0.1));
38
+ }
39
+
40
+ /* Sizes */
41
+ .button--small {
42
+ font-size: var(--button-small-font-size, 14px);
43
+ padding: var(--button-small-padding, 8px 16px);
44
+ }
45
+
46
+ .button--medium {
47
+ font-size: var(--button-medium-font-size, 16px);
48
+ padding: var(--button-medium-padding, 12px 24px);
49
+ }
50
+
51
+ .button--large {
52
+ font-size: var(--button-large-font-size, 18px);
53
+ padding: var(--button-large-padding, 16px 32px);
54
+ }
55
+
56
+ /* No Border Button Style */
57
+ .button--no-border {
58
+ background-color: var(--button-no-border-bg-color, transparent);
59
+ color: var(--button-no-border-text-color, #00695c);
60
+ border: var(--button-no-border-border, none);
61
+ border-bottom: var(--button-no-border-border-bottom, 2px solid #00695c);
62
+ border-radius: var(--button-no-border-border-radius, 0);
63
+ padding: var(--button-no-border-padding, 0);
64
+ }
65
+
66
+ .button--no-border:hover {
67
+ border-bottom: var(--button-no-border-hover-border-bottom, 2px solid #004d40);
68
+ background-color: var(--button-no-border-hover-bg-color, transparent);
69
+ box-shadow: var(--button-no-border-hover-box-shadow, none);
70
+ }
@@ -0,0 +1,98 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import './Button.css'; // Keep the styles file
4
+
5
+ export const Button = ({ primary, size, label, noBorder, children, ...props }) => {
6
+ const mode = primary ? 'button--primary' : 'button--secondary';
7
+ const buttonSize = size === 'small' ? 'button--small' : size === 'large' ? 'button--large' : 'button--medium';
8
+ const borderClass = noBorder ? 'button--no-border' : '';
9
+
10
+ return (
11
+ <button
12
+ type="button"
13
+ className={`button ${mode} ${buttonSize} ${borderClass}`}
14
+ style={{
15
+ '--button-padding': props.padding || null,
16
+ '--button-border-radius': props.borderRadius || null,
17
+ '--button-font-family': props.fontFamily || null,
18
+ '--button-font-size': props.fontSize || null,
19
+ '--button-box-shadow': props.boxShadow || null,
20
+ '--button-primary-bg-color': props.primaryBgColor || null,
21
+ '--button-primary-text-color': props.primaryTextColor || null,
22
+ '--button-primary-border-color': props.primaryBorderColor || null,
23
+ '--button-primary-hover-bg-color': props.primaryHoverBgColor || null,
24
+ '--button-primary-hover-box-shadow': props.primaryHoverBoxShadow || null,
25
+ '--button-secondary-bg-color': props.secondaryBgColor || null,
26
+ '--button-secondary-text-color': props.secondaryTextColor || null,
27
+ '--button-secondary-border-color': props.secondaryBorderColor || null,
28
+ '--button-secondary-hover-bg-color': props.secondaryHoverBgColor || null,
29
+ '--button-secondary-hover-box-shadow': props.secondaryHoverBoxShadow || null,
30
+ '--button-small-font-size': props.smallFontSize || null,
31
+ '--button-small-padding': props.smallPadding || null,
32
+ '--button-medium-font-size': props.mediumFontSize || null,
33
+ '--button-medium-padding': props.mediumPadding || null,
34
+ '--button-large-font-size': props.largeFontSize || null,
35
+ '--button-large-padding': props.largePadding || null,
36
+ '--button-no-border-bg-color': props.noBorderBgColor || null,
37
+ '--button-no-border-text-color': props.noBorderTextColor || null,
38
+ '--button-no-border-border': props.noBorderBorder || null,
39
+ '--button-no-border-border-bottom': props.noBorderBorderBottom || null,
40
+ '--button-no-border-border-radius': props.noBorderBorderRadius || null,
41
+ '--button-no-border-padding': props.noBorderPadding || null,
42
+ '--button-no-border-hover-border-bottom': props.noBorderHoverBorderBottom || null,
43
+ '--button-no-border-hover-bg-color': props.noBorderHoverBgColor || null,
44
+ '--button-no-border-hover-box-shadow': props.noBorderHoverBoxShadow || null,
45
+ }}
46
+ {...props}
47
+ >
48
+ {children || label}
49
+ </button>
50
+ );
51
+ };
52
+
53
+ Button.propTypes = {
54
+ primary: PropTypes.bool,
55
+ size: PropTypes.oneOf(['small', 'medium', 'large']),
56
+ label: PropTypes.string,
57
+ noBorder: PropTypes.bool,
58
+ children: PropTypes.node,
59
+ padding: PropTypes.string,
60
+ borderRadius: PropTypes.string,
61
+ fontFamily: PropTypes.string,
62
+ fontSize: PropTypes.string,
63
+ boxShadow: PropTypes.string,
64
+ primaryBgColor: PropTypes.string,
65
+ primaryTextColor: PropTypes.string,
66
+ primaryBorderColor: PropTypes.string,
67
+ primaryHoverBgColor: PropTypes.string,
68
+ primaryHoverBoxShadow: PropTypes.string,
69
+ secondaryBgColor: PropTypes.string,
70
+ secondaryTextColor: PropTypes.string,
71
+ secondaryBorderColor: PropTypes.string,
72
+ secondaryHoverBgColor: PropTypes.string,
73
+ secondaryHoverBoxShadow: PropTypes.string,
74
+ smallFontSize: PropTypes.string,
75
+ smallPadding: PropTypes.string,
76
+ mediumFontSize: PropTypes.string,
77
+ mediumPadding: PropTypes.string,
78
+ largeFontSize: PropTypes.string,
79
+ largePadding: PropTypes.string,
80
+ noBorderBgColor: PropTypes.string,
81
+ noBorderTextColor: PropTypes.string,
82
+ noBorderBorder: PropTypes.string,
83
+ noBorderBorderBottom: PropTypes.string,
84
+ noBorderBorderRadius: PropTypes.string,
85
+ noBorderPadding: PropTypes.string,
86
+ noBorderHoverBorderBottom: PropTypes.string,
87
+ noBorderHoverBgColor: PropTypes.string,
88
+ noBorderHoverBoxShadow: PropTypes.string,
89
+ };
90
+
91
+ Button.defaultProps = {
92
+ primary: false,
93
+ size: 'medium',
94
+ label: '',
95
+ noBorder: false,
96
+ };
97
+
98
+ export default Button;
@@ -0,0 +1,54 @@
1
+ import { Button } from './Button';
2
+
3
+ export default {
4
+ title: 'Atoms/Interactive/Button',
5
+ component: Button,
6
+ parameters: {
7
+ docs: {
8
+ description: {
9
+ component: 'A customizable button component for various user interactions.',
10
+ },
11
+ },
12
+ },
13
+ argTypes: {
14
+ primary: { control: 'boolean', description: 'Is this the primary button?' },
15
+ size: { control: { type: 'select', options: ['small', 'medium', 'large'] }, description: 'Size of the button' },
16
+ noborder: { control: 'boolean', description: 'No border button style' },
17
+ label: { control: 'text', description: 'Text label for the button' },
18
+ children: { control: 'text', description: 'Content inside the button' },
19
+ },
20
+ };
21
+
22
+ export const Primary = {
23
+ args: {
24
+ primary: true,
25
+ children: 'Primary Button',
26
+ },
27
+ };
28
+
29
+ export const Secondary = {
30
+ args: {
31
+ children: 'Secondary Button',
32
+ },
33
+ };
34
+
35
+ export const NoBorder = {
36
+ args: {
37
+ noborder: true,
38
+ children: 'No Border Button',
39
+ },
40
+ };
41
+
42
+ export const Large = {
43
+ args: {
44
+ size: 'large',
45
+ children: 'Large Button',
46
+ },
47
+ };
48
+
49
+ export const Small = {
50
+ args: {
51
+ size: 'small',
52
+ children: 'Small Button',
53
+ },
54
+ };
@@ -0,0 +1,29 @@
1
+
2
+ .caption {
3
+ padding: 16px;
4
+ border-radius: 8px;
5
+ background-color: #f0f0f0;
6
+ border: 1px solid #ddd;
7
+ }
8
+
9
+ .caption--primary {
10
+ background-color: #e3f2fd;
11
+ border-color: #1e88e5;
12
+ }
13
+
14
+ .caption--secondary {
15
+ background-color: #fff;
16
+ border-color: #ccc;
17
+ }
18
+
19
+ .caption--small {
20
+ padding: 8px;
21
+ }
22
+
23
+ .caption--medium {
24
+ padding: 16px;
25
+ }
26
+
27
+ .caption--large {
28
+ padding: 32px;
29
+ }
@@ -0,0 +1,41 @@
1
+
2
+ import React from 'react';
3
+ import PropTypes from 'prop-types';
4
+ import './Caption.css';
5
+
6
+ /**
7
+ * Caption component for user interaction
8
+ */
9
+ export const Caption = ({ primary, size, children, ...props }) => {
10
+ const mode = primary ? 'caption--primary' : 'caption--secondary';
11
+ return (
12
+ <div
13
+ className={['caption', `caption--${size}`, mode].join(' ')}
14
+ {...props}
15
+ >
16
+ {children}
17
+ </div>
18
+ );
19
+ };
20
+
21
+ Caption.propTypes = {
22
+ /**
23
+ * Is this the primary style for the component?
24
+ */
25
+ primary: PropTypes.bool,
26
+ /**
27
+ * Size of the component
28
+ */
29
+ size: PropTypes.oneOf(['small', 'medium', 'large']),
30
+ /**
31
+ * Content to be rendered inside the component
32
+ */
33
+ children: PropTypes.node.isRequired,
34
+ };
35
+
36
+ Caption.defaultProps = {
37
+ primary: false,
38
+ size: 'medium',
39
+ };
40
+
41
+ export default Caption;
@@ -0,0 +1,41 @@
1
+
2
+ import { Caption } from './Caption';
3
+
4
+ // Storybook configuration for Caption component
5
+ export default {
6
+ title: 'Atoms/Text/Caption',
7
+ component: Caption,
8
+ parameters: {
9
+ layout: 'centered',
10
+ },
11
+ argTypes: {
12
+ children: { control: 'text' },
13
+ },
14
+ };
15
+
16
+ export const Primary = {
17
+ args: {
18
+ primary: true,
19
+ children: 'This is a primary Caption',
20
+ },
21
+ };
22
+
23
+ export const Secondary = {
24
+ args: {
25
+ children: 'This is a secondary Caption',
26
+ },
27
+ };
28
+
29
+ export const Large = {
30
+ args: {
31
+ size: 'large',
32
+ children: 'This is a large Caption',
33
+ },
34
+ };
35
+
36
+ export const Small = {
37
+ args: {
38
+ size: 'small',
39
+ children: 'This is a small Caption',
40
+ },
41
+ };
@@ -0,0 +1,29 @@
1
+
2
+ .checkbox {
3
+ padding: 16px;
4
+ border-radius: 8px;
5
+ background-color: #f0f0f0;
6
+ border: 1px solid #ddd;
7
+ }
8
+
9
+ .checkbox--primary {
10
+ background-color: #e3f2fd;
11
+ border-color: #1e88e5;
12
+ }
13
+
14
+ .checkbox--secondary {
15
+ background-color: #fff;
16
+ border-color: #ccc;
17
+ }
18
+
19
+ .checkbox--small {
20
+ padding: 8px;
21
+ }
22
+
23
+ .checkbox--medium {
24
+ padding: 16px;
25
+ }
26
+
27
+ .checkbox--large {
28
+ padding: 32px;
29
+ }
@@ -0,0 +1,41 @@
1
+
2
+ import React from 'react';
3
+ import PropTypes from 'prop-types';
4
+ import './Checkbox.css';
5
+
6
+ /**
7
+ * Checkbox component for user interaction
8
+ */
9
+ export const Checkbox = ({ primary, size, children, ...props }) => {
10
+ const mode = primary ? 'checkbox--primary' : 'checkbox--secondary';
11
+ return (
12
+ <div
13
+ className={['checkbox', `checkbox--${size}`, mode].join(' ')}
14
+ {...props}
15
+ >
16
+ {children}
17
+ </div>
18
+ );
19
+ };
20
+
21
+ Checkbox.propTypes = {
22
+ /**
23
+ * Is this the primary style for the component?
24
+ */
25
+ primary: PropTypes.bool,
26
+ /**
27
+ * Size of the component
28
+ */
29
+ size: PropTypes.oneOf(['small', 'medium', 'large']),
30
+ /**
31
+ * Content to be rendered inside the component
32
+ */
33
+ children: PropTypes.node.isRequired,
34
+ };
35
+
36
+ Checkbox.defaultProps = {
37
+ primary: false,
38
+ size: 'medium',
39
+ };
40
+
41
+ export default Checkbox;
@@ -0,0 +1,41 @@
1
+
2
+ import { Checkbox } from './Checkbox';
3
+
4
+ // Storybook configuration for Checkbox component
5
+ export default {
6
+ title: 'Atoms/Interactive/Checkbox',
7
+ component: Checkbox,
8
+ parameters: {
9
+ layout: 'centered',
10
+ },
11
+ argTypes: {
12
+ children: { control: 'text' },
13
+ },
14
+ };
15
+
16
+ export const Primary = {
17
+ args: {
18
+ primary: true,
19
+ children: 'This is a primary Checkbox',
20
+ },
21
+ };
22
+
23
+ export const Secondary = {
24
+ args: {
25
+ children: 'This is a secondary Checkbox',
26
+ },
27
+ };
28
+
29
+ export const Large = {
30
+ args: {
31
+ size: 'large',
32
+ children: 'This is a large Checkbox',
33
+ },
34
+ };
35
+
36
+ export const Small = {
37
+ args: {
38
+ size: 'small',
39
+ children: 'This is a small Checkbox',
40
+ },
41
+ };
@@ -0,0 +1,29 @@
1
+
2
+ .container {
3
+ padding: 16px;
4
+ border-radius: 8px;
5
+ background-color: #f0f0f0;
6
+ border: 1px solid #ddd;
7
+ }
8
+
9
+ .container--primary {
10
+ background-color: #e3f2fd;
11
+ border-color: #1e88e5;
12
+ }
13
+
14
+ .container--secondary {
15
+ background-color: #fff;
16
+ border-color: #ccc;
17
+ }
18
+
19
+ .container--small {
20
+ padding: 8px;
21
+ }
22
+
23
+ .container--medium {
24
+ padding: 16px;
25
+ }
26
+
27
+ .container--large {
28
+ padding: 32px;
29
+ }
@@ -0,0 +1,41 @@
1
+
2
+ import React from 'react';
3
+ import PropTypes from 'prop-types';
4
+ import './Container.css';
5
+
6
+ /**
7
+ * Container component for user interaction
8
+ */
9
+ export const Container = ({ primary, size, children, ...props }) => {
10
+ const mode = primary ? 'container--primary' : 'container--secondary';
11
+ return (
12
+ <div
13
+ className={['container', `container--${size}`, mode].join(' ')}
14
+ {...props}
15
+ >
16
+ {children}
17
+ </div>
18
+ );
19
+ };
20
+
21
+ Container.propTypes = {
22
+ /**
23
+ * Is this the primary style for the component?
24
+ */
25
+ primary: PropTypes.bool,
26
+ /**
27
+ * Size of the component
28
+ */
29
+ size: PropTypes.oneOf(['small', 'medium', 'large']),
30
+ /**
31
+ * Content to be rendered inside the component
32
+ */
33
+ children: PropTypes.node.isRequired,
34
+ };
35
+
36
+ Container.defaultProps = {
37
+ primary: false,
38
+ size: 'medium',
39
+ };
40
+
41
+ export default Container;
@@ -0,0 +1,41 @@
1
+
2
+ import { Container } from './Container';
3
+
4
+ // Storybook configuration for Container component
5
+ export default {
6
+ title: 'Atoms/Interactive/Container',
7
+ component: Container,
8
+ parameters: {
9
+ layout: 'centered',
10
+ },
11
+ argTypes: {
12
+ children: { control: 'text' },
13
+ },
14
+ };
15
+
16
+ export const Primary = {
17
+ args: {
18
+ primary: true,
19
+ children: 'This is a primary Container',
20
+ },
21
+ };
22
+
23
+ export const Secondary = {
24
+ args: {
25
+ children: 'This is a secondary Container',
26
+ },
27
+ };
28
+
29
+ export const Large = {
30
+ args: {
31
+ size: 'large',
32
+ children: 'This is a large Container',
33
+ },
34
+ };
35
+
36
+ export const Small = {
37
+ args: {
38
+ size: 'small',
39
+ children: 'This is a small Container',
40
+ },
41
+ };
@@ -0,0 +1,29 @@
1
+
2
+ .divider {
3
+ padding: 16px;
4
+ border-radius: 8px;
5
+ background-color: #f0f0f0;
6
+ border: 1px solid #ddd;
7
+ }
8
+
9
+ .divider--primary {
10
+ background-color: #e3f2fd;
11
+ border-color: #1e88e5;
12
+ }
13
+
14
+ .divider--secondary {
15
+ background-color: #fff;
16
+ border-color: #ccc;
17
+ }
18
+
19
+ .divider--small {
20
+ padding: 8px;
21
+ }
22
+
23
+ .divider--medium {
24
+ padding: 16px;
25
+ }
26
+
27
+ .divider--large {
28
+ padding: 32px;
29
+ }
@@ -0,0 +1,41 @@
1
+
2
+ import React from 'react';
3
+ import PropTypes from 'prop-types';
4
+ import './Divider.css';
5
+
6
+ /**
7
+ * Divider component for user interaction
8
+ */
9
+ export const Divider = ({ primary, size, children, ...props }) => {
10
+ const mode = primary ? 'divider--primary' : 'divider--secondary';
11
+ return (
12
+ <div
13
+ className={['divider', `divider--${size}`, mode].join(' ')}
14
+ {...props}
15
+ >
16
+ {children}
17
+ </div>
18
+ );
19
+ };
20
+
21
+ Divider.propTypes = {
22
+ /**
23
+ * Is this the primary style for the component?
24
+ */
25
+ primary: PropTypes.bool,
26
+ /**
27
+ * Size of the component
28
+ */
29
+ size: PropTypes.oneOf(['small', 'medium', 'large']),
30
+ /**
31
+ * Content to be rendered inside the component
32
+ */
33
+ children: PropTypes.node.isRequired,
34
+ };
35
+
36
+ Divider.defaultProps = {
37
+ primary: false,
38
+ size: 'medium',
39
+ };
40
+
41
+ export default Divider;
@@ -0,0 +1,41 @@
1
+
2
+ import { Divider } from './Divider';
3
+
4
+ // Storybook configuration for Divider component
5
+ export default {
6
+ title: 'Atoms/Visual/Divider',
7
+ component: Divider,
8
+ parameters: {
9
+ layout: 'centered',
10
+ },
11
+ argTypes: {
12
+ children: { control: 'text' },
13
+ },
14
+ };
15
+
16
+ export const Primary = {
17
+ args: {
18
+ primary: true,
19
+ children: 'This is a primary Divider',
20
+ },
21
+ };
22
+
23
+ export const Secondary = {
24
+ args: {
25
+ children: 'This is a secondary Divider',
26
+ },
27
+ };
28
+
29
+ export const Large = {
30
+ args: {
31
+ size: 'large',
32
+ children: 'This is a large Divider',
33
+ },
34
+ };
35
+
36
+ export const Small = {
37
+ args: {
38
+ size: 'small',
39
+ children: 'This is a small Divider',
40
+ },
41
+ };