@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
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import cx from "classnames";
|
|
2
|
+
import CheckboxProps from "./CheckboxProps";
|
|
3
|
+
import styles from "./checkbox.module.scss";
|
|
4
|
+
import {useEffect, useState, MouseEvent} from "react";
|
|
5
|
+
|
|
6
|
+
const Checkbox = (props: CheckboxProps) => {
|
|
7
|
+
const {
|
|
8
|
+
label,
|
|
9
|
+
name,
|
|
10
|
+
checked,
|
|
11
|
+
id,
|
|
12
|
+
value,
|
|
13
|
+
placeholder,
|
|
14
|
+
extraClass,
|
|
15
|
+
disabled,
|
|
16
|
+
error,
|
|
17
|
+
ariaLabel,
|
|
18
|
+
required,
|
|
19
|
+
readonly,
|
|
20
|
+
onClick,
|
|
21
|
+
onChange,
|
|
22
|
+
...args
|
|
23
|
+
} = props;
|
|
24
|
+
|
|
25
|
+
const [isChecked, setIsChecked] = useState(false);
|
|
26
|
+
|
|
27
|
+
const classesHolders = ["checkboxHolder", styles.checkboxHolder];
|
|
28
|
+
const classes = ["checkbox", styles.checkbox];
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
if (extraClass) {
|
|
32
|
+
classesHolders.push(extraClass);
|
|
33
|
+
}
|
|
34
|
+
if (error) {
|
|
35
|
+
classesHolders.push(styles.error);
|
|
36
|
+
classes.push(styles.error);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (disabled) {
|
|
40
|
+
classesHolders.push(styles.disabled);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
useEffect(() => {
|
|
45
|
+
setIsChecked(checked ? checked : false);
|
|
46
|
+
}, [checked]);
|
|
47
|
+
|
|
48
|
+
const handleClick = (e: MouseEvent) => {
|
|
49
|
+
setIsChecked(!isChecked);
|
|
50
|
+
if ( onClick) {
|
|
51
|
+
onClick(e, isChecked);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
const onChangeHandler = (e:any) => {
|
|
56
|
+
if (onChange) {
|
|
57
|
+
onChange(e);
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
return (
|
|
62
|
+
<div className={cx(classesHolders)}>
|
|
63
|
+
<div className={cx(classes)}>
|
|
64
|
+
<input
|
|
65
|
+
id={id}
|
|
66
|
+
name={name}
|
|
67
|
+
checked={isChecked}
|
|
68
|
+
type={"checkbox"}
|
|
69
|
+
value={value}
|
|
70
|
+
placeholder={placeholder}
|
|
71
|
+
disabled={disabled}
|
|
72
|
+
readOnly={readonly}
|
|
73
|
+
required={required}
|
|
74
|
+
aria-label={ariaLabel ? ariaLabel : name}
|
|
75
|
+
aria-required={required ? "true" : "false"}
|
|
76
|
+
aria-invalid={error ? "true" : "false"}
|
|
77
|
+
aria-disabled={disabled ? "true" : "false"}
|
|
78
|
+
aria-readonly={readonly ? "true" : "false"}
|
|
79
|
+
onClick={handleClick}
|
|
80
|
+
onChange={onChangeHandler}
|
|
81
|
+
{...args}
|
|
82
|
+
/>
|
|
83
|
+
{!!isChecked && (
|
|
84
|
+
<svg
|
|
85
|
+
width="11"
|
|
86
|
+
height="10"
|
|
87
|
+
viewBox="0 0 11 10"
|
|
88
|
+
fill="none"
|
|
89
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
90
|
+
>
|
|
91
|
+
<path
|
|
92
|
+
d="M10.8425 2.10473C11.0378 2.29999 11.0378 2.61658 10.8425 2.81184L4.47856 9.1758C4.2833 9.37106 3.96672 9.37106 3.77146 9.1758L0.353775 5.75812C0.158513 5.56286 0.158513 5.24627 0.353775 5.05101L1.41443 3.99035C1.6097 3.79509 1.92628 3.79509 2.12154 3.99035L4.12501 5.99382L9.07476 1.04407C9.27002 0.84881 9.5866 0.84881 9.78187 1.04407L10.8425 2.10473Z"
|
|
93
|
+
fillRule="evenodd"
|
|
94
|
+
clipRule="evenodd"
|
|
95
|
+
fill="currentColor"
|
|
96
|
+
/>
|
|
97
|
+
</svg>
|
|
98
|
+
)}
|
|
99
|
+
</div>
|
|
100
|
+
{!!label && (
|
|
101
|
+
<label
|
|
102
|
+
htmlFor={id}
|
|
103
|
+
>
|
|
104
|
+
{label}
|
|
105
|
+
</label>
|
|
106
|
+
)}
|
|
107
|
+
</div>
|
|
108
|
+
);
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
export default Checkbox;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {ChangeEvent, FocusEvent, MouseEvent} from "react";
|
|
2
|
+
|
|
3
|
+
interface CheckboxProps {
|
|
4
|
+
label?:string;
|
|
5
|
+
name?: string;
|
|
6
|
+
id?: string;
|
|
7
|
+
value?: string;
|
|
8
|
+
extraClass?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
error?: boolean;
|
|
11
|
+
disabled?:boolean;
|
|
12
|
+
readonly?: boolean;
|
|
13
|
+
checked?: boolean;
|
|
14
|
+
required?: boolean;
|
|
15
|
+
ariaLabel?: string;
|
|
16
|
+
ariaLabeledby?: string;
|
|
17
|
+
ariaDescribedby?: string;
|
|
18
|
+
onClick?: (e: MouseEvent, checked?: boolean) => void;
|
|
19
|
+
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
20
|
+
onFocus?: (e: FocusEvent) => void;
|
|
21
|
+
onBlur?: (e: FocusEvent) => void;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export default CheckboxProps;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
.checkboxHolder {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
|
|
5
|
+
label {
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
font-size: var(--font-size-label);
|
|
8
|
+
line-height: var(--line-height-h3);
|
|
9
|
+
font-weight: var(--font-weight-h3);
|
|
10
|
+
margin-left: 12px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&.error {
|
|
14
|
+
label {
|
|
15
|
+
color: var(--color-error);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.disabled {
|
|
20
|
+
label {
|
|
21
|
+
cursor: not-allowed;
|
|
22
|
+
color: var(--color-gray-200);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
[dir="rtl"] {
|
|
29
|
+
.checkboxHolder {
|
|
30
|
+
label {
|
|
31
|
+
margin-right: calc(var(--space-unit) * 3);
|
|
32
|
+
margin-left: 0px;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.checkbox {
|
|
38
|
+
position: relative;
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
flex-shrink: 0;
|
|
42
|
+
flex-grow: 0;
|
|
43
|
+
|
|
44
|
+
input[type="checkbox"] {
|
|
45
|
+
-webkit-appearance: none;
|
|
46
|
+
width: 20px;
|
|
47
|
+
height: 20px;
|
|
48
|
+
border-radius: 4px;
|
|
49
|
+
background-color: white;
|
|
50
|
+
border: 1px solid var(--form-field-border);
|
|
51
|
+
outline: 2px solid transparent;
|
|
52
|
+
outline-offset: 2px;
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
|
|
55
|
+
&:checked {
|
|
56
|
+
background-color: var(--color-gray-800);
|
|
57
|
+
border-color: var(--color-text);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:hover {
|
|
61
|
+
border-color: var(--color-text);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:focus {
|
|
65
|
+
outline: 2px solid var(--color-text);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&:disabled {
|
|
69
|
+
background-color: var(--color-gray-200);
|
|
70
|
+
border-color: var(--color-gray-200);
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
&:hover {
|
|
74
|
+
border-color: var(--color-gray-200);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&:checked {
|
|
78
|
+
border-color: var(--color-gray-200);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
svg {
|
|
84
|
+
position: absolute;
|
|
85
|
+
top: 50%;
|
|
86
|
+
left: 50%;
|
|
87
|
+
transform: translate(-50%, -50%);
|
|
88
|
+
pointer-events: none;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
input[type="checkbox"] ~ svg {
|
|
92
|
+
color: var(--color-white);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&.error {
|
|
96
|
+
input[type="checkbox"] {
|
|
97
|
+
border-color: var(--color-error);
|
|
98
|
+
color: var(--color-white);
|
|
99
|
+
|
|
100
|
+
&:checked {
|
|
101
|
+
background-color: var(--color-error);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
|
|
3
|
+
import EmailField from './EmailField.tsx';
|
|
4
|
+
|
|
5
|
+
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
|
|
6
|
+
const meta = {
|
|
7
|
+
title: 'Form / EmailField',
|
|
8
|
+
component: EmailField,
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: 'centered',
|
|
11
|
+
},
|
|
12
|
+
tags: ['autodocs'],
|
|
13
|
+
} satisfies Meta<typeof EmailField>;
|
|
14
|
+
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof EmailField>;
|
|
17
|
+
|
|
18
|
+
export const Example: Story = {
|
|
19
|
+
args: {
|
|
20
|
+
placeholder:"Placeholder",
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import cx from 'classnames';
|
|
2
|
+
import styles from '../inputs.module.scss' ;
|
|
3
|
+
import InputProps from "../InputProps";
|
|
4
|
+
import LoadingInput from "../LoadingInput/LoadingInput.tsx";
|
|
5
|
+
|
|
6
|
+
const EmailField = (props: InputProps) => {
|
|
7
|
+
const {
|
|
8
|
+
name,
|
|
9
|
+
id,
|
|
10
|
+
value,
|
|
11
|
+
placeholder,
|
|
12
|
+
extraClass,
|
|
13
|
+
disabled,
|
|
14
|
+
error,
|
|
15
|
+
ariaLabel,
|
|
16
|
+
required,
|
|
17
|
+
readonly,
|
|
18
|
+
autoComplete,
|
|
19
|
+
loading,
|
|
20
|
+
...args
|
|
21
|
+
} = props;
|
|
22
|
+
|
|
23
|
+
const classes = [styles.input];
|
|
24
|
+
if (error) {
|
|
25
|
+
classes.push(styles.error);
|
|
26
|
+
}
|
|
27
|
+
if (extraClass) {
|
|
28
|
+
classes.push(extraClass);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
return <div className={styles.field}>
|
|
32
|
+
{loading && <LoadingInput />}
|
|
33
|
+
<input
|
|
34
|
+
className={cx(classes)}
|
|
35
|
+
id={id}
|
|
36
|
+
name={name}
|
|
37
|
+
type='email'
|
|
38
|
+
value={value}
|
|
39
|
+
placeholder={placeholder}
|
|
40
|
+
disabled={disabled}
|
|
41
|
+
readOnly={readonly}
|
|
42
|
+
required={required}
|
|
43
|
+
autoComplete={autoComplete ? "on" : "off"}
|
|
44
|
+
aria-label={ariaLabel ? ariaLabel : name}
|
|
45
|
+
aria-required={required ? "true" : "false"}
|
|
46
|
+
aria-invalid={error ? "true" : "false"}
|
|
47
|
+
aria-disabled={disabled ? "true" : "false"}
|
|
48
|
+
aria-readonly={readonly ? "true" : "false"}
|
|
49
|
+
aria-autocomplete={autoComplete ? "list" : "none"}
|
|
50
|
+
{...args}
|
|
51
|
+
/>
|
|
52
|
+
</div>
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
export default EmailField;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
3
|
+
import FormFieldHolder from "./FormFieldHolder";
|
|
4
|
+
import TextField from "../TextField/TextField";
|
|
5
|
+
|
|
6
|
+
const meta: Meta = {
|
|
7
|
+
title: "Form / FormFieldHolder",
|
|
8
|
+
component: FormFieldHolder,
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: "centered",
|
|
11
|
+
},
|
|
12
|
+
tags: ["autodocs"],
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export default meta;
|
|
16
|
+
|
|
17
|
+
type Story = StoryObj<typeof meta>;
|
|
18
|
+
|
|
19
|
+
const FormFieldHolderTemplate: Story = {
|
|
20
|
+
render: () => {
|
|
21
|
+
return (
|
|
22
|
+
<FormFieldHolder optional={true} label="Name" description={"helper text"} labelClass="labelColor">
|
|
23
|
+
<TextField placeholder="Placeholder" />
|
|
24
|
+
</FormFieldHolder>
|
|
25
|
+
);
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export const FormFieldHolderComponent = {
|
|
30
|
+
...FormFieldHolderTemplate,
|
|
31
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import WarningCircle from "../../Icons/SecurityAndWarnings/WarningCircle/WarningCircle";
|
|
2
|
+
import FormFieldHolderProps from "./FormFieldHolderProps";
|
|
3
|
+
import styles from "./formHolder.module.scss";
|
|
4
|
+
|
|
5
|
+
const FormFieldHolder = (props: FormFieldHolderProps) => {
|
|
6
|
+
const {
|
|
7
|
+
icon,
|
|
8
|
+
label,
|
|
9
|
+
bilingualLabel,
|
|
10
|
+
description,
|
|
11
|
+
extraClass = "",
|
|
12
|
+
children,
|
|
13
|
+
error,
|
|
14
|
+
require,
|
|
15
|
+
optional
|
|
16
|
+
} = props;
|
|
17
|
+
|
|
18
|
+
return (
|
|
19
|
+
<div
|
|
20
|
+
className={`field-holder ${extraClass} ${styles.holder} ${error ? styles.holderError : ""
|
|
21
|
+
}`}
|
|
22
|
+
>
|
|
23
|
+
{!!label && (
|
|
24
|
+
<div className={`${styles.label}`}>
|
|
25
|
+
{!!icon && (
|
|
26
|
+
<div className={styles.iconAction}>
|
|
27
|
+
{icon}
|
|
28
|
+
</div>
|
|
29
|
+
)}
|
|
30
|
+
<label>
|
|
31
|
+
{label} {bilingualLabel && <span>- {bilingualLabel}</span>} {require && <span>*</span>} {optional && <span>Optional</span>}
|
|
32
|
+
</label>
|
|
33
|
+
</div>
|
|
34
|
+
)}
|
|
35
|
+
|
|
36
|
+
<div className={styles.field}>{children}</div>
|
|
37
|
+
|
|
38
|
+
{!!description && (
|
|
39
|
+
<div className={styles.description}>
|
|
40
|
+
<>
|
|
41
|
+
{error && (
|
|
42
|
+
<div className={styles.helperIcon}>
|
|
43
|
+
<WarningCircle />
|
|
44
|
+
</div>
|
|
45
|
+
)}
|
|
46
|
+
</>
|
|
47
|
+
<>
|
|
48
|
+
{typeof description === "string" && <p>{description}</p>}
|
|
49
|
+
{typeof description !== "string" && <>{description}</>}
|
|
50
|
+
</>
|
|
51
|
+
</div>
|
|
52
|
+
)}
|
|
53
|
+
</div>
|
|
54
|
+
);
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export default FormFieldHolder;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
|
|
3
|
+
interface FormFieldHolderProps {
|
|
4
|
+
label?: string | any;
|
|
5
|
+
labelClass?: string;
|
|
6
|
+
bilingualLabel?: string;
|
|
7
|
+
description?: string | ReactNode;
|
|
8
|
+
extraClass?: string;
|
|
9
|
+
error?: boolean;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
icon?: ReactNode;
|
|
12
|
+
require?:boolean;
|
|
13
|
+
optional?:boolean;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export default FormFieldHolderProps;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
.holder {
|
|
2
|
+
margin-bottom: 40px;
|
|
3
|
+
width: 100%;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.iconAction {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
margin-right: calc(var(--space-unit) * 2);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.holderError {
|
|
13
|
+
label {
|
|
14
|
+
color: var(--color-visit);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.label {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
align-items: flex-start;
|
|
22
|
+
|
|
23
|
+
label {
|
|
24
|
+
font-size: var(--font-size-label);
|
|
25
|
+
line-height: var(--line-height-body-regular);
|
|
26
|
+
font-weight: var(--font-weight-bold);
|
|
27
|
+
// margin-bottom: calc(4 * var(--space-unit));
|
|
28
|
+
margin-bottom: 12px;
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
span {
|
|
32
|
+
font-size: var(--font-size-optional-label);
|
|
33
|
+
color: var(--color-gray-600);
|
|
34
|
+
line-height: var(--line-height-optional-label);
|
|
35
|
+
font-weight: var(--font-weight-optional-label);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
.description {
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
font-size: var(--font-size-body-sm);
|
|
46
|
+
line-height: var(--line-height-body-sm);
|
|
47
|
+
font-weight: var(--font-weight-body-sm);
|
|
48
|
+
padding-top: calc(var(--space-unit) * 2);
|
|
49
|
+
color: var(--color-description);
|
|
50
|
+
|
|
51
|
+
p {
|
|
52
|
+
font-size: var(--font-size-body-sm);
|
|
53
|
+
line-height: var(--line-height-body-sm);
|
|
54
|
+
font-weight: var(--font-weight-body-sm);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.helperIcon {
|
|
58
|
+
margin-right: var(--space-unit);
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
|
|
62
|
+
svg {
|
|
63
|
+
width: 16px;
|
|
64
|
+
height: 16px;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.holderError & {
|
|
69
|
+
color: var(--color-error);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {FocusEvent, ChangeEvent, MouseEvent, KeyboardEvent} from "react";
|
|
2
|
+
|
|
3
|
+
interface InputProps {
|
|
4
|
+
name?: string;
|
|
5
|
+
id?: string;
|
|
6
|
+
value?: string | number | bigint | any;
|
|
7
|
+
extraClass?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
error?: boolean;
|
|
10
|
+
disabled?:boolean;
|
|
11
|
+
readonly?: boolean;
|
|
12
|
+
autoComplete?: boolean;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
ariaLabel?: string;
|
|
15
|
+
min?: string,
|
|
16
|
+
max?: string,
|
|
17
|
+
minLength?: number;
|
|
18
|
+
maxLength?: number;
|
|
19
|
+
ariaLabeledby?: string;
|
|
20
|
+
ariaDescribedby?: string;
|
|
21
|
+
onClick?: (e: MouseEvent) => void;
|
|
22
|
+
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
23
|
+
onFocus?: (e: FocusEvent) => void;
|
|
24
|
+
onBlur?: (e: FocusEvent) => void;
|
|
25
|
+
onKeyDown?:(e: KeyboardEvent<HTMLInputElement>) => void;
|
|
26
|
+
loading?:boolean;
|
|
27
|
+
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export default InputProps;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Meta, StoryObj } from "@storybook/react-vite";
|
|
3
|
+
import LandingPageForm from "./LandingPageForm";
|
|
4
|
+
import LandingPageFormLeft from "./LandingPageFormLeft";
|
|
5
|
+
import LandingPageFormRight from "./LandingPageFormRight";
|
|
6
|
+
import { ElementHolder } from "../../Shared";
|
|
7
|
+
import FormFieldHolder from "../FormFieldHolder/FormFieldHolder";
|
|
8
|
+
import TextField from "../TextField/TextField";
|
|
9
|
+
import EmailField from "../EmailField/EmailField";
|
|
10
|
+
import Textarea from "../Textarea/Textarea";
|
|
11
|
+
import Checkbox from "../Checkbox/Checkbox";
|
|
12
|
+
import Button from "../Button/Button";
|
|
13
|
+
import ArrowRight from "../../Icons/Arrows/ArrowRight/ArrowRight";
|
|
14
|
+
import Path from "../../Icons/MapAndTravel/Path/Path";
|
|
15
|
+
import Mountains from "../../Icons/WeatherAndNature/Mountains/Mountains"
|
|
16
|
+
import Clock from "../../Icons/Time/Clock/Clock"
|
|
17
|
+
import Media from "../../DataDisplay/Media/Media"
|
|
18
|
+
|
|
19
|
+
const meta: Meta = {
|
|
20
|
+
title: "Form / LandingPageForm",
|
|
21
|
+
component: LandingPageForm,
|
|
22
|
+
parameters: {
|
|
23
|
+
layout: 'fullscreen'
|
|
24
|
+
},
|
|
25
|
+
tags: ["autodocs"]
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export default meta;
|
|
29
|
+
|
|
30
|
+
type Story = StoryObj<typeof meta>
|
|
31
|
+
|
|
32
|
+
const LandingPageFormTemplate: Story = {
|
|
33
|
+
render: () => {
|
|
34
|
+
return (
|
|
35
|
+
<ElementHolder paddingTop="md" paddingBottom="md" pillar="visit" level="light">
|
|
36
|
+
<LandingPageForm landingPageFormLeft={
|
|
37
|
+
<LandingPageFormLeft
|
|
38
|
+
extraClass={"customHeadingStyle"}
|
|
39
|
+
callToActions={[
|
|
40
|
+
{
|
|
41
|
+
title: "Lorem ipsum dolor sit",
|
|
42
|
+
text: "Lorem ipsum dolor sit amet, consectetur adipiscing.",
|
|
43
|
+
icon: <Path type="fill" />
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
title: "Lorem ipsum dolor sit",
|
|
47
|
+
text: "Lorem ipsum dolor sit amet, consectetur adipiscing.",
|
|
48
|
+
icon: <Mountains type="fill" />
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
title: "Lorem ipsum dolor sit",
|
|
52
|
+
text: "Lorem ipsum dolor sit amet, consectetur adipiscing.",
|
|
53
|
+
icon: <Clock type="fill" />
|
|
54
|
+
},
|
|
55
|
+
]}
|
|
56
|
+
>
|
|
57
|
+
<h4>
|
|
58
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore.
|
|
59
|
+
</h4>
|
|
60
|
+
<br />
|
|
61
|
+
<br />
|
|
62
|
+
|
|
63
|
+
<p>
|
|
64
|
+
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.
|
|
65
|
+
</p>
|
|
66
|
+
|
|
67
|
+
<Media/>
|
|
68
|
+
<br />
|
|
69
|
+
<br />
|
|
70
|
+
|
|
71
|
+
<h5>
|
|
72
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
|
|
73
|
+
</h5>
|
|
74
|
+
<br />
|
|
75
|
+
<br />
|
|
76
|
+
|
|
77
|
+
<p>
|
|
78
|
+
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.
|
|
79
|
+
</p>
|
|
80
|
+
</LandingPageFormLeft>
|
|
81
|
+
} landingPageFormRight={
|
|
82
|
+
<LandingPageFormRight
|
|
83
|
+
formImage={"/img/landing-page-form-image.png"}
|
|
84
|
+
formTitle={'Go in the draw to win'}
|
|
85
|
+
formText={'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'}
|
|
86
|
+
pillar="visit"
|
|
87
|
+
level="primary"
|
|
88
|
+
children={
|
|
89
|
+
<>
|
|
90
|
+
<FormFieldHolder label={'Name*'} >
|
|
91
|
+
<TextField required />
|
|
92
|
+
</FormFieldHolder>
|
|
93
|
+
<FormFieldHolder label={'Email*'}><EmailField required /></FormFieldHolder>
|
|
94
|
+
<FormFieldHolder label={'Phone number'}><TextField /></FormFieldHolder>
|
|
95
|
+
<FormFieldHolder label={'What would you love to do most in Selwyn?'}><Textarea /></FormFieldHolder>
|
|
96
|
+
<Checkbox label={"I’d love to receive updates about events and happenings in Selwyn."} />
|
|
97
|
+
</>
|
|
98
|
+
}
|
|
99
|
+
callToAction={<Button label="ENTER NOW" secondaryIcon={<ArrowRight />} pillar="visit" level="primary"/>}
|
|
100
|
+
/>
|
|
101
|
+
}>
|
|
102
|
+
</LandingPageForm>
|
|
103
|
+
</ElementHolder>
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export const LandingPageFormComponent = {
|
|
109
|
+
...LandingPageFormTemplate
|
|
110
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Container } from "../../Shared";
|
|
2
|
+
import LandingPageFormProps from "./LandingPageFormProps"
|
|
3
|
+
import styles from "./landingPageForm.module.scss";
|
|
4
|
+
|
|
5
|
+
const LandingPageForm = (props: LandingPageFormProps) => {
|
|
6
|
+
const {
|
|
7
|
+
landingPageFormLeft,
|
|
8
|
+
landingPageFormRight,
|
|
9
|
+
extraClass,
|
|
10
|
+
} = props
|
|
11
|
+
|
|
12
|
+
return (
|
|
13
|
+
<div className={`${styles.landingPageFormBlock} ${extraClass}`}>
|
|
14
|
+
<Container>
|
|
15
|
+
<div className={styles.landingPageFormBlockWrapper}>
|
|
16
|
+
{landingPageFormLeft}
|
|
17
|
+
{landingPageFormRight}
|
|
18
|
+
</div>
|
|
19
|
+
</Container>
|
|
20
|
+
</div>
|
|
21
|
+
)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export default LandingPageForm
|