UNPKG

@premieroctet/next-admin

Version:

Next-Admin provides a customizable and turnkey admin dashboard for applications built with Next.js and powered by the Prisma ORM. It aims to simplify the development process by providing a turnkey admin system that can be easily integrated into your proje

292 lines (291 loc) 18.3 kB
"use strict"; var __webpack_require__ = {}; (()=>{ __webpack_require__.n = (module)=>{ var getter = module && module.__esModule ? ()=>module['default'] : ()=>module; __webpack_require__.d(getter, { a: getter }); return getter; }; })(); (()=>{ __webpack_require__.d = (exports1, definition)=>{ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, { enumerable: true, get: definition[key] }); }; })(); (()=>{ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop); })(); (()=>{ __webpack_require__.r = (exports1)=>{ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, { value: 'Module' }); Object.defineProperty(exports1, '__esModule', { value: true }); }; })(); var __webpack_exports__ = {}; __webpack_require__.r(__webpack_exports__); __webpack_require__.d(__webpack_exports__, { Strikethrough: ()=>Strikethrough, AlignCenter: ()=>AlignCenter, Italic: ()=>Italic, Code: ()=>Code, BullettedList: ()=>BullettedList, Quote: ()=>Quote, AlignJustify: ()=>AlignJustify, AlignLeft: ()=>AlignLeft, Heading: ()=>Heading, Bold: ()=>Bold, NumberedList: ()=>NumberedList, Underline: ()=>Underline, AlignRight: ()=>AlignRight }); const jsx_runtime_namespaceObject = require("react/jsx-runtime"); const external_clsx_namespaceObject = require("clsx"); var external_clsx_default = /*#__PURE__*/ __webpack_require__.n(external_clsx_namespaceObject); require("react"); const Bold = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("svg", { ...props, className: external_clsx_default()(className), xmlns: "http://www.w3.org/2000/svg", height: "16", width: "12", viewBox: "0 0 384 512", children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", { opacity: "1", d: "M0 64C0 46.3 14.3 32 32 32H80 96 224c70.7 0 128 57.3 128 128c0 31.3-11.3 60.1-30 82.3c37.1 22.4 62 63.1 62 109.7c0 70.7-57.3 128-128 128H96 80 32c-17.7 0-32-14.3-32-32s14.3-32 32-32H48V256 96H32C14.3 96 0 81.7 0 64zM224 224c35.3 0 64-28.7 64-64s-28.7-64-64-64H112V224H224zM112 288V416H256c35.3 0 64-28.7 64-64s-28.7-64-64-64H224 112z" }) }); const Code = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("svg", { ...props, className: external_clsx_default()(className), xmlns: "http://www.w3.org/2000/svg", height: "16", width: "20", viewBox: "0 0 640 512", children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", { opacity: "1", d: "M392.8 1.2c-17-4.9-34.7 5-39.6 22l-128 448c-4.9 17 5 34.7 22 39.6s34.7-5 39.6-22l128-448c4.9-17-5-34.7-22-39.6zm80.6 120.1c-12.5 12.5-12.5 32.8 0 45.3L562.7 256l-89.4 89.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l112-112c12.5-12.5 12.5-32.8 0-45.3l-112-112c-12.5-12.5-32.8-12.5-45.3 0zm-306.7 0c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3l112 112c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256l89.4-89.4c12.5-12.5 12.5-32.8 0-45.3z" }) }); const Italic = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("svg", { ...props, className: external_clsx_default()(className), xmlns: "http://www.w3.org/2000/svg", height: "16", width: "12", viewBox: "0 0 384 512", children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", { opacity: "1", d: "M128 64c0-17.7 14.3-32 32-32H352c17.7 0 32 14.3 32 32s-14.3 32-32 32H293.3L160 416h64c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H90.7L224 96H160c-17.7 0-32-14.3-32-32z" }) }); const Underline = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("svg", { ...props, className: external_clsx_default()(className), xmlns: "http://www.w3.org/2000/svg", height: "16", width: "14", viewBox: "0 0 448 512", children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", { opacity: "1", d: "M16 64c0-17.7 14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H128V224c0 53 43 96 96 96s96-43 96-96V96H304c-17.7 0-32-14.3-32-32s14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H384V224c0 88.4-71.6 160-160 160s-160-71.6-160-160V96H48C30.3 96 16 81.7 16 64zM0 448c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32z" }) }); const Strikethrough = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("svg", { ...props, className: external_clsx_default()(className), xmlns: "http://www.w3.org/2000/svg", height: "16", width: "16", viewBox: "0 0 512 512", children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", { d: "M161.3 144c3.2-17.2 14-30.1 33.7-38.6c21.1-9 51.8-12.3 88.6-6.5c11.9 1.9 48.8 9.1 60.1 12c17.1 4.5 34.6-5.6 39.2-22.7s-5.6-34.6-22.7-39.2c-14.3-3.8-53.6-11.4-66.6-13.4c-44.7-7-88.3-4.2-123.7 10.9c-36.5 15.6-64.4 44.8-71.8 87.3c-.1 .6-.2 1.1-.2 1.7c-2.8 23.9 .5 45.6 10.1 64.6c4.5 9 10.2 16.9 16.7 23.9H32c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H270.1c-.1 0-.3-.1-.4-.1l-1.1-.3c-36-10.8-65.2-19.6-85.2-33.1c-9.3-6.3-15-12.6-18.2-19.1c-3.1-6.1-5.2-14.6-3.8-27.4zM348.9 337.2c2.7 6.5 4.4 15.8 1.9 30.1c-3 17.6-13.8 30.8-33.9 39.4c-21.1 9-51.7 12.3-88.5 6.5c-18-2.9-49.1-13.5-74.4-22.1c-5.6-1.9-11-3.7-15.9-5.4c-16.8-5.6-34.9 3.5-40.5 20.3s3.5 34.9 20.3 40.5c3.6 1.2 7.9 2.7 12.7 4.3l0 0 0 0c24.9 8.5 63.6 21.7 87.6 25.6l0 0 .2 0c44.7 7 88.3 4.2 123.7-10.9c36.5-15.6 64.4-44.8 71.8-87.3c3.6-21 2.7-40.4-3.1-58.1H335.1c7 5.6 11.4 11.2 13.9 17.2z" }) }); const Quote = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("svg", { ...props, className: external_clsx_default()(className), xmlns: "http://www.w3.org/2000/svg", height: "16", width: "14", viewBox: "0 0 448 512", children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", { d: "M0 216C0 149.7 53.7 96 120 96h8c17.7 0 32 14.3 32 32s-14.3 32-32 32h-8c-30.9 0-56 25.1-56 56v8h64c35.3 0 64 28.7 64 64v64c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V320 288 216zm256 0c0-66.3 53.7-120 120-120h8c17.7 0 32 14.3 32 32s-14.3 32-32 32h-8c-30.9 0-56 25.1-56 56v8h64c35.3 0 64 28.7 64 64v64c0 35.3-28.7 64-64 64H320c-35.3 0-64-28.7-64-64V320 288 216z" }) }); const BullettedList = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("svg", { ...props, className: external_clsx_default()(className), xmlns: "http://www.w3.org/2000/svg", height: "16", width: "16", viewBox: "0 0 512 512", children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", { d: "M64 144a48 48 0 1 0 0-96 48 48 0 1 0 0 96zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zM64 464a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm48-208a48 48 0 1 0 -96 0 48 48 0 1 0 96 0z" }) }); const NumberedList = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("svg", { ...props, className: external_clsx_default()(className), xmlns: "http://www.w3.org/2000/svg", height: "16", width: "16", viewBox: "0 0 512 512", children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", { d: "M24 56c0-13.3 10.7-24 24-24H80c13.3 0 24 10.7 24 24V176h16c13.3 0 24 10.7 24 24s-10.7 24-24 24H40c-13.3 0-24-10.7-24-24s10.7-24 24-24H56V80H48C34.7 80 24 69.3 24 56zM86.7 341.2c-6.5-7.4-18.3-6.9-24 1.2L51.5 357.9c-7.7 10.8-22.7 13.3-33.5 5.6s-13.3-22.7-5.6-33.5l11.1-15.6c23.7-33.2 72.3-35.6 99.2-4.9c21.3 24.4 20.8 60.9-1.1 84.7L86.8 432H120c13.3 0 24 10.7 24 24s-10.7 24-24 24H32c-9.5 0-18.2-5.6-22-14.4s-2.1-18.9 4.3-25.9l72-78c5.3-5.8 5.4-14.6 .3-20.5zM224 64H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H224c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 160H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H224c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 160H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H224c-17.7 0-32-14.3-32-32s14.3-32 32-32z" }) }); const Heading = ({ level, className, ...props })=>{ const numberPath = { 1: "M731.852 36.5843C731.852 23.099 724.424 10.7565 712.538 4.35665C700.653 -2.04317 686.253 -1.35748 675.054 6.18518L565.342 79.326C548.429 90.5257 543.972 113.154 555.171 130.068C566.371 146.981 589.113 151.438 605.913 140.239L658.711 104.925V438.859H585.57C565.342 438.859 549 455.202 549 475.43C549 495.658 565.342 512 585.57 512H695.282H804.993C825.221 512 841.563 495.658 841.563 475.43C841.563 455.202 825.221 438.859 804.993 438.859H731.852V36.5843Z", 2: "M712.4 73.1429C687.829 73.1429 664.171 82.8571 646.8 100.343L611.486 135.543C597.2 149.829 574 149.829 559.714 135.543C545.429 121.257 545.429 98.0572 559.714 83.7714L595.029 48.5714C626.229 17.4857 668.4 0 712.4 0C803.943 0 878.229 74.2857 878.229 165.829C878.229 209.829 860.743 252 829.657 283.086L674 438.857H878.229C898.457 438.857 914.8 455.2 914.8 475.429C914.8 495.657 898.457 512 878.229 512H585.657C570.914 512 557.543 503.086 551.829 489.371C546.114 475.657 549.314 460 559.714 449.486L777.886 231.429C795.257 214.057 805.086 190.4 805.086 165.829C805.086 114.629 763.6 73.1429 712.4 73.1429Z", 3: "M548.571 36.5714C548.571 16.3429 564.913 0 585.142 0H859.428C874.513 0 887.999 9.25714 893.485 23.3143C898.971 37.3714 895.199 53.3714 884.113 63.5429L734.056 201.143H758.856C844.685 201.143 914.285 270.743 914.285 356.571C914.285 442.4 844.685 512 758.856 512H669.028C620.571 512 576.228 484.571 554.628 441.257L552.456 436.914C543.428 418.857 550.742 396.914 568.799 387.886C586.856 378.857 608.799 386.171 617.828 404.229L619.999 408.571C629.256 427.2 648.342 438.857 669.028 438.857H758.856C804.342 438.857 841.142 402.057 841.142 356.571C841.142 311.086 804.342 274.286 758.856 274.286H639.999C624.913 274.286 611.428 265.029 605.942 250.971C600.456 236.914 604.228 220.914 615.313 210.743L765.371 73.1429H585.142C564.913 73.1429 548.571 56.8 548.571 36.5714Z" }; return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("svg", { ...props, className: external_clsx_default()(className), xmlns: "http://www.w3.org/2000/svg", height: "16", width: "16", viewBox: "0 0 915 512", children: [ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", { d: "M0 36.5714C0 16.3429 16.3429 0 36.5714 0H91.4286H146.286C166.514 0 182.857 16.3429 182.857 36.5714C182.857 56.8 166.514 73.1429 146.286 73.1429H128V201.143H384V73.1429H365.714C345.486 73.1429 329.143 56.8 329.143 36.5714C329.143 16.3429 345.486 0 365.714 0H420.571H475.429C495.657 0 512 16.3429 512 36.5714C512 56.8 495.657 73.1429 475.429 73.1429H457.143V237.714V438.857H475.429C495.657 438.857 512 455.2 512 475.429C512 495.657 495.657 512 475.429 512H420.571H365.714C345.486 512 329.143 495.657 329.143 475.429C329.143 455.2 345.486 438.857 365.714 438.857H384V274.286H128V438.857H146.286C166.514 438.857 182.857 455.2 182.857 475.429C182.857 495.657 166.514 512 146.286 512H91.4286H36.5714C16.3429 512 0 495.657 0 475.429C0 455.2 16.3429 438.857 36.5714 438.857H54.8571V237.714V73.1429H36.5714C16.3429 73.1429 0 56.8 0 36.5714Z" }), /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", { d: numberPath[level] }) ] }); }; const AlignLeft = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("svg", { width: "15", height: "12", viewBox: "0 0 15 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, className: external_clsx_default()(className), children: [ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", { d: "M1 5C0.446875 5 0 5.44687 0 6C0 6.55313 0.446875 7 1 7H8C8.55313 7 9 6.55313 9 6C9 5.44687 8.55313 5 8 5H1Z" }), /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", { d: "M0 6C0 5.44687 0.446875 5 1 5H8C8.55313 5 9 5.44687 9 6C9 6.55313 8.55313 7 8 7H1C0.446875 7 0 6.55313 0 6Z" }), /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", { d: "M0 11C0 10.4469 0.446875 10 1 10H14C14.5531 10 15 10.4469 15 11C15 11.5531 14.5531 12 14 12H1C0.446875 12 0 11.5531 0 11Z" }), /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", { d: "M0 1C0 0.446875 0.446875 0 1 0H14C14.5531 0 15 0.446875 15 1C15 1.55313 14.5531 2 14 2H1C0.446875 2 0 1.55313 0 1Z" }) ] }); const AlignCenter = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("svg", { width: "15", height: "12", viewBox: "0 0 15 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, className: external_clsx_default()(className), children: [ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", { d: "M4 5C3.44687 5 3 5.44687 3 6C3 6.55313 3.44687 7 4 7H11C11.5531 7 12 6.55313 12 6C12 5.44687 11.5531 5 11 5H4Z" }), /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", { d: "M3 6C3 5.44687 3.44687 5 4 5H11C11.5531 5 12 5.44687 12 6C12 6.55313 11.5531 7 11 7H4C3.44687 7 3 6.55313 3 6Z" }), /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", { d: "M0 11C0 10.4469 0.446875 10 1 10H14C14.5531 10 15 10.4469 15 11C15 11.5531 14.5531 12 14 12H1C0.446875 12 0 11.5531 0 11Z" }), /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", { d: "M0 1C0 0.446875 0.446875 0 1 0H14C14.5531 0 15 0.446875 15 1C15 1.55313 14.5531 2 14 2H1C0.446875 2 0 1.55313 0 1Z" }) ] }); const AlignRight = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("svg", { width: "15", height: "12", viewBox: "0 0 15 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, className: external_clsx_default()(className), children: [ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", { d: "M7 5C6.44687 5 6 5.44687 6 6C6 6.55313 6.44687 7 7 7H14C14.5531 7 15 6.55313 15 6C15 5.44687 14.5531 5 14 5H7Z" }), /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", { d: "M6 6C6 5.44687 6.44687 5 7 5H14C14.5531 5 15 5.44687 15 6C15 6.55313 14.5531 7 14 7H7C6.44687 7 6 6.55313 6 6Z" }), /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", { d: "M0 11C0 10.4469 0.446875 10 1 10H14C14.5531 10 15 10.4469 15 11C15 11.5531 14.5531 12 14 12H1C0.446875 12 0 11.5531 0 11Z" }), /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", { d: "M0 1C0 0.446875 0.446875 0 1 0H14C14.5531 0 15 0.446875 15 1C15 1.55313 14.5531 2 14 2H1C0.446875 2 0 1.55313 0 1Z" }) ] }); const AlignJustify = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("svg", { width: "15", height: "12", viewBox: "0 0 15 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, className: external_clsx_default()(className), children: [ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", { d: "M1 5C0.446875 5 0 5.44687 0 6C0 6.55313 0.446875 7 1 7H14C14.5531 7 15 6.55313 15 6C15 5.44687 14.5531 5 14 5H1Z" }), /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", { d: "M0 6C0 5.44687 0.446875 5 1 5H14C14.5531 5 15 5.44687 15 6C15 6.55313 14.5531 7 14 7H1C0.446875 7 0 6.55313 0 6Z" }), /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", { d: "M0 11C0 10.4469 0.446875 10 1 10H14C14.5531 10 15 10.4469 15 11C15 11.5531 14.5531 12 14 12H1C0.446875 12 0 11.5531 0 11Z" }), /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", { d: "M0 1C0 0.446875 0.446875 0 1 0H14C14.5531 0 15 0.446875 15 1C15 1.55313 14.5531 2 14 2H1C0.446875 2 0 1.55313 0 1Z" }) ] }); exports.AlignCenter = __webpack_exports__.AlignCenter; exports.AlignJustify = __webpack_exports__.AlignJustify; exports.AlignLeft = __webpack_exports__.AlignLeft; exports.AlignRight = __webpack_exports__.AlignRight; exports.Bold = __webpack_exports__.Bold; exports.BullettedList = __webpack_exports__.BullettedList; exports.Code = __webpack_exports__.Code; exports.Heading = __webpack_exports__.Heading; exports.Italic = __webpack_exports__.Italic; exports.NumberedList = __webpack_exports__.NumberedList; exports.Quote = __webpack_exports__.Quote; exports.Strikethrough = __webpack_exports__.Strikethrough; exports.Underline = __webpack_exports__.Underline; for(var __webpack_i__ in __webpack_exports__)if (-1 === [ "AlignCenter", "AlignJustify", "AlignLeft", "AlignRight", "Bold", "BullettedList", "Code", "Heading", "Italic", "NumberedList", "Quote", "Strikethrough", "Underline" ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__]; Object.defineProperty(exports, '__esModule', { value: true });