@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 @@
|
|
|
1
|
+
{"version":3,"file":"timePickerConverter.js","names":["getHoursForTimeFormat","hours","timeFormat","TimeFormat","H12","TimePickerUnits","HOUR_12","max","isUnitTimeInValidRange","type","HOUR_24","getTimeWithFormat24","time","period","timeIn24Format","PeriodPickerOptions","AM","min","PM"],"sources":["../../src/TimePicker/timePickerConverter.js"],"sourcesContent":["import { TimeFormat, PeriodPickerOptions, TimePickerUnits } from \"./enums\";\nimport { isUnitTimeInValidRange } from \"./timePickerUtils\";\n\n/**\n * Gets hours for the passed time format.\n * e.g. 20hours in 12h format is set to 8\n * @param {Number} hours - current hours\n * @param {String} timeFormat - AM/PM\n *\n * @returns {Number} - hours in the correct format\n */\nconst getHoursForTimeFormat = (hours, timeFormat) => {\n if (timeFormat === TimeFormat.H12) {\n if (hours === 0) {\n return TimePickerUnits.HOUR_12.max;\n }\n if (isUnitTimeInValidRange(hours, TimePickerUnits.HOUR_12.type)) {\n return hours;\n }\n if (isUnitTimeInValidRange(hours, TimePickerUnits.HOUR_24.type)) {\n return hours - TimePickerUnits.HOUR_12.max;\n }\n }\n return hours;\n};\n\n/**\n * Gets the time in 24h format\n * e.g. 08:00:00:PM in 12h format is set to 20:00:00\n * @param {Object} time - object with hours, minutes, seconds and period\n * @param {String} timeFormat - AM/PM\n *\n * @returns {Object} - time object (hours, minutes, seconds and period) with the hours set\n * into the correct format\n */\nconst getTimeWithFormat24 = (time, timeFormat) => {\n const { hours, period } = time;\n const timeIn24Format = { ...time };\n if (timeFormat === TimeFormat.H12) {\n if (period === PeriodPickerOptions.AM && hours === TimePickerUnits.HOUR_12.max) {\n timeIn24Format.hours = TimePickerUnits.HOUR_24.min;\n } else if (period === PeriodPickerOptions.PM && hours < TimePickerUnits.HOUR_12.max) {\n timeIn24Format.hours = hours + TimePickerUnits.HOUR_12.max;\n }\n }\n return timeIn24Format;\n};\n\nexport { getHoursForTimeFormat, getTimeWithF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B,IAAqCjB,KAAK,GAAGI,sBAAA,CAAgBC,OAAhB,CAAwBC,GAAzE,EAA8E;MACnFO,cAAc,CAACb,KAAf,GAAuBA,KAAK,GAAGI,sBAAA,CAAgBC,OAAhB,CAAwBC,GAAvD;IACD;EACF;;EACD,OAAOO,cAAP;AACD,CAXD"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.padTime = exports.getTimeFormatForLocale = exports.getFormattedTime = void 0;
|
|
7
|
+
|
|
8
|
+
require("core-js/modules/es.object.to-string.js");
|
|
9
|
+
|
|
10
|
+
require("core-js/modules/es.regexp.to-string.js");
|
|
11
|
+
|
|
12
|
+
require("core-js/modules/es.array.concat.js");
|
|
13
|
+
|
|
14
|
+
var _enums = require("./enums");
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Pads the unit time values so that they always have two digits
|
|
18
|
+
* @param {Number} value - unit time value
|
|
19
|
+
* @returns The unit time value with two digits
|
|
20
|
+
*/
|
|
21
|
+
var padTime = function padTime(value) {
|
|
22
|
+
if (!value || value < 0) {
|
|
23
|
+
return "00";
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
if (value < 10 && value.toString().length === 1) {
|
|
27
|
+
return "0".concat(value.toString());
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return value;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Gets the time format for a given locale
|
|
34
|
+
* @param {String} locale - locale
|
|
35
|
+
* @returns {TimeFormat} the time format for the given locale (12 or 24)
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
exports.padTime = padTime;
|
|
40
|
+
|
|
41
|
+
var getTimeFormatForLocale = function getTimeFormatForLocale(locale) {
|
|
42
|
+
var options = {
|
|
43
|
+
hour: "numeric"
|
|
44
|
+
};
|
|
45
|
+
var dateTimeFormat = new Intl.DateTimeFormat(locale, options);
|
|
46
|
+
var isInHour12Format = dateTimeFormat.resolvedOptions().hour12;
|
|
47
|
+
return isInHour12Format ? _enums.TimeFormat.H12 : _enums.TimeFormat.H24;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Formats the time to be rendered
|
|
51
|
+
* @param {Object} time - time object to be rendered
|
|
52
|
+
* @param {Number} time.hours - hours
|
|
53
|
+
* @param {Number} time.minutes - minutes
|
|
54
|
+
* @param {Number} time.seconds - seconds
|
|
55
|
+
* @param {String} time.period - period (am/pm). It is undefined when the time is to be shown in 24h format
|
|
56
|
+
*
|
|
57
|
+
* @returns {String} formatted time
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
exports.getTimeFormatForLocale = getTimeFormatForLocale;
|
|
62
|
+
|
|
63
|
+
var getFormattedTime = function getFormattedTime(time) {
|
|
64
|
+
var hours = time.hours,
|
|
65
|
+
minutes = time.minutes,
|
|
66
|
+
seconds = time.seconds;
|
|
67
|
+
var timeToRender = "".concat(padTime(hours), ":").concat(padTime(minutes), ":").concat(padTime(seconds));
|
|
68
|
+
|
|
69
|
+
if (time.period) {
|
|
70
|
+
timeToRender += " ".concat(time.period);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return timeToRender;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
exports.getFormattedTime = getFormattedTime;
|
|
77
|
+
//# sourceMappingURL=timePickerFormatter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timePickerFormatter.js","names":["padTime","value","toString","length","getTimeFormatForLocale","locale","options","hour","dateTimeFormat","Intl","DateTimeFormat","isInHour12Format","resolvedOptions","hour12","TimeFormat","H12","H24","getFormattedTime","time","hours","minutes","seconds","timeToRender","period"],"sources":["../../src/TimePicker/timePickerFormatter.js"],"sourcesContent":["import { TimeFormat } from \"./enums\";\n\n/**\n * Pads the unit time values so that they always have two digits\n * @param {Number} value - unit time value\n * @returns The unit time value with two digits\n */\nconst padTime = (value) => {\n if (!value || value < 0) {\n return \"00\";\n }\n if (value < 10 && value.toString().length === 1) {\n return `0${value.toString()}`;\n }\n return value;\n};\n\n/**\n * Gets the time format for a given locale\n * @param {String} locale - locale\n * @returns {TimeFormat} the time format for the given locale (12 or 24)\n */\nconst getTimeFormatForLocale = (locale) => {\n const options = {\n hour: \"numeric\",\n };\n const dateTimeFormat = new Intl.DateTimeFormat(locale, options);\n const isInHour12Format = dateTimeFormat.resolvedOptions().hour12;\n return isInHour12Format ? TimeFormat.H12 : TimeFormat.H24;\n};\n\n/**\n * Formats the time to be rendered\n * @param {Object} time - time object to be rendered\n * @param {Number} time.hours - hours\n * @param {Number} time.minutes - minutes\n * @param {Number} time.seconds - seconds\n * @param {String} time.period - period (am/pm). It is undefined when the time is to be shown in 24h format\n *\n * @returns {String} formatted time\n */\nconst getFormattedTime = (time) => {\n const { hours, minutes, seconds } = time;\n\n let timeToRender = `${padTime(hours)}:${padTime(minutes)}:${padTime(seconds)}`;\n if (time.period) {\n timeToRender += ` ${time.period}`;\n }\n return timeToRender;\n};\n\nexport { padTime, getFormattedTime, getTimeFormatForLocale };\n"],"mappings":";;;;;;;;;;;;;AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAMA,OAAO,GAAG,SAAVA,OAAU,CAACC,KAAD,EAAW;EACzB,IAAI,CAACA,KAAD,IAAUA,KAAK,GAAG,CAAtB,EAAyB;IACvB,OAAO,IAAP;EACD;;EACD,IAAIA,KAAK,GAAG,EAAR,IAAcA,KAAK,CAACC,QAAN,GAAiBC,MAAjB,KAA4B,CAA9C,EAAiD;IAC/C,kBAAWF,KAAK,CAACC,QAAN,EAAX;EACD;;EACD,OAAOD,KAAP;AACD,CARD;AAUA;AACA;AACA;AACA;AACA;;;;;AACA,IAAMG,sBAAsB,GAAG,SAAzBA,sBAAyB,CAACC,MAAD,EAAY;EACzC,IAAMC,OAAO,GAAG;IACdC,IAAI,EAAE;EADQ,CAAhB;EAGA,IAAMC,cAAc,GAAG,IAAIC,IAAI,CAACC,cAAT,CAAwBL,MAAxB,EAAgCC,OAAhC,CAAvB;EACA,IAAMK,gBAAgB,GAAGH,cAAc,CAACI,eAAf,GAAiCC,MAA1D;EACA,OAAOF,gBAAgB,GAAGG,iBAAA,CAAWC,GAAd,GAAoBD,iBAAA,CAAWE,GAAtD;AACD,CAPD;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;AACA,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAmB,CAACC,IAAD,EAAU;EACjC,IAAQC,KAAR,GAAoCD,IAApC,CAAQC,KAAR;EAAA,IAAeC,OAAf,GAAoCF,IAApC,CAAeE,OAAf;EAAA,IAAwBC,OAAxB,GAAoCH,IAApC,CAAwBG,OAAxB;EAEA,IAAIC,YAAY,aAAMtB,OAAO,CAACmB,KAAD,CAAb,cAAwBnB,OAAO,CAACoB,OAAD,CAA/B,cAA4CpB,OAAO,CAACqB,OAAD,CAAnD,CAAhB;;EACA,IAAIH,IAAI,CAACK,MAAT,EAAiB;IACfD,YAAY,eAAQJ,IAAI,CAACK,MAAb,CAAZ;EACD;;EACD,OAAOD,YAAP;AACD,CARD"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.isUnitTimeInValidRange = exports.getPeriodForDate = void 0;
|
|
7
|
+
|
|
8
|
+
var _enums = require("./enums");
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Gets the period(am/pm) for a given time
|
|
12
|
+
* @param {Date} date - Date to get the period from. The default date is the current one.
|
|
13
|
+
* @returns {String} - AM or PM
|
|
14
|
+
*/
|
|
15
|
+
var getPeriodForDate = function getPeriodForDate() {
|
|
16
|
+
var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Date();
|
|
17
|
+
var hours = date.getHours();
|
|
18
|
+
return hours < 12 ? _enums.PeriodPickerOptions.AM : _enums.PeriodPickerOptions.PM;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Checks if the unit time value is inside the acceptable range
|
|
22
|
+
*
|
|
23
|
+
* @param {Number} value - unit time value
|
|
24
|
+
* @param {String} type - unit time type. One of the TimePickerUnits types.
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
exports.getPeriodForDate = getPeriodForDate;
|
|
29
|
+
|
|
30
|
+
var isUnitTimeInValidRange = function isUnitTimeInValidRange(value, type) {
|
|
31
|
+
var timeUnit = _enums.TimePickerUnits[type];
|
|
32
|
+
return value >= timeUnit.min && value <= timeUnit.max;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
exports.isUnitTimeInValidRange = isUnitTimeInValidRange;
|
|
36
|
+
//# sourceMappingURL=timePickerUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timePickerUtils.js","names":["getPeriodForDate","date","Date","hours","getHours","PeriodPickerOptions","AM","PM","isUnitTimeInValidRange","value","type","timeUnit","TimePickerUnits","min","max"],"sources":["../../src/TimePicker/timePickerUtils.js"],"sourcesContent":["import { PeriodPickerOptions, TimePickerUnits } from \"./enums\";\n\n/**\n * Gets the period(am/pm) for a given time\n * @param {Date} date - Date to get the period from. The default date is the current one.\n * @returns {String} - AM or PM\n */\nconst getPeriodForDate = (date = new Date()) => {\n const hours = date.getHours();\n return hours < 12 ? PeriodPickerOptions.AM : PeriodPickerOptions.PM;\n};\n\n/**\n * Checks if the unit time value is inside the acceptable range\n *\n * @param {Number} value - unit time value\n * @param {String} type - unit time type. One of the TimePickerUnits types.\n */\nconst isUnitTimeInValidRange = (value, type) => {\n const timeUnit = TimePickerUnits[type];\n return value >= timeUnit.min && value <= timeUnit.max;\n};\n\nexport { getPeriodForDate, isUnitTimeInValidRange };\n"],"mappings":";;;;;;;AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAmB,GAAuB;EAAA,IAAtBC,IAAsB,uEAAf,IAAIC,IAAJ,EAAe;EAC9C,IAAMC,KAAK,GAAGF,IAAI,CAACG,QAAL,EAAd;EACA,OAAOD,KAAK,GAAG,EAAR,GAAaE,0BAAA,CAAoBC,EAAjC,GAAsCD,0BAAA,CAAoBE,EAAjE;AACD,CAHD;AAKA;AACA;AACA;AACA;AACA;AACA;;;;;AACA,IAAMC,sBAAsB,GAAG,SAAzBA,sBAAyB,CAACC,KAAD,EAAQC,IAAR,EAAiB;EAC9C,IAAMC,QAAQ,GAAGC,sBAAA,CAAgBF,IAAhB,CAAjB;EACA,OAAOD,KAAK,IAAIE,QAAQ,CAACE,GAAlB,IAAyBJ,KAAK,IAAIE,QAAQ,CAACG,GAAlD;AACD,CAHD"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export { default as HvAppSwitcherPanel } from "./AppSwitcherPanel";
|
|
2
|
+
export * from "./AppSwitcherPanel";
|
|
3
|
+
|
|
4
|
+
export { default as HvCodeEditor } from "./CodeEditor";
|
|
5
|
+
export * from "./CodeEditor";
|
|
6
|
+
|
|
7
|
+
export { default as HvFooter } from "./Footer";
|
|
8
|
+
export * from "./Footer";
|
|
9
|
+
|
|
10
|
+
export { default as HvFormComposer } from "./FormComposer";
|
|
11
|
+
export * from "./FormComposer";
|
|
12
|
+
|
|
13
|
+
export { default as HvLoading } from "./Loading";
|
|
14
|
+
export * from "./Loading";
|
|
15
|
+
|
|
16
|
+
export { default as HvNavigationAnchors } from "./NavigationAnchors";
|
|
17
|
+
export * from "./NavigationAnchors";
|
|
18
|
+
|
|
19
|
+
export { default as HvNotificationPanel } from "./NotificationPanel";
|
|
20
|
+
export * from "./NotificationPanel";
|
|
21
|
+
|
|
22
|
+
export { default as HvSlider } from "./Slider";
|
|
23
|
+
export * from "./Slider";
|
|
24
|
+
|
|
25
|
+
export { default as HvTimePicker } from "./TimePicker";
|
|
26
|
+
export * from "./TimePicker";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
Object.defineProperty(exports, "HvAppSwitcherPanel", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function get() {
|
|
11
|
+
return _AppSwitcherPanel.default;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "HvCodeEditor", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function get() {
|
|
17
|
+
return _CodeEditor.default;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "HvFooter", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function get() {
|
|
23
|
+
return _Footer.default;
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(exports, "HvFormComposer", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function get() {
|
|
29
|
+
return _FormComposer.default;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "HvLoading", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function get() {
|
|
35
|
+
return _Loading.default;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(exports, "HvNavigationAnchors", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function get() {
|
|
41
|
+
return _NavigationAnchors.default;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
Object.defineProperty(exports, "HvNotificationPanel", {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function get() {
|
|
47
|
+
return _NotificationPanel.default;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
Object.defineProperty(exports, "HvSlider", {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function get() {
|
|
53
|
+
return _Slider.default;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
Object.defineProperty(exports, "HvTimePicker", {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
get: function get() {
|
|
59
|
+
return _TimePicker.default;
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
var _AppSwitcherPanel = _interopRequireDefault(require("./AppSwitcherPanel"));
|
|
64
|
+
|
|
65
|
+
var _CodeEditor = _interopRequireDefault(require("./CodeEditor"));
|
|
66
|
+
|
|
67
|
+
var _Footer = _interopRequireDefault(require("./Footer"));
|
|
68
|
+
|
|
69
|
+
var _FormComposer = _interopRequireDefault(require("./FormComposer"));
|
|
70
|
+
|
|
71
|
+
var _Loading = _interopRequireDefault(require("./Loading"));
|
|
72
|
+
|
|
73
|
+
var _NavigationAnchors = _interopRequireDefault(require("./NavigationAnchors"));
|
|
74
|
+
|
|
75
|
+
var _NotificationPanel = _interopRequireDefault(require("./NotificationPanel"));
|
|
76
|
+
|
|
77
|
+
var _Slider = _interopRequireDefault(require("./Slider"));
|
|
78
|
+
|
|
79
|
+
var _TimePicker = _interopRequireDefault(require("./TimePicker"));
|
|
80
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.js"],"sourcesContent":["// components\nexport { default as HvAppSwitcherPanel } from \"./AppSwitcherPanel\";\nexport { default as HvCodeEditor } from \"./CodeEditor\";\nexport { default as HvFooter } from \"./Footer\";\nexport { default as HvFormComposer } from \"./FormComposer\";\nexport { default as HvLoading } from \"./Loading\";\nexport { default as HvNavigationAnchors } from \"./NavigationAnchors\";\nexport { default as HvNotificationPanel } from \"./NotificationPanel\";\nexport { default as HvSlider } from \"./Slider\";\nexport { default as HvTimePicker } from \"./TimePicker\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { StandardProps } from "@material-ui/core";
|
|
3
|
+
|
|
4
|
+
export interface HvAppSwitcherPanelActionApplication {
|
|
5
|
+
/**
|
|
6
|
+
* Id of the application.
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
/**
|
|
10
|
+
* Name of the application, this is the value that will be displayed on the component.
|
|
11
|
+
*/
|
|
12
|
+
name: string;
|
|
13
|
+
/**
|
|
14
|
+
* URL with the icon location to be used to represent the application.
|
|
15
|
+
* iconUrl will only be used if no iconElement is provided.
|
|
16
|
+
*/
|
|
17
|
+
iconUrl?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Element to be added as the icon representing the application.
|
|
20
|
+
* The iconElement will be the primary option to be displayed.
|
|
21
|
+
*/
|
|
22
|
+
iconElement?: React.ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* Small description of the application.
|
|
25
|
+
*/
|
|
26
|
+
description?: string;
|
|
27
|
+
/**
|
|
28
|
+
* URL where the application is accesible.
|
|
29
|
+
*/
|
|
30
|
+
url: string;
|
|
31
|
+
/**
|
|
32
|
+
* Defines if the application should be opened in the same tab or in a new one.
|
|
33
|
+
*/
|
|
34
|
+
target?: "_top" | "_blank";
|
|
35
|
+
/**
|
|
36
|
+
* True when the application is selected, false otherwise.
|
|
37
|
+
*/
|
|
38
|
+
isSelected?: boolean;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type HvAppSwitcherPanelActionClassKey =
|
|
42
|
+
| "iconUrl"
|
|
43
|
+
| "dummyImage"
|
|
44
|
+
| "link"
|
|
45
|
+
| "typography"
|
|
46
|
+
| "selected"
|
|
47
|
+
| "iconInfo";
|
|
48
|
+
|
|
49
|
+
export interface HvAppSwitcherPanelActionProps
|
|
50
|
+
extends StandardProps<React.HTMLAttributes<HTMLElement>, HvAppSwitcherPanelActionClassKey> {
|
|
51
|
+
/**
|
|
52
|
+
* The application data to be used to render the Action object.
|
|
53
|
+
*/
|
|
54
|
+
application: HvAppSwitcherPanelActionApplication;
|
|
55
|
+
/**
|
|
56
|
+
* Callback triggered when the action is clicked.
|
|
57
|
+
*/
|
|
58
|
+
onClickCallback?: (event: MouseEvent, application?: HvAppSwitcherPanelActionApplication) => void;
|
|
59
|
+
/**
|
|
60
|
+
* Must return a boolean stating if the action element is selected or not.
|
|
61
|
+
*/
|
|
62
|
+
isSelectedCallback?: (application?: HvAppSwitcherPanelActionApplication) => boolean;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export default function HvAppSwitcherPanelAction(
|
|
66
|
+
props: HvAppSwitcherPanelActionProps
|
|
67
|
+
): JSX.Element | null;
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import "core-js/modules/es.object.to-string.js";
|
|
2
|
+
import "core-js/modules/es.reflect.construct.js";
|
|
3
|
+
import "core-js/modules/es.object.keys.js";
|
|
4
|
+
import "core-js/modules/es.array.filter.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 _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
10
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
11
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
12
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
13
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
14
|
+
import "core-js/modules/es.array.concat.js";
|
|
15
|
+
import "core-js/modules/es.function.name.js";
|
|
16
|
+
import "core-js/modules/es.symbol.js";
|
|
17
|
+
import "core-js/modules/es.symbol.description.js";
|
|
18
|
+
import "core-js/modules/es.string.link.js";
|
|
19
|
+
|
|
20
|
+
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; }
|
|
21
|
+
|
|
22
|
+
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; }
|
|
23
|
+
|
|
24
|
+
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); }; }
|
|
25
|
+
|
|
26
|
+
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; } }
|
|
27
|
+
|
|
28
|
+
import React, { Component } from "react";
|
|
29
|
+
import PropTypes from "prop-types";
|
|
30
|
+
import { HvTypography } from "@hitachivantara/uikit-react-core";
|
|
31
|
+
import { Info } from "@hitachivantara/uikit-react-icons";
|
|
32
|
+
|
|
33
|
+
var Action = /*#__PURE__*/function (_Component) {
|
|
34
|
+
_inherits(Action, _Component);
|
|
35
|
+
|
|
36
|
+
var _super = _createSuper(Action);
|
|
37
|
+
|
|
38
|
+
function Action(props) {
|
|
39
|
+
var _this;
|
|
40
|
+
|
|
41
|
+
_classCallCheck(this, Action);
|
|
42
|
+
|
|
43
|
+
_this = _super.call(this, props);
|
|
44
|
+
_this.state = {
|
|
45
|
+
validIconUrl: true
|
|
46
|
+
};
|
|
47
|
+
return _this;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
_createClass(Action, [{
|
|
51
|
+
key: "render",
|
|
52
|
+
value: function render() {
|
|
53
|
+
var _this2 = this;
|
|
54
|
+
|
|
55
|
+
var _this$props = this.props,
|
|
56
|
+
classes = _this$props.classes,
|
|
57
|
+
application = _this$props.application,
|
|
58
|
+
isSelectedCallback = _this$props.isSelectedCallback;
|
|
59
|
+
|
|
60
|
+
var renderApplicationIcon = function renderApplicationIcon() {
|
|
61
|
+
if (application.iconElement) {
|
|
62
|
+
return application.iconElement;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
var validIconUrl = _this2.state.validIconUrl;
|
|
66
|
+
|
|
67
|
+
if (application.iconUrl && validIconUrl) {
|
|
68
|
+
return (
|
|
69
|
+
/*#__PURE__*/
|
|
70
|
+
// eslint-disable-next-line jsx-a11y/alt-text
|
|
71
|
+
React.createElement("img", {
|
|
72
|
+
className: classes.iconUrl,
|
|
73
|
+
src: application.iconUrl,
|
|
74
|
+
onError: function onError(element) {
|
|
75
|
+
// eslint-disable-next-line no-param-reassign
|
|
76
|
+
element.target.style.display = "none";
|
|
77
|
+
|
|
78
|
+
_this2.setState({
|
|
79
|
+
validIconUrl: false
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
})
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
87
|
+
className: classes.dummyImage
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
var isSelected = isSelectedCallback(application);
|
|
92
|
+
/**
|
|
93
|
+
* Handles the onClick event and triggers the appropriate callback if it exists.
|
|
94
|
+
*/
|
|
95
|
+
|
|
96
|
+
var handleOnClick = function handleOnClick(event) {
|
|
97
|
+
var onClickCallback = _this2.props.onClickCallback;
|
|
98
|
+
|
|
99
|
+
if (onClickCallback) {
|
|
100
|
+
onClickCallback(event, _objectSpread(_objectSpread({}, application), {}, {
|
|
101
|
+
isSelected: isSelected
|
|
102
|
+
}));
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
var renderElement = function renderElement() {
|
|
107
|
+
return /*#__PURE__*/React.createElement(HvTypography, {
|
|
108
|
+
component: "div",
|
|
109
|
+
variant: isSelected ? "selectedText" : "normalText",
|
|
110
|
+
role: "button",
|
|
111
|
+
className: "".concat(classes.typography, " ").concat(isSelected ? classes.selected : ""),
|
|
112
|
+
tabIndex: 0,
|
|
113
|
+
onClick: handleOnClick
|
|
114
|
+
}, renderApplicationIcon(), /*#__PURE__*/React.createElement("span", {
|
|
115
|
+
title: application.name
|
|
116
|
+
}, application.name), application.description && /*#__PURE__*/React.createElement(Info, {
|
|
117
|
+
className: classes.iconInfo,
|
|
118
|
+
title: application.description
|
|
119
|
+
}));
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
var renderElementWithLink = function renderElementWithLink() {
|
|
123
|
+
return /*#__PURE__*/React.createElement("a", {
|
|
124
|
+
href: application.url,
|
|
125
|
+
target: application.target || "_top",
|
|
126
|
+
className: classes.link
|
|
127
|
+
}, renderElement());
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
return isSelected ? renderElement() : renderElementWithLink();
|
|
131
|
+
}
|
|
132
|
+
}]);
|
|
133
|
+
|
|
134
|
+
return Action;
|
|
135
|
+
}(Component);
|
|
136
|
+
|
|
137
|
+
export { Action as default };
|
|
138
|
+
process.env.NODE_ENV !== "production" ? Action.propTypes = {
|
|
139
|
+
/**
|
|
140
|
+
* The application data to be used to render the Action object.
|
|
141
|
+
*/
|
|
142
|
+
application: PropTypes.shape({
|
|
143
|
+
/**
|
|
144
|
+
* Id of the application.
|
|
145
|
+
*/
|
|
146
|
+
id: PropTypes.string.isRequired,
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Name of the application, this is the value that will be displayed on the component.
|
|
150
|
+
*/
|
|
151
|
+
name: PropTypes.string.isRequired,
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* URL with the icon location to be used to represent the application.
|
|
155
|
+
* iconUrl will only be used if no iconElement is provided.
|
|
156
|
+
*/
|
|
157
|
+
iconUrl: PropTypes.string,
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Element to be added as the icon representing the application.
|
|
161
|
+
* The iconElement will be the primary option to be displayed.
|
|
162
|
+
*/
|
|
163
|
+
iconElement: PropTypes.element,
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Small description of the application.
|
|
167
|
+
*/
|
|
168
|
+
description: PropTypes.string,
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* URL where the application is accesible.
|
|
172
|
+
*/
|
|
173
|
+
url: PropTypes.string.isRequired,
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Defines if the application should be opened in the same tab or in a new one.
|
|
177
|
+
*/
|
|
178
|
+
target: PropTypes.oneOf(["_top", "_blank"]),
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* True when the application is selected, false otherwise.
|
|
182
|
+
*/
|
|
183
|
+
isSelected: PropTypes.bool
|
|
184
|
+
}).isRequired,
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* A Jss object used to override or extend the component styles.
|
|
188
|
+
*/
|
|
189
|
+
classes: PropTypes.shape({
|
|
190
|
+
iconUrl: PropTypes.string,
|
|
191
|
+
dummyImage: PropTypes.string,
|
|
192
|
+
link: PropTypes.string,
|
|
193
|
+
typography: PropTypes.string,
|
|
194
|
+
selected: PropTypes.string,
|
|
195
|
+
iconInfo: PropTypes.string
|
|
196
|
+
}).isRequired,
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Callback triggered when the action is clicked.
|
|
200
|
+
*/
|
|
201
|
+
onClickCallback: PropTypes.func,
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Must return a boolean stating if the action element is selected or not.
|
|
205
|
+
*/
|
|
206
|
+
isSelectedCallback: PropTypes.func
|
|
207
|
+
} : void 0;
|
|
208
|
+
Action.defaultProps = {
|
|
209
|
+
onClickCallback: function onClickCallback() {},
|
|
210
|
+
isSelectedCallback: function isSelectedCallback() {
|
|
211
|
+
return false;
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
//# sourceMappingURL=Action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Action.js","names":["React","Component","PropTypes","HvTypography","Info","Action","props","state","validIconUrl","classes","application","isSelectedCallback","renderApplicationIcon","iconElement","iconUrl","element","target","style","display","setState","dummyImage","isSelected","handleOnClick","event","onClickCallback","renderElement","typography","selected","name","description","iconInfo","renderElementWithLink","url","link","propTypes","shape","id","string","isRequired","oneOf","bool","func","defaultProps"],"sources":["../../../../src/AppSwitcherPanel/Action/Action.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { HvTypography } from \"@hitachivantara/uikit-react-core\";\nimport { Info } from \"@hitachivantara/uikit-react-icons\";\n\nexport default class Action extends Component {\n constructor(props) {\n super(props);\n this.state = { validIconUrl: true };\n }\n\n render() {\n const { classes, application, isSelectedCallback } = this.props;\n\n const renderApplicationIcon = () => {\n if (application.iconElement) {\n return application.iconElement;\n }\n\n const { validIconUrl } = this.state;\n\n if (application.iconUrl && validIconUrl) {\n return (\n // eslint-disable-next-line jsx-a11y/alt-text\n <img\n className={classes.iconUrl}\n src={application.iconUrl}\n onError={(element) => {\n // eslint-disable-next-line no-param-reassign\n element.target.style.display = \"none\";\n this.setState({ validIconUrl: false });\n }}\n />\n );\n }\n return <div className={classes.dummyImage} />;\n };\n\n const isSelected = isSelectedCallback(application);\n\n /**\n * Handles the onClick event and triggers the appropriate callback if it exists.\n */\n const handleOnClick = (event) => {\n const { onClickCallback } = this.props;\n\n if (onClickCallback) {\n onClickCallback(event, { ...application, isSelected });\n }\n };\n\n const renderElement = () => {\n return (\n <HvTypography\n component=\"div\"\n variant={isSelected ? \"selectedText\" : \"normalText\"}\n role=\"button\"\n className={`${classes.typography} ${isSelected ? classes.selected : \"\"}`}\n tabIndex={0}\n onClick={handleOnClick}\n >\n {renderApplicationIcon()}\n\n <span title={application.name}>{application.name}</span>\n\n {application.description && (\n <Info className={classes.iconInfo} title={application.description} />\n )}\n </HvTypography>\n );\n };\n\n const renderElementWithLink = () => {\n return (\n <a href={application.url} target={application.target || \"_top\"} className={classes.link}>\n {renderElement()}\n </a>\n );\n };\n\n return isSelected ? renderElement() : renderElementWithLink();\n }\n}\n\nAction.propTypes = {\n /**\n * The application data to be used to render the Action object.\n */\n application: 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 }).isRequired,\n /**\n * A Jss object used to override or extend the component styles.\n */\n classes: PropTypes.shape({\n iconUrl: PropTypes.string,\n dummyImage: PropTypes.string,\n link: PropTypes.string,\n typography: PropTypes.string,\n selected: PropTypes.string,\n iconInfo: PropTypes.string,\n }).isRequired,\n /**\n * Callback triggered when the action is clicked.\n */\n onClickCallback: PropTypes.func,\n /**\n * Must return a boolean stating if the action element is selected or not.\n */\n isSelectedCallback: PropTypes.func,\n};\n\nAction.defaultProps = {\n onClickCallback: () => {},\n isSelectedCallback: () => false,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,SAASC,YAAT,QAA6B,kCAA7B;AACA,SAASC,IAAT,QAAqB,mCAArB;;IAEqBC,M;;;;;EACnB,gBAAYC,KAAZ,EAAmB;IAAA;;IAAA;;IACjB,0BAAMA,KAAN;IACA,MAAKC,KAAL,GAAa;MAAEC,YAAY,EAAE;IAAhB,CAAb;IAFiB;EAGlB;;;;WAED,kBAAS;MAAA;;MACP,kBAAqD,KAAKF,KAA1D;MAAA,IAAQG,OAAR,eAAQA,OAAR;MAAA,IAAiBC,WAAjB,eAAiBA,WAAjB;MAAA,IAA8BC,kBAA9B,eAA8BA,kBAA9B;;MAEA,IAAMC,qBAAqB,GAAG,SAAxBA,qBAAwB,GAAM;QAClC,IAAIF,WAAW,CAACG,WAAhB,EAA6B;UAC3B,OAAOH,WAAW,CAACG,WAAnB;QACD;;QAED,IAAQL,YAAR,GAAyB,MAAI,CAACD,KAA9B,CAAQC,YAAR;;QAEA,IAAIE,WAAW,CAACI,OAAZ,IAAuBN,YAA3B,EAAyC;UACvC;YAAA;YACE;YACA;cACE,SAAS,EAAEC,OAAO,CAACK,OADrB;cAEE,GAAG,EAAEJ,WAAW,CAACI,OAFnB;cAGE,OAAO,EAAE,iBAACC,OAAD,EAAa;gBACpB;gBACAA,OAAO,CAACC,MAAR,CAAeC,KAAf,CAAqBC,OAArB,GAA+B,MAA/B;;gBACA,MAAI,CAACC,QAAL,CAAc;kBAAEX,YAAY,EAAE;gBAAhB,CAAd;cACD;YAPH;UAFF;QAYD;;QACD,oBAAO;UAA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M,CAACqC,YAAP,GAAsB;EACpBlB,eAAe,EAAE,2BAAM,CAAE,CADL;EAEpBb,kBAAkB,EAAE;IAAA,OAAM,KAAN;EAAA;AAFA,CAAtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["withStyles","styles","Action","withTheme"],"sources":["../../../../src/AppSwitcherPanel/Action/index.js"],"sourcesContent":["import withStyles from \"@material-ui/core/styles/withStyles\";\nimport styles from \"./styles\";\nimport Action from \"./Action\";\n\nexport default withStyles(styles, { withTheme: true })(Action);\n"],"mappings":"AAAA,OAAOA,UAAP,MAAuB,qCAAvB;AACA,OAAOC,MAAP,MAAmB,UAAnB;AACA,OAAOC,MAAP,MAAmB,UAAnB;AAEA,eAAeF,UAAU,CAACC,MAAD,EAAS;EAAEE,SAAS,EAAE;AAAb,CAAT,CAAV,CAAwCD,MAAxC,CAAf"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
var selected = function selected(theme) {
|
|
2
|
+
return {
|
|
3
|
+
background: theme.hv.palette.accent.acce1,
|
|
4
|
+
color: theme.hv.palette.atmosphere.atmo1,
|
|
5
|
+
cursor: "default",
|
|
6
|
+
"& *": {
|
|
7
|
+
background: theme.hv.palette.accent.acce1,
|
|
8
|
+
color: theme.hv.palette.atmosphere.atmo1,
|
|
9
|
+
cursor: "default"
|
|
10
|
+
},
|
|
11
|
+
"& svg *.color0": {
|
|
12
|
+
fill: theme.hv.palette.atmosphere.atmo1
|
|
13
|
+
},
|
|
14
|
+
// hover
|
|
15
|
+
"&:hover": {
|
|
16
|
+
background: theme.hv.palette.accent.acce1,
|
|
17
|
+
color: theme.hv.palette.atmosphere.atmo1,
|
|
18
|
+
"& *": {
|
|
19
|
+
background: theme.hv.palette.accent.acce1,
|
|
20
|
+
color: theme.hv.palette.atmosphere.atmo1
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var hover = function hover(theme) {
|
|
27
|
+
return {
|
|
28
|
+
background: theme.hv.palette.atmosphere.atmo4,
|
|
29
|
+
"& *": {
|
|
30
|
+
background: theme.hv.palette.atmosphere.atmo4
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
var styles = function styles(theme) {
|
|
36
|
+
return {
|
|
37
|
+
typography: {
|
|
38
|
+
display: "flex",
|
|
39
|
+
background: theme.hv.palette.atmosphere.atmo1,
|
|
40
|
+
width: "100%",
|
|
41
|
+
justifyContent: "flex-start",
|
|
42
|
+
alignItems: "center",
|
|
43
|
+
height: "32px",
|
|
44
|
+
color: theme.hv.palette.atmosphere.acce1,
|
|
45
|
+
marginBottom: "8px",
|
|
46
|
+
// hover
|
|
47
|
+
"&:hover": hover(theme),
|
|
48
|
+
// cursor
|
|
49
|
+
cursor: "pointer",
|
|
50
|
+
"& *": {
|
|
51
|
+
cursor: "pointer"
|
|
52
|
+
},
|
|
53
|
+
"& span": {
|
|
54
|
+
overflow: "hidden",
|
|
55
|
+
whiteSpace: "nowrap",
|
|
56
|
+
textOverflow: "ellipsis",
|
|
57
|
+
width: "calc(100% - 64px)" // The with of both icons, 32px each.
|
|
58
|
+
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
selected: selected(theme),
|
|
62
|
+
dummyImage: {
|
|
63
|
+
width: "8px"
|
|
64
|
+
},
|
|
65
|
+
link: {
|
|
66
|
+
color: "inherit",
|
|
67
|
+
textDecoration: "inherit"
|
|
68
|
+
},
|
|
69
|
+
iconInfo: {
|
|
70
|
+
width: "32px",
|
|
71
|
+
height: "32px",
|
|
72
|
+
marginLeft: "auto"
|
|
73
|
+
},
|
|
74
|
+
iconUrl: {
|
|
75
|
+
width: "16px",
|
|
76
|
+
height: "16px",
|
|
77
|
+
margin: "8px"
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
export default styles;
|
|
83
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","names":["selected","theme","background","hv","palette","accent","acce1","color","atmosphere","atmo1","cursor","fill","hover","atmo4","styles","typography","display","width","justifyContent","alignItems","height","marginBottom","overflow","whiteSpace","textOverflow","dummyImage","link","textDecoration","iconInfo","marginLeft","iconUrl","margin"],"sources":["../../../../src/AppSwitcherPanel/Action/styles.js"],"sourcesContent":["const selected = (theme) => ({\n background: theme.hv.palette.accent.acce1,\n color: theme.hv.palette.atmosphere.atmo1,\n cursor: \"default\",\n \"& *\": {\n background: theme.hv.palette.accent.acce1,\n color: theme.hv.palette.atmosphere.atmo1,\n cursor: \"default\",\n },\n \"& svg *.color0\": {\n fill: theme.hv.palette.atmosphere.atmo1,\n },\n // hover\n \"&:hover\": {\n background: theme.hv.palette.accent.acce1,\n color: theme.hv.palette.atmosphere.atmo1,\n \"& *\": {\n background: theme.hv.palette.accent.acce1,\n color: theme.hv.palette.atmosphere.atmo1,\n },\n },\n});\n\nconst hover = (theme) => ({\n background: theme.hv.palette.atmosphere.atmo4,\n \"& *\": {\n background: theme.hv.palette.atmosphere.atmo4,\n },\n});\n\nconst styles = (theme) => ({\n typography: {\n display: \"flex\",\n background: theme.hv.palette.atmosphere.atmo1,\n width: \"100%\",\n justifyContent: \"flex-start\",\n alignItems: \"center\",\n height: \"32px\",\n color: theme.hv.palette.atmosphere.acce1,\n marginBottom: \"8px\",\n\n // hover\n \"&:hover\": hover(theme),\n\n // cursor\n cursor: \"pointer\",\n \"& *\": {\n cursor: \"pointer\",\n },\n\n \"& span\": {\n overflow: \"hidden\",\n whiteSpace: \"nowrap\",\n textOverflow: \"ellipsis\",\n width: \"calc(100% - 64px)\", // The with of both icons, 32px each.\n },\n },\n selected: selected(theme),\n\n dummyImage: {\n width: \"8px\",\n },\n\n link: {\n color: \"inherit\",\n textDecoration: \"inherit\",\n },\n\n iconInfo: {\n width: \"32px\",\n height: \"32px\",\n marginLeft: \"auto\",\n },\n\n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