@aws-amplify/ui-react 1.2.26 → 1.2.54-legacy-ui.10

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.
Files changed (77) hide show
  1. package/CHANGELOG.md +224 -0
  2. package/dist/0.js.map +1 -1
  3. package/dist/1.js +656 -2000
  4. package/dist/1.js.map +1 -1
  5. package/dist/10.js +23 -681
  6. package/dist/10.js.map +1 -1
  7. package/dist/11.js +1157 -20
  8. package/dist/11.js.map +1 -1
  9. package/dist/12.js +61 -1087
  10. package/dist/12.js.map +1 -1
  11. package/dist/13.js +1146 -64
  12. package/dist/13.js.map +1 -1
  13. package/dist/14.js +34 -1163
  14. package/dist/14.js.map +1 -1
  15. package/dist/15.js +17 -37
  16. package/dist/15.js.map +1 -1
  17. package/dist/16.js +109 -13
  18. package/dist/16.js.map +1 -1
  19. package/dist/17.js +32 -67
  20. package/dist/17.js.map +1 -1
  21. package/dist/18.js +236 -46
  22. package/dist/18.js.map +1 -1
  23. package/dist/19.js +35 -224
  24. package/dist/19.js.map +1 -1
  25. package/dist/2.js +2190 -159
  26. package/dist/2.js.map +1 -1
  27. package/dist/20.js +28 -48
  28. package/dist/20.js.map +1 -1
  29. package/dist/21.js +46 -25
  30. package/dist/21.js.map +1 -1
  31. package/dist/22.js +22 -25
  32. package/dist/22.js.map +1 -1
  33. package/dist/23.js +254 -25
  34. package/dist/23.js.map +1 -1
  35. package/dist/24.js +62 -230
  36. package/dist/24.js.map +1 -1
  37. package/dist/25.js +28 -62
  38. package/dist/25.js.map +1 -1
  39. package/dist/26.js +349 -30
  40. package/dist/26.js.map +1 -1
  41. package/dist/27.js +24 -352
  42. package/dist/27.js.map +1 -1
  43. package/dist/28.js +25 -22
  44. package/dist/28.js.map +1 -1
  45. package/dist/29.js +483 -26
  46. package/dist/29.js.map +1 -1
  47. package/dist/3.js +2710 -1818
  48. package/dist/3.js.map +1 -1
  49. package/dist/30.js +1 -502
  50. package/dist/30.js.map +1 -1
  51. package/dist/31.js +1 -1
  52. package/dist/31.js.map +1 -1
  53. package/dist/32.js +12 -1
  54. package/dist/32.js.map +1 -1
  55. package/dist/4.js +361 -3669
  56. package/dist/4.js.map +1 -1
  57. package/dist/5.js +48 -242
  58. package/dist/5.js.map +1 -1
  59. package/dist/6.js +118 -74
  60. package/dist/6.js.map +1 -1
  61. package/dist/7.js +55 -99
  62. package/dist/7.js.map +1 -1
  63. package/dist/8.js +98 -46
  64. package/dist/8.js.map +1 -1
  65. package/dist/9.js +474 -412
  66. package/dist/9.js.map +1 -1
  67. package/dist/@aws-amplify/ui-react.js +50 -44
  68. package/dist/@aws-amplify/ui-react.js.map +1 -1
  69. package/dist/aws-amplify-react.min.js +2 -2
  70. package/dist/aws-amplify-react.min.js.map +1 -1
  71. package/dist/polyfills-core-js.js +5 -11
  72. package/dist/polyfills-core-js.js.map +1 -1
  73. package/dist/polyfills-css-shim.js.map +1 -1
  74. package/dist/polyfills-dom.js.map +1 -1
  75. package/package.json +3 -3
  76. package/dist/33.js +0 -13
  77. package/dist/33.js.map +0 -1
