@onepercentio/one-ui 0.9.11 → 0.9.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Countdown/Countdown.d.ts +8 -1
- package/dist/components/Countdown/Countdown.js +29 -3
- package/dist/components/Countdown/Countdown.js.map +1 -1
- package/dist/hooks/ui/useTilt.d.ts +34 -0
- package/dist/hooks/ui/useTilt.js +125 -0
- package/dist/hooks/ui/useTilt.js.map +1 -0
- package/package.json +1 -1
|
@@ -4,10 +4,17 @@ export declare type TimeObject = {
|
|
|
4
4
|
seconds: number;
|
|
5
5
|
};
|
|
6
6
|
export declare function calculateTimeFromTimespan(timespan: number): TimeObject;
|
|
7
|
+
export declare enum CountdownTextModel {
|
|
8
|
+
/** This shows the countdown on the format 00:00:00 */
|
|
9
|
+
CLOCK = 0,
|
|
10
|
+
/** This shows the countdown on the format 00h 00m 00s */
|
|
11
|
+
SHORT = 1
|
|
12
|
+
}
|
|
7
13
|
/**
|
|
8
14
|
* You five it some time, and a countdown is shown
|
|
9
15
|
**/
|
|
10
|
-
export default function Countdown({ timeRemaining, onFinish, }: {
|
|
16
|
+
export default function Countdown({ timeRemaining, onFinish, model, }: {
|
|
11
17
|
timeRemaining: number;
|
|
12
18
|
onFinish?: () => void;
|
|
19
|
+
model?: CountdownTextModel;
|
|
13
20
|
}): JSX.Element;
|
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.calculateTimeFromTimespan = void 0;
|
|
26
|
+
exports.CountdownTextModel = exports.calculateTimeFromTimespan = void 0;
|
|
27
27
|
const react_1 = __importStar(require("react"));
|
|
28
28
|
function calculateTimeFromTimespan(timespan) {
|
|
29
29
|
const seconds = Math.floor(timespan / 1000);
|
|
@@ -39,11 +39,21 @@ exports.calculateTimeFromTimespan = calculateTimeFromTimespan;
|
|
|
39
39
|
const IntegerFormatter = new Intl.NumberFormat(undefined, {
|
|
40
40
|
minimumIntegerDigits: 2,
|
|
41
41
|
});
|
|
42
|
+
var CountdownTextModel;
|
|
43
|
+
(function (CountdownTextModel) {
|
|
44
|
+
/** This shows the countdown on the format 00:00:00 */
|
|
45
|
+
CountdownTextModel[CountdownTextModel["CLOCK"] = 0] = "CLOCK";
|
|
46
|
+
/** This shows the countdown on the format 00h 00m 00s */
|
|
47
|
+
CountdownTextModel[CountdownTextModel["SHORT"] = 1] = "SHORT";
|
|
48
|
+
})(CountdownTextModel = exports.CountdownTextModel || (exports.CountdownTextModel = {}));
|
|
42
49
|
/**
|
|
43
50
|
* You five it some time, and a countdown is shown
|
|
44
51
|
**/
|
|
45
|
-
function Countdown({ timeRemaining, onFinish, }) {
|
|
52
|
+
function Countdown({ timeRemaining, onFinish, model = CountdownTextModel.CLOCK, }) {
|
|
46
53
|
const [t, setT] = (0, react_1.useState)(() => calculateTimeFromTimespan(timeRemaining));
|
|
54
|
+
(0, react_1.useLayoutEffect)(() => {
|
|
55
|
+
setT(calculateTimeFromTimespan(timeRemaining));
|
|
56
|
+
}, [timeRemaining]);
|
|
47
57
|
(0, react_1.useEffect)(() => {
|
|
48
58
|
const cl = setInterval(() => {
|
|
49
59
|
setT((prev) => {
|
|
@@ -74,7 +84,23 @@ function Countdown({ timeRemaining, onFinish, }) {
|
|
|
74
84
|
clearInterval(cl);
|
|
75
85
|
};
|
|
76
86
|
}, [timeRemaining]);
|
|
77
|
-
|
|
87
|
+
const txt = (0, react_1.useMemo)(() => {
|
|
88
|
+
switch (model) {
|
|
89
|
+
case CountdownTextModel.CLOCK:
|
|
90
|
+
return (react_1.default.createElement(react_1.Fragment, null, `${IntegerFormatter.format(t.hours)}:${IntegerFormatter.format(t.minutes)}:${IntegerFormatter.format(t.seconds)}`));
|
|
91
|
+
case CountdownTextModel.SHORT:
|
|
92
|
+
return (react_1.default.createElement(react_1.Fragment, null,
|
|
93
|
+
IntegerFormatter.format(t.hours),
|
|
94
|
+
react_1.default.createElement("span", null, "h"),
|
|
95
|
+
"\u00A0",
|
|
96
|
+
IntegerFormatter.format(t.minutes),
|
|
97
|
+
react_1.default.createElement("span", null, "m"),
|
|
98
|
+
"\u00A0",
|
|
99
|
+
IntegerFormatter.format(t.seconds),
|
|
100
|
+
react_1.default.createElement("span", null, "s")));
|
|
101
|
+
}
|
|
102
|
+
}, [t, model]);
|
|
103
|
+
return react_1.default.createElement("span", null, txt);
|
|
78
104
|
}
|
|
79
105
|
exports.default = Countdown;
|
|
80
106
|
//# sourceMappingURL=Countdown.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Countdown.js","sourceRoot":"","sources":["../../../src/components/Countdown/Countdown.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+
|
|
1
|
+
{"version":3,"file":"Countdown.js","sourceRoot":"","sources":["../../../src/components/Countdown/Countdown.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAuF;AAQvF,SAAgB,yBAAyB,CAAC,QAAgB;IACxD,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC;IAC5C,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;IACzC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;IACvC,OAAO;QACL,KAAK;QACL,OAAO,EAAE,OAAO,GAAG,EAAE;QACrB,OAAO,EAAE,OAAO,GAAG,EAAE;KACtB,CAAC;AACJ,CAAC;AATD,8DASC;AAED,MAAM,gBAAgB,GAAG,IAAI,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE;IACxD,oBAAoB,EAAE,CAAC;CACxB,CAAC,CAAC;AAEH,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,s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,UAAU;oBACnB,KAAK,EAAE,QAAQ;iBAChB,CAAC;YACJ,CAAC,CAAC,CAAC;QACL,CAAC,EAAE,IAAI,CAAC,CAAC;QAET,OAAO,GAAG,EAAE;YACV,aAAa,CAAC,EAAE,CAAC,CAAC;QACpB,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC;IAEpB,MAAM,GAAG,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QACvB,QAAQ,KAAK,EAAE;YACb,KAAK,kBAAkB,CAAC,KAAK;gBAC3B,OAAO,CACL,8BAAC,gBAAQ,QACN,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAE,CAAC,KAAK,CAAC,IAAI,gBAAgB,CAAC,MAAM,CAC9D,CAAE,CAAC,OAAO,CACX,IAAI,gBAAgB,CAAC,MAAM,CAAC,CAAE,CAAC,OAAO,CAAC,EAAE,CACjC,CACZ,CAAC;YACJ,KAAK,kBAAkB,CAAC,KAAK;gBAC3B,OAAO,CACL,8BAAC,gBAAQ;oBACN,gBAAgB,CAAC,MAAM,CAAC,CAAE,CAAC,KAAK,CAAC;oBAClC,gDAAc;;oBACb,gBAAgB,CAAC,MAAM,CAAC,CAAE,CAAC,OAAO,CAAC;oBACpC,gDAAc;;oBACb,gBAAgB,CAAC,MAAM,CAAC,CAAE,CAAC,OAAO,CAAC;oBACpC,gDAAc,CACL,CACZ,CAAC;SACL;IACH,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;IAEf,OAAO,4CAAO,GAAG,CAAQ,CAAC;AAC5B,CAAC;AA3ED,4BA2EC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* This hook binds to two methods for calculating tilt
|
|
4
|
+
*
|
|
5
|
+
* When available: The device sensors
|
|
6
|
+
* When on desktop: The mouse position relative to a ref
|
|
7
|
+
*/
|
|
8
|
+
export default function useTilt(active: boolean,
|
|
9
|
+
/**
|
|
10
|
+
* A scale to increase the values from the sensors
|
|
11
|
+
*
|
|
12
|
+
* @hack You can set this value to 0 as a way to disable the tilt calc on mobile
|
|
13
|
+
*/
|
|
14
|
+
sensorScale?: number, maxTilt?: {
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
}): {
|
|
18
|
+
/** The element to monitor mouse hover relative to */
|
|
19
|
+
relativeTo: import("react").RefObject<HTMLDivElement>;
|
|
20
|
+
/**
|
|
21
|
+
* The matrix that represents the original tilt, so it can be used with the tilt prop to tilt relative to the user
|
|
22
|
+
* Use it on css like so transform: matrix3d(tiltResetMatrix.join(",")) rotateX(tilt.x) rotateY(tilt.y)
|
|
23
|
+
*/
|
|
24
|
+
tiltResetMatrix: number[];
|
|
25
|
+
/**
|
|
26
|
+
* How much tilt should be applied based
|
|
27
|
+
*/
|
|
28
|
+
tilt: {
|
|
29
|
+
x: number;
|
|
30
|
+
y: number;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export declare function calculateDistanceRelativeToBounds(mousePosition: number, elementInitialPosition: number, elementSizeDimension: number): number;
|
|
34
|
+
export declare function givenTheRelativePositionHowMuchToRotate(relativePosition: number, maxRotation: number): number;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.givenTheRelativePositionHowMuchToRotate = exports.calculateDistanceRelativeToBounds = void 0;
|
|
7
|
+
const throttle_1 = __importDefault(require("lodash/throttle"));
|
|
8
|
+
const react_1 = require("react");
|
|
9
|
+
const helpers_1 = require("../../components/Parallax/math/helpers");
|
|
10
|
+
const MAX_TILT = {
|
|
11
|
+
x: 100,
|
|
12
|
+
y: 100,
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* This hook binds to two methods for calculating tilt
|
|
16
|
+
*
|
|
17
|
+
* When available: The device sensors
|
|
18
|
+
* When on desktop: The mouse position relative to a ref
|
|
19
|
+
*/
|
|
20
|
+
function useTilt(active,
|
|
21
|
+
/**
|
|
22
|
+
* A scale to increase the values from the sensors
|
|
23
|
+
*
|
|
24
|
+
* @hack You can set this value to 0 as a way to disable the tilt calc on mobile
|
|
25
|
+
*/
|
|
26
|
+
sensorScale = 1, maxTilt = MAX_TILT) {
|
|
27
|
+
const [tilt, setTilt] = (0, react_1.useState)({
|
|
28
|
+
x: 0,
|
|
29
|
+
y: 0,
|
|
30
|
+
});
|
|
31
|
+
const [tiltResetMatrix, setTiltResetMatrix] = (0, react_1.useState)(() => (0, helpers_1.flattenMatrix)((0, helpers_1.IDENTITY_MATRIX)()));
|
|
32
|
+
const relativeTo = (0, react_1.useRef)(null);
|
|
33
|
+
(0, react_1.useEffect)(() => {
|
|
34
|
+
if (active) {
|
|
35
|
+
const updatePositions = (relativeToX, relativeToY) => {
|
|
36
|
+
const el = relativeTo.current;
|
|
37
|
+
const rect = el.getBoundingClientRect();
|
|
38
|
+
const { width: [x0, xW], height: [y0, yH], } = {
|
|
39
|
+
width: [rect.left, el.clientWidth],
|
|
40
|
+
height: [rect.top, el.clientHeight],
|
|
41
|
+
};
|
|
42
|
+
const distanceOffRight = calculateDistanceRelativeToBounds(relativeToX, x0, xW);
|
|
43
|
+
const distanceOffBottom = calculateDistanceRelativeToBounds(relativeToY, y0, yH);
|
|
44
|
+
const howMuchToRotateY = givenTheRelativePositionHowMuchToRotate(distanceOffRight, maxTilt.y);
|
|
45
|
+
const howMuchToRotateX = givenTheRelativePositionHowMuchToRotate(distanceOffBottom, maxTilt.x);
|
|
46
|
+
setTilt({
|
|
47
|
+
y: howMuchToRotateX * 2,
|
|
48
|
+
x: howMuchToRotateY * 2,
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
const handler = (0, throttle_1.default)(({ x, y }) => {
|
|
52
|
+
updatePositions(x, y);
|
|
53
|
+
}, 1000 / 30);
|
|
54
|
+
const touchHandler = (0, throttle_1.default)(({ touches }) => {
|
|
55
|
+
const { pageX, pageY } = touches[0];
|
|
56
|
+
updatePositions(pageX, pageY);
|
|
57
|
+
}, 1000 / 30);
|
|
58
|
+
window.addEventListener("mousemove", handler);
|
|
59
|
+
window.addEventListener("touchmove", touchHandler);
|
|
60
|
+
let _inverseMatrix;
|
|
61
|
+
const _limits = {
|
|
62
|
+
beta: undefined,
|
|
63
|
+
gamma: undefined,
|
|
64
|
+
};
|
|
65
|
+
const orientationListener = ({ beta, gamma, }) => {
|
|
66
|
+
beta = beta * 0.5;
|
|
67
|
+
gamma = gamma * 0.5;
|
|
68
|
+
if (!_inverseMatrix) {
|
|
69
|
+
window.removeEventListener("mousemove", handler);
|
|
70
|
+
window.removeEventListener("touchmove", touchHandler);
|
|
71
|
+
const offset = 12.5;
|
|
72
|
+
_limits.beta = [beta - offset, beta + offset];
|
|
73
|
+
_limits.gamma = [gamma - offset, gamma + offset];
|
|
74
|
+
}
|
|
75
|
+
const _beta = Math.min(_limits.beta[1], Math.max(_limits.beta[0], beta));
|
|
76
|
+
const _gamma = Math.min(_limits.gamma[1], Math.max(_limits.gamma[0], gamma));
|
|
77
|
+
if (!_inverseMatrix) {
|
|
78
|
+
setTiltResetMatrix(() => {
|
|
79
|
+
return (_inverseMatrix = (0, helpers_1.flattenMatrix)((0, helpers_1.invertMatrix)((0, helpers_1.generateMatrixFromOperations)({
|
|
80
|
+
type: "rotateY",
|
|
81
|
+
angle: _gamma,
|
|
82
|
+
}, {
|
|
83
|
+
type: "rotateX",
|
|
84
|
+
angle: -_beta,
|
|
85
|
+
}))));
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
setTilt({
|
|
89
|
+
y: -_beta * sensorScale,
|
|
90
|
+
x: _gamma * sensorScale,
|
|
91
|
+
});
|
|
92
|
+
};
|
|
93
|
+
window.addEventListener("deviceorientation", orientationListener);
|
|
94
|
+
return () => window.removeEventListener("deviceorientation", orientationListener);
|
|
95
|
+
}
|
|
96
|
+
}, [active]);
|
|
97
|
+
return {
|
|
98
|
+
/** The element to monitor mouse hover relative to */
|
|
99
|
+
relativeTo,
|
|
100
|
+
/**
|
|
101
|
+
* The matrix that represents the original tilt, so it can be used with the tilt prop to tilt relative to the user
|
|
102
|
+
* Use it on css like so transform: matrix3d(tiltResetMatrix.join(",")) rotateX(tilt.x) rotateY(tilt.y)
|
|
103
|
+
*/
|
|
104
|
+
tiltResetMatrix,
|
|
105
|
+
/**
|
|
106
|
+
* How much tilt should be applied based
|
|
107
|
+
*/
|
|
108
|
+
tilt,
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
exports.default = useTilt;
|
|
112
|
+
function calculateDistanceRelativeToBounds(mousePosition, elementInitialPosition, elementSizeDimension) {
|
|
113
|
+
const normalizeInitialPosition = mousePosition - elementInitialPosition;
|
|
114
|
+
const doNotAllowGoingBeyondLowerLimit = Math.max(normalizeInitialPosition, 0);
|
|
115
|
+
const doNotAllowHoingBeyondHigherLimit = Math.min(doNotAllowGoingBeyondLowerLimit, elementSizeDimension);
|
|
116
|
+
const threeRule = (doNotAllowHoingBeyondHigherLimit * 100) / elementSizeDimension;
|
|
117
|
+
const result = Math.round(threeRule) / 100;
|
|
118
|
+
return result;
|
|
119
|
+
}
|
|
120
|
+
exports.calculateDistanceRelativeToBounds = calculateDistanceRelativeToBounds;
|
|
121
|
+
function givenTheRelativePositionHowMuchToRotate(relativePosition, maxRotation) {
|
|
122
|
+
return relativePosition * maxRotation - maxRotation / 2;
|
|
123
|
+
}
|
|
124
|
+
exports.givenTheRelativePositionHowMuchToRotate = givenTheRelativePositionHowMuchToRotate;
|
|
125
|
+
//# sourceMappingURL=useTilt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTilt.js","sourceRoot":"","sources":["../../../src/hooks/ui/useTilt.tsx"],"names":[],"mappings":";;;;;;AAAA,+DAA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AAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAC;SACxE;IACH,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IACb,OAAO;QACL,qDAAqD;QACrD,UAAU;QACV;;;WAGG;QACH,eAAe;QAEf;;WAEG;QACH,IAAI;KACL,CAAC;AACJ,CAAC;AArID,0BAqIC;AAED,SAAgB,iCAAiC,CAC/C,aAAqB,EACrB,sBAA8B,EAC9B,oBAA4B;IAE5B,MAAM,wBAAwB,GAAG,aAAa,GAAG,sBAAsB,CAAC;IACxE,MAAM,+BAA+B,GAAG,IAAI,CAAC,GAAG,CAAC,wBAAwB,EAAE,CAAC,CAAC,CAAC;IAC9E,MAAM,gCAAgC,GAAG,IAAI,CAAC,GAAG,CAC/C,+BAA+B,EAC/B,oBAAoB,CACrB,CAAC;IACF,MAAM,SAAS,GACb,CAAC,gCAAgC,GAAG,GAAG,CAAC,GAAG,oBAAoB,CAAC;IAClE,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,GAAG,CAAC;IAC3C,OAAO,MAAM,CAAC;AAChB,CAAC;AAfD,8EAeC;AAED,SAAgB,uCAAuC,CACrD,gBAAwB,EACxB,WAAmB;IAEnB,OAAO,gBAAgB,GAAG,WAAW,GAAG,WAAW,GAAG,CAAC,CAAC;AAC1D,CAAC;AALD,0FAKC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onepercentio/one-ui",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.13",
|
|
4
4
|
"description": "A set of reusable components created through the development of Onepercent projects",
|
|
5
5
|
"repository": "git@github.com:onepercentio/one-ui.git",
|
|
6
6
|
"author": "Murilo Oliveira de Araujo <muritavo@outlook.com>",
|