@hellobetterdigitalnz/selwynui 0.0.1-7 → 0.0.1-71

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 (422) hide show
  1. package/package.json +9 -1
  2. package/src/Components/DataDisplay/Accordion/Accordion.stories.tsx +7 -20
  3. package/src/Components/DataDisplay/Accordion/Accordion.tsx +21 -20
  4. package/src/Components/DataDisplay/Accordion/AccordionItem.tsx +2 -2
  5. package/src/Components/DataDisplay/Accordion/AccordionProps.tsx +2 -1
  6. package/src/Components/DataDisplay/Accordion/accordion-bg-design.tsx +5 -5
  7. package/src/Components/DataDisplay/Accordion/accordion.module.scss +75 -43
  8. package/src/Components/DataDisplay/BrandBuilderTool/BrandBuilderTool.stories.tsx +53 -0
  9. package/src/Components/DataDisplay/BrandBuilderTool/BrandBuilderTool.tsx +23 -0
  10. package/src/Components/DataDisplay/BrandBuilderTool/BrandBuilderToolMain/BrandBuilderToolMain.tsx +13 -0
  11. package/src/Components/DataDisplay/BrandBuilderTool/BrandBuilderToolMain/BrandBuilderToolMainProps.tsx +7 -0
  12. package/src/Components/DataDisplay/BrandBuilderTool/BrandBuilderToolProps.tsx +9 -0
  13. package/src/Components/DataDisplay/BrandBuilderTool/BrandBuilderToolTemplate/BrandBuilderToolTemplateItem.tsx +15 -0
  14. package/src/Components/DataDisplay/BrandBuilderTool/BrandBuilderToolTemplate/BrandBuilderToolTemplateItemProps.tsx +10 -0
  15. package/src/Components/DataDisplay/BrandBuilderTool/BrandBuilderToolTemplate/BrandBuilderToolTemplateSelector.tsx +29 -0
  16. package/src/Components/DataDisplay/BrandBuilderTool/BrandBuilderToolTemplate/BrandBuilderToolTemplateSelectorProps.tsx +8 -0
  17. package/src/Components/DataDisplay/BrandBuilderTool/BrandBuilderToolUploader/BrandBuilderToolUploader.tsx +33 -0
  18. package/src/Components/DataDisplay/BrandBuilderTool/BrandBuilderToolUploader/BrandBuilderToolUploaderProps.tsx +8 -0
  19. package/src/Components/DataDisplay/BrandBuilderTool/BrandBuilderToolWrapper/BrandBuilderToolWrapper.tsx +17 -0
  20. package/src/Components/DataDisplay/BrandBuilderTool/BrandBuilderToolWrapper/BrandBuilderToolWrapperProps.tsx +8 -0
  21. package/src/Components/DataDisplay/BrandBuilderTool/BrandbuilderToolPreview/BrandBuilderToolPreview.tsx +25 -0
  22. package/src/Components/DataDisplay/BrandBuilderTool/BrandbuilderToolPreview/BrandBuilderToolPreviewProps.tsx +8 -0
  23. package/src/Components/DataDisplay/BrandBuilderTool/brandBuilder.module.scss +215 -0
  24. package/src/Components/DataDisplay/CallToActionBlock/CallToActionBlock.stories.tsx +92 -0
  25. package/src/Components/DataDisplay/CallToActionBlock/CallToActionBlock.tsx +80 -0
  26. package/src/Components/DataDisplay/CallToActionBlock/CallToActionBlockProps.tsx +18 -0
  27. package/src/Components/DataDisplay/CallToActionBlock/callToAction.module.scss +79 -0
  28. package/src/Components/DataDisplay/CallToActionBlock/callToAction.module.scss~ +78 -0
  29. package/src/Components/DataDisplay/CarouselBlock/CarouselBlock.stories.tsx +77 -0
  30. package/src/Components/DataDisplay/CarouselBlock/CarouselBlock.tsx +73 -0
  31. package/src/Components/DataDisplay/CarouselBlock/CarouselBlockProps.tsx +23 -0
  32. package/src/Components/DataDisplay/CarouselBlock/carouselBlock.module.scss +60 -0
  33. package/src/Components/DataDisplay/ChatItenaryBlock/ChatItenaryBlock.stories.tsx +128 -0
  34. package/src/Components/DataDisplay/ChatItenaryBlock/ChatItenaryBlock.tsx +257 -0
  35. package/src/Components/DataDisplay/ChatItenaryBlock/ChatItenaryBlockProps.tsx +44 -0
  36. package/src/Components/DataDisplay/ChatItenaryBlock/chatItenaryBlock.module.scss +777 -0
  37. package/src/Components/DataDisplay/ContactsBlock/ContactItem.tsx +47 -0
  38. package/src/Components/DataDisplay/ContactsBlock/ContactItemProps.tsx +10 -0
  39. package/src/Components/DataDisplay/ContactsBlock/ContactsBlock.stories.tsx +59 -0
  40. package/src/Components/DataDisplay/ContactsBlock/ContactsBlock.tsx +24 -0
  41. package/src/Components/DataDisplay/ContactsBlock/ContactsBlockProps.tsx +8 -0
  42. package/src/Components/DataDisplay/ContactsBlock/contactsBlock.module.scss +165 -0
  43. package/src/Components/DataDisplay/ContentBlock/ContentBlock.stories.tsx +107 -0
  44. package/src/Components/DataDisplay/ContentBlock/ContentBlock.tsx +36 -0
  45. package/src/Components/DataDisplay/ContentBlock/ContentBlockProps.tsx +11 -0
  46. package/src/Components/DataDisplay/ContentBlock/contentBlock.module.scss +76 -0
  47. package/src/Components/DataDisplay/DetailsCard/DetailsCard.tsx +8 -10
  48. package/src/Components/DataDisplay/DetailsCard/DetailsCardProps.tsx +0 -1
  49. package/src/Components/DataDisplay/DetailsCard/detailsCard.module.scss +3 -1
  50. package/src/Components/DataDisplay/ImageContent/ImageContent.stories.tsx +5 -11
  51. package/src/Components/DataDisplay/ImageContent/ImageContent.tsx +12 -11
  52. package/src/Components/DataDisplay/ImageContent/ImageContentProps.tsx +4 -0
  53. package/src/Components/DataDisplay/ImageContent/imageContent.module.scss +30 -14
  54. package/src/Components/DataDisplay/IntroBlock/IntroBlock.stories.tsx +1 -1
  55. package/src/Components/DataDisplay/IntroBlock/introBlock.module.scss +27 -3
  56. package/src/Components/DataDisplay/KPIBlock/KPIBlock.stories.tsx +3 -4
  57. package/src/Components/DataDisplay/KPIBlock/KPIBlock.tsx +14 -7
  58. package/src/Components/DataDisplay/KPIBlock/KPIBlockProps.tsx +6 -2
  59. package/src/Components/DataDisplay/KPIBlock/kpiBlock.module.scss +179 -16
  60. package/src/Components/DataDisplay/{Pathway/Pathway.stories.tsx → ListBlock/ListBlock.stories.tsx} +20 -18
  61. package/src/Components/DataDisplay/ListBlock/ListBlock.tsx +133 -0
  62. package/src/Components/DataDisplay/ListBlock/ListBlockProps.tsx +28 -0
  63. package/src/Components/DataDisplay/{Pathway/pathway.module.scss → ListBlock/listBlock.module.scss} +30 -6
  64. package/src/Components/DataDisplay/ListingDetailBlock/ListingDetailBlock.stories.tsx +93 -0
  65. package/src/Components/DataDisplay/ListingDetailBlock/ListingDetailBlock.tsx +74 -0
  66. package/src/Components/DataDisplay/ListingDetailBlock/ListingDetailBlockProps.tsx +23 -0
  67. package/src/Components/DataDisplay/ListingDetailBlock/listingDetailBlock.module.scss +265 -0
  68. package/src/Components/DataDisplay/Media/Media.stories.tsx +36 -0
  69. package/src/Components/DataDisplay/Media/Media.tsx +158 -0
  70. package/src/Components/DataDisplay/Media/MediaProps.tsx +8 -0
  71. package/src/Components/DataDisplay/Media/media.module.scss +16 -0
  72. package/src/Components/DataDisplay/Media/mediaVideo.scss +88 -0
  73. package/src/Components/DataDisplay/Modal/Modal.stories.tsx +89 -0
  74. package/src/Components/DataDisplay/Modal/Modal.tsx +16 -0
  75. package/src/Components/DataDisplay/Modal/ModalActions.tsx +14 -0
  76. package/src/Components/DataDisplay/Modal/ModalActionsLeft.tsx +13 -0
  77. package/src/Components/DataDisplay/Modal/ModalActionsLeftProps.tsx +8 -0
  78. package/src/Components/DataDisplay/Modal/ModalActionsProps.tsx +8 -0
  79. package/src/Components/DataDisplay/Modal/ModalActionsRight.tsx +14 -0
  80. package/src/Components/DataDisplay/Modal/ModalActionsRightProps.tsx +8 -0
  81. package/src/Components/DataDisplay/Modal/ModalBody.tsx +14 -0
  82. package/src/Components/DataDisplay/Modal/ModalBodyProps.tsx +8 -0
  83. package/src/Components/DataDisplay/Modal/ModalCurtain.tsx +6 -0
  84. package/src/Components/DataDisplay/Modal/ModalHeader.tsx +55 -0
  85. package/src/Components/DataDisplay/Modal/ModalHeaderProps.tsx +10 -0
  86. package/src/Components/DataDisplay/Modal/ModalProps.tsx +9 -0
  87. package/src/Components/DataDisplay/Modal/modal.module.scss +178 -0
  88. package/src/Components/DataDisplay/PathwayBlock/PathwayBlock.stories.tsx +27 -13
  89. package/src/Components/DataDisplay/PathwayBlock/PathwayBlock.tsx +7 -6
  90. package/src/Components/DataDisplay/PathwayBlock/PathwayBlockProps.tsx +10 -4
  91. package/src/Components/DataDisplay/PathwayBlock/pathwayBlock.module.scss +27 -23
  92. package/src/Components/DataDisplay/PromoBannerBlock/PromoBanner.stories.tsx +3 -4
  93. package/src/Components/DataDisplay/PromoBannerBlock/PromoBannerBlock.tsx +2 -6
  94. package/src/Components/DataDisplay/PromoBannerBlock/promoBanner.module.scss +12 -15
  95. package/src/Components/DataDisplay/TestimonyCard/TestimonyCard.stories.tsx +11 -5
  96. package/src/Components/DataDisplay/TestimonyCard/TestimonyCard.tsx +73 -53
  97. package/src/Components/DataDisplay/TestimonyCard/testimonyCard.module.scss +137 -70
  98. package/src/Components/DataDisplay/index.ts +87 -4
  99. package/src/Components/DataDisplay/slider.scss +43 -0
  100. package/src/Components/Form/Button/ButtonProps.tsx +1 -1
  101. package/src/Components/Form/Button/button.module.scss +2 -0
  102. package/src/Components/Form/Checkbox/Checkbox.stories.tsx +51 -0
  103. package/src/Components/Form/Checkbox/Checkbox.tsx +111 -0
  104. package/src/Components/Form/Checkbox/CheckboxProps.tsx +24 -0
  105. package/src/Components/Form/Checkbox/checkbox.module.scss +105 -0
  106. package/src/Components/Form/EmailField/EmailField.stories.ts +23 -0
  107. package/src/Components/Form/EmailField/EmailField.tsx +56 -0
  108. package/src/Components/Form/FormFieldHolder/FormFieldHolder.stories.tsx +31 -0
  109. package/src/Components/Form/FormFieldHolder/FormFieldHolder.tsx +57 -0
  110. package/src/Components/Form/FormFieldHolder/FormFieldHolderProps.tsx +16 -0
  111. package/src/Components/Form/FormFieldHolder/formHolder.module.scss +71 -0
  112. package/src/Components/Form/InputProps.tsx +30 -0
  113. package/src/Components/Form/LandingPageForm/LandingPageForm.stories.tsx +110 -0
  114. package/src/Components/Form/LandingPageForm/LandingPageForm.tsx +24 -0
  115. package/src/Components/Form/LandingPageForm/LandingPageFormLeft.tsx +51 -0
  116. package/src/Components/Form/LandingPageForm/LandingPageFormLeftProps.tsx +13 -0
  117. package/src/Components/Form/LandingPageForm/LandingPageFormProps.tsx +9 -0
  118. package/src/Components/Form/LandingPageForm/LandingPageFormRight.tsx +49 -0
  119. package/src/Components/Form/LandingPageForm/LandingPageFormRightProps.tsx +14 -0
  120. package/src/Components/Form/LandingPageForm/landingPageForm.module.scss +190 -0
  121. package/src/Components/Form/LoadingInput/LoadingInput.tsx +12 -0
  122. package/src/Components/Form/LoadingInput/loadingInput.module.scss +15 -0
  123. package/src/Components/Form/RadioButtons/RadioButton.tsx +83 -0
  124. package/src/Components/Form/RadioButtons/RadioButtonProps.tsx +24 -0
  125. package/src/Components/Form/RadioButtons/RadioButtons.stories.tsx +129 -0
  126. package/src/Components/Form/RadioButtons/RadioButtons.tsx +18 -0
  127. package/src/Components/Form/RadioButtons/RadioButtonsProps.tsx +10 -0
  128. package/src/Components/Form/RadioButtons/radioButton.stories.scss +3 -0
  129. package/src/Components/Form/RadioButtons/radiobutton.module.scss +189 -0
  130. package/src/Components/Form/SimpleForm/SimpleForm.stories.tsx +55 -0
  131. package/src/Components/Form/SimpleForm/SimpleForm.tsx +63 -0
  132. package/src/Components/Form/SimpleForm/SimpleFormProps.tsx +13 -0
  133. package/src/Components/Form/SimpleForm/simple-form-bg-design.tsx +21 -0
  134. package/src/Components/Form/SimpleForm/simpleForm.module.scss +72 -0
  135. package/src/Components/Form/TextField/TextField.stories.ts +22 -0
  136. package/src/Components/Form/TextField/TextField.tsx +62 -0
  137. package/src/Components/Form/TextField/TextFieldProps.tsx +8 -0
  138. package/src/Components/Form/Textarea/Textarea.stories.ts +31 -0
  139. package/src/Components/Form/Textarea/Textarea.tsx +74 -0
  140. package/src/Components/Form/Textarea/TextareaProps.tsx +28 -0
  141. package/src/Components/Form/Textarea/textarea.module.scss +48 -0
  142. package/src/Components/Form/index.ts +34 -1
  143. package/src/Components/Form/index.ts~ +32 -0
  144. package/src/Components/Form/inputs.module.scss +172 -0
  145. package/src/Components/Icons/Communication/PaperPlaneTilt/PaperPlaneTilt.tsx +37 -0
  146. package/src/Components/Icons/OfficeAndEditing/Paperclip/Paperclip.tsx +37 -0
  147. package/src/Components/Icons/SystemAndDevice/CheckCircle/CheckCircle.tsx +35 -0
  148. package/src/Components/Icons/index.ts +5 -1
  149. package/src/Components/Layout/Footer/Footer.tsx +1 -2
  150. package/src/Components/Layout/Footer/FooterBottom.tsx +7 -7
  151. package/src/Components/Layout/Footer/FooterProps.tsx +1 -1
  152. package/src/Components/Layout/Footer/FooterTop.tsx +1 -1
  153. package/src/Components/Layout/Footer/footer.module.scss +3 -2
  154. package/src/Components/Layout/Header/Header.stories.tsx +23 -23
  155. package/src/Components/Layout/Header/Header.tsx +3 -3
  156. package/src/Components/Layout/Header/HeaderProps.tsx +1 -0
  157. package/src/Components/Layout/Header/MegaMenu/MegaMenu.tsx +156 -83
  158. package/src/Components/Layout/Header/MegaMenu/MegaMenuProps.tsx +22 -9
  159. package/src/Components/Layout/Header/MegaMenu/megaMenu.module.scss +4 -2
  160. package/src/Components/Layout/Header/MobileNavigation/MobileNavigation.tsx +4 -3
  161. package/src/Components/Layout/Header/MobileNavigation/MobileNavigationProps.tsx +1 -0
  162. package/src/Components/Layout/Header/MobileNavigation/MobileSubNavigation/MobileSubNavigation.tsx +2 -2
  163. package/src/Components/Layout/Header/MobileNavigation/MobileSubNavigation/MobileSubNavigationItem.tsx +3 -3
  164. package/src/Components/Layout/Header/header.module.scss +17 -19
  165. package/src/Components/Layout/HeroBanner/HeroBanner.tsx +6 -6
  166. package/src/Components/Layout/HeroBanner/heroBanner.module.scss +42 -6
  167. package/src/Components/Layout/index.ts +11 -2
  168. package/src/Components/SelwynUIProvider/SelwynUIContext.tsx +16 -0
  169. package/src/Components/SelwynUIProvider/SelwynUIProvider.tsx +46 -0
  170. package/src/Components/SelwynUIProvider/index.ts +2 -0
  171. package/src/Components/Shared/Container/Container.tsx +18 -8
  172. package/src/Components/Shared/Container/ContainerProps.tsx +7 -2
  173. package/src/Components/Shared/Container/container.module.scss +55 -7
  174. package/src/Components/Shared/ElementHolder/ElementHolderProps.tsx +1 -1
  175. package/src/Components/Shared/ElementHolder/elementHolder.module.scss +10 -5
  176. package/src/Components/Shared/PillarIcon/PillarIcon.tsx +4 -4
  177. package/src/Components/Shared/PillarLogo/PillarLogo.tsx +2 -2
  178. package/src/Components/index.ts +1 -0
  179. package/dist/App.d.ts +0 -2
  180. package/dist/Components/DataDisplay/DetailsCard/DetailsCard.d.ts +0 -3
  181. package/dist/Components/DataDisplay/DetailsCard/DetailsCardProps.d.ts +0 -10
  182. package/dist/Components/DataDisplay/ImageContent/ImageContent.d.ts +0 -3
  183. package/dist/Components/DataDisplay/ImageContent/ImageContentMaskingImages.d.ts +0 -2
  184. package/dist/Components/DataDisplay/ImageContent/ImageContentProps.d.ts +0 -27
  185. package/dist/Components/DataDisplay/IntroBlock/IntroBlock.d.ts +0 -3
  186. package/dist/Components/DataDisplay/IntroBlock/IntroBlockProps.d.ts +0 -8
  187. package/dist/Components/DataDisplay/KPIBlock/KPIBlock.d.ts +0 -3
  188. package/dist/Components/DataDisplay/KPIBlock/KPIBlockProps.d.ts +0 -11
  189. package/dist/Components/DataDisplay/Pathway/Pathway.d.ts +0 -3
  190. package/dist/Components/DataDisplay/Pathway/PathwayProps.d.ts +0 -15
  191. package/dist/Components/DataDisplay/PromoBannerBlock/PromoBannerBlock.d.ts +0 -3
  192. package/dist/Components/DataDisplay/PromoBannerBlock/PromoBannerBlockProps.d.ts +0 -14
  193. package/dist/Components/DataDisplay/PromoBannerBlock/promo-banner-bg-design.d.ts +0 -2
  194. package/dist/Components/DataDisplay/index.d.ts +0 -10
  195. package/dist/Components/Form/Button/Button.d.ts +0 -3
  196. package/dist/Components/Form/Button/ButtonProps.d.ts +0 -14
  197. package/dist/Components/Form/index.d.ts +0 -2
  198. package/dist/Components/Icons/Arrows/ArrowLeft/ArrowLeft.d.ts +0 -3
  199. package/dist/Components/Icons/Arrows/ArrowRight/ArrowRight.d.ts +0 -3
  200. package/dist/Components/Icons/Arrows/ArrowSquareOut/ArrowSquareOut.d.ts +0 -3
  201. package/dist/Components/Icons/Arrows/ArrowsDownUp/ArrowsDownUp.d.ts +0 -3
  202. package/dist/Components/Icons/Arrows/ArrowsOutCardinal/ArrowsOutCardinal.d.ts +0 -3
  203. package/dist/Components/Icons/Arrows/CaretCircleRight/CaretCircleRight.d.ts +0 -3
  204. package/dist/Components/Icons/Arrows/CaretDown/CaretDown.d.ts +0 -3
  205. package/dist/Components/Icons/Arrows/CaretLeft/CaretLeft.d.ts +0 -3
  206. package/dist/Components/Icons/Arrows/CaretRight/CaretRight.d.ts +0 -3
  207. package/dist/Components/Icons/Arrows/CaretUp/CaretUp.d.ts +0 -3
  208. package/dist/Components/Icons/Arrows/CaretUpDown/CaretUpDown.d.ts +0 -3
  209. package/dist/Components/Icons/Brands/FacebookLogo/FacebookLogo.d.ts +0 -3
  210. package/dist/Components/Icons/Brands/InstagramLogo/InstagramLogo.d.ts +0 -3
  211. package/dist/Components/Icons/Brands/LinkedinLogo/LinkedinLogo.d.ts +0 -3
  212. package/dist/Components/Icons/Brands/WindowsLogo/WindowsLogo.d.ts +0 -3
  213. package/dist/Components/Icons/Commerce/Backpack/Backpack.d.ts +0 -3
  214. package/dist/Components/Icons/Commerce/BowlSteam/BowlSteam.d.ts +0 -3
  215. package/dist/Components/Icons/Commerce/Bread/Bread.d.ts +0 -3
  216. package/dist/Components/Icons/Commerce/Cheers/Cheers.d.ts +0 -3
  217. package/dist/Components/Icons/Commerce/ChefHat/ChefHat.d.ts +0 -3
  218. package/dist/Components/Icons/Commerce/Coffee/Coffee.d.ts +0 -3
  219. package/dist/Components/Icons/Commerce/CreditCard/CreditCard.d.ts +0 -3
  220. package/dist/Components/Icons/Commerce/CurrencyDollarSimple/CurrencyDollarSimple.d.ts +0 -3
  221. package/dist/Components/Icons/Commerce/Grains/Grains.d.ts +0 -3
  222. package/dist/Components/Icons/Commerce/Scale/Scale.d.ts +0 -3
  223. package/dist/Components/Icons/Commerce/StoreFront/StoreFront.d.ts +0 -3
  224. package/dist/Components/Icons/Communication/AddressBook/AddressBook.d.ts +0 -3
  225. package/dist/Components/Icons/Communication/AddressBook/AddressBook.stories.d.ts +0 -21
  226. package/dist/Components/Icons/Communication/AsterickSimple/AsteriskSimple.d.ts +0 -3
  227. package/dist/Components/Icons/Communication/AsterickSimple/AsteriskSimple.stories.d.ts +0 -21
  228. package/dist/Components/Icons/Communication/Asterisk/Asterisk.d.ts +0 -3
  229. package/dist/Components/Icons/Communication/Asterisk/Asterisk.stories.d.ts +0 -21
  230. package/dist/Components/Icons/Communication/At/At.d.ts +0 -3
  231. package/dist/Components/Icons/Communication/At/At.stories.d.ts +0 -21
  232. package/dist/Components/Icons/Communication/Broadcast/Broadcast.d.ts +0 -3
  233. package/dist/Components/Icons/Communication/Broadcast/Broadcast.stories.d.ts +0 -21
  234. package/dist/Components/Icons/Communication/Chat/Chat.d.ts +0 -3
  235. package/dist/Components/Icons/Communication/Chat/Chat.stories.d.ts +0 -21
  236. package/dist/Components/Icons/Communication/ChatCircleText/ChatCircleText.d.ts +0 -3
  237. package/dist/Components/Icons/Communication/EnvelopeSimple/EnvelopeSimple.d.ts +0 -3
  238. package/dist/Components/Icons/Communication/Export/Export.d.ts +0 -3
  239. package/dist/Components/Icons/Communication/Phone/Phone.d.ts +0 -3
  240. package/dist/Components/Icons/Communication/ThumbsUp/ThumbsUp.d.ts +0 -3
  241. package/dist/Components/Icons/Communication/Translate/Translate.d.ts +0 -3
  242. package/dist/Components/Icons/Design/DropHalfBottom/DropHalfBottom.d.ts +0 -3
  243. package/dist/Components/Icons/Design/Eye/Eye.d.ts +0 -3
  244. package/dist/Components/Icons/Design/EyeSlash/EyeSlash.d.ts +0 -3
  245. package/dist/Components/Icons/Design/GearFine/GearFine.d.ts +0 -3
  246. package/dist/Components/Icons/Design/PencilLine/PencilLine.d.ts +0 -3
  247. package/dist/Components/Icons/Design/PencilSimple/PencilSimple.d.ts +0 -3
  248. package/dist/Components/Icons/Design/Ruler/Ruler.d.ts +0 -3
  249. package/dist/Components/Icons/Design/SquaresFour/SquaresFour.d.ts +0 -3
  250. package/dist/Components/Icons/Education/BookOpenText/BookOpenText.d.ts +0 -3
  251. package/dist/Components/Icons/Education/BookmarkSimple/BookmarkSimple.d.ts +0 -3
  252. package/dist/Components/Icons/Education/Certificate/Certificate.d.ts +0 -3
  253. package/dist/Components/Icons/Education/GraduationCap/GraduationCap.d.ts +0 -3
  254. package/dist/Components/Icons/Games/Cricket/Cricket.d.ts +0 -3
  255. package/dist/Components/Icons/Games/Football/Football.d.ts +0 -3
  256. package/dist/Components/Icons/Games/Golf/Golf.d.ts +0 -3
  257. package/dist/Components/Icons/HealthAndWellness/Barbell/Barbell.d.ts +0 -3
  258. package/dist/Components/Icons/IconProps.d.ts +0 -4
  259. package/dist/Components/Icons/MapAndTravel/Barn/Barn.d.ts +0 -3
  260. package/dist/Components/Icons/MapAndTravel/Bicycle/Bicycle.d.ts +0 -3
  261. package/dist/Components/Icons/MapAndTravel/Bus/Bus.d.ts +0 -3
  262. package/dist/Components/Icons/MapAndTravel/Car/Car.d.ts +0 -3
  263. package/dist/Components/Icons/MapAndTravel/ChargingStation/ChargingStation.d.ts +0 -3
  264. package/dist/Components/Icons/MapAndTravel/Farm/Farm.d.ts +0 -3
  265. package/dist/Components/Icons/MapAndTravel/Globe/Globe.d.ts +0 -3
  266. package/dist/Components/Icons/MapAndTravel/Goggles/Goggles.d.ts +0 -3
  267. package/dist/Components/Icons/MapAndTravel/House/House.d.ts +0 -3
  268. package/dist/Components/Icons/MapAndTravel/HouseSimple/HouseSimple.d.ts +0 -3
  269. package/dist/Components/Icons/MapAndTravel/MapPin/MapPin.d.ts +0 -3
  270. package/dist/Components/Icons/MapAndTravel/MapTriFold/MapTriFold.d.ts +0 -3
  271. package/dist/Components/Icons/MapAndTravel/Path/Path.d.ts +0 -3
  272. package/dist/Components/Icons/MapAndTravel/RoadHorizon/RoadHorizon.d.ts +0 -3
  273. package/dist/Components/Icons/MapAndTravel/SteeringWheel/SteeringWheel.d.ts +0 -3
  274. package/dist/Components/Icons/MapAndTravel/SwimmingPool/SwimmingPool.d.ts +0 -3
  275. package/dist/Components/Icons/MapAndTravel/Tram/Tram.d.ts +0 -3
  276. package/dist/Components/Icons/MapAndTravel/Van/Van.d.ts +0 -3
  277. package/dist/Components/Icons/MathsAndFinance/Calculator/Calculator.d.ts +0 -3
  278. package/dist/Components/Icons/MathsAndFinance/ChartBar/ChartBar.d.ts +0 -3
  279. package/dist/Components/Icons/MathsAndFinance/ChartBarHorizontal/ChartBarHorizontal.d.ts +0 -3
  280. package/dist/Components/Icons/MathsAndFinance/ChartLine/ChartLine.d.ts +0 -3
  281. package/dist/Components/Icons/MathsAndFinance/ChartLineUp/ChartLineUp.d.ts +0 -3
  282. package/dist/Components/Icons/MathsAndFinance/ChartPie/ChartPie.d.ts +0 -3
  283. package/dist/Components/Icons/MathsAndFinance/Minus/Minus.d.ts +0 -3
  284. package/dist/Components/Icons/MathsAndFinance/MinusCircle/MinusCircle.d.ts +0 -3
  285. package/dist/Components/Icons/MathsAndFinance/NumberSquareThree/NumberSquareThree.d.ts +0 -3
  286. package/dist/Components/Icons/MathsAndFinance/Plus/Plus.d.ts +0 -3
  287. package/dist/Components/Icons/MathsAndFinance/PlusCircle/PlusCircle.d.ts +0 -3
  288. package/dist/Components/Icons/MathsAndFinance/XIcon/XIcon.d.ts +0 -3
  289. package/dist/Components/Icons/Media/Camera/Camera.d.ts +0 -3
  290. package/dist/Components/Icons/Media/DiscoBall/DiscoBall.d.ts +0 -3
  291. package/dist/Components/Icons/Media/FilmStrip/FilmStrip.d.ts +0 -3
  292. package/dist/Components/Icons/Media/Microphone/Microphone.d.ts +0 -3
  293. package/dist/Components/Icons/Media/MusicNotes/MusicNotes.d.ts +0 -3
  294. package/dist/Components/Icons/Media/PlayCircle/PlayCircle.d.ts +0 -3
  295. package/dist/Components/Icons/Media/SlidersHorizontal/SlidersHorizontal.d.ts +0 -3
  296. package/dist/Components/Icons/Media/StopCircle/StopCircle.d.ts +0 -3
  297. package/dist/Components/Icons/Media/VideoCamera/VideoCamera.d.ts +0 -3
  298. package/dist/Components/Icons/OfficeAndEditing/BuildinfOffice/BuildingOffice.d.ts +0 -3
  299. package/dist/Components/Icons/OfficeAndEditing/Copy/Copy.d.ts +0 -3
  300. package/dist/Components/Icons/OfficeAndEditing/FileText/FileText.d.ts +0 -3
  301. package/dist/Components/Icons/OfficeAndEditing/Files/Files.d.ts +0 -3
  302. package/dist/Components/Icons/OfficeAndEditing/FloppyDisk/FloppyDisk.d.ts +0 -3
  303. package/dist/Components/Icons/OfficeAndEditing/Folder/Folder.d.ts +0 -3
  304. package/dist/Components/Icons/OfficeAndEditing/FolderSimplePlus/FolderSimplePlus.d.ts +0 -3
  305. package/dist/Components/Icons/OfficeAndEditing/Folders/Folders.d.ts +0 -3
  306. package/dist/Components/Icons/OfficeAndEditing/List/List.d.ts +0 -3
  307. package/dist/Components/Icons/OfficeAndEditing/ListBullets/ListBullets.d.ts +0 -3
  308. package/dist/Components/Icons/OfficeAndEditing/ListDashes/ListDashes.d.ts +0 -3
  309. package/dist/Components/Icons/OfficeAndEditing/Printer/Printer.d.ts +0 -3
  310. package/dist/Components/Icons/OfficeAndEditing/TextAa/TextAa.d.ts +0 -3
  311. package/dist/Components/Icons/OfficeAndEditing/TextColumns/TextColumns.d.ts +0 -3
  312. package/dist/Components/Icons/OfficeAndEditing/Trash/Trash.d.ts +0 -3
  313. package/dist/Components/Icons/OfficeAndEditing/TrashSimple/TrashSimple.d.ts +0 -3
  314. package/dist/Components/Icons/People/Person/Person.d.ts +0 -3
  315. package/dist/Components/Icons/People/PersonArmsSpread/PersonArmsSpread.d.ts +0 -3
  316. package/dist/Components/Icons/People/PersonSimpleBike/PersonSimpleBike.d.ts +0 -3
  317. package/dist/Components/Icons/People/PersonSimpleSki/PersonSimpleSki.d.ts +0 -3
  318. package/dist/Components/Icons/People/PersonSimpleWalk/PersonSimpleWalk.d.ts +0 -3
  319. package/dist/Components/Icons/People/User/User.d.ts +0 -3
  320. package/dist/Components/Icons/People/UserCircle/UserCircle.d.ts +0 -3
  321. package/dist/Components/Icons/People/UserSwitch/UserSwitch.d.ts +0 -3
  322. package/dist/Components/Icons/People/Users/Users.d.ts +0 -3
  323. package/dist/Components/Icons/SecurityAndWarnings/Info/Info.d.ts +0 -3
  324. package/dist/Components/Icons/SecurityAndWarnings/Key/Key.d.ts +0 -3
  325. package/dist/Components/Icons/SecurityAndWarnings/LockKeyOpen/LockKeyOpen.d.ts +0 -3
  326. package/dist/Components/Icons/SecurityAndWarnings/LockSimple/LockSimple.d.ts +0 -3
  327. package/dist/Components/Icons/SecurityAndWarnings/Question/Question.d.ts +0 -3
  328. package/dist/Components/Icons/SecurityAndWarnings/ShieldCheck/ShieldCheck.d.ts +0 -3
  329. package/dist/Components/Icons/SecurityAndWarnings/WarningCircle/WarningCircle.d.ts +0 -3
  330. package/dist/Components/Icons/SystemAndDevice/Bell/Bell.d.ts +0 -3
  331. package/dist/Components/Icons/SystemAndDevice/Check/Check.d.ts +0 -3
  332. package/dist/Components/Icons/SystemAndDevice/CheckSquare/CheckSquare.d.ts +0 -3
  333. package/dist/Components/Icons/SystemAndDevice/CloudCheck/CloudCheck.d.ts +0 -3
  334. package/dist/Components/Icons/SystemAndDevice/Desktop/Desktop.d.ts +0 -3
  335. package/dist/Components/Icons/SystemAndDevice/DeviceMobile/DeviceMobile.d.ts +0 -3
  336. package/dist/Components/Icons/SystemAndDevice/DotSixVertical/DotSixVertical.d.ts +0 -3
  337. package/dist/Components/Icons/SystemAndDevice/DotsSix/DotsSix.d.ts +0 -3
  338. package/dist/Components/Icons/SystemAndDevice/DotsThree/DotsThree.d.ts +0 -3
  339. package/dist/Components/Icons/SystemAndDevice/DotsThreeVertical/DotsThreeVertical.d.ts +0 -3
  340. package/dist/Components/Icons/SystemAndDevice/DownloadSimple/DownloadSimple.d.ts +0 -3
  341. package/dist/Components/Icons/SystemAndDevice/Gear/Gear.d.ts +0 -3
  342. package/dist/Components/Icons/SystemAndDevice/Link/Link.d.ts +0 -3
  343. package/dist/Components/Icons/SystemAndDevice/MagnifyingGlass/MagnifyingGlass.d.ts +0 -3
  344. package/dist/Components/Icons/SystemAndDevice/RadioButtonIcon/RadioButtonIcon.d.ts +0 -3
  345. package/dist/Components/Icons/SystemAndDevice/SignIn/SignIn.d.ts +0 -3
  346. package/dist/Components/Icons/SystemAndDevice/SignOut/SignOut.d.ts +0 -3
  347. package/dist/Components/Icons/SystemAndDevice/ToggleLeft/ToggleLeft.d.ts +0 -3
  348. package/dist/Components/Icons/SystemAndDevice/ToggleRight/ToggleRight.d.ts +0 -3
  349. package/dist/Components/Icons/Time/Calendar/Calendar.d.ts +0 -3
  350. package/dist/Components/Icons/Time/CalendarBank/CalendarBank.d.ts +0 -3
  351. package/dist/Components/Icons/Time/CalendarCheck/CalendarCheck.d.ts +0 -3
  352. package/dist/Components/Icons/Time/CalendarDots/CalendarDots.d.ts +0 -3
  353. package/dist/Components/Icons/Time/Clock/Clock.d.ts +0 -3
  354. package/dist/Components/Icons/Time/ClockCounterClockwise/ClockCounterClockwise.d.ts +0 -3
  355. package/dist/Components/Icons/WeatherAndNature/Bird/Bird.d.ts +0 -3
  356. package/dist/Components/Icons/WeatherAndNature/Campfire/Campfire.d.ts +0 -3
  357. package/dist/Components/Icons/WeatherAndNature/CloudSun/CloudSun.d.ts +0 -3
  358. package/dist/Components/Icons/WeatherAndNature/Cow/Cow.d.ts +0 -3
  359. package/dist/Components/Icons/WeatherAndNature/Dog/Dog.d.ts +0 -3
  360. package/dist/Components/Icons/WeatherAndNature/FishSimple/FishSimple.d.ts +0 -3
  361. package/dist/Components/Icons/WeatherAndNature/Flower/Flower.d.ts +0 -3
  362. package/dist/Components/Icons/WeatherAndNature/Moon/Moon.d.ts +0 -3
  363. package/dist/Components/Icons/WeatherAndNature/Mountains/Mountains.d.ts +0 -3
  364. package/dist/Components/Icons/WeatherAndNature/Plant/Plant.d.ts +0 -3
  365. package/dist/Components/Icons/WeatherAndNature/Snowflake/Snowflake.d.ts +0 -3
  366. package/dist/Components/Icons/WeatherAndNature/Sparkle/Sparkle.d.ts +0 -3
  367. package/dist/Components/Icons/WeatherAndNature/Sun/Sun.d.ts +0 -3
  368. package/dist/Components/Icons/WeatherAndNature/Tree/Tree.d.ts +0 -3
  369. package/dist/Components/Icons/index.d.ts +0 -123
  370. package/dist/Components/Layout/Footer/Footer.d.ts +0 -3
  371. package/dist/Components/Layout/Footer/FooterBottom.d.ts +0 -3
  372. package/dist/Components/Layout/Footer/FooterBottomLeft.d.ts +0 -3
  373. package/dist/Components/Layout/Footer/FooterBottomLeftProps.d.ts +0 -11
  374. package/dist/Components/Layout/Footer/FooterBottomProps.d.ts +0 -5
  375. package/dist/Components/Layout/Footer/FooterBottomRight.d.ts +0 -3
  376. package/dist/Components/Layout/Footer/FooterBottomRightProps.d.ts +0 -6
  377. package/dist/Components/Layout/Footer/FooterItem.d.ts +0 -3
  378. package/dist/Components/Layout/Footer/FooterItemProps.d.ts +0 -6
  379. package/dist/Components/Layout/Footer/FooterMiddle.d.ts +0 -3
  380. package/dist/Components/Layout/Footer/FooterMiddleProps.d.ts +0 -6
  381. package/dist/Components/Layout/Footer/FooterProps.d.ts +0 -9
  382. package/dist/Components/Layout/Footer/FooterTop.d.ts +0 -3
  383. package/dist/Components/Layout/Footer/FooterTopProps.d.ts +0 -7
  384. package/dist/Components/Layout/Footer/footer-bg-design.d.ts +0 -2
  385. package/dist/Components/Layout/Header/Header.d.ts +0 -3
  386. package/dist/Components/Layout/Header/HeaderProps.d.ts +0 -7
  387. package/dist/Components/Layout/Header/HeaderRight.d.ts +0 -3
  388. package/dist/Components/Layout/Header/HeaderRightItem.d.ts +0 -3
  389. package/dist/Components/Layout/Header/HeaderRightItemProps.d.ts +0 -11
  390. package/dist/Components/Layout/Header/HeaderRightProps.d.ts +0 -5
  391. package/dist/Components/Layout/Header/MagnifyingGlass/MagnifyingGlass.d.ts +0 -2
  392. package/dist/Components/Layout/Header/MegaMenu/MegaMenu.d.ts +0 -2
  393. package/dist/Components/Layout/Header/MegaMenu/MegaMenuProps.d.ts +0 -4
  394. package/dist/Components/Layout/HeroBanner/HeroBanner.d.ts +0 -3
  395. package/dist/Components/Layout/HeroBanner/HeroBannerProps.d.ts +0 -9
  396. package/dist/Components/Layout/HeroBanner/LargeHeroIcon.d.ts +0 -2
  397. package/dist/Components/Layout/index.d.ts +0 -22
  398. package/dist/Components/Shared/Container/Container.d.ts +0 -3
  399. package/dist/Components/Shared/Container/ContainerProps.d.ts +0 -6
  400. package/dist/Components/Shared/ElementHolder/ElementHolder.d.ts +0 -3
  401. package/dist/Components/Shared/ElementHolder/ElementHolderProps.d.ts +0 -15
  402. package/dist/Components/Shared/index.d.ts +0 -4
  403. package/dist/img/card-one.png +0 -0
  404. package/dist/img/card-three.png +0 -0
  405. package/dist/img/card-two.png +0 -0
  406. package/dist/img/footer-bg-design.svg +0 -14
  407. package/dist/img/footer-logo.svg +0 -9
  408. package/dist/img/promo-banner-image.svg +0 -9
  409. package/dist/img/visit-brand-piller.svg +0 -6
  410. package/dist/img/waikirikiri-full-logo.svg +0 -23
  411. package/dist/index.cjs.js +0 -14
  412. package/dist/index.cjs.js.map +0 -1
  413. package/dist/index.d.ts +0 -5
  414. package/dist/index.es.d.ts +0 -2
  415. package/dist/index.es.js +0 -6787
  416. package/dist/index.es.js.map +0 -1
  417. package/dist/main.d.ts +0 -0
  418. package/dist/selwynui.css +0 -1
  419. package/dist/tsconfig.app.tsbuildinfo +0 -1
  420. package/dist/vite.svg +0 -1
  421. package/src/Components/DataDisplay/Pathway/Pathway.tsx +0 -94
  422. package/src/Components/DataDisplay/Pathway/PathwayProps.tsx +0 -17