package/dist/20.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///./node_modules/@aws-amplify/ui-components/dist/esm-es5/amplify-greetings.entry.js"],"names":["amplifyGreetingsCss","AmplifyGreetings","registerInstance","h","name","handleAuthStateChange"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAIA,mBAAmB,GAAvB;;AACA,IAAIC,gBAAgB;AAAG;AAAe,YAAY;AAC9C,qCAAmC;AAC/BC,gEAAgB,OAAhBA,OAAgB,CAAhBA;AACA;;AACA;AACA;;AACA;AACA;;AACA;AACH;;AACDD,kBAAgB,CAAhBA,mBAAoC,YAAY;AAC5C,WAAQE,4DAAC,WAAW;AAAE,eAAO;AAAT,KAAX,EAAmCA,4DAAC,SAAS;AAAE,eAAO;AAAT,KAAT,EAA4BA,4DAAC,SAAS;AAAEC,UAAI,EAAE;AAAR,KAAT,EAA2B,aAAaD,4DAAC,eAAe,KAAzH,IAA0G,CAAzC,CAA7B,CAApC,EAAuIA,4DAAC,SAAS;AAAE,eAAO;AAAT,KAAT,EAA2BA,4DAAC,SAAS;AAAEC,UAAI,EAAE;AAAR,KAAT,EAA0BD,4DAAC,sBAAsB,iBAAkBA,4DAAC,SAAS;AAAEC,UAAI,EAAE;AAAR,KAAT,EAAwCD,4DAAC,0BAA0B,KAA5G,QAAkF,CAAzC,CAAzC,EAA8HA,4DAAC,qBAAqB;AAAEE,2BAAqB,EAAE,KAAKA;AAA9B,KAArB,CAA/H,CAA3B,CAA5B,CAAxI,CAAT;AADJJ;;AAGA;AAbJ,CAAsC,EAAtC;;AAeAA,gBAAgB,CAAhBA","file":"20.js","sourcesContent":["import { r as registerInstance, h } from './index-83f2275b.js';\nimport '@aws-amplify/core';\nimport './auth-types-78df304e.js';\nimport '@aws-amplify/auth';\nimport './Translations-108d469f.js';\nimport './constants-c8ecaa24.js';\nimport { d as dispatchAuthStateChangeEvent } from './helpers-14fcb50c.js';\nvar amplifyGreetingsCss = \":host{--background-color:var(--amplify-white);--border-color:var(--amplify-light-grey);--font-family:var(--amplify-font-family)}.greetings{display:-ms-flexbox;display:flex;border:1px solid transparent;background-color:var(--background-color);border-color:var(--border-color);padding:0.625rem;font-family:var(--font-family);-ms-flex-pack:justify;justify-content:space-between}.nav{display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center}.logo{display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;justify-self:flex-start}amplify-sign-out{margin-left:1rem}\";\nvar AmplifyGreetings = /** @class */ (function () {\n function AmplifyGreetings(hostRef) {\n registerInstance(this, hostRef);\n /** Username displayed in the greetings */\n this.username = null;\n /** Logo displayed inside of the header */\n this.logo = null;\n /** Auth state change handler for this component */\n this.handleAuthStateChange = dispatchAuthStateChangeEvent;\n }\n AmplifyGreetings.prototype.render = function () {\n return (h(\"header\", { class: \"greetings\" }, h(\"span\", { class: \"logo\" }, h(\"slot\", { name: \"logo\" }, this.logo && h(\"span\", null, this.logo))), h(\"span\", { class: \"nav\" }, h(\"slot\", { name: \"nav\" }, h(\"amplify-nav\", null, this.username && (h(\"slot\", { name: \"greetings-message\" }, h(\"span\", null, \"Hello, \", this.username))), h(\"amplify-sign-out\", { handleAuthStateChange: this.handleAuthStateChange }))))));\n };\n return AmplifyGreetings;\n}());\nAmplifyGreetings.style = amplifyGreetingsCss;\nexport { AmplifyGreetings as amplify_greetings };\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///./node_modules/@aws-amplify/ui-components/dist/esm-es5/amplify-icon-button.entry.js"],"names":["amplifyIconButtonCss","AmplifyIconButton","hostRef","registerInstance","tooltip","autoShowTooltip","prototype","componentWillLoad","console","warn","render","h","text","shouldAutoShow","name","style"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AACA,IAAIA,oBAAoB,GAAG,k4BAA3B;;AACA,IAAIC,iBAAiB;AAAG;AAAe,YAAY;EAC/C,SAASA,iBAAT,CAA2BC,OAA3B,EAAoC;IAChCC,4DAAgB,CAAC,IAAD,EAAOD,OAAP,CAAhBC;IACA;;IACA,KAAKC,OAAL,GAAe,IAAf;IACA;;IACA,KAAKC,eAAL,GAAuB,KAAvB;EACH;;EACDJ,iBAAiB,CAACK,SAAlBL,CAA4BM,iBAA5BN,GAAgD,YAAY;IACxDO,OAAO,CAACC,IAARD,CAAa,kMAAbA;EADJ;;EAGAP,iBAAiB,CAACK,SAAlBL,CAA4BS,MAA5BT,GAAqC,YAAY;IAC7C,OAAQU,4DAAC,CAAC,MAAD,EAAS;MAAE,SAAO;IAAT,CAAT,EAAqCA,4DAAC,CAAC,iBAAD,EAAoB;MAAEC,IAAI,EAAE,KAAKR,OAAb;MAAsBS,cAAc,EAAE,KAAKR;IAA3C,CAApB,EAAkFM,4DAAC,CAAC,QAAD,EAAW,IAAX,EAAiBA,4DAAC,CAAC,cAAD,EAAiB;MAAEG,IAAI,EAAE,KAAKA;IAAb,CAAjB,CAAlB,CAAnF,CAAtC,CAAT;EADJ;;EAGA,OAAOb,iBAAP;AAdmC,GAAvC;;AAgBAA,iBAAiB,CAACc,KAAlBd,GAA0BD,oBAA1BC","file":"20.js","sourcesContent":["import { r as registerInstance, h } from './index-83f2275b.js';\nvar amplifyIconButtonCss = \":host{--button-color:var(--amplify-secondary-contrast);--button-background-hover:var(--amplify-secondary-color)}.action-button button{position:relative;padding:0;background:none;height:54px;width:54px;cursor:pointer;outline:none;text-decoration:none;border:none;border-radius:30px;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;color:var(--button-color);fill:currentColor}.action-button button:hover{background-color:var(--button-background-hover);-webkit-box-shadow:0.3px 0.3px 0.3px rgba(0, 0, 0, 0.3);box-shadow:0.3px 0.3px 0.3px rgba(0, 0, 0, 0.3)}.action-button button:hover>.tooltip{display:block}.action-button button:hover>svg{-webkit-filter:none;filter:none}.action-button button:focus{outline:none}.action-button button svg{width:1.8em;height:1.8em;-webkit-filter:drop-shadow(1px 1px 1px var(--amplify-grey));filter:drop-shadow(1px 1px 1px var(--amplify-grey))}\";\nvar AmplifyIconButton = /** @class */ (function () {\n function AmplifyIconButton(hostRef) {\n registerInstance(this, hostRef);\n /** (Optional) The tooltip that will show on hover of the button */\n this.tooltip = null;\n /** (Optional) Whether or not to show the tooltip automatically */\n this.autoShowTooltip = false;\n }\n AmplifyIconButton.prototype.componentWillLoad = function () {\n console.warn('Version `1.x` of Amplify UI has been deprecated and will be removed in a future major version of `aws-amplify`. Please visit https://ui.docs.amplify.aws/ for the current version of Amplify UI.');\n };\n AmplifyIconButton.prototype.render = function () {\n return (h(\"span\", { class: \"action-button\" }, h(\"amplify-tooltip\", { text: this.tooltip, shouldAutoShow: this.autoShowTooltip }, h(\"button\", null, h(\"amplify-icon\", { name: this.name })))));\n };\n return AmplifyIconButton;\n}());\nAmplifyIconButton.style = amplifyIconButtonCss;\nexport { AmplifyIconButton as amplify_icon_button };\n"],"sourceRoot":""}
package/dist/21.js CHANGED
@@ -1,47 +1,68 @@
1
1
  (this["webpackJsonpaws_amplify_react"] = this["webpackJsonpaws_amplify_react"] || []).push([[21],{
2
2
 
3
- /***/ "../amplify-ui-components/dist/esm-es5/amplify-icon-button.entry.js":
4
- /*!**************************************************************************!*\
5
- !*** ../amplify-ui-components/dist/esm-es5/amplify-icon-button.entry.js ***!
6
- \**************************************************************************/
7
- /*! exports provided: amplify_icon_button */
3
+ /***/ "../amplify-ui-components/dist/esm-es5/amplify-icon.entry.js":
4
+ /*!*******************************************************************!*\
5
+ !*** ../amplify-ui-components/dist/esm-es5/amplify-icon.entry.js ***!
6
+ \*******************************************************************/
7
+ /*! exports provided: amplify_icon */
8
8
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
9
9
 
10
10
  "use strict";
11
11
  __webpack_require__.r(__webpack_exports__);
12
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "amplify_icon_button", function() { return AmplifyIconButton; });
12
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "amplify_icon", function() { return AmplifyIcon; });
13
13
  /* harmony import */ var _index_83f2275b_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index-83f2275b.js */ "../amplify-ui-components/dist/esm-es5/index-83f2275b.js");
