@aws-amplify/ui-react 1.2.25-unstable.1 → 2.0.0

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 (164) hide show
  1. package/dist/esm/index.css +1 -0
  2. package/dist/esm/index.css.map +7 -0
  3. package/dist/esm/index.js +1 -0
  4. package/dist/esm/index.js.map +7 -0
  5. package/dist/esm/legacy.js +1 -0
  6. package/dist/esm/legacy.js.map +7 -0
  7. package/dist/index.css +1 -0
  8. package/dist/index.css.map +7 -0
  9. package/dist/index.d.ts +7533 -0
  10. package/dist/index.js +1 -0
  11. package/dist/index.js.map +7 -0
  12. package/dist/legacy.d.ts +1 -0
  13. package/dist/legacy.js +1 -0
  14. package/dist/legacy.js.map +7 -0
  15. package/dist/primitives.json +22168 -0
  16. package/legacy/package.json +7 -0
  17. package/package.json +82 -40
  18. package/CHANGELOG.md +0 -331
  19. package/README.md +0 -1
  20. package/build.js +0 -5
  21. package/dist/0.js +0 -269
  22. package/dist/0.js.map +0 -1
  23. package/dist/1.js +0 -2111
  24. package/dist/1.js.map +0 -1
  25. package/dist/10.js +0 -707
  26. package/dist/10.js.map +0 -1
  27. package/dist/11.js +0 -45
  28. package/dist/11.js.map +0 -1
  29. package/dist/12.js +0 -1152
  30. package/dist/12.js.map +0 -1
  31. package/dist/13.js +0 -114
  32. package/dist/13.js.map +0 -1
  33. package/dist/14.js +0 -1194
  34. package/dist/14.js.map +0 -1
  35. package/dist/15.js +0 -61
  36. package/dist/15.js.map +0 -1
  37. package/dist/16.js +0 -37
  38. package/dist/16.js.map +0 -1
  39. package/dist/17.js +0 -127
  40. package/dist/17.js.map +0 -1
  41. package/dist/18.js +0 -90
  42. package/dist/18.js.map +0 -1
  43. package/dist/19.js +0 -267
  44. package/dist/19.js.map +0 -1
  45. package/dist/2.js +0 -766
  46. package/dist/2.js.map +0 -1
  47. package/dist/20.js +0 -74
  48. package/dist/20.js.map +0 -1
  49. package/dist/21.js +0 -50
  50. package/dist/21.js.map +0 -1
  51. package/dist/22.js +0 -57
  52. package/dist/22.js.map +0 -1
  53. package/dist/23.js +0 -50
  54. package/dist/23.js.map +0 -1
  55. package/dist/24.js +0 -271
  56. package/dist/24.js.map +0 -1
  57. package/dist/25.js +0 -102
  58. package/dist/25.js.map +0 -1
  59. package/dist/26.js +0 -64
  60. package/dist/26.js.map +0 -1
  61. package/dist/27.js +0 -379
  62. package/dist/27.js.map +0 -1
  63. package/dist/28.js +0 -47
  64. package/dist/28.js.map +0 -1
  65. package/dist/29.js +0 -46
  66. package/dist/29.js.map +0 -1
  67. package/dist/3.js +0 -2787
  68. package/dist/3.js.map +0 -1
  69. package/dist/30.js +0 -503
  70. package/dist/30.js.map +0 -1
  71. package/dist/31.js +0 -2
  72. package/dist/31.js.map +0 -1
  73. package/dist/32.js +0 -2
  74. package/dist/32.js.map +0 -1
  75. package/dist/33.js +0 -13
  76. package/dist/33.js.map +0 -1
  77. package/dist/4.js +0 -4126
  78. package/dist/4.js.map +0 -1
  79. package/dist/5.js +0 -817
  80. package/dist/5.js.map +0 -1
  81. package/dist/6.js +0 -619
  82. package/dist/6.js.map +0 -1
  83. package/dist/7.js +0 -662
  84. package/dist/7.js.map +0 -1
  85. package/dist/8.js +0 -614
  86. package/dist/8.js.map +0 -1
  87. package/dist/9.js +0 -665
  88. package/dist/9.js.map +0 -1
  89. package/dist/@aws-amplify/ui-react.js +0 -31875
  90. package/dist/@aws-amplify/ui-react.js.map +0 -1
  91. package/dist/aws-amplify-react.min.js +0 -28
  92. package/dist/aws-amplify-react.min.js.map +0 -1
  93. package/dist/polyfills-core-js.js +0 -5211
  94. package/dist/polyfills-core-js.js.map +0 -1
  95. package/dist/polyfills-css-shim.js +0 -467
  96. package/dist/polyfills-css-shim.js.map +0 -1
  97. package/dist/polyfills-dom.js +0 -2098
  98. package/dist/polyfills-dom.js.map +0 -1
  99. package/jest.config.js +0 -12
  100. package/lib/components.d.ts +0 -56
  101. package/lib/components.js +0 -64
  102. package/lib/components.js.map +0 -1
  103. package/lib/index.d.ts +0 -2
  104. package/lib/index.js +0 -9
  105. package/lib/index.js.map +0 -1
  106. package/lib/react-component-lib/createComponent.d.ts +0 -2
  107. package/lib/react-component-lib/createComponent.js +0 -91
  108. package/lib/react-component-lib/createComponent.js.map +0 -1
  109. package/lib/react-component-lib/createControllerComponent.d.ts +0 -43
  110. package/lib/react-component-lib/createControllerComponent.js +0 -152
  111. package/lib/react-component-lib/createControllerComponent.js.map +0 -1
  112. package/lib/react-component-lib/createOverlayComponent.d.ts +0 -45
  113. package/lib/react-component-lib/createOverlayComponent.js +0 -148
  114. package/lib/react-component-lib/createOverlayComponent.js.map +0 -1
  115. package/lib/react-component-lib/index.d.ts +0 -3
  116. package/lib/react-component-lib/index.js +0 -9
  117. package/lib/react-component-lib/index.js.map +0 -1
  118. package/lib/react-component-lib/utils/attachEventProps.d.ts +0 -8
  119. package/lib/react-component-lib/utils/attachEventProps.js +0 -85
  120. package/lib/react-component-lib/utils/attachEventProps.js.map +0 -1
  121. package/lib/react-component-lib/utils/index.d.ts +0 -8
  122. package/lib/react-component-lib/utils/index.js +0 -36
  123. package/lib/react-component-lib/utils/index.js.map +0 -1
  124. package/lib/withAuthenticator.d.ts +0 -3
  125. package/lib/withAuthenticator.js +0 -127
  126. package/lib/withAuthenticator.js.map +0 -1
  127. package/lib-esm/components.d.ts +0 -56
  128. package/lib-esm/components.js +0 -62
  129. package/lib-esm/components.js.map +0 -1
  130. package/lib-esm/index.d.ts +0 -2
  131. package/lib-esm/index.js +0 -3
  132. package/lib-esm/index.js.map +0 -1
  133. package/lib-esm/react-component-lib/createComponent.d.ts +0 -2
  134. package/lib-esm/react-component-lib/createComponent.js +0 -86
  135. package/lib-esm/react-component-lib/createComponent.js.map +0 -1
  136. package/lib-esm/react-component-lib/createControllerComponent.d.ts +0 -43
  137. package/lib-esm/react-component-lib/createControllerComponent.js +0 -146
  138. package/lib-esm/react-component-lib/createControllerComponent.js.map +0 -1
  139. package/lib-esm/react-component-lib/createOverlayComponent.d.ts +0 -45
  140. package/lib-esm/react-component-lib/createOverlayComponent.js +0 -142
  141. package/lib-esm/react-component-lib/createOverlayComponent.js.map +0 -1
  142. package/lib-esm/react-component-lib/index.d.ts +0 -3
  143. package/lib-esm/react-component-lib/index.js +0 -4
  144. package/lib-esm/react-component-lib/index.js.map +0 -1
  145. package/lib-esm/react-component-lib/utils/attachEventProps.d.ts +0 -8
  146. package/lib-esm/react-component-lib/utils/attachEventProps.js +0 -79
  147. package/lib-esm/react-component-lib/utils/attachEventProps.js.map +0 -1
  148. package/lib-esm/react-component-lib/utils/index.d.ts +0 -8
  149. package/lib-esm/react-component-lib/utils/index.js +0 -28
  150. package/lib-esm/react-component-lib/utils/index.js.map +0 -1
  151. package/lib-esm/withAuthenticator.d.ts +0 -3
  152. package/lib-esm/withAuthenticator.js +0 -121
  153. package/lib-esm/withAuthenticator.js.map +0 -1
  154. package/src/components.ts +0 -65
  155. package/src/index.ts +0 -3
  156. package/src/react-component-lib/createComponent.tsx +0 -69
  157. package/src/react-component-lib/createControllerComponent.tsx +0 -71
  158. package/src/react-component-lib/createOverlayComponent.tsx +0 -79
  159. package/src/react-component-lib/index.ts +0 -3
  160. package/src/react-component-lib/utils/attachEventProps.ts +0 -87
  161. package/src/react-component-lib/utils/index.tsx +0 -31
  162. package/src/withAuthenticator.tsx +0 -62
  163. package/webpack.config.dev.js +0 -6
  164. package/webpack.config.js +0 -56