@@ -1,98 +1,171 @@
1
- import MegaMenuProps from "./MegaMenuProps.tsx";
1
+ import { useState } from "react";
2
+ import MegaMenuProps, { MenuItem } from "./MegaMenuProps.tsx";
2
3
  import PillarLogo from "../../../Shared/PillarLogo/PillarLogo.tsx";
3
4
  import Button from "../../../Form/Button/Button.tsx";
4
5
  import ArrowRight from "../../../Icons/Arrows/ArrowRight/ArrowRight.tsx";
5
- import styles from "./megaMenu.module.scss"
6
+ import styles from "./megaMenu.module.scss";
6
7
  import Container from "../../../Shared/Container/Container.tsx";
7
8
 
8
- const MegaMenu = (props : MegaMenuProps) => {
9
-
9
+ const MegaMenu = (props: MegaMenuProps) => {
10
10
  const {
11
- pillar,
12
- menu,
13
- imageSrc,
14
- heading,
15
- headingHighlight,
16
- description
17
- } = props
11
+ pillar = "main",
12
+ menu = [],
13
+ defaultImg,
14
+ defaultBoldTitle,
15
+ defaultDescription,
16
+ defaultTitle,
17
+ defaultAction,
18
+ } = props;
18
19
 
19
- return <div className={`${styles.megaMenu} ${pillar}`}>
20
- <div className={`${styles.megaMenuHolder}`}>
21
- <Container>
22
- <div className={`${styles.megaMenuWrapper} megaMenuWrapper`}>
23
- <div className={styles.left}>
24
- <div className={styles.pillarIcon}>
25
- <PillarLogo brandPillar={pillar} brandFullLogo={true}/>
26
- </div>
27
- <ul>
28
- <li>
29
- <a href={''}>
30
- Link
31
- <ArrowRight type={'light'}/>
32
- </a>
33
- </li>
34
- <li>
35
- <a href={''}>
36
- Link
37
- <ArrowRight type={'light'}/>
38
- </a>
39
- </li>
40
- <li>
41
- <a href={''}>
42
- Link
43
- <ArrowRight type={'light'}/>
44
- </a>
45
- </li>
46
- <li>
47
- <a href={''}>
48
- Link
49
- <ArrowRight type={'light'}/>
50
- </a>
51
- </li>
52
- </ul>
53
- </div>
54
- <div className={styles.right}>
55
- <div className={styles.preview}>
56
- <div className={styles.previewWrapper}>
57
- <div className={styles.previewImg}>
58
- <img src={'https://images.pexels.com/photos/709143/pexels-photo-709143.jpeg'}/>
59
- </div>
60
- <div className={styles.content}>
61
- <h5>
62
- Spring gardens
63
- <br/>
64
- <span>in Selwyn</span>
65
- </h5>
66
- <p>
67
- Visit Selwyn is for those who like to take the back roads, breathe mountain air, and find their own pace. Stay a little longer, explore deeper, and refuel with great kai and local stories along the way.
68
- </p>
20
+ // ACTIVE ITEM ON HOVER
21
+ const [activeItem, setActiveItem] = useState<MenuItem | null>(null);
22
+
23
+ // Preview values (image, title, description)
24
+ const previewImg = activeItem?.imageUrl || defaultImg;
25
+ const previewTitle = activeItem?.title || defaultTitle;
26
+ const previewBoldTitle = activeItem?.boldTitle || defaultBoldTitle;
27
+ const previewDesc = activeItem?.description || defaultDescription;
28
+
29
+ // Action button (from hovered item or default)
30
+ const previewAction = activeItem?.action || defaultAction || {
31
+ label: "",
32
+ url: "",
33
+ target: "_self",
34
+ rel: "",
35
+ };
36
+
37
+ return (
38
+ <div className={`${styles.megaMenu} megaMenu ${pillar}`}>
39
+ <div className={`${styles.megaMenuHolder} megaMenuHolder`}>
40
+ <Container border={false}>
41
+ <div className={`${styles.megaMenuWrapper} megaMenuWrapper`}>
42
+ {/* LEFT */}
43
+ <div className={`${styles.left} left`}>
44
+ <div className={`${styles.pillarIcon} pillarIcon`}>
45
+ <PillarLogo brandPillar={pillar} brandFullLogo={true} />
69
46
  </div>
70
- <div className={styles.action}>
71
- <Button pillar={pillar} label={'START EXPLORING'} secondaryIcon={<ArrowRight/>}/>
47
+
48
+ <ul>
49
+ {menu.map((item, i) => (
50
+ <li key={i}>
51
+ <a
52
+ href={item.url || "#"}
53
+ target={item.target || "_self"}
54
+ onMouseEnter={() => setActiveItem(item)}
55
+ onMouseLeave={() => setActiveItem(null)}
56
+ >
57
+ {item.label}
58
+ <ArrowRight type={"light"} />
59
+ </a>
60
+ </li>
61
+ ))}
62
+ </ul>
63
+ </div>
64
+
65
+ {/* RIGHT PREVIEW */}
66
+ <div className={styles.right}>
67
+ <div className={styles.preview}>
68
+ <div className={styles.previewWrapper}>
69
+ <div className={styles.previewImg}>
70
+ {previewImg && <img src={previewImg} alt="" />}
71
+ </div>
72
+
73
+ <div className={styles.content}>
74
+ <h5>
75
+ {previewTitle}
76
+ <br />
77
+ <span>{previewBoldTitle}</span>
78
+ </h5>
79
+
80
+ <p>{previewDesc}</p>
81
+ </div>
82
+
83
+ { previewAction.label && <div className={styles.action}>
84
+ <Button
85
+ pillar={pillar}
86
+ label={previewAction.label}
87
+ linkable={true}
88
+ link={{
89
+ url: previewAction.url || "",
90
+ target: previewAction.target || "_self",
91
+ rel: previewAction.rel || "",
92
+ }}
93
+ secondaryIcon={<ArrowRight />}
94
+ />
95
+ </div>
96
+ }
97
+ </div>
72
98
  </div>
73
99
  </div>
74
100
  </div>
101
+ </Container>
102
+
103
+ {/* SVG BACKGROUND */}
104
+ <div className={styles.megaMenuSvg}>
105
+ <svg
106
+ xmlns="http://www.w3.org/2000/svg"
107
+ width="741"
108
+ height="340"
109
+ viewBox="0 0 741 340"
110
+ fill="none"
111
+ >
112
+ <g opacity="0.1">
113
+ <path
114
+ opacity="0.5"
115
+ d="M0 113.209C68.1991 113.209 123.5 163.901 123.5 226.417H0V113.209Z"
116
+ fill="currentColor"
117
+ />
118
+ <path
119
+ opacity="0.25"
120
+ d="M247 113.209C178.801 113.209 123.5 163.901 123.5 226.417H247V113.209Z"
121
+ fill="currentColor"
122
+ />
123
+ <path
124
+ opacity="0.5"
125
+ d="M741 226.417C672.801 226.417 617.5 175.725 617.5 113.209H741V226.417Z"
126
+ fill="currentColor"
127
+ />
128
+ <path
129
+ opacity="0.75"
130
+ d="M123.5 226.416C191.699 226.416 247 277.109 247 339.624H123.5V226.416Z"
131
+ fill="currentColor"
132
+ />
133
+ <path
134
+ opacity="0.5"
135
+ d="M247 339.624C315.199 339.624 370.5 288.932 370.5 226.416H247V339.624Z"
136
+ fill="currentColor"
137
+ />
138
+ <path
139
+ opacity="0.25"
140
+ d="M494 339.625C425.801 339.625 370.5 288.932 370.5 226.417H494V339.625Z"
141
+ fill="currentColor"
142
+ />
143
+ <path
144
+ opacity="0.75"
145
+ d="M617.5 226.417C549.301 226.417 494 277.109 494 339.625H617.5V226.417Z"
146
+ fill="currentColor"
147
+ />
148
+ <path
149
+ opacity="0.25"
150
+ d="M494 0.000656128C562.199 0.000656128 617.5 50.6932 617.5 113.209H494V0.000656128Z"
151
+ fill="currentColor"
152
+ />
153
+ <path
154
+ opacity="0.5"
155
+ d="M370.5 226.417C438.699 226.417 494 175.725 494 113.209H370.5V226.417Z"
156
+ fill="currentColor"
157
+ />
158
+ <path
159
+ opacity="0.75"
160
+ d="M247 113.208C315.199 113.208 370.5 62.5158 370.5 0H247V113.208Z"
161
+ fill="currentColor"
162
+ />
163
+ </g>
164
+ </svg>
75
165
  </div>
76
166
  </div>
77
- </Container>
78
- <div className={styles.megaMenuSvg}>
79
- <svg xmlns="http://www.w3.org/2000/svg" width="741" height="340" viewBox="0 0 741 340" fill="none">
80
- <g opacity="0.1">
81
- <path opacity="0.5" d="M0 113.209C68.1991 113.209 123.5 163.901 123.5 226.417H0V113.209Z" fill="currentColor"/>
82
- <path opacity="0.25" d="M247 113.209C178.801 113.209 123.5 163.901 123.5 226.417H247V113.209Z" fill="currentColor"/>
83
- <path opacity="0.5" d="M741 226.417C672.801 226.417 617.5 175.725 617.5 113.209H741V226.417Z" fill="currentColor"/>
84
- <path opacity="0.75" d="M123.5 226.416C191.699 226.416 247 277.109 247 339.624H123.5V226.416Z" fill="currentColor"/>
85
- <path opacity="0.5" d="M247 339.624C315.199 339.624 370.5 288.932 370.5 226.416H247V339.624Z" fill="currentColor"/>
86
- <path opacity="0.25" d="M494 339.625C425.801 339.625 370.5 288.932 370.5 226.417H494V339.625Z" fill="currentColor"/>
87
- <path opacity="0.75" d="M617.5 226.417C549.301 226.417 494 277.109 494 339.625H617.5V226.417Z" fill="currentColor"/>
88
- <path opacity="0.25" d="M494 0.000656128C562.199 0.000656128 617.5 50.6932 617.5 113.209H494V0.000656128Z" fill="currentColor"/>
89
- <path opacity="0.5" d="M370.5 226.417C438.699 226.417 494 175.725 494 113.209H370.5V226.417Z" fill="currentColor"/>
90
- <path opacity="0.75" d="M247 113.208C315.199 113.208 370.5 62.5158 370.5 0H247V113.208Z" fill="currentColor"/>
91
- </g>
92
- </svg>
93
- </div>
94
167
  </div>
95
- </div>
96
- }
168
+ );
169
+ };
97
170
 
