@hellobetterdigitalnz/selwynui 0.0.1-8 → 0.0.1-80
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 +10 -1
- package/src/Components/DataDisplay/Accordion/Accordion.stories.tsx +9 -17
- package/src/Components/DataDisplay/Accordion/Accordion.tsx +29 -26
- 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 +94 -42
- 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 +10 -9
- 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 +8 -8
- 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 +70 -54
- package/src/Components/DataDisplay/TestimonyCard/testimonyCard.module.scss +139 -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/CheckboxSelect/CheckboxSelect.tsx +5 -0
- package/src/Components/Form/CheckboxSelect/CheckboxSelectItem.tsx +5 -0
- package/src/Components/Form/CheckboxSet/CheckboxSet.stories.tsx +100 -0
- package/src/Components/Form/CheckboxSet/CheckboxSet.tsx +14 -0
- package/src/Components/Form/CheckboxSet/CheckboxSetItem.tsx +109 -0
- package/src/Components/Form/CheckboxSet/CheckboxSetProps.tsx +9 -0
- package/src/Components/Form/CheckboxSet/checkboxSet.module.scss +19 -0
- package/src/Components/Form/CurrencyField/CurrencyField.stories.tsx +23 -0
- package/src/Components/Form/CurrencyField/CurrencyField.tsx +105 -0
- package/src/Components/Form/CurrencyField/CurrencyFieldProps.tsx +10 -0
- package/src/Components/Form/DateField/DateField.stories.tsx +22 -0
- package/src/Components/Form/DateField/DateField.tsx +61 -0
- package/src/Components/Form/DropdownBadge/DropdownBadge.stories.tsx +54 -0
- package/src/Components/Form/DropdownBadge/DropdownBadge.tsx +303 -0
- package/src/Components/Form/DropdownBadge/DropdownBadgeItem.tsx +54 -0
- package/src/Components/Form/DropdownBadge/DropdownBadgeItemProps.tsx +11 -0
- package/src/Components/Form/DropdownBadge/DropdownBadgeProps.tsx +34 -0
- package/src/Components/Form/DropdownBadge/DropdownBadgeSelector.tsx +17 -0
- package/src/Components/Form/DropdownBadge/DropdownBadgeSelectorProps.tsx +10 -0
- package/src/Components/Form/DropdownBadge/dropdownBadge.module.scss +195 -0
- package/src/Components/Form/DropdownField/CountryDropdownField/CountryDropdownField.stories.tsx +36 -0
- package/src/Components/Form/DropdownField/CountryDropdownField/CountryDropdownField.tsx +426 -0
- package/src/Components/Form/DropdownField/CountryDropdownField/CountryDropdownFieldProps.tsx +30 -0
- package/src/Components/Form/DropdownField/DropdownField.stories.tsx +55 -0
- package/src/Components/Form/DropdownField/DropdownField.tsx +245 -0
- package/src/Components/Form/DropdownField/DropdownFieldItem.tsx +33 -0
- package/src/Components/Form/DropdownField/DropdownFieldItemProps.tsx +10 -0
- package/src/Components/Form/DropdownField/DropdownFieldProps.tsx +39 -0
- package/src/Components/Form/DropdownField/DropdownFieldSelector.tsx +23 -0
- package/src/Components/Form/DropdownField/DropdownFieldSelectorProps.tsx +8 -0
- package/src/Components/Form/DropdownField/dropdown.module.scss +144 -0
- package/src/Components/Form/EmailField/EmailField.stories.ts +23 -0
- package/src/Components/Form/EmailField/EmailField.tsx +56 -0
- package/src/Components/Form/ErrorMessage/ErrorMessage.tsx +5 -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/IconButton/IconButton.stories.tsx +45 -0
- package/src/Components/Form/IconButton/IconButton.tsx +65 -0
- package/src/Components/Form/IconButton/IconButtonProps.tsx +16 -0
- package/src/Components/Form/IconButton/iconButton.module.scss +157 -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/MicroForm/MicroForm.stories.tsx +28 -0
- package/src/Components/Form/MicroForm/MicroForm.tsx +22 -0
- package/src/Components/Form/MicroForm/MicroFormProps.tsx +12 -0
- package/src/Components/Form/MicroForm/microForm.module.scss +64 -0
- package/src/Components/Form/MultiSelectField/MultiSelectField.stories.tsx +39 -0
- package/src/Components/Form/MultiSelectField/MultiSelectField.tsx +439 -0
- package/src/Components/Form/MultiSelectField/MultiSelectFieldItem.tsx +36 -0
- package/src/Components/Form/MultiSelectField/MultiSelectFieldItemProps.tsx +12 -0
- package/src/Components/Form/MultiSelectField/MultiSelectFieldProps.tsx +36 -0
- package/src/Components/Form/MultiSelectField/MultiSelectFieldTag.tsx +24 -0
- package/src/Components/Form/MultiSelectField/MultiSelectFieldTagProps.tsx +6 -0
- package/src/Components/Form/MultiSelectField/multiSelectField.module.scss +205 -0
- package/src/Components/Form/NumberField/NumberField.stories.ts +23 -0
- package/src/Components/Form/NumberField/NumberField.tsx +137 -0
- package/src/Components/Form/NumberField/NumberFieldProps.tsx +10 -0
- package/src/Components/Form/PasswordField/PasswordField.stories.tsx +22 -0
- package/src/Components/Form/PasswordField/PasswordField.tsx +73 -0
- package/src/Components/Form/PhoneField/PhoneField.stories.ts +21 -0
- package/src/Components/Form/PhoneField/PhoneField.tsx +55 -0
- package/src/Components/Form/RadioButtons/RadioButton.tsx +100 -0
- package/src/Components/Form/RadioButtons/RadioButtonProps.tsx +25 -0
- package/src/Components/Form/RadioButtons/RadioButtons.stories.tsx +92 -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 +188 -0
- package/src/Components/Form/RichTextEditor/RichTextEditor.stories.ts +41 -0
- package/src/Components/Form/RichTextEditor/RichTextEditor.tsx +115 -0
- package/src/Components/Form/RichTextEditor/RichTextEditorProps.tsx +25 -0
- package/src/Components/Form/RichTextEditor/richTextEditor.module.scss +10 -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/TimeField/TimeField.stories.tsx +22 -0
- package/src/Components/Form/TimeField/TimeField.tsx +58 -0
- package/src/Components/Form/ToggleSwitch/ToggleSwitch.stories.tsx +50 -0
- package/src/Components/Form/ToggleSwitch/ToggleSwitch.tsx +87 -0
- package/src/Components/Form/ToggleSwitch/ToggleSwitchProps.tsx +22 -0
- package/src/Components/Form/ToggleSwitch/toggleSwitch.module.scss +84 -0
- package/src/Components/Form/TypableDropdownField/TypableDropdownField.stories.tsx +55 -0
- package/src/Components/Form/TypableDropdownField/TypableDropdownField.tsx +313 -0
- package/src/Components/Form/TypableDropdownField/TypableDropdownFieldItem.tsx +27 -0
- package/src/Components/Form/TypableDropdownField/TypableDropdownFieldItemProps.tsx +9 -0
- package/src/Components/Form/TypableDropdownField/TypableDropdownFieldProps.tsx +38 -0
- package/src/Components/Form/TypableDropdownField/TypableDropdownFieldSelector.tsx +16 -0
- package/src/Components/Form/TypableDropdownField/TypableDropdownFieldSelectorProps.tsx +8 -0
- package/src/Components/Form/TypableDropdownField/typableDropdown.module.scss +185 -0
- package/src/Components/Form/UnitInput/UnitField.stories.ts +22 -0
- package/src/Components/Form/UnitInput/UnitField.tsx +129 -0
- package/src/Components/Form/UnitInput/UnitFieldProps.tsx +9 -0
- package/src/Components/Form/index.ts +42 -1
- 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.stories.tsx +5 -7
- package/src/Components/Layout/Footer/Footer.tsx +1 -2
- package/src/Components/Layout/Footer/FooterBottom.tsx +83 -10
- package/src/Components/Layout/Footer/FooterBottomLeft.tsx +36 -1
- package/src/Components/Layout/Footer/FooterBottomLeftProps.tsx +4 -0
- package/src/Components/Layout/Footer/FooterBottomProps.tsx +13 -0
- package/src/Components/Layout/Footer/FooterMiddle.tsx +0 -4
- package/src/Components/Layout/Footer/FooterProps.tsx +1 -1
- package/src/Components/Layout/Footer/FooterTop.tsx +2 -2
- package/src/Components/Layout/Footer/footer.module.scss +211 -123
- package/src/Components/Layout/Header/Header.stories.tsx +8 -6
- 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/MobileNavigationItem.tsx +7 -3
- package/src/Components/Layout/Header/MobileNavigation/MobileNavigationItemProps.tsx +3 -0
- package/src/Components/Layout/Header/MobileNavigation/MobileNavigationProps.tsx +1 -0
- package/src/Components/Layout/Header/MobileNavigation/MobileSubNavigation/MobileSubNavigation.tsx +10 -5
- package/src/Components/Layout/Header/MobileNavigation/MobileSubNavigation/MobileSubNavigationItem.tsx +8 -9
- package/src/Components/Layout/Header/MobileNavigation/MobileSubNavigation/MobileSubNavigationItemProps.tsx +2 -2
- package/src/Components/Layout/Header/MobileNavigation/MobileSubNavigation/MobileSubNavigationProps.tsx +1 -0
- package/src/Components/Layout/Header/MobileNavigation/mobileNavigation.module.scss +14 -1
- package/src/Components/Layout/Header/header.module.scss +17 -19
- package/src/Components/Layout/Header/header.scss +8 -0
- 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 +19 -9
- package/src/Components/Shared/Container/ContainerProps.tsx +7 -2
- package/src/Components/Shared/Container/container.module.scss +59 -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 +14 -5
- 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,77 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import type {Meta, StoryObj} from "@storybook/react-vite";
|
|
3
|
+
import CarouselBlock from "./CarouselBlock";
|
|
4
|
+
import ElementHolder from "../../Shared/ElementHolder/ElementHolder";
|
|
5
|
+
|
|
6
|
+
const meta : Meta<typeof CarouselBlock> = {
|
|
7
|
+
title: "Form / CarouselBlock",
|
|
8
|
+
component: CarouselBlock,
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof CarouselBlock>
|
|
13
|
+
|
|
14
|
+
const CarouselTemplate: Story = {
|
|
15
|
+
render : () =>{
|
|
16
|
+
|
|
17
|
+
return <ElementHolder paddingTop="sm" paddingBottom="sm" pillar="participate" level="light">
|
|
18
|
+
<CarouselBlock
|
|
19
|
+
title={'What’s On'}
|
|
20
|
+
cards={[
|
|
21
|
+
{
|
|
22
|
+
title: "Lorem ipsum",
|
|
23
|
+
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt",
|
|
24
|
+
image: "https://images.pexels.com/photos/1854897/pexels-photo-1854897.jpeg",
|
|
25
|
+
pillar: 'participate',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
title: "Lorem ipsum",
|
|
29
|
+
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt",
|
|
30
|
+
image: "https://images.pexels.com/photos/1595655/pexels-photo-1595655.jpeg",
|
|
31
|
+
pillar: 'participate',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
title: "Lorem ipsum",
|
|
35
|
+
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit",
|
|
36
|
+
image: "https://images.pexels.com/photos/3184291/pexels-photo-3184291.jpeg",
|
|
37
|
+
pillar: 'participate',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
title: "Lorem ipsum",
|
|
41
|
+
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit",
|
|
42
|
+
image: "https://images.pexels.com/photos/3184291/pexels-photo-3184291.jpeg",
|
|
43
|
+
pillar: 'participate',
|
|
44
|
+
},{
|
|
45
|
+
title: "Lorem ipsum",
|
|
46
|
+
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt",
|
|
47
|
+
image: "https://images.pexels.com/photos/1854897/pexels-photo-1854897.jpeg",
|
|
48
|
+
pillar: 'participate',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
title: "Lorem ipsum",
|
|
52
|
+
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt",
|
|
53
|
+
image: "https://images.pexels.com/photos/1595655/pexels-photo-1595655.jpeg",
|
|
54
|
+
pillar: 'participate',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
title: "Lorem ipsum",
|
|
58
|
+
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit",
|
|
59
|
+
image: "https://images.pexels.com/photos/3184291/pexels-photo-3184291.jpeg",
|
|
60
|
+
pillar: 'participate',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
title: "Lorem ipsum",
|
|
64
|
+
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit",
|
|
65
|
+
image: "https://images.pexels.com/photos/3184291/pexels-photo-3184291.jpeg",
|
|
66
|
+
pillar: 'participate',
|
|
67
|
+
}
|
|
68
|
+
]}
|
|
69
|
+
/>
|
|
70
|
+
</ElementHolder>
|
|
71
|
+
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export const CarouselView = {
|
|
76
|
+
...CarouselTemplate,
|
|
77
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import styles from './carouselBlock.module.scss';
|
|
2
|
+
import Slider from "react-slick";
|
|
3
|
+
import CarouselBlockProps from "./CarouselBlockProps.tsx";
|
|
4
|
+
import DetailsCard from "../DetailsCard/DetailsCard.tsx";
|
|
5
|
+
import Container from "../../Shared/Container/Container.tsx";
|
|
6
|
+
import '../slider.scss'
|
|
7
|
+
import {CaretLeft, CaretRight} from "@hellobetterdigitalnz/selwynui";
|
|
8
|
+
import {useRef} from "react";
|
|
9
|
+
|
|
10
|
+
const CarouselBlock = (props : CarouselBlockProps) =>{
|
|
11
|
+
|
|
12
|
+
const { title , cards = [], action } = props
|
|
13
|
+
const sliderRef = useRef<any>(null);
|
|
14
|
+
|
|
15
|
+
const settings = {
|
|
16
|
+
dots: false,
|
|
17
|
+
arrows: false,
|
|
18
|
+
infinite: false,
|
|
19
|
+
speed: 500,
|
|
20
|
+
touchMove: true,
|
|
21
|
+
variableWidth: true,
|
|
22
|
+
slidesToShow: 1,
|
|
23
|
+
slidesToScroll: 1,
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
return <div className={`${styles.carousel} carouselBlock`}>
|
|
27
|
+
<Container>
|
|
28
|
+
<div className={styles.carouselWrapper}>
|
|
29
|
+
<div className={styles.carouselTitle}>
|
|
30
|
+
<h3>{title}</h3>
|
|
31
|
+
<div className={styles.actions}>
|
|
32
|
+
<button
|
|
33
|
+
className="custom-arrow prev"
|
|
34
|
+
onClick={() => sliderRef.current?.slickPrev()}
|
|
35
|
+
aria-label="Previous"
|
|
36
|
+
>
|
|
37
|
+
<CaretLeft type="thin" />
|
|
38
|
+
</button>
|
|
39
|
+
|
|
40
|
+
<button
|
|
41
|
+
className="custom-arrow next"
|
|
42
|
+
onClick={() => sliderRef.current?.slickNext()}
|
|
43
|
+
aria-label="Next"
|
|
44
|
+
>
|
|
45
|
+
<CaretRight type="thin" />
|
|
46
|
+
</button>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
<Slider ref={sliderRef} {...settings}>
|
|
50
|
+
{cards.map((card, index) => (
|
|
51
|
+
<div className={styles.card}>
|
|
52
|
+
<DetailsCard
|
|
53
|
+
key={index}
|
|
54
|
+
title={card.title}
|
|
55
|
+
date={card.date}
|
|
56
|
+
description={card.description}
|
|
57
|
+
image={card.image}
|
|
58
|
+
link={card.link}
|
|
59
|
+
pillar={card.pillar}
|
|
60
|
+
variation={'long'}
|
|
61
|
+
/>
|
|
62
|
+
</div>
|
|
63
|
+
))}
|
|
64
|
+
</Slider>
|
|
65
|
+
<div className={styles.btn}>
|
|
66
|
+
{action}
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
</Container>
|
|
70
|
+
</div>
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export default CarouselBlock;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {ReactNode} from "react";
|
|
2
|
+
|
|
3
|
+
export interface SlideItem {
|
|
4
|
+
title?: string;
|
|
5
|
+
date?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
image?: string;
|
|
8
|
+
link?: {
|
|
9
|
+
title?: string
|
|
10
|
+
href?: string
|
|
11
|
+
target?: "_blank" | "_self" | "_parent" | "_top"
|
|
12
|
+
rel?: string
|
|
13
|
+
} | undefined;
|
|
14
|
+
pillar?: 'visit' | 'live' | 'business' | 'participate' | 'taste'
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface CarouselBlockProps {
|
|
18
|
+
title?: string;
|
|
19
|
+
action?:ReactNode;
|
|
20
|
+
cards?: SlideItem[];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default CarouselBlockProps;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
.carousel{
|
|
2
|
+
.carouselWrapper{
|
|
3
|
+
width: 100%;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.carouselTitle{
|
|
7
|
+
margin: -12px;
|
|
8
|
+
margin-bottom: 70px;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-wrap: wrap;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
align-items: center;
|
|
13
|
+
|
|
14
|
+
h3{
|
|
15
|
+
font-size: 36px;
|
|
16
|
+
line-height: 1;
|
|
17
|
+
font-weight: 700;
|
|
18
|
+
padding: 12px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.actions{
|
|
22
|
+
padding: 12px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
@media screen and (min-width: 992px) {
|
|
27
|
+
margin-bottom: 84px;
|
|
28
|
+
|
|
29
|
+
h3{
|
|
30
|
+
font-size: var(--font-size-h3);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.card{
|
|
38
|
+
width: 312px !important;
|
|
39
|
+
margin-right: 16px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.btn{
|
|
43
|
+
margin-top: 36px;
|
|
44
|
+
display: flex;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@media screen and (min-width: 992px) {
|
|
48
|
+
|
|
49
|
+
.card {
|
|
50
|
+
width: 456px !important;
|
|
51
|
+
margin-right: 24px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
.btn{
|
|
56
|
+
margin-top: 72px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import React from "react"
|
|
3
|
+
import { Meta, StoryObj } from "@storybook/react-vite";
|
|
4
|
+
import ChatItineraryBlock from "./ChatItenaryBlock";
|
|
5
|
+
import { ElementHolder } from "../../Shared";
|
|
6
|
+
import { Itinerary } from "./ChatItenaryBlockProps";
|
|
7
|
+
|
|
8
|
+
const meta: Meta = {
|
|
9
|
+
title: "Layout / ChatItineraryBlock",
|
|
10
|
+
component: ChatItineraryBlock,
|
|
11
|
+
parameters: {
|
|
12
|
+
layout: 'fullscreen',
|
|
13
|
+
},
|
|
14
|
+
tags: ["autodocs"]
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export default meta;
|
|
18
|
+
|
|
19
|
+
type Story = StoryObj<typeof meta>;
|
|
20
|
+
|
|
21
|
+
// Mock itinerary data
|
|
22
|
+
const mockItinerary: Itinerary = {
|
|
23
|
+
title: "Selwyn 2 Day Trip",
|
|
24
|
+
intro: "Hey there! Ready to plan an adventure that beats the Christchurch chill? Let's make your next trip unforgettable!",
|
|
25
|
+
recommendation: "Nice choice! Selwyn is a beautiful spot with plenty of nature to soak in, great dining options, and perfect for some relaxation.",
|
|
26
|
+
itineraryHeader: {
|
|
27
|
+
title: "2-Day Great Alpine Highway Adventure",
|
|
28
|
+
description: "Explore the Great Alpine Highway. Travel across the Canterbury Plains, past stunning alpine vistas, lakes and rivers into Arthur's Pass National Park."
|
|
29
|
+
},
|
|
30
|
+
days: [
|
|
31
|
+
{
|
|
32
|
+
title: "Day 1 of 2",
|
|
33
|
+
subtitle: "Kirwee, Springfield, Porters",
|
|
34
|
+
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.",
|
|
35
|
+
activities: [
|
|
36
|
+
{
|
|
37
|
+
image: "https://images.pexels.com/photos/1591373/pexels-photo-1591373.jpeg",
|
|
38
|
+
title: "Check in at Porters Lodge for the night and enjoy a meal",
|
|
39
|
+
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.",
|
|
40
|
+
link: {
|
|
41
|
+
"title": "Learn More",
|
|
42
|
+
"href": "/",
|
|
43
|
+
"target": ""
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
image: "https://images.pexels.com/photos/1595655/pexels-photo-1595655.jpeg",
|
|
48
|
+
title: "Check out the Darfield Bakery",
|
|
49
|
+
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.",
|
|
50
|
+
link: {
|
|
51
|
+
"title": "Learn More",
|
|
52
|
+
"href": "/",
|
|
53
|
+
"target": ""
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
image: "https://images.pexels.com/photos/3184291/pexels-photo-3184291.jpeg",
|
|
58
|
+
title: "Get a birds eye view of Selwyn with Ballooning Canterbury",
|
|
59
|
+
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.",
|
|
60
|
+
link: {
|
|
61
|
+
"title": "Learn More",
|
|
62
|
+
"href": "/",
|
|
63
|
+
"target": ""
|
|
64
|
+
},
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
title: "Day 2 of 2",
|
|
70
|
+
subtitle: "Porters, Arthurs Pass",
|
|
71
|
+
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.",
|
|
72
|
+
activities: [
|
|
73
|
+
{
|
|
74
|
+
image: "https://images.pexels.com/photos/1181263/pexels-photo-1181263.jpeg",
|
|
75
|
+
title: "Stop by Lake Pearson, one of Selwyn's hidden gems",
|
|
76
|
+
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.",
|
|
77
|
+
link: {
|
|
78
|
+
"title": "Learn More",
|
|
79
|
+
"href": "/",
|
|
80
|
+
"target": ""
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
image: "https://images.pexels.com/photos/1578750/pexels-photo-1578750.jpeg",
|
|
85
|
+
title: "Walk to the Devils Punchbowl",
|
|
86
|
+
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.",
|
|
87
|
+
link: {
|
|
88
|
+
"title": "Learn More",
|
|
89
|
+
"href": "/",
|
|
90
|
+
"target": ""
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
image: "https://images.pexels.com/photos/1581384/pexels-photo-1581384.jpeg",
|
|
95
|
+
title: "Refresh at Arthur's Pass Cafe and Store",
|
|
96
|
+
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.",
|
|
97
|
+
link: {
|
|
98
|
+
"title": "Learn More",
|
|
99
|
+
"href": "/",
|
|
100
|
+
"target": ""
|
|
101
|
+
},
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
tags: ["FOOD & WINE", "LUXURY"]
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export const ChatItineraryBlockComponent: Story = {
|
|
110
|
+
render: () => {
|
|
111
|
+
// Mock API function that returns the itinerary
|
|
112
|
+
const handlePlanTrip = async (userInput: string): Promise<Itinerary> => {
|
|
113
|
+
// Simulate API delay
|
|
114
|
+
await new Promise(resolve => setTimeout(resolve, 1500));
|
|
115
|
+
|
|
116
|
+
// Return mock data
|
|
117
|
+
return mockItinerary;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
return (
|
|
121
|
+
<ElementHolder pillar={'visit'} level={'primary'}>
|
|
122
|
+
<ChatItineraryBlock
|
|
123
|
+
onPlanTrip={handlePlanTrip}
|
|
124
|
+
/>
|
|
125
|
+
</ElementHolder>
|
|
126
|
+
)
|
|
127
|
+
}
|
|
128
|
+
};
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import ChatItineraryBlockProps, { Itinerary } from "./ChatItenaryBlockProps.tsx";
|
|
3
|
+
import styles from './chatItenaryBlock.module.scss';
|
|
4
|
+
import Container from "../../Shared/Container/Container.tsx";
|
|
5
|
+
import HeaderRight from "../../Layout/Header/HeaderRight.tsx";
|
|
6
|
+
import HeaderRightItem from "../../Layout/Header/HeaderRightItem.tsx";
|
|
7
|
+
import Header from "../../Layout/Header/Header.tsx";
|
|
8
|
+
import {XIcon, PaperPlaneTilt, Paperclip, CaretLeft, CaretRight} from "../../Icons";
|
|
9
|
+
import Button from "../../Form/Button/Button.tsx";
|
|
10
|
+
import PathwayBlock from "../PathwayBlock/PathwayBlock.tsx";
|
|
11
|
+
import ArrowRight from "../../Icons/Arrows/ArrowRight/ArrowRight.tsx";
|
|
12
|
+
import LargeHeroIcon from "../../Layout/HeroBanner/LargeHeroIcon.tsx";
|
|
13
|
+
|
|
14
|
+
const ChatItineraryBlock = (props: ChatItineraryBlockProps) => {
|
|
15
|
+
const {
|
|
16
|
+
onPlanTrip,
|
|
17
|
+
initialItinerary
|
|
18
|
+
} = props;
|
|
19
|
+
|
|
20
|
+
const [isStarted, setIsStarted] = useState(!!initialItinerary);
|
|
21
|
+
const [userInput, setUserInput] = useState('');
|
|
22
|
+
const [itinerary, setItinerary] = useState<Itinerary | null>(initialItinerary || null);
|
|
23
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
24
|
+
|
|
25
|
+
const logo = (
|
|
26
|
+
<a href={"/"}>
|
|
27
|
+
<img src={'/img/waikirikiri-full-logo.svg'} width={190} height={60} alt={'Waikirikiri Selwyn'}/>
|
|
28
|
+
</a>
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
const logoSmall = (
|
|
32
|
+
<a href={"/"}>
|
|
33
|
+
<img src={'/img/waikirikiri-full-logo.svg'} width={110} height={45} alt={'Waikirikiri Selwyn'}/>
|
|
34
|
+
</a>
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
const handlePlanTrip = async () => {
|
|
38
|
+
if (userInput.trim() && onPlanTrip) {
|
|
39
|
+
setIsLoading(true);
|
|
40
|
+
|
|
41
|
+
try {
|
|
42
|
+
const result = await onPlanTrip(userInput);
|
|
43
|
+
setItinerary(result);
|
|
44
|
+
setIsStarted(true);
|
|
45
|
+
} catch (error) {
|
|
46
|
+
console.error('Error planning trip:', error);
|
|
47
|
+
} finally {
|
|
48
|
+
setIsLoading(false);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
if (!isStarted) {
|
|
54
|
+
return (
|
|
55
|
+
<div className={styles.mainContainer}>
|
|
56
|
+
<Header logo={logo} logoSmall={logoSmall}>
|
|
57
|
+
<HeaderRight>
|
|
58
|
+
<HeaderRightItem>
|
|
59
|
+
<XIcon/>
|
|
60
|
+
</HeaderRightItem>
|
|
61
|
+
</HeaderRight>
|
|
62
|
+
</Header>
|
|
63
|
+
|
|
64
|
+
<div className={`${styles.chatItineraryBlock} ${styles.hero}`}>
|
|
65
|
+
<div style={{backgroundImage: `url('https://images.pexels.com/photos/1563356/pexels-photo-1563356.jpeg')`}} className={styles.heroBackground}></div>
|
|
66
|
+
<Container border={false}>
|
|
67
|
+
<div className={styles.heroContent}>
|
|
68
|
+
<h1 className={styles.titleHeader}>
|
|
69
|
+
Kia ora, I’m your AI<br />
|
|
70
|
+
<span className={styles.highlight}>Selwyn trip planner.</span>
|
|
71
|
+
</h1>
|
|
72
|
+
<p className={styles.subtitle}>
|
|
73
|
+
Tell me what you love — nature, food, adventure, relaxation — and your budget. I'll design a personalised Selwyn itinerary just for you.
|
|
74
|
+
</p>
|
|
75
|
+
|
|
76
|
+
<div className={styles.inputWrapper}>
|
|
77
|
+
<div className={styles.inputBox}>
|
|
78
|
+
<textarea
|
|
79
|
+
value={userInput}
|
|
80
|
+
onChange={(e) => setUserInput(e.target.value)}
|
|
81
|
+
placeholder="I'd love to spend two nights in Selwyn, I love nature, dining out and relaxing."
|
|
82
|
+
rows={3}
|
|
83
|
+
disabled={isLoading}
|
|
84
|
+
/>
|
|
85
|
+
<div className={styles.inputActions}>
|
|
86
|
+
<button className={styles.attachButton} aria-label="Attach file" disabled={isLoading}>
|
|
87
|
+
<Paperclip type={'light'}/>
|
|
88
|
+
</button>
|
|
89
|
+
<div className={styles.planButton}>
|
|
90
|
+
<div className={styles.planButtonDesktop}>
|
|
91
|
+
<Button
|
|
92
|
+
label={isLoading ? 'PLANNING...' : 'PLAN MY TRIP'}
|
|
93
|
+
secondaryIcon={<PaperPlaneTilt type={'fill'}/>}
|
|
94
|
+
onClick={handlePlanTrip}
|
|
95
|
+
type={'button'}
|
|
96
|
+
size={'default'}
|
|
97
|
+
/>
|
|
98
|
+
</div>
|
|
99
|
+
<button className={styles.planButtonMobile} aria-label="Plan Trip" disabled={isLoading} onClick={handlePlanTrip}>
|
|
100
|
+
<PaperPlaneTilt type={'fill'}/>
|
|
101
|
+
</button>
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
</Container>
|
|
108
|
+
</div>
|
|
109
|
+
<div className={styles.heroSvg}>
|
|
110
|
+
<LargeHeroIcon/>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return (
|
|
117
|
+
<div className={styles.itineraryContainer}>
|
|
118
|
+
<Header logo={logo} logoSmall={logoSmall}>
|
|
119
|
+
<HeaderRight>
|
|
120
|
+
<HeaderRightItem>
|
|
121
|
+
<XIcon/>
|
|
122
|
+
</HeaderRightItem>
|
|
123
|
+
</HeaderRight>
|
|
124
|
+
</Header>
|
|
125
|
+
<div className={`${styles.chatItineraryBlock} ${styles.itinerary} `}>
|
|
126
|
+
<Container>
|
|
127
|
+
<div className={styles.itineraryWrapper}>
|
|
128
|
+
<h2 className={styles.itineraryTitle}>{itinerary?.title}</h2>
|
|
129
|
+
|
|
130
|
+
<div className={styles.conversation}>
|
|
131
|
+
<p className={styles.assistantMessage}>{itinerary?.intro}</p>
|
|
132
|
+
|
|
133
|
+
<div className={styles.userMessage}>
|
|
134
|
+
<p>{userInput}</p>
|
|
135
|
+
</div>
|
|
136
|
+
|
|
137
|
+
<p className={styles.assistantMessage}>{itinerary?.recommendation}</p>
|
|
138
|
+
</div>
|
|
139
|
+
|
|
140
|
+
{itinerary?.itineraryHeader && (
|
|
141
|
+
<div className={styles.itinaryHeader}>
|
|
142
|
+
<h4>{itinerary.itineraryHeader.title}</h4>
|
|
143
|
+
<p>{itinerary.itineraryHeader.description}</p>
|
|
144
|
+
</div>
|
|
145
|
+
)}
|
|
146
|
+
|
|
147
|
+
{itinerary?.days.map((day, index) => (
|
|
148
|
+
<div key={index} className={styles.daySection}>
|
|
149
|
+
<div className={styles.dayHeader}>
|
|
150
|
+
<h3>{day.title}</h3>
|
|
151
|
+
{/*<div className={styles.navigationButtons}>*/}
|
|
152
|
+
{/* <button className={styles.navButtonLeft} aria-label="Previous">*/}
|
|
153
|
+
{/* <CaretLeft type={'light'}/>*/}
|
|
154
|
+
{/* </button>*/}
|
|
155
|
+
{/* <button className={styles.navButtonRight} aria-label="Next">*/}
|
|
156
|
+
{/* <CaretRight type={'light'}/>*/}
|
|
157
|
+
{/* </button>*/}
|
|
158
|
+
{/*</div>*/}
|
|
159
|
+
</div>
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
<div className={styles.headerWithArrows}>
|
|
164
|
+
<div className={styles.arrowHeaderContent}>
|
|
165
|
+
<h4 className={styles.daySubtitle}>{day.subtitle}</h4>
|
|
166
|
+
<p className={styles.dayDescription}>{day.description}</p>
|
|
167
|
+
</div>
|
|
168
|
+
<div className={styles.navigationButtons}>
|
|
169
|
+
<button className={styles.navButtonLeft} aria-label="Previous">
|
|
170
|
+
<CaretLeft type={'light'}/>
|
|
171
|
+
</button>
|
|
172
|
+
<button className={styles.navButtonRight} aria-label="Next">
|
|
173
|
+
<CaretRight type={'light'}/>
|
|
174
|
+
</button>
|
|
175
|
+
</div>
|
|
176
|
+
</div>
|
|
177
|
+
|
|
178
|
+
<PathwayBlock
|
|
179
|
+
cards={day.activities.map((activity) => ({
|
|
180
|
+
date: activity.date || "",
|
|
181
|
+
title: activity.title,
|
|
182
|
+
description: activity.description,
|
|
183
|
+
image: activity.image,
|
|
184
|
+
link: activity.link,
|
|
185
|
+
category: activity.category,
|
|
186
|
+
variation: 'short',
|
|
187
|
+
}))}
|
|
188
|
+
/>
|
|
189
|
+
</div>
|
|
190
|
+
))}
|
|
191
|
+
|
|
192
|
+
<div className={styles.downloadButton}>
|
|
193
|
+
<Button label={'DOWNLOAD ITINERARY'} size={'default'} level={'primary'} secondaryIcon={<ArrowRight/>} />
|
|
194
|
+
</div>
|
|
195
|
+
|
|
196
|
+
<hr/>
|
|
197
|
+
|
|
198
|
+
{/* Add padding at bottom to prevent content being hidden behind fixed footer */}
|
|
199
|
+
<div className={styles.bottomSpacer}></div>
|
|
200
|
+
</div>
|
|
201
|
+
</Container>
|
|
202
|
+
</div>
|
|
203
|
+
|
|
204
|
+
{/* Fixed footer section */}
|
|
205
|
+
<div className={styles.fixedFooter}>
|
|
206
|
+
<Container>
|
|
207
|
+
<div className={styles.footerContent}>
|
|
208
|
+
{itinerary?.tags && itinerary.tags.length > 0 && (
|
|
209
|
+
<div className={styles.tags}>
|
|
210
|
+
{itinerary.tags.map((tag, index) => (
|
|
211
|
+
<Button key={index} label={tag} size={'default'} level={'primary'} style={'hollow'}/>
|
|
212
|
+
))}
|
|
213
|
+
</div>
|
|
214
|
+
)}
|
|
215
|
+
|
|
216
|
+
{/*<div className={styles.chatInput}>*/}
|
|
217
|
+
{/* <div className={styles.chatInputBox}>*/}
|
|
218
|
+
{/* <input type="text"/>*/}
|
|
219
|
+
{/* <button className={styles.attachButton}>*/}
|
|
220
|
+
{/* <Paperclip/>*/}
|
|
221
|
+
{/* </button>*/}
|
|
222
|
+
|
|
223
|
+
{/* <button className={styles.sendButton}>*/}
|
|
224
|
+
{/* <PaperPlaneTilt type={'fill'}/>*/}
|
|
225
|
+
{/* </button>*/}
|
|
226
|
+
{/* </div>*/}
|
|
227
|
+
{/*</div>*/}
|
|
228
|
+
|
|
229
|
+
<div className={styles.fixedInputBox}>
|
|
230
|
+
<textarea
|
|
231
|
+
value={userInput}
|
|
232
|
+
onChange={(e) => setUserInput(e.target.value)}
|
|
233
|
+
placeholder="I'd love to spend two nights in Selwyn, I love nature, dining out and relaxing."
|
|
234
|
+
rows={3}
|
|
235
|
+
disabled={isLoading}
|
|
236
|
+
/>
|
|
237
|
+
<div className={styles.inputActions}>
|
|
238
|
+
<button className={styles.attachButton} aria-label="Attach file" disabled={isLoading}>
|
|
239
|
+
<Paperclip type={'light'}/>
|
|
240
|
+
</button>
|
|
241
|
+
<div className={styles.chatButton}>
|
|
242
|
+
<div>
|
|
243
|
+
<button className={styles.sendButton}>
|
|
244
|
+
<PaperPlaneTilt type={'fill'}/>
|
|
245
|
+
</button>
|
|
246
|
+
</div>
|
|
247
|
+
</div>
|
|
248
|
+
</div>
|
|
249
|
+
</div>
|
|
250
|
+
</div>
|
|
251
|
+
</Container>
|
|
252
|
+
</div>
|
|
253
|
+
</div>
|
|
254
|
+
);
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
export default ChatItineraryBlock;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export interface Activity {
|
|
4
|
+
image: string;
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
link: {
|
|
8
|
+
title?: string | undefined;
|
|
9
|
+
href?: string | undefined;
|
|
10
|
+
target?: "_blank" | "_self" | "_parent" | "_top" | undefined;
|
|
11
|
+
rel?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
category: 'all' | 'adventure' | 'ski' | 'nature';
|
|
14
|
+
date?: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface Day {
|
|
18
|
+
title: string;
|
|
19
|
+
subtitle: string;
|
|
20
|
+
description: string;
|
|
21
|
+
activities: Activity[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface Itinerary {
|
|
25
|
+
title: string;
|
|
26
|
+
intro: string;
|
|
27
|
+
recommendation: string;
|
|
28
|
+
days: Day[];
|
|
29
|
+
itineraryHeader?: {
|
|
30
|
+
title: string;
|
|
31
|
+
description: string;
|
|
32
|
+
};
|
|
33
|
+
tags?: string[];
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
interface ChatItineraryBlockProps {
|
|
37
|
+
pillar?: 'visit' | 'live' | 'business' | 'participate' | 'taste' | 'main';
|
|
38
|
+
onPlanTrip?: (userInput: string) => Promise<Itinerary>;
|
|
39
|
+
initialItinerary?: Itinerary;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export default ChatItineraryBlockProps;
|
|
43
|
+
|
|
44
|
+
|