this.gui 1.0.14 → 1.0.16

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 (259) hide show
  1. package/README.md +0 -39
  2. package/dist/style.css +1 -1
  3. package/dist/this-gui.es.js +3751 -1882
  4. package/dist/this-gui.umd.js +34 -22
  5. package/package.json +14 -12
  6. package/src/App.jsx +50 -21
  7. package/src/SiteBuilder.jsx +39 -0
  8. package/src/index.mdx +10 -0
  9. package/src/main.jsx +11 -14
  10. package/src/scripts/postinstall.js +28 -31
  11. package/src/scripts/verifyLayouts.js +175 -0
  12. package/src/scripts/verifyTemplates.js +154 -0
  13. package/src/stories/Atoms/Alert/Alert.css +196 -14
  14. package/src/stories/Atoms/Alert/Alert.jsx +43 -28
  15. package/src/stories/Atoms/Alert/Alert.stories.jsx +154 -28
  16. package/src/stories/Atoms/Audio/Audio.css +246 -16
  17. package/src/stories/Atoms/Audio/Audio.jsx +204 -29
  18. package/src/stories/Atoms/Audio/Audio.stories.jsx +178 -28
  19. package/src/stories/Atoms/Badge/Badge.css +234 -15
  20. package/src/stories/Atoms/Badge/Badge.jsx +44 -31
  21. package/src/stories/Atoms/Badge/Badge.stories.jsx +108 -29
  22. package/src/stories/Atoms/Button/Button.css +106 -45
  23. package/src/stories/Atoms/Button/Button.jsx +31 -82
  24. package/src/stories/Atoms/Button/Button.stories.jsx +170 -40
  25. package/src/stories/Atoms/Caption/Caption.css +156 -16
  26. package/src/stories/Atoms/Caption/Caption.jsx +62 -31
  27. package/src/stories/Atoms/Caption/Caption.stories.jsx +194 -28
  28. package/src/stories/Atoms/Checkbox/Checkbox.css +168 -15
  29. package/src/stories/Atoms/Checkbox/Checkbox.jsx +73 -31
  30. package/src/stories/Atoms/Checkbox/Checkbox.stories.jsx +98 -27
  31. package/src/stories/Atoms/Container/Container.css +75 -15
  32. package/src/stories/Atoms/Container/Container.jsx +41 -28
  33. package/src/stories/Atoms/Container/Container.stories.jsx +92 -29
  34. package/src/stories/Atoms/Divider/Divider.css +131 -13
  35. package/src/stories/Atoms/Divider/Divider.jsx +54 -33
  36. package/src/stories/Atoms/Divider/Divider.stories.jsx +93 -29
  37. package/src/stories/Atoms/Heading/Heading.css +99 -16
  38. package/src/stories/Atoms/Heading/Heading.jsx +57 -29
  39. package/src/stories/Atoms/Heading/Heading.stories.jsx +117 -28
  40. package/src/stories/Atoms/Icon/Icon.css +219 -27
  41. package/src/stories/Atoms/Icon/Icon.jsx +67 -38
  42. package/src/stories/Atoms/Icon/Icon.stories.jsx +156 -51
  43. package/src/stories/Atoms/Image/Image.css +231 -15
  44. package/src/stories/Atoms/Image/Image.jsx +166 -32
  45. package/src/stories/Atoms/Image/Image.stories.jsx +319 -28
  46. package/src/stories/Atoms/Label/Label.css +158 -16
  47. package/src/stories/Atoms/Label/Label.jsx +61 -31
  48. package/src/stories/Atoms/Label/Label.stories.jsx +167 -28
  49. package/src/stories/Atoms/Link/Link.css +58 -16
  50. package/src/stories/Atoms/Link/Link.jsx +73 -32
  51. package/src/stories/Atoms/Link/Link.stories.jsx +141 -29
  52. package/src/stories/Atoms/Loader/Loader.css +93 -16
  53. package/src/stories/Atoms/Loader/Loader.jsx +47 -30
  54. package/src/stories/Atoms/Loader/Loader.stories.jsx +86 -28
  55. package/src/stories/Atoms/Logo/Logo.css +94 -0
  56. package/src/stories/Atoms/Logo/Logo.jsx +53 -0
  57. package/src/stories/Atoms/Logo/Logo.stories.jsx +120 -0
  58. package/src/stories/Atoms/Paragraph/Paragraph.css +167 -16
  59. package/src/stories/Atoms/Paragraph/Paragraph.jsx +67 -31
  60. package/src/stories/Atoms/Paragraph/Paragraph.stories.jsx +130 -28
  61. package/src/stories/Atoms/ProgressBar/ProgressBar.css +115 -17
  62. package/src/stories/Atoms/ProgressBar/ProgressBar.jsx +30 -31
  63. package/src/stories/Atoms/ProgressBar/ProgressBar.stories.jsx +72 -27
  64. package/src/stories/Atoms/RadioButton/RadioButton.css +118 -17
  65. package/src/stories/Atoms/RadioButton/RadioButton.jsx +77 -31
  66. package/src/stories/Atoms/RadioButton/RadioButton.stories.jsx +99 -27
  67. package/src/stories/Atoms/Range/Range.css +169 -0
  68. package/src/stories/Atoms/Range/Range.jsx +87 -0
  69. package/src/stories/Atoms/Range/Range.stories.jsx +110 -0
  70. package/src/stories/Atoms/Select/Select.css +74 -16
  71. package/src/stories/Atoms/Select/Select.jsx +62 -30
  72. package/src/stories/Atoms/Select/Select.stories.jsx +95 -27
  73. package/src/stories/Atoms/Slider/Slider.css +77 -16
  74. package/src/stories/Atoms/Slider/Slider.jsx +119 -31
  75. package/src/stories/Atoms/Slider/Slider.stories.jsx +77 -28
  76. package/src/stories/Atoms/Snackbar/Snackbar.css +297 -13
  77. package/src/stories/Atoms/Snackbar/Snackbar.jsx +62 -31
  78. package/src/stories/Atoms/Snackbar/Snackbar.stories.jsx +63 -26
  79. package/src/stories/Atoms/Spacer/Spacer.css +101 -16
  80. package/src/stories/Atoms/Spacer/Spacer.jsx +26 -32
  81. package/src/stories/Atoms/Spacer/Spacer.stories.jsx +50 -30
  82. package/src/stories/Atoms/Spinner/Spinner.css +97 -16
  83. package/src/stories/Atoms/Spinner/Spinner.jsx +50 -26
  84. package/src/stories/Atoms/Spinner/Spinner.stories.jsx +47 -30
  85. package/src/stories/Atoms/Tag/Tag.css +97 -14
  86. package/src/stories/Atoms/Tag/Tag.jsx +58 -24
  87. package/src/stories/Atoms/Tag/Tag.stories.jsx +55 -29
  88. package/src/stories/Atoms/TextArea/TextArea.css +84 -15
  89. package/src/stories/Atoms/TextArea/TextArea.jsx +107 -31
  90. package/src/stories/Atoms/TextArea/TextArea.stories.jsx +24 -30
  91. package/src/stories/Atoms/TextInput/TextInput.css +89 -17
  92. package/src/stories/Atoms/TextInput/TextInput.jsx +118 -27
  93. package/src/stories/Atoms/TextInput/TextInput.stories.jsx +52 -25
  94. package/src/stories/Atoms/Toggle/Toggle.css +105 -17
  95. package/src/stories/Atoms/Toggle/Toggle.jsx +55 -28
  96. package/src/stories/Atoms/Toggle/Toggle.stories.jsx +23 -30
  97. package/src/stories/Atoms/Tooltip/Tooltip.css +367 -14
  98. package/src/stories/Atoms/Tooltip/Tooltip.jsx +32 -28
  99. package/src/stories/Atoms/Tooltip/Tooltip.stories.jsx +41 -31
  100. package/src/stories/Atoms/Video/Video.css +27 -18
  101. package/src/stories/Atoms/Video/Video.jsx +65 -29
  102. package/src/stories/Atoms/Video/Video.stories.jsx +29 -30
  103. package/src/stories/Atoms/index.js +5 -2
  104. package/src/stories/Atoms/meta_Atoms.js +3 -1
  105. package/src/stories/Layouts/Accordion/Accordion.css +16 -0
  106. package/src/stories/Layouts/Accordion/Accordion.jsx +31 -0
  107. package/src/stories/Layouts/Accordion/Accordion.stories.jsx +28 -0
  108. package/src/stories/Layouts/DropdownMenu/DropdownMenu.css +16 -0
  109. package/src/stories/Layouts/DropdownMenu/DropdownMenu.jsx +31 -0
  110. package/src/stories/Layouts/DropdownMenu/DropdownMenu.stories.jsx +28 -0
  111. package/src/stories/Layouts/Flexbox/Flexbox.css +16 -0
  112. package/src/stories/Layouts/Flexbox/Flexbox.jsx +11 -0
  113. package/src/stories/Layouts/Flexbox/Flexbox.stories.jsx +28 -0
  114. package/src/stories/Layouts/Footer/Footer.css +16 -0
  115. package/src/stories/Layouts/Footer/Footer.jsx +31 -0
  116. package/src/stories/Layouts/Footer/Footer.stories.jsx +28 -0
  117. package/src/stories/Layouts/Grid/Grid.jsx +2 -4
  118. package/src/stories/Layouts/Grid/Grid.stories.jsx +20 -18
  119. package/src/stories/Layouts/Header/Header.css +16 -0
  120. package/src/stories/Layouts/Header/Header.jsx +31 -0
  121. package/src/stories/Layouts/Header/Header.stories.jsx +28 -0
  122. package/src/stories/Layouts/HeroBanner/HeroBanner.css +16 -0
  123. package/src/stories/Layouts/HeroBanner/HeroBanner.jsx +31 -0
  124. package/src/stories/Layouts/HeroBanner/HeroBanner.stories.jsx +28 -0
  125. package/src/stories/Layouts/HeroImageVideo/HeroImageVideo.css +16 -0
  126. package/src/stories/Layouts/HeroImageVideo/HeroImageVideo.jsx +31 -0
  127. package/src/stories/Layouts/HeroImageVideo/HeroImageVideo.stories.jsx +28 -0
  128. package/src/stories/Layouts/Pagination/Pagination.css +16 -0
  129. package/src/stories/Layouts/Pagination/Pagination.jsx +31 -0
  130. package/src/stories/Layouts/Pagination/Pagination.stories.jsx +28 -0
  131. package/src/stories/Layouts/Section/Section.css +16 -0
  132. package/src/stories/Layouts/Section/Section.jsx +31 -0
  133. package/src/stories/Layouts/Section/Section.stories.jsx +28 -0
  134. package/src/stories/Layouts/Sidebar/Sidebar.css +16 -0
  135. package/src/stories/Layouts/Sidebar/Sidebar.jsx +71 -0
  136. package/src/stories/Layouts/Sidebar/Sidebar.stories.jsx +28 -0
  137. package/src/stories/Layouts/Tabs/Tabs.css +16 -0
  138. package/src/stories/Layouts/Tabs/Tabs.jsx +31 -0
  139. package/src/stories/Layouts/Tabs/Tabs.stories.jsx +28 -0
  140. package/src/stories/Layouts/index.js +31 -0
  141. package/src/stories/Layouts/meta_Layouts.js +31 -0
  142. package/src/stories/Molecules/Navbar/Navbar.css +63 -59
  143. package/src/stories/Molecules/Navbar/Navbar.jsx +43 -48
  144. package/src/stories/Molecules/Navbar/Navbar.stories.jsx +58 -8
  145. package/src/stories/Molecules/SearchBar/SearchBar.css +66 -1
  146. package/src/stories/Molecules/SearchBar/SearchBar.jsx +59 -11
  147. package/src/stories/Molecules/SearchBar/SearchBar.stories.jsx +16 -7
  148. package/src/stories/Molecules/SelectTheme/SelectTheme.jsx +16 -38
  149. package/src/stories/Molecules/SelectTheme/SelectTheme.stories.jsx +1 -2
  150. package/src/stories/Molecules/Sidebar/Sidebar.css +65 -2
  151. package/src/stories/Molecules/Sidebar/Sidebar.jsx +66 -11
  152. package/src/stories/Molecules/Sidebar/Sidebar.stories.jsx +20 -5
  153. package/src/stories/Templates/AdminDashboard/AdminDashboard.css +7 -0
  154. package/src/stories/Templates/AdminDashboard/AdminDashboard.jsx +24 -0
  155. package/src/stories/Templates/AdminDashboard/AdminDashboard.stories.jsx +20 -0
  156. package/src/stories/Templates/CallToAction/CallToAction.css +7 -0
  157. package/src/stories/Templates/CallToAction/CallToAction.jsx +24 -0
  158. package/src/stories/Templates/CallToAction/CallToAction.stories.jsx +20 -0
  159. package/src/stories/Templates/FeaturesList/FeaturesList.css +7 -0
  160. package/src/stories/Templates/FeaturesList/FeaturesList.jsx +24 -0
  161. package/src/stories/Templates/FeaturesList/FeaturesList.stories.jsx +20 -0
  162. package/src/stories/Templates/FormSection/FormSection.css +7 -0
  163. package/src/stories/Templates/FormSection/FormSection.jsx +24 -0
  164. package/src/stories/Templates/FormSection/FormSection.stories.jsx +20 -0
  165. package/src/stories/Templates/HeroSection/HeroSection.css +7 -0
  166. package/src/stories/Templates/HeroSection/HeroSection.jsx +24 -0
  167. package/src/stories/Templates/HeroSection/HeroSection.stories.jsx +20 -0
  168. package/src/stories/Templates/LocationInfo/LocationInfo.css +7 -0
  169. package/src/stories/Templates/LocationInfo/LocationInfo.jsx +24 -0
  170. package/src/stories/Templates/LocationInfo/LocationInfo.stories.jsx +20 -0
  171. package/src/stories/Templates/ProductPage/ProductPage.css +7 -0
  172. package/src/stories/Templates/ProductPage/ProductPage.jsx +24 -0
  173. package/src/stories/Templates/ProductPage/ProductPage.stories.jsx +20 -0
  174. package/src/stories/Templates/RegistrationPage/RegistrationPage.css +7 -0
  175. package/src/stories/Templates/RegistrationPage/RegistrationPage.jsx +24 -0
  176. package/src/stories/Templates/RegistrationPage/RegistrationPage.stories.jsx +20 -0
  177. package/src/stories/Templates/ShoppingCart/ShoppingCart.css +7 -0
  178. package/src/stories/Templates/ShoppingCart/ShoppingCart.jsx +24 -0
  179. package/src/stories/Templates/ShoppingCart/ShoppingCart.stories.jsx +20 -0
  180. package/src/stories/Templates/SidebarTopNav/SidebarTopNav.css +7 -0
  181. package/src/stories/Templates/SidebarTopNav/SidebarTopNav.jsx +24 -0
  182. package/src/stories/Templates/SidebarTopNav/SidebarTopNav.stories.jsx +20 -0
  183. package/src/stories/Templates/SignInPage/SignInPage.css +7 -0
  184. package/src/stories/Templates/SignInPage/SignInPage.jsx +24 -0
  185. package/src/stories/Templates/SignInPage/SignInPage.stories.jsx +20 -0
  186. package/src/stories/Templates/SocialMediaLinks/SocialMediaLinks.css +7 -0
  187. package/src/stories/Templates/SocialMediaLinks/SocialMediaLinks.jsx +24 -0
  188. package/src/stories/Templates/SocialMediaLinks/SocialMediaLinks.stories.jsx +20 -0
  189. package/src/stories/Templates/Testimonials/Testimonials.css +7 -0
  190. package/src/stories/Templates/Testimonials/Testimonials.jsx +24 -0
  191. package/src/stories/Templates/Testimonials/Testimonials.stories.jsx +20 -0
  192. package/src/stories/Templates/index.js +33 -0
  193. package/src/stories/Templates/{Templates.js → meta_Templates.js} +3 -1
  194. package/src/stories/assets/logo.png +0 -0
  195. package/src/stories/assets/logo.svg +106 -0
  196. package/src/stories/assets/test.svg +3 -0
  197. package/src/themes/README.md +301 -0
  198. package/src/themes/ThemeProvider.jsx +47 -22
  199. package/src/themes/styles/dracula/dark.css +0 -0
  200. package/src/themes/styles/dracula/light.css +0 -0
  201. package/src/themes/styles/github/dark.css +0 -0
  202. package/src/themes/styles/github/light.css +0 -0
  203. package/src/themes/styles/neurons/dark.css +247 -0
  204. package/src/themes/styles/neurons/light.css +280 -0
  205. package/dist/github-3688a83a.js +0 -5
  206. package/dist/gothic-94a7ecd6.js +0 -5
  207. package/dist/newsprint-32bf94d9.js +0 -5
  208. package/dist/night-4a954853.js +0 -5
  209. package/dist/pixyll-94de4610.js +0 -5
  210. package/dist/whitey-db68723e.js +0 -5
  211. package/src/MDXEditor.jsx +0 -32
  212. package/src/stories/Atoms/RangeInput/RangeInput.css +0 -29
  213. package/src/stories/Atoms/RangeInput/RangeInput.jsx +0 -41
  214. package/src/stories/Atoms/RangeInput/RangeInput.stories.jsx +0 -41
  215. package/src/stories/Components.md +0 -189
  216. package/src/stories/Layouts/Layout.js +0 -28
  217. package/src/styles/Header.modules.css +0 -32
  218. package/src/styles/global.css +0 -59
  219. package/src/themes/Themes.js +0 -44
  220. package/src/themes/dark.js +0 -22
  221. package/src/themes/light.js +0 -22
  222. package/src/themes/typ/Readme.md +0 -4
  223. package/src/themes/typ/github/open-sans-v17-latin-ext_latin-700.woff2 +0 -0
  224. package/src/themes/typ/github/open-sans-v17-latin-ext_latin-700italic.woff2 +0 -0
  225. package/src/themes/typ/github/open-sans-v17-latin-ext_latin-italic.woff2 +0 -0
  226. package/src/themes/typ/github/open-sans-v17-latin-ext_latin-regular.woff2 +0 -0
  227. package/src/themes/typ/github.css +0 -416
  228. package/src/themes/typ/gothic/GUST e-foundry License.txt +0 -29
  229. package/src/themes/typ/gothic/didact-gothic-c-ext.woff2 +0 -0
  230. package/src/themes/typ/gothic/didact-gothic-c.woff2 +0 -0
  231. package/src/themes/typ/gothic/texgyreadventor-bold.woff +0 -0
  232. package/src/themes/typ/gothic/texgyreadventor-bolditalic.woff +0 -0
  233. package/src/themes/typ/gothic/texgyreadventor-italic.woff +0 -0
  234. package/src/themes/typ/gothic/texgyreadventor-regular.woff +0 -0
  235. package/src/themes/typ/gothic.css +0 -410
  236. package/src/themes/typ/newsprint/pt-serif-v11-latin-700.woff2 +0 -0
  237. package/src/themes/typ/newsprint/pt-serif-v11-latin-700italic.woff2 +0 -0
  238. package/src/themes/typ/newsprint/pt-serif-v11-latin-italic.woff2 +0 -0
  239. package/src/themes/typ/newsprint/pt-serif-v11-latin-regular.woff2 +0 -0
  240. package/src/themes/typ/newsprint.css +0 -622
  241. package/src/themes/typ/night/codeblock.dark.css +0 -113
  242. package/src/themes/typ/night/credit.html +0 -1
  243. package/src/themes/typ/night/cursor.png +0 -0
  244. package/src/themes/typ/night/cursor@2x.png +0 -0
  245. package/src/themes/typ/night/mermaid.dark.css +0 -7
  246. package/src/themes/typ/night/sourcemode.dark.css +0 -38
  247. package/src/themes/typ/night.css +0 -1032
  248. package/src/themes/typ/pixyll/lato-v14-latin-300.woff +0 -0
  249. package/src/themes/typ/pixyll/lato-v14-latin-300italic.woff +0 -0
  250. package/src/themes/typ/pixyll/lato-v14-latin-900.woff +0 -0
  251. package/src/themes/typ/pixyll/lato-v14-latin-900italic.woff +0 -0
  252. package/src/themes/typ/pixyll/merriweather-v19-latin-300.woff +0 -0
  253. package/src/themes/typ/pixyll/merriweather-v19-latin-300italic.woff +0 -0
  254. package/src/themes/typ/pixyll/merriweather-v19-latin-700.woff +0 -0
  255. package/src/themes/typ/pixyll/merriweather-v19-latin-700italic.woff +0 -0
  256. package/src/themes/typ/pixyll.css +0 -528
  257. package/src/themes/typ/whitey.css +0 -299
  258. /package/src/stories/Molecules/{Molecules.js → meta_Molecules.js} +0 -0
  259. /package/src/stories/Organisms/{Organisms.js → meta_Organisms.js} +0 -0
