@festo-ui/react 9.0.0-dev.711 → 9.0.0-dev.713
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/index.css +1 -0
- package/index.d.ts +65 -0
- package/index.js +60 -0
- package/lib/components/accordion/Accordion.d.ts +11 -0
- package/lib/components/accordion/Accordion.js +43 -0
- package/{dist → lib}/components/accordion/AccordionContext.d.ts +2 -2
- package/lib/components/accordion/AccordionContext.js +3 -0
- package/lib/components/accordion/accordion-header/AccordionHeader.d.ts +3 -0
- package/lib/components/accordion/accordion-header/AccordionHeader.js +17 -0
- package/lib/components/accordion/accordion-item/AccordionItem.d.ts +9 -0
- package/lib/components/accordion/accordion-item/AccordionItem.js +65 -0
- package/{dist → lib}/components/accordion/accordion-item/AccordionItemContext.d.ts +2 -2
- package/lib/components/accordion/accordion-item/AccordionItemContext.js +3 -0
- package/lib/components/accordion/accordion-item/accordion-item-body/AccordionItemBody.d.ts +3 -0
- package/lib/components/accordion/accordion-item/accordion-item-body/AccordionItemBody.js +70 -0
- package/lib/components/accordion/accordion-item/accordion-item-header/AccordionItemHeader.d.ts +3 -0
- package/lib/components/accordion/accordion-item/accordion-item-header/AccordionItemHeader.js +41 -0
- package/lib/components/bottom-sheet/BottomSheet.d.ts +11 -0
- package/lib/components/bottom-sheet/BottomSheet.js +93 -0
- package/lib/components/bottom-sheet/BottomSheet.stories.d.ts +9 -0
- package/lib/components/bottom-sheet/BottomSheet.stories.js +49 -0
- package/{dist → lib}/components/breadcrumb/Breadcrumb.d.ts +4 -3
- package/lib/components/breadcrumb/Breadcrumb.js +40 -0
- package/lib/components/buttons/button/Button.d.ts +12 -0
- package/lib/components/buttons/button/Button.js +49 -0
- package/lib/components/buttons/button/Button.stories.d.ts +13 -0
- package/lib/components/buttons/button/Button.stories.js +86 -0
- package/lib/components/card/Card.d.ts +3 -0
- package/lib/components/card/Card.js +13 -0
- package/lib/components/card/CardBody.d.ts +6 -0
- package/lib/components/card/CardBody.js +17 -0
- package/lib/components/card/CardHeader.d.ts +9 -0
- package/lib/components/card/CardHeader.js +29 -0
- package/lib/components/card/CardHeader.stories.helper.d.ts +3 -0
- package/lib/components/card/CardHeader.stories.helper.js +9 -0
- package/lib/components/card/CardNotification.d.ts +7 -0
- package/lib/components/card/CardNotification.js +25 -0
- package/lib/components/chips/chip/Chip.d.ts +17 -0
- package/lib/components/chips/chip/Chip.js +47 -0
- package/lib/components/chips/chip-container/ChipContainer.d.ts +6 -0
- package/lib/components/chips/chip-container/ChipContainer.js +17 -0
- package/{dist → lib}/components/icon-wrapper/IconWrapper.d.ts +1 -1
- package/lib/components/icon-wrapper/IconWrapper.js +17 -0
- package/lib/components/link-button/LinkButton.d.ts +9 -0
- package/lib/components/link-button/LinkButton.js +32 -0
- package/lib/components/loading-indicator/LoadingIndicator.d.ts +7 -0
- package/lib/components/loading-indicator/LoadingIndicator.js +39 -0
- package/lib/components/mobile-flyout/MobileFlyout.d.ts +12 -0
- package/lib/components/mobile-flyout/MobileFlyout.js +82 -0
- package/{dist → lib}/components/mobile-flyout/MobileFlyoutContext.d.ts +2 -2
- package/lib/components/mobile-flyout/MobileFlyoutContext.js +2 -0
- package/lib/components/mobile-flyout/mobile-flyout-item/MobileFlyoutItem.d.ts +17 -0
- package/lib/components/mobile-flyout/mobile-flyout-item/MobileFlyoutItem.js +53 -0
- package/lib/components/mobile-flyout/mobile-flyout-page/MobileFlyoutPage.d.ts +8 -0
- package/lib/components/mobile-flyout/mobile-flyout-page/MobileFlyoutPage.js +46 -0
- package/lib/components/modals/AlertModal.d.ts +13 -0
- package/lib/components/modals/AlertModal.js +60 -0
- package/lib/components/modals/ConfirmModal.d.ts +12 -0
- package/lib/components/modals/ConfirmModal.js +52 -0
- package/lib/components/modals/CustomModal.d.ts +9 -0
- package/lib/components/modals/CustomModal.js +41 -0
- package/lib/components/modals/Modal.d.ts +9 -0
- package/lib/components/modals/Modal.js +34 -0
- package/lib/components/modals/ModalBase.d.ts +10 -0
- package/lib/components/modals/ModalBase.js +142 -0
- package/lib/components/modals/ModalFooter.d.ts +3 -0
- package/lib/components/modals/ModalFooter.js +18 -0
- package/{dist → lib}/components/modals/Prompt.d.ts +5 -4
- package/lib/components/modals/Prompt.js +64 -0
- package/{dist → lib}/components/modals/image-gallery/ImageGallery.d.ts +7 -6
- package/lib/components/modals/image-gallery/ImageGallery.helper.d.ts +3 -0
- package/lib/components/modals/image-gallery/ImageGallery.helper.js +11 -0
- package/lib/components/modals/image-gallery/ImageGallery.js +81 -0
- package/lib/components/modals/image-gallery/ImageGallery.stories.helper.d.ts +3 -0
- package/lib/components/modals/image-gallery/ImageGallery.stories.helper.js +97 -0
- package/{dist → lib}/components/modals/image-gallery/ImageGalleryContent.d.ts +1 -1
- package/lib/components/modals/image-gallery/ImageGalleryContent.js +14 -0
- package/{dist → lib}/components/modals/image-gallery/ImageGalleryContext.d.ts +3 -3
- package/lib/components/modals/image-gallery/ImageGalleryContext.js +4 -0
- package/lib/components/modals/image-gallery/ImageGallerySwiper.d.ts +8 -0
- package/lib/components/modals/image-gallery/ImageGallerySwiper.js +32 -0
- package/lib/components/modals/image-gallery/ImageGalleryThumbsSwiper.d.ts +5 -0
- package/lib/components/modals/image-gallery/ImageGalleryThumbsSwiper.js +25 -0
- package/lib/components/modals/image-gallery/image-gallery-item/ImageGalleryItem.d.ts +11 -0
- package/lib/components/modals/image-gallery/image-gallery-item/ImageGalleryItem.js +28 -0
- package/lib/components/modals/image-gallery/internal/BaseGallery.d.ts +17 -0
- package/lib/components/modals/image-gallery/internal/BaseGallery.js +65 -0
- package/{dist → lib}/components/modals/image-gallery/internal/CloseButton.d.ts +1 -1
- package/lib/components/modals/image-gallery/internal/CloseButton.js +17 -0
- package/lib/components/modals/image-gallery/internal/ImageGalleryContainer.d.ts +6 -0
- package/lib/components/modals/image-gallery/internal/ImageGalleryContainer.js +13 -0
- package/{dist → lib}/components/modals/image-gallery/internal/ImageGalleryPagination.d.ts +3 -2
- package/lib/components/modals/image-gallery/internal/ImageGalleryPagination.js +27 -0
- package/lib/components/modals/image-gallery/internal/ScaleButton.d.ts +5 -0
- package/lib/components/modals/image-gallery/internal/ScaleButton.js +19 -0
- package/lib/components/pagination/Pagination.d.ts +16 -0
- package/lib/components/pagination/Pagination.js +105 -0
- package/lib/components/popovers/legend/Legend.d.ts +11 -0
- package/lib/components/popovers/legend/Legend.js +24 -0
- package/{dist → lib}/components/popovers/popover/Popover.d.ts +6 -5
- package/lib/components/popovers/popover/Popover.js +123 -0
- package/lib/components/popovers/popover-menu/PopoverMenu.d.ts +9 -0
- package/lib/components/popovers/popover-menu/PopoverMenu.js +46 -0
- package/lib/components/popovers/popover-menu/PopoverMenuContext.d.ts +4 -0
- package/lib/components/popovers/popover-menu/PopoverMenuContext.js +5 -0
- package/{dist → lib}/components/popovers/popover-menu-item/PopoverMenuItem.d.ts +3 -2
- package/lib/components/popovers/popover-menu-item/PopoverMenuItem.js +41 -0
- package/lib/components/popovers/tooltip/Tooltip.d.ts +6 -0
- package/lib/components/popovers/tooltip/Tooltip.js +16 -0
- package/lib/components/progress/Progress.d.ts +8 -0
- package/lib/components/progress/Progress.js +32 -0
- package/lib/components/scroll-area/ScrollArea.d.ts +5 -0
- package/lib/components/scroll-area/ScrollArea.js +14 -0
- package/lib/components/search-input/ClearButton.d.ts +2 -0
- package/lib/components/search-input/ClearButton.js +10 -0
- package/lib/components/search-input/SearchInput.d.ts +15 -0
- package/lib/components/search-input/SearchInput.js +77 -0
- package/{dist → lib}/components/search-input/SearchSuggestion.d.ts +1 -1
- package/lib/components/search-input/SearchSuggestion.js +32 -0
- package/{dist → lib}/components/search-input/useSearchInput.d.ts +3 -3
- package/lib/components/search-input/useSearchInput.js +94 -0
- package/{dist → lib}/components/snackbar/Snackbar.d.ts +6 -5
- package/lib/components/snackbar/Snackbar.js +78 -0
- package/{dist → lib}/components/snackbar/SnackbarContext.d.ts +4 -3
- package/lib/components/snackbar/SnackbarContext.js +2 -0
- package/lib/components/snackbar/SnackbarProvider.d.ts +8 -0
- package/lib/components/snackbar/SnackbarProvider.js +65 -0
- package/lib/components/snackbar/useSnackbar.d.ts +3 -0
- package/lib/components/snackbar/useSnackbar.js +3 -0
- package/lib/components/stepper-horizontal/StepperHorizontal.d.ts +7 -0
- package/lib/components/stepper-horizontal/StepperHorizontal.js +60 -0
- package/lib/components/stepper-horizontal/step-horizontal/StepHorizontal.d.ts +7 -0
- package/lib/components/stepper-horizontal/step-horizontal/StepHorizontal.js +23 -0
- package/lib/components/stepper-vertical/StepperVertical.d.ts +7 -0
- package/lib/components/stepper-vertical/StepperVertical.js +37 -0
- package/lib/components/stepper-vertical/step-vertical/StepVertical.d.ts +12 -0
- package/lib/components/stepper-vertical/step-vertical/StepVertical.js +76 -0
- package/lib/components/tab/Tabs.d.ts +23 -0
- package/lib/components/tab/Tabs.js +229 -0
- package/lib/components/tab/interfaces.js +1 -0
- package/lib/components/tab/tab-pane/TabPane.d.ts +10 -0
- package/lib/components/tab/tab-pane/TabPane.js +23 -0
- package/{dist → lib}/components/tab/useTabScroll.d.ts +3 -4
- package/lib/components/tab/useTabScroll.js +233 -0
- package/lib/components/table-header-cell/TableHeaderCell.d.ts +6 -0
- package/lib/components/table-header-cell/TableHeaderCell.js +29 -0
- package/lib/forms/checkbox/Checkbox.d.ts +17 -0
- package/lib/forms/checkbox/Checkbox.js +86 -0
- package/{dist → lib}/forms/radio/RadioButton.d.ts +4 -3
- package/lib/forms/radio/RadioButton.js +85 -0
- package/lib/forms/radio/RadioGroup.d.ts +13 -0
- package/lib/forms/radio/RadioGroup.js +51 -0
- package/{dist → lib}/forms/radio/RadioGroupContext.d.ts +3 -3
- package/lib/forms/radio/RadioGroupContext.js +3 -0
- package/lib/forms/segment/Segment.d.ts +14 -0
- package/lib/forms/segment/Segment.js +76 -0
- package/{dist → lib}/forms/segment/segment-control/SegmentControl.d.ts +4 -3
- package/lib/forms/segment/segment-control/SegmentControl.js +59 -0
- package/{dist → lib}/forms/select/Select.d.ts +8 -8
- package/lib/forms/select/Select.js +108 -0
- package/lib/forms/select/internal/HiddenInput.d.ts +8 -0
- package/lib/forms/select/internal/HiddenInput.js +26 -0
- package/{dist → lib}/forms/select/internal/ListItem.d.ts +6 -6
- package/lib/forms/select/internal/ListItem.js +84 -0
- package/{dist → lib}/forms/select/internal/SelectButton.d.ts +2 -2
- package/lib/forms/select/internal/SelectButton.js +57 -0
- package/{dist → lib}/forms/select/internal/SelectButtonContent.d.ts +1 -1
- package/lib/forms/select/internal/SelectButtonContent.js +38 -0
- package/lib/forms/select/internal/SelectCheckbox.d.ts +4 -0
- package/lib/forms/select/internal/SelectCheckbox.js +19 -0
- package/{dist → lib}/forms/select/internal/SelectLabel.d.ts +1 -1
- package/lib/forms/select/internal/SelectLabel.js +16 -0
- package/{dist → lib}/forms/select/internal/SelectOptionsContainer.d.ts +6 -6
- package/lib/forms/select/internal/SelectOptionsContainer.js +102 -0
- package/{dist → lib}/forms/select/internal/SelectScrollContainer.d.ts +2 -2
- package/lib/forms/select/internal/SelectScrollContainer.js +21 -0
- package/lib/forms/select/internal/SelectWrapper.d.ts +6 -0
- package/lib/forms/select/internal/SelectWrapper.js +20 -0
- package/lib/forms/select/internal/index.d.ts +6 -0
- package/lib/forms/select/internal/index.js +6 -0
- package/{dist → lib}/forms/select/internal/utils.d.ts +3 -3
- package/lib/forms/select/internal/utils.js +36 -0
- package/{dist → lib}/forms/select/select-option/SelectOption.d.ts +5 -5
- package/lib/forms/select/select-option/SelectOption.js +17 -0
- package/lib/forms/select/utils.d.ts +2 -0
- package/lib/forms/select/utils.js +17 -0
- package/lib/forms/slider/Slider.d.ts +18 -0
- package/lib/forms/slider/Slider.js +100 -0
- package/lib/forms/switch/Switch.d.ts +13 -0
- package/lib/forms/switch/Switch.js +51 -0
- package/{dist → lib}/forms/text-area/TextArea.d.ts +5 -4
- package/lib/forms/text-area/TextArea.js +109 -0
- package/{dist → lib}/forms/text-input/TextInput.d.ts +3 -2
- package/lib/forms/text-input/TextInput.js +91 -0
- package/{dist → lib}/forms/time-picker/TimePicker.d.ts +6 -6
- package/lib/forms/time-picker/TimePicker.js +159 -0
- package/lib/forms/time-picker/time-picker-dropdown/TimePickerDropdown.d.ts +19 -0
- package/lib/forms/time-picker/time-picker-dropdown/TimePickerDropdown.js +212 -0
- package/lib/forms/time-picker/time-picker-dropdown/TimePickerInput.d.ts +9 -0
- package/lib/forms/time-picker/time-picker-dropdown/TimePickerInput.js +23 -0
- package/{dist/utils → lib/helper}/index.d.ts +1 -0
- package/lib/helper/index.js +7 -0
- package/lib/helper/setRef.d.ts +1 -0
- package/lib/helper/setRef.js +7 -0
- package/{dist/utils → lib/helper}/types.d.ts +4 -4
- package/lib/helper/types.js +1 -0
- package/{dist/utils → lib/helper}/useControlled.d.ts +2 -2
- package/lib/helper/useControlled.js +22 -0
- package/lib/helper/useForkRef.d.ts +2 -0
- package/lib/helper/useForkRef.js +18 -0
- package/lib/helper/useId.d.ts +1 -0
- package/lib/helper/useId.js +22 -0
- package/lib/helper/useOnClickOutside.d.ts +2 -0
- package/lib/helper/useOnClickOutside.js +18 -0
- package/node/index.js +439 -0
- package/node/lib/components/accordion/Accordion.js +50 -0
- package/node/lib/components/accordion/AccordionContext.js +9 -0
- package/node/lib/components/accordion/accordion-header/AccordionHeader.js +24 -0
- package/node/lib/components/accordion/accordion-item/AccordionItem.js +72 -0
- package/node/lib/components/accordion/accordion-item/AccordionItemContext.js +9 -0
- package/node/lib/components/accordion/accordion-item/accordion-item-body/AccordionItemBody.js +77 -0
- package/node/lib/components/accordion/accordion-item/accordion-item-header/AccordionItemHeader.js +48 -0
- package/node/lib/components/bottom-sheet/BottomSheet.js +101 -0
- package/node/lib/components/bottom-sheet/BottomSheet.stories.js +56 -0
- package/node/lib/components/breadcrumb/Breadcrumb.js +47 -0
- package/node/lib/components/buttons/button/Button.js +56 -0
- package/node/lib/components/buttons/button/Button.stories.js +93 -0
- package/node/lib/components/card/Card.js +20 -0
- package/node/lib/components/card/CardBody.js +24 -0
- package/node/lib/components/card/CardHeader.js +36 -0
- package/node/lib/components/card/CardHeader.stories.helper.js +17 -0
- package/node/lib/components/card/CardNotification.js +32 -0
- package/node/lib/components/chips/chip/Chip.js +54 -0
- package/node/lib/components/chips/chip-container/ChipContainer.js +24 -0
- package/node/lib/components/icon-wrapper/IconWrapper.js +23 -0
- package/node/lib/components/link-button/LinkButton.js +39 -0
- package/node/lib/components/loading-indicator/LoadingIndicator.js +46 -0
- package/node/lib/components/mobile-flyout/MobileFlyout.js +89 -0
- package/node/lib/components/mobile-flyout/MobileFlyoutContext.js +8 -0
- package/node/lib/components/mobile-flyout/mobile-flyout-item/MobileFlyoutItem.js +61 -0
- package/node/lib/components/mobile-flyout/mobile-flyout-page/MobileFlyoutPage.js +53 -0
- package/node/lib/components/modals/AlertModal.js +67 -0
- package/node/lib/components/modals/ConfirmModal.js +59 -0
- package/node/lib/components/modals/CustomModal.js +48 -0
- package/node/lib/components/modals/Modal.js +43 -0
- package/node/lib/components/modals/ModalBase.js +149 -0
- package/node/lib/components/modals/ModalFooter.js +25 -0
- package/node/lib/components/modals/Prompt.js +73 -0
- package/node/lib/components/modals/image-gallery/ImageGallery.helper.js +18 -0
- package/node/lib/components/modals/image-gallery/ImageGallery.js +88 -0
- package/node/lib/components/modals/image-gallery/ImageGallery.stories.helper.js +123 -0
- package/node/lib/components/modals/image-gallery/ImageGalleryContent.js +20 -0
- package/node/lib/components/modals/image-gallery/ImageGalleryContext.js +10 -0
- package/node/lib/components/modals/image-gallery/ImageGallerySwiper.js +39 -0
- package/node/lib/components/modals/image-gallery/ImageGalleryThumbsSwiper.js +33 -0
- package/node/lib/components/modals/image-gallery/image-gallery-item/ImageGalleryItem.js +35 -0
- package/node/lib/components/modals/image-gallery/internal/BaseGallery.js +72 -0
- package/node/lib/components/modals/image-gallery/internal/CloseButton.js +24 -0
- package/node/lib/components/modals/image-gallery/internal/ImageGalleryContainer.js +19 -0
- package/node/lib/components/modals/image-gallery/internal/ImageGalleryPagination.js +33 -0
- package/node/lib/components/modals/image-gallery/internal/ScaleButton.js +25 -0
- package/node/lib/components/pagination/Pagination.js +114 -0
- package/node/lib/components/popovers/legend/Legend.js +31 -0
- package/node/lib/components/popovers/popover/Popover.js +132 -0
- package/node/lib/components/popovers/popover-menu/PopoverMenu.js +53 -0
- package/node/lib/components/popovers/popover-menu/PopoverMenuContext.js +11 -0
- package/node/lib/components/popovers/popover-menu-item/PopoverMenuItem.js +48 -0
- package/node/lib/components/popovers/tooltip/Tooltip.js +23 -0
- package/node/lib/components/progress/Progress.js +39 -0
- package/node/lib/components/scroll-area/ScrollArea.js +21 -0
- package/node/lib/components/search-input/ClearButton.js +16 -0
- package/node/lib/components/search-input/SearchInput.js +84 -0
- package/node/lib/components/search-input/SearchSuggestion.js +39 -0
- package/node/lib/components/search-input/useSearchInput.js +101 -0
- package/node/lib/components/snackbar/Snackbar.js +85 -0
- package/node/lib/components/snackbar/SnackbarContext.js +9 -0
- package/node/lib/components/snackbar/SnackbarProvider.js +73 -0
- package/node/lib/components/snackbar/useSnackbar.js +11 -0
- package/node/lib/components/stepper-horizontal/StepperHorizontal.js +69 -0
- package/node/lib/components/stepper-horizontal/step-horizontal/StepHorizontal.js +30 -0
- package/node/lib/components/stepper-vertical/StepperVertical.js +46 -0
- package/node/lib/components/stepper-vertical/step-vertical/StepVertical.js +83 -0
- package/node/lib/components/tab/Tabs.js +240 -0
- package/node/lib/components/tab/interfaces.js +5 -0
- package/node/lib/components/tab/tab-pane/TabPane.js +30 -0
- package/node/lib/components/tab/useTabScroll.js +238 -0
- package/node/lib/components/table-header-cell/TableHeaderCell.js +36 -0
- package/node/lib/forms/checkbox/Checkbox.js +93 -0
- package/node/lib/forms/radio/RadioButton.js +92 -0
- package/node/lib/forms/radio/RadioGroup.js +58 -0
- package/node/lib/forms/radio/RadioGroupContext.js +9 -0
- package/node/lib/forms/segment/Segment.js +83 -0
- package/node/lib/forms/segment/segment-control/SegmentControl.js +68 -0
- package/node/lib/forms/select/Select.js +115 -0
- package/node/lib/forms/select/internal/HiddenInput.js +32 -0
- package/node/lib/forms/select/internal/ListItem.js +93 -0
- package/node/lib/forms/select/internal/SelectButton.js +64 -0
- package/node/lib/forms/select/internal/SelectButtonContent.js +44 -0
- package/node/lib/forms/select/internal/SelectCheckbox.js +26 -0
- package/node/lib/forms/select/internal/SelectLabel.js +23 -0
- package/node/lib/forms/select/internal/SelectOptionsContainer.js +109 -0
- package/node/lib/forms/select/internal/SelectScrollContainer.js +28 -0
- package/node/lib/forms/select/internal/SelectWrapper.js +27 -0
- package/node/lib/forms/select/internal/index.js +48 -0
- package/node/lib/forms/select/internal/utils.js +43 -0
- package/node/lib/forms/select/select-option/SelectOption.js +23 -0
- package/node/lib/forms/select/utils.js +23 -0
- package/node/lib/forms/slider/Slider.js +109 -0
- package/node/lib/forms/switch/Switch.js +58 -0
- package/node/lib/forms/text-area/TextArea.js +118 -0
- package/node/lib/forms/text-input/TextInput.js +98 -0
- package/node/lib/forms/time-picker/TimePicker.js +166 -0
- package/node/lib/forms/time-picker/time-picker-dropdown/TimePickerDropdown.js +219 -0
- package/node/lib/forms/time-picker/time-picker-dropdown/TimePickerInput.js +29 -0
- package/node/lib/helper/index.js +14 -0
- package/node/lib/helper/setRef.js +13 -0
- package/node/lib/helper/types.js +5 -0
- package/node/lib/helper/useControlled.js +28 -0
- package/node/lib/helper/useForkRef.js +26 -0
- package/node/lib/helper/useId.js +28 -0
- package/node/lib/helper/useOnClickOutside.js +24 -0
- package/package.json +21 -64
- package/simplebar.min.css +1 -0
- package/README.md +0 -23
- package/dist/components/accordion/Accordion.css +0 -4
- package/dist/components/accordion/Accordion.d.ts +0 -10
- package/dist/components/accordion/Accordion.js +0 -41
- package/dist/components/accordion/AccordionContext.js +0 -3
- package/dist/components/accordion/accordion-header/AccordionHeader.css +0 -11
- package/dist/components/accordion/accordion-header/AccordionHeader.d.ts +0 -2
- package/dist/components/accordion/accordion-header/AccordionHeader.js +0 -11
- package/dist/components/accordion/accordion-item/AccordionItem.css +0 -64
- package/dist/components/accordion/accordion-item/AccordionItem.d.ts +0 -8
- package/dist/components/accordion/accordion-item/AccordionItem.js +0 -60
- package/dist/components/accordion/accordion-item/AccordionItemContext.js +0 -3
- package/dist/components/accordion/accordion-item/accordion-item-body/AccordionItemBody.css +0 -76
- package/dist/components/accordion/accordion-item/accordion-item-body/AccordionItemBody.d.ts +0 -2
- package/dist/components/accordion/accordion-item/accordion-item-body/AccordionItemBody.js +0 -61
- package/dist/components/accordion/accordion-item/accordion-item-header/AccordionItemHeader.css +0 -11
- package/dist/components/accordion/accordion-item/accordion-item-header/AccordionItemHeader.d.ts +0 -2
- package/dist/components/accordion/accordion-item/accordion-item-header/AccordionItemHeader.js +0 -20
- package/dist/components/bottom-sheet/BottomSheet.css +0 -18
- package/dist/components/bottom-sheet/BottomSheet.d.ts +0 -12
- package/dist/components/bottom-sheet/BottomSheet.js +0 -101
- package/dist/components/breadcrumb/Breadcrumb.js +0 -32
- package/dist/components/button/Button.d.ts +0 -11
- package/dist/components/button/Button.js +0 -36
- package/dist/components/card/Card.d.ts +0 -4
- package/dist/components/card/Card.js +0 -9
- package/dist/components/card/CardBody.d.ts +0 -5
- package/dist/components/card/CardBody.js +0 -15
- package/dist/components/card/CardHeader.d.ts +0 -8
- package/dist/components/card/CardHeader.js +0 -31
- package/dist/components/card/CardHeader.stories.helper.js +0 -7
- package/dist/components/card/CardNotification.d.ts +0 -6
- package/dist/components/card/CardNotification.js +0 -26
- package/dist/components/chips/chip/Chip.d.ts +0 -17
- package/dist/components/chips/chip/Chip.js +0 -38
- package/dist/components/chips/chip-container/ChipContainer.d.ts +0 -5
- package/dist/components/chips/chip-container/ChipContainer.js +0 -12
- package/dist/components/icon-wrapper/IconWrapper.js +0 -13
- package/dist/components/link-button/LinkButton.d.ts +0 -8
- package/dist/components/link-button/LinkButton.js +0 -26
- package/dist/components/loading-indicator/LoadingIndicator.d.ts +0 -5
- package/dist/components/loading-indicator/LoadingIndicator.js +0 -41
- package/dist/components/mobile-flyout/MobileFlyout.d.ts +0 -11
- package/dist/components/mobile-flyout/MobileFlyout.js +0 -88
- package/dist/components/mobile-flyout/MobileFlyoutContext.js +0 -3
- package/dist/components/mobile-flyout/mobile-flyout-item/MobileFlyoutItem.d.ts +0 -17
- package/dist/components/mobile-flyout/mobile-flyout-item/MobileFlyoutItem.js +0 -36
- package/dist/components/mobile-flyout/mobile-flyout-page/MobileFlyoutPage.css +0 -5
- package/dist/components/mobile-flyout/mobile-flyout-page/MobileFlyoutPage.d.ts +0 -8
- package/dist/components/mobile-flyout/mobile-flyout-page/MobileFlyoutPage.js +0 -35
- package/dist/components/modals/AlertModal.d.ts +0 -12
- package/dist/components/modals/AlertModal.js +0 -53
- package/dist/components/modals/ConfirmModal.d.ts +0 -11
- package/dist/components/modals/ConfirmModal.js +0 -46
- package/dist/components/modals/CustomModal.d.ts +0 -8
- package/dist/components/modals/CustomModal.js +0 -38
- package/dist/components/modals/Modal.css +0 -39
- package/dist/components/modals/Modal.d.ts +0 -8
- package/dist/components/modals/Modal.js +0 -31
- package/dist/components/modals/ModalBase.d.ts +0 -9
- package/dist/components/modals/ModalBase.js +0 -124
- package/dist/components/modals/ModalFooter.d.ts +0 -2
- package/dist/components/modals/ModalFooter.js +0 -12
- package/dist/components/modals/Prompt.js +0 -58
- package/dist/components/modals/image-gallery/ImageGallery.css +0 -790
- package/dist/components/modals/image-gallery/ImageGallery.helper.d.ts +0 -2
- package/dist/components/modals/image-gallery/ImageGallery.helper.js +0 -13
- package/dist/components/modals/image-gallery/ImageGallery.js +0 -75
- package/dist/components/modals/image-gallery/ImageGallery.stories.helper.js +0 -112
- package/dist/components/modals/image-gallery/ImageGalleryContent.js +0 -15
- package/dist/components/modals/image-gallery/ImageGalleryContext.js +0 -4
- package/dist/components/modals/image-gallery/ImageGallerySwiper.d.ts +0 -8
- package/dist/components/modals/image-gallery/ImageGallerySwiper.js +0 -29
- package/dist/components/modals/image-gallery/ImageGalleryThumbsSwiper.d.ts +0 -5
- package/dist/components/modals/image-gallery/ImageGalleryThumbsSwiper.js +0 -23
- package/dist/components/modals/image-gallery/image-gallery-item/ImageGalleryItem.css +0 -10
- package/dist/components/modals/image-gallery/image-gallery-item/ImageGalleryItem.d.ts +0 -11
- package/dist/components/modals/image-gallery/image-gallery-item/ImageGalleryItem.js +0 -24
- package/dist/components/modals/image-gallery/internal/BaseGallery.d.ts +0 -17
- package/dist/components/modals/image-gallery/internal/BaseGallery.js +0 -50
- package/dist/components/modals/image-gallery/internal/CloseButton.js +0 -14
- package/dist/components/modals/image-gallery/internal/ImageGalleryContainer.d.ts +0 -5
- package/dist/components/modals/image-gallery/internal/ImageGalleryContainer.js +0 -8
- package/dist/components/modals/image-gallery/internal/ImageGalleryPagination.js +0 -29
- package/dist/components/modals/image-gallery/internal/ScaleButton.d.ts +0 -4
- package/dist/components/modals/image-gallery/internal/ScaleButton.js +0 -17
- package/dist/components/pagination/Pagination.css +0 -10
- package/dist/components/pagination/Pagination.d.ts +0 -15
- package/dist/components/pagination/Pagination.js +0 -100
- package/dist/components/popovers/legend/Legend.css +0 -21
- package/dist/components/popovers/legend/Legend.d.ts +0 -11
- package/dist/components/popovers/legend/Legend.js +0 -24
- package/dist/components/popovers/popover/Popover.css +0 -56
- package/dist/components/popovers/popover/Popover.js +0 -107
- package/dist/components/popovers/popover-menu/PopoverMenu.css +0 -20
- package/dist/components/popovers/popover-menu/PopoverMenu.d.ts +0 -8
- package/dist/components/popovers/popover-menu/PopoverMenu.js +0 -37
- package/dist/components/popovers/popover-menu/PopoverMenuContext.d.ts +0 -3
- package/dist/components/popovers/popover-menu/PopoverMenuContext.js +0 -5
- package/dist/components/popovers/popover-menu-item/PopoverMenuItem.css +0 -35
- package/dist/components/popovers/popover-menu-item/PopoverMenuItem.js +0 -30
- package/dist/components/popovers/tooltip/Tooltip.d.ts +0 -5
- package/dist/components/popovers/tooltip/Tooltip.js +0 -12
- package/dist/components/progress/Progress.d.ts +0 -7
- package/dist/components/progress/Progress.js +0 -26
- package/dist/components/scroll-area/ScrollArea.d.ts +0 -4
- package/dist/components/scroll-area/ScrollArea.js +0 -10
- package/dist/components/scroll-area/ScrollArea.stories.css +0 -9
- package/dist/components/search-input/ClearButton.d.ts +0 -2
- package/dist/components/search-input/ClearButton.js +0 -10
- package/dist/components/search-input/SearchInput.css +0 -13
- package/dist/components/search-input/SearchInput.d.ts +0 -14
- package/dist/components/search-input/SearchInput.js +0 -61
- package/dist/components/search-input/SearchSuggestion.js +0 -21
- package/dist/components/search-input/useSearchInput.js +0 -85
- package/dist/components/snackbar/Snackbar.css +0 -55
- package/dist/components/snackbar/Snackbar.js +0 -78
- package/dist/components/snackbar/SnackbarContext.js +0 -3
- package/dist/components/snackbar/SnackbarProvider.d.ts +0 -8
- package/dist/components/snackbar/SnackbarProvider.js +0 -66
- package/dist/components/snackbar/useSnackbar.d.ts +0 -2
- package/dist/components/snackbar/useSnackbar.js +0 -4
- package/dist/components/stepper-horizontal/StepperHorizontal.css +0 -6
- package/dist/components/stepper-horizontal/StepperHorizontal.d.ts +0 -7
- package/dist/components/stepper-horizontal/StepperHorizontal.js +0 -48
- package/dist/components/stepper-horizontal/step-horizontal/StepHorizontal.css +0 -24
- package/dist/components/stepper-horizontal/step-horizontal/StepHorizontal.d.ts +0 -6
- package/dist/components/stepper-horizontal/step-horizontal/StepHorizontal.js +0 -16
- package/dist/components/stepper-vertical/StepperVertical.d.ts +0 -6
- package/dist/components/stepper-vertical/StepperVertical.js +0 -26
- package/dist/components/stepper-vertical/step-vertical/StepVertical.css +0 -10
- package/dist/components/stepper-vertical/step-vertical/StepVertical.d.ts +0 -11
- package/dist/components/stepper-vertical/step-vertical/StepVertical.js +0 -58
- package/dist/components/tab/Tabs.css +0 -285
- package/dist/components/tab/Tabs.d.ts +0 -23
- package/dist/components/tab/Tabs.js +0 -194
- package/dist/components/tab/interfaces.js +0 -0
- package/dist/components/tab/tab-pane/TabPane.css +0 -8
- package/dist/components/tab/tab-pane/TabPane.d.ts +0 -9
- package/dist/components/tab/tab-pane/TabPane.js +0 -18
- package/dist/components/tab/useTabScroll.js +0 -151
- package/dist/components/table-header-cell/TableHeaderCell.d.ts +0 -5
- package/dist/components/table-header-cell/TableHeaderCell.js +0 -21
- package/dist/forms/checkbox/Checkbox.css +0 -134
- package/dist/forms/checkbox/Checkbox.d.ts +0 -15
- package/dist/forms/checkbox/Checkbox.js +0 -80
- package/dist/forms/radio/RadioButton.js +0 -61
- package/dist/forms/radio/RadioGroup.d.ts +0 -12
- package/dist/forms/radio/RadioGroup.js +0 -50
- package/dist/forms/radio/RadioGroupContext.js +0 -3
- package/dist/forms/segment/Segment.d.ts +0 -13
- package/dist/forms/segment/Segment.js +0 -59
- package/dist/forms/segment/segment-control/SegmentControl.js +0 -57
- package/dist/forms/select/Select.css +0 -160
- package/dist/forms/select/Select.js +0 -95
- package/dist/forms/select/internal/HiddenInput.d.ts +0 -8
- package/dist/forms/select/internal/HiddenInput.js +0 -15
- package/dist/forms/select/internal/ListItem.js +0 -69
- package/dist/forms/select/internal/SelectButton.js +0 -49
- package/dist/forms/select/internal/SelectButtonContent.js +0 -31
- package/dist/forms/select/internal/SelectCheckbox.d.ts +0 -4
- package/dist/forms/select/internal/SelectCheckbox.js +0 -13
- package/dist/forms/select/internal/SelectLabel.js +0 -12
- package/dist/forms/select/internal/SelectOptionsContainer.js +0 -103
- package/dist/forms/select/internal/SelectScrollContainer.js +0 -15
- package/dist/forms/select/internal/SelectWrapper.d.ts +0 -6
- package/dist/forms/select/internal/SelectWrapper.js +0 -12
- package/dist/forms/select/internal/index.d.ts +0 -6
- package/dist/forms/select/internal/index.js +0 -7
- package/dist/forms/select/internal/utils.js +0 -30
- package/dist/forms/select/select-option/SelectOption.js +0 -12
- package/dist/forms/select/utils.d.ts +0 -2
- package/dist/forms/select/utils.js +0 -12
- package/dist/forms/slider/Slider.css +0 -50
- package/dist/forms/slider/Slider.d.ts +0 -17
- package/dist/forms/slider/Slider.js +0 -93
- package/dist/forms/switch/Switch.d.ts +0 -12
- package/dist/forms/switch/Switch.js +0 -42
- package/dist/forms/text-area/TextArea.css +0 -14
- package/dist/forms/text-area/TextArea.js +0 -99
- package/dist/forms/text-input/TextInput.js +0 -74
- package/dist/forms/time-picker/TimePicker.css +0 -10
- package/dist/forms/time-picker/TimePicker.js +0 -140
- package/dist/forms/time-picker/time-picker-dropdown/TimePickerDropdown.css +0 -4
- package/dist/forms/time-picker/time-picker-dropdown/TimePickerDropdown.d.ts +0 -19
- package/dist/forms/time-picker/time-picker-dropdown/TimePickerDropdown.js +0 -202
- package/dist/forms/time-picker/time-picker-dropdown/TimePickerInput.d.ts +0 -9
- package/dist/forms/time-picker/time-picker-dropdown/TimePickerInput.js +0 -14
- package/dist/index.d.ts +0 -63
- package/dist/index.js +0 -60
- package/dist/utils/index.js +0 -7
- package/dist/utils/setRef.d.ts +0 -1
- package/dist/utils/setRef.js +0 -5
- package/dist/utils/types.js +0 -0
- package/dist/utils/useControlled.js +0 -20
- package/dist/utils/useForkRef.d.ts +0 -2
- package/dist/utils/useForkRef.js +0 -15
- package/dist/utils/useId.d.ts +0 -1
- package/dist/utils/useId.js +0 -20
- package/dist/utils/useOnClickOutside.d.ts +0 -2
- package/dist/utils/useOnClickOutside.js +0 -20
- /package/{dist → lib}/components/tab/interfaces.d.ts +0 -0
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import classnames from "classnames";
|
|
2
|
-
const getClasses = (thumbnailImages, descriptiveContent, className)=>{
|
|
3
|
-
const base = 'fwe-modal-image-gallery';
|
|
4
|
-
const thumbnail = `${base}--with-thumbnails`;
|
|
5
|
-
const container = `${base}--with-container`;
|
|
6
|
-
return classnames(base, {
|
|
7
|
-
[thumbnail]: [
|
|
8
|
-
thumbnailImages
|
|
9
|
-
],
|
|
10
|
-
[container]: descriptiveContent
|
|
11
|
-
}, className);
|
|
12
|
-
};
|
|
13
|
-
export { getClasses };
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import "./ImageGallery.css";
|
|
3
|
-
import { forwardRef, useState } from "react";
|
|
4
|
-
import { ModalBase } from "../ModalBase.js";
|
|
5
|
-
import { getClasses } from "./ImageGallery.helper.js";
|
|
6
|
-
import { ImageGalleryContent } from "./ImageGalleryContent.js";
|
|
7
|
-
import { BaseGallery } from "./internal/BaseGallery.js";
|
|
8
|
-
import { CloseButton } from "./internal/CloseButton.js";
|
|
9
|
-
import { ImageGalleryContainer } from "./internal/ImageGalleryContainer.js";
|
|
10
|
-
import { ImageGalleryPagination } from "./internal/ImageGalleryPagination.js";
|
|
11
|
-
import { ScaleButton } from "./internal/ScaleButton.js";
|
|
12
|
-
function getLength(pagination, images) {
|
|
13
|
-
let length = 0;
|
|
14
|
-
if ('number' == typeof pagination) length = pagination;
|
|
15
|
-
else if (true === pagination && images?.length) length = images.length;
|
|
16
|
-
return length;
|
|
17
|
-
}
|
|
18
|
-
const ImageGallery = /*#__PURE__*/ forwardRef(({ isOpen, startIndex, images, thumbnailImages, descriptiveContent, children, className, pagination, showScaleButton, onClose, onSlideChanged, onScaleChange, ...props }, ref)=>{
|
|
19
|
-
const [currentIndex, setCurrentIndex] = useState(startIndex + 1);
|
|
20
|
-
function handleChange(index) {
|
|
21
|
-
setCurrentIndex(index + 1);
|
|
22
|
-
onSlideChanged?.(index);
|
|
23
|
-
}
|
|
24
|
-
function handleClose() {
|
|
25
|
-
setCurrentIndex(startIndex + 1);
|
|
26
|
-
onClose?.();
|
|
27
|
-
}
|
|
28
|
-
const hasDescriptiveContent = Boolean(descriptiveContent);
|
|
29
|
-
const classes = getClasses(thumbnailImages, hasDescriptiveContent, className);
|
|
30
|
-
const length = getLength(pagination, images);
|
|
31
|
-
return /*#__PURE__*/ jsx(ModalBase, {
|
|
32
|
-
onClose: handleClose,
|
|
33
|
-
className: classes,
|
|
34
|
-
...props,
|
|
35
|
-
isOpen: isOpen,
|
|
36
|
-
ref: ref,
|
|
37
|
-
children: isOpen && /*#__PURE__*/ jsxs(Fragment, {
|
|
38
|
-
children: [
|
|
39
|
-
/*#__PURE__*/ jsxs("div", {
|
|
40
|
-
className: "fwe-image-gallery-header",
|
|
41
|
-
children: [
|
|
42
|
-
/*#__PURE__*/ jsx(ImageGalleryPagination, {
|
|
43
|
-
currentIndex: currentIndex,
|
|
44
|
-
length: length
|
|
45
|
-
}),
|
|
46
|
-
showScaleButton ? /*#__PURE__*/ jsx(ScaleButton, {
|
|
47
|
-
onScaleChange: onScaleChange
|
|
48
|
-
}) : null,
|
|
49
|
-
/*#__PURE__*/ jsx(CloseButton, {
|
|
50
|
-
showScaleButton: showScaleButton,
|
|
51
|
-
onClose: onClose
|
|
52
|
-
})
|
|
53
|
-
]
|
|
54
|
-
}),
|
|
55
|
-
/*#__PURE__*/ jsxs(ImageGalleryContainer, {
|
|
56
|
-
descriptiveContent: hasDescriptiveContent,
|
|
57
|
-
children: [
|
|
58
|
-
/*#__PURE__*/ jsx(BaseGallery, {
|
|
59
|
-
startIndex: startIndex,
|
|
60
|
-
images: images,
|
|
61
|
-
thumbnailImages: thumbnailImages,
|
|
62
|
-
onSlideChanged: handleChange,
|
|
63
|
-
children: children
|
|
64
|
-
}),
|
|
65
|
-
images && true === descriptiveContent ? /*#__PURE__*/ jsx(ImageGalleryContent, {
|
|
66
|
-
imageContent: images?.[currentIndex - 1]?.content
|
|
67
|
-
}) : null,
|
|
68
|
-
'function' == typeof descriptiveContent ? descriptiveContent?.(currentIndex - 1) : null
|
|
69
|
-
]
|
|
70
|
-
})
|
|
71
|
-
]
|
|
72
|
-
})
|
|
73
|
-
});
|
|
74
|
-
});
|
|
75
|
-
export { ImageGallery };
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import gallery_01 from "../../../../../web-essentials/stories/assets/gallery-01.webp";
|
|
3
|
-
import gallery_02 from "../../../../../web-essentials/stories/assets/gallery-02.webp";
|
|
4
|
-
import gallery_03 from "../../../../../web-essentials/stories/assets/gallery-03.webp";
|
|
5
|
-
import gallery_04 from "../../../../../web-essentials/stories/assets/gallery-04.webp";
|
|
6
|
-
import gallery_05 from "../../../../../web-essentials/stories/assets/gallery-05.webp";
|
|
7
|
-
import gallery_06 from "../../../../../web-essentials/stories/assets/gallery-06.webp";
|
|
8
|
-
import gallery_07 from "../../../../../web-essentials/stories/assets/gallery-07.webp";
|
|
9
|
-
import gallery_08 from "../../../../../web-essentials/stories/assets/gallery-08.webp";
|
|
10
|
-
import gallery_09 from "../../../../../web-essentials/stories/assets/gallery-09.webp";
|
|
11
|
-
import gallery_10 from "../../../../../web-essentials/stories/assets/gallery-10.webp";
|
|
12
|
-
const ImageGallery_stories_helper_images = [
|
|
13
|
-
{
|
|
14
|
-
src: gallery_01,
|
|
15
|
-
alt: 'Asset1',
|
|
16
|
-
imageContent: {
|
|
17
|
-
title: 'Asset 1',
|
|
18
|
-
body: "Asset 1 description"
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
src: gallery_02,
|
|
23
|
-
alt: 'Asset2',
|
|
24
|
-
containMode: true,
|
|
25
|
-
imageContent: {
|
|
26
|
-
title: 'Asset 2',
|
|
27
|
-
body: /*#__PURE__*/ jsxs(Fragment, {
|
|
28
|
-
children: [
|
|
29
|
-
/*#__PURE__*/ jsx("p", {
|
|
30
|
-
children: "Asset 2 description with some html inside."
|
|
31
|
-
}),
|
|
32
|
-
/*#__PURE__*/ jsxs("ul", {
|
|
33
|
-
children: [
|
|
34
|
-
/*#__PURE__*/ jsx("li", {
|
|
35
|
-
children: "bullet point 1"
|
|
36
|
-
}),
|
|
37
|
-
/*#__PURE__*/ jsx("li", {
|
|
38
|
-
children: "bullet point 2"
|
|
39
|
-
})
|
|
40
|
-
]
|
|
41
|
-
})
|
|
42
|
-
]
|
|
43
|
-
})
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
src: gallery_03,
|
|
48
|
-
alt: 'Asset3',
|
|
49
|
-
containMode: true,
|
|
50
|
-
imageContent: {
|
|
51
|
-
title: 'Asset 3',
|
|
52
|
-
body: "Asset 3 description"
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
src: gallery_04,
|
|
57
|
-
alt: 'Asset4',
|
|
58
|
-
imageContent: {
|
|
59
|
-
title: 'Asset 4',
|
|
60
|
-
body: "Asset 4 description"
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
src: gallery_05,
|
|
65
|
-
alt: 'Asset5',
|
|
66
|
-
imageContent: {
|
|
67
|
-
title: 'Asset 5',
|
|
68
|
-
body: "Asset 5 description"
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
src: gallery_06,
|
|
73
|
-
alt: 'Asset6',
|
|
74
|
-
imageContent: {
|
|
75
|
-
title: 'Asset 6',
|
|
76
|
-
body: "Asset 6 description"
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
src: gallery_07,
|
|
81
|
-
alt: 'Asset7',
|
|
82
|
-
imageContent: {
|
|
83
|
-
title: 'Asset 7',
|
|
84
|
-
body: "Asset 7 description"
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
src: gallery_08,
|
|
89
|
-
alt: 'Asset8',
|
|
90
|
-
imageContent: {
|
|
91
|
-
title: 'Asset 8',
|
|
92
|
-
body: "Asset 8 description"
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
src: gallery_09,
|
|
97
|
-
alt: 'Asset9',
|
|
98
|
-
imageContent: {
|
|
99
|
-
title: 'Asset 9',
|
|
100
|
-
body: "Asset 9 description"
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
src: gallery_10,
|
|
105
|
-
alt: 'Asset10',
|
|
106
|
-
imageContent: {
|
|
107
|
-
title: 'Asset 10',
|
|
108
|
-
body: "Asset 1\xdf description"
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
];
|
|
112
|
-
export { ImageGallery_stories_helper_images as images };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
function ImageGalleryContent({ imageContent }) {
|
|
3
|
-
return /*#__PURE__*/ jsx(Fragment, {
|
|
4
|
-
children: imageContent && /*#__PURE__*/ jsxs("div", {
|
|
5
|
-
className: "fwe-image-gallery-content",
|
|
6
|
-
children: [
|
|
7
|
-
/*#__PURE__*/ jsx("h3", {
|
|
8
|
-
children: imageContent.title
|
|
9
|
-
}),
|
|
10
|
-
imageContent.body
|
|
11
|
-
]
|
|
12
|
-
})
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
export { ImageGalleryContent };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
interface ImageGallerySwiperProps {
|
|
2
|
-
children: React.ReactNode;
|
|
3
|
-
}
|
|
4
|
-
export declare function ImageGallerySwiper({ children }: ImageGallerySwiperProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare namespace ImageGallerySwiper {
|
|
6
|
-
var displayName: string;
|
|
7
|
-
}
|
|
8
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useContext } from "react";
|
|
3
|
-
import { Navigation, Thumbs } from "swiper/modules";
|
|
4
|
-
import { Swiper } from "swiper/react";
|
|
5
|
-
import { ImageGalleryContext } from "./ImageGalleryContext.js";
|
|
6
|
-
function ImageGallerySwiper({ children }) {
|
|
7
|
-
const { thumbsSwiper, startIndex, onSlideChanged } = useContext(ImageGalleryContext);
|
|
8
|
-
return /*#__PURE__*/ jsx(Swiper, {
|
|
9
|
-
initialSlide: startIndex,
|
|
10
|
-
thumbs: {
|
|
11
|
-
swiper: thumbsSwiper
|
|
12
|
-
},
|
|
13
|
-
modules: [
|
|
14
|
-
Thumbs,
|
|
15
|
-
Navigation
|
|
16
|
-
],
|
|
17
|
-
navigation: {
|
|
18
|
-
nextEl: '.fwe-navigate-btn-up',
|
|
19
|
-
prevEl: '.fwe-navigate-btn-down'
|
|
20
|
-
},
|
|
21
|
-
zoom: true,
|
|
22
|
-
className: "gallery-swiper fwe-image-gallery",
|
|
23
|
-
spaceBetween: 0,
|
|
24
|
-
onSlideChange: (slider)=>onSlideChanged?.(slider.activeIndex),
|
|
25
|
-
children: children
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
ImageGallerySwiper.displayName = 'Swiper';
|
|
29
|
-
export { ImageGallerySwiper };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useContext } from "react";
|
|
3
|
-
import { Thumbs } from "swiper/modules";
|
|
4
|
-
import { Swiper } from "swiper/react";
|
|
5
|
-
import { ImageGalleryContext, SwiperContext } from "./ImageGalleryContext.js";
|
|
6
|
-
function ImageGalleryThumbsSwiper({ children }) {
|
|
7
|
-
const { setThumbsSwiper } = useContext(ImageGalleryContext);
|
|
8
|
-
return /*#__PURE__*/ jsx(SwiperContext.Provider, {
|
|
9
|
-
value: "thumbs",
|
|
10
|
-
children: /*#__PURE__*/ jsx(Swiper, {
|
|
11
|
-
freeMode: true,
|
|
12
|
-
slidesPerView: "auto",
|
|
13
|
-
className: "thumbs-swiper fwe-image-gallery-thumbs",
|
|
14
|
-
modules: [
|
|
15
|
-
Thumbs
|
|
16
|
-
],
|
|
17
|
-
watchSlidesProgress: true,
|
|
18
|
-
onSwiper: setThumbsSwiper,
|
|
19
|
-
children: children
|
|
20
|
-
})
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
export { ImageGalleryThumbsSwiper };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type SwiperSlideProps } from 'swiper/react';
|
|
2
|
-
import './ImageGalleryItem.scss';
|
|
3
|
-
interface ImageGalleryItemProps extends SwiperSlideProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
containMode?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare function ImageGalleryItem({ children, containMode, className, ...props }: ImageGalleryItemProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export declare namespace ImageGalleryItem {
|
|
9
|
-
var displayName: string;
|
|
10
|
-
}
|
|
11
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import classnames from "classnames";
|
|
3
|
-
import { SwiperSlide } from "swiper/react";
|
|
4
|
-
import "./ImageGalleryItem.css";
|
|
5
|
-
import { useContext } from "react";
|
|
6
|
-
import { SwiperContext } from "../ImageGalleryContext.js";
|
|
7
|
-
function ImageGalleryItem({ children, containMode, className, ...props }) {
|
|
8
|
-
const swiperType = useContext(SwiperContext);
|
|
9
|
-
const isThumbsSwiper = 'thumbs' === swiperType;
|
|
10
|
-
return /*#__PURE__*/ jsx(SwiperSlide, {
|
|
11
|
-
...props,
|
|
12
|
-
className: classnames(className, {
|
|
13
|
-
'fr-image-gallery-item--contain': containMode && isThumbsSwiper
|
|
14
|
-
}),
|
|
15
|
-
children: isThumbsSwiper ? children : /*#__PURE__*/ jsx("div", {
|
|
16
|
-
className: classnames('swiper-zoom-container', {
|
|
17
|
-
'fr-image-gallery-item--contain': containMode
|
|
18
|
-
}),
|
|
19
|
-
children: children
|
|
20
|
-
})
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
ImageGalleryItem.displayName = 'SwiperSlide';
|
|
24
|
-
export { ImageGalleryItem };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import type { ClassNamePropsWithChildren } from '../../../../utils/types';
|
|
3
|
-
import type { ImageDescriptiveContent } from '../ImageGalleryContent';
|
|
4
|
-
export interface ImageGalleryItemDataBase extends ComponentPropsWithoutRef<'img'>, Record<string, unknown> {
|
|
5
|
-
containMode?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export type ImageGalleryItemData = {
|
|
8
|
-
content?: ImageDescriptiveContent;
|
|
9
|
-
} & ImageGalleryItemDataBase;
|
|
10
|
-
interface BaseGalleryProps extends ClassNamePropsWithChildren {
|
|
11
|
-
readonly images?: ImageGalleryItemData[];
|
|
12
|
-
readonly thumbnailImages?: ImageGalleryItemDataBase[];
|
|
13
|
-
readonly onSlideChanged?: (value: number) => void;
|
|
14
|
-
readonly startIndex?: number;
|
|
15
|
-
}
|
|
16
|
-
export declare function BaseGallery({ images, thumbnailImages, onSlideChanged, startIndex, children, }: BaseGalleryProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export {};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo, useState } from "react";
|
|
3
|
-
import { ImageGalleryContext } from "../ImageGalleryContext.js";
|
|
4
|
-
import { ImageGallerySwiper } from "../ImageGallerySwiper.js";
|
|
5
|
-
import { ImageGalleryThumbsSwiper } from "../ImageGalleryThumbsSwiper.js";
|
|
6
|
-
import { ImageGalleryItem } from "../image-gallery-item/ImageGalleryItem.js";
|
|
7
|
-
function BaseGallery({ images, thumbnailImages, onSlideChanged, startIndex, children }) {
|
|
8
|
-
const [thumbsSwiper, setThumbsSwiper] = useState(null);
|
|
9
|
-
const contextValue = useMemo(()=>({
|
|
10
|
-
thumbsSwiper,
|
|
11
|
-
setThumbsSwiper,
|
|
12
|
-
onSlideChanged,
|
|
13
|
-
startIndex
|
|
14
|
-
}), [
|
|
15
|
-
thumbsSwiper,
|
|
16
|
-
onSlideChanged,
|
|
17
|
-
startIndex
|
|
18
|
-
]);
|
|
19
|
-
return /*#__PURE__*/ jsx(ImageGalleryContext.Provider, {
|
|
20
|
-
value: contextValue,
|
|
21
|
-
children: /*#__PURE__*/ jsx("div", {
|
|
22
|
-
className: "fwe-image-gallery-wrapper",
|
|
23
|
-
children: children || /*#__PURE__*/ jsxs(Fragment, {
|
|
24
|
-
children: [
|
|
25
|
-
/*#__PURE__*/ jsx(ImageGallerySwiper, {
|
|
26
|
-
children: images?.map(({ containMode, alt, content, ...image })=>/*#__PURE__*/ jsx(ImageGalleryItem, {
|
|
27
|
-
containMode: containMode,
|
|
28
|
-
children: /*#__PURE__*/ jsx("img", {
|
|
29
|
-
...image,
|
|
30
|
-
className: image.className,
|
|
31
|
-
alt: alt
|
|
32
|
-
})
|
|
33
|
-
}, image.src))
|
|
34
|
-
}),
|
|
35
|
-
thumbnailImages && /*#__PURE__*/ jsx(ImageGalleryThumbsSwiper, {
|
|
36
|
-
children: thumbnailImages.map(({ containMode, alt, content, ...image })=>/*#__PURE__*/ jsx(ImageGalleryItem, {
|
|
37
|
-
containMode: containMode,
|
|
38
|
-
children: /*#__PURE__*/ jsx("img", {
|
|
39
|
-
...image,
|
|
40
|
-
className: image.className,
|
|
41
|
-
alt: alt
|
|
42
|
-
})
|
|
43
|
-
}, image.src))
|
|
44
|
-
})
|
|
45
|
-
]
|
|
46
|
-
})
|
|
47
|
-
})
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
export { BaseGallery };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import classnames from "classnames";
|
|
3
|
-
function CloseButton({ onClose, showScaleButton }) {
|
|
4
|
-
return /*#__PURE__*/ jsx("button", {
|
|
5
|
-
type: "button",
|
|
6
|
-
"aria-label": "close",
|
|
7
|
-
className: classnames('fwe-image-gallery-close-btn', {
|
|
8
|
-
'fwe-ml-auto': !showScaleButton,
|
|
9
|
-
'fwe-ml-3': showScaleButton
|
|
10
|
-
}),
|
|
11
|
-
onClick: onClose
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
export { CloseButton };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export interface ImageGalleryContainerProps {
|
|
2
|
-
children: React.ReactNode;
|
|
3
|
-
descriptiveContent?: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare function ImageGalleryContainer({ children, descriptiveContent, }: ImageGalleryContainerProps): string | number | boolean | Iterable<import("react").ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
function ImageGalleryContainer({ children, descriptiveContent }) {
|
|
3
|
-
return descriptiveContent ? /*#__PURE__*/ jsx("div", {
|
|
4
|
-
className: "fwe-image-gallery-container",
|
|
5
|
-
children: children
|
|
6
|
-
}) : children;
|
|
7
|
-
}
|
|
8
|
-
export { ImageGalleryContainer };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
function ImageGalleryPagination({ currentIndex, length }) {
|
|
3
|
-
return /*#__PURE__*/ jsx(Fragment, {
|
|
4
|
-
children: length && /*#__PURE__*/ jsxs("div", {
|
|
5
|
-
className: "fwe-pagination fwe-pagination--on-dark-bg",
|
|
6
|
-
children: [
|
|
7
|
-
/*#__PURE__*/ jsx("button", {
|
|
8
|
-
"aria-label": "previous",
|
|
9
|
-
type: "button",
|
|
10
|
-
className: "fwe-navigate-btn-down"
|
|
11
|
-
}),
|
|
12
|
-
/*#__PURE__*/ jsx("span", {
|
|
13
|
-
className: "fwe-page-current",
|
|
14
|
-
children: currentIndex
|
|
15
|
-
}),
|
|
16
|
-
/*#__PURE__*/ jsx("span", {
|
|
17
|
-
className: "fwe-page-max",
|
|
18
|
-
children: length
|
|
19
|
-
}),
|
|
20
|
-
/*#__PURE__*/ jsx("button", {
|
|
21
|
-
"aria-label": "next",
|
|
22
|
-
type: "button",
|
|
23
|
-
className: "fwe-navigate-btn-up"
|
|
24
|
-
})
|
|
25
|
-
]
|
|
26
|
-
})
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
export { ImageGalleryPagination };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useState } from "react";
|
|
3
|
-
function ScaleButton({ onScaleChange }) {
|
|
4
|
-
const [isScaled, setScaled] = useState(false);
|
|
5
|
-
function handleScale() {
|
|
6
|
-
const newScaled = !isScaled;
|
|
7
|
-
setScaled(newScaled);
|
|
8
|
-
onScaleChange?.(newScaled);
|
|
9
|
-
}
|
|
10
|
-
return /*#__PURE__*/ jsx("button", {
|
|
11
|
-
type: "button",
|
|
12
|
-
"aria-label": "scale up",
|
|
13
|
-
className: "fwe-image-gallery-scale-btn fwe-ml-auto",
|
|
14
|
-
onClick: handleScale
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
export { ScaleButton };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import './Pagination.scss';
|
|
2
|
-
import type { ClassNameProps } from '../../utils/types';
|
|
3
|
-
export declare enum PaginationType {
|
|
4
|
-
Simple = "SIMPLE",
|
|
5
|
-
Numeric = "NUMERIC",
|
|
6
|
-
Dots = "DOTS"
|
|
7
|
-
}
|
|
8
|
-
export interface PaginationProps extends ClassNameProps {
|
|
9
|
-
readonly type?: PaginationType;
|
|
10
|
-
readonly onChange?: (page: number) => void;
|
|
11
|
-
readonly pageCurrent?: number;
|
|
12
|
-
readonly defaultPageCurrent?: number;
|
|
13
|
-
readonly pageMax: number;
|
|
14
|
-
}
|
|
15
|
-
export declare function Pagination(props: PaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import "./Pagination.css";
|
|
3
|
-
import classnames from "classnames";
|
|
4
|
-
import { useEffect, useState } from "react";
|
|
5
|
-
var Pagination_PaginationType = /*#__PURE__*/ function(PaginationType) {
|
|
6
|
-
PaginationType["Simple"] = "SIMPLE";
|
|
7
|
-
PaginationType["Numeric"] = "NUMERIC";
|
|
8
|
-
PaginationType["Dots"] = "DOTS";
|
|
9
|
-
return PaginationType;
|
|
10
|
-
}({});
|
|
11
|
-
function Pagination(props) {
|
|
12
|
-
const { pageMax, onChange, pageCurrent, defaultPageCurrent = 1, type = "NUMERIC", className } = props;
|
|
13
|
-
const controlled = void 0 !== pageCurrent;
|
|
14
|
-
const dotArray = Array.from(new Array(pageMax).keys());
|
|
15
|
-
const [innerPageCurrent, setInnerPageCurrent] = useState(controlled ? pageCurrent : defaultPageCurrent);
|
|
16
|
-
useEffect(()=>{
|
|
17
|
-
if (controlled) setInnerPageCurrent(pageCurrent);
|
|
18
|
-
}, [
|
|
19
|
-
pageCurrent,
|
|
20
|
-
controlled
|
|
21
|
-
]);
|
|
22
|
-
function handleChange(newPage) {
|
|
23
|
-
if (!controlled) setInnerPageCurrent(newPage);
|
|
24
|
-
if (onChange) onChange(newPage);
|
|
25
|
-
}
|
|
26
|
-
function onBtnDown() {
|
|
27
|
-
if (innerPageCurrent > 1) {
|
|
28
|
-
const newPageCurrent = innerPageCurrent - 1;
|
|
29
|
-
handleChange(newPageCurrent);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
function onBtnUp() {
|
|
33
|
-
if (innerPageCurrent < pageMax) {
|
|
34
|
-
const newPageCurrent = innerPageCurrent + 1;
|
|
35
|
-
handleChange(newPageCurrent);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
function onDotClick(index) {
|
|
39
|
-
const newPageCurrent = index + 1;
|
|
40
|
-
handleChange(newPageCurrent);
|
|
41
|
-
}
|
|
42
|
-
return /*#__PURE__*/ jsxs(Fragment, {
|
|
43
|
-
children: [
|
|
44
|
-
"DOTS" !== type && /*#__PURE__*/ jsxs("div", {
|
|
45
|
-
className: classnames('fwe-pagination fwe-p-m', {
|
|
46
|
-
'fwe-d-none': pageMax < 2
|
|
47
|
-
}, className),
|
|
48
|
-
children: [
|
|
49
|
-
/*#__PURE__*/ jsx("button", {
|
|
50
|
-
className: classnames('fwe-navigate-btn-down', {
|
|
51
|
-
'fwe-disabled': innerPageCurrent <= 1
|
|
52
|
-
}),
|
|
53
|
-
onClick: onBtnDown,
|
|
54
|
-
type: "button",
|
|
55
|
-
"aria-label": "navigate-btn-down"
|
|
56
|
-
}),
|
|
57
|
-
"NUMERIC" === type && /*#__PURE__*/ jsxs(Fragment, {
|
|
58
|
-
children: [
|
|
59
|
-
/*#__PURE__*/ jsx("span", {
|
|
60
|
-
className: "fwe-page-current",
|
|
61
|
-
children: innerPageCurrent
|
|
62
|
-
}),
|
|
63
|
-
/*#__PURE__*/ jsx("span", {
|
|
64
|
-
className: "fwe-page-max",
|
|
65
|
-
children: pageMax
|
|
66
|
-
})
|
|
67
|
-
]
|
|
68
|
-
}),
|
|
69
|
-
/*#__PURE__*/ jsx("button", {
|
|
70
|
-
className: classnames('fwe-navigate-btn-up', {
|
|
71
|
-
'fwe-disabled': innerPageCurrent >= pageMax,
|
|
72
|
-
'fwe-ml-4': "SIMPLE" === type
|
|
73
|
-
}),
|
|
74
|
-
onClick: onBtnUp,
|
|
75
|
-
type: "button",
|
|
76
|
-
"aria-label": "navigate-btn-up"
|
|
77
|
-
})
|
|
78
|
-
]
|
|
79
|
-
}),
|
|
80
|
-
"DOTS" === type && /*#__PURE__*/ jsx("div", {
|
|
81
|
-
className: classnames('fwe-p-m', {
|
|
82
|
-
'fwe-d-none': pageMax < 2
|
|
83
|
-
}, className),
|
|
84
|
-
children: /*#__PURE__*/ jsx("div", {
|
|
85
|
-
className: "fwe-pagination",
|
|
86
|
-
children: dotArray.map((index)=>/*#__PURE__*/ jsx("button", {
|
|
87
|
-
type: "button",
|
|
88
|
-
className: classnames('fwe-page-dot', {
|
|
89
|
-
'fwe-selected': index + 1 === innerPageCurrent
|
|
90
|
-
}),
|
|
91
|
-
onClick: ()=>onDotClick(index),
|
|
92
|
-
"aria-label": `Go to page ${index + 1}`,
|
|
93
|
-
"aria-current": index + 1 === innerPageCurrent ? 'page' : void 0
|
|
94
|
-
}, index))
|
|
95
|
-
})
|
|
96
|
-
})
|
|
97
|
-
]
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
export { Pagination, Pagination_PaginationType as PaginationType };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
.fr-legend {
|
|
2
|
-
margin: 16px;
|
|
3
|
-
line-height: 24px;
|
|
4
|
-
display: table;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.fr-legend .fr-legend-content {
|
|
8
|
-
display: table-row;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.fr-legend .fr-legend-content dt {
|
|
12
|
-
margin: 0;
|
|
13
|
-
padding-right: 8px;
|
|
14
|
-
display: table-cell;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.fr-legend .fr-legend-content dd {
|
|
18
|
-
margin: 0;
|
|
19
|
-
display: table-cell;
|
|
20
|
-
}
|
|
21
|
-
|