@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,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
/** @ignore */
|
|
4
|
+
className?: string;
|
|
5
|
+
/** @ignore */
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Add padding to content?
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
11
|
+
padded?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Minimum box height (in pixels).
|
|
14
|
+
* @default 0
|
|
15
|
+
*/
|
|
16
|
+
minHeight?: number;
|
|
17
|
+
header?: React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* InfoBox.Content fills up all vertical space it can get.
|
|
21
|
+
*/
|
|
22
|
+
declare const Content: (props: IProps) => React.JSX.Element;
|
|
23
|
+
export { Content, IProps };
|
|
@@ -0,0 +1,37 @@
|
|
|
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, { css } from "styled-components";
|
|
18
|
+
import { GlassPane } from '../../GlassPane';
|
|
19
|
+
import { Header } from './Header';
|
|
20
|
+
var ContentBase = function (props) {
|
|
21
|
+
return React.createElement("div", { className: props.className },
|
|
22
|
+
React.createElement(GlassPane, { bordered: true },
|
|
23
|
+
props.header && React.createElement(Header, null, props.header),
|
|
24
|
+
React.createElement(PaneContent, null, props.children)));
|
|
25
|
+
};
|
|
26
|
+
var PaneContent = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-sizing: border-box;\n"], ["\n box-sizing: border-box;\n"])));
|
|
27
|
+
var ContentStyled = styled(ContentBase)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n // Size:\n position: relative;\n box-sizing: border-box;\n min-height: ", ";\n flex: 1;\n ", "\n\n // Content:\n display: flex;\n\n // Appearance:\n color: ", ";\n font: ", ";\n\n // Behavior:\n pointer-events: all; // undo InfoBox's events blocking.\n"], ["\n // Size:\n position: relative;\n box-sizing: border-box;\n min-height: ", ";\n flex: 1;\n ", "\n\n // Content:\n display: flex;\n\n // Appearance:\n color: ", ";\n font: ", ";\n\n // Behavior:\n pointer-events: all; // undo InfoBox's events blocking.\n"
|
|
28
|
+
/**
|
|
29
|
+
* InfoBox.Content fills up all vertical space it can get.
|
|
30
|
+
*/
|
|
31
|
+
])), function (p) { return p.minHeight ? "".concat(p.minHeight, "px") : 'none'; }, function (p) { return p.padded && css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", " {\n padding: 10px 22px 10px 22px;\n }\n "], ["\n ", " {\n padding: 10px 22px 10px 22px;\n }\n "])), PaneContent); }, function (p) { return p.theme.colors.neutral[100]; }, function (p) { return p.theme.font.bodyMedium; });
|
|
32
|
+
/**
|
|
33
|
+
* InfoBox.Content fills up all vertical space it can get.
|
|
34
|
+
*/
|
|
35
|
+
var Content = function (props) { return React.createElement(ContentStyled, __assign({}, props)); };
|
|
36
|
+
export { Content };
|
|
37
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -0,0 +1,24 @@
|
|
|
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 FooterBase = function (props) {
|
|
19
|
+
return React.createElement("div", { className: props.className }, props.children);
|
|
20
|
+
};
|
|
21
|
+
var FooterStyled = styled(FooterBase)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n // Position and size:\n position: relative;\n width: 100%;\n padding-top: 8px;\n padding-left: 16px;\n padding-right: 16px;\n box-sizing: border-box;\n \n // Appearance;\n color: ", ";\n font: ", ";\n\n // Content:\n display: flex;\n flex-direction: row;\n justify-content: center;\n gap: 16px;\n\n // While InfoBox blocks all pointer events, contents inside\n // the footer must receive events:\n & > * {\n pointer-events: all;\n }\n"], ["\n // Position and size:\n position: relative;\n width: 100%;\n padding-top: 8px;\n padding-left: 16px;\n padding-right: 16px;\n box-sizing: border-box;\n \n // Appearance;\n color: ", ";\n font: ", ";\n\n // Content:\n display: flex;\n flex-direction: row;\n justify-content: center;\n gap: 16px;\n\n // While InfoBox blocks all pointer events, contents inside\n // the footer must receive events:\n & > * {\n pointer-events: all;\n }\n"])), function (p) { return p.theme.colors.neutral[100]; }, function (p) { return p.theme.font.bodyMedium; });
|
|
22
|
+
var Footer = function (props) { return React.createElement(FooterStyled, __assign({}, props)); };
|
|
23
|
+
export { Footer };
|
|
24
|
+
var templateObject_1;
|
|
@@ -0,0 +1,24 @@
|
|
|
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 HeaderBase = function (props) {
|
|
19
|
+
return React.createElement("div", { className: props.className }, props.children);
|
|
20
|
+
};
|
|
21
|
+
var HeaderStyled = styled(HeaderBase)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n // Size:\n box-sizing: border-box;\n padding-left: 22px;\n padding-right: 22px;\n padding-top: 12px;\n padding-bottom: 12px;\n\n // Appearance:\n background: rgb(from #1E242A r g b / 80%);\n color: ", ";\n font: ", ";\n \n // Content:\n display: flex;\n flex-direction: column;\n gap: 3px;\n"], ["\n // Size:\n box-sizing: border-box;\n padding-left: 22px;\n padding-right: 22px;\n padding-top: 12px;\n padding-bottom: 12px;\n\n // Appearance:\n background: rgb(from #1E242A r g b / 80%);\n color: ", ";\n font: ", ";\n \n // Content:\n display: flex;\n flex-direction: column;\n gap: 3px;\n"])), function (p) { return p.theme.colors.neutral[100]; }, function (p) { return p.theme.font.headingMedium; });
|
|
22
|
+
var Header = function (props) { return React.createElement(HeaderStyled, __assign({}, props)); };
|
|
23
|
+
export { Header };
|
|
24
|
+
var templateObject_1;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
/** @ignore */
|
|
4
|
+
className?: string;
|
|
5
|
+
/** @ignore */
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Max items to show in list before it scrolls.
|
|
9
|
+
*/
|
|
10
|
+
maxItems?: number;
|
|
11
|
+
/**
|
|
12
|
+
* If set, contracts the list if there are fewer than `maxItems` items.
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
contract?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Search callback (optional)
|
|
18
|
+
*/
|
|
19
|
+
onSearch?: (q: string) => void;
|
|
20
|
+
/**
|
|
21
|
+
* Current search value (optional).
|
|
22
|
+
*/
|
|
23
|
+
search?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Optional search placeholder.
|
|
26
|
+
*/
|
|
27
|
+
placeholder?: string;
|
|
28
|
+
/**
|
|
29
|
+
* If set, list items are extra tall.
|
|
30
|
+
*/
|
|
31
|
+
tall?: boolean;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* A List presents a series of `ListRow` elements, each containing `ListCell`
|
|
35
|
+
* elements to form columns. It is the expanded part of a `Dropdown` but can
|
|
36
|
+
* also be used on its own.
|
|
37
|
+
*
|
|
38
|
+
* It isn't necessary to use `ListCell`; it is only relevant if columns are
|
|
39
|
+
* desired.
|
|
40
|
+
*
|
|
41
|
+
* A list takes a forward `ref` which will point to the list of rows, so that
|
|
42
|
+
* other code, using the ref, can scroll list items into view.
|
|
43
|
+
*/
|
|
44
|
+
declare const List: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLDivElement>>;
|
|
45
|
+
export { List, IProps };
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
import { SVG } from '../../svg';
|
|
8
|
+
import { Input } from '../../inputs/Input';
|
|
9
|
+
/**
|
|
10
|
+
* A List presents a series of `ListRow` elements, each containing `ListCell`
|
|
11
|
+
* elements to form columns. It is the expanded part of a `Dropdown` but can
|
|
12
|
+
* also be used on its own.
|
|
13
|
+
*
|
|
14
|
+
* It isn't necessary to use `ListCell`; it is only relevant if columns are
|
|
15
|
+
* desired.
|
|
16
|
+
*
|
|
17
|
+
* A list takes a forward `ref` which will point to the list of rows, so that
|
|
18
|
+
* other code, using the ref, can scroll list items into view.
|
|
19
|
+
*/
|
|
20
|
+
var List = React.forwardRef(function (props, ref) {
|
|
21
|
+
return React.createElement(ListStyled, { className: props.className, tabIndex: -1, "$count": React.Children.count(props.children), "$maxItems": props.maxItems, "$contract": props.contract, "$tall": props.tall },
|
|
22
|
+
props.onSearch &&
|
|
23
|
+
React.createElement(SearchBox, { onClick: function (e) { return e.stopPropagation(); } },
|
|
24
|
+
React.createElement(Input, { noTabIndex: true, icon: SVG.Icons.Search, placeholder: props.placeholder, clearable: true, value: props.search, transparent: true, fluid: true, type: "text", onChange: props.onSearch })),
|
|
25
|
+
React.createElement(Inner, { ref: ref, tabIndex: -1 }, props.children));
|
|
26
|
+
});
|
|
27
|
+
var Inner = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n"], ["\n"
|
|
28
|
+
/**
|
|
29
|
+
* A search input is contained within a SearchBox to give it the same
|
|
30
|
+
* height as other list items. This is important for opening/closing
|
|
31
|
+
* the list to the correct height.
|
|
32
|
+
*/
|
|
33
|
+
])));
|
|
34
|
+
/**
|
|
35
|
+
* A search input is contained within a SearchBox to give it the same
|
|
36
|
+
* height as other list items. This is important for opening/closing
|
|
37
|
+
* the list to the correct height.
|
|
38
|
+
*/
|
|
39
|
+
var SearchBox = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n box-sizing: border-box;\n padding-left: 4px;\n padding-right: 4px;\n display: flex;\n align-items: center;\n border-bottom: solid 1px ", ";\n & input {\n font: ", ";\n }\n"], ["\n box-sizing: border-box;\n padding-left: 4px;\n padding-right: 4px;\n display: flex;\n align-items: center;\n border-bottom: solid 1px ", ";\n & input {\n font: ", ";\n }\n"])), function (p) { return p.theme.colors.neutral[80]; }, function (p) { return p.theme.font.bodyMedium; });
|
|
40
|
+
var ListStyled = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: 100%;\n background-color: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n overflow: hidden;\n font: ", ";\n\n ", " {\n height: ", ";\n overflow-y: auto;\n }\n\n ", " {\n height: ", "px;\n }\n\n ", " > div {\n height: ", "px;\n }\n"], ["\n width: 100%;\n background-color: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n overflow: hidden;\n font: ", ";\n\n ", " {\n height: ", ";\n overflow-y: auto;\n }\n\n ", " {\n height: ", "px;\n }\n\n ", " > div {\n height: ", "px;\n }\n"])), function (p) { return p.theme.colors.neutral[100]; }, function (p) { return p.theme.radius.normal; }, function (p) { return p.theme.shadows.medium; }, function (p) { return p.theme.font.bodyMedium; }, Inner, function (p) { return p.$maxItems
|
|
41
|
+
? ((p.$contract
|
|
42
|
+
? Math.min(p.$count, p.$maxItems)
|
|
43
|
+
: p.$maxItems)
|
|
44
|
+
* (p.$tall ? 56 : 42)) + "px"
|
|
45
|
+
: "100%"; }, SearchBox, function (p) { return p.$tall ? 56 : 42; }, Inner, function (p) { return p.$tall ? 56 : 42; });
|
|
46
|
+
export { List };
|
|
47
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -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
|
+
/** Column width. Defaults to 1. */
|
|
8
|
+
width?: number | string;
|
|
9
|
+
/** Text alignment. Defaults to 'left'. */
|
|
10
|
+
align?: 'left' | 'right';
|
|
11
|
+
}
|
|
12
|
+
declare const ListCell: (props: IProps) => React.JSX.Element;
|
|
13
|
+
export { ListCell };
|
|
@@ -0,0 +1,24 @@
|
|
|
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, { css } from 'styled-components';
|
|
18
|
+
var ListCellBase = function (props) {
|
|
19
|
+
return React.createElement("div", { className: props.className }, props.children);
|
|
20
|
+
};
|
|
21
|
+
var ListCellStyled = styled(ListCellBase)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", ";\n ", ";\n ", "\n\n // Content alignment:\n text-align: ", ";\n\n // Text is truncated with an ellipsis\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"], ["\n ", ";\n ", ";\n ", "\n\n // Content alignment:\n text-align: ", ";\n\n // Text is truncated with an ellipsis\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (p) { return p.width && typeof p.width === 'string' && css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["width: ", ""], ["width: ", ""])), p.width); }, function (p) { return p.width && typeof p.width !== 'string' && css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["flex: ", ""], ["flex: ", ""])), p.width); }, function (p) { return !p.width && css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["flex: 1;"], ["flex: 1;"]))); }, function (p) { return p.align === 'right' ? 'right' : 'left'; });
|
|
22
|
+
var ListCell = function (props) { return React.createElement(ListCellStyled, __assign({}, props)); };
|
|
23
|
+
export { ListCell };
|
|
24
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
/** @ignore */
|
|
4
|
+
className?: string;
|
|
5
|
+
/** @ignore */
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
/** Gap between columns. */
|
|
8
|
+
gap?: number;
|
|
9
|
+
/** An `active` row will be highlighted. */
|
|
10
|
+
active?: boolean;
|
|
11
|
+
/** Triggered when row is clicked. */
|
|
12
|
+
onClick?: () => void;
|
|
13
|
+
}
|
|
14
|
+
declare const ListRow: (props: IProps) => React.JSX.Element;
|
|
15
|
+
export { ListRow };
|
|
@@ -0,0 +1,24 @@
|
|
|
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, { css } from 'styled-components';
|
|
18
|
+
var ListRowBase = function (props) {
|
|
19
|
+
return (React.createElement("div", { className: props.className, onClick: props.onClick }, props.children));
|
|
20
|
+
};
|
|
21
|
+
var ListRowStyled = styled(ListRowBase)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding-left: 16px;\n padding-right: 16px;\n min-height: 42px;\n user-select: none;\n outline: none;\n color: ", ";\n\n // Entire row is clickable:\n cursor: ", ";\n\n // Cells are flex-aligned:\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n align-items: center;\n gap: ", "px;\n\n // Background color on hover:\n &:hover {\n background-color: ", ";\n }\n\n // Background color on pressed:\n ", "\n\n ", "\n"], ["\n padding-left: 16px;\n padding-right: 16px;\n min-height: 42px;\n user-select: none;\n outline: none;\n color: ", ";\n\n // Entire row is clickable:\n cursor: ", ";\n\n // Cells are flex-aligned:\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n align-items: center;\n gap: ", "px;\n\n // Background color on hover:\n &:hover {\n background-color: ", ";\n }\n\n // Background color on pressed:\n ", "\n\n ", "\n"])), function (p) { return p.theme.colors.neutral[30]; }, function (p) { return p.onClick ? 'pointer' : 'auto'; }, function (p) { return p.gap; }, function (p) { return p.theme.colors.neutral[95]; }, function (p) { return p.onClick && css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n &:active {\n background-color: rgb(from ", " r g b / 65%) !important;\n color: ", ";\n }\n "], ["\n &:active {\n background-color: rgb(from ", " r g b / 65%) !important;\n color: ", ";\n }\n "])), function (p) { return p.theme.colors.primary[2]; }, function (p) { return p.theme.colors.neutral[100]; }); }, function (p) { return p.active && css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: rgb(from ", " r g b / 45%) !important;\n color: ", ";\n "], ["\n background-color: rgb(from ", " r g b / 45%) !important;\n color: ", ";\n "])), function (p) { return p.theme.colors.primary[2]; }, function (p) { return p.theme.colors.neutral[100]; }); });
|
|
22
|
+
var ListRow = function (props) { return React.createElement(ListRowStyled, __assign({}, props)); };
|
|
23
|
+
export { ListRow };
|
|
24
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
/** @ignore */
|
|
4
|
+
className?: string;
|
|
5
|
+
/** @ignore */
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Tab label. Can be JSX.
|
|
9
|
+
*/
|
|
10
|
+
label: React.ReactNode;
|
|
11
|
+
/** @ignore */
|
|
12
|
+
active?: boolean;
|
|
13
|
+
/** @ignore */
|
|
14
|
+
nohiddenrender?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Optional top padding, in pixels.
|
|
17
|
+
* @default 0
|
|
18
|
+
*/
|
|
19
|
+
padding?: number;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Label and ontent for a single tab pane. The `label` can be JSX.
|
|
23
|
+
*
|
|
24
|
+
* By default, a pane adds no padding around its content in order to
|
|
25
|
+
* accommodate maps or images that must be rendered right against the tab bar
|
|
26
|
+
* itself. The `padding` prop can be used to add some top padding.
|
|
27
|
+
*/
|
|
28
|
+
declare const Pane: (props: IProps) => React.JSX.Element;
|
|
29
|
+
export { Pane, IProps };
|
|
@@ -0,0 +1,45 @@
|
|
|
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 PaneBase = function (props) {
|
|
19
|
+
var shouldRender = function () {
|
|
20
|
+
return !props.nohiddenrender || props.active;
|
|
21
|
+
};
|
|
22
|
+
// By default, all children are rendered (but hidden when
|
|
23
|
+
// not active). With nohiddenrender enabled, only the active
|
|
24
|
+
// tab is rendered.
|
|
25
|
+
return (React.createElement("div", { className: props.className }, shouldRender() ? props.children : null));
|
|
26
|
+
};
|
|
27
|
+
var PaneStyled = styled(PaneBase)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n display: flex;\n flex-direction: column;\n display: ", ";\n height: 100%;\n padding-top: ", "px;\n font: ", ";\n"], ["\n position: relative;\n display: flex;\n flex-direction: column;\n display: ", ";\n height: 100%;\n padding-top: ", "px;\n font: ", ";\n"
|
|
28
|
+
/**
|
|
29
|
+
* Label and ontent for a single tab pane. The `label` can be JSX.
|
|
30
|
+
*
|
|
31
|
+
* By default, a pane adds no padding around its content in order to
|
|
32
|
+
* accommodate maps or images that must be rendered right against the tab bar
|
|
33
|
+
* itself. The `padding` prop can be used to add some top padding.
|
|
34
|
+
*/
|
|
35
|
+
])), function (p) { return !p.active ? 'none' : ''; }, function (p) { var _a; return (_a = p.padding) !== null && _a !== void 0 ? _a : 0; }, function (p) { return p.theme.font.bodyMedium; });
|
|
36
|
+
/**
|
|
37
|
+
* Label and ontent for a single tab pane. The `label` can be JSX.
|
|
38
|
+
*
|
|
39
|
+
* By default, a pane adds no padding around its content in order to
|
|
40
|
+
* accommodate maps or images that must be rendered right against the tab bar
|
|
41
|
+
* itself. The `padding` prop can be used to add some top padding.
|
|
42
|
+
*/
|
|
43
|
+
var Pane = function (props) { return React.createElement(PaneStyled, __assign({}, props)); };
|
|
44
|
+
export { Pane };
|
|
45
|
+
var templateObject_1;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
/** @ignore */
|
|
4
|
+
className?: string;
|
|
5
|
+
/** @ignore */
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* If set, the content of hidden panes is not rendered.
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
11
|
+
nohiddenrender?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Index of active tab by default (0-based).
|
|
14
|
+
*/
|
|
15
|
+
active?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Tabs use a fluid width by default. A fixed width (in pixels) can be
|
|
18
|
+
* provided.
|
|
19
|
+
*/
|
|
20
|
+
tabWidth?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Event triggered when active tab changes. `idx` is the index of the new active tab.
|
|
23
|
+
*/
|
|
24
|
+
onChange?: (idx: number) => void;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Collection of tabs.
|
|
28
|
+
*
|
|
29
|
+
* ```jsx
|
|
30
|
+
* <Tabs>
|
|
31
|
+
* <Tabs.Pane label="One">
|
|
32
|
+
* Content for first tab.
|
|
33
|
+
* </Tabs.Pane>
|
|
34
|
+
* <Tabs.Pane label="Two">
|
|
35
|
+
* Content for second tab.
|
|
36
|
+
* </Tabs.Pane>
|
|
37
|
+
* <Tabs.Pane label="Three">
|
|
38
|
+
* Content for third tab.
|
|
39
|
+
* </Tabs.Pane>
|
|
40
|
+
* </Tabs>
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* #### Vertical spacing
|
|
44
|
+
* There is no padding or margin about the tab content, so that plain text
|
|
45
|
+
* will be printed very tightly against the tab bar. This is on purpose, so
|
|
46
|
+
* that tabs containing images or maps an line up right against the tab bar.
|
|
47
|
+
*
|
|
48
|
+
* ### Rendering
|
|
49
|
+
* Rendering the content of inactive tabs may slow the browser down. The
|
|
50
|
+
* `nohiddenrender` prop causes hidden tabs not to be rendered. This will
|
|
51
|
+
* break Mapbox.
|
|
52
|
+
*
|
|
53
|
+
* ### Note
|
|
54
|
+
* If you need a tab bar, but not panes, then use the `TabBar` control.
|
|
55
|
+
*/
|
|
56
|
+
declare const Tabs: {
|
|
57
|
+
(props: IProps): React.JSX.Element;
|
|
58
|
+
/**
|
|
59
|
+
* A single tab pane.
|
|
60
|
+
*
|
|
61
|
+
* The Pane label can contain arbitrary content.
|
|
62
|
+
* To get the content to vertically align properly, a Flex.Quick can help.
|
|
63
|
+
*/
|
|
64
|
+
Pane: (props: import("./Pane").IProps) => React.JSX.Element;
|
|
65
|
+
};
|
|
66
|
+
export { Tabs, IProps };
|
|
@@ -0,0 +1,144 @@
|
|
|
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
|
+
// Other controls
|
|
19
|
+
import { Pane } from './Pane';
|
|
20
|
+
import { TabBar } from '../../controls/TabBar';
|
|
21
|
+
var TabsBase = function (props) {
|
|
22
|
+
var _a;
|
|
23
|
+
// Currently active tab (0-based).
|
|
24
|
+
// Initialize state. Default active tab is tab #0,
|
|
25
|
+
// unless the active prop is passed.
|
|
26
|
+
var _b = React.useState((_a = props.active) !== null && _a !== void 0 ? _a : 0), index = _b[0], setIndex = _b[1];
|
|
27
|
+
// When the active prop changes, then force the current tab index to
|
|
28
|
+
// that tab.
|
|
29
|
+
React.useEffect(function () {
|
|
30
|
+
if (typeof props.active === 'number' && props.active >= 0)
|
|
31
|
+
setIndex(props.active);
|
|
32
|
+
}, [props.active]);
|
|
33
|
+
var tabClicked = function (idx) {
|
|
34
|
+
// Only interesting if active tab changes.
|
|
35
|
+
if (idx != index)
|
|
36
|
+
return;
|
|
37
|
+
setIndex(idx);
|
|
38
|
+
if (props.onChange) {
|
|
39
|
+
props.onChange(idx);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
var getTabs = function () {
|
|
43
|
+
return React.Children.map(props.children, function (child, i) {
|
|
44
|
+
if (child == null)
|
|
45
|
+
return null;
|
|
46
|
+
return React.createElement(TabBar.Tab, {
|
|
47
|
+
active: i === index,
|
|
48
|
+
tabWidth: props.tabWidth,
|
|
49
|
+
children: child.props.label
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
//
|
|
54
|
+
// Clone all the panes, marking the active one.
|
|
55
|
+
// All panes are rendered, because they may contain controls
|
|
56
|
+
// that must be in the DOM. Inactive panes are invisible.
|
|
57
|
+
//
|
|
58
|
+
var getPanes = function () {
|
|
59
|
+
return React.Children.map(props.children, function (child, i) {
|
|
60
|
+
if (child == null)
|
|
61
|
+
return null;
|
|
62
|
+
return React.cloneElement(child, {
|
|
63
|
+
active: i === index,
|
|
64
|
+
nohiddenrender: props.nohiddenrender
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
return (React.createElement("div", { className: props.className },
|
|
69
|
+
React.createElement(TabBar, { active: index, onChange: tabClicked, tabWidth: props.tabWidth }, getTabs()),
|
|
70
|
+
React.createElement(Panes, null, getPanes())));
|
|
71
|
+
};
|
|
72
|
+
var Panes = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 100%;\n flex: 1;\n"], ["\n height: 100%;\n flex: 1;\n"])));
|
|
73
|
+
var TabsStyled = styled(TabsBase)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n height: 100%;\n display: flex;\n flex-direction: column;\n"], ["\n position: relative;\n height: 100%;\n display: flex;\n flex-direction: column;\n"
|
|
74
|
+
/**
|
|
75
|
+
* Collection of tabs.
|
|
76
|
+
*
|
|
77
|
+
* ```jsx
|
|
78
|
+
* <Tabs>
|
|
79
|
+
* <Tabs.Pane label="One">
|
|
80
|
+
* Content for first tab.
|
|
81
|
+
* </Tabs.Pane>
|
|
82
|
+
* <Tabs.Pane label="Two">
|
|
83
|
+
* Content for second tab.
|
|
84
|
+
* </Tabs.Pane>
|
|
85
|
+
* <Tabs.Pane label="Three">
|
|
86
|
+
* Content for third tab.
|
|
87
|
+
* </Tabs.Pane>
|
|
88
|
+
* </Tabs>
|
|
89
|
+
* ```
|
|
90
|
+
*
|
|
91
|
+
* #### Vertical spacing
|
|
92
|
+
* There is no padding or margin about the tab content, so that plain text
|
|
93
|
+
* will be printed very tightly against the tab bar. This is on purpose, so
|
|
94
|
+
* that tabs containing images or maps an line up right against the tab bar.
|
|
95
|
+
*
|
|
96
|
+
* ### Rendering
|
|
97
|
+
* Rendering the content of inactive tabs may slow the browser down. The
|
|
98
|
+
* `nohiddenrender` prop causes hidden tabs not to be rendered. This will
|
|
99
|
+
* break Mapbox.
|
|
100
|
+
*
|
|
101
|
+
* ### Note
|
|
102
|
+
* If you need a tab bar, but not panes, then use the `TabBar` control.
|
|
103
|
+
*/
|
|
104
|
+
])));
|
|
105
|
+
/**
|
|
106
|
+
* Collection of tabs.
|
|
107
|
+
*
|
|
108
|
+
* ```jsx
|
|
109
|
+
* <Tabs>
|
|
110
|
+
* <Tabs.Pane label="One">
|
|
111
|
+
* Content for first tab.
|
|
112
|
+
* </Tabs.Pane>
|
|
113
|
+
* <Tabs.Pane label="Two">
|
|
114
|
+
* Content for second tab.
|
|
115
|
+
* </Tabs.Pane>
|
|
116
|
+
* <Tabs.Pane label="Three">
|
|
117
|
+
* Content for third tab.
|
|
118
|
+
* </Tabs.Pane>
|
|
119
|
+
* </Tabs>
|
|
120
|
+
* ```
|
|
121
|
+
*
|
|
122
|
+
* #### Vertical spacing
|
|
123
|
+
* There is no padding or margin about the tab content, so that plain text
|
|
124
|
+
* will be printed very tightly against the tab bar. This is on purpose, so
|
|
125
|
+
* that tabs containing images or maps an line up right against the tab bar.
|
|
126
|
+
*
|
|
127
|
+
* ### Rendering
|
|
128
|
+
* Rendering the content of inactive tabs may slow the browser down. The
|
|
129
|
+
* `nohiddenrender` prop causes hidden tabs not to be rendered. This will
|
|
130
|
+
* break Mapbox.
|
|
131
|
+
*
|
|
132
|
+
* ### Note
|
|
133
|
+
* If you need a tab bar, but not panes, then use the `TabBar` control.
|
|
134
|
+
*/
|
|
135
|
+
var Tabs = function (props) { return React.createElement(TabsStyled, __assign({}, props)); };
|
|
136
|
+
/**
|
|
137
|
+
* A single tab pane.
|
|
138
|
+
*
|
|
139
|
+
* The Pane label can contain arbitrary content.
|
|
140
|
+
* To get the content to vertically align properly, a Flex.Quick can help.
|
|
141
|
+
*/
|
|
142
|
+
Tabs.Pane = Pane;
|
|
143
|
+
export { Tabs };
|
|
144
|
+
var templateObject_1, templateObject_2;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
/** @ignore */
|
|
4
|
+
className?: string;
|
|
5
|
+
/**
|
|
6
|
+
* Content of the `Chip`. Can be a string, or JSX.
|
|
7
|
+
*/
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* A disabled `Chip` cannot be interacted with.
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Triggered when the X button on the `Chip` is clicked, or when Delete is
|
|
16
|
+
* pressed while the `Chip` has focus.
|
|
17
|
+
*/
|
|
18
|
+
onClick?: () => void;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A set of `Chip` instances show consecutive user inputs and are individually
|
|
22
|
+
* deselected. The "X" on a `Chip` is clickable. A `Chip` can have keyboard focus:
|
|
23
|
+
* when `Delete` is pressed, `onClick` is triggered.
|
|
24
|
+
*
|
|
25
|
+
* A `Chip` has a slight left margin to offset it from the preceding `Chip` in a
|
|
26
|
+
* set. This margin is only applied between `Chip` siblings.
|
|
27
|
+
*
|
|
28
|
+
* Chips have a minimum width and maximum width. Content that exceeds the
|
|
29
|
+
* maximum width is ellipsized. If `verticalAlign` is specified, then the contents
|
|
30
|
+
* of the `Chip` are aligned with flexbox. This is necessary when the chip label
|
|
31
|
+
* is not a string but JSX. If `verticalAlign` is enabled, the Chip
|
|
32
|
+
* content is no longer ellipsized.
|
|
33
|
+
*/
|
|
34
|
+
declare const Chip: ({ disabled, ...props }: IProps) => React.JSX.Element;
|
|
35
|
+
export { Chip, IProps };
|