@longline/aqua-ui 1.0.0 → 1.0.8
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/main.js +1 -1
- package/package.json +5 -7
- package/Types.d.ts +0 -6
- package/Types.js +0 -5
- package/containers/Anchor/Anchor.d.ts +0 -63
- package/containers/Anchor/Anchor.js +0 -113
- package/containers/Anchor/index.d.ts +0 -1
- package/containers/Anchor/index.js +0 -1
- package/containers/Dock/Dock.d.ts +0 -45
- package/containers/Dock/Dock.js +0 -61
- package/containers/Dock/Dockable.d.ts +0 -60
- package/containers/Dock/Dockable.js +0 -98
- package/containers/Dock/index.d.ts +0 -2
- package/containers/Dock/index.js +0 -2
- package/containers/Form/Field.d.ts +0 -104
- package/containers/Form/Field.js +0 -168
- package/containers/Form/Form.d.ts +0 -51
- package/containers/Form/Form.js +0 -89
- package/containers/Form/Validation.d.ts +0 -212
- package/containers/Form/Validation.js +0 -232
- package/containers/Form/context/FormContext.d.ts +0 -10
- package/containers/Form/context/FormContext.js +0 -3
- package/containers/Form/context/useForm.d.ts +0 -5
- package/containers/Form/context/useForm.js +0 -9
- package/containers/Form/elements/BoxWrapper.d.ts +0 -15
- package/containers/Form/elements/BoxWrapper.js +0 -35
- package/containers/Form/elements/Hint.d.ts +0 -21
- package/containers/Form/elements/Hint.js +0 -15
- package/containers/Form/elements/Label.d.ts +0 -22
- package/containers/Form/elements/Label.js +0 -15
- package/containers/Form/elements/SimpleWrapper.d.ts +0 -15
- package/containers/Form/elements/SimpleWrapper.js +0 -17
- package/containers/GlassPane/GlassPane.d.ts +0 -36
- package/containers/GlassPane/GlassPane.js +0 -66
- package/containers/GlassPane/index.d.ts +0 -1
- package/containers/GlassPane/index.js +0 -1
- package/containers/InfoBox/InfoBox.d.ts +0 -34
- package/containers/InfoBox/InfoBox.js +0 -45
- package/containers/InfoBox/elements/Content.d.ts +0 -23
- package/containers/InfoBox/elements/Content.js +0 -37
- package/containers/InfoBox/elements/Footer.d.ts +0 -9
- package/containers/InfoBox/elements/Footer.js +0 -24
- package/containers/InfoBox/elements/Header.d.ts +0 -9
- package/containers/InfoBox/elements/Header.js +0 -24
- package/containers/List/List.d.ts +0 -45
- package/containers/List/List.js +0 -47
- package/containers/List/ListCell.d.ts +0 -13
- package/containers/List/ListCell.js +0 -24
- package/containers/List/ListRow.d.ts +0 -15
- package/containers/List/ListRow.js +0 -24
- package/containers/List/index.d.ts +0 -3
- package/containers/List/index.js +0 -3
- package/containers/Tabs/Pane.d.ts +0 -29
- package/containers/Tabs/Pane.js +0 -45
- package/containers/Tabs/Tabs.d.ts +0 -66
- package/containers/Tabs/Tabs.js +0 -144
- package/controls/Chip/Chip.d.ts +0 -35
- package/controls/Chip/Chip.js +0 -83
- package/controls/Fab/Fab.d.ts +0 -73
- package/controls/Fab/Fab.js +0 -94
- package/controls/Icon/Icon.d.ts +0 -98
- package/controls/Icon/Icon.js +0 -79
- package/controls/Icon/index.d.ts +0 -1
- package/controls/Icon/index.js +0 -1
- package/controls/Key/Key.d.ts +0 -22
- package/controls/Key/Key.js +0 -74
- package/controls/Key/index.d.ts +0 -1
- package/controls/Key/index.js +0 -1
- package/controls/LinearChart/LinearChart.d.ts +0 -31
- package/controls/LinearChart/LinearChart.js +0 -58
- package/controls/ListView/Body.d.ts +0 -8
- package/controls/ListView/Body.js +0 -24
- package/controls/ListView/Column.d.ts +0 -55
- package/controls/ListView/Column.js +0 -8
- package/controls/ListView/ColumnsManager/ColumnDraggable.d.ts +0 -11
- package/controls/ListView/ColumnsManager/ColumnDraggable.js +0 -83
- package/controls/ListView/ColumnsManager/ColumnsManager.d.ts +0 -12
- package/controls/ListView/ColumnsManager/ColumnsManager.js +0 -63
- package/controls/ListView/ColumnsManager/OrderColumns.d.ts +0 -11
- package/controls/ListView/ColumnsManager/OrderColumns.js +0 -62
- package/controls/ListView/ColumnsManager/SourceColumns.d.ts +0 -10
- package/controls/ListView/ColumnsManager/SourceColumns.js +0 -45
- package/controls/ListView/Ghost.d.ts +0 -9
- package/controls/ListView/Ghost.js +0 -52
- package/controls/ListView/Header.d.ts +0 -12
- package/controls/ListView/Header.js +0 -35
- package/controls/ListView/HeaderButton.d.ts +0 -8
- package/controls/ListView/HeaderButton.js +0 -8
- package/controls/ListView/HeaderCell.d.ts +0 -20
- package/controls/ListView/HeaderCell.js +0 -47
- package/controls/ListView/IListViewProps.d.ts +0 -105
- package/controls/ListView/IListViewProps.js +0 -1
- package/controls/ListView/ListView.d.ts +0 -20
- package/controls/ListView/ListView.js +0 -97
- package/controls/ListView/NoData.d.ts +0 -19
- package/controls/ListView/NoData.js +0 -30
- package/controls/ListView/SortButton.d.ts +0 -16
- package/controls/ListView/SortButton.js +0 -26
- package/controls/ListView/Table.d.ts +0 -18
- package/controls/ListView/Table.js +0 -99
- package/controls/ListView/Total.d.ts +0 -9
- package/controls/ListView/Total.js +0 -28
- package/controls/ListView/sortItems.d.ts +0 -6
- package/controls/ListView/sortItems.js +0 -35
- package/controls/Mouse/Mouse.d.ts +0 -38
- package/controls/Mouse/Mouse.js +0 -51
- package/controls/Mouse/index.d.ts +0 -1
- package/controls/Mouse/index.js +0 -1
- package/controls/PrimaryButton/PrimaryButton.d.ts +0 -63
- package/controls/PrimaryButton/PrimaryButton.js +0 -83
- package/controls/PrimaryButton/index.d.ts +0 -1
- package/controls/PrimaryButton/index.js +0 -1
- package/controls/Progress/Progress.d.ts +0 -35
- package/controls/Progress/Progress.js +0 -49
- package/controls/SecondaryButton/SecondaryButton.d.ts +0 -58
- package/controls/SecondaryButton/SecondaryButton.js +0 -73
- package/controls/SecondaryButton/index.d.ts +0 -1
- package/controls/SecondaryButton/index.js +0 -1
- package/controls/TabBar/Tab.d.ts +0 -21
- package/controls/TabBar/Tab.js +0 -25
- package/controls/TabBar/TabBar.d.ts +0 -34
- package/controls/TabBar/TabBar.js +0 -134
- package/controls/TabBar/Underliner.d.ts +0 -7
- package/controls/TabBar/Underliner.js +0 -27
- package/controls/TabBar/index.d.ts +0 -1
- package/controls/TabBar/index.js +0 -1
- package/controls/TertiaryButton/TertiaryButton.d.ts +0 -28
- package/controls/TertiaryButton/TertiaryButton.js +0 -65
- package/controls/TertiaryButton/index.d.ts +0 -1
- package/controls/TertiaryButton/index.js +0 -1
- package/controls/View/View.d.ts +0 -35
- package/controls/View/View.js +0 -58
- package/formatters/Date/DateTime.d.ts +0 -45
- package/formatters/Date/DateTime.js +0 -64
- package/formatters/Date/elements/Custom.d.ts +0 -18
- package/formatters/Date/elements/Custom.js +0 -22
- package/formatters/Date/elements/Distance.d.ts +0 -24
- package/formatters/Date/elements/Distance.js +0 -45
- package/formatters/Date/elements/LongDate.d.ts +0 -17
- package/formatters/Date/elements/LongDate.js +0 -11
- package/formatters/Date/elements/LongDateTime.d.ts +0 -14
- package/formatters/Date/elements/LongDateTime.js +0 -10
- package/formatters/Date/elements/LongTime.d.ts +0 -14
- package/formatters/Date/elements/LongTime.js +0 -10
- package/formatters/Date/elements/ShortDate.d.ts +0 -14
- package/formatters/Date/elements/ShortDate.js +0 -10
- package/formatters/Date/elements/ShortDateTime.d.ts +0 -14
- package/formatters/Date/elements/ShortDateTime.js +0 -10
- package/formatters/Date/elements/ShortTime.d.ts +0 -18
- package/formatters/Date/elements/ShortTime.js +0 -10
- package/formatters/Date/elements/toDate.d.ts +0 -2
- package/formatters/Date/elements/toDate.js +0 -13
- package/formatters/Filesize/Filesize.d.ts +0 -29
- package/formatters/Filesize/Filesize.js +0 -54
- package/formatters/GIS/Latitude.d.ts +0 -23
- package/formatters/GIS/Latitude.js +0 -13
- package/formatters/GIS/Longitude.d.ts +0 -23
- package/formatters/GIS/Longitude.js +0 -13
- package/formatters/GIS/index.d.ts +0 -2
- package/formatters/GIS/index.js +0 -2
- package/formatters/GIS/toDMS.d.ts +0 -2
- package/formatters/GIS/toDMS.js +0 -16
- package/formatters/Highlight/Highlight.d.ts +0 -22
- package/formatters/Highlight/Highlight.js +0 -32
- package/formatters/Highlight/index.d.ts +0 -1
- package/formatters/Highlight/index.js +0 -1
- package/formatters/Human/Human.d.ts +0 -18
- package/formatters/Human/Human.js +0 -34
- package/formatters/Human/index.d.ts +0 -1
- package/formatters/Human/index.js +0 -1
- package/formatters/Number/Number.d.ts +0 -24
- package/formatters/Number/Number.js +0 -36
- package/formatters/Number/index.d.ts +0 -1
- package/formatters/Number/index.js +0 -1
- package/helper/DMS.d.ts +0 -22
- package/helper/DMS.js +0 -46
- package/helper/HslColor.d.ts +0 -11
- package/helper/HslColor.js +0 -47
- package/helper/RgbColor.d.ts +0 -43
- package/helper/RgbColor.js +0 -162
- package/helper/SizeHelper.d.ts +0 -10
- package/helper/SizeHelper.js +0 -56
- package/helper/darken.d.ts +0 -8
- package/helper/darken.js +0 -18
- package/helper/guard.d.ts +0 -5
- package/helper/guard.js +0 -7
- package/helper/lighten.d.ts +0 -8
- package/helper/lighten.js +0 -11
- package/helper/nameToHex.d.ts +0 -6
- package/helper/nameToHex.js +0 -163
- package/inputs/DateInput/Body.d.ts +0 -34
- package/inputs/DateInput/Body.js +0 -50
- package/inputs/DateInput/Calendar.d.ts +0 -15
- package/inputs/DateInput/Calendar.js +0 -60
- package/inputs/DateInput/DateInput.d.ts +0 -73
- package/inputs/DateInput/DateInput.js +0 -143
- package/inputs/DateInput/Day.d.ts +0 -32
- package/inputs/DateInput/Day.js +0 -33
- package/inputs/DateInput/InfiniteList.d.ts +0 -26
- package/inputs/DateInput/InfiniteList.js +0 -87
- package/inputs/DateInput/Nav.d.ts +0 -11
- package/inputs/DateInput/Nav.js +0 -24
- package/inputs/DateInput/Navbar.d.ts +0 -16
- package/inputs/DateInput/Navbar.js +0 -33
- package/inputs/DateInput/NumericInput.d.ts +0 -14
- package/inputs/DateInput/NumericInput.js +0 -48
- package/inputs/DateInput/Selector.d.ts +0 -47
- package/inputs/DateInput/Selector.js +0 -55
- package/inputs/DateInput/SimpleList.d.ts +0 -19
- package/inputs/DateInput/SimpleList.js +0 -31
- package/inputs/Dropdown/Body.d.ts +0 -25
- package/inputs/Dropdown/Body.js +0 -14
- package/inputs/Dropdown/Column.d.ts +0 -21
- package/inputs/Dropdown/Column.js +0 -6
- package/inputs/Dropdown/Dropdown.d.ts +0 -136
- package/inputs/Dropdown/Dropdown.js +0 -446
- package/inputs/Dropdown/Selection.d.ts +0 -11
- package/inputs/Dropdown/Selection.js +0 -23
- package/inputs/Dropdown/Selector.d.ts +0 -29
- package/inputs/Dropdown/Selector.js +0 -16
- package/inputs/Editor/Editor.d.ts +0 -45
- package/inputs/Editor/Editor.js +0 -60
- package/inputs/Editor/buttons/BoldButton.d.ts +0 -7
- package/inputs/Editor/buttons/BoldButton.js +0 -7
- package/inputs/Editor/buttons/BulletListButton.d.ts +0 -7
- package/inputs/Editor/buttons/BulletListButton.js +0 -7
- package/inputs/Editor/buttons/CodeBlockButton.d.ts +0 -7
- package/inputs/Editor/buttons/CodeBlockButton.js +0 -7
- package/inputs/Editor/buttons/CodeButton.d.ts +0 -7
- package/inputs/Editor/buttons/CodeButton.js +0 -7
- package/inputs/Editor/buttons/ItalicButton.d.ts +0 -7
- package/inputs/Editor/buttons/ItalicButton.js +0 -7
- package/inputs/Editor/buttons/OrderedListButton.d.ts +0 -7
- package/inputs/Editor/buttons/OrderedListButton.js +0 -7
- package/inputs/Editor/buttons/StrikethroughButton.d.ts +0 -7
- package/inputs/Editor/buttons/StrikethroughButton.js +0 -7
- package/inputs/Editor/menu/MenuBar.d.ts +0 -9
- package/inputs/Editor/menu/MenuBar.js +0 -44
- package/inputs/Editor/menu/MenuButton.d.ts +0 -35
- package/inputs/Editor/menu/MenuButton.js +0 -34
- package/inputs/Editor/menu/MenuSeparator.d.ts +0 -7
- package/inputs/Editor/menu/MenuSeparator.js +0 -24
- package/inputs/Input/Clear.d.ts +0 -7
- package/inputs/Input/Clear.js +0 -14
- package/inputs/Input/Input.d.ts +0 -133
- package/inputs/Input/Input.js +0 -64
- package/inputs/Input/InputWrapper.d.ts +0 -23
- package/inputs/Input/InputWrapper.js +0 -57
- package/inputs/Input/index.d.ts +0 -1
- package/inputs/Input/index.js +0 -1
- package/inputs/Selector/ISelectorProps.d.ts +0 -29
- package/inputs/Selector/ISelectorProps.js +0 -1
- package/inputs/Selector/Selector.d.ts +0 -29
- package/inputs/Selector/Selector.js +0 -77
- package/inputs/Selector/index.d.ts +0 -1
- package/inputs/Selector/index.js +0 -1
- package/inputs/Selector/widgets/Checkbox.d.ts +0 -6
- package/inputs/Selector/widgets/Checkbox.js +0 -29
- package/inputs/Selector/widgets/Toggle.d.ts +0 -6
- package/inputs/Selector/widgets/Toggle.js +0 -24
- package/inputs/Slider/Slider.d.ts +0 -63
- package/inputs/Slider/Slider.js +0 -198
- package/inputs/Textarea/Textarea.d.ts +0 -79
- package/inputs/Textarea/Textarea.js +0 -65
- package/map/Map/Map.d.ts +0 -47
- package/map/Map/Map.js +0 -221
- package/map/Map/index.d.ts +0 -1
- package/map/Map/index.js +0 -1
- package/map/PositionsManager/PositionBox.d.ts +0 -14
- package/map/PositionsManager/PositionBox.js +0 -86
- package/map/PositionsManager/PositionsManager.d.ts +0 -27
- package/map/PositionsManager/PositionsManager.js +0 -99
- package/map/controls/CompassButton/CompassButton.d.ts +0 -33
- package/map/controls/CompassButton/CompassButton.js +0 -88
- package/map/controls/FullscreenButton/FullscreenButton.d.ts +0 -21
- package/map/controls/FullscreenButton/FullscreenButton.js +0 -62
- package/map/controls/Geocoder/Geocoder.d.ts +0 -49
- package/map/controls/Geocoder/Geocoder.js +0 -179
- package/map/controls/Geocoder/GeocoderApi.d.ts +0 -59
- package/map/controls/Geocoder/GeocoderApi.js +0 -68
- package/map/controls/Geocoder/GeocoderEntry.d.ts +0 -15
- package/map/controls/Geocoder/GeocoderEntry.js +0 -18
- package/map/controls/Geocoder/GeocoderList.d.ts +0 -10
- package/map/controls/Geocoder/GeocoderList.js +0 -18
- package/map/controls/Geocoder/GeocoderSelector.d.ts +0 -16
- package/map/controls/Geocoder/GeocoderSelector.js +0 -25
- package/map/controls/Graticule/Graticule.d.ts +0 -35
- package/map/controls/Graticule/Graticule.js +0 -142
- package/map/controls/MapLoader/MapLoader.d.ts +0 -33
- package/map/controls/MapLoader/MapLoader.js +0 -73
- package/map/controls/ScaleControl/ScaleControl.d.ts +0 -24
- package/map/controls/ScaleControl/ScaleControl.js +0 -107
- package/map/controls/ZoomInButton/ZoomInButton.d.ts +0 -19
- package/map/controls/ZoomInButton/ZoomInButton.js +0 -56
- package/map/controls/ZoomOutButton/ZoomOutButton.d.ts +0 -19
- package/map/controls/ZoomOutButton/ZoomOutButton.js +0 -56
- package/map/controls/base/MapButton/Hint.d.ts +0 -17
- package/map/controls/base/MapButton/Hint.js +0 -34
- package/map/controls/base/MapButton/MapButton.d.ts +0 -46
- package/map/controls/base/MapButton/MapButton.js +0 -71
- package/map/controls/base/MapButton/index.d.ts +0 -1
- package/map/controls/base/MapButton/index.js +0 -1
- package/map/controls/base/MapButtonGroup/MapButtonGroup.d.ts +0 -17
- package/map/controls/base/MapButtonGroup/MapButtonGroup.js +0 -24
- package/map/controls/base/MapControl/MapControl.d.ts +0 -36
- package/map/controls/base/MapControl/MapControl.js +0 -77
- package/map/controls/base/MapControl/index.d.ts +0 -1
- package/map/controls/base/MapControl/index.js +0 -1
- package/map/layers/ClusterLayer/ClusterLayer.d.ts +0 -79
- package/map/layers/ClusterLayer/ClusterLayer.js +0 -118
- package/map/layers/HtmlMarkerLayer/HtmlMarkerLayer.d.ts +0 -51
- package/map/layers/HtmlMarkerLayer/HtmlMarkerLayer.js +0 -151
- package/map/layers/InterpolationLayer/ContoursFragmentShader.d.ts +0 -2
- package/map/layers/InterpolationLayer/ContoursFragmentShader.js +0 -2
- package/map/layers/InterpolationLayer/ContoursVertexShader.d.ts +0 -2
- package/map/layers/InterpolationLayer/ContoursVertexShader.js +0 -2
- package/map/layers/InterpolationLayer/IGradientStop.d.ts +0 -5
- package/map/layers/InterpolationLayer/IGradientStop.js +0 -1
- package/map/layers/InterpolationLayer/InterpolationLayer.d.ts +0 -35
- package/map/layers/InterpolationLayer/InterpolationLayer.js +0 -256
- package/map/layers/InterpolationLayer/LevelsFragmentShader.d.ts +0 -2
- package/map/layers/InterpolationLayer/LevelsFragmentShader.js +0 -2
- package/map/layers/InterpolationLayer/LevelsVertexShader.d.ts +0 -2
- package/map/layers/InterpolationLayer/LevelsVertexShader.js +0 -2
- package/map/layers/ParticlesLayer/ParticlesFragmentShader.d.ts +0 -2
- package/map/layers/ParticlesLayer/ParticlesFragmentShader.js +0 -2
- package/map/layers/ParticlesLayer/ParticlesLayer.d.ts +0 -40
- package/map/layers/ParticlesLayer/ParticlesLayer.js +0 -337
- package/map/layers/ParticlesLayer/ParticlesVertexShader.d.ts +0 -2
- package/map/layers/ParticlesLayer/ParticlesVertexShader.js +0 -2
- package/map/layers/ParticlesLayer/UVFragmentShader.d.ts +0 -2
- package/map/layers/ParticlesLayer/UVFragmentShader.js +0 -2
- package/map/layers/ParticlesLayer/UVVertexShader.d.ts +0 -2
- package/map/layers/ParticlesLayer/UVVertexShader.js +0 -2
- package/map/markers/ClusterMarker/ClusterMarker.d.ts +0 -36
- package/map/markers/ClusterMarker/ClusterMarker.js +0 -99
- package/map/markers/ClusterMarker/index.d.ts +0 -1
- package/map/markers/ClusterMarker/index.js +0 -1
- package/map/markers/RiskMarker/RiskMarker.d.ts +0 -22
- package/map/markers/RiskMarker/RiskMarker.js +0 -61
- package/modules/MainMenu/Item.d.ts +0 -42
- package/modules/MainMenu/Item.js +0 -94
- package/modules/MainMenu/MainMenu.d.ts +0 -20
- package/modules/MainMenu/MainMenu.js +0 -41
- package/modules/MainMenu/index.d.ts +0 -1
- package/modules/MainMenu/index.js +0 -1
- package/modules/Root/Content.d.ts +0 -16
- package/modules/Root/Content.js +0 -25
- package/modules/Root/Overlay.d.ts +0 -23
- package/modules/Root/Overlay.js +0 -33
- package/modules/Root/Root.d.ts +0 -7
- package/modules/Root/Root.js +0 -45
- package/modules/Root/Shader.d.ts +0 -15
- package/modules/Root/Shader.js +0 -24
- package/modules/Root/Sidebar.d.ts +0 -13
- package/modules/Root/Sidebar.js +0 -24
- package/modules/Root/stories/SampleContent.d.ts +0 -7
- package/modules/Root/stories/SampleContent.js +0 -44
- package/services/Dialog/AlertDialog.d.ts +0 -31
- package/services/Dialog/AlertDialog.js +0 -29
- package/services/Dialog/ConfirmDialog.d.ts +0 -34
- package/services/Dialog/ConfirmDialog.js +0 -30
- package/services/Dialog/Dialog.d.ts +0 -91
- package/services/Dialog/Dialog.js +0 -92
- package/services/Dialog/DialogBackground.d.ts +0 -7
- package/services/Dialog/DialogBackground.js +0 -12
- package/services/Dialog/DialogContent.d.ts +0 -25
- package/services/Dialog/DialogContent.js +0 -38
- package/services/Dialog/DialogFooter.d.ts +0 -24
- package/services/Dialog/DialogFooter.js +0 -50
- package/services/Dialog/DialogHeader.d.ts +0 -18
- package/services/Dialog/DialogHeader.js +0 -36
- package/services/Dialog/DialogWindow.d.ts +0 -13
- package/services/Dialog/DialogWindow.js +0 -12
- package/services/Dialog/XhrDialog.d.ts +0 -34
- package/services/Dialog/XhrDialog.js +0 -321
- package/services/Toast/IToastMessage.d.ts +0 -10
- package/services/Toast/IToastMessage.js +0 -1
- package/services/Toast/IToastProps.d.ts +0 -23
- package/services/Toast/IToastProps.js +0 -1
- package/services/Toast/Toast.d.ts +0 -21
- package/services/Toast/Toast.js +0 -79
- package/services/Toast/ToastContainer.d.ts +0 -40
- package/services/Toast/ToastContainer.js +0 -65
- package/services/Toast/ToastContext.d.ts +0 -22
- package/services/Toast/ToastContext.js +0 -7
- package/services/Toast/ToastProvider.d.ts +0 -19
- package/services/Toast/ToastProvider.js +0 -67
- package/services/Toast/index.d.ts +0 -2
- package/services/Toast/index.js +0 -2
- package/services/Toast/useToast.d.ts +0 -5
- package/services/Toast/useToast.js +0 -9
- package/styles/NormalTheme.d.ts +0 -3
- package/styles/NormalTheme.js +0 -65
- package/styles/StyleBase.d.ts +0 -2
- package/styles/StyleBase.js +0 -8
- package/styles/StyleReset.d.ts +0 -2
- package/styles/StyleReset.js +0 -8
- package/svg/editor/index.d.ts +0 -10
- package/svg/editor/index.js +0 -11
- package/svg/file/index.d.ts +0 -5
- package/svg/file/index.js +0 -6
- package/svg/icons/index.d.ts +0 -36
- package/svg/icons/index.js +0 -37
- package/svg/index.d.ts +0 -11
- package/svg/index.js +0 -5
- package/svg/menu/index.d.ts +0 -8
- package/svg/menu/index.js +0 -9
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
interface IProps {
|
|
3
|
-
/** @ignore */
|
|
4
|
-
className?: string;
|
|
5
|
-
/**
|
|
6
|
-
* Content of item.
|
|
7
|
-
*/
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
/**
|
|
10
|
-
* SVG to show, e.g. "sprite.svg#campaigns"
|
|
11
|
-
*/
|
|
12
|
-
icon: string;
|
|
13
|
-
/**
|
|
14
|
-
* Is this menu item currently active?
|
|
15
|
-
* @default false
|
|
16
|
-
*/
|
|
17
|
-
active?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* If set, item appears in bottom part of menu.
|
|
20
|
-
* @default false
|
|
21
|
-
*/
|
|
22
|
-
secondary?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* If set, the button cannot expand.
|
|
25
|
-
* @default false
|
|
26
|
-
*/
|
|
27
|
-
noExpand?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* If set, the button is disabled.
|
|
30
|
-
* @default false
|
|
31
|
-
*/
|
|
32
|
-
disabled?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* If set, this callback it triggered when the item is clicked.
|
|
35
|
-
*/
|
|
36
|
-
onClick?: () => void;
|
|
37
|
-
}
|
|
38
|
-
declare const Item: {
|
|
39
|
-
({ active, secondary, noExpand, disabled, ...props }: IProps): React.JSX.Element;
|
|
40
|
-
displayName: string;
|
|
41
|
-
};
|
|
42
|
-
export { Item, IProps };
|
package/modules/MainMenu/Item.js
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
var __assign = (this && this.__assign) || function () {
|
|
6
|
-
__assign = Object.assign || function(t) {
|
|
7
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
-
s = arguments[i];
|
|
9
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
-
t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
return t;
|
|
13
|
-
};
|
|
14
|
-
return __assign.apply(this, arguments);
|
|
15
|
-
};
|
|
16
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
17
|
-
var t = {};
|
|
18
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
19
|
-
t[p] = s[p];
|
|
20
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
21
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
22
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
23
|
-
t[p[i]] = s[p[i]];
|
|
24
|
-
}
|
|
25
|
-
return t;
|
|
26
|
-
};
|
|
27
|
-
import * as React from 'react';
|
|
28
|
-
import styled, { css } from 'styled-components';
|
|
29
|
-
import { animated, useSpring } from '@react-spring/web';
|
|
30
|
-
// The standard width x height of an unexpanded button, in pixels.
|
|
31
|
-
var BUTTON_SIZE = 50;
|
|
32
|
-
// The width x height of an icon inside the button.
|
|
33
|
-
var ICON_SIZE = 26;
|
|
34
|
-
var ItemBase = function (props) {
|
|
35
|
-
var _a;
|
|
36
|
-
// The <Content> element contains the actual menu text. The width of this
|
|
37
|
-
// element depends on the length of the text. It is this width that must
|
|
38
|
-
// be used for the animation.
|
|
39
|
-
var content = React.useRef();
|
|
40
|
-
var _b = useSpring(function () { return ({
|
|
41
|
-
from: { maxWidth: BUTTON_SIZE }
|
|
42
|
-
}); }), springs = _b[0], api = _b[1];
|
|
43
|
-
var handleMouseEnter = function () {
|
|
44
|
-
api.start({
|
|
45
|
-
from: {
|
|
46
|
-
maxWidth: BUTTON_SIZE,
|
|
47
|
-
},
|
|
48
|
-
to: {
|
|
49
|
-
maxWidth: content.current.scrollWidth + 24 + 13,
|
|
50
|
-
},
|
|
51
|
-
config: {
|
|
52
|
-
mass: 1,
|
|
53
|
-
tension: 400,
|
|
54
|
-
friction: 20,
|
|
55
|
-
damping: 1,
|
|
56
|
-
precision: 0.01
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
};
|
|
60
|
-
var handleMouseLeave = function () {
|
|
61
|
-
api.start({
|
|
62
|
-
from: {
|
|
63
|
-
maxWidth: content.current.scrollWidth + 24 + 13,
|
|
64
|
-
},
|
|
65
|
-
to: {
|
|
66
|
-
maxWidth: BUTTON_SIZE,
|
|
67
|
-
},
|
|
68
|
-
config: {
|
|
69
|
-
mass: 1,
|
|
70
|
-
tension: 170,
|
|
71
|
-
friction: 26,
|
|
72
|
-
damping: 1,
|
|
73
|
-
precision: 0.01
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
};
|
|
77
|
-
return (React.createElement("div", { tabIndex: -1, className: props.className, onMouseEnter: !props.noExpand ? handleMouseEnter : null, onMouseLeave: !props.noExpand ? handleMouseLeave : null, onClick: (_a = props.onClick) !== null && _a !== void 0 ? _a : null },
|
|
78
|
-
React.createElement(Animatable, { style: __assign({}, springs) },
|
|
79
|
-
React.createElement(Content, { ref: content },
|
|
80
|
-
React.createElement(Svg, null,
|
|
81
|
-
React.createElement("use", { xlinkHref: props.icon })),
|
|
82
|
-
props.children))));
|
|
83
|
-
};
|
|
84
|
-
var Svg = styled.svg(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", "px;\n height: ", "px;\n min-width: ", "px;\n fill: ", ";\n"], ["\n width: ", "px;\n height: ", "px;\n min-width: ", "px;\n fill: ", ";\n"])), ICON_SIZE, ICON_SIZE, ICON_SIZE, function (p) { return p.theme.colors.neutral[100]; });
|
|
85
|
-
var Content = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n justify-content: start;\n align-items: center;\n gap: 16px;\n flex-wrap: nowrap;\n height: 100%;\n"], ["\n display: flex;\n justify-content: start;\n align-items: center;\n gap: 16px;\n flex-wrap: nowrap;\n height: 100%;\n"])));
|
|
86
|
-
var Animatable = styled(animated.div)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n // Position & size:\n position: absolute;\n width: auto;\n max-width: ", "px;\n height: ", "px;\n box-sizing: border-box;\n padding-left: 12px;\n padding-right: 24px;\n\n // Appearance:\n font: ", ";\n user-select: none;\n outline: none; \n border-radius: ", "px;\n overflow: hidden;\n color: white;\n white-space: nowrap;\n backface-visibility: hidden;\n transition: color ", "ms ease-in-out,\n fill ", "ms ease-in-out;\n\n // Shadows (same for primary and secondary buttons):\n box-shadow: ", ";\n &:hover {\n box-shadow: ", ";\n }\n &:active {\n box-shadow: none;\n }\n"], ["\n // Position & size:\n position: absolute;\n width: auto;\n max-width: ", "px;\n height: ", "px;\n box-sizing: border-box;\n padding-left: 12px;\n padding-right: 24px;\n\n // Appearance:\n font: ", ";\n user-select: none;\n outline: none; \n border-radius: ", "px;\n overflow: hidden;\n color: white;\n white-space: nowrap;\n backface-visibility: hidden;\n transition: color ", "ms ease-in-out,\n fill ", "ms ease-in-out;\n\n // Shadows (same for primary and secondary buttons):\n box-shadow: ", ";\n &:hover {\n box-shadow: ", ";\n }\n &:active {\n box-shadow: none;\n }\n"])), BUTTON_SIZE, BUTTON_SIZE, function (p) { return p.theme.font.labelLarge; }, function (p) { return p.theme.radius.strong; }, function (p) { return p.theme.animation.duration; }, function (p) { return p.theme.animation.duration; }, function (p) { return p.theme.shadows.medium; }, function (p) { return p.theme.shadows.large; });
|
|
87
|
-
var ItemStyled = styled(ItemBase)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n display: block;\n text-decoration: none;\n cursor: pointer;\n user-select: none;\n outline: none;\n background-color: transparent;\n width: ", "px;\n height: ", "px;\n\n ", "\n\n // Colors only:\n ", "\n\n ", "\n"], ["\n display: block;\n text-decoration: none;\n cursor: pointer;\n user-select: none;\n outline: none;\n background-color: transparent;\n width: ", "px;\n height: ", "px;\n\n ", "\n\n // Colors only:\n ", "\n\n ", "\n"])), BUTTON_SIZE, BUTTON_SIZE, function (p) { return p.disabled && css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n pointer-events: none;\n "], ["\n pointer-events: none;\n "]))); }, function (p) { return !p.secondary && css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", " {\n background-color: ", ";\n ", "\n ", "\n }\n "], ["\n ", " {\n background-color: ", ";\n ", "\n ", "\n }\n "])), Animatable, p.theme.colors.primary[1], p.active && css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background-color:", ";\n box-shadow: ", ";\n color: ", ";\n svg { \n fill: ", "; \n }\n "], ["\n background-color:", ";\n box-shadow: ", ";\n color: ", ";\n svg { \n fill: ", "; \n }\n "])), function (p) { return p.theme.colors.primary[4]; }, p.theme.shadows.inner, p.theme.colors.accent, p.theme.colors.accent), p.disabled && css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n box-shadow: none;\n background-color: ", ";\n svg {\n fill: ", ";\n }\n "], ["\n box-shadow: none;\n background-color: ", ";\n svg {\n fill: ", ";\n }\n "])), function (p) { return p.theme.colors.neutral[50]; }, p.theme.colors.primary[3])); }, function (p) { return p.secondary && css(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n ", " {\n background-color: ", ";\n &:hover {\n background-color: ", ";\n }\n &:active {\n color: ", ";\n svg {\n fill: ", ";\n }\n }\n ", "\n ", "\n }\n "], ["\n ", " {\n background-color: ", ";\n &:hover {\n background-color: ", ";\n }\n &:active {\n color: ", ";\n svg {\n fill: ", ";\n }\n }\n ", "\n ", "\n }\n "])), Animatable, p.theme.colors.primary[4], p.theme.colors.primary[2], function (p) { return p.theme.colors.primary[5]; }, function (p) { return p.theme.colors.primary[5]; }, p.active && css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n background-color:", " !important;\n box-shadow: ", ";\n color: ", ";\n svg { \n fill: ", "; \n }\n "], ["\n background-color:", " !important;\n box-shadow: ", ";\n color: ", ";\n svg { \n fill: ", "; \n }\n "])), p.theme.colors.primary[4], p.theme.shadows.inner, p.theme.colors.accent, p.theme.colors.accent), p.disabled && css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n box-shadow: none;\n background-color: ", ";\n border-color: ", ";\n svg {\n fill: ", ";\n }\n "], ["\n box-shadow: none;\n background-color: ", ";\n border-color: ", ";\n svg {\n fill: ", ";\n }\n "])), p.theme.colors.primary[3], p.theme.colors.primary[5], p.theme.colors.primary[5])); });
|
|
88
|
-
var Item = function (_a) {
|
|
89
|
-
var _b = _a.active, active = _b === void 0 ? false : _b, _c = _a.secondary, secondary = _c === void 0 ? false : _c, _d = _a.noExpand, noExpand = _d === void 0 ? false : _d, _e = _a.disabled, disabled = _e === void 0 ? false : _e, props = __rest(_a, ["active", "secondary", "noExpand", "disabled"]);
|
|
90
|
-
return React.createElement(ItemStyled, __assign({ active: active, secondary: secondary, noExpand: noExpand, disabled: disabled }, props));
|
|
91
|
-
};
|
|
92
|
-
Item.displayName = "MainMenu.Item";
|
|
93
|
-
export { Item };
|
|
94
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
interface IProps {
|
|
3
|
-
/** @ignore */
|
|
4
|
-
className?: string;
|
|
5
|
-
/** @ignore */
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* A `MainMenu` is always positioned on the left side of its container, and fills it
|
|
10
|
-
* vertically.
|
|
11
|
-
* It requires @react-spring/web to work.
|
|
12
|
-
*/
|
|
13
|
-
declare const MainMenu: {
|
|
14
|
-
(props: IProps): React.JSX.Element;
|
|
15
|
-
Item: {
|
|
16
|
-
({ active, secondary, noExpand, disabled, ...props }: import("./Item").IProps): React.JSX.Element;
|
|
17
|
-
displayName: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
export { MainMenu };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
var __assign = (this && this.__assign) || function () {
|
|
6
|
-
__assign = Object.assign || function(t) {
|
|
7
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
-
s = arguments[i];
|
|
9
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
-
t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
return t;
|
|
13
|
-
};
|
|
14
|
-
return __assign.apply(this, arguments);
|
|
15
|
-
};
|
|
16
|
-
import * as React from 'react';
|
|
17
|
-
import styled from 'styled-components';
|
|
18
|
-
import { Item } from './Item';
|
|
19
|
-
var MainMenuBase = function (props) {
|
|
20
|
-
return (React.createElement("div", { className: props.className },
|
|
21
|
-
React.createElement(Top, null, React.Children.toArray(props.children).filter(function (c) { return !c.props.secondary; })),
|
|
22
|
-
React.createElement(Bottom, null, React.Children.toArray(props.children).filter(function (c) { return c.props.secondary; }))));
|
|
23
|
-
};
|
|
24
|
-
var Top = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 16px;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 16px;\n"])));
|
|
25
|
-
var Bottom = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: end;\n gap: 16px;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: end;\n gap: 16px;\n"])));
|
|
26
|
-
var MainMenuStyled = styled(MainMenuBase)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n // Position and size:\n position: relative;\n box-sizing: border-box;\n z-index: 1;\n height: 100%;\n width: 80px;\n\n // Appearance:\n padding-bottom: 32px;\n background-image: linear-gradient(#457298, #2C4253);\n\n // Content:\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n pointer-events: auto;\n"], ["\n // Position and size:\n position: relative;\n box-sizing: border-box;\n z-index: 1;\n height: 100%;\n width: 80px;\n\n // Appearance:\n padding-bottom: 32px;\n background-image: linear-gradient(#457298, #2C4253);\n\n // Content:\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n pointer-events: auto;\n"
|
|
27
|
-
/**
|
|
28
|
-
* A `MainMenu` is always positioned on the left side of its container, and fills it
|
|
29
|
-
* vertically.
|
|
30
|
-
* It requires @react-spring/web to work.
|
|
31
|
-
*/
|
|
32
|
-
])));
|
|
33
|
-
/**
|
|
34
|
-
* A `MainMenu` is always positioned on the left side of its container, and fills it
|
|
35
|
-
* vertically.
|
|
36
|
-
* It requires @react-spring/web to work.
|
|
37
|
-
*/
|
|
38
|
-
var MainMenu = function (props) { return React.createElement(MainMenuStyled, __assign({}, props)); };
|
|
39
|
-
MainMenu.Item = Item;
|
|
40
|
-
export { MainMenu };
|
|
41
|
-
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './MainMenu';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './MainMenu';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
interface IProps {
|
|
3
|
-
/** @ignore */
|
|
4
|
-
className?: string;
|
|
5
|
-
/** @ignore */
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* Is this the currently-active content?
|
|
9
|
-
*/
|
|
10
|
-
active?: boolean;
|
|
11
|
-
}
|
|
12
|
-
declare const Content: {
|
|
13
|
-
(props: IProps): React.JSX.Element;
|
|
14
|
-
displayName: string;
|
|
15
|
-
};
|
|
16
|
-
export { Content, IProps };
|
package/modules/Root/Content.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
var __assign = (this && this.__assign) || function () {
|
|
6
|
-
__assign = Object.assign || function(t) {
|
|
7
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
-
s = arguments[i];
|
|
9
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
-
t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
return t;
|
|
13
|
-
};
|
|
14
|
-
return __assign.apply(this, arguments);
|
|
15
|
-
};
|
|
16
|
-
import * as React from 'react';
|
|
17
|
-
import styled from 'styled-components';
|
|
18
|
-
var ContentBase = function (props) {
|
|
19
|
-
return (React.createElement("div", { className: props.className }, props.children));
|
|
20
|
-
};
|
|
21
|
-
var ContentStyled = styled(ContentBase)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n width: 100%;\n height: 100%;\n background: red;\n visibility: ", ";\n"], ["\n position: relative;\n width: 100%;\n height: 100%;\n background: red;\n visibility: ", ";\n"])), function (p) { return p.active ? 'visible' : 'hidden'; });
|
|
22
|
-
var Content = function (props) { return React.createElement(ContentStyled, __assign({}, props)); };
|
|
23
|
-
Content.displayName = "Overlay.Content";
|
|
24
|
-
export { Content };
|
|
25
|
-
var templateObject_1;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
interface IProps {
|
|
3
|
-
/** @ignore */
|
|
4
|
-
className?: string;
|
|
5
|
-
/** @ignore */
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* Is the `Overlay` currently open?
|
|
9
|
-
*/
|
|
10
|
-
open?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Fired when Overlay wants to close.
|
|
13
|
-
*/
|
|
14
|
-
onClose: () => void;
|
|
15
|
-
}
|
|
16
|
-
declare const Overlay: {
|
|
17
|
-
(props: IProps): React.JSX.Element;
|
|
18
|
-
Content: {
|
|
19
|
-
(props: import("./Content").IProps): React.JSX.Element;
|
|
20
|
-
displayName: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export { Overlay };
|
package/modules/Root/Overlay.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
var __assign = (this && this.__assign) || function () {
|
|
6
|
-
__assign = Object.assign || function(t) {
|
|
7
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
-
s = arguments[i];
|
|
9
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
-
t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
return t;
|
|
13
|
-
};
|
|
14
|
-
return __assign.apply(this, arguments);
|
|
15
|
-
};
|
|
16
|
-
import * as React from 'react';
|
|
17
|
-
import styled from 'styled-components';
|
|
18
|
-
import { Shader } from './Shader';
|
|
19
|
-
import { Sidebar } from './Sidebar';
|
|
20
|
-
import { Content } from './Content';
|
|
21
|
-
var OverlayBase = function (props) {
|
|
22
|
-
var handleShaderClick = function () {
|
|
23
|
-
props.onClose();
|
|
24
|
-
};
|
|
25
|
-
return (React.createElement("div", { className: props.className },
|
|
26
|
-
React.createElement(Sidebar, { open: props.open }, props.children),
|
|
27
|
-
React.createElement(Shader, { active: props.open, onClick: handleShaderClick })));
|
|
28
|
-
};
|
|
29
|
-
var OverlayStyled = styled(OverlayBase)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n // Position and size:\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n pointer-events: none !important;\n"], ["\n // Position and size:\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n pointer-events: none !important;\n"])));
|
|
30
|
-
var Overlay = function (props) { return React.createElement(OverlayStyled, __assign({}, props)); };
|
|
31
|
-
Overlay.Content = Content;
|
|
32
|
-
export { Overlay };
|
|
33
|
-
var templateObject_1;
|
package/modules/Root/Root.d.ts
DELETED
package/modules/Root/Root.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
var __assign = (this && this.__assign) || function () {
|
|
6
|
-
__assign = Object.assign || function(t) {
|
|
7
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
-
s = arguments[i];
|
|
9
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
-
t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
return t;
|
|
13
|
-
};
|
|
14
|
-
return __assign.apply(this, arguments);
|
|
15
|
-
};
|
|
16
|
-
import * as React from 'react';
|
|
17
|
-
import styled from 'styled-components';
|
|
18
|
-
import { Outlet, useMatches, useNavigate } from 'react-router-dom';
|
|
19
|
-
import { MainMenu } from '../MainMenu';
|
|
20
|
-
import { SVG } from '../../svg';
|
|
21
|
-
import { Overlay } from './Overlay';
|
|
22
|
-
import { Map } from '../../map/Map';
|
|
23
|
-
var RootBase = function (props) {
|
|
24
|
-
var navigate = useNavigate();
|
|
25
|
-
var m = useMatches();
|
|
26
|
-
return (React.createElement("div", { className: props.className },
|
|
27
|
-
React.createElement(MainMenu, null,
|
|
28
|
-
React.createElement(MainMenu.Item, { icon: SVG.Menu.MapMarker, onClick: function () { return navigate(""); } }, "Map"),
|
|
29
|
-
React.createElement(MainMenu.Item, { icon: SVG.Menu.Company, onClick: function () { return navigate("company"); } }, "Company"),
|
|
30
|
-
React.createElement(MainMenu.Item, { icon: SVG.Menu.Standards, onClick: function () { return navigate("farms"); } }, "Farms"),
|
|
31
|
-
React.createElement(MainMenu.Item, { icon: SVG.Menu.Account, onClick: function () { return navigate("page1"); } }, "Page 1"),
|
|
32
|
-
React.createElement(MainMenu.Item, { icon: SVG.Menu.Signout, onClick: function () { return navigate("page2"); } }, "Page 2")),
|
|
33
|
-
React.createElement(Overlay, { open: m.length == 3 && m[2].pathname != "/", onClose: function () { return navigate("/"); } }, m.length == 3 && React.createElement(Outlet, null)),
|
|
34
|
-
React.createElement(Content, null,
|
|
35
|
-
React.createElement(Map, { token: "pk.eyJ1IjoibG9uZ2xpbmVlbnZpcm9ubWVudCIsImEiOiJjbDdldTJhMmYwM3VlM3lvMW5mcTFyOWlnIn0.LzghnMQjPdtw795xN-BCWg", style: "mapbox://styles/longlineenvironment/clm8wahno013a01pb5c0u3k22" }),
|
|
36
|
-
m.length == 2 &&
|
|
37
|
-
React.createElement(Page, null,
|
|
38
|
-
React.createElement(Outlet, null)))));
|
|
39
|
-
};
|
|
40
|
-
var Content = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 80px;\n right: 0;\n bottom: 0;\n"], ["\n position: absolute;\n top: 0;\n left: 80px;\n right: 0;\n bottom: 0;\n"])));
|
|
41
|
-
var Page = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: grey;\n color: white;\n"], ["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: grey;\n color: white;\n"])));
|
|
42
|
-
var RootStyled = styled(RootBase)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n background-color: #333;\n"], ["\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n background-color: #333;\n"])));
|
|
43
|
-
var Root = function (props) { return React.createElement(RootStyled, __assign({}, props)); };
|
|
44
|
-
export { Root };
|
|
45
|
-
var templateObject_1, templateObject_2, templateObject_3;
|
package/modules/Root/Shader.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
interface IProps {
|
|
3
|
-
/** @ignore */
|
|
4
|
-
className?: string;
|
|
5
|
-
/**
|
|
6
|
-
* Is shader currently active?
|
|
7
|
-
*/
|
|
8
|
-
active?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Fired when Shader is clicked.
|
|
11
|
-
*/
|
|
12
|
-
onClick: () => void;
|
|
13
|
-
}
|
|
14
|
-
declare const Shader: (props: IProps) => React.JSX.Element;
|
|
15
|
-
export { Shader };
|
package/modules/Root/Shader.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
var __assign = (this && this.__assign) || function () {
|
|
6
|
-
__assign = Object.assign || function(t) {
|
|
7
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
-
s = arguments[i];
|
|
9
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
-
t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
return t;
|
|
13
|
-
};
|
|
14
|
-
return __assign.apply(this, arguments);
|
|
15
|
-
};
|
|
16
|
-
import * as React from 'react';
|
|
17
|
-
import styled from 'styled-components';
|
|
18
|
-
var ShaderBase = function (props) {
|
|
19
|
-
return (React.createElement("div", { className: props.className, onClick: props.onClick }));
|
|
20
|
-
};
|
|
21
|
-
var ShaderStyled = styled(ShaderBase)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n // Position and size:\n position: absolute;\n z-index: 1;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n\n // Behavior:\n pointer-events: ", ";\n cursor: ", ";\n\n // Appearance:\n transition: opacity ", "ms ease-in-out;\n opacity: ", ";\n background-color: rgba(0,0,0,0.5);\n"], ["\n // Position and size:\n position: absolute;\n z-index: 1;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n\n // Behavior:\n pointer-events: ", ";\n cursor: ", ";\n\n // Appearance:\n transition: opacity ", "ms ease-in-out;\n opacity: ", ";\n background-color: rgba(0,0,0,0.5);\n"])), function (p) { return p.active ? 'all' : 'none'; }, function (p) { return p.active ? 'pointer' : 'auto'; }, function (p) { return p.theme.animation.duration * 2; }, function (p) { return p.active ? 1 : 0; });
|
|
22
|
-
var Shader = function (props) { return React.createElement(ShaderStyled, __assign({}, props)); };
|
|
23
|
-
export { Shader };
|
|
24
|
-
var templateObject_1;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
interface IProps {
|
|
3
|
-
/** @ignore */
|
|
4
|
-
className?: string;
|
|
5
|
-
/** @ignore */
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* Is the overlay currently open?
|
|
9
|
-
*/
|
|
10
|
-
open?: boolean;
|
|
11
|
-
}
|
|
12
|
-
declare const Sidebar: (props: IProps) => React.JSX.Element;
|
|
13
|
-
export { Sidebar };
|
package/modules/Root/Sidebar.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
var __assign = (this && this.__assign) || function () {
|
|
6
|
-
__assign = Object.assign || function(t) {
|
|
7
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
-
s = arguments[i];
|
|
9
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
-
t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
return t;
|
|
13
|
-
};
|
|
14
|
-
return __assign.apply(this, arguments);
|
|
15
|
-
};
|
|
16
|
-
import * as React from 'react';
|
|
17
|
-
import styled from 'styled-components';
|
|
18
|
-
var SidebarBase = function (props) {
|
|
19
|
-
return (React.createElement("div", { className: props.className }, props.children));
|
|
20
|
-
};
|
|
21
|
-
var SidebarStyled = styled(SidebarBase)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n // Position and size:\n position: absolute;\n z-index: 2;\n left: ", ";\n top: 0;\n width: 250px;\n bottom: 0;\n transition: left ", "ms ease-in-out;\n pointer-events: all;\n\n // Appearance:\n background: ", ";\n"], ["\n // Position and size:\n position: absolute;\n z-index: 2;\n left: ", ";\n top: 0;\n width: 250px;\n bottom: 0;\n transition: left ", "ms ease-in-out;\n pointer-events: all;\n\n // Appearance:\n background: ", ";\n"])), function (p) { return p.open ? 0 : '-350px'; }, function (p) { return p.theme.animation.duration * 2; }, function (p) { return p.theme.colors.primary[3]; });
|
|
22
|
-
var Sidebar = function (props) { return React.createElement(SidebarStyled, __assign({}, props)); };
|
|
23
|
-
export { Sidebar };
|
|
24
|
-
var templateObject_1;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
var __assign = (this && this.__assign) || function () {
|
|
6
|
-
__assign = Object.assign || function(t) {
|
|
7
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
-
s = arguments[i];
|
|
9
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
-
t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
return t;
|
|
13
|
-
};
|
|
14
|
-
return __assign.apply(this, arguments);
|
|
15
|
-
};
|
|
16
|
-
import * as React from 'react';
|
|
17
|
-
import styled from 'styled-components';
|
|
18
|
-
var SampleContentBase = function (props) {
|
|
19
|
-
return (React.createElement("div", { className: props.className },
|
|
20
|
-
props.children,
|
|
21
|
-
React.createElement(Scroller, null,
|
|
22
|
-
React.createElement("div", null, "A"),
|
|
23
|
-
React.createElement("div", null, "B"),
|
|
24
|
-
React.createElement("div", null, "C"),
|
|
25
|
-
React.createElement("div", null, "D"),
|
|
26
|
-
React.createElement("div", null, "E"),
|
|
27
|
-
React.createElement("div", null, "F"),
|
|
28
|
-
React.createElement("div", null, "G"),
|
|
29
|
-
React.createElement("div", null, "H"),
|
|
30
|
-
React.createElement("div", null, "I"),
|
|
31
|
-
React.createElement("div", null, "J"),
|
|
32
|
-
React.createElement("div", null, "K"),
|
|
33
|
-
React.createElement("div", null, "L"),
|
|
34
|
-
React.createElement("div", null, "M"),
|
|
35
|
-
React.createElement("div", null, "N"),
|
|
36
|
-
React.createElement("div", null, "O"),
|
|
37
|
-
React.createElement("div", null, "P"),
|
|
38
|
-
React.createElement("div", null, "Q"))));
|
|
39
|
-
};
|
|
40
|
-
var Scroller = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex: 1;\n overflow-y: scroll;\n border: solid 1px #fff;\n & > div {\n height: 48px;\n }\n"], ["\n flex: 1;\n overflow-y: scroll;\n border: solid 1px #fff;\n & > div {\n height: 48px;\n }\n"])));
|
|
41
|
-
var SampleContentStyled = styled(SampleContentBase)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n height: 100%;\n \n"], ["\n display: flex;\n flex-direction: column;\n height: 100%;\n \n"])));
|
|
42
|
-
var SampleContent = function (props) { return React.createElement(SampleContentStyled, __assign({}, props)); };
|
|
43
|
-
export { SampleContent };
|
|
44
|
-
var templateObject_1, templateObject_2;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
interface IAlertDialogProps {
|
|
3
|
-
/**
|
|
4
|
-
* Dialog content.
|
|
5
|
-
*/
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* Is the Dialog currently open?
|
|
9
|
-
* @default false
|
|
10
|
-
*/
|
|
11
|
-
open?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Optional title to show in alert dialog. If not specified, this will be
|
|
14
|
-
* "Alert".
|
|
15
|
-
* @default Alert
|
|
16
|
-
*/
|
|
17
|
-
title?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Function to call when Dialog closes.
|
|
20
|
-
*/
|
|
21
|
-
onClose: () => void;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* A `Dialog.Alert` is a preset dialog with only a title, and an "OK" Button.
|
|
25
|
-
* Clicking the button calls `onClose`.
|
|
26
|
-
*/
|
|
27
|
-
declare const AlertDialog: {
|
|
28
|
-
({ open, title, ...props }: IAlertDialogProps): React.JSX.Element;
|
|
29
|
-
displayName: string;
|
|
30
|
-
};
|
|
31
|
-
export { AlertDialog, IAlertDialogProps };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import * as React from 'react';
|
|
13
|
-
// Other controls
|
|
14
|
-
import { Dialog } from './Dialog';
|
|
15
|
-
import { PrimaryButton } from '../../controls/PrimaryButton';
|
|
16
|
-
/**
|
|
17
|
-
* A `Dialog.Alert` is a preset dialog with only a title, and an "OK" Button.
|
|
18
|
-
* Clicking the button calls `onClose`.
|
|
19
|
-
*/
|
|
20
|
-
var AlertDialog = function (_a) {
|
|
21
|
-
var _b = _a.open, open = _b === void 0 ? false : _b, _c = _a.title, title = _c === void 0 ? 'Alert' : _c, props = __rest(_a, ["open", "title"]);
|
|
22
|
-
return React.createElement(Dialog, { open: open, onClose: props.onClose },
|
|
23
|
-
React.createElement(Dialog.Header, null, title),
|
|
24
|
-
React.createElement(Dialog.Content, null, props.children),
|
|
25
|
-
React.createElement(Dialog.Footer, null,
|
|
26
|
-
React.createElement(PrimaryButton, { onClick: props.onClose }, "OK")));
|
|
27
|
-
};
|
|
28
|
-
AlertDialog.displayName = "Dialog.Alert";
|
|
29
|
-
export { AlertDialog };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
interface IProps {
|
|
3
|
-
/**
|
|
4
|
-
* Dialog content.
|
|
5
|
-
*/
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* Is the Dialog currently open?
|
|
9
|
-
* @default false
|
|
10
|
-
*/
|
|
11
|
-
open?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Title to show in confirmation dialog. If not specified, "Confirmation"
|
|
14
|
-
* @default Confirmation
|
|
15
|
-
*/
|
|
16
|
-
title?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Function to call on close (with a negative reply).
|
|
19
|
-
*/
|
|
20
|
-
onClose: () => void;
|
|
21
|
-
/**
|
|
22
|
-
* Function to call on close (with a positive reply).
|
|
23
|
-
*/
|
|
24
|
-
onConfirm: () => void;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* A `Dialog.Confirm` is a preset dialog with a title, and a "Yes" and a "No"
|
|
28
|
-
* button. Clicking "Yes" cals `onConfirm`, and clicking "No" calls `onClose`.
|
|
29
|
-
*/
|
|
30
|
-
declare const ConfirmDialog: {
|
|
31
|
-
({ open, title, ...props }: IProps): React.JSX.Element;
|
|
32
|
-
displayName: string;
|
|
33
|
-
};
|
|
34
|
-
export { ConfirmDialog, IProps };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import * as React from 'react';
|
|
13
|
-
// Other controls
|
|
14
|
-
import { Dialog } from './Dialog';
|
|
15
|
-
import { PrimaryButton } from '../../controls/PrimaryButton';
|
|
16
|
-
/**
|
|
17
|
-
* A `Dialog.Confirm` is a preset dialog with a title, and a "Yes" and a "No"
|
|
18
|
-
* button. Clicking "Yes" cals `onConfirm`, and clicking "No" calls `onClose`.
|
|
19
|
-
*/
|
|
20
|
-
var ConfirmDialog = function (_a) {
|
|
21
|
-
var _b = _a.open, open = _b === void 0 ? false : _b, _c = _a.title, title = _c === void 0 ? 'Confirmation' : _c, props = __rest(_a, ["open", "title"]);
|
|
22
|
-
return React.createElement(Dialog, { open: open, onClose: props.onClose },
|
|
23
|
-
React.createElement(Dialog.Header, null, title),
|
|
24
|
-
React.createElement(Dialog.Content, null, props.children),
|
|
25
|
-
React.createElement(Dialog.Footer, null,
|
|
26
|
-
React.createElement(PrimaryButton, { negative: true, onClick: props.onConfirm }, "Yes"),
|
|
27
|
-
React.createElement(PrimaryButton, { onClick: props.onClose }, "No")));
|
|
28
|
-
};
|
|
29
|
-
ConfirmDialog.displayName = "Dialog.Confirm";
|
|
30
|
-
export { ConfirmDialog };
|