@opengeoweb/theme 9.21.0 → 9.22.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/index.esm.js CHANGED
@@ -1,6 +1,8 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import { SvgIcon, createTheme as createTheme$1, ThemeProvider as ThemeProvider$1, CssBaseline, GlobalStyles, StyledEngineProvider } from '@mui/material';
3
3
  import * as React from 'react';
4
+ import 'i18next';
5
+ import 'react-i18next';
4
6
 
5
7
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
6
8
 
@@ -1996,10 +1998,7 @@ const CloudIdle = props => jsx(SvgIcon, Object.assign({}, props, {
1996
1998
  })
1997
1999
  }));
1998
2000
  const Admin = _a => {
1999
- var {
2000
- children
2001
- } = _a,
2002
- props = __rest(_a, ["children"]);
2001
+ var props = __rest(_a, []);
2003
2002
  const title = 'Admin';
2004
2003
  return jsxs(SvgIcon, Object.assign({}, props, {
2005
2004
  width: 32,
@@ -2083,18 +2082,7 @@ const Admin = _a => {
2083
2082
  xlinkHref: "#d",
2084
2083
  fill: "#000",
2085
2084
  filter: "url(#c)"
2086
- }), jsx("text", Object.assign({
2087
- fill: "#FFF",
2088
- fontFamily: "Roboto-Medium, Roboto",
2089
- fontSize: "14",
2090
- fontWeight: "400",
2091
- x: "16",
2092
- y: "16.308",
2093
- alignmentBaseline: "central",
2094
- textAnchor: "middle"
2095
- }, {
2096
- children: children || 'VL'
2097
- }))]
2085
+ })]
2098
2086
  }))]
2099
2087
  }));
2100
2088
  };
