@hitachivantara/uikit-react-lab 2.6.18
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/CHANGELOG.md +2334 -0
- package/LICENSE.txt +201 -0
- package/README.md +11 -0
- package/dist/AppSwitcherPanel/Action/Action.d.ts +67 -0
- package/dist/AppSwitcherPanel/Action/Action.js +255 -0
- package/dist/AppSwitcherPanel/Action/Action.js.map +1 -0
- package/dist/AppSwitcherPanel/Action/index.d.ts +2 -0
- package/dist/AppSwitcherPanel/Action/index.js +21 -0
- package/dist/AppSwitcherPanel/Action/index.js.map +1 -0
- package/dist/AppSwitcherPanel/Action/styles.js +91 -0
- package/dist/AppSwitcherPanel/Action/styles.js.map +1 -0
- package/dist/AppSwitcherPanel/AppSwitcherPanel.d.ts +50 -0
- package/dist/AppSwitcherPanel/AppSwitcherPanel.js +230 -0
- package/dist/AppSwitcherPanel/AppSwitcherPanel.js.map +1 -0
- package/dist/AppSwitcherPanel/index.d.ts +2 -0
- package/dist/AppSwitcherPanel/index.js +21 -0
- package/dist/AppSwitcherPanel/index.js.map +1 -0
- package/dist/AppSwitcherPanel/styles.js +83 -0
- package/dist/AppSwitcherPanel/styles.js.map +1 -0
- package/dist/CodeEditor/CodeEditor.d.ts +14 -0
- package/dist/CodeEditor/CodeEditor.js +144 -0
- package/dist/CodeEditor/CodeEditor.js.map +1 -0
- package/dist/CodeEditor/index.d.ts +2 -0
- package/dist/CodeEditor/index.js +16 -0
- package/dist/CodeEditor/index.js.map +1 -0
- package/dist/CodeEditor/styles.js +53 -0
- package/dist/CodeEditor/styles.js.map +1 -0
- package/dist/Footer/Footer.d.ts +12 -0
- package/dist/Footer/Footer.js +67 -0
- package/dist/Footer/Footer.js.map +1 -0
- package/dist/Footer/index.d.ts +2 -0
- package/dist/Footer/index.js +16 -0
- package/dist/Footer/index.js.map +1 -0
- package/dist/Footer/styles.js +54 -0
- package/dist/Footer/styles.js.map +1 -0
- package/dist/FormComposer/FormComposer.d.ts +41 -0
- package/dist/FormComposer/FormComposer.js +258 -0
- package/dist/FormComposer/FormComposer.js.map +1 -0
- package/dist/FormComposer/index.d.ts +2 -0
- package/dist/FormComposer/index.js +16 -0
- package/dist/FormComposer/index.js.map +1 -0
- package/dist/FormComposer/styles.js +39 -0
- package/dist/FormComposer/styles.js.map +1 -0
- package/dist/Loading/Loading.d.ts +32 -0
- package/dist/Loading/Loading.js +89 -0
- package/dist/Loading/Loading.js.map +1 -0
- package/dist/Loading/LoadingWithDelay.d.ts +12 -0
- package/dist/Loading/LoadingWithDelay.js +135 -0
- package/dist/Loading/LoadingWithDelay.js.map +1 -0
- package/dist/Loading/index.d.ts +2 -0
- package/dist/Loading/index.js +16 -0
- package/dist/Loading/index.js.map +1 -0
- package/dist/Loading/styles.js +85 -0
- package/dist/Loading/styles.js.map +1 -0
- package/dist/NavigationAnchors/NavigationAnchors.d.ts +46 -0
- package/dist/NavigationAnchors/NavigationAnchors.js +297 -0
- package/dist/NavigationAnchors/NavigationAnchors.js.map +1 -0
- package/dist/NavigationAnchors/index.d.ts +2 -0
- package/dist/NavigationAnchors/index.js +16 -0
- package/dist/NavigationAnchors/index.js.map +1 -0
- package/dist/NavigationAnchors/styles.js +87 -0
- package/dist/NavigationAnchors/styles.js.map +1 -0
- package/dist/NotificationPanel/Notification/Notification.js +153 -0
- package/dist/NotificationPanel/Notification/Notification.js.map +1 -0
- package/dist/NotificationPanel/Notification/index.js +21 -0
- package/dist/NotificationPanel/Notification/index.js.map +1 -0
- package/dist/NotificationPanel/Notification/styles.js +73 -0
- package/dist/NotificationPanel/Notification/styles.js.map +1 -0
- package/dist/NotificationPanel/NotificationPanel.d.ts +49 -0
- package/dist/NotificationPanel/NotificationPanel.js +219 -0
- package/dist/NotificationPanel/NotificationPanel.js.map +1 -0
- package/dist/NotificationPanel/Panel/Panel.js +202 -0
- package/dist/NotificationPanel/Panel/Panel.js.map +1 -0
- package/dist/NotificationPanel/Panel/index.js +21 -0
- package/dist/NotificationPanel/Panel/index.js.map +1 -0
- package/dist/NotificationPanel/Panel/styles.js +84 -0
- package/dist/NotificationPanel/Panel/styles.js.map +1 -0
- package/dist/NotificationPanel/index.d.ts +2 -0
- package/dist/NotificationPanel/index.js +16 -0
- package/dist/NotificationPanel/index.js.map +1 -0
- package/dist/NotificationPanel/styles.js +16 -0
- package/dist/NotificationPanel/styles.js.map +1 -0
- package/dist/Slider/KnobRing/KnobRing.js +26 -0
- package/dist/Slider/KnobRing/KnobRing.js.map +1 -0
- package/dist/Slider/KnobRing/index.js +19 -0
- package/dist/Slider/KnobRing/index.js.map +1 -0
- package/dist/Slider/KnobRing/styles.js +40 -0
- package/dist/Slider/KnobRing/styles.js.map +1 -0
- package/dist/Slider/Slider.d.ts +133 -0
- package/dist/Slider/Slider.js +607 -0
- package/dist/Slider/Slider.js.map +1 -0
- package/dist/Slider/index.d.ts +2 -0
- package/dist/Slider/index.js +16 -0
- package/dist/Slider/index.js.map +1 -0
- package/dist/Slider/styles.js +125 -0
- package/dist/Slider/styles.js.map +1 -0
- package/dist/TimePicker/PeriodPicker/PeriodPicker.js +128 -0
- package/dist/TimePicker/PeriodPicker/PeriodPicker.js.map +1 -0
- package/dist/TimePicker/PeriodPicker/index.js +21 -0
- package/dist/TimePicker/PeriodPicker/index.js.map +1 -0
- package/dist/TimePicker/PeriodPicker/styles.js +63 -0
- package/dist/TimePicker/PeriodPicker/styles.js.map +1 -0
- package/dist/TimePicker/TimePicker.d.ts +77 -0
- package/dist/TimePicker/TimePicker.js +425 -0
- package/dist/TimePicker/TimePicker.js.map +1 -0
- package/dist/TimePicker/UnitTimePicker/UnitTimePicker.js +225 -0
- package/dist/TimePicker/UnitTimePicker/UnitTimePicker.js.map +1 -0
- package/dist/TimePicker/UnitTimePicker/index.js +21 -0
- package/dist/TimePicker/UnitTimePicker/index.js.map +1 -0
- package/dist/TimePicker/UnitTimePicker/styles.js +80 -0
- package/dist/TimePicker/UnitTimePicker/styles.js.map +1 -0
- package/dist/TimePicker/enums.js +40 -0
- package/dist/TimePicker/enums.js.map +1 -0
- package/dist/TimePicker/index.d.ts +2 -0
- package/dist/TimePicker/index.js +16 -0
- package/dist/TimePicker/index.js.map +1 -0
- package/dist/TimePicker/styles.js +113 -0
- package/dist/TimePicker/styles.js.map +1 -0
- package/dist/TimePicker/timePickerConverter.js +90 -0
- package/dist/TimePicker/timePickerConverter.js.map +1 -0
- package/dist/TimePicker/timePickerFormatter.js +77 -0
- package/dist/TimePicker/timePickerFormatter.js.map +1 -0
- package/dist/TimePicker/timePickerUtils.js +36 -0
- package/dist/TimePicker/timePickerUtils.js.map +1 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +80 -0
- package/dist/index.js.map +1 -0
- package/dist/legacy/AppSwitcherPanel/Action/Action.d.ts +67 -0
- package/dist/legacy/AppSwitcherPanel/Action/Action.js +214 -0
- package/dist/legacy/AppSwitcherPanel/Action/Action.js.map +1 -0
- package/dist/legacy/AppSwitcherPanel/Action/index.d.ts +2 -0
- package/dist/legacy/AppSwitcherPanel/Action/index.js +7 -0
- package/dist/legacy/AppSwitcherPanel/Action/index.js.map +1 -0
- package/dist/legacy/AppSwitcherPanel/Action/styles.js +83 -0
- package/dist/legacy/AppSwitcherPanel/Action/styles.js.map +1 -0
- package/dist/legacy/AppSwitcherPanel/AppSwitcherPanel.d.ts +50 -0
- package/dist/legacy/AppSwitcherPanel/AppSwitcherPanel.js +195 -0
- package/dist/legacy/AppSwitcherPanel/AppSwitcherPanel.js.map +1 -0
- package/dist/legacy/AppSwitcherPanel/index.d.ts +2 -0
- package/dist/legacy/AppSwitcherPanel/index.js +7 -0
- package/dist/legacy/AppSwitcherPanel/index.js.map +1 -0
- package/dist/legacy/AppSwitcherPanel/styles.js +65 -0
- package/dist/legacy/AppSwitcherPanel/styles.js.map +1 -0
- package/dist/legacy/CodeEditor/CodeEditor.d.ts +14 -0
- package/dist/legacy/CodeEditor/CodeEditor.js +114 -0
- package/dist/legacy/CodeEditor/CodeEditor.js.map +1 -0
- package/dist/legacy/CodeEditor/index.d.ts +2 -0
- package/dist/legacy/CodeEditor/index.js +2 -0
- package/dist/legacy/CodeEditor/index.js.map +1 -0
- package/dist/legacy/CodeEditor/styles.js +45 -0
- package/dist/legacy/CodeEditor/styles.js.map +1 -0
- package/dist/legacy/Footer/Footer.d.ts +12 -0
- package/dist/legacy/Footer/Footer.js +51 -0
- package/dist/legacy/Footer/Footer.js.map +1 -0
- package/dist/legacy/Footer/index.d.ts +2 -0
- package/dist/legacy/Footer/index.js +2 -0
- package/dist/legacy/Footer/index.js.map +1 -0
- package/dist/legacy/Footer/styles.js +44 -0
- package/dist/legacy/Footer/styles.js.map +1 -0
- package/dist/legacy/FormComposer/FormComposer.d.ts +41 -0
- package/dist/legacy/FormComposer/FormComposer.js +218 -0
- package/dist/legacy/FormComposer/FormComposer.js.map +1 -0
- package/dist/legacy/FormComposer/index.d.ts +2 -0
- package/dist/legacy/FormComposer/index.js +2 -0
- package/dist/legacy/FormComposer/index.js.map +1 -0
- package/dist/legacy/FormComposer/styles.js +31 -0
- package/dist/legacy/FormComposer/styles.js.map +1 -0
- package/dist/legacy/Loading/Loading.d.ts +32 -0
- package/dist/legacy/Loading/Loading.js +71 -0
- package/dist/legacy/Loading/Loading.js.map +1 -0
- package/dist/legacy/Loading/LoadingWithDelay.d.ts +12 -0
- package/dist/legacy/Loading/LoadingWithDelay.js +97 -0
- package/dist/legacy/Loading/LoadingWithDelay.js.map +1 -0
- package/dist/legacy/Loading/index.d.ts +2 -0
- package/dist/legacy/Loading/index.js +2 -0
- package/dist/legacy/Loading/index.js.map +1 -0
- package/dist/legacy/Loading/styles.js +78 -0
- package/dist/legacy/Loading/styles.js.map +1 -0
- package/dist/legacy/NavigationAnchors/NavigationAnchors.d.ts +46 -0
- package/dist/legacy/NavigationAnchors/NavigationAnchors.js +275 -0
- package/dist/legacy/NavigationAnchors/NavigationAnchors.js.map +1 -0
- package/dist/legacy/NavigationAnchors/index.d.ts +2 -0
- package/dist/legacy/NavigationAnchors/index.js +2 -0
- package/dist/legacy/NavigationAnchors/index.js.map +1 -0
- package/dist/legacy/NavigationAnchors/styles.js +70 -0
- package/dist/legacy/NavigationAnchors/styles.js.map +1 -0
- package/dist/legacy/NotificationPanel/Notification/Notification.js +119 -0
- package/dist/legacy/NotificationPanel/Notification/Notification.js.map +1 -0
- package/dist/legacy/NotificationPanel/Notification/index.js +7 -0
- package/dist/legacy/NotificationPanel/Notification/index.js.map +1 -0
- package/dist/legacy/NotificationPanel/Notification/styles.js +56 -0
- package/dist/legacy/NotificationPanel/Notification/styles.js.map +1 -0
- package/dist/legacy/NotificationPanel/NotificationPanel.d.ts +49 -0
- package/dist/legacy/NotificationPanel/NotificationPanel.js +182 -0
- package/dist/legacy/NotificationPanel/NotificationPanel.js.map +1 -0
- package/dist/legacy/NotificationPanel/Panel/Panel.js +166 -0
- package/dist/legacy/NotificationPanel/Panel/Panel.js.map +1 -0
- package/dist/legacy/NotificationPanel/Panel/index.js +7 -0
- package/dist/legacy/NotificationPanel/Panel/index.js.map +1 -0
- package/dist/legacy/NotificationPanel/Panel/styles.js +66 -0
- package/dist/legacy/NotificationPanel/Panel/styles.js.map +1 -0
- package/dist/legacy/NotificationPanel/index.d.ts +2 -0
- package/dist/legacy/NotificationPanel/index.js +2 -0
- package/dist/legacy/NotificationPanel/index.js.map +1 -0
- package/dist/legacy/NotificationPanel/styles.js +9 -0
- package/dist/legacy/NotificationPanel/styles.js.map +1 -0
- package/dist/legacy/Slider/KnobRing/KnobRing.js +15 -0
- package/dist/legacy/Slider/KnobRing/KnobRing.js.map +1 -0
- package/dist/legacy/Slider/KnobRing/index.js +5 -0
- package/dist/legacy/Slider/KnobRing/index.js.map +1 -0
- package/dist/legacy/Slider/KnobRing/styles.js +32 -0
- package/dist/legacy/Slider/KnobRing/styles.js.map +1 -0
- package/dist/legacy/Slider/Slider.d.ts +133 -0
- package/dist/legacy/Slider/Slider.js +583 -0
- package/dist/legacy/Slider/Slider.js.map +1 -0
- package/dist/legacy/Slider/index.d.ts +2 -0
- package/dist/legacy/Slider/index.js +2 -0
- package/dist/legacy/Slider/index.js.map +1 -0
- package/dist/legacy/Slider/styles.js +108 -0
- package/dist/legacy/Slider/styles.js.map +1 -0
- package/dist/legacy/TimePicker/PeriodPicker/PeriodPicker.js +110 -0
- package/dist/legacy/TimePicker/PeriodPicker/PeriodPicker.js.map +1 -0
- package/dist/legacy/TimePicker/PeriodPicker/index.js +7 -0
- package/dist/legacy/TimePicker/PeriodPicker/index.js.map +1 -0
- package/dist/legacy/TimePicker/PeriodPicker/styles.js +46 -0
- package/dist/legacy/TimePicker/PeriodPicker/styles.js.map +1 -0
- package/dist/legacy/TimePicker/TimePicker.d.ts +77 -0
- package/dist/legacy/TimePicker/TimePicker.js +402 -0
- package/dist/legacy/TimePicker/TimePicker.js.map +1 -0
- package/dist/legacy/TimePicker/UnitTimePicker/UnitTimePicker.js +207 -0
- package/dist/legacy/TimePicker/UnitTimePicker/UnitTimePicker.js.map +1 -0
- package/dist/legacy/TimePicker/UnitTimePicker/index.js +7 -0
- package/dist/legacy/TimePicker/UnitTimePicker/index.js.map +1 -0
- package/dist/legacy/TimePicker/UnitTimePicker/styles.js +63 -0
- package/dist/legacy/TimePicker/UnitTimePicker/styles.js.map +1 -0
- package/dist/legacy/TimePicker/enums.js +32 -0
- package/dist/legacy/TimePicker/enums.js.map +1 -0
- package/dist/legacy/TimePicker/index.d.ts +2 -0
- package/dist/legacy/TimePicker/index.js +2 -0
- package/dist/legacy/TimePicker/index.js.map +1 -0
- package/dist/legacy/TimePicker/styles.js +96 -0
- package/dist/legacy/TimePicker/styles.js.map +1 -0
- package/dist/legacy/TimePicker/timePickerConverter.js +71 -0
- package/dist/legacy/TimePicker/timePickerConverter.js.map +1 -0
- package/dist/legacy/TimePicker/timePickerFormatter.js +63 -0
- package/dist/legacy/TimePicker/timePickerFormatter.js.map +1 -0
- package/dist/legacy/TimePicker/timePickerUtils.js +27 -0
- package/dist/legacy/TimePicker/timePickerUtils.js.map +1 -0
- package/dist/legacy/index.d.ts +26 -0
- package/dist/legacy/index.js +11 -0
- package/dist/legacy/index.js.map +1 -0
- package/dist/legacy/withStyleProps/WithStyleProps.js +14 -0
- package/dist/legacy/withStyleProps/WithStyleProps.js.map +1 -0
- package/dist/legacy/withStyleProps/index.js +2 -0
- package/dist/legacy/withStyleProps/index.js.map +1 -0
- package/dist/modern/AppSwitcherPanel/Action/Action.d.ts +67 -0
- package/dist/modern/AppSwitcherPanel/Action/Action.js +177 -0
- package/dist/modern/AppSwitcherPanel/Action/Action.js.map +1 -0
- package/dist/modern/AppSwitcherPanel/Action/index.d.ts +2 -0
- package/dist/modern/AppSwitcherPanel/Action/index.js +7 -0
- package/dist/modern/AppSwitcherPanel/Action/index.js.map +1 -0
- package/dist/modern/AppSwitcherPanel/Action/styles.js +77 -0
- package/dist/modern/AppSwitcherPanel/Action/styles.js.map +1 -0
- package/dist/modern/AppSwitcherPanel/AppSwitcherPanel.d.ts +50 -0
- package/dist/modern/AppSwitcherPanel/AppSwitcherPanel.js +167 -0
- package/dist/modern/AppSwitcherPanel/AppSwitcherPanel.js.map +1 -0
- package/dist/modern/AppSwitcherPanel/index.d.ts +2 -0
- package/dist/modern/AppSwitcherPanel/index.js +7 -0
- package/dist/modern/AppSwitcherPanel/index.js.map +1 -0
- package/dist/modern/AppSwitcherPanel/styles.js +55 -0
- package/dist/modern/AppSwitcherPanel/styles.js.map +1 -0
- package/dist/modern/CodeEditor/CodeEditor.d.ts +14 -0
- package/dist/modern/CodeEditor/CodeEditor.js +109 -0
- package/dist/modern/CodeEditor/CodeEditor.js.map +1 -0
- package/dist/modern/CodeEditor/index.d.ts +2 -0
- package/dist/modern/CodeEditor/index.js +2 -0
- package/dist/modern/CodeEditor/index.js.map +1 -0
- package/dist/modern/CodeEditor/styles.js +43 -0
- package/dist/modern/CodeEditor/styles.js.map +1 -0
- package/dist/modern/Footer/Footer.d.ts +12 -0
- package/dist/modern/Footer/Footer.js +51 -0
- package/dist/modern/Footer/Footer.js.map +1 -0
- package/dist/modern/Footer/index.d.ts +2 -0
- package/dist/modern/Footer/index.js +2 -0
- package/dist/modern/Footer/index.js.map +1 -0
- package/dist/modern/Footer/styles.js +43 -0
- package/dist/modern/Footer/styles.js.map +1 -0
- package/dist/modern/FormComposer/FormComposer.d.ts +41 -0
- package/dist/modern/FormComposer/FormComposer.js +183 -0
- package/dist/modern/FormComposer/FormComposer.js.map +1 -0
- package/dist/modern/FormComposer/index.d.ts +2 -0
- package/dist/modern/FormComposer/index.js +2 -0
- package/dist/modern/FormComposer/index.js.map +1 -0
- package/dist/modern/FormComposer/styles.js +29 -0
- package/dist/modern/FormComposer/styles.js.map +1 -0
- package/dist/modern/Loading/Loading.d.ts +32 -0
- package/dist/modern/Loading/Loading.js +72 -0
- package/dist/modern/Loading/Loading.js.map +1 -0
- package/dist/modern/Loading/LoadingWithDelay.d.ts +12 -0
- package/dist/modern/Loading/LoadingWithDelay.js +92 -0
- package/dist/modern/Loading/LoadingWithDelay.js.map +1 -0
- package/dist/modern/Loading/index.d.ts +2 -0
- package/dist/modern/Loading/index.js +2 -0
- package/dist/modern/Loading/index.js.map +1 -0
- package/dist/modern/Loading/styles.js +76 -0
- package/dist/modern/Loading/styles.js.map +1 -0
- package/dist/modern/NavigationAnchors/NavigationAnchors.d.ts +46 -0
- package/dist/modern/NavigationAnchors/NavigationAnchors.js +243 -0
- package/dist/modern/NavigationAnchors/NavigationAnchors.js.map +1 -0
- package/dist/modern/NavigationAnchors/index.d.ts +2 -0
- package/dist/modern/NavigationAnchors/index.js +2 -0
- package/dist/modern/NavigationAnchors/index.js.map +1 -0
- package/dist/modern/NavigationAnchors/styles.js +61 -0
- package/dist/modern/NavigationAnchors/styles.js.map +1 -0
- package/dist/modern/NotificationPanel/Notification/Notification.js +90 -0
- package/dist/modern/NotificationPanel/Notification/Notification.js.map +1 -0
- package/dist/modern/NotificationPanel/Notification/index.js +7 -0
- package/dist/modern/NotificationPanel/Notification/index.js.map +1 -0
- package/dist/modern/NotificationPanel/Notification/styles.js +45 -0
- package/dist/modern/NotificationPanel/Notification/styles.js.map +1 -0
- package/dist/modern/NotificationPanel/NotificationPanel.d.ts +49 -0
- package/dist/modern/NotificationPanel/NotificationPanel.js +153 -0
- package/dist/modern/NotificationPanel/NotificationPanel.js.map +1 -0
- package/dist/modern/NotificationPanel/Panel/Panel.js +133 -0
- package/dist/modern/NotificationPanel/Panel/Panel.js.map +1 -0
- package/dist/modern/NotificationPanel/Panel/index.js +7 -0
- package/dist/modern/NotificationPanel/Panel/index.js.map +1 -0
- package/dist/modern/NotificationPanel/Panel/styles.js +56 -0
- package/dist/modern/NotificationPanel/Panel/styles.js.map +1 -0
- package/dist/modern/NotificationPanel/index.d.ts +2 -0
- package/dist/modern/NotificationPanel/index.js +2 -0
- package/dist/modern/NotificationPanel/index.js.map +1 -0
- package/dist/modern/NotificationPanel/styles.js +9 -0
- package/dist/modern/NotificationPanel/styles.js.map +1 -0
- package/dist/modern/Slider/KnobRing/KnobRing.js +17 -0
- package/dist/modern/Slider/KnobRing/KnobRing.js.map +1 -0
- package/dist/modern/Slider/KnobRing/index.js +5 -0
- package/dist/modern/Slider/KnobRing/index.js.map +1 -0
- package/dist/modern/Slider/KnobRing/styles.js +34 -0
- package/dist/modern/Slider/KnobRing/styles.js.map +1 -0
- package/dist/modern/Slider/Slider.d.ts +133 -0
- package/dist/modern/Slider/Slider.js +542 -0
- package/dist/modern/Slider/Slider.js.map +1 -0
- package/dist/modern/Slider/index.d.ts +2 -0
- package/dist/modern/Slider/index.js +2 -0
- package/dist/modern/Slider/index.js.map +1 -0
- package/dist/modern/Slider/styles.js +99 -0
- package/dist/modern/Slider/styles.js.map +1 -0
- package/dist/modern/TimePicker/PeriodPicker/PeriodPicker.js +88 -0
- package/dist/modern/TimePicker/PeriodPicker/PeriodPicker.js.map +1 -0
- package/dist/modern/TimePicker/PeriodPicker/index.js +7 -0
- package/dist/modern/TimePicker/PeriodPicker/index.js.map +1 -0
- package/dist/modern/TimePicker/PeriodPicker/styles.js +37 -0
- package/dist/modern/TimePicker/PeriodPicker/styles.js.map +1 -0
- package/dist/modern/TimePicker/TimePicker.d.ts +77 -0
- package/dist/modern/TimePicker/TimePicker.js +394 -0
- package/dist/modern/TimePicker/TimePicker.js.map +1 -0
- package/dist/modern/TimePicker/UnitTimePicker/UnitTimePicker.js +186 -0
- package/dist/modern/TimePicker/UnitTimePicker/UnitTimePicker.js.map +1 -0
- package/dist/modern/TimePicker/UnitTimePicker/index.js +7 -0
- package/dist/modern/TimePicker/UnitTimePicker/index.js.map +1 -0
- package/dist/modern/TimePicker/UnitTimePicker/styles.js +54 -0
- package/dist/modern/TimePicker/UnitTimePicker/styles.js.map +1 -0
- package/dist/modern/TimePicker/enums.js +32 -0
- package/dist/modern/TimePicker/enums.js.map +1 -0
- package/dist/modern/TimePicker/index.d.ts +2 -0
- package/dist/modern/TimePicker/index.js +2 -0
- package/dist/modern/TimePicker/index.js.map +1 -0
- package/dist/modern/TimePicker/styles.js +87 -0
- package/dist/modern/TimePicker/styles.js.map +1 -0
- package/dist/modern/TimePicker/timePickerConverter.js +66 -0
- package/dist/modern/TimePicker/timePickerConverter.js.map +1 -0
- package/dist/modern/TimePicker/timePickerFormatter.js +62 -0
- package/dist/modern/TimePicker/timePickerFormatter.js.map +1 -0
- package/dist/modern/TimePicker/timePickerUtils.js +26 -0
- package/dist/modern/TimePicker/timePickerUtils.js.map +1 -0
- package/dist/modern/index.d.ts +26 -0
- package/dist/modern/index.js +11 -0
- package/dist/modern/index.js.map +1 -0
- package/dist/modern/withStyleProps/WithStyleProps.js +10 -0
- package/dist/modern/withStyleProps/WithStyleProps.js.map +1 -0
- package/dist/modern/withStyleProps/index.js +2 -0
- package/dist/modern/withStyleProps/index.js.map +1 -0
- package/dist/withStyleProps/WithStyleProps.js +25 -0
- package/dist/withStyleProps/WithStyleProps.js.map +1 -0
- package/dist/withStyleProps/index.js +16 -0
- package/dist/withStyleProps/index.js.map +1 -0
- package/package.json +72 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { StandardProps } from "@material-ui/core";
|
|
3
|
+
|
|
4
|
+
import { HvAppSwitcherPanelActionApplication } from "./Action";
|
|
5
|
+
|
|
6
|
+
export type HvAppSwitcherPanelClassKey =
|
|
7
|
+
| "root"
|
|
8
|
+
| "open"
|
|
9
|
+
| "headerContainer"
|
|
10
|
+
| "titleContainer"
|
|
11
|
+
| "title"
|
|
12
|
+
| "actionsContainer"
|
|
13
|
+
| "footerContainer";
|
|
14
|
+
|
|
15
|
+
export interface HvAppSwitcherPanelProps
|
|
16
|
+
extends StandardProps<React.HTMLAttributes<HTMLElement>, HvAppSwitcherPanelClassKey> {
|
|
17
|
+
/**
|
|
18
|
+
* Flag stating if the panel is opened or closed.
|
|
19
|
+
*/
|
|
20
|
+
isOpen?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Title to be displayed on the header of the component.
|
|
23
|
+
*/
|
|
24
|
+
title?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The list of applications to be used to render the actions on the component.
|
|
27
|
+
*/
|
|
28
|
+
applications: HvAppSwitcherPanelActionApplication[];
|
|
29
|
+
/**
|
|
30
|
+
* Element to be added to the header container, if none is provided a label with the title will be added.
|
|
31
|
+
*/
|
|
32
|
+
header?: React.ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Element to be added to the footer container.
|
|
35
|
+
*/
|
|
36
|
+
footer?: React.ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* Triggered when an action is clicked.
|
|
39
|
+
*/
|
|
40
|
+
onActionClickedCallback?: (
|
|
41
|
+
event: MouseEvent,
|
|
42
|
+
application?: HvAppSwitcherPanelActionApplication
|
|
43
|
+
) => void;
|
|
44
|
+
/**
|
|
45
|
+
* Must return a boolean stating if the action element is selected or not.
|
|
46
|
+
*/
|
|
47
|
+
isActionSelectedCallback?: (application?: HvAppSwitcherPanelActionApplication) => boolean;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export default function HvAppSwitcherPanel(props: HvAppSwitcherPanelProps): JSX.Element | null;
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import "core-js/modules/es.object.to-string.js";
|
|
2
|
+
import "core-js/modules/es.reflect.construct.js";
|
|
3
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
4
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
5
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
6
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
7
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
8
|
+
import "core-js/modules/es.array.map.js";
|
|
9
|
+
import "core-js/modules/es.function.name.js";
|
|
10
|
+
import "core-js/modules/es.array.concat.js";
|
|
11
|
+
|
|
12
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
13
|
+
|
|
14
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
15
|
+
|
|
16
|
+
import React, { Component } from "react";
|
|
17
|
+
import PropTypes from "prop-types";
|
|
18
|
+
import uniqueId from "lodash/uniqueId";
|
|
19
|
+
import Action from "./Action";
|
|
20
|
+
|
|
21
|
+
var AppSwitcherPanel = /*#__PURE__*/function (_Component) {
|
|
22
|
+
_inherits(AppSwitcherPanel, _Component);
|
|
23
|
+
|
|
24
|
+
var _super = _createSuper(AppSwitcherPanel);
|
|
25
|
+
|
|
26
|
+
function AppSwitcherPanel(props) {
|
|
27
|
+
var _this;
|
|
28
|
+
|
|
29
|
+
_classCallCheck(this, AppSwitcherPanel);
|
|
30
|
+
|
|
31
|
+
_this = _super.call(this, props);
|
|
32
|
+
var id = _this.props.id;
|
|
33
|
+
_this.state = {
|
|
34
|
+
internalId: id || uniqueId("hv-appswitcherpanel-")
|
|
35
|
+
};
|
|
36
|
+
return _this;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
_createClass(AppSwitcherPanel, [{
|
|
40
|
+
key: "render",
|
|
41
|
+
value: function render() {
|
|
42
|
+
var internalId = this.state.internalId;
|
|
43
|
+
var _this$props = this.props,
|
|
44
|
+
classes = _this$props.classes,
|
|
45
|
+
isOpen = _this$props.isOpen,
|
|
46
|
+
title = _this$props.title,
|
|
47
|
+
applications = _this$props.applications,
|
|
48
|
+
header = _this$props.header,
|
|
49
|
+
footer = _this$props.footer,
|
|
50
|
+
onActionClickedCallback = _this$props.onActionClickedCallback,
|
|
51
|
+
isActionSelectedCallback = _this$props.isActionSelectedCallback;
|
|
52
|
+
|
|
53
|
+
var actionClicked = function actionClicked(event, application) {
|
|
54
|
+
if (onActionClickedCallback) {
|
|
55
|
+
onActionClickedCallback(event, application);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
var panelActions = applications.map(function (application) {
|
|
60
|
+
if (application.name && application.url) {
|
|
61
|
+
return /*#__PURE__*/React.createElement(Action, {
|
|
62
|
+
key: application.url,
|
|
63
|
+
application: application,
|
|
64
|
+
onClickCallback: actionClicked,
|
|
65
|
+
isSelectedCallback: isActionSelectedCallback
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return undefined;
|
|
70
|
+
});
|
|
71
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
72
|
+
id: internalId,
|
|
73
|
+
className: "".concat(classes.root, " ").concat(isOpen ? classes.open : "")
|
|
74
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
75
|
+
className: classes.headerContainer
|
|
76
|
+
}, header || /*#__PURE__*/React.createElement("div", {
|
|
77
|
+
className: classes.titleContainer
|
|
78
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
79
|
+
className: classes.title,
|
|
80
|
+
title: title
|
|
81
|
+
}, title))), /*#__PURE__*/React.createElement("div", {
|
|
82
|
+
className: classes.actionsContainer
|
|
83
|
+
}, panelActions), footer && /*#__PURE__*/React.createElement("div", {
|
|
84
|
+
className: classes.footerContainer
|
|
85
|
+
}, footer));
|
|
86
|
+
}
|
|
87
|
+
}]);
|
|
88
|
+
|
|
89
|
+
return AppSwitcherPanel;
|
|
90
|
+
}(Component);
|
|
91
|
+
|
|
92
|
+
export { AppSwitcherPanel as default };
|
|
93
|
+
process.env.NODE_ENV !== "production" ? AppSwitcherPanel.propTypes = {
|
|
94
|
+
id: PropTypes.string,
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* A Jss Object used to override or extend the styles applied.
|
|
98
|
+
*/
|
|
99
|
+
classes: PropTypes.shape({
|
|
100
|
+
root: PropTypes.string,
|
|
101
|
+
open: PropTypes.string,
|
|
102
|
+
headerContainer: PropTypes.string,
|
|
103
|
+
titleContainer: PropTypes.string,
|
|
104
|
+
title: PropTypes.string,
|
|
105
|
+
actionsContainer: PropTypes.string,
|
|
106
|
+
footerContainer: PropTypes.string
|
|
107
|
+
}).isRequired,
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Flag stating if the panel is opened or closed.
|
|
111
|
+
*/
|
|
112
|
+
isOpen: PropTypes.bool,
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Title to be displayed on the header of the component.
|
|
116
|
+
*/
|
|
117
|
+
title: PropTypes.string,
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* The list of applications to be used to render the actions on the component.
|
|
121
|
+
*/
|
|
122
|
+
applications: PropTypes.arrayOf(PropTypes.shape({
|
|
123
|
+
/**
|
|
124
|
+
* Id of the application.
|
|
125
|
+
*/
|
|
126
|
+
id: PropTypes.string.isRequired,
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Name of the application, this is the value that will be displayed on the component.
|
|
130
|
+
*/
|
|
131
|
+
name: PropTypes.string.isRequired,
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* URL with the icon location to be used to represent the application.
|
|
135
|
+
* iconUrl will only be used if no iconElement is provided.
|
|
136
|
+
*/
|
|
137
|
+
iconUrl: PropTypes.string,
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Element to be added as the icon representing the application.
|
|
141
|
+
* The iconElement will be the primary option to be displayed.
|
|
142
|
+
*/
|
|
143
|
+
iconElement: PropTypes.element,
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Small description of the application.
|
|
147
|
+
*/
|
|
148
|
+
description: PropTypes.string,
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* URL where the application is accesible.
|
|
152
|
+
*/
|
|
153
|
+
url: PropTypes.string.isRequired,
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Defines if the application should be opened in the same tab or in a new one.
|
|
157
|
+
*/
|
|
158
|
+
target: PropTypes.oneOf(["_top", "_blank"]),
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* True when the application is selected, false otherwise.
|
|
162
|
+
*/
|
|
163
|
+
isSelected: PropTypes.bool
|
|
164
|
+
})).isRequired,
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Element to be added to the header container, if none is provided a label with the title will be added.
|
|
168
|
+
*/
|
|
169
|
+
header: PropTypes.element,
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Element to be added to the footer container.
|
|
173
|
+
*/
|
|
174
|
+
footer: PropTypes.element,
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Triggered when an action is clicked.
|
|
178
|
+
*/
|
|
179
|
+
onActionClickedCallback: PropTypes.func,
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Must return a boolean stating if the action element is selected or not.
|
|
183
|
+
*/
|
|
184
|
+
isActionSelectedCallback: PropTypes.func
|
|
185
|
+
} : void 0;
|
|
186
|
+
AppSwitcherPanel.defaultProps = {
|
|
187
|
+
isOpen: false,
|
|
188
|
+
title: "Apps",
|
|
189
|
+
footer: undefined,
|
|
190
|
+
onActionClickedCallback: function onActionClickedCallback() {},
|
|
191
|
+
isActionSelectedCallback: function isActionSelectedCallback() {
|
|
192
|
+
return false;
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
//# sourceMappingURL=AppSwitcherPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppSwitcherPanel.js","names":["React","Component","PropTypes","uniqueId","Action","AppSwitcherPanel","props","id","state","internalId","classes","isOpen","title","applications","header","footer","onActionClickedCallback","isActionSelectedCallback","actionClicked","event","application","panelActions","map","name","url","undefined","root","open","headerContainer","titleContainer","actionsContainer","footerContainer","propTypes","string","shape","isRequired","bool","arrayOf","iconUrl","iconElement","element","description","target","oneOf","isSelected","func","defaultProps"],"sources":["../../../src/AppSwitcherPanel/AppSwitcherPanel.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport uniqueId from \"lodash/uniqueId\";\n\nimport Action from \"./Action\";\n\nexport default class AppSwitcherPanel extends Component {\n constructor(props) {\n super(props);\n\n const { id } = this.props;\n\n this.state = {\n internalId: id || uniqueId(\"hv-appswitcherpanel-\"),\n };\n }\n\n render() {\n const { internalId } = this.state;\n const {\n classes,\n isOpen,\n title,\n applications,\n header,\n footer,\n onActionClickedCallback,\n isActionSelectedCallback,\n } = this.props;\n\n const actionClicked = (event, application) => {\n if (onActionClickedCallback) {\n onActionClickedCallback(event, application);\n }\n };\n\n const panelActions = applications.map((application) => {\n if (application.name && application.url) {\n return (\n <Action\n key={application.url}\n application={application}\n onClickCallback={actionClicked}\n isSelectedCallback={isActionSelectedCallback}\n />\n );\n }\n\n return undefined;\n });\n\n return (\n <div id={internalId} className={`${classes.root} ${isOpen ? classes.open : \"\"}`}>\n <div className={classes.headerContainer}>\n {header || (\n <div className={classes.titleContainer}>\n <div className={classes.title} title={title}>\n {title}\n </div>\n </div>\n )}\n </div>\n <div className={classes.actionsContainer}>{panelActions}</div>\n {footer && <div className={classes.footerContainer}>{footer}</div>}\n </div>\n );\n }\n}\n\nAppSwitcherPanel.propTypes = {\n id: PropTypes.string,\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n root: PropTypes.string,\n open: PropTypes.string,\n headerContainer: PropTypes.string,\n titleContainer: PropTypes.string,\n title: PropTypes.string,\n actionsContainer: PropTypes.string,\n footerContainer: PropTypes.string,\n }).isRequired,\n /**\n * Flag stating if the panel is opened or closed.\n */\n isOpen: PropTypes.bool,\n /**\n * Title to be displayed on the header of the component.\n */\n title: PropTypes.string,\n /**\n * The list of applications to be used to render the actions on the component.\n */\n applications: PropTypes.arrayOf(\n PropTypes.shape({\n /**\n * Id of the application.\n */\n id: PropTypes.string.isRequired,\n /**\n * Name of the application, this is the value that will be displayed on the component.\n */\n name: PropTypes.string.isRequired,\n /**\n * URL with the icon location to be used to represent the application.\n * iconUrl will only be used if no iconElement is provided.\n */\n iconUrl: PropTypes.string,\n /**\n * Element to be added as the icon representing the application.\n * The iconElement will be the primary option to be displayed.\n */\n iconElement: PropTypes.element,\n /**\n * Small description of the application.\n */\n description: PropTypes.string,\n /**\n * URL where the application is accesible.\n */\n url: PropTypes.string.isRequired,\n /**\n * Defines if the application should be opened in the same tab or in a new one.\n */\n target: PropTypes.oneOf([\"_top\", \"_blank\"]),\n /**\n * True when the application is selected, false otherwise.\n */\n isSelected: PropTypes.bool,\n })\n ).isRequired,\n /**\n * Element to be added to the header container, if none is provided a label with the title will be added.\n */\n header: PropTypes.element,\n /**\n * Element to be added to the footer container.\n */\n footer: PropTypes.element,\n /**\n * Triggered when an action is clicked.\n */\n onActionClickedCallback: PropTypes.func,\n /**\n * Must return a boolean stating if the action element is selected or not.\n */\n isActionSelectedCallback: PropTypes.func,\n};\n\nAppSwitcherPanel.defaultProps = {\n isOpen: false,\n title: \"Apps\",\n footer: undefined,\n onActionClickedCallback: () => {},\n isActionSelectedCallback: () => false,\n};\n"],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["withStyles","styles","AppSwitcherPanel","withTheme"],"sources":["../../../src/AppSwitcherPanel/index.js"],"sourcesContent":["import withStyles from \"@material-ui/core/styles/withStyles\";\nimport styles from \"./styles\";\nimport AppSwitcherPanel from \"./AppSwitcherPanel\";\n\nexport default withStyles(styles, { withTheme: true })(AppSwitcherPanel);\n"],"mappings":"AAAA,OAAOA,UAAP,MAAuB,qCAAvB;AACA,OAAOC,MAAP,MAAmB,UAAnB;AACA,OAAOC,gBAAP,MAA6B,oBAA7B;AAEA,eAAeF,UAAU,CAACC,MAAD,EAAS;EAAEE,SAAS,EAAE;AAAb,CAAT,CAAV,CAAwCD,gBAAxC,CAAf"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import "core-js/modules/es.object.keys.js";
|
|
2
|
+
import "core-js/modules/es.symbol.js";
|
|
3
|
+
import "core-js/modules/es.array.filter.js";
|
|
4
|
+
import "core-js/modules/es.object.to-string.js";
|
|
5
|
+
import "core-js/modules/es.object.get-own-property-descriptor.js";
|
|
6
|
+
import "core-js/modules/web.dom-collections.for-each.js";
|
|
7
|
+
import "core-js/modules/es.object.get-own-property-descriptors.js";
|
|
8
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
|
+
import "core-js/modules/es.array.concat.js";
|
|
10
|
+
|
|
11
|
+
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; }
|
|
12
|
+
|
|
13
|
+
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) { _defineProperty(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; }
|
|
14
|
+
|
|
15
|
+
var styles = function styles(theme) {
|
|
16
|
+
return {
|
|
17
|
+
root: {
|
|
18
|
+
display: "none",
|
|
19
|
+
width: "320px",
|
|
20
|
+
backgroundColor: theme.hv.palette.atmosphere.atmo1,
|
|
21
|
+
boxShadow: "0 2px 12px rgba(65, 65, 65, 0.12)" // rgb color corresponds to #414141;
|
|
22
|
+
|
|
23
|
+
},
|
|
24
|
+
open: {
|
|
25
|
+
display: "flex",
|
|
26
|
+
zIndex: "1200",
|
|
27
|
+
flexDirection: "column",
|
|
28
|
+
position: "absolute",
|
|
29
|
+
top: "50px",
|
|
30
|
+
overflowX: "hidden"
|
|
31
|
+
},
|
|
32
|
+
headerContainer: _objectSpread(_objectSpread({}, theme.hv.typography.highlightText), {}, {
|
|
33
|
+
display: "flex",
|
|
34
|
+
justifyContent: "space-between",
|
|
35
|
+
alignItems: "center",
|
|
36
|
+
padding: "".concat(theme.hv.spacing.sm, "px"),
|
|
37
|
+
borderBottom: "3px solid ".concat(theme.hv.palette.atmosphere.atmo2)
|
|
38
|
+
}),
|
|
39
|
+
titleContainer: {
|
|
40
|
+
width: "100%",
|
|
41
|
+
display: "flex",
|
|
42
|
+
alignItems: "center"
|
|
43
|
+
},
|
|
44
|
+
title: {
|
|
45
|
+
overflow: "hidden",
|
|
46
|
+
whiteSpace: "nowrap",
|
|
47
|
+
textOverflow: "ellipsis"
|
|
48
|
+
},
|
|
49
|
+
actionsContainer: {
|
|
50
|
+
flex: 1,
|
|
51
|
+
padding: "".concat(theme.hv.spacing.sm, "px"),
|
|
52
|
+
overflowY: "auto"
|
|
53
|
+
},
|
|
54
|
+
footerContainer: _objectSpread(_objectSpread({}, theme.hv.typography.highlightText), {}, {
|
|
55
|
+
display: "flex",
|
|
56
|
+
alignItems: "center",
|
|
57
|
+
height: "52px",
|
|
58
|
+
borderTop: "3px solid ".concat(theme.hv.palette.atmosphere.atmo2),
|
|
59
|
+
padding: "".concat(theme.hv.spacing.xs, "px ").concat(theme.hv.spacing.sm, "px")
|
|
60
|
+
})
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export default styles;
|
|
65
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","names":["styles","theme","root","display","width","backgroundColor","hv","palette","atmosphere","atmo1","boxShadow","open","zIndex","flexDirection","position","top","overflowX","headerContainer","typography","highlightText","justifyContent","alignItems","padding","spacing","sm","borderBottom","atmo2","titleContainer","title","overflow","whiteSpace","textOverflow","actionsContainer","flex","overflowY","footerContainer","height","borderTop","xs"],"sources":["../../../src/AppSwitcherPanel/styles.js"],"sourcesContent":["const styles = (theme) => ({\n root: {\n display: \"none\",\n width: \"320px\",\n backgroundColor: theme.hv.palette.atmosphere.atmo1,\n boxShadow: `0 2px 12px rgba(65, 65, 65, 0.12)`, // rgb color corresponds to #414141;\n },\n open: {\n display: \"flex\",\n zIndex: \"1200\",\n flexDirection: \"column\",\n position: \"absolute\",\n top: \"50px\",\n overflowX: \"hidden\",\n },\n\n headerContainer: {\n ...theme.hv.typography.highlightText,\n display: \"flex\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n padding: `${theme.hv.spacing.sm}px`,\n borderBottom: `3px solid ${theme.hv.palette.atmosphere.atmo2}`,\n },\n titleContainer: {\n width: \"100%\",\n display: \"flex\",\n alignItems: \"center\",\n },\n title: {\n overflow: \"hidden\",\n whiteSpace: \"nowrap\",\n textOverflow: \"ellipsis\",\n },\n\n actionsContainer: {\n flex: 1,\n padding: `${theme.hv.spacing.sm}px`,\n overflowY: \"auto\",\n },\n\n footerContainer: {\n ...theme.hv.typography.highlightText,\n display: \"flex\",\n alignItems: \"center\",\n height: \"52px\",\n borderTop: `3px solid ${theme.hv.palette.atmosphere.atmo2}`,\n padding: `${theme.hv.spacing.xs}px ${theme.hv.spacing.sm}px`,\n },\n});\n\nexport default styles;\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;EAAA,OAAY;IACzBC,IAAI,EAAE;MACJC,OAAO,EAAE,MADL;MAEJC,KAAK,EAAE,OAFH;MAGJC,eAAe,EAAEJ,KAAK,CAACK,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BC,KAHzC;MAIJC,SAAS,qCAJL,CAI4C;;IAJ5C,CADmB;IAOzBC,IAAI,EAAE;MACJR,OAAO,EAAE,MADL;MAEJS,MAAM,EAAE,MAFJ;MAGJC,aAAa,EAAE,QAHX;MAIJC,QAAQ,EAAE,UAJN;MAKJC,GAAG,EAAE,MALD;MAMJC,SAAS,EAAE;IANP,CAPmB;IAgBzBC,eAAe,kCACVhB,KAAK,CAACK,EAAN,CAASY,UAAT,CAAoBC,aADV;MAEbhB,OAAO,EAAE,MAFI;MAGbiB,cAAc,EAAE,eAHH;MAIbC,UAAU,EAAE,QAJC;MAKbC,OAAO,YAAKrB,KAAK,CAACK,EAAN,CAASiB,OAAT,CAAiBC,EAAtB,OALM;MAMbC,YAAY,sBAAexB,KAAK,CAACK,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BkB,KAA3C;IANC,EAhBU;IAwBzBC,cAAc,EAAE;MACdvB,KAAK,EAAE,MADO;MAEdD,OAAO,EAAE,MAFK;MAGdkB,UAAU,EAAE;IAHE,CAxBS;IA6BzBO,KAAK,EAAE;MACLC,QAAQ,EAAE,QADL;MAELC,UAAU,EAAE,QAFP;MAGLC,YAAY,EAAE;IAHT,CA7BkB;IAmCzBC,gBAAgB,EAAE;MAChBC,IAAI,EAAE,CADU;MAEhBX,OAAO,YAAKrB,KAAK,CAACK,EAAN,CAASiB,OAAT,CAAiBC,EAAtB,OAFS;MAGhBU,SAAS,EAAE;IAHK,CAnCO;IAyCzBC,eAAe,kCACVlC,KAAK,CAACK,EAAN,CAASY,UAAT,CAAoBC,aADV;MAEbhB,OAAO,EAAE,MAFI;MAGbkB,UAAU,EAAE,QAHC;MAIbe,MAAM,EAAE,MAJK;MAKbC,SAAS,sBAAepC,KAAK,CAACK,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BkB,KAA3C,CALI;MAMbJ,OAAO,YAAKrB,KAAK,CAACK,EAAN,CAASiB,OAAT,CAAiBe,EAAtB,gBAA8BrC,KAAK,CAACK,EAAN,CAASiB,OAAT,CAAiBC,EAA/C;IANM;EAzCU,CAAZ;AAAA,CAAf;;AAmDA,eAAexB,MAAf"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MonacoEditorProps } from "react-monaco-editor";
|
|
2
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
3
|
+
import { editor } from "monaco-editor";
|
|
4
|
+
|
|
5
|
+
export type HvCodeEditorProps = {
|
|
6
|
+
editorProps: MonacoEditorProps;
|
|
7
|
+
defaultValue?: string;
|
|
8
|
+
onChange?(value: string): void;
|
|
9
|
+
options?: editor.IEditorConstructionOptions;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export type HvCodeEditorClassKey = "root";
|
|
13
|
+
|
|
14
|
+
export default function HvCodeEditor(props: HvCodeEditorProps): JSX.Element | null;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import "core-js/modules/es.object.keys.js";
|
|
2
|
+
import "core-js/modules/es.symbol.js";
|
|
3
|
+
import "core-js/modules/es.array.filter.js";
|
|
4
|
+
import "core-js/modules/es.object.to-string.js";
|
|
5
|
+
import "core-js/modules/es.object.get-own-property-descriptor.js";
|
|
6
|
+
import "core-js/modules/web.dom-collections.for-each.js";
|
|
7
|
+
import "core-js/modules/es.object.get-own-property-descriptors.js";
|
|
8
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
9
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
10
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
11
|
+
var _excluded = ["classes", "theme", "defaultValue", "options", "editorProps"];
|
|
12
|
+
|
|
13
|
+
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; }
|
|
14
|
+
|
|
15
|
+
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) { _defineProperty(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; }
|
|
16
|
+
|
|
17
|
+
import React from "react";
|
|
18
|
+
import PropTypes from "prop-types";
|
|
19
|
+
import MonacoEditor from "react-monaco-editor";
|
|
20
|
+
import withTheme from "@material-ui/core/styles/withTheme";
|
|
21
|
+
import withStyles from "@material-ui/core/styles/withStyles";
|
|
22
|
+
import styles from "./styles";
|
|
23
|
+
export var DefaultCodeEditorOptions = {
|
|
24
|
+
automaticLayout: true,
|
|
25
|
+
// TODO add a resize event listener and manually resize?
|
|
26
|
+
overviewRulerLanes: 0,
|
|
27
|
+
minimap: {
|
|
28
|
+
enabled: true
|
|
29
|
+
},
|
|
30
|
+
scrollBeyondLastLine: false,
|
|
31
|
+
scrollbar: {
|
|
32
|
+
horizontal: "visible",
|
|
33
|
+
vertical: "visible",
|
|
34
|
+
verticalScrollbarSize: 20,
|
|
35
|
+
horizontalScrollbarSize: 20,
|
|
36
|
+
verticalSliderSize: 5,
|
|
37
|
+
horizontalSliderSize: 5
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* A wrapper to the React Monaco editor (https://github.com/react-monaco-editor/react-monaco-editor) with our styles.
|
|
42
|
+
* Please make sure you follow the instructions (found in the repository) to include the component. Webpack configurations, and MonacoWebpackPlugin, are required to see the editor syntax highlight.
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
var CodeEditor = function CodeEditor(_ref) {
|
|
46
|
+
var classes = _ref.classes,
|
|
47
|
+
theme = _ref.theme,
|
|
48
|
+
defaultValue = _ref.defaultValue,
|
|
49
|
+
options = _ref.options,
|
|
50
|
+
editorProps = _ref.editorProps,
|
|
51
|
+
others = _objectWithoutProperties(_ref, _excluded);
|
|
52
|
+
|
|
53
|
+
// merges the 2 objects together, overriding defaults with passed in options
|
|
54
|
+
var mergedOptions = _objectSpread(_objectSpread({}, DefaultCodeEditorOptions), options);
|
|
55
|
+
|
|
56
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
57
|
+
className: classes.root
|
|
58
|
+
}, /*#__PURE__*/React.createElement(MonacoEditor, _extends({
|
|
59
|
+
defaultValue: defaultValue,
|
|
60
|
+
options: mergedOptions,
|
|
61
|
+
editorWillMount: function editorWillMount(monaco) {
|
|
62
|
+
monaco.editor.defineTheme("hv", {
|
|
63
|
+
base: theme.hv.type === "light" ? "vs" : "vs-dark",
|
|
64
|
+
inherit: true,
|
|
65
|
+
rules: [],
|
|
66
|
+
colors: {
|
|
67
|
+
"editor.background": theme.hv.palette.atmosphere.atmo1,
|
|
68
|
+
"editorLineNumber.foreground": theme.hv.palette.atmosphere.atmo7
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
},
|
|
72
|
+
theme: "hv"
|
|
73
|
+
}, editorProps, others)));
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
process.env.NODE_ENV !== "production" ? CodeEditor.propTypes = {
|
|
77
|
+
/*
|
|
78
|
+
* A Jss Object used to override or extend the styles applied.
|
|
79
|
+
*/
|
|
80
|
+
classes: PropTypes.shape({
|
|
81
|
+
/**
|
|
82
|
+
* Styles applied to the component root class.
|
|
83
|
+
*/
|
|
84
|
+
root: PropTypes.string
|
|
85
|
+
}).isRequired,
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* styling theme to be applied to the code editor
|
|
89
|
+
*/
|
|
90
|
+
theme: PropTypes.any.isRequired,
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* The properties of the Monaco editor. Please check MonacoEditorProps from https://microsoft.github.io/monaco-editor/api/index.html
|
|
94
|
+
*/
|
|
95
|
+
editorProps: PropTypes.instanceOf(Object).isRequired,
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* The initial value of the code editor
|
|
99
|
+
*/
|
|
100
|
+
defaultValue: PropTypes.string,
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* The function called when the written code changes
|
|
104
|
+
* @param {*} value
|
|
105
|
+
*/
|
|
106
|
+
onChange: PropTypes.func,
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* The properties of the editor object in Monaco. Please check editor.IEditorConstructionOptions in https://microsoft.github.io/monaco-editor/api/index.html
|
|
110
|
+
*/
|
|
111
|
+
options: PropTypes.instanceOf(Object)
|
|
112
|
+
} : void 0;
|
|
113
|
+
export default withStyles(styles)(withTheme(CodeEditor));
|
|
114
|
+
//# sourceMappingURL=CodeEditor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeEditor.js","names":["React","PropTypes","MonacoEditor","withTheme","withStyles","styles","DefaultCodeEditorOptions","automaticLayout","overviewRulerLanes","minimap","enabled","scrollBeyondLastLine","scrollbar","horizontal","vertical","verticalScrollbarSize","horizontalScrollbarSize","verticalSliderSize","horizontalSliderSize","CodeEditor","classes","theme","defaultValue","options","editorProps","others","mergedOptions","root","monaco","editor","defineTheme","base","hv","type","inherit","rules","colors","palette","atmosphere","atmo1","atmo7","propTypes","shape","string","isRequired","any","instanceOf","Object","onChange","func"],"sources":["../../../src/CodeEditor/CodeEditor.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nimport MonacoEditor from \"react-monaco-editor\";\n\nimport withTheme from \"@material-ui/core/styles/withTheme\";\nimport withStyles from \"@material-ui/core/styles/withStyles\";\nimport styles from \"./styles\";\n\nexport const DefaultCodeEditorOptions = {\n automaticLayout: true, // TODO add a resize event listener and manually resize?\n overviewRulerLanes: 0,\n minimap: {\n enabled: true,\n },\n scrollBeyondLastLine: false,\n scrollbar: {\n horizontal: \"visible\",\n vertical: \"visible\",\n verticalScrollbarSize: 20,\n horizontalScrollbarSize: 20,\n verticalSliderSize: 5,\n horizontalSliderSize: 5,\n },\n};\n\n/**\n * A wrapper to the React Monaco editor (https://github.com/react-monaco-editor/react-monaco-editor) with our styles.\n * Please make sure you follow the instructions (found in the repository) to include the component. Webpack configurations, and MonacoWebpackPlugin, are required to see the editor syntax highlight.\n */\nconst CodeEditor = ({ classes, theme, defaultValue, options, editorProps, ...others }) => {\n // merges the 2 objects together, overriding defaults with passed in options\n const mergedOptions = {\n ...DefaultCodeEditorOptions,\n ...options,\n };\n\n return (\n <div className={classes.root}>\n <MonacoEditor\n defaultValue={defaultValue}\n options={mergedOptions}\n editorWillMount={(monaco) => {\n monaco.editor.defineTheme(\"hv\", {\n base: theme.hv.type === \"light\" ? \"vs\" : \"vs-dark\",\n inherit: true,\n rules: [],\n colors: {\n \"editor.background\": theme.hv.palette.atmosphere.atmo1,\n \"editorLineNumber.foreground\": theme.hv.palette.atmosphere.atmo7,\n },\n });\n }}\n theme=\"hv\"\n {...editorProps}\n {...others}\n />\n </div>\n );\n};\n\nCodeEditor.propTypes = {\n /*\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root class.\n */\n root: PropTypes.string,\n }).isRequired,\n /**\n * styling theme to be applied to the code editor\n */\n theme: PropTypes.any.isRequired,\n /**\n * The properties of the Monaco editor. Please check MonacoEditorProps from https://microsoft.github.io/monaco-editor/api/index.html\n */\n editorProps: PropTypes.instanceOf(Object).isRequired,\n /**\n * The initial value of the code editor\n */\n defaultValue: PropTypes.string,\n /**\n * The function called when the written code changes\n * @param {*} value\n */\n onChange: PropTypes.func,\n /**\n * The properties of the editor object in Monaco. Please check editor.IEditorConstructionOptions in https://microsoft.github.io/monaco-editor/api/index.html\n */\n options: PropTypes.instanceOf(Object),\n};\n\nexport default withStyles(styles)(withTheme(CodeEditor));\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,YAAP,MAAyB,qBAAzB;AAEA,OAAOC,SAAP,MAAsB,oCAAtB;AACA,OAAOC,UAAP,MAAuB,qCAAvB;AACA,OAAOC,MAAP,MAAmB,UAAnB;AAEA,OAAO,IAAMC,wBAAwB,GAAG;EACtCC,eAAe,EAAE,IADqB;EACf;EACvBC,kBAAkB,EAAE,CAFkB;EAGtCC,OAAO,EAAE;IACPC,OAAO,EAAE;EADF,CAH6B;EAMtCC,oBAAoB,EAAE,KANgB;EAOtCC,SAAS,EAAE;IACTC,UAAU,EAAE,SADH;IAETC,QAAQ,EAAE,SAFD;IAGTC,qBAAqB,EAAE,EAHd;IAITC,uBAAuB,EAAE,EAJhB;IAKTC,kBAAkB,EAAE,CALX;IAMTC,oBAAoB,EAAE;EANb;AAP2B,CAAjC;AAiBP;AACA;AACA;AACA;;AACA,IAAMC,UAAU,GAAG,SAAbA,UAAa,OAAuE;EAAA,IAApEC,OAAoE,QAApEA,OAAoE;EAAA,IAA3DC,KAA2D,QAA3DA,KAA2D;EAAA,IAApDC,YAAoD,QAApDA,YAAoD;EAAA,IAAtCC,OAAsC,QAAtCA,OAAsC;EAAA,IAA7BC,WAA6B,QAA7BA,WAA6B;EAAA,IAAbC,MAAa;;EACxF;EACA,IAAMC,aAAa,mCACdpB,wBADc,GAEdiB,OAFc,CAAnB;;EAKA,oBACE;IAAK,SAAS,EAAEH,OAAO,CAACO;EAAxB,gBACE,oBAAC,YAAD;IACE,YAAY,EAAEL,YADhB;IAEE,OAAO,EAAEI,aAFX;IAGE,eAAe,EAAE,yBAACE,MAAD,EAAY;MAC3BA,MAAM,CAACC,MAAP,CAAcC,WAAd,CAA0B,IAA1B,EAAgC;QAC9BC,IAAI,EAAEV,KAAK,CAACW,EAAN,CAASC,IAAT,KAAkB,OAAlB,GAA4B,IAA5B,GAAmC,SADX;QAE9BC,OAAO,EAAE,IAFqB;QAG9BC,KAAK,EAAE,EAHuB;QAI9BC,MAAM,EAAE;UACN,qBAAqBf,KAAK,CAACW,EAAN,CAASK,OAAT,CAAiBC,UAAjB,CAA4BC,KAD3C;UAEN,+BAA+BlB,KAAK,CAACW,EAAN,CAASK,OAAT,CAAiBC,UAAjB,CAA4BE;QAFrD;MAJsB,CAAhC;IASD,CAbH;IAcE,KAAK,EAAC;EAdR,GAeMhB,WAfN,EAgBMC,MAhBN,EADF,CADF;AAsBD,CA7BD;;AA+BA,wCAAAN,UAAU,CAACsB,SAAX,GAAuB;EACrB;AACF;AACA;EACErB,OAAO,EAAEnB,SAAS,CAACyC,KAAV,CAAgB;IACvB;AACJ;AACA;IACIf,IAAI,EAAE1B,SAAS,CAAC0C;EAJO,CAAhB,EAKNC,UATkB;;EAUrB;AACF;AACA;EACEvB,KAAK,EAAEpB,SAAS,CAAC4C,GAAV,CAAcD,UAbA;;EAcrB;AACF;AACA;EACEpB,WAAW,EAAEvB,SAAS,CAAC6C,UAAV,CAAqBC,MAArB,EAA6BH,UAjBrB;;EAkBrB;AACF;AACA;EACEtB,YAAY,EAAErB,SAAS,CAAC0C,MArBH;;EAsBrB;AACF;AACA;AACA;EACEK,QAAQ,EAAE/C,SAAS,CAACgD,IA1BC;;EA2BrB;AACF;AACA;EACE1B,OAAO,EAAEtB,SAAS,CAAC6C,UAAV,CAAqBC,MAArB;AA9BY,CAAvB;AAiCA,eAAe3C,UAAU,CAACC,MAAD,CAAV,CAAmBF,SAAS,CAACgB,UAAD,CAA5B,CAAf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["default"],"sources":["../../../src/CodeEditor/index.js"],"sourcesContent":["export { default } from \"./CodeEditor\";\n"],"mappings":"AAAA,SAASA,OAAT,QAAwB,cAAxB"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { createStyles } from "@material-ui/core";
|
|
2
|
+
|
|
3
|
+
var styles = function styles(theme) {
|
|
4
|
+
return createStyles({
|
|
5
|
+
root: {
|
|
6
|
+
border: "solid 1px ".concat(theme.hv.palette.atmosphere.atmo7),
|
|
7
|
+
"& .monaco-editor": {},
|
|
8
|
+
"& .monaco-editor .minimap > canvas": {
|
|
9
|
+
borderLeft: "solid 1px ".concat(theme.hv.palette.atmosphere.atmo5)
|
|
10
|
+
},
|
|
11
|
+
"& .monaco-editor .margin": {
|
|
12
|
+
background: theme.hv.palette.atmosphere.atmo2,
|
|
13
|
+
borderRight: "solid 1px ".concat(theme.hv.palette.atmosphere.atmo5)
|
|
14
|
+
},
|
|
15
|
+
"& .monaco-scrollable-element > .scrollbar > .slider": {
|
|
16
|
+
borderRadius: "5px",
|
|
17
|
+
background: theme.hv.palette.atmosphere.atmo5
|
|
18
|
+
},
|
|
19
|
+
"& .monaco-scrollable-element > .scrollbar > .slider:hover": {
|
|
20
|
+
background: theme.hv.palette.accent.acce1
|
|
21
|
+
},
|
|
22
|
+
"& .monaco-scrollable-element > .scrollbar > .slider:active": {
|
|
23
|
+
background: theme.hv.palette.accent.acce1
|
|
24
|
+
},
|
|
25
|
+
"& .monaco-scrollable-element > .visible": {
|
|
26
|
+
background: theme.hv.palette.atmosphere.atmo1
|
|
27
|
+
},
|
|
28
|
+
"& .monaco-scrollable-element > .visible.horizontal": {
|
|
29
|
+
borderTop: "solid 1px ".concat(theme.hv.palette.atmosphere.atmo5)
|
|
30
|
+
},
|
|
31
|
+
"& .monaco-scrollable-element > .visible.vertical": {
|
|
32
|
+
borderLeft: "solid 1px ".concat(theme.hv.palette.atmosphere.atmo5)
|
|
33
|
+
},
|
|
34
|
+
"& .monaco-editor .scroll-decoration": {
|
|
35
|
+
display: "none"
|
|
36
|
+
},
|
|
37
|
+
"& .monaco-editor .minimap-shadow-visible": {
|
|
38
|
+
display: "none"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export default styles;
|
|
45
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","names":["createStyles","styles","theme","root","border","hv","palette","atmosphere","atmo7","borderLeft","atmo5","background","atmo2","borderRight","borderRadius","accent","acce1","atmo1","borderTop","display"],"sources":["../../../src/CodeEditor/styles.js"],"sourcesContent":["import { createStyles } from \"@material-ui/core\";\n\nconst styles = (theme) =>\n createStyles({\n root: {\n border: `solid 1px ${theme.hv.palette.atmosphere.atmo7}`,\n \"& .monaco-editor\": {},\n \"& .monaco-editor .minimap > canvas\": {\n borderLeft: `solid 1px ${theme.hv.palette.atmosphere.atmo5}`,\n },\n \"& .monaco-editor .margin\": {\n background: theme.hv.palette.atmosphere.atmo2,\n borderRight: `solid 1px ${theme.hv.palette.atmosphere.atmo5}`,\n },\n \"& .monaco-scrollable-element > .scrollbar > .slider\": {\n borderRadius: \"5px\",\n background: theme.hv.palette.atmosphere.atmo5,\n },\n \"& .monaco-scrollable-element > .scrollbar > .slider:hover\": {\n background: theme.hv.palette.accent.acce1,\n },\n \"& .monaco-scrollable-element > .scrollbar > .slider:active\": {\n background: theme.hv.palette.accent.acce1,\n },\n \"& .monaco-scrollable-element > .visible\": {\n background: theme.hv.palette.atmosphere.atmo1,\n },\n \"& .monaco-scrollable-element > .visible.horizontal\": {\n borderTop: `solid 1px ${theme.hv.palette.atmosphere.atmo5}`,\n },\n \"& .monaco-scrollable-element > .visible.vertical\": {\n borderLeft: `solid 1px ${theme.hv.palette.atmosphere.atmo5}`,\n },\n \"& .monaco-editor .scroll-decoration\": {\n display: \"none\",\n },\n \"& .monaco-editor .minimap-shadow-visible\": {\n display: \"none\",\n },\n },\n });\n\nexport default styles;\n"],"mappings":"AAAA,SAASA,YAAT,QAA6B,mBAA7B;;AAEA,IAAMC,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;EAAA,OACbF,YAAY,CAAC;IACXG,IAAI,EAAE;MACJC,MAAM,sBAAeF,KAAK,CAACG,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BC,KAA3C,CADF;MAEJ,oBAAoB,EAFhB;MAGJ,sCAAsC;QACpCC,UAAU,sBAAeP,KAAK,CAACG,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BG,KAA3C;MAD0B,CAHlC;MAMJ,4BAA4B;QAC1BC,UAAU,EAAET,KAAK,CAACG,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BK,KADd;QAE1BC,WAAW,sBAAeX,KAAK,CAACG,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BG,KAA3C;MAFe,CANxB;MAUJ,uDAAuD;QACrDI,YAAY,EAAE,KADuC;QAErDH,UAAU,EAAET,KAAK,CAACG,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BG;MAFa,CAVnD;MAcJ,6DAA6D;QAC3DC,UAAU,EAAET,KAAK,CAACG,EAAN,CAASC,OAAT,CAAiBS,MAAjB,CAAwBC;MADuB,CAdzD;MAiBJ,8DAA8D;QAC5DL,UAAU,EAAET,KAAK,CAACG,EAAN,CAASC,OAAT,CAAiBS,MAAjB,CAAwBC;MADwB,CAjB1D;MAoBJ,2CAA2C;QACzCL,UAAU,EAAET,KAAK,CAACG,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BU;MADC,CApBvC;MAuBJ,sDAAsD;QACpDC,SAAS,sBAAehB,KAAK,CAACG,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BG,KAA3C;MAD2C,CAvBlD;MA0BJ,oDAAoD;QAClDD,UAAU,sBAAeP,KAAK,CAACG,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BG,KAA3C;MADwC,CA1BhD;MA6BJ,uCAAuC;QACrCS,OAAO,EAAE;MAD4B,CA7BnC;MAgCJ,4CAA4C;QAC1CA,OAAO,EAAE;MADiC;IAhCxC;EADK,CAAD,CADC;AAAA,CAAf;;AAwCA,eAAelB,MAAf"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { StandardProps } from "@material-ui/core";
|
|
3
|
+
|
|
4
|
+
export interface HvFooterProps
|
|
5
|
+
extends StandardProps<React.HTMLAttributes<HTMLDivElement>, HvFooterClassKey> {
|
|
6
|
+
labelLeftName?: string;
|
|
7
|
+
labelRightName?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export type HvFooterClassKey = "root" | "labelLeft" | "labelRight";
|
|
11
|
+
|
|
12
|
+
export default function HvFooter(props: HvFooterProps): JSX.Element | null;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
|
+
import { withStyles } from "@material-ui/core";
|
|
4
|
+
import { HvTypography, withDeprecated } from "@hitachivantara/uikit-react-core";
|
|
5
|
+
import styles from "./styles";
|
|
6
|
+
/**
|
|
7
|
+
* A footer component for identification, still in development
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var HvFooter = function HvFooter(props) {
|
|
11
|
+
var classes = props.classes,
|
|
12
|
+
_props$labelLeftName = props.labelLeftName,
|
|
13
|
+
labelLeftName = _props$labelLeftName === void 0 ? "Hitachi Vantara" : _props$labelLeftName,
|
|
14
|
+
_props$labelRightName = props.labelRightName,
|
|
15
|
+
labelRightName = _props$labelRightName === void 0 ? "\xA9 Hitachi Vantara Corporation ".concat(new Date().getFullYear(), ". All Rights Reserved.") : _props$labelRightName;
|
|
16
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
17
|
+
className: classes.root
|
|
18
|
+
}, /*#__PURE__*/React.createElement(HvTypography, {
|
|
19
|
+
className: classes.labelLeft
|
|
20
|
+
}, labelLeftName), /*#__PURE__*/React.createElement(HvTypography, {
|
|
21
|
+
className: classes.labelRight
|
|
22
|
+
}, labelRightName));
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
process.env.NODE_ENV !== "production" ? HvFooter.propTypes = {
|
|
26
|
+
/**
|
|
27
|
+
* A Jss Object used to override or extend the styles applied.
|
|
28
|
+
*/
|
|
29
|
+
classes: PropTypes.shape({
|
|
30
|
+
/**
|
|
31
|
+
* Styles applied to the component root class.
|
|
32
|
+
*/
|
|
33
|
+
root: PropTypes.string,
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Styles applied to label on the left.
|
|
37
|
+
*/
|
|
38
|
+
labelLeft: PropTypes.string,
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Styles applied to label on the right.
|
|
42
|
+
*/
|
|
43
|
+
labelRight: PropTypes.string
|
|
44
|
+
}).isRequired,
|
|
45
|
+
labelLeftName: PropTypes.string,
|
|
46
|
+
labelRightName: PropTypes.string
|
|
47
|
+
} : void 0;
|
|
48
|
+
export default withDeprecated(withStyles(styles, {
|
|
49
|
+
name: "HvFooter"
|
|
50
|
+
})(HvFooter), "Please use the HvFooter component in the core package instead.");
|
|
51
|
+
//# sourceMappingURL=Footer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Footer.js","names":["React","PropTypes","withStyles","HvTypography","withDeprecated","styles","HvFooter","props","classes","labelLeftName","labelRightName","Date","getFullYear","root","labelLeft","labelRight","propTypes","shape","string","isRequired","name"],"sources":["../../../src/Footer/Footer.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { withStyles } from \"@material-ui/core\";\nimport { HvTypography, withDeprecated } from \"@hitachivantara/uikit-react-core\";\nimport styles from \"./styles\";\n\n/**\n * A footer component for identification, still in development\n */\nconst HvFooter = (props) => {\n const {\n classes,\n labelLeftName = \"Hitachi Vantara\",\n labelRightName = `© Hitachi Vantara Corporation ${new Date().getFullYear()}. All Rights Reserved.`,\n } = props;\n\n return (\n <div className={classes.root}>\n <HvTypography className={classes.labelLeft}>{labelLeftName}</HvTypography>\n <HvTypography className={classes.labelRight}>{labelRightName}</HvTypography>\n </div>\n );\n};\n\nHvFooter.propTypes = {\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root class.\n */\n root: PropTypes.string,\n /**\n * Styles applied to label on the left.\n */\n labelLeft: PropTypes.string,\n /**\n * Styles applied to label on the right.\n */\n labelRight: PropTypes.string,\n }).isRequired,\n labelLeftName: PropTypes.string,\n labelRightName: PropTypes.string,\n};\n\nexport default withDeprecated(\n withStyles(styles, { name: \"HvFooter\" })(HvFooter),\n \"Please use the HvFooter component in the core package instead.\"\n);\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,SAASC,UAAT,QAA2B,mBAA3B;AACA,SAASC,YAAT,EAAuBC,cAAvB,QAA6C,kCAA7C;AACA,OAAOC,MAAP,MAAmB,UAAnB;AAEA;AACA;AACA;;AACA,IAAMC,QAAQ,GAAG,SAAXA,QAAW,CAACC,KAAD,EAAW;EAC1B,IACEC,OADF,GAIID,KAJJ,CACEC,OADF;EAAA,2BAIID,KAJJ,CAEEE,aAFF;EAAA,IAEEA,aAFF,qCAEkB,iBAFlB;EAAA,4BAIIF,KAJJ,CAGEG,cAHF;EAAA,IAGEA,cAHF,iFAGoD,IAAIC,IAAJ,GAAWC,WAAX,EAHpD;EAMA,oBACE;IAAK,SAAS,EAAEJ,OAAO,CAACK;EAAxB,gBACE,oBAAC,YAAD;IAAc,SAAS,EAAEL,OAAO,CAACM;EAAjC,GAA6CL,aAA7C,CADF,eAEE,oBAAC,YAAD;IAAc,SAAS,EAAED,OAAO,CAACO;EAAjC,GAA8CL,cAA9C,CAFF,CADF;AAMD,CAbD;;AAeA,wCAAAJ,QAAQ,CAACU,SAAT,GAAqB;EACnB;AACF;AACA;EACER,OAAO,EAAEP,SAAS,CAACgB,KAAV,CAAgB;IACvB;AACJ;AACA;IACIJ,IAAI,EAAEZ,SAAS,CAACiB,MAJO;;IAKvB;AACJ;AACA;IACIJ,SAAS,EAAEb,SAAS,CAACiB,MARE;;IASvB;AACJ;AACA;IACIH,UAAU,EAAEd,SAAS,CAACiB;EAZC,CAAhB,EAaNC,UAjBgB;EAkBnBV,aAAa,EAAER,SAAS,CAACiB,MAlBN;EAmBnBR,cAAc,EAAET,SAAS,CAACiB;AAnBP,CAArB;AAsBA,eAAed,cAAc,CAC3BF,UAAU,CAACG,MAAD,EAAS;EAAEe,IAAI,EAAE;AAAR,CAAT,CAAV,CAAyCd,QAAzC,CAD2B,EAE3B,gEAF2B,CAA7B"}
|