@@ -0,0 +1,28 @@
1
+
2
+ import { Tabs } from './Tabs';
3
+
4
+ // Storybook configuration for Tabs component
5
+ export default {
6
+ title: 'Layouts/ContentOrganization/Tabs',
7
+ component: Tabs,
8
+ parameters: {
9
+ layout: 'fullscreen',
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 Tabs layout.',
20
+ },
21
+ };
22
+
23
+ export const Secondary = {
24
+ args: {
25
+ primary: false,
26
+ children: 'This is a secondary Tabs layout.',
27
+ },
28
+ };
@@ -0,0 +1,31 @@
1
+ // this.GUI/src/stories/Layouts/index.js
2
+ import { Grid } from './Grid/Grid';
3
+ import { Section } from './Section/Section';
4
+ import { Flexbox } from './Flexbox/Flexbox';
5
+ import { Header } from './Header/Header';
6
+ import { Footer } from './Footer/Footer';
7
+ import { DropdownMenu } from './DropdownMenu/DropdownMenu';
8
+ import { Pagination } from './Pagination/Pagination';
9
+ import { Sidebar } from './Sidebar/Sidebar';
10
+ import { Tabs } from './Tabs/Tabs';
11
+ import { Accordion } from './Accordion/Accordion';
12
+ import { HeroBanner } from './HeroBanner/HeroBanner';
13
+ import { HeroImageVideo } from './HeroImageVideo/HeroImageVideo';
14
+
15
+ // Flattened export of all layout components
16
+ const Layouts = {
17
+ Grid,
18
+ Section,
19
+ Flexbox,
20
+ Header,
21
+ Footer,
22
+ DropdownMenu,
23
+ Pagination,
24
+ Sidebar,
25
+ Tabs,
26
+ Accordion,
27
+ HeroBanner,
28
+ HeroImageVideo,
29
+ };
30
+
31
+ export default Layouts;
@@ -0,0 +1,31 @@
1
+ const Layout = {
2
+ "Layout": {
3
+ "Grid": [
4
+ { name: "Grid", paths: { css: "./Grid/Grid.css", globalCss: "styles/global.css", jsx: "./Layout/Grid/Grid.jsx", stories: "src/stories/Layout/Grid/Grid.stories.jsx" }},
5
+ ],
6
+ "Section": [
7
+ { name: "Section", paths: { css: "./Section/Section.css", globalCss: "styles/global.css", jsx: "./Layout/Section/Section.jsx", stories: "src/stories/Layout/Section/Section.stories.jsx" }},
8
+ ],
9
+ "FlexboxLayout": [
10
+ { name: "Flexbox", paths: { css: "./Flexbox/Flexbox.css", globalCss: "styles/global.css", jsx: "./Layout/Flexbox/Flexbox.jsx", stories: "src/stories/Layout/Flexbox/Flexbox.stories.jsx" }},
11
+ ],
12
+ "NavigationAndMenus": [
13
+ { name: "Header", paths: { css: "./Header/Header.css", globalCss: "styles/global.css", jsx: "./Layout/Header/Header.jsx", stories: "src/stories/Layout/Header/Header.stories.jsx" }},
14
+ { name: "Footer", paths: { css: "./Footer/Footer.css", globalCss: "styles/global.css", jsx: "./Layout/Footer/Footer.jsx", stories: "src/stories/Layout/Footer/Footer.stories.jsx" }},
15
+ { name: "DropdownMenu", paths: { css: "./DropdownMenu/DropdownMenu.css", globalCss: "styles/global.css", jsx: "./Layout/DropdownMenu/DropdownMenu.jsx", stories: "src/stories/Layout/DropdownMenu/DropdownMenu.stories.jsx" }},
16
+ { name: "Pagination", paths: { css: "./Pagination/Pagination.css", globalCss: "styles/global.css", jsx: "./Layout/Pagination/Pagination.jsx", stories: "src/stories/Layout/Pagination/Pagination.stories.jsx" }},
17
+ ],
18
+ "ContentOrganization": [
19
+ { name: "Sidebar", paths: { css: "./Sidebar/Sidebar.css", globalCss: "styles/global.css", jsx: "./Layout/Sidebar/Sidebar.jsx", stories: "src/stories/Layout/Sidebar/Sidebar.stories.jsx" }},
20
+ { name: "Tabs", paths: { css: "./Tabs/Tabs.css", globalCss: "styles/global.css", jsx: "./Layout/Tabs/Tabs.jsx", stories: "src/stories/Layout/Tabs/Tabs.stories.jsx" }},
21
+ { name: "Accordion", paths: { css: "./Accordion/Accordion.css", globalCss: "styles/global.css", jsx: "./Layout/Accordion/Accordion.jsx", stories: "src/stories/Layout/Accordion/Accordion.stories.jsx" }},
22
+ ],
23
+ "HeroSections": [
24
+ { name: "HeroBanner", paths: { css: "./HeroBanner/HeroBanner.css", globalCss: "styles/global.css", jsx: "./Layout/HeroBanner/HeroBanner.jsx", stories: "src/stories/Layout/HeroBanner/HeroBanner.stories.jsx" }},
25
+ { name: "HeroImageVideo", paths: { css: "./HeroImageVideo/HeroImageVideo.css", globalCss: "styles/global.css", jsx: "./Layout/HeroImageVideo/HeroImageVideo.jsx", stories: "src/stories/Layout/HeroImageVideo/HeroImageVideo.stories.jsx" }},
26
+ ]
27
+ }
28
+ };
29
+
30
+ // Export the Layout object
31
+ export default Layout;
@@ -1,87 +1,91 @@
1
1
  /* src/stories/Molecules/Navigation/Navbar/Navbar.css */