98
- export default MegaMenu;
171
+ export default MegaMenu;
@@ -1,20 +1,33 @@
1
1
  export interface MenuItem {
2
- label: string;
3
- url: string;
4
- imageUrl: string;
5
- title: string;
6
- description: string;
7
- target: string;
8
- pillar: 'vist' | 'live' | 'business' | 'participate' | 'taste';
2
+ label?: string;
3
+ url?: string;
4
+ imageUrl?: string;
5
+ title?: string;
6
+ boldTitle?:string
7
+ description?: string;
8
+ target?: string;
9
+ action?: {
10
+ label?: string;
11
+ url?: string;
12
+ target?: "_blank" | "_self" | "_parent" | "_top" | undefined;
13
+ rel?: string;
14
+ };
15
+ pillar?: 'visit' | 'live' | 'business' | 'participate' | 'taste';
9
16
  }
10
17
 
11
18
  interface MegaMenuProps {
12
- pillar: 'vist' | 'live' | 'business' | 'participate' | 'taste';
19
+ pillar: 'visit' | 'live' | 'business' | 'participate' | 'taste';
13
20
  menu: MenuItem[];
14
- headingHighlight?: string;
15
21
  defaultImg?:string
16
22
  defaultTitle?: string;
23
+ defaultBoldTitle?: string;
17
24
  defaultDescription?:string;
25
+ defaultAction?: {
26
+ label?: string;
27
+ url?: string;
28
+ target?: "_blank" | "_self" | "_parent" | "_top" | undefined;
29
+ rel?: string;
30
+ };
18
31
  }
