@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.
- package/package.json +9 -1
- package/src/Components/DataDisplay/Accordion/Accordion.stories.tsx +7 -20
- package/src/Components/DataDisplay/Accordion/Accordion.tsx +21 -20
- package/src/Components/DataDisplay/Accordion/AccordionItem.tsx +2 -2
- package/src/Components/DataDisplay/Accordion/AccordionProps.tsx +2 -1
- package/src/Components/DataDisplay/Accordion/accordion-bg-design.tsx +5 -5
- package/src/Components/DataDisplay/Accordion/accordion.module.scss +75 -43
- package/src/Components/DataDisplay/BrandBuilderTool/BrandBuilderTool.stories.tsx +53 -0
- package/src/Components/DataDisplay/BrandBuilderTool/BrandBuilderTool.tsx +23 -0
- package/src/Components/DataDisplay/BrandBuilderTool/BrandBuilderToolMain/BrandBuilderToolMain.tsx +13 -0
- package/src/Components/DataDisplay/BrandBuilderTool/BrandBuilderToolMain/BrandBuilderToolMainProps.tsx +7 -0
- package/src/Components/DataDisplay/BrandBuilderTool/BrandBuilderToolProps.tsx +9 -0
- package/src/Components/DataDisplay/BrandBuilderTool/BrandBuilderToolTemplate/BrandBuilderToolTemplateItem.tsx +15 -0
- package/src/Components/DataDisplay/BrandBuilderTool/BrandBuilderToolTemplate/BrandBuilderToolTemplateItemProps.tsx +10 -0
- package/src/Components/DataDisplay/BrandBuilderTool/BrandBuilderToolTemplate/BrandBuilderToolTemplateSelector.tsx +29 -0
- package/src/Components/DataDisplay/BrandBuilderTool/BrandBuilderToolTemplate/BrandBuilderToolTemplateSelectorProps.tsx +8 -0
- package/src/Components/DataDisplay/BrandBuilderTool/BrandBuilderToolUploader/BrandBuilderToolUploader.tsx +33 -0
- package/src/Components/DataDisplay/BrandBuilderTool/BrandBuilderToolUploader/BrandBuilderToolUploaderProps.tsx +8 -0
- package/src/Components/DataDisplay/BrandBuilderTool/BrandBuilderToolWrapper/BrandBuilderToolWrapper.tsx +17 -0
- package/src/Components/DataDisplay/BrandBuilderTool/BrandBuilderToolWrapper/BrandBuilderToolWrapperProps.tsx +8 -0
- package/src/Components/DataDisplay/BrandBuilderTool/BrandbuilderToolPreview/BrandBuilderToolPreview.tsx +25 -0
- package/src/Components/DataDisplay/BrandBuilderTool/BrandbuilderToolPreview/BrandBuilderToolPreviewProps.tsx +8 -0
- package/src/Components/DataDisplay/BrandBuilderTool/brandBuilder.module.scss +215 -0
- package/src/Components/DataDisplay/CallToActionBlock/CallToActionBlock.stories.tsx +92 -0
- package/src/Components/DataDisplay/CallToActionBlock/CallToActionBlock.tsx +80 -0
- package/src/Components/DataDisplay/CallToActionBlock/CallToActionBlockProps.tsx +18 -0
- package/src/Components/DataDisplay/CallToActionBlock/callToAction.module.scss +79 -0
- package/src/Components/DataDisplay/CallToActionBlock/callToAction.module.scss~ +78 -0
- package/src/Components/DataDisplay/CarouselBlock/CarouselBlock.stories.tsx +77 -0
- package/src/Components/DataDisplay/CarouselBlock/CarouselBlock.tsx +73 -0
- package/src/Components/DataDisplay/CarouselBlock/CarouselBlockProps.tsx +23 -0
- package/src/Components/DataDisplay/CarouselBlock/carouselBlock.module.scss +60 -0
- package/src/Components/DataDisplay/ChatItenaryBlock/ChatItenaryBlock.stories.tsx +128 -0
- package/src/Components/DataDisplay/ChatItenaryBlock/ChatItenaryBlock.tsx +257 -0
- package/src/Components/DataDisplay/ChatItenaryBlock/ChatItenaryBlockProps.tsx +44 -0
- package/src/Components/DataDisplay/ChatItenaryBlock/chatItenaryBlock.module.scss +777 -0
- package/src/Components/DataDisplay/ContactsBlock/ContactItem.tsx +47 -0
- package/src/Components/DataDisplay/ContactsBlock/ContactItemProps.tsx +10 -0
- package/src/Components/DataDisplay/ContactsBlock/ContactsBlock.stories.tsx +59 -0
- package/src/Components/DataDisplay/ContactsBlock/ContactsBlock.tsx +24 -0
- package/src/Components/DataDisplay/ContactsBlock/ContactsBlockProps.tsx +8 -0
- package/src/Components/DataDisplay/ContactsBlock/contactsBlock.module.scss +165 -0
- package/src/Components/DataDisplay/ContentBlock/ContentBlock.stories.tsx +107 -0
- package/src/Components/DataDisplay/ContentBlock/ContentBlock.tsx +36 -0
- package/src/Components/DataDisplay/ContentBlock/ContentBlockProps.tsx +11 -0
- package/src/Components/DataDisplay/ContentBlock/contentBlock.module.scss +76 -0
- package/src/Components/DataDisplay/DetailsCard/DetailsCard.tsx +8 -10
- package/src/Components/DataDisplay/DetailsCard/DetailsCardProps.tsx +0 -1
- package/src/Components/DataDisplay/DetailsCard/detailsCard.module.scss +3 -1
- package/src/Components/DataDisplay/ImageContent/ImageContent.stories.tsx +5 -11
- package/src/Components/DataDisplay/ImageContent/ImageContent.tsx +12 -11
- package/src/Components/DataDisplay/ImageContent/ImageContentProps.tsx +4 -0
- package/src/Components/DataDisplay/ImageContent/imageContent.module.scss +30 -14
- package/src/Components/DataDisplay/IntroBlock/IntroBlock.stories.tsx +1 -1
- package/src/Components/DataDisplay/IntroBlock/introBlock.module.scss +27 -3
- package/src/Components/DataDisplay/KPIBlock/KPIBlock.stories.tsx +3 -4
- package/src/Components/DataDisplay/KPIBlock/KPIBlock.tsx +14 -7
- package/src/Components/DataDisplay/KPIBlock/KPIBlockProps.tsx +6 -2
- package/src/Components/DataDisplay/KPIBlock/kpiBlock.module.scss +179 -16
- package/src/Components/DataDisplay/{Pathway/Pathway.stories.tsx → ListBlock/ListBlock.stories.tsx} +20 -18
- package/src/Components/DataDisplay/ListBlock/ListBlock.tsx +133 -0
- package/src/Components/DataDisplay/ListBlock/ListBlockProps.tsx +28 -0
- package/src/Components/DataDisplay/{Pathway/pathway.module.scss → ListBlock/listBlock.module.scss} +30 -6
- package/src/Components/DataDisplay/ListingDetailBlock/ListingDetailBlock.stories.tsx +93 -0
- package/src/Components/DataDisplay/ListingDetailBlock/ListingDetailBlock.tsx +74 -0
- package/src/Components/DataDisplay/ListingDetailBlock/ListingDetailBlockProps.tsx +23 -0
- package/src/Components/DataDisplay/ListingDetailBlock/listingDetailBlock.module.scss +265 -0
- package/src/Components/DataDisplay/Media/Media.stories.tsx +36 -0
- package/src/Components/DataDisplay/Media/Media.tsx +158 -0
- package/src/Components/DataDisplay/Media/MediaProps.tsx +8 -0
- package/src/Components/DataDisplay/Media/media.module.scss +16 -0
- package/src/Components/DataDisplay/Media/mediaVideo.scss +88 -0
- package/src/Components/DataDisplay/Modal/Modal.stories.tsx +89 -0
- package/src/Components/DataDisplay/Modal/Modal.tsx +16 -0
- package/src/Components/DataDisplay/Modal/ModalActions.tsx +14 -0
- package/src/Components/DataDisplay/Modal/ModalActionsLeft.tsx +13 -0
- package/src/Components/DataDisplay/Modal/ModalActionsLeftProps.tsx +8 -0
- package/src/Components/DataDisplay/Modal/ModalActionsProps.tsx +8 -0
- package/src/Components/DataDisplay/Modal/ModalActionsRight.tsx +14 -0
- package/src/Components/DataDisplay/Modal/ModalActionsRightProps.tsx +8 -0
- package/src/Components/DataDisplay/Modal/ModalBody.tsx +14 -0
- package/src/Components/DataDisplay/Modal/ModalBodyProps.tsx +8 -0
- package/src/Components/DataDisplay/Modal/ModalCurtain.tsx +6 -0
- package/src/Components/DataDisplay/Modal/ModalHeader.tsx +55 -0
- package/src/Components/DataDisplay/Modal/ModalHeaderProps.tsx +10 -0
- package/src/Components/DataDisplay/Modal/ModalProps.tsx +9 -0
- package/src/Components/DataDisplay/Modal/modal.module.scss +178 -0
- package/src/Components/DataDisplay/PathwayBlock/PathwayBlock.stories.tsx +27 -13
- package/src/Components/DataDisplay/PathwayBlock/PathwayBlock.tsx +7 -6
- package/src/Components/DataDisplay/PathwayBlock/PathwayBlockProps.tsx +10 -4
- package/src/Components/DataDisplay/PathwayBlock/pathwayBlock.module.scss +27 -23
- package/src/Components/DataDisplay/PromoBannerBlock/PromoBanner.stories.tsx +3 -4
- package/src/Components/DataDisplay/PromoBannerBlock/PromoBannerBlock.tsx +2 -6
- package/src/Components/DataDisplay/PromoBannerBlock/promoBanner.module.scss +12 -15
- package/src/Components/DataDisplay/TestimonyCard/TestimonyCard.stories.tsx +11 -5
- package/src/Components/DataDisplay/TestimonyCard/TestimonyCard.tsx +73 -53
- package/src/Components/DataDisplay/TestimonyCard/testimonyCard.module.scss +137 -70
- package/src/Components/DataDisplay/index.ts +87 -4
- package/src/Components/DataDisplay/slider.scss +43 -0
- package/src/Components/Form/Button/ButtonProps.tsx +1 -1
- package/src/Components/Form/Button/button.module.scss +2 -0
- package/src/Components/Form/Checkbox/Checkbox.stories.tsx +51 -0
- package/src/Components/Form/Checkbox/Checkbox.tsx +111 -0
- package/src/Components/Form/Checkbox/CheckboxProps.tsx +24 -0
- package/src/Components/Form/Checkbox/checkbox.module.scss +105 -0
- package/src/Components/Form/EmailField/EmailField.stories.ts +23 -0
- package/src/Components/Form/EmailField/EmailField.tsx +56 -0
- package/src/Components/Form/FormFieldHolder/FormFieldHolder.stories.tsx +31 -0
- package/src/Components/Form/FormFieldHolder/FormFieldHolder.tsx +57 -0
- package/src/Components/Form/FormFieldHolder/FormFieldHolderProps.tsx +16 -0
- package/src/Components/Form/FormFieldHolder/formHolder.module.scss +71 -0
- package/src/Components/Form/InputProps.tsx +30 -0
- package/src/Components/Form/LandingPageForm/LandingPageForm.stories.tsx +110 -0
- package/src/Components/Form/LandingPageForm/LandingPageForm.tsx +24 -0
- package/src/Components/Form/LandingPageForm/LandingPageFormLeft.tsx +51 -0
- package/src/Components/Form/LandingPageForm/LandingPageFormLeftProps.tsx +13 -0
- package/src/Components/Form/LandingPageForm/LandingPageFormProps.tsx +9 -0
- package/src/Components/Form/LandingPageForm/LandingPageFormRight.tsx +49 -0
- package/src/Components/Form/LandingPageForm/LandingPageFormRightProps.tsx +14 -0
- package/src/Components/Form/LandingPageForm/landingPageForm.module.scss +190 -0
- package/src/Components/Form/LoadingInput/LoadingInput.tsx +12 -0
- package/src/Components/Form/LoadingInput/loadingInput.module.scss +15 -0
- package/src/Components/Form/RadioButtons/RadioButton.tsx +83 -0
- package/src/Components/Form/RadioButtons/RadioButtonProps.tsx +24 -0
- package/src/Components/Form/RadioButtons/RadioButtons.stories.tsx +129 -0
- package/src/Components/Form/RadioButtons/RadioButtons.tsx +18 -0
- package/src/Components/Form/RadioButtons/RadioButtonsProps.tsx +10 -0
- package/src/Components/Form/RadioButtons/radioButton.stories.scss +3 -0
- package/src/Components/Form/RadioButtons/radiobutton.module.scss +189 -0
- package/src/Components/Form/SimpleForm/SimpleForm.stories.tsx +55 -0
- package/src/Components/Form/SimpleForm/SimpleForm.tsx +63 -0
- package/src/Components/Form/SimpleForm/SimpleFormProps.tsx +13 -0
- package/src/Components/Form/SimpleForm/simple-form-bg-design.tsx +21 -0
- package/src/Components/Form/SimpleForm/simpleForm.module.scss +72 -0
- package/src/Components/Form/TextField/TextField.stories.ts +22 -0
- package/src/Components/Form/TextField/TextField.tsx +62 -0
- package/src/Components/Form/TextField/TextFieldProps.tsx +8 -0
- package/src/Components/Form/Textarea/Textarea.stories.ts +31 -0
- package/src/Components/Form/Textarea/Textarea.tsx +74 -0
- package/src/Components/Form/Textarea/TextareaProps.tsx +28 -0
- package/src/Components/Form/Textarea/textarea.module.scss +48 -0
- package/src/Components/Form/index.ts +34 -1
- package/src/Components/Form/index.ts~ +32 -0
- package/src/Components/Form/inputs.module.scss +172 -0
- package/src/Components/Icons/Communication/PaperPlaneTilt/PaperPlaneTilt.tsx +37 -0
- package/src/Components/Icons/OfficeAndEditing/Paperclip/Paperclip.tsx +37 -0
- package/src/Components/Icons/SystemAndDevice/CheckCircle/CheckCircle.tsx +35 -0
- package/src/Components/Icons/index.ts +5 -1
- package/src/Components/Layout/Footer/Footer.tsx +1 -2
- package/src/Components/Layout/Footer/FooterBottom.tsx +7 -7
- package/src/Components/Layout/Footer/FooterProps.tsx +1 -1
- package/src/Components/Layout/Footer/FooterTop.tsx +1 -1
- package/src/Components/Layout/Footer/footer.module.scss +3 -2
- package/src/Components/Layout/Header/Header.stories.tsx +23 -23
- package/src/Components/Layout/Header/Header.tsx +3 -3
- package/src/Components/Layout/Header/HeaderProps.tsx +1 -0
- package/src/Components/Layout/Header/MegaMenu/MegaMenu.tsx +156 -83
- package/src/Components/Layout/Header/MegaMenu/MegaMenuProps.tsx +22 -9
- package/src/Components/Layout/Header/MegaMenu/megaMenu.module.scss +4 -2
- package/src/Components/Layout/Header/MobileNavigation/MobileNavigation.tsx +4 -3
- package/src/Components/Layout/Header/MobileNavigation/MobileNavigationProps.tsx +1 -0
- package/src/Components/Layout/Header/MobileNavigation/MobileSubNavigation/MobileSubNavigation.tsx +2 -2
- package/src/Components/Layout/Header/MobileNavigation/MobileSubNavigation/MobileSubNavigationItem.tsx +3 -3
- package/src/Components/Layout/Header/header.module.scss +17 -19
- package/src/Components/Layout/HeroBanner/HeroBanner.tsx +6 -6
- package/src/Components/Layout/HeroBanner/heroBanner.module.scss +42 -6
- package/src/Components/Layout/index.ts +11 -2
- package/src/Components/SelwynUIProvider/SelwynUIContext.tsx +16 -0
- package/src/Components/SelwynUIProvider/SelwynUIProvider.tsx +46 -0
- package/src/Components/SelwynUIProvider/index.ts +2 -0
- package/src/Components/Shared/Container/Container.tsx +18 -8
- package/src/Components/Shared/Container/ContainerProps.tsx +7 -2
- package/src/Components/Shared/Container/container.module.scss +55 -7
- package/src/Components/Shared/ElementHolder/ElementHolderProps.tsx +1 -1
- package/src/Components/Shared/ElementHolder/elementHolder.module.scss +10 -5
- package/src/Components/Shared/PillarIcon/PillarIcon.tsx +4 -4
- package/src/Components/Shared/PillarLogo/PillarLogo.tsx +2 -2
- package/src/Components/index.ts +1 -0
- package/dist/App.d.ts +0 -2
- package/dist/Components/DataDisplay/DetailsCard/DetailsCard.d.ts +0 -3
- package/dist/Components/DataDisplay/DetailsCard/DetailsCardProps.d.ts +0 -10
- package/dist/Components/DataDisplay/ImageContent/ImageContent.d.ts +0 -3
- package/dist/Components/DataDisplay/ImageContent/ImageContentMaskingImages.d.ts +0 -2
- package/dist/Components/DataDisplay/ImageContent/ImageContentProps.d.ts +0 -27
- package/dist/Components/DataDisplay/IntroBlock/IntroBlock.d.ts +0 -3
- package/dist/Components/DataDisplay/IntroBlock/IntroBlockProps.d.ts +0 -8
- package/dist/Components/DataDisplay/KPIBlock/KPIBlock.d.ts +0 -3
- package/dist/Components/DataDisplay/KPIBlock/KPIBlockProps.d.ts +0 -11
- package/dist/Components/DataDisplay/Pathway/Pathway.d.ts +0 -3
- package/dist/Components/DataDisplay/Pathway/PathwayProps.d.ts +0 -15
- package/dist/Components/DataDisplay/PromoBannerBlock/PromoBannerBlock.d.ts +0 -3
- package/dist/Components/DataDisplay/PromoBannerBlock/PromoBannerBlockProps.d.ts +0 -14
- package/dist/Components/DataDisplay/PromoBannerBlock/promo-banner-bg-design.d.ts +0 -2
- package/dist/Components/DataDisplay/index.d.ts +0 -10
- package/dist/Components/Form/Button/Button.d.ts +0 -3
- package/dist/Components/Form/Button/ButtonProps.d.ts +0 -14
- package/dist/Components/Form/index.d.ts +0 -2
- package/dist/Components/Icons/Arrows/ArrowLeft/ArrowLeft.d.ts +0 -3
- package/dist/Components/Icons/Arrows/ArrowRight/ArrowRight.d.ts +0 -3
- package/dist/Components/Icons/Arrows/ArrowSquareOut/ArrowSquareOut.d.ts +0 -3
- package/dist/Components/Icons/Arrows/ArrowsDownUp/ArrowsDownUp.d.ts +0 -3
- package/dist/Components/Icons/Arrows/ArrowsOutCardinal/ArrowsOutCardinal.d.ts +0 -3
- package/dist/Components/Icons/Arrows/CaretCircleRight/CaretCircleRight.d.ts +0 -3
- package/dist/Components/Icons/Arrows/CaretDown/CaretDown.d.ts +0 -3
- package/dist/Components/Icons/Arrows/CaretLeft/CaretLeft.d.ts +0 -3
- package/dist/Components/Icons/Arrows/CaretRight/CaretRight.d.ts +0 -3
- package/dist/Components/Icons/Arrows/CaretUp/CaretUp.d.ts +0 -3
- package/dist/Components/Icons/Arrows/CaretUpDown/CaretUpDown.d.ts +0 -3
- package/dist/Components/Icons/Brands/FacebookLogo/FacebookLogo.d.ts +0 -3
- package/dist/Components/Icons/Brands/InstagramLogo/InstagramLogo.d.ts +0 -3
- package/dist/Components/Icons/Brands/LinkedinLogo/LinkedinLogo.d.ts +0 -3
- package/dist/Components/Icons/Brands/WindowsLogo/WindowsLogo.d.ts +0 -3
- package/dist/Components/Icons/Commerce/Backpack/Backpack.d.ts +0 -3
- package/dist/Components/Icons/Commerce/BowlSteam/BowlSteam.d.ts +0 -3
- package/dist/Components/Icons/Commerce/Bread/Bread.d.ts +0 -3
- package/dist/Components/Icons/Commerce/Cheers/Cheers.d.ts +0 -3
- package/dist/Components/Icons/Commerce/ChefHat/ChefHat.d.ts +0 -3
- package/dist/Components/Icons/Commerce/Coffee/Coffee.d.ts +0 -3
- package/dist/Components/Icons/Commerce/CreditCard/CreditCard.d.ts +0 -3
- package/dist/Components/Icons/Commerce/CurrencyDollarSimple/CurrencyDollarSimple.d.ts +0 -3
- package/dist/Components/Icons/Commerce/Grains/Grains.d.ts +0 -3
- package/dist/Components/Icons/Commerce/Scale/Scale.d.ts +0 -3
- package/dist/Components/Icons/Commerce/StoreFront/StoreFront.d.ts +0 -3
- package/dist/Components/Icons/Communication/AddressBook/AddressBook.d.ts +0 -3
- package/dist/Components/Icons/Communication/AddressBook/AddressBook.stories.d.ts +0 -21
- package/dist/Components/Icons/Communication/AsterickSimple/AsteriskSimple.d.ts +0 -3
- package/dist/Components/Icons/Communication/AsterickSimple/AsteriskSimple.stories.d.ts +0 -21
- package/dist/Components/Icons/Communication/Asterisk/Asterisk.d.ts +0 -3
- package/dist/Components/Icons/Communication/Asterisk/Asterisk.stories.d.ts +0 -21
- package/dist/Components/Icons/Communication/At/At.d.ts +0 -3
- package/dist/Components/Icons/Communication/At/At.stories.d.ts +0 -21
- package/dist/Components/Icons/Communication/Broadcast/Broadcast.d.ts +0 -3
- package/dist/Components/Icons/Communication/Broadcast/Broadcast.stories.d.ts +0 -21
- package/dist/Components/Icons/Communication/Chat/Chat.d.ts +0 -3
- package/dist/Components/Icons/Communication/Chat/Chat.stories.d.ts +0 -21
- package/dist/Components/Icons/Communication/ChatCircleText/ChatCircleText.d.ts +0 -3
- package/dist/Components/Icons/Communication/EnvelopeSimple/EnvelopeSimple.d.ts +0 -3
- package/dist/Components/Icons/Communication/Export/Export.d.ts +0 -3
- package/dist/Components/Icons/Communication/Phone/Phone.d.ts +0 -3
- package/dist/Components/Icons/Communication/ThumbsUp/ThumbsUp.d.ts +0 -3
- package/dist/Components/Icons/Communication/Translate/Translate.d.ts +0 -3
- package/dist/Components/Icons/Design/DropHalfBottom/DropHalfBottom.d.ts +0 -3
- package/dist/Components/Icons/Design/Eye/Eye.d.ts +0 -3
- package/dist/Components/Icons/Design/EyeSlash/EyeSlash.d.ts +0 -3
- package/dist/Components/Icons/Design/GearFine/GearFine.d.ts +0 -3
- package/dist/Components/Icons/Design/PencilLine/PencilLine.d.ts +0 -3
- package/dist/Components/Icons/Design/PencilSimple/PencilSimple.d.ts +0 -3
- package/dist/Components/Icons/Design/Ruler/Ruler.d.ts +0 -3
- package/dist/Components/Icons/Design/SquaresFour/SquaresFour.d.ts +0 -3
- package/dist/Components/Icons/Education/BookOpenText/BookOpenText.d.ts +0 -3
- package/dist/Components/Icons/Education/BookmarkSimple/BookmarkSimple.d.ts +0 -3
- package/dist/Components/Icons/Education/Certificate/Certificate.d.ts +0 -3
- package/dist/Components/Icons/Education/GraduationCap/GraduationCap.d.ts +0 -3
- package/dist/Components/Icons/Games/Cricket/Cricket.d.ts +0 -3
- package/dist/Components/Icons/Games/Football/Football.d.ts +0 -3
- package/dist/Components/Icons/Games/Golf/Golf.d.ts +0 -3
- package/dist/Components/Icons/HealthAndWellness/Barbell/Barbell.d.ts +0 -3
- package/dist/Components/Icons/IconProps.d.ts +0 -4
- package/dist/Components/Icons/MapAndTravel/Barn/Barn.d.ts +0 -3
- package/dist/Components/Icons/MapAndTravel/Bicycle/Bicycle.d.ts +0 -3
- package/dist/Components/Icons/MapAndTravel/Bus/Bus.d.ts +0 -3
- package/dist/Components/Icons/MapAndTravel/Car/Car.d.ts +0 -3
- package/dist/Components/Icons/MapAndTravel/ChargingStation/ChargingStation.d.ts +0 -3
- package/dist/Components/Icons/MapAndTravel/Farm/Farm.d.ts +0 -3
- package/dist/Components/Icons/MapAndTravel/Globe/Globe.d.ts +0 -3
- package/dist/Components/Icons/MapAndTravel/Goggles/Goggles.d.ts +0 -3
- package/dist/Components/Icons/MapAndTravel/House/House.d.ts +0 -3
- package/dist/Components/Icons/MapAndTravel/HouseSimple/HouseSimple.d.ts +0 -3
- package/dist/Components/Icons/MapAndTravel/MapPin/MapPin.d.ts +0 -3
- package/dist/Components/Icons/MapAndTravel/MapTriFold/MapTriFold.d.ts +0 -3
- package/dist/Components/Icons/MapAndTravel/Path/Path.d.ts +0 -3
- package/dist/Components/Icons/MapAndTravel/RoadHorizon/RoadHorizon.d.ts +0 -3
- package/dist/Components/Icons/MapAndTravel/SteeringWheel/SteeringWheel.d.ts +0 -3
- package/dist/Components/Icons/MapAndTravel/SwimmingPool/SwimmingPool.d.ts +0 -3
- package/dist/Components/Icons/MapAndTravel/Tram/Tram.d.ts +0 -3
- package/dist/Components/Icons/MapAndTravel/Van/Van.d.ts +0 -3
- package/dist/Components/Icons/MathsAndFinance/Calculator/Calculator.d.ts +0 -3
- package/dist/Components/Icons/MathsAndFinance/ChartBar/ChartBar.d.ts +0 -3
- package/dist/Components/Icons/MathsAndFinance/ChartBarHorizontal/ChartBarHorizontal.d.ts +0 -3
- package/dist/Components/Icons/MathsAndFinance/ChartLine/ChartLine.d.ts +0 -3
- package/dist/Components/Icons/MathsAndFinance/ChartLineUp/ChartLineUp.d.ts +0 -3
- package/dist/Components/Icons/MathsAndFinance/ChartPie/ChartPie.d.ts +0 -3
- package/dist/Components/Icons/MathsAndFinance/Minus/Minus.d.ts +0 -3
- package/dist/Components/Icons/MathsAndFinance/MinusCircle/MinusCircle.d.ts +0 -3
- package/dist/Components/Icons/MathsAndFinance/NumberSquareThree/NumberSquareThree.d.ts +0 -3
- package/dist/Components/Icons/MathsAndFinance/Plus/Plus.d.ts +0 -3
- package/dist/Components/Icons/MathsAndFinance/PlusCircle/PlusCircle.d.ts +0 -3
- package/dist/Components/Icons/MathsAndFinance/XIcon/XIcon.d.ts +0 -3
- package/dist/Components/Icons/Media/Camera/Camera.d.ts +0 -3
- package/dist/Components/Icons/Media/DiscoBall/DiscoBall.d.ts +0 -3
- package/dist/Components/Icons/Media/FilmStrip/FilmStrip.d.ts +0 -3
- package/dist/Components/Icons/Media/Microphone/Microphone.d.ts +0 -3
- package/dist/Components/Icons/Media/MusicNotes/MusicNotes.d.ts +0 -3
- package/dist/Components/Icons/Media/PlayCircle/PlayCircle.d.ts +0 -3
- package/dist/Components/Icons/Media/SlidersHorizontal/SlidersHorizontal.d.ts +0 -3
- package/dist/Components/Icons/Media/StopCircle/StopCircle.d.ts +0 -3
- package/dist/Components/Icons/Media/VideoCamera/VideoCamera.d.ts +0 -3
- package/dist/Components/Icons/OfficeAndEditing/BuildinfOffice/BuildingOffice.d.ts +0 -3
- package/dist/Components/Icons/OfficeAndEditing/Copy/Copy.d.ts +0 -3
- package/dist/Components/Icons/OfficeAndEditing/FileText/FileText.d.ts +0 -3
- package/dist/Components/Icons/OfficeAndEditing/Files/Files.d.ts +0 -3
- package/dist/Components/Icons/OfficeAndEditing/FloppyDisk/FloppyDisk.d.ts +0 -3
- package/dist/Components/Icons/OfficeAndEditing/Folder/Folder.d.ts +0 -3
- package/dist/Components/Icons/OfficeAndEditing/FolderSimplePlus/FolderSimplePlus.d.ts +0 -3
- package/dist/Components/Icons/OfficeAndEditing/Folders/Folders.d.ts +0 -3
- package/dist/Components/Icons/OfficeAndEditing/List/List.d.ts +0 -3
- package/dist/Components/Icons/OfficeAndEditing/ListBullets/ListBullets.d.ts +0 -3
- package/dist/Components/Icons/OfficeAndEditing/ListDashes/ListDashes.d.ts +0 -3
- package/dist/Components/Icons/OfficeAndEditing/Printer/Printer.d.ts +0 -3
- package/dist/Components/Icons/OfficeAndEditing/TextAa/TextAa.d.ts +0 -3
- package/dist/Components/Icons/OfficeAndEditing/TextColumns/TextColumns.d.ts +0 -3
- package/dist/Components/Icons/OfficeAndEditing/Trash/Trash.d.ts +0 -3
- package/dist/Components/Icons/OfficeAndEditing/TrashSimple/TrashSimple.d.ts +0 -3
- package/dist/Components/Icons/People/Person/Person.d.ts +0 -3
- package/dist/Components/Icons/People/PersonArmsSpread/PersonArmsSpread.d.ts +0 -3
- package/dist/Components/Icons/People/PersonSimpleBike/PersonSimpleBike.d.ts +0 -3
- package/dist/Components/Icons/People/PersonSimpleSki/PersonSimpleSki.d.ts +0 -3
- package/dist/Components/Icons/People/PersonSimpleWalk/PersonSimpleWalk.d.ts +0 -3
- package/dist/Components/Icons/People/User/User.d.ts +0 -3
- package/dist/Components/Icons/People/UserCircle/UserCircle.d.ts +0 -3
- package/dist/Components/Icons/People/UserSwitch/UserSwitch.d.ts +0 -3
- package/dist/Components/Icons/People/Users/Users.d.ts +0 -3
- package/dist/Components/Icons/SecurityAndWarnings/Info/Info.d.ts +0 -3
- package/dist/Components/Icons/SecurityAndWarnings/Key/Key.d.ts +0 -3
- package/dist/Components/Icons/SecurityAndWarnings/LockKeyOpen/LockKeyOpen.d.ts +0 -3
- package/dist/Components/Icons/SecurityAndWarnings/LockSimple/LockSimple.d.ts +0 -3
- package/dist/Components/Icons/SecurityAndWarnings/Question/Question.d.ts +0 -3
- package/dist/Components/Icons/SecurityAndWarnings/ShieldCheck/ShieldCheck.d.ts +0 -3
- package/dist/Components/Icons/SecurityAndWarnings/WarningCircle/WarningCircle.d.ts +0 -3
- package/dist/Components/Icons/SystemAndDevice/Bell/Bell.d.ts +0 -3
- package/dist/Components/Icons/SystemAndDevice/Check/Check.d.ts +0 -3
- package/dist/Components/Icons/SystemAndDevice/CheckSquare/CheckSquare.d.ts +0 -3
- package/dist/Components/Icons/SystemAndDevice/CloudCheck/CloudCheck.d.ts +0 -3
- package/dist/Components/Icons/SystemAndDevice/Desktop/Desktop.d.ts +0 -3
- package/dist/Components/Icons/SystemAndDevice/DeviceMobile/DeviceMobile.d.ts +0 -3
- package/dist/Components/Icons/SystemAndDevice/DotSixVertical/DotSixVertical.d.ts +0 -3
- package/dist/Components/Icons/SystemAndDevice/DotsSix/DotsSix.d.ts +0 -3
- package/dist/Components/Icons/SystemAndDevice/DotsThree/DotsThree.d.ts +0 -3
- package/dist/Components/Icons/SystemAndDevice/DotsThreeVertical/DotsThreeVertical.d.ts +0 -3
- package/dist/Components/Icons/SystemAndDevice/DownloadSimple/DownloadSimple.d.ts +0 -3
- package/dist/Components/Icons/SystemAndDevice/Gear/Gear.d.ts +0 -3
- package/dist/Components/Icons/SystemAndDevice/Link/Link.d.ts +0 -3
- package/dist/Components/Icons/SystemAndDevice/MagnifyingGlass/MagnifyingGlass.d.ts +0 -3
- package/dist/Components/Icons/SystemAndDevice/RadioButtonIcon/RadioButtonIcon.d.ts +0 -3
- package/dist/Components/Icons/SystemAndDevice/SignIn/SignIn.d.ts +0 -3
- package/dist/Components/Icons/SystemAndDevice/SignOut/SignOut.d.ts +0 -3
- package/dist/Components/Icons/SystemAndDevice/ToggleLeft/ToggleLeft.d.ts +0 -3
- package/dist/Components/Icons/SystemAndDevice/ToggleRight/ToggleRight.d.ts +0 -3
- package/dist/Components/Icons/Time/Calendar/Calendar.d.ts +0 -3
- package/dist/Components/Icons/Time/CalendarBank/CalendarBank.d.ts +0 -3
- package/dist/Components/Icons/Time/CalendarCheck/CalendarCheck.d.ts +0 -3
- package/dist/Components/Icons/Time/CalendarDots/CalendarDots.d.ts +0 -3
- package/dist/Components/Icons/Time/Clock/Clock.d.ts +0 -3
- package/dist/Components/Icons/Time/ClockCounterClockwise/ClockCounterClockwise.d.ts +0 -3
- package/dist/Components/Icons/WeatherAndNature/Bird/Bird.d.ts +0 -3
- package/dist/Components/Icons/WeatherAndNature/Campfire/Campfire.d.ts +0 -3
- package/dist/Components/Icons/WeatherAndNature/CloudSun/CloudSun.d.ts +0 -3
- package/dist/Components/Icons/WeatherAndNature/Cow/Cow.d.ts +0 -3
- package/dist/Components/Icons/WeatherAndNature/Dog/Dog.d.ts +0 -3
- package/dist/Components/Icons/WeatherAndNature/FishSimple/FishSimple.d.ts +0 -3
- package/dist/Components/Icons/WeatherAndNature/Flower/Flower.d.ts +0 -3
- package/dist/Components/Icons/WeatherAndNature/Moon/Moon.d.ts +0 -3
- package/dist/Components/Icons/WeatherAndNature/Mountains/Mountains.d.ts +0 -3
- package/dist/Components/Icons/WeatherAndNature/Plant/Plant.d.ts +0 -3
- package/dist/Components/Icons/WeatherAndNature/Snowflake/Snowflake.d.ts +0 -3
- package/dist/Components/Icons/WeatherAndNature/Sparkle/Sparkle.d.ts +0 -3
- package/dist/Components/Icons/WeatherAndNature/Sun/Sun.d.ts +0 -3
- package/dist/Components/Icons/WeatherAndNature/Tree/Tree.d.ts +0 -3
- package/dist/Components/Icons/index.d.ts +0 -123
- package/dist/Components/Layout/Footer/Footer.d.ts +0 -3
- package/dist/Components/Layout/Footer/FooterBottom.d.ts +0 -3
- package/dist/Components/Layout/Footer/FooterBottomLeft.d.ts +0 -3
- package/dist/Components/Layout/Footer/FooterBottomLeftProps.d.ts +0 -11
- package/dist/Components/Layout/Footer/FooterBottomProps.d.ts +0 -5
- package/dist/Components/Layout/Footer/FooterBottomRight.d.ts +0 -3
- package/dist/Components/Layout/Footer/FooterBottomRightProps.d.ts +0 -6
- package/dist/Components/Layout/Footer/FooterItem.d.ts +0 -3
- package/dist/Components/Layout/Footer/FooterItemProps.d.ts +0 -6
- package/dist/Components/Layout/Footer/FooterMiddle.d.ts +0 -3
- package/dist/Components/Layout/Footer/FooterMiddleProps.d.ts +0 -6
- package/dist/Components/Layout/Footer/FooterProps.d.ts +0 -9
- package/dist/Components/Layout/Footer/FooterTop.d.ts +0 -3
- package/dist/Components/Layout/Footer/FooterTopProps.d.ts +0 -7
- package/dist/Components/Layout/Footer/footer-bg-design.d.ts +0 -2
- package/dist/Components/Layout/Header/Header.d.ts +0 -3
- package/dist/Components/Layout/Header/HeaderProps.d.ts +0 -7
- package/dist/Components/Layout/Header/HeaderRight.d.ts +0 -3
- package/dist/Components/Layout/Header/HeaderRightItem.d.ts +0 -3
- package/dist/Components/Layout/Header/HeaderRightItemProps.d.ts +0 -11
- package/dist/Components/Layout/Header/HeaderRightProps.d.ts +0 -5
- package/dist/Components/Layout/Header/MagnifyingGlass/MagnifyingGlass.d.ts +0 -2
- package/dist/Components/Layout/Header/MegaMenu/MegaMenu.d.ts +0 -2
- package/dist/Components/Layout/Header/MegaMenu/MegaMenuProps.d.ts +0 -4
- package/dist/Components/Layout/HeroBanner/HeroBanner.d.ts +0 -3
- package/dist/Components/Layout/HeroBanner/HeroBannerProps.d.ts +0 -9
- package/dist/Components/Layout/HeroBanner/LargeHeroIcon.d.ts +0 -2
- package/dist/Components/Layout/index.d.ts +0 -22
- package/dist/Components/Shared/Container/Container.d.ts +0 -3
- package/dist/Components/Shared/Container/ContainerProps.d.ts +0 -6
- package/dist/Components/Shared/ElementHolder/ElementHolder.d.ts +0 -3
- package/dist/Components/Shared/ElementHolder/ElementHolderProps.d.ts +0 -15
- package/dist/Components/Shared/index.d.ts +0 -4
- package/dist/img/card-one.png +0 -0
- package/dist/img/card-three.png +0 -0
- package/dist/img/card-two.png +0 -0
- package/dist/img/footer-bg-design.svg +0 -14
- package/dist/img/footer-logo.svg +0 -9
- package/dist/img/promo-banner-image.svg +0 -9
- package/dist/img/visit-brand-piller.svg +0 -6
- package/dist/img/waikirikiri-full-logo.svg +0 -23
- package/dist/index.cjs.js +0 -14
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.d.ts +0 -5
- package/dist/index.es.d.ts +0 -2
- package/dist/index.es.js +0 -6787
- package/dist/index.es.js.map +0 -1
- package/dist/main.d.ts +0 -0
- package/dist/selwynui.css +0 -1
- package/dist/tsconfig.app.tsbuildinfo +0 -1
- package/dist/vite.svg +0 -1
- package/src/Components/DataDisplay/Pathway/Pathway.tsx +0 -94
- package/src/Components/DataDisplay/Pathway/PathwayProps.tsx +0 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hellobetterdigitalnz/selwynui",
|
|
3
|
-
"version": "0.0.1-
|
|
3
|
+
"version": "0.0.1-71",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"build-storybook": "storybook build"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
+
"@hellobetterdigitalnz/selwynui": "^0.0.1-29",
|
|
24
25
|
"clsx": "^2.1.1",
|
|
25
26
|
"dts": "^0.1.1",
|
|
26
27
|
"es6-slide-up-down": "^1.0.0",
|
|
@@ -28,8 +29,12 @@
|
|
|
28
29
|
"react": "^19.2.0",
|
|
29
30
|
"react-dom": "^19.2.0",
|
|
30
31
|
"react-icons": "^5.5.0",
|
|
32
|
+
"react-loading-skeleton": "^3.5.0",
|
|
33
|
+
"react-responsive-masonry": "^2.7.1",
|
|
34
|
+
"react-slick": "^0.31.0",
|
|
31
35
|
"sass": "^1.94.1",
|
|
32
36
|
"slick-carousel": "^1.8.1",
|
|
37
|
+
"video.js": "^8.23.4",
|
|
33
38
|
"vite-plugin-dts": "^4.5.4"
|
|
34
39
|
},
|
|
35
40
|
"peerDependencies": {
|
|
@@ -45,10 +50,13 @@
|
|
|
45
50
|
"@storybook/addon-vitest": "10.0.7",
|
|
46
51
|
"@storybook/react": "^10.0.7",
|
|
47
52
|
"@storybook/react-vite": "^10.0.7",
|
|
53
|
+
"@types/classnames": "^2.3.4",
|
|
48
54
|
"@types/node": "^24.10.0",
|
|
49
55
|
"@types/prop-types": "^15.7.15",
|
|
50
56
|
"@types/react": "^19.2.2",
|
|
51
57
|
"@types/react-dom": "^19.2.2",
|
|
58
|
+
"@types/react-responsive-masonry": "^2.7.0",
|
|
59
|
+
"@types/react-slick": "^0.23.13",
|
|
52
60
|
"@vitejs/plugin-react": "^5.1.0",
|
|
53
61
|
"@vitest/browser-playwright": "^4.0.8",
|
|
54
62
|
"@vitest/coverage-v8": "^4.0.8",
|
|
@@ -6,6 +6,8 @@ import Accordion from './Accordion.tsx';
|
|
|
6
6
|
import AccordionItem from './AccordionItem.tsx';
|
|
7
7
|
import Container from "../../Shared/Container/Container";
|
|
8
8
|
import ElementHolder from "../../Shared/ElementHolder/ElementHolder";
|
|
9
|
+
import Button from "../../Form/Button/Button.tsx";
|
|
10
|
+
import { ArrowRight } from "@hellobetterdigitalnz/selwynui";
|
|
9
11
|
|
|
10
12
|
const meta: Meta = {
|
|
11
13
|
title: 'DataDisplay / Accordion',
|
|
@@ -22,7 +24,6 @@ type Story = StoryObj<typeof meta>;
|
|
|
22
24
|
|
|
23
25
|
const AccordionTemplate: Story = {
|
|
24
26
|
render: ({ items, ...args }) => {
|
|
25
|
-
// keep track of open states by index
|
|
26
27
|
const [openItems, setOpenItems] = useState<Record<string, boolean>>({});
|
|
27
28
|
|
|
28
29
|
const handleToggle = (id: string, value: boolean) => {
|
|
@@ -31,8 +32,7 @@ const AccordionTemplate: Story = {
|
|
|
31
32
|
|
|
32
33
|
return (
|
|
33
34
|
<ElementHolder paddingBottom="md" paddingTop="sm" pillar="visit">
|
|
34
|
-
|
|
35
|
-
<Accordion {...args}>
|
|
35
|
+
<Accordion {...args}>
|
|
36
36
|
{items.map((item: any) => (
|
|
37
37
|
<AccordionItem
|
|
38
38
|
key={item.index}
|
|
@@ -45,9 +45,6 @@ const AccordionTemplate: Story = {
|
|
|
45
45
|
</AccordionItem>
|
|
46
46
|
))}
|
|
47
47
|
</Accordion>
|
|
48
|
-
</Container>
|
|
49
|
-
|
|
50
|
-
{/* Buttons to trigger specific IDs */}
|
|
51
48
|
</ElementHolder>
|
|
52
49
|
);
|
|
53
50
|
},
|
|
@@ -58,32 +55,22 @@ export const Example = {
|
|
|
58
55
|
args: {
|
|
59
56
|
allowMultiple:true,
|
|
60
57
|
title: 'Insights lorem ipsum dolor sit amet',
|
|
61
|
-
content: '
|
|
62
|
-
// image: '/img/accordion-image.svg',
|
|
58
|
+
content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ',
|
|
63
59
|
items: [
|
|
64
60
|
{
|
|
65
61
|
index:'1',
|
|
66
62
|
title: 'Lorem ipsum dolor',
|
|
67
|
-
children:
|
|
63
|
+
children: <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>
|
|
68
64
|
},
|
|
69
65
|
{
|
|
70
66
|
index:'2',
|
|
71
67
|
title: 'Lorem ipsum dolor',
|
|
72
68
|
children: <>
|
|
73
|
-
<p>
|
|
69
|
+
<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>
|
|
70
|
+
<Button label="LEARN MORE" secondaryIcon={<ArrowRight/>} pillar="taste"/>
|
|
74
71
|
<img src="/img/accordion-image.svg" alt="" />
|
|
75
72
|
</>,
|
|
76
73
|
},
|
|
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
74
|
],
|
|
88
75
|
},
|
|
89
76
|
};
|
|
@@ -2,8 +2,8 @@ import styles from "./Accordion.module.scss";
|
|
|
2
2
|
import AccordionProvider from "./AccordionProvider";
|
|
3
3
|
import AccordionProps from "./AccordionProps.tsx";
|
|
4
4
|
import ScrollFadeIn from "../../Shared/ScrollFadeIn/ScrollFadeIn.tsx";
|
|
5
|
-
import React, { Children, useEffect, useState } from "react";
|
|
6
5
|
import AccordionBgDesign from "./accordion-bg-design.tsx";
|
|
6
|
+
import { Container } from "../../Shared/index.ts";
|
|
7
7
|
|
|
8
8
|
const Accordion = (props: AccordionProps) => {
|
|
9
9
|
const {
|
|
@@ -11,29 +11,29 @@ const Accordion = (props: AccordionProps) => {
|
|
|
11
11
|
allowMultiple,
|
|
12
12
|
title,
|
|
13
13
|
content,
|
|
14
|
-
image,
|
|
15
|
-
activeId,
|
|
16
|
-
onActiveIdChange
|
|
17
14
|
} = props;
|
|
18
15
|
|
|
19
|
-
const childrenArray = Children.toArray(children);
|
|
20
16
|
|
|
21
|
-
const
|
|
22
|
-
typeof window !== "undefined" ? window.innerWidth >= 768 : false
|
|
23
|
-
);
|
|
24
|
-
|
|
25
|
-
useEffect(() => {
|
|
26
|
-
const handleResize = () => {
|
|
27
|
-
setIsTabletOrLarger(window.innerWidth >= 768);
|
|
28
|
-
};
|
|
17
|
+
// const childrenArray = Children.toArray(children);
|
|
29
18
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
20
|
+
// const [isTabletOrLarger, setIsTabletOrLarger] = useState(
|
|
21
|
+
// typeof window !== "undefined" ? window.innerWidth >= 768 : false
|
|
22
|
+
// );
|
|
23
|
+
//
|
|
24
|
+
// useEffect(() => {
|
|
25
|
+
// const handleResize = () => {
|
|
26
|
+
// setIsTabletOrLarger(window.innerWidth >= 768);
|
|
27
|
+
// };
|
|
28
|
+
//
|
|
29
|
+
// window.addEventListener("resize", handleResize);
|
|
30
|
+
// return () => window.removeEventListener("resize", handleResize);
|
|
31
|
+
// }, []);
|
|
33
32
|
|
|
34
33
|
return (
|
|
35
34
|
<AccordionProvider allowMultiple={allowMultiple ?? false} >
|
|
36
|
-
<
|
|
35
|
+
<Container>
|
|
36
|
+
<div className={styles.accordionBlock} >
|
|
37
37
|
{title && (
|
|
38
38
|
<div className={styles.accordionHeading}>
|
|
39
39
|
<ScrollFadeIn>
|
|
@@ -44,12 +44,13 @@ const Accordion = (props: AccordionProps) => {
|
|
|
44
44
|
|
|
45
45
|
)}
|
|
46
46
|
<div className={`${styles.accordionWrapper}`}>
|
|
47
|
-
<div className={styles.accordionBgDesignContainer}>
|
|
48
|
-
<AccordionBgDesign />
|
|
49
|
-
</div>
|
|
50
47
|
{children}
|
|
51
48
|
</div>
|
|
49
|
+
<div className={styles.accordionBgDesignContainer}>
|
|
50
|
+
<AccordionBgDesign />
|
|
51
|
+
</div>
|
|
52
52
|
</div>
|
|
53
|
+
</Container>
|
|
53
54
|
</AccordionProvider>
|
|
54
55
|
);
|
|
55
56
|
};
|
|
@@ -132,7 +132,7 @@ const AccordionItem = (props: AccordionItemProps) => {
|
|
|
132
132
|
<h4>{title}</h4>
|
|
133
133
|
</div>
|
|
134
134
|
<div className={`${styles.icon} accordionIcon`}>
|
|
135
|
-
{isOpened ? <CaretUp
|
|
135
|
+
{isOpened ? <CaretUp/> : <CaretDown />}
|
|
136
136
|
</div>
|
|
137
137
|
</div>
|
|
138
138
|
|
|
@@ -150,7 +150,7 @@ const AccordionItem = (props: AccordionItemProps) => {
|
|
|
150
150
|
</div>
|
|
151
151
|
</div>
|
|
152
152
|
|
|
153
|
-
<
|
|
153
|
+
<div className={styles.accordionHorizontalLine}></div>
|
|
154
154
|
|
|
155
155
|
</div>
|
|
156
156
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {ReactNode} from "react";
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
2
|
|
|
3
3
|
interface AccordionProps {
|
|
4
4
|
allowMultiple?: boolean;
|
|
@@ -8,6 +8,7 @@ interface AccordionProps {
|
|
|
8
8
|
image?: string;
|
|
9
9
|
activeId?: number | null;
|
|
10
10
|
onActiveIdChange?: (id: number | null) => void;
|
|
11
|
+
pillar?: 'visit' | 'live' | 'business' | 'participate' | 'taste'
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export default AccordionProps;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const AccordionBgDesign = () => {
|
|
2
2
|
return (
|
|
3
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
3
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="639" height="577" viewBox="0 0 639 577" fill="none">
|
|
4
4
|
<g opacity="0.05">
|
|
5
|
-
<path d="
|
|
6
|
-
<path d="
|
|
7
|
-
<path d="
|
|
8
|
-
<path d="
|
|
5
|
+
<path d="M639 296.466C467.655 296.466 328.715 422.083 328.715 577H639V296.466Z" fill="currentColor" />
|
|
6
|
+
<path d="M639 0.0916445C467.655 0.0916445 328.715 125.71 328.715 280.626H639V0.0916445Z" fill="currentColor" />
|
|
7
|
+
<path d="M0 576.908C0 421.992 138.94 296.374 310.285 296.374V576.908H0Z" fill="currentColor" />
|
|
8
|
+
<path d="M0 280.534C0 125.618 138.94 0 310.285 0V280.534H0Z" fill="currentColor" />
|
|
9
9
|
</g>
|
|
10
10
|
</svg>
|
|
11
11
|
)
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
.accordionBlock {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-grow: 1;
|
|
4
|
-
gap: 90px;
|
|
5
|
-
|
|
6
2
|
.accordionHeading {
|
|
7
|
-
width: 50%;
|
|
8
|
-
|
|
9
3
|
h2 {
|
|
10
4
|
font-size: var(--font-size-h4);
|
|
11
5
|
font-weight: var(--font-weight-bold);
|
|
12
6
|
line-height: var(--line-height-h4);
|
|
13
|
-
|
|
7
|
+
letter-spacing: var(--letter-spacing-h4);
|
|
8
|
+
padding-bottom: 32px;
|
|
14
9
|
}
|
|
15
10
|
|
|
16
11
|
p {
|
|
@@ -20,71 +15,108 @@
|
|
|
20
15
|
}
|
|
21
16
|
}
|
|
22
17
|
|
|
18
|
+
.accordionBgDesignContainer {
|
|
19
|
+
display: none;
|
|
20
|
+
}
|
|
21
|
+
|
|
23
22
|
.accordionWrapper {
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
|
|
24
|
+
.title {
|
|
25
|
+
flex: 1;
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
|
|
29
|
+
h4 {
|
|
30
|
+
flex: 1;
|
|
31
|
+
font-size: var(--font-size-body-regular);
|
|
32
|
+
font-weight: var(--font-weight-bold);
|
|
33
|
+
line-height: var(--line-height-body-regular);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.icon {
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
margin-right: 4px;
|
|
41
|
+
|
|
42
|
+
svg {
|
|
43
|
+
width: 24px !important;
|
|
44
|
+
height: 24px !important;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
26
47
|
|
|
27
48
|
|
|
28
49
|
.accordion {
|
|
29
50
|
display: flex;
|
|
30
51
|
flex-direction: column;
|
|
31
52
|
overflow: hidden;
|
|
53
|
+
|
|
54
|
+
.accordionHorizontalLine {
|
|
55
|
+
border-bottom: 1px solid var(--color-text);
|
|
56
|
+
height: 0;
|
|
57
|
+
width: 100%;
|
|
58
|
+
}
|
|
32
59
|
}
|
|
33
60
|
|
|
34
61
|
.header {
|
|
35
62
|
display: flex;
|
|
36
63
|
align-items: center;
|
|
37
64
|
cursor: pointer;
|
|
65
|
+
padding: 16px 32px;
|
|
38
66
|
}
|
|
39
67
|
|
|
40
68
|
.accordionBodyHolder {
|
|
41
69
|
.accordionBody {
|
|
42
|
-
font-size: var(--font-size-body-regular);
|
|
43
|
-
font-weight: var(--font-weight-body-regular);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
70
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
71
|
+
img {
|
|
72
|
+
width: 100%;
|
|
73
|
+
padding: 32px 0;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
50
76
|
}
|
|
51
77
|
|
|
52
|
-
.
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
78
|
+
.bodyInner {
|
|
79
|
+
font-size: var(--font-size-body-regular);
|
|
80
|
+
font-weight: var(--font-weight-body-regular);
|
|
81
|
+
padding-left: 32px;
|
|
56
82
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
font-size: var(--font-size-body-
|
|
60
|
-
font-weight: var(--font-weight-
|
|
83
|
+
p {
|
|
84
|
+
margin: 8px 32px 32px 0;
|
|
85
|
+
font-size: var(--font-size-body-regular);
|
|
86
|
+
font-weight: var(--font-weight-body-regular);
|
|
87
|
+
padding: 0 16px 0 0;
|
|
61
88
|
line-height: var(--line-height-body-regular);
|
|
62
89
|
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
63
92
|
|
|
64
|
-
|
|
65
|
-
display: flex;
|
|
66
|
-
align-items: center;
|
|
67
|
-
margin-right: 4px;
|
|
93
|
+
@media screen and (min-width: 992px) {
|
|
68
94
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
95
|
+
display: flex;
|
|
96
|
+
flex-grow: 1;
|
|
97
|
+
margin: 0 -45px;
|
|
98
|
+
|
|
99
|
+
.accordionHeading {
|
|
100
|
+
width: 39%;
|
|
101
|
+
padding: 0 45px;
|
|
102
|
+
|
|
103
|
+
h2 {
|
|
104
|
+
padding-bottom: 72px;
|
|
73
105
|
}
|
|
74
106
|
}
|
|
75
107
|
|
|
76
|
-
.
|
|
77
|
-
|
|
78
|
-
|
|
108
|
+
.accordionWrapper {
|
|
109
|
+
width: 61%;
|
|
110
|
+
position: relative;
|
|
111
|
+
padding: 0 45px;
|
|
79
112
|
}
|
|
80
|
-
}
|
|
81
113
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
114
|
+
.accordionBgDesignContainer {
|
|
115
|
+
position: absolute;
|
|
116
|
+
top: 191px;
|
|
117
|
+
right: 0;
|
|
118
|
+
pointer-events: none;
|
|
119
|
+
display: block;
|
|
120
|
+
}
|
|
87
121
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
122
|
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import React from "react"
|
|
3
|
+
import { Meta, StoryObj } from "@storybook/react-vite";
|
|
4
|
+
import ElementHolder from "../../Shared/ElementHolder/ElementHolder";
|
|
5
|
+
import BrandBuilderTool from "./BrandBuilderTool";
|
|
6
|
+
import BrandBuilderToolWrapper from "./BrandBuilderToolWrapper/BrandBuilderToolWrapper";
|
|
7
|
+
import BrandBuilderToolUploader from "./BrandBuilderToolUploader/BrandBuilderToolUploader";
|
|
8
|
+
import BrandBuilderToolMain from "./BrandBuilderToolMain/BrandBuilderToolMain";
|
|
9
|
+
import BrandBuilderToolTemplateSelector from "./BrandBuilderToolTemplate/BrandBuilderToolTemplateSelector";
|
|
10
|
+
import BrandBuilderToolPreview from "./BrandbuilderToolPreview/BrandBuilderToolPreview";
|
|
11
|
+
import BrandBuilderToolTemplateItem from "./BrandBuilderToolTemplate/BrandBuilderToolTemplateItem";
|
|
12
|
+
|
|
13
|
+
const meta: Meta = {
|
|
14
|
+
title: "DataDisplay / BrandBuilderTool",
|
|
15
|
+
component: BrandBuilderTool,
|
|
16
|
+
parameters: {
|
|
17
|
+
layout: 'fullscreen',
|
|
18
|
+
},
|
|
19
|
+
tags: ["autodocs"]
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export default meta;
|
|
23
|
+
|
|
24
|
+
type Story = StoryObj<typeof meta>;
|
|
25
|
+
|
|
26
|
+
const BrandBuilderToolTemplate: Story = {
|
|
27
|
+
render: () => {
|
|
28
|
+
return (
|
|
29
|
+
<>
|
|
30
|
+
<ElementHolder paddingTop="sm" paddingBottom="sm" pdBillar="live" level="light">
|
|
31
|
+
<BrandBuilderTool title={'Build your brand'} description={'Lorem ipsum dolor sit amet'}>
|
|
32
|
+
<BrandBuilderToolWrapper sideBar={<BrandBuilderToolUploader/>}>
|
|
33
|
+
<BrandBuilderToolMain>
|
|
34
|
+
<BrandBuilderToolTemplateSelector>
|
|
35
|
+
<BrandBuilderToolTemplateItem/>
|
|
36
|
+
<BrandBuilderToolTemplateItem/>
|
|
37
|
+
<BrandBuilderToolTemplateItem/>
|
|
38
|
+
<BrandBuilderToolTemplateItem/>
|
|
39
|
+
<BrandBuilderToolTemplateItem/>
|
|
40
|
+
</BrandBuilderToolTemplateSelector>
|
|
41
|
+
<BrandBuilderToolPreview/>
|
|
42
|
+
</BrandBuilderToolMain>
|
|
43
|
+
</BrandBuilderToolWrapper>
|
|
44
|
+
</BrandBuilderTool>
|
|
45
|
+
</ElementHolder>
|
|
46
|
+
</>
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export const BrandBuilderToolComponent = {
|
|
52
|
+
...BrandBuilderToolTemplate
|
|
53
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import styles from './brandBuilder.module.scss'
|
|
2
|
+
import BrandBuilderToolProps from "./BrandBuilderToolProps.tsx";
|
|
3
|
+
import {Container} from "../../Shared";
|
|
4
|
+
|
|
5
|
+
const BrandBuilderTool = (props : BrandBuilderToolProps) => {
|
|
6
|
+
|
|
7
|
+
const {title, description, children} = props
|
|
8
|
+
|
|
9
|
+
return <div className={styles.brandBuilder}>
|
|
10
|
+
<Container border={true}>
|
|
11
|
+
<div className={styles.header}>
|
|
12
|
+
{title && <h1>{title}</h1>}
|
|
13
|
+
{description && <p>{description}</p>}
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
<div className={styles.brandBuilderHolder}>
|
|
17
|
+
{children}
|
|
18
|
+
</div>
|
|
19
|
+
</Container>
|
|
20
|
+
</div>
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default BrandBuilderTool
|
package/src/Components/DataDisplay/BrandBuilderTool/BrandBuilderToolMain/BrandBuilderToolMain.tsx
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import styles from '../brandBuilder.module.scss'
|
|
2
|
+
import BrandBuilderToolMainProps from "./BrandBuilderToolMainProps.tsx";
|
|
3
|
+
|
|
4
|
+
const BrandBuilderToolMain = (props : BrandBuilderToolMainProps) =>{
|
|
5
|
+
|
|
6
|
+
const {children} = props
|
|
7
|
+
|
|
8
|
+
return <div className={styles.main}>
|
|
9
|
+
{children}
|
|
10
|
+
</div>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default BrandBuilderToolMain
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import styles from '../brandBuilder.module.scss'
|
|
2
|
+
import BrandBuilderToolTemplateItemProps from "./BrandBuilderToolTemplateItemProps.tsx";
|
|
3
|
+
const BrandBuilderToolTemplateItem = ({icon, iconName, active, onClick} : BrandBuilderToolTemplateItemProps) =>{
|
|
4
|
+
return <div className={styles.item}>
|
|
5
|
+
<div
|
|
6
|
+
onClick={onClick}
|
|
7
|
+
className={`${styles.itemWrapper} ${active && styles.active}`} aria-description={iconName}
|
|
8
|
+
>
|
|
9
|
+
{icon}
|
|
10
|
+
<p>{iconName}</p>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default BrandBuilderToolTemplateItem;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import styles from '../brandBuilder.module.scss'
|
|
2
|
+
import BrandBuilderToolTemplateSelectorProps from "./BrandBuilderToolTemplateSelectorProps.tsx";
|
|
3
|
+
const BrandBuilderToolTemplateSelector = (props : BrandBuilderToolTemplateSelectorProps) =>{
|
|
4
|
+
|
|
5
|
+
const {actions, children} = props
|
|
6
|
+
|
|
7
|
+
return <div className={styles.templateSelector}>
|
|
8
|
+
<div className={styles.selectorsWrapper}>
|
|
9
|
+
<div className={styles.selectors}>
|
|
10
|
+
<div className={`${styles.title} ${styles.selectorTitle}`}>
|
|
11
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 50 50" fill="none">
|
|
12
|
+
<rect width="50" height="50" rx="25" fill="currentColor"/>
|
|
13
|
+
<path d="M34.7346 19.892C34.7346 24.464 31.4946 26.624 26.9586 28.928C23.7186 30.584 22.0986 31.772 21.9546 33.176H34.7706V38H15.0426V35.804C15.0426 30.404 19.4706 27.38 23.2866 25.148C26.9586 23.024 28.8666 21.944 28.8666 19.784C28.8666 17.84 27.6786 16.58 25.3386 16.58C22.8906 16.58 21.4506 18.452 21.3066 20.792H15.2946C15.6906 15.788 19.2186 11.864 25.3746 11.864C30.9546 11.864 34.7346 15.14 34.7346 19.892Z" fill="#EFEAE7"/>
|
|
14
|
+
</svg>
|
|
15
|
+
<h5>Select a template</h5>
|
|
16
|
+
</div>
|
|
17
|
+
<div>
|
|
18
|
+
{actions}
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
<p>Choose the image template that most closely aligns with your intended usage.</p>
|
|
22
|
+
</div>
|
|
23
|
+
<div className={styles.items}>
|
|
24
|
+
{children}
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export default BrandBuilderToolTemplateSelector
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import styles from '../brandBuilder.module.scss'
|
|
2
|
+
import BrandBuilderToolUploaderProps from "./BrandBuilderToolUploaderProps.tsx";
|
|
3
|
+
import Masonry from "react-responsive-masonry"
|
|
4
|
+
const BrandBuilderToolUploader = (props : BrandBuilderToolUploaderProps) =>{
|
|
5
|
+
|
|
6
|
+
const {action, children } = props
|
|
7
|
+
|
|
8
|
+
return <div className={styles.brandBuilderToolUploader}>
|
|
9
|
+
<div className={styles.title}>
|
|
10
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 50 50" fill="none">
|
|
11
|
+
<rect width="50" height="50" rx="25" fill="currentColor"/>
|
|
12
|
+
<path d="M18.2427 20.18V16.076C22.6347 16.076 24.5067 14.924 25.1187 12.26H29.5827V38H23.3547V20.18H18.2427Z" fill="#EFEAE7"/>
|
|
13
|
+
</svg>
|
|
14
|
+
<h5>Upload your photos</h5>
|
|
15
|
+
</div>
|
|
16
|
+
<div className={styles.uploaderBtn}>
|
|
17
|
+
{action}
|
|
18
|
+
</div>
|
|
19
|
+
<div className={styles.uploaderDesc}>
|
|
20
|
+
<p>You can select one image or four.</p>
|
|
21
|
+
<p>
|
|
22
|
+
If you choose four, each image will be placed into its own segment of the selected shape, and the shape will automatically mask them.
|
|
23
|
+
</p>
|
|
24
|
+
</div>
|
|
25
|
+
<div className={styles.imagesUploader}>
|
|
26
|
+
<Masonry gutter={'24px'} columnsCount={2}>
|
|
27
|
+
{children}
|
|
28
|
+
</Masonry>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export default BrandBuilderToolUploader
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import BrandBuilderToolWrapperProps from "./BrandBuilderToolWrapperProps.tsx";
|
|
2
|
+
import styles from '../brandBuilder.module.scss'
|
|
3
|
+
const BrandBuilderToolWrapper = (props : BrandBuilderToolWrapperProps) => {
|
|
4
|
+
|
|
5
|
+
const { sideBar , children} = props
|
|
6
|
+
|
|
7
|
+
return <div className={styles.brandBuilderToolWrapper}>
|
|
8
|
+
<div className={styles.sideBar}>
|
|
9
|
+
{sideBar}
|
|
10
|
+
</div>
|
|
11
|
+
<div className={styles.main}>
|
|
12
|
+
{children}
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export default BrandBuilderToolWrapper
|