phx-react 1.3.795 → 1.3.797
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/cjs/components/LoadingIndicator/loading-indicator.js +6 -1
- package/dist/cjs/components/LoadingIndicator/loading-indicator.js.map +1 -1
- package/dist/esm/components/LoadingIndicator/loading-indicator.js +6 -1
- package/dist/esm/components/LoadingIndicator/loading-indicator.js.map +1 -1
- package/package.json +2 -2
|
@@ -5,7 +5,12 @@ var react_1 = tslib_1.__importDefault(require("react"));
|
|
|
5
5
|
var LoadingProvider_1 = require("../LoadingProvider");
|
|
6
6
|
function PHXLoadingIndicator() {
|
|
7
7
|
var progress = (0, LoadingProvider_1.useLoading)().progress;
|
|
8
|
-
return (react_1["default"].createElement(react_1["default"].Fragment, null, progress > 0 && (react_1["default"].createElement("div", { className:
|
|
8
|
+
return (react_1["default"].createElement(react_1["default"].Fragment, null, progress > 0 && (react_1["default"].createElement("div", { className: 'fixed top-0 left-0 h-1 z-[9999] transition-all', style: { width: "".concat(progress, "%") } },
|
|
9
|
+
react_1["default"].createElement("div", { className: 'relative h-full w-full bg-gray-400' },
|
|
10
|
+
react_1["default"].createElement("div", { className: 'absolute right-0 top-1/2 h-full w-[400px] -translate-y-1/2 pointer-events-none', style: {
|
|
11
|
+
background: 'radial-gradient(circle at right, #9ca3af 0%, rgba(156,163,175,0.5) 50%, rgba(156,163,175,0) 100%)',
|
|
12
|
+
filter: 'drop-shadow(0 0 4px #9ca3af) drop-shadow(0 0 8px #9ca3af) drop-shadow(0 0 16px #9ca3af)'
|
|
13
|
+
} }))))));
|
|
9
14
|
}
|
|
10
15
|
exports["default"] = PHXLoadingIndicator;
|
|
11
16
|
//# sourceMappingURL=loading-indicator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loading-indicator.js","sourceRoot":"","sources":["../../../../src/components/LoadingIndicator/loading-indicator.tsx"],"names":[],"mappings":";;;AAAA,wDAAyB;AACzB,sDAA+C;AAE/C,SAAwB,mBAAmB;IACjC,IAAA,QAAQ,GAAK,IAAA,4BAAU,GAAE,SAAjB,CAAiB;IAEjC,OAAO,CACL,oEACG,QAAQ,GAAG,CAAC,IAAI,CACf,
|
|
1
|
+
{"version":3,"file":"loading-indicator.js","sourceRoot":"","sources":["../../../../src/components/LoadingIndicator/loading-indicator.tsx"],"names":[],"mappings":";;;AAAA,wDAAyB;AACzB,sDAA+C;AAE/C,SAAwB,mBAAmB;IACjC,IAAA,QAAQ,GAAK,IAAA,4BAAU,GAAE,SAAjB,CAAiB;IAEjC,OAAO,CACL,oEACG,QAAQ,GAAG,CAAC,IAAI,CACf,0CAAK,SAAS,EAAC,gDAAgD,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,UAAG,QAAQ,MAAG,EAAE;QAC9F,0CAAK,SAAS,EAAC,oCAAoC;YACjD,0CACE,SAAS,EAAC,gFAAgF,EAC1F,KAAK,EAAE;oBACL,UAAU,EACR,mGAAmG;oBACrG,MAAM,EAAE,yFAAyF;iBAClG,GACD,CACE,CACF,CACP,CACA,CACJ,CAAA;AACH,CAAC;AArBD,yCAqBC"}
|
|
@@ -2,6 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import { useLoading } from '../LoadingProvider';
|
|
3
3
|
export default function PHXLoadingIndicator() {
|
|
4
4
|
var progress = useLoading().progress;
|
|
5
|
-
return (React.createElement(React.Fragment, null, progress > 0 && (React.createElement("div", { className:
|
|
5
|
+
return (React.createElement(React.Fragment, null, progress > 0 && (React.createElement("div", { className: 'fixed top-0 left-0 h-1 z-[9999] transition-all', style: { width: "".concat(progress, "%") } },
|
|
6
|
+
React.createElement("div", { className: 'relative h-full w-full bg-gray-400' },
|
|
7
|
+
React.createElement("div", { className: 'absolute right-0 top-1/2 h-full w-[400px] -translate-y-1/2 pointer-events-none', style: {
|
|
8
|
+
background: 'radial-gradient(circle at right, #9ca3af 0%, rgba(156,163,175,0.5) 50%, rgba(156,163,175,0) 100%)',
|
|
9
|
+
filter: 'drop-shadow(0 0 4px #9ca3af) drop-shadow(0 0 8px #9ca3af) drop-shadow(0 0 16px #9ca3af)'
|
|
10
|
+
} }))))));
|
|
6
11
|
}
|
|
7
12
|
//# sourceMappingURL=loading-indicator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loading-indicator.js","sourceRoot":"","sources":["../../../../src/components/LoadingIndicator/loading-indicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAE/C,MAAM,CAAC,OAAO,UAAU,mBAAmB;IACjC,IAAA,QAAQ,GAAK,UAAU,EAAE,SAAjB,CAAiB;IAEjC,OAAO,CACL,0CACG,QAAQ,GAAG,CAAC,IAAI,CACf,
|
|
1
|
+
{"version":3,"file":"loading-indicator.js","sourceRoot":"","sources":["../../../../src/components/LoadingIndicator/loading-indicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAE/C,MAAM,CAAC,OAAO,UAAU,mBAAmB;IACjC,IAAA,QAAQ,GAAK,UAAU,EAAE,SAAjB,CAAiB;IAEjC,OAAO,CACL,0CACG,QAAQ,GAAG,CAAC,IAAI,CACf,6BAAK,SAAS,EAAC,gDAAgD,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,UAAG,QAAQ,MAAG,EAAE;QAC9F,6BAAK,SAAS,EAAC,oCAAoC;YACjD,6BACE,SAAS,EAAC,gFAAgF,EAC1F,KAAK,EAAE;oBACL,UAAU,EACR,mGAAmG;oBACrG,MAAM,EAAE,yFAAyF;iBAClG,GACD,CACE,CACF,CACP,CACA,CACJ,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "phx-react",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.797",
|
|
4
4
|
"description": "PHX REACT",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@storybook/react-vite": "7.2.3",
|
|
56
56
|
"@storybook/testing-library": "^0.0.14-next.2",
|
|
57
57
|
"@tailwindcss/forms": "^0.5.3",
|
|
58
|
-
"@testing-library/react": "^
|
|
58
|
+
"@testing-library/react": "^15.0.6",
|
|
59
59
|
"@types/crypto-js": "^4.2.2",
|
|
60
60
|
"@types/jest": "^29.5.11",
|
|
61
61
|
"@types/js-cookie": "^3.0.3",
|