2
2
 
3
- /* CSS variables for dynamic styling */
3
+ /* Root variables for theming */
4
4
  .navbar {
5
- --navbar-background-color: rgba(34, 139, 34, 0); /* Light greenish background with low opacity */
6
- --navbar-border-color: rgba(34, 139, 34, 0.235); /* Light border with dark greenish color and low opacity */
7
- --navbar-padding: 8px 16px;
8
- --navbar-margin: 16px;
9
- --navbar-border-radius: 4px;
10
-
5
+ --navbar-background-color: var(--background-color);
6
+ --navbar-border-color: var(--border-color);
7
+ --navbar-height: 60px;
8
+ --navbar-link-color: var(--text-color);
9
+ --navbar-link-hover-background: rgba(255, 255, 255, 0.1);
10
+ --navbar-link-padding: 0 16px;
11
+ --navbar-fixed: fixed;
12
+ --navbar-z-index: 1000;
13
+
14
+ position: var(--navbar-fixed);
15
+ top: 0;
16
+ left: 0;
17
+ width: 100%;
18
+ height: var(--navbar-height);
19
+ background-color: var(--navbar-background-color);
20
+ border-bottom: 1px solid var(--navbar-border-color);
11
21
  display: flex;
12
22
  align-items: center;
13
23
  justify-content: space-between;
14
- background-color: var(--navbar-background-color);
15
- border: 1px solid var(--navbar-border-color);
16
- padding: var(--navbar-padding);
17
- margin: var(--navbar-margin);
18
- border-radius: var(--navbar-border-radius);
24
+ z-index: var(--navbar-z-index);
25
+ padding: 0 16px;
26
+ box-sizing: border-box;
19
27
  }
