@pinnacle0/web-ui 0.5.0-beta.10 → 0.5.0-beta.12

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.
@@ -0,0 +1,25 @@
1
+ import React from "react";
2
+ import type { Props as InputProps } from "./Input";
3
+ import type { PickOptional } from "../internal/type";
4
+ export interface Props extends Omit<InputProps, "suffix"> {
5
+ onSend: () => Promise<boolean>;
6
+ nextSendInterval?: number;
7
+ autoSendOnMount?: boolean;
8
+ sendText?: string;
9
+ }
10
+ interface State {
11
+ isSending: boolean;
12
+ nextSendRemainingSecond: number | null;
13
+ }
14
+ export declare class AuthenticationCodeInputV2 extends React.PureComponent<Props, State> {
15
+ static displayName: string;
16
+ static defaultProps: PickOptional<Props>;
17
+ private timer;
18
+ constructor(props: Props);
19
+ componentDidMount(): void;
20
+ componentWillUnmount(): void;
21
+ updateNextSendRemainingSecond: () => void;
22
+ onSend: () => Promise<void>;
23
+ render(): JSX.Element;
24
+ }
25
+ export {};
@@ -0,0 +1,165 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
+ extendStatics(d, b);
12
+ function __() { this.constructor = d; }
13
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
+ };
15
+ })();
16
+ var __assign = (this && this.__assign) || function () {
17
+ __assign = Object.assign || function(t) {
18
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
19
+ s = arguments[i];
20
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
21
+ t[p] = s[p];
22
+ }
23
+ return t;
24
+ };
25
+ return __assign.apply(this, arguments);
26
+ };
27
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
28
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
29
+ return new (P || (P = Promise))(function (resolve, reject) {
30
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
31
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
32
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
33
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
34
+ });
35
+ };
36
+ var __generator = (this && this.__generator) || function (thisArg, body) {
37
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
38
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
39
+ function verb(n) { return function (v) { return step([n, v]); }; }
40
+ function step(op) {
41
+ if (f) throw new TypeError("Generator is already executing.");
42
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
43
+ 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;
44
+ if (y = 0, t) op = [op[0] & 2, t.value];
45
+ switch (op[0]) {
46
+ case 0: case 1: t = op; break;
47
+ case 4: _.label++; return { value: op[1], done: false };
48
+ case 5: _.label++; y = op[1]; op = [0]; continue;
49
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
50
+ default:
51
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
52
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
53
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
54
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
55
+ if (t[2]) _.ops.pop();
56
+ _.trys.pop(); continue;
57
+ }
58
+ op = body.call(thisArg, _);
59
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
60
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
61
+ }
62
+ };
63
+ var __rest = (this && this.__rest) || function (s, e) {
64
+ var t = {};
65
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
66
+ t[p] = s[p];
67
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
68
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
69
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
70
+ t[p[i]] = s[p[i]];
71
+ }
72
+ return t;
73
+ };
74
+ import React from "react";
75
+ import { classNames } from "../util/ClassNames";
76
+ import { i18n } from "../internal/i18n/core";
77
+ import { TextUtil } from "../internal/TextUtil";
78
+ import { Input } from "./Input";
79
+ export var AuthenticationCodeInputV2 = /** @class */ (function (_super) {
80
+ __extends(AuthenticationCodeInputV2, _super);
81
+ function AuthenticationCodeInputV2(props) {
82
+ var _this = _super.call(this, props) || this;
83
+ _this.updateNextSendRemainingSecond = function () {
84
+ var nextSendRemainingSecond = _this.state.nextSendRemainingSecond - 1;
85
+ if (nextSendRemainingSecond <= 0) {
86
+ clearInterval(_this.timer);
87
+ _this.setState({ nextSendRemainingSecond: null });
88
+ }
89
+ else {
90
+ _this.setState({ nextSendRemainingSecond: nextSendRemainingSecond });
91
+ }
92
+ };
93
+ _this.onSend = function () { return __awaiter(_this, void 0, void 0, function () {
94
+ var nextSendInterval, onSend, sendSuccess;
95
+ var _a;
96
+ var _this = this;
97
+ return __generator(this, function (_b) {
98
+ switch (_b.label) {
99
+ case 0:
100
+ nextSendInterval = (_a = this.props, _a.nextSendInterval), onSend = _a.onSend;
101
+ _b.label = 1;
102
+ case 1:
103
+ _b.trys.push([1, , 3, 4]);
104
+ this.setState({ isSending: true });
105
+ return [4 /*yield*/, onSend()];
106
+ case 2:
107
+ sendSuccess = _b.sent();
108
+ if (sendSuccess) {
109
+ this.setState({ nextSendRemainingSecond: nextSendInterval }, function () {
110
+ _this.timer = window.setInterval(_this.updateNextSendRemainingSecond, 1000);
111
+ });
112
+ }
113
+ return [3 /*break*/, 4];
114
+ case 3:
115
+ this.setState({ isSending: false });
116
+ return [7 /*endfinally*/];
117
+ case 4: return [2 /*return*/];
118
+ }
119
+ });
120
+ }); };
121
+ _this.state = {
122
+ isSending: false,
123
+ nextSendRemainingSecond: null,
124
+ };
125
+ return _this;
126
+ }
127
+ AuthenticationCodeInputV2.prototype.componentDidMount = function () {
128
+ if (this.props.autoSendOnMount) {
129
+ this.onSend();
130
+ }
131
+ };
132
+ AuthenticationCodeInputV2.prototype.componentWillUnmount = function () {
133
+ clearInterval(this.timer);
134
+ };
135
+ AuthenticationCodeInputV2.prototype.render = function () {
136
+ var _a;
137
+ var _b = this.props, sendText = _b.sendText,
138
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars -- not included in inputProps
139
+ onSend = _b.onSend,
140
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars -- not included in inputProps
141
+ autoSendOnMount = _b.autoSendOnMount,
142
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars -- not included in inputProps
143
+ nextSendInterval = _b.nextSendInterval, className = _b.className, inputProps = __rest(_b, ["sendText", "onSend", "autoSendOnMount", "nextSendInterval", "className"]);
144
+ var isSending = (_a = this.state, _a.isSending), nextSendRemainingSecond = _a.nextSendRemainingSecond;
145
+ var t = i18n();
146
+ var disabled = inputProps.disabled || nextSendRemainingSecond !== null || isSending;
147
+ var groupStyle = { display: "flex", alignItems: "center" };
148
+ var sendTextStyle = {
149
+ color: disabled ? "#b2c2cf" : "#3d9cf1",
150
+ textDecoration: "underline",
151
+ whiteSpace: "nowrap",
152
+ fontSize: 12,
153
+ cursor: disabled ? "not-allowed" : "pointer",
154
+ };
155
+ return (React.createElement("div", { className: "g-auth-code-input-group", style: groupStyle },
156
+ React.createElement(Input, __assign({}, inputProps, { className: classNames(className, "g-auth-code-input") })),
157
+ React.createElement("div", { className: "g-auth-code-input-send-text", style: sendTextStyle, onClick: !disabled ? this.onSend : undefined }, nextSendRemainingSecond ? TextUtil.interpolate(t.waitResendAuthCode, nextSendRemainingSecond.toString()) : sendText || t.sendAuthCode)));
158
+ };
159
+ AuthenticationCodeInputV2.displayName = "AuthenticationCodeInputV2";
160
+ AuthenticationCodeInputV2.defaultProps = {
161
+ nextSendInterval: 60,
162
+ };
163
+ return AuthenticationCodeInputV2;
164
+ }(React.PureComponent));
165
+ //# sourceMappingURL=AuthenticationCodeInputV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthenticationCodeInputV2.js","sourceRoot":"","sources":["../../src/core/AuthenticationCodeInputV2.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAC,IAAI,EAAC,MAAM,uBAAuB,CAAC;AAC3C,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAgB9B;IAA+C,6CAAiC;IAQ5E,mCAAY,KAAY;QAAxB,YACI,kBAAM,KAAK,CAAC,SAKf;QAYD,mCAA6B,GAAG;YAC5B,IAAM,uBAAuB,GAAG,KAAI,CAAC,KAAK,CAAC,uBAAwB,GAAG,CAAC,CAAC;YACxE,IAAI,uBAAuB,IAAI,CAAC,EAAE;gBAC9B,aAAa,CAAC,KAAI,CAAC,KAAK,CAAC,CAAC;gBAC1B,KAAI,CAAC,QAAQ,CAAC,EAAC,uBAAuB,EA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CAAC,aAAa,GAoFjE"}
@@ -30,8 +30,9 @@ export var WithExplanation = /** @class */ (function (_super) {
30
30
  children,
31
31
  React.createElement(Tooltip, { className: "g-with-explanation-tooltip", title: Array.isArray(explanation) ? explanation.map(function (_, index) { return React.createElement("p", { key: index }, _); }) : explanation },
32
32
  React.createElement("div", { className: "icon-container" },
33
- React.createElement("svg", { viewBox: "0 0 1024 1024" },
34
- React.createElement("path", { d: "M512 0C229.322105 0 0 229.914947 0 512S229.322105 1024 512 1024 1024 794.085053 1024 512 794.677895 0 512 0z m45.972211 779.964632a65.428211 65.428211 0 0 1-45.972211 18.378105h-1.239579c-17.785263 0-34.330947-6.736842-46.565053-19.024842a65.320421 65.320421 0 0 1-19.024842-46.565053c0-19.024842 6.736842-34.330947 19.617685-46.618947 11.641263-12.234105 27.594105-18.378105 46.618947-18.378106h15.898947v1.832422c12.288 2.425263 23.336421 7.976421 31.258948 16.545684 12.288 12.288 19.024842 27.594105 19.024842 46.618947 0 18.378105-6.736842 34.330947-19.617684 47.21179z m96.309894-283.270737c-4.311579 5.497263-15.36 16.545684-60.092631 55.781052-11.048421 9.162105-19.671579 20.210526-25.168842 31.258948-6.144 11.641263-9.162105 23.929263-9.162106 38.642526v27.594105H454.332632v-27.594105c0-29.426526 4.850526-53.355789 15.306105-72.973474 10.401684-20.857263 36.163368-49.690947 80.949895-88.279579l11.048421-12.288c10.994526-13.473684 15.898947-26.947368 15.898947-40.421052 0-19.671579-5.497263-35.031579-15.898947-46.026105-10.455579-10.401684-26.408421-15.952842-47.21179-15.952843-25.761684 0-44.193684 7.383579-54.595368 22.689685-10.401684 14.120421-15.952842 34.330947-15.952842 61.33221v15.952842H339.698526v-15.952842c0-53.948632 15.952842-98.088421 47.804632-129.994105 31.905684-32.498526 76.692211-49.044211 131.880421-49.044211 48.397474 0 88.279579 13.473684 118.298947 40.421053 31.258947 27.001263 46.618947 64.404211 46.026106 111.023158 0 36.756211-9.808842 68.661895-29.426527 93.776842z" }))))));
33
+ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 26 24" },
34
+ React.createElement("circle", { cx: "8", cy: "8", r: "8", "data-name": "\u692D\u5706\u5F62", style: { fill: "none", strokeMiterlimit: 10 }, transform: "translate(3.5 4)" }),
35
+ React.createElement("path", { d: "M2.338 9.9a.972.972 0 0 1-.294-.715.929.929 0 0 1 .294-.714.991.991 0 0 1 .728-.28 1 1 0 0 1 .742.28.929.929 0 0 1 .294.714.994.994 0 0 1-.308.728 1.049 1.049 0 0 1-.728.28 1 1 0 0 1-.728-.293zm-.014-2.466V7.2a2.794 2.794 0 0 1 .28-1.33 6.938 6.938 0 0 1 1.582-1.74l.239-.266a1.638 1.638 0 0 0 .391-1.022 1.593 1.593 0 0 0-.406-1.148 1.624 1.624 0 0 0-1.19-.419 1.549 1.549 0 0 0-1.373.6A2.345 2.345 0 0 0 1.47 3.3H0A3.247 3.247 0 0 1 .882.9 3.245 3.245 0 0 1 3.318 0 3.131 3.131 0 0 1 5.5.742a2.53 2.53 0 0 1 .841 2 2.71 2.71 0 0 1-.531 1.71 14.388 14.388 0 0 1-1.176 1.092 2.319 2.319 0 0 0-.588.728 1.871 1.871 0 0 0-.224.924v.238z", transform: "translate(8.336 6.808)" }))))));
35
36
  }
