@aws-amplify/ui-react 2.15.3 → 2.15.6
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/Authenticator/Router/index.js +1 -1
- package/dist/esm/components/Geo/Geocoder/index.js +1 -1
- package/dist/esm/components/Geo/MapView/index.js +1 -1
- package/dist/esm/primitives-catalog.js +4 -0
- package/dist/index.js +1 -1
- package/dist/primitives.json +4 -0
- package/dist/styles.css +11 -3
- package/dist/types/components/Authenticator/Router/index.d.ts +7 -5
- package/dist/types/components/Authenticator/withAuthenticator.d.ts +1 -1
- package/dist/types/components/Geo/Geocoder/index.d.ts +1 -1
- package/package.json +7 -7
package/dist/primitives.json
CHANGED
package/dist/styles.css
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Do not edit directly
|
|
7
|
-
* Generated on
|
|
7
|
+
* Generated on Tue, 26 Apr 2022 22:04:22 GMT
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
:root, [data-amplify-theme] {
|
|
@@ -673,7 +673,6 @@
|
|
|
673
673
|
--amplify-components-switchfield-track-background-color: var(--amplify-colors-background-tertiary);
|
|
674
674
|
--amplify-components-switchfield-thumb-border-color: var(--amplify-colors-border-tertiary);
|
|
675
675
|
--amplify-components-switchfield-thumb-background-color: var(--amplify-colors-background-primary);
|
|
676
|
-
--amplify-components-switchfield-focused-shadow: var(--amplify-shadows-small);
|
|
677
676
|
--amplify-components-sliderfield-thumb-hover-background-color: var(--amplify-colors-background-primary);
|
|
678
677
|
--amplify-components-sliderfield-thumb-border-color: var(--amplify-colors-border-primary);
|
|
679
678
|
--amplify-components-sliderfield-thumb-box-shadow: var(--amplify-shadows-small);
|
|
@@ -801,6 +800,7 @@
|
|
|
801
800
|
--amplify-components-tabs-item-active-color: var(--amplify-colors-font-interactive);
|
|
802
801
|
--amplify-components-tabs-item-focus-color: var(--amplify-colors-font-focus);
|
|
803
802
|
--amplify-components-tabs-item-hover-color: var(--amplify-colors-font-hover);
|
|
803
|
+
--amplify-components-switchfield-focused-shadow: 0px 0px 0px 2px var(--amplify-colors-border-focus);
|
|
804
804
|
--amplify-components-sliderfield-thumb-focus-box-shadow: 0 0 0 3px var(--amplify-colors-border-focus);
|
|
805
805
|
--amplify-components-sliderfield-thumb-hover-border-color: var(--amplify-colors-border-focus);
|
|
806
806
|
--amplify-components-sliderfield-thumb-disabled-background-color: var(--amplify-colors-background-disabled);
|
|
@@ -1623,8 +1623,12 @@ h6.amplify-heading {
|
|
|
1623
1623
|
|
|
1624
1624
|
/* Center by default */
|
|
1625
1625
|
|
|
1626
|
-
[data-amplify-authenticator]
|
|
1626
|
+
[data-amplify-authenticator] {
|
|
1627
1627
|
display: grid;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
[data-amplify-authenticator][data-variation=modal] {
|
|
1631
|
+
overflow-y: auto;
|
|
1628
1632
|
width: var(--amplify-components-authenticator-modal-width);
|
|
1629
1633
|
height: var(--amplify-components-authenticator-modal-height);
|
|
1630
1634
|
background-color: var(--amplify-components-authenticator-modal-background-color);
|
|
@@ -2564,6 +2568,10 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
2564
2568
|
}
|
|
2565
2569
|
}
|
|
2566
2570
|
|
|
2571
|
+
.amplify-select option {
|
|
2572
|
+
color: initial;
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2567
2575
|
.amplify-select[data-size=small] {
|
|
2568
2576
|
min-width: var(--amplify-components-select-small-min-width);
|
|
2569
2577
|
}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { CognitoUserAmplify } from '@aws-amplify/ui';
|
|
3
3
|
import { useAuthenticator } from '../hooks/useAuthenticator';
|
|
4
|
+
declare type AuthenticatorChildren = React.ReactNode | (({ signOut, user, }: {
|
|
5
|
+
signOut?: ReturnType<typeof useAuthenticator>['signOut'];
|
|
6
|
+
user?: CognitoUserAmplify;
|
|
7
|
+
}) => React.ReactNode);
|
|
4
8
|
export declare type RouterProps = {
|
|
5
9
|
className?: string;
|
|
6
|
-
children?:
|
|
7
|
-
signOut: ReturnType<typeof useAuthenticator>['signOut'];
|
|
8
|
-
user: CognitoUserAmplify;
|
|
9
|
-
}) => JSX.Element;
|
|
10
|
+
children?: AuthenticatorChildren;
|
|
10
11
|
variation?: 'default' | 'modal';
|
|
11
12
|
hideSignUp?: boolean;
|
|
12
13
|
};
|
|
13
14
|
export declare function Router({ children, className, variation, hideSignUp, }: RouterProps): JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AuthenticatorProps } from './Authenticator';
|
|
3
3
|
export declare type WithAuthenticatorOptions = Omit<AuthenticatorProps, 'children'>;
|
|
4
|
-
export declare function withAuthenticator(Component:
|
|
4
|
+
export declare function withAuthenticator<Props>(Component: (props?: Props) => JSX.Element, options?: WithAuthenticatorOptions): (props: Props) => JSX.Element;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* return <Geocoder />;
|
|
19
19
|
* }
|
|
20
20
|
*/
|
|
21
|
-
export declare const Geocoder: (
|
|
21
|
+
export declare const Geocoder: (props: GeocoderProps) => JSX.Element;
|
|
22
22
|
export declare type GeocoderProps = {
|
|
23
23
|
/**
|
|
24
24
|
* A bounding box given as an array in the format `[minX, minY, maxX, maxY]`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/ui-react",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.6",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -44,7 +44,8 @@
|
|
|
44
44
|
"build": "yarn run build:ts && yarn run build:catalog",
|
|
45
45
|
"build:ts": "rollup --config",
|
|
46
46
|
"build:catalog": "ts-node scripts/generatePrimitivesCatalog.ts",
|
|
47
|
-
"dev": "
|
|
47
|
+
"dev": "tsup --watch",
|
|
48
|
+
"dev:build": "tsup",
|
|
48
49
|
"update:icons": "node scripts/updateIcons.js",
|
|
49
50
|
"build:icons": "yarn run clean:icons && node scripts/generateIcons.js",
|
|
50
51
|
"clean": "rimraf dist node_modules",
|
|
@@ -56,7 +57,7 @@
|
|
|
56
57
|
"test:unit:watch": "jest --watch"
|
|
57
58
|
},
|
|
58
59
|
"dependencies": {
|
|
59
|
-
"@aws-amplify/ui": "3.6.
|
|
60
|
+
"@aws-amplify/ui": "3.6.6",
|
|
60
61
|
"@aws-amplify/ui-react-v1": "npm:@aws-amplify/ui-react@1.2.9",
|
|
61
62
|
"@radix-ui/react-accordion": "0.1.6",
|
|
62
63
|
"@radix-ui/react-dropdown-menu": "0.1.6",
|
|
@@ -67,8 +68,8 @@
|
|
|
67
68
|
"deepmerge": "4.2.2",
|
|
68
69
|
"lodash": "4.17.21",
|
|
69
70
|
"mapbox-gl": "npm:empty-npm-package@1.0.0",
|
|
70
|
-
"maplibre-gl": "1.15.
|
|
71
|
-
"maplibre-gl-js-amplify": "1.
|
|
71
|
+
"maplibre-gl": "1.15.3",
|
|
72
|
+
"maplibre-gl-js-amplify": "1.5.0",
|
|
72
73
|
"qrcode": "1.5.0",
|
|
73
74
|
"react-generate-context": "1.0.1",
|
|
74
75
|
"react-map-gl": "7.0.10"
|
|
@@ -107,8 +108,7 @@
|
|
|
107
108
|
"rollup-plugin-terser": "^7.0.2",
|
|
108
109
|
"ts-jest": "^27.0.3",
|
|
109
110
|
"ts-morph": "^12.0.0",
|
|
110
|
-
"ts-node": "^10.2.1"
|
|
111
|
-
"typescript": "^4.3.2"
|
|
111
|
+
"ts-node": "^10.2.1"
|
|
112
112
|
},
|
|
113
113
|
"sideEffects": [
|
|
114
114
|
"dist/**/*.css"
|