@aws-amplify/ui-react 2.15.5 → 2.15.8

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 Thu, 21 Apr 2022 22:58:20 GMT
7
+ * Generated on Fri, 29 Apr 2022 20:57:02 GMT
8
8
  */
9
9
 
10
10
  :root, [data-amplify-theme] {
@@ -1623,9 +1623,12 @@ h6.amplify-heading {
1623
1623
 
1624
1624
  /* Center by default */
1625
1625
 
1626
+ [data-amplify-authenticator] {
1627
+ display: grid;
1628
+ }
1629
+
1626
1630
  [data-amplify-authenticator][data-variation=modal] {
1627
1631
  overflow-y: auto;
1628
- display: grid;
1629
1632
  width: var(--amplify-components-authenticator-modal-width);
1630
1633
  height: var(--amplify-components-authenticator-modal-height);
1631
1634
  background-color: var(--amplify-components-authenticator-modal-background-color);
@@ -1673,6 +1676,23 @@ h6.amplify-heading {
1673
1676
  }
1674
1677
  }
1675
1678
 
1679
+ .amplify-authenticator__column {
1680
+ display: flex;
1681
+ flex-direction: column;
1682
+ }
1683
+
1684
+ .amplify-authenticator__subtitle {
1685
+ margin-bottom: var(--amplify-space-medium);
1686
+ }
1687
+
1688
+ .amplify-authenticator__heading {
1689
+ font-size: var(--amplify-font-sizes-xl);
1690
+ }
1691
+
1692
+ .amplify-authenticator__federated-text {
1693
+ align-self: center;
1694
+ }
1695
+
1676
1696
  .amplify-card {
1677
1697
  background-color: var(--amplify-components-card-background-color);
1678
1698
  border-radius: var(--amplify-components-card-border-radius);
@@ -2565,6 +2585,10 @@ html[dir=rtl] .amplify-field-group__inner-start {
2565
2585
  }
2566
2586
  }
2567
2587
 
2588
+ .amplify-select option {
2589
+ color: initial;
2590
+ }
2591
+
2568
2592
  .amplify-select[data-size=small] {
2569
2593
  min-width: var(--amplify-components-select-small-min-width);
2570
2594
  }
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ export declare const getTotpCode: (issuer: string, username: string, secret: string) => string;
2
3
  export declare const SetupTOTP: {
3
4
  (): JSX.Element;
4
5
  Header(): JSX.Element;
@@ -36,12 +36,9 @@ export declare type InternalAuthenticatorContext = {
36
36
  export declare type Selector = (context: AuthenticatorContext) => Array<any>;
37
37
  export declare const useAuthenticator: (selector?: Selector) => {
38
38
  /** @deprecated For internal use only */
39
- _state: AuthMachineState;
39
+ _state: import("xstate").State<import("@aws-amplify/ui").AuthContext, import("@aws-amplify/ui").AuthEvent, any, any, any>;
40
40
  /** @deprecated For internal use only */
41
- _send: (event: import("xstate").SCXML.Event<import("@aws-amplify/ui").AuthEvent> | import("xstate").SingleOrArray<import("xstate").Event<import("@aws-amplify/ui").AuthEvent>>, payload?: import("xstate").EventData) => import("xstate").State<import("@aws-amplify/ui").AuthContext, import("@aws-amplify/ui").AuthEvent, any, {
42
- value: any;
43
- context: import("@aws-amplify/ui").AuthContext;
44
- }, import("xstate").TypegenDisabled>;
41
+ _send: (event: import("xstate").SCXML.Event<import("@aws-amplify/ui").AuthEvent> | import("xstate").SingleOrArray<import("xstate").Event<import("@aws-amplify/ui").AuthEvent>>, payload?: import("xstate").EventData) => import("xstate").State<import("@aws-amplify/ui").AuthContext, import("@aws-amplify/ui").AuthEvent, any, any, any>;
45
42
  error: string;
46
43
  hasValidationErrors: boolean;
47
44
  isPending: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-react",
3
- "version": "2.15.5",
3
+ "version": "2.15.8",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "exports": {
@@ -57,13 +57,13 @@
57
57
  "test:unit:watch": "jest --watch"
58
58
  },
59
59
  "dependencies": {
60
- "@aws-amplify/ui": "3.6.5",
60
+ "@aws-amplify/ui": "3.6.8",
61
61
  "@aws-amplify/ui-react-v1": "npm:@aws-amplify/ui-react@1.2.9",
62
62
  "@radix-ui/react-accordion": "0.1.6",
63
63
  "@radix-ui/react-dropdown-menu": "0.1.6",
64
64
  "@radix-ui/react-slider": "0.1.4",
65
65
  "@radix-ui/react-tabs": "0.1.5",
66
- "@xstate/react": "1.6.3",
66
+ "@xstate/react": "3.0.0",
67
67
  "classnames": "2.3.1",
68
68
  "deepmerge": "4.2.2",
69
69
  "lodash": "4.17.21",