@bgarizao/admin-library 0.1.0 → 0.1.2
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/dts/components/AdminLayout/index.d.ts +22 -0
- package/dist/dts/components/AdminLogin/index.d.ts +20 -0
- package/dist/dts/components/AdminRoute/index.d.ts +14 -0
- package/dist/dts/components/Button/Button.d.ts +2 -0
- package/dist/dts/components/Button/Button.types.d.ts +6 -0
- package/dist/dts/components/Button/index.d.ts +2 -0
- package/dist/dts/components/Dropdown/Dropdown.d.ts +9 -0
- package/dist/dts/components/Dropdown/DropdownItem.d.ts +12 -0
- package/dist/dts/components/Dropdown/index.d.ts +2 -0
- package/dist/dts/components/IconSelect/index.d.ts +10 -0
- package/dist/dts/components/Icons/Icon.d.ts +6 -0
- package/dist/dts/components/Icons/index.d.ts +1 -0
- package/dist/dts/components/Inputs/Input.d.ts +8 -0
- package/dist/dts/components/Inputs/Select.d.ts +6 -0
- package/dist/dts/components/Inputs/TextArea.d.ts +2 -0
- package/dist/dts/components/Inputs/index.d.ts +3 -0
- package/dist/dts/components/MediaPreview/index.d.ts +28 -0
- package/dist/dts/components/Text/Text.d.ts +12 -0
- package/dist/dts/components/Text/index.d.ts +1 -0
- package/dist/dts/components/UrlField/index.d.ts +17 -0
- package/dist/dts/components/index.d.ts +12 -0
- package/dist/dts/hooks/index.d.ts +2 -0
- package/dist/dts/hooks/useAuth.d.ts +22 -0
- package/dist/dts/hooks/useDarkMode.d.ts +1 -0
- package/dist/dts/index.d.ts +9 -0
- package/dist/dts/libs/authUtils.d.ts +18 -0
- package/dist/dts/libs/icosLibs.d.ts +12 -0
- package/dist/dts/libs/index.d.ts +4 -0
- package/dist/dts/libs/sanityClient/index.d.ts +15 -0
- package/dist/dts/libs/sanityImage.d.ts +11 -0
- package/dist/dts/modals/IconModal.d.ts +9 -0
- package/dist/dts/modals/PreviewImage.d.ts +5 -0
- package/dist/dts/modals/index.d.ts +2 -0
- package/dist/dts/pages/SubscriptionPage/index.d.ts +14 -0
- package/dist/dts/pages/SubscriptionPage/useSubscription.d.ts +26 -0
- package/dist/dts/pages/index.d.ts +1 -0
- package/dist/index.esm.js +109 -29
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +108 -27
- package/dist/index.js.map +1 -1
- package/package.json +3 -19
package/dist/index.js
CHANGED
|
@@ -7277,11 +7277,11 @@ var CheckCircleOutlined = function CheckCircleOutlined(props, ref) {
|
|
|
7277
7277
|
};
|
|
7278
7278
|
|
|
7279
7279
|
/** */
|
|
7280
|
-
var RefIcon$
|
|
7280
|
+
var RefIcon$a = /*#__PURE__*/React__namespace.forwardRef(CheckCircleOutlined);
|
|
7281
7281
|
if (process.env.NODE_ENV !== 'production') {
|
|
7282
|
-
RefIcon$
|
|
7282
|
+
RefIcon$a.displayName = 'CheckCircleOutlined';
|
|
7283
7283
|
}
|
|
7284
|
-
var CheckCircleOutlined$1 = RefIcon$
|
|
7284
|
+
var CheckCircleOutlined$1 = RefIcon$a;
|
|
7285
7285
|
|
|
7286
7286
|
// This icon file is generated automatically.
|
|
7287
7287
|
var CloseCircleOutlined$2 = { "icon": { "tag": "svg", "attrs": { "fill-rule": "evenodd", "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z" } }] }, "name": "close-circle", "theme": "outlined" };
|
|
@@ -7295,11 +7295,11 @@ var CloseCircleOutlined = function CloseCircleOutlined(props, ref) {
|
|
|
7295
7295
|
};
|
|
7296
7296
|
|
|
7297
7297
|
/** */
|
|
7298
|
-
var RefIcon$
|
|
7298
|
+
var RefIcon$9 = /*#__PURE__*/React__namespace.forwardRef(CloseCircleOutlined);
|
|
7299
7299
|
if (process.env.NODE_ENV !== 'production') {
|
|
7300
|
-
RefIcon$
|
|
7300
|
+
RefIcon$9.displayName = 'CloseCircleOutlined';
|
|
7301
7301
|
}
|
|
7302
|
-
var CloseCircleOutlined$1 = RefIcon$
|
|
7302
|
+
var CloseCircleOutlined$1 = RefIcon$9;
|
|
7303
7303
|
|
|
7304
7304
|
// This icon file is generated automatically.
|
|
7305
7305
|
var GlobalOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z" } }] }, "name": "global", "theme": "outlined" };
|
|
@@ -7313,11 +7313,11 @@ var GlobalOutlined = function GlobalOutlined(props, ref) {
|
|
|
7313
7313
|
};
|
|
7314
7314
|
|
|
7315
7315
|
/** */
|
|
7316
|
-
var RefIcon$
|
|
7316
|
+
var RefIcon$8 = /*#__PURE__*/React__namespace.forwardRef(GlobalOutlined);
|
|
7317
7317
|
if (process.env.NODE_ENV !== 'production') {
|
|
7318
|
-
RefIcon$
|
|
7318
|
+
RefIcon$8.displayName = 'GlobalOutlined';
|
|
7319
7319
|
}
|
|
7320
|
-
var GlobalOutlined$1 = RefIcon$
|
|
7320
|
+
var GlobalOutlined$1 = RefIcon$8;
|
|
7321
7321
|
|
|
7322
7322
|
// This icon file is generated automatically.
|
|
7323
7323
|
var LinkOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z" } }] }, "name": "link", "theme": "outlined" };
|
|
@@ -7331,11 +7331,11 @@ var LinkOutlined = function LinkOutlined(props, ref) {
|
|
|
7331
7331
|
};
|
|
7332
7332
|
|
|
7333
7333
|
/** */
|
|
7334
|
-
var RefIcon$
|
|
7334
|
+
var RefIcon$7 = /*#__PURE__*/React__namespace.forwardRef(LinkOutlined);
|
|
7335
7335
|
if (process.env.NODE_ENV !== 'production') {
|
|
7336
|
-
RefIcon$
|
|
7336
|
+
RefIcon$7.displayName = 'LinkOutlined';
|
|
7337
7337
|
}
|
|
7338
|
-
var LinkOutlined$1 = RefIcon$
|
|
7338
|
+
var LinkOutlined$1 = RefIcon$7;
|
|
7339
7339
|
|
|
7340
7340
|
// This icon file is generated automatically.
|
|
7341
7341
|
var LoadingOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, "name": "loading", "theme": "outlined" };
|
|
@@ -7349,11 +7349,29 @@ var LoadingOutlined = function LoadingOutlined(props, ref) {
|
|
|
7349
7349
|
};
|
|
7350
7350
|
|
|
7351
7351
|
/** */
|
|
7352
|
-
var RefIcon$
|
|
7352
|
+
var RefIcon$6 = /*#__PURE__*/React__namespace.forwardRef(LoadingOutlined);
|
|
7353
7353
|
if (process.env.NODE_ENV !== 'production') {
|
|
7354
|
-
RefIcon$
|
|
7354
|
+
RefIcon$6.displayName = 'LoadingOutlined';
|
|
7355
7355
|
}
|
|
7356
|
-
var LoadingOutlined$1 = RefIcon$
|
|
7356
|
+
var LoadingOutlined$1 = RefIcon$6;
|
|
7357
|
+
|
|
7358
|
+
// This icon file is generated automatically.
|
|
7359
|
+
var LockOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z" } }] }, "name": "lock", "theme": "outlined" };
|
|
7360
|
+
var LockOutlinedSvg = LockOutlined$2;
|
|
7361
|
+
|
|
7362
|
+
var LockOutlined = function LockOutlined(props, ref) {
|
|
7363
|
+
return /*#__PURE__*/React__namespace.createElement(AntdIcon, _extends({}, props, {
|
|
7364
|
+
ref: ref,
|
|
7365
|
+
icon: LockOutlinedSvg
|
|
7366
|
+
}));
|
|
7367
|
+
};
|
|
7368
|
+
|
|
7369
|
+
/** */
|
|
7370
|
+
var RefIcon$5 = /*#__PURE__*/React__namespace.forwardRef(LockOutlined);
|
|
7371
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
7372
|
+
RefIcon$5.displayName = 'LockOutlined';
|
|
7373
|
+
}
|
|
7374
|
+
var LockOutlined$1 = RefIcon$5;
|
|
7357
7375
|
|
|
7358
7376
|
// This icon file is generated automatically.
|
|
7359
7377
|
var LogoutOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z" } }] }, "name": "logout", "theme": "outlined" };
|
|
@@ -7367,11 +7385,11 @@ var LogoutOutlined = function LogoutOutlined(props, ref) {
|
|
|
7367
7385
|
};
|
|
7368
7386
|
|
|
7369
7387
|
/** */
|
|
7370
|
-
var RefIcon$
|
|
7388
|
+
var RefIcon$4 = /*#__PURE__*/React__namespace.forwardRef(LogoutOutlined);
|
|
7371
7389
|
if (process.env.NODE_ENV !== 'production') {
|
|
7372
|
-
RefIcon$
|
|
7390
|
+
RefIcon$4.displayName = 'LogoutOutlined';
|
|
7373
7391
|
}
|
|
7374
|
-
var LogoutOutlined$1 = RefIcon$
|
|
7392
|
+
var LogoutOutlined$1 = RefIcon$4;
|
|
7375
7393
|
|
|
7376
7394
|
// This icon file is generated automatically.
|
|
7377
7395
|
var MenuFoldOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z" } }] }, "name": "menu-fold", "theme": "outlined" };
|
|
@@ -7385,11 +7403,11 @@ var MenuFoldOutlined = function MenuFoldOutlined(props, ref) {
|
|
|
7385
7403
|
};
|
|
7386
7404
|
|
|
7387
7405
|
/** */
|
|
7388
|
-
var RefIcon$
|
|
7406
|
+
var RefIcon$3 = /*#__PURE__*/React__namespace.forwardRef(MenuFoldOutlined);
|
|
7389
7407
|
if (process.env.NODE_ENV !== 'production') {
|
|
7390
|
-
RefIcon$
|
|
7408
|
+
RefIcon$3.displayName = 'MenuFoldOutlined';
|
|
7391
7409
|
}
|
|
7392
|
-
var MenuFoldOutlined$1 = RefIcon$
|
|
7410
|
+
var MenuFoldOutlined$1 = RefIcon$3;
|
|
7393
7411
|
|
|
7394
7412
|
// This icon file is generated automatically.
|
|
7395
7413
|
var MenuUnfoldOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z" } }] }, "name": "menu-unfold", "theme": "outlined" };
|
|
@@ -7403,11 +7421,11 @@ var MenuUnfoldOutlined = function MenuUnfoldOutlined(props, ref) {
|
|
|
7403
7421
|
};
|
|
7404
7422
|
|
|
7405
7423
|
/** */
|
|
7406
|
-
var RefIcon$
|
|
7424
|
+
var RefIcon$2 = /*#__PURE__*/React__namespace.forwardRef(MenuUnfoldOutlined);
|
|
7407
7425
|
if (process.env.NODE_ENV !== 'production') {
|
|
7408
|
-
RefIcon$
|
|
7426
|
+
RefIcon$2.displayName = 'MenuUnfoldOutlined';
|
|
7409
7427
|
}
|
|
7410
|
-
var MenuUnfoldOutlined$1 = RefIcon$
|
|
7428
|
+
var MenuUnfoldOutlined$1 = RefIcon$2;
|
|
7411
7429
|
|
|
7412
7430
|
// This icon file is generated automatically.
|
|
7413
7431
|
var SearchOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
|
|
@@ -7421,11 +7439,29 @@ var SearchOutlined = function SearchOutlined(props, ref) {
|
|
|
7421
7439
|
};
|
|
7422
7440
|
|
|
7423
7441
|
/** */
|
|
7424
|
-
var RefIcon = /*#__PURE__*/React__namespace.forwardRef(SearchOutlined);
|
|
7442
|
+
var RefIcon$1 = /*#__PURE__*/React__namespace.forwardRef(SearchOutlined);
|
|
7443
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
7444
|
+
RefIcon$1.displayName = 'SearchOutlined';
|
|
7445
|
+
}
|
|
7446
|
+
var SearchOutlined$1 = RefIcon$1;
|
|
7447
|
+
|
|
7448
|
+
// This icon file is generated automatically.
|
|
7449
|
+
var UserOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z" } }] }, "name": "user", "theme": "outlined" };
|
|
7450
|
+
var UserOutlinedSvg = UserOutlined$2;
|
|
7451
|
+
|
|
7452
|
+
var UserOutlined = function UserOutlined(props, ref) {
|
|
7453
|
+
return /*#__PURE__*/React__namespace.createElement(AntdIcon, _extends({}, props, {
|
|
7454
|
+
ref: ref,
|
|
7455
|
+
icon: UserOutlinedSvg
|
|
7456
|
+
}));
|
|
7457
|
+
};
|
|
7458
|
+
|
|
7459
|
+
/** */
|
|
7460
|
+
var RefIcon = /*#__PURE__*/React__namespace.forwardRef(UserOutlined);
|
|
7425
7461
|
if (process.env.NODE_ENV !== 'production') {
|
|
7426
|
-
RefIcon.displayName = '
|
|
7462
|
+
RefIcon.displayName = 'UserOutlined';
|
|
7427
7463
|
}
|
|
7428
|
-
var
|
|
7464
|
+
var UserOutlined$1 = RefIcon;
|
|
7429
7465
|
|
|
7430
7466
|
/**
|
|
7431
7467
|
* Smart URL input:
|
|
@@ -7884,6 +7920,50 @@ const AdminLayout = ({ menu, onLogout, children, onMenuClick, }) => {
|
|
|
7884
7920
|
` }), children] })] })] }) }));
|
|
7885
7921
|
};
|
|
7886
7922
|
|
|
7923
|
+
const AdminLogin = ({ title = 'Admin Panel', logo, onLogin, onSuccess, loggedInUser, }) => {
|
|
7924
|
+
const [loading, setLoading] = React.useState(false);
|
|
7925
|
+
React.useEffect(() => {
|
|
7926
|
+
if (loggedInUser && onSuccess) {
|
|
7927
|
+
onSuccess();
|
|
7928
|
+
}
|
|
7929
|
+
}, [loggedInUser, onSuccess]);
|
|
7930
|
+
const handleSubmit = async (values) => {
|
|
7931
|
+
setLoading(true);
|
|
7932
|
+
try {
|
|
7933
|
+
const user = await onLogin(values);
|
|
7934
|
+
antd.message.success(`Welcome, ${user.name}!`);
|
|
7935
|
+
onSuccess?.();
|
|
7936
|
+
}
|
|
7937
|
+
catch (error) {
|
|
7938
|
+
antd.message.error('Invalid email or password');
|
|
7939
|
+
}
|
|
7940
|
+
finally {
|
|
7941
|
+
setLoading(false);
|
|
7942
|
+
}
|
|
7943
|
+
};
|
|
7944
|
+
return (jsxRuntime.jsx("div", { style: {
|
|
7945
|
+
minHeight: '100vh',
|
|
7946
|
+
display: 'flex',
|
|
7947
|
+
alignItems: 'center',
|
|
7948
|
+
justifyContent: 'center',
|
|
7949
|
+
background: '#f5f5f5',
|
|
7950
|
+
}, children: jsxRuntime.jsxs(antd.Card, { style: {
|
|
7951
|
+
width: 400,
|
|
7952
|
+
boxShadow: '0 4px 12px rgba(0,0,0,0.1)',
|
|
7953
|
+
}, children: [jsxRuntime.jsxs("div", { style: { textAlign: 'center', marginBottom: 24 }, children: [logo && (jsxRuntime.jsx("img", { src: logo, alt: "Logo", style: {
|
|
7954
|
+
maxWidth: 120,
|
|
7955
|
+
maxHeight: 80,
|
|
7956
|
+
marginBottom: 16,
|
|
7957
|
+
} })), jsxRuntime.jsx("h1", { style: { fontSize: 24, fontWeight: 600, margin: 0 }, children: title }), jsxRuntime.jsx("p", { style: { color: '#888', marginTop: 8 }, children: "Sign in to continue" })] }), jsxRuntime.jsxs(antd.Form, { name: "login", onFinish: handleSubmit, layout: "vertical", requiredMark: false, children: [jsxRuntime.jsx(antd.Form.Item, { name: "email", rules: [
|
|
7958
|
+
{ required: true, message: 'Please enter your email' },
|
|
7959
|
+
{ type: 'email', message: 'Please enter a valid email' },
|
|
7960
|
+
], children: jsxRuntime.jsx(antd.Input, { prefix: jsxRuntime.jsx(UserOutlined$1, {}), placeholder: "Email", size: "large" }) }), jsxRuntime.jsx(antd.Form.Item, { name: "password", rules: [{ required: true, message: 'Please enter your password' }], children: jsxRuntime.jsx(antd.Input.Password, { prefix: jsxRuntime.jsx(LockOutlined$1, {}), placeholder: "Password", size: "large" }) }), jsxRuntime.jsx(antd.Form.Item, { style: { marginBottom: 0 }, children: jsxRuntime.jsx(antd.Button, { type: "primary", htmlType: "submit", loading: loading, block: true, size: "large", style: {
|
|
7961
|
+
background: '#E5C100',
|
|
7962
|
+
borderColor: '#E5C100',
|
|
7963
|
+
fontWeight: 600,
|
|
7964
|
+
}, children: "Sign In" }) })] })] }) }));
|
|
7965
|
+
};
|
|
7966
|
+
|
|
7887
7967
|
const AdminRoute = ({ children, user, redirectTo = '/admin/login', }) => {
|
|
7888
7968
|
if (!user) {
|
|
7889
7969
|
return jsxRuntime.jsx(reactRouterDom.Navigate, { to: redirectTo, replace: true });
|
|
@@ -8069,6 +8149,7 @@ const getSubscriptionPageUrl = (config) => {
|
|
|
8069
8149
|
};
|
|
8070
8150
|
|
|
8071
8151
|
exports.AdminLayout = AdminLayout;
|
|
8152
|
+
exports.AdminLogin = AdminLogin;
|
|
8072
8153
|
exports.AdminRoute = AdminRoute;
|
|
8073
8154
|
exports.Button = Button;
|
|
8074
8155
|
exports.Dropdown = Dropdown;
|