@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,189 @@
|
|
|
1
|
+
.radioSet {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-wrap: wrap;
|
|
4
|
+
margin: calc(var(--space-unit) * -1);
|
|
5
|
+
|
|
6
|
+
&.container {
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&:has(.radioBtnBox) {
|
|
11
|
+
margin:0 -8px;
|
|
12
|
+
flex-wrap:nowrap;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.radioHolder {
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
padding: calc(var(--space-unit) * 1);
|
|
21
|
+
|
|
22
|
+
label {
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
margin-left: calc(var(--space-unit) * 3);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.error {
|
|
28
|
+
label {
|
|
29
|
+
color: var(--color-error);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.disabled {
|
|
34
|
+
label {
|
|
35
|
+
cursor: not-allowed;
|
|
36
|
+
color: var(--color-text);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.radioButtonWrap {
|
|
43
|
+
display: flex;
|
|
44
|
+
|
|
45
|
+
&:has(.radioBtnBox) {
|
|
46
|
+
padding: 0 8px;
|
|
47
|
+
width: 100%;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.radioBtnBox {
|
|
52
|
+
border: 1px solid var(--color-text);
|
|
53
|
+
flex-direction: row-reverse;
|
|
54
|
+
padding:15px 24px;
|
|
55
|
+
justify-content: space-between;
|
|
56
|
+
border-radius: 4px;
|
|
57
|
+
width: 100%;
|
|
58
|
+
height: 100%;
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
|
|
61
|
+
.container & {
|
|
62
|
+
margin-bottom: 16px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
label {
|
|
66
|
+
font-family: var(--font);
|
|
67
|
+
margin-left:0;
|
|
68
|
+
margin-right: 12px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
.radioBtnBox:has(input[type="radio"]:checked) {
|
|
76
|
+
--dropdown-border-color: var(--dropdown-selector-color);
|
|
77
|
+
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
[dir="rtl"] {
|
|
81
|
+
.radioHolder {
|
|
82
|
+
label {
|
|
83
|
+
margin-left: 0px;
|
|
84
|
+
margin-right: calc(var(--space-unit) * 3);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
.radio {
|
|
89
|
+
position: relative;
|
|
90
|
+
display: inline-flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
justify-content: center;
|
|
93
|
+
flex-shrink: 0;
|
|
94
|
+
flex-grow: 0;
|
|
95
|
+
|
|
96
|
+
p {
|
|
97
|
+
font-size: var(--text-h-xxs);
|
|
98
|
+
line-height: var(--line-height-h-xxs);
|
|
99
|
+
font-family: var(--font);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
input[type="radio"] {
|
|
103
|
+
-webkit-appearance: none;
|
|
104
|
+
width: 20px;
|
|
105
|
+
height: 20px;
|
|
106
|
+
border-radius: 100%;
|
|
107
|
+
background-color: #FFFFFF;
|
|
108
|
+
border: 1px solid var(--color-text);
|
|
109
|
+
outline-offset: 2px;
|
|
110
|
+
outline: 2px solid transparent;
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
position: relative;
|
|
113
|
+
z-index: 1;
|
|
114
|
+
|
|
115
|
+
&:checked + .circle {
|
|
116
|
+
opacity: 1;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
&:focus {
|
|
122
|
+
outline: 2px solid var(--color-text);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&:hover {
|
|
126
|
+
border: 2px solid var(--color-text);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&:disabled {
|
|
130
|
+
//background-color: var(--color-gr);
|
|
131
|
+
cursor: not-allowed;
|
|
132
|
+
|
|
133
|
+
&:checked {
|
|
134
|
+
border-color: var(--color-gray-200);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.circle {
|
|
140
|
+
content: "";
|
|
141
|
+
position: absolute;
|
|
142
|
+
width: 12px;
|
|
143
|
+
height: 12px;
|
|
144
|
+
border-radius: 100%;
|
|
145
|
+
background-color: var(--color-text);
|
|
146
|
+
opacity: 0;
|
|
147
|
+
pointer-events: none;
|
|
148
|
+
z-index: 10;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
@media screen and (max-width: 768px) {
|
|
154
|
+
.radioBtnBox {
|
|
155
|
+
.container & {
|
|
156
|
+
margin-bottom: 0px;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.radioSet {
|
|
161
|
+
&:has(.radioBtnBox) {
|
|
162
|
+
flex-direction: column;
|
|
163
|
+
margin-left: 0;
|
|
164
|
+
margin-right: 0;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.radioButtonWrap {
|
|
169
|
+
&:has(.radioBtnBox) {
|
|
170
|
+
padding-left: 0;
|
|
171
|
+
padding-right: 0;
|
|
172
|
+
|
|
173
|
+
&:last-child {
|
|
174
|
+
.radioBtnBox {
|
|
175
|
+
border-bottom: 1px solid var(--color-text);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.radioBtnBox {
|
|
182
|
+
border-bottom: 1px solid transparent;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.radioBtnBox:has(input[type="radio"]:checked) {
|
|
186
|
+
border-bottom: 1px solid var(--color-text);
|
|
187
|
+
|
|
188
|
+
}
|
|
189
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Meta, StoryObj } from "@storybook/react-vite"
|
|
3
|
+
import SimpleForm from "./SimpleForm"
|
|
4
|
+
import { ElementHolder } from "../../Shared";
|
|
5
|
+
import TextField from "../TextField/TextField";
|
|
6
|
+
import EmailField from "../EmailField/EmailField";
|
|
7
|
+
import Textarea from "../Textarea/Textarea";
|
|
8
|
+
import Checkbox from "../Checkbox/Checkbox";
|
|
9
|
+
import Button from "../Button/Button";
|
|
10
|
+
import ArrowRight from "../../Icons/Arrows/ArrowRight/ArrowRight";
|
|
11
|
+
import FormFieldHolder from "../FormFieldHolder/FormFieldHolder";
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
const meta: Meta = {
|
|
15
|
+
title: "Form / SimpleForm",
|
|
16
|
+
component: SimpleForm,
|
|
17
|
+
parameters: {
|
|
18
|
+
layout: 'fullscreen',
|
|
19
|
+
},
|
|
20
|
+
tags: ["autodocs"]
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export default meta;
|
|
24
|
+
|
|
25
|
+
type Story = StoryObj<typeof meta>
|
|
26
|
+
|
|
27
|
+
const SimpleFormTemplate: Story = {
|
|
28
|
+
render: () => {
|
|
29
|
+
return (
|
|
30
|
+
<ElementHolder paddingTop="md" paddingBottom="md" pillar="business" level="light">
|
|
31
|
+
<SimpleForm
|
|
32
|
+
spacingTop="sm"
|
|
33
|
+
formTitle={'Send us a message'}
|
|
34
|
+
formText={'We appreciate you taking the time to get in touch. We’ll get back to you within the next day.'}
|
|
35
|
+
children={
|
|
36
|
+
<>
|
|
37
|
+
<FormFieldHolder extraClass="" label={'Name*'} labelClass="mb-16">
|
|
38
|
+
<TextField required/>
|
|
39
|
+
</FormFieldHolder>
|
|
40
|
+
<FormFieldHolder label={'Email*'}><EmailField required/></FormFieldHolder>
|
|
41
|
+
<FormFieldHolder label={'Phone number'}><TextField /></FormFieldHolder>
|
|
42
|
+
<FormFieldHolder label={'Your message'}><Textarea /></FormFieldHolder>
|
|
43
|
+
<Checkbox label={"I’d love to receive updates about events and happenings in Selwyn."} />
|
|
44
|
+
</>
|
|
45
|
+
}
|
|
46
|
+
callToAction={<Button label="SUBMIT" pillar="business" secondaryIcon={<ArrowRight />} />}
|
|
47
|
+
/>
|
|
48
|
+
</ElementHolder>
|
|
49
|
+
)
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export const SimpleFormComponent = {
|
|
54
|
+
...SimpleFormTemplate
|
|
55
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import cx from 'classnames';
|
|
2
|
+
import { Container } from "../../Shared";
|
|
3
|
+
import SimpleFormProps from "./SimpleFormProps";
|
|
4
|
+
import SimpleFormBgDesign from "./simple-form-bg-design";
|
|
5
|
+
import styles from "./simpleForm.module.scss"
|
|
6
|
+
import cslx from "clsx";
|
|
7
|
+
|
|
8
|
+
const SimpleForm = (props: SimpleFormProps) => {
|
|
9
|
+
const {
|
|
10
|
+
formTitle,
|
|
11
|
+
formText,
|
|
12
|
+
extraClass,
|
|
13
|
+
children,
|
|
14
|
+
callToAction,
|
|
15
|
+
spacingTop = 'sm',
|
|
16
|
+
} = props
|
|
17
|
+
|
|
18
|
+
const classes = [
|
|
19
|
+
"button"
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
const className = cslx (
|
|
23
|
+
styles.simpleFormBlock,
|
|
24
|
+
`${extraClass}`,
|
|
25
|
+
{
|
|
26
|
+
[styles[`spacingTop--pt-${spacingTop}`]]: spacingTop
|
|
27
|
+
}
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
if (extraClass) {
|
|
31
|
+
classes.push(extraClass)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return (
|
|
35
|
+
<div className={className}>
|
|
36
|
+
<Container type='simpleForm'>
|
|
37
|
+
<div className={styles.simpleFormBlockWrapper}>
|
|
38
|
+
<h1>{formTitle}</h1>
|
|
39
|
+
<h2>{formText}</h2>
|
|
40
|
+
|
|
41
|
+
<div className={`${styles.simpleFormBgDesignContainer} `}>
|
|
42
|
+
<SimpleFormBgDesign/>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<div className={styles.simpleFormInputsWrapper}>
|
|
46
|
+
{children}
|
|
47
|
+
|
|
48
|
+
<div className={cx(
|
|
49
|
+
styles.simpleFormButtonWrapper,
|
|
50
|
+
extraClass,
|
|
51
|
+
"button"
|
|
52
|
+
)}>
|
|
53
|
+
{callToAction}
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
|
|
58
|
+
</Container>
|
|
59
|
+
</div>
|
|
60
|
+
)
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export default SimpleForm;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
|
|
3
|
+
interface SimpleFormProps {
|
|
4
|
+
formTitle?: string
|
|
5
|
+
formText?: string
|
|
6
|
+
extraClass?: string
|
|
7
|
+
children?: ReactNode
|
|
8
|
+
callToAction?: ReactNode
|
|
9
|
+
spacingTop?: "none" | "xsm" | "sm" | "md" | "lg";
|
|
10
|
+
spacingBottom?: "none" | "xsm" | "sm" | "md" | "lg" | "xl";
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default SimpleFormProps;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const SimpleFormBgDesign = () => {
|
|
2
|
+
return (
|
|
3
|
+
<svg width="787" height="361" viewBox="0 0 787 361" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4
|
+
<g opacity="0.05">
|
|
5
|
+
<path opacity="0.5" d="M0 120.333C66.601 120.333 120.606 169.838 120.606 230.889H0V120.333Z" fill="currentColor" />
|
|
6
|
+
<path opacity="0.25" d="M251.772 120.333C185.171 120.333 131.166 169.838 131.166 230.889H251.772V120.333Z" fill="currentColor" />
|
|
7
|
+
<path opacity="0.5" d="M776.44 230.889C709.839 230.889 655.834 181.384 655.834 120.333H776.44V230.889Z" fill="currentColor" />
|
|
8
|
+
<path opacity="0.75" d="M131.166 240.667C197.767 240.667 251.772 290.171 251.772 351.222H131.166V240.667Z" fill="currentColor" />
|
|
9
|
+
<path opacity="0.5" d="M262.334 351.222C328.935 351.222 382.94 301.717 382.94 240.667H262.334V351.222Z" fill="currentColor" />
|
|
10
|
+
<path opacity="0.25" d="M514.105 351.222C447.504 351.222 393.499 301.718 393.499 240.667H514.105V351.222Z" fill="currentColor" />
|
|
11
|
+
<path opacity="0.75" d="M645.273 240.667C578.672 240.667 524.667 290.171 524.667 351.222H645.273V240.667Z" fill="currentColor" />
|
|
12
|
+
<path opacity="0.25" d="M524.666 4.88878C591.267 4.88878 645.272 54.3934 645.272 115.444H524.666V4.88878Z" fill="currentColor" />
|
|
13
|
+
<path opacity="0.5" d="M393.499 230.889C460.1 230.889 514.105 181.384 514.105 120.333H393.499V230.889Z" fill="currentColor" />
|
|
14
|
+
<path opacity="0.75" d="M262.334 110.556C328.935 110.556 382.94 61.0509 382.94 0H262.334V110.556Z" fill="currentColor" />
|
|
15
|
+
</g>
|
|
16
|
+
</svg>
|
|
17
|
+
|
|
18
|
+
)
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export default SimpleFormBgDesign;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
.simpleFormBlock {
|
|
2
|
+
font-family: var(--font);
|
|
3
|
+
|
|
4
|
+
.simpleFormBlockWrapper {
|
|
5
|
+
max-width: 910px;
|
|
6
|
+
|
|
7
|
+
h1 {
|
|
8
|
+
font-size: var(--font-size-h4);
|
|
9
|
+
font-weight: var(--font-weight-h4);
|
|
10
|
+
line-height: var(--line-height-h4);
|
|
11
|
+
letter-spacing: -1.92px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
h2 {
|
|
15
|
+
padding: 60px 0;
|
|
16
|
+
font-size: 28px;
|
|
17
|
+
font-weight: var(--font-weight-h4);
|
|
18
|
+
line-height: var(--line-height-h6);
|
|
19
|
+
letter-spacing: -0.56px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
.simpleFormInputsWrapper {
|
|
24
|
+
.simpleFormButtonWrapper {
|
|
25
|
+
button {
|
|
26
|
+
color: var(--color-sand);
|
|
27
|
+
margin-top: 64px;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.simpleFormBgDesignContainer {
|
|
35
|
+
display: block;
|
|
36
|
+
position: absolute;
|
|
37
|
+
color: var(--color-block-text);
|
|
38
|
+
right: -240px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.spacingTop--pt-none {
|
|
42
|
+
.simpleFormBgDesignContainer {
|
|
43
|
+
top: 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&.spacingTop--pt-xsm {
|
|
48
|
+
.simpleFormBgDesignContainer {
|
|
49
|
+
top: -72px;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&.spacingTop--pt-sm {
|
|
54
|
+
.simpleFormBgDesignContainer {
|
|
55
|
+
top: -90px;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&.spacingTop--pt-md {
|
|
60
|
+
.simpleFormBgDesignContainer {
|
|
61
|
+
top: -120px;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&.spacingTop--pt-lg {
|
|
66
|
+
.simpleFormBgDesignContainer {
|
|
67
|
+
top: -144px;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
|
|
3
|
+
import TextField from "./TextField.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 / TextField",
|
|
8
|
+
component: TextField,
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: "centered",
|
|
11
|
+
},
|
|
12
|
+
tags: ["autodocs"],
|
|
13
|
+
} satisfies Meta<typeof TextField>;
|
|
14
|
+
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof TextField>;
|
|
17
|
+
|
|
18
|
+
export const Example: Story = {
|
|
19
|
+
args: {
|
|
20
|
+
placeholder: "Placeholder",
|
|
21
|
+
},
|
|
22
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import cx from "classnames";
|
|
2
|
+
import styles from "../inputs.module.scss";
|
|
3
|
+
import TextFieldProps from "./TextFieldProps";
|
|
4
|
+
import LoadingInput from "../LoadingInput/LoadingInput";
|
|
5
|
+
|
|
6
|
+
const TextField = (props: TextFieldProps) => {
|
|
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
|
+
icon,
|
|
20
|
+
loading,
|
|
21
|
+
...args
|
|
22
|
+
} = props;
|
|
23
|
+
|
|
24
|
+
const classes = [styles.input];
|
|
25
|
+
if (error) {
|
|
26
|
+
classes.push(styles.error);
|
|
27
|
+
}
|
|
28
|
+
if (extraClass) {
|
|
29
|
+
classes.push(extraClass);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
return (
|
|
34
|
+
<div className={`${icon ? styles.textField : ""} ${loading ? styles.fieldLoading : ""}`}>
|
|
35
|
+
<div className={styles.field}>
|
|
36
|
+
{loading && <LoadingInput />}
|
|
37
|
+
<input
|
|
38
|
+
className={cx(classes)}
|
|
39
|
+
id={id}
|
|
40
|
+
name={name}
|
|
41
|
+
type="text"
|
|
42
|
+
value={value}
|
|
43
|
+
placeholder={placeholder}
|
|
44
|
+
disabled={disabled}
|
|
45
|
+
readOnly={readonly}
|
|
46
|
+
required={required}
|
|
47
|
+
autoComplete={autoComplete ? "on" : "off"}
|
|
48
|
+
aria-label={ariaLabel ? ariaLabel : name}
|
|
49
|
+
aria-required={required ? "true" : "false"}
|
|
50
|
+
aria-invalid={error ? "true" : "false"}
|
|
51
|
+
aria-disabled={disabled ? "true" : "false"}
|
|
52
|
+
aria-readonly={readonly ? "true" : "false"}
|
|
53
|
+
aria-autocomplete={autoComplete ? "list" : "none"}
|
|
54
|
+
{...args}
|
|
55
|
+
/>
|
|
56
|
+
</div>
|
|
57
|
+
{!!icon && <div className={styles.textFieldIcon}>{icon}</div>}
|
|
58
|
+
</div>
|
|
59
|
+
);
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export default TextField;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
|
|
3
|
+
import Textarea from './Textarea.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 / Textarea',
|
|
8
|
+
component: Textarea,
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: 'centered',
|
|
11
|
+
},
|
|
12
|
+
tags: ['autodocs'],
|
|
13
|
+
} satisfies Meta<typeof Textarea>;
|
|
14
|
+
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof Textarea>;
|
|
17
|
+
|
|
18
|
+
export const Example:Story = {
|
|
19
|
+
args: {
|
|
20
|
+
placeholder: 'Placeholder'
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const MaxLength:Story = {
|
|
25
|
+
args: {
|
|
26
|
+
placeholder: 'Placeholder',
|
|
27
|
+
maxLength: 500,
|
|
28
|
+
displayChars: true
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import React, {useState} from "react";
|
|
2
|
+
import cx from 'classnames';
|
|
3
|
+
import TextareaProps from "./TextareaProps";
|
|
4
|
+
import styles from './textarea.module.scss';
|
|
5
|
+
import LoadingInput from "../LoadingInput/LoadingInput.tsx";
|
|
6
|
+
|
|
7
|
+
const Textarea = (props: TextareaProps) => {
|
|
8
|
+
const {
|
|
9
|
+
name,
|
|
10
|
+
id,
|
|
11
|
+
value,
|
|
12
|
+
placeholder,
|
|
13
|
+
extraClass,
|
|
14
|
+
disabled,
|
|
15
|
+
error,
|
|
16
|
+
ariaLabel,
|
|
17
|
+
required,
|
|
18
|
+
readonly,
|
|
19
|
+
autoComplete,
|
|
20
|
+
rows,
|
|
21
|
+
displayChars,
|
|
22
|
+
maxLength,
|
|
23
|
+
onChange,
|
|
24
|
+
loading,
|
|
25
|
+
...args
|
|
26
|
+
} = props;
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
const [text, setText] = useState('');
|
|
30
|
+
|
|
31
|
+
const handleChange = (e: React.ChangeEvent<HTMLTextAreaElement>) => {
|
|
32
|
+
setText(e.target?.value);
|
|
33
|
+
if (onChange) {
|
|
34
|
+
onChange(e);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const classes = [styles.textarea];
|
|
39
|
+
if (error) {
|
|
40
|
+
classes.push(styles.error);
|
|
41
|
+
}
|
|
42
|
+
if (extraClass) {
|
|
43
|
+
classes.push(extraClass);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return <div className={styles.field}>
|
|
47
|
+
{loading && <LoadingInput />}
|
|
48
|
+
<textarea
|
|
49
|
+
className={cx(classes)}
|
|
50
|
+
id={id}
|
|
51
|
+
name={name}
|
|
52
|
+
value={value}
|
|
53
|
+
placeholder={placeholder}
|
|
54
|
+
rows={rows}
|
|
55
|
+
onChange={handleChange}
|
|
56
|
+
disabled={disabled}
|
|
57
|
+
readOnly={readonly}
|
|
58
|
+
required={required}
|
|
59
|
+
autoComplete={autoComplete ? "on" : "off"}
|
|
60
|
+
aria-label={ariaLabel ? ariaLabel : name}
|
|
61
|
+
aria-required={required ? "true" : "false"}
|
|
62
|
+
aria-invalid={error ? "true" : "false"}
|
|
63
|
+
aria-disabled={disabled ? "true" : "false"}
|
|
64
|
+
aria-readonly={readonly ? "true" : "false"}
|
|
65
|
+
aria-autocomplete={autoComplete ? "list" : "none"}
|
|
66
|
+
{...args}
|
|
67
|
+
/>
|
|
68
|
+
{!!displayChars && <p className={styles.length}>
|
|
69
|
+
{text.length} / {maxLength}
|
|
70
|
+
</p>}
|
|
71
|
+
</div>
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export default Textarea;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {FocusEvent, MouseEvent, ChangeEvent} from 'react'
|
|
2
|
+
|
|
3
|
+
interface TextareaProps {
|
|
4
|
+
name?: string;
|
|
5
|
+
id?: string;
|
|
6
|
+
value?: string;
|
|
7
|
+
extraClass?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
error?: boolean;
|
|
10
|
+
disabled?:boolean;
|
|
11
|
+
readonly?: boolean;
|
|
12
|
+
autoComplete?: boolean;
|
|
13
|
+
minLength?: number;
|
|
14
|
+
maxLength?: number;
|
|
15
|
+
required?: boolean;
|
|
16
|
+
ariaLabel?: string;
|
|
17
|
+
ariaLabeledby?: string;
|
|
18
|
+
ariaDescribedby?: string;
|
|
19
|
+
rows?: number,
|
|
20
|
+
displayChars?: boolean,
|
|
21
|
+
onClick?: (e: MouseEvent) => void;
|
|
22
|
+
onChange?: (e: ChangeEvent<HTMLTextAreaElement>) => void;
|
|
23
|
+
onFocus?: (e: FocusEvent) => void;
|
|
24
|
+
onBlur?: (e: FocusEvent) => void;
|
|
25
|
+
loading?:boolean;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export default TextareaProps;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
.textarea {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
border: 1px solid var(--form-field-border);
|
|
4
|
+
border-radius: 6px;
|
|
5
|
+
resize: none;
|
|
6
|
+
padding: 12px;
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 162px;
|
|
9
|
+
font-family: var(--font);
|
|
10
|
+
font-size: var(--font-size-label);
|
|
11
|
+
line-height: var(--line-height-h3);
|
|
12
|
+
font-weight: var(--font-weight-h3);
|
|
13
|
+
|
|
14
|
+
&::placeholder {
|
|
15
|
+
font-family: var(--font);
|
|
16
|
+
color: var(--form-field-placeholder-text);
|
|
17
|
+
font-size: var(--font-size-label);
|
|
18
|
+
line-height: var(--line-height-h3);
|
|
19
|
+
font-weight: var(--font-weight-h3);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:focus {
|
|
23
|
+
outline: none;
|
|
24
|
+
border: 2px solid var(--color-text);
|
|
25
|
+
color: var(--form-field-focus-text);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:disabled {
|
|
29
|
+
cursor: not-allowed;
|
|
30
|
+
opacity: 0.3;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.error {
|
|
34
|
+
border: 1px solid var(--color-error);
|
|
35
|
+
background: var(--color-error-lite);
|
|
36
|
+
|
|
37
|
+
&:focus {
|
|
38
|
+
border: 2px solid var(--color-error);
|
|
39
|
+
background: #ffffff;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.length {
|
|
45
|
+
display: flex;
|
|
46
|
+
justify-content: flex-end;
|
|
47
|
+
font-size: 12px;
|
|
48
|
+
}
|