@aws-amplify/ui-react 2.15.3 → 2.15.4

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/styles.css CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  /**
6
6
  * Do not edit directly
7
- * Generated on Wed, 13 Apr 2022 22:17:55 GMT
7
+ * Generated on Wed, 20 Apr 2022 01:36:14 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);
@@ -1,13 +1,15 @@
1
- /// <reference types="react" />
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?: ({ signOut, user, }: {
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: any, options?: WithAuthenticatorOptions): (props: any) => JSX.Element;
4
+ export declare function withAuthenticator<Props>(Component: (props?: Props) => JSX.Element, options?: WithAuthenticatorOptions): (props: Props) => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-react",
3
- "version": "2.15.3",
3
+ "version": "2.15.4",
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": "rollup --config --watch",
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.3",
60
+ "@aws-amplify/ui": "3.6.4",
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.2",
71
- "maplibre-gl-js-amplify": "1.2.3",
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"