20
28
 
21
- .navbar__logo {
22
- --navbar-logo-margin-right: 24px;
23
-
29
+ .navbar__group {
24
30
  display: flex;
25
31
  align-items: center;
26
- margin-right: var(--navbar-logo-margin-right);
27
32
  }
28
33
 
29
- .navbar__links {
30
- list-style: none;
31
- display: flex;
32
- margin: 0;
33
- padding: 0;
34
+ .navbar__group--left {
35
+ flex: 1;
34
36
  }
35
37
 
36
- .navbar__item {
37
- --navbar-item-margin: 0 12px;
38
-
39
- margin: var(--navbar-item-margin);
38
+ .navbar__group--center {
39
+ flex: 1;
40
+ justify-content: center;
40
41
  }
41
42
 
42
- .navbar__link {
43
- --navbar-link-color: #006400;
44
- --navbar-link-padding: 8px;
45
-
46
- color: var(--navbar-link-color);
47
- text-decoration: none;
48
- padding: var(--navbar-link-padding);
43
+ .navbar__group--right {
44
+ flex: 1;
45
+ justify-content: flex-end;
49
46
  }
50
47
 
51
- .navbar__link:hover,
52
- .navbar__link--active {
53
- --navbar-link-hover-background-color: rgba(34, 139, 34, 0.1);
54
- --navbar-link-hover-border-radius: 4px;
55
-
56
- background-color: var(--navbar-link-hover-background-color);
57
- border-radius: var(--navbar-link-hover-border-radius);
48
+ .navbar__logo {
49
+ margin-right: 16px;
58
50
  }
59
51
 
60
- .navbar__controls {
61
- --navbar-controls-margin-left: 24px;
52
+ .navbar__search {
53
+ margin-right: 16px;
54
+ }
62
55
 
56
+ .navbar__link {
57
+ color: var(--navbar-link-color);
58
+ text-decoration: none;
59
+ padding: var(--navbar-link-padding);
63
60
  display: flex;
64
61
  align-items: center;
65
- margin-left: var(--navbar-controls-margin-left);
66
- }
67
-
68
- .navbar__controls > * {
69
- --navbar-control-item-margin-left: 12px;
70
-
71
- margin-left: var(--navbar-control-item-margin-left);
62
+ height: 100%;
63
+ box-sizing: border-box;
64
+ transition: background-color 0.3s ease;
72
65
  }
73
66
 
74
- /* Button styles */
75
- .button {
76
- --button-background-color: #228B22;
77
- --button-text-color: #fff;
78
-
79
- background-color: var(--button-background-color);
80
- color: var(--button-text-color);
67
+ .navbar__link:hover {
68
+ background-color: var(--navbar-link-hover-background);
81
69
  }
82
70
 
83
- .button:hover {
84
- --button-hover-background-color: #1e7a1e;
85
-
86
- background-color: var(--button-hover-background-color);
71
+ @media (max-width: 768px) {
72
+ .navbar {
73
+ flex-wrap: wrap;
74
+ height: auto;
75
+ }
76
+
77
+ .navbar__group {
78
+ width: 100%;
79
+ justify-content: center;
80
+ margin: 8px 0;
81
+ }
82
+
83
+ .navbar__group--left,
84
+ .navbar__group--right {
85
+ justify-content: center;
86
+ }
87
+
88
+ .navbar__link {
89
+ padding: 8px;
90
+ }
87
91
  }
@@ -1,36 +1,23 @@
1
- // src/stories/Molecules/Navigation/Navbar/Navbar.jsx
2
-
1
+ //this.GUI/src/stories/Molecules/Navbar/Navbar.jsx
3
2
  import React from 'react';
4
3
  import PropTypes from 'prop-types';
5
4
  import './Navbar.css';
6
5
 
7
6
  export const Navbar = ({
8
- links,
9
- logo,
10
- userControls,
7
+ leftItems = [],
8
+ centerItems = [],
9
+ rightItems = [],
10
+ logo = null,
11
+ searchComponent = null,
11
12
  styleOverrides = {},
12
13
  }) => {
13
- // Build the style object for CSS variable overrides
14
14
  const style = {};
15
15
 
16
16
  // Map of styleOverrides keys to CSS variable names
17
17
  const cssVariableMap = {
18
18
  navbarBackgroundColor: '--navbar-background-color',
19
19
  navbarBorderColor: '--navbar-border-color',
20
- navbarPadding: '--navbar-padding',
21
- navbarMargin: '--navbar-margin',
22
- navbarBorderRadius: '--navbar-border-radius',
23
- logoMarginRight: '--navbar-logo-margin-right',
24
- itemMargin: '--navbar-item-margin',
25
- linkColor: '--navbar-link-color',
26
- linkPadding: '--navbar-link-padding',
27
- linkHoverBackgroundColor: '--navbar-link-hover-background-color',
28
- linkHoverBorderRadius: '--navbar-link-hover-border-radius',
29
- controlsMarginLeft: '--navbar-controls-margin-left',
30
- controlItemMarginLeft: '--navbar-control-item-margin-left',
31
- buttonBackgroundColor: '--button-background-color',
32
- buttonTextColor: '--button-text-color',
33
- buttonHoverBackgroundColor: '--button-hover-background-color',
20
+ navbarHeight: '--navbar-height',
34
21
  };
35
22
 
36
23
  // Set CSS variables based on styleOverrides
@@ -43,45 +30,53 @@ export const Navbar = ({
43
30
 
44
31
  return (
45
32
  <nav className="navbar" style={style}>
46
- <div className="navbar__logo">
47
- {logo}
33
+ <div className="navbar__group navbar__group--left">
34
+ {logo && <div className="navbar__logo">{logo}</div>}
35
+ {searchComponent && <div className="navbar__search">{searchComponent}</div>}
36
+ {leftItems.map((item, index) => (
37
+ <a key={index} href={item.url} className="navbar__link">
38
+ {item.label}
39
+ </a>
40
+ ))}
41
+ </div>
42
+ <div className="navbar__group navbar__group--center">
43
+ {centerItems.map((item, index) => (
44
+ <a key={index} href={item.url} className="navbar__link">
45
+ {item.label}
46
+ </a>
47
+ ))}
48
48
  </div>
49
- <ul className="navbar__links">
50
- {links.map((link, index) => (
51
- <li key={index} className="navbar__item">
52
- <a
53
- href={link.url}
54
- className={`navbar__link ${link.isActive ? 'navbar__link--active' : ''}`}
55
- >
56
- {link.label}
57
- </a>
58
- </li>
49
+ <div className="navbar__group navbar__group--right">
50
+ {rightItems.map((item, index) => (
51
+ <a key={index} href={item.url} className="navbar__link">
52
+ {item.label}
53
+ </a>
59
54
  ))}
60
- </ul>
61
- <div className="navbar__controls">
62
- {userControls}
63
55
  </div>
64
56
  </nav>
65
57
  );
66
58
  };
67
59
 
68
60
  Navbar.propTypes = {
69
- links: PropTypes.arrayOf(
61
+ leftItems: PropTypes.arrayOf(
62
+ PropTypes.shape({
63
+ url: PropTypes.string.isRequired,
64
+ label: PropTypes.string.isRequired,
65
+ })
66
+ ),
67
+ centerItems: PropTypes.arrayOf(
70
68
  PropTypes.shape({
71
69
  url: PropTypes.string.isRequired,
72
70
  label: PropTypes.string.isRequired,
73
- isActive: PropTypes.bool,
74
71
  })
75
- ).isRequired,
72
+ ),
73
+ rightItems: PropTypes.arrayOf(
74
+ PropTypes.shape({
75
+ url: PropTypes.string.isRequired,
76
+ label: PropTypes.string.isRequired,
77
+ })
78
+ ),
76
79
  logo: PropTypes.node,
77
- userControls: PropTypes.node,
80
+ searchComponent: PropTypes.node,
78
81
  styleOverrides: PropTypes.object,
79
- };
80
-
81
- Navbar.defaultProps = {
82
- logo: null,
83
- userControls: null,
84
- styleOverrides: {},
85
- };
86
-
87
- export default Navbar;
82
+ };
@@ -1,20 +1,70 @@
1
-
1
+ import React from 'react';
2
2
  import { Navbar } from './Navbar';
3
+ import { SearchBar } from '../SearchBar/SearchBar';
4
+ import { Logo } from '../../Atoms/Logo/Logo'; // Importing the Logo component
3
5
 
4
- // Storybook configuration for Navbar component
5
6
  export default {
6
7
  title: 'Molecules/Navigation/Navbar',
7
8
  component: Navbar,
8
9
  parameters: {
9
- layout: 'centered',
10
+ layout: 'fullscreen',
10
11
  },
11
12
  argTypes: {
12
- // Define argTypes here
13
+ logo: {
14
+ control: false, // We use a React node, so control is not applicable
15
+ description: 'Logo component or element to display in the navbar',
16
+ },
17
+ searchComponent: {
18
+ control: false, // We use a React node, so control is not applicable
19
+ description: 'Search component to display in the navbar',
20
+ },
21
+ leftItems: {
22
+ control: 'object',
23
+ description: 'Array of navigation items for the left side',
24
+ },
25
+ centerItems: {
26
+ control: 'object',
27
+ description: 'Array of navigation items for the center',
28
+ },
29
+ rightItems: {
30
+ control: 'object',
31
+ description: 'Array of navigation items for the right side',
32
+ },
33
+ styleOverrides: {
34
+ control: 'object',
35
+ description: 'Override default styles with CSS variables',
36
+ },
13
37
  },
14
38
  };
15
39
 
16
- export const Default = {
17
- args: {
18
- // Define default args here
19
- },
40
+ const Template = (args) => <Navbar {...args} />;
41
+
42
+ export const Default = Template.bind({});
43
+ Default.args = {
44
+ logo: <Logo />, // Using the Logo component here
45
+ searchComponent: <SearchBar placeholder="Search..." />,
46
+ leftItems: [
47
+ { url: '#home', label: 'Home' },
48
+ { url: '#about', label: 'About' },
49
+ ],
50
+ centerItems: [
51
+ { url: '#services', label: 'Services' },
52
+ { url: '#portfolio', label: 'Portfolio' },
53
+ ],
54
+ rightItems: [
55
+ { url: '#login', label: 'Login' },
56
+ { url: '#signup', label: 'Sign Up' },
57
+ ],
20
58
  };
59
+
60
+ export const CustomizedNavbar = Template.bind({});
61
+ CustomizedNavbar.args = {
62
+ ...Default.args,
63
+ styleOverrides: {
64
+ navbarBackgroundColor: '#1F1F1F',
65
+ navbarBorderColor: '#444444',
66
+ navbarHeight: '70px',
67
+ navbarLinkColor: '#FFFFFF',
68
+ navbarLinkHoverBackground: 'rgba(255, 255, 255, 0.2)',
69
+ },
70
+ };
@@ -1,4 +1,69 @@
1
+ /* src/stories/Molecules/FormElements/SearchBar/SearchBar.css */
1
2
 
2
3
  .searchbar {
3
- /* Default styles for SearchBar */
4
+ display: flex;
5
+ align-items: center;
6
+ position: relative;
4
7
  }
8
+
9
+ .searchbar__toggle {
10
+ background: none;
11
+ border: none;
12
+ padding: 8px;
13
+ cursor: pointer;
14
+ color: var(--text-color);
15
+ display: flex;
16
+ align-items: center;
17
+ }
18
+
19
+ .searchbar__icon {
20
+ width: 24px;
21
+ height: 24px;
22
+ }
23
+
24
+ .searchbar__input {
25
+ padding: 8px;
26
+ border: 1px solid var(--border-color);
27
+ border-radius: var(--border-radius);
28
+ background-color: var(--background-color);
29
+ color: var(--text-color);
30
+ margin-left: 8px;
31
+ transition: width 0.3s ease, opacity 0.3s ease;
32
+ }
33
+
34
+ @media (max-width: 768px) {
35
+ .searchbar__input {
36
+ width: 0;
37
+ opacity: 0;
38
+ visibility: hidden;
39
+ margin-left: 0;
40
+ pointer-events: none;
41
+ }
42
+
43
+ .searchbar--expanded .searchbar__input {
44
+ width: 150px; /* Adjust as needed */
45
+ opacity: 1;
46
+ visibility: visible;
47
+ margin-left: 8px;
48
+ pointer-events: auto;
49
+ }
50
+ }
51
+
52
+ @media (min-width: 769px) {
53
+ .searchbar__toggle {
54
+ display: none;
55
+ }
56
+
57
+ .searchbar__input {
58
+ width: 200px; /* Adjust as needed */
59
+ opacity: 1;
60
+ visibility: visible;
61
+ pointer-events: auto;
62
+ }
63
+ }
64
+
65
+ /* Optional: Style the input when focused */
66
+ .searchbar__input:focus {
67
+ border-color: var(--primary-color);
68
+ outline: none;
69
+ }
@@ -1,25 +1,73 @@
1
+ // src/stories/Molecules/SearchBar/SearchBar.jsx
1
2
 
2
- import React from 'react';
3
+ import React, { useState } from 'react';
3
4
  import PropTypes from 'prop-types';
4
5
  import './SearchBar.css';
5
6
 
6
- /**
7
- * SearchBar component
8
- */
9
- export const SearchBar = (props) => {
7
+ export const SearchBar = ({ placeholder, onSearch }) => {
8
+ const [isExpanded, setIsExpanded] = useState(false);
9
+ const [query, setQuery] = useState('');
10
+
11
+ const handleToggle = () => {
12
+ setIsExpanded((prev) => !prev);
13
+ };
14
+
15
+ const handleInputChange = (e) => {
16
+ setQuery(e.target.value);
17
+ };
18
+
19
+ const handleSubmit = (e) => {
20
+ e.preventDefault();
21
+ onSearch(query);
22
+ };
23
+
10
24
  return (
11
- <div className="searchbar" {...props}>
12
- {/* Component implementation */}
13
- </div>
25
+ <form
26
+ className={`searchbar ${isExpanded ? 'searchbar--expanded' : ''}`}
27
+ onSubmit={handleSubmit}
28
+ >
29
+ <button
30
+ type="button"
31
+ className="searchbar__toggle"
32
+ onClick={handleToggle}
33
+ aria-label="Search"
34
+ >
35
+ {/* Magnifying glass icon */}
36
+ <svg
37
+ className="searchbar__icon"
38
+ xmlns="http://www.w3.org/2000/svg"
39
+ viewBox="0 0 24 24"
40
+ aria-hidden="true"
41
+ >
42
+ <path
43
+ fill="currentColor"
44
+ d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5
45
+ 6.5 6.5 0 109.5 16a6.471 6.471 0 004.23-1.57l.27.28v.79l5
46
+ 5 1.5-1.5-5-5zM9.5 14C7.01 14 5 11.99 5
47
+ 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"
48
+ />
49
+ </svg>
50
+ </button>
51
+ <input
52
+ type="text"
53
+ className="searchbar__input"
54
+ placeholder={placeholder}
55
+ value={query}
56
+ onChange={handleInputChange}
57
+ aria-label="Search input"
58
+ />
59
+ </form>
14
60
  );
15
61
  };
16
62
 
17
63
  SearchBar.propTypes = {
18
- // Define prop types here
64
+ placeholder: PropTypes.string,
65
+ onSearch: PropTypes.func,
19
66
  };
20
67
 
21
68
  SearchBar.defaultProps = {
22
- // Define default props here
69
+ placeholder: 'Search...',
70
+ onSearch: () => {},
23
71
  };
24
72
 
25
- export default SearchBar;
73
+ export default SearchBar;
@@ -1,7 +1,8 @@
1
+ // src/stories/Molecules/FormElements/SearchBar/SearchBar.stories.jsx
1
2
 
3
+ import React from 'react';
2
4
  import { SearchBar } from './SearchBar';
3
5
 
4
- // Storybook configuration for SearchBar component
5
6
  export default {
6
7
  title: 'Molecules/FormElements/SearchBar',
7
8
  component: SearchBar,
@@ -9,12 +10,20 @@ export default {
9
10
  layout: 'centered',
10
11
  },
11
12
  argTypes: {
12
- // Define argTypes here
13
+ placeholder: {
14
+ control: 'text',
15
+ description: 'Placeholder text for the search input',
16
+ },
17
+ onSearch: {
18
+ action: 'searched',
19
+ description: 'Function to call when the search form is submitted',
20
+ },
13
21
  },
14
22
  };
15
23
 
16
- export const Default = {
17
- args: {
18
- // Define default args here
19
- },
20
- };
24
+ const Template = (args) => <SearchBar {...args} />;
25
+
26
+ export const Default = Template.bind({});
27
+ Default.args = {
28
+ placeholder: 'Search...',
29
+ };