14
+ /* harmony import */ var _icons_c10e1d4d_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./icons-c10e1d4d.js */ "../amplify-ui-components/dist/esm-es5/icons-c10e1d4d.js");
15
+ function _typeof(obj) {
16
+ "@babel/helpers - typeof";
14
17
 
15
- var amplifyIconButtonCss = ":host{--button-color:var(--amplify-secondary-contrast);--button-background-hover:var(--amplify-secondary-color)}.action-button button{position:relative;padding:0;background:none;height:54px;width:54px;cursor:pointer;outline:none;text-decoration:none;border:none;border-radius:30px;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;color:var(--button-color);fill:currentColor}.action-button button:hover{background-color:var(--button-background-hover);-webkit-box-shadow:0.3px 0.3px 0.3px rgba(0, 0, 0, 0.3);box-shadow:0.3px 0.3px 0.3px rgba(0, 0, 0, 0.3)}.action-button button:hover>.tooltip{display:block}.action-button button:hover>svg{-webkit-filter:none;filter:none}.action-button button:focus{outline:none}.action-button button svg{width:1.8em;height:1.8em;-webkit-filter:drop-shadow(1px 1px 1px var(--amplify-grey));filter:drop-shadow(1px 1px 1px var(--amplify-grey))}";
18
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
19
+ return typeof obj;
20
+ } : function (obj) {
21
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
22
+ }, _typeof(obj);
23
+ }
16
24
 
17
- var AmplifyIconButton =
25
+
26
+
27
+ var amplifyIconCss = ".sc-amplify-icon-h{--width:auto;--height:auto;--icon-fill-color:var(--amplify-white)}svg.sc-amplify-icon{fill:var(--icon-fill-color);width:var(--width);height:var(--height)}";
28
+
29
+ var AmplifyIcon =
18
30
  /** @class */
19
31
  function () {
20
- function AmplifyIconButton(hostRef) {
32
+ function AmplifyIcon(hostRef) {
21
33
  Object(_index_83f2275b_js__WEBPACK_IMPORTED_MODULE_0__["r"])(this, hostRef);
22
- /** (Optional) The tooltip that will show on hover of the button */
34
+ }
23
35
 
24
- this.tooltip = null;
25
- /** (Optional) Whether or not to show the tooltip automatically */
36
+ AmplifyIcon.prototype.componentWillLoad = function () {
37
+ console.warn('Version `1.x` of Amplify UI has been deprecated and will be removed in a future major version of `aws-amplify`. Please visit https://ui.docs.amplify.aws/ for the current version of Amplify UI.');
38
+ };
39
+
40
+ AmplifyIcon.prototype.validateName = function (newValue) {
41
+ var isBlank = _typeof(newValue) == null;
42
+
43
+ if (isBlank) {
44
+ throw new Error('name: required');
45
+ }
46
+ }; // https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes
26
47
 
27
- this.autoShowTooltip = false;
28
- }
29
48
 
30
- AmplifyIconButton.prototype.render = function () {
31
- return Object(_index_83f2275b_js__WEBPACK_IMPORTED_MODULE_0__["h"])("span", {
32
- "class": "action-button"
33
- }, Object(_index_83f2275b_js__WEBPACK_IMPORTED_MODULE_0__["h"])("amplify-tooltip", {
34
- text: this.tooltip,
35
- shouldAutoShow: this.autoShowTooltip
36
- }, Object(_index_83f2275b_js__WEBPACK_IMPORTED_MODULE_0__["h"])("button", null, Object(_index_83f2275b_js__WEBPACK_IMPORTED_MODULE_0__["h"])("amplify-icon", {
37
- name: this.name
38
- }))));
49
+ AmplifyIcon.prototype.render = function () {
50
+ return _icons_c10e1d4d_js__WEBPACK_IMPORTED_MODULE_1__["i"][this.name]();
39
51
  };
40
52
 
41
- return AmplifyIconButton;
53
+ Object.defineProperty(AmplifyIcon, "watchers", {
54
+ get: function get() {
55
+ return {
56
+ "name": ["componentWillLoad"]
57
+ };
58
+ },
59
+ enumerable: false,
60
+ configurable: true
61
+ });
62
+ return AmplifyIcon;
42
63
  }();
43
64
 
44
- AmplifyIconButton.style = amplifyIconButtonCss;
65
+ AmplifyIcon.style = amplifyIconCss;
45
66
 
46
67
 
47
68
  /***/ })
