@opengeoweb/theme 8.0.0 → 8.1.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 +0 -0
- package/index.esm.d.ts +0 -0
- package/index.esm.js +4 -2
- package/package.json +2 -2
- package/src/index.d.ts +0 -0
- package/src/lib/components/Icons/Icons.d.ts +0 -0
- package/src/lib/components/Icons/Icons.spec.d.ts +0 -0
- package/src/lib/components/Icons/index.d.ts +0 -0
- package/src/lib/components/Paths/Paths.d.ts +0 -0
- package/src/lib/components/Paths/index.d.ts +0 -0
- package/src/lib/components/Theme/ThemeContext.d.ts +0 -0
- package/src/lib/components/Theme/ThemeContext.spec.d.ts +0 -0
- package/src/lib/components/Theme/index.d.ts +0 -0
- package/src/lib/stories/Accordion.stories.d.ts +0 -0
- package/src/lib/stories/Avatar.stories.d.ts +0 -0
- package/src/lib/stories/Backdrop.stories.d.ts +0 -0
- package/src/lib/stories/Breakpoints.stories.d.ts +0 -0
- package/src/lib/stories/Button.stories.d.ts +0 -0
- package/src/lib/stories/Card.stories.d.ts +0 -0
- package/src/lib/stories/Colors.stories.d.ts +0 -0
- package/src/lib/stories/Elevation.stories.d.ts +0 -0
- package/src/lib/stories/FormElements.stories.d.ts +0 -0
- package/src/lib/stories/IconButton.stories.d.ts +0 -0
- package/src/lib/stories/Icons.stories.d.ts +0 -0
- package/src/lib/stories/List.stories.d.ts +0 -0
- package/src/lib/stories/MenuItem.stories.d.ts +0 -0
- package/src/lib/stories/Slider.stories.d.ts +0 -0
- package/src/lib/stories/Snackbar.stories.d.ts +0 -0
- package/src/lib/stories/StoryHeader.d.ts +0 -0
- package/src/lib/stories/StoryWrapper.d.ts +0 -0
- package/src/lib/stories/Switch.stories.d.ts +0 -0
- package/src/lib/stories/Table.stories.d.ts +0 -0
- package/src/lib/stories/Tabs.stories.d.ts +0 -0
- package/src/lib/stories/TextField.stories.d.ts +0 -0
- package/src/lib/stories/ToggleButton.stories.d.ts +0 -0
- package/src/lib/stories/Tooltip.stories.d.ts +0 -0
- package/src/lib/stories/Typography.stories.d.ts +0 -0
- package/src/lib/storyshots/Storyshots.spec.d.ts +0 -0
- package/src/lib/types.d.ts +0 -0
- package/src/lib/utils/buttonStyles.d.ts +4 -2
- package/src/lib/utils/buttonStyles.test.d.ts +0 -0
- package/src/lib/utils/createTheme.d.ts +0 -0
- package/src/lib/utils/createTheme.spec.d.ts +0 -0
- package/src/lib/utils/themes/darkTheme.d.ts +0 -0
- package/src/lib/utils/themes/gwTheme.d.ts +0 -0
- package/src/lib/utils/themes/index.d.ts +0 -0
- package/src/lib/utils/themes/lightTheme.d.ts +0 -0
- package/src/lib/utils/utils.d.ts +0 -0
- package/src/lib/utils/utils.spec.d.ts +0 -0
package/README.md
CHANGED
|
File without changes
|
package/index.esm.d.ts
CHANGED
|
File without changes
|
package/index.esm.js
CHANGED
|
@@ -2132,7 +2132,8 @@ function useControlled({
|
|
|
2132
2132
|
}
|
|
2133
2133
|
|
|
2134
2134
|
/**
|
|
2135
|
-
* https://github.com/facebook/react/issues/14099#issuecomment-440013892
|
|
2135
|
+
* Inspired by https://github.com/facebook/react/issues/14099#issuecomment-440013892
|
|
2136
|
+
* See RFC in https://github.com/reactjs/rfcs/pull/220
|
|
2136
2137
|
*/
|
|
2137
2138
|
|
|
2138
2139
|
function useEventCallback(fn) {
|
|
@@ -4122,7 +4123,8 @@ var iconButtonStyle = function iconButtonStyle(button) {
|
|
|
4122
4123
|
};
|
|
4123
4124
|
var buttonVariants = function buttonVariants(buttons) {
|
|
4124
4125
|
var stylingFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : buttonStyle;
|
|
4125
|
-
return Object.keys(buttons).map(function (
|
|
4126
|
+
return Object.keys(buttons).map(function (key) {
|
|
4127
|
+
var variant = key;
|
|
4126
4128
|
return {
|
|
4127
4129
|
props: {
|
|
4128
4130
|
variant: variant
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/theme",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.1.0",
|
|
4
4
|
"description": "GeoWeb Theme library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"dependencies": {},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"@mui/material": "5.12.0",
|
|
16
|
-
"@mui/system": "5.14.
|
|
16
|
+
"@mui/system": "5.14.10",
|
|
17
17
|
"@mui/x-date-pickers": "6.2.1",
|
|
18
18
|
"react": "18.2.0"
|
|
19
19
|
}
|
package/src/index.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/lib/types.d.ts
CHANGED
|
File without changes
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { ComponentsVariants, CSSObject } from '@mui/material';
|
|
2
|
-
import { ButtonStyle } from '../types';
|
|
2
|
+
import { ButtonStyle, ButtonVariant } from '../types';
|
|
3
3
|
export declare const BORDER_RADIUS = 3;
|
|
4
4
|
export declare const defaultButtonStyle: (button: ButtonStyle) => CSSObject;
|
|
5
5
|
export declare const buttonStyle: (button: ButtonStyle) => CSSObject;
|
|
6
6
|
export declare const iconButtonStyle: (button: ButtonStyle) => CSSObject;
|
|
7
|
-
|
|
7
|
+
type PartialButtonVariants = Partial<Record<ButtonVariant, ButtonStyle>>;
|
|
8
|
+
export declare const buttonVariants: (buttons: PartialButtonVariants, stylingFn?: (button: ButtonStyle) => CSSObject) => ComponentsVariants['MuiButton'];
|
|
8
9
|
export declare const variantsToClassName: (buttonVariants: ComponentsVariants['MuiButton']) => CSSObject;
|
|
10
|
+
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/lib/utils/utils.d.ts
CHANGED
|
File without changes
|
|
File without changes
|