@aws-amplify/ui-react 2.18.2 → 2.18.3
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/dist/esm/components/{AmplifyProvider → ThemeProvider}/AmplifyContext.js +0 -0
- package/dist/esm/components/{AmplifyProvider → ThemeProvider}/index.js +1 -1
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/hooks/useAmplify.js +1 -1
- package/dist/esm/hooks/useTheme.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/primitives/SliderField/SliderField.js +1 -1
- package/dist/esm/primitives/shared/styleUtils.js +1 -1
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/{AmplifyProvider → ThemeProvider}/AmplifyContext.d.ts +0 -0
- package/dist/types/components/{AmplifyProvider → ThemeProvider}/index.d.ts +3 -2
- package/dist/types/components/index.d.ts +1 -1
- package/dist/types/hooks/useTheme.d.ts +1 -1
- package/dist/types/primitives/types/expander.d.ts +2 -1
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
File without changes
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Theme } from '@aws-amplify/ui';
|
|
3
3
|
export declare type ColorMode = 'system' | 'light' | 'dark';
|
|
4
|
-
interface
|
|
4
|
+
interface ThemeProviderProps {
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
colorMode?: ColorMode;
|
|
7
7
|
theme?: Theme;
|
|
8
8
|
nonce?: string;
|
|
9
9
|
}
|
|
10
|
-
export declare function AmplifyProvider({ children, colorMode, theme, nonce, }:
|
|
10
|
+
export declare function AmplifyProvider({ children, colorMode, theme, nonce, }: ThemeProviderProps): JSX.Element;
|
|
11
|
+
export declare const ThemeProvider: typeof AmplifyProvider;
|
|
11
12
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WebTheme } from '@aws-amplify/ui';
|
|
2
|
-
import { AmplifyContextType } from '../components/
|
|
2
|
+
import { AmplifyContextType } from '../components/ThemeProvider/AmplifyContext';
|
|
3
3
|
export declare const useTheme: () => WebTheme;
|
|
4
4
|
/**
|
|
5
5
|
* Get current Theme object value from Amplify context.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ViewProps } from '../types/view';
|
|
2
3
|
declare type ExpanderType = 'single' | 'multiple';
|
|
3
4
|
export interface ExpanderProps extends ViewProps {
|
|
@@ -26,7 +27,7 @@ export interface ExpanderItemProps extends ViewProps {
|
|
|
26
27
|
/**
|
|
27
28
|
* The content of the heading.
|
|
28
29
|
*/
|
|
29
|
-
title?:
|
|
30
|
+
title?: React.ReactNode;
|
|
30
31
|
/**
|
|
31
32
|
* A unique value for the item.
|
|
32
33
|
*/
|