@hellobetterdigitalnz/selwynui 0.0.1-1

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 (516) hide show
  1. package/README.md +73 -0
  2. package/dist/App.d.ts +2 -0
  3. package/dist/Components/DataDisplay/DetailsCard/DetailsCard.d.ts +3 -0
  4. package/dist/Components/DataDisplay/DetailsCard/DetailsCardProps.d.ts +10 -0
  5. package/dist/Components/DataDisplay/ImageContent/ImageContent.d.ts +3 -0
  6. package/dist/Components/DataDisplay/ImageContent/ImageContentMaskingImages.d.ts +2 -0
  7. package/dist/Components/DataDisplay/ImageContent/ImageContentProps.d.ts +27 -0
  8. package/dist/Components/DataDisplay/IntroBlock/IntroBlock.d.ts +3 -0
  9. package/dist/Components/DataDisplay/IntroBlock/IntroBlockProps.d.ts +8 -0
  10. package/dist/Components/DataDisplay/KPIBlock/KPIBlock.d.ts +3 -0
  11. package/dist/Components/DataDisplay/KPIBlock/KPIBlockProps.d.ts +11 -0
  12. package/dist/Components/DataDisplay/Pathway/Pathway.d.ts +3 -0
  13. package/dist/Components/DataDisplay/Pathway/PathwayProps.d.ts +15 -0
  14. package/dist/Components/DataDisplay/PromoBannerBlock/PromoBannerBlock.d.ts +3 -0
  15. package/dist/Components/DataDisplay/PromoBannerBlock/PromoBannerBlockProps.d.ts +14 -0
  16. package/dist/Components/DataDisplay/PromoBannerBlock/promo-banner-bg-design.d.ts +2 -0
  17. package/dist/Components/DataDisplay/index.d.ts +10 -0
  18. package/dist/Components/Form/Button/Button.d.ts +3 -0
  19. package/dist/Components/Form/Button/ButtonProps.d.ts +14 -0
  20. package/dist/Components/Form/index.d.ts +2 -0
  21. package/dist/Components/Icons/Arrows/ArrowLeft/ArrowLeft.d.ts +3 -0
  22. package/dist/Components/Icons/Arrows/ArrowRight/ArrowRight.d.ts +3 -0
  23. package/dist/Components/Icons/Arrows/ArrowSquareOut/ArrowSquareOut.d.ts +3 -0
  24. package/dist/Components/Icons/Arrows/ArrowsDownUp/ArrowsDownUp.d.ts +3 -0
  25. package/dist/Components/Icons/Arrows/ArrowsOutCardinal/ArrowsOutCardinal.d.ts +3 -0
  26. package/dist/Components/Icons/Arrows/CaretCircleRight/CaretCircleRight.d.ts +3 -0
  27. package/dist/Components/Icons/Arrows/CaretDown/CaretDown.d.ts +3 -0
  28. package/dist/Components/Icons/Arrows/CaretLeft/CaretLeft.d.ts +3 -0
  29. package/dist/Components/Icons/Arrows/CaretRight/CaretRight.d.ts +3 -0
  30. package/dist/Components/Icons/Arrows/CaretUp/CaretUp.d.ts +3 -0
  31. package/dist/Components/Icons/Arrows/CaretUpDown/CaretUpDown.d.ts +3 -0
  32. package/dist/Components/Icons/Brands/FacebookLogo/FacebookLogo.d.ts +3 -0
  33. package/dist/Components/Icons/Brands/InstagramLogo/InstagramLogo.d.ts +3 -0
  34. package/dist/Components/Icons/Brands/LinkedinLogo/LinkedinLogo.d.ts +3 -0
  35. package/dist/Components/Icons/Brands/WindowsLogo/WindowsLogo.d.ts +3 -0
  36. package/dist/Components/Icons/Commerce/Backpack/Backpack.d.ts +3 -0
  37. package/dist/Components/Icons/Commerce/BowlSteam/BowlSteam.d.ts +3 -0
  38. package/dist/Components/Icons/Commerce/Bread/Bread.d.ts +3 -0
  39. package/dist/Components/Icons/Commerce/Cheers/Cheers.d.ts +3 -0
  40. package/dist/Components/Icons/Commerce/ChefHat/ChefHat.d.ts +3 -0
  41. package/dist/Components/Icons/Commerce/Coffee/Coffee.d.ts +3 -0
  42. package/dist/Components/Icons/Commerce/CreditCard/CreditCard.d.ts +3 -0
  43. package/dist/Components/Icons/Commerce/CurrencyDollarSimple/CurrencyDollarSimple.d.ts +3 -0
  44. package/dist/Components/Icons/Commerce/Grains/Grains.d.ts +3 -0
  45. package/dist/Components/Icons/Commerce/Scale/Scale.d.ts +3 -0
  46. package/dist/Components/Icons/Commerce/StoreFront/StoreFront.d.ts +3 -0
  47. package/dist/Components/Icons/Communication/AddressBook/AddressBook.d.ts +3 -0
  48. package/dist/Components/Icons/Communication/AddressBook/AddressBook.stories.d.ts +21 -0
  49. package/dist/Components/Icons/Communication/AsterickSimple/AsteriskSimple.d.ts +3 -0
  50. package/dist/Components/Icons/Communication/AsterickSimple/AsteriskSimple.stories.d.ts +21 -0
  51. package/dist/Components/Icons/Communication/Asterisk/Asterisk.d.ts +3 -0
  52. package/dist/Components/Icons/Communication/Asterisk/Asterisk.stories.d.ts +21 -0
  53. package/dist/Components/Icons/Communication/At/At.d.ts +3 -0
  54. package/dist/Components/Icons/Communication/At/At.stories.d.ts +21 -0
  55. package/dist/Components/Icons/Communication/Broadcast/Broadcast.d.ts +3 -0
  56. package/dist/Components/Icons/Communication/Broadcast/Broadcast.stories.d.ts +21 -0
  57. package/dist/Components/Icons/Communication/Chat/Chat.d.ts +3 -0
  58. package/dist/Components/Icons/Communication/Chat/Chat.stories.d.ts +21 -0
  59. package/dist/Components/Icons/Communication/ChatCircleText/ChatCircleText.d.ts +3 -0
  60. package/dist/Components/Icons/Communication/EnvelopeSimple/EnvelopeSimple.d.ts +3 -0
  61. package/dist/Components/Icons/Communication/Export/Export.d.ts +3 -0
  62. package/dist/Components/Icons/Communication/Phone/Phone.d.ts +3 -0
  63. package/dist/Components/Icons/Communication/ThumbsUp/ThumbsUp.d.ts +3 -0
  64. package/dist/Components/Icons/Communication/Translate/Translate.d.ts +3 -0
  65. package/dist/Components/Icons/Design/DropHalfBottom/DropHalfBottom.d.ts +3 -0
  66. package/dist/Components/Icons/Design/Eye/Eye.d.ts +3 -0
  67. package/dist/Components/Icons/Design/EyeSlash/EyeSlash.d.ts +3 -0
  68. package/dist/Components/Icons/Design/GearFine/GearFine.d.ts +3 -0
  69. package/dist/Components/Icons/Design/PencilLine/PencilLine.d.ts +3 -0
  70. package/dist/Components/Icons/Design/PencilSimple/PencilSimple.d.ts +3 -0
  71. package/dist/Components/Icons/Design/Ruler/Ruler.d.ts +3 -0
  72. package/dist/Components/Icons/Design/SquaresFour/SquaresFour.d.ts +3 -0
  73. package/dist/Components/Icons/Education/BookOpenText/BookOpenText.d.ts +3 -0
  74. package/dist/Components/Icons/Education/BookmarkSimple/BookmarkSimple.d.ts +3 -0
  75. package/dist/Components/Icons/Education/Certificate/Certificate.d.ts +3 -0
  76. package/dist/Components/Icons/Education/GraduationCap/GraduationCap.d.ts +3 -0
  77. package/dist/Components/Icons/Games/Cricket/Cricket.d.ts +3 -0
  78. package/dist/Components/Icons/Games/Football/Football.d.ts +3 -0
  79. package/dist/Components/Icons/Games/Golf/Golf.d.ts +3 -0
  80. package/dist/Components/Icons/HealthAndWellness/Barbell/Barbell.d.ts +3 -0
  81. package/dist/Components/Icons/IconProps.d.ts +4 -0
  82. package/dist/Components/Icons/MapAndTravel/Barn/Barn.d.ts +3 -0
  83. package/dist/Components/Icons/MapAndTravel/Bicycle/Bicycle.d.ts +3 -0
  84. package/dist/Components/Icons/MapAndTravel/Bus/Bus.d.ts +3 -0
  85. package/dist/Components/Icons/MapAndTravel/Car/Car.d.ts +3 -0
  86. package/dist/Components/Icons/MapAndTravel/ChargingStation/ChargingStation.d.ts +3 -0
  87. package/dist/Components/Icons/MapAndTravel/Farm/Farm.d.ts +3 -0
  88. package/dist/Components/Icons/MapAndTravel/Globe/Globe.d.ts +3 -0
  89. package/dist/Components/Icons/MapAndTravel/Goggles/Goggles.d.ts +3 -0
  90. package/dist/Components/Icons/MapAndTravel/House/House.d.ts +3 -0
  91. package/dist/Components/Icons/MapAndTravel/HouseSimple/HouseSimple.d.ts +3 -0
  92. package/dist/Components/Icons/MapAndTravel/MapPin/MapPin.d.ts +3 -0
  93. package/dist/Components/Icons/MapAndTravel/MapTriFold/MapTriFold.d.ts +3 -0
  94. package/dist/Components/Icons/MapAndTravel/Path/Path.d.ts +3 -0
  95. package/dist/Components/Icons/MapAndTravel/RoadHorizon/RoadHorizon.d.ts +3 -0
  96. package/dist/Components/Icons/MapAndTravel/SteeringWheel/SteeringWheel.d.ts +3 -0
  97. package/dist/Components/Icons/MapAndTravel/SwimmingPool/SwimmingPool.d.ts +3 -0
  98. package/dist/Components/Icons/MapAndTravel/Tram/Tram.d.ts +3 -0
  99. package/dist/Components/Icons/MapAndTravel/Van/Van.d.ts +3 -0
  100. package/dist/Components/Icons/MathsAndFinance/Calculator/Calculator.d.ts +3 -0
  101. package/dist/Components/Icons/MathsAndFinance/ChartBar/ChartBar.d.ts +3 -0
  102. package/dist/Components/Icons/MathsAndFinance/ChartBarHorizontal/ChartBarHorizontal.d.ts +3 -0
  103. package/dist/Components/Icons/MathsAndFinance/ChartLine/ChartLine.d.ts +3 -0
  104. package/dist/Components/Icons/MathsAndFinance/ChartLineUp/ChartLineUp.d.ts +3 -0
  105. package/dist/Components/Icons/MathsAndFinance/ChartPie/ChartPie.d.ts +3 -0
  106. package/dist/Components/Icons/MathsAndFinance/Minus/Minus.d.ts +3 -0
  107. package/dist/Components/Icons/MathsAndFinance/MinusCircle/MinusCircle.d.ts +3 -0
  108. package/dist/Components/Icons/MathsAndFinance/NumberSquareThree/NumberSquareThree.d.ts +3 -0
  109. package/dist/Components/Icons/MathsAndFinance/Plus/Plus.d.ts +3 -0
  110. package/dist/Components/Icons/MathsAndFinance/PlusCircle/PlusCircle.d.ts +3 -0
  111. package/dist/Components/Icons/MathsAndFinance/XIcon/XIcon.d.ts +3 -0
  112. package/dist/Components/Icons/Media/Camera/Camera.d.ts +3 -0
  113. package/dist/Components/Icons/Media/DiscoBall/DiscoBall.d.ts +3 -0
  114. package/dist/Components/Icons/Media/FilmStrip/FilmStrip.d.ts +3 -0
  115. package/dist/Components/Icons/Media/Microphone/Microphone.d.ts +3 -0
  116. package/dist/Components/Icons/Media/MusicNotes/MusicNotes.d.ts +3 -0
  117. package/dist/Components/Icons/Media/PlayCircle/PlayCircle.d.ts +3 -0
  118. package/dist/Components/Icons/Media/SlidersHorizontal/SlidersHorizontal.d.ts +3 -0
  119. package/dist/Components/Icons/Media/StopCircle/StopCircle.d.ts +3 -0
  120. package/dist/Components/Icons/Media/VideoCamera/VideoCamera.d.ts +3 -0
  121. package/dist/Components/Icons/OfficeAndEditing/BuildinfOffice/BuildingOffice.d.ts +3 -0
  122. package/dist/Components/Icons/OfficeAndEditing/Copy/Copy.d.ts +3 -0
  123. package/dist/Components/Icons/OfficeAndEditing/FileText/FileText.d.ts +3 -0
  124. package/dist/Components/Icons/OfficeAndEditing/Files/Files.d.ts +3 -0
  125. package/dist/Components/Icons/OfficeAndEditing/FloppyDisk/FloppyDisk.d.ts +3 -0
  126. package/dist/Components/Icons/OfficeAndEditing/Folder/Folder.d.ts +3 -0
  127. package/dist/Components/Icons/OfficeAndEditing/FolderSimplePlus/FolderSimplePlus.d.ts +3 -0
  128. package/dist/Components/Icons/OfficeAndEditing/Folders/Folders.d.ts +3 -0
  129. package/dist/Components/Icons/OfficeAndEditing/List/List.d.ts +3 -0
  130. package/dist/Components/Icons/OfficeAndEditing/ListBullets/ListBullets.d.ts +3 -0
  131. package/dist/Components/Icons/OfficeAndEditing/ListDashes/ListDashes.d.ts +3 -0
  132. package/dist/Components/Icons/OfficeAndEditing/Printer/Printer.d.ts +3 -0
  133. package/dist/Components/Icons/OfficeAndEditing/TextAa/TextAa.d.ts +3 -0
  134. package/dist/Components/Icons/OfficeAndEditing/TextColumns/TextColumns.d.ts +3 -0
  135. package/dist/Components/Icons/OfficeAndEditing/Trash/Trash.d.ts +3 -0
  136. package/dist/Components/Icons/OfficeAndEditing/TrashSimple/TrashSimple.d.ts +3 -0
  137. package/dist/Components/Icons/People/Person/Person.d.ts +3 -0
  138. package/dist/Components/Icons/People/PersonArmsSpread/PersonArmsSpread.d.ts +3 -0
  139. package/dist/Components/Icons/People/PersonSimpleBike/PersonSimpleBike.d.ts +3 -0
  140. package/dist/Components/Icons/People/PersonSimpleSki/PersonSimpleSki.d.ts +3 -0
  141. package/dist/Components/Icons/People/PersonSimpleWalk/PersonSimpleWalk.d.ts +3 -0
  142. package/dist/Components/Icons/People/User/User.d.ts +3 -0
  143. package/dist/Components/Icons/People/UserCircle/UserCircle.d.ts +3 -0
  144. package/dist/Components/Icons/People/UserSwitch/UserSwitch.d.ts +3 -0
  145. package/dist/Components/Icons/People/Users/Users.d.ts +3 -0
  146. package/dist/Components/Icons/SecurityAndWarnings/Info/Info.d.ts +3 -0
  147. package/dist/Components/Icons/SecurityAndWarnings/Key/Key.d.ts +3 -0
  148. package/dist/Components/Icons/SecurityAndWarnings/LockKeyOpen/LockKeyOpen.d.ts +3 -0
  149. package/dist/Components/Icons/SecurityAndWarnings/LockSimple/LockSimple.d.ts +3 -0
  150. package/dist/Components/Icons/SecurityAndWarnings/Question/Question.d.ts +3 -0
  151. package/dist/Components/Icons/SecurityAndWarnings/ShieldCheck/ShieldCheck.d.ts +3 -0
  152. package/dist/Components/Icons/SecurityAndWarnings/WarningCircle/WarningCircle.d.ts +3 -0
  153. package/dist/Components/Icons/SystemAndDevice/Bell/Bell.d.ts +3 -0
  154. package/dist/Components/Icons/SystemAndDevice/Check/Check.d.ts +3 -0
  155. package/dist/Components/Icons/SystemAndDevice/CheckSquare/CheckSquare.d.ts +3 -0
  156. package/dist/Components/Icons/SystemAndDevice/CloudCheck/CloudCheck.d.ts +3 -0
  157. package/dist/Components/Icons/SystemAndDevice/Desktop/Desktop.d.ts +3 -0
  158. package/dist/Components/Icons/SystemAndDevice/DeviceMobile/DeviceMobile.d.ts +3 -0
  159. package/dist/Components/Icons/SystemAndDevice/DotSixVertical/DotSixVertical.d.ts +3 -0
  160. package/dist/Components/Icons/SystemAndDevice/DotsSix/DotsSix.d.ts +3 -0
  161. package/dist/Components/Icons/SystemAndDevice/DotsThree/DotsThree.d.ts +3 -0
  162. package/dist/Components/Icons/SystemAndDevice/DotsThreeVertical/DotsThreeVertical.d.ts +3 -0
  163. package/dist/Components/Icons/SystemAndDevice/DownloadSimple/DownloadSimple.d.ts +3 -0
  164. package/dist/Components/Icons/SystemAndDevice/Gear/Gear.d.ts +3 -0
  165. package/dist/Components/Icons/SystemAndDevice/Link/Link.d.ts +3 -0
  166. package/dist/Components/Icons/SystemAndDevice/MagnifyingGlass/MagnifyingGlass.d.ts +3 -0
  167. package/dist/Components/Icons/SystemAndDevice/RadioButtonIcon/RadioButtonIcon.d.ts +3 -0
  168. package/dist/Components/Icons/SystemAndDevice/SignIn/SignIn.d.ts +3 -0
  169. package/dist/Components/Icons/SystemAndDevice/SignOut/SignOut.d.ts +3 -0
  170. package/dist/Components/Icons/SystemAndDevice/ToggleLeft/ToggleLeft.d.ts +3 -0
  171. package/dist/Components/Icons/SystemAndDevice/ToggleRight/ToggleRight.d.ts +3 -0
  172. package/dist/Components/Icons/Time/Calendar/Calendar.d.ts +3 -0
  173. package/dist/Components/Icons/Time/CalendarBank/CalendarBank.d.ts +3 -0
  174. package/dist/Components/Icons/Time/CalendarCheck/CalendarCheck.d.ts +3 -0
  175. package/dist/Components/Icons/Time/CalendarDots/CalendarDots.d.ts +3 -0
  176. package/dist/Components/Icons/Time/Clock/Clock.d.ts +3 -0
  177. package/dist/Components/Icons/Time/ClockCounterClockwise/ClockCounterClockwise.d.ts +3 -0
  178. package/dist/Components/Icons/WeatherAndNature/Bird/Bird.d.ts +3 -0
  179. package/dist/Components/Icons/WeatherAndNature/Campfire/Campfire.d.ts +3 -0
  180. package/dist/Components/Icons/WeatherAndNature/CloudSun/CloudSun.d.ts +3 -0
  181. package/dist/Components/Icons/WeatherAndNature/Cow/Cow.d.ts +3 -0
  182. package/dist/Components/Icons/WeatherAndNature/Dog/Dog.d.ts +3 -0
  183. package/dist/Components/Icons/WeatherAndNature/FishSimple/FishSimple.d.ts +3 -0
  184. package/dist/Components/Icons/WeatherAndNature/Flower/Flower.d.ts +3 -0
  185. package/dist/Components/Icons/WeatherAndNature/Moon/Moon.d.ts +3 -0
  186. package/dist/Components/Icons/WeatherAndNature/Mountains/Mountains.d.ts +3 -0
  187. package/dist/Components/Icons/WeatherAndNature/Plant/Plant.d.ts +3 -0
  188. package/dist/Components/Icons/WeatherAndNature/Snowflake/Snowflake.d.ts +3 -0
  189. package/dist/Components/Icons/WeatherAndNature/Sparkle/Sparkle.d.ts +3 -0
  190. package/dist/Components/Icons/WeatherAndNature/Sun/Sun.d.ts +3 -0
  191. package/dist/Components/Icons/WeatherAndNature/Tree/Tree.d.ts +3 -0
  192. package/dist/Components/Icons/index.d.ts +123 -0
  193. package/dist/Components/Layout/Footer/Footer.d.ts +3 -0
  194. package/dist/Components/Layout/Footer/FooterBottom.d.ts +3 -0
  195. package/dist/Components/Layout/Footer/FooterBottomLeft.d.ts +3 -0
  196. package/dist/Components/Layout/Footer/FooterBottomLeftProps.d.ts +11 -0
  197. package/dist/Components/Layout/Footer/FooterBottomProps.d.ts +5 -0
  198. package/dist/Components/Layout/Footer/FooterBottomRight.d.ts +3 -0
  199. package/dist/Components/Layout/Footer/FooterBottomRightProps.d.ts +6 -0
  200. package/dist/Components/Layout/Footer/FooterItem.d.ts +3 -0
  201. package/dist/Components/Layout/Footer/FooterItemProps.d.ts +6 -0
  202. package/dist/Components/Layout/Footer/FooterMiddle.d.ts +3 -0
  203. package/dist/Components/Layout/Footer/FooterMiddleProps.d.ts +6 -0
  204. package/dist/Components/Layout/Footer/FooterProps.d.ts +9 -0
  205. package/dist/Components/Layout/Footer/FooterTop.d.ts +3 -0
  206. package/dist/Components/Layout/Footer/FooterTopProps.d.ts +7 -0
  207. package/dist/Components/Layout/Footer/footer-bg-design.d.ts +2 -0
  208. package/dist/Components/Layout/Header/Header.d.ts +3 -0
  209. package/dist/Components/Layout/Header/HeaderProps.d.ts +7 -0
  210. package/dist/Components/Layout/Header/HeaderRight.d.ts +3 -0
  211. package/dist/Components/Layout/Header/HeaderRightItem.d.ts +3 -0
  212. package/dist/Components/Layout/Header/HeaderRightItemProps.d.ts +11 -0
  213. package/dist/Components/Layout/Header/HeaderRightProps.d.ts +5 -0
  214. package/dist/Components/Layout/Header/MagnifyingGlass/MagnifyingGlass.d.ts +2 -0
  215. package/dist/Components/Layout/Header/MegaMenu/MegaMenu.d.ts +2 -0
  216. package/dist/Components/Layout/Header/MegaMenu/MegaMenuProps.d.ts +4 -0
  217. package/dist/Components/Layout/HeroBanner/HeroBanner.d.ts +3 -0
  218. package/dist/Components/Layout/HeroBanner/HeroBannerProps.d.ts +9 -0
  219. package/dist/Components/Layout/HeroBanner/LargeHeroIcon.d.ts +2 -0
  220. package/dist/Components/Layout/index.d.ts +22 -0
  221. package/dist/Components/Shared/Container/Container.d.ts +3 -0
  222. package/dist/Components/Shared/Container/ContainerProps.d.ts +6 -0
  223. package/dist/Components/Shared/ElementHolder/ElementHolder.d.ts +3 -0
  224. package/dist/Components/Shared/ElementHolder/ElementHolderProps.d.ts +15 -0
  225. package/dist/Components/Shared/index.d.ts +4 -0
  226. package/dist/img/card-one.png +0 -0
  227. package/dist/img/card-three.png +0 -0
  228. package/dist/img/card-two.png +0 -0
  229. package/dist/img/footer-bg-design.svg +14 -0
  230. package/dist/img/footer-logo.svg +9 -0
  231. package/dist/img/promo-banner-image.svg +9 -0
  232. package/dist/img/visit-brand-piller.svg +6 -0
  233. package/dist/img/waikirikiri-full-logo.svg +23 -0
  234. package/dist/index.cjs.js +14 -0
  235. package/dist/index.cjs.js.map +1 -0
  236. package/dist/index.d.ts +5 -0
  237. package/dist/index.es.d.ts +2 -0
  238. package/dist/index.es.js +6787 -0
  239. package/dist/index.es.js.map +1 -0
  240. package/dist/main.d.ts +0 -0
  241. package/dist/selwynui.css +1 -0
  242. package/dist/vite.svg +1 -0
  243. package/package.json +73 -0
  244. package/src/Components/DataDisplay/Accordion/Accordion.stories.tsx +90 -0
  245. package/src/Components/DataDisplay/Accordion/Accordion.tsx +57 -0
  246. package/src/Components/DataDisplay/Accordion/AccordionContext.tsx +11 -0
  247. package/src/Components/DataDisplay/Accordion/AccordionContextInterface.tsx +8 -0
  248. package/src/Components/DataDisplay/Accordion/AccordionItem.tsx +159 -0
  249. package/src/Components/DataDisplay/Accordion/AccordionItemProps.tsx +20 -0
  250. package/src/Components/DataDisplay/Accordion/AccordionProps.tsx +13 -0
  251. package/src/Components/DataDisplay/Accordion/AccordionProvider.tsx +66 -0
  252. package/src/Components/DataDisplay/Accordion/AccordionProviderInterface.tsx +9 -0
  253. package/src/Components/DataDisplay/Accordion/accordion-bg-design.tsx +14 -0
  254. package/src/Components/DataDisplay/Accordion/accordion.module.scss +90 -0
  255. package/src/Components/DataDisplay/DetailsCard/DetailsCard.stories.tsx +39 -0
  256. package/src/Components/DataDisplay/DetailsCard/DetailsCard.tsx +87 -0
  257. package/src/Components/DataDisplay/DetailsCard/DetailsCardProps.tsx +12 -0
  258. package/src/Components/DataDisplay/DetailsCard/detailsCard.module.scss +123 -0
  259. package/src/Components/DataDisplay/ImageContent/ImageContent.stories.tsx +150 -0
  260. package/src/Components/DataDisplay/ImageContent/ImageContent.tsx +146 -0
  261. package/src/Components/DataDisplay/ImageContent/ImageContentMaskingImages.tsx +334 -0
  262. package/src/Components/DataDisplay/ImageContent/ImageContentProps.tsx +42 -0
  263. package/src/Components/DataDisplay/ImageContent/imageContent.module.scss +343 -0
  264. package/src/Components/DataDisplay/IntroBlock/IntroBlock.stories.tsx +37 -0
  265. package/src/Components/DataDisplay/IntroBlock/IntroBlock.tsx +37 -0
  266. package/src/Components/DataDisplay/IntroBlock/IntroBlockProps.tsx +10 -0
  267. package/src/Components/DataDisplay/IntroBlock/introBlock.module.scss +37 -0
  268. package/src/Components/DataDisplay/KPIBlock/KPIBlock.stories.tsx +120 -0
  269. package/src/Components/DataDisplay/KPIBlock/KPIBlock.tsx +42 -0
  270. package/src/Components/DataDisplay/KPIBlock/KPIBlockProps.tsx +13 -0
  271. package/src/Components/DataDisplay/KPIBlock/kpiBlock.module.scss +78 -0
  272. package/src/Components/DataDisplay/Pathway/Pathway.stories.tsx +27 -0
  273. package/src/Components/DataDisplay/Pathway/Pathway.tsx +83 -0
  274. package/src/Components/DataDisplay/Pathway/PathwayProps.tsx +17 -0
  275. package/src/Components/DataDisplay/Pathway/pathway.module.scss +124 -0
  276. package/src/Components/DataDisplay/PathwayBlock/PathwayBlock.stories.tsx +56 -0
  277. package/src/Components/DataDisplay/PathwayBlock/PathwayBlock.tsx +37 -0
  278. package/src/Components/DataDisplay/PathwayBlock/PathwayBlockProps.tsx +13 -0
  279. package/src/Components/DataDisplay/PathwayBlock/pathwayBlock.module.scss +34 -0
  280. package/src/Components/DataDisplay/PromoBannerBlock/PromoBanner.stories.tsx +45 -0
  281. package/src/Components/DataDisplay/PromoBannerBlock/PromoBannerBlock.tsx +77 -0
  282. package/src/Components/DataDisplay/PromoBannerBlock/PromoBannerBlockProps.tsx +16 -0
  283. package/src/Components/DataDisplay/PromoBannerBlock/brand-piller.tsx +50 -0
  284. package/src/Components/DataDisplay/PromoBannerBlock/promo-banner-bg-design.tsx +14 -0
  285. package/src/Components/DataDisplay/PromoBannerBlock/promoBanner.module.scss +181 -0
  286. package/src/Components/DataDisplay/TestimonyCard/TestimonyCard.stories.tsx +46 -0
  287. package/src/Components/DataDisplay/TestimonyCard/TestimonyCard.tsx +64 -0
  288. package/src/Components/DataDisplay/TestimonyCard/TestimonyCardProps.tsx +13 -0
  289. package/src/Components/DataDisplay/TestimonyCard/testimonyCard.module.scss +93 -0
  290. package/src/Components/DataDisplay/index.ts +19 -0
  291. package/src/Components/Form/Button/Button.stories.tsx +55 -0
  292. package/src/Components/Form/Button/Button.tsx +122 -0
  293. package/src/Components/Form/Button/ButtonProps.tsx +27 -0
  294. package/src/Components/Form/Button/button.module.scss +91 -0
  295. package/src/Components/Form/index.ts +2 -0
  296. package/src/Components/Icons/Arrows/ArrowLeft/ArrowLeft.tsx +49 -0
  297. package/src/Components/Icons/Arrows/ArrowRight/ArrowRight.tsx +47 -0
  298. package/src/Components/Icons/Arrows/ArrowSquareOut/ArrowSquareOut.tsx +48 -0
  299. package/src/Components/Icons/Arrows/ArrowsDownUp/ArrowsDownUp.tsx +49 -0
  300. package/src/Components/Icons/Arrows/ArrowsOutCardinal/ArrowsOutCardinal.tsx +50 -0
  301. package/src/Components/Icons/Arrows/CaretCircleRight/CaretCircleRight.tsx +37 -0
  302. package/src/Components/Icons/Arrows/CaretDown/CaretDown.tsx +49 -0
  303. package/src/Components/Icons/Arrows/CaretLeft/CaretLeft.tsx +102 -0
  304. package/src/Components/Icons/Arrows/CaretRight/CaretRight.tsx +102 -0
  305. package/src/Components/Icons/Arrows/CaretUp/CaretUp.tsx +49 -0
  306. package/src/Components/Icons/Arrows/CaretUpDown/CaretUpDown.tsx +49 -0
  307. package/src/Components/Icons/Brands/FacebookLogo/FacebookLogo.tsx +35 -0
  308. package/src/Components/Icons/Brands/InstagramLogo/InstagramLogo.tsx +35 -0
  309. package/src/Components/Icons/Brands/LinkedinLogo/LinkedinLogo.tsx +35 -0
  310. package/src/Components/Icons/Brands/WindowsLogo/WindowsLogo.tsx +105 -0
  311. package/src/Components/Icons/Commerce/Backpack/Backpack.tsx +54 -0
  312. package/src/Components/Icons/Commerce/BowlSteam/BowlSteam.tsx +34 -0
  313. package/src/Components/Icons/Commerce/Bread/Bread.tsx +34 -0
  314. package/src/Components/Icons/Commerce/Cheers/Cheers.tsx +34 -0
  315. package/src/Components/Icons/Commerce/ChefHat/ChefHat.tsx +34 -0
  316. package/src/Components/Icons/Commerce/Coffee/Coffee.tsx +54 -0
  317. package/src/Components/Icons/Commerce/CreditCard/CreditCard.tsx +54 -0
  318. package/src/Components/Icons/Commerce/CurrencyDollarSimple/CurrencyDollarSimple.tsx +105 -0
  319. package/src/Components/Icons/Commerce/Grains/Grains.tsx +54 -0
  320. package/src/Components/Icons/Commerce/Scale/Scale.tsx +61 -0
  321. package/src/Components/Icons/Commerce/StoreFront/StoreFront.tsx +54 -0
  322. package/src/Components/Icons/Communication/AddressBook/AddressBook.stories.ts +28 -0
  323. package/src/Components/Icons/Communication/AddressBook/AddressBook.tsx +50 -0
  324. package/src/Components/Icons/Communication/AsterickSimple/AsteriskSimple.stories.ts +28 -0
  325. package/src/Components/Icons/Communication/AsterickSimple/AsteriskSimple.tsx +49 -0
  326. package/src/Components/Icons/Communication/Asterisk/Asterisk.stories.ts +28 -0
  327. package/src/Components/Icons/Communication/Asterisk/Asterisk.tsx +50 -0
  328. package/src/Components/Icons/Communication/At/At.stories.ts +28 -0
  329. package/src/Components/Icons/Communication/At/At.tsx +49 -0
  330. package/src/Components/Icons/Communication/Broadcast/Broadcast.stories.ts +27 -0
  331. package/src/Components/Icons/Communication/Broadcast/Broadcast.tsx +49 -0
  332. package/src/Components/Icons/Communication/Chat/Chat.stories.ts +28 -0
  333. package/src/Components/Icons/Communication/Chat/Chat.tsx +49 -0
  334. package/src/Components/Icons/Communication/ChatCircleText/ChatCircleText.tsx +87 -0
  335. package/src/Components/Icons/Communication/EnvelopeSimple/EnvelopeSimple.tsx +52 -0
  336. package/src/Components/Icons/Communication/Export/Export.tsx +52 -0
  337. package/src/Components/Icons/Communication/Phone/Phone.tsx +54 -0
  338. package/src/Components/Icons/Communication/ThumbsUp/ThumbsUp.tsx +47 -0
  339. package/src/Components/Icons/Communication/Translate/Translate.tsx +51 -0
  340. package/src/Components/Icons/Design/DropHalfBottom/DropHalfBottom.tsx +37 -0
  341. package/src/Components/Icons/Design/Eye/Eye.tsx +105 -0
  342. package/src/Components/Icons/Design/EyeSlash/EyeSlash.tsx +105 -0
  343. package/src/Components/Icons/Design/GearFine/GearFine.tsx +105 -0
  344. package/src/Components/Icons/Design/PencilLine/PencilLine.tsx +63 -0
  345. package/src/Components/Icons/Design/PencilSimple/PencilSimple.tsx +63 -0
  346. package/src/Components/Icons/Design/Ruler/Ruler.tsx +63 -0
  347. package/src/Components/Icons/Design/SquaresFour/SquaresFour.tsx +54 -0
  348. package/src/Components/Icons/Education/BookOpenText/BookOpenText.tsx +63 -0
  349. package/src/Components/Icons/Education/BookmarkSimple/BookmarkSimple.tsx +44 -0
  350. package/src/Components/Icons/Education/Certificate/Certificate.tsx +56 -0
  351. package/src/Components/Icons/Education/GraduationCap/GraduationCap.tsx +105 -0
  352. package/src/Components/Icons/Games/Cricket/Cricket.tsx +23 -0
  353. package/src/Components/Icons/Games/Football/Football.tsx +47 -0
  354. package/src/Components/Icons/Games/Golf/Golf.tsx +34 -0
  355. package/src/Components/Icons/HealthAndWellness/Barbell/Barbell.tsx +36 -0
  356. package/src/Components/Icons/IconProps.tsx +5 -0
  357. package/src/Components/Icons/MapAndTravel/Barn/Barn.tsx +34 -0
  358. package/src/Components/Icons/MapAndTravel/Bicycle/Bicycle.tsx +54 -0
  359. package/src/Components/Icons/MapAndTravel/Bus/Bus.tsx +54 -0
  360. package/src/Components/Icons/MapAndTravel/Car/Car.tsx +54 -0
  361. package/src/Components/Icons/MapAndTravel/ChargingStation/ChargingStation.tsx +54 -0
  362. package/src/Components/Icons/MapAndTravel/Farm/Farm.tsx +34 -0
  363. package/src/Components/Icons/MapAndTravel/Globe/Globe.tsx +61 -0
  364. package/src/Components/Icons/MapAndTravel/Goggles/Goggles.tsx +47 -0
  365. package/src/Components/Icons/MapAndTravel/House/House.tsx +61 -0
  366. package/src/Components/Icons/MapAndTravel/HouseSimple/HouseSimple.tsx +61 -0
  367. package/src/Components/Icons/MapAndTravel/MapPin/MapPin.tsx +53 -0
  368. package/src/Components/Icons/MapAndTravel/MapTriFold/MapTriFold.tsx +59 -0
  369. package/src/Components/Icons/MapAndTravel/Path/Path.tsx +35 -0
  370. package/src/Components/Icons/MapAndTravel/RoadHorizon/RoadHorizon.tsx +35 -0
  371. package/src/Components/Icons/MapAndTravel/SteeringWheel/SteeringWheel.tsx +61 -0
  372. package/src/Components/Icons/MapAndTravel/SwimmingPool/SwimmingPool.tsx +36 -0
  373. package/src/Components/Icons/MapAndTravel/Tram/Tram.tsx +35 -0
  374. package/src/Components/Icons/MapAndTravel/Van/Van.tsx +60 -0
  375. package/src/Components/Icons/MathsAndFinance/Calculator/Calculator.tsx +59 -0
  376. package/src/Components/Icons/MathsAndFinance/ChartBar/ChartBar.tsx +59 -0
  377. package/src/Components/Icons/MathsAndFinance/ChartBarHorizontal/ChartBarHorizontal.tsx +52 -0
  378. package/src/Components/Icons/MathsAndFinance/ChartLine/ChartLine.tsx +53 -0
  379. package/src/Components/Icons/MathsAndFinance/ChartLineUp/ChartLineUp.tsx +47 -0
  380. package/src/Components/Icons/MathsAndFinance/ChartPie/ChartPie.tsx +54 -0
  381. package/src/Components/Icons/MathsAndFinance/Minus/Minus.tsx +49 -0
  382. package/src/Components/Icons/MathsAndFinance/MinusCircle/MinusCircle.tsx +44 -0
  383. package/src/Components/Icons/MathsAndFinance/NumberSquareThree/NumberSquareThree.tsx +63 -0
  384. package/src/Components/Icons/MathsAndFinance/Plus/Plus.tsx +63 -0
  385. package/src/Components/Icons/MathsAndFinance/PlusCircle/PlusCircle.tsx +51 -0
  386. package/src/Components/Icons/MathsAndFinance/XIcon/XIcon.tsx +107 -0
  387. package/src/Components/Icons/Media/Camera/Camera.tsx +49 -0
  388. package/src/Components/Icons/Media/DiscoBall/DiscoBall.tsx +22 -0
  389. package/src/Components/Icons/Media/FilmStrip/FilmStrip.tsx +45 -0
  390. package/src/Components/Icons/Media/Microphone/Microphone.tsx +94 -0
  391. package/src/Components/Icons/Media/MusicNotes/MusicNotes.tsx +42 -0
  392. package/src/Components/Icons/Media/PlayCircle/PlayCircle.tsx +49 -0
  393. package/src/Components/Icons/Media/SlidersHorizontal/SlidersHorizontal.tsx +49 -0
  394. package/src/Components/Icons/Media/StopCircle/StopCircle.tsx +50 -0
  395. package/src/Components/Icons/Media/VideoCamera/VideoCamera.tsx +105 -0
  396. package/src/Components/Icons/OfficeAndEditing/BuildinfOffice/BuildingOffice.tsx +22 -0
  397. package/src/Components/Icons/OfficeAndEditing/Copy/Copy.tsx +47 -0
  398. package/src/Components/Icons/OfficeAndEditing/FileText/FileText.tsx +35 -0
  399. package/src/Components/Icons/OfficeAndEditing/Files/Files.tsx +49 -0
  400. package/src/Components/Icons/OfficeAndEditing/FloppyDisk/FloppyDisk.tsx +49 -0
  401. package/src/Components/Icons/OfficeAndEditing/Folder/Folder.tsx +61 -0
  402. package/src/Components/Icons/OfficeAndEditing/FolderSimplePlus/FolderSimplePlus.tsx +35 -0
  403. package/src/Components/Icons/OfficeAndEditing/Folders/Folders.tsx +47 -0
  404. package/src/Components/Icons/OfficeAndEditing/List/List.tsx +46 -0
  405. package/src/Components/Icons/OfficeAndEditing/ListBullets/ListBullets.tsx +59 -0
  406. package/src/Components/Icons/OfficeAndEditing/ListDashes/ListDashes.tsx +59 -0
  407. package/src/Components/Icons/OfficeAndEditing/Printer/Printer.tsx +48 -0
  408. package/src/Components/Icons/OfficeAndEditing/TextAa/TextAa.tsx +63 -0
  409. package/src/Components/Icons/OfficeAndEditing/TextColumns/TextColumns.tsx +61 -0
  410. package/src/Components/Icons/OfficeAndEditing/Trash/Trash.tsx +49 -0
  411. package/src/Components/Icons/OfficeAndEditing/TrashSimple/TrashSimple.tsx +49 -0
  412. package/src/Components/Icons/People/Person/Person.tsx +35 -0
  413. package/src/Components/Icons/People/PersonArmsSpread/PersonArmsSpread.tsx +35 -0
  414. package/src/Components/Icons/People/PersonSimpleBike/PersonSimpleBike.tsx +35 -0
  415. package/src/Components/Icons/People/PersonSimpleSki/PersonSimpleSki.tsx +34 -0
  416. package/src/Components/Icons/People/PersonSimpleWalk/PersonSimpleWalk.tsx +35 -0
  417. package/src/Components/Icons/People/User/User.tsx +61 -0
  418. package/src/Components/Icons/People/UserCircle/UserCircle.tsx +61 -0
  419. package/src/Components/Icons/People/UserSwitch/UserSwitch.tsx +61 -0
  420. package/src/Components/Icons/People/Users/Users.tsx +107 -0
  421. package/src/Components/Icons/SecurityAndWarnings/Info/Info.tsx +54 -0
  422. package/src/Components/Icons/SecurityAndWarnings/Key/Key.tsx +54 -0
  423. package/src/Components/Icons/SecurityAndWarnings/LockKeyOpen/LockKeyOpen.tsx +54 -0
  424. package/src/Components/Icons/SecurityAndWarnings/LockSimple/LockSimple.tsx +61 -0
  425. package/src/Components/Icons/SecurityAndWarnings/Question/Question.tsx +53 -0
  426. package/src/Components/Icons/SecurityAndWarnings/ShieldCheck/ShieldCheck.tsx +89 -0
  427. package/src/Components/Icons/SecurityAndWarnings/WarningCircle/WarningCircle.tsx +105 -0
  428. package/src/Components/Icons/SystemAndDevice/Bell/Bell.tsx +49 -0
  429. package/src/Components/Icons/SystemAndDevice/Check/Check.tsx +49 -0
  430. package/src/Components/Icons/SystemAndDevice/CheckSquare/CheckSquare.tsx +63 -0
  431. package/src/Components/Icons/SystemAndDevice/CloudCheck/CloudCheck.tsx +74 -0
  432. package/src/Components/Icons/SystemAndDevice/Desktop/Desktop.tsx +107 -0
  433. package/src/Components/Icons/SystemAndDevice/DeviceMobile/DeviceMobile.tsx +78 -0
  434. package/src/Components/Icons/SystemAndDevice/DotSixVertical/DotSixVertical.tsx +49 -0
  435. package/src/Components/Icons/SystemAndDevice/DotsSix/DotsSix.tsx +107 -0
  436. package/src/Components/Icons/SystemAndDevice/DotsThree/DotsThree.tsx +63 -0
  437. package/src/Components/Icons/SystemAndDevice/DotsThreeVertical/DotsThreeVertical.tsx +63 -0
  438. package/src/Components/Icons/SystemAndDevice/DownloadSimple/DownloadSimple.tsx +52 -0
  439. package/src/Components/Icons/SystemAndDevice/Gear/Gear.tsx +61 -0
  440. package/src/Components/Icons/SystemAndDevice/Link/Link.tsx +54 -0
  441. package/src/Components/Icons/SystemAndDevice/MagnifyingGlass/MagnifyingGlass.tsx +105 -0
  442. package/src/Components/Icons/SystemAndDevice/RadioButtonIcon/RadioButtonIcon.tsx +63 -0
  443. package/src/Components/Icons/SystemAndDevice/SignIn/SignIn.tsx +51 -0
  444. package/src/Components/Icons/SystemAndDevice/SignOut/SignOut.tsx +49 -0
  445. package/src/Components/Icons/SystemAndDevice/ToggleLeft/ToggleLeft.tsx +51 -0
  446. package/src/Components/Icons/SystemAndDevice/ToggleRight/ToggleRight.tsx +51 -0
  447. package/src/Components/Icons/Time/Calendar/Calendar.tsx +61 -0
  448. package/src/Components/Icons/Time/CalendarBank/CalendarBank.tsx +105 -0
  449. package/src/Components/Icons/Time/CalendarCheck/CalendarCheck.tsx +61 -0
  450. package/src/Components/Icons/Time/CalendarDots/CalendarDots.tsx +28 -0
  451. package/src/Components/Icons/Time/Clock/Clock.tsx +105 -0
  452. package/src/Components/Icons/Time/ClockCounterClockwise/ClockCounterClockwise.tsx +74 -0
  453. package/src/Components/Icons/WeatherAndNature/Bird/Bird.tsx +54 -0
  454. package/src/Components/Icons/WeatherAndNature/Campfire/Campfire.tsx +35 -0
  455. package/src/Components/Icons/WeatherAndNature/CloudSun/CloudSun.tsx +49 -0
  456. package/src/Components/Icons/WeatherAndNature/Cow/Cow.tsx +34 -0
  457. package/src/Components/Icons/WeatherAndNature/Dog/Dog.tsx +54 -0
  458. package/src/Components/Icons/WeatherAndNature/FishSimple/FishSimple.tsx +54 -0
  459. package/src/Components/Icons/WeatherAndNature/Flower/Flower.tsx +47 -0
  460. package/src/Components/Icons/WeatherAndNature/Moon/Moon.tsx +35 -0
  461. package/src/Components/Icons/WeatherAndNature/Mountains/Mountains.tsx +49 -0
  462. package/src/Components/Icons/WeatherAndNature/Plant/Plant.tsx +105 -0
  463. package/src/Components/Icons/WeatherAndNature/Snowflake/Snowflake.tsx +46 -0
  464. package/src/Components/Icons/WeatherAndNature/Sparkle/Sparkle.tsx +35 -0
  465. package/src/Components/Icons/WeatherAndNature/Sun/Sun.tsx +47 -0
  466. package/src/Components/Icons/WeatherAndNature/Tree/Tree.tsx +84 -0
  467. package/src/Components/Icons/index.ts +165 -0
  468. package/src/Components/Layout/Footer/Footer.stories.tsx +178 -0
  469. package/src/Components/Layout/Footer/Footer.tsx +33 -0
  470. package/src/Components/Layout/Footer/FooterBottom.tsx +21 -0
  471. package/src/Components/Layout/Footer/FooterBottomLeft.tsx +31 -0
  472. package/src/Components/Layout/Footer/FooterBottomLeftProps.tsx +13 -0
  473. package/src/Components/Layout/Footer/FooterBottomProps.tsx +7 -0
  474. package/src/Components/Layout/Footer/FooterBottomRight.tsx +47 -0
  475. package/src/Components/Layout/Footer/FooterBottomRightProps.tsx +7 -0
  476. package/src/Components/Layout/Footer/FooterItem.tsx +17 -0
  477. package/src/Components/Layout/Footer/FooterItemProps.tsx +8 -0
  478. package/src/Components/Layout/Footer/FooterMiddle.tsx +18 -0
  479. package/src/Components/Layout/Footer/FooterMiddleProps.tsx +8 -0
  480. package/src/Components/Layout/Footer/FooterProps.tsx +11 -0
  481. package/src/Components/Layout/Footer/FooterTop.tsx +30 -0
  482. package/src/Components/Layout/Footer/FooterTopProps.tsx +9 -0
  483. package/src/Components/Layout/Footer/footer-bg-design.tsx +21 -0
  484. package/src/Components/Layout/Footer/footer.module.scss +326 -0
  485. package/src/Components/Layout/Header/Header.stories.tsx +67 -0
  486. package/src/Components/Layout/Header/Header.tsx +27 -0
  487. package/src/Components/Layout/Header/HeaderProps.tsx +9 -0
  488. package/src/Components/Layout/Header/HeaderRight.tsx +12 -0
  489. package/src/Components/Layout/Header/HeaderRightItem.tsx +21 -0
  490. package/src/Components/Layout/Header/HeaderRightItemProps.tsx +13 -0
  491. package/src/Components/Layout/Header/HeaderRightProps.tsx +7 -0
  492. package/src/Components/Layout/Header/MagnifyingGlass/MagnifyingGlass.tsx +10 -0
  493. package/src/Components/Layout/Header/MegaMenu/MegaMenu.tsx +98 -0
  494. package/src/Components/Layout/Header/MegaMenu/MegaMenuProps.tsx +20 -0
  495. package/src/Components/Layout/Header/MegaMenu/megaMenu.module.scss +163 -0
  496. package/src/Components/Layout/Header/header.module.scss +115 -0
  497. package/src/Components/Layout/HeroBanner/HeroBanner.stories.tsx +77 -0
  498. package/src/Components/Layout/HeroBanner/HeroBanner.tsx +77 -0
  499. package/src/Components/Layout/HeroBanner/HeroBannerProps.tsx +10 -0
  500. package/src/Components/Layout/HeroBanner/LargeHeroIcon.tsx +18 -0
  501. package/src/Components/Layout/HeroBanner/heroBanner.module.scss +179 -0
  502. package/src/Components/Layout/index.ts +32 -0
  503. package/src/Components/Shared/Container/Container.tsx +19 -0
  504. package/src/Components/Shared/Container/ContainerProps.tsx +8 -0
  505. package/src/Components/Shared/Container/container.module.scss +13 -0
  506. package/src/Components/Shared/ElementHolder/ElementHolder.tsx +40 -0
  507. package/src/Components/Shared/ElementHolder/ElementHolderProps.tsx +18 -0
  508. package/src/Components/Shared/ElementHolder/elementHolder.module.scss +189 -0
  509. package/src/Components/Shared/Hook/useScrollFadeIn/useScrollFadeIn.tsx +28 -0
  510. package/src/Components/Shared/PillarIcon/PillarIcon.stories.tsx +31 -0
  511. package/src/Components/Shared/PillarIcon/PillarIcon.tsx +58 -0
  512. package/src/Components/Shared/PillarIcon/PillarIconsProps.tsx +5 -0
  513. package/src/Components/Shared/PillarLogo/PillarLogo.tsx +184 -0
  514. package/src/Components/Shared/ScrollFadeIn/ScrollFadeIn.tsx +43 -0
  515. package/src/Components/Shared/ScrollFadeIn/scrollFadeIn.module.scss +19 -0
  516. package/src/Components/Shared/index.ts +5 -0