package/dist/21.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///./node_modules/@aws-amplify/ui-components/dist/esm-es5/amplify-icon-button.entry.js"],"names":["amplifyIconButtonCss","AmplifyIconButton","registerInstance","h","text","shouldAutoShow","autoShowTooltip","name"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AACA,IAAIA,oBAAoB,GAAxB;;AACA,IAAIC,iBAAiB;AAAG;AAAe,YAAY;AAC/C,sCAAoC;AAChCC,gEAAgB,OAAhBA,OAAgB,CAAhBA;AACA;;AACA;AACA;;AACA;AACH;;AACDD,mBAAiB,CAAjBA,mBAAqC,YAAY;AAC7C,WAAQE,4DAAC,SAAS;AAAE,eAAO;AAAT,KAAT,EAAqCA,4DAAC,oBAAoB;AAAEC,UAAI,EAAE,KAAR;AAAsBC,oBAAc,EAAE,KAAKC;AAA3C,KAApB,EAAkFH,4DAAC,iBAAiBA,4DAAC,iBAAiB;AAAEI,UAAI,EAAE,KAAKA;AAAb,KAAjB,CAAlB,CAAnF,CAAtC,CAAT;AADJN;;AAGA;AAXJ,CAAuC,EAAvC;;AAaAA,iBAAiB,CAAjBA","file":"21.js","sourcesContent":["import { r as registerInstance, h } from './index-83f2275b.js';\nvar amplifyIconButtonCss = \":host{--button-color:var(--amplify-secondary-contrast);--button-background-hover:var(--amplify-secondary-color)}.action-button button{position:relative;padding:0;background:none;height:54px;width:54px;cursor:pointer;outline:none;text-decoration:none;border:none;border-radius:30px;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;color:var(--button-color);fill:currentColor}.action-button button:hover{background-color:var(--button-background-hover);-webkit-box-shadow:0.3px 0.3px 0.3px rgba(0, 0, 0, 0.3);box-shadow:0.3px 0.3px 0.3px rgba(0, 0, 0, 0.3)}.action-button button:hover>.tooltip{display:block}.action-button button:hover>svg{-webkit-filter:none;filter:none}.action-button button:focus{outline:none}.action-button button svg{width:1.8em;height:1.8em;-webkit-filter:drop-shadow(1px 1px 1px var(--amplify-grey));filter:drop-shadow(1px 1px 1px var(--amplify-grey))}\";\nvar AmplifyIconButton = /** @class */ (function () {\n function AmplifyIconButton(hostRef) {\n registerInstance(this, hostRef);\n /** (Optional) The tooltip that will show on hover of the button */\n this.tooltip = null;\n /** (Optional) Whether or not to show the tooltip automatically */\n this.autoShowTooltip = false;\n }\n AmplifyIconButton.prototype.render = function () {\n return (h(\"span\", { class: \"action-button\" }, h(\"amplify-tooltip\", { text: this.tooltip, shouldAutoShow: this.autoShowTooltip }, h(\"button\", null, h(\"amplify-icon\", { name: this.name })))));\n };\n return AmplifyIconButton;\n}());\nAmplifyIconButton.style = amplifyIconButtonCss;\nexport { AmplifyIconButton as amplify_icon_button };\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///./node_modules/@aws-amplify/ui-components/dist/esm-es5/amplify-icon.entry.js"],"names":["amplifyIconCss","AmplifyIcon","hostRef","registerInstance","prototype","componentWillLoad","console","warn","validateName","newValue","isBlank","_typeof","Error","render","icons","name","Object","defineProperty","get","enumerable","configurable","style"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA,IAAIA,cAAc,GAAG,+KAArB;;AACA,IAAIC,WAAW;AAAG;AAAe,YAAY;EACzC,SAASA,WAAT,CAAqBC,OAArB,EAA8B;IAC1BC,4DAAgB,CAAC,IAAD,EAAOD,OAAP,CAAhBC;EACH;;EACDF,WAAW,CAACG,SAAZH,CAAsBI,iBAAtBJ,GAA0C,YAAY;IAClDK,OAAO,CAACC,IAARD,CAAa,kMAAbA;EADJ;;EAGAL,WAAW,CAACG,SAAZH,CAAsBO,YAAtBP,GAAqC,UAAUQ,QAAV,EAAoB;IACrD,IAAIC,OAAO,GAAGC,QAAOF,QAAP,KAAmB,IAAjC;;IACA,IAAIC,OAAJ,EAAa;MACT,MAAM,IAAIE,KAAJ,CAAU,gBAAV,CAAN;IACH;EAJL,EAPyC,CAazC;;;EACAX,WAAW,CAACG,SAAZH,CAAsBY,MAAtBZ,GAA+B,YAAY;IACvC,OAAOa,oDAAK,CAAC,KAAKC,IAAN,CAALD,EAAP;EADJ;;EAGAE,MAAM,CAACC,cAAPD,CAAsBf,WAAtBe,EAAmC,UAAnCA,EAA+C;IAC3CE,GAAG,EAAE,eAAY;MACb,OAAO;QACH,QAAQ,CAAC,mBAAD;MADL,CAAP;IAFuC;IAM3CC,UAAU,EAAE,KAN+B;IAO3CC,YAAY,EAAE;EAP6B,CAA/CJ;EASA,OAAOf,WAAP;AA1B6B,GAAjC;;AA4BAA,WAAW,CAACoB,KAAZpB,GAAoBD,cAApBC","file":"21.js","sourcesContent":["import { r as registerInstance } from './index-83f2275b.js';\nimport { i as icons } from './icons-c10e1d4d.js';\nvar amplifyIconCss = \".sc-amplify-icon-h{--width:auto;--height:auto;--icon-fill-color:var(--amplify-white)}svg.sc-amplify-icon{fill:var(--icon-fill-color);width:var(--width);height:var(--height)}\";\nvar AmplifyIcon = /** @class */ (function () {\n function AmplifyIcon(hostRef) {\n registerInstance(this, hostRef);\n }\n AmplifyIcon.prototype.componentWillLoad = function () {\n console.warn('Version `1.x` of Amplify UI has been deprecated and will be removed in a future major version of `aws-amplify`. Please visit https://ui.docs.amplify.aws/ for the current version of Amplify UI.');\n };\n AmplifyIcon.prototype.validateName = function (newValue) {\n var isBlank = typeof newValue == null;\n if (isBlank) {\n throw new Error('name: required');\n }\n };\n // https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes\n AmplifyIcon.prototype.render = function () {\n return icons[this.name]();\n };\n Object.defineProperty(AmplifyIcon, \"watchers\", {\n get: function () {\n return {\n \"name\": [\"componentWillLoad\"]\n };\n },\n enumerable: false,\n configurable: true\n });\n return AmplifyIcon;\n}());\nAmplifyIcon.style = amplifyIconCss;\nexport { AmplifyIcon as amplify_icon };\n"],"sourceRoot":""}
package/dist/22.js CHANGED
@@ -1,54 +1,51 @@
1
1
  (this["webpackJsonpaws_amplify_react"] = this["webpackJsonpaws_amplify_react"] || []).push([[22],{
2
2
 
3
- /***/ "../amplify-ui-components/dist/esm-es5/amplify-icon.entry.js":
3
+ /***/ "../amplify-ui-components/dist/esm-es5/amplify-link.entry.js":
4
4
  /*!*******************************************************************!*\
5
- !*** ../amplify-ui-components/dist/esm-es5/amplify-icon.entry.js ***!
5
+ !*** ../amplify-ui-components/dist/esm-es5/amplify-link.entry.js ***!
6
6
  \*******************************************************************/
7
- /*! exports provided: amplify_icon */
7
+ /*! exports provided: amplify_link */
8
8
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
9
9
 
10
10
  "use strict";
11
11
  __webpack_require__.r(__webpack_exports__);
12
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "amplify_icon", function() { return AmplifyIcon; });
12
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "amplify_link", function() { return AmplifyLink; });
13
13
  /* harmony import */ var _index_83f2275b_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index-83f2275b.js */ "../amplify-ui-components/dist/esm-es5/index-83f2275b.js");
14
- /* harmony import */ var _icons_c10e1d4d_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./icons-c10e1d4d.js */ "../amplify-ui-components/dist/esm-es5/icons-c10e1d4d.js");
15
14
 
15
+ var amplifyLinkCss = ":host{--link-color:var(--amplify-primary-color);--link-hover:var(--amplify-primary-tint);--link-active:var(--amplify-primary-shade)}.link{color:var(--link-color);cursor:pointer}.link:link{color:var(--link-color);text-decoration:none}.link:hover{color:var(--link-hover);text-decoration:underline}.link:active{color:var(--link-active);text-decoration:underline}";
16
16
 
17
- var amplifyIconCss = ".sc-amplify-icon-h{--width:auto;--height:auto;--icon-fill-color:var(--amplify-white)}svg.sc-amplify-icon{fill:var(--icon-fill-color);width:var(--width);height:var(--height)}";
18
-
19
- var AmplifyIcon =
17
+ var AmplifyLink =
20
18
  /** @class */