19
32
 
20
33
  export default MegaMenuProps;
@@ -3,7 +3,7 @@
3
3
  right: 0;
4
4
  left: 0;
5
5
  background: var(--color-bg);
6
- top: 96px;
6
+ top: 97px;
7
7
  border-radius: 0 0 366px 0;
8
8
  overflow-x: hidden;
9
9
 
@@ -19,6 +19,7 @@
19
19
  }
20
20
 
21
21
  .megaMenuSvg{
22
+ pointer-events: none;
22
23
  position: absolute;
23
24
  color: var(--color-text);
24
25
  bottom: 0;
@@ -33,7 +34,7 @@
33
34
  display: flex;
34
35
  flex-wrap: wrap;
35
36
  position: relative;
36
- min-height: 878px;
37
+ min-height: calc(100vh - 96px);
37
38
 
38
39
  .right{
39
40
  width: 40%;
@@ -120,6 +121,7 @@
120
121
 
121
122
  .action{
122
123
  padding-top: 48px;
124
+ padding-bottom: 24px;
123
125
  padding-left: 72px;
124
126
  }
125
127
 
@@ -7,11 +7,12 @@ const MobileNavigation = (props : MobileNavigationProps) => {
7
7
 
8
8
  const {
9
9
  children,
10
- extraClass
10
+ extraClass,
11
+ pillar = 'visit'
11
12
  } = props
12
13
 
13
- return <div className={`${styles.mobileNavigation} ${extraClass} mobileNavigation`}>
14
- <Container>
14
+ return <div className={`${styles.mobileNavigation} ${pillar} ${extraClass} mobileNavigation`}>
15
+ <Container border={false}>
15
16
  <ul className={`${styles.mobileNavigationWrapper} mobileNavigationWrapper`}>
16
17
  {children}
17
18
  </ul>
@@ -3,6 +3,7 @@ import {ReactNode} from "react";
3
3
  interface MobileNavigationProps {
4
4
  children?:ReactNode;
5
5
  extraClass?:string;
6
+ pillar: 'visit' | 'live' | 'business' | 'participate' | 'taste';
6
7
  }
7
8
 
8
9
  export default MobileNavigationProps
@@ -1,6 +1,6 @@
1
1
  import MobileSubNavigationProps from "./MobileSubNavigationProps.tsx";
2
2
  import styles from '../mobileNavigation.module.scss'
3
- import {Container} from "../../../Shared";
3
+ import Container from "../../../../Shared/Container/Container.tsx";
4
4
 
5
5
  const MobileSubNavigation = (props : MobileSubNavigationProps) => {
6
6
 
@@ -10,7 +10,7 @@ const MobileSubNavigation = (props : MobileSubNavigationProps) => {
10
10
  } = props
11
11
 
12
12
  return <div className={`${styles.MobileSubNavigation} ${extraClass} MobileSubNavigation`}>
13
- <Container>
13
+ <Container border={false}>
14
14
  <ul className={`${styles.MobileSubNavigationWrapper} MobileSubNavigationWrapper`}>
15
15
  {children}
16
16
  </ul>
@@ -1,6 +1,6 @@
1
- import styles from '././mobileNavigation.module.scss'
2
- import MobileNavigationItemProps from "./MobileNavigationItemProps.tsx";
3
- import ArrowRight from "../../../Icons/Arrows/ArrowRight/ArrowRight.tsx";
1
+ import styles from '../mobileNavigation.module.scss'
2
+ import ArrowRight from "../../../../Icons/Arrows/ArrowRight/ArrowRight.tsx";
3
+ import MobileNavigationItemProps from "../MobileNavigationItemProps.tsx";
4
4
 
5
5
  const MobileNavigationItem = (props : MobileNavigationItemProps) => {
6
6
 
@@ -1,13 +1,17 @@
1
1
  .header{
2
- background: var(--header-bg);
3
2
  backdrop-filter: blur(10px);
4
3
  border-bottom: 1px solid var(--color-taste);
5
4
 
5
+ &.active{
6
+ background: var(--header-bg);
7
+ }
8
+
6
9
  .headerWrapper{
7
10
  display: flex;
8
11
  align-items: flex-end;
9
12
  justify-content: space-between;
10
13
  min-height: 60px;
14
+ width: 100%;
11
15
  }
12
16
 
13
17
  .headerLogo{
@@ -30,11 +34,9 @@
30
34
  .headerRightWrapper{
31
35
  display: flex;
32
36
  align-items: center;
33
- margin: 0 -12px;
34
37
  }
35
38
 
36
39
  .headerBottomItemHolder{
37
- padding: 0 12px 12px 12px;
38
40
  transition: all 0.3s ease-in;
39
41
 
40
42
  a{
@@ -45,11 +47,14 @@
45
47
  font-weight: 400;
46
48
  line-height: 1.5;
47
49
  cursor: pointer;
50
+ letter-spacing: -0.96px;
48
51
 
49
52
  .icon{
50
53
  display: flex;
51
54
 
52
55
  svg{
56
+ margin-left: 20px;
57
+ flex-shrink: 0;
53
58
  width: 24px;
54
59
  height: 24px;
55
60
  }
@@ -91,19 +96,6 @@
91
96
  }
92
97
 
93
98
 
94
- @media screen and (min-width: 1648px) {
95
-
96
- .headerRightWrapper{
97
- display: flex;
98
- align-items: center;
99
- margin: 0 -28px;
100
- }
101
-
102
- .headerBottomItemHolder {
103
- padding: 0 28px 30px 28px;
104
- }
105
- }
106
-
107
99
 
108
100
  @media screen and (min-width: 992px) {
109
101
 
@@ -120,9 +112,15 @@
120
112
  }
121
113
 
122
114
 
123
- .headerBottomItemHolder {
124
- padding-bottom:30px ;
125
- }
115
+ .headerRightWrapper{
116
+ display: flex;
117
+ align-items: center;
118
+ }
119
+
120
+ .headerBottomItemHolder {
121
+ padding-bottom: 30px;
122
+ padding-left: 60px;
123
+ }
126
124
 
127
125
  }
128
126
 
@@ -16,7 +16,7 @@ const HeroBanner = (props : HeroBannerProps) => {
16
16
  ${pillar ? `${pillar}` : ""}
17
17
  `}
18
18
  >
19
- <Container>
19
+ <Container border={false}>
20
20
  <div className={styles.heroWrapper}>
21
21
  <div className={styles.content}>
22
22
  <h1>{title} <span>{boldTitle}</span></h1>
@@ -43,7 +43,7 @@ const HeroBanner = (props : HeroBannerProps) => {
43
43
  ${pillar ? `${pillar}` : ""}
44
44
  `}
45
45
  >
46
- <Container>
46
+ <Container border={false}>
47
47
  <div className={styles.heroWrapper}>
48
48
  <div className={styles.content}>
49
49
  <h1>{title} <span>{boldTitle}</span></h1>
@@ -71,16 +71,16 @@ const HeroBanner = (props : HeroBannerProps) => {
71
71
  >
72
72
  <div className={styles.heroImg}>
73
73
  <img src={backgroundImg} alt="hero banner" />
74
+ <div className={styles.heroSvg}>
75
+ <LargeHeroIcon/>
76
+ </div>
74
77
  </div>
75
- <Container>
78
+ <Container border={false}>
76
79
  <div className={styles.heroWrapper}>
77
80
  <h1>{title} <span>{boldTitle}</span></h1>
78
81
  {description && <p>{description}</p>}
79
82
  </div>
80
83
  </Container>
81
- <div className={styles.heroSvg}>
82
- <LargeHeroIcon/>
83
- </div>
84
84
  </div>
85
85
  }
86
86
 
@@ -3,7 +3,8 @@
3
3
 
4
4
  &Large{
5
5
  position: relative;
6
- min-height: 90vh;
6
+ min-height: 494px;
7
+ overflow-x: hidden;
7
8
 
8
9
  .heroImg{
9
10
  position: absolute;
@@ -11,7 +12,7 @@
11
12
  right: 0;
12
13
  top: 0;
13
14
  bottom: 0;
14
- border-radius: 0 0 366px 0;
15
+ border-radius: 0 0 76.25px 0;
15
16
  overflow: hidden;
16
17
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.00) 41.35%), linear-gradient(0deg, rgba(124, 132, 123, 0.05) 0%, rgba(124, 132, 123, 0.05) 100%), #000;
17
18
 
@@ -29,15 +30,15 @@
29
30
  z-index: 10;
30
31
  width: 100%;
31
32
  height: 100%;
32
- padding-top: 112px;
33
+ padding-top: 104px;
33
34
  color: var(--color-text);
34
35
 
35
36
  h1{
36
37
  max-width: 898px;
37
- font-size: var(--font-size-h1);
38
+ font-size: 44px;
38
39
  line-height: 1;
39
40
  font-weight: 400;
40
- letter-spacing: -7.68px;
41
+ letter-spacing: -1.76px;
41
42
 
42
43
  span{
43
44
  font-weight: 700;
@@ -52,7 +53,7 @@
52
53
  z-index: 5;
53
54
  left: 0;
54
55
  bottom: 0;
55
- height: 340px;
56
+ height: 165px;
56
57
  }
57
58
 
58
59
  }
@@ -136,6 +137,8 @@
136
137
 
137
138
  &Small{
138
139
  position: relative;
140
+ min-height: 600px;
141
+ overflow-x: hidden;
139
142
 
140
143
  .heroWrapper{
141
144
  display: flex;
@@ -210,6 +213,28 @@
210
213
 
211
214
  @media screen and (min-width: 992px) {
212
215
 
216
+ &Large{
217
+ min-height: 100vh;
218
+
219
+ .heroImg{
220
+ border-radius: 0 0 366px 0;
221
+ }
222
+
223
+ .heroWrapper{
224
+ h1{
225
+ font-size: var(--font-size-h1);
226
+ letter-spacing: -1.68px;
227
+ }
228
+
229
+ padding-top: 207px;
230
+ }
231
+
232
+ .heroSvg{
233
+ height: 340px;
234
+ }
235
+
236
+ }
237
+
213
238
  &Medium{
214
239
  .heroWrapper{
215
240
 
@@ -250,4 +275,15 @@
250
275
 
251
276
  }
252
277
 
278
+ @media screen and (min-width: 1400px) {
279
+ &Large{
280
+ .heroWrapper{
281
+ h1{
282
+ letter-spacing: -7.68px;
283
+ }
284
+
285
+ }
286
+ }
287
+ }
288
+
253
289
  }
@@ -27,5 +27,14 @@ export { default as HeroBanner } from './HeroBanner/HeroBanner';
27
27
  export type { default as HeroBannerProps } from './HeroBanner/HeroBannerProps';
28
28
 
29
29
  // Megamenu
30
- export { default as MegaMenu} from './Header/MegaMenu/MegaMenu.tsx'
31
- export type { default as MegaMenuProps } from './Header/MegaMenu/MegaMenuProps.tsx'
30
+ export { default as MegaMenu} from './Header/MegaMenu/MegaMenu'
31
+ export type { default as MegaMenuProps } from './Header/MegaMenu/MegaMenuProps'
32
+
33
+ //MobileNavigation
34
+ export { default as MobileNavigation } from './Header/MobileNavigation/MobileNavigation'
35
+ export { default as MobileNavigationItem} from './Header/MobileNavigation/MobileNavigationItem'
36
+
37
+
38
+ //MobileNavigation
39
+ export { default as MobileSubNavigation } from './Header/MobileNavigation/MobileSubNavigation/MobileSubNavigation'
40
+ export { default as MobileSubNavigationItem } from './Header/MobileNavigation/MobileSubNavigation/MobileSubNavigationItem'
@@ -0,0 +1,16 @@
1
+ import { createContext, ReactNode } from "react";
2
+ interface SkopeUIContextType {
3
+ modalStack: ReactNode[];
4
+ openModal: (modal: React.ReactNode) => void;
5
+ closeModal: () => void;
6
+ closeAllModals: () => void;
7
+ }
8
+
9
+ const SelwynUIContext = createContext<SkopeUIContextType>({
10
+ modalStack: [],
11
+ openModal: () => {},
12
+ closeModal: () => {},
13
+ closeAllModals: () => {},
14
+ });
15
+
16
+ export default SelwynUIContext;