@hitachivantara/uikit-react-lab 4.0.2 → 4.0.4
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/dist/ColorPicker/ColorPicker.js +25 -78
- package/dist/ColorPicker/ColorPicker.js.map +1 -1
- package/dist/ColorPicker/Fields/Fields.js +15 -47
- package/dist/ColorPicker/Fields/Fields.js.map +1 -1
- package/dist/ColorPicker/Fields/index.js +0 -2
- package/dist/ColorPicker/Fields/index.js.map +1 -1
- package/dist/ColorPicker/Fields/styles.js +0 -2
- package/dist/ColorPicker/Fields/styles.js.map +1 -1
- package/dist/ColorPicker/Picker/Picker.js +5 -23
- package/dist/ColorPicker/Picker/Picker.js.map +1 -1
- package/dist/ColorPicker/Picker/index.js +0 -2
- package/dist/ColorPicker/Picker/index.js.map +1 -1
- package/dist/ColorPicker/Picker/styles.js +0 -2
- package/dist/ColorPicker/Picker/styles.js.map +1 -1
- package/dist/ColorPicker/PresetColors/PresetColors.js +2 -24
- package/dist/ColorPicker/PresetColors/PresetColors.js.map +1 -1
- package/dist/ColorPicker/PresetColors/index.js +0 -2
- package/dist/ColorPicker/PresetColors/index.js.map +1 -1
- package/dist/ColorPicker/PresetColors/styles.js +0 -2
- package/dist/ColorPicker/PresetColors/styles.js.map +1 -1
- package/dist/ColorPicker/index.js +0 -2
- package/dist/ColorPicker/index.js.map +1 -1
- package/dist/ColorPicker/styles.js +0 -2
- package/dist/ColorPicker/styles.js.map +1 -1
- package/dist/Drawer/Drawer.js +10 -50
- package/dist/Drawer/Drawer.js.map +1 -1
- package/dist/Drawer/index.js +0 -2
- package/dist/Drawer/index.js.map +1 -1
- package/dist/Drawer/styles.js +0 -3
- package/dist/Drawer/styles.js.map +1 -1
- package/dist/ImageCarousel/ImageCarousel.js +46 -149
- package/dist/ImageCarousel/ImageCarousel.js.map +1 -1
- package/dist/ImageCarousel/index.js +0 -2
- package/dist/ImageCarousel/index.js.map +1 -1
- package/dist/ImageCarousel/styles.js +0 -5
- package/dist/ImageCarousel/styles.js.map +1 -1
- package/dist/InlineEditor/InlineEditor.js +25 -82
- package/dist/InlineEditor/InlineEditor.js.map +1 -1
- package/dist/InlineEditor/index.js +0 -2
- package/dist/InlineEditor/index.js.map +1 -1
- package/dist/InlineEditor/styles.js +0 -14
- package/dist/InlineEditor/styles.js.map +1 -1
- package/dist/NavigationAnchors/NavigationAnchors.js +44 -116
- package/dist/NavigationAnchors/NavigationAnchors.js.map +1 -1
- package/dist/NavigationAnchors/NavigationOption.js +0 -10
- package/dist/NavigationAnchors/NavigationOption.js.map +1 -1
- package/dist/NavigationAnchors/index.js +0 -2
- package/dist/NavigationAnchors/index.js.map +1 -1
- package/dist/NavigationAnchors/styles.js +0 -2
- package/dist/NavigationAnchors/styles.js.map +1 -1
- package/dist/NotificationPanel/EmptyStatePanel/EmptyStatePanel.js +5 -26
- package/dist/NotificationPanel/EmptyStatePanel/EmptyStatePanel.js.map +1 -1
- package/dist/NotificationPanel/EmptyStatePanel/index.js +0 -2
- package/dist/NotificationPanel/EmptyStatePanel/index.js.map +1 -1
- package/dist/NotificationPanel/EmptyStatePanel/styles.js +0 -2
- package/dist/NotificationPanel/EmptyStatePanel/styles.js.map +1 -1
- package/dist/NotificationPanel/Notification/Notification.js +12 -57
- package/dist/NotificationPanel/Notification/Notification.js.map +1 -1
- package/dist/NotificationPanel/Notification/index.js +0 -2
- package/dist/NotificationPanel/Notification/index.js.map +1 -1
- package/dist/NotificationPanel/Notification/styles.js +0 -14
- package/dist/NotificationPanel/Notification/styles.js.map +1 -1
- package/dist/NotificationPanel/NotificationPanel.js +23 -92
- package/dist/NotificationPanel/NotificationPanel.js.map +1 -1
- package/dist/NotificationPanel/NotificationsIndicator/NotificationsIndicator.js +4 -35
- package/dist/NotificationPanel/NotificationsIndicator/NotificationsIndicator.js.map +1 -1
- package/dist/NotificationPanel/NotificationsIndicator/index.js +0 -2
- package/dist/NotificationPanel/NotificationsIndicator/index.js.map +1 -1
- package/dist/NotificationPanel/NotificationsIndicator/styles.js +0 -2
- package/dist/NotificationPanel/NotificationsIndicator/styles.js.map +1 -1
- package/dist/NotificationPanel/index.js +0 -2
- package/dist/NotificationPanel/index.js.map +1 -1
- package/dist/NotificationPanel/styles.js +0 -2
- package/dist/NotificationPanel/styles.js.map +1 -1
- package/dist/StepNavigation/DefaultNavigation/DefaultNavigation.js +15 -44
- package/dist/StepNavigation/DefaultNavigation/DefaultNavigation.js.map +1 -1
- package/dist/StepNavigation/DefaultNavigation/Step/Step.js +9 -41
- package/dist/StepNavigation/DefaultNavigation/Step/Step.js.map +1 -1
- package/dist/StepNavigation/DefaultNavigation/Step/index.js +0 -2
- package/dist/StepNavigation/DefaultNavigation/Step/index.js.map +1 -1
- package/dist/StepNavigation/DefaultNavigation/Step/styles.js +0 -2
- package/dist/StepNavigation/DefaultNavigation/Step/styles.js.map +1 -1
- package/dist/StepNavigation/DefaultNavigation/index.js +0 -2
- package/dist/StepNavigation/DefaultNavigation/index.js.map +1 -1
- package/dist/StepNavigation/DefaultNavigation/styles.js +0 -2
- package/dist/StepNavigation/DefaultNavigation/styles.js.map +1 -1
- package/dist/StepNavigation/DefaultNavigation/utils.js +0 -3
- package/dist/StepNavigation/DefaultNavigation/utils.js.map +1 -1
- package/dist/StepNavigation/SimpleNavigation/Dot/Dot.js +6 -47
- package/dist/StepNavigation/SimpleNavigation/Dot/Dot.js.map +1 -1
- package/dist/StepNavigation/SimpleNavigation/Dot/index.js +0 -2
- package/dist/StepNavigation/SimpleNavigation/Dot/index.js.map +1 -1
- package/dist/StepNavigation/SimpleNavigation/Dot/styles.js.map +1 -1
- package/dist/StepNavigation/SimpleNavigation/SimpleNavigation.js +14 -44
- package/dist/StepNavigation/SimpleNavigation/SimpleNavigation.js.map +1 -1
- package/dist/StepNavigation/SimpleNavigation/index.js +0 -2
- package/dist/StepNavigation/SimpleNavigation/index.js.map +1 -1
- package/dist/StepNavigation/SimpleNavigation/styles.js +0 -2
- package/dist/StepNavigation/SimpleNavigation/styles.js.map +1 -1
- package/dist/StepNavigation/SimpleNavigation/utils.js +0 -6
- package/dist/StepNavigation/SimpleNavigation/utils.js.map +1 -1
- package/dist/StepNavigation/StepNavigation.js +39 -106
- package/dist/StepNavigation/StepNavigation.js.map +1 -1
- package/dist/StepNavigation/index.js +0 -2
- package/dist/StepNavigation/index.js.map +1 -1
- package/dist/StepNavigation/styles.js +0 -2
- package/dist/StepNavigation/styles.js.map +1 -1
- package/dist/StepNavigation/utils.js.map +1 -1
- package/dist/TimeAgo/TimeAgo.js +13 -44
- package/dist/TimeAgo/TimeAgo.js.map +1 -1
- package/dist/TimeAgo/formatUtils.js +15 -35
- package/dist/TimeAgo/formatUtils.js.map +1 -1
- package/dist/TimeAgo/index.js +0 -3
- package/dist/TimeAgo/index.js.map +1 -1
- package/dist/TimeAgo/styles.js.map +1 -1
- package/dist/TimeAgo/useTimeAgo.js +7 -16
- package/dist/TimeAgo/useTimeAgo.js.map +1 -1
- package/dist/TimeAgo/useTimeout.js +0 -2
- package/dist/TimeAgo/useTimeout.js.map +1 -1
- package/dist/Wizard/Wizard.d.ts +5 -5
- package/dist/Wizard/Wizard.js +33 -85
- package/dist/Wizard/Wizard.js.map +1 -1
- package/dist/Wizard/WizardActions/WizardActions.d.ts +2 -2
- package/dist/Wizard/WizardActions/WizardActions.js +31 -86
- package/dist/Wizard/WizardActions/WizardActions.js.map +1 -1
- package/dist/Wizard/WizardActions/index.js +0 -2
- package/dist/Wizard/WizardActions/index.js.map +1 -1
- package/dist/Wizard/WizardActions/styles.js +0 -2
- package/dist/Wizard/WizardActions/styles.js.map +1 -1
- package/dist/Wizard/WizardContainer/WizardContainer.js +5 -35
- package/dist/Wizard/WizardContainer/WizardContainer.js.map +1 -1
- package/dist/Wizard/WizardContainer/index.js +0 -2
- package/dist/Wizard/WizardContainer/index.js.map +1 -1
- package/dist/Wizard/WizardContainer/styles.js +0 -2
- package/dist/Wizard/WizardContainer/styles.js.map +1 -1
- package/dist/Wizard/WizardContent/LoadingContainer.js +2 -25
- package/dist/Wizard/WizardContent/LoadingContainer.js.map +1 -1
- package/dist/Wizard/WizardContent/WizardContent.d.ts +1 -1
- package/dist/Wizard/WizardContent/WizardContent.js +12 -55
- package/dist/Wizard/WizardContent/WizardContent.js.map +1 -1
- package/dist/Wizard/WizardContent/index.js +0 -2
- package/dist/Wizard/WizardContent/index.js.map +1 -1
- package/dist/Wizard/WizardContent/styles.js +0 -2
- package/dist/Wizard/WizardContent/styles.js.map +1 -1
- package/dist/Wizard/WizardContext/WizardContext.d.ts +12 -0
- package/dist/Wizard/WizardContext/WizardContext.js +0 -4
- package/dist/Wizard/WizardContext/WizardContext.js.map +1 -1
- package/dist/Wizard/WizardContext/WizardContextProvider.d.ts +28 -0
- package/dist/Wizard/WizardContext/WizardContextProvider.js +41 -0
- package/dist/Wizard/WizardContext/WizardContextProvider.js.map +1 -0
- package/dist/Wizard/WizardContext/index.d.ts +5 -0
- package/dist/Wizard/WizardContext/index.js +7 -2
- package/dist/Wizard/WizardContext/index.js.map +1 -1
- package/dist/Wizard/WizardTitle/WizardTitle.d.ts +7 -9
- package/dist/Wizard/WizardTitle/WizardTitle.js +18 -59
- package/dist/Wizard/WizardTitle/WizardTitle.js.map +1 -1
- package/dist/Wizard/WizardTitle/index.js +0 -2
- package/dist/Wizard/WizardTitle/index.js.map +1 -1
- package/dist/Wizard/WizardTitle/styles.js +0 -2
- package/dist/Wizard/WizardTitle/styles.js.map +1 -1
- package/dist/Wizard/index.d.ts +15 -0
- package/dist/Wizard/index.js +7 -7
- package/dist/Wizard/index.js.map +1 -1
- package/dist/Wizard/styles.js +0 -2
- package/dist/Wizard/styles.js.map +1 -1
- package/dist/index.js +12 -23
- package/dist/index.js.map +1 -1
- package/dist/legacy/ColorPicker/ColorPicker.js +26 -51
- package/dist/legacy/ColorPicker/ColorPicker.js.map +1 -1
- package/dist/legacy/ColorPicker/Fields/Fields.js +17 -27
- package/dist/legacy/ColorPicker/Fields/Fields.js.map +1 -1
- package/dist/legacy/ColorPicker/Fields/index.js.map +1 -1
- package/dist/legacy/ColorPicker/Fields/styles.js.map +1 -1
- package/dist/legacy/ColorPicker/Picker/Picker.js +7 -7
- package/dist/legacy/ColorPicker/Picker/Picker.js.map +1 -1
- package/dist/legacy/ColorPicker/Picker/index.js.map +1 -1
- package/dist/legacy/ColorPicker/Picker/styles.js.map +1 -1
- package/dist/legacy/ColorPicker/PresetColors/PresetColors.js +2 -7
- package/dist/legacy/ColorPicker/PresetColors/PresetColors.js.map +1 -1
- package/dist/legacy/ColorPicker/PresetColors/index.js.map +1 -1
- package/dist/legacy/ColorPicker/PresetColors/styles.js.map +1 -1
- package/dist/legacy/ColorPicker/index.js.map +1 -1
- package/dist/legacy/ColorPicker/styles.js +0 -1
- package/dist/legacy/ColorPicker/styles.js.map +1 -1
- package/dist/legacy/Drawer/Drawer.js +11 -30
- package/dist/legacy/Drawer/Drawer.js.map +1 -1
- package/dist/legacy/Drawer/index.js.map +1 -1
- package/dist/legacy/Drawer/styles.js +0 -2
- package/dist/legacy/Drawer/styles.js.map +1 -1
- package/dist/legacy/ImageCarousel/ImageCarousel.js +46 -120
- package/dist/legacy/ImageCarousel/ImageCarousel.js.map +1 -1
- package/dist/legacy/ImageCarousel/index.js.map +1 -1
- package/dist/legacy/ImageCarousel/styles.js +0 -3
- package/dist/legacy/ImageCarousel/styles.js.map +1 -1
- package/dist/legacy/InlineEditor/InlineEditor.js +26 -55
- package/dist/legacy/InlineEditor/InlineEditor.js.map +1 -1
- package/dist/legacy/InlineEditor/index.js.map +1 -1
- package/dist/legacy/InlineEditor/styles.js +0 -5
- package/dist/legacy/InlineEditor/styles.js.map +1 -1
- package/dist/legacy/NavigationAnchors/NavigationAnchors.js +44 -82
- package/dist/legacy/NavigationAnchors/NavigationAnchors.js.map +1 -1
- package/dist/legacy/NavigationAnchors/NavigationOption.js +0 -5
- package/dist/legacy/NavigationAnchors/NavigationOption.js.map +1 -1
- package/dist/legacy/NavigationAnchors/index.js.map +1 -1
- package/dist/legacy/NavigationAnchors/styles.js +0 -1
- package/dist/legacy/NavigationAnchors/styles.js.map +1 -1
- package/dist/legacy/NotificationPanel/EmptyStatePanel/EmptyStatePanel.js +5 -16
- package/dist/legacy/NotificationPanel/EmptyStatePanel/EmptyStatePanel.js.map +1 -1
- package/dist/legacy/NotificationPanel/EmptyStatePanel/index.js.map +1 -1
- package/dist/legacy/NotificationPanel/EmptyStatePanel/styles.js +0 -1
- package/dist/legacy/NotificationPanel/EmptyStatePanel/styles.js.map +1 -1
- package/dist/legacy/NotificationPanel/Notification/Notification.js +12 -44
- package/dist/legacy/NotificationPanel/Notification/Notification.js.map +1 -1
- package/dist/legacy/NotificationPanel/Notification/index.js.map +1 -1
- package/dist/legacy/NotificationPanel/Notification/styles.js +0 -5
- package/dist/legacy/NotificationPanel/Notification/styles.js.map +1 -1
- package/dist/legacy/NotificationPanel/NotificationPanel.js +23 -61
- package/dist/legacy/NotificationPanel/NotificationPanel.js.map +1 -1
- package/dist/legacy/NotificationPanel/NotificationsIndicator/NotificationsIndicator.js +4 -17
- package/dist/legacy/NotificationPanel/NotificationsIndicator/NotificationsIndicator.js.map +1 -1
- package/dist/legacy/NotificationPanel/NotificationsIndicator/index.js.map +1 -1
- package/dist/legacy/NotificationPanel/NotificationsIndicator/styles.js +0 -1
- package/dist/legacy/NotificationPanel/NotificationsIndicator/styles.js.map +1 -1
- package/dist/legacy/NotificationPanel/index.js.map +1 -1
- package/dist/legacy/NotificationPanel/styles.js +0 -1
- package/dist/legacy/NotificationPanel/styles.js.map +1 -1
- package/dist/legacy/StepNavigation/DefaultNavigation/DefaultNavigation.js +16 -27
- package/dist/legacy/StepNavigation/DefaultNavigation/DefaultNavigation.js.map +1 -1
- package/dist/legacy/StepNavigation/DefaultNavigation/Step/Step.js +10 -29
- package/dist/legacy/StepNavigation/DefaultNavigation/Step/Step.js.map +1 -1
- package/dist/legacy/StepNavigation/DefaultNavigation/Step/index.js.map +1 -1
- package/dist/legacy/StepNavigation/DefaultNavigation/Step/styles.js +0 -1
- package/dist/legacy/StepNavigation/DefaultNavigation/Step/styles.js.map +1 -1
- package/dist/legacy/StepNavigation/DefaultNavigation/index.js.map +1 -1
- package/dist/legacy/StepNavigation/DefaultNavigation/styles.js +0 -1
- package/dist/legacy/StepNavigation/DefaultNavigation/styles.js.map +1 -1
- package/dist/legacy/StepNavigation/DefaultNavigation/utils.js +0 -2
- package/dist/legacy/StepNavigation/DefaultNavigation/utils.js.map +1 -1
- package/dist/legacy/StepNavigation/SimpleNavigation/Dot/Dot.js +7 -21
- package/dist/legacy/StepNavigation/SimpleNavigation/Dot/Dot.js.map +1 -1
- package/dist/legacy/StepNavigation/SimpleNavigation/Dot/index.js.map +1 -1
- package/dist/legacy/StepNavigation/SimpleNavigation/Dot/styles.js.map +1 -1
- package/dist/legacy/StepNavigation/SimpleNavigation/SimpleNavigation.js +15 -26
- package/dist/legacy/StepNavigation/SimpleNavigation/SimpleNavigation.js.map +1 -1
- package/dist/legacy/StepNavigation/SimpleNavigation/index.js.map +1 -1
- package/dist/legacy/StepNavigation/SimpleNavigation/styles.js +0 -1
- package/dist/legacy/StepNavigation/SimpleNavigation/styles.js.map +1 -1
- package/dist/legacy/StepNavigation/SimpleNavigation/utils.js +0 -6
- package/dist/legacy/StepNavigation/SimpleNavigation/utils.js.map +1 -1
- package/dist/legacy/StepNavigation/StepNavigation.js +40 -78
- package/dist/legacy/StepNavigation/StepNavigation.js.map +1 -1
- package/dist/legacy/StepNavigation/index.js.map +1 -1
- package/dist/legacy/StepNavigation/styles.js +0 -1
- package/dist/legacy/StepNavigation/styles.js.map +1 -1
- package/dist/legacy/StepNavigation/utils.js.map +1 -1
- package/dist/legacy/TimeAgo/TimeAgo.js +14 -27
- package/dist/legacy/TimeAgo/TimeAgo.js.map +1 -1
- package/dist/legacy/TimeAgo/formatUtils.js +16 -18
- package/dist/legacy/TimeAgo/formatUtils.js.map +1 -1
- package/dist/legacy/TimeAgo/index.js.map +1 -1
- package/dist/legacy/TimeAgo/styles.js.map +1 -1
- package/dist/legacy/TimeAgo/useTimeAgo.js +8 -11
- package/dist/legacy/TimeAgo/useTimeAgo.js.map +1 -1
- package/dist/legacy/TimeAgo/useTimeout.js.map +1 -1
- package/dist/legacy/Wizard/Wizard.d.ts +5 -5
- package/dist/legacy/Wizard/Wizard.js +33 -59
- package/dist/legacy/Wizard/Wizard.js.map +1 -1
- package/dist/legacy/Wizard/WizardActions/WizardActions.d.ts +2 -2
- package/dist/legacy/Wizard/WizardActions/WizardActions.js +33 -62
- package/dist/legacy/Wizard/WizardActions/WizardActions.js.map +1 -1
- package/dist/legacy/Wizard/WizardActions/index.js.map +1 -1
- package/dist/legacy/Wizard/WizardActions/styles.js +0 -1
- package/dist/legacy/Wizard/WizardActions/styles.js.map +1 -1
- package/dist/legacy/Wizard/WizardContainer/WizardContainer.js +5 -17
- package/dist/legacy/Wizard/WizardContainer/WizardContainer.js.map +1 -1
- package/dist/legacy/Wizard/WizardContainer/index.js.map +1 -1
- package/dist/legacy/Wizard/WizardContainer/styles.js +0 -1
- package/dist/legacy/Wizard/WizardContainer/styles.js.map +1 -1
- package/dist/legacy/Wizard/WizardContent/LoadingContainer.js +2 -8
- package/dist/legacy/Wizard/WizardContent/LoadingContainer.js.map +1 -1
- package/dist/legacy/Wizard/WizardContent/WizardContent.d.ts +1 -1
- package/dist/legacy/Wizard/WizardContent/WizardContent.js +11 -27
- package/dist/legacy/Wizard/WizardContent/WizardContent.js.map +1 -1
- package/dist/legacy/Wizard/WizardContent/index.js.map +1 -1
- package/dist/legacy/Wizard/WizardContent/styles.js +0 -1
- package/dist/legacy/Wizard/WizardContent/styles.js.map +1 -1
- package/dist/legacy/Wizard/WizardContext/WizardContext.d.ts +12 -0
- package/dist/legacy/Wizard/WizardContext/WizardContext.js +0 -2
- package/dist/legacy/Wizard/WizardContext/WizardContext.js.map +1 -1
- package/dist/legacy/Wizard/WizardContext/WizardContextProvider.d.ts +28 -0
- package/dist/legacy/Wizard/WizardContext/WizardContextProvider.js +33 -0
- package/dist/legacy/Wizard/WizardContext/WizardContextProvider.js.map +1 -0
- package/dist/legacy/Wizard/WizardContext/index.d.ts +5 -0
- package/dist/legacy/Wizard/WizardContext/index.js +1 -0
- package/dist/legacy/Wizard/WizardContext/index.js.map +1 -1
- package/dist/legacy/Wizard/WizardTitle/WizardTitle.d.ts +7 -9
- package/dist/legacy/Wizard/WizardTitle/WizardTitle.js +17 -42
- package/dist/legacy/Wizard/WizardTitle/WizardTitle.js.map +1 -1
- package/dist/legacy/Wizard/WizardTitle/index.js.map +1 -1
- package/dist/legacy/Wizard/WizardTitle/styles.js +0 -1
- package/dist/legacy/Wizard/WizardTitle/styles.js.map +1 -1
- package/dist/legacy/Wizard/index.d.ts +15 -0
- package/dist/legacy/Wizard/index.js +1 -0
- package/dist/legacy/Wizard/index.js.map +1 -1
- package/dist/legacy/Wizard/styles.js +0 -1
- package/dist/legacy/Wizard/styles.js.map +1 -1
- package/dist/legacy/index.js +1 -0
- package/dist/legacy/index.js.map +1 -1
- package/dist/modern/ColorPicker/ColorPicker.js +1 -25
- package/dist/modern/ColorPicker/ColorPicker.js.map +1 -1
- package/dist/modern/ColorPicker/Fields/Fields.js +3 -10
- package/dist/modern/ColorPicker/Fields/Fields.js.map +1 -1
- package/dist/modern/ColorPicker/Fields/index.js.map +1 -1
- package/dist/modern/ColorPicker/Fields/styles.js.map +1 -1
- package/dist/modern/ColorPicker/Picker/Picker.js +3 -3
- package/dist/modern/ColorPicker/Picker/Picker.js.map +1 -1
- package/dist/modern/ColorPicker/Picker/index.js.map +1 -1
- package/dist/modern/ColorPicker/Picker/styles.js.map +1 -1
- package/dist/modern/ColorPicker/PresetColors/PresetColors.js +0 -5
- package/dist/modern/ColorPicker/PresetColors/PresetColors.js.map +1 -1
- package/dist/modern/ColorPicker/PresetColors/index.js.map +1 -1
- package/dist/modern/ColorPicker/PresetColors/styles.js.map +1 -1
- package/dist/modern/ColorPicker/index.js.map +1 -1
- package/dist/modern/ColorPicker/styles.js +0 -1
- package/dist/modern/ColorPicker/styles.js.map +1 -1
- package/dist/modern/Drawer/Drawer.js +11 -30
- package/dist/modern/Drawer/Drawer.js.map +1 -1
- package/dist/modern/Drawer/index.js.map +1 -1
- package/dist/modern/Drawer/styles.js +0 -2
- package/dist/modern/Drawer/styles.js.map +1 -1
- package/dist/modern/ImageCarousel/ImageCarousel.js +18 -83
- package/dist/modern/ImageCarousel/ImageCarousel.js.map +1 -1
- package/dist/modern/ImageCarousel/index.js.map +1 -1
- package/dist/modern/ImageCarousel/styles.js +0 -1
- package/dist/modern/ImageCarousel/styles.js.map +1 -1
- package/dist/modern/InlineEditor/InlineEditor.js +16 -43
- package/dist/modern/InlineEditor/InlineEditor.js.map +1 -1
- package/dist/modern/InlineEditor/index.js.map +1 -1
- package/dist/modern/InlineEditor/styles.js +0 -5
- package/dist/modern/InlineEditor/styles.js.map +1 -1
- package/dist/modern/NavigationAnchors/NavigationAnchors.js +40 -74
- package/dist/modern/NavigationAnchors/NavigationAnchors.js.map +1 -1
- package/dist/modern/NavigationAnchors/NavigationOption.js +0 -6
- package/dist/modern/NavigationAnchors/NavigationOption.js.map +1 -1
- package/dist/modern/NavigationAnchors/index.js.map +1 -1
- package/dist/modern/NavigationAnchors/styles.js +0 -1
- package/dist/modern/NavigationAnchors/styles.js.map +1 -1
- package/dist/modern/NotificationPanel/EmptyStatePanel/EmptyStatePanel.js +0 -11
- package/dist/modern/NotificationPanel/EmptyStatePanel/EmptyStatePanel.js.map +1 -1
- package/dist/modern/NotificationPanel/EmptyStatePanel/index.js.map +1 -1
- package/dist/modern/NotificationPanel/EmptyStatePanel/styles.js +0 -1
- package/dist/modern/NotificationPanel/EmptyStatePanel/styles.js.map +1 -1
- package/dist/modern/NotificationPanel/Notification/Notification.js +2 -33
- package/dist/modern/NotificationPanel/Notification/Notification.js.map +1 -1
- package/dist/modern/NotificationPanel/Notification/index.js.map +1 -1
- package/dist/modern/NotificationPanel/Notification/styles.js +0 -5
- package/dist/modern/NotificationPanel/Notification/styles.js.map +1 -1
- package/dist/modern/NotificationPanel/NotificationPanel.js +16 -50
- package/dist/modern/NotificationPanel/NotificationPanel.js.map +1 -1
- package/dist/modern/NotificationPanel/NotificationsIndicator/NotificationsIndicator.js +6 -19
- package/dist/modern/NotificationPanel/NotificationsIndicator/NotificationsIndicator.js.map +1 -1
- package/dist/modern/NotificationPanel/NotificationsIndicator/index.js.map +1 -1
- package/dist/modern/NotificationPanel/NotificationsIndicator/styles.js +0 -1
- package/dist/modern/NotificationPanel/NotificationsIndicator/styles.js.map +1 -1
- package/dist/modern/NotificationPanel/index.js.map +1 -1
- package/dist/modern/NotificationPanel/styles.js +0 -1
- package/dist/modern/NotificationPanel/styles.js.map +1 -1
- package/dist/modern/StepNavigation/DefaultNavigation/DefaultNavigation.js +14 -23
- package/dist/modern/StepNavigation/DefaultNavigation/DefaultNavigation.js.map +1 -1
- package/dist/modern/StepNavigation/DefaultNavigation/Step/Step.js +1 -20
- package/dist/modern/StepNavigation/DefaultNavigation/Step/Step.js.map +1 -1
- package/dist/modern/StepNavigation/DefaultNavigation/Step/index.js.map +1 -1
- package/dist/modern/StepNavigation/DefaultNavigation/Step/styles.js +0 -1
- package/dist/modern/StepNavigation/DefaultNavigation/Step/styles.js.map +1 -1
- package/dist/modern/StepNavigation/DefaultNavigation/index.js.map +1 -1
- package/dist/modern/StepNavigation/DefaultNavigation/styles.js +0 -1
- package/dist/modern/StepNavigation/DefaultNavigation/styles.js.map +1 -1
- package/dist/modern/StepNavigation/DefaultNavigation/utils.js +0 -2
- package/dist/modern/StepNavigation/DefaultNavigation/utils.js.map +1 -1
- package/dist/modern/StepNavigation/SimpleNavigation/Dot/Dot.js +1 -15
- package/dist/modern/StepNavigation/SimpleNavigation/Dot/Dot.js.map +1 -1
- package/dist/modern/StepNavigation/SimpleNavigation/Dot/index.js.map +1 -1
- package/dist/modern/StepNavigation/SimpleNavigation/Dot/styles.js.map +1 -1
- package/dist/modern/StepNavigation/SimpleNavigation/SimpleNavigation.js +14 -23
- package/dist/modern/StepNavigation/SimpleNavigation/SimpleNavigation.js.map +1 -1
- package/dist/modern/StepNavigation/SimpleNavigation/index.js.map +1 -1
- package/dist/modern/StepNavigation/SimpleNavigation/styles.js +0 -1
- package/dist/modern/StepNavigation/SimpleNavigation/styles.js.map +1 -1
- package/dist/modern/StepNavigation/SimpleNavigation/utils.js +0 -6
- package/dist/modern/StepNavigation/SimpleNavigation/utils.js.map +1 -1
- package/dist/modern/StepNavigation/StepNavigation.js +25 -62
- package/dist/modern/StepNavigation/StepNavigation.js.map +1 -1
- package/dist/modern/StepNavigation/index.js.map +1 -1
- package/dist/modern/StepNavigation/styles.js +0 -1
- package/dist/modern/StepNavigation/styles.js.map +1 -1
- package/dist/modern/StepNavigation/utils.js.map +1 -1
- package/dist/modern/TimeAgo/TimeAgo.js +11 -24
- package/dist/modern/TimeAgo/TimeAgo.js.map +1 -1
- package/dist/modern/TimeAgo/formatUtils.js +16 -18
- package/dist/modern/TimeAgo/formatUtils.js.map +1 -1
- package/dist/modern/TimeAgo/index.js.map +1 -1
- package/dist/modern/TimeAgo/styles.js.map +1 -1
- package/dist/modern/TimeAgo/useTimeAgo.js +1 -3
- package/dist/modern/TimeAgo/useTimeAgo.js.map +1 -1
- package/dist/modern/TimeAgo/useTimeout.js.map +1 -1
- package/dist/modern/Wizard/Wizard.d.ts +5 -5
- package/dist/modern/Wizard/Wizard.js +24 -49
- package/dist/modern/Wizard/Wizard.js.map +1 -1
- package/dist/modern/Wizard/WizardActions/WizardActions.d.ts +2 -2
- package/dist/modern/Wizard/WizardActions/WizardActions.js +6 -30
- package/dist/modern/Wizard/WizardActions/WizardActions.js.map +1 -1
- package/dist/modern/Wizard/WizardActions/index.js.map +1 -1
- package/dist/modern/Wizard/WizardActions/styles.js +0 -1
- package/dist/modern/Wizard/WizardActions/styles.js.map +1 -1
- package/dist/modern/Wizard/WizardContainer/WizardContainer.js +7 -19
- package/dist/modern/Wizard/WizardContainer/WizardContainer.js.map +1 -1
- package/dist/modern/Wizard/WizardContainer/index.js.map +1 -1
- package/dist/modern/Wizard/WizardContainer/styles.js +0 -1
- package/dist/modern/Wizard/WizardContainer/styles.js.map +1 -1
- package/dist/modern/Wizard/WizardContent/LoadingContainer.js +4 -10
- package/dist/modern/Wizard/WizardContent/LoadingContainer.js.map +1 -1
- package/dist/modern/Wizard/WizardContent/WizardContent.d.ts +1 -1
- package/dist/modern/Wizard/WizardContent/WizardContent.js +1 -15
- package/dist/modern/Wizard/WizardContent/WizardContent.js.map +1 -1
- package/dist/modern/Wizard/WizardContent/index.js.map +1 -1
- package/dist/modern/Wizard/WizardContent/styles.js +0 -1
- package/dist/modern/Wizard/WizardContent/styles.js.map +1 -1
- package/dist/modern/Wizard/WizardContext/WizardContext.d.ts +12 -0
- package/dist/modern/Wizard/WizardContext/WizardContext.js +0 -2
- package/dist/modern/Wizard/WizardContext/WizardContext.js.map +1 -1
- package/dist/modern/Wizard/WizardContext/WizardContextProvider.d.ts +28 -0
- package/dist/modern/Wizard/WizardContext/WizardContextProvider.js +34 -0
- package/dist/modern/Wizard/WizardContext/WizardContextProvider.js.map +1 -0
- package/dist/modern/Wizard/WizardContext/index.d.ts +5 -0
- package/dist/modern/Wizard/WizardContext/index.js +1 -0
- package/dist/modern/Wizard/WizardContext/index.js.map +1 -1
- package/dist/modern/Wizard/WizardTitle/WizardTitle.d.ts +7 -9
- package/dist/modern/Wizard/WizardTitle/WizardTitle.js +3 -24
- package/dist/modern/Wizard/WizardTitle/WizardTitle.js.map +1 -1
- package/dist/modern/Wizard/WizardTitle/index.js.map +1 -1
- package/dist/modern/Wizard/WizardTitle/styles.js +0 -1
- package/dist/modern/Wizard/WizardTitle/styles.js.map +1 -1
- package/dist/modern/Wizard/index.d.ts +15 -0
- package/dist/modern/Wizard/index.js +1 -0
- package/dist/modern/Wizard/index.js.map +1 -1
- package/dist/modern/Wizard/styles.js +0 -1
- package/dist/modern/Wizard/styles.js.map +1 -1
- package/dist/modern/index.js +1 -0
- package/dist/modern/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,142 +1,100 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.object.keys.js");
|
|
4
|
-
|
|
5
4
|
require("core-js/modules/es.symbol.js");
|
|
6
|
-
|
|
7
5
|
require("core-js/modules/es.array.filter.js");
|
|
8
|
-
|
|
9
6
|
require("core-js/modules/es.object.to-string.js");
|
|
10
|
-
|
|
11
7
|
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
12
|
-
|
|
13
8
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
14
|
-
|
|
15
9
|
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
16
|
-
|
|
17
10
|
require("core-js/modules/es.array.iterator.js");
|
|
18
|
-
|
|
19
11
|
require("core-js/modules/es.string.iterator.js");
|
|
20
|
-
|
|
21
12
|
require("core-js/modules/es.weak-map.js");
|
|
22
|
-
|
|
23
13
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
24
|
-
|
|
25
14
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
26
|
-
|
|
27
15
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
28
|
-
|
|
29
16
|
Object.defineProperty(exports, "__esModule", {
|
|
30
17
|
value: true
|
|
31
18
|
});
|
|
32
19
|
exports.default = void 0;
|
|
33
|
-
|
|
34
20
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
35
|
-
|
|
36
21
|
require("core-js/modules/es.array.map.js");
|
|
37
|
-
|
|
38
22
|
require("core-js/modules/es.array.slice.js");
|
|
39
|
-
|
|
40
23
|
require("core-js/modules/es.array.concat.js");
|
|
41
|
-
|
|
42
24
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
43
|
-
|
|
44
25
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
45
|
-
|
|
46
26
|
var _react = _interopRequireWildcard(require("react"));
|
|
47
|
-
|
|
48
27
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
49
|
-
|
|
50
28
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
51
|
-
|
|
52
29
|
var _uikitReactCore = require("@hitachivantara/uikit-react-core");
|
|
53
|
-
|
|
54
30
|
var _material = require("@mui/material");
|
|
55
|
-
|
|
56
31
|
var _styles = require("@mui/styles");
|
|
57
|
-
|
|
58
32
|
var _uikitReactIcons = require("@hitachivantara/uikit-react-icons");
|
|
59
|
-
|
|
60
33
|
var _styles2 = _interopRequireDefault(require("./styles"));
|
|
61
|
-
|
|
62
34
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
63
|
-
|
|
64
35
|
var _Close, _Fullscreen, _Backwards, _Forwards, _Backwards2, _Forwards2;
|
|
65
|
-
|
|
66
36
|
var _excluded = ["className", "classes", "documents", "title", "id", "fullscreen", "thumbnails", "lowCardinality", "infiniteCarousel", "xs", "onChange", "counter", "currentStep", "setCurrentStep", "visibleArrows", "variant"];
|
|
67
|
-
|
|
68
37
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
69
|
-
|
|
70
38
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
71
|
-
|
|
72
39
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
73
|
-
|
|
74
40
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
75
|
-
|
|
76
41
|
/**
|
|
77
42
|
* ImageCarousel description/documentation paragraph
|
|
78
43
|
*/
|
|
79
44
|
var HvImageCarousel = function HvImageCarousel(props) {
|
|
80
45
|
var className = props.className,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
46
|
+
classes = props.classes,
|
|
47
|
+
documents = props.documents,
|
|
48
|
+
title = props.title,
|
|
49
|
+
id = props.id,
|
|
50
|
+
_props$fullscreen = props.fullscreen,
|
|
51
|
+
fullscreenProp = _props$fullscreen === void 0 ? false : _props$fullscreen,
|
|
52
|
+
_props$thumbnails = props.thumbnails,
|
|
53
|
+
thumbnails = _props$thumbnails === void 0 ? false : _props$thumbnails,
|
|
54
|
+
_props$lowCardinality = props.lowCardinality,
|
|
55
|
+
lowCardinality = _props$lowCardinality === void 0 ? false : _props$lowCardinality,
|
|
56
|
+
_props$infiniteCarous = props.infiniteCarousel,
|
|
57
|
+
infiniteCarousel = _props$infiniteCarous === void 0 ? false : _props$infiniteCarous,
|
|
58
|
+
_props$xs = props.xs,
|
|
59
|
+
xs = _props$xs === void 0 ? false : _props$xs,
|
|
60
|
+
onChange = props.onChange,
|
|
61
|
+
_props$counter = props.counter,
|
|
62
|
+
counter = _props$counter === void 0 ? false : _props$counter,
|
|
63
|
+
_props$currentStep = props.currentStep,
|
|
64
|
+
currentStep = _props$currentStep === void 0 ? 0 : _props$currentStep,
|
|
65
|
+
setCurrentStep = props.setCurrentStep,
|
|
66
|
+
_props$visibleArrows = props.visibleArrows,
|
|
67
|
+
visibleArrows = _props$visibleArrows === void 0 ? false : _props$visibleArrows,
|
|
68
|
+
_props$variant = props.variant,
|
|
69
|
+
variant = _props$variant === void 0 ? "contain" : _props$variant,
|
|
70
|
+
others = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
106
71
|
var elementId = (0, _uikitReactCore.useUniqueId)(id, "hvcarousel");
|
|
107
|
-
|
|
108
72
|
var _useState = (0, _react.useState)(false),
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
73
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
74
|
+
fullscreen = _useState2[0],
|
|
75
|
+
setFullscreen = _useState2[1];
|
|
113
76
|
var options = documents.map(function (element) {
|
|
114
77
|
return {
|
|
115
78
|
src: element.src,
|
|
116
79
|
value: (0, _uikitReactCore.setId)(elementId, element.value)
|
|
117
80
|
};
|
|
118
81
|
});
|
|
119
|
-
|
|
120
82
|
var _useState3 = (0, _react.useState)(0),
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
83
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
84
|
+
sliceStart = _useState4[0],
|
|
85
|
+
setSliceStart = _useState4[1];
|
|
125
86
|
var _useState5 = (0, _react.useState)(currentStep),
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
87
|
+
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
88
|
+
selImage = _useState6[0],
|
|
89
|
+
setImage = _useState6[1];
|
|
130
90
|
var _useState7 = (0, _react.useState)(0),
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
91
|
+
_useState8 = (0, _slicedToArray2.default)(_useState7, 2),
|
|
92
|
+
offset = _useState8[0],
|
|
93
|
+
setOffset = _useState8[1];
|
|
135
94
|
var _useState9 = (0, _react.useState)(false),
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
95
|
+
_useState10 = (0, _slicedToArray2.default)(_useState9, 2),
|
|
96
|
+
imageHover = _useState10[0],
|
|
97
|
+
setImageHover = _useState10[1];
|
|
140
98
|
var direction = "next";
|
|
141
99
|
var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
142
100
|
return {
|
|
@@ -155,17 +113,14 @@ var HvImageCarousel = function HvImageCarousel(props) {
|
|
|
155
113
|
};
|
|
156
114
|
});
|
|
157
115
|
var style = useStyles();
|
|
158
|
-
|
|
159
116
|
var _useScrollTo = (0, _uikitReactCore.useScrollTo)(0, (0, _uikitReactCore.setId)(elementId, "panel"), false, 100, documents, onChange, "row"),
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
117
|
+
_useScrollTo2 = (0, _slicedToArray2.default)(_useScrollTo, 2),
|
|
118
|
+
selectedIndex = _useScrollTo2[0],
|
|
119
|
+
setScrollTo = _useScrollTo2[1];
|
|
164
120
|
var _useScrollTo3 = (0, _uikitReactCore.useScrollTo)(0, (0, _uikitReactCore.setId)(elementId, "bigPanel"), false, 0, options, onChange, "row"),
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
121
|
+
_useScrollTo4 = (0, _slicedToArray2.default)(_useScrollTo3, 2),
|
|
122
|
+
selectedBigIndex = _useScrollTo4[0],
|
|
123
|
+
setBigScrollTo = _useScrollTo4[1];
|
|
169
124
|
var refBackwards = (0, _react.useRef)(null);
|
|
170
125
|
var refForwards = (0, _react.useRef)(null);
|
|
171
126
|
var typeCircle = "circle";
|
|
@@ -173,19 +128,15 @@ var HvImageCarousel = function HvImageCarousel(props) {
|
|
|
173
128
|
var wrappedOnChange = function wrappedOnChange() {
|
|
174
129
|
onChange === null || onChange === void 0 ? void 0 : onChange(event, index);
|
|
175
130
|
};
|
|
176
|
-
|
|
177
131
|
setScrollTo(event, value, index, wrappedOnChange);
|
|
178
132
|
}, [onChange, setScrollTo]);
|
|
179
|
-
|
|
180
133
|
var handleFocus = function handleFocus(focus) {
|
|
181
134
|
if (focus === refBackwards.current || focus === refForwards.current) focus.focus();
|
|
182
135
|
};
|
|
183
|
-
|
|
184
136
|
var handleBigSelection = (0, _react.useCallback)(function (event, value, index) {
|
|
185
137
|
var wrappedOnChange = function wrappedOnChange() {
|
|
186
138
|
onChange === null || onChange === void 0 ? void 0 : onChange(event, index);
|
|
187
139
|
};
|
|
188
|
-
|
|
189
140
|
setBigScrollTo(event, value, index, wrappedOnChange);
|
|
190
141
|
}, [onChange, setBigScrollTo]);
|
|
191
142
|
var handleVisibility = (0, _react.useCallback)(function (event, value, index) {
|
|
@@ -198,7 +149,6 @@ var HvImageCarousel = function HvImageCarousel(props) {
|
|
|
198
149
|
var imageWidth = image.offsetWidth;
|
|
199
150
|
var scroll = panel.scrollLeft;
|
|
200
151
|
var focus = document.activeElement;
|
|
201
|
-
|
|
202
152
|
if (offsetPanel + offsetImage + offset + imageWidth - scroll > containerWidth || offsetImage - scroll < 0) {
|
|
203
153
|
handleSelection(event, value, index);
|
|
204
154
|
handleFocus(focus);
|
|
@@ -209,62 +159,50 @@ var HvImageCarousel = function HvImageCarousel(props) {
|
|
|
209
159
|
}, [selImage, setCurrentStep]);
|
|
210
160
|
(0, _react.useEffect)(function () {
|
|
211
161
|
if (fullscreen) setOffset(150);else setOffset(0);
|
|
212
|
-
|
|
213
162
|
if (thumbnails) {
|
|
214
163
|
handleVisibility(undefined, documents[selImage].value, selImage, selectedIndex);
|
|
215
164
|
}
|
|
216
|
-
|
|
217
165
|
handleBigSelection(undefined, options[selImage].value, selImage, selectedBigIndex);
|
|
218
166
|
}, [documents, fullscreen, handleBigSelection, handleVisibility, options, selImage, selectedBigIndex, selectedIndex, thumbnails]);
|
|
219
|
-
|
|
220
167
|
var changeSlice = function changeSlice() {
|
|
221
168
|
if (direction === "next") {
|
|
222
169
|
if (infiniteCarousel && selImage === documents.length - 1) setSliceStart(0);else if (selImage > sliceStart + 2 && selImage !== documents.length - 2) setSliceStart(sliceStart + 1);
|
|
223
170
|
}
|
|
224
|
-
|
|
225
171
|
if (direction === "prev") {
|
|
226
172
|
if (infiniteCarousel && selImage === 0) setSliceStart(documents.length > 5 ? documents.length - 5 : 0);else if (selImage < sliceStart + 2 && selImage !== 1) setSliceStart(sliceStart - 1);
|
|
227
173
|
}
|
|
228
174
|
};
|
|
229
|
-
|
|
230
175
|
var nextImage = function nextImage() {
|
|
231
176
|
var next;
|
|
232
177
|
if (selImage !== documents.length - 1) next = selImage + 1;else if (infiniteCarousel) next = 0;
|
|
233
178
|
setImage(next);
|
|
234
|
-
|
|
235
179
|
if (xs) {
|
|
236
180
|
direction = "next";
|
|
237
181
|
changeSlice();
|
|
238
182
|
}
|
|
239
183
|
};
|
|
240
|
-
|
|
241
184
|
var previousImage = function previousImage() {
|
|
242
185
|
var previous;
|
|
243
186
|
if (selImage !== 0) previous = selImage - 1;else if (infiniteCarousel) previous = documents.length - 1;
|
|
244
187
|
setImage(previous);
|
|
245
|
-
|
|
246
188
|
if (xs) {
|
|
247
189
|
direction = "prev";
|
|
248
190
|
changeSlice();
|
|
249
191
|
}
|
|
250
192
|
};
|
|
251
|
-
|
|
252
193
|
var styleThumbnail = function styleThumbnail(index) {
|
|
253
194
|
if (index !== selImage) return classes.img;
|
|
254
195
|
return classes.thumbnailSelected;
|
|
255
196
|
};
|
|
256
|
-
|
|
257
197
|
var circleType = function circleType(index) {
|
|
258
198
|
if (index === selImage) {
|
|
259
199
|
typeCircle = "BigCircle";
|
|
260
200
|
if (xs) return classes.xsSelectedCircle;
|
|
261
201
|
return classes.selectedCircle;
|
|
262
202
|
}
|
|
263
|
-
|
|
264
203
|
typeCircle = "Circle";
|
|
265
204
|
return classes.miniCircle;
|
|
266
205
|
};
|
|
267
|
-
|
|
268
206
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_uikitReactCore.HvContainer, _objectSpread(_objectSpread({
|
|
269
207
|
id: (0, _uikitReactCore.setId)(elementId, "container"),
|
|
270
208
|
className: (0, _clsx.default)(className, classes.root, xs ? "xs" : "nxs", fullscreen && classes.fullscreenStyle)
|
|
@@ -455,13 +393,11 @@ var HvImageCarousel = function HvImageCarousel(props) {
|
|
|
455
393
|
})]
|
|
456
394
|
}));
|
|
457
395
|
};
|
|
458
|
-
|
|
459
396
|
process.env.NODE_ENV !== "production" ? HvImageCarousel.propTypes = {
|
|
460
397
|
/**
|
|
461
398
|
* Class names to be applied.
|
|
462
399
|
*/
|
|
463
400
|
className: _propTypes.default.string,
|
|
464
|
-
|
|
465
401
|
/**
|
|
466
402
|
* A Jss Object used to override or extend the styles applied.
|
|
467
403
|
*/
|
|
@@ -470,197 +406,158 @@ process.env.NODE_ENV !== "production" ? HvImageCarousel.propTypes = {
|
|
|
470
406
|
* Styles applied to the component root class.
|
|
471
407
|
*/
|
|
472
408
|
root: _propTypes.default.string,
|
|
473
|
-
|
|
474
409
|
/**
|
|
475
410
|
* Styles applied to the component SelectedImage.
|
|
476
411
|
*/
|
|
477
412
|
selectedImage: _propTypes.default.string,
|
|
478
|
-
|
|
479
413
|
/**
|
|
480
414
|
* Styles applied to xs mode
|
|
481
415
|
*/
|
|
482
416
|
xsMode: _propTypes.default.string,
|
|
483
|
-
|
|
484
417
|
/**
|
|
485
418
|
* Styles applied to image in xsMode
|
|
486
419
|
*/
|
|
487
420
|
xsImage: _propTypes.default.string,
|
|
488
|
-
|
|
489
421
|
/**
|
|
490
422
|
* Styles applied to panel with low cardinality circles
|
|
491
423
|
*/
|
|
492
424
|
circles: _propTypes.default.string,
|
|
493
|
-
|
|
494
425
|
/**
|
|
495
426
|
* Styles applied to xs mode circles
|
|
496
427
|
*/
|
|
497
428
|
xsCircles: _propTypes.default.string,
|
|
498
|
-
|
|
499
429
|
/**
|
|
500
430
|
* Styles applied to unavailable button
|
|
501
431
|
*/
|
|
502
432
|
hidden: _propTypes.default.string,
|
|
503
|
-
|
|
504
433
|
/**
|
|
505
434
|
* Styles applied to the carousel title
|
|
506
435
|
*/
|
|
507
436
|
title: _propTypes.default.string,
|
|
508
|
-
|
|
509
437
|
/**
|
|
510
438
|
* Styles applied to the counter
|
|
511
439
|
*/
|
|
512
440
|
counter: _propTypes.default.string,
|
|
513
|
-
|
|
514
441
|
/**
|
|
515
442
|
* Styles applied to the div with the counter
|
|
516
443
|
*/
|
|
517
444
|
divCounter: _propTypes.default.string,
|
|
518
|
-
|
|
519
445
|
/**
|
|
520
446
|
* Styles applied to the thumbnails
|
|
521
447
|
*/
|
|
522
448
|
img: _propTypes.default.string,
|
|
523
|
-
|
|
524
449
|
/**
|
|
525
450
|
* Styles applied to the selected thumbnail
|
|
526
451
|
*/
|
|
527
452
|
thumbnailSelected: _propTypes.default.string,
|
|
528
|
-
|
|
529
453
|
/**
|
|
530
454
|
* Styles applied to the thumbnail button
|
|
531
455
|
*/
|
|
532
456
|
thumbnailButton: _propTypes.default.string,
|
|
533
|
-
|
|
534
457
|
/**
|
|
535
458
|
* Styles applied to the low cardinality circles
|
|
536
459
|
*/
|
|
537
460
|
miniCircle: _propTypes.default.string,
|
|
538
|
-
|
|
539
461
|
/**
|
|
540
462
|
* Styles applied to the circle of the selected image
|
|
541
463
|
*/
|
|
542
464
|
selectedCircle: _propTypes.default.string,
|
|
543
|
-
|
|
544
465
|
/**
|
|
545
466
|
* Styles applied to the circle of the selected image in xsmode
|
|
546
467
|
*/
|
|
547
468
|
xsSelectedCircle: _propTypes.default.string,
|
|
548
|
-
|
|
549
469
|
/**
|
|
550
470
|
* Styles applied to the panel with low cardinality buttons
|
|
551
471
|
*/
|
|
552
472
|
lowButtons: _propTypes.default.string,
|
|
553
|
-
|
|
554
473
|
/**
|
|
555
474
|
* Styles applied to the container of the selected image
|
|
556
475
|
*/
|
|
557
476
|
imageContainer: _propTypes.default.string,
|
|
558
|
-
|
|
559
477
|
/**
|
|
560
478
|
* Styles applied to the panel with the thumbnails
|
|
561
479
|
*/
|
|
562
480
|
stack: _propTypes.default.string,
|
|
563
|
-
|
|
564
481
|
/**
|
|
565
482
|
* Styles applied to the panel that contains the buttons and counter in default mode
|
|
566
483
|
*/
|
|
567
484
|
normalButtons: _propTypes.default.string,
|
|
568
|
-
|
|
569
485
|
/**
|
|
570
486
|
* Styles applied to fullscreen mode.
|
|
571
487
|
*/
|
|
572
488
|
fullscreenStyle: _propTypes.default.string,
|
|
573
|
-
|
|
574
489
|
/**
|
|
575
490
|
* Styles applied to close button in fullscreen mode.
|
|
576
491
|
*/
|
|
577
492
|
closeButton: _propTypes.default.string,
|
|
578
|
-
|
|
579
493
|
/**
|
|
580
494
|
* Styles applied to change image buttons.
|
|
581
495
|
*/
|
|
582
496
|
button: _propTypes.default.string,
|
|
583
|
-
|
|
584
497
|
/**
|
|
585
498
|
* Styles applied to thumbnails panel.
|
|
586
499
|
*/
|
|
587
500
|
panel: _propTypes.default.string
|
|
588
501
|
}).isRequired,
|
|
589
|
-
|
|
590
502
|
/**
|
|
591
503
|
* Documents to be displayed.
|
|
592
504
|
*/
|
|
593
505
|
documents: _propTypes.default.array.isRequired,
|
|
594
|
-
|
|
595
506
|
/**
|
|
596
507
|
* Title of the image carousel
|
|
597
508
|
*/
|
|
598
509
|
title: _propTypes.default.node,
|
|
599
|
-
|
|
600
510
|
/**
|
|
601
511
|
* A function called each time the selected image changes.
|
|
602
512
|
*/
|
|
603
513
|
onChange: _propTypes.default.func,
|
|
604
|
-
|
|
605
514
|
/**
|
|
606
515
|
* Id to be applied to the root node.
|
|
607
516
|
*/
|
|
608
517
|
id: _propTypes.default.string,
|
|
609
|
-
|
|
610
518
|
/**
|
|
611
519
|
* A flag that activates the thumbnails.
|
|
612
520
|
*/
|
|
613
521
|
thumbnails: _propTypes.default.bool,
|
|
614
|
-
|
|
615
522
|
/**
|
|
616
523
|
* A flag that switches to low cardinality mode
|
|
617
524
|
*/
|
|
618
525
|
lowCardinality: _propTypes.default.bool,
|
|
619
|
-
|
|
620
526
|
/**
|
|
621
527
|
* A flag that activates the infinite carousel behavior
|
|
622
528
|
*/
|
|
623
529
|
infiniteCarousel: _propTypes.default.bool,
|
|
624
|
-
|
|
625
530
|
/**
|
|
626
531
|
* A flag that activates a counter on the top right corner of the selected image
|
|
627
532
|
*/
|
|
628
533
|
counter: _propTypes.default.bool,
|
|
629
|
-
|
|
630
534
|
/**
|
|
631
535
|
* Set Image Carousel to fullscreen mode
|
|
632
536
|
*/
|
|
633
537
|
fullscreen: _propTypes.default.bool,
|
|
634
|
-
|
|
635
538
|
/**
|
|
636
539
|
* Set selected image to a particular image in documents
|
|
637
540
|
*/
|
|
638
541
|
currentStep: _propTypes.default.number,
|
|
639
|
-
|
|
640
542
|
/**
|
|
641
543
|
* Function that changes the selected image
|
|
642
544
|
*/
|
|
643
545
|
setCurrentStep: _propTypes.default.func,
|
|
644
|
-
|
|
645
546
|
/**
|
|
646
547
|
* Image Carousel set to xs mode
|
|
647
548
|
*/
|
|
648
549
|
xs: _propTypes.default.bool,
|
|
649
|
-
|
|
650
550
|
/**
|
|
651
551
|
* Arrows always displayed in low cardinality or xs mode
|
|
652
552
|
*/
|
|
653
553
|
visibleArrows: _propTypes.default.bool,
|
|
654
|
-
|
|
655
554
|
/**
|
|
656
555
|
* Selected image fit variant
|
|
657
556
|
*/
|
|
658
557
|
variant: _propTypes.default.string
|
|
659
558
|
} : void 0;
|
|
660
|
-
|
|
661
559
|
var _default = (0, _styles.withStyles)(_styles2.default, {
|
|
662
560
|
name: "HvImageCarousel"
|
|
663
561
|
})(HvImageCarousel);
|
|
664
|
-
|
|
665
562
|
exports.default = _default;
|
|
666
563
|
//# sourceMappingURL=ImageCarousel.js.map
|