36
37
  else {
37
38
  return children || "";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/WithExplanation/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,YAAY,CAAC;AAGnC,OAAO,cAAc,CAAC;AAetB;IAAqC,mCAA0B;IAA/D;;IA0BA,CAAC;IAnBG,gCAAM,GAAN;;QACW,IAAA,QAAQ,IAAT,KAAwC,IAAI,CAAC,KAAK,cAAzC,EAAE,WAAW,iBAAA,EAAE,YAAY,kBA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K,SAAS,EAAE,UAAU,CAAC,oBAAoB,EAAE,oBAAa,YAAY,CAAE,CAAC;gBACxE,QAAQ;gBACT,oBAAC,OAAO,IAAC,SAAS,EAAC,4BAA4B,EAAC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,UAAC,CAAC,EAAE,KAAK,IAAK,OAAA,2BAAG,GAAG,EAAE,KAAK,IAAG,CAAC,CAAK,EAAtB,CAAsB,CAAC,CAAC,CAAC,CAAC,WAAW;oBACnJ,6BAAK,SAAS,EAAC,gBAAgB;wBAC3B,6BAAK,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,WAAW;4BACvD,gCAAQ,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,GAAG,eAAW,oBAAK,EAAC,KAAK,EAAE,EAAC,IAAI,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,EAAC,EAAE,SAAS,EAAC,kBAAkB,GAAG;4BACxH,8BACI,CAAC,EAAC,4nBAA4nB,EAC9nB,SAAS,EAAC,wBAAwB,GACpC,CACA,CACJ,CACA,CACR,CACT,CAAC;SACL;aAAM;YACH,OAAO,QAAQ,IAAI,EAAE,CAAC;SACzB;IACL,CAAC;IA5BM,2BAAW,GAAG,iBAAiB,CAAC;IAEhC,4BAAY,GAAwB;QACvC,YAAY,EAAE,OAAO;KACxB,CAAC;IAyBN,sBAAC;CAAA,AA9BD,CAAqC,KAAK,CAAC,aAAa,GA8BvD"}
@@ -1,4 +1,6 @@
1
1
  .g-with-explanation {
2
+ @gap: 6px;
3
+
2
4
  display: inline-flex;
3
5
  justify-content: center;
4
6
  align-items: center;
@@ -8,7 +10,7 @@
8
10
 
9
11
  .icon-container {
10
12
  margin-left: 0;
11
- margin-right: 5px;
13
+ margin-right: @gap;
12
14
  }
13
15
  }
14
16
 
@@ -16,12 +18,24 @@
16
18
  display: inline-flex;
17
19
  align-items: center;
18
20
  justify-content: center;
19
- width: 14px;
20
- height: 14px;
21
- border-radius: 50%;
22
- font-size: 10px;
23
- margin-left: 5px;
21
+ width: auto;
22
+ height: 1px;
23
+ margin-left: @gap;
24
+ color: inherit;
24
25
  cursor: help;
26
+
27
+ svg {
28
+ width: auto;
29
+ height: 1.4em;
30
+
31
+ path {
32
+ fill: currentcolor;
33
+ }
34
+
35
+ circle {
36
+ stroke: currentcolor;
37
+ }
38
+ }
25
39
  }
26
40
  }
27
41
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinnacle0/web-ui",
3
- "version": "0.5.0-beta.10",
3
+ "version": "0.5.0-beta.12",
4
4
  "author": "Pinnacle",
5
5
  "license": "MIT",
6
6
  "sideEffects": [