@longline/aqua-ui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/Types.d.ts +6 -0
- package/Types.js +5 -0
- package/containers/Anchor/Anchor.d.ts +63 -0
- package/containers/Anchor/Anchor.js +113 -0
- package/containers/Anchor/index.d.ts +1 -0
- package/containers/Anchor/index.js +1 -0
- package/containers/Dock/Dock.d.ts +45 -0
- package/containers/Dock/Dock.js +61 -0
- package/containers/Dock/Dockable.d.ts +60 -0
- package/containers/Dock/Dockable.js +98 -0
- package/containers/Dock/index.d.ts +2 -0
- package/containers/Dock/index.js +2 -0
- package/containers/Form/Field.d.ts +104 -0
- package/containers/Form/Field.js +168 -0
- package/containers/Form/Form.d.ts +51 -0
- package/containers/Form/Form.js +89 -0
- package/containers/Form/Validation.d.ts +212 -0
- package/containers/Form/Validation.js +232 -0
- package/containers/Form/context/FormContext.d.ts +10 -0
- package/containers/Form/context/FormContext.js +3 -0
- package/containers/Form/context/useForm.d.ts +5 -0
- package/containers/Form/context/useForm.js +9 -0
- package/containers/Form/elements/BoxWrapper.d.ts +15 -0
- package/containers/Form/elements/BoxWrapper.js +35 -0
- package/containers/Form/elements/Hint.d.ts +21 -0
- package/containers/Form/elements/Hint.js +15 -0
- package/containers/Form/elements/Label.d.ts +22 -0
- package/containers/Form/elements/Label.js +15 -0
- package/containers/Form/elements/SimpleWrapper.d.ts +15 -0
- package/containers/Form/elements/SimpleWrapper.js +17 -0
- package/containers/GlassPane/GlassPane.d.ts +36 -0
- package/containers/GlassPane/GlassPane.js +66 -0
- package/containers/GlassPane/index.d.ts +1 -0
- package/containers/GlassPane/index.js +1 -0
- package/containers/InfoBox/InfoBox.d.ts +34 -0
- package/containers/InfoBox/InfoBox.js +45 -0
- package/containers/InfoBox/elements/Content.d.ts +23 -0
- package/containers/InfoBox/elements/Content.js +37 -0
- package/containers/InfoBox/elements/Footer.d.ts +9 -0
- package/containers/InfoBox/elements/Footer.js +24 -0
- package/containers/InfoBox/elements/Header.d.ts +9 -0
- package/containers/InfoBox/elements/Header.js +24 -0
- package/containers/List/List.d.ts +45 -0
- package/containers/List/List.js +47 -0
- package/containers/List/ListCell.d.ts +13 -0
- package/containers/List/ListCell.js +24 -0
- package/containers/List/ListRow.d.ts +15 -0
- package/containers/List/ListRow.js +24 -0
- package/containers/List/index.d.ts +3 -0
- package/containers/List/index.js +3 -0
- package/containers/Tabs/Pane.d.ts +29 -0
- package/containers/Tabs/Pane.js +45 -0
- package/containers/Tabs/Tabs.d.ts +66 -0
- package/containers/Tabs/Tabs.js +144 -0
- package/controls/Chip/Chip.d.ts +35 -0
- package/controls/Chip/Chip.js +83 -0
- package/controls/Fab/Fab.d.ts +73 -0
- package/controls/Fab/Fab.js +94 -0
- package/controls/Icon/Icon.d.ts +98 -0
- package/controls/Icon/Icon.js +79 -0
- package/controls/Icon/index.d.ts +1 -0
- package/controls/Icon/index.js +1 -0
- package/controls/Key/Key.d.ts +22 -0
- package/controls/Key/Key.js +74 -0
- package/controls/Key/index.d.ts +1 -0
- package/controls/Key/index.js +1 -0
- package/controls/LinearChart/LinearChart.d.ts +31 -0
- package/controls/LinearChart/LinearChart.js +58 -0
- package/controls/ListView/Body.d.ts +8 -0
- package/controls/ListView/Body.js +24 -0
- package/controls/ListView/Column.d.ts +55 -0
- package/controls/ListView/Column.js +8 -0
- package/controls/ListView/ColumnsManager/ColumnDraggable.d.ts +11 -0
- package/controls/ListView/ColumnsManager/ColumnDraggable.js +83 -0
- package/controls/ListView/ColumnsManager/ColumnsManager.d.ts +12 -0
- package/controls/ListView/ColumnsManager/ColumnsManager.js +63 -0
- package/controls/ListView/ColumnsManager/OrderColumns.d.ts +11 -0
- package/controls/ListView/ColumnsManager/OrderColumns.js +62 -0
- package/controls/ListView/ColumnsManager/SourceColumns.d.ts +10 -0
- package/controls/ListView/ColumnsManager/SourceColumns.js +45 -0
- package/controls/ListView/Ghost.d.ts +9 -0
- package/controls/ListView/Ghost.js +52 -0
- package/controls/ListView/Header.d.ts +12 -0
- package/controls/ListView/Header.js +35 -0
- package/controls/ListView/HeaderButton.d.ts +8 -0
- package/controls/ListView/HeaderButton.js +8 -0
- package/controls/ListView/HeaderCell.d.ts +20 -0
- package/controls/ListView/HeaderCell.js +47 -0
- package/controls/ListView/IListViewProps.d.ts +105 -0
- package/controls/ListView/IListViewProps.js +1 -0
- package/controls/ListView/ListView.d.ts +20 -0
- package/controls/ListView/ListView.js +97 -0
- package/controls/ListView/NoData.d.ts +19 -0
- package/controls/ListView/NoData.js +30 -0
- package/controls/ListView/SortButton.d.ts +16 -0
- package/controls/ListView/SortButton.js +26 -0
- package/controls/ListView/Table.d.ts +18 -0
- package/controls/ListView/Table.js +99 -0
- package/controls/ListView/Total.d.ts +9 -0
- package/controls/ListView/Total.js +28 -0
- package/controls/ListView/sortItems.d.ts +6 -0
- package/controls/ListView/sortItems.js +35 -0
- package/controls/Mouse/Mouse.d.ts +38 -0
- package/controls/Mouse/Mouse.js +51 -0
- package/controls/Mouse/index.d.ts +1 -0
- package/controls/Mouse/index.js +1 -0
- package/controls/PrimaryButton/PrimaryButton.d.ts +63 -0
- package/controls/PrimaryButton/PrimaryButton.js +83 -0
- package/controls/PrimaryButton/index.d.ts +1 -0
- package/controls/PrimaryButton/index.js +1 -0
- package/controls/Progress/Progress.d.ts +35 -0
- package/controls/Progress/Progress.js +49 -0
- package/controls/SecondaryButton/SecondaryButton.d.ts +58 -0
- package/controls/SecondaryButton/SecondaryButton.js +73 -0
- package/controls/SecondaryButton/index.d.ts +1 -0
- package/controls/SecondaryButton/index.js +1 -0
- package/controls/TabBar/Tab.d.ts +21 -0
- package/controls/TabBar/Tab.js +25 -0
- package/controls/TabBar/TabBar.d.ts +34 -0
- package/controls/TabBar/TabBar.js +134 -0
- package/controls/TabBar/Underliner.d.ts +7 -0
- package/controls/TabBar/Underliner.js +27 -0
- package/controls/TabBar/index.d.ts +1 -0
- package/controls/TabBar/index.js +1 -0
- package/controls/TertiaryButton/TertiaryButton.d.ts +28 -0
- package/controls/TertiaryButton/TertiaryButton.js +65 -0
- package/controls/TertiaryButton/index.d.ts +1 -0
- package/controls/TertiaryButton/index.js +1 -0
- package/controls/View/View.d.ts +35 -0
- package/controls/View/View.js +58 -0
- package/formatters/Date/DateTime.d.ts +45 -0
- package/formatters/Date/DateTime.js +64 -0
- package/formatters/Date/elements/Custom.d.ts +18 -0
- package/formatters/Date/elements/Custom.js +22 -0
- package/formatters/Date/elements/Distance.d.ts +24 -0
- package/formatters/Date/elements/Distance.js +45 -0
- package/formatters/Date/elements/LongDate.d.ts +17 -0
- package/formatters/Date/elements/LongDate.js +11 -0
- package/formatters/Date/elements/LongDateTime.d.ts +14 -0
- package/formatters/Date/elements/LongDateTime.js +10 -0
- package/formatters/Date/elements/LongTime.d.ts +14 -0
- package/formatters/Date/elements/LongTime.js +10 -0
- package/formatters/Date/elements/ShortDate.d.ts +14 -0
- package/formatters/Date/elements/ShortDate.js +10 -0
- package/formatters/Date/elements/ShortDateTime.d.ts +14 -0
- package/formatters/Date/elements/ShortDateTime.js +10 -0
- package/formatters/Date/elements/ShortTime.d.ts +18 -0
- package/formatters/Date/elements/ShortTime.js +10 -0
- package/formatters/Date/elements/toDate.d.ts +2 -0
- package/formatters/Date/elements/toDate.js +13 -0
- package/formatters/Filesize/Filesize.d.ts +29 -0
- package/formatters/Filesize/Filesize.js +54 -0
- package/formatters/GIS/Latitude.d.ts +23 -0
- package/formatters/GIS/Latitude.js +13 -0
- package/formatters/GIS/Longitude.d.ts +23 -0
- package/formatters/GIS/Longitude.js +13 -0
- package/formatters/GIS/index.d.ts +2 -0
- package/formatters/GIS/index.js +2 -0
- package/formatters/GIS/toDMS.d.ts +2 -0
- package/formatters/GIS/toDMS.js +16 -0
- package/formatters/Highlight/Highlight.d.ts +22 -0
- package/formatters/Highlight/Highlight.js +32 -0
- package/formatters/Highlight/index.d.ts +1 -0
- package/formatters/Highlight/index.js +1 -0
- package/formatters/Human/Human.d.ts +18 -0
- package/formatters/Human/Human.js +34 -0
- package/formatters/Human/index.d.ts +1 -0
- package/formatters/Human/index.js +1 -0
- package/formatters/Number/Number.d.ts +24 -0
- package/formatters/Number/Number.js +36 -0
- package/formatters/Number/index.d.ts +1 -0
- package/formatters/Number/index.js +1 -0
- package/helper/DMS.d.ts +22 -0
- package/helper/DMS.js +46 -0
- package/helper/HslColor.d.ts +11 -0
- package/helper/HslColor.js +47 -0
- package/helper/RgbColor.d.ts +43 -0
- package/helper/RgbColor.js +162 -0
- package/helper/SizeHelper.d.ts +10 -0
- package/helper/SizeHelper.js +56 -0
- package/helper/darken.d.ts +8 -0
- package/helper/darken.js +18 -0
- package/helper/guard.d.ts +5 -0
- package/helper/guard.js +7 -0
- package/helper/lighten.d.ts +8 -0
- package/helper/lighten.js +11 -0
- package/helper/nameToHex.d.ts +6 -0
- package/helper/nameToHex.js +163 -0
- package/inputs/DateInput/Body.d.ts +34 -0
- package/inputs/DateInput/Body.js +50 -0
- package/inputs/DateInput/Calendar.d.ts +15 -0
- package/inputs/DateInput/Calendar.js +60 -0
- package/inputs/DateInput/DateInput.d.ts +73 -0
- package/inputs/DateInput/DateInput.js +143 -0
- package/inputs/DateInput/Day.d.ts +32 -0
- package/inputs/DateInput/Day.js +33 -0
- package/inputs/DateInput/InfiniteList.d.ts +26 -0
- package/inputs/DateInput/InfiniteList.js +87 -0
- package/inputs/DateInput/Nav.d.ts +11 -0
- package/inputs/DateInput/Nav.js +24 -0
- package/inputs/DateInput/Navbar.d.ts +16 -0
- package/inputs/DateInput/Navbar.js +33 -0
- package/inputs/DateInput/NumericInput.d.ts +14 -0
- package/inputs/DateInput/NumericInput.js +48 -0
- package/inputs/DateInput/Selector.d.ts +47 -0
- package/inputs/DateInput/Selector.js +55 -0
- package/inputs/DateInput/SimpleList.d.ts +19 -0
- package/inputs/DateInput/SimpleList.js +31 -0
- package/inputs/Dropdown/Body.d.ts +25 -0
- package/inputs/Dropdown/Body.js +14 -0
- package/inputs/Dropdown/Column.d.ts +21 -0
- package/inputs/Dropdown/Column.js +6 -0
- package/inputs/Dropdown/Dropdown.d.ts +136 -0
- package/inputs/Dropdown/Dropdown.js +446 -0
- package/inputs/Dropdown/Selection.d.ts +11 -0
- package/inputs/Dropdown/Selection.js +23 -0
- package/inputs/Dropdown/Selector.d.ts +29 -0
- package/inputs/Dropdown/Selector.js +16 -0
- package/inputs/Editor/Editor.d.ts +45 -0
- package/inputs/Editor/Editor.js +60 -0
- package/inputs/Editor/buttons/BoldButton.d.ts +7 -0
- package/inputs/Editor/buttons/BoldButton.js +7 -0
- package/inputs/Editor/buttons/BulletListButton.d.ts +7 -0
- package/inputs/Editor/buttons/BulletListButton.js +7 -0
- package/inputs/Editor/buttons/CodeBlockButton.d.ts +7 -0
- package/inputs/Editor/buttons/CodeBlockButton.js +7 -0
- package/inputs/Editor/buttons/CodeButton.d.ts +7 -0
- package/inputs/Editor/buttons/CodeButton.js +7 -0
- package/inputs/Editor/buttons/ItalicButton.d.ts +7 -0
- package/inputs/Editor/buttons/ItalicButton.js +7 -0
- package/inputs/Editor/buttons/OrderedListButton.d.ts +7 -0
- package/inputs/Editor/buttons/OrderedListButton.js +7 -0
- package/inputs/Editor/buttons/StrikethroughButton.d.ts +7 -0
- package/inputs/Editor/buttons/StrikethroughButton.js +7 -0
- package/inputs/Editor/menu/MenuBar.d.ts +9 -0
- package/inputs/Editor/menu/MenuBar.js +44 -0
- package/inputs/Editor/menu/MenuButton.d.ts +35 -0
- package/inputs/Editor/menu/MenuButton.js +34 -0
- package/inputs/Editor/menu/MenuSeparator.d.ts +7 -0
- package/inputs/Editor/menu/MenuSeparator.js +24 -0
- package/inputs/Input/Clear.d.ts +7 -0
- package/inputs/Input/Clear.js +14 -0
- package/inputs/Input/Input.d.ts +133 -0
- package/inputs/Input/Input.js +64 -0
- package/inputs/Input/InputWrapper.d.ts +23 -0
- package/inputs/Input/InputWrapper.js +57 -0
- package/inputs/Input/index.d.ts +1 -0
- package/inputs/Input/index.js +1 -0
- package/inputs/Selector/ISelectorProps.d.ts +29 -0
- package/inputs/Selector/ISelectorProps.js +1 -0
- package/inputs/Selector/Selector.d.ts +29 -0
- package/inputs/Selector/Selector.js +77 -0
- package/inputs/Selector/index.d.ts +1 -0
- package/inputs/Selector/index.js +1 -0
- package/inputs/Selector/widgets/Checkbox.d.ts +6 -0
- package/inputs/Selector/widgets/Checkbox.js +29 -0
- package/inputs/Selector/widgets/Toggle.d.ts +6 -0
- package/inputs/Selector/widgets/Toggle.js +24 -0
- package/inputs/Slider/Slider.d.ts +63 -0
- package/inputs/Slider/Slider.js +198 -0
- package/inputs/Textarea/Textarea.d.ts +79 -0
- package/inputs/Textarea/Textarea.js +65 -0
- package/main.js +32 -0
- package/map/Map/Map.d.ts +47 -0
- package/map/Map/Map.js +221 -0
- package/map/Map/index.d.ts +1 -0
- package/map/Map/index.js +1 -0
- package/map/PositionsManager/PositionBox.d.ts +14 -0
- package/map/PositionsManager/PositionBox.js +86 -0
- package/map/PositionsManager/PositionsManager.d.ts +27 -0
- package/map/PositionsManager/PositionsManager.js +99 -0
- package/map/controls/CompassButton/CompassButton.d.ts +33 -0
- package/map/controls/CompassButton/CompassButton.js +88 -0
- package/map/controls/FullscreenButton/FullscreenButton.d.ts +21 -0
- package/map/controls/FullscreenButton/FullscreenButton.js +62 -0
- package/map/controls/Geocoder/Geocoder.d.ts +49 -0
- package/map/controls/Geocoder/Geocoder.js +179 -0
- package/map/controls/Geocoder/GeocoderApi.d.ts +59 -0
- package/map/controls/Geocoder/GeocoderApi.js +68 -0
- package/map/controls/Geocoder/GeocoderEntry.d.ts +15 -0
- package/map/controls/Geocoder/GeocoderEntry.js +18 -0
- package/map/controls/Geocoder/GeocoderList.d.ts +10 -0
- package/map/controls/Geocoder/GeocoderList.js +18 -0
- package/map/controls/Geocoder/GeocoderSelector.d.ts +16 -0
- package/map/controls/Geocoder/GeocoderSelector.js +25 -0
- package/map/controls/Graticule/Graticule.d.ts +35 -0
- package/map/controls/Graticule/Graticule.js +142 -0
- package/map/controls/MapLoader/MapLoader.d.ts +33 -0
- package/map/controls/MapLoader/MapLoader.js +73 -0
- package/map/controls/ScaleControl/ScaleControl.d.ts +24 -0
- package/map/controls/ScaleControl/ScaleControl.js +107 -0
- package/map/controls/ZoomInButton/ZoomInButton.d.ts +19 -0
- package/map/controls/ZoomInButton/ZoomInButton.js +56 -0
- package/map/controls/ZoomOutButton/ZoomOutButton.d.ts +19 -0
- package/map/controls/ZoomOutButton/ZoomOutButton.js +56 -0
- package/map/controls/base/MapButton/Hint.d.ts +17 -0
- package/map/controls/base/MapButton/Hint.js +34 -0
- package/map/controls/base/MapButton/MapButton.d.ts +46 -0
- package/map/controls/base/MapButton/MapButton.js +71 -0
- package/map/controls/base/MapButton/index.d.ts +1 -0
- package/map/controls/base/MapButton/index.js +1 -0
- package/map/controls/base/MapButtonGroup/MapButtonGroup.d.ts +17 -0
- package/map/controls/base/MapButtonGroup/MapButtonGroup.js +24 -0
- package/map/controls/base/MapControl/MapControl.d.ts +36 -0
- package/map/controls/base/MapControl/MapControl.js +77 -0
- package/map/controls/base/MapControl/index.d.ts +1 -0
- package/map/controls/base/MapControl/index.js +1 -0
- package/map/layers/ClusterLayer/ClusterLayer.d.ts +79 -0
- package/map/layers/ClusterLayer/ClusterLayer.js +118 -0
- package/map/layers/HtmlMarkerLayer/HtmlMarkerLayer.d.ts +51 -0
- package/map/layers/HtmlMarkerLayer/HtmlMarkerLayer.js +151 -0
- package/map/layers/InterpolationLayer/ContoursFragmentShader.d.ts +2 -0
- package/map/layers/InterpolationLayer/ContoursFragmentShader.js +2 -0
- package/map/layers/InterpolationLayer/ContoursVertexShader.d.ts +2 -0
- package/map/layers/InterpolationLayer/ContoursVertexShader.js +2 -0
- package/map/layers/InterpolationLayer/IGradientStop.d.ts +5 -0
- package/map/layers/InterpolationLayer/IGradientStop.js +1 -0
- package/map/layers/InterpolationLayer/InterpolationLayer.d.ts +35 -0
- package/map/layers/InterpolationLayer/InterpolationLayer.js +256 -0
- package/map/layers/InterpolationLayer/LevelsFragmentShader.d.ts +2 -0
- package/map/layers/InterpolationLayer/LevelsFragmentShader.js +2 -0
- package/map/layers/InterpolationLayer/LevelsVertexShader.d.ts +2 -0
- package/map/layers/InterpolationLayer/LevelsVertexShader.js +2 -0
- package/map/layers/ParticlesLayer/ParticlesFragmentShader.d.ts +2 -0
- package/map/layers/ParticlesLayer/ParticlesFragmentShader.js +2 -0
- package/map/layers/ParticlesLayer/ParticlesLayer.d.ts +40 -0
- package/map/layers/ParticlesLayer/ParticlesLayer.js +337 -0
- package/map/layers/ParticlesLayer/ParticlesVertexShader.d.ts +2 -0
- package/map/layers/ParticlesLayer/ParticlesVertexShader.js +2 -0
- package/map/layers/ParticlesLayer/UVFragmentShader.d.ts +2 -0
- package/map/layers/ParticlesLayer/UVFragmentShader.js +2 -0
- package/map/layers/ParticlesLayer/UVVertexShader.d.ts +2 -0
- package/map/layers/ParticlesLayer/UVVertexShader.js +2 -0
- package/map/markers/ClusterMarker/ClusterMarker.d.ts +36 -0
- package/map/markers/ClusterMarker/ClusterMarker.js +99 -0
- package/map/markers/ClusterMarker/index.d.ts +1 -0
- package/map/markers/ClusterMarker/index.js +1 -0
- package/map/markers/RiskMarker/RiskMarker.d.ts +22 -0
- package/map/markers/RiskMarker/RiskMarker.js +61 -0
- package/modules/MainMenu/Item.d.ts +42 -0
- package/modules/MainMenu/Item.js +94 -0
- package/modules/MainMenu/MainMenu.d.ts +20 -0
- package/modules/MainMenu/MainMenu.js +41 -0
- package/modules/MainMenu/index.d.ts +1 -0
- package/modules/MainMenu/index.js +1 -0
- package/modules/Root/Content.d.ts +16 -0
- package/modules/Root/Content.js +25 -0
- package/modules/Root/Overlay.d.ts +23 -0
- package/modules/Root/Overlay.js +33 -0
- package/modules/Root/Root.d.ts +7 -0
- package/modules/Root/Root.js +45 -0
- package/modules/Root/Shader.d.ts +15 -0
- package/modules/Root/Shader.js +24 -0
- package/modules/Root/Sidebar.d.ts +13 -0
- package/modules/Root/Sidebar.js +24 -0
- package/modules/Root/stories/SampleContent.d.ts +7 -0
- package/modules/Root/stories/SampleContent.js +44 -0
- package/package.json +64 -0
- package/services/Dialog/AlertDialog.d.ts +31 -0
- package/services/Dialog/AlertDialog.js +29 -0
- package/services/Dialog/ConfirmDialog.d.ts +34 -0
- package/services/Dialog/ConfirmDialog.js +30 -0
- package/services/Dialog/Dialog.d.ts +91 -0
- package/services/Dialog/Dialog.js +92 -0
- package/services/Dialog/DialogBackground.d.ts +7 -0
- package/services/Dialog/DialogBackground.js +12 -0
- package/services/Dialog/DialogContent.d.ts +25 -0
- package/services/Dialog/DialogContent.js +38 -0
- package/services/Dialog/DialogFooter.d.ts +24 -0
- package/services/Dialog/DialogFooter.js +50 -0
- package/services/Dialog/DialogHeader.d.ts +18 -0
- package/services/Dialog/DialogHeader.js +36 -0
- package/services/Dialog/DialogWindow.d.ts +13 -0
- package/services/Dialog/DialogWindow.js +12 -0
- package/services/Dialog/XhrDialog.d.ts +34 -0
- package/services/Dialog/XhrDialog.js +321 -0
- package/services/Toast/IToastMessage.d.ts +10 -0
- package/services/Toast/IToastMessage.js +1 -0
- package/services/Toast/IToastProps.d.ts +23 -0
- package/services/Toast/IToastProps.js +1 -0
- package/services/Toast/Toast.d.ts +21 -0
- package/services/Toast/Toast.js +79 -0
- package/services/Toast/ToastContainer.d.ts +40 -0
- package/services/Toast/ToastContainer.js +65 -0
- package/services/Toast/ToastContext.d.ts +22 -0
- package/services/Toast/ToastContext.js +7 -0
- package/services/Toast/ToastProvider.d.ts +19 -0
- package/services/Toast/ToastProvider.js +67 -0
- package/services/Toast/index.d.ts +2 -0
- package/services/Toast/index.js +2 -0
- package/services/Toast/useToast.d.ts +5 -0
- package/services/Toast/useToast.js +9 -0
- package/spritemap.svg +1 -0
- package/styles/NormalTheme.d.ts +3 -0
- package/styles/NormalTheme.js +65 -0
- package/styles/StyleBase.d.ts +2 -0
- package/styles/StyleBase.js +8 -0
- package/styles/StyleReset.d.ts +2 -0
- package/styles/StyleReset.js +8 -0
- package/svg/editor/index.d.ts +10 -0
- package/svg/editor/index.js +11 -0
- package/svg/file/index.d.ts +5 -0
- package/svg/file/index.js +6 -0
- package/svg/icons/index.d.ts +36 -0
- package/svg/icons/index.js +37 -0
- package/svg/index.d.ts +11 -0
- package/svg/index.js +5 -0
- package/svg/menu/index.d.ts +8 -0
- package/svg/menu/index.js +9 -0
|
@@ -0,0 +1,34 @@
|
|
|
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 };
|
|
@@ -0,0 +1,30 @@
|
|
|
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 };
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
/**
|
|
4
|
+
* Dialog content, consisting of `Dialog.Header`, `Dialog.Content` and
|
|
5
|
+
* `Dialog.Footer` components.
|
|
6
|
+
*/
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Is the Dialog currently open? Calling code must set this property
|
|
10
|
+
* to false in order to close a Dialog.
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
open?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Override standard dialog width of 600 pixels (large screens) or
|
|
16
|
+
* 400 pixels (small screens).
|
|
17
|
+
* @default 600
|
|
18
|
+
*/
|
|
19
|
+
width?: number;
|
|
20
|
+
/**
|
|
21
|
+
* If set to false, then the Dialog cannot be closed by clicking
|
|
22
|
+
* outside of it. This is helpful when a Dialog is executing an
|
|
23
|
+
* asynchronous task and must remain open while doing so.
|
|
24
|
+
* @default true
|
|
25
|
+
*/
|
|
26
|
+
canClose?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* This optional callback is called when the user closes the Dialog
|
|
29
|
+
* window.
|
|
30
|
+
* @default null
|
|
31
|
+
*/
|
|
32
|
+
onClose?: () => void;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A Dialog is an overlay window that is shown when the Dialog’s `open`
|
|
36
|
+
* attribute is set to `true`. The calling code is responsible for setting
|
|
37
|
+
* `open` to false when the Dialog should close. The Dialog also calls
|
|
38
|
+
* `onClose` when the user clicks outside the Dialog (`canClose` can be set
|
|
39
|
+
* to prevent this behavior).
|
|
40
|
+
*/
|
|
41
|
+
declare const Dialog: {
|
|
42
|
+
({ open, canClose, width, ...props }: IProps): React.JSX.Element;
|
|
43
|
+
/**
|
|
44
|
+
* Dialog.Header contains dialog header content.
|
|
45
|
+
*/
|
|
46
|
+
Header: {
|
|
47
|
+
(props: import("./DialogHeader").IProps): React.JSX.Element;
|
|
48
|
+
displayName: string;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Dialog.Content contains main dialog body content.
|
|
52
|
+
*/
|
|
53
|
+
Content: {
|
|
54
|
+
(props: import("./DialogContent").IProps): React.JSX.Element;
|
|
55
|
+
displayName: string;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Dialog.Footer contains dialog footer content.
|
|
59
|
+
*/
|
|
60
|
+
Footer: {
|
|
61
|
+
({ align, ...props }: import("./DialogFooter").IProps): React.JSX.Element;
|
|
62
|
+
displayName: string;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* The Dialog component offers a pre-built Dialog.Alert type, with an "OK" button.
|
|
66
|
+
* The caller provides a title, and any JSX inside the component is used as dialog content.
|
|
67
|
+
*/
|
|
68
|
+
Alert: {
|
|
69
|
+
({ open, title, ...props }: import("./AlertDialog").IAlertDialogProps): React.JSX.Element;
|
|
70
|
+
displayName: string;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* The Dialog component offers a pre-built Dialog.Confirm type, with a "Yes" and a "No"
|
|
74
|
+
* button. The caller provides a title, and any JSX inside the component is used as dialog
|
|
75
|
+
* content.
|
|
76
|
+
*/
|
|
77
|
+
Confirm: {
|
|
78
|
+
({ open, title, ...props }: import("./ConfirmDialog").IProps): React.JSX.Element;
|
|
79
|
+
displayName: string;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* The Dialog component offers a pre-built Dialog.Xhr type, with an "OK" and a "Retry"
|
|
83
|
+
* button. This dialog can be used when an XHR request fails. It takes an error attribute
|
|
84
|
+
* with an Axios response object, and reports it to the user.
|
|
85
|
+
*/
|
|
86
|
+
Xhr: {
|
|
87
|
+
({ open, ...props }: import("./XhrDialog").IXhrDialogProps): React.JSX.Element;
|
|
88
|
+
displayName: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
export { Dialog, IProps };
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
import { CSSTransition } from 'react-transition-group';
|
|
14
|
+
// Other controls
|
|
15
|
+
import { DialogBackground } from './DialogBackground';
|
|
16
|
+
import { DialogWindow } from './DialogWindow';
|
|
17
|
+
import { DialogHeader } from './DialogHeader';
|
|
18
|
+
import { DialogContent } from './DialogContent';
|
|
19
|
+
import { DialogFooter } from './DialogFooter';
|
|
20
|
+
import { AlertDialog } from './AlertDialog';
|
|
21
|
+
import { ConfirmDialog } from './ConfirmDialog';
|
|
22
|
+
import { XhrDialog } from './XhrDialog';
|
|
23
|
+
/**
|
|
24
|
+
* A Dialog is an overlay window that is shown when the Dialog’s `open`
|
|
25
|
+
* attribute is set to `true`. The calling code is responsible for setting
|
|
26
|
+
* `open` to false when the Dialog should close. The Dialog also calls
|
|
27
|
+
* `onClose` when the user clicks outside the Dialog (`canClose` can be set
|
|
28
|
+
* to prevent this behavior).
|
|
29
|
+
*/
|
|
30
|
+
var Dialog = function (_a) {
|
|
31
|
+
var _b = _a.open, open = _b === void 0 ? false : _b, _c = _a.canClose, canClose = _c === void 0 ? true : _c, _d = _a.width, width = _d === void 0 ? 600 : _d, props = __rest(_a, ["open", "canClose", "width"]);
|
|
32
|
+
var windowRef = React.useRef(null);
|
|
33
|
+
// Listen for document-wide mousedown event when component mounts.
|
|
34
|
+
React.useEffect(function () {
|
|
35
|
+
document.addEventListener('mousedown', handleClickOutside);
|
|
36
|
+
return function () {
|
|
37
|
+
// Clean up document-wide mousedown event when component unmounts.
|
|
38
|
+
document.removeEventListener('mousedown', handleClickOutside);
|
|
39
|
+
};
|
|
40
|
+
});
|
|
41
|
+
// Handle document-wide mousedown event by sending a dialog close event.
|
|
42
|
+
// When clicking outside of it, a Dialog can close only if its canClose
|
|
43
|
+
// prop is not set to false.
|
|
44
|
+
var handleClickOutside = function (event) {
|
|
45
|
+
var elem = event.target;
|
|
46
|
+
if (windowRef.current && !windowRef.current.contains(elem) && props.onClose && canClose !== false) {
|
|
47
|
+
props.onClose();
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
// CSS Transition mounts dialog when it is open. When it's closed,
|
|
51
|
+
// a Dialog does not appear in the DOM at all.
|
|
52
|
+
//
|
|
53
|
+
// For use of CSSTransition, see:
|
|
54
|
+
// http://reactcommunity.org/react-transition-group/css-transition
|
|
55
|
+
// and
|
|
56
|
+
// https://veerasundar.com/blog/2018/12/how-to-animate-page-transition-in-react-using-styled-components/
|
|
57
|
+
return (React.createElement(React.Fragment, null,
|
|
58
|
+
React.createElement(CSSTransition, { in: open, timeout: 300, unmountOnExit: true, classNames: "fade" },
|
|
59
|
+
React.createElement(DialogBackground, null)),
|
|
60
|
+
React.createElement(CSSTransition, { in: open, timeout: 300, unmountOnExit: true, classNames: "fade" },
|
|
61
|
+
React.createElement(DialogWindow, { width: width, ref: windowRef }, props.children))));
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Dialog.Header contains dialog header content.
|
|
65
|
+
*/
|
|
66
|
+
Dialog.Header = DialogHeader;
|
|
67
|
+
/**
|
|
68
|
+
* Dialog.Content contains main dialog body content.
|
|
69
|
+
*/
|
|
70
|
+
Dialog.Content = DialogContent;
|
|
71
|
+
/**
|
|
72
|
+
* Dialog.Footer contains dialog footer content.
|
|
73
|
+
*/
|
|
74
|
+
Dialog.Footer = DialogFooter;
|
|
75
|
+
/**
|
|
76
|
+
* The Dialog component offers a pre-built Dialog.Alert type, with an "OK" button.
|
|
77
|
+
* The caller provides a title, and any JSX inside the component is used as dialog content.
|
|
78
|
+
*/
|
|
79
|
+
Dialog.Alert = AlertDialog;
|
|
80
|
+
/**
|
|
81
|
+
* The Dialog component offers a pre-built Dialog.Confirm type, with a "Yes" and a "No"
|
|
82
|
+
* button. The caller provides a title, and any JSX inside the component is used as dialog
|
|
83
|
+
* content.
|
|
84
|
+
*/
|
|
85
|
+
Dialog.Confirm = ConfirmDialog;
|
|
86
|
+
/**
|
|
87
|
+
* The Dialog component offers a pre-built Dialog.Xhr type, with an "OK" and a "Retry"
|
|
88
|
+
* button. This dialog can be used when an XHR request fails. It takes an error attribute
|
|
89
|
+
* with an Axios response object, and reports it to the user.
|
|
90
|
+
*/
|
|
91
|
+
Dialog.Xhr = XhrDialog;
|
|
92
|
+
export { Dialog };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
/** @ignore */
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const DialogBackground: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<IProps, never>> & string & Omit<(props: IProps) => React.JSX.Element, keyof React.Component<any, {}, any>>;
|
|
7
|
+
export { DialogBackground };
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
import * as React from 'react';
|
|
6
|
+
import styled from 'styled-components';
|
|
7
|
+
var DialogBackgroundBase = function (props) {
|
|
8
|
+
return React.createElement("div", { className: props.className });
|
|
9
|
+
};
|
|
10
|
+
var DialogBackground = styled(DialogBackgroundBase)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: fixed;\n z-index: 2000;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n background-color: #000;\n opacity: 0.5;\n\n /* CSSTransition classes */\n &.fade-enter {\n opacity: 0;\n }\n &.fade-enter-active {\n opacity: 0.5;\n transition: opacity 0.3s ease;\n }\n &.fade-exit {\n opacity: 0.5;\n }\n &.fade-exit-active {\n opacity: 0;\n transition: opacity 0.3s ease;\n } \n"], ["\n position: fixed;\n z-index: 2000;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n background-color: #000;\n opacity: 0.5;\n\n /* CSSTransition classes */\n &.fade-enter {\n opacity: 0;\n }\n &.fade-enter-active {\n opacity: 0.5;\n transition: opacity 0.3s ease;\n }\n &.fade-exit {\n opacity: 0.5;\n }\n &.fade-exit-active {\n opacity: 0;\n transition: opacity 0.3s ease;\n } \n"])));
|
|
11
|
+
export { DialogBackground };
|
|
12
|
+
var templateObject_1;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
/** @ignore */
|
|
4
|
+
className?: string;
|
|
5
|
+
/**
|
|
6
|
+
* Dialog content.
|
|
7
|
+
*/
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Maximum height in _percentage_ of screen height before a scrollbar is
|
|
11
|
+
* added. Defaults to 70.
|
|
12
|
+
* @default 70
|
|
13
|
+
*/
|
|
14
|
+
maxHeight?: number;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* `Dialog.Content` is a content block for a `Dialog` component. The content
|
|
18
|
+
* will auto-scroll when it is taller than 70% of the viewport. This percentage
|
|
19
|
+
* can be adjusted with the `maxHeight` prop.
|
|
20
|
+
*/
|
|
21
|
+
declare const DialogContent: {
|
|
22
|
+
(props: IProps): React.JSX.Element;
|
|
23
|
+
displayName: string;
|
|
24
|
+
};
|
|
25
|
+
export { DialogContent, IProps };
|
|
@@ -0,0 +1,38 @@
|
|
|
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 DialogContentBase = function (props) {
|
|
19
|
+
return React.createElement("div", { className: props.className }, props.children);
|
|
20
|
+
};
|
|
21
|
+
var DialogContentStyled = styled(DialogContentBase)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n padding: 0 20px 24px 20px;\n max-height: ", "vh;\n overflow-y: auto; \n"], ["\n position: relative;\n padding: 0 20px 24px 20px;\n max-height: ", "vh;\n overflow-y: auto; \n"
|
|
22
|
+
/**
|
|
23
|
+
* `Dialog.Content` is a content block for a `Dialog` component. The content
|
|
24
|
+
* will auto-scroll when it is taller than 70% of the viewport. This percentage
|
|
25
|
+
* can be adjusted with the `maxHeight` prop.
|
|
26
|
+
*/
|
|
27
|
+
])), function (p) { var _a; return (_a = p.maxHeight) !== null && _a !== void 0 ? _a : 70; });
|
|
28
|
+
/**
|
|
29
|
+
* `Dialog.Content` is a content block for a `Dialog` component. The content
|
|
30
|
+
* will auto-scroll when it is taller than 70% of the viewport. This percentage
|
|
31
|
+
* can be adjusted with the `maxHeight` prop.
|
|
32
|
+
*/
|
|
33
|
+
var DialogContent = function (props) {
|
|
34
|
+
return React.createElement(DialogContentStyled, __assign({}, props));
|
|
35
|
+
};
|
|
36
|
+
DialogContent.displayName = "Dialog.Content";
|
|
37
|
+
export { DialogContent };
|
|
38
|
+
var templateObject_1;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
/** @ignore */
|
|
4
|
+
className?: string;
|
|
5
|
+
/**
|
|
6
|
+
* Footer content.
|
|
7
|
+
*/
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Optional alignment of items in the Dialog footer. Defaults to `end`.
|
|
11
|
+
* @default end
|
|
12
|
+
*/
|
|
13
|
+
align?: 'start' | 'end' | 'space-between';
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A `Dialog.Footer` is the footer of a `Dialog` component. It is intended
|
|
17
|
+
* to contain button controls. These are displayed using a flex container,
|
|
18
|
+
* where the `align` prop may be used to align them left, right or center.
|
|
19
|
+
*/
|
|
20
|
+
declare const DialogFooter: {
|
|
21
|
+
({ align, ...props }: IProps): React.JSX.Element;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
export { DialogFooter, IProps };
|
|
@@ -0,0 +1,50 @@
|
|
|
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 from 'styled-components';
|
|
29
|
+
var DialogFooterBase = function (props) {
|
|
30
|
+
return React.createElement("div", { className: props.className }, props.children);
|
|
31
|
+
};
|
|
32
|
+
var DialogFooterStyled = styled(DialogFooterBase)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 16px;\n justify-content: ", ";\n padding: 0 20px 0 20px;\n height: 80px;\n background-color: ", ";\n border-bottom-left-radius: ", "px;\n border-bottom-right-radius: ", "px;\n"], ["\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 16px;\n justify-content: ", ";\n padding: 0 20px 0 20px;\n height: 80px;\n background-color: ", ";\n border-bottom-left-radius: ", "px;\n border-bottom-right-radius: ", "px;\n"
|
|
33
|
+
/**
|
|
34
|
+
* A `Dialog.Footer` is the footer of a `Dialog` component. It is intended
|
|
35
|
+
* to contain button controls. These are displayed using a flex container,
|
|
36
|
+
* where the `align` prop may be used to align them left, right or center.
|
|
37
|
+
*/
|
|
38
|
+
])), function (p) { return p.align; }, function (p) { return p.theme.colors.neutral[95]; }, function (p) { return p.theme.radius.normal; }, function (p) { return p.theme.radius.normal; });
|
|
39
|
+
/**
|
|
40
|
+
* A `Dialog.Footer` is the footer of a `Dialog` component. It is intended
|
|
41
|
+
* to contain button controls. These are displayed using a flex container,
|
|
42
|
+
* where the `align` prop may be used to align them left, right or center.
|
|
43
|
+
*/
|
|
44
|
+
var DialogFooter = function (_a) {
|
|
45
|
+
var _b = _a.align, align = _b === void 0 ? 'end' : _b, props = __rest(_a, ["align"]);
|
|
46
|
+
return React.createElement(DialogFooterStyled, __assign({ align: align }, props));
|
|
47
|
+
};
|
|
48
|
+
DialogFooter.displayName = "Dialog.Footer";
|
|
49
|
+
export { DialogFooter };
|
|
50
|
+
var templateObject_1;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
/** @ignore */
|
|
4
|
+
className?: string;
|
|
5
|
+
/**
|
|
6
|
+
* Header content.
|
|
7
|
+
*/
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A `Dialog.Header` is the header of a `Dialog` component. It can contain
|
|
12
|
+
* any JSX.
|
|
13
|
+
*/
|
|
14
|
+
declare const DialogHeader: {
|
|
15
|
+
(props: IProps): React.JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
export { DialogHeader, IProps };
|
|
@@ -0,0 +1,36 @@
|
|
|
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 DialogHeaderBase = function (props) {
|
|
19
|
+
return React.createElement("div", { className: props.className }, props.children);
|
|
20
|
+
};
|
|
21
|
+
var DialogHeaderStyled = styled(DialogHeaderBase)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 24px 20px 24px 20px;\n font: ", ";\n"], ["\n padding: 24px 20px 24px 20px;\n font: ", ";\n"
|
|
22
|
+
/**
|
|
23
|
+
* A `Dialog.Header` is the header of a `Dialog` component. It can contain
|
|
24
|
+
* any JSX.
|
|
25
|
+
*/
|
|
26
|
+
])), function (p) { return p.theme.font.headingMedium; });
|
|
27
|
+
/**
|
|
28
|
+
* A `Dialog.Header` is the header of a `Dialog` component. It can contain
|
|
29
|
+
* any JSX.
|
|
30
|
+
*/
|
|
31
|
+
var DialogHeader = function (props) {
|
|
32
|
+
return React.createElement(DialogHeaderStyled, __assign({}, props));
|
|
33
|
+
};
|
|
34
|
+
DialogHeader.displayName = "Dialog.Header";
|
|
35
|
+
export { DialogHeader };
|
|
36
|
+
var templateObject_1;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
/** @ignore */
|
|
4
|
+
className?: string;
|
|
5
|
+
/** @ignore */
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
windowRef?: any;
|
|
8
|
+
width?: number;
|
|
9
|
+
}
|
|
10
|
+
declare const DialogWindow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<IProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
11
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
12
|
+
}, never>> & string & Omit<React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLDivElement>>, keyof React.Component<any, {}, any>>;
|
|
13
|
+
export { DialogWindow };
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
import * as React from 'react';
|
|
6
|
+
import styled from 'styled-components';
|
|
7
|
+
var DialogWindowBase = React.forwardRef(function (props, ref) {
|
|
8
|
+
return React.createElement("div", { className: props.className, ref: ref }, props.children);
|
|
9
|
+
});
|
|
10
|
+
var DialogWindow = styled(DialogWindowBase)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: fixed;\n z-index: 3000;\n left: 50%;\n top: 50%;\n transform-origin: center center;\n transform: translateX(-50%) translateY(-50%);\n border-radius: ", "px;\n background-color: ", ";\n box-shadow: 0px 0px 10px 1px rgba(0,0,0,0.5);\n\n // Font:\n font: ", ";\n color: ", "; \n\n /* Dialog window width:\n * Narrower on small screen. */\n width: ", "px;\n @media (max-width: ", "px) {\n width: ", "px;\n }\n\n /* CSSTransition classes: */\n &.fade-enter {\n opacity: 0;\n transform: translateX(-50%) translateY(-50%) scale(0.8);\n }\n &.fade-enter-active {\n opacity: 1;\n transform: translateX(-50%) translateY(-50%);\n transition: opacity 0.3s ease, transform 0.3s cubic-bezier(.17,.89,.35,1.67);\n }\n &.fade-exit {\n opacity: 1;\n }\n &.fade-exit-active {\n opacity: 0;\n transform: translateX(-50%) translateY(-50%) scale(0.8);\n transition: opacity 0.3s ease, transform 0.3s ease;\n }\n"], ["\n position: fixed;\n z-index: 3000;\n left: 50%;\n top: 50%;\n transform-origin: center center;\n transform: translateX(-50%) translateY(-50%);\n border-radius: ", "px;\n background-color: ", ";\n box-shadow: 0px 0px 10px 1px rgba(0,0,0,0.5);\n\n // Font:\n font: ", ";\n color: ", "; \n\n /* Dialog window width:\n * Narrower on small screen. */\n width: ", "px;\n @media (max-width: ", "px) {\n width: ", "px;\n }\n\n /* CSSTransition classes: */\n &.fade-enter {\n opacity: 0;\n transform: translateX(-50%) translateY(-50%) scale(0.8);\n }\n &.fade-enter-active {\n opacity: 1;\n transform: translateX(-50%) translateY(-50%);\n transition: opacity 0.3s ease, transform 0.3s cubic-bezier(.17,.89,.35,1.67);\n }\n &.fade-exit {\n opacity: 1;\n }\n &.fade-exit-active {\n opacity: 0;\n transform: translateX(-50%) translateY(-50%) scale(0.8);\n transition: opacity 0.3s ease, transform 0.3s ease;\n }\n"])), function (p) { return p.theme.radius.normal; }, function (p) { return p.theme.colors.neutral[100]; }, function (p) { return p.theme.font.bodyLarge; }, function (p) { return p.theme.colors.neutral[10]; }, function (p) { return p.width ? p.width : 600; }, function (p) { return p.theme.screen.small; }, function (p) { return p.width ? (p.width > 400 ? 400 : p.width) : 400; });
|
|
11
|
+
export { DialogWindow };
|
|
12
|
+
var templateObject_1;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface IXhrDialogProps {
|
|
3
|
+
/**
|
|
4
|
+
* Is the Dialog currently open?
|
|
5
|
+
* @default false
|
|
6
|
+
*/
|
|
7
|
+
open?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Axios error object.
|
|
10
|
+
*/
|
|
11
|
+
error: any;
|
|
12
|
+
/**
|
|
13
|
+
* Function to call when user selects the 'OK' option. This function will
|
|
14
|
+
* be responsible for setting `open` to false in order to close the Dialog.
|
|
15
|
+
*/
|
|
16
|
+
onClose: () => void;
|
|
17
|
+
/**
|
|
18
|
+
* Function to call when user selects the 'Retry' option. If not provided,
|
|
19
|
+
* retry option will not be available. This function will be responsible
|
|
20
|
+
* for setting `open` to false in order to close the Dialog.
|
|
21
|
+
*/
|
|
22
|
+
onRetry?: () => void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* A `Dialog.Xhr` is a preset dialog that takes an `error` object from an
|
|
26
|
+
* Axios request. It then displays a human-readable version of this error.
|
|
27
|
+
* An "OK" button is present that calls `onClose`, and, if `onRetry` is set,
|
|
28
|
+
* a "Retry" button.
|
|
29
|
+
*/
|
|
30
|
+
declare const XhrDialog: {
|
|
31
|
+
({ open, ...props }: IXhrDialogProps): React.JSX.Element;
|
|
32
|
+
displayName: string;
|
|
33
|
+
};
|
|
34
|
+
export { XhrDialog, IXhrDialogProps };
|