@@ -1,152 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- extendStatics(d, b);
11
- function __() { this.constructor = d; }
12
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
- };
14
- })();
15
- var __assign = (this && this.__assign) || function () {
16
- __assign = Object.assign || function(t) {
17
- for (var s, i = 1, n = arguments.length; i < n; i++) {
18
- s = arguments[i];
19
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
20
- t[p] = s[p];
21
- }
22
- return t;
23
- };
24
- return __assign.apply(this, arguments);
25
- };
26
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
27
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
28
- return new (P || (P = Promise))(function (resolve, reject) {
29
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
30
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
31
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
32
- step((generator = generator.apply(thisArg, _arguments || [])).next());
33
- });
34
- };
35
- var __generator = (this && this.__generator) || function (thisArg, body) {
36
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
37
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
38
- function verb(n) { return function (v) { return step([n, v]); }; }
39
- function step(op) {
40
- if (f) throw new TypeError("Generator is already executing.");
41
- while (_) try {
42
- 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;
43
- if (y = 0, t) op = [op[0] & 2, t.value];
44
- switch (op[0]) {
45
- case 0: case 1: t = op; break;
46
- case 4: _.label++; return { value: op[1], done: false };
47
- case 5: _.label++; y = op[1]; op = [0]; continue;
48
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
49
- default:
50
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
51
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
52
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
53
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
54
- if (t[2]) _.ops.pop();
55
- _.trys.pop(); continue;
56
- }
57
- op = body.call(thisArg, _);
58
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
59
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
60
- }
61
- };
62
- var __rest = (this && this.__rest) || function (s, e) {
63
- var t = {};
64
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
65
- t[p] = s[p];
66
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
67
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
68
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
69
- t[p[i]] = s[p[i]];
70
- }
71
- return t;
72
- };
73
- var __importDefault = (this && this.__importDefault) || function (mod) {
74
- return (mod && mod.__esModule) ? mod : { "default": mod };
75
- };
76
- Object.defineProperty(exports, "__esModule", { value: true });
77
- var react_1 = __importDefault(require("react"));
78
- var attachEventProps_1 = require("./utils/attachEventProps");
79
- function createControllerComponent(displayName, controller) {
80
- var dismissEventName = "on" + displayName + "DidDismiss";
81
- return /** @class */ (function (_super) {
82
- __extends(ReactControllerComponent, _super);
83
- function ReactControllerComponent(props) {
84
- return _super.call(this, props) || this;
85
- }
86
- Object.defineProperty(ReactControllerComponent, "displayName", {
87
- get: function () {
88
- return displayName;
89
- },
90
- enumerable: true,
91
- configurable: true
92
- });
93
- ReactControllerComponent.prototype.componentDidMount = function () {
94
- return __awaiter(this, void 0, void 0, function () {
95
- var isOpen;
96
- return __generator(this, function (_a) {
97
- isOpen = this.props.isOpen;
98
- if (isOpen) {
99
- this.present();
100
- }
101
- return [2 /*return*/];
102
- });
103
- });
104
- };
105
- ReactControllerComponent.prototype.componentDidUpdate = function (prevProps) {
106
- return __awaiter(this, void 0, void 0, function () {
107
- return __generator(this, function (_a) {
108
- switch (_a.label) {
109
- case 0:
110
- if (prevProps.isOpen !== this.props.isOpen && this.props.isOpen === true) {
111
- this.present(prevProps);
112
- }
113
- if (!(this.controller &&
114
- prevProps.isOpen !== this.props.isOpen &&
115
- this.props.isOpen === false)) return [3 /*break*/, 2];
116
- return [4 /*yield*/, this.controller.dismiss()];
117
- case 1:
118
- _a.sent();
119
- _a.label = 2;
120
- case 2: return [2 /*return*/];
121
- }
122
- });
123
- });
124
- };
125
- ReactControllerComponent.prototype.present = function (prevProps) {
126
- return __awaiter(this, void 0, void 0, function () {
127
- var _a, isOpen, onDidDismiss, cProps, elementProps, _b;
128
- var _c;
129
- return __generator(this, function (_d) {
130
- switch (_d.label) {
131
- case 0:
132
- _a = this.props, isOpen = _a.isOpen, onDidDismiss = _a.onDidDismiss, cProps = __rest(_a, ["isOpen", "onDidDismiss"]);
133
- elementProps = __assign(__assign({}, cProps), (_c = {}, _c[dismissEventName] = onDidDismiss, _c));
134
- _b = this;
135
- return [4 /*yield*/, controller.create(__assign({}, elementProps))];
136
- case 1:
137
- _b.controller = _d.sent();
138
- attachEventProps_1.attachEventProps(this.controller, elementProps, prevProps);
139
- this.controller.present();
140
- return [2 /*return*/];
141
- }
142
- });
143
- });
144
- };
145
- ReactControllerComponent.prototype.render = function () {
146
- return null;
147
- };
148
- return ReactControllerComponent;
149
- }(react_1.default.Component));
150
- }
151
- exports.createControllerComponent = createControllerComponent;
152
- //# sourceMappingURL=createControllerComponent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createControllerComponent.js","sourceRoot":"","sources":["../../src/react-component-lib/createControllerComponent.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,6DAA4D;AAY5D,SAAgB,yBAAyB,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,EAAE,YAAY,EAAE,SAAS,CAAC,CAAC;4BAClE,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;;;;;SAC3B;QAED,yCAAM,GAAN;YACE,OAAO,IAAI,CAAC;QACd,CAAC;QACH,+BAAC;IAAD,CAAC,AA/CM,CAAuC,eAAK,CAAC,SAAS,GA+C3D;AACJ,CAAC;AAzDD,8DAyDC"}
@@ -1,45 +0,0 @@
1
- import React from 'react';
2
- interface LoadingElement {
3
- present: () => any;
4
- dismiss: () => any;
5
- }
6
- interface ReactOverlayProps<E> {
7
- children?: React.ReactNode;
8
- isOpen: boolean;
9
- onDidDismiss?: (event: CustomEvent<E>) => void;
10
- }
11
- export declare function createOverlayComponent<T extends object, LoadingElementType extends LoadingElement, OverlayEventDetail>(displayName: string, controller: {
12
- create: (options: any) => Promise<LoadingElementType>;
13
- }): {
14
- new (props: T & ReactOverlayProps<OverlayEventDetail>): {
15
- controller?: LoadingElementType;
16
- el: HTMLDivElement;
17
- componentDidMount(): void;
18
- componentDidUpdate(prevProps: T & ReactOverlayProps<OverlayEventDetail>): Promise<void>;
19
- present(prevProps?: T & ReactOverlayProps<OverlayEventDetail>): Promise<void>;
20
- render(): React.ReactPortal;
21
- context: any;
22
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<T & ReactOverlayProps<OverlayEventDetail>>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void;
23
- forceUpdate(callback?: () => void): void;
24
- readonly props: Readonly<T & ReactOverlayProps<OverlayEventDetail>> & Readonly<{
25
- children?: React.ReactNode;
26
- }>;
27
- state: Readonly<{}>;
28
- refs: {
29
- [key: string]: React.ReactInstance;
30
- };
31
- shouldComponentUpdate?(nextProps: Readonly<T & ReactOverlayProps<OverlayEventDetail>>, nextState: Readonly<{}>, nextContext: any): boolean;
32
- componentWillUnmount?(): void;
33
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
34
- getSnapshotBeforeUpdate?(prevProps: Readonly<T & ReactOverlayProps<OverlayEventDetail>>, prevState: Readonly<{}>): any;
35
- componentWillMount?(): void;
36
- UNSAFE_componentWillMount?(): void;
37
- componentWillReceiveProps?(nextProps: Readonly<T & ReactOverlayProps<OverlayEventDetail>>, nextContext: any): void;
38
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<T & ReactOverlayProps<OverlayEventDetail>>, nextContext: any): void;
39
- componentWillUpdate?(nextProps: Readonly<T & ReactOverlayProps<OverlayEventDetail>>, nextState: Readonly<{}>, nextContext: any): void;
40
- UNSAFE_componentWillUpdate?(nextProps: Readonly<T & ReactOverlayProps<OverlayEventDetail>>, nextState: Readonly<{}>, nextContext: any): void;
41
- };
42
- readonly displayName: string;
43
- contextType?: React.Context<any>;
44
- };
45
- export {};
@@ -1,148 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- extendStatics(d, b);
11
- function __() { this.constructor = d; }
12
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
- };
14
- })();
15
- var __assign = (this && this.__assign) || function () {
16
- __assign = Object.assign || function(t) {
17
- for (var s, i = 1, n = arguments.length; i < n; i++) {
18
- s = arguments[i];
19
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
20
- t[p] = s[p];
21
- }
22
- return t;
23
- };
24
- return __assign.apply(this, arguments);
25
- };
26
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
27
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
28
- return new (P || (P = Promise))(function (resolve, reject) {
29
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
30
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
31
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
32
- step((generator = generator.apply(thisArg, _arguments || [])).next());
33
- });
34
- };
35
- var __generator = (this && this.__generator) || function (thisArg, body) {
36
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
37
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
38
- function verb(n) { return function (v) { return step([n, v]); }; }
39
- function step(op) {
40
- if (f) throw new TypeError("Generator is already executing.");
41
- while (_) try {
42
- 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;
43
- if (y = 0, t) op = [op[0] & 2, t.value];
44
- switch (op[0]) {
45
- case 0: case 1: t = op; break;
46
- case 4: _.label++; return { value: op[1], done: false };
47
- case 5: _.label++; y = op[1]; op = [0]; continue;
48
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
49
- default:
50
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
51
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
52
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
53
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
54
- if (t[2]) _.ops.pop();
55
- _.trys.pop(); continue;
56
- }
57
- op = body.call(thisArg, _);
58
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
59
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
60
- }
61
- };
62
- var __rest = (this && this.__rest) || function (s, e) {
63
- var t = {};
64
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
65
- t[p] = s[p];
66
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
67
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
68
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
69
- t[p[i]] = s[p[i]];
70
- }
71
- return t;
72
- };
73
- var __importDefault = (this && this.__importDefault) || function (mod) {
74
- return (mod && mod.__esModule) ? mod : { "default": mod };
75
- };
76
- Object.defineProperty(exports, "__esModule", { value: true });
77
- var react_1 = __importDefault(require("react"));
78
- var react_dom_1 = __importDefault(require("react-dom"));
79
- var attachEventProps_1 = require("./utils/attachEventProps");
80
- function createOverlayComponent(displayName, controller) {
81
- var dismissEventName = "on" + displayName + "DidDismiss";
82
- return /** @class */ (function (_super) {
83
- __extends(ReactOverlayComponent, _super);
84
- function ReactOverlayComponent(props) {
85
- var _this = _super.call(this, props) || this;
86
- _this.el = document.createElement('div');
87
- return _this;
88
- }
89
- Object.defineProperty(ReactOverlayComponent, "displayName", {
90
- get: function () {
91
- return displayName;
92
- },
93
- enumerable: true,
94
- configurable: true
95
- });
96
- ReactOverlayComponent.prototype.componentDidMount = function () {
97
- if (this.props.isOpen) {
98
- this.present();
99
- }
100
- };
101
- ReactOverlayComponent.prototype.componentDidUpdate = function (prevProps) {
102
- return __awaiter(this, void 0, void 0, function () {
103
- return __generator(this, function (_a) {
104
- switch (_a.label) {
105
- case 0:
106
- if (prevProps.isOpen !== this.props.isOpen && this.props.isOpen === true) {
107
- this.present(prevProps);
108
- }
109
- if (!(this.controller &&
110
- prevProps.isOpen !== this.props.isOpen &&
111
- this.props.isOpen === false)) return [3 /*break*/, 2];
112
- return [4 /*yield*/, this.controller.dismiss()];
113
- case 1:
114
- _a.sent();
115
- _a.label = 2;
116
- case 2: return [2 /*return*/];
117
- }
118
- });
119
- });
120
- };
121
- ReactOverlayComponent.prototype.present = function (prevProps) {
122
- return __awaiter(this, void 0, void 0, function () {
123
- var _a, children, isOpen, _b, onDidDismiss, cProps, elementProps, _c;
124
- var _d;
125
- return __generator(this, function (_e) {
126
- switch (_e.label) {
127
- case 0:
128
- _a = this.props, children = _a.children, isOpen = _a.isOpen, _b = _a.onDidDismiss, onDidDismiss = _b === void 0 ? function () { } : _b, cProps = __rest(_a, ["children", "isOpen", "onDidDismiss"]);
129
- elementProps = __assign(__assign({}, cProps), (_d = {}, _d[dismissEventName] = onDidDismiss, _d));
130
- _c = this;
131
- return [4 /*yield*/, controller.create(__assign(__assign({}, elementProps), { component: this.el, componentProps: {} }))];
132
- case 1:
133
- _c.controller = _e.sent();
134
- attachEventProps_1.attachEventProps(this.controller, elementProps, prevProps);
135
- this.controller.present();
136
- return [2 /*return*/];
137
- }
138
- });
139
- });
140
- };
141
- ReactOverlayComponent.prototype.render = function () {
142
- return react_dom_1.default.createPortal(this.props.children, this.el);
143
- };
144
- return ReactOverlayComponent;
145
- }(react_1.default.Component));
146
- }
147
- exports.createOverlayComponent = createOverlayComponent;
148
- //# sourceMappingURL=createOverlayComponent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createOverlayComponent.js","sourceRoot":"","sources":["../../src/react-component-lib/createOverlayComponent.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,wDAAiC;AACjC,6DAA4D;AAY5D,SAAgB,sBAAsB,CAIpC,WAAmB,EAAE,UAAqE;IAC1F,IAAM,gBAAgB,GAAG,OAAK,WAAW,eAAY,CAAC;IAItD;QAA2C,yCAAsB;QAI/D,+BAAY,KAAY;YAAxB,YACE,kBAAM,KAAK,CAAC,SAEb;YADC,KAAI,CAAC,EAAE,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;;QAC1C,CAAC;QAED,sBAAW,oCAAW;iBAAtB;gBACE,OAAO,WAAW,CAAC;YACrB,CAAC;;;WAAA;QAED,iDAAiB,GAAjB;YAC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AAK,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC;QAC7D,CAAC;QACH,4BAAC;IAAD,CAAC,AAtDM,CAAoC,eAAK,CAAC,SAAS,GAsDxD;AACJ,CAAC;AAhED,wDAgEC"}
@@ -1,3 +0,0 @@
1
- export { createReactComponent } from './createComponent';
2
- export { createControllerComponent } from './createControllerComponent';
3
- export { createOverlayComponent } from './createOverlayComponent';
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var createComponent_1 = require("./createComponent");
4
- exports.createReactComponent = createComponent_1.createReactComponent;
5
- var createControllerComponent_1 = require("./createControllerComponent");
6
- exports.createControllerComponent = createControllerComponent_1.createControllerComponent;
7
- var createOverlayComponent_1 = require("./createOverlayComponent");
8
- exports.createOverlayComponent = createOverlayComponent_1.createOverlayComponent;
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react-component-lib/index.ts"],"names":[],"mappings":";;AAAA,qDAAyD;AAAhD,iDAAA,oBAAoB,CAAA;AAC7B,yEAAwE;AAA/D,gEAAA,yBAAyB,CAAA;AAClC,mEAAkE;AAAzD,0DAAA,sBAAsB,CAAA"}
@@ -1,8 +0,0 @@
1
- export declare function attachEventProps(node: HTMLElement, newProps: any, oldProps?: any): void;
2
- export declare function getClassName(classList: DOMTokenList, newProps: any, oldProps: any): string;
3
- /**
4
- * Checks if an event is supported in the current execution environment.
5
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
6
- */
7
- export declare function isCoveredByReact(eventNameSuffix: string, doc?: Document): boolean;
8
- export declare function syncEvent(node: Element, eventName: string, newEventHandler: (e: Event) => any): void;
@@ -1,85 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- function attachEventProps(node, newProps, oldProps) {
4
- if (oldProps === void 0) { oldProps = {}; }
5
- var className = getClassName(node.classList, newProps, oldProps);
6
- if (className) {
7
- node.className = className;
8
- }
9
- Object.keys(newProps).forEach(function (name) {
10
- if (name === 'children' || name === 'style' || name === 'ref' || name === 'className') {
11
- return;
12
- }
13
- if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
14
- var eventName = name.substring(2);
15
- var eventNameLc = eventName[0].toLowerCase() + eventName.substring(1);
16
- if (!isCoveredByReact(eventNameLc)) {
17
- syncEvent(node, eventNameLc, newProps[name]);
18
- }
19
- }
20
- else {
21
- node[name] = newProps[name];
22
- }
23
- });
24
- }
25
- exports.attachEventProps = attachEventProps;
26
- function getClassName(classList, newProps, oldProps) {
27
- // map the classes to Maps for performance
28
- var currentClasses = arrayToMap(classList);
29
- var incomingPropClasses = arrayToMap(newProps.className ? newProps.className.split(' ') : []);
30
- var oldPropClasses = arrayToMap(oldProps.className ? oldProps.className.split(' ') : []);
31
- var finalClassNames = [];
32
- // loop through each of the current classes on the component
33
- // to see if it should be a part of the classNames added
34
- currentClasses.forEach(function (currentClass) {
35
- if (incomingPropClasses.has(currentClass)) {
36
- // add it as its already included in classnames coming in from newProps
37
- finalClassNames.push(currentClass);
38
- incomingPropClasses.delete(currentClass);
39
- }
40
- else if (!oldPropClasses.has(currentClass)) {
41
- // add it as it has NOT been removed by user
42
- finalClassNames.push(currentClass);
43
- }
44
- });
45
- incomingPropClasses.forEach(function (s) { return finalClassNames.push(s); });
46
- return finalClassNames.join(' ');
47
- }
48
- exports.getClassName = getClassName;
49
- /**
50
- * Checks if an event is supported in the current execution environment.
51
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
52
- */
53
- function isCoveredByReact(eventNameSuffix, doc) {
54
- if (doc === void 0) { doc = document; }
55
- var eventName = 'on' + eventNameSuffix;
56
- var isSupported = eventName in doc;
57
- if (!isSupported) {
58
- var element = doc.createElement('div');
59
- element.setAttribute(eventName, 'return;');
60
- isSupported = typeof element[eventName] === 'function';
61
- }
62
- return isSupported;
63
- }
64
- exports.isCoveredByReact = isCoveredByReact;
65
- function syncEvent(node, eventName, newEventHandler) {
66
- var eventStore = node.__events || (node.__events = {});
67
- var oldEventHandler = eventStore[eventName];
68
- // Remove old listener so they don't double up.
69
- if (oldEventHandler) {
70
- node.removeEventListener(eventName, oldEventHandler);
71
- }
72
- if (newEventHandler != null) {
73
- // Bind new listener.
74
- node.addEventListener(eventName, (eventStore[eventName] = function handler(e) {
75
- newEventHandler.call(this, e);
76
- }));
77
- }
78
- }
79
- exports.syncEvent = syncEvent;
80
- function arrayToMap(arr) {
81
- var map = new Map();
82
- arr.forEach(function (s) { return map.set(s, s); });
83
- return map;
84
- }
85
- //# sourceMappingURL=attachEventProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"attachEventProps.js","sourceRoot":"","sources":["../../../src/react-component-lib/utils/attachEventProps.ts"],"names":[],"mappings":";;AAAA,SAAgB,gBAAgB,CAAC,IAAiB,EAAE,QAAa,EAAE,QAAkB;IAAlB,yBAAA,EAAA,aAAkB;IACnF,IAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACnE,IAAI,SAAS,EAAE;QACb,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;KAC5B;IAED,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,UAAA,IAAI;QAChC,IAAI,IAAI,KAAK,UAAU,IAAI,IAAI,KAAK,OAAO,IAAI,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,WAAW,EAAE;YACrF,OAAO;SACR;QACD,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,EAAE;YACjE,IAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YACpC,IAAM,WAAW,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,S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SAAS,UAAU,CAAC,GAA4B;IAC9C,IAAM,GAAG,GAAG,IAAI,GAAG,EAAkB,CAAC;IACrC,GAAgB,CAAC,OAAO,CAAC,UAAC,CAAS,IAAK,OAAA,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,EAAb,CAAa,CAAC,CAAC;IACxD,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- export declare const dashToPascalCase: (str: string) => string;
3
- export interface ReactProps {
4
- class?: string;
5
- }
6
- export declare type IonicReactExternalProps<PropType, ElementType> = PropType & React.HTMLAttributes<ElementType> & ReactProps;
7
- export declare const createForwardRef: <PropType, ElementType>(ReactComponent: any, displayName: string) => React.ForwardRefExoticComponent<React.PropsWithoutRef<IonicReactExternalProps<PropType, ElementType>> & React.RefAttributes<ElementType>>;
8
- export * from './attachEventProps';
@@ -1,36 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- function __export(m) {
14
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
15
- }
16
- var __importDefault = (this && this.__importDefault) || function (mod) {
17
- return (mod && mod.__esModule) ? mod : { "default": mod };
18
- };
19
- Object.defineProperty(exports, "__esModule", { value: true });
20
- var react_1 = __importDefault(require("react"));
21
- exports.dashToPascalCase = function (str) {
22
- return str
23
- .toLowerCase()
24
- .split('-')
25
- .map(function (segment) { return segment.charAt(0).toUpperCase() + segment.slice(1); })
26
- .join('');
27
- };
28
- exports.createForwardRef = function (ReactComponent, displayName) {
29
- var forwardRef = function (props, ref) {
30
- return react_1.default.createElement(ReactComponent, __assign({}, props, { forwardedRef: ref }));
31
- };
32
- forwardRef.displayName = displayName;
33
- return react_1.default.forwardRef(forwardRef);
34
- };
35
- __export(require("./attachEventProps"));
36
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/react-component-lib/utils/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAEb,QAAA,gBAAgB,GAAG,UAAC,GAAW;IAC1C,OAAA,GAAG;SACA,WAAW,EAAE;SACb,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,UAAA,OAAO,IAAI,OAAA,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,EAAlD,CAAkD,CAAC;SAClE,IAAI,CAAC,EAAE,CAAC;AAJX,CAIW,CAAC;AAQD,QAAA,gBAAgB,GAAG,UAC9B,cAAmB,EACnB,WAAmB;IAEnB,IAAM,UAAU,GAAG,UACjB,KAAqD,EACrD,GAA2B;QAE3B,OAAO,8BAAC,cAAc,eAAK,KAAK,IAAE,YAAY,EAAE,GAAG,IAAI,CAAC;IAC1D,CAAC,CAAC;IACF,UAAU,CAAC,WAAW,GAAG,WAAW,CAAC;IAErC,OAAO,eAAK,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;AACtC,CAAC,CAAC;AAEF,wCAAmC"}
@@ -1,3 +0,0 @@
1
- import React, { ComponentType, ComponentPropsWithRef } from 'react';
2
- import { AmplifyAuthenticator } from './';
3
- export declare function withAuthenticator<T extends object>(Component: ComponentType<T>, authenticatorProps?: ComponentPropsWithRef<typeof AmplifyAuthenticator>): React.FunctionComponent<T>;