21
19
  function () {
22
- function AmplifyIcon(hostRef) {
20
+ function AmplifyLink(hostRef) {
23
21
  Object(_index_83f2275b_js__WEBPACK_IMPORTED_MODULE_0__["r"])(this, hostRef);
24
- }
25
-
26
- AmplifyIcon.prototype.validateName = function (newValue) {
27
- var isBlank = typeof newValue == null;
22
+ /** The link role is used to identify an element that creates a hyperlink to a resource that is in the application or external */
28
23
 
29
- if (isBlank) {
30
- throw new Error('name: required');
31
- }
32
- }; // https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes
24
+ this.role = 'navigation';
25
+ }
33
26
 
27
+ AmplifyLink.prototype.componentWillLoad = function () {
28
+ console.warn('Version `1.x` of Amplify UI has been deprecated and will be removed in a future major version of `aws-amplify`. Please visit https://ui.docs.amplify.aws/ for the current version of Amplify UI.');
29
+ };
34
30
 
35
- AmplifyIcon.prototype.render = function () {
36
- return _icons_c10e1d4d_js__WEBPACK_IMPORTED_MODULE_1__["i"][this.name]();
31
+ AmplifyLink.prototype.render = function () {
32
+ return Object(_index_83f2275b_js__WEBPACK_IMPORTED_MODULE_0__["h"])("a", {
33
+ "class": "link",
34
+ role: this.role
35
+ }, Object(_index_83f2275b_js__WEBPACK_IMPORTED_MODULE_0__["h"])("slot", null));
37
36
  };
38
37
 
39
- Object.defineProperty(AmplifyIcon, "watchers", {
38
+ Object.defineProperty(AmplifyLink.prototype, "el", {
40
39
  get: function get() {
41
- return {
42
- "name": ["validateName"]
43
- };
40
+ return Object(_index_83f2275b_js__WEBPACK_IMPORTED_MODULE_0__["g"])(this);
44
41
  },
45
42
  enumerable: false,
46
43
  configurable: true
47
44
  });
48
- return AmplifyIcon;
45
+ return AmplifyLink;
49
46
  }();
50
47
 
51
- AmplifyIcon.style = amplifyIconCss;
48
+ AmplifyLink.style = amplifyLinkCss;
52
49
 
53
50
 
54
51
  /***/ })
package/dist/22.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///./node_modules/@aws-amplify/ui-components/dist/esm-es5/amplify-icon.entry.js"],"names":["amplifyIconCss","AmplifyIcon","registerInstance","isBlank","icons","Object","get","enumerable","configurable"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA,IAAIA,cAAc,GAAlB;;AACA,IAAIC,WAAW;AAAG;AAAe,YAAY;AACzC,gCAA8B;AAC1BC,gEAAgB,OAAhBA,OAAgB,CAAhBA;AACH;;AACDD,aAAW,CAAXA,yBAAqC,oBAAoB;AACrD,QAAIE,OAAO,GAAG,mBAAd;;AACA,iBAAa;AACT,YAAM,UAAN,gBAAM,CAAN;AACH;AARoC,GAIzCF,CAJyC,CAUzC;;;AACAA,aAAW,CAAXA,mBAA+B,YAAY;AACvC,WAAOG,oDAAK,CAAC,KAAb,IAAY,CAALA,EAAP;AADJH;;AAGAI,QAAM,CAANA,wCAA+C;AAC3CC,OAAG,EAAE,eAAY;AACb,aAAO;AACH,gBAAQ;AADL,OAAP;AAFuC;AAM3CC,cAAU,EANiC;AAO3CC,gBAAY,EAAE;AAP6B,GAA/CH;AASA;AAvBJ,CAAiC,EAAjC;;AAyBAJ,WAAW,CAAXA","file":"22.js","sourcesContent":["import { r as registerInstance } from './index-83f2275b.js';\nimport { i as icons } from './icons-c10e1d4d.js';\nvar amplifyIconCss = \".sc-amplify-icon-h{--width:auto;--height:auto;--icon-fill-color:var(--amplify-white)}svg.sc-amplify-icon{fill:var(--icon-fill-color);width:var(--width);height:var(--height)}\";\nvar AmplifyIcon = /** @class */ (function () {\n function AmplifyIcon(hostRef) {\n registerInstance(this, hostRef);\n }\n AmplifyIcon.prototype.validateName = function (newValue) {\n var isBlank = typeof newValue == null;\n if (isBlank) {\n throw new Error('name: required');\n }\n };\n // https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes\n AmplifyIcon.prototype.render = function () {\n return icons[this.name]();\n };\n Object.defineProperty(AmplifyIcon, \"watchers\", {\n get: function () {\n return {\n \"name\": [\"validateName\"]\n };\n },\n enumerable: false,\n configurable: true\n });\n return AmplifyIcon;\n}());\nAmplifyIcon.style = amplifyIconCss;\nexport { AmplifyIcon as amplify_icon };\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///./node_modules/@aws-amplify/ui-components/dist/esm-es5/amplify-link.entry.js"],"names":["amplifyLinkCss","AmplifyLink","hostRef","registerInstance","role","prototype","componentWillLoad","console","warn","render","h","Object","defineProperty","get","getElement","enumerable","configurable","style"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AACA,IAAIA,cAAc,GAAG,yWAArB;;AACA,IAAIC,WAAW;AAAG;AAAe,YAAY;EACzC,SAASA,WAAT,CAAqBC,OAArB,EAA8B;IAC1BC,4DAAgB,CAAC,IAAD,EAAOD,OAAP,CAAhBC;IACA;;IACA,KAAKC,IAAL,GAAY,YAAZ;EACH;;EACDH,WAAW,CAACI,SAAZJ,CAAsBK,iBAAtBL,GAA0C,YAAY;IAClDM,OAAO,CAACC,IAARD,CAAa,kMAAbA;EADJ;;EAGAN,WAAW,CAACI,SAAZJ,CAAsBQ,MAAtBR,GAA+B,YAAY;IACvC,OAAQS,4DAAC,CAAC,GAAD,EAAM;MAAE,SAAO,MAAT;MAAiBN,IAAI,EAAE,KAAKA;IAA5B,CAAN,EAA0CM,4DAAC,CAAC,MAAD,EAAS,IAAT,CAA3C,CAAT;EADJ;;EAGAC,MAAM,CAACC,cAAPD,CAAsBV,WAAW,CAACI,SAAlCM,EAA6C,IAA7CA,EAAmD;IAC/CE,GAAG,EAAE,eAAY;MAAE,OAAOC,4DAAU,CAAC,IAAD,CAAjB;IAD4B;IAE/CC,UAAU,EAAE,KAFmC;IAG/CC,YAAY,EAAE;EAHiC,CAAnDL;EAKA,OAAOV,WAAP;AAjB6B,GAAjC;;AAmBAA,WAAW,CAACgB,KAAZhB,GAAoBD,cAApBC","file":"22.js","sourcesContent":["import { r as registerInstance, h, g as getElement } from './index-83f2275b.js';\nvar amplifyLinkCss = \":host{--link-color:var(--amplify-primary-color);--link-hover:var(--amplify-primary-tint);--link-active:var(--amplify-primary-shade)}.link{color:var(--link-color);cursor:pointer}.link:link{color:var(--link-color);text-decoration:none}.link:hover{color:var(--link-hover);text-decoration:underline}.link:active{color:var(--link-active);text-decoration:underline}\";\nvar AmplifyLink = /** @class */ (function () {\n function AmplifyLink(hostRef) {\n registerInstance(this, hostRef);\n /** The link role is used to identify an element that creates a hyperlink to a resource that is in the application or external */\n this.role = 'navigation';\n }\n AmplifyLink.prototype.componentWillLoad = function () {\n console.warn('Version `1.x` of Amplify UI has been deprecated and will be removed in a future major version of `aws-amplify`. Please visit https://ui.docs.amplify.aws/ for the current version of Amplify UI.');\n };\n AmplifyLink.prototype.render = function () {\n return (h(\"a\", { class: \"link\", role: this.role }, h(\"slot\", null)));\n };\n Object.defineProperty(AmplifyLink.prototype, \"el\", {\n get: function () { return getElement(this); },\n enumerable: false,\n configurable: true\n });\n return AmplifyLink;\n}());\nAmplifyLink.style = amplifyLinkCss;\nexport { AmplifyLink as amplify_link };\n"],"sourceRoot":""}
package/dist/23.js CHANGED
@@ -1,47 +1,276 @@
1
1
  (this["webpackJsonpaws_amplify_react"] = this["webpackJsonpaws_amplify_react"] || []).push([[23],{
2
2
 
3
- /***/ "../amplify-ui-components/dist/esm-es5/amplify-link.entry.js":
4
- /*!*******************************************************************!*\
5
- !*** ../amplify-ui-components/dist/esm-es5/amplify-link.entry.js ***!
6
- \*******************************************************************/
7
- /*! exports provided: amplify_link */
3
+ /***/ "../amplify-ui-components/dist/esm-es5/amplify-nav_2.entry.js":
4
+ /*!********************************************************************!*\
5
+ !*** ../amplify-ui-components/dist/esm-es5/amplify-nav_2.entry.js ***!
6
+ \********************************************************************/
7
+ /*! exports provided: amplify_nav, amplify_sign_out */
8
8
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
9
9
 
10
10
  "use strict";
11
11
  __webpack_require__.r(__webpack_exports__);
12
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "amplify_link", function() { return AmplifyLink; });
12
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "amplify_nav", function() { return AmplifyNav; });
13
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "amplify_sign_out", function() { return AmplifySignOut; });
13
14
  /* harmony import */ var _index_83f2275b_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index-83f2275b.js */ "../amplify-ui-components/dist/esm-es5/index-83f2275b.js");
