@opengeoweb/theme 2.14.0 → 2.15.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
|
@@ -1237,6 +1237,35 @@ var createTheme = function createTheme(paletteType, geowebColors, shadows) {
|
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
1239
1239
|
}
|
|
1240
|
+
},
|
|
1241
|
+
MuiSwitch: {
|
|
1242
|
+
styleOverrides: {
|
|
1243
|
+
switchBase: {
|
|
1244
|
+
color: geowebColors.customSwitch.thumb,
|
|
1245
|
+
'&.Mui-checked': {
|
|
1246
|
+
color: geowebColors.customSwitch.thumb
|
|
1247
|
+
},
|
|
1248
|
+
'&.Mui-disabled': {
|
|
1249
|
+
color: geowebColors.customSwitch.thumbDisabled
|
|
1250
|
+
},
|
|
1251
|
+
'&.Mui-checked.Mui-disabled': {
|
|
1252
|
+
color: geowebColors.customSwitch.thumbDisabled
|
|
1253
|
+
},
|
|
1254
|
+
'&.Mui-checked+.MuiSwitch-track': {
|
|
1255
|
+
backgroundColor: geowebColors.customSwitch.trackActive
|
|
1256
|
+
},
|
|
1257
|
+
'&.Mui-disabled+.MuiSwitch-track': {
|
|
1258
|
+
backgroundColor: geowebColors.customSwitch.track
|
|
1259
|
+
},
|
|
1260
|
+
'&.Mui-checked.Mui-disabled+.MuiSwitch-track': {
|
|
1261
|
+
backgroundColor: geowebColors.customSwitch.trackActive
|
|
1262
|
+
}
|
|
1263
|
+
},
|
|
1264
|
+
track: {
|
|
1265
|
+
backgroundColor: geowebColors.customSwitch.track,
|
|
1266
|
+
opacity: '1 !important'
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1240
1269
|
}
|
|
1241
1270
|
}
|
|
1242
1271
|
});
|
|
@@ -1577,9 +1606,13 @@ var colors$1 = {
|
|
|
1577
1606
|
thumb: '#F8F9F9',
|
|
1578
1607
|
thumbDisabled: '#CCCCCC',
|
|
1579
1608
|
mark: '#FFFFFF',
|
|
1580
|
-
markDisabled: '#FFFFFF'
|
|
1581
|
-
|
|
1582
|
-
|
|
1609
|
+
markDisabled: '#FFFFFF'
|
|
1610
|
+
},
|
|
1611
|
+
customSwitch: {
|
|
1612
|
+
thumb: '#F8F9F9',
|
|
1613
|
+
thumbDisabled: '#F5F5F5',
|
|
1614
|
+
track: '#707070',
|
|
1615
|
+
trackActive: '#186DFF'
|
|
1583
1616
|
},
|
|
1584
1617
|
syncGroups: {
|
|
1585
1618
|
drawerOpen: {
|
|
@@ -2313,9 +2346,13 @@ var colors = {
|
|
|
2313
2346
|
thumb: '#F8F9F9',
|
|
2314
2347
|
thumbDisabled: '#5E5E5E',
|
|
2315
2348
|
mark: '#FFFFFF',
|
|
2316
|
-
markDisabled: '#303030'
|
|
2317
|
-
|
|
2318
|
-
|
|
2349
|
+
markDisabled: '#303030'
|
|
2350
|
+
},
|
|
2351
|
+
customSwitch: {
|
|
2352
|
+
thumb: '#F8F9F9',
|
|
2353
|
+
thumbDisabled: '#F5F5F5',
|
|
2354
|
+
track: '#BDBDBD',
|
|
2355
|
+
trackActive: '#488BFD'
|
|
2319
2356
|
},
|
|
2320
2357
|
syncGroups: {
|
|
2321
2358
|
drawerOpen: {
|
package/index.umd.js
CHANGED
|
@@ -1224,6 +1224,35 @@
|
|
|
1224
1224
|
}
|
|
1225
1225
|
}
|
|
1226
1226
|
}
|
|
1227
|
+
},
|
|
1228
|
+
MuiSwitch: {
|
|
1229
|
+
styleOverrides: {
|
|
1230
|
+
switchBase: {
|
|
1231
|
+
color: geowebColors.customSwitch.thumb,
|
|
1232
|
+
'&.Mui-checked': {
|
|
1233
|
+
color: geowebColors.customSwitch.thumb
|
|
1234
|
+
},
|
|
1235
|
+
'&.Mui-disabled': {
|
|
1236
|
+
color: geowebColors.customSwitch.thumbDisabled
|
|
1237
|
+
},
|
|
1238
|
+
'&.Mui-checked.Mui-disabled': {
|
|
1239
|
+
color: geowebColors.customSwitch.thumbDisabled
|
|
1240
|
+
},
|
|
1241
|
+
'&.Mui-checked+.MuiSwitch-track': {
|
|
1242
|
+
backgroundColor: geowebColors.customSwitch.trackActive
|
|
1243
|
+
},
|
|
1244
|
+
'&.Mui-disabled+.MuiSwitch-track': {
|
|
1245
|
+
backgroundColor: geowebColors.customSwitch.track
|
|
1246
|
+
},
|
|
1247
|
+
'&.Mui-checked.Mui-disabled+.MuiSwitch-track': {
|
|
1248
|
+
backgroundColor: geowebColors.customSwitch.trackActive
|
|
1249
|
+
}
|
|
1250
|
+
},
|
|
1251
|
+
track: {
|
|
1252
|
+
backgroundColor: geowebColors.customSwitch.track,
|
|
1253
|
+
opacity: '1 !important'
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1227
1256
|
}
|
|
1228
1257
|
}
|
|
1229
1258
|
});
|
|
@@ -1564,9 +1593,13 @@
|
|
|
1564
1593
|
thumb: '#F8F9F9',
|
|
1565
1594
|
thumbDisabled: '#CCCCCC',
|
|
1566
1595
|
mark: '#FFFFFF',
|
|
1567
|
-
markDisabled: '#FFFFFF'
|
|
1568
|
-
|
|
1569
|
-
|
|
1596
|
+
markDisabled: '#FFFFFF'
|
|
1597
|
+
},
|
|
1598
|
+
customSwitch: {
|
|
1599
|
+
thumb: '#F8F9F9',
|
|
1600
|
+
thumbDisabled: '#F5F5F5',
|
|
1601
|
+
track: '#707070',
|
|
1602
|
+
trackActive: '#186DFF'
|
|
1570
1603
|
},
|
|
1571
1604
|
syncGroups: {
|
|
1572
1605
|
drawerOpen: {
|
|
@@ -2284,9 +2317,13 @@
|
|
|
2284
2317
|
thumb: '#F8F9F9',
|
|
2285
2318
|
thumbDisabled: '#5E5E5E',
|
|
2286
2319
|
mark: '#FFFFFF',
|
|
2287
|
-
markDisabled: '#303030'
|
|
2288
|
-
|
|
2289
|
-
|
|
2320
|
+
markDisabled: '#303030'
|
|
2321
|
+
},
|
|
2322
|
+
customSwitch: {
|
|
2323
|
+
thumb: '#F8F9F9',
|
|
2324
|
+
thumbDisabled: '#F5F5F5',
|
|
2325
|
+
track: '#BDBDBD',
|
|
2326
|
+
trackActive: '#488BFD'
|
|
2290
2327
|
},
|
|
2291
2328
|
syncGroups: {
|
|
2292
2329
|
drawerOpen: {
|
|
@@ -98,8 +98,12 @@ export declare type GeowebColorPalette = {
|
|
|
98
98
|
thumbDisabled: CSSProperties['color'];
|
|
99
99
|
mark: CSSProperties['color'];
|
|
100
100
|
markDisabled: CSSProperties['color'];
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
};
|
|
102
|
+
customSwitch: {
|
|
103
|
+
thumb: CSSProperties['color'];
|
|
104
|
+
thumbDisabled: CSSProperties['color'];
|
|
105
|
+
track: CSSProperties['color'];
|
|
106
|
+
trackActive: CSSProperties['color'];
|
|
103
107
|
};
|
|
104
108
|
syncGroups: {
|
|
105
109
|
drawerOpen: CSSProperties;
|
|
@@ -16,6 +16,7 @@ export { TextFields } from './TextField.stories';
|
|
|
16
16
|
export { Breakpoints } from './Breakpoints.stories';
|
|
17
17
|
export { Icons } from './Icons.stories';
|
|
18
18
|
export { FormElementsGWTheme, FormElements } from './FormElements.stories';
|
|
19
|
+
export { Switch } from './Switch.stories';
|
|
19
20
|
declare const _default: {
|
|
20
21
|
title: string;
|
|
21
22
|
};
|