package/dist/main.d.ts ADDED
File without changes
@@ -0,0 +1 @@
1
+ ._detailsCard_1ch4w_1{min-height:400px;border-radius:12px;border:1px solid var(--pathway-card-border);color:var(--pathway-card-text);background-color:var(--pathway-card-bg)}._detailsCard_1ch4w_1._detailsCardShort_1ch4w_8{min-height:274px}._detailsCardWithLink_1ch4w_12{color:var(--pathway-card-text);transition:all ease .3s}._detailsCardWithLink_1ch4w_12:hover{background-color:var(--pathway-card-hover-bg);color:var(--pathway-card-hover-text)}._cardImage_1ch4w_21{height:200px}._cardImage_1ch4w_21 img{width:100%;height:100%;object-fit:cover;object-position:center;border-radius:12px 12px 0 0}._detailsCardShort_1ch4w_8 ._cardImage_1ch4w_21{height:204px}._cardContent_1ch4w_35{padding:24px;flex:1}._cardDate_1ch4w_40{margin-bottom:var(--spacing-1-1\/2)}._cardDate_1ch4w_40 p{font-size:var(--font-size-body-sm);line-height:var(--line-height-body-regular);font-weight:var(--font-weight-bold)}._cardWrap_1ch4w_49{min-height:400px;display:flex;flex-direction:column}._detailsCardShort_1ch4w_8 ._cardWrap_1ch4w_49{min-height:274px}._cardWrap_1ch4w_49:hover{border-radius:12px}._cardContent_1ch4w_35{display:flex;flex-direction:column}._cardBody_1ch4w_66{flex:1}._cardTitle_1ch4w_70 h6{font-weight:var(--font-weight-body-regular)}._cardLink_1ch4w_74{max-height:18px;display:flex;justify-content:space-between;align-items:center;font-size:var(--font-size-body-sm);font-weight:var(--font-weight-bold)}._cardLink_1ch4w_74 span img{width:32px;height:32px}@media(min-width:760px){._detailsCard_1ch4w_1{min-height:590px}._detailsCard_1ch4w_1._detailsCardShort_1ch4w_8{min-height:474px}._cardImage_1ch4w_21{height:300px}._detailsCardShort_1ch4w_8 ._cardImage_1ch4w_21{height:304px}._cardWrap_1ch4w_49{min-height:590px}._detailsCardShort_1ch4w_8 ._cardWrap_1ch4w_49{min-height:474px}}._container_17dwz_1{padding:0 14px;margin:0 auto}._container_17dwz_1._default_17dwz_5{max-width:1428px}@media screen and (min-width:1748px){._container_17dwz_1{padding:0 14px}}._introBlock_1e53j_1 ._introBlockWrapper_1e53j_1{display:flex;flex-grow:1;margin:0 -72px}._introBlock_1e53j_1 ._introBlockWrapper_1e53j_1 ._introBlockLeft_1e53j_6{width:50%;padding:0 72px}._introBlock_1e53j_1 ._introBlockWrapper_1e53j_1 ._introBlockLeft_1e53j_6 h1{font-size:var(--font-size-h4);line-height:var(--line-height-h4);font-weight:var(--font-weight-h4)}._introBlock_1e53j_1 ._introBlockWrapper_1e53j_1 ._introBlockRight_1e53j_15{width:50%;padding:0 72px}._introBlock_1e53j_1 ._introBlockWrapper_1e53j_1 ._introBlockRight_1e53j_15 h1{font-size:var(--font-size-small);line-height:var(--line-height-label);font-weight:var(--font-weight-body-regular)}._introBlock_1e53j_1 ._introBlockWrapper_1e53j_1 ._introBlockVerticalLine_1e53j_24{background:var(--color-text);width:1px}._kpi_f5qkd_1{color:var(--bg-modal-color)}._kpi_f5qkd_1 ._kpiWrapper_f5qkd_4{display:flex;flex-direction:inherit;align-items:start}._kpi_f5qkd_1 ._kpiWrapper_f5qkd_4 ._header_f5qkd_9{flex:0 0 40%;margin-right:90px}._kpi_f5qkd_1 ._kpiWrapper_f5qkd_4 ._header_f5qkd_9 h2{font-size:var(--font-size-h4);font-weight:var(--font-weight-h5);letter-spacing:-1.92px;margin-bottom:72px;color:var(--color-business)}._kpi_f5qkd_1 ._kpiWrapper_f5qkd_4 ._header_f5qkd_9 p{font-size:var(--font-size-body-regular);line-height:var(--line-height-body-regular);font-weight:var(--font-weight-body-sm);color:var(--color-business)}._kpi_f5qkd_1 ._kpiWrapper_f5qkd_4 ._stats_f5qkd_26{flex:0 0 60%;display:flex;flex-direction:column;max-width:884px;gap:48px}._kpi_f5qkd_1 ._kpiWrapper_f5qkd_4 ._stats_f5qkd_26 ._statItem_f5qkd_33{display:flex;padding-bottom:48px;border-bottom:1px solid var(--color-business)}._kpi_f5qkd_1 ._kpiWrapper_f5qkd_4 ._stats_f5qkd_26 ._statItem_f5qkd_33:last-child{border-bottom:none;padding-bottom:0}._kpi_f5qkd_1 ._kpiWrapper_f5qkd_4 ._stats_f5qkd_26 ._statItem_f5qkd_33 ._value_f5qkd_42{flex:0 0 200px;font-size:var(--font-size-h3);line-height:var(--line-height-h3);font-weight:var(--font-weight-h5);color:var(--color-business);letter-spacing:-3.6px;min-width:230px}._kpi_f5qkd_1 ._kpiWrapper_f5qkd_4 ._stats_f5qkd_26 ._statItem_f5qkd_33 ._description_f5qkd_51{flex:1;font-size:var(--font-size-body-regular);line-height:var(--line-height-body-regular);font-weight:var(--font-weight-body-sm);color:var(--color-business);display:flex;align-items:center;padding-left:24px}._pathwayTitle_87u3o_1{margin-bottom:36px}._pathwayTitle_87u3o_1 h3{font-size:var(--font-size-h3);line-height:var(--line-height-h3);font-weight:var(--font-weight-bold)}._pathwayDescription_87u3o_10{margin-bottom:36px}._pathwayDescription_87u3o_10 p{font-size:var(--font-size-h5);line-height:1.2}._pathwayFilters_87u3o_18{margin-bottom:48px}._pathwayFilters_87u3o_18 ul{list-style:none;display:flex;margin:0 -8px}._pathwayFilters_87u3o_18 ul li{cursor:pointer;padding:0 8px}._pathwayFilters_87u3o_18 ul li._active_87u3o_30 span{color:var(--pathway-card-hover-text);background-color:var(--pathway-card-hover-bg)}._pathwayFilters_87u3o_18 ul li span{padding:20px 32px;border:1px solid var(--pathway-card-border);border-radius:48px;max-height:51px;display:inline-flex;align-items:center;font-weight:var(--font-weight-bold)}._pathwayCard_87u3o_44{margin-bottom:32px}._pathwayCard_87u3o_44:last-child{margin-bottom:0}._pathwayFilterDesktop_87u3o_51{display:none}._pathwayFilterMobile_87u3o_55{position:relative}._pathwayFilterMobile_87u3o_55 select{width:100%;min-height:51px;padding:16px;appearance:none;-webkit-appearance:none;-moz-appearance:none;cursor:pointer;border:1px solid var(--pathway-card-border);color:var(--pathway-card-text);font-size:var(--font-size-label)}._pathwayFilterMobile_87u3o_55 select:focus{outline:0}._pathwayFilterMobile_87u3o_55 svg{position:absolute;top:50%;right:0;transform:translate(-50%,-50%);width:24px;height:24px;pointer-events:none}@media(min-width:760px){._pathwayTitle_87u3o_1,._pathwayDescription_87u3o_10{margin-bottom:72px}._pathwayFilters_87u3o_18{margin-bottom:96px}._pathwayCardsWrap_87u3o_93{display:flex;flex-wrap:wrap;margin:0 -16px}._pathwayCard_87u3o_44{width:33.33%;padding:0 16px}._pathwayFilterDesktop_87u3o_51{display:block}._pathwayFilterMobile_87u3o_55{display:none}}._element_1ue3h_1{background-color:var(--color-block-bg);color:var(--color-block-text);position:relative}._elementInner_1ue3h_6{position:relative;z-index:1}._element--pt-none_1ue3h_10{padding-top:0}._element--pt-xsm_1ue3h_13{padding-top:72px}._element--pt-sm_1ue3h_16{padding-top:90px}._element--pt-md_1ue3h_19{padding-top:120px}._element--pt-lg_1ue3h_22{padding-top:144px}._element--pb-none_1ue3h_25{padding-bottom:0}._element--pb-xsm_1ue3h_28{padding-bottom:40px}._element--pb-sm_1ue3h_31{padding-bottom:48px}._element--pb-md_1ue3h_34{padding-bottom:90px}._element--pb-lg_1ue3h_37{padding-bottom:120px}._element--pb-xl_1ue3h_40{padding-bottom:144px}._element--mt-none_1ue3h_43{margin-top:0}._element--mt-xsm_1ue3h_46{margin-top:72px}._element--mt-sm_1ue3h_49{margin-top:90px}._element--mt-md_1ue3h_52{margin-top:120px}._element--mt-lg_1ue3h_55{margin-top:144px}._element--mb-none_1ue3h_58{margin-bottom:0}._element--mb-xsm_1ue3h_61{margin-bottom:72px}._element--mb-sm_1ue3h_64{margin-bottom:90px}._element--mb-md_1ue3h_67{margin-bottom:120px}._element--mb-lg_1ue3h_70{margin-bottom:144px}@media(max-width:992px){._element--pt-none_1ue3h_10{padding-top:0}._element--pt-xsm_1ue3h_13{padding-top:36px}._element--pt-sm_1ue3h_16{padding-top:45px}._element--pt-md_1ue3h_19{padding-top:60px}._element--pt-lg_1ue3h_22{padding-top:72px}._element--pb-none_1ue3h_25{padding-bottom:0}._element--pb-xsm_1ue3h_28{padding-bottom:20px}._element--pb-sm_1ue3h_31{padding-bottom:24px}._element--pb-md_1ue3h_34{padding-bottom:45px}._element--pb-lg_1ue3h_37{padding-bottom:60px}._element--pb-xl_1ue3h_40{padding-bottom:72px}._element--mt-none_1ue3h_43{margin-top:0}._element--mt-xsm_1ue3h_46{margin-top:36px}._element--mt-sm_1ue3h_49{margin-top:45px}._element--mt-md_1ue3h_52{margin-top:60px}._element--mt-lg_1ue3h_55{margin-top:72px}._element--mb-none_1ue3h_58{margin-bottom:0}._element--mb-xsm_1ue3h_61{margin-bottom:36px}._element--mb-sm_1ue3h_64{margin-bottom:45px}._element--mb-md_1ue3h_67{margin-bottom:60px}._element--mb-lg_1ue3h_70{margin-bottom:72px}}._promoBannerBlock_1q67e_1{overflow-x:hidden;padding:48px 16px}._promoBannerBlock_1q67e_1 ._promoBannerBlockContainer_1q67e_5 ._promoBannerTop_1q67e_5 ._promoBannerTopLeft_1q67e_5{padding:0 16px}._promoBannerBlock_1q67e_1 ._promoBannerBlockContainer_1q67e_5 ._promoBannerTop_1q67e_5 ._promoBannerTopLeft_1q67e_5 h1{font-size:var(--font-size-h5);line-height:var(--line-height-h5);font-weight:var(--font-weight-h4)}._promoBannerBlock_1q67e_1 ._promoBannerBlockContainer_1q67e_5 ._promoBannerTop_1q67e_5 ._promoBannerTopRight_1q67e_13{padding:48px 16px}._promoBannerBlock_1q67e_1 ._promoBannerBlockContainer_1q67e_5 ._promoBannerTop_1q67e_5 ._promoBannerTopRight_1q67e_13 h1{font-size:var(--font-size-regular);font-weight:var(--font-weight-body-regular);line-height:var(--line-height-label)}._promoBannerBlock_1q67e_1 ._promoBannerBlockContainer_1q67e_5 ._promoBannerTop_1q67e_5 ._promoBannerBgDesignContainer_1q67e_21{display:none}._promoBannerBlock_1q67e_1 ._promoBannerBlockContainer_1q67e_5 ._promoBannerBottom_1q67e_24{background-color:var(--pathway-card-bg);border-radius:16px 16px 100px 0;margin-bottom:-30px}._promoBannerBlock_1q67e_1 ._promoBannerBlockContainer_1q67e_5 ._promoBannerBottom_1q67e_24 ._promoBannerBottomLeft_1q67e_29{color:var(--pathway-card-text);padding:32px 16px}._promoBannerBlock_1q67e_1 ._promoBannerBlockContainer_1q67e_5 ._promoBannerBottom_1q67e_24 ._promoBannerBottomLeft_1q67e_29 ._promoBannerBrandPiller_1q67e_33{display:flex;align-items:center;gap:16px;margin:auto;font-size:var(--font-size-body-regular)}._promoBannerBlock_1q67e_1 ._promoBannerBlockContainer_1q67e_5 ._promoBannerBottom_1q67e_24 ._promoBannerBottomLeft_1q67e_29 ._promoBannerTitleContainer_1q67e_40{padding-block:32px}._promoBannerBlock_1q67e_1 ._promoBannerBlockContainer_1q67e_5 ._promoBannerBottom_1q67e_24 ._promoBannerBottomLeft_1q67e_29 ._promoBannerTitleContainer_1q67e_40 h1{font-size:var(--font-size-small);font-weight:var(--font-weight-body-sm);line-height:var(--line-height-h5)}._promoBannerBlock_1q67e_1 ._promoBannerBlockContainer_1q67e_5 ._promoBannerBottom_1q67e_24 ._promoBannerBottomLeft_1q67e_29 ._promoBannerTitleContainer_1q67e_40 h2{font-size:var(--font-size-small);font-weight:var(--font-weight-bold);line-height:var(--line-height-body-regular)}._promoBannerBlock_1q67e_1 ._promoBannerBlockContainer_1q67e_5 ._promoBannerBottom_1q67e_24 ._promoBannerBottomLeft_1q67e_29 p{font-size:var(--font-size-body-regular);font-weight:var(--font-weight-body-regular);line-height:var(--line-height-body-regular);padding-bottom:32px}._promoBannerBlock_1q67e_1 ._promoBannerBlockContainer_1q67e_5 ._promoBannerBottom_1q67e_24 ._promoBannerBottomRight_1q67e_59 img{height:100%;width:100%;object-fit:cover}@media screen and (min-width:992px){._promoBannerBlock_1q67e_1{padding:120px 0}._promoBannerBlock_1q67e_1 ._promoBannerBlockContainer_1q67e_5 ._promoBannerTop_1q67e_5{display:flex;flex-grow:1;margin:0 -72px;position:relative}._promoBannerBlock_1q67e_1 ._promoBannerBlockContainer_1q67e_5 ._promoBannerTop_1q67e_5 ._promoBannerTopLeft_1q67e_5{padding:0 72px;width:50%}._promoBannerBlock_1q67e_1 ._promoBannerBlockContainer_1q67e_5 ._promoBannerTop_1q67e_5 ._promoBannerTopLeft_1q67e_5 h1{font-size:var(--font-size-h4);line-height:var(--line-height-h4)}._promoBannerBlock_1q67e_1 ._promoBannerBlockContainer_1q67e_5 ._promoBannerTop_1q67e_5 ._promoBannerTopRight_1q67e_13{width:50%;padding:0 72px}._promoBannerBlock_1q67e_1 ._promoBannerBlockContainer_1q67e_5 ._promoBannerTop_1q67e_5 ._promoBannerTopRight_1q67e_13 h1{font-size:var(--font-size-small)}._promoBannerBlock_1q67e_1 ._promoBannerBlockContainer_1q67e_5 ._promoBannerTop_1q67e_5 ._promoBannerVerticalLine_1q67e_89{background:var(--color-text);width:1px}._promoBannerBlock_1q67e_1 ._promoBannerBlockContainer_1q67e_5 ._promoBannerTop_1q67e_5 ._promoBannerBgDesignContainer_1q67e_21{display:block;position:absolute;top:-120px;bottom:0;right:-120px}._promoBannerBlock_1q67e_1 ._promoBannerBlockContainer_1q67e_5 ._promoBannerBottom_1q67e_24{display:flex;padding-top:90px;background-color:transparent}._promoBannerBlock_1q67e_1 ._promoBannerBlockContainer_1q67e_5 ._promoBannerBottom_1q67e_24 ._promoBannerBottomLeft_1q67e_29{background-color:var(--pathway-card-bg);padding:72px 90px 72px 72px;border-radius:16px 0 0 16px;width:50%}._promoBannerBlock_1q67e_1 ._promoBannerBlockContainer_1q67e_5 ._promoBannerBottom_1q67e_24 ._promoBannerBottomLeft_1q67e_29 ._promoBannerTitleContainer_1q67e_40{padding-block:48px}._promoBannerBlock_1q67e_1 ._promoBannerBlockContainer_1q67e_5 ._promoBannerBottom_1q67e_24 ._promoBannerBottomLeft_1q67e_29 ._promoBannerTitleContainer_1q67e_40 h1{font-size:var(--font-size-h3);font-weight:var(--font-weight-h3);line-height:var(--line-height-h3)}._promoBannerBlock_1q67e_1 ._promoBannerBlockContainer_1q67e_5 ._promoBannerBottom_1q67e_24 ._promoBannerBottomLeft_1q67e_29 ._promoBannerTitleContainer_1q67e_40 h2{font-size:var(--font-size-h3);line-height:var(--line-height-h3)}._promoBannerBlock_1q67e_1 ._promoBannerBlockContainer_1q67e_5 ._promoBannerBottom_1q67e_24 ._promoBannerBottomLeft_1q67e_29 p{padding-bottom:48px}._promoBannerBlock_1q67e_1 ._promoBannerBlockContainer_1q67e_5 ._promoBannerBottom_1q67e_24 ._promoBannerBottomRight_1q67e_59{width:50%}._promoBannerBlock_1q67e_1 ._promoBannerBlockContainer_1q67e_5 ._promoBannerBottom_1q67e_24 ._promoBannerBottomRight_1q67e_59 img{border-radius:0 16px 96px 0}}._button_8soeq_1{position:relative;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;border:none;transition:linear all .3s;font-family:var(--font);border-radius:48px}._button_8soeq_1 span{font-size:var(--font-size-button);font-weight:var(--font-weight-button);line-height:var(--line-height-button)}._button_8soeq_1._noBorder_8soeq_17{border-color:transparent}._button_8soeq_1._noBorder_8soeq_17 span{text-decoration-line:underline;--font-weight-button: 400}._button_8soeq_1._noBorder_8soeq_17 ._text_8soeq_24 small{color:var(--color-gray-600)}._button_8soeq_1._default_8soeq_27{padding:var(--spacing-1\/2) var(--spacing-1-1\/4);min-height:40px}._button_8soeq_1._default_8soeq_27._noBorder_8soeq_17{padding:var(--spacing-1\/2) var(--spacing-3\/4)}._button_8soeq_1._large_8soeq_34{padding:var(--spacing-1\/2) var(--spacing-2);height:48px}._button_8soeq_1._large_8soeq_34._noBorder_8soeq_17{padding:var(--spacing-1\/2) var(--spacing-1)}._button_8soeq_1._small_8soeq_41{padding:var(--spacing-1\/4) var(--spacing-3\/4);min-height:32px}._button_8soeq_1._small_8soeq_41._noBorder_8soeq_17{padding:var(--spacing-1\/4) var(--spacing-1\/2)}._button_8soeq_1._solid-primary_8soeq_48{color:var(--color-text);background-color:var(--color-bg)}._button_8soeq_1._solid-primary_8soeq_48 ._text_8soeq_24 small{color:var(--color-lite)}._button_8soeq_1._solid-secondary_8soeq_55{color:var(--color-text);background-color:var(--color-bg)}._button_8soeq_1._solid-secondary_8soeq_55 ._text_8soeq_24 small{color:var(--color-lite)}._button_8soeq_1._solid-ux_8soeq_62{color:var(--color-text);background-color:var(--color-bg)}._button_8soeq_1._solid-ux_8soeq_62 ._text_8soeq_24 small{color:var(--color-lite)}._button_8soeq_1._hollow-primary_8soeq_69{background:transparent;border-color:var(--color-block-bg);color:var(--color-text);border-width:2px;border-style:solid}._button_8soeq_1._hollow-primary_8soeq_69 ._customLoader_8soeq_76{border-top-color:var(--color-primary-800)}._button_8soeq_1._hollow-primary_8soeq_69:active:enabled{background:var(--color-primary-100);border-width:2px}._button_8soeq_1._hollow-secondary_8soeq_83{background:transparent;border-color:var(--color-block-bg);color:var(--color-text);border-width:2px;border-style:solid}._button_8soeq_1._hollow-secondary_8soeq_83 ._customLoader_8soeq_76{border-top-color:var(--color-secondary-800)}._button_8soeq_1._hollow-secondary_8soeq_83:active:enabled{background:var(--color-secondary-100);border-width:2px}._button_8soeq_1._hollow-ux_8soeq_97{background:transparent;border-color:var(--color-block-bg);color:var(--color-text);border-width:2px;border-style:solid}._button_8soeq_1._hollow-ux_8soeq_97 ._customLoader_8soeq_76{border-top-color:var(--color-ux-800)}._button_8soeq_1._hollow-ux_8soeq_97:active:enabled{background:var(--color-ux-100);border-width:2px}._button_8soeq_1 ._labelContainer_8soeq_111{padding:10px 32px;border:none;gap:12px;position:relative;display:inline-flex;align-items:center;justify-content:center;font-weight:var(--font-weight-h6)}._button_8soeq_1 ._buttonIcon_8soeq_122{display:inline-flex}._button_8soeq_1 ._buttonLabel_8soeq_125{font-family:var(--font)}._footer_1ygoa_1{width:100%}._footer_1ygoa_1 ._container_1ygoa_4{max-width:1832px;margin:0 auto}._footer_1ygoa_1 ._footerTop_1ygoa_8{padding-top:72px;border-radius:12px 12px 0 0;background-color:var(--color-taste)}._footer_1ygoa_1 ._footerTop_1ygoa_8 ._footerTopWrapper_1ygoa_13{color:var(--color-visit)}._footer_1ygoa_1 ._footerTop_1ygoa_8 ._footerTopLeft_1ygoa_16{align-items:center}._footer_1ygoa_1 ._footerTop_1ygoa_8 ._footerTopLeft_1ygoa_16 h1{font-size:var(--font-size-h5);font-weight:var(--font-weight-h4)}._footer_1ygoa_1 ._footerTop_1ygoa_8 ._footerTopLeft_1ygoa_16 h2{font-size:var(--font-size-h5);font-weight:var(--font-weight-h5);padding-bottom:32px}._footer_1ygoa_1 ._footerTop_1ygoa_8 ._footerTopRight_1ygoa_28{font-size:var(--font-size-body-regular)}._footer_1ygoa_1 ._footerMiddle_1ygoa_31{background-color:var(--color-visit)}._footer_1ygoa_1 ._footerMiddle_1ygoa_31 ._footerMiddleWrapper_1ygoa_34 img{padding-bottom:72px}._footer_1ygoa_1 ._footerMiddle_1ygoa_31 ._footerMiddleWrapper_1ygoa_34 ._footerItem_1ygoa_37 h3{color:var(--color-taste);font-size:var(--font-size-small);font-weight:var(--font-weight-h4)}._footer_1ygoa_1 ._footerMiddle_1ygoa_31 ._footerMiddleWrapper_1ygoa_34 ._footerItem_1ygoa_37 ul{display:none}._footer_1ygoa_1 ._footerBottom_1ygoa_45{background-color:var(--color-visit)}._footer_1ygoa_1 ._footerBottom_1ygoa_45 ._footerBottomWrapper_1ygoa_48 ._footerBottomLeft_1ygoa_48 ._footerBottomLeftWrapper_1ygoa_48 ._footerBottomLeftLogo_1ygoa_48{color:var(--color-taste);font-size:var(--font-size-body-sm)}._footer_1ygoa_1 ._footerBottom_1ygoa_45 ._footerBottomWrapper_1ygoa_48 ._footerBottomLeft_1ygoa_48 ._footerBottomLeftWrapper_1ygoa_48 ._footerBottomLeftLogo_1ygoa_48 img{padding-bottom:24px}._footer_1ygoa_1 ._footerBottom_1ygoa_45 ._footerBottomWrapper_1ygoa_48 ._footerBottomLeft_1ygoa_48 ._footerBottomLeftWrapper_1ygoa_48 ._footerBottomLeftLinks_1ygoa_55{display:flex;align-items:flex-end}._footer_1ygoa_1 ._footerBottom_1ygoa_45 ._footerBottomWrapper_1ygoa_48 ._footerBottomLeft_1ygoa_48 ._footerBottomLeftWrapper_1ygoa_48 ._footerBottomLeftLinks_1ygoa_55 ul{display:flex;gap:24px;list-style:none;padding:0;margin:0}._footer_1ygoa_1 ._footerBottom_1ygoa_45 ._footerBottomWrapper_1ygoa_48 ._footerBottomLeft_1ygoa_48 ._footerBottomLeftWrapper_1ygoa_48 ._footerBottomLeftLinks_1ygoa_55 ul a{color:var(--color-taste);font-size:var(--font-size-body-sm)}._footer_1ygoa_1 ._footerBottom_1ygoa_45 ._footerBottomWrapper_1ygoa_48 ._footerBottomRight_1ygoa_70 ._footerBottomRightWrapper_1ygoa_70{display:flex;padding-top:72px;gap:16px}._footer_1ygoa_1 ._footerBottom_1ygoa_45 ._footerBottomWrapper_1ygoa_48 ._footerBottomRight_1ygoa_70 ._footerBottomRightWrapper_1ygoa_70 ._footerLogo_1ygoa_75{display:flex;background-color:var(--color-taste);border-radius:50%;height:40px;width:40px;align-items:center;justify-content:center}._footer_1ygoa_1 ._footerBottom_1ygoa_45 ._footerBottomWrapper_1ygoa_48 ._footerBottomRight_1ygoa_70 ._footerBottomRightWrapper_1ygoa_70 ._footerLogo_1ygoa_75 a{display:flex;color:var(--color-visit)}._footer_1ygoa_1 ._footerBottom_1ygoa_45 ._footerBottomWrapper_1ygoa_48 ._footerBottomRight_1ygoa_70 ._footerBottomRightWrapper_1ygoa_70 ._footerLogo_1ygoa_75 a svg{height:24px;width:24px}@media screen and (min-width:1440px){._footer_1ygoa_1 ._footerTop_1ygoa_8{position:relative}._footer_1ygoa_1 ._footerTop_1ygoa_8 ._footerTopWrapper_1ygoa_13{display:flex;gap:154px;justify-content:space-between}._footer_1ygoa_1 ._footerTop_1ygoa_8 ._footerTopWrapper_1ygoa_13 ._footerTopLeft_1ygoa_16{display:flex;flex-direction:column;justify-content:center;align-items:start}._footer_1ygoa_1 ._footerTop_1ygoa_8 ._footerTopWrapper_1ygoa_13 ._footerTopLeft_1ygoa_16 h1{font-size:var(--font-size-h3);font-weight:var(--font-weight-h1);line-height:var(--line-height-h3)}._footer_1ygoa_1 ._footerTop_1ygoa_8 ._footerTopWrapper_1ygoa_13 ._footerTopLeft_1ygoa_16 h2{font-size:var(--font-size-h3);font-weight:var(--font-weight-bold);line-height:var(--line-height-h3)}._footer_1ygoa_1 ._footerTop_1ygoa_8 ._footerTopWrapper_1ygoa_13 ._footerTopRight_1ygoa_28{display:flex;justify-content:center;align-items:center}._footer_1ygoa_1 ._footerTop_1ygoa_8 ._footerTopWrapper_1ygoa_13 ._footerTopRight_1ygoa_28 p{font-size:var(--font-size-small)}._footer_1ygoa_1 ._footerTop_1ygoa_8 ._footerBgDesignContainer_1ygoa_125{position:absolute;top:0;bottom:0;right:96px}._footer_1ygoa_1 ._footerTop_1ygoa_8 ._footerBgDesignContainer_1ygoa_125 svg{height:100%}._footer_1ygoa_1 ._footerMiddle_1ygoa_31 ._footerMiddleWrapper_1ygoa_34{display:flex;flex-wrap:wrap;padding-top:64px;padding-bottom:32px}._footer_1ygoa_1 ._footerMiddle_1ygoa_31 ._footerMiddleWrapper_1ygoa_34 ._footerLogoContainer_1ygoa_140{flex:1}._footer_1ygoa_1 ._footerMiddle_1ygoa_31 ._footerMiddleWrapper_1ygoa_34 ._socialMediaLinks_1ygoa_143{display:none}._footer_1ygoa_1 ._footerMiddle_1ygoa_31 ._footerMiddleLinks_1ygoa_146{display:flex;flex-grow:1;flex-wrap:wrap}._footer_1ygoa_1 ._footerMiddle_1ygoa_31 ._footerItem_1ygoa_37{width:20%}._footer_1ygoa_1 ._footerMiddle_1ygoa_31 ._footerItem_1ygoa_37 h3{padding-bottom:28px;font-weight:var(--font-weight-body-sm)}._footer_1ygoa_1 ._footerMiddle_1ygoa_31 ._footerItem_1ygoa_37 ul{display:block!important;gap:16px;list-style:none;padding:0;margin:0}._footer_1ygoa_1 ._footerMiddle_1ygoa_31 ._footerItem_1ygoa_37 a{color:var(--color-sand);font-size:var(--font-size-body-xsm)}._footer_1ygoa_1 ._footerBottom_1ygoa_45{padding-bottom:38px}._footer_1ygoa_1 ._footerBottom_1ygoa_45 ._footerBottomWrapper_1ygoa_48{display:flex;justify-content:space-between}._footer_1ygoa_1 ._footerBottom_1ygoa_45 ._footerBottomWrapper_1ygoa_48 ._footerBottomLeft_1ygoa_48 ._footerBottomLeftWrapper_1ygoa_48{display:flex;gap:166px}._footer_1ygoa_1 ._footerBottom_1ygoa_45 ._footerBottomWrapper_1ygoa_48 ._footerBottomRight_1ygoa_70 ._footerBottomRightWrapper_1ygoa_70{display:flex}._footer_1ygoa_1 ._footerBottom_1ygoa_45 ._footerBottomWrapper_1ygoa_48 ._footerBottomRight_1ygoa_70 ._footerBottomRightWrapper_1ygoa_70 ._footerLogoWrapper_1ygoa_183{padding:0 8px}._footer_1ygoa_1 ._footerBottom_1ygoa_45 ._footerBottomWrapper_1ygoa_48 ._footerBottomRight_1ygoa_70 ._footerBottomRightWrapper_1ygoa_70 ._footerLogoWrapper_1ygoa_183 ._footerLogo_1ygoa_75{display:flex;background-color:#92c134;border-radius:50%;height:40px;width:40px;align-items:center;justify-content:center}._footer_1ygoa_1 ._footerBottom_1ygoa_45 ._footerBottomWrapper_1ygoa_48 ._footerBottomRight_1ygoa_70 ._footerBottomRightWrapper_1ygoa_70 ._footerLogoWrapper_1ygoa_183 ._footerLogo_1ygoa_75 a{display:flex;color:var(--color-inverse-text)}._footer_1ygoa_1 ._footerBottom_1ygoa_45 ._footerBottomWrapper_1ygoa_48 ._footerBottomRight_1ygoa_70 ._footerBottomRightWrapper_1ygoa_70 ._footerLogoWrapper_1ygoa_183 ._footerLogo_1ygoa_75 a svg{height:24px;width:24px}}._header_i7gjd_1{background:var(--header-bg)}._header_i7gjd_1 ._headerWrapper_i7gjd_4{display:flex;align-items:center;justify-content:space-between;min-height:96px}._header_i7gjd_1 ._headerLogo_i7gjd_10,._header_i7gjd_1 ._headerLogo_i7gjd_10 a{display:flex}._header_i7gjd_1 ._logo_i7gjd_16{display:none}._header_i7gjd_1 ._logoSmall_i7gjd_19{display:block}._header_i7gjd_1 ._headerRightWrapper_i7gjd_22{display:flex;align-items:center;margin:0 -16px}._header_i7gjd_1 ._headerBottomItemHolder_i7gjd_27{padding:0 16px;transition:color .3s ease-in}._header_i7gjd_1 ._headerBottomItemHolder_i7gjd_27 a{display:flex;align-items:center;color:var(--header-color);font-size:24px;font-weight:400;line-height:1.5;cursor:pointer}._header_i7gjd_1 ._headerBottomItemHolder_i7gjd_27 a ._icon_i7gjd_40{display:flex}._header_i7gjd_1 ._headerBottomItemHolder_i7gjd_27 a ._icon_i7gjd_40 svg{width:24px;height:24px}._header_i7gjd_1 ._headerBottomItemHolder_i7gjd_27:hover a,._header_i7gjd_1 ._headerBottomItemHolder_i7gjd_27._active_i7gjd_47 a{color:var(--font-color)}@media screen and (min-width:1648px){._header_i7gjd_1 ._headerRightWrapper_i7gjd_22{display:flex;align-items:center;margin:0 -28px}._header_i7gjd_1 ._headerBottomItemHolder_i7gjd_27{padding:0 28px}}@media screen and (min-width:992px){._header_i7gjd_1 ._logo_i7gjd_16{display:block}._header_i7gjd_1 ._logoSmall_i7gjd_19{display:none}}._hero_ohgms_1{background:var(--color-bg)}._heroLarge_ohgms_4{position:relative;min-height:90vh}._heroLarge_ohgms_4 ._heroImg_ohgms_8{position:absolute;inset:0;border-radius:0 0 366px;overflow:hidden;background:linear-gradient(180deg,#00000080,#0000 41.35%),linear-gradient(0deg,#7c847b0d 0% 100%),#000}._heroLarge_ohgms_4 ._heroImg_ohgms_8 img{width:100%;height:100%;object-fit:cover;object-position:center}._heroLarge_ohgms_4 ._heroWrapper_ohgms_24{position:relative;z-index:10;width:100%;height:100%;padding-top:112px;color:var(--color-text)}._heroLarge_ohgms_4 ._heroWrapper_ohgms_24 h1{max-width:898px;font-size:var(--font-size-h1);line-height:1;font-weight:400;letter-spacing:-7.68px}._heroLarge_ohgms_4 ._heroWrapper_ohgms_24 h1 span{font-weight:700}._heroLarge_ohgms_4 ._heroSvg_ohgms_42{color:var(--color-text);position:absolute;z-index:5;left:0;bottom:0;height:340px}._heroMedium_ohgms_50{position:relative}._heroMedium_ohgms_50 ._heroWrapper_ohgms_24{display:flex;min-height:72vh;flex-wrap:wrap}._heroMedium_ohgms_50 ._heroWrapper_ohgms_24 ._content_ohgms_58{display:flex;flex-direction:column;justify-content:center;width:50%;padding:120px 0;color:var(--color-text)}._heroMedium_ohgms_50 ._heroWrapper_ohgms_24 ._content_ohgms_58 h1{max-width:604px;font-size:var(--font-size-h2);line-height:1;font-weight:400;letter-spacing:-5.6px}._heroMedium_ohgms_50 ._heroWrapper_ohgms_24 ._content_ohgms_58 h1 span{font-weight:700}._heroMedium_ohgms_50 ._heroWrapper_ohgms_24 ._content_ohgms_58 p{font-size:24px;line-height:1.3;font-weight:400;margin-top:90px;max-width:604px}._heroMedium_ohgms_50 ._heroWrapper_ohgms_24 ._heroImg_ohgms_8{position:absolute;right:0;width:50%;height:100%;border-radius:500px 0 0;overflow:hidden}._heroMedium_ohgms_50 ._heroWrapper_ohgms_24 ._heroImg_ohgms_8 img{width:100%;height:100%;object-fit:cover;object-position:center}._heroSmall_ohgms_97{position:relative}._heroSmall_ohgms_97 ._heroWrapper_ohgms_24{display:flex;min-height:50vh;flex-wrap:wrap}._heroSmall_ohgms_97 ._heroWrapper_ohgms_24 ._content_ohgms_58{display:flex;flex-direction:column;justify-content:center;width:50%;color:var(--color-text);padding:100px 0}._heroSmall_ohgms_97 ._heroWrapper_ohgms_24 ._content_ohgms_58 h1{max-width:604px;font-size:var(--font-size-h3);line-height:1;font-weight:400;letter-spacing:-3.6px}._heroSmall_ohgms_97 ._heroWrapper_ohgms_24 ._content_ohgms_58 h1 span{font-weight:700}._heroSmall_ohgms_97 ._heroWrapper_ohgms_24 ._content_ohgms_58 p{font-size:24px;line-height:1.3;font-weight:400;margin-top:90px;max-width:604px}._heroSmall_ohgms_97 ._heroWrapper_ohgms_24 ._heroImg_ohgms_8{position:absolute;right:0;width:50%;height:100%;border-radius:500px 0 0;overflow:hidden}._heroSmall_ohgms_97 ._heroWrapper_ohgms_24 ._heroImg_ohgms_8 img{width:100%;height:100%;object-fit:cover;object-position:center}
package/dist/vite.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/package.json ADDED
@@ -0,0 +1,73 @@
1
+ {
2
+ "name": "@hellobetterdigitalnz/selwynui",
3
+ "version": "0.0.1-1",
4
+ "type": "module",
5
+ "main": "dist/index.cjs.js",
6
+ "module": "dist/index.es.js",
7
+ "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist",
10
+ "src/Components/**/*"
11
+ ],
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "scripts": {
16
+ "dev": "vite",
17
+ "build": "tsc -b && vite build",
18
+ "lint": "eslint .",
19
+ "preview": "vite preview",
20
+ "storybook": "storybook dev -p 6006",
21
+ "build-storybook": "storybook build"
22
+ },
23
+ "dependencies": {
24
+ "clsx": "^2.1.1",
25
+ "dts": "^0.1.1",
26
+ "es6-slide-up-down": "^1.0.0",
27
+ "prop-types": "^15.8.1",
28
+ "react": "^19.2.0",
29
+ "react-dom": "^19.2.0",
30
+ "react-icons": "^5.5.0",
31
+ "sass": "^1.94.1",
32
+ "vite-plugin-dts": "^4.5.4"
33
+ },
34
+ "peerDependencies": {
35
+ "react": "^19.2.0",
36
+ "react-dom": "^19.2.0"
37
+ },
38
+ "devDependencies": {
39
+ "@chromatic-com/storybook": "4.1.2",
40
+ "@eslint/js": "^9.39.1",
41
+ "@storybook/addon-a11y": "10.0.7",
42
+ "@storybook/addon-docs": "10.0.7",
43
+ "@storybook/addon-essentials": "^8.6.14",
44
+ "@storybook/addon-vitest": "10.0.7",
45
+ "@storybook/react": "^10.0.7",
46
+ "@storybook/react-vite": "^10.0.7",
47
+ "@types/node": "^24.10.0",
48
+ "@types/prop-types": "^15.7.15",
49
+ "@types/react": "^19.2.2",
50
+ "@types/react-dom": "^19.2.2",
51
+ "@vitejs/plugin-react": "^5.1.0",
52
+ "@vitest/browser-playwright": "^4.0.8",
53
+ "@vitest/coverage-v8": "^4.0.8",
54
+ "classnames": "^2.5.1",
55
+ "eslint": "^9.39.1",
56
+ "eslint-plugin-react-hooks": "^5.2.0",
57
+ "eslint-plugin-react-refresh": "^0.4.24",
58
+ "eslint-plugin-storybook": "10.0.7",
59
+ "globals": "^16.5.0",
60
+ "playwright": "^1.56.1",
61
+ "sass-embedded": "^1.93.3",
62
+ "storybook": "^10.0.7",
63
+ "typescript": "~5.9.3",
64
+ "typescript-eslint": "^8.46.3",
65
+ "vite": "^7.2.2",
66
+ "vitest": "^4.0.8",
67
+ "webpack": "^5.102.1",
68
+ "webpack-cli": "^6.0.1"
69
+ },
70
+ "customConfig": {
71
+ "featureEnabled": true
72
+ }
73
+ }
@@ -0,0 +1,90 @@
1
+ import React, {useState} from "react";
2
+ import {Meta, StoryObj} from '@storybook/react-vite';
3
+ // @ts-ignore
4
+ import Accordion from './Accordion.tsx';
5
+ // @ts-ignore
6
+ import AccordionItem from './AccordionItem.tsx';
7
+ import Container from "../../Shared/Container/Container";
8
+ import ElementHolder from "../../Shared/ElementHolder/ElementHolder";
9
+
10
+ const meta: Meta = {
11
+ title: 'DataDisplay / Accordion',
12
+ component: Accordion,
13
+ parameters: {
14
+ layout: 'fullscreen', // remove default Storybook padding
15
+ },
16
+ tags: ['autodocs'],
17
+ };
18
+
19
+ export default meta;
20
+
21
+ type Story = StoryObj<typeof meta>;
22
+
23
+ const AccordionTemplate: Story = {
24
+ render: ({ items, ...args }) => {
25
+ // keep track of open states by index
26
+ const [openItems, setOpenItems] = useState<Record<string, boolean>>({});
27
+
28
+ const handleToggle = (id: string, value: boolean) => {
29
+ setOpenItems((prev) => ({ ...prev, [id]: value }));
30
+ };
31
+
32
+ return (
33
+ <ElementHolder paddingBottom="md" paddingTop="sm" pillar="visit">
34
+ <Container>
35
+ <Accordion {...args}>
36
+ {items.map((item: any) => (
37
+ <AccordionItem
38
+ key={item.index}
39
+ isOpen={!!openItems[item.index]}
40
+ onToggle={(val) => handleToggle(item.index, val)}
41
+ index={item.index}
42
+ title={item.title}
43
+ >
44
+ {item.children}
45
+ </AccordionItem>
46
+ ))}
47
+ </Accordion>
48
+ </Container>
49
+
50
+ {/* Buttons to trigger specific IDs */}
51
+ </ElementHolder>
52
+ );
53
+ },
54
+ };
55
+
56
+ export const Example = {
57
+ ...AccordionTemplate,
58
+ args: {
59
+ allowMultiple:true,
60
+ title: 'Insights lorem ipsum dolor sit amet',
61
+ content: 'Sed fringilla magna facilisis auctor venenatis. Duis ut vestibulum risus. Nunc a finibus dui. Donec hendrerit tristique odio, ac porta dui maximus et. Duis vestibulum velit eget erat fermentum, fermentum mollis tortor tincidunt. Integer lacinia lacinia urna scelerisque mattis. Fusce vestibulum felis eget magna placerat faucibus id et tellus. Sed rutrum mi sed leo viverra tempus. Nunc eu congue tellus, sed dapibus dui.',
62
+ // image: '/img/accordion-image.svg',
63
+ items: [
64
+ {
65
+ index:'1',
66
+ title: 'Lorem ipsum dolor',
67
+ children: 'Sed fringilla magna facilisis auctor venenatis. Duis ut vestibulum risus. Nunc a finibus dui. Donec hendrerit tristique odio, ac porta dui maximus et. Duis vestibulum velit eget erat fermentum, fermentum mollis tortor tincidunt. Integer lacinia lacinia urna scelerisque mattis. Fusce vestibulum felis eget magna placerat faucibus id et tellus. Sed rutrum mi sed leo viverra tempus. Nunc eu congue tellus, sed dapibus dui.'
68
+ },
69
+ {
70
+ index:'2',
71
+ title: 'Lorem ipsum dolor',
72
+ children: <>
73
+ <p>'Sed fringilla magna facilisis auctor venenatis. Duis ut vestibulum risus. Nunc a finibus dui. Donec hendrerit tristique odio, ac porta dui maximus et. Duis vestibulum velit eget erat fermentum, fermentum mollis tortor tincidunt. Integer lacinia lacinia urna scelerisque mattis. Fusce vestibulum felis eget magna placerat faucibus id et tellus. Sed rutrum mi sed leo viverra tempus. Nunc eu congue tellus, sed dapibus dui.'</p>
74
+ <img src="/img/accordion-image.svg" alt="" />
75
+ </>,
76
+ },
77
+ {
78
+ index:'3',
79
+ title: 'Lorem ipsum dolor',
80
+ children: 'Sed fringilla magna facilisis auctor venenatis. Duis ut vestibulum risus. Nunc a finibus dui. Donec hendrerit tristique odio, ac porta dui maximus et. Duis vestibulum velit eget erat fermentum, fermentum mollis tortor tincidunt. Integer lacinia lacinia urna scelerisque mattis. Fusce vestibulum felis eget magna placerat faucibus id et tellus. Sed rutrum mi sed leo viverra tempus. Nunc eu congue tellus, sed dapibus dui.'
81
+ },
82
+ {
83
+ index:'4',
84
+ title: 'Lorem ipsum dolor',
85
+ children: 'Sed fringilla magna facilisis auctor venenatis. Duis ut vestibulum risus. Nunc a finibus dui. Donec hendrerit tristique odio, ac porta dui maximus et. Duis vestibulum velit eget erat fermentum, fermentum mollis tortor tincidunt. Integer lacinia lacinia urna scelerisque mattis. Fusce vestibulum felis eget magna placerat faucibus id et tellus. Sed rutrum mi sed leo viverra tempus. Nunc eu congue tellus, sed dapibus dui.'
86
+ },
87
+ ],
88
+ },
89
+ };
90
+
@@ -0,0 +1,57 @@
1
+ import styles from "./Accordion.module.scss";
2
+ import AccordionProvider from "./AccordionProvider";
3
+ import AccordionProps from "./AccordionProps.tsx";
4
+ import ScrollFadeIn from "../../Shared/ScrollFadeIn/ScrollFadeIn.tsx";
5
+ import React, { Children, useEffect, useState } from "react";
6
+ import AccordionBgDesign from "./accordion-bg-design.tsx";
7
+
8
+ const Accordion = (props: AccordionProps) => {
9
+ const {
10
+ children,
11
+ allowMultiple,
12
+ title,
13
+ content,
14
+ image,
15
+ activeId,
16
+ onActiveIdChange
17
+ } = props;
18
+
19
+ const childrenArray = Children.toArray(children);
20
+
21
+ const [isTabletOrLarger, setIsTabletOrLarger] = useState(
22
+ typeof window !== "undefined" ? window.innerWidth >= 768 : false
23
+ );
24
+
25
+ useEffect(() => {
26
+ const handleResize = () => {
27
+ setIsTabletOrLarger(window.innerWidth >= 768);
28
+ };
29
+
30
+ window.addEventListener("resize", handleResize);
31
+ return () => window.removeEventListener("resize", handleResize);
32
+ }, []);
33
+
34
+ return (
35
+ <AccordionProvider allowMultiple={allowMultiple ?? false} >
36
+ <div className={styles.accordionBlock}>
37
+ {title && (
38
+ <div className={styles.accordionHeading}>
39
+ <ScrollFadeIn>
40
+ <h2>{title}</h2>
41
+ <p>{content}</p>
42
+ </ScrollFadeIn>
43
+ </div>
44
+
45
+ )}
46
+ <div className={`${styles.accordionWrapper}`}>
47
+ <div className={styles.accordionBgDesignContainer}>
48
+ <AccordionBgDesign />
49
+ </div>
50
+ {children}
51
+ </div>
52
+ </div>
53
+ </AccordionProvider>
54
+ );
55
+ };
56
+
57
+ export default Accordion;
@@ -0,0 +1,11 @@
1
+ import {createContext} from "react";
2
+ import AccordionContextInterface from "./AccordionContextInterface.tsx";
3
+
4
+ const AccordionContext = createContext<AccordionContextInterface>({
5
+ handleClick: (index: number) => { console.log(`Handling click for index ${index}`); },
6
+ isOpened: (index: number) => { console.log(`Handle index ${index} is opened`); return false; },
7
+ allowMultiple: false,
8
+ openedList: [],
9
+ });
10
+
11
+ export default AccordionContext;
@@ -0,0 +1,8 @@
1
+ interface AccordionContextInterface {
2
+ handleClick: (index: number) => void;
3
+ isOpened: (index: number) => boolean;
4
+ allowMultiple?: boolean;
5
+ openedList: any[];
6
+ }
7
+
8
+ export default AccordionContextInterface
@@ -0,0 +1,159 @@
1
+ import { useContext, useEffect, useRef } from "react";
2
+ import AccordionContext from "./AccordionContext";
3
+ import AccordionItemProps from "./AccordionItemProps.tsx";
4
+ import styles from "./accordion.module.scss";
5
+ import CaretUp from "../../Icons/Arrows/CaretUp/CaretUp";
6
+ import CaretDown from "../../Icons/Arrows/CaretDown/CaretDown";
7
+ import { slideDown, slideUp } from "es6-slide-up-down";
8
+ import useScrollFadeIn from "../../Shared/Hook/useScrollFadeIn/useScrollFadeIn.tsx";
9
+
10
+ const ANIMATION_DURATION = 300;
11
+
12
+ const AccordionItem = (props: AccordionItemProps) => {
13
+ const {
14
+ index,
15
+ title,
16
+ children,
17
+ onAfterOpened,
18
+ onAfterClosed,
19
+ onBeforeClosed,
20
+ extraClass = "",
21
+ accordionClass,
22
+ icon,
23
+ elementId,
24
+ isOpen,
25
+ onToggle,
26
+ } = props;
27
+
28
+ const { ref, className } = useScrollFadeIn();
29
+ const itemIndex = typeof index === "string" ? parseInt(index) : index;
30
+ const context = useContext(AccordionContext);
31
+ const bodyRef = useRef<HTMLDivElement>(null);
32
+
33
+ const isControlled = isOpen !== undefined;
34
+ const isOpened = isControlled ? !!isOpen : context.isOpened(itemIndex);
35
+
36
+ const closeHideTimer = useRef<ReturnType<typeof setTimeout> | null>(null);
37
+
38
+ const clearCloseTimer = () => {
39
+ if (closeHideTimer.current) {
40
+ clearTimeout(closeHideTimer.current);
41
+ closeHideTimer.current = null;
42
+ }
43
+ };
44
+
45
+ const handleClick = () => {
46
+ if (isControlled) {
47
+ onToggle?.(!isOpened);
48
+ return;
49
+ }
50
+
51
+ if (isOpened) {
52
+ let canClose = true;
53
+ if (onBeforeClosed) canClose = onBeforeClosed();
54
+ if (canClose) {
55
+ if (bodyRef.current) {
56
+ const el = bodyRef.current;
57
+ clearCloseTimer();
58
+ el.style.display = "block";
59
+ slideUp(el, { duration: ANIMATION_DURATION });
60
+ closeHideTimer.current = setTimeout(() => {
61
+ el.style.display = "none";
62
+ context.handleClick(itemIndex);
63
+ onAfterClosed?.();
64
+ }, ANIMATION_DURATION);
65
+ } else {
66
+ context.handleClick(itemIndex);
67
+ onAfterClosed?.();
68
+ }
69
+ }
70
+ } else {
71
+ context.handleClick(itemIndex);
72
+ if (bodyRef.current) {
73
+ const el = bodyRef.current;
74
+ clearCloseTimer();
75
+ el.style.display = "block";
76
+ slideDown(el, { duration: ANIMATION_DURATION });
77
+ setTimeout(() => onAfterOpened?.(), ANIMATION_DURATION);
78
+ } else {
79
+ onAfterOpened?.();
80
+ }
81
+ }
82
+ };
83
+
84
+ useEffect(() => {
85
+ if (!bodyRef.current) return;
86
+ bodyRef.current.style.display = isOpened ? "block" : "none";
87
+ }, []);
88
+
89
+ useEffect(() => {
90
+ if (!isControlled || !bodyRef.current) return;
91
+
92
+ const el = bodyRef.current;
93
+ clearCloseTimer();
94
+
95
+ if (isOpened) {
96
+
97
+ el.style.display = "block";
98
+ slideDown(el, { duration: ANIMATION_DURATION });
99
+ const t = setTimeout(() => onAfterOpened?.(), ANIMATION_DURATION);
100
+ return () => clearTimeout(t);
101
+ } else {
102
+ el.style.display = "block";
103
+ slideUp(el, { duration: ANIMATION_DURATION });
104
+ closeHideTimer.current = setTimeout(() => {
105
+ el.style.display = "none";
106
+ onAfterClosed?.();
107
+ }, ANIMATION_DURATION);
108
+ }
109
+ }, [isOpened, isControlled, onAfterClosed, onAfterOpened]);
110
+
111
+ // Cleanup on unmount
112
+ useEffect(() => {
113
+ return () => clearCloseTimer();
114
+ }, []);
115
+
116
+ return (
117
+ <div
118
+ ref={ref as any}
119
+ id={elementId}
120
+ className={`scrollFadeIn ${className} ${styles.accordion} ${extraClass}`}
121
+ >
122
+ <div
123
+ onClick={handleClick}
124
+ className={`${styles.header} accordionHeader`}
125
+ aria-expanded={isOpened}
126
+ aria-controls={`accordion-body-${elementId}`}
127
+ >
128
+ <div className={styles.title}>
129
+ {icon && (
130
+ <div className={`${styles.accordionIcon} ${accordionClass}`}>{icon}</div>
131
+ )}
132
+ <h4>{title}</h4>
133
+ </div>
134
+ <div className={`${styles.icon} accordionIcon`}>
135
+ {isOpened ? <CaretUp /> : <CaretDown />}
136
+ </div>
137
+ </div>
138
+
139
+ <div
140
+ className={`${styles.accordionBodyHolder} ${isOpened ? styles.accordionBodyHolderOpened : ""
141
+ } accordionBodyHolder`}
142
+ >
143
+ <div
144
+ ref={bodyRef}
145
+ id={`accordion-body-${elementId}`}
146
+ className={`accordionBody ${styles.accordionBody}`}
147
+ style={{ overflow: "hidden" }}
148
+ >
149
+ <div className={`${styles.bodyInner} accordionBodyInner`}>{children}</div>
150
+ </div>
151
+ </div>
152
+
153
+ <hr className={styles.accordionHorizontalLine}/>
154
+
155
+ </div>
156
+ );
157
+ };
158
+
159
+ export default AccordionItem;
@@ -0,0 +1,20 @@
1
+ import {ReactNode} from "react";
2
+
3
+ interface AccordionItemProps {
4
+ index: string | number;
5
+ title: string;
6
+ children: string | ReactNode;
7
+ onAfterOpened?: () => void;
8
+ onAfterClosed?: () => void;
9
+ onBeforeClosed?: () => boolean;
10
+ extraClass?:string;
11
+ accordionClass?:string;
12
+ icon?:ReactNode;
13
+ column?: "one" | "two";
14
+ id?: any;
15
+ elementId?: string;
16
+ isOpen?: boolean;
17
+ onToggle?: (open: boolean) => void;
18
+ }
19
+
20
+ export default AccordionItemProps;
@@ -0,0 +1,13 @@
1
+ import {ReactNode} from "react";
2
+
3
+ interface AccordionProps {
4
+ allowMultiple?: boolean;
5
+ children: ReactNode;
6
+ title?: string;
7
+ content?: string;
8
+ image?: string;
9
+ activeId?: number | null;
10
+ onActiveIdChange?: (id: number | null) => void;
11
+ }
12
+
13
+ export default AccordionProps;
@@ -0,0 +1,66 @@
1
+ import {useState} from "react";
2
+ import AccordionContext from "./AccordionContext";
3
+ import AccordionProviderInterface from "./AccordionProviderInterface.tsx";
4
+
5
+ const AccordionProvider = (props: AccordionProviderInterface) => {
6
+
7
+ const {
8
+ children,
9
+ allowMultiple
10
+ } = props;
11
+
12
+ const [openedList, setOpenedList] = useState<any[]>([]);
13
+
14
+
15
+ const isOpened = (key: number|string) => {
16
+ return openedList.indexOf(key) >= 0;
17
+ }
18
+
19
+ const openItem = (key: number|string) => {
20
+ if (allowMultiple) {
21
+ const list = [...openedList];
22
+ list.push(key);
23
+ setOpenedList(list);
24
+ } else {
25
+ setOpenedList([key])
26
+ }
27
+ }
28
+
29
+ const closeItem = (key: number|string) => {
30
+ if (allowMultiple) {
31
+ const list = [...openedList];
32
+ list.splice(list.indexOf(key), 1)
33
+ setOpenedList(list);
34
+ } else {
35
+ setOpenedList([]);
36
+ }
37
+ }
38
+
39
+ const openCloseItem = (key: number|string) => {
40
+ if (allowMultiple) {
41
+ if (isOpened(key)) {
42
+ closeItem(key);
43
+ } else {
44
+ openItem(key)
45
+ }
46
+ } else {
47
+ if (!isOpened(key)) {
48
+ openItem(key);
49
+ } else {
50
+ closeItem(key);
51
+ }
52
+ }
53
+ }
54
+
55
+ return <AccordionContext.Provider value={{
56
+ handleClick: openCloseItem,
57
+ isOpened: isOpened,
58
+ allowMultiple: allowMultiple ? allowMultiple : false,
59
+ openedList: openedList
60
+ }}>
61
+ {children}
62
+ </AccordionContext.Provider>
63
+
64
+ }
65
+
66
+ export default AccordionProvider;
@@ -0,0 +1,9 @@
1
+ import {ReactNode} from "react";
2
+
3
+ interface AccordionProviderInterface {
4
+ children: ReactNode,
5
+ allowMultiple?: boolean,
6
+ activeId?:string
7
+ }
8
+
9
+ export default AccordionProviderInterface
@@ -0,0 +1,14 @@
1
+ const AccordionBgDesign = () => {
2
+ return (
3
+ <svg xmlns="http://www.w3.org/2000/svg" width="543" height="490" viewBox="0 0 543 490" fill="none">
4
+ <g opacity="0.05">
5
+ <path d="M0 251.765C145.603 251.765 263.669 358.442 263.669 490H0V251.765Z" fill="#92C134" />
6
+ <path d="M0 0.0778264C145.603 0.0778264 263.669 106.755 263.669 238.313H0V0.0778264Z" fill="#92C134" />
7
+ <path d="M543 489.922C543 358.364 424.934 251.687 279.331 251.687V489.922H543Z" fill="#92C134" />
8
+ <path d="M543 238.235C543 106.677 424.934 0 279.331 0V238.235H543Z" fill="#92C134" />
9
+ </g>
10
+ </svg>
11
+ )
12
+ }
13
+
14
+ export default AccordionBgDesign;