@hitachivantara/uikit-react-lab 4.0.3 → 4.1.0
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.d.ts +12 -10
- 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 +4 -0
- package/dist/Wizard/Wizard.js +46 -86
- package/dist/Wizard/Wizard.js.map +1 -1
- package/dist/Wizard/WizardActions/WizardActions.js +26 -81
- 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 +4 -0
- package/dist/Wizard/WizardContent/WizardContent.js +84 -59
- 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 +16 -4
- package/dist/Wizard/WizardContent/styles.js.map +1 -1
- package/dist/Wizard/WizardContext/WizardContext.d.ts +4 -6
- package/dist/Wizard/WizardContext/WizardContext.js +0 -4
- package/dist/Wizard/WizardContext/WizardContext.js.map +1 -1
- package/dist/Wizard/WizardContext/WizardContextProvider.js +1 -10
- package/dist/Wizard/WizardContext/WizardContextProvider.js.map +1 -1
- package/dist/Wizard/WizardContext/index.js +0 -3
- package/dist/Wizard/WizardContext/index.js.map +1 -1
- package/dist/Wizard/WizardTitle/WizardTitle.js +29 -56
- 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.js +0 -8
- 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 +0 -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.d.ts +12 -10
- 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 +4 -0
- package/dist/legacy/Wizard/Wizard.js +46 -60
- package/dist/legacy/Wizard/Wizard.js.map +1 -1
- package/dist/legacy/Wizard/WizardActions/WizardActions.js +26 -55
- 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 +4 -0
- package/dist/legacy/Wizard/WizardContent/WizardContent.js +85 -32
- 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 +16 -3
- package/dist/legacy/Wizard/WizardContent/styles.js.map +1 -1
- package/dist/legacy/Wizard/WizardContext/WizardContext.d.ts +4 -6
- 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.js +1 -5
- package/dist/legacy/Wizard/WizardContext/WizardContextProvider.js.map +1 -1
- package/dist/legacy/Wizard/WizardContext/index.js.map +1 -1
- package/dist/legacy/Wizard/WizardTitle/WizardTitle.js +29 -40
- 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.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.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.d.ts +12 -10
- 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 +4 -0
- package/dist/modern/Wizard/Wizard.js +33 -49
- package/dist/modern/Wizard/Wizard.js.map +1 -1
- package/dist/modern/Wizard/WizardActions/WizardActions.js +0 -24
- 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 +4 -0
- package/dist/modern/Wizard/WizardContent/WizardContent.js +65 -22
- 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 +16 -3
- package/dist/modern/Wizard/WizardContent/styles.js.map +1 -1
- package/dist/modern/Wizard/WizardContext/WizardContext.d.ts +4 -6
- 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.js +0 -4
- package/dist/modern/Wizard/WizardContext/WizardContextProvider.js.map +1 -1
- package/dist/modern/Wizard/WizardContext/index.js.map +1 -1
- package/dist/modern/Wizard/WizardTitle/WizardTitle.js +15 -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.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.map +1 -1
- package/package.json +6 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Picker.js","names":["Picker","onChange","rgb","hsl","hsv","hex","classes","useStyles","SaturationPointer","useCallback","clsx","saturationPointer","HueSlider","hueSlider","pickers","saturation","hue","ColorWrap"],"sources":["../../../src/ColorPicker/Picker/Picker.js"],"sourcesContent":["/* eslint-disable no-param-reassign */\n\nimport clsx from \"clsx\";\nimport React, { useCallback } from \"react\";\nimport { Saturation, ColorWrap, Hue } from \"react-color/lib/components/common\";\n\nimport Fields from \"../Fields\";\nimport useStyles from \"./styles\";\n\n// eslint-disable-next-line react/prop-types\nconst Picker = ({ onChange, rgb, hsl, hsv, hex }) => {\n const classes = useStyles();\n\n const SaturationPointer = useCallback(\n () => <div className={clsx(classes.saturationPointer)} />,\n [classes.saturationPointer]\n );\n const HueSlider = useCallback(\n () => <div className={clsx(classes.hueSlider)} />,\n [classes.hueSlider]\n );\n\n return (\n <>\n <div className={clsx(classes.pickers)}>\n <div className={clsx(classes.saturation)}>\n <Saturation hsl={hsl} hsv={hsv} onChange={onChange} pointer={SaturationPointer} />\n </div>\n <div className={clsx(classes.hue)}>\n <Hue direction=\"vertical\" hsl={hsl} onChange={onChange} pointer={HueSlider} />\n </div>\n </div>\n <Fields rgb={rgb} hsl={hsl} hex={hex} onChange={onChange} />\n </>\n );\n};\n\nexport default ColorWrap(Picker);\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Picker.js","names":["Picker","onChange","rgb","hsl","hsv","hex","classes","useStyles","SaturationPointer","useCallback","clsx","saturationPointer","HueSlider","hueSlider","pickers","saturation","hue","ColorWrap"],"sources":["../../../src/ColorPicker/Picker/Picker.js"],"sourcesContent":["/* eslint-disable no-param-reassign */\n\nimport clsx from \"clsx\";\nimport React, { useCallback } from \"react\";\nimport { Saturation, ColorWrap, Hue } from \"react-color/lib/components/common\";\n\nimport Fields from \"../Fields\";\nimport useStyles from \"./styles\";\n\n// eslint-disable-next-line react/prop-types\nconst Picker = ({ onChange, rgb, hsl, hsv, hex }) => {\n const classes = useStyles();\n\n const SaturationPointer = useCallback(\n () => <div className={clsx(classes.saturationPointer)} />,\n [classes.saturationPointer]\n );\n const HueSlider = useCallback(\n () => <div className={clsx(classes.hueSlider)} />,\n [classes.hueSlider]\n );\n\n return (\n <>\n <div className={clsx(classes.pickers)}>\n <div className={clsx(classes.saturation)}>\n <Saturation hsl={hsl} hsv={hsv} onChange={onChange} pointer={SaturationPointer} />\n </div>\n <div className={clsx(classes.hue)}>\n <Hue direction=\"vertical\" hsl={hsl} onChange={onChange} pointer={HueSlider} />\n </div>\n </div>\n <Fields rgb={rgb} hsl={hsl} hex={hex} onChange={onChange} />\n </>\n );\n};\n\nexport default ColorWrap(Picker);\n"],"mappings":";;;;;;;;;;;;;;AAEA;AACA;AACA;AAEA;AACA;AAAiC;AAAA;AAAA;AAPjC;;AASA;AACA,IAAMA,MAAM,GAAG,SAATA,MAAM,OAAyC;EAAA,IAAnCC,QAAQ,QAARA,QAAQ;IAAEC,GAAG,QAAHA,GAAG;IAAEC,GAAG,QAAHA,GAAG;IAAEC,GAAG,QAAHA,GAAG;IAAEC,GAAG,QAAHA,GAAG;EAC5C,IAAMC,OAAO,GAAG,IAAAC,eAAS,GAAE;EAE3B,IAAMC,iBAAiB,GAAG,IAAAC,kBAAW,EACnC;IAAA,oBAAM;MAAK,SAAS,EAAE,IAAAC,aAAI,EAACJ,OAAO,CAACK,iBAAiB;IAAE,EAAG;EAAA,GACzD,CAACL,OAAO,CAACK,iBAAiB,CAAC,CAC5B;EACD,IAAMC,SAAS,GAAG,IAAAH,kBAAW,EAC3B;IAAA,oBAAM;MAAK,SAAS,EAAE,IAAAC,aAAI,EAACJ,OAAO,CAACO,SAAS;IAAE,EAAG;EAAA,GACjD,CAACP,OAAO,CAACO,SAAS,CAAC,CACpB;EAED,oBACE;IAAA,wBACE;MAAK,SAAS,EAAE,IAAAH,aAAI,EAACJ,OAAO,CAACQ,OAAO,CAAE;MAAA,wBACpC;QAAK,SAAS,EAAE,IAAAJ,aAAI,EAACJ,OAAO,CAACS,UAAU,CAAE;QAAA,uBACvC,qBAAC,kBAAU;UAAC,GAAG,EAAEZ,GAAI;UAAC,GAAG,EAAEC,GAAI;UAAC,QAAQ,EAAEH,QAAS;UAAC,OAAO,EAAEO;QAAkB;MAAG,EAC9E,eACN;QAAK,SAAS,EAAE,IAAAE,aAAI,EAACJ,OAAO,CAACU,GAAG,CAAE;QAAA,uBAChC,qBAAC,WAAG;UAAC,SAAS,EAAC,UAAU;UAAC,GAAG,EAAEb,GAAI;UAAC,QAAQ,EAAEF,QAAS;UAAC,OAAO,EAAEW;QAAU;MAAG,EAC1E;IAAA,EACF,eACN,qBAAC,eAAM;MAAC,GAAG,EAAEV,GAAI;MAAC,GAAG,EAAEC,GAAI;MAAC,GAAG,EAAEE,GAAI;MAAC,QAAQ,EAAEJ;IAAS,EAAG;EAAA,EAC3D;AAEP,CAAC;AAAC,eAEa,IAAAgB,iBAAS,EAACjB,MAAM,CAAC;AAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
@@ -11,6 +10,5 @@ Object.defineProperty(exports, "default", {
|
|
|
11
10
|
return _Picker.default;
|
|
12
11
|
}
|
|
13
12
|
});
|
|
14
|
-
|
|
15
13
|
var _Picker = _interopRequireDefault(require("./Picker"));
|
|
16
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/ColorPicker/Picker/index.js"],"sourcesContent":["export { default } from \"./Picker\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/ColorPicker/Picker/index.js"],"sourcesContent":["export { default } from \"./Picker\";\n"],"mappings":";;;;;;;;;;;;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","names":["styles","makeStyles","pickers","display","saturation","width","height","marginRight","position","overflow","saturationPointer","boxShadow","borderRadius","transform","sliders","padding","flex","hue","hueSlider","background","marginLeft","double"],"sources":["../../../src/ColorPicker/Picker/styles.js"],"sourcesContent":["import { makeStyles } from \"@mui/styles\";\n\nconst styles = makeStyles(() => ({\n pickers: {\n display: \"flex\",\n },\n saturation: {\n width: 180,\n height: 180,\n marginRight: 5,\n position: \"relative\",\n overflow: \"visible\",\n },\n saturationPointer: {\n width: \"6px\",\n height: \"6px\",\n boxShadow: `0 0 0 2px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)`,\n borderRadius: \"50%\",\n transform: \"translate(-3px, -3px)\",\n },\n sliders: {\n padding: \"4px 0\",\n flex: \"1\",\n },\n hue: {\n width: 15,\n position: \"relative\",\n overflow: \"visible\",\n },\n hueSlider: {\n width: 12,\n height: 6,\n background: \"#fff\",\n boxShadow: \"0 0 2px rgb(0 0 0 / 60%)\",\n marginLeft: 1,\n borderRadius: \"1px\",\n transform: \"translate(0, -2px)\",\n },\n double: {\n flex: \"2\",\n },\n}));\n\nexport default styles;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.js","names":["styles","makeStyles","pickers","display","saturation","width","height","marginRight","position","overflow","saturationPointer","boxShadow","borderRadius","transform","sliders","padding","flex","hue","hueSlider","background","marginLeft","double"],"sources":["../../../src/ColorPicker/Picker/styles.js"],"sourcesContent":["import { makeStyles } from \"@mui/styles\";\n\nconst styles = makeStyles(() => ({\n pickers: {\n display: \"flex\",\n },\n saturation: {\n width: 180,\n height: 180,\n marginRight: 5,\n position: \"relative\",\n overflow: \"visible\",\n },\n saturationPointer: {\n width: \"6px\",\n height: \"6px\",\n boxShadow: `0 0 0 2px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)`,\n borderRadius: \"50%\",\n transform: \"translate(-3px, -3px)\",\n },\n sliders: {\n padding: \"4px 0\",\n flex: \"1\",\n },\n hue: {\n width: 15,\n position: \"relative\",\n overflow: \"visible\",\n },\n hueSlider: {\n width: 12,\n height: 6,\n background: \"#fff\",\n boxShadow: \"0 0 2px rgb(0 0 0 / 60%)\",\n marginLeft: 1,\n borderRadius: \"1px\",\n transform: \"translate(0, -2px)\",\n },\n double: {\n flex: \"2\",\n },\n}));\n\nexport default styles;\n"],"mappings":";;;;;;AAAA;AAEA,IAAMA,MAAM,GAAG,IAAAC,kBAAU,EAAC;EAAA,OAAO;IAC/BC,OAAO,EAAE;MACPC,OAAO,EAAE;IACX,CAAC;IACDC,UAAU,EAAE;MACVC,KAAK,EAAE,GAAG;MACVC,MAAM,EAAE,GAAG;MACXC,WAAW,EAAE,CAAC;MACdC,QAAQ,EAAE,UAAU;MACpBC,QAAQ,EAAE;IACZ,CAAC;IACDC,iBAAiB,EAAE;MACjBL,KAAK,EAAE,KAAK;MACZC,MAAM,EAAE,KAAK;MACbK,SAAS,6FAC0B;MACnCC,YAAY,EAAE,KAAK;MACnBC,SAAS,EAAE;IACb,CAAC;IACDC,OAAO,EAAE;MACPC,OAAO,EAAE,OAAO;MAChBC,IAAI,EAAE;IACR,CAAC;IACDC,GAAG,EAAE;MACHZ,KAAK,EAAE,EAAE;MACTG,QAAQ,EAAE,UAAU;MACpBC,QAAQ,EAAE;IACZ,CAAC;IACDS,SAAS,EAAE;MACTb,KAAK,EAAE,EAAE;MACTC,MAAM,EAAE,CAAC;MACTa,UAAU,EAAE,MAAM;MAClBR,SAAS,EAAE,0BAA0B;MACrCS,UAAU,EAAE,CAAC;MACbR,YAAY,EAAE,KAAK;MACnBC,SAAS,EAAE;IACb,CAAC;IACDQ,MAAM,EAAE;MACNL,IAAI,EAAE;IACR;EACF,CAAC;AAAA,CAAC,CAAC;AAAC,eAEWhB,MAAM;AAAA"}
|
|
@@ -1,59 +1,38 @@
|
|
|
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
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
18
|
-
|
|
19
11
|
Object.defineProperty(exports, "__esModule", {
|
|
20
12
|
value: true
|
|
21
13
|
});
|
|
22
14
|
exports.default = exports.SketchPresetColors = void 0;
|
|
23
|
-
|
|
24
15
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
25
|
-
|
|
26
16
|
require("core-js/modules/es.array.map.js");
|
|
27
|
-
|
|
28
17
|
require("core-js/modules/es.array.concat.js");
|
|
29
|
-
|
|
30
18
|
var _react = _interopRequireDefault(require("react"));
|
|
31
|
-
|
|
32
19
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
33
|
-
|
|
34
20
|
var _common = require("react-color/lib/components/common");
|
|
35
|
-
|
|
36
21
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
37
|
-
|
|
38
22
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
39
|
-
|
|
40
23
|
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; }
|
|
41
|
-
|
|
42
24
|
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; }
|
|
43
|
-
|
|
44
25
|
var SketchPresetColors = function SketchPresetColors(_ref) {
|
|
45
26
|
var colors = _ref.colors,
|
|
46
|
-
|
|
47
|
-
|
|
27
|
+
_ref$onClick = _ref.onClick,
|
|
28
|
+
onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick;
|
|
48
29
|
var classes = (0, _styles.default)();
|
|
49
|
-
|
|
50
30
|
var handleClick = function handleClick(hex, e) {
|
|
51
31
|
onClick({
|
|
52
32
|
hex: hex,
|
|
53
33
|
source: "hex"
|
|
54
34
|
}, e);
|
|
55
35
|
};
|
|
56
|
-
|
|
57
36
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
58
37
|
className: classes.colors,
|
|
59
38
|
children: colors.map(function (colorObjOrString) {
|
|
@@ -74,7 +53,6 @@ var SketchPresetColors = function SketchPresetColors(_ref) {
|
|
|
74
53
|
})
|
|
75
54
|
});
|
|
76
55
|
};
|
|
77
|
-
|
|
78
56
|
exports.SketchPresetColors = SketchPresetColors;
|
|
79
57
|
process.env.NODE_ENV !== "production" ? SketchPresetColors.propTypes = {
|
|
80
58
|
colors: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PresetColors.js","names":["SketchPresetColors","colors","onClick","classes","useStyles","handleClick","hex","e","source","map","colorObjOrString","c","color","key","title","swatchWrap","swatch","boxShadow","propTypes","PropTypes","arrayOf","oneOfType","string","shape","isRequired","func"],"sources":["../../../src/ColorPicker/PresetColors/PresetColors.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nimport { Swatch } from \"react-color/lib/components/common\";\n\nimport useStyles from \"./styles\";\n\nexport const SketchPresetColors = ({ colors, onClick = () => {} }) => {\n const classes = useStyles();\n\n const handleClick = (hex, e) => {\n onClick(\n {\n hex,\n source: \"hex\",\n },\n e\n );\n };\n\n return (\n <div className={classes.colors}>\n {colors.map((colorObjOrString) => {\n const c =\n typeof colorObjOrString === \"string\" ? { color: colorObjOrString } : colorObjOrString;\n const key = `${c.color}${c.title || \"\"}`;\n return (\n <div key={key} className={classes.swatchWrap}>\n <Swatch\n {...c}\n className={classes.swatch}\n onClick={handleClick}\n focusStyle={{\n boxShadow: `inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px ${c.color}`,\n }}\n />\n </div>\n );\n })}\n </div>\n );\n};\n\nSketchPresetColors.propTypes = {\n colors: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.shape({\n color: PropTypes.string,\n title: PropTypes.string,\n }),\n ])\n ).isRequired,\n onClick: PropTypes.func.isRequired,\n};\n\nexport default SketchPresetColors;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"PresetColors.js","names":["SketchPresetColors","colors","onClick","classes","useStyles","handleClick","hex","e","source","map","colorObjOrString","c","color","key","title","swatchWrap","swatch","boxShadow","propTypes","PropTypes","arrayOf","oneOfType","string","shape","isRequired","func"],"sources":["../../../src/ColorPicker/PresetColors/PresetColors.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nimport { Swatch } from \"react-color/lib/components/common\";\n\nimport useStyles from \"./styles\";\n\nexport const SketchPresetColors = ({ colors, onClick = () => {} }) => {\n const classes = useStyles();\n\n const handleClick = (hex, e) => {\n onClick(\n {\n hex,\n source: \"hex\",\n },\n e\n );\n };\n\n return (\n <div className={classes.colors}>\n {colors.map((colorObjOrString) => {\n const c =\n typeof colorObjOrString === \"string\" ? { color: colorObjOrString } : colorObjOrString;\n const key = `${c.color}${c.title || \"\"}`;\n return (\n <div key={key} className={classes.swatchWrap}>\n <Swatch\n {...c}\n className={classes.swatch}\n onClick={handleClick}\n focusStyle={{\n boxShadow: `inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px ${c.color}`,\n }}\n />\n </div>\n );\n })}\n </div>\n );\n};\n\nSketchPresetColors.propTypes = {\n colors: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.shape({\n color: PropTypes.string,\n title: PropTypes.string,\n }),\n ])\n ).isRequired,\n onClick: PropTypes.func.isRequired,\n};\n\nexport default SketchPresetColors;\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AACA;AAEA;AAEA;AAAiC;AAAA;AAAA;AAE1B,IAAMA,kBAAkB,GAAG,SAArBA,kBAAkB,OAAuC;EAAA,IAAjCC,MAAM,QAANA,MAAM;IAAA,oBAAEC,OAAO;IAAPA,OAAO,6BAAG,YAAM,CAAC,CAAC;EAC7D,IAAMC,OAAO,GAAG,IAAAC,eAAS,GAAE;EAE3B,IAAMC,WAAW,GAAG,SAAdA,WAAW,CAAIC,GAAG,EAAEC,CAAC,EAAK;IAC9BL,OAAO,CACL;MACEI,GAAG,EAAHA,GAAG;MACHE,MAAM,EAAE;IACV,CAAC,EACDD,CAAC,CACF;EACH,CAAC;EAED,oBACE;IAAK,SAAS,EAAEJ,OAAO,CAACF,MAAO;IAAA,UAC5BA,MAAM,CAACQ,GAAG,CAAC,UAACC,gBAAgB,EAAK;MAChC,IAAMC,CAAC,GACL,OAAOD,gBAAgB,KAAK,QAAQ,GAAG;QAAEE,KAAK,EAAEF;MAAiB,CAAC,GAAGA,gBAAgB;MACvF,IAAMG,GAAG,aAAMF,CAAC,CAACC,KAAK,SAAGD,CAAC,CAACG,KAAK,IAAI,EAAE,CAAE;MACxC,oBACE;QAAe,SAAS,EAAEX,OAAO,CAACY,UAAW;QAAA,uBAC3C,qBAAC,cAAM,kCACDJ,CAAC;UACL,SAAS,EAAER,OAAO,CAACa,MAAO;UAC1B,OAAO,EAAEX,WAAY;UACrB,UAAU,EAAE;YACVY,SAAS,qDAA8CN,CAAC,CAACC,KAAK;UAChE;QAAE;MACF,GARMC,GAAG,CASP;IAEV,CAAC;EAAC,EACE;AAEV,CAAC;AAAC;AAEF,wCAAAb,kBAAkB,CAACkB,SAAS,GAAG;EAC7BjB,MAAM,EAAEkB,kBAAS,CAACC,OAAO,CACvBD,kBAAS,CAACE,SAAS,CAAC,CAClBF,kBAAS,CAACG,MAAM,EAChBH,kBAAS,CAACI,KAAK,CAAC;IACdX,KAAK,EAAEO,kBAAS,CAACG,MAAM;IACvBR,KAAK,EAAEK,kBAAS,CAACG;EACnB,CAAC,CAAC,CACH,CAAC,CACH,CAACE,UAAU;EACZtB,OAAO,EAAEiB,kBAAS,CAACM,IAAI,CAACD;AAC1B,CAAC;AAAC,eAEaxB,kBAAkB;AAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
@@ -11,6 +10,5 @@ Object.defineProperty(exports, "default", {
|
|
|
11
10
|
return _PresetColors.default;
|
|
12
11
|
}
|
|
13
12
|
});
|
|
14
|
-
|
|
15
13
|
var _PresetColors = _interopRequireDefault(require("./PresetColors"));
|
|
16
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/ColorPicker/PresetColors/index.js"],"sourcesContent":["export { default } from \"./PresetColors\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/ColorPicker/PresetColors/index.js"],"sourcesContent":["export { default } from \"./PresetColors\";\n"],"mappings":";;;;;;;;;;;;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","names":["styles","makeStyles","colors","display","flexWrap","position","width","margin","padding","swatchWrap","height","swatch","borderRadius","boxShadow"],"sources":["../../../src/ColorPicker/PresetColors/styles.js"],"sourcesContent":["import { makeStyles } from \"@mui/styles\";\n\nconst styles = makeStyles(() => ({\n colors: {\n display: \"flex\",\n flexWrap: \"wrap\",\n position: \"relative\",\n width: \"calc(100% + 5px)\",\n margin: \"-5px -3px\",\n padding: 0,\n },\n swatchWrap: {\n width: \"16px\",\n height: \"16px\",\n margin: 5,\n },\n swatch: {\n borderRadius: \"3px\",\n boxShadow: \"inset 0 0 0 1px rgba(0,0,0,.15)\",\n },\n}));\n\nexport default styles;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.js","names":["styles","makeStyles","colors","display","flexWrap","position","width","margin","padding","swatchWrap","height","swatch","borderRadius","boxShadow"],"sources":["../../../src/ColorPicker/PresetColors/styles.js"],"sourcesContent":["import { makeStyles } from \"@mui/styles\";\n\nconst styles = makeStyles(() => ({\n colors: {\n display: \"flex\",\n flexWrap: \"wrap\",\n position: \"relative\",\n width: \"calc(100% + 5px)\",\n margin: \"-5px -3px\",\n padding: 0,\n },\n swatchWrap: {\n width: \"16px\",\n height: \"16px\",\n margin: 5,\n },\n swatch: {\n borderRadius: \"3px\",\n boxShadow: \"inset 0 0 0 1px rgba(0,0,0,.15)\",\n },\n}));\n\nexport default styles;\n"],"mappings":";;;;;;AAAA;AAEA,IAAMA,MAAM,GAAG,IAAAC,kBAAU,EAAC;EAAA,OAAO;IAC/BC,MAAM,EAAE;MACNC,OAAO,EAAE,MAAM;MACfC,QAAQ,EAAE,MAAM;MAChBC,QAAQ,EAAE,UAAU;MACpBC,KAAK,EAAE,kBAAkB;MACzBC,MAAM,EAAE,WAAW;MACnBC,OAAO,EAAE;IACX,CAAC;IACDC,UAAU,EAAE;MACVH,KAAK,EAAE,MAAM;MACbI,MAAM,EAAE,MAAM;MACdH,MAAM,EAAE;IACV,CAAC;IACDI,MAAM,EAAE;MACNC,YAAY,EAAE,KAAK;MACnBC,SAAS,EAAE;IACb;EACF,CAAC;AAAA,CAAC,CAAC;AAAC,eAEWb,MAAM;AAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
@@ -11,6 +10,5 @@ Object.defineProperty(exports, "default", {
|
|
|
11
10
|
return _ColorPicker.default;
|
|
12
11
|
}
|
|
13
12
|
});
|
|
14
|
-
|
|
15
13
|
var _ColorPicker = _interopRequireDefault(require("./ColorPicker"));
|
|
16
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/ColorPicker/index.js"],"sourcesContent":["export { default } from \"./ColorPicker\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/ColorPicker/index.js"],"sourcesContent":["export { default } from \"./ColorPicker\";\n"],"mappings":";;;;;;;;;;;;AAAA"}
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var styles = function styles() {
|
|
9
8
|
return {
|
|
10
9
|
headerColorValue: {
|
|
@@ -40,7 +39,6 @@ var styles = function styles() {
|
|
|
40
39
|
description: {}
|
|
41
40
|
};
|
|
42
41
|
};
|
|
43
|
-
|
|
44
42
|
var _default = styles;
|
|
45
43
|
exports.default = _default;
|
|
46
44
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","names":["styles","headerColorValue","textTransform","headerColorIcon","width","marginLeft","panel","minWidth","display","justifyContent","padding","colorPicker","presetColors","borderTop","labelContainer","alignItems","label","paddingBottom","description"],"sources":["../../src/ColorPicker/styles.js"],"sourcesContent":["const styles = () => ({\n headerColorValue: {\n textTransform: \"uppercase\",\n },\n headerColorIcon: {\n width: 24,\n \"& svg\": {\n marginLeft: 0,\n },\n },\n panel: {\n width: \"100%\",\n minWidth: 240,\n display: \"flex\",\n justifyContent: \"center\",\n padding: \"20px 15px 20px 20px\",\n },\n colorPicker: {\n width: 205,\n },\n presetColors: {\n borderTop: \"none !important\",\n },\n labelContainer: {\n display: \"flex\",\n alignItems: \"flex-start\",\n },\n label: {\n paddingBottom: \"6px\",\n display: \"block\",\n },\n description: {},\n});\n\nexport default styles;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.js","names":["styles","headerColorValue","textTransform","headerColorIcon","width","marginLeft","panel","minWidth","display","justifyContent","padding","colorPicker","presetColors","borderTop","labelContainer","alignItems","label","paddingBottom","description"],"sources":["../../src/ColorPicker/styles.js"],"sourcesContent":["const styles = () => ({\n headerColorValue: {\n textTransform: \"uppercase\",\n },\n headerColorIcon: {\n width: 24,\n \"& svg\": {\n marginLeft: 0,\n },\n },\n panel: {\n width: \"100%\",\n minWidth: 240,\n display: \"flex\",\n justifyContent: \"center\",\n padding: \"20px 15px 20px 20px\",\n },\n colorPicker: {\n width: 205,\n },\n presetColors: {\n borderTop: \"none !important\",\n },\n labelContainer: {\n display: \"flex\",\n alignItems: \"flex-start\",\n },\n label: {\n paddingBottom: \"6px\",\n display: \"block\",\n },\n description: {},\n});\n\nexport default styles;\n"],"mappings":";;;;;;AAAA,IAAMA,MAAM,GAAG,SAATA,MAAM;EAAA,OAAU;IACpBC,gBAAgB,EAAE;MAChBC,aAAa,EAAE;IACjB,CAAC;IACDC,eAAe,EAAE;MACfC,KAAK,EAAE,EAAE;MACT,OAAO,EAAE;QACPC,UAAU,EAAE;MACd;IACF,CAAC;IACDC,KAAK,EAAE;MACLF,KAAK,EAAE,MAAM;MACbG,QAAQ,EAAE,GAAG;MACbC,OAAO,EAAE,MAAM;MACfC,cAAc,EAAE,QAAQ;MACxBC,OAAO,EAAE;IACX,CAAC;IACDC,WAAW,EAAE;MACXP,KAAK,EAAE;IACT,CAAC;IACDQ,YAAY,EAAE;MACZC,SAAS,EAAE;IACb,CAAC;IACDC,cAAc,EAAE;MACdN,OAAO,EAAE,MAAM;MACfO,UAAU,EAAE;IACd,CAAC;IACDC,KAAK,EAAE;MACLC,aAAa,EAAE,KAAK;MACpBT,OAAO,EAAE;IACX,CAAC;IACDU,WAAW,EAAE,CAAC;EAChB,CAAC;AAAA,CAAC;AAAC,eAEYlB,MAAM;AAAA"}
|
package/dist/Drawer/Drawer.js
CHANGED
|
@@ -1,58 +1,33 @@
|
|
|
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
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
18
|
-
|
|
19
11
|
Object.defineProperty(exports, "__esModule", {
|
|
20
12
|
value: true
|
|
21
13
|
});
|
|
22
14
|
exports.default = void 0;
|
|
23
|
-
|
|
24
15
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
25
|
-
|
|
26
16
|
require("core-js/modules/es.string.anchor.js");
|
|
27
|
-
|
|
28
17
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
29
|
-
|
|
30
18
|
var _react = _interopRequireDefault(require("react"));
|
|
31
|
-
|
|
32
19
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
33
|
-
|
|
34
20
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
35
|
-
|
|
36
21
|
var _material = require("@mui/material");
|
|
37
|
-
|
|
38
22
|
var _styles = require("@mui/styles");
|
|
39
|
-
|
|
40
23
|
var _uikitReactIcons = require("@hitachivantara/uikit-react-icons");
|
|
41
|
-
|
|
42
24
|
var _uikitReactCore = require("@hitachivantara/uikit-react-core");
|
|
43
|
-
|
|
44
25
|
var _styles2 = _interopRequireDefault(require("./styles"));
|
|
45
|
-
|
|
46
26
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
47
|
-
|
|
48
27
|
var _Close;
|
|
49
|
-
|
|
50
28
|
var _excluded = ["className", "classes", "id", "children", "open", "onClose", "anchor", "buttonTitle"];
|
|
51
|
-
|
|
52
29
|
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; }
|
|
53
|
-
|
|
54
30
|
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; }
|
|
55
|
-
|
|
56
31
|
/**
|
|
57
32
|
* The Drawer component provides a foundation to create a sliding pane.
|
|
58
33
|
* It only provides the pane with a close button, the rest of the
|
|
@@ -60,23 +35,21 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
60
35
|
*/
|
|
61
36
|
var HvDrawer = function HvDrawer(_ref) {
|
|
62
37
|
var className = _ref.className,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
38
|
+
classes = _ref.classes,
|
|
39
|
+
id = _ref.id,
|
|
40
|
+
children = _ref.children,
|
|
41
|
+
open = _ref.open,
|
|
42
|
+
_onClose = _ref.onClose,
|
|
43
|
+
_ref$anchor = _ref.anchor,
|
|
44
|
+
anchor = _ref$anchor === void 0 ? "right" : _ref$anchor,
|
|
45
|
+
_ref$buttonTitle = _ref.buttonTitle,
|
|
46
|
+
buttonTitle = _ref$buttonTitle === void 0 ? "Close" : _ref$buttonTitle,
|
|
47
|
+
others = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
74
48
|
var closeButtonDisplay = function closeButtonDisplay() {
|
|
75
49
|
return _Close || (_Close = /*#__PURE__*/(0, _jsxRuntime.jsx)(_uikitReactIcons.Close, {
|
|
76
50
|
role: "presentation"
|
|
77
51
|
}));
|
|
78
52
|
};
|
|
79
|
-
|
|
80
53
|
var CloseButtonTooltipWrapper = buttonTitle ? (0, _uikitReactCore.withTooltip)(closeButtonDisplay, buttonTitle, "top") : closeButtonDisplay;
|
|
81
54
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Drawer, _objectSpread(_objectSpread({
|
|
82
55
|
className: (0, _clsx.default)(classes.root, className),
|
|
@@ -107,18 +80,15 @@ var HvDrawer = function HvDrawer(_ref) {
|
|
|
107
80
|
}), children]
|
|
108
81
|
}));
|
|
109
82
|
};
|
|
110
|
-
|
|
111
83
|
process.env.NODE_ENV !== "production" ? HvDrawer.propTypes = {
|
|
112
84
|
/**
|
|
113
85
|
* Class names to be applied.
|
|
114
86
|
*/
|
|
115
87
|
className: _propTypes.default.string,
|
|
116
|
-
|
|
117
88
|
/**
|
|
118
89
|
* Id to be applied to the root node.
|
|
119
90
|
*/
|
|
120
91
|
id: _propTypes.default.string,
|
|
121
|
-
|
|
122
92
|
/**
|
|
123
93
|
* A Jss Object used to override or extend the styles applied.
|
|
124
94
|
*/
|
|
@@ -127,33 +97,27 @@ process.env.NODE_ENV !== "production" ? HvDrawer.propTypes = {
|
|
|
127
97
|
* Style applied to the root of the component.
|
|
128
98
|
*/
|
|
129
99
|
root: _propTypes.default.string,
|
|
130
|
-
|
|
131
100
|
/**
|
|
132
101
|
* Style applied to the background (outside) of the component.
|
|
133
102
|
*/
|
|
134
103
|
background: _propTypes.default.string,
|
|
135
|
-
|
|
136
104
|
/**
|
|
137
105
|
* Style applied to the component (root).
|
|
138
106
|
*/
|
|
139
107
|
paper: _propTypes.default.string,
|
|
140
|
-
|
|
141
108
|
/**
|
|
142
109
|
* Style applied to the close button.
|
|
143
110
|
*/
|
|
144
111
|
closeButton: _propTypes.default.string
|
|
145
112
|
}).isRequired,
|
|
146
|
-
|
|
147
113
|
/**
|
|
148
114
|
* Components of the Drawer.
|
|
149
115
|
*/
|
|
150
116
|
children: _propTypes.default.node.isRequired,
|
|
151
|
-
|
|
152
117
|
/**
|
|
153
118
|
* Current state of the Drawer.
|
|
154
119
|
*/
|
|
155
120
|
open: _propTypes.default.bool.isRequired,
|
|
156
|
-
|
|
157
121
|
/**
|
|
158
122
|
* Function executed on close.
|
|
159
123
|
* Extended from Modal from material-ui
|
|
@@ -162,21 +126,17 @@ process.env.NODE_ENV !== "production" ? HvDrawer.propTypes = {
|
|
|
162
126
|
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
|
|
163
127
|
*/
|
|
164
128
|
onClose: _propTypes.default.func.isRequired,
|
|
165
|
-
|
|
166
129
|
/**
|
|
167
130
|
* The side the drawer opens from.
|
|
168
131
|
*/
|
|
169
132
|
anchor: _propTypes.default.oneOf(["left", "top", "right", "bottom"]),
|
|
170
|
-
|
|
171
133
|
/**
|
|
172
134
|
* Title for the button close.
|
|
173
135
|
*/
|
|
174
136
|
buttonTitle: _propTypes.default.string
|
|
175
137
|
} : void 0;
|
|
176
|
-
|
|
177
138
|
var _default = (0, _styles.withStyles)(_styles2.default, {
|
|
178
139
|
name: "HvDrawer"
|
|
179
140
|
})(HvDrawer);
|
|
180
|
-
|
|
181
141
|
exports.default = _default;
|
|
182
142
|
//# sourceMappingURL=Drawer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.js","names":["HvDrawer","className","classes","id","children","open","onClose","anchor","buttonTitle","others","closeButtonDisplay","CloseButtonTooltipWrapper","withTooltip","clsx","root","paper","background","event","reason","setId","closeButton","propTypes","PropTypes","string","shape","isRequired","node","bool","func","oneOf","withStyles","styles","name"],"sources":["../../src/Drawer/Drawer.js"],"sourcesContent":["import React from \"react\";\nimport clsx from \"clsx\";\nimport PropTypes from \"prop-types\";\nimport { Drawer } from \"@mui/material\";\nimport { withStyles } from \"@mui/styles\";\nimport { Close } from \"@hitachivantara/uikit-react-icons\";\nimport { HvButton, withTooltip, setId } from \"@hitachivantara/uikit-react-core\";\nimport styles from \"./styles\";\n\n/**\n * The Drawer component provides a foundation to create a sliding pane.\n * It only provides the pane with a close button, the rest of the\n * content can be customized.\n */\nconst HvDrawer = ({\n className,\n classes,\n id,\n children,\n open,\n onClose,\n anchor = \"right\",\n buttonTitle = \"Close\",\n ...others\n}) => {\n const closeButtonDisplay = () => <Close role=\"presentation\" />;\n\n const CloseButtonTooltipWrapper = buttonTitle\n ? withTooltip(closeButtonDisplay, buttonTitle, \"top\")\n : closeButtonDisplay;\n\n return (\n <Drawer\n className={clsx(classes.root, className)}\n id={id}\n anchor={anchor}\n open={open}\n PaperProps={{\n classes: {\n root: classes.paper,\n },\n }}\n BackdropProps={{\n classes: {\n root: classes.background,\n },\n }}\n onClose={(event, reason) => onClose(event, reason)}\n {...others}\n >\n <HvButton\n id={setId(id, \"close\")}\n className={classes.closeButton}\n category=\"ghost\"\n onClick={onClose}\n aria-label={buttonTitle}\n >\n <CloseButtonTooltipWrapper />\n </HvButton>\n {children}\n </Drawer>\n );\n};\n\nHvDrawer.propTypes = {\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * Id to be applied to the root node.\n */\n id: PropTypes.string,\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Style applied to the root of the component.\n */\n root: PropTypes.string,\n /**\n * Style applied to the background (outside) of the component.\n */\n background: PropTypes.string,\n /**\n * Style applied to the component (root).\n */\n paper: PropTypes.string,\n /**\n * Style applied to the close button.\n */\n closeButton: PropTypes.string,\n }).isRequired,\n /**\n * Components of the Drawer.\n */\n children: PropTypes.node.isRequired,\n /**\n * Current state of the Drawer.\n */\n open: PropTypes.bool.isRequired,\n /**\n * Function executed on close.\n * Extended from Modal from material-ui\n *\n * @param {object} event The event source of the callback.\n * @param {string} reason Can be: `\"escapeKeyDown\"`, `\"backdropClick\"`.\n */\n onClose: PropTypes.func.isRequired,\n /**\n * The side the drawer opens from.\n */\n anchor: PropTypes.oneOf([\"left\", \"top\", \"right\", \"bottom\"]),\n /**\n * Title for the button close.\n */\n buttonTitle: PropTypes.string,\n};\n\nexport default withStyles(styles, { name: \"HvDrawer\" })(HvDrawer);\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Drawer.js","names":["HvDrawer","className","classes","id","children","open","onClose","anchor","buttonTitle","others","closeButtonDisplay","CloseButtonTooltipWrapper","withTooltip","clsx","root","paper","background","event","reason","setId","closeButton","propTypes","PropTypes","string","shape","isRequired","node","bool","func","oneOf","withStyles","styles","name"],"sources":["../../src/Drawer/Drawer.js"],"sourcesContent":["import React from \"react\";\nimport clsx from \"clsx\";\nimport PropTypes from \"prop-types\";\nimport { Drawer } from \"@mui/material\";\nimport { withStyles } from \"@mui/styles\";\nimport { Close } from \"@hitachivantara/uikit-react-icons\";\nimport { HvButton, withTooltip, setId } from \"@hitachivantara/uikit-react-core\";\nimport styles from \"./styles\";\n\n/**\n * The Drawer component provides a foundation to create a sliding pane.\n * It only provides the pane with a close button, the rest of the\n * content can be customized.\n */\nconst HvDrawer = ({\n className,\n classes,\n id,\n children,\n open,\n onClose,\n anchor = \"right\",\n buttonTitle = \"Close\",\n ...others\n}) => {\n const closeButtonDisplay = () => <Close role=\"presentation\" />;\n\n const CloseButtonTooltipWrapper = buttonTitle\n ? withTooltip(closeButtonDisplay, buttonTitle, \"top\")\n : closeButtonDisplay;\n\n return (\n <Drawer\n className={clsx(classes.root, className)}\n id={id}\n anchor={anchor}\n open={open}\n PaperProps={{\n classes: {\n root: classes.paper,\n },\n }}\n BackdropProps={{\n classes: {\n root: classes.background,\n },\n }}\n onClose={(event, reason) => onClose(event, reason)}\n {...others}\n >\n <HvButton\n id={setId(id, \"close\")}\n className={classes.closeButton}\n category=\"ghost\"\n onClick={onClose}\n aria-label={buttonTitle}\n >\n <CloseButtonTooltipWrapper />\n </HvButton>\n {children}\n </Drawer>\n );\n};\n\nHvDrawer.propTypes = {\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * Id to be applied to the root node.\n */\n id: PropTypes.string,\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Style applied to the root of the component.\n */\n root: PropTypes.string,\n /**\n * Style applied to the background (outside) of the component.\n */\n background: PropTypes.string,\n /**\n * Style applied to the component (root).\n */\n paper: PropTypes.string,\n /**\n * Style applied to the close button.\n */\n closeButton: PropTypes.string,\n }).isRequired,\n /**\n * Components of the Drawer.\n */\n children: PropTypes.node.isRequired,\n /**\n * Current state of the Drawer.\n */\n open: PropTypes.bool.isRequired,\n /**\n * Function executed on close.\n * Extended from Modal from material-ui\n *\n * @param {object} event The event source of the callback.\n * @param {string} reason Can be: `\"escapeKeyDown\"`, `\"backdropClick\"`.\n */\n onClose: PropTypes.func.isRequired,\n /**\n * The side the drawer opens from.\n */\n anchor: PropTypes.oneOf([\"left\", \"top\", \"right\", \"bottom\"]),\n /**\n * Title for the button close.\n */\n buttonTitle: PropTypes.string,\n};\n\nexport default withStyles(styles, { name: \"HvDrawer\" })(HvDrawer);\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAA8B;AAAA;AAAA;AAAA;AAAA;AAE9B;AACA;AACA;AACA;AACA;AACA,IAAMA,QAAQ,GAAG,SAAXA,QAAQ,OAUR;EAAA,IATJC,SAAS,QAATA,SAAS;IACTC,OAAO,QAAPA,OAAO;IACPC,EAAE,QAAFA,EAAE;IACFC,QAAQ,QAARA,QAAQ;IACRC,IAAI,QAAJA,IAAI;IACJC,QAAO,QAAPA,OAAO;IAAA,mBACPC,MAAM;IAANA,MAAM,4BAAG,OAAO;IAAA,wBAChBC,WAAW;IAAXA,WAAW,iCAAG,OAAO;IAClBC,MAAM;EAET,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkB;IAAA,wCAAS,qBAAC,sBAAK;MAAC,IAAI,EAAC;IAAc,EAAG;EAAA;EAE9D,IAAMC,yBAAyB,GAAGH,WAAW,GACzC,IAAAI,2BAAW,EAACF,kBAAkB,EAAEF,WAAW,EAAE,KAAK,CAAC,GACnDE,kBAAkB;EAEtB,oBACE,sBAAC,gBAAM;IACL,SAAS,EAAE,IAAAG,aAAI,EAACX,OAAO,CAACY,IAAI,EAAEb,SAAS,CAAE;IACzC,EAAE,EAAEE,EAAG;IACP,MAAM,EAAEI,MAAO;IACf,IAAI,EAAEF,IAAK;IACX,UAAU,EAAE;MACVH,OAAO,EAAE;QACPY,IAAI,EAAEZ,OAAO,CAACa;MAChB;IACF,CAAE;IACF,aAAa,EAAE;MACbb,OAAO,EAAE;QACPY,IAAI,EAAEZ,OAAO,CAACc;MAChB;IACF,CAAE;IACF,OAAO,EAAE,iBAACC,KAAK,EAAEC,MAAM;MAAA,OAAKZ,QAAO,CAACW,KAAK,EAAEC,MAAM,CAAC;IAAA;EAAC,GAC/CT,MAAM;IAAA,wBAEV,qBAAC,wBAAQ;MACP,EAAE,EAAE,IAAAU,qBAAK,EAAChB,EAAE,EAAE,OAAO,CAAE;MACvB,SAAS,EAAED,OAAO,CAACkB,WAAY;MAC/B,QAAQ,EAAC,OAAO;MAChB,OAAO,EAAEd,QAAQ;MACjB,cAAYE,WAAY;MAAA,uBAExB,qBAAC,yBAAyB;IAAG,EACpB,EACVJ,QAAQ;EAAA,GACF;AAEb,CAAC;AAED,wCAAAJ,QAAQ,CAACqB,SAAS,GAAG;EACnB;AACF;AACA;EACEpB,SAAS,EAAEqB,kBAAS,CAACC,MAAM;EAC3B;AACF;AACA;EACEpB,EAAE,EAAEmB,kBAAS,CAACC,MAAM;EACpB;AACF;AACA;EACErB,OAAO,EAAEoB,kBAAS,CAACE,KAAK,CAAC;IACvB;AACJ;AACA;IACIV,IAAI,EAAEQ,kBAAS,CAACC,MAAM;IACtB;AACJ;AACA;IACIP,UAAU,EAAEM,kBAAS,CAACC,MAAM;IAC5B;AACJ;AACA;IACIR,KAAK,EAAEO,kBAAS,CAACC,MAAM;IACvB;AACJ;AACA;IACIH,WAAW,EAAEE,kBAAS,CAACC;EACzB,CAAC,CAAC,CAACE,UAAU;EACb;AACF;AACA;EACErB,QAAQ,EAAEkB,kBAAS,CAACI,IAAI,CAACD,UAAU;EACnC;AACF;AACA;EACEpB,IAAI,EAAEiB,kBAAS,CAACK,IAAI,CAACF,UAAU;EAC/B;AACF;AACA;AACA;AACA;AACA;AACA;EACEnB,OAAO,EAAEgB,kBAAS,CAACM,IAAI,CAACH,UAAU;EAClC;AACF;AACA;EACElB,MAAM,EAAEe,kBAAS,CAACO,KAAK,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;EAC3D;AACF;AACA;EACErB,WAAW,EAAEc,kBAAS,CAACC;AACzB,CAAC;AAAC,eAEa,IAAAO,kBAAU,EAACC,gBAAM,EAAE;EAAEC,IAAI,EAAE;AAAW,CAAC,CAAC,CAAChC,QAAQ,CAAC;AAAA"}
|
package/dist/Drawer/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
@@ -11,6 +10,5 @@ Object.defineProperty(exports, "default", {
|
|
|
11
10
|
return _Drawer.default;
|
|
12
11
|
}
|
|
13
12
|
});
|
|
14
|
-
|
|
15
13
|
var _Drawer = _interopRequireDefault(require("./Drawer"));
|
|
16
14
|
//# sourceMappingURL=index.js.map
|
package/dist/Drawer/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/Drawer/index.js"],"sourcesContent":["export { default } from \"./Drawer\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/Drawer/index.js"],"sourcesContent":["export { default } from \"./Drawer\";\n"],"mappings":";;;;;;;;;;;;AAAA"}
|
package/dist/Drawer/styles.js
CHANGED
|
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _material = require("@mui/material");
|
|
9
|
-
|
|
10
8
|
var styles = function styles(theme) {
|
|
11
9
|
return {
|
|
12
10
|
background: {
|
|
@@ -27,7 +25,6 @@ var styles = function styles(theme) {
|
|
|
27
25
|
}
|
|
28
26
|
};
|
|
29
27
|
};
|
|
30
|
-
|
|
31
28
|
var _default = styles;
|
|
32
29
|
exports.default = _default;
|
|
33
30
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","names":["styles","theme","background","alpha","hexToRgb","hv","palette","atmosphere","atmo4","paper","atmo1","padding","overflow","boxShadow","shadows","closeButton","minWidth","position","top","hvSpacing","right"],"sources":["../../src/Drawer/styles.js"],"sourcesContent":["import { hexToRgb, alpha } from \"@mui/material\";\n\nconst styles = (theme) => ({\n background: {\n background: alpha(hexToRgb(theme.hv.palette.atmosphere.atmo4), 0.8),\n },\n paper: {\n background: `${theme.hv.palette.atmosphere.atmo1}`,\n padding: \"0px\",\n overflow: \"auto\",\n boxShadow: theme.hv.shadows[1],\n },\n closeButton: {\n padding: 0,\n minWidth: \"inherit\",\n position: \"absolute\",\n top: theme.hvSpacing(\"sm\"),\n right: theme.hvSpacing(\"sm\"),\n },\n});\n\nexport default styles;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.js","names":["styles","theme","background","alpha","hexToRgb","hv","palette","atmosphere","atmo4","paper","atmo1","padding","overflow","boxShadow","shadows","closeButton","minWidth","position","top","hvSpacing","right"],"sources":["../../src/Drawer/styles.js"],"sourcesContent":["import { hexToRgb, alpha } from \"@mui/material\";\n\nconst styles = (theme) => ({\n background: {\n background: alpha(hexToRgb(theme.hv.palette.atmosphere.atmo4), 0.8),\n },\n paper: {\n background: `${theme.hv.palette.atmosphere.atmo1}`,\n padding: \"0px\",\n overflow: \"auto\",\n boxShadow: theme.hv.shadows[1],\n },\n closeButton: {\n padding: 0,\n minWidth: \"inherit\",\n position: \"absolute\",\n top: theme.hvSpacing(\"sm\"),\n right: theme.hvSpacing(\"sm\"),\n },\n});\n\nexport default styles;\n"],"mappings":";;;;;;AAAA;AAEA,IAAMA,MAAM,GAAG,SAATA,MAAM,CAAIC,KAAK;EAAA,OAAM;IACzBC,UAAU,EAAE;MACVA,UAAU,EAAE,IAAAC,eAAK,EAAC,IAAAC,kBAAQ,EAACH,KAAK,CAACI,EAAE,CAACC,OAAO,CAACC,UAAU,CAACC,KAAK,CAAC,EAAE,GAAG;IACpE,CAAC;IACDC,KAAK,EAAE;MACLP,UAAU,YAAKD,KAAK,CAACI,EAAE,CAACC,OAAO,CAACC,UAAU,CAACG,KAAK,CAAE;MAClDC,OAAO,EAAE,KAAK;MACdC,QAAQ,EAAE,MAAM;MAChBC,SAAS,EAAEZ,KAAK,CAACI,EAAE,CAACS,OAAO,CAAC,CAAC;IAC/B,CAAC;IACDC,WAAW,EAAE;MACXJ,OAAO,EAAE,CAAC;MACVK,QAAQ,EAAE,SAAS;MACnBC,QAAQ,EAAE,UAAU;MACpBC,GAAG,EAAEjB,KAAK,CAACkB,SAAS,CAAC,IAAI,CAAC;MAC1BC,KAAK,EAAEnB,KAAK,CAACkB,SAAS,CAAC,IAAI;IAC7B;EACF,CAAC;AAAA,CAAC;AAAC,eAEYnB,MAAM;AAAA"}
|