@opengeoweb/theme 4.2.0 → 4.3.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 +30 -3
- package/index.umd.js +30 -2
- package/lib/components/Icons/Icons.d.ts +1 -0
- package/lib/components/Theme/types.d.ts +1 -0
- package/lib/stories/Button.stories.d.ts +6 -8
- package/lib/stories/Card.stories.d.ts +6 -8
- package/lib/stories/IconButton.stories.d.ts +6 -8
- package/lib/stories/TextField.stories.d.ts +6 -8
- package/lib/stories/ToggleButton.stories.d.ts +6 -8
- package/package.json +2 -2
package/index.esm.js
CHANGED
|
@@ -330,6 +330,13 @@ var AutoUpdateInActive = function AutoUpdateInActive(props) {
|
|
|
330
330
|
y: 17.3
|
|
331
331
|
}, "AUTO"))));
|
|
332
332
|
};
|
|
333
|
+
var Now = function Now(props) {
|
|
334
|
+
return /*#__PURE__*/React.createElement(SvgIcon, Object.assign({}, props), /*#__PURE__*/React.createElement("g", {
|
|
335
|
+
transform: "translate(0 2)"
|
|
336
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
337
|
+
d: "M4.85,15.55 L5.89,15.55 L7.39013512,18.2040258 L7.39,15.55 L8.42,15.55 L8.42,19.82 L7.39,19.815 L5.89,17.19 L5.89,19.82 L4.85,19.815 L4.85,15.55 Z M11.275,15.49 C12.55,15.49 13.14,16.4749736 13.14,17.69 C13.14,18.9050264 12.55,19.89 11.275,19.89 C10,19.89 9.4,18.9050264 9.4,17.69 C9.4,16.4749736 10,15.49 11.275,15.49 Z M11.265,16.3 C10.63,16.3 10.46,16.8781414 10.46,17.69 C10.46,18.5018586 10.63,19.08 11.265,19.08 C11.9,19.08 12.09,18.5018586 12.09,17.69 C12.09,16.8781414 11.9,16.3 11.265,16.3 Z M13.85,15.55 L14.88,15.55 L15.37,18.23 L15.96,15.55 L16.83,15.55 L17.42,18.23 L17.91,15.55 L18.93,15.55 L18.03,19.82 L16.96,19.82 L16.39,17.38 L15.83,19.82 L14.76,19.82 L13.85,15.55 Z M12,0 C16.7,0 18.85,4.12 18.85,6.82 C18.85,9.52 17.0960097,13.63 12,13.63 C9.06797949,13.63 7.24456537,12.2694474 6.22334015,10.5996971 C6.10797504,10.4110698 6.00732732,9.72319365 6.59320378,9.33888177 C7.17908025,8.95456988 7.71708662,9.39022217 7.84387287,9.58248667 C8.70143045,10.8829264 10.1633005,11.82 12,11.82 C15,11.82 17,9.32 17,6.82 C17,4.32 15,1.81 12,1.81 C10.5492584,1.81 9.33236686,2.39696387 8.46241089,3.28591644 L9.474995,3.73670576 C9.86718007,3.9113178 9.95685384,4.26087798 9.84288406,4.51685828 C9.78589918,4.64484843 9.68395359,4.74990886 9.54141806,4.83107363 L6.67469458,6.47927087 C6.45916744,6.60267712 6.21814322,6.61960842 6.01095111,6.52736055 C5.80211462,6.43438056 5.65295882,6.24275928 5.60209611,6.00074862 L4.90755008,2.76794268 C4.87285304,2.60689825 4.88471829,2.46076082 4.94098185,2.3343908 C5.05495162,2.0784105 5.37472892,1.91114968 5.7660918,2.08539566 L6.7215416,2.51032096 C7.8443708,1.0870475 9.58579853,0 12,0 Z"
|
|
338
|
+
})));
|
|
339
|
+
};
|
|
333
340
|
var Pause = function Pause(props) {
|
|
334
341
|
return /*#__PURE__*/React.createElement(SvgIcon, Object.assign({}, props), /*#__PURE__*/React.createElement("path", {
|
|
335
342
|
d: "M8.579 4c.865 0 1.565.7 1.565 1.564v12.87c0 .866-.7 1.566-1.565 1.566-.863 0-1.565-.7-1.565-1.565v-4.87H7v-3.13h.014V5.564C7.014 4.7 7.716 4 8.579 4zm6.915 0c.865 0 1.565.7 1.565 1.564v12.871c0 .865-.7 1.565-1.565 1.565-.863 0-1.565-.7-1.565-1.565v-4.87h-.014v-3.13h.014v-4.87C13.93 4.7 14.631 4 15.494 4z"
|
|
@@ -628,6 +635,7 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
628
635
|
DragHandle: DragHandle,
|
|
629
636
|
AutoUpdateActive: AutoUpdateActive,
|
|
630
637
|
AutoUpdateInActive: AutoUpdateInActive,
|
|
638
|
+
Now: Now,
|
|
631
639
|
Pause: Pause,
|
|
632
640
|
Play: Play,
|
|
633
641
|
Info: Info,
|
|
@@ -960,8 +968,8 @@ var createTheme = function createTheme(paletteType, geowebColors, shadows) {
|
|
|
960
968
|
styleOverrides: {
|
|
961
969
|
root: {
|
|
962
970
|
color: geowebColors.typographyAndIcons.iconLinkActive,
|
|
963
|
-
'&.Mui-disabled': {
|
|
964
|
-
color: "".concat(geowebColors.typographyAndIcons.iconLinkDisabled
|
|
971
|
+
'&.MuiRadio-root.Mui-disabled': {
|
|
972
|
+
color: "".concat(geowebColors.typographyAndIcons.iconLinkDisabled)
|
|
965
973
|
},
|
|
966
974
|
'&.Mui-checked': {
|
|
967
975
|
color: geowebColors.typographyAndIcons.iconLinkActive
|
|
@@ -1220,6 +1228,17 @@ var createTheme = function createTheme(paletteType, geowebColors, shadows) {
|
|
|
1220
1228
|
'&:after': {
|
|
1221
1229
|
borderColor: geowebColors.captions.captionError.color
|
|
1222
1230
|
}
|
|
1231
|
+
},
|
|
1232
|
+
// can be improved in MUI6 or after this PR is merged https://github.com/mui/material-ui/pull/32822#issuecomment-1275927288
|
|
1233
|
+
'&.MuiInputBase-readOnly': {
|
|
1234
|
+
background: 'transparent',
|
|
1235
|
+
color: geowebColors.typographyAndIcons.text,
|
|
1236
|
+
' .MuiInputBase-readOnly': {
|
|
1237
|
+
WebkitTextFillColor: 'inherit'
|
|
1238
|
+
},
|
|
1239
|
+
'&:before': {
|
|
1240
|
+
border: 'transparent'
|
|
1241
|
+
}
|
|
1223
1242
|
}
|
|
1224
1243
|
},
|
|
1225
1244
|
underline: {
|
|
@@ -1560,6 +1579,10 @@ var colors$1 = {
|
|
|
1560
1579
|
disabled: {
|
|
1561
1580
|
fill: '#000000',
|
|
1562
1581
|
opacity: 0
|
|
1582
|
+
},
|
|
1583
|
+
label: {
|
|
1584
|
+
fill: '#051039',
|
|
1585
|
+
opacity: 0.67
|
|
1563
1586
|
}
|
|
1564
1587
|
},
|
|
1565
1588
|
tab: {
|
|
@@ -2335,6 +2358,10 @@ var colors = {
|
|
|
2335
2358
|
disabled: {
|
|
2336
2359
|
color: '#000000',
|
|
2337
2360
|
opacity: 0
|
|
2361
|
+
},
|
|
2362
|
+
label: {
|
|
2363
|
+
fill: '#FFFFFF',
|
|
2364
|
+
opacity: 0.7
|
|
2338
2365
|
}
|
|
2339
2366
|
},
|
|
2340
2367
|
tab: {
|
|
@@ -2634,4 +2661,4 @@ var ThemeWrapperOldTheme = function ThemeWrapperOldTheme(_a) {
|
|
|
2634
2661
|
}, props), children);
|
|
2635
2662
|
};
|
|
2636
2663
|
|
|
2637
|
-
export { Add, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, AutoUpdateActive, AutoUpdateInActive, Cached, CalendarToday, Cancel, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Clear, Clock, Close, Copy, Delete, DimensionsElevation, DimensionsOther, DimensionsRefTime, DimensionsTime, DragHandle, DrawFIRLand, DrawPolygon, DrawRegion, Edit, Equalizer, Exclamation, Expand, Export, FastForward, Filter, Flag, GWTheme, GeoWebLogo, HamburgerMenu, Home, index as Icons, Info, KeyCommand, KeyOption, Layers, Link, LinkOff, List, ListItem, Location, Minus, Notifications, Options, Pause, Picture, Play, Preset, PresetTiles, PresetWorkspace, Resize, Search, SliderThumb, Speed, SplitHorizontal, SplitVertical, SubdirectoryArrowRight, Success, TextIcon, ThemeContext, ThemeProvider, ThemeWrapper, ThemeWrapperOldTheme, ThumbsUp, TimeSeriesManager, UnExpand, Update, Visibility, VisibilityOff, WebAssetOff, darkTheme, gwButtonVariants, lightTheme, useThemeContext };
|
|
2664
|
+
export { Add, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, AutoUpdateActive, AutoUpdateInActive, Cached, CalendarToday, Cancel, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Clear, Clock, Close, Copy, Delete, DimensionsElevation, DimensionsOther, DimensionsRefTime, DimensionsTime, DragHandle, DrawFIRLand, DrawPolygon, DrawRegion, Edit, Equalizer, Exclamation, Expand, Export, FastForward, Filter, Flag, GWTheme, GeoWebLogo, HamburgerMenu, Home, index as Icons, Info, KeyCommand, KeyOption, Layers, Link, LinkOff, List, ListItem, Location, Minus, Notifications, Now, Options, Pause, Picture, Play, Preset, PresetTiles, PresetWorkspace, Resize, Search, SliderThumb, Speed, SplitHorizontal, SplitVertical, SubdirectoryArrowRight, Success, TextIcon, ThemeContext, ThemeProvider, ThemeWrapper, ThemeWrapperOldTheme, ThumbsUp, TimeSeriesManager, UnExpand, Update, Visibility, VisibilityOff, WebAssetOff, darkTheme, gwButtonVariants, lightTheme, useThemeContext };
|
package/index.umd.js
CHANGED
|
@@ -381,6 +381,13 @@
|
|
|
381
381
|
y: 17.3
|
|
382
382
|
}, "AUTO"))));
|
|
383
383
|
};
|
|
384
|
+
var Now = function Now(props) {
|
|
385
|
+
return /*#__PURE__*/React__namespace.createElement(material.SvgIcon, __assign({}, props), /*#__PURE__*/React__namespace.createElement("g", {
|
|
386
|
+
transform: "translate(0 2)"
|
|
387
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
388
|
+
d: "M4.85,15.55 L5.89,15.55 L7.39013512,18.2040258 L7.39,15.55 L8.42,15.55 L8.42,19.82 L7.39,19.815 L5.89,17.19 L5.89,19.82 L4.85,19.815 L4.85,15.55 Z M11.275,15.49 C12.55,15.49 13.14,16.4749736 13.14,17.69 C13.14,18.9050264 12.55,19.89 11.275,19.89 C10,19.89 9.4,18.9050264 9.4,17.69 C9.4,16.4749736 10,15.49 11.275,15.49 Z M11.265,16.3 C10.63,16.3 10.46,16.8781414 10.46,17.69 C10.46,18.5018586 10.63,19.08 11.265,19.08 C11.9,19.08 12.09,18.5018586 12.09,17.69 C12.09,16.8781414 11.9,16.3 11.265,16.3 Z M13.85,15.55 L14.88,15.55 L15.37,18.23 L15.96,15.55 L16.83,15.55 L17.42,18.23 L17.91,15.55 L18.93,15.55 L18.03,19.82 L16.96,19.82 L16.39,17.38 L15.83,19.82 L14.76,19.82 L13.85,15.55 Z M12,0 C16.7,0 18.85,4.12 18.85,6.82 C18.85,9.52 17.0960097,13.63 12,13.63 C9.06797949,13.63 7.24456537,12.2694474 6.22334015,10.5996971 C6.10797504,10.4110698 6.00732732,9.72319365 6.59320378,9.33888177 C7.17908025,8.95456988 7.71708662,9.39022217 7.84387287,9.58248667 C8.70143045,10.8829264 10.1633005,11.82 12,11.82 C15,11.82 17,9.32 17,6.82 C17,4.32 15,1.81 12,1.81 C10.5492584,1.81 9.33236686,2.39696387 8.46241089,3.28591644 L9.474995,3.73670576 C9.86718007,3.9113178 9.95685384,4.26087798 9.84288406,4.51685828 C9.78589918,4.64484843 9.68395359,4.74990886 9.54141806,4.83107363 L6.67469458,6.47927087 C6.45916744,6.60267712 6.21814322,6.61960842 6.01095111,6.52736055 C5.80211462,6.43438056 5.65295882,6.24275928 5.60209611,6.00074862 L4.90755008,2.76794268 C4.87285304,2.60689825 4.88471829,2.46076082 4.94098185,2.3343908 C5.05495162,2.0784105 5.37472892,1.91114968 5.7660918,2.08539566 L6.7215416,2.51032096 C7.8443708,1.0870475 9.58579853,0 12,0 Z"
|
|
389
|
+
})));
|
|
390
|
+
};
|
|
384
391
|
var Pause = function Pause(props) {
|
|
385
392
|
return /*#__PURE__*/React__namespace.createElement(material.SvgIcon, __assign({}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
386
393
|
d: "M8.579 4c.865 0 1.565.7 1.565 1.564v12.87c0 .866-.7 1.566-1.565 1.566-.863 0-1.565-.7-1.565-1.565v-4.87H7v-3.13h.014V5.564C7.014 4.7 7.716 4 8.579 4zm6.915 0c.865 0 1.565.7 1.565 1.564v12.871c0 .865-.7 1.565-1.565 1.565-.863 0-1.565-.7-1.565-1.565v-4.87h-.014v-3.13h.014v-4.87C13.93 4.7 14.631 4 15.494 4z"
|
|
@@ -679,6 +686,7 @@
|
|
|
679
686
|
DragHandle: DragHandle,
|
|
680
687
|
AutoUpdateActive: AutoUpdateActive,
|
|
681
688
|
AutoUpdateInActive: AutoUpdateInActive,
|
|
689
|
+
Now: Now,
|
|
682
690
|
Pause: Pause,
|
|
683
691
|
Play: Play,
|
|
684
692
|
Info: Info,
|
|
@@ -947,8 +955,8 @@
|
|
|
947
955
|
styleOverrides: {
|
|
948
956
|
root: {
|
|
949
957
|
color: geowebColors.typographyAndIcons.iconLinkActive,
|
|
950
|
-
'&.Mui-disabled': {
|
|
951
|
-
color: geowebColors.typographyAndIcons.iconLinkDisabled
|
|
958
|
+
'&.MuiRadio-root.Mui-disabled': {
|
|
959
|
+
color: "" + geowebColors.typographyAndIcons.iconLinkDisabled
|
|
952
960
|
},
|
|
953
961
|
'&.Mui-checked': {
|
|
954
962
|
color: geowebColors.typographyAndIcons.iconLinkActive
|
|
@@ -1207,6 +1215,17 @@
|
|
|
1207
1215
|
'&:after': {
|
|
1208
1216
|
borderColor: geowebColors.captions.captionError.color
|
|
1209
1217
|
}
|
|
1218
|
+
},
|
|
1219
|
+
// can be improved in MUI6 or after this PR is merged https://github.com/mui/material-ui/pull/32822#issuecomment-1275927288
|
|
1220
|
+
'&.MuiInputBase-readOnly': {
|
|
1221
|
+
background: 'transparent',
|
|
1222
|
+
color: geowebColors.typographyAndIcons.text,
|
|
1223
|
+
' .MuiInputBase-readOnly': {
|
|
1224
|
+
WebkitTextFillColor: 'inherit'
|
|
1225
|
+
},
|
|
1226
|
+
'&:before': {
|
|
1227
|
+
border: 'transparent'
|
|
1228
|
+
}
|
|
1210
1229
|
}
|
|
1211
1230
|
},
|
|
1212
1231
|
underline: {
|
|
@@ -1547,6 +1566,10 @@
|
|
|
1547
1566
|
disabled: {
|
|
1548
1567
|
fill: '#000000',
|
|
1549
1568
|
opacity: 0
|
|
1569
|
+
},
|
|
1570
|
+
label: {
|
|
1571
|
+
fill: '#051039',
|
|
1572
|
+
opacity: 0.67
|
|
1550
1573
|
}
|
|
1551
1574
|
},
|
|
1552
1575
|
tab: {
|
|
@@ -2306,6 +2329,10 @@
|
|
|
2306
2329
|
disabled: {
|
|
2307
2330
|
color: '#000000',
|
|
2308
2331
|
opacity: 0
|
|
2332
|
+
},
|
|
2333
|
+
label: {
|
|
2334
|
+
fill: '#FFFFFF',
|
|
2335
|
+
opacity: 0.7
|
|
2309
2336
|
}
|
|
2310
2337
|
},
|
|
2311
2338
|
tab: {
|
|
@@ -2655,6 +2682,7 @@
|
|
|
2655
2682
|
exports.Location = Location;
|
|
2656
2683
|
exports.Minus = Minus;
|
|
2657
2684
|
exports.Notifications = Notifications;
|
|
2685
|
+
exports.Now = Now;
|
|
2658
2686
|
exports.Options = Options;
|
|
2659
2687
|
exports.Pause = Pause;
|
|
2660
2688
|
exports.Picture = Picture;
|
|
@@ -33,6 +33,7 @@ export declare const Cancel: (props: SvgIconProps) => JSX.Element;
|
|
|
33
33
|
export declare const DragHandle: (props: SvgIconProps) => JSX.Element;
|
|
34
34
|
export declare const AutoUpdateActive: (props: SvgIconProps) => JSX.Element;
|
|
35
35
|
export declare const AutoUpdateInActive: (props: SvgIconProps) => JSX.Element;
|
|
36
|
+
export declare const Now: (props: SvgIconProps) => JSX.Element;
|
|
36
37
|
export declare const Pause: (props: SvgIconProps) => JSX.Element;
|
|
37
38
|
export declare const Play: (props: SvgIconProps) => JSX.Element;
|
|
38
39
|
export declare const Info: (props: SvgIconProps) => JSX.Element;
|
|
@@ -2,13 +2,11 @@ import * as React from 'react';
|
|
|
2
2
|
export declare const ButtonDemo: React.FC;
|
|
3
3
|
export declare const Buttons: {
|
|
4
4
|
(): React.ReactElement;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}[];
|
|
12
|
-
};
|
|
5
|
+
storyName: string;
|
|
6
|
+
parameters: {
|
|
7
|
+
zeplinLink: {
|
|
8
|
+
name: string;
|
|
9
|
+
link: string;
|
|
10
|
+
}[];
|
|
13
11
|
};
|
|
14
12
|
};
|
|
@@ -2,13 +2,11 @@ import * as React from 'react';
|
|
|
2
2
|
export declare const CardDemo: React.FC;
|
|
3
3
|
export declare const Cards: {
|
|
4
4
|
(): React.ReactElement;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}[];
|
|
12
|
-
};
|
|
5
|
+
storyName: string;
|
|
6
|
+
parameters: {
|
|
7
|
+
zeplinLink: {
|
|
8
|
+
name: string;
|
|
9
|
+
link: string;
|
|
10
|
+
}[];
|
|
13
11
|
};
|
|
14
12
|
};
|
|
@@ -2,13 +2,11 @@ import * as React from 'react';
|
|
|
2
2
|
export declare const IconButtonDemo: React.FC;
|
|
3
3
|
export declare const IconButtons: {
|
|
4
4
|
(): React.ReactElement;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}[];
|
|
12
|
-
};
|
|
5
|
+
storyName: string;
|
|
6
|
+
parameters: {
|
|
7
|
+
zeplinLink: {
|
|
8
|
+
name: string;
|
|
9
|
+
link: string;
|
|
10
|
+
}[];
|
|
13
11
|
};
|
|
14
12
|
};
|
|
@@ -2,13 +2,11 @@ import * as React from 'react';
|
|
|
2
2
|
export declare const TextFieldDemo: React.FC;
|
|
3
3
|
export declare const TextFields: {
|
|
4
4
|
(): React.ReactElement;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}[];
|
|
12
|
-
};
|
|
5
|
+
storyName: string;
|
|
6
|
+
parameters: {
|
|
7
|
+
zeplinLink: {
|
|
8
|
+
name: string;
|
|
9
|
+
link: string;
|
|
10
|
+
}[];
|
|
13
11
|
};
|
|
14
12
|
};
|
|
@@ -2,13 +2,11 @@ import * as React from 'react';
|
|
|
2
2
|
export declare const ToggleButtonDemo: React.FC;
|
|
3
3
|
export declare const ToggleButtons: {
|
|
4
4
|
(): React.ReactElement;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}[];
|
|
12
|
-
};
|
|
5
|
+
storyName: string;
|
|
6
|
+
parameters: {
|
|
7
|
+
zeplinLink: {
|
|
8
|
+
name: string;
|
|
9
|
+
link: string;
|
|
10
|
+
}[];
|
|
13
11
|
};
|
|
14
12
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/theme",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "GeoWeb Theme library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
"dependencies": {},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "^17.0.2",
|
|
16
|
-
"@mui/material": "^5.
|
|
16
|
+
"@mui/material": "^5.10.8"
|
|
17
17
|
}
|
|
18
18
|
}
|