15
+ /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
16
+ /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__);
17
+ /* harmony import */ var _auth_types_78df304e_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./auth-types-78df304e.js */ "../amplify-ui-components/dist/esm-es5/auth-types-78df304e.js");
18
+ /* harmony import */ var _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-amplify/auth */ "@aws-amplify/auth");
19
+ /* harmony import */ var _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_auth__WEBPACK_IMPORTED_MODULE_3__);
20
+ /* harmony import */ var _Translations_108d469f_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Translations-108d469f.js */ "../amplify-ui-components/dist/esm-es5/Translations-108d469f.js");
21
+ /* harmony import */ var _constants_c8ecaa24_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./constants-c8ecaa24.js */ "../amplify-ui-components/dist/esm-es5/constants-c8ecaa24.js");
22
+ /* harmony import */ var _helpers_14fcb50c_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./helpers-14fcb50c.js */ "../amplify-ui-components/dist/esm-es5/helpers-14fcb50c.js");
23
+ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
24
+ function adopt(value) {
25
+ return value instanceof P ? value : new P(function (resolve) {
26
+ resolve(value);
27
+ });
28
+ }
29
+
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) {
32
+ try {
33
+ step(generator.next(value));
34
+ } catch (e) {
35
+ reject(e);
36
+ }
37
+ }
38
+
39
+ function rejected(value) {
40
+ try {
41
+ step(generator["throw"](value));
42
+ } catch (e) {
43
+ reject(e);
44
+ }
45
+ }
46
+
47
+ function step(result) {
48
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
49
+ }
50
+
51
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
52
+ });
53
+ };
54
+
55
+ var __generator = undefined && undefined.__generator || function (thisArg, body) {
56
+ var _ = {
57
+ label: 0,
58
+ sent: function sent() {
59
+ if (t[0] & 1) throw t[1];
60
+ return t[1];
61
+ },
62
+ trys: [],
63
+ ops: []
64
+ },
65
+ f,
66
+ y,
67
+ t,
68
+ g;
69
+ return g = {
70
+ next: verb(0),
71
+ "throw": verb(1),
72
+ "return": verb(2)
73
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
74
+ return this;
75
+ }), g;
76
+
77
+ function verb(n) {
78
+ return function (v) {
79
+ return step([n, v]);
80
+ };
81
+ }
82
+
83
+ function step(op) {
84
+ if (f) throw new TypeError("Generator is already executing.");
85
+
86
+ while (_) {
87
+ try {
88
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
89
+ if (y = 0, t) op = [op[0] & 2, t.value];
90
+
91
+ switch (op[0]) {
92
+ case 0:
93
+ case 1:
94
+ t = op;
95
+ break;
96
+
97
+ case 4:
98
+ _.label++;
99
+ return {
100
+ value: op[1],
101
+ done: false
102
+ };
103
+
104
+ case 5:
105
+ _.label++;
106
+ y = op[1];
107
+ op = [0];
108
+ continue;
109
+
110
+ case 7:
111
+ op = _.ops.pop();
112
+
113
+ _.trys.pop();
114
+
115
+ continue;
116
+
117
+ default:
118
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
119
+ _ = 0;
120
+ continue;
121
+ }
122
+
123
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
124
+ _.label = op[1];
125
+ break;
126
+ }
127
+
128
+ if (op[0] === 6 && _.label < t[1]) {
129
+ _.label = t[1];
130
+ t = op;
131
+ break;
132
+ }
133
+
134
+ if (t && _.label < t[2]) {
135
+ _.label = t[2];
136
+
137
+ _.ops.push(op);
138
+
139
+ break;
140
+ }
141
+
142
+ if (t[2]) _.ops.pop();
143
+
144
+ _.trys.pop();
145
+
146
+ continue;
147
+ }
148
+
149
+ op = body.call(thisArg, _);
150
+ } catch (e) {
151
+ op = [6, e];
152
+ y = 0;
153
+ } finally {
154
+ f = t = 0;
155
+ }
156
+ }
157
+
158
+ if (op[0] & 5) throw op[1];
159
+ return {
160
+ value: op[0] ? op[1] : void 0,
161
+ done: true
162
+ };
163
+ }
164
+ };
165
+
166
+
167
+
168
+
14
169
 
