@aws-amplify/ui 3.0.2 → 3.0.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/styles.css CHANGED
@@ -3,7 +3,7 @@
3
3
  */
4
4
  /**
5
5
  * Do not edit directly
6
- * Generated on Wed, 24 Nov 2021 22:44:54 GMT
6
+ * Generated on Wed, 05 Jan 2022 00:00:31 GMT
7
7
  */
8
8
  :root, [data-amplify-theme] {
9
9
  --amplify-transforms-slide-x-large: translateX(2em);
@@ -81,7 +81,7 @@
81
81
  --amplify-font-sizes-xxxs: 0.375rem;
82
82
  --amplify-fonts-default-static: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
83
83
  "Segoe UI", Oxygen, Ubuntu, Cantarell, "Open Sans", sans-serif;
84
- --amplify-fonts-default-variable: "InterVariable", -apple-system, BlinkMacSystemFont,
84
+ --amplify-fonts-default-variable: "InterVariable", "Inter var", "Inter", -apple-system, BlinkMacSystemFont,
85
85
  "Helvetica Neue", "Segoe UI", Oxygen, Ubuntu, Cantarell, "Open Sans",
86
86
  sans-serif;
87
87
  --amplify-colors-transparent: transparent;
@@ -274,6 +274,7 @@
274
274
  --amplify-components-tabs-item-border-style: solid;
275
275
  --amplify-components-tabs-item-border-color: var(--amplify-colors-border-secondary);
276
276
  --amplify-components-tabs-item-background-color: transparent;
277
+ --amplify-components-tabs-gap: 0;
277
278
  --amplify-components-tabs-border-width: var(--amplify-border-widths-medium);
278
279
  --amplify-components-tabs-border-style: solid;
279
280
  --amplify-components-tabs-border-color: var(--amplify-colors-border-secondary);
@@ -812,12 +813,12 @@
812
813
  --amplify-components-alert-align-items: center;
813
814
  }
814
815
 
815
- html {
816
+ [data-amplify-theme] {
816
817
  font-family: var(--amplify-fonts-default-static);
817
818
  }
818
819
 
819
820
  @supports (font-variation-settings: normal) {
820
- html {
821
+ [data-amplify-theme] {
821
822
  font-family: var(--amplify-fonts-default-variable);
822
823
  }
823
824
  }
@@ -1436,7 +1437,7 @@ h6.amplify-heading {
1436
1437
  display: grid;
1437
1438
  width: 100vw;
1438
1439
  height: 100vh;
1439
- overflow: auto;
1440
+ height: -webkit-fill-available;
1440
1441
  background-color: var(--amplify-colors-background-secondary, #e1e5e9);
1441
1442
  /* Override browser default `body { margin: 8px }` */
1442
1443
  position: fixed;
@@ -1444,6 +1445,31 @@ h6.amplify-heading {
1444
1445
  left: 0;
1445
1446
  /* Having a z-index at least "wins" by default */
1446
1447
  z-index: 1;
1448
+ /* top-align at the top 20% of the screen */
1449
+ box-sizing: border-box;
1450
+ padding-top: 20vh;
1451
+ align-content: flex-start;
1452
+ }
1453
+ @media (max-width: 30rem) {
1454
+ [data-amplify-authenticator][data-variation=modal] {
1455
+ overflow: auto;
1456
+ padding-top: 0;
1457
+ }
1458
+ }
1459
+
1460
+ [data-amplify-authenticator][data-variation=modal] [data-amplify-router-content] {
1461
+ max-height: 60vh;
1462
+ overflow-y: auto;
1463
+ /* Scroll shadows, adapted from https://codepen.io/chriscoyier/pen/YzXBYvL */
1464
+ background: linear-gradient(white 30%, rgba(255, 255, 255, 0)) center top, linear-gradient(rgba(255, 255, 255, 0), white 70%) center bottom, radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0)) center top, radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0)) center bottom;
1465
+ background-repeat: no-repeat;
1466
+ background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
1467
+ background-attachment: local, local, scroll, scroll;
1468
+ }
1469
+ @media (max-width: 30rem) {
1470
+ [data-amplify-authenticator][data-variation=modal] [data-amplify-router-content] {
1471
+ max-height: unset;
1472
+ }
1447
1473
  }
1448
1474
 
1449
1475
  /* Texture for modal */
@@ -2616,6 +2642,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
2616
2642
  border-width: 0 0 var(--amplify-components-tabs-border-width) 0;
2617
2643
  border-style: var(--amplify-components-tabs-border-style);
2618
2644
  border-color: var(--amplify-components-tabs-border-color);
2645
+ gap: var(--amplify-components-tabs-gap);
2619
2646
  }
2620
2647
  .amplify-tabs[data-indicator-position=top] {
2621
2648
  border-width: var(--amplify-components-tabs-border-width) 0 0 0;
package/dist/theme.css CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 24 Nov 2021 22:44:54 GMT
3
+ * Generated on Wed, 05 Jan 2022 00:00:31 GMT
4
4
  */
5
5
 
6
6
  :root, [data-amplify-theme] {
@@ -79,7 +79,7 @@
79
79
  --amplify-font-sizes-xxxs: 0.375rem;
80
80
  --amplify-fonts-default-static: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
81
81
  'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
82
- --amplify-fonts-default-variable: 'InterVariable', -apple-system, BlinkMacSystemFont,
82
+ --amplify-fonts-default-variable: 'InterVariable', 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont,
83
83
  'Helvetica Neue', 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans',
84
84
  sans-serif;
85
85
  --amplify-colors-transparent: transparent;
@@ -272,6 +272,7 @@
272
272
  --amplify-components-tabs-item-border-style: solid;
273
273
  --amplify-components-tabs-item-border-color: var(--amplify-colors-border-secondary);
274
274
  --amplify-components-tabs-item-background-color: transparent;
275
+ --amplify-components-tabs-gap: 0;
275
276
  --amplify-components-tabs-border-width: var(--amplify-border-widths-medium);
276
277
  --amplify-components-tabs-border-style: solid;
277
278
  --amplify-components-tabs-border-color: var(--amplify-colors-border-secondary);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui",
3
- "version": "3.0.2",
3
+ "version": "3.0.6",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "exports": {