@@ -2318,7 +2306,7 @@ var no = {
2318
2306
  var nl = {
2319
2307
  theme: "niet vertaald"
2320
2308
  };
2321
- var theme = {
2309
+ var themeTranslations = {
2322
2310
  en: en,
2323
2311
  fi: fi,
2324
2312
  no: no,
@@ -6393,4 +6381,22 @@ const EChartsLightTheme = {
6393
6381
  }
6394
6382
  };
6395
6383
 
6396
- export { Add, Admin, Animation, ArrowDown, ArrowDropDownDown, ArrowDropDownUp, ArrowLeft, ArrowRight, ArrowUp, AutoUpdateActive, AutoUpdateInActive, Both, Cached, CalendarToday, Cancel, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Clear, Clock, Close, CloudIdle, CloudLoading, CoastalEvent, CollapseLarge, CollapseMedium, CollapseSmall, CollapseWindow, Copy, Delete, DimensionsElevation, DimensionsOther, DimensionsRefTime, DimensionsTime, DragHandle, DrawFIRLand, DrawPolygon, DrawRegion, EChartsDarkTheme, EChartsLightTheme, Edit, Equalizer, Exclamation, ExitDomain, Expand, ExpandWindow, Expire, Export, FastForward, Filter, Fog, FreezingPrecipitation, FunnelCloud, GeoWebLogo, HamburgerMenu, Haze, Home, index as Icons, Info, KeyCommand, KeyOption, Layers, LayersAdd, Lightning, Link, LinkOff, List, ListItem, Location, LockLocked, LockUnlocked, MapAdd, Menu, Minus, ModerateAircraftIcing, ModerateTurbulence, MyLocation, None, Notifications, Now, Options, Pause, Picture, Play, Polygons, Preset, PresetTiles, PresetWorkspace, RadioactiveMaterials, Rain, Remove, Resize, SandStorm, Search, SevereAircraftIcing, SevereTurbulence, SevereWaves, Share, SliderThumb, Snow, Speed, SplitHorizontal, SplitVertical, StepBackward, StepForward, SubdirectoryArrowRight, Success, TemperatureHigh, TemperatureLow, TextIcon, ThemeContext, ThemeProvider, ThemeTypes, ThemeWrapper, ThumbsUp, Thunderstorm, TimeSeriesSelect, UnExpand, Update, Visibility, VisibilityOff, VulcanicEruption, WebAssetOff, Wind, WorldMapProjection, breakpoints, colors$1 as colorsLight, createShadows, createTheme, darkTheme, dragHandlePath, elevations$1 as elevationsLight, lightTheme, parseColors, theme as themeTranslations, useThemeContext };
6384
+ /* *
6385
+ * Licensed under the Apache License, Version 2.0 (the "License");
6386
+ * you may not use this file except in compliance with the License.
6387
+ * You may obtain a copy of the License at
6388
+ *
6389
+ * http://www.apache.org/licenses/LICENSE-2.0
6390
+ *
6391
+ * Unless required by applicable law or agreed to in writing, software
6392
+ * distributed under the License is distributed on an "AS IS" BASIS,
6393
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
6394
+ * See the License for the specific language governing permissions and
6395
+ * limitations under the License.
6396
+ *
6397
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
6398
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
6399
+ * */
6400
+ const THEME_NAMESPACE = 'theme';
6401
+
6402
+ export { Add, Admin, Animation, ArrowDown, ArrowDropDownDown, ArrowDropDownUp, ArrowLeft, ArrowRight, ArrowUp, AutoUpdateActive, AutoUpdateInActive, Both, Cached, CalendarToday, Cancel, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Clear, Clock, Close, CloudIdle, CloudLoading, CoastalEvent, CollapseLarge, CollapseMedium, CollapseSmall, CollapseWindow, Copy, Delete, DimensionsElevation, DimensionsOther, DimensionsRefTime, DimensionsTime, DragHandle, DrawFIRLand, DrawPolygon, DrawRegion, EChartsDarkTheme, EChartsLightTheme, Edit, Equalizer, Exclamation, ExitDomain, Expand, ExpandWindow, Expire, Export, FastForward, Filter, Fog, FreezingPrecipitation, FunnelCloud, GeoWebLogo, HamburgerMenu, Haze, Home, index as Icons, Info, KeyCommand, KeyOption, Layers, LayersAdd, Lightning, Link, LinkOff, List, ListItem, Location, LockLocked, LockUnlocked, MapAdd, Menu, Minus, ModerateAircraftIcing, ModerateTurbulence, MyLocation, None, Notifications, Now, Options, Pause, Picture, Play, Polygons, Preset, PresetTiles, PresetWorkspace, RadioactiveMaterials, Rain, Remove, Resize, SandStorm, Search, SevereAircraftIcing, SevereTurbulence, SevereWaves, Share, SliderThumb, Snow, Speed, SplitHorizontal, SplitVertical, StepBackward, StepForward, SubdirectoryArrowRight, Success, THEME_NAMESPACE, TemperatureHigh, TemperatureLow, TextIcon, ThemeContext, ThemeProvider, ThemeTypes, ThemeWrapper, ThumbsUp, Thunderstorm, TimeSeriesSelect, UnExpand, Update, Visibility, VisibilityOff, VulcanicEruption, WebAssetOff, Wind, WorldMapProjection, breakpoints, colors$1 as colorsLight, createShadows, createTheme, darkTheme, dragHandlePath, elevations$1 as elevationsLight, lightTheme, parseColors, themeTranslations, useThemeContext };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/theme",
3
- "version": "9.21.0",
3
+ "version": "9.22.0",
4
4
  "description": "GeoWeb Theme library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -8,7 +8,7 @@
8
8
  "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
9
  },
10
10
  "dependencies": {
11
- "@mui/material": "~5.15.11",
11
+ "@mui/material": "^5.16.0",
12
12
  "@mui/system": "^5.15.1",
13
13
  "@mui/x-date-pickers": "^6.18.5",
14
14
  "i18next": "^23.11.5",
package/src/index.d.ts CHANGED
@@ -9,4 +9,5 @@ export * from './lib/components/Icons';
9
9
  export * from './lib/components/Paths';
10
10
  export * from './lib/types';
11
11
  export * from './lib/utils/EChartsThemes';
12
+ export { THEME_NAMESPACE } from './lib/utils/i18n';
12
13
  export { themeTranslations };
@@ -111,7 +111,7 @@ export declare const WorldMapProjection: (props: SvgIconProps) => JSX.Element;
111
111
  export declare const FunnelCloud: (props: SvgIconProps) => JSX.Element;
112
112
  export declare const CloudLoading: (props: SvgIconProps) => JSX.Element;
113
113
  export declare const CloudIdle: (props: SvgIconProps) => JSX.Element;
114
- export declare const Admin: ({ children, ...props }: SvgIconProps) => JSX.Element;
114
+ export declare const Admin: ({ ...props }: SvgIconProps) => JSX.Element;
115
115
  export declare const Remove: (props: SvgIconProps) => JSX.Element;
116
116
  export declare const Expire: (props: SvgIconProps) => JSX.Element;
117
117
  export declare const Thunderstorm: (props: SvgIconProps) => JSX.Element;