15
- var amplifyLinkCss = ":host{--link-color:var(--amplify-primary-color);--link-hover:var(--amplify-primary-tint);--link-active:var(--amplify-primary-shade)}.link{color:var(--link-color);cursor:pointer}.link:link{color:var(--link-color);text-decoration:none}.link:hover{color:var(--link-hover);text-decoration:underline}.link:active{color:var(--link-active);text-decoration:underline}";
16
170
 
17
- var AmplifyLink =
171
+
172
+
173
+ var amplifyNavCss = ".nav{display:-ms-flexbox;display:flex;-ms-flex:1 1 0%;flex:1 1 0%;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center}.nav>*{margin:0 0.5em}";
174
+
175
+ var AmplifyNav =
18
176
  /** @class */
19
177
  function () {
20
- function AmplifyLink(hostRef) {
178
+ function AmplifyNav(hostRef) {
21
179
  Object(_index_83f2275b_js__WEBPACK_IMPORTED_MODULE_0__["r"])(this, hostRef);
22
- /** The link role is used to identify an element that creates a hyperlink to a resource that is in the application or external */
23
-
24
- this.role = 'navigation';
25
180
  }
26
181
 
27
- AmplifyLink.prototype.render = function () {
28
- return Object(_index_83f2275b_js__WEBPACK_IMPORTED_MODULE_0__["h"])("a", {
29
- "class": "link",
30
- role: this.role
182
+ AmplifyNav.prototype.componentWillLoad = function () {
183
+ console.warn('Version `1.x` of Amplify UI has been deprecated and will be removed in a future major version of `aws-amplify`. Please visit https://ui.docs.amplify.aws/ for the current version of Amplify UI.');
184
+ };
185
+
186
+ AmplifyNav.prototype.render = function () {
187
+ return Object(_index_83f2275b_js__WEBPACK_IMPORTED_MODULE_0__["h"])("nav", {
188
+ "class": "nav"
31
189
  }, Object(_index_83f2275b_js__WEBPACK_IMPORTED_MODULE_0__["h"])("slot", null));
32
190
  };
33
191
 
34
- Object.defineProperty(AmplifyLink.prototype, "el", {
35
- get: function get() {
36
- return Object(_index_83f2275b_js__WEBPACK_IMPORTED_MODULE_0__["g"])(this);
37
- },
38
- enumerable: false,
39
- configurable: true
40
- });
41
- return AmplifyLink;
192
+ return AmplifyNav;
193
+ }();
194
+
195
+ AmplifyNav.style = amplifyNavCss;
196
+
197
+ var AmplifySignOut =
198
+ /** @class */
199
+ function () {
200
+ function class_1(hostRef) {
201
+ Object(_index_83f2275b_js__WEBPACK_IMPORTED_MODULE_0__["r"])(this, hostRef);
202
+ /** Auth state change handler for this component */
203
+
204
+ this.handleAuthStateChange = _helpers_14fcb50c_js__WEBPACK_IMPORTED_MODULE_6__["d"];
205
+ /** Text inside of the Sign Out button */
206
+
207
+ this.buttonText = _Translations_108d469f_js__WEBPACK_IMPORTED_MODULE_4__["T"].SIGN_OUT;
208
+ }
209
+
210
+ class_1.prototype.componentWillLoad = function () {
211
+ console.warn('Version `1.x` of Amplify UI has been deprecated and will be removed in a future major version of `aws-amplify`. Please visit https://ui.docs.amplify.aws/ for the current version of Amplify UI.');
212
+ };
213
+
214
+ class_1.prototype.signOut = function (event) {
215
+ return __awaiter(this, void 0, void 0, function () {
216
+ var error_1;
217
+ return __generator(this, function (_a) {
218
+ switch (_a.label) {
219
+ case 0:
220
+ if (event) event.preventDefault(); // TODO: Federated Sign Out
221
+
222
+ if (!_aws_amplify_auth__WEBPACK_IMPORTED_MODULE_3__["Auth"] || typeof _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_3__["Auth"].signOut !== 'function') {
223
+ throw new Error(_constants_c8ecaa24_js__WEBPACK_IMPORTED_MODULE_5__["N"]);
224
+ }
225
+
226
+ _a.label = 1;
227
+
228
+ case 1:
229
+ _a.trys.push([1, 3,, 4]);
230
+
231
+ return [4
232
+ /*yield*/
233
+ , _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_3__["Auth"].signOut()];
234
+
235
+ case 2:
236
+ _a.sent();
237
+
238
+ this.handleAuthStateChange(_auth_types_78df304e_js__WEBPACK_IMPORTED_MODULE_2__["A"].SignedOut);
239
+ return [3
240
+ /*break*/
241
+ , 4];
242
+
243
+ case 3:
244
+ error_1 = _a.sent();
245
+ Object(_helpers_14fcb50c_js__WEBPACK_IMPORTED_MODULE_6__["a"])(error_1);
246
+ return [3
247
+ /*break*/
248
+ , 4];
249
+
250
+ case 4:
251
+ return [2
252
+ /*return*/
253
+ ];
254
+ }
255
+ });
256
+ });
257
+ };
258
+
259
+ class_1.prototype.render = function () {
260
+ var _this = this;
261
+
262
+ return Object(_index_83f2275b_js__WEBPACK_IMPORTED_MODULE_0__["h"])("amplify-button", {
263
+ slot: "sign-out",
264
+ onClick: function onClick(event) {
265
+ return _this.signOut(event);
266
+ },
267
+ "data-test": "sign-out-button"
268
+ }, _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["I18n"].get(this.buttonText));
269
+ };
270
+
271
+ return class_1;
42
272
  }();
43
273
 
44
- AmplifyLink.style = amplifyLinkCss;
45
274
 
46
275
 
47
276
  /***/ })
package/dist/23.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///./node_modules/@aws-amplify/ui-components/dist/esm-es5/amplify-link.entry.js"],"names":["amplifyLinkCss","AmplifyLink","registerInstance","h","role","Object","get","getElement","enumerable","configurable"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AACA,IAAIA,cAAc,GAAlB;;AACA,IAAIC,WAAW;AAAG;AAAe,YAAY;AACzC,gCAA8B;AAC1BC,gEAAgB,OAAhBA,OAAgB,CAAhBA;AACA;;AACA;AACH;;AACDD,aAAW,CAAXA,mBAA+B,YAAY;AACvC,WAAQE,4DAAC,MAAM;AAAE,eAAF;AAAiBC,UAAI,EAAE,KAAKA;AAA5B,KAAN,EAA0CD,4DAAC,SAApD,IAAoD,CAA3C,CAAT;AADJF;;AAGAI,QAAM,CAANA,eAAsBJ,WAAW,CAAjCI,iBAAmD;AAC/CC,OAAG,EAAE,eAAY;AAAE,aAAOC,4DAAU,CAAjB,IAAiB,CAAjB;AAD4B;AAE/CC,cAAU,EAFqC;AAG/CC,gBAAY,EAAE;AAHiC,GAAnDJ;AAKA;AAdJ,CAAiC,EAAjC;;AAgBAJ,WAAW,CAAXA","file":"23.js","sourcesContent":["import { r as registerInstance, h, g as getElement } from './index-83f2275b.js';\nvar amplifyLinkCss = \":host{--link-color:var(--amplify-primary-color);--link-hover:var(--amplify-primary-tint);--link-active:var(--amplify-primary-shade)}.link{color:var(--link-color);cursor:pointer}.link:link{color:var(--link-color);text-decoration:none}.link:hover{color:var(--link-hover);text-decoration:underline}.link:active{color:var(--link-active);text-decoration:underline}\";\nvar AmplifyLink = /** @class */ (function () {\n function AmplifyLink(hostRef) {\n registerInstance(this, hostRef);\n /** The link role is used to identify an element that creates a hyperlink to a resource that is in the application or external */\n this.role = 'navigation';\n }\n AmplifyLink.prototype.render = function () {\n return (h(\"a\", { class: \"link\", role: this.role }, h(\"slot\", null)));\n };\n Object.defineProperty(AmplifyLink.prototype, \"el\", {\n get: function () { return getElement(this); },\n enumerable: false,\n configurable: true\n });\n return AmplifyLink;\n}());\nAmplifyLink.style = amplifyLinkCss;\nexport { AmplifyLink as amplify_link };\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///./node_modules/@aws-amplify/ui-components/dist/esm-es5/amplify-nav_2.entry.js"],"names":["__awaiter","thisArg","_arguments","P","generator","adopt","value","resolve","Promise","reject","fulfilled","step","next","e","rejected","result","done","then","apply","__generator","body","_","label","sent","t","trys","ops","f","y","g","verb","Symbol","iterator","n","v","op","TypeError","call","pop","length","push","amplifyNavCss","AmplifyNav","hostRef","registerInstance","prototype","componentWillLoad","console","warn","render","h","style","AmplifySignOut","class_1","handleAuthStateChange","dispatchAuthStateChangeEvent","buttonText","Translations","SIGN_OUT","signOut","event","error_1","_a","preventDefault","Auth","Error","NO_AUTH_MODULE_FOUND","AuthState","SignedOut","dispatchToastHubEvent","_this","slot","onClick","I18n","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OAAO,EAAE,iBAAUZ,KAAV,EAAiB;QAAE,OAAOU,KAAK,CAACX,OAANW,CAAcV,KAAdU,CAAP;MAAhD;MAAgF,aAAa;IAA7F,CAAnB,EAAqIG,sDAAI,CAACC,GAALD,CAAS,KAAKjB,UAAdiB,CAArI,CAAT;EAFJ;;EAIA,OAAOpB,OAAP;AA5CgC,GAApC","file":"23.js","sourcesContent":["var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nimport { r as registerInstance, h } from './index-83f2275b.js';\nimport { I18n } from '@aws-amplify/core';\nimport { A as AuthState } from './auth-types-78df304e.js';\nimport { Auth } from '@aws-amplify/auth';\nimport { T as Translations } from './Translations-108d469f.js';\nimport { N as NO_AUTH_MODULE_FOUND } from './constants-c8ecaa24.js';\nimport { d as dispatchAuthStateChangeEvent, a as dispatchToastHubEvent } from './helpers-14fcb50c.js';\nvar amplifyNavCss = \".nav{display:-ms-flexbox;display:flex;-ms-flex:1 1 0%;flex:1 1 0%;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center}.nav>*{margin:0 0.5em}\";\nvar AmplifyNav = /** @class */ (function () {\n function AmplifyNav(hostRef) {\n registerInstance(this, hostRef);\n }\n AmplifyNav.prototype.componentWillLoad = function () {\n console.warn('Version `1.x` of Amplify UI has been deprecated and will be removed in a future major version of `aws-amplify`. Please visit https://ui.docs.amplify.aws/ for the current version of Amplify UI.');\n };\n AmplifyNav.prototype.render = function () {\n return (h(\"nav\", { class: \"nav\" }, h(\"slot\", null)));\n };\n return AmplifyNav;\n}());\nAmplifyNav.style = amplifyNavCss;\nvar AmplifySignOut = /** @class */ (function () {\n function class_1(hostRef) {\n registerInstance(this, hostRef);\n /** Auth state change handler for this component */\n this.handleAuthStateChange = dispatchAuthStateChangeEvent;\n /** Text inside of the Sign Out button */\n this.buttonText = Translations.SIGN_OUT;\n }\n class_1.prototype.componentWillLoad = function () {\n console.warn('Version `1.x` of Amplify UI has been deprecated and will be removed in a future major version of `aws-amplify`. Please visit https://ui.docs.amplify.aws/ for the current version of Amplify UI.');\n };\n class_1.prototype.signOut = function (event) {\n return __awaiter(this, void 0, void 0, function () {\n var error_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (event)\n event.preventDefault();\n // TODO: Federated Sign Out\n if (!Auth || typeof Auth.signOut !== 'function') {\n throw new Error(NO_AUTH_MODULE_FOUND);\n }\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, Auth.signOut()];\n case 2:\n _a.sent();\n this.handleAuthStateChange(AuthState.SignedOut);\n return [3 /*break*/, 4];\n case 3:\n error_1 = _a.sent();\n dispatchToastHubEvent(error_1);\n return [3 /*break*/, 4];\n case 4: return [2 /*return*/];\n }\n });\n });\n };\n class_1.prototype.render = function () {\n var _this = this;\n return (h(\"amplify-button\", { slot: \"sign-out\", onClick: function (event) { return _this.signOut(event); }, \"data-test\": \"sign-out-button\" }, I18n.get(this.buttonText)));\n };\n return class_1;\n}());\nexport { AmplifyNav as amplify_nav, AmplifySignOut as amplify_sign_out };\n"],"sourceRoot":""}